(self.webpackChunkbean_frontend_auth=self.webpackChunkbean_frontend_auth||[]).push([[179],{4073:(mt,de,W)=>{"use strict";W.d(de,{g:()=>vt});var Q=(()=>{return(_e=Q||(Q={})).Cognito="COGNITO",_e.Google="Google",_e.Facebook="Facebook",_e.Amazon="LoginWithAmazon",_e.Apple="SignInWithApple",Q;var _e})();function se(_e){return _e&&!!["provider"].find(function(B){return _e.hasOwnProperty(B)})}function Ie(_e){return void 0!==_e.redirectSignIn}var L=(()=>{return(_e=L||(L={})).NoConfig="noConfig",_e.MissingAuthConfig="missingAuthConfig",_e.EmptyUsername="emptyUsername",_e.InvalidUsername="invalidUsername",_e.EmptyPassword="emptyPassword",_e.EmptyCode="emptyCode",_e.SignUpError="signUpError",_e.NoMFA="noMFA",_e.InvalidMFA="invalidMFA",_e.EmptyChallengeResponse="emptyChallengeResponse",_e.NoUserSession="noUserSession",_e.Default="default",_e.DeviceConfig="deviceConfig",_e.NetworkError="networkError",L;var _e})(),D=W(1686);function we(_e,O){void 0===O&&(O={});var B=function(_e){return _e&&"j"===_e[0]&&":"===_e[1]?_e.substr(2):_e}(_e);if(function(_e,O){return void 0===O&&(O=!_e||"{"!==_e[0]&&"["!==_e[0]&&'"'!==_e[0]),!O}(B,O.doNotParse))try{return JSON.parse(B)}catch(F){}return _e}var ce=function(){return(ce=Object.assign||function(_e){for(var O,B=1,F=arguments.length;B=0&&this.changeListeners.splice(B,1)},_e}();var Ye=W(8358),ut=(0,Ye.lC)().isBrowser,pt=function(){function _e(O){void 0===O&&(O={}),this.cookies=new Re,this.store=ut?window.localStorage:Object.create(null),this.cookies=O.req?new Re(O.req.headers.cookie):new Re,Object.assign(this.store,this.cookies.getAll())}return Object.defineProperty(_e.prototype,"length",{get:function(){return Object.entries(this.store).length},enumerable:!0,configurable:!0}),_e.prototype.clear=function(){var O=this;Array.from(new Array(this.length)).map(function(B,F){return O.key(F)}).forEach(function(B){return O.removeItem(B)})},_e.prototype.getItem=function(O){return this.getLocalItem(O)},_e.prototype.getLocalItem=function(O){return Object.prototype.hasOwnProperty.call(this.store,O)?this.store[O]:null},_e.prototype.getUniversalItem=function(O){return this.cookies.get(O)},_e.prototype.key=function(O){return Object.keys(this.store)[O]},_e.prototype.removeItem=function(O){this.removeLocalItem(O),this.removeUniversalItem(O)},_e.prototype.removeLocalItem=function(O){delete this.store[O]},_e.prototype.removeUniversalItem=function(O){this.cookies.remove(O,{path:"/"})},_e.prototype.setItem=function(O,B){switch(this.setLocalItem(O,B),O.split(".").pop()){case"LastAuthUser":case"accessToken":case"refreshToken":case"idToken":ut?this.setUniversalItem(O,B):this.setLocalItem(O,B)}},_e.prototype.setLocalItem=function(O,B){this.store[O]=B},_e.prototype.setUniversalItem=function(O,B){this.cookies.set(O,B,{path:"/",sameSite:!0,secure:"localhost"!==window.location.hostname})},_e}(),je=W(1232),G=W(8182),H=W(9222),S=W(1927),g=W(8431),w=W(3107),c=W(2147),p=W(3176),I=function(_e){var O=window.open(_e,"_self");return O?Promise.resolve(O):Promise.reject()},T=W(1602),z=W.n(T),Fe=W(9515),Le=W.n(Fe),Me=function(){return(Me=Object.assign||function(_e){for(var O,B=1,F=arguments.length;B0&&U[U.length-1])&&(6===Se[0]||2===Se[0])){B=0;continue}if(3===Se[0]&&(!U||Se[1]>U[0]&&Se[1]0)&&!(M=F.next()).done;)U.push(M.value)}catch(Ce){K={error:Ce}}finally{try{M&&!M.done&&(B=F.return)&&B.call(F)}finally{if(K)throw K.error}}return U},Rt="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",Gt=function(_e,O,B){G.Xb.dispatch("auth",{event:_e,data:O,message:B},"Auth",Rt)},Kt=new je.k("OAuth");const Tn=function(){function _e(O){var B=O.config,F=O.cognitoClientId,M=O.scopes,U=void 0===M?[]:M;if(this._urlOpener=B.urlOpener||I,this._config=B,this._cognitoClientId=F,!this.isValidScopes(U))throw Error("scopes must be a String Array");this._scopes=U}return _e.prototype.isValidScopes=function(O){return Array.isArray(O)&&O.every(function(B){return"string"==typeof B})},_e.prototype.oauthSignIn=function(O,B,F,M,U,K){void 0===O&&(O="code"),void 0===U&&(U=Q.Cognito);var Ce=this._generateState(32),xe=K?Ce+"-"+function(_e){return _e.split("").map(function(O){return O.charCodeAt(0).toString(16).padStart(2,"0")}).join("")}(K):Ce;!function(_e){window.sessionStorage.setItem("oauth_state",_e)}(xe);var Se=this._generateRandom(128);!function(_e){window.sessionStorage.setItem("ouath_pkce_key",_e)}(Se);var Je=this._generateChallenge(Se),it=this._scopes.join(" "),Ct="https://"+B+"/oauth2/authorize?"+Object.entries(Me(Me({redirect_uri:F,response_type:O,client_id:M,identity_provider:U,scope:it,state:xe},"code"===O?{code_challenge:Je}:{}),"code"===O?{code_challenge_method:"S256"}:{})).map(function(kt){var Dt=bt(kt,2),on=Dt[1];return encodeURIComponent(Dt[0])+"="+encodeURIComponent(on)}).join("&");Kt.debug("Redirecting to "+Ct),this._urlOpener(Ct,F)},_e.prototype._handleCodeFlow=function(O){return et(this,void 0,void 0,function(){var B,F,M,U,K,Ce,xe,Se,Je,ct,it,It,Ct,kt;return St(this,function(Dt){switch(Dt.label){case 0:return B=((0,p.Qc)(O).query||"").split("&").map(function(jt){return jt.split("=")}).reduce(function(jt,on){var yn,Wn=bt(on,2),Un=Wn[0],kn=Wn[1];return Me(Me({},jt),((yn={})[Un]=kn,yn))},{code:void 0}).code,F=(0,p.Qc)(O).pathname||"/",M=(0,p.Qc)(this._config.redirectSignIn).pathname||"/",B&&F===M?(Gt("codeFlow",{},"Retrieving tokens from "+(U="https://"+this._config.domain+"/oauth2/token")),K=Ie(this._config)?this._cognitoClientId:this._config.clientID,Ce=Ie(this._config)?this._config.redirectSignIn:this._config.redirectUri,xe=function(){var _e=window.sessionStorage.getItem("ouath_pkce_key");return window.sessionStorage.removeItem("ouath_pkce_key"),_e}(),Se=Me({grant_type:"authorization_code",code:B,client_id:K,redirect_uri:Ce},xe?{code_verifier:xe}:{}),Kt.debug("Calling token endpoint: "+U+" with",Se),Je=Object.entries(Se).map(function(jt){var on=bt(jt,2),Wn=on[1];return encodeURIComponent(on[0])+"="+encodeURIComponent(Wn)}).join("&"),[4,fetch(U,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:Je})]):[2];case 1:return[4,Dt.sent().json()];case 2:if(ct=Dt.sent(),it=ct.access_token,It=ct.refresh_token,Ct=ct.id_token,kt=ct.error)throw new Error(kt);return[2,{accessToken:it,refreshToken:It,idToken:Ct}]}})})},_e.prototype._handleImplicitFlow=function(O){return et(this,void 0,void 0,function(){var B,F,M;return St(this,function(U){return B=((0,p.Qc)(O).hash||"#").substr(1).split("&").map(function(K){return K.split("=")}).reduce(function(K,Ce){var xe,Se=bt(Ce,2),Je=Se[0],ct=Se[1];return Me(Me({},K),((xe={})[Je]=ct,xe))},{id_token:void 0,access_token:void 0}),F=B.id_token,M=B.access_token,Gt("implicitFlow",{},"Got tokens from "+O),Kt.debug("Retrieving implicit tokens from "+O+" with"),[2,{accessToken:M,idToken:F,refreshToken:null}]})})},_e.prototype.handleAuthResponse=function(O){return et(this,void 0,void 0,function(){var B,M,U,K,Ce,xe;return St(this,function(Se){switch(Se.label){case 0:if(Se.trys.push([0,5,,6]),B=O?Me(Me({},((0,p.Qc)(O).hash||"#").substr(1).split("&").map(function(Je){return Je.split("=")}).reduce(function(Je,ct){var it=bt(ct,2);return Je[it[0]]=it[1],Je},{})),((0,p.Qc)(O).query||"").split("&").map(function(Je){return Je.split("=")}).reduce(function(Je,ct){var it=bt(ct,2);return Je[it[0]]=it[1],Je},{})):{},M=B.error_description,B.error)throw new Error(M);return U=this._validateState(B),Kt.debug("Starting "+this._config.responseType+" flow with "+O),"code"!==this._config.responseType?[3,2]:(K=[{}],[4,this._handleCodeFlow(O)]);case 1:return[2,Me.apply(void 0,[Me.apply(void 0,K.concat([Se.sent()])),{state:U}])];case 2:return Ce=[{}],[4,this._handleImplicitFlow(O)];case 3:return[2,Me.apply(void 0,[Me.apply(void 0,Ce.concat([Se.sent()])),{state:U}])];case 4:return[3,6];case 5:throw xe=Se.sent(),Kt.error("Error handling auth response.",xe),xe;case 6:return[2]}})})},_e.prototype._validateState=function(O){if(O){var B=function(){var _e=window.sessionStorage.getItem("oauth_state");return window.sessionStorage.removeItem("oauth_state"),_e}(),F=O.state;if(B&&B!==F)throw new Error("Invalid state in OAuth flow");return F}},_e.prototype.signOut=function(){return et(this,void 0,void 0,function(){var O,B,F;return St(this,function(M){return O="https://"+this._config.domain+"/logout?",B=Ie(this._config)?this._cognitoClientId:this._config.oauth.clientID,F=Ie(this._config)?this._config.redirectSignOut:this._config.returnTo,O+=Object.entries({client_id:B,logout_uri:encodeURIComponent(F)}).map(function(U){var K=bt(U,2);return K[0]+"="+K[1]}).join("&"),Gt("oAuthSignOut",{oAuth:"signOut"},"Signing out from "+O),Kt.debug("Signing out from "+O),[2,this._urlOpener(O,F)]})})},_e.prototype._generateState=function(O){for(var B="",F=O,M="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";F>0;--F)B+=M[Math.round(Math.random()*(M.length-1))];return B},_e.prototype._generateChallenge=function(O){return this._base64URL(z()(O))},_e.prototype._base64URL=function(O){return O.toString(Le()).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},_e.prototype._generateRandom=function(O){var F=new Uint8Array(O);if("undefined"!=typeof window&&window.crypto)window.crypto.getRandomValues(F);else for(var M=0;M0&&U[U.length-1])&&(6===Se[0]||2===Se[0])){B=0;continue}if(3===Se[0]&&(!U||Se[1]>U[0]&&Se[1]0)&&!(M=F.next()).done;)U.push(M.value)}catch(Ce){K={error:Ce}}finally{try{M&&!M.done&&(B=F.return)&&B.call(F)}finally{if(K)throw K.error}}return U},J=new je.k("AuthClass"),Z="aws.cognito.signin.user.admin",ve="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",Pe=function(_e,O,B){G.Xb.dispatch("auth",{event:_e,data:O,message:B},"Auth",ve)},vt=new(function(){function _e(O){var B=this;this.userPool=null,this.user=null,this.oAuthFlowInProgress=!1,this.Credentials=H.cN,this.wrapRefreshSessionCallback=function(F){return function(U,K){return K?Pe("tokenRefresh",void 0,"New token retrieved"):Pe("tokenRefresh_failure",U,"Failed to retrieve new token"),F(U,K)}},this.configure(O),this.currentCredentials=this.currentCredentials.bind(this),this.currentUserCredentials=this.currentUserCredentials.bind(this),G.Xb.listen("auth",function(F){switch(F.payload.event){case"signIn":B._storage.setItem("amplify-signin-with-hostedUI","false");break;case"signOut":B._storage.removeItem("amplify-signin-with-hostedUI");break;case"cognitoHostedUI":B._storage.setItem("amplify-signin-with-hostedUI","true")}})}return _e.prototype.getModuleName=function(){return"Auth"},_e.prototype.configure=function(O){var B=this;if(!O)return this._config||{};J.debug("configure Auth");var F=Object.assign({},this._config,S._b.parseMobilehubConfig(O).Auth,O);this._config=F;var M=this._config,U=M.userPoolId,K=M.userPoolWebClientId,Ce=M.cookieStorage,xe=M.oauth,Se=M.region,Je=M.identityPoolId,ct=M.mandatorySignIn,it=M.refreshHandlers,It=M.identityPoolRegion,Ct=M.clientMetadata,kt=M.endpoint;if(this._config.storage){if(!this._isValidAuthStorage(this._config.storage))throw J.error("The storage in the Auth config is not valid!"),new Error("Empty storage object");this._storage=this._config.storage}else this._storage=Ce?new c.eR(Ce):O.ssr?new pt:(new g.c4).getStorage();if(this._storageSync=Promise.resolve(),"function"==typeof this._storage.sync&&(this._storageSync=this._storage.sync()),U){var Dt={UserPoolId:U,ClientId:K,endpoint:kt};Dt.Storage=this._storage,this.userPool=new c.AM(Dt,this.wrapRefreshSessionCallback)}this.Credentials.configure({mandatorySignIn:ct,region:It||Se,userPoolId:U,identityPoolId:Je,refreshHandlers:it,storage:this._storage});var jt=xe?Ie(this._config.oauth)?xe:xe.awsCognito:void 0;if(jt){var on=Object.assign({cognitoClientId:K,UserPoolId:U,domain:jt.domain,scopes:jt.scope,redirectSignIn:jt.redirectSignIn,redirectSignOut:jt.redirectSignOut,responseType:jt.responseType,Storage:this._storage,urlOpener:jt.urlOpener,clientMetadata:Ct},jt.options);this._oAuthHandler=new Tn({scopes:on.scopes,config:on,cognitoClientId:on.cognitoClientId});var yn={};!function(_e){if(Ye.JS.browserOrNode().isBrowser&&window.location)Wn={url:window.location.href},yn[Un=Wn.url]||(yn[Un]=!0,B._handleAuthResponse(Un));else if(!Ye.JS.browserOrNode().isNode)throw new Error("Not supported");var Wn,Un}()}return Pe("configured",null,"The Auth category has been configured successfully"),this._config},_e.prototype.signUp=function(O){for(var B=this,F=[],M=1;M{"use strict";W.d(de,{A:()=>Q});var Q=(()=>{return(se=Q||(Q={})).DEFAULT_MSG="Authentication Error",se.EMPTY_EMAIL="Email cannot be empty",se.EMPTY_PHONE="Phone number cannot be empty",se.EMPTY_USERNAME="Username cannot be empty",se.INVALID_USERNAME="The username should either be a string or one of the sign in types",se.EMPTY_PASSWORD="Password cannot be empty",se.EMPTY_CODE="Confirmation code cannot be empty",se.SIGN_UP_ERROR="Error creating account",se.NO_MFA="No valid MFA method provided",se.INVALID_MFA="Invalid MFA type",se.EMPTY_CHALLENGE="Challenge response cannot be empty",se.NO_USER_SESSION="Failed to get the session because the user is empty",se.NETWORK_ERROR="Network Error",se.DEVICE_CONFIG="Device tracking has not been configured in this User Pool",Q;var se})()},3107:(mt,de,W)=>{"use strict";W.d(de,{dQ:()=>Ie});var Q=W(1232),V=new Q.k("Amplify"),Ie=new(function(){function R(){this._components=[],this._config={},this._modules={},this.Auth=null,this.Analytics=null,this.API=null,this.Credentials=null,this.Storage=null,this.I18n=null,this.Cache=null,this.PubSub=null,this.Interactions=null,this.Pushnotification=null,this.UI=null,this.XR=null,this.Predictions=null,this.DataStore=null,this.Geo=null,this.Logger=Q.k,this.ServiceWorker=null}return R.prototype.register=function(D){V.debug("component registered in amplify",D),this._components.push(D),"function"==typeof D.getModuleName?(this._modules[D.getModuleName()]=D,this[D.getModuleName()]=D):V.debug("no getModuleName method for component",D),D.configure(this._config)},R.prototype.configure=function(D){var le=this;return D?(this._config=Object.assign(this._config,D),V.debug("amplify config",this._config),Object.entries(this._modules).forEach(function(pe){var we=function(R,D){var le="function"==typeof Symbol&&R[Symbol.iterator];if(!le)return R;var he,we,pe=le.call(R),ue=[];try{for(;(void 0===D||D-- >0)&&!(he=pe.next()).done;)ue.push(he.value)}catch(fe){we={error:fe}}finally{try{he&&!he.done&&(le=pe.return)&&le.call(pe)}finally{if(we)throw we.error}}return ue}(pe,2)[1];Object.keys(we).forEach(function(fe){le._modules[fe]&&(we[fe]=le._modules[fe])})}),this._components.map(function(pe){pe.configure(le._config)}),this._config):this._config},R.prototype.addPluggable=function(D){D&&D.getCategory&&"function"==typeof D.getCategory&&this._components.map(function(le){le.addPluggable&&"function"==typeof le.addPluggable&&le.addPluggable(D)})},R}())},9222:(mt,de,W)=>{"use strict";W.d(de,{cN:()=>ki});var a,Q=W(1232),se=W(8431),V=W(8358),ee=(a=function(h,f){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,E){x.__proto__=E}||function(x,E){for(var v in E)E.hasOwnProperty(v)&&(x[v]=E[v])})(h,f)},function(h,f){function x(){this.constructor=h}a(h,f),h.prototype=null===f?Object.create(f):(x.prototype=f.prototype,new x)}),R=function(a,h){var f="function"==typeof Symbol&&a[Symbol.iterator];if(!f)return a;var E,Ee,x=f.call(a),v=[];try{for(;(void 0===h||h-- >0)&&!(E=x.next()).done;)v.push(E.value)}catch(Ne){Ee={error:Ne}}finally{try{E&&!E.done&&(f=x.return)&&f.call(x)}finally{if(Ee)throw Ee.error}}return v},D=function(){for(var a=[],h=0;h0&&v[v.length-1])&&(6===oe[0]||2===oe[0])){f=0;continue}if(3===oe[0]&&(!v||oe[1]>v[0]&&oe[1]0&&v[v.length-1])&&(6===oe[0]||2===oe[0])){f=0;continue}if(3===oe[0]&&(!v||oe[1]>v[0]&&oe[1]0&&v[v.length-1])&&(6===oe[0]||2===oe[0])){f=0;continue}if(3===oe[0]&&(!v||oe[1]>v[0]&&oe[1]0&&v[v.length-1])&&(6===oe[0]||2===oe[0])){f=0;continue}if(3===oe[0]&&(!v||oe[1]>v[0]&&oe[1](function(a){a.filterSensitiveLog=function(h){return(0,A.pi)({},h)}}(K||(K={})),K))(),xe=(()=>(function(a){a.filterSensitiveLog=function(h){return(0,A.pi)({},h)}}(xe||(xe={})),xe))(),Je=(()=>(function(a){a.filterSensitiveLog=function(h){return(0,A.pi)({},h)}}(Je||(Je={})),Je))(),ct=(()=>(function(a){a.filterSensitiveLog=function(h){return(0,A.pi)({},h)}}(ct||(ct={})),ct))(),or=W(4957),un=function(a,h){return(0,A.mG)(void 0,void 0,void 0,function(){var f,x,E,v,Ne,ot,oe,He,ht,nt,rt,yt,tt,Tt,Vt;return(0,A.Jh)(this,function(cn){switch(cn.label){case 0:return x=[(0,A.pi)({},a)],Vt={},[4,An(a.body,h)];case 1:switch(f=A.pi.apply(void 0,x.concat([(Vt.body=cn.sent(),Vt)])),v="UnknownError",v=rr(a,f.body)){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":return[3,2];case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,4];case"InvalidIdentityPoolConfigurationException":case"com.amazonaws.cognitoidentity#InvalidIdentityPoolConfigurationException":return[3,6];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,8];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,10];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,12];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,14];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,16]}return[3,18];case 2:return Ne=[{}],[4,zo(f,h)];case 3:return E=A.pi.apply(void 0,[A.pi.apply(void 0,Ne.concat([cn.sent()])),{name:v,$metadata:$e(a)}]),[3,19];case 4:return ot=[{}],[4,tr(f,h)];case 5:return E=A.pi.apply(void 0,[A.pi.apply(void 0,ot.concat([cn.sent()])),{name:v,$metadata:$e(a)}]),[3,19];case 6:return oe=[{}],[4,Vc(f,h)];case 7:return E=A.pi.apply(void 0,[A.pi.apply(void 0,oe.concat([cn.sent()])),{name:v,$metadata:$e(a)}]),[3,19];case 8:return He=[{}],[4,ar(f,h)];case 9:return E=A.pi.apply(void 0,[A.pi.apply(void 0,He.concat([cn.sent()])),{name:v,$metadata:$e(a)}]),[3,19];case 10:return ht=[{}],[4,Zn(f,h)];case 11:return E=A.pi.apply(void 0,[A.pi.apply(void 0,ht.concat([cn.sent()])),{name:v,$metadata:$e(a)}]),[3,19];case 12:return nt=[{}],[4,ei(f,h)];case 13:return E=A.pi.apply(void 0,[A.pi.apply(void 0,nt.concat([cn.sent()])),{name:v,$metadata:$e(a)}]),[3,19];case 14:return rt=[{}],[4,Lt(f,h)];case 15:return E=A.pi.apply(void 0,[A.pi.apply(void 0,rt.concat([cn.sent()])),{name:v,$metadata:$e(a)}]),[3,19];case 16:return yt=[{}],[4,ur(f,h)];case 17:return E=A.pi.apply(void 0,[A.pi.apply(void 0,yt.concat([cn.sent()])),{name:v,$metadata:$e(a)}]),[3,19];case 18:v=(tt=f.body).code||tt.Code||v,E=(0,A.pi)((0,A.pi)({},tt),{name:""+v,message:tt.message||tt.Message||v,$fault:"client",$metadata:$e(a)}),cn.label=19;case 19:return E.message=Tt=E.message||E.Message||v,delete E.Message,[2,Promise.reject(Object.assign(new Error(Tt),E))]}})})},jr=function(a,h){return(0,A.mG)(void 0,void 0,void 0,function(){var f,x,E,v,Ne,ot,oe,He,ht,nt,rt,yt,tt,Tt,Vt;return(0,A.Jh)(this,function(cn){switch(cn.label){case 0:return x=[(0,A.pi)({},a)],Vt={},[4,An(a.body,h)];case 1:switch(f=A.pi.apply(void 0,x.concat([(Vt.body=cn.sent(),Vt)])),v="UnknownError",v=rr(a,f.body)){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":return[3,2];case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,4];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,6];case"LimitExceededException":case"com.amazonaws.cognitoidentity#LimitExceededException":return[3,8];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,10];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,12];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,14];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,16]}return[3,18];case 2:return Ne=[{}],[4,zo(f,h)];case 3:return E=A.pi.apply(void 0,[A.pi.apply(void 0,Ne.concat([cn.sent()])),{name:v,$metadata:$e(a)}]),[3,19];case 4:return ot=[{}],[4,tr(f,h)];case 5:return E=A.pi.apply(void 0,[A.pi.apply(void 0,ot.concat([cn.sent()])),{name:v,$metadata:$e(a)}]),[3,19];case 6:return oe=[{}],[4,ar(f,h)];case 7:return E=A.pi.apply(void 0,[A.pi.apply(void 0,oe.concat([cn.sent()])),{name:v,$metadata:$e(a)}]),[3,19];case 8:return He=[{}],[4,ui(f,h)];case 9:return E=A.pi.apply(void 0,[A.pi.apply(void 0,He.concat([cn.sent()])),{name:v,$metadata:$e(a)}]),[3,19];case 10:return ht=[{}],[4,Zn(f,h)];case 11:return E=A.pi.apply(void 0,[A.pi.apply(void 0,ht.concat([cn.sent()])),{name:v,$metadata:$e(a)}]),[3,19];case 12:return nt=[{}],[4,ei(f,h)];case 13:return E=A.pi.apply(void 0,[A.pi.apply(void 0,nt.concat([cn.sent()])),{name:v,$metadata:$e(a)}]),[3,19];case 14:return rt=[{}],[4,Lt(f,h)];case 15:return E=A.pi.apply(void 0,[A.pi.apply(void 0,rt.concat([cn.sent()])),{name:v,$metadata:$e(a)}]),[3,19];case 16:return yt=[{}],[4,ur(f,h)];case 17:return E=A.pi.apply(void 0,[A.pi.apply(void 0,yt.concat([cn.sent()])),{name:v,$metadata:$e(a)}]),[3,19];case 18:v=(tt=f.body).code||tt.Code||v,E=(0,A.pi)((0,A.pi)({},tt),{name:""+v,message:tt.message||tt.Message||v,$fault:"client",$metadata:$e(a)}),cn.label=19;case 19:return E.message=Tt=E.message||E.Message||v,delete E.Message,[2,Promise.reject(Object.assign(new Error(Tt),E))]}})})},zo=function(a,h){return(0,A.mG)(void 0,void 0,void 0,function(){var x;return(0,A.Jh)(this,function(v){return x=li(a.body,h),[2,(0,A.pi)({name:"ExternalServiceException",$fault:"client",$metadata:$e(a)},x)]})})},tr=function(a,h){return(0,A.mG)(void 0,void 0,void 0,function(){var x;return(0,A.Jh)(this,function(v){return x=fy(a.body,h),[2,(0,A.pi)({name:"InternalErrorException",$fault:"server",$metadata:$e(a)},x)]})})},Vc=function(a,h){return(0,A.mG)(void 0,void 0,void 0,function(){var x;return(0,A.Jh)(this,function(v){return x=dy(a.body,h),[2,(0,A.pi)({name:"InvalidIdentityPoolConfigurationException",$fault:"client",$metadata:$e(a)},x)]})})},ar=function(a,h){return(0,A.mG)(void 0,void 0,void 0,function(){var x;return(0,A.Jh)(this,function(v){return x=hy(a.body,h),[2,(0,A.pi)({name:"InvalidParameterException",$fault:"client",$metadata:$e(a)},x)]})})},ui=function(a,h){return(0,A.mG)(void 0,void 0,void 0,function(){var x;return(0,A.Jh)(this,function(v){return x=py(a.body,h),[2,(0,A.pi)({name:"LimitExceededException",$fault:"client",$metadata:$e(a)},x)]})})},Zn=function(a,h){return(0,A.mG)(void 0,void 0,void 0,function(){var x;return(0,A.Jh)(this,function(v){return x=by(a.body,h),[2,(0,A.pi)({name:"NotAuthorizedException",$fault:"client",$metadata:$e(a)},x)]})})},ei=function(a,h){return(0,A.mG)(void 0,void 0,void 0,function(){var x;return(0,A.Jh)(this,function(v){return x=Ey(a.body,h),[2,(0,A.pi)({name:"ResourceConflictException",$fault:"client",$metadata:$e(a)},x)]})})},Lt=function(a,h){return(0,A.mG)(void 0,void 0,void 0,function(){var x;return(0,A.Jh)(this,function(v){return x=Io(a.body,h),[2,(0,A.pi)({name:"ResourceNotFoundException",$fault:"client",$metadata:$e(a)},x)]})})},ur=function(a,h){return(0,A.mG)(void 0,void 0,void 0,function(){var x;return(0,A.Jh)(this,function(v){return x=Jc(a.body,h),[2,(0,A.pi)({name:"TooManyRequestsException",$fault:"client",$metadata:$e(a)},x)]})})},Qn=function(a,h){return Object.entries(a).reduce(function(f,x){var E,v=(0,A.CR)(x,2),Ee=v[0],Ne=v[1];return null===Ne?f:(0,A.pi)((0,A.pi)({},f),((E={})[Ee]=Ne,E))},{})},So=function(a,h){return{AccessKeyId:null!=a.AccessKeyId?a.AccessKeyId:void 0,Expiration:null!=a.Expiration?new Date(Math.round(1e3*a.Expiration)):void 0,SecretKey:null!=a.SecretKey?a.SecretKey:void 0,SessionToken:null!=a.SessionToken?a.SessionToken:void 0}},li=function(a,h){return{message:null!=a.message?a.message:void 0}},fy=function(a,h){return{message:null!=a.message?a.message:void 0}},dy=function(a,h){return{message:null!=a.message?a.message:void 0}},hy=function(a,h){return{message:null!=a.message?a.message:void 0}},py=function(a,h){return{message:null!=a.message?a.message:void 0}},by=function(a,h){return{message:null!=a.message?a.message:void 0}},Ey=function(a,h){return{message:null!=a.message?a.message:void 0}},Io=function(a,h){return{message:null!=a.message?a.message:void 0}},Jc=function(a,h){return{message:null!=a.message?a.message:void 0}},$e=function(a){var h;return{httpStatusCode:a.statusCode,requestId:null!==(h=a.headers["x-amzn-requestid"])&&void 0!==h?h:a.headers["x-amzn-request-id"],extendedRequestId:a.headers["x-amz-id-2"],cfId:a.headers["x-amz-cf-id"]}},nr=function(a,h,f,x,E){return(0,A.mG)(void 0,void 0,void 0,function(){var v,Ne,He;return(0,A.Jh)(this,function(ht){switch(ht.label){case 0:return[4,a.endpoint()];case 1:return v=ht.sent(),He={protocol:void 0===(Ne=v.protocol)?"https":Ne,hostname:v.hostname,port:v.port,method:"POST",path:f,headers:h},void 0!==x&&(He.hostname=x),void 0!==E&&(He.body=E),[2,new or.aW(He)]}})})},An=function(a,h){return function(a,h){return function(a,h){return void 0===a&&(a=new Uint8Array),a instanceof Uint8Array?Promise.resolve(a):h.streamCollector(a)||Promise.resolve(new Uint8Array)}(a,h).then(function(f){return h.utf8Encoder(f)})}(a,h).then(function(f){return f.length?JSON.parse(f):{}})},rr=function(a,h){var x=function(v){var Ee=v;return Ee.indexOf(":")>=0&&(Ee=Ee.split(":")[0]),Ee.indexOf("#")>=0&&(Ee=Ee.split("#")[1]),Ee},E=("x-amzn-errortype",Object.keys(a.headers).find(function(Ne){return Ne.toLowerCase()==="x-amzn-errortype".toLowerCase()}));return void 0!==E?x(a.headers[E]):void 0!==h.code?x(h.code):void 0!==h.__type?x(h.__type):""},pd=W(4086),Xn=W(7753),Xc=function(a){function h(f){var x=a.call(this)||this;return x.input=f,x}return(0,A.ZT)(h,a),h.prototype.resolveMiddleware=function(f,x,E){this.middlewareStack.use((0,pd.p2)(x,this.serialize,this.deserialize));var v=f.concat(this.middlewareStack),He=x.requestHandler;return v.resolve(function(ht){return He.handle(ht.request,E||{})},{logger:x.logger,clientName:"CognitoIdentityClient",commandName:"GetCredentialsForIdentityCommand",inputFilterSensitiveLog:K.filterSensitiveLog,outputFilterSensitiveLog:xe.filterSensitiveLog})},h.prototype.serialize=function(f,x){return function(a,h){return(0,A.mG)(void 0,void 0,void 0,function(){var f,x;return(0,A.Jh)(this,function(E){return f={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.GetCredentialsForIdentity"},x=JSON.stringify(function(a,h){return(0,A.pi)((0,A.pi)((0,A.pi)({},null!=a.CustomRoleArn&&{CustomRoleArn:a.CustomRoleArn}),null!=a.IdentityId&&{IdentityId:a.IdentityId}),null!=a.Logins&&{Logins:Qn(a.Logins,h)})}(a,h)),[2,nr(h,f,"/",void 0,x)]})})}(f,x)},h.prototype.deserialize=function(f,x){return function(a,h){return(0,A.mG)(void 0,void 0,void 0,function(){var f,x,E;return(0,A.Jh)(this,function(v){switch(v.label){case 0:return a.statusCode>=300?[2,un(a,h)]:[4,An(a.body,h)];case 1:return f=v.sent(),x=function(a,h){return{Credentials:null!=a.Credentials?So(a.Credentials):void 0,IdentityId:null!=a.IdentityId?a.IdentityId:void 0}}(f),E=(0,A.pi)({$metadata:$e(a)},x),[2,Promise.resolve(E)]}})})}(f,x)},h}(Xn.mY),Zs=function(a,h){return(Zs=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,x){f.__proto__=x}||function(f,x){for(var E in x)x.hasOwnProperty(E)&&(f[E]=x[E])})(a,h)},Xs=function(a){function h(f,x){void 0===x&&(x=!0);var E=a.call(this,f)||this;return E.tryNextLink=x,E}return function(a,h){function f(){this.constructor=a}Zs(a,h),a.prototype=null===h?Object.create(h):(f.prototype=h.prototype,new f)}(h,a),h}(Error);function Rn(a){return Promise.all(Object.keys(a).reduce(function(h,f){var x=a[f];return h.push("string"==typeof x?[f,x]:x().then(function(E){return[f,E]})),h},[])).then(function(h){return h.reduce(function(f,x){var E=function(a,h){var f="function"==typeof Symbol&&a[Symbol.iterator];if(!f)return a;var E,Ee,x=f.call(a),v=[];try{for(;(void 0===h||h-- >0)&&!(E=x.next()).done;)v.push(E.value)}catch(Ne){Ee={error:Ne}}finally{try{E&&!E.done&&(f=x.return)&&f.call(x)}finally{if(Ee)throw Ee.error}}return v}(x,2);return f[E[0]]=E[1],f},{})})}function ms(a){var h=this;return function(){return T(h,void 0,void 0,function(){var f,x,E,v,Ee,Ne,ot,He,ht,nt,rt,yt;return z(this,function(tt){switch(tt.label){case 0:return ht=(He=a.client).send,nt=Xc.bind,yt={CustomRoleArn:a.customRoleArn,IdentityId:a.identityId},a.logins?[4,Rn(a.logins)]:[3,2];case 1:return rt=tt.sent(),[3,3];case 2:rt=void 0,tt.label=3;case 3:return[4,ht.apply(He,[new(nt.apply(Xc,[void 0,(yt.Logins=rt,yt)]))])];case 4:return f=tt.sent().Credentials,x=void 0===f?function(){throw new Xs("Response from Amazon Cognito contained no credentials")}():f,v=void 0===(E=x.AccessKeyId)?function(){throw new Xs("Response from Amazon Cognito contained no access key ID")}():E,Ee=x.Expiration,ot=void 0===(Ne=x.SecretKey)?function(){throw new Xs("Response from Amazon Cognito contained no secret key")}():Ne,[2,{identityId:a.identityId,accessKeyId:v,secretAccessKey:ot,sessionToken:x.SessionToken,expiration:Ee}]}})})}}var Br=function(a){function h(f){var x=a.call(this)||this;return x.input=f,x}return(0,A.ZT)(h,a),h.prototype.resolveMiddleware=function(f,x,E){this.middlewareStack.use((0,pd.p2)(x,this.serialize,this.deserialize));var v=f.concat(this.middlewareStack),He=x.requestHandler;return v.resolve(function(ht){return He.handle(ht.request,E||{})},{logger:x.logger,clientName:"CognitoIdentityClient",commandName:"GetIdCommand",inputFilterSensitiveLog:Je.filterSensitiveLog,outputFilterSensitiveLog:ct.filterSensitiveLog})},h.prototype.serialize=function(f,x){return function(a,h){return(0,A.mG)(void 0,void 0,void 0,function(){var f,x;return(0,A.Jh)(this,function(E){return f={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.GetId"},x=JSON.stringify(function(a,h){return(0,A.pi)((0,A.pi)((0,A.pi)({},null!=a.AccountId&&{AccountId:a.AccountId}),null!=a.IdentityPoolId&&{IdentityPoolId:a.IdentityPoolId}),null!=a.Logins&&{Logins:Qn(a.Logins,h)})}(a,h)),[2,nr(h,f,"/",void 0,x)]})})}(f,x)},h.prototype.deserialize=function(f,x){return function(a,h){return(0,A.mG)(void 0,void 0,void 0,function(){var f,x,E;return(0,A.Jh)(this,function(v){switch(v.label){case 0:return a.statusCode>=300?[2,jr(a,h)]:[4,An(a.body,h)];case 1:return f=v.sent(),x=function(a,h){return{IdentityId:null!=a.IdentityId?a.IdentityId:void 0}}(f),E=(0,A.pi)({$metadata:$e(a)},x),[2,Promise.resolve(E)]}})})}(f,x)},h}(Xn.mY),_s="IdentityIds",_u=function(){function a(h){void 0===h&&(h="aws:cognito-identity-ids"),this.dbName=h}return a.prototype.getItem=function(h){return this.withObjectStore("readonly",function(f){var x=f.get(h);return new Promise(function(E){x.onerror=function(){return E(null)},x.onsuccess=function(){return E(x.result?x.result.value:null)}})}).catch(function(){return null})},a.prototype.removeItem=function(h){return this.withObjectStore("readwrite",function(f){var x=f.delete(h);return new Promise(function(E,v){x.onerror=function(){return v(x.error)},x.onsuccess=function(){return E()}})})},a.prototype.setItem=function(h,f){return this.withObjectStore("readwrite",function(x){var E=x.put({id:h,value:f});return new Promise(function(v,Ee){E.onerror=function(){return Ee(E.error)},E.onsuccess=function(){return v()}})})},a.prototype.getDb=function(){var h=self.indexedDB.open(this.dbName,1);return new Promise(function(f,x){h.onsuccess=function(){f(h.result)},h.onerror=function(){x(h.error)},h.onblocked=function(){x(new Error("Unable to access DB"))},h.onupgradeneeded=function(){var E=h.result;E.onerror=function(){x(new Error("Failed to create object store"))},E.createObjectStore(_s,{keyPath:"id"})}})},a.prototype.withObjectStore=function(h,f){return this.getDb().then(function(x){var E=x.transaction(_s,h);return E.oncomplete=function(){return x.close()},new Promise(function(v,Ee){E.onerror=function(){return Ee(E.error)},v(f(E.objectStore(_s)))}).catch(function(v){throw x.close(),v})})},a}(),md=new(function(){function a(h){void 0===h&&(h={}),this.store=h}return a.prototype.getItem=function(h){return h in this.store?this.store[h]:null},a.prototype.removeItem=function(h){delete this.store[h]},a.prototype.setItem=function(h,f){this.store[h]=f},a}());var rl=W(9651),To=W(7822),Fi=W(8454),wu=W(2121),bu=W(8527),vd=W(4346),_d=W(8473),na=W(2231),ra="cognito-identity.{region}.amazonaws.com",ia=new Set(["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-south-1","ap-southeast-1","ap-southeast-2","ca-central-1","eu-central-1","eu-north-1","eu-south-1","eu-west-1","eu-west-2","eu-west-3","me-south-1","sa-east-1","us-east-1","us-east-2","us-west-1","us-west-2"]),sl=new Set(["cn-north-1","cn-northwest-1"]),al=new Set(["us-iso-east-1"]),ul=new Set(["us-isob-east-1"]),cl=new Set(["us-gov-east-1","us-gov-west-1"]),ll={apiVersion:"2014-06-30",disableHostPrefix:!1,logger:{},regionInfoProvider:function(a,h){var f=void 0;switch(a){case"ap-northeast-1":f={hostname:"cognito-identity.ap-northeast-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-2":f={hostname:"cognito-identity.ap-northeast-2.amazonaws.com",partition:"aws"};break;case"ap-south-1":f={hostname:"cognito-identity.ap-south-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-1":f={hostname:"cognito-identity.ap-southeast-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-2":f={hostname:"cognito-identity.ap-southeast-2.amazonaws.com",partition:"aws"};break;case"ca-central-1":f={hostname:"cognito-identity.ca-central-1.amazonaws.com",partition:"aws"};break;case"cn-north-1":f={hostname:"cognito-identity.cn-north-1.amazonaws.com.cn",partition:"aws-cn"};break;case"eu-central-1":f={hostname:"cognito-identity.eu-central-1.amazonaws.com",partition:"aws"};break;case"eu-north-1":f={hostname:"cognito-identity.eu-north-1.amazonaws.com",partition:"aws"};break;case"eu-west-1":f={hostname:"cognito-identity.eu-west-1.amazonaws.com",partition:"aws"};break;case"eu-west-2":f={hostname:"cognito-identity.eu-west-2.amazonaws.com",partition:"aws"};break;case"eu-west-3":f={hostname:"cognito-identity.eu-west-3.amazonaws.com",partition:"aws"};break;case"fips-us-east-1":f={hostname:"cognito-identity-fips.us-east-1.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"fips-us-east-2":f={hostname:"cognito-identity-fips.us-east-2.amazonaws.com",partition:"aws",signingRegion:"us-east-2"};break;case"fips-us-gov-west-1":f={hostname:"cognito-identity-fips.us-gov-west-1.amazonaws.com",partition:"aws-us-gov",signingRegion:"us-gov-west-1"};break;case"fips-us-west-2":f={hostname:"cognito-identity-fips.us-west-2.amazonaws.com",partition:"aws",signingRegion:"us-west-2"};break;case"sa-east-1":f={hostname:"cognito-identity.sa-east-1.amazonaws.com",partition:"aws"};break;case"us-east-1":f={hostname:"cognito-identity.us-east-1.amazonaws.com",partition:"aws"};break;case"us-east-2":f={hostname:"cognito-identity.us-east-2.amazonaws.com",partition:"aws"};break;case"us-gov-west-1":f={hostname:"cognito-identity.us-gov-west-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-west-1":f={hostname:"cognito-identity.us-west-1.amazonaws.com",partition:"aws"};break;case"us-west-2":f={hostname:"cognito-identity.us-west-2.amazonaws.com",partition:"aws"};break;default:ia.has(a)&&(f={hostname:ra.replace("{region}",a),partition:"aws"}),sl.has(a)&&(f={hostname:"cognito-identity.{region}.amazonaws.com.cn".replace("{region}",a),partition:"aws-cn"}),al.has(a)&&(f={hostname:"cognito-identity.{region}.c2s.ic.gov".replace("{region}",a),partition:"aws-iso"}),ul.has(a)&&(f={hostname:"cognito-identity.{region}.sc2s.sgov.gov".replace("{region}",a),partition:"aws-iso-b"}),cl.has(a)&&(f={hostname:"cognito-identity.{region}.amazonaws.com".replace("{region}",a),partition:"aws-us-gov"}),void 0===f&&(f={hostname:ra.replace("{region}",a),partition:"aws"})}return Promise.resolve((0,A.pi)({signingService:"cognito-identity"},f))},serviceId:"Cognito Identity",urlParser:W(5412).e},kr=(0,A.pi)((0,A.pi)({},ll),{runtime:"browser",base64Decoder:bu.G,base64Encoder:bu.s,bodyLengthChecker:vd.W,credentialDefaultProvider:function(a){return function(){return Promise.reject(new Error("Credential is missing"))}},defaultUserAgentProvider:(0,_d.f)({serviceId:ll.serviceId,clientVersion:"3.6.1"}),maxAttempts:wu.J,region:(0,Fi.n)("Region is missing"),requestHandler:new To.B,sha256:rl.Sha256,streamCollector:To.C,utf8Decoder:na.fromUtf8,utf8Encoder:na.toUtf8}),Ni=W(1047),sr=W(8118),sa=W(8019),Cd=W(6284),Ed=W(9792),fl=W(5417),Eu=function(a){function h(f){var x=this,E=(0,A.pi)((0,A.pi)({},kr),f),v=(0,Ni.Xb)(E),Ee=(0,Ni.g4)(v),Ne=(0,Ed.A$)(Ee),ot=(0,wu.BC)(Ne),oe=(0,sa.S8)(ot),He=(0,fl.er)(oe);return(x=a.call(this,He)||this).config=He,x.middlewareStack.use((0,wu.NQ)(x.config)),x.middlewareStack.use((0,sr.VG)(x.config)),x.middlewareStack.use((0,sa.G2)(x.config)),x.middlewareStack.use((0,Cd.cV)(x.config)),x.middlewareStack.use((0,fl.XJ)(x.config)),x}return(0,A.ZT)(h,a),h.prototype.destroy=function(){a.prototype.destroy.call(this)},h}(Xn.KU),aa=function(){return(aa=Object.assign||function(a){for(var h,f=1,x=arguments.length;f0&&v[v.length-1])&&(6===oe[0]||2===oe[0])){f=0;continue}if(3===oe[0]&&(!v||oe[1]>v[0]&&oe[1](new Date).getTime()?(bn.debug("token not expired"),this._setCredentialsFromFederation({provider:f,token:E,user:x,identity_id:v,expires_at:Ee})):this._refreshHandlers[f]&&"function"==typeof this._refreshHandlers[f]?(bn.debug("getting refreshed jwt token from federation provider"),this._providerRefreshWithRetry({refreshHandler:this._refreshHandlers[f],provider:f,user:x})):(bn.debug("no refresh handler for provider:",f),this.clear(),Promise.reject("no refresh handler for provider"))},a.prototype._providerRefreshWithRetry=function(h){var f=this,E=h.provider,v=h.user;return function(a,h,f){return void 0===f&&(f=3e5),ue(a,h,function(a){return function(x){var E=100*Math.pow(2,x)+100*Math.random();return!(E>a)&&E}}(f))}(h.refreshHandler,[],1e4).then(function(Ne){return bn.debug("refresh federated token sucessfully",Ne),f._setCredentialsFromFederation({provider:E,token:Ne.token,user:v,identity_id:Ne.identity_id,expires_at:Ne.expires_at})}).catch(function(Ne){return"string"==typeof Ne&&0===Ne.toLowerCase().lastIndexOf("network error",Ne.length)||f.clear(),bn.debug("refresh federated token failed",Ne),Promise.reject("refreshing federation token failed: "+Ne)})},a.prototype._isExpired=function(h){if(!h)return bn.debug("no credentials for expiration check"),!0;bn.debug("are these credentials expired?",h);var f=Date.now();return h.expiration.getTime()<=f},a.prototype._isPastTTL=function(){return this._nextCredentialsRefresh<=Date.now()},a.prototype._setCredentialsForGuest=function(){return Cr(this,void 0,void 0,function(){var h,f,x,v,Ee,Ne,ot,ht=this;return Er(this,function(nt){switch(nt.label){case 0:return bn.debug("setting credentials for guest"),f=(h=this._config).identityPoolId,x=h.region,h.mandatorySignIn?[2,Promise.reject("cannot get guest credentials when mandatory signin enabled")]:f?x?(Ee=this,[4,this._getGuestIdentityId()]):(bn.debug("region is not configured for getting the credentials"),[2,Promise.reject("region is not configured for getting the credentials")]):(bn.debug("No Cognito Identity pool provided for unauthenticated access"),[2,Promise.reject("No Cognito Identity pool provided for unauthenticated access")]);case 1:return v=Ee._identityId=nt.sent(),Ne=new Eu({region:x,customUserAgent:(0,c.Zm)()}),ot=void 0,ot=v?ms({identityId:v,client:Ne})():Cr(ht,void 0,void 0,function(){var rt;return Er(this,function(Tt){switch(Tt.label){case 0:return[4,Ne.send(new Br({IdentityPoolId:f}))];case 1:return rt=Tt.sent().IdentityId,this._identityId=rt,[2,ms({client:Ne,identityId:rt})()]}})}).catch(function(rt){return Cr(ht,void 0,void 0,function(){return Er(this,function(yt){throw rt})})}),[2,this._loadCredentials(ot,"guest",!1,null).then(function(rt){return rt}).catch(function(rt){return Cr(ht,void 0,void 0,function(){var tt=this;return Er(this,function(Tt){switch(Tt.label){case 0:return"ResourceNotFoundException"===rt.name&&rt.message==="Identity '"+v+"' not found."?(bn.debug("Failed to load guest credentials"),[4,this._removeGuestIdentityId()]):[3,2];case 1:return Tt.sent(),ot=Cr(tt,void 0,void 0,function(){var Vt;return Er(this,function(Ci){switch(Ci.label){case 0:return[4,Ne.send(new Br({IdentityPoolId:f}))];case 1:return Vt=Ci.sent().IdentityId,this._identityId=Vt,[2,ms({client:Ne,identityId:Vt})()]}})}).catch(function(Vt){return Cr(tt,void 0,void 0,function(){return Er(this,function(cn){throw Vt})})}),[2,this._loadCredentials(ot,"guest",!1,null)];case 2:return[2,rt]}})})})]}})})},a.prototype._setCredentialsFromFederation=function(h){var f=h.provider,x=h.token,E=h.identity_id,Ee={google:"accounts.google.com",facebook:"graph.facebook.com",amazon:"www.amazon.com",developer:"cognito-identity.amazonaws.com"}[f]||f;if(!Ee)return Promise.reject("You must specify a federated provider");var Ne={};Ne[Ee]=x;var ot=this._config,oe=ot.identityPoolId,He=ot.region;if(!oe)return bn.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!He)return bn.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var ht=new Eu({region:He,customUserAgent:(0,c.Zm)()}),nt=void 0;return nt=E?ms({identityId:E,logins:Ne,client:ht})():function(a){var h=this,f=a.accountId,x=a.cache,E=void 0===x?"object"==typeof self&&self.indexedDB?new _u:"object"==typeof window&&window.localStorage?window.localStorage:md:x,v=a.client,Ee=a.customRoleArn,Ne=a.identityPoolId,ot=a.logins,oe=a.userIdentifier,He=void 0===oe?ot&&0!==Object.keys(ot).length?void 0:"ANONYMOUS":oe,ht=He?"aws:cognito-identity-credentials:"+Ne+":"+He:void 0,nt=function(){return T(h,void 0,void 0,function(){var rt,yt,tt,Tt,Vt,cn,xo,Ci,Po;return z(this,function(ii){switch(ii.label){case 0:return(yt=ht)?[4,E.getItem(ht)]:[3,2];case 1:yt=ii.sent(),ii.label=2;case 2:return(rt=yt)?[3,7]:(cn=(Vt=v).send,xo=Br.bind,Po={AccountId:f,IdentityPoolId:Ne},ot?[4,Rn(ot)]:[3,4]);case 3:return Ci=ii.sent(),[3,5];case 4:Ci=void 0,ii.label=5;case 5:return[4,cn.apply(Vt,[new(xo.apply(Br,[void 0,(Po.Logins=Ci,Po)]))])];case 6:tt=ii.sent().IdentityId,Tt=void 0===tt?function(){throw new Xs("Response from Amazon Cognito contained no identity ID")}():tt,rt=Tt,ht&&Promise.resolve(E.setItem(ht,rt)).catch(function(){}),ii.label=7;case 7:return[2,(nt=ms({client:v,customRoleArn:Ee,logins:ot,identityId:rt}))()]}})})};return function(){return nt().catch(function(rt){return T(h,void 0,void 0,function(){return z(this,function(yt){throw ht&&Promise.resolve(E.removeItem(ht)).catch(function(){}),rt})})})}}({logins:Ne,identityPoolId:oe,client:ht})(),this._loadCredentials(nt,"federated",!0,h)},a.prototype._setCredentialsFromSession=function(h){var f=this;bn.debug("set credentials from session");var x=h.getIdToken().getJwtToken(),E=this._config,v=E.region,Ee=E.userPoolId,Ne=E.identityPoolId;if(!Ne)return bn.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!v)return bn.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var oe={};oe["cognito-idp."+v+".amazonaws.com/"+Ee]=x;var He=new Eu({region:v,customUserAgent:(0,c.Zm)()}),nt=Cr(f,void 0,void 0,function(){var rt,yt,tt,Tt,Vt,cn,xo,Ci,Po,ii;return Er(this,function(Ro){switch(Ro.label){case 0:return[4,this._getGuestIdentityId()];case 1:return(rt=Ro.sent())?[3,3]:[4,He.send(new Br({IdentityPoolId:Ne,Logins:oe}))];case 2:tt=Ro.sent().IdentityId,yt=tt,Ro.label=3;case 3:return[4,He.send(new Xc({IdentityId:rt||yt,Logins:oe}))];case 4:return Tt=Ro.sent(),cn=(Vt=Tt.Credentials).AccessKeyId,xo=Vt.Expiration,Ci=Vt.SecretKey,Po=Vt.SessionToken,this._identityId=ii=Tt.IdentityId,rt?(bn.debug("The guest identity "+rt+" has been successfully linked to the logins"),rt===ii&&bn.debug("The guest identity "+rt+" has become the primary identity"),[4,this._removeGuestIdentityId()]):[3,6];case 5:Ro.sent(),Ro.label=6;case 6:return[2,{accessKeyId:cn,secretAccessKey:Ci,sessionToken:Po,expiration:xo,identityId:ii}]}})}).catch(function(rt){return Cr(f,void 0,void 0,function(){return Er(this,function(yt){throw rt})})});return this._loadCredentials(nt,"userPool",!0,null)},a.prototype._loadCredentials=function(h,f,x,E){var v=this,Ee=this;return new Promise(function(Ne,ot){h.then(function(oe){return Cr(v,void 0,void 0,function(){var He,ht,nt,rt,yt;return Er(this,function(tt){switch(tt.label){case 0:if(bn.debug("Load credentials successfully",oe),this._identityId&&!oe.identityId&&(oe.identityId=this._identityId),Ee._credentials=oe,Ee._credentials.authenticated=x,Ee._credentials_source=f,Ee._nextCredentialsRefresh=(new Date).getTime()+3e6,"federated"===f){He=Object.assign({id:this._credentials.identityId},E.user),ht=E.provider,nt=E.token,rt=E.expires_at,yt=E.identity_id;try{this._storage.setItem("aws-amplify-federatedInfo",JSON.stringify({provider:ht,token:nt,user:He,expires_at:rt,identity_id:yt}))}catch(Tt){bn.debug("Failed to put federated info into auth storage",Tt)}}return"guest"!==f?[3,2]:[4,this._setGuestIdentityId(oe.identityId)];case 1:tt.sent(),tt.label=2;case 2:return Ne(Ee._credentials),[2]}})})}).catch(function(oe){if(oe)return bn.debug("Failed to load credentials",h),bn.debug("Error loading credentials",oe),void ot(oe)})})},a.prototype.set=function(h,f){return"session"===f?this._setCredentialsFromSession(h):"federation"===f?this._setCredentialsFromFederation(h):"guest"===f?this._setCredentialsForGuest():(bn.debug("no source specified for setting credentials"),Promise.reject("invalid source"))},a.prototype.clear=function(){return Cr(this,void 0,void 0,function(){return Er(this,function(h){return this._credentials=null,this._credentials_source=null,bn.debug("removing aws-amplify-federatedInfo from storage"),this._storage.removeItem("aws-amplify-federatedInfo"),[2]})})},a.prototype._getGuestIdentityId=function(){return Cr(this,void 0,void 0,function(){var h,f;return Er(this,function(x){switch(x.label){case 0:h=this._config.identityPoolId,x.label=1;case 1:return x.trys.push([1,3,,4]),[4,this._storageSync];case 2:return x.sent(),[2,this._storage.getItem(this._getCognitoIdentityIdStorageKey(h))];case 3:return f=x.sent(),bn.debug("Failed to get the cached guest identityId",f),[3,4];case 4:return[2]}})})},a.prototype._setGuestIdentityId=function(h){return Cr(this,void 0,void 0,function(){var f,x;return Er(this,function(E){switch(E.label){case 0:f=this._config.identityPoolId,E.label=1;case 1:return E.trys.push([1,3,,4]),[4,this._storageSync];case 2:return E.sent(),this._storage.setItem(this._getCognitoIdentityIdStorageKey(f),h),[3,4];case 3:return x=E.sent(),bn.debug("Failed to cache guest identityId",x),[3,4];case 4:return[2]}})})},a.prototype._removeGuestIdentityId=function(){return Cr(this,void 0,void 0,function(){var h;return Er(this,function(f){return bn.debug("removing "+this._getCognitoIdentityIdStorageKey(h=this._config.identityPoolId)+" from storage"),this._storage.removeItem(this._getCognitoIdentityIdStorageKey(h)),[2]})})},a.prototype.shear=function(h){return{accessKeyId:h.accessKeyId,sessionToken:h.sessionToken,secretAccessKey:h.secretAccessKey,identityId:h.identityId,authenticated:h.authenticated}},a}())(null);p.dQ.register(ki)},8182:(mt,de,W)=>{"use strict";W.d(de,{Xb:()=>le});var Q=W(1232),se=function(){return(se=Object.assign||function(he){for(var ue,we=1,fe=arguments.length;we0)&&!(ce=fe.next()).done;)ie.push(ce.value)}catch(Re){Ve={error:Re}}finally{try{ce&&!ce.done&&(we=fe.return)&&we.call(fe)}finally{if(Ve)throw Ve.error}}return ie},ee=function(){for(var he=[],ue=0;ue-1&&(ce===L||Ie.warn("WARNING: "+ue+" is protected and dispatching on it can have unintended consequences"));var Ve={channel:ue,payload:se({},we),source:fe,patternInfo:[]};try{this._toListeners(Ve)}catch(Re){Ie.error(Re)}},he.prototype.listen=function(ue,we,fe){var ie,ce=this;if(void 0===fe&&(fe="noname"),function(he){return void 0!==he.onHubCapsule}(we))Ie.warn("WARNING onHubCapsule is Deprecated. Please pass in a callback."),ie=we.onHubCapsule.bind(we);else{if("function"!=typeof we)throw new Error("No callback supplied to Hub");ie=we}if(ue instanceof RegExp)this.patterns.push({pattern:ue,callback:ie});else{var Ve=this.listeners[ue];Ve||(this.listeners[ue]=Ve=[]),Ve.push({name:fe,callback:ie})}return function(){ce.remove(ue,ie)}},he.prototype._toListeners=function(ue){var we=ue.channel,fe=ue.payload,ce=this.listeners[we];if(ce&&ce.forEach(function(Ve){Ie.debug("Dispatching to "+we+" with ",fe);try{Ve.callback(ue)}catch(Re){Ie.error(Re)}}),this.patterns.length>0){if(!fe.message)return void Ie.warn("Cannot perform pattern matching without a message key");var ie=fe.message;this.patterns.forEach(function(Ve){var Re=ie.match(Ve.pattern);if(Re){var ut=V(Re).slice(1),pt=se(se({},ue),{patternInfo:ut});try{Ve.callback(pt)}catch(Nt){Ie.error(Nt)}}})}},he}())("__default__")},8358:(mt,de,W)=>{"use strict";W.d(de,{xb:()=>se,rI:()=>Ie,ML:()=>D,lC:()=>pe,JS:()=>fe});var Q=[{type:"text/plain",ext:"txt"},{type:"text/html",ext:"html"},{type:"text/javascript",ext:"js"},{type:"text/css",ext:"css"},{type:"text/csv",ext:"csv"},{type:"text/yaml",ext:"yml"},{type:"text/yaml",ext:"yaml"},{type:"text/calendar",ext:"ics"},{type:"text/calendar",ext:"ical"},{type:"image/apng",ext:"apng"},{type:"image/bmp",ext:"bmp"},{type:"image/gif",ext:"gif"},{type:"image/x-icon",ext:"ico"},{type:"image/x-icon",ext:"cur"},{type:"image/jpeg",ext:"jpg"},{type:"image/jpeg",ext:"jpeg"},{type:"image/jpeg",ext:"jfif"},{type:"image/jpeg",ext:"pjp"},{type:"image/jpeg",ext:"pjpeg"},{type:"image/png",ext:"png"},{type:"image/svg+xml",ext:"svg"},{type:"image/tiff",ext:"tif"},{type:"image/tiff",ext:"tiff"},{type:"image/webp",ext:"webp"},{type:"application/json",ext:"json"},{type:"application/xml",ext:"xml"},{type:"application/x-sh",ext:"sh"},{type:"application/zip",ext:"zip"},{type:"application/x-rar-compressed",ext:"rar"},{type:"application/x-tar",ext:"tar"},{type:"application/x-bzip",ext:"bz"},{type:"application/x-bzip2",ext:"bz2"},{type:"application/pdf",ext:"pdf"},{type:"application/java-archive",ext:"jar"},{type:"application/msword",ext:"doc"},{type:"application/vnd.ms-excel",ext:"xls"},{type:"application/vnd.ms-excel",ext:"xlsx"},{type:"message/rfc822",ext:"eml"}],se=function(ie){return void 0===ie&&(ie={}),0===Object.keys(ie).length},V=function(ie,Ve,Re){if(!ie||!ie.sort)return!1;var Ye=Re&&"desc"===Re?-1:1;return ie.sort(function(ut,pt){var Nt=ut[Ve],Mt=pt[Ve];return void 0===Mt?void 0===Nt?0:1*Ye:void 0===Nt||NtMt?1*Ye:0}),!0},ee=function(ie,Ve){var Re=Object.assign({},ie);return Ve&&("string"==typeof Ve?delete Re[Ve]:Ve.forEach(function(Ye){delete Re[Ye]})),Re},Ie=function(ie,Ve){void 0===Ve&&(Ve="application/octet-stream");var Re=ie.toLowerCase(),Ye=Q.filter(function(ut){return Re.endsWith("."+ut.ext)});return Ye.length>0?Ye[0].type:Ve},L=function(ie){var Ve=ie.toLowerCase();return!!Ve.startsWith("text/")||"application/json"===Ve||"application/xml"===Ve||"application/sh"===Ve},R=function(){for(var ie="",Ve="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",Re=32;Re>0;Re-=1)ie+=Ve[Math.floor(Math.random()*Ve.length)];return ie},D=function(ie){if(ie.isResolved)return ie;var Ve=!0,Re=!1,Ye=!1,ut=ie.then(function(pt){return Ye=!0,Ve=!1,pt},function(pt){throw Re=!0,Ve=!1,pt});return ut.isFullfilled=function(){return Ye},ut.isPending=function(){return Ve},ut.isRejected=function(){return Re},ut},le=function(){if("undefined"==typeof self)return!1;var ie=self;return void 0!==ie.WorkerGlobalScope&&self instanceof ie.WorkerGlobalScope},pe=function(){return{isBrowser:"undefined"!=typeof window&&void 0!==window.document,isNode:"undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node}},he=function(ie,Ve,Re){if(void 0===Ve&&(Ve=[]),void 0===Re&&(Re=[]),!we(ie))return ie;var Ye={};for(var ut in ie)ie.hasOwnProperty(ut)&&(Ye[Ve.includes(ut)?ut:ut[0].toLowerCase()+ut.slice(1)]=Re.includes(ut)?ie[ut]:he(ie[ut],Ve,Re));return Ye},ue=function(ie,Ve,Re){if(void 0===Ve&&(Ve=[]),void 0===Re&&(Re=[]),!we(ie))return ie;var Ye={};for(var ut in ie)ie.hasOwnProperty(ut)&&(Ye[Ve.includes(ut)?ut:ut[0].toUpperCase()+ut.slice(1)]=Re.includes(ut)?ie[ut]:ue(ie[ut],Ve,Re));return Ye},we=function(ie){return!(!(ie instanceof Object)||ie instanceof Array||ie instanceof Function||ie instanceof Number||ie instanceof String||ie instanceof Boolean)},fe=function(){function ie(){}return ie.isEmpty=se,ie.sortByField=V,ie.objectLessAttributes=ee,ie.filenameToContentType=Ie,ie.isTextFile=L,ie.generateRandomString=R,ie.makeQuerablePromise=D,ie.isWebWorker=le,ie.browserOrNode=pe,ie.transferKeyToLowerCase=he,ie.transferKeyToUpperCase=ue,ie.isStrictObject=we,ie}()},1232:(mt,de,W)=>{"use strict";W.d(de,{k:()=>we});var D=function(fe){var ce="function"==typeof Symbol&&Symbol.iterator,ie=ce&&fe[ce],Ve=0;if(ie)return ie.call(fe);if(fe&&"number"==typeof fe.length)return{next:function(){return fe&&Ve>=fe.length&&(fe=void 0),{value:fe&&fe[Ve++],done:!fe}}};throw new TypeError(ce?"Object is not iterable.":"Symbol.iterator is not defined.")},le=function(fe,ce){var ie="function"==typeof Symbol&&fe[Symbol.iterator];if(!ie)return fe;var Re,ut,Ve=ie.call(fe),Ye=[];try{for(;(void 0===ce||ce-- >0)&&!(Re=Ve.next()).done;)Ye.push(Re.value)}catch(pt){ut={error:pt}}finally{try{Re&&!Re.done&&(ie=Ve.return)&&ie.call(Ve)}finally{if(ut)throw ut.error}}return Ye},pe=function(){for(var fe=[],ce=0;ce{return(fe=ue||(ue={})).DEBUG="DEBUG",fe.ERROR="ERROR",fe.INFO="INFO",fe.WARN="WARN",fe.VERBOSE="VERBOSE",ue;var fe})(),we=function(){function fe(ce,ie){void 0===ie&&(ie=ue.WARN),this.name=ce,this.level=ie,this._pluggables=[]}return fe.prototype._padding=function(ce){return ce<10?"0"+ce:""+ce},fe.prototype._ts=function(){var ce=new Date;return[this._padding(ce.getMinutes()),this._padding(ce.getSeconds())].join(":")+"."+ce.getMilliseconds()},fe.prototype.configure=function(ce){return ce?(this._config=ce,this._config):this._config},fe.prototype._log=function(ce){for(var ie,Ve,Re=[],Ye=1;Ye=pt){var Mt=console.log.bind(console);ce===ue.ERROR&&console.error&&(Mt=console.error.bind(console)),ce===ue.WARN&&console.warn&&(Mt=console.warn.bind(console));var je="["+ce+"] "+this._ts()+" "+this.name,G="";if(1===Re.length&&"string"==typeof Re[0])Mt(G=je+" - "+Re[0]);else if(1===Re.length)G=je+" "+Re[0],Mt(je,Re[0]);else if("string"==typeof Re[0]){var H=Re.slice(1);1===H.length&&(H=H[0]),G=je+" - "+Re[0]+" "+H,Mt(je+" - "+Re[0],H)}else G=je+" "+Re,Mt(je,Re);try{for(var S=D(this._pluggables),g=S.next();!g.done;g=S.next()){var w=g.value,c={message:G,timestamp:Date.now()};w.pushLogs([c])}}catch(p){ie={error:p}}finally{try{g&&!g.done&&(Ve=S.return)&&Ve.call(S)}finally{if(ie)throw ie.error}}}},fe.prototype.log=function(){for(var ce=[],ie=0;ie{"use strict";W.d(de,{_b:()=>Ie});var Q=W(1232),se=function(){return(se=Object.assign||function(R){for(var D,le=1,pe=arguments.length;le{"use strict";W.d(de,{t4:()=>V,Zm:()=>ee});var se="aws-amplify/4.3.7",V={userAgent:se+" js",product:"",navigator:null,isReactNative:!1};if("undefined"!=typeof navigator&&navigator.product)switch(V.product=navigator.product||"",V.navigator=navigator||null,navigator.product){case"ReactNative":V.userAgent=se+" react-native",V.isReactNative=!0;break;default:V.userAgent=se+" js",V.isReactNative=!1}var ee=function(){return V.userAgent}},8431:(mt,de,W)=>{"use strict";W.d(de,{c4:()=>V});var Q={},se=function(){function Ie(){}return Ie.setItem=function(L,R){return Q[L]=R,Q[L]},Ie.getItem=function(L){return Object.prototype.hasOwnProperty.call(Q,L)?Q[L]:void 0},Ie.removeItem=function(L){return delete Q[L]},Ie.clear=function(){return Q={}},Ie}(),V=function(){function Ie(){try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.amplify.test-ls",1),this.storageWindow.removeItem("aws.amplify.test-ls")}catch(L){this.storageWindow=se}}return Ie.prototype.getStorage=function(){return this.storageWindow},Ie}()},665:(mt,de,W)=>{"use strict";W.d(de,{C:()=>we,H:()=>j,a:()=>Ve,b:()=>Je,c:()=>lt,g:()=>ze,h:()=>b,p:()=>ce,r:()=>It,w:()=>ue});var Q=W(680);let V,ee,Ie,L=!1,R=!1,D=!1,le=!1,pe=0,he=!1;const ue="undefined"!=typeof window?window:{},we=ue.CSS,fe=ue.document||{head:{}},ce={$flags$:0,$resourcesUrl$:"",jmp:ye=>ye(),raf:ye=>requestAnimationFrame(ye),ael:(ye,Ae,Qe,Ze)=>ye.addEventListener(Ae,Qe,Ze),rel:(ye,Ae,Qe,Ze)=>ye.removeEventListener(Ae,Qe,Ze)},ie=(()=>(fe.head.attachShadow+"").indexOf("[native")>-1)(),Ve=ye=>Promise.resolve(ye),Re=(()=>{try{return new CSSStyleSheet,!0}catch(ye){}return!1})(),Ye=(ye,Ae,Qe,Ze)=>{Qe&&Qe.map(([dt,wt,gt])=>{const Pt=ye,Ft=ut(Ae,gt),Qt=pt(dt);ce.ael(Pt,wt,Ft,Qt),(Ae.$rmListeners$=Ae.$rmListeners$||[]).push(()=>ce.rel(Pt,wt,Ft,Qt))})},ut=(ye,Ae)=>Qe=>{256&ye.$flags$?ye.$lazyInstance$[Ae](Qe):(ye.$queuedListeners$=ye.$queuedListeners$||[]).push([Ae,Qe])},pt=ye=>0!=(2&ye),Mt="http://www.w3.org/1999/xlink",H=new WeakMap,c=(ye,Ae)=>"sc-"+ye.$tagName$,p={},y=ye=>"object"==(ye=typeof ye)||"function"===ye,b=(ye,Ae,...Qe)=>{let Ze=null,dt=null,wt=null,gt=!1,Pt=!1,Ft=[];const Qt=Ut=>{for(let In=0;InUt[In]).join(" "))}}const nn=C(ye,null);return nn.$attrs$=Ae,Ft.length>0&&(nn.$children$=Ft),nn.$key$=dt,nn.$name$=wt,nn},C=(ye,Ae)=>({$flags$:0,$tag$:ye,$text$:Ae,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),j={},z=(ye,Ae,Qe,Ze,dt,wt)=>{if(Qe!==Ze){let gt=kt(ye,Ae),Pt=Ae.toLowerCase();if("class"===Ae){const Ft=ye.classList,Qt=Le(Qe),nn=Le(Ze);Ft.remove(...Qt.filter(Ut=>Ut&&!nn.includes(Ut))),Ft.add(...nn.filter(Ut=>Ut&&!Qt.includes(Ut)))}else if("style"===Ae){for(const Ft in Qe)(!Ze||null==Ze[Ft])&&(Ft.includes("-")?ye.style.removeProperty(Ft):ye.style[Ft]="");for(const Ft in Ze)(!Qe||Ze[Ft]!==Qe[Ft])&&(Ft.includes("-")?ye.style.setProperty(Ft,Ze[Ft]):ye.style[Ft]=Ze[Ft])}else if("key"!==Ae)if("ref"===Ae)Ze&&Ze(ye);else if(gt||"o"!==Ae[0]||"n"!==Ae[1]){const Ft=y(Ze);if((gt||Ft&&null!==Ze)&&!dt)try{if(ye.tagName.includes("-"))ye[Ae]=Ze;else{let nn=null==Ze?"":Ze;"list"===Ae?gt=!1:(null==Qe||ye[Ae]!=nn)&&(ye[Ae]=nn)}}catch(nn){}let Qt=!1;Pt!==(Pt=Pt.replace(/^xlink\:?/,""))&&(Ae=Pt,Qt=!0),null==Ze||!1===Ze?(!1!==Ze||""===ye.getAttribute(Ae))&&(Qt?ye.removeAttributeNS(Mt,Ae):ye.removeAttribute(Ae)):(!gt||4&wt||dt)&&!Ft&&(Ze=!0===Ze?"":Ze,Qt?ye.setAttributeNS(Mt,Ae,Ze):ye.setAttribute(Ae,Ze))}else Ae="-"===Ae[2]?Ae.slice(3):kt(ue,Pt)?Pt.slice(2):Pt[2]+Ae.slice(3),Qe&&ce.rel(ye,Ae,Qe,!1),Ze&&ce.ael(ye,Ae,Ze,!1)}},Fe=/\s/,Le=ye=>ye?ye.split(Fe):[],Me=(ye,Ae,Qe,Ze)=>{const dt=11===Ae.$elm$.nodeType&&Ae.$elm$.host?Ae.$elm$.host:Ae.$elm$,wt=ye&&ye.$attrs$||p,gt=Ae.$attrs$||p;for(Ze in wt)Ze in gt||z(dt,Ze,wt[Ze],void 0,Qe,Ae.$flags$);for(Ze in gt)z(dt,Ze,wt[Ze],gt[Ze],Qe,Ae.$flags$)},et=(ye,Ae,Qe,Ze)=>{let gt,Pt,Ft,dt=Ae.$children$[Qe],wt=0;if(L||(D=!0,"slot"===dt.$tag$&&(V&&Ze.classList.add(V+"-s"),dt.$flags$|=dt.$children$?2:1)),null!==dt.$text$)gt=dt.$elm$=fe.createTextNode(dt.$text$);else if(1&dt.$flags$)gt=dt.$elm$=fe.createTextNode("");else{if(le||(le="svg"===dt.$tag$),gt=dt.$elm$=fe.createElementNS(le?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&dt.$flags$?"slot-fb":dt.$tag$),le&&"foreignObject"===dt.$tag$&&(le=!1),Me(null,dt,le),(ye=>null!=ye)(V)&>["s-si"]!==V&>.classList.add(gt["s-si"]=V),dt.$children$)for(wt=0;wt{ce.$flags$|=1;const Qe=ye.childNodes;for(let Ze=Qe.length-1;Ze>=0;Ze--){const dt=Qe[Ze];dt["s-hn"]!==Ie&&dt["s-ol"]&&(Tn(dt).insertBefore(dt,_n(dt)),dt["s-ol"].remove(),dt["s-ol"]=void 0,D=!0),Ae&&St(dt,Ae)}ce.$flags$&=-2},bt=(ye,Ae,Qe,Ze,dt,wt)=>{let Pt,gt=ye["s-cr"]&&ye["s-cr"].parentNode||ye;for(gt.shadowRoot&>.tagName===Ie&&(gt=gt.shadowRoot);dt<=wt;++dt)Ze[dt]&&(Pt=et(null,Qe,dt,ye),Pt&&(Ze[dt].$elm$=Pt,gt.insertBefore(Pt,_n(Ae))))},Rt=(ye,Ae,Qe,Ze,dt)=>{for(;Ae<=Qe;++Ae)(Ze=ye[Ae])&&(dt=Ze.$elm$,k(Ze),R=!0,dt["s-ol"]?dt["s-ol"].remove():St(dt,!0),dt.remove())},Kt=(ye,Ae)=>ye.$tag$===Ae.$tag$&&("slot"===ye.$tag$?ye.$name$===Ae.$name$:ye.$key$===Ae.$key$),_n=ye=>ye&&ye["s-ol"]||ye,Tn=ye=>(ye["s-ol"]?ye["s-ol"]:ye).parentNode,Pn=(ye,Ae)=>{const Qe=Ae.$elm$=ye.$elm$,Ze=ye.$children$,dt=Ae.$children$,wt=Ae.$tag$,gt=Ae.$text$;let Pt;null===gt?(le="svg"===wt||"foreignObject"!==wt&&le,"slot"===wt||Me(ye,Ae,le),null!==Ze&&null!==dt?((ye,Ae,Qe,Ze)=>{let or,Xr,dt=0,wt=0,gt=0,Pt=0,Ft=Ae.length-1,Qt=Ae[0],nn=Ae[Ft],Ut=Ze.length-1,In=Ze[0],Yt=Ze[Ut];for(;dt<=Ft&&wt<=Ut;)if(null==Qt)Qt=Ae[++dt];else if(null==nn)nn=Ae[--Ft];else if(null==In)In=Ze[++wt];else if(null==Yt)Yt=Ze[--Ut];else if(Kt(Qt,In))Pn(Qt,In),Qt=Ae[++dt],In=Ze[++wt];else if(Kt(nn,Yt))Pn(nn,Yt),nn=Ae[--Ft],Yt=Ze[--Ut];else if(Kt(Qt,Yt))("slot"===Qt.$tag$||"slot"===Yt.$tag$)&&St(Qt.$elm$.parentNode,!1),Pn(Qt,Yt),ye.insertBefore(Qt.$elm$,nn.$elm$.nextSibling),Qt=Ae[++dt],Yt=Ze[--Ut];else if(Kt(nn,In))("slot"===Qt.$tag$||"slot"===Yt.$tag$)&&St(nn.$elm$.parentNode,!1),Pn(nn,In),ye.insertBefore(nn.$elm$,Qt.$elm$),nn=Ae[--Ft],In=Ze[++wt];else{for(gt=-1,Pt=dt;Pt<=Ft;++Pt)if(Ae[Pt]&&null!==Ae[Pt].$key$&&Ae[Pt].$key$===In.$key$){gt=Pt;break}gt>=0?(Xr=Ae[gt],Xr.$tag$!==In.$tag$?or=et(Ae&&Ae[wt],Qe,gt,ye):(Pn(Xr,In),Ae[gt]=void 0,or=Xr.$elm$),In=Ze[++wt]):(or=et(Ae&&Ae[wt],Qe,wt,ye),In=Ze[++wt]),or&&Tn(Qt.$elm$).insertBefore(or,_n(Qt.$elm$))}dt>Ft?bt(ye,null==Ze[Ut+1]?null:Ze[Ut+1].$elm$,Qe,Ze,wt,Ut):wt>Ut&&Rt(Ae,dt,Ft)})(Qe,Ze,Ae,dt):null!==dt?(null!==ye.$text$&&(Qe.textContent=""),bt(Qe,null,Ae,dt,0,dt.length-1)):null!==Ze&&Rt(Ze,0,Ze.length-1),le&&"svg"===wt&&(le=!1)):(Pt=Qe["s-cr"])?Pt.parentNode.textContent=gt:ye.$text$!==gt&&(Qe.data=gt)},gn=ye=>{let Qe,Ze,dt,wt,gt,Pt,Ae=ye.childNodes;for(Ze=0,dt=Ae.length;Ze{let Ae,Qe,Ze,dt,wt,gt,Pt=0,Ft=ye.childNodes,Qt=Ft.length;for(;Pt=0;gt--)Qe=Ze[gt],!Qe["s-cn"]&&!Qe["s-nr"]&&Qe["s-hn"]!==Ae["s-hn"]&&(A(Qe,dt)?(wt=Ln.find(nn=>nn.$nodeToRelocate$===Qe),R=!0,Qe["s-sn"]=Qe["s-sn"]||dt,wt?wt.$slotRefNode$=Ae:Ln.push({$slotRefNode$:Ae,$nodeToRelocate$:Qe}),Qe["s-sr"]&&Ln.map(nn=>{A(nn.$nodeToRelocate$,Qe["s-sn"])&&(wt=Ln.find(Ut=>Ut.$nodeToRelocate$===Qe),wt&&!nn.$slotRefNode$&&(nn.$slotRefNode$=wt.$slotRefNode$))})):Ln.some(nn=>nn.$nodeToRelocate$===Qe)||Ln.push({$nodeToRelocate$:Qe}));1===Ae.nodeType&&ge(Ae)}},A=(ye,Ae)=>1===ye.nodeType?null===ye.getAttribute("slot")&&""===Ae||ye.getAttribute("slot")===Ae:ye["s-sn"]===Ae||""===Ae,k=ye=>{ye.$attrs$&&ye.$attrs$.ref&&ye.$attrs$.ref(null),ye.$children$&&ye.$children$.map(k)},ze=ye=>it(ye).$hostElement$,lt=(ye,Ae,Qe)=>{const Ze=ze(ye);return{emit:dt=>ft(Ze,Ae,{bubbles:!!(4&Qe),composed:!!(2&Qe),cancelable:!!(1&Qe),detail:dt})}},ft=(ye,Ae,Qe)=>{const Ze=new CustomEvent(Ae,Qe);return ye.dispatchEvent(Ze),Ze},an=(ye,Ae)=>{Ae&&!ye.$onRenderResolve$&&Ae["s-p"]&&Ae["s-p"].push(new Promise(Qe=>ye.$onRenderResolve$=Qe))},J=(ye,Ae)=>{if(ye.$flags$|=16,!(4&ye.$flags$))return an(ye,ye.$ancestorComponent$),yo(()=>Z(ye,Ae));ye.$flags$|=512},Z=(ye,Ae)=>{const Ze=ye.$lazyInstance$;let dt;return Ae&&(ye.$flags$|=256,ye.$queuedListeners$&&(ye.$queuedListeners$.map(([wt,gt])=>vt(Ze,wt,gt)),ye.$queuedListeners$=null),dt=vt(Ze,"componentWillLoad")),_e(dt,()=>te(ye,Ze,Ae))},te=(ye,Ae,Qe)=>{const Ze=ye.$hostElement$,wt=Ze["s-rc"];Qe&&(ye=>{const Ae=ye.$cmpMeta$,Qe=ye.$hostElement$,Ze=Ae.$flags$,wt=((ye,Ae,Qe,Ze)=>{let dt=c(Ae),wt=yn.get(dt);if(ye=11===ye.nodeType?ye:fe,wt)if("string"==typeof wt){let Pt,gt=H.get(ye=ye.head||ye);if(gt||H.set(ye,gt=new Set),!gt.has(dt)){if(ce.$cssShim$){Pt=ce.$cssShim$.createHostStyle(Ze,dt,wt,!!(10&Ae.$flags$));const Ft=Pt["s-sc"];Ft&&(dt=Ft,gt=null)}else Pt=fe.createElement("style"),Pt.innerHTML=wt;ye.insertBefore(Pt,ye.querySelector("link")),gt&>.add(dt)}}else ye.adoptedStyleSheets.includes(wt)||(ye.adoptedStyleSheets=[...ye.adoptedStyleSheets,wt]);return dt})(ie&&Qe.shadowRoot?Qe.shadowRoot:Qe.getRootNode(),Ae,0,Qe);10&Ze&&(Qe["s-sc"]=wt,Qe.classList.add(wt+"-h"),2&Ze&&Qe.classList.add(wt+"-s"))})(ye);((ye,Ae)=>{const Qe=ye.$hostElement$,Ze=ye.$cmpMeta$,dt=ye.$vnode$||C(null,null),wt=(ye=>ye&&ye.$tag$===j)(Ae)?Ae:b(null,null,Ae);if(Ie=Qe.tagName,wt.$tag$=null,wt.$flags$|=4,ye.$vnode$=wt,wt.$elm$=dt.$elm$=Qe.shadowRoot||Qe,V=Qe["s-sc"],ee=Qe["s-cr"],L=ie&&0!=(1&Ze.$flags$),R=!1,Pn(dt,wt),ce.$flags$|=1,D){ge(wt.$elm$);let gt,Pt,Ft,Qt,nn,Ut,In=0;for(;InPt()),Ze["s-rc"]=void 0);{const Pt=Ze["s-p"],Ft=()=>Pe(ye);0===Pt.length?Ft():(Promise.all(Pt).then(Ft),ye.$flags$|=4,Pt.length=0)}},ve=(ye,Ae)=>{try{Ae=Ae.render(),ye.$flags$&=-17,ye.$flags$|=2}catch(Qe){Dt(Qe)}return Ae},Pe=ye=>{const Qe=ye.$hostElement$,dt=ye.$lazyInstance$,wt=ye.$ancestorComponent$;vt(dt,"componentDidRender"),64&ye.$flags$||(ye.$flags$|=64,O(Qe),vt(dt,"componentDidLoad"),ye.$onReadyResolve$(Qe),wt||Be()),ye.$onRenderResolve$&&(ye.$onRenderResolve$(),ye.$onRenderResolve$=void 0),512&ye.$flags$&&vi(()=>J(ye,!1)),ye.$flags$&=-517},Be=ye=>{O(fe.documentElement),ce.$flags$|=2,vi(()=>ft(ue,"appload",{detail:{namespace:"amplify-ui-components"}}))},vt=(ye,Ae,Qe)=>{if(ye&&ye[Ae])try{return ye[Ae](Qe)}catch(Ze){Dt(Ze)}},_e=(ye,Ae)=>ye&&ye.then?ye.then(Ae):Ae(),O=ye=>ye.classList.add("hydrated"),U=(ye,Ae,Qe)=>{if(Ae.$members$){ye.watchers&&(Ae.$watchers$=ye.watchers);const Ze=Object.entries(Ae.$members$),dt=ye.prototype;if(Ze.map(([wt,[gt]])=>{(31>||2&Qe&&32>)&&Object.defineProperty(dt,wt,{get(){return((ye,Ae)=>it(this).$instanceValues$.get(Ae))(0,wt)},set(Pt){((ye,Ae,Qe,Ze)=>{const dt=it(ye),wt=dt.$instanceValues$.get(Ae),gt=dt.$flags$,Pt=dt.$lazyInstance$;if(Qe=((ye,Ae)=>null==ye||y(ye)?ye:4&Ae?"false"!==ye&&(""===ye||!!ye):2&Ae?parseFloat(ye):1&Ae?String(ye):ye)(Qe,Ze.$members$[Ae][0]),(!(8>)||void 0===wt)&&Qe!==wt&&(dt.$instanceValues$.set(Ae,Qe),Pt)){if(Ze.$watchers$&&128>){const Ft=Ze.$watchers$[Ae];Ft&&Ft.map(Qt=>{try{Pt[Qt](Qe,wt,Ae)}catch(nn){Dt(nn)}})}2==(18>)&&J(dt,!1)}})(this,wt,Pt,Ae)},configurable:!0,enumerable:!0})}),1&Qe){const wt=new Map;dt.attributeChangedCallback=function(gt,Pt,Ft){ce.jmp(()=>{const Qt=wt.get(gt);this[Qt]=(null!==Ft||"boolean"!=typeof this[Qt])&&Ft})},ye.observedAttributes=Ze.filter(([gt,Pt])=>15&Pt[0]).map(([gt,Pt])=>{const Ft=Pt[1]||gt;return wt.set(Ft,gt),Ft})}}return ye},K=function(){var ye=(0,Q.Z)(function*(Ae,Qe,Ze,dt,wt){if(0==(32&Qe.$flags$)){Qe.$flags$|=32;{if((wt=on(Ze)).then){const Qt=()=>{};wt=yield wt,Qt()}wt.isProxied||(Ze.$watchers$=wt.watchers,U(wt,Ze,2),wt.isProxied=!0);const Ft=()=>{};Qe.$flags$|=8;try{new wt(Qe)}catch(Qt){Dt(Qt)}Qe.$flags$&=-9,Qe.$flags$|=128,Ft()}if(wt.style){let Ft=wt.style;const Qt=c(Ze);if(!yn.has(Qt)){const nn=()=>{};8&Ze.$flags$&&(Ft=yield W.e(191).then(W.bind(W,4191)).then(Ut=>Ut.scopeCss(Ft,Qt,!1))),((ye,Ae,Qe)=>{let Ze=yn.get(ye);Re&&Qe?(Ze=Ze||new CSSStyleSheet,Ze.replace(Ae)):Ze=Ae,yn.set(ye,Ze)})(Qt,Ft,!!(1&Ze.$flags$)),nn()}}}const gt=Qe.$ancestorComponent$,Pt=()=>J(Qe,!0);gt&>["s-rc"]?gt["s-rc"].push(Pt):Pt()});return function(Qe,Ze,dt,wt,gt){return ye.apply(this,arguments)}}(),Je=(ye,Ae={})=>{const Ze=[],dt=Ae.exclude||[],wt=ue.customElements,gt=fe.head,Pt=gt.querySelector("meta[charset]"),Ft=fe.createElement("style"),Qt=[];let nn,Ut=!0;Object.assign(ce,Ae),ce.$resourcesUrl$=new URL(Ae.resourcesUrl||"./",fe.baseURI).href,Ae.syncQueue&&(ce.$flags$|=4),ye.map(In=>In[1].map(Yt=>{const or={$flags$:Yt[0],$tagName$:Yt[1],$members$:Yt[2],$listeners$:Yt[3]};or.$members$=Yt[2],or.$listeners$=Yt[3],or.$watchers$={},!ie&&1&or.$flags$&&(or.$flags$|=8);const Xr=or.$tagName$,Vo=class extends HTMLElement{constructor(Wt){super(Wt),Ct(Wt=this,or),1&or.$flags$&&(ie?Wt.attachShadow({mode:"open"}):"shadowRoot"in Wt||(Wt.shadowRoot=Wt))}connectedCallback(){nn&&(clearTimeout(nn),nn=null),Ut?Qt.push(this):ce.jmp(()=>(ye=>{if(0==(1&ce.$flags$)){const Ae=it(ye),Qe=Ae.$cmpMeta$,Ze=()=>{};if(1&Ae.$flags$)Ye(ye,Ae,Qe.$listeners$);else{Ae.$flags$|=1,12&Qe.$flags$&&(ye=>{const Ae=ye["s-cr"]=fe.createComment("");Ae["s-cn"]=!0,ye.insertBefore(Ae,ye.firstChild)})(ye);{let dt=ye;for(;dt=dt.parentNode||dt.host;)if(dt["s-p"]){an(Ae,Ae.$ancestorComponent$=dt);break}}Qe.$members$&&Object.entries(Qe.$members$).map(([dt,[wt]])=>{if(31&wt&&ye.hasOwnProperty(dt)){const gt=ye[dt];delete ye[dt],ye[dt]=gt}}),K(ye,Ae,Qe)}Ze()}})(this))}disconnectedCallback(){ce.jmp(()=>(ye=>{if(0==(1&ce.$flags$)){const Ae=it(ye),Qe=Ae.$lazyInstance$;Ae.$rmListeners$&&(Ae.$rmListeners$.map(Ze=>Ze()),Ae.$rmListeners$=void 0),ce.$cssShim$&&ce.$cssShim$.removeHost(ye),vt(Qe,"disconnectedCallback")}})(this))}forceUpdate(){(ye=>{{const Ae=it(this);Ae.$hostElement$.isConnected&&2==(18&Ae.$flags$)&&J(Ae,!1)}})()}componentOnReady(){return it(this).$onReadyPromise$}};or.$lazyBundleId$=In[0],!dt.includes(Xr)&&!wt.get(Xr)&&(Ze.push(Xr),wt.define(Xr,U(Vo,or,1)))})),Ft.innerHTML=Ze+"{visibility:hidden}.hydrated{visibility:inherit}",Ft.setAttribute("data-styles",""),gt.insertBefore(Ft,Pt?Pt.nextSibling:gt.firstChild),Ut=!1,Qt.length?Qt.map(In=>In.connectedCallback()):ce.jmp(()=>nn=setTimeout(Be,30))},ct=new WeakMap,it=ye=>ct.get(ye),It=(ye,Ae)=>ct.set(Ae.$lazyInstance$=ye,Ae),Ct=(ye,Ae)=>{const Qe={$flags$:0,$hostElement$:ye,$cmpMeta$:Ae,$instanceValues$:new Map};return Qe.$onReadyPromise$=new Promise(Ze=>Qe.$onReadyResolve$=Ze),ye["s-p"]=[],ye["s-rc"]=[],Ye(ye,Qe,Ae.$listeners$),ct.set(ye,Qe)},kt=(ye,Ae)=>Ae in ye,Dt=ye=>console.error(ye),jt=new Map,on=(ye,Ae,Qe)=>{const Ze=ye.$tagName$.replace(/-/g,"_"),dt=ye.$lazyBundleId$,wt=jt.get(dt);return wt?wt[Ze]:W(8911)(`./${dt}.entry.js`).then(gt=>(jt.set(dt,gt),gt[Ze]),Dt)},yn=new Map,Wn=[],Un=[],kn=[],ir=(ye,Ae)=>Qe=>{ye.push(Qe),he||(he=!0,Ae&&4&ce.$flags$?vi(mr):ce.raf(mr))},go=(ye,Ae)=>{let Qe=0,Ze=0;for(;Qe{pe++,(ye=>{for(let Ae=0;Ae0&&(kn.push(...Un),Un.length=0),(he=Wn.length+Un.length+kn.length>0)?ce.raf(mr):pe=0}},vi=ye=>Ve().then(ye),yo=ir(Un,!0)},4110:(mt,de)=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0})},8580:(mt,de)=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0})},1213:(mt,de)=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0})},5183:(mt,de)=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0})},3250:(mt,de)=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0}),de.isMsWindow=void 0;var W=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];de.isMsWindow=function(V){if(function(V){return"MSInputMethodContext"in V&&"msCrypto"in V}(V)&&void 0!==V.msCrypto.subtle){var ee=V.msCrypto,Ie=ee.getRandomValues,L=ee.subtle;return W.map(function(R){return L[R]}).concat(Ie).every(function(R){return"function"==typeof R})}return!1}},3700:(mt,de,W)=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});var Q=W(8075);Q.__exportStar(W(4110),de),Q.__exportStar(W(8580),de),Q.__exportStar(W(1213),de),Q.__exportStar(W(5183),de),Q.__exportStar(W(3250),de)},4633:(mt,de)=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0}),de.EMPTY_DATA_SHA_256=de.SHA_256_HMAC_ALGO=de.SHA_256_HASH=void 0,de.SHA_256_HASH={name:"SHA-256"},de.SHA_256_HMAC_ALGO={name:"HMAC",hash:de.SHA_256_HASH},de.EMPTY_DATA_SHA_256=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85])},5034:(mt,de,W)=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0}),de.Sha256=void 0;var Q=W(9592),se=W(8396),V=W(6828),ee=W(7126),Ie=W(3700),L=W(5134),R=function(){function D(le){this.hash=(0,ee.supportsWebCrypto)((0,L.locateWindow)())?new se.Sha256(le):(0,Ie.isMsWindow)((0,L.locateWindow)())?new Q.Sha256(le):new V.Sha256(le)}return D.prototype.update=function(le,pe){this.hash.update(le,pe)},D.prototype.digest=function(){return this.hash.digest()},D}();de.Sha256=R},9592:(mt,de,W)=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0}),de.Sha256=void 0;var Q=W(6019),se=W(4633),V=W(2231),ee=W(5134),Ie=function(){function D(le){le?(this.operation=function(D){return new Promise(function(le,pe){var he=(0,ee.locateWindow)().msCrypto.subtle.importKey("raw",R(D),se.SHA_256_HMAC_ALGO,!1,["sign"]);he.oncomplete=function(){he.result&&le(he.result),pe(new Error("ImportKey completed without importing key."))},he.onerror=function(){pe(new Error("ImportKey failed to import key."))}})}(le).then(function(pe){return(0,ee.locateWindow)().msCrypto.subtle.sign(se.SHA_256_HMAC_ALGO,pe)}),this.operation.catch(function(){})):this.operation=Promise.resolve((0,ee.locateWindow)().msCrypto.subtle.digest("SHA-256"))}return D.prototype.update=function(le){var pe=this;(0,Q.isEmptyData)(le)||(this.operation=this.operation.then(function(he){return he.onerror=function(){pe.operation=Promise.reject(new Error("Error encountered updating hash"))},he.process(R(le)),he}),this.operation.catch(function(){}))},D.prototype.digest=function(){return this.operation.then(function(le){return new Promise(function(pe,he){le.onerror=function(){he(new Error("Error encountered finalizing hash"))},le.oncomplete=function(){le.result&&pe(new Uint8Array(le.result)),he(new Error("Error encountered finalizing hash"))},le.finish()})})},D}();function R(D){return"string"==typeof D?(0,V.fromUtf8)(D):ArrayBuffer.isView(D)?new Uint8Array(D.buffer,D.byteOffset,D.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(D)}de.Sha256=Ie},9651:(mt,de,W)=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0}),de.WebCryptoSha256=de.Ie11Sha256=void 0,(0,W(2217).__exportStar)(W(5034),de);var se=W(9592);Object.defineProperty(de,"Ie11Sha256",{enumerable:!0,get:function(){return se.Sha256}});var V=W(8396);Object.defineProperty(de,"WebCryptoSha256",{enumerable:!0,get:function(){return V.Sha256}})},6019:(mt,de)=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0}),de.isEmptyData=void 0,de.isEmptyData=function(Q){return"string"==typeof Q?0===Q.length:0===Q.byteLength}},8396:(mt,de,W)=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0}),de.Sha256=void 0;var Q=W(9919),se=W(4633),V=W(5134),ee=function(){function Ie(L){this.toHash=new Uint8Array(0),void 0!==L&&(this.key=new Promise(function(R,D){(0,V.locateWindow)().crypto.subtle.importKey("raw",(0,Q.convertToBuffer)(L),se.SHA_256_HMAC_ALGO,!1,["sign"]).then(R,D)}),this.key.catch(function(){}))}return Ie.prototype.update=function(L){if(!(0,Q.isEmptyData)(L)){var R=(0,Q.convertToBuffer)(L),D=new Uint8Array(this.toHash.byteLength+R.byteLength);D.set(this.toHash,0),D.set(R,this.toHash.byteLength),this.toHash=D}},Ie.prototype.digest=function(){var L=this;return this.key?this.key.then(function(R){return(0,V.locateWindow)().crypto.subtle.sign(se.SHA_256_HMAC_ALGO,R,L.toHash).then(function(D){return new Uint8Array(D)})}):(0,Q.isEmptyData)(this.toHash)?Promise.resolve(se.EMPTY_DATA_SHA_256):Promise.resolve().then(function(){return(0,V.locateWindow)().crypto.subtle.digest(se.SHA_256_HASH,L.toHash)}).then(function(R){return Promise.resolve(new Uint8Array(R))})},Ie}();de.Sha256=ee},7833:(mt,de,W)=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0}),de.RawSha256=void 0;var Q=W(9019),se=function(){function V(){this.state=Int32Array.from(Q.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return V.prototype.update=function(ee){if(this.finished)throw new Error("Attempted to update an already finished hash.");var Ie=0,L=ee.byteLength;if(this.bytesHashed+=L,8*this.bytesHashed>Q.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;L>0;)this.buffer[this.bufferLength++]=ee[Ie++],L--,this.bufferLength===Q.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},V.prototype.digest=function(){if(!this.finished){var ee=8*this.bytesHashed,Ie=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),L=this.bufferLength;if(Ie.setUint8(this.bufferLength++,128),L%Q.BLOCK_SIZE>=Q.BLOCK_SIZE-8){for(var R=this.bufferLength;R>>24&255,D[4*R+1]=this.state[R]>>>16&255,D[4*R+2]=this.state[R]>>>8&255,D[4*R+3]=this.state[R]>>>0&255;return D},V.prototype.hashBuffer=function(){for(var Ie=this.buffer,L=this.state,R=L[0],D=L[1],le=L[2],pe=L[3],he=L[4],ue=L[5],we=L[6],fe=L[7],ce=0;ce>>17|ie<<15)^(ie>>>19|ie<<13)^ie>>>10)+this.temp[ce-7]|0)+((((ie=this.temp[ce-15])>>>7|ie<<25)^(ie>>>18|ie<<14)^ie>>>3)+this.temp[ce-16]|0)}var Ye=(((he>>>6|he<<26)^(he>>>11|he<<21)^(he>>>25|he<<7))+(he&ue^~he&we)|0)+(fe+(Q.KEY[ce]+this.temp[ce]|0)|0)|0,ut=((R>>>2|R<<30)^(R>>>13|R<<19)^(R>>>22|R<<10))+(R&D^R&le^D&le)|0;fe=we,we=ue,ue=he,he=pe+Ye|0,pe=le,le=D,D=R,R=Ye+ut|0}L[0]+=R,L[1]+=D,L[2]+=le,L[3]+=pe,L[4]+=he,L[5]+=ue,L[6]+=we,L[7]+=fe},V}();de.RawSha256=se},9019:(mt,de)=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0}),de.MAX_HASHABLE_LENGTH=de.INIT=de.KEY=de.DIGEST_LENGTH=de.BLOCK_SIZE=void 0,de.BLOCK_SIZE=64,de.DIGEST_LENGTH=32,de.KEY=new Uint32Array([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]),de.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],de.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1},6828:(mt,de,W)=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0}),(0,W(2217).__exportStar)(W(1509),de)},1509:(mt,de,W)=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0}),de.Sha256=void 0;var Q=W(2217),se=W(9019),V=W(7833),ee=W(9919),Ie=function(){function R(D){if(this.hash=new V.RawSha256,D){this.outer=new V.RawSha256;var le=function(R){var D=(0,ee.convertToBuffer)(R);if(D.byteLength>se.BLOCK_SIZE){var le=new V.RawSha256;le.update(D),D=le.digest()}var pe=new Uint8Array(se.BLOCK_SIZE);return pe.set(D),pe}(D),pe=new Uint8Array(se.BLOCK_SIZE);pe.set(le);for(var he=0;he{"use strict";Object.defineProperty(de,"__esModule",{value:!0}),W(7181).__exportStar(W(3814),de)},3814:(mt,de,W)=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0}),de.supportsZeroByteGCM=de.supportsSubtleCrypto=de.supportsSecureRandom=de.supportsWebCrypto=void 0;var Q=W(7181),se=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function ee(R){return"object"==typeof R&&"object"==typeof R.crypto&&"function"==typeof R.crypto.getRandomValues}function Ie(R){return R&&se.every(function(D){return"function"==typeof R[D]})}de.supportsWebCrypto=function(R){return!(!ee(R)||"object"!=typeof R.crypto.subtle)&&Ie(R.crypto.subtle)},de.supportsSecureRandom=ee,de.supportsSubtleCrypto=Ie,de.supportsZeroByteGCM=function(R){return Q.__awaiter(this,void 0,void 0,function(){var D;return Q.__generator(this,function(he){switch(he.label){case 0:if(!Ie(R))return[2,!1];he.label=1;case 1:return he.trys.push([1,4,,5]),[4,R.generateKey({name:"AES-GCM",length:128},!1,["encrypt"])];case 2:return D=he.sent(),[4,R.encrypt({name:"AES-GCM",iv:new Uint8Array(Array(12)),additionalData:new Uint8Array(Array(16)),tagLength:128},D,new Uint8Array(0))];case 3:return[2,16===he.sent().byteLength];case 4:return he.sent(),[2,!1];case 5:return[2]}})})}},5446:(mt,de,W)=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0}),de.convertToBuffer=void 0;var Q=W(2231),se="undefined"!=typeof Buffer&&Buffer.from?function(ee){return Buffer.from(ee,"utf8")}:Q.fromUtf8;de.convertToBuffer=function(ee){return ee instanceof Uint8Array?ee:"string"==typeof ee?se(ee):ArrayBuffer.isView(ee)?new Uint8Array(ee.buffer,ee.byteOffset,ee.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(ee)}},9919:(mt,de,W)=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0}),de.uint32ArrayFrom=de.numToUint8=de.isEmptyData=de.convertToBuffer=void 0;var Q=W(5446);Object.defineProperty(de,"convertToBuffer",{enumerable:!0,get:function(){return Q.convertToBuffer}});var se=W(9921);Object.defineProperty(de,"isEmptyData",{enumerable:!0,get:function(){return se.isEmptyData}});var V=W(7108);Object.defineProperty(de,"numToUint8",{enumerable:!0,get:function(){return V.numToUint8}});var ee=W(5991);Object.defineProperty(de,"uint32ArrayFrom",{enumerable:!0,get:function(){return ee.uint32ArrayFrom}})},9921:(mt,de)=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0}),de.isEmptyData=void 0,de.isEmptyData=function(Q){return"string"==typeof Q?0===Q.length:0===Q.byteLength}},7108:(mt,de)=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0}),de.numToUint8=void 0,de.numToUint8=function(Q){return new Uint8Array([(4278190080&Q)>>24,(16711680&Q)>>16,(65280&Q)>>8,255&Q])}},5991:(mt,de)=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0}),de.uint32ArrayFrom=void 0,de.uint32ArrayFrom=function(Q){if(!Array.from){for(var se=new Uint32Array(Q.length);0{"use strict";W.d(de,{g4:()=>G,Xb:()=>m});var V=function(){return(V=Object.assign||function(y){for(var b,C=1,j=arguments.length;C0&&T[T.length-1])&&(6===Me[0]||2===Me[0])){b=0;continue}if(3===Me[0]&&(!T||Me[1]>T[0]&&Me[1]{"use strict";function D(d,y,b,C){return new(b||(b=Promise))(function(T,z){function Fe(et){try{Me(C.next(et))}catch(St){z(St)}}function Le(et){try{Me(C.throw(et))}catch(St){z(St)}}function Me(et){et.done?T(et.value):function(T){return T instanceof b?T:new b(function(z){z(T)})}(et.value).then(Fe,Le)}Me((C=C.apply(d,y||[])).next())})}function le(d,y){var C,j,T,z,b={label:0,sent:function(){if(1&T[0])throw T[1];return T[1]},trys:[],ops:[]};return z={next:Fe(0),throw:Fe(1),return:Fe(2)},"function"==typeof Symbol&&(z[Symbol.iterator]=function(){return this}),z;function Fe(Me){return function(et){return function(Me){if(C)throw new TypeError("Generator is already executing.");for(;b;)try{if(C=1,j&&(T=2&Me[0]?j.return:Me[0]?j.throw||((T=j.return)&&T.call(j),0):j.next)&&!(T=T.call(j,Me[1])).done)return T;switch(j=0,T&&(Me=[2&Me[0],T.value]),Me[0]){case 0:case 1:T=Me;break;case 4:return b.label++,{value:Me[1],done:!1};case 5:b.label++,j=Me[1],Me=[0];continue;case 7:Me=b.ops.pop(),b.trys.pop();continue;default:if(!(T=(T=b.trys).length>0&&T[T.length-1])&&(6===Me[0]||2===Me[0])){b=0;continue}if(3===Me[0]&&(!T||Me[1]>T[0]&&Me[1]g,C:()=>c});var G=W(4957),H=W(5873);function S(d){return void 0===d&&(d=0),new Promise(function(y,b){d&&setTimeout(function(){var C=new Error("Request did not complete within "+d+" ms");C.name="TimeoutError",b(C)},d)})}var g=function(){function d(y){this.requestTimeout=(void 0===y?{}:y).requestTimeout}return d.prototype.destroy=function(){},d.prototype.handle=function(y,b){var j=(void 0===b?{}:b).abortSignal,T=this.requestTimeout;if(null==j?void 0:j.aborted){var z=new Error("Request aborted");return z.name="AbortError",Promise.reject(z)}var Fe=y.path;if(y.query){var Le=(0,H.I)(y.query);Le&&(Fe+="?"+Le)}var Me=y.port,et=y.method,St=y.protocol+"//"+y.hostname+(Me?":"+Me:"")+Fe,Rt={body:"GET"===et||"HEAD"===et?void 0:y.body,headers:new Headers(y.headers),method:et};"undefined"!=typeof AbortController&&(Rt.signal=j);var Gt=new Request(St,Rt),Kt=[fetch(Gt).then(function(_n){var Tn,Pn,gn=_n.headers,Ln={};try{for(var ge=function(d){var y="function"==typeof Symbol&&Symbol.iterator,b=y&&d[y],C=0;if(b)return b.call(d);if(d&&"number"==typeof d.length)return{next:function(){return d&&C>=d.length&&(d=void 0),{value:d&&d[C++],done:!d}}};throw new TypeError(y?"Object is not iterable.":"Symbol.iterator is not defined.")}(gn.entries()),A=ge.next();!A.done;A=ge.next()){var k=A.value;Ln[k[0]]=k[1]}}catch(ze){Tn={error:ze}}finally{try{A&&!A.done&&(Pn=ge.return)&&Pn.call(ge)}finally{if(Tn)throw Tn.error}}return void 0!==_n.body?{response:new G.Zn({headers:Ln,statusCode:_n.status,body:_n.body})}:_n.blob().then(function(ze){return{response:new G.Zn({headers:Ln,statusCode:_n.status,body:ze})}})}),S(T)];return j&&Kt.push(new Promise(function(_n,Tn){j.onabort=function(){var Pn=new Error("Request aborted");Pn.name="AbortError",Tn(Pn)}})),Promise.race(Kt)},d}(),w=W(8527),c=function(d){return"function"==typeof Blob&&d instanceof Blob?function(d){return D(this,void 0,void 0,function(){var y,b;return le(this,function(C){switch(C.label){case 0:return[4,I(d)];case 1:return y=C.sent(),b=(0,w.G)(y),[2,new Uint8Array(b)]}})})}(d):function(d){return D(this,void 0,void 0,function(){var y,b,C,j,T,z,Fe;return le(this,function(Le){switch(Le.label){case 0:y=new Uint8Array(0),b=d.getReader(),C=!1,Le.label=1;case 1:return C?[3,3]:[4,b.read()];case 2:return j=Le.sent(),T=j.done,(z=j.value)&&(Fe=y,(y=new Uint8Array(Fe.length+z.length)).set(Fe),y.set(z,Fe.length)),C=T,[3,1];case 3:return[2,y]}})})}(d)};function I(d){return new Promise(function(y,b){var C=new FileReader;C.onloadend=function(){var j;if(2!==C.readyState)return b(new Error("Reader aborted too early"));var T=null!==(j=C.result)&&void 0!==j?j:"",z=T.indexOf(",");y(T.substring(z>-1?z+1:T.length))},C.onabort=function(){return b(new Error("Read aborted"))},C.onerror=function(){return b(C.error)},C.readAsDataURL(d)})}},8454:(mt,de,W)=>{"use strict";W.d(de,{n:()=>Q});var Q=function(se){return function(){return Promise.reject(se)}}},8118:(mt,de,W)=>{"use strict";W.d(de,{VG:()=>w});var V=function(){return(V=Object.assign||function(p){for(var m,I=1,d=arguments.length;I0&&y[y.length-1])&&(6===T[0]||2===T[0])){m=0;continue}if(3===T[0]&&(!y||T[1]>y[0]&&T[1]{"use strict";W.d(de,{G2:()=>w,S8:()=>H});var G=W(4957);function H(c){return c}var g={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},w=function(c){return{applyToStack:function(p){p.add(function(c){return function(p){return function(m){return function(c,p,m,I){return new(m||(m=Promise))(function(y,b){function C(z){try{T(I.next(z))}catch(Fe){b(Fe)}}function j(z){try{T(I.throw(z))}catch(Fe){b(Fe)}}function T(z){z.done?y(z.value):function(y){return y instanceof m?y:new m(function(b){b(y)})}(z.value).then(C,j)}T((I=I.apply(c,p||[])).next())})}(void 0,void 0,void 0,function(){var I,d;return function(c,p){var I,d,y,b,m={label:0,sent:function(){if(1&y[0])throw y[1];return y[1]},trys:[],ops:[]};return b={next:C(0),throw:C(1),return:C(2)},"function"==typeof Symbol&&(b[Symbol.iterator]=function(){return this}),b;function C(T){return function(z){return function(T){if(I)throw new TypeError("Generator is already executing.");for(;m;)try{if(I=1,d&&(y=2&T[0]?d.return:T[0]?d.throw||((y=d.return)&&y.call(d),0):d.next)&&!(y=y.call(d,T[1])).done)return y;switch(d=0,y&&(T=[2&T[0],y.value]),T[0]){case 0:case 1:y=T;break;case 4:return m.label++,{value:T[1],done:!1};case 5:m.label++,d=T[1],T=[0];continue;case 7:T=m.ops.pop(),m.trys.pop();continue;default:if(!(y=(y=m.trys).length>0&&y[y.length-1])&&(6===T[0]||2===T[0])){m=0;continue}if(3===T[0]&&(!y||T[1]>y[0]&&T[1]=0&&!I.headers[":authority"]?(delete I.headers.host,I.headers[":authority"]=""):I.headers.host||(I.headers.host=I.hostname),[2,p(m)]):[2,p(m)]})})}}}(c),g)}}}},6284:(mt,de,W)=>{"use strict";W.d(de,{cV:()=>S});var G=function(){return function(g,w){return function(c){return function(g,w,c,p){return new(c||(c=Promise))(function(I,d){function y(j){try{C(p.next(j))}catch(T){d(T)}}function b(j){try{C(p.throw(j))}catch(T){d(T)}}function C(j){j.done?I(j.value):function(I){return I instanceof c?I:new c(function(d){d(I)})}(j.value).then(y,b)}C((p=p.apply(g,w||[])).next())})}(void 0,void 0,void 0,function(){var p,m,I,d,y,b,C,j,T;return function(g,w){var p,m,I,d,c={label:0,sent:function(){if(1&I[0])throw I[1];return I[1]},trys:[],ops:[]};return d={next:y(0),throw:y(1),return:y(2)},"function"==typeof Symbol&&(d[Symbol.iterator]=function(){return this}),d;function y(C){return function(j){return function(C){if(p)throw new TypeError("Generator is already executing.");for(;c;)try{if(p=1,m&&(I=2&C[0]?m.return:C[0]?m.throw||((I=m.return)&&I.call(m),0):m.next)&&!(I=I.call(m,C[1])).done)return I;switch(m=0,I&&(C=[2&C[0],I.value]),C[0]){case 0:case 1:I=C;break;case 4:return c.label++,{value:C[1],done:!1};case 5:c.label++,m=C[1],C=[0];continue;case 7:C=c.ops.pop(),c.trys.pop();continue;default:if(!(I=(I=c.trys).length>0&&I[I.length-1])&&(6===C[0]||2===C[0])){c=0;continue}if(3===C[0]&&(!I||C[1]>I[0]&&C[1]{"use strict";W.d(de,{J:()=>gn,NQ:()=>S,BC:()=>ze});var V=function(){return(V=Object.assign||function(te){for(var ve,Pe=1,De=arguments.length;Pe0&&Be[Be.length-1])&&(6===B[0]||2===B[0])){ve=0;continue}if(3===B[0]&&(!Be||B[1]>Be[0]&&B[1]0)&&!(De=Pe.next()).done;)Be.push(De.value)}catch(_e){vt={error:_e}}finally{try{De&&!De.done&&(ve=Pe.return)&&ve.call(Pe)}finally{if(vt)throw vt.error}}return Be}var H={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},S=function(Z){return{applyToStack:function(te){te.add(function(Z){return function(te,ve){return function(Pe){return D(void 0,void 0,void 0,function(){var De;return le(this,function(Be){return(null===(De=null==Z?void 0:Z.retryStrategy)||void 0===De?void 0:De.mode)&&(ve.userAgent=function(){for(var Z=[],te=0;te{var Q=W(3843),se=W(9735),V=se;V.v1=Q,V.v4=se,mt.exports=V},3263:mt=>{for(var de=[],W=0;W<256;++W)de[W]=(W+256).toString(16).substr(1);mt.exports=function(se,V){var ee=V||0;return[de[se[ee++]],de[se[ee++]],de[se[ee++]],de[se[ee++]],"-",de[se[ee++]],de[se[ee++]],"-",de[se[ee++]],de[se[ee++]],"-",de[se[ee++]],de[se[ee++]],"-",de[se[ee++]],de[se[ee++]],de[se[ee++]],de[se[ee++]],de[se[ee++]],de[se[ee++]]].join("")}},3133:mt=>{var de="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(de){var W=new Uint8Array(16);mt.exports=function(){return de(W),W}}else{var Q=new Array(16);mt.exports=function(){for(var ee,V=0;V<16;V++)0==(3&V)&&(ee=4294967296*Math.random()),Q[V]=ee>>>((3&V)<<3)&255;return Q}}},3843:(mt,de,W)=>{var V,ee,Q=W(3133),se=W(3263),Ie=0,L=0;mt.exports=function(D,le,pe){var he=le&&pe||0,ue=le||[],we=(D=D||{}).node||V,fe=void 0!==D.clockseq?D.clockseq:ee;if(null==we||null==fe){var ce=Q();null==we&&(we=V=[1|ce[0],ce[1],ce[2],ce[3],ce[4],ce[5]]),null==fe&&(fe=ee=16383&(ce[6]<<8|ce[7]))}var ie=void 0!==D.msecs?D.msecs:(new Date).getTime(),Ve=void 0!==D.nsecs?D.nsecs:L+1,Re=ie-Ie+(Ve-L)/1e4;if(Re<0&&void 0===D.clockseq&&(fe=fe+1&16383),(Re<0||ie>Ie)&&void 0===D.nsecs&&(Ve=0),Ve>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Ie=ie,L=Ve,ee=fe;var Ye=(1e4*(268435455&(ie+=122192928e5))+Ve)%4294967296;ue[he++]=Ye>>>24&255,ue[he++]=Ye>>>16&255,ue[he++]=Ye>>>8&255,ue[he++]=255&Ye;var ut=ie/4294967296*1e4&268435455;ue[he++]=ut>>>8&255,ue[he++]=255&ut,ue[he++]=ut>>>24&15|16,ue[he++]=ut>>>16&255,ue[he++]=fe>>>8|128,ue[he++]=255&fe;for(var pt=0;pt<6;++pt)ue[he+pt]=we[pt];return le||se(ue)}},9735:(mt,de,W)=>{var Q=W(3133),se=W(3263);mt.exports=function(ee,Ie,L){var R=Ie&&L||0;"string"==typeof ee&&(Ie="binary"===ee?new Array(16):null,ee=null);var D=(ee=ee||{}).random||(ee.rng||Q)();if(D[6]=15&D[6]|64,D[8]=63&D[8]|128,Ie)for(var le=0;le<16;++le)Ie[R+le]=D[le];return Ie||se(D)}},4086:(mt,de,W)=>{"use strict";W.d(de,{p2:()=>w});var V=function(){return(V=Object.assign||function(p){for(var m,I=1,d=arguments.length;I0&&y[y.length-1])&&(6===T[0]||2===T[0])){m=0;continue}if(3===T[0]&&(!y||T[1]>y[0]&&T[1]{"use strict";W.d(de,{yt:()=>I,A$:()=>H});var V=function(){return(V=Object.assign||function(y){for(var b,C=1,j=arguments.length;C0&&T[T.length-1])&&(6===Me[0]||2===Me[0])){b=0;continue}if(3===Me[0]&&(!T||Me[1]>T[0]&&Me[1]0)&&!(j=C.next()).done;)T.push(j.value)}catch(Fe){z={error:Fe}}finally{try{j&&!j.done&&(b=C.return)&&b.call(C)}finally{if(z)throw z.error}}return T}(et,2),bt=St[0],Kt=bt.signingService;return d.signingRegion=d.signingRegion||bt.signingRegion||St[1],d.signingName=d.signingName||Kt||d.serviceId,new G.L1({credentials:C,region:d.signingRegion,service:d.signingName,sha256:Le,uriEscapePath:T})})},V(V({},d),{systemClockOffset:Fe,signingEscapePath:T,credentials:C,signer:Me})}function S(d){if("object"==typeof d){var y=Promise.resolve(d);return function(){return y}}return d}var g=W(4957);function p(d){return function(y,b){return function(C){return D(this,void 0,void 0,function(){var j,T,z,Fe,Le,Me,et,St,bt;return le(this,function(Rt){switch(Rt.label){case 0:return g.aW.isInstance(C.request)?"function"!=typeof d.signer?[3,2]:[4,d.signer()]:[2,y(C)];case 1:return T=Rt.sent(),[3,3];case 2:T=d.signer,Rt.label=3;case 3:return j=T,Fe=y,Le=[V({},C)],bt={},[4,j.sign(C.request,{signingDate:new Date(Date.now()+d.systemClockOffset),signingRegion:b.signing_region,signingService:b.signing_service})];case 4:return[4,Fe.apply(void 0,[V.apply(void 0,Le.concat([(bt.request=Rt.sent(),bt)]))])];case 5:return z=Rt.sent(),(et=(Me=z.response.headers)&&(Me.date||Me.Date))&&function(d,y){return Math.abs(function(d){return new Date(Date.now()+d)}(y).getTime()-d)>=3e5}(St=Date.parse(et),d.systemClockOffset)&&(d.systemClockOffset=St-Date.now()),[2,z]}})})}}}var m={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0},I=function(d){return{applyToStack:function(y){y.addRelativeTo(p(d),m)}}}},5417:(mt,de,W)=>{"use strict";W.d(de,{XJ:()=>d,er:()=>G});var V=function(){return(V=Object.assign||function(b){for(var C,j=1,T=arguments.length;j0)&&!(T=j.next()).done;)z.push(T.value)}catch(Le){Fe={error:Le}}finally{try{T&&!T.done&&(C=j.return)&&C.call(j)}finally{if(Fe)throw Fe.error}}return z}function fe(){for(var y=[],b=0;b0}).map(function(Le){return null==Le?void 0:Le.replace(c,"_")}).join("/")},I={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},d=function(y){return{applyToStack:function(b){b.add(function(y){return function(b,C){return function(j){return function(y,b,C,j){return new(C||(C=Promise))(function(z,Fe){function Le(St){try{et(j.next(St))}catch(bt){Fe(bt)}}function Me(St){try{et(j.throw(St))}catch(bt){Fe(bt)}}function et(St){St.done?z(St.value):function(z){return z instanceof C?z:new C(function(Fe){Fe(z)})}(St.value).then(Le,Me)}et((j=j.apply(y,b||[])).next())})}(void 0,void 0,void 0,function(){var T,z,Fe,Le,Me,et,St,bt;return function(y,b){var j,T,z,Fe,C={label:0,sent:function(){if(1&z[0])throw z[1];return z[1]},trys:[],ops:[]};return Fe={next:Le(0),throw:Le(1),return:Le(2)},"function"==typeof Symbol&&(Fe[Symbol.iterator]=function(){return this}),Fe;function Le(et){return function(St){return function(et){if(j)throw new TypeError("Generator is already executing.");for(;C;)try{if(j=1,T&&(z=2&et[0]?T.return:et[0]?T.throw||((z=T.return)&&z.call(T),0):T.next)&&!(z=z.call(T,et[1])).done)return z;switch(T=0,z&&(et=[2&et[0],z.value]),et[0]){case 0:case 1:z=et;break;case 4:return C.label++,{value:et[1],done:!1};case 5:C.label++,T=et[1],et=[0];continue;case 7:et=C.ops.pop(),C.trys.pop();continue;default:if(!(z=(z=C.trys).length>0&&z[z.length-1])&&(6===et[0]||2===et[0])){C=0;continue}if(3===et[0]&&(!z||et[1]>z[0]&&et[1]{"use strict";W.d(de,{aW:()=>H,Zn:()=>Q});var Q=function(){function g(w){this.statusCode=w.statusCode,this.headers=w.headers||{},this.body=w.body}return g.isInstance=function(w){return!!w&&("number"==typeof w.statusCode&&"object"==typeof w.headers)},g}(),ee=function(){return(ee=Object.assign||function(w){for(var c,p=1,m=arguments.length;p0)&&!(m=p.next()).done;)I.push(m.value)}catch(y){d={error:y}}finally{try{m&&!m.done&&(c=p.return)&&c.call(p)}finally{if(d)throw d.error}}return I}var H=function(){function g(w){this.method=w.method||"GET",this.hostname=w.hostname||"localhost",this.port=w.port,this.query=w.query||{},this.headers=w.headers||{},this.body=w.body,this.protocol=w.protocol?":"!==w.protocol.substr(-1)?w.protocol+":":w.protocol:"https:",this.path=w.path?"/"!==w.path.charAt(0)?"/"+w.path:w.path:"/"}return g.isInstance=function(w){return!!w&&("method"in w&&"protocol"in w&&"hostname"in w&&"path"in w&&"object"==typeof w.query&&"object"==typeof w.headers)},g.prototype.clone=function(){var w=new g(ee(ee({},this),{headers:ee({},this.headers)}));return w.query&&(w.query=function(g){return Object.keys(g).reduce(function(w,c){var p,m=g[c];return ee(ee({},w),((p={})[c]=Array.isArray(m)?function(){for(var g=[],w=0;w{"use strict";W.d(de,{I:()=>H});var G=W(2169);function H(S){var g,w,c=[];try{for(var p=function(S){var g="function"==typeof Symbol&&Symbol.iterator,w=g&&S[g],c=0;if(w)return w.call(S);if(S&&"number"==typeof S.length)return{next:function(){return S&&c>=S.length&&(S=void 0),{value:S&&S[c++],done:!S}}};throw new TypeError(g?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.keys(S).sort()),m=p.next();!m.done;m=p.next()){var I=m.value,d=S[I];if(I=(0,G.i)(I),Array.isArray(d))for(var y=0,b=d.length;y{"use strict";W.d(de,{L1:()=>Be});var V=function(){return(V=Object.assign||function(M){for(var U,K=1,Ce=arguments.length;K0&&xe[xe.length-1])&&(6===it[0]||2===it[0])){U=0;continue}if(3===it[0]&&(!xe||it[1]>xe[0]&&it[1]=F.length&&(F=void 0),{value:F&&F[K++],done:!F}}};throw new TypeError(M?"Object is not iterable.":"Symbol.iterator is not defined.")}function we(F,M){var U="function"==typeof Symbol&&F[Symbol.iterator];if(!U)return F;var Ce,Se,K=U.call(F),xe=[];try{for(;(void 0===M||M-- >0)&&!(Ce=K.next()).done;)xe.push(Ce.value)}catch(Je){Se={error:Je}}finally{try{Ce&&!Ce.done&&(U=K.return)&&U.call(K)}finally{if(Se)throw Se.error}}return xe}var G=W(8240),g="X-Amz-Date",p="X-Amz-Signature",m="X-Amz-Security-Token",I="authorization",d=g.toLowerCase(),b=[I,d,"date"],C=p.toLowerCase(),j="x-amz-content-sha256",T=m.toLowerCase(),Fe={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},Le=/^proxy-/,Me=/^sec-/,St="AWS4-HMAC-SHA256",bt="AWS4-HMAC-SHA256-PAYLOAD",Kt="aws4_request",Tn={},Pn=[];function gn(F,M,U){return F+"/"+M+"/"+U+"/"+Kt}function A(F,M,U){var K=new F(M);return K.update(U),K.digest()}function k(F,M,U){var K,Ce,xe=F.headers,Se={};try{for(var Je=ue(Object.keys(xe).sort()),ct=Je.next();!ct.done;ct=Je.next()){var it=ct.value,It=it.toLowerCase();(It in Fe||(null==M?void 0:M.has(It))||Le.test(It)||Me.test(It))&&(!U||U&&!U.has(It))||(Se[It]=xe[it].trim().replace(/\s+/g," "))}}catch(Ct){K={error:Ct}}finally{try{ct&&!ct.done&&(Ce=Je.return)&&Ce.call(Je)}finally{if(K)throw K.error}}return Se}var be=W(2169);function ft(F,M){var U=F.headers,K=F.body;return D(this,void 0,void 0,function(){var Ce,xe,Se,Je,ct,it,It;return le(this,function(Ct){switch(Ct.label){case 0:try{for(Ce=ue(Object.keys(U)),xe=Ce.next();!xe.done;xe=Ce.next())if((Se=xe.value).toLowerCase()===j)return[2,U[Se]]}catch(kt){it={error:kt}}finally{try{xe&&!xe.done&&(It=Ce.return)&&It.call(Ce)}finally{if(it)throw it.error}}return null!=K?[3,1]:[2,"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"];case 1:return"string"==typeof K||ArrayBuffer.isView(K)||function(F){return"function"==typeof ArrayBuffer&&F instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(F)}(K)?((Je=new M).update(K),ct=G.N,[4,Je.digest()]):[3,3];case 2:return[2,ct.apply(void 0,[Ct.sent()])];case 3:return[2,"UNSIGNED-PAYLOAD"]}})})}function J(F){var M=F.headers,U=F.query,K=function(F,M){var U={};for(var K in F)Object.prototype.hasOwnProperty.call(F,K)&&M.indexOf(K)<0&&(U[K]=F[K]);if(null!=F&&"function"==typeof Object.getOwnPropertySymbols){var Ce=0;for(K=Object.getOwnPropertySymbols(F);Ce-1&&delete F.headers[xe]}}catch(Se){M={error:Se}}finally{try{Ce&&!Ce.done&&(U=K.return)&&U.call(K)}finally{if(M)throw M.error}}return F}var Be=function(){function F(M){var U=M.applyChecksum,K=M.credentials,Ce=M.region,Se=M.sha256,Je=M.uriEscapePath,ct=void 0===Je||Je;this.service=M.service,this.sha256=Se,this.uriEscapePath=ct,this.applyChecksum="boolean"!=typeof U||U,this.regionProvider=O(Ce),this.credentialProvider=B(K)}return F.prototype.presign=function(M,U){return void 0===U&&(U={}),D(this,void 0,void 0,function(){var K,Ce,xe,Se,Je,ct,it,It,Ct,kt,Dt,jt,on,yn,Wn,Un,kn,ir,qn,go,mr,vi,yo,ye;return le(this,function(Ae){switch(Ae.label){case 0:return Ce=void 0===(K=U.signingDate)?new Date:K,Se=void 0===(xe=U.expiresIn)?3600:xe,Je=U.unsignableHeaders,ct=U.unhoistableHeaders,it=U.signableHeaders,It=U.signingRegion,Ct=U.signingService,[4,this.credentialProvider()];case 1:return kt=Ae.sent(),null==It?[3,2]:(jt=It,[3,4]);case 2:return[4,this.regionProvider()];case 3:jt=Ae.sent(),Ae.label=4;case 4:return Dt=jt,on=vt(Ce),yn=on.longDate,Wn=on.shortDate,Se>604800?[2,Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future")]:(Un=gn(Wn,Dt,null!=Ct?Ct:this.service),kn=function(F,M){var U,K,Ce;void 0===M&&(M={});var xe="function"==typeof F.clone?F.clone():J(F),Se=xe.headers,Je=xe.query,ct=void 0===Je?{}:Je;try{for(var it=ue(Object.keys(Se)),It=it.next();!It.done;It=it.next()){var Ct=It.value,kt=Ct.toLowerCase();"x-amz-"===kt.substr(0,6)&&!(null===(Ce=M.unhoistableHeaders)||void 0===Ce?void 0:Ce.has(kt))&&(ct[Ct]=Se[Ct],delete Se[Ct])}}catch(Dt){U={error:Dt}}finally{try{It&&!It.done&&(K=it.return)&&K.call(it)}finally{if(U)throw U.error}}return V(V({},F),{headers:Se,query:ct})}(ve(M),{unhoistableHeaders:ct}),kt.sessionToken&&(kn.query[m]=kt.sessionToken),kn.query["X-Amz-Algorithm"]=St,kn.query["X-Amz-Credential"]=kt.accessKeyId+"/"+Un,kn.query[g]=yn,kn.query["X-Amz-Expires"]=Se.toString(10),ir=k(kn,Je,it),kn.query["X-Amz-SignedHeaders"]=_e(ir),qn=kn.query,go=p,mr=this.getSignature,vi=[yn,Un,this.getSigningKey(kt,Dt,Wn,Ct)],yo=this.createCanonicalRequest,ye=[kn,ir],[4,ft(M,this.sha256)]);case 5:return[4,mr.apply(this,vi.concat([yo.apply(this,ye.concat([Ae.sent()]))]))];case 6:return qn[go]=Ae.sent(),[2,kn]}})})},F.prototype.sign=function(M,U){return D(this,void 0,void 0,function(){return le(this,function(K){return"string"==typeof M?[2,this.signString(M,U)]:M.headers&&M.payload?[2,this.signEvent(M,U)]:[2,this.signRequest(M,U)]})})},F.prototype.signEvent=function(M,U){var K=M.headers,Ce=M.payload,xe=U.signingDate,Se=void 0===xe?new Date:xe,Je=U.priorSignature,ct=U.signingRegion,it=U.signingService;return D(this,void 0,void 0,function(){var It,Ct,kt,jt,on,yn,Wn,Un,kn,ir;return le(this,function(qn){switch(qn.label){case 0:return null==ct?[3,1]:(Ct=ct,[3,3]);case 1:return[4,this.regionProvider()];case 2:Ct=qn.sent(),qn.label=3;case 3:return It=Ct,kt=vt(Se),jt=kt.longDate,on=gn(kt.shortDate,It,null!=it?it:this.service),[4,ft({headers:{},body:Ce},this.sha256)];case 4:return yn=qn.sent(),(Wn=new this.sha256).update(K),kn=G.N,[4,Wn.digest()];case 5:return Un=kn.apply(void 0,[qn.sent()]),ir=[bt,jt,on,Je,Un,yn].join("\n"),[2,this.signString(ir,{signingDate:Se,signingRegion:It,signingService:it})]}})})},F.prototype.signString=function(M,U){var K=void 0===U?{}:U,Ce=K.signingDate,xe=void 0===Ce?new Date:Ce,Se=K.signingRegion,Je=K.signingService;return D(this,void 0,void 0,function(){var ct,it,It,Ct,kt,Dt,jt,on;return le(this,function(yn){switch(yn.label){case 0:return[4,this.credentialProvider()];case 1:return ct=yn.sent(),null==Se?[3,2]:(It=Se,[3,4]);case 2:return[4,this.regionProvider()];case 3:It=yn.sent(),yn.label=4;case 4:return it=It,Ct=vt(xe).shortDate,jt=(Dt=this.sha256).bind,[4,this.getSigningKey(ct,it,Ct,Je)];case 5:return(kt=new(jt.apply(Dt,[void 0,yn.sent()]))).update(M),on=G.N,[4,kt.digest()];case 6:return[2,on.apply(void 0,[yn.sent()])]}})})},F.prototype.signRequest=function(M,U){var K=void 0===U?{}:U,Ce=K.signingDate,xe=void 0===Ce?new Date:Ce,Se=K.signableHeaders,Je=K.unsignableHeaders,ct=K.signingRegion,it=K.signingService;return D(this,void 0,void 0,function(){var It,Ct,kt,Dt,jt,on,yn,Wn,Un,kn,ir;return le(this,function(qn){switch(qn.label){case 0:return[4,this.credentialProvider()];case 1:return It=qn.sent(),null==ct?[3,2]:(kt=ct,[3,4]);case 2:return[4,this.regionProvider()];case 3:kt=qn.sent(),qn.label=4;case 4:return Ct=kt,Dt=ve(M),jt=vt(xe),on=jt.longDate,Wn=gn(yn=jt.shortDate,Ct,null!=it?it:this.service),Dt.headers[d]=on,It.sessionToken&&(Dt.headers[T]=It.sessionToken),[4,ft(Dt,this.sha256)];case 5:return Un=qn.sent(),!function(F,M){var U,K;F=F.toLowerCase();try{for(var Ce=ue(Object.keys(M)),xe=Ce.next();!xe.done;xe=Ce.next())if(F===xe.value.toLowerCase())return!0}catch(Je){U={error:Je}}finally{try{xe&&!xe.done&&(K=Ce.return)&&K.call(Ce)}finally{if(U)throw U.error}}return!1}(j,Dt.headers)&&this.applyChecksum&&(Dt.headers[j]=Un),kn=k(Dt,Je,Se),[4,this.getSignature(on,Wn,this.getSigningKey(It,Ct,yn,it),this.createCanonicalRequest(Dt,kn,Un))];case 6:return ir=qn.sent(),Dt.headers[I]=St+" Credential="+It.accessKeyId+"/"+Wn+", SignedHeaders="+_e(kn)+", Signature="+ir,[2,Dt]}})})},F.prototype.createCanonicalRequest=function(M,U,K){var Ce=Object.keys(U).sort();return M.method+"\n"+this.getCanonicalPath(M)+"\n"+function(F){var M,U,K=F.query,Ce=void 0===K?{}:K,xe=[],Se={},Je=function(Ct){if(Ct.toLowerCase()===C)return"continue";xe.push(Ct);var kt=Ce[Ct];"string"==typeof kt?Se[Ct]=(0,be.i)(Ct)+"="+(0,be.i)(kt):Array.isArray(kt)&&(Se[Ct]=kt.slice(0).sort().reduce(function(Dt,jt){return Dt.concat([(0,be.i)(Ct)+"="+(0,be.i)(jt)])},[]).join("&"))};try{for(var ct=ue(Object.keys(Ce).sort()),it=ct.next();!it.done;it=ct.next())Je(it.value)}catch(Ct){M={error:Ct}}finally{try{it&&!it.done&&(U=ct.return)&&U.call(ct)}finally{if(M)throw M.error}}return xe.map(function(Ct){return Se[Ct]}).filter(function(Ct){return Ct}).join("&")}(M)+"\n"+Ce.map(function(xe){return xe+":"+U[xe]}).join("\n")+"\n\n"+Ce.join(";")+"\n"+K},F.prototype.createStringToSign=function(M,U,K){return D(this,void 0,void 0,function(){var Ce,xe;return le(this,function(Se){switch(Se.label){case 0:return(Ce=new this.sha256).update(K),[4,Ce.digest()];case 1:return xe=Se.sent(),[2,St+"\n"+M+"\n"+U+"\n"+(0,G.N)(xe)]}})})},F.prototype.getCanonicalPath=function(M){var U=M.path;return this.uriEscapePath?"/"+encodeURIComponent(U.replace(/^\//,"")).replace(/%2F/g,"/"):U},F.prototype.getSignature=function(M,U,K,Ce){return D(this,void 0,void 0,function(){var xe,Se,Je,ct,it;return le(this,function(It){switch(It.label){case 0:return[4,this.createStringToSign(M,U,Ce)];case 1:return xe=It.sent(),ct=(Je=this.sha256).bind,[4,K];case 2:return(Se=new(ct.apply(Je,[void 0,It.sent()]))).update(xe),it=G.N,[4,Se.digest()];case 3:return[2,it.apply(void 0,[It.sent()])]}})})},F.prototype.getSigningKey=function(M,U,K,Ce){return function(F,M,U,K,Ce){return D(void 0,void 0,void 0,function(){var xe,Se,Je,ct,it,Ct,kt,Dt;return le(this,function(jt){switch(jt.label){case 0:return[4,A(F,M.secretAccessKey,M.accessKeyId)];case 1:if(xe=jt.sent(),(Se=U+":"+K+":"+Ce+":"+(0,G.N)(xe)+":"+M.sessionToken)in Tn)return[2,Tn[Se]];for(Pn.push(Se);Pn.length>50;)delete Tn[Pn.shift()];Je="AWS4"+M.secretAccessKey,jt.label=2;case 2:jt.trys.push([2,7,8,9]),ct=ue([U,K,Ce,Kt]),it=ct.next(),jt.label=3;case 3:return it.done?[3,6]:[4,A(F,Je,it.value)];case 4:Je=jt.sent(),jt.label=5;case 5:return it=ct.next(),[3,3];case 6:return[3,9];case 7:return Ct=jt.sent(),kt={error:Ct},[3,9];case 8:try{it&&!it.done&&(Dt=ct.return)&&Dt.call(ct)}finally{if(kt)throw kt.error}return[7];case 9:return[2,Tn[Se]=Je]}})})}(this.sha256,M,K,U,Ce||this.service)},F}(),vt=function(F){var M=function(F){return function(F){return"number"==typeof F?new Date(1e3*F):"string"==typeof F?Number(F)?new Date(1e3*Number(F)):new Date(F):F}(F).toISOString().replace(/\.\d{3}Z$/,"Z")}(F).replace(/[\-:]/g,"");return{longDate:M,shortDate:M.substr(0,8)}},_e=function(F){return Object.keys(F).sort().join(";")},O=function(F){if("string"==typeof F){var M=Promise.resolve(F);return function(){return M}}return F},B=function(F){if("object"==typeof F){var M=Promise.resolve(F);return function(){return M}}return F}},7753:(mt,de,W)=>{"use strict";W.d(de,{KU:()=>g,mY:()=>w,QT:()=>be,oc:()=>an,_w:()=>ft,jc:()=>c,L:()=>p,sT:()=>m});var V=function(){return(V=Object.assign||function(Z){for(var te,ve=1,Pe=arguments.length;ve0)&&!(Pe=ve.next()).done;)De.push(Pe.value)}catch(vt){Be={error:vt}}finally{try{Pe&&!Pe.done&&(te=ve.return)&&te.call(ve)}finally{if(Be)throw Be.error}}return De}function fe(){for(var J=[],Z=0;Z=J.length&&(J=void 0),{value:J&&J[ve++],done:!J}}};throw new TypeError(Z?"Object is not iterable.":"Symbol.iterator is not defined.")}(function(){var B=[],F=[],M={};return J.forEach(function(K){var Ce=V(V({},K),{before:[],after:[]});Ce.name&&(M[Ce.name]=Ce),B.push(Ce)}),Z.forEach(function(K){var Ce=V(V({},K),{before:[],after:[]});Ce.name&&(M[Ce.name]=Ce),F.push(Ce)}),F.forEach(function(K){if(K.toMiddleware){var Ce=M[K.toMiddleware];if(void 0===Ce)throw new Error(K.toMiddleware+" is not found when adding "+(K.name||"anonymous")+" middleware "+K.relation+" "+K.toMiddleware);"after"===K.relation&&Ce.after.push(K),"before"===K.relation&&Ce.before.push(K)}}),function(B){return B.sort(function(F,M){return H[M.step]-H[F.step]||S[M.priority||"normal"]-S[F.priority||"normal"]})}(B).map(vt).reduce(function(K,Ce){return K.push.apply(K,fe(Ce)),K},[]).map(function(K){return K.middleware})}().reverse()),Ce=K.next();!Ce.done;Ce=K.next())B=(0,Ce.value)(B,F)}catch(Se){M={error:Se}}finally{try{Ce&&!Ce.done&&(U=K.return)&&U.call(K)}finally{if(M)throw M.error}}return B}};return O},H={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},S={high:3,normal:2,low:1},g=function(){function J(Z){this.middlewareStack=G(),this.config=Z}return J.prototype.send=function(Z,te,ve){var De="function"==typeof te?te:ve,Be=Z.resolveMiddleware(this.middlewareStack,this.config,"function"!=typeof te?te:void 0);if(!De)return Be(Z).then(function(vt){return vt.output});Be(Z).then(function(vt){return De(null,vt.output)},function(vt){return De(vt)}).catch(function(){})},J.prototype.destroy=function(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()},J}(),w=function(){this.middlewareStack=G()};function c(J){return encodeURIComponent(J).replace(/[!'()*]/g,function(Z){return"%"+Z.charCodeAt(0).toString(16)})}var p=function(J){return Array.isArray(J)?J:[J]},m=function(J){var Z="#text";for(var te in J)J.hasOwnProperty(te)&&void 0!==J[te][Z]?J[te]=J[te][Z]:"object"==typeof J[te]&&null!==J[te]&&(J[te]=m(J[te]));return J},I=function(J,Z){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,ve){te.__proto__=ve}||function(te,ve){for(var Pe in ve)ve.hasOwnProperty(Pe)&&(te[Pe]=ve[Pe])})(J,Z)};function St(J,Z){var te="function"==typeof Symbol&&J[Symbol.iterator];if(!te)return J;var Pe,Be,ve=te.call(J),De=[];try{for(;(void 0===Z||Z-- >0)&&!(Pe=ve.next()).done;)De.push(Pe.value)}catch(vt){Be={error:vt}}finally{try{Pe&&!Pe.done&&(te=ve.return)&&te.call(ve)}finally{if(Be)throw Be.error}}return De}function bt(){for(var J=[],Z=0;Z{"use strict";function we(S,g){var w="function"==typeof Symbol&&S[Symbol.iterator];if(!w)return S;var p,I,c=w.call(S),m=[];try{for(;(void 0===g||g-- >0)&&!(p=c.next()).done;)m.push(p.value)}catch(d){I={error:d}}finally{try{p&&!p.done&&(w=c.return)&&w.call(c)}finally{if(I)throw I.error}}return m}W.d(de,{e:()=>H});var H=function(S){var d,g=new URL(S),w=g.hostname,c=g.pathname,p=g.port,m=g.protocol,I=g.search;return I&&(d=function(S){var g,w,c={};if(S=S.replace(/^\?/,""))try{for(var p=function(S){var g="function"==typeof Symbol&&Symbol.iterator,w=g&&S[g],c=0;if(w)return w.call(S);if(S&&"number"==typeof S.length)return{next:function(){return S&&c>=S.length&&(S=void 0),{value:S&&S[c++],done:!S}}};throw new TypeError(g?"Object is not iterable.":"Symbol.iterator is not defined.")}(S.split("&")),m=p.next();!m.done;m=p.next()){var d=we(m.value.split("="),2),y=d[0],b=d[1],C=void 0===b?null:b;y=decodeURIComponent(y),C&&(C=decodeURIComponent(C)),y in c?Array.isArray(c[y])?c[y].push(C):c[y]=[c[y],C]:c[y]=C}}catch(j){g={error:j}}finally{try{m&&!m.done&&(w=p.return)&&w.call(p)}finally{if(g)throw g.error}}return c}(I)),{hostname:w,port:p?parseInt(p):void 0,protocol:m,path:c,query:d}}},8527:(mt,de,W)=>{"use strict";W.d(de,{G:()=>he,s:()=>ue});for(var Q={},se=new Array(64),V=0,ee="A".charCodeAt(0),Ie="Z".charCodeAt(0);V+ee<=Ie;V++){var L=String.fromCharCode(V+ee);Q[L]=V,se[V]=L}for(V=0,ee="a".charCodeAt(0),Ie="z".charCodeAt(0);V+ee<=Ie;V++)L=String.fromCharCode(V+ee),Q[L]=R=V+26,se[R]=L;for(V=0;V<10;V++){var R;Q[V.toString(10)]=V+52,L=V.toString(10),Q[L]=R=V+52,se[R]=L}function he(we){var fe=we.length/4*3;"=="===we.substr(-2)?fe-=2:"="===we.substr(-1)&&fe--;for(var ce=new ArrayBuffer(fe),ie=new DataView(ce),Ve=0;Ve>=6;var Nt=Ve/4*3;Re>>=Ye%8;for(var Mt=Math.floor(Ye/8),je=0;je>G)}}return new Uint8Array(ce)}function ue(we){for(var fe="",ce=0;ce>Nt]}fe+="==".slice(0,4-ut)}return fe}Q["+"]=62,se[62]="+",Q["/"]=63,se[63]="/"},4346:(mt,de,W)=>{"use strict";function Q(se){if("string"==typeof se){for(var V=se.length,ee=V-1;ee>=0;ee--){var Ie=se.charCodeAt(ee);Ie>127&&Ie<=2047?V++:Ie>2047&&Ie<=65535&&(V+=2)}return V}return"number"==typeof se.byteLength?se.byteLength:"number"==typeof se.size?se.size:void 0}W.d(de,{W:()=>Q})},8240:(mt,de,W)=>{"use strict";W.d(de,{H:()=>Ie,N:()=>L});for(var Q={},se={},V=0;V<256;V++){var ee=V.toString(16).toLowerCase();1===ee.length&&(ee="0"+ee),Q[V]=ee,se[ee]=V}function Ie(R){if(R.length%2!=0)throw new Error("Hex encoded strings must have an even number length");for(var D=new Uint8Array(R.length/2),le=0;le{"use strict";W.r(de),W.d(de,{locateWindow:()=>se});var Q={};function se(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:Q}},2169:(mt,de,W)=>{"use strict";W.d(de,{i:()=>Q});var Q=function(V){return encodeURIComponent(V).replace(/[!'()*]/g,se)},se=function(V){return"%"+V.charCodeAt(0).toString(16).toUpperCase()}},8473:(mt,de,W)=>{"use strict";W.d(de,{f:()=>S});var G=W(2602),H=W.n(G),S=function(g){var w=g.serviceId,c=g.clientVersion;return function(){return function(g,w,c,p){return new(c||(c=Promise))(function(I,d){function y(j){try{C(p.next(j))}catch(T){d(T)}}function b(j){try{C(p.throw(j))}catch(T){d(T)}}function C(j){j.done?I(j.value):function(I){return I instanceof c?I:new c(function(d){d(I)})}(j.value).then(y,b)}C((p=p.apply(g,w||[])).next())})}(void 0,void 0,void 0,function(){var p,m,I,d,y,b,C,j,T;return function(g,w){var p,m,I,d,c={label:0,sent:function(){if(1&I[0])throw I[1];return I[1]},trys:[],ops:[]};return d={next:y(0),throw:y(1),return:y(2)},"function"==typeof Symbol&&(d[Symbol.iterator]=function(){return this}),d;function y(C){return function(j){return function(C){if(p)throw new TypeError("Generator is already executing.");for(;c;)try{if(p=1,m&&(I=2&C[0]?m.return:C[0]?m.throw||((I=m.return)&&I.call(m),0):m.next)&&!(I=I.call(m,C[1])).done)return I;switch(m=0,I&&(C=[2&C[0],I.value]),C[0]){case 0:case 1:I=C;break;case 4:return c.label++,{value:C[1],done:!1};case 5:c.label++,m=C[1],C=[0];continue;case 7:C=c.ops.pop(),c.trys.pop();continue;default:if(!(I=(I=c.trys).length>0&&I[I.length-1])&&(6===C[0]||2===C[0])){c=0;continue}if(3===C[0]&&(!I||C[1]>I[0]&&C[1]{"use strict";W.r(de),W.d(de,{fromUtf8:()=>Ie,toUtf8:()=>L});var Ie=function(R){return"function"==typeof TextEncoder?function(R){return(new TextEncoder).encode(R)}(R):function(R){for(var D=[],le=0,pe=R.length;le>6|192,63&he|128);else if(le+1>18|240,ue>>12&63|128,ue>>6&63|128,63&ue|128)}else D.push(he>>12|224,he>>6&63|128,63&he|128)}return Uint8Array.from(D)}(R)},L=function(R){return"function"==typeof TextDecoder?function(R){return new TextDecoder("utf-8").decode(R)}(R):function(R){for(var D="",le=0,pe=R.length;le{"use strict";W.d(de,{sD:()=>Q,ZA:()=>B,xk:()=>U,bR:()=>K,ws:()=>yn,KC:()=>It,AM:()=>Wt,MZ:()=>Se,eR:()=>Zf,Ib:()=>vi});var pe,Q=function(){function me(X){var N=X||{},ne=N.Username,Oe=N.Password,Ge=N.AuthParameters,st=N.ClientMetadata;this.validationData=N.ValidationData||{},this.authParameters=Ge||{},this.clientMetadata=st||{},this.username=ne,this.password=Oe}var Y=me.prototype;return Y.getUsername=function(){return this.username},Y.getPassword=function(){return this.password},Y.getValidationData=function(){return this.validationData},Y.getAuthParameters=function(){return this.authParameters},Y.getClientMetadata=function(){return this.clientMetadata},me}(),se=W(3823),V=W(3567),ee=W.n(V),L=(W(6493),W(1602)),R=W.n(L),D=W(8163),le=W.n(D);if("undefined"!=typeof window&&window.crypto&&(pe=window.crypto),!pe&&"undefined"!=typeof window&&window.msCrypto&&(pe=window.msCrypto),!pe&&"undefined"!=typeof global&&global.crypto&&(pe=global.crypto),!pe)try{pe=W(6538)}catch(me){}function he(){if(pe){if("function"==typeof pe.getRandomValues)try{return pe.getRandomValues(new Uint32Array(1))[0]}catch(me){}if("function"==typeof pe.randomBytes)try{return pe.randomBytes(4).readInt32LE()}catch(me){}}throw new Error("Native crypto module could not be used to get secure random number.")}var we=function(){function me(X,N){X=this.words=X||[],this.sigBytes=null!=N?N:4*X.length}var Y=me.prototype;return Y.random=function(N){for(var re=[],ne=0;ne>>2]>>>24-re%4*8&255;N.push((ne>>>4).toString(16)),N.push((15&ne).toString(16))}return N.join("")}(this)},me}();const fe=ce;function ce(me,Y){null!=me&&this.fromString(me,Y)}function ie(){return new ce(null)}var Ve,Mt="undefined"!=typeof navigator;Mt&&"Microsoft Internet Explorer"==navigator.appName?(ce.prototype.am=function(me,Y,X,N,re,ne){for(var Oe=32767&Y,Ge=Y>>15;--ne>=0;){var st=32767&this[me],At=this[me++]>>15,Ot=Ge*st+At*Oe;re=((st=Oe*st+((32767&Ot)<<15)+X[N]+(1073741823&re))>>>30)+(Ot>>>15)+Ge*At+(re>>>30),X[N++]=1073741823&st}return re},Ve=30):Mt&&"Netscape"!=navigator.appName?(ce.prototype.am=function(me,Y,X,N,re,ne){for(;--ne>=0;){var Oe=Y*this[me++]+X[N]+re;re=Math.floor(Oe/67108864),X[N++]=67108863&Oe}return re},Ve=26):(ce.prototype.am=function(me,Y,X,N,re,ne){for(var Oe=16383&Y,Ge=Y>>14;--ne>=0;){var st=16383&this[me],At=this[me++]>>14,Ot=Ge*st+At*Oe;re=((st=Oe*st+((16383&Ot)<<14)+X[N]+re)>>28)+(Ot>>14)+Ge*At,X[N++]=268435455&st}return re},Ve=28),ce.prototype.DB=Ve,ce.prototype.DM=(1<>>16)&&(me=X,Y+=16),0!=(X=me>>8)&&(me=X,Y+=8),0!=(X=me>>4)&&(me=X,Y+=4),0!=(X=me>>2)&&(me=X,Y+=2),0!=(X=me>>1)&&(me=X,Y+=1),Y}function be(me){this.m=me,this.mp=me.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<0&&this.m.subTo(Y,Y),Y},be.prototype.revert=function(me){var Y=ie();return me.copyTo(Y),this.reduce(Y),Y},be.prototype.reduce=function(me){for(;me.t<=this.mt2;)me[me.t++]=0;for(var Y=0;Y>15)*this.mpl&this.um)<<15)&me.DM;for(me[X=Y+this.m.t]+=this.m.am(0,N,me,Y,0,this.m.t);me[X]>=me.DV;)me[X]-=me.DV,me[++X]++}me.clamp(),me.drShiftTo(this.m.t,me),me.compareTo(this.m)>=0&&me.subTo(this.m,me)},be.prototype.mulTo=function(me,Y,X){me.multiplyTo(Y,X),this.reduce(X)},be.prototype.sqrTo=function(me,Y){me.squareTo(Y),this.reduce(Y)},ce.prototype.copyTo=function(me){for(var Y=this.t-1;Y>=0;--Y)me[Y]=this[Y];me.t=this.t,me.s=this.s},ce.prototype.fromInt=function(me){this.t=1,this.s=me<0?-1:0,me>0?this[0]=me:me<-1?this[0]=me+this.DV:this.t=0},ce.prototype.fromString=function(me,Y){var X;if(16==Y)X=4;else if(8==Y)X=3;else if(2==Y)X=1;else if(32==Y)X=5;else{if(4!=Y)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");X=2}this.t=0,this.s=0;for(var N=me.length,re=!1,ne=0;--N>=0;){var Oe=c(me,N);Oe<0?"-"==me.charAt(N)&&(re=!0):(re=!1,0==ne?this[this.t++]=Oe:ne+X>this.DB?(this[this.t-1]|=(Oe&(1<>this.DB-ne):this[this.t-1]|=Oe<=this.DB&&(ne-=this.DB))}this.clamp(),re&&ce.ZERO.subTo(this,this)},ce.prototype.clamp=function(){for(var me=this.s&this.DM;this.t>0&&this[this.t-1]==me;)--this.t},ce.prototype.dlShiftTo=function(me,Y){var X;for(X=this.t-1;X>=0;--X)Y[X+me]=this[X];for(X=me-1;X>=0;--X)Y[X]=0;Y.t=this.t+me,Y.s=this.s},ce.prototype.drShiftTo=function(me,Y){for(var X=me;X=0;--Ge)Y[Ge+ne+1]=this[Ge]>>N|Oe,Oe=(this[Ge]&re)<=0;--Ge)Y[Ge]=0;Y[ne]=Oe,Y.t=this.t+ne+1,Y.s=this.s,Y.clamp()},ce.prototype.rShiftTo=function(me,Y){Y.s=this.s;var X=Math.floor(me/this.DB);if(X>=this.t)Y.t=0;else{var N=me%this.DB,re=this.DB-N,ne=(1<>N;for(var Oe=X+1;Oe>N;N>0&&(Y[this.t-X-1]|=(this.s&ne)<>=this.DB;if(me.t>=this.DB;N+=this.s}else{for(N+=this.s;X>=this.DB;N-=me.s}Y.s=N<0?-1:0,N<-1?Y[X++]=this.DV+N:N>0&&(Y[X++]=N),Y.t=X,Y.clamp()},ce.prototype.multiplyTo=function(me,Y){var X=this.abs(),N=me.abs(),re=X.t;for(Y.t=re+N.t;--re>=0;)Y[re]=0;for(re=0;re=0;)me[X]=0;for(X=0;X=Y.DV&&(me[X+Y.t]-=Y.DV,me[X+Y.t+1]=1)}me.t>0&&(me[me.t-1]+=Y.am(X,Y[X],me,2*X,0,1)),me.s=0,me.clamp()},ce.prototype.divRemTo=function(me,Y,X){var N=me.abs();if(!(N.t<=0)){var re=this.abs();if(re.t0?(N.lShiftTo(st,ne),re.lShiftTo(st,X)):(N.copyTo(ne),re.copyTo(X));var At=ne.t,Ot=ne[At-1];if(0!=Ot){var Zt=Ot*(1<1?ne[At-2]>>this.F2:0),qt=this.FV/Zt,hn=(1<=0&&(X[X.t++]=1,X.subTo(zn,X)),ce.ONE.dlShiftTo(At,zn),zn.subTo(ne,ne);ne.t=0;){var Mr=X[--Mn]==Ot?this.DM:Math.floor(X[Mn]*qt+(X[Mn-1]+$n)*hn);if((X[Mn]+=ne.am(0,Mr,X,dr,0,At))0&&X.rShiftTo(st,X),Oe<0&&ce.ZERO.subTo(X,X)}}},ce.prototype.invDigit=function(){if(this.t<1)return 0;var me=this[0];if(0==(1&me))return 0;var Y=3&me;return(Y=(Y=(Y=(Y=Y*(2-(15&me)*Y)&15)*(2-(255&me)*Y)&255)*(2-((65535&me)*Y&65535))&65535)*(2-me*Y%this.DV)%this.DV)>0?this.DV-Y:-Y},ce.prototype.addTo=function(me,Y){for(var X=0,N=0,re=Math.min(me.t,this.t);X>=this.DB;if(me.t>=this.DB;N+=this.s}else{for(N+=this.s;X>=this.DB;N+=me.s}Y.s=N<0?-1:0,N>0?Y[X++]=N:N<-1&&(Y[X++]=this.DV+N),Y.t=X,Y.clamp()},ce.prototype.toString=function(me){if(this.s<0)return"-"+this.negate().toString(me);var Y;if(16==me)Y=4;else if(8==me)Y=3;else if(2==me)Y=1;else if(32==me)Y=5;else{if(4!=me)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");Y=2}var N,X=(1<0)for(Ge>Ge)>0&&(re=!0,ne=w(N));Oe>=0;)Ge>(Ge+=this.DB-Y)):(N=this[Oe]>>(Ge-=Y)&X,Ge<=0&&(Ge+=this.DB,--Oe)),N>0&&(re=!0),re&&(ne+=w(N));return re?ne:"0"},ce.prototype.negate=function(){var me=ie();return ce.ZERO.subTo(this,me),me},ce.prototype.abs=function(){return this.s<0?this.negate():this},ce.prototype.compareTo=function(me){var Y=this.s-me.s;if(0!=Y)return Y;var X=this.t;if(0!=(Y=X-me.t))return this.s<0?-Y:Y;for(;--X>=0;)if(0!=(Y=this[X]-me[X]))return Y;return 0},ce.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+z(this[this.t-1]^this.s&this.DM)},ce.prototype.mod=function(me){var Y=ie();return this.abs().divRemTo(me,null,Y),this.s<0&&Y.compareTo(ce.ZERO)>0&&me.subTo(Y,Y),Y},ce.prototype.equals=function(me){return 0==this.compareTo(me)},ce.prototype.add=function(me){var Y=ie();return this.addTo(me,Y),Y},ce.prototype.subtract=function(me){var Y=ie();return this.subTo(me,Y),Y},ce.prototype.multiply=function(me){var Y=ie();return this.multiplyTo(me,Y),Y},ce.prototype.divide=function(me){var Y=ie();return this.divRemTo(me,Y,null),Y},ce.prototype.modPow=function(me,Y,X){var re,N=me.bitLength(),ne=I(1),Oe=new be(Y);if(N<=0)return ne;re=N<18?1:N<48?3:N<144?4:N<768?5:6;var Ge=new Array,st=3,At=re-1,Ot=(1<1){var Zt=ie();for(Oe.sqrTo(Ge[1],Zt);st<=Ot;)Ge[st]=ie(),Oe.mulTo(Zt,Ge[st-2],Ge[st]),st+=2}var hn,dr,qt=me.t-1,$n=!0,Mn=ie();for(N=z(me[qt])-1;qt>=0;){for(N>=At?hn=me[qt]>>N-At&Ot:(hn=(me[qt]&(1<0&&(hn|=me[qt-1]>>this.DB+N-At)),st=re;0==(1&hn);)hn>>=1,--st;if((N-=st)<0&&(N+=this.DB,--qt),$n)Ge[hn].copyTo(ne),$n=!1;else{for(;st>1;)Oe.sqrTo(ne,Mn),Oe.sqrTo(Mn,ne),st-=2;st>0?Oe.sqrTo(ne,Mn):(dr=ne,ne=Mn,Mn=dr),Oe.mulTo(Mn,Ge[hn],ne)}for(;qt>=0&&0==(me[qt]&1<me)&&re}}(X))})(0,[re],5e3).then(function(st){return ne(null,st)}).catch(function(st){return ne(st)})},Y.request=function(N,re,ne){var st,Ge=Object.assign({},this.fetchOptions,{headers:{"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityProviderService."+N,"X-Amz-User-Agent":yo.prototype.userAgent},method:"POST",mode:"cors",cache:"no-cache",body:JSON.stringify(re)});fetch(this.endpoint,Ge).then(function(Ot){return st=Ot,Ot},function(Ot){throw Ot instanceof TypeError?new Error("Network error"):Ot}).then(function(Ot){return Ot.json().catch(function(){return{}})}).then(function(Ot){if(st.ok)return ne(null,Ot);var Zt=(Ot.__type||Ot.code).split("#").pop(),qt=new Error(Ot.message||Ot.Message||null);return qt.name=Zt,qt.code=Zt,ne(qt)}).catch(function(Ot){if(st&&st.headers&&st.headers.get("x-amzn-errortype"))try{var Zt=st.headers.get("x-amzn-errortype").split(":")[0],qt=new Error(st.status?st.status.toString():null);return qt.code=Zt,qt.name=Zt,qt.statusCode=st.status,ne(qt)}catch(hn){return ne(Ot)}else Ot instanceof Error&&"Network error"===Ot.message&&(Ot.code="NetworkError");return ne(Ot)})},me}();function In(me,Y,X,N){if(void 0===N&&(N=1),"function"!=typeof me)throw Error("functionToRetry must be a function");return JSON.stringify(Y),me.apply(void 0,Y).catch(function(re){if(function(Y){return Y&&Y.nonRetryable}(re))throw re;var ne=X(N,Y,re);if(!1!==ne)return new Promise(function(Oe){return setTimeout(Oe,ne)}).then(function(){return In(me,Y,X,N+1)});throw re})}Error;var Wt=function(){function me(X,N){var re=X||{},ne=re.UserPoolId,Oe=re.ClientId,Ge=re.endpoint,st=re.fetchOptions,At=re.AdvancedSecurityDataCollectionFlag;if(!ne||!Oe)throw new Error("Both UserPoolId and ClientId are required.");if(ne.length>55||!/^[\w-]+_[0-9a-zA-Z]+$/.test(ne))throw new Error("Invalid UserPoolId format.");var Ot=ne.split("_")[0];this.userPoolId=ne,this.clientId=Oe,this.client=new Ft(Ot,Ge,st),this.advancedSecurityDataCollectionFlag=!1!==At,this.storage=X.Storage||(new Dt).getStorage(),N&&(this.wrapRefreshSessionCallback=N)}var Y=me.prototype;return Y.getUserPoolId=function(){return this.userPoolId},Y.getClientId=function(){return this.clientId},Y.signUp=function(N,re,ne,Oe,Ge,st){var At=this,Ot={ClientId:this.clientId,Username:N,Password:re,UserAttributes:ne,ValidationData:Oe,ClientMetadata:st};this.getUserContextData(N)&&(Ot.UserContextData=this.getUserContextData(N)),this.client.request("SignUp",Ot,function(Zt,qt){if(Zt)return Ge(Zt,null);var $n={user:new yn({Username:N,Pool:At,Storage:At.storage}),userConfirmed:qt.UserConfirmed,userSub:qt.UserSub,codeDeliveryDetails:qt.CodeDeliveryDetails};return Ge(null,$n)})},Y.getCurrentUser=function(){var re=this.storage.getItem("CognitoIdentityServiceProvider."+this.clientId+".LastAuthUser");return re?new yn({Username:re,Pool:this,Storage:this.storage}):null},Y.getUserContextData=function(N){if("undefined"!=typeof AmazonCognitoAdvancedSecurityData){var re=AmazonCognitoAdvancedSecurityData;if(this.advancedSecurityDataCollectionFlag){var ne=re.getData(N,this.userPoolId,this.clientId);if(ne)return{EncodedData:ne}}return{}}},me}(),mo=W(4556),Zf=function(){function me(X){if(!X.domain)throw new Error("The domain of cookieStorage can not be undefined.");if(this.domain=X.domain,this.path=X.path?X.path:"/",this.expires=Object.prototype.hasOwnProperty.call(X,"expires")?X.expires:365,this.secure=!Object.prototype.hasOwnProperty.call(X,"secure")||X.secure,Object.prototype.hasOwnProperty.call(X,"sameSite")){if(!["strict","lax","none"].includes(X.sameSite))throw new Error('The sameSite value of cookieStorage must be "lax", "strict" or "none".');if("none"===X.sameSite&&!this.secure)throw new Error("sameSite = None requires the Secure attribute in latest browser versions.");this.sameSite=X.sameSite}else this.sameSite=null}var Y=me.prototype;return Y.setItem=function(N,re){var ne={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(ne.sameSite=this.sameSite),mo.set(N,re,ne),mo.get(N)},Y.getItem=function(N){return mo.get(N)},Y.removeItem=function(N){var re={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(re.sameSite=this.sameSite),mo.remove(N,re)},Y.clear=function(){for(var N=mo.get(),re=Object.keys(N).length,ne=0;ne{"use strict";var se=W(1400),V=W(7840),ee=W(878);function L(){return D.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function R(ge,A){if(L()=L())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+L().toString(16)+" bytes");return 0|ge}function Ye(ge,A){if(D.isBuffer(ge))return ge.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(ge)||ge instanceof ArrayBuffer))return ge.byteLength;"string"!=typeof ge&&(ge=""+ge);var k=ge.length;if(0===k)return 0;for(var be=!1;;)switch(A){case"ascii":case"latin1":case"binary":return k;case"utf8":case"utf-8":case void 0:return Kt(ge).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*k;case"hex":return k>>>1;case"base64":return Pn(ge).length;default:if(be)return Kt(ge).length;A=(""+A).toLowerCase(),be=!0}}function ut(ge,A,k){var be=!1;if((void 0===A||A<0)&&(A=0),A>this.length||((void 0===k||k>this.length)&&(k=this.length),k<=0)||(k>>>=0)<=(A>>>=0))return"";for(ge||(ge="utf8");;)switch(ge){case"hex":return b(this,A,k);case"utf8":case"utf-8":return p(this,A,k);case"ascii":return d(this,A,k);case"latin1":case"binary":return y(this,A,k);case"base64":return c(this,A,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,A,k);default:if(be)throw new TypeError("Unknown encoding: "+ge);ge=(ge+"").toLowerCase(),be=!0}}function pt(ge,A,k){var be=ge[A];ge[A]=ge[k],ge[k]=be}function Nt(ge,A,k,be,ze){if(0===ge.length)return-1;if("string"==typeof k?(be=k,k=0):k>2147483647?k=2147483647:k<-2147483648&&(k=-2147483648),k=+k,isNaN(k)&&(k=ze?0:ge.length-1),k<0&&(k=ge.length+k),k>=ge.length){if(ze)return-1;k=ge.length-1}else if(k<0){if(!ze)return-1;k=0}if("string"==typeof A&&(A=D.from(A,be)),D.isBuffer(A))return 0===A.length?-1:Mt(ge,A,k,be,ze);if("number"==typeof A)return A&=255,D.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?ze?Uint8Array.prototype.indexOf.call(ge,A,k):Uint8Array.prototype.lastIndexOf.call(ge,A,k):Mt(ge,[A],k,be,ze);throw new TypeError("val must be string, number or Buffer")}function Mt(ge,A,k,be,ze){var Z,lt=1,ft=ge.length,an=A.length;if(void 0!==be&&("ucs2"===(be=String(be).toLowerCase())||"ucs-2"===be||"utf16le"===be||"utf-16le"===be)){if(ge.length<2||A.length<2)return-1;lt=2,ft/=2,an/=2,k/=2}function J(De,Be){return 1===lt?De[Be]:De.readUInt16BE(Be*lt)}if(ze){var te=-1;for(Z=k;Zft&&(k=ft-an),Z=k;Z>=0;Z--){for(var ve=!0,Pe=0;Peze&&(be=ze):be=ze;var lt=A.length;if(lt%2!=0)throw new TypeError("Invalid hex string");be>lt/2&&(be=lt/2);for(var ft=0;ft>8,lt.push(k%256),lt.push(be);return lt}(A,ge.length-k),ge,k,be)}function c(ge,A,k){return se.fromByteArray(0===A&&k===ge.length?ge:ge.slice(A,k))}function p(ge,A,k){k=Math.min(ge.length,k);for(var be=[],ze=A;ze239?4:lt>223?3:lt>191?2:1;if(ze+an<=k)switch(an){case 1:lt<128&&(ft=lt);break;case 2:128==(192&(J=ge[ze+1]))&&(ve=(31<)<<6|63&J)>127&&(ft=ve);break;case 3:Z=ge[ze+2],128==(192&(J=ge[ze+1]))&&128==(192&Z)&&(ve=(15<)<<12|(63&J)<<6|63&Z)>2047&&(ve<55296||ve>57343)&&(ft=ve);break;case 4:Z=ge[ze+2],te=ge[ze+3],128==(192&(J=ge[ze+1]))&&128==(192&Z)&&128==(192&te)&&(ve=(15<)<<18|(63&J)<<12|(63&Z)<<6|63&te)>65535&&ve<1114112&&(ft=ve)}null===ft?(ft=65533,an=1):ft>65535&&(be.push((ft-=65536)>>>10&1023|55296),ft=56320|1023&ft),be.push(ft),ze+=an}return function(ge){var A=ge.length;if(A<=m)return String.fromCharCode.apply(String,ge);for(var k="",be=0;be0&&(A=this.toString("hex",0,k).match(/.{2}/g).join(" "),this.length>k&&(A+=" ... ")),""},D.prototype.compare=function(A,k,be,ze,lt){if(!D.isBuffer(A))throw new TypeError("Argument must be a Buffer");if(void 0===k&&(k=0),void 0===be&&(be=A?A.length:0),void 0===ze&&(ze=0),void 0===lt&&(lt=this.length),k<0||be>A.length||ze<0||lt>this.length)throw new RangeError("out of range index");if(ze>=lt&&k>=be)return 0;if(ze>=lt)return-1;if(k>=be)return 1;if(this===A)return 0;for(var ft=(lt>>>=0)-(ze>>>=0),an=(be>>>=0)-(k>>>=0),J=Math.min(ft,an),Z=this.slice(ze,lt),te=A.slice(k,be),ve=0;velt)&&(be=lt),A.length>0&&(be<0||k<0)||k>this.length)throw new RangeError("Attempt to write outside buffer bounds");ze||(ze="utf8");for(var ft=!1;;)switch(ze){case"hex":return je(this,A,k,be);case"utf8":case"utf-8":return G(this,A,k,be);case"ascii":return H(this,A,k,be);case"latin1":case"binary":return S(this,A,k,be);case"base64":return g(this,A,k,be);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,A,k,be);default:if(ft)throw new TypeError("Unknown encoding: "+ze);ze=(""+ze).toLowerCase(),ft=!0}},D.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var m=4096;function d(ge,A,k){var be="";k=Math.min(ge.length,k);for(var ze=A;zebe)&&(k=be);for(var ze="",lt=A;ltk)throw new RangeError("Trying to access beyond buffer length")}function T(ge,A,k,be,ze,lt){if(!D.isBuffer(ge))throw new TypeError('"buffer" argument must be a Buffer instance');if(A>ze||Age.length)throw new RangeError("Index out of range")}function z(ge,A,k,be){A<0&&(A=65535+A+1);for(var ze=0,lt=Math.min(ge.length-k,2);ze>>8*(be?ze:1-ze)}function Fe(ge,A,k,be){A<0&&(A=4294967295+A+1);for(var ze=0,lt=Math.min(ge.length-k,4);ze>>8*(be?ze:3-ze)&255}function Le(ge,A,k,be,ze,lt){if(k+be>ge.length)throw new RangeError("Index out of range");if(k<0)throw new RangeError("Index out of range")}function Me(ge,A,k,be,ze){return ze||Le(ge,0,k,4),V.write(ge,A,k,be,23,4),k+4}function et(ge,A,k,be,ze){return ze||Le(ge,0,k,8),V.write(ge,A,k,be,52,8),k+8}D.prototype.slice=function(A,k){var ze,be=this.length;if((A=~~A)<0?(A+=be)<0&&(A=0):A>be&&(A=be),(k=void 0===k?be:~~k)<0?(k+=be)<0&&(k=0):k>be&&(k=be),k0&&(lt*=256);)ze+=this[A+--k]*lt;return ze},D.prototype.readUInt8=function(A,k){return k||j(A,1,this.length),this[A]},D.prototype.readUInt16LE=function(A,k){return k||j(A,2,this.length),this[A]|this[A+1]<<8},D.prototype.readUInt16BE=function(A,k){return k||j(A,2,this.length),this[A]<<8|this[A+1]},D.prototype.readUInt32LE=function(A,k){return k||j(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+16777216*this[A+3]},D.prototype.readUInt32BE=function(A,k){return k||j(A,4,this.length),16777216*this[A]+(this[A+1]<<16|this[A+2]<<8|this[A+3])},D.prototype.readIntLE=function(A,k,be){A|=0,k|=0,be||j(A,k,this.length);for(var ze=this[A],lt=1,ft=0;++ft=(lt*=128)&&(ze-=Math.pow(2,8*k)),ze},D.prototype.readIntBE=function(A,k,be){A|=0,k|=0,be||j(A,k,this.length);for(var ze=k,lt=1,ft=this[A+--ze];ze>0&&(lt*=256);)ft+=this[A+--ze]*lt;return ft>=(lt*=128)&&(ft-=Math.pow(2,8*k)),ft},D.prototype.readInt8=function(A,k){return k||j(A,1,this.length),128&this[A]?-1*(255-this[A]+1):this[A]},D.prototype.readInt16LE=function(A,k){k||j(A,2,this.length);var be=this[A]|this[A+1]<<8;return 32768&be?4294901760|be:be},D.prototype.readInt16BE=function(A,k){k||j(A,2,this.length);var be=this[A+1]|this[A]<<8;return 32768&be?4294901760|be:be},D.prototype.readInt32LE=function(A,k){return k||j(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},D.prototype.readInt32BE=function(A,k){return k||j(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},D.prototype.readFloatLE=function(A,k){return k||j(A,4,this.length),V.read(this,A,!0,23,4)},D.prototype.readFloatBE=function(A,k){return k||j(A,4,this.length),V.read(this,A,!1,23,4)},D.prototype.readDoubleLE=function(A,k){return k||j(A,8,this.length),V.read(this,A,!0,52,8)},D.prototype.readDoubleBE=function(A,k){return k||j(A,8,this.length),V.read(this,A,!1,52,8)},D.prototype.writeUIntLE=function(A,k,be,ze){A=+A,k|=0,be|=0,ze||T(this,A,k,be,Math.pow(2,8*be)-1,0);var ft=1,an=0;for(this[k]=255&A;++an=0&&(an*=256);)this[k+ft]=A/an&255;return k+be},D.prototype.writeUInt8=function(A,k,be){return A=+A,k|=0,be||T(this,A,k,1,255,0),D.TYPED_ARRAY_SUPPORT||(A=Math.floor(A)),this[k]=255&A,k+1},D.prototype.writeUInt16LE=function(A,k,be){return A=+A,k|=0,be||T(this,A,k,2,65535,0),D.TYPED_ARRAY_SUPPORT?(this[k]=255&A,this[k+1]=A>>>8):z(this,A,k,!0),k+2},D.prototype.writeUInt16BE=function(A,k,be){return A=+A,k|=0,be||T(this,A,k,2,65535,0),D.TYPED_ARRAY_SUPPORT?(this[k]=A>>>8,this[k+1]=255&A):z(this,A,k,!1),k+2},D.prototype.writeUInt32LE=function(A,k,be){return A=+A,k|=0,be||T(this,A,k,4,4294967295,0),D.TYPED_ARRAY_SUPPORT?(this[k+3]=A>>>24,this[k+2]=A>>>16,this[k+1]=A>>>8,this[k]=255&A):Fe(this,A,k,!0),k+4},D.prototype.writeUInt32BE=function(A,k,be){return A=+A,k|=0,be||T(this,A,k,4,4294967295,0),D.TYPED_ARRAY_SUPPORT?(this[k]=A>>>24,this[k+1]=A>>>16,this[k+2]=A>>>8,this[k+3]=255&A):Fe(this,A,k,!1),k+4},D.prototype.writeIntLE=function(A,k,be,ze){if(A=+A,k|=0,!ze){var lt=Math.pow(2,8*be-1);T(this,A,k,be,lt-1,-lt)}var ft=0,an=1,J=0;for(this[k]=255&A;++ft>0)-J&255;return k+be},D.prototype.writeIntBE=function(A,k,be,ze){if(A=+A,k|=0,!ze){var lt=Math.pow(2,8*be-1);T(this,A,k,be,lt-1,-lt)}var ft=be-1,an=1,J=0;for(this[k+ft]=255&A;--ft>=0&&(an*=256);)A<0&&0===J&&0!==this[k+ft+1]&&(J=1),this[k+ft]=(A/an>>0)-J&255;return k+be},D.prototype.writeInt8=function(A,k,be){return A=+A,k|=0,be||T(this,A,k,1,127,-128),D.TYPED_ARRAY_SUPPORT||(A=Math.floor(A)),A<0&&(A=255+A+1),this[k]=255&A,k+1},D.prototype.writeInt16LE=function(A,k,be){return A=+A,k|=0,be||T(this,A,k,2,32767,-32768),D.TYPED_ARRAY_SUPPORT?(this[k]=255&A,this[k+1]=A>>>8):z(this,A,k,!0),k+2},D.prototype.writeInt16BE=function(A,k,be){return A=+A,k|=0,be||T(this,A,k,2,32767,-32768),D.TYPED_ARRAY_SUPPORT?(this[k]=A>>>8,this[k+1]=255&A):z(this,A,k,!1),k+2},D.prototype.writeInt32LE=function(A,k,be){return A=+A,k|=0,be||T(this,A,k,4,2147483647,-2147483648),D.TYPED_ARRAY_SUPPORT?(this[k]=255&A,this[k+1]=A>>>8,this[k+2]=A>>>16,this[k+3]=A>>>24):Fe(this,A,k,!0),k+4},D.prototype.writeInt32BE=function(A,k,be){return A=+A,k|=0,be||T(this,A,k,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),D.TYPED_ARRAY_SUPPORT?(this[k]=A>>>24,this[k+1]=A>>>16,this[k+2]=A>>>8,this[k+3]=255&A):Fe(this,A,k,!1),k+4},D.prototype.writeFloatLE=function(A,k,be){return Me(this,A,k,!0,be)},D.prototype.writeFloatBE=function(A,k,be){return Me(this,A,k,!1,be)},D.prototype.writeDoubleLE=function(A,k,be){return et(this,A,k,!0,be)},D.prototype.writeDoubleBE=function(A,k,be){return et(this,A,k,!1,be)},D.prototype.copy=function(A,k,be,ze){if(be||(be=0),!ze&&0!==ze&&(ze=this.length),k>=A.length&&(k=A.length),k||(k=0),ze>0&&ze=this.length)throw new RangeError("sourceStart out of bounds");if(ze<0)throw new RangeError("sourceEnd out of bounds");ze>this.length&&(ze=this.length),A.length-k=0;--ft)A[ft+k]=this[ft+be];else if(lt<1e3||!D.TYPED_ARRAY_SUPPORT)for(ft=0;ft>>=0,be=void 0===be?this.length:be>>>0,A||(A=0),"number"==typeof A)for(ft=k;ft55295&&k<57344){if(!ze){if(k>56319){(A-=3)>-1&<.push(239,191,189);continue}if(ft+1===be){(A-=3)>-1&<.push(239,191,189);continue}ze=k;continue}if(k<56320){(A-=3)>-1&<.push(239,191,189),ze=k;continue}k=65536+(ze-55296<<10|k-56320)}else ze&&(A-=3)>-1&<.push(239,191,189);if(ze=null,k<128){if((A-=1)<0)break;lt.push(k)}else if(k<2048){if((A-=2)<0)break;lt.push(k>>6|192,63&k|128)}else if(k<65536){if((A-=3)<0)break;lt.push(k>>12|224,k>>6&63|128,63&k|128)}else{if(!(k<1114112))throw new Error("Invalid code point");if((A-=4)<0)break;lt.push(k>>18|240,k>>12&63|128,k>>6&63|128,63&k|128)}}return lt}function Pn(ge){return se.toByteArray(function(ge){if((ge=function(ge){return ge.trim?ge.trim():ge.replace(/^\s+|\s+$/g,"")}(ge).replace(St,"")).length<2)return"";for(;ge.length%4!=0;)ge+="=";return ge}(ge))}function gn(ge,A,k,be){for(var ze=0;ze=A.length||ze>=ge.length);++ze)A[ze+k]=ge[ze];return ze}},1400:(mt,de)=>{"use strict";de.byteLength=function(we){var fe=L(we),ie=fe[1];return 3*(fe[0]+ie)/4-ie},de.toByteArray=function(we){var fe,pt,ce=L(we),ie=ce[0],Ve=ce[1],Re=new se(function(we,fe,ce){return 3*(fe+ce)/4-ce}(0,ie,Ve)),Ye=0,ut=Ve>0?ie-4:ie;for(pt=0;pt>16&255,Re[Ye++]=fe>>8&255,Re[Ye++]=255&fe;return 2===Ve&&(fe=Q[we.charCodeAt(pt)]<<2|Q[we.charCodeAt(pt+1)]>>4,Re[Ye++]=255&fe),1===Ve&&(fe=Q[we.charCodeAt(pt)]<<10|Q[we.charCodeAt(pt+1)]<<4|Q[we.charCodeAt(pt+2)]>>2,Re[Ye++]=fe>>8&255,Re[Ye++]=255&fe),Re},de.fromByteArray=function(we){for(var fe,ce=we.length,ie=ce%3,Ve=[],Ye=0,ut=ce-ie;Yeut?ut:Ye+16383));return 1===ie?Ve.push(W[(fe=we[ce-1])>>2]+W[fe<<4&63]+"=="):2===ie&&Ve.push(W[(fe=(we[ce-2]<<8)+we[ce-1])>>10]+W[fe>>4&63]+W[fe<<2&63]+"="),Ve.join("")};for(var W=[],Q=[],se="undefined"!=typeof Uint8Array?Uint8Array:Array,V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ee=0,Ie=V.length;ee0)throw new Error("Invalid string. Length must be a multiple of 4");var ce=we.indexOf("=");return-1===ce&&(ce=fe),[ce,ce===fe?0:4-ce%4]}function pe(we){return W[we>>18&63]+W[we>>12&63]+W[we>>6&63]+W[63&we]}function he(we,fe,ce){for(var Ve=[],Re=fe;Re0&&R[1]||""},ee.getSecondMatch=function(Ie,L){var R=L.match(Ie);return R&&R.length>1&&R[2]||""},ee.matchAndReturnConst=function(Ie,L,R){if(Ie.test(L))return R},ee.getWindowsVersionName=function(Ie){switch(Ie){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},ee.getMacOSVersionName=function(Ie){var L=Ie.split(".").splice(0,2).map(function(R){return parseInt(R,10)||0});if(L.push(0),10===L[0])switch(L[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},ee.getAndroidVersionName=function(Ie){var L=Ie.split(".").splice(0,2).map(function(R){return parseInt(R,10)||0});if(L.push(0),!(1===L[0]&&L[1]<5))return 1===L[0]&&L[1]<6?"Cupcake":1===L[0]&&L[1]>=6?"Donut":2===L[0]&&L[1]<2?"Eclair":2===L[0]&&2===L[1]?"Froyo":2===L[0]&&L[1]>2?"Gingerbread":3===L[0]?"Honeycomb":4===L[0]&&L[1]<1?"Ice Cream Sandwich":4===L[0]&&L[1]<4?"Jelly Bean":4===L[0]&&L[1]>=4?"KitKat":5===L[0]?"Lollipop":6===L[0]?"Marshmallow":7===L[0]?"Nougat":8===L[0]?"Oreo":9===L[0]?"Pie":void 0},ee.getVersionPrecision=function(Ie){return Ie.split(".").length},ee.compareVersions=function(Ie,L,R){void 0===R&&(R=!1);var D=ee.getVersionPrecision(Ie),le=ee.getVersionPrecision(L),pe=Math.max(D,le),he=0,ue=ee.map([Ie,L],function(we){var fe=pe-ee.getVersionPrecision(we),ce=we+new Array(fe+1).join(".0");return ee.map(ce.split("."),function(ie){return new Array(20-ie.length).join("0")+ie}).reverse()});for(R&&(he=pe-Math.min(D,le)),pe-=1;pe>=he;){if(ue[0][pe]>ue[1][pe])return 1;if(ue[0][pe]===ue[1][pe]){if(pe===he)return 0;pe-=1}else if(ue[0][pe]1?le-1:0),he=1;he0){var Ve=Object.keys(we),Re=L.default.find(Ve,function(je){return ue.isOS(je)});if(Re){var Ye=this.satisfies(we[Re]);if(void 0!==Ye)return Ye}var ut=L.default.find(Ve,function(je){return ue.isPlatform(je)});if(ut){var pt=this.satisfies(we[ut]);if(void 0!==pt)return pt}}if(ie>0){var Nt=Object.keys(ce),Mt=L.default.find(Nt,function(je){return ue.isBrowser(je,!0)});if(void 0!==Mt)return this.compareVersion(ce[Mt])}},pe.isBrowser=function(he,ue){void 0===ue&&(ue=!1);var we=this.getBrowserName().toLowerCase(),fe=he.toLowerCase(),ce=L.default.getBrowserTypeByAlias(fe);return ue&&ce&&(fe=ce.toLowerCase()),fe===we},pe.compareVersion=function(he){var ue=[0],we=he,fe=!1,ce=this.getBrowserVersion();if("string"==typeof ce)return">"===he[0]||"<"===he[0]?(we=he.substr(1),"="===he[1]?(fe=!0,we=he.substr(2)):ue=[],ue.push(">"===he[0]?1:-1)):"="===he[0]?we=he.substr(1):"~"===he[0]&&(fe=!0,we=he.substr(1)),ue.indexOf(L.default.compareVersions(ce,we,fe))>-1},pe.isOS=function(he){return this.getOSName(!0)===String(he).toLowerCase()},pe.isPlatform=function(he){return this.getPlatformType(!0)===String(he).toLowerCase()},pe.isEngine=function(he){return this.getEngineName(!0)===String(he).toLowerCase()},pe.is=function(he,ue){return void 0===ue&&(ue=!1),this.isBrowser(he,ue)||this.isOS(he)||this.isPlatform(he)},pe.some=function(he){var ue=this;return void 0===he&&(he=[]),he.some(function(we){return ue.is(we)})},le}();W.default=D,de.exports=W.default},92:function(de,W,Q){"use strict";W.__esModule=!0,W.default=void 0;var se,V=(se=Q(17))&&se.__esModule?se:{default:se},ee=/version\/(\d+(\.?_?\d+)+)/i;W.default=[{test:[/googlebot/i],describe:function(L){var R={name:"Googlebot"},D=V.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,L)||V.default.getFirstMatch(ee,L);return D&&(R.version=D),R}},{test:[/opera/i],describe:function(L){var R={name:"Opera"},D=V.default.getFirstMatch(ee,L)||V.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,L);return D&&(R.version=D),R}},{test:[/opr\/|opios/i],describe:function(L){var R={name:"Opera"},D=V.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,L)||V.default.getFirstMatch(ee,L);return D&&(R.version=D),R}},{test:[/SamsungBrowser/i],describe:function(L){var R={name:"Samsung Internet for Android"},D=V.default.getFirstMatch(ee,L)||V.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,L);return D&&(R.version=D),R}},{test:[/Whale/i],describe:function(L){var R={name:"NAVER Whale Browser"},D=V.default.getFirstMatch(ee,L)||V.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,L);return D&&(R.version=D),R}},{test:[/MZBrowser/i],describe:function(L){var R={name:"MZ Browser"},D=V.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,L)||V.default.getFirstMatch(ee,L);return D&&(R.version=D),R}},{test:[/focus/i],describe:function(L){var R={name:"Focus"},D=V.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,L)||V.default.getFirstMatch(ee,L);return D&&(R.version=D),R}},{test:[/swing/i],describe:function(L){var R={name:"Swing"},D=V.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,L)||V.default.getFirstMatch(ee,L);return D&&(R.version=D),R}},{test:[/coast/i],describe:function(L){var R={name:"Opera Coast"},D=V.default.getFirstMatch(ee,L)||V.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,L);return D&&(R.version=D),R}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(L){var R={name:"Opera Touch"},D=V.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,L)||V.default.getFirstMatch(ee,L);return D&&(R.version=D),R}},{test:[/yabrowser/i],describe:function(L){var R={name:"Yandex Browser"},D=V.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,L)||V.default.getFirstMatch(ee,L);return D&&(R.version=D),R}},{test:[/ucbrowser/i],describe:function(L){var R={name:"UC Browser"},D=V.default.getFirstMatch(ee,L)||V.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,L);return D&&(R.version=D),R}},{test:[/Maxthon|mxios/i],describe:function(L){var R={name:"Maxthon"},D=V.default.getFirstMatch(ee,L)||V.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,L);return D&&(R.version=D),R}},{test:[/epiphany/i],describe:function(L){var R={name:"Epiphany"},D=V.default.getFirstMatch(ee,L)||V.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,L);return D&&(R.version=D),R}},{test:[/puffin/i],describe:function(L){var R={name:"Puffin"},D=V.default.getFirstMatch(ee,L)||V.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,L);return D&&(R.version=D),R}},{test:[/sleipnir/i],describe:function(L){var R={name:"Sleipnir"},D=V.default.getFirstMatch(ee,L)||V.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,L);return D&&(R.version=D),R}},{test:[/k-meleon/i],describe:function(L){var R={name:"K-Meleon"},D=V.default.getFirstMatch(ee,L)||V.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,L);return D&&(R.version=D),R}},{test:[/micromessenger/i],describe:function(L){var R={name:"WeChat"},D=V.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,L)||V.default.getFirstMatch(ee,L);return D&&(R.version=D),R}},{test:[/qqbrowser/i],describe:function(L){var R={name:/qqbrowserlite/i.test(L)?"QQ Browser Lite":"QQ Browser"},D=V.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,L)||V.default.getFirstMatch(ee,L);return D&&(R.version=D),R}},{test:[/msie|trident/i],describe:function(L){var R={name:"Internet Explorer"},D=V.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,L);return D&&(R.version=D),R}},{test:[/\sedg\//i],describe:function(L){var R={name:"Microsoft Edge"},D=V.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,L);return D&&(R.version=D),R}},{test:[/edg([ea]|ios)/i],describe:function(L){var R={name:"Microsoft Edge"},D=V.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,L);return D&&(R.version=D),R}},{test:[/vivaldi/i],describe:function(L){var R={name:"Vivaldi"},D=V.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,L);return D&&(R.version=D),R}},{test:[/seamonkey/i],describe:function(L){var R={name:"SeaMonkey"},D=V.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,L);return D&&(R.version=D),R}},{test:[/sailfish/i],describe:function(L){var R={name:"Sailfish"},D=V.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,L);return D&&(R.version=D),R}},{test:[/silk/i],describe:function(L){var R={name:"Amazon Silk"},D=V.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,L);return D&&(R.version=D),R}},{test:[/phantom/i],describe:function(L){var R={name:"PhantomJS"},D=V.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,L);return D&&(R.version=D),R}},{test:[/slimerjs/i],describe:function(L){var R={name:"SlimerJS"},D=V.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,L);return D&&(R.version=D),R}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(L){var R={name:"BlackBerry"},D=V.default.getFirstMatch(ee,L)||V.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,L);return D&&(R.version=D),R}},{test:[/(web|hpw)[o0]s/i],describe:function(L){var R={name:"WebOS Browser"},D=V.default.getFirstMatch(ee,L)||V.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,L);return D&&(R.version=D),R}},{test:[/bada/i],describe:function(L){var R={name:"Bada"},D=V.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,L);return D&&(R.version=D),R}},{test:[/tizen/i],describe:function(L){var R={name:"Tizen"},D=V.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,L)||V.default.getFirstMatch(ee,L);return D&&(R.version=D),R}},{test:[/qupzilla/i],describe:function(L){var R={name:"QupZilla"},D=V.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,L)||V.default.getFirstMatch(ee,L);return D&&(R.version=D),R}},{test:[/firefox|iceweasel|fxios/i],describe:function(L){var R={name:"Firefox"},D=V.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,L);return D&&(R.version=D),R}},{test:[/electron/i],describe:function(L){var R={name:"Electron"},D=V.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,L);return D&&(R.version=D),R}},{test:[/MiuiBrowser/i],describe:function(L){var R={name:"Miui"},D=V.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,L);return D&&(R.version=D),R}},{test:[/chromium/i],describe:function(L){var R={name:"Chromium"},D=V.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,L)||V.default.getFirstMatch(ee,L);return D&&(R.version=D),R}},{test:[/chrome|crios|crmo/i],describe:function(L){var R={name:"Chrome"},D=V.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,L);return D&&(R.version=D),R}},{test:[/GSA/i],describe:function(L){var R={name:"Google Search"},D=V.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,L);return D&&(R.version=D),R}},{test:function(L){var R=!L.test(/like android/i),D=L.test(/android/i);return R&&D},describe:function(L){var R={name:"Android Browser"},D=V.default.getFirstMatch(ee,L);return D&&(R.version=D),R}},{test:[/playstation 4/i],describe:function(L){var R={name:"PlayStation 4"},D=V.default.getFirstMatch(ee,L);return D&&(R.version=D),R}},{test:[/safari|applewebkit/i],describe:function(L){var R={name:"Safari"},D=V.default.getFirstMatch(ee,L);return D&&(R.version=D),R}},{test:[/.*/i],describe:function(L){var R=-1!==L.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:V.default.getFirstMatch(R,L),version:V.default.getSecondMatch(R,L)}}}],de.exports=W.default},93:function(de,W,Q){"use strict";W.__esModule=!0,W.default=void 0;var se,V=(se=Q(17))&&se.__esModule?se:{default:se},ee=Q(18);W.default=[{test:[/Roku\/DVP/],describe:function(L){var R=V.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,L);return{name:ee.OS_MAP.Roku,version:R}}},{test:[/windows phone/i],describe:function(L){var R=V.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,L);return{name:ee.OS_MAP.WindowsPhone,version:R}}},{test:[/windows /i],describe:function(L){var R=V.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,L),D=V.default.getWindowsVersionName(R);return{name:ee.OS_MAP.Windows,version:R,versionName:D}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(L){var R={name:ee.OS_MAP.iOS},D=V.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,L);return D&&(R.version=D),R}},{test:[/macintosh/i],describe:function(L){var R=V.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,L).replace(/[_\s]/g,"."),D=V.default.getMacOSVersionName(R),le={name:ee.OS_MAP.MacOS,version:R};return D&&(le.versionName=D),le}},{test:[/(ipod|iphone|ipad)/i],describe:function(L){var R=V.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,L).replace(/[_\s]/g,".");return{name:ee.OS_MAP.iOS,version:R}}},{test:function(L){var R=!L.test(/like android/i),D=L.test(/android/i);return R&&D},describe:function(L){var R=V.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,L),D=V.default.getAndroidVersionName(R),le={name:ee.OS_MAP.Android,version:R};return D&&(le.versionName=D),le}},{test:[/(web|hpw)[o0]s/i],describe:function(L){var R=V.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,L),D={name:ee.OS_MAP.WebOS};return R&&R.length&&(D.version=R),D}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(L){var R=V.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,L)||V.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,L)||V.default.getFirstMatch(/\bbb(\d+)/i,L);return{name:ee.OS_MAP.BlackBerry,version:R}}},{test:[/bada/i],describe:function(L){var R=V.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,L);return{name:ee.OS_MAP.Bada,version:R}}},{test:[/tizen/i],describe:function(L){var R=V.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,L);return{name:ee.OS_MAP.Tizen,version:R}}},{test:[/linux/i],describe:function(){return{name:ee.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:ee.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(L){var R=V.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,L);return{name:ee.OS_MAP.PlayStation4,version:R}}}],de.exports=W.default},94:function(de,W,Q){"use strict";W.__esModule=!0,W.default=void 0;var se,V=(se=Q(17))&&se.__esModule?se:{default:se},ee=Q(18);W.default=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(L){var R=V.default.getFirstMatch(/(can-l01)/i,L)&&"Nova",D={type:ee.PLATFORMS_MAP.mobile,vendor:"Huawei"};return R&&(D.model=R),D}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:ee.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:ee.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:ee.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:ee.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:ee.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:ee.PLATFORMS_MAP.tablet}}},{test:function(L){var R=L.test(/ipod|iphone/i),D=L.test(/like (ipod|iphone)/i);return R&&!D},describe:function(L){var R=V.default.getFirstMatch(/(ipod|iphone)/i,L);return{type:ee.PLATFORMS_MAP.mobile,vendor:"Apple",model:R}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:ee.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:ee.PLATFORMS_MAP.mobile}}},{test:function(L){return"blackberry"===L.getBrowserName(!0)},describe:function(){return{type:ee.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(L){return"bada"===L.getBrowserName(!0)},describe:function(){return{type:ee.PLATFORMS_MAP.mobile}}},{test:function(L){return"windows phone"===L.getBrowserName()},describe:function(){return{type:ee.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(L){var R=Number(String(L.getOSVersion()).split(".")[0]);return"android"===L.getOSName(!0)&&R>=3},describe:function(){return{type:ee.PLATFORMS_MAP.tablet}}},{test:function(L){return"android"===L.getOSName(!0)},describe:function(){return{type:ee.PLATFORMS_MAP.mobile}}},{test:function(L){return"macos"===L.getOSName(!0)},describe:function(){return{type:ee.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(L){return"windows"===L.getOSName(!0)},describe:function(){return{type:ee.PLATFORMS_MAP.desktop}}},{test:function(L){return"linux"===L.getOSName(!0)},describe:function(){return{type:ee.PLATFORMS_MAP.desktop}}},{test:function(L){return"playstation 4"===L.getOSName(!0)},describe:function(){return{type:ee.PLATFORMS_MAP.tv}}},{test:function(L){return"roku"===L.getOSName(!0)},describe:function(){return{type:ee.PLATFORMS_MAP.tv}}}],de.exports=W.default},95:function(de,W,Q){"use strict";W.__esModule=!0,W.default=void 0;var se,V=(se=Q(17))&&se.__esModule?se:{default:se},ee=Q(18);W.default=[{test:function(L){return"microsoft edge"===L.getBrowserName(!0)},describe:function(L){if(/\sedg\//i.test(L))return{name:ee.ENGINE_MAP.Blink};var R=V.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,L);return{name:ee.ENGINE_MAP.EdgeHTML,version:R}}},{test:[/trident/i],describe:function(L){var R={name:ee.ENGINE_MAP.Trident},D=V.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,L);return D&&(R.version=D),R}},{test:function(L){return L.test(/presto/i)},describe:function(L){var R={name:ee.ENGINE_MAP.Presto},D=V.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,L);return D&&(R.version=D),R}},{test:function(L){var R=L.test(/gecko/i),D=L.test(/like gecko/i);return R&&!D},describe:function(L){var R={name:ee.ENGINE_MAP.Gecko},D=V.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,L);return D&&(R.version=D),R}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:ee.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(L){var R={name:ee.ENGINE_MAP.WebKit},D=V.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,L);return D&&(R.version=D),R}}],de.exports=W.default}})},1686:(mt,de)=>{"use strict";de.Q=function(R,D){if("string"!=typeof R)throw new TypeError("argument str must be a string");for(var le={},pe=D||{},he=R.split(se),ue=pe.decode||W,we=0;we>>2]|=(ut[Mt>>>2]>>>24-Mt%4*8&255)<<24-(pt+Mt)%4*8;else for(var G=0;G>>2]=ut[G>>>2];return this.sigBytes+=Nt,this},clamp:function(){var Re=this.words,Ye=this.sigBytes;Re[Ye>>>2]&=4294967295<<32-Ye%4*8,Re.length=se.ceil(Ye/4)},clone:function(){var Re=le.clone.call(this);return Re.words=this.words.slice(0),Re},random:function(Re){for(var Ye=[],ut=0;ut>>2]>>>24-Nt%4*8&255;pt.push((Mt>>>4).toString(16)),pt.push((15&Mt).toString(16))}return pt.join("")},parse:function(Re){for(var Ye=Re.length,ut=[],pt=0;pt>>3]|=parseInt(Re.substr(pt,2),16)<<24-pt%8*4;return new pe.init(ut,Ye/2)}},we=he.Latin1={stringify:function(Re){for(var Ye=Re.words,ut=Re.sigBytes,pt=[],Nt=0;Nt>>2]>>>24-Nt%4*8&255));return pt.join("")},parse:function(Re){for(var Ye=Re.length,ut=[],pt=0;pt>>2]|=(255&Re.charCodeAt(pt))<<24-pt%4*8;return new pe.init(ut,Ye)}},fe=he.Utf8={stringify:function(Re){try{return decodeURIComponent(escape(we.stringify(Re)))}catch(Ye){throw new Error("Malformed UTF-8 data")}},parse:function(Re){return we.parse(unescape(encodeURIComponent(Re)))}},ce=D.BufferedBlockAlgorithm=le.extend({reset:function(){this._data=new pe.init,this._nDataBytes=0},_append:function(Re){"string"==typeof Re&&(Re=fe.parse(Re)),this._data.concat(Re),this._nDataBytes+=Re.sigBytes},_process:function(Re){var Ye,ut=this._data,pt=ut.words,Nt=ut.sigBytes,Mt=this.blockSize,G=Nt/(4*Mt),H=(G=Re?se.ceil(G):se.max((0|G)-this._minBufferSize,0))*Mt,S=se.min(4*H,Nt);if(H){for(var g=0;g>>2]>>>24-we%4*8&255)<<16|(le[we+1>>>2]>>>24-(we+1)%4*8&255)<<8|le[we+2>>>2]>>>24-(we+2)%4*8&255,Re=0;Re<4&&we+.75*Re>>6*(3-Re)&63));var Ye=he.charAt(64);if(Ye)for(;ue.length%4;)ue.push(Ye);return ue.join("")},parse:function(D){var le=D.length,pe=this._map,he=this._reverseMap;if(!he){he=this._reverseMap=[];for(var ue=0;ue>>6-we%4*2;he[ue>>>2]|=(fe|ce)<<24-ue%4*8,ue++}return ee.create(he,ue)}(D,le,he)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},Q.enc.Base64)},8163:function(mt,de,W){var Q;mt.exports=(Q=W(3567),W(1602),W(3781),Q.HmacSHA256)},3781:function(mt,de,W){var Q,L;mt.exports=(Q=W(3567),L=Q.enc.Utf8,void(Q.algo.HMAC=Q.lib.Base.extend({init:function(le,pe){le=this._hasher=new le.init,"string"==typeof pe&&(pe=L.parse(pe));var he=le.blockSize,ue=4*he;pe.sigBytes>ue&&(pe=le.finalize(pe)),pe.clamp();for(var we=this._oKey=pe.clone(),fe=this._iKey=pe.clone(),ce=we.words,ie=fe.words,Ve=0;Ve>>2]|=R[pe]<<24-pe%4*8;Ie.call(this,le,D)}else Ie.apply(this,arguments)}).prototype=ee}}(),Q.lib.WordArray)},1602:function(mt,de,W){var Q;mt.exports=(Q=W(3567),function(se){var V=Q,ee=V.lib,Ie=ee.WordArray,L=ee.Hasher,R=V.algo,D=[],le=[];!function(){function ue(ie){for(var Ve=se.sqrt(ie),Re=2;Re<=Ve;Re++)if(!(ie%Re))return!1;return!0}function we(ie){return 4294967296*(ie-(0|ie))|0}for(var fe=2,ce=0;ce<64;)ue(fe)&&(ce<8&&(D[ce]=we(se.pow(fe,.5))),le[ce]=we(se.pow(fe,1/3)),ce++),fe++}();var pe=[],he=R.SHA256=L.extend({_doReset:function(){this._hash=new Ie.init(D.slice(0))},_doProcessBlock:function(ue,we){for(var fe=this._hash.words,ce=fe[0],ie=fe[1],Ve=fe[2],Re=fe[3],Ye=fe[4],ut=fe[5],pt=fe[6],Nt=fe[7],Mt=0;Mt<64;Mt++){if(Mt<16)pe[Mt]=0|ue[we+Mt];else{var je=pe[Mt-15],H=pe[Mt-2];pe[Mt]=((je<<25|je>>>7)^(je<<14|je>>>18)^je>>>3)+pe[Mt-7]+((H<<15|H>>>17)^(H<<13|H>>>19)^H>>>10)+pe[Mt-16]}var w=ce&ie^ce&Ve^ie&Ve,m=Nt+((Ye<<26|Ye>>>6)^(Ye<<21|Ye>>>11)^(Ye<<7|Ye>>>25))+(Ye&ut^~Ye&pt)+le[Mt]+pe[Mt];Nt=pt,pt=ut,ut=Ye,Ye=Re+m|0,Re=Ve,Ve=ie,ie=ce,ce=m+(((ce<<30|ce>>>2)^(ce<<19|ce>>>13)^(ce<<10|ce>>>22))+w)|0}fe[0]=fe[0]+ce|0,fe[1]=fe[1]+ie|0,fe[2]=fe[2]+Ve|0,fe[3]=fe[3]+Re|0,fe[4]=fe[4]+Ye|0,fe[5]=fe[5]+ut|0,fe[6]=fe[6]+pt|0,fe[7]=fe[7]+Nt|0},_doFinalize:function(){var ue=this._data,we=ue.words,fe=8*this._nDataBytes,ce=8*ue.sigBytes;return we[ce>>>5]|=128<<24-ce%32,we[14+(ce+64>>>9<<4)]=se.floor(fe/4294967296),we[15+(ce+64>>>9<<4)]=fe,ue.sigBytes=4*we.length,this._process(),this._hash},clone:function(){var ue=L.clone.call(this);return ue._hash=this._hash.clone(),ue}});V.SHA256=L._createHelper(he),V.HmacSHA256=L._createHmacHelper(he)}(Math),Q.SHA256)},7840:(mt,de)=>{de.read=function(W,Q,se,V,ee){var Ie,L,R=8*ee-V-1,D=(1<>1,pe=-7,he=se?ee-1:0,ue=se?-1:1,we=W[Q+he];for(he+=ue,Ie=we&(1<<-pe)-1,we>>=-pe,pe+=R;pe>0;Ie=256*Ie+W[Q+he],he+=ue,pe-=8);for(L=Ie&(1<<-pe)-1,Ie>>=-pe,pe+=V;pe>0;L=256*L+W[Q+he],he+=ue,pe-=8);if(0===Ie)Ie=1-le;else{if(Ie===D)return L?NaN:1/0*(we?-1:1);L+=Math.pow(2,V),Ie-=le}return(we?-1:1)*L*Math.pow(2,Ie-V)},de.write=function(W,Q,se,V,ee,Ie){var L,R,D,le=8*Ie-ee-1,pe=(1<>1,ue=23===ee?Math.pow(2,-24)-Math.pow(2,-77):0,we=V?0:Ie-1,fe=V?1:-1,ce=Q<0||0===Q&&1/Q<0?1:0;for(Q=Math.abs(Q),isNaN(Q)||Q===1/0?(R=isNaN(Q)?1:0,L=pe):(L=Math.floor(Math.log(Q)/Math.LN2),Q*(D=Math.pow(2,-L))<1&&(L--,D*=2),(Q+=L+he>=1?ue/D:ue*Math.pow(2,1-he))*D>=2&&(L++,D/=2),L+he>=pe?(R=0,L=pe):L+he>=1?(R=(Q*D-1)*Math.pow(2,ee),L+=he):(R=Q*Math.pow(2,he-1)*Math.pow(2,ee),L=0));ee>=8;W[se+we]=255&R,we+=fe,R/=256,ee-=8);for(L=L<0;W[se+we]=255&L,we+=fe,L/=256,le-=8);W[se+we-fe]|=128*ce}},878:mt=>{var de={}.toString;mt.exports=Array.isArray||function(W){return"[object Array]"==de.call(W)}},6383:(mt,de,W)=>{mt.exports=self.fetch||(self.fetch=W(8158).default||W(8158))},4556:(mt,de,W)=>{var Q,se,V;void 0!==(se="function"==typeof(Q=V=function(){function V(){for(var L=0,R={};L{"use strict";function de(W,Q){return Object.prototype.hasOwnProperty.call(W,Q)}mt.exports=function(W,Q,se,V){se=se||"=";var ee={};if("string"!=typeof W||0===W.length)return ee;var Ie=/\+/g;W=W.split(Q=Q||"&");var L=1e3;V&&"number"==typeof V.maxKeys&&(L=V.maxKeys);var R=W.length;L>0&&R>L&&(R=L);for(var D=0;D=0?(he=le.substr(0,pe),ue=le.substr(pe+1)):(he=le,ue=""),we=decodeURIComponent(he),fe=decodeURIComponent(ue),de(ee,we)?Array.isArray(ee[we])?ee[we].push(fe):ee[we]=[ee[we],fe]:ee[we]=fe}return ee}},2289:mt=>{"use strict";var de=function(W){switch(typeof W){case"string":return W;case"boolean":return W?"true":"false";case"number":return isFinite(W)?W:"";default:return""}};mt.exports=function(W,Q,se,V){return Q=Q||"&",se=se||"=",null===W&&(W=void 0),"object"==typeof W?Object.keys(W).map(function(ee){var Ie=encodeURIComponent(de(ee))+se;return Array.isArray(W[ee])?W[ee].map(function(L){return Ie+encodeURIComponent(de(L))}).join(Q):Ie+encodeURIComponent(de(W[ee]))}).join(Q):V?encodeURIComponent(de(V))+se+encodeURIComponent(de(W)):""}},6085:(mt,de,W)=>{"use strict";de.decode=de.parse=W(3371),de.encode=de.stringify=W(2289)},8158:(mt,de,W)=>{"use strict";function Q(se,V){return V=V||{},new Promise(function(ee,Ie){var L=new XMLHttpRequest,R=[],D=[],le={},pe=function(){return{ok:2==(L.status/100|0),statusText:L.statusText,status:L.status,url:L.responseURL,text:function(){return Promise.resolve(L.responseText)},json:function(){return Promise.resolve(L.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([L.response]))},clone:pe,headers:{keys:function(){return R},entries:function(){return D},get:function(ue){return le[ue.toLowerCase()]},has:function(ue){return ue.toLowerCase()in le}}}};for(var he in L.open(V.method||"get",se,!0),L.onload=function(){L.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(ue,we,fe){R.push(we=we.toLowerCase()),D.push([we,fe]),le[we]=le[we]?le[we]+","+fe:fe}),ee(pe())},L.onerror=Ie,L.withCredentials="include"==V.credentials,V.headers)L.setRequestHeader(he,V.headers[he]);L.send(V.body||null)})}W.r(de),W.d(de,{default:()=>Q})},2799:function(mt,de,W){var Q;mt=W.nmd(mt),function(se){"object"==typeof global&&global;var L,R=2147483647,D=36,ie=/^xn--/,Ve=/[^\x20-\x7E]/,Re=/[\x2E\u3002\uFF0E\uFF61]/g,Ye={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},pt=Math.floor,Nt=String.fromCharCode;function je(b){throw RangeError(Ye[b])}function G(b,C){for(var j=b.length,T=[];j--;)T[j]=C(b[j]);return T}function H(b,C){var j=b.split("@"),T="";return j.length>1&&(T=j[0]+"@",b=j[1]),T+G((b=b.replace(Re,".")).split("."),C).join(".")}function S(b){for(var z,Fe,C=[],j=0,T=b.length;j=55296&&z<=56319&&j65535&&(j+=Nt((C-=65536)>>>10&1023|55296),C=56320|1023&C),j+Nt(C)}).join("")}function w(b){return b-48<10?b-22:b-65<26?b-65:b-97<26?b-97:D}function c(b,C){return b+22+75*(b<26)-((0!=C)<<5)}function p(b,C,j){var T=0;for(b=j?pt(b/700):b>>1,b+=pt(b/C);b>455;T+=D)b=pt(b/35);return pt(T+36*b/(b+38))}function m(b){var T,Me,et,St,bt,Rt,Gt,Kt,_n,Tn,C=[],j=b.length,z=0,Fe=128,Le=72;for((Me=b.lastIndexOf("-"))<0&&(Me=0),et=0;et=128&&je("not-basic"),C.push(b.charCodeAt(et));for(St=Me>0?Me+1:0;St=j&&je("invalid-input"),((Kt=w(b.charCodeAt(St++)))>=D||Kt>pt((R-z)/Rt))&&je("overflow"),z+=Kt*Rt,!(Kt<(_n=Gt<=Le?1:Gt>=Le+26?26:Gt-Le));Gt+=D)Rt>pt(R/(Tn=D-_n))&&je("overflow"),Rt*=Tn;Le=p(z-bt,T=C.length+1,0==bt),pt(z/T)>R-Fe&&je("overflow"),Fe+=pt(z/T),z%=T,C.splice(z++,0,Fe)}return g(C)}function I(b){var C,j,T,z,Fe,Le,Me,et,St,bt,Rt,Kt,_n,Tn,Pn,Gt=[];for(Kt=(b=S(b)).length,C=128,j=0,Fe=72,Le=0;Le=C&&Rtpt((R-j)/(_n=T+1))&&je("overflow"),j+=(Me-C)*_n,C=Me,Le=0;LeR&&je("overflow"),Rt==C){for(et=j,St=D;!(et<(bt=St<=Fe?1:St>=Fe+26?26:St-Fe));St+=D)Gt.push(Nt(c(bt+(Pn=et-bt)%(Tn=D-bt),0))),et=pt(Pn/Tn);Gt.push(Nt(c(et,0))),Fe=p(j,_n,T==z),j=0,++T}++j,++C}return Gt.join("")}L={version:"1.3.2",ucs2:{decode:S,encode:g},decode:m,encode:I,toASCII:function(b){return H(b,function(C){return Ve.test(C)?"xn--"+I(C):C})},toUnicode:function(b){return H(b,function(C){return ie.test(C)?m(C.slice(4).toLowerCase()):C})}},void 0!==(Q=function(){return L}.call(de,W,de,mt))&&(mt.exports=Q)}()},3176:(mt,de,W)=>{"use strict";var se=W(2799),V=W(1751);function ee(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}de.Qc=ut;var Ie=/^([a-z0-9.+-]+:)/i,L=/:[0-9]*$/,R=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,le=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),pe=["'"].concat(le),he=["%","/","?",";","#"].concat(pe),ue=["/","?","#"],fe=/^[+a-z0-9A-Z_-]{0,63}$/,ce=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ie={javascript:!0,"javascript:":!0},Ve={javascript:!0,"javascript:":!0},Re={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Ye=W(6085);function ut(je,G,H){if(je&&V.isObject(je)&&je instanceof ee)return je;var S=new ee;return S.parse(je,G,H),S}ee.prototype.parse=function(je,G,H){if(!V.isString(je))throw new TypeError("Parameter 'url' must be a string, not "+typeof je);var S=je.indexOf("?"),g=-1!==S&&S127?St+="x":St+=et[bt];if(!St.match(fe)){var Gt=Le.slice(0,C),Kt=Le.slice(C+1),_n=et.match(ce);_n&&(Gt.push(_n[1]),Kt.unshift(_n[2])),Kt.length&&(p="/"+Kt.join(".")+p),this.hostname=Gt.join(".");break}}}this.hostname=this.hostname.length>255?"":this.hostname.toLowerCase(),Fe||(this.hostname=se.toASCII(this.hostname)),this.host=(this.hostname||"")+(this.port?":"+this.port:""),this.href+=this.host,Fe&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==p[0]&&(p="/"+p))}if(!ie[d])for(C=0,Me=pe.length;C0)&&H.host.split("@"))&&(H.auth=St.shift(),H.host=H.hostname=St.shift())),H.search=je.search,H.query=je.query,(!V.isNull(H.pathname)||!V.isNull(H.search))&&(H.path=(H.pathname?H.pathname:"")+(H.search?H.search:"")),H.href=H.format(),H;if(!Le.length)return H.pathname=null,H.path=H.search?"/"+H.search:null,H.href=H.format(),H;for(var bt=Le.slice(-1)[0],Rt=(H.host||je.host||Le.length>1)&&("."===bt||".."===bt)||""===bt,Gt=0,Kt=Le.length;Kt>=0;Kt--)"."===(bt=Le[Kt])?Le.splice(Kt,1):".."===bt?(Le.splice(Kt,1),Gt++):Gt&&(Le.splice(Kt,1),Gt--);if(!z&&!Fe)for(;Gt--;Gt)Le.unshift("..");z&&""!==Le[0]&&(!Le[0]||"/"!==Le[0].charAt(0))&&Le.unshift(""),Rt&&"/"!==Le.join("/").substr(-1)&&Le.push("");var St,_n=""===Le[0]||Le[0]&&"/"===Le[0].charAt(0);return et&&(H.hostname=H.host=_n?"":Le.length?Le.shift():"",(St=!!(H.host&&H.host.indexOf("@")>0)&&H.host.split("@"))&&(H.auth=St.shift(),H.host=H.hostname=St.shift())),(z=z||H.host&&Le.length)&&!_n&&Le.unshift(""),Le.length?H.pathname=Le.join("/"):(H.pathname=null,H.path=null),(!V.isNull(H.pathname)||!V.isNull(H.search))&&(H.path=(H.pathname?H.pathname:"")+(H.search?H.search:"")),H.auth=je.auth||H.auth,H.slashes=H.slashes||je.slashes,H.href=H.format(),H},ee.prototype.parseHost=function(){var je=this.host,G=L.exec(je);G&&(":"!==(G=G[0])&&(this.port=G.substr(1)),je=je.substr(0,je.length-G.length)),je&&(this.hostname=je)}},1751:mt=>{"use strict";mt.exports={isString:function(de){return"string"==typeof de},isObject:function(de){return"object"==typeof de&&null!==de},isNull:function(de){return null===de},isNullOrUndefined:function(de){return null==de}}},4516:(mt,de,W)=>{"use strict";function Q(e){return"function"==typeof e}function se(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const V=se(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function ee(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class Ie{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const o of n)o.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(Q(r))try{r()}catch(o){t=o instanceof V?o.errors:[o]}const{_teardowns:i}=this;if(i){this._teardowns=null;for(const o of i)try{D(o)}catch(s){t=null!=t?t:[],s instanceof V?t=[...t,...s.errors]:t.push(s)}}if(t)throw new V(t)}}add(t){var n;if(t&&t!==this)if(this.closed)D(t);else{if(t instanceof Ie){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(n=this._teardowns)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&ee(n,t)}remove(t){const{_teardowns:n}=this;n&&ee(n,t),t instanceof Ie&&t._removeParent(this)}}Ie.EMPTY=(()=>{const e=new Ie;return e.closed=!0,e})();const L=Ie.EMPTY;function R(e){return e instanceof Ie||e&&"closed"in e&&Q(e.remove)&&Q(e.add)&&Q(e.unsubscribe)}function D(e){Q(e)?e():e.unsubscribe()}const le={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},pe={setTimeout(...e){const{delegate:t}=pe;return((null==t?void 0:t.setTimeout)||setTimeout)(...e)},clearTimeout(e){const{delegate:t}=pe;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function he(e){pe.setTimeout(()=>{const{onUnhandledError:t}=le;if(!t)throw e;t(e)})}function ue(){}const we=ie("C",void 0,void 0);function ie(e,t,n){return{kind:e,value:t,error:n}}let Ve=null;function Re(e){if(le.useDeprecatedSynchronousErrorHandling){const t=!Ve;if(t&&(Ve={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=Ve;if(Ve=null,n)throw r}}else e()}class ut extends Ie{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,R(t)&&t.add(this)):this.destination=G}static create(t,n,r){return new pt(t,n,r)}next(t){this.isStopped?je(ie("N",t,void 0),this):this._next(t)}error(t){this.isStopped?je(ie("E",void 0,t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?je(we,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}class pt extends ut{constructor(t,n,r){let i;if(super(),Q(t))i=t;else if(t){let o;({next:i,error:n,complete:r}=t),this&&le.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe()):o=t,i=null==i?void 0:i.bind(o),n=null==n?void 0:n.bind(o),r=null==r?void 0:r.bind(o)}this.destination={next:i?Nt(i):ue,error:Nt(null!=n?n:Mt),complete:r?Nt(r):ue}}}function Nt(e,t){return(...n)=>{try{e(...n)}catch(r){le.useDeprecatedSynchronousErrorHandling?function(e){le.useDeprecatedSynchronousErrorHandling&&Ve&&(Ve.errorThrown=!0,Ve.error=e)}(r):he(r)}}}function Mt(e){throw e}function je(e,t){const{onStoppedNotification:n}=le;n&&pe.setTimeout(()=>n(e,t))}const G={closed:!0,next:ue,error:Mt,complete:ue},H="function"==typeof Symbol&&Symbol.observable||"@@observable";function S(e){return e}let c=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,i){const o=function(e){return e&&e instanceof ut||function(e){return e&&Q(e.next)&&Q(e.error)&&Q(e.complete)}(e)&&R(e)}(n)?n:new pt(n,r,i);return Re(()=>{const{operator:s,source:u}=this;o.add(s?s.call(o,u):u?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=p(r))((i,o)=>{let s;s=this.subscribe(u=>{try{n(u)}catch(l){o(l),null==s||s.unsubscribe()}},o,i)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[H](){return this}pipe(...n){return function(e){return 0===e.length?S:1===e.length?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}(n)(this)}toPromise(n){return new(n=p(n))((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=t=>new e(t),e})();function p(e){var t;return null!==(t=null!=e?e:le.Promise)&&void 0!==t?t:Promise}const d=se(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let y=(()=>{class e extends c{constructor(){super(),this.closed=!1,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new b(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new d}next(n){Re(()=>{if(this._throwIfClosed(),!this.isStopped){const r=this.observers.slice();for(const i of r)i.next(n)}})}error(n){Re(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Re(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:i,observers:o}=this;return r||i?L:(o.push(n),new Ie(()=>ee(o,n)))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){const n=new c;return n.source=this,n}}return e.create=(t,n)=>new b(t,n),e})();class b extends y{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:L}}function C(e){return Q(null==e?void 0:e.lift)}function j(e){return t=>{if(C(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}class T extends ut{constructor(t,n,r,i,o){super(t),this.onFinalize=o,this._next=n?function(s){try{n(s)}catch(u){t.error(u)}}:super._next,this._error=i?function(s){try{i(s)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(s){t.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}function z(e,t){return j((n,r)=>{let i=0;n.subscribe(new T(r,o=>{r.next(e.call(t,o,i++))}))})}function k(e){return this instanceof k?(this.v=e,this):new k(e)}function be(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(e,t||[]),o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(q){r[q]&&(i[q]=function(ae){return new Promise(function(Te,qe){o.push([q,ae,Te,qe])>1||u(q,ae)})})}function u(q,ae){try{!function(q){q.value instanceof k?Promise.resolve(q.value.v).then(_,P):$(o[0][2],q)}(r[q](ae))}catch(Te){$(o[0][3],Te)}}function _(q){u("next",q)}function P(q){u("throw",q)}function $(q,ae){q(ae),o.shift(),o.length&&u(o[0][0],o[0][1])}}function lt(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(u,l){!function(o,s,u,l){Promise.resolve(l).then(function(_){o({value:_,done:u})},s)}(u,l,(s=e[o](s)).done,s.value)})}}}const Pe=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function De(e){return Q(null==e?void 0:e.then)}function Be(e){return Q(e[H])}function vt(e){return Symbol.asyncIterator&&Q(null==e?void 0:e[Symbol.asyncIterator])}function _e(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const B="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function F(e){return Q(null==e?void 0:e[B])}function M(e){return be(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:i}=yield k(n.read());if(i)return yield k(void 0);yield yield k(r)}}finally{n.releaseLock()}})}function U(e){return Q(null==e?void 0:e.getReader)}function K(e){if(e instanceof c)return e;if(null!=e){if(Be(e))return function(e){return new c(t=>{const n=e[H]();if(Q(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Pe(e))return function(e){return new c(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,he)})}(e);if(vt(e))return ct(e);if(F(e))return function(e){return new c(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(U(e))return function(e){return ct(M(e))}(e)}throw _e(e)}function ct(e){return new c(t=>{(function(e,t){var n,r,i,o;return function(e,t,n,r){return new(n||(n=Promise))(function(o,s){function u(P){try{_(r.next(P))}catch($){s($)}}function l(P){try{_(r.throw(P))}catch($){s($)}}function _(P){P.done?o(P.value):function(o){return o instanceof n?o:new n(function(s){s(o)})}(P.value).then(u,l)}_((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(n=lt(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function Ct(e,t,n,r=0,i=!1){const o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function Dt(e,t,n=1/0){return Q(t)?Dt((r,i)=>z((o,s)=>t(r,o,i,s))(K(e(r,i))),n):("number"==typeof t&&(n=t),j((r,i)=>function(e,t,n,r,i,o,s,u){const l=[];let _=0,P=0,$=!1;const q=()=>{$&&!l.length&&!_&&t.complete()},ae=qe=>_{_++;let Ue=!1;K(n(qe,P++)).subscribe(new T(t,_t=>{t.next(_t)},()=>{Ue=!0},void 0,()=>{if(Ue)try{for(_--;l.length&&_{$=!0,q()})),()=>{}}(r,i,e,n)))}function jt(e=1/0){return Dt(S,e)}const on=new c(e=>e.complete());function kn(e){return e[e.length-1]}function qn(e){return function(e){return e&&Q(e.schedule)}(kn(e))?e.pop():void 0}function mr(e,t=0){return j((n,r)=>{n.subscribe(new T(r,i=>Ct(r,e,()=>r.next(i),t),()=>Ct(r,e,()=>r.complete(),t),i=>Ct(r,e,()=>r.error(i),t)))})}function vi(e,t=0){return j((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Ze(e,t){if(!e)throw new Error("Iterable cannot be null");return new c(n=>{Ct(n,t,()=>{const r=e[Symbol.asyncIterator]();Ct(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function gt(e,t){return t?function(e,t){if(null!=e){if(Be(e))return function(e,t){return K(e).pipe(vi(t),mr(t))}(e,t);if(Pe(e))return function(e,t){return new c(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(De(e))return function(e,t){return K(e).pipe(vi(t),mr(t))}(e,t);if(vt(e))return Ze(e,t);if(F(e))return function(e,t){return new c(n=>{let r;return Ct(n,t,()=>{r=e[B](),Ct(n,t,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){return void n.error(s)}o?n.complete():n.next(i)},0,!0)}),()=>Q(null==r?void 0:r.return)&&r.return()})}(e,t);if(U(e))return function(e,t){return Ze(M(e),t)}(e,t)}throw _e(e)}(e,t):K(e)}function Ft(e){return e<=0?()=>on:j((t,n)=>{let r=0;t.subscribe(new T(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function nn(e,t,...n){return!0===t?(e(),null):!1===t?null:t(...n).pipe(Ft(1)).subscribe(()=>e())}function Ut(e){for(let t in e)if(e[t]===Ut)return t;throw Error("Could not find renamed property on target object.")}function Yt(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Yt).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function or(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Xr=Ut({__forward_ref__:Ut});function Vo(e){return e.__forward_ref__=Vo,e.toString=function(){return Yt(this())},e}function Wt(e){return function(e){return"function"==typeof e&&e.hasOwnProperty(Xr)&&e.__forward_ref__===Vo}(e)?e():e}class me extends Error{constructor(t,n){super(function(e,t){return`${e?`NG0${e}: `:""}${t}`}(t,n)),this.code=t}}function N(e){return"string"==typeof e?e:null==e?"":String(e)}function re(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():N(e)}function st(e,t){const n=t?` in ${t}`:"";throw new me("201",`No provider for ${re(e)} found${n}`)}function Tr(e,t){null==e&&function(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function un(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function jr(e){return{providers:e.providers||[],imports:e.imports||[]}}function Wr(e){return zs(e,Gs)||zs(e,Uc)}function zs(e,t){return e.hasOwnProperty(t)?e[t]:null}function ed(e){return e&&(e.hasOwnProperty(jc)||e.hasOwnProperty(ty))?e[jc]:null}const Gs=Ut({\u0275prov:Ut}),jc=Ut({\u0275inj:Ut}),Uc=Ut({ngInjectableDef:Ut}),ty=Ut({ngInjectorDef:Ut});var rn=(()=>((rn=rn||{})[rn.Default=0]="Default",rn[rn.Host=1]="Host",rn[rn.Self=2]="Self",rn[rn.SkipSelf=4]="SkipSelf",rn[rn.Optional=8]="Optional",rn))();let $c;function vo(e){const t=$c;return $c=e,t}function Bc(e,t,n){const r=Wr(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&rn.Optional?null:void 0!==t?t:void st(Yt(e),"Injector")}function Zi(e){return{toString:e}.toString()}var ai=(()=>((ai=ai||{})[ai.OnPush=0]="OnPush",ai[ai.Default=1]="Default",ai))(),pr=(()=>((pr=pr||{})[pr.Emulated=0]="Emulated",pr[pr.None=2]="None",pr[pr.ShadowDom=3]="ShadowDom",pr))();const ry="undefined"!=typeof globalThis&&globalThis,nd="undefined"!=typeof window&&window,iy="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Bn=ry||"undefined"!=typeof global&&global||nd||iy,Ho={},Vn=[],Ws=Ut({\u0275cmp:Ut}),zo=Ut({\u0275dir:Ut}),tr=Ut({\u0275pipe:Ut}),Vc=Ut({\u0275mod:Ut}),ar=Ut({\u0275loc:Ut}),ui=Ut({\u0275fac:Ut}),Zn=Ut({__NG_ELEMENT_ID__:Ut});let ei=0;function Lt(e){return Zi(()=>{const n={},r={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===ai.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Vn,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||pr.Emulated,id:"c",styles:e.styles||Vn,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,o=e.features,s=e.pipes;return r.id+=ei++,r.inputs=Gc(e.inputs,n),r.outputs=Gc(e.outputs),o&&o.forEach(u=>u(r)),r.directiveDefs=i?()=>("function"==typeof i?i():i).map(Hc):null,r.pipeDefs=s?()=>("function"==typeof s?s():s).map(cu):null,r})}function Hc(e){return Fr(e)||function(e){return e[zo]||null}(e)}function cu(e){return function(e){return e[tr]||null}(e)}const zc={};function Mi(e){return Zi(()=>{const t={type:e.type,bootstrap:e.bootstrap||Vn,declarations:e.declarations||Vn,imports:e.imports||Vn,exports:e.exports||Vn,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(zc[e.id]=e.type),t})}function Gc(e,t){if(null==e)return Ho;const n={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}const xr=Lt;function Fr(e){return e[Ws]||null}function ti(e,t){const n=e[Vc]||null;if(!n&&!0===t)throw new Error(`Type ${Yt(e)} does not have '\u0275mod' property.`);return n}function wi(e){return Array.isArray(e)&&"object"==typeof e[1]}function li(e){return Array.isArray(e)&&!0===e[1]}function du(e){return 0!=(8&e.flags)}function Qs(e){return 2==(2&e.flags)}function Js(e){return 1==(1&e.flags)}function fi(e){return null!==e.template}function ud(e){return 0!=(512&e[2])}function Io(e,t){return e.hasOwnProperty(ui)?e[ui]:null}class Kc{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Yc(e){return e.type.prototype.ngOnChanges&&(e.setInput=fd),ld}function ld(){const e=Jc(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===Ho)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function fd(e,t,n,r){const i=Jc(e)||function(e,t){return e[Qc]=t}(e,{previous:Ho,current:null}),o=i.current||(i.current={}),s=i.previous,u=this.declaredInputs[n],l=s[u];o[u]=new Kc(l&&l.currentValue,t,s===Ho),e[r]=t}const Qc="__ngSimpleChanges__";function Jc(e){return e[Qc]||null}const qo="http://www.w3.org/2000/svg";let nr;function Xn(e){return!!e.listen}const Zs={createRenderer:(e,t)=>void 0!==nr?nr:"undefined"!=typeof document?document:void 0};function cr(e){for(;Array.isArray(e);)e=e[0];return e}function di(e,t){return cr(t[e.index])}function ri(e,t){const n=t[e];return wi(n)?n:n[0]}function vu(e){return 128==(128&e[2])}function Do(e,t){return null==t?null:e[t]}function ys(e){e[18]=0}function tl(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const dn={lFrame:al(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function yd(){return dn.bindingsEnabled}function Et(){return dn.lFrame.lView}function Rn(){return dn.lFrame.tView}function gr(){let e=nl();for(;null!==e&&64===e.type;)e=e.parent;return e}function nl(){return dn.lFrame.currentTNode}function Br(e,t){const n=dn.lFrame;n.currentTNode=e,n.isParent=t}function _s(){return dn.lFrame.isParent}function _u(){dn.lFrame.isParent=!1}function ea(){return dn.isInCheckNoChangesMode}function ta(e){dn.isInCheckNoChangesMode=e}function vd(e,t){const n=dn.lFrame;n.bindingIndex=n.bindingRootIndex=e,na(t)}function na(e){dn.lFrame.currentDirectiveIndex=e}function Cu(e){dn.lFrame.currentQueryIndex=e}function wd(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function ol(e,t,n){if(n&rn.SkipSelf){let i=t,o=e;for(;!(i=i.parent,null!==i||n&rn.Host||(i=wd(o),null===i||(o=o[15],10&i.type))););if(null===i)return!1;t=i,e=o}const r=dn.lFrame=sl();return r.currentTNode=t,r.lView=e,!0}function ia(e){const t=sl(),n=e[1];dn.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function sl(){const e=dn.lFrame,t=null===e?null:e.child;return null===t?al(e):t}function al(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function ul(){const e=dn.lFrame;return dn.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const cl=ul;function oa(){const e=ul();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function kr(){return dn.lFrame.selectedIndex}function Ni(e){dn.lFrame.selectedIndex=e}function sa(){dn.lFrame.currentNamespace=qo}function Cr(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[l]<0&&(e[18]+=65536),(u>11>16&&(3&e[2])===t){e[2]+=2048;try{o.call(u)}finally{}}}else try{o.call(u)}finally{}}class ua{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function ot(e,t,n){const r=Xn(e);let i=0;for(;it){s=o-1;break}}}for(;o>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let Vt=!0;function cn(e){const t=Vt;return Vt=e,t}let ii=0;function Iu(e,t){const n=Ad(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Id(r.data,e),Id(t,null),Id(r.blueprint,null));const i=hl(e,t),o=e.injectorIndex;if(rt(i)){const s=yt(i),u=Tt(i,t),l=u[1].data;for(let _=0;_<8;_++)t[o+_]=u[s+_]|l[s+_]}return t[o+8]=i,o}function Id(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ad(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function hl(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;null!==i;){const o=i[1],s=o.type;if(r=2===s?o.declTNode:1===s?i[6]:null,null===r)return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function pl(e,t,n){!function(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Zn)&&(r=n[Zn]),null==r&&(r=n[Zn]=ii++);const i=255&r;t.data[e+(i>>5)]|=1<=0?255&t:kC:t}(n);if("function"==typeof o){if(!ol(t,e,r))return r&rn.Host?Oy(i,n,r):My(t,n,r,i);try{const s=o(r);if(null!=s||r&rn.Optional)return s;st(n)}finally{cl()}}else if("number"==typeof o){let s=null,u=Ad(e,t),l=-1,_=r&rn.Host?t[16][6]:null;for((-1===u||r&rn.SkipSelf)&&(l=-1===u?hl(e,t):t[u+8],-1!==l&&Ly(r,!1)?(s=t[1],u=yt(l),t=Tt(l,t)):u=-1);-1!==u;){const P=t[1];if(ky(o,u,P.data)){const $=LC(u,t,n,s,r,_);if($!==Ny)return $}l=t[u+8],-1!==l&&Ly(r,t[1].data[u+8]===_)&&ky(o,u,t)?(s=P,u=yt(l),t=Tt(l,t)):u=-1}}}return My(t,n,r,i)}const Ny={};function kC(){return new ca(gr(),Et())}function LC(e,t,n,r,i,o){const s=t[1],u=s.data[e+8],P=function(e,t,n,r,i){const o=e.providerIndexes,s=t.data,u=1048575&o,l=e.directiveStart,P=o>>20,q=i?u+P:e.directiveEnd;for(let ae=r?u:u+P;ae=l&&Te.type===n)return ae}if(i){const ae=s[l];if(ae&&fi(ae)&&ae.type===n)return l}return null}(u,s,n,null==r?Qs(u)&&Vt:r!=s&&0!=(3&u.type),i&rn.Host&&o===u);return null!==P?Au(t,s,P,u):Ny}function Au(e,t,n,r){let i=e[n];const o=t.data;if(function(e){return e instanceof ua}(i)){const s=i;s.resolving&&function(e,t){throw new me("200",`Circular dependency in DI detected for ${e}`)}(re(o[n]));const u=cn(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?vo(s.injectImpl):null;ol(e,r,rn.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){const s=Yc(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{null!==l&&vo(l),cn(u),s.resolving=!1,cl()}}return i}function ky(e,t,n){return!!(n[t+(e>>5)]&1<{const r=function(e){return function(...n){if(e){const r=e(...n);for(const i in r)this[i]=r[i]}}}(t);function i(...o){if(this instanceof i)return r.apply(this,o),this;const s=new i(...o);return u.annotation=s,u;function u(l,_,P){const $=l.hasOwnProperty(fa)?l[fa]:Object.defineProperty(l,fa,{value:[]})[fa];for(;$.length<=P;)$.push(null);return($[P]=$[P]||[]).push(s),l}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}class jn{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=un({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const VC=new jn("AnalyzeForEntryComponents"),yl=Function;function eo(e,t){e.forEach(n=>Array.isArray(n)?eo(n,t):t(n))}function vl(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function bs(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ko(e,t){const n=[];for(let r=0;r ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let u=t[s];o.push(s+":"+("string"==typeof u?JSON.stringify(u):Yt(u)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(ZC,"\n ")}`}("\n"+e.message,i,n,r),e.ngTokenPath=i,e[pa]=null,e}const ya=Mu(ws("Inject",e=>({token:e})),-1),oi=Mu(ws("Optional"),8),Yo=Mu(ws("SkipSelf"),4),um="__ngContext__";function Vr(e,t){e[um]=t}function Hd(e){const t=function(e){return e[um]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Il(e){return e.ngOriginalError}function KE(e,...t){e.error(...t)}class Ss{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),r=this._findContext(t),i=(e=t)&&e.ngErrorLogger||KE;var e;i(this._console,"ERROR",t),n&&i(this._console,"ORIGINAL ERROR",n),r&&i(this._console,"ERROR CONTEXT",r)}_findContext(t){return t?t.ngDebugContext||this._findContext(Il(t)):null}_findOriginalError(t){let n=t&&Il(t);for(;n&&Il(n);)n=Il(n);return n||null}}const mm=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Bn))();function ro(e){return e instanceof Function?e():e}var gi=(()=>((gi=gi||{})[gi.Important=1]="Important",gi[gi.DashCase=2]="DashCase",gi))();function Wd(e,t){return undefined(e,t)}function Uu(e){const t=e[3];return li(t)?t[3]:t}function qd(e){return Cm(e[13])}function Kd(e){return Cm(e[4])}function Cm(e){for(;null!==e&&!li(e);)e=e[4];return e}function wa(e,t,n,r,i){if(null!=r){let o,s=!1;li(r)?o=r:wi(r)&&(s=!0,r=r[0]);const u=cr(r);0===e&&null!==n?null==i?Tm(t,n,u):Is(t,n,u,i||null,!0):1===e&&null!==n?Is(t,n,u,i||null,!0):2===e?function(e,t,n){const r=Dl(e,t);r&&function(e,t,n,r){Xn(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}(t,u,s):3===e&&t.destroyNode(u),null!=o&&function(e,t,n,r,i){const o=n[7];o!==cr(n)&&wa(t,e,r,o,i);for(let u=10;u0&&(e[n-1][4]=r[4]);const o=bs(e,10+t);!function(e,t){$u(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);const s=o[19];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function Im(e,t){if(!(256&t[2])){const n=t[11];Xn(n)&&n.destroyNode&&$u(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return Zd(e[1],e);for(;t;){let n=null;if(wi(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)wi(t)&&Zd(t[1],t),t=t[3];null===t&&(t=e),wi(t)&&Zd(t[1],t),n=t&&t[4]}t=n}}(t)}}function Zd(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[i=_]():r[i=-_].unsubscribe(),o+=2}else{const s=r[i=n[o+1]];n[o].call(s)}if(null!==r){for(let o=i+1;oo?"":i[$+1].toLowerCase();const ae=8&r?q:null;if(ae&&-1!==jm(ae,_,0)||2&r&&_!==q){if(Li(r))return!1;s=!0}}}}else{if(!s&&!Li(r)&&!Li(l))return!1;if(s&&Li(l))continue;s=!1,r=l|1&r}}return Li(r)||s}function Li(e){return 0==(1&e)}function ES(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let o=!1;for(;i-1)for(n++;n0?'="'+u+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!Li(s)&&(t+=Vm(o,i),i=""),r=s,o=o||!Li(r);n++}return""!==i&&(t+=Vm(o,i)),t}const mn={};function zm(e,t,n,r){if(!r)if(3==(3&t[2])){const o=e.preOrderCheckHooks;null!==o&&Er(t,o,n)}else{const o=e.preOrderHooks;null!==o&&bn(t,o,0,n)}Ni(n)}function ev(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r20&&zm(e,t,20,ea()),n(r,i)}finally{Ni(o)}}function rv(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Ml(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Ml(e,t,n,r,i,o,s,u,l,_){const P=20+r,$=P+i,q=function(e,t){const n=[];for(let r=0;r0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(u)!=l&&u.push(l),u.push(r,i,s)}}function lv(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function fv(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function eI(e,t,n){if(n){if(t.exportAs)for(let r=0;r0&&mh(n)}}function mh(e){for(let r=qd(e);null!==r;r=Kd(r))for(let i=10;i0&&mh(o)}const n=e[1].components;if(null!==n)for(let r=0;r0&&mh(i)}}function aI(e,t){const n=ri(t,e),r=n[1];(function(e,t){for(let n=t.length;nPromise.resolve(null))();function yv(e){return e[7]||(e[7]=[])}function mv(e){return e.cleanup||(e.cleanup=[])}function _v(e,t){const n=e[9],r=n?n.get(Ss,null):null;r&&r.handleError(t)}function Fo(e,t,n){const r=function(e,t){return cr(t[e])}(t,e);!function(e,t,n){Xn(e)?e.setValue(t,n):t.textContent=n}(e[11],r,n)}function Nl(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(null!==t)for(let s=0;sthis.processProvider(u,t,n)),eo([t],u=>this.processInjectorType(u,[],o)),this.records.set(Sa,Ia(void 0,this));const s=this.records.get(Hu);this.scope=null!=s?s.value:null,this.source=i||("object"==typeof t?null:Yt(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,n=Ru,r=rn.Default){this.assertNotDestroyed();const i=ga(this),o=vo(void 0);try{if(!(r&rn.SkipSelf)){let u=this.records.get(t);if(void 0===u){const l=("function"==typeof(e=t)||"object"==typeof e&&e instanceof jn)&&Wr(t);u=l&&this.injectableDefInScope(l)?Ia(Eh(t),zu):null,this.records.set(t,u)}if(null!=u)return this.hydrate(t,u)}return(r&rn.Self?Cv():this.parent).get(t,n=r&rn.Optional&&n===Ru?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[pa]=s[pa]||[]).unshift(Yt(t)),i)throw s;return Hy(s,t,"R3InjectorError",this.source)}throw s}finally{vo(o),ga(i)}var e}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((r,i)=>t.push(Yt(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,n,r){if(!(t=Wt(t)))return!1;let i=ed(t);const o=null==i&&t.ngModule||void 0,s=void 0===o?t:o,u=-1!==r.indexOf(s);if(void 0!==o&&(i=ed(o)),null==i)return!1;if(null!=i.imports&&!u){let P;r.push(s);try{eo(i.imports,$=>{this.processInjectorType($,n,r)&&(void 0===P&&(P=[]),P.push($))})}finally{}if(void 0!==P)for(let $=0;$this.processProvider(Te,q,ae||Vn))}}this.injectorDefTypes.add(s);const l=Io(s)||(()=>new s);this.records.set(s,Ia(l,zu));const _=i.providers;if(null!=_&&!u){const P=t;eo(_,$=>this.processProvider($,P,_))}return void 0!==o&&void 0!==t.providers}processProvider(t,n,r){let i=Aa(t=Wt(t))?t:Wt(t&&t.provide);const o=Iv(e=t)?Ia(void 0,e.useValue):Ia(function(e,t,n){let r;if(Aa(e)){const i=Wt(e);return Io(i)||Eh(i)}if(Iv(e))r=()=>Wt(e.useValue);else if(function(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Cs(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))r=()=>$t(Wt(e.useExisting));else{const i=Wt(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Io(i)||Eh(i);r=()=>new i(...Cs(e.deps))}return r}(e),zu);var e;if(Aa(t)||!0!==t.multi)this.records.get(i);else{let s=this.records.get(i);s||(s=Ia(void 0,zu,!0),s.factory=()=>Cs(s.multi),this.records.set(i,s)),i=t,s.multi.push(t)}this.records.set(i,o)}hydrate(t,n){return n.value===zu&&(n.value=gI,n.value=n.factory()),"object"==typeof n.value&&n.value&&null!==(e=n.value)&&"object"==typeof e&&"function"==typeof e.ngOnDestroy&&this.onDestroy.add(n.value),n.value;var e}injectableDefInScope(t){if(!t.providedIn)return!1;const n=Wt(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function Eh(e){const t=Wr(e),n=null!==t?t.factory:Io(e);if(null!==n)return n;if(e instanceof jn)throw new Error(`Token ${Yt(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const r=Ko(t,"?");throw new Error(`Can't resolve all parameters for ${Yt(e)}: (${r.join(", ")}).`)}const n=function(e){const t=e&&(e[Gs]||e[Uc]);if(t){const n=function(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function Ia(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Iv(e){return null!==e&&"object"==typeof e&&Md in e}function Aa(e){return"function"==typeof e}const Av=function(e,t,n){return function(e,t=null,n=null,r){const i=Ev(e,t,n,r);return i._resolveInjectorDefTypes(),i}({name:n},t,e,n)};let Gn=(()=>{class e{static create(n,r){return Array.isArray(n)?Av(n,r,""):Av(n.providers,n.parent,n.name||"")}}return e.THROW_IF_NOT_FOUND=Ru,e.NULL=new bv,e.\u0275prov=un({token:e,providedIn:"any",factory:()=>$t(Sa)}),e.__NG_ELEMENT_ID__=-1,e})();function jI(e,t){Cr(Hd(e)[1],gr())}let kl=null;function Da(){if(!kl){const e=Bn.Symbol;if(e&&e.iterator)kl=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;nu(cr(Jt[r.index])):r.index;if(Xn(n)){let Jt=null;if(!u&&l&&(Jt=function(e,t,n,r){const i=e.cleanup;if(null!=i)for(let o=0;ol?u[l]:null}"string"==typeof s&&(o+=2)}return null}(e,t,i,r.index)),null!==Jt)(Jt.__ngLastListenerFn__||Jt).__ngNextListenerFn__=o,Jt.__ngLastListenerFn__=o,ae=!1;else{o=jh(r,t,$,o,!1);const Dn=n.listen(_t,i,o);q.push(o,Dn),P&&P.push(i,zt,at,at+1)}}else o=jh(r,t,$,o,!0),_t.addEventListener(i,o,s),q.push(o),P&&P.push(i,zt,at,s)}else o=jh(r,t,$,o,!1);const Te=r.outputs;let qe;if(ae&&null!==Te&&(qe=Te[i])){const Ue=qe.length;if(Ue)for(let _t=0;_t((Ht=Ht||{})[Ht.LocaleId=0]="LocaleId",Ht[Ht.DayPeriodsFormat=1]="DayPeriodsFormat",Ht[Ht.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ht[Ht.DaysFormat=3]="DaysFormat",Ht[Ht.DaysStandalone=4]="DaysStandalone",Ht[Ht.MonthsFormat=5]="MonthsFormat",Ht[Ht.MonthsStandalone=6]="MonthsStandalone",Ht[Ht.Eras=7]="Eras",Ht[Ht.FirstDayOfWeek=8]="FirstDayOfWeek",Ht[Ht.WeekendRange=9]="WeekendRange",Ht[Ht.DateFormat=10]="DateFormat",Ht[Ht.TimeFormat=11]="TimeFormat",Ht[Ht.DateTimeFormat=12]="DateTimeFormat",Ht[Ht.NumberSymbols=13]="NumberSymbols",Ht[Ht.NumberFormats=14]="NumberFormats",Ht[Ht.CurrencyCode=15]="CurrencyCode",Ht[Ht.CurrencySymbol=16]="CurrencySymbol",Ht[Ht.CurrencyName=17]="CurrencyName",Ht[Ht.Currencies=18]="Currencies",Ht[Ht.Directionality=19]="Directionality",Ht[Ht.PluralCase=20]="PluralCase",Ht[Ht.ExtraData=21]="ExtraData",Ht))();const Bl="en-US";let u0=Bl;function zh(e){Tr(e,"Expected localeId to be defined"),"string"==typeof e&&(u0=e.toLowerCase().replace(/_/g,"-"))}class M0{}const N0="ngComponent";class dT{resolveComponentFactory(t){throw function(e){const t=Error(`No component factory found for ${Yt(e)}. Did you add it to @NgModule.entryComponents?`);return t[N0]=e,t}(t)}}let Ps=(()=>{class e{}return e.NULL=new dT,e})();function Wl(...e){}function Ba(e,t){return new Ke(di(e,t))}const gT=function(){return Ba(gr(),Et())};let Ke=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=gT,e})();class ql{}let Zh=(()=>{class e{}return e.\u0275prov=un({token:e,providedIn:"root",factory:()=>null}),e})();class Yl{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const L0=new Yl("12.2.13");class j0{constructor(){}supports(t){return Wu(t)}create(t){return new bT(t)}}const wT=(e,t)=>t;class bT{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||wT}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,i=0,o=null;for(;n||r;){const s=!r||n&&n.currentIndex<$0(r,i,o)?n:r,u=$0(s,i,o),l=s.currentIndex;if(s===r)i--,r=r._nextRemoved;else if(n=n._next,null==s.previousIndex)i++;else{o||(o=[]);const _=u-i,P=l-i;if(_!=P){for(let q=0;q<_;q++){const ae=q{s=this._trackByFn(i,u),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,u,s,i)),Object.is(n.item,u)||this._addIdentityChange(n,u)):(n=this._mismatch(n,u,s,i),r=!0),n=n._next,i++}),this.length=i;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,i){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,o,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,o,i)):t=this._addAfter(new CT(n,r),o,i),t}_verifyReinsertion(t,n,r,i){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==o?t=this._reinsertAfter(o,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,o=t._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const i=null===n?this._itHead:n._next;return t._next=i,t._prev=n,null===i?this._itTail=t:i._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new U0),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new U0),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class CT{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class ET{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class U0{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new ET,this.map.set(n,r)),r.add(t)}get(t,n){const i=this.map.get(t);return i?i.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function $0(e,t,n){const r=e.previousIndex;if(null===r)return r;let i=0;return n&&r{if(n&&n.key===i)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const o=this._getOrCreateRecordForKey(i,r);n=this._insertBeforeOrAppend(n,o)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,n);const o=i._prev,s=i._next;return o&&(o._next=s),s&&(s._prev=o),i._next=null,i._prev=null,i}const r=new IT(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class IT{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function V0(){return new ec([new j0])}let ec=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||V0()),deps:[[e,new Yo,new oi]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(null!=r)return r;throw new Error(`Cannot find a differ supporting object '${n}' of type '${function(e){return e.name||typeof e}(n)}'`)}}return e.\u0275prov=un({token:e,providedIn:"root",factory:V0}),e})();function H0(){return new Va([new B0])}let Va=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||H0()),deps:[[e,new Yo,new oi]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(r)return r;throw new Error(`Cannot find a differ supporting object '${n}'`)}}return e.\u0275prov=un({token:e,providedIn:"root",factory:H0}),e})();function Ql(e,t,n,r,i=!1){for(;null!==n;){const o=t[n.index];if(null!==o&&r.push(cr(o)),li(o))for(let u=10;u-1&&(Jd(t,r),bs(n,r))}this._attachedToViewContainer=!1}Im(this._lView[1],this._lView)}onDestroy(t){!function(e,t,n,r){const i=yv(t);null===n?i.push(r):(i.push(n),e.firstCreatePass&&mv(e).push(r,i.length-1))}(this._lView[1],this._lView,null,t)}markForCheck(){vh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){wh(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){ta(!0);try{wh(e,t,n)}finally{ta(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,$u(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class DT extends tc{constructor(t){super(t),this._view=t}detectChanges(){gv(this._view)}checkNoChanges(){!function(e){ta(!0);try{gv(e)}finally{ta(!1)}}(this._view)}get context(){return null}}const xT=function(e){return function(e,t,n){if(Qs(e)&&!n){const r=ri(e.index,t);return new tc(r,r)}return 47&e.type?new tc(t[16],t):null}(gr(),Et(),16==(16&e))};let Xe=(()=>{class e{}return e.__NG_ELEMENT_ID__=xT,e})();const OT=[new B0],FT=new ec([new j0]),NT=new Va(OT);class lo{}class z0{}const VT=function(){return function(e,t){let n;const r=t[e.index];if(li(r))n=r;else{let i;if(8&e.type)i=cr(r);else{const o=t[11];i=o.createComment("");const s=di(e,t);Is(o,Dl(o,s),i,function(e,t){return Xn(e)?e.nextSibling(t):t.nextSibling}(o,s),!1)}t[e.index]=n=function(e,t,n,r){return new Array(e,!0,!1,t,null,0,r,n,null,null)}(r,t,i,e),Fl(t,n)}return new G0(n,e,t)}(gr(),Et())};let Hi=(()=>{class e{}return e.__NG_ELEMENT_ID__=VT,e})();const zT=Hi,G0=class extends zT{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Ba(this._hostTNode,this._hostLView)}get injector(){return new ca(this._hostTNode,this._hostLView)}get parentInjector(){const t=hl(this._hostTNode,this._hostLView);if(rt(t)){const n=Tt(t,this._hostLView),r=yt(t);return new ca(n[1].data[r+8],n)}return new ca(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=W0(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,r){const i=t.createEmbeddedView(n||{});return this.insert(i,r),i}createComponent(t,n,r,i,o){const s=r||this.parentInjector;if(!o&&null==t.ngModule&&s){const l=s.get(lo,null);l&&(o=l)}const u=t.create(s,i,void 0,o);return this.insert(u.hostView,n),u}insert(t,n){const r=t._lView,i=r[1];if(li(r[3])){const P=this.indexOf(t);if(-1!==P)this.detach(P);else{const $=r[3],q=new G0($,$[6],$[3]);q.detach(q.indexOf(t))}}const o=this._adjustIndex(n),s=this._lContainer;!function(e,t,n,r){const i=10+r,o=n.length;r>0&&(n[i-1][4]=t),rmm});class gw extends M0{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=t.selectors.map(TS).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return pw(this.componentDef.inputs)}get outputs(){return pw(this.componentDef.outputs)}create(t,n,r,i){const o=(i=i||this.ngModule)?function(e,t){return{get:(n,r,i)=>{const o=e.get(n,Wa,i);return o!==Wa||r===Wa?o:t.get(n,r,i)}}}(t,i.injector):t,s=o.get(ql,Zs),u=o.get(Zh,null),l=s.createRenderer(null,this.componentDef),_=this.componentDef.selectors[0][0]||"div",P=r?function(e,t,n){if(Xn(e))return e.selectRootElement(t,n===pr.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(l,r,this.componentDef.encapsulation):Qd(s.createRenderer(null,this.componentDef),_,function(e){const t=e.toLowerCase();return"svg"===t?qo:"math"===t?"http://www.w3.org/1998/MathML/":null}(_)),$=this.componentDef.onPush?576:528,q=function(e,t){return{components:[],scheduler:e||mm,clean:dI,playerHandler:t||null,flags:0}}(),ae=Ml(0,null,null,1,0,null,null,null,null,null),Te=Bu(null,ae,q,$,null,null,s,l,u,o);let qe,Ue;ia(Te);try{const _t=function(e,t,n,r,i,o){const s=n[1];n[20]=e;const l=ba(s,20,2,"#host",null),_=l.mergedAttrs=t.hostAttrs;null!==_&&(Nl(l,_,!0),null!==e&&(ot(i,e,_),null!==l.classes&&nh(i,e,l.classes),null!==l.styles&&Lm(i,e,l.styles)));const P=r.createRenderer(e,t),$=Bu(n,rv(t),null,t.onPush?64:16,n[20],l,r,P,o||null,null);return s.firstCreatePass&&(pl(Iu(l,n),s,t.type),fv(s,l),dv(l,n.length,1)),Fl(n,$),n[20]=$}(P,this.componentDef,Te,s,l);if(P)if(r)ot(l,P,["ng-version",L0.full]);else{const{attrs:at,classes:zt}=function(e){const t=[],n=[];let r=1,i=2;for(;r0&&nh(l,P,zt.join(" "))}if(Ue=function(e,t){return e.data[t]}(ae,20),void 0!==n){const at=Ue.projection=[];for(let zt=0;ztl(s,t)),t.contentQueries){const l=gr();t.contentQueries(1,s,l.directiveStart)}const u=gr();return!o.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Ni(u.index),cv(n[1],u,0,u.directiveStart,u.directiveEnd,t),lv(t,s)),s}(_t,this.componentDef,Te,q,[jI]),Vu(ae,Te,null)}finally{oa()}return new Hx(this.componentType,qe,Ba(Ue,Te),Te,Ue)}}class Hx extends class{}{constructor(t,n,r,i,o){super(),this.location=r,this._rootLView=i,this._tNode=o,this.instance=n,this.hostView=this.changeDetectorRef=new DT(i),this.componentType=t}get injector(){return new ca(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const qa=new Map;class Wx extends lo{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new hw(this);const r=ti(t),i=t[ar]||null;i&&zh(i),this._bootstrapComponents=ro(r.bootstrap),this._r3Injector=Ev(t,n,[{provide:lo,useValue:this},{provide:Ps,useValue:this.componentFactoryResolver}],Yt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=Gn.THROW_IF_NOT_FOUND,r=rn.Default){return t===Gn||t===lo||t===Sa?this:this._r3Injector.get(t,n,r)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class dp extends z0{constructor(t){super(),this.moduleType=t,null!==ti(t)&&function(e){const t=new Set;!function n(r){const i=ti(r,!0),o=i.id;null!==o&&(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${Yt(t)} vs ${Yt(t.name)}`)}(o,qa.get(o),r),qa.set(o,r));const s=ro(i.imports);for(const u of s)t.has(u)||(t.add(u),n(u))}(e)}(t)}create(t){return new Wx(this.moduleType,t)}}function hp(e){return t=>{setTimeout(e,void 0,t)}}const Ti=class extends y{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){var i,o,s;let u=t,l=n||(()=>null),_=r;if(t&&"object"==typeof t){const $=t;u=null===(i=$.next)||void 0===i?void 0:i.bind($),l=null===(o=$.error)||void 0===o?void 0:o.bind($),_=null===(s=$.complete)||void 0===s?void 0:s.bind($)}this.__isAsync&&(l=hp(l),u&&(u=hp(u)),_&&(_=hp(_)));const P=super.subscribe({next:u,error:l,complete:_});return t instanceof Ie&&t.add(P),P}};Symbol;const hc=new jn("Application Initializer");let Ya=(()=>{class e{constructor(n){this.appInits=n,this.resolve=Wl,this.reject=Wl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{o.subscribe({complete:u,error:l})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)($t(hc,8))},e.\u0275prov=un({token:e,factory:e.\u0275fac}),e})();const pc=new jn("AppId"),KP={provide:pc,useFactory:function(){return`${Dp()}${Dp()}${Dp()}`},deps:[]};function Dp(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Gw=new jn("Platform Initializer"),Tp=new jn("Platform ID"),Ww=new jn("appBootstrapListener");let sf=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=un({token:e,factory:e.\u0275fac}),e})();const Xo=new jn("LocaleId"),qw=new jn("DefaultCurrencyCode");class QP{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}const xp=function(e){return new dp(e)},JP=xp,ZP=function(e){return Promise.resolve(xp(e))},Kw=function(e){const t=xp(e),r=ro(ti(e).declarations).reduce((i,o)=>{const s=Fr(o);return s&&i.push(new gw(s)),i},[]);return new QP(t,r)},XP=Kw,eR=function(e){return Promise.resolve(Kw(e))};let Ms=(()=>{class e{constructor(){this.compileModuleSync=JP,this.compileModuleAsync=ZP,this.compileModuleAndAllComponentsSync=XP,this.compileModuleAndAllComponentsAsync=eR}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=un({token:e,factory:e.\u0275fac}),e})();const rR=(()=>Promise.resolve(0))();function Pp(e){"undefined"==typeof Zone?rR.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class We{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ti(!1),this.onMicrotaskEmpty=new Ti(!1),this.onStable=new Ti(!1),this.onError=new Ti(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let e=Bn.requestAnimationFrame,t=Bn.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Bn,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Op(e),e.isCheckStableRunning=!0,Rp(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Op(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,u)=>{try{return Yw(e),n.invokeTask(i,o,s,u)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&t(),Qw(e)}},onInvoke:(n,r,i,o,s,u,l)=>{try{return Yw(e),n.invoke(i,o,s,u,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),Qw(e)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,Op(e),Rp(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,r,i,o)=>(n.handleError(i,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!We.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(We.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,oR,Wl,Wl);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const oR={};function Rp(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Op(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Yw(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Qw(e){e._nesting--,Rp(e)}class uR{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ti,this.onMicrotaskEmpty=new Ti,this.onStable=new Ti,this.onError=new Ti}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,i){return t.apply(n,r)}}let Mp=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{We.assertNotInAngularZone(),Pp(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Pp(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:o,updateCb:i})}whenStable(n,r,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,r,i){return[]}}return e.\u0275fac=function(n){return new(n||e)($t(We))},e.\u0275prov=un({token:e,factory:e.\u0275fac}),e})(),Jw=(()=>{class e{constructor(){this._applications=new Map,Fp.addToWindow(this)}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return Fp.findTestabilityInTree(this,n,r)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=un({token:e,factory:e.\u0275fac}),e})();class cR{addToWindow(t){}findTestabilityInTree(t,n,r){return null}}let Fp=new cR,Zw=!0,Xw=!1;let Wi;const tb=new jn("AllowMultipleToken");class Np{constructor(t,n){this.name=t,this.token=n}}function nb(e,t,n=[]){const r=`Platform: ${t}`,i=new jn(r);return(o=[])=>{let s=rb();if(!s||s.injector.get(tb,!1))if(e)e(n.concat(o).concat({provide:i,useValue:!0}));else{const u=n.concat(o).concat({provide:i,useValue:!0},{provide:Hu,useValue:"platform"});!function(e){if(Wi&&!Wi.destroyed&&!Wi.injector.get(tb,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Wi=e.get(ib);const t=e.get(Gw,null);t&&t.forEach(n=>n())}(Gn.create({providers:u,name:r}))}return function(e){const t=rb();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(i)}}function rb(){return Wi&&!Wi.destroyed?Wi:null}let ib=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const u=function(e,t){let n;return n="noop"===e?new uR:("zone.js"===e?void 0:e)||new We({enableLongStackTrace:(Xw=!0,Zw),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),l=[{provide:We,useValue:u}];return u.run(()=>{const _=Gn.create({providers:l,parent:this.injector,name:n.moduleType.name}),P=n.create(_),$=P.injector.get(Ss,null);if(!$)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return u.runOutsideAngular(()=>{const q=u.onError.subscribe({next:ae=>{$.handleError(ae)}});P.onDestroy(()=>{kp(this._modules,P),q.unsubscribe()})}),function(e,t,n){try{const r=n();return Ul(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}($,u,()=>{const q=P.injector.get(Ya);return q.runInitializers(),q.donePromise.then(()=>(zh(P.injector.get(Xo,Bl)||Bl),this._moduleDoBootstrap(P),P))})})}bootstrapModule(n,r=[]){const i=ob({},r);return function(e,t,n){const r=new dp(n);return Promise.resolve(r)}(0,0,n).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(n){const r=n.injector.get(Qa);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!n.instance.ngDoBootstrap)throw new Error(`The module ${Yt(n.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)($t(Gn))},e.\u0275prov=un({token:e,factory:e.\u0275fac}),e})();function ob(e,t){return Array.isArray(t)?t.reduce(ob,e):Object.assign(Object.assign({},e),t)}let Qa=(()=>{class e{constructor(n,r,i,o,s){this._zone=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const u=new c(_=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{_.next(this._stable),_.complete()})}),l=new c(_=>{let P;this._zone.runOutsideAngular(()=>{P=this._zone.onStable.subscribe(()=>{We.assertNotInAngularZone(),Pp(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,_.next(!0))})})});const $=this._zone.onUnstable.subscribe(()=>{We.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{_.next(!1)}))});return()=>{P.unsubscribe(),$.unsubscribe()}});this.isStable=function(...e){const t=qn(e),n=function(e,t){return"number"==typeof kn(e)?e.pop():1/0}(e),r=e;return r.length?1===r.length?K(r[0]):jt(n)(gt(r,t)):on}(u,l.pipe(function(e={}){const{connector:t=(()=>new y),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=e;return o=>{let s=null,u=null,l=null,_=0,P=!1,$=!1;const q=()=>{null==u||u.unsubscribe(),u=null},ae=()=>{q(),s=l=null,P=$=!1},Te=()=>{const qe=s;ae(),null==qe||qe.unsubscribe()};return j((qe,Ue)=>{_++,!$&&!P&&q();const _t=l=null!=l?l:t();Ue.add(()=>{_--,0===_&&!$&&!P&&(u=nn(Te,i))}),_t.subscribe(Ue),s||(s=new pt({next:at=>_t.next(at),error:at=>{$=!0,q(),u=nn(ae,n,at),_t.error(at)},complete:()=>{P=!0,q(),u=nn(ae,r),_t.complete()}}),gt(qe).subscribe(s))})(o)}}()))}bootstrap(n,r){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let i;i=n instanceof M0?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(i.componentType);const o=function(e){return e.isBoundToModule}(i)?void 0:this._injector.get(lo),u=i.create(Gn.NULL,[],r||i.selector,o),l=u.location.nativeElement,_=u.injector.get(Mp,null),P=_&&u.injector.get(Jw);return _&&P&&P.registerApplication(l,_),u.onDestroy(()=>{this.detachView(u.hostView),kp(this.components,u),P&&P.unregisterApplication(l)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;kp(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(Ww,[]).concat(this._bootstrapListeners).forEach(i=>i(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)($t(We),$t(Gn),$t(Ss),$t(Ps),$t(Ya))},e.\u0275prov=un({token:e,factory:e.\u0275fac}),e})();function kp(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class uf{}class SR{}const IR={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let AR=(()=>{class e{constructor(n,r){this._compiler=n,this._config=r||IR}load(n){return this.loadAndCompile(n)}loadAndCompile(n){let[r,i]=n.split("#");return void 0===i&&(i="default"),W(8255)(r).then(o=>o[i]).then(o=>cb(o,r,i)).then(o=>this._compiler.compileModuleAsync(o))}loadFactory(n){let[r,i]=n.split("#"),o="NgFactory";return void 0===i&&(i="default",o=""),W(8255)(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(s=>s[i+o]).then(s=>cb(s,r,i))}}return e.\u0275fac=function(n){return new(n||e)($t(Ms),$t(SR,8))},e.\u0275prov=un({token:e,factory:e.\u0275fac}),e})();function cb(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}const kR=nb(null,"core",[{provide:Tp,useValue:"unknown"},{provide:ib,deps:[Gn]},{provide:Jw,deps:[]},{provide:sf,deps:[]}]),BR=[{provide:Qa,useClass:Qa,deps:[We,Gn,Ss,Ps,Ya]},{provide:$x,deps:[We],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}},{provide:Ya,useClass:Ya,deps:[[new oi,hc]]},{provide:Ms,useClass:Ms,deps:[]},KP,{provide:ec,useFactory:function(){return FT},deps:[]},{provide:Va,useFactory:function(){return NT},deps:[]},{provide:Xo,useFactory:function(e){return zh(e=e||"undefined"!=typeof $localize&&$localize.locale||Bl),e},deps:[[new ya(Xo),new oi,new Yo]]},{provide:qw,useValue:"USD"}];let HR=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)($t(Qa))},e.\u0275mod=Mi({type:e}),e.\u0275inj=jr({providers:BR}),e})(),vf=null;function ts(){return vf}const _r=new jn("DocumentToken");let ks=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=un({factory:VO,token:e,providedIn:"platform"}),e})();function VO(){return $t(Mb)}const HO=new jn("Location Initialized");let Mb=(()=>{class e extends ks{constructor(n){super(),this._doc=n,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ts().getBaseHref(this._doc)}onPopState(n){const r=ts().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=ts().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(n){this.location.pathname=n}pushState(n,r,i){Fb()?this._history.pushState(n,r,i):this.location.hash=i}replaceState(n,r,i){Fb()?this._history.replaceState(n,r,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return e.\u0275fac=function(n){return new(n||e)($t(_r))},e.\u0275prov=un({factory:zO,token:e,providedIn:"platform"}),e})();function Fb(){return!!window.history.pushState}function zO(){return new Mb($t(_r))}function Jp(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function Nb(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function jo(e){return e&&"?"!==e[0]?"?"+e:e}let Xa=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=un({factory:GO,token:e,providedIn:"root"}),e})();function GO(e){const t=$t(_r).location;return new kb($t(ks),t&&t.origin||"")}const _f=new jn("appBaseHref");let kb=(()=>{class e extends Xa{constructor(n,r){if(super(),this._platformLocation=n,this._removeListenerFns=[],null==r&&(r=this._platformLocation.getBaseHrefFromDOM()),null==r)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=r}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Jp(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+jo(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${r}${i}`:r}pushState(n,r,i,o){const s=this.prepareExternalUrl(i+jo(o));this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){const s=this.prepareExternalUrl(i+jo(o));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(n=0){var r,i;null===(i=(r=this._platformLocation).historyGo)||void 0===i||i.call(r,n)}}return e.\u0275fac=function(n){return new(n||e)($t(ks),$t(_f,8))},e.\u0275prov=un({token:e,factory:e.\u0275fac}),e})(),WO=(()=>{class e extends Xa{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=Jp(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,i,o){let s=this.prepareExternalUrl(i+jo(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){let s=this.prepareExternalUrl(i+jo(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(n=0){var r,i;null===(i=(r=this._platformLocation).historyGo)||void 0===i||i.call(r,n)}}return e.\u0275fac=function(n){return new(n||e)($t(ks),$t(_f,8))},e.\u0275prov=un({token:e,factory:e.\u0275fac}),e})(),wf=(()=>{class e{constructor(n,r){this._subject=new Ti,this._urlChangeListeners=[],this._platformStrategy=n;const i=this._platformStrategy.getBaseHref();this._platformLocation=r,this._baseHref=Nb(Lb(i)),this._platformStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}path(n=!1){return this.normalize(this._platformStrategy.path(n))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+jo(r))}normalize(n){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,Lb(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._platformStrategy.prepareExternalUrl(n)}go(n,r="",i=null){this._platformStrategy.pushState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+jo(r)),i)}replaceState(n,r="",i=null){this._platformStrategy.replaceState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+jo(r)),i)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(n=0){var r,i;null===(i=(r=this._platformStrategy).historyGo)||void 0===i||i.call(r,n)}onUrlChange(n){this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}))}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(i=>i(n,r))}subscribe(n,r,i){return this._subject.subscribe({next:n,error:r,complete:i})}}return e.\u0275fac=function(n){return new(n||e)($t(Xa),$t(ks))},e.normalizeQueryParams=jo,e.joinWithSlash=Jp,e.stripTrailingSlash=Nb,e.\u0275prov=un({factory:qO,token:e,providedIn:"root"}),e})();function qO(){return new wf($t(Xa),$t(ks))}function Lb(e){return e.replace(/\/index.html$/,"")}var wr=(()=>((wr=wr||{})[wr.Zero=0]="Zero",wr[wr.One=1]="One",wr[wr.Two=2]="Two",wr[wr.Few=3]="Few",wr[wr.Many=4]="Many",wr[wr.Other=5]="Other",wr))();const tM=function(e){return function(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=a0(t);if(n)return n;const r=t.split("-")[0];if(n=a0(r),n)return n;if("en"===r)return fD;throw new Error(`Missing locale data for the locale "${e}".`)}(e)[Ht.PluralCase]};class Pf{}let PM=(()=>{class e extends Pf{constructor(n){super(),this.locale=n}getPluralCategory(n,r){switch(tM(r||this.locale)(n)){case wr.Zero:return"zero";case wr.One:return"one";case wr.Two:return"two";case wr.Few:return"few";case wr.Many:return"many";default:return"other"}}}return e.\u0275fac=function(n){return new(n||e)($t(Xo))},e.\u0275prov=un({token:e,factory:e.\u0275fac}),e})(),l2=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Mi({type:e}),e.\u0275inj=jr({providers:[{provide:Pf,useClass:PM}]}),e})();let Jb=(()=>{class e{}return e.\u0275prov=un({token:e,providedIn:"root",factory:()=>new p2($t(_r),window)}),e})();class p2{constructor(t,n){this.document=t,this.window=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const n=function(e,t){const n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow)){const r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let i=r.currentNode;for(;i;){const o=i.shadowRoot;if(o){const s=o.getElementById(t)||o.querySelector(`[name="${t}"]`);if(s)return s}i=r.nextNode()}}return null}(this.document,t);n&&(this.scrollToElement(n),this.attemptFocus(n))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const n=this.window.history;n&&n.scrollRestoration&&(n.scrollRestoration=t)}}scrollToElement(t){const n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,i=n.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(r-o[0],i-o[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=Zb(this.window.history)||Zb(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function Zb(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class lg extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){var e;e=new lg,vf||(vf=e)}onAndCancel(t,n,r){return t.addEventListener(n,r,!1),()=>{t.removeEventListener(n,r,!1)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=(bc=bc||document.querySelector("base"),bc?bc.getAttribute("href"):null);return null==n?null:function(e){Rf=Rf||document.createElement("a"),Rf.setAttribute("href",e);const t=Rf.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){bc=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[i,o]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}(document.cookie,t)}}let Rf,bc=null;const Xb=new jn("TRANSITION_ID"),b2=[{provide:hc,useFactory:function(e,t,n){return()=>{n.get(Ya).donePromise.then(()=>{const r=ts(),i=t.querySelectorAll(`style[ng-transition="${e}"]`);for(let o=0;o{const o=t.findTestabilityInTree(r,i);if(null==o)throw new Error("Could not find testability for element.");return o},Bn.getAllAngularTestabilities=()=>t.getAllTestabilities(),Bn.getAllAngularRootElements=()=>t.getAllRootElements(),Bn.frameworkStabilizers||(Bn.frameworkStabilizers=[]),Bn.frameworkStabilizers.push(r=>{const i=Bn.getAllAngularTestabilities();let o=i.length,s=!1;const u=function(l){s=s||l,o--,0==o&&r(s)};i.forEach(function(l){l.whenStable(u)})})}findTestabilityInTree(t,n,r){if(null==n)return null;const i=t.getTestability(n);return null!=i?i:r?ts().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null}}let C2=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=un({token:e,factory:e.\u0275fac}),e})();const Cc=new jn("EventManagerPlugins");let Mf=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(i=>i.manager=this),this._plugins=n.slice().reverse()}addEventListener(n,r,i){return this._findPluginFor(r).addEventListener(n,r,i)}addGlobalEventListener(n,r,i){return this._findPluginFor(r).addGlobalEventListener(n,r,i)}getZone(){return this._zone}_findPluginFor(n){const r=this._eventNameToPlugin.get(n);if(r)return r;const i=this._plugins;for(let o=0;o{class e{constructor(){this._stylesSet=new Set}addStyles(n){const r=new Set;n.forEach(i=>{this._stylesSet.has(i)||(this._stylesSet.add(i),r.add(i))}),this.onStylesAdded(r)}onStylesAdded(n){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=un({token:e,factory:e.\u0275fac}),e})(),Ec=(()=>{class e extends t1{constructor(n){super(),this._doc=n,this._hostNodes=new Map,this._hostNodes.set(n.head,[])}_addStylesToHost(n,r,i){n.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,i.push(r.appendChild(s))})}addHost(n){const r=[];this._addStylesToHost(this._stylesSet,n,r),this._hostNodes.set(n,r)}removeHost(n){const r=this._hostNodes.get(n);r&&r.forEach(n1),this._hostNodes.delete(n)}onStylesAdded(n){this._hostNodes.forEach((r,i)=>{this._addStylesToHost(n,i,r)})}ngOnDestroy(){this._hostNodes.forEach(n=>n.forEach(n1))}}return e.\u0275fac=function(n){return new(n||e)($t(_r))},e.\u0275prov=un({token:e,factory:e.\u0275fac}),e})();function n1(e){ts().remove(e)}const hg={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},pg=/%COMP%/g;function Ff(e,t,n){for(let r=0;r{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let gg=(()=>{class e{constructor(n,r,i){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new yg(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;switch(r.encapsulation){case pr.Emulated:{let i=this.rendererByCompId.get(r.id);return i||(i=new L2(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,i)),i.applyToHost(n),i}case 1:case pr.ShadowDom:return new j2(this.eventManager,this.sharedStylesHost,n,r);default:if(!this.rendererByCompId.has(r.id)){const i=Ff(r.id,r.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(n){return new(n||e)($t(Mf),$t(Ec),$t(pc))},e.\u0275prov=un({token:e,factory:e.\u0275fac}),e})();class yg{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,n){return n?document.createElementNS(hg[n]||n,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,n){t.appendChild(n)}insertBefore(t,n,r){t&&t.insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?document.querySelector(t):t;if(!r)throw new Error(`The selector "${t}" did not match any elements`);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,i){if(i){n=i+":"+n;const o=hg[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const i=hg[r];i?t.removeAttributeNS(i,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,i){i&(gi.DashCase|gi.Important)?t.style.setProperty(n,r,i&gi.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&gi.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,n,o1(r)):this.eventManager.addEventListener(t,n,o1(r))}}class L2 extends yg{constructor(t,n,r,i){super(t),this.component=r;const o=Ff(i+"-"+r.id,r.styles,[]);n.addStyles(o),this.contentAttr="_ngcontent-%COMP%".replace(pg,i+"-"+r.id),this.hostAttr="_nghost-%COMP%".replace(pg,i+"-"+r.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}class j2 extends yg{constructor(t,n,r,i){super(t),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=Ff(i.id,i.styles,[]);for(let s=0;s{class e extends dg{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i){return n.addEventListener(r,i,!1),()=>this.removeEventListener(n,r,i)}removeEventListener(n,r,i){return n.removeEventListener(r,i)}}return e.\u0275fac=function(n){return new(n||e)($t(_r))},e.\u0275prov=un({token:e,factory:e.\u0275fac}),e})();const u1=["alt","control","meta","shift"],W2={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},c1={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},q2={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let K2=(()=>{class e extends dg{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,i){const o=e.parseEventName(r),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ts().onAndCancel(n,o.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const o=e._normalizeKey(r.pop());let s="";if(u1.forEach(l=>{const _=r.indexOf(l);_>-1&&(r.splice(_,1),s+=l+".")}),s+=o,0!=r.length||0===o.length)return null;const u={};return u.domEventName=i,u.fullKey=s,u}static getEventFullKey(n){let r="",i=function(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&c1.hasOwnProperty(t)&&(t=c1[t]))}return W2[t]||t}(n);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),u1.forEach(o=>{o!=i&&q2[o](n)&&(r+=o+".")}),r+=i,r}static eventCallback(n,r,i){return o=>{e.getEventFullKey(o)===n&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){switch(n){case"esc":return"escape";default:return n}}}return e.\u0275fac=function(n){return new(n||e)($t(_r))},e.\u0275prov=un({token:e,factory:e.\u0275fac}),e})();const nF=nb(kR,"browser",[{provide:Tp,useValue:"browser"},{provide:Gw,useValue:function(){lg.makeCurrent(),fg.init()},multi:!0},{provide:_r,useFactory:function(){return e=document,nr=e,document;var e},deps:[]}]),rF=[[],{provide:Hu,useValue:"root"},{provide:Ss,useFactory:function(){return new Ss},deps:[]},{provide:Cc,useClass:U2,multi:!0,deps:[_r,We,Tp]},{provide:Cc,useClass:K2,multi:!0,deps:[_r]},[],{provide:gg,useClass:gg,deps:[Mf,Ec,pc]},{provide:ql,useExisting:gg},{provide:t1,useExisting:Ec},{provide:Ec,useClass:Ec,deps:[_r]},{provide:Mp,useClass:Mp,deps:[We]},{provide:Mf,useClass:Mf,deps:[Cc,We]},{provide:class{},useClass:C2,deps:[]},[]];let iF=(()=>{class e{constructor(n){if(n)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(n){return{ngModule:e,providers:[{provide:pc,useValue:n.appId},{provide:Xb,useExisting:pc},b2]}}}return e.\u0275fac=function(n){return new(n||e)($t(e,12))},e.\u0275mod=Mi({type:e}),e.\u0275inj=jr({providers:rF,imports:[l2,HR]}),e})();function Sn(...e){return gt(e,qn(e))}"undefined"!=typeof window&&window;class Ji extends y{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}const{isArray:dF}=Array,{getPrototypeOf:hF,prototype:pF,keys:gF}=Object;const{isArray:vF}=Array;function f1(e){return z(t=>function(e,t){return vF(t)?e(...t):e(t)}(e,t))}function bF(...e){const t=qn(e),n=function(e){return Q(kn(e))?e.pop():void 0}(e),{args:r,keys:i}=function(e){if(1===e.length){const t=e[0];if(dF(t))return{args:t,keys:null};if(function(e){return e&&"object"==typeof e&&hF(e)===pF}(t)){const n=gF(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}(e);if(0===r.length)return gt([],t);const o=new c(function(e,t,n=S){return r=>{d1(t,()=>{const{length:i}=e,o=new Array(i);let s=i,u=i;for(let l=0;l{const _=gt(e[l],t);let P=!1;_.subscribe(new T(r,$=>{o[l]=$,P||(P=!0,u--),u||r.next(n(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,t,i?s=>function(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}(i,s):S));return n?o.pipe(f1(n)):o}function d1(e,t,n){e?Ct(n,e,t):t()}const Nf=se(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function bg(...e){return jt(1)(gt(e,qn(e)))}function h1(e){return new c(t=>{K(e()).subscribe(t)})}function p1(){return j((e,t)=>{let n=null;e._refCount++;const r=new T(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(n=null);const i=e._connection,o=n;n=null,i&&(!o||i===o)&&i.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}class SF extends c{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,C(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,null==t||t.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new Ie;const n=this.getSubject();t.add(this.source.subscribe(new T(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Ie.EMPTY)}return t}refCount(){return p1()(this)}}function Ls(e,t){return j((n,r)=>{let i=null,o=0,s=!1;const u=()=>s&&!i&&r.complete();n.subscribe(new T(r,l=>{null==i||i.unsubscribe();let _=0;const P=o++;K(e(l,P)).subscribe(i=new T(r,$=>r.next(t?t(l,$,P,_++):$),()=>{i=null,u()}))},()=>{s=!0,u()}))})}function AF(e,t,n,r,i){return(o,s)=>{let u=n,l=t,_=0;o.subscribe(new T(s,P=>{const $=_++;l=u?e(l,P,$):(u=!0,P),r&&s.next(l)},i&&(()=>{u&&s.next(l),s.complete()})))}}function g1(e,t){return j(AF(e,t,arguments.length>=2,!0))}function eu(e,t){return j((n,r)=>{let i=0;n.subscribe(new T(r,o=>e.call(t,o,i++)&&r.next(o)))})}function rs(e){return j((t,n)=>{let o,r=null,i=!1;r=t.subscribe(new T(n,void 0,void 0,s=>{o=K(e(s,rs(e)(t))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function Sc(e,t){return Q(t)?Dt(e,t,1):Dt(e,1)}function Cg(e){return e<=0?()=>on:j((t,n)=>{let r=[];t.subscribe(new T(n,i=>{r.push(i),e{for(const i of r)n.next(i);n.complete()},void 0,()=>{r=null}))})}function y1(e=DF){return j((t,n)=>{let r=!1;t.subscribe(new T(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(e())))})}function DF(){return new Nf}function m1(e){return j((t,n)=>{let r=!1;t.subscribe(new T(n,i=>{r=!0,n.next(i)},()=>{r||n.next(e),n.complete()}))})}function tu(e,t){const n=arguments.length>=2;return r=>r.pipe(e?eu((i,o)=>e(i,o,r)):S,Ft(1),n?m1(t):y1(()=>new Nf))}function mi(e,t,n){const r=Q(e)||t||n?{next:e,error:t,complete:n}:e;return r?j((i,o)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let u=!0;i.subscribe(new T(o,l=>{var _;null===(_=r.next)||void 0===_||_.call(r,l),o.next(l)},()=>{var l;u=!1,null===(l=r.complete)||void 0===l||l.call(r),o.complete()},l=>{var _;u=!1,null===(_=r.error)||void 0===_||_.call(r,l),o.error(l)},()=>{var l,_;u&&(null===(l=r.unsubscribe)||void 0===l||l.call(r)),null===(_=r.finalize)||void 0===_||_.call(r)}))}):S}class $o{constructor(t,n){this.id=t,this.url=n}}class Eg extends $o{constructor(t,n,r="imperative",i=null){super(t,n),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ic extends $o{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class v1 extends $o{constructor(t,n,r){super(t,n),this.reason=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class PF extends $o{constructor(t,n,r){super(t,n),this.error=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class RF extends $o{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class OF extends $o{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class MF extends $o{constructor(t,n,r,i,o){super(t,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class FF extends $o{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class NF extends $o{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _1{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class w1{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class kF{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class LF{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jF{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class UF{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class b1{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const xn="primary";class $F{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function nu(e){return new $F(e)}const C1="ngNavigationCancelingError";function Sg(e){const t=Error("NavigationCancelingError: "+e);return t[C1]=!0,t}function VF(e,t,n){const r=n.path.split("/");if(r.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||r.lengthr[o]===i)}return e===t}function S1(e){return Array.prototype.concat.apply([],e)}function I1(e){return e.length>0?e[e.length-1]:null}function Lr(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function ho(e){return Lh(e)?e:Ul(e)?gt(Promise.resolve(e)):Sn(e)}const GF={exact:function T1(e,t,n){if(!Us(e.segments,t.segments)||!kf(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children)if(!e.children[r]||!T1(e.children[r],t.children[r],n))return!1;return!0},subset:x1},A1={exact:function(e,t){return fo(e,t)},subset:function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>E1(e[n],t[n]))},ignored:()=>!0};function D1(e,t,n){return GF[n.paths](e.root,t.root,n.matrixParams)&&A1[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function x1(e,t,n){return P1(e,t,t.segments,n)}function P1(e,t,n,r){if(e.segments.length>n.length){const i=e.segments.slice(0,n.length);return!(!Us(i,n)||t.hasChildren()||!kf(i,n,r))}if(e.segments.length===n.length){if(!Us(e.segments,n)||!kf(e.segments,n,r))return!1;for(const i in t.children)if(!e.children[i]||!x1(e.children[i],t.children[i],r))return!1;return!0}{const i=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!!(Us(e.segments,i)&&kf(e.segments,i,r)&&e.children[xn])&&P1(e.children[xn],t,o,r)}}function kf(e,t,n){return t.every((r,i)=>A1[n](e[i].parameters,r.parameters))}class js{constructor(t,n,r){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=nu(this.queryParams)),this._queryParamMap}toString(){return QF.serialize(this)}}class Nn{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Lr(n,(r,i)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Lf(this)}}class Ac{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=nu(this.parameters)),this._parameterMap}toString(){return F1(this)}}function Us(e,t){return e.length===t.length&&e.every((n,r)=>n.path===t[r].path)}class Ig{}class R1{parse(t){const n=new oN(t);return new js(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){var e;return`${`/${Dc(t.root,!0)}`}${function(e){const t=Object.keys(e).map(n=>{const r=e[n];return Array.isArray(r)?r.map(i=>`${jf(n)}=${jf(i)}`).join("&"):`${jf(n)}=${jf(r)}`}).filter(n=>!!n);return t.length?`?${t.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const QF=new R1;function Lf(e){return e.segments.map(t=>F1(t)).join("/")}function Dc(e,t){if(!e.hasChildren())return Lf(e);if(t){const n=e.children[xn]?Dc(e.children[xn],!1):"",r=[];return Lr(e.children,(i,o)=>{o!==xn&&r.push(`${o}:${Dc(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function(e,t){let n=[];return Lr(e.children,(r,i)=>{i===xn&&(n=n.concat(t(r,i)))}),Lr(e.children,(r,i)=>{i!==xn&&(n=n.concat(t(r,i)))}),n}(e,(r,i)=>i===xn?[Dc(e.children[xn],!1)]:[`${i}:${Dc(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[xn]?`${Lf(e)}/${n[0]}`:`${Lf(e)}/(${n.join("//")})`}}function O1(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function jf(e){return O1(e).replace(/%3B/gi,";")}function Ag(e){return O1(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Uf(e){return decodeURIComponent(e)}function M1(e){return Uf(e.replace(/\+/g,"%20"))}function F1(e){return`${Ag(e.path)}${function(e){return Object.keys(e).map(t=>`;${Ag(t)}=${Ag(e[t])}`).join("")}(e.parameters)}`}const eN=/^[^\/()?;=#]+/;function $f(e){const t=e.match(eN);return t?t[0]:""}const tN=/^[^=?&#]+/,rN=/^[^?&#]+/;class oN{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Nn([],{}):new Nn([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[xn]=new Nn(t,n)),r}parseSegment(){const t=$f(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Ac(Uf(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const n=$f(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const i=$f(this.remaining);i&&(r=i,this.capture(r))}t[Uf(n)]=Uf(r)}parseQueryParam(t){const n=function(e){const t=e.match(tN);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function(e){const t=e.match(rN);return t?t[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const i=M1(n),o=M1(r);if(t.hasOwnProperty(i)){let s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}parseParens(t){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=$f(this.remaining),i=this.remaining[r.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let o;r.indexOf(":")>-1?(o=r.substr(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=xn);const s=this.parseChildren();n[o]=1===Object.keys(s).length?s[xn]:new Nn([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class N1{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){const n=Dg(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){const n=Dg(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){const n=Tg(t,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return Tg(t,this._root).map(n=>n.value)}}function Dg(e,t){if(e===t.value)return t;for(const n of t.children){const r=Dg(e,n);if(r)return r}return null}function Tg(e,t){if(e===t.value)return[t];for(const n of t.children){const r=Tg(e,n);if(r.length)return r.unshift(t),r}return[]}class Bo{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}}function Tc(e){const t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}class k1 extends N1{constructor(t,n){super(t),this.snapshot=n,xg(this,t)}toString(){return this.snapshot.toString()}}function L1(e,t){const n=function(e,t){const s=new Bf([],{},{},"",{},xn,t,null,e.root,-1,{});return new U1("",new Bo(s,[]))}(e,t),r=new Ji([new Ac("",{})]),i=new Ji({}),o=new Ji({}),s=new Ji({}),u=new Ji(""),l=new $s(r,i,s,u,o,xn,t,n.root);return l.snapshot=n.root,new k1(new Bo(l,[]),n)}class $s{constructor(t,n,r,i,o,s,u,l){this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=u,this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(z(t=>nu(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(z(t=>nu(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function j1(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const i=n[r],o=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function(e){return e.reduce((t,n)=>({params:Object.assign(Object.assign({},t.params),n.params),data:Object.assign(Object.assign({},t.data),n.data),resolve:Object.assign(Object.assign({},t.resolve),n._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class Bf{constructor(t,n,r,i,o,s,u,l,_,P,$){this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=u,this.routeConfig=l,this._urlSegment=_,this._lastPathIndex=P,this._resolve=$}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=nu(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=nu(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class U1 extends N1{constructor(t,n){super(n),this.url=t,xg(this,n)}toString(){return $1(this._root)}}function xg(e,t){t.value._routerState=e,t.children.forEach(n=>xg(e,n))}function $1(e){const t=e.children.length>0?` { ${e.children.map($1).join(", ")} } `:"";return`${e.value}${t}`}function Pg(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,fo(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),fo(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(let n=0;nfo(n.parameters,t[r].parameters))}(e.url,t.url)&&!(!e.parent!=!t.parent)&&(!e.parent||Rg(e.parent,t.parent))}function Vf(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const i=function(e,t,n){return t.children.map(r=>{for(const i of n.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return Vf(e,r,i);return Vf(e,r)})}(e,t,n);return new Bo(r,i)}{if(e.shouldAttach(t.value)){const o=e.retrieve(t.value);if(null!==o){const s=o.route;return B1(t,s),s}}const r=function(e){return new $s(new Ji(e.url),new Ji(e.params),new Ji(e.queryParams),new Ji(e.fragment),new Ji(e.data),e.outlet,e.component,e)}(t.value),i=t.children.map(o=>Vf(e,o));return new Bo(r,i)}}function B1(e,t){if(e.value.routeConfig!==t.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==t.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");t.value._futureSnapshot=e.value;for(let n=0;n{o[u]=Array.isArray(s)?s.map(l=>`${l}`):`${s}`}),new js(n.root===e?t:V1(n.root,e,t),o,i)}function V1(e,t,n){const r={};return Lr(e.children,(i,o)=>{r[o]=i===t?n:V1(i,t,n)}),new Nn(e.segments,r)}class H1{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Hf(r[0]))throw new Error("Root segment cannot have matrix parameters");const i=r.find(xc);if(i&&i!==I1(r))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Mg{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}}function z1(e,t,n){if(e||(e=new Nn([],{})),0===e.segments.length&&e.hasChildren())return zf(e,t,n);const r=function(e,t,n){let r=0,i=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;i=n.length)return o;const s=e.segments[i],u=n[r];if(xc(u))break;const l=`${u}`,_=r0&&void 0===l)break;if(l&&_&&"object"==typeof _&&void 0===_.outlets){if(!W1(l,_,s))return o;r+=2}else{if(!W1(l,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(i[s]=z1(e.children[s],t,o))}),Lr(e.children,(o,s)=>{void 0===r[s]&&(i[s]=o)}),new Nn(e.segments,i)}}function Fg(e,t,n){const r=e.segments.slice(0,t);let i=0;for(;i{"string"==typeof n&&(n=[n]),null!==n&&(t[r]=Fg(new Nn([],{}),0,n))}),t}function G1(e){const t={};return Lr(e,(n,r)=>t[r]=`${n}`),t}function W1(e,t,n){return e==n.path&&fo(t,n.parameters)}class _N{constructor(t,n,r,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=i}activate(t){const n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),Pg(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){const i=Tc(n);t.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Lr(i,(o,s)=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(t,n,r){const i=t.value,o=n?n.value:null;if(i===o)if(i.component){const s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else o&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){const r=n.getContext(t.value.outlet);if(r&&r.outlet){const i=r.outlet.detach(),o=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:i,route:t,contexts:o})}}deactivateRouteAndOutlet(t,n){const r=n.getContext(t.value.outlet),i=r&&t.value.component?r.children:n,o=Tc(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);r&&r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated(),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(t,n,r){const i=Tc(n);t.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new UF(o.value.snapshot))}),t.children.length&&this.forwardEvent(new LF(t.value.snapshot))}activateRoutes(t,n,r){const i=t.value,o=n?n.value:null;if(Pg(i),i===o)if(i.component){const s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(i.component){const s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const u=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(u.contexts),s.attachRef=u.componentRef,s.route=u.route.value,s.outlet&&s.outlet.attach(u.componentRef,u.route.value),q1(u.route)}else{const u=function(e){for(let t=e.parent;t;t=t.parent){const n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(i.snapshot),l=u?u.module.componentFactoryResolver:null;s.attachRef=null,s.route=i,s.resolver=l,s.outlet&&s.outlet.activateWith(i,l),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,r)}}function q1(e){Pg(e.value),e.children.forEach(q1)}class Ng{constructor(t,n){this.routes=t,this.module=n}}function is(e){return"function"==typeof e}function Bs(e){return e instanceof js}const Pc=Symbol("INITIAL_VALUE");function Rc(){return Ls(e=>bF(e.map(t=>t.pipe(Ft(1),function(...e){const t=qn(e);return j((n,r)=>{(t?bg(e,n,t):bg(e,n)).subscribe(r)})}(Pc)))).pipe(g1((t,n)=>{let r=!1;return n.reduce((i,o,s)=>i!==Pc?i:(o===Pc&&(r=!0),r||!1!==o&&s!==n.length-1&&!Bs(o)?i:o),t)},Pc),eu(t=>t!==Pc),z(t=>Bs(t)?t:!0===t),Ft(1)))}let K1=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Lt({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(n,r){1&n&&Ds(0,"router-outlet")},directives:function(){return[Vg]},encapsulation:2}),e})();function Y1(e,t=""){for(let n=0;nRi(r)===t);return n.push(...e.filter(r=>Ri(r)!==t)),n}const J1={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Gf(e,t,n){var r;if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?Object.assign({},J1):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const o=(t.matcher||VF)(n,e,t);if(!o)return Object.assign({},J1);const s={};Lr(o.posParams,(l,_)=>{s[_]=l.path});const u=o.consumed.length>0?Object.assign(Object.assign({},s),o.consumed[o.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:o.consumed,lastChild:o.consumed.length,parameters:u,positionalParamSegments:null!==(r=o.posParams)&&void 0!==r?r:{}}}function Wf(e,t,n,r,i="corrected"){if(n.length>0&&function(e,t,n){return n.some(r=>qf(e,t,r)&&Ri(r)!==xn)}(e,n,r)){const s=new Nn(t,function(e,t,n,r){const i={};i[xn]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(const o of n)if(""===o.path&&Ri(o)!==xn){const s=new Nn([],{});s._sourceSegment=e,s._segmentIndexShift=t.length,i[Ri(o)]=s}return i}(e,t,r,new Nn(n,e.children)));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(r=>qf(e,t,r))}(e,n,r)){const s=new Nn(e.segments,function(e,t,n,r,i,o){const s={};for(const u of r)if(qf(e,n,u)&&!i[Ri(u)]){const l=new Nn([],{});l._sourceSegment=e,l._segmentIndexShift="legacy"===o?e.segments.length:t.length,s[Ri(u)]=l}return Object.assign(Object.assign({},i),s)}(e,t,n,r,e.children,i));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}const o=new Nn(e.segments,e.children);return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:n}}function qf(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function Z1(e,t,n,r){return!!(Ri(e)===r||r!==xn&&qf(t,n,e))&&("**"===e.path||Gf(t,e,n).matched)}function X1(e,t,n){return 0===t.length&&!e.children[n]}class Oc{constructor(t){this.segmentGroup=t||null}}class eC{constructor(t){this.urlTree=t}}function Kf(e){return new c(t=>t.error(new Oc(e)))}function tC(e){return new c(t=>t.error(new eC(e)))}function ON(e){return new c(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class NN{constructor(t,n,r,i,o){this.configLoader=n,this.urlSerializer=r,this.urlTree=i,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(lo)}apply(){const t=Wf(this.urlTree.root,[],[],this.config).segmentGroup,n=new Nn(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,n,xn).pipe(z(o=>this.createUrlTree(Lg(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(rs(o=>{if(o instanceof eC)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof Oc?this.noMatchError(o):o}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,xn).pipe(z(i=>this.createUrlTree(Lg(i),t.queryParams,t.fragment))).pipe(rs(i=>{throw i instanceof Oc?this.noMatchError(i):i}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,n,r){const i=t.segments.length>0?new Nn([],{[xn]:t}):t;return new js(i,n,r)}expandSegmentGroup(t,n,r,i){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(t,n,r).pipe(z(o=>new Nn([],o))):this.expandSegment(t,r,n,r.segments,i,!0)}expandChildren(t,n,r){const i=[];for(const o of Object.keys(r.children))"primary"===o?i.unshift(o):i.push(o);return gt(i).pipe(Sc(o=>{const s=r.children[o],u=Q1(n,o);return this.expandSegmentGroup(t,u,s,o).pipe(z(l=>({segment:l,outlet:o})))}),g1((o,s)=>(o[s.outlet]=s.segment,o),{}),function(e,t){const n=arguments.length>=2;return r=>r.pipe(e?eu((i,o)=>e(i,o,r)):S,Cg(1),n?m1(t):y1(()=>new Nf))}())}expandSegment(t,n,r,i,o,s){return gt(r).pipe(Sc(u=>this.expandSegmentAgainstRoute(t,n,r,u,i,o,s).pipe(rs(_=>{if(_ instanceof Oc)return Sn(null);throw _}))),tu(u=>!!u),rs((u,l)=>{if(u instanceof Nf||"EmptyError"===u.name){if(X1(n,i,o))return Sn(new Nn([],{}));throw new Oc(n)}throw u}))}expandSegmentAgainstRoute(t,n,r,i,o,s,u){return Z1(i,n,o,s)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,n,i,o,s):u&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s):Kf(n):Kf(n)}expandSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i){const o=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?tC(o):this.lineralizeSegments(r,o).pipe(Dt(s=>{const u=new Nn(s,{});return this.expandSegment(t,u,n,s,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s){const{matched:u,consumedSegments:l,lastChild:_,positionalParamSegments:P}=Gf(n,i,o);if(!u)return Kf(n);const $=this.applyRedirectCommands(l,i.redirectTo,P);return i.redirectTo.startsWith("/")?tC($):this.lineralizeSegments(i,$).pipe(Dt(q=>this.expandSegment(t,n,r,q.concat(o.slice(_)),s,!1)))}matchSegmentAgainstRoute(t,n,r,i,o){if("**"===r.path)return r.loadChildren?(r._loadedConfig?Sn(r._loadedConfig):this.configLoader.load(t.injector,r)).pipe(z(q=>(r._loadedConfig=q,new Nn(i,{})))):Sn(new Nn(i,{}));const{matched:s,consumedSegments:u,lastChild:l}=Gf(n,r,i);if(!s)return Kf(n);const _=i.slice(l);return this.getChildConfig(t,r,i).pipe(Dt($=>{const q=$.module,ae=$.routes,{segmentGroup:Te,slicedSegments:qe}=Wf(n,u,_,ae),Ue=new Nn(Te.segments,Te.children);if(0===qe.length&&Ue.hasChildren())return this.expandChildren(q,ae,Ue).pipe(z(Jt=>new Nn(u,Jt)));if(0===ae.length&&0===qe.length)return Sn(new Nn(u,{}));const _t=Ri(r)===o;return this.expandSegment(q,Ue,ae,qe,_t?xn:o,!0).pipe(z(zt=>new Nn(u.concat(zt.segments),zt.children)))}))}getChildConfig(t,n,r){return n.children?Sn(new Ng(n.children,t)):n.loadChildren?void 0!==n._loadedConfig?Sn(n._loadedConfig):this.runCanLoadGuards(t.injector,n,r).pipe(Dt(i=>{return i?this.configLoader.load(t.injector,n).pipe(z(o=>(n._loadedConfig=o,o))):(e=n,new c(t=>t.error(Sg(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`))));var e})):Sn(new Ng([],t))}runCanLoadGuards(t,n,r){const i=n.canLoad;return i&&0!==i.length?Sn(i.map(s=>{const u=t.get(s);let l;if((e=u)&&is(e.canLoad))l=u.canLoad(n,r);else{if(!is(u))throw new Error("Invalid CanLoad guard");l=u(n,r)}var e;return ho(l)})).pipe(Rc(),mi(s=>{if(!Bs(s))return;const u=Sg(`Redirecting to "${this.urlSerializer.serialize(s)}"`);throw u.url=s,u}),z(s=>!0===s)):Sn(!0)}lineralizeSegments(t,n){let r=[],i=n.root;for(;;){if(r=r.concat(i.segments),0===i.numberOfChildren)return Sn(r);if(i.numberOfChildren>1||!i.children[xn])return ON(t.redirectTo);i=i.children[xn]}}applyRedirectCommands(t,n,r){return this.applyRedirectCreatreUrlTree(n,this.urlSerializer.parse(n),t,r)}applyRedirectCreatreUrlTree(t,n,r,i){const o=this.createSegmentGroup(t,n.root,r,i);return new js(o,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){const r={};return Lr(t,(i,o)=>{if("string"==typeof i&&i.startsWith(":")){const u=i.substring(1);r[o]=n[u]}else r[o]=i}),r}createSegmentGroup(t,n,r,i){const o=this.createSegments(t,n.segments,r,i);let s={};return Lr(n.children,(u,l)=>{s[l]=this.createSegmentGroup(t,u,r,i)}),new Nn(o,s)}createSegments(t,n,r,i){return n.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,i):this.findOrReturn(o,r))}findPosParam(t,n,r){const i=r[n.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${n.path}'.`);return i}findOrReturn(t,n){let r=0;for(const i of n){if(i.path===t.path)return n.splice(r),i;r++}return t}}function Lg(e){const t={};for(const r of Object.keys(e.children)){const o=Lg(e.children[r]);(o.segments.length>0||o.hasChildren())&&(t[r]=o)}return function(e){if(1===e.numberOfChildren&&e.children[xn]){const t=e.children[xn];return new Nn(e.segments.concat(t.segments),t.children)}return e}(new Nn(e.segments,t))}class nC{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Yf{constructor(t,n){this.component=t,this.route=n}}function jN(e,t,n){const r=e._root;return Mc(r,t?t._root:null,n,[r.value])}function Qf(e,t,n){const r=function(e){if(!e)return null;for(let t=e.parent;t;t=t.parent){const n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function Mc(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=Tc(t);return e.children.forEach(s=>{(function(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,s=t?t.value:null,u=n?n.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Us(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Us(e.url,t.url)||!fo(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Rg(e,t)||!fo(e.queryParams,t.queryParams);case"paramsChange":default:return!Rg(e,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new nC(r)):(o.data=s.data,o._resolvedData=s._resolvedData),Mc(e,t,o.component?u?u.children:null:n,r,i),l&&u&&u.outlet&&u.outlet.isActivated&&i.canDeactivateChecks.push(new Yf(u.outlet.component,s))}else s&&Fc(t,u,i),i.canActivateChecks.push(new nC(r)),Mc(e,null,o.component?u?u.children:null:n,r,i)})(s,o[s.value.outlet],n,r.concat([s.value]),i),delete o[s.value.outlet]}),Lr(o,(s,u)=>Fc(s,n.getContext(u),i)),i}function Fc(e,t,n){const r=Tc(e),i=e.value;Lr(r,(o,s)=>{Fc(o,i.component?t?t.children.getContext(s):null:t,n)}),n.canDeactivateChecks.push(new Yf(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}class JN{}function rC(e){return new c(t=>t.error(e))}class XN{constructor(t,n,r,i,o,s){this.rootComponentType=t,this.config=n,this.urlTree=r,this.url=i,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=s}recognize(){const t=Wf(this.urlTree.root,[],[],this.config.filter(s=>void 0===s.redirectTo),this.relativeLinkResolution).segmentGroup,n=this.processSegmentGroup(this.config,t,xn);if(null===n)return null;const r=new Bf([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},xn,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Bo(r,n),o=new U1(this.url,i);return this.inheritParamsAndData(o._root),o}inheritParamsAndData(t){const n=t.value,r=j1(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(i=>this.inheritParamsAndData(i))}processSegmentGroup(t,n,r){return 0===n.segments.length&&n.hasChildren()?this.processChildren(t,n):this.processSegment(t,n,n.segments,r)}processChildren(t,n){const r=[];for(const o of Object.keys(n.children)){const s=n.children[o],u=Q1(t,o),l=this.processSegmentGroup(u,s,o);if(null===l)return null;r.push(...l)}const i=iC(r);return i.sort((t,n)=>t.value.outlet===xn?-1:n.value.outlet===xn?1:t.value.outlet.localeCompare(n.value.outlet)),i}processSegment(t,n,r,i){for(const o of t){const s=this.processSegmentAgainstRoute(o,n,r,i);if(null!==s)return s}return X1(n,r,i)?[]:null}processSegmentAgainstRoute(t,n,r,i){if(t.redirectTo||!Z1(t,n,r,i))return null;let o,s=[],u=[];if("**"===t.path){const ae=r.length>0?I1(r).parameters:{};o=new Bf(r,ae,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,aC(t),Ri(t),t.component,t,oC(n),sC(n)+r.length,uC(t))}else{const ae=Gf(n,t,r);if(!ae.matched)return null;s=ae.consumedSegments,u=r.slice(ae.lastChild),o=new Bf(s,ae.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,aC(t),Ri(t),t.component,t,oC(n),sC(n)+s.length,uC(t))}const l=(e=t).children?e.children:e.loadChildren?e._loadedConfig.routes:[],{segmentGroup:_,slicedSegments:P}=Wf(n,s,u,l.filter(ae=>void 0===ae.redirectTo),this.relativeLinkResolution);var e;if(0===P.length&&_.hasChildren()){const ae=this.processChildren(l,_);return null===ae?null:[new Bo(o,ae)]}if(0===l.length&&0===P.length)return[new Bo(o,[])];const $=Ri(t)===i,q=this.processSegment(l,_,P,$?xn:i);return null===q?null:[new Bo(o,q)]}}function n3(e){const t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function iC(e){const t=[],n=new Set;for(const r of e){if(!n3(r)){t.push(r);continue}const i=t.find(o=>r.value.routeConfig===o.value.routeConfig);void 0!==i?(i.children.push(...r.children),n.add(i)):t.push(r)}for(const r of n){const i=iC(r.children);t.push(new Bo(r.value,i))}return t.filter(r=>!n.has(r))}function oC(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function sC(e){let t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)t=t._sourceSegment,n+=t._segmentIndexShift?t._segmentIndexShift:0;return n-1}function aC(e){return e.data||{}}function uC(e){return e.resolve||{}}function jg(e){return Ls(t=>{const n=e(t);return n?gt(n).pipe(z(()=>t)):Sn(t)})}class l3 extends class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}}{}const Ug=new jn("ROUTES");class cC{constructor(t,n,r,i){this.loader=t,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=i}load(t,n){if(n._loader$)return n._loader$;this.onLoadStartListener&&this.onLoadStartListener(n);const i=this.loadModuleFactory(n.loadChildren).pipe(z(o=>{this.onLoadEndListener&&this.onLoadEndListener(n);const s=o.create(t);return new Ng(S1(s.injector.get(Ug,void 0,rn.Self|rn.Optional)).map(kg),s)}),rs(o=>{throw n._loader$=void 0,o}));return n._loader$=new SF(i,()=>new y).pipe(p1()),n._loader$}loadModuleFactory(t){return"string"==typeof t?gt(this.loader.load(t)):ho(t()).pipe(Dt(n=>n instanceof z0?Sn(n):gt(this.compiler.compileModuleAsync(n))))}}class f3{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new ru,this.attachRef=null}}class ru{constructor(){this.contexts=new Map}onChildOutletCreated(t,n){const r=this.getOrCreateContext(t);r.outlet=n,this.contexts.set(t,r)}onChildOutletDestroyed(t){const n=this.getContext(t);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let n=this.getContext(t);return n||(n=new f3,this.contexts.set(t,n)),n}getContext(t){return this.contexts.get(t)||null}}class h3{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,n){return t}}function p3(e){throw e}function g3(e,t,n){return t.parse("/")}function lC(e,t){return Sn(null)}const y3={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},m3={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Zr=(()=>{class e{constructor(n,r,i,o,s,u,l,_){this.rootComponentType=n,this.urlSerializer=r,this.rootContexts=i,this.location=o,this.config=_,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new y,this.errorHandler=p3,this.malformedUriErrorHandler=g3,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:lC,afterPreactivation:lC},this.urlHandlingStrategy=new h3,this.routeReuseStrategy=new l3,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(lo),this.console=s.get(sf);const q=s.get(We);this.isNgZoneEnabled=q instanceof We&&We.isInAngularZone(),this.resetConfig(_),this.currentUrlTree=new js(new Nn([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new cC(u,l,ae=>this.triggerEvent(new _1(ae)),ae=>this.triggerEvent(new w1(ae))),this.routerState=L1(this.currentUrlTree,this.rootComponentType),this.transitions=new Ji({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var n;return null===(n=this.location.getState())||void 0===n?void 0:n.\u0275routerPageId}setupNavigations(n){const r=this.events;return n.pipe(eu(i=>0!==i.id),z(i=>Object.assign(Object.assign({},i),{extractedUrl:this.urlHandlingStrategy.extract(i.rawUrl)})),Ls(i=>{let o=!1,s=!1;return Sn(i).pipe(mi(u=>{this.currentNavigation={id:u.id,initialUrl:u.currentRawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Ls(u=>{const l=this.browserUrlTree.toString(),_=!this.navigated||u.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||_)&&this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return Jf(u.source)&&(this.browserUrlTree=u.extractedUrl),Sn(u).pipe(Ls($=>{const q=this.transitions.getValue();return r.next(new Eg($.id,this.serializeUrl($.extractedUrl),$.source,$.restoredState)),q!==this.transitions.getValue()?on:Promise.resolve($)}),function(e,t,n,r){return Ls(i=>function(e,t,n,r,i){return new NN(e,t,n,r,i).apply()}(e,t,n,i.extractedUrl,r).pipe(z(o=>Object.assign(Object.assign({},i),{urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),mi($=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:$.urlAfterRedirects})}),function(e,t,n,r,i){return Dt(o=>function(e,t,n,r,i="emptyOnly",o="legacy"){try{const s=new XN(e,t,n,r,i,o).recognize();return null===s?rC(new JN):Sn(s)}catch(s){return rC(s)}}(e,t,o.urlAfterRedirects,n(o.urlAfterRedirects),r,i).pipe(z(s=>Object.assign(Object.assign({},o),{targetSnapshot:s}))))}(this.rootComponentType,this.config,$=>this.serializeUrl($),this.paramsInheritanceStrategy,this.relativeLinkResolution),mi($=>{"eager"===this.urlUpdateStrategy&&($.extras.skipLocationChange||this.setBrowserUrl($.urlAfterRedirects,$),this.browserUrlTree=$.urlAfterRedirects);const q=new RF($.id,this.serializeUrl($.extractedUrl),this.serializeUrl($.urlAfterRedirects),$.targetSnapshot);r.next(q)}));if(_&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:q,extractedUrl:ae,source:Te,restoredState:qe,extras:Ue}=u,_t=new Eg(q,this.serializeUrl(ae),Te,qe);r.next(_t);const at=L1(ae,this.rootComponentType).snapshot;return Sn(Object.assign(Object.assign({},u),{targetSnapshot:at,urlAfterRedirects:ae,extras:Object.assign(Object.assign({},Ue),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=u.rawUrl,this.browserUrlTree=u.urlAfterRedirects,u.resolve(null),on}),jg(u=>{const{targetSnapshot:l,id:_,extractedUrl:P,rawUrl:$,extras:{skipLocationChange:q,replaceUrl:ae}}=u;return this.hooks.beforePreactivation(l,{navigationId:_,appliedUrlTree:P,rawUrlTree:$,skipLocationChange:!!q,replaceUrl:!!ae})}),mi(u=>{const l=new OF(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(l)}),z(u=>Object.assign(Object.assign({},u),{guards:jN(u.targetSnapshot,u.currentSnapshot,this.rootContexts)})),function(e,t){return Dt(n=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return 0===s.length&&0===o.length?Sn(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,r){return gt(e).pipe(Dt(i=>function(e,t,n,r,i){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?Sn(o.map(u=>{const l=Qf(u,t,i);let _;if(function(e){return e&&is(e.canDeactivate)}(l))_=ho(l.canDeactivate(e,t,n,r));else{if(!is(l))throw new Error("Invalid CanDeactivate guard");_=ho(l(e,t,n,r))}return _.pipe(tu())})).pipe(Rc()):Sn(!0)}(i.component,i.route,n,t,r)),tu(i=>!0!==i,!0))}(s,r,i,e).pipe(Dt(u=>u&&function(e){return"boolean"==typeof e}(u)?function(e,t,n,r){return gt(t).pipe(Sc(i=>bg(function(e,t){return null!==e&&t&&t(new kF(e)),Sn(!0)}(i.route.parent,r),function(e,t){return null!==e&&t&&t(new jF(e)),Sn(!0)}(i.route,r),function(e,t,n){const r=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>function(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(s)).filter(s=>null!==s).map(s=>h1(()=>Sn(s.guards.map(l=>{const _=Qf(l,s.node,n);let P;if(function(e){return e&&is(e.canActivateChild)}(_))P=ho(_.canActivateChild(r,e));else{if(!is(_))throw new Error("Invalid CanActivateChild guard");P=ho(_(r,e))}return P.pipe(tu())})).pipe(Rc())));return Sn(o).pipe(Rc())}(e,i.path,n),function(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;return r&&0!==r.length?Sn(r.map(o=>h1(()=>{const s=Qf(o,t,n);let u;if(function(e){return e&&is(e.canActivate)}(s))u=ho(s.canActivate(t,e));else{if(!is(s))throw new Error("Invalid CanActivate guard");u=ho(s(t,e))}return u.pipe(tu())}))).pipe(Rc()):Sn(!0)}(e,i.route,n))),tu(i=>!0!==i,!0))}(r,o,e,t):Sn(u)),z(u=>Object.assign(Object.assign({},n),{guardsResult:u})))})}(this.ngModule.injector,u=>this.triggerEvent(u)),mi(u=>{if(Bs(u.guardsResult)){const _=Sg(`Redirecting to "${this.serializeUrl(u.guardsResult)}"`);throw _.url=u.guardsResult,_}const l=new MF(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.triggerEvent(l)}),eu(u=>!!u.guardsResult||(this.restoreHistory(u),this.cancelNavigationTransition(u,""),!1)),jg(u=>{if(u.guards.canActivateChecks.length)return Sn(u).pipe(mi(l=>{const _=new FF(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(_)}),Ls(l=>{let _=!1;return Sn(l).pipe(function(e,t){return Dt(n=>{const{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return Sn(n);let o=0;return gt(i).pipe(Sc(s=>function(e,t,n,r){return function(e,t,n,r){const i=Object.keys(e);if(0===i.length)return Sn({});const o={};return gt(i).pipe(Dt(s=>function(e,t,n,r){const i=Qf(e,t,r);return ho(i.resolve?i.resolve(t,n):i(t,n))}(e[s],t,n,r).pipe(mi(u=>{o[s]=u}))),Cg(1),Dt(()=>Object.keys(o).length===i.length?Sn(o):on))}(e._resolve,e,t,r).pipe(z(o=>(e._resolvedData=o,e.data=Object.assign(Object.assign({},e.data),j1(e,n).resolve),null)))}(s.route,r,e,t)),mi(()=>o++),Cg(1),Dt(s=>o===i.length?Sn(n):on))})}(this.paramsInheritanceStrategy,this.ngModule.injector),mi({next:()=>_=!0,complete:()=>{_||(this.restoreHistory(l),this.cancelNavigationTransition(l,"At least one route resolver didn't emit any value."))}}))}),mi(l=>{const _=new NF(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(_)}))}),jg(u=>{const{targetSnapshot:l,id:_,extractedUrl:P,rawUrl:$,extras:{skipLocationChange:q,replaceUrl:ae}}=u;return this.hooks.afterPreactivation(l,{navigationId:_,appliedUrlTree:P,rawUrlTree:$,skipLocationChange:!!q,replaceUrl:!!ae})}),z(u=>{const l=function(e,t,n){const r=Vf(e,t._root,n?n._root:void 0);return new k1(r,t)}(this.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return Object.assign(Object.assign({},u),{targetRouterState:l})}),mi(u=>{this.currentUrlTree=u.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl),this.routerState=u.targetRouterState,"deferred"===this.urlUpdateStrategy&&(u.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,u),this.browserUrlTree=u.urlAfterRedirects)}),((e,t,n)=>z(r=>(new _N(t,r.targetRouterState,r.currentRouterState,n).activate(e),r)))(this.rootContexts,this.routeReuseStrategy,u=>this.triggerEvent(u)),mi({next(){o=!0},complete(){o=!0}}),function(e){return j((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}(()=>{var u;if(!o&&!s){const l=`Navigation ID ${i.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(i),this.cancelNavigationTransition(i,l)):this.cancelNavigationTransition(i,l)}(null===(u=this.currentNavigation)||void 0===u?void 0:u.id)===i.id&&(this.currentNavigation=null)}),rs(u=>{if(s=!0,function(e){return e&&e[C1]}(u)){const l=Bs(u.url);l||(this.navigated=!0,this.restoreHistory(i,!0));const _=new v1(i.id,this.serializeUrl(i.extractedUrl),u.message);r.next(_),l?setTimeout(()=>{const P=this.urlHandlingStrategy.merge(u.url,this.rawUrlTree),$={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Jf(i.source)};this.scheduleNavigation(P,"imperative",null,$,{resolve:i.resolve,reject:i.reject,promise:i.promise})},0):i.resolve(!1)}else{this.restoreHistory(i,!0);const l=new PF(i.id,this.serializeUrl(i.extractedUrl),u);r.next(l);try{i.resolve(this.errorHandler(u))}catch(_){i.reject(_)}}return on}))}))}resetRootComponentType(n){this.rootComponentType=n,this.routerState.root.component=this.rootComponentType}getTransition(){const n=this.transitions.value;return n.urlAfterRedirects=this.browserUrlTree,n}setTransition(n){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),n))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r=this.extractLocationChangeInfoFromEvent(n);this.shouldScheduleNavigation(this.lastLocationChangeInfo,r)&&setTimeout(()=>{const{source:i,state:o,urlTree:s}=r,u={replaceUrl:!0};if(o){const l=Object.assign({},o);delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(u.state=l)}this.scheduleNavigation(s,i,o,u)},0),this.lastLocationChangeInfo=r}))}extractLocationChangeInfoFromEvent(n){var r;return{source:"popstate"===n.type?"popstate":"hashchange",urlTree:this.parseUrl(n.url),state:(null===(r=n.state)||void 0===r?void 0:r.navigationId)?n.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(n,r){if(!n)return!0;const i=r.urlTree.toString()===n.urlTree.toString();return r.transitionId!==n.transitionId||!i||!("hashchange"===r.source&&"popstate"===n.source||"popstate"===r.source&&"hashchange"===n.source)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(n){this.events.next(n)}resetConfig(n){Y1(n),this.config=n.map(kg),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(n,r={}){const{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:u,preserveFragment:l}=r,_=i||this.routerState.root,P=l?this.currentUrlTree.fragment:s;let $=null;switch(u){case"merge":$=Object.assign(Object.assign({},this.currentUrlTree.queryParams),o);break;case"preserve":$=this.currentUrlTree.queryParams;break;default:$=o||null}return null!==$&&($=this.removeEmptyProps($)),function(e,t,n,r,i){if(0===n.length)return Og(t.root,t.root,t,r,i);const o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new H1(!0,0,e);let t=0,n=!1;const r=e.reduce((i,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const u={};return Lr(o.outlets,(l,_)=>{u[_]="string"==typeof l?l.split("/"):l}),[...i,{outlets:u}]}if(o.segmentPath)return[...i,o.segmentPath]}return"string"!=typeof o?[...i,o]:0===s?(o.split("/").forEach((u,l)=>{0==l&&"."===u||(0==l&&""===u?n=!0:".."===u?t++:""!=u&&i.push(u))}),i):[...i,o]},[]);return new H1(n,t,r)}(n);if(o.toRoot())return Og(t.root,new Nn([],{}),t,r,i);const s=function(e,t,n){if(e.isAbsolute)return new Mg(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){const o=n.snapshot._urlSegment;return new Mg(o,o===t.root,0)}const r=Hf(e.commands[0])?0:1;return function(e,t,n){let r=e,i=t,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new Error("Invalid number of '../'");i=r.segments.length}return new Mg(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(o,t,e),u=s.processChildren?zf(s.segmentGroup,s.index,o.commands):z1(s.segmentGroup,s.index,o.commands);return Og(s.segmentGroup,u,t,r,i)}(_,this.currentUrlTree,n,$,null!=P?P:null)}navigateByUrl(n,r={skipLocationChange:!1}){const i=Bs(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,r)}navigate(n,r={skipLocationChange:!1}){return function(e){for(let t=0;t{const o=n[i];return null!=o&&(r[i]=o),r},{})}processNavigations(){this.navigations.subscribe(n=>{this.navigated=!0,this.lastSuccessfulId=n.id,this.currentPageId=n.targetPageId,this.events.next(new Ic(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,n.resolve(!0)},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)})}scheduleNavigation(n,r,i,o,s){var u,l;if(this.disposed)return Promise.resolve(!1);const _=this.getTransition(),P=Jf(r)&&_&&!Jf(_.source),ae=(this.lastSuccessfulId===_.id||this.currentNavigation?_.rawUrl:_.urlAfterRedirects).toString()===n.toString();if(P&&ae)return Promise.resolve(!0);let Te,qe,Ue;s?(Te=s.resolve,qe=s.reject,Ue=s.promise):Ue=new Promise((zt,Jt)=>{Te=zt,qe=Jt});const _t=++this.navigationId;let at;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(i=this.location.getState()),at=i&&i.\u0275routerPageId?i.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?null!==(u=this.browserPageId)&&void 0!==u?u:0:(null!==(l=this.browserPageId)&&void 0!==l?l:0)+1):at=0,this.setTransition({id:_t,targetPageId:at,source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:n,extras:o,resolve:Te,reject:qe,promise:Ue,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Ue.catch(zt=>Promise.reject(zt))}setBrowserUrl(n,r){const i=this.urlSerializer.serialize(n),o=Object.assign(Object.assign({},r.extras.state),this.generateNgRouterState(r.id,r.targetPageId));this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl?this.location.replaceState(i,"",o):this.location.go(i,"",o)}restoreHistory(n,r=!1){var i,o;if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-n.targetPageId;"popstate"!==n.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(i=this.currentNavigation)||void 0===i?void 0:i.finalUrl)||0===s?this.currentUrlTree===(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl)&&0===s&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(s)}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(n,r){const i=new v1(n.id,this.serializeUrl(n.extractedUrl),r);this.triggerEvent(i),n.resolve(!1)}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return e.\u0275fac=function(n){return new(n||e)($t(yl),$t(Ig),$t(ru),$t(wf),$t(Gn),$t(uf),$t(Ms),$t(void 0))},e.\u0275prov=un({token:e,factory:e.\u0275fac}),e})();function Jf(e){return"imperative"!==e}let Vg=(()=>{class e{constructor(n,r,i,o,s){this.parentContexts=n,this.location=r,this.resolver=i,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Ti,this.deactivateEvents=new Ti,this.name=o||xn,n.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const n=this.parentContexts.getContext(this.name);n&&n.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=n;const s=(r=r||this.resolver).resolveComponentFactory(n._futureSnapshot.routeConfig.component),u=this.parentContexts.getOrCreateContext(this.name).children,l=new b3(n,u,this.location.injector);this.activated=this.location.createComponent(s,this.location.length,l),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(n){return new(n||e)(ke(ru),ke(Hi),ke(Ps),function(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let i=0;for(;i{class e{constructor(n,r,i,o,s){this.router=n,this.injector=o,this.preloadingStrategy=s,this.loader=new cC(r,i,_=>n.triggerEvent(new _1(_)),_=>n.triggerEvent(new w1(_)))}setUpPreloading(){this.subscription=this.router.events.pipe(eu(n=>n instanceof Ic),Sc(()=>this.preload())).subscribe(()=>{})}preload(){const n=this.injector.get(lo);return this.processRoutes(n,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const i=[];for(const o of r)if(o.loadChildren&&!o.canLoad&&o._loadedConfig){const s=o._loadedConfig;i.push(this.processRoutes(s.module,s.routes))}else o.loadChildren&&!o.canLoad?i.push(this.preloadConfig(n,o)):o.children&&i.push(this.processRoutes(n,o.children));return gt(i).pipe(jt(),z(o=>{}))}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>(r._loadedConfig?Sn(r._loadedConfig):this.loader.load(n.injector,r)).pipe(Dt(o=>(r._loadedConfig=o,this.processRoutes(o.module,o.routes)))))}}return e.\u0275fac=function(n){return new(n||e)($t(Zr),$t(uf),$t(Ms),$t(Gn),$t(fC))},e.\u0275prov=un({token:e,factory:e.\u0275fac}),e})(),Hg=(()=>{class e{constructor(n,r,i={}){this.router=n,this.viewportScroller=r,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(n=>{n instanceof Eg?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Ic&&(this.lastId=n.id,this.scheduleScrollEvent(n,this.router.parseUrl(n.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(n=>{n instanceof b1&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.router.triggerEvent(new b1(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)($t(Zr),$t(Jb),$t(void 0))},e.\u0275prov=un({token:e,factory:e.\u0275fac}),e})();const Vs=new jn("ROUTER_CONFIGURATION"),pC=new jn("ROUTER_FORROOT_GUARD"),E3=[wf,{provide:Ig,useClass:R1},{provide:Zr,useFactory:function(e,t,n,r,i,o,s,u={},l,_){const P=new Zr(null,e,t,n,r,i,o,S1(s));return l&&(P.urlHandlingStrategy=l),_&&(P.routeReuseStrategy=_),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(u,P),u.enableTracing&&P.events.subscribe($=>{var q,ae;null===(q=console.group)||void 0===q||q.call(console,`Router Event: ${$.constructor.name}`),console.log($.toString()),console.log($),null===(ae=console.groupEnd)||void 0===ae||ae.call(console)}),P},deps:[Ig,ru,wf,Gn,uf,Ms,Ug,Vs,[class{},new oi],[class{},new oi]]},ru,{provide:$s,useFactory:function(e){return e.routerState.root},deps:[Zr]},{provide:uf,useClass:AR},hC,dC,class{preload(t,n){return n().pipe(rs(()=>Sn(null)))}},{provide:Vs,useValue:{enableTracing:!1}}];function S3(){return new Np("Router",Zr)}let gC=(()=>{class e{constructor(n,r){}static forRoot(n,r){return{ngModule:e,providers:[E3,yC(n),{provide:pC,useFactory:D3,deps:[[Zr,new oi,new Yo]]},{provide:Vs,useValue:r||{}},{provide:Xa,useFactory:A3,deps:[ks,[new ya(_f),new oi],Vs]},{provide:Hg,useFactory:I3,deps:[Zr,Jb,Vs]},{provide:fC,useExisting:r&&r.preloadingStrategy?r.preloadingStrategy:dC},{provide:Np,multi:!0,useFactory:S3},[zg,{provide:hc,multi:!0,useFactory:R3,deps:[zg]},{provide:mC,useFactory:O3,deps:[zg]},{provide:Ww,multi:!0,useExisting:mC}]]}}static forChild(n){return{ngModule:e,providers:[yC(n)]}}}return e.\u0275fac=function(n){return new(n||e)($t(pC,8),$t(Zr,8))},e.\u0275mod=Mi({type:e}),e.\u0275inj=jr({}),e})();function I3(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Hg(e,t,n)}function A3(e,t,n={}){return n.useHash?new WO(e,t):new kb(e,t)}function D3(e){return"guarded"}function yC(e){return[{provide:VC,multi:!0,useValue:e},{provide:Ug,multi:!0,useValue:e}]}let zg=(()=>{class e{constructor(n){this.injector=n,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new y}appInitializer(){return this.injector.get(HO,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let r=null;const i=new Promise(u=>r=u),o=this.injector.get(Zr),s=this.injector.get(Vs);return"disabled"===s.initialNavigation?(o.setUpLocationChangeListener(),r(!0)):"enabled"===s.initialNavigation||"enabledBlocking"===s.initialNavigation?(o.hooks.afterPreactivation=()=>this.initNavigation?Sn(null):(this.initNavigation=!0,r(!0),this.resultOfPreactivationDone),o.initialNavigation()):r(!0),i})}bootstrapListener(n){const r=this.injector.get(Vs),i=this.injector.get(hC),o=this.injector.get(Hg),s=this.injector.get(Zr),u=this.injector.get(Qa);n===u.components[0]&&(("enabledNonBlocking"===r.initialNavigation||void 0===r.initialNavigation)&&s.initialNavigation(),i.setUpPreloading(),o.init(),s.resetRootComponentType(u.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return e.\u0275fac=function(n){return new(n||e)($t(Gn))},e.\u0275prov=un({token:e,factory:e.\u0275fac}),e})();function R3(e){return e.appInitializer.bind(e)}function O3(e){return e.bootstrapListener.bind(e)}const mC=new jn("Router Initializer");var ou=W(4073);const Gg="eu-central-1",vC="eu-central-1_76vHDJv0Q",_C="548rao6hla2p966gt64pt3flnc",wC="dy16q9xy14xwj.cloudfront.net",bC="kirsch-test.kamakodo.io",po={production:!0,authCookie:{name:"kamakodo_bean_id_token",expiry:3600},amplifyConfig:{aws_project_region:Gg,aws_cognito_region:Gg,aws_user_pools_id:vC,aws_user_pools_web_client_id:_C,aws_cognito_identity_pool_id:"eu-central-1:1abbe9e5-206e-4532-b67f-4b8f93df80bb",oauth:{domain:"kamakodo-bean-test.auth.eu-central-1.amazoncognito.com",redirectSignIn:["http://localhost:4200",`https://${wC}/auth`,`https://${bC}/auth`].join(","),redirectSignOut:["http://localhost:4200/signout",`https://${wC}/auth/signout`,`https://${bC}/auth/signout`].join(","),responseType:"code",scope:["phone","email","openid","profile","aws.cognito.signin.user.admin"]},federationTarget:"COGNITO_USER_POOLS",aws_cognito_login_mechanisms:["EMAIL"],aws_cognito_signup_attributes:["EMAIL","NAME"],aws_cognito_mfa_configuration:"OFF",aws_cognito_mfa_types:["SMS"],aws_cognito_password_protection_settings:{passwordPolicyMinLength:8,passwordPolicyCharacters:[]},aws_cognito_verification_mechanisms:["EMAIL"],Auth:{region:Gg,userPoolId:vC,userPoolWebClientId:_C}}},CC=new jn("COOKIE_OPTIONS"),Wg=new jn("COOKIE_WRITER");function Nc(e){return null==e}function os(e){return!Nc(e)}function EC(e,t){return t?{path:os(t.path)?t.path:e.path,domain:os(t.domain)?t.domain:e.domain,expires:os(t.expires)?t.expires:e.expires,secure:os(t.secure)?t.secure:e.secure,sameSite:os(t.sameSite)?t.sameSite:e.sameSite,httpOnly:os(t.httpOnly)?t.httpOnly:e.httpOnly,storeUnencoded:os(t.storeUnencoded)?t.storeUnencoded:e.storeUnencoded}:e}function SC(e){try{return decodeURIComponent(e)}catch(t){return e}}let qg=(()=>{class e{constructor(n={},r){this.injector=r,this.defaultOptions={path:this.injector.get(_f,"/"),domain:void 0,expires:void 0,secure:!1,httpOnly:!1},this.options=EC(this.defaultOptions,n)}}return e.\u0275fac=function(n){return new(n||e)($t(CC),$t(Gn))},e.\u0275prov=un({token:e,factory:e.\u0275fac}),e})(),kc=(()=>{class e{constructor(n,r,i){this.document=n,this.optionsProvider=r,this.cookieWriterService=i,this.options=this.optionsProvider.options}hasKey(n){return os(this.get(n))}get(n){var r;return null===(r=this.getAll())||void 0===r?void 0:r[n]}getObject(n){const r=this.get(n);if(!Nc(r))return""===r?{}:JSON.parse(r)}getAll(){return function(e){let r,i,o,s,u,t={},n="";if(e!==n)for(n=e,r=n.split("; "),t={},o=0;o0&&(u=SC(i.substring(0,s)),Nc(t[u])&&(t[u]=SC(i.substring(s+1))));return t}(this.cookieWriterService.readAllAsString())}put(n,r,i){const o=EC(this.options,i);this.cookieWriterService.write(n,r,o)}putObject(n,r,i){this.put(n,JSON.stringify(r),i)}remove(n,r){this.put(n,void 0,r)}removeAll(n){const r=this.getAll();Object.keys(r).forEach(i=>this.remove(i,n))}}return e.\u0275fac=function(n){return new(n||e)($t(_r),$t(qg),$t(Wg))},e.\u0275prov=un({token:e,factory:e.\u0275fac}),e})(),B3=(()=>{class e{constructor(n){this.document=n}readAllAsString(){return this.document.cookie||""}write(n,r,i){this.document.cookie=function(e,t,n){let i,r=null==n?void 0:n.expires;Nc(t)?(r="Thu, 01 Jan 1970 00:00:00 GMT",i=""):i=t,function(e){return"string"==typeof e}(r)&&(r=new Date(r));const o=(null==n?void 0:n.storeUnencoded)?t:encodeURIComponent(i);let s=encodeURIComponent(e)+"="+o;s+=(null==n?void 0:n.path)?";path="+n.path:"",s+=(null==n?void 0:n.domain)?";domain="+n.domain:"",s+=r?";expires="+r.toUTCString():"",s+=(null==n?void 0:n.sameSite)?"; SameSite="+n.sameSite:"",s+=(null==n?void 0:n.secure)?";secure":"",s+=(null==n?void 0:n.httpOnly)?"; HttpOnly":"";const u=s.length+1;return u>4096&&console.log("Cookie '"+e+"' possibly not set or overflowed because it was too large ("+u+" > 4096 bytes)!"),s}(n,r,i)}}return e.\u0275fac=function(n){return new(n||e)($t(_r))},e.\u0275prov=un({token:e,factory:e.\u0275fac}),e})();function V3(e,t,n){return new kc(e,t,n)}let H3=(()=>{class e{static forRoot(n={}){return{ngModule:e,providers:[{provide:CC,useValue:n},{provide:Wg,useClass:B3},{provide:kc,useFactory:V3,deps:[_r,qg,Wg]}]}}static forChild(n={}){return e.forRoot(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Mi({type:e}),e.\u0275inj=jr({providers:[qg]}),e})(),z3=(()=>{class e{constructor(n,r){this.cookieService=n,this.router=r}ngOnInit(){this.cookieService.remove(po.authCookie.name),ou.g.signOut()}goBackToLogin(){this.router.navigate(["/"])}}return e.\u0275fac=function(n){return new(n||e)(ke(kc),ke(Zr))},e.\u0275cmp=Lt({type:e,selectors:[["app-sign-out"]],decls:8,vars:0,consts:[[1,"logout-container"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512",1,"ionicon",3,"click"],["d","M258.9 48C141.92 46.42 46.42 141.92 48 258.9c1.56 112.19 92.91 203.54 205.1 205.1 117 1.6 212.48-93.9 210.88-210.88C462.44 140.91 371.09 49.56 258.9 48zm126.42 327.25a4 4 0 01-6.14-.32 124.27 124.27 0 00-32.35-29.59C321.37 329 289.11 320 256 320s-65.37 9-90.83 25.34a124.24 124.24 0 00-32.35 29.58 4 4 0 01-6.14.32A175.32 175.32 0 0180 259c-1.63-97.31 78.22-178.76 175.57-179S432 158.81 432 256a175.32 175.32 0 01-46.68 119.25z"],["d","M256 144c-19.72 0-37.55 7.39-50.22 20.82s-19 32-17.57 51.93C191.11 256 221.52 288 256 288s64.83-32 67.79-71.24c1.48-19.74-4.8-38.14-17.68-51.82C293.39 151.44 275.59 144 256 144z"]],template:function(n,r){1&n&&(so(0,"div",0),so(1,"div"),Yu(2,"Benutzer abgemeldet"),ao(),sa(),so(3,"svg",1),Ts("click",function(){return r.goBackToLogin()}),so(4,"title"),Yu(5,"erneut anmelden"),ao(),Ds(6,"path",2),Ds(7,"path",3),ao(),ao())},styles:[".logout-container[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:column;font-family:var(--ion-default-font);height:100vh;justify-content:center;width:100vw}.logout-container[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{cursor:pointer;max-width:min(14rem,70%);fill:var(--ion-color-medium)}.logout-container[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]:hover{fill:var(--ion-color-medium-shade)}"]}),e})();var IC=W(680),G3=W(8182);let AC=(()=>{class e{constructor(n){this.cookieService=n,this.authenticated=!1,this.username="",G3.Xb.listen("auth",this.onAuthEventFromHub.bind(this)),Promise.all([ou.g.currentAuthenticatedUser(),ou.g.currentSession()]).then(([r,i])=>{if(r){console.log("LOGIN ACTIVE",r);const o=new Date(1e3*i.getIdToken().getExpiration());this.cookieService.put(po.authCookie.name,i.getIdToken().getJwtToken(),{expires:o}),this.authenticated=!0,this.username=r.attributes.email,this.redirectWhenReady()}else console.log("NO ACTIVE LOGIN"),this.authenticated=!1,this.username=""}).catch(()=>{console.log("NO LOGIN, SILENT CATCH"),this.authenticated=!1,this.username=""})}onAuthEventFromHub({payload:{event:n}}){var i=this;return(0,IC.Z)(function*(){if("signIn"===n){const o=yield ou.g.currentAuthenticatedUser(),s=yield ou.g.currentSession();console.log("user signed in",o,s),i.authenticated=!0,i.username=o.attributes.email;const u=new Date;u.setTime(u.getTime()+1e3*po.authCookie.expiry),i.cookieService.put(po.authCookie.name,s.getIdToken().getJwtToken(),{expires:u}),i.redirectWhenReady()}else"signOut"===n&&(i.authenticated=!1,i.username="",i.cookieService.remove(po.authCookie.name),console.log("user signed out"))})()}signInWithAzureAd(){return(0,IC.Z)(function*(){yield ou.g.federatedSignIn({customProvider:"azure"})})()}redirectWhenReady(){const n=this.cookieService.get("loginRequestedUrl");if(void 0!==n&&this.authenticated){this.cookieService.remove("loginRequestedUrl");const r=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")+n;console.log("should now redirect to",r);const i=window.location.href.replace(/\/$|\/#\//,"");if(r.replace(/\/$/,"")===i)return void console.warn("will not redirect: attempting to redirect to current page");window.location.replace(r)}}}return e.\u0275fac=function(n){return new(n||e)($t(kc))},e.\u0275prov=un({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const q3=[{path:"",component:(()=>{class e{constructor(n,r,i){this.authService=n,this.route=r,this.cookieService=i}ngOnInit(){this.route.queryParams.subscribe(n=>{if(n.code)return void console.log("REQUEST CONTAINS CODE --\x3e CALLBACK");const r=n.url||this.cookieService.get("loginRequestedUrl")||"/",i=new Date;i.setTime(i.getTime()+3e5),this.cookieService.put("loginRequestedUrl",r,{expires:i}),console.log("cookie set to",this.cookieService.get("loginRequestedUrl")),this.authService.redirectWhenReady()})}}return e.\u0275fac=function(n){return new(n||e)(ke(AC),ke($s),ke(kc))},e.\u0275cmp=Lt({type:e,selectors:[["app-home"]],decls:7,vars:1,consts:[[1,"login-container"],[3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512",1,"ionicon",3,"click"],["d","M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48zm-50.22 116.82C218.45 151.39 236.28 144 256 144s37.39 7.44 50.11 20.94c12.89 13.68 19.16 32.06 17.68 51.82C320.83 256 290.43 288 256 288s-64.89-32-67.79-71.25c-1.47-19.92 4.79-38.36 17.57-51.93zM256 432a175.49 175.49 0 01-126-53.22 122.91 122.91 0 0135.14-33.44C190.63 329 222.89 320 256 320s65.37 9 90.83 25.34A122.87 122.87 0 01382 378.78 175.45 175.45 0 01256 432z"]],template:function(n,r){1&n&&(so(0,"div",0),so(1,"div",1),Ts("click",function(){return r.authService.signInWithAzureAd()}),Yu(2),ao(),sa(),so(3,"svg",2),Ts("click",function(){return r.authService.signInWithAzureAd()}),so(4,"title"),Yu(5,"Anmelden"),ao(),Ds(6,"path",3),ao(),ao()),2&n&&(function(e){zm(Rn(),Et(),kr()+e,ea())}(2),Bh(r.authService.username||"zum Anmelden bitte klicken"))},styles:['.login-container[_ngcontent-%COMP%]{--ion-color-primary: #3880ff;--ion-color-primary-shade: #3171e0;--ion-default-font: "Roboto", "Helvetica Neue", sans-serif;align-items:center;display:flex;flex-direction:column;font-family:var(--ion-default-font);height:100vh;justify-content:center;width:100vw}.login-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{cursor:pointer}.login-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:hover{color:var(--ion-color-primary-shade)}.login-container[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{cursor:pointer;max-width:min(14rem,70%);fill:var(--ion-color-primary)}.login-container[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]:hover{fill:var(--ion-color-primary-shade)}']}),e})()},{path:"signout",component:z3}];let K3=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Mi({type:e}),e.\u0275inj=jr({imports:[[gC.forRoot(q3,{useHash:!0})],gC]}),e})(),Y3=(()=>{class e{constructor(n){this.authService=n,this.title="aws-login",this.user=""}ngOnInit(){}}return e.\u0275fac=function(n){return new(n||e)(ke(AC))},e.\u0275cmp=Lt({type:e,selectors:[["app-root"]],decls:2,vars:0,consts:[["src","./assets/logo-kirsch-services-300x100.png","alt","Kirsch Services Logo"]],template:function(n,r){1&n&&(Ds(0,"img",0),Ds(1,"router-outlet"))},directives:[Vg],styles:["img[_ngcontent-%COMP%]{position:absolute;width:10em;top:1em;left:calc(50% - 5em)}"]}),e})();var xt=W(5404);const Q3=["addListener","removeListener"],J3=["addEventListener","removeEventListener"],Z3=["on","off"];function Kg(e,t,n,r){if(Q(n)&&(r=n,n=void 0),r)return Kg(e,t,n).pipe(f1(r));const[i,o]=function(e){return Q(e.addEventListener)&&Q(e.removeEventListener)}(e)?J3.map(s=>u=>e[s](t,u,n)):function(e){return Q(e.addListener)&&Q(e.removeListener)}(e)?Q3.map(DC(e,t)):function(e){return Q(e.on)&&Q(e.off)}(e)?Z3.map(DC(e,t)):[];if(!i&&Pe(e))return Dt(s=>Kg(s,t,n))(K(e));if(!i)throw new TypeError("Invalid event target");return new c(s=>{const u=(...l)=>s.next(1o(u)})}function DC(e,t){return n=>r=>e[n](t,r)}var ss=W(665);if((0,W(8358).lC)().isBrowser){let e=document.createElement("style");e.appendChild(document.createTextNode("\n :root {\n /* Typography */\n --amplify-font-family: 'Amazon Ember', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;\n\n --amplify-text-xxs: 0.75rem;\n --amplify-text-xs: 0.81rem;\n --amplify-text-sm: 0.875rem;\n --amplify-text-md: 1rem;\n --amplify-text-md-sub: 1.15rem;\n --amplify-text-lg: 1.5rem;\n --amplify-text-xl: 2rem;\n --amplify-text-xxl: 2.5rem;\n\n /* Colors */\n --amplify-primary-color: #ff9900;\n --amplify-primary-contrast: var(--amplify-white);\n --amplify-primary-tint: #ffac31;\n --amplify-primary-shade: #e88b01;\n\n --amplify-secondary-color: #152939;\n --amplify-secondary-contrast: var(--amplify-white);\n --amplify-secondary-tint: #31465f;\n --amplify-secondary-shade: #1F2A37;\n\n --amplify-tertiary-color: #5d8aff;\n --amplify-tertiary-contrast: var(--amplify-white);\n --amplify-tertiary-tint: #7da1ff;\n --amplify-tertiary-shade: #537BE5;\n\n --amplify-background-color: var(--amplify-white);\n\n /* Neutral */\n --amplify-grey: #828282;\n --amplify-light-grey: #c4c4c4;\n --amplify-white: #ffffff;\n --amplify-smoke-white: #f5f5f5;\n --amplify-red: #dd3f5b;\n --amplify-blue: #099ac8;\n }\n "));let t=document.getElementsByTagName("head")[0];t.insertBefore(e,t.firstChild)}var tn=["*"];function fn(e){return function(n){return e.inputs&&function(e,t){var n=e.prototype;t.forEach(function(r){Object.defineProperty(n,r,{get:function(){return this.el[r]},set:function(i){var o=this;this.z.runOutsideAngular(function(){return o.el[r]=i})}})})}(n,e.inputs),e.methods&&function(e,t){var n=e.prototype;t.forEach(function(r){n[r]=function(){var i=this,o=arguments;return this.z.runOutsideAngular(function(){return i.el[r].apply(i.el,o)})}})}(n,e.methods),n}}(function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["clientId","handleAuthStateChange"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-amazon-button"]],inputs:{clientId:"clientId",handleAuthStateChange:"handleAuthStateChange"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})})(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},e.\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-auth-container"]],ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["formFields"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-auth-fields"]],inputs:{formFields:"formFields"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["config","handleAuthStateChange"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-auth0-button"]],inputs:{config:"config",handleAuthStateChange:"handleAuthStateChange"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["federated","handleAuthStateChange","hideToast","initialAuthState","usernameAlias"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-authenticator"]],inputs:{federated:"federated",handleAuthStateChange:"handleAuthStateChange",hideToast:"hideToast",initialAuthState:"initialAuthState",usernameAlias:"usernameAlias"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["disabled","handleButtonClick","icon","type","variant"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-button"]],inputs:{disabled:"disabled",handleButtonClick:"handleButtonClick",icon:"icon",type:"type",variant:"variant"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement,function(e,t,n){["chatCompleted"].forEach(function(r){return e[r]=Kg(t,r)})}(this,this.el)}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["botName","botTitle","clearOnComplete","conversationModeOn","silenceThreshold","silenceTime","textEnabled","voiceEnabled","welcomeMessage"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-chatbot"]],inputs:{botName:"botName",botTitle:"botTitle",clearOnComplete:"clearOnComplete",conversationModeOn:"conversationModeOn",silenceThreshold:"silenceThreshold",silenceTime:"silenceTime",textEnabled:"textEnabled",voiceEnabled:"voiceEnabled",welcomeMessage:"welcomeMessage"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["checked","disabled","fieldId","label","name","value"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-checkbox"]],inputs:{checked:"checked",disabled:"disabled",fieldId:"fieldId",label:"label",name:"name",value:"value"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["disabled","fieldId","handleInputChange","hint","inputProps","label","placeholder","required","value"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-code-field"]],inputs:{disabled:"disabled",fieldId:"fieldId",handleInputChange:"handleInputChange",hint:"hint",inputProps:"inputProps",label:"label",placeholder:"placeholder",required:"required",value:"value"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["formFields","handleAuthStateChange","handleSubmit","headerText","submitButtonText","user"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-confirm-sign-in"]],inputs:{formFields:"formFields",handleAuthStateChange:"handleAuthStateChange",handleSubmit:"handleSubmit",headerText:"headerText",submitButtonText:"submitButtonText",user:"user"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["formFields","handleAuthStateChange","handleSubmit","headerText","submitButtonText","user","usernameAlias"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-confirm-sign-up"]],inputs:{formFields:"formFields",handleAuthStateChange:"handleAuthStateChange",handleSubmit:"handleSubmit",headerText:"headerText",submitButtonText:"submitButtonText",user:"user",usernameAlias:"usernameAlias"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},e.\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-container"]],ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["dialCode","fieldId","handleInputChange","options"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-country-dial-code"]],inputs:{dialCode:"dialCode",fieldId:"fieldId",handleInputChange:"handleInputChange",options:"options"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["disabled","fieldId","handleInputChange","hint","inputProps","label","placeholder","required","value"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-email-field"]],inputs:{disabled:"disabled",fieldId:"fieldId",handleInputChange:"handleInputChange",hint:"hint",inputProps:"inputProps",label:"label",placeholder:"placeholder",required:"required",value:"value"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["appId","handleAuthStateChange"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-facebook-button"]],inputs:{appId:"appId",handleAuthStateChange:"handleAuthStateChange"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["authState","federated","handleAuthStateChange"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-federated-buttons"]],inputs:{authState:"authState",federated:"federated",handleAuthStateChange:"handleAuthStateChange"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["authState","federated"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-federated-sign-in"]],inputs:{authState:"authState",federated:"federated"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["formFields","handleAuthStateChange","handleSend","handleSubmit","headerText","sendButtonText","submitButtonText","usernameAlias"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-forgot-password"]],inputs:{formFields:"formFields",handleAuthStateChange:"handleAuthStateChange",handleSend:"handleSend",handleSubmit:"handleSubmit",headerText:"headerText",sendButtonText:"sendButtonText",submitButtonText:"submitButtonText",usernameAlias:"usernameAlias"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["description","disabled","fieldId","handleInputChange","hint","inputProps","label","name","placeholder","required","type","value"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-form-field"]],inputs:{description:"description",disabled:"disabled",fieldId:"fieldId",handleInputChange:"handleInputChange",hint:"hint",inputProps:"inputProps",label:"label",name:"name",placeholder:"placeholder",required:"required",type:"type",value:"value"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["handleSubmit","headerText","loading","secondaryFooterContent","submitButtonText","testDataPrefix"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-form-section"]],inputs:{handleSubmit:"handleSubmit",headerText:"headerText",loading:"loading",secondaryFooterContent:"secondaryFooterContent",submitButtonText:"submitButtonText",testDataPrefix:"testDataPrefix"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["clientId","handleAuthStateChange"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-google-button"]],inputs:{clientId:"clientId",handleAuthStateChange:"handleAuthStateChange"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["handleAuthStateChange","logo","username"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-greetings"]],inputs:{handleAuthStateChange:"handleAuthStateChange",logo:"logo",username:"username"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},e.\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-hint"]],ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["name"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-icon"]],inputs:{name:"name"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["autoShowTooltip","name","tooltip"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-icon-button"]],inputs:{autoShowTooltip:"autoShowTooltip",name:"name",tooltip:"tooltip"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["description","disabled","fieldId","handleInputChange","inputProps","name","placeholder","required","type","value"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-input"]],inputs:{description:"description",disabled:"disabled",fieldId:"fieldId",handleInputChange:"handleInputChange",inputProps:"inputProps",name:"name",placeholder:"placeholder",required:"required",type:"type",value:"value"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["htmlFor"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-label"]],inputs:{htmlFor:"htmlFor"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["role"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-link"]],inputs:{role:"role"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},e.\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-loading-spinner"]],ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},e.\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-nav"]],ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["config"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-oauth-button"]],inputs:{config:"config"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["disabled","fieldId","handleInputChange","hint","inputProps","label","placeholder","required","value"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-password-field"]],inputs:{disabled:"disabled",fieldId:"fieldId",handleInputChange:"handleInputChange",hint:"hint",inputProps:"inputProps",label:"label",placeholder:"placeholder",required:"required",value:"value"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["dialCode","disabled","fieldId","handleInputChange","hint","inputProps","label","placeholder","required","value"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-phone-field"]],inputs:{dialCode:"dialCode",disabled:"disabled",fieldId:"fieldId",handleInputChange:"handleInputChange",hint:"hint",inputProps:"inputProps",label:"label",placeholder:"placeholder",required:"required",value:"value"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["buttonText","handleClick","headerHint","headerTitle","placeholderHint","previewSrc"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-photo-picker"]],inputs:{buttonText:"buttonText",handleClick:"handleClick",headerHint:"headerHint",headerTitle:"headerTitle",placeholderHint:"placeholderHint",previewSrc:"previewSrc"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["acceptValue","inputHandler","pickerText"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-picker"]],inputs:{acceptValue:"acceptValue",inputHandler:"inputHandler",pickerText:"pickerText"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["checked","disabled","fieldId","handleInputChange","inputProps","label","name","placeholder","value"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-radio-button"]],inputs:{checked:"checked",disabled:"disabled",fieldId:"fieldId",handleInputChange:"handleInputChange",inputProps:"inputProps",label:"label",name:"name",placeholder:"placeholder",value:"value"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["formFields","handleAuthStateChange","handleSubmit","headerText","submitButtonText","user"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-require-new-password"]],inputs:{formFields:"formFields",handleAuthStateChange:"handleAuthStateChange",handleSubmit:"handleSubmit",headerText:"headerText",submitButtonText:"submitButtonText",user:"user"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["contentType","fileToKey","filter","handleOnError","handleOnLoad","identityId","level","path","picker","pickerText","sort","track"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-s3-album"]],inputs:{contentType:"contentType",fileToKey:"fileToKey",filter:"filter",handleOnError:"handleOnError",handleOnLoad:"handleOnLoad",identityId:"identityId",level:"level",path:"path",picker:"picker",pickerText:"pickerText",sort:"sort",track:"track"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["alt","body","contentType","handleOnError","handleOnLoad","identityId","imgKey","imgProps","level","path","track"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-s3-image"]],inputs:{alt:"alt",body:"body",contentType:"contentType",handleOnError:"handleOnError",handleOnLoad:"handleOnLoad",identityId:"identityId",imgKey:"imgKey",imgProps:"imgProps",level:"level",path:"path",track:"track"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["buttonText","contentType","fileToKey","headerHint","headerTitle","identityId","level","path","placeholderHint","track"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-s3-image-picker"]],inputs:{buttonText:"buttonText",contentType:"contentType",fileToKey:"fileToKey",headerHint:"headerHint",headerTitle:"headerTitle",identityId:"identityId",level:"level",path:"path",placeholderHint:"placeholderHint",track:"track"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["body","contentType","fallbackText","identityId","level","path","textKey","track"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-s3-text"]],inputs:{body:"body",contentType:"contentType",fallbackText:"fallbackText",identityId:"identityId",level:"level",path:"path",textKey:"textKey",track:"track"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["contentType","fallbackText","fileToKey","identityId","level","path","track"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-s3-text-picker"]],inputs:{contentType:"contentType",fallbackText:"fallbackText",fileToKey:"fileToKey",identityId:"identityId",level:"level",path:"path",track:"track"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["role"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-section"]],inputs:{role:"role"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["fieldId","handleInputChange","options","selected"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-select"]],inputs:{fieldId:"fieldId",handleInputChange:"handleInputChange",options:"options",selected:"selected"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["MFATypes","authData","handleSubmit"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-select-mfa-type"]],inputs:{MFATypes:"MFATypes",authData:"authData",handleSubmit:"handleSubmit"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["federated","formFields","handleAuthStateChange","handleSubmit","headerText","hideSignUp","submitButtonText","usernameAlias"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-sign-in"]],inputs:{federated:"federated",formFields:"formFields",handleAuthStateChange:"handleAuthStateChange",handleSubmit:"handleSubmit",headerText:"headerText",hideSignUp:"hideSignUp",submitButtonText:"submitButtonText",usernameAlias:"usernameAlias"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["provider"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-sign-in-button"]],inputs:{provider:"provider"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["buttonText","handleAuthStateChange"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-sign-out"]],inputs:{buttonText:"buttonText",handleAuthStateChange:"handleAuthStateChange"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["formFields","handleAuthStateChange","handleSignUp","handleSubmit","haveAccountText","headerText","signInText","submitButtonText","usernameAlias","validationErrors"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-sign-up"]],inputs:{formFields:"formFields",handleAuthStateChange:"handleAuthStateChange",handleSignUp:"handleSignUp",handleSubmit:"handleSubmit",haveAccountText:"haveAccountText",headerText:"headerText",signInText:"signInText",submitButtonText:"submitButtonText",usernameAlias:"usernameAlias",validationErrors:"validationErrors"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},e.\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-strike"]],ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["handleClose","message"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-toast"]],inputs:{handleClose:"handleClose",message:"message"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["shouldAutoShow","text"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-tooltip"]],inputs:{shouldAutoShow:"shouldAutoShow",text:"text"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["handleAuthStateChange","handleComplete","headerText","issuer","standalone","user"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-totp-setup"]],inputs:{handleAuthStateChange:"handleAuthStateChange",handleComplete:"handleComplete",headerText:"headerText",issuer:"issuer",standalone:"standalone",user:"user"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["disabled","fieldId","handleInputChange","hint","inputProps","label","placeholder","required","value"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-username-field"]],inputs:{disabled:"disabled",fieldId:"fieldId",handleInputChange:"handleInputChange",hint:"hint",inputProps:"inputProps",label:"label",placeholder:"placeholder",required:"required",value:"value"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),function(){function e(t,n,r){this.z=r,t.detach(),this.el=n.nativeElement}e.ctorParameters=function(){return[{type:Xe},{type:Ke},{type:We}]},(e=(0,xt.gn)([fn({inputs:["handleAuthStateChange","user"]}),(0,xt.w6)("design:paramtypes",[Xe,Ke,We])],e)).\u0275fac=function(n){return new(n||e)(ke(Xe),ke(Ke),ke(We))},e.\u0275cmp=Lt({type:e,selectors:[["amplify-verify-contact"]],inputs:{handleAuthStateChange:"handleAuthStateChange",user:"user"},ngContentSelectors:tn,decls:1,vars:0,template:function(n,r){1&n&&(Xt(),en(0))},encapsulation:2,changeDetection:0})}(),window,"undefined"==typeof window?Promise.resolve():(ss.C&&ss.C.supports&&ss.C.supports("color","var(--c)")?(0,ss.a)():W.e(843).then(W.t.bind(W,9859,23)).then(()=>(ss.p.$cssShim$=ss.w.__cssshim)?ss.p.$cssShim$.i():0)).then(()=>(0,ss.b)([["amplify-icon",[[2,"amplify-icon",{name:[1]}]]],["amplify-authenticator",[[1,"amplify-authenticator",{initialAuthState:[1,"initial-auth-state"],federated:[16],usernameAlias:[1,"username-alias"],handleAuthStateChange:[16],hideToast:[4,"hide-toast"],authState:[32],authData:[32],toastMessage:[32]}]]],["amplify-federated-sign-in",[[1,"amplify-federated-sign-in",{authState:[1,"auth-state"],federated:[8]}]]],["amplify-select-mfa-type",[[1,"amplify-select-mfa-type",{MFATypes:[16],authData:[16],handleSubmit:[16],TOTPSetup:[32],selectMessage:[32],MFAMethod:[32],isTOTP:[32],isNoMFA:[32],isSMS:[32],loading:[32],isToastVisible:[32]}]]],["amplify-s3-image-picker",[[4,"amplify-s3-image-picker",{path:[1],contentType:[1,"content-type"],level:[1],track:[4],identityId:[1,"identity-id"],fileToKey:[16],headerTitle:[1,"header-title"],headerHint:[1,"header-hint"],placeholderHint:[1,"placeholder-hint"],buttonText:[1,"button-text"],src:[32]}]]],["amplify-chatbot",[[1,"amplify-chatbot",{botName:[1,"bot-name"],clearOnComplete:[4,"clear-on-complete"],conversationModeOn:[4,"conversation-mode-on"],welcomeMessage:[1,"welcome-message"],botTitle:[1,"bot-title"],voiceEnabled:[4,"voice-enabled"],textEnabled:[4,"text-enabled"],silenceTime:[2,"silence-time"],silenceThreshold:[2,"silence-threshold"],messages:[32],text:[32],chatState:[32],error:[32]},[[0,"formSubmit","submitHandler"]]]]],["amplify-greetings",[[1,"amplify-greetings",{username:[1],logo:[16],handleAuthStateChange:[16]}]]],["amplify-s3-album",[[1,"amplify-s3-album",{path:[1],contentType:[1,"content-type"],level:[1],track:[4],identityId:[1,"identity-id"],fileToKey:[16],filter:[16],sort:[16],picker:[4],handleOnLoad:[16],handleOnError:[16],pickerText:[1,"picker-text"],albumItems:[32]}]]],["amplify-s3-text-picker",[[1,"amplify-s3-text-picker",{path:[1],contentType:[1,"content-type"],level:[1],track:[4],identityId:[1,"identity-id"],fileToKey:[16],fallbackText:[1,"fallback-text"],src:[32]}]]],["amplify-icon-button",[[1,"amplify-icon-button",{name:[1],tooltip:[1],autoShowTooltip:[4,"auto-show-tooltip"]}]]],["amplify-checkbox",[[1,"amplify-checkbox",{name:[1],value:[1],fieldId:[1,"field-id"],label:[1],checked:[4],disabled:[4]}]]],["amplify-auth-container",[[4,"amplify-auth-container"]]],["amplify-container",[[4,"amplify-container"]]],["amplify-link",[[1,"amplify-link",{role:[1]}]]],["amplify-photo-picker",[[1,"amplify-photo-picker",{headerTitle:[1,"header-title"],headerHint:[1,"header-hint"],placeholderHint:[1,"placeholder-hint"],buttonText:[1,"button-text"],previewSrc:[1,"preview-src"],handleClick:[16],previewState:[32],file:[32]}]]],["amplify-s3-image",[[1,"amplify-s3-image",{imgKey:[1,"img-key"],path:[1],alt:[1],body:[16],contentType:[1,"content-type"],level:[1],track:[4],identityId:[1,"identity-id"],handleOnLoad:[16],handleOnError:[16],imgProps:[16],src:[32]}]]],["amplify-s3-text",[[1,"amplify-s3-text",{textKey:[1,"text-key"],path:[1],body:[16],contentType:[1,"content-type"],level:[1],track:[4],identityId:[1,"identity-id"],fallbackText:[1,"fallback-text"],src:[32]}]]],["amplify-tooltip",[[1,"amplify-tooltip",{text:[1],shouldAutoShow:[4,"should-auto-show"]}]]],["amplify-nav_2",[[1,"amplify-sign-out",{handleAuthStateChange:[16],buttonText:[1,"button-text"]}],[1,"amplify-nav"]]],["amplify-picker",[[1,"amplify-picker",{pickerText:[1,"picker-text"],acceptValue:[1,"accept-value"],inputHandler:[16]}]]],["amplify-federated-buttons_2",[[6,"amplify-strike"],[1,"amplify-federated-buttons",{authState:[1,"auth-state"],federated:[16],handleAuthStateChange:[16]}]]],["amplify-form-field_4",[[4,"amplify-form-field",{fieldId:[1,"field-id"],label:[1],description:[1],hint:[1],type:[1],required:[4],handleInputChange:[16],placeholder:[1],name:[1],value:[1],inputProps:[16],disabled:[4]}],[1,"amplify-hint"],[0,"amplify-input",{fieldId:[1,"field-id"],description:[1],type:[1],handleInputChange:[16],placeholder:[1],name:[1],value:[1],inputProps:[16],disabled:[4],required:[4],autoCompleted:[32]}],[4,"amplify-label",{htmlFor:[1,"html-for"]}]]],["amplify-auth-fields_9",[[0,"amplify-auth-fields",{formFields:[16]}],[0,"amplify-phone-field",{fieldId:[1,"field-id"],label:[1],placeholder:[1],hint:[1],required:[4],handleInputChange:[16],value:[1],inputProps:[16],disabled:[4],dialCode:[8,"dial-code"]}],[0,"amplify-code-field",{fieldId:[1,"field-id"],label:[1],placeholder:[1],hint:[1],required:[4],handleInputChange:[16],value:[1],inputProps:[16],disabled:[4]}],[0,"amplify-email-field",{fieldId:[1,"field-id"],label:[1],placeholder:[1],required:[4],handleInputChange:[16],value:[1],inputProps:[16],disabled:[4],hint:[1]}],[0,"amplify-password-field",{fieldId:[1,"field-id"],label:[1],placeholder:[1],hint:[1],required:[4],handleInputChange:[16],value:[1],inputProps:[16],disabled:[4]}],[0,"amplify-username-field",{fieldId:[1,"field-id"],label:[1],placeholder:[1],required:[4],handleInputChange:[16],value:[1],inputProps:[16],disabled:[4],hint:[1]}],[1,"amplify-country-dial-code",{fieldId:[1,"field-id"],options:[16],handleInputChange:[16],dialCode:[8,"dial-code"]}],[1,"amplify-select",{options:[16],fieldId:[1,"field-id"],handleInputChange:[16],selected:[8]}],[4,"amplify-form-section",{handleSubmit:[16],submitButtonText:[1,"submit-button-text"],headerText:[1,"header-text"],testDataPrefix:[1,"test-data-prefix"],loading:[4],secondaryFooterContent:[1,"secondary-footer-content"]},[[0,"formSubmit","handleFormSubmit"]]]]],["amplify-radio-button_3",[[1,"amplify-totp-setup",{user:[16],handleAuthStateChange:[16],headerText:[1,"header-text"],issuer:[1],handleComplete:[16],standalone:[4],code:[32],setupMessage:[32],qrCodeImageSource:[32],qrCodeInput:[32],loading:[32]}],[0,"amplify-radio-button",{handleInputChange:[16],name:[1],value:[1],placeholder:[1],fieldId:[1,"field-id"],label:[1],checked:[4],disabled:[4],inputProps:[16]}],[1,"amplify-toast",{handleClose:[16],message:[1]}]]],["amplify-sign-in-button",[[6,"amplify-sign-in-button",{provider:[1]}]]],["amplify-amazon-button_5",[[1,"amplify-amazon-button",{clientId:[1,"client-id"],handleAuthStateChange:[16]}],[1,"amplify-auth0-button",{config:[16],handleAuthStateChange:[16]}],[1,"amplify-facebook-button",{appId:[1,"app-id"],handleAuthStateChange:[16]}],[1,"amplify-google-button",{handleAuthStateChange:[16],clientId:[1,"client-id"]}],[1,"amplify-oauth-button",{config:[16]}]]],["amplify-button_3",[[1,"amplify-loading-spinner"],[4,"amplify-section",{role:[1]}],[4,"amplify-button",{type:[1],variant:[1],handleButtonClick:[16],disabled:[4],icon:[1]}]]],["amplify-confirm-sign-in_7",[[1,"amplify-sign-in",{handleSubmit:[16],headerText:[1,"header-text"],submitButtonText:[1,"submit-button-text"],federated:[16],handleAuthStateChange:[16],usernameAlias:[1,"username-alias"],formFields:[16],hideSignUp:[4,"hide-sign-up"],loading:[32],signInAttributes:[32]}],[1,"amplify-confirm-sign-in",{handleSubmit:[16],headerText:[1,"header-text"],submitButtonText:[1,"submit-button-text"],handleAuthStateChange:[16],formFields:[16],user:[16],mfaOption:[32],loading:[32],code:[32]}],[1,"amplify-confirm-sign-up",{handleSubmit:[16],headerText:[1,"header-text"],submitButtonText:[1,"submit-button-text"],formFields:[16],handleAuthStateChange:[16],user:[16],usernameAlias:[1,"username-alias"],code:[32],loading:[32],userInput:[32]}],[1,"amplify-forgot-password",{headerText:[1,"header-text"],sendButtonText:[1,"send-button-text"],submitButtonText:[1,"submit-button-text"],formFields:[16],handleSend:[16],handleSubmit:[16],handleAuthStateChange:[16],usernameAlias:[1,"username-alias"],delivery:[32],loading:[32],forgotPasswordAttrs:[32]}],[1,"amplify-require-new-password",{headerText:[1,"header-text"],submitButtonText:[1,"submit-button-text"],handleSubmit:[16],handleAuthStateChange:[16],user:[16],formFields:[16],password:[32],loading:[32]}],[1,"amplify-sign-up",{handleSubmit:[16],handleSignUp:[16],validationErrors:[1,"validation-errors"],headerText:[1,"header-text"],submitButtonText:[1,"submit-button-text"],haveAccountText:[1,"have-account-text"],signInText:[1,"sign-in-text"],formFields:[16],handleAuthStateChange:[16],usernameAlias:[1,"username-alias"],loading:[32],signUpAttributes:[32]}],[1,"amplify-verify-contact",{handleAuthStateChange:[16],user:[16],verifyAttr:[32],loading:[32],code:[32],contact:[32]}]]]],undefined));var fL=function(){function e(){}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Mi({type:e}),e.\u0275inj=jr({providers:[],imports:[[]]}),e}();let dL=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Mi({type:e,bootstrap:[Y3]}),e.\u0275inj=jr({providers:[],imports:[[iF,K3,fL,H3.forRoot()]]}),e})();var hL=W(3107);po.production&&function(){if(Xw)throw new Error("Cannot enable prod mode after platform setup.");Zw=!1}();const TC=Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)),xC=window.location.hostname.includes("cloudfront.net"),[pL,gL,yL]=po.amplifyConfig.oauth.redirectSignIn.split(","),[mL,vL,_L]=po.amplifyConfig.oauth.redirectSignOut.split(",");hL.dQ.configure(Object.assign(Object.assign({},po.amplifyConfig),{oauth:Object.assign(Object.assign({},po.amplifyConfig.oauth),{redirectSignIn:TC?pL:xC?gL:yL,redirectSignOut:TC?mL:xC?vL:_L})})),nF().bootstrapModule(dL).catch(e=>console.error(e))},8911:(mt,de,W)=>{var Q={"./amplify-amazon-button_5.entry.js":[1526,772,526],"./amplify-auth-container.entry.js":[3399,399],"./amplify-auth-fields_9.entry.js":[8700,700],"./amplify-authenticator.entry.js":[1189,772,592,189],"./amplify-button_3.entry.js":[884,884],"./amplify-chatbot.entry.js":[7754,754],"./amplify-checkbox.entry.js":[7916,916],"./amplify-confirm-sign-in_7.entry.js":[7045,772,592,45],"./amplify-container.entry.js":[515,515],"./amplify-federated-buttons_2.entry.js":[2991,772,991],"./amplify-federated-sign-in.entry.js":[4216,216],"./amplify-form-field_4.entry.js":[185,772,185],"./amplify-greetings.entry.js":[7245,772,245],"./amplify-icon-button.entry.js":[4160,160],"./amplify-icon.entry.js":[3696,592,696],"./amplify-link.entry.js":[9612,612],"./amplify-nav_2.entry.js":[350,772,350],"./amplify-photo-picker.entry.js":[1379,379],"./amplify-picker.entry.js":[9458,458],"./amplify-radio-button_3.entry.js":[1663,772,592,663],"./amplify-s3-album.entry.js":[7233,16,233],"./amplify-s3-image-picker.entry.js":[4563,16,563],"./amplify-s3-image.entry.js":[1558,16,558],"./amplify-s3-text-picker.entry.js":[690,16,690],"./amplify-s3-text.entry.js":[3100,16,100],"./amplify-select-mfa-type.entry.js":[7790,790],"./amplify-sign-in-button.entry.js":[1662,592,662],"./amplify-tooltip.entry.js":[8975,975]};function se(V){if(!W.o(Q,V))return Promise.resolve().then(()=>{var L=new Error("Cannot find module '"+V+"'");throw L.code="MODULE_NOT_FOUND",L});var ee=Q[V],Ie=ee[0];return Promise.all(ee.slice(1).map(W.e)).then(()=>W(Ie))}se.keys=()=>Object.keys(Q),se.id=8911,mt.exports=se},8075:(mt,de,W)=>{"use strict";W.r(de),W.d(de,{__extends:()=>se,__assign:()=>V,__rest:()=>ee,__decorate:()=>Ie,__param:()=>L,__metadata:()=>R,__awaiter:()=>D,__generator:()=>le,__createBinding:()=>pe,__exportStar:()=>he,__values:()=>ue,__read:()=>we,__spread:()=>fe,__spreadArrays:()=>ce,__await:()=>ie,__asyncGenerator:()=>Ve,__asyncDelegator:()=>Re,__asyncValues:()=>Ye,__makeTemplateObject:()=>ut,__importStar:()=>pt,__importDefault:()=>Nt,__classPrivateFieldGet:()=>Mt,__classPrivateFieldSet:()=>je});var Q=function(G,H){return(Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,g){S.__proto__=g}||function(S,g){for(var w in g)g.hasOwnProperty(w)&&(S[w]=g[w])})(G,H)};function se(G,H){function S(){this.constructor=G}Q(G,H),G.prototype=null===H?Object.create(H):(S.prototype=H.prototype,new S)}var V=function(){return(V=Object.assign||function(H){for(var S,g=1,w=arguments.length;g=0;m--)(p=G[m])&&(c=(w<3?p(c):w>3?p(H,S,c):p(H,S))||c);return w>3&&c&&Object.defineProperty(H,S,c),c}function L(G,H){return function(S,g){H(S,g,G)}}function R(G,H){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(G,H)}function D(G,H,S,g){return new(S||(S=Promise))(function(c,p){function m(y){try{d(g.next(y))}catch(b){p(b)}}function I(y){try{d(g.throw(y))}catch(b){p(b)}}function d(y){y.done?c(y.value):function(c){return c instanceof S?c:new S(function(p){p(c)})}(y.value).then(m,I)}d((g=g.apply(G,H||[])).next())})}function le(G,H){var g,w,c,p,S={label:0,sent:function(){if(1&c[0])throw c[1];return c[1]},trys:[],ops:[]};return p={next:m(0),throw:m(1),return:m(2)},"function"==typeof Symbol&&(p[Symbol.iterator]=function(){return this}),p;function m(d){return function(y){return function(d){if(g)throw new TypeError("Generator is already executing.");for(;S;)try{if(g=1,w&&(c=2&d[0]?w.return:d[0]?w.throw||((c=w.return)&&c.call(w),0):w.next)&&!(c=c.call(w,d[1])).done)return c;switch(w=0,c&&(d=[2&d[0],c.value]),d[0]){case 0:case 1:c=d;break;case 4:return S.label++,{value:d[1],done:!1};case 5:S.label++,w=d[1],d=[0];continue;case 7:d=S.ops.pop(),S.trys.pop();continue;default:if(!(c=(c=S.trys).length>0&&c[c.length-1])&&(6===d[0]||2===d[0])){S=0;continue}if(3===d[0]&&(!c||d[1]>c[0]&&d[1]=G.length&&(G=void 0),{value:G&&G[g++],done:!G}}};throw new TypeError(H?"Object is not iterable.":"Symbol.iterator is not defined.")}function we(G,H){var S="function"==typeof Symbol&&G[Symbol.iterator];if(!S)return G;var w,p,g=S.call(G),c=[];try{for(;(void 0===H||H-- >0)&&!(w=g.next()).done;)c.push(w.value)}catch(m){p={error:m}}finally{try{w&&!w.done&&(S=g.return)&&S.call(g)}finally{if(p)throw p.error}}return c}function fe(){for(var G=[],H=0;H1||m(C,j)})})}function m(C,j){try{!function(C){C.value instanceof ie?Promise.resolve(C.value.v).then(d,y):b(c[0][2],C)}(g[C](j))}catch(T){b(c[0][3],T)}}function d(C){m("next",C)}function y(C){m("throw",C)}function b(C,j){C(j),c.shift(),c.length&&m(c[0][0],c[0][1])}}function Re(G){var H,S;return H={},g("next"),g("throw",function(w){throw w}),g("return"),H[Symbol.iterator]=function(){return this},H;function g(w,c){H[w]=G[w]?function(p){return(S=!S)?{value:ie(G[w](p)),done:"return"===w}:c?c(p):p}:c}}function Ye(G){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var S,H=G[Symbol.asyncIterator];return H?H.call(G):(G=ue(G),S={},g("next"),g("throw"),g("return"),S[Symbol.asyncIterator]=function(){return this},S);function g(c){S[c]=G[c]&&function(p){return new Promise(function(m,I){!function(c,p,m,I){Promise.resolve(I).then(function(d){c({value:d,done:m})},p)}(m,I,(p=G[c](p)).done,p.value)})}}}function ut(G,H){return Object.defineProperty?Object.defineProperty(G,"raw",{value:H}):G.raw=H,G}function pt(G){if(G&&G.__esModule)return G;var H={};if(null!=G)for(var S in G)Object.hasOwnProperty.call(G,S)&&(H[S]=G[S]);return H.default=G,H}function Nt(G){return G&&G.__esModule?G:{default:G}}function Mt(G,H){if(!H.has(G))throw new TypeError("attempted to get private field on non-instance");return H.get(G)}function je(G,H,S){if(!H.has(G))throw new TypeError("attempted to set private field on non-instance");return H.set(G,S),S}},2217:(mt,de,W)=>{"use strict";W.r(de),W.d(de,{__extends:()=>se,__assign:()=>V,__rest:()=>ee,__decorate:()=>Ie,__param:()=>L,__metadata:()=>R,__awaiter:()=>D,__generator:()=>le,__createBinding:()=>pe,__exportStar:()=>he,__values:()=>ue,__read:()=>we,__spread:()=>fe,__spreadArrays:()=>ce,__await:()=>ie,__asyncGenerator:()=>Ve,__asyncDelegator:()=>Re,__asyncValues:()=>Ye,__makeTemplateObject:()=>ut,__importStar:()=>pt,__importDefault:()=>Nt,__classPrivateFieldGet:()=>Mt,__classPrivateFieldSet:()=>je});var Q=function(G,H){return(Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,g){S.__proto__=g}||function(S,g){for(var w in g)g.hasOwnProperty(w)&&(S[w]=g[w])})(G,H)};function se(G,H){function S(){this.constructor=G}Q(G,H),G.prototype=null===H?Object.create(H):(S.prototype=H.prototype,new S)}var V=function(){return(V=Object.assign||function(H){for(var S,g=1,w=arguments.length;g=0;m--)(p=G[m])&&(c=(w<3?p(c):w>3?p(H,S,c):p(H,S))||c);return w>3&&c&&Object.defineProperty(H,S,c),c}function L(G,H){return function(S,g){H(S,g,G)}}function R(G,H){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(G,H)}function D(G,H,S,g){return new(S||(S=Promise))(function(c,p){function m(y){try{d(g.next(y))}catch(b){p(b)}}function I(y){try{d(g.throw(y))}catch(b){p(b)}}function d(y){y.done?c(y.value):function(c){return c instanceof S?c:new S(function(p){p(c)})}(y.value).then(m,I)}d((g=g.apply(G,H||[])).next())})}function le(G,H){var g,w,c,p,S={label:0,sent:function(){if(1&c[0])throw c[1];return c[1]},trys:[],ops:[]};return p={next:m(0),throw:m(1),return:m(2)},"function"==typeof Symbol&&(p[Symbol.iterator]=function(){return this}),p;function m(d){return function(y){return function(d){if(g)throw new TypeError("Generator is already executing.");for(;S;)try{if(g=1,w&&(c=2&d[0]?w.return:d[0]?w.throw||((c=w.return)&&c.call(w),0):w.next)&&!(c=c.call(w,d[1])).done)return c;switch(w=0,c&&(d=[2&d[0],c.value]),d[0]){case 0:case 1:c=d;break;case 4:return S.label++,{value:d[1],done:!1};case 5:S.label++,w=d[1],d=[0];continue;case 7:d=S.ops.pop(),S.trys.pop();continue;default:if(!(c=(c=S.trys).length>0&&c[c.length-1])&&(6===d[0]||2===d[0])){S=0;continue}if(3===d[0]&&(!c||d[1]>c[0]&&d[1]=G.length&&(G=void 0),{value:G&&G[g++],done:!G}}};throw new TypeError(H?"Object is not iterable.":"Symbol.iterator is not defined.")}function we(G,H){var S="function"==typeof Symbol&&G[Symbol.iterator];if(!S)return G;var w,p,g=S.call(G),c=[];try{for(;(void 0===H||H-- >0)&&!(w=g.next()).done;)c.push(w.value)}catch(m){p={error:m}}finally{try{w&&!w.done&&(S=g.return)&&S.call(g)}finally{if(p)throw p.error}}return c}function fe(){for(var G=[],H=0;H1||m(C,j)})})}function m(C,j){try{!function(C){C.value instanceof ie?Promise.resolve(C.value.v).then(d,y):b(c[0][2],C)}(g[C](j))}catch(T){b(c[0][3],T)}}function d(C){m("next",C)}function y(C){m("throw",C)}function b(C,j){C(j),c.shift(),c.length&&m(c[0][0],c[0][1])}}function Re(G){var H,S;return H={},g("next"),g("throw",function(w){throw w}),g("return"),H[Symbol.iterator]=function(){return this},H;function g(w,c){H[w]=G[w]?function(p){return(S=!S)?{value:ie(G[w](p)),done:"return"===w}:c?c(p):p}:c}}function Ye(G){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var S,H=G[Symbol.asyncIterator];return H?H.call(G):(G=ue(G),S={},g("next"),g("throw"),g("return"),S[Symbol.asyncIterator]=function(){return this},S);function g(c){S[c]=G[c]&&function(p){return new Promise(function(m,I){!function(c,p,m,I){Promise.resolve(I).then(function(d){c({value:d,done:m})},p)}(m,I,(p=G[c](p)).done,p.value)})}}}function ut(G,H){return Object.defineProperty?Object.defineProperty(G,"raw",{value:H}):G.raw=H,G}function pt(G){if(G&&G.__esModule)return G;var H={};if(null!=G)for(var S in G)Object.hasOwnProperty.call(G,S)&&(H[S]=G[S]);return H.default=G,H}function Nt(G){return G&&G.__esModule?G:{default:G}}function Mt(G,H){if(!H.has(G))throw new TypeError("attempted to get private field on non-instance");return H.get(G)}function je(G,H,S){if(!H.has(G))throw new TypeError("attempted to set private field on non-instance");return H.set(G,S),S}},7181:(mt,de,W)=>{"use strict";W.r(de),W.d(de,{__extends:()=>se,__assign:()=>V,__rest:()=>ee,__decorate:()=>Ie,__param:()=>L,__metadata:()=>R,__awaiter:()=>D,__generator:()=>le,__createBinding:()=>pe,__exportStar:()=>he,__values:()=>ue,__read:()=>we,__spread:()=>fe,__spreadArrays:()=>ce,__await:()=>ie,__asyncGenerator:()=>Ve,__asyncDelegator:()=>Re,__asyncValues:()=>Ye,__makeTemplateObject:()=>ut,__importStar:()=>pt,__importDefault:()=>Nt,__classPrivateFieldGet:()=>Mt,__classPrivateFieldSet:()=>je});var Q=function(G,H){return(Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,g){S.__proto__=g}||function(S,g){for(var w in g)g.hasOwnProperty(w)&&(S[w]=g[w])})(G,H)};function se(G,H){function S(){this.constructor=G}Q(G,H),G.prototype=null===H?Object.create(H):(S.prototype=H.prototype,new S)}var V=function(){return(V=Object.assign||function(H){for(var S,g=1,w=arguments.length;g=0;m--)(p=G[m])&&(c=(w<3?p(c):w>3?p(H,S,c):p(H,S))||c);return w>3&&c&&Object.defineProperty(H,S,c),c}function L(G,H){return function(S,g){H(S,g,G)}}function R(G,H){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(G,H)}function D(G,H,S,g){return new(S||(S=Promise))(function(c,p){function m(y){try{d(g.next(y))}catch(b){p(b)}}function I(y){try{d(g.throw(y))}catch(b){p(b)}}function d(y){y.done?c(y.value):function(c){return c instanceof S?c:new S(function(p){p(c)})}(y.value).then(m,I)}d((g=g.apply(G,H||[])).next())})}function le(G,H){var g,w,c,p,S={label:0,sent:function(){if(1&c[0])throw c[1];return c[1]},trys:[],ops:[]};return p={next:m(0),throw:m(1),return:m(2)},"function"==typeof Symbol&&(p[Symbol.iterator]=function(){return this}),p;function m(d){return function(y){return function(d){if(g)throw new TypeError("Generator is already executing.");for(;S;)try{if(g=1,w&&(c=2&d[0]?w.return:d[0]?w.throw||((c=w.return)&&c.call(w),0):w.next)&&!(c=c.call(w,d[1])).done)return c;switch(w=0,c&&(d=[2&d[0],c.value]),d[0]){case 0:case 1:c=d;break;case 4:return S.label++,{value:d[1],done:!1};case 5:S.label++,w=d[1],d=[0];continue;case 7:d=S.ops.pop(),S.trys.pop();continue;default:if(!(c=(c=S.trys).length>0&&c[c.length-1])&&(6===d[0]||2===d[0])){S=0;continue}if(3===d[0]&&(!c||d[1]>c[0]&&d[1]=G.length&&(G=void 0),{value:G&&G[g++],done:!G}}};throw new TypeError(H?"Object is not iterable.":"Symbol.iterator is not defined.")}function we(G,H){var S="function"==typeof Symbol&&G[Symbol.iterator];if(!S)return G;var w,p,g=S.call(G),c=[];try{for(;(void 0===H||H-- >0)&&!(w=g.next()).done;)c.push(w.value)}catch(m){p={error:m}}finally{try{w&&!w.done&&(S=g.return)&&S.call(g)}finally{if(p)throw p.error}}return c}function fe(){for(var G=[],H=0;H1||m(C,j)})})}function m(C,j){try{!function(C){C.value instanceof ie?Promise.resolve(C.value.v).then(d,y):b(c[0][2],C)}(g[C](j))}catch(T){b(c[0][3],T)}}function d(C){m("next",C)}function y(C){m("throw",C)}function b(C,j){C(j),c.shift(),c.length&&m(c[0][0],c[0][1])}}function Re(G){var H,S;return H={},g("next"),g("throw",function(w){throw w}),g("return"),H[Symbol.iterator]=function(){return this},H;function g(w,c){H[w]=G[w]?function(p){return(S=!S)?{value:ie(G[w](p)),done:"return"===w}:c?c(p):p}:c}}function Ye(G){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var S,H=G[Symbol.asyncIterator];return H?H.call(G):(G=ue(G),S={},g("next"),g("throw"),g("return"),S[Symbol.asyncIterator]=function(){return this},S);function g(c){S[c]=G[c]&&function(p){return new Promise(function(m,I){!function(c,p,m,I){Promise.resolve(I).then(function(d){c({value:d,done:m})},p)}(m,I,(p=G[c](p)).done,p.value)})}}}function ut(G,H){return Object.defineProperty?Object.defineProperty(G,"raw",{value:H}):G.raw=H,G}function pt(G){if(G&&G.__esModule)return G;var H={};if(null!=G)for(var S in G)Object.hasOwnProperty.call(G,S)&&(H[S]=G[S]);return H.default=G,H}function Nt(G){return G&&G.__esModule?G:{default:G}}function Mt(G,H){if(!H.has(G))throw new TypeError("attempted to get private field on non-instance");return H.get(G)}function je(G,H,S){if(!H.has(G))throw new TypeError("attempted to set private field on non-instance");return H.set(G,S),S}},5404:(mt,de,W)=>{"use strict";W.d(de,{ZT:()=>se,pi:()=>V,gn:()=>Ie,w6:()=>R,mG:()=>D,Jh:()=>le,CR:()=>we});var Q=function(S,g){return(Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,c){w.__proto__=c}||function(w,c){for(var p in c)Object.prototype.hasOwnProperty.call(c,p)&&(w[p]=c[p])})(S,g)};function se(S,g){if("function"!=typeof g&&null!==g)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");function w(){this.constructor=S}Q(S,g),S.prototype=null===g?Object.create(g):(w.prototype=g.prototype,new w)}var V=function(){return(V=Object.assign||function(g){for(var w,c=1,p=arguments.length;c=0;d--)(I=S[d])&&(m=(p<3?I(m):p>3?I(g,w,m):I(g,w))||m);return p>3&&m&&Object.defineProperty(g,w,m),m}function R(S,g){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(S,g)}function D(S,g,w,c){return new(w||(w=Promise))(function(m,I){function d(C){try{b(c.next(C))}catch(j){I(j)}}function y(C){try{b(c.throw(C))}catch(j){I(j)}}function b(C){C.done?m(C.value):function(m){return m instanceof w?m:new w(function(I){I(m)})}(C.value).then(d,y)}b((c=c.apply(S,g||[])).next())})}function le(S,g){var c,p,m,I,w={label:0,sent:function(){if(1&m[0])throw m[1];return m[1]},trys:[],ops:[]};return I={next:d(0),throw:d(1),return:d(2)},"function"==typeof Symbol&&(I[Symbol.iterator]=function(){return this}),I;function d(b){return function(C){return function(b){if(c)throw new TypeError("Generator is already executing.");for(;w;)try{if(c=1,p&&(m=2&b[0]?p.return:b[0]?p.throw||((m=p.return)&&m.call(p),0):p.next)&&!(m=m.call(p,b[1])).done)return m;switch(p=0,m&&(b=[2&b[0],m.value]),b[0]){case 0:case 1:m=b;break;case 4:return w.label++,{value:b[1],done:!1};case 5:w.label++,p=b[1],b=[0];continue;case 7:b=w.ops.pop(),w.trys.pop();continue;default:if(!(m=(m=w.trys).length>0&&m[m.length-1])&&(6===b[0]||2===b[0])){w=0;continue}if(3===b[0]&&(!m||b[1]>m[0]&&b[1]0)&&!(p=c.next()).done;)m.push(p.value)}catch(d){I={error:d}}finally{try{p&&!p.done&&(w=c.return)&&w.call(c)}finally{if(I)throw I.error}}return m}},8255:mt=>{function de(W){return Promise.resolve().then(()=>{var Q=new Error("Cannot find module '"+W+"'");throw Q.code="MODULE_NOT_FOUND",Q})}de.keys=()=>[],de.resolve=de,de.id=8255,mt.exports=de},6538:()=>{},633:()=>{},680:(mt,de,W)=>{"use strict";function Q(V,ee,Ie,L,R,D,le){try{var pe=V[D](le),he=pe.value}catch(ue){return void Ie(ue)}pe.done?ee(he):Promise.resolve(he).then(L,R)}function se(V){return function(){var ee=this,Ie=arguments;return new Promise(function(L,R){var D=V.apply(ee,Ie);function le(he){Q(D,L,R,le,pe,"next",he)}function pe(he){Q(D,L,R,le,pe,"throw",he)}le(void 0)})}}W.d(de,{Z:()=>se})}},mt=>{mt(mt.s=4516)}]);