1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{4839:function(e,t,r){"use strict";var n=r(1876).Buffer,i=r(3454);Object.defineProperty(t,"__esModule",{value:!0});var o=r(655),a=r(1831),s=o.__importDefault(r(1987)),u=o.__importDefault(r(4078)),c=o.__importDefault(r(2908)),l=r(9218),f=r(2136),d=r(2474),h=(0,c.default)("client");function p(e){return e.split(" ").sort().join(" ")}function m(e,t){var r=this,c=t.name,m=t.version,y=null;return function(){return o.__awaiter(r,void 0,void 0,function(){var t,r,b,g,v,w,_,S,E;return o.__generator(this,function(x){switch(x.label){case 0:if(y)return[2,y];a.custom.setHttpOptionsDefaults({headers:o.__assign({"User-Agent":"".concat(c,"/").concat(m)},e.enableTelemetry?{"Auth0-Client":n.from(JSON.stringify({name:c,version:m,env:{node:i.version}})).toString("base64")}:void 0),timeout:e.httpTimeout}),x.label=1;case 1:return x.trys.push([1,3,,4]),[4,a.Issuer.discover(e.issuerBaseURL)];case 2:return t=x.sent(),[3,4];case 3:throw r=x.sent(),new l.DiscoveryError(r,e.issuerBaseURL);case 4:if((b=Array.isArray(t.id_token_signing_alg_values_supported)?t.id_token_signing_alg_values_supported:[]).includes(e.idTokenSigningAlg)||h("ID token algorithm %o is not supported by the issuer. Supported ID token algorithms are: %o.",e.idTokenSigningAlg,b),g=p(e.authorizationParams.response_type),(v=Array.isArray(t.response_types_supported)?t.response_types_supported:[]).map(p),v.includes(g)||h("Response type %o is not supported by the issuer. Supported response types are: %o.",g,v),w=e.authorizationParams.response_mode,_=Array.isArray(t.response_modes_supported)?t.response_modes_supported:[],w&&!_.includes(w)&&h("Response mode %o is not supported by the issuer. Supported response modes are %o.",w,_),!e.clientAssertionSigningKey)return[3,6];return E=(0,d.createPrivateKey)({key:e.clientAssertionSigningKey}),[4,(0,f.exportJWK)(E)];case 5:S={keys:[x.sent()]},x.label=6;case 6:return(y=new t.Client({client_id:e.clientID,client_secret:e.clientSecret,id_token_signed_response_alg:e.idTokenSigningAlg,token_endpoint_auth_method:e.clientAuthMethod,token_endpoint_auth_signing_alg:e.clientAssertionSigningAlg},S))[a.custom.clock_tolerance]=e.clockTolerance,e.idpLogout&&(e.auth0Logout||s.default.parse(t.metadata.issuer).hostname.match("\\.auth0\\.com$")&&!1!==e.auth0Logout?Object.defineProperty(y,"endSessionUrl",{value:function(r){r.id_token_hint;var n=r.post_logout_redirect_uri,i=o.__rest(r,["id_token_hint","post_logout_redirect_uri"]),a=s.default.parse((0,u.default)(t.metadata.issuer,"/v2/logout"));return a.query=o.__assign(o.__assign({},i),{returnTo:n,client_id:e.clientID}),Object.entries(a.query).forEach(function(e){var t=o.__read(e,2),r=t[0];null==t[1]&&delete a.query[r]}),s.default.format(a)}}):t.end_session_endpoint||h("the issuer does not support RP-Initiated Logout")),[2,y]}})})}}t.default=m},7257:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.get=void 0;var n=r(655).__importDefault(r(2705)),i=r(7926),o=/^https:/i,a=n.default.object({secret:n.default.alternatives([n.default.string().min(8),n.default.array().items(n.default.string().min(8))]).required(),session:n.default.object({rolling:n.default.boolean().optional().default(!0),rollingDuration:n.default.when(n.default.ref("rolling"),{is:!0,then:n.default.number().integer().messages({"number.base":'"session.rollingDuration" must be provided an integer value when "session.rolling" is true'}),otherwise:n.default.boolean().valid(!1).messages({"any.only":'"session.rollingDuration" must be false when "session.rolling" is disabled'})}).optional().default(function(e){return!!e.rolling&&86400}),absoluteDuration:n.default.when(n.default.ref("rolling"),{is:!1,then:n.default.number().integer().messages({"number.base":'"session.absoluteDuration" must be provided an integer value when "session.rolling" is false'}),otherwise:n.default.alternatives([n.default.number().integer(),n.default.boolean().valid(!1)])}).optional().default(604800),name:n.default.string().token().optional().default("appSession"),store:n.default.object().optional(),genId:n.default.function().maxArity(1).when(n.default.ref("store"),{then:n.default.required()}),storeIDToken:n.default.boolean().optional().default(!0),cookie:n.default.object({domain:n.default.string().optional(),transient:n.default.boolean().optional().default(!1),httpOnly:n.default.boolean().optional().default(!0),sameSite:n.default.string().valid("lax","strict","none").optional().default("lax"),secure:n.default.when(n.default.ref("/baseURL"),{is:n.default.string().pattern(o),then:n.default.boolean().valid(!0).default(!0).messages({"any.only":"Cookies must be secure when base url is https."}),otherwise:n.default.boolean().valid(!1).default(!1).messages({"any.only":"Cookies set with the `Secure` property w
1ont be attached to http requests"})}),path:n.default.string().uri({relativeOnly:!0}).optional()}).default().unknown(!1)}).default().unknown(!1),auth0Logout:n.default.boolean().optional(),authorizationParams:n.default.object({response_type:n.default.string().optional().valid("id_token","code id_token","code").default("id_token"),scope:n.default.string().optional().pattern(/\bopenid\b/,"contains openid").default("openid profile email"),response_mode:n.default.string().optional().when("response_type",{is:"code",then:n.default.valid("query","form_post"),otherwise:n.default.valid("form_post").default("form_post")})}).optional().unknown(!0).default(),baseURL:n.default.string().uri().required().when(n.default.ref("authorizationParams.response_mode"),{is:"form_post",then:n.default.string().pattern(o).rule({warn:!0,message:"Using 'form_post' for response_mode may cause issues for you logging in over http, see https://github.com/auth0/express-openid-connect/blob/master/FAQ.md"})}),clientID:n.default.string().required(),clientSecret:n.default.string().when(n.default.ref("clientAuthMethod",{adjust:function(e){return e&&e.includes("client_secret")}}),{is:!0,then:n.default.string().required().messages({"any.required":'"clientSecret" is required for the clientAuthMethod {{clientAuthMethod}}'})}).when(n.default.ref("idTokenSigningAlg",{adjust:function(e){return e&&e.startsWith("HS")}}),{is:!0,then:n.default.string().required().messages({"any.required":'"clientSecret" is required for ID tokens with HMAC based algorithms'})}),clockTolerance:n.default.number().optional().default(60),httpTimeout:n.default.number().optional().default(5e3),enableTelemetry:n.default.boolean().optional().default(!0),getLoginState:n.default.function().optional().default(function(){return i.getLoginState}),identityClaimFilter:n.default.array().optional().default(["aud","iss","iat","exp","nbf","nonce","azp","auth_time","s_hash","at_hash","c_hash"]),idpLogout:n.default.boolean().optional().default(function(e){return e.auth0Logout||!1}),idTokenSigningAlg:n.default.string().insensitive().not("none").optional().default("RS256"),issuerBaseURL:n.default.string().uri().required(),legacySameSiteCookie:n.default.boolean().optional().default(!0),routes:n.default.object({callback:n.default.string().uri({relativeOnly:!0}).required(),postLogoutRedirect:n.default.string().uri({allowRelative:!0}).default("")}).default().unknown(!1),clientAuthMethod:n.default.string().valid("client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none").optional().default(function(e){return"id_token"===e.authorizationParams.response_type?"none":e.clientAssertionSigningKey?"private_key_jwt":"client_secret_basic"}).when(n.default.ref("authorizationParams.response_type",{adjust:function(e){return e&&e.includes("code")}}),{is:!0,then:n.default.string().invalid("none").messages({"any.only":"Public code flow clients are not supported."})}),clientAssertionSigningKey:n.default.any().optional().when(n.default.ref("clientAuthMethod"),{is:"private_key_jwt",then:n.default.any().required().messages({"any.required":'"clientAssertionSigningKey" is required for a "clientAuthMethod" of "private_key_jwt"'})}),clientAssertionSigningAlg:n.default.string().optional().valid("RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES256K","ES384","ES512","EdDSA")}),s=function(e){void 0===e&&(e={});var t=a.validate(e,{allowUnknown:!0}),r=t.value,n=t.error,i=t.warning;if(n)throw TypeError(n.details[0].message);return i&&console.warn(i.message),r};t.get=s},4224:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(655),i=n.__importDefault(r(4078)),o=n.__importDefault(r(9009)),a=r(1831),s=r(8937),u=r(9218);function c(e){return(0,i.default)(e.baseURL,e.routes.callback)}function l(e,t,r,i){var l=this;return function(f,d,h){return n.__awaiter(l,void 0,void 0,function(){var l,p,m,y,b,g,v,w,_,S,E,x;return n.__generator(this,function(n){switch(n.label){case 0:return[4,t()];case 1:if(l=n.sent(),p=(null==h?void 0:h.redirectUri)||c(e),!(y=l.callbackParams(f)).state)throw(0,o.default)(404,new u.MissingStateParamError);return[4,i.read("state",f,d)];case 2:if(!(b=n.sent()))throw(0,o.default)(400,new u.MissingStateCookieError);return[4,i.read("max_age",f,d)];case 3:return g=n.sent(),[4,i.read("code_verifier",f,d)];case 4:return v=n.sent(),[4,i.read("nonce",f,d)];case 5:return w=n.sent(),[4,i.read("response_type",f,d)];case 6:_=n.sent()||e.authorizationParams.response_type,n.label=7;case 7:return n.trys.push([7,9,,10]),[4,l.callback(p,y,{max_age:void 0!==g?+g:void 0,code_verifier:v,nonce:w,state:b,response_type:_},{exchangeBody:null==h?void 0:h.authorizationParams})];case 8:return m=n.sent(),[3,10];case 9:throw S=(S=n.sent())instanceof a.errors.OPError?new u.IdentityProvi
1derError(S):S instanceof a.errors.RPError?new u.ApplicationError(S):new u.EscapedError(S.message),(0,o.default)(400,S,{openIdState:(0,s.decodeState)(b)});case 10:return E=(0,s.decodeState)(b),[4,r.fromTokenSet(m)];case 11:if(x=n.sent(),!(null==h?void 0:h.afterCallback))return[3,13];return[4,h.afterCallback(f,d,x,E)];case 12:x=n.sent(),n.label=13;case 13:if(!x)return[3,15];return[4,r.create(f,d,x)];case 14:n.sent(),n.label=15;case 15:return d.writableEnded||(d.writeHead(302,{Location:d.getHeader("Location")||E.returnTo||e.baseURL}),d.end((0,u.htmlSafe)(E.returnTo||e.baseURL))),[2]}})})}}t.default=l},8462:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(655),i=n.__importDefault(r(4078)),o=r(7596),a=r(8937),s=n.__importDefault(r(2908)),u=r(9218),c=(0,s.default)("handlers");function l(e){return(0,i.default)(e.baseURL,e.routes.callback)}function f(e,t,r){var i=this;return function(s,f,d){return void 0===d&&(d={}),n.__awaiter(i,void 0,void 0,function(){var i,h,p,m,y,b,g,v,w,_,S,E,x,k,A,M,O;return n.__generator(this,function(j){switch(j.label){case 0:return[4,t()];case 1:return i=j.sent(),h=d.returnTo||e.baseURL,(p=n.__assign({returnTo:h,getLoginState:e.getLoginState},d)).authorizationParams=n.__assign(n.__assign({redirect_uri:l(e)},e.authorizationParams),p.authorizationParams||{}),m={sameSite:"form_post"===p.authorizationParams.response_mode?"none":e.session.cookie.sameSite},[4,p.getLoginState(s,p)];case 2:if("object"!=typeof(y=j.sent()))throw Error("Custom state value must be an object.");if(y.nonce=r.generateNonce(),y.returnTo=y.returnTo||p.returnTo,(g=(b=p.authorizationParams.response_type).includes("code"))&&(c("response_type includes code, the authorization request will use PKCE"),y.code_verifier=r.generateCodeVerifier()),!(b!==e.authorizationParams.response_type))return[3,4];return[4,r.save("response_type",s,f,n.__assign(n.__assign({},m),{value:b}))];case 3:j.sent(),j.label=4;case 4:return w=[n.__assign({},p.authorizationParams)],M={},[4,r.save("nonce",s,f,m)];case 5:return M.nonce=j.sent(),[4,r.save("state",s,f,n.__assign(n.__assign({},m),{value:(0,a.encodeState)(y)}))];case 6:if(_=[n.__assign.apply(void 0,w.concat([(M.state=j.sent(),M)]))],!g)return[3,8];return O={},x=(E=r).calculateCodeChallenge,[4,r.save("code_verifier",s,f,m)];case 7:return O.code_challenge=x.apply(E,[j.sent()]),O.code_challenge_method="S256",S=O,[3,9];case 8:S=void 0,j.label=9;case 9:if(v=n.__assign.apply(void 0,_.concat([S])),k=["id_token","code id_token","code"],(0,o.strict)(k.includes(v.response_type),"response_type should be one of ".concat(k.join(", "))),(0,o.strict)(/\bopenid\b/.test(v.scope),'scope should contain "openid"'),!v.max_age)return[3,11];return[4,r.save("max_age",s,f,n.__assign(n.__assign({},m),{value:v.max_age.toString()}))];case 10:j.sent(),j.label=11;case 11:return c("redirecting to %s",A=i.authorizationUrl(v)),f.writeHead(302,{Location:A}),f.end((0,u.htmlSafe)(A)),[2]}})})}}t.default=f},8787:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(655),i=n.__importDefault(r(1987)),o=n.__importDefault(r(4078)),a=n.__importDefault(r(2908)),s=r(9218),u=(0,a.default)("logout");function c(e,t,r){var a=this;return function(c,l,f){return void 0===f&&(f={}),n.__awaiter(a,void 0,void 0,function(){var a,d;return n.__generator(this,function(h){switch(h.label){case 0:return u("logout() with return url: %s",a=f.returnTo||e.routes.postLogoutRedirect),null===i.default.parse(a).host&&(a=(0,o.default)(e.baseURL,a)),[4,r.isAuthenticated(c,l)];case 1:if(!h.sent())return u("end-user already logged out, redirecting to %s",a),l.writeHead(302,{Location:a}),l.end((0,s.htmlSafe)(a)),[2];return[4,r.getIdToken(c,l)];case 2:return d=h.sent(),[4,r.delete(c,l)];case 3:if(h.sent(),!e.idpLogout)return u("performing a local only logout, redirecting to %s",a),l.writeHead(302,{Location:a}),l.end((0,s.htmlSafe)(a)),[2];return[4,t()];case 4:return u("logging out of identity provider, redirecting to %s",a=h.sent().endSessionUrl(n.__assign(n.__assign({},f.logoutParams),{post_logout_redirect_uri:a,id_token_hint:d}))),l.writeHead(302,{Location:a}),l.end((0,s.htmlSafe)(a)),[2]}})})}}t.default=c},7926:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.getLoginState=void 0;var n=(0,r(655).__importDefault(r(2908)).default)("get-login-state"),i=function(e,t){var r={returnTo:t.returnTo};return n("adding default state %O",r),r};t.getLoginState=i},9919:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.clientFactory=t.callbackHandler=t.logoutHandler=t.loginHandler=t.getConfig=t.TransientStore=t.StatefulSession=t.AbstractSession=t.StatelessSession=t.ApplicationError=t.IdentityProviderError=t.MissingStateCookieError=t.MissingStateParamError=t.Cookies=t.NodeCookies=void 0;var i=r(5238);Object.defineProperty(t,"NodeCookies",{enumerable:!0,get:function(){return n(i).default}}),Object.defineProperty(t,"Cookies",{enumerable:!0,get:function(){return i.Cookies}});var o=r(9218);Object.defineProperty(t,"MissingStateParamError",{enumerable:!0,get:function(){return o.MissingStateParamError}}),Object.defineProperty(t,"MissingStateCookieError",{enumerable:!0,get:function(){return o.MissingStateCookieError}}),Object.defineProperty(t,"IdentityProviderError",{enumerable:!0,get:function(){return o.IdentityProviderError}}),Object.defineProperty(t,"ApplicationError",{enumerable:!0,get:function(){return o.ApplicationError}});var a=r(1615);Object.defineProperty(t,"StatelessSession",{enumerable:!0,get:function(){return a.StatelessSession}});var s=r(5867);Object.defineProperty(t,"AbstractSession",{enumerable:!0,get:function(){return s.AbstractSession}});var u=r(7361);Object.defineProperty(t,"StatefulSession",{enumerable:!0,get:function(){return u.StatefulSession}});var c=r(2019);Object.defineProperty(t,"TransientStore",{enumerable:!0,get:function(){return n(c).default}});var l=r(7257);Object.defineProperty(t,"getConfig",{enumerable:!0,get:function(){return l.get}});var f=r(8462);Object.defineProperty(t,"loginHandler",{enumerable:!0,get:function(){return n(f).default}});var d=r(8787);Object.defineProperty(t,"logoutHandler",{enumerable:!0,get:function(){return n(d).default}});var h=r(4224);Object.defineProperty(t,"callbackHandler",{enumerable:!0,get:function(){return n(h).default}});var p=r(4839);Object.defineProperty(t,"clientFactory",{enumerable:!0,get:function(){return n(p).default}})},5867:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractSession=void 0;var n=r(655),i=(0,n.__importDefault(r(2908)).default)("session"),o=function(){return Date.now()/1e3|0},a=function(e,t){if(!e)throw Error(t)},s=function(){function e(e,t){this.config=e,this.Cookies=t}return e.prototype.read=function(e){return n.__awaiter(this,void 0,void 0,function(){var t,r,s,u,c,l,f,d;return n.__generator(this,function(n){switch(n.label){case 0:r=(t=this.config.session).rollingDuration,s=t.absoluteDuration,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.getSession(e)];case 2:if(u=n.sent())return c=u.header,l=u.data,f=c.iat,d=c.uat,a(c.exp>o(),"it is expired based on options when it was established"),r&&a(d+r>o(),"it is expired based on current rollingDuration rules"),"number"==typeof s&&a(f+s>o(),"it is expired based on current absoluteDuration rules"),[2,[l,f]];return[3,4];case 3:return i("error handling session %O",n.sent()),[3,4];case 4:return[2,[]]}})})},e.prototype.save=function(e,t,r,i){return n.__awaiter(this,void 0,void 0,function(){var a,s,u,c,l,f,d,h;return n.__generator(this,function(p){switch(p.label){case 0:if(s=(a=this.config.session.cookie).transient,u=n.__rest(a,["transient"]),r)return[3,2];return[4,this.deleteSession(e,t,u)];case 1:case 3:return p.sent(),[2];case 2:return c=void 0===i,l=o(),f="number"==typeof i?i:l,d=this.calculateExp(f,l),h=n.__assign({},u),s||(h.expires=new Date(1e3*d)),[4,this.setSession(e,t,r,l,f,d,h,c)]}})})},e.prototype.calculateExp=function(e,t){var r=this.config.session.absoluteDuration,n=this.config.session,i=n.rolling,o=n.rollingDuration;return"number"!=typeof r?t+o:i?Math.min(t+o,e+r):e+r},e}();t.AbstractSession=s},7361:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StatefulSession=void 0;var n=r(655),i=n.__importDefault(r(2908)),o=r(5867),a=r(7474),s=r(3105),u=(0,i.default)("stateful-session"),c=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.config=t,n.Cookies=r,n.store=t.session.store,n}return n.__extends(t,e),t.prototype.getKeys=function(){return n.__awaiter(this,void 0,void 0,function(){var e,t,r;return n.__generator(this,function(n){switch(n.label){case 0:if(this.keys)return[3,2];return t=Array.isArray(e=this.config.secret)?e:[e],r=this,[4,Promise.all(t.map(s.signing))];case 1:r.keys=n.sent(),n.label=2;case 2:return[2,this.keys]}})})},t.prototype.getSession=function(e){return n.__awaiter(this,void 0,void 0,function(){var t,r,i,o;return n.__generator(this,function(n){switch(n.label){case 0:return t=this.config.session.name,r=new this.Cookies().getAll(e),[4,this.getKeys()];case 1:return i=n.sent(),[4,(0,a.getCookieValue)(t,r[t],i)];case 2:if(o=n.sent())return u("reading session from %s store",o),[2,this.store.get(o)];return[2]}})})},t.prototype.setSession=function(e,t,r,i,o,s,c,l){return n.__awaiter(this,void 0,void 0,function(){var f,d,h,p,m,y,b,g;return n.__generator(this,function(n){switch(n.label){case 0:return d=(f=this.config.session).name,h=f.genId,m=(p=new this.Cookies).getAll(e),[4,this.getKeys()];case 1:return y=n.sent(),[4,(0,a.getCookieValue)(d,m[d],y)];case 2:if(!((b=n.sent())&&l))return[3,4];return u("regenerating session id %o to prevent session fixation",b),[4,this.store.delete(b)];case 3:n.sent(),b=void 0,n.label=4;case 4:if(b)return[3,6];return[4,h(e)];case 5:u("generated new session id %o",b=n.sent()),n.label=6;case 6:return u("set session %o",b),[4,(0,a.generateCookieValue)(d,b,y[0])];case 7:return g=n.sent(),p.set(d,g,c),p.commit(t),[4,this.store.set(b,{header:{iat:o,uat:i,exp:s},data:r})];case 8:return n.sent(),[2]}})})},t.prototype.deleteSession=function(e,t,r){return n.__awaiter(this,void 0,void 0,function(){var i,o,s,c,l;return n.__generator(this,function(n){switch(n.label){case 0:return i=this.config.session.name,s=(o=new this.Cookies).getAll(e),[4,this.getKeys()];case 1:return c=n.sent(),[4,(0,a.getCookieValue)(i,s[i],c)];case 2:if(!(l=n.sent()))return[3,4];return u("deleting session %o",l),o.clear(i,r),o.commit(t),[4,this.store.delete(l)
1];case 3:n.sent(),n.label=4;case 4:return[2]}})})},t}(o.AbstractSession);t.StatefulSession=c},1615:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StatelessSession=void 0;var n=r(655),i=n.__importStar(r(2136)),o=r(6489),a=n.__importDefault(r(2908)),s=r(3105),u=r(5867),c=(0,a.default)("stateless-session"),l=4096,f="dir",d="A256GCM",h=function(e){return null!==e},p=function(e){function t(t,r){var i=e.call(this,t,r)||this;i.config=t,i.Cookies=r;var a=i.config.session,s=a.cookie,u=s.transient,c=n.__rest(s,["transient"]),f=a.name,d=n.__assign({},c);u||(d.expires=new Date);var h=(0,o.serialize)("".concat(f,".0"),"",d);return i.chunkSize=l-h.length,i}return n.__extends(t,e),t.prototype.getKeys=function(){return n.__awaiter(this,void 0,void 0,function(){var e,t,r;return n.__generator(this,function(n){switch(n.label){case 0:if(this.keys)return[3,2];return t=Array.isArray(e=this.config.secret)?e:[e],r=this,[4,Promise.all(t.map(s.encryption))];case 1:r.keys=n.sent(),n.label=2;case 2:return[2,this.keys]}})})},t.prototype.encrypt=function(e,t){var r=t.iat,o=t.uat,a=t.exp;return n.__awaiter(this,void 0,void 0,function(){var t;return n.__generator(this,function(s){switch(s.label){case 0:return[4,this.getKeys()];case 1:return t=n.__read.apply(void 0,[s.sent(),1])[0],[4,new i.EncryptJWT(n.__assign({},e)).setProtectedHeader({alg:f,enc:d,uat:o,iat:r,exp:a}).encrypt(t)];case 2:return[2,s.sent()]}})})},t.prototype.decrypt=function(e){return n.__awaiter(this,void 0,void 0,function(){var t,r,o,a,s,u,c;return n.__generator(this,function(l){switch(l.label){case 0:return[4,this.getKeys()];case 1:t=l.sent(),l.label=2;case 2:l.trys.push([2,9,10,11]),a=(o=n.__values(t)).next(),l.label=3;case 3:if(a.done)return[3,8];s=a.value,l.label=4;case 4:return l.trys.push([4,6,,7]),[4,i.jwtDecrypt(e,s)];case 5:return[2,l.sent()];case 6:return r=l.sent(),[3,7];case 7:return a=o.next(),[3,3];case 8:return[3,11];case 9:return u={error:l.sent()},[3,11];case 10:try{a&&!a.done&&(c=o.return)&&c.call(o)}finally{if(u)throw u.error}return[7];case 11:throw r}})})},t.prototype.getSession=function(e){return n.__awaiter(this,void 0,void 0,function(){var t,r,i,o;return n.__generator(this,function(a){switch(a.label){case 0:if((t=this.config.session.name)in(r=new this.Cookies().getAll(e))?(c("reading session from %s cookie",t),i=r[t]):"".concat(t,".0") in r&&(i=Object.entries(r).map(function(e){var r=n.__read(e,2),i=r[0],o=r[1],a=i.match("^".concat(t,"\\.(\\d+)$"));return a?[a[1],o]:null}).filter(h).sort(function(e,t){var r=n.__read(e,1)[0],i=n.__read(t,1)[0];return parseInt(r,10)-parseInt(i,10)}).map(function(e){var r=n.__read(e,2),i=r[0],o=r[1];return c("reading session chunk from %s.%d cookie",t,i),o}).join("")),!i)return[3,2];return[4,this.decrypt(i)];case 1:return[2,{header:(o=a.sent()).protectedHeader,data:o.payload}];case 2:return[2]}})})},t.prototype.setSession=function(e,t,r,i,o,a,s){return n.__awaiter(this,void 0,void 0,function(){var u,l,f,d,h,p,m,y,b,g,v,w,_;return n.__generator(this,function(S){switch(S.label){case 0:return u=this.config.session.name,f=(l=new this.Cookies).getAll(e),c("found session, creating signed session cookie(s) with name %o(.i)",u),[4,this.encrypt(r,{iat:o,uat:i,exp:a})];case 1:if((h=Math.ceil((d=S.sent()).length/this.chunkSize))>1){for(c("cookie size greater than %d, chunking",this.chunkSize),p=0;p<h;p++)m=d.slice(p*this.chunkSize,(p+1)*this.chunkSize),y="".concat(u,".").concat(p),l.set(y,m,s);u in f&&l.clear(u,s)}else{l.set(u,d,s);try{for(g=(b=n.__values(Object.keys(f))).next();!g.done;g=b.next())(v=g.value).match("^".concat(u,"\\.\\d$"))&&l.clear(v,s)}catch(e){w={error:e}}finally{try{g&&!g.done&&(_=b.return)&&_.call(b)}finally{if(w)throw w.error}}}return l.commit(t,this.config.session.name),[2]}})})},t.prototype.deleteSession=function(e,t,r){return n.__awaiter(this,void 0,void 0,function(){var i,o,a,s,u,c,l,f;return n.__generator(this,function(d){i=this.config.session.name,a=(o=new this.Cookies).getAll(e);try{for(u=(s=n.__values(Object.keys(a))).next();!u.done;u=s.next())(c=u.value).match("^".concat(i,"(?:\\.\\d)?$"))&&(o.clear(c,r),o.commit(t,this.config.session.name))}catch(e){l={error:e}}finally{try{u&&!u.done&&(f=s.return)&&f.call(s)}finally{if(l)throw l.error}}return[2]})})},t}(u.AbstractSession);t.StatelessSession=p},2019:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});var n=r(655),i=r(1831),o=r(7474),a=r(3105),s=n.__importDefault(r(5238)),u=function(){function e(e){this.config=e}return e.prototype.getKeys=function(){return n.__awaiter(this,void 0,void 0,function(){var e,t,r;return n.__generator(this,function(n){switch(n.label){case 0:if(this.keys)return[3,2];return t=Array.isArray(e=this.config.secret)?e:[e],r=this,[4,Promise.all(t.map(a.signing))];case 1:r.keys=n.sent(),n.label=2;case 2:return[2,this.keys]}})})},e.prototype.save=function(e,t,r,i){var a=i.sameSite,u=void 0===a?"none":a,c=i.value,l=void 0===c?this.generateNonce():c;return n.__awaiter(this,void 0,void 0,function(){var t,i,a,c,f,d,h,p;return n.__generator(this,function(m){switch(m.label){case 0:return t="none"===u,a=(i=this.config.session.cookie).domain,c=i.path,f={httpOnly:!0,secure:i.secure,domain:a,path:c},[4,this.getKeys()];case 1:return d=n.__read.apply(void 0,[m.sent(),1])[0],h=new s.default,[4,(0,o.generateCookieValue)(e,l,d)];case 2:if(p=m.sent(),h.set(e,p,n.__assign(n.__assign({},f),{sameSite:u,secure:!!t||f.secure})),!(t&&this.config.legacySameSiteCookie))return[3,4];return[4,(0,o.generateCookieValue)("_".concat(e),l,d)];case 3:p=m.sent(),h.set("_".concat(e),p,f),m.label=4;case 4:return h.commit(r),[2,l]}})})},e.prototype.read=function(e,t,r){return n.__awaiter(this,void 0,void 0,function(){var i,a,u,c,l,f,d,h;return n.__generator(this,function(n){switch(n.label){case 0:return a=(i=new s.default().getAll(t))[e],u=this.config.session.cookie,c=new s.default,[4,this.getKeys()];case 1:return l=n.sent(),[4,(0,o.getCookieValue)(e,a,l)];case 2:if(f=n.sent(),c.clear(e,u),!this.config.legacySameSiteCookie)return[3,5];if(d="_".concat(e),f)return[3,4];return h=i[d],[4,(0,o.getCookieValue)(d,h,l)];case 3:f=n.sent(),n.label=4;case 4:c.clear(d,u),n.label=5;case 5:return c.commit(r),[2,f]}})})},e.prototype.generateNonce=function(){return i.generators.nonce()},e.prototype.generateCodeVerifier=function(){return i.generators.codeVerifier()},e.prototype.calculateCodeChallenge=function(e){return i.generators.codeChallenge(e)},e}();t.default=u},5238:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Cookies=void 0;var n=r(655),i=r(6489),o=function(){function e(){this.cookies=[]}return e.prototype.set=function(e,t,r){void 0===r&&(r={}),this.cookies.push((0,i.serialize)(e,t,r))},e.prototype.clear=function(e,t){void 0===t&&(t={});var r=t.domain,n=t.path,i=t.secure,o=t.sameSite,a={domain:r,path:n,maxAge:0};"none"===o&&(a.secure=i,a.sameSite=o),this.set(e,"",a)},e.prototype.commit=function(e,t){var r=this.getSetCookieHeader(e);if(t){var i=RegExp("^".concat(t,"(\\.\\d+)?="));r=r.filter(function(e){return!i.test(e)})}this.setSetCookieHeader(e,n.__spreadArray(n.__spreadArray([],n.__read(r),!1),n.__read(this.cookies),!1))},e}();t.Cookies=o;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.getSetCookieHeader=function(e){var t=e.getHeader("Set-Cookie")||[];return Array.isArray(t)||(t=[t]),t},t.prototype.setSetCookieHeader=function(e,t){e.setHeader("Set-Cookie",t)},t.prototype.getAll=function(e){return(0,i.parse)(e.headers.cookie||"")},t}(o);t.default=a},2908:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(655).__importDefault(r(1227));t.default=function(e){return(0,n.default)("nextjs-auth0").extend(e)}},8937:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeState=t.encodeState=void 0;var n=r(655),i=n.__importStar(r(2136)),o=r(9720);function a(e){e.nonce,e.code_verifier,e.max_age;var t=n.__rest(e,["nonce","code_verifier","max_age"]);return i.base64url.encode(JSON.stringify(t))}function s(e){try{return JSON.parse(new o.TextDecoder().decode(i.base64url.decode(e)))}catch(e){return}}t.encodeState=a,t.decodeState=s},9218:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.htmlSafe=t.DiscoveryError=t.IdentityProviderError=t.ApplicationError=t.MissingStateCookieError=t.MissingStateParamError=t.EscapedError=void 0;var n=r(655),i=function(e){function t(r){var n=e.call(this,l(r))||this;return Object.setPrototypeOf(n,t.prototype),n}return n.__extends(t,e),t}(Error);t.EscapedError=i;var o=function(e){function t(){var r=e.call(this,t.message)||this;return Object.setPrototypeOf(r,t.prototype),r}return n.__extends(t,e),t.message="Missing state parameter in Authorization Response.",t}(Error);t.MissingStateParamError=o;var a=function(e){function t(){var r=e.call(this,t.message)||this;return Object.setPrototypeOf(r,t.prototype),r}return n.__extends(t,e),t.message="Missing state cookie from login request (check login URL, callback URL and cookie config).",t}(Error);t.MissingStateCookieError=a;var s=function(e){function t(r){var n=e.call(this,r.message)||this;return Object.setPrototypeOf(n,t.prototype),n}return n.__extends(t,e),t}(i);t.ApplicationError=s;var u=function(e){function t(r){var n=e.call(this,r.message)||this;return n.error=l(r.error),n.errorDescription=l(r.error_description),Object.setPrototypeOf(n,t.prototype),n}return n.__extends(t,e),t}(i);
1t.IdentityProviderError=u;var c=function(e){function t(r,n){var i=e.call(this,"Discovery requests failing for ".concat(n,", ").concat(r.message))||this;return Object.setPrototypeOf(i,t.prototype),i}return n.__extends(t,e),t}(i);function l(e){return e&&e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}t.DiscoveryError=c,t.htmlSafe=l},3105:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signing=t.encryption=void 0;var n=r(655).__importDefault(r(9718)),i=32,o="JWE CEK",a="JWS Cookie Signing",s="sha256",u=function(e){return(0,n.default)(s,e,"",o,i)};t.encryption=u;var c=function(e){return(0,n.default)(s,e,"",a,i)};t.signing=c},7474:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateCookieValue=t.getCookieValue=void 0;var n=r(655),i=n.__importStar(r(2136)),o=function(e,t,r){return n.__awaiter(void 0,void 0,void 0,function(){var o,a,s,u,c,l,f,d,h,p;return n.__generator(this,function(m){switch(m.label){case 0:if(!t)return[2,void 0];a=(o=n.__read(t.split("."),2))[0],s=o[1],u={protected:i.base64url.encode(JSON.stringify({alg:"HS256",b64:!1,crit:["b64"]})),payload:"".concat(e,"=").concat(a),signature:s},m.label=1;case 1:m.trys.push([1,8,9,10]),l=(c=n.__values(r)).next(),m.label=2;case 2:if(l.done)return[3,7];f=l.value,m.label=3;case 3:return m.trys.push([3,5,,6]),[4,i.flattenedVerify(u,f,{algorithms:["HS256"]})];case 4:return m.sent(),[2,a];case 5:return d=m.sent(),[3,6];case 6:return l=c.next(),[3,2];case 7:return[3,10];case 8:return h={error:m.sent()},[3,10];case 9:try{l&&!l.done&&(p=c.return)&&p.call(c)}finally{if(h)throw h.error}return[7];case 10:return[2]}})})};t.getCookieValue=o;var a=function(e,t,r){return n.__awaiter(void 0,void 0,void 0,function(){var o;return n.__generator(this,function(n){switch(n.label){case 0:return[4,new i.FlattenedSign(new TextEncoder().encode("".concat(e,"=").concat(t))).setProtectedHeader({alg:"HS256",b64:!1,crit:["b64"]}).sign(r)];case 1:return o=n.sent().signature,[2,"".concat(t,".").concat(o)]}})})};t.generateCookieValue=a},3606:function(e,t,r){"use strict";n={value:!0},n=t.aF=n=n=t.dr=void 0;var n,i=r(655),o=i.__importStar(r(5933));Object.defineProperty(t,"dr",{enumerable:!0,get:function(){return o.default}}),n={enumerable:!0,get:function(){return o.UserContext}},n={enumerable:!0,get:function(){return o.RequestError}},Object.defineProperty(t,"aF",{enumerable:!0,get:function(){return o.useUser}});var a=i.__importDefault(r(4519));n={enumerable:!0,get:function(){return a.default}}},766:function(e,t,r){"use strict";var n=r(3454);Object.defineProperty(t,"__esModule",{value:!0}),t.useConfig=void 0;var i=r(655).__importStar(r(7294)),o=(0,i.createContext)({}),a=function(){return(0,i.useContext)(o)};t.useConfig=a,t.default=function(e){var t=e.children,r=e.loginUrl,a=void 0===r?n.env.NEXT_PUBLIC_AUTH0_LOGIN||"/api/auth/login":r;return i.default.createElement(o.Provider,{value:{loginUrl:a}},t)}},5933:function(e,t,r){"use strict";var n=r(3454);Object.defineProperty(t,"__esModule",{value:!0}),t.useUser=t.UserContext=t.RequestError=void 0;var i=r(655),o=i.__importStar(r(7294)),a=i.__importDefault(r(766)),s=function(e){function t(r){var n=e.call(this)||this;return n.status=r,Object.setPrototypeOf(n,t.prototype),n}return i.__extends(t,e),t}(Error);t.RequestError=s;var u="You forgot to wrap your app in <UserProvider>";t.UserContext=(0,o.createContext)({get user(){throw Error(u)},get error(){throw Error(u)},get isLoading(){throw Error(u)},checkSession:function(){throw Error(u)}});var c=function(){return(0,o.useContext)(t.UserContext)};t.useUser=c;var l=function(e){return i.__awaiter(void 0,void 0,void 0,function(){var t,r;return i.__generator(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,fetch(e)];case 1:return t=n.sent(),[3,3];case 2:throw r=n.sent(),new s(0);case 3:if(204==t.status)return[2,void 0];if(t.ok)return[2,t.json()];throw new s(t.status)}})})};t.default=function(e){var r=e.children,s=e.user,u=e.profileUrl,c=void 0===u?n.env.NEXT_PUBLIC_AUTH0_PROFILE||"/api/auth/me":u,f=e.loginUrl,d=e.fetcher,h=void 0===d?l:d,p=i.__read((0,o.useState)({user:s,isLoading:!s}),2),m=p[0],y=p[1],b=(0,o.useCallback)(function(){return i.__awaiter(void 0,void 0,void 0,function(){var e,t;return i.__generator(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,h(c)];case 1:return e=r.sent(),y(function(t){return i.__assign(i.__assign({},t),{user:e,error:void 0})}),[3,3];case 2:return t=r.sent(),y(function(e){return i.__assign(i.__assign({},e),{error:t})}),[3,3];case 3:return[2]}})})},[c]);(0,o.useEffect)(function(){m.user||function(){i.__awaiter(void 0,void 0,void 0,function(){return i.__generator(this,function(e){switch(e.label){case 0:return[4,b()];case 1:return e.sent(),y(function(e){return i.__assign(i.__assign({},e),{isLoading:!1})}),[2]}})})}()},[m.user]);var g=m.user,v=m.error,w=m.isLoading,_=(0,o.useMemo)(function(){return{user:g,error:v,isLoading:w,checkSession:b}},[g,v,w,b]);return o.default.createElement(a.default,{loginUrl:f},o.default.createElement(t.UserContext.Provider,{value:_},r))}},4519:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});var n=r(655),i=n.__importStar(r(7294)),o=r(766),a=r(5933),s=function(){return i.default.createElement(i.default.Fragment,null)},u=function(){return i.default.createElement(i.default.Fragment,null)},c=function(e,t){return void 0===t&&(t={}),function(r){var c=t.returnTo,l=t.onRedirecting,f=void 0===l?s:l,d=t.onError,h=void 0===d?u:d,p=(0,o.useConfig)().loginUrl,m=(0,a.useUser)(),y=m.user,b=m.error,g=m.isLoading;return((0,i.useEffect)(function(){if((!y||b)&&!g){if(c)e=c;else{var e,t=window.location.toString();e=t.replace(new URL(t).origin,"")||"/"}window.location.assign("".concat(p,"?returnTo=").concat(encodeURIComponent(e)))}},[y,b,g]),b)?h(b):y?i.default.createElement(e,n.__assign({user:y},r)):f()}};t.default=c},4182:function(e,t,r){"use strict";var n=r(3454);Object.defineProperty(t,"__esModule",{value:!0}),t.getConfig=t.getLoginUrl=void 0;var i=r(655),o=r(7257),a=["n","no","false","0","off"],s=function(e,t){return void 0===e||""===e?t:e&&"string"==typeof e?!a.includes(e.toLowerCase().trim()):!!e},u=function(e){return void 0===e||""===e?void 0:+e},c=function(e){return void 0===e||""===e?void 0:e.replace(/\s/g,"").split(",")},l=function(){return n.env.NEXT_PUBLIC_AUTH0_LOGIN||"/api/auth/login"};t.getLoginUrl=l;var f=function(e){void 0===e&&(e={});var r,a,l,f,d,h=n.env.AUTH0_SECRET,p=n.env.AUTH0_ISSUER_BASE_URL,m=n.env.AUTH0_BASE_URL,y="CtrXheERbF0yuiuD1SNOdAFtQCrkCSVN",b=n.env.AUTH0_CLIENT_SECRET,g=n.env.AUTH0_CLOCK_TOLERANCE,v=n.env.AUTH0_HTTP_TIMEOUT,w=n.env.AUTH0_ENABLE_TELEMETRY,_=n.env.AUTH0_IDP_LOGOUT,S=n.env.AUTH0_LOGOUT,E=n.env.AUTH0_ID_TOKEN_SIGNING_ALG,x=n.env.AUTH0_LEGACY_SAME_SITE_COOKIE,k=n.env.AUTH0_IDENTITY_CLAIM_FILTER,A=n.env.AUTH0_CALLBACK,M=n.env.AUTH0_POST_LOGOUT_REDIRECT,O=n.env.AUTH0_AUDIENCE,j=n.env.AUTH0_SCOPE,R=n.env.AUTH0_ORGANIZATION,C=n.env.AUTH0_SESSION_NAME,P=n.env.AUTH0_SESSION_ROLLING,T=n.env.AUTH0_SESSION_ROLLING_DURATION,I=n.env.AUTH0_SESSION_ABSOLUTE_DURATION,N=n.env.AUTH0_SESSION_STORE_ID_TOKEN,D=n.env.AUTH0_COOKIE_DOMAIN,L=n.env.AUTH0_COOKIE_PATH,B=n.env.AUTH0_COOKIE_TRANSIENT,U=n.env.AUTH0_COOKIE_HTTP_ONLY,$=n.env.AUTH0_COOKIE_SECURE,H=n.env.AUTH0_COOKIE_SAME_SITE,F=n.env.AUTH0_CLIENT_ASSERTION_SIGNING_KEY,q=n.env.AUTH0_CLIENT_ASSERTION_SIGNING_ALG,W=m&&!/^https?:\/\//.test(m)?"https://".concat(m):m,z=e.organization,K=i.__rest(e,["organization"]),Z=(0,o.get)(i.__assign(i.__assign({secret:h,issuerBaseURL:p,baseURL:W,clientID:y,clientSecret:b,clockTolerance:u(g),httpTimeout:u(v),enableTelemetry:s(w),idpLogout:s(_,!0),auth0Logout:s(S,!0),idTokenSigningAlg:E,legacySameSiteCookie:s(x),identityClaimFilter:c(k)},K),{authorizationParams:i.__assign({response_type:"code",audience:O,scope:j},K.authorizationParams),session:i.__assign(i.__assign({name:C,rolling:s(P),rollingDuration:T&&isNaN(Number(T))?s(T):u(T),absoluteDuration:I&&isNaN(Number(I))?s(I):u(I),storeIDToken:s(N)},K.session),{cookie:i.__assign({domain:D,path:L||"/",transient:s(B),httpOnly:s(U),secure:s($),sameSite:H},null===(r=K.session)||void 0===r?void 0:r.cookie)}),routes:{callback:(null===(a=K.routes)||void 0===a?void 0:a.callback)||A||"/api/auth/callback",postLogoutRedirect:(null===(l=K.routes)||void 0===l?void 0:l.postLogoutRedirect)||M},clientAssertionSigningKey:F,clientAssertionSigningAlg:q})),J={routes:i.__assign(i.__assign({},Z.routes),{login:(null===(f=K.routes)||void 0===f?void 0:f.login)||(0,t.getLoginUrl)(),unauthorized:(null===(d=K.routes)||void 0===d?void 0:d.unauthorized)||"/api/auth/401"}),identityClaimFilter:Z.identityClaimFilter,organization:z||R,session:{storeIDToken:Z.session.storeIDToken}};return{baseConfig:Z,nextConfig:J}};t.getConfig=f},7572:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(655),i=function(e,t,r){console.error(r),t.status(r.status||500).end()},o=function(e,t){t.status(401).json({error:"not_authenticated",description:"The user does not have an active session or is not authenticated"})};function a(e){var t=this,r=e.handleLogin,a=e.handleLogout,s=e.handleCallback,u=e.handleProfile;return function(e){void 0===e&&(e={});var c=e.onError,l=n.__rest(e,["onError"]),f=n.__assign({login:r,logout:a,callback:s,me:l.profile||u,401:o},l);return function(e,r){return n.__awaiter(t,void 0,void 0,function(){var t,o;return n.__generator(this,function(n){switch(n.label){case 0:t=Array.isArray(t=e.query.auth0)?t[0]:t,n.label=1;case 1:if(n.trys.push([1,5,,7]),!(o=t&&f.hasOwnProperty(t)&&f[t]))return[3,3];return[4,o(e,r)];case 2:return n.sent(),[3,4];case 3:r.status(404).end(),n.label=4;case 4:return[3,7];case 5:return[4,(c||i)(e,r,n.sent())];
1case 6:return n.sent(),r.writableEnded||r.status(200===r.statusCode?500:r.statusCode).end(),[3,7];case 7:return[2]}})})}}}t.default=a},5996:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(655),i=r(2321),o=r(7596),a=r(8445),s=r(9225),u=function(e,t){return function(r,n,i,a){return(t&&((0,o.strict)(i.user.org_id,"Organization Id (org_id) claim must be a string present in the ID token"),o.strict.equal(i.user.org_id,t,"Organization Id (org_id) claim value mismatch in the ID token; "+'expected "'.concat(t,'", found "').concat(i.user.org_id,'"'))),e)?e(r,n,i,a):i}};function c(e,t){var r=this,o=function(i,o,c){return void 0===c&&(c={}),n.__awaiter(r,void 0,void 0,function(){var r;return n.__generator(this,function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),(0,a.assertReqRes)(i,o),[4,e(i,o,n.__assign(n.__assign({},c),{afterCallback:u(c.afterCallback,c.organization||t.organization)}))];case 1:return[2,l.sent()];case 2:throw r=l.sent(),new s.CallbackHandlerError(r);case 3:return[2]}})})};return function(e,t,r){return e instanceof i.IncomingMessage&&t?o(e,t,r):"function"==typeof e?function(t,r){return o(t,r,e(t))}:function(t,r){return o(t,r,e)}
1}}t.default=c},1139:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.handlerFactory=t.profileHandler=t.logoutHandler=t.loginHandler=t.callbackHandler=void 0;var i=r(5996);Object.defineProperty(t,"callbackHandler",{enumerable:!0,get:function(){return n(i).default}});var o=r(2873);Object.defineProperty(t,"loginHandler",{enumerable:!0,get:function(){return n(o).default}});var a=r(9838);Object.defineProperty(t,"logoutHandler",{enumerable:!0,get:function(){return n(a).default}});var s=r(9098);Object.defineProperty(t,"profileHandler",{enumerable:!0,get:function(){return n(s).default}});var u=r(7572);Object.defineProperty(t,"handlerFactory",{enumerable:!0,get:function(){return n(u).default}})},2873:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(655),i=r(2321),o=n.__importDefault(r(4322)),a=r(8445),s=r(9225);function u(e,t,r){var u=this,c=function(i,c,l){return void 0===l&&(l={}),n.__awaiter(u,void 0,void 0,function(){var u,f,d,h,p;return n.__generator(this,function(m){switch(m.label){case 0:return m.trys.push([0,2,,3]),(0,a.assertReqRes)(i,c),i.query.returnTo&&(u=Array.isArray(i.query.returnTo)?i.query.returnTo[0]:i.query.returnTo,f=new URL((null===(p=l.authorizationParams)||void 0===p?void 0:p.redirect_uri)||r.baseURL),d=(0,o.default)(u,f),l=n.__assign(n.__assign({},l),{returnTo:d})),t.organization&&(l=n.__assign(n.__assign({},l),{authorizationParams:n.__assign({organization:t.organization},l.authorizationParams)})),[4,e(i,c,l)];case 1:return[2,m.sent()];case 2:throw h=m.sent(),new s.LoginHandlerError(h);case 3:return[2]}})})};return function(e,t,r){return e instanceof i.IncomingMessage&&t?c(e,t,r):"function"==typeof e?function(t,r){return c(t,r,e(t))}:function(t,r){return c(t,r,e)}}}t.default=u},9838:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(655),i=r(2321),o=r(8445),a=r(9225);function s(e){var t=this,r=function(r,i,s){return void 0===s&&(s={}),n.__awaiter(t,void 0,void 0,function(){var t;return n.__generator(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),(0,o.assertReqRes)(r,i),[4,e(r,i,s)];case 1:return[2,n.sent()];case 2:throw t=n.sent(),new a.LogoutHandlerError(t);case 3:return[2]}})})};return function(e,t,n){return e instanceof i.IncomingMessage&&t?r(e,t,n):"function"==typeof e?function(t,n){return r(t,n,e(t))}:function(t,n){return r(t,n,e)}}}t.default=s},9098:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(655),i=r(2321),o=r(2960),a=r(8445),s=r(9225);function u(e,t,r){var u=this,c=function(i,c,l){return void 0===l&&(l={}),n.__awaiter(u,void 0,void 0,function(){var u,f,d,h,p;return n.__generator(this,function(m){switch(m.label){case 0:return m.trys.push([0,10,,11]),(0,a.assertReqRes)(i,c),[4,r.isAuthenticated(i,c)];case 1:if(!m.sent())return c.status(204).end(),[2];return[4,r.get(i,c)];case 2:if(u=m.sent(),c.setHeader("Cache-Control","no-store"),!l.refetch)return[3,9];return[4,t(i,c)];case 3:if(!(f=m.sent().accessToken))throw Error("No access token available to refetch the profile");return[4,e()];case 4:return[4,m.sent().userinfo(f)];case 5:if(d=m.sent(),h=(0,o.fromJson)(n.__assign(n.__assign({},u),{user:n.__assign(n.__assign({},u.user),d)})),!l.afterRefetch)return[3,7];return[4,l.afterRefetch(i,c,h)];case 6:h=m.sent(),m.label=7;case 7:return[4,r.set(i,c,h)];case 8:return m.sent(),c.json(h.user),[2];case 9:return c.json(u.user),[3,11];case 10:throw p=m.sent(),new s.ProfileHandlerError(p);case 11:return[2]}})})};return function(e,t,r){return e instanceof i.IncomingMessage&&t?c(e,t,r):"function"==typeof e?function(t,r){return c(t,r,e(t))}:function(t,r){return c(t,r,e)}}}t.default=u},2676:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.withPageAuthRequiredFactory=t.withApiAuthRequiredFactory=void 0;var i=r(1305);Object.defineProperty(t,"withApiAuthRequiredFactory",{enumerable:!0,get:function(){return n(i).default}});var o=r(6662);Object.defineProperty(t,"withPageAuthRequiredFactory",{enumerable:!0,get:function(){return n(o).default}})},1305:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});var n=r(655),i=r(8445);function o(e){var t=this;return function(r){return function(o,a){return n.__awaiter(t,void 0,void 0,function(){var t;return n.__generator(this,function(n){switch(n.label){case 0:return(0,i.assertReqRes)(o,a),[4,e.get(o,a)];case 1:if(!(t=n.sent())||!t.user)return a.status(401).json({error:"not_authenticated",description:"The user does not have an active session or is not authenticated"}),[2];return[4,r(o,a)];case 2:return n.sent(),[2]}})})}}}t.default=o},6662:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(655),i=r(8445);function o(e,t){var r=this;return function(o){var a=void 0===o?{}:o,s=a.getServerSideProps,u=a.returnTo;return function(o){return n.__awaiter(r,void 0,void 0,function(){var r,a;return n.__generator(this,function(c){switch(c.label){case 0:return(0,i.assertCtx)(o),[4,t().get(o.req,o.res)];case 1:if(!(null==(r=c.sent())?void 0:r.user))return[2,{redirect:{destination:"".concat(e,"?returnTo=").concat(encodeURIComponent(u||o.resolvedUrl)),permanent:!1}}];if(a={props:{}},!s)return[3,3];return[4,s(o)];case 2:a=c.sent(),c.label=3;case 3:if(a.props instanceof Promise)return[2,n.__assign(n.__assign({},a),{props:a.props.then(function(e){return n.__assign({user:r.user},e)})})];return[2,n.__assign(n.__assign({},a),{props:n.__assign({user:r.user},a.props)})]}})})}}}t.default=o},6117:function(e,t,r){"use strict";n={value:!0},n=n=n=n=n=n=n=n=n=n=n=n=n=n=n=n=n=n=n=n=n=n=n=n=t.J1=n=void 0;var n,i,o=r(655),a=o.__importDefault(r(2474)),s=r(9919),u=r(1139),c=r(2960);n={enumerable:!0,get:function(){return c.SessionCache}},n={enumerable:!0,get:function(){return c.Session}};var l=r(2676),f=o.__importDefault(r(3545)),d=r(4182),h=r(1626),p=function(){return a.default.randomBytes(16).toString("hex")};function m(){return((0,h.setIsUsingNamedExports)(),i)?i:i=(0,t.J1)()}n=function(e){(0,h.setIsUsingOwnInstance)();var r=(0,t.J1)(e);return r.sessionCache,o.__rest(r,["sessionCache"])};var y=function(e){var t=(0,d.getConfig)(o.__assign(o.__assign({},e),{session:o.__assign({genId:p},null==e?void 0:e.session)})),r=t.baseConfig,n=t.nextConfig,i=(0,s.clientFactory)(r,{name:"nextjs-auth0",version:f.default}),a=new s.TransientStore(r),h=r.session.store?new s.StatefulSession(r,s.NodeCookies):new s.StatelessSession(r,s.NodeCookies),m=new c.SessionCache(r,h),y=(0,s.loginHandler)(r,i,a),b=(0,s.logoutHandler)(r,i,m),g=(0,s.callbackHandler)(r,i,m,a),v=(0,c.sessionFactory)(m),w=(0,c.updateSessionFactory)(m),_=(0,c.accessTokenFactory)(n,i,m),S=(0,l.withApiAuthRequiredFactory)(m),E=(0,l.withPageAuthRequiredFactory)(n.routes.login,function(){return m}),x=(0,u.loginHandler)(y,n,r),k=(0,u.logoutHandler)(b),A=(0,u.callbackHandler)(g,n),M=(0,u.profileHandler)(i,_,m),O=(0,u.handlerFactory)({handleLogin:x,handleLogout:k,handleCallback:A,handleProfile:M});return{sessionCache:m,getSession:v,updateSession:w,getAccessToken:_,withApiAuthRequired:S,withPageAuthRequired:E,handleLogin:x,handleLogout:k,handleCallback:A,handleProfile:M,handleAuth:O}};t.J1=y;var b=function(){return m().sessionCache};n=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(e=m()).getSession.apply(e,o.__spreadArray([],o.__read(t),!1))},n=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(e=m()).updateSession.apply(e,o.__spreadArray([],o.__read(t),!1))},n=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(e=m()).getAccessToken.apply(e,o.__spreadArray([],o.__read(t),!1))},n=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(e=m()).withApiAuthRequired.apply(e,o.__spreadArray([],o.__read(t),!1))},n=(0,l.withPageAuthRequiredFactory)((0,d.getLoginUrl)(),b),n=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(e=m()).handleLogin.apply(e,o.__spreadArray([],o.__read(t),!1))},n=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(e=m()).handleLogout.apply(e,o.__spreadArray([],o.__read(t),!1))},n=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(e=m()).handleCallback.apply(e,o.__spreadArray([],o.__read(t),!1))},n=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(e=m()).handleProfile.apply(e,o.__spreadArray([],o.__read(t),!1))},n=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(e=m()).handleAuth.apply(e,o.__spreadArray([],o.__read(t),!1))};var g=r(9225);n={enumerable:!0,get:function(){return g.AuthError}},n={enumerable:!0,get:function(){return g.AccessTokenErrorCode}},n={enumerable:!0,get:function(){return g.AccessTokenError}},n={enumerable:!0,get:function(){return g.HandlerError}},n={enumerable:!0,get:function(){return g.CallbackHandlerError}},n={enumerable:!0,get:function(){return g.LoginHandlerError}},n={enumerable:!0,get:function(){return g.LogoutHandlerError}},n={enumerable:!0,get:function(){return g.ProfileHandlerError}};var v=r(9919);n={enumerable:!0,get:function(){return v.MissingStateCookieError}},n={enumerable:!0,get:function(){return v.MissingStateParamError}}
1,n={enumerable:!0,get:function(){return v.IdentityProviderError}},n={enumerable:!0,get:function(){return v.ApplicationError}}},4747:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(655),i=r(2736),o=function(){function e(e,t){this.config=e,this.sessionStore=t,this.cache=new WeakMap,this.iatCache=new WeakMap}return e.prototype.init=function(e,t,r){return void 0===r&&(r=!0),n.__awaiter(this,void 0,void 0,function(){var o,a,s;return n.__generator(this,function(u){switch(u.label){case 0:if(this.cache.has(e))return[3,3];return[4,this.sessionStore.read(e)];case 1:if(a=(o=n.__read.apply(void 0,[u.sent(),2]))[0],s=o[1],this.iatCache.set(e,s),this.cache.set(e,(0,i.fromJson)(a)),!(this.config.session.rolling&&r))return[3,3];return[4,this.save(e,t)];case 2:u.sent(),u.label=3;case 3:return[2]}})})},e.prototype.save=function(e,t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(r){switch(r.label){case 0:return[4,this.sessionStore.save(e,t,this.cache.get(e),this.iatCache.get(e))];case 1:return r.sent(),[2]}})})},e.prototype.create=function(e,t,r){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(n){switch(n.label){case 0:return this.cache.set(e,r),[4,this.save(e,t)];case 1:return n.sent(),[2]}})})},e.prototype.delete=function(e,t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(r){switch(r.label){case 0:return[4,this.init(e,t,!1)];case 1:return r.sent(),this.cache.set(e,null),[4,this.save(e,t)];case 2:return r.sent(),[2]}})})},e.prototype.isAuthenticated=function(e,t){return n.__awaiter(this,void 0,void 0,function(){var r;return n.__generator(this,function(n){switch(n.label){case 0:return[4,this.init(e,t)];case 1:return n.sent(),[2,!!(null==(r=this.cache.get(e))?void 0:r.user)]}})})},e.prototype.getIdToken=function(e,t){return n.__awaiter(this,void 0,void 0,function(){var r;return n.__generator(this,function(n){switch(n.label){case 0:return[4,this.init(e,t)];case 1:return n.sent(),[2,null==(r=this.cache.get(e))?void 0:r.idToken]}})})},e.prototype.set=function(e,t,r){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(n){switch(n.label){case 0:return[4,this.init(e,t,!1)];case 1:return n.sent(),this.cache.set(e,r),[4,this.save(e,t)];case 2:return n.sent(),[2]}})})},e.prototype.get=function(e,t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(r){switch(r.label){case 0:return[4,this.init(e,t)];case 1:return r.sent(),[2,this.cache.get(e)]}})})},e.prototype.fromTokenSet=function(e){return(0,i.fromTokenSet)(e,this.config)},e}();t.default=o},2132:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(655),i=r(9919),o=r(9225),a=r(5414),s=r(2960);function u(e,t,r){var u=this;return function(c,l,f){return n.__awaiter(u,void 0,void 0,function(){var u,d,h,p,m,y,b;return n.__generator(this,function(g){switch(g.label){case 0:return[4,r.get(c,l)];case 1:if(!(u=g.sent()))throw new o.AccessTokenError(o.AccessTokenErrorCode.MISSING_SESSION,"The user does not have a valid session.");if(!u.accessToken&&!u.refreshToken)throw new o.AccessTokenError(o.AccessTokenErrorCode.MISSING_ACCESS_TOKEN,"The user does not have a valid access token.");if(!u.accessTokenExpiresAt)throw new o.AccessTokenError(o.AccessTokenErrorCode.EXPIRED_ACCESS_TOKEN,"Expiration information for the access token is not available. The user will need to sign in again.");if(f&&f.scopes){if(!(d=u.accessTokenScope)||0===d.length)throw new o.AccessTokenError(o.AccessTokenErrorCode.INSUFFICIENT_SCOPE,"An access token with the requested scopes could not be provided. The user will need to sign in again.");if(h=(0,a.intersect)(f.scopes,d.split(" ")),!(0,a.match)(f.scopes,n.__spreadArray([],n.__read(h),!1)))throw new o.AccessTokenError(o.AccessTokenErrorCode.INSUFFICIENT_SCOPE,'Could not retrieve an access token with scopes "'.concat(f.scopes.join(" "),'". The user will need to sign in again.'))}if(!u.refreshToken&&1e3*u.accessTokenExpiresAt-6e4<Date.now())throw new o.Acce
1ssTokenError(o.AccessTokenErrorCode.EXPIRED_ACCESS_TOKEN,"The access token expired and a refresh token is not available. The user will need to sign in again.");if((null==f?void 0:f.refresh)&&!u.refreshToken)throw new o.AccessTokenError(o.AccessTokenErrorCode.MISSING_REFRESH_TOKEN,"A refresh token is required to refresh the access token, but none is present.");if(!(u.refreshToken&&1e3*u.accessTokenExpiresAt-6e4<Date.now()||u.refreshToken&&f&&f.refresh))return[3,10];return[4,t()];case 2:p=g.sent(),m=void 0,g.label=3;case 3:return g.trys.push([3,5,,6]),[4,p.refresh(u.refreshToken,{exchangeBody:null==f?void 0:f.authorizationParams})];case 4:return m=g.sent(),[3,6];case 5:throw y=g.sent(),new o.AccessTokenError(o.AccessTokenErrorCode.FAILED_REFRESH_GRANT,"The request to refresh the access token failed.",new i.IdentityProviderError(y));case 6:if(b=(0,s.fromTokenSet)(m,e),Object.assign(u,n.__assign(n.__assign({},b),{refreshToken:b.refreshToken||u.refreshToken,user:n.__assign(n.__assign({},u.user),b.user)})),!(null==f?void 0:f.afterRefresh))return[3,8];return[4,f.afterRefresh(c,l,u)];case 7:u=g.sent(),g.label=8;case 8:return[4,r.set(c,l,u)];case 9:return g.sent(),[2,{accessToken:m.access_token}];case 10:if(!u.accessToken)throw new o.AccessTokenError(o.AccessTokenErrorCode.MISSING_ACCESS_TOKEN,"The user does not have a valid access token.");return[2,{accessToken:u.accessToken}]}})})}}t.default=u},2749:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(8445);function i(e){return function(t,r){return(0,n.assertReqRes)(t,r),e.get(t,r)}}t.default=i},2960:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.updateSessionFactory=t.SessionCache=t.accessTokenFactory=t.sessionFactory=t.fromTokenSet=t.fromJson=t.Session=void 0;var i=r(2736);Object.defineProperty(t,"Session",{enumerable:!0,get:function(){return n(i).default}}),Object.defineProperty(t,"fromJson",{enumerable:!0,get:function(){return i.fromJson}}),Object.defineProperty(t,"fromTokenSet",{enumerable:!0,get:function(){return i.fromTokenSet}});var o=r(2749);Object.defineProperty(t,"sessionFactory",{enumerable:!0,get:function(){return n(o).default}});var a=r(2132);Object.defineProperty(t,"accessTokenFactory",{enumerable:!0,get:function(){return n(a).default}});var s=r(4747);Object.defineProperty(t,"SessionCache",{enumerable:!0,get:function(){return n(s).default}});var u=r(8849);Object.defineProperty(t,"updateSessionFactory",{enumerable:!0,get:function(){return n(u).default}})},2736:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromJson=t.fromTokenSet=void 0;var n=r(655),i=function(){return function(e){this.user=e}}();function o(e,t){var r=e.claims();t.identityClaimFilter.forEach(function(e){delete r[e]});var o=e.id_token,a=e.access_token,s=e.scope,u=e.expires_at,c=e.refresh_token,l=n.__rest(e,["id_token","access_token","scope","expires_at","refresh_token"]),f=t.session.storeIDToken;return Object.assign(new i(n.__assign({},r)),n.__assign({accessToken:a,accessTokenScope:s,accessTokenExpiresAt:u,refreshToken:c},f&&{idToken:o}),l)}function a(e){return e?Object.assign(new i(n.__assign({},e.user)),e):null}t.default=i,t.fromTokenSet=o,t.fromJson=a},8849:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(655),i=r(8445);function o(e){var t=this;return function(r,o,a){return n.__awaiter(t,void 0,void 0,function(){return n.__generator(this,function(t){switch(t.label){case 0:return(0,i.assertReqRes)(r,o),[4,e.get(r,o)];case 1:if(!t.sent()||!a||!a.user)return[2];return[4,e.set(r,o,a)];case 2:return t.sent(),[2]}})})}}t.default=o},5414:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.match=t.intersect=void 0;var n=r(655);function i(e,t){var r=new Set(e),i=new Set(t);return new Set(n.__spreadArray([],n.__read(r),!1).filter(function(e){return i.has(e)}))}function o(e,t){var r=new Set(e),n=new Set(t);if(r.size!==n.size)return!1;for(var i=0;i<e.length;i+=1){var o=e[i];if(!n.has(o))return!1}return!0}t.intersect=i,t.match=o},8445:function(e,t){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.assertCtx=t.assertReqRes=void 0;var r=function(e,t){if(!e)throw Error("Request is not available");if(!t)throw Error("Response is not available")};t.assertReqRes=r;var n=function(e){var r=e.req,n=e.res;(0,t.assertReqRes)(r,n)};t.assertCtx=n},9225:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProfileHandlerError=t.LogoutHandlerError=t.LoginHandlerError=t.CallbackHandlerError=t.HandlerError=t.AccessTokenError=t.AccessTokenErrorCode=t.AuthError=t.appendCause=void 0;var n,i=r(655);function o(e,t){if(!t)return e;var r=e.endsWith(".")?"":".";return"".concat(e).concat(r," CAUSE: ").concat(t.message)}t.appendCause=o;var a=function(e){function t(t){var r=e.call(this,o(t.message,t.cause))||this;return r.code=t.code,r.name=t.name,r.cause=t.cause,r.status=t.status,r}return i.__extends(t,e),t}(Error);t.AuthError=a,function(e){e.MISSING_SESSION="ERR_MISSING_SESSION",e.MISSING_ACCESS_TOKEN="ERR_MISSING_ACCESS_TOKEN",e.MISSING_REFRESH_TOKEN="ERR_MISSING_REFRESH_TOKEN",e.EXPIRED_ACCESS_TOKEN="ERR_EXPIRED_ACCESS_TOKEN",e.INSUFFICIENT_SCOPE="ERR_INSUFFICIENT_SCOPE",e.FAILED_REFRESH_GRANT="ERR_FAILED_REFRESH_GRANT"}(n=t.AccessTokenErrorCode||(t.AccessTokenErrorCode={}));var s=function(e){function t(r,n,i){var o=e.call(this,{code:r,message:n,name:"Acce
1ssTokenError",cause:i})||this;return Error.captureStackTrace(o,o.constructor),Object.setPrototypeOf(o,t.prototype),o}return i.__extends(t,e),t}(a);t.AccessTokenError=s;var u=function(e){function t(t){var r;return"status"in t.cause&&(r=t.cause.status),e.call(this,i.__assign(i.__assign({},t),{status:r}))||this}return i.__extends(t,e),t}(a);t.HandlerError=u;var c=function(e){function t(r){var n=e.call(this,{code:t.code,message:"Callback handler failed.",name:"CallbackHandlerError",cause:r})||this;return Object.setPrototypeOf(n,t.prototype),n}return i.__extends(t,e),t.code="ERR_CALLBACK_HANDLER_FAILURE",t}(u);t.CallbackHandlerError=c;var l=function(e){function t(r){var n=e.call(this,{code:t.code,message:"Login handler failed.",name:"LoginHandlerError",cause:r})||this;return Object.setPrototypeOf(n,t.prototype),n}return i.__extends(t,e),t.code="ERR_LOGIN_HANDLER_FAILURE",t}(u);t.LoginHandlerError=l;var f=function(e){function t(r){var n=e.call(this,{code:t.code,message:"Logout handler failed.",name:"LogoutHandlerError",cause:r})||this;return Object.setPrototypeOf(n,t.prototype),n}return i.__extends(t,e),t.code="ERR_LOGOUT_HANDLER_FAILURE",t}(u);t.LogoutHandlerError=f;var d=function(e){function t(r){var n=e.call(this,{code:t.code,message:"Profile handler failed.",name:"ProfileHandlerError",cause:r})||this;return Object.setPrototypeOf(n,t.prototype),n}return i.__extends(t,e),t.code="ERR_PROFILE_HANDLER_FAILURE",t}(u);t.ProfileHandlerError=d},1626:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setIsUsingOwnInstance=t.setIsUsingNamedExports=void 0;var r=!1,n=!1,i=function(){if(r&&n)throw Error("You cannot mix creating your own instance with `initAuth0` and using named exports like `import { handleAuth } from '@auth0/nextjs-auth0'`")},o=function(){r=!0,i()};t.setIsUsingNamedExports=o;var a=function(){n=!0,i()};t.setIsUsingOwnInstance=a},4322:function(e,t){"use strict";function r(e,t){var r;try{r=new URL(e,t)}catch(e){return}if(r.origin===t.origin)return r.toString()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},3545:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="2.3.1"},9603:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){c(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return 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})(e)}function a(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{G:function(){return r4}});function l(e,t){return h(e)||m(e,t)||y(e,t)||v()}function f(e){return d(e)||p(e)||y(e)||g()}function d(e){if(Array.isArray(e))return b(e)}function h(e){if(Array.isArray(e))return e}function p(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function m(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,s=!1;try{for(i=i.call(e);!(a=(r=i.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,n=e}finally{try{a||null==i.return||i.return()}finally{if(s)throw n}}return o}}function y(e,t){if(e){if("string"==typeof e)return b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b(e,t)}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function g(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}
1function v(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var w,_,S,E,x,k,A,M,O=function(){},j={},R={},C=null,P={mark:O,measure:O};try{"undefined"!=typeof window&&(j=window),"undefined"!=typeof document&&(R=document),"undefined"!=typeof MutationObserver&&(C=MutationObserver),"undefined"!=typeof performance&&(P=performance)}catch(e){}var T=(j.navigator||{}).userAgent,I=void 0===T?"":T,N=j,D=R,L=C,B=P;N.document;var U=!!D.documentElement&&!!D.head&&"function"==typeof D.addEventListener&&"function"==typeof D.createElement,$=~I.indexOf("MSIE")||~I.indexOf("Trident/"),H="___FONT_AWESOME___",F=16,q="fa",W="svg-inline--fa",z="data-fa-i2svg",K="data-fa-pseudo-element",Z="data-fa-pseudo-element-pending",J="data-prefix",G="data-icon",V="fontawesome-i2svg",Y="async",X=["HTML","HEAD","STYLE","SCRIPT"],Q=function(){try{return!0}catch(e){return!1}}(),ee="classic",et="sharp",er=[ee,et];function en(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e[ee]}})}var ei=en((c(w={},ee,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),c(w,et,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular"}),w)),eo=en((c(_={},ee,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),c(_,et,{solid:"fass",regular:"fasr"}),_)),ea=en((c(S={},ee,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),c(S,et,{fass:"fa-solid",fasr:"fa-regular"}),S)),es=en((c(E={},ee,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),c(E,et,{"fa-solid":"fass","fa-regular":"fasr"}),E)),eu=/fa(s|r|l|t|d|b|k|ss|sr)?[\-\ ]/,ec="fa-layers-text",el=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,ef=en((c(x={},ee,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),c(x,et,{900:"fass",400:"fasr"}),x)),ed=[1,2,3,4,5,6,7,8,9,10],eh=ed.concat([11,12,13,14,15,16,17,18,19,20]),ep=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],em={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},ey=new Set;Object.keys(eo[ee]).map(ey.add.bind(ey)),Object.keys(eo[et]).map(ey.add.bind(ey));var eb=[].concat(er,f(ey),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",em.GROUP,em.SWAP_OPACITY,em.PRIMARY,em.SECONDARY]).concat(ed.map(function(e){return"".concat(e,"x")})).concat(eh.map(function(e){return"w-".concat(e)})),eg=N.FontAwesomeConfig||{};function ev(e){var t=D.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function ew(e){return""===e||"false"!==e&&("true"===e||e)}D&&"function"==typeof D.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(function(e){var t=l(e,2),r=t[0],n=t[1],i=ew(ev(r));null!=i&&(eg[n]=i)});var e_={styleDefault:"solid",familyDefault:"classic",cssPrefix:q,replacementClass:W,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};eg.familyPrefix&&(eg.cssPrefix=eg.familyPrefix);var eS=i(i({},e_),eg);eS.autoReplaceSvg||(eS.observeMutations=!1);var eE={};Object.keys(e_).forEach(function(e){Object.defineProperty(eE,e,{enumerable:!0,set:function(t){eS[e]=t,ex.forEach(function(e){return e(eE)})},get:function(){return eS[e]}})}),Object.defineProperty(eE,"familyPrefix",{enumerable:!0,set:function(e){eS.cssPrefix=e,ex.forEach(function(e){return e(eE)})},get:function(){return eS.cssPrefix}}),N.FontAwesomeConfig=eE;var ex=[];function ek(e){return ex.push(e),function(){ex.splice(ex.indexOf(e),1)}}var eA=F,eM={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function eO(e){if(e&&U){var t=D.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var r=D.head.childNodes,n=null,i=r.length-1;i>-1;i--){var o=r[i];["STYLE","LINK"].indexOf((o.tagName||"").toUpperCase())>-1&&(n=o)}return D.head.insertBefore(t,n),e}}var ej="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function eR(){for(var e=12,t="";e-- >0;)t+=ej[62*Math.random()|0];return t}function eC(e){for(var t=[],r=(e||[]).length>>>0;r--;)t[r]=e[r];return t}function eP(e){return e.classList?eC(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(e){return e})}function eT(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function eI(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,'="').concat(eT(e[r]),'" ')},"").trim()}function eN(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,": ").concat(e[r].trim(),";")},"")}function eD(e){return e.size!==eM.size||e.x!==eM.x||e.y!==eM.y||e.rotate!==eM.rotate||e.flipX||e.flipY}function eL(e){var t=e.transform,r=e.containerWidth,n=e.iconWidth,i={transform:"translate(".concat(r/2," 256)")},o="translate(".concat(32*t.x,", ").concat(32*t.y,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)");return{outer:i,inner:{transform:"".concat(o," ").concat(a," ").concat(s)},path:{transform:"translate(".concat(-(n/2*1)," -256)")}}}function eB(e){var t=e.transform,r=e.width,n=void 0===r?F:r,i=e.height,o=void 0===i?F:i,a=e.startCentered,s=void 0!==a&&a,u="";
vendor: 788 bytes, line 1
1return s&&$?u+="translate(".concat(t.x/eA-n/2,"em, ").concat(t.y/eA-o/2,"em) "):s?u+="translate(calc(-50% + ".concat(t.x/eA,"em), calc(-50% + ").concat(t.y/eA,"em)) "):u+="translate(".concat(t.x/eA,"em, ").concat(t.y/eA,"em) "),u+="scale(".concat(t.size/eA*(t.flipX?-1:1),", ").concat(t.size/eA*(t.flipY?-1:1),") ")+"rotate(".concat(t.rotate,"deg) ")}var eU=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 4
vendor: 21,716 bytes, line 1
100 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';
1function e$(){var e=q,t=W,r=eE.cssPrefix,n=eE.replacementClass,i=eU;if(r!==e||n!==t){var o=RegExp("\\.".concat(e,"\\-"),"g"),a=RegExp("\\--".concat(e,"\\-"),"g"),s=RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(r,"-")).replace(a,"--".concat(r,"-")).replace(s,".".concat(n))}return i}var eH=!1;function eF(){eE.autoAddCss&&!eH&&(eO(e$()),eH=!0)}var eq={mixout:function(){return{dom:{css:e$,insertCss:eF}}},hooks:function(){return{beforeDOMElementCreation:function(){eF()},beforeI2svg:function(){eF()}}}},eW=N||{};eW[H]||(eW[H]={}),eW[H].styles||(eW[H].styles={}),eW[H].hooks||(eW[H].hooks={}),eW[H].shims||(eW[H].shims=[]);var ez=eW[H],eK=[],eZ=function e(){D.removeEventListener("DOMContentLoaded",e),eJ=1,eK.map(function(e){return e()})},eJ=!1;function eG(e){U&&(eJ?setTimeout(e,0):eK.push(e))}function eV(e){var t=e.tag,r=e.attributes,n=void 0===r?{}:r,i=e.children,o=void 0===i?[]:i;return"string"==typeof e?eT(e):"<".concat(t," ").concat(eI(n),">").concat(o.map(eV).join(""),"</").concat(t,">")}function eY(e,t,r){if(e&&e[t]&&e[t][r])return{prefix:t,iconName:r,icon:e[t][r]}}!U||(eJ=(D.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(D.readyState))||D.addEventListener("DOMContentLoaded",eZ);var eX=function(e,t){return function(r,n,i,o){return e.call(t,r,n,i,o)}},eQ=function(e,t,r,n){var i,o,a,s=Object.keys(e),u=s.length,c=void 0!==n?eX(t,n):t;for(void 0===r?(i=1,a=e[s[0]]):(i=0,a=r);i<u;i++)a=c(a,e[o=s[i]],o,e);return a};function e0(e){for(var t=[],r=0,n=e.length;r<n;){var i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var o=e.charCodeAt(r++);(64512&o)==56320?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),r--)}else t.push(i)}return t}function e1(e){var t=e0(e);return 1===t.length?t[0].toString(16):null}function e2(e,t){var r,n=e.length,i=e.charCodeAt(t);return i>=55296&&i<=56319&&n>t+1&&(r=e.charCodeAt(t+1))>=56320&&r<=57343?(i-55296)*1024+r-56320+65536:i}function e6(e){return Object.keys(e).reduce(function(t,r){var n=e[r];return n.icon?t[n.iconName]=n.icon:t[r]=n,t},{})}function e3(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.skipHooks,o=void 0!==n&&n,a=e6(t);"function"!=typeof ez.hooks.addPack||o?ez.styles[e]=i(i({},ez.styles[e]||{}),a):ez.hooks.addPack(e,e6(t)),"fas"===e&&e3("fa",t)}var e4=ez.styles,e8=ez.shims,e5=(c(k={},ee,Object.values(ea[ee])),c(k,et,Object.values(ea[et])),k),e7=null,e9={},te={},tt={},tr={},tn={},ti=(c(A={},ee,Object.keys(ei[ee])),c(A,et,Object.keys(ei[et])),A);function to(e){return~eb.indexOf(e)}function ta(e,t){var r=t.split("-"),n=r[0],i=r.slice(1).join("-");return n!==e||""===i||to(i)?null:i}var ts=function(){var e=function(e){return eQ(e4,function(t,r,n){return t[n]=eQ(r,e,{}),t},{})};e9=e(function(e,t,r){return t[3]&&(e[t[3]]=r),t[2]&&t[2].filter(function(e){return"number"==typeof e}
vendor: 20,236 bytes, line 1
1).forEach(function(t){e[t.toString(16)]=r}),e}),te=e(function(e,t,r){return e[r]=r,t[2]&&t[2].filter(function(e){return"string"==typeof e}).forEach(function(t){e[t]=r}),e}),tn=e(function(e,t,r){var n=t[2];return e[r]=r,n.forEach(function(t){e[t]=r}),e});var t="far"in e4||eE.autoFetchSvg,r=eQ(e8,function(e,r){var n=r[0],i=r[1],o=r[2];return"far"!==i||t||(i="fas"),"string"==typeof n&&(e.names[n]={prefix:i,iconName:o}),"number"==typeof n&&(e.unicodes[n.toString(16)]={prefix:i,iconName:o}),e},{names:{},unicodes:{}});tt=r.names,tr=r.unicodes,e7=tm(eE.styleDefault,{family:eE.familyDefault})};function tu(e,t){return(e9[e]||{})[t]}function tc(e,t){return(te[e]||{})[t]}function tl(e,t){return(tn[e]||{})[t]}function tf(e){return tt[e]||{prefix:null,iconName:null}}function td(e){var t=tr[e],r=tu("fas",e);return t||(r?{prefix:"fas",iconName:r}:null)||{prefix:null,iconName:null}}function th(){return e7}ek(function(e){e7=tm(e.styleDefault,{family:eE.familyDefault})}),ts();var tp=function(){return{prefix:null,iconName:null,rest:[]}};function tm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.family,n=void 0===r?ee:r,i=ei[n][e],o=eo[n][e]||eo[n][i],a=e in ez.styles?e:null;return o||a||null}var ty=(c(M={},ee,Object.keys(ea[ee])),c(M,et,Object.keys(ea[et])),M);function tb(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.skipLookups,i=void 0!==n&&n,o=(c(t={},ee,"".concat(eE.cssPrefix,"-").concat(ee)),c(t,et,"".concat(eE.cssPrefix,"-").concat(et)),t),a=null,s=ee;(e.includes(o[ee])||e.some(function(e){return ty[ee].includes(e)}))&&(s=ee),(e.includes(o[et])||e.some(function(e){return ty[et].includes(e)}))&&(s=et);var u=e.reduce(function(e,t){var r=ta(eE.cssPrefix,t);if(e4[t]?(a=t=e5[s].includes(t)?es[s][t]:t,e.prefix=t):ti[s].indexOf(t)>-1?(a=t,e.prefix=tm(t,{family:s})):r?e.iconName=r:t!==eE.replacementClass&&t!==o[ee]&&t!==o[et]&&e.rest.push(t),!i&&e.prefix&&e.iconName){var n="fa"===a?tf(e.iconName):{},u=tl(e.prefix,e.iconName);n.prefix&&(a=null),e.iconName=n.iconName||u||e.iconName,e.prefix=n.prefix||e.prefix,"far"!==e.prefix||e4.far||!e4.fas||eE.autoFetchSvg||(e.prefix="fas")}return e},tp());return(e.includes("fa-brands")||e.includes("fab"))&&(u.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(u.prefix="fad"),!u.prefix&&s===et&&(e4.fass||eE.autoFetchSvg)&&(u.prefix="fass",u.iconName=tl(u.prefix,u.iconName)||u.iconName),("fa"===u.prefix||"fa"===a)&&(u.prefix=th()||"fas"),u}var tg=function(){function e(){a(this,e),this.definitions={}}return u(e,[{key:"add",value:function(){for(var e=this,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=r.reduce(this._pullDefinitions,{});Object.keys(o).forEach(function(t){e.definitions[t]=i(i({},e.definitions[t]||{}),o[t]),e3(t,o[t]);var r=ea[ee][t];r&&e3(r,o[t]),ts()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var r=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(r).map(function(t){var n=r[t],i=n.prefix,o=n.iconName,a=n.icon,s=a[2];e[i]||(e[i]={}),s.length>0&&s.forEach(function(t){"string"==typeof t&&(e[i][t]=a)}),e[i][o]=a}),e}}]),e}(),tv=[],tw={},t_={},tS=Object.keys(t_);function tE(e,t){var r=t.mixoutsTo;return tv=e,tw={},Object.keys(t_).forEach(function(e){-1===tS.indexOf(e)&&delete t_[e]}),tv.forEach(function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach(function(e){"function"==typeof t[e]&&(r[e]=t[e]),"object"===o(t[e])&&Object.keys(t[e]).forEach(function(n){r[e]||(r[e]={}),r[e][n]=t[e][n]})}),e.hooks){var n=e.hooks();Object.keys(n).forEach(function(e){tw[e]||(tw[e]=[]),tw[e].push(n[e])})}e.provides&&e.provides(t_)}),r}function tx(e,t){for(var r=arguments.length,n=Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return(tw[e]||[]).forEach(function(e){t=e.apply(null,[t].concat(n))}),t}function tk(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];(tw[e]||[]).forEach(function(e){e.apply(null,r)})}function tA(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return t_[e]?t_[e].apply(null,t):void 0}function tM(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,r=e.prefix||th();if(t)return t=tl(r,t)||t,eY(tO.definitions,r,t)||eY(ez.styles,r,t)}var tO=new tg,tj={i2svg:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return U?(tk("beforeI2svg",e),tA("pseudoElements2svg",e),tA("i2svg",e)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoReplaceSvgRoot;!1===eE.autoReplaceSvg&&(eE.autoReplaceSvg=!0),eE.observeMutations=!0,eG(function(){tP({autoReplaceSvgRoot:t}),tk("watch",e)})}},tR={icon:function(e){if(null===e)return null;if("object"===o(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:tl(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){var t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],r=tm(e[0]);return{prefix:r,iconName:tl(r,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(eE.cssPrefix,"-"))>-1||e.match(eu))){var n=tb(e.split(" "),{skipLookups:!0});return{prefix:n.prefix||th(),iconName:tl(n.prefix,n.iconName)||n.iconName}}if("string"==typeof e){var i=th();return{prefix:i,iconName:tl(i,e)||e}}}},tC={noAuto:function(){eE.autoReplaceSvg=!1,eE.observeMutations=!1,tk("noAuto")},config:eE,dom:tj,parse:tR,library:tO,findIconDefinition:tM,toHtml:eV},tP=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoReplaceSvgRoot,r=void 0===t?D:t;(Object.keys(ez.styles).length>0||eE.autoFetchSvg)&&U&&eE.autoReplaceSvg&&tC.dom.i2svg({node:r})};function tT(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(e){return eV(e)})}}),Object.defineProperty(e,"node",{get:function(){if(U){var t=D.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function tI(e){var t=e.children,r=e.main,n=e.mask,o=e.attributes,a=e.styles,s=e.transform;if(eD(s)&&r.found&&!n.found){var u={x:r.width/r.height/2,y:.5};o.style=eN(i(i({},a),{},{"transform-origin":"".concat(u.x+s.x/16,"em ").concat(u.y+s.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}function tN(e){var t=e.prefix,r=e.iconName,n=e.children,o=e.attributes,a=e.symbol,s=!0===a?"".concat(t,"-").concat(eE.cssPrefix,"-").concat(r):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:i(i({},o),{},{id:s}),children:n}]}]}function tD(e){var t=e.icons,r=t.main,n=t.mask,o=e.prefix,a=e.iconName,s=e.transform,u=e.symbol,c=e.title,l=e.maskId,f=e.titleId,d=e.extra,h=e.watchable,p=void 0!==h&&h,m=n.found?n:r,y=m.width,b=m.height,g="fak"===o,v=[eE.replacementClass,a?"".concat(eE.cssPrefix,"-").concat(a):""].filter(function(e){return -1===d.classes.indexOf(e)}).filter(function(e){return""!==e||!!e}).concat(d.classes).join(" "),w={children:[],attributes:i(i({},d.attributes),{},{"data-prefix":o,"data-icon":a,class:v,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(y," ").concat(b)})},_=g&&!~d.classes.indexOf("fa-fw")?{width:"".concat(y/b*1,"em")}:{};p&&(w.attributes[z]=""),c&&(w.children.push({tag:"title",attributes:{id:w.attributes["aria-labelledby"]||"title-".concat(f||eR())},children:[c]}),delete w.attributes.title);var S=i(i({},w),{},{prefix:o,iconName:a,main:r,mask:n,maskId:l,transform:s,symbol:u,styles:i(i({},_),d.styles)}),E=n.found&&r.found?tA("generateAbstractMask",S)||{children:[],attributes:{}}:tA("generateAbstractIcon",S)||{children:[],attributes:{}},x=E.children,k=E.attributes;return(S.children=x,S.attributes=k,u)?tN(S):tI(S)}function tL(e){var t=e.content,r=e.width,n=e.height,o=e.transform,a=e.title,s=e.extra,u=e.watchable,c=void 0!==u&&u,l=i(i(i({},s.attributes),a?{title:a}:{}),{},{class:s.classes.join(" ")});c&&(l[z]="");var f=i({},s.styles);eD(o)&&(f.transform=eB({transform:o,startCentered:!0,width:r,height:n}),f["-webkit-transform"]=f.transform);var d=eN(f);d.length>0&&(l.style=d);var h=[];return h.push({tag:"span",attributes:l,children:[t]}),a&&h.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),h}function tB(e){var t=e.content,r=e.title,n=e.extra,o=i(i(i({},n.attributes),r?{title:r}:{}),{},{class:n.classes.join(" ")}),a=eN(n.styles);a.length>0&&(o.style=a);var s=[];return s.push({tag:"span",attributes:o,children:[t]}),r&&s.push({tag:"span",attributes:{class:"sr-only"},children:[r]}),s}var tU=ez.styles;function t$(e){var t=e[0],r=e[1],n=l(e.slice(4),1)[0],i=null;return{found:!0,width:t,height:r,icon:i=Array.isArray(n)?{tag:"g",attributes:{class:"".concat(eE.cssPrefix,"-").concat(em.GROUP)},children:[{tag:"path",attributes:{class:"".concat(eE.cssPrefix,"-").concat(em.SECONDARY),fill:"currentColor",d:n[0]}},{tag:"path",attributes:{class:"".concat(eE.cssPrefix,"-").concat(em.PRIMARY),fill:"currentColor",d:n[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:n}}}}var tH={found:!1,width:512,height:512};function tF(e,t){Q||eE.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function tq(e,t){var r=t;return"fa"===t&&null!==eE.styleDefault&&(t=th()),new Promise(function(n,o){if(tA("missingIconAbstract"),"fa"===r){var a=tf(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&tU[t]&&tU[t][e])return n(t$(tU[t][e]));tF(e,t),n(i(i({},tH),{},{icon:eE.showMissingIcons&&e&&tA("missingIconAbstract")||{}}))})}var tW=function(){},tz=eE.measurePerformance&&B&&B.mark&&B.measure?B:{mark:tW,measure:tW},tK='FA "6.3.0"',tZ=function(e){tz.mark("".concat(tK," ").concat(e," ends")),tz.measure("".concat(tK," ").concat(e),"".concat(tK," ").concat(e," begins"),"".concat(tK," ").concat(e," ends"))},tJ={begin:function(e){return tz.mark("".concat(tK," ").concat(e," begins")),function(){return tZ(e)}},end:tZ},tG=function(){};function tV(e){return"string"==typeof(e.getAttribute?e.getAttribute(z):null)}function tY(e){var t=e.getAttribute?e.getAttribute(J):null,r=e.getAttribute?e.getAttribute(G):null;return t&&r}function tX(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(eE.replacementClass)}function tQ(){return!0===eE.autoReplaceSvg?t3.replace:t3[eE.autoReplaceSvg]||t3.replace}function t0(e){return D.createElementNS("http://www.w3.org/2000/svg",e)}function t1(e){return D.createElement(e)}function t2(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.ceFn,n=void 0===r?"svg"===e.tag?t0:t1:r;if("string"==typeof e)return D.createTextNode(e);var i=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(t){i.setAttribute(t,e.attributes[t])}),(e.children||[]).forEach(function(e){i.appendChild(t2(e,{ceFn:n}))}),i}function t6(e){var t=" ".concat(e.outerHTML," ");return"".concat(t,"Font Awesome fontawesome.com ")}var t3={replace:function(e){var t=e[0];if(t.parentNode){if(e[1].forEach(function(e){t.parentNode.insertBefore(t2(e),t)}),null===t.getAttribute(z)&&eE.keepOriginalSource){var r=D.createComment(t6(t));t.parentNode.replaceChild(r,t)}else t.remove()}},nest:function(e){var t=e[0],r=e[1];if(~eP(t).indexOf(eE.replacementClass))return t3.replace(e);var n=RegExp("".concat(eE.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var i=r[0].attributes.class.split(" ").reduce(function(e,t){return t===eE.replacementClass||t.match(n)?e.toSvg.push(t):e.toNode.push(t),e},{toNode:[],toSvg:[]});r[0].attributes.class=i.toSvg.join(" "),0===i.toNode.length?t.removeAttribute("class"):t.setAttribute("class",i.toNode.join(" "))}var o=r.map(function(e){return eV(e)}).join("\n");t.setAttribute(z,""),t.innerHTML=o}};function t4(e){e()}function t8(e,t){var r="function"==typeof t?t:tG;if(0===e.length)r();else{var n=t4;eE.mutateApproach===Y&&(n=N.requestAnimationFrame||t4),n(function(){var t=tQ(),n=tJ.begin("mutate");e.map(t),n(),r()})}}var t5=!1;function t7(){t5=!0}function t9(){t5=!1}var re=null;function rt(e){if(L&&eE.observeMutations){var t=e.treeCallback,r=void 0===t?tG:t,n=e.nodeCallback,i=void 0===n?tG:n,o=e.pseudoElementsCallback,a=void 0===o?tG:o,s=e.observeMutationsRoot,u=void 0===s?D:s;re=new L(function(e){if(!t5){var t=th();eC(e).forEach(function(e){if("childList"===e.type&&e.addedNodes.length>0&&!tV(e.addedNodes[0])&&(eE.searchPseudoElements&&a(e.target),r(e.target)),"attributes"===e.type&&e.target.parentNode&&eE.searchPseudoElements&&a(e.target.parentNode),"attributes"===e.type&&tV(e.target)&&~ep.indexOf(e.attributeName)){if("class"===e.attributeName&&tY(e.target)){var n=tb(eP(e.target)),o=n.prefix,s=n.iconName;e.target.setAttribute(J,o||t),s&&e.target.setAttribute(G,s)}else tX(e.target)&&i(e.target)}})}}),U&&re.observe(u,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function rr(){re&&re.disconnect()}function rn(e){var t=e.getAttribute("style"),r=[];return t&&(r=t.split(";").reduce(function(e,t){var r=t.split(":"),n=r[0],i=r.slice(1);return n&&i.length>0&&(e[n]=i.join(":").trim()),e},{})),r}function ri(e){var t=e.getAttribute("data-prefix"),r=e.getAttribute("data-icon"),n=void 0!==e.innerText?e.innerText.trim():"",i=tb(eP(e));return i.prefix||(i.prefix=th()),t&&r&&(i.prefix=t,i.iconName=r),i.iconName&&i.prefix||(i.prefix&&n.length>0&&(i.iconName=tc(i.prefix,e.innerText)||tu(i.prefix,e1(e.innerText))),!i.iconName&&eE.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function ro(e){var t=eC(e.attributes).reduce(function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e},{}),r=e.getAttribute("title"),n=e.getAttribute("data-fa-title-id");return eE.autoA11y&&(r?t["aria-labelledby"]="".concat(eE.replacementClass,"-title-").concat(n||eR()):(t["aria-hidden"]="true",t.focusable="false")),t}function ra(){return{iconName:null,title:null,titleId:null,prefix:null,transform:eM,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function rs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},r=ri(e),n=r.iconName,o=r.prefix,a=r.rest,s=ro(e),u=tx("parseNodeAttributes",{},e),c=t.styleParser?rn(e):[];return i({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:o,transform:eM,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:c,attributes:s}},u)}var ru=ez.styles;function rc(e){var t="nest"===eE.autoReplaceSvg?rs(e,{styleParser:!1}):rs(e);return~t.extra.classes.indexOf(ec)?tA("generateLayersText",e,t):tA("generateSvgReplacementMutation",e,t)}var rl=new Set;function rf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!U)return Promise.resolve();var r=D.documentElement.classList,n=function(e){return r.add("".concat(V,"-").concat(e))},i=function(e){return r.remove("".concat(V,"-").concat(e))},o=eE.autoFetchSvg?rl:er.map(function(e){return"fa-".concat(e)}).concat(Object.keys(ru));o.includes("fa")||o.push("fa");var a=[".".concat(ec,":not([").concat(z,"])")].concat(o.map(function(e){return".".concat(e,":not([").concat(z,"])")})).join(", ");if(0===a.length)return Promise.resolve();var s=[];try{s=eC(e.querySelectorAll(a))}catch(e){}if(!(s.length>0))return Promise.resolve();n("pending"),i("complete");var u=tJ.begin("onTree"),c=s.reduce(function(e,t){try{var r=rc(t);r&&e.push(r)}catch(e){Q||"MissingIcon"!==e.name||console.error(e)}return e},[]);return new Promise(function(e,r){Promise.all(c).then(function(r){t8(r,function(){n("active"),n("complete"),i("pending"),"function"==typeof t&&t(),u(),e()})}).catch(function(e){u(),r(e)})})}function rd(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;rc(e).then(function(e){e&&t8([e],t)})}function rh(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(t||{}).icon?t:tM(t||{}),o=r.mask;return o&&(o=(o||{}).icon?o:tM(o||{})),e(n,i(i({},r),{},{mask:o}))}}er.map(function(e){rl.add("fa-".concat(e))}),Object.keys(ei[ee]).map(rl.add.bind(rl)),Object.keys(ei[et]).map(rl.add.bind(rl)),rl=f(rl);var rp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.transform,n=void 0===r?eM:r,o=t.symbol,a=void 0!==o&&o,s=t.mask,u=void 0===s?null:s,c=t.maskId,l=void 0===c?null:c,f=t.title,d=void 0===f?null:f,h=t.titleId,p=void 0===h?null:h,m=t.classes,y=void 0===m?[]:m,b=t.attributes,g=void 0===b?{}:b,v=t.styles,w=void 0===v?{}:v;if(e){var _=e.prefix,S=e.iconName,E=e.icon;return tT(i({type:"icon"},e),function(){return tk("beforeDOMElementCreation",{iconDefinition:e,params:t}),eE.autoA11y&&(d?g["aria-labelledby"]="".concat(eE.replacementClass,"-title-").concat(p||eR()):(g["aria-hidden"]="true",g.focusable="false")),tD({icons:{main:t$(E),mask:u?t$(u.icon):{found:!1,width:null,height:null,icon:{}}},prefix:_,iconName:S,transform:i(i({},eM),n),symbol:a,title:d,maskId:l,titleId:p,extra:{attributes:g,styles:w,classes:y}})})}},rm={mixout:function(){return{icon:rh(rp)}},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=rf,e.nodeCallback=rd,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,r=void 0===t?D:t,n=e.callback;return rf(r,void 0===n?function(){}:n)},e.generateSvgReplacementMutation=function(e,t){var r=t.iconName,n=t.title,i=t.titleId,o=t.prefix,a=t.transform,s=t.symbol,u=t.mask,c=t.maskId,f=t.extra;return new Promise(function(t,d){Promise.all([tq(r,o),u.iconName?tq(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(u){var d=l(u,2);t([e,tD({icons:{main:d[0],mask:d[1]},prefix:o,iconName:r,transform:a,symbol:s,maskId:c,title:n,titleId:i,extra:f,watchable:!0})])}).catch(d)})},e.generateAbstractIcon=function(e){var t,r=e.children,n=e.attributes,i=e.main,o=e.transform,a=eN(e.styles);return a.length>0&&(n.style=a),eD(o)&&(t=tA("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),r.push(t||i.icon),{children:r,attributes:n}}}},ry={mixout:function(){return{layer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.classes,n=void 0===r?[]:r;return tT({type:"layer"},function(){tk("beforeDOMElementCreation",{assembler:e,params:t});var r=[];return e(function(e){Array.isArray(e)?e.map(function(e){r=r.concat(e.abstract)}):r=r.concat(e.abstract)}),[{tag:"span",attributes:{class:["".concat(eE.cssPrefix,"-layers")].concat(f(n)).join(" ")},children:r}]})}}}},rb={mixout:function(){return{counter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.title,n=void 0===r?null:r,i=t.classes,o=void 0===i?[]:i,a=t.attributes,s=void 0===a?{}:a,u=t.styles,c=void 0===u?{}:u;return tT({type:"counter",content:e},function(){return tk("beforeDOMElementCreation",{content:e,params:t}),tB({content:e.toString(),title:n,extra:{attributes:s,styles:c,classes:["".concat(eE.cssPrefix,"-layers-counter")].concat(f(o))}})})}}}},rg={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.transform,n=void 0===r?eM:r,o=t.title,a=void 0===o?null:o,s=t.classes,u=void 0===s?[]:s,c=t.attributes,l=void 0===c?{}:c,d=t.styles,h=void 0===d?{}:d;return tT({type:"text",content:e},function(){return tk("beforeDOMElementCreation",{content:e,params:t}),tL({content:e,transform:i(i({},eM),n),title:a,extra:{attributes:l,styles:h,classes:["".concat(eE.cssPrefix,"-layers-text")].concat(f(u))}})})}}},provides:function(e){e.generateLayersText=function(e,t){var r=t.title,n=t.transform,i=t.extra,o=null,a=null;if($){var s=parseInt(getComputedStyle(e).fontSize,10),u=e.getBoundingClientRect();o=u.width/s,a=u.height/s}return eE.autoA11y&&!r&&(i.attributes["aria-hidden"]="true"),Promise.resolve([e,tL({content:e.innerHTML,width:o,height:a,transform:n,title:r,extra:i,watchable:!0})])}}},rv=RegExp('"',"ug"),rw=[1105920,1112319];function r_(e){var t=e.replace(rv,""),r=e2(t,0),n=r>=rw[0]&&r<=rw[1],i=2===t.length&&t[0]===t[1];return{value:i?e1(t[0]):e1(t),isSecondary:n||i}}function rS(e,t){var r="".concat(Z).concat(t.replace(":","-"));return new Promise(function(n,o){if(null!==e.getAttribute(r))return n();var a=eC(e.children).filter(function(e){return e.getAttribute(K)===t})[0],s=N.getComputedStyle(e,t),u=s.getPropertyValue("font-family").match(el),c=s.getPropertyValue("font-weight"),l=s.getPropertyValue("content");
1if(a&&!u)return e.removeChild(a),n();if(u&&"none"!==l&&""!==l){var f=s.getPropertyValue("content"),d=~["Sharp"].indexOf(u[2])?et:ee,h=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(u[2])?eo[d][u[2].toLowerCase()]:ef[d][c],p=r_(f),m=p.value,y=p.isSecondary,b=u[0].startsWith("FontAwesome"),g=tu(h,m),v=g;if(b){var w=td(m);w.iconName&&w.prefix&&(g=w.iconName,h=w.prefix)}if(!g||y||a&&a.getAttribute(J)===h&&a.getAttribute(G)===v)n();else{e.setAttribute(r,v),a&&e.removeChild(a);var _=ra(),S=_.extra;S.attributes[K]=t,tq(g,h).then(function(o){var a=tD(i(i({},_),{},{icons:{main:o,mask:tp()},prefix:h,iconName:v,extra:S,watchable:!0})),s=D.createElement("svg");"::before"===t?e.insertBefore(s,e.firstChild):e.appendChild(s),s.outerHTML=a.map(function(e){return eV(e)}).join("\n"),e.removeAttribute(r),n()}).catch(o)}}else n()})}function rE(e){return Promise.all([rS(e,"::before"),rS(e,"::after")])}function rx(e){return e.parentNode!==document.head&&!~X.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(K)&&(!e.parentNode||"svg"!==e.parentNode.tagName)}function rk(e){if(U)return new Promise(function(t,r){var n=eC(e.querySelectorAll("*")).filter(rx).map(rE),i=tJ.begin("searchPseudoElements");t7(),Promise.all(n).then(function(){i(),t9(),t()}).catch(function(){i(),t9(),r()})})}var rA=!1,rM=function(e){var t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce(function(e,t){var r=t.toLowerCase().split("-"),n=r[0],i=r.slice(1).join("-");if(n&&"h"===i)return e.flipX=!0,e;if(n&&"v"===i)return e.flipY=!0,e;if(isNaN(i=parseFloat(i)))return e;switch(n){case"grow":e.size=e.size+i;break;case"shrink":e.size=e.size-i;break;case"left":e.x=e.x-i;break;case"right":e.x=e.x+i;break;case"up":e.y=e.y-i;break;case"down":e.y=e.y+i;break;case"rotate":e.rotate=e.rotate+i}return e},t)},rO={x:0,y:0,width:"100%",height:"100%"};function rj(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function rR(e){return"g"===e.tag?e.children:[e]}tE([eq,rm,ry,rb,rg,{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=rk,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,r=void 0===t?D:t;eE.searchPseudoElements&&rk(r)}}},{mixout:function(){return{dom:{unwatch:function(){t7(),rA=!0}}}},hooks:function(){return{bootstrap:function(){rt(tx("mutationObserverCallbacks",{}))},noAuto:function(){rr()},watch:function(e){var t=e.observeMutationsRoot;rA?t9():rt(tx("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},{mixout:function(){return{parse:{transform:function(e){return rM(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var r=t.getAttribute("data-fa-transform");return r&&(e.transform=rM(r)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,r=e.transform,n=e.containerWidth,o=e.iconWidth,a={transform:"translate(".concat(n/2," 256)")},s="translate(".concat(32*r.x,", ").concat(32*r.y,") "),u="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),c="rotate(".concat(r.rotate," 0 0)"),l={outer:a,inner:{transform:"".concat(s," ").concat(u," ").concat(c)},path:{transform:"translate(".concat(-(o/2*1)," -256)")}};return{tag:"g",attributes:i({},l.outer),children:[{tag:"g",attributes:i({},l.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:i(i({},t.icon.attributes),l.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(e,t){var r=t.getAttribute("data-fa-mask"),n=r?tb(r.split(" ").map(function(e){return e.trim()})):tp();return n.prefix||(n.prefix=th()),e.mask=n,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(e){var t=e.children,r=e.attributes,n=e.main,o=e.mask,a=e.maskId,s=e.transform,u=n.width,c=n.icon,l=o.width,f=o.icon,d=eL({transform:s,containerWidth:l,iconWidth:u}),h={tag:"rect",attributes:i(i({},rO),{},{fill:"white"})},p=c.children?{children:c.children.map(rj)}:{},m={tag:"g",attributes:i({},d.inner),children:[rj(i({tag:c.tag,attributes:i(i({},c.attributes),d.path)},p))]},y={tag:"g",attributes:i({},d.outer),children:[m]},b="mask-".concat(a||eR()),g="clip-".concat(a||eR()),v={tag:"mask",attributes:i(i({},rO),{},{id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,y]},w={tag:"defs",children:[{tag:"clipPath",attributes:{id:g},children:rR(f)},v]};
1return t.push(w,{tag:"rect",attributes:i({fill:"currentColor","clip-path":"url(#".concat(g,")"),mask:"url(#".concat(b,")")},rO)}),{children:t,attributes:r}}}},{provides:function(e){var t=!1;N.matchMedia&&(t=N.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var e=[],r={fill:"currentColor"},n={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:i(i({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var o=i(i({},n),{},{attributeName:"opacity"}),a={tag:"circle",attributes:i(i({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||a.children.push({tag:"animate",attributes:i(i({},n),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:i(i({},o),{},{values:"1;0;1;1;0;1;"})}),e.push(a),e.push({tag:"path",attributes:i(i({},r),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:i(i({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:i(i({},r),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:i(i({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}},{hooks:function(){return{parseNodeAttributes:function(e,t){var r=t.getAttribute("data-fa-symbol"),n=null!==r&&(""===r||r);return e.symbol=n,e}}}}],{mixoutsTo:tC}),tC.noAuto,tC.config,tC.library,tC.dom;var rC=tC.parse;tC.findIconDefinition,tC.toHtml;var rP=tC.icon;tC.layer,tC.text,tC.counter;var rT=r(5697),rI=r.n(rT),rN=r(7294);function rD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function rL(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rD(Object(r),!0).forEach(function(t){rU(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rD(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function rB(e){return(rB="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})(e)}function rU(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r$(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function rH(e,t){if(null==e)return{};var r,n,i=r$(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function rF(e){return rq(e)||rW(e)||rz(e)||rZ()}function rq(e){if(Array.isArray(e))return rK(e)}function rW(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function rz(e,t){if(e){if("string"==typeof e)return rK(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rK(e,t)}}function rK(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function rZ(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function rJ(e){var t,r=e.beat,n=e.fade,i=e.beatFade,o=e.bounce,a=e.shake,s=e.flash,u=e.spin,c=e.spinPulse,l=e.spinReverse,f=e.pulse,d=e.fixedWidth,h=e.inverse,p=e.border,m=e.listItem,y=e.flip,b=e.size,g=e.rotation,v=e.pull,w=(rU(t={"fa-beat":r,"fa-fade":n,"fa-beat-fade":i,"fa-bounce":o,"fa-shake":a,"fa-flash":s,"fa-spin":u,"fa-spin-reverse":l,"fa-spin-pulse":c,"fa-pulse":f,"fa-fw":d,"fa-inverse":h,"fa-border":p,"fa-li":m,"fa-flip":!0===y,"fa-flip-horizontal":"horizontal"===y||"both"===y,"fa-flip-vert
1ical":"vertical"===y||"both"===y},"fa-".concat(b),null!=b),rU(t,"fa-rotate-".concat(g),null!=g&&0!==g),rU(t,"fa-pull-".concat(v),null!=v),rU(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(w).map(function(e){return w[e]?e:null}).filter(function(e){return e})}function rG(e){return(e-=0)==e}function rV(e){return rG(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(e,t){return t?t.toUpperCase():""})).substr(0,1).toLowerCase()+e.substr(1)}var rY=["style"];function rX(e){return e.charAt(0).toUpperCase()+e.slice(1)}function rQ(e){return e.split(";").map(function(e){return e.trim()}).filter(function(e){return e}).reduce(function(e,t){var r=t.indexOf(":"),n=rV(t.slice(0,r)),i=t.slice(r+1).trim();return n.startsWith("webkit")?e[rX(n)]=i:e[n]=i,e},{})}function r0(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t)return t;var n=(t.children||[]).map(function(t){return r0(e,t)}),i=Object.keys(t.attributes||{}).reduce(function(e,r){var n=t.attributes[r];switch(r){case"class":e.attrs.className=n,delete t.attributes.class;break;case"style":e.attrs.style=rQ(n);break;default:0===r.indexOf("aria-")||0===r.indexOf("data-")?e.attrs[r.toLowerCase()]=n:e.attrs[rV(r)]=n}return e},{attrs:{}}),o=r.style,a=void 0===o?{}:o,s=rH(r,rY);return i.attrs.style=rL(rL({},i.attrs.style),a),e.apply(void 0,[t.tag,rL(rL({},i.attrs),s)].concat(rF(n)))}var r1=!1;try{r1=!0}catch(e){}function r2(){if(!r1&&console&&"function"==typeof console.error){var e;(e=console).error.apply(e,arguments)}}function r6(e){return e&&"object"===rB(e)&&e.prefix&&e.iconName&&e.icon?e:rC.icon?rC.icon(e):null===e?null:e&&"object"===rB(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function r3(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?rU({},e,t):{}}var r4=rN.forwardRef(function(e,t){var r=e.icon,n=e.mask,i=e.symbol,o=e.className,a=e.title,s=e.titleId,u=e.maskId,c=r6(r),l=r3("classes",[].concat(rF(rJ(e)),rF(o.split(" ")))),f=r3("transform","string"==typeof e.transform?rC.transform(e.transform):e.transform),d=r3("mask",r6(n)),h=rP(c,rL(rL(rL(rL({},l),f),d),{},{symbol:i,title:a,titleId:s,maskId:u}));if(!h)return r2("Could not find icon",c),null;var p=h.abstract,m={ref:t};return Object.keys(e).forEach(function(t){r4.defaultProps.hasOwnProperty(t)||(m[t]=e[t])}),r8(p[0],m)});r4.displayName="FontAwesomeIcon",r4.propTypes={beat:rI().bool,border:rI().bool,beatFade:rI().bool,bounce:rI().bool,className:rI().string,fade:rI().bool,flash:rI().bool,mask:rI().oneOfType([rI().object,rI().array,rI().string]),maskId:rI().string,fixedWidth:rI().bool,inverse:rI().bool,flip:rI().oneOf([!0,!1,"horizontal","vertical","both"]),icon:rI().oneOfType([rI().object,rI().array,rI().string]),listItem:rI().bool,pull:rI().oneOf(["right","left"]),pulse:rI().bool,rotation:rI().oneOf([0,90,180,270]),shake:rI().bool,size:rI().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:rI().bool,spinPulse:rI().bool,spinReverse:rI().bool,symbol:rI().oneOfType([rI().bool,rI().string]),title:rI().string,titleId:rI().string,transform:rI().oneOfType([rI().string,rI().object]),swapOpacity:rI().bool},r4.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var r8=r0.bind(null,rN.createElement)},5704:function(e,t,r){"use strict";r.d(t,{kZ:function(){return A}});var n=r(400),i=r(2163),o=r(2057),a=r(2556);function s(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function u(e){return e!==(0,o.Z)(e)&&(0,a.Re)(e)?s(e):(0,i.Z)(e)}var c=r(6333),l=r(4063),f=r(7252),d=r(611),h=r(138);function p(e){var t=e.getBoundingClientRect(),r=(0,h.NM)(t.width)/e.offsetWidth||1,n=(0,h.NM)(t.height)/e.offsetHeight||1;return 1!==r||1!==n}function m(e,t,r){void 0===r&&(r=!1);var i=(0,a.Re)(t),o=(0,a.Re)(t)&&p(t),s=(0,f.Z)(t),h=(0,n.Z)(e,o,r),m={scrollLeft:0,scrollTop:0},y={x:0,y:0};return(i||!i&&!r)&&(("body"!==(0,c.Z)(t)||(0,d.Z)(s))&&(m=u(t)),(0,a.Re)(t)?(y=(0,n.Z)(t,!0),y.x+=t.clientLeft,y.y+=t.clientTop):s&&(y.x=(0,l.Z)(s))),{x:h.left+m.scrollLeft-y.x,y:h.top+m.scrollTop-y.y,width:h.width,height:h.height}}var y=r(583),b=r(1492),g=r(8552),v=r(7701);function w(e){var t=new Map,r=new Set,n=[];function i(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEac
1h(function(e){if(!r.has(e)){var n=t.get(e);n&&i(n)}}),n.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){r.has(e.name)||i(e)}),n}function _(e){var t=w(e);return v.xs.reduce(function(e,r){return e.concat(t.filter(function(e){return e.phase===r}))},[])}function S(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function E(e){var t=e.reduce(function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var x={placement:"bottom",modifiers:[],strategy:"absolute"};function k(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function A(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,i=t.defaultOptions,o=void 0===i?x:i;return function(e,t,r){void 0===r&&(r=o);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},x,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],u=!1,c={state:i,setOptions:function(r){var s="function"==typeof r?r(i.options):r;f(),i.options=Object.assign({},o,i.options,s),i.scrollParents={reference:(0,a.kK)(e)?(0,b.Z)(e):e.contextElement?(0,b.Z)(e.contextElement):[],popper:(0,b.Z)(t)};var u=_(E([].concat(n,i.options.modifiers)));return i.orderedModifiers=u.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!u){var e=i.elements,t=e.reference,r=e.popper;if(k(t,r)){i.rects={reference:m(t,(0,g.Z)(r),"fixed"===i.options.strategy),popper:(0,y.Z)(r)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var n=0;n<i.orderedModifiers.length;n++){if(!0===i.reset){i.reset=!1,n=-1;continue}var o=i.orderedModifiers[n],a=o.fn,s=o.options,l=void 0===s?{}:s,f=o.name;"function"==typeof a&&(i=a({state:i,options:l,name:f,instance:c})||i)}}}},update:S(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){f(),u=!0}};if(!k(e,t))return c;function l(){i.orderedModifiers.forEach(function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,o=e.effect;if("function"==typeof o){var a=o({state:i,name:t,instance:c,options:n}),u=function(){};s.push(a||u)}})}function f(){s.forEach(function(e){return e()}),s=[]}return c.setOptions(r).then(function(e){!u&&r.onFirstUpdate&&r.onFirstUpdate(e)}),c}}},4985:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(2556);function i(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&(0,n.Zq)(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}},400:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(2556),i=r(138),o=r(2057),a=r(7977);function s(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var s=e.getBoundingClientRect(),u=1,c=1;t&&(0,n.Re)(e)&&(u=e.offsetWidth>0&&(0,i.NM)(s.width)/e.offsetWidth||1,c=e.offsetHeight>0&&(0,i.NM)(s.height)/e.offsetHeight||1);var l=((0,n.kK)(e)?(0,o.Z)(e):window).visualViewport,f=!(0,a.Z)()&&r,d=(s.left+(f&&l?l.offsetLeft:0))/u,h=(s.top+(f&&l?l.offsetTop:0))/c,p=s.width/u,m=s.height/c;return{width:p,height:m,top:h,right:d+p,bottom:h+m,left:d,x:d,y:h}}},3062:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(2057);function i(e){return(0,n.Z)(e).getComputedStyle(e)}},7252:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(2556);function i(e){return(((0,n.kK)(e)?e.ownerDocument:e.document)||window.document).documentElement}},583:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(400);function i(e){var t=(0,n.Z)(e),r=e.offsetWidth,i=e.offsetHeight;return 1>=Math.abs(t.width-r)&&(r=t.width),1>=Math.abs(t.height-i)&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}},6333:function(e,t,r){"use strict";function n(e){return e?(e.nodeName||"").toLowerCase():null}r.d(t,{Z:function(){return n}})},8552:function(e,t,r){"use strict";r.d(t,{Z:function(){return d}});var n=r(2057),i=r(6333),o=r(3062),a=r(2556);function s(e){return["table","td","th"].indexOf((0,i.Z)(e))>=0}var u=r(5923),c=r(5918);function l(e){return(0,a.Re)(e)&&"fixed"!==(0,o.Z)(e).position?e.offsetParent:null}function f(e){var t=/firefox/i.test((0,c.Z)());if(/Trident/i.test((0,c.Z)())&&(0,a.Re)(e)&&"fixed"===(0,o.Z)(e).position)return null;var r=(0,u.Z)(e);for((0,a.Zq)(r)&&(r=r.host);(0,a.Re)(r)&&0>["html","body"].indexOf((0,i.Z)(r));){var n=(0,o.Z)(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}function d(e){for(var t=(0,n.Z)(e),r=l(e);r&&s(r)&&"static"===(0,o.Z)(r).position;)r=l(r);return r&&("html"===(0,i.Z)(r)||"body"===(0,i.Z)(r)&&"static"===(0,o.Z)(r).position)?t:r||f(e)||t}},5923:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(6333),i=r(7252),o=r(2556);function a(e){return"html"===(0,n.Z)(e)?e:e.assignedSlot||e.parentNode||((0,o.Zq)(e)?e.host:null)||(0,i.Z)(e)}},2057:function(e,t,r){"use strict";function n(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}r.d(t,{Z:function(){return n}})},2163:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(2057);function i(e){var t=(0,n.Z)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}},4063:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(400),i=r(7252),o=r(2163);function a(e){return(0,n.Z)((0,i.Z)(e)).left+(0,o.Z)(e).scrollLeft}},2556:function(e,t,r){"use strict";r.d(t,{Re:function(){return o},Zq:function(){return a},kK:function(){return i}});var n=r(2057);function i(e){var t=(0,n.Z)(e).Element;return e instanceof t||e instanceof Element}function o(e){var t=(0,n.Z)(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function a(e){if("undefined"==typeof ShadowRoot)return!1;var t=(0,n.Z)(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}},7977:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(5918);function i(){return!/^((?!chrome|android).)*safari/i.test((0,n.Z)())}},611:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(3062);function i(e){var t=(0,n.Z)(e),r=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+i)}},1492:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(5923),i=r(611),o=r(6333),a=r(2556);function s(e){return["html","body","#document"].indexOf((0,o.Z)(e))>=0?e.ownerDocument.body:(0,a.Re)(e)&&(0,i.Z)(e)?e:s((0,n.Z)(e))}var u=r(2057);function c(e,t){void 0===t&&(t=[]);var r,o=s(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),l=(0,u.Z)(o),f=a?[l].concat(l.visualVie
1wport||[],(0,i.Z)(o)?o:[]):o,d=t.concat(f);return a?d:d.concat(c((0,n.Z)(f)))}},7701:function(e,t,r){"use strict";r.d(t,{BL:function(){return c},Ct:function(){return y},F2:function(){return o},I:function(){return i},Pj:function(){return d},YP:function(){return p},bw:function(){return m},d7:function(){return s},k5:function(){return h},mv:function(){return u},t$:function(){return a},ut:function(){return l},we:function(){return n},xs:function(){return b},zV:function(){return f}});var n="top",i="bottom",o="right",a="left",s="auto",u=[n,i,o,a],c="start",l="end",f="clippingParents",d="viewport",h="popper",p="reference",m=u.reduce(function(e,t){return e.concat([t+"-"+c,t+"-"+l])},[]),y=[].concat(u,[s]).reduce(function(e,t){return e.concat([t,t+"-"+c,t+"-"+l])},[]),b=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"]},6896:function(e,t,r){"use strict";var n=r(6206),i=r(583),o=r(4985),a=r(8552),s=r(1516),u=r(7516),c=r(3293),l=r(3706),f=r(7701),d=function(e,t){return e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,(0,c.Z)("number"!=typeof e?e:(0,l.Z)(e,f.mv))};function h(e){var t,r=e.state,o=e.name,c=e.options,l=r.elements.arrow,h=r.modifiersData.popperOffsets,p=(0,n.Z)(r.placement),m=(0,s.Z)(p),y=[f.t$,f.F2].indexOf(p)>=0?"height":"width";if(l&&h){var b=d(c.padding,r),g=(0,i.Z)(l),v="y"===m?f.we:f.t$,w="y"===m?f.I:f.F2,_=r.rects.reference[y]+r.rects.reference[m]-h[m]-r.rects.popper[y],S=h[m]-r.rects.reference[m],E=(0,a.Z)(l),x=E?"y"===m?E.clientHeight||0:E.clientWidth||0:0,k=_/2-S/2,A=b[v],M=x-g[y]-b[w],O=x/2-g[y]/2+k,j=(0,u.u)(A,O,M),R=m;r.modifiersData[o]=((t={})[R]=j,t.centerOffset=j-O,t)}}function p(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&(0,o.Z)(t.elements.popper,n)&&(t.elements.arrow=n)}t.Z={name:"arrow",enabled:!0,phase:"main",fn:h,effect:p,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},6531:function(e,t,r){"use strict";var n=r(7701),i=r(8552),o=r(2057),a=r(7252),s=r(3062),u=r(6206),c=r(5458),l=r(138),f={top:"auto",right:"auto",bottom:"auto",left:"auto"};function d(e){var t=e.x,r=e.y,n=window.devicePixelRatio||1;return{x:(0,l.NM)(t*n)/n||0,y:(0,l.NM)(r*n)/n||0}}function h(e){var t,r,u=e.popper,c=e.popperRect,l=e.placement,h=e.variation,p=e.offsets,m=e.position,y=e.gpuAcceleration,b=e.adaptive,g=e.roundOffsets,v=e.isFixed,w=p.x,_=void 0===w?0:w,S=p.y,E=void 0===S?0:S,x="function"==typeof g?g({x:_,y:E}):{x:_,y:E};_=x.x,E=x.y;var k=p.hasOwnProperty("x"),A=p.hasOwnProperty("y"),M=n.t$,O=n.we,j=window;if(b){var R=(0,i.Z)(u),C="clientHeight",P="clientWidth";R===(0,o.Z)(u)&&(R=(0,a.Z)(u),"static"!==(0,s.Z)(R).position&&"absolute"===m&&(C="scrollHeight",P="scrollWidth")),(l===n.we||(l===n.t$||l===n.F2)&&h===n.ut)&&(O=n.I,E-=(v&&R===j&&j.visualViewport?j.visualViewport.height:R[C])-c.height,E*=y?1:-1),(l===n.t$||(l===n.we||l===n.I)&&h===n.ut)&&(M=n.F2,_-=(v&&R===j&&j.visualViewport?j.visualViewport.width:R[P])-c.width,_*=y?1:-1)}var T=Object.assign({position:m},b&&f),I=!0===g?d({x:_,y:E}):{x:_,y:E};return(_=I.x,E=I.y,y)?Object.assign({},T,((r={})[O]=A?"0":"",r[M]=k?"0":"",r.transform=1>=(j.devicePixelRatio||1)?"translate("+_+"px, "+E+"px)":"translate3d("+_+"px, "+E+"px, 0)",r)):Object.assign({},T,((t={})[O]=A?E+"px":"",t[M]=k?_+"px":"",t.transform="",t))}function p(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=void 0===n||n,o=r.adaptive,a=void 0===o||o,s=r.roundOffsets,l=void 0===s||s,f={placement:(0,u.Z)(t.placement),variation:(0,c.Z)(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,h(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,h(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}t.Z={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:p,data:{}}},2372:function(e,t,r){"use strict";var n=r(2057),i={passive:!0};function o(e){var t=e.state,r=e.instance,o=e.options,a=o.scroll,s=void 0===a||a,u=o.resize,c=void 0===u||u,l=(0,n.Z)(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&f.forEach(function(e){e.addEventListener("scroll",r.update,i)}),c&&l.addEventListener("resize",r.update,i),function(){s&&f.forEach(function(e){e.removeEventListener("scroll",r.update,i)}),c&&l.removeEventListener("resize",r.update,i)}}t.Z={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:o,data:{}}},8855:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});
1var n={left:"right",right:"left",bottom:"top",top:"bottom"};function i(e){return e.replace(/left|right|bottom|top/g,function(e){return n[e]})}var o=r(6206),a={start:"end",end:"start"};function s(e){return e.replace(/start|end/g,function(e){return a[e]})}var u=r(6486),c=r(5458),l=r(7701);function f(e,t){void 0===t&&(t={});var r=t,n=r.placement,i=r.boundary,a=r.rootBoundary,s=r.padding,f=r.flipVariations,d=r.allowedAutoPlacements,h=void 0===d?l.Ct:d,p=(0,c.Z)(n),m=p?f?l.bw:l.bw.filter(function(e){return(0,c.Z)(e)===p}):l.mv,y=m.filter(function(e){return h.indexOf(e)>=0});0===y.length&&(y=m);var b=y.reduce(function(t,r){return t[r]=(0,u.Z)(e,{placement:r,boundary:i,rootBoundary:a,padding:s})[(0,o.Z)(r)],t},{});return Object.keys(b).sort(function(e,t){return b[e]-b[t]})}function d(e){if((0,o.Z)(e)===l.d7)return[];var t=i(e);return[s(e),t,s(t)]}var h={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,s=void 0===a||a,h=r.altAxis,p=void 0===h||h,m=r.fallbackPlacements,y=r.padding,b=r.boundary,g=r.rootBoundary,v=r.altBoundary,w=r.flipVariations,_=void 0===w||w,S=r.allowedAutoPlacements,E=t.options.placement,x=(0,o.Z)(E)===E,k=[E].concat(m||(x||!_?[i(E)]:d(E))).reduce(function(e,r){return e.concat((0,o.Z)(r)===l.d7?f(t,{placement:r,boundary:b,rootBoundary:g,padding:y,flipVariations:_,allowedAutoPlacements:S}):r)},[]),A=t.rects.reference,M=t.rects.popper,O=new Map,j=!0,R=k[0],C=0;C<k.length;C++){var P=k[C],T=(0,o.Z)(P),I=(0,c.Z)(P)===l.BL,N=[l.we,l.I].indexOf(T)>=0,D=N?"width":"height",L=(0,u.Z)(t,{placement:P,boundary:b,rootBoundary:g,altBoundary:v,padding:y}),B=N?I?l.F2:l.t$:I?l.I:l.we;A[D]>M[D]&&(B=i(B));var U=i(B),$=[];if(s&&$.push(L[T]<=0),p&&$.push(L[B]<=0,L[U]<=0),$.every(function(e){return e})){R=P,j=!1;break}O.set(P,$)}if(j)for(var H=_?3:1,F=function(e){var t=k.find(function(t){var r=O.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return R=t,"break"},q=H;q>0&&"break"!==F(q);q--);t.placement!==R&&(t.modifiersData[n]._skip=!0,t.placement=R,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}}},1716:function(e,t,r){"use strict";var n=r(7701),i=r(6486);function o(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function a(e){return[n.we,n.F2,n.I,n.t$].some(function(t){return e[t]>=0})}function s(e){var t=e.state,r=e.name,n=t.rects.reference,s=t.rects.popper,u=t.modifiersData.preventOverflow,c=(0,i.Z)(t,{elementContext:"reference"}),l=(0,i.Z)(t,{altBoundary:!0}),f=o(c,n),d=o(l,s,u),h=a(f),p=a(d);t.modifiersData[r]={referenceClippingOffsets:f,popperEscapeOffsets:d,isReferenceHidden:h,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":p})}t.Z={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:s}},2122:function(e,t,r){"use strict";var n=r(6206),i=r(7701);function o(e,t,r){var o=(0,n.Z)(e),a=[i.t$,i.we].indexOf(o)>=0?-1:1,s="function"==typeof r?r(Object.assign({},t,{placement:e})):r,u=s[0],c=s[1];return u=u||0,c=(c||0)*a,[i.t$,i.F2].indexOf(o)>=0?{x:c,y:u}:{x:u,y:c}}function a(e){var t=e.state,r=e.options,n=e.name,a=r.offset,s=void 0===a?[0,0]:a,u=i.Ct.reduce(function(e,r){return e[r]=o(r,t.rects,s),e},{}),c=u[t.placement],l=c.x,f=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=f),t.modifiersData[n]=u}t.Z={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:a}},7421:function(e,t,r){"use strict";var n=r(2581);function i(e){var t=e.state,r=e.name;t.modifiersData[r]=(0,n.Z)({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}t.Z={name:"popperOffsets",enabled:!0,phase:"read",fn:i,data:{}}},394:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var n=r(7701),i=r(6206),o=r(1516);function a(e){return"x"===e?"y":"x"}var s=r(7516),u=r(583),c=r(8552),l=r(6486),f=r(5458),d=r(3607),h=r(138),p={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,p=e.name,m=r.mainAxis,y=void 0===m||m,b=r.altAxis,g=void 0!==b&&b,v=r.boundary,w=r.rootBoundary,_=r.altBoundary,S=r.padding,E=r.tether,x=void 0===E||E,k=r.tetherOffset,A=void 0===k?0:k,M=(0,l.Z)(t,{boundary:v,rootBoundary:w,padding:S,altBoundary:_}),O=(0,i.Z)(t.placement),j=(0,f.Z)(t.placement),R=!j,C=(0,o.Z)(O),P=a(C),T=t.modifiersData.popperOffsets,I=t.rects.reference,N=t.rects.popper,D="function"==typeof A?A(Object.assign({},t.rects,{placement:t.placement})):A,L="number"==typeof D?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(T){if(y){var $,H="y"===C?n.we:n.t$,F="y"===C?n.I:n.F2,q="y"===C?"height":"width",W=T[C],z=W+M[H],K=W-M[F],Z=x?-N[q]/2:0,J=j===n.BL?I[q]:N[q],G=j===n.BL?-N[q]:-I[q],V=t.elements.arrow,Y=x&&V?(0,u.Z)(V):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,d.Z)(),Q=X[H],ee=X[F],et=(0,s.u)(0,I[q],Y[q]),er=R?I[q]/2-Z-et-Q-L.mainAxis:J-et-Q-L.mainAxis,en=R?-I[q]/2+Z+et+ee+L.mainAxis:G+et+ee+L.mainAxis,ei=t.elements.arrow&&(0,c.Z)(t.elements.arrow),eo=ei?"y"===C?ei.clientTop||0:ei.clientLeft||0:0,ea=null!=($=null==B?void 0:B[C])?$:0,es=W+er-ea-eo,eu=W+en-ea,ec=(0,s.u)(x?(0,h.VV)(z,es):z,W,x?(0,h.Fp)(K,eu):K);T[C]=ec,U[C]=ec-W}if(g){var el,ef="x"===C?n.we:n.t$,ed="x"===C?n.I:n.F2,eh=T[P],ep="y"===P?"height":"width",em=eh+M[ef],ey=eh-M[ed],eb=-1!==[n.we,n.t$].indexOf(O),eg=null!=(el=null==B?void 0:B[P])?el:0,ev=eb?em:eh-I[ep]-N[ep]-eg+L.altAxis,ew=eb?eh+I[ep]+N[ep]-eg-L.altAxis:ey,e_=x&&eb?(0,s.q)(ev,eh,ew):(0,s.u)(x?ev:em,eh,x?ew:ey);T[P]=e_,U[P]=e_-eh}t.modifiersData[p]=U}},requiresIfExists:["offset"]}},2581:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(6206),i=r(5458),o=r(1516),a=r(7701);function s(e){var t,r=e.reference,s=e.element,u=e.placement,c=u?(0,n.Z)(u):null,l=u?(0,i.Z)(u):null,f=r.x+r.width/2-s.width/2,d=r.y+r.height/2-s.height/2;switch(c){case a.we:t={x:f,y:r.y-s.height};break;case a.I:t={x:f,y:r.y+r.height};break;case a.F2:t={x:r.x+r.width,y:d};break;case a.t$:t={x:r.x-s.width,y:d};break;default:t={x:r.x,y:r.y}}var h=c?(0,o.Z)(c):null;if(null!=h){var p="y"===h?"height":"width";switch(l){case a.BL:t[h]=t[h]-(r[p]/2-s[p]/2);break;case a.ut:t[h]=t[h]+(r[p]/2-s[p]/2)}}return t}},6486:function(e,t,r){"use strict";r.d(t,{Z:function(){return O}});var n=r(7701),i=r(2057),o=r(7252),a=r(4063),s=r(7977);
1function u(e,t){var r=(0,i.Z)(e),n=(0,o.Z)(e),u=r.visualViewport,c=n.clientWidth,l=n.clientHeight,f=0,d=0;if(u){c=u.width,l=u.height;var h=(0,s.Z)();(h||!h&&"fixed"===t)&&(f=u.offsetLeft,d=u.offsetTop)}return{width:c,height:l,x:f+(0,a.Z)(e),y:d}}var c=r(3062),l=r(2163),f=r(138);function d(e){var t,r=(0,o.Z)(e),n=(0,l.Z)(e),i=null==(t=e.ownerDocument)?void 0:t.body,s=(0,f.Fp)(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),u=(0,f.Fp)(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),d=-n.scrollLeft+(0,a.Z)(e),h=-n.scrollTop;return"rtl"===(0,c.Z)(i||r).direction&&(d+=(0,f.Fp)(r.clientWidth,i?i.clientWidth:0)-s),{width:s,height:u,x:d,y:h}}var h=r(1492),p=r(8552),m=r(2556),y=r(400),b=r(5923),g=r(4985),v=r(6333);function w(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function _(e,t){var r=(0,y.Z)(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function S(e,t,r){return t===n.Pj?w(u(e,r)):(0,m.kK)(t)?_(t,r):w(d((0,o.Z)(e)))}function E(e){var t=(0,h.Z)((0,b.Z)(e)),r=["absolute","fixed"].indexOf((0,c.Z)(e).position)>=0&&(0,m.Re)(e)?(0,p.Z)(e):e;return(0,m.kK)(r)?t.filter(function(e){return(0,m.kK)(e)&&(0,g.Z)(e,r)&&"body"!==(0,v.Z)(e)}):[]}function x(e,t,r,n){var i=[].concat("clippingParents"===t?E(e):[].concat(t),[r]),o=i[0],a=i.reduce(function(t,r){var i=S(e,r,n);return t.top=(0,f.Fp)(i.top,t.top),t.right=(0,f.VV)(i.right,t.right),t.bottom=(0,f.VV)(i.bottom,t.bottom),t.left=(0,f.Fp)(i.left,t.left),t},S(e,o,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}var k=r(2581),A=r(3293),M=r(3706);function O(e,t){void 0===t&&(t={});var r=t,i=r.placement,a=void 0===i?e.placement:i,s=r.strategy,u=void 0===s?e.strategy:s,c=r.boundary,l=void 0===c?n.zV:c,f=r.rootBoundary,d=void 0===f?n.Pj:f,h=r.elementContext,p=void 0===h?n.k5:h,b=r.altBoundary,g=void 0!==b&&b,v=r.padding,_=void 0===v?0:v,S=(0,A.Z)("number"!=typeof _?_:(0,M.Z)(_,n.mv)),E=p===n.k5?n.YP:n.k5,O=e.rects.popper,j=e.elements[g?E:p],R=x((0,m.kK)(j)?j:j.contextElement||(0,o.Z)(e.elements.popper),l,d,u),C=(0,y.Z)(e.elements.reference),P=(0,k.Z)({reference:C,element:O,strategy:"absolute",placement:a}),T=w(Object.assign({},O,P)),I=p===n.k5?T:C,N={top:R.top-I.top+S.top,bottom:I.bottom-R.bottom+S.bottom,left:R.left-I.left+S.left,right:I.right-R.right+S.right},D=e.modifiersData.offset;if(p===n.k5&&D){var L=D[a];Object.keys(N).forEach(function(e){var t=[n.F2,n.I].indexOf(e)>=0?1:-1,r=[n.we,n.I].indexOf(e)>=0?"y":"x";N[e]+=L[r]*t})}return N}},3706:function(e,t,r){"use strict";function n(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}r.d(t,{Z:function(){return n}})},6206:function(e,t,r){"use strict";function n(e){return e.split("-")[0]}r.d(t,{Z:function(){return n}})},3607:function(e,t,r){"use strict";function n(){return{top:0,right:0,bottom:0,left:0}}r.d(t,{Z:function(){return n}})},1516:function(e,t,r){"use strict";function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}r.d(t,{Z:function(){return n}})},5458:function(e,t,r){"use strict";function n(e){return e.split("-")[1]}r.d(t,{Z:function(){return n}})},138:function(e,t,r){"use strict";r.d(t,{Fp:function(){return n},NM:function(){return o},VV:function(){return i}});var n=Math.max,i=Math.min,o=Math.round},3293:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(3607);function i(e){return Object.assign({},(0,n.Z)(),e)}},5918:function(e,t,r){"use strict";function n(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}r.d(t,{Z:function(){return n}})},7516:function(e,t,r){"use strict";r.d(t,{q:function(){return o},u:function(){return i}});var n=r(138);function i(e,t,r){return(0,n.Fp)(e,(0,n.VV)(t,r))}function o(e,t,r){var n=i(e,t,r);return n>r?r:n}},2092:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(7294);function i(){return(0,n.useState)(null)}},2029:function(e,t,r){"use strict";var n=r(7294);function i(e){var t=(0,n.useRef)(e);return(0,n.useEffect)(function(){t.current=e},[e]),t}t.Z=i},8146:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(7294),i=r(2029);function o(e){var t=(0,i.Z)(e);return(0,n.useCallback)(function(){return t.current&&t.current.apply(t,arguments)},[t])}},4357:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(7294);function i(){return(0,n.useReducer)(function(e){return!e},!1)[1]}},9585:function(e,t,r){"use strict";var n=r(7294),i=void 0!==r.g&&r.g.navigator&&"ReactNative"===r.g.navigator.product,o="undefined"!=typeof document;t.Z=o||i?n.useLayoutEffect:n.useEffect},5654:function(e,t,r){"use strict";var n=r(7294),i=function(e){return e&&"function"!=typeof e?function(t){e.current=t}:e};function o(e,t){var r=i(e),n=i(t);return function(e){r&&r(e),n&&n(e)}}function a(e,t){return(0,n.useMemo)(function(){return o(e,t)},[e,t])}t.Z=a},6454:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(7294);function i(){var e=(0,n.useRef)(!0),t=(0,n.useRef)(function(){return e.current});return(0,n.useEffect)(function(){return e.current=!0,function(){e.current=!1}},[]),t.current}},8833:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(7294);function i(e){var t=(0,n.useRef)(null);return(0,n.useEffect)(function(){t.current=e}),t.current}},6852:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(7294);function i(e){var t=(0,n.useRef)(e);return t.current=e,t}function o(e){var t=i(e);(0,n.useEffect)(function(){return function(){return t.current()}},[])}},861:function(e,t,r){"use strict";r.d(t,{FT:function(){return u}});var n=r(7294),i=r(5893);let o=["as","disabled"];function a(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function s(e){return!e||"#"===e.trim()}function u({tagName:e,disabled:t,href:r,target:n,rel:i,role:o,onClick:a,tabIndex:u=0,type:c}){e||(e=null!=r||null!=n||null!=i?"a":"button");let l={tagName:e};if("button"===e)return[{type:c||"button",disabled:t},l];let f=n=>{if((t||"a"===e&&s(r))&&n.preventDefault(),t){n.stopPropagation();return}null==a||a(n)},d=e=>{" "===e.key&&(e.preventDefault(),f(e))};return"a"===e&&(r||(r="#"),t&&(r=void 0)),[{role:null!=o?o:"button",disabled:void 0,tabIndex:t?void 0:u,href:r,target:"a"===e?n:void 0,"aria-disabled":t||void 0,rel:"a"===e?i:void 0,onClick:f,onKeyDown:d},l]}let c=n.forwardRef((e,t)=>
1{let{as:r,disabled:n}=e,s=a(e,o),[c,{tagName:l}]=u(Object.assign({tagName:r,disabled:n},s));return(0,i.jsx)(l,Object.assign({},s,c,{ref:t}))});c.displayName="Button",t.ZP=c},2747:function(e,t,r){"use strict";r.d(t,{$F:function(){return a},PB:function(){return o}});let n="data-rr-ui-",i="rrUi";function o(e){return`${n}${e}`}function a(e){return`${i}${e}`}},722:function(e,t,r){"use strict";r.d(t,{sD:function(){return f}});var n=r(5654),i=r(8146),o=r(9585),a=r(7294),s=function({children:e,in:t,onExited:r,mountOnEnter:o,unmountOnExit:s}){let u=(0,a.useRef)(null),c=(0,a.useRef)(t),l=(0,i.Z)(r);(0,a.useEffect)(()=>{t?c.current=!0:l(u.current)},[t,l]);let f=(0,n.Z)(u,e.ref),d=(0,a.cloneElement)(e,{ref:f});return t?d:s||!c.current&&o?null:d},u=r(5893);function c({in:e,onTransition:t}){let r=(0,a.useRef)(null),n=(0,a.useRef)(!0),s=(0,i.Z)(t);return(0,o.Z)(()=>{if(!r.current)return;let t=!1;return s({in:e,element:r.current,initial:n.current,isStale:()=>t}),()=>{t=!0}},[e,s]),(0,o.Z)(()=>(n.current=!1,()=>{n.current=!0}),[]),r}function l({children:e,in:t,onExited:r,onEntered:i,transition:o}){let[s,u]=(0,a.useState)(!t);t&&s&&u(!1);let l=c({in:!!t,onTransition:e=>{let t=()=>{e.isStale()||(e.in?null==i||i(e.element,e.initial):(u(!0),null==r||r(e.element)))};Promise.resolve(o(e)).then(t,t=>{throw e.in||u(!0),t})}}),f=(0,n.Z)(l,e.ref);return s&&!t?null:(0,a.cloneElement)(e,{ref:f})}function f(e,t,r){return e?(0,u.jsx)(e,Object.assign({},r)):t?(0,u.jsx)(l,Object.assign({},r,{transition:t})):(0,u.jsx)(s,Object.assign({},r))}},6664:function(e,t,r){"use strict";let n;r.d(t,{Z:function(){return k}});var i=r(7216);function o(e){void 0===e&&(e=(0,i.Z)());try{var t=e.activeElement;if(!t||!t.nodeName)return null;return t}catch(t){return e.body}}var a=r(424),s=r(3004),u=r(2950),c=r(7294),l=r(3935),f=r(6454),d=r(6852),h=r(8833),p=r(8146),m=r(8083),y=r(4194),b=r(2963),g=r(722),v=r(5893);let w=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function _(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function S(e){return n||(n=new m.Z({ownerDocument:null==e?void 0:e.document})),n}function E(e){let t=(0,b.Z)(),r=e||S(t),n=(0,c.useRef)({dialog:null,backdrop:null});return Object.assign(n.current,{add:()=>r.add(n.current),remove:()=>r.remove(n.current),isTopModal:()=>r.isTopModal(n.current),setDialogRef:(0,c.useCallback)(e=>{n.current.dialog=e},[]),setBackdropRef:(0,c.useCallback)(e=>{n.current.backdrop=e},[])})}let x=(0,c.forwardRef)((e,t)=>{let{show:r=!1,role:n="dialog",className:i,style:m,children:b,backdrop:S=!0,keyboard:x=!0,onBackdropClick:k,onEscapeKeyDown:A,transition:M,runTransition:O,backdropTransition:j,runBackdropTransition:R,autoFocus:C=!0,enforceFocus:P=!0,restoreFocus:T=!0,restoreFocusOptions:I,renderDialog:N,renderBackdrop:D=e=>(0,v.jsx)("div",Object.assign({},e)),manager:L,container:B,onShow:U,onHide:$=()=>{},onExit:H,onExited:F,onExiting:q,onEnter:W,onEntering:z,onEntered:K}=e,Z=_(e,w),J=(0,y.Z)(B),G=E(L),V=(0,f.Z)(),Y=(0,h.Z)(r),[X,Q]=(0,c.useState)(!r),ee=(0,c.useRef)(null);(0,c.useImperativeHandle)(t,()=>G,[G]),s.Z&&!Y&&r&&(ee.current=o()),r&&X&&Q(!1);let et=(0,p.Z)(()=>{if(G.add(),es.current=(0,u.Z)(document,"keydown",eo),ea.current=(0,u.Z)(document,"focus",()=>setTimeout(en),!0),U&&U(),C){let e=o(document);G.dialog&&e&&!(0,a.Z)(G.dialog,e)&&(ee.current=e,G.dialog.focus())}}),er=(0,p.Z)(()=>{if(G.remove(),null==es.current||es.current(),null==ea.current||ea.current(),T){var e;null==(e=ee.current)||null==e.focus||e.focus(I),ee.current=null}});(0,c.useEffect)(()=>{r&&J&&et()},[r,J,et]),(0,c.useEffect)(()=>{X&&er()},[X,er]),(0,d.Z)(()=>{er()});let en=(0,p.Z)(()=>{if(!P||!V()||!G.isTopModal())return;let e=o();G.dialog&&e&&!(0,a.Z)(G.dialog,e)&&G.dialog.focus()}),ei=(0,p.Z)(e=>{e.target===e.currentTarget&&(null==k||k(e),!0===S&&$())}),eo=(0,p.Z)(e=>
1{x&&27===e.keyCode&&G.isTopModal()&&(null==A||A(e),e.defaultPrevented||$())}),ea=(0,c.useRef)(),es=(0,c.useRef)(),eu=(...e)=>{Q(!0),null==F||F(...e)};if(!J)return null;let ec=Object.assign({role:n,ref:G.setDialogRef,"aria-modal":"dialog"===n||void 0},Z,{style:m,className:i,tabIndex:-1}),el=N?N(ec):(0,v.jsx)("div",Object.assign({},ec,{children:c.cloneElement(b,{role:"document"})}));el=(0,g.sD)(M,O,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!r,onExit:H,onExiting:q,onExited:eu,onEnter:W,onEntering:z,onEntered:K,children:el});let ef=null;return S&&(ef=D({ref:G.setBackdropRef,onClick:ei}),ef=(0,g.sD)(j,R,{in:!!r,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:ef})),(0,v.jsx)(v.Fragment,{children:l.createPortal((0,v.jsxs)(v.Fragment,{children:[ef,el]}),J)})});x.displayName="Modal";var k=Object.assign(x,{Manager:m.Z})},8083:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(1505),i=r(2747);function o(e=document){let t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}let a=(0,i.PB)("modal-open");class s{constructor({ownerDocument:e,handleContainerOverflow:t=!0,isRTL:r=!1}={}){this.handleContainerOverflow=t,this.isRTL=r,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return o(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){let t={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",i=this.getElement();e.style={overflow:i.style.overflow,[r]:i.style[r]},e.scrollBarWidth&&(t[r]=`${parseInt((0,n.Z)(i,r)||"0",10)+e.scrollBarWidth}px`),i.setAttribute(a,""),(0,n.Z)(i,t)}reset(){[...this.modals].forEach(e=>this.remove(e))}
1removeContainerStyle(e){let t=this.getElement();t.removeAttribute(a),Object.assign(t.style,e.style)}add(e){let t=this.modals.indexOf(e);return -1!==t||(t=this.modals.length,this.modals.push(e),this.setModalAttributes(e),0!==t||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state))),t}remove(e){let t=this.modals.indexOf(e);-1!==t&&(this.modals.splice(t,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}isTopModal(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}}var u=s},4194:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(7216),i=r(3004),o=r(7294),a=r(2963);let s=(e,t)=>i.Z?null==e?(t||(0,n.Z)()).body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect))?e:null:null;function u(e,t){let r=(0,a.Z)(),[n,i]=(0,o.useState)(()=>s(e,null==r?void 0:r.document));if(!n){let t=s(e);t&&i(t)}return(0,o.useEffect)(()=>{t&&n&&t(n)},[t,n]),(0,o.useEffect)(()=>{let t=s(e);t!==n&&i(t)},[e,n]),n}},2963:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(7294),i=r(3004);let o=(0,n.createContext)(i.Z?window:void 0);function a(){return(0,n.useContext)(o)}o.Provider},4184:function(e,t){var r;/*! 2 Copyright (c) 2018 Jed Watson. 3 Licensed under the MIT License (MIT), see 4 http://jedwatson.github.io/classnames 5*/!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)){if(r.length){var a=i.apply(null,r);a&&e.push(a)}}else if("object"===o){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0!==(r=(function(){return i}).apply(t,[]))&&(e.exports=r)}()},6489:function(e,t){"use strict";/*! 6 * cookie 7 * Copyright(c) 2012-2014 Roman Shtylman 8 * Copyright(c) 2015 Douglas Christopher Wilson 9 * MIT Licensed 10 */t.parse=i,t.serialize=o;var r=Object.prototype.toString,n=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function i(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var r={},n=(t||{}).decode||a,i=0;i<e.length;){var o=e.indexOf("=",i);if(-1===o)break;var s=e.indexOf(";",i);if(-1===s)s=e.length;else if(s<o){i=e.lastIndexOf(";",o-1)+1;continue}var u=e.slice(i,o).trim();if(void 0===r[u]){var l=e.slice(o+1,s).trim();34===l.charCodeAt(0)&&(l=l.slice(1,-1)),r[u]=c(l,n)}i=s+1}return r}function o(e,t,r){var i=r||{},o=i.encode||s;if("function"!=typeof o)throw TypeError("option encode is invalid");if(!n.test(e))throw TypeError("argument name is invalid");var a=o(t);if(a&&!n.test(a))throw TypeError("argument val is invalid");var c=e+"="+a;if(null!=i.maxAge){var l=i.maxAge-0;if(isNaN(l)||!isFinite(l))throw TypeError("option maxAge is invalid");c+="; Max-Age="+Math.floor(l)}if(i.domain){if(!n.test(i.domain))throw TypeError("option domain is invalid");c+="; Domain="+i.domain}if(i.path){if(!n.test(i.path))throw TypeError("option path is invalid");c+="; Path="+i.path}if(i.expires){var f=i.expires;if(!u(f)||isNaN(f.valueOf()))throw TypeError("option expires is invali
10d");c+="; Expires="+f.toUTCString()}if(i.httpOnly&&(c+="; HttpOnly"),i.secure&&(c+="; Secure"),i.priority)switch("string"==typeof i.priority?i.priority.toLowerCase():i.priority){case"low":c+="; Priority=Low";break;case"medium":c+="; Priority=Medium";break;case"high":c+="; Priority=High";break;default:throw TypeError("option priority is invalid")}if(i.sameSite)switch("string"==typeof i.sameSite?i.sameSite.toLowerCase():i.sameSite){case!0:case"strict":c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"none":c+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return c}function a(e){return -1!==e.indexOf("%")?decodeURIComponent(e):e}function s(e){return encodeURIComponent(e)}function u(e){return"[object Date]"===r.call(e)||e instanceof Date}function c(e,t){try{return t(e)}catch(t){return e}}},1227:function(e,t,r){var n=r(3454);function i(){return"undefined"!=typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function o(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))}),t.splice(i,0,r)}function a(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}}function s(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&void 0!==n&&"env"in n&&(e=n.env.DEBUG),e}function u(){try{return localStorage}catch(e){}}t.formatArgs=o,t.save=a,t.load=s,t.useColors=i,t.storage=u(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(2447)(t);let{formatters:c}=e.exports;c.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2447:function(e,t,r){function n(e){function t(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r)|0;return n.colors[Math.abs(t)%n.colors.length]}function n(e){let t,r,o;let a=null;function s(...e){if(!s.enabled)return;let r=s,i=Number(new Date),o=i-(t||i);r.diff=o,r.prev=t,r.curr=i,t=i,e[0]=n.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,i)=>{if("%%"===t)return"%";a++;let o=n.formatters[i];if("function"==typeof o){let n=e[a];t=o.call(r,n),e.splice(a,1),a--}return t}),n.formatArgs.call(r,e);let u=r.log||n.log;u.apply(r,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=i,s.destroy=n.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(r!==n.namespaces&&(r=n.namespaces,o=n.enabled(e)),o),set:e=>{a=e}}),"function"==typeof n.init&&n.init(s),s}function i(e,t){let r=n(this.namespace+(void 0===t?":":t)+e);return r.log=this.log,r}function o(e){let t;n.save(e),n.namespaces=e,n.names=[],n.skips=[];let r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(t=0;t<i;t++)r[t]&&("-"===(e=r[t].replace(/\*/g,".*?"))[0]?n.skips.push(RegExp("^"+e.slice(1)+"$")):n.names.push(RegExp("^"+e+"$")))}function a(){let e=[...n.names.map(u),...n.skips.map(u).map(e=>"-"+e)].join(",");return n.enable(""),e}function s(e){let t,r;if("*"===e[e.length-1])return!0;for(t=0,r=n.skips.length;t<r;t++)if(n.skips[t].test(e))return!1;for(t=0,r=n.names.length;t<r;t++)if(n.names[t].test(e))return!0;return!1}function u(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}function c(e){return e instanceof Error?e.stack||e.message:e}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.debug=n,n.default=n,n.coerce=c,n.disable=a,n.enable=o,n.enabled=s,n.humanize=r(7824),n.destroy=l,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={},n.selectColor=t,n.enable(n.load()),n}e.exports=n},7812:function(e){"use strict";function t(e){if(!e)throw TypeError("argument namespace is required");function t(e){}return t._file=void 0,t._ignored=!0,t._namespace=e,t._traced=!1,t._warned=Object.create(null),t.function=r,t.property=n,t}function r(e,t){if("function"!=typeof e)throw TypeError("argument fn must be a function");return e}function n(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("argument obj must be object");var n=Object.getOwnPropertyDescriptor(e,t);if(!n)throw TypeError("must call property on owner object");
10if(!n.configurable)throw TypeError("property must be configurable")}/*! 11 * depd 12 * Copyright(c) 2015 Douglas Christopher Wilson 13 * MIT Licensed 14 */e.exports=t},9351:function(e,t,r){"use strict";var n=r(3004),i=!1,o=!1;try{var a={get passive(){return i=!0},get once(){return o=i=!0}};n.Z&&(window.addEventListener("test",a,a),window.removeEventListener("test",a,!0))}catch(e){}function s(e,t,r,n){if(n&&"boolean"!=typeof n&&!o){var a=n.once,s=n.capture,u=r;!o&&a&&(u=r.__once||function e(n){this.removeEventListener(t,e,s),r.call(this,n)},r.__once=u),e.addEventListener(t,u,i?n:s)}e.addEventListener(t,r,n)}t.ZP=s},3004:function(e,t){"use strict";t.Z=!!("undefined"!=typeof window&&window.document&&window.document.createElement)},424:function(e,t,r){"use strict";function n(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}r.d(t,{Z:function(){return n}})},1505:function(e,t,r){"use strict";r.d(t,{Z:function(){return d}});var n=r(7216);function i(e){var t=(0,n.Z)(e);return t&&t.defaultView||window}function o(e,t){return i(e).getComputedStyle(e,t)}var a=/([A-Z])/g;function s(e){return e.replace(a,"-$1").toLowerCase()}var u=/^ms-/;function c(e){return s(e).replace(u,"-ms-")}var l=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function f(e){return!!(e&&l.test(e))}var d=function(e,t){var r="",n="";if("string"==typeof t)return e.style.getPropertyValue(c(t))||o(e).getPropertyValue(c(t));Object.keys(t).forEach(function(i){var o=t[i];o||0===o?f(i)?n+=i+"("+o+") ":r+=c(i)+": "+o+";":e.style.removeProperty(c(i))}),n&&(r+="transform: "+n+";"),e.style.cssText+=";"+r}},1132:function(e,t,r){"use strict";function n(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}r.d(t,{Z:function(){return n}})},2950:function(e,t,r){"use strict";var n=r(9351),i=r(99);function o(e,t,r,o){return(0,n.ZP)(e,t,r,o),function(){(0,i.Z)(e,t,r,o)}}t.Z=o},7216:function(e,t,r){"use strict";function n(e){return e&&e.ownerDocument||document}r.d(t,{Z:function(){return n}})},930:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=Function.prototype.bind.call(Function.prototype.call,[].slice);function i(e,t){return n(e.querySelectorAll(t))}},99:function(e,t){"use strict";function r(e,t,r,n){var i=n&&"boolean"!=typeof n?n.capture:n;e.removeEventListener(t,r,i),r.__once&&e.removeEventListener(t,r.__once,i)}t.Z=r},4305:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(1505),i=r(2950);function o(e,t,r,n){if(void 0===r&&(r=!1),void 0===n&&(n=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent(t,r,n),e.dispatchEvent(i)}}function a(e){var t=(0,n.Z)(e,"transitionDuration")||"",r=-1===t.indexOf("ms")?1e3:1;return parseFloat(t)*r}function s(e,t,r){void 0===r&&(r=5);var n=!1,a=setTimeout(function(){n||o(e,"transitionend",!0)},t+r),s=(0,i.Z)(e,"transitionend",function(){n=!0},{once:!0});return function(){clearTimeout(a),s()}}function u(e,t,r,n){null==r&&(r=a(e)||0);var o=s(e,r,n),u=(0,i.Z)(e,"transitionend",t);return function(){o(),u()}}},9009:function(e,t,r){"use strict";/*! 15 * http-errors 16 * Copyright(c) 2014 Jonathan Ong 17 * Copyright(c) 2016 Douglas Christopher Wilson 18 * MIT Licensed 19 */var n=r(7812)("http-errors"),i=r(6644),o=r(4917),a=r(5717),s=r(2953);function u(e){return Number(String(e).charAt(0)+"00")}function c(){for(var e,t,r=500,i={},a=0;a<arguments.length;a++){var s=arguments[a];if(s instanceof Error){r=(e=s).status||e.statusCode||r;continue}switch(typeof s){case"string":t=s;break;case"number":r=s,0!==a&&n("non-first-argument status code; replace with createError("+s+", ...)");break;case"object":i=s}}"number"==typeof r&&(r<400||r>=600)&&n("non-error status code; use only 4xx or 5xx status codes"),("number"!=typeof r||!o[r]&&(r<400||r>=600))&&(r=500);var l=c[r]||c[u(r)];for(var f in e||Error.captureStackTrace(e=l?new l(t):Error(t||o[r]),c),l&&e instanceof l&&e.status===r||(e.expose=r<500,e.status=e.statusCode=r),i)"status"!==f&&"statusCode"!==f&&(e[f]=i[f]);return e}function l(){function e(){throw TypeError("cannot construct abstract class")}return a(e,Error),e}function f(e,t,r){var n=y(t);function s(e){var t=null!=e?e:o[r],a=Error(t);return Error.captureStackTrace(a,s),i(a,s.prototype),Object.defineProperty(a,"message",{enumerable:!0,configurable:!0,value:t,writable:!0}
19),Object.defineProperty(a,"name",{enumerable:!1,configurable:!0,value:n,writable:!0}),a}return a(s,e),p(s,n),s.prototype.status=r,s.prototype.statusCode=r,s.prototype.expose=!0,s}function d(e){return function(t){return!!t&&"object"==typeof t&&(t instanceof e||t instanceof Error&&"boolean"==typeof t.expose&&"number"==typeof t.statusCode&&t.status===t.statusCode)}}function h(e,t,r){var n=y(t);function s(e){var t=null!=e?e:o[r],a=Error(t);return Error.captureStackTrace(a,s),i(a,s.prototype),Object.defineProperty(a,"message",{enumerable:!0,configurable:!0,value:t,writable:!0}),Object.defineProperty(a,"name",{enumerable:!1,configurable:!0,value:n,writable:!0}),a}return a(s,e),p(s,n),s.prototype.status=r,s.prototype.statusCode=r,s.prototype.expose=!1,s}function p(e,t){var r=Object.getOwnPropertyDescriptor(e,"name");r&&r.configurable&&(r.value=t,Object.defineProperty(e,"name",r))}function m(e,t,r){t.forEach(function(t){var n,i=s(o[t]);switch(u(t)){case 400:n=f(r,i,t);break;case 500:n=h(r,i,t)}n&&(e[t]=n,e[i]=n)}),e["I'mateapot"]=n.function(e.ImATeapot,'"I\'mateapot"; use "ImATeapot" instead')}function y(e){return"Error"!==e.substr(-5)?e+"Error":e}e.exports=c,e.exports.HttpError=l(),e.exports.isHttpError=d(e.exports.HttpError),m(e.exports,o.codes,e.exports.HttpError)},5717:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},1143:function(e){"use strict";var t=function(e,t,r,n,i,o,a,s){if(!e){var u;if(void 0===t)u=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,i,o,a,s],l=0;(u=Error(t.replace(/%s/g,function(){return c[l++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}};e.exports=t},2705:function(e){!function(t,r){e.exports=r()}(self,()=>{var e,t;return e={7629:(e,t,r)=>{"use strict";let n=r(375),i=r(8571),o=r(9474),a=r(1687),s=r(8652),u=r(8160),c=r(3292),l=r(6354),f=r(8901),d=r(9708),h=r(6914),p=r(2294),m=r(6133),y=r(1152),b=r(8863),g=r(2036),v={Base:class{constructor(e){this.type=e,this.$_root=null,this._definition={},this._reset()}_reset(){this._ids=new p.Ids,this._preferences=null,this._refs=new m.Manager,this._cache=null,this._valids=null,this._invalids=null,this._flags={},this._rules=[],this._singleRules=new Map,this.$_terms={},this.$_temp={ruleset:null,whens:{}}}describe(){return n("function"==typeof d.describe,"Manifest functionality disabled"),d.describe(this)}allow(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.verifyFlat(t,"allow"),this._values(t,"_valids")}alter(e){n(e&&"object"==typeof e&&!Array.isArray(e),"Invalid targets argument"),n(!this._inRuleset(),"Cannot set alterations inside a ruleset");let t=this.clone();for(let r in t.$_terms.alterations=t.$_terms.alterations||[],e){let i=e[r];n("function"==typeof i,"Alteration adjuster for",r,"must be a function"),t.$_terms.alterations.push({target:r,adjuster:i})}return t.$_temp.ruleset=!1,t}artifact(e){return n(void 0!==e,"Artifact cannot be undefined"),n(!this._cache,"Cannot set an artifact with a rule cache"),this.$_setFlag("artifact",e)}cast(e){return n(!1===e||"string"==typeof e,"Invalid to value"),n(!1===e||this._definition.cast[e],"Type",this.type,"does not support casting to",e),this.$_setFlag("cast",!1===e?void 0:e)}default(e,t){return this._default("default",e,t)}description(e){return n(e&&"string"==typeof e,"Description must be a non-empty string"),this.$_setFlag("description",e)}empty(e){let t=this.clone();return void 0!==e&&(e=t.$_compile(e,{override:!1})),t.$_setFlag("empty",e,{clone:!1})}error(e){return n(e,"Missing error"),n(e instanceof Error||"function"==typeof e,"Must provide a valid Error object or a function"),this.$_setFlag("error",e)}example(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(void 0!==e,"Missing example"),u.assertOptions(t,["override"]),this._inner("examples",e,{single:!0,override:t.override})}external(e,t){return"object"==typeof e&&(n(!t,"Cannot combine options with description"),t=e.description,e=e.method),n("function"==typeof e,"Method must be a function"),n(void 0===t||t&&"string"==typeof t,"Description must be a non-empty string"),this._inner("externals",{method:e,description:t},{single:!0})}failover(e,t){return this._default("failover",e,t)}
19forbidden(){return this.presence("forbidden")}id(e){return e?(n("string"==typeof e,"id must be a non-empty string"),n(/^[^\.]+$/.test(e),"id cannot contain period character"),this.$_setFlag("id",e)):this.$_setFlag("id",void 0)}invalid(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this._values(t,"_invalids")}label(e){return n(e&&"string"==typeof e,"Label name must be a non-empty string"),this.$_setFlag("label",e)}meta(e){return n(void 0!==e,"Meta cannot be undefined"),this._inner("metas",e,{single:!0})}note(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(let e of(n(t.length,"Missing notes"),t))n(e&&"string"==typeof e,"Notes must be non-empty strings");return this._inner("notes",t)}only(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return n("boolean"==typeof e,"Invalid mode:",e),this.$_setFlag("only",e)}optional(){return this.presence("optional")}prefs(e){n(e,"Missing preferences"),n(void 0===e.context,"Cannot override context"),n(void 0===e.externals,"Cannot override externals"),n(void 0===e.warnings,"Cannot override warnings"),n(void 0===e.debug,"Cannot override debug"),u.checkPreferences(e);let t=this.clone();return t._preferences=u.preferences(t._preferences,e),t}presence(e){return n(["optional","required","forbidden"].includes(e),"Unknown presence mode",e),this.$_setFlag("presence",e)}raw(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.$_setFlag("result",e?"raw":void 0)}result(e){return n(["raw","strip"].includes(e),"Unknown result mode",e),this.$_setFlag("result",e)}required(){return this.presence("required")}strict(e){let t=this.clone(),r=void 0!==e&&!e;return t._preferences=u.preferences(t._preferences,{convert:r}),t}strip(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.$_setFlag("result",e?"strip":void 0)}tag(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(let e of(n(t.length,"Missing tags"),t))n(e&&"string"==typeof e,"Tags must be non-empty strings");return this._inner("tags",t)}unit(e){return n(e&&"string"==typeof e,"Unit name must be a non-empty string"),this.$_setFlag("unit",e)}valid(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];u.verifyFlat(t,"valid");let n=this.allow(...t);return n.$_setFlag("only",!!n._valids,{clone:!1}),n}when(e,t){let r=this.clone();r.$_terms.whens||(r.$_terms.whens=[]);let i=c.when(r,e,t);if(!["any","link"].includes(r.type)){let e=i.is?[i]:i.switch;for(let t of e)n(!t.then||"any"===t.then.type||t.then.type===r.type,"Cannot combine",r.type,"with",t.then&&t.then.type),n(!t.otherwise||"any"===t.otherwise.type||t.otherwise.type===r.type,"Cannot combine",r.type,"with",t.otherwise&&t.otherwise.type)}return r.$_terms.whens.push(i),r.$_mutateRebuild()}cache(e){n(!this._inRuleset(),"Cannot set caching inside a ruleset"),n(!this._cache,"Cannot override schema cache"),n(void 0===this._flags.artifact,"Cannot cache a rule with an artifact");let t=this.clone();return t._cache=e||s.provider.provision(),t.$_temp.ruleset=!1,t}clone(){let e=Object.create(Object.getPrototypeOf(this));return this._assign(e)}concat(e){n(u.isSchema(e),"Invalid schema object"),n("any"===this.type||"any"===e.type||e.type===this.type,"Cannot merge type",this.type,"with another type:",e.type),n(!this._inRuleset(),"Cannot concatenate onto a schema with open ruleset"),n(!e._inRuleset(),"Cannot concatenate a schema with open ruleset");let t=this.clone();if("any"===this.type&&"any"!==e.type){let r=e.clone();for(let e of Object.keys(t))"type"!==e&&(r[e]=t[e]);t=r}for(let r of(t._ids.concat(e._ids),t._refs.register(e,m.toSibling),t._preferences=t._preferences?u.preferences(t._preferences,e._preferences):e._preferences,t._valids=g.merge(t._valids,e._valids,e._invalids),t._invalids=g.merge(t._invalids,e._invalids,e._valids),e._singleRules.keys()))t._singleRules.has(r)&&(t._rules=t._rules.filter(e=>e.keep||e.name!==r),t._singleRules.delete(r));for(let r of e._rules)e._definition.rules[r.method].multi||t._singleRules.set(r.name,r),t._rules.push(r);if(t._flags.empty&&e._flags.empty){t._flags.empty=t._flags.empty.c
19oncat(e._flags.empty);let r=Object.assign({},e._flags);delete r.empty,a(t._flags,r)}else if(e._flags.empty){t._flags.empty=e._flags.empty;let r=Object.assign({},e._flags);delete r.empty,a(t._flags,r)}else a(t._flags,e._flags);for(let r in e.$_terms){let n=e.$_terms[r];n?t.$_terms[r]?t.$_terms[r]=t.$_terms[r].concat(n):t.$_terms[r]=n.slice():t.$_terms[r]||(t.$_terms[r]=n)}return this.$_root._tracer&&this.$_root._tracer._combine(t,[this,e]),t.$_mutateRebuild()}extend(e){return n(!e.base,"Cannot extend type with another base"),f.type(this,e)}extract(e){return e=Array.isArray(e)?e:e.split("."),this._ids.reach(e)}fork(e,t){n(!this._inRuleset(),"Cannot fork inside a ruleset");let r=this;for(let n of[].concat(e))n=Array.isArray(n)?n:n.split("."),r=r._ids.fork(n,t,r);return r.$_temp.ruleset=!1,r}rule(e){let t=this._definition;u.assertOptions(e,Object.keys(t.modifiers)),n(!1!==this.$_temp.ruleset,"Cannot apply rules to empty ruleset or the last rule added does not support rule properties");let r=null===this.$_temp.ruleset?this._rules.length-1:this.$_temp.ruleset;n(r>=0&&r<this._rules.length,"Cannot apply rules to empty ruleset");let o=this.clone();for(let a=r;a<o._rules.length;++a){let r=o._rules[a],s=i(r);for(let i in e)t.modifiers[i](s,e[i]),n(s.name===r.name,"Cannot change rule name");o._rules[a]=s,o._singleRules.get(s.name)===r&&o._singleRules.set(s.name,s)}return o.$_temp.ruleset=!1,o.$_mutateRebuild()}get ruleset(){n(!this._inRuleset(),"Cannot start a new ruleset without closing the previous one");let e=this.clone();return e.$_temp.ruleset=e._rules.length,e}get $(){return this.ruleset}tailor(e){e=[].concat(e),n(!this._inRuleset(),"Cannot tailor inside a ruleset");let t=this;if(this.$_terms.alterations)for(let{target:r,adjuster:i}of this.$_terms.alterations)e.includes(r)&&(t=i(t),n(u.isSchema(t),"Alteration adjuster for",r,"failed to return a schema object"));return(t=t.$_modify({each:t=>t.tailor(e),ref:!1})).$_temp.ruleset=!1,t.$_mutateRebuild()}tracer(){return y.location?y.location(this):this}validate(e,t){return b.entry(e,this,t)}validateAsync(e,t){return b.entryAsync(e,this,t)}$_addRule(e){for(let t in"string"==typeof e&&(e={name:e}),n(e&&"object"==typeof e,"Invalid options"),n(e.name&&"string"==typeof e.name,"Invalid rule name"),e)n("_"!==t[0],"Cannot set private rule properties");let t=Object.assign({},e);t._resolve=[],t.method=t.method||t.name;let r=this._definition.rules[t.method],i=t.args;n(r,"Unknown rule",t.method);let o=this.clone();if(i)for(let e in n(1===Object.keys(i).length||Object.keys(i).length===this._definition.rules[t.name].args.length,"Invalid rule definition for",this.type,t.name),i){let a=i[e];if(r.argsByName){let s=r.argsByName.get(e);if(s.ref&&u.isResolvable(a))t._resolve.push(e),o.$_mutateRegister(a);else if(s.normalize&&(a=s.normalize(a),i[e]=a),s.assert){let t=u.validateArg(a,e,s);n(!t,t,"or reference")}}void 0!==a?i[e]=a:delete i[e]}return r.multi||(o._ruleRemove(t.name,{clone:!1}),o._singleRules.set(t.name,t)),!1===o.$_temp.ruleset&&(o.$_temp.ruleset=null),r.priority?o._rules.unshift(t):o._rules.push(t),o}$_compile(e,t){return c.schema(this.$_root,e,t)}$_createError(e,t,r,n,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=!1!==o.flags?this._flags:{},s=o.messages?h.merge(this._definition.messages,o.messages):this._definition.messages;return new l.Report(e,t,r,a,s,n,i)}$_getFlag(e){return this._flags[e]}$_getRule(e){return this._singleRules.get(e)}$_mapLabels(e){return e=Array.isArray(e)?e:e.split("."),this._ids.labels(e)}$_match(e,t,r,n){(r=Object.assign({},r)).abortEarly=!0,r._externals=!1,t.snapshot();let i=!b.validate(e,this,t,r,n).errors;return t.restore(),i}$_modify(e){return u.assertOptions(e,["each","once","ref","schema"]),p.schema(this,e)||this}$_mutateRebuild(){return n(!this._inRuleset(),"Cannot add this rule inside a ruleset"),this._refs.reset(),this._ids.reset(),this.$_modify({each:(e,t)=>{let{source:r,name:n,path:i,key:o}=t,a=this._definition[r][n]&&this._definition[r][n].register;!1!==a&&this.$_mutateRegister(e,{family:a,key:o})}}),this._definition.rebuild&&this._definition.rebuild(this),this.$_temp.ruleset=!1,this}$_mutateRegister(e){let{family:t,key:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._refs.register(e,t),this._ids.register(e,{key:r})}$_property(e){return this._definition.properties[e]}$_reach(e){return this._ids.reach(e)}$_rootReferences(){return this._refs.roots()}$_setFlag(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n("_"===e[0]||!this._inRuleset(),"Cannot set flag inside a ruleset");let i=this._definition.flags[e]||{};if(o(t,i.default)&&(t=void 0),o(t,this._flags[e]))return this;let a=!1!==r.clone?this.clone():this;return void 0!==t?(a._flags[e]=t,a.$_mutateRegister(t)):delete a._flags[e],"_"!==e[0]&&(a.$_temp.ruleset=!1),a}$_parent(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return this[e][u.symbols.parent].call(this,...r)}
19$_validate(e,t,r){return b.validate(e,this,t,r)}_assign(e){for(let t in e.type=this.type,e.$_root=this.$_root,e.$_temp=Object.assign({},this.$_temp),e.$_temp.whens={},e._ids=this._ids.clone(),e._preferences=this._preferences,e._valids=this._valids&&this._valids.clone(),e._invalids=this._invalids&&this._invalids.clone(),e._rules=this._rules.slice(),e._singleRules=i(this._singleRules,{shallow:!0}),e._refs=this._refs.clone(),e._flags=Object.assign({},this._flags),e._cache=null,e.$_terms={},this.$_terms)e.$_terms[t]=this.$_terms[t]?this.$_terms[t].slice():null;for(let t in e.$_super={},this.$_super)e.$_super[t]=this._super[t].bind(e);return e}_bare(){let e=this.clone();e._reset();let t=e._definition.terms;for(let r in t){let n=t[r];e.$_terms[r]=n.init}return e.$_mutateRebuild()}_default(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return u.assertOptions(r,"literal"),n(void 0!==t,"Missing",e,"value"),n("function"==typeof t||!r.literal,"Only function value supports literal option"),"function"==typeof t&&r.literal&&(t={[u.symbols.literal]:!0,literal:t}),this.$_setFlag(e,t)}_generate(e,t,r){if(!this.$_terms.whens)return{schema:this};let n=[],i=[];for(let o=0;o<this.$_terms.whens.length;++o){let a=this.$_terms.whens[o];if(a.concat){n.push(a.concat),i.push(`${o}.concat`);continue}let s=a.ref?a.ref.resolve(e,t,r):e,u=a.is?[a]:a.switch,c=i.length;for(let c=0;c<u.length;++c){let{is:l,then:f,otherwise:d}=u[c],h=`${o}${a.switch?"."+c:""}`;if(l.$_match(s,t.nest(l,`${h}.is`),r)){if(f){let o=t.localize([...t.path,`${h}.then`],t.ancestors,t.schemas),{schema:a,id:s}=f._generate(e,o,r);n.push(a),i.push(`${h}.then${s?`(${s})`:""}`);break}}else if(d){let o=t.localize([...t.path,`${h}.otherwise`],t.ancestors,t.schemas),{schema:a,id:s}=d._generate(e,o,r);n.push(a),i.push(`${h}.otherwise${s?`(${s})`:""}`);break}}if(a.break&&i.length>c)break}let o=i.join(", ");if(t.mainstay.tracer.debug(t,"rule","when",o),!o)return{schema:this};if(!t.mainstay.tracer.active&&this.$_temp.whens[o])return{schema:this.$_temp.whens[o],id:o};let a=this;for(let i of(this._definition.generate&&(a=this._definition.generate(this,e,t,r)),n))a=a.concat(i);return this.$_root._tracer&&this.$_root._tracer._combine(a,[this,...n]),this.$_temp.whens[o]=a,{schema:a,id:o}}_inner(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n(!this._inRuleset(),`Cannot set ${e} inside a ruleset`);let i=this.clone();return i.$_terms[e]&&!r.override||(i.$_terms[e]=[]),r.single?i.$_terms[e].push(t):i.$_terms[e].push(...t),i.$_temp.ruleset=!1,i}_inRuleset(){return null!==this.$_temp.ruleset&&!1!==this.$_temp.ruleset}_ruleRemove(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this._singleRules.has(e))return this;let r=!1!==t.clone?this.clone():this;r._singleRules.delete(e);let n=[];for(let t=0;t<r._rules.length;++t){let i=r._rules[t];i.name!==e||i.keep?n.push(i):r._inRuleset()&&t<r.$_temp.ruleset&&--r.$_temp.ruleset}return r._rules=n,r}_values(e,t){u.verifyFlat(e,t.slice(1,-1));let r=this.clone(),i=e[0]===u.symbols.override;if(i&&(e=e.slice(1)),!r[t]&&e.length?r[t]=new g:i&&(r[t]=e.length?new g:null,r.$_mutateRebuild()),!r[t])return r;for(let o of(i&&r[t].override(),e)){n(void 0!==o,"Cannot call allow/valid/invalid with undefined"),n(o!==u.symbols.override,"Override must be the first value");let e="_invalids"===t?"_valids":"_invalids";r[e]&&(r[e].remove(o),r[e].length||(n("_valids"===t||!r._flags.only,"Setting invalid value",o,"leaves schema rejecting all values due to previous valid rule"),r[e]=null)),r[t].add(o,r._refs)}return r}}};v.Base.prototype[u.symbols.any]={version:u.version,compile:c.compile,root:"$_root"},v.Base.prototype.isImmutable=!0,v.Base.prototype.deny=v.Base.prototype.invalid,v.Base.prototype.disallow=v.Base.prototype.invalid,v.Base.prototype.equal=v.Base.prototype.valid,v.Base.prototype.exist=v.Base.prototype.required,v.Base.prototype.not=v.Base.prototype.invalid,v.Base.prototype.options=v.Base.prototype.prefs,v.Base.prototype.preferences=v.Base.prototype.prefs,e.exports=new v.Base},8652:(e,t,r)=>{"use strict";let n=r(375),i=r(8571),o=r(8160),a={max:1e3,supported:new Set(["undefined","boolean","number","string"])};t.provider={provision:e=>new a.Cache(e)},a.Cache=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o.assertOptions(e,["max"]),n(void 0===e.max||e.max&&e.max>0&&isFinite(e.max),"Invalid max cache size"),this._max=e.max||a.max,this._map=new Map,this._list=new a.List}get length(){return this._map.size}set(e,t){if(null!==e&&!a.supported.has(typeof e))return;let r=this._map.get(e);if(r)return r.value=t,void this._list.first(r);r=this._list.unshift({key:e,value:t}),this._map.set(e,r),this._compact()}get(e){let t=this._map.get(e);if(t)return this._list.first(t),i(t.value)}_compact(){if(this._map.size>this._max){let e=this._list.pop();this._map.delete(e.key)}}},a.List=class{constructor(){this.tail=null,this.head=null}unshift(e){return e.next=null,e.prev=this.head,this.head&&(this.head.next=e),this.head=e,this.tail||(this.tail=e),e}first(e){e!==this.head&&(this._remove(e),this.unshift(e))}pop(){return this._remove(this.tail)}_remove(e){let{next:t,prev:r}=e;return t.prev=r,r&&(r.next=t),e===this.tail&&(this.tail=t),e.prev=null,e.next=null,e}}},8160:(e,t,r)=>{"use strict";let n,i;
19let o=r(375),a=r(7916),s=r(5934),u={isoDate:/^(?:[-+]\d{2})?(?:\d{4}(?!\d{2}\b))(?:(-?)(?:(?:0[1-9]|1[0-2])(?:\1(?:[12]\d|0[1-9]|3[01]))?|W(?:[0-4]\d|5[0-2])(?:-?[1-7])?|(?:00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[1-6])))(?![T]$|[T][\d]+Z$)(?:[T\s](?:(?:(?:[01]\d|2[0-3])(?:(:?)[0-5]\d)?|24\:?00)(?:[.,]\d+(?!:))?)(?:\2[0-5]\d(?:[.,]\d+)?)?(?:[Z]|(?:[+-])(?:[01]\d|2[0-3])(?::?[0-5]\d)?)?)?)?$/};t.version=s.version,t.defaults={abortEarly:!0,allowUnknown:!1,artifacts:!1,cache:!0,context:null,convert:!0,dateFormat:"iso",errors:{escapeHtml:!1,label:"path",language:null,render:!0,stack:!1,wrap:{label:'"',array:"[]"}},externals:!0,messages:{},nonEnumerables:!1,noDefaults:!1,presence:"optional",skipFunctions:!1,stripUnknown:!1,warnings:!1},t.symbols={any:Symbol.for("@hapi/joi/schema"),arraySingle:Symbol("arraySingle"),deepDefault:Symbol("deepDefault"),errors:Symbol("errors"),literal:Symbol("literal"),override:Symbol("override"),parent:Symbol("parent"),prefs:Symbol("prefs"),ref:Symbol("ref"),template:Symbol("template"),values:Symbol("values")},t.assertOptions=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Options";o(e&&"object"==typeof e&&!Array.isArray(e),"Options must be of type object");let n=Object.keys(e).filter(e=>!t.includes(e));o(0===n.length,`${r} contain unknown keys: ${n}`)},t.checkPreferences=function(e){i=i||r(3378);let t=i.preferences.validate(e);if(t.error)throw new a([t.error.details[0].message])},t.compare=function(e,t,r){switch(r){case"=":return e===t;case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}},t.default=function(e,t){return void 0===e?t:e},t.isIsoDate=function(e){return u.isoDate.test(e)},t.isNumber=function(e){return"number"==typeof e&&!isNaN(e)},t.isResolvable=function(e){return!!e&&(e[t.symbols.ref]||e[t.symbols.template])},t.isSchema=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e&&e[t.symbols.any];return!!n&&(o(r.legacy||n.version===t.version,"Cannot mix different versions of joi schemas"),!0)},t.isValues=function(e){return e[t.symbols.values]},t.limit=function(e){return Number.isSafeInteger(e)&&e>=0},t.preferences=function(e,i){n=n||r(6914),e=e||{},i=i||{};let o=Object.assign({},e,i);return i.errors&&e.errors&&(o.errors=Object.assign({},e.errors,i.errors),o.errors.wrap=Object.assign({},e.errors.wrap,i.errors.wrap)),i.messages&&(o.messages=n.compile(i.messages,e.messages)),delete o[t.symbols.prefs],o},t.tryWithPath=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{return e()}catch(e){throw void 0!==e.path?e.path=t+"."+e.path:e.path=t,r.append&&(e.message=`${e.message} (${e.path})`),e}},t.validateArg=function(e,r,n){let{assert:i,message:o}=n;if(t.isSchema(i)){let t=i.validate(e);if(!t.error)return;return t.error.message}if(!i(e))return r?`${r} ${o}`:o},t.verifyFlat=function(e,t){for(let r of e)o(!Array.isArray(r),"Method no longer accepts array arguments:",t)}},3292:(e,t,r)=>{"use strict";let n=r(375),i=r(8160),o=r(6133),a={};
19t.schema=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};i.assertOptions(r,["appendPath","override"]);try{return a.schema(e,t,r)}catch(e){throw r.appendPath&&void 0!==e.path&&(e.message=`${e.message} (${e.path})`),e}},a.schema=function(e,t,r){n(void 0!==t,"Invalid undefined schema"),Array.isArray(t)&&(n(t.length,"Invalid empty array schema"),1===t.length&&(t=t[0]));let o=function(t){for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return!1!==r.override?t.valid(e.override,...i):t.valid(...i)};if(a.simple(t))return o(e,t);if("function"==typeof t)return e.custom(t);if(n("object"==typeof t,"Invalid schema content:",typeof t),i.isResolvable(t))return o(e,t);if(i.isSchema(t))return t;if(Array.isArray(t)){for(let r of t)if(!a.simple(r))return e.alternatives().try(...t);return o(e,...t)}return t instanceof RegExp?e.string().regex(t):t instanceof Date?o(e.date(),t):(n(Object.getPrototypeOf(t)===Object.getPrototypeOf({}),"Schema can only contain plain objects"),e.object().keys(t))},t.ref=function(e,t){return o.isRef(e)?e:o.create(e,t)},t.compile=function(e,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};i.assertOptions(o,["legacy"]);let s=r&&r[i.symbols.any];if(s)return n(o.legacy||s.version===i.version,"Cannot mix different versions of joi schemas:",s.version,i.version),r;if("object"!=typeof r||!o.legacy)return t.schema(e,r,{appendPath:!0});let u=a.walk(r);return u?u.compile(u.root,r):t.schema(e,r,{appendPath:!0})},a.walk=function(e){if("object"!=typeof e)return null;if(Array.isArray(e)){for(let t of e){let e=a.walk(t);if(e)return e}return null}let t=e[i.symbols.any];if(t)return{root:e[t.root],compile:t.compile};for(let t in n(Object.getPrototypeOf(e)===Object.getPrototypeOf({}),"Schema can only contain plain objects"),e){let r=a.walk(e[t]);if(r)return r}return null},a.simple=function(e){return null===e||["boolean","string","number"].includes(typeof e)},t.when=function(e,r,s){if(void 0===s&&(n(r&&"object"==typeof r,"Missing options"),s=r,r=o.create(".")),Array.isArray(s)&&(s={switch:s}),i.assertOptions(s,["is","not","then","otherwise","switch","break"]),i.isSchema(r))return n(void 0===s.is,'"is" can not be used with a schema condition'),n(void 0===s.not,'"not" can not be used with a schema condition'),n(void 0===s.switch,'"switch" can not be used with a schema condition'),a.condition(e,{is:r,then:s.then,otherwise:s.otherwise,break:s.break});if(n(o.isRef(r)||"string"==typeof r,"Invalid condition:",r),n(void 0===s.not||void 0===s.is,'Cannot combine "is" with "not"'),void 0===s.switch){let u=s;void 0!==s.not&&(u={is:s.not,then:s.otherwise,otherwise:s.then,break:s.break});let c=void 0!==u.is?e.$_compile(u.is):e.$_root.invalid(null,!1,0,"").required();return n(void 0!==u.then||void 0!==u.otherwise,'options must have at least one of "then", "otherwise", or "switch"'),n(void 0===u.break||void 0===u.then||void 0===u.otherwise,"Cannot specify then, otherwise, and break all together"),void 0===s.is||o.isRef(s.is)||i.isSchema(s.is)||(c=c.required()),a.condition(e,{ref:t.ref(r),is:c,then:u.then,otherwise:u.otherwise,break:u.break})}n(Array.isArray(s.switch),'"switch" must be an array'),n(void 0===s.is,'Cannot combine "switch" with "is"'),n(void 0===s.not,'Cannot combine "switch" with "not"'),n(void 0===s.then,'Cannot combine "switch" with "then"');let u={ref:t.ref(r),switch:[],break:s.break};for(let t=0;t<s.switch.length;++t){let r=s.switch[t],a=t===s.switch.length-1;i.assertOptions(r,a?["is","then","otherwise"]:["is","then"]),n(void 0!==r.is,'Switch statement missing "is"'),n(void 0!==r.then,'Switch statement missing "then"');let c={is:e.$_compile(r.is),then:e.$_compile(r.then)};if(o.isRef(r.is)||i.isSchema(r.is)||(c.is=c.is.required()),a){n(void 0===s.otherwise||void 0===r.otherwise,'Cannot specify "otherwise" inside and outside a "switch"');let t=void 0!==s.otherwise?s.otherwise:r.otherwise;void 0!==t&&(n(void 0===u.break,"Cannot specify both otherwise and break"),c.otherwise=e.$_compile(t))}u.switch.push(c)}return u},a.condition=function(e,t){for(let r of["then","otherwise"])void 0===t[r]?delete t[r]:t[r]=e.$_compile(t[r]);return t}},6354:(e,t,r)=>{"use strict";let n=r(5688),i=r(8160),o=r(3328);
19t.Report=class{constructor(e,r,n,i,o,a,s){if(this.code=e,this.flags=i,this.messages=o,this.path=a.path,this.prefs=s,this.state=a,this.value=r,this.message=null,this.template=null,this.local=n||{},this.local.label=t.label(this.flags,this.state,this.prefs,this.messages),void 0===this.value||this.local.hasOwnProperty("value")||(this.local.value=this.value),this.path.length){let e=this.path[this.path.length-1];"object"!=typeof e&&(this.local.key=e)}}_setTemplate(e){if(this.template=e,!this.flags.label&&0===this.path.length){let e=this._template(this.template,"root");e&&(this.local.label=e)}}toString(){if(this.message)return this.message;let e=this.code;if(!this.prefs.errors.render)return this.code;let t=this._template(this.template)||this._template(this.prefs.messages)||this._template(this.messages);return void 0===t?`Error code "${e}" is not defined, your custom type is missing the correct messages definition`:(this.message=t.render(this.value,this.state,this.prefs,this.local,{errors:this.prefs.errors,messages:[this.prefs.messages,this.messages]}),this.prefs.errors.label||(this.message=this.message.replace(/^"" /,"").trim()),this.message)}_template(e,r){return t.template(this.value,e,r||this.code,this.state,this.prefs)}},t.path=function(e){let t="";for(let r of e)"object"!=typeof r&&("string"==typeof r?(t&&(t+="."),t+=r):t+=`[${r}]`);return t},t.template=function(e,t,r,n,a){if(!t)return;if(o.isTemplate(t))return"root"!==r?t:null;let s=a.errors.language;if(i.isResolvable(s)&&(s=s.resolve(e,n,a)),s&&t[s]){if(void 0!==t[s][r])return t[s][r];if(void 0!==t[s]["*"])return t[s]["*"]}return t[r]?t[r]:t["*"]},t.label=function(e,r,n,i){if(e.label)return e.label;if(!n.errors.label)return"";let o=r.path;return"key"===n.errors.label&&r.path.length>1&&(o=r.path.slice(-1)),t.path(o)||t.template(null,n.messages,"root",r,n)||i&&t.template(null,i,"root",r,n)||"value"},t.process=function(e,r,n){if(!e)return null;let{override:i,message:o,details:a}=t.details(e);if(i)return i;if(n.errors.stack)return new t.ValidationError(o,a,r);let s=Error.stackTraceLimit;Error.stackTraceLimit=0;let u=new t.ValidationError(o,a,r);return Error.stackTraceLimit=s,u},t.details=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[],n=[];for(let i of e){if(i instanceof Error){if(!1!==t.override)return{override:i};let e=i.toString();r.push(e),n.push({message:e,type:"override",context:{error:i}});continue}let e=i.toString();r.push(e),n.push({message:e,path:i.path.filter(e=>"object"!=typeof e),type:i.code,context:i.local})}return r.length>1&&(r=[...new Set(r)]),{message:r.join(". "),details:n}},t.ValidationError=class extends Error{constructor(e,t,r){super(e),this._original=r,this.details=t}static isError(e){return e instanceof t.ValidationError}},t.ValidationError.prototype.isJoi=!0,t.ValidationError.prototype.name="ValidationError",t.ValidationError.prototype.annotate=n.error},8901:(e,t,r)=>{"use strict";let n=r(375),i=r(8571),o=r(8160),a=r(6914),s={};t.type=function(e,t){let r=Object.getPrototypeOf(e),u=i(r),c=e._assign(Object.create(u)),l=Object.assign({},t);delete l.base,u._definition=l;let f=r._definition||{};l.messages=a.merge(f.messages,l.messages),l.properties=Object.assign({},f.properties,l.properties),c.type=l.type,l.flags=Object.assign({},f.flags,l.flags);let d=Object.assign({},f.terms);if(l.terms)for(let e in l.terms){let t=l.terms[e];n(void 0===c.$_terms[e],"Invalid term override for",l.type,e),c.$_terms[e]=t.init,d[e]=t}l.terms=d,l.args||(l.args=f.args),l.prepare=s.prepare(l.prepare,f.prepare),l.coerce&&("function"==typeof l.coerce&&(l.coerce={method:l.coerce}),l.coerce.from&&!Array.isArray(l.coerce.from)&&(l.coerce={method:l.coerce.method,from:[].concat(l.coerce.from)})),l.coerce=s.coerce(l.coerce,f.coerce),l.validate=s.validate(l.validate,f.validate);let h=Object.assign({},f.rules);if(l.rules)for(let e in l.rules){let t=l.rules[e];n("object"==typeof t,"Invalid rule definition for",l.type,e);let r=t.method;if(void 0===r&&(r=function(){return this.$_addRule(e)}),r&&(n(!u[e],"Rule conflict in",l.type,e),u[e]=r),n(!h[e],"Rule conflict in",l.type,e),h[e]=t,t.alias){let e=[].concat(t.alias);for(let r of e)u[r]=t.method}t.args&&(t.argsByName=new Map,t.args=t.args.map(e=>("string"==typeof e&&(e={name:e}),n(!t.argsByName.has(e.name),"Duplicated argument name",e.name),o.isSchema(e.assert)&&(e.assert=e.assert.strict().label(e.name)),t.argsByName.set(e.name,e),e)))}l.rules=h;let p=Object.assign({},f.modifiers);if(l.modifiers)for(let e in l.modifiers){n(!u[e],"Rule conflict in",l.type,e);let t=l.modifiers[e];n("function"==typeof t,"Invalid modifier definition for",l.type,e);let r=function(t){return this.rule({[e]:t})};u[e]=r,p[e]=t}if(l.modifiers=p,l.overrides){for(let e in u._super=r,c.$_super={},l.overrides)n(r[e],"Cannot override missing",e),l.overrides[e][o.symbols.parent]=r[e],c.$_super[e]=r[e].bind(c);Object.assign(u,l.overrides)}l.cast=Object.assign({},f.cast,l.cast);let m=Object.assign({},f.manifest,l.manifest);return m.build=s.build(l.manifest&&l.manifest.build,f.manifest&&f.manifest.build),l.manifest=m,l.rebuild=s.rebuild(l.rebuild,f.rebuild),c},s.build=function(e,t){return e&&t?function(r,n){return t(e(r,n),n)}:e||t},s.coerce=function(e,t){return e&&t?{from:e.from&&t.from?[...new Set([...e.from,...t.from])]:null,method(r,n){let i;if((!t.from||t.from.includes(typeof r))&&(i=t.method(r,n))){if(i.errors||void 0===i.value)return i;r=i.value}if(!e.from||e.from.includes(typeof r)){let t=e.method(r,n);if(t)return t}return i}}:e||t},s.prepare=function(e,t){return e&&t?function(r,n){let i=e(r,n);if(i){if(i.errors||void 0===i.value)return i;r=i.value}return t(r,n)||i}:e||t},s.rebuild=function(e,t){return e&&t?function(r){t(r),e(r)}:e||t},s.validate=function(e,t){return e&&t?function(r,n){let i=t(r,n);if(i){if(i.errors&&(!Array.isArray(i.errors)||i.errors.length))return i;r=i.value}return e(r,n)||i}:e||t}},5107:(e,t,r)=>{"use strict";let n;let i=r(375),o=r(8571),a=r(8652),s=r(8160),u=r(3292),c=r(6354),l=r(8901),f=r(9708),d=r(6133),h=r(3328),p=r(1152),m={types:{alternatives:r(4946),any:r(8068),array:r(546),boolean:r(4937),date:r(7500),function:r(390),link:r(8785),number:r(3832),object:r(8966),string:r(7417),symbol:r(8826)},aliases:{alt:"alternatives",bool:"boolean",func:"function"},root:function(){let e={_types:new Set(Object.keys(m.types))};for(let t of e._types)e[t]=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return i(!r.length||["alternatives","link","object"].includes(t),"The",t,"type does not allow arguments"),m.generate(this,m.types[t],r)};for(let t of["allow","custom","disallow","equal","exist","forbidden","invali
19d","not","only","optional","options","prefs","preferences","required","strip","valid","when"])e[t]=function(){return this.any()[t](...arguments)};for(let t in Object.assign(e,m.methods),m.aliases){let r=m.aliases[t];e[t]=e[r]}return e.x=e.expression,p.setup&&p.setup(e),e}};m.methods={ValidationError:c.ValidationError,version:s.version,cache:a.provider,assert(e,t){for(var r=arguments.length,n=Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];m.assert(e,t,!0,n)},attempt(e,t){for(var r=arguments.length,n=Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return m.assert(e,t,!1,n)},build(e){return i("function"==typeof f.build,"Manifest functionality disabled"),f.build(this,e)},checkPreferences(e){s.checkPreferences(e)},compile(e,t){return u.compile(this,e,t)},defaults(e){i("function"==typeof e,"modifier must be a function");let t=Object.assign({},this);for(let r of t._types){let n=e(t[r]());i(s.isSchema(n),"modifier must return a valid schema object"),t[r]=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return m.generate(this,n,t)}}return t},expression(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return new h(...t)},extend(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];s.verifyFlat(t,"extend"),n=n||r(3378),i(t.length,"You need to provide at least one extension"),this.assert(t,n.extensions);let a=Object.assign({},this);for(let e of(a._types=new Set(a._types),t)){"function"==typeof e&&(e=e(a)),this.assert(e,n.extension);let t=m.expandExtension(e,a);for(let e of t){i(void 0===a[e.type]||a._types.has(e.type),"Cannot override name",e.type);let t=e.base||this.any(),r=l.type(t,e);a._types.add(e.type),a[e.type]=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return m.generate(this,r,t)}}}return a},isError:c.ValidationError.isError,isExpression:h.isTemplate,isRef:d.isRef,isSchema:s.isSchema,in(){return d.in(...arguments)},override:s.symbols.override,ref(){return d.create(...arguments)},types(){let e={};for(let t of this._types)e[t]=this[t]();for(let t in m.aliases)e[t]=this[t]();return e}},m.assert=function(e,t,r,n){let i=n[0]instanceof Error||"string"==typeof n[0]?n[0]:null,a=null!==i?n[1]:n[0],u=t.validate(e,s.preferences({errors:{stack:!0}},a||{})),l=u.error;if(!l)return u.value;if(i instanceof Error)throw i;let f=r&&"function"==typeof l.annotate?l.annotate():l.message;throw l instanceof c.ValidationError==0&&(l=o(l)),l.message=i?`${i} ${f}`:f,l},m.generate=function(e,t,r){return i(e,"Must be invoked on a Joi instance."),t.$_root=e,t._definition.args&&r.length?t._definition.args(t,...r):t},m.expandExtension=function(e,t){if("string"==typeof e.type)return[e];let r=[];for(let n of t._types)if(e.type.test(n)){let i=Object.assign({},e);i.type=n,i.base=t[n](),r.push(i)}return r},e.exports=m.root()},6914:(e,t,r)=>{"use strict";let n=r(375),i=r(8571),o=r(3328);t.compile=function(e,t){if("string"==typeof e)return n(!t,"Cannot set single message string"),new o(e);if(o.isTemplate(e))return n(!t,"Cannot set single message template"),e;for(let r in n("object"==typeof e&&!Array.isArray(e),"Invalid message options"),t=t?i(t):{},e){let i=e[r];if("root"===r||o.isTemplate(i)){t[r]=i;continue}if("string"==typeof i){t[r]=new o(i);continue}n("object"==typeof i&&!Array.isArray(i),"Invalid message for",r);let a=r;for(r in t[a]=t[a]||{},i){let e=i[r];"root"===r||o.isTemplate(e)?t[a][r]=e:(n("string"==typeof e,"Invalid message for",r,"in",a),t[a][r]=new o(e))}}return t},t.decompile=function(e){let t={};for(let r in e){let n=e[r];if("root"===r){t.root=n;continue}if(o.isTemplate(n)){t[r]=n.describe({compact:!0});continue}let i=r;for(r in t[i]={},n){let e=n[r];"root"!==r?t[i][r]=e.describe({compact:!0}):t[i].root=e}}return t},t.merge=function(e,r){if(!e)return t.compile(r);if(!r)return e;if("string"==typeof r)return new o(r);if(o.isTemplate(r))return r;let a=i(e);for(let e in r){let t=r[e];if("root"===e||o.isTemplate(t)){a[e]=t;continue}if("string"==typeof t){a[e]=new o(t);continue}n("object"==typeof t&&!Array.isArray(t),"Invalid message for",e);let i=e;for(e in a[i]=a[i]||{},t){let r=t[e];"root"===e||o.isTemplate(r)?a[i][e]=r:(n("string"==typeof r,"Invalid message for",e,"in",i),a[i][e]=new o(r))}}return a}},2294:(e,t,r)=>{"use strict";let n=r(375),i=r(8160),o=r(6133),a={};t.Ids=a.Ids=class{constructor(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}clone(){let e=new a.Ids;return e._byId=new Map(this._byId),e._byKey=new Map(this._byKey),e._schemaChain=this._schemaChain,e}concat(e){for(let[t,r]of(e._schemaChain&&(this._schemaChain=!0),e._byId.entr
19ies()))n(!this._byKey.has(t),"Schema id conflicts with existing key:",t),this._byId.set(t,r);for(let[t,r]of e._byKey.entries())n(!this._byId.has(t),"Schema key conflicts with existing id:",t),this._byKey.set(t,r)}fork(e,t,r){let o=this._collect(e);o.push({schema:r});let s=o.shift(),u={id:s.id,schema:t(s.schema)};for(let e of(n(i.isSchema(u.schema),"adjuster function failed to return a joi schema type"),o))u={id:e.id,schema:a.fork(e.schema,u.id,u.schema)};return u.schema}labels(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=e[0],n=this._get(r);if(!n)return[...t,...e].join(".");let i=e.slice(1);return t=[...t,n.schema._flags.label||r],i.length?n.schema._ids.labels(i,t):t.join(".")}reach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=e[0],i=this._get(r);n(i,"Schema does not contain path",[...t,...e].join("."));let o=e.slice(1);return o.length?i.schema._ids.reach(o,[...t,r]):i.schema}register(e){let{key:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||!i.isSchema(e))return;(e.$_property("schemaChain")||e._ids._schemaChain)&&(this._schemaChain=!0);let r=e._flags.id;if(r){let t=this._byId.get(r);n(!t||t.schema===e,"Cannot add different schemas with the same id:",r),n(!this._byKey.has(r),"Schema id conflicts with existing key:",r),this._byId.set(r,{schema:e,id:r})}t&&(n(!this._byKey.has(t),"Schema already contains key:",t),n(!this._byId.has(t),"Schema key conflicts with existing id:",t),this._byKey.set(t,{schema:e,id:t}))}reset(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}_collect(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=e[0],o=this._get(i);n(o,"Schema does not contain path",[...t,...e].join(".")),r=[o,...r];let a=e.slice(1);return a.length?o.schema._ids._collect(a,[...t,i],r):r}_get(e){return this._byId.get(e)||this._byKey.get(e)}},a.fork=function(e,r,n){let i=t.schema(e,{each:(e,t)=>{let{key:i}=t;if(r===(e._flags.id||i))return n},ref:!1});return i?i.$_mutateRebuild():e},t.schema=function(e,t){let r;for(let n in e._flags){if("_"===n[0])continue;let i=a.scan(e._flags[n],{source:"flags",name:n},t);void 0!==i&&((r=r||e.clone())._flags[n]=i)}for(let n=0;n<e._rules.length;++n){let i=e._rules[n],o=a.scan(i.args,{source:"rules",name:i.name},t);if(void 0!==o){r=r||e.clone();let t=Object.assign({},i);t.args=o,r._rules[n]=t,r._singleRules.get(i.name)===i&&r._singleRules.set(i.name,t)}}for(let n in e.$_terms){if("_"===n[0])continue;let i=a.scan(e.$_terms[n],{source:"terms",name:n},t);void 0!==i&&((r=r||e.clone()).$_terms[n]=i)}return r},a.scan=function(e,t,r,n,s){let u;let c=n||[];if(null!==e&&"object"==typeof e){if(Array.isArray(e)){for(let n=0;n<e.length;++n){let i="terms"===t.source&&"keys"===t.name&&e[n].key,o=a.scan(e[n],t,r,[n,...c],i);void 0!==o&&((u=u||e.slice())[n]=o)}return u}if(!1!==r.schema&&i.isSchema(e)||!1!==r.ref&&o.isRef(e)){let n=r.each(e,{...t,path:c,key:s});if(n===e)return;return n}for(let n in e){if("_"===n[0])continue;let i=a.scan(e[n],t,r,[n,...c],s);void 0!==i&&((u=u||Object.assign({},e))[n]=i)}return u}}},6133:(e,t,r)=>{"use strict";let n;let i=r(375),o=r(8571),a=r(9621),s=r(8160),u={symbol:Symbol("ref"),defaults:{adjust:null,in:!1,iterables:null,map:null,separator:".",type:"value"}};t.create=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i("string"==typeof e,"Invalid reference key:",e),s.assertOptions(t,["adjust","ancestor","in","iterables","map","prefix","render","separator"]),i(!t.prefix||"object"==typeof t.prefix,"options.prefix must be of type object");let r=Object.assign({},u.defaults,t);delete r.prefix;let n=r.separator,o=u.context(e,n,t.prefix);if(r.type=o.type,e=o.key,"value"===r.type){if(o.root&&(i(!n||e[0]!==n,"Cannot specify relative path with root prefix"),r.ancestor="root",e||(e=null)),n&&n===e)e=null,r.ancestor=0;else if(void 0!==r.ancestor)i(!n||!e||e[0]!==n,"Cannot combine prefix with ancestor option");else{let[t,i]=u.ancestor(e,n);i&&""===(e=e.slice(i))&&(e=null),r.ancestor=t}}return r.path=n?null===e?[]:e.split(n):[e],new u.Ref(r)},t.in=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.create(e,{...r,in:!0})},t.isRef=function(e){return!!e&&!!e[s.symbols.ref]},u.Ref=class{constructor(e){i("object"==typeof e,"Invalid reference construction"),s.assertOptions(e,["adjust","ancestor","in","iterables","map","path","render","separator","type","depth","key","root","display"]),i([!1,void 0].includes(e.separator)||"string"==typeof e.separator&&1===e.separator.length,"Invalid separator"),i(!e.adjust||"function"==typeof e.adjust,"options.adjust must be a function"),i(!e.map||Array.isArray(e.map),"options.map must be an array"),i(!e.map||!e.adjust,"Cannot set both map and adjust options"),Object.assign(this,u.defaults,e),i("value"===this.type||void 0===this.ancestor,"Non-value references cannot reference ancestors"),Array.isArray(this.map)&&(this.map=new Map(this.map)),this.depth=this.path.length,this.key=this.path.length?this.path.join(this.separator):null,this.root=this.path[0],this.updateDisplay()}resolve(e,t,r,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return i(!this.in||o.in,"Invalid in() reference usage"),"global"===this.type?this._resolve(r.context,t,o):"local"===this.type?this._resolve(n,t,o):this.ancestor?"root"===this.ancestor?this._resolve(t.ancestors[t.ancestors.length-1],t,o):(i(this.ancestor<=t.ancestors.length,"Invalid reference exceeds the schema root:",this.display),this._resolve(t.ancestors[this.ancestor-1],t,o)):this._resolve(e,t,o)}_resolve(e,t,r){let n;if("value"===this.type&&t.mainstay.shadow&&!1!==r.shadow&&(n=t.mainstay.shadow.get(this.absolute(t))),void 0===n&&(n=a(e,this.path,{iterables:this.iterables,functions:!0})),this.adjust&&(n=this.adjust(n)),this.map){let e=this.map.get(n);void 0!==e&&(n=e)}return t.mainstay&&t.mainstay.tracer.resolve(t,this,n),n}toString(){return this.display}absolute(e){return[...e.path.slice(0,-this.ancestor),...this.path]}clone(){return new u.Ref(this)}describe(){let e={path:this.path};
vendor: 8,870 bytes, line 19
19for(let t of("value"!==this.type&&(e.type=this.type),"."!==this.separator&&(e.separator=this.separator),"value"===this.type&&1!==this.ancestor&&(e.ancestor=this.ancestor),this.map&&(e.map=[...this.map]),["adjust","iterables","render"]))null!==this[t]&&void 0!==this[t]&&(e[t]=this[t]);return!1!==this.in&&(e.in=!0),{ref:e}}updateDisplay(){let e=null!==this.key?this.key:"";if("value"!==this.type)return void(this.display=`ref:${this.type}:${e}`);if(!this.separator)return void(this.display=`ref:${e}`);if(!this.ancestor)return void(this.display=`ref:${this.separator}${e}`);if("root"===this.ancestor)return void(this.display=`ref:root:${e}`);if(1===this.ancestor)return void(this.display=`ref:${e||".."}`);let t=Array(this.ancestor+1).fill(this.separator).join("");this.display=`ref:${t}${e||""}`}},u.Ref.prototype[s.symbols.ref]=!0,t.build=function(e){return"value"===(e=Object.assign({},u.defaults,e)).type&&void 0===e.ancestor&&(e.ancestor=1),new u.Ref(e)},u.context=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e=e.trim(),r){let n=void 0===r.global?"$":r.global;if(n!==t&&e.startsWith(n))return{key:e.slice(n.length),type:"global"};let i=void 0===r.local?"#":r.local;if(i!==t&&e.startsWith(i))return{key:e.slice(i.length),type:"local"};let o=void 0===r.root?"/":r.root;if(o!==t&&e.startsWith(o))return{key:e.slice(o.length),type:"value",root:!0}}return{key:e,type:"value"}},u.ancestor=function(e,t){if(!t||e[0]!==t)return[1,0];if(e[1]!==t)return[0,1];let r=2;for(;e[r]===t;)++r;return[r-1,r]},t.toSibling=0,t.toParent=1,t.Manager=class{constructor(){this.refs=[]}register(e,i){if(e){if(i=void 0===i?t.toParent:i,Array.isArray(e))for(let t of e)this.register(t,i);else if(s.isSchema(e))for(let t of e._refs.refs)t.ancestor-i>=0&&this.refs.push({ancestor:t.ancestor-i,root:t.root});else t.isRef(e)&&"value"===e.type&&e.ancestor-i>=0&&this.refs.push({ancestor:e.ancestor-i,root:e.root}),(n=n||r(3328)).isTemplate(e)&&this.register(e.refs(),i)}}get length(){return this.refs.length}clone(){let e=new t.Manager;return e.refs=o(this.refs),e}reset(){this.refs=[]}roots(){return this.refs.filter(e=>!e.ancestor).map(e=>e.root)}}},3378:(e,t,r)=>{"use strict";let n=r(5107),i={};i.wrap=n.string().min(1).max(2).allow(!1),t.preferences=n.object({allowUnknown:n.boolean(),abortEarly:n.boolean(),artifacts:n.boolean(),cache:n.boolean(),context:n.object(),convert:n.boolean(),dateFormat:n.valid("date","iso","string","time","utc"),debug:n.boolean(),errors:{escapeHtml:n.boolean(),label:n.valid("path","key",!1),language:[n.string(),n.object().ref()],render:n.boolean(),stack:n.boolean(),wrap:{label:i.wrap,array:i.wrap,string:i.wrap}},externals:n.boolean(),messages:n.object(),noDefaults:n.boolean(),nonEnumerables:n.boolean(),presence:n.valid("required","optional","forbidden"),skipFunctions:n.boolean(),stripUnknown:n.object({arrays:n.boolean(),objects:n.boolean()}).or("arrays","objects").allow(!0,!1),warnings:n.boolean()}).strict(),i.nameRx=/^[a-zA-Z0-9]\w*$/,i.rule=n.object({alias:n.array().items(n.string().pattern(i.nameRx)).single(),args:n.array().items(n.string(),n.object({name:n.string().pattern(i.nameRx).required(),ref:n.boolean(),assert:n.alternatives([n.function(),n.object().schema()]).conditional("ref",{is:!0,then:n.required()}),normalize:n.function(),message:n.string().when("assert",{is:n.function(),then:n.required()})})),convert:n.boolean(),manifest:n.boolean(),method:n.function().allow(!1),multi:n.boolean(),validate:n.function()}),t.extension=n.object({type:n.alternatives([n.string(),n.object().regex()]).required(),args:n.function(),cast:n.object().pattern(i.nameRx,n.object({from:n.function().maxArity(1).required(),to:n.function().minArity(1).maxArity(2).required()})),base:n.object().schema().when("type",{is:n.object().regex(),then:n.forbidden()}),coerce:[n.function().maxArity(3),n.object({method:n.function().maxArity(3).required(),from:n.array().items(n.string()).single()})],flags:n.object().pattern(i.nameRx,n.object({setter:n.string(),default:n.any()})),manifest:{build:n.function().arity(2)},messages:[n.object(),n.string()],modifiers:n.object().pattern(i.nameRx,n.function().minArity(1).maxArity(2)),overrides:n.object().pattern(i.nameRx,n.function()),prepare:n.function().maxArity(3),rebuild:n.function().arity(1),rules:n.object().pattern(i.nameRx,i.rule),terms:n.object().pattern(i.nameRx,n.object({init:n.array().allow(null).required(),manifest:n.object().pattern(/.+/,[n.valid("schema","single"),n.object({mapped:n.object({from:n.string().required(),to:n.string().required()}).required()})])})),validate:n.function().maxArity(3)}).strict(),t.extensions=n.array().items(n.object(),n.function().arity(1)).strict(),i.desc={buffer:n.object({buffer:n.string()}),func:n.object({function:n.function().required(),options:{literal:!0}}),override:n.object({override:!0}),ref:n.object({ref:n.object({type:n.valid("value","global","local"),path:n.array().required(),separator:n.string().length(1).allow(!1),ancestor:n.number().min(0).integer().allow("root"),map:n.array().items(n.array().length(2)).min(1),adjust:n.function(),iterables:n.boolean(),in:n.boolean(),render:n.boolean()}).required()}),regex:n.object({regex:n.string().min(3)}),special:n.object({special:n.valid("deep").required()}),template:n.object({template:n.string().required(),options:n.object()}),value:n.object({value:n.alternatives([n.object(),n.array()]).required()})},i.desc.entity=n.alternatives([n.array().items(n.link("...")),n.boolean(),n.function(),n.number(),n.string(),i.desc.buffer,i.desc.func,i.desc.ref,i.desc.regex,i.desc.special,i.desc.template,i.desc.value,n.link("/")]),i.desc.values=n.array().items(null,n.boolean(),n.function(),n.number().allow(1/0,-1/0),n.string().allow(""),n.symbol(),i.desc.buffer,i.desc.func,i.desc.override,i.desc.ref,i.desc.regex,i.desc.template,i.desc.value),i.desc.messages=n.object().pattern(/.+/,[n.string(),i.desc.template,n.object().pattern(/.+/,[n.string(),i.desc.template])]),t.description=n.object({type:n.string().required(),flags:n.object({cast:n.string(),default:n.any(),description:n.string(),empty:n.link("/"),failover:i.desc.entity,id:n.string(),label:n.string(),only:!0,presence:["optional","required","forbidden"],result:["raw","strip"],strip:n.boolean(),unit:n.string()}).unknown(),preferences:{allowUnknown:n.boolean(),abortEarly:n.boolean(),artifacts:n.boolean(),cache:n.boolean(),convert:n.boolean(),dateFormat:["date","iso","string","time","utc"],errors:{escapeHtml:n.boolean(),label:["path","key"],language:[n.string(),i.desc.ref],wrap:{label:i.wrap,array:i.wrap}},externals:n.boolean(),messages:i.desc.messages,noDefaults:n.boolean(),nonEnumerables:n.boolean(),presence:["required","optional","forbidden"],skipFunctions:n.boolean(),stripUnknown:n.object({arrays:n.boolean(),objects:n.boolean()}).or("arrays","objects").allow(!0,!1),warnings:n.boolean()},allow:i.desc.values,invalid:i.desc.values,rules:n.array().min(1).items({name:n.string().required(),args:n.object().min(1),keep:n.boolean(),message:[n.string(),i.desc.messages],warn:n.boolean()}),keys:n.object().pattern(/.*/,n.link("/")),link:i.desc.ref}).pattern(/^[a-z]\w*$/,n.any())},493:(e,t,r)=>{"use strict";let n=r(8571),i=r(9621),o=r(8160),a={value:Symbol("value")};e.exports=a.State=class{constructor(e,t,r){this.path=e,this.ancestors=t,this.mainstay=r.mainstay,this.schemas=r.schemas,this.debug=null}localize(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=new a.State(e,t,this);return r&&n.schemas&&(n.schemas=[a.schemas(r),...n.schemas]),n}nest(e,t){let r=new a.State(this.path,this.ancestors,this);return r.schemas=r.schemas&&[a.schemas(e),...r.schemas],r.debug=t,r}shadow(e,t){this.mainstay.shadow=this.mainstay.shadow||new a.Shadow,this.mainstay.shadow.set(this.path,e,t)}snapshot(){this.mainstay.shadow&&(this._snapshot=n(this.mainstay.shadow.node(this.path)))}restore(){this.mainstay.shadow&&(this.mainstay.shadow.override(this.path,this._snapshot),this._snapshot=void 0)}},a.schemas=function(e){return o.isSchema(e)?{schema:e}:e},a.Shadow=class{constructor(){this._values=null}set(e,t,r){if(!e.length||"strip"===r&&"number"==typeof e[e.length-1])return;this._values=this._values||new Map;let n=this._values;for(let t=0;t<e.length;++t){let r=e[t],i=n.get(r);i||(i=new Map,n.set(r,i)),n=i}n[a.value]=t}get(e){let t=this.node(e);if(t)return t[a.value]}node(e){if(this._values)return i(this._values,e,{iterables:!0})}override(e,t){if(!this._values)return;let r=e.slice(0,-1),n=e[e.length-1],o=i(this._values,r,{iterables:!0});t?o.set(n,t):o&&o.delete(n)}}},3328:(e,t,r)=>{"use strict";let n=r(375),i=r(8571),o=r(5277),a=r(1447),s=r(8160),u=r(6354),c=r(6133),l={symbol:Symbol("template"),opens:Array(1e3).join("\x00"),closes:Array(1e3).join("\x01"),dateFormat:{date:Date.prototype.toDateString,iso:Date.prototype.toISOString,
19string:Date.prototype.toString,time:Date.prototype.toTimeString,utc:Date.prototype.toUTCString}};e.exports=l.Template=class{constructor(e,t){n("string"==typeof e,"Template source must be a string"),n(!e.includes("\x00")&&!e.includes("\x01"),"Template source cannot contain reserved control characters"),this.source=e,this.rendered=e,this._template=null,this._settings=i(t),this._parse()}_parse(){if(!this.source.includes("{"))return;let e=l.encode(this.source),t=l.split(e),r=!1,n=[],i=t.shift();for(let e of(i&&n.push(i),t)){let t="{"!==e[0],i=t?"}":"}}",o=e.indexOf(i);if(-1===o||"{"===e[1]){n.push(`{${l.decode(e)}`);continue}let a=e.slice(t?0:1,o),s=":"===a[0];s&&(a=a.slice(1));let u=this._ref(l.decode(a),{raw:t,wrapped:s});n.push(u),"string"!=typeof u&&(r=!0);let c=e.slice(o+i.length);c&&n.push(l.decode(c))}r?this._template=n:this.rendered=n.join("")}static date(e,t){return l.dateFormat[t.dateFormat].call(e)}describe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this._settings&&e.compact)return this.source;let t={template:this.source};return this._settings&&(t.options=this._settings),t}static build(e){return new l.Template(e.template,e.options)}isDynamic(){return!!this._template}static isTemplate(e){return!!e&&!!e[s.symbols.template]}refs(){if(!this._template)return;let e=[];for(let t of this._template)"string"!=typeof t&&e.push(...t.refs);return e}resolve(e,t,r,n){return this._template&&1===this._template.length?this._part(this._template[0],e,t,r,n,{}):this.render(e,t,r,n)}_part(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.ref?e.ref.resolve(...r):e.formula.evaluate(r)}render(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(!this.isDynamic())return this.rendered;let a=[];for(let s of this._template)if("string"==typeof s)a.push(s);else{let u=this._part(s,e,t,r,n,i),c=l.stringify(u,e,t,r,n,i);if(void 0!==c){let e=s.raw||!1===(i.errors&&i.errors.escapeHtml)?c:o(c);a.push(l.wrap(e,s.wrapped&&r.errors.wrap.label))}}return a.join("")}_ref(e,t){let{raw:r,wrapped:n}=t,i=[],o=e=>{let t=c.create(e,this._settings);return i.push(t),e=>t.resolve(...e)};try{var s=new a.Parser(e,{reference:o,functions:l.functions,constants:l.constants})}catch(t){throw t.message=`Invalid template variable "${e}" fails due to: ${t.message}`,t}if(s.single){if("reference"===s.single.type){let e=i[0];return{ref:e,raw:r,refs:i,wrapped:n||"local"===e.type&&"label"===e.key}}return l.stringify(s.single.value)}return{formula:s,raw:r,refs:i}}toString(){return this.source}},l.Template.prototype[s.symbols.template]=!0,l.Template.prototype.isImmutable=!0,l.encode=function(e){return e.replace(/\\(\{+)/g,(e,t)=>l.opens.slice(0,t.length)).replace(/\\(\}+)/g,(e,t)=>l.closes.slice(0,t.length))},l.decode=function(e){return e.replace(/\u0000/g,"{").replace(/\u0001/g,"}")},l.split=function(e){let t=[],r="";for(let n=0;n<e.length;++n){let i=e[n];if("{"===i){let i="";for(;n+1<e.length&&"{"===e[n+1];)i+="{",++n;t.push(r),r=i}else r+=i}return t.push(r),t},l.wrap=function(e,t){return t?1===t.length?`${t}${e}${t}`:`${t[0]}${e}${t[1]}`:e},l.stringify=function(e,t,r,n,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=typeof e,s=n&&n.errors&&n.errors.wrap||{},u=!1;if(c.isRef(e)&&e.render&&(u=e.in,e=e.resolve(t,r,n,i,{in:e.in,...o})),null===e)return"null";if("string"===a)return l.wrap(e,o.arrayItems&&s.string);if("number"===a||"function"===a||"symbol"===a)return e.toString();if("object"!==a)return JSON.stringify(e);if(e instanceof Date)return l.Template.date(e,n);if(e instanceof Map){let t=[];for(let[r,n]of e.entries())t.push(`${r.toString()} -> ${n.toString()}`);e=t}if(!Array.isArray(e))return e.toString();let f=[];for(let a of e)f.push(l.stringify(a,t,r,n,i,{arrayItems:!0,...o}));return l.wrap(f.join(", "),!u&&s.array)},l.constants={true:!0,false:!1,null:null,second:1e3,minute:6e4,hour:36e5,day:864e5},l.functions={if:(e,t,r)=>e?t:r,length:e=>"string"==typeof e?e.length:e&&"object"==typeof e?Array.isArray(e)?e.length:Object.keys(e).length:null,msg(e){let[t,r,n,i,o]=this,a=o.messages;if(!a)return"";let s=u.template(t,a[0],e,r,n)||u.template(t,a[1],e,r,n);return s?s.render(t,r,n,i,o):""},number:e=>"number"==typeof e?e:"string"==typeof e?parseFloat(e):"boolean"==typeof e?e?1:0:e instanceof Date?e.getTime():null}},4946:(e,t,r)=>{"use strict";let n=r(375),i=r(1687),o=r(8068),a=r(8160),s=r(3292),u=r(6354),c=r(6133),l={};e.exports=o.extend({type:"alternatives",flags:{match:{default:"any"}},terms:{matches:{init:[],register:c.toSibling}},args(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return 1===r.length&&Array.isArray(r[0])?e.try(...r[0]):e.try(...r)},validate(e,t){let{schema:r,error:n,state:o,prefs:a}=t;if(r._flags.match){let t=[],s=[];for(let n=0;n<r.$_terms.matches.length;++n){let i=r.$_terms.matches[n],u=o.nest(i.schema,`match.${n}`);u.snapshot();let c=i.schema.$_validate(e,u,a);
19c.errors?(s.push(c.errors),u.restore()):t.push(c.value)}if(0===t.length)return{errors:n("alternatives.any",{details:s.map(e=>u.details(e,{override:!1}))})};if("one"===r._flags.match)return 1===t.length?{value:t[0]}:{errors:n("alternatives.one")};if(t.length!==r.$_terms.matches.length)return{errors:n("alternatives.all",{details:s.map(e=>u.details(e,{override:!1}))})};let c=e=>e.$_terms.matches.some(e=>"object"===e.schema.type||"alternatives"===e.schema.type&&c(e.schema));return c(r)?{value:t.reduce((e,t)=>i(e,t,{mergeArrays:!1}))}:{value:t[t.length-1]}}let s=[];for(let t=0;t<r.$_terms.matches.length;++t){let n=r.$_terms.matches[t];if(n.schema){let r=o.nest(n.schema,`match.${t}`);r.snapshot();let i=n.schema.$_validate(e,r,a);if(!i.errors)return i;r.restore(),s.push({schema:n.schema,reports:i.errors});continue}let i=n.ref?n.ref.resolve(e,o,a):e,u=n.is?[n]:n.switch;for(let r=0;r<u.length;++r){let s=u[r],{is:c,then:l,otherwise:f}=s,d=`match.${t}${n.switch?"."+r:""}`;if(c.$_match(i,o.nest(c,`${d}.is`),a)){if(l)return l.$_validate(e,o.nest(l,`${d}.then`),a)}else if(f)return f.$_validate(e,o.nest(f,`${d}.otherwise`),a)}}return l.errors(s,t)},rules:{conditional:{method(e,t){n(!this._flags._endedSwitch,"Unreachable condition"),n(!this._flags.match,"Cannot combine match mode",this._flags.match,"with conditional rule"),n(void 0===t.break,"Cannot use break option with alternatives conditional");let r=this.clone(),i=s.when(r,e,t),o=i.is?[i]:i.switch;for(let e of o)if(e.then&&e.otherwise){r.$_setFlag("_endedSwitch",!0,{clone:!1});break}return r.$_terms.matches.push(i),r.$_mutateRebuild()}},match:{method(e){if(n(["any","one","all"].includes(e),"Invalid alternatives match mode",e),"any"!==e)for(let t of this.$_terms.matches)n(t.schema,"Cannot combine match mode",e,"with conditional rules");return this.$_setFlag("match",e)}},try:{method(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];n(t.length,"Missing alternative schemas"),a.verifyFlat(t,"try"),n(!this._flags._endedSwitch,"Unreachable condition");let i=this.clone();for(let e of t)i.$_terms.matches.push({schema:i.$_compile(e)});return i.$_mutateRebuild()}}},overrides:{label(e){return this.$_parent("label",e).$_modify({each:(t,r)=>"is"!==r.path[0]?t.label(e):void 0,ref:!1})}},rebuild(e){e.$_modify({each:t=>{a.isSchema(t)&&"array"===t.type&&e.$_setFlag("_arrayItems",!0,{clone:!1})}})},manifest:{build(e,t){if(t.matches)for(let r of t.matches){let{schema:t,ref:n,is:i,not:o,then:a,otherwise:s}=r;e=t?e.try(t):n?e.conditional(n,{is:i,then:a,not:o,otherwise:s,switch:r.switch}):e.conditional(i,{then:a,otherwise:s})}return e}},messages:{"alternatives.all":"{{#label}} does not match all of the required types","alternatives.any":"{{#label}} does not match any of the allowed types","alternatives.match":"{{#label}} does not match any of the allowed types","alternatives.one":"{{#label}} matches more than one allowed type","alternatives.types":"{{#label}} must be one of {{#types}}"}}),l.errors=function(e,t){let{error:r,state:n}=t;if(!e.length)return{errors:r("alternatives.any")};if(1===e.length)return{errors:e[0].reports};let i=new Set,o=[];for(let{reports:t,schema:a}of e){if(t.length>1)return l.unmatched(e,r);let s=t[0];if(s instanceof u.Report==0)return l.unmatched(e,r);if(s.state.path.length!==n.path.length){o.push({type:a.type,report:s});continue}if("any.only"===s.code){for(let e of s.local.valids)i.add(e);continue}let[c,f]=s.code.split(".");"base"===f?i.add(c):o.push({type:a.type,report:s})}return o.length?1===o.length?{errors:o[0].report}:l.unmatched(e,r):{errors:r("alternatives.types",{types:[...i]})}},l.unmatched=function(e,t){let r=[];for(let t of e)r.push(...t.reports);return{errors:t("alternatives.match",u.details(r,{override:!1}))}}},8068:(e,t,r)=>{"use strict";let n=r(375),i=r(7629),o=r(8160),a=r(6914);e.exports=i.extend({type:"any",flags:{only:{default:!1}},terms:{alterations:{init:null},examples:{init:null},externals:{init:null},metas:{init:[]},notes:{init:[]},shared:{init:null},tags:{init:[]},whens:{init:null}},rules:{custom:{method(e,t){return n("function"==typeof e,"Method must be a function"),n(void 0===t||t&&"string"==typeof t,"Description must be a non-empty string"),this.$_addRule({name:"custom",args:{method:e,description:t}})},validate(e,t,r){let{method:n}=r;try{return n(e,t)}catch(e){return t.error("any.custom",{error:e})}},args:["method","description"],multi:!0},messages:{method(e){return this.prefs({messages:e})}},shared:{method(e){n(o.isSchema(e)&&e._flags.id,"Schema must be a schema with an id");let t=this.clone();return t.$_terms.shared=t.$_terms.shared||[],t.$_terms.shared.push(e),t.$_mutateRegister(e),t}},warning:{method(e,t){return n(e&&"string"==typeof e,"Invalid warning code"),this.$_addRule({name:"warning",args:{code:e,local:t},warn:!0})}
19,validate(e,t,r){let{code:n,local:i}=r;return t.error(n,i)},args:["code","local"],multi:!0}},modifiers:{keep(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.keep=t},message(e,t){e.message=a.compile(t)},warn(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.warn=t}},manifest:{build(e,t){for(let r in t){let n=t[r];if(["examples","externals","metas","notes","tags"].includes(r))for(let t of n)e=e[r.slice(0,-1)](t);else if("alterations"!==r){if("whens"!==r){if("shared"===r)for(let t of n)e=e.shared(t)}else for(let t of n){let{ref:r,is:n,not:i,then:o,otherwise:a,concat:s}=t;e=s?e.concat(s):r?e.when(r,{is:n,not:i,then:o,otherwise:a,switch:t.switch,break:t.break}):e.when(n,{then:o,otherwise:a,break:t.break})}}else{let t={};for(let{target:e,adjuster:r}of n)t[e]=r;e=e.alter(t)}}return e}},messages:{"any.custom":"{{#label}} failed custom validation because {{#error.message}}","any.default":"{{#label}} threw an error when running default method","any.failover":"{{#label}} threw an error when running failover method","any.invalid":"{{#label}} contains an invalid value","any.only":'{{#label}} must be {if(#valids.length == 1, "", "one of ")}{{#valids}}',"any.ref":"{{#label}} {{#arg}} references {{:#ref}} which {{#reason}}","any.required":"{{#label}} is required","any.unknown":"{{#label}} is not allowed"}})},546:(e,t,r)=>{"use strict";let n=r(375),i=r(9474),o=r(9621),a=r(8068),s=r(8160),u=r(3292),c={};e.exports=a.extend({type:"array",flags:{single:{default:!1},sparse:{default:!1}},terms:{items:{init:[],manifest:"schema"},ordered:{init:[],manifest:"schema"},_exclusions:{init:[]},_inclusions:{init:[]},_requireds:{init:[]}},coerce:{from:"object",method(e,t){let{schema:r,state:n,prefs:i}=t;if(!Array.isArray(e))return;let o=r.$_getRule("sort");return o?c.sort(r,e,o.args.options,n,i):void 0}},validate(e,t){let{schema:r,error:n}=t;if(!Array.isArray(e)){if(r._flags.single){let t=[e];return t[s.symbols.arraySingle]=!0,{value:t}}return{errors:n("array.base")}}if(r.$_getRule("items")||r.$_terms.externals)return{value:e.slice()}},rules:{has:{method(e){e=this.$_compile(e,{appendPath:!0});let t=this.$_addRule({name:"has",args:{schema:e}});return t.$_mutateRegister(e),t},validate(e,t,r){let{state:n,prefs:i,error:o}=t,{schema:a}=r,s=[e,...n.ancestors];for(let t=0;t<e.length;++t){let r=n.localize([...n.path,t],s,a);if(a.$_match(e[t],r,i))return e}let u=a._flags.label;return u?o("array.hasKnown",{patternLabel:u}):o("array.hasUnknown",null)},multi:!0},items:{method(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];s.verifyFlat(t,"items");let n=this.$_addRule("items");for(let e=0;e<t.length;++e){let r=s.tryWithPath(()=>this.$_compile(t[e]),e,{append:!0});n.$_terms.items.push(r)}return n.$_mutateRebuild()},validate(e,t){let{schema:r,error:n,state:i,prefs:o,errorsArray:a}=t,u=r.$_terms._requireds.slice(),l=r.$_terms.ordered.slice(),f=[...r.$_terms._inclusions,...u],d=!e[s.symbols.arraySingle];delete e[s.symbols.arraySingle];let h=a(),p=e.length;for(let t=0;t<p;++t){let a=e[t],s=!1,m=!1,y=d?t:new Number(t),b=[...i.path,y];if(!r._flags.sparse&&void 0===a){if(h.push(n("array.sparse",{key:y,path:b,pos:t,value:void 0},i.localize(b))),o.abortEarly)return h;l.shift();continue}let g=[e,...i.ancestors];for(let e of r.$_terms._exclusions)if(e.$_match(a,i.localize(b,g,e),o,{presence:"ignore"})){if(h.push(n("array.excludes",{pos:t,value:a},i.localize(b))),o.abortEarly)return h;s=!0,l.shift();break}if(s)continue;if(r.$_terms.ordered.length){if(l.length){let s=l.shift(),u=s.$_validate(a,i.localize(b,g,s),o);if(u.errors){if(h.push(...u.errors),o.abortEarly)return h}else if("strip"===s._flags.result)c.fastSplice(e,t),--t,--p;else{if(!r._flags.sparse&&void 0===u.value){if(h.push(n("array.sparse",{key:y,path:b,pos:t,value:void 0},i.localize(b))),o.abortEarly)return h;continue}e[t]=u.value}continue}if(!r.$_terms.items.length){if(h.push(n("array.orderedLength",{pos:t,limit:r.$_terms.ordered.length})),o.abortEarly)return h;break}}let v=[],w=u.length;for(let s=0;s<w;++s){let l=i.localize(b,g,u[s]);l.snapshot();let f=u[s].$_validate(a,l,o);if(v[s]=f,!f.errors){if(e[t]=f.value,m=!0,c.fastSplice(u,s),--s,--w,!r._flags.sparse&&void 0===f.value&&(h.push(n("array.sparse",{key:y,path:b,pos:t,value:void 0},i.localize(b))),o.abortEarly))return h;break}
19l.restore()}if(m)continue;let _=o.stripUnknown&&!!o.stripUnknown.arrays||!1;for(let l of(w=f.length,f)){let f;let d=u.indexOf(l);if(-1!==d)f=v[d];else{let u=i.localize(b,g,l);if(u.snapshot(),!(f=l.$_validate(a,u,o)).errors){"strip"===l._flags.result?(c.fastSplice(e,t),--t,--p):r._flags.sparse||void 0!==f.value?e[t]=f.value:(h.push(n("array.sparse",{key:y,path:b,pos:t,value:void 0},i.localize(b))),s=!0),m=!0;break}u.restore()}if(1===w){if(_){c.fastSplice(e,t),--t,--p,m=!0;break}if(h.push(...f.errors),o.abortEarly)return h;s=!0;break}}if(!s&&(r.$_terms._inclusions.length||r.$_terms._requireds.length)&&!m){if(_){c.fastSplice(e,t),--t,--p;continue}if(h.push(n("array.includes",{pos:t,value:a},i.localize(b))),o.abortEarly)return h}}return u.length&&c.fillMissedErrors(r,h,u,e,i,o),l.length&&(c.fillOrderedErrors(r,h,l,e,i,o),h.length||c.fillDefault(l,e,i,o)),h.length?h:e},priority:!0,manifest:!1},length:{method(e){return this.$_addRule({name:"length",args:{limit:e},operator:"="})},validate(e,t,r,n){let{limit:i}=r,{name:o,operator:a,args:u}=n;return s.compare(e.length,i,a)?e:t.error("array."+o,{limit:u.limit,value:e})},args:[{name:"limit",ref:!0,assert:s.limit,message:"must be a positive integer"}]},max:{method(e){return this.$_addRule({name:"max",method:"length",args:{limit:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"length",args:{limit:e},operator:">="})}},ordered:{method(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];s.verifyFlat(t,"ordered");let n=this.$_addRule("items");for(let e=0;e<t.length;++e){let r=s.tryWithPath(()=>this.$_compile(t[e]),e,{append:!0});c.validateSingle(r,n),n.$_mutateRegister(r),n.$_terms.ordered.push(r)}return n.$_mutateRebuild()}},single:{method(e){let t=void 0===e||!!e;return n(!t||!this._flags._arrayItems,"Cannot specify single rule when array has array items"),this.$_setFlag("single",t)}},sort:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s.assertOptions(e,["by","order"]);let t={order:e.order||"ascending"};return e.by&&(t.by=u.ref(e.by,{ancestor:0}),n(!t.by.ancestor,"Cannot sort by ancestor")),this.$_addRule({name:"sort",args:{options:t}})},validate(e,t,r){let{error:n,state:i,prefs:o,schema:a}=t,{options:s}=r,{value:u,errors:l}=c.sort(a,e,s,i,o);if(l)return l;for(let t=0;t<e.length;++t)if(e[t]!==u[t])return n("array.sort",{order:s.order,by:s.by?s.by.key:"value"});return e},convert:!0},sparse:{method(e){let t=void 0===e||!!e;return this._flags.sparse===t?this:(t?this.clone():this.$_addRule("items")).$_setFlag("sparse",t,{clone:!1})}},unique:{method(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(!e||"function"==typeof e||"string"==typeof e,"comparator must be a function or a string"),s.assertOptions(t,["ignoreUndefined","separator"]);let r={name:"unique",args:{options:t,comparator:e}};if(e){if("string"==typeof e){let n=s.default(t.separator,".");r.path=n?e.split(n):[e]}else r.comparator=e}return this.$_addRule(r)},validate(e,t,r,a){let{state:s,error:u,schema:c}=t,{comparator:l,options:f}=r,{comparator:d,path:h}=a,p={string:Object.create(null),number:Object.create(null),undefined:Object.create(null),boolean:Object.create(null),object:new Map,function:new Map,custom:new Map},m=d||i,y=f.ignoreUndefined;for(let t=0;t<e.length;++t){let r=h?o(e[t],h):e[t],i=d?p.custom:p[typeof r];if(n(i,"Failed to find unique map container for type",typeof r),i instanceof Map){let n;let o=i.entries();for(;!(n=o.next()).done;)if(m(n.value[0],r)){let r=s.localize([...s.path,t],[e,...s.ancestors]),i={pos:t,value:e[t],dupePos:n.value[1],dupeValue:e[n.value[1]]};return h&&(i.path=l),u("array.unique",i,r)}i.set(r,t)}else{if((!y||void 0!==r)&&void 0!==i[r]){let n={pos:t,value:e[t],dupePos:i[r],dupeValue:e[i[r]]};return h&&(n.path=l),u("array.unique",n,s.localize([...s.path,t],[e,...s.ancestors]))}i[r]=t}}return e},args:["comparator","options"],multi:!0}},cast:{set:{from:Array.isArray,to:(e,t)=>new Set(e)}},rebuild(e){for(let t of(e.$_terms._inclusions=[],e.$_terms._exclusions=[],e.$_terms._requireds=[],e.$_terms.items))c.validateSingle(t,e),"required"===t._flags.presence?e.$_terms._requireds.push(t):"forbidden"===t._flags.presence?e.$_terms._exclusions.push(t):e.$_terms._inclusions.push(t);for(let t of e.$_terms.ordered)c.validateSingle(t,e)},manifest:{build:(e,t)=>(t.items&&(e=e.items(...t.items)),t.ordered&&(e=e.ordered(...t.ordered)),e)},messages:{"array.base":"{{#label}} must be an array","array.excludes":"{{#label}} contains an excluded value","array.hasKnown":"{{#label}} does not contain at least one required match for type {:#patternLabel}","array.hasUnknown":"{{#label}} does not contain at least one required match","array.includes":"{{#label}} does not match any of the allowed types","array.includesRequiredBoth":"{{#label}} does not contain {{#knownMisses}} and {{#unknownMisses}} other required value(s)","array.includesRequiredKnowns":"{{#label}} does not contain {{#knownMisses}}","array.includesRequiredUnknowns":"{{#label}} does not contain {{#unknownMisses}} required value(s)","array.length":"{{#label}} must contain {{#limit}} items","array.max":"{{#label}} must contain less than or equal to {{#limit}} items","array.min":"{{#label}} must contain at least {{#limit}} items","array.orderedLength":"{{#label}} must contain at most {{#limit}} items","array.sort":"{{#label}} must be sorted in {#order} order by {{#by}}","array.sort.mismatching":"{{#label}} cannot be sorted due to mismatching types","array.sort.unsupported":"{{#label}} cannot be sorted due to unsupported type {#type}","array.sparse":"{{#label}} must not be a sparse array item","array.unique":"{{#label}} contains a duplicate value"}}),c.fillMissedErrors=function(e,t,r,n,i,o){let a=[],s=0;for(let e of r){let t=e._flags.label;t?a.push(t):++s}a.length?s?t.push(e.$_createError("array.includesRequiredBoth",n,{knownMisses:a,unknownMisses:s},i,o)):t.push(e.$_createError("array.includesRequiredKnowns",n,{knownMisses:a},i,o)):t.push(e.$_createError("array.includesRequiredUnknowns",n,{unknownMisses:s},i,o))},c.fillOrderedErrors=function(e,t,r,n,i,o){let a=[];for(let e of r)"required"===e._flags.presence&&a.push(e);a.length&&c.fillMissedErrors(e,t,a,n,i,o)},c.fillDefault=function(e,t,r,n){let i=[],o=!0;for(let a=e.length-1;a>=0;--a){let s=e[a],u=[t,...r.ancestors],c=s.$_validate(void 0,r.localize(r.path,u,s),n).value;if(o){if(void 0===c)continue;o=!1}i.unshift(c)}i.length&&t.push(...i)},c.fastSplice=function(e,t){let r=t;for(;r<e.length;)e[r++]=e[r];--e.length},c.validateSingle=function(e,t){("array"===e.type||e._flags._arrayItems)&&(n(!t._flags.single,"Cannot specify array item with single rule enabled"),t.$_setFlag("_arrayItems",!0,{clone:!1}))},c.sort=function(e,t,r,n,i){let o="ascending"===r.order?1:-1,a=-1*o,s=o,u=(u,l)=>{let f=c.compare(u,l,a,s);if(null!==f||(r.by&&(u=r.by.resolve(u,n,i),l=r.by.resolve(l,n,i)),null!==(f=c.compare(u,l,a,s))))return f;let d=typeof u;if(d!==typeof l)throw e.$_createError("array.sort.mismatching",t,null,n,i);if("number"!==d&&"string"!==d)throw e.$_createError("array.sort.unsupported",t,{type:d},n,i);return"number"===d?(u-l)*o:u<l?a:s};try{return{value:t.slice().sort(u)}}catch(e){return{errors:e}}},c.compare=function(e,t,r,n){return e===t?0:void 0===e?1:void 0===t?-1:null===e?n:null===t?r:null}},4937:(e,t,r)=>{"use strict";let n=r(375),i=r(8068),o=r(8160),a=r(2036),s={isBool:function(e){return"boolean"==typeof e}};e.exports=i.extend({type:"boolean",flags:{sensitive:{default:!1}},terms:{falsy:{init:null,manifest:"values"},truthy:{init:null,manifest:"values"}},coerce(e,t){let{schema:r}=t;if("boolean"!=typeof e){if("string"==typeof e){let t=r._flags.sensitive?e:e.toLowerCase();e="true"===t||"false"!==t&&e}return"boolean"!=typeof e&&(e=r.$_terms.truthy&&r.$_terms.truthy.has(e,null,null,!r._flags.sensitive)||(!r.$_terms.falsy||!r.$_terms.falsy.has(e,null,null,!r._flags.sensitive))&&e),{value:e}}},validate(e,t){let{error:r}=t;if("boolean"!=typeof e)return{value:e,errors:r("boolean.base")}},rules:{truthy:{method(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];o.verifyFlat(t,"truthy");let i=this.clone();i.$_terms.truthy=i.$_terms.truthy||new a;for(let e=0;e<t.length;++e){let r=t[e];n(void 0!==r,"Cannot call truthy with undefined"),i.$_terms.truthy.add(r)}return i}},falsy:{method(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];o.verifyFlat(t,"falsy");let i=this.clone();i.$_terms.falsy=i.$_terms.falsy||new a;for(let e=0;e<t.length;++e){let r=t[e];n(void 0!==r,"Cannot call falsy with undefined"),i.$_terms.falsy.add(r)}return i}},sensitive:{method(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.$_setFlag("sensitive",e)}}},cast:{number:{from:s.isBool,to:(e,t)=>e?1:0},string:{from:s.isBool,to:(e,t)=>e?"true":"false"}},manifest:{build:(e,t)=>(t.truthy&&(e=e.truthy(...t.truthy)),t.falsy&&(e=e.falsy(...t.falsy)),e)},messages:{"boolean.base":"{{#label}} must be a boolean"}})},7500:(e,t,r)=>{"use strict";let n=r(375),i=r(8068),o=r(8160),a=r(3328),s={isDate:function(e){return e instanceof Date}};e.exports=i.extend({type:"date",coerce:{from:["number","string"],method(e,t){let{schema:r}=t;return{value:s.parse(e,r._flags.format)||e}}},validate(e,t){let{schema:r,error:n,prefs:i}=t;if(e instanceof Date&&!isNaN(e.getTime()))return;let o=r._flags.format;return i.convert&&o&&"string"==typeof e?{value:e,errors:n("date.format",{format:o})}:{value:e,errors:n("date.base")}},rules:{compare:{method:!1,validate(e,t,r,n){let{date:i}=r,{name:a,operator:s,args:u}=n,c="now"===i?Date.now():i.getTime();return o.compare(e.getTime(),c,s)?e:t.error("date."+a,{limit:u.date,value:e})},args:[{name:"date",ref:!0,normalize:e=>"now"===e?e:s.parse(e),assert:e=>null!==e,message:"must have a valid date format"}]},format:{method(e){return n(["iso","javascript","unix"].includes(e),"Unknown date format",e),this.$_setFlag("format",e)}},greater:{method(e){return this.$_addRule({name:"greater",method:"compare",args:{date:e},operator:">"})}},iso:{method(){return this.format("iso")}},less:{method(e){return this.$_addRule({name:"less",method:"compare",args:{date:e},operator:"<"})}},max:{method(e){return this.$_addRule({name:"max",method:"compare",args:{date:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"compare",args:{date:e},operator:">="})}},timestamp:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"javascript";return n(["javascript","unix"].includes(e),'"type" must be one of "javascript, unix"'),this.format(e)}}},cast:{number:{from:s.isDate,to:(e,t)=>e.getTime()},string:{from:s.isDate,to(e,t){let{prefs:r}=t;return a.date(e,r)}}},messages:{"date.base":"{{#label}} must be a valid date","date.format":'{{#label}} must be in {msg("date.format." + #format) || #format} format',"date.greater":"{{#label}} must be greater than {{:#limit}}","date.less":"{{#label}} must be less than {{:#limit}}","date.max":"{{#label}} must be less than or equal to {{:#limit}}","date.min":"{{#label}} must be greater than or equal to {{:#limit}}","date.format.iso":"ISO 8601 date","date.format.javascript":"timestamp or number of milliseconds","date.format.unix":"timestamp or number of seconds"}}),s.parse=function(e,t){if(e instanceof Date)return e;if("string"!=typeof e&&(isNaN(e)||!isFinite(e))||/^\s*$/.test(e))return null;if("iso"===t)return o.isIsoDate(e)?s.date(e.toString()):null;let r=e;if("string"==typeof e&&/^[+-]?\d+(\.\d+)?$/.test(e)&&(e=parseFloat(e)),t){if("javascript"===t)return s.date(1*e);if("unix"===t)return s.date(1e3*e);if("string"==typeof r)return null}return s.date(e)},s.date=function(e){let t=new Date(e);return isNaN(t.getTime())?null:t}},390:(e,t,r)=>{"use strict";let n=r(375),i=r(7824);e.exports=i.extend({type:"function",properties:{typeof:"function"},rules:{arity:{method(e){return n(Number.isSafeInteger(e)&&e>=0,"n must be a positive integer"),this.$_addRule({name:"arity",args:{n:e}})},validate(e,t,r){let{n:n}=r;return e.length===n?e:t.error("function.arity",{n:n})}},class:{method(){return this.$_addRule("class")},validate:(e,t)=>
19/^\s*class\s/.test(e.toString())?e:t.error("function.class",{value:e})},minArity:{method(e){return n(Number.isSafeInteger(e)&&e>0,"n must be a strict positive integer"),this.$_addRule({name:"minArity",args:{n:e}})},validate(e,t,r){let{n:n}=r;return e.length>=n?e:t.error("function.minArity",{n:n})}},maxArity:{method(e){return n(Number.isSafeInteger(e)&&e>=0,"n must be a positive integer"),this.$_addRule({name:"maxArity",args:{n:e}})},validate(e,t,r){let{n:n}=r;return e.length<=n?e:t.error("function.maxArity",{n:n})}}},messages:{"function.arity":"{{#label}} must have an arity of {{#n}}","function.class":"{{#label}} must be a class","function.maxArity":"{{#label}} must have an arity lesser or equal to {{#n}}","function.minArity":"{{#label}} must have an arity greater or equal to {{#n}}"}})},7824:(e,t,r)=>{"use strict";let n=r(978),i=r(375),o=r(8571),a=r(3652),s=r(8068),u=r(8160),c=r(3292),l=r(6354),f=r(6133),d=r(3328),h={renameDefaults:{alias:!1,multiple:!1,override:!1}};e.exports=s.extend({type:"_keys",properties:{typeof:"object"},flags:{unknown:{default:!1}},terms:{dependencies:{init:null},keys:{init:null,manifest:{mapped:{from:"schema",to:"key"}}},patterns:{init:null},renames:{init:null}},args:(e,t)=>e.keys(t),validate(e,t){let{schema:r,error:n,state:i,prefs:o}=t;if(!e||typeof e!==r.$_property("typeof")||Array.isArray(e))return{value:e,errors:n("object.base",{type:r.$_property("typeof")})};if(!(r.$_terms.renames||r.$_terms.dependencies||r.$_terms.keys||r.$_terms.patterns||r.$_terms.externals))return;e=h.clone(e,o);let a=[];if(r.$_terms.renames&&!h.rename(r,e,i,o,a)||!r.$_terms.keys&&!r.$_terms.patterns&&!r.$_terms.dependencies)return{value:e,errors:a};let s=new Set(Object.keys(e));if(r.$_terms.keys){let t=[e,...i.ancestors];for(let n of r.$_terms.keys){let r=n.key,u=e[r];s.delete(r);let c=i.localize([...i.path,r],t,n),l=n.schema.$_validate(u,c,o);if(l.errors){if(o.abortEarly)return{value:e,errors:l.errors};void 0!==l.value&&(e[r]=l.value),a.push(...l.errors)}else"strip"===n.schema._flags.result||void 0===l.value&&void 0!==u?delete e[r]:void 0!==l.value&&(e[r]=l.value)}}if(s.size||r._flags._hasPatternMatch){let t=h.unknown(r,e,s,a,i,o);if(t)return t}if(r.$_terms.dependencies)for(let t of r.$_terms.dependencies){if(null!==t.key&&!1===h.isPresent(t.options)(t.key.resolve(e,i,o,null,{shadow:!1})))continue;let n=h.dependencies[t.rel](r,t,e,i,o);if(n){let t=r.$_createError(n.code,e,n.context,i,o);if(o.abortEarly)return{value:e,errors:t};a.push(t)}}return{value:e,errors:a}},rules:{and:{method(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.verifyFlat(t,"and"),h.dependency(this,"and",null,t)}},append:{method(e){return null==e||0===Object.keys(e).length?this:this.keys(e)}},assert:{method(e,t,r){d.isTemplate(e)||(e=c.ref(e)),i(void 0===r||"string"==typeof r,"Message must be a string"),t=this.$_compile(t,{appendPath:!0});let n=this.$_addRule({name:"assert",args:{subject:e,schema:t,message:r}});return n.$_mutateRegister(e),n.$_mutateRegister(t),n},validate(e,t,r){let{error:n,prefs:i,state:o}=t,{subject:a,schema:s,message:u}=r,c=a.resolve(e,o,i),l=f.isRef(a)?a.absolute(o):[];return s.$_match(c,o.localize(l,[e,...o.ancestors],s),i)?e:n("object.assert",{subject:a,message:u})},args:["subject","schema","message"],multi:!0},instance:{method(e,t){return i("function"==typeof e,"constructor must be a function"),t=t||e.name,this.$_addRule({name:"instance",args:{constructor:e,name:t}})},validate(e,t,r){let{constructor:n,name:i}=r;return e instanceof n?e:t.error("object.instance",{type:i,value:e})},args:["constructor","name"]},keys:{method(e){i(void 0===e||"object"==typeof e,"Object schema must be a valid object"),i(!u.isSchema(e),"Object schema cannot be a joi schema");let t=this.clone();if(e){if(Object.keys(e).length)for(let r in t.$_terms.keys=t.$_terms.keys?t.$_terms.keys.filter(t=>!e.hasOwnProperty(t.key)):new h.Keys,e)u.tryWithPath(()=>t.$_terms.keys.push({key:r,schema:this.$_compile(e[r])}),r);else t.$_terms.keys=new h.Keys}else t.$_terms.keys=null;return t.$_mutateRebuild()}},length:{method(e){return this.$_addRule({name:"length",args:{limit:e},operator:"="})},validate(e,t,r,n){let{limit:i}=r,{name:o,operator:a,args:s}=n;return u.compare(Object.keys(e).length,i,a)?e:t.error("object."+o,{limit:s.limit,value:e})},args:[{name:"limit",ref:!0,assert:u.limit,message:"must be a positive integer"}]},max:{method(e){return this.$_addRule({name:"max",method:"length",args:{limit:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"length",args:{limit:e},operator:">="})}},nand:{method(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.verifyFlat(t,"nand"),h.dependency(this,"nand",null,t)}},or:{method(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.verifyFlat(t,"or"),h.dependency(this,"or",null,t)}},oxor:{method(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return h.dependency(this,"oxor",null,t)}},pattern:{method(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=e instanceof RegExp;n||(e=this.$_compile(e,{appendPath:!0})),i(void 0!==t,"Invalid rule"),u.assertOptions(r,["fallthrough","matches"]),n&&i(!e.flags.includes("g")&&!e.flags.includes("y"),"pattern should not use global or sticky mode"),t=this.$_compile(t,{appendPath:!0});let o=this.clone();o.$_terms.patterns=o.$_terms.patterns||[];let a={[n?"regex":"schema"]:e,rule:t};return r.matches&&(a.matches=this.$_compile(r.matches),"array"!==a.matches.type&&(a.matches=a.matches.$_root.array().items(a.matches)),o.$_mutateRegister(a.matches),o.$_setFlag("_hasPatternMatch",!0,{clone:!1})),r.fallthrough&&(a.fallthrough=!0),o.$_terms.patterns.push(a),o.$_mutateRegister(t),o}},ref:{method(){return this.$_addRule("ref")},validate:(e,t)=>
19f.isRef(e)?e:t.error("object.refType",{value:e})},regex:{method(){return this.$_addRule("regex")},validate:(e,t)=>e instanceof RegExp?e:t.error("object.regex",{value:e})},rename:{method(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};i("string"==typeof e||e instanceof RegExp,"Rename missing the from argument"),i("string"==typeof t||t instanceof d,"Invalid rename to argument"),i(t!==e,"Cannot rename key to same name:",e),u.assertOptions(r,["alias","ignoreUndefined","override","multiple"]);let o=this.clone();for(let t of(o.$_terms.renames=o.$_terms.renames||[],o.$_terms.renames))i(t.from!==e,"Cannot rename the same key multiple times");return t instanceof d&&o.$_mutateRegister(t),o.$_terms.renames.push({from:e,to:t,options:n(h.renameDefaults,r)}),o}},schema:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"any";return this.$_addRule({name:"schema",args:{type:e}})},validate(e,t,r){let{type:n}=r;return u.isSchema(e)&&("any"===n||e.type===n)?e:t.error("object.schema",{type:n})}},unknown:{method(e){return this.$_setFlag("unknown",!1!==e)}},with:{method(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return h.dependency(this,"with",e,t,r)}},without:{method(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return h.dependency(this,"without",e,t,r)}},xor:{method(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.verifyFlat(t,"xor"),h.dependency(this,"xor",null,t)}}},overrides:{default(e,t){return void 0===e&&(e=u.symbols.deepDefault),this.$_parent("default",e,t)}},rebuild(e){if(e.$_terms.keys){let t=new a.Sorter;for(let r of e.$_terms.keys)u.tryWithPath(()=>t.add(r,{after:r.schema.$_rootReferences(),group:r.key}),r.key);e.$_terms.keys=new h.Keys(...t.nodes)}},manifest:{build(e,t){if(t.keys&&(e=e.keys(t.keys)),t.dependencies)for(let{rel:r,key:n=null,peers:i,options:o}of t.dependencies)e=h.dependency(e,r,n,i,o);if(t.patterns)for(let{regex:r,schema:n,rule:i,fallthrough:o,matches:a}of t.patterns)e=e.pattern(r||n,i,{fallthrough:o,matches:a});if(t.renames)for(let{from:r,to:n,options:i}of t.renames)e=e.rename(r,n,i);return e}},messages:{"object.and":"{{#label}} contains {{#presentWithLabels}} without its required peers {{#missingWithLabels}}","object.assert":'{{#label}} is invalid because {if(#subject.key, `"` + #subject.key + `" failed to ` + (#message || "pass the assertion test"), #message || "the assertion failed")}',"object.base":"{{#label}} must be of type {{#type}}","object.instance":"{{#label}} must be an instance of {{:#type}}","object.length":'{{#label}} must have {{#limit}} key{if(#limit == 1, "", "s")}',"object.max":'{{#label}} must have less than or equal to {{#limit}} key{if(#limit == 1, "", "s")}',"object.min":'{{#label}} must have at least {{#limit}} key{if(#limit == 1, "", "s")}',"object.missing":"{{#label}} must contain at least one of {{#peersWithLabels}}","object.nand":"{{:#mainWithLabel}} must not exist simultaneously with {{#peersWithLabels}}","object.oxor":"{{#label}} contains a conflict between optional exclusive peers {{#peersWithLabels}}","object.pattern.match":"{{#label}} keys failed to match pattern requirements","object.refType":"{{#label}} must be a Joi reference","object.regex":"{{#label}} must be a RegExp object","object.rename.multiple":"{{#label}} cannot rename {{:#from}} because multiple renames are disabled and another key was already renamed to {{:#to}}","object.rename.override":"{{#label}} cannot rename {{:#from}} because override is disabled and target {{:#to}} exists","object.schema":"{{#label}} must be a Joi schema of {{#type}} type","object.unknown":"{{#label}} is not allowed","object.with":"{{:#mainWithLabel}} missing required peer {{:#peerWithLabel}}","object.without":"{{:#mainWithLabel}} conflict with forbidden peer {{:#peerWithLabel}}","object.xor":"{{#label}} contains a conflict between exclusive peers {{#peersWithLabels}}"}}),h.clone=function(e,t){if("object"==typeof e){if(t.nonEnumerables)return o(e,{shallow:!0});let r=Object.create(Object.getPrototypeOf(e));return Object.assign(r,e),r}let r=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.apply(this,r)};return r.prototype=o(e.prototype),Object.defineProperty(r,"name",{value:e.name,writable:!1}),Object.defineProperty(r,"length",{value:e.length,writable:!1}),Object.assign(r,e),r},h.dependency=function(e,t,r,n,o){i(null===r||"string"==typeof r,t,"key must be a strings"),o||(o=n.length>1&&"object"==typeof n[n.length-1]?n.pop():{}),u.assertOptions(o,["separator","isPresent"]),n=[].concat(n);let a=u.default(o.separator,"."),s=[];for(let e of n)i("string"==typeof e,t,"peers must be strings"),s.push(c.ref(e,{separator:a,ancestor:0,prefix:!1}));null!==r&&(r=c.ref(r,{separator:a,ancestor:0,prefix:!1}));let l=e.clone();return l.$_terms.dependencies=l.$_terms.dependencies||[],l.$_terms.dependencies.push(new h.Dependency(t,r,s,n,o)),l},h.dependencies={and(e,t,r,n,i){let o=[],a=[],s=t.peers.length,u=h.isPresent(t.options);for(let e of t.peers)!1===u(e.resolve(r,n,i,null,{shadow:!1}))?o.push(e.key):a.push(e.key);if(o.length!==s&&a.length!==s)return{code:"object.and",context:{present:a,presentWithLabels:h.keysToLabels(e,a),missing:o,missingWithLabels:h.keysToLabels(e,o)}}},nand(e,t,r,n,i){let o=[],a=h.isPresent(t.options);for(let e of t.peers)a(e.resolve(r,n,i,null,{shadow:!1}))&&o.push(e.key);if(o.length!==t.peers.length)return;let s=t.paths[0],u=t.paths.slice(1);return{code:"object.nand",context:{main:s,mainWithLabel:h.keysToLabels(e,s),peers:u,peersWithLabels:h.keysToLabels(e,u)}}},or(e,t,r,n,i){let o=h.isPresent(t.options);for(let e of t.peers)if(o(e.resolve(r,n,i,null,{shadow:!1})))return;return{code:"object.missing",context:{peers:t.paths,peersWithLabels:h.keysToLabels(e,t.paths)}}},oxor(e,t,r,n,i){let o=[],a=h.isPresent(t.options);for(let e of t.peers)a(e.resolve(r,n,i,null,{shadow:!1}))&&o.push(e.key);if(!o.length||1===o.length)return;let s={peers:t.paths,peersWithLabels:h.keysToLabels(e,t.paths)};return s.present=o,s.presentWithLabels=h.keysToLabels(e,o),{code:"object.oxor",context:s}},with(e,t,r,n,i){let o=h.isPresent(t.options);for(let a of t.peers)if(!1===o(a.resolve(r,n,i,null,{shadow:!1})))return{code:"object.with",context:{main:t.key.key,mainWithLabel:h.keysToLabels(e,t.key.key),peer:a.key,peerWithLabel:h.keysToLabels(e,a.key)}}},without(e,t,r,n,i){let o=h.isPresent(t.options);for(let a of t.peers)if(o(a.resolve(r,n,i,null,{shadow:!1})))return{code:"object.without",context:{main:t.key.key,mainWithLabel:h.keysToLabels(e,t.key.key),peer:a.key,peerWithLabel:h.keysToLabels(e,a.key)}}},xor(e,t,r,n,i){let o=[],a=h.isPresent(t.options);for(let e of t.peers)a(e.resolve(r,n,i,null,{shadow:!1}))&&o.push(e.key);if(1===o.length)return;let s={peers:t.paths,peersWithLabels:h.keysToLabels(e,t.paths)};return 0===o.length?{code:"object.missing",context:s}:(s.present=o,s.presentWithLabels=h.keysToLabels(e,o),{code:"object.xor",context:s})}},h.keysToLabels=function(e,t){return Array.isArray(t)?t.map(t=>e.$_mapLabels(t)):e.$_mapLabels(t)},h.isPresent=function(e){return"function"==typeof e.isPresent?e.isPresent:e=>void 0!==e},h.rename=function(e,t,r,n,i){let o={};for(let a of e.$_terms.renames){let s=[],u="string"!=typeof a.from;if(u)for(let e in t){if(void 0===t[e]&&a.options.ignoreUndefined||e===a.to)continue;let r=a.from.exec(e);r&&s.push({from:e,to:a.to,match:r})}else!Object.prototype.hasOwnProperty.call(t,a.from)||void 0===t[a.from]&&a.options.ignoreUndefined||s.push(a);for(let c of s){let s=c.from,l=c.to;if(l instanceof d&&(l=l.render(t,r,n,c.match)),s!==l){if(!a.options.multiple&&o[l]&&(i.push(e.$_createError("object.rename.multiple",t,{from:s,to:l,pattern:u},r,n)),n.abortEarly)||Object.prototype.hasOwnProperty.call(t,l)&&!a.options.override&&!o[l]&&(i.push(e.$_createError("object.rename.override",t,{from:s,to:l,pattern:u},r,n)),n.abortEarly))return!1;void 0===t[s]?delete t[l]:t[l]=t[s],o[l]=!0,a.options.alias||delete t[s]}}}return!0},h.unknown=function(e,t,r,n,i,o){if(e.$_terms.patterns){let a=!1,s=e.$_terms.patterns.map(e=>{if(e.matches)return a=!0,[]}),u=[t,...i.ancestors];for(let a of r){let c=t[a],l=[...i.path,a];for(let f=0;f<e.$_terms.patterns.length;++f){let d=e.$_terms.patterns[f];if(d.regex){let e=d.regex.test(a);if(i.mainstay.tracer.debug(i,"rule",`pattern.${f}`,e?"pass":"error"),!e)continue}else if(!d.schema.$_match(a,i.nest(d.schema,`pattern.${f}`),o))continue;r.delete(a);let h=i.localize(l,u,{schema:d.rule,key:a}),p=d.rule.$_validate(c,h,o);if(p.errors){if(o.abortEarly)return{value:t,errors:p.errors};n.push(...p.errors)}if(d.matches&&s[f].push(a),t[a]=p.value,!d.fallthrough)break}}if(a)for(let r=0;r<s.length;++r){let a=s[r];if(!a)continue;let c=e.$_terms.patterns[r].matches,f=i.localize(i.path,u,c),d=c.$_validate(a,f,o);if(d.errors){let r=l.details(d.errors,{override:!1});r.matches=a;let s=e.$_createError("object.pattern.match",t,r,i,o);if(o.abortEarly)return{value:t,errors:s};n.push(s)}}}
19if(r.size&&(e.$_terms.keys||e.$_terms.patterns)){if(o.stripUnknown&&!e._flags.unknown||o.skipFunctions){let e=!(!o.stripUnknown||!0!==o.stripUnknown&&!o.stripUnknown.objects);for(let n of r)e?(delete t[n],r.delete(n)):"function"==typeof t[n]&&r.delete(n)}if(!u.default(e._flags.unknown,o.allowUnknown))for(let a of r){let r=i.localize([...i.path,a],[]),s=e.$_createError("object.unknown",t[a],{child:a},r,o,{flags:!1});if(o.abortEarly)return{value:t,errors:s};n.push(s)}}},h.Dependency=class{constructor(e,t,r,n,i){this.rel=e,this.key=t,this.peers=r,this.paths=n,this.options=i}describe(){let e={rel:this.rel,peers:this.paths};return null!==this.key&&(e.key=this.key.key),"."!==this.peers[0].separator&&(e.options={...e.options,separator:this.peers[0].separator}),this.options.isPresent&&(e.options={...e.options,isPresent:this.options.isPresent}),e}},h.Keys=class extends Array{concat(e){let t=this.slice(),r=new Map;for(let e=0;e<t.length;++e)r.set(t[e].key,e);for(let n of e){let e=n.key,i=r.get(e);void 0!==i?t[i]={key:e,schema:t[i].schema.concat(n.schema)}:t.push(n)}return t}}},8785:(e,t,r)=>{"use strict";let n=r(375),i=r(8068),o=r(8160),a=r(3292),s=r(6354),u={};e.exports=i.extend({type:"link",properties:{schemaChain:!0},terms:{link:{init:null,manifest:"single",register:!1}},args:(e,t)=>e.ref(t),validate(e,t){let{schema:r,state:i,prefs:o}=t;n(r.$_terms.link,"Uninitialized link schema");let a=u.generate(r,e,i,o),s=r.$_terms.link[0].ref;return a.$_validate(e,i.nest(a,`link:${s.display}:${a.type}`),o)},generate:(e,t,r,n)=>u.generate(e,t,r,n),rules:{ref:{method(e){n(!this.$_terms.link,"Cannot reinitialize schema"),n("value"===(e=a.ref(e)).type||"local"===e.type,"Invalid reference type:",e.type),n("local"===e.type||"root"===e.ancestor||e.ancestor>0,"Link cannot reference itself");let t=this.clone();return t.$_terms.link=[{ref:e}],t}},relative:{method(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.$_setFlag("relative",e)}}},overrides:{concat(e){n(this.$_terms.link,"Uninitialized link schema"),n(o.isSchema(e),"Invalid schema object"),n("link"!==e.type,"Cannot merge type link with another link");let t=this.clone();return t.$_terms.whens||(t.$_terms.whens=[]),t.$_terms.whens.push({concat:e}),t.$_mutateRebuild()}},manifest:{build:(e,t)=>(n(t.link,"Invalid link description missing link"),e.ref(t.link))}}),u.generate=function(e,t,r,n){let i=r.mainstay.links.get(e);if(i)return i._generate(t,r,n).schema;let o=e.$_terms.link[0].ref,{perspective:a,path:s}=u.perspective(o,r);u.assert(a,"which is outside of schema boundaries",o,e,r,n);try{i=s.length?a.$_reach(s):a}catch(t){u.assert(!1,"to non-existing schema",o,e,r,n)}return u.assert("link"!==i.type,"which is another link",o,e,r,n),e._flags.relative||r.mainstay.links.set(e,i),i._generate(t,r,n).schema},u.perspective=function(e,t){if("local"===e.type){for(let{schema:r,key:n}of t.schemas){if((r._flags.id||n)===e.path[0])return{perspective:r,path:e.path.slice(1)};if(r.$_terms.shared){for(let t of r.$_terms.shared)if(t._flags.id===e.path[0])return{perspective:t,path:e.path.slice(1)}}}return{perspective:null,path:null}}return"root"===e.ancestor?{perspective:t.schemas[t.schemas.length-1].schema,path:e.path}:{perspective:t.schemas[e.ancestor]&&t.schemas[e.ancestor].schema,path:e.path}},u.assert=function(e,t,r,i,o,a){e||n(!1,`"${s.label(i._flags,o,a)}" contains link reference "${r.display}" ${t}`)}},3832:(e,t,r)=>{"use strict";let n=r(375),i=r(8068),o=r(8160),a={numberRx:/^\s*[+-]?(?:(?:\d+(?:\.\d*)?)|(?:\.\d+))(?:e([+-]?\d+))?\s*$/i,precisionRx:/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/,exponentialPartRegex:/[eE][+-]?\d+$/,leadingSignAndZerosRegex:/^[+-]?(0*)?/,dotRegex:/\./,trailingZerosRegex:/0+$/};e.exports=i.extend({type:"number",flags:{unsafe:{default:!1}},coerce:{from:"string",method(e,t){let{schema:r,error:n}=t;if(!e.match(a.numberRx))return;e=e.trim();let i={value:parseFloat(e)};if(0===i.value&&(i.value=0),!r._flags.unsafe){if(e.match(/e/i)){if(a.extractSignificantDigits(e)!==a.extractSignificantDigits(String(i.value)))return i.errors=n("number.unsafe"),i}else{let t=i.value.toString();if(t.match(/e/i))return i;if(t!==a.normalizeDecimal(e))return i.errors=n("number.unsafe"),i}}return i}},validate(e,t){let{schema:r,error:n,prefs:i}=t;if(e===1/0||e===-1/0)return{value:e,errors:n("number.infinity")};if(!o.isNumber(e))return{value:e,errors:n("number.base")};let a={value:e};if(i.convert){let e=r.$_getRule("precision");if(e){let t=Math.pow(10,e.args.limit);a.value=Math.round(a.value*t)/t}}
19return 0===a.value&&(a.value=0),!r._flags.unsafe&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&(a.errors=n("number.unsafe")),a},rules:{compare:{method:!1,validate(e,t,r,n){let{limit:i}=r,{name:a,operator:s,args:u}=n;return o.compare(e,i,s)?e:t.error("number."+a,{limit:u.limit,value:e})},args:[{name:"limit",ref:!0,assert:o.isNumber,message:"must be a number"}]},greater:{method(e){return this.$_addRule({name:"greater",method:"compare",args:{limit:e},operator:">"})}},integer:{method(){return this.$_addRule("integer")},validate:(e,t)=>Math.trunc(e)-e==0?e:t.error("number.integer")},less:{method(e){return this.$_addRule({name:"less",method:"compare",args:{limit:e},operator:"<"})}},max:{method(e){return this.$_addRule({name:"max",method:"compare",args:{limit:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"compare",args:{limit:e},operator:">="})}},multiple:{method(e){return this.$_addRule({name:"multiple",args:{base:e}})},validate(e,t,r,n){let{base:i}=r;return e*(1/i)%1==0?e:t.error("number.multiple",{multiple:n.args.base,value:e})},args:[{name:"base",ref:!0,assert:e=>"number"==typeof e&&isFinite(e)&&e>0,message:"must be a positive number"}],multi:!0},negative:{method(){return this.sign("negative")}},port:{method(){return this.$_addRule("port")},validate:(e,t)=>Number.isSafeInteger(e)&&e>=0&&e<=65535?e:t.error("number.port")},positive:{method(){return this.sign("positive")}},precision:{method(e){return n(Number.isSafeInteger(e),"limit must be an integer"),this.$_addRule({name:"precision",args:{limit:e}})},validate(e,t,r){let{limit:n}=r,i=e.toString().match(a.precisionRx);return Math.max((i[1]?i[1].length:0)-(i[2]?parseInt(i[2],10):0),0)<=n?e:t.error("number.precision",{limit:n,value:e})},convert:!0},sign:{method(e){return n(["negative","positive"].includes(e),"Invalid sign",e),this.$_addRule({name:"sign",args:{sign:e}})},validate(e,t,r){let{sign:n}=r;return"negative"===n&&e<0||"positive"===n&&e>0?e:t.error(`number.${n}`)}},unsafe:{method(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return n("boolean"==typeof e,"enabled must be a boolean"),this.$_setFlag("unsafe",e)}}},cast:{string:{from:e=>"number"==typeof e,to:(e,t)=>e.toString()}},messages:{"number.base":"{{#label}} must be a number","number.greater":"{{#label}} must be greater than {{#limit}}","number.infinity":"{{#label}} cannot be infinity","number.integer":"{{#label}} must be an integer","number.less":"{{#label}} must be less than {{#limit}}","number.max":"{{#label}} must be less than or equal to {{#limit}}","number.min":"{{#label}} must be greater than or equal to {{#limit}}","number.multiple":"{{#label}} must be a multiple of {{#multiple}}","number.negative":"{{#label}} must be a negative number","number.port":"{{#label}} must be a valid port","number.positive":"{{#label}} must be a positive number","number.precision":"{{#label}} must have no more than {{#limit}} decimal places","number.unsafe":"{{#label}} must be a safe number"}}),a.extractSignificantDigits=function(e){return e.replace(a.exponentialPartRegex,"").replace(a.dotRegex,"").replace(a.trailingZerosRegex,"").replace(a.leadingSignAndZerosRegex,"")},a.normalizeDecimal=function(e){return(e=e.replace(/^\+/,"").replace(/\.0*$/,"").replace(/^(-?)\.([^\.]*)$/,"$10.$2").replace(/^(-?)0+([0-9])/,"$1$2")).includes(".")&&e.endsWith("0")&&(e=e.replace(/0+$/,"")),"-0"===e?"0":e}},8966:(e,t,r)=>{"use strict";let n=r(7824);e.exports=n.extend({type:"object",cast:{map:{from:e=>e&&"object"==typeof e,to:(e,t)=>new Map(Object.entries(e))}}})},7417:(e,t,r)=>{"use strict";let n=r(375),i=r(5380),o=r(1745),a=r(9959),s=r(6064),u=r(9926),c=r(5752),l=r(8068),f=r(8160),d={tlds:u instanceof Set&&{tlds:{allow:u,deny:null}},base64Regex:{true:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}==|[\w\-]{3}=)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/},false:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}(==)?|[\w\-]{3}=?)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}(==)?|[A-Za-z0-9+\/]{3}=?)?$/}},dataUriRegex:/^data:[\w+.-]+\/[\w+.-]+;((charset=[\w-]+|base64),)?(.*)$/,hexRegex:/^[a-f0-9]+$/i,ipRegex:a.regex({cidr:"forbidden"}).regex,isoDurationRegex:/^P(?!$)(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?$/,guidBrackets:{"{":"}","[":"]","(":")","":""},guidVersions:{uuidv1:"1",uuidv2:"2",uuidv3:"3",uuidv4:"4",uuidv5:"5"},guidSeparators:new Set([void 0,!0,!1,"-",":"]),normalizationForms:["NFC","NFD","NFKC","NFKD"]};e.exports=l.extend({type:"string",flags:{insensitive:{default:!1},truncate:{default:!1}},terms:{replacements:{init:null}},coerce:{from:"string",method(e,t){let{schema:r,state:n,prefs:i}=t,o=r.$_getRule("normalize");o&&(e=e.normalize(o.args.form));let a=r.$_getRule("case");a&&(e="upper"===a.args.direction?e.toLocaleUpperCase():e.toLocaleLowerCase());let s=r.$_getRule("trim");if(s&&s.args.enabled&&(e=e.trim()),r.$_terms.replacements)for(let t of r.$_terms.replacements)e=e.replace(t.pattern,t.replacement);let u=r.$_getRule("hex");
19if(u&&u.args.options.byteAligned&&e.length%2!=0&&(e=`0${e}`),r.$_getRule("isoDate")){let t=d.isoDate(e);t&&(e=t)}if(r._flags.truncate){let t=r.$_getRule("max");if(t){let o=t.args.limit;if(f.isResolvable(o)&&(o=o.resolve(e,n,i),!f.limit(o)))return{value:e,errors:r.$_createError("any.ref",o,{ref:t.args.limit,arg:"limit",reason:"must be a positive integer"},n,i)};e=e.slice(0,o)}}return{value:e}}},validate(e,t){let{schema:r,error:n}=t;if("string"!=typeof e)return{value:e,errors:n("string.base")};if(""===e){let t=r.$_getRule("min");if(t&&0===t.args.limit)return;return{value:e,errors:n("string.empty")}}},rules:{alphanum:{method(){return this.$_addRule("alphanum")},validate:(e,t)=>/^[a-zA-Z0-9]+$/.test(e)?e:t.error("string.alphanum")},base64:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return f.assertOptions(e,["paddingRequired","urlSafe"]),n("boolean"==typeof(e={urlSafe:!1,paddingRequired:!0,...e}).paddingRequired,"paddingRequired must be boolean"),n("boolean"==typeof e.urlSafe,"urlSafe must be boolean"),this.$_addRule({name:"base64",args:{options:e}})},validate(e,t,r){let{options:n}=r;return d.base64Regex[n.paddingRequired][n.urlSafe].test(e)?e:t.error("string.base64")}},case:{method(e){return n(["lower","upper"].includes(e),"Invalid case:",e),this.$_addRule({name:"case",args:{direction:e}})},validate(e,t,r){let{direction:n}=r;return"lower"===n&&e===e.toLocaleLowerCase()||"upper"===n&&e===e.toLocaleUpperCase()?e:t.error(`string.${n}case`)},convert:!0},creditCard:{method(){return this.$_addRule("creditCard")},validate(e,t){let r=e.length,n=0,i=1;for(;r--;){let t=e.charAt(r)*i;n+=t-9*(t>9),i^=3}return n>0&&n%10==0?e:t.error("string.creditCard")}},dataUri:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return f.assertOptions(e,["paddingRequired"]),n("boolean"==typeof(e={paddingRequired:!0,...e}).paddingRequired,"paddingRequired must be boolean"),this.$_addRule({name:"dataUri",args:{options:e}})},validate(e,t,r){let{options:n}=r,i=e.match(d.dataUriRegex);return i&&(!i[2]||"base64"!==i[2]||d.base64Regex[n.paddingRequired].false.test(i[3]))?e:t.error("string.dataUri")}},domain:{method(e){e&&f.assertOptions(e,["allowFullyQualified","allowUnicode","maxDomainSegments","minDomainSegments","tlds"]);let t=d.addressOptions(e);return this.$_addRule({name:"domain",args:{options:e},address:t})},validate(e,t,r,n){let{address:o}=n;return i.isValid(e,o)?e:t.error("string.domain")}},email:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};f.assertOptions(e,["allowFullyQualified","allowUnicode","ignoreLength","maxDomainSegments","minDomainSegments","multiple","separator","tlds"]),n(void 0===e.multiple||"boolean"==typeof e.multiple,"multiple option must be an boolean");let t=d.addressOptions(e),r=RegExp(`\\s*[${e.separator?s(e.separator):","}]\\s*`);return this.$_addRule({name:"email",args:{options:e},regex:r,address:t})},validate(e,t,r,n){let{options:i}=r,{regex:a,address:s}=n,u=i.multiple?e.split(a):[e],c=[];for(let e of u)o.isValid(e,s)||c.push(e);return c.length?t.error("string.email",{value:e,invalids:c}):e}},guid:{alias:"uuid",method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};f.assertOptions(e,["version","separator"]);let t="";if(e.version){let r=[].concat(e.version);n(r.length>=1,"version must have at least 1 valid version specified");let i=new Set;for(let e=0;e<r.length;++e){let o=r[e];n("string"==typeof o,"version at position "+e+" must be a string");let a=d.guidVersions[o.toLowerCase()];n(a,"version at position "+e+" must be one of "+Object.keys(d.guidVersions).join(", ")),n(!i.has(a),"version at position "+e+" must not be a duplicate"),t+=a,i.add(a)}}n(d.guidSeparators.has(e.separator),'separator must be one of true, false, "-", or ":"');let r=void 0===e.separator?"[:-]?":!0===e.separator?"[:-]":!1===e.separator?"[]?":`\\${e.separator}`,i=RegExp(`^([\\[{\\(]?)[0-9A-F]{8}(${r})[0-9A-F]{4}\\2?[${t||"0-9A-F"}][0-9A-F]{3}\\2?[${t?"89AB":"0-9A-F"}][0-9A-F]{3}\\2?[0-9A-F]{12}([\\]}\\)]?)$`,"i");return this.$_addRule({name:"guid",args:{options:e},regex:i})},validate(e,t,r,n){let{regex:i}=n,o=i.exec(e);return o?d.guidBrackets[o[1]]!==o[o.length-1]?t.error("string.guid"):e:t.error("string.guid")}},hex:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return f.assertOptions(e,["byteAligned"]),n("boolean"==typeof(e={byteAligned:!1,...e}).byteAligned,"byteAligned must be boolean"),this.$_addRule({name:"hex",args:{options:e}})},validate(e,t,r){let{options:n}=r;return d.hexRegex.test(e)?n.byteAligned&&e.length%2!=0?t.error("string.hexAlign"):e:t.error("string.hex")}},hostname:{method(){return this.$_addRule("hostname")},validate:(e,t)=>
19i.isValid(e,{minDomainSegments:1})||d.ipRegex.test(e)?e:t.error("string.hostname")},insensitive:{method(){return this.$_setFlag("insensitive",!0)}},ip:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};f.assertOptions(e,["cidr","version"]);let{cidr:t,versions:r,regex:n}=a.regex(e),i=e.version?r:void 0;return this.$_addRule({name:"ip",args:{options:{cidr:t,version:i}},regex:n})},validate(e,t,r,n){let{options:i}=r,{regex:o}=n;return o.test(e)?e:i.version?t.error("string.ipVersion",{value:e,cidr:i.cidr,version:i.version}):t.error("string.ip",{value:e,cidr:i.cidr})}},isoDate:{method(){return this.$_addRule("isoDate")},validate(e,t){let{error:r}=t;return d.isoDate(e)?e:r("string.isoDate")}},isoDuration:{method(){return this.$_addRule("isoDuration")},validate:(e,t)=>d.isoDurationRegex.test(e)?e:t.error("string.isoDuration")},length:{method(e,t){return d.length(this,"length",e,"=",t)},validate(e,t,r,n){let{limit:i,encoding:o}=r,{name:a,operator:s,args:u}=n,c=!o&&e.length;return f.compare(c,i,s)?e:t.error("string."+a,{limit:u.limit,value:e,encoding:o})},args:[{name:"limit",ref:!0,assert:f.limit,message:"must be a positive integer"},"encoding"]},lowercase:{method(){return this.case("lower")}},max:{method(e,t){return d.length(this,"max",e,"<=",t)},args:["limit","encoding"]},min:{method(e,t){return d.length(this,"min",e,">=",t)},args:["limit","encoding"]},normalize:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"NFC";return n(d.normalizationForms.includes(e),"normalization form must be one of "+d.normalizationForms.join(", ")),this.$_addRule({name:"normalize",args:{form:e}})},validate(e,t,r){let{error:n}=t,{form:i}=r;return e===e.normalize(i)?e:n("string.normalize",{value:e,form:i})},convert:!0},pattern:{alias:"regex",method(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(e instanceof RegExp,"regex must be a RegExp"),n(!e.flags.includes("g")&&!e.flags.includes("y"),"regex should not use global or sticky mode"),"string"==typeof t&&(t={name:t}),f.assertOptions(t,["invert","name"]);let r=["string.pattern",t.invert?".invert":"",t.name?".name":".base"].join("");return this.$_addRule({name:"pattern",args:{regex:e,options:t},errorCode:r})},validate(e,t,r,n){let{regex:i,options:o}=r,{errorCode:a}=n;return i.test(e)^o.invert?e:t.error(a,{name:o.name,regex:i,value:e})},args:["regex","options"],multi:!0},replace:{method(e,t){"string"==typeof e&&(e=RegExp(s(e),"g")),n(e instanceof RegExp,"pattern must be a RegExp"),n("string"==typeof t,"replacement must be a String");let r=this.clone();return r.$_terms.replacements||(r.$_terms.replacements=[]),r.$_terms.replacements.push({pattern:e,replacement:t}),r}},token:{method(){return this.$_addRule("token")},validate:(e,t)=>/^\w+$/.test(e)?e:t.error("string.token")},trim:{method(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return n("boolean"==typeof e,"enabled must be a boolean"),this.$_addRule({name:"trim",args:{enabled:e}})},validate(e,t,r){let{enabled:n}=r;return n&&e!==e.trim()?t.error("string.trim"):e},convert:!0},truncate:{method(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return n("boolean"==typeof e,"enabled must be a boolean"),this.$_setFlag("truncate",e)}},uppercase:{method(){return this.case("upper")}},uri:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};f.assertOptions(e,["allowRelative","allowQuerySquareBrackets","domain","relativeOnly","scheme"]),e.domain&&f.assertOptions(e.domain,["allowFullyQualified","allowUnicode","maxDomainSegments","minDomainSegments","tlds"]);let{regex:t,scheme:r}=c.regex(e),n=e.domain?d.addressOptions(e.domain):null;return this.$_addRule({name:"uri",args:{options:e},regex:t,domain:n,scheme:r})},validate(e,t,r,n){let{options:o}=r,{regex:a,domain:s,scheme:u}=n;if(["http:/","https:/"].includes(e))return t.error("string.uri");let c=a.exec(e);if(c){let r=c[1]||c[2];return!s||o.allowRelative&&!r||i.isValid(r,s)?e:t.error("string.domain",{value:r})}return o.relativeOnly?t.error("string.uriRelativeOnly"):o.scheme?t.error("string.uriCustomScheme",{scheme:u,value:e}):t.error("string.uri")}}},manifest:{build(e,t){if(t.replacements)for(let{pattern:r,replacement:n}of t.replacements)e=e.replace(r,n);return e}},messages:{"string.alphanum":"{{#label}} must only contain alpha-numeric characters","string.base":"{{#label}} must be a string","string.base64":"{{#label}}
19 must be a valid base64 string","string.creditCard":"{{#label}} must be a credit card","string.dataUri":"{{#label}} must be a valid dataUri string","string.domain":"{{#label}} must contain a valid domain name","string.email":"{{#label}} must be a valid email","string.empty":"{{#label}} is not allowed to be empty","string.guid":"{{#label}} must be a valid GUID","string.hex":"{{#label}} must only contain hexadecimal characters","string.hexAlign":"{{#label}} hex decoded representation must be byte aligned","string.hostname":"{{#label}} must be a valid hostname","string.ip":"{{#label}} must be a valid ip address with a {{#cidr}} CIDR","string.ipVersion":"{{#label}} must be a valid ip address of one of the following versions {{#version}} with a {{#cidr}} CIDR","string.isoDate":"{{#label}} must be in iso format","string.isoDuration":"{{#label}} must be a valid ISO 8601 duration","string.length":"{{#label}} length must be {{#limit}} characters long","string.lowercase":"{{#label}} must only contain lowercase characters","string.max":"{{#label}} length must be less than or equal to {{#limit}} characters long","string.min":"{{#label}} length must be at least {{#limit}} characters long","string.normalize":"{{#label}} must be unicode normalized in the {{#form}} form","string.token":"{{#label}} must only contain alpha-numeric and underscore characters","string.pattern.base":"{{#label}} with value {:[.]} fails to match the required pattern: {{#regex}}","string.pattern.name":"{{#label}} with value {:[.]} fails to match the {{#name}} pattern","string.pattern.invert.base":"{{#label}} with value {:[.]} matches the inverted pattern: {{#regex}}","string.pattern.invert.name":"{{#label}} with value {:[.]} matches the inverted {{#name}} pattern","string.trim":"{{#label}} must not have leading or trailing whitespace","string.uri":"{{#label}} must be a valid uri","string.uriCustomScheme":"{{#label}} must be a valid uri with a scheme matching the {{#scheme}} pattern","string.uriRelativeOnly":"{{#label}} must be a valid relative uri","string.uppercase":"{{#label}} must only contain uppercase characters"}}),d.addressOptions=function(e){if(!e||(n(void 0===e.minDomainSegments||Number.isSafeInteger(e.minDomainSegments)&&e.minDomainSegments>0,"minDomainSegments must be a positive integer"),n(void 0===e.maxDomainSegments||Number.isSafeInteger(e.maxDomainSegments)&&e.maxDomainSegments>0,"maxDomainSegments must be a positive integer"),!1===e.tlds))return e;if(!0===e.tlds||void 0===e.tlds)return n(d.tlds,"Built-in TLD list disabled"),Object.assign({},e,d.tlds);n("object"==typeof e.tlds,"tlds must be true, false, or an object");let t=e.tlds.deny;if(t)return Array.isArray(t)&&(e=Object.assign({},e,{tlds:{deny:new Set(t)}})),n(e.tlds.deny instanceof Set,"tlds.deny must be an array, Set, or boolean"),n(!e.tlds.allow,"Cannot specify both tlds.allow and tlds.deny lists"),d.validateTlds(e.tlds.deny,"tlds.deny"),e;let r=e.tlds.allow;return r?!0===r?(n(d.tlds,"Built-in TLD list disabled"),Object.assign({},e,d.tlds)):(Array.isArray(r)&&(e=Object.assign({},e,{tlds:{allow:new Set(r)}})),n(e.tlds.allow instanceof Set,"tlds.allow must be an array, Set, or boolean"),d.validateTlds(e.tlds.allow,"tlds.allow"),e):e},d.validateTlds=function(e,t){for(let r of e)n(i.isValid(r,{minDomainSegments:1,maxDomainSegments:1}),`${t} must contain valid top level domain names`)},d.isoDate=function(e){if(!f.isIsoDate(e))return null;/.*T.*[+-]\d\d$/.test(e)&&(e+="00");let t=new Date(e);return isNaN(t.getTime())?null:t.toISOString()},d.length=function(e,t,r,i,o){return n(!o,"Invalid encoding:",o),e.$_addRule({name:t,method:"length",args:{limit:r,encoding:o},operator:i})}},8826:(e,t,r)=>{"use strict";let n=r(375),i=r(8068),o={};o.Map=class extends Map{slice(){return new o.Map(this)}},e.exports=i.extend({type:"symbol",terms:{map:{init:new o.Map}},coerce:{method(e,t){let{schema:r,error:n}=t,i=r.$_terms.map.get(e);return i&&(e=i),r._flags.only&&"symbol"!=typeof e?{value:e,errors:n("symbol.map",{map:r.$_terms.map})}:{value:e}}},validate(e,t){let{error:r}=t;if("symbol"!=typeof e)return{value:e,errors:r("symbol.base")}},rules:{map:{method(e){e&&!e[Symbol.iterator]&&"object"==typeof e&&(e=Object.entries(e)),n(e&&e[Symbol.iterator],"Iterable must be an iterable or object");let t=this.clone(),r=[];for(let i of e){n(i&&i[Symbol.iterator],"Entry must be an iterable");let[e,o]=i;n("object"!=typeof e&&"function"!=typeof e&&"symbol"!=typeof e,"Key must not be of type object, function, or Symbol"),n("symbol"==typeof o,"Value must be a Symbol"),t.$_terms.map.set(e,o),r.push(o)}return t.valid(...r)}}},manifest:{build:(e,t)=>(t.map&&(e=e.map(t.map)),e)},messages:{"symbol.base":"{{#label}} must be a symbol","symbol.map":"{{#label}} must be one of {{#map}}"}})},8863:(e,t,r)=>{"use strict";let n=r(375),i=r(8571),o=r(738),a=r(9621),s=r(8160),u=r(6354),c=r(493),l={result:Symbol("result")};t.entry=function(e,t,r){let i=s.defaults;r&&(n(void 0===r.warnings,"Cannot override warnings preference in synchronous validation"),n(void 0===r.artifacts,"Cannot override artifacts preference in synchronous validation"),i=s.preferences(s.defaults,r));let o=l.entry(e,t,i);n(!o.mainstay.externals.length,"Schema with external rules must use validateAsync()");let a={value:o.value};return o.error&&(a.error=o.error),o.mainstay.warnings.length&&(a.warning=u.details(o.mainstay.warnings)
19),o.mainstay.debug&&(a.debug=o.mainstay.debug),o.mainstay.artifacts&&(a.artifacts=o.mainstay.artifacts),a},t.entryAsync=async function(e,t,r){let n=s.defaults;r&&(n=s.preferences(s.defaults,r));let i=l.entry(e,t,n),o=i.mainstay;if(i.error)throw o.debug&&(i.error.debug=o.debug),i.error;if(o.externals.length){let e=i.value;for(let{method:t,path:i,label:s}of o.externals){let o,u,c=e;i.length&&(o=i[i.length-1],c=(u=a(e,i.slice(0,-1)))[o]);try{let n=await t(c,{prefs:r});if(void 0===n||n===c)continue;u?u[o]=n:e=n}catch(e){throw n.errors.label&&(e.message+=` (${s})`),e}}i.value=e}if(!n.warnings&&!n.debug&&!n.artifacts)return i.value;let c={value:i.value};return o.warnings.length&&(c.warning=u.details(o.warnings)),o.debug&&(c.debug=o.debug),o.artifacts&&(c.artifacts=o.artifacts),c},l.entry=function(e,r,n){let{tracer:i,cleanup:o}=l.tracer(r,n),a={externals:[],warnings:[],tracer:i,debug:n.debug?[]:null,links:r._ids._schemaChain?new Map:null},s=r._ids._schemaChain?[{schema:r}]:null,f=new c([],[],{mainstay:a,schemas:s}),d=t.validate(e,r,f,n);o&&r.$_root.untrace();let h=u.process(d.errors,e,n);return{value:d.value,error:h,mainstay:a}},l.tracer=function(e,t){return e.$_root._tracer?{tracer:e.$_root._tracer._register(e)}:t.debug?(n(e.$_root.trace,"Debug mode not supported"),{tracer:e.$_root.trace()._register(e),cleanup:!0}):{tracer:l.ignore}},t.validate=function(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(t.$_terms.whens&&(t=t._generate(e,r,n).schema),t._preferences&&(n=l.prefs(t,n)),t._cache&&n.cache){let n=t._cache.get(e);if(r.mainstay.tracer.debug(r,"validate","cached",!!n),n)return n}let o=(i,o,a)=>t.$_createError(i,e,o,a||r,n),a={original:e,prefs:n,schema:t,state:r,error:o,errorsArray:l.errorsArray,warn:(e,t,n)=>r.mainstay.warnings.push(o(e,t,n)),message:(i,o)=>t.$_createError("custom",e,o,r,n,{messages:i})};r.mainstay.tracer.entry(t,r);let u=t._definition;if(u.prepare&&void 0!==e&&n.convert){let t=u.prepare(e,a);if(t){if(r.mainstay.tracer.value(r,"prepare",e,t.value),t.errors)return l.finalize(t.value,[].concat(t.errors),a);e=t.value}}if(u.coerce&&void 0!==e&&n.convert&&(!u.coerce.from||u.coerce.from.includes(typeof e))){let t=u.coerce.method(e,a);if(t){if(r.mainstay.tracer.value(r,"coerced",e,t.value),t.errors)return l.finalize(t.value,[].concat(t.errors),a);e=t.value}}let c=t._flags.empty;c&&c.$_match(l.trim(e,t),r.nest(c),s.defaults)&&(r.mainstay.tracer.value(r,"empty",e,void 0),e=void 0);let f=i.presence||t._flags.presence||(t._flags._endedSwitch?null:n.presence);if(void 0===e){if("forbidden"===f)return l.finalize(e,null,a);if("required"===f)return l.finalize(e,[t.$_createError("any.required",e,null,r,n)],a);if("optional"===f){if(t._flags.default!==s.symbols.deepDefault)return l.finalize(e,null,a);r.mainstay.tracer.value(r,"default",e,{}),e={}}}else if("forbidden"===f)return l.finalize(e,[t.$_createError("any.unknown",e,null,r,n)],a);let d=[];if(t._valids){let i=t._valids.get(e,r,n,t._flags.insensitive);if(i)return n.convert&&(r.mainstay.tracer.value(r,"valids",e,i.value),e=i.value),r.mainstay.tracer.filter(t,r,"valid",i),l.finalize(e,null,a);if(t._flags.only){let i=t.$_createError("any.only",e,{valids:t._valids.values({display:!0})},r,n);if(n.abortEarly)return l.finalize(e,[i],a);d.push(i)}}if(t._invalids){let i=t._invalids.get(e,r,n,t._flags.insensitive);if(i){r.mainstay.tracer.filter(t,r,"invalid",i);let o=t.$_createError("any.invalid",e,{invalids:t._invalids.values({display:!0})},r,n);if(n.abortEarly)return l.finalize(e,[o],a);d.push(o)}}if(u.validate){let t=u.validate(e,a);if(t&&(r.mainstay.tracer.value(r,"base",e,t.value),e=t.value,t.errors)){if(!Array.isArray(t.errors))return d.push(t.errors),l.finalize(e,d,a);if(t.errors.length)return d.push(...t.errors),l.finalize(e,d,a)}}return t._rules.length?l.rules(e,d,a):l.finalize(e,d,a)},l.rules=function(e,t,r){let{schema:n,state:i,prefs:o}=r;for(let a of n._rules){let u=n._definition.rules[a.method];if(u.convert&&o.convert){i.mainstay.tracer.log(n,i,"rule",a.name,"full");continue}let c,f=a.args;if(a._resolve.length)for(let t of(f=Object.assign({},f),a._resolve)){let r=u.argsByName.get(t),a=f[t].resolve(e,i,o),l=r.normalize?r.normalize(a):a,d=s.validateArg(l,null,r);if(d){c=n.$_createError("any.ref",a,{arg:t,ref:f[t],reason:d},i,o);break}f[t]=l}c=c||u.validate(e,r,f,a);let d=l.rule(c,a);if(d.errors){if(i.mainstay.tracer.log(n,i,"rule",a.name,"error"),a.warn){i.mainstay.warnings.push(...d.errors);continue}if(o.abortEarly)return l.finalize(e,d.errors,r);t.push(...d.errors)}else i.mainstay.tracer.log(n,i,"rule",a.name,"pass"),i.mainstay.tracer.value(i,"rule",e,d.value,a.name),e=d.value}return l.finalize(e,t,r)},l.rule=function(e,t){return e instanceof u.Report?(l.error(e,t),{errors:[e],value:null}
19):Array.isArray(e)&&e[s.symbols.errors]?(e.forEach(e=>l.error(e,t)),{errors:e,value:null}):{errors:null,value:e}},l.error=function(e,t){return t.message&&e._setTemplate(t.message),e},l.finalize=function(e,t,r){t=t||[];let{schema:i,state:o,prefs:a}=r;if(t.length){let n=l.default("failover",void 0,t,r);void 0!==n&&(o.mainstay.tracer.value(o,"failover",e,n),e=n,t=[])}if(t.length&&i._flags.error){if("function"==typeof i._flags.error)for(let e of(Array.isArray(t=i._flags.error(t))||(t=[t]),t))n(e instanceof Error||e instanceof u.Report,"error() must return an Error object");else t=[i._flags.error]}if(void 0===e){let n=l.default("default",e,t,r);o.mainstay.tracer.value(o,"default",e,n),e=n}if(i._flags.cast&&void 0!==e){let t=i._definition.cast[i._flags.cast];if(t.from(e)){let n=t.to(e,r);o.mainstay.tracer.value(o,"cast",e,n,i._flags.cast),e=n}}if(i.$_terms.externals&&a.externals&&!1!==a._externals)for(let{method:e}of i.$_terms.externals)o.mainstay.externals.push({method:e,path:o.path,label:u.label(i._flags,o,a)});let s={value:e,errors:t.length?t:null};return i._flags.result&&(s.value="strip"===i._flags.result?void 0:r.original,o.mainstay.tracer.value(o,i._flags.result,e,s.value),o.shadow(e,i._flags.result)),i._cache&&!1!==a.cache&&!i._refs.length&&i._cache.set(r.original,s),void 0===e||s.errors||void 0===i._flags.artifact||(o.mainstay.artifacts=o.mainstay.artifacts||new Map,o.mainstay.artifacts.has(i._flags.artifact)||o.mainstay.artifacts.set(i._flags.artifact,[]),o.mainstay.artifacts.get(i._flags.artifact).push(o.path)),s},l.prefs=function(e,t){let r=t===s.defaults;return r&&e._preferences[s.symbols.prefs]?e._preferences[s.symbols.prefs]:(t=s.preferences(t,e._preferences),r&&(e._preferences[s.symbols.prefs]=t),t)},l.default=function(e,t,r,n){let{schema:o,state:a,prefs:u}=n,c=o._flags[e];if(u.noDefaults||void 0===c)return t;if(a.mainstay.tracer.log(o,a,"rule",e,"full"),!c)return c;if("function"==typeof c){let t=c.length?[i(a.ancestors[0]),n]:[];try{return c(...t)}catch(t){return void r.push(o.$_createError(`any.${e}`,null,{error:t},a,u))}}return"object"!=typeof c?c:c[s.symbols.literal]?c.literal:s.isResolvable(c)?c.resolve(t,a,u):i(c)},l.trim=function(e,t){if("string"!=typeof e)return e;let r=t.$_getRule("trim");return r&&r.args.enabled?e.trim():e},l.ignore={active:!1,debug:o,entry:o,filter:o,log:o,resolve:o,value:o},l.errorsArray=function(){let e=[];return e[s.symbols.errors]=!0,e}},2036:(e,t,r)=>{"use strict";let n=r(375),i=r(9474),o=r(8160),a={};e.exports=a.Values=class{constructor(e,t){this._values=new Set(e),this._refs=new Set(t),this._lowercase=a.lowercases(e),this._override=!1}get length(){return this._values.size+this._refs.size}add(e,t){o.isResolvable(e)?this._refs.has(e)||(this._refs.add(e),t&&t.register(e)):this.has(e,null,null,!1)||(this._values.add(e),"string"==typeof e&&this._lowercase.set(e.toLowerCase(),e))}static merge(e,t,r){if(e=e||new a.Values,t){if(t._override)return t.clone();for(let r of[...t._values,...t._refs])e.add(r)}if(r)for(let t of[...r._values,...r._refs])e.remove(t);return e.length?e:null}remove(e){o.isResolvable(e)?this._refs.delete(e):(this._values.delete(e),"string"==typeof e&&this._lowercase.delete(e.toLowerCase()))}has(e,t,r,n){return!!this.get(e,t,r,n)}get(e,t,r,n){if(!this.length)return!1;if(this._values.has(e))return{value:e};if("string"==typeof e&&e&&n){let t=this._lowercase.get(e.toLowerCase());if(t)return{value:t}}if(!this._refs.size&&"object"!=typeof e)return!1;if("object"==typeof e){for(let t of this._values)if(i(t,e))return{value:t}}if(t)for(let o of this._refs){let a=o.resolve(e,t,r,null,{in:!0});if(void 0===a)continue;let s=o.in&&"object"==typeof a?Array.isArray(a)?a:Object.keys(a):[a];for(let t of s)if(typeof t==typeof e){if(n&&e&&"string"==typeof e){if(t.toLowerCase()===e.toLowerCase())return{value:t,ref:o}}else if(i(t,e))return{value:t,ref:o}}}return!1}override(){this._override=!0}values(e){if(e&&e.display){let e=[];for(let t of[...this._values,...this._refs])void 0!==t&&e.push(t);return e}return Array.from([...this._values,...this._refs])}clone(){let e=new a.Values(this._values,this._refs);return e._override=this._override,e}concat(e){n(!e._override,"Cannot concat override set of values");let t=new a.Values([...this._values,...e._values],[...this._refs,...e._refs]);return t._override=this._override,t}describe(){let e=[];for(let t of(this._override&&e.push({override:!0}
19),this._values.values()))e.push(t&&"object"==typeof t?{value:t}:t);for(let t of this._refs.values())e.push(t.describe());return e}},a.Values.prototype[o.symbols.values]=!0,a.Values.prototype.slice=a.Values.prototype.clone,a.lowercases=function(e){let t=new Map;if(e)for(let r of e)"string"==typeof r&&t.set(r.toLowerCase(),r);return t}},978:(e,t,r)=>{"use strict";let n=r(375),i=r(8571),o=r(1687),a=r(9621),s={};e.exports=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(n(e&&"object"==typeof e,"Invalid defaults value: must be an object"),n(!t||!0===t||"object"==typeof t,"Invalid source value: must be true, falsy or an object"),n("object"==typeof r,"Invalid options: must be an object"),!t)return null;if(r.shallow)return s.applyToDefaultsWithShallow(e,t,r);let a=i(e);if(!0===t)return a;let u=void 0!==r.nullOverride&&r.nullOverride;return o(a,t,{nullOverride:u,mergeArrays:!1})},s.applyToDefaultsWithShallow=function(e,t,r){let u=r.shallow;n(Array.isArray(u),"Invalid keys");let c=new Map,l=!0===t?null:new Set;for(let r of u){r=Array.isArray(r)?r:r.split(".");let n=a(e,r);n&&"object"==typeof n?c.set(n,l&&a(t,r)||n):l&&l.add(r)}let f=i(e,{},c);if(!l)return f;for(let e of l)s.reachCopy(f,t,e);let d=void 0!==r.nullOverride&&r.nullOverride;return o(f,t,{nullOverride:d,mergeArrays:!1})},s.reachCopy=function(e,t,r){for(let e of r){if(!(e in t))return;let r=t[e];if("object"!=typeof r||null===r)return;t=r}let n=t,i=e;for(let e=0;e<r.length-1;++e){let t=r[e];"object"!=typeof i[t]&&(i[t]={}),i=i[t]}i[r[r.length-1]]=n}},375:(e,t,r)=>{"use strict";let n=r(7916);e.exports=function(e){if(!e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];if(1===r.length&&r[0]instanceof Error)throw r[0];throw new n(r)}}},8571:(e,t,r)=>{"use strict";let n=r(9621),i=r(4277),o=r(7043),a={needsProtoHack:new Set([i.set,i.map,i.weakSet,i.weakMap])};e.exports=a.clone=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("object"!=typeof e||null===e)return e;let n=a.clone,s=r;if(t.shallow){if(!0!==t.shallow)return a.cloneWithShallow(e,t);n=e=>e}else if(s){let t=s.get(e);if(t)return t}else s=new Map;let u=i.getInternalProto(e);if(u===i.buffer)return!1;if(u===i.date)return new Date(e.getTime());if(u===i.regex)return RegExp(e);let c=a.base(e,u,t);if(c===e)return e;if(s&&s.set(e,c),u===i.set)for(let r of e)c.add(n(r,t,s));else if(u===i.map)for(let[r,i]of e)c.set(r,n(i,t,s));let l=o.keys(e,t);for(let r of l){if("__proto__"===r)continue;if(u===i.array&&"length"===r){c.length=e.length;continue}let o=Object.getOwnPropertyDescriptor(e,r);o?o.get||o.set?Object.defineProperty(c,r,o):o.enumerable?c[r]=n(e[r],t,s):Object.defineProperty(c,r,{enumerable:!1,writable:!0,configurable:!0,value:n(e[r],t,s)}):Object.defineProperty(c,r,{enumerable:!0,writable:!0,configurable:!0,value:n(e[r],t,s)})}return c},a.cloneWithShallow=function(e,t){let r=t.shallow;(t=Object.assign({},t)).shallow=!1;let i=new Map;for(let t of r){let r=n(e,t);"object"!=typeof r&&"function"!=typeof r||i.set(r,r)}return a.clone(e,t,i)},a.base=function(e,t,r){if(!1===r.prototype)return a.needsProtoHack.has(t)?new t.constructor:t===i.array?[]:{};let n=Object.getPrototypeOf(e);if(n&&n.isImmutable)return e;if(t===i.array){let e=[];return n!==t&&Object.setPrototypeOf(e,n),e}if(a.needsProtoHack.has(t)){let e=new n.constructor;return n!==t&&Object.setPrototypeOf(e,n),e}return Object.create(n)}},9474:(e,t,r)=>{"use strict";let n=r(4277),i={mismatched:null};e.exports=function(e,t,r){return r=Object.assign({prototype:!0},r),!!i.isDeepEqual(e,t,r,[])},i.isDeepEqual=function(e,t,r,o){if(e===t)return 0!==e||1/e==1/t;let a=typeof e;if(a!==typeof t||null===e||null===t)return!1;if("function"===a){if(!r.deepFunction||e.toString()!==t.toString())return!1}else if("object"!==a)return e!=e&&t!=t;let s=i.getSharedType(e,t,!!r.prototype);switch(s){case n.buffer:return!1;case n.promise:return e===t;case n.regex:return e.toString()===t.toString();case i.mismatched:return!1}for(let r=o.length-1;r>=0;--r)if(o[r].isSame(e,t))return!0;o.push(new i.SeenEntry(e,t));try{return!!i.isDeepEqualObj(s,e,t,r,o)}finally{o.pop()}},i.getSharedType=function(e,t,r){if(r)return Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?i.mismatched:n.getInternalProto(e);let o=n.getInternalProto(e);return o!==n.getInternalProto(t)?i.mismatched:o},i.valueOf=function(e){let t=e.valueOf;if(void 0===t)return e;try{return t.call(e)}catch(e){return e}},i.hasOwnEnumerableProperty=function(e,t){return Object.prototype.propertyIsEnumerable.call(e,t)},i.isSetSimpleEqual=function(e,t){for(let r of Set.prototype.values.call(e))if(!Set.prototype.has.call(t,r))return!1;return!0}
19,i.isDeepEqualObj=function(e,t,r,o,a){let{isDeepEqual:s,valueOf:u,hasOwnEnumerableProperty:c}=i,{keys:l,getOwnPropertySymbols:f}=Object;if(e===n.array){if(!o.part){if(t.length!==r.length)return!1;for(let e=0;e<t.length;++e)if(!s(t[e],r[e],o,a))return!1;return!0}for(let e of t)for(let t of r)if(s(e,t,o,a))return!0}else if(e===n.set){if(t.size!==r.size)return!1;if(!i.isSetSimpleEqual(t,r)){let e=new Set(Set.prototype.values.call(r));for(let r of Set.prototype.values.call(t)){if(e.delete(r))continue;let t=!1;for(let n of e)if(s(r,n,o,a)){e.delete(n),t=!0;break}if(!t)return!1}}}else if(e===n.map){if(t.size!==r.size)return!1;for(let[e,n]of Map.prototype.entries.call(t))if(void 0===n&&!Map.prototype.has.call(r,e)||!s(n,Map.prototype.get.call(r,e),o,a))return!1}else if(e===n.error&&(t.name!==r.name||t.message!==r.message))return!1;let d=u(t),h=u(r);if((t!==d||r!==h)&&!s(d,h,o,a))return!1;let p=l(t);if(!o.part&&p.length!==l(r).length&&!o.skip)return!1;let m=0;for(let e of p)if(o.skip&&o.skip.includes(e))void 0===r[e]&&++m;else if(!c(r,e)||!s(t[e],r[e],o,a))return!1;if(!o.part&&p.length-m!==l(r).length)return!1;if(!1!==o.symbols){let e=f(t),n=new Set(f(r));for(let i of e){if(!o.skip||!o.skip.includes(i)){if(c(t,i)){if(!c(r,i)||!s(t[i],r[i],o,a))return!1}else if(c(r,i))return!1}n.delete(i)}for(let e of n)if(c(r,e))return!1}return!0},i.SeenEntry=class{constructor(e,t){this.obj=e,this.ref=t}isSame(e,t){return this.obj===e&&this.ref===t}}},7916:(e,t,r)=>{"use strict";let n=r(8761);e.exports=class extends Error{constructor(e){super(e.filter(e=>""!==e).map(e=>"string"==typeof e?e:e instanceof Error?e.message:n(e)).join(" ")||"Unknown error"),"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,t.assert)}}},5277:e=>{"use strict";let t={};e.exports=function(e){if(!e)return"";let r="";for(let n=0;n<e.length;++n){let i=e.charCodeAt(n);t.isSafe(i)?r+=e[n]:r+=t.escapeHtmlChar(i)}return r},t.escapeHtmlChar=function(e){return t.namedHtml.get(e)||(e>=256?"&#"+e+";":`&#x${e.toString(16).padStart(2,"0")};`)},t.isSafe=function(e){return t.safeCharCodes.has(e)},t.namedHtml=new Map([[38,"&"],[60,"<"],[62,">"],[34,"""],[160," "],[162,"¢"],[163,"£"],[164,"¤"],[169,"©"],[174,"®"]]),t.safeCharCodes=function(){let e=new Set;for(let t=32;t<123;++t)(t>=97||t>=65&&t<=90||t>=48&&t<=57||32===t||46===t||44===t||45===t||58===t||95===t)&&e.add(t);return e}()},6064:e=>{"use strict";e.exports=function(e){return e.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g,"\\$&")}},738:e=>{"use strict";e.exports=function(){}},1687:(e,t,r)=>{"use strict";let n=r(375),i=r(8571),o=r(7043),a={};e.exports=a.merge=function(e,t,r){if(n(e&&"object"==typeof e,"Invalid target value: must be an object"),n(null==t||"object"==typeof t,"Invalid source value: must be null, undefined, or an object"),!t)return e;if(r=Object.assign({nullOverride:!0,mergeArrays:!0},r),Array.isArray(t)){n(Array.isArray(e),"Cannot merge array onto an object"),r.mergeArrays||(e.length=0);for(let n=0;n<t.length;++n)e.push(i(t[n],{symbols:r.symbols}));return e}let s=o.keys(t,r);for(let n=0;n<s.length;++n){let o=s[n];if("__proto__"===o||!Object.prototype.propertyIsEnumerable.call(t,o))continue;let u=t[o];if(u&&"object"==typeof u){if(e[o]===u)continue;!e[o]||"object"!=typeof e[o]||Array.isArray(e[o])!==Array.isArray(u)||u instanceof Date||u instanceof RegExp?e[o]=i(u,{symbols:r.symbols}):a.merge(e[o],u,r)}else(null!=u||r.nullOverride)&&(e[o]=u)}return e}},9621:(e,t,r)=>{"use strict";let n=r(375),i={};e.exports=function(e,t,r){if(!1===t||null==t)return e;"string"==typeof(r=r||{})&&(r={separator:r});let o=Array.isArray(t);n(!o||!r.separator,"Separator option is not valid for array-based chain");let a=o?t:t.split(r.separator||"."),s=e;for(let e=0;e<a.length;++e){let o=a[e],u=r.iterables&&i.iterables(s);if(Array.isArray(s)||"set"===u){let e=Number(o);Number.isInteger(e)&&(o=e<0?s.length+e:e)}if(!s||"function"==typeof s&&!1===r.functions||!u&&void 0===s[o]){n(!r.strict||e+1===a.length,"Missing segment",o,"in reach path ",t),n("object"==typeof s||!0===r.functions||"function"!=typeof s,"Invalid segment",o,"in reach path ",t),s=r.default;break}s=u?"set"===u?[...s][o]:s.get(o):s[o]}return s},i.iterables=function(e){return e instanceof Set?"set":e instanceof Map?"map":void 0}},8761:e=>{"use strict";e.exports=function(){try{return JSON.stringify(...arguments)}catch(e){return"[Cannot display object: "+e.message+"]"}}},4277:(e,t)=>{"use strict";let r={};t=e.exports={array:Array.prototype,buffer:!1,date:Date.prototype,error:Error.prototype,generic:Object.prototype,map:Map.prototype,promise:Promise.prototype,regex:RegExp.prototype,set:Set.prototype,weakMap:WeakMap.prototype,weakSet:WeakSet.prototype},r.typeMap=new Map([["[object Error]",t.error],["[object Map]",t.map],["[object Promise]",t.promise],["[object Set]",t.set],["[object WeakMap]",t.weakMap],["[object WeakSet]",t.weakSet]]),t.getInternalProto=function(e){if(Array.isArray(e))return t.array;if(e instanceof Date)return t.date;if(e instanceof RegExp)return t.regex;if(e instanceof Error)return t.error;let n=Object.prototype.toString.call(e);return r.typeMap.get(n)||t.generic}},7043:(e,t)=>
19{"use strict";t.keys=function(e){return!1!==(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).symbols?Reflect.ownKeys(e):Object.getOwnPropertyNames(e)}},3652:(e,t,r)=>{"use strict";let n=r(375),i={};t.Sorter=class{constructor(){this._items=[],this.nodes=[]}add(e,t){let r=[].concat((t=t||{}).before||[]),i=[].concat(t.after||[]),o=t.group||"?",a=t.sort||0;for(let t of(n(!r.includes(o),`Item cannot come before itself: ${o}`),n(!r.includes("?"),"Item cannot come before unassociated items"),n(!i.includes(o),`Item cannot come after itself: ${o}`),n(!i.includes("?"),"Item cannot come after unassociated items"),Array.isArray(e)||(e=[e]),e)){let e={seq:this._items.length,sort:a,before:r,after:i,group:o,node:t};this._items.push(e)}if(!t.manual){let e=this._sort();n(e,"item","?"!==o?`added into group ${o}`:"","created a dependencies error")}return this.nodes}merge(e){for(let t of(Array.isArray(e)||(e=[e]),e))if(t)for(let e of t._items)this._items.push(Object.assign({},e));this._items.sort(i.mergeSort);for(let e=0;e<this._items.length;++e)this._items[e].seq=e;let t=this._sort();return n(t,"merge created a dependencies error"),this.nodes}sort(){let e=this._sort();return n(e,"sort created a dependencies error"),this.nodes}_sort(){let e={},t=Object.create(null),r=Object.create(null);for(let n of this._items){let i=n.seq,o=n.group;for(let a of(r[o]=r[o]||[],r[o].push(i),e[i]=n.before,n.after))t[a]=t[a]||[],t[a].push(i)}for(let t in e){let n=[];for(let i in e[t]){let o=e[t][i];r[o]=r[o]||[],n.push(...r[o])}e[t]=n}for(let n in t)if(r[n])for(let i of r[n])e[i].push(...t[n]);let n={};for(let t in e){let r=e[t];for(let e of r)n[e]=n[e]||[],n[e].push(t)}let i={},o=[];for(let e=0;e<this._items.length;++e){let t=e;if(n[e]){t=null;for(let e=0;e<this._items.length;++e){if(!0===i[e])continue;n[e]||(n[e]=[]);let r=n[e].length,o=0;for(let t=0;t<r;++t)i[n[e][t]]&&++o;if(o===r){t=e;break}}}null!==t&&(i[t]=!0,o.push(t))}if(o.length!==this._items.length)return!1;let a={};for(let e of this._items)a[e.seq]=e;for(let e of(this._items=[],this.nodes=[],o)){let t=a[e];this.nodes.push(t.node),this._items.push(t)}return!0}},i.mergeSort=(e,t)=>e.sort===t.sort?0:e.sort<t.sort?-1:1}
19,5380:(e,t,r)=>{"use strict";let n=r(443),i=r(2178),o={minDomainSegments:2,nonAsciiRx:/[^\x00-\x7f]/,domainControlRx:/[\x00-\x20@\:\/\\#!\$&\'\(\)\*\+,;=\?]/,tldSegmentRx:/^[a-zA-Z](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,domainSegmentRx:/^[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,URL:n.URL||URL};t.analyze=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return i.code("DOMAIN_NON_EMPTY_STRING");if("string"!=typeof e)throw Error("Invalid input: domain must be a string");if(e.length>256)return i.code("DOMAIN_TOO_LONG");if(o.nonAsciiRx.test(e)){if(!1===t.allowUnicode)return i.code("DOMAIN_INVALID_UNICODE_CHARS");e=e.normalize("NFC")}if(o.domainControlRx.test(e))return i.code("DOMAIN_INVALID_CHARS");e=o.punycode(e),t.allowFullyQualified&&"."===e[e.length-1]&&(e=e.slice(0,-1));let r=t.minDomainSegments||o.minDomainSegments,n=e.split(".");if(n.length<r)return i.code("DOMAIN_SEGMENTS_COUNT");if(t.maxDomainSegments&&n.length>t.maxDomainSegments)return i.code("DOMAIN_SEGMENTS_COUNT_MAX");let a=t.tlds;if(a){let e=n[n.length-1].toLowerCase();if(a.deny&&a.deny.has(e)||a.allow&&!a.allow.has(e))return i.code("DOMAIN_FORBIDDEN_TLDS")}for(let e=0;e<n.length;++e){let t=n[e];if(!t.length)return i.code("DOMAIN_EMPTY_SEGMENT");if(t.length>63)return i.code("DOMAIN_LONG_SEGMENT");if(e<n.length-1){if(!o.domainSegmentRx.test(t))return i.code("DOMAIN_INVALID_CHARS")}else if(!o.tldSegmentRx.test(t))return i.code("DOMAIN_INVALID_TLDS_CHARS")}return null},t.isValid=function(e,r){return!t.analyze(e,r)},o.punycode=function(e){e.includes("%")&&(e=e.replace(/%/g,"%25"));try{return new o.URL(`http://${e}`).host}catch(t){return e}}},1745:(e,t,r)=>{"use strict";let n=r(9848),i=r(5380),o=r(2178),a={nonAsciiRx:/[^\x00-\x7f]/,encoder:new(n.TextEncoder||TextEncoder)};t.analyze=function(e,t){return a.email(e,t)},t.isValid=function(e,t){return!a.email(e,t)},a.email=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof e)throw Error("Invalid input: email must be a string");if(!e)return o.code("EMPTY_STRING");let r=!a.nonAsciiRx.test(e);if(!r){if(!1===t.allowUnicode)return o.code("FORBIDDEN_UNICODE");e=e.normalize("NFC")}let n=e.split("@");if(2!==n.length)return n.length>2?o.code("MULTIPLE_AT_CHAR"):o.code("MISSING_AT_CHAR");let[s,u]=n;if(!s)return o.code("EMPTY_LOCAL");if(!t.ignoreLength){if(e.length>254)return o.code("ADDRESS_TOO_LONG");if(a.encoder.encode(s).length>64)return o.code("LOCAL_TOO_LONG")}return a.local(s,r)||i.analyze(u,t)},a.local=function(e,t){let r=e.split(".");for(let e of r){if(!e.length)return o.code("EMPTY_LOCAL_SEGMENT");if(t){if(!a.atextRx.test(e))return o.code("INVALID_LOCAL_CHARS")}else for(let t of e){if(a.atextRx.test(t))continue;let e=a.binary(t);if(!a.atomRx.test(e))return o.code("INVALID_LOCAL_CHARS")}}},a.binary=function(e){return Array.from(a.encoder.encode(e)).map(e=>String.fromCharCode(e)).join("")},a.atextRx=/^[\w!#\$%&'\*\+\-/=\?\^`\{\|\}~]+$/,a.atomRx=RegExp("(?:[\\xc2-\\xdf][\\x80-\\xbf])|(?:\\xe0[\\xa0-\\xbf][\\x80-\\xbf])|(?:[\\xe1-\\xec][\\x80-\\xbf]{2})|(?:\\xed[\\x80-\\x9f][\\x80-\\xbf])|(?:[\\xee-\\xef][\\x80-\\xbf]{2})|(?:\\xf0[\\x90-\\xbf][\\x80-\\xbf]{2})|(?:[\\xf1-\\xf3][\\x80-\\xbf]{3})|(?:\\xf4[\\x80-\\x8f][\\x80-\\xbf]{2})")},2178:(e,t)=>{"use strict";t.codes={EMPTY_STRING:"Address must be a non-empty string",FORBIDDEN_UNICODE:"Address contains forbidden Unicode characters",MULTIPLE_AT_CHAR:"Address cannot contain more than one @ character",MISSING_AT_CHAR:"Address must contain one @
19character",EMPTY_LOCAL:"Address local part cannot be empty",ADDRESS_TOO_LONG:"Address too long",LOCAL_TOO_LONG:"Address local part too long",EMPTY_LOCAL_SEGMENT:"Address local part contains empty dot-separated segment",INVALID_LOCAL_CHARS:"Address local part contains invalid character",DOMAIN_NON_EMPTY_STRING:"Domain must be a non-empty string",DOMAIN_TOO_LONG:"Domain too long",DOMAIN_INVALID_UNICODE_CHARS:"Domain contains forbidden Unicode characters",DOMAIN_INVALID_CHARS:"Domain contains invalid character",DOMAIN_INVALID_TLDS_CHARS:"Domain contains invalid tld character",DOMAIN_SEGMENTS_COUNT:"Domain lacks the minimum required number of segments",DOMAIN_SEGMENTS_COUNT_MAX:"Domain contains too many segments",DOMAIN_FORBIDDEN_TLDS:"Domain uses forbidden TLD",DOMAIN_EMPTY_SEGMENT:"Domain contains empty dot-separated segment",DOMAIN_LONG_SEGMENT:"Domain contains dot-separated segment that is too long"},t.code=function(e){return{code:e,error:t.codes[e]}}},9959:(e,t,r)=>{"use strict";let n=r(375),i=r(5752);t.regex=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(void 0===e.cidr||"string"==typeof e.cidr,"options.cidr must be a string");let t=e.cidr?e.cidr.toLowerCase():"optional";n(["required","optional","forbidden"].includes(t),"options.cidr must be one of required, optional, forbidden"),n(void 0===e.version||"string"==typeof e.version||Array.isArray(e.version),"options.version must be a string or an array of string");let r=e.version||["ipv4","ipv6","ipvfuture"];Array.isArray(r)||(r=[r]),n(r.length>=1,"options.version must have at least 1 version specified");for(let e=0;e<r.length;++e)n("string"==typeof r[e],"options.version must only contain strings"),r[e]=r[e].toLowerCase(),n(["ipv4","ipv6","ipvfuture"].includes(r[e]),"options.version contains unknown version "+r[e]+" - must be one of ipv4, ipv6, ipvfuture");r=Array.from(new Set(r));let o=`(?:${r.map(e=>{if("forbidden"===t)return i.ip[e];let r=`\\/${"ipv4"===e?i.ip.v4Cidr:i.ip.v6Cidr}`;return"required"===t?`${i.ip[e]}${r}`:`${i.ip[e]}(?:${r})?`}).join("|")})`,a=RegExp(`^${o}$`);return{cidr:t,versions:r,regex:a,raw:o}}},5752:(e,t,r)=>{"use strict";let n=r(375),i=r(6064),o={generate:function(){let e={},t="\\dA-Fa-f",r="["+t+"]",n="\\w-\\.~",i="!\\$&'\\(\\)\\*\\+,;=",o="%"+t,a=n+o+i+":@",s="["+a+"]",u="(?:0{0,2}\\d|0?[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";e.ipv4address="(?:"+u+"\\.){3}"+u;let c=r+"{1,4}",l="(?:"+c+":"+c+"|"+e.ipv4address+")",f="(?:"+c+":){6}"+l,d="::(?:"+c+":){5}"+l,h="(?:"+c+")?::(?:"+c+":){4}"+l,p="(?:(?:"+c+":){0,1}"+c+")?::(?:"+c+":){3}"+l,m="(?:(?:"+c+":){0,2}"+c+")?::(?:"+c+":){2}"+l,y="(?:(?:"+c+":){0,3}"+c+")?::"+c+":"+l,b="(?:(?:"+c+":){0,4}"+c+")?::"+l,g="(?:(?:"+c+":){0,5}"+c+")?::"+c,v="(?:(?:"+c+":){0,6}"+c+")?::";e.ipv4Cidr="(?:\\d|[1-2]\\d|3[0-2])",e.ipv6Cidr="(?:0{0,2}\\d|0?[1-9]\\d|1[01]\\d|12[0-8])",e.ipv6address="(?:"+f+"|"+d+"|"+h+"|"+p+"|"+m+"|"+y+"|"+b+"|"+g+"|"+v+")",e.ipvFuture="v"+r+"+\\.["+n+i+":]+",e.scheme="[a-zA-Z][a-zA-Z\\d+-\\.]*",e.schemeRegex=RegExp(e.scheme);let w="["+n+o+i+":]*",_="["+n+o+i+"]{1,255}",S="(?:\\[(?:"+e.ipv6address+"|"+e.ipvFuture+")\\]|"+e.ipv4address+"|"+_+")",E="(?:"+w+"@)?"+S+"(?::\\d*)?",x="(?:"+w+"@)?("+S+")(?::\\d*)?",k=s+"*",A=s+"+",M="(?:\\/"+k+")*",O="\\/(?:"+A+M+")?",j=A+M,R="["+n+o+i+"@]+"+M,C="(?:\\/\\/\\/"+k+M+")";return e.hierPart="(?:(?:\\/\\/"+E+M+")|"+O+"|"+j+"|"+C+")",e.hierPartCapture="(?:(?:\\/\\/"+x+M+")|"+O+"|"+j+")",e.relativeRef="(?:(?:\\/\\/"+E+M+")|"+O+"|"+R+"|)",e.relativeRefCapture="(?:(?:\\/\\/"+x+M+")|"+O+"|"+R+"|)",e.query="["+a+"\\/\\?]*(?=#|$)",e.queryWithSquareBrackets="["+a+"\\[\\]\\/\\?]*(?=#|$)",e.fragment="["+a+"\\/\\?]*",e}};o.rfc3986=o.generate(),t.ip={v4Cidr:o.rfc3986.ipv4Cidr,v6Cidr:o.rfc3986.ipv6Cidr,ipv4:o.rfc3986.ipv4address,ipv6:o.rfc3986.ipv6address,ipvfuture:o.rfc3986.ipvFuture},o.createRegex=function(e){let t=o.rfc3986,r="(?:\\?"+(e.allowQuerySquareBrackets?t.queryWithSquareBrackets:t.query)+")?(?:#"+t.fragment+")?",a=e.domain?t.relativeRefCapture:t.relativeRef;if(e.relativeOnly)return o.wrap(a+r);let s="";if(e.scheme){n(e.scheme instanceof RegExp||"string"==typeof e.scheme||Array.isArray(e.sc
19heme),"scheme must be a RegExp, String, or Array");let r=[].concat(e.scheme);n(r.length>=1,"scheme must have at least 1 scheme specified");let o=[];for(let e=0;e<r.length;++e){let a=r[e];n(a instanceof RegExp||"string"==typeof a,"scheme at position "+e+" must be a RegExp or String"),a instanceof RegExp?o.push(a.source.toString()):(n(t.schemeRegex.test(a),"scheme at position "+e+" must be a valid scheme"),o.push(i(a)))}s=o.join("|")}let u="(?:"+(s?"(?:"+s+")":t.scheme)+":"+(e.domain?t.hierPartCapture:t.hierPart)+")",c=e.allowRelative?"(?:"+u+"|"+a+")":u;return o.wrap(c+r,s)},o.wrap=function(e,t){return{raw:e=`(?=.)(?!https?:/(?:$|[^/]))(?!https?:///)(?!https?:[^/])${e}`,regex:RegExp(`^${e}$`),scheme:t}},o.uriRegex=o.createRegex({}),t.regex=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.scheme||e.allowRelative||e.relativeOnly||e.allowQuerySquareBrackets||e.domain?o.createRegex(e):o.uriRegex}},1447:(e,t)=>{"use strict";let r={operators:["!","^","*","/","%","+","-","<","<=",">",">=","==","!=","&&","||","??"],operatorCharacters:["!","^","*","/","%","+","-","<","=",">","&","|","?"],operatorsOrder:[["^"],["*","/","%"],["+","-"],["<","<=",">",">="],["==","!="],["&&"],["||","??"]],operatorsPrefix:["!","n"],literals:{'"':'"',"`":"`","'":"'","[":"]"},numberRx:/^(?:[0-9]*(\.[0-9]*)?){1}$/,tokenRx:/^[\w\$\#\.\@\:\{\}]+$/,symbol:Symbol("formula"),settings:Symbol("settings")};t.Parser=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t[r.settings]&&t.constants)for(let e in t.constants){let r=t.constants[e];if(null!==r&&!["boolean","number","string"].includes(typeof r))throw Error(`Formula constant ${e} contains invalid ${typeof r} value type`)}this.settings=t[r.settings]?t:Object.assign({[r.settings]:!0,constants:{},functions:{}},t),this.single=null,this._parts=null,this._parse(e)}_parse(e){let n=[],i="",o=0,a=!1,s=e=>{if(o)throw Error("Formula missing closing parenthesis");let s=n.length?n[n.length-1]:null;if(a||i||e){if(s&&"reference"===s.type&&")"===e)return s.type="function",s.value=this._subFormula(i,s.value),void(i="");if(")"===e){let e=new t.Parser(i,this.settings);n.push({type:"segment",value:e})}else if(a){if("]"===a)return n.push({type:"reference",value:i}),void(i="");n.push({type:"literal",value:i})}else if(r.operatorCharacters.includes(i))s&&"operator"===s.type&&r.operators.includes(s.value+i)?s.value+=i:n.push({type:"operator",value:i});else if(i.match(r.numberRx))n.push({type:"constant",value:parseFloat(i)});else if(void 0!==this.settings.constants[i])n.push({type:"constant",value:this.settings.constants[i]});else{if(!i.match(r.tokenRx))throw Error(`Formula contains invalid token: ${i}`);n.push({type:"reference",value:i})}i=""}};for(let t of e)a?t===a?(s(),a=!1):i+=t:o?"("===t?(i+=t,++o):")"===t?--o?i+=t:s(t):i+=t:t in r.literals?a=r.literals[t]:"("===t?(s(),++o):r.operatorCharacters.includes(t)?(s(),i=t,s()):" "!==t?i+=t:s();s();let u=!1;for(let e of n=n.map((e,t)=>"operator"!==e.type||"-"!==e.value||t&&"operator"!==n[t-1].type?e:{type:"operator",value:"n"})){if("operator"===e.type){if(r.operatorsPrefix.includes(e.value))continue;if(!u)throw Error("Formula contains an operator in invalid position");if(!r.operators.includes(e.value))throw Error(`Formula contains an unknown operator ${e.value}`)}else if(u)throw Error("Formula missing expected operator");u=!u}if(!u)throw Error("Formula contains invalid trailing operator");1===n.length&&["reference","literal","constant"].includes(n[0].type)&&(this.single={type:"reference"===n[0].type?"reference":"value",value:n[0].value}),this._parts=n.map(e=>{if("operator"===e.type)return r.operatorsPrefix.includes(e.value)?e:e.value;if("reference"!==e.type)return e.value;if(this.settings.tokenRx&&!this.settings.tokenRx.test(e.value))throw Error(`Formula contains invalid reference ${e.value}`);return this.settings.reference?this.settings.reference(e.value):r.reference(e.value)})}_subFormula(e,n){let i=this.settings.functions[n];if("function"!=typeof i)throw Error(`Formula contains unknown function ${n}`);let o=[];if(e){let t="",i=0,a=!1,s=()=>
19{if(!t)throw Error(`Formula contains function ${n} with invalid arguments ${e}`);o.push(t),t=""};for(let n=0;n<e.length;++n){let o=e[n];a?(t+=o,o===a&&(a=!1)):o in r.literals&&!i?(t+=o,a=r.literals[o]):","!==o||i?(t+=o,"("===o?++i:")"===o&&--i):s()}s()}return o=o.map(e=>new t.Parser(e,this.settings)),function(e){let t=[];for(let r of o)t.push(r.evaluate(e));return i.call(e,...t)}}evaluate(e){let t=this._parts.slice();for(let n=t.length-2;n>=0;--n){let i=t[n];if(i&&"operator"===i.type){let o=t[n+1];t.splice(n+1,1);let a=r.evaluate(o,e);t[n]=r.single(i.value,a)}}return r.operatorsOrder.forEach(n=>{for(let i=1;i<t.length-1;)if(n.includes(t[i])){let n=t[i],o=r.evaluate(t[i-1],e),a=r.evaluate(t[i+1],e);t.splice(i,2);let s=r.calculate(n,o,a);t[i-1]=0===s?0:s}else i+=2}),r.evaluate(t[0],e)}},t.Parser.prototype[r.symbol]=!0,r.reference=function(e){return function(t){return t&&void 0!==t[e]?t[e]:null}},r.evaluate=function(e,t){return null===e?null:"function"==typeof e?e(t):e[r.symbol]?e.evaluate(t):e},r.single=function(e,t){if("!"===e)return!t;let r=-t;return 0===r?0:r},r.calculate=function(e,t,n){if("??"===e)return r.exists(t)?t:n;if("string"==typeof t||"string"==typeof n){if("+"===e)return(t=r.exists(t)?t:"")+(r.exists(n)?n:"")}else switch(e){case"^":return Math.pow(t,n);case"*":return t*n;case"/":return t/n;case"%":return t%n;case"+":return t+n;case"-":return t-n}switch(e){case"<":return t<n;case"<=":return t<=n;case">":return t>n;case">=":return t>=n;case"==":return t===n;case"!=":return t!==n;case"&&":return t&&n;case"||":return t||n}return null},r.exists=function(e){return null!=e}},9926:()=>{},5688:()=>{},9708:()=>{},1152:()=>{},443:()=>{},9848:()=>{},5934:e=>{"use strict";e.exports={version:"17.8.4"}}},t={},function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}(5107)})},9593:function(e,t,r){"use strict";let n=r(4411),i=Symbol("max"),o=Symbol("length"),a=Symbol("lengthCalculator"),s=Symbol("allowStale"),u=Symbol("maxAge"),c=Symbol("dispose"),l=Symbol("noDisposeOnSet"),f=Symbol("lruList"),d=Symbol("cache"),h=Symbol("updateAgeOnGet"),p=()=>1;class m{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw TypeError("max must be a non-negative number");this[i]=e.max||1/0;let t=e.length||p;if(this[a]="function"!=typeof t?p:t,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw TypeError("maxAge must be a number");this[u]=e.maxAge||0,this[c]=e.dispose,this[l]=e.noDisposeOnSet||!1,this[h]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw TypeError("max must be a non-negative number");this[i]=e||1/0,g(this)}get max(){return this[i]}set allowStale(e){this[s]=!!e}get allowStale(){return this[s]}set maxAge(e){if("number"!=typeof e)throw TypeError("maxAge must be a non-negative number");this[u]=e,g(this)}get maxAge(){return this[u]}set lengthCalculator(e){"function"!=typeof e&&(e=p),e!==this[a]&&(this[a]=e,this[o]=0,this[f].forEach(e=>{e.length=this[a](e.value,e.key),this[o]+=e.length})),g(this)}get lengthCalculator(){return this[a]}get length(){return this[o]}get itemCount(){return this[f].length}rforEach(e,t){t=t||this;for(let r=this[f].tail;null!==r;){let n=r.prev;_(this,e,r,t),r=n}}forEach(e,t){t=t||this;for(let r=this[f].head;null!==r;){let n=r.next;_(this,e,r,t),r=n}}keys(){return this[f].toArray().map(e=>e.key)}values(){return this[f].toArray().map(e=>e.value)}reset(){this[c]&&this[f]&&this[f].length&&this[f].forEach(e=>this[c](e.key,e.value)),this[d]=new Map,this[f]=new n,this[o]=0}dump(){return this[f].map(e=>!b(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[f]}set(e,t,r){if((r=r||this[u])&&"number"!=typeof r)throw TypeError("maxAge must be a number");let n=r?Date.now():0,s=this[a](t,e);if(this[d].has(e)){if(s>this[i])return v(this,this[d].get(e)),!1;let a=this[d].get(e),u=a.value;return this[c]&&!this[l]&&this[c](e,u.value),u.now=n,u.maxAge=r,u.value=t,this[o]+=s-u.length,u.length=s,this.get(e),g(this),!0}let h=new w(e,t,s,n,r);return h.length>this[i]?(this[c]&&this[c](e,t),!1):(this[o]+=h.length,this[f].unshift(h),this[d].set(e,this[f].head),g(this),!0)}has(e){if(!this[d].has(e))return!1;let t=this[d].get(e).value;return!b(this,t)}get(e){return y(this,e,!0)}peek(e){return y(this,e,!1)}pop(){let e=this[f].tail;return e?(v(this,e),e.value):null}del(e){v(this,this[d].get(e))}load(e){this.reset();let t=Date.now();for(let r=e.length-1;r>=0;r--){let n=e[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{let e=i-t;e>0&&this.set(n.k,n.v,e)}}}
19prune(){this[d].forEach((e,t)=>y(this,t,!1))}}let y=(e,t,r)=>{let n=e[d].get(t);if(n){let t=n.value;if(b(e,t)){if(v(e,n),!e[s])return}else r&&(e[h]&&(n.value.now=Date.now()),e[f].unshiftNode(n));return t.value}},b=(e,t)=>{if(!t||!t.maxAge&&!e[u])return!1;let r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[u]&&r>e[u]},g=e=>{if(e[o]>e[i])for(let t=e[f].tail;e[o]>e[i]&&null!==t;){let r=t.prev;v(e,t),t=r}},v=(e,t)=>{if(t){let r=t.value;e[c]&&e[c](r.key,r.value),e[o]-=r.length,e[d].delete(r.key),e[f].removeNode(t)}};class w{constructor(e,t,r,n,i){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=i||0}}let _=(e,t,r,n)=>{let i=r.value;b(e,i)&&(v(e,r),e[s]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};e.exports=m},7824:function(e){var t=1e3,r=6e4,n=36e5,i=864e5,o=6048e5,a=315576e5;function s(e){if(!((e=String(e)).length>100)){var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(s){var u=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return u*a;case"weeks":case"week":case"w":return u*o;case"days":case"day":case"d":return u*i;case"hours":case"hour":case"hrs":case"hr":case"h":return u*n;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}}}function u(e){var o=Math.abs(e);return o>=i?Math.round(e/i)+"d":o>=n?Math.round(e/n)+"h":o>=r?Math.round(e/r)+"m":o>=t?Math.round(e/t)+"s":e+"ms"}function c(e){var o=Math.abs(e);return o>=i?l(e,o,i,"day"):o>=n?l(e,o,n,"hour"):o>=r?l(e,o,r,"minute"):o>=t?l(e,o,t,"second"):e+" ms"}function l(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}e.exports=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return s(e);if("number"===r&&isFinite(e))return t.long?c(e):u(e);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},3454:function(e,t,r){"use strict";var n,i;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(i=r.g.process)?void 0:i.env)?r.g.process:r(7663)},1118:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(1667)}])},1210:function(e,t){"use strict";function r(e,t,r,n){return!1}Object.defineProperty(t,"__esModule",{value:!0}),t.getDomainLocale=r,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8418:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(2648).Z,i=r(7273).Z,o=n(r(7294)),a=r(3297),s=r(4634),u=r(4611),c=r(3794),l=r(2725),f=r(3462),d=r(1018),h=r(7190),p=r(1210),m=r(8684);let y=new Set;function b(e,t,r,n,i){if(i||s.isLocalURL(t)){if(!n.bypassPrefetchedCheck){let i=void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0,o=t+"%"+r+"%"+i;if(y.has(o))return;y.add(o)}Promise.resolve(e.prefetch(t,r,n)).catch(e=>{})}}function g(e){let t=e.currentTarget,r=t.getAttribute("target");return r&&"_self"!==r||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}function v(e,t,r,n,i,a,u,c,l,f){let{nodeName:d}=e.currentTarget,h="A"===d.toUpperCase();if(h&&(g(e)||!l&&!s.isLocalURL(r)))return;e.preventDefault();let p=()=>{"beforePopState"in t?t[i?"replace":"push"](r,n,{shallow:a,locale:c,scroll:u}):t[i?"replace":"push"](n||r,{forceOptimisticNavigation:!f})};l?o.default.startTransition(p):p()}function w(e){return"string"==typeof e?e:u.formatUrl(e)}let _=o.default.forwardRef(function(e,t){let r,n;let{href:s,as:u,children:y,prefetch:g,passHref:_,replace:S,shallow:E,scroll:x,locale:k,onClick:A,onMouseEnter:M,onTouchStart:O,legacyBehavior:j=!1}=e,R=i(e,["href","as","children","prefetch","passHref","replace","shallow","scroll","locale","onClick","onMouseEnter","onTouchStart","legacyBehavior"]);r=y,j&&("string"==typeof r||"number"==typeof r)&&(r=o.default.createElement("a",null,r));let C=!1!==g,P=o.default.useContext(f.RouterContext),T=o.default.useContext(d.AppRouterContext),I=null!=P?P:T,N=!P,{href:D,as:L}=o.default.useMemo(()=>
19{if(!P){let e=w(s);return{href:e,as:u?w(u):e}}let[e,t]=a.resolveHref(P,s,!0);return{href:e,as:u?a.resolveHref(P,u):t||e}},[P,s,u]),B=o.default.useRef(D),U=o.default.useRef(L);j&&(n=o.default.Children.only(r));let $=j?n&&"object"==typeof n&&n.ref:t,[H,F,q]=h.useIntersection({rootMargin:"200px"}),W=o.default.useCallback(e=>{(U.current!==L||B.current!==D)&&(q(),U.current=L,B.current=D),H(e),$&&("function"==typeof $?$(e):"object"==typeof $&&($.current=e))},[L,$,D,q,H]);o.default.useEffect(()=>{I&&F&&C&&b(I,D,L,{locale:k},N)},[L,D,F,k,C,null==P?void 0:P.locale,I,N]);let z={ref:W,onClick(e){j||"function"!=typeof A||A(e),j&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),I&&!e.defaultPrevented&&v(e,I,D,L,S,E,x,k,N,C)},onMouseEnter(e){j||"function"!=typeof M||M(e),j&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),I&&(C||!N)&&b(I,D,L,{locale:k,priority:!0,bypassPrefetchedCheck:!0},N)},onTouchStart(e){j||"function"!=typeof O||O(e),j&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),I&&(C||!N)&&b(I,D,L,{locale:k,priority:!0,bypassPrefetchedCheck:!0},N)}};if(c.isAbsoluteUrl(L))z.href=L;else if(!j||_||"a"===n.type&&!("href"in n.props)){let e=void 0!==k?k:null==P?void 0:P.locale,t=(null==P?void 0:P.isLocaleDomain)&&p.getDomainLocale(L,e,null==P?void 0:P.locales,null==P?void 0:P.domainLocales);z.href=t||m.addBasePath(l.addLocale(L,e,null==P?void 0:P.defaultLocale))}return j?o.default.cloneElement(n,z):o.default.createElement("a",Object.assign({},R,z),r)});var S=_;t.default=S,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7190:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useIntersection=l;var n=r(7294),i=r(9311);let o="function"==typeof IntersectionObserver,a=new Map,s=[];function u(e){let t;let r={root:e.root||null,margin:e.rootMargin||""},n=s.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=a.get(n)))return t;let i=new Map,o=new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e);return t={id:r,observer:o,elements:i},s.push(r),a.set(r,t),t}function c(e,t,r){let{id:n,observer:i,elements:o}=u(r);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(n);let e=s.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&s.splice(e,1)}}}function l(e){let{rootRef:t,rootMargin:r,disabled:a}=e,s=a||!o,[u,l]=n.useState(!1),f=n.useRef(null),d=n.useCallback(e=>{f.current=e},[]);n.useEffect(()=>{if(o){if(s||u)return;let e=f.current;if(e&&e.tagName){let n=c(e,e=>e&&l(e),{root:null==t?void 0:t.current,rootMargin:r});return n}}else if(!u){let e=i.requestIdleCallback(()=>l(!0));return()=>i.cancelIdleCallback(e)}},[s,r,t,u,f.current]);let h=n.useCallback(()=>{l(!1)},[]);return[d,u,h]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9798:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(5893),i=r(7294);function o(e){let{slot:t}=e;return(0,i.useEffect)(()=>{try{(window.adsbygoogle=window.adsbygoogle||[]).push({})}catch(e){}},[]),(0,n.jsx)("div",{className:"mt-4 mb-4 text-center overflow-hidden",children:(0,n.jsx)("ins",{className:"adsbygoogle",style:{display:"block"},"data-ad-client":"ca-pub-0054485537264837","data-ad-slot":"2632187526","data-ad-format":"auto","data-full-width-responsive":"true"})})}},4106:function(e,t,r){"use strict";r.d(t,{Z:function(){return eI}});var n=r(5893),i=r(7294),o=r(4184),a=r.n(o),s=r(6792),u=r(6611),c=(0,u.Z)("popover-header"),l=(0,u.Z)("popover-body");function f(e,t){let r=e;return"left"===e?r=t?"end":"start":"right"===e&&(r=t?"start":"end"),r}function d(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}let h={placement:"right"},p=i.forwardRef(({bsPrefix:e,placement:t,className:r,style:i,children:o,body:u,arrowProps:c,hasDoneInitialMeasure:h,popper:p,show:m,...y},b)=>{let g=(0,s.vE)(e,"popover"),v=(0,s.SC)(),[w]=(null==t?void 0:t.split("-"))||[],_=f(w,v),S=i;return m&&!h&&(S={...i,...d(null==p?void 0:p.strategy)}),(0,n.jsxs)("div",{ref:b,role:"tooltip",style:S,"x-placement":w,className:a()(r,g,w&&`bs-popover-${_}`),...y,children:[(0,n.jsx)("div",{className:"popover-arrow",...c}),u?(0,n.jsx)(l,{children:o}):o]})});p.defaultProps=h;var m=Object.assign(p,{Header:c,Body:l,POPPER_OFFSET:[0,8]}),y=r(1330),b=r(424),g=r(6454),v=r(6852),w=2147483647;function _(e,t,r){var n=r-Date.now();
19e.current=n<=w?setTimeout(t,n):setTimeout(function(){return _(e,t,r)},w)}function S(){var e=(0,g.Z)(),t=(0,i.useRef)();return(0,v.Z)(function(){return clearTimeout(t.current)}),(0,i.useMemo)(function(){var r=function(){return clearTimeout(t.current)};return{set:function(n,i){void 0===i&&(i=0),e()&&(r(),i<=w?t.current=setTimeout(n,i):_(t,n,Date.now()+i))},clear:r}},[])}var E=r(2473),x=r.n(E),k=r(7150),A=r(5654),M=r(3935),O=r(2092),j=Object.prototype.hasOwnProperty;function R(e,t,r){for(r of e.keys())if(C(r,t))return r}function C(e,t){var r,n,i;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&C(e[n],t[n]););return -1===n}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if((i=n)&&"object"==typeof i&&!(i=R(t,i))||!t.has(i))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if((i=n[0])&&"object"==typeof i&&!(i=R(t,i))||!C(n[1],t.get(i)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return -1===n}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return -1===n}if(!r||"object"==typeof e){for(r in n=0,e)if(j.call(e,r)&&++n&&!j.call(t,r)||!(r in t)||!C(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!=e&&t!=t}var P=function(e){var t=(0,g.Z)();return[e[0],(0,i.useCallback)(function(r){if(t())return e[1](r)},[t,e[1]])]},T=r(6896),I=r(6531),N=r(2372),D=r(8855),L=r(1716),B=r(2122),U=r(7421),$=r(394),H=r(5704);let F=(0,H.kZ)({defaultModifiers:[L.Z,U.Z,I.Z,N.Z,B.Z,D.Z,$.Z,T.Z]}),q=["enabled","placement","strategy","modifiers"];function W(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}let z={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>void 0},K={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{let{reference:t,popper:r}=e.elements;if("removeAttribute"in t){let e=(t.getAttribute("aria-describedby")||"").split(",").filter(e=>e.trim()!==r.id);e.length?t.setAttribute("aria-describedby",e.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;let{popper:r,reference:n}=e.elements,i=null==(t=r.getAttribute("role"))?void 0:t.toLowerCase();if(r.id&&"tooltip"===i&&"setAttribute"in n){let e=n.getAttribute("aria-describedby");if(e&&-1!==e.split(",").indexOf(r.id))return;n.setAttribute("aria-describedby",e?`${e},${r.id}`:r.id)}}},Z=[];var J=function(e,t,r={}){let{enabled:n=!0,placement:o="bottom",strategy:a="absolute",modifiers:s=Z}=r,u=W(r,q),c=(0,i.useRef)(s),l=(0,i.useRef)(),f=(0,i.useCallback)(()=>{var e;null==(e=l.current)||e.update()},[]),d=(0,i.useCallback)(()=>{var e;null==(e=l.current)||e.forceUpdate()},[]),[h,p]=P((0,i.useState)({placement:o,update:f,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),m=(0,i.useMemo)(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:e})=>{let t={},r={};Object.keys(e.elements).forEach(n=>{t[n]=e.styles[n],r[n]=e.attributes[n]}),p({state:e,styles:t,attributes:r,update:f,forceUpdate:d,placement:e.placement})}}),[f,d,p]),y=(0,i.useMemo)(()=>(C(c.current,s)||(c.current=s),c.current),[s]);return(0,i.useEffect)(()=>{l.current&&n&&l.current.setOptions({placement:o,strategy:a,modifiers:[...y,m,z]})},[a,o,m,n,y]),(0,i.useEffect)(()=>{if(n&&null!=e&&null!=t)return l.current=F(e,t,Object.assign({},u,{placement:o,strategy:a,modifiers:[...y,K,m]})),()=>{null!=l.current&&(l.current.destroy(),l.current=void 0,p(e=>Object.assign({},e,{attributes:{},styles:{popper:{}}})))}},[n,e,t]),h},G=r(2950),V=r(7216),Y=r(8146);let X=()=>{};function Q(e){return 0===e.button}function ee(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}let et=e=>e&&("current"in e?e.current:e),er={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};var en=function(e,t=X,{disabled:r,clickTrigger:n="click"}={}){let o=(0,i.useRef)(!1),a=(0,i.useRef)(!1),s=(0,i.useCallback)(t=>{let r=et(e);x()(!!r,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),o.current=!r||ee(t)||!Q(t)||!!(0,b.Z)(r,t.target)||a.current,a.current=!1},[e]),u=(0,Y.Z)(t=>{let r=et(e);r&&(0,b.Z)(r,t.target)&&(a.current=!0)}),c=(0,Y.Z)(e=>{o.current||t(e)});(0,i.useEffect)(()=>
19{if(r||null==e)return;let t=(0,V.Z)(et(e)),i=(t.defaultView||window).event,o=null;er[n]&&(o=(0,G.Z)(t,er[n],u,!0));let a=(0,G.Z)(t,n,s,!0),l=(0,G.Z)(t,n,e=>{if(e===i){i=void 0;return}c(e)}),f=[];return"ontouchstart"in t.documentElement&&(f=[].slice.call(t.body.children).map(e=>(0,G.Z)(e,"mousemove",X))),()=>{null==o||o(),a(),l(),f.forEach(e=>e())}},[e,r,n,s,u,c])};let ei=27,eo=()=>{};var ea=function(e,t,{disabled:r,clickTrigger:n}={}){let o=t||eo;en(e,o,{disabled:r,clickTrigger:n});let a=(0,Y.Z)(e=>{e.keyCode===ei&&o(e)});(0,i.useEffect)(()=>{if(r||null==e)return;let t=(0,V.Z)(et(e)),n=(t.defaultView||window).event,i=(0,G.Z)(t,"keyup",e=>{if(e===n){n=void 0;return}a(e)});return()=>{i()}},[e,r,a])},es=r(4194);function eu(e){let t={};return Array.isArray(e)?(null==e||e.forEach(e=>{t[e.name]=e}),t):e||t}function ec(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function el({enabled:e,enableEvents:t,placement:r,flip:n,offset:i,fixed:o,containerPadding:a,arrowElement:s,popperConfig:u={}}){var c,l,f,d,h;let p=eu(u.modifiers);return Object.assign({},u,{placement:r,enabled:e,strategy:o?"fixed":u.strategy,modifiers:ec(Object.assign({},p,{eventListeners:{enabled:t,options:null==(c=p.eventListeners)?void 0:c.options},preventOverflow:Object.assign({},p.preventOverflow,{options:a?Object.assign({padding:a},null==(l=p.preventOverflow)?void 0:l.options):null==(f=p.preventOverflow)?void 0:f.options}),offset:{options:Object.assign({offset:i},null==(d=p.offset)?void 0:d.options)},arrow:Object.assign({},p.arrow,{enabled:!!s,options:Object.assign({},null==(h=p.arrow)?void 0:h.options,{element:s})}),flip:Object.assign({enabled:!!n},p.flip)}))})}var ef=r(722);let ed=i.forwardRef((e,t)=>{let{flip:r,offset:n,placement:o,containerPadding:a,popperConfig:s={},transition:u,runTransition:c}=e,[l,f]=(0,O.Z)(),[d,h]=(0,O.Z)(),p=(0,A.Z)(f,t),m=(0,es.Z)(e.container),y=(0,es.Z)(e.target),[b,g]=(0,i.useState)(!e.show),v=J(y,l,el({placement:o,enableEvents:!!e.show,containerPadding:a||5,flip:r,offset:n,arrowElement:d,popperConfig:s}));e.show&&b&&g(!1);let w=(...t)=>{g(!0),e.onExited&&e.onExited(...t)},_=e.show||!b;if(ea(l,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!_)return null;let{onExit:S,onExiting:E,onEnter:x,onEntering:k,onEntered:j}=e,R=e.children(Object.assign({},v.attributes.popper,{style:v.styles.popper,ref:p}),{popper:v,placement:o,show:!!e.show,arrowProps:Object.assign({},v.attributes.arrow,{style:v.styles.arrow,ref:h})});return R=(0,ef.sD)(u,c,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:R,onExit:S,onExiting:E,onExited:w,onEnter:x,onEntering:k,onEntered:j}),m?M.createPortal(R,m):null});ed.displayName="Overlay";var eh=ed,ep=r(9585),em=r(1132);function ey(e){let t=(0,i.useRef)(null),r=(0,s.vE)(void 0,"popover"),n=(0,i.useMemo)(()=>({name:"offset",options:{offset:()=>t.current&&(0,em.Z)(t.current,r)?e||m.POPPER_OFFSET:e||[0,0]}}),[e,r]);return[t,[n]]}var eb=r(1068),eg=r(8285);let ev={transition:eb.Z,rootClose:!1,show:!1,placement:"top"};function ew(e,t){let{ref:r}=e,{ref:n}=t;e.ref=r.__wrapped||(r.__wrapped=e=>r((0,eg.Z)(e))),t.ref=n.__wrapped||(n.__wrapped=e=>n((0,eg.Z)(e)))}let e_=i.forwardRef(({children:e,transition:t,popperConfig:r={},...o},s)=>{let u=(0,i.useRef)({}),[c,l]=(0,i.useState)(null),[f,d]=ey(o.offset),h=(0,A.Z)(s,f),p=!0===t?eb.Z:t||void 0,m=(0,Y.Z)(e=>{l(e),null==r||null==r.onFirstUpdate||r.onFirstUpdate(e)});return(0,ep.Z)(()=>{c&&(null==u.current.scheduleUpdate||u.current.scheduleUpdate())},[c]),(0,i.useEffect)(()=>{o.show||l(null)},[o.show]),(0,n.jsx)(eh,{...o,ref:h,popperConfig:{...r,modifiers:d.concat(r.modifiers||[]),onFirstUpdate:m},transition:p,children:(n,{arrowProps:o,popper:s,show:l})=>{var f,d;ew(n,o);let h=null==s?void 0:s.placement,p=Object.assign(u.current,{state:null==s?void 0:s.state,scheduleUpdate:null==s?void 0:s.update,placement:h,outOfBoundaries:(null==s?void 0:null==(f=s.state)?void 0:null==(d=f.modifiersData.hide)?void 0:d.isReferenceHidden)||!1,strategy:r.strategy}),m=!!c;return"function"==typeof e?e({...n,placement:h,show:l,...!t&&l&&{className:"show"},popper:p,arrowProps:o,hasDoneInitialMeasure:m}):i.cloneElement(e,{...n,placement:h,arrowProps:o,popper:p,hasDoneInitialMeasure:m,className:a()(e.props.className,!t&&l&&"show"),style:{...e.props.style,...n.style}})}})});e_.displayName="Overlay",e_.defaultProps=ev;var eS=e_;function eE(e){return e&&"object"==typeof e?e:{show:e,hide:e}}
19function ex(e,t,r){let[n]=t,i=n.currentTarget,o=n.relatedTarget||n.nativeEvent[r];o&&o===i||(0,b.Z)(i,o)||e(...t)}let ek={defaultShow:!1,trigger:["hover","focus"]};function eA({trigger:e,overlay:t,children:r,popperConfig:o={},show:a,defaultShow:s=!1,onToggle:u,delay:c,placement:l,flip:f=l&&-1!==l.indexOf("auto"),...d}){let h=(0,i.useRef)(null),p=(0,A.Z)(h,r.ref),m=S(),y=(0,i.useRef)(""),[b,g]=(0,k.$c)(a,s,u),v=eE(c),{onFocus:w,onBlur:_,onClick:E}="function"!=typeof r?i.Children.only(r).props:{},x=e=>{p((0,eg.Z)(e))},M=(0,i.useCallback)(()=>{if(m.clear(),y.current="show",!v.show){g(!0);return}m.set(()=>{"show"===y.current&&g(!0)},v.show)},[v.show,g,m]),O=(0,i.useCallback)(()=>{if(m.clear(),y.current="hide",!v.hide){g(!1);return}m.set(()=>{"hide"===y.current&&g(!1)},v.hide)},[v.hide,g,m]),j=(0,i.useCallback)((...e)=>{M(),null==w||w(...e)},[M,w]),R=(0,i.useCallback)((...e)=>{O(),null==_||_(...e)},[O,_]),C=(0,i.useCallback)((...e)=>{g(!b),null==E||E(...e)},[E,g,b]),P=(0,i.useCallback)((...e)=>{ex(M,e,"fromElement")},[M]),T=(0,i.useCallback)((...e)=>{ex(O,e,"toElement")},[O]),I=null==e?[]:[].concat(e),N={ref:x};return -1!==I.indexOf("click")&&(N.onClick=C),-1!==I.indexOf("focus")&&(N.onFocus=j,N.onBlur=R),-1!==I.indexOf("hover")&&(N.onMouseOver=P,N.onMouseOut=T),(0,n.jsxs)(n.Fragment,{children:["function"==typeof r?r(N):(0,i.cloneElement)(r,N),(0,n.jsx)(eS,{...d,show:b,onHide:O,flip:f,placement:l,popperConfig:o,target:h.current,children:t})]})}eA.defaultProps=ek;var eM=eA,eO=r(9603),ej=r(9417),eR=r(3024);let eC={W:ej.enB,U:ej.Zkk,B:ej.bE7,R:eR.qlP,G:ej.mbJ},eP={W:"text-warning",U:"text-primary",B:"text-dark",R:"text-danger",G:"text-success"},eT=e=>{var t,r,i,o,a;let{card:s,quantity:u,hidePrice:c,hideHover:l}=e,f=(0,n.jsx)(m,{children:(0,n.jsx)(m.Body,{children:s.image_uris?(0,n.jsx)(y.Z,{src:null===(t=s.image_uris)||void 0===t?void 0:t.normal,alt:s.name,width:"100%"}):s.card_faces&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(y.Z,{src:null===(r=s.card_faces[0])||void 0===r?void 0:null===(i=r.image_uris)||void 0===i?void 0:i.normal,alt:s.name,width:"50%"}),(0,n.jsx)(y.Z,{src:null===(o=s.card_faces[1])||void 0===o?void 0:null===(a=o.image_uris)||void 0===a?void 0:a.normal,alt:s.name,width:"50%"})]})})});return(0,n.jsx)(eM,{trigger:l?[]:["click","hover"],placement:"top",overlay:f,children:(0,n.jsxs)("div",{className:"font-weight-light",style:l?{}:{cursor:"pointer"},children:[u>1&&(0,n.jsxs)("span",{className:"me-1",children:[u,"x"]}),(0,n.jsx)("span",{className:"me-1",children:s.name.split(" //")[0]}),(0,n.jsx)("span",{className:"small text-muted ms-1 me-1",children:"|"}),s.color_identity.map(e=>(0,n.jsx)(eO.G,{className:"ms-1 "+eP[e],icon:eC[e],size:"xs"},e)),0==s.color_identity.length&&(0,n.jsx)(eO.G,{className:"ms-1",icon:ej.qtD,size:"xs"}),(0,n.jsx)("span",{className:"text-muted ms-2 small",children:c?"":"$"+(null!=s.prices.usd?s.prices.usd:s.prices.usd_foil)})]})})};var eI=eT},6278:function(e,t,r){"use strict";var n=r(5893),i=r(682);let o=()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("footer",{className:"bg-dark text-light p-3 mt-auto",children:(0,n.jsxs)(i.Z,{children:[(0,n.jsx)("p",{className:"text-center mb-0",children:"\xa9 2023 EDHGen.AI"}),(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("a",{href:"/terms",className:"mx-2 text-muted",children:"Terms"}),(0,n.jsx)("span",{className:"text-light",children:"|"}),(0,n.jsx)("a",{href:"/privacy",className:"mx-2 text-muted",children:"Privacy"})]})]})})});t.Z=o},3869:function(e,t,r){"use strict";r.d(t,{Z:function(){return e1}});var n=r(5893),i=r(1163),o=r(682),a=r(4184),s=r.n(a),u=r(7294);let c=u.createContext(null),l=(e,t=null)=>null!=e?String(e):t||null;var f=c,d=r(7150),h=r(6611),p=r(6792);let m=u.forwardRef(({bsPrefix:e,className:t,as:r,...i},o)=>{e=(0,p.vE)(e,"navbar-brand");let a=r||(i.href?"a":"span");return(0,n.jsx)(a,{...i,ref:o,className:s()(t,e)})});m.displayName="NavbarBrand";var y=m,b=r(1505),g=r(6592),v=r(3825),w=function(...e){return e.filter(e=>null!=e).reduce((e,t)=>{if("function"!=typeof t)throw Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(...r){e.apply(this,r),t.apply(this,r)}},null)},_=r(4509),S=r(9337);let E={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function x(e,t){let r=`offset${e[0].toUpperCase()}${e.slice(1)}`,n=t[r],i=E[e];return n+parseInt((0,b.Z)(t,i[0]),10)+parseInt((0,b.Z)(t,i[1]),10)}let k={[g.Wj]:"collapse",[g.Ix]:"collapsing",[g.d0]:"collapsing",[g.cn]:"collapse show"},A={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,getDimensionValue:x},M=u.forwardRef(({onEnter:e,onEntering:t,onEntered:r,onExit:i,onExiting:o,className:a,children:c,dimension:l="height",getDimensionValue:f=x,...d},h)=>{let p="function"==typeof l?l():l,m=(0,u.useMemo)(()=>w(e=>{e.style[p]="0"},e),[p,e]),y=(0,u.useMemo)(()=>w(e=>{let t=`scroll${p[0].toUpperCase()}${p.slice(1)}`;e.style[p]=`${e[t]}px`},t),[p,t]),b=(0,u.useMemo)(()=>w(e=>{e.style[p]=null},r),[p,r]),g=(0,u.useMemo)(()=>w(e=>{e.style[p]=`${f(p,e)}px`,(0,_.Z)(e)},i),[i,f,p]),E=(0,u.useMemo)(()=>w(e=>{e.style[p]=null},o),[p,o]);return(0,n.jsx)(S.Z,{ref:h,addEndListener:v.Z,...d,"aria-expanded":d.role?d.in:null,onEnter:m,onEntering:y,onEntered:b,onExit:g,onExiting:E,childRef:c.ref,children:(e,t)=>u.cloneElement(c,{...t,className:s()(a,c.props.className,k[e],"width"===p&&"collapse-horizontal")})})});M.defaultProps=A;var O=M;let j=u.createContext(null);
19j.displayName="NavbarContext";var R=j;let C=u.forwardRef(({children:e,bsPrefix:t,...r},i)=>{t=(0,p.vE)(t,"navbar-collapse");let o=(0,u.useContext)(R);return(0,n.jsx)(O,{in:!!(o&&o.expanded),...r,children:(0,n.jsx)("div",{ref:i,className:t,children:e})})});C.displayName="NavbarCollapse";var P=C,T=r(8146);let I={label:"Toggle navigation"},N=u.forwardRef(({bsPrefix:e,className:t,children:r,label:i,as:o="button",onClick:a,...c},l)=>{e=(0,p.vE)(e,"navbar-toggler");let{onToggle:f,expanded:d}=(0,u.useContext)(R)||{},h=(0,T.Z)(e=>{a&&a(e),f&&f()});return"button"===o&&(c.type="button"),(0,n.jsx)(o,{...c,ref:l,onClick:h,"aria-label":i,className:s()(t,e,!d&&"collapsed"),children:r||(0,n.jsx)("span",{className:`${e}-icon`})})});N.displayName="NavbarToggle",N.defaultProps=I;var D=N,L=r(9585),B=new WeakMap,U=function(e,t){if(e&&t){var r=B.get(t)||new Map;B.set(t,r);var n=r.get(e);return n||((n=t.matchMedia(e)).refCount=0,r.set(n.media,n)),n}};function $(e,t){void 0===t&&(t="undefined"==typeof window?void 0:window);var r=U(e,t),n=(0,u.useState)(function(){return!!r&&r.matches}),i=n[0],o=n[1];return(0,L.Z)(function(){var r=U(e,t);if(!r)return o(!1);var n=B.get(t),i=function(){o(r.matches)};return r.refCount++,r.addListener(i),i(),function(){r.removeListener(i),r.refCount--,r.refCount<=0&&(null==n||n.delete(r.media)),r=void 0}},[e]),i}var H=function(e){var t=Object.keys(e);function r(e,t){return e===t?t:e?e+" and "+t:t}function n(e){return t[Math.min(t.indexOf(e)+1,t.length-1)]}function i(t){var r=e[n(t)];return"(max-width: "+(r="number"==typeof r?r-.2+"px":"calc("+r+" - 0.2px)")+")"}function o(t){var r=e[t];return"number"==typeof r&&(r+="px"),"(min-width: "+r+")"}return function(e,t,n){var a,s;return"object"==typeof e?(a=e,n=t,t=!0):(t=t||!0,(s={})[e]=t,a=s),$((0,u.useMemo)(function(){return Object.entries(a).reduce(function(e,t){var n=t[0],a=t[1];return("up"===a||!0===a)&&(e=r(e,o(n))),("down"===a||!0===a)&&(e=r(e,i(n))),e},"")},[JSON.stringify(a)]),n)}}({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400}),F=r(6664),q=r(1068),W=(0,h.Z)("offcanvas-body");let z={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1},K={[g.d0]:"show",[g.cn]:"show"},Z=u.forwardRef(({bsPrefix:e,className:t,children:r,...i},o)=>(e=(0,p.vE)(e,"offcanvas"),(0,n.jsx)(S.Z,{ref:o,addEndListener:v.Z,...i,childRef:r.ref,children:(n,i)=>u.cloneElement(r,{...i,className:s()(t,r.props.className,(n===g.d0||n===g.Ix)&&`${e}-toggling`,K[n])})})));Z.defaultProps=z,Z.displayName="OffcanvasToggling";var J=Z,G=r(6467),V=r(6695);let Y={closeLabel:"Close",closeButton:!1},X=u.forwardRef(({bsPrefix:e,className:t,...r},i)=>(e=(0,p.vE)(e,"offcanvas-header"),(0,n.jsx)(V.Z,{ref:i,...r,className:s()(t,e)})));X.displayName="OffcanvasHeader",X.defaultProps=Y;var Q=X,ee=r(9602);let et=(0,ee.Z)("h5");var er=(0,h.Z)("offcanvas-title",{Component:et}),en=r(7030);let ei={show:!1,backdrop:!0,keyboard:!0,scroll:!1,autoFocus:!0,enforceFocus:!0,restoreFocus:!0,placement:"start",renderStaticNode:!1};function eo(e){return(0,n.jsx)(J,{...e})}function ea(e){return(0,n.jsx)(q.Z,{...e})}let es=u.forwardRef(({bsPrefix:e,className:t,children:r,"aria-labelledby":i,placement:o,responsive:a,show:c,backdrop:l,keyboard:f,scroll:d,onEscapeKeyDown:h,onShow:m,onHide:y,container:b,autoFocus:g,enforceFocus:v,restoreFocus:w,restoreFocusOptions:_,onEntered:S,onExit:E,onExiting:x,onEnter:k,onEntering:A,onExited:M,backdropClassName:O,manager:j,renderStaticNode:C,...P},I)=>{let N=(0,u.useRef)();e=(0,p.vE)(e,"offcanvas");let{onToggle:D}=(0,u.useContext)(R)||{},[L,B]=(0,u.useState)(!1),U=H(a||"xs","up");(0,u.useEffect)(()=>{B(a?c&&!U:c)},[c,a,U]);let $=(0,T.Z)(()=>{null==D||D(),null==y||y()}),q=(0,u.useMemo)(()=>({onHide:$}),[$]);function W(){return j||(d?(N.current||(N.current=new en.Z({handleContainerOverflow:!1})),N.current):(0,en.t)())}let z=(e,...t)=>{e&&(e.style.visibility="visible"),null==k||k(e,...t)},K=(e,...t)=>{e&&(e.style.visibility=""),null==M||M(...t)},Z=(0,u.useCallback)(t=>(0,n.jsx)("div",{...t,className:s()(`${e}-backdrop`,O)}),[O,e]),J=u=>(0,n.jsx)("div",{...u,...P,className:s()(t,a?`${e}-${a}`:e,`${e}-${o}`),"aria-labelledby":i,children:r});return(0,n.jsxs)(n.Fragment,{children:[!L&&(a||C)&&J({}),(0,n.jsx)(G.Z.Provider,{value:q,children:(0,n.jsx)(F.Z,{show:L,ref:I,backdrop:l,container:b,keyboard:f,autoFocus:g,enforceFocus:v&&!d,restoreFocus:w,restoreFocusOptions:_,onEscapeKeyDown:h,onShow:m,onHide:$,onEnter:z,onEntering:A,onEntered:S,onExit:E,onExiting:x,onExited:K,manager:W(),transition:eo,backdropTransition:ea,renderBackdrop:Z,renderDialog:J})})]})});es.displayName="Offcanvas",es.defaultProps=ei;var eu=Object.assign(es,{Body:W,Header:Q,Title:er});let ec=u.forwardRef((e,t)=>
19{let r=(0,u.useContext)(R);return(0,n.jsx)(eu,{ref:t,show:!!(null!=r&&r.expanded),...e,renderStaticNode:!0})});ec.displayName="NavbarOffcanvas";var el=ec;let ef=(0,h.Z)("navbar-text",{Component:"span"}),ed={expand:!0,variant:"light",collapseOnSelect:!1},eh=u.forwardRef((e,t)=>{let{bsPrefix:r,expand:i,variant:o,bg:a,fixed:c,sticky:l,className:h,as:m="nav",expanded:y,onToggle:b,onSelect:g,collapseOnSelect:v,...w}=(0,d.Ch)(e,{expanded:"onToggle"}),_=(0,p.vE)(r,"navbar"),S=(0,u.useCallback)((...e)=>{null==g||g(...e),v&&y&&(null==b||b(!1))},[g,v,y,b]);void 0===w.role&&"nav"!==m&&(w.role="navigation");let E=`${_}-expand`;"string"==typeof i&&(E=`${E}-${i}`);let x=(0,u.useMemo)(()=>({onToggle:()=>null==b?void 0:b(!y),bsPrefix:_,expanded:!!y,expand:i}),[_,y,i,b]);return(0,n.jsx)(R.Provider,{value:x,children:(0,n.jsx)(f.Provider,{value:S,children:(0,n.jsx)(m,{ref:t,...w,className:s()(h,_,i&&E,o&&`${_}-${o}`,a&&`bg-${a}`,l&&`sticky-${l}`,c&&`fixed-${c}`)})})})});eh.defaultProps=ed,eh.displayName="Navbar";var ep=Object.assign(eh,{Brand:y,Collapse:P,Offcanvas:el,Text:ef,Toggle:D});r(4391);var em=r(930),ey=r(4357),eb=r(5654);let eg=u.createContext(null);eg.displayName="NavContext";var ev=eg;let ew=u.createContext(null);var e_=ew,eS=r(2747),eE=r(861);let ex=["as","active","eventKey"];function ek(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function eA({key:e,onClick:t,active:r,id:n,role:i,disabled:o}){let a=(0,u.useContext)(f),s=(0,u.useContext)(ev),c=(0,u.useContext)(e_),l=r,d={role:i};if(s){i||"tablist"!==s.role||(d.role="tab");let t=s.getControllerId(null!=e?e:null),o=s.getControlledId(null!=e?e:null);d[(0,eS.PB)("event-key")]=e,d.id=t||n,((l=null==r&&null!=e?s.activeKey===e:r)||!(null!=c&&c.unmountOnExit)&&!(null!=c&&c.mountOnEnter))&&(d["aria-controls"]=o)}return"tab"===d.role&&(d["aria-selected"]=l,l||(d.tabIndex=-1),o&&(d.tabIndex=-1,d["aria-disabled"]=!0)),d.onClick=(0,T.Z)(r=>{o||(null==t||t(r),null!=e&&a&&!r.isPropagationStopped()&&a(e,r))}),[d,{isActive:l}]}let eM=u.forwardRef((e,t)=>{let{as:r=eE.ZP,active:i,eventKey:o}=e,a=ek(e,ex),[s,u]=eA(Object.assign({key:l(o,a.href),active:i},a));return s[(0,eS.PB)("active")]=u.isActive,(0,n.jsx)(r,Object.assign({},a,s,{ref:t}))});eM.displayName="NavItem";var eO=eM;let ej=["as","onSelect","activeKey","role","onKeyDown"];function eR(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}let eC=()=>{},eP=(0,eS.PB)("event-key"),eT=u.forwardRef((e,t)=>{let r,i,{as:o="div",onSelect:a,activeKey:s,role:c,onKeyDown:d}=e,h=eR(e,ej),p=(0,ey.Z)(),m=(0,u.useRef)(!1),y=(0,u.useContext)(f),b=(0,u.useContext)(e_);b&&(c=c||"tablist",s=b.activeKey,r=b.getControlledId,i=b.getControllerId);let g=(0,u.useRef)(null),v=e=>{let t=g.current;if(!t)return null;let r=(0,em.Z)(t,`[${eP}]:not([aria-disabled=true])`),n=t.querySelector("[aria-selected=true]");if(!n||n!==document.activeElement)return null;let i=r.indexOf(n);if(-1===i)return null;let o=i+e;return o>=r.length&&(o=0),o<0&&(o=r.length-1),r[o]},w=(e,t)=>{null!=e&&(null==a||a(e,t),null==y||y(e,t))},_=e=>{let t;if(null==d||d(e),b){switch(e.key){case"ArrowLeft":case"ArrowUp":t=v(-1);break;case"ArrowRight":case"ArrowDown":t=v(1);break;default:return}t&&(e.preventDefault(),w(t.dataset[(0,eS.$F)("EventKey")]||null,e),m.current=!0,p())}};(0,u.useEffect)(()=>{if(g.current&&m.current){let e=g.current.querySelector(`[${eP}][aria-selected=true]`);null==e||e.focus()}m.current=!1});let S=(0,eb.Z)(t,g);return(0,n.jsx)(f.Provider,{value:w,children:(0,n.jsx)(ev.Provider,{value:{role:c,activeKey:l(s),getControlledId:r||eC,getControllerId:i||eC},children:(0,n.jsx)(o,Object.assign({},h,{onKeyDown:_,ref:S,role:c}))})})});eT.displayName="Nav";var eI=Object.assign(eT,{Item:eO});let eN=u.createContext(null);eN.displayName="CardHeaderContext";var eD=eN,eL=(0,h.Z)("nav-item");r(2092),r(2029),r(6454),r(8833),new WeakMap;let eB=["onKeyDown"];function eU(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function e$(e){return!e||"#"===e.trim()}let eH=u.forwardRef((e,t)=>
19{let{onKeyDown:r}=e,i=eU(e,eB),[o]=(0,eE.FT)(Object.assign({tagName:"a"},i)),a=(0,T.Z)(e=>{o.onKeyDown(e),null==r||r(e)});return e$(i.href)||"button"===i.role?(0,n.jsx)("a",Object.assign({ref:t},i,o,{onKeyDown:a})):(0,n.jsx)("a",Object.assign({ref:t},i,{onKeyDown:r}))});eH.displayName="Anchor";var eF=eH;let eq={disabled:!1},eW=u.forwardRef(({bsPrefix:e,className:t,as:r=eF,active:i,eventKey:o,...a},u)=>{e=(0,p.vE)(e,"nav-link");let[c,f]=eA({key:l(o,a.href),active:i,...a});return(0,n.jsx)(r,{...a,...c,ref:u,className:s()(t,e,a.disabled&&"disabled",f.isActive&&"active")})});eW.displayName="NavLink",eW.defaultProps=eq;var ez=eW;let eK={justify:!1,fill:!1},eZ=u.forwardRef((e,t)=>{let r,i;let{as:o="div",bsPrefix:a,variant:c,fill:l,justify:f,navbar:h,navbarScroll:m,className:y,activeKey:b,...g}=(0,d.Ch)(e,{activeKey:"onSelect"}),v=(0,p.vE)(a,"nav"),w=!1,_=(0,u.useContext)(R),S=(0,u.useContext)(eD);return _?(r=_.bsPrefix,w=null==h||h):S&&({cardHeaderBsPrefix:i}=S),(0,n.jsx)(eI,{as:o,ref:t,activeKey:b,className:s()(y,{[v]:!w,[`${r}-nav`]:w,[`${r}-nav-scroll`]:w&&m,[`${i}-${c}`]:!!i,[`${v}-${c}`]:!!c,[`${v}-fill`]:l,[`${v}-justified`]:f}),...g})});eZ.displayName="Nav",eZ.defaultProps=eK;var eJ=Object.assign(eZ,{Item:eL,Link:ez}),eG=r(9603),eV=r(9417),eY=r(3606),eX=r(1664),eQ=r.n(eX);let e0=()=>{let e=(0,i.useRouter)(),{user:t,error:r,isLoading:a}=(0,eY.aF)();return(0,n.jsx)("header",{className:"bg-dark",children:(0,n.jsx)(o.Z,{children:(0,n.jsxs)(ep,{expand:"md",variant:"dark",children:[(0,n.jsxs)(ep.Brand,{children:[(0,n.jsxs)("a",{href:"/",children:[(0,n.jsx)("img",{src:"/edhgen-icon-512.png",alt:"Logo",className:"me-2",width:"24"}),"EDHGen.AI"]}),(0,n.jsx)("span",{className:"small text-muted font-weight-light ms-2",children:"v1.5"})]}),(0,n.jsx)(ep.Toggle,{"aria-controls":"basic-navbar-nav",children:(0,n.jsx)(eG.G,{icon:eV.xiG})}),(0,n.jsx)(ep.Collapse,{id:"basic-navbar-nav",children:(0,n.jsxs)(eJ,{className:"mr-auto justify-content-end",children:[(0,n.jsx)(eQ(),{href:"/",passHref:!0,legacyBehavior:!0,children:(0,n.jsx)(eJ.Link,{active:"/"===e.pathname,children:"Home"})}),(0,n.jsx)(eQ(),{href:"/about",passHref:!0,legacyBehavior:!0,children:(0,n.jsx)(eJ.Link,{active:"/about"===e.pathname,children:"About"})}),(0,n.jsx)(eQ(),{href:"/contact",passHref:!0,legacyBehavior:!0,children:(0,n.jsx)(eJ.Link,{active:"/contact"===e.pathname,children:"Contact"})}),!a&&!t&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eJ.Link,{href:null,onClick:()=>{gtag("event","press_log_in"),window.location.href="https://edhgen.ai/api/auth/login?returnTo="+window.location.pathname},children:"Log In"}),(0,n.jsx)(eJ.Link,{href:null,onClick:()=>{gtag("event","press_sign_up"),window.location.href="https://edhgen.ai/api/auth/login?signup=true"},children:"Sign Up"})]}),!a&&t&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eQ(),{href:"/decks",passHref:!0,legacyBehavior:!0,children:(0,n.jsx)(eJ.Link,{active:"/decks"===e.pathname,children:"My Decks"})}),(0,n.jsx)(eJ.Link,{href:null,onClick:()=>{gtag("event","log_out"),window.location.href="/api/auth/logout"},children:"Log Out"})]})]})})]})})})};var e1=e0},1667:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return z}});var n=r(5893);r(5759);var i=r(3457),o=r.n(i);r(6656);var a=r(4298),s=r.n(a),u=r(9008),c=r.n(u),l=r(3606),f=r(3869),d=r(6278),h=r(682),p=r(4051),m=r(1555),y=r(4106),b=r(1664),g=r.n(b),v=r(7294),w=r(9798),_=r(6212),S=r(5005),E=r(7346);function x(){let[e,t]=(0,v.useState)(""),[r,i]=(0,v.useState)(!1);(0,v.useEffect)(()=>{let e=localStorage.getItem("hasSeenPopup");e||setTimeout(()=>{i(!0),localStorage.setItem("hasSeenPopup","true")},15e3)},[]);let o=()=>{i(!1)},a=async t=>{t.preventDefault(),gtag("event","subscribe");try{i(!1);let t=await fetch("/api/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e})});t.ok||console.error(t)}catch(e){console.error(e)}};return(0,n.jsxs)(_.Z,{show:r,onHide:o,className:"text-center text-dark",centered:!0,children:[(0,n.jsx)(_.Z.Header,{closeButton:!0,children:(0,n.jsx)(_.Z.Title,{className:"ms-3 text-dark",children:"Join our mailing list"})}),(0,n.jsxs)(_.Z.Body,{className:"m-3",children:[(0,n.jsx)("p",{children:"Subscribe to our email list to stay up to date with news & updates, and be notified when we add new features!"}),(0,n.jsxs)(E.Z,{onSubmit:a,className:"text-center",children:[(0,n.jsx)(E.Z.Control,{className:"mx-auto w-75",type:"email",placeholder:"Email address",value:e,onCh
19ange:e=>t(e.target.value),required:!0}),(0,n.jsx)(S.Z,{type:"submit",className:"mt-3 w-75",children:"Subscribe"})]})]})]})}r(6117);let k="https://mtgseeker.com/?utm_source=edhgen_ai&utm_medium=banner&utm_campaign=crosspromo",A="mtgseeker-banner-dismissed-at",M=6048e5,O=()=>{let[e,t]=(0,v.useState)(!1);(0,v.useEffect)(()=>{try{let e=Number(window.localStorage.getItem(A));t(!e||Date.now()-e>M)}catch(e){t(!0)}},[]);let r=e=>{e.preventDefault(),e.stopPropagation();try{window.localStorage.setItem(A,String(Date.now()))}catch(e){}t(!1)},i=()=>{try{var e;null===(e=window.gtag)||void 0===e||e.call(window,"event","press_mtgseeker_banner")}catch(e){}};return e?(0,n.jsx)("a",{href:k,onClick:i,style:{display:"block",background:"linear-gradient(90deg, #4f46e5 0%, #0284c7 50%, #0891b2 100%)",textDecoration:"none"},children:(0,n.jsx)(h.Z,{children:(0,n.jsxs)("div",{className:"d-flex align-items-center justify-content-center flex-wrap gap-2 py-2 position-relative",children:[(0,n.jsx)("span",{className:"d-inline-flex align-items-center justify-content-center rounded-circle flex-shrink-0",style:{background:"#fff",width:32,height:32},children:(0,n.jsx)("img",{src:"/mtgseeker-logo.svg",alt:"MTGSeeker",width:22,height:22})}),(0,n.jsx)("span",{style:{color:"#fff",fontWeight:700},children:"Need a card for your deck?"}),(0,n.jsx)("span",{className:"d-none d-md-inline",style:{color:"rgba(255,255,255,.9)"},children:"Describe it in plain English — MTGSeeker finds it. From the makers of EDHGen."}),(0,n.jsx)("span",{className:"rounded-pill px-3 py-1 fw-bold",style:{background:"#fff",color:"#3730a3",fontSize:".875rem"},children:"Try MTGSeeker →"}),(0,n.jsx)("button",{type:"button",onClick:r,"aria-label":"Dismiss",className:"btn btn-sm border-0 position-absolute end-0 p-1 lh-1",style:{color:"rgba(255,255,255,.7)",background:"transparent",fontSize:"1.25rem"},children:"\xd7"})]})})}):null};var j=O,R="@vercel/analytics",C="1.3.2",P=()=>{window.va||(window.va=function(...e){(window.vaq=window.vaq||[]).push(e)})};function T(){return"undefined"!=typeof window}function I(){try{let e="production";if("development"===e||"test"===e)return"development"}catch(e){}return"production"}function N(e="auto"){if("auto"===e){window.vam=I();return}window.vam=e}function D(){let e=T()?window.vam:I();return e||"production"}function L(){return"development"===D()}var B="https://va.vercel-scripts.com/v1/script.debug.js",U="/_vercel/insights/script.js";function $(e={debug:!0}){var t;if(!T())return;N(e.mode),P(),e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend));let r=e.scriptSrc||(L()?B:U);if(document.head.querySelector(`script[src*="${r}"]`))return;let n=document.createElement("script");n.src=r,n.defer=!0,n.dataset.sdkn=R+(e.framework?`/${e.framework}`:""),n.dataset.sdkv=C,e.disableAutoTrack&&(n.dataset.disableAutoTrack="1"),e.endpoint&&(n.dataset.endpoint=e.endpoint),e.dsn&&(n.dataset.dsn=e.dsn),n.onerror=()=>{let e=L()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log(`[Vercel Web Analytics] Failed to load script from ${r}. ${e}`)},L()&&!1===e.debug&&(n.dataset.debug="false"),document.head.appendChild(n)}function H({route:e,path:t}){var r;null==(r=window.va)||r.call(window,"pageview",{route:e,path:t})}function F(e){return(0,v.useEffect)(()=>{$({framework:e.framework||"react",...void 0!==e.route&&{disableAutoTrack:!0},...e})},[]),(0,v.useEffect)(()=>{e.route&&e.path&&H({route:e.route,path:e.path})},[e.route,e.path]),null}let q=e=>{var t=e.split(" // ")[0].toLowerCase().trim();return(t=t.replace(/[^a-z0-9-\s]+/gi,"")).replace(/\s+/g,"-")};function W(e){var t;let{Component:r,pageProps:i}=e;return(0,v.useEffect)(()=>{try{(window.adsbygoogle=window.adsbygoogle||[]).push({google_ad_client:"ca-pub-0054485537264837",enable_page_level_ads:!0,overlays:{bottom:!0}})}catch(e){}},[]),(0,n.jsxs)(l.dr,{children:[(0,n.jsxs)(c(),{children:[(0,n.jsx)("link",{rel:"stylesheet",href:"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css"}),(0,n.jsx)("link",{rel:"stylesheet",href:"https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/3.6.0/mdb.min.css"}),(0,n.jsx)("link",{rel:"stylesheet",href:"https://cdnjs.cloudflare.com/ajax/libs/react-bootstrap-typeahead/5.1.1/react-bootstrap-typeahead.min.css"}),(0,n.jsx)("script",{async:!0,"custom-element":"amp-ad",src:"https://cdn.ampproject.org/v0/amp-ad-0.1.js"})]}),!i.patron&&(0,n.jsx)(s(),{id:"Adsense-id","data-ad-client":"ca-pub-0054485537264837",async:!0,strategy:"beforeInteractive",src:"https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"}),(0,n.jsx)(s(),{strategy:"afterInteractive",src:"https://www.googletagmanager.com/gtag/js?i
19d=G-YTEK86E24W"}),(0,n.jsx)(s(),{id:"google-analytics",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:"\n          window.dataLayer = window.dataLayer || [];\n          function gtag(){dataLayer.push(arguments);}\n          gtag('js', new Date());\n          gtag('config', 'G-YTEK86E24W', {\n            page_path: window.location.pathname,\n          });\n        "}}),(0,n.jsx)(s(),{id:"hotjar",strategy:"beforeInteractive",dangerouslySetInnerHTML:{__html:"\n        (function(h,o,t,j,a,r){\n h.hj = h.hj || function () { (h.hj.q = h.hj.q || []).push(arguments) };\n h._hjSettings={hjid:3406223,hjsv:6};\n a=o.getElementsByTagName('head')[0];\n r=o.createElement('script');r.async=1;\n r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;\n a.appendChild(r);\n })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');\n        "}}),(0,n.jsx)(o(),{}),(0,n.jsxs)("div",{className:"d-flex flex-column",style:{minHeight:"100vh"},children:[(0,n.jsx)(f.Z,{}),(0,n.jsx)(j,{}),(0,n.jsx)("main",{className:"flex-fill",children:(0,n.jsxs)(h.Z,{className:"mt-4",children:[(0,n.jsxs)(p.Z,{children:[(0,n.jsx)(m.Z,{className:"mb-4",xs:"12",sm:"12",md:"8",lg:"9",xl:"9",children:(0,n.jsx)(r,{...i})}),(0,n.jsxs)(m.Z,{xs:"12",sm:"12",md:"4",lg:"3",xl:"3",children:[(0,n.jsxs)("div",{className:"mb-4",children:[(0,n.jsx)("h4",{children:"Recent Decks"}),null==i?void 0:null===(t=i.decks)||void 0===t?void 0:t.map(e=>(0,n.jsx)("div",{className:"my-1 small",children:(0,n.jsx)(g(),{href:"/deck/".concat(q(e.commander.card.name),"/").concat(e._id),children:(0,n.jsx)(y.Z,{card:e.commander.card,hidePrice:!0,hideHover:!0})})},e._id))]}),!i.patron&&(0,n.jsx)(w.Z,{slot:2228862844}),(0,n.jsx)("h4",{className:"mb-3",children:"Shoutbox"}),(0,n.jsx)("iframe",{className:"rounded",src:"https://www3.cbox.ws/box/?boxid=3526325&boxtag=mDwbLt",width:"100%",height:"360",allowtransparency:"yes",allow:"autoplay",frameBorder:"0",marginHeight:"0",marginWidth:"0",scrolling:"auto"})]})]}),!i.patron&&(0,n.jsx)(w.Z,{slot:8521156062})]})}),(0,n.jsx)(d.Z,{}),!i.user&&(0,n.jsx)(x,{})]}),(0,n.jsx)(F,{}),(0,n.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/3.6.0/mdb.min.js"}),(0,n.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/react-bootstrap-typeahead/5.1.1/react-bootstrap-typeahead.min.js"})]})}W.getInitialProps=async e=>{let t={},{ctx:r}=e;{let e=await fetch("/api/decks").then(e=>e.json());t.decks=e}return{pageProps:t}};var z=W},7596:function(e,t,r){var n="/",i=r(3454),o=r(1876).Buffer;!function(){var t={992:function(e){e.exports=function(e,r,n){if(e.filter)return e.filter(r,n);if(null==e||"function"!=typeof r)throw TypeError();for(var i=[],o=0;o<e.length;o++)if(t.call(e,o)){var a=e[o];r.call(n,a,o,e)&&i.push(a)}return i};var t=Object.prototype.hasOwnProperty},167:function(e,t,r){"use strict";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})(e)}function o(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}var a,s,u=r(23).codes,c=u.ERR_AMBIGUOUS_ARGUMENT,l=u.ERR_INVALID_ARG_TYPE,f=u.ERR_INVALID_ARG_VALUE,d=u.ERR_INVALID_RETURN_VALUE,h=u.ERR_MISSING_ARGS,p=r(545),m=r(177).inspect,y=r(177).types,b=y.isPromise,g=y.isRegExp,v=Object.assign?Object.assign:r(604).assign,w=Object.is?Object.is:r(208);function _(){var e=r(176);a=e.isDeepEqual,s=e.isDeepStrictEqual}var S=!1,E=e.exports=O,x={};function k(e){if(e.message instanceof Error)throw e.message;throw new p(e)}function A(e,t,r,n,o){var a,s=arguments.length;if(0===s?a="Failed":1===s?(r=e,e=void 0):(!1===S&&(S=!0,(i.emitWarning?i.emitWarning:console.warn.bind(console))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===s&&(n="!=")),r instanceof Error)throw r;var u={actual:e,expected:t,operator:void 0===n?"fail":n,stackStartFn:o||A};void 0!==r&&(u.message=r);var c=new p(u);throw a&&(c.message=a,c.generatedMessage=!0),c}function M(e,t,r,n){if(!r){var i=!1;if(0===t)i=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var o=new p({actual:r,expected:!0,message:n,operator:"==",stackStartFn:e});throw o.generatedMessage=i,o}}function O(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];M.apply(void 0,[O,t.length].concat(t))}function j(e,t,r){if(arguments.length<2)throw new h("actual","expected");void 0===a&&_(),s(e,t)&&k({actual:e,expected:t,message:r,operator:"notDeepStrictEqual",stackStartFn:j})}E.fail=A,E.AssertionError=p,E.ok=O,E.equal=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");t!=r&&k({actual:t,expected:r,message:n,operator:"==",stackStartFn:e})},E.notEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");t==r&&k({actual:t,expected:r,message:n,operator:"!=",stackStartFn:e})},E.deepEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===a&&_(),a(t,r)||k({actual:t,expected:r,message:n,operator:"deepEqual",stackStartFn:e})},E.notDeepEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===a&&_(),a(t,r)&&k({actual:t,expected:r,message:n,operator:"notDeepEqual",stackStartFn:e})},E.deepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===a&&_(),s(t,r)||k({actual:t,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:e})},E.notDeepStrictEqual=j,E.strictEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");w(t,r)||k({actual:t,expected:r,message:n,operator:"strictEqual",stackStartFn:e})},E.notStrictEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");
vendor: 4,138 bytes, line 19
19w(t,r)&&k({actual:t,expected:r,message:n,operator:"notStrictEqual",stackStartFn:e})};var R=function e(t,r,n){var i=this;o(this,e),r.forEach(function(e){e in t&&(void 0!==n&&"string"==typeof n[e]&&g(t[e])&&t[e].test(n[e])?i[e]=n[e]:i[e]=t[e])})};function C(e,t,r,n,i,o){if(!(r in e)||!s(e[r],t[r])){if(!n){var a=new R(e,i),u=new R(t,i,e),c=new p({actual:a,expected:u,operator:"deepStrictEqual",stackStartFn:o});throw c.actual=e,c.expected=t,c.operator=o.name,c}k({actual:e,expected:t,message:n,operator:o.name,stackStartFn:o})}}function P(e,t,r,i){if("function"!=typeof t){if(g(t))return t.test(e);if(2==arguments.length)throw new l("expected",["Function","RegExp"],t);if("object"!==n(e)||null===e){var o=new p({actual:e,expected:t,message:r,operator:"deepStrictEqual",stackStartFn:i});throw o.operator=i.name,o}var s=Object.keys(t);if(t instanceof Error)s.push("name","message");else if(0===s.length)throw new f("error",t,"may not be an empty object");return void 0===a&&_(),s.forEach(function(n){"string"==typeof e[n]&&g(t[n])&&t[n].test(e[n])||C(e,t,n,r,s,i)}),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function T(e){if("function"!=typeof e)throw new l("fn","Function",e);try{e()}catch(e){return e}return x}function I(e){return b(e)||null!==e&&"object"===n(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function N(e){return Promise.resolve().then(function(){var t;if("function"==typeof e){if(!I(t=e()))throw new d("instance of Promise","promiseFn",t)}else if(I(e))t=e;else throw new l("promiseFn",["Function","Promise"],e);return Promise.resolve().then(function(){return t}).then(function(){return x}).catch(function(e){return e})})}function D(e,t,r,i){if("string"==typeof r){if(4==arguments.length)throw new l("error",["Object","Error","Function","RegExp"],r);if("object"===n(t)&&null!==t){if(t.message===r)throw new c("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===r)throw new c("error/message",'The error "'.concat(t,'" is identical to the message.'));i=r,r=void 0}else if(null!=r&&"object"!==n(r)&&"function"!=typeof r)throw new l("error",["Object","Error","Function","RegExp"],r);if(t===x){var o="";r&&r.name&&(o+=" (".concat(r.name,")")),o+=i?": ".concat(i):".";var a="rejects"===e.name?"rejection":"exception";k({actual:void 0,expected:r,operator:e.name,message:"Missing expected ".concat(a).concat(o),stackStartFn:e})}if(r&&!P(t,r,i,e))throw t}function L(e,t,r,n){if(t!==x){if("string"==typeof r&&(n=r,r=void 0),!r||P(t,r)){var i=n?": ".concat(n):".",o="doesNotReject"===e.name?"rejection":"exception";k({actual:t,expected:r,operator:e.name,message:"Got unwanted ".concat(o).concat(i,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function B(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];M.apply(void 0,[B,t.length].concat(t))}E.throws=function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];D.apply(void 0,[e,T(t)].concat(n))},E.rejects=function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return N(t).then(function(t){return D.apply(void 0,[e,t].concat(n))})},E.doesNotThrow=function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];L.apply(void 0,[e,T(t)].concat(n))},E.doesNotReject=function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return N(t).then(function(t){return L.apply(void 0,[e,t].concat(n))})},E.ifError=function e(t){if(null!=t){var r="ifError got unwanted exception: ";"object"===n(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?r+=t.constructor.name:r+=t.message:r+=m(t);var i=new p({actual:t,expected:null,operator:"ifError",message:r,stackStartFn:e}),o=t.stack;if("string"==typeof o){var a=o.split("\n");a.shift();for(var s=i.stack.split("\n"),u=0;u<a.length;u++){var c=s.indexOf(a[u]);if(-1!==c){s=s.slice(0,c);break}}i.stack="".concat(s.join("\n"),"\n").concat(a.join("\n"))}throw i}},E.strict=v(B,E,{equal:E.strictEqual,deepEqual:E.deepStrictEqual,notEqual:E.notStr
19ictEqual,notDeepEqual:E.notDeepStrictEqual}),E.strict.strict=E.strict},545:function(e,t,r){"use strict";function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){o(e,t,r[t])})}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}function c(e,t){return t&&("object"===g(t)||"function"==typeof t)?t:l(e)}function l(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}function d(e){var t="function"==typeof Map?new Map:void 0;return(d=function(e){if(null===e||!m(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return p(e,arguments,b(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),y(r,e)})(e)}function h(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function p(e,t,r){return(p=h()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&y(i,r.prototype),i}).apply(null,arguments)}function m(e){return -1!==Function.toString.call(e).indexOf("[native code]")}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e){return(g="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})(e)}var v=r(177).inspect,w=r(23).codes.ERR_INVALID_ARG_TYPE;function _(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function S(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,r-e.length)}var E="",x="",k="",A="",M={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},O=10;function j(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(t){r[t]=e[t]}),Object.defineProperty(r,"message",{value:e.message}),r}function R(e){return v(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function C(e,t,r){var n="",o="",a=0,s="",u=!1,c=R(e),l=c.split("\n"),f=R(t).split("\n"),d=0,h="";if("strictEqual"===r&&"object"===g(e)&&"object"===g(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===l.length&&1===f.length&&l[0]!==f[0]){var p=l[0].length+f[0].length;if(p<=O){if(("object"!==g(e)||null===e)&&("object"!==g(t)||null===t)&&(0!==e||0!==t))return"".concat(M[r],"\n\n")+"".concat(l[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==r&&p<(i.stderr&&i.stderr.isTTY?i.stderr.columns:80)){for(;l[0][d]===f[0][d];)d++;d>2&&(h="\n ".concat(S(" ",d),"^"),d=0)}}for(var m=l[l.length-1],y=f[f.length-1];m===y&&(d++<2?s="\n ".concat(m).concat(s):n=m,l.pop(),f.pop(),0!==l.length&&0!==f.length);)m=l[l.length-1],y=f[f.length-1];var b=Math.max(l.length,f.length);if(0===b){var v=c.split("\n");if(v.length>30)for(v[26]="".concat(E,"...").concat(A);v.length>27;)v.pop();return"".concat(M.notIdentical,"\n\n").concat(v.join("\n"),"\n")}d>
vendor: 4,193 bytes, line 19
193&&(s="\n".concat(E,"...").concat(A).concat(s),u=!0),""!==n&&(s="\n ".concat(n).concat(s),n="");var w=0,j=M[r]+"\n".concat(x,"+ actual").concat(A," ").concat(k,"- expected").concat(A),C=" ".concat(E,"...").concat(A," Lines skipped");for(d=0;d<b;d++){var P=d-a;if(l.length<d+1)P>1&&d>2&&(P>4?(o+="\n".concat(E,"...").concat(A),u=!0):P>3&&(o+="\n ".concat(f[d-2]),w++),o+="\n ".concat(f[d-1]),w++),a=d,n+="\n".concat(k,"-").concat(A," ").concat(f[d]),w++;else if(f.length<d+1)P>1&&d>2&&(P>4?(o+="\n".concat(E,"...").concat(A),u=!0):P>3&&(o+="\n ".concat(l[d-2]),w++),o+="\n ".concat(l[d-1]),w++),a=d,o+="\n".concat(x,"+").concat(A," ").concat(l[d]),w++;else{var T=f[d],I=l[d],N=I!==T&&(!_(I,",")||I.slice(0,-1)!==T);N&&_(T,",")&&T.slice(0,-1)===I&&(N=!1,I+=","),N?(P>1&&d>2&&(P>4?(o+="\n".concat(E,"...").concat(A),u=!0):P>3&&(o+="\n ".concat(l[d-2]),w++),o+="\n ".concat(l[d-1]),w++),a=d,o+="\n".concat(x,"+").concat(A," ").concat(I),n+="\n".concat(k,"-").concat(A," ").concat(T),w+=2):(o+=n,n="",(1===P||0===d)&&(o+="\n ".concat(I),w++))}if(w>20&&d<b-2)return"".concat(j).concat(C,"\n").concat(o,"\n").concat(E,"...").concat(A).concat(n,"\n")+"".concat(E,"...").concat(A)}return"".concat(j).concat(u?C:"","\n").concat(o).concat(n).concat(s).concat(h)}var P=function(e){function t(e){if(a(this,t),"object"!==g(e)||null===e)throw new w("options","Object",e);var r,n=e.message,o=e.operator,s=e.stackStartFn,u=e.actual,f=e.expected,d=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=n)r=c(this,b(t).call(this,String(n)));else if(i.stderr&&i.stderr.isTTY&&(i.stderr&&i.stderr.getColorDepth&&1!==i.stderr.getColorDepth()?(E="\x1b[34m",x="\x1b[32m",A="\x1b[39m",k="\x1b[31m"):(E="",x="",A="",k="")),"object"===g(u)&&null!==u&&"object"===g(f)&&null!==f&&"stack"in u&&u instanceof Error&&"stack"in f&&f instanceof Error&&(u=j(u),f=j(f)),"deepStrictEqual"===o||"strictEqual"===o)r=c(this,b(t).call(this,C(u,f,o)));else if("notDeepStrictEqual"===o||"notStrictEqual"===o){var h=M[o],p=R(u).split("\n");if("notStrictEqual"===o&&"object"===g(u)&&null!==u&&(h=M.notStrictEqualObject),p.length>30)for(p[26]="".concat(E,"...").concat(A);p.length>27;)p.pop();r=1===p.length?c(this,b(t).call(this,"".concat(h," ").concat(p[0]))):c(this,b(t).call(this,"".concat(h,"\n\n").concat(p.join("\n"),"\n")))}else{var m=R(u),y="",v=M[o];"notDeepEqual"===o||"notEqual"===o?(m="".concat(M[o],"\n\n").concat(m)).length>1024&&(m="".concat(m.slice(0,1021),"...")):(y="".concat(R(f)),m.length>512&&(m="".concat(m.slice(0,509),"...")),y.length>512&&(y="".concat(y.slice(0,509),"...")),"deepEqual"===o||"equal"===o?m="".concat(v,"\n\n").concat(m,"\n\nshould equal\n\n"):y=" ".concat(o," ").concat(y)),r=c(this,b(t).call(this,"".concat(m).concat(y)))}return Error.stackTraceLimit=d,r.generatedMessage=!n,Object.defineProperty(l(r),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),r.code="ERR_ASSERTION",r.actual=u,r.expected=f,r.operator=o,Error.captureStackTrace&&Error.captureStackTrace(l(r),s),r.stack,r.name="AssertionError",c(r)}return f(t,e),u(t,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:v.custom,value:function(e,t){return v(this,n({},t,{customInspect:!1,depth:0}))}}]),t}(d(Error));e.exports=P},23:function(e,t,r){"use strict";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})(e)}function i(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function o(e,t){return t&&("object"===n(t)||"function"==typeof t)?t:a(e)}function a(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}
19function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l,f,d={};function h(e,t,r){function n(e,r,n){return"string"==typeof t?t:t(e,r,n)}r||(r=Error);var a=function(t){function r(t,a,u){var c;return i(this,r),(c=o(this,s(r).call(this,n(t,a,u)))).code=e,c}return u(r,t),r}(r);d[e]=a}function p(e,t){if(!Array.isArray(e))return"of ".concat(t," ").concat(String(e));var r=e.length;return(e=e.map(function(e){return String(e)}),r>2)?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}function m(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function y(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function b(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}h("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),h("ERR_INVALID_ARG_TYPE",function(e,t,i){if(void 0===l&&(l=r(167)),l("string"==typeof e,"'name' must be a string"),"string"==typeof t&&m(t,"not ")?(o="must not be",t=t.replace(/^not /,"")):o="must be",y(e," argument"))a="The ".concat(e," ").concat(o," ").concat(p(t,"type"));else{var o,a,s=b(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(s," ").concat(o," ").concat(p(t,"type"))}return a+". Received type ".concat(n(i))},TypeError),h("ERR_INVALID_ARG_VALUE",function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===f&&(f=r(177));var i=f.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(n,". Received ").concat(i)},TypeError,RangeError),h("ERR_INVALID_RETURN_VALUE",function(e,t,r){var i;return i=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")},TypeError),h("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];void 0===l&&(l=r(167)),l(t.length>0,"At least one arg needs to be specified");var i="The ",o=t.length;switch(t=t.map(function(e){return'"'.concat(e,'"')}),o){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,o-1).join(", ")+", and ".concat(t[o-1]," arguments")}return"".concat(i," must be specified")},TypeError),e.exports.codes=d},176:function(e,t,r){"use strict";function n(e,t){return a(e)||o(e,t)||i()}function i(){throw TypeError("Invalid attempt to destructure non-iterable instance")}function o(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}function a(e){if(Array.isArray(e))return e}function s(e){return(s="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})(e)}var u=void 0!==/a/g.flags,c=function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t},l=function(e){var t=[];return e.forEach(function(e,r){return t.push([r,e])}),t},f=Object.is?Object.is:r(208),d=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},h=Number.isNaN?Number.isNaN:r(718);function p(e){return e.call.bind(e)}var m=p(Object.prototype.hasOwnProperty),y=p(Object.prototype.propertyIsEnumerable),b=p(Object.prototype.toString),g=r(177).types,v=g.isAnyArrayBuffer,w=g.isArrayBufferView,_=g.isDate,S=g.isMap,E=g.isRegExp,x=g.isSet,k=g.isNativeError,A=g.isBoxedPrimitive,M=g.isNumberObject,O=g.isStringObject,j=g.isBooleanObject,R=g.isBigIntObject,C=g.isSymbolObject,P=g.isFloat32Array,T=g.isFloat64Array;function I(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<48||r>57)return!0}return 10===e.length&&e>=4294967296}function N(e){return Object.keys(e).filter(I).concat(d(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}/*! 20 * The buffer module from node.js, for the browser. 21 * 22 * @author Feross Aboukhadijeh <[email protected]> <http://feross.org> 23 * @license MIT 24 */function D(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0}var L=void 0,B=!0,U=!1,$=0,H=1,F=2,q=3;function W(e,t){return u?e.source===t.source&&e.flags===t.flags:RegExp.prototype.toString.call(e)===RegExp.prototype.toString.call(t)}function z(e,t){if(e.byteLength!==t.byteLength)return!1;for(var r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0}function K(e,t){return e.byteLength===t.byteLength&&0===D(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function Z(e,t){return e.byteLength===t.byteLength&&0===D(new Uint8Array(e),new Uint8Array(t))}function J(e,t){return M(e)?M(t)&&f(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):O(e)?O(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):j(e)?j(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):R(e)?R(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):C(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}function G(e,t,r,n){if(e===t)return 0!==e||!r||f(e,t);if(r){if("object"!==s(e))return"number"==typeof e&&h(e)&&h(t);if("object"!==s(t)||null===e||null===t||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==s(e))return(null===t||"object"!==s(t))&&e==t;if(null===t||"object"!==s(t))return!1}var i=b(e);if(i!==b(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var o=N(e,L),a=N(t,L);return o.length===a.length&&Y(e,t,r,n,H,o)}if("[object Object]"===i&&(!S(e)&&S(t)||!x(e)&&x(t)))return!1;if(_(e)){if(!_(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(E(e)){if(!E(t)||!W(e,t))return!1}else if(k(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else if(w(e)){if(!r&&(P(e)||T(e))){if(!z(e,t))return!1}else if(!K(e,t))return!1;var u=N(e,L),c=N(t,L);return u.length===c.length&&Y(e,t,r,n,$,u)}else if(x(e))return!!x(t)&&e.size===t.size&&Y(e,t,r,n,F);else if(S(e))return!!S(t)&&e.size===t.size&&Y(e,t,r,n,q);else if(v(e)){if(!Z(e,t))return!1}else if(A(e)&&!J(e,t))return!1;return Y(e,t,r,n,$)}function V(e,t){return t.filter(function(t){return y(e,t)})}function Y(e,t,r,n,i,o){if(5==arguments.length){o=Object.keys(e);var a=Object.keys(t);if(o.length!==a.length)return!1}for(var s=0;s<o.length;s++)if(!m(t,o[s]))return!1;if(r&&5==arguments.length){var u=d(e);if(0!==u.length){var c=0;for(s=0;s<u.length;s++){var l=u[s];if(y(e,l)){if(!y(t,l))return!1;o.push(l),c++}else if(y(t,l))return!1}var f=d(t);if(u.length!==f.length&&V(t,f).length!==c)return!1}else{var h=d(t);if(0!==h.length&&0!==V(t,h).length)return!1}}if(0===o.length&&(i===$||i===H&&0===e.length||0===e.size))return!0;
24if(void 0===n)n={val1:new Map,val2:new Map,position:0};else{var p=n.val1.get(e);if(void 0!==p){var b=n.val2.get(t);if(void 0!==b)return p===b}n.position++}n.val1.set(e,n.position),n.val2.set(t,n.position);var g=eo(e,t,r,o,n,i);return n.val1.delete(e),n.val2.delete(t),g}function X(e,t,r,n){for(var i=c(e),o=0;o<i.length;o++){var a=i[o];if(G(t,a,r,n))return e.delete(a),!0}return!1}function Q(e){switch(s(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(h(e))return!1}return!0}function ee(e,t,r){var n=Q(r);return null!=n?n:t.has(n)&&!e.has(n)}function et(e,t,r,n,i){var o=Q(r);if(null!=o)return o;var a=t.get(o);return!!((void 0!==a||t.has(o))&&G(n,a,!1,i))&&!e.has(o)&&G(n,a,!1,i)}function er(e,t,r,n){for(var i=null,o=c(e),a=0;a<o.length;a++){var u=o[a];if("object"===s(u)&&null!==u)null===i&&(i=new Set),i.add(u);else if(!t.has(u)){if(r||!ee(e,t,u))return!1;null===i&&(i=new Set),i.add(u)}}if(null!==i){for(var l=c(t),f=0;f<l.length;f++){var d=l[f];if("object"===s(d)&&null!==d){if(!X(i,d,r,n))return!1}else if(!r&&!e.has(d)&&!X(i,d,r,n))return!1}return 0===i.size}return!0}function en(e,t,r,n,i,o){for(var a=c(e),s=0;s<a.length;s++){var u=a[s];if(G(r,u,i,o)&&G(n,t.get(u),i,o))return e.delete(u),!0}return!1}function ei(e,t,r,i){for(var o=null,a=l(e),u=0;u<a.length;u++){var c=n(a[u],2),f=c[0],d=c[1];if("object"===s(f)&&null!==f)null===o&&(o=new Set),o.add(f);else{var h=t.get(f);if(void 0===h&&!t.has(f)||!G(d,h,r,i)){if(r||!et(e,t,f,d,i))return!1;null===o&&(o=new Set),o.add(f)}}}if(null!==o){for(var p=l(t),m=0;m<p.length;m++){var y=n(p[m],2),f=y[0],b=y[1];if("object"===s(f)&&null!==f){if(!en(o,e,f,b,r,i))return!1}else if(!r&&(!e.has(f)||!G(e.get(f),b,!1,i))&&!en(o,e,f,b,!1,i))return!1}return 0===o.size}return!0}function eo(e,t,r,n,i,o){var a=0;if(o===F){if(!er(e,t,r,i))return!1}else if(o===q){if(!ei(e,t,r,i))return!1}else if(o===H)for(;a<e.length;a++)if(m(e,a)){if(!m(t,a)||!G(e[a],t[a],r,i))return!1}else{if(m(t,a))return!1;for(var s=Object.keys(e);a<s.length;a++){var u=s[a];if(!m(t,u)||!G(e[u],t[u],r,i))return!1}if(s.length!==Object.keys(t).length)return!1;return!0}for(a=0;a<n.length;a++){var c=n[a];if(!G(e[c],t[c],r,i))return!1}return!0}function ea(e,t){return G(e,t,U)}function es(e,t){return G(e,t,B)}e.exports={isDeepEqual:ea,isDeepStrictEqual:es}},256:function(e,t,r){"use strict";var n=r(500),i=r(139),o=i(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i(r):r}},139:function(e,t,r){"use strict";var n=r(174),i=r(500),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||n.call(a,o),u=i("%Object.getOwnPropertyDescriptor%",!0),c=i("%Object.defineProperty%",!0),l=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=s(n,a,arguments);return u&&c&&u(t,"length").configurable&&c(t,"length",{value:1+l(0,e.length-(arguments.length-1))}),t};var f=function(){return s(n,o,arguments)};c?c(e.exports,"apply",{value:f}):e.exports.apply=f},69:function(e,t,r){"use strict";var n=r(935),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,u=function(e){return"function"==typeof e&&"[object Function]"===o.call(e)},c=function(){var e={};try{for(var t in s(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}},l=s&&c(),f=function(e,t,r,n){(!(t in e)||u(n)&&n())&&(l?s(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},d=function(e,t){var r=arguments.length>2?arguments[2]:{},o=n(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s<o.length;s+=1)f(e,o[s],t[o[s]],r[o[s]])};d.supportsDescriptors=!!l,e.exports=d},604:function(e){"use strict";function t(e,t){if(null==e)throw TypeError("Cannot convert first argument to object");for(var r=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var o=Object.keys(Object(i)),a=0,s=o.length;a<s;a++){var u=o[a],c=Object.getOwnPropertyDescriptor(i,u);void 0!==c&&c.enumerable&&(r[u]=i[u])}}return r}function r(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,
24configurable:!0,writable:!0,value:t})}e.exports={assign:t,polyfill:r}},144:function(e){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,n,i){if("[object Function]"!==r.call(n))throw TypeError("iterator must be a function");var o=e.length;if(o===+o)for(var a=0;a<o;a++)n.call(i,e[a],a,e);else for(var s in e)t.call(e,s)&&n.call(i,e[s],s,e)}},426:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,n=Object.prototype.toString,i="[object Function]";e.exports=function(e){var o,a=this;if("function"!=typeof a||n.call(a)!==i)throw TypeError(t+a);for(var s=r.call(arguments,1),u=function(){if(!(this instanceof o))return a.apply(e,s.concat(r.call(arguments)));var t=a.apply(this,s.concat(r.call(arguments)));return Object(t)===t?t:this},c=Math.max(0,a.length-s.length),l=[],f=0;f<c;f++)l.push("$"+f);if(o=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(u),a.prototype){var d=function(){};d.prototype=a.prototype,o.prototype=new d,d.prototype=null}return o}},174:function(e,t,r){"use strict";var n=r(426);e.exports=Function.prototype.bind||n},500:function(e,t,r){"use strict";var n,i=SyntaxError,o=Function,a=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(e){u=null}var c=function(){throw new a},l=u?function(){try{return arguments.callee,c}catch(e){try{return u(arguments,"callee").get}catch(e){return c}}}():c,f=r(115)(),d=Object.getPrototypeOf||function(e){return e.__proto__},h={},p="undefined"==typeof Uint8Array?n:d(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":f?d([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
24IteratorPrototype%":f?d(d([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?d((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f?d((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?d(""[Symbol.iterator]()):n,"%Symbol%":f?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":l,"%TypedArray%":p,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},y=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(r=d(i.prototype))}return m[t]=r,r},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=r(174),v=r(101),w=g.call(Function.call,Array.prototype.concat),_=g.call(Function.apply,Array.prototype.splice),S=g.call(Function.call,String.prototype.replace),E=g.call(Function.call,String.prototype.slice),x=g.call(Function.call,RegExp.prototype.exec),k=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,A=/\\(\\)?/g,M=function(e){var t=E(e,0,1),r=E(e,-1);if("%"===t&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return S(e,k,function(e,t,r,i){n[n.length]=r?S(i,A,"$1"):t||e}),n},O=function(e,t){var r,n=e;if(v(b,n)&&(n="%"+(r=b[n])[0]+"%"),v(m,n)){var o=m[n];if(o===h&&(o=y(n)),void 0===o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===x(/^%?[^%]*%?$/g,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=M(e),n=r.length>0?r[0]:"",o=O("%"+n+"%",t),s=o.name,c=o.value,l=!1,f=o.alias;f&&(n=f[0],_(r,w([0,1],f)));for(var d=1,h=!0;d<r.length;d+=1){var p=r[d],y=E(p,0,1),b=E(p,-1);if(('"'===y||"'"===y||"`"===y||'"'===b||"'"===b||"`"===b)&&y!==b)throw new i("property names with quotes must have matching quotes");if("constructor"!==p&&h||(l=!0),n+="."+p,v(m,s="%"+n+"%"))c=m[s];else if(null!=c){if(!(p in c)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(u&&d+1>=r.length){var g=u(c,p);c=(h=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:c[p]}else h=v(c,p),c=c[p];h&&!l&&(m[s]=c)}}return c}},942:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(773);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},773:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(t in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==n||!0!==o.enumerable)return!1}return!0}},115:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(832);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},832:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(t in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==n||!0!==o.enumerable)return!1}return!0}},101:function(e,t,r){"use strict";var n=r(174);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},157:function(e){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,r=Object.prototype.toString,n=function(e){return(!t||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===r.call(e)},i=function(e){return!!n(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==r.call(e)&&"[object Function]"===r.call(e.callee)},o=function(){return n(arguments)}();n.isLegacyArguments=i,e.exports=o?n:i},391:function(e){"use strict";var t=Object.prototype.toString,r=Function.prototype.toString,n=/^\s*(?:function)?\*/,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,o=Object.getPrototypeOf,a=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch(e){}}(),s=a?o(a):{};e.exports=function(e){return"function"==typeof e&&(!!n.test(r.call(e))||(i?o(e)===s:"[object GeneratorFunction]"===t.call(e)))}},460:function(e){"use strict";e.exports=function(e){return e!=e}},718:function(e,t,r){"use strict";var n=r(139),i=r(69),o=r(460),a=r(625),s=r(171),u=n(a(),Number);i(u,{getPolyfill:a,implementation:o,shim:s}),e.exports=u},625:function(e,t,r){"use strict";var n=r(460);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},171:function(e,t,r){"use strict";var n=r(69),i=r(625);e.exports=function(){var e=i();return n(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},994:function(e,t,n){"use strict";var i=n(144),o=n(349),a=n(256),s=a("Object.prototype.toString"),u=n(942)()&&"symbol"==typeof Symbol.toStringTag,c=o(),l=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return -1},f=a("String.prototype.slice"),d={},h=n(466),p=Object.getPrototypeOf;u&&h&&p&&i(c,function(e){var t=new r.g[e];
24if(!(Symbol.toStringTag in t))throw EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var n=p(t),i=h(n,Symbol.toStringTag);i||(i=h(p(n),Symbol.toStringTag)),d[e]=i.get});var m=function(e){var t=!1;return i(d,function(r,n){if(!t)try{t=r.call(e)===n}catch(e){}}),t};e.exports=function(e){return!!e&&"object"==typeof e&&(u?!!h&&m(e):l(c,f(s(e),8,-1))>-1)}},208:function(e){"use strict";var t=function(e){return e!=e};e.exports=function(e,r){return 0===e&&0===r?1/e==1/r:!!(e===r||t(e)&&t(r))}},579:function(e,t,r){"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=r(412),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),c=s.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{f(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),p=function(e){if("undefined"==typeof window||!h)return f(e);try{return f(e)}catch(e){return!1}};n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===o.call(e),n=a(e),s=t&&"[object String]"===o.call(e),f=[];if(!t&&!r&&!n)throw TypeError("Object.keys called on a non-object");var d=c&&r;if(s&&e.length>0&&!i.call(e,0))for(var h=0;h<e.length;++h)f.push(String(h));if(n&&e.length>0)for(var m=0;m<e.length;++m)f.push(String(m));else for(var y in e)!(d&&"prototype"===y)&&i.call(e,y)&&f.push(String(y));if(u)for(var b=p(e),g=0;g<l.length;++g)!(b&&"constructor"===l[g])&&i.call(e,l[g])&&f.push(l[g]);return f}}e.exports=n},935:function(e,t,r){"use strict";var n=Array.prototype.slice,i=r(412),o=Object.keys,a=o?function(e){return o(e)}:r(579),s=Object.keys;a.shim=function(){return Object.keys?!function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)&&(Object.keys=function(e){return i(e)?s(n.call(e)):s(e)}):Object.keys=a,Object.keys||a},e.exports=a},412:function(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},369:function(e){e.exports=function(e){return e instanceof o}},584:function(e,t,r){"use strict";var n=r(157),i=r(391),o=r(490),a=r(994);function s(e){return e.call.bind(e)}var u="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,l=s(Object.prototype.toString),f=s(Number.prototype.valueOf),d=s(String.prototype.valueOf),h=s(Boolean.prototype.valueOf);if(u)var p=s(BigInt.prototype.valueOf);if(c)var m=s(Symbol.prototype.valueOf);function y(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function b(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch}function g(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||H(e)}function v(e){return"Uint8Array"===o(e)}function w(e){return"Uint8ClampedArray"===o(e)}function _(e){return"Uint16Array"===o(e)}function S(e){return"Uint32Array"===o(e)}function E(e){return"Int8Array"===o(e)}function x(e){return"Int16Array"===o(e)}function k(e){return"Int32Array"===o(e)}function A(e){return"Float32Array"===o(e)}function M(e){return"Float64Array"===o(e)}function O(e){return"BigInt64Array"===o(e)}function j(e){return"BigUint64Array"===o(e)}function R(e){return"[object Map]"===l(e)}function C(e){return"undefined"!=typeof Map&&(R.working?R(e):e instanceof Map)}function P(e){return"[object Set]"===l(e)}function T(e){return"undefined"!=typeof Set&&(P.working?P(e):e instanceof Set)}function I(e){return"[object WeakMap]"===l(e)}function N(e){return"undefined"!=typeof WeakMap&&(I.working?I(e):e instanceof WeakMap)}function D(e){return"[object WeakSet]"===l(e)}function L(e){return D(e)}function B(e){return"[object ArrayBuffer]"===l(e)}function U(e){return"undefined"!=typeof ArrayBuffer&&(B.working?B(e):e instanceof ArrayBuffer)}function $(e){return"[object DataView]"===l(e)}
vendor: 3,030 bytes, line 24
24function H(e){return"undefined"!=typeof DataView&&($.working?$(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=b,t.isArrayBufferView=g,t.isUint8Array=v,t.isUint8ClampedArray=w,t.isUint16Array=_,t.isUint32Array=S,t.isInt8Array=E,t.isInt16Array=x,t.isInt32Array=k,t.isFloat32Array=A,t.isFloat64Array=M,t.isBigInt64Array=O,t.isBigUint64Array=j,R.working="undefined"!=typeof Map&&R(new Map),t.isMap=C,P.working="undefined"!=typeof Set&&P(new Set),t.isSet=T,I.working="undefined"!=typeof WeakMap&&I(new WeakMap),t.isWeakMap=N,D.working="undefined"!=typeof WeakSet&&D(new WeakSet),t.isWeakSet=L,B.working="undefined"!=typeof ArrayBuffer&&B(new ArrayBuffer),t.isArrayBuffer=U,$.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&$(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=H;var F="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function q(e){return"[object SharedArrayBuffer]"===l(e)}function W(e){return void 0!==F&&(void 0===q.working&&(q.working=q(new F)),q.working?q(e):e instanceof F)}function z(e){return"[object AsyncFunction]"===l(e)}function K(e){return"[object Map Iterator]"===l(e)}function Z(e){return"[object Set Iterator]"===l(e)}function J(e){return"[object Generator]"===l(e)}function G(e){return"[object WebAssembly.Module]"===l(e)}function V(e){return y(e,f)}function Y(e){return y(e,d)}function X(e){return y(e,h)}function Q(e){return u&&y(e,p)}function ee(e){return c&&y(e,m)}function et(e){return V(e)||Y(e)||X(e)||Q(e)||ee(e)}function er(e){return"undefined"!=typeof Uint8Array&&(U(e)||W(e))}t.isSharedArrayBuffer=W,t.isAsyncFunction=z,t.isMapIterator=K,t.isSetIterator=Z,t.isGeneratorObject=J,t.isWebAssemblyCompiledModule=G,t.isNumberObject=V,t.isStringObject=Y,t.isBooleanObject=X,t.isBigIntObject=Q,t.isSymbolObject=ee,t.isBoxedPrimitive=et,t.isAnyArrayBuffer=er,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},177:function(e,t,r){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},o=/%[sdj%]/g;t.format=function(e){if(!x(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(c(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,i=n.length,a=String(e).replace(o,function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),s=n[r];r<i;s=n[++r])_(s)||!O(s)?a+=" "+s:a+=" "+c(s);return a},t.deprecate=function(e,r){if(void 0!==i&&!0===i.noDeprecation)return e;if(void 0===i)return function(){return t.deprecate(e,r).apply(this,arguments)};var n=!1;return function(){if(!n){if(i.throwDeprecation)throw Error(r);i.traceDeprecation?console.trace(r):console.error(r),n=!0}return e.apply(this,arguments)}};var a={},s=/^$/;
vendor: 4,742 bytes, line 24
24if(i.env.NODE_DEBUG){var u=i.env.NODE_DEBUG;s=RegExp("^"+(u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function c(e,r){var n={seen:[],stylize:f};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),w(r)?n.showHidden=r:r&&t._extend(n,r),A(n.showHidden)&&(n.showHidden=!1),A(n.depth)&&(n.depth=2),A(n.colors)&&(n.colors=!1),A(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),h(n,e,n.depth)}function l(e,t){var r=c.styles[t];return r?"\x1b["+c.colors[r][0]+"m"+e+"\x1b["+c.colors[r][1]+"m":e}function f(e,t){return e}function d(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function h(e,r,n){if(e.customInspect&&r&&C(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var i,o=r.inspect(n,e);return x(o)||(o=h(e,o,n)),o}var a=p(e,r);if(a)return a;var s=Object.keys(r),u=d(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),R(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return m(r);if(0===s.length){if(C(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(M(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(j(r))return e.stylize(Date.prototype.toString.call(r),"date");if(R(r))return m(r)}var l="",f=!1,w=["{","}"];return(v(r)&&(f=!0,w=["[","]"]),C(r)&&(l=" [Function"+(r.name?": "+r.name:"")+"]"),M(r)&&(l=" "+RegExp.prototype.toString.call(r)),j(r)&&(l=" "+Date.prototype.toUTCString.call(r)),R(r)&&(l=" "+m(r)),0!==s.length||f&&0!=r.length)?n<0?M(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),i=f?y(e,r,n,u,s):s.map(function(t){return b(e,r,n,u,t,f)}),e.seen.pop(),g(i,l,w)):w[0]+l+w[1]}function p(e,t){if(A(t))return e.stylize("undefined","undefined");if(x(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return E(t)?e.stylize(""+t,"number"):w(t)?e.stylize(""+t,"boolean"):_(t)?e.stylize("null","null"):void 0}function m(e){return"["+Error.prototype.toString.call(e)+"]"}function y(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)L(t,String(a))?o.push(b(e,t,r,n,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(b(e,t,r,n,i,!0))}),o}function b(e,t,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),L(n,i)||(a="["+i+"]"),!s&&(0>e.seen.indexOf(u.value)?(s=_(r)?h(e,u.value,null):h(e,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),A(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function g(e,t,r){var n=0;return e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function v(e){return Array.isArray(e)}function w(e){return"boolean"==typeof e}function _(e){return null===e}function S(e){return null==e}function E(e){return"number"==typeof e}function x(e){return"string"==typeof e}function k(e){return"symbol"==typeof e}function A(e){return void 0===e}function M(e){return O(e)&&"[object RegExp]"===T(e)}function O(e){return"object"==typeof e&&null!==e}function j(e){return O(e)&&"[object Date]"===T(e)}function R(e){return O(e)&&("[object Error]"===T(e)||e instanceof Error)}function C(e){return"function"==typeof e}function P(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function T(e){return Object.prototype.toString.call(e)}function I(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!a[e=e.toUpperCase()]){if(s.test(e)){var r=i.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){}}return a[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(584),t.isArray=v,t.isBoolean=w,t.isNull=_,t.isNullOrUndefined=S,t.isNumber=E,t.isString=x,t.isSymbol
24=k,t.isUndefined=A,t.isRegExp=M,t.types.isRegExp=M,t.isObject=O,t.isDate=j,t.types.isDate=j,t.isError=R,t.types.isNativeError=R,t.isFunction=C,t.isPrimitive=P,t.isBuffer=r(369);var N=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function D(){var e=new Date,t=[I(e.getHours()),I(e.getMinutes()),I(e.getSeconds())].join(":");return[e.getDate(),N[e.getMonth()],t].join(" ")}function L(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",D(),t.format.apply(t,arguments))},t.inherits=r(782),t._extend=function(e,t){if(!t||!O(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var B="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function U(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}function $(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var n=t.pop();if("function"!=typeof n)throw TypeError("The last argument must be of type Function");var o=this,a=function(){return n.apply(o,arguments)};e.apply(this,t).then(function(e){i.nextTick(a.bind(null,null,e))},function(e){i.nextTick(U.bind(null,e,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,n(e)),t}t.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(B&&e[B]){var t=e[B];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,B,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push(function(e,n){e?r(e):t(n)});try{e.apply(this,i)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),B&&Object.defineProperty(t,B,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,n(e))},t.promisify.custom=B,t.callbackify=$},490:function(e,t,n){"use strict";var i=n(144),o=n(349),a=n(256),s=a("Object.prototype.toString"),u=n(942)()&&"symbol"==typeof Symbol.toStringTag,c=o(),l=a("String.prototype.slice"),f={},d=n(466),h=Object.getPrototypeOf;u&&d&&h&&i(c,function(e){if("function"==typeof r.g[e]){var t=new r.g[e];if(!(Symbol.toStringTag in t))throw EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var n=h(t),i=d(n,Symbol.toStringTag);i||(i=d(h(n),Symbol.toStringTag)),f[e]=i.get}});var p=function(e){var t=!1;return i(f,function(r,n){if(!t)try{var i=r.call(e);i===n&&(t=i)}catch(e){}}),t},m=n(994);e.exports=function(e){return!!m(e)&&(u?p(e):l(s(e),8,-1))}},349:function(e,t,n){"use strict";var i=n(992);e.exports=function(){return i(["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],function(e){return"function"==typeof r.g[e]})}},466:function(e,t,r){"use strict";var n=r(500)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n}},a={};function s(e){var r=a[e];if(void 0!==r)return r.exports;var n=a[e]={exports:{}},i=!0;try{t[e](n,n.exports,s),i=!1}finally{i&&delete a[e]}return n.exports}s.ab=n+"/";var u=s(167);e.exports=u}()},1876:function(e){var t="/";!function(){var r={675:function(e,t){"use strict";t.byteLength=c,t.toByteArray=f,t.fromByteArray=p;for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function c(e){var t=u(e),r=t[0],n=t[1];return(r+n)*3/4-n}function l(e,t,r){return(t+r)*3/4-r}function f(e){var t,r,o=u(e),a=o[0],s=o[1],c=new i(l(e,a,s)),f=0,d=s>0?a-4:a;for(r=0;r<d;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],c[f++]=t>>16&255,c[f++]=t>>8&255,c[f++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[f++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[f++]=t>>8&255,c[f++]=255&t),c}function d(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function h(e,t,r){for(var n=[],i=t;i<r;i+=3)n.push(d((e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2])));return n.join("")}function p(e){for(var t,n=e.length,i=n%3,o=[],a=16383,s=0,u=n-i;s<u;s+=a)o.push(h(e,s,s+a>u?u:s+a));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},72:function(e,t,r){"use strict";/*! 25 * The buffer module from node.js, for the browser. 26 * 27 * @author Feross Aboukhadijeh <https://feross.org> 28 * @license MIT 29 */var n=r(675),i=r(783),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=v,t.INSPECT_MAX_BYTES=50;var a=2147483647;function s(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}function u(e){if(e>
vendor: 4,609 bytes, line 29
29a)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return h(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return p(e,t);if(ArrayBuffer.isView(e))return m(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return y(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return c.from(n,t,r);var i=b(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function f(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function d(e,t,r){return(f(e),e<=0)?u(e):void 0!==t?"string"==typeof r?u(e).fill(t,r):u(e).fill(t):u(e)}function h(e){return f(e),u(e<0?0:0|g(e))}function p(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!c.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|w(e,t),n=u(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function m(e){for(var t=e.length<0?0:0|g(e.length),r=u(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function y(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),c.prototype),n}function b(e){if(c.isBuffer(e)){var t=0|g(e.length),r=u(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||X(e.length)?u(0):m(e):"Buffer"===e.type&&Array.isArray(e.data)?m(e.data):void 0}function g(e){if(e>=a)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function v(e){return+e!=e&&(e=0),c.alloc(+e)}function w(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return G(e).length;default:if(i)return n?-1:K(e).length;t=(""+t).toLowerCase(),i=!0}}function _(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return L(this,t,r);case"utf8":case"utf-8":return P(this,t,r);case"ascii":return N(this,t,r);case"latin1":case"binary":return D(this,t,r);case"base64":return C(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,r);default:if(n)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function S(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function E(e,t,r,n,i){if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),X(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:x(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):x(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function x(e,t,r,n,i){var o,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,u/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=r;o<s;
vendor: 13,748 bytes, line 29
29o++)if(c(e,o)===c(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*a}else -1!==l&&(o-=o-l),l=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){for(var f=!0,d=0;d<u;d++)if(c(e,o+d)!==c(t,d)){f=!1;break}if(f)return o}return -1}function k(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(X(s))break;e[r+a]=s}return a}function A(e,t,r,n){return V(K(t,e.length-r),e,r,n)}function M(e,t,r,n){return V(Z(t),e,r,n)}function O(e,t,r,n){return M(e,t,r,n)}function j(e,t,r,n){return V(G(t),e,r,n)}function R(e,t,r,n){return V(J(t,e.length-r),e,r,n)}function C(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function P(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,a,s,u,c=e[i],l=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=r)switch(f){case 1:c<128&&(l=c);break;case 2:(192&(o=e[i+1]))==128&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=f}return I(n)}t.kMaxLength=a,c.TYPED_ARRAY_SUPPORT=s(),c.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return d(e,t,r)},c.allocUnsafe=function(e){return h(e)},c.allocUnsafeSlow=function(e){return h(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(Y(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),Y(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=c.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(Y(o,Uint8Array)&&(o=c.from(o)),!c.isBuffer(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},c.byteLength=w,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)S(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)S(this,t,t+3),S(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)S(this,t,t+7),S(this,t+1,t+6),S(this,t+2,t+5),S(this,t+3,t+4);return this},c.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?P(this,0,e):_.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(e,t,r,n,i){if(Y(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,s=Math.min(o,a),u=this.slice(n,i),l=e.slice(t,r),f=0;f<s;++f)if(u[f]!==l[f]){o=u[f],a=l[f];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return E(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return E(this,e,t,r,!1)},c.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return k(this,e,t,r);case"utf8":case"utf-8":return A(this,e,t,r);case"ascii":return M(this,e,t,r);case"latin1":case"binary":return O(this,e,t,r);case"base64":return j(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,t,r);default:if(o)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function I(e){var t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=T));return r}function N(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function D(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function L(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=Q[e[o]];return i}function B(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function U(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function $(e,t,r,n,i,o){if(!c.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function H(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function F(e,t,r,n,o){return t=+t,r>>>=0,o||H(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function q(e,t,r,n,o){return t=+t,r>>>=0,o||H(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,c.prototype),n},c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||U(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||U(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},c.prototype.readUInt8=function(e,t){return e>>>=0,t||U(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||U(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||U(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||U(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||U(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||U(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||U(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return(e>>>=0,t||U(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||U(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||U(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||U(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||U(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||U(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||U(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||U(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||U(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;$(this,e,t,r,i,0)}var o=1,a=0;for(this[t]=255&e;++a<r&&(o*=256);)this[t+a]=e/o&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;$(this,e,t,r,i,0)}var o=r-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||$(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||$(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||$(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||$(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||$(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);$(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);$(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||$(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||$(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||$(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||$(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||$(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return F(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return F(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return q(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return q(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(!c.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var o=i-1;o>=0;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return i},c.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!c.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var i,o=e.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var a=c.isBuffer(e)?e:c.from(e,n),s=a.length;
29if(0===s)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=a[i%s]}return this};var W=/[^+/0-9A-Za-z-_]/g;function z(e){if((e=(e=e.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function K(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function Z(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function J(e,t){for(var r,n,i=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}function G(e){return n.toByteArray(z(e))}function V(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function Y(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function X(e){return e!=e}var Q=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},783:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,c=u>>1,l=-7,f=r?i-1:0,d=r?-1:1,h=e[t+f];for(f+=d,o=h&(1<<-l)-1,h>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+e[t+f],f+=d,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:(h?-1:1)*(1/0);a+=Math.pow(2,n),o-=c}return(h?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,c=8*o-i-1,l=(1<<c)-1,f=l>>1,d=23===i?5960464477539062e-23:0,h=n?0:o-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+f>=1?t+=d/u:t+=d*Math.pow(2,1-f),t*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[r+h]=255&a,h+=p,a/=256,c-=8);e[r+h-p]|=128*m}}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}},a=!0;try{r[e](o,o.exports,i),a=!1}finally{a&&delete n[e]}return o.exports}i.ab=t+"/";var o=i(72);e.exports=o}()},2474:function(e,t,r){var n="/",i=r(1876).Buffer,o=r(3454);!function(){var t={7160:function(e,t,r){var n=t;n.bignum=r(711),n.define=r(495).define,n.base=r(853),n.constants=r(7335),n.decoders=r(6
vendor: 5,057 bytes, line 29
29701),n.encoders=r(3418)},495:function(e,t,r){var n=r(7160),i=r(3782);function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(e){var t;try{t=r(6144).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(e){t=function(e){this._initNamed(e)}}return i(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},o.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n.decoders[e])),this.decoders[e]},o.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},o.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n.encoders[e])),this.encoders[e]},o.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},6483:function(e,t,r){var n=r(3782),i=r(853).Reporter,o=r(4300).Buffer;function a(e,t){if(i.call(this,t),!o.isBuffer(e)){this.error("Input not Buffer");return}this.base=e,this.offset=0,this.length=e.length}function s(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return e instanceof s||(e=new s(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=o.byteLength(e);else{if(!o.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}n(a,i),t.C=a,a.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},a.prototype.restore=function(e){var t=new a(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},a.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var r=new a(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},a.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.R=s,s.prototype.join=function(e,t){return e||(e=new o(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(r){r.join(e,t),t+=r.length}):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):o.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},853:function(e,t,r){var n=t;n.Reporter=r(1293).b,n.DecoderBuffer=r(6483).C,n.EncoderBuffer=r(6483).R,n.Node=r(9374)},9374:function(e,t,r){var n=r(853).Reporter,i=r(853).EncoderBuffer,o=r(853).DecoderBuffer,a=r(3523),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s),c=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function l(e,t){var r={};this._baseState=r,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}e.exports=l;var f=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];l.prototype.clone=function(){var e=this._baseState,t={};f.forEach(function(r){t[r]=e[r]});var r=new this.constructor(t.parent);return r._baseState=t,r},l.prototype._wrap=function(){var e=this._baseState;u.forEach(function(t){this[t]=function(){var r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}},this)},l.prototype._init=function(e){var t=this._baseState;a(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),a.equal(t.children.length,1,"Root node can have only one child")},l.prototype._useArgs=function(e){var t=this._baseState,r=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==r.length&&(a(null===t.children),t.children=r,r.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(a(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!=typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach(function(r){r==(0|r)&&(r|=0),t[e[r]]=r}),t}))}
vendor: 5,912 bytes, line 29
29,c.forEach(function(e){l.prototype[e]=function(){throw Error(e+" not implemented for encoding: "+this._baseState.enc)}}),s.forEach(function(e){l.prototype[e]=function(){var t=this._baseState,r=Array.prototype.slice.call(arguments);return a(null===t.tag),t.tag=e,this._useArgs(r),this}}),l.prototype.use=function(e){a(e);var t=this._baseState;return a(null===t.use),t.use=e,this},l.prototype.optional=function(){return this._baseState.optional=!0,this},l.prototype.def=function(e){var t=this._baseState;return a(null===t.default),t.default=e,t.optional=!0,this},l.prototype.explicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.explicit=e,this},l.prototype.implicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.implicit=e,this},l.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},l.prototype.key=function(e){var t=this._baseState;return a(null===t.key),t.key=e,this},l.prototype.any=function(){return this._baseState.any=!0,this},l.prototype.choice=function(e){var t=this._baseState;return a(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},l.prototype.contains=function(e){var t=this._baseState;return a(null===t.use),t.contains=e,this},l.prototype._decode=function(e,t){var r,n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));var i=n.default,a=!0,s=null;if(null!==n.key&&(s=e.enterKey(n.key)),n.optional){var u=null;if(null!==n.explicit?u=n.explicit:null!==n.implicit?u=n.implicit:null!==n.tag&&(u=n.tag),null!==u||n.any){if(a=this._peekTag(e,u,n.any),e.isError(a))return a}else{var c=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),a=!0}catch(e){a=!1}e.restore(c)}}if(n.obj&&a&&(r=e.enterObject()),a){if(null!==n.explicit){var l=this._decodeTag(e,n.explicit);if(e.isError(l))return l;e=l}var f=e.offset;if(null===n.use&&null===n.choice){if(n.any)var c=e.save();var d=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(d))return d;n.any?i=e.raw(c):e=d}if(t&&t.track&&null!==n.tag&&t.track(e.path(),f,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),n.any||(i=null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach(function(r){r._decode(e,t)}),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){var h=new o(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(h,t)}}return n.obj&&a&&(i=e.leaveObject(r)),null!==n.key&&(null!==i||!0===a)?e.leaveKey(s,n.key,i):null!==s&&e.exitKey(s),i},l.prototype._decodeGeneric=function(e,t,r){var n=this._baseState;if("seq"===e||"set"===e)return null;if("seqof"===e||"setof"===e)return this._decodeList(t,e,n.args[0],r);if(/str$/.test(e))return this._decodeStr(t,e,r);if("objid"===e&&n.args)return this._decodeObjid(t,n.args[0],n.args[1],r);if("objid"===e)return this._decodeObjid(t,null,null,r);if("gentime"===e||"utctime"===e)return this._decodeTime(t,e,r);if("null_"===e)return this._decodeNull(t,r);if("bool"===e)return this._decodeBool(t,r);else if("objDesc"===e)return this._decodeStr(t,e,r);else if("int"===e||"enum"===e)return this._decodeInt(t,n.args&&n.args[0],r);return null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},l.prototype._getUse=function(e,t){var r=this._baseState;return r.useDecoder=this._use(e,t),a(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},l.prototype._decodeChoice=function(e,t){var r=this._baseState,n=null,i=!1;return(Object.keys(r.choice).some(function(o){var a=e.save(),s=r.choice[o];try{var u=s._decode(e,t);if(e.isError(u))return!1;n={type:o,value:u},i=!0}catch(t){return e.restore(a),!1}return!0},this),i)?n:e.error("Choice not matched")},l.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},l.prototype._encode=function(e,t,r){var n=this._baseState;if(null===n.default||n.default!==e){var i=this._encodeValue(e,t,r);if(void 0!==i&&!this._skipDefault(i,t,r))return i}},l.prototype._encodeValue=function(e,t,r){var i,o=this._baseState;if(null===o.parent)return o.children[0]._encode(e,t||new n);var i=null;if(this.reporter=t,o.optional&&void 0===e){if(null===o.default)return;e=o.default}var a=null,s=!1;if(o.any)i=this._createEncoderBuffer(e);else if(o.choice)i=this._encodeChoice(e,t);else if(o.contains)a=this._getUse(o.contains,r)._encode(e,t),s=!0;else if(o.children)a=o.children.map(function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");var n=t.enterKey(r._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");var i=r._encode(e[r._baseState.key],t,e);return t.leaveKey(n),i},this).filter(function(e){return e}),a=this._createEncoderBuffer(a);else if("seqof"===o.tag||"setof"===o.tag){if(!(o.args&&1===o.args.length))return t.error("Too many args for : "+o.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var u=this.clone();u._baseState.implicit=null,a=this._createEncoderBuffer(e.map(function(r){var n=this._baseState;return this._getUse(n.args[0],e)._encode(r,t)},u))}else null!==o.use?i=this._getUse(o.use,r)._encode(e,t):(a=this._encodePrimitive(o.tag,e),s=!0);if(!o.any&&null===o.choice){var c=null!==o.implicit?o.implicit:o.tag,l=null===o.implicit?"universal":"context";null===c?null===o.use&&t.error("Tag could be omitted only for .use()"):null===o.use&&(i=this._encodeComposite(c,s,l,a))}return null!==o.explicit&&(i=this._encodeComposite(o.explicit,!1,"context",i
vendor: 7,419 bytes, line 29
29)),i},l.prototype._encodeChoice=function(e,t){var r=this._baseState,n=r.choice[e.type];return n||a(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},l.prototype._encodePrimitive=function(e,t){var r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);else if("objDesc"===e)return this._encodeStr(t,e);else throw Error("Unsupported tag: "+e)},l.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},l.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},1293:function(e,t,r){var n=r(3782);function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}t.b=i,i.prototype.isError=function(e){return e instanceof o},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,r){var n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,r=t.obj;return t.obj=e,r},i.prototype.error=function(e){var t,r=this._reporterState,n=e instanceof o;if(t=n?e:new o(r.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(o,Error),o.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw Error(this.message)}catch(e){this.stack=e.stack}return this}},9791:function(e,t,r){var n=r(7335);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=n._reverse(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=n._reverse(t.tag)},7335:function(e,t,r){var n=t;n._reverse=function(e){var t={};return Object.keys(e).forEach(function(r){(0|r)==r&&(r|=0),t[e[r]]=r}),t},n.der=r(9791)},2259:function(e,t,r){var n=r(3782),i=r(7160),o=i.base,a=i.bignum,s=i.constants.der;function u(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){o.Node.call(this,"der",e)}function l(e,t){var r=e.readUInt8(t);if(e.isError(r))return r;var n=s.tagClass[r>>6],i=(32&r)==0;if((31&r)==31){var o=r;for(r=0;(128&o)==128;){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}else r&=31;var a=s.tag[r];return{cls:n,primitive:i,tag:r,tagStr:a}}function f(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if((128&n)==0)return n;var i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(var o=0;o<i;o++){n<<=8;var a=e.readUInt8(r);if(e.isError(a))return a;n|=a}return n}e.exports=u,u.prototype.decode=function(e,t){return e instanceof o.DecoderBuffer||(e=new o.DecoderBuffer(e,t)),this.tree._decode(e,t)},n(c,o.Node),c.prototype._peekTag=function(e,t,r){if(e.isEmpty())return!1;var n=e.save(),i=l(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(n),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||r)},c.prototype._decodeTag=function(e,t,r){var n=l(e,'Failed to decode tag of "'+t+'"');if(e.isError(n))return n;var i=f(e,n.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!r&&n.tag!==t&&n.tagStr!==t&&n.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(n.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');var o=e.save(),a=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(a)?a:(i=e.offset-o.offset,e.restore(o),e.skip(i,'Failed to match body of: "'+t+'"'))},c.prototype._skipUntilEnd=function(e,t){for(;;){var r,n=l(e,t);if(e.isError(n))return n;var i=f(e,n.primitive,t);if(e.isError(i))return i;if(r=n.primitive||null!==i?e.skip(i):this._skipUntilEnd(e,t),e.isError(r))return r;if("end"===n.tagStr)break}},c.prototype._decodeList=function(e,t,r,n){for(var i=[];!e.isEmpty();){var o=this._peekTag(e,"end");if(e.isError(o))return o;var a=r.decode(e,"der",n);if(e.isError(a)&&o)break;i.push(a)}return i},c.prototype._decodeStr=function(e,t){if("bitstr"===t){var r=e.readUInt8();return e.isError(r)?r:{unused:r,data:e.raw()}}if("bmpstr"===t){var n=e.raw();if(n.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var i="",o=0;o<n.length/2;o++)i+=String.fromCharCode(n.readUInt16BE(2*o));return i}if("numstr"===t){var a=e.raw().toString("ascii");return this._isNumstr(a)?a:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){var s=e.raw().toString("ascii");return this._isPrintstr(s)?s:e.error("Decoding of string type: printstr unsupported characters")}if(/str$/.test(t))return e.raw().toString();else return e.error("Decoding of string type: "+t+" unsupported")},c.prototype._decodeObjid=function(e,t,r){for(var n,i=[],o=0;!e.isEmpty();){var a=e.readUInt8();o<<=7,o|=127&a,(128&a)==0&&(i.push(o),o=0)}128&a&&i.push(o);var s=i[0]/40|0,u=i[0]%40;if(n=r?i:[s,u].concat(i.slice(1)),t){var c=t[n.join(" ")];void 0===c&&(c=t[n.join(".")]),void 0!==c&&(n=c)}return n},c.prototype._decodeTime=function(e,t){var r=e.raw().toString();if("gentime"===t)var n=0|r.slice(0,4),i=0|r.slice(4,6),o=0|r.slice(6,8),a=0|r.slice(8,10),s=0|r.slice(10,12),u=0|r.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");var n=0|r.slice(0,2),i=0|r.slice(2,4),o=0|r.slice(4,6),a=0|r.slice(6,8),s=0|r.slice(8,10),u=0|r.slice(10,12);n=n<70?2e3+n:1900+n}return Date.UTC(n,i-1,o,a,s,u,0)},c.prototype._decodeNull=function(e){return null},c.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},c.prototype._decodeInt=function(e,t){var r=e.raw(),n=new a(r);return t&&(n=t[n.toString(10)]||n),n},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},6701:function(e,t,r){var n=t;n.der=r(2259),n.pem=r(8527)},8527:function(e,t,r){var n=r(3782),i=r(4300).Buffer,o=r(2259);function a(e){o.call(this,e),this.enc="pem"}n(a,o),e.exports=a,a.prototype.decode=function(e,t){for(var r=e.toString().split(/[\r\n]+/g),n=t.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,u=-1,c=0;c<r.length;c++){var l=r[c].match(a);
vendor: 4,478 bytes, line 29
29if(null!==l&&l[2]===n){if(-1===s){if("BEGIN"!==l[1])break;s=c}else{if("END"!==l[1])break;u=c;break}}}if(-1===s||-1===u)throw Error("PEM section not found for: "+n);var f=r.slice(s+1,u).join("");f.replace(/[^a-z0-9\+\/=]+/gi,"");var d=new i(f,"base64");return o.prototype.decode.call(this,d,t)}},7804:function(e,t,r){var n=r(3782),i=r(4300).Buffer,o=r(7160),a=o.base,s=o.constants.der;function u(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){a.Node.call(this,"der",e)}function l(e){return e<10?"0"+e:e}function f(e,t,r,n){var i;if("seqof"===e?e="seq":"setof"===e&&(e="set"),s.tagByName.hasOwnProperty(e))i=s.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);i=e}return i>=31?n.error("Multi-octet tag encoding unsupported"):(t||(i|=32),i|=s.tagClassByName[r||"universal"]<<6)}e.exports=u,u.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(c,a.Node),c.prototype._encodeComposite=function(e,t,r,n){var o=f(e,t,r,this.reporter);if(n.length<128){var a=new i(2);return a[0]=o,a[1]=n.length,this._createEncoderBuffer([a,n])}for(var s=1,u=n.length;u>=256;u>>=8)s++;var a=new i(2+s);a[0]=o,a[1]=128|s;for(var u=1+s,c=n.length;c>0;u--,c>>=8)a[u]=255&c;return this._createEncoderBuffer([a,n])},c.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new i(2*e.length),n=0;n<e.length;n++)r.writeUInt16BE(e.charCodeAt(n),2*n);return this._createEncoderBuffer(r)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)?this._createEncoderBuffer(e):"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},c.prototype._encodeObjid=function(e,t,r){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s\.]+/g);for(var n=0;n<e.length;n++)e[n]|=0}else if(Array.isArray(e)){e=e.slice();for(var n=0;n<e.length;n++)e[n]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!r){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}for(var o=0,n=0;n<e.length;n++){var a=e[n];for(o++;a>=128;a>>=7)o++}for(var s=new i(o),u=s.length-1,n=e.length-1;n>=0;n--){var a=e[n];for(s[u--]=127&a;(a>>=7)>0;)s[u--]=128|127&a}return this._createEncoderBuffer(s)},c.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=[l(n.getFullYear()),l(n.getUTCMonth()+1),l(n.getUTCDate()),l(n.getUTCHours()),l(n.getUTCMinutes()),l(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[l(n.getFullYear()%100),l(n.getUTCMonth()+1),l(n.getUTCDate()),l(n.getUTCHours()),l(n.getUTCMinutes()),l(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},c.prototype._encodeNull=function(){return this._createEncoderBuffer("")},c.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new i(r)}if(i.isBuffer(e)){var n=e.length;0===e.length&&n++;var o=new i(n);return e.copy(o),0===e.length&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var n=1,a=e;a>=256;a>>=8)n++;for(var o=Array(n),a=o.length-1;a>=0;a--)o[a]=255&e,e>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new i(o))},c.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},c.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i.default)return!1;
vendor: 4,986 bytes, line 29
29var o=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n<o.length;n++)if(o[n]!==i.defaultBuffer[n])return!1;return!0}},3418:function(e,t,r){var n=t;n.der=r(7804),n.pem=r(1564)},1564:function(e,t,r){var n=r(3782),i=r(7804);function o(e){i.call(this,e),this.enc="pem"}n(o,i),e.exports=o,o.prototype.encode=function(e,t){for(var r=i.prototype.encode.call(this,e).toString("base64"),n=["-----BEGIN "+t.label+"-----"],o=0;o<r.length;o+=64)n.push(r.slice(o,o+64));return n.push("-----END "+t.label+"-----"),n.join("\n")}},711:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(e||0,t||10,r||"be"))}"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{u=r(4300).Buffer}catch(e){}function a(e,t,r){for(var n=0,i=Math.min(e.length,r),o=t;o<i;o++){var a=e.charCodeAt(o)-48;n<<=4,a>=49&&a<=54?n|=a-49+10:a>=17&&a<=22?n|=a-17+10:n|=15&a}return n}function s(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a<o;a++){var s=e.charCodeAt(a)-48;i*=n,s>=49?i+=s-49+10:s>=17?i+=s-17+10:i+=s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return 0>e.cmp(t)?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i,o,a=0;a<this.length;a++)this.words[a]=0;var s=0;if("be"===r)for(a=e.length-1,i=0;a>=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<<s&67108863,this.words[i+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===r)for(a=0,i=0;a<e.length;a+=3)o=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[i]|=o<<s&67108863,this.words[i+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var r,n,i=0;i<this.length;i++)this.words[i]=0;var o=0;for(i=e.length-6,r=0;i>=t;i-=6)n=a(e,i,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);i+6!==t&&(n=a(e,t,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,u=Math.min(o,o-a)+r,c=0,l=r;l<u;l+=n)c=s(e,l,l+n,t),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var f=1;for(c=s(e,l,e.length,t),l=0;l<a;l++)f*=t;this.imuln(f),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},o.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u,c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 4,439 bytes, line 29
29777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(e){for(var t=Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}function h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var l=u>>>26,f=67108863&u,d=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=d;h++){var p=c-h|0;l+=(a=(i=0|e.words[p])*(o=0|t.words[h])+f)/67108864|0,f=67108863&a}r.words[c]=0|f,u=0|l}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}o.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=((s<<i|o)&16777215).toString(16);r=0!=(o=s>>>24-i&16777215)||a!==this.length-1?c[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=l[e],h=f[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?m+r:c[d-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==u),this.toArrayLike(u,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i,o,a=this.byteLength(),s=r||Math.max(1,a);n(a<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var u="le"===t,c=new e(s),l=this.clone();if(u){for(o=0;!l.isZero();o++)i=l.andln(255),l.iushrn(8),c[o]=i;for(;o<s;o++)c[o]=0}else{for(o=0;o<s-a;o++)c[o]=0;for(o=0;!l.isZero();o++)i=l.andln(255),l.iushrn(8),c[s-o-1]=i}return c},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return n((this.negative|e.negative)==0),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return n((this.negative|e.negative)==0),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;n<r.length;
vendor: 8,486 bytes, line 29
29n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return n((this.negative|e.negative)==0),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(e){if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var o=0,a=0;a<r.length;a++)o=(n=(0|t.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&n;for(;0!==o&&a<t.length;a++)o=(n=(0|t.words[a])+o)>>26,this.words[a]=67108863&n;if(0===o&&a<t.length&&t!==this)for(;a<t.length;a++)this.words[a]=t.words[a];return this.length=Math.max(this.length,a),t!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,r){var n,i,o,a=e.words,s=t.words,u=r.words,c=0,l=0|a[0],f=8191&l,d=l>>>13,h=0|a[1],p=8191&h,m=h>>>13,y=0|a[2],b=8191&y,g=y>>>13,v=0|a[3],w=8191&v,_=v>>>13,S=0|a[4],E=8191&S,x=S>>>13,k=0|a[5],A=8191&k,M=k>>>13,O=0|a[6],j=8191&O,R=O>>>13,C=0|a[7],P=8191&C,T=C>>>13,I=0|a[8],N=8191&I,D=I>>>13,L=0|a[9],B=8191&L,U=L>>>13,$=0|s[0],H=8191&$,F=$>>>13,q=0|s[1],W=8191&q,z=q>>>13,K=0|s[2],Z=8191&K,J=K>>>13,G=0|s[3],V=8191&G,Y=G>>>13,X=0|s[4],Q=8191&X,ee=X>>>13,et=0|s[5],er=8191&et,en=et>>>13,ei=0|s[6],eo=8191&ei,ea=ei>>>13,es=0|s[7],eu=8191&es,ec=es>>>13,el=0|s[8],ef=8191&el,ed=el>>>13,eh=0|s[9],ep=8191&eh,em=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var ey=(c+(n=Math.imul(f,H))|0)+((8191&(i=(i=Math.imul(f,F))+Math.imul(d,H)|0))<<13)|0;c=((o=Math.imul(d,F))+(i>>>13)|0)+(ey>>>26)|0,ey&=67108863,n=Math.imul(p,H),i=(i=Math.imul(p,F))+Math.imul(m,H)|0,o=Math.imul(m,F);var eb=(c+(n=n+Math.imul(f,W)|0)|0)+((8191&(i=(i=i+Math.imul(f,z)|0)+Math.imul(d,W)|0))<<13)|0;c=((o=o+Math.imul(d,z)|0)+(i>>>13)|0)+(eb>>>26)|0,eb&=67108863,n=Math.imul(b,H),i=(i=Math.imul(b,F))+Math.imul(g,H)|0,o=Math.imul(g,F),n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,z)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,z)|0;var eg=(c+(n=n+Math.imul(f,Z)|0)|0)+((8191&(i=(i=i+Math.imul(f,J)|0)+Math.imul(d,Z)|0))<<13)|0;c=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(eg>>>26)|0,eg&=67108863,n=Math.imul(w,H),i=(i=Math.imul(w,F))+Math.imul(_,H)|0,o=Math.imul(_,F),n=n+Math.imul(b,W)|0,i=(i=i+Math.imul(b,z)|0)+Math.imul(g,W)|0,o=o+Math.imul(g,z)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,J)|0;var ev=(c+(n=n+Math.imul(f,V)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,V)|0))<<13)|0;c=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=67108863,n=Math.imul(E,H),i=(i=Math.imul(E,F))+Math.imul(x,H)|0,o=Math.imul(x,F),n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,z)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,z)|0,n=n+Math.imul(b,Z)|0,i=(i=i+Math.imul(b,J)|0)+Math.imul(g,Z)|0,o=o+Math.imul(g,J)|0,n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,Y)|0;var ew=(c+(n=n+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,Q)|0))<<13)|0;c=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=67108863,n=Math.imul(A,H),i=(i=Math.imul(A,F))+Math.imul(M,H)|0,o=Math.imul(M,F),n=n+Math.imul(E,W)|0,i=(i=i+Math.imul(E,z)|0)+Math.imul(x,W)|0,o=o+Math.imul(x,z)|0,n=n+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(b,V)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(g,V)|0,o=o+Math.imul(g,Y)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,ee)|0;var e_=(c+(n=n+Math.imul(f,er)|0)|0)+((8191&(i=(i=i+Math.imul(f,en)|0)+Math.imul(d,er)|0))<<13)|0;c=((o=o+Math.imul(d,en)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=67108863,n=Math.imul(j,H),i=(i=Math.imul(j,F))+Math.imul(R,H)|0,o=Math.imul(R,F),n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,z)|0)+Math.imul(M,W)|0,o=o+Math.imul(M,z)|0,n=n+Math.imul(E,Z)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,J)|0,n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,ee)|0)+Math.imul(g,Q)|0,o=o+Math.imul(g,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(m,er)|0,o=o+Math.imul(m,en)|0;var eS=(c+(n=n+Math.imul(f,eo)|0)|0)+((8191&(i=(i=i+Math.imul(f,ea)|0)+Math.imul(d,eo)|0))<<13)|0;c=((o=o+Math.imul(d,ea)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=67108863,n=Math.imul(P,H),i=(i=Math.imul(P,F))+Math.imul(T,H)|0,o=Math.imul(T,F),n=n+Math.imul(j,W)|0,i=(i=i+Math.imul(j,z)|0)+Math.imul(R,W)|0,o=o+Math.imul(R,z)|0,n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(M,Z)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(E,V)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(x,V)|0,o=o+Math.imul(x,Y)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(b,er)|0,i=(i=i+Math.imul(b,en)|0)+Math.imul(g,er)|0,o=o+Math.imul(g,en)|0,n=n+Math.imul(p,eo)|0,i=(i=i+Math.imul(p,ea)|0)+Math.imul(m,eo)|0,o=o+Math.imul(m,ea)|0;var eE=(c+(n=n+Math.imul(f,eu)|0)|0)+((8191&(i=(i=i+Math.imul(f,ec)|0)+Math.imul(d,eu)|0))<<13)|0;c=((o=o+Math.imul(d,ec)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=67108863,n=Math.imul(N,H),i=(i=Math.imul(N,F))+Math.imul(D,H)|0,o=Math.imul(D,F),n=n+Math.imul(P,W)|0,i=(i=i+Math.imul(P,z)|0)+Math.imul(T,W)|0,o=o+Math.imul(T,z)|0,n=n+Math.imul(j,Z)|0,i=(i=i+Math.imul(j,J)|0)+Math.imul(R,Z)|0,o=o+Math.imul(R,J)|0,n=n+Math.imul(A,V)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(M,V)|0,o=o+Math.imul(M,Y)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(w,er)|0,i=(i=i+Math.imul(w,en)|0)+Math.imul(_,er)|0,o=o+Math.imul(_,en)|0,n=n+Math.imul(b,eo)|0,i=(i=i+Math.imul(b,ea)|0)+Math.imul(g,eo)|0,o=o+Math.imul(g,ea)|0,n=n+Math.imul(p,eu)|0,i=(i=i+Math.imul(p,ec)|0)+Math.imul(m,eu)|0,o=o+Math.imul(m,ec)|0;var ex=(c+(n=n+Math.imul(f,ef)|0)|0)+((8191&(i=(i=i+Math.imul(f,ed)|0)+Math.imul(d,ef)|0))<<13)|0;c=((o=o+Math.imul(d,ed)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=67108863,n=Math.imul(B,H),i=(i=Math.imul(B,F))+Math.imul(U,H)|0,o=Math.imul(U,F),n=n+Math.imul(N,W)|0,i=(i=i+Math.imul(N,z)|0)+Math.imul(D,W)|0,o=o+Math.imul(D,z)|0,n=n+Math.imul(P,Z)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(T,Z)|0,o=o+Math.imul(T,J)|0,n=n+Math.imul(j,V)|0,i=(i=i+Math.imul(j,Y)|0)+Math.imul(R,V)|0,o=o+Math.imul(R,Y)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(E,er)|0,i=(i=i+Math.imul(E,en)|0)+Math.imul(x,er)|0,o=o+Math.imul(x,en)|0,n=n+Math.imul(w,eo)|0,i=(i=i+Math.imul(w,ea)|0)+Math.imul(_,eo)|0,o=o+Math.imul(_,ea)|0,n=n+Math.imul(b,eu)|0,i=(i=i+Math.imul(b,ec)|0)+Math.imul(g,eu)|0,o=o+Math.imul(g,ec)|0,n=n+Math.imul(p,ef)|0,i=(i=i+Math.imul(p,ed)|0)+Math.imul(m,ef)|0,o=o+Math.imul(m,ed)|0;var ek=(c+(n=n+Math.imul(f,ep)|0)|0)+((8191&(i=(i=i+Math.imul(f,em)|0)+Math.imul(d,ep)|0))<<13)|0;c=((o=o+Math.imul(d,em)|0)+(i>>>13)|0)+(ek>>>
vendor: 4,832 bytes, line 29
2926)|0,ek&=67108863,n=Math.imul(B,W),i=(i=Math.imul(B,z))+Math.imul(U,W)|0,o=Math.imul(U,z),n=n+Math.imul(N,Z)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(D,Z)|0,o=o+Math.imul(D,J)|0,n=n+Math.imul(P,V)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(T,V)|0,o=o+Math.imul(T,Y)|0,n=n+Math.imul(j,Q)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(A,er)|0,i=(i=i+Math.imul(A,en)|0)+Math.imul(M,er)|0,o=o+Math.imul(M,en)|0,n=n+Math.imul(E,eo)|0,i=(i=i+Math.imul(E,ea)|0)+Math.imul(x,eo)|0,o=o+Math.imul(x,ea)|0,n=n+Math.imul(w,eu)|0,i=(i=i+Math.imul(w,ec)|0)+Math.imul(_,eu)|0,o=o+Math.imul(_,ec)|0,n=n+Math.imul(b,ef)|0,i=(i=i+Math.imul(b,ed)|0)+Math.imul(g,ef)|0,o=o+Math.imul(g,ed)|0;var eA=(c+(n=n+Math.imul(p,ep)|0)|0)+((8191&(i=(i=i+Math.imul(p,em)|0)+Math.imul(m,ep)|0))<<13)|0;c=((o=o+Math.imul(m,em)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=67108863,n=Math.imul(B,Z),i=(i=Math.imul(B,J))+Math.imul(U,Z)|0,o=Math.imul(U,J),n=n+Math.imul(N,V)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(D,V)|0,o=o+Math.imul(D,Y)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,ee)|0,n=n+Math.imul(j,er)|0,i=(i=i+Math.imul(j,en)|0)+Math.imul(R,er)|0,o=o+Math.imul(R,en)|0,n=n+Math.imul(A,eo)|0,i=(i=i+Math.imul(A,ea)|0)+Math.imul(M,eo)|0,o=o+Math.imul(M,ea)|0,n=n+Math.imul(E,eu)|0,i=(i=i+Math.imul(E,ec)|0)+Math.imul(x,eu)|0,o=o+Math.imul(x,ec)|0,n=n+Math.imul(w,ef)|0,i=(i=i+Math.imul(w,ed)|0)+Math.imul(_,ef)|0,o=o+Math.imul(_,ed)|0;var eM=(c+(n=n+Math.imul(b,ep)|0)|0)+((8191&(i=(i=i+Math.imul(b,em)|0)+Math.imul(g,ep)|0))<<13)|0;c=((o=o+Math.imul(g,em)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=67108863,n=Math.imul(B,V),i=(i=Math.imul(B,Y))+Math.imul(U,V)|0,o=Math.imul(U,Y),n=n+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(D,Q)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(P,er)|0,i=(i=i+Math.imul(P,en)|0)+Math.imul(T,er)|0,o=o+Math.imul(T,en)|0,n=n+Math.imul(j,eo)|0,i=(i=i+Math.imul(j,ea)|0)+Math.imul(R,eo)|0,o=o+Math.imul(R,ea)|0,n=n+Math.imul(A,eu)|0,i=(i=i+Math.imul(A,ec)|0)+Math.imul(M,eu)|0,o=o+Math.imul(M,ec)|0,n=n+Math.imul(E,ef)|0,i=(i=i+Math.imul(E,ed)|0)+Math.imul(x,ef)|0,o=o+Math.imul(x,ed)|0;var eO=(c+(n=n+Math.imul(w,ep)|0)|0)+((8191&(i=(i=i+Math.imul(w,em)|0)+Math.imul(_,ep)|0))<<13)|0;c=((o=o+Math.imul(_,em)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=67108863,n=Math.imul(B,Q),i=(i=Math.imul(B,ee))+Math.imul(U,Q)|0,o=Math.imul(U,ee),n=n+Math.imul(N,er)|0,i=(i=i+Math.imul(N,en)|0)+Math.imul(D,er)|0,o=o+Math.imul(D,en)|0,n=n+Math.imul(P,eo)|0,i=(i=i+Math.imul(P,ea)|0)+Math.imul(T,eo)|0,o=o+Math.imul(T,ea)|0,n=n+Math.imul(j,eu)|0,i=(i=i+Math.imul(j,ec)|0)+Math.imul(R,eu)|0,o=o+Math.imul(R,ec)|0,n=n+Math.imul(A,ef)|0,i=(i=i+Math.imul(A,ed)|0)+Math.imul(M,ef)|0,o=o+Math.imul(M,ed)|0;var ej=(c+(n=n+Math.imul(E,ep)|0)|0)+((8191&(i=(i=i+Math.imul(E,em)|0)+Math.imul(x,ep)|0))<<13)|0;c=((o=o+Math.imul(x,em)|0)+(i>>>13)|0)+(ej>>>26)|0,ej&=67108863,n=Math.imul(B,er),i=(i=Math.imul(B,en))+Math.imul(U,er)|0,o=Math.imul(U,en),n=n+Math.imul(N,eo)|0,i=(i=i+Math.imul(N,ea)|0)+Math.imul(D,eo)|0,o=o+Math.imul(D,ea)|0,n=n+Math.imul(P,eu)|0,i=(i=i+Math.imul(P,ec)|0)+Math.imul(T,eu)|0,o=o+Math.imul(T,ec)|0,n=n+Math.imul(j,ef)|0,i=(i=i+Math.imul(j,ed)|0)+Math.imul(R,ef)|0,o=o+Math.imul(R,ed)|0;var eR=(c+(n=n+Math.imul(A,ep)|0)|0)+((8191&(i=(i=i+Math.imul(A,em)|0)+Math.imul(M,ep)|0))<<13)|0;c=((o=o+Math.imul(M,em)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=67108863,n=Math.imul(B,eo),i=(i=Math.imul(B,ea))+Math.imul(U,eo)|0,o=Math.imul(U,ea),n=n+Math.imul(N,eu)|0,i=(i=i+Math.imul(N,ec)|0)+Math.imul(D,eu)|0,o=o+Math.imul(D,ec)|0,n=n+Math.imul(P,ef)|0,i=(i=i+Math.imul(P,ed)|0)+Math.imul(T,ef)|0,o=o+Math.imul(T,ed)|0;var eC=(c+(n=n+Math.imul(j,ep)|0)|0)+((8191&(i=(i=i+Math.imul(j,em)|0)+Math.imul(R,ep)|0))<<13)|0;c=((o=o+Math.imul(R,em)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=67108863,n=Math.imul(B,eu),i=(i=Math.imul(B,ec))+Math.imul(U,eu)|0,o=Math.imul(U,ec),n=n+Math.imul(N,ef)|0,i=(i=i+Math.imul(N,ed)|0)+Math.imul(D,ef)|0,o=o+Math.imul(D,ed)|0;var eP=(c+(n=n+Math.imul(P,ep)|0)|0)+((8191&(i=(i=i+Math.imul(P,em)|0)+Math.imul(T,ep)|0))<<13)|0;c=((o=o+Math.imul(T,em)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=67108863,n=Math.imul(B,ef),i=(i=Math.imul(B,ed))+Math.imul(U,ef)|0,o=Math.imul(U,ed);var eT=(c+(n=n+Math.imul(N,ep)|0)|0)+((8191&(i=(i=i+Math.imul(N,em)|0)+Math.imul(D,ep)|0))<<13)|0;c=((o=o+Math.imul(D,em)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=67108863;var eI=(c+(n=Math.imul(B,ep))|0)+((8191&(i=(i=Math.imul(B,em))+Math.imul(U,ep)|0))<<13)|0;return c=((o=Math.imul(U,em))+(i>>>13)|0)+(eI>>>26)|0,eI&=67108863,u[0]=ey,u[1]=eb,u[2]=eg,u[3]=ev,u[4]=ew,u[5]=e_,u[6]=eS,u[7]=eE,u[8]=ex,u[9]=ek,u[10]=eA,u[11]=eM,u[12]=eO,u[13]=ej,u[14]=eR,u[15]=eC,u[16]=eP,u[17]=eT,u[18]=eI,0!==c&&(u[19]=c,r.length++),r};function m(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;
vendor: 6,705 bytes, line 29
29for(var s=67108863&n,u=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=u;c++){var l=o-c,f=(0|e.words[l])*(0|t.words[c]),d=67108863&f;a=a+(f/67108864|0)|0,s=67108863&(d=d+s|0),i+=(a=a+(d>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function y(e,t,r){return(new b).mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(p=h),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):r<63?h(this,e,t):r<1024?m(this,e,t):y(this,e,t)},b.prototype.makeRBT=function(e){for(var t=Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},b.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},b.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},b.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),l=0;l<i;l+=s)for(var f=u,d=c,h=0;h<a;h++){var p=r[l+h],m=n[l+h],y=r[l+h+a],b=n[l+h+a],g=f*y-d*b;b=f*b+d*y,y=g,r[l+h]=p+y,n[l+h]=m+b,r[l+h+a]=p-y,n[l+h+a]=m-b,h!==s&&(g=u*f-c*d,d=u*d+c*f,f=g)}},b.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},b.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},b.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},b.prototype.convert13b=function(e,t,r,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===o),n((-8192&o)==0)},b.prototype.stub=function(e){for(var t=Array(e),r=0;r<e;r++)t[r]=0;return t},b.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=Array(n),s=Array(n),u=Array(n),c=Array(n),l=Array(n),f=Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,l,f,n,i);for(var h=0;h<n;h++){var p=s[h]*l[h]-u[h]*f[h];u[h]=s[h]*f[h]+u[h]*l[h],s[h]=p}return this.conjugate(s,u,n),this.transform(s,u,d,o,n,i),this.conjugate(d,o,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=Array(this.length+e.length),y(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){n("number"==typeof e),n(e<67108864);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=(i/67108864|0)+(o>>>26),this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=d(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,u=(0|this.words[t])-s<<r;this.words[t]=u|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var i,o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,u=r;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=i);c--){var f=0|this.words[c];this.words[c]=l<<26-o|f>>>o,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return(n("number"==typeof e),n(e<67108864),e<0)?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,a=e.length+r;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var u=(0|e.words[i])*t;o-=67108863&u,s=(o>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>
vendor: 14,541 bytes, line 29
2926,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),a=e,s=0|a.words[a.length-1];0!=(n=26-this._countBits(s))&&(a=a.ushln(n),i.iushln(n),s=0|a.words[a.length-1]);var u=i.length-a.length;if("mod"!==t){(r=new o(null)).length=u+1,r.words=Array(r.length);for(var c=0;c<r.length;c++)r.words[c]=0}var l=i.clone()._ishlnsubmul(a,1,u);0===l.negative&&(i=l,r&&(r.words[u]=1));for(var f=u-1;f>=0;f--){var d=(0|i.words[a.length+f])*67108864+(0|i.words[a.length+f-1]);for(d=Math.min(d/s|0,67108863),i._ishlnsubmul(a,d,f);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(a,1,f),i.isZero()||(i.negative^=1);r&&(r.words[f]=d)}return r&&r.strip(),i.strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},o.prototype.divmod=function(e,t,r){var i,a,s;return(n(!e.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):(this.negative&e.negative)!=0?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||0>this.cmp(e)?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t)},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=67108864%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),f=t.clone();!t.isZero();){for(var d=0,h=1;(t.words[0]&h)==0&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(f)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(u)):(r.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var a=new o(1),s=new o(0),u=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,l=1;(r.words[0]&l)==0&&c<26;++c,l<<=1);if(c>0)for(r.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,d=1;(i.words[0]&d)==0&&f<26;++f,d<<=1);if(f>0)for(i.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);r.cmp(i)>=0?(r.isub(i),a.isub(s)):(i.isub(r),s.isub(a))}return 0>(t=0===r.cmpn(1)?a:s).cmpn(0)&&t.iadd(e),t},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return -1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return -1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return -1===this.cmpn(e)},o.prototype.lt=function(e){return -1===this.cmp(e)},o.prototype.lten=function(e){return 0>=this.cmpn(e)},o.prototype.lte=function(e){return 0>=this.cmp(e)},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new x(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){x.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new o(null);return e.words=Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},i(w,v),w.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i<n;i++)t.words[i]=e.words[i];if(t.length=n,e.length<=9){e.words[0]=0,e.length=1;return}var o=e.words[9];for(i=10,t.words[t.length++]=o&r;i<e.length;i++){var a=0|e.words[i];e.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},w.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(_,v),i(S,v),i(E,v),E.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=(0|e.words[r])*19+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){var t;if(g[e])return g[e];if("k256"===e)t=new w;else if("p224"===e)t=new _;else if("p192"===e)t=new S;else if("p25519"===e)t=new E;else throw Error("Unknown prime "+e);return g[e]=t,t},x.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},x.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},x.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},x.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},x.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},x.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},x.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},x.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},x.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},x.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},x.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},x.prototype.isqr=function(e){return this.imul(e,e.clone())},x.prototype.sqr=function(e){return this.mul(e,e)},x.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var f=this.pow(l,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var m=h,y=0;0!==m.cmp(s);y++)m=m.redSqr();n(y<p);var b=this.pow(f,new o(1).iushln(p-y-1));d=d.redMul(b),f=b.redSqr(),h=h.redMul(f),p=y}return d},x.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},x.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=4,n=Array(16);n[0]=new o(1).toRed(this),n[1]=e;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],e);var a=n[0],s=0,u=0,c=t.bitLength()%26;for(0===c&&(c=26),i=t.length-1;i>=0;i--){for(var l=t.words[i],f=c-1;f>=0;f--){var d=l>>f&1;if(a!==n[0]&&(a=this.sqr(a)),0===d&&0===s){u=0;continue}s<<=1,s|=d,(++u===r||0===i&&0===f)&&(a=this.mul(a,n[s]),u=0,s=0)}c=26}return a},x.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},x.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new k(e)},i(k,x),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},1670:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(e||0,t||10,r||"be"))}
vendor: 4,300 bytes, line 29
29"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{l=r(4300).Buffer}catch(e){}function a(e,t,r){for(var i=0,o=Math.min(e.length,r),a=0,s=t;s<o;s++){var u,c=e.charCodeAt(s)-48;i<<=4,i|=u=c>=49&&c<=54?c-49+10:c>=17&&c<=22?c-17+10:c,a|=u}return n(!(240&a),"Invalid character in "+e),i}function s(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),u=t;u<s;u++){var c=e.charCodeAt(u)-48;o*=i,a=c>=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a<i,"Invalid character"),o+=a}return o}function u(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}function c(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return 0>e.cmp(t)?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this._strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i,o,a=0;a<this.length;a++)this.words[a]=0;var s=0;if("be"===r)for(a=e.length-1,i=0;a>=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<<s&67108863,this.words[i+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===r)for(a=0,i=0;a<e.length;a+=3)o=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[i]|=o<<s&67108863,this.words[i+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this._strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var r,n,i=0;i<this.length;i++)this.words[i]=0;var o=0;for(i=e.length-6,r=0;i>=t;i-=6)n=a(e,i,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);i+6!==t&&(n=a(e,t,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303),this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,u=Math.min(o,o-a)+r,c=0,l=r;l<u;l+=n)c=s(e,l,l+n,t),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var f=1;for(c=s(e,l,e.length,t),l=0;l<a;l++)f*=t;this.imuln(f),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},o.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype._move=function(e){u(e,this)},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for?o.prototype[Symbol.for("nodejs.util.inspect.custom")]=c:o.prototype.inspect=c;var l,f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 4,908 bytes, line 29
29777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=((s<<i|o)&16777215).toString(16);r=0!=(o=s>>>24-i&16777215)||a!==this.length-1?f[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var c=d[e],l=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(l).toString(e);r=(p=p.idivn(l)).isZero()?m+r:f[c-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},l&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(l,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};var p=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)};function m(e){for(var t=Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=e.words[n]>>>i&1}return t}function y(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var l=u>>>26,f=67108863&u,d=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=d;h++){var p=c-h|0;l+=(a=(i=0|e.words[p])*(o=0|t.words[h])+f)/67108864|0,f=67108863&a}r.words[c]=0|f,u=0|l}return 0!==u?r.words[c]=0|u:r.length--,r._strip()}o.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=p(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;e[r++]=255&a,r<e.length&&(e[r++]=a>>8&255),r<e.length&&(e[r++]=a>>16&255),6===o?(r<e.length&&(e[r++]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r<e.length)for(e[r++]=n;r<e.length;)e[r++]=0},o.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;e[r--]=255&a,r>=0&&(e[r--]=a>>8&255),r>=0&&(e[r--]=a>>16&255),6===o?(r>=0&&(e[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},o.prototype.ior=function(e){return n((this.negative|e.negative)==0),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},o.prototype.iand=function(e){return n((this.negative|e.negative)==0),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;n<r.length;
vendor: 8,490 bytes, line 29
29n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},o.prototype.ixor=function(e){return n((this.negative|e.negative)==0),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this._strip()},o.prototype.iadd=function(e){if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var o=0,a=0;a<r.length;a++)o=(n=(0|t.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&n;for(;0!==o&&a<t.length;a++)o=(n=(0|t.words[a])+o)>>26,this.words[a]=67108863&n;if(0===o&&a<t.length&&t!==this)for(;a<t.length;a++)this.words[a]=t.words[a];return this.length=Math.max(this.length,a),t!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var b=function(e,t,r){var n,i,o,a=e.words,s=t.words,u=r.words,c=0,l=0|a[0],f=8191&l,d=l>>>13,h=0|a[1],p=8191&h,m=h>>>13,y=0|a[2],b=8191&y,g=y>>>13,v=0|a[3],w=8191&v,_=v>>>13,S=0|a[4],E=8191&S,x=S>>>13,k=0|a[5],A=8191&k,M=k>>>13,O=0|a[6],j=8191&O,R=O>>>13,C=0|a[7],P=8191&C,T=C>>>13,I=0|a[8],N=8191&I,D=I>>>13,L=0|a[9],B=8191&L,U=L>>>13,$=0|s[0],H=8191&$,F=$>>>13,q=0|s[1],W=8191&q,z=q>>>13,K=0|s[2],Z=8191&K,J=K>>>13,G=0|s[3],V=8191&G,Y=G>>>13,X=0|s[4],Q=8191&X,ee=X>>>13,et=0|s[5],er=8191&et,en=et>>>13,ei=0|s[6],eo=8191&ei,ea=ei>>>13,es=0|s[7],eu=8191&es,ec=es>>>13,el=0|s[8],ef=8191&el,ed=el>>>13,eh=0|s[9],ep=8191&eh,em=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var ey=(c+(n=Math.imul(f,H))|0)+((8191&(i=(i=Math.imul(f,F))+Math.imul(d,H)|0))<<13)|0;c=((o=Math.imul(d,F))+(i>>>13)|0)+(ey>>>26)|0,ey&=67108863,n=Math.imul(p,H),i=(i=Math.imul(p,F))+Math.imul(m,H)|0,o=Math.imul(m,F);var eb=(c+(n=n+Math.imul(f,W)|0)|0)+((8191&(i=(i=i+Math.imul(f,z)|0)+Math.imul(d,W)|0))<<13)|0;c=((o=o+Math.imul(d,z)|0)+(i>>>13)|0)+(eb>>>26)|0,eb&=67108863,n=Math.imul(b,H),i=(i=Math.imul(b,F))+Math.imul(g,H)|0,o=Math.imul(g,F),n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,z)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,z)|0;var eg=(c+(n=n+Math.imul(f,Z)|0)|0)+((8191&(i=(i=i+Math.imul(f,J)|0)+Math.imul(d,Z)|0))<<13)|0;c=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(eg>>>26)|0,eg&=67108863,n=Math.imul(w,H),i=(i=Math.imul(w,F))+Math.imul(_,H)|0,o=Math.imul(_,F),n=n+Math.imul(b,W)|0,i=(i=i+Math.imul(b,z)|0)+Math.imul(g,W)|0,o=o+Math.imul(g,z)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,J)|0;var ev=(c+(n=n+Math.imul(f,V)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,V)|0))<<13)|0;c=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=67108863,n=Math.imul(E,H),i=(i=Math.imul(E,F))+Math.imul(x,H)|0,o=Math.imul(x,F),n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,z)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,z)|0,n=n+Math.imul(b,Z)|0,i=(i=i+Math.imul(b,J)|0)+Math.imul(g,Z)|0,o=o+Math.imul(g,J)|0,n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,Y)|0;var ew=(c+(n=n+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,Q)|0))<<13)|0;c=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=67108863,n=Math.imul(A,H),i=(i=Math.imul(A,F))+Math.imul(M,H)|0,o=Math.imul(M,F),n=n+Math.imul(E,W)|0,i=(i=i+Math.imul(E,z)|0)+Math.imul(x,W)|0,o=o+Math.imul(x,z)|0,n=n+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(b,V)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(g,V)|0,o=o+Math.imul(g,Y)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,ee)|0;var e_=(c+(n=n+Math.imul(f,er)|0)|0)+((8191&(i=(i=i+Math.imul(f,en)|0)+Math.imul(d,er)|0))<<13)|0;c=((o=o+Math.imul(d,en)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=67108863,n=Math.imul(j,H),i=(i=Math.imul(j,F))+Math.imul(R,H)|0,o=Math.imul(R,F),n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,z)|0)+Math.imul(M,W)|0,o=o+Math.imul(M,z)|0,n=n+Math.imul(E,Z)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,J)|0,n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,ee)|0)+Math.imul(g,Q)|0,o=o+Math.imul(g,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(m,er)|0,o=o+Math.imul(m,en)|0;var eS=(c+(n=n+Math.imul(f,eo)|0)|0)+((8191&(i=(i=i+Math.imul(f,ea)|0)+Math.imul(d,eo)|0))<<13)|0;c=((o=o+Math.imul(d,ea)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=67108863,n=Math.imul(P,H),i=(i=Math.imul(P,F))+Math.imul(T,H)|0,o=Math.imul(T,F),n=n+Math.imul(j,W)|0,i=(i=i+Math.imul(j,z)|0)+Math.imul(R,W)|0,o=o+Math.imul(R,z)|0,n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(M,Z)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(E,V)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(x,V)|0,o=o+Math.imul(x,Y)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(b,er)|0,i=(i=i+Math.imul(b,en)|0)+Math.imul(g,er)|0,o=o+Math.imul(g,en)|0,n=n+Math.imul(p,eo)|0,i=(i=i+Math.imul(p,ea)|0)+Math.imul(m,eo)|0,o=o+Math.imul(m,ea)|0;var eE=(c+(n=n+Math.imul(f,eu)|0)|0)+((8191&(i=(i=i+Math.imul(f,ec)|0)+Math.imul(d,eu)|0))<<13)|0;c=((o=o+Math.imul(d,ec)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=67108863,n=Math.imul(N,H),i=(i=Math.imul(N,F))+Math.imul(D,H)|0,o=Math.imul(D,F),n=n+Math.imul(P,W)|0,i=(i=i+Math.imul(P,z)|0)+Math.imul(T,W)|0,o=o+Math.imul(T,z)|0,n=n+Math.imul(j,Z)|0,i=(i=i+Math.imul(j,J)|0)+Math.imul(R,Z)|0,o=o+Math.imul(R,J)|0,n=n+Math.imul(A,V)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(M,V)|0,o=o+Math.imul(M,Y)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(w,er)|0,i=(i=i+Math.imul(w,en)|0)+Math.imul(_,er)|0,o=o+Math.imul(_,en)|0,n=n+Math.imul(b,eo)|0,i=(i=i+Math.imul(b,ea)|0)+Math.imul(g,eo)|0,o=o+Math.imul(g,ea)|0,n=n+Math.imul(p,eu)|0,i=(i=i+Math.imul(p,ec)|0)+Math.imul(m,eu)|0,o=o+Math.imul(m,ec)|0;var ex=(c+(n=n+Math.imul(f,ef)|0)|0)+((8191&(i=(i=i+Math.imul(f,ed)|0)+Math.imul(d,ef)|0))<<13)|0;c=((o=o+Math.imul(d,ed)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=67108863,n=Math.imul(B,H),i=(i=Math.imul(B,F))+Math.imul(U,H)|0,o=Math.imul(U,F),n=n+Math.imul(N,W)|0,i=(i=i+Math.imul(N,z)|0)+Math.imul(D,W)|0,o=o+Math.imul(D,z)|0,n=n+Math.imul(P,Z)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(T,Z)|0,o=o+Math.imul(T,J)|0,n=n+Math.imul(j,V)|0,i=(i=i+Math.imul(j,Y)|0)+Math.imul(R,V)|0,o=o+Math.imul(R,Y)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(E,er)|0,i=(i=i+Math.imul(E,en)|0)+Math.imul(x,er)|0,o=o+Math.imul(x,en)|0,n=n+Math.imul(w,eo)|0,i=(i=i+Math.imul(w,ea)|0)+Math.imul(_,eo)|0,o=o+Math.imul(_,ea)|0,n=n+Math.imul(b,eu)|0,i=(i=i+Math.imul(b,ec)|0)+Math.imul(g,eu)|0,o=o+Math.imul(g,ec)|0,n=n+Math.imul(p,ef)|0,i=(i=i+Math.imul(p,ed)|0)+Math.imul(m,ef)|0,o=o+Math.imul(m,ed)|0;var ek=(c+(n=n+Math.imul(f,ep)|0)|0)+((8191&(i=(i=i+Math.imul(f,em)|0)+Math.imul(d,ep)|0))<<13)|0;c=((o=o+Math.imul(d,em)|0)+(i>>>13)|0)+(ek>>>
vendor: 4,832 bytes, line 29
2926)|0,ek&=67108863,n=Math.imul(B,W),i=(i=Math.imul(B,z))+Math.imul(U,W)|0,o=Math.imul(U,z),n=n+Math.imul(N,Z)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(D,Z)|0,o=o+Math.imul(D,J)|0,n=n+Math.imul(P,V)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(T,V)|0,o=o+Math.imul(T,Y)|0,n=n+Math.imul(j,Q)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(A,er)|0,i=(i=i+Math.imul(A,en)|0)+Math.imul(M,er)|0,o=o+Math.imul(M,en)|0,n=n+Math.imul(E,eo)|0,i=(i=i+Math.imul(E,ea)|0)+Math.imul(x,eo)|0,o=o+Math.imul(x,ea)|0,n=n+Math.imul(w,eu)|0,i=(i=i+Math.imul(w,ec)|0)+Math.imul(_,eu)|0,o=o+Math.imul(_,ec)|0,n=n+Math.imul(b,ef)|0,i=(i=i+Math.imul(b,ed)|0)+Math.imul(g,ef)|0,o=o+Math.imul(g,ed)|0;var eA=(c+(n=n+Math.imul(p,ep)|0)|0)+((8191&(i=(i=i+Math.imul(p,em)|0)+Math.imul(m,ep)|0))<<13)|0;c=((o=o+Math.imul(m,em)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=67108863,n=Math.imul(B,Z),i=(i=Math.imul(B,J))+Math.imul(U,Z)|0,o=Math.imul(U,J),n=n+Math.imul(N,V)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(D,V)|0,o=o+Math.imul(D,Y)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,ee)|0,n=n+Math.imul(j,er)|0,i=(i=i+Math.imul(j,en)|0)+Math.imul(R,er)|0,o=o+Math.imul(R,en)|0,n=n+Math.imul(A,eo)|0,i=(i=i+Math.imul(A,ea)|0)+Math.imul(M,eo)|0,o=o+Math.imul(M,ea)|0,n=n+Math.imul(E,eu)|0,i=(i=i+Math.imul(E,ec)|0)+Math.imul(x,eu)|0,o=o+Math.imul(x,ec)|0,n=n+Math.imul(w,ef)|0,i=(i=i+Math.imul(w,ed)|0)+Math.imul(_,ef)|0,o=o+Math.imul(_,ed)|0;var eM=(c+(n=n+Math.imul(b,ep)|0)|0)+((8191&(i=(i=i+Math.imul(b,em)|0)+Math.imul(g,ep)|0))<<13)|0;c=((o=o+Math.imul(g,em)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=67108863,n=Math.imul(B,V),i=(i=Math.imul(B,Y))+Math.imul(U,V)|0,o=Math.imul(U,Y),n=n+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(D,Q)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(P,er)|0,i=(i=i+Math.imul(P,en)|0)+Math.imul(T,er)|0,o=o+Math.imul(T,en)|0,n=n+Math.imul(j,eo)|0,i=(i=i+Math.imul(j,ea)|0)+Math.imul(R,eo)|0,o=o+Math.imul(R,ea)|0,n=n+Math.imul(A,eu)|0,i=(i=i+Math.imul(A,ec)|0)+Math.imul(M,eu)|0,o=o+Math.imul(M,ec)|0,n=n+Math.imul(E,ef)|0,i=(i=i+Math.imul(E,ed)|0)+Math.imul(x,ef)|0,o=o+Math.imul(x,ed)|0;var eO=(c+(n=n+Math.imul(w,ep)|0)|0)+((8191&(i=(i=i+Math.imul(w,em)|0)+Math.imul(_,ep)|0))<<13)|0;c=((o=o+Math.imul(_,em)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=67108863,n=Math.imul(B,Q),i=(i=Math.imul(B,ee))+Math.imul(U,Q)|0,o=Math.imul(U,ee),n=n+Math.imul(N,er)|0,i=(i=i+Math.imul(N,en)|0)+Math.imul(D,er)|0,o=o+Math.imul(D,en)|0,n=n+Math.imul(P,eo)|0,i=(i=i+Math.imul(P,ea)|0)+Math.imul(T,eo)|0,o=o+Math.imul(T,ea)|0,n=n+Math.imul(j,eu)|0,i=(i=i+Math.imul(j,ec)|0)+Math.imul(R,eu)|0,o=o+Math.imul(R,ec)|0,n=n+Math.imul(A,ef)|0,i=(i=i+Math.imul(A,ed)|0)+Math.imul(M,ef)|0,o=o+Math.imul(M,ed)|0;var ej=(c+(n=n+Math.imul(E,ep)|0)|0)+((8191&(i=(i=i+Math.imul(E,em)|0)+Math.imul(x,ep)|0))<<13)|0;c=((o=o+Math.imul(x,em)|0)+(i>>>13)|0)+(ej>>>26)|0,ej&=67108863,n=Math.imul(B,er),i=(i=Math.imul(B,en))+Math.imul(U,er)|0,o=Math.imul(U,en),n=n+Math.imul(N,eo)|0,i=(i=i+Math.imul(N,ea)|0)+Math.imul(D,eo)|0,o=o+Math.imul(D,ea)|0,n=n+Math.imul(P,eu)|0,i=(i=i+Math.imul(P,ec)|0)+Math.imul(T,eu)|0,o=o+Math.imul(T,ec)|0,n=n+Math.imul(j,ef)|0,i=(i=i+Math.imul(j,ed)|0)+Math.imul(R,ef)|0,o=o+Math.imul(R,ed)|0;var eR=(c+(n=n+Math.imul(A,ep)|0)|0)+((8191&(i=(i=i+Math.imul(A,em)|0)+Math.imul(M,ep)|0))<<13)|0;c=((o=o+Math.imul(M,em)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=67108863,n=Math.imul(B,eo),i=(i=Math.imul(B,ea))+Math.imul(U,eo)|0,o=Math.imul(U,ea),n=n+Math.imul(N,eu)|0,i=(i=i+Math.imul(N,ec)|0)+Math.imul(D,eu)|0,o=o+Math.imul(D,ec)|0,n=n+Math.imul(P,ef)|0,i=(i=i+Math.imul(P,ed)|0)+Math.imul(T,ef)|0,o=o+Math.imul(T,ed)|0;var eC=(c+(n=n+Math.imul(j,ep)|0)|0)+((8191&(i=(i=i+Math.imul(j,em)|0)+Math.imul(R,ep)|0))<<13)|0;c=((o=o+Math.imul(R,em)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=67108863,n=Math.imul(B,eu),i=(i=Math.imul(B,ec))+Math.imul(U,eu)|0,o=Math.imul(U,ec),n=n+Math.imul(N,ef)|0,i=(i=i+Math.imul(N,ed)|0)+Math.imul(D,ef)|0,o=o+Math.imul(D,ed)|0;var eP=(c+(n=n+Math.imul(P,ep)|0)|0)+((8191&(i=(i=i+Math.imul(P,em)|0)+Math.imul(T,ep)|0))<<13)|0;c=((o=o+Math.imul(T,em)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=67108863,n=Math.imul(B,ef),i=(i=Math.imul(B,ed))+Math.imul(U,ef)|0,o=Math.imul(U,ed);var eT=(c+(n=n+Math.imul(N,ep)|0)|0)+((8191&(i=(i=i+Math.imul(N,em)|0)+Math.imul(D,ep)|0))<<13)|0;c=((o=o+Math.imul(D,em)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=67108863;var eI=(c+(n=Math.imul(B,ep))|0)+((8191&(i=(i=Math.imul(B,em))+Math.imul(U,ep)|0))<<13)|0;return c=((o=Math.imul(U,em))+(i>>>13)|0)+(eI>>>26)|0,eI&=67108863,u[0]=ey,u[1]=eb,u[2]=eg,u[3]=ev,u[4]=ew,u[5]=e_,u[6]=eS,u[7]=eE,u[8]=ex,u[9]=ek,u[10]=eA,u[11]=eM,u[12]=eO,u[13]=ej,u[14]=eR,u[15]=eC,u[16]=eP,u[17]=eT,u[18]=eI,0!==c&&(u[19]=c,r.length++),r};function g(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;
vendor: 5,482 bytes, line 29
29for(var s=67108863&n,u=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=u;c++){var l=o-c,f=(0|e.words[l])*(0|t.words[c]),d=67108863&f;a=a+(f/67108864|0)|0,s=67108863&(d=d+s|0),i+=(a=a+(d>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function v(e,t,r){return g(e,t,r)}function w(e,t){this.x=e,this.y=t}Math.imul||(b=y),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?b(this,e,t):r<63?y(this,e,t):r<1024?g(this,e,t):v(this,e,t)},w.prototype.makeRBT=function(e){for(var t=Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},w.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},w.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},w.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),l=0;l<i;l+=s)for(var f=u,d=c,h=0;h<a;h++){var p=r[l+h],m=n[l+h],y=r[l+h+a],b=n[l+h+a],g=f*y-d*b;b=f*b+d*y,y=g,r[l+h]=p+y,n[l+h]=m+b,r[l+h+a]=p-y,n[l+h+a]=m-b,h!==s&&(g=u*f-c*d,d=u*d+c*f,f=g)}},w.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},w.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},w.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},w.prototype.convert13b=function(e,t,r,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===o),n((-8192&o)==0)},w.prototype.stub=function(e){for(var t=Array(e),r=0;r<e;r++)t[r]=0;return t},w.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=Array(n),s=Array(n),u=Array(n),c=Array(n),l=Array(n),f=Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,l,f,n,i);for(var h=0;h<n;h++){var p=s[h]*l[h]-u[h]*f[h];u[h]=s[h]*f[h]+u[h]*l[h],s[h]=p}return this.conjugate(s,u,n),this.transform(s,u,d,o,n,i),this.conjugate(d,o,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r._strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=Array(this.length+e.length),v(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var r=0,i=0;i<this.length;i++){var o=(0|this.words[i])*e,a=(67108863&o)+(67108863&r);r>>=26,r+=(o/67108864|0)+(a>>>26),this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=m(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,u=(0|this.words[t])-s<<r;this.words[t]=u|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var i,o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,u=r;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=i);c--){var f=0|this.words[c];this.words[c]=l<<26-o|f>>>o,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this._strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return(n("number"==typeof e),n(e<67108864),e<0)?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?
vendor: 11,601 bytes, line 29
29(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,a=e.length+r;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var u=(0|e.words[i])*t;o-=67108863&u,s=(o>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),a=e,s=0|a.words[a.length-1];0!=(n=26-this._countBits(s))&&(a=a.ushln(n),i.iushln(n),s=0|a.words[a.length-1]);var u=i.length-a.length;if("mod"!==t){(r=new o(null)).length=u+1,r.words=Array(r.length);for(var c=0;c<r.length;c++)r.words[c]=0}var l=i.clone()._ishlnsubmul(a,1,u);0===l.negative&&(i=l,r&&(r.words[u]=1));for(var f=u-1;f>=0;f--){var d=(0|i.words[a.length+f])*67108864+(0|i.words[a.length+f-1]);for(d=Math.min(d/s|0,67108863),i._ishlnsubmul(a,d,f);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(a,1,f),i.isZero()||(i.negative^=1);r&&(r.words[f]=d)}return r&&r._strip(),i._strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},o.prototype.divmod=function(e,t,r){var i,a,s;return(n(!e.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):(this.negative&e.negative)!=0?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||0>this.cmp(e)?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t)},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=67108864%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),f=t.clone();!t.isZero();){for(var d=0,h=1;(t.words[0]&h)==0&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(f)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(u)):(r.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var a=new o(1),s=new o(0),u=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,l=1;(r.words[0]&l)==0&&c<26;++c,l<<=1);if(c>0)for(r.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,d=1;(i.words[0]&d)==0&&f<26;++f,d<<=1);if(f>0)for(i.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);r.cmp(i)>=0?(r.isub(i),a.isub(s)):(i.isub(r),s.isub(a))}return 0>(t=0===r.cmpn(1)?a:s).cmpn(0)&&t.iadd(e),t},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return -1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return -1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return -1===this.cmpn(e)},o.prototype.lt=function(e){return -1===this.cmp(e)},o.prototype.lten=function(e){return 0>=this.cmpn(e)},o.prototype.lte=function(e){return 0>=this.cmp(e)},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new M(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var _={k256:null,p224:null,p192:null,p25519:null};function S(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function E(){S.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){S.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){S.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){S.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function O(e){M.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}S.prototype._tmp=function(){var e=new o(null);return e.words=Array(Math.ceil(this.n/13)),e},S.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},S.prototype.split=function(e,t){e.iushrn(this.n,0,t)},S.prototype.imulK=function(e){return e.imul(this.k)},i(E,S),E.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i<n;i++)t.words[i]=e.words[i];if(t.length=n,e.length<=9){e.words[0]=0,e.length=1;return}var o=e.words[9];for(i=10,t.words[t.length++]=o&r;i<e.length;i++){var a=0|e.words[i];e.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},E.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(x,S),i(k,S),i(A,S),A.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;
vendor: 7,153 bytes, line 29
29r++){var n=(0|e.words[r])*19+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){var t;if(_[e])return _[e];if("k256"===e)t=new E;else if("p224"===e)t=new x;else if("p192"===e)t=new k;else if("p25519"===e)t=new A;else throw Error("Unknown prime "+e);return _[e]=t,t},M.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},M.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},M.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},M.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},M.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},M.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},M.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},M.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},M.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},M.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},M.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},M.prototype.isqr=function(e){return this.imul(e,e.clone())},M.prototype.sqr=function(e){return this.mul(e,e)},M.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var f=this.pow(l,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var m=h,y=0;0!==m.cmp(s);y++)m=m.redSqr();n(y<p);var b=this.pow(f,new o(1).iushln(p-y-1));d=d.redMul(b),f=b.redSqr(),h=h.redMul(f),p=y}return d},M.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},M.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=4,n=Array(16);n[0]=new o(1).toRed(this),n[1]=e;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],e);var a=n[0],s=0,u=0,c=t.bitLength()%26;for(0===c&&(c=26),i=t.length-1;i>=0;i--){for(var l=t.words[i],f=c-1;f>=0;f--){var d=l>>f&1;if(a!==n[0]&&(a=this.sqr(a)),0===d&&0===s){u=0;continue}s<<=1,s|=d,(++u===r||0===i&&0===f)&&(a=this.mul(a,n[s]),u=0,s=0)}c=26}return a},M.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},M.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new O(e)},i(O,M),O.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},O.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},O.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},O.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},O.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},3500:function(e,t,r){var n;function i(e){this.rand=e}if(e.exports=function(e){return n||(n=new i(null)),n.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(i.prototype._rand=function(){throw Error("Not implemented yet")});else try{var o=r(6113);if("function"!=typeof o.randomBytes)throw Error("Not supported");i.prototype._rand=function(e){return o.randomBytes(e)}}catch(e){}},1387:function(e,t,r){var n=r(6911).Buffer;function i(e){n.isBuffer(e)||(e=n.from(e));for(var t=e.length/4|0,r=Array(t),i=0;i<t;i++)r[i]=e.readUInt32BE(4*i);return r}function o(e){for(var t=0;t<e.length;e++)e[t]=0}function a(e,t,r,n,i){for(var o,a,s,u,c=r[0],l=r[1],f=r[2],d=r[3],h=e[0]^t[0],p=e[1]^t[1],m=e[2]^t[2],y=e[3]^t[3],b=4,g=1;g<i;g++)o=c[h>>>24]^l[p>>>16&255]^f[m>>>8&255]^d[255&y]^t[b++],a=c[p>>>24]^l[m>>>16&255]^f[y>>>8&255]^d[255&h]^t[b++],s=c[m>>>24]^l[y>>>16&255]^f[h>>>8&255]^d[255&p]^t[b++],u=c[y>>>24]^l[h>>>16&255]^f[p>>>8&255]^d[255&m]^t[b++],h=o,p=a,m=s,y=u;return o=(n[h>>>24]<<24|n[p>>>16&255]<<16|n[m>>>8&255]<<8|n[255&y])^t[b++],a=(n[p>>>24]<<24|n[m>>>16&255]<<16|n[y>>>8&255]<<8|n[255&h])^t[b++],[o>>>=0,a>>>=0,s=((n[m>>>24]<<24|n[y>>>16&255]<<16|n[h>>>8&255]<<8|n[255&p])^t[b++])>>>0,u=((n[y>>>24]<<24|n[h>>>16&255]<<16|n[p>>>8&255]<<8|n[255&m])^t[b++])>>>0]}var s=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var e=Array(256),t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,u=0;u<256;++u){var c=s^s<<1^s<<2^s<<3^s<<4;c=c>>>8^255&c^99,r[a]=c,n[c]=a;var l=e[a],f=e[l],d=e[f],h=257*e[c]^16843008*c;i[0][a]=h<<24|h>>>8,i[1][a]=h<<16|h>>>16,i[2][a]=h<<8|h>>>24,i[3][a]=h,h=16843009*d^65537*f^257*l^16843008*a,o[0][c]=h<<24|h>>>8,o[1][c]=h<<16|h>>>16,o[2][c]=h<<8|h>>>24,o[3][c]=h,0===a?a=s=1:(a=l^e[e[e[d^l]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function c(e){this._key=i(e),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=(r+1)*4,i=[],o=0;o<t;o++)i[o]=e[o];for(o=t;o<n;o++){var a=i[o-1];o%t==0?(a=a<<8|a>>>24,a=(u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a])^s[o/t|0]<<24):t>6&&o%t==4&&(a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a]),i[o]=i[o-t]^a}for(var c=[],l=0;l<n;l++){var f=n-l,d=i[f-(l%4?0:4)];l<4||f<=4?c[l]=d:c[l]=u.INV_SUB_MIX[0][u.SBOX[d>>>24]]^u.INV_SUB_MIX[1][u.SBOX[d>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[d>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&d]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(e){return a(e=i(e),this._keySchedule,u.SUB_MIX,u.SBOX,this._nR
29ounds)},c.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},c.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var r=a(e,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},c.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=c},6624:function(e,t,r){var n=r(1387),i=r(6911).Buffer,o=r(1043),a=r(3782),s=r(7225),u=r(4734),c=r(598);function l(e,t){var r=0;e.length!==t.length&&r++;for(var n=Math.min(e.length,t.length),i=0;i<n;++i)r+=e[i]^t[i];return r}function f(e,t,r){if(12===t.length)return e._finID=i.concat([t,i.from([0,0,0,1])]),i.concat([t,i.from([0,0,0,2])]);var n=new s(r),o=t.length,a=o%16;n.update(t),a&&(a=16-a,n.update(i.alloc(a,0))),n.update(i.alloc(8,0));var u=8*o,l=i.alloc(8);l.writeUIntBE(u,0,8),n.update(l),e._finID=n.state;var f=i.from(e._finID);return c(f),f}function d(e,t,r,a){o.call(this);var u=i.alloc(4,0);this._cipher=new n.AES(t);var c=this._cipher.encryptBlock(u);this._ghash=new s(c),r=f(this,r,c),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}a(d,o),d.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=i.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r},d.prototype._final=function(){if(this._decrypt&&!this._authTag)throw Error("Unsupported state or unable to authenticate data");var e=u(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&l(e,this._authTag))throw Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},d.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw Error("Attempting to get auth tag in unsupported state");return this._authTag},d.prototype.setAuthTag=function(e){if(!this._decrypt)throw Error("Attempting to set auth tag in unsupported state");this._authTag=e},d.prototype.setAAD=function(e){if(this._called)throw Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},e.exports=d},6594:function(e,t,r){var n=r(2),i=r(2598),o=r(5866);function a(){return Object.keys(o)}t.createCipher=t.Cipher=n.createCipher,t.createCipheriv=t.Cipheriv=n.createCipheriv,t.createDecipher=t.Decipher=i.createDecipher,t.createDecipheriv=t.Decipheriv=i.createDecipheriv,t.listCiphers=t.getCiphers=a},2598:function(e,t,r){var n=r(6624),i=r(6911).Buffer,o=r(6370),a=r(126),s=r(1043),u=r(1387),c=r(8368);function l(e,t,r){s.call(this),this._cache=new f,this._last=void 0,this._cipher=new u.AES(t),this._prev=i.from(r),this._mode=e,this._autopadding=!0}function f(){this.cache=i.allocUnsafe(0)}function d(e){var t=e[15];if(t<1||t>16)throw Error("unable to decrypt data");for(var r=-1;++r<t;)if(e[r+(16-t)]!==t)throw Error("unable to decrypt data");if(16!==t)return e.slice(0,16-t)}function h(e,t,r){var s=o[e.toLowerCase()];if(!s)throw TypeError("invalid suite type");if("string"==typeof r&&(r=i.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=i.from(t)),t.length!==s.key/8)throw TypeError("invalid key length "+t.length);return"stream"===s.type?new a(s.module,t,r,!0):"auth"===s.type?new n(s.module,t,r,!0):new l(s.module,t,r)}function p(e,t){var r=o[e.toLowerCase()];if(!r)throw TypeError("invalid suite type");var n=c(t,!1,r.key,r.iv);return h(e,n.key,n.iv)}r(3782)(l,s),l.prototype._update=function(e){this._cache.add(e);for(var t,r,n=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),n.push(r);return i.concat(n)},l.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return d(this._mode.decrypt(this,e));if(e)throw Error("data not multiple of block length")},l.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},f.prototype.add=function(e){this.cache=i.concat([this.cache,e])},f.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},f.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=p,t.createDecipheriv=h},2:function(e,t,r){var n=r(6370),i=r(6624),o=r(6911).Buffer,a=r(126),s=r(1043),u=r(1387),c=r(8368);function l(e,t,r){s.call(this),this._cache=new d,this._cipher=new u.AES(t),this._prev=o.from(r),this._mode=e,this._autopadding=!0}r(3782)(l,s),l.prototype._update=function(e){this._cache.add(e);for(var t,r,n=[];t=this._cache.get();)r=this._mode.encrypt(this,t),n.push(r);return o.concat(n)};var f=o.alloc(16,16);function d(){this.cache=o.allocUnsafe(0)}function h(e,t,r){var s=n[e.toLowerCase()];if(!s)throw TypeError("invalid suite type");if("string"==typeof t&&(t=o.from(t)),t.length!==s.key/8)throw TypeError("invalid key length "+t.length);if("string"==typeof r&&(r=o.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw TypeError("invalid iv length "+r.length);return"stream"===s.type?new a(s.module,t,r):"auth"===s.type?new i(s.module,t,r):new l(s.module,t,r)}function p(e,t){var r=n[e.toLowerCase()];if(!r)throw TypeError("invalid suite type");var i=c(t,!1,r.key,r.iv);
29return h(e,i.key,i.iv)}l.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(f))throw this._cipher.scrub(),Error("data not multiple of block length")},l.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},d.prototype.add=function(e){this.cache=o.concat([this.cache,e])},d.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},d.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),r=-1;++r<e;)t.writeUInt8(e,r);return o.concat([this.cache,t])},t.createCipheriv=h,t.createCipher=p},7225:function(e,t,r){var n=r(6911).Buffer,i=n.alloc(16,0);function o(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}function a(e){var t=n.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function s(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}s.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},s.prototype._multiply=function(){for(var e,t,r=o(this.h),n=[0,0,0,0],i=-1;++i<128;){for((this.state[~~(i/8)]&1<<7-i%8)!=0&&(n[0]^=r[0],n[1]^=r[1],n[2]^=r[2],n[3]^=r[3]),t=(1&r[3])!=0,e=3;e>0;e--)r[e]=r[e]>>>1|(1&r[e-1])<<31;r[0]=r[0]>>>1,t&&(r[0]=-520093696^r[0])}this.state=a(n)},s.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},s.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(a([0,e,0,t])),this.state},e.exports=s},598:function(e){function t(e){for(var t,r=e.length;r--;)if(255===(t=e.readUInt8(r)))e.writeUInt8(0,r);else{t++,e.writeUInt8(t,r);break}}e.exports=t},9825:function(e,t,r){var n=r(4734);t.encrypt=function(e,t){var r=n(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},t.decrypt=function(e,t){var r=e._prev;return e._prev=t,n(e._cipher.decryptBlock(t),r)}},321:function(e,t,r){var n=r(6911).Buffer,i=r(4734);function o(e,t,r){var o=t.length,a=i(t,e._cache);return e._cache=e._cache.slice(o),e._prev=n.concat([e._prev,r?t:a]),a}t.encrypt=function(e,t,r){for(var i,a=n.allocUnsafe(0);t.length;)if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=n.allocUnsafe(0)),e._cache.length<=t.length)i=e._cache.length,a=n.concat([a,o(e,t.slice(0,i),r)]),t=t.slice(i);else{a=n.concat([a,o(e,t,r)]);break}return a}},3147:function(e,t,r){var n=r(6911).Buffer;function i(e,t,r){for(var n,i,a,s=-1,u=8,c=0;++s<u;)n=e._cipher.encryptBlock(e._prev),i=t&1<<7-s?128:0,c+=(128&(a=n[0]^i))>>s%8,e._prev=o(e._prev,r?i:a);return c}function o(e,t){var r=e.length,i=-1,o=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++i<r;)o[i]=e[i]<<1|e[i+1]>>7;return o}t.encrypt=function(e,t,r){for(var o=t.length,a=n.allocUnsafe(o),s=-1;++s<o;)a[s]=i(e,t[s],r);return a}},2430:function(e,t,r){var n=r(6911).Buffer;function i(e,t,r){var i=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=n.concat([e._prev.slice(1),n.from([r?t:i])]),i}t.encrypt=function(e,t,r){for(var o=t.length,a=n.allocUnsafe(o),s=-1;++s<o;)a[s]=i(e,t[s],r);return a}},3361:function(e,t,r){var n=r(4734),i=r(6911).Buffer,o=r(598);function a(e){var t=e._cipher.encryptBlockRaw(e._prev);return o(e._prev),t}var s=16;t.encrypt=function(e,t){var r=Math.ceil(t.length/s),o=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(r*s)]);for(var u=0;u<r;u++){var c=a(e),l=o+u*s;e._cache.writeUInt32BE(c[0],l+0),e._cache.writeUInt32BE(c[1],l+4),e._cache.writeUInt32BE(c[2],l+8),e._cache.writeUInt32BE(c[3],l+12)}var f=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),n(t,f)}},1590:function(e,t){t.encrypt=function(e,t){return e._cipher.encryptBlock(t)},t.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},6370:function(e,t,r){var n={ECB:r(1590),CBC:r(9825),CFB:r(321),CFB8:r(2430),CFB1:r(3147),OFB:r(3412),CTR:r(3361),GCM:r(3361)},i=r(5866);for(var o in i)i[o].module=n[i[o].mode];e.exports=i},3412:function(e,t,r){var n=r(4734);function o(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}t.encrypt=function(e,t){for(;e._cache.length<t.length;)e._cache=i.concat([e._cache,o(e)]);var r=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),n(t,r)}},126:function(e,t,r){var n=r(1387),i=r(6911).Buffer,o=r(1043);function a(e,t,r,a){o.call(this),this._cipher=new n.AES(t),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._mode=e}r(3782)(a,o),a.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},e.exports=a},8996:function(e,t,r){var n=r(5238),i=r(6594),o=r(6370),a=r(6280),s=r(8368);function u(e,t){if(o[e=e.toLowerCase()])r=o[e].key,n=o[e].iv;else if(a[e])r=8*a[e].key,n=a[e].iv;else throw TypeError("invalid suite type");var r,n,i=s(t,!1,r,n);return l(e,i.key,i.iv)}function c(e,t){if(o[e=e.toLowerCase()])r=o[e].key,n=o[e].iv;else if(a[e])r=8*a[e].key,n=a[e].iv;else throw TypeError("invalid suite type");var r,n,i=s(t,!1,r,n);return f(e,i.key,i.iv)}function l(e,t,r){if(o[e=e.toLowerCase()])return i.createCipheriv(e,t,r);if(a[e])return new n({key:t,iv:r,mode:e});throw TypeError("invalid suite type")}function f(e,t,r){if(o[e=e.toLowerCase()])return i.createDecipheriv(e,t,r);if(a[e])return new n({key:t,iv:r,mode:e,decrypt:!0});throw TypeError("invalid suite type")}function d(){return Object.keys(a).concat(i.getCiphers())}t.createCipher=t.Cipher=u,t.createCipheriv=t.Cipheriv=l,t.createDecipher=t.Decipher=c,t.createDecipheriv=t.Decipheriv=f,t.listCiphers=t.getCiphers=d},5238:function(e,t,r){var n=r(1043),i=r(9536),o=r(3782),a=r(6911).Buffer,s={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function u(e){n.call(this);var t,r=e.mode.toLowerCase(),i=s[r];t=e.decrypt?"decrypt":"encrypt";var o=e.key;a.isBuffer(o)||(o=a.from(o)),("des-ede"===r||"des-ede-cbc"===r)&&(o=a.concat([o,o.slice(0,8)]));var u=e.iv;a.isBuffer(u)||(u=a.from(u)),this._des=i.create({key:o,iv:u,type:t})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],e.exports=u,o(u,n),u.prototype._update=function(e){return a.from(this._des.update(e))},u.prototype._final=function(){return a.from(this._des.final())}},6280:function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},7166:function(e,t,r){var n=r(711),o=r(7223);function a(e){var t=u(e);return{blinder:t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}function s(e,t){var r=a(t),o=t.modulus.byteLength();n.mont(t.modulus);var s=new n(e).mul(r.blinder).umod(t.modulus),u=s.toRed(n.mont(t.prime1)),c=s.toRed(n.mont(t.prime2)),l=t.coefficient,f=t.prime1,d=t.prime2,h=u.redPow(t.exponent1),p=c.redPow(t.exponent2);h=h.fromRed(),p=p.fromRed();var m=h.isub(p).imul(l).umod(f);return m.imul(d),p.iadd(m),new i(p.imul(r.unblinder).umod(t.modulus).toArray(!1,o))}function u(e){for(var t=e.modulus.byteLength(),r=new n(o(t));r.cmp(e.modulus)>=0||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new n(o(t));return r}e.exports=s,s.getr=u},9276:function(e,t,r){e.exports=r(2908)},4078:function(e,t,r){var n=r(6911).Buffer,i=r(9739),o=r(3726),a=r(3782),s=r(9807),u=r(4013),c=r(2908);function l(e){o.Writable.call(this);var t=c[e];if(!t)throw Error("Unknown message digest");
vendor: 4,366 bytes, line 29
29this._hashType=t.hash,this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function f(e){o.Writable.call(this);var t=c[e];if(!t)throw Error("Unknown message digest");this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function d(e){return new l(e)}function h(e){return new f(e)}Object.keys(c).forEach(function(e){c[e].id=n.from(c[e].id,"hex"),c[e.toLowerCase()]=c[e]}),a(l,o.Writable),l.prototype._write=function(e,t,r){this._hash.update(e),r()},l.prototype.update=function(e,t){return"string"==typeof e&&(e=n.from(e,t)),this._hash.update(e),this},l.prototype.sign=function(e,t){this.end();var r=s(this._hash.digest(),e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},a(f,o.Writable),f.prototype._write=function(e,t,r){this._hash.update(e),r()},f.prototype.update=function(e,t){return"string"==typeof e&&(e=n.from(e,t)),this._hash.update(e),this},f.prototype.verify=function(e,t,r){return"string"==typeof t&&(t=n.from(t,r)),this.end(),u(t,this._hash.digest(),e,this._signType,this._tag)},e.exports={Sign:d,Verify:h,createSign:d,createVerify:h}},9807:function(e,t,r){var n=r(6911).Buffer,i=r(4873),o=r(7166),a=r(949).ec,s=r(1670),u=r(9902),c=r(9267);function l(e,t,r,i,a){var s=u(t);if(s.curve){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw Error("wrong private key type");return f(e,s)}if("dsa"===s.type){if("dsa"!==i)throw Error("wrong private key type");return d(e,s,r)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw Error("wrong private key type");e=n.concat([a,e]);for(var c=s.modulus.byteLength(),l=[0,1];e.length+l.length+1<c;)l.push(255);l.push(0);for(var h=-1;++h<e.length;)l.push(e[h]);return o(l,s)}function f(e,t){var r=c[t.curve.join(".")];if(!r)throw Error("unknown curve "+t.curve.join("."));var i=new a(r).keyFromPrivate(t.privateKey).sign(e);return n.from(i.toDER())}function d(e,t,r){for(var n,i=t.params.priv_key,o=t.params.p,a=t.params.q,u=t.params.g,c=new s(0),l=m(e,a).mod(a),f=!1,d=p(i,a,e,r);!1===f;)c=g(u,n=b(a,d,r),o,a),0===(f=n.invm(a).imul(l.add(i.mul(c))).mod(a)).cmpn(0)&&(f=!1,c=new s(0));return h(c,f)}function h(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e)),128&t[0]&&(t=[0].concat(t));var r=[48,e.length+t.length+4,2,e.length];return r=r.concat(e,[2,t.length],t),n.from(r)}function p(e,t,r,o){if((e=n.from(e.toArray())).length<t.byteLength()){var a=n.alloc(t.byteLength()-e.length);e=n.concat([a,e])}var s=r.length,u=y(r,t),c=n.alloc(s);c.fill(1);var l=n.alloc(s);return l=i(o,l).update(c).update(n.from([0])).update(e).update(u).digest(),c=i(o,l).update(c).digest(),l=i(o,l).update(c).update(n.from([1])).update(e).update(u).digest(),c=i(o,l).update(c).digest(),{k:l,v:c}}function m(e,t){var r=new s(e),n=(e.length<<3)-t.bitLength();return n>0&&r.ishrn(n),r}function y(e,t){e=(e=m(e,t)).mod(t);var r=n.from(e.toArray());if(r.length<t.byteLength()){var i=n.alloc(t.byteLength()-r.length);r=n.concat([i,r])}return r}function b(e,t,r){var o,a;do{for(o=n.alloc(0);8*o.length<e.bitLength();)t.v=i(r,t.k).update(t.v).digest(),o=n.concat([o,t.v]);a=m(o,e),t.k=i(r,t.k).update(t.v).update(n.from([0])).digest(),t.v=i(r,t.k).update(t.v).digest()}while(-1!==a.cmp(e));return a}function g(e,t,r,n){return e.toRed(s.mont(r)).redPow(t).fromRed().mod(n)}e.exports=l,e.exports.getKey=p,e.exports.makeKey=b},4013:function(e,t,r){var n=r(6911).Buffer,i=r(1670),o=r(949).ec,a=r(9902),s=r(9267);function u(e,t,r,o,s){var u=a(r);if("ec"===u.type){if("ecdsa"!==o&&"ecdsa/rsa"!==o)throw Error("wrong public key type");return c(e,t,u)}if("dsa"===u.type){if("dsa"!==o)throw Error("wrong public key type");return l(e,t,u)}if("rsa"!==o&&"ecdsa/rsa"!==o)throw Error("wrong public key type");t=n.concat([s,t]);for(var f=u.modulus.byteLength(),d=[1],h=0;t.length+d.length+2<f;)d.push(255),h++;d.push(0);for(var p=-1;++p<t.length;)d.push(t[p]);d=n.from(d);var m=i.mont(u.modulus);e=(e=new i(e).toRed(m)).redPow(new i(u.publicExponent));var y=h<8?1:0;for(f=Math.min((e=n.from(e.fromRed().toArray())).length,d.length),e.length!==d.length&&(y=1),p=-1;++p<f;)y|=e[p]^d[p];return 0===y}function c(e,t,r){var n=s[r.data.algorithm.curve.join(".")];if(!n)throw Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new o(n),a=r.data.subjectPrivateKey.data;return i.verify(t,e,a)}function l(e,t,r){var n=r.data.p,o=r.data.q,s=r.data.g,u=r.data.pub_key,c=a.signature.decode(e,"der"),l=c.s,d=c.r;f(l,o),f(d,o);var h=i.mont(n),p=l.invm(o);
vendor: 4,727 bytes, line 29
29return 0===s.toRed(h).redPow(new i(t).mul(p).mod(o)).fromRed().mul(u.toRed(h).redPow(d.mul(p).mod(o)).fromRed()).mod(n).mod(o).cmp(d)}function f(e,t){if(0>=e.cmpn(0)||e.cmp(t)>=t)throw Error("invalid sig")}e.exports=u},4734:function(e){e.exports=function(e,t){for(var r=Math.min(e.length,t.length),n=new i(r),o=0;o<r;++o)n[o]=e[o]^t[o];return n}},1043:function(e,t,r){var n=r(6911).Buffer,i=r(2781).Transform,o=r(1576).StringDecoder;function a(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(3782)(a,i),a.prototype.update=function(e,t,r){"string"==typeof e&&(e=n.from(e,t));var i=this._update(e);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},e.exports=a},9942:function(e,t,r){var n=r(949),o=r(711);e.exports=function(e){return new s(e)};var a={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function s(e){this.curveType=a[e],this.curveType||(this.curveType={name:e}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function u(e,t,r){Array.isArray(e)||(e=e.toArray());var n=new i(e);if(r&&n.length<r){var o=new i(r-n.length);o.fill(0),n=i.concat([o,n])}return t?n.toString(t):n}a.p224=a.secp224r1,a.p256=a.secp256r1=a.prime256v1,a.p192=a.secp192r1=a.prime192v1,a.p384=a.secp384r1,a.p521=a.secp521r1,s.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},s.prototype.computeSecret=function(e,t,r){return t=t||"utf8",i.isBuffer(e)||(e=new i(e,t)),u(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},s.prototype.getPublicKey=function(e,t){var r=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(r[r.length-1]%2?r[0]=7:r[0]=6),u(r,e)},s.prototype.getPrivateKey=function(e){return u(this.keys.getPrivate(),e)},s.prototype.setPublicKey=function(e,t){return t=t||"utf8",i.isBuffer(e)||(e=new i(e,t)),this.keys._importPublic(e),this},s.prototype.setPrivateKey=function(e,t){t=t||"utf8",i.isBuffer(e)||(e=new i(e,t));var r=new o(e);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this}},9739:function(e,t,r){"use strict";var n=r(3782),i=r(3533),o=r(3225),a=r(4371),s=r(1043);function u(e){s.call(this,"digest"),this._hash=e}n(u,s),u.prototype._update=function(e){this._hash.update(e)},u.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new o:new u(a(e))}},450:function(e,t,r){var n=r(3533);e.exports=function(e){return(new n).update(e).digest()}},4873:function(e,t,r){"use strict";var n=r(3782),i=r(8119),o=r(1043),a=r(6911).Buffer,s=r(450),u=r(3225),c=r(4371),l=a.alloc(128);function f(e,t){o.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var r="sha512"===e||"sha384"===e?128:64;this._alg=e,this._key=t,t.length>r?t=("rmd160"===e?new u:c(e)).update(t).digest():t.length<r&&(t=a.concat([t,l],r));for(var n=this._ipad=a.allocUnsafe(r),i=this._opad=a.allocUnsafe(r),s=0;s<r;s++)n[s]=54^t[s],i[s]=92^t[s];this._hash="rmd160"===e?new u:c(e),this._hash.update(n)}n(f,o),f.prototype._update=function(e){this._hash.update(e)},f.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new u:c(this._alg)).update(this._opad).update(e).digest()},e.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new f("rmd160",t):"md5"===e?new i(s,t):new f(e,t)}},8119:function(e,t,r){"use strict";var n=r(3782),i=r(6911).Buffer,o=r(1043),a=i.alloc(128),s=64;
vendor: 5,141 bytes, line 29
29function u(e,t){o.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>s?t=e(t):t.length<s&&(t=i.concat([t,a],s));for(var r=this._ipad=i.allocUnsafe(s),n=this._opad=i.allocUnsafe(s),u=0;u<s;u++)r[u]=54^t[u],n[u]=92^t[u];this._hash=[r]}n(u,o),u.prototype._update=function(e){this._hash.push(e)},u.prototype._final=function(){var e=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,e]))},e.exports=u},9536:function(e,t,r){"use strict";t.utils=r(5334),t.Cipher=r(9876),t.DES=r(1016),t.CBC=r(8641),t.EDE=r(6159)},8641:function(e,t,r){"use strict";var n=r(3523),i=r(3782),o={};function a(e){n.equal(e.length,8,"Invalid IV length"),this.iv=Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}function s(e){function t(t){e.call(this,t),this._cbcInit()}i(t,e);for(var r=Object.keys(o),n=0;n<r.length;n++){var a=r[n];t.prototype[a]=o[a]}return t.create=function(e){return new t(e)},t}t.instantiate=s,o._cbcInit=function(){var e=new a(this.options.iv);this._cbcState=e},o._update=function(e,t,r,n){var i=this._cbcState,o=this.constructor.super_.prototype,a=i.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)a[s]^=e[t+s];o._update.call(this,a,0,r,n);for(var s=0;s<this.blockSize;s++)a[s]=r[n+s]}else{o._update.call(this,e,t,r,n);for(var s=0;s<this.blockSize;s++)r[n+s]^=a[s];for(var s=0;s<this.blockSize;s++)a[s]=e[t+s]}}},9876:function(e,t,r){"use strict";var n=r(3523);function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=Array(this.blockSize),this.bufferOff=0}e.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var r=Math.min(this.buffer.length-this.bufferOff,e.length-t),n=0;n<r;n++)this.buffer[this.bufferOff+n]=e[t+n];return this.bufferOff+=r,r},i.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(e){var t=0,r=0,n=Array(((this.bufferOff+e.length)/this.blockSize|0)*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(n,r)));for(var i=e.length-(e.length-t)%this.blockSize;t<i;t+=this.blockSize)this._update(e,t,n,r),r+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return n},i.prototype._updateDecrypt=function(e){for(var t=0,r=0,n=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=Array(n*this.blockSize);n>0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return(e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t)?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=Array(this.blockSize);return this._update(this.buffer,0,e,0),e},i.prototype._unpad=function(e){return e},i.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},1016:function(e,t,r){"use strict";var n=r(3523),i=r(3782),o=r(5334),a=r(9876);function s(){this.tmp=[,,],this.keys=null}function u(e){a.call(this,e);var t=new s;this._desState=t,this.deriveKeys(t,e.key)}i(u,a),e.exports=u,u.create=function(e){return new u(e)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];u.prototype.deriveKeys=function(e,t){e.keys=Array(32),n.equal(t.length,this.blockSize,"Invalid key length");var r=o.readUInt32BE(t,0),i=o.readUInt32BE(t,4);o.pc1(r,i,e.tmp,0),r=e.tmp[0],i=e.tmp[1];for(var a=0;a<e.keys.length;a+=2){var s=c[a>>>1];r=o.r28shl(r,s),i=o.r28shl(i,s),o.pc2(r,i,e.keys,a)}},u.prototype._update=function(e,t,r,n){var i=this._desState,a=o.readUInt32BE(e,t),s=o.readUInt32BE(e,t+4);o.ip(a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,a,s,i.tmp,0):this._decrypt(i,a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],o.writeUInt32BE(r,a,n),o.writeUInt32BE(r,s,n+4)},u.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n<e.length;n++)e[n]=r;return!0},u.prototype._unpad=function(e){for(var t=e[e.length-1],r=e.length-t;r<e.length;r++)n.equal(e[r],t);return e.slice(0,e.length-t)},u.prototype._encrypt=function(e,t,r,n,i){for(var a=t,s=r,u=0;u<e.keys.length;u+=2){var c=e.keys[u],l=e.keys[u+1];o.expand(s,e.tmp,0),c^=e.tmp[0],l^=e.tmp[1];var f=o.substitute(c,l),d=o.permute(f),h=s;s=(a^d)>>>0,a=h}o.rip(s,a,n,i)},u.prototype._decrypt=function(e,t,r,n,i){for(var a=r,s=t,u=e.keys.length-2;u>=0;u-=2){var c=e.keys[u],l=e.keys[u+1];o.expand(a,e.tmp,0),c^=e.tmp[0],l^=e.tmp[1];var f=o.substitute(c,l),d=o.permute(f),h=a;a=(s^d)>>>0,s=h}o.rip(a,s,n,i)}},6159:function(e,t,r){"use strict";var n=r(3523),i=r(3782),o=r(9876),a=r(1016);function s(e,t){n.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),i=t.slice(8,16),o=t.slice(16,24);"encrypt"===e?this.ciphers=[a.create({type:"encrypt",key:r}),a.create({type:"decrypt",key:i}
vendor: 6,391 bytes, line 29
29),a.create({type:"encrypt",key:o})]:this.ciphers=[a.create({type:"decrypt",key:o}),a.create({type:"encrypt",key:i}),a.create({type:"decrypt",key:r})]}function u(e){o.call(this,e);var t=new s(this.type,this.options.key);this._edeState=t}i(u,o),e.exports=u,u.create=function(e){return new u(e)},u.prototype._update=function(e,t,r,n){var i=this._edeState;i.ciphers[0]._update(e,t,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},u.prototype._pad=a.prototype._pad,u.prototype._unpad=a.prototype._unpad},5334:function(e,t){"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,n){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(var s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(var a=6;a>=0;a-=2){for(var s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(var s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}r[n+0]=i>>>0,r[n+1]=o>>>0},t.rip=function(e,t,r,n){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(var a=4;a<8;a++)for(var s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.pc1=function(e,t,r,n){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(var s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(var a=1;a<=3;a++){for(var s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(var s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(var s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,n,i){for(var o=0,a=0,s=r.length>>>1,u=0;u<s;u++)o<<=1,o|=e>>>r[u]&1;for(var u=s;u<r.length;u++)a<<=1,a|=t>>>r[u]&1;n[i+0]=o>>>0,n[i+1]=a>>>0},t.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=e>>>o&63;for(var o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var n=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var r=0,i=0;i<4;i++){var o=e>>>18-6*i&63,a=n[64*i+o];r<<=4,r|=a}for(var i=0;i<4;i++){var o=t>>>18-6*i&63,a=n[256+64*i+o];r<<=4,r|=a}return r>>>0};var i=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,r=0;r<i.length;r++)t<<=1,t|=e>>>i[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var n=e.toString(2);n.length<t;)n="0"+n;for(var i=[],o=0;o<t;o+=r)i.push(n.slice(o,o+r));return i.join(" ")}},6587:function(e,t,r){var n=r(296),o=r(7992),a=r(373);function s(e){var t=new i(o[e].prime,"hex"),r=new i(o[e].gen,"hex");return new a(t,r)}var u={binary:!0,hex:!0,base64:!0};function c(e,t,r,o){return i.isBuffer(t)||void 0===u[t]?c(e,"binary",t,r):(t=t||"binary",o=o||"binary",r=r||new i([2]),i.isBuffer(r)||(r=new i(r,o)),"number"==typeof e)?new a(n(e,r),r,!0):(i.isBuffer(e)||(e=new i(e,t)),new a(e,r,!0))}t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=s,t.createDiffieHellman=t.DiffieHellman=c},373:function(e,t,r){var n=r(711),o=new(r(1354)),a=new n(24),s=new n(11),u=new n(10),c=new n(3),l=new n(7),f=r(296),d=r(7223);function h(e,t){return t=t||"utf8",i.isBuffer(e)||(e=new i(e,t)),this._pub=new n(e),this}function p(e,t){return t=t||"utf8",i.isBuffer(e)||(e=new i(e,t)),this._priv=new n(e),this}e.exports=b;var m={};function y(e,t){var r,n=t.toString("hex"),i=[n,e.toString(16)].join("_");if(i in m)return m[i];var d=0;if(e.isEven()||!f.simpleSieve||!f.fermatTest(e)||!o.test(e))return d+=1,"02"===n||"05"===n?d+=8:d+=4,m[i]=d,d;switch(o.test(e.shrn(1))||(d+=2),n){case"02":e.mod(a).cmp(s)&&(d+=8);break;case"05":(r=e.mod(u)).cmp(c)&&r.cmp(l)&&(d+=8);break;default:d+=4}return m[i]=d,d}function b(e,t,r){this.setGenerator(t),this.__prime=new n(e),this._prime=n.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=h,this.setPrivateKey=p):this._primeCode=8}function g(e,t){var r=new i(e.toArray());return t?r.toString(t):r}Object.defineProperty(b.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=y(this.__prime,this.__gen)),this._primeCode}}),b.prototype.generateKeys=function(){return this._priv||(this._priv=new n(d(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},b.prototype.computeSecret=function(e){var t=(e=(e=new n(e)).toRed(this._prime)).redPow(this._priv).fromRed(),r=new i(t.toArray()),o=this.getPrime();if(r.length<o.length){var a=new i(o.length-r.length);a.fill(0),r=i.concat([a,r])}return r},b.prototype.getPublicKey=function(e){return g(this._pub,e)},b.prototype.getPrivateKey=function(e){return g(this._priv,e)},b.prototype.getPrime=function(e){return g(this.__prime,e)},b.prototype.getGenerator=function(e){return g(this._gen,e)},b.prototype.setGenerator=function(e,t){return t=t||"utf8",i.isBuffer(e)||(e=new i(e,t)),this.__gen=e,this._gen=new n(e),this}},296:function(e,t,r){var n=r(7223);e.exports=g,g.simpleSieve=y,g.fermatTest=b;
29var i=r(711),o=new i(24),a=new(r(1354)),s=new i(1),u=new i(2),c=new i(5);new i(16),new i(8);var l=new i(10),f=new i(3);new i(7);var d=new i(11),h=new i(4);new i(12);var p=null;function m(){if(null!==p)return p;var e=1048576,t=[];t[0]=2;for(var r=1,n=3;n<e;n+=2){for(var i=Math.ceil(Math.sqrt(n)),o=0;o<r&&t[o]<=i&&n%t[o]!=0;o++);r!==o&&t[o]<=i||(t[r++]=n)}return p=t,t}function y(e){for(var t=m(),r=0;r<t.length;r++)if(0===e.modn(t[r])){if(0!==e.cmpn(t[r]))return!1;break}return!0}function b(e){var t=i.mont(e);return 0===u.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function g(e,t){var r,p;if(e<16)return new i(2===t||5===t?[140,123]:[140,39]);for(t=new i(t);;){for(r=new i(n(Math.ceil(e/8)));r.bitLength()>e;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(u),t.cmp(u)){if(!t.cmp(c))for(;r.mod(l).cmp(f);)r.iadd(h)}else for(;r.mod(o).cmp(d);)r.iadd(h);if(y(p=r.shrn(1))&&y(r)&&b(p)&&b(r)&&a.test(p)&&a.test(r))return r}}},949:function(e,t,r){"use strict";var n=t;n.version=r(2531).i8,n.utils=r(4401),n.rand=r(3500),n.curve=r(9359),n.curves=r(6226),n.ec=r(4088),n.eddsa=r(8511)},2727:function(e,t,r){"use strict";var n=r(711),i=r(4401),o=i.getNAF,a=i.getJSF,s=i.assert;function u(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=u,u.prototype.point=function(){throw Error("Not implemented")},u.prototype.validate=function(){throw Error("Not implemented")},u.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1,this._bitLength),i=(1<<r.step+1)-(r.step%2==0?2:1);i/=3;for(var a=[],u=0;u<n.length;u+=r.step){for(var c=0,t=u+r.step-1;t>=u;t--)c=(c<<1)+n[t];a.push(c)}for(var l=this.jpoint(null,null,null),f=this.jpoint(null,null,null),d=i;d>0;d--){for(var u=0;u<a.length;u++){var c=a[u];c===d?f=f.mixedAdd(r.points[u]):c===-d&&(f=f.mixedAdd(r.points[u].neg()))}l=l.add(f)}return l.toP()},u.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,a=o(t,r,this._bitLength),u=this.jpoint(null,null,null),c=a.length-1;c>=0;c--){for(var t=0;c>=0&&0===a[c];c--)t++;if(c>=0&&t++,u=u.dblp(t),c<0)break;var l=a[c];s(0!==l),u="affine"===e.type?l>0?u.mixedAdd(i[l-1>>1]):u.mixedAdd(i[-l-1>>1].neg()):l>0?u.add(i[l-1>>1]):u.add(i[-l-1>>1].neg())}return"affine"===e.type?u.toP():u},u.prototype._wnafMulAdd=function(e,t,r,n,i){for(var s=this._wnafT1,u=this._wnafT2,c=this._wnafT3,l=0,f=0;f<n;f++){var d=t[f],h=d._getNAFPoints(e);s[f]=h.wnd,u[f]=h.points}for(var f=n-1;f>=1;f-=2){var p=f-1,m=f;if(1!==s[p]||1!==s[m]){c[p]=o(r[p],s[p],this._bitLength),c[m]=o(r[m],s[m],this._bitLength),l=Math.max(c[p].length,l),l=Math.max(c[m].length,l);continue}var y=[t[p],null,null,t[m]];0===t[p].y.cmp(t[m].y)?(y[1]=t[p].add(t[m]),y[2]=t[p].toJ().mixedAdd(t[m].neg())):0===t[p].y.cmp(t[m].y.redNeg())?(y[1]=t[p].toJ().mixedAdd(t[m]),y[2]=t[p].add(t[m].neg())):(y[1]=t[p].toJ().mixedAdd(t[m]),y[2]=t[p].toJ().mixedAdd(t[m].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],g=a(r[p],r[m]);l=Math.max(g[0].length,l),c[p]=Array(l),c[m]=Array(l);for(var v=0;v<l;v++){var w=0|g[0][v],_=0|g[1][v];c[p][v]=b[(w+1)*3+(_+1)],c[m][v]=0,u[p]=y}}for(var S=this.jpoint(null,null,null),E=this._wnafT4,f=l;f>=0;f--){for(var x=0;f>=0;){for(var k=!0,v=0;v<n;v++)E[v]=0|c[v][f],0!==E[v]&&(k=!1);if(!k)break;x++,f--}if(f>=0&&x++,S=S.dblp(x),f<0)break;for(var v=0;v<n;v++){var d,A=E[v];0!==A&&(A>0?d=u[v][A-1>>1]:A<0&&(d=u[v][-A-1>>1].neg()),S="affine"===d.type?S.mixedAdd(d):S.add(d))}}for(var f=0;f<n;f++)u[f]=null;return i?S:S.toP()},u.BasePoint=c,c.prototype.eq=function(){throw Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},u.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw Error("Unknown point format")},c.prototype.encodeCompressed=function(e){return this.encode(e,!0)},c.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},c.prototype.encode=function(e,t){return i.encode(this._encode(t),e)}
vendor: 13,513 bytes, line 29
29,c.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},c.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)n=n.dbl();r.push(n)}return{step:e,points:r}},c.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},2705:function(e,t,r){"use strict";var n=r(4401),i=r(711),o=r(3782),a=r(2727),s=n.assert;function u(e){this.twisted=(0|e.a)!=1,this.mOneA=this.twisted&&(0|e.a)==-1,this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=(0|e.c)==1}function c(e,t,r,n,o){a.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,!this.curve.extended||this.t||(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(u,a),e.exports=u,u.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},u.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},u.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},u.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(o.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw Error("invalid point");var u=s.fromRed().isOdd();return(t&&!u||!t&&u)&&(s=s.redNeg()),this.point(e,s)},u.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(o.redInvm());if(0===a.cmp(this.zero)){if(!t)return this.point(this.zero,e);throw Error("invalid point")}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},u.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},o(c,a.BasePoint),u.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},u.prototype.point=function(e,t,r,n){return new c(this,e,t,r,n)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),u=i.redMul(a),c=o.redMul(s),l=i.redMul(s),f=a.redMul(o);return this.curve.point(u,c,f,l)},c.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=this.curve._mulA(i),s=a.redAdd(o);if(this.zOne)e=n.redSub(i).redSub(o).redMul(s.redSub(this.curve.two)),t=s.redMul(a.redSub(o)),r=s.redSqr().redSub(s).redSub(s);else{var u=this.z.redSqr(),c=s.redSub(u).redISub(u);e=n.redSub(i).redISub(o).redMul(c),t=s.redMul(a.redSub(o)),r=s.redMul(c)}}else{var a=i.redAdd(o),u=this.curve._mulC(this.z).redSqr(),c=a.redSub(u).redSub(u);e=this.curve._mulC(n.redISub(a)).redMul(c),t=this.curve._mulC(a).redMul(i.redISub(o)),r=a.redMul(c)}return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),u=r.redAdd(t),c=o.redMul(a),l=s.redMul(u),f=o.redMul(u),d=a.redMul(s);return this.curve.point(c,l,d,f)},c.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),c=i.redAdd(s),l=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),f=n.redMul(u).redMul(l);return this.curve.twisted?(t=n.redMul(c).redMul(a.redSub(this.curve._mulA(o))),r=u.redMul(c)):(t=n.redMul(c).redMul(a.redSub(o)),r=this.curve._mulC(u).redMul(c)),this.curve.point(f,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},9359:function(e,t,r){"use strict";var n=t;n.base=r(2727),n.short=r(4720),n.mont=r(6653),n.edwards=r(2705)},6653:function(e,t,r){"use strict";var n=r(711),i=r(3782),o=r(2727),a=r(4401);function s(e){o.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(e,t,r){o.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},i(u,o.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},s.prototype.point=function(e,t){return new u(this,e,t)},s.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(e,t){return new u(e,t[0],t[1]||e.one)},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},u.prototype.add=function(){throw Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),u=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,u)},u.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=this,o=[];0!==t.cmpn(0);t.iushrn(1))o.push(t.andln(1));for(var a=o.length-1;a>=0;a--)0===o[a]?(r=r.diffAdd(n,i),n=n.dbl()):(n=r.diffAdd(n,i),r=r.dbl());return n},u.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},u.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},4720:function(e,t,r){"use strict";var n=r(4401),i=r(711),o=r(3782),a=r(2727),s=n.assert;function u(e){a.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function c(e,t,r,n){a.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function l(e,t,r,n){a.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(r,16),this.z=new i(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(u,a),e.exports=u,u.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var t,r,n,o=this._getEndoRoots(this.p);t=(t=0>o[0].cmp(o[1])?o[0]:o[1]).toRed(this.red)}if(e.lambda)r=new i(e.lambda,16);else{var a=this._getEndoRoots(this.n);0===this.g.mul(a[0]).x.cmp(this.g.x.redMul(t))?r=a[0]:(r=a[1],s(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return n=e.basis?e.basis.map(function(e){return{a:new i(e.a,16),b:new i(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:n}}},u.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),r=new i(2).toRed(t).redInvm(),n=r.redNeg(),o=new i(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},u.prototype._getEndoBasis=function(e){for(var t,r,n,o,a,s,u,c,l,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,h=this.n.clone(),p=new i(1),m=new i(0),y=new i(0),b=new i(1),g=0;0!==d.cmpn(0);){var v=h.div(d);c=h.sub(v.mul(d)),l=y.sub(v.mul(p));var w=b.sub(v.mul(m));if(!n&&0>c.cmp(f))t=u.neg(),r=p,n=c.neg(),o=l;else if(n&&2==++g)break;u=c,h=d,d=c,y=p,p=l,b=m,m=w}a=c.neg(),s=l;var _=n.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(_)>=0&&(a=t,s=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a:a,b:s}]},u.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),c=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:u.add(c).neg()}},u.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var o=n.fromRed().isOdd();return(t&&!o||!t&&o)&&(n=n.redNeg()),this.point(e,n)},u.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},u.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],u=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),u=u.neg(!0)),n[2*o]=s,n[2*o+1]=u,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var c=this._wnafMulAdd(1,n,i,2*o,r),l=0;l<2*o;l++)n[l]=null,i[l]=null;return c},o(c,a.BasePoint),u.prototype.point=function(e,t,r){return new c(this,e,t,r)},u.prototype.pointFromJSON=function(e,t){return c.fromJSON(this,e,t)},c.prototype._getBeta=function(){if(this.curve.endo){var e=this.prec
vendor: 4,158 bytes, line 29
29omputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},c.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},c.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var o=t[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e)||0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return(e=new i(e,16),this.isInfinity())?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},c.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},c.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(l,a.BasePoint),u.prototype.jpoint=function(e,t,r){return new l(this,e,t,r)},l.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},l.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},l.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),l=c.redMul(s),f=n.redMul(c),d=u.redSqr().redIAdd(l).redISub(f).redISub(f),h=u.redMul(f.redISub(d)).redISub(o.redMul(l)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,h,p)},l.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;
vendor: 4,062 bytes, line 29
29var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),c=u.redMul(a),l=r.redMul(u),f=s.redSqr().redIAdd(c).redISub(l).redISub(l),d=s.redMul(l.redISub(f)).redISub(i.redMul(c)),h=this.z.redMul(a);return this.curve.jpoint(f,d,h)},l.prototype.dblp=function(e){if(0===e||this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}for(var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,u=s.redSqr().redSqr(),c=a.redAdd(a),r=0;r<e;r++){var l=o.redSqr(),f=c.redSqr(),d=f.redSqr(),h=l.redAdd(l).redIAdd(l).redIAdd(n.redMul(u)),p=o.redMul(f),m=h.redSqr().redISub(p.redAdd(p)),y=p.redISub(m),b=h.redMul(y);b=b.redIAdd(b).redISub(d);var g=c.redMul(s);r+1<e&&(u=u.redMul(d)),o=m,s=g,c=b}return this.curve.jpoint(o,c.redMul(i),s)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},l.prototype._zeroDbl=function(){if(this.zOne){var e,t,r,n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),u=s.redSqr().redISub(a).redISub(a),c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),e=u,t=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var l=this.x.redSqr(),f=this.y.redSqr(),d=f.redSqr(),h=this.x.redAdd(f).redSqr().redISub(l).redISub(d);h=h.redIAdd(h);var p=l.redAdd(l).redIAdd(l),m=p.redSqr(),y=d.redIAdd(d);y=(y=y.redIAdd(y)).redIAdd(y),e=m.redISub(h).redISub(h),t=p.redMul(h.redISub(e)).redISub(y),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},l.prototype._threeDbl=function(){if(this.zOne){var e,t,r,n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),u=s.redSqr().redISub(a).redISub(a);e=u;var c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),t=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var l=this.z.redSqr(),f=this.y.redSqr(),d=this.x.redMul(f),h=this.x.redSub(l).redMul(this.x.redAdd(l));h=h.redAdd(h).redIAdd(h);var p=d.redIAdd(d),m=(p=p.redIAdd(p)).redAdd(p);e=h.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(f).redISub(l);var y=f.redSqr();y=(y=(y=y.redIAdd(y)).redIAdd(y)).redIAdd(y),t=h.redMul(p.redISub(e)).redISub(y)}return this.curve.jpoint(e,t,r)},l.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=t.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),u=t.redAdd(t),c=(u=u.redIAdd(u)).redMul(a),l=s.redSqr().redISub(c.redAdd(c)),f=c.redISub(l),d=a.redSqr();d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=s.redMul(f).redISub(d),p=r.redAdd(r).redMul(n);return this.curve.jpoint(l,h,p)},l.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(n),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),u=n.redIAdd(n);u=(u=(u=u.redIAdd(u)).redIAdd(u)).redIAdd(u);var c=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(u),l=t.redMul(c);l=(l=l.redIAdd(l)).redIAdd(l);var f=this.x.redMul(s).redISub(l);f=(f=f.redIAdd(f)).redIAdd(f);var d=this.y.redMul(c.redMul(u.redISub(c)).redISub(a.redMul(s)));d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(f,d,h)},l.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},l.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)}
vendor: 5,347 bytes, line 29
29,l.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},l.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},6226:function(e,t,r){"use strict";var n,i=t,o=r(7028),a=r(9359),s=r(4401).assert;function u(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new u(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=u,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(9702)}catch(e){n=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"}
vendor: 10,584 bytes, line 29
29,{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},4088:function(e,t,r){"use strict";var n=r(711),i=r(4910),o=r(4401),a=r(6226),s=r(3500),u=o.assert,c=r(4724),l=r(7526);function f(e){if(!(this instanceof f))return new f(e);"string"==typeof e&&(u(a.hasOwnProperty(e),"Unknown curve "+e),e=a[e]),e instanceof a.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=f,f.prototype.keyPair=function(e){return new c(this,e)},f.prototype.keyFromPrivate=function(e,t){return c.fromPrivate(this,e,t)},f.prototype.keyFromPublic=function(e,t){return c.fromPublic(this,e,t)},f.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new n(2));;){var a=new n(t.generate(r));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},f.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return(r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0)?e.sub(this.n):e},f.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),u=e.toArray("be",a),c=new i({hash:this.hash,entropy:s,nonce:u,pers:o.pers,persEnc:o.persEnc||"utf8"}),f=this.n.sub(new n(1)),d=0;;d++){var h=o.k?o.k(d):new n(c.generate(this.n.byteLength()));if(!(0>=(h=this._truncateToN(h,!0)).cmpn(1)||h.cmp(f)>=0)){var p=this.g.mul(h);if(!p.isInfinity()){var m=p.getX(),y=m.umod(this.n);if(0!==y.cmpn(0)){var b=h.invm(this.n).mul(y.mul(t.getPrivate()).iadd(e));if(0!==(b=b.umod(this.n)).cmpn(0)){var g=(p.getY().isOdd()?1:0)|(0!==m.cmp(y)?2:0);return o.canonical&&b.cmp(this.nh)>0&&(b=this.n.sub(b),g^=1),new l({r:y,s:b,recoveryParam:g})}}}}}},f.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var o=(t=new l(t,"hex")).r,a=t.s;if(0>o.cmpn(1)||o.cmp(this.n)>=0||0>a.cmpn(1)||a.cmp(this.n)>=0)return!1;var s=a.invm(this.n),u=s.mul(e).umod(this.n),c=s.mul(o).umod(this.n);if(!this.curve._maxwellTrick){var f=this.g.mulAdd(u,r.getPublic(),c);return!f.isInfinity()&&0===f.getX().umod(this.n).cmp(o)}var f=this.g.jmulAdd(u,r.getPublic(),c);return!f.isInfinity()&&f.eqXToP(o)},f.prototype.recoverPubKey=function(e,t,r,i){u((3&r)===r,"The recovery param is more than two bits"),t=new l(t,i);var o=this.n,a=new n(e),s=t.r,c=t.s,f=1&r,d=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw Error("Unable to find sencond key candinate");s=d?this.curve.pointFromX(s.add(this.curve.n),f):this.curve.pointFromX(s,f);var h=t.r.invm(o),p=o.sub(a).mul(h).umod(o),m=c.mul(h).umod(o);return this.g.mulAdd(p,s,m)},f.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new l(t,n)).recoveryParam)return t.recoveryParam;for(var i,o=0;o<4;o++){try{i=this.recoverPubKey(e,t,o)}catch(e){continue}if(i.eq(r))return o}throw Error("Unable to find valid recovery factor")}},4724:function(e,t,r){"use strict";var n=r(711),i=r(4401).assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=o,o.fromPublic=function(e,t,r){return t instanceof o?t:new o(e,{pub:t,pubEnc:r})},o.fromPrivate=function(e,t,r){return t instanceof o?t:new o(e,{priv:t,privEnc:r})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(e,t){return("string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t)?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y){"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&i(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.mul(this.priv).getX()},o.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},o.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},7526:function(e,t,r){"use strict";var n=r(711),i=r(4401),o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function u(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,a=t.place;o<n;o++,a++)i<<=8,i|=e[a],i>>>=0;return!(i<=127)&&(t.place=a,i)}function c(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function l(e,t){if(t<128){e.push(t);return}var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;var o=u(e,r);if(!1===o||o+r.place!==e.length||2!==e[r.place++])return!1;var a=u(e,r);if(!1===a)return!1;var c=e.slice(r.place,a+r.place);if(r.place+=a,2!==e[r.place++])return!1;var l=u(e,r);if(!1===l||e.length!==l+r.place)return!1;var f=e.slice(r.place,l+r.place);if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}return this.r=new n(c),this.s=new n(f),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=c(t),r=c(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];l(n,t.length),(n=n.concat(t)).push(2),l(n,r.length);var o=n.concat(r),a=[48];return l(a,o.length),a=a.concat(o),i.encode(a,e)}},8511:function(e,t,r){"use strict";var n=r(7028),i=r(6226),o=r(4401),a=o.assert,s=o.parseBytes,u=r(9917),c=r(9314);function l(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof l))return new l(e);var e=i[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=l,l.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),u=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})},l.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},l.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},l.prototype.keyFromPublic=function(e){return u.fromPublic(this,e)},l.prototype.keyFromSecret=function(e){return u.fromSecret(this,e)},l.prototype.makeSignature=function(e){return e instanceof c?e:new c(this,e)},l.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},l.prototype.decodePoint=function(e){var t=(e=o.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),n=(128&e[t])!=0,i=o.intFromLE(r);return this.curve.pointFromY(i,n)},l.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},l.prototype.decodeInt=function(e){return o.intFromLE(e)},l.prototype.isPoint=function(e){return e instanceof this.pointClass}},9917:function(e,t,r){"use strict";var n=r(4401),i=n.assert,o=n.parseBytes,a=n.cachedProperty;function s(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),a(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),a(s,"privBytes",function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n}),a(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),a(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),a(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},s.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},e.exports=s},9314:function(e,t,r){"use strict";var n=r(711),i=r(4401),o=i.assert,a=i.cachedProperty,s=i.parseBytes;function u(e,t){this.eddsa=e,"object"!=typeof t&&(t=s(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}a(u,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),a(u,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),a(u,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),a(u,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),u.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},u.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=u},9702:function(e
vendor: 26,140 bytes, line 29
29){e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},
294401:function(e,t,r){"use strict";var n=t,i=r(711),o=r(3523),a=r(6545);function s(e,t,r){var n=Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var i=1<<t+1,o=e.clone(),a=0;a<n.length;a++){var s,u=o.andln(i-1);o.isOdd()?(s=u>(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n}function u(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,i=0;e.cmpn(-n)>0||t.cmpn(-i)>0;){var o,a,s=e.andln(3)+n&3,u=t.andln(3)+i&3;if(3===s&&(s=-1),3===u&&(u=-1),(1&s)==0)o=0;else{var c=e.andln(7)+n&7;o=(3===c||5===c)&&2===u?-s:s}if(r[0].push(o),(1&u)==0)a=0;else{var c=t.andln(7)+i&7;a=(3===c||5===c)&&2===s?-u:u}r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r}function c(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}}function l(e){return"string"==typeof e?n.toArray(e,"hex"):e}function f(e){return new i(e,"hex","le")}n.assert=o,n.toArray=a.toArray,n.zero2=a.zero2,n.toHex=a.toHex,n.encode=a.encode,n.getNAF=s,n.getJSF=u,n.cachedProperty=c,n.parseBytes=l,n.intFromLE=f},8368:function(e,t,r){var n=r(6911).Buffer,i=r(3533);function o(e,t,r,o){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw RangeError("salt should be Buffer with 8 byte length");for(var a=r/8,s=n.alloc(a),u=n.alloc(o||0),c=n.alloc(0);a>0||o>0;){var l=new i;l.update(c),l.update(e),t&&l.update(t),c=l.digest();var f=0;if(a>0){var d=s.length-a;f=Math.min(a,c.length),c.copy(s,d,0,f),a-=f}if(f<c.length&&o>0){var h=u.length-o,p=Math.min(o,c.length-f);c.copy(u,h,f,f+p),o-=p}}return c.fill(0),{key:s,iv:u}}e.exports=o},9029:function(e,t,r){"use strict";var n=r(6911).Buffer,i=r(3726).Transform;function o(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw TypeError(t+" must be a string or a buffer")}function a(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(3782)(a,i),a.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},a.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},a.prototype.update=function(e,t){if(o(e,"Data"),this._finalized)throw Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)r[a++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)r[this._blockOffset++]=e[i++];for(var s=0,u=8*e.length;u>0;++s)this._length[s]+=u,(u=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*u);return this},a.prototype._update=function(){throw Error("_update is not implemented")},a.prototype.digest=function(e){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},a.prototype._digest=function(){throw Error("_digest is not implemented")},e.exports=a},7028:function(e,t,r){var n=t;n.utils=r(263),n.common=r(1330),n.sha=r(301),n.ripemd=r(3079),n.hmac=r(3092),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},1330:function(e,t,r){"use strict";var n=r(263),i=r(3523);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}
vendor: 9,424 bytes, line 29
29t.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(o=8,n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0;o<this.padLength;o++)n[i++]=0;return n}},3092:function(e,t,r){"use strict";var n=r(263),i=r(3523);function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(t=0,this.inner=(new this.Hash).update(e);t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},o.prototype.update=function(e,t){return this.inner.update(e,t),this},o.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},3079:function(e,t,r){"use strict";var n=r(263),i=r(1330),o=n.rotl32,a=n.sum32,s=n.sum32_3,u=n.sum32_4,c=i.BlockHash;function l(){if(!(this instanceof l))return new l;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function f(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function d(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function h(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(l,c),t.ripemd160=l,l.blockSize=512,l.outSize=160,l.hmacStrength=192,l.padLength=64,l.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],c=this.h[3],l=this.h[4],g=r,v=n,w=i,_=c,S=l,E=0;E<80;E++){var x=a(o(u(r,f(E,n,i,c),e[p[E]+t],d(E)),y[E]),l);r=l,l=c,c=o(i,10),i=n,n=x,x=a(o(u(g,f(79-E,v,w,_),e[m[E]+t],h(E)),b[E]),S),g=S,S=_,_=o(w,10),w=v,v=x}x=s(this.h[1],i,_),this.h[1]=s(this.h[2],c,S),this.h[2]=s(this.h[3],l,g),this.h[3]=s(this.h[4],r,v),this.h[4]=s(this.h[0],n,w),this.h[0]=x},l.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[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],m=[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],y=[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],b=[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]},301:function(e,t,r){"use strict";t.sha1=r(2742),t.sha224=r(7105),t.sha256=r(1525),t.sha384=r(9948),t.sha512=r(1319)},2742:function(e,t,r){"use strict";var n=r(263),i=r(1330),o=r(2975),a=n.rotl32,s=n.sum32,u=n.sum32_5,c=o.ft_1,l=i.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}n.inherits(d,l),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=a(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],l=this.h[2],d=this.h[3],h=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),m=u(a(i,5),c(p,o,l,d),h,r[n],f[p]);h=d,d=l,l=a(o,30),o=i,i=m}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],l),this.h[3]=s(this.h[3],d),this.h[4]=s(this.h[4],h)},d.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},7105:function(e,t,r){"use strict";var n=r(263),i=r(1525);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},1525:function(e,t,r){"use strict";var n=r(263),i=r(1330),o=r(2975),a=r(3523),s=n.sum32,u=n.sum32_4,c=n.sum32_5,l=o.ch32,f=o.maj32,d=o.s0_256,h=o.s1_256,p=o.g0_256,m=o.g1_256,y=i.BlockHash,b=[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];function g(){if(!(this instanceof g))return new g;y.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=b,this.W=Array(64)}n.inherits(g,y),e.exports=g,g.blockSize=512,g.outSize=256,g.hmacStrength=192,g.padLength=64,g.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=u(m(r[n-2]),r[n-7],p(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],y=this.h[2],b=this.h[3],g=this.h[4],v=this.h[5],w=this.h[6],_=this.h[7];for(a(this.k.length===r.length),n=0;n<r.length;n++){var S=c(_,h(g),l(g,v,w),this.k[n],r[n]),E=s(d(i),f(i,o,y));_=w,w=v,v=g,g=s(b,S),b=y,y=o,o=i,i=s(S,E)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],y),this.h[3]=s(this.h[3],b),this.h[4]=s(this.h[4],g),this.h[5]=s(this.h[5],v),this.h[6]=s(this.h[6],w),this.h[7]=s(this.h[7],_)},g.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},9948:function(e,t,r){"use strict";var n=r(263),i=r(1319);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},1319:function(e,t,r){"use strict";var n=r(263),i=r(1330),o=r(3523),a=n.rotr64_hi,s=n.rotr64_lo,u=n.shr64_hi,c=n.shr64_lo,l=n.sum64,f=n.sum64_hi,d=n.sum64_lo,h=n.sum64_4_hi,p=n.sum64_4_lo,m=n.sum64_5_hi,y=n.sum64_5_lo,b=i.BlockHash,g=[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,
291126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function v(){if(!(this instanceof v))return new v;b.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=g,this.W=Array(160)}function w(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=4294967296),o}function _(e,t,r,n,i,o){var a=t&n^~t&o;return a<0&&(a+=4294967296),a}function S(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=4294967296),o}function E(e,t,r,n,i,o){var a=t&n^t&o^n&o;return a<0&&(a+=4294967296),a}function x(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=4294967296),r}function k(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=4294967296),r}function A(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=4294967296),r}function M(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=4294967296),r}function O(e,t){var r=a(e,t,1)^a(e,t,8)^u(e,t,7);return r<0&&(r+=4294967296),r}function j(e,t){var r=s(e,t,1)^s(e,t,8)^c(e,t,7);return r<0&&(r+=4294967296),r}function R(e,t){var r=a(e,t,19)^a(t,e,29)^u(e,t,6);return r<0&&(r+=4294967296),r}function C(e,t){var r=s(e,t,19)^s(t,e,29)^c(e,t,6);return r<0&&(r+=4294967296),r}n.inherits(v,b),e.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=R(r[n-4],r[n-3]),o=C(r[n-4],r[n-3]),a=r[n-14],s=r[n-13],u=O(r[n-30],r[n-29]),c=j(r[n-30],r[n-29]),l=r[n-32],f=r[n-31];r[n]=h(i,o,a,s,u,c,l,f),r[n+1]=p(i,o,a,s,u,c,l,f)}},v.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],i=this.h[1],a=this.h[2],s=this.h[3],u=this.h[4],c=this.h[5],h=this.h[6],p=this.h[7],b=this.h[8],g=this.h[9],v=this.h[10],O=this.h[11],j=this.h[12],R=this.h[13],C=this.h[14],P=this.h[15];o(this.k.length===r.length);for(var T=0;T<r.length;T+=2){var I=C,N=P,D=A(b,g),L=M(b,g),B=w(b,g,v,O,j,R),U=_(b,g,v,O,j,R),$=this.k[T],H=this.k[T+1],F=r[T],q=r[T+1],W=m(I,N,D,L,B,U,$,H,F,q),z=y(I,N,D,L,B,U,$,H,F,q);I=x(n,i),N=k(n,i),D=S(n,i,a,s,u,c),L=E(n,i,a,s,u,c);var K=f(I,N,D,L),Z=d(I,N,D,L);C=j,P=R,j=v,R=O,v=b,O=g,b=f(h,p,W,z),g=d(p,p,W,z),h=u,p=c,u=a,c=s,a=n,s=i,n=f(W,z,K,Z),i=d(W,z,K,Z)}l(this.h,0,n,i),l(this.h,2,a,s),l(this.h,4,u,c),l(this.h,6,h,p),l(this.h,8,b,g),l(this.h,10,v,O),l(this.h,12,j,R),l(this.h,14,C,P)},v.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},2975:function(e,t,r){"use strict";var n=r(263).rotr32;function i(e,t,r,n){return 0===e?o(t,r,n):1===e||3===e?s(t,r,n):2===e?a(t,r,n):void 0}function o(e,t,r){return e&t^~e&r}function a(e,t,r){return e&t^e&r^t&r}function s(e,t,r){return e^t^r}function u(e){return n(e,2)^n(e,13)^n(e,22)}function c(e){return n(e,6)^n(e,11)^n(e,25)}function l(e){return n(e,7)^n(e,18)^e>>>3}function f(e){return n(e,17)^n(e,19)^e>>>10}t.ft_1=i,t.ch32=o,t.maj32=a,t.p32=s,t.s0_256=u,t.s1_256=c,t.g0_256=l,t.g1_256=f},263:function(e,t,r){"use strict";var n=r(3523),i=r(3782);function o(e,t){return(64512&e.charCodeAt(t))==55296&&!(t<0)&&!(t+1>=e.length)&&(64512&e.charCodeAt(t+1))==56320}function a(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e){if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var n=0,i=0;i<e.length;i++){var a=e.charCodeAt(i);a<128?r[n++]=a:a<2048?(r[n++]=a>>6|192,r[n++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}}else for(i=0;i<e.length;i++)r[i]=0|e[i];return r}function s(e){for(var t="",r=0;r<e.length;r++)t+=l(e[r].toString(16));return t}function u(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function c(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=u(i)),r+=f(i.toString(16))}return r}function l(e){return 1===e.length?"0"+e:e}function f(e){if(7===e.length)return"0"+e;if(6===e.length)return"00"+e;if(5===e.length)return"000"+e;if(4===e.length)return"0000"+e;if(3===e.length)return"00000"+e;if(2===e.length)return"000000"+e;if(1===e.length)return"0000000"+e;else return e}function d(e,t,r,i){var o,a=r-t;n(a%4==0);for(var s=Array(a/4),u=0,c=t;u<s.length;u++,c+=4)o="big"===i?e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],s[u]=o>>>0;return s}function h(e,t){for(var r=Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var o=e[n];"big"===t?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r}function p(e,t){return e>>>t|e<<32-t}function m(e,t){return e<<t|e>>>32-t}function y(e,t){return e+t>>>0}function b(e,t,r){return e+t+r>>>0}function g(e,t,r,n){return e+t+r+n>>>0}function v(e,t,r,n,i){return e+t+r+n+i>>>0}function w(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o<n?1:0)+r+i;e[t]=a>>>
290,e[t+1]=o}function _(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0}function S(e,t,r,n){return t+n>>>0}function E(e,t,r,n,i,o,a,s){var u,c=t;return e+r+i+a+(u=0+((c=c+n>>>0)<t?1:0)+((c=c+o>>>0)<o?1:0)+((c=c+s>>>0)<s?1:0))>>>0}function x(e,t,r,n,i,o,a,s){return t+n+o+s>>>0}function k(e,t,r,n,i,o,a,s,u,c){var l,f=t;return e+r+i+a+u+(l=0+((f=f+n>>>0)<t?1:0)+((f=f+o>>>0)<o?1:0)+((f=f+s>>>0)<s?1:0)+((f=f+c>>>0)<c?1:0))>>>0}function A(e,t,r,n,i,o,a,s,u,c){return t+n+o+s+c>>>0}function M(e,t,r){return(t<<32-r|e>>>r)>>>0}function O(e,t,r){return(e<<32-r|t>>>r)>>>0}function j(e,t,r){return e>>>r}function R(e,t,r){return(e<<32-r|t>>>r)>>>0}t.inherits=i,t.toArray=a,t.toHex=s,t.htonl=u,t.toHex32=c,t.zero2=l,t.zero8=f,t.join32=d,t.split32=h,t.rotr32=p,t.rotl32=m,t.sum32=y,t.sum32_3=b,t.sum32_4=g,t.sum32_5=v,t.sum64=w,t.sum64_hi=_,t.sum64_lo=S,t.sum64_4_hi=E,t.sum64_4_lo=x,t.sum64_5_hi=k,t.sum64_5_lo=A,t.rotr64_hi=M,t.rotr64_lo=O,t.shr64_hi=j,t.shr64_lo=R},4910:function(e,t,r){"use strict";var n=r(7028),i=r(6545),o=r(3523);function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},a.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(e,t,r,n){"string"!=typeof t&&(n=r,r=t,t=null),e=i.toArray(e,t),r=i.toArray(r,n),o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length<e;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var a=o.slice(0,e);return this._update(r),this._reseed++,i.encode(a,t)}},3782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},3533:function(e,t,r){"use strict";var n=r(3782),i=r(9029),o=r(6911).Buffer,a=Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(e,t){return e<<t|e>>>32-t}function c(e,t,r,n,i,o,a){return u(e+(t&r|~t&n)+i+o|0,a)+t|0}function l(e,t,r,n,i,o,a){return u(e+(t&n|r&~n)+i+o|0,a)+t|0}function f(e,t,r,n,i,o,a){return u(e+(t^r^n)+i+o|0,a)+t|0}function d(e,t,r,n,i,o,a){return u(e+(r^(t|~n))+i+o|0,a)+t|0}n(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,o=this._d;r=c(r,n,i,o,e[0],3614090360,7),o=c(o,r,n,i,e[1],3905402710,12),i=c(i,o,r,n,e[2],606105819,17),n=c(n,i,o,r,e[3],3250441966,22),r=c(r,n,i,o,e[4],4118548399,7),o=c(o,r,n,i,e[5],1200080426,12),i=c(i,o,r,n,e[6],2821735955,17),n=c(n,i,o,r,e[7],4249261313,22),r=c(r,n,i,o,e[8],1770035416,7),o=c(o,r,n,i,e[9],2336552879,12),i=c(i,o,r,n,e[10],4294925233,17),n=c(n,i,o,r,e[11],2304563134,22),r=c(r,n,i,o,e[12],1804603682,7),o=c(o,r,n,i,e[13],4254626195,12),i=c(i,o,r,n,e[14],2792965006,17),n=c(n,i,o,r,e[15],1236535329,22),r=l(r,n,i,o,e[1],4129170786,5),o=l(o,r,n,i,e[6],3225465664,9),i=l(i,o,r,n,e[11],643717713,14),n=l(n,i,o,r,e[0],3921069994,20),r=l(r,n,i,o,e[5],3593408605,5),o=l(o,r,n,i,e[10],38016083,9),i=l(i,o,r,n,e[15],3634488961,14),n=l(n,i,o,r,e[4],3889429448,20),r=l(r,n,i,o,e[9],568446438,5),o=l(o,r,n,i,e[14],3275163606,9),i=l(i,o,r,n,e[3],4107603335,14),n=l(n,i,o,r,e[8],1163531501,20),r=l(r,n,i,o,e[13],2850285829,5),o=l(o,r,n,i,e[2],4243563512,9),i=l(i,o,r,n,e[7],1735328473,14),n=l(n,i,o,r,e[12],2368359562,20),r=f(r,n,i,o,e[5],4294588738,4),o=f(o,r,n,i,e[8],2272392833,11),i=f(i,o,r,n,e[11],1839030562,16),n=f(n,i,o,r,e[14],4259657740,23),r=f(r,
vendor: 7,190 bytes, line 29
29n,i,o,e[1],2763975236,4),o=f(o,r,n,i,e[4],1272893353,11),i=f(i,o,r,n,e[7],4139469664,16),n=f(n,i,o,r,e[10],3200236656,23),r=f(r,n,i,o,e[13],681279174,4),o=f(o,r,n,i,e[0],3936430074,11),i=f(i,o,r,n,e[3],3572445317,16),n=f(n,i,o,r,e[6],76029189,23),r=f(r,n,i,o,e[9],3654602809,4),o=f(o,r,n,i,e[12],3873151461,11),i=f(i,o,r,n,e[15],530742520,16),n=f(n,i,o,r,e[2],3299628645,23),r=d(r,n,i,o,e[0],4096336452,6),o=d(o,r,n,i,e[7],1126891415,10),i=d(i,o,r,n,e[14],2878612391,15),n=d(n,i,o,r,e[5],4237533241,21),r=d(r,n,i,o,e[12],1700485571,6),o=d(o,r,n,i,e[3],2399980690,10),i=d(i,o,r,n,e[10],4293915773,15),n=d(n,i,o,r,e[1],2240044497,21),r=d(r,n,i,o,e[8],1873313359,6),o=d(o,r,n,i,e[15],4264355552,10),i=d(i,o,r,n,e[6],2734768916,15),n=d(n,i,o,r,e[13],1309151649,21),r=d(r,n,i,o,e[4],4149444226,6),o=d(o,r,n,i,e[11],3174756917,10),i=d(i,o,r,n,e[2],718787259,15),n=d(n,i,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},s.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=o.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},1354:function(e,t,r){var n=r(711),i=r(3500);function o(e){this.rand=e||new i.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=Math.ceil(e.bitLength()/8);do var r=new n(this.rand.generate(t));while(r.cmp(e)>=0);return r},o.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},o.prototype.test=function(e,t,r){var i=e.bitLength(),o=n.mont(e),a=new n(1).toRed(o);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),u=0;!s.testn(u);u++);for(var c=e.shrn(u),l=s.toRed(o),f=!0;t>0;t--){var d=this._randrange(new n(2),s);r&&r(d);var h=d.toRed(o).redPow(c);if(0!==h.cmp(a)&&0!==h.cmp(l)){for(var p=1;p<u;p++){if(0===(h=h.redSqr()).cmp(a))return!1;if(0===h.cmp(l))break}if(p===u)return!1}}return f},o.prototype.getDivisor=function(e,t){var r=e.bitLength(),i=n.mont(e),o=new n(1).toRed(i);t||(t=Math.max(1,r/48|0));for(var a=e.subn(1),s=0;!a.testn(s);s++);for(var u=e.shrn(s),c=a.toRed(i);t>0;t--){var l=this._randrange(new n(2),a),f=e.gcd(l);if(0!==f.cmpn(1))return f;var d=l.toRed(i).redPow(u);if(0!==d.cmp(o)&&0!==d.cmp(c)){for(var h=1;h<s;h++){if(0===(d=d.redSqr()).cmp(o))return d.fromRed().subn(1).gcd(e);if(0===d.cmp(c))break}if(h===s)return(d=d.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},3523:function(e){function t(e,t){if(!e)throw Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,r){if(e!=t)throw Error(r||"Assertion failed: "+e+" != "+t)}},6545:function(e,t){"use strict";var r=t;function n(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e);for(var n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(var n=0;n<e.length;n++){var i=e.charCodeAt(n),o=i>>8,a=255&i;o?r.push(o,a):r.push(a)}return r}function i(e){return 1===e.length?"0"+e:e}function o(e){for(var t="",r=0;r<e.length;r++)t+=i(e[r].toString(16));return t}r.toArray=n,r.zero2=i,r.toHex=o,r.encode=function(e,t){return"hex"===t?o(e):e}},8687:function(e,t,r){"use strict";var n=r(7160);t.certificate=r(8782);var i=n.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())});t.RSAPrivateKey=i;var o=n.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});t.RSAPublicKey=o;var a=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())});t.PublicKey=a;var s=n.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())}),u=n.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())});t.PrivateKey=u;var c=n.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())});t.EncryptedPrivateKey=c;var l=n.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())});t.DSAPrivateKey=l,t.DSAparam=n.define("DSAparam",function(){this.int()});var f=n.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(d),this.key("publicKey").optional().explicit(1).bitstr())});t.ECPrivateKey=f;var d=n.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});t.signature=n.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},8782:function(e,t,r){"use strict";var n=r(7160),i=n.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),o=n.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),a=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),s=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}),u=n.define("RelativeDistinguishedName",function(){this.setof(o)}),c=n.define("RDNSequence",function(){this.seqof(u)}),l=n.define("Name",function(){this.choice({rdnSequence:this.use(c)})}),f=n.define("Validity",function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))}),d=n.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),h=n.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(l),this.key("validity").use(f),this.key("subject").use(l),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(d).optional())}
29),p=n.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(h),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())});e.exports=p},6501:function(e,t,r){var n=/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,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,a=r(8368),s=r(6594),u=r(6911).Buffer;e.exports=function(e,t){var r,c=e.toString(),l=c.match(n);if(l){var f="aes"+l[1],d=u.from(l[2],"hex"),h=u.from(l[3].replace(/[\r\n]/g,""),"base64"),p=a(t,d.slice(0,8),parseInt(l[1],10)).key,m=[],y=s.createDecipheriv(f,p,d);m.push(y.update(h)),m.push(y.final()),r=u.concat(m)}else{var b=c.match(o);r=new u(b[2].replace(/[\r\n]/g,""),"base64")}return{tag:c.match(i)[1],data:r}}},9902:function(e,t,r){var n=r(8687),i=r(2510),o=r(6501),a=r(6594),s=r(4978),u=r(6911).Buffer;function c(e){"object"!=typeof e||u.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=u.from(e));var t,r,i,a=o(e,t),s=a.tag,c=a.data;switch(s){case"CERTIFICATE":i=n.certificate.decode(c,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(i||(i=n.PublicKey.decode(c,"der")),r=i.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(i.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return i.subjectPrivateKey=i.subjectPublicKey,{type:"ec",data:i};case"1.2.840.10040.4.1":return i.algorithm.params.pub_key=n.DSAparam.decode(i.subjectPublicKey.data,"der"),{type:"dsa",data:i.algorithm.params};default:throw Error("unknown key id "+r)}throw Error("unknown key type "+s);case"ENCRYPTED PRIVATE KEY":c=l(c=n.EncryptedPrivateKey.decode(c,"der"),t);case"PRIVATE KEY":switch(r=(i=n.PrivateKey.decode(c,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(i.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:i.algorithm.curve,privateKey:n.ECPrivateKey.decode(i.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return i.algorithm.params.priv_key=n.DSAparam.decode(i.subjectPrivateKey,"der"),{type:"dsa",params:i.algorithm.params};default:throw Error("unknown key id "+r)}throw Error("unknown key type "+s);case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(c,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(c,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(c,"der")};case"EC PRIVATE KEY":return{curve:(c=n.ECPrivateKey.decode(c,"der")).parameters.value,privateKey:c.privateKey};default:throw Error("unknown key type "+s)}}function l(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=i[e.algorithm.decrypt.cipher.algo.join(".")],c=e.algorithm.decrypt.cipher.iv,l=e.subjectPrivateKey,f=parseInt(o.split("-")[1],10)/8,d=s.pbkdf2Sync(t,r,n,f,"sha1"),h=a.createDecipheriv(o,d,c),p=[];return p.push(h.update(l)),p.push(h.final()),u.concat(p)}e.exports=c,c.signature=n.signature},4978:function(e,t,r){var n=r(6113),i=r(5349),o=r(7007),a=r(5407);function s(e,t,r,s,u,c){if(i(r,s),e=a(e,o,"Password"),t=a(t,o,"Salt"),"function"==typeof u&&(c=u,u="sha1"),"function"!=typeof c)throw Error("No callback provided to pbkdf2");return n.pbkdf2(e,t,r,s,u,c)}function u(e,t,r,s,u){return i(r,s),e=a(e,o,"Password"),t=a(t,o,"Salt"),u=u||"sha1",n.pbkdf2Sync(e,t,r,s,u)}n.pbkdf2Sync&&-1!==n.pbkdf2Sync.toString().indexOf("keylen, digest")?(t.pbkdf2Sync=u,t.pbkdf2=s):(t.pbkdf2Sync=r(2127),t.pbkdf2=r(9601))},9601:function(e,t,n){var i,a=n(6911).Buffer,s=n(5349),u=n(7007),c=n(2127),l=n(5407),f=r.g.crypto&&r.g.crypto.subtle,d={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 p(e){if(r.g.process&&!r.g.process.browser||!f||!f.importKey||!f.deriveBits)return Promise.resolve(!1);if(void 0!==h[e])return h[e];var t=m(i=i||a.alloc(8),i,10,128,e).then(function(){return!0}).catch(function(){return!1});return h[e]=t,t}function m(e,t,r,n,i){return f.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return f.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:i}},e,n<<3)}).then(function(e){return a.from(e)})}function y(e,t){e.then(function(e){o.nextTick(function(){t(null,e)})},function(e){o.nextTick(function(){t(e)})})}
29e.exports=function(e,t,n,i,a,f){"function"==typeof a&&(f=a,a=void 0);var h=d[(a=a||"sha1").toLowerCase()];if(!h||"function"!=typeof r.g.Promise)return o.nextTick(function(){var r;try{r=c(e,t,n,i,a)}catch(e){return f(e)}f(null,r)});if(s(n,i),e=l(e,u,"Password"),t=l(t,u,"Salt"),"function"!=typeof f)throw Error("No callback provided to pbkdf2");y(p(h).then(function(r){return r?m(e,t,n,i,h):c(e,t,n,i,a)}),f)}},7007:function(e){var t;t="utf-8",e.exports=t},5349:function(e){var t=1073741823;e.exports=function(e,r){if("number"!=typeof e)throw TypeError("Iterations not a number");if(e<0)throw TypeError("Bad iterations");if("number"!=typeof r)throw TypeError("Key length not a number");if(r<0||r>t||r!=r)throw TypeError("Bad key length")}},2127:function(e,t,r){var n={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20},i=r(4873),o=r(6911).Buffer,a=r(5349),s=r(7007),u=r(5407);function c(e,t,r,c,l){a(r,c),e=u(e,s,"Password"),t=u(t,s,"Salt"),l=l||"sha1";var f=o.allocUnsafe(c),d=o.allocUnsafe(t.length+4);t.copy(d,0,0,t.length);for(var h=0,p=n[l],m=Math.ceil(c/p),y=1;y<=m;y++){d.writeUInt32BE(y,t.length);for(var b=i(l,e).update(d).digest(),g=b,v=1;v<r;v++){g=i(l,e).update(g).digest();for(var w=0;w<p;w++)b[w]^=g[w]}b.copy(f,h),h+=p}return f}e.exports=c},5407:function(e,t,r){var n=r(6911).Buffer;e.exports=function(e,t,r){if(n.isBuffer(e))return e;if("string"==typeof e)return n.from(e,t);if(ArrayBuffer.isView(e))return n.from(e.buffer);throw TypeError(r+" must be a string, a Buffer, a typed array or a DataView")}},9783:function(e,t,r){t.publicEncrypt=r(3995),t.privateDecrypt=r(4366),t.privateEncrypt=function(e,r){return t.publicEncrypt(e,r,!0)},t.publicDecrypt=function(e,r){return t.privateDecrypt(e,r,!0)}},5520:function(e,t,r){var n=r(9739),i=r(6911).Buffer;function o(e){var t=i.allocUnsafe(4);return t.writeUInt32BE(e,0),t}e.exports=function(e,t){for(var r,a=i.alloc(0),s=0;a.length<t;)r=o(s++),a=i.concat([a,n("sha1").update(e).update(r).digest()]);return a.slice(0,t)}},4366:function(e,t,r){var n=r(9902),i=r(5520),o=r(6386),a=r(711),s=r(7166),u=r(9739),c=r(1607),l=r(6911).Buffer;function f(e,t){var r=e.modulus.byteLength(),n=u("sha1").update(l.alloc(0)).digest(),a=n.length;if(0!==t[0])throw Error("decryption error");var s=t.slice(1,a+1),c=t.slice(a+1),f=o(s,i(c,a)),d=o(c,i(f,r-a-1));if(h(n,d.slice(0,a)))throw Error("decryption error");for(var p=a;0===d[p];)p++;if(1!==d[p++])throw Error("decryption error");return d.slice(p)}function d(e,t,r){for(var n=t.slice(0,2),i=2,o=0;0!==t[i++];)if(i>=t.length){o++;break}var a=t.slice(2,i-1);if(("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++,a.length<8&&o++,o)throw Error("decryption error");return t.slice(i)}function h(e,t){e=l.from(e),t=l.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));for(var i=-1;++i<n;)r+=e[i]^t[i];return r}e.exports=function(e,t,r){i=e.padding?e.padding:r?1:4;var i,o,u=n(e),h=u.modulus.byteLength();if(t.length>h||new a(t).cmp(u.modulus)>=0)throw Error("decryption error");o=r?c(new a(t),u):s(t,u);var p=l.alloc(h-o.length);if(o=l.concat([p,o],h),4===i)return f(u,o);if(1===i)return d(u,o,r);if(3===i)return o;throw Error("unknown padding")}},3995:function(e,t,r){var n=r(9902),i=r(7223),o=r(9739),a=r(5520),s=r(6386),u=r(711),c=r(1607),l=r(7166),f=r(6911).Buffer;function d(e,t){var r=e.modulus.byteLength(),n=t.length,c=o("sha1").update(f.alloc(0)).digest(),l=c.length,d=2*l;if(n>r-d-2)throw Error("message too long");var h=f.alloc(r-n-d-2),p=r-l-1,m=i(l),y=s(f.concat([c,h,f.alloc(1,1),t],p),a(m,p)),b=s(m,a(y,l));return new u(f.concat([f.alloc(1),b,y],r))}function h(e,t,r){var n,i=t.length,o=e.modulus.byteLength();if(i>o-11)throw Error("message too long");return n=r?f.alloc(o-i-3,255):p(o-i-3),new u(f.concat([f.from([0,r?1:2]),n,f.alloc(1),t],o))}function p(e){for(var t,r=f.allocUnsafe(e),n=0,o=i(2*e),a=0;n<e;)a===o.length&&(o=i(2*e),a=0),(t=o[a++])&&(r[n++]=t);return r}e.exports=function(e,t,r){i=e.padding?e.padding:r?1:4;var i,o,a=n(e);if(4===i)o=d(a,t);else if(1===i)o=h(a,t,r);else if(3===i){if((o=new u(t)).cmp(a.modulus)>=0)throw Error("data too long for modulus")}else throw Error("unknown padding");return r?l(o,a):c(o,a)}},1607:function(e,t,r){var n=r(711),i=r(6911).Buffer;function o(e,t){return i.from(e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed().toArray())}
29e.exports=o},6386:function(e){e.exports=function(e,t){for(var r=e.length,n=-1;++n<r;)e[n]^=t[n];return e}},7223:function(e,t,n){"use strict";var i=65536,a=4294967295;function s(){throw Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}var u=n(6911).Buffer,c=r.g.crypto||r.g.msCrypto;function l(e,t){if(e>a)throw RangeError("requested too many random bytes");var r=u.allocUnsafe(e);if(e>0){if(e>i)for(var n=0;n<e;n+=i)c.getRandomValues(r.slice(n,n+i));else c.getRandomValues(r)}return"function"==typeof t?o.nextTick(function(){t(null,r)}):r}c&&c.getRandomValues?e.exports=l:e.exports=s},6445:function(e,t,n){"use strict";function i(){throw Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var a=n(6911);n(7223);var s=a.Buffer,u=a.kMaxLength,c=r.g.crypto||r.g.msCrypto,l=4294967295;function f(e,t){if("number"!=typeof e||e!=e)throw TypeError("offset must be a number");if(e>l||e<0)throw TypeError("offset must be a uint32");if(e>u||e>t)throw RangeError("offset out of range")}function d(e,t,r){if("number"!=typeof e||e!=e)throw TypeError("size must be a number");if(e>l||e<0)throw TypeError("size must be a uint32");if(e+t>r||e>u)throw RangeError("buffer too small")}function h(e,t,n,i){if(!s.isBuffer(e)&&!(e instanceof r.g.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)i=t,t=0,n=e.length;else if("function"==typeof n)i=n,n=e.length-t;else if("function"!=typeof i)throw TypeError('"cb" argument must be a function');return f(t,e.length),d(n,t,e.length),p(e,t,n,i)}function p(e,t,r,n){var i=e.buffer,a=new Uint8Array(i,t,r);if(c.getRandomValues(a),n){o.nextTick(function(){n(null,e)});return}return e}function m(e,t,n){if(void 0===t&&(t=0),!s.isBuffer(e)&&!(e instanceof r.g.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');return f(t,e.length),void 0===n&&(n=e.length-t),d(n,t,e.length),p(e,t,n)}c&&c.getRandomValues?(t.randomFill=h,t.randomFillSync=m):(t.randomFill=i,t.randomFillSync=i)},4646:function(e){"use strict";let t={};function r(e,r,n){function i(e,t,n){return"string"==typeof r?r:r(e,t,n)}n||(n=Error);class o extends n{constructor(e,t,r){super(i(e,t,r))}}o.prototype.name=n.name,o.prototype.code=e,t[e]=o}function n(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}function i(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function o(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function a(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){let s,u;if("string"==typeof t&&i(t,"not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be",o(e," argument"))u=`The ${e} ${s} ${n(t,"type")}`;else{let r=a(e,".")?"property":"argument";u=`The "${e}" ${r} ${s} ${n(t,"type")}`}return u+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},2403:function(e,t,r){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var i=r(1709),a=r(7337);r(3782)(l,i);for(var s=n(a.prototype),u=0;u<s.length;u++){var c=s[u];l.prototype[c]||(l.prototype[c]=a.prototype[c])}function l(e){if(!(this instanceof l))return new l(e);i.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||o.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},7889:function(e,t,r){"use strict";e.exports=i;var n=r(1170);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(3782)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},1709:function(e,t,n){"use strict";e.exports=j,j.ReadableState=O,n(2361).EventEmitter;var i,a,s,u,c,l=function(e,t){return e.listeners(t).length},f=n(4678),d=n(4300).Buffer,h=r.g.Uint8Array||function(){};function p(e){return d.from(e)}function m(e){return d.isBuffer(e)||e instanceof h}var y=n(3837);a=y&&y.debuglog?y.debuglog("stream"):function(){};var b=n(4379),g=n(7025),v=n(6776).getHighWaterMark,w=n(4646).q,_=w.ERR_INVALID_ARG_TYPE,S=w.ERR_STREAM_PUSH_AFTER_EOF,E=w.ERR_METHOD_NOT_IMPLEMENT
vendor: 28,913 bytes, line 29
29ED,x=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(3782)(j,f);var k=g.errorOrDestroy,A=["error","close","destroy","pause","resume"];function M(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function O(e,t,r){i=i||n(2403),e=e||{},"boolean"!=typeof r&&(r=t instanceof i),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=v(this,e,"readableHighWaterMark",r),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=n(3704).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function j(e){if(i=i||n(2403),!(this instanceof j))return new j(e);var t=this instanceof i;this._readableState=new O(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),f.call(this)}function R(e,t,r,n,i){a("readableAddChunk",t);var o,s=e._readableState;if(null===t)s.reading=!1,D(e,s);else if(i||(o=P(s,t)),o)k(e,o);else if(s.objectMode||t&&t.length>0){if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===d.prototype||(t=p(t)),n)s.endEmitted?k(e,new x):C(e,s,t,!0);else if(s.ended)k(e,new S);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?C(e,s,t,!1):U(e,s)):C(e,s,t,!1)}}else n||(s.reading=!1,U(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function C(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&L(e)),U(e,t)}function P(e,t){var r;return m(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new _("chunk",["string","Buffer","Uint8Array"],t)),r}Object.defineProperty(j.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),j.prototype.destroy=g.destroy,j.prototype._undestroy=g.undestroy,j.prototype._destroy=function(e,t){t(e)},j.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=d.from(e,t),t=""),r=!0),R(this,e,t,!1,r)},j.prototype.unshift=function(e){return R(this,e,null,!0,!1)},j.prototype.isPaused=function(){return!1===this._readableState.flowing},j.prototype.setEncoding=function(e){s||(s=n(3704).s);var t=new s(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var T=1073741824;function I(e){return e>=T?e=T:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function N(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=I(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function D(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?L(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,B(e)))}}function L(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,o.nextTick(B,e))}function B(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,K(e)}function U(e,t){t.readingMore||(t.readingMore=!0,o.nextTick($,e,t))}function $(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(a("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function H(e){return function(){var t=e._readableState;a("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&l(e,"data")&&(t.flowing=!0,K(e))}}function F(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function q(e){a("readable nexttick read 0"),e.read(0)}function W(e,t){t.resumeScheduled||(t.resumeScheduled=!0,o.nextTick(z,e,t))}function z(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),K(e),t.flowing&&!t.reading&&e.read(0)}function K(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function Z(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function J(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,o.nextTick(G,t,e))}function G(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function V(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}j.prototype.read=function(e){a("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return a("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?J(this):L(this),null;if(0===(e=N(e,r))&&r.ended)return 0===r.length&&J(this),null;var i=r.needReadable;return a("need readable",i),(0===r.length||r.length-e<r.highWaterMark)&&a("length less than watermark",i=!0),r.ended||r.reading?a("reading or ended",i=!1):i&&(a("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=N(n,r))),null===(t=e>0?Z(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&J(this)),null!==t&&this.emit("data",t),t},j.prototype._read=function(e){k(this,new E("_read()"))},j.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,a("pipe count=%d opts=%j",n.pipesCount,t);var i=t&&!1===t.end||e===o.stdout||e===o.stderr?b:u;function s(e,t){a("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,d())}function u(){a("onend"),e.end()}n.endEmitted?o.nextTick(i):r.once("end",i),e.on("unpipe",s);var c=H(r);e.on("drain",c);var f=!1;function d(){a("cleanup"),e.removeListener("close",m),e.removeListener("finish",y),e.removeListener("drain",c),e.removeListener("error",p),e.removeListener("unpipe",s),r.removeListener("end",u),r.removeListener("end",b),r.removeListener("data",h),f=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&c()}function h(t){a("ondata");var i=e.write(t);a("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==V(n.pipes,e))&&!f&&(a("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function p(t){a("onerror",t),b(),e.removeListener("error",p),0===l(e,"error")&&k(e,t)}function m(){e.removeListener("finish",y),b()}function y(){a("onfinish"),e.removeListener("close",m),b()}function b(){a("unpipe"),r.unpipe(e)}return r.on("data",h),M(e,"error",p),e.once("close",m),e.once("finish",y),e.emit("pipe",r),n.flowing||(a("pipe resume"),r.resume()),e},j.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=V(t.pipes,e);return -1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},j.prototype.on=function(e,t){var r=f.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,a("on readable",n.length,n.reading),n.length?L(this):n.reading||o.nextTick(q,this)),r},j.prototype.addListener=j.prototype.on,j.prototype.removeListener=function(e,t){var r=f.prototype.removeListener.call(this,e,t);return"readable"===e&&o.nextTick(F,this),r},j.prototype.removeAllListeners=function(e){var t=f.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&o.nextTick(F,this),t},j.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,W(this,e)),e.paused=!1,this},j.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},j.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(a("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){a("wrapped data"),r.decoder&&(i=r.decoder.write(i)),(!r.objectMode||null!=i)&&(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<A.length;o++)e.on(A[o],this.emit.bind(this,A[o]));return this._read=function(t){a("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(j.prototype[Symbol.asyncIterator]=function(){return void 0===u&&(u=n(6871)),u(this)}),Object.defineProperty(j.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(j.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(j.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),j._fromList=Z,Object.defineProperty(j.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(j.from=function(e,t){return void 0===c&&(c=n(9727)),c(j,e,t)})},1170:function(e,t,r){"use strict";e.exports=l;var n=r(4646).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(2403);function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);u.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush(function(t,r){d(e,t,r)})}function d(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(3782)(l,u),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,r){r(new i("_transform()"))},l.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},l.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,function(e){t(e)})}},7337:function(e,t,n){"use strict";function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){z(t,e)}}e.exports=O,O.WritableState=M;var a,s,u={deprecate:n(6769)},c=n(4678),l=n(4300).Buffer,f=r.g.Uint8Array||function(){};function d(e){return l.from(e)}function h(e){return l.isBuffer(e)||e instanceof f}var p=n(7025),m=n(6776).getHighWaterMark,y=n(4646).q,b=y.ERR_INVALID_ARG_TYPE,g=y.ERR_METHOD_NOT_IMPLEMENTED,v=y.ERR_MULTIPLE_CALLBACK,w=y.ERR_STREAM_CANNOT_PIPE,_=y.ERR_STREAM_DESTROYED,S=y.ERR_STREAM_NULL_VALUES,E=y.ERR_STREAM_WRITE_AFTER_END,x=y.ERR_UNKNOWN_ENCODING,k=p.errorOrDestroy;function A(){}function M(e,t,r){a=a||n(2403),e=e||{},"boolean"!=typeof r&&(r=t instanceof a),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=m(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===e.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){D(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function O(e){var t=this instanceof(a=a||n(2403));if(!t&&!s.call(O,this))return new O(e);this._writableState=new M(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),c.call(this)}function j(e,t){var r=new E;k(e,r),o.nextTick(t,r)}function R(e,t,r,n){var i;return null===r?i=new S:"string"==typeof r||t.objectMode||(i=new b("chunk",["string","Buffer"],r)),!i||(k(e,i),o.nextTick(n,i),!1)}function C(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,r)),t}function P(e,t,r,n,i,o){if(!r){var a=C(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else T(e,t,!1,s,n,i,o);return u}function T(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new _("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function I(e,t,r,n,i){--t.pendingcb,r?(o.nextTick(i,n),o.nextTick(q,e,t),e._writableState.errorEmitted=!0,k(e,n)):(i(n),e._writableState.errorEmitted=!0,k(e,n),q(e,t))}function N(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function D(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if("function"!=typeof i)throw new v;if(N(r),t)I(e,r,n,t,i);else{var a=$(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||U(e,r),n?o.nextTick(L,e,r,a,i):L(e,r,a,i)}}function L(e,t,r,n){r||B(e,t),t.pendingcb--,n(),q(e,t)}function B(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function U(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=Array(t.bufferedRequestCount),o=t.corkedRequestsFree;o.entry=r;for(var a=0,s=!0;r;)n[a]=r,r.isBuf||(s=!1),r=r.next,a+=1;n.allBuffers=s,T(e,t,!0,t.length,n,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,c=r.encoding,l=r.callback,f=t.objectMode?1:u.length;if(T(e,t,!1,f,u,c,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function $(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function H(e,t){e._final(function(r){t.pendingcb--,r&&k(e,r),t.prefinished=!0,e.emit("prefinish"),q(e,t)})}function F(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,o.nextTick(H,e,t)))}function q(e,t){var r=$(t);if(r&&(F(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function W(e,t,r){t.ending=!0,q(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function z(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}n(3782)(O,c),M.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(M.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===O&&e&&e._writableState instanceof M}})):s=function(e){return e instanceof this},O.prototype.pipe=function(){k(this,new w)},O.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=!n.objectMode&&h(e);return o&&!l.isBuffer(e)&&(e=d(e)),"function"==typeof t&&(r=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=A),n.ending?j(this,r):(o||R(this,n,e,r))&&(n.pendingcb++,i=P(this,n,o,e,t,r)),i},O.prototype.cork=function(){this._writableState.corked++},O.prototype.uncork=function(){var e=this._writableState;!e.corked||(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||U(this,e))},O.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new x(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(e,t,r){r(new g("_write()"))},O.prototype._writev=null,O.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||W(this,n,r),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),O.prototype.destroy=p.destroy,O.prototype._undestroy=p.undestroy,O.prototype._destroy=function(e,t){t(e)}},6871:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i,a=r(9698),s=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),d=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var r=e[h].read();null!==r&&(e[f]=null,e[s]=null,e[u]=null,t(p(r,!1)))}}function y(e){o.nextTick(m,e)}function b(e,t){return function(r,n){e.then(function(){if(t[l]){r(p(void 0,!0));return}t[d](r,n)},n)}}var g=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((n(i={get stream(){return this[h]},next:function(){var e,t=this,r=this[c];if(null!==r)return Promise.reject(r);if(this[l])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise(function(e,r){o.nextTick(function(){t[c]?r(t[c]):e(p(void 0,!0))})});var n=this[f];if(n)e=new Promise(b(n,this));else{var i=this[h].read();if(null!==i)return Promise.resolve(p(i,!1));e=new Promise(this[d])}return this[f]=e,e}},Symbol.asyncIterator,function(){return this}),n(i,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){if(e){r(e);return}t(p(void 0,!0))})})}),i),g),w=function(e){var t,r=Object.create(v,(n(t={},h,{value:e,writable:!0}),n(t,s,{value:null,writable:!0}),n(t,u,{value:null,writable:!0}),n(t,c,{value:null,writable:!0}),n(t,l,{value:e._readableState.endEmitted,writable:!0}),n(t,d,{value:function(e,t){var n=r[h].read();n?(r[f]=null,r[s]=null,r[u]=null,e(p(n,!1))):(r[s]=e,r[u]=t)},writable:!0}),t));return r[f]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];null!==t&&(r[f]=null,r[s]=null,r[u]=null,t(e)),r[c]=e;return}var n=r[s];null!==n&&(r[f]=null,r[s]=null,r[u]=null,n(p(void 0,!0))),r[l]=!0}),e.on("readable",y.bind(null,r)),r};e.exports=w},4379:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}var c=r(4300).Buffer,l=r(3837).inspect,f=l&&l.custom||"inspect";function d(e,t,r){c.prototype.copy.call(e,t,r)}e.exports=function(){function e(){a(this,e),this.head=null,this.tail=null,this.length=0}return u(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return c.alloc(0);for(var t=c.allocUnsafe(e>>>0),r=this.head,n=0;r;)d(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=c.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:f,value:function(e,t){return l(this,i({},t,{depth:0,customInspect:!1}))}}]),e}()},7025:function(e){"use strict";function t(e,t){var i=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,o.nextTick(a,this,e)):o.nextTick(a,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?i._writableState?i._writableState.errorEmitted?o.nextTick(n,i):(i._writableState.errorEmitted=!0,o.nextTick(r,i,e)):o.nextTick(r,i,e):t?(o.nextTick(n,i),t(e)):o.nextTick(n,i)}),this)}function r(e,t){a(e,t),n(e)}function n(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function i(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(e,t){e.emit("error",t)}function s(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}e.exports={destroy:t,undestroy:i,errorOrDestroy:s}},9698:function(e,t,r){"use strict";var n=r(4646).q.ERR_STREAM_PREMATURE_CLOSE;function i(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function o(){}function a(e){return e.setHeader&&"function"==typeof e.abort}function s(e,t,r){if("function"==typeof t)return s(e,null,t);t||(t={}),r=i(r||o);var u=t.readable||!1!==t.readable&&e.readable,c=t.writable||!1!==t.writable&&e.writable,l=function(){e.writable||d()},f=e._writableState&&e._writableState.finished,d=function(){c=!1,f=!0,u||r.call(e)},h=e._readableState&&e._readableState.endEmitted,p=function(){u=!1,h=!0,c||r.call(e)},m=function(t){r.call(e,t)},y=function(){var t;return u&&!h?(e._readableState&&e._readableState.ended||(t=new n),r.call(e,t)):c&&!f?(e._writableState&&e._writableState.ended||(t=new n),r.call(e,t)):void 0},b=function(){e.req.on("finish",d)};return a(e)?(e.on("complete",d),e.on("abort",y),e.req?b():e.on("request",b)):c&&!e._writableState&&(e.on("end",l),e.on("close",l)),e.on("end",p),e.on("finish",d),!1!==t.error&&e.on("error",m),e.on("close",y),function(){e.removeListener("complete",d),e.removeListener("abort",y),e.removeListener("request",b),e.req&&e.req.removeListener("finish",d),e.removeListener("end",l),e.removeListener("close",l),e.removeListener("finish",d),e.removeListener("end",p),e.removeListener("error",m),e.removeListener("close",y)}}e.exports=s},9727:function(e,t,r){"use strict";function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){r(e);return}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)})}}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
vendor: 15,570 bytes, line 29
29t%2?o(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=r(4646).q.ERR_INVALID_ARG_TYPE;function c(e,t,r){if(t&&"function"==typeof t.next)n=t;else if(t&&t[Symbol.asyncIterator])n=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])n=t[Symbol.iterator]();else throw new u("iterable",["Iterable"],t);var n,o=new e(a({objectMode:!0},r)),s=!1;function c(){return l.apply(this,arguments)}function l(){return(l=i(function*(){try{var e=yield n.next(),t=e.value;e.done?o.push(null):o.push((yield t))?c():s=!1}catch(e){o.destroy(e)}})).apply(this,arguments)}return o._read=function(){s||(s=!0,c())},o}e.exports=c},8442:function(e,t,r){"use strict";function n(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i,o=r(4646).q,a=o.ERR_MISSING_ARGS,s=o.ERR_STREAM_DESTROYED;function u(e){if(e)throw e}function c(e){return e.setHeader&&"function"==typeof e.abort}function l(e,t,o,a){a=n(a);var u=!1;e.on("close",function(){u=!0}),void 0===i&&(i=r(9698)),i(e,{readable:t,writable:o},function(e){if(e)return a(e);u=!0,a()});var l=!1;return function(t){if(!u&&!l){if(l=!0,c(e))return e.abort();if("function"==typeof e.destroy)return e.destroy();a(t||new s("pipe"))}}}function f(e){e()}function d(e,t){return e.pipe(t)}function h(e){return e.length&&"function"==typeof e[e.length-1]?e.pop():u}function p(){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=h(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new a("streams");var o=r.map(function(t,n){var a=n<r.length-1;return l(t,a,n>0,function(t){e||(e=t),t&&o.forEach(f),a||(o.forEach(f),i(e))})});return r.reduce(d)}e.exports=p},6776:function(e,t,r){"use strict";var n=r(4646).q.ERR_INVALID_OPT_VALUE;function i(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}function o(e,t,r,o){var a=i(t,o,r);if(null!=a){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var s=o?r:"highWaterMark";throw new n(s,a)}return Math.floor(a)}return e.objectMode?16:16384}e.exports={getHighWaterMark:o}},4678:function(e,t,r){e.exports=r(2781)},3726:function(e,t,r){var n=r(2781);"disable"===o.env.READABLE_STREAM&&n?(e.exports=n.Readable,Object.assign(e.exports,n),e.exports.Stream=n):((t=e.exports=r(1709)).Stream=n||t,t.Readable=t,t.Writable=r(7337),t.Duplex=r(2403),t.Transform=r(1170),t.PassThrough=r(7889),t.finished=r(9698),t.pipeline=r(8442))},3225:function(e,t,r){"use strict";var n=r(4300).Buffer,i=r(3782),o=r(9029),a=Array(16),s=[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],u=[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],l=[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],d=[1352829926,1548603684,1836072691,2053994217,0];function h(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<<t|e>>>32-t}function m(e,t,r,n,i,o,a,s){return p(e+(t^r^n)+o+a|0,s)+i|0}function y(e,t,r,n,i,o,a,s){return p(e+(t&r|~t&n)+o+a|0,s)+i|0}function b(e,t,r,n,i,o,a,s){return p(e+((t|~r)^n)+o+a|0,s)+i|0}function g(e,t,r,n,i,o,a,s){return p(e+(t&n|r&~n)+o+a|0,s)+i|0}function v(e,t,r,n,i,o,a,s){return p(e+(t^(r|~n))+o+a|0,s)+i|0}i(h,o),h.prototype._update=function(){for(var e,t,r=a,n=0;n<16;++n)r[n]=this._block.readInt32LE(4*n);for(var i=0|this._a,o=0|this._b,h=0|this._c,w=0|this._d,_=0|this._e,S=0|this._a,E=0|this._b,x=0|this._c,k=0|this._d,A=0|this._e,M=0;M<80;M+=1)M<16?(e=m(i,o,h,w,_,r[s[M]],f[0],c[M]),t=v(S,E,x,k,A,r[u[M]],d[0],l[M])):M<32?(e=y(i,o,h,w,_,r[s[M]],f[1],c[M]),t=g(S,E,x,k,A,r[u[M]],d[1],l[M])):M<48?(e=b(i,o,h,w,_,r[s[M]],f[2],c[M]),t=b(S,E,x,k,A,r[u[M]],d[2],l[M])):M<64?(e=g(i,o,h,w,_,r[s[M]],f[3],c[M]),t=y(S,E,x,k,A,r[u[M]],d[3],l[M])):(e=v(i,o,h,w,_,r[s[M]],f[4],c[M]),t=m(S,E,x,k,A,r[u[M]],d[4],l[M])),i=_,_=w,w=p(h,10),h=o,o=e,S=A,A=k,k=p(x,10),x=E,E=t;var O=this._b+h+k|0;this._b=this._c+w+A|0,this._c=this._d+_+S|0,this._d=this._e+i+E|0,this._e=this._a+o+x|0,this._a=O},h.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.alloc?n.alloc(20):new n(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},e.exports=h},5055:function(e,t,r){var n=r(4300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},6911:function(e,t,r){/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var n=r(4300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},2858:function(e,t,r){var n=r(6911).Buffer;function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,i=this._blockSize,o=e.length,a=this._len,s=0;s<o;){for(var u=a%i,c=Math.min(o-s,i-u),l=0;l<c;l++)r[u+l]=e[s+l];a+=c,s+=c,a%i==0&&this._update(r)}return this._len+=o,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw Error("_update must be implemented by subclass")},e.exports=i},4371:function(e,t,r){var n=e.exports=function(e){var t=n[e=e.toLowerCase()];if(!t)throw Error(e+" is not supported (we accept pull requests)");return new t};n.sha=r(4018),n.sha1=r(4179),n.sha224=r(532),n.sha256=r(1843),n.sha384=r(7455),n.sha512=r(9934)},4018:function(e,t,r){var n=r(3782),i=r(2858),o=r(6911).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(e){return e<<5|e>>>27}function l(e){return e<<30|e>>>2}function f(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,u=0;u<16;++u)t[u]=e.readInt32BE(4*u);for(;u<80;++u)t[u]=t[u-3]^t[u-8]^t[u-14]^t[u-16];for(var d=0;d<80;++d){var h=~~(d/20),p=c(r)+f(h,n,i,o)+s+t[d]+a[h]|0;s=o,o=i,i=l(n),n=r,r=p}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},u.prototype._hash=function(){var e=o.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},e.exports=u},4179:function(e,t,r){var n=r(3782),i=r(2858),o=r(6911).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(e){return e<<1|e>>>31}function l(e){return e<<5|e>>>27}function f(e){return e<<30|e>>>2}function d(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,u=0;u<16;++u)t[u]=e.readInt32BE(4*u);for(;u<80;++u)t[u]=c(t[u-3]^t[u-8]^t[u-14]^t[u-16]);for(var h=0;h<80;++h){var p=~~(h/20),m=l(r)+d(p,n,i,o)+s+t[h]+a[p]|0;s=o,o=i,i=f(n),n=r,r=m}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},u.prototype._hash=function(){var e=o.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},e.exports=u},532:function(e,t,r){var n=r(3782),i=r(1843),o=r(2858),a=r(6911).Buffer,s=Array(64);function u(){this.init(),this._w=s,o.call(this,64,56)}n(u,i),u.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},u.prototype._hash=function(){var e=a.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},e.exports=u},1843:function(e,t,r){var n=r(3782),i=r(2858),o=r(6911).Buffer,a=[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],s=Array(64);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(e,t,r){return r^e&(t^r)}function l(e,t,r){return e&t|r&(e|t)}function f(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function p(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}n(u,i),u.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},u.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,u=0|this._f,m=0|this._g,y=0|this._h,b=0;b<16;++b)t[b]=e.readInt32BE(4*b);for(;b<64;++b)t[b]=p(t[b-2])+t[b-7]+h(t[b-15])+t[b-16]|0;for(var g=0;g<64;++g){var v=y+d(s)+c(s,u,m)+a[g]+t[g]|0,w=f(r)+l(r,n,i)|0;y=m,m=u,u=s,s=o+v|0,o=i,i=n,n=r,r=v+w|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0,this._f=u+this._f|0,this._g=m+this._g|0,this._h=y+this._h|0},u.prototype._hash=function(){var e=o.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},e.exports=u},7455:function(e,t,r){var n=r(3782),i=r(9934),o=r(2858),a=r(6911).Buffer,s=Array(160);function u(){this.init(),this._w=s,o.call(this,128,112)}n(u,i),u.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},u.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+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},e.exports=u},9934:function(e,t,r){var n=r(3782),i=r(2858),o=r(6911).Buffer,a=[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,
vendor: 6,652 bytes, line 29
291126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=Array(160);function u(){this.init(),this._w=s,i.call(this,128,112)}function c(e,t,r){return r^e&(t^r)}function l(e,t,r){return e&t|r&(e|t)}function f(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function y(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function b(e,t){return e>>>0<t>>>0?1:0}n(u,i),u.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},u.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,u=0|this._fh,g=0|this._gh,v=0|this._hh,w=0|this._al,_=0|this._bl,S=0|this._cl,E=0|this._dl,x=0|this._el,k=0|this._fl,A=0|this._gl,M=0|this._hl,O=0;O<32;O+=2)t[O]=e.readInt32BE(4*O),t[O+1]=e.readInt32BE(4*O+4);for(;O<160;O+=2){var j=t[O-30],R=t[O-30+1],C=h(j,R),P=p(R,j);j=t[O-4],R=t[O-4+1];var T=m(j,R),I=y(R,j),N=t[O-14],D=t[O-14+1],L=t[O-32],B=t[O-32+1],U=P+D|0,$=C+N+b(U,P)|0;$=($=$+T+b(U=U+I|0,I)|0)+L+b(U=U+B|0,B)|0,t[O]=$,t[O+1]=U}for(var H=0;H<160;H+=2){$=t[H],U=t[H+1];var F=l(r,n,i),q=l(w,_,S),W=f(r,w),z=f(w,r),K=d(s,x),Z=d(x,s),J=a[H],G=a[H+1],V=c(s,u,g),Y=c(x,k,A),X=M+Z|0,Q=v+K+b(X,M)|0;Q=(Q=(Q=Q+V+b(X=X+Y|0,Y)|0)+J+b(X=X+G|0,G)|0)+$+b(X=X+U|0,U)|0;var ee=z+q|0,et=W+F+b(ee,z)|0;v=g,M=A,g=u,A=k,u=s,k=x,s=o+Q+b(x=E+X|0,E)|0,o=i,E=S,i=n,S=_,n=r,_=w,r=Q+et+b(w=X+ee|0,X)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+S|0,this._dl=this._dl+E|0,this._el=this._el+x|0,this._fl=this._fl+k|0,this._gl=this._gl+A|0,this._hl=this._hl+M|0,this._ah=this._ah+r+b(this._al,w)|0,this._bh=this._bh+n+b(this._bl,_)|0,this._ch=this._ch+i+b(this._cl,S)|0,this._dh=this._dh+o+b(this._dl,E)|0,this._eh=this._eh+s+b(this._el,x)|0,this._fh=this._fh+u+b(this._fl,k)|0,this._gh=this._gh+g+b(this._gl,A)|0,this._hh=this._hh+v+b(this._hl,M)|0},u.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+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},e.exports=u},3704:function(e,t,r){"use strict";var n=r(5055).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=p,this.end=m,t=4;break;case"utf8":this.fillLast=f,t=4;break;case"base64":this.text=y,this.end=b,t=3;break;default:this.write=g,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function u(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e,t,r){var n=t.length-1;if(n<r)return 0;var i=u(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=u(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=u(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function l(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function f(e){var t=this.lastTotal-this.lastNeed,r=l(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function d(e,t){var r=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function y(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function b(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):""}t.s=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=h,s.prototype.text=d,s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},6769:function(e){function t(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}function n(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}
29e.exports=t},4300:function(e){"use strict";e.exports=r(1876)},6113:function(e){"use strict";e.exports=r(2474)},2361:function(e){"use strict";e.exports=r(5293)},2781:function(e){"use strict";e.exports=r(9681)},1576:function(e){"use strict";e.exports=r(2553)},3837:function(e){"use strict";e.exports=r(9720)},6144:function(e){"use strict";e.exports=r(1951)},5866:function(e){"use strict";e.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},2908:function(e){"use strict";e.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},9267:function(e){"use strict";e.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},7992:function(e){"use strict";e.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd4
2907b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},2531:function(e){"use strict";e.exports={i8:"6.5.3"}},2510:function(e){"use strict";e.exports=JSON.parse('{"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"}')}},a={};function s(e){var r=a[e];if(void 0!==r)return r.exports;var n=a[e]={id:e,loaded:!1,exports:{}},i=!0;try{t[e].call(n.exports,n,n.exports,s),i=!1}finally{i&&delete a[e]}return n.loaded=!0,n.exports}!function(){s.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),s.ab=n+"/";var u={};!function(){"use strict";var e=u;e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=s(7223),e.createHash=e.Hash=s(9739),e.createHmac=e.Hmac=s(4873);var t=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(Object.keys(s(9276)));e.getHashes=function(){return t};var r=s(4978);e.pbkdf2=r.pbkdf2,e.pbkdf2Sync=r.pbkdf2Sync;var n=s(8996);e.Cipher=n.Cipher,e.createCipher=n.createCipher,e.Cipheriv=n.Cipheriv,e.createCipheriv=n.createCipheriv,e.Decipher=n.Decipher,e.createDecipher=n.createDecipher,e.Decipheriv=n.Decipheriv,e.createDecipheriv=n.createDecipheriv,e.getCiphers=n.getCiphers,e.listCiphers=n.listCiphers;var i=s(6587);e.DiffieHellmanGroup=i.DiffieHellmanGroup,e.createDiffieHellmanGroup=i.createDiffieHellmanGroup,e.getDiffieHellman=i.getDiffieHellman,e.createDiffieHellman=i.createDiffieHellman,e.DiffieHellman=i.DiffieHellman;var o=s(4078);e.createSign=o.createSign,e.Sign=o.Sign,e.createVerify=o.createVerify,e.Verify=o.Verify,e.createECDH=s(9942);var a=s(9783);e.publicEncrypt=a.publicEncrypt,e.privateEncrypt=a.privateEncrypt,e.publicDecrypt=a.publicDecrypt,e.privateDecrypt=a.privateDecrypt;var c=s(6445);e.randomFill=c.randomFill,e.randomFillSync=c.randomFillSync,e.createCredentials=function(){throw Error("sorry, createCredentials is not implemented yet\nwe accept pull requests\nhttps://github.com/crypto-browserify/crypto-browserify")},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}}(),e.exports=u}()},5293:function(e){var t="/";!function(){"use strict";var r={864:function(e){var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};function i(e){console&&console.warn&&console.warn(e)}t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,e.exports.once=g,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var s=10;function u(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function l(e,t,r,n){if(u(r),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),s=a[t]),void 0===s)s=a[t]=r,++e._eventsCount;else if("function"==typeof s?s=a[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(o=c(e))>0&&s.length>o&&!s.warned){s.warned=!0;var o,a,s,l=Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,i(l)}return e}function f(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=f.bind(n);return i.listener=r,n.wrapFn=i,i}function h(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?b(i):m(i,i.length)}function p(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function m(e,t){for(var r=Array(t),n=0;n<t;++n)r[n]=e[n];return r}function y(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function b(e){for(var t=Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function g(e,t){return new Promise(function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}w(e,t,o,{once:!0}),"error"!==t&&v(e,i,{once:!0})})}function v(e,t,r){"function"==typeof e.on&&w(e,"error",t,r)}function w(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else if("function"==typeof e.addEventListener)e.addEventListener(t,function i(o){n.once&&e.removeEventListener(t,i),r(o)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||o(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),a.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return c(this)},a.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)n(u,this,t);else for(var c=u.length,l=m(u,c),r=0;r<c;++r)n(l[r],this,t);return!0},a.prototype.addListener=function(e,t){return l(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return l(this,e,t,!0)},a.prototype.once=function(e,t){return u(t),this.on(e,d(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,d(this,e,t)),this},a.prototype.removeListener=function(e,t){var r,n,i,o,a;if(u(t),void 0===(n=this._events)||void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit
29("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():y(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},a.prototype.listeners=function(e){return h(this,e,!0)},a.prototype.rawListeners=function(e){return h(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},a.prototype.listenerCount=p,a.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}},a=!0;try{r[e](o,o.exports,i),a=!1}finally{a&&delete n[e]}return o.exports}i.ab=t+"/";var o=i(864);e.exports=o}()},8428:function(e,t,r){var n="/";!function(){var t={528:function(e,t,r){var n=r(685),i=r(310),o=e.exports;for(var a in n)n.hasOwnProperty(a)&&(o[a]=n[a]);function s(e){if("string"==typeof e&&(e=i.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}o.request=function(e,t){return e=s(e),n.request.call(this,e,t)},o.get=function(e,t){return e=s(e),n.get.call(this,e,t)}},685:function(e){"use strict";e.exports=r(2321)},310:function(e){"use strict";e.exports=r(1987)}},i={};function o(e){var r=i[e];if(void 0!==r)return r.exports;var n=i[e]={exports:{}},a=!0;try{t[e](n,n.exports,o),a=!1}finally{a&&delete i[e]}return n.exports}o.ab=n+"/";var a=o(528);e.exports=a}()},6656:function(){},5759:function(){},1987:function(e,t,r){var n="/";!function(){var t={452:function(e){"use strict";e.exports=r(7334)}},i={};function o(e){var r=i[e];if(void 0!==r)return r.exports;var n=i[e]={exports:{}},a=!0;try{t[e](n,n.exports,o),a=!1}finally{a&&delete i[e]}return n.exports}o.ab=n+"/";var a={};!function(){var e,t=a,r=(e=o(452))&&"object"==typeof e&&"default"in e?e.default:e,n=/https?|ftp|gopher|file/;function i(e){"string"==typeof e&&(e=v(e));var t=function(e,t,r){var n=e.auth,i=e.hostname,o=e.protocol||"",a=e.pathname||"",s=e.hash||"",u=e.query||"",c=!1;n=n?encodeURIComponent(n).replace(/%3A/i,":")+"@":"",e.host?c=n+e.host:i&&(c=n+(~i.indexOf(":")?"["+i+"]":i),e.port&&(c+=":"+e.port)),u&&"object"==typeof u&&(u=t.encode(u));var l=e.search||u&&"?"+u||"";return o&&":"!==o.substr(-1)&&(o+=":"),e.slashes||(!o||r.test(o))&&!1!==c?(c="//"+(c||""),a&&"/"!==a[0]&&(a="/"+a)):c||(c=""),s&&"#"!==s[0]&&(s="#"+s),l&&"?"!==l[0]&&(l="?"+l),{protocol:o,host:c,pathname:a=a.replace(/[?#]/g,encodeURIComponent),search:l=l.replace("#","%23"),hash:s}}(e,r,n);return""+t.protocol+t.host+t.pathname+t.search+t.hash}var s="http://",u="w.w",c=s+u,l=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,f=/https?|ftp|gopher|file/;function d(e,t){var r="string"==typeof e?v(e):e;e="object"==typeof e?i(e):e;var n=v(t),o="";r.protocol&&!r.slashes&&(o=r.protocol,e=e.replace(r.protocol,""),o+="/"===t[0]||"/"===e[0]?"/":""),o&&n.protocol&&(o="",n.slashes||(o=n.protocol,t=t.replace(n.protocol,"")));var a=e.match(l);a&&!n.protocol&&(e=e.substr((o=a[1]+(a[2]||"")).length),/^\/\/[^/]/.test(t)&&(o=o.slice(0,-1)));var u=new URL(e,c+"/"),d=new URL(t,u).toString().replace(c,""),h=n.protocol||r.protocol;return h+=r.slashes||n.slashes?"//":"",!o&&h?d=d.replace(s,h):o&&(d=d.replace(s,"")),f.test(d)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==d.slice(-1)||(d=d.slice(0,-1)),o&&(d=o+("/"===d[0]?d.substr(1):d)),d}function h(){}h.prototype.parse=v,h.prototype.format=i,h.prototype.resolve=d,h.prototype.resolveObject=d;var p=/^https?|ftp|gopher|file/,m=/^(.*?)([#?].*)/,y=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,b=/^([a-z0-9.+-]*:)?\/\/\/*/i,g=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function v(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),e&&"object"==typeof e&&e instanceof h)return e;var o=(e=e.trim()).match(m);e=o?o[1].replace(/\\/g,"/")+o[2]:e.replace(/\\/g,"/"),g.test(e)&&"/"!==e.slice(-1)&&(e+="/");var a=!/(^javascript)/.test(e)&&e.match(y),s=b.test(e),l="";a&&(p.test(a[1])||(l=a[1].toLowerCase(),e=""+a[2]+a[3]),a[2]||(s=!1,p.test(a[1])?(l=a[1],e=""+a[3]):e="//"+a[3]),3!==a[2].length&&1!==a[2].length||(l=a[1],e="/"+a[3]));var f,d=(o?o[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),v=d&&d[1],w=new h,_="",
vendor: 1,370 bytes, line 29
29S="";try{f=new URL(e)}catch(t){_=t,l||n||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(S="/",e=e.substr(1));try{f=new URL(e,c)}catch(e){return w.protocol=l,w.href=l,w}}w.slashes=s&&!S,w.host=f.host===u?"":f.host,w.hostname=f.hostname===u?"":f.hostname.replace(/(\[|\])/g,""),w.protocol=_?l||null:f.protocol,w.search=f.search.replace(/\\/g,"%5C"),w.hash=f.hash.replace(/\\/g,"%5C");var E=e.split("#");!w.search&&~E[0].indexOf("?")&&(w.search="?"),w.hash||""!==E[1]||(w.hash="#"),w.query=t?r.decode(f.search.substr(1)):w.search.substr(1),w.pathname=S+(a?function(e){return e.replace(/['^|`]/g,function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(e,t){try{return decodeURIComponent(t).split("").map(function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}})}(f.pathname):f.pathname),"about:"===w.protocol&&"blank"===w.pathname&&(w.protocol="",w.pathname=""),_&&"/"!==e[0]&&(w.pathname=w.pathname.substr(1)),l&&!p.test(l)&&"/"!==e.slice(-1)&&"/"===w.pathname&&(w.pathname=""),w.path=w.pathname+w.search,w.auth=[f.username,f.password].map(decodeURIComponent).filter(Boolean).join(":"),w.port=f.port,v&&!w.host.endsWith(v)&&(w.host+=v,w.port=v.slice(1)),w.href=S?""+w.pathname+w.search+w.hash:i(w);var x=/^(file)/.test(w.href)?["host","hostname"]:[];
29return Object.keys(w).forEach(function(e){~x.indexOf(e)||(w[e]=w[e]||null)}),w}t.parse=v,t.format=i,t.resolve=d,t.resolveObject=function(e,t){return v(d(e,t))},t.Url=h}(),e.exports=a}()},7663:function(e){var t="/";!function(){var r={229:function(e){var t,r,n,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}function u(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c=[],l=!1,f=-1;function d(){l&&n&&(l=!1,n.length?c=n.concat(c):f=-1,c.length&&h())}function h(){if(!l){var e=s(d);l=!0;for(var t=c.length;t;){for(n=c,c=[];++f<t;)n&&n[f].run();f=-1,t=c.length}n=null,l=!1,u(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new p(e,t)),1!==c.length||l||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}},a=!0;try{r[e](o,o.exports,i),a=!1}finally{a&&delete n[e]}return o.exports}i.ab=t+"/";var o=i(229);e.exports=o}()},7334:function(e){var t="/";!function(){"use strict";var r={815:function(e){function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,n,i,o){n=n||"&",i=i||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(n);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var c=e.length;u>0&&c>u&&(c=u);for(var l=0;l<c;++l){var f,d,h,p,m=e[l].replace(s,"%20"),y=m.indexOf(i);y>=0?(f=m.substr(0,y),d=m.substr(y+1)):(f=m,d=""),h=decodeURIComponent(f),p=decodeURIComponent(d),t(a,h)?r(a[h])?a[h].push(p):a[h]=[a[h],p]:a[h]=p}return a};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,o,a,s){return(o=o||"&",a=a||"=",null===e&&(e=void 0),"object"==typeof e)?n(i(e),function(i){var s=encodeURIComponent(t(i))+a;return r(e[i])?n(e[i],function(e){return s+encodeURIComponent(t(e))}).join(o):s+encodeURIComponent(t(e[i]))}).join(o):s?encodeURIComponent(t(s))+a+encodeURIComponent(t(e)):""};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var i=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}},a=!0;try{r[e](o,o.exports,i),a=!1}finally{a&&delete n[e]}return o.exports}i.ab=t+"/";var o={};!function(){var e=o;e.decode=e.parse=i(815),e.encode=e.stringify=i(577)}(),e.exports=o}()},9681:function(e,t,r){var n="/",i=r(3454);!function(){var t={782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},646:function(e){"use strict";let t={};function r(e,r,n){function i(e,t,n){return"string"==typeof r?r:r(e,t,n)}n||(n=Error);class o extends n{constructor(e,t,r){super(i(e,t,r))}}o.prototype.name=n.name,o.prototype.code=e,t[e]=o}function n(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}function i(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function o(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function a(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invali
29d for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){let s,u;if("string"==typeof t&&i(t,"not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be",o(e," argument"))u=`The ${e} ${s} ${n(t,"type")}`;else{let r=a(e,".")?"property":"argument";u=`The "${e}" ${r} ${s} ${n(t,"type")}`}return u+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},403:function(e,t,r){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var o=r(709),a=r(337);r(782)(l,o);for(var s=n(a.prototype),u=0;u<s.length;u++){var c=s[u];l.prototype[c]||(l.prototype[c]=a.prototype[c])}function l(e){if(!(this instanceof l))return new l(e);o.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||i.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},889:function(e,t,r){"use strict";e.exports=i;var n=r(170);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(782)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},709:function(e,t,n){"use strict";e.exports=j,j.ReadableState=O,n(361).EventEmitter;var o,a,s,u,c,l=function(e,t){return e.listeners(t).length},f=n(678),d=n(300).Buffer,h=r.g.Uint8Array||function(){};function p(e){return d.from(e)}function m(e){return d.isBuffer(e)||e instanceof h}var y=n(837);a=y&&y.debuglog?y.debuglog("stream"):function(){};var b=n(379),g=n(25),v=n(776).getHighWaterMark,w=n(646).q,_=w.ERR_INVALID_ARG_TYPE,S=w.ERR_STREAM_PUSH_AFTER_EOF,E=w.ERR_METHOD_NOT_IMPLEMENTED,x=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(782)(j,f);var k=g.errorOrDestroy,A=["error","close","destroy","pause","resume"];function M(e,t,r){if("function"==typeof e.prependListener)return e.prepe
vendor: 29,063 bytes, line 29
29ndListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function O(e,t,r){o=o||n(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof o),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=v(this,e,"readableHighWaterMark",r),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=n(704).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function j(e){if(o=o||n(403),!(this instanceof j))return new j(e);var t=this instanceof o;this._readableState=new O(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),f.call(this)}function R(e,t,r,n,i){a("readableAddChunk",t);var o,s=e._readableState;if(null===t)s.reading=!1,D(e,s);else if(i||(o=P(s,t)),o)k(e,o);else if(s.objectMode||t&&t.length>0){if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===d.prototype||(t=p(t)),n)s.endEmitted?k(e,new x):C(e,s,t,!0);else if(s.ended)k(e,new S);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?C(e,s,t,!1):U(e,s)):C(e,s,t,!1)}}else n||(s.reading=!1,U(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function C(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&L(e)),U(e,t)}function P(e,t){var r;return m(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new _("chunk",["string","Buffer","Uint8Array"],t)),r}Object.defineProperty(j.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),j.prototype.destroy=g.destroy,j.prototype._undestroy=g.undestroy,j.prototype._destroy=function(e,t){t(e)},j.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=d.from(e,t),t=""),r=!0),R(this,e,t,!1,r)},j.prototype.unshift=function(e){return R(this,e,null,!0,!1)},j.prototype.isPaused=function(){return!1===this._readableState.flowing},j.prototype.setEncoding=function(e){s||(s=n(704).s);var t=new s(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var T=1073741824;function I(e){return e>=T?e=T:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function N(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=I(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function D(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?L(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,B(e)))}}function L(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(B,e))}function B(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,K(e)}function U(e,t){t.readingMore||(t.readingMore=!0,i.nextTick($,e,t))}function $(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(a("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function H(e){return function(){var t=e._readableState;a("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&l(e,"data")&&(t.flowing=!0,K(e))}}function F(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function q(e){a("readable nexttick read 0"),e.read(0)}function W(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(z,e,t))}function z(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),K(e),t.flowing&&!t.reading&&e.read(0)}function K(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function Z(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function J(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(G,t,e))}function G(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function V(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}j.prototype.read=function(e){a("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return a("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?J(this):L(this),null;if(0===(e=N(e,r))&&r.ended)return 0===r.length&&J(this),null;var i=r.needReadable;return a("need readable",i),(0===r.length||r.length-e<r.highWaterMark)&&a("length less than watermark",i=!0),r.ended||r.reading?a("reading or ended",i=!1):i&&(a("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=N(n,r))),null===(t=e>0?Z(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&J(this)),null!==t&&this.emit("data",t),t},j.prototype._read=function(e){k(this,new E("_read()"))},j.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,a("pipe count=%d opts=%j",n.pipesCount,t);var o=t&&!1===t.end||e===i.stdout||e===i.stderr?b:u;function s(e,t){a("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,d())}function u(){a("onend"),e.end()}n.endEmitted?i.nextTick(o):r.once("end",o),e.on("unpipe",s);var c=H(r);e.on("drain",c);var f=!1;function d(){a("cleanup"),e.removeListener("close",m),e.removeListener("finish",y),e.removeListener("drain",c),e.removeListener("error",p),e.removeListener("unpipe",s),r.removeListener("end",u),r.removeListener("end",b),r.removeListener("data",h),f=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&c()}function h(t){a("ondata");var i=e.write(t);a("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==V(n.pipes,e))&&!f&&(a("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function p(t){a("onerror",t),b(),e.removeListener("error",p),0===l(e,"error")&&k(e,t)}function m(){e.removeListener("finish",y),b()}function y(){a("onfinish"),e.removeListener("close",m),b()}function b(){a("unpipe"),r.unpipe(e)}return r.on("data",h),M(e,"error",p),e.once("close",m),e.once("finish",y),e.emit("pipe",r),n.flowing||(a("pipe resume"),r.resume()),e},j.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=V(t.pipes,e);return -1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},j.prototype.on=function(e,t){var r=f.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,a("on readable",n.length,n.reading),n.length?L(this):n.reading||i.nextTick(q,this)),r},j.prototype.addListener=j.prototype.on,j.prototype.removeListener=function(e,t){var r=f.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(F,this),r},j.prototype.removeAllListeners=function(e){var t=f.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&i.nextTick(F,this),t},j.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,W(this,e)),e.paused=!1,this},j.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},j.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(a("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){a("wrapped data"),r.decoder&&(i=r.decoder.write(i)),(!r.objectMode||null!=i)&&(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<A.length;o++)e.on(A[o],this.emit.bind(this,A[o]));return this._read=function(t){a("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(j.prototype[Symbol.asyncIterator]=function(){return void 0===u&&(u=n(871)),u(this)}),Object.defineProperty(j.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(j.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(j.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),j._fromList=Z,Object.defineProperty(j.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(j.from=function(e,t){return void 0===c&&(c=n(727)),c(j,e,t)})},170:function(e,t,r){"use strict";e.exports=l;var n=r(646).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(403);function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);u.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush(function(t,r){d(e,t,r)})}function d(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(782)(l,u),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,r){r(new i("_transform()"))},l.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},l.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,function(e){t(e)})}},337:function(e,t,n){"use strict";function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){z(t,e)}}e.exports=O,O.WritableState=M;var a,s,u={deprecate:n(769)},c=n(678),l=n(300).Buffer,f=r.g.Uint8Array||function(){};function d(e){return l.from(e)}function h(e){return l.isBuffer(e)||e instanceof f}var p=n(25),m=n(776).getHighWaterMark,y=n(646).q,b=y.ERR_INVALID_ARG_TYPE,g=y.ERR_METHOD_NOT_IMPLEMENTED,v=y.ERR_MULTIPLE_CALLBACK,w=y.ERR_STREAM_CANNOT_PIPE,_=y.ERR_STREAM_DESTROYED,S=y.ERR_STREAM_NULL_VALUES,E=y.ERR_STREAM_WRITE_AFTER_END,x=y.ERR_UNKNOWN_ENCODING,k=p.errorOrDestroy;function A(){}function M(e,t,r){a=a||n(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof a),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=m(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){D(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function O(e){var t=this instanceof(a=a||n(403));if(!t&&!s.call(O,this))return new O(e);this._writableState=new M(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),c.call(this)}function j(e,t){var r=new E;k(e,r),i.nextTick(t,r)}function R(e,t,r,n){var o;return null===r?o=new S:"string"==typeof r||t.objectMode||(o=new b("chunk",["string","Buffer"],r)),!o||(k(e,o),i.nextTick(n,o),!1)}function C(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,r)),t}function P(e,t,r,n,i,o){if(!r){var a=C(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else T(e,t,!1,s,n,i,o);return u}function T(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new _("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function I(e,t,r,n,o){--t.pendingcb,r?(i.nextTick(o,n),i.nextTick(q,e,t),e._writableState.errorEmitted=!0,k(e,n)):(o(n),e._writableState.errorEmitted=!0,k(e,n),q(e,t))}function N(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function D(e,t){var r=e._writableState,n=r.sync,o=r.writecb;if("function"!=typeof o)throw new v;if(N(r),t)I(e,r,n,t,o);else{var a=$(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||U(e,r),n?i.nextTick(L,e,r,a,o):L(e,r,a,o)}}function L(e,t,r,n){r||B(e,t),t.pendingcb--,n(),q(e,t)}function B(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function U(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=Array(t.bufferedRequestCount),i=t.corkedRequestsFree;i.entry=r;for(var a=0,s=!0;r;)n[a]=r,r.isBuf||(s=!1),r=r.next,a+=1;n.allBuffers=s,T(e,t,!0,t.length,n,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,c=r.encoding,l=r.callback,f=t.objectMode?1:u.length;if(T(e,t,!1,f,u,c,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function $(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function H(e,t){e._final(function(r){t.pendingcb--,r&&k(e,r),t.prefinished=!0,e.emit("prefinish"),q(e,t)})}function F(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.nextTick(H,e,t)))}function q(e,t){var r=$(t);if(r&&(F(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function W(e,t,r){t.ending=!0,q(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function z(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}n(782)(O,c),M.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(M.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===O&&e&&e._writableState instanceof M}})):s=function(e){return e instanceof this},O.prototype.pipe=function(){k(this,new w)},O.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=!n.objectMode&&h(e);return o&&!l.isBuffer(e)&&(e=d(e)),"function"==typeof t&&(r=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=A),n.ending?j(this,r):(o||R(this,n,e,r))&&(n.pendingcb++,i=P(this,n,o,e,t,r)),i},O.prototype.cork=function(){this._writableState.corked++},O.prototype.uncork=function(){var e=this._writableState;!e.corked||(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||U(this,e))},O.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new x(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(e,t,r){r(new g("_write()"))},O.prototype._writev=null,O.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||W(this,n,r),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),O.prototype.destroy=p.destroy,O.prototype._undestroy=p.undestroy,O.prototype._destroy=function(e,t){t(e)}},871:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o,a=r(698),s=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),d=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var r=e[h].read();null!==r&&(e[f]=null,e[s]=null,e[u]=null,t(p(r,!1)))}}function y(e){i.nextTick(m,e)}function b(e,t){return function(r,n){e.then(function(){if(t[l]){r(p(void 0,!0));return}t[d](r,n)},n)}}var g=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((n(o={get stream(){return this[h]},next:function(){var e,t=this,r=this[c];if(null!==r)return Promise.reject(r);if(this[l])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise(function(e,r){i.nextTick(function(){t[c]?r(t[c]):e(p(void 0,!0))})});var n=this[f];if(n)e=new Promise(b(n,this));else{var o=this[h].read();if(null!==o)return Promise.resolve(p(o,!1));e=new Promise(this[d])}return this[f]=e,e}},Symbol.asyncIterator,function(){return this}),n(o,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){if(e){r(e);return}t(p(void 0,!0))})})}),o),g),w=function(e){var t,r=Object.create(v,(n(t={},h,{value:e,writable:!0}),n(t,s,{value:null,writable:!0}),n(t,u,{value:null,writable:!0}),n(t,c,{value:null,writable:!0}),n(t,l,{value:e._readableState.endEmitted,writable:!0}),n(t,d,{value:function(e,t){var n=r[h].read();n?(r[f]=null,r[s]=null,r[u]=null,e(p(n,!1))):(r[s]=e,r[u]=t)},writable:!0}),t));return r[f]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];null!==t&&(r[f]=null,r[s]=null,r[u]=null,t(e)),r[c]=e;return}var n=r[s];null!==n&&(r[f]=null,r[s]=null,r[u]=null,n(p(void 0,!0))),r[l]=!0}),e.on("readable",y.bind(null,r)),r};e.exports=w},379:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}var c=r(300).Buffer,l=r(837).inspect,f=l&&l.custom||"inspect";function d(e,t,r){c.prototype.copy.call(e,t,r)}e.exports=function(){function e(){a(this,e),this.head=null,this.tail=null,this.length=0}return u(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return c.alloc(0);for(var t=c.allocUnsafe(e>>>0),r=this.head,n=0;r;)d(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=c.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:f,value:function(e,t){return l(this,i({},t,{depth:0,customInspect:!1}))}}]),e}()},25:function(e){"use strict";function t(e,t){var o=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(a,this,e)):i.nextTick(a,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?o._writableState?o._writableState.errorEmitted?i.nextTick(n,o):(o._writableState.errorEmitted=!0,i.nextTick(r,o,e)):i.nextTick(r,o,e):t?(i.nextTick(n,o),t(e)):i.nextTick(n,o)}),this)}function r(e,t){a(e,t),n(e)}function n(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(e,t){e.emit("error",t)}function s(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}e.exports={destroy:t,undestroy:o,errorOrDestroy:s}},698:function(e,t,r){"use strict";var n=r(646).q.ERR_STREAM_PREMATURE_CLOSE;function i(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function o(){}function a(e){return e.setHeader&&"function"==typeof e.abort}function s(e,t,r){if("function"==typeof t)return s(e,null,t);t||(t={}),r=i(r||o);var u=t.readable||!1!==t.readable&&e.readable,c=t.writable||!1!==t.writable&&e.writable,l=function(){e.writable||d()},f=e._writableState&&e._writableState.finished,d=function(){c=!1,f=!0,u||r.call(e)},h=e._readableState&&e._readableState.endEmitted,p=function(){u=!1,h=!0,c||r.call(e)},m=function(t){r.call(e,t)},y=function(){var t;return u&&!h?(e._readableState&&e._readableState.ended||(t=new n),r.call(e,t)):c&&!f?(e._writableState&&e._writableState.ended||(t=new n),r.call(e,t)):void 0},b=function(){e.req.on("finish",d)};return a(e)?(e.on("complete",d),e.on("abort",y),e.req?b():e.on("request",b)):c&&!e._writableState&&(e.on("end",l),e.on("close",l)),e.on("end",p),e.on("finish",d),!1!==t.error&&e.on("error",m),e.on("close",y),function(){e.removeListener("complete",d),e.removeListener("abort",y),e.removeListener("request",b),e.req&&e.req.removeListener("finish",d),e.removeListener("end",l),e.removeListener("close",l),e.removeListener("finish",d),e.removeListener("end",p),e.removeListener("error",m),e.removeListener("close",y)}}e.exports=s},727:function(e,t,r){"use strict";function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){r(e);return}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)})}}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}
29var u=r(646).q.ERR_INVALID_ARG_TYPE;function c(e,t,r){if(t&&"function"==typeof t.next)n=t;else if(t&&t[Symbol.asyncIterator])n=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])n=t[Symbol.iterator]();else throw new u("iterable",["Iterable"],t);var n,o=new e(a({objectMode:!0},r)),s=!1;function c(){return l.apply(this,arguments)}function l(){return(l=i(function*(){try{var e=yield n.next(),t=e.value;e.done?o.push(null):o.push((yield t))?c():s=!1}catch(e){o.destroy(e)}})).apply(this,arguments)}return o._read=function(){s||(s=!0,c())},o}e.exports=c},442:function(e,t,r){"use strict";function n(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i,o=r(646).q,a=o.ERR_MISSING_ARGS,s=o.ERR_STREAM_DESTROYED;function u(e){if(e)throw e}function c(e){return e.setHeader&&"function"==typeof e.abort}function l(e,t,o,a){a=n(a);var u=!1;e.on("close",function(){u=!0}),void 0===i&&(i=r(698)),i(e,{readable:t,writable:o},function(e){if(e)return a(e);u=!0,a()});var l=!1;return function(t){if(!u&&!l){if(l=!0,c(e))return e.abort();if("function"==typeof e.destroy)return e.destroy();a(t||new s("pipe"))}}}function f(e){e()}function d(e,t){return e.pipe(t)}function h(e){return e.length&&"function"==typeof e[e.length-1]?e.pop():u}function p(){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=h(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new a("streams");var o=r.map(function(t,n){var a=n<r.length-1;return l(t,a,n>0,function(t){e||(e=t),t&&o.forEach(f),a||(o.forEach(f),i(e))})});return r.reduce(d)}e.exports=p},776:function(e,t,r){"use strict";var n=r(646).q.ERR_INVALID_OPT_VALUE;function i(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}function o(e,t,r,o){var a=i(t,o,r);if(null!=a){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var s=o?r:"highWaterMark";throw new n(s,a)}return Math.floor(a)}return e.objectMode?16:16384}e.exports={getHighWaterMark:o}},678:function(e,t,r){e.exports=r(781)},55:function(e,t,r){var n=r(300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},173:function(e,t,r){e.exports=i;var n=r(361).EventEmitter;function i(){n.call(this)}r(782)(i,n),i.Readable=r(709),i.Writable=r(337),i.Duplex=r(403),i.Transform=r(170),i.PassThrough=r(889),i.finished=r(698),i.pipeline=r(442),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",u));var a=!1;function s(){a||(a=!0,e.end())}function u(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(l(),0===n.listenerCount(this,"error"))throw e}function l(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("error",c),e.on("error",c),r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e}},704:function(e,t,r){"use strict";var n=r(55).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";
29case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=p,this.end=m,t=4;break;case"utf8":this.fillLast=f,t=4;break;case"base64":this.text=y,this.end=b,t=3;break;default:this.write=g,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function u(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e,t,r){var n=t.length-1;if(n<r)return 0;var i=u(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=u(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=u(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function l(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function f(e){var t=this.lastTotal-this.lastNeed,r=l(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function d(e,t){var r=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function y(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function b(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):""}t.s=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=h,s.prototype.text=d,s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},769:function(e){function t(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}function n(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=t},300:function(e){"use strict";e.exports=r(1876)},361:function(e){"use strict";e.exports=r(5293)},781:function(e){"use strict";e.exports=r(5293).EventEmitter},837:function(e){"use strict";e.exports=r(9720)}},o={};function a(e){var r=o[e];if(void 0!==r)return r.exports;var n=o[e]={exports:{}},i=!0;try{t[e](n,n.exports,a),i=!1}finally{i&&delete o[e]}return n.exports}a.ab=n+"/";var s=a(173);e.exports=s}()},2321:function(e,t,r){var n="/",i=r(3454),o=r(1876).Buffer;!function(){var t={523:function(e){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Parti
29al Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},646:function(e){"use strict";let t={};function r(e,r,n){function i(e,t,n){return"string"==typeof r?r:r(e,t,n)}n||(n=Error);class o extends n{constructor(e,t,r){super(i(e,t,r))}}o.prototype.name=n.name,o.prototype.code=e,t[e]=o}function n(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}function i(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function o(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function a(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){let s,u;if("string"==typeof t&&i(t,"not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be",o(e," argument"))u=`The ${e} ${s} ${n(t,"type")}`;else{let r=a(e,".")?"property":"argument";u=`The "${e}" ${r} ${s} ${n(t,"type")}`}return u+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},403:function(e,t,r){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var o=r(709),a=r(337);r(782)(l,o);for(var s=n(a.prototype),u=0;u<s.length;u++){var c=s[u];l.prototype[c]||(l.prototype[c]=a.prototype[c])}function l(e){if(!(this instanceof l))return new l(e);o.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||i.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},889:function(e,t,r){"use strict";e.exports=i;var n=r(170);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(782)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},709:function(e,t,n){"use strict";e.exports=j,j.ReadableState=O,n(361).EventEmitter;var o,a,s,u,c,l=function(e,t){return e.listeners(t).length},f=n(678),d=n(300).Buffer,h=r.g.Uint8Array||function(){};function p(e){return d.from(e)}function m(e){return d.isBuffer(e)||e instanceof h}var y=n(837);a=y&&y.debuglog?y.debuglog("stream"):function(){};var b=n(379),g=n(25),v=n(776).getHighWaterMark,w=n(646).q,_=w.ERR_INVALID_ARG_TYPE,S=w.ERR_STREAM_PUSH_AFTER_EOF,E=w.ERR_METHOD_NOT_IMPLEMENT
vendor: 29,259 bytes, line 29
29ED,x=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(782)(j,f);var k=g.errorOrDestroy,A=["error","close","destroy","pause","resume"];function M(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function O(e,t,r){o=o||n(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof o),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=v(this,e,"readableHighWaterMark",r),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=n(704).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function j(e){if(o=o||n(403),!(this instanceof j))return new j(e);var t=this instanceof o;this._readableState=new O(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),f.call(this)}function R(e,t,r,n,i){a("readableAddChunk",t);var o,s=e._readableState;if(null===t)s.reading=!1,D(e,s);else if(i||(o=P(s,t)),o)k(e,o);else if(s.objectMode||t&&t.length>0){if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===d.prototype||(t=p(t)),n)s.endEmitted?k(e,new x):C(e,s,t,!0);else if(s.ended)k(e,new S);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?C(e,s,t,!1):U(e,s)):C(e,s,t,!1)}}else n||(s.reading=!1,U(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function C(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&L(e)),U(e,t)}function P(e,t){var r;return m(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new _("chunk",["string","Buffer","Uint8Array"],t)),r}Object.defineProperty(j.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),j.prototype.destroy=g.destroy,j.prototype._undestroy=g.undestroy,j.prototype._destroy=function(e,t){t(e)},j.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=d.from(e,t),t=""),r=!0),R(this,e,t,!1,r)},j.prototype.unshift=function(e){return R(this,e,null,!0,!1)},j.prototype.isPaused=function(){return!1===this._readableState.flowing},j.prototype.setEncoding=function(e){s||(s=n(704).s);var t=new s(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var T=1073741824;function I(e){return e>=T?e=T:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function N(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=I(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function D(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?L(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,B(e)))}}function L(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(B,e))}function B(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,K(e)}function U(e,t){t.readingMore||(t.readingMore=!0,i.nextTick($,e,t))}function $(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(a("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function H(e){return function(){var t=e._readableState;a("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&l(e,"data")&&(t.flowing=!0,K(e))}}function F(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function q(e){a("readable nexttick read 0"),e.read(0)}function W(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(z,e,t))}function z(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),K(e),t.flowing&&!t.reading&&e.read(0)}function K(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function Z(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function J(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(G,t,e))}function G(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function V(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}j.prototype.read=function(e){a("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return a("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?J(this):L(this),null;if(0===(e=N(e,r))&&r.ended)return 0===r.length&&J(this),null;var i=r.needReadable;return a("need readable",i),(0===r.length||r.length-e<r.highWaterMark)&&a("length less than watermark",i=!0),r.ended||r.reading?a("reading or ended",i=!1):i&&(a("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=N(n,r))),null===(t=e>0?Z(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&J(this)),null!==t&&this.emit("data",t),t},j.prototype._read=function(e){k(this,new E("_read()"))},j.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,a("pipe count=%d opts=%j",n.pipesCount,t);var o=t&&!1===t.end||e===i.stdout||e===i.stderr?b:u;function s(e,t){a("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,d())}function u(){a("onend"),e.end()}n.endEmitted?i.nextTick(o):r.once("end",o),e.on("unpipe",s);var c=H(r);e.on("drain",c);var f=!1;function d(){a("cleanup"),e.removeListener("close",m),e.removeListener("finish",y),e.removeListener("drain",c),e.removeListener("error",p),e.removeListener("unpipe",s),r.removeListener("end",u),r.removeListener("end",b),r.removeListener("data",h),f=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&c()}function h(t){a("ondata");var i=e.write(t);a("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==V(n.pipes,e))&&!f&&(a("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function p(t){a("onerror",t),b(),e.removeListener("error",p),0===l(e,"error")&&k(e,t)}function m(){e.removeListener("finish",y),b()}function y(){a("onfinish"),e.removeListener("close",m),b()}function b(){a("unpipe"),r.unpipe(e)}return r.on("data",h),M(e,"error",p),e.once("close",m),e.once("finish",y),e.emit("pipe",r),n.flowing||(a("pipe resume"),r.resume()),e},j.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=V(t.pipes,e);return -1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},j.prototype.on=function(e,t){var r=f.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,a("on readable",n.length,n.reading),n.length?L(this):n.reading||i.nextTick(q,this)),r},j.prototype.addListener=j.prototype.on,j.prototype.removeListener=function(e,t){var r=f.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(F,this),r},j.prototype.removeAllListeners=function(e){var t=f.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&i.nextTick(F,this),t},j.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,W(this,e)),e.paused=!1,this},j.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},j.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(a("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){a("wrapped data"),r.decoder&&(i=r.decoder.write(i)),(!r.objectMode||null!=i)&&(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<A.length;o++)e.on(A[o],this.emit.bind(this,A[o]));return this._read=function(t){a("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(j.prototype[Symbol.asyncIterator]=function(){return void 0===u&&(u=n(871)),u(this)}),Object.defineProperty(j.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(j.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(j.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),j._fromList=Z,Object.defineProperty(j.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(j.from=function(e,t){return void 0===c&&(c=n(727)),c(j,e,t)})},170:function(e,t,r){"use strict";e.exports=l;var n=r(646).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(403);function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);u.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush(function(t,r){d(e,t,r)})}function d(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(782)(l,u),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,r){r(new i("_transform()"))},l.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},l.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,function(e){t(e)})}},337:function(e,t,n){"use strict";function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){z(t,e)}}e.exports=O,O.WritableState=M;var a,s,u={deprecate:n(769)},c=n(678),l=n(300).Buffer,f=r.g.Uint8Array||function(){};function d(e){return l.from(e)}function h(e){return l.isBuffer(e)||e instanceof f}var p=n(25),m=n(776).getHighWaterMark,y=n(646).q,b=y.ERR_INVALID_ARG_TYPE,g=y.ERR_METHOD_NOT_IMPLEMENTED,v=y.ERR_MULTIPLE_CALLBACK,w=y.ERR_STREAM_CANNOT_PIPE,_=y.ERR_STREAM_DESTROYED,S=y.ERR_STREAM_NULL_VALUES,E=y.ERR_STREAM_WRITE_AFTER_END,x=y.ERR_UNKNOWN_ENCODING,k=p.errorOrDestroy;function A(){}function M(e,t,r){a=a||n(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof a),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=m(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){D(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function O(e){var t=this instanceof(a=a||n(403));if(!t&&!s.call(O,this))return new O(e);this._writableState=new M(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),c.call(this)}function j(e,t){var r=new E;k(e,r),i.nextTick(t,r)}function R(e,t,r,n){var o;return null===r?o=new S:"string"==typeof r||t.objectMode||(o=new b("chunk",["string","Buffer"],r)),!o||(k(e,o),i.nextTick(n,o),!1)}function C(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,r)),t}function P(e,t,r,n,i,o){if(!r){var a=C(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else T(e,t,!1,s,n,i,o);return u}function T(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new _("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function I(e,t,r,n,o){--t.pendingcb,r?(i.nextTick(o,n),i.nextTick(q,e,t),e._writableState.errorEmitted=!0,k(e,n)):(o(n),e._writableState.errorEmitted=!0,k(e,n),q(e,t))}function N(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function D(e,t){var r=e._writableState,n=r.sync,o=r.writecb;if("function"!=typeof o)throw new v;if(N(r),t)I(e,r,n,t,o);else{var a=$(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||U(e,r),n?i.nextTick(L,e,r,a,o):L(e,r,a,o)}}function L(e,t,r,n){r||B(e,t),t.pendingcb--,n(),q(e,t)}function B(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function U(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=Array(t.bufferedRequestCount),i=t.corkedRequestsFree;i.entry=r;for(var a=0,s=!0;r;)n[a]=r,r.isBuf||(s=!1),r=r.next,a+=1;n.allBuffers=s,T(e,t,!0,t.length,n,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,c=r.encoding,l=r.callback,f=t.objectMode?1:u.length;if(T(e,t,!1,f,u,c,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function $(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function H(e,t){e._final(function(r){t.pendingcb--,r&&k(e,r),t.prefinished=!0,e.emit("prefinish"),q(e,t)})}function F(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.nextTick(H,e,t)))}function q(e,t){var r=$(t);if(r&&(F(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function W(e,t,r){t.ending=!0,q(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function z(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}n(782)(O,c),M.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(M.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===O&&e&&e._writableState instanceof M}})):s=function(e){return e instanceof this},O.prototype.pipe=function(){k(this,new w)},O.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=!n.objectMode&&h(e);return o&&!l.isBuffer(e)&&(e=d(e)),"function"==typeof t&&(r=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=A),n.ending?j(this,r):(o||R(this,n,e,r))&&(n.pendingcb++,i=P(this,n,o,e,t,r)),i},O.prototype.cork=function(){this._writableState.corked++},O.prototype.uncork=function(){var e=this._writableState;!e.corked||(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||U(this,e))},O.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new x(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(e,t,r){r(new g("_write()"))},O.prototype._writev=null,O.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||W(this,n,r),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),O.prototype.destroy=p.destroy,O.prototype._undestroy=p.undestroy,O.prototype._destroy=function(e,t){t(e)}},871:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o,a=r(698),s=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),d=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var r=e[h].read();null!==r&&(e[f]=null,e[s]=null,e[u]=null,t(p(r,!1)))}}function y(e){i.nextTick(m,e)}function b(e,t){return function(r,n){e.then(function(){if(t[l]){r(p(void 0,!0));return}t[d](r,n)},n)}}var g=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((n(o={get stream(){return this[h]},next:function(){var e,t=this,r=this[c];if(null!==r)return Promise.reject(r);if(this[l])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise(function(e,r){i.nextTick(function(){t[c]?r(t[c]):e(p(void 0,!0))})});var n=this[f];if(n)e=new Promise(b(n,this));else{var o=this[h].read();if(null!==o)return Promise.resolve(p(o,!1));e=new Promise(this[d])}return this[f]=e,e}},Symbol.asyncIterator,function(){return this}),n(o,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){if(e){r(e);return}t(p(void 0,!0))})})}),o),g),w=function(e){var t,r=Object.create(v,(n(t={},h,{value:e,writable:!0}),n(t,s,{value:null,writable:!0}),n(t,u,{value:null,writable:!0}),n(t,c,{value:null,writable:!0}),n(t,l,{value:e._readableState.endEmitted,writable:!0}),n(t,d,{value:function(e,t){var n=r[h].read();n?(r[f]=null,r[s]=null,r[u]=null,e(p(n,!1))):(r[s]=e,r[u]=t)},writable:!0}),t));return r[f]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];null!==t&&(r[f]=null,r[s]=null,r[u]=null,t(e)),r[c]=e;return}var n=r[s];null!==n&&(r[f]=null,r[s]=null,r[u]=null,n(p(void 0,!0))),r[l]=!0}),e.on("readable",y.bind(null,r)),r};e.exports=w},379:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}var c=r(300).Buffer,l=r(837).inspect,f=l&&l.custom||"inspect";function d(e,t,r){c.prototype.copy.call(e,t,r)}e.exports=function(){function e(){a(this,e),this.head=null,this.tail=null,this.length=0}return u(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return c.alloc(0);for(var t=c.allocUnsafe(e>>>0),r=this.head,n=0;r;)d(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=c.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:f,value:function(e,t){return l(this,i({},t,{depth:0,customInspect:!1}))}}]),e}()},25:function(e){"use strict";function t(e,t){var o=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(a,this,e)):i.nextTick(a,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?o._writableState?o._writableState.errorEmitted?i.nextTick(n,o):(o._writableState.errorEmitted=!0,i.nextTick(r,o,e)):i.nextTick(r,o,e):t?(i.nextTick(n,o),t(e)):i.nextTick(n,o)}),this)}function r(e,t){a(e,t),n(e)}function n(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(e,t){e.emit("error",t)}function s(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}e.exports={destroy:t,undestroy:o,errorOrDestroy:s}},698:function(e,t,r){"use strict";var n=r(646).q.ERR_STREAM_PREMATURE_CLOSE;function i(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function o(){}function a(e){return e.setHeader&&"function"==typeof e.abort}function s(e,t,r){if("function"==typeof t)return s(e,null,t);t||(t={}),r=i(r||o);var u=t.readable||!1!==t.readable&&e.readable,c=t.writable||!1!==t.writable&&e.writable,l=function(){e.writable||d()},f=e._writableState&&e._writableState.finished,d=function(){c=!1,f=!0,u||r.call(e)},h=e._readableState&&e._readableState.endEmitted,p=function(){u=!1,h=!0,c||r.call(e)},m=function(t){r.call(e,t)},y=function(){var t;return u&&!h?(e._readableState&&e._readableState.ended||(t=new n),r.call(e,t)):c&&!f?(e._writableState&&e._writableState.ended||(t=new n),r.call(e,t)):void 0},b=function(){e.req.on("finish",d)};return a(e)?(e.on("complete",d),e.on("abort",y),e.req?b():e.on("request",b)):c&&!e._writableState&&(e.on("end",l),e.on("close",l)),e.on("end",p),e.on("finish",d),!1!==t.error&&e.on("error",m),e.on("close",y),function(){e.removeListener("complete",d),e.removeListener("abort",y),e.removeListener("request",b),e.req&&e.req.removeListener("finish",d),e.removeListener("end",l),e.removeListener("close",l),e.removeListener("finish",d),e.removeListener("end",p),e.removeListener("error",m),e.removeListener("close",y)}}e.exports=s},727:function(e,t,r){"use strict";function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){r(e);return}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)})}}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}
29var u=r(646).q.ERR_INVALID_ARG_TYPE;function c(e,t,r){if(t&&"function"==typeof t.next)n=t;else if(t&&t[Symbol.asyncIterator])n=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])n=t[Symbol.iterator]();else throw new u("iterable",["Iterable"],t);var n,o=new e(a({objectMode:!0},r)),s=!1;function c(){return l.apply(this,arguments)}function l(){return(l=i(function*(){try{var e=yield n.next(),t=e.value;e.done?o.push(null):o.push((yield t))?c():s=!1}catch(e){o.destroy(e)}})).apply(this,arguments)}return o._read=function(){s||(s=!0,c())},o}e.exports=c},442:function(e,t,r){"use strict";function n(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i,o=r(646).q,a=o.ERR_MISSING_ARGS,s=o.ERR_STREAM_DESTROYED;function u(e){if(e)throw e}function c(e){return e.setHeader&&"function"==typeof e.abort}function l(e,t,o,a){a=n(a);var u=!1;e.on("close",function(){u=!0}),void 0===i&&(i=r(698)),i(e,{readable:t,writable:o},function(e){if(e)return a(e);u=!0,a()});var l=!1;return function(t){if(!u&&!l){if(l=!0,c(e))return e.abort();if("function"==typeof e.destroy)return e.destroy();a(t||new s("pipe"))}}}function f(e){e()}function d(e,t){return e.pipe(t)}function h(e){return e.length&&"function"==typeof e[e.length-1]?e.pop():u}function p(){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=h(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new a("streams");var o=r.map(function(t,n){var a=n<r.length-1;return l(t,a,n>0,function(t){e||(e=t),t&&o.forEach(f),a||(o.forEach(f),i(e))})});return r.reduce(d)}e.exports=p},776:function(e,t,r){"use strict";var n=r(646).q.ERR_INVALID_OPT_VALUE;function i(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}function o(e,t,r,o){var a=i(t,o,r);if(null!=a){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var s=o?r:"highWaterMark";throw new n(s,a)}return Math.floor(a)}return e.objectMode?16:16384}e.exports={getHighWaterMark:o}},678:function(e,t,r){e.exports=r(781)},726:function(e,t,r){var n=r(781);"disable"===i.env.READABLE_STREAM&&n?(e.exports=n.Readable,Object.assign(e.exports,n),e.exports.Stream=n):((t=e.exports=r(709)).Stream=n||t,t.Readable=t,t.Writable=r(337),t.Duplex=r(403),t.Transform=r(170),t.PassThrough=r(889),t.finished=r(698),t.pipeline=r(442))},55:function(e,t,r){var n=r(300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},813:function(e,t,n){var i=n(450),o=n(254),a=n(911),s=n(523),u=n(310),c=t;c.request=function(e,t){e="string"==typeof e?u.parse(e):a(e);var n=-1===r.g.location.protocol.search(/^https?:$/)?"http:":"",o=e.protocol||n,s=e.hostname||e.host,c=e.port,l=e.path||"/";s&&-1!==s.indexOf(":")&&(s="["+s+"]"),e.url=(s?o+"//"+s:"")+(c?":"+c:"")+l,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var f=new i(e);return t&&f.on("response",t),f},c.get=function(e,t){var r=c.request(e,t);return r.end(),r},c.ClientRequest=i,c.IncomingMessage=o.IncomingMessage,c.Agent=function(){},c.Agent.defaultMaxSockets=4,c.globalAgent=new c.Agent,c.STATUS_CODES=s,c.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]},301:function(e,t){var n;function i(){if(void 0!==n)return n;if(r.g.XMLHttpRequest){n=new r.g.XMLHttpRequest;try{n.open("GET",r.g.XDomainRequest?"/":"https://example.com")}catch(e){n=null}}else n=null;return n}function o(e){var t=i();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}function a(e){return"function"==typeof e}t.fetch=a(r.g.fetch)&&a(r.g.ReadableStream),t.writableStream=a(r.g.WritableStream),t.abortController=a(r.g.AbortController),t.arraybuffer=t.fetch||o("arraybuffer"),t.msstream=!t.fetch&&o("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&o("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!i()&&a(i().overrideMimeType),n=null},450:function(e,t,n){var a=n(301),s=n(782),u=n(254),c=n(726),l=u.IncomingMessage,f=u.readyStates;function d(e,t){return a.fetch&&t?"fetch":a.mozchunkedarraybuffer?"moz-chunked-arraybuffer":a.msstream?"ms-stream":a.arraybuffer&&e?"arraybuffer":"text"}var h=e.exports=function(e){var t,r=this;c.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+o.from(e.auth).toString("base64")),Object.keys(e.headers).forEac
29h(function(t){r.setHeader(t,e.headers[t])});var n=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!a.abortController)n=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!a.overrideMimeType;else if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw Error("Invalid value for opts.mode");else t=!0;r._mode=d(t,n),r._fetchTimer=null,r.on("finish",function(){r._onFinish()})};function p(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}}s(h,c.Writable),h.prototype.setHeader=function(e,t){var r=this,n=e.toLowerCase();-1===m.indexOf(n)&&(r._headers[n]={name:e,value:t})},h.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},h.prototype.removeHeader=function(e){var t=this;delete t._headers[e.toLowerCase()]},h.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts,n=e._headers,o=null;"GET"!==t.method&&"HEAD"!==t.method&&(o=new Blob(e._body,{type:(n["content-type"]||{}).value||""}));var s=[];if(Object.keys(n).forEach(function(e){var t=n[e].name,r=n[e].value;Array.isArray(r)?r.forEach(function(e){s.push([t,e])}):s.push([t,r])}),"fetch"===e._mode){var u=null;if(a.abortController){var c=new AbortController;u=c.signal,e._fetchAbortController=c,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=r.g.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},t.requestTimeout))}r.g.fetch(e._opts.url,{method:e._opts.method,headers:s,body:o||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:u}).then(function(t){e._fetchResponse=t,e._connect()},function(t){r.g.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)})}else{var l=e._xhr=new r.g.XMLHttpRequest;try{l.open(e._opts.method,e._opts.url,!0)}catch(t){i.nextTick(function(){e.emit("error",t)});return}"responseType"in l&&(l.responseType=e._mode),"withCredentials"in l&&(l.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in l&&l.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(l.timeout=t.requestTimeout,l.ontimeout=function(){e.emit("requestTimeout")}),s.forEach(function(e){l.setRequestHeader(e[0],e[1])}),e._response=null,l.onreadystatechange=function(){switch(l.readyState){case f.LOADING:case f.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(l.onprogress=function(){e._onXHRProgress()}),l.onerror=function(){e._destroyed||e.emit("error",Error("XHR error"))};try{l.send(o)}catch(t){i.nextTick(function(){e.emit("error",t)});return}}}},h.prototype._onXHRProgress=function(){var e=this;p(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress())},h.prototype._connect=function(){var e=this;e._destroyed||(e._response=new l(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},h.prototype._write=function(e,t,r){var n=this;n._body.push(e),r()},h.prototype.abort=h.prototype.destroy=function(){var e=this;e._destroyed=!0,r.g.clearTimeout(e._fetchTimer),e._response&&(e._response._destroyed=!0),e._xhr?e._xhr.abort():e._fetchAbortController&&e._fetchAbortController.abort()},h.prototype.end=function(e,t,r){var n=this;"function"==typeof e&&(r=e,e=void 0),c.Writable.prototype.end.call(n,e,t,r)},h.prototype.flushHeaders=function(){},h.prototype.setTimeout=function(){},h.prototype.setNoDelay=function(){},h.prototype.setSocketKeepAlive=function(){};var m=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]},254:function(e,t,n){var a=n(301),s=n(782),u=n(726),c=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},l=t.IncomingMessage=function(e,t,n,s){var c=this;if(u.Readable.call(c),c._mode=n,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",function(){i.nextTick(function(){c.emit("close")})}),"fetch"===n){if(c._fetchResponse=t,c.url=t.url,c.statusCode=t.status,c.statusMessage=t.statusText,t.headers.forEac
29h(function(e,t){c.headers[t.toLowerCase()]=e,c.rawHeaders.push(t,e)}),a.writableStream){var l=new WritableStream({write:function(e){return new Promise(function(t,r){c._destroyed?r():c.push(o.from(e))?t():c._resumeFetch=t})},close:function(){r.g.clearTimeout(s),c._destroyed||c.push(null)},abort:function(e){c._destroyed||c.emit("error",e)}});try{t.body.pipeTo(l).catch(function(e){r.g.clearTimeout(s),c._destroyed||c.emit("error",e)});return}catch(e){}}var f=t.body.getReader();function d(){f.read().then(function(e){if(!c._destroyed){if(e.done){r.g.clearTimeout(s),c.push(null);return}c.push(o.from(e.value)),d()}}).catch(function(e){r.g.clearTimeout(s),c._destroyed||c.emit("error",e)})}d()}else if(c._xhr=e,c._pos=0,c.url=e.responseURL,c.statusCode=e.status,c.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach(function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===c.headers[r]&&(c.headers[r]=[]),c.headers[r].push(t[2])):void 0!==c.headers[r]?c.headers[r]+=", "+t[2]:c.headers[r]=t[2],c.rawHeaders.push(t[1],t[2])}}),c._charset="x-user-defined",!a.overrideMimeType){var h=c.rawHeaders["mime-type"];if(h){var p=h.match(/;\s*charset=([^;])(;|$)/);p&&(c._charset=p[1].toLowerCase())}c._charset||(c._charset="utf-8")}};s(l,u.Readable),l.prototype._read=function(){var e=this,t=e._resumeFetch;t&&(e._resumeFetch=null,t())},l.prototype._onXHRProgress=function(){var e=this,t=e._xhr,n=null;switch(e._mode){case"text":if((n=t.responseText).length>e._pos){var i=n.substr(e._pos);if("x-user-defined"===e._charset){for(var a=o.alloc(i.length),s=0;s<i.length;s++)a[s]=255&i.charCodeAt(s);e.push(a)}else e.push(i,e._charset);e._pos=n.length}break;case"arraybuffer":if(t.readyState!==c.DONE||!t.response)break;n=t.response,e.push(o.from(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=t.response,t.readyState!==c.LOADING||!n)break;e.push(o.from(new Uint8Array(n)));break;case"ms-stream":if(n=t.response,t.readyState!==c.LOADING)break;var u=new r.g.MSStreamReader;u.onprogress=function(){u.result.byteLength>e._pos&&(e.push(o.from(new Uint8Array(u.result.slice(e._pos)))),e._pos=u.result.byteLength)},u.onload=function(){e.push(null)},u.readAsArrayBuffer(n)}e._xhr.readyState===c.DONE&&"ms-stream"!==e._mode&&e.push(null)}},704:function(e,t,r){"use strict";var n=r(55).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=p,this.end=m,t=4;break;case"utf8":this.fillLast=f,t=4;break;case"base64":this.text=y,this.end=b,t=3;break;default:this.write=g,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function u(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e,t,r){var n=t.length-1;if(n<r)return 0;var i=u(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=u(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=u(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function l(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function f(e){var t=this.lastTotal-this.lastNeed,r=l(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function d(e,t){var r=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function y(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function b(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):""}t.s=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=h,s.prototype.text=d,s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},769:function(e){function t(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}function n(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}
29e.exports=t},911:function(e){e.exports=r;var t=Object.prototype.hasOwnProperty;function r(){for(var e={},r=0;r<arguments.length;r++){var n=arguments[r];for(var i in n)t.call(n,i)&&(e[i]=n[i])}return e}},300:function(e){"use strict";e.exports=r(1876)},361:function(e){"use strict";e.exports=r(5293)},781:function(e){"use strict";e.exports=r(9681)},310:function(e){"use strict";e.exports=r(1987)},837:function(e){"use strict";e.exports=r(9720)}},a={};function s(e){var r=a[e];if(void 0!==r)return r.exports;var n=a[e]={exports:{}},i=!0;try{t[e](n,n.exports,s),i=!1}finally{i&&delete a[e]}return n.exports}s.ab=n+"/";var u=s(813);e.exports=u}()},9720:function(e,t,r){var n="/",i=r(1876).Buffer,o=r(3454);!function(){var t={992:function(e){e.exports=function(e,r,n){if(e.filter)return e.filter(r,n);if(null==e||"function"!=typeof r)throw TypeError();for(var i=[],o=0;o<e.length;o++)if(t.call(e,o)){var a=e[o];r.call(n,a,o,e)&&i.push(a)}return i};var t=Object.prototype.hasOwnProperty},256:function(e,t,r){"use strict";var n=r(500),i=r(139),o=i(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i(r):r}},139:function(e,t,r){"use strict";var n=r(174),i=r(500),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||n.call(a,o),u=i("%Object.getOwnPropertyDescriptor%",!0),c=i("%Object.defineProperty%",!0),l=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=s(n,a,arguments);return u&&c&&u(t,"length").configurable&&c(t,"length",{value:1+l(0,e.length-(arguments.length-1))}),t};var f=function(){return s(n,o,arguments)};c?c(e.exports,"apply",{value:f}):e.exports.apply=f},144:function(e){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,n,i){if("[object Function]"!==r.call(n))throw TypeError("iterator must be a function");var o=e.length;if(o===+o)for(var a=0;a<o;a++)n.call(i,e[a],a,e);else for(var s in e)t.call(e,s)&&n.call(i,e[s],s,e)}},426:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,n=Object.prototype.toString,i="[object Function]";e.exports=function(e){var o,a=this;if("function"!=typeof a||n.call(a)!==i)throw TypeError(t+a);for(var s=r.call(arguments,1),u=function(){if(!(this instanceof o))return a.apply(e,s.concat(r.call(arguments)));var t=a.apply(this,s.concat(r.call(arguments)));return Object(t)===t?t:this},c=Math.max(0,a.length-s.length),l=[],f=0;f<c;f++)l.push("$"+f);if(o=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(u),a.prototype){var d=function(){};d.prototype=a.prototype,o.prototype=new d,d.prototype=null}return o}},174:function(e,t,r){"use strict";var n=r(426);e.exports=Function.prototype.bind||n},500:function(e,t,r){"use strict";var n,i=SyntaxError,o=Function,a=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(e){u=null}var c=function(){throw new a},l=u?function(){try{return arguments.callee,c}catch(e){try{return u(arguments,"callee").get}catch(e){return c}}}():c,f=r(115)(),d=Object.getPrototypeOf||function(e){return e.__proto__},h={},p="undefined"==typeof Uint8Array?n:d(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":f?d([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
29IteratorPrototype%":f?d(d([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?d((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f?d((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?d(""[Symbol.iterator]()):n,"%Symbol%":f?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":l,"%TypedArray%":p,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},y=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(r=d(i.prototype))}return m[t]=r,r},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=r(174),v=r(101),w=g.call(Function.call,Array.prototype.concat),_=g.call(Function.apply,Array.prototype.splice),S=g.call(Function.call,String.prototype.replace),E=g.call(Function.call,String.prototype.slice),x=g.call(Function.call,RegExp.prototype.exec),k=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,A=/\\(\\)?/g,M=function(e){var t=E(e,0,1),r=E(e,-1);if("%"===t&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return S(e,k,function(e,t,r,i){n[n.length]=r?S(i,A,"$1"):t||e}),n},O=function(e,t){var r,n=e;if(v(b,n)&&(n="%"+(r=b[n])[0]+"%"),v(m,n)){var o=m[n];if(o===h&&(o=y(n)),void 0===o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===x(/^%?[^%]*%?$/g,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=M(e),n=r.length>0?r[0]:"",o=O("%"+n+"%",t),s=o.name,c=o.value,l=!1,f=o.alias;f&&(n=f[0],_(r,w([0,1],f)));for(var d=1,h=!0;d<r.length;d+=1){var p=r[d],y=E(p,0,1),b=E(p,-1);if(('"'===y||"'"===y||"`"===y||'"'===b||"'"===b||"`"===b)&&y!==b)throw new i("property names with quotes must have matching quotes");if("constructor"!==p&&h||(l=!0),n+="."+p,v(m,s="%"+n+"%"))c=m[s];else if(null!=c){if(!(p in c)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(u&&d+1>=r.length){var g=u(c,p);c=(h=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:c[p]}else h=v(c,p),c=c[p];h&&!l&&(m[s]=c)}}return c}},942:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(773);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},773:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(t in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==n||!0!==o.enumerable)return!1}return!0}},115:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(832);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},832:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(t in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==n||!0!==o.enumerable)return!1}return!0}},101:function(e,t,r){"use strict";var n=r(174);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},157:function(e){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,r=Object.prototype.toString,n=function(e){return(!t||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===r.call(e)},i=function(e){return!!n(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==r.call(e)&&"[object Function]"===r.call(e.callee)},o=function(){return n(arguments)}();n.isLegacyArguments=i,e.exports=o?n:i},391:function(e){"use strict";var t=Object.prototype.toString,r=Function.prototype.toString,n=/^\s*(?:function)?\*/,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,o=Object.getPrototypeOf,a=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch(e){}}(),s=a?o(a):{};e.exports=function(e){return"function"==typeof e&&(!!n.test(r.call(e))||(i?o(e)===s:"[object GeneratorFunction]"===t.call(e)))}},994:function(e,t,n){"use strict";var i=n(144),o=n(349),a=n(256),s=a("Object.prototype.toString"),u=n(942)()&&"symbol"==typeof Symbol.toStringTag,c=o(),l=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return -1},f=a("String.prototype.slice"),d={},h=n(466),p=Object.getPrototypeOf;u&&h&&p&&i(c,function(e){var t=new r.g[e];
29if(!(Symbol.toStringTag in t))throw EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var n=p(t),i=h(n,Symbol.toStringTag);i||(i=h(p(n),Symbol.toStringTag)),d[e]=i.get});var m=function(e){var t=!1;return i(d,function(r,n){if(!t)try{t=r.call(e)===n}catch(e){}}),t};e.exports=function(e){return!!e&&"object"==typeof e&&(u?!!h&&m(e):l(c,f(s(e),8,-1))>-1)}},369:function(e){e.exports=function(e){return e instanceof i}},584:function(e,t,r){"use strict";var n=r(157),i=r(391),o=r(490),a=r(994);function s(e){return e.call.bind(e)}var u="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,l=s(Object.prototype.toString),f=s(Number.prototype.valueOf),d=s(String.prototype.valueOf),h=s(Boolean.prototype.valueOf);if(u)var p=s(BigInt.prototype.valueOf);if(c)var m=s(Symbol.prototype.valueOf);function y(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function b(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch}function g(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||H(e)}function v(e){return"Uint8Array"===o(e)}function w(e){return"Uint8ClampedArray"===o(e)}function _(e){return"Uint16Array"===o(e)}function S(e){return"Uint32Array"===o(e)}function E(e){return"Int8Array"===o(e)}function x(e){return"Int16Array"===o(e)}function k(e){return"Int32Array"===o(e)}function A(e){return"Float32Array"===o(e)}function M(e){return"Float64Array"===o(e)}function O(e){return"BigInt64Array"===o(e)}function j(e){return"BigUint64Array"===o(e)}function R(e){return"[object Map]"===l(e)}function C(e){return"undefined"!=typeof Map&&(R.working?R(e):e instanceof Map)}function P(e){return"[object Set]"===l(e)}function T(e){return"undefined"!=typeof Set&&(P.working?P(e):e instanceof Set)}function I(e){return"[object WeakMap]"===l(e)}function N(e){return"undefined"!=typeof WeakMap&&(I.working?I(e):e instanceof WeakMap)}function D(e){return"[object WeakSet]"===l(e)}function L(e){return D(e)}function B(e){return"[object ArrayBuffer]"===l(e)}function U(e){return"undefined"!=typeof ArrayBuffer&&(B.working?B(e):e instanceof ArrayBuffer)}function $(e){return"[object DataView]"===l(e)}function H(e){return"undefined"!=typeof DataView&&($.working?$(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=b,t.isArrayBufferView=g,t.isUint8Array=v,t.isUint8ClampedArray=w,t.isUint16Array=_,t.isUint32Array=S,t.isInt8Array=E,t.isInt16Array=x,t.isInt32Array=k,t.isFloat32Array=A,t.isFloat64Array=M,t.isBigInt64Array=O,t.isBigUint64Array=j,R.working="undefined"!=typeof Map&&R(new Map),t.isMap=C,P.working="undefined"!=typeof Set&&P(new Set),t.isSet=T,I.working="undefined"!=typeof WeakMap&&I(new WeakMap),t.isWeakMap=N,D.working="undefined"!=typeof WeakSet&&D(new WeakSet),t.isWeakSet=L,B.working="undefined"!=typeof ArrayBuffer&&B(new ArrayBuffer),t.isArrayBuffer=U,$.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&$(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=H;var F="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function q(e){return"[object SharedArrayBuffer]"===l(e)}function W(e){return void 0!==F&&(void 0===q.working&&(q.working=q(new F)),q.working?q(e):e instanceof F)}function z(e){return"[object AsyncFunction]"===l(e)}function K(e){return"[object Map Iterator]"===l(e)}function Z(e){return"[object Set Iterator]"===l(e)}function J(e){return"[object Generator]"===l(e)}function G(e){return"[object WebAssembly.Module]"===l(e)}function V(e){return y(e,f)}function Y(e){return y(e,d)}function X(e){return y(e,h)}function Q(e){return u&&y(e,p)}function ee(e){return c&&y(e,m)}function et(e){return V(e)||Y(e)||X(e)||Q(e)||ee(e)}function er(e){return"undefined"!=typeof Uint8Array&&(U(e)||W(e))}t.isSharedArrayBuffer=W,t.isAsyncFunction=z,t.isMapIterator=K,t.isSetIterator=Z,t.isGeneratorObject=J,t.isWebAssemblyCompiledModule=G,t.isNumberObject=V,t.isStringObject=Y,t.isBooleanObject=X,t.isBigIntObject=Q,t.isSymbolObject=ee,t.isBoxedPrimitive=et,t.isAnyArrayBuffer=er,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},177:function(e,t,r){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},i=/%[sdj%]/g;t.format=function(e){if(!x(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(c(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,o=n.length,a=String(e).replace(i,function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),s=n[r];r<o;s=n[++r])_(s)||!O(s)?a+=" "+s:a+=" "+c(s);return a},t.deprecate=function(e,r){if(void 0!==o&&!0===o.noDeprecation)return e;if(void 0===o)return function(){return t.deprecate(e,r).apply(this,arguments)};var n=!1;
vendor: 4,911 bytes, line 29
29return function(){if(!n){if(o.throwDeprecation)throw Error(r);o.traceDeprecation?console.trace(r):console.error(r),n=!0}return e.apply(this,arguments)}};var a={},s=/^$/;if(o.env.NODE_DEBUG){var u=o.env.NODE_DEBUG;s=RegExp("^"+(u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function c(e,r){var n={seen:[],stylize:f};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),w(r)?n.showHidden=r:r&&t._extend(n,r),A(n.showHidden)&&(n.showHidden=!1),A(n.depth)&&(n.depth=2),A(n.colors)&&(n.colors=!1),A(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),h(n,e,n.depth)}function l(e,t){var r=c.styles[t];return r?"\x1b["+c.colors[r][0]+"m"+e+"\x1b["+c.colors[r][1]+"m":e}function f(e,t){return e}function d(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function h(e,r,n){if(e.customInspect&&r&&C(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var i,o=r.inspect(n,e);return x(o)||(o=h(e,o,n)),o}var a=p(e,r);if(a)return a;var s=Object.keys(r),u=d(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),R(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return m(r);if(0===s.length){if(C(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(M(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(j(r))return e.stylize(Date.prototype.toString.call(r),"date");if(R(r))return m(r)}var l="",f=!1,w=["{","}"];return(v(r)&&(f=!0,w=["[","]"]),C(r)&&(l=" [Function"+(r.name?": "+r.name:"")+"]"),M(r)&&(l=" "+RegExp.prototype.toString.call(r)),j(r)&&(l=" "+Date.prototype.toUTCString.call(r)),R(r)&&(l=" "+m(r)),0!==s.length||f&&0!=r.length)?n<0?M(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),i=f?y(e,r,n,u,s):s.map(function(t){return b(e,r,n,u,t,f)}),e.seen.pop(),g(i,l,w)):w[0]+l+w[1]}function p(e,t){if(A(t))return e.stylize("undefined","undefined");if(x(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return E(t)?e.stylize(""+t,"number"):w(t)?e.stylize(""+t,"boolean"):_(t)?e.stylize("null","null"):void 0}function m(e){return"["+Error.prototype.toString.call(e)+"]"}function y(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)L(t,String(a))?o.push(b(e,t,r,n,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(b(e,t,r,n,i,!0))}),o}function b(e,t,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),L(n,i)||(a="["+i+"]"),!s&&(0>e.seen.indexOf(u.value)?(s=_(r)?h(e,u.value,null):h(e,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),A(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function g(e,t,r){var n=0;return e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function v(e){return Array.isArray(e)}function w(e){return"boolean"==typeof e}function _(e){return null===e}function S(e){return null==e}function E(e){return"number"==typeof e}function x(e){return"string"==typeof e}function k(e){return"symbol"==typeof e}function A(e){return void 0===e}function M(e){return O(e)&&"[object RegExp]"===T(e)}function O(e){return"object"==typeof e&&null!==e}function j(e){return O(e)&&"[object Date]"===T(e)}function R(e){return O(e)&&("[object Error]"===T(e)||e instanceof Error)}function C(e){return"function"==typeof e}function P(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function T(e){return Object.prototype.toString.call(e)}function I(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!a[e=e.toUpperCase()]){if(s.test(e)){var r=o.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){}}return a[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(584),t.isArray=v,t.isBoolean=w,t.isNull=_,t.isNullOrUndefined=S,t.isNumber=E,t.isString=x,t.isSymbol
29=k,t.isUndefined=A,t.isRegExp=M,t.types.isRegExp=M,t.isObject=O,t.isDate=j,t.types.isDate=j,t.isError=R,t.types.isNativeError=R,t.isFunction=C,t.isPrimitive=P,t.isBuffer=r(369);var N=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function D(){var e=new Date,t=[I(e.getHours()),I(e.getMinutes()),I(e.getSeconds())].join(":");return[e.getDate(),N[e.getMonth()],t].join(" ")}function L(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",D(),t.format.apply(t,arguments))},t.inherits=r(782),t._extend=function(e,t){if(!t||!O(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var B="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function U(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}function $(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var n=t.pop();if("function"!=typeof n)throw TypeError("The last argument must be of type Function");var i=this,a=function(){return n.apply(i,arguments)};e.apply(this,t).then(function(e){o.nextTick(a.bind(null,null,e))},function(e){o.nextTick(U.bind(null,e,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,n(e)),t}t.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(B&&e[B]){var t=e[B];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,B,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push(function(e,n){e?r(e):t(n)});try{e.apply(this,i)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),B&&Object.defineProperty(t,B,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,n(e))},t.promisify.custom=B,t.callbackify=$},490:function(e,t,n){"use strict";var i=n(144),o=n(349),a=n(256),s=a("Object.prototype.toString"),u=n(942)()&&"symbol"==typeof Symbol.toStringTag,c=o(),l=a("String.prototype.slice"),f={},d=n(466),h=Object.getPrototypeOf;u&&d&&h&&i(c,function(e){if("function"==typeof r.g[e]){var t=new r.g[e];if(!(Symbol.toStringTag in t))throw EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var n=h(t),i=d(n,Symbol.toStringTag);i||(i=d(h(n),Symbol.toStringTag)),f[e]=i.get}});var p=function(e){var t=!1;return i(f,function(r,n){if(!t)try{var i=r.call(e);i===n&&(t=i)}catch(e){}}),t},m=n(994);e.exports=function(e){return!!m(e)&&(u?p(e):l(s(e),8,-1))}},349:function(e,t,n){"use strict";var i=n(992);e.exports=function(){return i(["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],function(e){return"function"==typeof r.g[e]})}},466:function(e,t,r){"use strict";var n=r(500)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n}},a={};function s(e){var r=a[e];if(void 0!==r)return r.exports;var n=a[e]={exports:{}},i=!0;try{t[e](n,n.exports,s),i=!1}finally{i&&delete a[e]}return n.exports}s.ab=n+"/";var u=s(177);e.exports=u}()},1951:function(module){var __dirname="/";!function(){var __webpack_modules__={950:function(__unused_webpack_module,exports){var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0;r<e.length;r++)if(e[r]===t)return r;return -1},Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var r in e)t.push(r);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,r){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch(e){return function(e,t,r){e[t]=r}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decode
29URI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var r=t.contentWindow,n=r.eval,i=r.execScript;!n&&i&&(i.call(r,"null"),n=r.eval),forEach(Object_keys(e),function(t){r[t]=e[t]}),forEach(globals,function(t){e[t]&&(r[t]=e[t])});var o=Object_keys(r),a=n.call(r,this.code);return forEach(Object_keys(r),function(t){(t in e||-1===indexOf(o,t))&&(e[t]=r[t])}),forEach(globals,function(t){t in e||defineProp(e,t,r[t])}),document.body.removeChild(t),a},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),r=this.runInContext(t);return e&&forEach(Object_keys(t),function(r){e[r]=t[r]}),r},forEach(Object_keys(Script.prototype),function(e){exports[e]=Script[e]=function(t){var r=Script(t);return r[e].apply(r,[].slice.call(arguments,1))}}),exports.isContext=function(e){return e instanceof Context},exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(e){var t=new Context;return"object"==typeof e&&forEach(Object_keys(e),function(r){t[r]=e[r]}),t}}};"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab=__dirname+"/");var __webpack_exports__={};__webpack_modules__[950](0,__webpack_exports__),module.exports=__webpack_exports__}()},9008:function(e,t,r){e.exports=r(5443)},1664:function(e,t,r){e.exports=r(8418)},1163:function(e,t,r){e.exports=r(387)},4298:function(e,t,r){e.exports=r(699)},3457:function(e,t,r){var n,i=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=e=>o(e,"__esModule",{value:!0}),f=(e,t)=>o(e,"name",{value:t,configurable:!0}),d=(e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})},h=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))!c.call(e,i)&&(r||"default"!==i)&&o(e,i,{get:()=>t[i],enumerable:!(n=a(t,i))||n.enumerable});return e},p=(e,t)=>h(l(o(null!=e?i(u(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),m=(n="undefined"!=typeof WeakMap?new WeakMap:0,(e,t)=>n&&n.get(e)||(t=h(l({}),e,1),n&&n.set(e,t),t)),y={};d(y,{default:()=>S});var b=p(r(1163)),g=p(r(4865)),v=p(r(5697)),w=p(r(7294)),_=f(({color:e="#29D",startPosition:t=.3,stopDelayMs:r=200,height:n=3,showOnShallow:i=!0,options:o,nonce:a,transformCSS:s=f(e=>w.createElement("style",{nonce:a},e),"transformCSS")})=>{let u=null;w.useEffect(()=>(o&&g.configure(o),b.default.events.on("routeChangeStart",c),b.default.events.on("routeChangeComplete",l),b.default.events.on("routeChangeError",d),()=>{b.default.events.off("routeChangeStart",c),b.default.events.off("routeChangeComplete",l),b.default.events.off("routeChangeError",d)}),[]);let c=f((e,{shallow:r})=>{(!r||i)&&(g.set(t),g.start())},"routeChangeStart"),l=f((e,{shallow:t})=>{(!t||i)&&(u&&clearTimeout(u),u=setTimeout(()=>{g.done(!0)},r))},"routeChangeEnd"),d=f((e,t,{shallow:n})=>{(!n||i)&&(u&&clearTimeout(u),u=setTimeout(()=>{g.done(!0)},r))},"routeChangeError");return s(` 30 #nprogress { 31 pointer-events: none; 32 } 33 #nprogress .bar { 34 background: ${e}; 35 position: fixed; 36 z-index: 9999; 37 top: 0; 38 left: 0; 39 width: 100%; 40 height: ${n}px; 41 } 42 #nprogress .peg { 43 display: block; 44 position: absolute; 45 right: 0px; 46 width: 100px; 47 height: 100%; 48 box-shadow: 0 0 10px ${e}, 0 0 5px ${e}; 49 opacity: 1; 50 -webkit-transform: rotate(3deg) translate(0px, -4px); 51 -ms-transform: rotate(3deg) translate(0px, -4px); 52 transform: rotate(3deg) translate(0px, -4px); 53 } 54 #nprogress .spinner { 55 display: block; 56 position: fixed; 57 z-index: 1031; 58 top: 15px; 59 right: 15px; 60 } 61 #nprogress .spinner-icon { 62 width: 18px; 63 height: 18px; 64 box-sizing: border-box; 65 border: solid 2px transparent; 66 border-top-color: ${e}; 67 border-left-color: ${e}; 68 border-radius: 50%; 69 -webkit-animation: nprogresss-spinner 400ms linear infinite; 70 animation: nprogress-spinner 400ms linear infinite; 71 } 72 .nprogress-custom-parent { 73 overflow: hidden; 74 position: relative; 75 } 76 .nprogress-custom-parent #nprogress .spinner, 77 .nprogress-custom-parent #nprogress .bar { 78 position: absolute; 79 } 80 @-webkit-keyframes nprogress-spinner { 81 0% { 82 -webkit-transform: rotate(0deg); 83 } 84 100% { 85 -webkit-transform: rotate(360deg); 86 } 87 }
88 @keyframes nprogress-spinner { 89 0% { 90 transform: rotate(0deg); 91 } 92 100% { 93 transform: rotate(360deg); 94 } 95 } 96 `)},"NextNProgress");_.propTypes={color:v.string,startPosition:v.number,stopDelayMs:v.number,height:v.number,showOnShallow:v.bool,options:v.object,nonce:v.string,transformCSS:v.func};var S=w.memo(_);e.exports=m(y)},4865:function(e,t,r){var n,i;/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress 97 * @license MIT */!function(o,a){void 0!==(i="function"==typeof(n=a)?n.call(t,r,t,e):n)&&(e.exports=i)}(0,function(){var e={};e.version="0.2.0";var t=e.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function r(e,t,r){return e<t?t:e>r?r:e}function n(e){return(-1+e)*100}function i(e,r,i){var o;return(o="translate3d"===t.positionUsing?{transform:"translate3d("+n(e)+"%,0,0)"}:"translate"===t.positionUsing?{transform:"translate("+n(e)+"%,0)"}:{"margin-left":n(e)+"%"}).transition="all "+r+"ms "+i,o}e.configure=function(e){var r,n;for(r in e)void 0!==(n=e[r])&&e.hasOwnProperty(r)&&(t[r]=n);return this},e.status=null,e.set=function(n){var s=e.isStarted();n=r(n,t.minimum,1),e.status=1===n?null:n;var u=e.render(!s),c=u.querySelector(t.barSelector),l=t.speed,f=t.easing;return u.offsetWidth,o(function(r){""===t.positionUsing&&(t.positionUsing=e.getPositioningCSS()),a(c,i(n,l,f)),1===n?(a(u,{transition:"none",opacity:1}),u.offsetWidth,setTimeout(function(){a(u,{transition:"all "+l+"ms linear",opacity:0}),setTimeout(function(){e.remove(),r()},l)},l)):setTimeout(r,l)}),this},e.isStarted=function(){return"number"==typeof e.status},e.start=function(){e.status||e.set(0);var r=function(){setTimeout(function(){e.status&&(e.trickle(),r())},t.trickleSpeed)};return t.trickle&&r(),this},e.done=function(t){return t||e.status?e.inc(.3+.5*Math.random()).set(1):this},e.inc=function(t){var n=e.status;return n?("number"!=typeof t&&(t=(1-n)*r(Math.random()*n,.1,.95)),n=r(n+t,0,.994),e.set(n)):e.start()},e.trickle=function(){return e.inc(Math.random()*t.trickleRate)},function(){var t=0,r=0;e.promise=function(n){return n&&"resolved"!==n.state()&&(0===r&&e.start(),t++,r++,n.always(function(){0==--r?(t=0,e.done()):e.set((t-r)/t)})),this}}(),e.render=function(r){if(e.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var i=document.createElement("div");i.id="nprogress",i.innerHTML=t.template;var o,s=i.querySelector(t.barSelector),c=r?"-100":n(e.status||0),l=document.querySelector(t.parent);return a(s,{transition:"all 0 linear",transform:"translate3d("+c+"%,0,0)"}),!t.showSpinner&&(o=i.querySelector(t.spinnerSelector))&&f(o),l!=document.body&&u(l,"nprogress-custom-parent"),l.appendChild(i),i},e.remove=function(){c(document.documentElement,"nprogress-busy"),c(document.querySelector(t.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&f(e)},e.isRendered=function(){return!!document.getElementById("nprogress")},e.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective" in e?"translate3d":t+"Transform" in e?"translate":"margin"};var o=function(){var e=[];function t(){var r=e.shift();r&&r(t)}return function(r){e.push(r),1==e.length&&t()}}(),a=function(){var e=["Webkit","O","Moz","ms"],t={};function r(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})}function n(t){var r=document.body.style;if(t in r)return t;for(var n,i=e.length,o=t.charAt(0).toUpperCase()+t.slice(1);i--;)if((n=e[i]+o)in r)return n;return t}function i(e){return t[e=r(e)]||(t[e]=n(e))}function o(e,t,r){t=i(t),e.style[t]=r}return function(e,t){var r,n,i=arguments;if(2==i.length)for(r in t)void 0!==(n=t[r])&&t.hasOwnProperty(r)&&o(e,r,n);else o(e,i[1],i[2])}}();function s(e,t){return("string"==typeof e?e:l(e)).indexOf(" "+t+" ")>=0}function u(e,t){var r=l(e),n=r+t;s(r,t)||(e.className=n.substring(1))}function c(e,t){var r,n=l(e);s(e,t)&&(r=n.replace(" "+t+" "," "),e.className=r.substring(1,r.length-1))}function l(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function f(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return e})},705:function(e){!function(t){e.exports=t()}(function(){return(function e(t,r,n){function i(a,s){if(!r[a]){if(!t[a]){var u=void 0;if(!s&&u)return require(a,!0);if(o)return o(a,!0);throw Error("Cannot find module '"+a+"'")}var c=r[a]={exports:{}};t[a][0].call(c.exports,function(e){return i(t[a][1][e]||e)},c,c.exports,e,t,r,n)}return r[a].exports}for(var o=void 0,a=0;a<n.length;a++)i(n[a]);return i})({1:[function(e,t,r){(function(n,i,o,a,s,u,c,l,f){"use strict";var d=e("crypto");function h(e,t){return function(e,t){if(void 0===(r="passthrough"!==t.algorithm?d.createHash(t.algorithm):new v).write&&(r.write=r.update,r.end=r.update),g(t,r).dispatch(e),r.update||r.end(""),r.digest)return r.digest("buffer"===t.encoding?void 0:t.encoding);var r,n=r.read();return"buffer"!==t.encoding?n.toString(t.encoding):n}(e,t=y(e,t))}
97(r=t.exports=h).sha1=function(e){return h(e)},r.keys=function(e){return h(e,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},r.MD5=function(e){return h(e,{algorithm:"md5",encoding:"hex"})},r.keysMD5=function(e){return h(e,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var p=d.getHashes?d.getHashes().slice():["sha1","md5"];p.push("passthrough");var m=["buffer","hex","binary","base64"];function y(e,t){t=t||{};var r={};if(r.algorithm=t.algorithm||"sha1",r.encoding=t.encoding||"hex",r.excludeValues=!!t.excludeValues,r.algorithm=r.algorithm.toLowerCase(),r.encoding=r.encoding.toLowerCase(),r.ignoreUnknown=!0===t.ignoreUnknown,r.respectType=!1!==t.respectType,r.respectFunctionNames=!1!==t.respectFunctionNames,r.respectFunctionProperties=!1!==t.respectFunctionProperties,r.unorderedArrays=!0===t.unorderedArrays,r.unorderedSets=!1!==t.unorderedSets,r.unorderedObjects=!1!==t.unorderedObjects,r.replacer=t.replacer||void 0,r.excludeKeys=t.excludeKeys||void 0,void 0===e)throw Error("Object argument required.");for(var n=0;n<p.length;++n)p[n].toLowerCase()===r.algorithm.toLowerCase()&&(r.algorithm=p[n]);if(-1===p.indexOf(r.algorithm))throw Error('Algorithm "'+r.algorithm+'" not supported. supported values: '+p.join(", "));if(-1===m.indexOf(r.encoding)&&"passthrough"!==r.algorithm)throw Error('Encoding "'+r.encoding+'" not supported. supported values: '+m.join(", "));return r}function b(e){if("function"==typeof e)return null!=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(e))}function g(e,t,r){function n(e){return t.update?t.update(e,"utf8"):t.write(e,"utf8")}return r=r||[],{dispatch:function(t){return e.replacer&&(t=e.replacer(t)),this["_"+(null===t?"null":typeof t)](t)},_object:function(t){var i,a=Object.prototype.toString.call(t),s=/\[object (.*)\]/i.exec(a);if(s=(s=s?s[1]:"unknown:["+a+"]").toLowerCase(),0<=(i=r.indexOf(t)))return this.dispatch("[CIRCULAR:"+i+"]");if(r.push(t),void 0!==o&&o.isBuffer&&o.isBuffer(t))return n("buffer:"),n(t);if("object"===s||"function"===s||"asyncfunction"===s){var u=Object.keys(t);e.unorderedObjects&&(u=u.sort()),!1===e.respectType||b(t)||u.splice(0,0,"prototype","__proto__","constructor"),e.excludeKeys&&(u=u.filter(function(t){return!e.excludeKeys(t)})),n("object:"+u.length+":");var c=this;return u.forEach(function(r){c.dispatch(r),n(":"),e.excludeValues||c.dispatch(t[r]),n(",")})}if(!this["_"+s]){if(e.ignoreUnknown)return n("["+s+"]");throw Error('Unknown object type "'+s+'"')}this["_"+s](t)},_array:function(t,i){i=void 0!==i?i:!1!==e.unorderedArrays;var o=this;if(n("array:"+t.length+":"),!i||t.length<=1)return t.forEach(function(e){return o.dispatch(e)});var a=[],s=t.map(function(t){var n=new v,i=r.slice();return g(e,n,i).dispatch(t),a=a.concat(i.slice(r.length)),n.read().toString()});return r=r.concat(a),s.sort(),this._array(s,!1)},_date:function(e){return n("date:"+e.toJSON())},_symbol:function(e){return n("symbol:"+e.toString())},_error:function(e){return n("error:"+e.toString())},_boolean:function(e){return n("bool:"+e.toString())},_string:function(e){n("string:"+e.length+":"),n(e.toString())},_function:function(t){n("fn:"),b(t)?this.dispatch("[native]"):this.dispatch(t.toString()),!1!==e.respectFunctionNames&&this.dispatch("function-name:"+String(t.name)),e.respectFunctionProperties&&this._object(t)},_number:function(e){return n("number:"+e.toString())},_xml:function(e){return n("xml:"+e.toString())},_null:function(){return n("Null")},_undefined:function(){return n("Undefined")},_regexp:function(e){return n("regex:"+e.toString())},_uint8array:function(e){return n("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint8clampedarray:function(e){return n("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(e))},_int8array:function(e){return n("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint16array:function(e){return n("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_int16array:function(e){return n("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_uint32array:function(e){return n("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_int32array:function(e){return n("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_float32array:function(e){return n("float32array:"),this.dispatch(Array.prototype.slice.call(e))},_float64array:function(e){return n("float64array:"),this.dispatch(Array.prototype.slice.call(e))},_arraybuffer:function(e){return n("arraybuffer:"),this.dispatch(new Uint8Array(e))},_url:function(e){return n("url:"+e.toString())},_map:function(t){n("map:");var r=Array.from(t);return this._array(r,!1!==e.unorderedSets)},_set:function(t){n("set:");var r=Array.from(t);return this._array(r,!1!==e.unorderedSets)},_file:function(e){return n("file:"),this.dispatch([e.name,e.size,e.type,e.lastModfied])},_blob:function(){if(e.ignoreUnknown)return n("[blob]");throw Error('Hashing Blob objects is currently not supported\n(see https://github.com/puleos/object-hash/issues/26)\nUse "options.replacer" or "options.ignoreUnknown"\n')},_domwindow:function(){return n("domwindow")},_bigint:function(e){return n("bigint:"+e.toString())},_process:function(){return n("process")},_timer:function(){return n("timer")},_pipe:function(){return n("pipe")},_tcp:function(){return n("tcp")},_udp:function(){return n("udp")},_tty:function(){return n("tty")},_statwatcher:function(){return n("statwatcher")},_securecontext:function(){return n("securecontext")},_connection:function(){return n("connection")},_zlib:function(){return n("zlib")},_context:function(){return n("context")},_nodescript:function(){return n("nodescript")},_httpparser:function(){return n("httpparser")},_dataview:function(){return n("dataview")},_signal:function(){return n("signal")},_fsevent:function(){return n("fsevent")},_tlswrap:function(){return n("tlswrap")}}}function v(){return{buf:"",write:function(e){this.buf+=e},end:function(e){this.buf+=e},read:function(){return this.buf}}}r.writeToStream=function(e,t,r){return void 0===r&&(r=t,t={}),g(t=y(e,t),r).dispatch(e)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_7eac155c.js","/")},{buffer:3,crypto:5,lYpoI2:10}],2:[function(e,t,r){(function(e,t,n,i,o,a,s,u,c){!function(e){"use strict";var t="undefined"!=typeof Uint8Array?Uint8Array:Array,r=43,n=47,i=48,o=97,a=65,s=45,u=95;function c(e){var t=e.charCodeAt(0);return t===r||t===s?62:t===n||t===u?63:t<i?-1:t<i+10?t-i+26+26:t<a+26?t-a:t<o+26?t-o+26:void 0}e.toByteArray=function(e){if(0<e.length%4)throw Error("Invalid string. Length must be a multiple of 4");var r,n,i=e.length,o="="===e.charAt(i-2)?2:"="===e.charAt(i-1)?1:0,a=new t(3*e.length/4-o),s=0<o?e.length-4:e.length,u=0;function l(e){a[u++]=e}for(r=0;r<s;r+=4)l((16711680&(n=c(e.charAt(r))<<18|c(e.charAt(r+1))<<12|c(e.charAt(r+2))<<6|c(e.charAt(r+3))))>>16),l((65280&n)>>8),l(255&n);return 2==o?l(255&(n=c(e.charAt(r))<<2|c(e.charAt(r+1))>>4)):1==o&&(l((n=c(e.charAt(r))<<10|c(e.charAt(r+1))<<4|c(e.charAt(r+2))>>2)>>8&255),l(255&n)),a},e.fromByteArray=function(e){var t,r,n,i,o=e.length%3,a="";function s(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
97+/".charAt(e)}for(t=0,n=e.length-o;t<n;t+=3)a+=s((i=r=(e[t]<<16)+(e[t+1]<<8)+e[t+2])>>18&63)+s(i>>12&63)+s(i>>6&63)+s(63&i);switch(o){case 1:a+=s((r=e[e.length-1])>>2)+s(r<<4&63)+"==";break;case 2:a+=s((r=(e[e.length-2]<<8)+e[e.length-1])>>10)+s(r>>4&63)+s(r<<2&63)+"="}return a}}(void 0===r?this.base64js={}:r)}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:10}],3:[function(e,t,r){(function(t,n,i,o,a,s,u,c,l){var f=e("base64-js"),d=e("ieee754");function i(e,t,r){if(!(this instanceof i))return new i(e,t,r);var n,o,a,s,u,c=typeof e;if("base64"===t&&"string"==c)for(e=(n=e).trim?n.trim():n.replace(/^\s+|\s+$/g,"");e.length%4!=0;)e+="=";if("number"==c)o=R(e);else if("string"==c)o=i.byteLength(e,t);else{if("object"!=c)throw Error("First argument needs to be a number, array or string.");o=R(e.length)}if(i._useTypedArrays?a=i._augment(new Uint8Array(o)):((a=this).length=o,a._isBuffer=!0),i._useTypedArrays&&"number"==typeof e.byteLength)a._set(e);
vendor: 4,558 bytes, line 97
97else if(C(u=e)||i.isBuffer(u)||u&&"object"==typeof u&&"number"==typeof u.length)for(s=0;s<o;s++)i.isBuffer(e)?a[s]=e.readUInt8(s):a[s]=e[s];else if("string"==c)a.write(e,0,t);else if("number"==c&&!i._useTypedArrays&&!r)for(s=0;s<o;s++)a[s]=0;return a}function h(e,t,r,n){return i._charsWritten=N(function(e){for(var t=[],r=0;r<e.length;r++)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function p(e,t,r,n){return i._charsWritten=N(function(e){for(var t,r,n=[],i=0;i<e.length;i++)r=(t=e.charCodeAt(i))>>8,n.push(t%256),n.push(r);return n}(t),e,r,n)}function m(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;i++)n+=String.fromCharCode(e[i]);return n}function y(e,t,r,n){n||($("boolean"==typeof r,"missing or invalid endian"),$(null!=t,"missing offset"),$(t+1<e.length,"Trying to read beyond buffer length"));var i,o=e.length;if(!(o<=t))return r?(i=e[t],t+1<o&&(i|=e[t+1]<<8)):(i=e[t]<<8,t+1<o&&(i|=e[t+1])),i}function b(e,t,r,n){n||($("boolean"==typeof r,"missing or invalid endian"),$(null!=t,"missing offset"),$(t+3<e.length,"Trying to read beyond buffer length"));var i,o=e.length;if(!(o<=t))return r?(t+2<o&&(i=e[t+2]<<16),t+1<o&&(i|=e[t+1]<<8),i|=e[t],t+3<o&&(i+=e[t+3]<<24>>>0)):(t+1<o&&(i=e[t+1]<<16),t+2<o&&(i|=e[t+2]<<8),t+3<o&&(i|=e[t+3]),i+=e[t]<<24>>>0),i}function g(e,t,r,n){if(n||($("boolean"==typeof r,"missing or invalid endian"),$(null!=t,"missing offset"),$(t+1<e.length,"Trying to read beyond buffer length")),!(e.length<=t)){var i=y(e,t,r,!0);return 32768&i?-1*(65535-i+1):i}}function v(e,t,r,n){if(n||($("boolean"==typeof r,"missing or invalid endian"),$(null!=t,"missing offset"),$(t+3<e.length,"Trying to read beyond buffer length")),!(e.length<=t)){var i=b(e,t,r,!0);return 2147483648&i?-1*(4294967295-i+1):i}}function w(e,t,r,n){return n||($("boolean"==typeof r,"missing or invalid endian"),$(t+3<e.length,"Trying to read beyond buffer length")),d.read(e,t,r,23,4)}function _(e,t,r,n){return n||($("boolean"==typeof r,"missing or invalid endian"),$(t+7<e.length,"Trying to read beyond buffer length")),d.read(e,t,r,52,8)}function S(e,t,r,n,i){i||($(null!=t,"missing value"),$("boolean"==typeof n,"missing or invalid endian"),$(null!=r,"missing offset"),$(r+1<e.length,"trying to write beyond buffer length"),L(t,65535));var o=e.length;if(!(o<=r))for(var a=0,s=Math.min(o-r,2);a<s;a++)e[r+a]=(t&255<<8*(n?a:1-a))>>>8*(n?a:1-a)}function E(e,t,r,n,i){i||($(null!=t,"missing value"),$("boolean"==typeof n,"missing or invalid endian"),$(null!=r,"missing offset"),$(r+3<e.length,"trying to write beyond buffer length"),L(t,4294967295));var o=e.length;if(!(o<=r))for(var a=0,s=Math.min(o-r,4);a<s;a++)e[r+a]=t>>>8*(n?a:3-a)&255}function x(e,t,r,n,i){i||($(null!=t,"missing value"),$("boolean"==typeof n,"missing or invalid endian"),$(null!=r,"missing offset"),$(r+1<e.length,"Trying to write beyond buffer length"),B(t,32767,-32768)),e.length<=r||S(e,0<=t?t:65535+t+1,r,n,i)}function k(e,t,r,n,i){i||($(null!=t,"missing value"),$("boolean"==typeof n,"missing or invalid endian"),$(null!=r,"missing offset"),$(r+3<e.length,"Trying to write beyond buffer length"),B(t,2147483647,-2147483648)),e.length<=r||E(e,0<=t?t:4294967295+t+1,r,n,i)}function A(e,t,r,n,i){i||($(null!=t,"missing value"),$("boolean"==typeof n,"missing or invalid endian"),$(null!=r,"missing offset"),$(r+3<e.length,"Trying to write beyond buffer length"),U(t,34028234663852886e22,-34028234663852886e22)),e.length<=r||d.write(e,t,r,n,23,4)}function M(e,t,r,n,i){i||($(null!=t,"missing value"),$("boolean"==typeof n,"missing or invalid endian"),$(null!=r,"missing offset"),$(r+7<e.length,"Trying to write beyond buffer length"),U(t,17976931348623157e292,-17976931348623157e292)),e.length<=r||d.write(e,t,r,n,52,8)}r.Buffer=i,r.SlowBuffer=i,r.INSPECT_MAX_BYTES=50,i.poolSize=8192,i._useTypedArrays=function(){try{var e=new ArrayBuffer(0),t=new Uint8Array(e);return t.foo=function(){return 42},42===t.foo()&&"function"==typeof t.subarray}catch(e){return!1}}(),i.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.isBuffer=function(e){return!(null==e||!e._isBuffer)},i.byteLength=function(e,t){var r;switch(e+="",t||"utf8"){case"hex":r=e.length/2;break;case"utf8":case"utf-8":r=T(e).length;break;case"ascii":case"binary":case"raw":r=e.length;break;case"base64":r=I(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":r=2*e.length;break;default:throw Error("Unknown encoding")}return r}
vendor: 5,320 bytes, line 97
97,i.concat=function(e,t){if($(C(e),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===e.length)return new i(0);if(1===e.length)return e[0];if("number"!=typeof t)for(o=t=0;o<e.length;o++)t+=e[o].length;for(var r=new i(t),n=0,o=0;o<e.length;o++){var a=e[o];a.copy(r,n),n+=a.length}return r},i.prototype.write=function(e,t,r,n){isFinite(t)?isFinite(r)||(n=r,r=void 0):(o=n,n=t,t=r,r=o),t=Number(t)||0;var o,a,s,u,c,l,f,d,m,y,b=this.length-t;switch((!r||b<(r=Number(r)))&&(r=b),n=String(n||"utf8").toLowerCase()){case"hex":a=function(e,t,r,n){r=Number(r)||0;var o=e.length-r;(!n||o<(n=Number(n)))&&(n=o);var a=t.length;$(a%2==0,"Invalid hex string"),a/2<n&&(n=a/2);for(var s=0;s<n;s++){var u=parseInt(t.substr(2*s,2),16);$(!isNaN(u),"Invalid hex string"),e[r+s]=u}return i._charsWritten=2*s,s}(this,e,t,r);break;case"utf8":case"utf-8":f=this,d=e,m=t,y=r,a=i._charsWritten=N(T(d),f,m,y);break;case"ascii":case"binary":a=h(this,e,t,r);break;case"base64":s=this,u=e,c=t,l=r,a=i._charsWritten=N(I(u),s,c,l);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":a=p(this,e,t,r);break;default:throw Error("Unknown encoding")}return a},i.prototype.toString=function(e,t,r){var n,i,o,a,s=this;if(e=String(e||"utf8").toLowerCase(),t=Number(t)||0,(r=void 0!==r?Number(r):r=s.length)===t)return"";switch(e){case"hex":n=function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||n<r)&&(r=n);for(var i="",o=t;o<r;o++)i+=P(e[o]);return i}(s,t,r);break;case"utf8":case"utf-8":n=function(e,t,r){var n="",i="";r=Math.min(e.length,r);for(var o=t;o<r;o++)e[o]<=127?(n+=D(i)+String.fromCharCode(e[o]),i=""):i+="%"+e[o].toString(16);return n+D(i)}(s,t,r);break;case"ascii":case"binary":n=m(s,t,r);break;case"base64":i=s,a=r,n=0===(o=t)&&a===i.length?f.fromByteArray(i):f.fromByteArray(i.slice(o,a));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=function(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}(s,t,r);break;default:throw Error("Unknown encoding")}return n},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},i.prototype.copy=function(e,t,r,n){if(r=r||0,n||0===n||(n=this.length),t=t||0,n!==r&&0!==e.length&&0!==this.length){$(r<=n,"sourceEnd < sourceStart"),$(0<=t&&t<e.length,"targetStart out of bounds"),$(0<=r&&r<this.length,"sourceStart out of bounds"),$(0<=n&&n<=this.length,"sourceEnd out of bounds"),n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o=n-r;if(o<100||!i._useTypedArrays)for(var a=0;a<o;a++)e[a+t]=this[a+r];else e._set(this.subarray(r,r+o),t)}},i.prototype.slice=function(e,t){var r=this.length;if(e=j(e,r,0),t=j(t,r,r),i._useTypedArrays)return i._augment(this.subarray(e,t));for(var n=t-e,o=new i(n,void 0,!0),a=0;a<n;a++)o[a]=this[a+e];return o},i.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},i.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},i.prototype.readUInt8=function(e,t){if(t||($(null!=e,"missing offset"),$(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return this[e]},i.prototype.readUInt16LE=function(e,t){return y(this,e,!0,t)},i.prototype.readUInt16BE=function(e,t){return y(this,e,!1,t)},i.prototype.readUInt32LE=function(e,t){return b(this,e,!0,t)},i.prototype.readUInt32BE=function(e,t){return b(this,e,!1,t)},i.prototype.readInt8=function(e,t){if(t||($(null!=e,"missing offset"),$(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},i.prototype.readInt16LE=function(e,t){return g(this,e,!0,t)},i.prototype.readInt16BE=function(e,t){return g(this,e,!1,t)},i.prototype.readInt32LE=function(e,t){return v(this,e,!0,t)},i.prototype.readInt32BE=function(e,t){return v(this,e,!1,t)},i.prototype.readFloatLE=function(e,t){return w(this,e,!0,t)},i.prototype.readFloatBE=function(e,t){return w(this,e,!1,t)},i.prototype.readDoubleLE=function(e,t){return _(this,e,!0,t)},i.prototype.readDoubleBE=function(e,t){return _(this,e,!1,t)},i.prototype.writeUInt8=function(e,t,r){r||($(null!=e,"missing value"),$(null!=t,"missing offset"),$(t<this.length,"trying to write beyond buffer length"),L(e,255)),t>=this.length||(this[t]=e)},i.prototype.writeUInt16LE=function(e,t,r){S(this,e,t,!0,r)},i.prototype.writeUInt16BE=function(e,t,r){S(this,e,t,!1,r)},i.prototype.writeUInt32LE=function(e,t,r){E(this,e,t,!0,r)},i.prototype.writeUInt32BE=function(e,t,r){E(this,e,t,!1,r)},i.prototype.writeInt8=function(e,t,r){r||($(null!=e,"missing value"),$(null!=t,"missing offset"),$(t<this.length,"Trying to write beyond buffer length"),B(e,127,-128)),t>=this.length||(0<=e?this.writeUInt8(e,t,r):this.writeUInt8(255+e+1,t,r))},i.prototype.writeInt16LE=function(e,t,r){x(this,e,t,!0,r)},i.prototype.writeInt16BE=function(e,t,r){x(this,e,t,!1,r)},i.prototype.writeInt32LE=function(e,t,r){k(this,e,t,!0,r)},i.prototype.writeInt32BE=function(e,t,r){k(this,e,t,!1,r)},i.prototype.writeFloatLE=function(e,t,r){A(this,e,t,!0,r)},i.prototype.writeFloatBE=function(e,t,r){A(this,e,t,!1,r)},i.prototype.writeDoubleLE=function(e,t,r){M(this,e,t,!0,r)},i.prototype.writeDoubleBE=function(e,t,r){M(this,e,t,!1,r)}
97,i.prototype.fill=function(e,t,r){if(e=e||0,t=t||0,r=r||this.length,"string"==typeof e&&(e=e.charCodeAt(0)),$("number"==typeof e&&!isNaN(e),"value is not a number"),$(t<=r,"end < start"),r!==t&&0!==this.length){$(0<=t&&t<this.length,"start out of bounds"),$(0<=r&&r<=this.length,"end out of bounds");for(var n=t;n<r;n++)this[n]=e}},i.prototype.inspect=function(){for(var e=[],t=this.length,n=0;n<t;n++)if(e[n]=P(this[n]),n===r.INSPECT_MAX_BYTES){e[n+1]="...";break}return"<Buffer "+e.join(" ")+">"},i.prototype.toArrayBuffer=function(){if("undefined"==typeof Uint8Array)throw Error("Buffer.toArrayBuffer not supported in this browser");if(i._useTypedArrays)return new i(this).buffer;for(var e=new Uint8Array(this.length),t=0,r=e.length;t<r;t+=1)e[t]=this[t];return e.buffer};var O=i.prototype;function j(e,t,r){return"number"!=typeof e?r:t<=(e=~~e)?t:0<=e||0<=(e+=t)?e:0}function R(e){return(e=~~Math.ceil(+e))<0?0:e}function C(e){return(Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)})(e)}function P(e){return e<16?"0"+e.toString(16):e.toString(16)}function T(e){for(var t=[],r=0;r<e.length;r++){var n=e.charCodeAt(r);if(n<=127)t.push(e.charCodeAt(r));else{var i=r;55296<=n&&n<=57343&&r++;for(var o=encodeURIComponent(e.slice(i,r+1)).substr(1).split("%"),a=0;a<o.length;a++)t.push(parseInt(o[a],16))}}return t}function I(e){return f.toByteArray(e)}function N(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);i++)t[i+r]=e[i];return i}function D(e){try{return decodeURIComponent(e)}catch(e){return String.fromCharCode(65533)}}function L(e,t){$("number"==typeof e,"cannot write a non-number as a number"),$(0<=e,"specified a negative value for writing an unsigned value"),$(e<=t,"value is larger than maximum value for type"),$(Math.floor(e)===e,"value has a fractional component")}function B(e,t,r){$("number"==typeof e,"cannot write a non-number as a number"),$(e<=t,"value larger than maximum allowed value"),$(r<=e,"value smaller than minimum allowed value"),$(Math.floor(e)===e,"value has a fractional component")}function U(e,t,r){$("number"==typeof e,"cannot write a non-number as a number"),$(e<=t,"value larger than maximum allowed value"),$(r<=e,"value smaller than minimum allowed value")}function $(e,t){if(!e)throw Error(t||"Failed assertion")}i._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=O.get,e.set=O.set,e.write=O.write,e.toString=O.toString,e.toLocaleString=O.toString,e.toJSON=O.toJSON,e.copy=O.copy,e.slice=O.slice,e.readUInt8=O.readUInt8,e.readUInt16LE=O.readUInt16LE,e.readUInt16BE=O.readUInt16BE,e.readUInt32LE=O.readUInt32LE,e.readUInt32BE=O.readUInt32BE,e.readInt8=O.readInt8,e.readInt16LE=O.readInt16LE,e.readInt16BE=O.readInt16BE,e.readInt32LE=O.readInt32LE,e.readInt32BE=O.readInt32BE,e.readFloatLE=O.readFloatLE,e.readFloatBE=O.readFloatBE,e.readDoubleLE=O.readDoubleLE,e.readDoubleBE=O.readDoubleBE,e.writeUInt8=O.writeUInt8,e.writeUInt16LE=O.writeUInt16LE,e.writeUInt16BE=O.writeUInt16BE,e.writeUInt32LE=O.writeUInt32LE,e.writeUInt32BE=O.writeUInt32BE,e.writeInt8=O.writeInt8,e.writeInt16LE=O.writeInt16LE,e.writeInt16BE=O.writeInt16BE,e.writeInt32LE=O.writeInt32LE,e.writeInt32BE=O.writeInt32BE,e.writeFloatLE=O.writeFloatLE,e.writeFloatBE=O.writeFloatBE,e.writeDoubleLE=O.writeDoubleLE,e.writeDoubleBE=O.writeDoubleBE,e.fill=O.fill,e.inspect=O.inspect,e.toArrayBuffer=O.toArrayBuffer,e}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:11,lYpoI2:10}],4:[function(e,t,r){(function(r,n,i,o,a,s,u,c,l){var i=e("buffer").Buffer,f=4,d=new i(f);d.fill(0),t.exports={hash:function(e,t,r,n){return i.isBuffer(e)||(e=new i(e)),function(e,t,r){for(var n=new i(t),o=r?n.writeInt32BE:n.writeInt32LE,a=0;a<e.length;a++)o.call(n,e[a],4*a,!0);return n}(t(function(e,t){var r;e.length%f!=0&&(r=e.length+(f-e.length%f),e=i.concat([e,d],r));for(var n=[],o=t?e.readInt32BE:e.readInt32LE,a=0;a<e.length;a+=f)n.push(o.call(e,a));return n}
97(e,n),8*e.length),r,n)}}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],5:[function(e,t,r){(function(t,n,i,o,a,s,u,c,l){var i=e("buffer").Buffer,f=e("./sha"),d=e("./sha256"),h=e("./rng"),p={sha1:f,sha256:d,md5:e("./md5")},m=64,y=new i(m);function b(e,t){var r=p[e=e||"sha1"],n=[];return r||g("algorithm:",e,"is not yet supported"),{update:function(e){return i.isBuffer(e)||(e=new i(e)),n.push(e),e.length,this},digest:function(e){var o=i.concat(n),a=t?function(e,t,r){i.isBuffer(t)||(t=new i(t)),i.isBuffer(r)||(r=new i(r)),t.length>m?t=e(t):t.length<m&&(t=i.concat([t,y],m));for(var n=new i(m),o=new i(m),a=0;a<m;a++)n[a]=54^t[a],o[a]=92^t[a];var s=e(i.concat([n,r]));return e(i.concat([o,s]))}(r,t,o):r(o);return n=null,e?a.toString(e):a}}}function g(){var e=[].slice.call(arguments).join(" ");throw Error([e,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}y.fill(0),r.createHash=function(e){return b(e)},r.createHmac=b,r.randomBytes=function(e,t){if(!t||!t.call)return new i(h(e));try{t.call(this,void 0,new i(h(e)))}catch(e){t(e)}},function(e,t){for(var r in e)t(e[r],r)}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(e){r[e]=function(){g("sorry,",e,"is not implemented yet")}})}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:10}],6:[function(e,t,r){(function(r,n,i,o,a,s,u,c,l){var f=e("./helpers");function d(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var r=1732584193,n=-271733879,i=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=r,u=n,c=i,l=o,r=p(r,n,i,o,e[a+0],7,-680876936),o=p(o,r,n,i,e[a+1],12,-389564586),i=p(i,o,r,n,e[a+2],17,606105819),n=p(n,i,o,r,e[a+3],22,-1044525330);r=p(r,n,i,o,e[a+4],7,-176418897),o=p(o,r,n,i,e[a+5],12,1200080426),i=p(i,o,r,n,e[a+6],17,-1473231341),n=p(n,i,o,r,e[a+7],22,-45705983),r=p(r,n,i,o,e[a+8],7,1770035416),o=p(o,r,n,i,e[a+9],12,-1958414417),i=p(i,o,r,n,e[a+10],17,-42063),n=p(n,i,o,r,e[a+11],22,-1990404162),r=p(r,n,i,o,e[a+12],7,1804603682),o=p(o,r,n,i,e[a+13],12,-40341101),i=p(i,o,r,n,e[a+14],17,-1502002290),r=m(r,n=p(n,i,o,r,e[a+15],22,1236535329),i,o,e[a+1],5,-165796510),o=m(o,r,n,i,e[a+6],9,-1069501632),i=m(i,o,r,n,e[a+11],14,643717713),n=m(n,i,o,r,e[a+0],20,-373897302),r=m(r,n,i,o,e[a+5],5,-701558691),o=m(o,r,n,i,e[a+10],9,38016083),i=m(i,o,r,n,e[a+15],14,-660478335),n=m(n,i,o,r,e[a+4],20,-405537848),r=m(r,n,i,o,e[a+9],5,568446438),o=m(o,r,n,i,e[a+14],9,-1019803690),i=m(i,o,r,n,e[a+3],14,-187363961),n=m(n,i,o,r,e[a+8],20,1163531501),r=m(r,n,i,o,e[a+13],5,-1444681467),o=m(o,r,n,i,e[a+2],9,-51403784),i=m(i,o,r,n,e[a+7],14,1735328473),r=y(r,n=m(n,i,o,r,e[a+12],20,-1926607734),i,o,e[a+5],4,-378558),o=y(o,r,n,i,e[a+8],11,-2022574463),i=y(i,o,r,n,e[a+11],16,1839030562),n=y(n,i,o,r,e[a+14],23,-35309556),r=y(r,n,i,o,e[a+1],4,-1530992060),o=y(o,r,n,i,e[a+4],11,1272893353),i=y(i,o,r,n,e[a+7],16,-155497632),n=y(n,i,o,r,e[a+10],23,-1094730640),r=y(r,n,i,o,e[a+13],4,681279174),o=y(o,r,n,i,e[a+0],11,-358537222),i=y(i,o,r,n,e[a+3],16,-722521979),n=y(n,i,o,r,e[a+6],23,76029189),r=y(r,n,i,o,e[a+9],4,-640364487),o=y(o,r,n,i,e[a+12],11,-421815835),i=y(i,o,r,n,e[a+15],16,530742520),r=b(r,n=y(n,i,o,r,e[a+2],23,-995338651),i,o,e[a+0],6,-198630844),o=b(o,r,n,i,e[a+7],10,1126891415),i=b(i,o,r,n,e[a+14],15,-1416354905),n=b(n,i,o,r,e[a+5],21,-57434055),r=b(r,n,i,o,e[a+12],6,1700485571),o=b(o,r,n,i,e[a+3],10,-1894986606),i=b(i,o,r,n,e[a+10],15,-1051523),n=b(n,i,o,r,e[a+1],21,-2054922799),r=b
97(r,n,i,o,e[a+8],6,1873313359),o=b(o,r,n,i,e[a+15],10,-30611744),i=b(i,o,r,n,e[a+6],15,-1560198380),n=b(n,i,o,r,e[a+13],21,1309151649),r=b(r,n,i,o,e[a+4],6,-145523070),o=b(o,r,n,i,e[a+11],10,-1120210379),i=b(i,o,r,n,e[a+2],15,718787259),n=b(n,i,o,r,e[a+9],21,-343485551),r=g(r,s),n=g(n,u),i=g(i,c),o=g(o,l)}return[r,n,i,o]}function h(e,t,r,n,i,o){var a,s;return g((a=g(g(t,e),g(n,o)))<<(s=i)|a>>>32-s,r)}function p(e,t,r,n,i,o,a){return h(t&r|~t&n,e,t,i,o,a)}function m(e,t,r,n,i,o,a){return h(t&n|r&~n,e,t,i,o,a)}function y(e,t,r,n,i,o,a){return h(t^r^n,e,t,i,o,a)}function b(e,t,r,n,i,o,a){return h(r^(t|~n),e,t,i,o,a)}function g(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}t.exports=function(e){return f.hash(e,d,16)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],7:[function(e,t,r){(function(e,r,n,i,o,a,s,u,c){var l,f;f=function(e){for(var t,r=Array(e),n=0;n<e;n++)0==(3&n)&&(t=4294967296*Math.random()),r[n]=t>>>((3&n)<<3)&255;return r},t.exports=l||f}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],8:[function(e,t,r){(function(r,n,i,o,a,s,u,c,l){var f=e("./helpers");function d(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var r,n,i,o,a,s=Array(80),u=1732584193,c=-271733879,l=-1732584194,f=271733878,d=-1009589776,m=0;m<e.length;m+=16){for(var y=u,b=c,g=l,v=f,w=d,_=0;_<80;_++){s[_]=_<16?e[m+_]:p(s[_-3]^s[_-8]^s[_-14]^s[_-16],1);var S=h(h(p(u,5),(i=c,o=l,a=f,(n=_)<20?i&o|~i&a:!(n<40)&&n<60?i&o|i&a|o&a:i^o^a)),h(h(d,s[_]),(r=_)<20?1518500249:r<40?1859775393:r<60?-1894007588:-899497514)),d=f,f=l,l=p(c,30),c=u,u=S}u=h(u,y),c=h(c,b),l=h(l,g),f=h(f,v),d=h(d,w)}return[u,c,l,f,d]}function h(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function p(e,t){return e<<t|e>>>32-t}t.exports=function(e){return f.hash(e,d,20,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],9:[function(e,t,r){(function(r,n,i,o,a,s,u,c,l){function f(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function d(e,t){return e>>>t|e<<32-t}function h(e,t){var r,n,i,o,a,s,u,c,l,h,p=[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],m=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],y=Array(64);e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var b,g,v,w,_,S,E,x,k=0;k<e.length;k+=16){r=m[0],n=m[1],i=m[2],o=m[3],a=m[4],s=m[5],u=m[6],c=m[7];for(var A=0;A<64;A++)y[A]=A<16?e[A+k]:f(f(f(d(x=y[A-2],17)^d(x,19)^x>>>10,y[A-7]),d(E=y[A-15],7)^d(E,18)^E>>>3),y[A-16]),l=f(f(f(f(c,d(S=a,6)^d(S,11)^d(S,25)),(_=a)&s^~_&u),p[A]),y[A]),h=f(d(w=r,2)^d(w,13)^d(w,22),(b=r)&(g=n)^b&(v=i)^g&v),c=u,u=s,s=a,a=f(o,l),o=i,i=n,n=r,r=f(l,h);m[0]=f(r,m[0]),m[1]=f(n,m[1]),m[2]=f(i,m[2]),m[3]=f(o,m[3]),m[4]=f(a,m[4]),m[5]=f(s,m[5]),m[6]=f(u,m[6]),m[7]=f(c,m[7])}return m}var p=e("./helpers");t.exports=function(e){return p.hash(e,h,32,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],10:[function(e,t,r){(function(e,r,n,i,o,a,s,u,c){function l(){}(e=t.exports={}).nextTick=function(){var e="undefined"!=typeof window&&window.setImmediate,t="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(e)return function(e){return window.setImmediate(e)};if(t){var r=[];return window.addEventListener("message",function(e){var t=e.source;t!==window&&null!==t||"process-tick"!==e.data||(e.stopPropagation(),0<r.length&&r.shift()())},!0),function(e){r.push(e),window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}(),e.title="browser",e.browser=!0,e.env={},e.argv=[],e.on=l,e.addListener=l,e.once=l,e.off=l,e.removeListener=l,e.removeAllListeners=l,e.emit=l,e.binding=function(e){throw Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(e){throw Error("process.chdir is not supported")}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:10}],11:[function(e,t,r){(function(e,t,n,i,o,a,s,u,c){r.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,c=u>>1,l=-7,f=r?i-1:0,d=r?-1:1,h=e[t+f];for(f+=d,o=h&(1<<-l)-1,h>>=-l,l+=s;0<l;o=256*o+e[t+f],f+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;0<l;a=256*a+e[t+f],f+=d,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),o-=c}return(h?-1:1)*a*Math.pow(2,o-n)},r.write=function(e,t,r,n,i,o){var a,s,u,c=8*o-i-1,l=(1<<c)-1,f=l>>1,d=23===i?5960464477539062e-23:0,h=n?0:o-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),2<=(t+=1<=a+f?d/u:d*Math.pow(2,1-f))*u&&(a++,u/=2),l<=a+f?(s=0,a=l):1<=a+f?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));8<=i;e[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;0<c;e[r+h]=255&a,h+=p,a/=256,c-=8);e[r+h-p]|=128*m}}
97).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/ieee754/index.js","/node_modules/ieee754")},{buffer:3,lYpoI2:10}]},{},[1])(1)})},3567:function(e,t,r){let n;var i=r(1876).Buffer;let{strict:o}=r(7596),{createHash:a}=r(2474),{format:s}=r(9720),u=r(2477);if(i.isEncoding("base64url"))n=e=>e.toString("base64url");else{let e=e=>e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_");n=t=>e(t.toString("base64"))}function c(e,t){switch(e){case"HS256":case"RS256":case"PS256":case"ES256":case"ES256K":return a("sha256");case"HS384":case"RS384":case"PS384":case"ES384":return a("sha384");case"HS512":case"RS512":case"PS512":case"ES512":return a("sha512");case"EdDSA":switch(t){case"Ed25519":return a("sha512");case"Ed448":if(!u)throw TypeError("Ed448 *_hash calculation is not supported in your Node.js runtime version");return a("shake256",{outputLength:114});default:throw TypeError("unrecognized or invalid EdDSA curve provided")}default:throw TypeError("unrecognized or invalid JWS algorithm provided")}}function l(e,t,r){let i=c(t,r).update(e).digest();return n(i.slice(0,i.length/2))}function f(e,t,r,n,i){let a,u;if("string"!=typeof e.claim||!e.claim)throw TypeError("names.claim must be a non-empty string");if("string"!=typeof e.source||!e.source)throw TypeError("names.source must be a non-empty string");o("string"==typeof t&&t,`${e.claim} must be a non-empty string`),o("string"==typeof r&&r,`${e.source} must be a non-empty string`);try{a=l(r,n,i)}catch(t){u=s("%s could not be validated (%s)",e.claim,t.message)}u=u||s("%s mismatch, expected %s, got: %s",e.claim,a,t),o.equal(a,t,u)}e.exports={validate:f,generate:l}},2477:function(e,t,r){var n=r(3454);let i=r(2474),[o,a]=n.version.substr(1).split(".").map(e=>parseInt(e,10)),s=o>12||12===o&&a>=8,u=s&&i.getHashes().includes("shake256");e.exports=u},2251:function(e,t,r){var n=r(3454),i=r(1876).Buffer;let{inspect:o}=r(9720),a=r(2321),s=r(2474),{strict:u}=r(7596),c=r(7334),l=r(1987),f=r(2136),d=r(3567),h=r(2793),p=r(7749),m=r(2806),y=r(1892),b=r(8026),{assertSigningAlgValuesSupport:g,assertIssuerConfiguration:v}=r(8867),w=r(6038),_=r(1303),S=r(7787),E=r(1911),{OPError:x,RPError:k}=r(7486),A=r(6891),{random:M}=r(8767),O=r(3862),{CLOCK_TOLERANCE:j}=r(8741),{keystores:R}=r(4385),C=r(2485),P=r(1050),{authenticatedPost:T,resolveResponseType:I,resolveRedirectUri:N}=r(4944),{queryKeyStore:D}=r(7042),L=r(7649),[B,U]=n.version.slice(1).split(".").map(e=>parseInt(e,10)),$=B>=17||16===B&&U>=9,H=Symbol(),F=Symbol(),q=Symbol();function W(e){return w(e,"access_token","code","error_description","error_uri","error","expires_in","id_token","iss","response","session_state","state","token_type")}function z(e,t="Bearer"){return`${t} ${e}`}function K(e,t,r){if(void 0===e[r])throw new k({message:`missing required JWT property ${r}`,jwt:t})}function Z(e){let t={client_id:this.client_id,scope:"openid",response_type:I.call(this),redirect_uri:N.call(this),...e};return Object.entries(t).forEach(([e,r])=>{null==r?delete t[e]:"claims"===e&&"object"==typeof r?t[e]=JSON.stringify(r):"resource"===e&&Array.isArray(r)?t[e]=r:"string"!=typeof r&&(t[e]=String(r))}),t}function J(e){if(!_(e)||!Array.isArray(e.keys)||e.keys.some(e=>!_(e)||!("kty"in e)))throw TypeError("jwks must be a JSON Web Key Set formatted object");return C.fromJWKS(e,{onlyPrivate:!0})}function G(e,t){try{let r=e.issuer.token_endpoint_auth_methods_supported;!r.includes(t.token_endpoint_auth_method)&&r.includes("client_secret_post")&&(t.token_endpoint_auth_method="client_secret_post")}catch(e){}}function V(e,t,r){if(t.token_endpoint_auth_method||G(e,r),t.redirect_uri){if(t.redirect_uris)throw TypeError("provide a redirect_uri or redirect_uris, not both");r.redirect_uris=[t.redirect_uri],delete r.redirect_uri}if(t.response_type){if(t.response_types)throw TypeError("provide a response_type or response_types, not both");r.response_types=[t.response_type],delete r.response_type}}function Y(e,t,r){if(!t[`${e}_endpoint`])return;let n=r.token_endpoint_auth_method,i=r.token_endpoint_auth_signing_alg,o=`${e}_endpoint_auth_method`,a=`${e}_endpoint_auth_signing_alg`;void 0===r[o]&&void 0===r[a]&&(void 0!==n&&(r[o]=n),void 0!==i&&(r[a]=i))}class X{#e;#t;#r;#n;constructor(e,t,r={},n,i){if(this.#e=new Map,this.#t=e,this.#r=t,"string"!=typeof r.client_id||!r.client_id)throw TypeError("client_id is required");let o={grant_types:["authorization_code"],id_token_signed_response_alg:"RS256",authorization_signed_response_alg:"RS256",response_types:["code"],token_endpoint_auth_method:"client_secret_basic",...this.fapi()?{grant_types:["authorization_code","implicit"],id_token_signed_response_alg:"PS256",authorization_signed_response_alg:"PS256",response_types:["code id_token"],tls_client_certificate_bound_access_tokens:!0,token_endpoint_auth_method:void 0}:void 0,...r};if(this.fapi())switch(o.token_endpoint_auth_method){case"self_signed_tls_client_auth":case"tls_client_auth":break;case"private_key_jwt":if(!n)throw TypeError("jwks is required");break;case void 0:throw TypeError("token_endpoint_auth_method is required");default:throw TypeError("invalid or unsupported token_endpoint_auth_method")}if(V(this,r,o),g("token",this.issuer,o),["introspection","revocation"].forEach(e
97=>{Y(e,this.issuer,o),g(e,this.issuer,o)}),Object.entries(o).forEach(([e,t])=>{this.#e.set(e,t),this[e]||Object.defineProperty(this,e,{get(){return this.#e.get(e)},enumerable:!0})}),void 0!==n){let e=J.call(this,n);R.set(this,e)}null!=i&&i.additionalAuthorizedParties&&(this.#n=P(i.additionalAuthorizedParties)),this[j]=0}authorizationUrl(e={}){if(!_(e))throw TypeError("params must be a plain object");v(this.issuer,"authorization_endpoint");let t=l.parse(this.issuer.authorization_endpoint,!0);return t.search=null,t.query={...t.query,...Z.call(this,e)},l.format(t)}authorizationPost(e={}){if(!_(e))throw TypeError("params must be a plain object");let t=Z.call(this,e),r=Object.keys(t).map(e=>`<input type="hidden" name="${e}" value="${t[e]}"/>`).join("\n");return`<!DOCTYPE html> 98<head> 99<title>Requesting Authorization</title> 100</head> 101<body onload="javascript:document.forms[0].submit()"> 102<form method="post" action="${this.issuer.authorization_endpoint}"> 103 ${r} 104</form> 105</body> 106</html>`}endSessionUrl(e={}){let t;v(this.issuer,"end_session_endpoint");let{0:r,length:n}=this.post_logout_redirect_uris||[],{post_logout_redirect_uri:i=1===n?r:void 0}=e;if({id_token_hint:t,...e}=e,t instanceof E){if(!t.id_token)throw TypeError("id_token not present in TokenSet");t=t.id_token}let o=l.parse(this.issuer.end_session_endpoint,!0);return o.search=null,y(o.query,e,{post_logout_redirect_uri:i,client_id:this.client_id},{id_token_hint:t}),Object.entries(o.query).forEach(([e,t])=>{null==t&&delete o.query[e]}),l.format(o)}callbackParams(e){let t=e instanceof a.IncomingMessage||e&&e.method&&e.url,r="string"==typeof e;if(!r&&!t)throw TypeError("#callbackParams only accepts string urls, http.IncomingMessage or a lookalike");if(!t)return W(l.parse(e,!0).query);switch(e.method){case"GET":return W(l.parse(e.url,!0).query);case"POST":if(void 0===e.body)throw TypeError("incoming message body missing, include a body parser prior to this method call");switch(typeof e.body){case"object":case"string":if(i.isBuffer(e.body))return W(c.parse(e.body.toString("utf-8")));if("string"==typeof e.body)return W(c.parse(e.body));return W(e.body);default:throw TypeError("invalid IncomingMessage body object")}default:throw TypeError("invalid IncomingMessage method")}}async callback(e,t,r={},{exchangeBody:n,clientAssertionPayload:i,DPoP:o}={}){let a=W(t);if(!r.jarm||"response"in t){if("response"in t){let e=await this.decryptJARM(a.response);a=await this.validateJARM(e)}}else throw new k({message:"expected a JARM response",checks:r,params:a});if(this.default_max_age&&!r.max_age&&(r.max_age=this.default_max_age),a.state&&!r.state)throw TypeError("checks.state argument is missing");if(!a.state&&r.state)throw new k({message:"state missing from the response",checks:r,params:a});if(r.state!==a.state)throw new k({printf:["state mismatch, expected %s, got: %s",r.state,a.state],checks:r,params:a});if("iss"in a){if(v(this.issuer,"issuer"),a.iss!==this.issuer.issuer)throw new k({printf:["iss mismatch, expected %s, got: %s",this.issuer.issuer,a.iss],params:a})}else if(this.issuer.authorization_response_iss_parameter_supported&&!("id_token"in a)&&!("response"in t))throw new k({message:"iss missing from the response",params:a});if(a.error)throw new x(a);let s={code:["code"],id_token:["id_token"],token:["access_token","token_type"]};if(r.response_type){for(let e of r.response_type.split(" "))if("none"===e){if(a.code||a.id_token||a.access_token)throw new k({message:'unexpected params encountered for "none" response',checks:r,params:a})}else for(let t of s[e])if(!a[t])throw new k({message:`${t} missing from response`,checks:r,params:a})}if(a.id_token){let e=new E(a);if(await this.decryptIdToken(e),await this.validateIdToken(e,r.nonce,"authorization",r.max_age,r.state),!a.code)return e}if(a.code){let t=await this.grant({...n,grant_type:"authorization_code",code:a.code,redirect_uri:e,code_verifier:r.code_verifier},{clientAssertionPayload:i,DPoP:o});return await this.decryptIdToken(t),await this.validateIdToken(t,r.nonce,"token",r.max_age),a.session_state&&(t.session_state=a.session_state),t}return new E(a)}async oauthCallback(e,t,r={},{exchangeBody:n,clientAssertionPayload:i,DPoP:o}={}){let a=W(t);if(!r.jarm||"response"in t){if("response"in t){let e=await this.decryptJARM(a.response);a=await this.validateJARM(e)}}else throw new k({message:"expected a JARM response",checks:r,params:a});if(a.state&&!r.state)throw TypeError("checks.state argument is missing");if(!a.state&&r.state)throw new k({message:"state missing from the response",checks:r,params:a});if(r.state!==a.state)throw new k({printf:["state mismatch, expected %s, got: %s",r.state,a.state],checks:r,params:a});if("iss"in a){if(v(this.issuer,"issuer"),a.iss!==this.issuer.issuer)throw new k({printf:["iss mismatch, expected %s, got: %s",this.issuer.issuer,a.iss],params:a})}else if(this.issuer.authorization_response_iss_parameter_supported&&!("id_token"in a)&&!("response"in t))throw new k({message:"iss missing from the response",params:a});if(a.error)throw new x(a);if("string"==typeof a.id_token&&a.id_token.length)throw new k({message:"id_token detected in the response, you must use client.callback() instead of client.oauthCallback()",params:a});delete a.id_token;let s={code:["code"],token:["access_token","token_type"]};if(r.response_type)for(let e of r.response_type.split(" ")){if("none"===e&&(a.code||a.id_token||a.access_token))throw new k({message:'unexpected params encountered for "none" response',checks:r,params:a});if(s[e]){for(let t of s[e])if(!a[t])throw new k({message:`${t} missing from response`,checks:r,params:a})}}
106if(a.code){let t=await this.grant({...n,grant_type:"authorization_code",code:a.code,redirect_uri:e,code_verifier:r.code_verifier},{clientAssertionPayload:i,DPoP:o});if("string"==typeof t.id_token&&t.id_token.length)throw new k({message:"id_token detected in the response, you must use client.callback() instead of client.oauthCallback()",params:a});return delete t.id_token,t}return new E(a)}async decryptIdToken(e){if(!this.id_token_encrypted_response_alg)return e;let t=e;if(t instanceof E){if(!t.id_token)throw TypeError("id_token not present in TokenSet");t=t.id_token}let r=this.id_token_encrypted_response_alg,n=this.id_token_encrypted_response_enc,i=await this.decryptJWE(t,r,n);return e instanceof E?(e.id_token=i,e):i}async validateJWTUserinfo(e){let t=this.userinfo_signed_response_alg;return this.validateJWT(e,t,[])}async decryptJARM(e){if(!this.authorization_encrypted_response_alg)return e;let t=this.authorization_encrypted_response_alg,r=this.authorization_encrypted_response_enc;return this.decryptJWE(e,t,r)}async decryptJWTUserinfo(e){if(!this.userinfo_encrypted_response_alg)return e;let t=this.userinfo_encrypted_response_alg,r=this.userinfo_encrypted_response_enc;return this.decryptJWE(e,t,r)}async decryptJWE(e,t,r="A128CBC-HS256"){let n;let i=JSON.parse(m.decode(e.split(".")[0]));if(i.alg!==t)throw new k({printf:["unexpected JWE alg received, expected %s, got: %s",t,i.alg],jwt:e});if(i.enc!==r)throw new k({printf:["unexpected JWE enc received, expected %s, got: %s",r,i.enc],jwt:e});let o=e=>new TextDecoder().decode(e.plaintext);if(t.match(/^(?:RSA|ECDH)/)){let t=await R.get(this);for(let{keyObject:r}of t.all({...f.decodeProtectedHeader(e),use:"enc"}))if(n=await f.compactDecrypt(e,r).then(o,()=>{}))break}else n=await f.compactDecrypt(e,this.secretForAlg("dir"===t?r:t)).then(o,()=>{});if(!n)throw new k({message:"failed to decrypt JWE",jwt:e});return n}async validateIdToken(e,t,r,n,i){let o=e,a=this.id_token_signed_response_alg,s=o instanceof E;if(s){if(!o.id_token)throw TypeError("id_token not present in TokenSet");o=o.id_token}o=String(o);let u=A(),{protected:c,payload:l,key:f}=await this.validateJWT(o,a);if("number"==typeof n||n!==q&&this.require_auth_time){if(!l.auth_time)throw new k({message:"missing required JWT property auth_time",jwt:o});if("number"!=typeof l.auth_time)throw new k({message:"JWT auth_time claim must be a JSON numeric value",jwt:o})}if("number"==typeof n&&l.auth_time+n<u-this[j])throw new k({printf:["too much time has elapsed since the last End-User authentication, max_age %i, auth_time: %i, now %i",n,l.auth_time,u-this[j]],now:u,tolerance:this[j],auth_time:l.auth_time,jwt:o});if(t!==F&&(l.nonce||void 0!==t)&&l.nonce!==t)throw new k({printf:["nonce mismatch, expected %s, got: %s",t,l.nonce],jwt:o});if("authorization"===r){if(!l.at_hash&&e.access_token)throw new k({message:"missing required property at_hash",jwt:o});if(!l.c_hash&&e.code)throw new k({message:"missing required property c_hash",jwt:o});if(this.fapi()&&!l.s_hash&&(e.state||i))throw new k({message:"missing required property s_hash",jwt:o});if(l.s_hash){if(!i)throw TypeError('cannot verify s_hash, "checks.state" property not provided');try{d.validate({claim:"s_hash",source:"state"},l.s_hash,i,c.alg,f.jwk&&f.jwk.crv)}catch(e){throw new k({message:e.message,jwt:o})}}}if(this.fapi()&&l.iat<u-3600)throw new k({printf:["JWT issued too far in the past, now %i, iat %i",u,l.iat],now:u,tolerance:this[j],iat:l.iat,jwt:o});if(e.access_token&&void 0!==l.at_hash)try{d.validate({claim:"at_hash",source:"access_token"},l.at_hash,e.access_token,c.alg,f.jwk&&f.jwk.crv)}catch(e){throw new k({message:e.message,jwt:o})}if(e.code&&void 0!==l.c_hash)try{d.validate({claim:"c_hash",source:"code"},l.c_hash,e.code,c.alg,f.jwk&&f.jwk.crv)}catch(e){throw new k({message:e.message,jwt:o})}return e}async validateJWT(e,t,r=["iss","sub","aud","exp","iat"]){let n,i,o;let a="https://self-issued.me"===this.issuer.issuer,s=A();try{({header:n,payload:i}=p(e,{complete:!0}))}catch(t){throw new k({printf:["failed to decode JWT (%s: %s)",t.name,t.message],jwt:e})}if(n.alg!==t)throw new k({printf:["unexpected JWT alg received, expected %s, got: %s",t,n.alg],jwt:e});if(a&&(r=[...r,"sub_jwk"]),r.forEach(K.bind(void 0,i,e)),void 0!==i.iss){let t=this.issuer.issuer;if(this.#r&&(t=this.issuer.issuer.replace("{tenantid}",i.tid)),i.iss!==t)throw new k({printf:["unexpected iss value, expected %s, got: %s",t,i.iss],jwt:e})}if(void 0!==i.iat&&"number"!=typeof i.iat)throw new k({message:"JWT iat claim must be a JSON numeric value",jwt:e});if(void 0!==i.nbf){if("number"!=typeof i.nbf)throw new k({message:"JWT nbf claim must be a JSON numeric value",jwt:e});if(i.nbf>s+this[j])throw new k({printf:["JWT not active yet, now %i, nbf %i",s+this[j],i.nbf],now:s,tolerance:this[j],nbf:i.nbf,jwt:e})}if(void 0!==i.exp){if("number"!=typeof i.exp)throw new k({message:"JWT exp claim must be a JSON numeric value",jwt:e});if(s-this[j]>
106=i.exp)throw new k({printf:["JWT expired, now %i, exp %i",s-this[j],i.exp],now:s,tolerance:this[j],exp:i.exp,jwt:e})}if(void 0!==i.aud){if(Array.isArray(i.aud)){if(i.aud.length>1&&!i.azp)throw new k({message:"missing required JWT property azp",jwt:e});if(!i.aud.includes(this.client_id))throw new k({printf:["aud is missing the client_id, expected %s to be included in %j",this.client_id,i.aud],jwt:e})}else if(i.aud!==this.client_id)throw new k({printf:["aud mismatch, expected %s, got: %s",this.client_id,i.aud],jwt:e})}if(void 0!==i.azp){let t=this.#n;if(!(t="string"==typeof t?[this.client_id,t]:Array.isArray(t)?[this.client_id,...t]:[this.client_id]).includes(i.azp))throw new k({printf:["azp mismatch, got: %s",i.azp],jwt:e})}if(a){try{u(_(i.sub_jwk));let e=await f.importJWK(i.sub_jwk,n.alg);u.equal(e.type,"public"),o=[{keyObject:e}]}catch(t){throw new k({message:"failed to use sub_jwk claim as an asymmetric JSON Web Key",jwt:e})}if(await f.calculateJwkThumbprint(i.sub_jwk)!==i.sub)throw new k({message:"failed to match the subject with sub_jwk",jwt:e})}else n.alg.startsWith("HS")?o=[this.secretForAlg(n.alg)]:"none"!==n.alg&&(o=await D.call(this.issuer,{...n,use:"sig"}));if(!o&&"none"===n.alg)return{protected:n,payload:i};for(let t of o){let r=await f.compactVerify(e,t instanceof Uint8Array?t:t.keyObject).catch(()=>{});if(r)return{payload:i,protected:r.protectedHeader,key:t}}throw new k({message:"failed to validate JWT signature",jwt:e})}async refresh(e,{exchangeBody:t,clientAssertionPayload:r,DPoP:n}={}){let i=e;if(i instanceof E){if(!i.refresh_token)throw TypeError("refresh_token not present in TokenSet");i=i.refresh_token}let o=await this.grant({...t,grant_type:"refresh_token",refresh_token:String(i)},{clientAssertionPayload:r,DPoP:n});if(o.id_token&&(await this.decryptIdToken(o),await this.validateIdToken(o,F,"token",q),e instanceof E&&e.id_token)){let t=e.claims().sub,r=o.claims().sub;if(r!==t)throw new k({printf:["sub mismatch, expected %s, got: %s",t,r],jwt:o.id_token})}return o}async requestResource(e,t,{method:r,headers:n,body:i,DPoP:o,tokenType:a=o?"DPoP":t instanceof E?t.token_type:"Bearer"}={},s){if(t instanceof E){if(!t.access_token)throw TypeError("access_token not present in TokenSet");t=t.access_token}if(t){if("string"!=typeof t)throw TypeError("invalid access token provided")}else throw TypeError("no access token provided");let u={headers:{Authorization:z(t,a),...n},body:i},c=!!this.tls_client_certificate_bound_access_tokens,l=await O.call(this,{...u,responseType:"buffer",method:r,url:e},{accessToken:t,mTLS:c,DPoP:o}),f=l.headers["www-authenticate"];return s!==H&&f&&f.toLowerCase().startsWith("dpop ")&&"use_dpop_nonce"===b(f).error?this.requestResource(e,t,{method:r,headers:n,body:i,DPoP:o,tokenType:a}):l}async userinfo(e,{method:t="GET",via:r="header",tokenType:n,params:i,DPoP:o}={}){let a;v(this.issuer,"userinfo_endpoint");let s={tokenType:n,method:String(t).toUpperCase(),DPoP:o};if("GET"!==s.method&&"POST"!==s.method)throw TypeError("#userinfo() method can only be POST or a GET");if("body"===r&&"POST"!==s.method)throw TypeError("can only send body on POST");let c=!!(this.userinfo_signed_response_alg||this.userinfo_encrypted_response_alg);c?s.headers={Accept:"application/jwt"}:s.headers={Accept:"application/json"};let f=!!this.tls_client_certificate_bound_access_tokens;f&&this.issuer.mtls_endpoint_aliases&&(a=this.issuer.mtls_endpoint_aliases.userinfo_endpoint),a=new l.URL(a||this.issuer.userinfo_endpoint),"body"===r&&(s.headers.Authorization=void 0,s.headers["Content-Type"]="application/x-www-form-urlencoded",s.body=new l.URLSearchParams,s.body.append("access_token",e instanceof E?e.access_token:e)),i&&("GET"===s.method?Object.entries(i).forEach(([e,t])=>{a.searchParams.append(e,t)}):s.body?Object.entries(i).forEach(([e,t])=>{s.body.append(e,t)}):(s.body=new l.URLSearchParams,s.headers["Content-Type"]="application/x-www-form-urlencoded",Object.entries(i).forEach(([e,t])=>{s.body.append(e,t)}))),s.body&&(s.body=s.body.toString());let d=await this.requestResource(a,e,s),h=S(d,{bearer:!0});if(c){if(!/^application\/jwt/.test(d.headers["content-type"]))throw new k({message:"expected application/jwt response from the userinfo_endpoint",response:d});let e=d.body.toString(),t=await this.decryptJWTUserinfo(e);if(this.userinfo_signed_response_alg)({payload:h}=await this.validateJWTUserinfo(t));else try{h=JSON.parse(t),u(_(h))}catch(e){throw new k({message:"failed to parse userinfo JWE payload as JSON",jwt:t})}}else try{h=JSON.parse(d.body)}catch(e){throw Object.defineProperty(e,"response",{value:d}),e}if(e instanceof E&&e.id_token){let t=e.claims().sub;if(h.sub!==t)throw new k({printf:["userinfo sub mismatch, expected %s, got: %s",t,h.sub],body:h,jwt:e.id_token})}return h}encryptionSecret(e){let t=e<=256?"sha256":e<=384?"sha384":e<=512&&"sha512";if(!t)throw Error("unsupported symmetric encryption key derivation");return s.createHash(t).update(this.client_secret).digest().slice(0,e/8)}secretForAlg(e){if(!this.client_secret)throw TypeError("client_secret is required");return/^A(\d{3})(?:GCM)?KW$/.test(e)?this.encryptionSecret(parseInt(RegExp.$1,10)):/^A(\d{3})(?:GCM|CBC-HS(\d{3}))$/.test(e)?this.encryptionSecret(parseInt(RegExp.$2||RegExp.$1,10)):new TextEncoder().encode(this.client_secret)}async grant(e,{clientAssertionPayload:t,DPoP:r}={},n){let i;v(this.issuer,"token_endpoint");let o=await T.call(this,"token",{form:e,responseType:"json"},{clientAssertionPayload:t,DPoP:r});try{i=S(o)}catch(i){if(n!==H&&i instanceof x&&"use_dpop_nonce"===i.error)return this.grant(e,{clientAssertionPayload:t,DPoP:r},H);throw i}return new E(i)}async deviceAuthorization(e={},{exchangeBody:t,clientAssertionPayload:r,DPoP:n}={}){v(this.issuer,"device_authorization_endpoint"),v(this.issuer,"token_endpoint");let i=Z.call(this,{client_id:this.client_id,redirect_uri:null,response_type:null,...e}),o=await T.call(this,"device_authorization",{responseType:"json",form:i},{clientAssertionPayload:r,endpointAuthMethod:"token"}),a=S(o);return new L({client:this,exchangeBody:t,clientAssertionPayload:r,response:a,maxAge:e.max_age,DPoP:n})}async revoke(e,t,{revokeBody:r,clientAssertionPayload:n}={}){if(v(this.issuer,"revocation_endpoint"),void 0!==t&&"string"!=typeof t)throw TypeError("hint must be a string");let i={...r,token:e};t&&(i.token_type_hint=t);let o=await T.call(this,"revocation",{form:i},{clientAssertionPayload:n});S(o,{body:!1})}async introspect(e,t,{introspectBody:r,clientAssertionPayload:n}={}){if(v(this.issuer,"introspection_endpoint"),void 0!==t&&"string"!=typeof t)throw TypeError("hint must be a string");let i={...r,token:e};t&&(i.token_type_hint=t);let o=await T.call(this,"introspection",{form:i,responseType:"json"},{clientAssertionPayload:n}),a=S(o);return a}static async register(e,t={}){let{initialAccessToken:r,jwks:n,...i}=t;if(v(this.issuer,"registration_endpoint"),void 0!==n&&!(e.jwks||e.jwks_uri)){let t=await J.call(this,n);e.jwks=t.toJWKS()}let o=await O.call(this,{headers:{Accept:"application/json",...r?{Authorization:z(r)}:void 0},responseType:"json",json:e,url:this.issuer.registration_endpoint,method:"POST"}),a=S(o,{statusCode:201,bearer:!0});return new this(a,n,i)}get metadata(){return P(Object.fromEntries(this.#e.entries()))}static async fromUri(e,t,r,n){let i=await O.call(this,{method:"GET",url:e,responseType:"json",headers:{Authorization:z(t),Accept:"application/json"}}),o=S(i,{bearer:!0});
106return new this(o,r,n)}async requestObject(e={},{sign:t=this.request_object_signing_alg||"none",encrypt:{alg:r=this.request_object_encryption_alg,enc:n=this.request_object_encryption_enc||"A128CBC-HS256"}={}}={}){let i,o;if(!_(e))throw TypeError("requestObject must be a plain object");let a=A(),s={alg:t,typ:"oauth-authz-req+jwt"},u=JSON.stringify(y({},e,{iss:this.client_id,aud:this.issuer.issuer,client_id:this.client_id,jti:M(),iat:a,exp:a+300,...this.fapi()?{nbf:a}:void 0}));if("none"===t)i=[m.encode(JSON.stringify(s)),m.encode(u),""].join(".");else{let e=t.startsWith("HS");if(e)o=this.secretForAlg(t);else{let e=await R.get(this);if(!e)throw TypeError(`no keystore present for client, cannot sign using alg ${t}`);if(!(o=e.get({alg:t,use:"sig"})))throw TypeError(`no key to sign with found for alg ${t}`)}i=await new f.CompactSign(new TextEncoder().encode(u)).setProtectedHeader({...s,kid:e?void 0:o.jwk.kid}).sign(e?o:o.keyObject)}if(!r)return i;let c={alg:r,enc:n,cty:"oauth-authz-req+jwt"};return c.alg.match(/^(RSA|ECDH)/)?[o]=await D.call(this.issuer,{alg:c.alg,use:"enc"},{allowMulti:!0}):o=this.secretForAlg("dir"===c.alg?c.enc:c.alg),new f.CompactEncrypt(new TextEncoder().encode(i)).setProtectedHeader({...c,kid:o instanceof Uint8Array?void 0:o.jwk.kid}).encrypt(o instanceof Uint8Array?o:o.keyObject)}async pushedAuthorizationRequest(e={},{clientAssertionPayload:t}={}){v(this.issuer,"pushed_authorization_request_endpoint");let r={..."request"in e?e:Z.call(this,e),client_id:this.client_id},n=await T.call(this,"pushed_authorization_request",{responseType:"json",form:r},{clientAssertionPayload:t,endpointAuthMethod:"token"}),i=S(n,{statusCode:201});if(!("expires_in"in i))throw new k({message:"expected expires_in in Pushed Authorization Successful Response",response:n});if("number"!=typeof i.expires_in)throw new k({message:"invalid expires_in value in Pushed Authorization Successful Response",response:n});if(!("request_uri"in i))throw new k({message:"expected request_uri in Pushed Authorization Successful Response",response:n});if("string"!=typeof i.request_uri)throw new k({message:"invalid request_uri value in Pushed Authorization Successful Response",response:n});return i}get issuer(){return this.#t}[o.custom](){return`${this.constructor.name} ${o(this.metadata,{depth:1/0,colors:n.stdout.isTTY,compact:!1,sorted:!0})}`}fapi(){return"FAPI1Client"===this.constructor.name}async validateJARM(e){let t=this.authorization_signed_response_alg,{payload:r}=await this.validateJWT(e,t,["iss","exp","aud"]);return W(r)}}let Q=/^(?:RS|PS)(?:256|384|512)$/;function ee(e,t,r){if("object"==typeof t&&"object"==typeof t.key&&t.key.alg)return t.key.alg;if(Array.isArray(r)){let t=r.filter(RegExp.prototype.test.bind(Q));return"rsa-pss"===e.asymmetricKeyType&&(t=t.filter(e=>e.startsWith("PS"))),["PS256","PS384","PS512","RS256","RS384","RS384"].find(e=>t.includes(e))}return"PS256"}let et=i.from([42,134,72,206,61,3,1,7]),er=i.from([43,129,4,0,34]),en=i.from([43,129,4,0,35]),ei=i.from([43,129,4,0,10]);function eo(e,t){switch("object"==typeof t&&"object"==typeof t.key&&t.key.crv){case"P-256":return"ES256";case"secp256k1":return"ES256K";case"P-384":return"ES384";case"P-512":return"ES512"}let r=e.export({format:"der",type:"pkcs8"}),n=r[1]<128?17:18,i=r[n],o=r.slice(n+1,n+1+i);if(o.equals(et))return"ES256";if(o.equals(er))return"ES384";if(o.equals(en))return"ES512";if(o.equals(ei))return"ES256K";throw TypeError("unsupported DPoP private key curve")}let ea=new WeakMap;async function es(e,t){if("object"==typeof t&&"object"==typeof t.key&&t.key.crv)return w(t.key,"kty","crv","x","y","e","n");if(ea.has(t))return ea.get(t);let r=w(await f.exportJWK(e),"kty","crv","x","y","e","n");return h(t)&&ea.set(t,r),r}async function eu(e,t,r){let n,i;if(!_(e))throw TypeError("payload must be a plain object");if("private"!==(n=h(t)?t:s.createPrivateKey(t)).type)throw TypeError('"DPoP" option must be a private key');switch(n.asymmetricKeyType){case"ed25519":case"ed448":i="EdDSA";break;case"ec":i=eo(n,t);break;case"rsa":case $&&"rsa-pss":i=ee(n,t,this.issuer.dpop_signing_alg_values_supported);break;default:throw TypeError("unsupported DPoP private key asymmetric key type")}if(!i)throw TypeError("could not determine DPoP JWS Algorithm");return new f.SignJWT({ath:r?m.encode(s.createHash("sha256").update(r).digest()):void 0,...e}
106).setProtectedHeader({alg:i,typ:"dpop+jwt",jwk:await es(n,t)}).setIssuedAt().setJti(M()).sign(n)}Object.defineProperty(X.prototype,"dpopProof",{enumerable:!0,configurable:!0,value(...e){return n.emitWarning("The DPoP APIs implements an IETF draft (https://www.ietf.org/archive/id/draft-ietf-oauth-dpop-04.html). Breaking draft implementations are included as minor versions of the openid-client library, therefore, the ~ semver operator should be used and close attention be payed to library changelog as well as the drafts themselves.","DraftWarning"),Object.defineProperty(X.prototype,"dpopProof",{enumerable:!0,configurable:!0,value:eu}),this.dpopProof(...e)}}),e.exports=(e,t=!1)=>class extends X{constructor(...r){super(e,t,...r)}static get issuer(){return e}},e.exports.BaseClient=X},7649:function(e,t,r){var n=r(3454);let{inspect:i}=r(9720),{RPError:o,OPError:a}=r(7486),s=r(6891);class u{#i;#o;#a;#s;#u;#c;#l;#f;#d;constructor({client:e,exchangeBody:t,clientAssertionPayload:r,response:n,maxAge:i,DPoP:a}){if(["verification_uri","user_code","device_code"].forEach(e=>{if("string"!=typeof n[e]||!n[e])throw new o(`expected ${e} string to be returned by Device Authorization Response, got %j`,n[e])}),!Number.isSafeInteger(n.expires_in))throw new o("expected expires_in number to be returned by Device Authorization Response, got %j",n.expires_in);this.#c=s()+n.expires_in,this.#o=e,this.#s=a,this.#f=i,this.#u=t,this.#a=r,this.#d=n,this.#l=1e3*n.interval||5e3}abort(){this.#i=!0}async poll({signal:e}={}){let t;if(e&&e.aborted||this.#i)throw new o("polling aborted");if(this.expired())throw new o("the device code %j has expired and the device authorization session has concluded",this.device_code);await new Promise(e=>setTimeout(e,this.#l));try{t=await this.#o.grant({...this.#u,grant_type:"urn:ietf:params:oauth:grant-type:device_code",device_code:this.device_code},{clientAssertionPayload:this.#a,DPoP:this.#s})}catch(t){switch(t instanceof a&&t.error){case"slow_down":this.#l+=5e3;case"authorization_pending":return this.poll({signal:e});default:throw t}}return"id_token"in t&&(await this.#o.decryptIdToken(t),await this.#o.validateIdToken(t,void 0,"token",this.#f)),t}get device_code(){return this.#d.device_code}get user_code(){return this.#d.user_code}get verification_uri(){return this.#d.verification_uri}get verification_uri_complete(){return this.#d.verification_uri_complete}get expires_in(){return Math.max.apply(null,[this.#c-s(),0])}expired(){return 0===this.expires_in}[i.custom](){return`${this.constructor.name} ${i(this.#d,{depth:1/0,colors:n.stdout.isTTY,compact:!1,sorted:!0})}`}}e.exports=u},7486:function(e,t,r){let{format:n}=r(9720);class i extends Error{constructor({error_description:e,error:t,error_uri:r,session_state:n,state:i,scope:o},a){super(e?`${t} (${e})`:t),Object.assign(this,{error:t},e&&{error_description:e},r&&{error_uri:r},i&&{state:i},o&&{scope:o},n&&{session_state:n}),a&&Object.defineProperty(this,"response",{value:a}),this.name=this.constructor.name,Error.captureStackTrace(this,this.constructor)}}class o extends Error{constructor(...e){if("string"==typeof e[0])super(n(...e));else{let{message:t,printf:r,response:i,...o}=e[0];r?super(n(...r)):super(t),Object.assign(this,o),i&&Object.defineProperty(this,"response",{value:i})}this.name=this.constructor.name,Error.captureStackTrace(this,this.constructor)}}e.exports={OPError:i,RPError:o}},8867:function(e){function t(e,t,r){if(!t[`${e}_endpoint`])return;let n=`${e}_endpoint_auth_method`,i=`${e}_endpoint_auth_signing_alg`,o=`${e}_endpoint_auth_signing_alg_values_supported`;if(r[n]&&r[n].endsWith("_jwt")&&!r[i]&&!t[o])throw TypeError(`${o} must be configured on the issuer if ${i} is not defined on a client`)}function r(e,t){if(!e[t])throw TypeError(`${t} must be configured on the issuer`)}e.exports={assertSigningAlgValuesSupport:t,assertIssuerConfiguration:r}},2806:function(e,t,r){let n;var i=r(1876).Buffer;if(i.isEncoding("base64url"))n=(e,t="utf8")=>i.from(e,t).toString("base64url");else{let e=e=>e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_");n=(t,r="utf8")=>e(i.from(t,r).toString("base64"))}let o=e=>i.from(e,"base64");e.exports.decode=o,e.exports.encode=n},4944:function(e,t,r){var n=r(1876).Buffer;let i=r(2136),{RPError:o}=r(7486),{assertIssuerConfiguration:a}=r(8867),{random:s}=r(8767),u=r(6891),c=r(3862),{keystores:l}=r(4385),f=r(5047),d=e=>encodeURIComponent(e).replace(/%20/g,"+");async function h(e,t){let r=this[`${e}_endpoint_auth_signing_alg`];
106if(r||a(this.issuer,`${e}_endpoint_auth_signing_alg_values_supported`),"client_secret_jwt"===this[`${e}_endpoint_auth_method`]){if(!r){let t=this.issuer[`${e}_endpoint_auth_signing_alg_values_supported`];r=Array.isArray(t)&&t.find(e=>/^HS(?:256|384|512)/.test(e))}if(!r)throw new o(`failed to determine a JWS Algorithm to use for ${this[`${e}_endpoint_auth_method`]} Client Assertion`);return new i.CompactSign(n.from(JSON.stringify(t))).setProtectedHeader({alg:r}).sign(this.secretForAlg(r))}let s=await l.get(this);if(!s)throw TypeError("no client jwks provided for signing a client assertion with");if(!r){let t=this.issuer[`${e}_endpoint_auth_signing_alg_values_supported`];r=Array.isArray(t)&&t.find(e=>s.get({alg:e,use:"sig"}))}if(!r)throw new o(`failed to determine a JWS Algorithm to use for ${this[`${e}_endpoint_auth_method`]} Client Assertion`);let u=s.get({alg:r,use:"sig"});if(!u)throw new o(`no key found in client jwks to sign a client assertion with using alg ${r}`);return new i.CompactSign(n.from(JSON.stringify(t))).setProtectedHeader({alg:r,kid:u.jwk&&u.jwk.kid}).sign(u.keyObject)}async function p(e,{clientAssertionPayload:t}={}){let r=this[`${e}_endpoint_auth_method`];switch(r){case"self_signed_tls_client_auth":case"tls_client_auth":case"none":return{form:{client_id:this.client_id}};case"client_secret_post":if(!this.client_secret)throw TypeError("client_secret_post client authentication method requires a client_secret");return{form:{client_id:this.client_id,client_secret:this.client_secret}};case"private_key_jwt":case"client_secret_jwt":{let r=u(),n=[...new Set([this.issuer.issuer,this.issuer.token_endpoint].filter(Boolean))],i=await h.call(this,e,{iat:r,exp:r+60,jti:s(),iss:this.client_id,sub:this.client_id,aud:n,...t});return{form:{client_id:this.client_id,client_assertion:i,client_assertion_type:"urn:ietf:params:oauth:client-assertion-type:jwt-bearer"}}}case"client_secret_basic":{if(!this.client_secret)throw TypeError("client_secret_basic client authentication method requires a client_secret");let e=`${d(this.client_id)}:${d(this.client_secret)}`,t=n.from(e).toString("base64");return{headers:{Authorization:`Basic ${t}`}}}default:throw TypeError(`missing, or unsupported, ${e}_endpoint_auth_method`)}}function m(){let{length:e,0:t}=this.response_types;if(1===e)return t}function y(){let{length:e,0:t}=this.redirect_uris||[];if(1===e)return t}async function b(e,t,{clientAssertionPayload:r,endpointAuthMethod:n=e,DPoP:i}={}){let o;let a=await p.call(this,n,{clientAssertionPayload:r}),s=f(t,a),u=this[`${n}_endpoint_auth_method`].includes("tls_client_auth")||"token"===e&&this.tls_client_certificate_bound_access_tokens;if(u&&this.issuer.mtls_endpoint_aliases&&(o=this.issuer.mtls_endpoint_aliases[`${e}_endpoint`]),o=o||this.issuer[`${e}_endpoint`],"form"in s)for(let[e,t]of Object.entries(s.form))void 0===t&&delete s.form[e];return c.call(this,{...s,method:"POST",url:o,headers:{..."revocation"!==e?{Accept:"application/json"}:void 0,...s.headers}},{mTLS:u,DPoP:i})}e.exports={resolveResponseType:m,resolveRedirectUri:y,authFor:p,authenticatedPost:b}},8741:function(e){let t=Symbol(),r=Symbol();e.exports={CLOCK_TOLERANCE:r,HTTP_OPTIONS:t}},7749:function(e,t,r){let n=r(2806);e.exports=e=>{if("string"!=typeof e||!e)throw TypeError("JWT must be a string");let{0:t,1:r,2:i,length:o}=e.split(".");if(5===o)throw TypeError("encrypted JWTs cannot be decoded");if(3!==o)throw Error("JWTs must have three components");try{return{header:JSON.parse(n.decode(t)),payload:JSON.parse(n.decode(r)),signature:i}}catch(e){throw Error("JWT is malformed")}}},1050:function(e){e.exports=globalThis.structuredClone||(e=>JSON.parse(JSON.stringify(e)))},1892:function(e,t,r){let n=r(1303);function i(e,t,...r){for(let o of r)if(n(o))for(let[r,a]of Object.entries(o))"__proto__"!==r&&"constructor"!==r&&(void 0===t[r]&&void 0!==a&&(t[r]=a),e&&n(t[r])&&n(a)&&i(!0,t[r],a));return t}e.exports=i.bind(void 0,!1),e.exports.deep=i.bind(void 0,!0)},8767:function(e,t,r){let{createHash:n,randomBytes:i}=r(2474),o=r(2806),a=(e=32)=>o.encode(i(e));e.exports={random:a,state:a,nonce:a,codeVerifier:a,codeChallenge:e=>o.encode(n("sha256").update(e).digest())}},2793:function(e,t,r){let n=r(9720),i=r(2474);e.exports=n.types.isKeyObject||(e=>e&&e instanceof i.KeyObject)},1303:function(e){e.exports=e=>!!e&&e.constructor===Object},7042:function(e,t,r){let n=r(705),i=r(9593),{RPError:o}=r(7486),{assertIssuerConfiguration:a}=r(8867),s=r(2485),{keystores:u}=r(4385),c=r(7787),l=r(3862),f=new WeakMap,d=new WeakMap,h=e=>(d.has(e)||d.set(e,new i({max:100})),d.get(e));async function p(e=!1){a(this,"jwks_uri");let t=u.get(this),r=h(this);return e||!t?(f.has(this)||(r.reset(),f.set(this,(async()=>{let e=await l.call(this,{method:"GET",responseType:"json",url:this.jwks_uri,headers:{Accept:"application/json, application/jwk-set+json"}}).finally(()=>{f.delete(this)}),t=c(e),n=s.fromJWKS(t,{onlyPublic:!0});return r.set("throttle",!0,6e4),u.set(this,n),n})())),f.get(this)):t}async function m({kid:e,kty:t,alg:r,use:i},{allowMulti:a=!1}={}){let s=h(this),u={kid:e,kty:t,alg:r,use:i},c=n(u,{algorithm:"sha256",ignoreUnknown:!0,unorderedArrays:!0,unorderedSets:!0}),l=s.get(c)||s.get("throttle"),f=await p.call(this,!l),d=f.all(u);if(delete u.use,0===d.length)throw new o({printf:["no valid key found in issuer's jwks_uri for key parameters %j",u],jwks:f});if(!a&&d.length>1&&!e)throw new o({printf:["multiple matching keys found in issuer's jwks_uri for key parameters %j, kid must be provided in this case",u],jwks:f});return s.set(c,!0),d}e.exports.queryKeyStore=m,e.exports.keystore=p},2485:function(e,t,r){let n=r(2136),i=r(1050),o=r(1303),a=r(2793),s=Symbol();function u(e){switch(e){case"RSA":return"RSA-OAEP";case"EC":case"OKP":return"ECDH-ES";case"oct":return"HS256";default:return}}let c=(e,{alg:t,use:r})=>{let n=0;return t&&e.alg&&n++,r&&e.use&&n++,n};function l(e){switch("string"==typeof e&&e.slice(0,2)){case"RS":case"PS":return"RSA";case"ES":return"EC";case"Ed":return"OKP";default:return}}function f(e,t,r,n){if(t)return new Set([t]);switch(r){case"EC":{let t=[];return("enc"===e||void 0===e)&&(t=t.concat(["ECDH-ES","ECDH-ES+A128KW","ECDH-ES+A192KW","ECDH-ES+A256KW"])),("sig"===e||void 0===e)&&(t=t.concat([`ES${n.slice(-3)}`.replace("21","12")])),new Set(t)}case"OKP":return new Set(["ECDH-ES","ECDH-ES+A128KW","ECDH-ES+A192KW","ECDH-ES+A256KW"]);case"RSA":{let t=[];return("enc"===e||void 0===e)&&(t=t.concat(["RSA-OAEP","RSA-OAEP-256","RSA-OAEP-384","RSA-OAEP-512","RSA1_5"])),("sig"===e||void 0===e)&&(t=t.concat(["PS256","PS384","PS512","RS256","RS384","RS512"])),new Set(t)}default:throw Error("unreachable")}}
106e.exports=class{#h;constructor(e,t){if(e!==s)throw Error("invalid constructor call");this.#h=t}toJWKS(){return{keys:this.map(({jwk:{d:e,p:t,q:r,dp:n,dq:i,qi:o,...a}})=>a)}}all({alg:e,kid:t,use:r}={}){if(!r||!e)throw Error();let n=l(e),i={alg:e,use:r};return this.filter(i=>{let o=!0;return void 0!==n&&i.jwk.kty!==n&&(o=!1),o&&void 0!==t&&i.jwk.kid!==t&&(o=!1),o&&void 0!==r&&void 0!==i.jwk.use&&i.jwk.use!==r&&(o=!1),o&&i.jwk.alg&&i.jwk.alg!==e?o=!1:i.algorithms.has(e)||(o=!1),o}).sort((e,t)=>c(t,i)-c(e,i))}get(...e){return this.all(...e)[0]}static async fromJWKS(e,{onlyPublic:t=!1,onlyPrivate:r=!1}={}){if(!o(e)||!Array.isArray(e.keys)||e.keys.some(e=>!o(e)||!("kty"in e)))throw TypeError("jwks must be a JSON Web Key Set formatted object");let c=[];for(let o of e.keys){o=i(o);let{kty:e,kid:s,crv:l}=o,{alg:d,use:h}=o;if("string"!=typeof e||!e||void 0!==h&&"sig"!==h&&"enc"!==h||"string"!=typeof d&&void 0!==d||"string"!=typeof s&&void 0!==s)continue;if("EC"===e&&"sig"===h)switch(l){case"P-256":d="ES256";break;case"P-384":d="ES384";break;case"P-521":d="ES512"}if("secp256k1"===l&&(h="sig",d="ES256K"),"OKP"===e)switch(l){case"Ed25519":case"E
106d448":h="sig",d="EdDSA";break;case"X25519":case"X448":h="enc"}if(d&&!h)switch(!0){case d.startsWith("ECDH"):case d.startsWith("RSA"):h="enc"}let p=await n.importJWK(o,d||u(o.kty)).catch(()=>{});if(p){if(p instanceof Uint8Array||"secret"===p.type){if(r)throw Error("jwks must only contain private keys");continue}if(!a(p))throw Error("what?!");if(r&&"private"!==p.type)throw Error("jwks must only contain private keys");if(t&&"public"!==p.type||"RSA"===e&&p.asymmetricKeySize<2048)continue;c.push({jwk:{...o,alg:d,use:h},keyObject:p,get algorithms(){return Object.defineProperty(this,"algorithms",{value:f(this.jwk.use,this.jwk.alg,this.jwk.kty,this.jwk.crv),enumerable:!0,configurable:!1}),this.algorithms}})}}return new this(s,c)}filter(...e){return this.#h.filter(...e)}find(...e){return this.#h.find(...e)}every(...e){return this.#h.every(...e)}some(...e){return this.#h.some(...e)}map(...e){return this.#h.map(...e)}forEach(...e){return this.#h.forEach(...e)}reduce(...e){return this.#h.reduce(...e)}sort(...e){return this.#h.sort(...e)}*[Symbol.iterator](){for(let e of this.#h)yield e}}},5047:function(e,t,r){let n=r(1303);function i(e,...t){for(let r of t)if(n(r))for(let[t,o]of Object.entries(r))"__proto__"!==t&&"constructor"!==t&&(n(e[t])&&n(o)?e[t]=i(e[t],o):void 0!==o&&(e[t]=o));return e}e.exports=i},6038:function(e){e.exports=function(e,...t){let r={};for(let n of t)void 0!==e[n]&&(r[n]=e[n]);return r}},7787:function(e,t,r){var n=r(1876).Buffer;let{STATUS_CODES:i}=r(2321),{format:o}=r(9720),{OPError:a}=r(7486),s=r(8026),u=e=>{let t=s(e.headers["www-authenticate"]);if(t.error)throw new a(t,e)},c=e=>{let t=!1;try{let r;r="object"!=typeof e.body||n.isBuffer(e.body)?JSON.parse(e.body):e.body,(t="string"==typeof r.error&&r.error.length)&&Object.defineProperty(e,"body",{value:r,configurable:!0})}catch(e){}return t};function l(e,{statusCode:t=200,body:r=!0,bearer:n=!1}={}){if(e.statusCode!==t){if(n&&u(e),c(e))throw new a(e.body,e);throw new a({error:o("expected %i %s, got: %i %s",t,i[t],e.statusCode,i[e.statusCode])},e)}if(r&&!e.body)throw new a({error:o("expected %i %s with body but no body was returned",t,i[t])},e);return e.body}e.exports=l},3862:function(e,t,r){let n;var i=r(1876).Buffer;let o=r(7596),a=r(7334),s=r(2321),u=r(8428),{once:c}=r(5293),{URL:l}=r(1987),f=r(9593),d=r(2696),{RPError:h}=r(7486),p=r(6038),{deep:m}=r(1892),{HTTP_OPTIONS:y}=r(8741),b=/^[\x21\x23-\x5B\x5D-\x7E]+$/,g=["agent","ca","cert","crl","headers","key","lookup","passphrase","pfx","timeout"],v=(e,t)=>{n=m({},e.length?p(t,...e):t,n)};function w(e,t,r){r&&(e.removeHeader("content-type"),e.setHeader("content-type",r)),t&&(e.removeHeader("content-length"),e.setHeader("content-length",i.byteLength(t)),e.write(t)),e.end()}v([],{headers:{"User-Agent":`${d.name}/${d.version} (${d.homepage})`},timeout:3500});let _=new f({max:100});e.exports=async function(e,{accessToken:t,mTLS:r=!1,DPoP:f}={}){let d,v,S,E,x,k,A;try{d=new l(e.url),delete e.url,o(/^(https?:)$/.test(d.protocol))}catch(e){throw TypeError("only valid absolute URLs can be requested")}let M=this[y],O=e,j=`${d.origin}${d.pathname}`;if(f&&"dpopProof"in this&&(O.headers=O.headers||{},O.headers.DPoP=await this.dpopProof({htu:`${d.origin}${d.pathname}`,htm:e.method,nonce:_.get(j)},f,t)),M&&(v=p(M.call(this,d,m({},O,n)),...g)),O=m({},v,O,n),r&&!O.pfx&&!(O.key&&O.cert))throw TypeError("mutual-TLS certificate and key not set");if(O.searchParams)for(let[e,t]of Object.entries(O.searchParams))d.searchParams.delete(e),d.searchParams.set(e,t);for(let[e,t]of({form:E,responseType:S,json:x,body:k,...O}=O,Object.entries(O.headers||{})))void 0===t&&delete O.headers[e];let R=("https:"===d.protocol?u.request:s.request)(d.href,O);return(async()=>{if(x?w(R,JSON.stringify(x),"application/json"):E?w(R,a.stringify(E),"application/x-www-form-urlencoded"):k?w(R,k):w(R),[A]=await Promise.race([c(R,"response"),c(R,"timeout")]),!A)throw R.destroy(),new h(`outgoing request timed out after ${O.timeout}ms`);let e=[];for await(let t of A)e.push(t);if(e.length)switch(S){case"json":Object.defineProperty(A,"body",{get(){let t=i.concat(e);try{t=JSON.parse(t)}catch(e){throw Object.defineProperty(e,"response",{value:A}),e}finally{Object.defineProperty(A,"body",{value:t,configurable:!0})}return t},configurable:!0});break;case void 0:case"buffer":Object.defineProperty(A,"body",{get(){let t=i.concat(e);return Object.defineProperty(A,"body",{value:t,configurable:!0}),t},configurable:!0});break;default:throw TypeError("unsupported responseType request option")}return A})().catch(e=>{throw A&&Object.defineProperty(e,"response",{value:A}),e}).finally(()=>{let e=A&&A.headers["dpop-nonce"];e&&b.test(e)&&_.set(j,e)})},e.exports.setDefaults=v.bind(void 0,g)},6891:function(e){e.exports=()=>Math.floor(Date.now()/1e3)},4385:function(e){e.exports.keystores=new WeakMap},4818:function(e){let t=/^\d+$/;function r(e){if(e.includes("://"))return!0;let r=e.replace(/(\/|\?)/g,"#").split("#")[0];if(r.includes(":")){let e=r.indexOf(":"),n=r.slice(e+1);if(!t.test(n))return!0}return!1}function n(e){if(!e.includes("@"))return!1;let t=e.split("@"),r=t[t.length-1];return!(r.includes(":")||r.includes("/")||r.includes("?"))}function i(e){let t;if("string"!=typeof e)throw TypeError("input must be a string");return(t=r(e)?e:n(e)?`acct:${e}`:`https://${e}`).split("#")[0]}e.exports=i},8026:function(e){let t=/(\w+)=("[^"]*")/g;e.exports=e=>{let r={};try{for(;null!==t.exec(e);)RegExp.$1&&RegExp.$2&&(r[RegExp.$1]=RegExp.$2.slice(1,-1))}catch(e){}return r}},1831:function(e,t,r){let n=r(9704),{OPError:i,RPError:o}=r(7486),a=r(9330),s=r(1911),{CLOCK_TOLERANCE:u,HTTP_OPTIONS:c}=r(8741),l=r(8767),{setDefaults:f}=r(3862);e.exports={Issuer:n,Strategy:a,TokenSet:s,errors:{OPError:i,RPError:o},custom:{setHttpOptionsDefaults:f,http_options:c,clock_tolerance:u},generators:l}},9704:function(e,t,r){var n=r(3454);let{inspect:i}=r(9720),o=r(1987),{RPError:a}=r(7486),s=r(2251),u=r(748),c=r(7787),l=r(4818),f=r(3862),d=r(1050),{keystore:h}=r(7042),p=["https://login.microsoftonline.com/common/.well-known/openid-configuration","https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration","https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration","https://login.microsoftonline.com/consumers/v2.0/.well-known/openid-configuration"],m=Symbol(),y={claim_types_supported:["normal"],claims_parameter_supported:!1,grant_types_supported:["authorization_code","implicit"],request_parameter_supported:!1,request_uri_parameter_supported:!0,require_request_uri_registration:!1,response_modes_supported:["query","fragment"],token_endpoint_auth_methods_supported:["client_secret_basic"]};class b{#e;constructor(e={}){let t=e[m];delete e[m],["introspection","revocation"].forEach(t=>{e[`${t}_endpoint`]&&void 0===e[`${t}_endpoint_auth_methods_supported`]&&void 0===e[`${t}_endpoint_auth_signing_alg_values_supported`]&&(e.token_endpoint_auth_methods_supported&&(e[`${t}_endpoint_auth_methods_supported`]=e.token_endpoint_auth_methods_supported),e.token_endpoint_auth_signing_alg_values_supported&&(e[`${t}_endpoint_auth_signing_alg_values_supported`]=e.token_endpoint_auth_signing_alg_values_supported))}),this.#e=new Map,Object.entries(e).forEach(([e,t])=>{this.#e.set(e,t),this[e]||Object.defineProperty(this,e,{get(){return this.#e.get(e)},enumerable:!0})}),u.set(this.issuer,this);let r=s(this,t);Object.defineProperties(this,{Client:{value:r,enumerable:!0},FAPI1Client:{value:class extends r{},enumerable:!0}})}get metadata(){return d(Object.fromEntries(this.#e.entries()))}static async webfinger(e){let t=l(e),{host:r}=o.parse(t),n=`https://${r}/.well-known/webfinger`,i=await f.call(this,{method:"GET",url:n,responseType:"json",searchParams:{resource:t,rel:"http://openid.net/specs/connect/1.0/issuer"},headers:{Accept:"application/json"}}),s=c(i),d=Array.isArray(s.links)&&s.links.find(e=>"object"==typeof e&&"http://openid.net/specs/connect/1.0/issuer"===e.rel&&e.href);if(!d)throw new a({message:"no issuer found in webfinger response",body:s});if("string"!=typeof d.href||!d.href.startsWith("https://"))throw new a({printf:["invalid issuer location %s",d.href],body:s});let h=d.href;if(u.has(h))return u.get(h);let p=await this.discover(h);if(p.issuer!==h)throw u.del(p.issuer),new a("discovered issuer mismatch, expected %s, got: %s",h,p.issuer);return p}static async discover(e){let t;let r=o.parse(e);if(r.pathname.includes("/.well-known/")){let t=await f.call(this,{method:"GET",responseType:"json",url:e,headers:{Accept:"application/json"}}),r=c(t);return new b({...y,...r,[m]:!!p.find(t=>e.startsWith(t))})}t=r.pathname.endsWith("/")?`${r.pathname}.well-known/openid-configuration`:`${r.pathname}/.well-known/openid-configuration`;let n=o.format({...r,pathname:t}),i=await f.call(this,{method:"GET",responseType:"json",url:n,headers:{Accept:"application/json"}}),a=c(i);return new b({...y,...a,[m]:!!p.find(e=>n.startsWith(e))})}async reloadJwksUri(){await h.call(this,!0)}[i.custom](){return`${this.constructor.name} ${i(this.metadata,{depth:1/0,colors:n.stdout.isTTY,compact:!1,sorted:!0}
106)}`}}e.exports=b},748:function(e,t,r){let n=r(9593);e.exports=new n({max:100})},9330:function(e,t,r){let n=r(1987),{format:i}=r(9720),o=r(1050),{RPError:a,OPError:s}=r(7486),{BaseClient:u}=r(2251),{random:c,codeChallenge:l}=r(8767),f=r(6038),{resolveResponseType:d,resolveRedirectUri:h}=r(4944);function p(e,t,r={}){e?this.error(e):t?this.success(t,r):this.fail(r)}function m({client:e,params:t={},passReqToCallback:r=!1,sessionKey:i,usePKCE:a=!0,extras:s={}}={},c){if(!(e instanceof u))throw TypeError("client must be an instance of openid-client Client");if("function"!=typeof c)throw TypeError("verify callback must be a function");if(!e.issuer||!e.issuer.issuer)throw TypeError("client must have an issuer with an identifier");if(this._client=e,this._issuer=e.issuer,this._verify=c,this._passReqToCallback=r,this._usePKCE=a,this._key=i||`oidc:${n.parse(this._issuer.issuer).hostname}`,this._params=o(t),delete this._params.state,delete this._params.nonce,this._extras=o(s),this._params.response_type||(this._params.response_type=d.call(e)),this._params.redirect_uri||(this._params.redirect_uri=h.call(e)),this._params.scope||(this._params.scope="openid"),!0===this._usePKCE){let e=!!Array.isArray(this._issuer.code_challenge_methods_supported)&&this._issuer.code_challenge_methods_supported;if(e&&e.includes("S256"))this._usePKCE="S256";else if(e&&e.includes("plain"))this._usePKCE="plain";else if(e)throw TypeError("neither code_challenge_method supported by the client is supported by the issuer");else this._usePKCE="S256"}else if("string"==typeof this._usePKCE&&!["plain","S256"].includes(this._usePKCE))throw TypeError(`${this._usePKCE} is not valid/implemented PKCE code_challenge_method`);this.name=n.parse(e.issuer.issuer).hostname}m.prototype.authenticate=function(e,t){(async()=>{let r=this._client;if(!e.session)throw TypeError("authentication requires session support");let n=r.callbackParams(e),o=this._key,{0:s,length:u}=Object.keys(n);if(0===u||1===u&&"iss"===s){let n={state:c(),...this._params,...t};if(!n.nonce&&n.response_type.includes("id_token")&&(n.nonce=c()),e.session[o]=f(n,"nonce","state","max_age","response_type"),this._usePKCE&&n.response_type.includes("code")){let t=c();switch(e.session[o].code_verifier=t,this._usePKCE){case"S256":n.code_challenge=l(t),n.code_challenge_method="S256";break;case"plain":n.code_challenge=t}}this.redirect(r.authorizationUrl(n));return}let d=e.session[o];if(0===Object.keys(d||{}).length)throw Error(i('did not find expected authorization request details in session, req.session["%s"] is %j',o,d));let{state:h,nonce:m,max_age:y,code_verifier:b,response_type:g}=d;try{delete e.session[o]}catch(e){}let v={redirect_uri:this._params.redirect_uri,...t},w={state:h,nonce:m,max_age:y,code_verifier:b,response_type:g},_=await r.callback(v.redirect_uri,n,w,this._extras),S=this._passReqToCallback,E=this._verify.length>(S?3:2)&&r.issuer.userinfo_endpoint,x=[_,p.bind(this)];if(E){if(!_.access_token)throw new a({message:"expected access_token to be returned when asking for userinfo in verify callback",tokenset:_});let e=await r.userinfo(_);x.splice(1,0,e)}S&&x.unshift(e),this._verify(...x)})().catch(e=>{e instanceof s&&"server_error"!==e.error&&!e.error.startsWith("invalid")||e instanceof a?this.fail(e):this.error(e)})},e.exports=m},1911:function(e,t,r){let n=r(2806),i=r(6891);class o{constructor(e){Object.assign(this,e);let{constructor:t,...r}=Object.getOwnPropertyDescriptors(this.constructor.prototype);Object.defineProperties(this,r)}set expires_in(e){this.expires_at=i()+Number(e)}get expires_in(){return Math.max.apply(null,[this.expires_at-i(),0])}expired(){return 0===this.expires_in}claims(){if(!this.id_token)throw TypeError("id_token not present in TokenSet");return JSON.parse(n.decode(this.id_token.split(".")[1]))}}e.exports=o},4391:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=i(r(2613));function i(e){return e&&e.__esModule?e:{default:e}}function o(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];function i(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];var i=null;return t.forEach(function(e){if(null==i){var t=e.apply(void 0,r);null!=t&&(i=t)}}),i}return(0,n.default)(i)}e.exports=t.default},2613:function(e,t){"use strict";function r(e){function t(t,r,n,i,o,a){var s=i||"<<anonymous>>",u=a||n;if(null==r[n])return t?Error("Required "+o+" `"+u+"` was not specified in `"+s+"`."):null;for(var c=arguments.length,l=Array(c>6?c-6:0),f=6;f<c;f++)l[f-6]=arguments[f];return e.apply(void 0,[r,n,s,o,u].concat(l))}
106var r=t.bind(null,!1);return r.isRequired=t.bind(null,!0),r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=t.default},2703:function(e,t,r){"use strict";var n=r(414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,a){if(a!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return r.PropTypes=r,r}},5697:function(e,t,r){e.exports=r(2703)()},414:function(e){"use strict";var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=t},6695:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});var n=r(7294),i=r(8146),o=r(5697),a=r.n(o),s=r(4184),u=r.n(s),c=r(5893);let l={"aria-label":a().string,onClick:a().func,variant:a().oneOf(["white"])},f={"aria-label":"Close"},d=n.forwardRef(({className:e,variant:t,...r},n)=>(0,c.jsx)("button",{ref:n,type:"button",className:u()("btn-close",t&&`btn-close-${t}`,e),...r}));d.displayName="CloseButton",d.propTypes=l,d.defaultProps=f;var h=d,p=r(6467);let m={closeLabel:"Close",closeButton:!1},y=n.forwardRef(({closeLabel:e,closeVariant:t,closeButton:r,onHide:o,children:a,...s},u)=>{let l=(0,n.useContext)(p.Z),f=(0,i.Z)(()=>{null==l||l.onHide(),null==o||o()});return(0,c.jsxs)("div",{ref:u,...s,children:[a,r&&(0,c.jsx)(h,{"aria-label":e,variant:t,onClick:f})]})});y.defaultProps=m;var b=y},7030:function(e,t,r){"use strict";let n;r.d(t,{Z:function(){return p},t:function(){return h}});var i=r(1132);function o(e,t){e.classList?e.classList.add(t):(0,i.Z)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}var a=r(1505),s=r(930);
106function u(e,t){return e.replace(RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function c(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=u(e.className,t):e.setAttribute("class",u(e.className&&e.className.baseVal||"",t))}var l=r(8083);let f={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class d extends l.Z{adjustAndStore(e,t,r){let n=t.style[e];t.dataset[e]=n,(0,a.Z)(t,{[e]:`${parseFloat((0,a.Z)(t,e))+r}px`})}restore(e,t){let r=t.dataset[e];void 0!==r&&(delete t.dataset[e],(0,a.Z)(t,{[e]:r}))}setContainerStyle(e){super.setContainerStyle(e);let t=this.getElement();if(o(t,"modal-open"),!e.scrollBarWidth)return;let r=this.isRTL?"paddingLeft":"paddingRight",n=this.isRTL?"marginLeft":"marginRight";(0,s.Z)(t,f.FIXED_CONTENT).forEach(t=>this.adjustAndStore(r,t,e.scrollBarWidth)),(0,s.Z)(t,f.STICKY_CONTENT).forEach(t=>this.adjustAndStore(n,t,-e.scrollBarWidth)),(0,s.Z)(t,f.NAVBAR_TOGGLER).forEach(t=>this.adjustAndStore(n,t,e.scrollBarWidth))}removeContainerStyle(e){super.removeContainerStyle(e);let t=this.getElement();c(t,"modal-open");let r=this.isRTL?"paddingLeft":"paddingRight",n=this.isRTL?"marginLeft":"marginRight";(0,s.Z)(t,f.FIXED_CONTENT).forEach(e=>this.restore(r,e)),(0,s.Z)(t,f.STICKY_CONTENT).forEach(e=>this.restore(n,e)),(0,s.Z)(t,f.NAVBAR_TOGGLER).forEach(e=>this.restore(n,e))}}function h(e){return n||(n=new d(e)),n}var p=d},5005:function(e,t,r){"use strict";var n=r(4184),i=r.n(n),o=r(7294),a=r(861),s=r(6792),u=r(5893);let c={variant:"primary",active:!1,disabled:!1},l=o.forwardRef(({as:e,bsPrefix:t,variant:r,size:n,active:o,className:c,...l},f)=>{let d=(0,s.vE)(t,"btn"),[h,{tagName:p}]=(0,a.FT)({tagName:e,...l}),m=p;return(0,u.jsx)(m,{...h,...l,ref:f,className:i()(c,d,o&&"active",r&&`${d}-${r}`,n&&`${d}-${n}`,l.href&&l.disabled&&"disabled")})});l.displayName="Button",l.defaultProps=c,t.Z=l},1555:function(e,t,r){"use strict";var n=r(4184),i=r.n(n),o=r(7294),a=r(6792),s=r(5893);function u({as:e,bsPrefix:t,className:r,...n}){t=(0,a.vE)(t,"col");let o=(0,a.pi)(),s=(0,a.zG)(),u=[],c=[];return o.forEach(e=>{let r,i,o;let a=n[e];delete n[e],"object"==typeof a&&null!=a?{span:r,offset:i,order:o}=a:r=a;let l=e!==s?`-${e}`:"";r&&u.push(!0===r?`${t}${l}`:`${t}${l}-${r}`),null!=o&&c.push(`order${l}-${o}`),null!=i&&c.push(`offset${l}-${i}`)}),[{...n,className:i()(r,...u,...c)},{as:e,bsPrefix:t,spans:u}]}let c=o.forwardRef((e,t)=>{let[{className:r,...n},{as:o="div",bsPrefix:a,spans:c}]=u(e);return(0,s.jsx)(o,{...n,ref:t,className:i()(r,!c.length&&a)})});c.displayName="Col",t.Z=c},682:function(e,t,r){"use strict";var n=r(4184),i=r.n(n),o=r(7294),a=r(6792),s=r(5893);let u={fluid:!1},c=o.forwardRef(({bsPrefix:e,fluid:t,as:r="div",className:n,...o},u)=>{let c=(0,a.vE)(e,"container"),l="string"==typeof t?`-${t}`:"-fluid";return(0,s.jsx)(r,{ref:u,...o,className:i()(n,t?`${c}${l}`:c)})});c.displayName="Container",c.defaultProps=u,t.Z=c},3439:function(e,t,r){"use strict";r.d(t,{UI:function(){return i},XW:function(){return o}});var n=r(7294);function i(e,t){let r=0;return n.Children.map(e,e=>n.isValidElement(e)?t(e,r++):e)}function o(e,t){return n.Children.toArray(e).some(e=>n.isValidElement(e)&&e.type===t)}},1068:function(e,t,r){"use strict";var n=r(4184),i=r.n(n),o=r(7294),a=r(6592),s=r(3825),u=r(4509),c=r(9337),l=r(5893);let f={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1},d={[a.d0]:"show",[a.cn]:"show"},h=o.forwardRef(({className:e,children:t,transitionClasses:r={},...n},a)=>{let f=(0,o.useCallback)((e,t)=>{(0,u.Z)(e),null==n.onEnter||n.onEnter(e,t)},[n]);return(0,l.jsx)(c.Z,{ref:a,addEndListener:s.Z,...n,onEnter:f,childRef:t.ref,children:(n,a)=>o.cloneElement(t,{...a,className:i()("fade",e,t.props.className,d[n],r[n])})})});h.defaultProps=f,h.displayName="Fade",t.Z=h},7346:function(e,t,r){"use strict";r.d(t,{Z:function(){return q}});var n=r(4184),i=r.n(n),o=r(5697),a=r.n(o),s=r(7294),u=r(5893);let c={type:a().string,tooltip:a().bool,as:a().elementType},l=s.forwardRef(({as:e="div",className:t,type:r="valid",tooltip:n=!1,...o},a)=>(0,u.jsx)(e,{...o,ref:a,className:i()(t,`${r}-${n?"tooltip":"feedback"}`)}));l.displayName="Feedback",l.propTypes=c;var f=l;let d=s.createContext({});var h=d,p=r(6792);let m=s.forwardRef(({id:e,bsPrefix:t,className:r,type:n="checkbox",isValid:o=!1,isInvalid:a=!1,as:c="input",...l},f)=>{let{controlId:d}=(0,s.useContext)(h);return t=(0,p.vE)(t,"form-check-input"),(0,u.jsx)(c,{...l,ref:f,type:n,id:e||d,className:i()(r,t,o&&"is-valid",a&&"is-invalid")})});m.displayName="FormCheckInput";var y=m;let b=s.forwardRef(({bsPrefix:e,className:t,htmlFor:r,...n},o)=>{let{controlId:a}=(0,s.useContext)(h);return e=(0,p.vE)(e,"form-check-label"),(0,u.jsx)("label",{...n,ref:o,htmlFor:r||a,className:i()(t,e)})});b.displayName="FormCheckLabel";var g=b,v=r(3439);let w=s.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:r,inline:n=!1,reverse:o=!1,disabled:a=!1,isValid:c=!1,isInvalid:l=!1,feedbackTooltip:d=!1,feedback:m,feedbackType:b,className:w,style:_,title:S="",type:E="checkbox",label:x,children:k,as:A="input",...M},O)=>{t=(0,p.vE)(t,"form-check"),r=(0,p.vE)(r,"form-switch");let{controlId:j}=(0,s.useContext)(h),R=(0,s.useMemo)(()=>({controlId:e||j}),[j,e]),C=!k&&null!=x&&!1!==x||(0,v.XW)(k,g),P=(0,u.jsx)(y,{...M,type:"switch"===E?"checkbox":E,ref:O,isValid:c,isInvalid:l,disabled:a,as:A});return(0,u.jsx)(h.Provider,{value:R,children:(0,u.jsx)("div",{style:_,className:i()(w,C&&t,n&&`${t}-inline`,o&&`${t}-reverse`,"switch"===E&&r),children:k||(0,u.jsxs)(u.Fragment,{children:[P,C&&(0,u.jsx)(g,{title:S,children:x}),m&&(0,u.jsx)(f,{type:b,tooltip:d,children:m})]})})})});w.displayName="FormCheck";var _=Object.assign(w,{Input:y,Label:g});r(2473);let S=s.forwardRef(({bsPrefix:e,type:t,size:r,htmlSize:n,id:o,className:a,isValid:c=!1,isInvalid:l=!1,plaintext:f,readOnly:d,as:m="input",...y},b)=>{let g;let{controlId:v}=(0,s.useContext)(h);return e=(0,p.vE)(e,"form-control"),g=f?{[`${e}-plaintext`]:!0}:{[e]:!0,[`${e}-${r}`]:r},(0,u.jsx)(m,{...y,type:t,size:n,ref:b,readOnly:d,id:o||v,className:i()(a,g,c&&"is-valid",l&&"is-invalid","color"===t&&`${e}-color`)})});S.displayName="FormControl";var E=Object.assign(S,{Feedback:f}),x=(0,r(6611).Z)("form-floating");let k=s.forwardRef(({controlId:e,as:t="div",...r},n)=>{let i=(0,s.useMemo)(()=>({controlId:e}),[e]);return(0,u.jsx)(h.Provider,{value:i,children:(0,u.jsx)(t,{...r,ref:n})})});k.displayName="FormGroup";var A=k,M=r(1555);let O={column:!1,visuallyHidden:!1},j=s.forwardRef(({as:e="label",bsPrefix:t,column:r,visuallyHidden:n,className:o,htmlFor:a,...c},l)=>{let{controlId:f}=(0,s.useContext)(h);t=(0,p.vE)(t,"form-label");let d="col-form-label";"string"==typeof r&&(d=`${d} ${d}-${r}`);let m=i()(o,t,n&&"visually-hidden",r&&d);return(a=a||f,r)?(0,u.jsx)(M.Z,{ref:l,as:"label",className:m,htmlFor:a,...c}):(0,u.jsx)(e,{ref:l,className:m,htmlFor:a,...c})});j.displayName="FormLabel",j.defaultProps=O;var R=j;let C=s.forwardRef(({bsPrefix:e,className:t,id:r,...n},o)=>{let{controlId:a}=(0,s.useContext)(h);return e=(0,p.vE)(e,"form-range"),(0,u.jsx)("input",{...n,type:"range",ref:o,className:i()(t,e),id:r||a})});C.displayName="FormRange";var P=C;let T=s.forwardRef(({bsPrefix:e,size:t,htmlSize:r,className:n,isValid:o=!1,isInvalid:a=!1,id:c,...l},f)=>{let{controlId:d}=(0,s.useContext)(h);return e=(0,p.vE)(e,"form-select"),(0,u.jsx)("select",{...l,size:r,ref:f,className:i()(n,e,t&&`${e}-${t}`,o&&"is-valid",a&&"is-invalid"),id:c||d})});T.displayName="FormSelect";var I=T;let N=s.forwardRef(({bsPrefix:e,className:t,as:r="small",muted:n,...o},a)=>
106(e=(0,p.vE)(e,"form-text"),(0,u.jsx)(r,{...o,ref:a,className:i()(t,e,n&&"text-muted")})));N.displayName="FormText";var D=N;let L=s.forwardRef((e,t)=>(0,u.jsx)(_,{...e,ref:t,type:"switch"}));L.displayName="Switch";var B=Object.assign(L,{Input:_.Input,Label:_.Label});let U=s.forwardRef(({bsPrefix:e,className:t,children:r,controlId:n,label:o,...a},s)=>(e=(0,p.vE)(e,"form-floating"),(0,u.jsxs)(A,{ref:s,className:i()(t,e),controlId:n,...a,children:[r,(0,u.jsx)("label",{htmlFor:n,children:o})]})));U.displayName="FloatingLabel";var $=U;let H={_ref:a().any,validated:a().bool,as:a().elementType},F=s.forwardRef(({className:e,validated:t,as:r="form",...n},o)=>(0,u.jsx)(r,{...n,ref:o,className:i()(e,t&&"was-validated")}));F.displayName="Form",F.propTypes=H;var q=Object.assign(F,{Group:A,Control:E,Floating:x,Check:_,Switch:B,Label:R,Text:D,Range:P,Select:I,FloatingLabel:$})},1330:function(e,t,r){"use strict";var n=r(4184),i=r.n(n),o=r(7294),a=r(5697),s=r.n(a),u=r(6792),c=r(5893);s().string,s().bool,s().bool,s().bool,s().bool;let l={fluid:!1,rounded:!1,roundedCircle:!1,thumbnail:!1},f=o.forwardRef(({bsPrefix:e,className:t,fluid:r,rounded:n,roundedCircle:o,thumbnail:a,...s},l)=>(e=(0,u.vE)(e,"img"),(0,c.jsx)("img",{ref:l,...s,className:i()(t,r&&`${e}-fluid`,n&&"rounded",o&&"rounded-circle",a&&`${e}-thumbnail`)})));f.displayName="Image",f.defaultProps=l,t.Z=f},6212:function(e,t,r){"use strict";r.d(t,{Z:function(){return U}});var n,i=r(4184),o=r.n(i),a=r(9351),s=r(3004),u=r(7216),c=r(99);function l(e){if((!n&&0!==n||e)&&s.Z){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),n=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return n}var f=r(2092),d=r(8146),h=r(5654),p=r(6852),m=r(4305),y=r(7294),b=r(6664),g=r(7030),v=r(1068),w=r(6611),_=(0,w.Z)("modal-body"),S=r(6467),E=r(6792),x=r(5893);let k=y.forwardRef(({bsPrefix:e,className:t,contentClassName:r,centered:n,size:i,fullscreen:a,children:s,scrollable:u,...c},l)=>{e=(0,E.vE)(e,"modal");let f=`${e}-dialog`,d="string"==typeof a?`${e}-fullscreen-${a}`:`${e}-fullscreen`;return(0,x.jsx)("div",{...c,ref:l,className:o()(f,t,i&&`${e}-${i}`,n&&`${f}-centered`,u&&`${f}-scrollable`,a&&d),children:(0,x.jsx)("div",{className:o()(`${e}-content`,r),children:s})})});k.displayName="ModalDialog";var A=k,M=(0,w.Z)("modal-footer"),O=r(6695);let j={closeLabel:"Close",closeButton:!1},R=y.forwardRef(({bsPrefix:e,className:t,...r},n)=>(e=(0,E.vE)(e,"modal-header"),(0,x.jsx)(O.Z,{ref:n,...r,className:o()(t,e)})));R.displayName="ModalHeader",R.defaultProps=j;var C=R,P=r(9602);let T=(0,P.Z)("h4");var I=(0,w.Z)("modal-title",{Component:T});let N={show:!1,backdrop:!0,keyboard:!0,autoFocus:!0,enforceFocus:!0,restoreFocus:!0,animation:!0,dialogAs:A};function D(e){return(0,x.jsx)(v.Z,{...e,timeout:null})}function L(e){return(0,x.jsx)(v.Z,{...e,timeout:null})}let B=y.forwardRef(({bsPrefix:e,className:t,style:r,dialogClassName:n,contentClassName:i,children:v,dialogAs:w,"aria-labelledby":_,"aria-describedby":k,"aria-label":A,show:M,animation:O,backdrop:j,keyboard:R,onEscapeKeyDown:C,onShow:P,onHide:T,container:I,autoFocus:N,enforceFocus:B,restoreFocus:U,restoreFocusOptions:$,onEntered:H,onExit:F,onExiting:q,onEnter:W,onEntering:z,onExited:K,backdropClassName:Z,manager:J,...G},V)=>{let[Y,X]=(0,y.useState)({}),[Q,ee]=(0,y.useState)(!1),et=(0,y.useRef)(!1),er=(0,y.useRef)(!1),en=(0,y.useRef)(null),[ei,eo]=(0,f.Z)(),ea=(0,h.Z)(V,eo),es=(0,d.Z)(T),eu=(0,E.SC)();e=(0,E.vE)(e,"modal");let ec=(0,y.useMemo)(()=>({onHide:es}),[es]);function el(){return J||(0,g.t)({isRTL:eu})}function ef(e){if(!s.Z)return;let t=el().getScrollbarWidth()>0,r=e.scrollHeight>(0,u.Z)(e).documentElement.clientHeight;X({paddingRight:t&&!r?l():void 0,paddingLeft:!t&&r?l():void 0})}let ed=(0,d.Z)(()=>{ei&&ef(ei.dialog)});(0,p.Z)(()=>{(0,c.Z)(window,"resize",ed),null==en.current||en.current()});let eh=()=>{et.current=!0},ep=e=>{et.current&&ei&&e.target===ei.dialog&&(er.current=!0),et.current=!1},em=()=>{ee(!0),en.current=(0,m.Z)(ei.dialog,()=>{ee(!1)})},ey=e=>{e.target===e.currentTarget&&em()},eb=e=>{if("static"===j){ey(e);return}if(er.current||e.target!==e.currentTarget){er.current=!1;return}null==T||T()},eg=e=>{R?null==C||C(e):(e.preventDefault(),"static"===j&&em())},ev=(e,t)=>
106{e&&ef(e),null==W||W(e,t)},ew=e=>{null==en.current||en.current(),null==F||F(e)},e_=(e,t)=>{null==z||z(e,t),(0,a.ZP)(window,"resize",ed)},eS=e=>{e&&(e.style.display=""),null==K||K(e),(0,c.Z)(window,"resize",ed)},eE=(0,y.useCallback)(t=>(0,x.jsx)("div",{...t,className:o()(`${e}-backdrop`,Z,!O&&"show")}),[O,Z,e]),ex={...r,...Y};ex.display="block";let ek=r=>(0,x.jsx)("div",{role:"dialog",...r,style:ex,className:o()(t,e,Q&&`${e}-static`,!O&&"show"),onClick:j?eb:void 0,onMouseUp:ep,"aria-label":A,"aria-labelledby":_,"aria-describedby":k,children:(0,x.jsx)(w,{...G,onMouseDown:eh,className:n,contentClassName:i,children:v})});return(0,x.jsx)(S.Z.Provider,{value:ec,children:(0,x.jsx)(b.Z,{show:M,ref:ea,backdrop:j,container:I,keyboard:!0,autoFocus:N,enforceFocus:B,restoreFocus:U,restoreFocusOptions:$,onEscapeKeyDown:eg,onShow:P,onHide:T,onEnter:ev,onEntering:e_,onEntered:H,onExit:ew,onExiting:q,onExited:eS,manager:el(),transition:O?D:void 0,backdropTransition:O?L:void 0,renderBackdrop:eE,renderDialog:ek})})});B.displayName="Modal",B.defaultProps=N;var U=Object.assign(B,{Body:_,Header:C,Title:I,Footer:M,Dialog:A,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150})},6467:function(e,t,r){"use strict";var n=r(7294);let i=n.createContext({onHide(){}});t.Z=i},4051:function(e,t,r){"use strict";var n=r(4184),i=r.n(n),o=r(7294),a=r(6792),s=r(5893);let u=o.forwardRef(({bsPrefix:e,className:t,as:r="div",...n},o)=>{let u=(0,a.vE)(e,"row"),c=(0,a.pi)(),l=(0,a.zG)(),f=`${u}-cols`,d=[];return c.forEach(e=>{let t;let r=n[e];delete n[e],null!=r&&"object"==typeof r?{cols:t}=r:t=r;let i=e!==l?`-${e}`:"";null!=t&&d.push(`${f}${i}-${t}`)}),(0,s.jsx)(r,{ref:o,...n,className:i()(t,u,...d)})});u.displayName="Row",t.Z=u},6792:function(e,t,r){"use strict";r.d(t,{SC:function(){return d},pi:function(){return l},vE:function(){return c},zG:function(){return f}});var n=r(7294);r(5893);let i=["xxl","xl","lg","md","sm","xs"],o="xs",a=n.createContext({prefixes:{},breakpoints:i,minBreakpoint:o}),{Consumer:s,Provider:u}=a;function c(e,t){let{prefixes:r}=(0,n.useContext)(a);return e||r[t]||t}function l(){let{breakpoints:e}=(0,n.useContext)(a);return e}function f(){let{minBreakpoint:e}=(0,n.useContext)(a);return e}function d(){let{dir:e}=(0,n.useContext)(a);return"rtl"===e}},9337:function(e,t,r){"use strict";var n=r(7294),i=r(6592),o=r(5654),a=r(8285),s=r(5893);let u=n.forwardRef(({onEnter:e,onEntering:t,onEntered:r,onExit:u,onExiting:c,onExited:l,addEndListener:f,children:d,childRef:h,...p},m)=>{let y=(0,n.useRef)(null),b=(0,o.Z)(y,h),g=e=>{b((0,a.Z)(e))},v=e=>t=>{e&&y.current&&e(y.current,t)},w=(0,n.useCallback)(v(e),[e]),_=(0,n.useCallback)(v(t),[t]),S=(0,n.useCallback)(v(r),[r]),E=(0,n.useCallback)(v(u),[u]),x=(0,n.useCallback)(v(c),[c]),k=(0,n.useCallback)(v(l),[l]),A=(0,n.useCallback)(v(f),[f]);return(0,s.jsx)(i.ZP,{ref:m,...p,onEnter:w,onEntered:S,onEntering:_,onExit:E,onExited:k,onExiting:x,addEndListener:A,nodeRef:y,children:"function"==typeof d?(e,t)=>d(e,{...t,ref:g}):n.cloneElement(d,{ref:g})})});t.Z=u},6611:function(e,t,r){"use strict";r.d(t,{Z:function(){return f}});var n=r(4184),i=r.n(n),o=/-(.)/g;function a(e){return e.replace(o,function(e,t){return t.toUpperCase()})}var s=r(7294),u=r(6792),c=r(5893);let l=e=>e[0].toUpperCase()+a(e).slice(1);function f(e,{displayName:t=l(e),Component:r,defaultProps:n}={}){let o=s.forwardRef(({className:t,bsPrefix:n,as:o=r||"div",...a},s)=>{let l=(0,u.vE)(n,e);return(0,c.jsx)(o,{ref:s,className:i()(t,l),...a})});return o.defaultProps=n,o.displayName=t,o}},9602:function(e,t,r){"use strict";var n=r(7294),i=r(4184),o=r.n(i),a=r(5893);t.Z=e=>n.forwardRef((t,r)=>(0,a.jsx)("div",{...t,ref:r,className:o()(t.className,e)}))},8285:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(3935);function i(e){return e&&"setState"in e?n.findDOMNode(e):null!=e?e:null}},3825:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(1505),i=r(4305);function o(e,t){let r=(0,n.Z)(e,t)||"",i=-1===r.indexOf("ms")?1e3:1;return parseFloat(r)*i}function a(e,t){let r=o(e,"transitionDuration"),n=o(e,"transitionDelay"),a=(0,i.Z)(e,r=>{r.target===e&&(a(),t(r))},r+n)}},4509:function(e,t,r){"use strict";function n(e){e.offsetHeight}r.d(t,{Z:function(){return n}})},6592:function(e,t,r){"use strict";r.d(t,{cn:function(){return p},d0:function(){return h},Wj:function(){return d},Ix:function(){return m},ZP:function(){return g}});var n=r(3366),i=r(9611);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,i.Z)(e,t)}var a=r(7294),s=r(3935),u={disabled:!1},c=a.createContext(null),l=function(e){return e.scrollTop},f="unmounted",d="exited",h="entering",p="entered",m="exiting",y=function(e){function t(t,r){n=e.call(this,t,r)||this;var n,i,o=r,a=o&&!o.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?a?(i=d,n.appearStatus=h):i=p:i=t.unmountOnExit||t.mountOnEnter?f:d,n.state={status:i},n.nextCallback=null,n}o(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===f?{status:d}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==h&&r!==p&&(t=h):(r===h||r===p)&&(t=m)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,a
106ppear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){if(this.cancelNextCallback(),t===h){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:s.findDOMNode(this);r&&l(r)}this.performEnter(e)}else this.performExit()}else this.props.unmountOnExit&&this.state.status===d&&this.setState({status:f})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,i=this.props.nodeRef?[n]:[s.findDOMNode(this),n],o=i[0],a=i[1],c=this.getTimeouts(),l=n?c.appear:c.enter;if(!e&&!r||u.disabled){this.safeSetState({status:p},function(){t.props.onEntered(o)});return}this.props.onEnter(o,a),this.safeSetState({status:h},function(){t.props.onEntering(o,a),t.onTransitionEnd(l,function(){t.safeSetState({status:p},function(){t.props.onEntered(o,a)})})})},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:s.findDOMNode(this);if(!t||u.disabled){this.safeSetState({status:d},function(){e.props.onExited(n)});return}this.props.onExit(n),this.safeSetState({status:m},function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:d},function(){e.props.onExited(n)})})})},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:s.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(!r||n){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)},r.render=function(){var e=this.state.status;if(e===f)return null;var t=this.props,r=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,n.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a.createElement(c.Provider,{value:null},"function"==typeof r?r(e,i):a.cloneElement(a.Children.only(r),i))},t}(a.Component);function b(){}y.contextType=c,y.propTypes={},y.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:b,onEntering:b,onEntered:b,onExit:b,onExiting:b,onExited:b},y.UNMOUNTED=f,y.EXITED=d,y.ENTERING=h,y.ENTERED=p,y.EXITING=m;var g=y},9509:function(e,t,r){/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var n=r(1876),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},6644:function(e){"use strict";function t(e,t){return e.__proto__=t,e}function r(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(e,r)||(e[r]=t[r]);return e}
106e.exports=Object.setPrototypeOf||(({__proto__:[]})instanceof Array?t:r)},4917:function(e,t,r){"use strict";/*! 107 * statuses 108 * Copyright(c) 2014 Jonathan Ong 109 * Copyright(c) 2016 Douglas Christopher Wilson 110 * MIT Licensed 111 */var n=r(855);function i(e,t){var r=[];return Object.keys(t).forEach(function(n){var i=t[n],o=Number(n);e[o]=i,e[i]=o,e[i.toLowerCase()]=o,r.push(o)}),r}function o(e){if("number"==typeof e){if(!o[e])throw Error("invalid status code: "+e);return e}if("string"!=typeof e)throw TypeError("code must be a number or string");var t=parseInt(e,10);if(!isNaN(t)){if(!o[t])throw Error("invalid status code: "+t);return t}if(!(t=o[e.toLowerCase()]))throw Error('invalid status message: "'+e+'"');return t}e.exports=o,o.STATUS_CODES=n,o.codes=i(o,n),o.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0},o.empty={204:!0,205:!0,304:!0},o.retry={502:!0,503:!0,504:!0}},2553:function(e,t,r){"use strict";var n=r(9509).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=p,this.end=m,t=4;break;case"utf8":this.fillLast=f,t=4;break;case"base64":this.text=y,this.end=b,t=3;break;default:this.write=g,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function u(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e,t,r){var n=t.length-1;if(n<r)return 0;var i=u(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=u(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=u(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function l(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function f(e){var t=this.lastTotal-this.lastNeed,r=l(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function d(e,t){var r=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function y(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function b(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):""}t.StringDecoder=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=h,s.prototype.text=d,s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},2953:function(e){"use strict";function t(e){return e.split(" ").map(function(e){return e.slice(0,1).toUpperCase()+e.slice(1)}).join("").replace(/[^ _0-9a-z]/gi,"")}/*! 112 * toidentifier 113 * Copyright(c) 2016 Douglas Christopher Wilson 114 * MIT Licensed
vendor: 5,226 bytes, line 115
115 */e.exports=t},655:function(e,t,r){"use strict";r.r(t),r.d(t,{__assign:function(){return o},__asyncDelegator:function(){return k},__asyncGenerator:function(){return x},__asyncValues:function(){return A},__await:function(){return E},__awaiter:function(){return p},__classPrivateFieldGet:function(){return C},__classPrivateFieldIn:function(){return T},__classPrivateFieldSet:function(){return P},__createBinding:function(){return y},__decorate:function(){return s},__esDecorate:function(){return c},__exportStar:function(){return b},__extends:function(){return i},__generator:function(){return m},__importDefault:function(){return R},__importStar:function(){return j},__makeTemplateObject:function(){return M},__metadata:function(){return h},__param:function(){return u},__propKey:function(){return f},__read:function(){return v},__rest:function(){return a},__runInitializers:function(){return l},__setFunctionName:function(){return d},__spread:function(){return w},__spreadArray:function(){return S},__spreadArrays:function(){return _},__values:function(){return g}});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function s(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function u(e,t){return function(r,n){t(r,n,e)}}function c(e,t,r,n,i,o){function a(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var s,u=n.kind,c="getter"===u?"get":"setter"===u?"set":"value",l=!t&&e?n.static?e:e.prototype:null,f=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),d=!1,h=r.length-1;h>=0;h--){var p={};for(var m in n)p[m]="access"===m?{}:n[m];for(var m in n.access)p.access[m]=n.access[m];p.addInitializer=function(e){if(d)throw TypeError("Cannot add initializers after decoration has completed");o.push(a(e||null))};var y=(0,r[h])("accessor"===u?{get:f.get,set:f.set}:f[c],p);if("accessor"===u){if(void 0===y)continue;if(null===y||"object"!=typeof y)throw TypeError("Object expected");(s=a(y.get))&&(f.get=s),(s=a(y.set))&&(f.set=s),(s=a(y.init))&&i.push(s)}else(s=a(y))&&("field"===u?i.push(s):f[c]=s)}l&&Object.defineProperty(l,n.name,f),d=!0}function l(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function f(e){return"symbol"==typeof e?e:"".concat(e)}function d(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function h(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function p(e,t,r,n){function i(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){e.done?r(e.value):i(e.value).then(a,s)}u((n=n.apply(e,t||[])).next())})}function m(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return u([e,t])}}function u(s){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}var y=Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);
115(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function b(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||y(t,e,r)}function g(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function w(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(v(arguments[t]));return e}function _(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n}function S(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function E(e){return this instanceof E?(this.v=e,this):new E(e)}function x(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){i[e]&&(n[e]=function(t){return new Promise(function(r,n){o.push([e,t,r,n])>1||s(e,t)})})}function s(e,t){try{u(i[e](t))}catch(e){f(o[0][3],e)}}function u(e){e.value instanceof E?Promise.resolve(e.value.v).then(c,l):f(o[0][2],e)}function c(e){s("next",e)}function l(e){s("throw",e)}function f(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function k(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:E(e[n](t)),done:!1}:i?i(t):t}:i}}function A(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=g(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,o){i(n,o,(t=e[r](t)).done,t.value)})}}function i(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}}function M(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var O=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function j(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&y(t,e,r);return O(t,e),t}function R(e){return e&&e.__esModule?e:{default:e}}function C(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function P(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}function T(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}},7150:function(e,t,r){"use strict";r.d(t,{Ch:function(){return l},$c:function(){return c}});var n=r(7462),i=r(3366),o=r(7294);function a(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function s(e){var t=u(e,"string");return"symbol"==typeof t?t:String(t)}function u(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function c(e,t,r){var n=(0,o.useRef)(void 0!==e),i=(0,o.useState)(t),a=i[0],s=i[1],u=void 0!==e,c=n.current;return n.current=u,!u&&c&&a!==t&&s(t),[u?e:a,(0,o.useCallback)(function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];r&&r.apply(void 0,[e].concat(n)),s(e)},[r])]}function l(e,t){return Object.keys(t).reduce(function(r,o){var u,l=r,f=l[a(o)],d=l[o],h=(0,i.Z)(l,[a(o),o].map(s)),p=t[o],m=c(d,f,e[p]),y=m[0],b=m[1];return(0,n.Z)({},h,((u={})[o]=y,u[p]=b,u))},e)}function f(e){function t(t){var r=this.constructor.getDerivedStateFromProps(e,t);return null!=r?r:null}this.setState(t.bind(this))}function d(e,t){try{var r=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}r(1143),f.__suppressDeprecationWarning=!0,d.__suppressDeprecationWarning=!0},4078:function(e,t,r){var n,i;!function(o,a,s){e.exports?e.exports=s():void 0!==(i="function"==typeof(n=s)?n.call(t,r,t,e):n)&&(e.exports=i)}(0,0,function(){function e(e){var t=[];if(0===e.length)return"";if("string"!=typeof e[0])throw TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var r=e.shift();e[0]=r+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var n=0;n<e.length;n++){var i=e[n];if("string"!=typeof i)throw TypeError("Url must be a string. Received "+i);""!==i&&(n>0&&(i=i.replace(/^[\/]+/,"")),i=n<e.length-1?i.replace(/[\/]+$/,""):i.replace(/[\/]+$/,"/"),t.push(i))}var o=t.join("/"),a=(o=o.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return a.shift()+(a.length>0?"?":"")+a.join("&")}return function(){var t;return t="object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments),e(t)}
vendor: 4,262 bytes, line 115
115})},2473:function(e){"use strict";var t=function(){};e.exports=t},7371:function(e){"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},4411:function(e,t,r){"use strict";function n(e){var t=this;if(t instanceof n||(t=new n),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach(function(e){t.push(e)});else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)t.push(arguments[r]);return t}function i(e,t,r){var n=t===e.head?new s(r,null,t,e):new s(r,t,t.next,e);return null===n.next&&(e.tail=n),null===n.prev&&(e.head=n),e.length++,n}function o(e,t){e.tail=new s(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function a(e,t){e.head=new s(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function s(e,t,r,n){if(!(this instanceof s))return new s(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}e.exports=n,n.Node=s,n.create=n,n.prototype.removeNode=function(e){if(e.list!==this)throw Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t},n.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},n.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},n.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)o(this,arguments[e]);return this.length},n.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)a(this,arguments[e]);return this.length},n.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},n.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},n.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;null!==r;n++)e.call(t,r.value,n,this),r=r.next},n.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;null!==r;n--)e.call(t,r.value,n,this),r=r.prev},n.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&t<e;t++)r=r.next;if(t===e&&null!==r)return r.value},n.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&t<e;t++)r=r.prev;if(t===e&&null!==r)return r.value},n.prototype.map=function(e,t){t=t||this;for(var r=new n,i=this.head;null!==i;)r.push(e.call(t,i.value,this)),i=i.next;return r},n.prototype.mapReverse=function(e,t){t=t||this;for(var r=new n,i=this.tail;null!==i;)r.push(e.call(t,i.value,this)),i=i.prev;return r},n.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=0;null!==n;i++)r=e(r,n.value,i),n=n.next;return r},n.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;null!==n;i--)r=e(r,n.value,i),n=n.prev;return r},n.prototype.toArray=function(){for(var e=Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},n.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},n.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&i<e;i++)o=o.next;for(;null!==o&&i<t;i++,o=o.next)r.push(o.value);return r},n.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;
115for(;null!==o&&i>e;i--,o=o.prev)r.push(o.value);return r},n.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,o=this.head;null!==o&&n<e;n++)o=o.next;for(var a=[],n=0;o&&n<t;n++)a.push(o.value),o=this.removeNode(o);null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(var n=0;n<r.length;n++)o=i(this,o,r[n]);return a},n.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};try{r(7371)(n)}catch(e){}},7462:function(e,t,r){"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,{Z:function(){return n}})},3366:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}r.d(t,{Z:function(){return n}})},9611:function(e,t,r){"use strict";function n(e,t){return(n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}r.d(t,{Z:function(){return n}})},3024:function(e,t,r){"use strict";r.d(t,{qlP:function(){return n}});var n={prefix:"fab",iconName:"firefox",icon:[512,512,[],"f269","M503.52,241.48c-.12-1.56-.24-3.12-.24-4.68v-.12l-.36-4.68v-.12a245.86,245.86,0,0,0-7.32-41.15c0-.12,0-.12-.12-.24l-1.08-4c-.12-.24-.12-.48-.24-.6-.36-1.2-.72-2.52-1.08-3.72-.12-.24-.12-.6-.24-.84-.36-1.2-.72-2.4-1.08-3.48-.12-.36-.24-.6-.36-1-.36-1.2-.72-2.28-1.2-3.48l-.36-1.08c-.36-1.08-.84-2.28-1.2-3.36a8.27,8.27,0,0,0-.36-1c-.48-1.08-.84-2.28-1.32-3.36-.12-.24-.24-.6-.36-.84-.48-1.2-1-2.28-1.44-3.48,0-.12-.12-.24-.12-.36-1.56-3.84-3.24-7.68-5-11.4l-.36-.72c-.48-1-.84-1.8-1.32-2.64-.24-.48-.48-1.08-.72-1.56-.36-.84-.84-1.56-1.2-2.4-.36-.6-.6-1.2-1-1.8s-.84-1.44-1.2-2.28c-.36-.6-.72-1.32-1.08-1.92s-.84-1.44-1.2-2.16a18.07,18.07,0,0,0-1.2-2c-.36-.72-.84-1.32-1.2-2s-.84-1.32-1.2-2-.84-1.32-1.2-1.92-.84-1.44-1.32-2.16a15.63,15.63,0,0,0-1.2-1.8L463.2,119a15.63,15.63,0,0,0-1.2-1.8c-.48-.72-1.08-1.56-1.56-2.28-.36-.48-.72-1.08-1.08-1.56l-1.8-2.52c-.36-.48-.6-.84-1-1.32-1-1.32-1.8-2.52-2.76-3.72a248.76,248.76,0,0,0-23.51-26.64A186.82,186.82,0,0,0,412,62.46c-4-3.48-8.16-6.72-12.48-9.84a162.49,162.49,0,0,0-24.6-15.12c-2.4-1.32-4.8-2.52-7.2-3.72a254,254,0,0,0-55.43-19.56c-1.92-.36-3.84-.84-5.64-1.2h-.12c-1-.12-1.8-.36-2.76-.48a236.35,236.35,0,0,0-38-4H255.14a234.62,234.62,0,0,0-45.48,5c-33.59,7.08-63.23,21.24-82.91,39-1.08,1-1.92,1.68-2.4,2.16l-.48.48H124l-.12.12.12-.12a.12.12,0,0,0,.12-.12l-.12.12a.42.42,0,0,1,.24-.12c14.64-8.76,34.92-16,49.44-19.56l5.88-1.44c.36-.12.84-.12,1.2-.24,1.68-.36,3.36-.72,5.16-1.08.24,0,.6-.12.84-.12C250.94,20.94,319.34,40.14,367,85.61a171.49,171.49,0,0,1,26.88,32.76c30.36,49.2,27.48,111.11,3.84,147.59-34.44,53-111.35,71.27-159,24.84a84.19,84.19,0,0,1-25.56-59,74.05,74.05,0,0,1,6.24-31c1.68-3.84,13.08-25.67,18.24-24.59-13.08-2.76-37.55,2.64-54.71,28.19-15.36,22.92-14.52,58.2-5,83.28a132.85,132.85,0,0,1-12.12-39.24c-12.24-82.55,43.31-153,94.31-170.51-27.48-24-96.47-22.31-147.71,15.36-29.88,22-51.23,53.16-62.51,90.36,1.68-20.88,9.6-52.08,25.8-83.88-17.16,8.88-39,37-49.8,62.88-15.6,37.43-21,82.19-16.08,124.79.36,3.24.72,6.36,1.08,9.6,19.92,117.11,122,206.38,244.78,206.38C392.77,503.42,504,392.19,504,255,503.88,250.48,503.76,245.92,503.52,241.48Z"]}},9417:function(e,t,r){"use strict";r.d(t,{Zkk:function(){return u},bE7:function(){return a},enB:function(){return s},mbJ:function(){return i},onQ:function(){return c},qtD:function(){return o},xiG:function(){return n}});var n={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"]},i={prefix:"fas",iconName:"tree",icon:[448,512,[127794],"f1bb","M210.6 5.9L62 169.4c-3.9 4.2-6 9.8-6 15.5C56 197.7 66.3 208 79.1 208H104L30.6 281.4c-4.2 4.2-6.6 10-6.6 16C24 309.9 34.1 320 46.6 320H80L5.4 409.5C1.9 413.7 0 419 0 424.5c0 13 10.5 23.5 23.5 23.5H192v32c0 17.7 14.3 32 32 32s32-14.3 32-32V448H424.5c13 0 23.5-10.5 23.5-23.5c0-5.5-1.9-10.8-5.4-15L368 320h33.4c12.5 0 22.6-10.1 22.6-22.6c0-6-2.4-11.8-6.6-16L344 208h24.9c12.7 0 23.1-10.3 23.1-23.1c0-5.7-2.1-11.3-6-15.5L237.4 5.9C234 2.1 229.1 0 224
1150s-10 2.1-13.4 5.9z"]},o={prefix:"fas",iconName:"diamond",icon:[512,512,[9830],"f219","M284.3 11.7c-15.6-15.6-40.9-15.6-56.6 0l-216 216c-15.6 15.6-15.6 40.9 0 56.6l216 216c15.6 15.6 40.9 15.6 56.6 0l216-216c15.6-15.6 15.6-40.9 0-56.6l-216-216z"]},a={prefix:"fas",iconName:"skull",icon:[512,512,[128128],"f54c","M416 398.9c58.5-41.1 96-104.1 96-174.9C512 100.3 397.4 0 256 0S0 100.3 0 224c0 70.7 37.5 133.8 96 174.9c0 .4 0 .7 0 1.1v64c0 26.5 21.5 48 48 48h48V464c0-8.8 7.2-16 16-16s16 7.2 16 16v48h64V464c0-8.8 7.2-16 16-16s16 7.2 16 16v48h48c26.5 0 48-21.5 48-48V400c0-.4 0-.7 0-1.1zM96 256a64 64 0 1 1 128 0A64 64 0 1 1 96 256zm256-64a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"]},s={prefix:"fas",iconName:"sun",icon:[512,512,[9728],"f185","M361.5 1.2c5 2.1 8.6 6.6 9.6 11.9L391 121l107.9 19.8c5.3 1 9.8 4.6 11.9 9.6s1.5 10.7-1.6 15.2L446.9 256l62.3 90.3c3.1 4.5 3.7 10.2 1.6 15.2s-6.6 8.6-11.9 9.6L391 391 371.1 498.9c-1 5.3-4.6 9.8-9.6 11.9s-10.7 1.5-15.2-1.6L256 446.9l-90.3 62.3c-4.5 3.1-10.2 3.7-15.2 1.6s-8.6-6.6-9.6-11.9L121 391 13.1 371.1c-5.3-1-9.8-4.6-11.9-9.6s-1.5-10.7 1.6-15.2L65.1 256 2.8 165.7c-3.1-4.5-3.7-10.2-1.6-15.2s6.6-8.6 11.9-9.6L121 121 140.9 13.1c1-5.3 4.6-9.8 9.6-11.9s10.7-1.5 15.2 1.6L256 65.1 346.3 2.8c4.5-3.1 10.2-3.7 15.2-1.6zM160 256a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zm224 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0z"]},u={prefix:"fas",iconName:"droplet",icon:[384,512,[128167,"tint"],"f043","M192 512C86 512 0 426 0 320C0 228.8 130.2 57.7 166.6 11.7C172.6 4.2 181.5 0 191.1 0h1.8c9.6 0 18.5 4.2 24.5 11.7C253.8 57.7 384 228.8 384 320c0 106-86 192-192 192zM96 336c0-8.8-7.2-16-16-16s-16 7.2-16 16c0 61.9 50.1 112 112 112c8.8 0 16-7.2 16-16s-7.2-16-16-16c-44.2 0-80-35.8-80-80z"]},c={prefix:"fas",iconName:"angle-up",icon:[384,512,[8963],"f106","M169.4 137.4c12.5-12.5 32.8-12.5 45.3 0l160 160c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L192 205.3 54.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l160-160z"]}},9718:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return l},hkdf:function(){return l}});let n=()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;throw Error("unable to locate global object")};var i=async(e,t,r,i,o)=>{let{crypto:{subtle:a}}=n();return new Uint8Array(await a.deriveBits({name:"HKDF",hash:`SHA-${e.substr(3)}`,salt:r,info:i},await a.importKey("raw",t,"HKDF",!1,["deriveBits"]),o<<3))};function o(e){switch(e){case"sha256":case"sha384":case"sha512":case"sha1":return e;default:throw TypeError('unsupported "digest" value')}}function a(e,t){if("string"==typeof e)return new TextEncoder().encode(e);if(!(e instanceof Uint8Array))throw TypeError(`"${t}"" must be an instance of Uint8Array or a string`);return e}function s(e){let t=a(e,"ikm");if(!t.byteLength)throw TypeError('"ikm" must be at least one byte in length');return t}function u(e){let t=a(e,"info");if(t.byteLength>1024)throw TypeError('"info" must not contain more than 1024 bytes');return t}function c(e,t){if("number"!=typeof e||!Number.isInteger(e)||e<1)throw TypeError('"keylen" must be a positive integer');let r=parseInt(t.substr(3),10)>>3||20;if(e>255*r)throw TypeError('"keylen" too large');return e}async function l(e,t,r,n,l){return i(o(e),s(t),a(r,"salt"),u(n),c(l,e))}},2136:function(e,t,r){"use strict";r.r(t),r.d(t,{CompactEncrypt:function(){return t$},CompactSign:function(){return tW},EmbeddedJWK:function(){return tQ},EncryptJWT:function(){return tG},FlattenedEncrypt:function(){return tb},FlattenedSign:function(){return tq},GeneralEncrypt:function(){return tv},GeneralSign:function(){return tK},SignJWT:function(){return tJ},UnsecuredJWT:function(){return rt},base64url:function(){return i},calculateJwkThumbprint:function(){return tY},calculateJwkThumbprintUri:function(){return tX},compactDecrypt:function(){return tu},compactVerify:function(){return tk},createLocalJWKSet:function(){return t8},createRemoteJWKSet:function(){return re},decodeJwt:function(){return ro},decodeProtectedHeader:function(){return ri},errors:function(){return n},exportJWK:function(){return tp}
115,exportPKCS8:function(){return th},exportSPKI:function(){return td},flattenedDecrypt:function(){return ts},flattenedVerify:function(){return tx},generalDecrypt:function(){return tc},generalVerify:function(){return tA},generateKeyPair:function(){return rc},generateSecret:function(){return rl},importJWK:function(){return e2},importPKCS8:function(){return e1},importSPKI:function(){return eQ},importX509:function(){return e0},jwtDecrypt:function(){return tU},jwtVerify:function(){return tB}});var n={};r.r(n),r.d(n,{JOSEAlgNotAllowed:function(){return A},JOSEError:function(){return E},JOSENotSupported:function(){return M},JWEDecryptionFailed:function(){return O},JWEInvalid:function(){return j},JWKInvalid:function(){return P},JWKSInvalid:function(){return T},JWKSMultipleMatchingKeys:function(){return N},JWKSNoMatchingKey:function(){return I},JWKSTimeout:function(){return D},JWSInvalid:function(){return R},JWSSignatureVerificationFailed:function(){return L},JWTClaimValidationFailed:function(){return x},JWTExpired:function(){return k},JWTInvalid:function(){return C}});var i={};r.r(i),r.d(i,{decode:function(){return rn},encode:function(){return rr}});var o=crypto;let a=e=>e instanceof CryptoKey,s=async(e,t)=>{let r=`SHA-${e.slice(-3)}`;return new Uint8Array(await o.subtle.digest(r,t))};var u=s;let c=new TextEncoder,l=new TextDecoder,f=4294967296;function d(...e){let t=e.reduce((e,{length:t})=>e+t,0),r=new Uint8Array(t),n=0;return e.forEach(e=>{r.set(e,n),n+=e.length}),r}function h(e,t){return d(c.encode(e),new Uint8Array([0]),t)}function p(e,t,r){if(t<0||t>=f)throw RangeError(`value must be >= 0 and <= ${f-1}. Received ${t}`);e.set([t>>>24,t>>>16,t>>>8,255&t],r)}function m(e){let t=Math.floor(e/f),r=e%f,n=new Uint8Array(8);return p(n,t,0),p(n,r,4),n}function y(e){let t=new Uint8Array(4);return p(t,e),t}function b(e){return d(y(e.length),e)}async function g(e,t,r){let n=Math.ceil((t>>3)/32),i=new Uint8Array(32*n);for(let t=0;t<n;t++){let n=new Uint8Array(4+e.length+r.length);n.set(y(t+1)),n.set(e,4),n.set(r,4+e.length),i.set(await u("sha256",n),32*t)}return i.slice(0,t>>3)}let v=e=>{let t=e;"string"==typeof t&&(t=c.encode(t));let r=32768,n=[];for(let e=0;e<t.length;e+=r)n.push(String.fromCharCode.apply(null,t.subarray(e,e+r)));return btoa(n.join(""))},w=e=>v(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"),_=e=>{let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r},S=e=>{let t=e;t instanceof Uint8Array&&(t=l.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return _(t)}catch(e){throw TypeError("The input to be decoded is not correctly encoded.")}};class E extends Error{static get code(){return"ERR_JOSE_GENERIC"}constructor(e){var t;super(e),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,null===(t=Error.captureStackTrace)||void 0===t||t.call(Error,this,this.constructor)}}class x extends E{static get code(){return"ERR_JWT_CLAIM_VALIDATION_FAILED"}constructor(e,t="unspecified",r="unspecified"){super(e),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=t,this.reason=r}}class k extends E{static get code(){return"ERR_JWT_EXPIRED"}constructor(e,t="unspecified",r="unspecified"){super(e),this.code="ERR_JWT_EXPIRED",this.claim=t,this.reason=r}}class A extends E{constructor(){super(...arguments),this.code="ERR_JOSE_ALG_NOT_ALLOWED"}static get code(){return"ERR_JOSE_ALG_NOT_ALLOWED"}}class M extends E{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}static get code(){return"ERR_JOSE_NOT_SUPPORTED"}}class O extends E{constructor(){super(...arguments),this.code="ERR_JWE_DECRYPTION_FAILED",this.message="decryption operation failed"}static get code(){return"ERR_JWE_DECRYPTION_FAILED"}}class j extends E{constructor(){super(...arguments),this.code="ERR_JWE_INVALID"}static get code(){return"ERR_JWE_INVALID"}}class R extends E{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}static get code(){return"ERR_JWS_INVALID"}}class C extends E{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}static get code(){return"ERR_JWT_INVALID"}}
115class P extends E{constructor(){super(...arguments),this.code="ERR_JWK_INVALID"}static get code(){return"ERR_JWK_INVALID"}}class T extends E{constructor(){super(...arguments),this.code="ERR_JWKS_INVALID"}static get code(){return"ERR_JWKS_INVALID"}}class I extends E{constructor(){super(...arguments),this.code="ERR_JWKS_NO_MATCHING_KEY",this.message="no applicable key found in the JSON Web Key Set"}static get code(){return"ERR_JWKS_NO_MATCHING_KEY"}}class N extends E{constructor(){super(...arguments),this.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS",this.message="multiple matching keys found in the JSON Web Key Set"}static get code(){return"ERR_JWKS_MULTIPLE_MATCHING_KEYS"}}class D extends E{constructor(){super(...arguments),this.code="ERR_JWKS_TIMEOUT",this.message="request timed out"}static get code(){return"ERR_JWKS_TIMEOUT"}}class L extends E{constructor(){super(...arguments),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED",this.message="signature verification failed"}static get code(){return"ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}var B=o.getRandomValues.bind(o);function U(e){switch(e){case"A128GCM":case"A128GCMKW":case"A192GCM":case"A192GCMKW":case"A256GCM":case"A256GCMKW":return 96;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return 128;default:throw new M(`Unsupported JWE Algorithm: ${e}`)}}var $=e=>B(new Uint8Array(U(e)>>3));let H=(e,t)=>{if(t.length<<3!==U(e))throw new j("Invalid Initialization Vector length")};var F=H;let q=(e,t)=>{let r=e.byteLength<<3;if(r!==t)throw new j(`Invalid Content Encryption Key length. Expected ${t} bits, got ${r} bits`)};var W=q;let z=(e,t)=>{if(!(e instanceof Uint8Array))throw TypeError("First argument must be a buffer");if(!(t instanceof Uint8Array))throw TypeError("Second argument must be a buffer");if(e.length!==t.length)throw TypeError("Input buffers must have the same length");let r=e.length,n=0,i=-1;for(;++i<r;)n|=e[i]^t[i];return 0===n};var K=z;function Z(){return"undefined"!=typeof WebSocketPair||"undefined"!=typeof navigator&&"Cloudflare-Workers"===navigator.userAgent||"undefined"!=typeof EdgeRuntime&&"vercel"===EdgeRuntime}function J(e,t="algorithm.name"){return TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`)}function G(e,t){return e.name===t}function V(e){return parseInt(e.name.slice(4),10)}function Y(e){switch(e){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw Error("unreachable")}}function X(e,t){if(t.length&&!t.some(t=>e.usages.includes(t))){let e="CryptoKey does not support this operation, its usages must include ";if(t.length>2){let r=t.pop();e+=`one of ${t.join(", ")}, or ${r}.`}else 2===t.length?e+=`one of ${t[0]} or ${t[1]}.`:e+=`${t[0]}.`;throw TypeError(e)}}function Q(e,t,...r){switch(t){case"HS256":case"HS384":case"HS512":{if(!G(e.algorithm,"HMAC"))throw J("HMAC");let r=parseInt(t.slice(2),10),n=V(e.algorithm.hash);if(n!==r)throw J(`SHA-${r}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!G(e.algorithm,"RSASSA-PKCS1-v1_5"))throw J("RSASSA-PKCS1-v1_5");let r=parseInt(t.slice(2),10),n=V(e.algorithm.hash);if(n!==r)throw J(`SHA-${r}`,"algorithm.hash");break}
115case"PS256":case"PS384":case"PS512":{if(!G(e.algorithm,"RSA-PSS"))throw J("RSA-PSS");let r=parseInt(t.slice(2),10),n=V(e.algorithm.hash);if(n!==r)throw J(`SHA-${r}`,"algorithm.hash");break}case"EdDSA":if("Ed25519"!==e.algorithm.name&&"Ed448"!==e.algorithm.name){if(Z()){if(G(e.algorithm,"NODE-ED25519"))break;throw J("Ed25519, Ed448, or NODE-ED25519")}throw J("Ed25519 or Ed448")}break;case"ES256":case"ES384":case"ES512":{if(!G(e.algorithm,"ECDSA"))throw J("ECDSA");let r=Y(t),n=e.algorithm.namedCurve;if(n!==r)throw J(r,"algorithm.namedCurve");break}default:throw TypeError("CryptoKey does not support this operation")}X(e,r)}function ee(e,t,...r){switch(t){case"A128GCM":case"A192GCM":case"A256GCM":{if(!G(e.algorithm,"AES-GCM"))throw J("AES-GCM");let r=parseInt(t.slice(1,4),10),n=e.algorithm.length;if(n!==r)throw J(r,"algorithm.length");break}case"A128KW":case"A192KW":case"A256KW":{if(!G(e.algorithm,"AES-KW"))throw J("AES-KW");let r=parseInt(t.slice(1,4),10),n=e.algorithm.length;if(n!==r)throw J(r,"algorithm.length");break}case"ECDH":switch(e.algorithm.name){case"ECDH":case"X25519":case"X448":break;default:throw J("ECDH, X25519, or X448")}break;case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":if(!G(e.algorithm,"PBKDF2"))throw J("PBKDF2");break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{if(!G(e.algorithm,"RSA-OAEP"))throw J("RSA-OAEP");let r=parseInt(t.slice(9),10)||1,n=V(e.algorithm.hash);if(n!==r)throw J(`SHA-${r}`,"algorithm.hash");break}default:throw TypeError("CryptoKey does not support this operation")}X(e,r)}function et(e,t,...r){if(r.length>2){let t=r.pop();e+=`one of type ${r.join(", ")}, or ${t}.`}else 2===r.length?e+=`one of type ${r[0]} or ${r[1]}.`:e+=`of type ${r[0]}.`;return null==t?e+=` Received ${t}`:"function"==typeof t&&t.name?e+=` Received function ${t.name}`:"object"==typeof t&&null!=t&&t.constructor&&t.constructor.name&&(e+=` Received an instance of ${t.constructor.name}`),e}var er=(e,...t)=>et("Key must be ",e,...t);function en(e,t,...r){return et(`Key for the ${e} algorithm must be `,t,...r)}var ei=e=>a(e);let eo=["CryptoKey"];async function ea(e,t,r,n,i,a){let s,u;if(!(t instanceof Uint8Array))throw TypeError(er(t,"Uint8Array"));let c=parseInt(e.slice(1,4),10),l=await o.subtle.importKey("raw",t.subarray(c>>3),"AES-CBC",!1,["decrypt"]),f=await o.subtle.importKey("raw",t.subarray(0,c>>3),{hash:`SHA-${c<<1}`,name:"HMAC"},!1,["sign"]),h=d(a,n,r,m(a.length<<3)),p=new Uint8Array((await o.subtle.sign("HMAC",f,h)).slice(0,c>>3));try{s=K(i,p)}catch(e){}if(!s)throw new O;try{u=new Uint8Array(await o.subtle.decrypt({iv:n,name:"AES-CBC"},l,r))}catch(e){}if(!u)throw new O;return u}async function es(e,t,r,n,i,a){let s;t instanceof Uint8Array?s=await o.subtle.importKey("raw",t,"AES-GCM",!1,["decrypt"]):(ee(t,e,"decrypt"),s=t);try{return new Uint8Array(await o.subtle.decrypt({additionalData:a,iv:n,name:"AES-GCM",tagLength:128},s,d(r,i)))}catch(e){throw new O}}let eu=async(e,t,r,n,i,o)=>{if(!a(t)&&!(t instanceof Uint8Array))throw TypeError(er(t,...eo,"Uint8Array"));switch(F(e,n),e){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return t instanceof Uint8Array&&W(t,parseInt(e.slice(-3),10)),ea(e,t,r,n,i,o);case"A128GCM":case"A192GCM":case"A256GCM":return t instanceof Uint8Array&&W(t,parseInt(e.slice(1,4),10)),es(e,t,r,n,i,o);default:throw new M("Unsupported JWE Content Encryption Algorithm")}};var ec=eu;let el=async()=>{throw new M('JWE "zip" (Compression Algorithm) Header Parameter is not supported by your javascript runtime. You need to use the `inflateRaw` decrypt option to provide Inflate Raw implementation.')},ef=async()=>{throw new M('JWE "zip" (Compression Algorithm) Header Parameter is not supported by your javascript runtime. You need to use the `deflateRaw` encrypt option to provide Deflate Raw implementation.')},ed=(...e)=>{let t;let r=e.filter(Boolean);if(0===r.length||1===r.length)return!0;for(let e of r){let r=Object.keys(e);if(!t||0===t.size){t=new Set(r);continue}for(let e of r){if(t.has(e))return!1;t.add(e)}}return!0};var eh=ed;function ep(e){return"object"==typeof e&&null!==e}function em(e){if(!ep(e)||"[object Object]"!==Object.prototype.toString.call(e))return!1;if(null===Object.getPrototypeOf(e))return!0;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}
115let ey=[{hash:"SHA-256",name:"HMAC"},!0,["sign"]];var eb=ey;function eg(e,t){if(e.algorithm.length!==parseInt(t.slice(1,4),10))throw TypeError(`Invalid key size for alg: ${t}`)}function ev(e,t,r){if(a(e))return ee(e,t,r),e;if(e instanceof Uint8Array)return o.subtle.importKey("raw",e,"AES-KW",!0,[r]);throw TypeError(er(e,...eo,"Uint8Array"))}let ew=async(e,t,r)=>{let n=await ev(t,e,"wrapKey");eg(n,e);let i=await o.subtle.importKey("raw",r,...eb);return new Uint8Array(await o.subtle.wrapKey("raw",i,n,"AES-KW"))},e_=async(e,t,r)=>{let n=await ev(t,e,"unwrapKey");eg(n,e);let i=await o.subtle.unwrapKey("raw",r,n,"AES-KW",...eb);return new Uint8Array(await o.subtle.exportKey("raw",i))};async function eS(e,t,r,n,i=new Uint8Array(0),s=new Uint8Array(0)){let u;if(!a(e))throw TypeError(er(e,...eo));if(ee(e,"ECDH"),!a(t))throw TypeError(er(t,...eo));ee(t,"ECDH","deriveBits");let l=d(b(c.encode(r)),b(i),b(s),y(n));u="X25519"===e.algorithm.name?256:"X448"===e.algorithm.name?448:Math.ceil(parseInt(e.algorithm.namedCurve.substr(-3),10)/8)<<3;let f=new Uint8Array(await o.subtle.deriveBits({name:e.algorithm.name,public:e},t,u));return g(f,n,l)}async function eE(e){if(!a(e))throw TypeError(er(e,...eo));return o.subtle.generateKey(e.algorithm,!0,["deriveBits"])}function ex(e){if(!a(e))throw TypeError(er(e,...eo));return["P-256","P-384","P-521"].includes(e.algorithm.namedCurve)||"X25519"===e.algorithm.name||"X448"===e.algorithm.name}function ek(e){if(!(e instanceof Uint8Array)||e.length<8)throw new j("PBES2 Salt Input must be 8 or more octets")}function eA(e,t){if(e instanceof Uint8Array)return o.subtle.importKey("raw",e,"PBKDF2",!1,["deriveBits"]);if(a(e))return ee(e,t,"deriveBits","deriveKey"),e;throw TypeError(er(e,...eo,"Uint8Array"))}async function eM(e,t,r,n){ek(e);let i=h(t,e),a=parseInt(t.slice(13,16),10),s={hash:`SHA-${t.slice(8,11)}`,iterations:r,name:"PBKDF2",salt:i},u={length:a,name:"AES-KW"},c=await eA(n,t);if(c.usages.includes("deriveBits"))return new Uint8Array(await o.subtle.deriveBits(s,c,a));if(c.usages.includes("deriveKey"))return o.subtle.deriveKey(s,c,u,!1,["wrapKey","unwrapKey"]);throw TypeError('PBKDF2 key "usages" must include "deriveBits" or "deriveKey"')}let eO=async(e,t,r,n=2048,i=B(new Uint8Array(16)))=>{let o=await eM(i,e,n,t),a=await ew(e.slice(-6),o,r);return{encryptedKey:a,p2c:n,p2s:w(i)}},ej=async(e,t,r,n,i)=>{let o=await eM(i,e,n,t);return e_(e.slice(-6),o,r)};function eR(e){switch(e){case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":return"RSA-OAEP";default:throw new M(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}var eC=(e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){let{modulusLength:r}=t.algorithm;if("number"!=typeof r||r<2048)throw TypeError(`${e} requires key modulusLength to be 2048 bits or larger`)}};let eP=async(e,t,r)=>{if(!a(t))throw TypeError(er(t,...eo));if(ee(t,e,"encrypt","wrapKey"),eC(e,t),t.usages.includes("encrypt"))return new Uint8Array(await o.subtle.encrypt(eR(e),t,r));if(t.usages.includes("wrapKey")){let n=await o.subtle.importKey("raw",r,...eb);return new Uint8Array(await o.subtle.wrapKey("raw",n,t,eR(e)))}throw TypeError('RSA-OAEP key "usages" must include "encrypt" or "wrapKey" for this operation')},eT=async(e,t,r)=>{if(!a(t))throw TypeError(er(t,...eo));if(ee(t,e,"decrypt","unwrapKey"),eC(e,t),t.usages.includes("decrypt"))return new Uint8Array(await o.subtle.decrypt(eR(e),t,r));if(t.usages.includes("unwrapKey")){let n=await o.subtle.unwrapKey("raw",r,t,eR(e),...eb);return new Uint8Array(await o.subtle.exportKey("raw",n))}throw TypeError('RSA-OAEP key "usages" must include "decrypt" or "unwrapKey" for this operation')};function eI(e){switch(e){case"A128GCM":return 128;case"A192GCM":return 192;case"A256GCM":case"A128CBC-HS256":return 256;case"A192CBC-HS384":return 384;case"A256CBC-HS512":return 512;default:throw new M(`Unsupported JWE Algorithm: ${e}`)}}var eN=e=>B(new Uint8Array(eI(e)>>3)),eD=(e,t)=>{let r=(e.match(/.{1,64}/g)||[]).join("\n");return`-----BEGIN ${t}----- 116${r} 117-----END ${t}-----`};let eL=async(e,t,r)=>{if(!a(r))throw TypeError(er(r,...eo));if(!r.extractable)throw TypeError("CryptoKey is not extractable");if(r.type!==e)throw TypeError(`key is not a ${e} key`);return eD(v(new Uint8Array(await o.subtle.exportKey(t,r))),`${e.toUpperCase()} KEY`)},eB=e=>eL("public","spki",e),eU=e=>eL("private","pkcs8",e),e$=(e,t,r=0)=>{0===r&&(t.unshift(t.length),t.unshift(6));let n=e.indexOf(t[0],r);if(-1===n)return!1;let i=e.subarray(n,n+t.length);return i.length===t.length&&(i.every((e,r)=>e===t[r])||e$(e,t,n+1))},eH=e=>{switch(!0){case e$(e,[42,134,72,206,61,3,1,7]):return"P-256";case e$(e,[43,129,4,0,34]):return"P-384";case e$(e,[43,129,4,0,35]):return"P-521";case e$(e,[43,101,110]):return"X25519";case e$(e,[43,101,111]):return"X448";case e$(e,[43,101,112]):return"Ed25519";case e$(e,[43,101,113]):return"Ed448";default:throw new M("Invalid or unsupported EC Key Curve or OKP Key Sub Type")}},eF=async(e,t,r,n,i)=>{var a,s;let u,c;let l=new Uint8Array(atob(r.replace(e,"")).split("").map(e=>e.charCodeAt(0))),f="spki"===t;switch(n){case"PS256":case"PS384":case"PS512":u={name:"RSA-PSS",hash:`SHA-${n.slice(-3)}`},c=f?["verify"]:["sign"];break;case"RS256":case"RS384":case"RS512":u={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${n.slice(-3)}`},c=f?["verify"]:["sign"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":u={name:"RSA-OAEP",hash:`SHA-${parseInt(n.slice(-3),10)||1}`},c=f?["encrypt","wrapKey"]:["decrypt","unwrapKey"];break;case"ES256":u={name:"ECDSA",namedCurve:"P-256"},c=f?["verify"]:["sign"];break;case"ES384":u={name:"ECDSA",namedCurve:"P-384"},c=f?["verify"]:["sign"];break;case"ES512":u={name:"ECDSA",namedCurve:"P-521"},c=f?["verify"]:["sign"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{let e=eH(l);u=e.startsWith("P-")?{name:"ECDH",namedCurve:e}:{name:e},c=f?[]:["deriveBits"];break}
117case"EdDSA":u={name:eH(l)},c=f?["verify"]:["sign"];break;default:throw new M('Invalid or unsupported "alg" (Algorithm) value')}try{return await o.subtle.importKey(t,l,u,null!==(a=null==i?void 0:i.extractable)&&void 0!==a&&a,c)}catch(e){if("Ed25519"===u.name&&(null==e?void 0:e.name)==="NotSupportedError"&&Z())return u={name:"NODE-ED25519",namedCurve:"NODE-ED25519"},await o.subtle.importKey(t,l,u,null!==(s=null==i?void 0:i.extractable)&&void 0!==s&&s,c);throw e}},eq=(e,t,r)=>eF(/(?:-----(?:BEGIN|END) PRIVATE KEY-----|\s)/g,"pkcs8",e,t,r),eW=(e,t,r)=>eF(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g,"spki",e,t,r);function ez(e){let t=[],r=0;for(;r<e.length;){let n=eK(e.subarray(r));t.push(n),r+=n.byteLength}return t}function eK(e){let t=0,r=31&e[0];if(t++,31===r){for(r=0;e[t]>=128;)r=128*r+e[t]-128,t++;r=128*r+e[t]-128,t++}let n=0;if(e[t]<128)n=e[t],t++;else if(128===n){for(n=0;0!==e[t+n]||0!==e[t+n+1];){if(n>e.byteLength)throw TypeError("invalid indefinite form length");n++}let r=t+n+2;return{byteLength:r,contents:e.subarray(t,t+n),raw:e.subarray(0,r)}}else{let r=127&e[t];t++,n=0;for(let i=0;i<r;i++)n=256*n+e[t],t++}let i=t+n;return{byteLength:i,contents:e.subarray(t,i),raw:e.subarray(0,i)}}function eZ(e){let t=ez(ez(eK(e).contents)[0].contents);return v(t[160===t[0].raw[0]?6:5].raw)}function eJ(e){let t=e.replace(/(?:-----(?:BEGIN|END) CERTIFICATE-----|\s)/g,""),r=_(t);return eD(eZ(r),"PUBLIC KEY")}let eG=(e,t,r)=>{let n;try{n=eJ(e)}catch(e){throw TypeError("failed to parse the X.509 certificate",{cause:e})}return eW(n,t,r)};function eV(e){let t,r;switch(e.kty){case"oct":switch(e.alg){case"HS256":case"HS384":case"HS512":t={name:"HMAC",hash:`SHA-${e.alg.slice(-3)}`},r=["sign","verify"];break;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":throw new M(`${e.alg} keys cannot be imported as CryptoKey instances`);case"A128GCM":case"A192GCM":case"A256GCM":case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":t={name:"AES-GCM"},r=["encrypt","decrypt"];break;case"A128KW":case"A192KW":case"A256KW":t={name:"AES-KW"},r=["wrapKey","unwrapKey"];break;case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":t={name:"PBKDF2"},r=["deriveBits"];break;default:throw new M('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"RSA":switch(e.alg){case"PS256":case"PS384":case"PS512":t={name:"RSA-PSS",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":t={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":t={name:"RSA-OAEP",hash:`SHA-${parseInt(e.alg.slice(-3),10)||1}`},r=e.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new M('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"EC":switch(e.alg){case"ES256":t={name:"ECDSA",namedCurve:"P-256"},r=e.d?["sign"]:["verify"];break;case"ES384":t={name:"ECDSA",namedCurve:"P-384"},r=e.d?["sign"]:["verify"];break;case"ES512":t={name:"ECDSA",namedCurve:"P-521"},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:"ECDH",namedCurve:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new M('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"OKP":switch(e.alg){case"EdDSA":t={name:e.crv},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new M('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;default:throw new M('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:t,keyUsages:r}}let eY=async e=>{var t,r;if(!e.alg)throw TypeError('"alg" argument is required when "jwk.alg" is not present');let{algorithm:n,keyUsages:i}=eV(e),a=[n,null!==(t=e.ext)&&void 0!==t&&t,null!==(r=e.key_ops)&&void 0!==r?r:i];if("PBKDF2"===n.name)return o.subtle.importKey("raw",S(e.k),...a);let s={...e};delete s.alg,delete s.use;try{return await o.subtle.importKey("jwk",s,...a)}catch(e){if("Ed25519"===n.name&&(null==e?void 0:e.name)==="NotSupportedError"&&Z())return a[0]={name:"NODE-ED25519",namedCurve:"NODE-ED25519"},await o.subtle.importKey("jwk",s,...a);throw e}};var eX=eY;async function eQ(e,t,r){if("string"!=typeof e||0!==e.indexOf("-----BEGIN PUBLIC KEY-----"))throw TypeError('"spki" must be SPKI formatted string');return eW(e,t,r)}async function e0(e,t,r){if("string"!=typeof e||0!==e.indexOf("-----BEGIN CERTIFICATE-----"))throw TypeError('"x509" must be X.509 formatted string');return eG(e,t,r)}async function e1(e,t,r){if("string"!=typeof e||0!==e.indexOf("-----BEGIN PRIVATE KEY-----"))throw TypeError('"pkcs8" must be PKCS#8 formatted string');return eq(e,t,r)}async function e2(e,t,r){var n;if(!em(e))throw TypeError("JWK must be an object");switch(t||(t=e.alg),e.kty){case"oct":if("string"!=typeof e.k||!e.k)throw TypeError('missing "k" (Key Value) Parameter value');
117if(null!=r||(r=!0!==e.ext),r)return eX({...e,alg:t,ext:null!==(n=e.ext)&&void 0!==n&&n});return S(e.k);case"RSA":if(void 0!==e.oth)throw new M('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');case"EC":case"OKP":return eX({...e,alg:t});default:throw new M('Unsupported "kty" (Key Type) Parameter value')}}let e6=(e,t)=>{if(!(t instanceof Uint8Array)){if(!ei(t))throw TypeError(en(e,t,...eo,"Uint8Array"));if("secret"!==t.type)throw TypeError(`${eo.join(" or ")} instances for symmetric algorithms must be of type "secret"`)}},e3=(e,t,r)=>{if(!ei(t))throw TypeError(en(e,t,...eo));if("secret"===t.type)throw TypeError(`${eo.join(" or ")} instances for asymmetric algorithms must not be of type "secret"`);if("sign"===r&&"public"===t.type)throw TypeError(`${eo.join(" or ")} instances for asymmetric algorithm signing must be of type "private"`);if("decrypt"===r&&"public"===t.type)throw TypeError(`${eo.join(" or ")} instances for asymmetric algorithm decryption must be of type "private"`);if(t.algorithm&&"verify"===r&&"private"===t.type)throw TypeError(`${eo.join(" or ")} instances for asymmetric algorithm verifying must be of type "public"`);if(t.algorithm&&"encrypt"===r&&"private"===t.type)throw TypeError(`${eo.join(" or ")} instances for asymmetric algorithm encryption must be of type "public"`)},e4=(e,t,r)=>{let n=e.startsWith("HS")||"dir"===e||e.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(e);n?e6(e,t):e3(e,t,r)};var e8=e4;async function e5(e,t,r,n,i){if(!(r instanceof Uint8Array))throw TypeError(er(r,"Uint8Array"));let a=parseInt(e.slice(1,4),10),s=await o.subtle.importKey("raw",r.subarray(a>>3),"AES-CBC",!1,["encrypt"]),u=await o.subtle.importKey("raw",r.subarray(0,a>>3),{hash:`SHA-${a<<1}`,name:"HMAC"},!1,["sign"]),c=new Uint8Array(await o.subtle.encrypt({iv:n,name:"AES-CBC"},s,t)),l=d(i,n,c,m(i.length<<3)),f=new Uint8Array((await o.subtle.sign("HMAC",u,l)).slice(0,a>>3));return{ciphertext:c,tag:f}}async function e7(e,t,r,n,i){let a;r instanceof Uint8Array?a=await o.subtle.importKey("raw",r,"AES-GCM",!1,["encrypt"]):(ee(r,e,"encrypt"),a=r);let s=new Uint8Array(await o.subtle.encrypt({additionalData:i,iv:n,name:"AES-GCM",tagLength:128},a,t)),u=s.slice(-16),c=s.slice(0,-16);return{ciphertext:c,tag:u}}let e9=async(e,t,r,n,i)=>{if(!a(r)&&!(r instanceof Uint8Array))throw TypeError(er(r,...eo,"Uint8Array"));switch(F(e,n),e){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return r instanceof Uint8Array&&W(r,parseInt(e.slice(-3),10)),e5(e,t,r,n,i);case"A128GCM":case"A192GCM":case"A256GCM":return r instanceof Uint8Array&&W(r,parseInt(e.slice(1,4),10)),e7(e,t,r,n,i);default:throw new M("Unsupported JWE Content Encryption Algorithm")}};var te=e9;async function tt(e,t,r,n){let i=e.slice(0,7);n||(n=$(i));let{ciphertext:o,tag:a}=await te(i,r,t,n,new Uint8Array(0));return{encryptedKey:o,iv:w(n),tag:w(a)}}async function tr(e,t,r,n,i){let o=e.slice(0,7);return ec(o,t,r,n,i,new Uint8Array(0))}var tn=async function(e,t,r,n,i){switch(e8(e,t,"decrypt"),e){case"dir":if(void 0!==r)throw new j("Encountered unexpected JWE Encrypted Key");return t;case"ECDH-ES":if(void 0!==r)throw new j("Encountered unexpected JWE Encrypted Key");case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{let i,o;if(!em(n.epk))throw new j('JOSE Header "epk" (Ephemeral Public Key) missing or invalid');if(!ex(t))throw new M("ECDH with the provided key is not allowed or not supported by your javascript runtime");let a=await e2(n.epk,e);if(void 0!==n.apu){if("string"!=typeof n.apu)throw new j('JOSE Header "apu" (Agreement PartyUInfo) invalid');i=S(n.apu)}if(void 0!==n.apv){if("string"!=typeof n.apv)throw new j('JOSE Header "apv" (Agreement PartyVInfo) invalid');o=S(n.apv)}let s=await eS(a,t,"ECDH-ES"===e?n.enc:e,"ECDH-ES"===e?eI(n.enc):parseInt(e.slice(-5,-2),10),i,o);if("ECDH-ES"===e)return s;if(void 0===r)throw new j("JWE Encrypted Key missing");return e_(e.slice(-6),s,r)}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":if(void 0===r)throw new j("JWE Encrypted Key missing");return eT(e,t,r);case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{if(void 0===r)throw new j("JWE Encrypted Key missing");if("number"!=typeof n.p2c)throw new j('JOSE Header "p2c" (PBES2 Count) missing or invalid');let o=(null==i?void 0:i.maxPBES2Count)||1e4;if(n.p2c>o)throw new j('JOSE Header "p2c" (PBES2 Count) out is of acceptable bounds');if("string"!=typeof n.p2s)throw new j('JOSE Header "p2s" (PBES2 Salt) missing or invalid');return ej(e,t,r,n.p2c,S(n.p2s))}
117case"A128KW":case"A192KW":case"A256KW":if(void 0===r)throw new j("JWE Encrypted Key missing");return e_(e,t,r);case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{if(void 0===r)throw new j("JWE Encrypted Key missing");if("string"!=typeof n.iv)throw new j('JOSE Header "iv" (Initialization Vector) missing or invalid');if("string"!=typeof n.tag)throw new j('JOSE Header "tag" (Authentication Tag) missing or invalid');let i=S(n.iv),o=S(n.tag);return tr(e,t,r,i,o)}default:throw new M('Invalid or unsupported "alg" (JWE Algorithm) header value')}},ti=function(e,t,r,n,i){let o;if(void 0!==i.crit&&void 0===n.crit)throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!n||void 0===n.crit)return new Set;if(!Array.isArray(n.crit)||0===n.crit.length||n.crit.some(e=>"string"!=typeof e||0===e.length))throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');for(let a of(o=void 0!==r?new Map([...Object.entries(r),...t.entries()]):t,n.crit)){if(!o.has(a))throw new M(`Extension Header Parameter "${a}" is not recognized`);if(void 0===i[a])throw new e(`Extension Header Parameter "${a}" is missing`);if(o.get(a)&&void 0===n[a])throw new e(`Extension Header Parameter "${a}" MUST be integrity protected`)}return new Set(n.crit)};let to=(e,t)=>{if(void 0!==t&&(!Array.isArray(t)||t.some(e=>"string"!=typeof e)))throw TypeError(`"${e}" option must be an array of strings`);if(t)return new Set(t)};var ta=to;async function ts(e,t,r){var n;let i,o,a,s;if(!em(e))throw new j("Flattened JWE must be an object");if(void 0===e.protected&&void 0===e.header&&void 0===e.unprotected)throw new j("JOSE Header missing");if("string"!=typeof e.iv)throw new j("JWE Initialization Vector missing or incorrect type");if("string"!=typeof e.ciphertext)throw new j("JWE Ciphertext missing or incorrect type");if("string"!=typeof e.tag)throw new j("JWE Authentication Tag missing or incorrect type");if(void 0!==e.protected&&"string"!=typeof e.protected)throw new j("JWE Protected Header incorrect type");if(void 0!==e.encrypted_key&&"string"!=typeof e.encrypted_key)throw new j("JWE Encrypted Key incorrect type");if(void 0!==e.aad&&"string"!=typeof e.aad)throw new j("JWE AAD incorrect type");if(void 0!==e.header&&!em(e.header))throw new j("JWE Shared Unprotected Header incorrect type");if(void 0!==e.unprotected&&!em(e.unprotected))throw new j("JWE Per-Recipient Unprotected Header incorrect type");if(e.protected)try{let t=S(e.protected);i=JSON.parse(l.decode(t))}catch(e){throw new j("JWE Protected Header is invalid")}if(!eh(i,e.header,e.unprotected))throw new j("JWE Protected, JWE Unprotected Header, and JWE Per-Recipient Unprotected Header Parameter names must be disjoint");let u={...i,...e.header,...e.unprotected};if(ti(j,new Map,null==r?void 0:r.crit,i,u),void 0!==u.zip){if(!i||!i.zip)throw new j('JWE "zip" (Compression Algorithm) Header MUST be integrity protected');if("DEF"!==u.zip)throw new M('Unsupported JWE "zip" (Compression Algorithm) Header Parameter value')}let{alg:f,enc:h}=u;if("string"!=typeof f||!f)throw new j("missing JWE Algorithm (alg) in JWE Header");if("string"!=typeof h||!h)throw new j("missing JWE Encryption Algorithm (enc) in JWE Header");let p=r&&ta("keyManagementAlgorithms",r.keyManagementAlgorithms),m=r&&ta("contentEncryptionAlgorithms",r.contentEncryptionAlgorithms);if(p&&!p.has(f))throw new A('"alg" (Algorithm) Header Parameter not allowed');if(m&&!m.has(h))throw new A('"enc" (Encryption Algorithm) Header Parameter not allowed');void 0!==e.encrypted_key&&(o=S(e.encrypted_key));let y=!1;"function"==typeof t&&(t=await t(i,e),y=!0);try{a=await tn(f,t,o,u,r)}catch(e){if(e instanceof TypeError||e instanceof j||e instanceof M)throw e;a=eN(h)}let b=S(e.iv),g=S(e.tag),v=c.encode(null!==(n=e.protected)&&void 0!==n?n:"");s=void 0!==e.aad?d(v,c.encode("."),c.encode(e.aad)):v;let w=await ec(h,a,S(e.ciphertext),b,g,s);"DEF"===u.zip&&(w=await ((null==r?void 0:r.inflateRaw)||el)(w));let _={plaintext:w};return(void 0!==e.protected&&(_.protectedHeader=i),void 0!==e.aad&&(_.additionalAuthenticatedData=S(e.aad)),void 0!==e.unprotected&&(_.sharedUnprotectedHeader=e.unprotected),void 0!==e.header&&(_.unprotectedHeader=e.header),y)?{..._,key:t}:_}async function tu(e,t,r){if(e instanceof Uint8Array&&(e=l.decode(e)),"string"!=typeof e)throw new j("Compact JWE must be a string or Uint8Array");let{0:n,1:i,2:o,3:a,4:s,length:u}=e.split(".");if(5!==u)throw new j("Invalid Compact JWE");
117let c=await ts({ciphertext:a,iv:o||void 0,protected:n||void 0,tag:s||void 0,encrypted_key:i||void 0},t,r),f={plaintext:c.plaintext,protectedHeader:c.protectedHeader};return"function"==typeof t?{...f,key:c.key}:f}async function tc(e,t,r){if(!em(e))throw new j("General JWE must be an object");if(!Array.isArray(e.recipients)||!e.recipients.every(em))throw new j("JWE Recipients missing or incorrect type");if(!e.recipients.length)throw new j("JWE Recipients has no members");for(let n of e.recipients)try{return await ts({aad:e.aad,ciphertext:e.ciphertext,encrypted_key:n.encrypted_key,header:n.header,iv:e.iv,protected:e.protected,tag:e.tag,unprotected:e.unprotected},t,r)}catch(e){}throw new O}let tl=async e=>{if(e instanceof Uint8Array)return{kty:"oct",k:w(e)};if(!a(e))throw TypeError(er(e,...eo,"Uint8Array"));if(!e.extractable)throw TypeError("non-extractable CryptoKey cannot be exported as a JWK");let{ext:t,key_ops:r,alg:n,use:i,...s}=await o.subtle.exportKey("jwk",e);return s};var tf=tl;async function td(e){return eB(e)}async function th(e){return eU(e)}async function tp(e){return tf(e)}var tm=async function(e,t,r,n,i={}){let o,a,s;switch(e8(e,r,"encrypt"),e){case"dir":s=r;break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{if(!ex(r))throw new M("ECDH with the provided key is not allowed or not supported by your javascript runtime");let{apu:u,apv:c}=i,{epk:l}=i;l||(l=(await eE(r)).privateKey);let{x:f,y:d,crv:h,kty:p}=await tp(l),m=await eS(r,l,"ECDH-ES"===e?t:e,"ECDH-ES"===e?eI(t):parseInt(e.slice(-5,-2),10),u,c);if(a={epk:{x:f,crv:h,kty:p}},"EC"===p&&(a.epk.y=d),u&&(a.apu=w(u)),c&&(a.apv=w(c)),"ECDH-ES"===e){s=m;break}s=n||eN(t);let y=e.slice(-6);o=await ew(y,m,s);break}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":s=n||eN(t),o=await eP(e,r,s);break;case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{s=n||eN(t);let{p2c:u,p2s:c}=i;({encryptedKey:o,...a}=await eO(e,r,s,u,c));break}case"A128KW":case"A192KW":case"A256KW":s=n||eN(t),o=await ew(e,r,s);break;case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{s=n||eN(t);let{iv:u}=i;({encryptedKey:o,...a}=await tt(e,r,s,u));break}default:throw new M('Invalid or unsupported "alg" (JWE Algorithm) header value')}return{cek:s,encryptedKey:o,parameters:a}};let ty=Symbol();class tb{constructor(e){if(!(e instanceof Uint8Array))throw TypeError("plaintext must be an instance of Uint8Array");this._plaintext=e}setKeyManagementParameters(e){if(this._keyManagementParameters)throw TypeError("setKeyManagementParameters can only be called once");return this._keyManagementParameters=e,this}setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setSharedUnprotectedHeader(e){if(this._sharedUnprotectedHeader)throw TypeError("setSharedUnprotectedHeader can only be called once");return this._sharedUnprotectedHeader=e,this}setUnprotectedHeader(e){if(this._unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}setAdditionalAuthenticatedData(e){return this._aad=e,this}setContentEncryptionKey(e){if(this._cek)throw TypeError("setContentEncryptionKey can only be called once");return this._cek=e,this}setInitializationVector(e){if(this._iv)throw TypeError("setInitializationVector can only be called once");return this._iv=e,this}async encrypt(e,t){let r,n,i,o,a,s,u;if(!this._protectedHeader&&!this._unprotectedHeader&&!this._sharedUnprotectedHeader)throw new j("either setProtectedHeader, setUnprotectedHeader, or sharedUnprotectedHeader must be called before #encrypt()");if(!eh(this._protectedHeader,this._unprotectedHeader,this._sharedUnprotectedHeader))throw new j("JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint");let f={...this._protectedHeader,...this._unprotectedHeader,...this._sharedUnprotectedHeader};if(ti(j,new Map,null==t?void 0:t.crit,this._protectedHeader,f),void 0!==f.zip){if(!this._protectedHeader||!this._protectedHeader.zip)throw new j('JWE "zip" (Compression Algorithm) Header MUST be integrity protected');if("DEF"!==f.zip)throw new M('Unsupported JWE "zip" (Compression Algorithm) Header Parameter value')}let{alg:h,enc:p}=f;if("string"!=typeof h||!h)throw new j('JWE "alg" (Algorithm) Header Parameter missing or invalid');if("string"!=typeof p||!p)throw new j('JWE "enc" (Encryption Algorithm) Header Parameter missing or invalid');if("dir"===h){if(this._cek)throw TypeError("setContentEncryptionKey cannot be called when using Direct Encryption")}else if("ECDH-ES"===h&&this._cek)throw TypeError("setContentEncryptionKey cannot be called when using Direct Key Agreement");{let i;({cek:n,encryptedKey:r,parameters:i}=await tm(h,p,e,this._cek,this._keyManagementParameters)),i&&(t&&ty in t?this._unprotectedHeader?this._unprotectedHeader={...this._unprotectedHeader,...i}:this.setUnprotectedHeader(i):this._protectedHeader?this._protectedHeader={...this._protectedHeader,...i}:this.setProtectedHeader(i))}if(this._iv||(this._iv=$(p)),o=this._protectedHeader?c.encode(w(JSON.stringify(this._protectedHeader))):c.encode(""),this._aad?(a=w(this._aad),i=d(o,c.encode("."),c.encode(a))):i=o,"DEF"===f.zip){let e=await ((null==t?void 0:t.deflateRaw)||ef)(this._plaintext);({ciphertext:s,tag:u}
117=await te(p,e,n,this._iv,i))}else({ciphertext:s,tag:u}=await te(p,this._plaintext,n,this._iv,i));let m={ciphertext:w(s),iv:w(this._iv),tag:w(u)};return r&&(m.encrypted_key=w(r)),a&&(m.aad=a),this._protectedHeader&&(m.protected=l.decode(o)),this._sharedUnprotectedHeader&&(m.unprotected=this._sharedUnprotectedHeader),this._unprotectedHeader&&(m.header=this._unprotectedHeader),m}}class tg{constructor(e,t,r){this.parent=e,this.key=t,this.options=r}setUnprotectedHeader(e){if(this.unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this.unprotectedHeader=e,this}addRecipient(...e){return this.parent.addRecipient(...e)}encrypt(...e){return this.parent.encrypt(...e)}done(){return this.parent}}class tv{constructor(e){this._recipients=[],this._plaintext=e}addRecipient(e,t){let r=new tg(this,e,{crit:null==t?void 0:t.crit});return this._recipients.push(r),r}setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setSharedUnprotectedHeader(e){if(this._unprotectedHeader)throw TypeError("setSharedUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}setAdditionalAuthenticatedData(e){return this._aad=e,this}async encrypt(e){var t,r,n;let i;if(!this._recipients.length)throw new j("at least one recipient must be added");if(e={deflateRaw:null==e?void 0:e.deflateRaw},1===this._recipients.length){let[t]=this._recipients,r=await new tb(this._plaintext).setAdditionalAuthenticatedData(this._aad).setProtectedHeader(this._protectedHeader).setSharedUnprotectedHeader(this._unprotectedHeader).setUnprotectedHeader(t.unprotectedHeader).encrypt(t.key,{...t.options,...e}),n={ciphertext:r.ciphertext,iv:r.iv,recipients:[{}],tag:r.tag};return r.aad&&(n.aad=r.aad),r.protected&&(n.protected=r.protected),r.unprotected&&(n.unprotected=r.unprotected),r.encrypted_key&&(n.recipients[0].encrypted_key=r.encrypted_key),r.header&&(n.recipients[0].header=r.header),n}for(let e=0;e<this._recipients.length;e++){let t=this._recipients[e];if(!eh(this._protectedHeader,this._unprotectedHeader,t.unprotectedHeader))throw new j("JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint");let r={...this._protectedHeader,...this._unprotectedHeader,...t.unprotectedHeader},{alg:n}=r;if("string"!=typeof n||!n)throw new j('JWE "alg" (Algorithm) Header Parameter missing or invalid');if("dir"===n||"ECDH-ES"===n)throw new j('"dir" and "ECDH-ES" alg may only be used with a single recipient');if("string"!=typeof r.enc||!r.enc)throw new j('JWE "enc" (Encryption Algorithm) Header Parameter missing or invalid');if(i){if(i!==r.enc)throw new j('JWE "enc" (Encryption Algorithm) Header Parameter must be the same for all recipients')}else i=r.enc;
117if(ti(j,new Map,t.options.crit,this._protectedHeader,r),void 0!==r.zip&&(!this._protectedHeader||!this._protectedHeader.zip))throw new j('JWE "zip" (Compression Algorithm) Header MUST be integrity protected')}let o=eN(i),a={ciphertext:"",iv:"",recipients:[],tag:""};for(let s=0;s<this._recipients.length;s++){let u=this._recipients[s],c={};a.recipients.push(c);let l={...this._protectedHeader,...this._unprotectedHeader,...u.unprotectedHeader},f=l.alg.startsWith("PBES2")?2048+s:void 0;if(0===s){let t=await new tb(this._plaintext).setAdditionalAuthenticatedData(this._aad).setContentEncryptionKey(o).setProtectedHeader(this._protectedHeader).setSharedUnprotectedHeader(this._unprotectedHeader).setUnprotectedHeader(u.unprotectedHeader).setKeyManagementParameters({p2c:f}).encrypt(u.key,{...u.options,...e,[ty]:!0});a.ciphertext=t.ciphertext,a.iv=t.iv,a.tag=t.tag,t.aad&&(a.aad=t.aad),t.protected&&(a.protected=t.protected),t.unprotected&&(a.unprotected=t.unprotected),c.encrypted_key=t.encrypted_key,t.header&&(c.header=t.header);continue}let{encryptedKey:d,parameters:h}=await tm((null===(t=u.unprotectedHeader)||void 0===t?void 0:t.alg)||(null===(r=this._protectedHeader)||void 0===r?void 0:r.alg)||(null===(n=this._unprotectedHeader)||void 0===n?void 0:n.alg),i,u.key,o,{p2c:f});c.encrypted_key=w(d),(u.unprotectedHeader||h)&&(c.header={...u.unprotectedHeader,...h})}return a}}function tw(e,t){let r=`SHA-${e.slice(-3)}`;switch(e){case"HS256":case"HS384":case"HS512":return{hash:r,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:r,name:"RSA-PSS",saltLength:e.slice(-3)>>3};case"RS256":case"RS384":case"RS512":return{hash:r,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:r,name:"ECDSA",namedCurve:t.namedCurve};case"EdDSA":if(Z()&&"NODE-ED25519"===t.name)return{name:"NODE-ED25519",namedCurve:"NODE-ED25519"};return{name:t.name};default:throw new M(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}function t_(e,t,r){if(a(t))return Q(t,e,r),t;if(t instanceof Uint8Array){if(!e.startsWith("HS"))throw TypeError(er(t,...eo));return o.subtle.importKey("raw",t,{hash:`SHA-${e.slice(-3)}`,name:"HMAC"},!1,[r])}throw TypeError(er(t,...eo,"Uint8Array"))}let tS=async(e,t,r,n)=>{let i=await t_(e,t,"verify");eC(e,i);let a=tw(e,i.algorithm);try{return await o.subtle.verify(a,i,r,n)}catch(e){return!1}};var tE=tS;async function tx(e,t,r){var n;let i;if(!em(e))throw new R("Flattened JWS must be an object");if(void 0===e.protected&&void 0===e.header)throw new R('Flattened JWS must have either of the "protected" or "header" members');if(void 0!==e.protected&&"string"!=typeof e.protected)throw new R("JWS Protected Header incorrect type");if(void 0===e.payload)throw new R("JWS Payload missing");if("string"!=typeof e.signature)throw new R("JWS Signature missing or incorrect type");if(void 0!==e.header&&!em(e.header))throw new R("JWS Unprotected Header incorrect type");let o={};if(e.protected)try{let t=S(e.protected);o=JSON.parse(l.decode(t))}catch(e){throw new R("JWS Protected Header is invalid")}if(!eh(o,e.header))throw new R("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let a={...o,...e.header},s=ti(R,new Map([["b64",!0]]),null==r?void 0:r.crit,o,a),u=!0;if(s.has("b64")&&"boolean"!=typeof(u=o.b64))throw new R('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:f}=a;if("string"!=typeof f||!f)throw new R('JWS "alg" (Algorithm) Header Parameter missing or invalid');let h=r&&ta("algorithms",r.algorithms);if(h&&!h.has(f))throw new A('"alg" (Algorithm) Header Parameter not allowed');if(u){if("string"!=typeof e.payload)throw new R("JWS Payload must be a string")}else if("string"!=typeof e.payload&&!(e.payload instanceof Uint8Array))throw new R("JWS Payload must be a string or an Uint8Array instance");let p=!1;"function"==typeof t&&(t=await t(o,e),p=!0),e8(f,t,"verify");let m=d(c.encode(null!==(n=e.protected)&&void 0!==n?n:""),c.encode("."),"string"==typeof e.payload?c.encode(e.payload):e.payload),y=S(e.signature),b=await tE(f,t,y,m);if(!b)throw new L;i=u?S(e.payload):"string"==typeof e.payload?c.encode(e.payload):e.payload;let g={payload:i};return(void 0!==e.protected&&(g.protectedHeader=o),void 0!==e.header&&(g.unprotectedHeader=e.header),p)?{...g,key:t}:g}async function tk(e,t,r){if(e instanceof Uint8Array&&(e=l.decode(e)),"string"!=typeof e)throw new R("Compact JWS must be a string or Uint8Array");let{0:n,1:i,2:o,length:a}=e.split(".");if(3!==a)throw new R("Invalid Compact JWS");let s=await tx({payload:i,protected:n,signature:o},t,r),u={payload:s.payload,protectedHeader:s.protectedHeader};return"function"==typeof t?{...u,key:s.key}:u}
117async function tA(e,t,r){if(!em(e))throw new R("General JWS must be an object");if(!Array.isArray(e.signatures)||!e.signatures.every(em))throw new R("JWS Signatures missing or incorrect type");for(let n of e.signatures)try{return await tx({header:n.header,payload:e.payload,protected:n.protected,signature:n.signature},t,r)}catch(e){}throw new L}var tM=e=>Math.floor(e.getTime()/1e3);let tO=60,tj=60*tO,tR=24*tj,tC=7*tR,tP=365.25*tR,tT=/^(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)$/i;var tI=e=>{let t=tT.exec(e);if(!t)throw TypeError("Invalid time period format");let r=parseFloat(t[1]),n=t[2].toLowerCase();switch(n){case"sec":case"secs":case"second":case"seconds":case"s":return Math.round(r);case"minute":case"minutes":case"min":case"mins":case"m":return Math.round(r*tO);case"hour":case"hours":case"hr":case"hrs":case"h":return Math.round(r*tj);case"day":case"days":case"d":return Math.round(r*tR);case"week":case"weeks":case"w":return Math.round(r*tC);default:return Math.round(r*tP)}};let tN=e=>e.toLowerCase().replace(/^application\//,""),tD=(e,t)=>"string"==typeof e?t.includes(e):!!Array.isArray(e)&&t.some(Set.prototype.has.bind(new Set(e)));var tL=(e,t,r={})=>{let n,i;let{typ:o}=r;if(o&&("string"!=typeof e.typ||tN(e.typ)!==tN(o)))throw new x('unexpected "typ" JWT header value',"typ","check_failed");try{n=JSON.parse(l.decode(t))}catch(e){}if(!em(n))throw new C("JWT Claims Set must be a top-level JSON object");let{issuer:a}=r;if(a&&!(Array.isArray(a)?a:[a]).includes(n.iss))throw new x('unexpected "iss" claim value',"iss","check_failed");let{subject:s}=r;if(s&&n.sub!==s)throw new x('unexpected "sub" claim value',"sub","check_failed");let{audience:u}=r;if(u&&!tD(n.aud,"string"==typeof u?[u]:u))throw new x('unexpected "aud" claim value',"aud","check_failed");switch(typeof r.clockTolerance){case"string":i=tI(r.clockTolerance);break;case"number":i=r.clockTolerance;break;case"undefined":i=0;break;default:throw TypeError("Invalid clockTolerance option type")}let{currentDate:c}=r,f=tM(c||new Date);if((void 0!==n.iat||r.maxTokenAge)&&"number"!=typeof n.iat)throw new x('"iat" claim must be a number',"iat","invalid");if(void 0!==n.nbf){if("number"!=typeof n.nbf)throw new x('"nbf" claim must be a number',"nbf","invalid");if(n.nbf>f+i)throw new x('"nbf" claim timestamp check failed',"nbf","check_failed")}if(void 0!==n.exp){if("number"!=typeof n.exp)throw new x('"exp" claim must be a number',"exp","invalid");if(n.exp<=f-i)throw new k('"exp" claim timestamp check failed',"exp","check_failed")}if(r.maxTokenAge){let e=f-n.iat,t="number"==typeof r.maxTokenAge?r.maxTokenAge:tI(r.maxTokenAge);if(e-i>t)throw new k('"iat" claim timestamp check failed (too far in the past)',"iat","check_failed");if(e<0-i)throw new x('"iat" claim timestamp check failed (it should be in the past)',"iat","check_failed")}return n};async function tB(e,t,r){var n;let i=await tk(e,t,r);if((null===(n=i.protectedHeader.crit)||void 0===n?void 0:n.includes("b64"))&&!1===i.protectedHeader.b64)throw new C("JWTs MUST NOT use unencoded payload");let o=tL(i.protectedHeader,i.payload,r),a={payload:o,protectedHeader:i.protectedHeader};return"function"==typeof t?{...a,key:i.key}:a}async function tU(e,t,r){let n=await tu(e,t,r),i=tL(n.protectedHeader,n.plaintext,r),{protectedHeader:o}=n;if(void 0!==o.iss&&o.iss!==i.iss)throw new x('replicated "iss" claim header parameter mismatch',"iss","mismatch");if(void 0!==o.sub&&o.sub!==i.sub)throw new x('replicated "sub" claim header parameter mismatch',"sub","mismatch");if(void 0!==o.aud&&JSON.stringify(o.aud)!==JSON.stringify(i.aud))throw new x('replicated "aud" claim header parameter mismatch',"aud","mismatch");let a={payload:i,protectedHeader:o};return"function"==typeof t?{...a,key:n.key}:a}class t${constructor(e){this._flattened=new tb(e)}setContentEncryptionKey(e){return this._flattened.setContentEncryptionKey(e),this}setInitializationVector(e){return this._flattened.setInitializationVector(e),this}setProtectedHeader(e){return this._flattened.setProtectedHeader(e),this}setKeyManagementParameters(e){return this._flattened.setKeyManagementParameters(e),this}
117async encrypt(e,t){let r=await this._flattened.encrypt(e,t);return[r.protected,r.encrypted_key,r.iv,r.ciphertext,r.tag].join(".")}}let tH=async(e,t,r)=>{let n=await t_(e,t,"sign");eC(e,n);let i=await o.subtle.sign(tw(e,n.algorithm),n,r);return new Uint8Array(i)};var tF=tH;class tq{constructor(e){if(!(e instanceof Uint8Array))throw TypeError("payload must be an instance of Uint8Array");this._payload=e}setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setUnprotectedHeader(e){if(this._unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}async sign(e,t){let r;if(!this._protectedHeader&&!this._unprotectedHeader)throw new R("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");if(!eh(this._protectedHeader,this._unprotectedHeader))throw new R("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let n={...this._protectedHeader,...this._unprotectedHeader},i=ti(R,new Map([["b64",!0]]),null==t?void 0:t.crit,this._protectedHeader,n),o=!0;if(i.has("b64")&&"boolean"!=typeof(o=this._protectedHeader.b64))throw new R('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:a}=n;
117if("string"!=typeof a||!a)throw new R('JWS "alg" (Algorithm) Header Parameter missing or invalid');e8(a,e,"sign");let s=this._payload;o&&(s=c.encode(w(s))),r=this._protectedHeader?c.encode(w(JSON.stringify(this._protectedHeader))):c.encode("");let u=d(r,c.encode("."),s),f=await tF(a,e,u),h={signature:w(f),payload:""};return o&&(h.payload=l.decode(s)),this._unprotectedHeader&&(h.header=this._unprotectedHeader),this._protectedHeader&&(h.protected=l.decode(r)),h}}class tW{constructor(e){this._flattened=new tq(e)}setProtectedHeader(e){return this._flattened.setProtectedHeader(e),this}async sign(e,t){let r=await this._flattened.sign(e,t);if(void 0===r.payload)throw TypeError("use the flattened module for creating JWS with b64: false");return`${r.protected}.${r.payload}.${r.signature}`}}class tz{constructor(e,t,r){this.parent=e,this.key=t,this.options=r}setProtectedHeader(e){if(this.protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this.protectedHeader=e,this}setUnprotectedHeader(e){if(this.unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this.unprotectedHeader=e,this}addSignature(...e){return this.parent.addSignature(...e)}sign(...e){return this.parent.sign(...e)}done(){return this.parent}}class tK{constructor(e){this._signatures=[],this._payload=e}addSignature(e,t){let r=new tz(this,e,t);return this._signatures.push(r),r}async sign(){if(!this._signatures.length)throw new R("at least one signature must be added");let e={signatures:[],payload:""};for(let t=0;t<this._signatures.length;t++){let r=this._signatures[t],n=new tq(this._payload);n.setProtectedHeader(r.protectedHeader),n.setUnprotectedHeader(r.unprotectedHeader);let{payload:i,...o}=await n.sign(r.key,r.options);if(0===t)e.payload=i;else if(e.payload!==i)throw new R("inconsistent use of JWS Unencoded Payload Option (RFC7797)");e.signatures.push(o)}return e}}class tZ{constructor(e){if(!em(e))throw TypeError("JWT Claims Set MUST be an object");this._payload=e}setIssuer(e){return this._payload={...this._payload,iss:e},this}setSubject(e){return this._payload={...this._payload,sub:e},this}setAudience(e){return this._payload={...this._payload,aud:e},this}setJti(e){return this._payload={...this._payload,jti:e},this}setNotBefore(e){return"number"==typeof e?this._payload={...this._payload,nbf:e}:this._payload={...this._payload,nbf:tM(new Date)+tI(e)},this}setExpirationTime(e){return"number"==typeof e?this._payload={...this._payload,exp:e}:this._payload={...this._payload,exp:tM(new Date)+tI(e)},this}setIssuedAt(e){return void 0===e?this._payload={...this._payload,iat:tM(new Date)}:this._payload={...this._payload,iat:e},this}}class tJ extends tZ{setProtectedHeader(e){return this._protectedHeader=e,this}async sign(e,t){var r;let n=new tW(c.encode(JSON.stringify(this._payload)));if(n.setProtectedHeader(this._protectedHeader),Array.isArray(null===(r=this._protectedHeader)||void 0===r?void 0:r.crit)&&this._protectedHeader.crit.includes("b64")&&!1===this._protectedHeader.b64)throw new C("JWTs MUST NOT use unencoded payload");return n.sign(e,t)}}class tG extends tZ{setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setKeyManagementParameters(e){if(this._keyManagementParameters)throw TypeError("setKeyManagementParameters can only be called once");return this._keyManagementParameters=e,this}setContentEncryptionKey(e){if(this._cek)throw TypeError("setContentEncryptionKey can only be called once");return this._cek=e,this}setInitializationVector(e){if(this._iv)throw TypeError("setInitializationVector can only be called once");return this._iv=e,this}replicateIssuerAsHeader(){return this._replicateIssuerAsHeader=!0,this}replicateSubjectAsHeader(){return this._replicateSubjectAsHeader=!0,this}replicateAudienceAsHeader(){return this._replicateAudienceAsHeader=!0,this}async encrypt(e,t){let r=new t$(c.encode(JSON.stringify(this._payload)));return this._replicateIssuerAsHeader&&(this._protectedHeader={...this._protectedHeader,iss:this._payload.iss}),this._replicateSubjectAsHeader&&(this._protectedHeader={...this._protectedHeader,sub:this._payload.sub}),this._replicateAudienceAsHeader&&(this._protectedHeader={...this._protectedHeader,aud:this._payload.aud}),r.setProtectedHeader(this._protectedHeader),this._iv&&r.setInitializationVector(this._iv),this._cek&&r.setContentEncryptionKey(this._cek),this._keyManagementParameters&&r.setKeyManagementParameters(this._keyManagementParameters),r.encrypt(e,t)}}let tV=(e,t)=>{if("string"!=typeof e||!e)throw new P(`${t} missing or invalid`)};async function tY(e,t){let r;if(!em(e))throw TypeError("JWK must be an object");
117if(null!=t||(t="sha256"),"sha256"!==t&&"sha384"!==t&&"sha512"!==t)throw TypeError('digestAlgorithm must one of "sha256", "sha384", or "sha512"');switch(e.kty){case"EC":tV(e.crv,'"crv" (Curve) Parameter'),tV(e.x,'"x" (X Coordinate) Parameter'),tV(e.y,'"y" (Y Coordinate) Parameter'),r={crv:e.crv,kty:e.kty,x:e.x,y:e.y};break;case"OKP":tV(e.crv,'"crv" (Subtype of Key Pair) Parameter'),tV(e.x,'"x" (Public Key) Parameter'),r={crv:e.crv,kty:e.kty,x:e.x};break;case"RSA":tV(e.e,'"e" (Exponent) Parameter'),tV(e.n,'"n" (Modulus) Parameter'),r={e:e.e,kty:e.kty,n:e.n};break;case"oct":tV(e.k,'"k" (Key Value) Parameter'),r={k:e.k,kty:e.kty};break;default:throw new M('"kty" (Key Type) Parameter missing or unsupported')}let n=c.encode(JSON.stringify(r));return w(await u(t,n))}async function tX(e,t){null!=t||(t="sha256");let r=await tY(e,t);return`urn:ietf:params:oauth:jwk-thumbprint:sha-${t.slice(-3)}:${r}`}async function tQ(e,t){let r={...e,...null==t?void 0:t.header};if(!em(r.jwk))throw new R('"jwk" (JSON Web Key) Header Parameter must be a JSON object');let n=await e2({...r.jwk,ext:!0},r.alg,!0);if(n instanceof Uint8Array||"public"!==n.type)throw new R('"jwk" (JSON Web Key) Header Parameter must be a public key');return n}function t0(e){switch("string"==typeof e&&e.slice(0,2)){case"RS":case"PS":return"RSA";case"ES":return"EC";case"Ed":return"OKP";default:throw new M('Unsupported "alg" value for a JSON Web Key Set')}}function t1(e){return e&&"object"==typeof e&&Array.isArray(e.keys)&&e.keys.every(t2)}function t2(e){return em(e)}function t6(e){return"function"==typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e))}class t3{constructor(e){if(this._cached=new WeakMap,!t1(e))throw new T("JSON Web Key Set malformed");this._jwks=t6(e)}async getKey(e,t){let{alg:r,kid:n}={...e,...null==t?void 0:t.header},i=t0(r),o=this._jwks.keys.filter(e=>{let t=i===e.kty;if(t&&"string"==typeof n&&(t=n===e.kid),t&&"string"==typeof e.alg&&(t=r===e.alg),t&&"string"==typeof e.use&&(t="sig"===e.use),t&&Array.isArray(e.key_ops)&&(t=e.key_ops.includes("verify")),t&&"EdDSA"===r&&(t="Ed25519"===e.crv||"Ed448"===e.crv),t)switch(r){case"ES256":t="P-256"===e.crv;break;case"ES256K":t="secp256k1"===e.crv;break;case"ES384":t="P-384"===e.crv;break;case"ES512":t="P-521"===e.crv}return t}),{0:a,length:s}=o;if(0===s)throw new I;if(1!==s){let e=new N,{_cached:t}=this;throw e[Symbol.asyncIterator]=async function*(){for(let e of o)try{yield await t4(t,e,r)}catch(e){continue}},e}return t4(this._cached,a,r)}}async function t4(e,t,r){let n=e.get(t)||e.set(t,{}).get(t);if(void 0===n[r]){let e=await e2({...t,ext:!0},r);if(e instanceof Uint8Array||"public"!==e.type)throw new T("JSON Web Key Set members must be public keys");n[r]=e}return n[r]}function t8(e){let t=new t3(e);return async function(e,r){return t.getKey(e,r)}}let t5=async(e,t,r)=>{let n,i;let o=!1;"function"==typeof AbortController&&(n=new AbortController,i=setTimeout(()=>{o=!0,n.abort()},t));let a=await fetch(e.href,{signal:n?n.signal:void 0,redirect:"manual",headers:r.headers}).catch(e=>{if(o)throw new D;throw e});if(void 0!==i&&clearTimeout(i),200!==a.status)throw new E("Expected 200 OK from the JSON Web Key Set HTTP response");try{return await a.json()}catch(e){throw new E("Failed to parse the JSON Web Key Set HTTP response as JSON")}};var t7=t5;class t9 extends t3{constructor(e,t){if(super({keys:[]}),this._jwks=void 0,!(e instanceof URL))throw TypeError("url must be an instance of URL");this._url=new URL(e.href),this._options={agent:null==t?void 0:t.agent,headers:null==t?void 0:t.headers},this._timeoutDuration="number"==typeof(null==t?void 0:t.timeoutDuration)?null==t?void 0:t.timeoutDuration:5e3,this._cooldownDuration="number"==typeof(null==t?void 0:t.cooldownDuration)?null==t?void 0:t.cooldownDuration:3e4,this._cacheMaxAge="number"==typeof(null==t?void 0:t.cacheMaxAge)?null==t?void 0:t.cacheMaxAge:6e5}coolingDown(){return"number"==typeof this._jwksTimestamp&&Date.now()<this._jwksTimestamp+this._cooldownDuration}fresh(){return"number"==typeof this._jwksTimestamp&&Date.now()<this._jwksTimestamp+this._cacheMaxAge}async getKey(e,t){this._jwks&&this.fresh()||await this.reload();try{return await super.getKey(e,t)}catch(r){if(r instanceof I&&!1===this.coolingDown())return await this.reload(),super.getKey(e,t);throw r}}
117async reload(){this._pendingFetch&&Z()&&(this._pendingFetch=void 0),this._pendingFetch||(this._pendingFetch=t7(this._url,this._timeoutDuration,this._options).then(e=>{if(!t1(e))throw new T("JSON Web Key Set malformed");this._jwks={keys:e.keys},this._jwksTimestamp=Date.now(),this._pendingFetch=void 0}).catch(e=>{throw this._pendingFetch=void 0,e})),await this._pendingFetch}}function re(e,t){let r=new t9(e,t);return async function(e,t){return r.getKey(e,t)}}class rt extends tZ{encode(){let e=w(JSON.stringify({alg:"none"})),t=w(JSON.stringify(this._payload));return`${e}.${t}.`}static decode(e,t){let r;if("string"!=typeof e)throw new C("Unsecured JWT must be a string");let{0:n,1:i,2:o,length:a}=e.split(".");if(3!==a||""!==o)throw new C("Invalid Unsecured JWT");try{if(r=JSON.parse(l.decode(S(n))),"none"!==r.alg)throw Error()}catch(e){throw new C("Invalid Unsecured JWT")}let s=tL(r,S(i),t);return{payload:s,header:r}}}let rr=w,rn=S;function ri(e){let t;if("string"==typeof e){let r=e.split(".");(3===r.length||5===r.length)&&([t]=r)}else if("object"==typeof e&&e){if("protected"in e)t=e.protected;else throw TypeError("Token does not contain a Protected Header")}try{if("string"!=typeof t||!t)throw Error();let e=JSON.parse(l.decode(rn(t)));if(!em(e))throw Error();return e}catch(e){throw TypeError("Invalid Token or Protected Header formatting")}}function ro(e){let t,r;if("string"!=typeof e)throw new C("JWTs must use Compact JWS serialization, JWT must be a string");let{1:n,length:i}=e.split(".");if(5===i)throw new C("Only JWTs using Compact JWS serialization can be decoded");if(3!==i)throw new C("Invalid JWT");if(!n)throw new C("JWTs must contain a payload");try{t=rn(n)}catch(e){throw new C("Failed to parse the base64url encoded payload")}try{r=JSON.parse(l.decode(t))}catch(e){throw new C("Failed to parse the decoded payload as JSON")}if(!em(r))throw new C("Invalid JWT Claims Set");return r}async function ra(e,t){var r;let n,i,a;switch(e){case"HS256":case"HS384":case"HS512":i={name:"HMAC",hash:`SHA-${n=parseInt(e.slice(-3),10)}`,length:n},a=["sign","verify"];break;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return n=parseInt(e.slice(-3),10),B(new Uint8Array(n>>3));case"A128KW":case"A192KW":case"A256KW":i={name:"AES-KW",length:n=parseInt(e.slice(1,4),10)},a=["wrapKey","unwrapKey"];break;case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":case"A128GCM":case"A192GCM":case"A256GCM":i={name:"AES-GCM",length:n=parseInt(e.slice(1,4),10)},a=["encrypt","decrypt"];break;default:throw new M('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}return o.subtle.generateKey(i,null!==(r=null==t?void 0:t.extractable)&&void 0!==r&&r,a)}function rs(e){var t;let r=null!==(t=null==e?void 0:e.modulusLength)&&void 0!==t?t:2048;if("number"!=typeof r||r<2048)throw new M("Invalid or unsupported modulusLength option provided, 2048 bits or larger keys must be used");return r}async function ru(e,t){var r,n,i,a;let s,u;switch(e){case"PS256":case"PS384":case"PS512":s={name:"RSA-PSS",hash:`SHA-${e.slice(-3)}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:rs(t)},u=["sign","verify"];break;case"RS256":case"RS384":case"RS512":s={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.slice(-3)}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:rs(t)},u=["sign","verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":s={name:"RSA-OAEP",hash:`SHA-${parseInt(e.slice(-3),10)||1}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:rs(t)},u=["decrypt","unwrapKey","encrypt","wrapKey"];break;case"ES256":s={name:"ECDSA",namedCurve:"P-256"},u=["sign","verify"];break;case"ES384":s={name:"ECDSA",namedCurve:"P-384"},u=["sign","verify"];break;case"ES512":s={name:"ECDSA",namedCurve:"P-521"},u=["sign","verify"];break;case"EdDSA":u=["sign","verify"];let c=null!==(r=null==t?void 0:t.crv)&&void 0!==r?r:"Ed25519";
117switch(c){case"Ed25519":case"Ed448":s={name:c};break;default:throw new M("Invalid or unsupported crv option provided")}break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{u=["deriveKey","deriveBits"];let e=null!==(n=null==t?void 0:t.crv)&&void 0!==n?n:"P-256";switch(e){case"P-256":case"P-384":case"P-521":s={name:"ECDH",namedCurve:e};break;case"X25519":case"X448":s={name:e};break;default:throw new M("Invalid or unsupported crv option provided, supported values are P-256, P-384, P-521, X25519, and X448")}break}default:throw new M('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}try{return await o.subtle.generateKey(s,null!==(i=null==t?void 0:t.extractable)&&void 0!==i&&i,u)}catch(e){if("Ed25519"===s.name&&(null==e?void 0:e.name)==="NotSupportedError"&&Z())return s={name:"NODE-ED25519",namedCurve:"NODE-ED25519"},await o.subtle.generateKey(s,null!==(a=null==t?void 0:t.extractable)&&void 0!==a&&a,u);throw e}}async function rc(e,t){return ru(e,t)}async function rl(e,t){return ra(e,t)}},2696:function(e){"use strict";e.exports=JSON.parse('{"name":"openid-client","version":"5.4.0","description":"OpenID Connect Relying Party (RP, Client) implementation for Node.js runtime, supports passportjs","keywords":["auth","authentication","basic","certified","client","connect","dynamic","electron","hybrid","identity","implicit","oauth","oauth2","oidc","openid","passport","relying party","strategy"],"homepage":"https://github.com/panva/node-openid-client","repository":"panva/node-openid-client","funding":{"url":"https://github.com/sponsors/panva"},"license":"MIT","author":"Filip Skokan <[email protected]>","exports":{"types":"./types/index.d.ts","import":"./lib/index.mjs","require":"./lib/index.js"},"main":"./lib/index.js","types":"./types/index.d.ts","files":["lib","types/index.d.ts"],"scripts":{"format":"npx prettier --loglevel silent --write ./lib ./test ./certification ./types","test":"mocha test/**/*.test.js"},"dependencies":{"jose":"^4.10.0","lru-cache":"^6.0.0","object-hash":"^2.0.1","oidc-token-hash":"^5.0.1"},"devDependencies":{"@types/node":"^16.11.5","@types/passport":"^1.0.7","base64url":"^3.0.1","chai":"^4.2.0","jose2":"npm:jose@^2.0.5","mocha":"^10.1.0","nock":"^13.0.2","prettier":"^2.4.1","readable-mock-req":"^0.2.2","sinon":"^9.2.0","timekeeper":"^2.2.0"},"standard-version":{"scripts":{"postchangelog":"sed -i \'\' -e \'s/### \\\\[/## [/g\' CHANGELOG.md"},"types":[{"type":"feat","section":"Features"},{"type":"fix","section":"Fixes"},{"type":"chore","hidden":true},{"type":"docs","hidden":true},{"type":"style","hidden":true},{"type":"refactor","section":"Refactor","hidden":false},{"type":"perf","section":"Performance","hidden":false},{"type":"test","hidden":true}]}}')},855:function(e){"use strict";e.exports=JSON.parse('{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","306":"(Unused)","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I\'m a teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Unordered Collection","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}')}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return t(1118),t(387)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.