@aws-amplify/ui-vue 2.4.4 → 2.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +11 -11
- package/dist/index.js +17 -14
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -12,7 +12,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
12
12
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
13
|
PERFORMANCE OF THIS SOFTWARE.
|
|
14
14
|
***************************************************************************** */var R=function(){return R=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},R.apply(this,arguments)};function ii(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function q(e,t,n,r){return new(n||(n=Promise))(function(a,i){function s(d){try{c(r.next(d))}catch(l){i(l)}}function u(d){try{c(r.throw(d))}catch(l){i(l)}}function c(d){var l;d.done?a(d.value):(l=d.value,l instanceof n?l:new n(function(h){h(l)})).then(s,u)}c((r=r.apply(e,t||[])).next())})}function W(e,t){var n,r,a,i,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(c){return function(d){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(a=2&l[0]?r.return:l[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,l[1])).done)return a;switch(r=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return s.label++,{value:l[1],done:!1};case 5:s.label++,r=l[1],l=[0];continue;case 7:l=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!((a=a.length>0&&a[a.length-1])||l[0]!==6&&l[0]!==2)){s=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){s.label=l[1];break}if(l[0]===6&&s.label<a[1]){s.label=a[1],a=l;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(l);break}a[2]&&s.ops.pop(),s.trys.pop();continue}l=t.call(e,s)}catch(h){l=[6,h],r=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([c,d])}}}function Oe(e,t,n){if(n||arguments.length===2)for(var r,a=0,i=t.length;a<i;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}var Yc=["birthdate","email","family_name","given_name","middle_name","name","nickname","phone_number","preferred_username","profile","website"],Jc=["username","email","phone_number"],Zc=Oe(Oe(Oe([],Jc,!0),Yc,!0),["confirmation_code","password","confirm_password"],!1),vr=function(e){var t,n=(t=e==null?void 0:e.context.config)===null||t===void 0?void 0:t.loginMechanisms;return(n!=null?n:["username"])[0]},Qc=function(e){var t=function(n){return function(r){return e({type:n,data:r})}};return{resendCode:t("RESEND"),signOut:t("SIGN_OUT"),submitForm:t("SUBMIT"),updateForm:t("CHANGE"),updateBlur:t("BLUR"),toFederatedSignIn:t("FEDERATED_SIGN_IN"),toResetPassword:t("RESET_PASSWORD"),toSignIn:t("SIGN_IN"),toSignUp:t("SIGN_UP"),skipVerification:t("SKIP")}},Xc=function(e){var t,n,r=(t=e.context)===null||t===void 0?void 0:t.user,a=be(e),i=zr(e),s=i==null?void 0:i.remoteError,u=R({},i==null?void 0:i.validationError),c=i==null?void 0:i.codeDeliveryDetails,d=Object.keys(u).length>0,l=e.hasTag("pending")||((n=be(e))===null||n===void 0?void 0:n.hasTag("pending")),h=function(){switch(!0){case e.matches("idle"):return"idle";case e.matches("setup"):return"setup";case e.matches("signOut"):return"signOut";case e.matches("authenticated"):return"authenticated";case(a==null?void 0:a.matches("confirmSignUp")):return"confirmSignUp";case(a==null?void 0:a.matches("confirmSignIn")):return"confirmSignIn";case(a==null?void 0:a.matches("setupTOTP")):return"setupTOTP";case(a==null?void 0:a.matches("signIn")):return"signIn";case(a==null?void 0:a.matches("signUp")):return"signUp";case(a==null?void 0:a.matches("forceNewPassword")):return"forceNewPassword";case(a==null?void 0:a.matches("resetPassword")):return"resetPassword";case(a==null?void 0:a.matches("confirmResetPassword")):return"confirmResetPassword";case(a==null?void 0:a.matches("verifyUser")):return"verifyUser";case(a==null?void 0:a.matches("confirmVerifyUser")):return"confirmVerifyUser";default:return console.debug("Cannot infer `route` from Authenticator state:",e.value),null}}(),f=function(p){switch(p){case"idle":case"setup":return"configuring";case"authenticated":return"authenticated";default:return"unauthenticated"}}(h);return{error:s,hasValidationErrors:d,isPending:l,route:h,authStatus:f,user:r,validationErrors:u,codeDeliveryDetails:c}},si=function(e){var t=e.send,n=e.state,r=Qc(t),a=Xc(n);return R(R({},r),a)},el=["+1","+7","+20","+27","+30","+31","+32","+33","+34","+36","+39","+40","+41","+43","+44","+45","+46","+47","+48","+49","+51","+52","+53","+54","+55","+56","+57","+58","+60","+61","+62","+63","+64","+65","+66","+81","+82","+84","+86","+90","+91","+92","+93","+94","+95","+98","+212","+213","+216","+218","+220","+221","+222","+223","+224","+225","+226","+227","+228","+229","+230","+231","+232","+233","+234","+235","+236","+237","+238","+239","+240","+241","+242","+243","+244","+245","+246","+248","+249","+250","+251","+252","+253","+254","+255","+256","+257","+258","+260","+261","+262","+263","+264","+265","+266","+267","+268","+269","+290","+291","+297","+298","+299","+345","+350","+351","+352","+353","+354","+355","+356","+357","+358","+359","+370","+371","+372","+373","+374","+375","+376","+377","+378","+379","+380","+381","+382","+385","+386","+387","+389","+420","+421","+423","+500","+501","+502","+503","+504","+505","+506","+507","+508","+509","+537","+590","+591","+593","+594","+595","+596","+597","+598","+599","+670","+672","+673","+674","+675","+676","+677","+678","+679","+680","+681","+682","+683","+685","+686","+687","+688","+689","+690","+691","+692","+850","+852","+853","+855","+856","+872","+880","+886","+960","+961","+962","+963","+964","+965","+966","+967","+968","+970","+971","+972","+973","+974","+975","+976","+977","+992","+993","+994","+995","+996","+998"],tl={"Account recovery requires verified contact information":"Zur\xFCcksetzen des Account ben\xF6tigt einen verifizierten Account","An account with the given email already exists.":"Ein Account mit dieser Email existiert bereits.","Back to Sign In":"Zur\xFCck zur Anmeldung","Change Password":"Passwort \xE4ndern",Code:"Code",Confirm:"Best\xE4tigen","Confirm Password":"Passwort best\xE4tigen","Confirm a Code":"Code best\xE4tigen","Confirm Sign In":"Anmeldung best\xE4tigen","Confirm Sign Up":"Registrierung best\xE4tigen","Confirm SMS Code":"SMS-Code best\xE4tigen","Confirm TOTP Code":"TOTP-Code best\xE4tigen","Confirmation Code":"Best\xE4tigungs-Code","Create a new account":"Einen neuen Account erstellen","Create account":"Hier registrieren","Create Account":"Account erstellen","Creating Account":"Account wird erstellt",Email:"Email","Enter your code":"Geben Sie Ihren Code ein","Enter your password":"Geben Sie Ihr Passwort ein","Enter your username":"Geben Sie Ihren Benutzernamen ein","Enter your phone number":"Geben Sie Ihre Telefonnummer ein","Enter your email":"Geben Sie ihre Email ein","Forgot your password?":"Passwort vergessen? ","Forgot Password":"Passwort vergessen","Hide password":"Passwort verbergen","Have an account? ":"Schon registriert? ","Incorrect username or password":"Falscher Benutzername oder falsches Passwort","Invalid password format":"Ung\xFCltiges Passwort-Format","Invalid phone number format":"Ung\xFCltiges Telefonummern-Format. Benutze eine Nummer im Format: +12345678900","Lost your code? ":"Code verloren? ","New Password":"Neues Passwort","No account? ":"Kein Account? ",or:"oder",Password:"Passwort","Password attempts exceeded":"Die maximale Anzahl der fehlerhaften Anmeldeversuche wurde erreicht","Phone Number":"Telefonnummer","Resend Code":"Code erneut senden","Reset password":"Passwort zur\xFCcksetzen","Reset your password":"Zur\xFCcksetzen des Passworts","Send Code":"Code senden","Sign in":"Anmelden","Sign In":"Anmelden","Sign in to your account":"Melden Sie sich mit Ihrem Account an","Sign Out":"Abmelden","Sign Up":"Registrieren",Skip:"\xDCberspringen",Submit:"Abschicken","User already exists":"Dieser Benutzer existiert bereits","User does not exist":"Dieser Benutzer existiert nicht",Username:"Benutzername","Username cannot be empty":"Benutzername darf nicht leer sein",Verify:"Verifizieren","Verify Contact":"Kontakt verifizieren"},nl={"Account recovery requires verified contact information":"Account recovery requires verified contact information","Back to Sign In":"Back to Sign In","Change Password":"Change Password",Changing:"Changing",Code:"Code",Confirm:"Confirm","Confirm Password":"Confirm Password","Confirm Sign Up":"Confirm Sign Up","Confirm SMS Code":"Confirm SMS Code","Confirm TOTP Code":"Confirm TOTP Code","Confirmation Code":"Confirmation Code",Confirming:"Confirming","Create Account":"Create Account","Creating Account":"Creating Account",Email:"Email","Enter your code":"Enter your code","Enter your username":"Enter your username","Enter your phone number":"Enter your phone number","Enter your email":"Enter your email","Forgot your password?":"Forgot your password?","Hide password":"Hide password",Loading:"Loading",Username:"Username","New password":"New password",Password:"Password","Phone Number":"Phone Number","Resend Code":"Resend Code","Reset your password":"Reset your password","Reset your Password":"Reset your Password","Send Code":"Send Code","Send code":"Send code",Sending:"Sending","Setup TOTP":"Setup TOTP","Show password":"Show password","Sign in":"Sign in","Sign In":"Sign In","Sign In with Amazon":"Sign In with Amazon","Sign In with Apple":"Sign In with Apple","Sign In with Facebook":"Sign In with Facebook","Sign In with Google":"Sign In with Google","Sign in to your account":"Sign in to your account","Create a new account":"Create a new account","Signing in":"Signing in",Skip:"Skip",Submit:"Submit",Submitting:"Submitting","Verify Contact":"Verify Contact",Verify:"Verify"},rl={"Account recovery requires verified contact information":"La recuperaci\xF3n de la cuenta requiere informaci\xF3n de contacto verificada","Back to Sign In":"Volver a inicio de sesi\xF3n","Change Password":"Cambiar contrase\xF1a",Changing:"Cambiando",Code:"C\xF3digo",Confirm:"Confirmar","Confirm a Code":"Confirmar un c\xF3digo","Confirm Password":"Confirmar contrase\xF1a","Confirm Sign In":"Confirmar inicio de sesi\xF3n","Confirm Sign Up":"Confirmar registro","Confirm TOTP Code":"Confirmar c\xF3digo TOTP","Confirmation Code":"C\xF3digo de confirmaci\xF3n",Confirming:"Confirmando","Create a new account":"Crear una cuenta nueva","Creating Account":"Creando cuenta",Email:"Email","Forgot Password":"Olvid\xE9 mi contrase\xF1a","Incorrect username or password":"Nombre de usuario o contrase\xF1a incorrecta","Invalid password format":"Formato de contrase\xF1a inv\xE1lido","Invalid phone number format":"Formato de n\xFAmero de tel\xE9fono inv\xE1lido","Forgot your password?":"\xBFOlvid\xF3 su contrase\xF1a?","Hide password":"Ocultar contrase\xF1a","Loading...":"Cargando...","New Password":"Nueva contrase\xF1a",or:"o",Password:"Contrase\xF1a","Phone Number":"N\xFAmero de tel\xE9fono","Resend a Code":"Reenviar un c\xF3digo","Reset your password":"Restablecer su contrase\xF1a","Reset your Password":"Restablecer su Contrase\xF1a","Resend Code":"Reenviar c\xF3digo","Send Code":"Enviar c\xF3digo",Sending:"Enviando","Setup TOTP":"Configurar TOTP","Show password":"Mostrar contrase\xF1a","Sign in":"Iniciar sesi\xF3n","Sign In":"Iniciar Sesi\xF3n","Sign In with Amazon":"Iniciar Sesi\xF3n con Amazon","Sign In with Apple":"Iniciar Sesi\xF3n con Apple","Sign In with Facebook":"Iniciar Sesi\xF3n con Facebook","Sign In with Google":"Iniciar Sesi\xF3n con Google","Sign in to your account":"Iniciar sesi\xF3n en tu cuenta","Sign Out":"Cerrar sesi\xF3n","Sign Up":"Crear cuenta","Signing in":"Iniciando sesi\xF3n",Skip:"Omitir",Submit:"Enviar","User already exists":"El usuario ya existe","User does not exist":"El usuario no existe",Username:"Nombre de usuario","Username cannot be empty":"El nombre de usuario no puede estar vac\xEDo",Verify:"Verificar","Verify Contact":"Verificar contacto"},ol={"Account recovery requires verified contact information":"La r\xE9cup\xE9ration du compte n\xE9cessite des informations de contact v\xE9rifi\xE9es","An account with the given email already exists.":"Un utilisateur avec cette adresse email existe d\xE9j\xE0.","Back to Sign In":"Retour \xE0 la connexion",Change:"Modifier","Change Password":"Modifier le mot de passe",Code:"Code",Confirm:"Confirmer","Confirm a Code":"Confirmer un code","Confirm Password":"Confirmez le mot de passe","Confirm Sign In":"Confirmer la connexion","Confirm Sign Up":"Confirmer l'inscription","Confirm SMS Code":"Confirmer le code SMS","Confirm TOTP Code":"Confirmer le code TOTP","Confirmation Code":"Code de confirmation","Create a new account":"Cr\xE9er un nouveau compte","Create account":"Cr\xE9er un compte","Create Account":"Cr\xE9er un compte",Email:"Email","Enter your code":"Saisissez cotre code de confirmation","Enter your email":"Saisissez votre adresse email","Enter your password":"Saisissez votre mot de passe","Enter your phone number":"Saisissez votre num\xE9ro de t\xE9l\xE9phone","Enter your username":"Saisissez votre nom d'utilisateur","Forgot Password":"Mot de passe oubli\xE9","Forgot your password?":"Mot de passe oubli\xE9 ? ","Have an account? ":"D\xE9j\xE0 un compte ? ",Hello:"Bonjour","Incorrect username or password":"Identifiant ou mot de passe incorrect","Invalid password format":"Format de mot de passe invalide","Invalid phone number format":"Format de num\xE9ro de t\xE9l\xE9phone invalide. Veuillez utiliser un format +12345678900","Loading...":"Chargement...","Lost your code? ":"Vous avez perdu votre code ? ","Network error":"Erreur r\xE9seau","New Password":"Nouveau mot de passe","No account? ":"Pas de compte ? ",or:"ou",Password:"Mot de passe","Phone Number":"Num\xE9ro de t\xE9l\xE9phone","Resend a Code":"Renvoyer un code","Resend Code":"Renvoyer le code","Reset password":"R\xE9initialisez votre mot de passe","Reset your password":"R\xE9initialisez votre mot de passe",Send:"Envoyer","Send Code":"M'envoyer un code","Sign in":"Se connecter","Sign In":"Se connecter","Sign in to your account":"Connexion \xE0 votre compte","Sign In with Amazon":"Se connecter avec Amazon","Sign In with AWS":"Se connecter avec AWS","Sign In with Facebook":"Se connecter avec Facebook","Sign In with Google":"Se connecter avec Google","Sign Out":"D\xE9connexion","Sign Up":"S'inscrire",Skip:"Passer",SMS:"SMS",Submit:"Soumettre","User already exists":"L'utilisateur existe d\xE9j\xE0","User does not exist":"L'utilisateur n'existe pas",Username:"Nom d'utilisateur","Username cannot be empty":"Le nom d'utilisateur doit \xEAtre renseign\xE9","Username/client id combination not found.":"L'utilisateur n'existe pas",Verify:"V\xE9rifier","Verify Contact":"V\xE9rifier le contact"},al={"Account recovery requires verified contact information":"Il ripristino dell'account richiede informazioni di contatto verificate","An account with the given email already exists.":"Questa email \xE8 gi\xE0 utilizzata da un'altro account.","Back to Sign In":"Torna alla schermata di accesso","Change Password":"Cambia la password",Code:"Codice",Confirm:"Conferma","Confirm a Code":"Conferma un codice","Confirm Password":"Conferma la password","Confirm Sign In":"Conferma l'accesso","Confirm Sign Up":"Conferma registrazione","Confirmation Code":"Codice di verifica","Create a new account":"Crea un nuovo account","Create account":"Crea account","Create Account":"Crea Account",Email:"Email","Enter your password":"Inserisci la tua password","Enter your username":"Inserisci il tuo nome utente","Forgot Password":"Password dimenticata","Forgot your password?":"Password dimenticata?","Have an account? ":"Gi\xE0 registrato?","Incorrect username or password":"Nome utente o password errati","Invalid password format":"Formato della password non valido","Invalid phone number format":"Formato del numero di telefono non valido","Lost your code?":"Codice smarrito?","New Password":"Nuova password",or:"o","No account? ":"Non hai un account?",Password:"Password","Password attempts exceeded":"Il numero massimo di tentativi di accesso falliti \xE8 stato raggiunto","Phone Number":"Numero di telefono","Resend Code":"Rispedisci codice","Reset password":"Reimposta password","Reset your password":"Reimposta la tua password","Send Code":"Invia codice","Sign in":"Accesso","Sign In":"Accesso","Sign in to your account":"Accedi al tuo account","Sign Out":"Esci","Sign Up":"Registrati",Skip:"Salta",Submit:"Invia","User already exists":"Utente gi\xE0 esistente","User does not exist":"Utente inesistente",Username:"Nome utente","Username cannot be empty":"Il nome utente non pu\xF2 essere vuoto",Verify:"Verifica","Verify Contact":"Verifica contatto"},il={"Account recovery requires verified contact information":"\u30A2\u30AB\u30A6\u30F3\u30C8\u306E\u5FA9\u65E7\u306B\u306F\u78BA\u8A8D\u6E08\u307F\u306E\u9023\u7D61\u5148\u304C\u5FC5\u8981\u3067\u3059","An account with the given email already exists.":"\u5165\u529B\u3055\u308C\u305F\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u306E\u30A2\u30AB\u30A6\u30F3\u30C8\u304C\u65E2\u306B\u5B58\u5728\u3057\u307E\u3059","Back to Sign In":"\u30B5\u30A4\u30F3\u30A4\u30F3\u306B\u623B\u308B","Change Password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5909\u3048\u308B ",Code:"\u30B3\u30FC\u30C9",Confirm:"\u78BA\u5B9A","Confirm a Code":"\u30B3\u30FC\u30C9\u3092\u78BA\u8A8D","Confirm Password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u306E\u78BA\u8A8D","Confirm Sign In":"\u30B5\u30A4\u30F3\u30A4\u30F3\u3059\u308B","Confirm Sign Up":"\u767B\u9332\u3059\u308B","Confirmation Code":"\u78BA\u8A8D\u30B3\u30FC\u30C9","Create a new account":"\u65B0\u3057\u3044\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u4F5C\u308B","Create account":"\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u4F5C\u308B ","Create Account":"\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u4F5C\u308B",Email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9","Enter your password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5165\u529B ","Enter your username":"\u30E6\u30FC\u30B6\u30FC\u540D\u3092\u5165\u529B ","Forgot Password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5FD8\u308C\u305F ","Forgot your password?":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5FD8\u308C\u307E\u3057\u305F\u304B\uFF1F ","Have an account? ":"\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u6301\u3063\u3066\u3044\u307E\u3059\u304B\uFF1F","Incorrect username or password":"\u30E6\u30FC\u30B6\u30FC\u540D\u304B\u30D1\u30B9\u30EF\u30FC\u30C9\u304C\u7570\u306A\u308A\u307E\u3059 ","Invalid password format":"\u30D1\u30B9\u30EF\u30FC\u30C9\u306E\u5F62\u5F0F\u304C\u7121\u52B9\u3067\u3059 ","Invalid phone number format":`\u4E0D\u6B63\u306A\u96FB\u8A71\u756A\u53F7\u306E\u5F62\u5F0F\u3067\u3059\u3002
|
|
15
|
-
+12345678900 \u306E\u5F62\u5F0F\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044`,"Lost your code? ":"\u30B3\u30FC\u30C9\u3092\u5931\u304F\u3057\u307E\u3057\u305F\u304B\uFF1F","New Password":"\u65B0\u3057\u3044\u30D1\u30B9\u30EF\u30FC\u30C9","No account? ":"\u30A2\u30AB\u30A6\u30F3\u30C8\u304C\u7121\u3044\u3068\u304D ",or:"\u53C8\u306F",Password:"\u30D1\u30B9\u30EF\u30FC\u30C9 ","Password attempts exceeded":"\u30B5\u30A4\u30F3\u30A4\u30F3\u306E\u8A66\u884C\u56DE\u6570\u304C\u4E0A\u9650\u306B\u9054\u3057\u307E\u3057\u305F","Phone Number":"\u96FB\u8A71\u756A\u53F7","Resend Code":"\u30B3\u30FC\u30C9\u3092\u518D\u9001\u4FE1","Reset password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u30EA\u30BB\u30C3\u30C8 ","Reset your password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u30EA\u30BB\u30C3\u30C8\u3059\u308B","Send Code":"\u30B3\u30FC\u30C9\u3092\u9001\u4FE1","Sign in":"\u30B5\u30A4\u30F3\u30A4\u30F3","Sign In":"\u30B5\u30A4\u30F3\u30A4\u30F3 ","Sign in to your account":"\u30A2\u30AB\u30A6\u30F3\u30C8\u306B\u30B5\u30A4\u30F3\u30A4\u30F3 ","Sign In with Amazon":"Amazon\u3067\u30B5\u30A4\u30F3\u30A4\u30F3","Sign In with Facebook":"Facebook\u3067\u30B5\u30A4\u30F3\u30A4\u30F3","Sign In with Google":"Google\u3067\u30B5\u30A4\u30F3\u30A4\u30F3","Sign Out":"\u30B5\u30A4\u30F3\u30A2\u30A6\u30C8 ","Sign Up":"\u767B\u9332 ",Skip:"\u30B9\u30AD\u30C3\u30D7",Submit:"\u9001\u4FE1","User already exists":"\u65E2\u306B\u30E6\u30FC\u30B6\u30FC\u304C\u5B58\u5728\u3057\u3066\u3044\u307E\u3059 ","User does not exist":"\u30E6\u30FC\u30B6\u30FC\u304C\u5B58\u5728\u3057\u307E\u305B\u3093 ",Username:"\u30E6\u30FC\u30B6\u30FC\u540D ","Username cannot be empty":"\u30E6\u30FC\u30B6\u30FC\u540D\u306F\u5165\u529B\u5FC5\u9808\u3067\u3059",Verify:"\u78BA\u8A8D","Verify Contact":"\u9023\u7D61\u5148\u3092\u78BA\u8A8D"},sl={"Back to Sign In":"\uB85C\uADF8\uC778\uC73C\uB85C \uB3CC\uC544\uAC00\uAE30",Birthdate:"\uC0DD\uB144\uC6D4\uC77C","Change Password":"\uBE44\uBC00\uBC88\uD638 \uBCC0\uACBD\uD558\uAE30",Changing:"\uBCC0\uACBD\uC911",Code:"\uCF54\uB4DC","Confirm Password":"\uBE44\uBC00\uBC88\uD638 \uC7AC\uD655\uC778","Reset your Password":"\uBE44\uBC00\uBC88\uD638 \uC7AC\uC124\uC815","Confirm Sign Up":"\uD68C\uC6D0\uAC00\uC785 \uD655\uC778","Confirm SMS Code":"\uD734\uB300\uD3F0 \uBCF8\uC778 \uD655\uC778","Confirm TOTP Code":"TOTP \uC778\uC99D\uBC88\uD638 \uD655\uC778",Confirm:"\uD655\uC778","Confirmation Code":"\uC778\uC99D\uBC88\uD638",Confirming:"\uD655\uC778\uC911","Create Account":"\uD68C\uC6D0\uAC00\uC785","Creating Account":"\uD68C\uC6D0\uAC00\uC785\uC911",Email:"\uC774\uBA54\uC77C","Enter your code":"\uC778\uC99D\uBC88\uD638\uB97C \uC785\uB825\uD574\uC8FC\uC138\uC694","Enter your username":"\uC544\uC774\uB514\uB97C \uC785\uB825\uD574\uC8FC\uC138\uC694","Family Name":"\uC131","Given Name":"\uC774\uB984","Forgot your password?":"\uBE44\uBC00\uBC88\uD638\uB97C \uC78A\uC73C\uC168\uB098\uC694?","Hide password":"\uBE44\uBC00\uBC88\uD638 \uC228\uAE30\uAE30",Loading:"\uB85C\uB529\uC911",Username:"\uC544\uC774\uB514",Name:"\uC131\uD568",Nickname:"\uB2C9\uB124\uC784","New password":"\uC0C8 \uBE44\uBC00\uBC88\uD638",Password:"\uBE44\uBC00\uBC88\uD638","Phone Number":"\uC804\uD654\uBC88\uD638","Preferred Username":"\uB2C9\uB124\uC784",Profile:"\uD504\uB85C\uD544","Resend Code":"\uC778\uC99D\uBC88\uD638 \uC7AC\uC804\uC1A1","Reset your password":"\uBE44\uBC00\uBC88\uD638 \uC7AC\uC124\uC815","Reset Password":"\uBE44\uBC00\uBC88\uD638 \uC7AC\uC124\uC815","Send code":"\uC778\uC99D\uCF54\uB4DC \uBCF4\uB0B4\uAE30",Sending:"\uC804\uC1A1\uC911","Setup TOTP":"TOTP \uC124\uC815\uD558\uAE30","Show password":"\uBE44\uBC00\uBC88\uD638 \uBCF4\uC774\uAE30","Sign in":"\uB85C\uADF8\uC778","Sign In":"\uB85C\uADF8\uC778","Sign In with Amazon":"Amazon \uB85C\uADF8\uC778","Sign In with Apple":"Apple \uB85C\uADF8\uC778","Sign In with Facebook":"Facebook \uB85C\uADF8\uC778","Sign In with Google":"Google \uB85C\uADF8\uC778","Sign in to your account":"\uB85C\uADF8\uC778","Create a new account":"\uD68C\uC6D0\uAC00\uC785","Signing in":"\uB85C\uADF8\uC778\uC911",Skip:"\uB2E4\uC74C\uC5D0 \uD558\uAE30",Submit:"\uD655\uC778",Submitting:"\uD655\uC778\uC911","Verify Contact":"\uC5F0\uB77D\uCC98 \uD655\uC778","Account recovery requires verified contact information":"\uACC4\uC815 \uBCF5\uAD6C\uB97C \uC704\uD574 \uC5F0\uB77D\uCC98 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4",Verify:"\uC778\uC99D",Website:"\uC6F9\uC0AC\uC774\uD2B8"},ul={"Back to Sign In":"Terug naar inloggen","Change Password":"Wachtwoord wijzigen",Changing:"Wordt aangepast",Code:"Code","Confirm Password":"Bevestig Wachtwoord","Reset your Password":"Wachtwoord resetten","Confirm Sign Up":"Bevestig inschrijving","Confirm SMS Code":"Bevestig SMS Code","Confirm TOTP Code":"Bevestig TOTP Code",Confirm:"Bevestig","Confirmation Code":"Bevestigingscode",Confirming:"Bevestigen","Create Account":"Account aanmaken","Creating Account":"Account wordt aangemaakt",Email:"E-mail","Enter your code":"Vul je code in","Enter your username":"Vul je gebruikersnaam in","Enter your phone number":"Vul je telefoonnummer in","Enter your email":"Vul je e-mail in","Forgot your password?":"Wachtwoord vergeten? ","Hide password":"Verberg wachtwoord",Loading:"Laden",Username:"Gebruikersnaam","New password":"Nieuw wachtwoord",Password:"Wachtwoord","Phone Number":"Telefoonnummer","Resend Code":"Verstuur code nogmaals","Reset your password":"Reset je wachtwoord","Send Code":"Verstuur Code","Send code":"Verstuur code",Sending:"Versturen","Setup TOTP":"TOTP Instellingen","Show password":"Toon wachtwoord","Sign in":"Inloggen","Sign In":"Inloggen","Sign In with Amazon":"Inloggen met Amazon","Sign In with Apple":"Inloggen met Apple","Sign In with Facebook":"Inloggen met Facebook","Sign In with Google":"Inloggen met Google","Sign in to your account":"Inloggen op je account","Create a new account":"Nieuw account aanmaken","Signing in":"Inloggen",Skip:"Overslaan",Submit:"Versturen",Submitting:"Wordt verstuurd","Verify Contact":"Verifieer Contact","Account recovery requires verified contact information":"Accountherstel vereist geverifieerde contactgegevens",Verify:"Verifieer"},cl={"Back to Sign In":"Powr\xF3t do logowania",Birthdate:"Data urodzenia","Change Password":"Zmie\u0144 has\u0142o",Changing:"Zmienianie",Code:"Kod","Confirm Password":"Potwierd\u017A Has\u0142o","Reset your Password":"Zresetuj swoje has\u0142o","Confirm Sign Up":"Potwierd\u017A rejestracj\u0119","Confirm SMS Code":"Potwierd\u017A kod SMS","Confirm TOTP Code":"Potwierd\u017A has\u0142o jednorazowe",Confirm:"Potwierd\u017A","Confirmation Code":"Kod potwierdzenia",Confirming:"Potwierdzanie","Create Account":"Utw\xF3rz konto","Creating Account":"Tworzenie konta",Email:"E-mail","Enter your code":"Wprowad\u017A sw\xF3j kod","Enter your username":"Wprowad\u017A swoj\u0105 nazw\u0119 u\u017Cytkownika","Family Name":"Nazwisko","Given Name":"Pierwsze imi\u0119","Forgot your password?":"Zapomnia\u0142e\u015B has\u0142a? ","Hide password":"Ukryj has\u0142o",Loading:"\u0141adowanie",Username:"Nazwa u\u017Cytkownika","Middle Name":"Drugie imi\u0119",Name:"Imi\u0119 i nazwisko",Nickname:"Pseudonim","New password":"Nowe has\u0142o",Password:"Has\u0142o","Phone Number":"Numer telefonu","Preferred Username":"Preferowana nazwa u\u017Cytkownika",Profile:"Profil","Resend Code":"Wy\u015Blij kod ponownie","Reset your password":"Zresetuj swoje has\u0142o","Send Code":"Zresetuj has\u0142o","Send code":"Wy\u015Blij kod",Sending:"Wysy\u0142anie","Setup TOTP":"Konfiguruj TOTP","Show password":"Poka\u017C has\u0142o","Sign in":"Zaloguj","Sign In":"Logowanie","Sign In with Amazon":"Zaloguj z Amazon","Sign In with Apple":"Zaloguj z Apple","Sign In with Facebook":"Zaloguj z Facebook","Sign In with Google":"Zaloguj z Google","Sign in to your account":"Zaloguj si\u0119 na swoje konto","Create a new account":"Utw\xF3rz nowe konto","Signing in":"Logowanie",Skip:"Pomi\u0144",Submit:"Wy\u015Blij",Submitting:"Wysy\u0142anie","Verify Contact":"Weryfikacja danych kontaktowych","Account recovery requires verified contact information":"Odzyskanie konta wymaga zweryfikowanych danych kontaktowych",Verify:"Zweryfikuj",Website:"Strona internetowa"},ll={"Back to Sign In":"Voltar para Entrar","Change Password":"Mudar senha",Changing:"Mudando",Code:"C\xF3digo","Confirm Password":"Confirme a Senha","Reset your Password":"Redefina sua senha","Confirm Sign Up":"Confirmar inscri\xE7\xE3o","Confirm SMS Code":"Confirme o c\xF3digo SMS","Confirm TOTP Code":"Confirme o c\xF3digo TOTP",Confirm:"confirme","Confirmation Code":"C\xF3digo de confirma\xE7\xE3o",Confirming:"Confirmando","Create Account":"Criar Conta","Creating Account":"Criando conta",Email:"O email","Enter your code":"Insira seu c\xF3digo","Enter your username":"entre com seu nome de usu\xE1rio","Enter your phone number":"Digite seu n\xFAmero de telefone","Enter your email":"Digite seu e-mail","Forgot your password?":"Esqueceu sua senha? ","Hide password":"Esconder a senha",Loading:"Carregando",Username:"Nome do usu\xE1rio","New password":"Nova Senha",Password:"Senha","Phone Number":"N\xFAmero de telefone","Resend Code":"Reenviar c\xF3digo","Reset your password":"Redefina sua senha","Send Code":"Enviar c\xF3digo","Send code":"Enviar c\xF3digo",Sending:"Enviando","Setup TOTP":"Configurar TOTP","Show password":"Mostrar senha","Sign In":"Entrar","Sign in":"Entrar","Sign In with Amazon":"Entrar com a Amazon","Sign In with Apple":"Entrar com a Apple","Sign In with Facebook":"Entrar com o Facebook","Sign In with Google":"Fa\xE7a login no Google","Sign in to your account":"Fa\xE7a login em sua conta","Create a new account":"Criar uma nova conta","Signing in":"Entrando",Skip:"Pular",Submit:"Enviar",Submitting:"Enviando","Verify Contact":"Verificar contato","Account recovery requires verified contact information":"A recupera\xE7\xE3o da conta requer informa\xE7\xF5es de contato verificadas",Verify:"Verificar"},dl={"Account recovery requires verified contact information":"\u8D26\u6237\u6062\u590D\u9700\u8981\u9A8C\u8BC1\u8FC7\u7684\u8054\u7CFB\u65B9\u5F0F","Back to Sign In":"\u56DE\u5230\u767B\u5F55","Change Password":"\u66F4\u6539\u5BC6\u7801",Code:"\u786E\u8BA4\u7801",Confirm:"\u786E\u8BA4","Confirm a Code":"\u786E\u8BA4\u7801","Confirm Password":"\u786E\u8BA4\u5BC6\u7801","Confirm Sign In":"\u786E\u8BA4\u767B\u5F55","Confirm Sign Up":"\u786E\u8BA4\u6CE8\u518C",Email:"\u90AE\u7BB1","Forgot Password":"\u5FD8\u8BB0\u5BC6\u7801","Incorrect username or password":"\u7528\u6237\u540D\u6216\u5BC6\u7801\u9519\u8BEF","Invalid password format":"\u5BC6\u7801\u683C\u5F0F\u9519\u8BEF","Invalid phone number format":"\u7535\u8BDD\u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u4F7F\u7528\u683C\u5F0F +12345678900","New Password":"\u65B0\u5BC6\u7801",or:"\u6216\u8005",Password:"\u5BC6\u7801","Phone Number":"\u7535\u8BDD","Resend a Code":"\u91CD\u53D1\u786E\u8BA4\u7801","Send Code":"\u53D1\u9001\u786E\u8BA4\u7801","Sign In":"\u767B\u5F55","Sign Out":"\u9000\u51FA","Sign Up":"\u6CE8\u518C",Skip:"\u8DF3\u8FC7",Submit:"\u63D0\u4EA4","User already exists":"\u7528\u6237\u5DF2\u7ECF\u5B58\u5728","User does not exist":"\u7528\u6237\u4E0D\u5B58\u5728",Username:"\u7528\u6237\u540D",Verify:"\u9A8C\u8BC1","Verify Contact":"\u9A8C\u8BC1\u8054\u7CFB\u65B9\u5F0F"},fl={"Account recovery requires verified contact information":"F\xF6r att \xE5terst\xE4lla kontot beh\xF6ver du ett verifierat konto","An account with the given email already exists.":"Det finns redan ett konto med denna e-postadress","Back to Sign In":"Tillbaka till inloggningen","Change Password":"Byt l\xF6senord","Confirm Password":"Bekr\xE4fta l\xF6senord",Code:"Kod",Confirm:"Bekr\xE4fta","Confirm a Code":"Bekr\xE4fta koden","Confirm Sign In":"Bekr\xE4fta inloggning","Confirm Sign Up":"Bekr\xE4fta registrering","Confirmation Code":"Verifikationskod","Create a new account":"Skapa ett nytt konto","Create account":"Skapa konto","Create Account":"Skapa konto",Email:"E-post","Enter your password":"Ange ditt l\xF6senord","Enter your username":"Ange ditt anv\xE4ndarnamn","Forgot Password":"Gl\xF6mt l\xF6senordet","Forgot your password?":"Gl\xF6mt ditt l\xF6senord? ","Have an account? ":"Redan registrerad? ","Incorrect username or password":"Felaktigt anv\xE4ndarnamn eller l\xF6senord","Invalid password format":"Ogiltigt l\xF6senordsformat","Invalid phone number format":"Ogiltigt format f\xF6r telefonnummer","Lost your code? ":"F\xF6rlorat koden? ","New Password":"Nytt l\xF6senord","No account? ":"Inget konto? ",or:"eller",Password:"L\xF6senord","Password attempts exceeded":"Maximalt antal felaktiga inloggningsf\xF6rs\xF6k har uppn\xE5tts","Phone Number":"Telefonnummer","Resend Code":"Skicka koden igen","Reset password":"\xC5terst\xE4ll l\xF6senord","Reset your password":"\xC5terst\xE4ll ditt l\xF6senord","Send code":"Skicka kod","Sign in":"Logga in","Sign In":"Logga in","Sign in to your account":"Logga in till ditt konto","Sign Out":"Logga ut","Sign Up":"Registrering","We Emailed You":"Vi har skickat e-post till dig","Enter your code":"Skriv din kod",Skip:"Hoppa \xF6ver",Submit:"Skicka","User already exists":"Anv\xE4ndaren finns redan","User does not exist":"Anv\xE4ndaren finns inte",Username:"Anv\xE4ndarnamn","Username cannot be empty":"Anv\xE4ndarnamnet kan inte vara tomt",Verify:"Verifiera","Verify Contact":"Verifiera kontakt"},pl={"Account recovery requires verified contact information":"Pemulihan akun memerlukan informasi kontak terverifikasi","An account with the given email already exists.":"Akun dengan email tersebut sudah terdaftar.","Attempt limit exceeded, please try after some time.":"Batas percobaan terlampaui, mohon coba lagi setelah beberapa waktu.","Back to Sign In":"Kembali ke Masuk","Cannot reset password for the user as there is no registered/verified email or phone_number":"Tidak dapat mengatur ulang kata sandi karena tidak ada email terdaftar / terverifikasi atau nomor telepon",Change:"Ubah","Change Password":"Ubah kata sandi",Code:"Kode",Confirm:"Konfirmasi","Confirm a Code":"Konfirmasi kode","Confirm Password":"Konfirmasi kata sandi","Confirmation Code":"Kode Konfirmasi","Create a new account":"Buat akun baru","Create account":"Buat akun","Create Account":"Buat Akun","Creating Account":"Membuat Akun",Confirming:"Mengkonfirmasi",Email:"Email","Enter your code":"Masukkan kode anda","Enter your email":"Masukkan email anda","Enter your password":"Masukkan kata sandi anda","Enter your phone number":"Masukkan nomor telepon anda","Enter your username":"Masukkan nama akun anda","Forgot Password":"Lupa kata sandi","Forgot your password?":"Lupa kata sandi? ","Have an account? ":"Sudah punya akun? ",Hello:"Halo","Incorrect username or password.":"Nama akun atau kata sandi salah.","Invalid phone number format":"Nomor telepon tidak sesuai dengan format.","Invalid verification code provided, please try again.":"Kode verifikasi tidak sesuai, mohon coba lagi.","It may take a minute to arrive.":"Mungkin perlu beberapa waktu untuk tiba.","Lost your code? ":"Kode anda hilang?",Name:"Nama","Network error":"Galat jaringan","New password":"Kata sandi baru","No account? ":"Tidak ada akun?",or:"atau",Password:"Kata sandi","Password did not conform with policy: Password not long enough":"Kata sandi tidak sesuai dengan aturan: Kata sandi kurang panjang","Phone Number":"Nomor telepon","Resend a Code":"Renvoyer un code","Resend Code":"Kirim ulang kodenya","Reset password":"Ubah kata sandi anda","Reset your password":"Ubah kata sandi anda",Send:"Kirim","Send Code":"Kirim Kode","Send code":"Kirim kode",Sending:"Mengirim","Sign in":"Masuk","Sign In":"Masuk","Sign in to your account":"Masuk akun anda","Sign In with Amazon":"Masuk dengan Amazon","Sign In with AWS":"Masuk dengan AWS","Sign In with Facebook":"Masuk dengan Facebook","Sign In with Google":"Masuk dengan Google","Sign Up with Amazon":"Daftar dengan Amazon","Sign Up with AWS":"Daftar dengan AWS","Sign Up with Facebook":"Daftar dengan Facebook","Sign Up with Google":"Daftar dengan Google","Signing in":"Memasuki",Skip:"Lewati",SMS:"SMS",Submit:"Ajukan",Submitting:"Mengajukan","User is disabled.":"Akun dinonaktifkan.","User already exists":"Akun sudah terdaftar","User does not exist.":"Akun tidak terdaftar.",Username:"Nama akun","Username cannot be empty":"Nama akun tidak boleh kosong","Username/client id combination not found.":"Nama akun atau id tidak ditemukan.",Verify:"Verifikasi","Verify Contact":"Verifikasi Kontak","We Emailed You":"Kami mengirimkanmu email","Your code is on the way. To log in, enter the code we emailed to":"Kode anda dalam pengiriman. Untuk masuk, masukkan kode yang kami emailkan ke","Your code is on the way. To log in, enter the code we texted to":"Kode anda dalam pengiriman. Untuk masuk, masukkan kode yang kami tuliskan ke","Your passwords must match":"Kata sandi harus sama"},hl={"Account recovery requires verified contact information":"Hesap kurtarma, do\u011Frulanm\u0131\u015F ileti\u015Fim bilgilerini gerektirir","An account with the given email already exists.":"Bu e-postaya ait zaten bir hesap var.","Back to Sign In":"Oturum A\xE7maya Geri D\xF6n","Change Password":"\u015Eifreyi De\u011Fi\u015Ftir",Changing:"De\u011Fi\u015Ftiriliyor",Code:"Kod",Confirm:"Do\u011Frula","Confirm Password":"\u015Eifreyi Do\u011Frula","Confirm Sign In":"Oturum A\xE7may\u0131 Do\u011Frula","Confirm Sign Up":"Kay\u0131t \u0130\u015Flemini Do\u011Frula","Confirm SMS Code":"SMS Kodunu Do\u011Frula","Confirm TOTP Code":"Tek Kullan\u0131ml\u0131k \u015Eifreyi Do\u011Frula","Confirmation Code":"Do\u011Frulama Kodu",Confirming:"Do\u011Frulan\u0131yor","Create Account":"Hesap Olu\u015Ftur","Creating Account":"Hesap Olu\u015Fturuluyor",Email:"E-posta","Enter your code":"Kodu girin","Enter your username":"Kullan\u0131c\u0131 ad\u0131n\u0131z\u0131 girin","Enter your phone number":"Telefon numaran\u0131z\u0131 girin","Enter your email":"E-posta adresinizi girin","Forgot your password?":"\u015Eifrenizi mi unuttunuz?","Hide password":"\u015Eifreyi gizle","Have an account? ":"Hesab\u0131n\u0131z var m\u0131? ","Incorrect username or password":"Yanl\u0131\u015F kullan\u0131c\u0131 ad\u0131 ya da \u015Fifre","Invalid password format":"Ge\xE7ersiz parola format\u0131","Invalid phone number format":"Ge\xE7ersiz telefon numaras\u0131 format\u0131","Lost your code? ":"Kodu mu kaybettiniz? ",Loading:"Y\xFCkleniyor","New password":"Yeni \u015Fifre","No account? ":"Hesab\u0131n\u0131z yok mu? ",or:"veya",Password:"\u015Eifre","Password attempts exceeded":"Maksimum oturum a\xE7ma giri\u015Fimi a\u015F\u0131ld\u0131","Phone Number":"Telefon Numaras\u0131","Resend Code":"Kodu Yeniden G\xF6nder","Reset your password":"\u015Eifrenizi s\u0131f\u0131rlay\u0131n","Reset your Password":"\u015Eifrenizi S\u0131f\u0131rlay\u0131n","Send Code":"Kod G\xF6nder","Send code":"Kod g\xF6nder",Sending:"G\xF6nderiliyor","Setup TOTP":"Tek kullan\u0131ml\u0131k \u015Fifre kurulumu yap","Show password":"\u015Eifreyi g\xF6ster","Sign in":"Oturum a\xE7","Sign In":"Oturum A\xE7","Sign In with Amazon":"Amazon ile Oturum A\xE7","Sign In with Apple":"Apple ile Oturum A\xE7","Sign In with Facebook":"Facebook ile Oturum A\xE7","Sign In with Google":"Google ile Oturum A\xE7","Sign in to your account":"Hesab\u0131n\u0131zda oturum a\xE7\u0131n","Create a new account":"Yeni bir hesap olu\u015Ftur","Signing in":"Oturum a\xE7\u0131l\u0131yor","Sign Out":"\xC7\u0131k\u0131\u015F yap","Sign Up":"Kay\u0131t Ol",Skip:"Atla",Submit:"G\xF6nder",Submitting:"G\xF6nderiliyor","User already exists":"Bu kullan\u0131c\u0131 zaten var","User does not exist":"B\xF6yle bir kullan\u0131c\u0131 mevcut de\u011Fil",Username:"Kullan\u0131c\u0131 ad\u0131","Username cannot be empty":"Kullan\u0131c\u0131 ad\u0131 bo\u015F olamaz","Verify Contact":"Ki\u015Fiyi Do\u011Frula",Verify:"Do\u011Frula"},ml={BACK_SIGN_IN:"Back to Sign In",BIRTHDATE:"Birthdate",CHANGE_PASSWORD:"Change Password",CHANGING_PASSWORD:"Changing",CODE:"Code",CONFIRM_PASSWORD:"Confirm Password",CONFIRM_RESET_PASSWORD_HEADING:"Reset your Password",CONFIRM_SIGNUP_HEADING:"Confirm Sign Up",CONFIRM_SMS:"Confirm SMS Code",CONFIRM_TOTP:"Confirm TOTP Code",CONFIRM:"Confirm",CONFIRMATION_CODE:"Confirmation Code",CONFIRMING:"Confirming",CREATE_ACCOUNT:"Create Account",CREATING_ACCOUNT:"Creating Account",EMAIL_ADDRESS:"Email",ENTER_CODE:"Enter your code",ENTER_USERNAME:"Enter your username",FAMILY_NAME:"Family Name",GIVEN_NAME:"Given Name",FORGOT_YOUR_PASSWORD:"Forgot your password?",FORGOT_YOUR_PASSWORD_LEGACY:"Forgot your password? ",HIDE_PASSWORD:"Hide password",LOADING:"Loading",LOGIN_NAME:"Username",MIDDLE_NAME:"Middle Name",NAME:"Name",NICKNAME:"Nickname",NEW_PASSWORD:"New password",PASSWORD:"Password",PHONE_NUMBER:"Phone Number",PREFERRED_USERNAME:"Preferred Username",PROFILE:"Profile",RESEND_CODE:"Resend Code",RESET_PASSWORD_HEADING:"Reset your password",RESET_PASSWORD:"Reset Password",SEND_CODE:"Send code",SENDING:"Sending",SETUP_TOTP:"Setup TOTP",SHOW_PASSWORD:"Show password",SIGN_IN_BUTTON:"Sign in",SIGN_IN_TAB:"Sign In",SIGN_IN_WITH_AMAZON:"Sign In with Amazon",SIGN_IN_WITH_APPLE:"Sign In with Apple",SIGN_IN_WITH_FACEBOOK:"Sign In with Facebook",SIGN_IN_WITH_GOOGLE:"Sign In with Google",SIGN_IN:"Sign in to your account",SIGN_UP_BUTTON:"Create a new account",SIGNING_IN_BUTTON:"Signing in",SKIP:"Skip",SUBMIT:"Submit",SUBMITTING:"Submitting",VERIFY_CONTACT:"Verify Contact",VERIFY_HEADING:"Account recovery requires verified contact information",VERIFY:"Verify",WEBSITE:"Website"},gl=R({},tl),vl=R({},nl),yl=R({},rl),wl=R({},ol),Sl=R({},al),_l=R({},il),bl=R({},sl),Cl=R({},ul),Al=R({},cl),El=R({},ll),$l=R({},dl),Il=R({},fl),Tl=R({},pl),Pl=R({},hl),Nl=R({},ml);R({},Nl);function O(e){return re.I18n.get(e)}function kl(e){return re.I18n.get(e)!==e}var xl={de:gl,en:vl,es:yl,fr:wl,id:Tl,it:Sl,ja:_l,kr:bl,nl:Cl,pl:Al,pt:El,zh:$l,sv:Il,tr:Pl},Wr={birthdate:{label:"Birthdate",labelHidden:!0,placeholder:"Birthdate",type:"date",autocomplete:"bday",isRequired:!0},confirmation_code:{label:"Confirmation Code",labelHidden:!0,placeholder:"Code",type:"number",autocomplete:"one-time-code",isRequired:!0},confirm_password:{label:"Confirm Password",labelHidden:!0,placeholder:"Confirm Password",type:"password",autocomplete:"new-password",isRequired:!0},email:{label:"Email",labelHidden:!0,placeholder:"Email",type:"email",autocomplete:"username",isRequired:!0},family_name:{label:"Family Name",labelHidden:!0,placeholder:"Family Name",type:"text",autocomplete:"family-name",isRequired:!0},given_name:{label:"Given Name",labelHidden:!0,placeholder:"Given Name",type:"text",autocomplete:"given-name",isRequired:!0},middle_name:{label:"Middle Name",labelHidden:!0,placeholder:"Middle Name",type:"text",autocomplete:"additional-name",isRequired:!0},name:{label:"Name",labelHidden:!0,placeholder:"Name",type:"text",autocomplete:"name",isRequired:!0},nickname:{label:"Nickname",labelHidden:!0,placeholder:"Nickname",type:"text",autocomplete:"tel",isRequired:!0},password:{label:"Password",labelHidden:!0,placeholder:"Password",type:"password",autocomplete:"new-password",isRequired:!0},phone_number:{label:"Phone Number",labelHidden:!0,placeholder:"Phone",type:"tel",autocomplete:"tel",dialCode:"+1",dialCodeList:el,isRequired:!0},preferred_username:{label:"Preferred Username",labelHidden:!0,placeholder:"Preferred Username",type:"text",isRequired:!0},profile:{label:"Profile",labelHidden:!0,placeholder:"Profile",type:"url",autocomplete:"url",isRequired:!0},website:{label:"Website",labelHidden:!0,placeholder:"Website",type:"url",autocomplete:"url",isRequired:!0},username:{label:"Username",labelHidden:!0,placeholder:"Username",type:"text",autocomplete:"username",isRequired:!0}},Le=function(e){var t=new FormData(e.target);return Object.fromEntries(t)},ea=function(e){return Zc.includes(e)},Ul=function(e){return e?(t=e,Array.isArray(t)?e:[e]):null;var t},Ol=function(e){return re.Hub.listen("auth",function(t){switch(t.payload.event){case"tokenRefresh":e("TOKEN_REFRESH");break;case"signOut":case"tokenRefresh_failure":e("SIGN_OUT")}})};function Rl(){this.__data__=[],this.size=0}var Bl=Rl;function Vl(e,t){return e===t||e!==e&&t!==t}var Vt=Vl,Dl=Vt;function Ml(e,t){for(var n=e.length;n--;)if(Dl(e[n][0],t))return n;return-1}var Bn=Ml,Fl=Bn,Ll=Array.prototype,jl=Ll.splice;function zl(e){var t=this.__data__,n=Fl(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():jl.call(t,n,1),--this.size,!0}var Gl=zl,Hl=Bn;function Kl(e){var t=this.__data__,n=Hl(t,e);return n<0?void 0:t[n][1]}var ql=Kl,Wl=Bn;function Yl(e){return Wl(this.__data__,e)>-1}var Jl=Yl,Zl=Bn;function Ql(e,t){var n=this.__data__,r=Zl(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Xl=Ql,ed=Bl,td=Gl,nd=ql,rd=Jl,od=Xl;function ht(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ht.prototype.clear=ed;ht.prototype.delete=td;ht.prototype.get=nd;ht.prototype.has=rd;ht.prototype.set=od;var Vn=ht,ad=Vn;function id(){this.__data__=new ad,this.size=0}var sd=id;function ud(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var cd=ud;function ld(e){return this.__data__.get(e)}var dd=ld;function fd(e){return this.__data__.has(e)}var pd=fd,hd=Me,md=hd["__core-js_shared__"],gd=md,ar=gd,ta=function(){var e=/[^.]+$/.exec(ar&&ar.keys&&ar.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function vd(e){return!!ta&&ta in e}var yd=vd,wd=Function.prototype,Sd=wd.toString;function _d(e){if(e!=null){try{return Sd.call(e)}catch{}try{return e+""}catch{}}return""}var ui=_d,bd=Gr,Cd=yd,Ad=Fe,Ed=ui,$d=/[\\^$.*+?()[\]{}|]/g,Id=/^\[object .+?Constructor\]$/,Td=Function.prototype,Pd=Object.prototype,Nd=Td.toString,kd=Pd.hasOwnProperty,xd=RegExp("^"+Nd.call(kd).replace($d,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ud(e){if(!Ad(e)||Cd(e))return!1;var t=bd(e)?xd:Id;return t.test(Ed(e))}var Od=Ud;function Rd(e,t){return e==null?void 0:e[t]}var Bd=Rd,Vd=Od,Dd=Bd;function Md(e,t){var n=Dd(e,t);return Vd(n)?n:void 0}var nt=Md,Fd=nt,Ld=Me,jd=Fd(Ld,"Map"),Yr=jd,zd=nt,Gd=zd(Object,"create"),Dn=Gd,na=Dn;function Hd(){this.__data__=na?na(null):{},this.size=0}var Kd=Hd;function qd(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Wd=qd,Yd=Dn,Jd="__lodash_hash_undefined__",Zd=Object.prototype,Qd=Zd.hasOwnProperty;function Xd(e){var t=this.__data__;if(Yd){var n=t[e];return n===Jd?void 0:n}return Qd.call(t,e)?t[e]:void 0}var ef=Xd,tf=Dn,nf=Object.prototype,rf=nf.hasOwnProperty;function of(e){var t=this.__data__;return tf?t[e]!==void 0:rf.call(t,e)}var af=of,sf=Dn,uf="__lodash_hash_undefined__";function cf(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=sf&&t===void 0?uf:t,this}var lf=cf,df=Kd,ff=Wd,pf=ef,hf=af,mf=lf;function mt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}mt.prototype.clear=df;mt.prototype.delete=ff;mt.prototype.get=pf;mt.prototype.has=hf;mt.prototype.set=mf;var gf=mt,ra=gf,vf=Vn,yf=Yr;function wf(){this.size=0,this.__data__={hash:new ra,map:new(yf||vf),string:new ra}}var Sf=wf;function _f(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var bf=_f,Cf=bf;function Af(e,t){var n=e.__data__;return Cf(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Mn=Af,Ef=Mn;function $f(e){var t=Ef(this,e).delete(e);return this.size-=t?1:0,t}var If=$f,Tf=Mn;function Pf(e){return Tf(this,e).get(e)}var Nf=Pf,kf=Mn;function xf(e){return kf(this,e).has(e)}var Uf=xf,Of=Mn;function Rf(e,t){var n=Of(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var Bf=Rf,Vf=Sf,Df=If,Mf=Nf,Ff=Uf,Lf=Bf;function gt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}gt.prototype.clear=Vf;gt.prototype.delete=Df;gt.prototype.get=Mf;gt.prototype.has=Ff;gt.prototype.set=Lf;var Jr=gt,jf=Vn,zf=Yr,Gf=Jr,Hf=200;function Kf(e,t){var n=this.__data__;if(n instanceof jf){var r=n.__data__;if(!zf||r.length<Hf-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Gf(r)}return n.set(e,t),this.size=n.size,this}var qf=Kf,Wf=Vn,Yf=sd,Jf=cd,Zf=dd,Qf=pd,Xf=qf;function vt(e){var t=this.__data__=new Wf(e);this.size=t.size}vt.prototype.clear=Yf;vt.prototype.delete=Jf;vt.prototype.get=Zf;vt.prototype.has=Qf;vt.prototype.set=Xf;var Fn=vt;function ep(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var tp=ep,np=nt,rp=function(){try{var e=np(Object,"defineProperty");return e({},"",{}),e}catch{}}(),ci=rp,oa=ci;function op(e,t,n){t=="__proto__"&&oa?oa(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Zr=op,ap=Zr,ip=Vt,sp=Object.prototype,up=sp.hasOwnProperty;function cp(e,t,n){var r=e[t];(!(up.call(e,t)&&ip(r,n))||n===void 0&&!(t in e))&&ap(e,t,n)}var Qr=cp,lp=Qr,dp=Zr;function fp(e,t,n,r){var a=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var u=t[i],c=r?r(n[u],e[u],u,n,e):void 0;c===void 0&&(c=e[u]),a?dp(n,u,c):lp(n,u,c)}return n}var Dt=fp,pp=Dt,hp=Rn;function mp(e,t){return e&&pp(t,hp(t),e)}var gp=mp;function vp(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var yp=vp,wp=Fe,Sp=On,_p=yp,bp=Object.prototype,Cp=bp.hasOwnProperty;function Ap(e){if(!wp(e))return _p(e);var t=Sp(e),n=[];for(var r in e)r=="constructor"&&(t||!Cp.call(e,r))||n.push(r);return n}var Ep=Ap,$p=ri,Ip=Ep,Tp=Bt;function Pp(e){return Tp(e)?$p(e,!0):Ip(e)}var Mt=Pp,Np=Dt,kp=Mt;function xp(e,t){return e&&Np(t,kp(t),e)}var Up=xp,yn={exports:{}};(function(e,t){var n=Me,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,s=i?n.Buffer:void 0,u=s?s.allocUnsafe:void 0;function c(d,l){if(l)return d.slice();var h=d.length,f=u?u(h):new d.constructor(h);return d.copy(f),f}e.exports=c})(yn,yn.exports);function Op(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var li=Op;function Rp(e,t){for(var n=-1,r=e==null?0:e.length,a=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[a++]=s)}return i}var Bp=Rp;function Vp(){return[]}var di=Vp,Dp=Bp,Mp=di,Fp=Object.prototype,Lp=Fp.propertyIsEnumerable,aa=Object.getOwnPropertySymbols,jp=aa?function(e){return e==null?[]:(e=Object(e),Dp(aa(e),function(t){return Lp.call(e,t)}))}:Mp,Xr=jp,zp=Dt,Gp=Xr;function Hp(e,t){return zp(e,Gp(e),t)}var Kp=Hp;function qp(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var fi=qp,Wp=oi,Yp=Wp(Object.getPrototypeOf,Object),eo=Yp,Jp=fi,Zp=eo,Qp=Xr,Xp=di,eh=Object.getOwnPropertySymbols,th=eh?function(e){for(var t=[];e;)Jp(t,Qp(e)),e=Zp(e);return t}:Xp,pi=th,nh=Dt,rh=pi;function oh(e,t){return nh(e,rh(e),t)}var ah=oh,ih=fi,sh=xe;function uh(e,t,n){var r=t(e);return sh(e)?r:ih(r,n(e))}var hi=uh,ch=hi,lh=Xr,dh=Rn;function fh(e){return ch(e,dh,lh)}var mi=fh,ph=hi,hh=pi,mh=Mt;function gh(e){return ph(e,mh,hh)}var gi=gh,vh=nt,yh=Me,wh=vh(yh,"DataView"),Sh=wh,_h=nt,bh=Me,Ch=_h(bh,"Promise"),Ah=Ch,Eh=nt,$h=Me,Ih=Eh($h,"Set"),Th=Ih,Ph=nt,Nh=Me,kh=Ph(Nh,"WeakMap"),xh=kh,yr=Sh,wr=Yr,Sr=Ah,_r=Th,br=xh,vi=pt,yt=ui,ia="[object Map]",Uh="[object Object]",sa="[object Promise]",ua="[object Set]",ca="[object WeakMap]",la="[object DataView]",Oh=yt(yr),Rh=yt(wr),Bh=yt(Sr),Vh=yt(_r),Dh=yt(br),et=vi;(yr&&et(new yr(new ArrayBuffer(1)))!=la||wr&&et(new wr)!=ia||Sr&&et(Sr.resolve())!=sa||_r&&et(new _r)!=ua||br&&et(new br)!=ca)&&(et=function(e){var t=vi(e),n=t==Uh?e.constructor:void 0,r=n?yt(n):"";if(r)switch(r){case Oh:return la;case Rh:return ia;case Bh:return sa;case Vh:return ua;case Dh:return ca}return t});var Ft=et,Mh=Object.prototype,Fh=Mh.hasOwnProperty;function Lh(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Fh.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var jh=Lh,zh=Me,Gh=zh.Uint8Array,yi=Gh,da=yi;function Hh(e){var t=new e.constructor(e.byteLength);return new da(t).set(new da(e)),t}var to=Hh,Kh=to;function qh(e,t){var n=t?Kh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Wh=qh,Yh=/\w*$/;function Jh(e){var t=new e.constructor(e.source,Yh.exec(e));return t.lastIndex=e.lastIndex,t}var Zh=Jh,fa=Rt,pa=fa?fa.prototype:void 0,ha=pa?pa.valueOf:void 0;function Qh(e){return ha?Object(ha.call(e)):{}}var Xh=Qh,em=to;function tm(e,t){var n=t?em(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var wi=tm,nm=to,rm=Wh,om=Zh,am=Xh,im=wi,sm="[object Boolean]",um="[object Date]",cm="[object Map]",lm="[object Number]",dm="[object RegExp]",fm="[object Set]",pm="[object String]",hm="[object Symbol]",mm="[object ArrayBuffer]",gm="[object DataView]",vm="[object Float32Array]",ym="[object Float64Array]",wm="[object Int8Array]",Sm="[object Int16Array]",_m="[object Int32Array]",bm="[object Uint8Array]",Cm="[object Uint8ClampedArray]",Am="[object Uint16Array]",Em="[object Uint32Array]";function $m(e,t,n){var r=e.constructor;switch(t){case mm:return nm(e);case sm:case um:return new r(+e);case gm:return rm(e,n);case vm:case ym:case wm:case Sm:case _m:case bm:case Cm:case Am:case Em:return im(e,n);case cm:return new r;case lm:case pm:return new r(e);case dm:return om(e);case fm:return new r;case hm:return am(e)}}var Im=$m,Tm=Fe,ma=Object.create,Pm=function(){function e(){}return function(t){if(!Tm(t))return{};if(ma)return ma(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Nm=Pm,km=Nm,xm=eo,Um=On;function Om(e){return typeof e.constructor=="function"&&!Um(e)?km(xm(e)):{}}var Si=Om,Rm=Ft,Bm=Ke,Vm="[object Map]";function Dm(e){return Bm(e)&&Rm(e)==Vm}var Mm=Dm,Fm=Mm,Lm=qr,ga=xt.exports,va=ga&&ga.isMap,jm=va?Lm(va):Fm,zm=jm,Gm=Ft,Hm=Ke,Km="[object Set]";function qm(e){return Hm(e)&&Gm(e)==Km}var Wm=qm,Ym=Wm,Jm=qr,ya=xt.exports,wa=ya&&ya.isSet,Zm=wa?Jm(wa):Ym,Qm=Zm,Xm=Fn,eg=tp,tg=Qr,ng=gp,rg=Up,og=yn.exports,ag=li,ig=Kp,sg=ah,ug=mi,cg=gi,lg=Ft,dg=jh,fg=Im,pg=Si,hg=xe,mg=tt.exports,gg=zm,vg=Fe,yg=Qm,wg=Rn,Sg=Mt,_g=1,bg=2,Cg=4,_i="[object Arguments]",Ag="[object Array]",Eg="[object Boolean]",$g="[object Date]",Ig="[object Error]",bi="[object Function]",Tg="[object GeneratorFunction]",Pg="[object Map]",Ng="[object Number]",Ci="[object Object]",kg="[object RegExp]",xg="[object Set]",Ug="[object String]",Og="[object Symbol]",Rg="[object WeakMap]",Bg="[object ArrayBuffer]",Vg="[object DataView]",Dg="[object Float32Array]",Mg="[object Float64Array]",Fg="[object Int8Array]",Lg="[object Int16Array]",jg="[object Int32Array]",zg="[object Uint8Array]",Gg="[object Uint8ClampedArray]",Hg="[object Uint16Array]",Kg="[object Uint32Array]",ne={};ne[_i]=ne[Ag]=ne[Bg]=ne[Vg]=ne[Eg]=ne[$g]=ne[Dg]=ne[Mg]=ne[Fg]=ne[Lg]=ne[jg]=ne[Pg]=ne[Ng]=ne[Ci]=ne[kg]=ne[xg]=ne[Ug]=ne[Og]=ne[zg]=ne[Gg]=ne[Hg]=ne[Kg]=!0;ne[Ig]=ne[bi]=ne[Rg]=!1;function pn(e,t,n,r,a,i){var s,u=t&_g,c=t&bg,d=t&Cg;if(n&&(s=a?n(e,r,a,i):n(e)),s!==void 0)return s;if(!vg(e))return e;var l=hg(e);if(l){if(s=dg(e),!u)return ag(e,s)}else{var h=lg(e),f=h==bi||h==Tg;if(mg(e))return og(e,u);if(h==Ci||h==_i||f&&!a){if(s=c||f?{}:pg(e),!u)return c?sg(e,rg(s,e)):ig(e,ng(s,e))}else{if(!ne[h])return a?e:{};s=fg(e,h,u)}}i||(i=new Xm);var p=i.get(e);if(p)return p;i.set(e,s),yg(e)?e.forEach(function(m){s.add(pn(m,t,n,m,e,i))}):gg(e)&&e.forEach(function(m,S){s.set(S,pn(m,t,n,S,e,i))});var v=d?c?cg:ug:c?Sg:wg,g=l?void 0:v(e);return eg(g||e,function(m,S){g&&(S=m,m=e[S]),tg(s,S,pn(m,t,n,S,e,i))}),s}var qg=pn,Wg=qg,Yg=1,Jg=4;function Zg(e){return Wg(e,Yg|Jg)}var Qg=Zg,qe=function(e,t){var n=zr(e).country_code,r=Wr[t];return r.type==="tel"&&(r=R(R({},r),{dialCode:n})),r},ir=function(e){var t=vr(e);return R(R({},qe(e,t)),{autocomplete:"username"})},Xt=function(e){return{confirmation_code:R(R({},qe(e,"confirmation_code")),{label:"Code *",placeholder:"Code"})}},Xg={signIn:function(e){return{username:R({},ir(e)),password:R(R({},qe(e,"password")),{autocomplete:"current-password"})}},signUp:function(e){for(var t=e.context.config,n=t.loginMechanisms,r=t.signUpAttributes,a=vr(e),i={},s=0,u=Array.from(new Set(Oe(Oe(Oe([],n,!0),["password","confirm_password"],!1),r,!0)));s<u.length;s++){var c=u[s];if(ea(c)){var d=c===a?ir(e):qe(e,c);i[c]=R({},d)}else console.debug("Authenticator does not have a default implementation for ".concat(c,". Customize SignUp FormFields to add your own."))}return i},confirmSignUp:function(e){return{confirmation_code:R(R({},qe(e,"confirmation_code")),{placeholder:"Enter your code"})}},confirmSignIn:Xt,forceNewPassword:function(e){for(var t=be(e).context.requiredAttributes,n={},r=0,a=Array.from(new Set(Oe(["password","confirm_password"],t,!0)));r<a.length;r++){var i=a[r];ea(i)?n[i]=R({},qe(e,i)):console.debug("Authenticator does not have a default implementation for ".concat(i,". Customize ForceNewPassword FormFields to add your own."))}return n},resetPassword:function(e){var t=vr(e),n=Wr[t].label;return{username:R(R({},ir(e)),{label:"Enter your ".concat(n.toLowerCase()),placeholder:"Enter your ".concat(n.toLowerCase())})}},confirmResetPassword:function(e){return R(R({},Xt(e)),{password:R(R({},qe(e,"password")),{label:"New Password",placeholder:"New Password"}),confirm_password:R(R({},qe(e,"confirm_password")),{label:"Confirm Password",placeholder:"Confirm Password"})})},confirmVerifyUser:Xt,setupTOTP:Xt},ev=function(e){for(var t=R({},e),n=0,r=Object.entries(e);n<r.length;n++){var a=r[n],i=a[0],s=a[1],u=s.label,c=s.placeholder;t[i]=R(R({},s),{label:u?O(u):void 0,placeholder:c?O(c):void 0})}return t},tv=function(e){return Object.entries(e).sort(function(t,n){return(t[1].order||Number.MAX_VALUE)-(n[1].order||Number.MAX_VALUE)}).filter(function(t){return t[1]!==void 0})},nv=function(e,t){t===void 0&&(t={});var n=Qg(e);return Object.keys(t).forEach(function(r){n[r]=R(R({},n[r]),t[r])}),n},rv=function(e,t){var n=(0,Xg[e])(t);return ev(n)},ov=function(e,t){var n,r,a=rv(e,t),i=((r=(n=be(t).context)===null||n===void 0?void 0:n.formFields)===null||r===void 0?void 0:r[e])||{},s=nv(a,i);return delete s.QR,s},av=function(e,t){var n=ov(e,t);return tv(n)};/*! *****************************************************************************
|
|
15
|
+
+12345678900 \u306E\u5F62\u5F0F\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044`,"Lost your code? ":"\u30B3\u30FC\u30C9\u3092\u5931\u304F\u3057\u307E\u3057\u305F\u304B\uFF1F","New Password":"\u65B0\u3057\u3044\u30D1\u30B9\u30EF\u30FC\u30C9","No account? ":"\u30A2\u30AB\u30A6\u30F3\u30C8\u304C\u7121\u3044\u3068\u304D ",or:"\u53C8\u306F",Password:"\u30D1\u30B9\u30EF\u30FC\u30C9 ","Password attempts exceeded":"\u30B5\u30A4\u30F3\u30A4\u30F3\u306E\u8A66\u884C\u56DE\u6570\u304C\u4E0A\u9650\u306B\u9054\u3057\u307E\u3057\u305F","Phone Number":"\u96FB\u8A71\u756A\u53F7","Resend Code":"\u30B3\u30FC\u30C9\u3092\u518D\u9001\u4FE1","Reset password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u30EA\u30BB\u30C3\u30C8 ","Reset your password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u30EA\u30BB\u30C3\u30C8\u3059\u308B","Send Code":"\u30B3\u30FC\u30C9\u3092\u9001\u4FE1","Sign in":"\u30B5\u30A4\u30F3\u30A4\u30F3","Sign In":"\u30B5\u30A4\u30F3\u30A4\u30F3 ","Sign in to your account":"\u30A2\u30AB\u30A6\u30F3\u30C8\u306B\u30B5\u30A4\u30F3\u30A4\u30F3 ","Sign In with Amazon":"Amazon\u3067\u30B5\u30A4\u30F3\u30A4\u30F3","Sign In with Facebook":"Facebook\u3067\u30B5\u30A4\u30F3\u30A4\u30F3","Sign In with Google":"Google\u3067\u30B5\u30A4\u30F3\u30A4\u30F3","Sign Out":"\u30B5\u30A4\u30F3\u30A2\u30A6\u30C8 ","Sign Up":"\u767B\u9332 ",Skip:"\u30B9\u30AD\u30C3\u30D7",Submit:"\u9001\u4FE1","User already exists":"\u65E2\u306B\u30E6\u30FC\u30B6\u30FC\u304C\u5B58\u5728\u3057\u3066\u3044\u307E\u3059 ","User does not exist":"\u30E6\u30FC\u30B6\u30FC\u304C\u5B58\u5728\u3057\u307E\u305B\u3093 ",Username:"\u30E6\u30FC\u30B6\u30FC\u540D ","Username cannot be empty":"\u30E6\u30FC\u30B6\u30FC\u540D\u306F\u5165\u529B\u5FC5\u9808\u3067\u3059",Verify:"\u78BA\u8A8D","Verify Contact":"\u9023\u7D61\u5148\u3092\u78BA\u8A8D"},sl={"Back to Sign In":"\uB85C\uADF8\uC778\uC73C\uB85C \uB3CC\uC544\uAC00\uAE30",Birthdate:"\uC0DD\uB144\uC6D4\uC77C","Change Password":"\uBE44\uBC00\uBC88\uD638 \uBCC0\uACBD\uD558\uAE30",Changing:"\uBCC0\uACBD\uC911",Code:"\uCF54\uB4DC","Confirm Password":"\uBE44\uBC00\uBC88\uD638 \uC7AC\uD655\uC778","Reset your Password":"\uBE44\uBC00\uBC88\uD638 \uC7AC\uC124\uC815","Confirm Sign Up":"\uD68C\uC6D0\uAC00\uC785 \uD655\uC778","Confirm SMS Code":"\uD734\uB300\uD3F0 \uBCF8\uC778 \uD655\uC778","Confirm TOTP Code":"TOTP \uC778\uC99D\uBC88\uD638 \uD655\uC778",Confirm:"\uD655\uC778","Confirmation Code":"\uC778\uC99D\uBC88\uD638",Confirming:"\uD655\uC778\uC911","Create Account":"\uD68C\uC6D0\uAC00\uC785","Creating Account":"\uD68C\uC6D0\uAC00\uC785\uC911",Email:"\uC774\uBA54\uC77C","Enter your code":"\uC778\uC99D\uBC88\uD638\uB97C \uC785\uB825\uD574\uC8FC\uC138\uC694","Enter your username":"\uC544\uC774\uB514\uB97C \uC785\uB825\uD574\uC8FC\uC138\uC694","Family Name":"\uC131","Given Name":"\uC774\uB984","Forgot your password?":"\uBE44\uBC00\uBC88\uD638\uB97C \uC78A\uC73C\uC168\uB098\uC694?","Hide password":"\uBE44\uBC00\uBC88\uD638 \uC228\uAE30\uAE30",Loading:"\uB85C\uB529\uC911",Username:"\uC544\uC774\uB514",Name:"\uC131\uD568",Nickname:"\uB2C9\uB124\uC784","New password":"\uC0C8 \uBE44\uBC00\uBC88\uD638",Password:"\uBE44\uBC00\uBC88\uD638","Phone Number":"\uC804\uD654\uBC88\uD638","Preferred Username":"\uB2C9\uB124\uC784",Profile:"\uD504\uB85C\uD544","Resend Code":"\uC778\uC99D\uBC88\uD638 \uC7AC\uC804\uC1A1","Reset your password":"\uBE44\uBC00\uBC88\uD638 \uC7AC\uC124\uC815","Reset Password":"\uBE44\uBC00\uBC88\uD638 \uC7AC\uC124\uC815","Send code":"\uC778\uC99D\uCF54\uB4DC \uBCF4\uB0B4\uAE30",Sending:"\uC804\uC1A1\uC911","Setup TOTP":"TOTP \uC124\uC815\uD558\uAE30","Show password":"\uBE44\uBC00\uBC88\uD638 \uBCF4\uC774\uAE30","Sign in":"\uB85C\uADF8\uC778","Sign In":"\uB85C\uADF8\uC778","Sign In with Amazon":"Amazon \uB85C\uADF8\uC778","Sign In with Apple":"Apple \uB85C\uADF8\uC778","Sign In with Facebook":"Facebook \uB85C\uADF8\uC778","Sign In with Google":"Google \uB85C\uADF8\uC778","Sign in to your account":"\uB85C\uADF8\uC778","Create a new account":"\uD68C\uC6D0\uAC00\uC785","Signing in":"\uB85C\uADF8\uC778\uC911",Skip:"\uB2E4\uC74C\uC5D0 \uD558\uAE30",Submit:"\uD655\uC778",Submitting:"\uD655\uC778\uC911","Verify Contact":"\uC5F0\uB77D\uCC98 \uD655\uC778","Account recovery requires verified contact information":"\uACC4\uC815 \uBCF5\uAD6C\uB97C \uC704\uD574 \uC5F0\uB77D\uCC98 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4",Verify:"\uC778\uC99D",Website:"\uC6F9\uC0AC\uC774\uD2B8"},ul={"Back to Sign In":"Terug naar inloggen","Change Password":"Wachtwoord wijzigen",Changing:"Wordt aangepast",Code:"Code","Confirm Password":"Bevestig Wachtwoord","Reset your Password":"Wachtwoord resetten","Confirm Sign Up":"Bevestig inschrijving","Confirm SMS Code":"Bevestig SMS Code","Confirm TOTP Code":"Bevestig TOTP Code",Confirm:"Bevestig","Confirmation Code":"Bevestigingscode",Confirming:"Bevestigen","Create Account":"Account aanmaken","Creating Account":"Account wordt aangemaakt",Email:"E-mail","Enter your code":"Vul je code in","Enter your username":"Vul je gebruikersnaam in","Enter your phone number":"Vul je telefoonnummer in","Enter your email":"Vul je e-mail in","Forgot your password?":"Wachtwoord vergeten? ","Hide password":"Verberg wachtwoord",Loading:"Laden",Username:"Gebruikersnaam","New password":"Nieuw wachtwoord",Password:"Wachtwoord","Phone Number":"Telefoonnummer","Resend Code":"Verstuur code nogmaals","Reset your password":"Reset je wachtwoord","Send Code":"Verstuur Code","Send code":"Verstuur code",Sending:"Versturen","Setup TOTP":"TOTP Instellingen","Show password":"Toon wachtwoord","Sign in":"Inloggen","Sign In":"Inloggen","Sign In with Amazon":"Inloggen met Amazon","Sign In with Apple":"Inloggen met Apple","Sign In with Facebook":"Inloggen met Facebook","Sign In with Google":"Inloggen met Google","Sign in to your account":"Inloggen op je account","Create a new account":"Nieuw account aanmaken","Signing in":"Inloggen",Skip:"Overslaan",Submit:"Versturen",Submitting:"Wordt verstuurd","Verify Contact":"Verifieer Contact","Account recovery requires verified contact information":"Accountherstel vereist geverifieerde contactgegevens",Verify:"Verifieer"},cl={"Back to Sign In":"Powr\xF3t do logowania",Birthdate:"Data urodzenia","Change Password":"Zmie\u0144 has\u0142o",Changing:"Zmienianie",Code:"Kod","Confirm Password":"Potwierd\u017A Has\u0142o","Reset your Password":"Zresetuj swoje has\u0142o","Confirm Sign Up":"Potwierd\u017A rejestracj\u0119","Confirm SMS Code":"Potwierd\u017A kod SMS","Confirm TOTP Code":"Potwierd\u017A has\u0142o jednorazowe",Confirm:"Potwierd\u017A","Confirmation Code":"Kod potwierdzenia",Confirming:"Potwierdzanie","Create Account":"Utw\xF3rz konto","Creating Account":"Tworzenie konta",Email:"E-mail","Enter your code":"Wprowad\u017A sw\xF3j kod","Enter your username":"Wprowad\u017A swoj\u0105 nazw\u0119 u\u017Cytkownika","Family Name":"Nazwisko","Given Name":"Pierwsze imi\u0119","Forgot your password?":"Zapomnia\u0142e\u015B has\u0142a? ","Hide password":"Ukryj has\u0142o",Loading:"\u0141adowanie",Username:"Nazwa u\u017Cytkownika","Middle Name":"Drugie imi\u0119",Name:"Imi\u0119 i nazwisko",Nickname:"Pseudonim","New password":"Nowe has\u0142o",Password:"Has\u0142o","Phone Number":"Numer telefonu","Preferred Username":"Preferowana nazwa u\u017Cytkownika",Profile:"Profil","Resend Code":"Wy\u015Blij kod ponownie","Reset your password":"Zresetuj swoje has\u0142o","Send Code":"Zresetuj has\u0142o","Send code":"Wy\u015Blij kod",Sending:"Wysy\u0142anie","Setup TOTP":"Konfiguruj TOTP","Show password":"Poka\u017C has\u0142o","Sign in":"Zaloguj","Sign In":"Logowanie","Sign In with Amazon":"Zaloguj z Amazon","Sign In with Apple":"Zaloguj z Apple","Sign In with Facebook":"Zaloguj z Facebook","Sign In with Google":"Zaloguj z Google","Sign in to your account":"Zaloguj si\u0119 na swoje konto","Create a new account":"Utw\xF3rz nowe konto","Signing in":"Logowanie",Skip:"Pomi\u0144",Submit:"Wy\u015Blij",Submitting:"Wysy\u0142anie","Verify Contact":"Weryfikacja danych kontaktowych","Account recovery requires verified contact information":"Odzyskanie konta wymaga zweryfikowanych danych kontaktowych",Verify:"Zweryfikuj",Website:"Strona internetowa"},ll={"Back to Sign In":"Voltar para Entrar","Change Password":"Mudar senha",Changing:"Mudando",Code:"C\xF3digo","Confirm Password":"Confirme a Senha","Reset your Password":"Redefina sua senha","Confirm Sign Up":"Confirmar inscri\xE7\xE3o","Confirm SMS Code":"Confirme o c\xF3digo SMS","Confirm TOTP Code":"Confirme o c\xF3digo TOTP",Confirm:"confirme","Confirmation Code":"C\xF3digo de confirma\xE7\xE3o",Confirming:"Confirmando","Create Account":"Criar Conta","Creating Account":"Criando conta",Email:"O email","Enter your code":"Insira seu c\xF3digo","Enter your username":"entre com seu nome de usu\xE1rio","Enter your phone number":"Digite seu n\xFAmero de telefone","Enter your email":"Digite seu e-mail","Forgot your password?":"Esqueceu sua senha? ","Hide password":"Esconder a senha",Loading:"Carregando",Username:"Nome do usu\xE1rio","New password":"Nova Senha",Password:"Senha","Phone Number":"N\xFAmero de telefone","Resend Code":"Reenviar c\xF3digo","Reset your password":"Redefina sua senha","Send Code":"Enviar c\xF3digo","Send code":"Enviar c\xF3digo",Sending:"Enviando","Setup TOTP":"Configurar TOTP","Show password":"Mostrar senha","Sign In":"Entrar","Sign in":"Entrar","Sign In with Amazon":"Entrar com a Amazon","Sign In with Apple":"Entrar com a Apple","Sign In with Facebook":"Entrar com o Facebook","Sign In with Google":"Fa\xE7a login no Google","Sign in to your account":"Fa\xE7a login em sua conta","Create a new account":"Criar uma nova conta","Signing in":"Entrando",Skip:"Pular",Submit:"Enviar",Submitting:"Enviando","Verify Contact":"Verificar contato","Account recovery requires verified contact information":"A recupera\xE7\xE3o da conta requer informa\xE7\xF5es de contato verificadas",Verify:"Verificar"},dl={"Account recovery requires verified contact information":"\u8D26\u6237\u6062\u590D\u9700\u8981\u9A8C\u8BC1\u8FC7\u7684\u8054\u7CFB\u65B9\u5F0F","Back to Sign In":"\u56DE\u5230\u767B\u5F55","Change Password":"\u66F4\u6539\u5BC6\u7801",Code:"\u786E\u8BA4\u7801",Confirm:"\u786E\u8BA4","Confirm a Code":"\u786E\u8BA4\u7801","Confirm Password":"\u786E\u8BA4\u5BC6\u7801","Confirm Sign In":"\u786E\u8BA4\u767B\u5F55","Confirm Sign Up":"\u786E\u8BA4\u6CE8\u518C",Email:"\u90AE\u7BB1","Forgot Password":"\u5FD8\u8BB0\u5BC6\u7801","Incorrect username or password":"\u7528\u6237\u540D\u6216\u5BC6\u7801\u9519\u8BEF","Invalid password format":"\u5BC6\u7801\u683C\u5F0F\u9519\u8BEF","Invalid phone number format":"\u7535\u8BDD\u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u4F7F\u7528\u683C\u5F0F +12345678900","New Password":"\u65B0\u5BC6\u7801",or:"\u6216\u8005",Password:"\u5BC6\u7801","Phone Number":"\u7535\u8BDD","Resend a Code":"\u91CD\u53D1\u786E\u8BA4\u7801","Send Code":"\u53D1\u9001\u786E\u8BA4\u7801","Sign In":"\u767B\u5F55","Sign Out":"\u9000\u51FA","Sign Up":"\u6CE8\u518C",Skip:"\u8DF3\u8FC7",Submit:"\u63D0\u4EA4","User already exists":"\u7528\u6237\u5DF2\u7ECF\u5B58\u5728","User does not exist":"\u7528\u6237\u4E0D\u5B58\u5728",Username:"\u7528\u6237\u540D",Verify:"\u9A8C\u8BC1","Verify Contact":"\u9A8C\u8BC1\u8054\u7CFB\u65B9\u5F0F"},fl={"Account recovery requires verified contact information":"F\xF6r att \xE5terst\xE4lla kontot beh\xF6ver du ett verifierat konto","An account with the given email already exists.":"Det finns redan ett konto med denna e-postadress","Back to Sign In":"Tillbaka till inloggningen","Change Password":"Byt l\xF6senord","Confirm Password":"Bekr\xE4fta l\xF6senord",Code:"Kod",Confirm:"Bekr\xE4fta","Confirm a Code":"Bekr\xE4fta koden","Confirm Sign In":"Bekr\xE4fta inloggning","Confirm Sign Up":"Bekr\xE4fta registrering","Confirmation Code":"Verifikationskod","Create a new account":"Skapa ett nytt konto","Create account":"Skapa konto","Create Account":"Skapa konto",Email:"E-post","Enter your password":"Ange ditt l\xF6senord","Enter your username":"Ange ditt anv\xE4ndarnamn","Forgot Password":"Gl\xF6mt l\xF6senordet","Forgot your password?":"Gl\xF6mt ditt l\xF6senord? ","Have an account? ":"Redan registrerad? ","Incorrect username or password":"Felaktigt anv\xE4ndarnamn eller l\xF6senord","Invalid password format":"Ogiltigt l\xF6senordsformat","Invalid phone number format":"Ogiltigt format f\xF6r telefonnummer","Lost your code? ":"F\xF6rlorat koden? ","New Password":"Nytt l\xF6senord","No account? ":"Inget konto? ",or:"eller",Password:"L\xF6senord","Password attempts exceeded":"Maximalt antal felaktiga inloggningsf\xF6rs\xF6k har uppn\xE5tts","Phone Number":"Telefonnummer","Resend Code":"Skicka koden igen","Reset password":"\xC5terst\xE4ll l\xF6senord","Reset your password":"\xC5terst\xE4ll ditt l\xF6senord","Send code":"Skicka kod","Sign in":"Logga in","Sign In":"Logga in","Sign in to your account":"Logga in till ditt konto","Sign Out":"Logga ut","Sign Up":"Registrering","We Emailed You":"Vi har skickat e-post till dig","Enter your code":"Skriv din kod",Skip:"Hoppa \xF6ver",Submit:"Skicka","User already exists":"Anv\xE4ndaren finns redan","User does not exist":"Anv\xE4ndaren finns inte",Username:"Anv\xE4ndarnamn","Username cannot be empty":"Anv\xE4ndarnamnet kan inte vara tomt",Verify:"Verifiera","Verify Contact":"Verifiera kontakt"},pl={"Account recovery requires verified contact information":"Pemulihan akun memerlukan informasi kontak terverifikasi","An account with the given email already exists.":"Akun dengan email tersebut sudah terdaftar.","Attempt limit exceeded, please try after some time.":"Batas percobaan terlampaui, mohon coba lagi setelah beberapa waktu.","Back to Sign In":"Kembali ke Masuk","Cannot reset password for the user as there is no registered/verified email or phone_number":"Tidak dapat mengatur ulang kata sandi karena tidak ada email terdaftar / terverifikasi atau nomor telepon",Change:"Ubah","Change Password":"Ubah kata sandi",Code:"Kode",Confirm:"Konfirmasi","Confirm a Code":"Konfirmasi kode","Confirm Password":"Konfirmasi kata sandi","Confirmation Code":"Kode Konfirmasi","Create a new account":"Buat akun baru","Create account":"Buat akun","Create Account":"Buat Akun","Creating Account":"Membuat Akun",Confirming:"Mengkonfirmasi",Email:"Email","Enter your code":"Masukkan kode anda","Enter your email":"Masukkan email anda","Enter your password":"Masukkan kata sandi anda","Enter your phone number":"Masukkan nomor telepon anda","Enter your username":"Masukkan nama akun anda","Forgot Password":"Lupa kata sandi","Forgot your password?":"Lupa kata sandi? ","Have an account? ":"Sudah punya akun? ",Hello:"Halo","Incorrect username or password.":"Nama akun atau kata sandi salah.","Invalid phone number format":"Nomor telepon tidak sesuai dengan format.","Invalid verification code provided, please try again.":"Kode verifikasi tidak sesuai, mohon coba lagi.","It may take a minute to arrive.":"Mungkin perlu beberapa waktu untuk tiba.","Lost your code? ":"Kode anda hilang?",Name:"Nama","Network error":"Galat jaringan","New password":"Kata sandi baru","No account? ":"Tidak ada akun?",or:"atau",Password:"Kata sandi","Password did not conform with policy: Password not long enough":"Kata sandi tidak sesuai dengan aturan: Kata sandi kurang panjang","Phone Number":"Nomor telepon","Resend a Code":"Renvoyer un code","Resend Code":"Kirim ulang kodenya","Reset password":"Ubah kata sandi anda","Reset your password":"Ubah kata sandi anda",Send:"Kirim","Send Code":"Kirim Kode","Send code":"Kirim kode",Sending:"Mengirim","Sign in":"Masuk","Sign In":"Masuk","Sign in to your account":"Masuk akun anda","Sign In with Amazon":"Masuk dengan Amazon","Sign In with AWS":"Masuk dengan AWS","Sign In with Facebook":"Masuk dengan Facebook","Sign In with Google":"Masuk dengan Google","Sign Up with Amazon":"Daftar dengan Amazon","Sign Up with AWS":"Daftar dengan AWS","Sign Up with Facebook":"Daftar dengan Facebook","Sign Up with Google":"Daftar dengan Google","Signing in":"Memasuki",Skip:"Lewati",SMS:"SMS",Submit:"Ajukan",Submitting:"Mengajukan","User is disabled.":"Akun dinonaktifkan.","User already exists":"Akun sudah terdaftar","User does not exist.":"Akun tidak terdaftar.",Username:"Nama akun","Username cannot be empty":"Nama akun tidak boleh kosong","Username/client id combination not found.":"Nama akun atau id tidak ditemukan.",Verify:"Verifikasi","Verify Contact":"Verifikasi Kontak","We Emailed You":"Kami mengirimkanmu email","Your code is on the way. To log in, enter the code we emailed to":"Kode anda dalam pengiriman. Untuk masuk, masukkan kode yang kami emailkan ke","Your code is on the way. To log in, enter the code we texted to":"Kode anda dalam pengiriman. Untuk masuk, masukkan kode yang kami tuliskan ke","Your passwords must match":"Kata sandi harus sama"},hl={"Account recovery requires verified contact information":"Hesap kurtarma, do\u011Frulanm\u0131\u015F ileti\u015Fim bilgilerini gerektirir","An account with the given email already exists.":"Bu e-postaya ait zaten bir hesap var.","Back to Sign In":"Oturum A\xE7maya Geri D\xF6n","Change Password":"\u015Eifreyi De\u011Fi\u015Ftir",Changing:"De\u011Fi\u015Ftiriliyor",Code:"Kod",Confirm:"Do\u011Frula","Confirm Password":"\u015Eifreyi Do\u011Frula","Confirm Sign In":"Oturum A\xE7may\u0131 Do\u011Frula","Confirm Sign Up":"Kay\u0131t \u0130\u015Flemini Do\u011Frula","Confirm SMS Code":"SMS Kodunu Do\u011Frula","Confirm TOTP Code":"Tek Kullan\u0131ml\u0131k \u015Eifreyi Do\u011Frula","Confirmation Code":"Do\u011Frulama Kodu",Confirming:"Do\u011Frulan\u0131yor","Create Account":"Hesap Olu\u015Ftur","Creating Account":"Hesap Olu\u015Fturuluyor",Email:"E-posta","Enter your code":"Kodu girin","Enter your username":"Kullan\u0131c\u0131 ad\u0131n\u0131z\u0131 girin","Enter your phone number":"Telefon numaran\u0131z\u0131 girin","Enter your email":"E-posta adresinizi girin","Forgot your password?":"\u015Eifrenizi mi unuttunuz?","Hide password":"\u015Eifreyi gizle","Have an account? ":"Hesab\u0131n\u0131z var m\u0131? ","Incorrect username or password":"Yanl\u0131\u015F kullan\u0131c\u0131 ad\u0131 ya da \u015Fifre","Invalid password format":"Ge\xE7ersiz parola format\u0131","Invalid phone number format":"Ge\xE7ersiz telefon numaras\u0131 format\u0131","Lost your code? ":"Kodu mu kaybettiniz? ",Loading:"Y\xFCkleniyor","New password":"Yeni \u015Fifre","No account? ":"Hesab\u0131n\u0131z yok mu? ",or:"veya",Password:"\u015Eifre","Password attempts exceeded":"Maksimum oturum a\xE7ma giri\u015Fimi a\u015F\u0131ld\u0131","Phone Number":"Telefon Numaras\u0131","Resend Code":"Kodu Yeniden G\xF6nder","Reset your password":"\u015Eifrenizi s\u0131f\u0131rlay\u0131n","Reset your Password":"\u015Eifrenizi S\u0131f\u0131rlay\u0131n","Send Code":"Kod G\xF6nder","Send code":"Kod g\xF6nder",Sending:"G\xF6nderiliyor","Setup TOTP":"Tek kullan\u0131ml\u0131k \u015Fifre kurulumu yap","Show password":"\u015Eifreyi g\xF6ster","Sign in":"Oturum a\xE7","Sign In":"Oturum A\xE7","Sign In with Amazon":"Amazon ile Oturum A\xE7","Sign In with Apple":"Apple ile Oturum A\xE7","Sign In with Facebook":"Facebook ile Oturum A\xE7","Sign In with Google":"Google ile Oturum A\xE7","Sign in to your account":"Hesab\u0131n\u0131zda oturum a\xE7\u0131n","Create a new account":"Yeni bir hesap olu\u015Ftur","Signing in":"Oturum a\xE7\u0131l\u0131yor","Sign Out":"\xC7\u0131k\u0131\u015F yap","Sign Up":"Kay\u0131t Ol",Skip:"Atla",Submit:"G\xF6nder",Submitting:"G\xF6nderiliyor","User already exists":"Bu kullan\u0131c\u0131 zaten var","User does not exist":"B\xF6yle bir kullan\u0131c\u0131 mevcut de\u011Fil",Username:"Kullan\u0131c\u0131 ad\u0131","Username cannot be empty":"Kullan\u0131c\u0131 ad\u0131 bo\u015F olamaz","Verify Contact":"Ki\u015Fiyi Do\u011Frula",Verify:"Do\u011Frula"},ml={BACK_SIGN_IN:"Back to Sign In",BIRTHDATE:"Birthdate",CHANGE_PASSWORD:"Change Password",CHANGING_PASSWORD:"Changing",CODE:"Code",CONFIRM_PASSWORD:"Confirm Password",CONFIRM_RESET_PASSWORD_HEADING:"Reset your Password",CONFIRM_SIGNUP_HEADING:"Confirm Sign Up",CONFIRM_SMS:"Confirm SMS Code",CONFIRM_TOTP:"Confirm TOTP Code",CONFIRM:"Confirm",CONFIRMATION_CODE:"Confirmation Code",CONFIRMING:"Confirming",CREATE_ACCOUNT:"Create Account",CREATING_ACCOUNT:"Creating Account",EMAIL_ADDRESS:"Email",ENTER_CODE:"Enter your code",ENTER_USERNAME:"Enter your username",FAMILY_NAME:"Family Name",GIVEN_NAME:"Given Name",FORGOT_YOUR_PASSWORD:"Forgot your password?",FORGOT_YOUR_PASSWORD_LEGACY:"Forgot your password? ",HIDE_PASSWORD:"Hide password",LOADING:"Loading",LOGIN_NAME:"Username",MIDDLE_NAME:"Middle Name",NAME:"Name",NICKNAME:"Nickname",NEW_PASSWORD:"New password",PASSWORD:"Password",PHONE_NUMBER:"Phone Number",PREFERRED_USERNAME:"Preferred Username",PROFILE:"Profile",RESEND_CODE:"Resend Code",RESET_PASSWORD_HEADING:"Reset your password",RESET_PASSWORD:"Reset Password",SEND_CODE:"Send code",SENDING:"Sending",SETUP_TOTP:"Setup TOTP",SHOW_PASSWORD:"Show password",SIGN_IN_BUTTON:"Sign in",SIGN_IN_TAB:"Sign In",SIGN_IN_WITH_AMAZON:"Sign In with Amazon",SIGN_IN_WITH_APPLE:"Sign In with Apple",SIGN_IN_WITH_FACEBOOK:"Sign In with Facebook",SIGN_IN_WITH_GOOGLE:"Sign In with Google",SIGN_IN:"Sign in to your account",SIGN_UP_BUTTON:"Create a new account",SIGNING_IN_BUTTON:"Signing in",SKIP:"Skip",SUBMIT:"Submit",SUBMITTING:"Submitting",VERIFY_CONTACT:"Verify Contact",VERIFY_HEADING:"Account recovery requires verified contact information",VERIFY:"Verify",WEBSITE:"Website"},gl=R({},tl),vl=R({},nl),yl=R({},rl),wl=R({},ol),Sl=R({},al),_l=R({},il),bl=R({},sl),Cl=R({},ul),Al=R({},cl),El=R({},ll),$l=R({},dl),Il=R({},fl),Tl=R({},pl),Pl=R({},hl),Nl=R({},ml);R({},Nl);function O(e){return re.I18n.get(e)}function kl(e){return re.I18n.get(e)!==e}var xl={de:gl,en:vl,es:yl,fr:wl,id:Tl,it:Sl,ja:_l,kr:bl,nl:Cl,pl:Al,pt:El,zh:$l,sv:Il,tr:Pl},Wr={birthdate:{label:"Birthdate",labelHidden:!0,placeholder:"Birthdate",type:"date",autocomplete:"bday",isRequired:!0},confirmation_code:{label:"Confirmation Code",labelHidden:!0,placeholder:"Code",type:"number",autocomplete:"one-time-code",isRequired:!0},confirm_password:{label:"Confirm Password",labelHidden:!0,placeholder:"Confirm Password",type:"password",autocomplete:"new-password",isRequired:!0},email:{label:"Email",labelHidden:!0,placeholder:"Email",type:"email",autocomplete:"username",isRequired:!0},family_name:{label:"Family Name",labelHidden:!0,placeholder:"Family Name",type:"text",autocomplete:"family-name",isRequired:!0},given_name:{label:"Given Name",labelHidden:!0,placeholder:"Given Name",type:"text",autocomplete:"given-name",isRequired:!0},middle_name:{label:"Middle Name",labelHidden:!0,placeholder:"Middle Name",type:"text",autocomplete:"additional-name",isRequired:!0},name:{label:"Name",labelHidden:!0,placeholder:"Name",type:"text",autocomplete:"name",isRequired:!0},nickname:{label:"Nickname",labelHidden:!0,placeholder:"Nickname",type:"text",autocomplete:"tel",isRequired:!0},password:{label:"Password",labelHidden:!0,placeholder:"Password",type:"password",autocomplete:"new-password",isRequired:!0},phone_number:{label:"Phone Number",labelHidden:!0,placeholder:"Phone",type:"tel",autocomplete:"tel",dialCode:"+1",dialCodeList:el,isRequired:!0},preferred_username:{label:"Preferred Username",labelHidden:!0,placeholder:"Preferred Username",type:"text",isRequired:!0},profile:{label:"Profile",labelHidden:!0,placeholder:"Profile",type:"url",autocomplete:"url",isRequired:!0},website:{label:"Website",labelHidden:!0,placeholder:"Website",type:"url",autocomplete:"url",isRequired:!0},username:{label:"Username",labelHidden:!0,placeholder:"Username",type:"text",autocomplete:"username",isRequired:!0}},Le=function(e){var t=new FormData(e.target);return Object.fromEntries(t)},ea=function(e){return Zc.includes(e)},Ul=function(e){return e?(t=e,Array.isArray(t)?e:[e]):null;var t},Ol=function(e,t){var n=t.send,r=t.getSnapshot();switch(e.payload.event){case"tokenRefresh":r.matches("authenticated.idle")&&n("TOKEN_REFRESH");break;case"signOut":case"tokenRefresh_failure":r.matches("authenticated.idle")&&n("SIGN_OUT")}},Rl=function(e,t){return t===void 0&&(t=Ol),re.Hub.listen("auth",function(n){t(n,e)})};function Bl(){this.__data__=[],this.size=0}var Vl=Bl;function Dl(e,t){return e===t||e!==e&&t!==t}var Vt=Dl,Ml=Vt;function Fl(e,t){for(var n=e.length;n--;)if(Ml(e[n][0],t))return n;return-1}var Bn=Fl,Ll=Bn,jl=Array.prototype,zl=jl.splice;function Gl(e){var t=this.__data__,n=Ll(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():zl.call(t,n,1),--this.size,!0}var Hl=Gl,Kl=Bn;function ql(e){var t=this.__data__,n=Kl(t,e);return n<0?void 0:t[n][1]}var Wl=ql,Yl=Bn;function Jl(e){return Yl(this.__data__,e)>-1}var Zl=Jl,Ql=Bn;function Xl(e,t){var n=this.__data__,r=Ql(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var ed=Xl,td=Vl,nd=Hl,rd=Wl,od=Zl,ad=ed;function ht(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ht.prototype.clear=td;ht.prototype.delete=nd;ht.prototype.get=rd;ht.prototype.has=od;ht.prototype.set=ad;var Vn=ht,id=Vn;function sd(){this.__data__=new id,this.size=0}var ud=sd;function cd(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var ld=cd;function dd(e){return this.__data__.get(e)}var fd=dd;function pd(e){return this.__data__.has(e)}var hd=pd,md=Me,gd=md["__core-js_shared__"],vd=gd,ar=vd,ta=function(){var e=/[^.]+$/.exec(ar&&ar.keys&&ar.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function yd(e){return!!ta&&ta in e}var wd=yd,Sd=Function.prototype,_d=Sd.toString;function bd(e){if(e!=null){try{return _d.call(e)}catch{}try{return e+""}catch{}}return""}var ui=bd,Cd=Gr,Ad=wd,Ed=Fe,$d=ui,Id=/[\\^$.*+?()[\]{}|]/g,Td=/^\[object .+?Constructor\]$/,Pd=Function.prototype,Nd=Object.prototype,kd=Pd.toString,xd=Nd.hasOwnProperty,Ud=RegExp("^"+kd.call(xd).replace(Id,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Od(e){if(!Ed(e)||Ad(e))return!1;var t=Cd(e)?Ud:Td;return t.test($d(e))}var Rd=Od;function Bd(e,t){return e==null?void 0:e[t]}var Vd=Bd,Dd=Rd,Md=Vd;function Fd(e,t){var n=Md(e,t);return Dd(n)?n:void 0}var nt=Fd,Ld=nt,jd=Me,zd=Ld(jd,"Map"),Yr=zd,Gd=nt,Hd=Gd(Object,"create"),Dn=Hd,na=Dn;function Kd(){this.__data__=na?na(null):{},this.size=0}var qd=Kd;function Wd(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Yd=Wd,Jd=Dn,Zd="__lodash_hash_undefined__",Qd=Object.prototype,Xd=Qd.hasOwnProperty;function ef(e){var t=this.__data__;if(Jd){var n=t[e];return n===Zd?void 0:n}return Xd.call(t,e)?t[e]:void 0}var tf=ef,nf=Dn,rf=Object.prototype,of=rf.hasOwnProperty;function af(e){var t=this.__data__;return nf?t[e]!==void 0:of.call(t,e)}var sf=af,uf=Dn,cf="__lodash_hash_undefined__";function lf(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=uf&&t===void 0?cf:t,this}var df=lf,ff=qd,pf=Yd,hf=tf,mf=sf,gf=df;function mt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}mt.prototype.clear=ff;mt.prototype.delete=pf;mt.prototype.get=hf;mt.prototype.has=mf;mt.prototype.set=gf;var vf=mt,ra=vf,yf=Vn,wf=Yr;function Sf(){this.size=0,this.__data__={hash:new ra,map:new(wf||yf),string:new ra}}var _f=Sf;function bf(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Cf=bf,Af=Cf;function Ef(e,t){var n=e.__data__;return Af(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Mn=Ef,$f=Mn;function If(e){var t=$f(this,e).delete(e);return this.size-=t?1:0,t}var Tf=If,Pf=Mn;function Nf(e){return Pf(this,e).get(e)}var kf=Nf,xf=Mn;function Uf(e){return xf(this,e).has(e)}var Of=Uf,Rf=Mn;function Bf(e,t){var n=Rf(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var Vf=Bf,Df=_f,Mf=Tf,Ff=kf,Lf=Of,jf=Vf;function gt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}gt.prototype.clear=Df;gt.prototype.delete=Mf;gt.prototype.get=Ff;gt.prototype.has=Lf;gt.prototype.set=jf;var Jr=gt,zf=Vn,Gf=Yr,Hf=Jr,Kf=200;function qf(e,t){var n=this.__data__;if(n instanceof zf){var r=n.__data__;if(!Gf||r.length<Kf-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Hf(r)}return n.set(e,t),this.size=n.size,this}var Wf=qf,Yf=Vn,Jf=ud,Zf=ld,Qf=fd,Xf=hd,ep=Wf;function vt(e){var t=this.__data__=new Yf(e);this.size=t.size}vt.prototype.clear=Jf;vt.prototype.delete=Zf;vt.prototype.get=Qf;vt.prototype.has=Xf;vt.prototype.set=ep;var Fn=vt;function tp(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var np=tp,rp=nt,op=function(){try{var e=rp(Object,"defineProperty");return e({},"",{}),e}catch{}}(),ci=op,oa=ci;function ap(e,t,n){t=="__proto__"&&oa?oa(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Zr=ap,ip=Zr,sp=Vt,up=Object.prototype,cp=up.hasOwnProperty;function lp(e,t,n){var r=e[t];(!(cp.call(e,t)&&sp(r,n))||n===void 0&&!(t in e))&&ip(e,t,n)}var Qr=lp,dp=Qr,fp=Zr;function pp(e,t,n,r){var a=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var u=t[i],c=r?r(n[u],e[u],u,n,e):void 0;c===void 0&&(c=e[u]),a?fp(n,u,c):dp(n,u,c)}return n}var Dt=pp,hp=Dt,mp=Rn;function gp(e,t){return e&&hp(t,mp(t),e)}var vp=gp;function yp(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var wp=yp,Sp=Fe,_p=On,bp=wp,Cp=Object.prototype,Ap=Cp.hasOwnProperty;function Ep(e){if(!Sp(e))return bp(e);var t=_p(e),n=[];for(var r in e)r=="constructor"&&(t||!Ap.call(e,r))||n.push(r);return n}var $p=Ep,Ip=ri,Tp=$p,Pp=Bt;function Np(e){return Pp(e)?Ip(e,!0):Tp(e)}var Mt=Np,kp=Dt,xp=Mt;function Up(e,t){return e&&kp(t,xp(t),e)}var Op=Up,yn={exports:{}};(function(e,t){var n=Me,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,s=i?n.Buffer:void 0,u=s?s.allocUnsafe:void 0;function c(d,l){if(l)return d.slice();var h=d.length,f=u?u(h):new d.constructor(h);return d.copy(f),f}e.exports=c})(yn,yn.exports);function Rp(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var li=Rp;function Bp(e,t){for(var n=-1,r=e==null?0:e.length,a=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[a++]=s)}return i}var Vp=Bp;function Dp(){return[]}var di=Dp,Mp=Vp,Fp=di,Lp=Object.prototype,jp=Lp.propertyIsEnumerable,aa=Object.getOwnPropertySymbols,zp=aa?function(e){return e==null?[]:(e=Object(e),Mp(aa(e),function(t){return jp.call(e,t)}))}:Fp,Xr=zp,Gp=Dt,Hp=Xr;function Kp(e,t){return Gp(e,Hp(e),t)}var qp=Kp;function Wp(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var fi=Wp,Yp=oi,Jp=Yp(Object.getPrototypeOf,Object),eo=Jp,Zp=fi,Qp=eo,Xp=Xr,eh=di,th=Object.getOwnPropertySymbols,nh=th?function(e){for(var t=[];e;)Zp(t,Xp(e)),e=Qp(e);return t}:eh,pi=nh,rh=Dt,oh=pi;function ah(e,t){return rh(e,oh(e),t)}var ih=ah,sh=fi,uh=xe;function ch(e,t,n){var r=t(e);return uh(e)?r:sh(r,n(e))}var hi=ch,lh=hi,dh=Xr,fh=Rn;function ph(e){return lh(e,fh,dh)}var mi=ph,hh=hi,mh=pi,gh=Mt;function vh(e){return hh(e,gh,mh)}var gi=vh,yh=nt,wh=Me,Sh=yh(wh,"DataView"),_h=Sh,bh=nt,Ch=Me,Ah=bh(Ch,"Promise"),Eh=Ah,$h=nt,Ih=Me,Th=$h(Ih,"Set"),Ph=Th,Nh=nt,kh=Me,xh=Nh(kh,"WeakMap"),Uh=xh,yr=_h,wr=Yr,Sr=Eh,_r=Ph,br=Uh,vi=pt,yt=ui,ia="[object Map]",Oh="[object Object]",sa="[object Promise]",ua="[object Set]",ca="[object WeakMap]",la="[object DataView]",Rh=yt(yr),Bh=yt(wr),Vh=yt(Sr),Dh=yt(_r),Mh=yt(br),et=vi;(yr&&et(new yr(new ArrayBuffer(1)))!=la||wr&&et(new wr)!=ia||Sr&&et(Sr.resolve())!=sa||_r&&et(new _r)!=ua||br&&et(new br)!=ca)&&(et=function(e){var t=vi(e),n=t==Oh?e.constructor:void 0,r=n?yt(n):"";if(r)switch(r){case Rh:return la;case Bh:return ia;case Vh:return sa;case Dh:return ua;case Mh:return ca}return t});var Ft=et,Fh=Object.prototype,Lh=Fh.hasOwnProperty;function jh(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Lh.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var zh=jh,Gh=Me,Hh=Gh.Uint8Array,yi=Hh,da=yi;function Kh(e){var t=new e.constructor(e.byteLength);return new da(t).set(new da(e)),t}var to=Kh,qh=to;function Wh(e,t){var n=t?qh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Yh=Wh,Jh=/\w*$/;function Zh(e){var t=new e.constructor(e.source,Jh.exec(e));return t.lastIndex=e.lastIndex,t}var Qh=Zh,fa=Rt,pa=fa?fa.prototype:void 0,ha=pa?pa.valueOf:void 0;function Xh(e){return ha?Object(ha.call(e)):{}}var em=Xh,tm=to;function nm(e,t){var n=t?tm(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var wi=nm,rm=to,om=Yh,am=Qh,im=em,sm=wi,um="[object Boolean]",cm="[object Date]",lm="[object Map]",dm="[object Number]",fm="[object RegExp]",pm="[object Set]",hm="[object String]",mm="[object Symbol]",gm="[object ArrayBuffer]",vm="[object DataView]",ym="[object Float32Array]",wm="[object Float64Array]",Sm="[object Int8Array]",_m="[object Int16Array]",bm="[object Int32Array]",Cm="[object Uint8Array]",Am="[object Uint8ClampedArray]",Em="[object Uint16Array]",$m="[object Uint32Array]";function Im(e,t,n){var r=e.constructor;switch(t){case gm:return rm(e);case um:case cm:return new r(+e);case vm:return om(e,n);case ym:case wm:case Sm:case _m:case bm:case Cm:case Am:case Em:case $m:return sm(e,n);case lm:return new r;case dm:case hm:return new r(e);case fm:return am(e);case pm:return new r;case mm:return im(e)}}var Tm=Im,Pm=Fe,ma=Object.create,Nm=function(){function e(){}return function(t){if(!Pm(t))return{};if(ma)return ma(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),km=Nm,xm=km,Um=eo,Om=On;function Rm(e){return typeof e.constructor=="function"&&!Om(e)?xm(Um(e)):{}}var Si=Rm,Bm=Ft,Vm=Ke,Dm="[object Map]";function Mm(e){return Vm(e)&&Bm(e)==Dm}var Fm=Mm,Lm=Fm,jm=qr,ga=xt.exports,va=ga&&ga.isMap,zm=va?jm(va):Lm,Gm=zm,Hm=Ft,Km=Ke,qm="[object Set]";function Wm(e){return Km(e)&&Hm(e)==qm}var Ym=Wm,Jm=Ym,Zm=qr,ya=xt.exports,wa=ya&&ya.isSet,Qm=wa?Zm(wa):Jm,Xm=Qm,eg=Fn,tg=np,ng=Qr,rg=vp,og=Op,ag=yn.exports,ig=li,sg=qp,ug=ih,cg=mi,lg=gi,dg=Ft,fg=zh,pg=Tm,hg=Si,mg=xe,gg=tt.exports,vg=Gm,yg=Fe,wg=Xm,Sg=Rn,_g=Mt,bg=1,Cg=2,Ag=4,_i="[object Arguments]",Eg="[object Array]",$g="[object Boolean]",Ig="[object Date]",Tg="[object Error]",bi="[object Function]",Pg="[object GeneratorFunction]",Ng="[object Map]",kg="[object Number]",Ci="[object Object]",xg="[object RegExp]",Ug="[object Set]",Og="[object String]",Rg="[object Symbol]",Bg="[object WeakMap]",Vg="[object ArrayBuffer]",Dg="[object DataView]",Mg="[object Float32Array]",Fg="[object Float64Array]",Lg="[object Int8Array]",jg="[object Int16Array]",zg="[object Int32Array]",Gg="[object Uint8Array]",Hg="[object Uint8ClampedArray]",Kg="[object Uint16Array]",qg="[object Uint32Array]",ne={};ne[_i]=ne[Eg]=ne[Vg]=ne[Dg]=ne[$g]=ne[Ig]=ne[Mg]=ne[Fg]=ne[Lg]=ne[jg]=ne[zg]=ne[Ng]=ne[kg]=ne[Ci]=ne[xg]=ne[Ug]=ne[Og]=ne[Rg]=ne[Gg]=ne[Hg]=ne[Kg]=ne[qg]=!0;ne[Tg]=ne[bi]=ne[Bg]=!1;function pn(e,t,n,r,a,i){var s,u=t&bg,c=t&Cg,d=t&Ag;if(n&&(s=a?n(e,r,a,i):n(e)),s!==void 0)return s;if(!yg(e))return e;var l=mg(e);if(l){if(s=fg(e),!u)return ig(e,s)}else{var h=dg(e),f=h==bi||h==Pg;if(gg(e))return ag(e,u);if(h==Ci||h==_i||f&&!a){if(s=c||f?{}:hg(e),!u)return c?ug(e,og(s,e)):sg(e,rg(s,e))}else{if(!ne[h])return a?e:{};s=pg(e,h,u)}}i||(i=new eg);var p=i.get(e);if(p)return p;i.set(e,s),wg(e)?e.forEach(function(g){s.add(pn(g,t,n,g,e,i))}):vg(e)&&e.forEach(function(g,S){s.set(S,pn(g,t,n,S,e,i))});var v=d?c?lg:cg:c?_g:Sg,m=l?void 0:v(e);return tg(m||e,function(g,S){m&&(S=g,g=e[S]),ng(s,S,pn(g,t,n,S,e,i))}),s}var Wg=pn,Yg=Wg,Jg=1,Zg=4;function Qg(e){return Yg(e,Jg|Zg)}var Xg=Qg,qe=function(e,t){var n=zr(e).country_code,r=Wr[t];return r.type==="tel"&&(r=R(R({},r),{dialCode:n})),r},ir=function(e){var t=vr(e);return R(R({},qe(e,t)),{autocomplete:"username"})},Xt=function(e){return{confirmation_code:R(R({},qe(e,"confirmation_code")),{label:"Code *",placeholder:"Code"})}},ev={signIn:function(e){return{username:R({},ir(e)),password:R(R({},qe(e,"password")),{autocomplete:"current-password"})}},signUp:function(e){for(var t=e.context.config,n=t.loginMechanisms,r=t.signUpAttributes,a=vr(e),i={},s=0,u=Array.from(new Set(Oe(Oe(Oe([],n,!0),["password","confirm_password"],!1),r,!0)));s<u.length;s++){var c=u[s];if(ea(c)){var d=c===a?ir(e):qe(e,c);i[c]=R({},d)}else console.debug("Authenticator does not have a default implementation for ".concat(c,". Customize SignUp FormFields to add your own."))}return i},confirmSignUp:function(e){return{confirmation_code:R(R({},qe(e,"confirmation_code")),{placeholder:"Enter your code"})}},confirmSignIn:Xt,forceNewPassword:function(e){for(var t=be(e).context.requiredAttributes,n={},r=0,a=Array.from(new Set(Oe(["password","confirm_password"],t,!0)));r<a.length;r++){var i=a[r];ea(i)?n[i]=R({},qe(e,i)):console.debug("Authenticator does not have a default implementation for ".concat(i,". Customize ForceNewPassword FormFields to add your own."))}return n},resetPassword:function(e){var t=vr(e),n=Wr[t].label;return{username:R(R({},ir(e)),{label:"Enter your ".concat(n.toLowerCase()),placeholder:"Enter your ".concat(n.toLowerCase())})}},confirmResetPassword:function(e){return R(R({},Xt(e)),{password:R(R({},qe(e,"password")),{label:"New Password",placeholder:"New Password"}),confirm_password:R(R({},qe(e,"confirm_password")),{label:"Confirm Password",placeholder:"Confirm Password"})})},confirmVerifyUser:Xt,setupTOTP:Xt},tv=function(e){for(var t=R({},e),n=0,r=Object.entries(e);n<r.length;n++){var a=r[n],i=a[0],s=a[1],u=s.label,c=s.placeholder;t[i]=R(R({},s),{label:u?O(u):void 0,placeholder:c?O(c):void 0})}return t},nv=function(e){return Object.entries(e).sort(function(t,n){return(t[1].order||Number.MAX_VALUE)-(n[1].order||Number.MAX_VALUE)}).filter(function(t){return t[1]!==void 0})},rv=function(e,t){t===void 0&&(t={});var n=Xg(e);return Object.keys(t).forEach(function(r){n[r]=R(R({},n[r]),t[r])}),n},ov=function(e,t){var n=(0,ev[e])(t);return tv(n)},av=function(e,t){var n,r,a=ov(e,t),i=((r=(n=be(t).context)===null||n===void 0?void 0:n.formFields)===null||r===void 0?void 0:r[e])||{},s=rv(a,i);return delete s.QR,s},iv=function(e,t){var n=av(e,t);return nv(n)};/*! *****************************************************************************
|
|
16
16
|
Copyright (c) Microsoft Corporation.
|
|
17
17
|
|
|
18
18
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -25,10 +25,10 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
25
25
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
26
26
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
27
27
|
PERFORMANCE OF THIS SOFTWARE.
|
|
28
|
-
***************************************************************************** */var I=function(){return I=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},I.apply(this,arguments)};function no(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function G(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")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.")}function J(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,i=[],s;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)i.push(a.value)}catch(u){s={error:u}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function le(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,i;r<a;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var ee;(function(e){e.Start="xstate.start",e.Stop="xstate.stop",e.Raise="xstate.raise",e.Send="xstate.send",e.Cancel="xstate.cancel",e.NullEvent="",e.Assign="xstate.assign",e.After="xstate.after",e.DoneState="done.state",e.DoneInvoke="done.invoke",e.Log="xstate.log",e.Init="xstate.init",e.Invoke="xstate.invoke",e.ErrorExecution="error.execution",e.ErrorCommunication="error.communication",e.ErrorPlatform="error.platform",e.ErrorCustom="xstate.error",e.Update="xstate.update",e.Pure="xstate.pure",e.Choose="xstate.choose"})(ee||(ee={}));var st;(function(e){e.Parent="#_parent",e.Internal="#_internal"})(st||(st={}));var Cr=ee.Start,ro=ee.Stop,Ln=ee.Raise,jn=ee.Send,Ai=ee.Cancel,iv=ee.NullEvent,Ar=ee.Assign;ee.After;ee.DoneState;var Ei=ee.Log,sv=ee.Init,Er=ee.Invoke;ee.ErrorExecution;var Sa=ee.ErrorPlatform,uv=ee.ErrorCustom,oo=ee.Update,cv=ee.Choose,lv=ee.Pure,$i=".",_a={},$r="xstate.guard",dv="",fv=!0,en;function ao(e,t,n){n===void 0&&(n=$i);var r=Pt(e,n),a=Pt(t,n);return Y(a)?Y(r)?a===r:!1:Y(r)?r in a:Object.keys(r).every(function(i){return i in a?ao(r[i],a[i]):!1})}function Ii(e){try{return Y(e)||typeof e=="number"?"".concat(e):e.type}catch{throw new Error("Events must be strings or objects with a string event.type property.")}}function Ir(e,t){try{return wt(e)?e:e.toString().split(t)}catch{throw new Error("'".concat(e,"' is not a valid state path."))}}function pv(e){return typeof e=="object"&&"value"in e&&"context"in e&&"event"in e&&"_event"in e}function Pt(e,t){if(pv(e))return e.value;if(wt(e))return wn(e);if(typeof e!="string")return e;var n=Ir(e,t);return wn(n)}function wn(e){if(e.length===1)return e[0];for(var t={},n=t,r=0;r<e.length-1;r++)r===e.length-2?n[e[r]]=e[r+1]:(n[e[r]]={},n=n[e[r]]);return t}function $t(e,t){for(var n={},r=Object.keys(e),a=0;a<r.length;a++){var i=r[a];n[i]=t(e[i],i,e,a)}return n}function ba(e,t,n){var r,a,i={};try{for(var s=G(Object.keys(e)),u=s.next();!u.done;u=s.next()){var c=u.value,d=e[c];!n(d)||(i[c]=t(d,c,e))}}catch(l){r={error:l}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(r)throw r.error}}return i}var hv=function(e){return function(t){var n,r,a=t;try{for(var i=G(e),s=i.next();!s.done;s=i.next()){var u=s.value;a=a[u]}}catch(c){n={error:c}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a}};function mv(e,t){return function(n){var r,a,i=n;try{for(var s=G(e),u=s.next();!u.done;u=s.next()){var c=u.value;i=i[t][c]}}catch(d){r={error:d}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(r)throw r.error}}return i}}function hn(e){if(!e)return[[]];if(Y(e))return[[e]];var t=ce(Object.keys(e).map(function(n){var r=e[n];return typeof r!="string"&&(!r||!Object.keys(r).length)?[[n]]:hn(e[n]).map(function(a){return[n].concat(a)})}));return t}function ce(e){var t;return(t=[]).concat.apply(t,le([],J(e),!1))}function Ti(e){return wt(e)?e:[e]}function Ne(e){return e===void 0?[]:Ti(e)}function Sn(e,t,n){var r,a;if(Q(e))return e(t,n.data);var i={};try{for(var s=G(Object.keys(e)),u=s.next();!u.done;u=s.next()){var c=u.value,d=e[c];Q(d)?i[c]=d(t,n.data):i[c]=d}}catch(l){r={error:l}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(r)throw r.error}}return i}function gv(e){return/^(done|error)\./.test(e)}function Ca(e){return!!(e instanceof Promise||e!==null&&(Q(e)||typeof e=="object")&&Q(e.then))}function vv(e){return e!==null&&typeof e=="object"&&"transition"in e&&typeof e.transition=="function"}function Pi(e,t){var n,r,a=J([[],[]],2),i=a[0],s=a[1];try{for(var u=G(e),c=u.next();!c.done;c=u.next()){var d=c.value;t(d)?i.push(d):s.push(d)}}catch(l){n={error:l}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}return[i,s]}function Ni(e,t){return $t(e.states,function(n,r){if(!!n){var a=(Y(t)?void 0:t[r])||(n?n.current:void 0);if(!!a)return{current:a,states:Ni(n,a)}}})}function yv(e,t){return{current:t,states:Ni(e,t)}}function Aa(e,t,n,r){var a=e&&n.reduce(function(i,s){var u,c,d=s.assignment,l={state:r,action:s,_event:t},h={};if(Q(d))h=d(i,t.data,l);else try{for(var f=G(Object.keys(d)),p=f.next();!p.done;p=f.next()){var v=p.value,g=d[v];h[v]=Q(g)?g(i,t.data,l):g}}catch(m){u={error:m}}finally{try{p&&!p.done&&(c=f.return)&&c.call(f)}finally{if(u)throw u.error}}return Object.assign({},i,h)},e);return a}var ki=function(){};function wt(e){return Array.isArray(e)}function Q(e){return typeof e=="function"}function Y(e){return typeof e=="string"}function xi(e,t){if(!!e)return Y(e)?{type:$r,name:e,predicate:t?t[e]:void 0}:Q(e)?{type:$r,name:e.name,predicate:e}:e}function wv(e){try{return"subscribe"in e&&Q(e.subscribe)}catch{return!1}}var We=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();en={},en[We]=function(){return this},en[Symbol.observable]=function(){return this};function Je(e){return!!e&&"__xstatenode"in e}function Sv(e){return!!e&&typeof e.send=="function"}var _v=function(){var e=0;return function(){return e++,e.toString(16)}}();function io(e,t){return Y(e)||typeof e=="number"?I({type:e},t):e}function ve(e,t){if(!Y(e)&&"$$type"in e&&e.$$type==="scxml")return e;var n=io(e);return I({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function rt(e,t){var n=Ti(t).map(function(r){return typeof r=="undefined"||typeof r=="string"||Je(r)?{target:r,event:e}:I(I({},r),{event:e})});return n}function bv(e){if(!(e===void 0||e===dv))return Ne(e)}function Ui(e,t,n,r,a){var i=e.options.guards,s={state:a,cond:t,_event:r};if(t.type===$r)return((i==null?void 0:i[t.name])||t.predicate)(n,r.data,s);var u=i==null?void 0:i[t.type];if(!u)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return u(n,r.data,s)}function Oi(e){return typeof e=="string"?{type:e}:e}function Tr(e,t,n){if(typeof e=="object")return e;var r=function(){};return{next:e,error:t||r,complete:n||r}}function tn(e,t){return"".concat(e,":invocation[").concat(t,"]")}var _n=ve({type:sv});function Pr(e,t){return t&&t[e]||void 0}function Ut(e,t){var n;if(Y(e)||typeof e=="number"){var r=Pr(e,t);Q(r)?n={type:e,exec:r}:r?n=r:n={type:e,exec:void 0}}else if(Q(e))n={type:e.name||e.toString(),exec:e};else{var r=Pr(e.type,t);if(Q(r))n=I(I({},e),{exec:r});else if(r){var a=r.type||e.type;n=I(I(I({},r),e),{type:a})}else n=e}return n}var bn=function(e,t){if(!e)return[];var n=wt(e)?e:[e];return n.map(function(r){return Ut(r,t)})};function so(e){var t=Ut(e);return I(I({id:Y(e)?e:t.id},t),{type:t.type})}function Cv(e){return Y(e)?{type:Ln,event:e}:zn(e,{to:st.Internal})}function Av(e){return{type:Ln,_event:ve(e.event)}}function zn(e,t){return{to:t?t.to:void 0,type:jn,event:Q(e)?e:io(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:Q(e)?e.name:Ii(e)}}function Ev(e,t,n,r){var a={_event:n},i=ve(Q(e.event)?e.event(t,n.data,a):e.event),s;if(Y(e.delay)){var u=r&&r[e.delay];s=Q(u)?u(t,n.data,a):u}else s=Q(e.delay)?e.delay(t,n.data,a):e.delay;var c=Q(e.to)?e.to(t,n.data,a):e.to;return I(I({},e),{to:c,_event:i,event:i.data,delay:s})}function $v(e,t){return zn(e,I(I({},t),{to:st.Parent}))}function Iv(){return $v(oo)}var Tv=function(e,t,n){return I(I({},e),{value:Y(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})},Pv=function(e){return{type:Ai,sendId:e}};function Nv(e){var t=so(e);return{type:ee.Start,activity:t,exec:void 0}}function kv(e){var t=Q(e)?e:so(e);return{type:ee.Stop,activity:t,exec:void 0}}function xv(e,t,n){var r=Q(e.activity)?e.activity(t,n.data):e.activity,a=typeof r=="string"?{id:r}:r,i={type:ee.Stop,activity:a};return i}var Uv=function(e){return{type:Ar,assignment:e}};function Ov(e,t){var n=t?"#".concat(t):"";return"".concat(ee.After,"(").concat(e,")").concat(n)}function nn(e,t){var n="".concat(ee.DoneState,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function mn(e,t){var n="".concat(ee.DoneInvoke,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function It(e,t){var n="".concat(ee.ErrorPlatform,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Rv(e,t){return zn(function(n,r){return r},I(I({},t),{to:e}))}function Nr(e,t,n,r,a,i){i===void 0&&(i=!1);var s=J(i?[[],a]:Pi(a,function(f){return f.type===Ar}),2),u=s[0],c=s[1],d=u.length?Aa(n,r,u,t):n,l=i?[n]:void 0,h=ce(c.map(function(f){var p;switch(f.type){case Ln:return Av(f);case jn:var v=Ev(f,d,r,e.options.delays);return v;case Ei:return Tv(f,d,r);case cv:{var g=f,m=(p=g.conds.find(function(x){var B=xi(x.cond,e.options.guards);return!B||Ui(e,B,d,r,t)}))===null||p===void 0?void 0:p.actions;if(!m)return[];var S=J(Nr(e,t,d,r,bn(Ne(m),e.options.actions),i),2),w=S[0],_=S[1];return d=_,l==null||l.push(d),w}case lv:{var m=f.get(d,r.data);if(!m)return[];var b=J(Nr(e,t,d,r,bn(Ne(m),e.options.actions),i),2),C=b[0],$=b[1];return d=$,l==null||l.push(d),C}case ro:return xv(f,d,r);case Ar:{d=Aa(d,r,[f],t),l==null||l.push(d);break}default:var A=Ut(f,e.options.actions),E=A.exec;if(E&&l){var T=l.length-1;A=I(I({},A),{exec:function(x){for(var B=[],V=1;V<arguments.length;V++)B[V-1]=arguments[V];E.apply(void 0,le([l[T]],J(B),!1))}})}return A}}).filter(function(f){return!!f}));return[h,d]}var Cn=[],Tt=function(e,t){Cn.push(e);var n=t(e);return Cn.pop(),n},Bv=function(e){return e(Cn[Cn.length-1])};function Ri(e){var t;return t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}},t[We]=function(){return this},t}function Vv(e,t,n,r){var a,i=Oi(e.src),s=(a=t==null?void 0:t.options.services)===null||a===void 0?void 0:a[i.type],u=e.data?Sn(e.data,n,r):void 0,c=s?Bi(s,e.id,u):Ri(e.id);return c.meta=e,c}function Bi(e,t,n){var r=Ri(t);if(r.deferred=!0,Je(e)){var a=r.state=Tt(void 0,function(){return(n?e.withContext(n):e).initialState});r.getSnapshot=function(){return a}}return r}function Dv(e){try{return typeof e.send=="function"}catch{return!1}}function Mv(e){return Dv(e)&&"id"in e}function Fv(e){var t;return I((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}},t[We]=function(){return this},t),e)}var An=function(e){return e.type==="atomic"||e.type==="final"};function ut(e){return Object.keys(e.states).map(function(t){return e.states[t]})}function Vi(e){var t=[e];return An(e)?t:t.concat(ce(ut(e).map(Vi)))}function it(e,t){var n,r,a,i,s,u,c,d,l=new Set(e),h=kr(l),f=new Set(t);try{for(var p=G(f),v=p.next();!v.done;v=p.next())for(var g=v.value,m=g.parent;m&&!f.has(m);)f.add(m),m=m.parent}catch(T){n={error:T}}finally{try{v&&!v.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}var S=kr(f);try{for(var w=G(f),_=w.next();!_.done;_=w.next()){var g=_.value;if(g.type==="compound"&&(!S.get(g)||!S.get(g).length))h.get(g)?h.get(g).forEach(function(x){return f.add(x)}):g.initialStateNodes.forEach(function(x){return f.add(x)});else if(g.type==="parallel")try{for(var b=(s=void 0,G(ut(g))),C=b.next();!C.done;C=b.next()){var $=C.value;$.type!=="history"&&(f.has($)||(f.add($),h.get($)?h.get($).forEach(function(x){return f.add(x)}):$.initialStateNodes.forEach(function(x){return f.add(x)})))}}catch(x){s={error:x}}finally{try{C&&!C.done&&(u=b.return)&&u.call(b)}finally{if(s)throw s.error}}}}catch(T){a={error:T}}finally{try{_&&!_.done&&(i=w.return)&&i.call(w)}finally{if(a)throw a.error}}try{for(var A=G(f),E=A.next();!E.done;E=A.next())for(var g=E.value,m=g.parent;m&&!f.has(m);)f.add(m),m=m.parent}catch(T){c={error:T}}finally{try{E&&!E.done&&(d=A.return)&&d.call(A)}finally{if(c)throw c.error}}return f}function Di(e,t){var n=t.get(e);if(!n)return{};if(e.type==="compound"){var r=n[0];if(r){if(An(r))return r.key}else return{}}var a={};return n.forEach(function(i){a[i.key]=Di(i,t)}),a}function kr(e){var t,n,r=new Map;try{for(var a=G(e),i=a.next();!i.done;i=a.next()){var s=i.value;r.has(s)||r.set(s,[]),s.parent&&(r.has(s.parent)||r.set(s.parent,[]),r.get(s.parent).push(s))}}catch(u){t={error:u}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r}function Lv(e,t){var n=it([e],t);return Di(e,kr(n))}function gn(e,t){return Array.isArray(e)?e.some(function(n){return n===t}):e instanceof Set?e.has(t):!1}function jv(e){return le([],J(new Set(ce(le([],J(e.map(function(t){return t.ownEvents})),!1)))),!1)}function Nt(e,t){return t.type==="compound"?ut(t).some(function(n){return n.type==="final"&&gn(e,n)}):t.type==="parallel"?ut(t).every(function(n){return Nt(e,n)}):!1}function zv(e){return e===void 0&&(e=[]),e.reduce(function(t,n){return n.meta!==void 0&&(t[n.id]=n.meta),t},{})}function Ea(e){return new Set(ce(e.map(function(t){return t.tags})))}function Mi(e,t){if(e===t)return!0;if(e===void 0||t===void 0)return!1;if(Y(e)||Y(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(function(a){return Mi(e[a],t[a])})}function Gv(e){return typeof e!="object"||e===null?!1:"value"in e&&"_event"in e}function Hv(e,t){var n=e.exec,r=I(I({},e),{exec:n!==void 0?function(){return n(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0});return r}var Ue=function(){function e(t){var n=this,r;this.actions=[],this.activities=_a,this.meta={},this.events=[],this.value=t.value,this.context=t.context,this._event=t._event,this._sessionid=t._sessionid,this.event=this._event.data,this.historyValue=t.historyValue,this.history=t.history,this.actions=t.actions||[],this.activities=t.activities||_a,this.meta=zv(t.configuration),this.events=t.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=t.configuration,this.transitions=t.transitions,this.children=t.children,this.done=!!t.done,this.tags=(r=Array.isArray(t.tags)?new Set(t.tags):t.tags)!==null&&r!==void 0?r:new Set,this.machine=t.machine,Object.defineProperty(this,"nextEvents",{get:function(){return jv(n.configuration)}})}return e.from=function(t,n){if(t instanceof e)return t.context!==n?new e({value:t.value,context:n,_event:t._event,_sessionid:null,historyValue:t.historyValue,history:t.history,actions:[],activities:t.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):t;var r=_n;return new e({value:t,context:n,_event:r,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,meta:void 0,events:[],configuration:[],transitions:[],children:{}})},e.create=function(t){return new e(t)},e.inert=function(t,n){if(t instanceof e){if(!t.actions.length)return t;var r=_n;return new e({value:t.value,context:n,_event:r,_sessionid:null,historyValue:t.historyValue,history:t.history,activities:t.activities,configuration:t.configuration,transitions:[],children:{}})}return e.from(t,n)},e.prototype.toStrings=function(t,n){var r=this;if(t===void 0&&(t=this.value),n===void 0&&(n="."),Y(t))return[t];var a=Object.keys(t);return a.concat.apply(a,le([],J(a.map(function(i){return r.toStrings(t[i],n).map(function(s){return i+n+s})})),!1))},e.prototype.toJSON=function(){var t=this;t.configuration,t.transitions;var n=t.tags;t.machine;var r=no(t,["configuration","transitions","tags","machine"]);return I(I({},r),{tags:Array.from(n)})},e.prototype.matches=function(t){return ao(t,this.value)},e.prototype.hasTag=function(t){return this.tags.has(t)},e.prototype.can=function(t){var n;ki(!!this.machine);var r=(n=this.machine)===null||n===void 0?void 0:n.getTransitionData(this,t);return!!(r!=null&&r.transitions.length)&&r.transitions.some(function(a){return a.target!==void 0||a.actions.length})},e}(),Kv={deferEvents:!1},$a=function(){function e(t){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=I(I({},Kv),t)}return e.prototype.initialize=function(t){if(this.initialized=!0,t){if(!this.options.deferEvents){this.schedule(t);return}this.process(t)}this.flushEvents()},e.prototype.schedule=function(t){if(!this.initialized||this.processingEvent){this.queue.push(t);return}if(this.queue.length!==0)throw new Error("Event queue should be empty when it is not processing events");this.process(t),this.flushEvents()},e.prototype.clear=function(){this.queue=[]},e.prototype.flushEvents=function(){for(var t=this.queue.shift();t;)this.process(t),t=this.queue.shift()},e.prototype.process=function(t){this.processingEvent=!0;try{t()}catch(n){throw this.clear(),n}finally{this.processingEvent=!1}},e}(),sr=new Map,qv=0,rn={bookId:function(){return"x:".concat(qv++)},register:function(e,t){return sr.set(e,t),e},get:function(e){return sr.get(e)},free:function(e){sr.delete(e)}};function uo(){if(typeof globalThis!="undefined")return globalThis;if(typeof self!="undefined")return self;if(typeof window!="undefined")return window;if(typeof global!="undefined")return global}function Wv(){var e=uo();if(e&&"__xstate__"in e)return e.__xstate__}function Yv(e){if(!!uo()){var t=Wv();t&&t.register(e)}}function Jv(e,t){t===void 0&&(t={});var n=e.initialState,r=new Set,a=[],i=!1,s=function(){if(!i){for(i=!0;a.length>0;){var d=a.shift();n=e.transition(n,d,c),r.forEach(function(l){return l.next(n)})}i=!1}},u=Fv({id:t.id,send:function(d){a.push(d),s()},getSnapshot:function(){return n},subscribe:function(d,l,h){var f=Tr(d,l,h);return r.add(f),f.next(n),{unsubscribe:function(){r.delete(f)}}}}),c={parent:t.parent,self:u,id:t.id||"anonymous",observers:r};return n=e.start?e.start(c):n,u}var xr={sync:!1,autoForward:!1},we;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(we||(we={}));var Zv=function(){function e(t,n){var r=this;n===void 0&&(n=e.defaultOptions),this.machine=t,this.scheduler=new $a,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=we.NotStarted,this.children=new Map,this.forwardTo=new Set,this.init=this.start,this.send=function(l,h){if(wt(l))return r.batch(l),r.state;var f=ve(io(l,h));if(r.status===we.Stopped)return r.state;if(r.status!==we.Running&&!r.options.deferEvents)throw new Error('Event "'.concat(f.name,'" was sent to uninitialized service "').concat(r.machine.id,`". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.
|
|
29
|
-
Event: `).concat(JSON.stringify(f.data)));return r.scheduler.schedule(function(){r.forward(f);var p=r.nextState(f);r.update(p,f)}),r._state},this.sendTo=function(l,h){var f=r.parent&&(h===st.Parent||r.parent.id===h),p=f?r.parent:Y(h)?r.children.get(h)||rn.get(h):Sv(h)?h:void 0;if(!p){if(!f)throw new Error("Unable to send event to child '".concat(h,"' from service '").concat(r.id,"'."));return}"machine"in p?p.send(I(I({},l),{name:l.name===uv?"".concat(It(r.id)):l.name,origin:r.sessionId})):p.send(l.data)};var a=I(I({},e.defaultOptions),n),i=a.clock,s=a.logger,u=a.parent,c=a.id,d=c!==void 0?c:t.id;this.id=d,this.logger=s,this.clock=i,this.parent=u,this.options=a,this.scheduler=new $a({deferEvents:this.options.deferEvents}),this.sessionId=rn.bookId()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:Tt(this,function(){return t._initialState=t.machine.initialState,t._initialState})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),e.prototype.execute=function(t,n){var r,a;try{for(var i=G(t.actions),s=i.next();!s.done;s=i.next()){var u=s.value;this.exec(u,t,n)}}catch(c){r={error:c}}finally{try{s&&!s.done&&(a=i.return)&&a.call(i)}finally{if(r)throw r.error}}},e.prototype.update=function(t,n){var r,a,i,s,u,c,d,l,h=this;if(t._sessionid=this.sessionId,this._state=t,this.options.execute&&this.execute(this.state),this.children.forEach(function(T){h.state.children[T.id]=T}),this.devTools&&this.devTools.send(n.data,t),t.event)try{for(var f=G(this.eventListeners),p=f.next();!p.done;p=f.next()){var v=p.value;v(t.event)}}catch(T){r={error:T}}finally{try{p&&!p.done&&(a=f.return)&&a.call(f)}finally{if(r)throw r.error}}try{for(var g=G(this.listeners),m=g.next();!m.done;m=g.next()){var v=m.value;v(t,t.event)}}catch(T){i={error:T}}finally{try{m&&!m.done&&(s=g.return)&&s.call(g)}finally{if(i)throw i.error}}try{for(var S=G(this.contextListeners),w=S.next();!w.done;w=S.next()){var _=w.value;_(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(T){u={error:T}}finally{try{w&&!w.done&&(c=S.return)&&c.call(S)}finally{if(u)throw u.error}}var b=Nt(t.configuration||[],this.machine);if(this.state.configuration&&b){var C=t.configuration.find(function(T){return T.type==="final"&&T.parent===h.machine}),$=C&&C.doneData?Sn(C.doneData,t.context,n):void 0;try{for(var A=G(this.doneListeners),E=A.next();!E.done;E=A.next()){var v=E.value;v(mn(this.id,$))}}catch(T){d={error:T}}finally{try{E&&!E.done&&(l=A.return)&&l.call(A)}finally{if(d)throw d.error}}this.stop()}},e.prototype.onTransition=function(t){return this.listeners.add(t),this.status===we.Running&&t(this.state,this.state.event),this},e.prototype.subscribe=function(t,n,r){var a=this;if(!t)return{unsubscribe:function(){}};var i,s=r;return typeof t=="function"?i=t:(i=t.next.bind(t),s=t.complete.bind(t)),this.listeners.add(i),this.status===we.Running&&i(this.state),s&&this.onDone(s),{unsubscribe:function(){i&&a.listeners.delete(i),s&&a.doneListeners.delete(s)}}},e.prototype.onEvent=function(t){return this.eventListeners.add(t),this},e.prototype.onSend=function(t){return this.sendListeners.add(t),this},e.prototype.onChange=function(t){return this.contextListeners.add(t),this},e.prototype.onStop=function(t){return this.stopListeners.add(t),this},e.prototype.onDone=function(t){return this.doneListeners.add(t),this},e.prototype.off=function(t){return this.listeners.delete(t),this.eventListeners.delete(t),this.sendListeners.delete(t),this.stopListeners.delete(t),this.doneListeners.delete(t),this.contextListeners.delete(t),this},e.prototype.start=function(t){var n=this;if(this.status===we.Running)return this;this.machine._init(),rn.register(this.sessionId,this),this.initialized=!0,this.status=we.Running;var r=t===void 0?this.initialState:Tt(this,function(){return Gv(t)?n.machine.resolveState(t):n.machine.resolveState(Ue.from(t,n.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){n.update(r,_n)}),this},e.prototype.stop=function(){var t,n,r,a,i,s,u,c,d,l,h=this;try{for(var f=G(this.listeners),p=f.next();!p.done;p=f.next()){var v=p.value;this.listeners.delete(v)}}catch(E){t={error:E}}finally{try{p&&!p.done&&(n=f.return)&&n.call(f)}finally{if(t)throw t.error}}try{for(var g=G(this.stopListeners),m=g.next();!m.done;m=g.next()){var v=m.value;v(),this.stopListeners.delete(v)}}catch(E){r={error:E}}finally{try{m&&!m.done&&(a=g.return)&&a.call(g)}finally{if(r)throw r.error}}try{for(var S=G(this.contextListeners),w=S.next();!w.done;w=S.next()){var v=w.value;this.contextListeners.delete(v)}}catch(E){i={error:E}}finally{try{w&&!w.done&&(s=S.return)&&s.call(S)}finally{if(i)throw i.error}}try{for(var _=G(this.doneListeners),b=_.next();!b.done;b=_.next()){var v=b.value;this.doneListeners.delete(v)}}catch(E){u={error:E}}finally{try{b&&!b.done&&(c=_.return)&&c.call(_)}finally{if(u)throw u.error}}if(!this.initialized)return this;le([],J(this.state.configuration),!1).sort(function(E,T){return T.order-E.order}).forEach(function(E){var T,x;try{for(var B=G(E.definition.exit),V=B.next();!V.done;V=B.next()){var L=V.value;h.exec(L,h.state)}}catch(oe){T={error:oe}}finally{try{V&&!V.done&&(x=B.return)&&x.call(B)}finally{if(T)throw T.error}}}),this.children.forEach(function(E){Q(E.stop)&&E.stop()});try{for(var C=G(Object.keys(this.delayedEventsMap)),$=C.next();!$.done;$=C.next()){var A=$.value;this.clock.clearTimeout(this.delayedEventsMap[A])}}catch(E){d={error:E}}finally{try{$&&!$.done&&(l=C.return)&&l.call(C)}finally{if(d)throw d.error}}return this.scheduler.clear(),this.initialized=!1,this.status=we.Stopped,rn.free(this.sessionId),this},e.prototype.batch=function(t){var n=this;if(!(this.status===we.NotStarted&&this.options.deferEvents)){if(this.status!==we.Running)throw new Error("".concat(t.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'))}this.scheduler.schedule(function(){var r,a,i=n.state,s=!1,u=[],c=function(f){var p=ve(f);n.forward(p),i=Tt(n,function(){return n.machine.transition(i,p)}),u.push.apply(u,le([],J(i.actions.map(function(v){return Hv(v,i)})),!1)),s=s||!!i.changed};try{for(var d=G(t),l=d.next();!l.done;l=d.next()){var h=l.value;c(h)}}catch(f){r={error:f}}finally{try{l&&!l.done&&(a=d.return)&&a.call(d)}finally{if(r)throw r.error}}i.changed=s,i.actions=u,n.update(i,ve(t[t.length-1]))})},e.prototype.sender=function(t){return this.send.bind(this,t)},e.prototype.nextState=function(t){var n=this,r=ve(t);if(r.name.indexOf(Sa)===0&&!this.state.nextEvents.some(function(i){return i.indexOf(Sa)===0}))throw r.data.data;var a=Tt(this,function(){return n.machine.transition(n.state,r)});return a},e.prototype.forward=function(t){var n,r;try{for(var a=G(this.forwardTo),i=a.next();!i.done;i=a.next()){var s=i.value,u=this.children.get(s);if(!u)throw new Error("Unable to forward event '".concat(t,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(s,"'."));u.send(t)}}catch(c){n={error:c}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}},e.prototype.defer=function(t){var n=this;this.delayedEventsMap[t.id]=this.clock.setTimeout(function(){t.to?n.sendTo(t._event,t.to):n.send(t._event)},t.delay)},e.prototype.cancel=function(t){this.clock.clearTimeout(this.delayedEventsMap[t]),delete this.delayedEventsMap[t]},e.prototype.exec=function(t,n,r){r===void 0&&(r=this.machine.options.actions);var a=n.context,i=n._event,s=t.exec||Pr(t.type,r),u=Q(s)?s:s?s.exec:t.exec;if(u)try{return u(a,i.data,{action:t,state:this.state,_event:i})}catch(b){throw this.parent&&this.parent.send({type:"xstate.error",data:b}),b}switch(t.type){case jn:var c=t;if(typeof c.delay=="number"){this.defer(c);return}else c.to?this.sendTo(c._event,c.to):this.send(c._event);break;case Ai:this.cancel(t.sendId);break;case Cr:{if(this.status!==we.Running)return;var d=t.activity;if(!this.state.activities[d.id||d.type])break;if(d.type===ee.Invoke){var l=Oi(d.src),h=this.machine.options.services?this.machine.options.services[l.type]:void 0,f=d.id,p=d.data,v="autoForward"in d?d.autoForward:!!d.forward;if(!h)return;var g=p?Sn(p,a,i):void 0;if(typeof h=="string")return;var m=Q(h)?h(a,i.data,{data:g,src:l,meta:d.meta}):h;if(!m)return;var S=void 0;Je(m)&&(m=g?m.withContext(g):m,S={autoForward:v}),this.spawn(m,f,S)}else this.spawnActivity(d);break}case ro:{this.stopChild(t.activity.id);break}case Ei:var w=t.label,_=t.value;w?this.logger(w,_):this.logger(_);break}},e.prototype.removeChild=function(t){var n;this.children.delete(t),this.forwardTo.delete(t),(n=this.state)===null||n===void 0||delete n.children[t]},e.prototype.stopChild=function(t){var n=this.children.get(t);!n||(this.removeChild(t),Q(n.stop)&&n.stop())},e.prototype.spawn=function(t,n,r){if(Ca(t))return this.spawnPromise(Promise.resolve(t),n);if(Q(t))return this.spawnCallback(t,n);if(Mv(t))return this.spawnActor(t,n);if(wv(t))return this.spawnObservable(t,n);if(Je(t))return this.spawnMachine(t,I(I({},r),{id:n}));if(vv(t))return this.spawnBehavior(t,n);throw new Error('Unable to spawn entity "'.concat(n,'" of type "').concat(typeof t,'".'))},e.prototype.spawnMachine=function(t,n){var r=this;n===void 0&&(n={});var a=new e(t,I(I({},this.options),{parent:this,id:n.id||t.id})),i=I(I({},xr),n);i.sync&&a.onTransition(function(u){r.send(oo,{state:u,id:a.id})});var s=a;return this.children.set(a.id,s),i.autoForward&&this.forwardTo.add(a.id),a.onDone(function(u){r.removeChild(a.id),r.send(ve(u,{origin:a.id}))}).start(),s},e.prototype.spawnBehavior=function(t,n){var r=Jv(t,{id:n,parent:this});return this.children.set(n,r),r},e.prototype.spawnPromise=function(t,n){var r,a=this,i=!1,s;t.then(function(c){i||(s=c,a.removeChild(n),a.send(ve(mn(n,c),{origin:n})))},function(c){if(!i){a.removeChild(n);var d=It(n,c);try{a.send(ve(d,{origin:n}))}catch{a.devTools&&a.devTools.send(d,a.state),a.machine.strict&&a.stop()}}});var u=(r={id:n,send:function(){},subscribe:function(c,d,l){var h=Tr(c,d,l),f=!1;return t.then(function(p){f||(h.next(p),!f&&h.complete())},function(p){f||h.error(p)}),{unsubscribe:function(){return f=!0}}},stop:function(){i=!0},toJSON:function(){return{id:n}},getSnapshot:function(){return s}},r[We]=function(){return this},r);return this.children.set(n,u),u},e.prototype.spawnCallback=function(t,n){var r,a=this,i=!1,s=new Set,u=new Set,c,d=function(f){c=f,u.forEach(function(p){return p(f)}),!i&&a.send(ve(f,{origin:n}))},l;try{l=t(d,function(f){s.add(f)})}catch(f){this.send(It(n,f))}if(Ca(l))return this.spawnPromise(l,n);var h=(r={id:n,send:function(f){return s.forEach(function(p){return p(f)})},subscribe:function(f){var p=Tr(f);return u.add(p.next),{unsubscribe:function(){u.delete(p.next)}}},stop:function(){i=!0,Q(l)&&l()},toJSON:function(){return{id:n}},getSnapshot:function(){return c}},r[We]=function(){return this},r);return this.children.set(n,h),h},e.prototype.spawnObservable=function(t,n){var r,a=this,i,s=t.subscribe(function(c){i=c,a.send(ve(c,{origin:n}))},function(c){a.removeChild(n),a.send(ve(It(n,c),{origin:n}))},function(){a.removeChild(n),a.send(ve(mn(n),{origin:n}))}),u=(r={id:n,send:function(){},subscribe:function(c,d,l){return t.subscribe(c,d,l)},stop:function(){return s.unsubscribe()},getSnapshot:function(){return i},toJSON:function(){return{id:n}}},r[We]=function(){return this},r);return this.children.set(n,u),u},e.prototype.spawnActor=function(t,n){return this.children.set(n,t),t},e.prototype.spawnActivity=function(t){var n=this.machine.options&&this.machine.options.activities?this.machine.options.activities[t.type]:void 0;if(!!n){var r=n(this.state.context,t);this.spawnEffect(t.id,r)}},e.prototype.spawnEffect=function(t,n){var r;this.children.set(t,(r={id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:n||void 0,getSnapshot:function(){},toJSON:function(){return{id:t}}},r[We]=function(){return this},r))},e.prototype.attachDev=function(){var t=uo();if(this.options.devTools&&t){if(t.__REDUX_DEVTOOLS_EXTENSION__){var n=typeof this.options.devTools=="object"?this.options.devTools:void 0;this.devTools=t.__REDUX_DEVTOOLS_EXTENSION__.connect(I(I({name:this.id,autoPause:!0,stateSanitizer:function(r){return{value:r.value,context:r.context,actions:r.actions}}},n),{features:I({jump:!1,skip:!1},n?n.features:void 0)}),this.machine),this.devTools.init(this.state)}Yv(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[We]=function(){return this},e.prototype.getSnapshot=function(){return this.status===we.NotStarted?this.initialState:this._state},e.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(t,n){return setTimeout(t,n)},clearTimeout:function(t){return clearTimeout(t)}},logger:console.log.bind(console),devTools:!1},e.interpret=Fi,e}(),Qv=function(e){return Y(e)?I(I({},xr),{name:e}):I(I(I({},xr),{name:_v()}),e)};function on(e,t){var n=Qv(t);return Bv(function(r){if(!fv){var a=Je(e)||Q(e);ki(!!r||a,'Attempted to spawn an Actor (ID: "'.concat(Je(e)?e.id:"undefined",'") outside of a service. This will have no effect.'))}return r?r.spawn(e,n.name,n):Bi(e,n.name)})}function Fi(e,t){var n=new Zv(e,t);return n}function Xv(e){if(typeof e=="string"){var t={type:e};return t.toString=function(){return e},t}return e}function an(e){return I(I({type:Er},e),{toJSON:function(){e.onDone,e.onError;var t=no(e,["onDone","onError"]);return I(I({},t),{type:Er,src:Xv(e.src)})}})}var sn="",Ur="#",ur="*",ot={},at=function(e){return e[0]===Ur},ey=function(){return{actions:{},guards:{},services:{},activities:{},delays:{}}},ty=function(){function e(t,n,r,a){var i=this;r===void 0&&(r="context"in t?t.context:void 0);var s;this.config=t,this._context=r,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign(ey(),n),this.parent=a==null?void 0:a.parent,this.key=this.config.key||(a==null?void 0:a.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:$i),this.id=this.config.id||le([this.machine.key],J(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:(s=this.config.schema)!==null&&s!==void 0?s:{},this.description=this.config.description,this.initial=this.config.initial,this.states=this.config.states?$t(this.config.states,function(d,l){var h,f=new e(d,{},void 0,{parent:i,key:l});return Object.assign(i.idMap,I((h={},h[f.id]=f,h),f.idMap)),f}):ot;var u=0;function c(d){var l,h;d.order=u++;try{for(var f=G(ut(d)),p=f.next();!p.done;p=f.next()){var v=p.value;c(v)}}catch(g){l={error:g}}finally{try{p&&!p.done&&(h=f.return)&&h.call(f)}finally{if(l)throw l.error}}}c(this),this.history=this.config.history===!0?"shallow":this.config.history||!1,this._transient=!!this.config.always||(this.config.on?Array.isArray(this.config.on)?this.config.on.some(function(d){var l=d.event;return l===sn}):sn in this.config.on:!1),this.strict=!!this.config.strict,this.onEntry=Ne(this.config.entry||this.config.onEntry).map(function(d){return Ut(d)}),this.onExit=Ne(this.config.exit||this.config.onExit).map(function(d){return Ut(d)}),this.meta=this.config.meta,this.doneData=this.type==="final"?this.config.data:void 0,this.invoke=Ne(this.config.invoke).map(function(d,l){var h,f;if(Je(d)){var p=tn(i.id,l);return i.machine.options.services=I((h={},h[p]=d,h),i.machine.options.services),an({src:p,id:p})}else if(Y(d.src)){var p=d.id||tn(i.id,l);return an(I(I({},d),{id:p,src:d.src}))}else if(Je(d.src)||Q(d.src)){var p=d.id||tn(i.id,l);return i.machine.options.services=I((f={},f[p]=d.src,f),i.machine.options.services),an(I(I({id:p},d),{src:p}))}else{var v=d.src;return an(I(I({id:tn(i.id,l)},d),{src:v}))}}),this.activities=Ne(this.config.activities).concat(this.invoke).map(function(d){return so(d)}),this.transition=this.transition.bind(this),this.tags=Ne(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||Vi(this).forEach(function(t){return t.on})},e.prototype.withConfig=function(t,n){var r=this.options,a=r.actions,i=r.activities,s=r.guards,u=r.services,c=r.delays;return new e(this.config,{actions:I(I({},a),t.actions),activities:I(I({},i),t.activities),guards:I(I({},s),t.guards),services:I(I({},u),t.services),delays:I(I({},c),t.delays)},n!=null?n:this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return Q(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:$t(this.states,function(t){return t.definition}),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){return this.definition},Object.defineProperty(e.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var t=this.transitions;return this.__cache.on=t.reduce(function(n,r){return n[r.eventType]=n[r.eventType]||[],n[r.eventType].push(r),n},{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),e.prototype.getCandidates=function(t){if(this.__cache.candidates[t])return this.__cache.candidates[t];var n=t===sn,r=this.transitions.filter(function(a){var i=a.eventType===t;return n?i:i||a.eventType===ur});return this.__cache.candidates[t]=r,r},e.prototype.getDelayedTransitions=function(){var t=this,n=this.config.after;if(!n)return[];var r=function(i,s){var u=Q(i)?"".concat(t.id,":delay[").concat(s,"]"):i,c=Ov(u,t.id);return t.onEntry.push(zn(c,{delay:i})),t.onExit.push(Pv(c)),c},a=wt(n)?n.map(function(i,s){var u=r(i.delay,s);return I(I({},i),{event:u})}):ce(Object.keys(n).map(function(i,s){var u=n[i],c=Y(u)?{target:u}:u,d=isNaN(+i)?i:+i,l=r(d,s);return Ne(c).map(function(h){return I(I({},h),{event:l,delay:d})})}));return a.map(function(i){var s=i.delay;return I(I({},t.formatTransition(i)),{delay:s})})},e.prototype.getStateNodes=function(t){var n,r=this;if(!t)return[];var a=t instanceof Ue?t.value:Pt(t,this.delimiter);if(Y(a)){var i=this.getStateNode(a).initial;return i!==void 0?this.getStateNodes((n={},n[a]=i,n)):[this,this.states[a]]}var s=Object.keys(a),u=[this];return u.push.apply(u,le([],J(ce(s.map(function(c){return r.getStateNode(c).getStateNodes(a[c])}))),!1)),u},e.prototype.handles=function(t){var n=Ii(t);return this.events.includes(n)},e.prototype.resolveState=function(t){var n=t instanceof Ue?t:Ue.create(t),r=Array.from(it([],this.getStateNodes(n.value)));return new Ue(I(I({},n),{value:this.resolve(n.value),configuration:r,done:Nt(r,this),tags:Ea(r),machine:this.machine}))},e.prototype.transitionLeafNode=function(t,n,r){var a=this.getStateNode(t),i=a.next(n,r);return!i||!i.transitions.length?this.next(n,r):i},e.prototype.transitionCompoundNode=function(t,n,r){var a=Object.keys(t),i=this.getStateNode(a[0]),s=i._transition(t[a[0]],n,r);return!s||!s.transitions.length?this.next(n,r):s},e.prototype.transitionParallelNode=function(t,n,r){var a,i,s={};try{for(var u=G(Object.keys(t)),c=u.next();!c.done;c=u.next()){var d=c.value,l=t[d];if(!!l){var h=this.getStateNode(d),f=h._transition(l,n,r);f&&(s[d]=f)}}}catch(w){a={error:w}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(a)throw a.error}}var p=Object.keys(s).map(function(w){return s[w]}),v=ce(p.map(function(w){return w.transitions})),g=p.some(function(w){return w.transitions.length>0});if(!g)return this.next(n,r);var m=ce(p.map(function(w){return w.entrySet})),S=ce(Object.keys(s).map(function(w){return s[w].configuration}));return{transitions:v,entrySet:m,exitSet:ce(p.map(function(w){return w.exitSet})),configuration:S,source:n,actions:ce(Object.keys(s).map(function(w){return s[w].actions}))}},e.prototype._transition=function(t,n,r){return Y(t)?this.transitionLeafNode(t,n,r):Object.keys(t).length===1?this.transitionCompoundNode(t,n,r):this.transitionParallelNode(t,n,r)},e.prototype.getTransitionData=function(t,n){return this._transition(t.value,t,ve(n))},e.prototype.next=function(t,n){var r,a,i=this,s=n.name,u=[],c=[],d;try{for(var l=G(this.getCandidates(s)),h=l.next();!h.done;h=l.next()){var f=h.value,p=f.cond,v=f.in,g=t.context,m=v?Y(v)&&at(v)?t.matches(Pt(this.getStateNodeById(v).path,this.delimiter)):ao(Pt(v,this.delimiter),hv(this.path.slice(0,-2))(t.value)):!0,S=!1;try{S=!p||Ui(this.machine,p,g,n,t)}catch(C){throw new Error("Unable to evaluate guard '".concat(p.name||p.type,"' in transition for event '").concat(s,"' in state node '").concat(this.id,`':
|
|
30
|
-
`).concat(C.message))}if(S&&m){f.target!==void 0&&(c=f.target),u.push.apply(u,le([],J(f.actions),!1)),d=f;break}}}catch(C){r={error:C}}finally{try{h&&!h.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(!!d){if(!c.length)return{transitions:[d],entrySet:[],exitSet:[],configuration:t.value?[this]:[],source:t,actions:u};var w=ce(c.map(function(C){return i.getRelativeStateNodes(C,t.historyValue)})),_=!!d.internal,b=_?[]:ce(w.map(function(C){return i.nodesFromChild(C)}));return{transitions:[d],entrySet:b,exitSet:_?[]:[this],configuration:w,source:t,actions:u}}},e.prototype.nodesFromChild=function(t){if(t.escapes(this))return[];for(var n=[],r=t;r&&r!==this;)n.push(r),r=r.parent;return n.push(this),n},e.prototype.escapes=function(t){if(this===t)return!1;for(var n=this.parent;n;){if(n===t)return!1;n=n.parent}return!0},e.prototype.getActions=function(t,n,r,a){var i,s,u,c,d=it([],a?this.getStateNodes(a.value):[this]),l=t.configuration.length?it(d,t.configuration):d;try{for(var h=G(l),f=h.next();!f.done;f=h.next()){var p=f.value;gn(d,p)||t.entrySet.push(p)}}catch(A){i={error:A}}finally{try{f&&!f.done&&(s=h.return)&&s.call(h)}finally{if(i)throw i.error}}try{for(var v=G(d),g=v.next();!g.done;g=v.next()){var p=g.value;(!gn(l,p)||gn(t.exitSet,p.parent))&&t.exitSet.push(p)}}catch(A){u={error:A}}finally{try{g&&!g.done&&(c=v.return)&&c.call(v)}finally{if(u)throw u.error}}var m=ce(t.entrySet.map(function(A){var E=[];if(A.type!=="final")return E;var T=A.parent;if(!T.parent)return E;E.push(nn(A.id,A.doneData),nn(T.id,A.doneData?Sn(A.doneData,n,r):void 0));var x=T.parent;return x.type==="parallel"&&ut(x).every(function(B){return Nt(t.configuration,B)})&&E.push(nn(x.id)),E}));t.exitSet.sort(function(A,E){return E.order-A.order}),t.entrySet.sort(function(A,E){return A.order-E.order});var S=new Set(t.entrySet),w=new Set(t.exitSet),_=J([ce(Array.from(S).map(function(A){return le(le([],J(A.activities.map(function(E){return Nv(E)})),!1),J(A.onEntry),!1)})).concat(m.map(Cv)),ce(Array.from(w).map(function(A){return le(le([],J(A.onExit),!1),J(A.activities.map(function(E){return kv(E)})),!1)}))],2),b=_[0],C=_[1],$=bn(C.concat(t.actions).concat(b),this.machine.options.actions);return $},e.prototype.transition=function(t,n,r){t===void 0&&(t=this.initialState);var a=ve(n),i;if(t instanceof Ue)i=r===void 0?t:this.resolveState(Ue.from(t,r));else{var s=Y(t)?this.resolve(wn(this.getResolvedPath(t))):this.resolve(t),u=r!=null?r:this.machine.context;i=this.resolveState(Ue.from(s,u))}if(this.strict&&!this.events.includes(a.name)&&!gv(a.name))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(a.name,"'"));var c=this._transition(i.value,i,a)||{transitions:[],configuration:[],entrySet:[],exitSet:[],source:i,actions:[]},d=it([],this.getStateNodes(i.value)),l=c.configuration.length?it(d,c.configuration):d;return c.configuration=le([],J(l),!1),this.resolveTransition(c,i,i.context,a)},e.prototype.resolveRaisedTransition=function(t,n,r){var a,i=t.actions;return t=this.transition(t,n),t._event=r,t.event=r.data,(a=t.actions).unshift.apply(a,le([],J(i),!1)),t},e.prototype.resolveTransition=function(t,n,r,a){var i,s,u=this;a===void 0&&(a=_n);var c=t.configuration,d=!n||t.transitions.length>0,l=d?Lv(this.machine,c):void 0,h=n?n.historyValue?n.historyValue:t.source?this.machine.historyValue(n.value):void 0:void 0,f=this.getActions(t,r,a,n),p=n?I({},n.activities):{};try{for(var v=G(f),g=v.next();!g.done;g=v.next()){var m=g.value;m.type===Cr?p[m.activity.id||m.activity.type]=m:m.type===ro&&(p[m.activity.id||m.activity.type]=!1)}}catch(de){i={error:de}}finally{try{g&&!g.done&&(s=v.return)&&s.call(v)}finally{if(i)throw i.error}}var S=J(Nr(this,n,r,a,f,this.machine.config.preserveActionOrder),2),w=S[0],_=S[1],b=J(Pi(w,function(de){return de.type===Ln||de.type===jn&&de.to===st.Internal}),2),C=b[0],$=b[1],A=w.filter(function(de){var Te;return de.type===Cr&&((Te=de.activity)===null||Te===void 0?void 0:Te.type)===Er}),E=A.reduce(function(de,Te){return de[Te.activity.id]=Vv(Te.activity,u.machine,_,a),de},n?I({},n.children):{}),T=d?t.configuration:n?n.configuration:[],x=Nt(T,this),B=new Ue({value:l||n.value,context:_,_event:a,_sessionid:n?n._sessionid:null,historyValue:l?h?yv(h,l):void 0:n?n.historyValue:void 0,history:!l||t.source?n:void 0,actions:l?$:[],activities:l?p:n?n.activities:{},events:[],configuration:T,transitions:t.transitions,children:E,done:x,tags:n==null?void 0:n.tags,machine:this}),V=r!==_;B.changed=a.name===oo||V;var L=B.history;L&&delete L.history;var oe=!x&&(this._transient||c.some(function(de){return de._transient}));if(!d&&(!oe||a.name===sn))return B;var z=B;if(!x)for(oe&&(z=this.resolveRaisedTransition(z,{type:iv},a));C.length;){var me=C.shift();z=this.resolveRaisedTransition(z,me._event,a)}var Xe=z.changed||(L?!!z.actions.length||V||typeof L.value!=typeof z.value||!Mi(z.value,L.value):void 0);return z.changed=Xe,z.history=L,z.tags=Ea(z.configuration),z},e.prototype.getStateNode=function(t){if(at(t))return this.machine.getStateNodeById(t);if(!this.states)throw new Error("Unable to retrieve child state '".concat(t,"' from '").concat(this.id,"'; no child states exist."));var n=this.states[t];if(!n)throw new Error("Child state '".concat(t,"' does not exist on '").concat(this.id,"'"));return n},e.prototype.getStateNodeById=function(t){var n=at(t)?t.slice(Ur.length):t;if(n===this.id)return this;var r=this.machine.idMap[n];if(!r)throw new Error("Child state node '#".concat(n,"' does not exist on machine '").concat(this.id,"'"));return r},e.prototype.getStateNodeByPath=function(t){if(typeof t=="string"&&at(t))try{return this.getStateNodeById(t.slice(1))}catch{}for(var n=Ir(t,this.delimiter).slice(),r=this;n.length;){var a=n.shift();if(!a.length)break;r=r.getStateNode(a)}return r},e.prototype.resolve=function(t){var n,r=this;if(!t)return this.initialStateValue||ot;switch(this.type){case"parallel":return $t(this.initialStateValue,function(i,s){return i?r.getStateNode(s).resolve(t[s]||i):ot});case"compound":if(Y(t)){var a=this.getStateNode(t);return a.type==="parallel"||a.type==="compound"?(n={},n[t]=a.initialStateValue,n):t}return Object.keys(t).length?$t(t,function(i,s){return i?r.getStateNode(s).resolve(i):ot}):this.initialStateValue||{};default:return t||ot}},e.prototype.getResolvedPath=function(t){if(at(t)){var n=this.machine.idMap[t.slice(Ur.length)];if(!n)throw new Error("Unable to find state node '".concat(t,"'"));return n.path}return Ir(t,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;var n;if(this.type==="parallel")n=ba(this.states,function(r){return r.initialStateValue||ot},function(r){return r.type!=="history"});else if(this.initial!==void 0){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));n=An(this.states[this.initial])?this.initial:(t={},t[this.initial]=this.states[this.initial].initialStateValue,t)}else n={};return this.__cache.initialStateValue=n,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(t,n){this._init();var r=this.getStateNodes(t);return this.resolveTransition({configuration:r,entrySet:r,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,n!=null?n:this.machine.context,void 0)},Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this.initialStateValue;if(!t)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){var t;if(this.type==="history"){var n=this.config;Y(n.target)?t=at(n.target)?wn(this.machine.getStateNodeById(n.target).path.slice(this.path.length-1)):n.target:t=n.target}return t},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(t,n,r){return r===void 0&&(r=!0),r?t.type==="history"?t.resolveHistory(n):t.initialStateNodes:[t]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var t=this;if(An(this))return[this];if(this.type==="compound"&&!this.initial)return[this];var n=hn(this.initialStateValue);return ce(n.map(function(r){return t.getFromRelativePath(r)}))},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var n=J(t),r=n[0],a=n.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(r,"' from node with no states"));var i=this.getStateNode(r);if(i.type==="history")return i.resolveHistory();if(!this.states[r])throw new Error("Child state '".concat(r,"' does not exist on '").concat(this.id,"'"));return this.states[r].getFromRelativePath(a)},e.prototype.historyValue=function(t){if(!!Object.keys(this.states).length)return{current:t||this.initialStateValue,states:ba(this.states,function(n,r){if(!t)return n.historyValue();var a=Y(t)?void 0:t[r];return n.historyValue(a||n.initialStateValue)},function(n){return!n.history})}},e.prototype.resolveHistory=function(t){var n=this;if(this.type!=="history")return[this];var r=this.parent;if(!t){var a=this.target;return a?ce(hn(a).map(function(s){return r.getFromRelativePath(s)})):r.initialStateNodes}var i=mv(r.path,"states")(t).current;return Y(i)?[r.getStateNode(i)]:ce(hn(i).map(function(s){return n.history==="deep"?r.getFromRelativePath(s):[r.states[s[0]]]}))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var t=this,n=ce(Object.keys(this.states).map(function(r){return t.states[r].stateIds}));return[this.id].concat(n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){var t,n,r,a;if(this.__cache.events)return this.__cache.events;var i=this.states,s=new Set(this.ownEvents);if(i)try{for(var u=G(Object.keys(i)),c=u.next();!c.done;c=u.next()){var d=c.value,l=i[d];if(l.states)try{for(var h=(r=void 0,G(l.events)),f=h.next();!f.done;f=h.next()){var p=f.value;s.add("".concat(p))}}catch(v){r={error:v}}finally{try{f&&!f.done&&(a=h.return)&&a.call(h)}finally{if(r)throw r.error}}}}catch(v){t={error:v}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return this.__cache.events=Array.from(s)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownEvents",{get:function(){var t=new Set(this.transitions.filter(function(n){return!(!n.target&&!n.actions.length&&n.internal)}).map(function(n){return n.eventType}));return Array.from(t)},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(t){var n=this;if(t!==void 0)return t.map(function(r){if(!Y(r))return r;var a=r[0]===n.delimiter;if(a&&!n.parent)return n.getStateNodeByPath(r.slice(1));var i=a?n.key+r:r;if(n.parent)try{var s=n.parent.getStateNodeByPath(i);return s}catch(u){throw new Error("Invalid transition definition for state node '".concat(n.id,`':
|
|
31
|
-
`).concat(u.message))}else return n.getStateNodeByPath(i)})},e.prototype.formatTransition=function(t){var n=this,r=
|
|
28
|
+
***************************************************************************** */var I=function(){return I=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},I.apply(this,arguments)};function no(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function G(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")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.")}function J(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,i=[],s;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)i.push(a.value)}catch(u){s={error:u}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function le(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,i;r<a;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var ee;(function(e){e.Start="xstate.start",e.Stop="xstate.stop",e.Raise="xstate.raise",e.Send="xstate.send",e.Cancel="xstate.cancel",e.NullEvent="",e.Assign="xstate.assign",e.After="xstate.after",e.DoneState="done.state",e.DoneInvoke="done.invoke",e.Log="xstate.log",e.Init="xstate.init",e.Invoke="xstate.invoke",e.ErrorExecution="error.execution",e.ErrorCommunication="error.communication",e.ErrorPlatform="error.platform",e.ErrorCustom="xstate.error",e.Update="xstate.update",e.Pure="xstate.pure",e.Choose="xstate.choose"})(ee||(ee={}));var st;(function(e){e.Parent="#_parent",e.Internal="#_internal"})(st||(st={}));var Cr=ee.Start,ro=ee.Stop,Ln=ee.Raise,jn=ee.Send,Ai=ee.Cancel,sv=ee.NullEvent,Ar=ee.Assign;ee.After;ee.DoneState;var Ei=ee.Log,uv=ee.Init,Er=ee.Invoke;ee.ErrorExecution;var Sa=ee.ErrorPlatform,cv=ee.ErrorCustom,oo=ee.Update,lv=ee.Choose,dv=ee.Pure,$i=".",_a={},$r="xstate.guard",fv="",pv=!0,en;function ao(e,t,n){n===void 0&&(n=$i);var r=Pt(e,n),a=Pt(t,n);return Y(a)?Y(r)?a===r:!1:Y(r)?r in a:Object.keys(r).every(function(i){return i in a?ao(r[i],a[i]):!1})}function Ii(e){try{return Y(e)||typeof e=="number"?"".concat(e):e.type}catch{throw new Error("Events must be strings or objects with a string event.type property.")}}function Ir(e,t){try{return wt(e)?e:e.toString().split(t)}catch{throw new Error("'".concat(e,"' is not a valid state path."))}}function hv(e){return typeof e=="object"&&"value"in e&&"context"in e&&"event"in e&&"_event"in e}function Pt(e,t){if(hv(e))return e.value;if(wt(e))return wn(e);if(typeof e!="string")return e;var n=Ir(e,t);return wn(n)}function wn(e){if(e.length===1)return e[0];for(var t={},n=t,r=0;r<e.length-1;r++)r===e.length-2?n[e[r]]=e[r+1]:(n[e[r]]={},n=n[e[r]]);return t}function $t(e,t){for(var n={},r=Object.keys(e),a=0;a<r.length;a++){var i=r[a];n[i]=t(e[i],i,e,a)}return n}function ba(e,t,n){var r,a,i={};try{for(var s=G(Object.keys(e)),u=s.next();!u.done;u=s.next()){var c=u.value,d=e[c];!n(d)||(i[c]=t(d,c,e))}}catch(l){r={error:l}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(r)throw r.error}}return i}var mv=function(e){return function(t){var n,r,a=t;try{for(var i=G(e),s=i.next();!s.done;s=i.next()){var u=s.value;a=a[u]}}catch(c){n={error:c}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a}};function gv(e,t){return function(n){var r,a,i=n;try{for(var s=G(e),u=s.next();!u.done;u=s.next()){var c=u.value;i=i[t][c]}}catch(d){r={error:d}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(r)throw r.error}}return i}}function hn(e){if(!e)return[[]];if(Y(e))return[[e]];var t=ce(Object.keys(e).map(function(n){var r=e[n];return typeof r!="string"&&(!r||!Object.keys(r).length)?[[n]]:hn(e[n]).map(function(a){return[n].concat(a)})}));return t}function ce(e){var t;return(t=[]).concat.apply(t,le([],J(e),!1))}function Ti(e){return wt(e)?e:[e]}function Ne(e){return e===void 0?[]:Ti(e)}function Sn(e,t,n){var r,a;if(Q(e))return e(t,n.data);var i={};try{for(var s=G(Object.keys(e)),u=s.next();!u.done;u=s.next()){var c=u.value,d=e[c];Q(d)?i[c]=d(t,n.data):i[c]=d}}catch(l){r={error:l}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(r)throw r.error}}return i}function vv(e){return/^(done|error)\./.test(e)}function Ca(e){return!!(e instanceof Promise||e!==null&&(Q(e)||typeof e=="object")&&Q(e.then))}function yv(e){return e!==null&&typeof e=="object"&&"transition"in e&&typeof e.transition=="function"}function Pi(e,t){var n,r,a=J([[],[]],2),i=a[0],s=a[1];try{for(var u=G(e),c=u.next();!c.done;c=u.next()){var d=c.value;t(d)?i.push(d):s.push(d)}}catch(l){n={error:l}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}return[i,s]}function Ni(e,t){return $t(e.states,function(n,r){if(!!n){var a=(Y(t)?void 0:t[r])||(n?n.current:void 0);if(!!a)return{current:a,states:Ni(n,a)}}})}function wv(e,t){return{current:t,states:Ni(e,t)}}function Aa(e,t,n,r){var a=e&&n.reduce(function(i,s){var u,c,d=s.assignment,l={state:r,action:s,_event:t},h={};if(Q(d))h=d(i,t.data,l);else try{for(var f=G(Object.keys(d)),p=f.next();!p.done;p=f.next()){var v=p.value,m=d[v];h[v]=Q(m)?m(i,t.data,l):m}}catch(g){u={error:g}}finally{try{p&&!p.done&&(c=f.return)&&c.call(f)}finally{if(u)throw u.error}}return Object.assign({},i,h)},e);return a}var ki=function(){};function wt(e){return Array.isArray(e)}function Q(e){return typeof e=="function"}function Y(e){return typeof e=="string"}function xi(e,t){if(!!e)return Y(e)?{type:$r,name:e,predicate:t?t[e]:void 0}:Q(e)?{type:$r,name:e.name,predicate:e}:e}function Sv(e){try{return"subscribe"in e&&Q(e.subscribe)}catch{return!1}}var We=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();en={},en[We]=function(){return this},en[Symbol.observable]=function(){return this};function Je(e){return!!e&&"__xstatenode"in e}function _v(e){return!!e&&typeof e.send=="function"}var bv=function(){var e=0;return function(){return e++,e.toString(16)}}();function io(e,t){return Y(e)||typeof e=="number"?I({type:e},t):e}function ve(e,t){if(!Y(e)&&"$$type"in e&&e.$$type==="scxml")return e;var n=io(e);return I({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function rt(e,t){var n=Ti(t).map(function(r){return typeof r=="undefined"||typeof r=="string"||Je(r)?{target:r,event:e}:I(I({},r),{event:e})});return n}function Cv(e){if(!(e===void 0||e===fv))return Ne(e)}function Ui(e,t,n,r,a){var i=e.options.guards,s={state:a,cond:t,_event:r};if(t.type===$r)return((i==null?void 0:i[t.name])||t.predicate)(n,r.data,s);var u=i==null?void 0:i[t.type];if(!u)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return u(n,r.data,s)}function Oi(e){return typeof e=="string"?{type:e}:e}function Tr(e,t,n){if(typeof e=="object")return e;var r=function(){};return{next:e,error:t||r,complete:n||r}}function tn(e,t){return"".concat(e,":invocation[").concat(t,"]")}var _n=ve({type:uv});function Pr(e,t){return t&&t[e]||void 0}function Ut(e,t){var n;if(Y(e)||typeof e=="number"){var r=Pr(e,t);Q(r)?n={type:e,exec:r}:r?n=r:n={type:e,exec:void 0}}else if(Q(e))n={type:e.name||e.toString(),exec:e};else{var r=Pr(e.type,t);if(Q(r))n=I(I({},e),{exec:r});else if(r){var a=r.type||e.type;n=I(I(I({},r),e),{type:a})}else n=e}return n}var bn=function(e,t){if(!e)return[];var n=wt(e)?e:[e];return n.map(function(r){return Ut(r,t)})};function so(e){var t=Ut(e);return I(I({id:Y(e)?e:t.id},t),{type:t.type})}function Av(e){return Y(e)?{type:Ln,event:e}:zn(e,{to:st.Internal})}function Ev(e){return{type:Ln,_event:ve(e.event)}}function zn(e,t){return{to:t?t.to:void 0,type:jn,event:Q(e)?e:io(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:Q(e)?e.name:Ii(e)}}function $v(e,t,n,r){var a={_event:n},i=ve(Q(e.event)?e.event(t,n.data,a):e.event),s;if(Y(e.delay)){var u=r&&r[e.delay];s=Q(u)?u(t,n.data,a):u}else s=Q(e.delay)?e.delay(t,n.data,a):e.delay;var c=Q(e.to)?e.to(t,n.data,a):e.to;return I(I({},e),{to:c,_event:i,event:i.data,delay:s})}function Iv(e,t){return zn(e,I(I({},t),{to:st.Parent}))}function Tv(){return Iv(oo)}var Pv=function(e,t,n){return I(I({},e),{value:Y(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})},Nv=function(e){return{type:Ai,sendId:e}};function kv(e){var t=so(e);return{type:ee.Start,activity:t,exec:void 0}}function xv(e){var t=Q(e)?e:so(e);return{type:ee.Stop,activity:t,exec:void 0}}function Uv(e,t,n){var r=Q(e.activity)?e.activity(t,n.data):e.activity,a=typeof r=="string"?{id:r}:r,i={type:ee.Stop,activity:a};return i}var Ov=function(e){return{type:Ar,assignment:e}};function Rv(e,t){var n=t?"#".concat(t):"";return"".concat(ee.After,"(").concat(e,")").concat(n)}function nn(e,t){var n="".concat(ee.DoneState,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function mn(e,t){var n="".concat(ee.DoneInvoke,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function It(e,t){var n="".concat(ee.ErrorPlatform,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Bv(e,t){return zn(function(n,r){return r},I(I({},t),{to:e}))}function Nr(e,t,n,r,a,i){i===void 0&&(i=!1);var s=J(i?[[],a]:Pi(a,function(f){return f.type===Ar}),2),u=s[0],c=s[1],d=u.length?Aa(n,r,u,t):n,l=i?[n]:void 0,h=ce(c.map(function(f){var p;switch(f.type){case Ln:return Ev(f);case jn:var v=$v(f,d,r,e.options.delays);return v;case Ei:return Pv(f,d,r);case lv:{var m=f,g=(p=m.conds.find(function(x){var B=xi(x.cond,e.options.guards);return!B||Ui(e,B,d,r,t)}))===null||p===void 0?void 0:p.actions;if(!g)return[];var S=J(Nr(e,t,d,r,bn(Ne(g),e.options.actions),i),2),w=S[0],_=S[1];return d=_,l==null||l.push(d),w}case dv:{var g=f.get(d,r.data);if(!g)return[];var b=J(Nr(e,t,d,r,bn(Ne(g),e.options.actions),i),2),C=b[0],$=b[1];return d=$,l==null||l.push(d),C}case ro:return Uv(f,d,r);case Ar:{d=Aa(d,r,[f],t),l==null||l.push(d);break}default:var A=Ut(f,e.options.actions),E=A.exec;if(E&&l){var T=l.length-1;A=I(I({},A),{exec:function(x){for(var B=[],V=1;V<arguments.length;V++)B[V-1]=arguments[V];E.apply(void 0,le([l[T]],J(B),!1))}})}return A}}).filter(function(f){return!!f}));return[h,d]}var Cn=[],Tt=function(e,t){Cn.push(e);var n=t(e);return Cn.pop(),n},Vv=function(e){return e(Cn[Cn.length-1])};function Ri(e){var t;return t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}},t[We]=function(){return this},t}function Dv(e,t,n,r){var a,i=Oi(e.src),s=(a=t==null?void 0:t.options.services)===null||a===void 0?void 0:a[i.type],u=e.data?Sn(e.data,n,r):void 0,c=s?Bi(s,e.id,u):Ri(e.id);return c.meta=e,c}function Bi(e,t,n){var r=Ri(t);if(r.deferred=!0,Je(e)){var a=r.state=Tt(void 0,function(){return(n?e.withContext(n):e).initialState});r.getSnapshot=function(){return a}}return r}function Mv(e){try{return typeof e.send=="function"}catch{return!1}}function Fv(e){return Mv(e)&&"id"in e}function Lv(e){var t;return I((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}},t[We]=function(){return this},t),e)}var An=function(e){return e.type==="atomic"||e.type==="final"};function ut(e){return Object.keys(e.states).map(function(t){return e.states[t]})}function Vi(e){var t=[e];return An(e)?t:t.concat(ce(ut(e).map(Vi)))}function it(e,t){var n,r,a,i,s,u,c,d,l=new Set(e),h=kr(l),f=new Set(t);try{for(var p=G(f),v=p.next();!v.done;v=p.next())for(var m=v.value,g=m.parent;g&&!f.has(g);)f.add(g),g=g.parent}catch(T){n={error:T}}finally{try{v&&!v.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}var S=kr(f);try{for(var w=G(f),_=w.next();!_.done;_=w.next()){var m=_.value;if(m.type==="compound"&&(!S.get(m)||!S.get(m).length))h.get(m)?h.get(m).forEach(function(x){return f.add(x)}):m.initialStateNodes.forEach(function(x){return f.add(x)});else if(m.type==="parallel")try{for(var b=(s=void 0,G(ut(m))),C=b.next();!C.done;C=b.next()){var $=C.value;$.type!=="history"&&(f.has($)||(f.add($),h.get($)?h.get($).forEach(function(x){return f.add(x)}):$.initialStateNodes.forEach(function(x){return f.add(x)})))}}catch(x){s={error:x}}finally{try{C&&!C.done&&(u=b.return)&&u.call(b)}finally{if(s)throw s.error}}}}catch(T){a={error:T}}finally{try{_&&!_.done&&(i=w.return)&&i.call(w)}finally{if(a)throw a.error}}try{for(var A=G(f),E=A.next();!E.done;E=A.next())for(var m=E.value,g=m.parent;g&&!f.has(g);)f.add(g),g=g.parent}catch(T){c={error:T}}finally{try{E&&!E.done&&(d=A.return)&&d.call(A)}finally{if(c)throw c.error}}return f}function Di(e,t){var n=t.get(e);if(!n)return{};if(e.type==="compound"){var r=n[0];if(r){if(An(r))return r.key}else return{}}var a={};return n.forEach(function(i){a[i.key]=Di(i,t)}),a}function kr(e){var t,n,r=new Map;try{for(var a=G(e),i=a.next();!i.done;i=a.next()){var s=i.value;r.has(s)||r.set(s,[]),s.parent&&(r.has(s.parent)||r.set(s.parent,[]),r.get(s.parent).push(s))}}catch(u){t={error:u}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r}function jv(e,t){var n=it([e],t);return Di(e,kr(n))}function gn(e,t){return Array.isArray(e)?e.some(function(n){return n===t}):e instanceof Set?e.has(t):!1}function zv(e){return le([],J(new Set(ce(le([],J(e.map(function(t){return t.ownEvents})),!1)))),!1)}function Nt(e,t){return t.type==="compound"?ut(t).some(function(n){return n.type==="final"&&gn(e,n)}):t.type==="parallel"?ut(t).every(function(n){return Nt(e,n)}):!1}function Gv(e){return e===void 0&&(e=[]),e.reduce(function(t,n){return n.meta!==void 0&&(t[n.id]=n.meta),t},{})}function Ea(e){return new Set(ce(e.map(function(t){return t.tags})))}function Mi(e,t){if(e===t)return!0;if(e===void 0||t===void 0)return!1;if(Y(e)||Y(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(function(a){return Mi(e[a],t[a])})}function Hv(e){return typeof e!="object"||e===null?!1:"value"in e&&"_event"in e}function Kv(e,t){var n=e.exec,r=I(I({},e),{exec:n!==void 0?function(){return n(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0});return r}var Ue=function(){function e(t){var n=this,r;this.actions=[],this.activities=_a,this.meta={},this.events=[],this.value=t.value,this.context=t.context,this._event=t._event,this._sessionid=t._sessionid,this.event=this._event.data,this.historyValue=t.historyValue,this.history=t.history,this.actions=t.actions||[],this.activities=t.activities||_a,this.meta=Gv(t.configuration),this.events=t.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=t.configuration,this.transitions=t.transitions,this.children=t.children,this.done=!!t.done,this.tags=(r=Array.isArray(t.tags)?new Set(t.tags):t.tags)!==null&&r!==void 0?r:new Set,this.machine=t.machine,Object.defineProperty(this,"nextEvents",{get:function(){return zv(n.configuration)}})}return e.from=function(t,n){if(t instanceof e)return t.context!==n?new e({value:t.value,context:n,_event:t._event,_sessionid:null,historyValue:t.historyValue,history:t.history,actions:[],activities:t.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):t;var r=_n;return new e({value:t,context:n,_event:r,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,meta:void 0,events:[],configuration:[],transitions:[],children:{}})},e.create=function(t){return new e(t)},e.inert=function(t,n){if(t instanceof e){if(!t.actions.length)return t;var r=_n;return new e({value:t.value,context:n,_event:r,_sessionid:null,historyValue:t.historyValue,history:t.history,activities:t.activities,configuration:t.configuration,transitions:[],children:{}})}return e.from(t,n)},e.prototype.toStrings=function(t,n){var r=this;if(t===void 0&&(t=this.value),n===void 0&&(n="."),Y(t))return[t];var a=Object.keys(t);return a.concat.apply(a,le([],J(a.map(function(i){return r.toStrings(t[i],n).map(function(s){return i+n+s})})),!1))},e.prototype.toJSON=function(){var t=this;t.configuration,t.transitions;var n=t.tags;t.machine;var r=no(t,["configuration","transitions","tags","machine"]);return I(I({},r),{tags:Array.from(n)})},e.prototype.matches=function(t){return ao(t,this.value)},e.prototype.hasTag=function(t){return this.tags.has(t)},e.prototype.can=function(t){var n;ki(!!this.machine);var r=(n=this.machine)===null||n===void 0?void 0:n.getTransitionData(this,t);return!!(r!=null&&r.transitions.length)&&r.transitions.some(function(a){return a.target!==void 0||a.actions.length})},e}(),qv={deferEvents:!1},$a=function(){function e(t){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=I(I({},qv),t)}return e.prototype.initialize=function(t){if(this.initialized=!0,t){if(!this.options.deferEvents){this.schedule(t);return}this.process(t)}this.flushEvents()},e.prototype.schedule=function(t){if(!this.initialized||this.processingEvent){this.queue.push(t);return}if(this.queue.length!==0)throw new Error("Event queue should be empty when it is not processing events");this.process(t),this.flushEvents()},e.prototype.clear=function(){this.queue=[]},e.prototype.flushEvents=function(){for(var t=this.queue.shift();t;)this.process(t),t=this.queue.shift()},e.prototype.process=function(t){this.processingEvent=!0;try{t()}catch(n){throw this.clear(),n}finally{this.processingEvent=!1}},e}(),sr=new Map,Wv=0,rn={bookId:function(){return"x:".concat(Wv++)},register:function(e,t){return sr.set(e,t),e},get:function(e){return sr.get(e)},free:function(e){sr.delete(e)}};function uo(){if(typeof globalThis!="undefined")return globalThis;if(typeof self!="undefined")return self;if(typeof window!="undefined")return window;if(typeof global!="undefined")return global}function Yv(){var e=uo();if(e&&"__xstate__"in e)return e.__xstate__}function Jv(e){if(!!uo()){var t=Yv();t&&t.register(e)}}function Zv(e,t){t===void 0&&(t={});var n=e.initialState,r=new Set,a=[],i=!1,s=function(){if(!i){for(i=!0;a.length>0;){var d=a.shift();n=e.transition(n,d,c),r.forEach(function(l){return l.next(n)})}i=!1}},u=Lv({id:t.id,send:function(d){a.push(d),s()},getSnapshot:function(){return n},subscribe:function(d,l,h){var f=Tr(d,l,h);return r.add(f),f.next(n),{unsubscribe:function(){r.delete(f)}}}}),c={parent:t.parent,self:u,id:t.id||"anonymous",observers:r};return n=e.start?e.start(c):n,u}var xr={sync:!1,autoForward:!1},we;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(we||(we={}));var Qv=function(){function e(t,n){var r=this;n===void 0&&(n=e.defaultOptions),this.machine=t,this.scheduler=new $a,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=we.NotStarted,this.children=new Map,this.forwardTo=new Set,this.init=this.start,this.send=function(l,h){if(wt(l))return r.batch(l),r.state;var f=ve(io(l,h));if(r.status===we.Stopped)return r.state;if(r.status!==we.Running&&!r.options.deferEvents)throw new Error('Event "'.concat(f.name,'" was sent to uninitialized service "').concat(r.machine.id,`". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.
|
|
29
|
+
Event: `).concat(JSON.stringify(f.data)));return r.scheduler.schedule(function(){r.forward(f);var p=r.nextState(f);r.update(p,f)}),r._state},this.sendTo=function(l,h){var f=r.parent&&(h===st.Parent||r.parent.id===h),p=f?r.parent:Y(h)?r.children.get(h)||rn.get(h):_v(h)?h:void 0;if(!p){if(!f)throw new Error("Unable to send event to child '".concat(h,"' from service '").concat(r.id,"'."));return}"machine"in p?p.send(I(I({},l),{name:l.name===cv?"".concat(It(r.id)):l.name,origin:r.sessionId})):p.send(l.data)};var a=I(I({},e.defaultOptions),n),i=a.clock,s=a.logger,u=a.parent,c=a.id,d=c!==void 0?c:t.id;this.id=d,this.logger=s,this.clock=i,this.parent=u,this.options=a,this.scheduler=new $a({deferEvents:this.options.deferEvents}),this.sessionId=rn.bookId()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:Tt(this,function(){return t._initialState=t.machine.initialState,t._initialState})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),e.prototype.execute=function(t,n){var r,a;try{for(var i=G(t.actions),s=i.next();!s.done;s=i.next()){var u=s.value;this.exec(u,t,n)}}catch(c){r={error:c}}finally{try{s&&!s.done&&(a=i.return)&&a.call(i)}finally{if(r)throw r.error}}},e.prototype.update=function(t,n){var r,a,i,s,u,c,d,l,h=this;if(t._sessionid=this.sessionId,this._state=t,this.options.execute&&this.execute(this.state),this.children.forEach(function(T){h.state.children[T.id]=T}),this.devTools&&this.devTools.send(n.data,t),t.event)try{for(var f=G(this.eventListeners),p=f.next();!p.done;p=f.next()){var v=p.value;v(t.event)}}catch(T){r={error:T}}finally{try{p&&!p.done&&(a=f.return)&&a.call(f)}finally{if(r)throw r.error}}try{for(var m=G(this.listeners),g=m.next();!g.done;g=m.next()){var v=g.value;v(t,t.event)}}catch(T){i={error:T}}finally{try{g&&!g.done&&(s=m.return)&&s.call(m)}finally{if(i)throw i.error}}try{for(var S=G(this.contextListeners),w=S.next();!w.done;w=S.next()){var _=w.value;_(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(T){u={error:T}}finally{try{w&&!w.done&&(c=S.return)&&c.call(S)}finally{if(u)throw u.error}}var b=Nt(t.configuration||[],this.machine);if(this.state.configuration&&b){var C=t.configuration.find(function(T){return T.type==="final"&&T.parent===h.machine}),$=C&&C.doneData?Sn(C.doneData,t.context,n):void 0;try{for(var A=G(this.doneListeners),E=A.next();!E.done;E=A.next()){var v=E.value;v(mn(this.id,$))}}catch(T){d={error:T}}finally{try{E&&!E.done&&(l=A.return)&&l.call(A)}finally{if(d)throw d.error}}this.stop()}},e.prototype.onTransition=function(t){return this.listeners.add(t),this.status===we.Running&&t(this.state,this.state.event),this},e.prototype.subscribe=function(t,n,r){var a=this;if(!t)return{unsubscribe:function(){}};var i,s=r;return typeof t=="function"?i=t:(i=t.next.bind(t),s=t.complete.bind(t)),this.listeners.add(i),this.status===we.Running&&i(this.state),s&&this.onDone(s),{unsubscribe:function(){i&&a.listeners.delete(i),s&&a.doneListeners.delete(s)}}},e.prototype.onEvent=function(t){return this.eventListeners.add(t),this},e.prototype.onSend=function(t){return this.sendListeners.add(t),this},e.prototype.onChange=function(t){return this.contextListeners.add(t),this},e.prototype.onStop=function(t){return this.stopListeners.add(t),this},e.prototype.onDone=function(t){return this.doneListeners.add(t),this},e.prototype.off=function(t){return this.listeners.delete(t),this.eventListeners.delete(t),this.sendListeners.delete(t),this.stopListeners.delete(t),this.doneListeners.delete(t),this.contextListeners.delete(t),this},e.prototype.start=function(t){var n=this;if(this.status===we.Running)return this;this.machine._init(),rn.register(this.sessionId,this),this.initialized=!0,this.status=we.Running;var r=t===void 0?this.initialState:Tt(this,function(){return Hv(t)?n.machine.resolveState(t):n.machine.resolveState(Ue.from(t,n.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){n.update(r,_n)}),this},e.prototype.stop=function(){var t,n,r,a,i,s,u,c,d,l,h=this;try{for(var f=G(this.listeners),p=f.next();!p.done;p=f.next()){var v=p.value;this.listeners.delete(v)}}catch(E){t={error:E}}finally{try{p&&!p.done&&(n=f.return)&&n.call(f)}finally{if(t)throw t.error}}try{for(var m=G(this.stopListeners),g=m.next();!g.done;g=m.next()){var v=g.value;v(),this.stopListeners.delete(v)}}catch(E){r={error:E}}finally{try{g&&!g.done&&(a=m.return)&&a.call(m)}finally{if(r)throw r.error}}try{for(var S=G(this.contextListeners),w=S.next();!w.done;w=S.next()){var v=w.value;this.contextListeners.delete(v)}}catch(E){i={error:E}}finally{try{w&&!w.done&&(s=S.return)&&s.call(S)}finally{if(i)throw i.error}}try{for(var _=G(this.doneListeners),b=_.next();!b.done;b=_.next()){var v=b.value;this.doneListeners.delete(v)}}catch(E){u={error:E}}finally{try{b&&!b.done&&(c=_.return)&&c.call(_)}finally{if(u)throw u.error}}if(!this.initialized)return this;le([],J(this.state.configuration),!1).sort(function(E,T){return T.order-E.order}).forEach(function(E){var T,x;try{for(var B=G(E.definition.exit),V=B.next();!V.done;V=B.next()){var L=V.value;h.exec(L,h.state)}}catch(oe){T={error:oe}}finally{try{V&&!V.done&&(x=B.return)&&x.call(B)}finally{if(T)throw T.error}}}),this.children.forEach(function(E){Q(E.stop)&&E.stop()});try{for(var C=G(Object.keys(this.delayedEventsMap)),$=C.next();!$.done;$=C.next()){var A=$.value;this.clock.clearTimeout(this.delayedEventsMap[A])}}catch(E){d={error:E}}finally{try{$&&!$.done&&(l=C.return)&&l.call(C)}finally{if(d)throw d.error}}return this.scheduler.clear(),this.initialized=!1,this.status=we.Stopped,rn.free(this.sessionId),this},e.prototype.batch=function(t){var n=this;if(!(this.status===we.NotStarted&&this.options.deferEvents)){if(this.status!==we.Running)throw new Error("".concat(t.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'))}this.scheduler.schedule(function(){var r,a,i=n.state,s=!1,u=[],c=function(f){var p=ve(f);n.forward(p),i=Tt(n,function(){return n.machine.transition(i,p)}),u.push.apply(u,le([],J(i.actions.map(function(v){return Kv(v,i)})),!1)),s=s||!!i.changed};try{for(var d=G(t),l=d.next();!l.done;l=d.next()){var h=l.value;c(h)}}catch(f){r={error:f}}finally{try{l&&!l.done&&(a=d.return)&&a.call(d)}finally{if(r)throw r.error}}i.changed=s,i.actions=u,n.update(i,ve(t[t.length-1]))})},e.prototype.sender=function(t){return this.send.bind(this,t)},e.prototype.nextState=function(t){var n=this,r=ve(t);if(r.name.indexOf(Sa)===0&&!this.state.nextEvents.some(function(i){return i.indexOf(Sa)===0}))throw r.data.data;var a=Tt(this,function(){return n.machine.transition(n.state,r)});return a},e.prototype.forward=function(t){var n,r;try{for(var a=G(this.forwardTo),i=a.next();!i.done;i=a.next()){var s=i.value,u=this.children.get(s);if(!u)throw new Error("Unable to forward event '".concat(t,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(s,"'."));u.send(t)}}catch(c){n={error:c}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}},e.prototype.defer=function(t){var n=this;this.delayedEventsMap[t.id]=this.clock.setTimeout(function(){t.to?n.sendTo(t._event,t.to):n.send(t._event)},t.delay)},e.prototype.cancel=function(t){this.clock.clearTimeout(this.delayedEventsMap[t]),delete this.delayedEventsMap[t]},e.prototype.exec=function(t,n,r){r===void 0&&(r=this.machine.options.actions);var a=n.context,i=n._event,s=t.exec||Pr(t.type,r),u=Q(s)?s:s?s.exec:t.exec;if(u)try{return u(a,i.data,{action:t,state:this.state,_event:i})}catch(b){throw this.parent&&this.parent.send({type:"xstate.error",data:b}),b}switch(t.type){case jn:var c=t;if(typeof c.delay=="number"){this.defer(c);return}else c.to?this.sendTo(c._event,c.to):this.send(c._event);break;case Ai:this.cancel(t.sendId);break;case Cr:{if(this.status!==we.Running)return;var d=t.activity;if(!this.state.activities[d.id||d.type])break;if(d.type===ee.Invoke){var l=Oi(d.src),h=this.machine.options.services?this.machine.options.services[l.type]:void 0,f=d.id,p=d.data,v="autoForward"in d?d.autoForward:!!d.forward;if(!h)return;var m=p?Sn(p,a,i):void 0;if(typeof h=="string")return;var g=Q(h)?h(a,i.data,{data:m,src:l,meta:d.meta}):h;if(!g)return;var S=void 0;Je(g)&&(g=m?g.withContext(m):g,S={autoForward:v}),this.spawn(g,f,S)}else this.spawnActivity(d);break}case ro:{this.stopChild(t.activity.id);break}case Ei:var w=t.label,_=t.value;w?this.logger(w,_):this.logger(_);break}},e.prototype.removeChild=function(t){var n;this.children.delete(t),this.forwardTo.delete(t),(n=this.state)===null||n===void 0||delete n.children[t]},e.prototype.stopChild=function(t){var n=this.children.get(t);!n||(this.removeChild(t),Q(n.stop)&&n.stop())},e.prototype.spawn=function(t,n,r){if(Ca(t))return this.spawnPromise(Promise.resolve(t),n);if(Q(t))return this.spawnCallback(t,n);if(Fv(t))return this.spawnActor(t,n);if(Sv(t))return this.spawnObservable(t,n);if(Je(t))return this.spawnMachine(t,I(I({},r),{id:n}));if(yv(t))return this.spawnBehavior(t,n);throw new Error('Unable to spawn entity "'.concat(n,'" of type "').concat(typeof t,'".'))},e.prototype.spawnMachine=function(t,n){var r=this;n===void 0&&(n={});var a=new e(t,I(I({},this.options),{parent:this,id:n.id||t.id})),i=I(I({},xr),n);i.sync&&a.onTransition(function(u){r.send(oo,{state:u,id:a.id})});var s=a;return this.children.set(a.id,s),i.autoForward&&this.forwardTo.add(a.id),a.onDone(function(u){r.removeChild(a.id),r.send(ve(u,{origin:a.id}))}).start(),s},e.prototype.spawnBehavior=function(t,n){var r=Zv(t,{id:n,parent:this});return this.children.set(n,r),r},e.prototype.spawnPromise=function(t,n){var r,a=this,i=!1,s;t.then(function(c){i||(s=c,a.removeChild(n),a.send(ve(mn(n,c),{origin:n})))},function(c){if(!i){a.removeChild(n);var d=It(n,c);try{a.send(ve(d,{origin:n}))}catch{a.devTools&&a.devTools.send(d,a.state),a.machine.strict&&a.stop()}}});var u=(r={id:n,send:function(){},subscribe:function(c,d,l){var h=Tr(c,d,l),f=!1;return t.then(function(p){f||(h.next(p),!f&&h.complete())},function(p){f||h.error(p)}),{unsubscribe:function(){return f=!0}}},stop:function(){i=!0},toJSON:function(){return{id:n}},getSnapshot:function(){return s}},r[We]=function(){return this},r);return this.children.set(n,u),u},e.prototype.spawnCallback=function(t,n){var r,a=this,i=!1,s=new Set,u=new Set,c,d=function(f){c=f,u.forEach(function(p){return p(f)}),!i&&a.send(ve(f,{origin:n}))},l;try{l=t(d,function(f){s.add(f)})}catch(f){this.send(It(n,f))}if(Ca(l))return this.spawnPromise(l,n);var h=(r={id:n,send:function(f){return s.forEach(function(p){return p(f)})},subscribe:function(f){var p=Tr(f);return u.add(p.next),{unsubscribe:function(){u.delete(p.next)}}},stop:function(){i=!0,Q(l)&&l()},toJSON:function(){return{id:n}},getSnapshot:function(){return c}},r[We]=function(){return this},r);return this.children.set(n,h),h},e.prototype.spawnObservable=function(t,n){var r,a=this,i,s=t.subscribe(function(c){i=c,a.send(ve(c,{origin:n}))},function(c){a.removeChild(n),a.send(ve(It(n,c),{origin:n}))},function(){a.removeChild(n),a.send(ve(mn(n),{origin:n}))}),u=(r={id:n,send:function(){},subscribe:function(c,d,l){return t.subscribe(c,d,l)},stop:function(){return s.unsubscribe()},getSnapshot:function(){return i},toJSON:function(){return{id:n}}},r[We]=function(){return this},r);return this.children.set(n,u),u},e.prototype.spawnActor=function(t,n){return this.children.set(n,t),t},e.prototype.spawnActivity=function(t){var n=this.machine.options&&this.machine.options.activities?this.machine.options.activities[t.type]:void 0;if(!!n){var r=n(this.state.context,t);this.spawnEffect(t.id,r)}},e.prototype.spawnEffect=function(t,n){var r;this.children.set(t,(r={id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:n||void 0,getSnapshot:function(){},toJSON:function(){return{id:t}}},r[We]=function(){return this},r))},e.prototype.attachDev=function(){var t=uo();if(this.options.devTools&&t){if(t.__REDUX_DEVTOOLS_EXTENSION__){var n=typeof this.options.devTools=="object"?this.options.devTools:void 0;this.devTools=t.__REDUX_DEVTOOLS_EXTENSION__.connect(I(I({name:this.id,autoPause:!0,stateSanitizer:function(r){return{value:r.value,context:r.context,actions:r.actions}}},n),{features:I({jump:!1,skip:!1},n?n.features:void 0)}),this.machine),this.devTools.init(this.state)}Jv(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[We]=function(){return this},e.prototype.getSnapshot=function(){return this.status===we.NotStarted?this.initialState:this._state},e.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(t,n){return setTimeout(t,n)},clearTimeout:function(t){return clearTimeout(t)}},logger:console.log.bind(console),devTools:!1},e.interpret=Fi,e}(),Xv=function(e){return Y(e)?I(I({},xr),{name:e}):I(I(I({},xr),{name:bv()}),e)};function on(e,t){var n=Xv(t);return Vv(function(r){if(!pv){var a=Je(e)||Q(e);ki(!!r||a,'Attempted to spawn an Actor (ID: "'.concat(Je(e)?e.id:"undefined",'") outside of a service. This will have no effect.'))}return r?r.spawn(e,n.name,n):Bi(e,n.name)})}function Fi(e,t){var n=new Qv(e,t);return n}function ey(e){if(typeof e=="string"){var t={type:e};return t.toString=function(){return e},t}return e}function an(e){return I(I({type:Er},e),{toJSON:function(){e.onDone,e.onError;var t=no(e,["onDone","onError"]);return I(I({},t),{type:Er,src:ey(e.src)})}})}var sn="",Ur="#",ur="*",ot={},at=function(e){return e[0]===Ur},ty=function(){return{actions:{},guards:{},services:{},activities:{},delays:{}}},ny=function(){function e(t,n,r,a){var i=this;r===void 0&&(r="context"in t?t.context:void 0);var s;this.config=t,this._context=r,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign(ty(),n),this.parent=a==null?void 0:a.parent,this.key=this.config.key||(a==null?void 0:a.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:$i),this.id=this.config.id||le([this.machine.key],J(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:(s=this.config.schema)!==null&&s!==void 0?s:{},this.description=this.config.description,this.initial=this.config.initial,this.states=this.config.states?$t(this.config.states,function(d,l){var h,f=new e(d,{},void 0,{parent:i,key:l});return Object.assign(i.idMap,I((h={},h[f.id]=f,h),f.idMap)),f}):ot;var u=0;function c(d){var l,h;d.order=u++;try{for(var f=G(ut(d)),p=f.next();!p.done;p=f.next()){var v=p.value;c(v)}}catch(m){l={error:m}}finally{try{p&&!p.done&&(h=f.return)&&h.call(f)}finally{if(l)throw l.error}}}c(this),this.history=this.config.history===!0?"shallow":this.config.history||!1,this._transient=!!this.config.always||(this.config.on?Array.isArray(this.config.on)?this.config.on.some(function(d){var l=d.event;return l===sn}):sn in this.config.on:!1),this.strict=!!this.config.strict,this.onEntry=Ne(this.config.entry||this.config.onEntry).map(function(d){return Ut(d)}),this.onExit=Ne(this.config.exit||this.config.onExit).map(function(d){return Ut(d)}),this.meta=this.config.meta,this.doneData=this.type==="final"?this.config.data:void 0,this.invoke=Ne(this.config.invoke).map(function(d,l){var h,f;if(Je(d)){var p=tn(i.id,l);return i.machine.options.services=I((h={},h[p]=d,h),i.machine.options.services),an({src:p,id:p})}else if(Y(d.src)){var p=d.id||tn(i.id,l);return an(I(I({},d),{id:p,src:d.src}))}else if(Je(d.src)||Q(d.src)){var p=d.id||tn(i.id,l);return i.machine.options.services=I((f={},f[p]=d.src,f),i.machine.options.services),an(I(I({id:p},d),{src:p}))}else{var v=d.src;return an(I(I({id:tn(i.id,l)},d),{src:v}))}}),this.activities=Ne(this.config.activities).concat(this.invoke).map(function(d){return so(d)}),this.transition=this.transition.bind(this),this.tags=Ne(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||Vi(this).forEach(function(t){return t.on})},e.prototype.withConfig=function(t,n){var r=this.options,a=r.actions,i=r.activities,s=r.guards,u=r.services,c=r.delays;return new e(this.config,{actions:I(I({},a),t.actions),activities:I(I({},i),t.activities),guards:I(I({},s),t.guards),services:I(I({},u),t.services),delays:I(I({},c),t.delays)},n!=null?n:this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return Q(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:$t(this.states,function(t){return t.definition}),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){return this.definition},Object.defineProperty(e.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var t=this.transitions;return this.__cache.on=t.reduce(function(n,r){return n[r.eventType]=n[r.eventType]||[],n[r.eventType].push(r),n},{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),e.prototype.getCandidates=function(t){if(this.__cache.candidates[t])return this.__cache.candidates[t];var n=t===sn,r=this.transitions.filter(function(a){var i=a.eventType===t;return n?i:i||a.eventType===ur});return this.__cache.candidates[t]=r,r},e.prototype.getDelayedTransitions=function(){var t=this,n=this.config.after;if(!n)return[];var r=function(i,s){var u=Q(i)?"".concat(t.id,":delay[").concat(s,"]"):i,c=Rv(u,t.id);return t.onEntry.push(zn(c,{delay:i})),t.onExit.push(Nv(c)),c},a=wt(n)?n.map(function(i,s){var u=r(i.delay,s);return I(I({},i),{event:u})}):ce(Object.keys(n).map(function(i,s){var u=n[i],c=Y(u)?{target:u}:u,d=isNaN(+i)?i:+i,l=r(d,s);return Ne(c).map(function(h){return I(I({},h),{event:l,delay:d})})}));return a.map(function(i){var s=i.delay;return I(I({},t.formatTransition(i)),{delay:s})})},e.prototype.getStateNodes=function(t){var n,r=this;if(!t)return[];var a=t instanceof Ue?t.value:Pt(t,this.delimiter);if(Y(a)){var i=this.getStateNode(a).initial;return i!==void 0?this.getStateNodes((n={},n[a]=i,n)):[this,this.states[a]]}var s=Object.keys(a),u=[this];return u.push.apply(u,le([],J(ce(s.map(function(c){return r.getStateNode(c).getStateNodes(a[c])}))),!1)),u},e.prototype.handles=function(t){var n=Ii(t);return this.events.includes(n)},e.prototype.resolveState=function(t){var n=t instanceof Ue?t:Ue.create(t),r=Array.from(it([],this.getStateNodes(n.value)));return new Ue(I(I({},n),{value:this.resolve(n.value),configuration:r,done:Nt(r,this),tags:Ea(r),machine:this.machine}))},e.prototype.transitionLeafNode=function(t,n,r){var a=this.getStateNode(t),i=a.next(n,r);return!i||!i.transitions.length?this.next(n,r):i},e.prototype.transitionCompoundNode=function(t,n,r){var a=Object.keys(t),i=this.getStateNode(a[0]),s=i._transition(t[a[0]],n,r);return!s||!s.transitions.length?this.next(n,r):s},e.prototype.transitionParallelNode=function(t,n,r){var a,i,s={};try{for(var u=G(Object.keys(t)),c=u.next();!c.done;c=u.next()){var d=c.value,l=t[d];if(!!l){var h=this.getStateNode(d),f=h._transition(l,n,r);f&&(s[d]=f)}}}catch(w){a={error:w}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(a)throw a.error}}var p=Object.keys(s).map(function(w){return s[w]}),v=ce(p.map(function(w){return w.transitions})),m=p.some(function(w){return w.transitions.length>0});if(!m)return this.next(n,r);var g=ce(p.map(function(w){return w.entrySet})),S=ce(Object.keys(s).map(function(w){return s[w].configuration}));return{transitions:v,entrySet:g,exitSet:ce(p.map(function(w){return w.exitSet})),configuration:S,source:n,actions:ce(Object.keys(s).map(function(w){return s[w].actions}))}},e.prototype._transition=function(t,n,r){return Y(t)?this.transitionLeafNode(t,n,r):Object.keys(t).length===1?this.transitionCompoundNode(t,n,r):this.transitionParallelNode(t,n,r)},e.prototype.getTransitionData=function(t,n){return this._transition(t.value,t,ve(n))},e.prototype.next=function(t,n){var r,a,i=this,s=n.name,u=[],c=[],d;try{for(var l=G(this.getCandidates(s)),h=l.next();!h.done;h=l.next()){var f=h.value,p=f.cond,v=f.in,m=t.context,g=v?Y(v)&&at(v)?t.matches(Pt(this.getStateNodeById(v).path,this.delimiter)):ao(Pt(v,this.delimiter),mv(this.path.slice(0,-2))(t.value)):!0,S=!1;try{S=!p||Ui(this.machine,p,m,n,t)}catch(C){throw new Error("Unable to evaluate guard '".concat(p.name||p.type,"' in transition for event '").concat(s,"' in state node '").concat(this.id,`':
|
|
30
|
+
`).concat(C.message))}if(S&&g){f.target!==void 0&&(c=f.target),u.push.apply(u,le([],J(f.actions),!1)),d=f;break}}}catch(C){r={error:C}}finally{try{h&&!h.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(!!d){if(!c.length)return{transitions:[d],entrySet:[],exitSet:[],configuration:t.value?[this]:[],source:t,actions:u};var w=ce(c.map(function(C){return i.getRelativeStateNodes(C,t.historyValue)})),_=!!d.internal,b=_?[]:ce(w.map(function(C){return i.nodesFromChild(C)}));return{transitions:[d],entrySet:b,exitSet:_?[]:[this],configuration:w,source:t,actions:u}}},e.prototype.nodesFromChild=function(t){if(t.escapes(this))return[];for(var n=[],r=t;r&&r!==this;)n.push(r),r=r.parent;return n.push(this),n},e.prototype.escapes=function(t){if(this===t)return!1;for(var n=this.parent;n;){if(n===t)return!1;n=n.parent}return!0},e.prototype.getActions=function(t,n,r,a){var i,s,u,c,d=it([],a?this.getStateNodes(a.value):[this]),l=t.configuration.length?it(d,t.configuration):d;try{for(var h=G(l),f=h.next();!f.done;f=h.next()){var p=f.value;gn(d,p)||t.entrySet.push(p)}}catch(A){i={error:A}}finally{try{f&&!f.done&&(s=h.return)&&s.call(h)}finally{if(i)throw i.error}}try{for(var v=G(d),m=v.next();!m.done;m=v.next()){var p=m.value;(!gn(l,p)||gn(t.exitSet,p.parent))&&t.exitSet.push(p)}}catch(A){u={error:A}}finally{try{m&&!m.done&&(c=v.return)&&c.call(v)}finally{if(u)throw u.error}}var g=ce(t.entrySet.map(function(A){var E=[];if(A.type!=="final")return E;var T=A.parent;if(!T.parent)return E;E.push(nn(A.id,A.doneData),nn(T.id,A.doneData?Sn(A.doneData,n,r):void 0));var x=T.parent;return x.type==="parallel"&&ut(x).every(function(B){return Nt(t.configuration,B)})&&E.push(nn(x.id)),E}));t.exitSet.sort(function(A,E){return E.order-A.order}),t.entrySet.sort(function(A,E){return A.order-E.order});var S=new Set(t.entrySet),w=new Set(t.exitSet),_=J([ce(Array.from(S).map(function(A){return le(le([],J(A.activities.map(function(E){return kv(E)})),!1),J(A.onEntry),!1)})).concat(g.map(Av)),ce(Array.from(w).map(function(A){return le(le([],J(A.onExit),!1),J(A.activities.map(function(E){return xv(E)})),!1)}))],2),b=_[0],C=_[1],$=bn(C.concat(t.actions).concat(b),this.machine.options.actions);return $},e.prototype.transition=function(t,n,r){t===void 0&&(t=this.initialState);var a=ve(n),i;if(t instanceof Ue)i=r===void 0?t:this.resolveState(Ue.from(t,r));else{var s=Y(t)?this.resolve(wn(this.getResolvedPath(t))):this.resolve(t),u=r!=null?r:this.machine.context;i=this.resolveState(Ue.from(s,u))}if(this.strict&&!this.events.includes(a.name)&&!vv(a.name))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(a.name,"'"));var c=this._transition(i.value,i,a)||{transitions:[],configuration:[],entrySet:[],exitSet:[],source:i,actions:[]},d=it([],this.getStateNodes(i.value)),l=c.configuration.length?it(d,c.configuration):d;return c.configuration=le([],J(l),!1),this.resolveTransition(c,i,i.context,a)},e.prototype.resolveRaisedTransition=function(t,n,r){var a,i=t.actions;return t=this.transition(t,n),t._event=r,t.event=r.data,(a=t.actions).unshift.apply(a,le([],J(i),!1)),t},e.prototype.resolveTransition=function(t,n,r,a){var i,s,u=this;a===void 0&&(a=_n);var c=t.configuration,d=!n||t.transitions.length>0,l=d?jv(this.machine,c):void 0,h=n?n.historyValue?n.historyValue:t.source?this.machine.historyValue(n.value):void 0:void 0,f=this.getActions(t,r,a,n),p=n?I({},n.activities):{};try{for(var v=G(f),m=v.next();!m.done;m=v.next()){var g=m.value;g.type===Cr?p[g.activity.id||g.activity.type]=g:g.type===ro&&(p[g.activity.id||g.activity.type]=!1)}}catch(de){i={error:de}}finally{try{m&&!m.done&&(s=v.return)&&s.call(v)}finally{if(i)throw i.error}}var S=J(Nr(this,n,r,a,f,this.machine.config.preserveActionOrder),2),w=S[0],_=S[1],b=J(Pi(w,function(de){return de.type===Ln||de.type===jn&&de.to===st.Internal}),2),C=b[0],$=b[1],A=w.filter(function(de){var Te;return de.type===Cr&&((Te=de.activity)===null||Te===void 0?void 0:Te.type)===Er}),E=A.reduce(function(de,Te){return de[Te.activity.id]=Dv(Te.activity,u.machine,_,a),de},n?I({},n.children):{}),T=d?t.configuration:n?n.configuration:[],x=Nt(T,this),B=new Ue({value:l||n.value,context:_,_event:a,_sessionid:n?n._sessionid:null,historyValue:l?h?wv(h,l):void 0:n?n.historyValue:void 0,history:!l||t.source?n:void 0,actions:l?$:[],activities:l?p:n?n.activities:{},events:[],configuration:T,transitions:t.transitions,children:E,done:x,tags:n==null?void 0:n.tags,machine:this}),V=r!==_;B.changed=a.name===oo||V;var L=B.history;L&&delete L.history;var oe=!x&&(this._transient||c.some(function(de){return de._transient}));if(!d&&(!oe||a.name===sn))return B;var z=B;if(!x)for(oe&&(z=this.resolveRaisedTransition(z,{type:sv},a));C.length;){var me=C.shift();z=this.resolveRaisedTransition(z,me._event,a)}var Xe=z.changed||(L?!!z.actions.length||V||typeof L.value!=typeof z.value||!Mi(z.value,L.value):void 0);return z.changed=Xe,z.history=L,z.tags=Ea(z.configuration),z},e.prototype.getStateNode=function(t){if(at(t))return this.machine.getStateNodeById(t);if(!this.states)throw new Error("Unable to retrieve child state '".concat(t,"' from '").concat(this.id,"'; no child states exist."));var n=this.states[t];if(!n)throw new Error("Child state '".concat(t,"' does not exist on '").concat(this.id,"'"));return n},e.prototype.getStateNodeById=function(t){var n=at(t)?t.slice(Ur.length):t;if(n===this.id)return this;var r=this.machine.idMap[n];if(!r)throw new Error("Child state node '#".concat(n,"' does not exist on machine '").concat(this.id,"'"));return r},e.prototype.getStateNodeByPath=function(t){if(typeof t=="string"&&at(t))try{return this.getStateNodeById(t.slice(1))}catch{}for(var n=Ir(t,this.delimiter).slice(),r=this;n.length;){var a=n.shift();if(!a.length)break;r=r.getStateNode(a)}return r},e.prototype.resolve=function(t){var n,r=this;if(!t)return this.initialStateValue||ot;switch(this.type){case"parallel":return $t(this.initialStateValue,function(i,s){return i?r.getStateNode(s).resolve(t[s]||i):ot});case"compound":if(Y(t)){var a=this.getStateNode(t);return a.type==="parallel"||a.type==="compound"?(n={},n[t]=a.initialStateValue,n):t}return Object.keys(t).length?$t(t,function(i,s){return i?r.getStateNode(s).resolve(i):ot}):this.initialStateValue||{};default:return t||ot}},e.prototype.getResolvedPath=function(t){if(at(t)){var n=this.machine.idMap[t.slice(Ur.length)];if(!n)throw new Error("Unable to find state node '".concat(t,"'"));return n.path}return Ir(t,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;var n;if(this.type==="parallel")n=ba(this.states,function(r){return r.initialStateValue||ot},function(r){return r.type!=="history"});else if(this.initial!==void 0){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));n=An(this.states[this.initial])?this.initial:(t={},t[this.initial]=this.states[this.initial].initialStateValue,t)}else n={};return this.__cache.initialStateValue=n,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(t,n){this._init();var r=this.getStateNodes(t);return this.resolveTransition({configuration:r,entrySet:r,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,n!=null?n:this.machine.context,void 0)},Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this.initialStateValue;if(!t)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){var t;if(this.type==="history"){var n=this.config;Y(n.target)?t=at(n.target)?wn(this.machine.getStateNodeById(n.target).path.slice(this.path.length-1)):n.target:t=n.target}return t},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(t,n,r){return r===void 0&&(r=!0),r?t.type==="history"?t.resolveHistory(n):t.initialStateNodes:[t]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var t=this;if(An(this))return[this];if(this.type==="compound"&&!this.initial)return[this];var n=hn(this.initialStateValue);return ce(n.map(function(r){return t.getFromRelativePath(r)}))},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var n=J(t),r=n[0],a=n.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(r,"' from node with no states"));var i=this.getStateNode(r);if(i.type==="history")return i.resolveHistory();if(!this.states[r])throw new Error("Child state '".concat(r,"' does not exist on '").concat(this.id,"'"));return this.states[r].getFromRelativePath(a)},e.prototype.historyValue=function(t){if(!!Object.keys(this.states).length)return{current:t||this.initialStateValue,states:ba(this.states,function(n,r){if(!t)return n.historyValue();var a=Y(t)?void 0:t[r];return n.historyValue(a||n.initialStateValue)},function(n){return!n.history})}},e.prototype.resolveHistory=function(t){var n=this;if(this.type!=="history")return[this];var r=this.parent;if(!t){var a=this.target;return a?ce(hn(a).map(function(s){return r.getFromRelativePath(s)})):r.initialStateNodes}var i=gv(r.path,"states")(t).current;return Y(i)?[r.getStateNode(i)]:ce(hn(i).map(function(s){return n.history==="deep"?r.getFromRelativePath(s):[r.states[s[0]]]}))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var t=this,n=ce(Object.keys(this.states).map(function(r){return t.states[r].stateIds}));return[this.id].concat(n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){var t,n,r,a;if(this.__cache.events)return this.__cache.events;var i=this.states,s=new Set(this.ownEvents);if(i)try{for(var u=G(Object.keys(i)),c=u.next();!c.done;c=u.next()){var d=c.value,l=i[d];if(l.states)try{for(var h=(r=void 0,G(l.events)),f=h.next();!f.done;f=h.next()){var p=f.value;s.add("".concat(p))}}catch(v){r={error:v}}finally{try{f&&!f.done&&(a=h.return)&&a.call(h)}finally{if(r)throw r.error}}}}catch(v){t={error:v}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return this.__cache.events=Array.from(s)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownEvents",{get:function(){var t=new Set(this.transitions.filter(function(n){return!(!n.target&&!n.actions.length&&n.internal)}).map(function(n){return n.eventType}));return Array.from(t)},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(t){var n=this;if(t!==void 0)return t.map(function(r){if(!Y(r))return r;var a=r[0]===n.delimiter;if(a&&!n.parent)return n.getStateNodeByPath(r.slice(1));var i=a?n.key+r:r;if(n.parent)try{var s=n.parent.getStateNodeByPath(i);return s}catch(u){throw new Error("Invalid transition definition for state node '".concat(n.id,`':
|
|
31
|
+
`).concat(u.message))}else return n.getStateNodeByPath(i)})},e.prototype.formatTransition=function(t){var n=this,r=Cv(t.target),a="internal"in t?t.internal:r?r.some(function(c){return Y(c)&&c[0]===n.delimiter}):!0,i=this.machine.options.guards,s=this.resolveTarget(r),u=I(I({},t),{actions:bn(Ne(t.actions)),cond:xi(t.cond,i),target:s,source:this,internal:a,eventType:t.event,toJSON:function(){return I(I({},u),{target:u.target?u.target.map(function(c){return"#".concat(c.id)}):void 0,source:"#".concat(n.id)})}});return u},e.prototype.formatTransitions=function(){var t,n,r=this,a;if(!this.config.on)a=[];else if(Array.isArray(this.config.on))a=this.config.on;else{var i=this.config.on,s=ur,u=i[s],c=u===void 0?[]:u,d=no(i,[typeof s=="symbol"?s:s+""]);a=ce(Object.keys(d).map(function(w){var _=rt(w,d[w]);return _}).concat(rt(ur,c)))}var l=this.config.always?rt("",this.config.always):[],h=this.config.onDone?rt(String(nn(this.id)),this.config.onDone):[],f=ce(this.invoke.map(function(w){var _=[];return w.onDone&&_.push.apply(_,le([],J(rt(String(mn(w.id)),w.onDone)),!1)),w.onError&&_.push.apply(_,le([],J(rt(String(It(w.id)),w.onError)),!1)),_})),p=this.after,v=ce(le(le(le(le([],J(h),!1),J(f),!1),J(a),!1),J(l),!1).map(function(w){return Ne(w).map(function(_){return r.formatTransition(_)})}));try{for(var m=G(p),g=m.next();!g.done;g=m.next()){var S=g.value;v.push(S)}}catch(w){t={error:w}}finally{try{g&&!g.done&&(n=m.return)&&n.call(m)}finally{if(t)throw t.error}}return v},e}();function Lt(e,t){return new ny(e,t)}var Pe=Ov,co=Tv,ry=Bv,K={},lo={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});/*! *****************************************************************************
|
|
32
32
|
Copyright (c) Microsoft Corporation.
|
|
33
33
|
|
|
34
34
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -41,11 +41,11 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
41
41
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
42
42
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
43
43
|
PERFORMANCE OF THIS SOFTWARE.
|
|
44
|
-
***************************************************************************** */e.__assign=function(){return e.__assign=Object.assign||function(s){for(var u,c=1,d=arguments.length;c<d;c++){u=arguments[c];for(var l in u)Object.prototype.hasOwnProperty.call(u,l)&&(s[l]=u[l])}return s},e.__assign.apply(this,arguments)};function t(i,s){var u={};for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&s.indexOf(c)<0&&(u[c]=i[c]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,c=Object.getOwnPropertySymbols(i);d<c.length;d++)s.indexOf(c[d])<0&&Object.prototype.propertyIsEnumerable.call(i,c[d])&&(u[c[d]]=i[c[d]]);return u}function n(i){var s=typeof Symbol=="function"&&Symbol.iterator,u=s&&i[s],c=0;if(u)return u.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&c>=i.length&&(i=void 0),{value:i&&i[c++],done:!i}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function r(i,s){var u=typeof Symbol=="function"&&i[Symbol.iterator];if(!u)return i;var c=u.call(i),d,l=[],h;try{for(;(s===void 0||s-- >0)&&!(d=c.next()).done;)l.push(d.value)}catch(f){h={error:f}}finally{try{d&&!d.done&&(u=c.return)&&u.call(c)}finally{if(h)throw h.error}}return l}function a(i,s,u){if(u||arguments.length===2)for(var c=0,d=s.length,l;c<d;c++)(l||!(c in s))&&(l||(l=Array.prototype.slice.call(s,0,c)),l[c]=s[c]);return i.concat(l||Array.prototype.slice.call(s))}e.__read=r,e.__rest=t,e.__spreadArray=a,e.__values=n})(lo);var fo={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ActionTypes=void 0,function(t){t.Start="xstate.start",t.Stop="xstate.stop",t.Raise="xstate.raise",t.Send="xstate.send",t.Cancel="xstate.cancel",t.NullEvent="",t.Assign="xstate.assign",t.After="xstate.after",t.DoneState="done.state",t.DoneInvoke="done.invoke",t.Log="xstate.log",t.Init="xstate.init",t.Invoke="xstate.invoke",t.ErrorExecution="error.execution",t.ErrorCommunication="error.communication",t.ErrorPlatform="error.platform",t.ErrorCustom="xstate.error",t.Update="xstate.update",t.Pure="xstate.pure",t.Choose="xstate.choose"}(e.ActionTypes||(e.ActionTypes={})),e.SpecialTargets=void 0,function(t){t.Parent="#_parent",t.Internal="#_internal"}(e.SpecialTargets||(e.SpecialTargets={}))})(fo);var fe={};Object.defineProperty(fe,"__esModule",{value:!0});var he=fo,ry=he.ActionTypes.Start,oy=he.ActionTypes.Stop,ay=he.ActionTypes.Raise,iy=he.ActionTypes.Send,sy=he.ActionTypes.Cancel,uy=he.ActionTypes.NullEvent,cy=he.ActionTypes.Assign,ly=he.ActionTypes.After,dy=he.ActionTypes.DoneState,fy=he.ActionTypes.Log,py=he.ActionTypes.Init,hy=he.ActionTypes.Invoke,my=he.ActionTypes.ErrorExecution,gy=he.ActionTypes.ErrorPlatform,vy=he.ActionTypes.ErrorCustom,yy=he.ActionTypes.Update,wy=he.ActionTypes.Choose,Sy=he.ActionTypes.Pure;fe.after=ly;fe.assign=cy;fe.cancel=sy;fe.choose=wy;fe.doneState=dy;fe.error=vy;fe.errorExecution=my;fe.errorPlatform=gy;fe.init=py;fe.invoke=hy;fe.log=fy;fe.nullEvent=uy;fe.pure=Sy;fe.raise=ay;fe.send=iy;fe.start=ry;fe.stop=oy;fe.update=yy;var Li={},St={};Object.defineProperty(St,"__esModule",{value:!0});var _y=".",by={},Cy="xstate.guard",Ay="";St.DEFAULT_GUARD_TYPE=Cy;St.EMPTY_ACTIVITY_MAP=by;St.STATE_DELIMITER=_y;St.TARGETLESS_KEY=Ay;var Gn={};Object.defineProperty(Gn,"__esModule",{value:!0});var Ey=!0;Gn.IS_PRODUCTION=Ey;(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=lo,n=St,r=Gn,a;function i(y){return Object.keys(y)}function s(y,N,U){U===void 0&&(U=n.STATE_DELIMITER);var k=h(y,U),D=h(N,U);return me(D)?me(k)?D===k:!1:me(k)?k in D:Object.keys(k).every(function(M){return M in D?s(k[M],D[M]):!1})}function u(y){try{return me(y)||typeof y=="number"?"".concat(y):y.type}catch{throw new Error("Events must be strings or objects with a string event.type property.")}}function c(y){try{return me(y)||typeof y=="number"?"".concat(y):z(y)?y.name:y.type}catch{throw new Error("Actions must be strings or objects with a string action.type property.")}}function d(y,N){try{return oe(y)?y:y.toString().split(N)}catch{throw new Error("'".concat(y,"' is not a valid state path."))}}function l(y){return typeof y=="object"&&"value"in y&&"context"in y&&"event"in y&&"_event"in y}function h(y,N){if(l(y))return y.value;if(oe(y))return f(y);if(typeof y!="string")return y;var U=d(y,N);return f(U)}function f(y){if(y.length===1)return y[0];for(var N={},U=N,k=0;k<y.length-1;k++)k===y.length-2?U[y[k]]=y[k+1]:(U[y[k]]={},U=U[y[k]]);return N}function p(y,N){for(var U={},k=Object.keys(y),D=0;D<k.length;D++){var M=k[D];U[M]=N(y[M],M,y,D)}return U}function v(y,N,U){var k,D,M={};try{for(var j=t.__values(Object.keys(y)),F=j.next();!F.done;F=j.next()){var Z=F.value,ae=y[Z];!U(ae)||(M[Z]=N(ae,Z,y))}}catch(_e){k={error:_e}}finally{try{F&&!F.done&&(D=j.return)&&D.call(j)}finally{if(k)throw k.error}}return M}var g=function(y){return function(N){var U,k,D=N;try{for(var M=t.__values(y),j=M.next();!j.done;j=M.next()){var F=j.value;D=D[F]}}catch(Z){U={error:Z}}finally{try{j&&!j.done&&(k=M.return)&&k.call(M)}finally{if(U)throw U.error}}return D}};function m(y,N){return function(U){var k,D,M=U;try{for(var j=t.__values(y),F=j.next();!F.done;F=j.next()){var Z=F.value;M=M[N][Z]}}catch(ae){k={error:ae}}finally{try{F&&!F.done&&(D=j.return)&&D.call(j)}finally{if(k)throw k.error}}return M}}function S(y){if(!y)return[[]];if(me(y))return[[y]];var N=_(Object.keys(y).map(function(U){var k=y[U];return typeof k!="string"&&(!k||!Object.keys(k).length)?[[U]]:S(y[U]).map(function(D){return[U].concat(D)})}));return N}function w(y){var N,U,k={};if(y&&y.length===1&&y[0].length===1)return y[0][0];try{for(var D=t.__values(y),M=D.next();!M.done;M=D.next())for(var j=M.value,F=k,Z=0;Z<j.length;Z++){var ae=j[Z];if(Z===j.length-2){F[ae]=j[Z+1];break}F[ae]=F[ae]||{},F=F[ae]}}catch(_e){N={error:_e}}finally{try{M&&!M.done&&(U=D.return)&&U.call(D)}finally{if(N)throw N.error}}return k}function _(y){var N;return(N=[]).concat.apply(N,t.__spreadArray([],t.__read(y),!1))}function b(y){return oe(y)?y:[y]}function C(y){return y===void 0?[]:b(y)}function $(y,N,U){var k,D;if(z(y))return y(N,U.data);var M={};try{for(var j=t.__values(Object.keys(y)),F=j.next();!F.done;F=j.next()){var Z=F.value,ae=y[Z];z(ae)?M[Z]=ae(N,U.data):M[Z]=ae}}catch(_e){k={error:_e}}finally{try{F&&!F.done&&(D=j.return)&&D.call(j)}finally{if(k)throw k.error}}return M}function A(y){return/^(done|error)\./.test(y)}function E(y){return!!(y instanceof Promise||y!==null&&(z(y)||typeof y=="object")&&z(y.then))}function T(y){return y!==null&&typeof y=="object"&&"transition"in y&&typeof y.transition=="function"}function x(y,N){var U,k,D=t.__read([[],[]],2),M=D[0],j=D[1];try{for(var F=t.__values(y),Z=F.next();!Z.done;Z=F.next()){var ae=Z.value;N(ae)?M.push(ae):j.push(ae)}}catch(_e){U={error:_e}}finally{try{Z&&!Z.done&&(k=F.return)&&k.call(F)}finally{if(U)throw U.error}}return[M,j]}function B(y,N){return p(y.states,function(U,k){if(!!U){var D=(me(N)?void 0:N[k])||(U?U.current:void 0);if(!!D)return{current:D,states:B(U,D)}}})}function V(y,N){return{current:N,states:B(y,N)}}function L(y,N,U,k){r.IS_PRODUCTION||e.warn(!!y,"Attempting to update undefined context");var D=y&&U.reduce(function(M,j){var F,Z,ae=j.assignment,_e={state:k,action:j,_event:N},te={};if(z(ae))te=ae(M,N.data,_e);else try{for(var ie=t.__values(Object.keys(ae)),Ge=ie.next();!Ge.done;Ge=ie.next()){var Zt=Ge.value,or=ae[Zt];te[Zt]=z(or)?or(M,N.data,_e):or}}catch(ks){F={error:ks}}finally{try{Ge&&!Ge.done&&(Z=ie.return)&&Z.call(ie)}finally{if(F)throw F.error}}return Object.assign({},M,te)},y);return D}e.warn=function(){},r.IS_PRODUCTION||(e.warn=function(y,N){var U=y instanceof Error?y:void 0;if(!(!U&&y)&&console!==void 0){var k=["Warning: ".concat(N)];U&&k.push(U),console.warn.apply(console,k)}});function oe(y){return Array.isArray(y)}function z(y){return typeof y=="function"}function me(y){return typeof y=="string"}function Xe(y,N){if(!!y)return me(y)?{type:n.DEFAULT_GUARD_TYPE,name:y,predicate:N?N[y]:void 0}:z(y)?{type:n.DEFAULT_GUARD_TYPE,name:y.name,predicate:y}:y}function de(y){try{return"subscribe"in y&&z(y.subscribe)}catch{return!1}}var Te=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),er=(a={},a[Te]=function(){return this},a[Symbol.observable]=function(){return this},a);function Ht(y){return!!y&&"__xstatenode"in y}function tr(y){return!!y&&typeof y.send=="function"}var nr=function(){var y=0;return function(){return y++,y.toString(16)}}();function Kt(y,N){return me(y)||typeof y=="number"?t.__assign({type:y},N):y}function qt(y,N){if(!me(y)&&"$$type"in y&&y.$$type==="scxml")return y;var U=Kt(y);return t.__assign({name:U.type,data:U,$$type:"scxml",type:"external"},N)}function Wt(y,N){var U=b(N).map(function(k){return typeof k=="undefined"||typeof k=="string"||Ht(k)?{target:k,event:y}:t.__assign(t.__assign({},k),{event:y})});return U}function bt(y){if(!(y===void 0||y===n.TARGETLESS_KEY))return C(y)}function P(y,N,U){if(!r.IS_PRODUCTION){var k=y.stack?" Stacktrace was '".concat(y.stack,"'"):"";if(y===N)console.error("Missing onError handler for invocation '".concat(U,"', error was '").concat(y,"'.").concat(k));else{var D=N.stack?" Stacktrace was '".concat(N.stack,"'"):"";console.error("Missing onError handler and/or unhandled exception/promise rejection for invocation '".concat(U,"'. ")+"Original error: '".concat(y,"'. ").concat(k," Current error is '").concat(N,"'.").concat(D))}}}function ye(y,N,U,k,D){var M=y.options.guards,j={state:D,cond:N,_event:k};if(N.type===n.DEFAULT_GUARD_TYPE)return((M==null?void 0:M[N.name])||N.predicate)(U,k.data,j);var F=M==null?void 0:M[N.type];if(!F)throw new Error("Guard '".concat(N.type,"' is not implemented on machine '").concat(y.id,"'."));return F(U,k.data,j)}function Yt(y){return typeof y=="string"?{type:y}:y}function rr(y,N,U){if(typeof y=="object")return y;var k=function(){};return{next:y,error:N||k,complete:U||k}}function Jt(y,N){return"".concat(y,":invocation[").concat(N,"]")}e.createInvokeId=Jt,e.evaluateGuard=ye,e.flatten=_,e.getActionType=c,e.getEventType=u,e.interopSymbols=er,e.isActor=tr,e.isArray=oe,e.isBehavior=T,e.isBuiltInEvent=A,e.isFunction=z,e.isMachine=Ht,e.isObservable=de,e.isPromiseLike=E,e.isStateLike=l,e.isString=me,e.keys=i,e.mapContext=$,e.mapFilterValues=v,e.mapValues=p,e.matchesState=s,e.nestedPath=m,e.normalizeTarget=bt,e.partition=x,e.path=g,e.pathToStateValue=f,e.pathsToStateValue=w,e.reportUnhandledExceptionOnInvocation=P,e.symbolObservable=Te,e.toArray=C,e.toArrayStrict=b,e.toEventObject=Kt,e.toGuard=Xe,e.toInvokeSource=Yt,e.toObserver=rr,e.toSCXMLEvent=qt,e.toStatePath=d,e.toStatePaths=S,e.toStateValue=h,e.toTransitionConfigArray=Wt,e.uniqueId=nr,e.updateContext=L,e.updateHistoryStates=B,e.updateHistoryValue=V})(Li);Object.defineProperty(K,"__esModule",{value:!0});var X=lo,Ie=fo,pe=fe,H=Li,$y=Gn,Iy=H.toSCXMLEvent({type:pe.init});function Or(e,t){return t&&t[e]||void 0}function Hn(e,t){var n;if(H.isString(e)||typeof e=="number"){var r=Or(e,t);H.isFunction(r)?n={type:e,exec:r}:r?n=r:n={type:e,exec:void 0}}else if(H.isFunction(e))n={type:e.name||e.toString(),exec:e};else{var r=Or(e.type,t);if(H.isFunction(r))n=X.__assign(X.__assign({},e),{exec:r});else if(r){var a=r.type||e.type;n=X.__assign(X.__assign(X.__assign({},r),e),{type:a})}else n=e}return n}var Rr=function(e,t){if(!e)return[];var n=H.isArray(e)?e:[e];return n.map(function(r){return Hn(r,t)})};function po(e){var t=Hn(e);return X.__assign(X.__assign({id:H.isString(e)?e:t.id},t),{type:t.type})}function Ty(e){return H.isString(e)?{type:pe.raise,event:e}:_t(e,{to:Ie.SpecialTargets.Internal})}function ji(e){return{type:pe.raise,_event:H.toSCXMLEvent(e.event)}}function _t(e,t){return{to:t?t.to:void 0,type:pe.send,event:H.isFunction(e)?e:H.toEventObject(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:H.isFunction(e)?e.name:H.getEventType(e)}}function zi(e,t,n,r){var a={_event:n},i=H.toSCXMLEvent(H.isFunction(e.event)?e.event(t,n.data,a):e.event),s;if(H.isString(e.delay)){var u=r&&r[e.delay];s=H.isFunction(u)?u(t,n.data,a):u}else s=H.isFunction(e.delay)?e.delay(t,n.data,a):e.delay;var c=H.isFunction(e.to)?e.to(t,n.data,a):e.to;return X.__assign(X.__assign({},e),{to:c,_event:i,event:i.data,delay:s})}function ho(e,t){return _t(e,X.__assign(X.__assign({},t),{to:Ie.SpecialTargets.Parent}))}function Py(e,t,n){return _t(t,X.__assign(X.__assign({},n),{to:e}))}function Ny(){return ho(pe.update)}function ky(e,t){return _t(e,X.__assign(X.__assign({},t),{to:function(n,r,a){var i=a._event;return i.origin}}))}var xy=function(e,t){return{context:e,event:t}};function Uy(e,t){return e===void 0&&(e=xy),{type:pe.log,label:t,expr:e}}var Gi=function(e,t,n){return X.__assign(X.__assign({},e),{value:H.isString(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})},Oy=function(e){return{type:pe.cancel,sendId:e}};function Ry(e){var t=po(e);return{type:Ie.ActionTypes.Start,activity:t,exec:void 0}}function By(e){var t=H.isFunction(e)?e:po(e);return{type:Ie.ActionTypes.Stop,activity:t,exec:void 0}}function Hi(e,t,n){var r=H.isFunction(e.activity)?e.activity(t,n.data):e.activity,a=typeof r=="string"?{id:r}:r,i={type:Ie.ActionTypes.Stop,activity:a};return i}var Vy=function(e){return{type:pe.assign,assignment:e}};function Dy(e){return typeof e=="object"&&"type"in e}function My(e,t){var n=t?"#".concat(t):"";return"".concat(Ie.ActionTypes.After,"(").concat(e,")").concat(n)}function Fy(e,t){var n="".concat(Ie.ActionTypes.DoneState,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Ly(e,t){var n="".concat(Ie.ActionTypes.DoneInvoke,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function jy(e,t){var n="".concat(Ie.ActionTypes.ErrorPlatform,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function zy(e){return{type:Ie.ActionTypes.Pure,get:e}}function Gy(e,t){return _t(function(n,r){return r},X.__assign(X.__assign({},t),{to:e}))}function Hy(e,t){return ho(function(n,r,a){return{type:pe.error,data:H.isFunction(e)?e(n,r,a):e}},X.__assign(X.__assign({},t),{to:Ie.SpecialTargets.Parent}))}function Ky(e){return{type:Ie.ActionTypes.Choose,conds:e}}function Br(e,t,n,r,a,i){i===void 0&&(i=!1);var s=X.__read(i?[[],a]:H.partition(a,function(f){return f.type===pe.assign}),2),u=s[0],c=s[1],d=u.length?H.updateContext(n,r,u,t):n,l=i?[n]:void 0,h=H.flatten(c.map(function(f){var p;switch(f.type){case pe.raise:return ji(f);case pe.send:var v=zi(f,d,r,e.options.delays);return $y.IS_PRODUCTION||H.warn(!H.isString(f.delay)||typeof v.delay=="number","No delay reference for delay expression '".concat(f.delay,"' was found on machine '").concat(e.id,"'")),v;case pe.log:return Gi(f,d,r);case pe.choose:{var g=f,m=(p=g.conds.find(function(x){var B=H.toGuard(x.cond,e.options.guards);return!B||H.evaluateGuard(e,B,d,r,t)}))===null||p===void 0?void 0:p.actions;if(!m)return[];var S=X.__read(Br(e,t,d,r,Rr(H.toArray(m),e.options.actions),i),2),w=S[0],_=S[1];return d=_,l==null||l.push(d),w}case pe.pure:{var m=f.get(d,r.data);if(!m)return[];var b=X.__read(Br(e,t,d,r,Rr(H.toArray(m),e.options.actions),i),2),C=b[0],$=b[1];return d=$,l==null||l.push(d),C}case pe.stop:return Hi(f,d,r);case pe.assign:{d=H.updateContext(d,r,[f],t),l==null||l.push(d);break}default:var A=Hn(f,e.options.actions),E=A.exec;if(E&&l){var T=l.length-1;A=X.__assign(X.__assign({},A),{exec:function(x){for(var B=[],V=1;V<arguments.length;V++)B[V-1]=arguments[V];E.apply(void 0,X.__spreadArray([l[T]],X.__read(B),!1))}})}return A}}).filter(function(f){return!!f}));return[h,d]}K.actionTypes=pe;K.after=My;var ue=K.assign=Vy;K.cancel=Oy;var qy=K.choose=Ky;K.done=Fy;K.doneInvoke=Ly;K.error=jy;K.escalate=Hy;K.forwardTo=Gy;K.getActionFunction=Or;K.initEvent=Iy;K.isActionObject=Dy;K.log=Uy;K.pure=zy;K.raise=Ty;K.resolveActions=Br;K.resolveLog=Gi;K.resolveRaise=ji;K.resolveSend=zi;K.resolveStop=Hi;K.respond=ky;K.send=_t;K.sendParent=ho;K.sendTo=Py;K.sendUpdate=Ny;K.start=Ry;var Wy=K.stop=By;K.toActionObject=Hn;K.toActionObjects=Rr;K.toActivityDefinition=po;var un=function(e){return Wy(e)},Yy=ue({attributeToVerify:function(e){}}),Jy=ue({challengeName:function(e){}}),Zy=ue({requiredAttributes:function(e){}}),mo=ue({remoteError:function(e){return""}}),go=ue({formValues:function(e){return{}}}),vo=ue({touched:function(e){return{}}}),Qy=ue({unverifiedAttributes:function(e){}}),Xy=ue({username:function(e){}}),yo=ue({validationError:function(e){return{}}}),e1=ue({challengeName:function(e,t){var n;return(n=t.data)===null||n===void 0?void 0:n.challengeName}}),t1=ue({requiredAttributes:function(e,t){var n,r;return(r=(n=t.data)===null||n===void 0?void 0:n.challengeParam)===null||r===void 0?void 0:r.requiredAttributes}}),n1=ue({redirectIntent:function(e){return"confirmPasswordReset"}}),r1=ue({redirectIntent:function(e){return"confirmSignUp"}}),Ki=ue({authAttributes:function(e,t){var n,r,a=e.loginMechanisms[0];return{username:(n=e.formValues[a])!==null&&n!==void 0?n:e.formValues.username,password:(r=e.formValues)===null||r===void 0?void 0:r.password}}}),wo=ue({validationError:function(e,t){return t.data}}),So=ue({remoteError:function(e,t){var n;return t.data.name==="NoUserPoolError"?"Configuration error (see console) \u2013 please contact the administrator":((n=t.data)===null||n===void 0?void 0:n.message)||t.data}}),o1=ue({unverifiedAttributes:function(e,t){return t.data.unverified}}),qi=ue({user:function(e,t){return t.data.user||t.data}}),a1=ue({username:function(e,t){var n=e.formValues,r=n.username,a=n.country_code;return a&&(r="".concat(a).concat(r)),r}}),i1=ue({codeDeliveryDetails:function(e,t){return t.data.codeDeliveryDetails}}),s1=ue({authAttributes:function(e,t){return{username:e.formValues.username}}}),_o=ue({formValues:function(e,t){var n,r=t.data,a=r.name,i=r.value;return R(R({},e.formValues),((n={})[a]=i,n))}}),bo=ue({formValues:function(e,t){return R(R({},e.formValues),t.data)}}),Co=ue({touched:function(e,t){var n,r=t.data.name;return R(R({},e.touched),((n={})["".concat(r)]=!0,n))}}),Wi=ue({formValues:function(e,t){var n,r,a=e.loginMechanisms[0],i=a===void 0?"username":a;if(!e.formValues.phone_number&&i!=="phone_number")return e.formValues;var s=e.formValues,u=e.country_code,c=s.phone_number?"phone_number":"username",d="".concat((r=s.country_code)!==null&&r!==void 0?r:u).concat(s[c]).replace(/[^A-Z0-9+]/gi,""),l=R(R({},s),((n={})[c]=d,n));return delete l.country_code,l}}),u1=xe,c1=Kr,l1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d1=/^\w*$/;function f1(e,t){if(u1(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||c1(e)?!0:d1.test(e)||!l1.test(e)||t!=null&&e in Object(t)}var Ao=f1,Yi=Jr,p1="Expected a function";function Eo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(p1);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var s=e.apply(this,r);return n.cache=i.set(a,s)||i,s};return n.cache=new(Eo.Cache||Yi),n}Eo.Cache=Yi;var h1=Eo,m1=h1,g1=500;function v1(e){var t=m1(e,function(r){return n.size===g1&&n.clear(),r}),n=t.cache;return t}var y1=v1,w1=y1,S1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_1=/\\(\\)?/g,b1=w1(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(S1,function(n,r,a,i){t.push(a?i.replace(_1,"$1"):r||n)}),t}),C1=b1,Ia=Rt,A1=ti,E1=xe,$1=Kr,I1=1/0,Ta=Ia?Ia.prototype:void 0,Pa=Ta?Ta.toString:void 0;function Ji(e){if(typeof e=="string")return e;if(E1(e))return A1(e,Ji)+"";if($1(e))return Pa?Pa.call(e):"";var t=e+"";return t=="0"&&1/e==-I1?"-0":t}var T1=Ji,P1=T1;function N1(e){return e==null?"":P1(e)}var k1=N1,x1=xe,U1=Ao,O1=C1,R1=k1;function B1(e,t){return x1(e)?e:U1(e,t)?[e]:O1(R1(e))}var Kn=B1,V1=Kr,D1=1/0;function M1(e){if(typeof e=="string"||V1(e))return e;var t=e+"";return t=="0"&&1/e==-D1?"-0":t}var jt=M1,F1=Kn,L1=jt;function j1(e,t){t=F1(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[L1(t[n++])];return n&&n==r?e:void 0}var $o=j1,z1=$o;function G1(e,t,n){var r=e==null?void 0:z1(e,t);return r===void 0?n:r}var Zi=G1,ke=Zi,H1=ai,K1=Ft,q1=kn,W1=xe,Y1=Bt,J1=tt.exports,Z1=On,Q1=Un,X1="[object Map]",ew="[object Set]",tw=Object.prototype,nw=tw.hasOwnProperty;function rw(e){if(e==null)return!0;if(Y1(e)&&(W1(e)||typeof e=="string"||typeof e.splice=="function"||J1(e)||Q1(e)||q1(e)))return!e.length;var t=K1(e);if(t==X1||t==ew)return!e.size;if(Z1(e))return!H1(e).length;for(var n in e)if(nw.call(e,n))return!1;return!0}var ow=rw,Vr=ow,aw=Zr,iw=Vt;function sw(e,t,n){(n!==void 0&&!iw(e[t],n)||n===void 0&&!(t in e))&&aw(e,t,n)}var Qi=sw;function uw(e){return function(t,n,r){for(var a=-1,i=Object(t),s=r(t),u=s.length;u--;){var c=s[e?u:++a];if(n(i[c],c,i)===!1)break}return t}}var cw=uw,lw=cw,dw=lw(),fw=dw,pw=Bt,hw=Ke;function mw(e){return hw(e)&&pw(e)}var gw=mw,vw=pt,yw=eo,ww=Ke,Sw="[object Object]",_w=Function.prototype,bw=Object.prototype,Xi=_w.toString,Cw=bw.hasOwnProperty,Aw=Xi.call(Object);function Ew(e){if(!ww(e)||vw(e)!=Sw)return!1;var t=yw(e);if(t===null)return!0;var n=Cw.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Xi.call(n)==Aw}var $w=Ew;function Iw(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var es=Iw,Tw=Dt,Pw=Mt;function Nw(e){return Tw(e,Pw(e))}var kw=Nw,Na=Qi,xw=yn.exports,Uw=wi,Ow=li,Rw=Si,ka=kn,xa=xe,Bw=gw,Vw=tt.exports,Dw=Gr,Mw=Fe,Fw=$w,Lw=Un,Ua=es,jw=kw;function zw(e,t,n,r,a,i,s){var u=Ua(e,n),c=Ua(t,n),d=s.get(c);if(d){Na(e,n,d);return}var l=i?i(u,c,n+"",e,t,s):void 0,h=l===void 0;if(h){var f=xa(c),p=!f&&Vw(c),v=!f&&!p&&Lw(c);l=c,f||p||v?xa(u)?l=u:Bw(u)?l=Ow(u):p?(h=!1,l=xw(c,!0)):v?(h=!1,l=Uw(c,!0)):l=[]:Fw(c)||ka(c)?(l=u,ka(u)?l=jw(u):(!Mw(u)||Dw(u))&&(l=Rw(c))):h=!1}h&&(s.set(c,l),a(l,c,r,i,s),s.delete(c)),Na(e,n,l)}var Gw=zw,Hw=Fn,Kw=Qi,qw=fw,Ww=Gw,Yw=Fe,Jw=Mt,Zw=es;function ts(e,t,n,r,a){e!==t&&qw(t,function(i,s){if(a||(a=new Hw),Yw(i))Ww(e,t,s,n,ts,r,a);else{var u=r?r(Zw(e,s),i,s+"",e,t,a):void 0;u===void 0&&(u=i),Kw(e,s,u)}},Jw)}var Qw=ts;function Xw(e){return e}var Io=Xw;function eS(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var tS=eS,nS=tS,Oa=Math.max;function rS(e,t,n){return t=Oa(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=Oa(r.length-t,0),s=Array(i);++a<i;)s[a]=r[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=r[a];return u[t]=n(s),nS(e,this,u)}}var oS=rS;function aS(e){return function(){return e}}var iS=aS,sS=iS,Ra=ci,uS=Io,cS=Ra?function(e,t){return Ra(e,"toString",{configurable:!0,enumerable:!1,value:sS(t),writable:!0})}:uS,lS=cS,dS=800,fS=16,pS=Date.now;function hS(e){var t=0,n=0;return function(){var r=pS(),a=fS-(r-n);if(n=r,a>0){if(++t>=dS)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var mS=hS,gS=lS,vS=mS,yS=vS(gS),wS=yS,SS=Io,_S=oS,bS=wS;function CS(e,t){return bS(_S(e,t,SS),e+"")}var AS=CS,ES=Vt,$S=Bt,IS=xn,TS=Fe;function PS(e,t,n){if(!TS(n))return!1;var r=typeof t;return(r=="number"?$S(n)&&IS(t,n.length):r=="string"&&t in n)?ES(n[t],e):!1}var NS=PS,kS=AS,xS=NS;function US(e){return kS(function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,s&&xS(n[0],n[1],s)&&(i=a<3?void 0:i,a=1),t=Object(t);++r<a;){var u=n[r];u&&e(t,u,r,i)}return t})}var OS=US,RS=Qw,BS=OS,VS=BS(function(e,t,n){RS(e,t,n)}),DS=VS,To=function(e,t,n,r){return q(void 0,void 0,void 0,function(){var a,i;return W(this,function(s){switch(s.label){case 0:return[4,Promise.all(r.map(function(u){return u(e,t,n)}))];case 1:return a=s.sent(),i=DS.apply(void 0,Oe([{}],a,!1)),Vr(i)?[2,Promise.resolve()]:[2,Promise.reject(i)]}})})},En={getAmplifyConfig:function(){return q(this,void 0,void 0,function(){return W(this,function(e){return[2,re.Amplify.configure()]})})},getCurrentUser:function(){return q(this,void 0,void 0,function(){return W(this,function(e){return[2,re.Auth.currentAuthenticatedUser()]})})},handleSignUp:function(e){return q(this,void 0,void 0,function(){return W(this,function(t){return[2,re.Auth.signUp(e)]})})},handleSignIn:function(e){var t=e.username,n=e.password;return q(this,void 0,void 0,function(){return W(this,function(r){return[2,re.Auth.signIn(t,n)]})})},handleConfirmSignIn:function(e){var t=e.user,n=e.code,r=e.mfaType;return q(this,void 0,void 0,function(){return W(this,function(a){return[2,re.Auth.confirmSignIn(t,n,r)]})})},handleConfirmSignUp:function(e){var t=e.username,n=e.code;return q(this,void 0,void 0,function(){return W(this,function(r){switch(r.label){case 0:return[4,re.Auth.confirmSignUp(t,n)];case 1:return[2,r.sent()]}})})},handleForgotPasswordSubmit:function(e){var t=e.username,n=e.code,r=e.password;return q(this,void 0,void 0,function(){return W(this,function(a){return[2,re.Auth.forgotPasswordSubmit(t,n,r)]})})},handleForgotPassword:function(e){return q(this,void 0,void 0,function(){return W(this,function(t){return[2,re.Auth.forgotPassword(e)]})})},validateCustomSignUp:function(e,t){return q(this,void 0,void 0,function(){return W(this,function(n){return[2]})})},validateFormPassword:function(e,t,n){return q(this,void 0,void 0,function(){var r,a,i,s;return W(this,function(u){return r=e.password,t.password&&n?(a=[],i=+(n==null?void 0:n.passwordPolicyMinLength),r.length<i&&a.push("Password must have at least ".concat(i," characters")),(s=n==null?void 0:n.passwordPolicyCharacters)==null||s.forEach(function(c){switch(c){case"REQUIRES_LOWERCASE":/[a-z]/.test(r)||a.push("Password must have lower case letters");break;case"REQUIRES_UPPERCASE":/[A-Z]/.test(r)||a.push("Password must have upper case letters");break;case"REQUIRES_NUMBERS":/[0-9]/.test(r)||a.push("Password must have numbers");break;case"REQUIRES_SYMBOLS":/[\W]/.test(r)||a.push("Password must have special characters")}}),[2,a.length!==0?{password:a}:null]):[2,null]})})},validateConfirmPassword:function(e,t){return q(this,void 0,void 0,function(){var n,r,a,i;return W(this,function(s){return n=e.password,r=e.confirm_password,a=t.confirm_password,i=t.password,n||r?(n||r)&&n!==r&&(a&&i||(n==null?void 0:n.length)>=6&&(r==null?void 0:r.length)>=6)?[2,{confirm_password:"Your passwords must match"}]:[2]:[2,null]})})},validatePreferredUsername:function(e,t){return q(this,void 0,void 0,function(){return W(this,function(n){return[2]})})}};function MS(e){var t=e.services;return Lt({initial:"init",id:"signInActor",states:{init:{always:[{target:"signIn"}]},signIn:{initial:"edit",exit:["clearFormValues","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},FEDERATED_SIGN_IN:"federatedSignIn"}},federatedSignIn:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"federatedSignIn",onError:{actions:"setRemoteError"}}},submit:{tags:["pending"],entry:["parsePhoneNumber","clearError","sendUpdate"],invoke:{src:"signIn",onDone:[{cond:"shouldSetupTOTP",actions:["setUser","setChallengeName"],target:"#signInActor.setupTOTP"},{cond:"shouldConfirmSignIn",actions:["setUser","setChallengeName"],target:"#signInActor.confirmSignIn"},{cond:"shouldForceChangePassword",actions:["setUser","setChallengeName","setRequiredAttributes"],target:"#signInActor.forceNewPassword"},{actions:"setUser",target:"verifying"}],onError:[{cond:"shouldRedirectToConfirmSignUp",actions:["setCredentials","setConfirmSignUpIntent"],target:"rejected"},{cond:"shouldRedirectToConfirmResetPassword",actions:["setUsernameAuthAttributes","setConfirmResetPasswordIntent"],target:"rejected"},{actions:"setRemoteError",target:"edit"}]}},verifying:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"checkVerifiedContact",onDone:[{cond:"shouldRequestVerification",target:"#signInActor.verifyUser",actions:"setUnverifiedAttributes"},{target:"resolved"}],onError:{actions:"setRemoteError",target:"edit"}}},resolved:{always:"#signInActor.resolved"},rejected:{always:"#signInActor.rejected"}}},confirmSignIn:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"confirmSignIn",onDone:{target:"#signInActor.resolved",actions:["setUser","clearChallengeName","clearRequiredAttributes"]},onError:{target:"edit",actions:"setRemoteError"}}}}},forceNewPassword:{type:"parallel",exit:["clearFormValues","clearError","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateFields",onDone:{target:"valid",actions:"clearValidationError"},onError:{target:"invalid",actions:"setFieldErrors"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submit:{initial:"idle",entry:"clearError",states:{idle:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"}}},validate:{entry:"sendUpdate",invoke:{src:"validateFields",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},pending:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"forceNewPassword",onDone:[{cond:"shouldConfirmSignIn",actions:["setUser","setChallengeName"],target:"#signInActor.confirmSignIn"},{cond:"shouldSetupTOTP",actions:["setUser","setChallengeName"],target:"#signInActor.setupTOTP"},{target:"resolved",actions:["setUser","setCredentials"]}],onError:{target:"idle",actions:"setRemoteError"}}},resolved:{type:"final",always:"#signInActor.resolved"}}}}},setupTOTP:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"verifyTotpToken",onDone:{actions:["setUser","clearChallengeName","clearRequiredAttributes"],target:"#signInActor.resolved"},onError:{actions:"setRemoteError",target:"edit"}}}}},verifyUser:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SKIP:"#signInActor.resolved",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:"clearError",invoke:{src:"verifyUser",onDone:{target:"#signInActor.confirmVerifyUser"},onError:{actions:"setRemoteError",target:"edit"}}}}},confirmVerifyUser:{initial:"edit",exit:["clearFormValues","clearError","clearUnverifiedAttributes","clearAttributeToVerify","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SKIP:"#signInActor.resolved",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:"clearError",invoke:{src:"confirmVerifyUser",onDone:{target:"#signInActor.resolved"},onError:{actions:"setRemoteError",target:"edit"}}}}},resolved:{type:"final",data:function(n){return{user:n.user}}},rejected:{type:"final",data:function(n,r){return{intent:n.redirectIntent,authAttributes:n.authAttributes}}}}},{actions:{clearAttributeToVerify:Yy,clearChallengeName:Jy,clearRequiredAttributes:Zy,clearError:mo,clearFormValues:go,clearTouched:vo,clearUnverifiedAttributes:Qy,clearValidationError:yo,handleInput:_o,handleSubmit:bo,handleBlur:Co,parsePhoneNumber:Wi,setChallengeName:e1,setConfirmResetPasswordIntent:n1,setConfirmSignUpIntent:r1,setRequiredAttributes:t1,setCredentials:Ki,setFieldErrors:wo,setRemoteError:So,setUnverifiedAttributes:o1,setUser:qi,setUsernameAuthAttributes:s1,sendUpdate:co()},guards:{shouldConfirmSignIn:function(n,r){var a=ke(r,"data.challengeName");return[He.SMS_MFA,He.SOFTWARE_TOKEN_MFA].includes(a)},shouldRedirectToConfirmSignUp:function(n,r){return r.data.code==="UserNotConfirmedException"},shouldRedirectToConfirmResetPassword:function(n,r){return r.data.code==="PasswordResetRequiredException"},shouldSetupTOTP:function(n,r){return ke(r,"data.challengeName")===He.MFA_SETUP},shouldForceChangePassword:function(n,r){return ke(r,"data.challengeName")===He.NEW_PASSWORD_REQUIRED},shouldRequestVerification:function(n,r){var a=r.data,i=a.unverified,s=a.verified;return Vr(s)&&!Vr(i)}},services:{signIn:function(n){return q(this,void 0,void 0,function(){var r,a,i;return W(this,function(s){switch(s.label){case 0:return r=n.formValues,a=r.username,i=r.password,[4,t.handleSignIn({username:a,password:i})];case 1:return[2,s.sent()]}})})},confirmSignIn:function(n,r){return q(this,void 0,void 0,function(){var a,i,s,u;return W(this,function(c){switch(c.label){case 0:return a=n.challengeName,i=n.user,s=n.formValues.confirmation_code,a!==He.SMS_MFA&&a!==He.SOFTWARE_TOKEN_MFA||(u=a),[4,t.handleConfirmSignIn({user:i,code:s,mfaType:u})];case 1:return c.sent(),[4,re.Auth.currentAuthenticatedUser()];case 2:return[2,c.sent()]}})})},forceNewPassword:function(n,r){return q(this,void 0,void 0,function(){var a,i,s,u,c,d,l,h,f;return W(this,function(p){switch(p.label){case 0:a=n.user,i=n.formValues,s=i.password,u=i.phone_number,c=i.country_code,d=ii(i,["password","confirm_password","phone_number","country_code"]),u&&(l="".concat(c).concat(u).replace(/[^A-Z0-9+]/gi,""),d=R(R({},d),{phone_number:l})),p.label=1;case 1:return p.trys.push([1,3,,4]),[4,re.Auth.completeNewPassword(a,s,d)];case 2:return(h=p.sent()).challengeName?[2,h]:[2,re.Auth.currentAuthenticatedUser()];case 3:return f=p.sent(),[2,Promise.reject(f)];case 4:return[2]}})})},verifyTotpToken:function(n,r){return q(this,void 0,void 0,function(){var a,i;return W(this,function(s){return a=n.user,i=n.formValues.confirmation_code,[2,re.Auth.verifyTotpToken(a,i)]})})},federatedSignIn:function(n,r){return q(this,void 0,void 0,function(){var a;return W(this,function(i){switch(i.label){case 0:return a=r.data.provider,[4,re.Auth.federatedSignIn({provider:a})];case 1:return[2,i.sent()]}})})},checkVerifiedContact:function(n,r){return q(this,void 0,void 0,function(){var a;return W(this,function(i){switch(i.label){case 0:return a=n.user,[4,re.Auth.verifiedContact(a)];case 1:return[2,i.sent()]}})})},verifyUser:function(n,r){return q(this,void 0,void 0,function(){var a,i;return W(this,function(s){switch(s.label){case 0:return a=n.formValues.unverifiedAttr,[4,re.Auth.verifyCurrentUserAttribute(a)];case 1:return i=s.sent(),n.attributeToVerify=a,[2,i]}})})},confirmVerifyUser:function(n,r){return q(this,void 0,void 0,function(){var a,i;return W(this,function(s){switch(s.label){case 0:return a=n.attributeToVerify,i=n.formValues.confirmation_code,[4,re.Auth.verifyCurrentUserAttributeSubmit(a,i)];case 1:return[2,s.sent()]}})})},validateFields:function(n,r){return q(this,void 0,void 0,function(){return W(this,function(a){return[2,To(n.formValues,n.touched,n.passwordSettings,[En.validateConfirmPassword])]})})}}})}var FS=Lt({initial:"pending",id:"signOutActor",states:{pending:{tags:["pending"],invoke:{src:"signOut",onDone:"resolved",onError:"rejected"}},resolved:{type:"final"},rejected:{type:"final"}}},{services:{signOut:function(){return re.Auth.signOut()}}});function LS(e){var t=e.services;return Lt({id:"resetPasswordActor",initial:"init",states:{init:{always:[{target:"confirmResetPassword",cond:"shouldAutoConfirmReset"},{target:"resetPassword"}]},resetPassword:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},submit:{tags:["pending"],entry:["sendUpdate","setUsername","clearError"],invoke:{src:"resetPassword",onDone:{target:"#resetPasswordActor.confirmResetPassword"},onError:{actions:["setRemoteError"],target:"edit"}}}}},confirmResetPassword:{type:"parallel",exit:["clearFormValues","clearError","clearUsername","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateFields",onDone:{target:"valid",actions:"clearValidationError"},onError:{target:"invalid",actions:"setFieldErrors"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"},RESEND:"resendCode",CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},validate:{entry:"sendUpdate",invoke:{src:"validateFields",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},resendCode:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"resetPassword",onDone:{target:"idle"},onError:{actions:"setRemoteError",target:"idle"}}},pending:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"confirmResetPassword",onDone:{actions:"clearUsername",target:"#resetPasswordActor.resolved"},onError:{actions:"setRemoteError",target:"idle"}}}}}}},resolved:{type:"final"}}},{actions:{clearError:mo,clearFormValues:go,clearTouched:vo,clearUsername:Xy,clearValidationError:yo,handleInput:_o,handleSubmit:bo,handleBlur:Co,setFieldErrors:wo,setRemoteError:So,setUsername:a1,sendUpdate:co()},guards:{shouldAutoConfirmReset:function(n,r){return!(!n.intent||n.intent!=="confirmPasswordReset")}},services:{resetPassword:function(n){return q(this,void 0,void 0,function(){var r;return W(this,function(a){return r=n.username,[2,t.handleForgotPassword(r)]})})},confirmResetPassword:function(n){return q(this,void 0,void 0,function(){var r,a,i,s;return W(this,function(u){return r=n.username,a=n.formValues,i=a.confirmation_code,s=a.password,[2,t.handleForgotPasswordSubmit({username:r,code:i,password:s})]})})},validateFields:function(n,r){return q(this,void 0,void 0,function(){return W(this,function(a){return[2,To(n.formValues,n.touched,n.passwordSettings,[En.validateConfirmPassword])]})})}}})}var jS="__lodash_hash_undefined__";function zS(e){return this.__data__.set(e,jS),this}var GS=zS;function HS(e){return this.__data__.has(e)}var KS=HS,qS=Jr,WS=GS,YS=KS;function $n(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new qS;++t<n;)this.add(e[t])}$n.prototype.add=$n.prototype.push=WS;$n.prototype.has=YS;var JS=$n;function ZS(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var QS=ZS;function XS(e,t){return e.has(t)}var e_=XS,t_=JS,n_=QS,r_=e_,o_=1,a_=2;function i_(e,t,n,r,a,i){var s=n&o_,u=e.length,c=t.length;if(u!=c&&!(s&&c>u))return!1;var d=i.get(e),l=i.get(t);if(d&&l)return d==t&&l==e;var h=-1,f=!0,p=n&a_?new t_:void 0;for(i.set(e,t),i.set(t,e);++h<u;){var v=e[h],g=t[h];if(r)var m=s?r(g,v,h,t,e,i):r(v,g,h,e,t,i);if(m!==void 0){if(m)continue;f=!1;break}if(p){if(!n_(t,function(S,w){if(!r_(p,w)&&(v===S||a(v,S,n,r,i)))return p.push(w)})){f=!1;break}}else if(!(v===g||a(v,g,n,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var ns=i_;function s_(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}var u_=s_;function c_(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var l_=c_,Ba=Rt,Va=yi,d_=Vt,f_=ns,p_=u_,h_=l_,m_=1,g_=2,v_="[object Boolean]",y_="[object Date]",w_="[object Error]",S_="[object Map]",__="[object Number]",b_="[object RegExp]",C_="[object Set]",A_="[object String]",E_="[object Symbol]",$_="[object ArrayBuffer]",I_="[object DataView]",Da=Ba?Ba.prototype:void 0,cr=Da?Da.valueOf:void 0;function T_(e,t,n,r,a,i,s){switch(n){case I_:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case $_:return!(e.byteLength!=t.byteLength||!i(new Va(e),new Va(t)));case v_:case y_:case __:return d_(+e,+t);case w_:return e.name==t.name&&e.message==t.message;case b_:case A_:return e==t+"";case S_:var u=p_;case C_:var c=r&m_;if(u||(u=h_),e.size!=t.size&&!c)return!1;var d=s.get(e);if(d)return d==t;r|=g_,s.set(e,t);var l=f_(u(e),u(t),r,a,i,s);return s.delete(e),l;case E_:if(cr)return cr.call(e)==cr.call(t)}return!1}var P_=T_,Ma=mi,N_=1,k_=Object.prototype,x_=k_.hasOwnProperty;function U_(e,t,n,r,a,i){var s=n&N_,u=Ma(e),c=u.length,d=Ma(t),l=d.length;if(c!=l&&!s)return!1;for(var h=c;h--;){var f=u[h];if(!(s?f in t:x_.call(t,f)))return!1}var p=i.get(e),v=i.get(t);if(p&&v)return p==t&&v==e;var g=!0;i.set(e,t),i.set(t,e);for(var m=s;++h<c;){f=u[h];var S=e[f],w=t[f];if(r)var _=s?r(w,S,f,t,e,i):r(S,w,f,e,t,i);if(!(_===void 0?S===w||a(S,w,n,r,i):_)){g=!1;break}m||(m=f=="constructor")}if(g&&!m){var b=e.constructor,C=t.constructor;b!=C&&"constructor"in e&&"constructor"in t&&!(typeof b=="function"&&b instanceof b&&typeof C=="function"&&C instanceof C)&&(g=!1)}return i.delete(e),i.delete(t),g}var O_=U_,lr=Fn,R_=ns,B_=P_,V_=O_,Fa=Ft,La=xe,ja=tt.exports,D_=Un,M_=1,za="[object Arguments]",Ga="[object Array]",cn="[object Object]",F_=Object.prototype,Ha=F_.hasOwnProperty;function L_(e,t,n,r,a,i){var s=La(e),u=La(t),c=s?Ga:Fa(e),d=u?Ga:Fa(t);c=c==za?cn:c,d=d==za?cn:d;var l=c==cn,h=d==cn,f=c==d;if(f&&ja(e)){if(!ja(t))return!1;s=!0,l=!1}if(f&&!l)return i||(i=new lr),s||D_(e)?R_(e,t,n,r,a,i):B_(e,t,c,n,r,a,i);if(!(n&M_)){var p=l&&Ha.call(e,"__wrapped__"),v=h&&Ha.call(t,"__wrapped__");if(p||v){var g=p?e.value():e,m=v?t.value():t;return i||(i=new lr),a(g,m,n,r,i)}}return f?(i||(i=new lr),V_(e,t,n,r,a,i)):!1}var j_=L_,z_=j_,Ka=Ke;function rs(e,t,n,r,a){return e===t?!0:e==null||t==null||!Ka(e)&&!Ka(t)?e!==e&&t!==t:z_(e,t,n,r,rs,a)}var os=rs,G_=Fn,H_=os,K_=1,q_=2;function W_(e,t,n,r){var a=n.length,i=a,s=!r;if(e==null)return!i;for(e=Object(e);a--;){var u=n[a];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<i;){u=n[a];var c=u[0],d=e[c],l=u[1];if(s&&u[2]){if(d===void 0&&!(c in e))return!1}else{var h=new G_;if(r)var f=r(d,l,c,e,t,h);if(!(f===void 0?H_(l,d,K_|q_,r,h):f))return!1}}return!0}var Y_=W_,J_=Fe;function Z_(e){return e===e&&!J_(e)}var as=Z_,Q_=as,X_=Rn;function eb(e){for(var t=X_(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,Q_(a)]}return t}var tb=eb;function nb(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var is=nb,rb=Y_,ob=tb,ab=is;function ib(e){var t=ob(e);return t.length==1&&t[0][2]?ab(t[0][0],t[0][1]):function(n){return n===e||rb(n,e,t)}}var sb=ib;function ub(e,t){return e!=null&&t in Object(e)}var cb=ub,lb=Kn,db=kn,fb=xe,pb=xn,hb=Hr,mb=jt;function gb(e,t,n){t=lb(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var s=mb(t[r]);if(!(i=e!=null&&n(e,s)))break;e=e[s]}return i||++r!=a?i:(a=e==null?0:e.length,!!a&&hb(a)&&pb(s,a)&&(fb(e)||db(e)))}var vb=gb,yb=cb,wb=vb;function Sb(e,t){return e!=null&&wb(e,t,yb)}var _b=Sb,bb=os,Cb=Zi,Ab=_b,Eb=Ao,$b=as,Ib=is,Tb=jt,Pb=1,Nb=2;function kb(e,t){return Eb(e)&&$b(t)?Ib(Tb(e),t):function(n){var r=Cb(n,e);return r===void 0&&r===t?Ab(n,e):bb(t,r,Pb|Nb)}}var xb=kb;function Ub(e){return function(t){return t==null?void 0:t[e]}}var Ob=Ub,Rb=$o;function Bb(e){return function(t){return Rb(t,e)}}var Vb=Bb,Db=Ob,Mb=Vb,Fb=Ao,Lb=jt;function jb(e){return Fb(e)?Db(Lb(e)):Mb(e)}var zb=jb,Gb=sb,Hb=xb,Kb=Io,qb=xe,Wb=zb;function Yb(e){return typeof e=="function"?e:e==null?Kb:typeof e=="object"?qb(e)?Hb(e[0],e[1]):Gb(e):Wb(e)}var Jb=Yb,Zb=Qr,Qb=Kn,Xb=xn,qa=Fe,e0=jt;function t0(e,t,n,r){if(!qa(e))return e;t=Qb(t,e);for(var a=-1,i=t.length,s=i-1,u=e;u!=null&&++a<i;){var c=e0(t[a]),d=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(a!=s){var l=u[c];d=r?r(l,c,u):void 0,d===void 0&&(d=qa(l)?l:Xb(t[a+1])?[]:{})}Zb(u,c,d),u=u[c]}return e}var n0=t0,r0=$o,o0=n0,a0=Kn;function i0(e,t,n){for(var r=-1,a=t.length,i={};++r<a;){var s=t[r],u=r0(e,s);n(u,s)&&o0(i,a0(s,e),u)}return i}var s0=i0,u0=ti,c0=Jb,l0=s0,d0=gi;function f0(e,t){if(e==null)return{};var n=u0(d0(e),function(r){return[r]});return t=c0(t),l0(e,n,function(r,a){return t(r,a[0])})}var p0=f0;function h0(e){var t=e.services;return Lt({id:"signUpActor",initial:"init",states:{init:{always:[{target:"confirmSignUp",cond:"shouldInitConfirmSignUp"},{target:"signUp"}]},signUp:{type:"parallel",exit:["clearError","clearFormValues","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateSignUp",onDone:{target:"valid",actions:"clearValidationError"},onError:{target:"invalid",actions:"setFieldErrors"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"},FEDERATED_SIGN_IN:"federatedSignIn"}},federatedSignIn:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"federatedSignIn",onDone:"#signUpActor.resolved",onError:{actions:"setRemoteError"}}},validate:{entry:"sendUpdate",invoke:{src:"validateSignUp",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},pending:{tags:["pending"],entry:["parsePhoneNumber","sendUpdate","clearError"],invoke:{src:"signUp",onDone:[{cond:"shouldSkipConfirm",target:"skipConfirm",actions:["setUser"]},{target:"resolved",actions:["setUser","setCredentials","setCodeDeliveryDetails"]}],onError:{target:"idle",actions:"setRemoteError"}}},skipConfirm:{invoke:{src:"signIn",onDone:{target:"#signUpActor.resolved",actions:"setUser"},onError:{target:"idle",actions:"setRemoteError"}}},resolved:{type:"final",always:"#signUpActor.confirmSignUp"}}}}},confirmSignUp:{initial:"edit",states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"},RESEND:"resend"}},resend:{tags:["pending"],entry:"sendUpdate",invoke:{src:"resendConfirmationCode",onDone:{target:"edit"},onError:[{target:"#signUpActor.resolved",actions:"setUser",cond:"isUserAlreadyConfirmed"},{target:"edit",actions:"setRemoteError"}]}},submit:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"confirmSignUp",onDone:{target:"#signUpActor.resolved",actions:["setUser"]},onError:{target:"edit",actions:"setRemoteError"}}}}},resolved:{type:"final",data:function(n,r){var a=n.authAttributes,i=a.username,s=a.password;return{user:ke(r,"data.user")||n.user,authAttributes:{username:i,password:s}}}}}},{guards:{isUserAlreadyConfirmed:function(n,r){return r.data.message==="User is already confirmed."},shouldInitConfirmSignUp:function(n){return n.intent&&n.intent==="confirmSignUp"},shouldSkipConfirm:function(n,r){return r.data.userConfirmed}},actions:{clearError:mo,clearFormValues:go,clearTouched:vo,clearValidationError:yo,handleInput:_o,handleSubmit:bo,handleBlur:Co,parsePhoneNumber:Wi,setCredentials:Ki,setFieldErrors:wo,setRemoteError:So,setCodeDeliveryDetails:i1,setUser:qi,sendUpdate:co()},services:{signIn:function(n,r){return q(this,void 0,void 0,function(){var a,i,s,u,c;return W(this,function(d){switch(d.label){case 0:return a=n.user,i=n.authAttributes,s=n.formValues,u=ke(a,"username")||ke(i,"username"),c=ke(s,"password"),[4,re.Auth.signIn(u,c)];case 1:return[2,d.sent()]}})})},confirmSignUp:function(n,r){return q(this,void 0,void 0,function(){var a,i,s,u,c,d;return W(this,function(l){switch(l.label){case 0:return a=n.user,i=n.authAttributes,s=n.formValues,u=s.confirmation_code,c=ke(a,"username")||ke(i,"username"),d=i.password,[4,t.handleConfirmSignUp({username:c,code:u})];case 1:return l.sent(),[4,re.Auth.signIn(c,d)];case 2:return[2,l.sent()]}})})},resendConfirmationCode:function(n,r){return q(this,void 0,void 0,function(){var a,i,s;return W(this,function(u){return a=n.user,i=n.authAttributes,s=ke(a,"username")||ke(i,"username"),[2,re.Auth.resendSignUp(s)]})})},federatedSignIn:function(n,r){return q(this,void 0,void 0,function(){var a;return W(this,function(i){switch(i.label){case 0:return a=r.data.provider,[4,re.Auth.federatedSignIn({provider:a})];case 1:return[2,i.sent()]}})})},signUp:function(n,r){return q(this,void 0,void 0,function(){var a,i,s,u,c,d,l;return W(this,function(h){switch(h.label){case 0:return a=n.formValues,i=n.loginMechanisms,s=i[0],c=(u=a)[s===void 0?"username":s],d=u.password,l=p0(a,function(f,p){switch(p){case"address":case"birthdate":case"email":case"family_name":case"gender":case"given_name":case"locale":case"middle_name":case"name":case"nickname":case"phone_number":case"picture":case"preferred_username":case"profile":case"updated_at":case"website":case"zoneinfo":return!0;default:return p.startsWith("custom:")}}),[4,t.handleSignUp({username:c,password:d,attributes:l})];case 1:return[2,h.sent()]}})})},validateSignUp:function(n,r){return q(this,void 0,void 0,function(){return W(this,function(a){return[2,To(n.formValues,n.touched,n.passwordSettings,[t.validateFormPassword,t.validateConfirmPassword,t.validatePreferredUsername,t.validateCustomSignUp])]})})}}})}function m0(){return Lt({id:"authenticator",initial:"idle",context:{user:void 0,config:{},services:En,actorRef:void 0,hasSetup:!1},states:{idle:{invoke:{src:"getCurrentUser",onDone:{actions:"setUser",target:"authenticated"},onError:{target:"setup"}}},setup:{initial:"waitConfig",states:{waitConfig:{on:{INIT:{actions:["configure","setHasSetup"],target:"applyConfig"}}},applyConfig:{invoke:{src:"getAmplifyConfig",onDone:{actions:"applyAmplifyConfig",target:"goToInitialState"}}},goToInitialState:{always:[{target:"#authenticator.signUp",cond:"isInitialStateSignUp"},{target:"#authenticator.resetPassword",cond:"isInitialStateResetPassword"},{target:"#authenticator.signIn"}]}}},signIn:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignInActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:"stopSignInActor"}},on:{SIGN_UP:"signUp",RESET_PASSWORD:"resetPassword","done.invoke.signInActor":[{target:"signUp",actions:"setActorDoneData",cond:"shouldRedirectToSignUp"},{target:"resetPassword",actions:"setActorDoneData",cond:"shouldRedirectToResetPassword"},{target:"authenticated",actions:"setActorDoneData"}]}},signUp:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignUpActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:"stopSignUpActor"},autoSignIn:{invoke:{src:"getCurrentUser",onDone:"#authenticator.authenticated",onError:"#authenticator.setup.goToInitialState"}}},on:{SIGN_IN:"signIn","done.invoke.signUpActor":{target:"signUp.autoSignIn",actions:"setActorDoneData"}}},resetPassword:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnResetPasswordActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:"stopResetPasswordActor"}},on:{SIGN_IN:"signIn","done.invoke.resetPasswordActor":{target:"signIn",actions:"setActorDoneData"}}},signOut:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignOutActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:["stopSignOutActor","clearUser"]}},on:{"done.invoke.signOutActor":[{target:"setup",cond:"shouldSetup"},{target:"setup.goToInitialState"}]}},authenticated:{initial:"idle",states:{idle:{on:{TOKEN_REFRESH:"refreshUser"}},refreshUser:{invoke:{src:"getCurrentUser",onDone:{actions:"setUser",target:"idle"},onError:{target:"#authenticator.signOut"}}}},on:{SIGN_OUT:"signOut"}}},on:{CHANGE:{actions:"forwardToActor"},BLUR:{actions:"forwardToActor"},SUBMIT:{actions:"forwardToActor"},FEDERATED_SIGN_IN:{actions:"forwardToActor"},RESEND:{actions:"forwardToActor"},SIGN_IN:{actions:"forwardToActor"},SKIP:{actions:"forwardToActor"}}},{actions:{forwardToActor:qy([{cond:"hasActor",actions:ny(function(e){return e.actorRef})}]),setUser:Pe({user:function(e,t){return t.data}}),setActorDoneData:Pe({actorDoneData:function(e,t){var n,r;return{authAttributes:R({},(n=t.data)===null||n===void 0?void 0:n.authAttributes),intent:(r=t.data)===null||r===void 0?void 0:r.intent}},user:function(e,t){var n;return(n=t.data)===null||n===void 0?void 0:n.user}}),clearUser:Pe({user:void 0}),clearActorDoneData:Pe({actorDoneData:void 0}),applyAmplifyConfig:Pe({config:function(e,t){var n,r,a,i,s,u,c,d,l,h=(r=(n=t.data.aws_cognito_username_attributes)===null||n===void 0?void 0:n.map(function(C){return C.toLowerCase()}))!==null&&r!==void 0?r:[],f=(i=(a=t.data.aws_cognito_verification_mechanisms)===null||a===void 0?void 0:a.map(function(C){return C.toLowerCase()}))!==null&&i!==void 0?i:[],p=(u=(s=t.data.aws_cognito_signup_attributes)===null||s===void 0?void 0:s.map(function(C){return C.toLowerCase()}))!==null&&u!==void 0?u:[],v=(d=(c=t.data.aws_cognito_social_providers)===null||c===void 0?void 0:c.map(function(C){return C.toLowerCase()}))!==null&&d!==void 0?d:[],g=t.data.aws_cognito_password_protection_settings||{};h.length===0&&h.push("username");var m=e.config,S=m.loginMechanisms,w=m.signUpAttributes,_=m.socialProviders,b=m.initialState;return{loginMechanisms:S!=null?S:h,formFields:(l=g0(m.formFields))!==null&&l!==void 0?l:{},passwordSettings:g,signUpAttributes:w!=null?w:Array.from(new Set(Oe(Oe([],f,!0),p,!0))),socialProviders:_!=null?_:v.sort(),initialState:b}}}),spawnSignInActor:Pe({actorRef:function(e,t){var n,r,a,i,s,u=e.services,c=MS({services:u}).withContext({authAttributes:(n=e.actorDoneData)===null||n===void 0?void 0:n.authAttributes,user:e.user,intent:(r=e.actorDoneData)===null||r===void 0?void 0:r.intent,country_code:"+1",formValues:{},touched:{},validationError:{},loginMechanisms:(a=e.config)===null||a===void 0?void 0:a.loginMechanisms,socialProviders:(i=e.config)===null||i===void 0?void 0:i.socialProviders,formFields:(s=e.config)===null||s===void 0?void 0:s.formFields});return on(c,{name:"signInActor"})}}),spawnSignUpActor:Pe({actorRef:function(e,t){var n,r,a,i,s,u,c,d=e.services,l=h0({services:d}).withContext({authAttributes:(r=(n=e.actorDoneData)===null||n===void 0?void 0:n.authAttributes)!==null&&r!==void 0?r:{},country_code:"+1",intent:(a=e.actorDoneData)===null||a===void 0?void 0:a.intent,formValues:{},touched:{},validationError:{},loginMechanisms:(i=e.config)===null||i===void 0?void 0:i.loginMechanisms,socialProviders:(s=e.config)===null||s===void 0?void 0:s.socialProviders,formFields:(u=e.config)===null||u===void 0?void 0:u.formFields,passwordSettings:(c=e.config)===null||c===void 0?void 0:c.passwordSettings});return on(l,{name:"signUpActor"})}}),spawnResetPasswordActor:Pe({actorRef:function(e,t){var n,r,a,i,s=e.services,u=LS({services:s}).withContext({formValues:{},touched:{},intent:(n=e.actorDoneData)===null||n===void 0?void 0:n.intent,username:(a=(r=e.actorDoneData)===null||r===void 0?void 0:r.authAttributes)===null||a===void 0?void 0:a.username,formFields:(i=e.config)===null||i===void 0?void 0:i.formFields,validationError:{}});return on(u,{name:"resetPasswordActor"})}}),spawnSignOutActor:Pe({actorRef:function(e){var t=FS.withContext({user:e.user});return on(t,{name:"signOutActor"})}}),stopSignInActor:un("signInActor"),stopSignUpActor:un("signUpActor"),stopResetPasswordActor:un("resetPasswordActor"),stopSignOutActor:un("signOutActor"),configure:Pe(function(e,t){var n=t.data,r=n.services,a=ii(n,["services"]);return{services:R(R({},En),r),config:a}}),setHasSetup:Pe({hasSetup:!0})},guards:{isInitialStateSignUp:function(e){return e.config.initialState==="signUp"},isInitialStateResetPassword:function(e){return e.config.initialState==="resetPassword"},shouldRedirectToSignUp:function(e,t){var n;return((n=t.data)===null||n===void 0?void 0:n.intent)==="confirmSignUp"},shouldRedirectToResetPassword:function(e,t){var n;return((n=t.data)===null||n===void 0?void 0:n.intent)==="confirmPasswordReset"},shouldSetup:function(e){return e.hasSetup===!1},hasActor:function(e){return!!e.actorRef}},services:{getCurrentUser:function(e,t){return e.services.getCurrentUser()},getAmplifyConfig:function(e,t){return e.services.getAmplifyConfig()}}})}function g0(e){return e&&Object.keys(e).forEach(function(t){Object.keys(e[t]).forEach(function(n){var r=e[t][n];r.required=r.isRequired})}),e}var In=globalThis&&globalThis.__assign||function(){return In=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},In.apply(this,arguments)},v0=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function y0(e,t,n){if(typeof e=="object")return e;var r=function(){};return{next:e,error:t||r,complete:n||r}}function w0(e,t,n){t===void 0&&(t={});var r=typeof e=="function"?e():e,a=t.context,i=t.guards,s=t.actions,u=t.activities,c=t.services,d=t.delays,l=t.state,h=v0(t,["context","guards","actions","activities","services","delays","state"]),f={context:a,guards:i,actions:s,activities:u,services:c,delays:d},p=r.withConfig(f,function(){return In(In({},r.context),a)}),v=Fi(p,h).start(l?Ue.create(l):void 0),g;return o.onMounted(function(){n&&(g=v.subscribe(y0(n)))}),o.onBeforeUnmount(function(){v.stop(),g==null||g.unsubscribe()}),v}function S0(e){return"state"in e}var Wa=function(){};function _0(e){return"getSnapshot"in e?e.getSnapshot():S0(e)?e.state:void 0}function ss(e,t){t===void 0&&(t=_0);var n=o.isRef(e)?e:o.shallowRef(e),r=o.shallowRef(t(n.value)),a=function(i){n.value.send(i)};return o.watch(n,function(i,s,u){r.value=t(i);var c=i.subscribe({next:function(d){return r.value=d},error:Wa,complete:Wa}).unsubscribe;u(function(){return c()})},{immediate:!0}),{state:r,send:a}}const us={error:"",hasValidationErrors:!1,isPending:!1,route:"",authStatus:"",user:"",validationErrors:{val:""},codeDeliveryDetails:{val:""},change:e=>null,updateForm:e=>null,updateBlur:e=>null,resend:e=>null,resendCode:e=>null,signOut:e=>null,federatedSignIn:e=>null,toFederatedSignIn:e=>null,resetPassword:e=>null,toResetPassword:e=>null,signIn:e=>null,toSignIn:e=>null,signUp:e=>null,toSignUp:e=>null,skip:e=>null,skipVerification:e=>null,submit:e=>null,submitForm:e=>null},Dr=o.ref();let vn=o.reactive(At(Ct({},us),{send:"",state:""}));const Ce=e=>(e&&(Dr.value=e),ss(Dr.value)),b0=()=>(Ya(),o.watchEffect(()=>{Ya()}),vn),Ae=b0;function Ya(){if(!Dr.value)return;const{state:e,send:t}=Ce(),n=si({send:t,state:e.value});for(const r of Object.keys(us))vn[r]=n[r];vn.send=t,vn.state=e}const ln=o.defineComponent({props:{provider:String},setup(e){const{provider:t}=e,{send:n}=Ce(),r=a=>{n({type:"FEDERATED_SIGN_IN",data:{provider:t}})};return(a,i)=>{const s=ge,u=Se;return o.openBlock(),o.createBlock(u,{class:"amplify-field-group__control federated-sign-in-button amplify-authenticator__font",fullwidth:!1,style:{"font-weight":"normal"},type:"button",onClick:r},{default:o.withCtx(()=>[o.createVNode(s,{class:"amplify-flex federated-sign-in-button-row amplify-authenticator__sign-in-button-wrapper"},{default:o.withCtx(()=>[o.renderSlot(a.$slots,"default")]),_:3})]),_:3})}}}),C0=o.createElementVNode("svg",{"aria-label":"Amazon icon",class:"amplify-icon federated-sign-in-icon",viewBox:"0 0 248 268"},[o.createElementVNode("path",{d:"M139.056521,147.024612 C133.548808,156.744524 124.782731,162.726926 115.087401,162.726926 C101.790721,162.726926 93.9937779,152.612964 93.9937779,137.68681 C93.9937779,108.224571 120.447551,102.879017 145.533369,102.879017 L145.533369,110.365976 C145.533369,123.831358 145.876354,135.063787 139.056521,147.024612 M207.206992,162.579655 C209.400505,165.692256 209.887066,169.437725 207.063416,171.770186 C199.996315,177.653081 187.429476,188.590967 180.513926,194.716661 L180.46208,194.621133 C178.176838,196.663031 174.862638,196.810303 172.27828,195.445057 C160.780281,185.9162 158.686473,181.494078 152.405048,172.403055 C133.405233,191.751331 119.909143,197.534719 95.309886,197.534719 C66.1281801,197.534719 43.4791563,179.599451 43.4791563,143.669212 C43.4791563,115.616003 58.6782107,96.5105248 80.4019706,87.1727225 C99.2063636,78.9096034 125.464714,77.4528107 145.533369,75.1641337 L145.533369,70.694248 C145.533369,62.4749122 146.167493,52.7510201 141.297893,45.6541312 C137.110277,39.2856386 129.018206,36.6586354 121.859376,36.6586354 C108.658413,36.6586354 96.9171331,43.4171982 94.0416364,57.4199213 C93.4593582,60.532522 91.1701278,63.5933787 88.003492,63.7406501 L54.4387473,60.1424518 C51.6150972,59.5095829 48.4484614,57.2248862 49.2740201,52.8982915 C56.9712583,12.2553679 93.7983558,0 126.732964,0 C143.587124,0 165.606011,4.47386604 178.902691,17.2148315 C195.760839,32.917146 194.149604,53.8694866 194.149604,76.6726704 L194.149604,130.542157 C194.149604,146.734049 200.87372,153.830938 207.206992,162.579655 Z M233.826346,208.038962 C230.467669,203.683255 211.550709,205.9821 203.056405,206.998432 C200.470662,207.321077 200.076227,205.042397 202.406981,203.404973 C217.475208,192.664928 242.201125,195.766353 245.081698,199.363845 C247.966255,202.981502 244.336653,228.071183 230.172839,240.049379 C228.001452,241.888455 225.929671,240.904388 226.89783,238.468418 C230.077218,230.430525 237.204944,212.418868 233.826346,208.038962 Z M126.768855,264 C74.0234043,264 42.0764048,241.955028 17.7852554,217.541992 C12.9733903,212.705982 6.71799208,206.295994 3.31151296,200.690918 C1.90227474,198.372135 5.59096074,195.021875 8.0442063,196.84375 C38.2390146,219.267578 82.1011654,239.538304 125.529506,239.538304 C154.819967,239.538304 191.046475,227.469543 220.66851,214.867659 C225.146771,212.966167 225.146771,219.180222 224.511585,221.060516 C224.183264,222.03242 209.514625,236.221149 189.247207,247.047411 C170.304273,257.166172 146.397132,264 126.768855,264 Z",fill:"#FF9900"})],-1),A0={class:"amplify-text amplify-authenticator__federated-text"},E0=o.createElementVNode("svg",{"aria-label":"Apple icon",class:"amplify-icon federated-sign-in-icon",fill:"#000",preserveAspectRatio:"xMidYMid",stroke:"#000",strokeWidth:"0",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M747.4 535.7c-.4-68.2 30.5-119.6 92.9-157.5-34.9-50-87.7-77.5-157.3-82.8-65.9-5.2-138 38.4-164.4 38.4-27.9 0-91.7-36.6-141.9-36.6C273.1 298.8 163 379.8 163 544.6c0 48.7 8.9 99 26.7 150.8 23.8 68.2 109.6 235.3 199.1 232.6 46.8-1.1 79.9-33.2 140.8-33.2 59.1 0 89.7 33.2 141.9 33.2 90.3-1.3 167.9-153.2 190.5-221.6-121.1-57.1-114.6-167.2-114.6-170.7zm-105.1-305c50.7-60.2 46.1-115 44.6-134.7-44.8 2.6-96.6 30.5-126.1 64.8-32.5 36.8-51.6 82.3-47.5 133.6 48.4 3.7 92.6-21.2 129-63.7z"})],-1),$0={class:"amplify-text amplify-authenticator__federated-text"},I0=o.createElementVNode("svg",{"aria-label":"Facebook icon",class:"amplify-icon federated-sign-in-icon",viewBox:"0 0 279 538"},[o.createElementVNode("path",{d:"M82.3409742,538 L82.3409742,292.936652 L0,292.936652 L0,196.990154 L82.2410458,196.990154 L82.2410458,126.4295 C82.2410458,44.575144 132.205229,0 205.252865,0 C240.227794,0 270.306232,2.59855099 279,3.79788222 L279,89.2502322 L228.536175,89.2502322 C188.964542,89.2502322 181.270057,108.139699 181.270057,135.824262 L181.270057,196.89021 L276.202006,196.89021 L263.810888,292.836708 L181.16913,292.836708 L181.16913,538 L82.3409742,538 Z",fill:"#1877F2"})],-1),T0={class:"amplify-text amplify-authenticator__federated-text"},P0=o.createElementVNode("svg",{"aria-label":"Google icon",class:"amplify-icon federated-sign-in-icon",viewBox:"0 0 256 262",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},[o.createElementVNode("path",{d:"M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622 38.755 30.023 2.685.268c24.659-22.774 38.875-56.282 38.875-96.027",fill:"#4285F4"}),o.createElementVNode("path",{d:"M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055-34.523 0-63.824-22.773-74.269-54.25l-1.531.13-40.298 31.187-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1",fill:"#34A853"}),o.createElementVNode("path",{d:"M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82 0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602l42.356-32.782",fill:"#FBBC05"}),o.createElementVNode("path",{d:"M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0 79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251",fill:"#EB4335"})],-1),N0={class:"amplify-text amplify-authenticator__federated-text"},k0=o.createElementVNode("hr",{class:"amplify-divider amplify-divider--label amplify-divider--small","aria-orientation":"horizontal","data-size":"small","data-label":"or"},null,-1),qn=o.defineComponent({setup(e){var S;const{state:t}=Ce(),n=$e(Ae),{route:r}=n(),{value:{context:a}}=t,i=(S=a==null?void 0:a.config)==null?void 0:S.socialProviders,s=i==null?void 0:i.includes("amazon"),u=i==null?void 0:i.includes("apple"),c=i==null?void 0:i.includes("facebook"),d=i==null?void 0:i.includes("google"),l=c||d||s||u,h=r==="signUp"?"Up":"In",f=o.computed(()=>gr),p=o.computed(()=>O(`Sign ${h} with Amazon`)),v=o.computed(()=>O(`Sign ${h} with Apple`)),g=o.computed(()=>O(`Sign ${h} with Facebook`)),m=o.computed(()=>O(`Sign ${h} with Google`));return(w,_)=>{const b=ge;return o.unref(l)?(o.openBlock(),o.createBlock(b,{key:0,class:"amplify-flex federated-sign-in-container amplify-authenticator__column amplify-authenticator__sign-in-base"},{default:o.withCtx(()=>[o.unref(s)?(o.openBlock(),o.createBlock(ln,{key:0,provider:o.unref(f).Amazon},{default:o.withCtx(()=>[C0,o.createElementVNode("p",A0,o.toDisplayString(o.unref(p)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),o.unref(u)?(o.openBlock(),o.createBlock(ln,{key:1,provider:o.unref(f).Apple},{default:o.withCtx(()=>[E0,o.createElementVNode("p",$0,o.toDisplayString(o.unref(v)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),o.unref(c)?(o.openBlock(),o.createBlock(ln,{key:2,provider:o.unref(f).Facebook},{default:o.withCtx(()=>[I0,o.createElementVNode("p",T0,o.toDisplayString(o.unref(g)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),o.unref(d)?(o.openBlock(),o.createBlock(ln,{key:3,provider:o.unref(f).Google},{default:o.withCtx(()=>[P0,o.createElementVNode("p",N0,o.toDisplayString(o.unref(m)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),k0]),_:1})):o.createCommentVNode("",!0)}}}),x0={},U0={"data-amplify-label":""};function O0(e,t){return o.openBlock(),o.createElementBlock("label",U0,[o.renderSlot(e.$slots,"default")])}var Wn=Nn(x0,[["render",O0]]);const Yn=o.defineComponent({emits:["update:modelValue"],setup(e,{emit:t}){const n=r=>{t("update:modelValue",r.target.value)};return(r,a)=>(o.openBlock(),o.createElementBlock("input",{onChange:a[0]||(a[0]=i=>n(i)),"data-amplify-input":""},null,32))}}),R0=["aria-label"],B0={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},V0=o.createElementVNode("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"},null,-1),D0=[V0],M0={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},F0=o.createElementVNode("path",{d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z",fill:"none"},null,-1),L0=o.createElementVNode("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"},null,-1),j0=[F0,L0],z0={inheritAttrs:!1},Po=o.defineComponent(At(Ct({},z0),{props:{name:null,label:null,autocomplete:null,ariainvalid:{type:Boolean},labelHidden:{type:Boolean,default:!0},placeholder:null,required:{type:Boolean,default:!0}},setup(e){var w;const t=e,n=O("Show password"),r=O("Hide password"),a=o.ref("password"),i=o.ref(n),s=Math.floor(Math.random()*999999),{name:u,label:c,autocomplete:d,ariainvalid:l,labelHidden:h,placeholder:f,required:p}=o.toRefs(t);let v=o.ref("");function g(){i.value=i.value===n?r:n,a.value=a.value==="password"?"text":"password"}const m=O((w=f==null?void 0:f.value)!=null?w:c.value),S=O(c.value);return(_,b)=>{const C=Wn,$=Yn,A=ge;return o.openBlock(),o.createBlock(A,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield amplify-authenticator__column"},{default:o.withCtx(()=>{var E;return[o.createVNode(C,{class:o.normalizeClass(["amplify-label",{"amplify-visually-hidden":(E=o.unref(h))!=null?E:!0}]),for:"amplify-field-"+o.unref(s)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(S)),1)]),_:1},8,["class","for"]),o.createVNode(A,{class:"amplify-flex amplify-field-group"},{default:o.withCtx(()=>{var T;return[o.createVNode($,o.mergeProps(_.$attrs,{modelValue:o.unref(v),"onUpdate:modelValue":b[0]||(b[0]=x=>o.isRef(v)?v.value=x:v=x),class:"amplify-input amplify-field-group__control","aria-invalid":o.unref(l),id:"amplify-field-"+o.unref(s),"data-amplify-password":"true",name:o.unref(u),autocomplete:o.unref(d),required:(T=o.unref(p))!=null?T:!0,placeholder:o.unref(m),type:a.value}),null,16,["modelValue","aria-invalid","id","name","autocomplete","required","placeholder","type"]),o.createVNode(A,{class:"amplify-field-group__outer-end"},{default:o.withCtx(()=>[o.createElementVNode("button",{"aria-label":i.value,class:"amplify-button amplify-field-group__control amplify-field__show-password amplify-button--fullwidth","data-fullwidth":"false",type:"button",onClick:g},[a.value==="password"?(o.openBlock(),o.createElementBlock("svg",B0,D0)):(o.openBlock(),o.createElementBlock("svg",M0,j0))],8,R0)]),_:1})]}),_:1})]}),_:1})}}})),G0=["value","selected"],H0=o.defineComponent({props:{selectValue:{default:""},options:null},emits:["update:selectValue"],setup(e,{emit:t}){const{options:n,selectValue:r}=e,a=i=>{t("update:selectValue",i.target.value)};return(i,s)=>(o.openBlock(),o.createElementBlock("select",{onChange:s[0]||(s[0]=u=>a(u))},[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(n,(u,c)=>o.createElementVNode("option",{key:c,value:u,selected:u==r?!0:void 0},o.toDisplayString(u),9,G0)),64))],32))}}),K0=o.createTextVNode(o.toDisplayString("Country Code")),q0=o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","data-size":"large",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon amplify-icon--large"},[o.createElementVNode("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})],-1),W0=o.defineComponent({props:{label:{default:"Username"},name:{default:"username"},placeholder:{default:""},autocomplete:{default:""},labelHidden:{type:Boolean,default:!1},required:{type:Boolean,default:!0},dialCode:null,dialCodeList:null,type:{default:"text"}},setup(e){const{label:t,name:n,placeholder:r,autocomplete:a,labelHidden:i,required:s,dialCode:u,dialCodeList:c}=e,d=Math.floor(Math.random()*999999),l=Math.floor(Math.random()*999999);return(h,f)=>{const p=Wn,v=H0,g=ge,m=Yn;return o.openBlock(),o.createBlock(g,{class:"amplify-flex amplify-field amplify-textfield amplify-phonenumberfield amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(p,o.mergeProps({for:"amplify-field-"+o.unref(d),class:["amplify-label",{"sr-only":i}]},h.$attrs),{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(t))]),_:1},16,["for","class"]),o.createVNode(g,{class:"amplify-flex amplify-field-group"},{default:o.withCtx(()=>[o.createVNode(g,{class:"amplify-field-group__outer-start"},{default:o.withCtx(()=>[e.type==="tel"?(o.openBlock(),o.createBlock(g,{key:0,class:"amplify-flex amplify-field amplify-selectfield amplify-countrycodeselect amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(p,o.mergeProps({for:"amplify-field-"+o.unref(l),class:"amplify-label amplify-visually-hidden"},h.$attrs),{default:o.withCtx(()=>[K0]),_:1},16,["for"]),o.createVNode(g,{class:"amplify-select__wrapper"},{default:o.withCtx(()=>[o.createVNode(v,{class:"amplify-select amplify-field-group__control",id:"amplify-field-"+o.unref(l),autocomplete:"tel-country-code","aria-label":"country code",name:"country_code",options:c,"select-value":u},null,8,["id"]),o.createVNode(g,{class:"amplify-flex amplify-select__icon-wrapper amplify-authenticator__icon-wrapper"},{default:o.withCtx(()=>[q0]),_:1})]),_:1})]),_:1})):o.createCommentVNode("",!0)]),_:1}),o.createVNode(g,{class:"amplify-field-group__field-wrapper"},{default:o.withCtx(()=>[o.createVNode(m,{class:"amplify-input amplify-field-group__control","aria-invalid":"false",id:"amplify-field-"+o.unref(d),autocomplete:a,name:n,required:s!=null?s:!0,type:e.type,placeholder:r},null,8,["id","required","type"])]),_:1})]),_:1})]),_:1})}}}),Y0={key:2},cs=o.defineComponent({props:{name:{default:""},formField:{default:()=>({})}},setup(e){const t=e,{name:n,formField:r}=o.toRefs(t),a=$e(Ae),{validationErrors:i}=o.toRefs(a()),{type:s}=r.value,u=o.computed(()=>Ul(i.value[n.value])),c=s==="password";return(d,l)=>{var h;return o.openBlock(),o.createElementBlock(o.Fragment,null,[c?(o.openBlock(),o.createBlock(Po,{key:0,name:o.unref(n),label:o.unref(r).label,placeholder:o.unref(r).placeholder,required:o.unref(r).isRequired,"label-hidden":o.unref(r).labelHidden,autocomplete:o.unref(r).autocomplete,ariainvalid:!!o.unref(i)[o.unref(n)]},null,8,["name","label","placeholder","required","label-hidden","autocomplete","ariainvalid"])):(o.openBlock(),o.createBlock(W0,{key:1,name:o.unref(n),label:o.unref(r).label,placeholder:o.unref(r).placeholder,required:o.unref(r).isRequired,"label-hidden":o.unref(r).labelHidden,autocomplete:o.unref(r).autocomplete,"dial-code":o.unref(r).dialCode,"dial-code-list":o.unref(r).dialCodeList,type:o.unref(r).type},null,8,["name","label","placeholder","required","label-hidden","autocomplete","dial-code","dial-code-list","type"])),((h=o.unref(u))==null?void 0:h.length)>0?(o.openBlock(),o.createElementBlock("div",Y0,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(u),(f,p)=>(o.openBlock(),o.createElementBlock("p",{key:p,role:"alert","data-variation":"error",class:"amplify-text amplify-text--error"},o.toDisplayString(o.unref(O)(f)),1))),128))])):o.createCommentVNode("",!0)],64)}}}),je=o.defineComponent({props:{route:null},setup(e){const t=e,{route:n}=o.toRefs(t),{state:r}=Ce();let a=[];return o.onBeforeMount(()=>{a=av(n.value,r.value)}),(i,s)=>(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(a),([u,c])=>(o.openBlock(),o.createBlock(cs,{name:u,key:u,formField:c},null,8,["name","formField"]))),128))}}),J0=o.createElementVNode("legend",{class:"amplify-visually-hidden"},"Sign in",-1),Z0={"data-amplify-footer":""},No=o.defineComponent({emits:["signInSubmit","forgotPasswordClicked","createAccountClicked"],setup(e,{emit:t}){const r=$e(Ae)(),a=o.useAttrs(),i=o.computed(()=>kl("Forgot your password? ")?O("Forgot your password? "):O("Forgot your password?")),s=o.computed(()=>O("Sign in")),u=o.computed(()=>O("Signing in")),{state:c,send:d}=Ce(),l=o.computed(()=>be(c.value)),h=g=>{const{name:m,value:S}=g.target;d({type:"CHANGE",data:{name:m,value:S}})},f=g=>{a!=null&&a.onSignInSubmit?t("signInSubmit",g):p(g)},p=g=>{r.submitForm(Le(g))},v=()=>{a!=null&&a.onForgotPasswordClicked?t("forgotPasswordClicked"):d({type:"RESET_PASSWORD"})};return(g,m)=>{const S=Re,w=Be,_=Se,b=ge,C=Ve,$=De;return o.renderSlot(g.$slots,"signInSlotI",o.normalizeProps(o.guardReactiveProps(g.$attrs)),()=>[o.renderSlot(g.$slots,"header"),o.createVNode(b,o.normalizeProps(o.guardReactiveProps(g.$attrs)),{default:o.withCtx(()=>[o.createVNode(C,{"data-amplify-authenticator-signin":"",onInput:h,onSubmit:o.withModifiers(f,["prevent"]),method:"post"},{formt:o.withCtx(({slotData:A})=>[o.renderSlot(g.$slots,"form",{info:A,onSignInSubmit:f,onInput:h,onForgotPasswordClicked:v})]),default:o.withCtx(()=>[o.createVNode(qn),o.createVNode(b,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(S,{disabled:o.unref(l).matches("signIn.submit"),class:"amplify-flex amplify-authenticator__column"},{fieldSetI:o.withCtx(({slotData:A})=>[o.renderSlot(g.$slots,"signin-fields",{info:A})]),default:o.withCtx(()=>[J0,o.createVNode(je,{route:"signIn"})]),_:3},8,["disabled"]),o.unref(l).context.remoteError?(o.openBlock(),o.createBlock(w,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(O)(o.unref(l).context.remoteError)),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(_,{disabled:o.unref(l).matches("signIn.submit"),class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!0,loading:!1,variation:"primary"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l).matches("signIn.submit")?o.unref(u):o.unref(s)),1)]),_:1},8,["disabled"])]),_:3})]),_:3},8,["onSubmit"])]),_:3},16),o.createVNode($,null,{default:o.withCtx(()=>[o.renderSlot(g.$slots,"footer",{},()=>[o.createElementVNode("div",Z0,[o.createVNode(_,{onClick:v,class:"amplify-field-group__control amplify-authenticator__font",variation:"link",fullwidth:!0,size:"small",style:{"font-weight":"normal"},type:"button"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(i)),1)]),_:1})])])]),_:3})])}}}),ko=o.defineComponent({setup(e){return(t,n)=>(o.openBlock(),o.createBlock(je,{route:"signUp"}))}}),xo=o.defineComponent({emits:["signUpSubmit"],setup(e,{emit:t}){const n=$e(Ae),r=n(),a=n(),{hasValidationErrors:i,isPending:s,error:u}=o.toRefs(r),c=o.useAttrs(),d=o.computed(()=>O("Create Account")),l=v=>{let{checked:g,name:m,type:S,value:w}=v.target;S==="checkbox"&&!g&&(w=void 0),a.updateForm({name:m,value:w})};function h(v){const{name:g}=v.target;a.updateBlur({name:g})}const f=v=>{c!=null&&c.onSignUpSubmit?t("signUpSubmit",v):p(v)},p=v=>{a.submitForm(Le(v))};return(v,g)=>{const m=Re,S=Be,w=Se,_=ge,b=Ve,C=De;return o.renderSlot(v.$slots,"signUpSlotI",o.normalizeProps(o.guardReactiveProps(v.$attrs)),()=>[o.renderSlot(v.$slots,"header"),o.createVNode(_,o.normalizeProps(o.guardReactiveProps(v.$attrs)),{default:o.withCtx(()=>[o.createVNode(b,{onInput:l,onBlurCapture:h,onSubmit:o.withModifiers(f,["prevent"])},{default:o.withCtx(()=>[o.createVNode(qn),o.createVNode(_,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(m,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(s)},{fieldSetI:o.withCtx(({slotData:$})=>[o.renderSlot(v.$slots,"signup-fields",{info:$})]),default:o.withCtx(()=>[o.createVNode(ko)]),_:3},8,["disabled"]),o.unref(u)?(o.openBlock(),o.createBlock(S,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(O)(o.unref(u))),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(w,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!0,loading:!1,variation:"primary",style:{"border-radius":"0px","font-weight":"normal"},disabled:o.unref(s)||o.unref(i)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1},8,["disabled"])]),_:3})]),_:3},8,["onSubmit"])]),_:3},16),o.createVNode(C,null,{default:o.withCtx(()=>[o.renderSlot(v.$slots,"footer")]),_:3})])}}}),Q0=o.defineComponent({props:{label:null,id:null,active:{type:Boolean,default:!1}},setup(e){const t=e,{id:n,label:r}=t,{active:a}=o.toRefs(t);return(i,s)=>{const u=ge;return o.openBlock(),o.createBlock(u,{tabindex:o.unref(a)?0:-1,"data-state":o.unref(a)?"active":"inactive","aria-selected":o.unref(a)?"true":"false","aria-controls":`radix-id-${o.unref(n)}-8-content-0`,id:`radix-id-${o.unref(n)}-8-trigger-0`,"data-orientation":"horizontal",role:"tab",class:"amplify-tabs-item","data-spacing":"equal","data-radix-collection-item":""},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(r)),1)]),_:1},8,["tabindex","data-state","aria-selected","aria-controls","id"])}}}),X0={};function eC(e,t){const n=ge;return o.openBlock(),o.createBlock(n,{tabindex:"0","aria-orientation":"horizontal","data-orientation":"horizontal",class:"amplify-authenticator__tabs",role:"tablist"},{default:o.withCtx(()=>[o.createVNode(n,{class:"amplify-flex amplify-tabs amplify-authenticator__tabs-wrapper","data-indicator-position":"top"},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3})]),_:3})}var tC=Nn(X0,[["render",eC]]);const Ze=o.defineComponent({props:{level:{type:Number,default:1}},inheritAttrs:!1,setup(e,{slots:t,attrs:n}){var s,u;const r=t.default?t.default():[],a=t.headingI?t.headingI():[],i=`${n.class||""} amplify-heading--${e.level}`;if(((u=(s=a[0])==null?void 0:s.children)==null?void 0:u.length)===0)a[0].children=[o.h(`h${e.level}`,At(Ct({},n),{class:i}),[r])];else return()=>o.h(`h${e.level}`,At(Ct({"data-amplify-heading":""},n),{class:i}),[a[0]?o.h(a[0].children[0]):o.h(r[0])]);return()=>a}}),nC={};function rC(e,t){return o.renderSlot(e.$slots,"textI",o.normalizeProps(o.guardReactiveProps(e.$attrs)),()=>[o.createElementVNode("span",o.mergeProps(e.$attrs,{"data-amplify-text":""}),[o.renderSlot(e.$slots,"default")],16)])}var ls=Nn(nC,[["render",rC]]);const Uo=o.defineComponent({emits:["confirmSignUpSubmit","lostCodeClicked"],setup(e,{emit:t}){const n=o.useAttrs(),r=$e(Ae),{isPending:a,error:i,codeDeliveryDetails:s}=o.toRefs(r()),{submitForm:u,updateForm:c,resendCode:d}=r();Ce();const l=o.computed(()=>{var $,A;return(($=s.value)==null?void 0:$.DeliveryMedium)==="EMAIL"?O("We Emailed You"):((A=s.value)==null?void 0:A.DeliveryMedium)==="SMS"?O("We Texted You"):O("We Sent A Code")}),h=o.computed(()=>O("Resend Code")),f=o.computed(()=>O("Confirm")),p=O("Your code is on the way. To log in, enter the code we emailed to"),v=O("Your code is on the way. To log in, enter the code we texted to"),g=O("Your code is on the way. To log in, enter the code we sent you. It may take a minute to arrive."),m=O("It may take a minute to arrive."),S=o.computed(()=>{var $,A,E,T;return(($=s.value)==null?void 0:$.DeliveryMedium)==="EMAIL"?`${p} ${(A=s.value)==null?void 0:A.Destination}. ${m}`:((E=s.value)==null?void 0:E.DeliveryMedium)==="SMS"?`${v} ${(T=s.value)==null?void 0:T.Destination}. ${m}`:O(`${g}`)}),w=$=>{const{name:A,value:E}=$.target;c({name:A,value:E})},_=$=>{n!=null&&n.onConfirmSignUpSubmit?t("confirmSignUpSubmit",$):b($)},b=$=>{u(Le($))},C=()=>{n!=null&&n.onLostCodeClicked?t("lostCodeClicked"):d()};return($,A)=>{const E=Ze,T=ls,x=Re,B=Be,V=Se,L=De,oe=ge,z=Ve;return o.renderSlot($.$slots,"confirmSignUpSlotI",o.normalizeProps(o.guardReactiveProps($.$attrs)),()=>[o.createVNode(oe,o.normalizeProps(o.guardReactiveProps($.$attrs)),{default:o.withCtx(()=>[o.createVNode(z,{onInput:w,onSubmit:o.withModifiers(_,["prevent"])},{default:o.withCtx(()=>[o.createVNode(oe,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot($.$slots,"header",{},()=>[o.createVNode(E,{class:"amplify-heading amplify-authenticator__heading",level:3},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1})]),o.createVNode(T,{class:"amplify-authenticator__subtitle"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(S)),1)]),_:1}),o.createVNode(x,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(a)},{default:o.withCtx(()=>[o.createVNode(je,{route:"confirmSignUp"})]),_:1},8,["disabled"]),o.createVNode(L,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.unref(i)?(o.openBlock(),o.createBlock(B,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(O)(o.unref(i))),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(V,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",type:"submit",disabled:o.unref(a)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(f)),1)]),_:1},8,["disabled"]),o.createVNode(V,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"default",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(C,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(h)),1)]),_:1},8,["onClick"]),o.renderSlot($.$slots,"footer",{onConfirmSignUpSubmit:_,onLostCodeClicked:C})]),_:3})]),_:3})]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Oo=o.defineComponent({emits:["confirmSignInSubmit","backToSignInClicked"],setup(e,{emit:t}){const n=o.useAttrs(),{state:r,send:a}=Ce(),s=$e(Ae)(),u=o.computed(()=>be(r.value)),c=u.value.context.challengeName;let d="SMS";c===He.SOFTWARE_TOKEN_MFA&&(d="TOTP");const l=`Confirm ${d} Code`,h=o.computed(()=>O("Back to Sign In")),f=o.computed(()=>O("Confirm")),p=S=>{const{name:w,value:_}=S.target;a({type:"CHANGE",data:{name:w,value:_}})},v=S=>{n!=null&&n.onConfirmSignInSubmit?t("confirmSignInSubmit",S):g(S)},g=S=>{s.submitForm(Le(S))},m=()=>{n!=null&&n.onBackToSignInClicked?t("backToSignInClicked"):a({type:"SIGN_IN"})};return(S,w)=>{const _=Ze,b=ge,C=Be,$=Se,A=De,E=Re,T=Ve;return o.renderSlot(S.$slots,"confirmSignInSlotI",o.normalizeProps(o.guardReactiveProps(S.$attrs)),()=>[o.createVNode(b,o.normalizeProps(o.guardReactiveProps(S.$attrs)),{default:o.withCtx(()=>[o.createVNode(T,{"data-amplify-authenticator-confirmsignin":"",onInput:p,onSubmit:o.withModifiers(v,["prevent"])},{default:o.withCtx(()=>[o.createVNode(E,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(u).matches("confirmSignIn.pending")},{default:o.withCtx(()=>[o.renderSlot(S.$slots,"header",{},()=>[o.createVNode(_,{level:3,class:"amplify-heading"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(l))]),_:1})]),o.createVNode(b,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(je,{route:"confirmSignIn"})]),_:1}),o.createVNode(A,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var x,B;return[(B=(x=o.unref(u))==null?void 0:x.context)!=null&&B.remoteError?(o.openBlock(),o.createBlock(C,{key:0},{default:o.withCtx(()=>{var V,L;return[o.createTextVNode(o.toDisplayString(o.unref(O)((L=(V=o.unref(u))==null?void 0:V.context)==null?void 0:L.remoteError)),1)]}),_:1})):o.createCommentVNode("",!0),o.createVNode($,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",style:{"font-weight":"normal"},disabled:o.unref(u).matches("confirmSignIn.pending")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(f)),1)]),_:1},8,["disabled"]),o.createVNode($,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(m,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(h)),1)]),_:1},8,["onClick"]),o.renderSlot(S.$slots,"footer",{onBackToSignInClicked:m,onConfirmSignInSubmit:v})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}});var zt={},oC=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},ds={},Ee={};let Ro;const aC=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Ee.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};Ee.getSymbolTotalCodewords=function(t){return aC[t]};Ee.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};Ee.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Ro=t};Ee.isKanjiModeEnabled=function(){return typeof Ro!="undefined"};Ee.toSJIS=function(t){return Ro(t)};var Jn={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(r){return r&&typeof r.bit!="undefined"&&r.bit>=0&&r.bit<4},e.from=function(r,a){if(e.isValid(r))return r;try{return t(r)}catch{return a}}})(Jn);function fs(){this.buffer=[],this.length=0}fs.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var iC=fs;function Gt(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}Gt.prototype.set=function(e,t,n,r){const a=e*this.size+t;this.data[a]=n,r&&(this.reservedBit[a]=!0)};Gt.prototype.get=function(e,t){return this.data[e*this.size+t]};Gt.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};Gt.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var sC=Gt,ps={};(function(e){const t=Ee.getSymbolSize;e.getRowColCoords=function(r){if(r===1)return[];const a=Math.floor(r/7)+2,i=t(r),s=i===145?26:Math.ceil((i-13)/(2*a-2))*2,u=[i-7];for(let c=1;c<a-1;c++)u[c]=u[c-1]-s;return u.push(6),u.reverse()},e.getPositions=function(r){const a=[],i=e.getRowColCoords(r),s=i.length;for(let u=0;u<s;u++)for(let c=0;c<s;c++)u===0&&c===0||u===0&&c===s-1||u===s-1&&c===0||a.push([i[u],i[c]]);return a}})(ps);var hs={};const uC=Ee.getSymbolSize,Ja=7;hs.getPositions=function(t){const n=uC(t);return[[0,0],[n-Ja,0],[0,n-Ja]]};var ms={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(a){return a!=null&&a!==""&&!isNaN(a)&&a>=0&&a<=7},e.from=function(a){return e.isValid(a)?parseInt(a,10):void 0},e.getPenaltyN1=function(a){const i=a.size;let s=0,u=0,c=0,d=null,l=null;for(let h=0;h<i;h++){u=c=0,d=l=null;for(let f=0;f<i;f++){let p=a.get(h,f);p===d?u++:(u>=5&&(s+=t.N1+(u-5)),d=p,u=1),p=a.get(f,h),p===l?c++:(c>=5&&(s+=t.N1+(c-5)),l=p,c=1)}u>=5&&(s+=t.N1+(u-5)),c>=5&&(s+=t.N1+(c-5))}return s},e.getPenaltyN2=function(a){const i=a.size;let s=0;for(let u=0;u<i-1;u++)for(let c=0;c<i-1;c++){const d=a.get(u,c)+a.get(u,c+1)+a.get(u+1,c)+a.get(u+1,c+1);(d===4||d===0)&&s++}return s*t.N2},e.getPenaltyN3=function(a){const i=a.size;let s=0,u=0,c=0;for(let d=0;d<i;d++){u=c=0;for(let l=0;l<i;l++)u=u<<1&2047|a.get(d,l),l>=10&&(u===1488||u===93)&&s++,c=c<<1&2047|a.get(l,d),l>=10&&(c===1488||c===93)&&s++}return s*t.N3},e.getPenaltyN4=function(a){let i=0;const s=a.data.length;for(let c=0;c<s;c++)i+=a.data[c];return Math.abs(Math.ceil(i*100/s/5)-10)*t.N4};function n(r,a,i){switch(r){case e.Patterns.PATTERN000:return(a+i)%2===0;case e.Patterns.PATTERN001:return a%2===0;case e.Patterns.PATTERN010:return i%3===0;case e.Patterns.PATTERN011:return(a+i)%3===0;case e.Patterns.PATTERN100:return(Math.floor(a/2)+Math.floor(i/3))%2===0;case e.Patterns.PATTERN101:return a*i%2+a*i%3===0;case e.Patterns.PATTERN110:return(a*i%2+a*i%3)%2===0;case e.Patterns.PATTERN111:return(a*i%3+(a+i)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}e.applyMask=function(a,i){const s=i.size;for(let u=0;u<s;u++)for(let c=0;c<s;c++)i.isReserved(c,u)||i.xor(c,u,n(a,c,u))},e.getBestMask=function(a,i){const s=Object.keys(e.Patterns).length;let u=0,c=1/0;for(let d=0;d<s;d++){i(d),e.applyMask(d,a);const l=e.getPenaltyN1(a)+e.getPenaltyN2(a)+e.getPenaltyN3(a)+e.getPenaltyN4(a);e.applyMask(d,a),l<c&&(c=l,u=d)}return u}})(ms);var Zn={};const Ye=Jn,dn=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],fn=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Zn.getBlocksCount=function(t,n){switch(n){case Ye.L:return dn[(t-1)*4+0];case Ye.M:return dn[(t-1)*4+1];case Ye.Q:return dn[(t-1)*4+2];case Ye.H:return dn[(t-1)*4+3];default:return}};Zn.getTotalCodewordsCount=function(t,n){switch(n){case Ye.L:return fn[(t-1)*4+0];case Ye.M:return fn[(t-1)*4+1];case Ye.Q:return fn[(t-1)*4+2];case Ye.H:return fn[(t-1)*4+3];default:return}};var gs={},Qn={};const kt=new Uint8Array(512),Tn=new Uint8Array(256);(function(){let t=1;for(let n=0;n<255;n++)kt[n]=t,Tn[t]=n,t<<=1,t&256&&(t^=285);for(let n=255;n<512;n++)kt[n]=kt[n-255]})();Qn.log=function(t){if(t<1)throw new Error("log("+t+")");return Tn[t]};Qn.exp=function(t){return kt[t]};Qn.mul=function(t,n){return t===0||n===0?0:kt[Tn[t]+Tn[n]]};(function(e){const t=Qn;e.mul=function(r,a){const i=new Uint8Array(r.length+a.length-1);for(let s=0;s<r.length;s++)for(let u=0;u<a.length;u++)i[s+u]^=t.mul(r[s],a[u]);return i},e.mod=function(r,a){let i=new Uint8Array(r);for(;i.length-a.length>=0;){const s=i[0];for(let c=0;c<a.length;c++)i[c]^=t.mul(a[c],s);let u=0;for(;u<i.length&&i[u]===0;)u++;i=i.slice(u)}return i},e.generateECPolynomial=function(r){let a=new Uint8Array([1]);for(let i=0;i<r;i++)a=e.mul(a,new Uint8Array([1,t.exp(i)]));return a}})(gs);const vs=gs;function Bo(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}Bo.prototype.initialize=function(t){this.degree=t,this.genPoly=vs.generateECPolynomial(this.degree)};Bo.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const n=new Uint8Array(t.length+this.degree);n.set(t);const r=vs.mod(n,this.genPoly),a=this.degree-r.length;if(a>0){const i=new Uint8Array(this.degree);return i.set(r,a),i}return r};var cC=Bo,ys={},Qe={},Vo={};Vo.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var ze={};const ws="[0-9]+",lC="[A-Z $%*+\\-./:]+";let Ot="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Ot=Ot.replace(/u/g,"\\u");const dC="(?:(?![A-Z0-9 $%*+\\-./:]|"+Ot+`)(?:.|[\r
|
|
45
|
-
]))+`;ze.KANJI=new RegExp(Ot,"g");ze.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");ze.BYTE=new RegExp(
|
|
46
|
-
Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};var
|
|
47
|
-
Suggested mode is: `+t.toString(b));switch(_===t.KANJI&&!u.isKanjiModeEnabled()&&(_=t.BYTE),_){case t.NUMERIC:return new n(S);case t.ALPHANUMERIC:return new r(S);case t.KANJI:return new i(S);case t.BYTE:return new a(S)}}e.fromArray=function(w){return w.reduce(function(_,b){return typeof b=="string"?_.push(
|
|
44
|
+
***************************************************************************** */e.__assign=function(){return e.__assign=Object.assign||function(s){for(var u,c=1,d=arguments.length;c<d;c++){u=arguments[c];for(var l in u)Object.prototype.hasOwnProperty.call(u,l)&&(s[l]=u[l])}return s},e.__assign.apply(this,arguments)};function t(i,s){var u={};for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&s.indexOf(c)<0&&(u[c]=i[c]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,c=Object.getOwnPropertySymbols(i);d<c.length;d++)s.indexOf(c[d])<0&&Object.prototype.propertyIsEnumerable.call(i,c[d])&&(u[c[d]]=i[c[d]]);return u}function n(i){var s=typeof Symbol=="function"&&Symbol.iterator,u=s&&i[s],c=0;if(u)return u.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&c>=i.length&&(i=void 0),{value:i&&i[c++],done:!i}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function r(i,s){var u=typeof Symbol=="function"&&i[Symbol.iterator];if(!u)return i;var c=u.call(i),d,l=[],h;try{for(;(s===void 0||s-- >0)&&!(d=c.next()).done;)l.push(d.value)}catch(f){h={error:f}}finally{try{d&&!d.done&&(u=c.return)&&u.call(c)}finally{if(h)throw h.error}}return l}function a(i,s,u){if(u||arguments.length===2)for(var c=0,d=s.length,l;c<d;c++)(l||!(c in s))&&(l||(l=Array.prototype.slice.call(s,0,c)),l[c]=s[c]);return i.concat(l||Array.prototype.slice.call(s))}e.__read=r,e.__rest=t,e.__spreadArray=a,e.__values=n})(lo);var fo={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ActionTypes=void 0,function(t){t.Start="xstate.start",t.Stop="xstate.stop",t.Raise="xstate.raise",t.Send="xstate.send",t.Cancel="xstate.cancel",t.NullEvent="",t.Assign="xstate.assign",t.After="xstate.after",t.DoneState="done.state",t.DoneInvoke="done.invoke",t.Log="xstate.log",t.Init="xstate.init",t.Invoke="xstate.invoke",t.ErrorExecution="error.execution",t.ErrorCommunication="error.communication",t.ErrorPlatform="error.platform",t.ErrorCustom="xstate.error",t.Update="xstate.update",t.Pure="xstate.pure",t.Choose="xstate.choose"}(e.ActionTypes||(e.ActionTypes={})),e.SpecialTargets=void 0,function(t){t.Parent="#_parent",t.Internal="#_internal"}(e.SpecialTargets||(e.SpecialTargets={}))})(fo);var fe={};Object.defineProperty(fe,"__esModule",{value:!0});var he=fo,oy=he.ActionTypes.Start,ay=he.ActionTypes.Stop,iy=he.ActionTypes.Raise,sy=he.ActionTypes.Send,uy=he.ActionTypes.Cancel,cy=he.ActionTypes.NullEvent,ly=he.ActionTypes.Assign,dy=he.ActionTypes.After,fy=he.ActionTypes.DoneState,py=he.ActionTypes.Log,hy=he.ActionTypes.Init,my=he.ActionTypes.Invoke,gy=he.ActionTypes.ErrorExecution,vy=he.ActionTypes.ErrorPlatform,yy=he.ActionTypes.ErrorCustom,wy=he.ActionTypes.Update,Sy=he.ActionTypes.Choose,_y=he.ActionTypes.Pure;fe.after=dy;fe.assign=ly;fe.cancel=uy;fe.choose=Sy;fe.doneState=fy;fe.error=yy;fe.errorExecution=gy;fe.errorPlatform=vy;fe.init=hy;fe.invoke=my;fe.log=py;fe.nullEvent=cy;fe.pure=_y;fe.raise=iy;fe.send=sy;fe.start=oy;fe.stop=ay;fe.update=wy;var Li={},St={};Object.defineProperty(St,"__esModule",{value:!0});var by=".",Cy={},Ay="xstate.guard",Ey="";St.DEFAULT_GUARD_TYPE=Ay;St.EMPTY_ACTIVITY_MAP=Cy;St.STATE_DELIMITER=by;St.TARGETLESS_KEY=Ey;var Gn={};Object.defineProperty(Gn,"__esModule",{value:!0});var $y=!0;Gn.IS_PRODUCTION=$y;(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=lo,n=St,r=Gn,a;function i(y){return Object.keys(y)}function s(y,N,U){U===void 0&&(U=n.STATE_DELIMITER);var k=h(y,U),D=h(N,U);return me(D)?me(k)?D===k:!1:me(k)?k in D:Object.keys(k).every(function(M){return M in D?s(k[M],D[M]):!1})}function u(y){try{return me(y)||typeof y=="number"?"".concat(y):y.type}catch{throw new Error("Events must be strings or objects with a string event.type property.")}}function c(y){try{return me(y)||typeof y=="number"?"".concat(y):z(y)?y.name:y.type}catch{throw new Error("Actions must be strings or objects with a string action.type property.")}}function d(y,N){try{return oe(y)?y:y.toString().split(N)}catch{throw new Error("'".concat(y,"' is not a valid state path."))}}function l(y){return typeof y=="object"&&"value"in y&&"context"in y&&"event"in y&&"_event"in y}function h(y,N){if(l(y))return y.value;if(oe(y))return f(y);if(typeof y!="string")return y;var U=d(y,N);return f(U)}function f(y){if(y.length===1)return y[0];for(var N={},U=N,k=0;k<y.length-1;k++)k===y.length-2?U[y[k]]=y[k+1]:(U[y[k]]={},U=U[y[k]]);return N}function p(y,N){for(var U={},k=Object.keys(y),D=0;D<k.length;D++){var M=k[D];U[M]=N(y[M],M,y,D)}return U}function v(y,N,U){var k,D,M={};try{for(var j=t.__values(Object.keys(y)),F=j.next();!F.done;F=j.next()){var Z=F.value,ae=y[Z];!U(ae)||(M[Z]=N(ae,Z,y))}}catch(_e){k={error:_e}}finally{try{F&&!F.done&&(D=j.return)&&D.call(j)}finally{if(k)throw k.error}}return M}var m=function(y){return function(N){var U,k,D=N;try{for(var M=t.__values(y),j=M.next();!j.done;j=M.next()){var F=j.value;D=D[F]}}catch(Z){U={error:Z}}finally{try{j&&!j.done&&(k=M.return)&&k.call(M)}finally{if(U)throw U.error}}return D}};function g(y,N){return function(U){var k,D,M=U;try{for(var j=t.__values(y),F=j.next();!F.done;F=j.next()){var Z=F.value;M=M[N][Z]}}catch(ae){k={error:ae}}finally{try{F&&!F.done&&(D=j.return)&&D.call(j)}finally{if(k)throw k.error}}return M}}function S(y){if(!y)return[[]];if(me(y))return[[y]];var N=_(Object.keys(y).map(function(U){var k=y[U];return typeof k!="string"&&(!k||!Object.keys(k).length)?[[U]]:S(y[U]).map(function(D){return[U].concat(D)})}));return N}function w(y){var N,U,k={};if(y&&y.length===1&&y[0].length===1)return y[0][0];try{for(var D=t.__values(y),M=D.next();!M.done;M=D.next())for(var j=M.value,F=k,Z=0;Z<j.length;Z++){var ae=j[Z];if(Z===j.length-2){F[ae]=j[Z+1];break}F[ae]=F[ae]||{},F=F[ae]}}catch(_e){N={error:_e}}finally{try{M&&!M.done&&(U=D.return)&&U.call(D)}finally{if(N)throw N.error}}return k}function _(y){var N;return(N=[]).concat.apply(N,t.__spreadArray([],t.__read(y),!1))}function b(y){return oe(y)?y:[y]}function C(y){return y===void 0?[]:b(y)}function $(y,N,U){var k,D;if(z(y))return y(N,U.data);var M={};try{for(var j=t.__values(Object.keys(y)),F=j.next();!F.done;F=j.next()){var Z=F.value,ae=y[Z];z(ae)?M[Z]=ae(N,U.data):M[Z]=ae}}catch(_e){k={error:_e}}finally{try{F&&!F.done&&(D=j.return)&&D.call(j)}finally{if(k)throw k.error}}return M}function A(y){return/^(done|error)\./.test(y)}function E(y){return!!(y instanceof Promise||y!==null&&(z(y)||typeof y=="object")&&z(y.then))}function T(y){return y!==null&&typeof y=="object"&&"transition"in y&&typeof y.transition=="function"}function x(y,N){var U,k,D=t.__read([[],[]],2),M=D[0],j=D[1];try{for(var F=t.__values(y),Z=F.next();!Z.done;Z=F.next()){var ae=Z.value;N(ae)?M.push(ae):j.push(ae)}}catch(_e){U={error:_e}}finally{try{Z&&!Z.done&&(k=F.return)&&k.call(F)}finally{if(U)throw U.error}}return[M,j]}function B(y,N){return p(y.states,function(U,k){if(!!U){var D=(me(N)?void 0:N[k])||(U?U.current:void 0);if(!!D)return{current:D,states:B(U,D)}}})}function V(y,N){return{current:N,states:B(y,N)}}function L(y,N,U,k){r.IS_PRODUCTION||e.warn(!!y,"Attempting to update undefined context");var D=y&&U.reduce(function(M,j){var F,Z,ae=j.assignment,_e={state:k,action:j,_event:N},te={};if(z(ae))te=ae(M,N.data,_e);else try{for(var ie=t.__values(Object.keys(ae)),Ge=ie.next();!Ge.done;Ge=ie.next()){var Zt=Ge.value,or=ae[Zt];te[Zt]=z(or)?or(M,N.data,_e):or}}catch(ks){F={error:ks}}finally{try{Ge&&!Ge.done&&(Z=ie.return)&&Z.call(ie)}finally{if(F)throw F.error}}return Object.assign({},M,te)},y);return D}e.warn=function(){},r.IS_PRODUCTION||(e.warn=function(y,N){var U=y instanceof Error?y:void 0;if(!(!U&&y)&&console!==void 0){var k=["Warning: ".concat(N)];U&&k.push(U),console.warn.apply(console,k)}});function oe(y){return Array.isArray(y)}function z(y){return typeof y=="function"}function me(y){return typeof y=="string"}function Xe(y,N){if(!!y)return me(y)?{type:n.DEFAULT_GUARD_TYPE,name:y,predicate:N?N[y]:void 0}:z(y)?{type:n.DEFAULT_GUARD_TYPE,name:y.name,predicate:y}:y}function de(y){try{return"subscribe"in y&&z(y.subscribe)}catch{return!1}}var Te=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),er=(a={},a[Te]=function(){return this},a[Symbol.observable]=function(){return this},a);function Ht(y){return!!y&&"__xstatenode"in y}function tr(y){return!!y&&typeof y.send=="function"}var nr=function(){var y=0;return function(){return y++,y.toString(16)}}();function Kt(y,N){return me(y)||typeof y=="number"?t.__assign({type:y},N):y}function qt(y,N){if(!me(y)&&"$$type"in y&&y.$$type==="scxml")return y;var U=Kt(y);return t.__assign({name:U.type,data:U,$$type:"scxml",type:"external"},N)}function Wt(y,N){var U=b(N).map(function(k){return typeof k=="undefined"||typeof k=="string"||Ht(k)?{target:k,event:y}:t.__assign(t.__assign({},k),{event:y})});return U}function bt(y){if(!(y===void 0||y===n.TARGETLESS_KEY))return C(y)}function P(y,N,U){if(!r.IS_PRODUCTION){var k=y.stack?" Stacktrace was '".concat(y.stack,"'"):"";if(y===N)console.error("Missing onError handler for invocation '".concat(U,"', error was '").concat(y,"'.").concat(k));else{var D=N.stack?" Stacktrace was '".concat(N.stack,"'"):"";console.error("Missing onError handler and/or unhandled exception/promise rejection for invocation '".concat(U,"'. ")+"Original error: '".concat(y,"'. ").concat(k," Current error is '").concat(N,"'.").concat(D))}}}function ye(y,N,U,k,D){var M=y.options.guards,j={state:D,cond:N,_event:k};if(N.type===n.DEFAULT_GUARD_TYPE)return((M==null?void 0:M[N.name])||N.predicate)(U,k.data,j);var F=M==null?void 0:M[N.type];if(!F)throw new Error("Guard '".concat(N.type,"' is not implemented on machine '").concat(y.id,"'."));return F(U,k.data,j)}function Yt(y){return typeof y=="string"?{type:y}:y}function rr(y,N,U){if(typeof y=="object")return y;var k=function(){};return{next:y,error:N||k,complete:U||k}}function Jt(y,N){return"".concat(y,":invocation[").concat(N,"]")}e.createInvokeId=Jt,e.evaluateGuard=ye,e.flatten=_,e.getActionType=c,e.getEventType=u,e.interopSymbols=er,e.isActor=tr,e.isArray=oe,e.isBehavior=T,e.isBuiltInEvent=A,e.isFunction=z,e.isMachine=Ht,e.isObservable=de,e.isPromiseLike=E,e.isStateLike=l,e.isString=me,e.keys=i,e.mapContext=$,e.mapFilterValues=v,e.mapValues=p,e.matchesState=s,e.nestedPath=g,e.normalizeTarget=bt,e.partition=x,e.path=m,e.pathToStateValue=f,e.pathsToStateValue=w,e.reportUnhandledExceptionOnInvocation=P,e.symbolObservable=Te,e.toArray=C,e.toArrayStrict=b,e.toEventObject=Kt,e.toGuard=Xe,e.toInvokeSource=Yt,e.toObserver=rr,e.toSCXMLEvent=qt,e.toStatePath=d,e.toStatePaths=S,e.toStateValue=h,e.toTransitionConfigArray=Wt,e.uniqueId=nr,e.updateContext=L,e.updateHistoryStates=B,e.updateHistoryValue=V})(Li);Object.defineProperty(K,"__esModule",{value:!0});var X=lo,Ie=fo,pe=fe,H=Li,Iy=Gn,Ty=H.toSCXMLEvent({type:pe.init});function Or(e,t){return t&&t[e]||void 0}function Hn(e,t){var n;if(H.isString(e)||typeof e=="number"){var r=Or(e,t);H.isFunction(r)?n={type:e,exec:r}:r?n=r:n={type:e,exec:void 0}}else if(H.isFunction(e))n={type:e.name||e.toString(),exec:e};else{var r=Or(e.type,t);if(H.isFunction(r))n=X.__assign(X.__assign({},e),{exec:r});else if(r){var a=r.type||e.type;n=X.__assign(X.__assign(X.__assign({},r),e),{type:a})}else n=e}return n}var Rr=function(e,t){if(!e)return[];var n=H.isArray(e)?e:[e];return n.map(function(r){return Hn(r,t)})};function po(e){var t=Hn(e);return X.__assign(X.__assign({id:H.isString(e)?e:t.id},t),{type:t.type})}function Py(e){return H.isString(e)?{type:pe.raise,event:e}:_t(e,{to:Ie.SpecialTargets.Internal})}function ji(e){return{type:pe.raise,_event:H.toSCXMLEvent(e.event)}}function _t(e,t){return{to:t?t.to:void 0,type:pe.send,event:H.isFunction(e)?e:H.toEventObject(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:H.isFunction(e)?e.name:H.getEventType(e)}}function zi(e,t,n,r){var a={_event:n},i=H.toSCXMLEvent(H.isFunction(e.event)?e.event(t,n.data,a):e.event),s;if(H.isString(e.delay)){var u=r&&r[e.delay];s=H.isFunction(u)?u(t,n.data,a):u}else s=H.isFunction(e.delay)?e.delay(t,n.data,a):e.delay;var c=H.isFunction(e.to)?e.to(t,n.data,a):e.to;return X.__assign(X.__assign({},e),{to:c,_event:i,event:i.data,delay:s})}function ho(e,t){return _t(e,X.__assign(X.__assign({},t),{to:Ie.SpecialTargets.Parent}))}function Ny(e,t,n){return _t(t,X.__assign(X.__assign({},n),{to:e}))}function ky(){return ho(pe.update)}function xy(e,t){return _t(e,X.__assign(X.__assign({},t),{to:function(n,r,a){var i=a._event;return i.origin}}))}var Uy=function(e,t){return{context:e,event:t}};function Oy(e,t){return e===void 0&&(e=Uy),{type:pe.log,label:t,expr:e}}var Gi=function(e,t,n){return X.__assign(X.__assign({},e),{value:H.isString(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})},Ry=function(e){return{type:pe.cancel,sendId:e}};function By(e){var t=po(e);return{type:Ie.ActionTypes.Start,activity:t,exec:void 0}}function Vy(e){var t=H.isFunction(e)?e:po(e);return{type:Ie.ActionTypes.Stop,activity:t,exec:void 0}}function Hi(e,t,n){var r=H.isFunction(e.activity)?e.activity(t,n.data):e.activity,a=typeof r=="string"?{id:r}:r,i={type:Ie.ActionTypes.Stop,activity:a};return i}var Dy=function(e){return{type:pe.assign,assignment:e}};function My(e){return typeof e=="object"&&"type"in e}function Fy(e,t){var n=t?"#".concat(t):"";return"".concat(Ie.ActionTypes.After,"(").concat(e,")").concat(n)}function Ly(e,t){var n="".concat(Ie.ActionTypes.DoneState,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function jy(e,t){var n="".concat(Ie.ActionTypes.DoneInvoke,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function zy(e,t){var n="".concat(Ie.ActionTypes.ErrorPlatform,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Gy(e){return{type:Ie.ActionTypes.Pure,get:e}}function Hy(e,t){return _t(function(n,r){return r},X.__assign(X.__assign({},t),{to:e}))}function Ky(e,t){return ho(function(n,r,a){return{type:pe.error,data:H.isFunction(e)?e(n,r,a):e}},X.__assign(X.__assign({},t),{to:Ie.SpecialTargets.Parent}))}function qy(e){return{type:Ie.ActionTypes.Choose,conds:e}}function Br(e,t,n,r,a,i){i===void 0&&(i=!1);var s=X.__read(i?[[],a]:H.partition(a,function(f){return f.type===pe.assign}),2),u=s[0],c=s[1],d=u.length?H.updateContext(n,r,u,t):n,l=i?[n]:void 0,h=H.flatten(c.map(function(f){var p;switch(f.type){case pe.raise:return ji(f);case pe.send:var v=zi(f,d,r,e.options.delays);return Iy.IS_PRODUCTION||H.warn(!H.isString(f.delay)||typeof v.delay=="number","No delay reference for delay expression '".concat(f.delay,"' was found on machine '").concat(e.id,"'")),v;case pe.log:return Gi(f,d,r);case pe.choose:{var m=f,g=(p=m.conds.find(function(x){var B=H.toGuard(x.cond,e.options.guards);return!B||H.evaluateGuard(e,B,d,r,t)}))===null||p===void 0?void 0:p.actions;if(!g)return[];var S=X.__read(Br(e,t,d,r,Rr(H.toArray(g),e.options.actions),i),2),w=S[0],_=S[1];return d=_,l==null||l.push(d),w}case pe.pure:{var g=f.get(d,r.data);if(!g)return[];var b=X.__read(Br(e,t,d,r,Rr(H.toArray(g),e.options.actions),i),2),C=b[0],$=b[1];return d=$,l==null||l.push(d),C}case pe.stop:return Hi(f,d,r);case pe.assign:{d=H.updateContext(d,r,[f],t),l==null||l.push(d);break}default:var A=Hn(f,e.options.actions),E=A.exec;if(E&&l){var T=l.length-1;A=X.__assign(X.__assign({},A),{exec:function(x){for(var B=[],V=1;V<arguments.length;V++)B[V-1]=arguments[V];E.apply(void 0,X.__spreadArray([l[T]],X.__read(B),!1))}})}return A}}).filter(function(f){return!!f}));return[h,d]}K.actionTypes=pe;K.after=Fy;var ue=K.assign=Dy;K.cancel=Ry;var Wy=K.choose=qy;K.done=Ly;K.doneInvoke=jy;K.error=zy;K.escalate=Ky;K.forwardTo=Hy;K.getActionFunction=Or;K.initEvent=Ty;K.isActionObject=My;K.log=Oy;K.pure=Gy;K.raise=Py;K.resolveActions=Br;K.resolveLog=Gi;K.resolveRaise=ji;K.resolveSend=zi;K.resolveStop=Hi;K.respond=xy;K.send=_t;K.sendParent=ho;K.sendTo=Ny;K.sendUpdate=ky;K.start=By;var Yy=K.stop=Vy;K.toActionObject=Hn;K.toActionObjects=Rr;K.toActivityDefinition=po;var un=function(e){return Yy(e)},Jy=ue({attributeToVerify:function(e){}}),Zy=ue({challengeName:function(e){}}),Qy=ue({requiredAttributes:function(e){}}),mo=ue({remoteError:function(e){return""}}),go=ue({formValues:function(e){return{}}}),vo=ue({touched:function(e){return{}}}),Xy=ue({unverifiedAttributes:function(e){}}),e1=ue({username:function(e){}}),yo=ue({validationError:function(e){return{}}}),t1=ue({challengeName:function(e,t){var n;return(n=t.data)===null||n===void 0?void 0:n.challengeName}}),n1=ue({requiredAttributes:function(e,t){var n,r;return(r=(n=t.data)===null||n===void 0?void 0:n.challengeParam)===null||r===void 0?void 0:r.requiredAttributes}}),r1=ue({redirectIntent:function(e){return"confirmPasswordReset"}}),o1=ue({redirectIntent:function(e){return"confirmSignUp"}}),Ki=ue({authAttributes:function(e,t){var n,r,a=e.loginMechanisms[0];return{username:(n=e.formValues[a])!==null&&n!==void 0?n:e.formValues.username,password:(r=e.formValues)===null||r===void 0?void 0:r.password}}}),wo=ue({validationError:function(e,t){return t.data}}),So=ue({remoteError:function(e,t){var n;return t.data.name==="NoUserPoolError"?"Configuration error (see console) \u2013 please contact the administrator":((n=t.data)===null||n===void 0?void 0:n.message)||t.data}}),a1=ue({unverifiedAttributes:function(e,t){return t.data.unverified}}),qi=ue({user:function(e,t){return t.data.user||t.data}}),i1=ue({username:function(e,t){var n=e.formValues,r=n.username,a=n.country_code;return a&&(r="".concat(a).concat(r)),r}}),s1=ue({codeDeliveryDetails:function(e,t){return t.data.codeDeliveryDetails}}),u1=ue({authAttributes:function(e,t){return{username:e.formValues.username}}}),_o=ue({formValues:function(e,t){var n,r=t.data,a=r.name,i=r.value;return R(R({},e.formValues),((n={})[a]=i,n))}}),bo=ue({formValues:function(e,t){return R(R({},e.formValues),t.data)}}),Co=ue({touched:function(e,t){var n,r=t.data.name;return R(R({},e.touched),((n={})["".concat(r)]=!0,n))}}),Wi=ue({formValues:function(e,t){var n,r,a=e.loginMechanisms[0],i=a===void 0?"username":a;if(!e.formValues.phone_number&&i!=="phone_number")return e.formValues;var s=e.formValues,u=e.country_code,c=s.phone_number?"phone_number":"username",d="".concat((r=s.country_code)!==null&&r!==void 0?r:u).concat(s[c]).replace(/[^A-Z0-9+]/gi,""),l=R(R({},s),((n={})[c]=d,n));return delete l.country_code,l}}),c1=xe,l1=Kr,d1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,f1=/^\w*$/;function p1(e,t){if(c1(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||l1(e)?!0:f1.test(e)||!d1.test(e)||t!=null&&e in Object(t)}var Ao=p1,Yi=Jr,h1="Expected a function";function Eo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(h1);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var s=e.apply(this,r);return n.cache=i.set(a,s)||i,s};return n.cache=new(Eo.Cache||Yi),n}Eo.Cache=Yi;var m1=Eo,g1=m1,v1=500;function y1(e){var t=g1(e,function(r){return n.size===v1&&n.clear(),r}),n=t.cache;return t}var w1=y1,S1=w1,_1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,b1=/\\(\\)?/g,C1=S1(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(_1,function(n,r,a,i){t.push(a?i.replace(b1,"$1"):r||n)}),t}),A1=C1,Ia=Rt,E1=ti,$1=xe,I1=Kr,T1=1/0,Ta=Ia?Ia.prototype:void 0,Pa=Ta?Ta.toString:void 0;function Ji(e){if(typeof e=="string")return e;if($1(e))return E1(e,Ji)+"";if(I1(e))return Pa?Pa.call(e):"";var t=e+"";return t=="0"&&1/e==-T1?"-0":t}var P1=Ji,N1=P1;function k1(e){return e==null?"":N1(e)}var x1=k1,U1=xe,O1=Ao,R1=A1,B1=x1;function V1(e,t){return U1(e)?e:O1(e,t)?[e]:R1(B1(e))}var Kn=V1,D1=Kr,M1=1/0;function F1(e){if(typeof e=="string"||D1(e))return e;var t=e+"";return t=="0"&&1/e==-M1?"-0":t}var jt=F1,L1=Kn,j1=jt;function z1(e,t){t=L1(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[j1(t[n++])];return n&&n==r?e:void 0}var $o=z1,G1=$o;function H1(e,t,n){var r=e==null?void 0:G1(e,t);return r===void 0?n:r}var Zi=H1,ke=Zi,K1=ai,q1=Ft,W1=kn,Y1=xe,J1=Bt,Z1=tt.exports,Q1=On,X1=Un,ew="[object Map]",tw="[object Set]",nw=Object.prototype,rw=nw.hasOwnProperty;function ow(e){if(e==null)return!0;if(J1(e)&&(Y1(e)||typeof e=="string"||typeof e.splice=="function"||Z1(e)||X1(e)||W1(e)))return!e.length;var t=q1(e);if(t==ew||t==tw)return!e.size;if(Q1(e))return!K1(e).length;for(var n in e)if(rw.call(e,n))return!1;return!0}var aw=ow,Vr=aw,iw=Zr,sw=Vt;function uw(e,t,n){(n!==void 0&&!sw(e[t],n)||n===void 0&&!(t in e))&&iw(e,t,n)}var Qi=uw;function cw(e){return function(t,n,r){for(var a=-1,i=Object(t),s=r(t),u=s.length;u--;){var c=s[e?u:++a];if(n(i[c],c,i)===!1)break}return t}}var lw=cw,dw=lw,fw=dw(),pw=fw,hw=Bt,mw=Ke;function gw(e){return mw(e)&&hw(e)}var vw=gw,yw=pt,ww=eo,Sw=Ke,_w="[object Object]",bw=Function.prototype,Cw=Object.prototype,Xi=bw.toString,Aw=Cw.hasOwnProperty,Ew=Xi.call(Object);function $w(e){if(!Sw(e)||yw(e)!=_w)return!1;var t=ww(e);if(t===null)return!0;var n=Aw.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Xi.call(n)==Ew}var Iw=$w;function Tw(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var es=Tw,Pw=Dt,Nw=Mt;function kw(e){return Pw(e,Nw(e))}var xw=kw,Na=Qi,Uw=yn.exports,Ow=wi,Rw=li,Bw=Si,ka=kn,xa=xe,Vw=vw,Dw=tt.exports,Mw=Gr,Fw=Fe,Lw=Iw,jw=Un,Ua=es,zw=xw;function Gw(e,t,n,r,a,i,s){var u=Ua(e,n),c=Ua(t,n),d=s.get(c);if(d){Na(e,n,d);return}var l=i?i(u,c,n+"",e,t,s):void 0,h=l===void 0;if(h){var f=xa(c),p=!f&&Dw(c),v=!f&&!p&&jw(c);l=c,f||p||v?xa(u)?l=u:Vw(u)?l=Rw(u):p?(h=!1,l=Uw(c,!0)):v?(h=!1,l=Ow(c,!0)):l=[]:Lw(c)||ka(c)?(l=u,ka(u)?l=zw(u):(!Fw(u)||Mw(u))&&(l=Bw(c))):h=!1}h&&(s.set(c,l),a(l,c,r,i,s),s.delete(c)),Na(e,n,l)}var Hw=Gw,Kw=Fn,qw=Qi,Ww=pw,Yw=Hw,Jw=Fe,Zw=Mt,Qw=es;function ts(e,t,n,r,a){e!==t&&Ww(t,function(i,s){if(a||(a=new Kw),Jw(i))Yw(e,t,s,n,ts,r,a);else{var u=r?r(Qw(e,s),i,s+"",e,t,a):void 0;u===void 0&&(u=i),qw(e,s,u)}},Zw)}var Xw=ts;function eS(e){return e}var Io=eS;function tS(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var nS=tS,rS=nS,Oa=Math.max;function oS(e,t,n){return t=Oa(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=Oa(r.length-t,0),s=Array(i);++a<i;)s[a]=r[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=r[a];return u[t]=n(s),rS(e,this,u)}}var aS=oS;function iS(e){return function(){return e}}var sS=iS,uS=sS,Ra=ci,cS=Io,lS=Ra?function(e,t){return Ra(e,"toString",{configurable:!0,enumerable:!1,value:uS(t),writable:!0})}:cS,dS=lS,fS=800,pS=16,hS=Date.now;function mS(e){var t=0,n=0;return function(){var r=hS(),a=pS-(r-n);if(n=r,a>0){if(++t>=fS)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var gS=mS,vS=dS,yS=gS,wS=yS(vS),SS=wS,_S=Io,bS=aS,CS=SS;function AS(e,t){return CS(bS(e,t,_S),e+"")}var ES=AS,$S=Vt,IS=Bt,TS=xn,PS=Fe;function NS(e,t,n){if(!PS(n))return!1;var r=typeof t;return(r=="number"?IS(n)&&TS(t,n.length):r=="string"&&t in n)?$S(n[t],e):!1}var kS=NS,xS=ES,US=kS;function OS(e){return xS(function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,s&&US(n[0],n[1],s)&&(i=a<3?void 0:i,a=1),t=Object(t);++r<a;){var u=n[r];u&&e(t,u,r,i)}return t})}var RS=OS,BS=Xw,VS=RS,DS=VS(function(e,t,n){BS(e,t,n)}),MS=DS,To=function(e,t,n,r){return q(void 0,void 0,void 0,function(){var a,i;return W(this,function(s){switch(s.label){case 0:return[4,Promise.all(r.map(function(u){return u(e,t,n)}))];case 1:return a=s.sent(),i=MS.apply(void 0,Oe([{}],a,!1)),Vr(i)?[2,Promise.resolve()]:[2,Promise.reject(i)]}})})},En={getAmplifyConfig:function(){return q(this,void 0,void 0,function(){return W(this,function(e){return[2,re.Amplify.configure()]})})},getCurrentUser:function(){return q(this,void 0,void 0,function(){return W(this,function(e){return[2,re.Auth.currentAuthenticatedUser()]})})},handleSignUp:function(e){return q(this,void 0,void 0,function(){return W(this,function(t){return[2,re.Auth.signUp(e)]})})},handleSignIn:function(e){var t=e.username,n=e.password;return q(this,void 0,void 0,function(){return W(this,function(r){return[2,re.Auth.signIn(t,n)]})})},handleConfirmSignIn:function(e){var t=e.user,n=e.code,r=e.mfaType;return q(this,void 0,void 0,function(){return W(this,function(a){return[2,re.Auth.confirmSignIn(t,n,r)]})})},handleConfirmSignUp:function(e){var t=e.username,n=e.code;return q(this,void 0,void 0,function(){return W(this,function(r){switch(r.label){case 0:return[4,re.Auth.confirmSignUp(t,n)];case 1:return[2,r.sent()]}})})},handleForgotPasswordSubmit:function(e){var t=e.username,n=e.code,r=e.password;return q(this,void 0,void 0,function(){return W(this,function(a){return[2,re.Auth.forgotPasswordSubmit(t,n,r)]})})},handleForgotPassword:function(e){return q(this,void 0,void 0,function(){return W(this,function(t){return[2,re.Auth.forgotPassword(e)]})})},validateCustomSignUp:function(e,t){return q(this,void 0,void 0,function(){return W(this,function(n){return[2]})})},validateFormPassword:function(e,t,n){return q(this,void 0,void 0,function(){var r,a,i,s;return W(this,function(u){return r=e.password,t.password&&n?(a=[],i=+(n==null?void 0:n.passwordPolicyMinLength),r.length<i&&a.push("Password must have at least ".concat(i," characters")),(s=n==null?void 0:n.passwordPolicyCharacters)==null||s.forEach(function(c){switch(c){case"REQUIRES_LOWERCASE":/[a-z]/.test(r)||a.push("Password must have lower case letters");break;case"REQUIRES_UPPERCASE":/[A-Z]/.test(r)||a.push("Password must have upper case letters");break;case"REQUIRES_NUMBERS":/[0-9]/.test(r)||a.push("Password must have numbers");break;case"REQUIRES_SYMBOLS":/[\W]/.test(r)||a.push("Password must have special characters")}}),[2,a.length!==0?{password:a}:null]):[2,null]})})},validateConfirmPassword:function(e,t){return q(this,void 0,void 0,function(){var n,r,a,i;return W(this,function(s){return n=e.password,r=e.confirm_password,a=t.confirm_password,i=t.password,n||r?(n||r)&&n!==r&&(a&&i||(n==null?void 0:n.length)>=6&&(r==null?void 0:r.length)>=6)?[2,{confirm_password:"Your passwords must match"}]:[2]:[2,null]})})},validatePreferredUsername:function(e,t){return q(this,void 0,void 0,function(){return W(this,function(n){return[2]})})}};function FS(e){var t=e.services;return Lt({initial:"init",id:"signInActor",states:{init:{always:[{target:"signIn"}]},signIn:{initial:"edit",exit:["clearFormValues","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},FEDERATED_SIGN_IN:"federatedSignIn"}},federatedSignIn:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"federatedSignIn",onError:{actions:"setRemoteError"}}},submit:{tags:["pending"],entry:["parsePhoneNumber","clearError","sendUpdate"],invoke:{src:"signIn",onDone:[{cond:"shouldSetupTOTP",actions:["setUser","setChallengeName"],target:"#signInActor.setupTOTP"},{cond:"shouldConfirmSignIn",actions:["setUser","setChallengeName"],target:"#signInActor.confirmSignIn"},{cond:"shouldForceChangePassword",actions:["setUser","setChallengeName","setRequiredAttributes"],target:"#signInActor.forceNewPassword"},{actions:"setUser",target:"verifying"}],onError:[{cond:"shouldRedirectToConfirmSignUp",actions:["setCredentials","setConfirmSignUpIntent"],target:"rejected"},{cond:"shouldRedirectToConfirmResetPassword",actions:["setUsernameAuthAttributes","setConfirmResetPasswordIntent"],target:"rejected"},{actions:"setRemoteError",target:"edit"}]}},verifying:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"checkVerifiedContact",onDone:[{cond:"shouldRequestVerification",target:"#signInActor.verifyUser",actions:"setUnverifiedAttributes"},{target:"resolved"}],onError:{actions:"setRemoteError",target:"edit"}}},resolved:{always:"#signInActor.resolved"},rejected:{always:"#signInActor.rejected"}}},confirmSignIn:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"confirmSignIn",onDone:{target:"#signInActor.resolved",actions:["setUser","clearChallengeName","clearRequiredAttributes"]},onError:{target:"edit",actions:"setRemoteError"}}}}},forceNewPassword:{type:"parallel",exit:["clearFormValues","clearError","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateFields",onDone:{target:"valid",actions:"clearValidationError"},onError:{target:"invalid",actions:"setFieldErrors"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submit:{initial:"idle",entry:"clearError",states:{idle:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"}}},validate:{entry:"sendUpdate",invoke:{src:"validateFields",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},pending:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"forceNewPassword",onDone:[{cond:"shouldConfirmSignIn",actions:["setUser","setChallengeName"],target:"#signInActor.confirmSignIn"},{cond:"shouldSetupTOTP",actions:["setUser","setChallengeName"],target:"#signInActor.setupTOTP"},{target:"resolved",actions:["setUser","setCredentials"]}],onError:{target:"idle",actions:"setRemoteError"}}},resolved:{type:"final",always:"#signInActor.resolved"}}}}},setupTOTP:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"verifyTotpToken",onDone:{actions:["setUser","clearChallengeName","clearRequiredAttributes"],target:"#signInActor.resolved"},onError:{actions:"setRemoteError",target:"edit"}}}}},verifyUser:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SKIP:"#signInActor.resolved",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:"clearError",invoke:{src:"verifyUser",onDone:{target:"#signInActor.confirmVerifyUser"},onError:{actions:"setRemoteError",target:"edit"}}}}},confirmVerifyUser:{initial:"edit",exit:["clearFormValues","clearError","clearUnverifiedAttributes","clearAttributeToVerify","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SKIP:"#signInActor.resolved",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:"clearError",invoke:{src:"confirmVerifyUser",onDone:{target:"#signInActor.resolved"},onError:{actions:"setRemoteError",target:"edit"}}}}},resolved:{type:"final",data:function(n){return{user:n.user}}},rejected:{type:"final",data:function(n,r){return{intent:n.redirectIntent,authAttributes:n.authAttributes}}}}},{actions:{clearAttributeToVerify:Jy,clearChallengeName:Zy,clearRequiredAttributes:Qy,clearError:mo,clearFormValues:go,clearTouched:vo,clearUnverifiedAttributes:Xy,clearValidationError:yo,handleInput:_o,handleSubmit:bo,handleBlur:Co,parsePhoneNumber:Wi,setChallengeName:t1,setConfirmResetPasswordIntent:r1,setConfirmSignUpIntent:o1,setRequiredAttributes:n1,setCredentials:Ki,setFieldErrors:wo,setRemoteError:So,setUnverifiedAttributes:a1,setUser:qi,setUsernameAuthAttributes:u1,sendUpdate:co()},guards:{shouldConfirmSignIn:function(n,r){var a=ke(r,"data.challengeName");return[He.SMS_MFA,He.SOFTWARE_TOKEN_MFA].includes(a)},shouldRedirectToConfirmSignUp:function(n,r){return r.data.code==="UserNotConfirmedException"},shouldRedirectToConfirmResetPassword:function(n,r){return r.data.code==="PasswordResetRequiredException"},shouldSetupTOTP:function(n,r){return ke(r,"data.challengeName")===He.MFA_SETUP},shouldForceChangePassword:function(n,r){return ke(r,"data.challengeName")===He.NEW_PASSWORD_REQUIRED},shouldRequestVerification:function(n,r){var a=r.data,i=a.unverified,s=a.verified;return Vr(s)&&!Vr(i)}},services:{signIn:function(n){return q(this,void 0,void 0,function(){var r,a,i;return W(this,function(s){switch(s.label){case 0:return r=n.formValues,a=r.username,i=r.password,[4,t.handleSignIn({username:a,password:i})];case 1:return[2,s.sent()]}})})},confirmSignIn:function(n,r){return q(this,void 0,void 0,function(){var a,i,s,u;return W(this,function(c){switch(c.label){case 0:return a=n.challengeName,i=n.user,s=n.formValues.confirmation_code,a!==He.SMS_MFA&&a!==He.SOFTWARE_TOKEN_MFA||(u=a),[4,t.handleConfirmSignIn({user:i,code:s,mfaType:u})];case 1:return c.sent(),[4,re.Auth.currentAuthenticatedUser()];case 2:return[2,c.sent()]}})})},forceNewPassword:function(n,r){return q(this,void 0,void 0,function(){var a,i,s,u,c,d,l,h,f;return W(this,function(p){switch(p.label){case 0:a=n.user,i=n.formValues,s=i.password,u=i.phone_number,c=i.country_code,d=ii(i,["password","confirm_password","phone_number","country_code"]),u&&(l="".concat(c).concat(u).replace(/[^A-Z0-9+]/gi,""),d=R(R({},d),{phone_number:l})),p.label=1;case 1:return p.trys.push([1,3,,4]),[4,re.Auth.completeNewPassword(a,s,d)];case 2:return(h=p.sent()).challengeName?[2,h]:[2,re.Auth.currentAuthenticatedUser()];case 3:return f=p.sent(),[2,Promise.reject(f)];case 4:return[2]}})})},verifyTotpToken:function(n,r){return q(this,void 0,void 0,function(){var a,i;return W(this,function(s){return a=n.user,i=n.formValues.confirmation_code,[2,re.Auth.verifyTotpToken(a,i)]})})},federatedSignIn:function(n,r){return q(this,void 0,void 0,function(){var a;return W(this,function(i){switch(i.label){case 0:return a=r.data.provider,[4,re.Auth.federatedSignIn({provider:a})];case 1:return[2,i.sent()]}})})},checkVerifiedContact:function(n,r){return q(this,void 0,void 0,function(){var a;return W(this,function(i){switch(i.label){case 0:return a=n.user,[4,re.Auth.verifiedContact(a)];case 1:return[2,i.sent()]}})})},verifyUser:function(n,r){return q(this,void 0,void 0,function(){var a,i;return W(this,function(s){switch(s.label){case 0:return a=n.formValues.unverifiedAttr,[4,re.Auth.verifyCurrentUserAttribute(a)];case 1:return i=s.sent(),n.attributeToVerify=a,[2,i]}})})},confirmVerifyUser:function(n,r){return q(this,void 0,void 0,function(){var a,i;return W(this,function(s){switch(s.label){case 0:return a=n.attributeToVerify,i=n.formValues.confirmation_code,[4,re.Auth.verifyCurrentUserAttributeSubmit(a,i)];case 1:return[2,s.sent()]}})})},validateFields:function(n,r){return q(this,void 0,void 0,function(){return W(this,function(a){return[2,To(n.formValues,n.touched,n.passwordSettings,[En.validateConfirmPassword])]})})}}})}var LS=Lt({initial:"pending",id:"signOutActor",states:{pending:{tags:["pending"],invoke:{src:"signOut",onDone:"resolved",onError:"rejected"}},resolved:{type:"final"},rejected:{type:"final"}}},{services:{signOut:function(){return re.Auth.signOut()}}});function jS(e){var t=e.services;return Lt({id:"resetPasswordActor",initial:"init",states:{init:{always:[{target:"confirmResetPassword",cond:"shouldAutoConfirmReset"},{target:"resetPassword"}]},resetPassword:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},submit:{tags:["pending"],entry:["sendUpdate","setUsername","clearError"],invoke:{src:"resetPassword",onDone:{target:"#resetPasswordActor.confirmResetPassword"},onError:{actions:["setRemoteError"],target:"edit"}}}}},confirmResetPassword:{type:"parallel",exit:["clearFormValues","clearError","clearUsername","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateFields",onDone:{target:"valid",actions:"clearValidationError"},onError:{target:"invalid",actions:"setFieldErrors"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"},RESEND:"resendCode",CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},validate:{entry:"sendUpdate",invoke:{src:"validateFields",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},resendCode:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"resetPassword",onDone:{target:"idle"},onError:{actions:"setRemoteError",target:"idle"}}},pending:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"confirmResetPassword",onDone:{actions:"clearUsername",target:"#resetPasswordActor.resolved"},onError:{actions:"setRemoteError",target:"idle"}}}}}}},resolved:{type:"final"}}},{actions:{clearError:mo,clearFormValues:go,clearTouched:vo,clearUsername:e1,clearValidationError:yo,handleInput:_o,handleSubmit:bo,handleBlur:Co,setFieldErrors:wo,setRemoteError:So,setUsername:i1,sendUpdate:co()},guards:{shouldAutoConfirmReset:function(n,r){return!(!n.intent||n.intent!=="confirmPasswordReset")}},services:{resetPassword:function(n){return q(this,void 0,void 0,function(){var r;return W(this,function(a){return r=n.username,[2,t.handleForgotPassword(r)]})})},confirmResetPassword:function(n){return q(this,void 0,void 0,function(){var r,a,i,s;return W(this,function(u){return r=n.username,a=n.formValues,i=a.confirmation_code,s=a.password,[2,t.handleForgotPasswordSubmit({username:r,code:i,password:s})]})})},validateFields:function(n,r){return q(this,void 0,void 0,function(){return W(this,function(a){return[2,To(n.formValues,n.touched,n.passwordSettings,[En.validateConfirmPassword])]})})}}})}var zS="__lodash_hash_undefined__";function GS(e){return this.__data__.set(e,zS),this}var HS=GS;function KS(e){return this.__data__.has(e)}var qS=KS,WS=Jr,YS=HS,JS=qS;function $n(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new WS;++t<n;)this.add(e[t])}$n.prototype.add=$n.prototype.push=YS;$n.prototype.has=JS;var ZS=$n;function QS(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var XS=QS;function e_(e,t){return e.has(t)}var t_=e_,n_=ZS,r_=XS,o_=t_,a_=1,i_=2;function s_(e,t,n,r,a,i){var s=n&a_,u=e.length,c=t.length;if(u!=c&&!(s&&c>u))return!1;var d=i.get(e),l=i.get(t);if(d&&l)return d==t&&l==e;var h=-1,f=!0,p=n&i_?new n_:void 0;for(i.set(e,t),i.set(t,e);++h<u;){var v=e[h],m=t[h];if(r)var g=s?r(m,v,h,t,e,i):r(v,m,h,e,t,i);if(g!==void 0){if(g)continue;f=!1;break}if(p){if(!r_(t,function(S,w){if(!o_(p,w)&&(v===S||a(v,S,n,r,i)))return p.push(w)})){f=!1;break}}else if(!(v===m||a(v,m,n,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var ns=s_;function u_(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}var c_=u_;function l_(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var d_=l_,Ba=Rt,Va=yi,f_=Vt,p_=ns,h_=c_,m_=d_,g_=1,v_=2,y_="[object Boolean]",w_="[object Date]",S_="[object Error]",__="[object Map]",b_="[object Number]",C_="[object RegExp]",A_="[object Set]",E_="[object String]",$_="[object Symbol]",I_="[object ArrayBuffer]",T_="[object DataView]",Da=Ba?Ba.prototype:void 0,cr=Da?Da.valueOf:void 0;function P_(e,t,n,r,a,i,s){switch(n){case T_:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case I_:return!(e.byteLength!=t.byteLength||!i(new Va(e),new Va(t)));case y_:case w_:case b_:return f_(+e,+t);case S_:return e.name==t.name&&e.message==t.message;case C_:case E_:return e==t+"";case __:var u=h_;case A_:var c=r&g_;if(u||(u=m_),e.size!=t.size&&!c)return!1;var d=s.get(e);if(d)return d==t;r|=v_,s.set(e,t);var l=p_(u(e),u(t),r,a,i,s);return s.delete(e),l;case $_:if(cr)return cr.call(e)==cr.call(t)}return!1}var N_=P_,Ma=mi,k_=1,x_=Object.prototype,U_=x_.hasOwnProperty;function O_(e,t,n,r,a,i){var s=n&k_,u=Ma(e),c=u.length,d=Ma(t),l=d.length;if(c!=l&&!s)return!1;for(var h=c;h--;){var f=u[h];if(!(s?f in t:U_.call(t,f)))return!1}var p=i.get(e),v=i.get(t);if(p&&v)return p==t&&v==e;var m=!0;i.set(e,t),i.set(t,e);for(var g=s;++h<c;){f=u[h];var S=e[f],w=t[f];if(r)var _=s?r(w,S,f,t,e,i):r(S,w,f,e,t,i);if(!(_===void 0?S===w||a(S,w,n,r,i):_)){m=!1;break}g||(g=f=="constructor")}if(m&&!g){var b=e.constructor,C=t.constructor;b!=C&&"constructor"in e&&"constructor"in t&&!(typeof b=="function"&&b instanceof b&&typeof C=="function"&&C instanceof C)&&(m=!1)}return i.delete(e),i.delete(t),m}var R_=O_,lr=Fn,B_=ns,V_=N_,D_=R_,Fa=Ft,La=xe,ja=tt.exports,M_=Un,F_=1,za="[object Arguments]",Ga="[object Array]",cn="[object Object]",L_=Object.prototype,Ha=L_.hasOwnProperty;function j_(e,t,n,r,a,i){var s=La(e),u=La(t),c=s?Ga:Fa(e),d=u?Ga:Fa(t);c=c==za?cn:c,d=d==za?cn:d;var l=c==cn,h=d==cn,f=c==d;if(f&&ja(e)){if(!ja(t))return!1;s=!0,l=!1}if(f&&!l)return i||(i=new lr),s||M_(e)?B_(e,t,n,r,a,i):V_(e,t,c,n,r,a,i);if(!(n&F_)){var p=l&&Ha.call(e,"__wrapped__"),v=h&&Ha.call(t,"__wrapped__");if(p||v){var m=p?e.value():e,g=v?t.value():t;return i||(i=new lr),a(m,g,n,r,i)}}return f?(i||(i=new lr),D_(e,t,n,r,a,i)):!1}var z_=j_,G_=z_,Ka=Ke;function rs(e,t,n,r,a){return e===t?!0:e==null||t==null||!Ka(e)&&!Ka(t)?e!==e&&t!==t:G_(e,t,n,r,rs,a)}var os=rs,H_=Fn,K_=os,q_=1,W_=2;function Y_(e,t,n,r){var a=n.length,i=a,s=!r;if(e==null)return!i;for(e=Object(e);a--;){var u=n[a];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<i;){u=n[a];var c=u[0],d=e[c],l=u[1];if(s&&u[2]){if(d===void 0&&!(c in e))return!1}else{var h=new H_;if(r)var f=r(d,l,c,e,t,h);if(!(f===void 0?K_(l,d,q_|W_,r,h):f))return!1}}return!0}var J_=Y_,Z_=Fe;function Q_(e){return e===e&&!Z_(e)}var as=Q_,X_=as,eb=Rn;function tb(e){for(var t=eb(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,X_(a)]}return t}var nb=tb;function rb(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var is=rb,ob=J_,ab=nb,ib=is;function sb(e){var t=ab(e);return t.length==1&&t[0][2]?ib(t[0][0],t[0][1]):function(n){return n===e||ob(n,e,t)}}var ub=sb;function cb(e,t){return e!=null&&t in Object(e)}var lb=cb,db=Kn,fb=kn,pb=xe,hb=xn,mb=Hr,gb=jt;function vb(e,t,n){t=db(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var s=gb(t[r]);if(!(i=e!=null&&n(e,s)))break;e=e[s]}return i||++r!=a?i:(a=e==null?0:e.length,!!a&&mb(a)&&hb(s,a)&&(pb(e)||fb(e)))}var yb=vb,wb=lb,Sb=yb;function _b(e,t){return e!=null&&Sb(e,t,wb)}var bb=_b,Cb=os,Ab=Zi,Eb=bb,$b=Ao,Ib=as,Tb=is,Pb=jt,Nb=1,kb=2;function xb(e,t){return $b(e)&&Ib(t)?Tb(Pb(e),t):function(n){var r=Ab(n,e);return r===void 0&&r===t?Eb(n,e):Cb(t,r,Nb|kb)}}var Ub=xb;function Ob(e){return function(t){return t==null?void 0:t[e]}}var Rb=Ob,Bb=$o;function Vb(e){return function(t){return Bb(t,e)}}var Db=Vb,Mb=Rb,Fb=Db,Lb=Ao,jb=jt;function zb(e){return Lb(e)?Mb(jb(e)):Fb(e)}var Gb=zb,Hb=ub,Kb=Ub,qb=Io,Wb=xe,Yb=Gb;function Jb(e){return typeof e=="function"?e:e==null?qb:typeof e=="object"?Wb(e)?Kb(e[0],e[1]):Hb(e):Yb(e)}var Zb=Jb,Qb=Qr,Xb=Kn,e0=xn,qa=Fe,t0=jt;function n0(e,t,n,r){if(!qa(e))return e;t=Xb(t,e);for(var a=-1,i=t.length,s=i-1,u=e;u!=null&&++a<i;){var c=t0(t[a]),d=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(a!=s){var l=u[c];d=r?r(l,c,u):void 0,d===void 0&&(d=qa(l)?l:e0(t[a+1])?[]:{})}Qb(u,c,d),u=u[c]}return e}var r0=n0,o0=$o,a0=r0,i0=Kn;function s0(e,t,n){for(var r=-1,a=t.length,i={};++r<a;){var s=t[r],u=o0(e,s);n(u,s)&&a0(i,i0(s,e),u)}return i}var u0=s0,c0=ti,l0=Zb,d0=u0,f0=gi;function p0(e,t){if(e==null)return{};var n=c0(f0(e),function(r){return[r]});return t=l0(t),d0(e,n,function(r,a){return t(r,a[0])})}var h0=p0;function m0(e){var t=e.services;return Lt({id:"signUpActor",initial:"init",states:{init:{always:[{target:"confirmSignUp",cond:"shouldInitConfirmSignUp"},{target:"signUp"}]},signUp:{type:"parallel",exit:["clearError","clearFormValues","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateSignUp",onDone:{target:"valid",actions:"clearValidationError"},onError:{target:"invalid",actions:"setFieldErrors"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"},FEDERATED_SIGN_IN:"federatedSignIn"}},federatedSignIn:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"federatedSignIn",onDone:"#signUpActor.resolved",onError:{actions:"setRemoteError"}}},validate:{entry:"sendUpdate",invoke:{src:"validateSignUp",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},pending:{tags:["pending"],entry:["parsePhoneNumber","sendUpdate","clearError"],invoke:{src:"signUp",onDone:[{cond:"shouldSkipConfirm",target:"skipConfirm",actions:["setUser"]},{target:"resolved",actions:["setUser","setCredentials","setCodeDeliveryDetails"]}],onError:{target:"idle",actions:"setRemoteError"}}},skipConfirm:{invoke:{src:"signIn",onDone:{target:"#signUpActor.resolved",actions:"setUser"},onError:{target:"idle",actions:"setRemoteError"}}},resolved:{type:"final",always:"#signUpActor.confirmSignUp"}}}}},confirmSignUp:{initial:"edit",states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"},RESEND:"resend"}},resend:{tags:["pending"],entry:"sendUpdate",invoke:{src:"resendConfirmationCode",onDone:{target:"edit"},onError:[{target:"#signUpActor.resolved",actions:"setUser",cond:"isUserAlreadyConfirmed"},{target:"edit",actions:"setRemoteError"}]}},submit:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"confirmSignUp",onDone:{target:"#signUpActor.resolved",actions:["setUser"]},onError:{target:"edit",actions:"setRemoteError"}}}}},resolved:{type:"final",data:function(n,r){var a=n.authAttributes,i=a.username,s=a.password;return{user:ke(r,"data.user")||n.user,authAttributes:{username:i,password:s}}}}}},{guards:{isUserAlreadyConfirmed:function(n,r){return r.data.message==="User is already confirmed."},shouldInitConfirmSignUp:function(n){return n.intent&&n.intent==="confirmSignUp"},shouldSkipConfirm:function(n,r){return r.data.userConfirmed}},actions:{clearError:mo,clearFormValues:go,clearTouched:vo,clearValidationError:yo,handleInput:_o,handleSubmit:bo,handleBlur:Co,parsePhoneNumber:Wi,setCredentials:Ki,setFieldErrors:wo,setRemoteError:So,setCodeDeliveryDetails:s1,setUser:qi,sendUpdate:co()},services:{signIn:function(n,r){return q(this,void 0,void 0,function(){var a,i,s,u,c;return W(this,function(d){switch(d.label){case 0:return a=n.user,i=n.authAttributes,s=n.formValues,u=ke(a,"username")||ke(i,"username"),c=ke(s,"password"),[4,re.Auth.signIn(u,c)];case 1:return[2,d.sent()]}})})},confirmSignUp:function(n,r){return q(this,void 0,void 0,function(){var a,i,s,u,c,d;return W(this,function(l){switch(l.label){case 0:return a=n.user,i=n.authAttributes,s=n.formValues,u=s.confirmation_code,c=ke(a,"username")||ke(i,"username"),d=i.password,[4,t.handleConfirmSignUp({username:c,code:u})];case 1:return l.sent(),[4,re.Auth.signIn(c,d)];case 2:return[2,l.sent()]}})})},resendConfirmationCode:function(n,r){return q(this,void 0,void 0,function(){var a,i,s;return W(this,function(u){return a=n.user,i=n.authAttributes,s=ke(a,"username")||ke(i,"username"),[2,re.Auth.resendSignUp(s)]})})},federatedSignIn:function(n,r){return q(this,void 0,void 0,function(){var a;return W(this,function(i){switch(i.label){case 0:return a=r.data.provider,[4,re.Auth.federatedSignIn({provider:a})];case 1:return[2,i.sent()]}})})},signUp:function(n,r){return q(this,void 0,void 0,function(){var a,i,s,u,c,d,l;return W(this,function(h){switch(h.label){case 0:return a=n.formValues,i=n.loginMechanisms,s=i[0],c=(u=a)[s===void 0?"username":s],d=u.password,l=h0(a,function(f,p){switch(p){case"address":case"birthdate":case"email":case"family_name":case"gender":case"given_name":case"locale":case"middle_name":case"name":case"nickname":case"phone_number":case"picture":case"preferred_username":case"profile":case"updated_at":case"website":case"zoneinfo":return!0;default:return p.startsWith("custom:")}}),[4,t.handleSignUp({username:c,password:d,attributes:l})];case 1:return[2,h.sent()]}})})},validateSignUp:function(n,r){return q(this,void 0,void 0,function(){return W(this,function(a){return[2,To(n.formValues,n.touched,n.passwordSettings,[t.validateFormPassword,t.validateConfirmPassword,t.validatePreferredUsername,t.validateCustomSignUp])]})})}}})}function g0(){return Lt({id:"authenticator",initial:"idle",context:{user:void 0,config:{},services:En,actorRef:void 0,hasSetup:!1},states:{idle:{invoke:{src:"getCurrentUser",onDone:{actions:"setUser",target:"authenticated"},onError:{target:"setup"}}},setup:{initial:"waitConfig",states:{waitConfig:{on:{INIT:{actions:["configure","setHasSetup"],target:"applyConfig"}}},applyConfig:{invoke:{src:"getAmplifyConfig",onDone:{actions:"applyAmplifyConfig",target:"goToInitialState"}}},goToInitialState:{always:[{target:"#authenticator.signUp",cond:"isInitialStateSignUp"},{target:"#authenticator.resetPassword",cond:"isInitialStateResetPassword"},{target:"#authenticator.signIn"}]}}},signIn:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignInActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:"stopSignInActor"}},on:{SIGN_UP:"signUp",RESET_PASSWORD:"resetPassword","done.invoke.signInActor":[{target:"signUp",actions:"setActorDoneData",cond:"shouldRedirectToSignUp"},{target:"resetPassword",actions:"setActorDoneData",cond:"shouldRedirectToResetPassword"},{target:"authenticated",actions:"setActorDoneData"}]}},signUp:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignUpActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:"stopSignUpActor"},autoSignIn:{invoke:{src:"getCurrentUser",onDone:"#authenticator.authenticated",onError:"#authenticator.setup.goToInitialState"}}},on:{SIGN_IN:"signIn","done.invoke.signUpActor":{target:"signUp.autoSignIn",actions:"setActorDoneData"}}},resetPassword:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnResetPasswordActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:"stopResetPasswordActor"}},on:{SIGN_IN:"signIn","done.invoke.resetPasswordActor":{target:"signIn",actions:"setActorDoneData"}}},signOut:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignOutActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:["stopSignOutActor","clearUser"]}},on:{"done.invoke.signOutActor":[{target:"setup",cond:"shouldSetup"},{target:"setup.goToInitialState"}]}},authenticated:{initial:"idle",states:{idle:{on:{TOKEN_REFRESH:"refreshUser"}},refreshUser:{invoke:{src:"getCurrentUser",onDone:{actions:"setUser",target:"idle"},onError:{target:"#authenticator.signOut"}}}},on:{SIGN_OUT:"signOut"}}},on:{CHANGE:{actions:"forwardToActor"},BLUR:{actions:"forwardToActor"},SUBMIT:{actions:"forwardToActor"},FEDERATED_SIGN_IN:{actions:"forwardToActor"},RESEND:{actions:"forwardToActor"},SIGN_IN:{actions:"forwardToActor"},SKIP:{actions:"forwardToActor"}}},{actions:{forwardToActor:Wy([{cond:"hasActor",actions:ry(function(e){return e.actorRef})}]),setUser:Pe({user:function(e,t){return t.data}}),setActorDoneData:Pe({actorDoneData:function(e,t){var n,r;return{authAttributes:R({},(n=t.data)===null||n===void 0?void 0:n.authAttributes),intent:(r=t.data)===null||r===void 0?void 0:r.intent}},user:function(e,t){var n;return(n=t.data)===null||n===void 0?void 0:n.user}}),clearUser:Pe({user:void 0}),clearActorDoneData:Pe({actorDoneData:void 0}),applyAmplifyConfig:Pe({config:function(e,t){var n,r,a,i,s,u,c,d,l,h=(r=(n=t.data.aws_cognito_username_attributes)===null||n===void 0?void 0:n.map(function(C){return C.toLowerCase()}))!==null&&r!==void 0?r:[],f=(i=(a=t.data.aws_cognito_verification_mechanisms)===null||a===void 0?void 0:a.map(function(C){return C.toLowerCase()}))!==null&&i!==void 0?i:[],p=(u=(s=t.data.aws_cognito_signup_attributes)===null||s===void 0?void 0:s.map(function(C){return C.toLowerCase()}))!==null&&u!==void 0?u:[],v=(d=(c=t.data.aws_cognito_social_providers)===null||c===void 0?void 0:c.map(function(C){return C.toLowerCase()}))!==null&&d!==void 0?d:[],m=t.data.aws_cognito_password_protection_settings||{};h.length===0&&h.push("username");var g=e.config,S=g.loginMechanisms,w=g.signUpAttributes,_=g.socialProviders,b=g.initialState;return{loginMechanisms:S!=null?S:h,formFields:(l=v0(g.formFields))!==null&&l!==void 0?l:{},passwordSettings:m,signUpAttributes:w!=null?w:Array.from(new Set(Oe(Oe([],f,!0),p,!0))),socialProviders:_!=null?_:v.sort(),initialState:b}}}),spawnSignInActor:Pe({actorRef:function(e,t){var n,r,a,i,s,u=e.services,c=FS({services:u}).withContext({authAttributes:(n=e.actorDoneData)===null||n===void 0?void 0:n.authAttributes,user:e.user,intent:(r=e.actorDoneData)===null||r===void 0?void 0:r.intent,country_code:"+1",formValues:{},touched:{},validationError:{},loginMechanisms:(a=e.config)===null||a===void 0?void 0:a.loginMechanisms,socialProviders:(i=e.config)===null||i===void 0?void 0:i.socialProviders,formFields:(s=e.config)===null||s===void 0?void 0:s.formFields});return on(c,{name:"signInActor"})}}),spawnSignUpActor:Pe({actorRef:function(e,t){var n,r,a,i,s,u,c,d=e.services,l=m0({services:d}).withContext({authAttributes:(r=(n=e.actorDoneData)===null||n===void 0?void 0:n.authAttributes)!==null&&r!==void 0?r:{},country_code:"+1",intent:(a=e.actorDoneData)===null||a===void 0?void 0:a.intent,formValues:{},touched:{},validationError:{},loginMechanisms:(i=e.config)===null||i===void 0?void 0:i.loginMechanisms,socialProviders:(s=e.config)===null||s===void 0?void 0:s.socialProviders,formFields:(u=e.config)===null||u===void 0?void 0:u.formFields,passwordSettings:(c=e.config)===null||c===void 0?void 0:c.passwordSettings});return on(l,{name:"signUpActor"})}}),spawnResetPasswordActor:Pe({actorRef:function(e,t){var n,r,a,i,s=e.services,u=jS({services:s}).withContext({formValues:{},touched:{},intent:(n=e.actorDoneData)===null||n===void 0?void 0:n.intent,username:(a=(r=e.actorDoneData)===null||r===void 0?void 0:r.authAttributes)===null||a===void 0?void 0:a.username,formFields:(i=e.config)===null||i===void 0?void 0:i.formFields,validationError:{}});return on(u,{name:"resetPasswordActor"})}}),spawnSignOutActor:Pe({actorRef:function(e){var t=LS.withContext({user:e.user});return on(t,{name:"signOutActor"})}}),stopSignInActor:un("signInActor"),stopSignUpActor:un("signUpActor"),stopResetPasswordActor:un("resetPasswordActor"),stopSignOutActor:un("signOutActor"),configure:Pe(function(e,t){var n=t.data,r=n.services,a=ii(n,["services"]);return{services:R(R({},En),r),config:a}}),setHasSetup:Pe({hasSetup:!0})},guards:{isInitialStateSignUp:function(e){return e.config.initialState==="signUp"},isInitialStateResetPassword:function(e){return e.config.initialState==="resetPassword"},shouldRedirectToSignUp:function(e,t){var n;return((n=t.data)===null||n===void 0?void 0:n.intent)==="confirmSignUp"},shouldRedirectToResetPassword:function(e,t){var n;return((n=t.data)===null||n===void 0?void 0:n.intent)==="confirmPasswordReset"},shouldSetup:function(e){return e.hasSetup===!1},hasActor:function(e){return!!e.actorRef}},services:{getCurrentUser:function(e,t){return e.services.getCurrentUser()},getAmplifyConfig:function(e,t){return e.services.getAmplifyConfig()}}})}function v0(e){return e&&Object.keys(e).forEach(function(t){Object.keys(e[t]).forEach(function(n){var r=e[t][n];r.required=r.isRequired})}),e}var In=globalThis&&globalThis.__assign||function(){return In=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},In.apply(this,arguments)},y0=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function w0(e,t,n){if(typeof e=="object")return e;var r=function(){};return{next:e,error:t||r,complete:n||r}}function S0(e,t,n){t===void 0&&(t={});var r=typeof e=="function"?e():e,a=t.context,i=t.guards,s=t.actions,u=t.activities,c=t.services,d=t.delays,l=t.state,h=y0(t,["context","guards","actions","activities","services","delays","state"]),f={context:a,guards:i,actions:s,activities:u,services:c,delays:d},p=r.withConfig(f,function(){return In(In({},r.context),a)}),v=Fi(p,h).start(l?Ue.create(l):void 0),m;return o.onMounted(function(){n&&(m=v.subscribe(w0(n)))}),o.onBeforeUnmount(function(){v.stop(),m==null||m.unsubscribe()}),v}function _0(e){return"state"in e}var Wa=function(){};function b0(e){return"getSnapshot"in e?e.getSnapshot():_0(e)?e.state:void 0}function ss(e,t){t===void 0&&(t=b0);var n=o.isRef(e)?e:o.shallowRef(e),r=o.shallowRef(t(n.value)),a=function(i){n.value.send(i)};return o.watch(n,function(i,s,u){r.value=t(i);var c=i.subscribe({next:function(d){return r.value=d},error:Wa,complete:Wa}).unsubscribe;u(function(){return c()})},{immediate:!0}),{state:r,send:a}}const us={error:"",hasValidationErrors:!1,isPending:!1,route:"",authStatus:"",user:"",validationErrors:{val:""},codeDeliveryDetails:{val:""},change:e=>null,updateForm:e=>null,updateBlur:e=>null,resend:e=>null,resendCode:e=>null,signOut:e=>null,federatedSignIn:e=>null,toFederatedSignIn:e=>null,resetPassword:e=>null,toResetPassword:e=>null,signIn:e=>null,toSignIn:e=>null,signUp:e=>null,toSignUp:e=>null,skip:e=>null,skipVerification:e=>null,submit:e=>null,submitForm:e=>null},Dr=o.ref();let vn=o.reactive(At(Ct({},us),{send:"",state:""}));const Ce=e=>(e&&(Dr.value=e),ss(Dr.value)),C0=()=>(Ya(),o.watchEffect(()=>{Ya()}),vn),Ae=C0;function Ya(){if(!Dr.value)return;const{state:e,send:t}=Ce(),n=si({send:t,state:e.value});for(const r of Object.keys(us))vn[r]=n[r];vn.send=t,vn.state=e}const ln=o.defineComponent({props:{provider:String},setup(e){const{provider:t}=e,{send:n}=Ce(),r=a=>{n({type:"FEDERATED_SIGN_IN",data:{provider:t}})};return(a,i)=>{const s=ge,u=Se;return o.openBlock(),o.createBlock(u,{class:"amplify-field-group__control federated-sign-in-button amplify-authenticator__font",fullwidth:!1,style:{"font-weight":"normal"},type:"button",onClick:r},{default:o.withCtx(()=>[o.createVNode(s,{class:"amplify-flex federated-sign-in-button-row amplify-authenticator__sign-in-button-wrapper"},{default:o.withCtx(()=>[o.renderSlot(a.$slots,"default")]),_:3})]),_:3})}}}),A0=o.createElementVNode("svg",{"aria-label":"Amazon icon",class:"amplify-icon federated-sign-in-icon",viewBox:"0 0 248 268"},[o.createElementVNode("path",{d:"M139.056521,147.024612 C133.548808,156.744524 124.782731,162.726926 115.087401,162.726926 C101.790721,162.726926 93.9937779,152.612964 93.9937779,137.68681 C93.9937779,108.224571 120.447551,102.879017 145.533369,102.879017 L145.533369,110.365976 C145.533369,123.831358 145.876354,135.063787 139.056521,147.024612 M207.206992,162.579655 C209.400505,165.692256 209.887066,169.437725 207.063416,171.770186 C199.996315,177.653081 187.429476,188.590967 180.513926,194.716661 L180.46208,194.621133 C178.176838,196.663031 174.862638,196.810303 172.27828,195.445057 C160.780281,185.9162 158.686473,181.494078 152.405048,172.403055 C133.405233,191.751331 119.909143,197.534719 95.309886,197.534719 C66.1281801,197.534719 43.4791563,179.599451 43.4791563,143.669212 C43.4791563,115.616003 58.6782107,96.5105248 80.4019706,87.1727225 C99.2063636,78.9096034 125.464714,77.4528107 145.533369,75.1641337 L145.533369,70.694248 C145.533369,62.4749122 146.167493,52.7510201 141.297893,45.6541312 C137.110277,39.2856386 129.018206,36.6586354 121.859376,36.6586354 C108.658413,36.6586354 96.9171331,43.4171982 94.0416364,57.4199213 C93.4593582,60.532522 91.1701278,63.5933787 88.003492,63.7406501 L54.4387473,60.1424518 C51.6150972,59.5095829 48.4484614,57.2248862 49.2740201,52.8982915 C56.9712583,12.2553679 93.7983558,0 126.732964,0 C143.587124,0 165.606011,4.47386604 178.902691,17.2148315 C195.760839,32.917146 194.149604,53.8694866 194.149604,76.6726704 L194.149604,130.542157 C194.149604,146.734049 200.87372,153.830938 207.206992,162.579655 Z M233.826346,208.038962 C230.467669,203.683255 211.550709,205.9821 203.056405,206.998432 C200.470662,207.321077 200.076227,205.042397 202.406981,203.404973 C217.475208,192.664928 242.201125,195.766353 245.081698,199.363845 C247.966255,202.981502 244.336653,228.071183 230.172839,240.049379 C228.001452,241.888455 225.929671,240.904388 226.89783,238.468418 C230.077218,230.430525 237.204944,212.418868 233.826346,208.038962 Z M126.768855,264 C74.0234043,264 42.0764048,241.955028 17.7852554,217.541992 C12.9733903,212.705982 6.71799208,206.295994 3.31151296,200.690918 C1.90227474,198.372135 5.59096074,195.021875 8.0442063,196.84375 C38.2390146,219.267578 82.1011654,239.538304 125.529506,239.538304 C154.819967,239.538304 191.046475,227.469543 220.66851,214.867659 C225.146771,212.966167 225.146771,219.180222 224.511585,221.060516 C224.183264,222.03242 209.514625,236.221149 189.247207,247.047411 C170.304273,257.166172 146.397132,264 126.768855,264 Z",fill:"#FF9900"})],-1),E0={class:"amplify-text amplify-authenticator__federated-text"},$0=o.createElementVNode("svg",{"aria-label":"Apple icon",class:"amplify-icon federated-sign-in-icon",fill:"#000",preserveAspectRatio:"xMidYMid",stroke:"#000",strokeWidth:"0",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M747.4 535.7c-.4-68.2 30.5-119.6 92.9-157.5-34.9-50-87.7-77.5-157.3-82.8-65.9-5.2-138 38.4-164.4 38.4-27.9 0-91.7-36.6-141.9-36.6C273.1 298.8 163 379.8 163 544.6c0 48.7 8.9 99 26.7 150.8 23.8 68.2 109.6 235.3 199.1 232.6 46.8-1.1 79.9-33.2 140.8-33.2 59.1 0 89.7 33.2 141.9 33.2 90.3-1.3 167.9-153.2 190.5-221.6-121.1-57.1-114.6-167.2-114.6-170.7zm-105.1-305c50.7-60.2 46.1-115 44.6-134.7-44.8 2.6-96.6 30.5-126.1 64.8-32.5 36.8-51.6 82.3-47.5 133.6 48.4 3.7 92.6-21.2 129-63.7z"})],-1),I0={class:"amplify-text amplify-authenticator__federated-text"},T0=o.createElementVNode("svg",{"aria-label":"Facebook icon",class:"amplify-icon federated-sign-in-icon",viewBox:"0 0 279 538"},[o.createElementVNode("path",{d:"M82.3409742,538 L82.3409742,292.936652 L0,292.936652 L0,196.990154 L82.2410458,196.990154 L82.2410458,126.4295 C82.2410458,44.575144 132.205229,0 205.252865,0 C240.227794,0 270.306232,2.59855099 279,3.79788222 L279,89.2502322 L228.536175,89.2502322 C188.964542,89.2502322 181.270057,108.139699 181.270057,135.824262 L181.270057,196.89021 L276.202006,196.89021 L263.810888,292.836708 L181.16913,292.836708 L181.16913,538 L82.3409742,538 Z",fill:"#1877F2"})],-1),P0={class:"amplify-text amplify-authenticator__federated-text"},N0=o.createElementVNode("svg",{"aria-label":"Google icon",class:"amplify-icon federated-sign-in-icon",viewBox:"0 0 256 262",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},[o.createElementVNode("path",{d:"M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622 38.755 30.023 2.685.268c24.659-22.774 38.875-56.282 38.875-96.027",fill:"#4285F4"}),o.createElementVNode("path",{d:"M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055-34.523 0-63.824-22.773-74.269-54.25l-1.531.13-40.298 31.187-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1",fill:"#34A853"}),o.createElementVNode("path",{d:"M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82 0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602l42.356-32.782",fill:"#FBBC05"}),o.createElementVNode("path",{d:"M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0 79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251",fill:"#EB4335"})],-1),k0={class:"amplify-text amplify-authenticator__federated-text"},x0=o.createElementVNode("hr",{class:"amplify-divider amplify-divider--label amplify-divider--small","aria-orientation":"horizontal","data-size":"small","data-label":"or"},null,-1),qn=o.defineComponent({setup(e){var S;const{state:t}=Ce(),n=$e(Ae),{route:r}=n(),{value:{context:a}}=t,i=(S=a==null?void 0:a.config)==null?void 0:S.socialProviders,s=i==null?void 0:i.includes("amazon"),u=i==null?void 0:i.includes("apple"),c=i==null?void 0:i.includes("facebook"),d=i==null?void 0:i.includes("google"),l=c||d||s||u,h=r==="signUp"?"Up":"In",f=o.computed(()=>gr),p=o.computed(()=>O(`Sign ${h} with Amazon`)),v=o.computed(()=>O(`Sign ${h} with Apple`)),m=o.computed(()=>O(`Sign ${h} with Facebook`)),g=o.computed(()=>O(`Sign ${h} with Google`));return(w,_)=>{const b=ge;return o.unref(l)?(o.openBlock(),o.createBlock(b,{key:0,class:"amplify-flex federated-sign-in-container amplify-authenticator__column amplify-authenticator__sign-in-base"},{default:o.withCtx(()=>[o.unref(s)?(o.openBlock(),o.createBlock(ln,{key:0,provider:o.unref(f).Amazon},{default:o.withCtx(()=>[A0,o.createElementVNode("p",E0,o.toDisplayString(o.unref(p)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),o.unref(u)?(o.openBlock(),o.createBlock(ln,{key:1,provider:o.unref(f).Apple},{default:o.withCtx(()=>[$0,o.createElementVNode("p",I0,o.toDisplayString(o.unref(v)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),o.unref(c)?(o.openBlock(),o.createBlock(ln,{key:2,provider:o.unref(f).Facebook},{default:o.withCtx(()=>[T0,o.createElementVNode("p",P0,o.toDisplayString(o.unref(m)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),o.unref(d)?(o.openBlock(),o.createBlock(ln,{key:3,provider:o.unref(f).Google},{default:o.withCtx(()=>[N0,o.createElementVNode("p",k0,o.toDisplayString(o.unref(g)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),x0]),_:1})):o.createCommentVNode("",!0)}}}),U0={},O0={"data-amplify-label":""};function R0(e,t){return o.openBlock(),o.createElementBlock("label",O0,[o.renderSlot(e.$slots,"default")])}var Wn=Nn(U0,[["render",R0]]);const Yn=o.defineComponent({emits:["update:modelValue"],setup(e,{emit:t}){const n=r=>{t("update:modelValue",r.target.value)};return(r,a)=>(o.openBlock(),o.createElementBlock("input",{onChange:a[0]||(a[0]=i=>n(i)),"data-amplify-input":""},null,32))}}),B0=["aria-label"],V0={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},D0=o.createElementVNode("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"},null,-1),M0=[D0],F0={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},L0=o.createElementVNode("path",{d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z",fill:"none"},null,-1),j0=o.createElementVNode("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"},null,-1),z0=[L0,j0],G0={inheritAttrs:!1},Po=o.defineComponent(At(Ct({},G0),{props:{name:null,label:null,autocomplete:null,ariainvalid:{type:Boolean},labelHidden:{type:Boolean,default:!0},placeholder:null,required:{type:Boolean,default:!0}},setup(e){var w;const t=e,n=O("Show password"),r=O("Hide password"),a=o.ref("password"),i=o.ref(n),s=Math.floor(Math.random()*999999),{name:u,label:c,autocomplete:d,ariainvalid:l,labelHidden:h,placeholder:f,required:p}=o.toRefs(t);let v=o.ref("");function m(){i.value=i.value===n?r:n,a.value=a.value==="password"?"text":"password"}const g=O((w=f==null?void 0:f.value)!=null?w:c.value),S=O(c.value);return(_,b)=>{const C=Wn,$=Yn,A=ge;return o.openBlock(),o.createBlock(A,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield amplify-authenticator__column"},{default:o.withCtx(()=>{var E;return[o.createVNode(C,{class:o.normalizeClass(["amplify-label",{"amplify-visually-hidden":(E=o.unref(h))!=null?E:!0}]),for:"amplify-field-"+o.unref(s)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(S)),1)]),_:1},8,["class","for"]),o.createVNode(A,{class:"amplify-flex amplify-field-group"},{default:o.withCtx(()=>{var T;return[o.createVNode($,o.mergeProps(_.$attrs,{modelValue:o.unref(v),"onUpdate:modelValue":b[0]||(b[0]=x=>o.isRef(v)?v.value=x:v=x),class:"amplify-input amplify-field-group__control","aria-invalid":o.unref(l),id:"amplify-field-"+o.unref(s),"data-amplify-password":"true",name:o.unref(u),autocomplete:o.unref(d),required:(T=o.unref(p))!=null?T:!0,placeholder:o.unref(g),type:a.value}),null,16,["modelValue","aria-invalid","id","name","autocomplete","required","placeholder","type"]),o.createVNode(A,{class:"amplify-field-group__outer-end"},{default:o.withCtx(()=>[o.createElementVNode("button",{"aria-label":i.value,class:"amplify-button amplify-field-group__control amplify-field__show-password amplify-button--fullwidth","data-fullwidth":"false",type:"button",onClick:m},[a.value==="password"?(o.openBlock(),o.createElementBlock("svg",V0,M0)):(o.openBlock(),o.createElementBlock("svg",F0,z0))],8,B0)]),_:1})]}),_:1})]}),_:1})}}})),H0=["value","selected"],K0=o.defineComponent({props:{selectValue:{default:""},options:null},emits:["update:selectValue"],setup(e,{emit:t}){const{options:n,selectValue:r}=e,a=i=>{t("update:selectValue",i.target.value)};return(i,s)=>(o.openBlock(),o.createElementBlock("select",{onChange:s[0]||(s[0]=u=>a(u))},[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(n,(u,c)=>o.createElementVNode("option",{key:c,value:u,selected:u==r?!0:void 0},o.toDisplayString(u),9,H0)),64))],32))}}),q0=o.createTextVNode(o.toDisplayString("Country Code")),W0=o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","data-size":"large",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon amplify-icon--large"},[o.createElementVNode("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})],-1),Y0=o.defineComponent({props:{label:{default:"Username"},name:{default:"username"},placeholder:{default:""},autocomplete:{default:""},labelHidden:{type:Boolean,default:!1},required:{type:Boolean,default:!0},dialCode:null,dialCodeList:null,type:{default:"text"}},setup(e){const{label:t,name:n,placeholder:r,autocomplete:a,labelHidden:i,required:s,dialCode:u,dialCodeList:c}=e,d=Math.floor(Math.random()*999999),l=Math.floor(Math.random()*999999);return(h,f)=>{const p=Wn,v=K0,m=ge,g=Yn;return o.openBlock(),o.createBlock(m,{class:"amplify-flex amplify-field amplify-textfield amplify-phonenumberfield amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(p,o.mergeProps({for:"amplify-field-"+o.unref(d),class:["amplify-label",{"sr-only":i}]},h.$attrs),{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(t))]),_:1},16,["for","class"]),o.createVNode(m,{class:"amplify-flex amplify-field-group"},{default:o.withCtx(()=>[o.createVNode(m,{class:"amplify-field-group__outer-start"},{default:o.withCtx(()=>[e.type==="tel"?(o.openBlock(),o.createBlock(m,{key:0,class:"amplify-flex amplify-field amplify-selectfield amplify-countrycodeselect amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(p,o.mergeProps({for:"amplify-field-"+o.unref(l),class:"amplify-label amplify-visually-hidden"},h.$attrs),{default:o.withCtx(()=>[q0]),_:1},16,["for"]),o.createVNode(m,{class:"amplify-select__wrapper"},{default:o.withCtx(()=>[o.createVNode(v,{class:"amplify-select amplify-field-group__control",id:"amplify-field-"+o.unref(l),autocomplete:"tel-country-code","aria-label":"country code",name:"country_code",options:c,"select-value":u},null,8,["id"]),o.createVNode(m,{class:"amplify-flex amplify-select__icon-wrapper amplify-authenticator__icon-wrapper"},{default:o.withCtx(()=>[W0]),_:1})]),_:1})]),_:1})):o.createCommentVNode("",!0)]),_:1}),o.createVNode(m,{class:"amplify-field-group__field-wrapper"},{default:o.withCtx(()=>[o.createVNode(g,{class:"amplify-input amplify-field-group__control","aria-invalid":"false",id:"amplify-field-"+o.unref(d),autocomplete:a,name:n,required:s!=null?s:!0,type:e.type,placeholder:r},null,8,["id","required","type"])]),_:1})]),_:1})]),_:1})}}}),J0={key:2},cs=o.defineComponent({props:{name:{default:""},formField:{default:()=>({})}},setup(e){const t=e,{name:n,formField:r}=o.toRefs(t),a=$e(Ae),{validationErrors:i}=o.toRefs(a()),{type:s}=r.value,u=o.computed(()=>Ul(i.value[n.value])),c=s==="password";return(d,l)=>{var h;return o.openBlock(),o.createElementBlock(o.Fragment,null,[c?(o.openBlock(),o.createBlock(Po,{key:0,name:o.unref(n),label:o.unref(r).label,placeholder:o.unref(r).placeholder,required:o.unref(r).isRequired,"label-hidden":o.unref(r).labelHidden,autocomplete:o.unref(r).autocomplete,ariainvalid:!!o.unref(i)[o.unref(n)]},null,8,["name","label","placeholder","required","label-hidden","autocomplete","ariainvalid"])):(o.openBlock(),o.createBlock(Y0,{key:1,name:o.unref(n),label:o.unref(r).label,placeholder:o.unref(r).placeholder,required:o.unref(r).isRequired,"label-hidden":o.unref(r).labelHidden,autocomplete:o.unref(r).autocomplete,"dial-code":o.unref(r).dialCode,"dial-code-list":o.unref(r).dialCodeList,type:o.unref(r).type},null,8,["name","label","placeholder","required","label-hidden","autocomplete","dial-code","dial-code-list","type"])),((h=o.unref(u))==null?void 0:h.length)>0?(o.openBlock(),o.createElementBlock("div",J0,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(u),(f,p)=>(o.openBlock(),o.createElementBlock("p",{key:p,role:"alert","data-variation":"error",class:"amplify-text amplify-text--error"},o.toDisplayString(o.unref(O)(f)),1))),128))])):o.createCommentVNode("",!0)],64)}}}),je=o.defineComponent({props:{route:null},setup(e){const t=e,{route:n}=o.toRefs(t),{state:r}=Ce();let a=[];return o.onBeforeMount(()=>{a=iv(n.value,r.value)}),(i,s)=>(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(a),([u,c])=>(o.openBlock(),o.createBlock(cs,{name:u,key:u,formField:c},null,8,["name","formField"]))),128))}}),Z0=o.createElementVNode("legend",{class:"amplify-visually-hidden"},"Sign in",-1),Q0={"data-amplify-footer":""},No=o.defineComponent({emits:["signInSubmit","forgotPasswordClicked","createAccountClicked"],setup(e,{emit:t}){const r=$e(Ae)(),a=o.useAttrs(),i=o.computed(()=>kl("Forgot your password? ")?O("Forgot your password? "):O("Forgot your password?")),s=o.computed(()=>O("Sign in")),u=o.computed(()=>O("Signing in")),{state:c,send:d}=Ce(),l=o.computed(()=>be(c.value)),h=m=>{const{name:g,value:S}=m.target;d({type:"CHANGE",data:{name:g,value:S}})},f=m=>{a!=null&&a.onSignInSubmit?t("signInSubmit",m):p(m)},p=m=>{r.submitForm(Le(m))},v=()=>{a!=null&&a.onForgotPasswordClicked?t("forgotPasswordClicked"):d({type:"RESET_PASSWORD"})};return(m,g)=>{const S=Re,w=Be,_=Se,b=ge,C=Ve,$=De;return o.renderSlot(m.$slots,"signInSlotI",o.normalizeProps(o.guardReactiveProps(m.$attrs)),()=>[o.renderSlot(m.$slots,"header"),o.createVNode(b,o.normalizeProps(o.guardReactiveProps(m.$attrs)),{default:o.withCtx(()=>[o.createVNode(C,{"data-amplify-authenticator-signin":"",onInput:h,onSubmit:o.withModifiers(f,["prevent"]),method:"post"},{formt:o.withCtx(({slotData:A})=>[o.renderSlot(m.$slots,"form",{info:A,onSignInSubmit:f,onInput:h,onForgotPasswordClicked:v})]),default:o.withCtx(()=>[o.createVNode(qn),o.createVNode(b,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(S,{disabled:o.unref(l).matches("signIn.submit"),class:"amplify-flex amplify-authenticator__column"},{fieldSetI:o.withCtx(({slotData:A})=>[o.renderSlot(m.$slots,"signin-fields",{info:A})]),default:o.withCtx(()=>[Z0,o.createVNode(je,{route:"signIn"})]),_:3},8,["disabled"]),o.unref(l).context.remoteError?(o.openBlock(),o.createBlock(w,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(O)(o.unref(l).context.remoteError)),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(_,{disabled:o.unref(l).matches("signIn.submit"),class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!0,loading:!1,variation:"primary"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l).matches("signIn.submit")?o.unref(u):o.unref(s)),1)]),_:1},8,["disabled"])]),_:3})]),_:3},8,["onSubmit"])]),_:3},16),o.createVNode($,null,{default:o.withCtx(()=>[o.renderSlot(m.$slots,"footer",{},()=>[o.createElementVNode("div",Q0,[o.createVNode(_,{onClick:v,class:"amplify-field-group__control amplify-authenticator__font",variation:"link",fullwidth:!0,size:"small",style:{"font-weight":"normal"},type:"button"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(i)),1)]),_:1})])])]),_:3})])}}}),ko=o.defineComponent({setup(e){return(t,n)=>(o.openBlock(),o.createBlock(je,{route:"signUp"}))}}),xo=o.defineComponent({emits:["signUpSubmit"],setup(e,{emit:t}){const n=$e(Ae),r=n(),a=n(),{hasValidationErrors:i,isPending:s,error:u}=o.toRefs(r),c=o.useAttrs(),d=o.computed(()=>O("Create Account")),l=v=>{let{checked:m,name:g,type:S,value:w}=v.target;S==="checkbox"&&!m&&(w=void 0),a.updateForm({name:g,value:w})};function h(v){const{name:m}=v.target;a.updateBlur({name:m})}const f=v=>{c!=null&&c.onSignUpSubmit?t("signUpSubmit",v):p(v)},p=v=>{a.submitForm(Le(v))};return(v,m)=>{const g=Re,S=Be,w=Se,_=ge,b=Ve,C=De;return o.renderSlot(v.$slots,"signUpSlotI",o.normalizeProps(o.guardReactiveProps(v.$attrs)),()=>[o.renderSlot(v.$slots,"header"),o.createVNode(_,o.normalizeProps(o.guardReactiveProps(v.$attrs)),{default:o.withCtx(()=>[o.createVNode(b,{onInput:l,onBlurCapture:h,onSubmit:o.withModifiers(f,["prevent"])},{default:o.withCtx(()=>[o.createVNode(qn),o.createVNode(_,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(g,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(s)},{fieldSetI:o.withCtx(({slotData:$})=>[o.renderSlot(v.$slots,"signup-fields",{info:$})]),default:o.withCtx(()=>[o.createVNode(ko)]),_:3},8,["disabled"]),o.unref(u)?(o.openBlock(),o.createBlock(S,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(O)(o.unref(u))),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(w,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!0,loading:!1,variation:"primary",style:{"border-radius":"0px","font-weight":"normal"},disabled:o.unref(s)||o.unref(i)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1},8,["disabled"])]),_:3})]),_:3},8,["onSubmit"])]),_:3},16),o.createVNode(C,null,{default:o.withCtx(()=>[o.renderSlot(v.$slots,"footer")]),_:3})])}}}),X0=o.defineComponent({props:{label:null,id:null,active:{type:Boolean,default:!1}},setup(e){const t=e,{id:n,label:r}=t,{active:a}=o.toRefs(t);return(i,s)=>{const u=ge;return o.openBlock(),o.createBlock(u,{tabindex:o.unref(a)?0:-1,"data-state":o.unref(a)?"active":"inactive","aria-selected":o.unref(a)?"true":"false","aria-controls":`radix-id-${o.unref(n)}-8-content-0`,id:`radix-id-${o.unref(n)}-8-trigger-0`,"data-orientation":"horizontal",role:"tab",class:"amplify-tabs-item","data-spacing":"equal","data-radix-collection-item":""},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(r)),1)]),_:1},8,["tabindex","data-state","aria-selected","aria-controls","id"])}}}),eC={};function tC(e,t){const n=ge;return o.openBlock(),o.createBlock(n,{tabindex:"0","aria-orientation":"horizontal","data-orientation":"horizontal",class:"amplify-authenticator__tabs",role:"tablist"},{default:o.withCtx(()=>[o.createVNode(n,{class:"amplify-flex amplify-tabs amplify-authenticator__tabs-wrapper","data-indicator-position":"top"},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3})]),_:3})}var nC=Nn(eC,[["render",tC]]);const Ze=o.defineComponent({props:{level:{type:Number,default:1}},inheritAttrs:!1,setup(e,{slots:t,attrs:n}){var s,u;const r=t.default?t.default():[],a=t.headingI?t.headingI():[],i=`${n.class||""} amplify-heading--${e.level}`;if(((u=(s=a[0])==null?void 0:s.children)==null?void 0:u.length)===0)a[0].children=[o.h(`h${e.level}`,At(Ct({},n),{class:i}),[r])];else return()=>o.h(`h${e.level}`,At(Ct({"data-amplify-heading":""},n),{class:i}),[a[0]?o.h(a[0].children[0]):o.h(r[0])]);return()=>a}}),rC={};function oC(e,t){return o.renderSlot(e.$slots,"textI",o.normalizeProps(o.guardReactiveProps(e.$attrs)),()=>[o.createElementVNode("span",o.mergeProps(e.$attrs,{"data-amplify-text":""}),[o.renderSlot(e.$slots,"default")],16)])}var ls=Nn(rC,[["render",oC]]);const Uo=o.defineComponent({emits:["confirmSignUpSubmit","lostCodeClicked"],setup(e,{emit:t}){const n=o.useAttrs(),r=$e(Ae),{isPending:a,error:i,codeDeliveryDetails:s}=o.toRefs(r()),{submitForm:u,updateForm:c,resendCode:d}=r();Ce();const l=o.computed(()=>{var $,A;return(($=s.value)==null?void 0:$.DeliveryMedium)==="EMAIL"?O("We Emailed You"):((A=s.value)==null?void 0:A.DeliveryMedium)==="SMS"?O("We Texted You"):O("We Sent A Code")}),h=o.computed(()=>O("Resend Code")),f=o.computed(()=>O("Confirm")),p=O("Your code is on the way. To log in, enter the code we emailed to"),v=O("Your code is on the way. To log in, enter the code we texted to"),m=O("Your code is on the way. To log in, enter the code we sent you. It may take a minute to arrive."),g=O("It may take a minute to arrive."),S=o.computed(()=>{var $,A,E,T;return(($=s.value)==null?void 0:$.DeliveryMedium)==="EMAIL"?`${p} ${(A=s.value)==null?void 0:A.Destination}. ${g}`:((E=s.value)==null?void 0:E.DeliveryMedium)==="SMS"?`${v} ${(T=s.value)==null?void 0:T.Destination}. ${g}`:O(`${m}`)}),w=$=>{const{name:A,value:E}=$.target;c({name:A,value:E})},_=$=>{n!=null&&n.onConfirmSignUpSubmit?t("confirmSignUpSubmit",$):b($)},b=$=>{u(Le($))},C=()=>{n!=null&&n.onLostCodeClicked?t("lostCodeClicked"):d()};return($,A)=>{const E=Ze,T=ls,x=Re,B=Be,V=Se,L=De,oe=ge,z=Ve;return o.renderSlot($.$slots,"confirmSignUpSlotI",o.normalizeProps(o.guardReactiveProps($.$attrs)),()=>[o.createVNode(oe,o.normalizeProps(o.guardReactiveProps($.$attrs)),{default:o.withCtx(()=>[o.createVNode(z,{onInput:w,onSubmit:o.withModifiers(_,["prevent"])},{default:o.withCtx(()=>[o.createVNode(oe,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot($.$slots,"header",{},()=>[o.createVNode(E,{class:"amplify-heading amplify-authenticator__heading",level:3},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1})]),o.createVNode(T,{class:"amplify-authenticator__subtitle"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(S)),1)]),_:1}),o.createVNode(x,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(a)},{default:o.withCtx(()=>[o.createVNode(je,{route:"confirmSignUp"})]),_:1},8,["disabled"]),o.createVNode(L,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.unref(i)?(o.openBlock(),o.createBlock(B,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(O)(o.unref(i))),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(V,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",type:"submit",disabled:o.unref(a)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(f)),1)]),_:1},8,["disabled"]),o.createVNode(V,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"default",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(C,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(h)),1)]),_:1},8,["onClick"]),o.renderSlot($.$slots,"footer",{onConfirmSignUpSubmit:_,onLostCodeClicked:C})]),_:3})]),_:3})]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Oo=o.defineComponent({emits:["confirmSignInSubmit","backToSignInClicked"],setup(e,{emit:t}){const n=o.useAttrs(),{state:r,send:a}=Ce(),s=$e(Ae)(),u=o.computed(()=>be(r.value)),c=u.value.context.challengeName;let d="SMS";c===He.SOFTWARE_TOKEN_MFA&&(d="TOTP");const l=`Confirm ${d} Code`,h=o.computed(()=>O("Back to Sign In")),f=o.computed(()=>O("Confirm")),p=S=>{const{name:w,value:_}=S.target;a({type:"CHANGE",data:{name:w,value:_}})},v=S=>{n!=null&&n.onConfirmSignInSubmit?t("confirmSignInSubmit",S):m(S)},m=S=>{s.submitForm(Le(S))},g=()=>{n!=null&&n.onBackToSignInClicked?t("backToSignInClicked"):a({type:"SIGN_IN"})};return(S,w)=>{const _=Ze,b=ge,C=Be,$=Se,A=De,E=Re,T=Ve;return o.renderSlot(S.$slots,"confirmSignInSlotI",o.normalizeProps(o.guardReactiveProps(S.$attrs)),()=>[o.createVNode(b,o.normalizeProps(o.guardReactiveProps(S.$attrs)),{default:o.withCtx(()=>[o.createVNode(T,{"data-amplify-authenticator-confirmsignin":"",onInput:p,onSubmit:o.withModifiers(v,["prevent"])},{default:o.withCtx(()=>[o.createVNode(E,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(u).matches("confirmSignIn.pending")},{default:o.withCtx(()=>[o.renderSlot(S.$slots,"header",{},()=>[o.createVNode(_,{level:3,class:"amplify-heading"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(l))]),_:1})]),o.createVNode(b,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(je,{route:"confirmSignIn"})]),_:1}),o.createVNode(A,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var x,B;return[(B=(x=o.unref(u))==null?void 0:x.context)!=null&&B.remoteError?(o.openBlock(),o.createBlock(C,{key:0},{default:o.withCtx(()=>{var V,L;return[o.createTextVNode(o.toDisplayString(o.unref(O)((L=(V=o.unref(u))==null?void 0:V.context)==null?void 0:L.remoteError)),1)]}),_:1})):o.createCommentVNode("",!0),o.createVNode($,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",style:{"font-weight":"normal"},disabled:o.unref(u).matches("confirmSignIn.pending")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(f)),1)]),_:1},8,["disabled"]),o.createVNode($,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(g,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(h)),1)]),_:1},8,["onClick"]),o.renderSlot(S.$slots,"footer",{onBackToSignInClicked:g,onConfirmSignInSubmit:v})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}});var zt={},aC=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},ds={},Ee={};let Ro;const iC=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Ee.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};Ee.getSymbolTotalCodewords=function(t){return iC[t]};Ee.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};Ee.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Ro=t};Ee.isKanjiModeEnabled=function(){return typeof Ro!="undefined"};Ee.toSJIS=function(t){return Ro(t)};var Jn={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(r){return r&&typeof r.bit!="undefined"&&r.bit>=0&&r.bit<4},e.from=function(r,a){if(e.isValid(r))return r;try{return t(r)}catch{return a}}})(Jn);function fs(){this.buffer=[],this.length=0}fs.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var sC=fs;function Gt(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}Gt.prototype.set=function(e,t,n,r){const a=e*this.size+t;this.data[a]=n,r&&(this.reservedBit[a]=!0)};Gt.prototype.get=function(e,t){return this.data[e*this.size+t]};Gt.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};Gt.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var uC=Gt,ps={};(function(e){const t=Ee.getSymbolSize;e.getRowColCoords=function(r){if(r===1)return[];const a=Math.floor(r/7)+2,i=t(r),s=i===145?26:Math.ceil((i-13)/(2*a-2))*2,u=[i-7];for(let c=1;c<a-1;c++)u[c]=u[c-1]-s;return u.push(6),u.reverse()},e.getPositions=function(r){const a=[],i=e.getRowColCoords(r),s=i.length;for(let u=0;u<s;u++)for(let c=0;c<s;c++)u===0&&c===0||u===0&&c===s-1||u===s-1&&c===0||a.push([i[u],i[c]]);return a}})(ps);var hs={};const cC=Ee.getSymbolSize,Ja=7;hs.getPositions=function(t){const n=cC(t);return[[0,0],[n-Ja,0],[0,n-Ja]]};var ms={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(a){return a!=null&&a!==""&&!isNaN(a)&&a>=0&&a<=7},e.from=function(a){return e.isValid(a)?parseInt(a,10):void 0},e.getPenaltyN1=function(a){const i=a.size;let s=0,u=0,c=0,d=null,l=null;for(let h=0;h<i;h++){u=c=0,d=l=null;for(let f=0;f<i;f++){let p=a.get(h,f);p===d?u++:(u>=5&&(s+=t.N1+(u-5)),d=p,u=1),p=a.get(f,h),p===l?c++:(c>=5&&(s+=t.N1+(c-5)),l=p,c=1)}u>=5&&(s+=t.N1+(u-5)),c>=5&&(s+=t.N1+(c-5))}return s},e.getPenaltyN2=function(a){const i=a.size;let s=0;for(let u=0;u<i-1;u++)for(let c=0;c<i-1;c++){const d=a.get(u,c)+a.get(u,c+1)+a.get(u+1,c)+a.get(u+1,c+1);(d===4||d===0)&&s++}return s*t.N2},e.getPenaltyN3=function(a){const i=a.size;let s=0,u=0,c=0;for(let d=0;d<i;d++){u=c=0;for(let l=0;l<i;l++)u=u<<1&2047|a.get(d,l),l>=10&&(u===1488||u===93)&&s++,c=c<<1&2047|a.get(l,d),l>=10&&(c===1488||c===93)&&s++}return s*t.N3},e.getPenaltyN4=function(a){let i=0;const s=a.data.length;for(let c=0;c<s;c++)i+=a.data[c];return Math.abs(Math.ceil(i*100/s/5)-10)*t.N4};function n(r,a,i){switch(r){case e.Patterns.PATTERN000:return(a+i)%2===0;case e.Patterns.PATTERN001:return a%2===0;case e.Patterns.PATTERN010:return i%3===0;case e.Patterns.PATTERN011:return(a+i)%3===0;case e.Patterns.PATTERN100:return(Math.floor(a/2)+Math.floor(i/3))%2===0;case e.Patterns.PATTERN101:return a*i%2+a*i%3===0;case e.Patterns.PATTERN110:return(a*i%2+a*i%3)%2===0;case e.Patterns.PATTERN111:return(a*i%3+(a+i)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}e.applyMask=function(a,i){const s=i.size;for(let u=0;u<s;u++)for(let c=0;c<s;c++)i.isReserved(c,u)||i.xor(c,u,n(a,c,u))},e.getBestMask=function(a,i){const s=Object.keys(e.Patterns).length;let u=0,c=1/0;for(let d=0;d<s;d++){i(d),e.applyMask(d,a);const l=e.getPenaltyN1(a)+e.getPenaltyN2(a)+e.getPenaltyN3(a)+e.getPenaltyN4(a);e.applyMask(d,a),l<c&&(c=l,u=d)}return u}})(ms);var Zn={};const Ye=Jn,dn=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],fn=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Zn.getBlocksCount=function(t,n){switch(n){case Ye.L:return dn[(t-1)*4+0];case Ye.M:return dn[(t-1)*4+1];case Ye.Q:return dn[(t-1)*4+2];case Ye.H:return dn[(t-1)*4+3];default:return}};Zn.getTotalCodewordsCount=function(t,n){switch(n){case Ye.L:return fn[(t-1)*4+0];case Ye.M:return fn[(t-1)*4+1];case Ye.Q:return fn[(t-1)*4+2];case Ye.H:return fn[(t-1)*4+3];default:return}};var gs={},Qn={};const kt=new Uint8Array(512),Tn=new Uint8Array(256);(function(){let t=1;for(let n=0;n<255;n++)kt[n]=t,Tn[t]=n,t<<=1,t&256&&(t^=285);for(let n=255;n<512;n++)kt[n]=kt[n-255]})();Qn.log=function(t){if(t<1)throw new Error("log("+t+")");return Tn[t]};Qn.exp=function(t){return kt[t]};Qn.mul=function(t,n){return t===0||n===0?0:kt[Tn[t]+Tn[n]]};(function(e){const t=Qn;e.mul=function(r,a){const i=new Uint8Array(r.length+a.length-1);for(let s=0;s<r.length;s++)for(let u=0;u<a.length;u++)i[s+u]^=t.mul(r[s],a[u]);return i},e.mod=function(r,a){let i=new Uint8Array(r);for(;i.length-a.length>=0;){const s=i[0];for(let c=0;c<a.length;c++)i[c]^=t.mul(a[c],s);let u=0;for(;u<i.length&&i[u]===0;)u++;i=i.slice(u)}return i},e.generateECPolynomial=function(r){let a=new Uint8Array([1]);for(let i=0;i<r;i++)a=e.mul(a,new Uint8Array([1,t.exp(i)]));return a}})(gs);const vs=gs;function Bo(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}Bo.prototype.initialize=function(t){this.degree=t,this.genPoly=vs.generateECPolynomial(this.degree)};Bo.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const n=new Uint8Array(t.length+this.degree);n.set(t);const r=vs.mod(n,this.genPoly),a=this.degree-r.length;if(a>0){const i=new Uint8Array(this.degree);return i.set(r,a),i}return r};var lC=Bo,ys={},Qe={},Vo={};Vo.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var ze={};const ws="[0-9]+",dC="[A-Z $%*+\\-./:]+";let Ot="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Ot=Ot.replace(/u/g,"\\u");const fC="(?:(?![A-Z0-9 $%*+\\-./:]|"+Ot+`)(?:.|[\r
|
|
45
|
+
]))+`;ze.KANJI=new RegExp(Ot,"g");ze.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");ze.BYTE=new RegExp(fC,"g");ze.NUMERIC=new RegExp(ws,"g");ze.ALPHANUMERIC=new RegExp(dC,"g");const pC=new RegExp("^"+Ot+"$"),hC=new RegExp("^"+ws+"$"),mC=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");ze.testKanji=function(t){return pC.test(t)};ze.testNumeric=function(t){return hC.test(t)};ze.testAlphanumeric=function(t){return mC.test(t)};(function(e){const t=Vo,n=ze;e.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(i,s){if(!i.ccBits)throw new Error("Invalid mode: "+i);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?i.ccBits[0]:s<27?i.ccBits[1]:i.ccBits[2]},e.getBestModeForData=function(i){return n.testNumeric(i)?e.NUMERIC:n.testAlphanumeric(i)?e.ALPHANUMERIC:n.testKanji(i)?e.KANJI:e.BYTE},e.toString=function(i){if(i&&i.id)return i.id;throw new Error("Invalid mode")},e.isValid=function(i){return i&&i.bit&&i.ccBits};function r(a){if(typeof a!="string")throw new Error("Param is not a string");switch(a.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+a)}}e.from=function(i,s){if(e.isValid(i))return i;try{return r(i)}catch{return s}}})(Qe);(function(e){const t=Ee,n=Zn,r=Jn,a=Qe,i=Vo,s=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,u=t.getBCHDigit(s);function c(f,p,v){for(let m=1;m<=40;m++)if(p<=e.getCapacity(m,v,f))return m}function d(f,p){return a.getCharCountIndicator(f,p)+4}function l(f,p){let v=0;return f.forEach(function(m){v+=d(m.mode,p)+m.getBitsLength()}),v}function h(f,p){for(let v=1;v<=40;v++)if(l(f,v)<=e.getCapacity(v,p,a.MIXED))return v}e.from=function(p,v){return i.isValid(p)?parseInt(p,10):v},e.getCapacity=function(p,v,m){if(!i.isValid(p))throw new Error("Invalid QR Code version");typeof m=="undefined"&&(m=a.BYTE);const g=t.getSymbolTotalCodewords(p),S=n.getTotalCodewordsCount(p,v),w=(g-S)*8;if(m===a.MIXED)return w;const _=w-d(m,p);switch(m){case a.NUMERIC:return Math.floor(_/10*3);case a.ALPHANUMERIC:return Math.floor(_/11*2);case a.KANJI:return Math.floor(_/13);case a.BYTE:default:return Math.floor(_/8)}},e.getBestVersionForData=function(p,v){let m;const g=r.from(v,r.M);if(Array.isArray(p)){if(p.length>1)return h(p,g);if(p.length===0)return 1;m=p[0]}else m=p;return c(m.mode,m.getLength(),g)},e.getEncodedBits=function(p){if(!i.isValid(p)||p<7)throw new Error("Invalid QR Code version");let v=p<<12;for(;t.getBCHDigit(v)-u>=0;)v^=s<<t.getBCHDigit(v)-u;return p<<12|v}})(ys);var Ss={};const Mr=Ee,_s=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,gC=1<<14|1<<12|1<<10|1<<4|1<<1,Za=Mr.getBCHDigit(_s);Ss.getEncodedBits=function(t,n){const r=t.bit<<3|n;let a=r<<10;for(;Mr.getBCHDigit(a)-Za>=0;)a^=_s<<Mr.getBCHDigit(a)-Za;return(r<<10|a)^gC};var bs={};const vC=Qe;function ct(e){this.mode=vC.NUMERIC,this.data=e.toString()}ct.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};ct.prototype.getLength=function(){return this.data.length};ct.prototype.getBitsLength=function(){return ct.getBitsLength(this.data.length)};ct.prototype.write=function(t){let n,r,a;for(n=0;n+3<=this.data.length;n+=3)r=this.data.substr(n,3),a=parseInt(r,10),t.put(a,10);const i=this.data.length-n;i>0&&(r=this.data.substr(n),a=parseInt(r,10),t.put(a,i*3+1))};var yC=ct;const wC=Qe,dr=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function lt(e){this.mode=wC.ALPHANUMERIC,this.data=e}lt.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};lt.prototype.getLength=function(){return this.data.length};lt.prototype.getBitsLength=function(){return lt.getBitsLength(this.data.length)};lt.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let r=dr.indexOf(this.data[n])*45;r+=dr.indexOf(this.data[n+1]),t.put(r,11)}this.data.length%2&&t.put(dr.indexOf(this.data[n]),6)};var SC=lt,_C=function(t){for(var n=[],r=t.length,a=0;a<r;a++){var i=t.charCodeAt(a);if(i>=55296&&i<=56319&&r>a+1){var s=t.charCodeAt(a+1);s>=56320&&s<=57343&&(i=(i-55296)*1024+s-56320+65536,a+=1)}if(i<128){n.push(i);continue}if(i<2048){n.push(i>>6|192),n.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){n.push(i>>12|224),n.push(i>>6&63|128),n.push(i&63|128);continue}if(i>=65536&&i<=1114111){n.push(i>>18|240),n.push(i>>12&63|128),n.push(i>>6&63|128),n.push(i&63|128);continue}n.push(239,191,189)}return new Uint8Array(n).buffer};const bC=_C,CC=Qe;function dt(e){this.mode=CC.BYTE,this.data=new Uint8Array(bC(e))}dt.getBitsLength=function(t){return t*8};dt.prototype.getLength=function(){return this.data.length};dt.prototype.getBitsLength=function(){return dt.getBitsLength(this.data.length)};dt.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)};var AC=dt;const EC=Qe,$C=Ee;function ft(e){this.mode=EC.KANJI,this.data=e}ft.getBitsLength=function(t){return t*13};ft.prototype.getLength=function(){return this.data.length};ft.prototype.getBitsLength=function(){return ft.getBitsLength(this.data.length)};ft.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=$C.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
|
|
46
|
+
Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};var IC=ft,Cs={exports:{}};(function(e){var t={single_source_shortest_paths:function(n,r,a){var i={},s={};s[r]=0;var u=t.PriorityQueue.make();u.push(r,0);for(var c,d,l,h,f,p,v,m,g;!u.empty();){c=u.pop(),d=c.value,h=c.cost,f=n[d]||{};for(l in f)f.hasOwnProperty(l)&&(p=f[l],v=h+p,m=s[l],g=typeof s[l]=="undefined",(g||m>v)&&(s[l]=v,u.push(l,v),i[l]=d))}if(typeof a!="undefined"&&typeof s[a]=="undefined"){var S=["Could not find a path from ",r," to ",a,"."].join("");throw new Error(S)}return i},extract_shortest_path_from_predecessor_list:function(n,r){for(var a=[],i=r;i;)a.push(i),i=n[i];return a.reverse(),a},find_path:function(n,r,a){var i=t.single_source_shortest_paths(n,r,a);return t.extract_shortest_path_from_predecessor_list(i,a)},PriorityQueue:{make:function(n){var r=t.PriorityQueue,a={},i;n=n||{};for(i in r)r.hasOwnProperty(i)&&(a[i]=r[i]);return a.queue=[],a.sorter=n.sorter||r.default_sorter,a},default_sorter:function(n,r){return n.cost-r.cost},push:function(n,r){var a={value:n,cost:r};this.queue.push(a),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(Cs);(function(e){const t=Qe,n=yC,r=SC,a=AC,i=IC,s=ze,u=Ee,c=Cs.exports;function d(S){return unescape(encodeURIComponent(S)).length}function l(S,w,_){const b=[];let C;for(;(C=S.exec(_))!==null;)b.push({data:C[0],index:C.index,mode:w,length:C[0].length});return b}function h(S){const w=l(s.NUMERIC,t.NUMERIC,S),_=l(s.ALPHANUMERIC,t.ALPHANUMERIC,S);let b,C;return u.isKanjiModeEnabled()?(b=l(s.BYTE,t.BYTE,S),C=l(s.KANJI,t.KANJI,S)):(b=l(s.BYTE_KANJI,t.BYTE,S),C=[]),w.concat(_,b,C).sort(function(A,E){return A.index-E.index}).map(function(A){return{data:A.data,mode:A.mode,length:A.length}})}function f(S,w){switch(w){case t.NUMERIC:return n.getBitsLength(S);case t.ALPHANUMERIC:return r.getBitsLength(S);case t.KANJI:return i.getBitsLength(S);case t.BYTE:return a.getBitsLength(S)}}function p(S){return S.reduce(function(w,_){const b=w.length-1>=0?w[w.length-1]:null;return b&&b.mode===_.mode?(w[w.length-1].data+=_.data,w):(w.push(_),w)},[])}function v(S){const w=[];for(let _=0;_<S.length;_++){const b=S[_];switch(b.mode){case t.NUMERIC:w.push([b,{data:b.data,mode:t.ALPHANUMERIC,length:b.length},{data:b.data,mode:t.BYTE,length:b.length}]);break;case t.ALPHANUMERIC:w.push([b,{data:b.data,mode:t.BYTE,length:b.length}]);break;case t.KANJI:w.push([b,{data:b.data,mode:t.BYTE,length:d(b.data)}]);break;case t.BYTE:w.push([{data:b.data,mode:t.BYTE,length:d(b.data)}])}}return w}function m(S,w){const _={},b={start:{}};let C=["start"];for(let $=0;$<S.length;$++){const A=S[$],E=[];for(let T=0;T<A.length;T++){const x=A[T],B=""+$+T;E.push(B),_[B]={node:x,lastCount:0},b[B]={};for(let V=0;V<C.length;V++){const L=C[V];_[L]&&_[L].node.mode===x.mode?(b[L][B]=f(_[L].lastCount+x.length,x.mode)-f(_[L].lastCount,x.mode),_[L].lastCount+=x.length):(_[L]&&(_[L].lastCount=x.length),b[L][B]=f(x.length,x.mode)+4+t.getCharCountIndicator(x.mode,w))}}C=E}for(let $=0;$<C.length;$++)b[C[$]].end=0;return{map:b,table:_}}function g(S,w){let _;const b=t.getBestModeForData(S);if(_=t.from(w,b),_!==t.BYTE&&_.bit<b.bit)throw new Error('"'+S+'" cannot be encoded with mode '+t.toString(_)+`.
|
|
47
|
+
Suggested mode is: `+t.toString(b));switch(_===t.KANJI&&!u.isKanjiModeEnabled()&&(_=t.BYTE),_){case t.NUMERIC:return new n(S);case t.ALPHANUMERIC:return new r(S);case t.KANJI:return new i(S);case t.BYTE:return new a(S)}}e.fromArray=function(w){return w.reduce(function(_,b){return typeof b=="string"?_.push(g(b,null)):b.data&&_.push(g(b.data,b.mode)),_},[])},e.fromString=function(w,_){const b=h(w,u.isKanjiModeEnabled()),C=v(b),$=m(C,_),A=c.find_path($.map,"start","end"),E=[];for(let T=1;T<A.length-1;T++)E.push($.table[A[T]].node);return e.fromArray(p(E))},e.rawSplit=function(w){return e.fromArray(h(w,u.isKanjiModeEnabled()))}})(bs);const Xn=Ee,fr=Jn,TC=sC,PC=uC,NC=ps,kC=hs,Fr=ms,Lr=Zn,xC=lC,Pn=ys,UC=Ss,OC=Qe,pr=bs;function RC(e,t){const n=e.size,r=kC.getPositions(t);for(let a=0;a<r.length;a++){const i=r[a][0],s=r[a][1];for(let u=-1;u<=7;u++)if(!(i+u<=-1||n<=i+u))for(let c=-1;c<=7;c++)s+c<=-1||n<=s+c||(u>=0&&u<=6&&(c===0||c===6)||c>=0&&c<=6&&(u===0||u===6)||u>=2&&u<=4&&c>=2&&c<=4?e.set(i+u,s+c,!0,!0):e.set(i+u,s+c,!1,!0))}}function BC(e){const t=e.size;for(let n=8;n<t-8;n++){const r=n%2===0;e.set(n,6,r,!0),e.set(6,n,r,!0)}}function VC(e,t){const n=NC.getPositions(t);for(let r=0;r<n.length;r++){const a=n[r][0],i=n[r][1];for(let s=-2;s<=2;s++)for(let u=-2;u<=2;u++)s===-2||s===2||u===-2||u===2||s===0&&u===0?e.set(a+s,i+u,!0,!0):e.set(a+s,i+u,!1,!0)}}function DC(e,t){const n=e.size,r=Pn.getEncodedBits(t);let a,i,s;for(let u=0;u<18;u++)a=Math.floor(u/3),i=u%3+n-8-3,s=(r>>u&1)===1,e.set(a,i,s,!0),e.set(i,a,s,!0)}function hr(e,t,n){const r=e.size,a=UC.getEncodedBits(t,n);let i,s;for(i=0;i<15;i++)s=(a>>i&1)===1,i<6?e.set(i,8,s,!0):i<8?e.set(i+1,8,s,!0):e.set(r-15+i,8,s,!0),i<8?e.set(8,r-i-1,s,!0):i<9?e.set(8,15-i-1+1,s,!0):e.set(8,15-i-1,s,!0);e.set(r-8,8,1,!0)}function MC(e,t){const n=e.size;let r=-1,a=n-1,i=7,s=0;for(let u=n-1;u>0;u-=2)for(u===6&&u--;;){for(let c=0;c<2;c++)if(!e.isReserved(a,u-c)){let d=!1;s<t.length&&(d=(t[s]>>>i&1)===1),e.set(a,u-c,d),i--,i===-1&&(s++,i=7)}if(a+=r,a<0||n<=a){a-=r,r=-r;break}}}function FC(e,t,n){const r=new TC;n.forEach(function(c){r.put(c.mode.bit,4),r.put(c.getLength(),OC.getCharCountIndicator(c.mode,e)),c.write(r)});const a=Xn.getSymbolTotalCodewords(e),i=Lr.getTotalCodewordsCount(e,t),s=(a-i)*8;for(r.getLengthInBits()+4<=s&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);const u=(s-r.getLengthInBits())/8;for(let c=0;c<u;c++)r.put(c%2?17:236,8);return LC(r,e,t)}function LC(e,t,n){const r=Xn.getSymbolTotalCodewords(t),a=Lr.getTotalCodewordsCount(t,n),i=r-a,s=Lr.getBlocksCount(t,n),u=r%s,c=s-u,d=Math.floor(r/s),l=Math.floor(i/s),h=l+1,f=d-l,p=new xC(f);let v=0;const m=new Array(s),g=new Array(s);let S=0;const w=new Uint8Array(e.buffer);for(let A=0;A<s;A++){const E=A<c?l:h;m[A]=w.slice(v,v+E),g[A]=p.encode(m[A]),v+=E,S=Math.max(S,E)}const _=new Uint8Array(r);let b=0,C,$;for(C=0;C<S;C++)for($=0;$<s;$++)C<m[$].length&&(_[b++]=m[$][C]);for(C=0;C<f;C++)for($=0;$<s;$++)_[b++]=g[$][C];return _}function jC(e,t,n,r){let a;if(Array.isArray(e))a=pr.fromArray(e);else if(typeof e=="string"){let d=t;if(!d){const l=pr.rawSplit(e);d=Pn.getBestVersionForData(l,n)}a=pr.fromString(e,d||40)}else throw new Error("Invalid data");const i=Pn.getBestVersionForData(a,n);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=i;else if(t<i)throw new Error(`
|
|
48
48
|
The chosen QR Code version cannot contain this amount of data.
|
|
49
49
|
Minimum version required to store current data is: `+i+`.
|
|
50
|
-
`);const s=
|
|
51
|
-
`;return typeof r=="function"&&r(null,f),f};const GC=oC,jr=ds,$s=As,HC=Es;function Mo(e,t,n,r,a){const i=[].slice.call(arguments,1),s=i.length,u=typeof i[s-1]=="function";if(!u&&!GC())throw new Error("Callback required as last argument");if(u){if(s<2)throw new Error("Too few arguments provided");s===2?(a=n,n=t,t=r=void 0):s===3&&(t.getContext&&typeof a=="undefined"?(a=r,r=void 0):(a=r,r=n,n=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(n=t,t=r=void 0):s===2&&!t.getContext&&(r=n,n=t,t=void 0),new Promise(function(c,d){try{const l=jr.create(n,r);c(e(l,t,r))}catch(l){d(l)}})}try{const c=jr.create(n,r);a(null,e(c,t,r))}catch(c){a(c)}}zt.create=jr.create;zt.toCanvas=Mo.bind(null,$s.render);zt.toDataURL=Mo.bind(null,$s.renderToDataURL);zt.toString=Mo.bind(null,function(e,t,n){return HC.render(e,n)});const KC={key:0},qC=o.createTextVNode(" Setup TOTP "),WC=["src"],YC={"data-amplify-copy-tooltip":""},JC=o.createElementVNode("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M16 1H4C2.9 1 2 1.9 2 3V17H4V3H16V1ZM15 5H8C6.9 5 6.01 5.9 6.01 7L6 21C6 22.1 6.89 23 7.99 23H19C20.1 23 21 22.1 21 21V11L15 5ZM8 21V7H14V12H19V21H8Z"})],-1),ZC=o.defineComponent({emits:["confirmSetupTOTPSubmit","backToSignInClicked"],setup(e,{emit:t}){var $,A,E;const r=$e(Ae)(),a=o.useAttrs(),{state:i,send:s}=Ce(),{value:{context:u}}=i,c=(A=($=u==null?void 0:u.config)==null?void 0:$.formFields)==null?void 0:A.setupTOTP,d=c==null?void 0:c.QR,l=c==null?void 0:c.confirmation_code,h=o.computed(()=>be(i.value));let f=o.reactive({qrCodeImageSource:"",isLoading:!0}),p=o.ref(""),v=o.ref(O("COPY"));function g(){navigator.clipboard.writeText(p.value),v.value=O("COPIED")}o.onMounted(async()=>{var B,V;const T=new re.Logger("SetupTOTP-logger"),{user:x}=h.value.context;if(!!x)try{p.value=await re.Auth.setupTOTP(x);const L=(B=d==null?void 0:d.totpIssuer)!=null?B:"AWSCognito",oe=(V=d==null?void 0:d.totpUsername)!=null?V:x.username,z=encodeURI(`otpauth://totp/${L}:${oe}?secret=${p.value}&issuer=${L}`);f.qrCodeImageSource=await zt.toDataURL(z)}catch(L){T.error(L)}finally{f.isLoading=!1}});const m=o.computed(()=>O("Back to Sign In")),S=o.computed(()=>O("Confirm"));o.computed(()=>O("Code")),(E=l==null?void 0:l.label)!=null||O("Code *"),l==null||l.labelHidden;const w=T=>{const{name:x,value:B}=T.target;s({type:"CHANGE",data:{name:x,value:B}})},_=T=>{a!=null&&a.onConfirmSetupTOTPSubmit?t("confirmSetupTOTPSubmit",T):b(T)},b=T=>{r.submitForm(Le(T))},C=()=>{a!=null&&a.onBackToSignInClicked?t("backToSignInClicked"):s({type:"SIGN_IN"})};return(T,x)=>{const B=Ze,V=ge,L=Be,oe=Se,z=De,me=Re,Xe=Ve;return o.renderSlot(T.$slots,"confirmSetupTOTPI",o.normalizeProps(o.guardReactiveProps(T.$attrs)),()=>[o.createVNode(V,o.normalizeProps(o.guardReactiveProps(T.$attrs)),{default:o.withCtx(()=>[o.createVNode(Xe,{"data-amplify-authenticator-setup-totp":"",onInput:w,onSubmit:o.withModifiers(_,["prevent"])},{default:o.withCtx(()=>[o.createVNode(me,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(h).matches("confirmSignIn.pending")},{default:o.withCtx(()=>[o.unref(f).isLoading?(o.openBlock(),o.createElementBlock("p",KC,"Loading...")):(o.openBlock(),o.createBlock(V,{key:1,class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(T.$slots,"header",{},()=>[o.createVNode(B,{class:"amplify-heading",level:3},{default:o.withCtx(()=>[qC]),_:1})]),o.createVNode(V,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createElementVNode("img",{class:"amplify-image","data-amplify-qrcode":"",src:o.unref(f).qrCodeImageSource,alt:"qr code",width:"228",height:"228"},null,8,WC),o.createVNode(V,{class:"amplify-flex","data-amplify-copy":""},{default:o.withCtx(()=>[o.createElementVNode("div",null,o.toDisplayString(o.unref(p)),1),o.createVNode(V,{"data-amplify-copy-svg":"",onClick:g},{default:o.withCtx(()=>[o.createElementVNode("div",YC,o.toDisplayString(o.unref(v)),1),JC]),_:1})]),_:1}),o.createVNode(je,{route:"setupTOTP"})]),_:1}),o.createVNode(z,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var de;return[(de=o.unref(h).context)!=null&&de.remoteError?(o.openBlock(),o.createBlock(L,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(O)(o.unref(h).context.remoteError)),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(oe,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",type:"submit",disabled:o.unref(h).matches("confirmSignIn.pending")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(S)),1)]),_:1},8,["disabled"]),o.createVNode(oe,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(C,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(m)),1)]),_:1},8,["onClick"]),o.renderSlot(T.$slots,"footer",{onBackToSignInClicked:C,onSetupTOTPSubmit:_})]}),_:3})]),_:3}))]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Fo=o.defineComponent({setup(e){return(t,n)=>(o.openBlock(),o.createBlock(je,{route:"forceNewPassword"}))}}),Lo=o.defineComponent({emits:["haveAccountClicked","forceNewPasswordSubmit"],setup(e,{emit:t}){const n=o.useAttrs(),{state:r,send:a}=Ce(),s=$e(Ae)(),u=o.computed(()=>be(r.value)),c=o.computed(()=>O("Change Password")),d=o.computed(()=>O("Changing")),l=o.computed(()=>O("Back to Sign In")),h=()=>{n!=null&&n.onHaveAccountClicked?t("haveAccountClicked"):a({type:"SIGN_IN"})},f=m=>{n!=null&&n.onForceNewPasswordSubmit?t("forceNewPasswordSubmit",m):p(m)},p=m=>{s.submitForm(Le(m))},v=m=>{const{name:S,value:w}=m.target;a({type:"CHANGE",data:{name:S,value:w}})};function g(m){const{name:S}=m.target;s.updateBlur({name:S})}return(m,S)=>{const w=Ze,_=ge,b=Be,C=Se,$=De,A=Re,E=Ve;return o.renderSlot(m.$slots,"forceNewPasswordI",o.normalizeProps(o.guardReactiveProps(m.$attrs)),()=>[o.createVNode(_,o.normalizeProps(o.guardReactiveProps(m.$attrs)),{default:o.withCtx(()=>[o.createVNode(E,{"data-amplify-authenticator-forcenewpassword":"",onInput:v,onBlur:g,onSubmit:o.withModifiers(f,["prevent"])},{default:o.withCtx(()=>[o.createVNode(A,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(u).matches("forceNewPassword.pending")},{default:o.withCtx(()=>[o.renderSlot(m.$slots,"header",{},()=>[o.createVNode(w,{level:3,class:"amplify-heading"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(c)),1)]),_:1})]),o.createVNode(_,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(m.$slots,"force-new-password-form-fields",{},()=>[o.createVNode(Fo)])]),_:3}),o.createVNode($,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.unref(u).context.remoteError?(o.openBlock(),o.createBlock(b,{key:0,"data-ui-error":""},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(O)(o.unref(u).context.remoteError)),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(C,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",style:{"font-weight":"normal"},disabled:o.unref(u).matches("signUp.submit")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(u).matches("forceNewPassword.pending")?o.unref(d)+"\u2026":o.unref(c)),1)]),_:1},8,["disabled"]),o.createVNode(C,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(h,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1},8,["onClick"]),o.renderSlot(m.$slots,"footer",{onHaveAccountClicked:h,onForceNewPasswordSubmit:f})]),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),jo=o.defineComponent({emits:["resetPasswordSubmit","backToSignInClicked"],setup(e,{emit:t}){const n=o.useAttrs(),r=$e(Ae),{state:a,send:i,submitForm:s}=r(),{error:u,isPending:c}=o.toRefs(r()),d=o.computed(()=>O("Back to Sign In")),l=o.computed(()=>O("Reset your password")),h=o.computed(()=>O("Send Code")),f=m=>{n!=null&&n.onResetPasswordSubmit?t("resetPasswordSubmit",m):p(m)},p=m=>{s(Le(m))},v=m=>{const{name:S,value:w}=m.target;i({type:"CHANGE",data:{name:S,value:w}})},g=()=>{n!=null&&n.onBackToSignInClicked?t("backToSignInClicked"):i({type:"SIGN_IN"})};return(m,S)=>{const w=Ze,_=Re,b=Be,C=Se,$=De,A=ge,E=Ve;return o.renderSlot(m.$slots,"resetPasswordSlotI",o.normalizeProps(o.guardReactiveProps(m.$attrs)),()=>[o.createVNode(E,o.mergeProps(m.$attrs,{"data-amplify-authenticator-resetpassword":"",onInput:v,onSubmit:o.withModifiers(f,["prevent"])}),{default:o.withCtx(()=>[o.createVNode(A,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(m.$slots,"header",{},()=>[o.createVNode(w,{class:"amplify-heading",level:3},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1})]),o.createVNode(_,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(c)},{default:o.withCtx(()=>[o.createVNode(je,{route:"resetPassword"})]),_:1},8,["disabled"]),o.createVNode($,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.unref(u)?(o.openBlock(),o.createBlock(b,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(O)(o.unref(u))),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(C,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"primary",type:"submit",disabled:o.unref(c)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(h)),1)]),_:1},8,["disabled"]),o.createVNode(C,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(g,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1},8,["onClick"]),o.renderSlot(m.$slots,"footer",{onBackToSignInClicked:g,onResetPasswordSubmit:f})]),_:3})]),_:3})]),_:3},16,["onSubmit"])])}}}),zo=o.defineComponent({emits:["confirmResetPasswordSubmit","backToSignInClicked"],setup(e,{emit:t}){const{state:n,send:r}=Ce(),i=$e(Ae)(),s=o.useAttrs(),u=o.computed(()=>be(n.value));o.computed(()=>zr(n.value));const c=o.computed(()=>O("Resend Code")),d=o.computed(()=>O("Reset your Password")),l=o.computed(()=>O("Submit")),h=m=>{s!=null&&s.onConfirmResetPasswordSubmit?t("confirmResetPasswordSubmit",m):f(m)},f=m=>{i.submitForm(Le(m))},p=()=>{r({type:"RESEND"})},v=m=>{const{name:S,value:w}=m.target;r({type:"CHANGE",data:{name:S,value:w}})};function g(m){const{name:S}=m.target;i.updateBlur({name:S})}return(m,S)=>{const w=Ze,_=ge,b=Be,C=Se,$=De,A=Re,E=Ve;return o.renderSlot(m.$slots,"confirmResetPasswordSlotI",o.normalizeProps(o.guardReactiveProps(m.$attrs)),()=>[o.createVNode(_,o.normalizeProps(o.guardReactiveProps(m.$attrs)),{default:o.withCtx(()=>[o.createVNode(E,{"data-amplify-authenticator-confirmResetpassword":"",onInput:v,onBlurCapture:g,onSubmit:o.withModifiers(h,["prevent"])},{default:o.withCtx(()=>[o.createVNode(A,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(u).matches("confirmResetPassword.pending")},{default:o.withCtx(()=>[o.renderSlot(m.$slots,"header",{},()=>[o.createVNode(w,{class:"amplify-heading",level:3},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1})]),o.createVNode(_,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(je,{route:"confirmResetPassword"})]),_:1}),o.createVNode($,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var T,x;return[(x=(T=o.unref(u))==null?void 0:T.context)!=null&&x.remoteError?(o.openBlock(),o.createBlock(b,{key:0},{default:o.withCtx(()=>{var B,V;return[o.createTextVNode(o.toDisplayString(o.unref(O)((V=(B=o.unref(u))==null?void 0:B.context)==null?void 0:V.remoteError)),1)]}),_:1})):o.createCommentVNode("",!0),o.createVNode(C,{class:"amplify-field-group__control amplify-authenticator__font",variation:"primary",fullwidth:!1,type:"submit",disabled:o.unref(u).matches("confirmResetPassword.pending")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1},8,["disabled"]),o.createVNode(C,{class:"amplify-field-group__control amplify-authenticator__font",variation:"link",fullwidth:!1,size:"small",type:"button",onClick:o.withModifiers(p,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(c)),1)]),_:1},8,["onClick"]),o.renderSlot(m.$slots,"footer",{onConfirmResetPasswordSubmit:h,onLostYourCodeClicked:p})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Go=o.defineComponent({emits:["verifyUserSubmit","skipClicked"],setup(e,{emit:t}){const r=$e(Ae)(),a=o.useAttrs(),{state:i,send:s}=Ce(),u=o.computed(()=>be(i.value)),c=u.value.context.unverifiedAttributes,d=o.computed(()=>O("Account recovery requires verified contact information")),l=o.computed(()=>O("Skip")),h=o.computed(()=>O("Verify")),f=o.computed(()=>O("Verify Contact")),p=S=>{const{name:w,value:_}=S.target;s({type:"CHANGE",data:{name:w,value:_}})},v=S=>{a!=null&&a.onVerifyUserSubmit?t("verifyUserSubmit",S):g(S)},g=S=>{r.submitForm(Le(S))},m=()=>{a!=null&&a.onSkipClicked?t("skipClicked"):s("SKIP")};return(S,w)=>{const _=Ze,b=Wn,C=Yn,$=ls,A=ge,E=Be,T=Se,x=De,B=Re,V=Ve;return o.renderSlot(S.$slots,"verifyUserSlotI",{},()=>[o.createVNode(A,null,{default:o.withCtx(()=>[o.createVNode(V,{onInput:p,onSubmit:o.withModifiers(v,["prevent"])},{default:o.withCtx(()=>[o.createVNode(B,{disabled:o.unref(u).matches("verifyUser.pending"),class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(S.$slots,"header",{},()=>[o.createVNode(_,{class:"amplify-heading",level:3},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1})]),o.createVNode(A,{class:"amplify-flex amplify-field amplify-radiogroupfield amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(b,{class:"amplify-visually-hidden amplify-label",id:"amplify-field-493c"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(f)),1)]),_:1}),o.createVNode(A,{class:"amplify-flex amplify-field amplify-radiogroupfield amplify-authenticator__column","aria-labelledby":"amplify-field-493c"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(c),(L,oe)=>(o.openBlock(),o.createBlock(b,{class:"amplify-flex amplify-radio","data-amplify-verify-label":"",id:"verify",key:L},{default:o.withCtx(()=>[o.createVNode(C,{class:"amplify-input amplify-field-group__control amplify-visually-hidden amplify-radio__input","aria-invalid":"false","data-amplify-verify-input":"",id:"verify",name:"unverifiedAttr",type:"radio",value:oe},null,8,["value"]),o.createVNode($,{class:"amplify-flex amplify-radio__button","aria-hidden":"true"}),o.createVNode($,{class:"amplify-text amplify-radio__label"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(Wr)[oe].label),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1}),o.createVNode(x,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var L,oe;return[(oe=(L=o.unref(u))==null?void 0:L.context)!=null&&oe.remoteError?(o.openBlock(),o.createBlock(E,{key:0},{default:o.withCtx(()=>{var z;return[o.createTextVNode(o.toDisplayString(o.unref(O)((z=o.unref(u))==null?void 0:z.context.remoteError)),1)]}),_:1})):o.createCommentVNode("",!0),o.createVNode(T,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"primary",type:"submit",disabled:o.unref(u).matches("verifyUser.pending")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(h)),1)]),_:1},8,["disabled"]),o.createVNode(T,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(m,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1},8,["onClick"]),o.renderSlot(S.$slots,"footer",{onSkipClicked:m,onVerifyUserSubmit:v})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3})])}}}),Ho=o.defineComponent({emits:["confirmVerifyUserSubmit","skipClicked"],setup(e,{emit:t}){const r=$e(Ae)(),a=o.useAttrs(),{state:i,send:s}=Ce(),u=o.computed(()=>be(i.value)),c=o.computed(()=>O("Account recovery requires verified contact information")),d=o.computed(()=>O("Skip")),l=o.computed(()=>O("Submit")),h=g=>{const{name:m,value:S}=g.target;s({type:"CHANGE",data:{name:m,value:S}})},f=g=>{a!=null&&a.onConfirmVerifyUserSubmit?t("confirmVerifyUserSubmit",g):p(g)},p=g=>{r.submitForm(Le(g))},v=()=>{a!=null&&a.onSkipClicked?t("skipClicked"):s({type:"SKIP"})};return(g,m)=>{const S=Ze,w=ge,_=Be,b=Se,C=De,$=Re,A=Ve;return o.renderSlot(g.$slots,"confirmVerifyUserSlotI",o.normalizeProps(o.guardReactiveProps(g.$attrs)),()=>[o.createVNode(w,o.normalizeProps(o.guardReactiveProps(g.$attrs)),{default:o.withCtx(()=>[o.createVNode(A,{onInput:h,onSubmit:o.withModifiers(f,["prevent"])},{default:o.withCtx(()=>[o.createVNode($,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(u).matches("confirmVerifyUser.pending")},{default:o.withCtx(()=>[o.renderSlot(g.$slots,"header",{},()=>[o.createVNode(S,{level:3,class:"amplify-heading"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(c)),1)]),_:1})]),o.createVNode(w,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(je,{route:"confirmVerifyUser"})]),_:1}),o.createVNode(C,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var E,T;return[(T=(E=o.unref(u))==null?void 0:E.context)!=null&&T.remoteError?(o.openBlock(),o.createBlock(_,{key:0},{default:o.withCtx(()=>{var x;return[o.createTextVNode(o.toDisplayString(o.unref(O)((x=o.unref(u))==null?void 0:x.context.remoteError)),1)]}),_:1})):o.createCommentVNode("",!0),o.createVNode(b,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"primary",type:"submit",disabled:o.unref(u).matches("confirmVerifyUser.pending")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1},8,["disabled"]),o.createVNode(b,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(v,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1},8,["onClick"]),o.renderSlot(g.$slots,"footer",{onSkipClicked:v,onConfirmVerifyUserSubmit:f})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),QC={"data-amplify-container":""},XC=["data-amplify-router-content"],e2={key:1,"data-amplify-router-content":""},Is=o.defineComponent({props:{hideSignUp:{type:Boolean},initialState:null,loginMechanisms:null,services:null,signUpAttributes:null,variation:{default:"default"},socialProviders:null,formFields:null},emits:["signInSubmit","confirmSignUpSubmit","resetPasswordSubmit","confirmResetPasswordSubmit","confirmSignInSubmit","mSetupTOTPSubmit","forceNewPasswordSubmit","signUpSubmit","verifyUserSubmit","confirmVerifyUserSubmit"],setup(e,{emit:t}){const{initialState:n,loginMechanisms:r,variation:a,services:i,signUpAttributes:s,socialProviders:u,hideSignUp:c,formFields:d}=e,l=o.useAttrs(),h=m0(),f=w0(h);let p,v;const{state:g,send:m}=ss(f);Ce(f);const S=o.ref(!1);v=f.subscribe(P=>{P.matches("setup")&&!S.value&&(m({type:"INIT",data:{initialState:n,loginMechanisms:r,socialProviders:u,signUpAttributes:s,services:i,formFields:d}}),S.value=!0)}).unsubscribe,o.onMounted(()=>{p=Ol(m)}),o.onUnmounted(()=>{p&&p(),v&&v()});const w=o.computed(()=>be(g.value)),_=o.ref(),b=o.ref(),C=o.ref(),$=o.ref(),A=o.ref(),E=o.ref(),T=o.ref(),x=o.ref(),B=o.ref(),V=o.ref(),L=o.computed(()=>O("Create Account")),oe=o.computed(()=>O("Sign In")),z=P=>{var ye;l!=null&&l.onSignInSubmit?t("signInSubmit",P):(ye=_.value)==null||ye.submit(P)},me=P=>{l!=null&&l.onConfirmSignUpSubmit?t("confirmSignUpSubmit",P):C.value.submit(P)},Xe=P=>{l!=null&&l.onResetPasswordSubmit?t("resetPasswordSubmit",P):T.value.submit(P)},de=P=>{l!=null&&l.onConfirmResetPasswordSubmit?t("confirmResetPasswordSubmit",P):x.value.submit(P)},Te=P=>{l!=null&&l.onConfirmSignInSubmit?t("confirmSignInSubmit",P):$.value.submit(P)},er=P=>{l!=null&&l.onForceNewPasswordSubmit?t("mSetupTOTPSubmit",P):A.value.submit(P)},Ht=P=>{l!=null&&l.onForceNewPasswordSubmit?t("forceNewPasswordSubmit",P):E.value.submit(P)},tr=P=>{l!=null&&l.onSignUpSubmit?t("signUpSubmit",P):b.value.submit()},nr=P=>{l!=null&&l.onVerifyUserSubmit?t("verifyUserSubmit",P):B.value.submit(P)},Kt=P=>{l!=null&&l.onConfirmVerifyUserSubmit?t("confirmVerifyUserSubmit",P):V.value.submit(P)},qt=o.ref(null),Wt=o.ref();o.watch(()=>g.value.context,()=>{const{user:P,signOut:ye}=si({send:m,state:g.value});qt.value=P,Wt.value=ye});const bt=o.computed(()=>{var P,ye;return((P=w.value)==null?void 0:P.matches("signIn"))||((ye=w.value)==null?void 0:ye.matches("signUp"))});return(P,ye)=>{var Jt,y,N,U,k,D,M,j,F,Z,ae,_e;const Yt=Q0,rr=tC;return o.openBlock(),o.createElementBlock(o.Fragment,null,[(Jt=o.unref(g))!=null&&Jt.matches("authenticated")?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",o.mergeProps({key:0},P.$attrs,{"data-amplify-authenticator":"","data-variation":a}),[o.createElementVNode("div",QC,[o.renderSlot(P.$slots,"header"),o.createElementVNode("div",{"data-amplify-router":"","data-amplify-router-content":o.unref(bt)?void 0:""},[o.unref(bt)&&!c?(o.openBlock(),o.createBlock(rr,{key:0},{default:o.withCtx(()=>{var te,ie;return[o.createVNode(Yt,{active:(te=o.unref(w))==null?void 0:te.matches("signIn"),id:44472,label:o.unref(oe),onClick:ye[0]||(ye[0]=Ge=>o.unref(m)("SIGN_IN"))},null,8,["active","label"]),o.createVNode(Yt,{active:(ie=o.unref(w))==null?void 0:ie.matches("signUp"),id:44471,label:o.unref(L),onClick:ye[1]||(ye[1]=Ge=>o.unref(m)("SIGN_UP"))},null,8,["active","label"])]}),_:1})):o.createCommentVNode("",!0),o.unref(bt)?(o.openBlock(),o.createElementBlock("div",e2,[(y=o.unref(w))!=null&&y.matches("signIn")?(o.openBlock(),o.createBlock(No,{key:0,onSignInSubmit:z,ref_key:"signInComponent",ref:_},{signInSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"sign-in")]),form:o.withCtx(({info:te,onSignInSubmit:ie,onForgotPasswordClicked:Ge,onInput:Zt})=>[o.renderSlot(P.$slots,"sign-in-form",{info:te,onInput:Zt,onSignInSubmit:ie,onForgotPasswordClicked:Ge})]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"sign-in-header")]),footer:o.withCtx(()=>[o.renderSlot(P.$slots,"sign-in-footer")]),_:3},512)):o.createCommentVNode("",!0),((N=o.unref(w))==null?void 0:N.matches("signUp"))&&!c?(o.openBlock(),o.createBlock(xo,{key:1,onSignUpSubmit:tr,ref_key:"signUpComponent",ref:b},{signUpSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"sign-up")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"sign-up-header")]),"signup-fields":o.withCtx(({info:te})=>[o.renderSlot(P.$slots,"sign-up-fields",{info:te})]),footer:o.withCtx(()=>[o.renderSlot(P.$slots,"sign-up-footer")]),_:3},512)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),(U=o.unref(w))!=null&&U.matches("confirmSignUp")?(o.openBlock(),o.createBlock(Uo,{key:2,onConfirmSignUpSubmit:me,ref_key:"confirmSignUpComponent",ref:C},{confirmSignUpSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"confirm-sign-up")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"confirm-sign-up-header")]),footer:o.withCtx(({onConfirmSignUpSubmit:te,onLostCodeClicked:ie})=>[o.renderSlot(P.$slots,"confirm-sign-up-footer",{onConfirmSignUpSubmit:te,onLostCodeClicked:ie})]),_:3},512)):o.createCommentVNode("",!0),(k=o.unref(w))!=null&&k.matches("resetPassword")?(o.openBlock(),o.createBlock(jo,{key:3,onResetPasswordSubmit:Xe,ref_key:"resetPasswordComponent",ref:T},{resetPasswordSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"reset-password")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"reset-password-header")]),footer:o.withCtx(({onResetPasswordSubmit:te,onBackToSignInClicked:ie})=>[o.renderSlot(P.$slots,"reset-password-footer",{onResetPasswordSubmit:te,onBackToSignInClicked:ie})]),_:3},512)):o.createCommentVNode("",!0),(D=o.unref(w))!=null&&D.matches("confirmResetPassword")?(o.openBlock(),o.createBlock(zo,{key:4,onConfirmResetPasswordSubmit:de,ref_key:"confirmResetPasswordComponent",ref:x},{confirmResetPasswordSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"confirm-reset-password")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"confirm-reset-password-header")]),footer:o.withCtx(({onConfirmResetPasswordSubmit:te,onLostYourCodeClicked:ie})=>[o.renderSlot(P.$slots,"confirm-reset-password-footer",{onConfirmResetPasswordSubmit:te,onLostYourCodeClicked:ie})]),_:3},512)):o.createCommentVNode("",!0),(M=o.unref(w))!=null&&M.matches("confirmSignIn")?(o.openBlock(),o.createBlock(Oo,{key:5,onConfirmSignInSubmit:Te,ref_key:"confirmSignInComponent",ref:$},{confirmSignInSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"confirm-sign-in")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"confirm-sign-in-header")]),footer:o.withCtx(({onConfirmSignInSubmit:te,onBackToSignInClicked:ie})=>[o.renderSlot(P.$slots,"confirm-sign-in-footer",{onConfirmSignInSubmit:te,onBackToSignInClicked:ie})]),_:3},512)):o.createCommentVNode("",!0),(j=o.unref(w))!=null&&j.matches("setupTOTP")?(o.openBlock(),o.createBlock(ZC,{key:6,onConfirmSetupTotpSubmit:er,ref_key:"confirmSetupTOTPComponent",ref:A},{confirmSetupTOTPI:o.withCtx(()=>[o.renderSlot(P.$slots,"setup-totp")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"setup-totp-header")]),footer:o.withCtx(({onSetupTOTPSubmit:te,onBackToSignInClicked:ie})=>[o.renderSlot(P.$slots,"setup-totp-footer",{onSetupTOTPSubmit:te,onBackToSignInClicked:ie})]),_:3},512)):o.createCommentVNode("",!0),(F=o.unref(w))!=null&&F.matches("forceNewPassword")?(o.openBlock(),o.createBlock(Lo,{key:7,onForceNewPasswordSubmit:Ht,ref_key:"forceNewPasswordComponent",ref:E},{forceNewPasswordI:o.withCtx(()=>[o.renderSlot(P.$slots,"force-new-password")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"force-new-password-header")]),"force-new-password-form-fields":o.withCtx(()=>[o.renderSlot(P.$slots,"force-new-password-form-fields")]),footer:o.withCtx(({onHaveAccountClicked:te,onForceNewPasswordSubmit:ie})=>[o.renderSlot(P.$slots,"force-new-password-footer",{onForceNewPasswordSubmit:ie,onBackToSignInClicked:te})]),_:3},512)):o.createCommentVNode("",!0),(Z=o.unref(w))!=null&&Z.matches("verifyUser")?(o.openBlock(),o.createBlock(Go,{key:8,onVerifyUserSubmit:nr,ref_key:"verifyUserComponent",ref:B},{verifyUserSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"verify-user")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"verify-user-header")]),footer:o.withCtx(({onVerifyUserSubmit:te,onSkipClicked:ie})=>[o.renderSlot(P.$slots,"verify-user-footer",{onVerifyUserSubmit:te,onSkipClicked:ie})]),_:3},512)):o.createCommentVNode("",!0),(ae=o.unref(w))!=null&&ae.matches("confirmVerifyUser")?(o.openBlock(),o.createBlock(Ho,{key:9,onConfirmVerifyUserSubmit:Kt,ref_key:"confirmVerifyUserComponent",ref:V},{confirmVerifyUserSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"confirm-verify-user")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"confirm-verify-user-header")]),footer:o.withCtx(({onConfirmVerifyUserSubmit:te,onSkipClicked:ie})=>[o.renderSlot(P.$slots,"confirm-verify-user-footer",{onConfirmVerifyUserSubmit:te,onSkipClicked:ie})]),_:3},512)):o.createCommentVNode("",!0)],8,XC),o.renderSlot(P.$slots,"footer")])],16)),(_e=o.unref(g))!=null&&_e.matches("authenticated")?o.renderSlot(P.$slots,"default",{key:1,user:qt.value,state:o.unref(g),signOut:Wt.value,send:o.unref(m)}):o.createCommentVNode("",!0)],64)}}}),Ts=o.defineComponent({props:{info:{type:Object}},setup(e){return()=>e.info}}),Ps=o.defineComponent({props:{label:{default:""},id:{default:""},autocomplete:{default:""},placeholder:{default:""},required:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},name:{default:""},type:{default:"text"},hideLabel:{type:Boolean,default:!0}},setup(e){const t=e,{label:n,id:r,autocomplete:a,placeholder:i,required:s,name:u,type:c}=o.toRefs(t);return(d,l)=>{const h=Wn,f=Yn,p=ge;return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(h,{class:o.normalizeClass(["amplify-label",{"amplify-visually-hidden":e.hideLabel}]),for:o.unref(r)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(n)),1)]),_:1},8,["class","for"]),o.createVNode(p,{class:"amplify-field-group__field-wrapper"},{default:o.withCtx(()=>[o.createVNode(f,{class:"amplify-input amplify-field-group__control",id:o.unref(r),"aria-invalid":"false",autocomplete:o.unref(a),placeholder:o.unref(i),required:o.unref(s),name:o.unref(u),disabled:e.disabled,type:o.unref(c)},null,8,["id","autocomplete","placeholder","required","name","disabled","type"])]),_:1})],64)}}}),t2={class:"amplify-flex amplify-field amplify-checkboxfield"},n2={class:"amplify-flex amplify-checkbox"},r2={class:"amplify-visually-hidden"},o2=["data-error","data-checked"],a2=["data-checked"],i2=o.createElementVNode("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},null,-1),s2=[i2],u2=o.createElementVNode("span",{class:"amplify-text amplify-checkbox__label"}," I agree with the Terms & Conditions",-1),c2={key:0,class:"amplify-text amplify-field__error-message"},Ns=o.defineComponent({props:{errorMessage:{default:""}},setup(e){const t=e,n=o.ref(!1),{errorMessage:r}=o.toRefs(t);return(a,i)=>(o.openBlock(),o.createElementBlock("div",t2,[o.createElementVNode("label",n2,[o.createElementVNode("span",r2,[o.createElementVNode("input",{onClick:i[0]||(i[0]=s=>n.value=!n.value),class:"amplify-input amplify-field-group__control amplify-checkbox__input","aria-invalid":"false",type:"checkbox",name:"acknowledgement",value:"yes"})]),o.createElementVNode("span",{class:o.normalizeClass(["amplify-flex amplify-checkbox__button",{"amplify-checkbox__button--error":!n.value}]),"aria-hidden":"true","data-focus":"false","data-error":!n.value,"data-checked":n.value},[(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",class:o.normalizeClass(["amplify-icon amplify-checkbox__icon",{"amplify-checkbox__icon--checked":n.value}]),viewBox:"0 0 24 24",fill:"currentColor","data-checked":n.value},s2,10,a2))],10,o2),u2]),n.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("p",c2,o.toDisplayString(o.unref(r)),1))]))}});var l2={install:e=>{e.component("SignIn",No),e.component("SignUp",xo),e.component("FederatedSignIn",qn),e.component("Authenticator",Is),e.component("RenderInfo",Ts),e.component("PasswordControl",Po),e.component("ForceNewPassword",Lo),e.component("ResetPassword",jo),e.component("ConfirmResetPassword",zo),e.component("ConfirmSignUp",Uo),e.component("ConfirmSignIn",Oo),e.component("VerifyUser",Go),e.component("ConfirmVerifyUser",Ho),e.component("AmplifyTextField",Ps),e.component("AmplifyCheckBox",Ns),e.component("AmplifyButton",Se),e.component("BaseFormField",cs),e.component("BaseFormFields",je),e.component("AuthenticatorSignUpFormFields",ko),e.component("AuthenticatorForceNewPasswordFormFields",Fo)}};exports.AmplifyButton=Se;exports.AmplifyCheckBox=Ns;exports.AmplifyTextField=Ps;exports.Authenticator=Is;exports.AuthenticatorForceNewPasswordFormFields=Fo;exports.AuthenticatorSignUpFormFields=ko;exports.ConfirmResetPassword=zo;exports.ConfirmSignIn=Oo;exports.ConfirmSignUp=Uo;exports.ConfirmVerifyUser=Ho;exports.FederatedSignIn=qn;exports.ForceNewPassword=Lo;exports.PasswordControl=Po;exports.RenderInfo=Ts;exports.ResetPassword=jo;exports.SignIn=No;exports.SignUp=xo;exports.VerifyUser=Go;exports.default=l2;exports.translations=xl;exports.useAuthenticator=Ae;
|
|
50
|
+
`);const s=FC(t,n,a),u=Xn.getSymbolSize(t),c=new PC(u);return RC(c,t),BC(c),VC(c,t),hr(c,n,0),t>=7&&DC(c,t),MC(c,s),isNaN(r)&&(r=Fr.getBestMask(c,hr.bind(null,c,n))),Fr.applyMask(r,c),hr(c,n,r),{modules:c,version:t,errorCorrectionLevel:n,maskPattern:r,segments:a}}ds.create=function(t,n){if(typeof t=="undefined"||t==="")throw new Error("No input text");let r=fr.M,a,i;return typeof n!="undefined"&&(r=fr.from(n.errorCorrectionLevel,fr.M),a=Pn.from(n.version),i=Fr.from(n.maskPattern),n.toSJISFunc&&Xn.setToSJISFunction(n.toSJISFunc)),jC(t,a,r,i)};var As={},Do={};(function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let r=n.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+n);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(i){return[i,i]}))),r.length===6&&r.push("F","F");const a=parseInt(r.join(""),16);return{r:a>>24&255,g:a>>16&255,b:a>>8&255,a:a&255,hex:"#"+r.slice(0,6).join("")}}e.getOptions=function(r){r||(r={}),r.color||(r.color={});const a=typeof r.margin=="undefined"||r.margin===null||r.margin<0?4:r.margin,i=r.width&&r.width>=21?r.width:void 0,s=r.scale||4;return{width:i,scale:i?4:s,margin:a,color:{dark:t(r.color.dark||"#000000ff"),light:t(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},e.getScale=function(r,a){return a.width&&a.width>=r+a.margin*2?a.width/(r+a.margin*2):a.scale},e.getImageWidth=function(r,a){const i=e.getScale(r,a);return Math.floor((r+a.margin*2)*i)},e.qrToImageData=function(r,a,i){const s=a.modules.size,u=a.modules.data,c=e.getScale(s,i),d=Math.floor((s+i.margin*2)*c),l=i.margin*c,h=[i.color.light,i.color.dark];for(let f=0;f<d;f++)for(let p=0;p<d;p++){let v=(f*d+p)*4,m=i.color.light;if(f>=l&&p>=l&&f<d-l&&p<d-l){const g=Math.floor((f-l)/c),S=Math.floor((p-l)/c);m=h[u[g*s+S]?1:0]}r[v++]=m.r,r[v++]=m.g,r[v++]=m.b,r[v]=m.a}}})(Do);(function(e){const t=Do;function n(a,i,s){a.clearRect(0,0,i.width,i.height),i.style||(i.style={}),i.height=s,i.width=s,i.style.height=s+"px",i.style.width=s+"px"}function r(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(i,s,u){let c=u,d=s;typeof c=="undefined"&&(!s||!s.getContext)&&(c=s,s=void 0),s||(d=r()),c=t.getOptions(c);const l=t.getImageWidth(i.modules.size,c),h=d.getContext("2d"),f=h.createImageData(l,l);return t.qrToImageData(f.data,i,c),n(h,d,l),h.putImageData(f,0,0),d},e.renderToDataURL=function(i,s,u){let c=u;typeof c=="undefined"&&(!s||!s.getContext)&&(c=s,s=void 0),c||(c={});const d=e.render(i,s,c),l=c.type||"image/png",h=c.rendererOpts||{};return d.toDataURL(l,h.quality)}})(As);var Es={};const zC=Do;function Qa(e,t){const n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function mr(e,t,n){let r=e+t;return typeof n!="undefined"&&(r+=" "+n),r}function GC(e,t,n){let r="",a=0,i=!1,s=0;for(let u=0;u<e.length;u++){const c=Math.floor(u%t),d=Math.floor(u/t);!c&&!i&&(i=!0),e[u]?(s++,u>0&&c>0&&e[u-1]||(r+=i?mr("M",c+n,.5+d+n):mr("m",a,0),a=0,i=!1),c+1<t&&e[u+1]||(r+=mr("h",s),s=0)):a++}return r}Es.render=function(t,n,r){const a=zC.getOptions(n),i=t.modules.size,s=t.modules.data,u=i+a.margin*2,c=a.color.light.a?"<path "+Qa(a.color.light,"fill")+' d="M0 0h'+u+"v"+u+'H0z"/>':"",d="<path "+Qa(a.color.dark,"stroke")+' d="'+GC(s,i,a.margin)+'"/>',l='viewBox="0 0 '+u+" "+u+'"',h=a.width?'width="'+a.width+'" height="'+a.width+'" ':"",f='<svg xmlns="http://www.w3.org/2000/svg" '+h+l+' shape-rendering="crispEdges">'+c+d+`</svg>
|
|
51
|
+
`;return typeof r=="function"&&r(null,f),f};const HC=aC,jr=ds,$s=As,KC=Es;function Mo(e,t,n,r,a){const i=[].slice.call(arguments,1),s=i.length,u=typeof i[s-1]=="function";if(!u&&!HC())throw new Error("Callback required as last argument");if(u){if(s<2)throw new Error("Too few arguments provided");s===2?(a=n,n=t,t=r=void 0):s===3&&(t.getContext&&typeof a=="undefined"?(a=r,r=void 0):(a=r,r=n,n=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(n=t,t=r=void 0):s===2&&!t.getContext&&(r=n,n=t,t=void 0),new Promise(function(c,d){try{const l=jr.create(n,r);c(e(l,t,r))}catch(l){d(l)}})}try{const c=jr.create(n,r);a(null,e(c,t,r))}catch(c){a(c)}}zt.create=jr.create;zt.toCanvas=Mo.bind(null,$s.render);zt.toDataURL=Mo.bind(null,$s.renderToDataURL);zt.toString=Mo.bind(null,function(e,t,n){return KC.render(e,n)});const qC={key:0},WC=o.createTextVNode(" Setup TOTP "),YC=["src"],JC={"data-amplify-copy-tooltip":""},ZC=o.createElementVNode("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M16 1H4C2.9 1 2 1.9 2 3V17H4V3H16V1ZM15 5H8C6.9 5 6.01 5.9 6.01 7L6 21C6 22.1 6.89 23 7.99 23H19C20.1 23 21 22.1 21 21V11L15 5ZM8 21V7H14V12H19V21H8Z"})],-1),QC=o.defineComponent({emits:["confirmSetupTOTPSubmit","backToSignInClicked"],setup(e,{emit:t}){var $,A,E;const r=$e(Ae)(),a=o.useAttrs(),{state:i,send:s}=Ce(),{value:{context:u}}=i,c=(A=($=u==null?void 0:u.config)==null?void 0:$.formFields)==null?void 0:A.setupTOTP,d=c==null?void 0:c.QR,l=c==null?void 0:c.confirmation_code,h=o.computed(()=>be(i.value));let f=o.reactive({qrCodeImageSource:"",isLoading:!0}),p=o.ref(""),v=o.ref(O("COPY"));function m(){navigator.clipboard.writeText(p.value),v.value=O("COPIED")}o.onMounted(async()=>{var B,V;const T=new re.Logger("SetupTOTP-logger"),{user:x}=h.value.context;if(!!x)try{p.value=await re.Auth.setupTOTP(x);const L=(B=d==null?void 0:d.totpIssuer)!=null?B:"AWSCognito",oe=(V=d==null?void 0:d.totpUsername)!=null?V:x.username,z=encodeURI(`otpauth://totp/${L}:${oe}?secret=${p.value}&issuer=${L}`);f.qrCodeImageSource=await zt.toDataURL(z)}catch(L){T.error(L)}finally{f.isLoading=!1}});const g=o.computed(()=>O("Back to Sign In")),S=o.computed(()=>O("Confirm"));o.computed(()=>O("Code")),(E=l==null?void 0:l.label)!=null||O("Code *"),l==null||l.labelHidden;const w=T=>{const{name:x,value:B}=T.target;s({type:"CHANGE",data:{name:x,value:B}})},_=T=>{a!=null&&a.onConfirmSetupTOTPSubmit?t("confirmSetupTOTPSubmit",T):b(T)},b=T=>{r.submitForm(Le(T))},C=()=>{a!=null&&a.onBackToSignInClicked?t("backToSignInClicked"):s({type:"SIGN_IN"})};return(T,x)=>{const B=Ze,V=ge,L=Be,oe=Se,z=De,me=Re,Xe=Ve;return o.renderSlot(T.$slots,"confirmSetupTOTPI",o.normalizeProps(o.guardReactiveProps(T.$attrs)),()=>[o.createVNode(V,o.normalizeProps(o.guardReactiveProps(T.$attrs)),{default:o.withCtx(()=>[o.createVNode(Xe,{"data-amplify-authenticator-setup-totp":"",onInput:w,onSubmit:o.withModifiers(_,["prevent"])},{default:o.withCtx(()=>[o.createVNode(me,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(h).matches("confirmSignIn.pending")},{default:o.withCtx(()=>[o.unref(f).isLoading?(o.openBlock(),o.createElementBlock("p",qC,"Loading...")):(o.openBlock(),o.createBlock(V,{key:1,class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(T.$slots,"header",{},()=>[o.createVNode(B,{class:"amplify-heading",level:3},{default:o.withCtx(()=>[WC]),_:1})]),o.createVNode(V,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createElementVNode("img",{class:"amplify-image","data-amplify-qrcode":"",src:o.unref(f).qrCodeImageSource,alt:"qr code",width:"228",height:"228"},null,8,YC),o.createVNode(V,{class:"amplify-flex","data-amplify-copy":""},{default:o.withCtx(()=>[o.createElementVNode("div",null,o.toDisplayString(o.unref(p)),1),o.createVNode(V,{"data-amplify-copy-svg":"",onClick:m},{default:o.withCtx(()=>[o.createElementVNode("div",JC,o.toDisplayString(o.unref(v)),1),ZC]),_:1})]),_:1}),o.createVNode(je,{route:"setupTOTP"})]),_:1}),o.createVNode(z,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var de;return[(de=o.unref(h).context)!=null&&de.remoteError?(o.openBlock(),o.createBlock(L,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(O)(o.unref(h).context.remoteError)),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(oe,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",type:"submit",disabled:o.unref(h).matches("confirmSignIn.pending")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(S)),1)]),_:1},8,["disabled"]),o.createVNode(oe,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(C,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(g)),1)]),_:1},8,["onClick"]),o.renderSlot(T.$slots,"footer",{onBackToSignInClicked:C,onSetupTOTPSubmit:_})]}),_:3})]),_:3}))]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Fo=o.defineComponent({setup(e){return(t,n)=>(o.openBlock(),o.createBlock(je,{route:"forceNewPassword"}))}}),Lo=o.defineComponent({emits:["haveAccountClicked","forceNewPasswordSubmit"],setup(e,{emit:t}){const n=o.useAttrs(),{state:r,send:a}=Ce(),s=$e(Ae)(),u=o.computed(()=>be(r.value)),c=o.computed(()=>O("Change Password")),d=o.computed(()=>O("Changing")),l=o.computed(()=>O("Back to Sign In")),h=()=>{n!=null&&n.onHaveAccountClicked?t("haveAccountClicked"):a({type:"SIGN_IN"})},f=g=>{n!=null&&n.onForceNewPasswordSubmit?t("forceNewPasswordSubmit",g):p(g)},p=g=>{s.submitForm(Le(g))},v=g=>{const{name:S,value:w}=g.target;a({type:"CHANGE",data:{name:S,value:w}})};function m(g){const{name:S}=g.target;s.updateBlur({name:S})}return(g,S)=>{const w=Ze,_=ge,b=Be,C=Se,$=De,A=Re,E=Ve;return o.renderSlot(g.$slots,"forceNewPasswordI",o.normalizeProps(o.guardReactiveProps(g.$attrs)),()=>[o.createVNode(_,o.normalizeProps(o.guardReactiveProps(g.$attrs)),{default:o.withCtx(()=>[o.createVNode(E,{"data-amplify-authenticator-forcenewpassword":"",onInput:v,onBlur:m,onSubmit:o.withModifiers(f,["prevent"])},{default:o.withCtx(()=>[o.createVNode(A,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(u).matches("forceNewPassword.pending")},{default:o.withCtx(()=>[o.renderSlot(g.$slots,"header",{},()=>[o.createVNode(w,{level:3,class:"amplify-heading"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(c)),1)]),_:1})]),o.createVNode(_,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(g.$slots,"force-new-password-form-fields",{},()=>[o.createVNode(Fo)])]),_:3}),o.createVNode($,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.unref(u).context.remoteError?(o.openBlock(),o.createBlock(b,{key:0,"data-ui-error":""},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(O)(o.unref(u).context.remoteError)),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(C,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",style:{"font-weight":"normal"},disabled:o.unref(u).matches("signUp.submit")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(u).matches("forceNewPassword.pending")?o.unref(d)+"\u2026":o.unref(c)),1)]),_:1},8,["disabled"]),o.createVNode(C,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(h,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1},8,["onClick"]),o.renderSlot(g.$slots,"footer",{onHaveAccountClicked:h,onForceNewPasswordSubmit:f})]),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),jo=o.defineComponent({emits:["resetPasswordSubmit","backToSignInClicked"],setup(e,{emit:t}){const n=o.useAttrs(),r=$e(Ae),{state:a,send:i,submitForm:s}=r(),{error:u,isPending:c}=o.toRefs(r()),d=o.computed(()=>O("Back to Sign In")),l=o.computed(()=>O("Reset your password")),h=o.computed(()=>O("Send Code")),f=g=>{n!=null&&n.onResetPasswordSubmit?t("resetPasswordSubmit",g):p(g)},p=g=>{s(Le(g))},v=g=>{const{name:S,value:w}=g.target;i({type:"CHANGE",data:{name:S,value:w}})},m=()=>{n!=null&&n.onBackToSignInClicked?t("backToSignInClicked"):i({type:"SIGN_IN"})};return(g,S)=>{const w=Ze,_=Re,b=Be,C=Se,$=De,A=ge,E=Ve;return o.renderSlot(g.$slots,"resetPasswordSlotI",o.normalizeProps(o.guardReactiveProps(g.$attrs)),()=>[o.createVNode(E,o.mergeProps(g.$attrs,{"data-amplify-authenticator-resetpassword":"",onInput:v,onSubmit:o.withModifiers(f,["prevent"])}),{default:o.withCtx(()=>[o.createVNode(A,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(g.$slots,"header",{},()=>[o.createVNode(w,{class:"amplify-heading",level:3},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1})]),o.createVNode(_,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(c)},{default:o.withCtx(()=>[o.createVNode(je,{route:"resetPassword"})]),_:1},8,["disabled"]),o.createVNode($,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.unref(u)?(o.openBlock(),o.createBlock(b,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(O)(o.unref(u))),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(C,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"primary",type:"submit",disabled:o.unref(c)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(h)),1)]),_:1},8,["disabled"]),o.createVNode(C,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(m,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1},8,["onClick"]),o.renderSlot(g.$slots,"footer",{onBackToSignInClicked:m,onResetPasswordSubmit:f})]),_:3})]),_:3})]),_:3},16,["onSubmit"])])}}}),zo=o.defineComponent({emits:["confirmResetPasswordSubmit","backToSignInClicked"],setup(e,{emit:t}){const{state:n,send:r}=Ce(),i=$e(Ae)(),s=o.useAttrs(),u=o.computed(()=>be(n.value));o.computed(()=>zr(n.value));const c=o.computed(()=>O("Resend Code")),d=o.computed(()=>O("Reset your Password")),l=o.computed(()=>O("Submit")),h=g=>{s!=null&&s.onConfirmResetPasswordSubmit?t("confirmResetPasswordSubmit",g):f(g)},f=g=>{i.submitForm(Le(g))},p=()=>{r({type:"RESEND"})},v=g=>{const{name:S,value:w}=g.target;r({type:"CHANGE",data:{name:S,value:w}})};function m(g){const{name:S}=g.target;i.updateBlur({name:S})}return(g,S)=>{const w=Ze,_=ge,b=Be,C=Se,$=De,A=Re,E=Ve;return o.renderSlot(g.$slots,"confirmResetPasswordSlotI",o.normalizeProps(o.guardReactiveProps(g.$attrs)),()=>[o.createVNode(_,o.normalizeProps(o.guardReactiveProps(g.$attrs)),{default:o.withCtx(()=>[o.createVNode(E,{"data-amplify-authenticator-confirmResetpassword":"",onInput:v,onBlurCapture:m,onSubmit:o.withModifiers(h,["prevent"])},{default:o.withCtx(()=>[o.createVNode(A,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(u).matches("confirmResetPassword.pending")},{default:o.withCtx(()=>[o.renderSlot(g.$slots,"header",{},()=>[o.createVNode(w,{class:"amplify-heading",level:3},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1})]),o.createVNode(_,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(je,{route:"confirmResetPassword"})]),_:1}),o.createVNode($,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var T,x;return[(x=(T=o.unref(u))==null?void 0:T.context)!=null&&x.remoteError?(o.openBlock(),o.createBlock(b,{key:0},{default:o.withCtx(()=>{var B,V;return[o.createTextVNode(o.toDisplayString(o.unref(O)((V=(B=o.unref(u))==null?void 0:B.context)==null?void 0:V.remoteError)),1)]}),_:1})):o.createCommentVNode("",!0),o.createVNode(C,{class:"amplify-field-group__control amplify-authenticator__font",variation:"primary",fullwidth:!1,type:"submit",disabled:o.unref(u).matches("confirmResetPassword.pending")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1},8,["disabled"]),o.createVNode(C,{class:"amplify-field-group__control amplify-authenticator__font",variation:"link",fullwidth:!1,size:"small",type:"button",onClick:o.withModifiers(p,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(c)),1)]),_:1},8,["onClick"]),o.renderSlot(g.$slots,"footer",{onConfirmResetPasswordSubmit:h,onLostYourCodeClicked:p})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Go=o.defineComponent({emits:["verifyUserSubmit","skipClicked"],setup(e,{emit:t}){const r=$e(Ae)(),a=o.useAttrs(),{state:i,send:s}=Ce(),u=o.computed(()=>be(i.value)),c=u.value.context.unverifiedAttributes,d=o.computed(()=>O("Account recovery requires verified contact information")),l=o.computed(()=>O("Skip")),h=o.computed(()=>O("Verify")),f=o.computed(()=>O("Verify Contact")),p=S=>{const{name:w,value:_}=S.target;s({type:"CHANGE",data:{name:w,value:_}})},v=S=>{a!=null&&a.onVerifyUserSubmit?t("verifyUserSubmit",S):m(S)},m=S=>{r.submitForm(Le(S))},g=()=>{a!=null&&a.onSkipClicked?t("skipClicked"):s("SKIP")};return(S,w)=>{const _=Ze,b=Wn,C=Yn,$=ls,A=ge,E=Be,T=Se,x=De,B=Re,V=Ve;return o.renderSlot(S.$slots,"verifyUserSlotI",{},()=>[o.createVNode(A,null,{default:o.withCtx(()=>[o.createVNode(V,{onInput:p,onSubmit:o.withModifiers(v,["prevent"])},{default:o.withCtx(()=>[o.createVNode(B,{disabled:o.unref(u).matches("verifyUser.pending"),class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(S.$slots,"header",{},()=>[o.createVNode(_,{class:"amplify-heading",level:3},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1})]),o.createVNode(A,{class:"amplify-flex amplify-field amplify-radiogroupfield amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(b,{class:"amplify-visually-hidden amplify-label",id:"amplify-field-493c"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(f)),1)]),_:1}),o.createVNode(A,{class:"amplify-flex amplify-field amplify-radiogroupfield amplify-authenticator__column","aria-labelledby":"amplify-field-493c"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(c),(L,oe)=>(o.openBlock(),o.createBlock(b,{class:"amplify-flex amplify-radio","data-amplify-verify-label":"",id:"verify",key:L},{default:o.withCtx(()=>[o.createVNode(C,{class:"amplify-input amplify-field-group__control amplify-visually-hidden amplify-radio__input","aria-invalid":"false","data-amplify-verify-input":"",id:"verify",name:"unverifiedAttr",type:"radio",value:oe},null,8,["value"]),o.createVNode($,{class:"amplify-flex amplify-radio__button","aria-hidden":"true"}),o.createVNode($,{class:"amplify-text amplify-radio__label"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(Wr)[oe].label),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1}),o.createVNode(x,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var L,oe;return[(oe=(L=o.unref(u))==null?void 0:L.context)!=null&&oe.remoteError?(o.openBlock(),o.createBlock(E,{key:0},{default:o.withCtx(()=>{var z;return[o.createTextVNode(o.toDisplayString(o.unref(O)((z=o.unref(u))==null?void 0:z.context.remoteError)),1)]}),_:1})):o.createCommentVNode("",!0),o.createVNode(T,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"primary",type:"submit",disabled:o.unref(u).matches("verifyUser.pending")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(h)),1)]),_:1},8,["disabled"]),o.createVNode(T,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(g,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1},8,["onClick"]),o.renderSlot(S.$slots,"footer",{onSkipClicked:g,onVerifyUserSubmit:v})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3})])}}}),Ho=o.defineComponent({emits:["confirmVerifyUserSubmit","skipClicked"],setup(e,{emit:t}){const r=$e(Ae)(),a=o.useAttrs(),{state:i,send:s}=Ce(),u=o.computed(()=>be(i.value)),c=o.computed(()=>O("Account recovery requires verified contact information")),d=o.computed(()=>O("Skip")),l=o.computed(()=>O("Submit")),h=m=>{const{name:g,value:S}=m.target;s({type:"CHANGE",data:{name:g,value:S}})},f=m=>{a!=null&&a.onConfirmVerifyUserSubmit?t("confirmVerifyUserSubmit",m):p(m)},p=m=>{r.submitForm(Le(m))},v=()=>{a!=null&&a.onSkipClicked?t("skipClicked"):s({type:"SKIP"})};return(m,g)=>{const S=Ze,w=ge,_=Be,b=Se,C=De,$=Re,A=Ve;return o.renderSlot(m.$slots,"confirmVerifyUserSlotI",o.normalizeProps(o.guardReactiveProps(m.$attrs)),()=>[o.createVNode(w,o.normalizeProps(o.guardReactiveProps(m.$attrs)),{default:o.withCtx(()=>[o.createVNode(A,{onInput:h,onSubmit:o.withModifiers(f,["prevent"])},{default:o.withCtx(()=>[o.createVNode($,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(u).matches("confirmVerifyUser.pending")},{default:o.withCtx(()=>[o.renderSlot(m.$slots,"header",{},()=>[o.createVNode(S,{level:3,class:"amplify-heading"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(c)),1)]),_:1})]),o.createVNode(w,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(je,{route:"confirmVerifyUser"})]),_:1}),o.createVNode(C,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var E,T;return[(T=(E=o.unref(u))==null?void 0:E.context)!=null&&T.remoteError?(o.openBlock(),o.createBlock(_,{key:0},{default:o.withCtx(()=>{var x;return[o.createTextVNode(o.toDisplayString(o.unref(O)((x=o.unref(u))==null?void 0:x.context.remoteError)),1)]}),_:1})):o.createCommentVNode("",!0),o.createVNode(b,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"primary",type:"submit",disabled:o.unref(u).matches("confirmVerifyUser.pending")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1},8,["disabled"]),o.createVNode(b,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(v,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1},8,["onClick"]),o.renderSlot(m.$slots,"footer",{onSkipClicked:v,onConfirmVerifyUserSubmit:f})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),XC={"data-amplify-container":""},e2=["data-amplify-router-content"],t2={key:1,"data-amplify-router-content":""},Is=o.defineComponent({props:{hideSignUp:{type:Boolean},initialState:null,loginMechanisms:null,services:null,signUpAttributes:null,variation:{default:"default"},socialProviders:null,formFields:null},emits:["signInSubmit","confirmSignUpSubmit","resetPasswordSubmit","confirmResetPasswordSubmit","confirmSignInSubmit","mSetupTOTPSubmit","forceNewPasswordSubmit","signUpSubmit","verifyUserSubmit","confirmVerifyUserSubmit"],setup(e,{emit:t}){const{initialState:n,loginMechanisms:r,variation:a,services:i,signUpAttributes:s,socialProviders:u,hideSignUp:c,formFields:d}=e,l=o.useAttrs(),h=g0(),f=S0(h);let p,v;const{state:m,send:g}=ss(f);Ce(f);const S=o.ref(!1);v=f.subscribe(P=>{P.matches("setup")&&!S.value&&(g({type:"INIT",data:{initialState:n,loginMechanisms:r,socialProviders:u,signUpAttributes:s,services:i,formFields:d}}),S.value=!0)}).unsubscribe,o.onMounted(()=>{p=Rl(f)}),o.onUnmounted(()=>{p&&p(),v&&v()});const w=o.computed(()=>be(m.value)),_=o.ref(),b=o.ref(),C=o.ref(),$=o.ref(),A=o.ref(),E=o.ref(),T=o.ref(),x=o.ref(),B=o.ref(),V=o.ref(),L=o.computed(()=>O("Create Account")),oe=o.computed(()=>O("Sign In")),z=P=>{var ye;l!=null&&l.onSignInSubmit?t("signInSubmit",P):(ye=_.value)==null||ye.submit(P)},me=P=>{l!=null&&l.onConfirmSignUpSubmit?t("confirmSignUpSubmit",P):C.value.submit(P)},Xe=P=>{l!=null&&l.onResetPasswordSubmit?t("resetPasswordSubmit",P):T.value.submit(P)},de=P=>{l!=null&&l.onConfirmResetPasswordSubmit?t("confirmResetPasswordSubmit",P):x.value.submit(P)},Te=P=>{l!=null&&l.onConfirmSignInSubmit?t("confirmSignInSubmit",P):$.value.submit(P)},er=P=>{l!=null&&l.onForceNewPasswordSubmit?t("mSetupTOTPSubmit",P):A.value.submit(P)},Ht=P=>{l!=null&&l.onForceNewPasswordSubmit?t("forceNewPasswordSubmit",P):E.value.submit(P)},tr=P=>{l!=null&&l.onSignUpSubmit?t("signUpSubmit",P):b.value.submit()},nr=P=>{l!=null&&l.onVerifyUserSubmit?t("verifyUserSubmit",P):B.value.submit(P)},Kt=P=>{l!=null&&l.onConfirmVerifyUserSubmit?t("confirmVerifyUserSubmit",P):V.value.submit(P)},qt=o.ref(null),Wt=o.ref();o.watch(()=>m.value.context,()=>{const{user:P,signOut:ye}=si({send:g,state:m.value});qt.value=P,Wt.value=ye});const bt=o.computed(()=>{var P,ye;return((P=w.value)==null?void 0:P.matches("signIn"))||((ye=w.value)==null?void 0:ye.matches("signUp"))});return(P,ye)=>{var Jt,y,N,U,k,D,M,j,F,Z,ae,_e;const Yt=X0,rr=nC;return o.openBlock(),o.createElementBlock(o.Fragment,null,[(Jt=o.unref(m))!=null&&Jt.matches("authenticated")?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",o.mergeProps({key:0},P.$attrs,{"data-amplify-authenticator":"","data-variation":a}),[o.createElementVNode("div",XC,[o.renderSlot(P.$slots,"header"),o.createElementVNode("div",{"data-amplify-router":"","data-amplify-router-content":o.unref(bt)?void 0:""},[o.unref(bt)&&!c?(o.openBlock(),o.createBlock(rr,{key:0},{default:o.withCtx(()=>{var te,ie;return[o.createVNode(Yt,{active:(te=o.unref(w))==null?void 0:te.matches("signIn"),id:44472,label:o.unref(oe),onClick:ye[0]||(ye[0]=Ge=>o.unref(g)("SIGN_IN"))},null,8,["active","label"]),o.createVNode(Yt,{active:(ie=o.unref(w))==null?void 0:ie.matches("signUp"),id:44471,label:o.unref(L),onClick:ye[1]||(ye[1]=Ge=>o.unref(g)("SIGN_UP"))},null,8,["active","label"])]}),_:1})):o.createCommentVNode("",!0),o.unref(bt)?(o.openBlock(),o.createElementBlock("div",t2,[(y=o.unref(w))!=null&&y.matches("signIn")?(o.openBlock(),o.createBlock(No,{key:0,onSignInSubmit:z,ref_key:"signInComponent",ref:_},{signInSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"sign-in")]),form:o.withCtx(({info:te,onSignInSubmit:ie,onForgotPasswordClicked:Ge,onInput:Zt})=>[o.renderSlot(P.$slots,"sign-in-form",{info:te,onInput:Zt,onSignInSubmit:ie,onForgotPasswordClicked:Ge})]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"sign-in-header")]),footer:o.withCtx(()=>[o.renderSlot(P.$slots,"sign-in-footer")]),_:3},512)):o.createCommentVNode("",!0),((N=o.unref(w))==null?void 0:N.matches("signUp"))&&!c?(o.openBlock(),o.createBlock(xo,{key:1,onSignUpSubmit:tr,ref_key:"signUpComponent",ref:b},{signUpSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"sign-up")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"sign-up-header")]),"signup-fields":o.withCtx(({info:te})=>[o.renderSlot(P.$slots,"sign-up-fields",{info:te})]),footer:o.withCtx(()=>[o.renderSlot(P.$slots,"sign-up-footer")]),_:3},512)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),(U=o.unref(w))!=null&&U.matches("confirmSignUp")?(o.openBlock(),o.createBlock(Uo,{key:2,onConfirmSignUpSubmit:me,ref_key:"confirmSignUpComponent",ref:C},{confirmSignUpSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"confirm-sign-up")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"confirm-sign-up-header")]),footer:o.withCtx(({onConfirmSignUpSubmit:te,onLostCodeClicked:ie})=>[o.renderSlot(P.$slots,"confirm-sign-up-footer",{onConfirmSignUpSubmit:te,onLostCodeClicked:ie})]),_:3},512)):o.createCommentVNode("",!0),(k=o.unref(w))!=null&&k.matches("resetPassword")?(o.openBlock(),o.createBlock(jo,{key:3,onResetPasswordSubmit:Xe,ref_key:"resetPasswordComponent",ref:T},{resetPasswordSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"reset-password")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"reset-password-header")]),footer:o.withCtx(({onResetPasswordSubmit:te,onBackToSignInClicked:ie})=>[o.renderSlot(P.$slots,"reset-password-footer",{onResetPasswordSubmit:te,onBackToSignInClicked:ie})]),_:3},512)):o.createCommentVNode("",!0),(D=o.unref(w))!=null&&D.matches("confirmResetPassword")?(o.openBlock(),o.createBlock(zo,{key:4,onConfirmResetPasswordSubmit:de,ref_key:"confirmResetPasswordComponent",ref:x},{confirmResetPasswordSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"confirm-reset-password")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"confirm-reset-password-header")]),footer:o.withCtx(({onConfirmResetPasswordSubmit:te,onLostYourCodeClicked:ie})=>[o.renderSlot(P.$slots,"confirm-reset-password-footer",{onConfirmResetPasswordSubmit:te,onLostYourCodeClicked:ie})]),_:3},512)):o.createCommentVNode("",!0),(M=o.unref(w))!=null&&M.matches("confirmSignIn")?(o.openBlock(),o.createBlock(Oo,{key:5,onConfirmSignInSubmit:Te,ref_key:"confirmSignInComponent",ref:$},{confirmSignInSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"confirm-sign-in")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"confirm-sign-in-header")]),footer:o.withCtx(({onConfirmSignInSubmit:te,onBackToSignInClicked:ie})=>[o.renderSlot(P.$slots,"confirm-sign-in-footer",{onConfirmSignInSubmit:te,onBackToSignInClicked:ie})]),_:3},512)):o.createCommentVNode("",!0),(j=o.unref(w))!=null&&j.matches("setupTOTP")?(o.openBlock(),o.createBlock(QC,{key:6,onConfirmSetupTotpSubmit:er,ref_key:"confirmSetupTOTPComponent",ref:A},{confirmSetupTOTPI:o.withCtx(()=>[o.renderSlot(P.$slots,"setup-totp")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"setup-totp-header")]),footer:o.withCtx(({onSetupTOTPSubmit:te,onBackToSignInClicked:ie})=>[o.renderSlot(P.$slots,"setup-totp-footer",{onSetupTOTPSubmit:te,onBackToSignInClicked:ie})]),_:3},512)):o.createCommentVNode("",!0),(F=o.unref(w))!=null&&F.matches("forceNewPassword")?(o.openBlock(),o.createBlock(Lo,{key:7,onForceNewPasswordSubmit:Ht,ref_key:"forceNewPasswordComponent",ref:E},{forceNewPasswordI:o.withCtx(()=>[o.renderSlot(P.$slots,"force-new-password")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"force-new-password-header")]),"force-new-password-form-fields":o.withCtx(()=>[o.renderSlot(P.$slots,"force-new-password-form-fields")]),footer:o.withCtx(({onHaveAccountClicked:te,onForceNewPasswordSubmit:ie})=>[o.renderSlot(P.$slots,"force-new-password-footer",{onForceNewPasswordSubmit:ie,onBackToSignInClicked:te})]),_:3},512)):o.createCommentVNode("",!0),(Z=o.unref(w))!=null&&Z.matches("verifyUser")?(o.openBlock(),o.createBlock(Go,{key:8,onVerifyUserSubmit:nr,ref_key:"verifyUserComponent",ref:B},{verifyUserSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"verify-user")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"verify-user-header")]),footer:o.withCtx(({onVerifyUserSubmit:te,onSkipClicked:ie})=>[o.renderSlot(P.$slots,"verify-user-footer",{onVerifyUserSubmit:te,onSkipClicked:ie})]),_:3},512)):o.createCommentVNode("",!0),(ae=o.unref(w))!=null&&ae.matches("confirmVerifyUser")?(o.openBlock(),o.createBlock(Ho,{key:9,onConfirmVerifyUserSubmit:Kt,ref_key:"confirmVerifyUserComponent",ref:V},{confirmVerifyUserSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"confirm-verify-user")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"confirm-verify-user-header")]),footer:o.withCtx(({onConfirmVerifyUserSubmit:te,onSkipClicked:ie})=>[o.renderSlot(P.$slots,"confirm-verify-user-footer",{onConfirmVerifyUserSubmit:te,onSkipClicked:ie})]),_:3},512)):o.createCommentVNode("",!0)],8,e2),o.renderSlot(P.$slots,"footer")])],16)),(_e=o.unref(m))!=null&&_e.matches("authenticated")?o.renderSlot(P.$slots,"default",{key:1,user:qt.value,state:o.unref(m),signOut:Wt.value,send:o.unref(g)}):o.createCommentVNode("",!0)],64)}}}),Ts=o.defineComponent({props:{info:{type:Object}},setup(e){return()=>e.info}}),Ps=o.defineComponent({props:{label:{default:""},id:{default:""},autocomplete:{default:""},placeholder:{default:""},required:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},name:{default:""},type:{default:"text"},hideLabel:{type:Boolean,default:!0}},setup(e){const t=e,{label:n,id:r,autocomplete:a,placeholder:i,required:s,name:u,type:c}=o.toRefs(t);return(d,l)=>{const h=Wn,f=Yn,p=ge;return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(h,{class:o.normalizeClass(["amplify-label",{"amplify-visually-hidden":e.hideLabel}]),for:o.unref(r)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(n)),1)]),_:1},8,["class","for"]),o.createVNode(p,{class:"amplify-field-group__field-wrapper"},{default:o.withCtx(()=>[o.createVNode(f,{class:"amplify-input amplify-field-group__control",id:o.unref(r),"aria-invalid":"false",autocomplete:o.unref(a),placeholder:o.unref(i),required:o.unref(s),name:o.unref(u),disabled:e.disabled,type:o.unref(c)},null,8,["id","autocomplete","placeholder","required","name","disabled","type"])]),_:1})],64)}}}),n2={class:"amplify-flex amplify-field amplify-checkboxfield"},r2={class:"amplify-flex amplify-checkbox"},o2={class:"amplify-visually-hidden"},a2=["data-error","data-checked"],i2=["data-checked"],s2=o.createElementVNode("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},null,-1),u2=[s2],c2=o.createElementVNode("span",{class:"amplify-text amplify-checkbox__label"}," I agree with the Terms & Conditions",-1),l2={key:0,class:"amplify-text amplify-field__error-message"},Ns=o.defineComponent({props:{errorMessage:{default:""}},setup(e){const t=e,n=o.ref(!1),{errorMessage:r}=o.toRefs(t);return(a,i)=>(o.openBlock(),o.createElementBlock("div",n2,[o.createElementVNode("label",r2,[o.createElementVNode("span",o2,[o.createElementVNode("input",{onClick:i[0]||(i[0]=s=>n.value=!n.value),class:"amplify-input amplify-field-group__control amplify-checkbox__input","aria-invalid":"false",type:"checkbox",name:"acknowledgement",value:"yes"})]),o.createElementVNode("span",{class:o.normalizeClass(["amplify-flex amplify-checkbox__button",{"amplify-checkbox__button--error":!n.value}]),"aria-hidden":"true","data-focus":"false","data-error":!n.value,"data-checked":n.value},[(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",class:o.normalizeClass(["amplify-icon amplify-checkbox__icon",{"amplify-checkbox__icon--checked":n.value}]),viewBox:"0 0 24 24",fill:"currentColor","data-checked":n.value},u2,10,i2))],10,a2),c2]),n.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("p",l2,o.toDisplayString(o.unref(r)),1))]))}});var d2={install:e=>{e.component("SignIn",No),e.component("SignUp",xo),e.component("FederatedSignIn",qn),e.component("Authenticator",Is),e.component("RenderInfo",Ts),e.component("PasswordControl",Po),e.component("ForceNewPassword",Lo),e.component("ResetPassword",jo),e.component("ConfirmResetPassword",zo),e.component("ConfirmSignUp",Uo),e.component("ConfirmSignIn",Oo),e.component("VerifyUser",Go),e.component("ConfirmVerifyUser",Ho),e.component("AmplifyTextField",Ps),e.component("AmplifyCheckBox",Ns),e.component("AmplifyButton",Se),e.component("BaseFormField",cs),e.component("BaseFormFields",je),e.component("AuthenticatorSignUpFormFields",ko),e.component("AuthenticatorForceNewPasswordFormFields",Fo)}};exports.AmplifyButton=Se;exports.AmplifyCheckBox=Ns;exports.AmplifyTextField=Ps;exports.Authenticator=Is;exports.AuthenticatorForceNewPasswordFormFields=Fo;exports.AuthenticatorSignUpFormFields=ko;exports.ConfirmResetPassword=zo;exports.ConfirmSignIn=Oo;exports.ConfirmSignUp=Uo;exports.ConfirmVerifyUser=Ho;exports.FederatedSignIn=qn;exports.ForceNewPassword=Lo;exports.PasswordControl=Po;exports.RenderInfo=Ts;exports.ResetPassword=jo;exports.SignIn=No;exports.SignUp=xo;exports.VerifyUser=Go;exports.default=d2;exports.translations=xl;exports.useAuthenticator=Ae;
|