@aws-amplify/ui-vue 2.4.22 → 2.4.23

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.
Files changed (3) hide show
  1. package/dist/index.cjs +12 -12
  2. package/dist/index.js +106 -106
  3. package/package.json +2 -2
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var o=require("vue"),ce=require("aws-amplify");const Be=o.defineComponent({__name:"base-field-set",setup(e){let t=o.useSlots();return(n,r)=>o.renderSlot(n.$slots,"fieldSetI",o.mergeProps(n.$attrs,{slotData:o.unref(t).default&&o.unref(t).default()}),()=>[o.createElementVNode("fieldset",o.mergeProps(n.$attrs,{"data-amplify-fieldset":""}),[o.renderSlot(n.$slots,"default")],16)])}}),ks=["type","data-fullwidth","data-size","data-fontWeight","data-variation","data-loading","data-disabled","disabled"],_e=o.defineComponent({__name:"amplify-button",props:{type:null,fullWidth:{type:[Boolean,String]},size:null,variation:null,fontWeight:null,loading:{type:[Boolean,String]},disabled:{type:[Boolean,String]}},setup(e){const t=e,{type:n,fullWidth:r,size:a,variation:i,fontWeight:s}=o.toRefs(t);return(u,c)=>o.renderSlot(u.$slots,"buttont",o.normalizeProps(o.guardReactiveProps(u.$attrs)),()=>[o.createElementVNode("button",o.mergeProps({class:["amplify-button",{[`amplify-button--${o.unref(i)}`]:o.unref(i),[`amplify-button--${o.unref(a)}`]:o.unref(a),"amplify-button--fullwidth":o.unref(r),"amplify-button--loading":e.loading,"amplify-button--disabled":e.disabled}],type:o.unref(n),style:{fontWeight:o.unref(s)},"data-fullwidth":o.unref(r),"data-size":o.unref(a),"data-fontWeight":o.unref(s),"data-variation":o.unref(i),"data-loading":e.loading,"data-disabled":e.disabled,disabled:e.disabled},u.$attrs,{"data-amplify-button":""}),[o.renderSlot(u.$slots,"default")],16,ks)])}});var Te=function(e){var t;return(t=e.context.actorRef)===null||t===void 0?void 0:t.getSnapshot()},Qa=function(e){var t;return(t=Te(e))===null||t===void 0?void 0:t.context},rn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},xs=typeof rn=="object"&&rn&&rn.Object===Object&&rn,Xa=xs,Os=Xa,Us=typeof self=="object"&&self&&self.Object===Object&&self,Rs=Os||Us||Function("return this")(),Ve=Rs,Bs=Ve,Vs=Bs.Symbol,Gt=Vs,Go=Gt,ei=Object.prototype,Ds=ei.hasOwnProperty,Ms=ei.toString,Ot=Go?Go.toStringTag:void 0;function Fs(e){var t=Ds.call(e,Ot),n=e[Ot];try{e[Ot]=void 0;var r=!0}catch{}var a=Ms.call(e);return r&&(t?e[Ot]=n:delete e[Ot]),a}var Ls=Fs,js=Object.prototype,zs=js.toString;function Gs(e){return zs.call(e)}var Hs=Gs,Ho=Gt,Ks=Ls,qs=Hs,Ws="[object Null]",Ys="[object Undefined]",Ko=Ho?Ho.toStringTag:void 0;function Js(e){return e==null?e===void 0?Ys:Ws:Ko&&Ko in Object(e)?Ks(e):qs(e)}var St=Js;function Zs(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var De=Zs,Qs=St,Xs=De,eu="[object AsyncFunction]",tu="[object Function]",nu="[object GeneratorFunction]",ru="[object Proxy]";function ou(e){if(!Xs(e))return!1;var t=Qs(e);return t==tu||t==nu||t==eu||t==ru}var Fr=ou,au=9007199254740991;function iu(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=au}var Lr=iu,su=Fr,uu=Lr;function cu(e){return e!=null&&uu(e.length)&&!su(e)}var Ht=cu,lu=Array.isArray,Oe=lu;function du(e){return e!=null&&typeof e=="object"}var Ke=du,fu=St,pu=Ke,hu="[object Symbol]";function mu(e){return typeof e=="symbol"||pu(e)&&fu(e)==hu}var jr=mu;function gu(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}var ti=gu;function vu(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var yu=vu,wu=St,Su=Ke,_u="[object Arguments]";function bu(e){return Su(e)&&wu(e)==_u}var Cu=bu,qo=Cu,Au=Ke,ni=Object.prototype,Eu=ni.hasOwnProperty,Iu=ni.propertyIsEnumerable,Tu=qo(function(){return arguments}())?qo:function(e){return Au(e)&&Eu.call(e,"callee")&&!Iu.call(e,"callee")},Rn=Tu,nt={exports:{}};function $u(){return!1}var Pu=$u;(function(e,t){var n=Ve,r=Pu,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===a,u=s?n.Buffer:void 0,c=u?u.isBuffer:void 0,l=c||r;e.exports=l})(nt,nt.exports);var Nu=9007199254740991,ku=/^(?:0|[1-9]\d*)$/;function xu(e,t){var n=typeof e;return t=t==null?Nu:t,!!t&&(n=="number"||n!="symbol"&&ku.test(e))&&e>-1&&e%1==0&&e<t}var Bn=xu,Ou=St,Uu=Lr,Ru=Ke,Bu="[object Arguments]",Vu="[object Array]",Du="[object Boolean]",Mu="[object Date]",Fu="[object Error]",Lu="[object Function]",ju="[object Map]",zu="[object Number]",Gu="[object Object]",Hu="[object RegExp]",Ku="[object Set]",qu="[object String]",Wu="[object WeakMap]",Yu="[object ArrayBuffer]",Ju="[object DataView]",Zu="[object Float32Array]",Qu="[object Float64Array]",Xu="[object Int8Array]",ec="[object Int16Array]",tc="[object Int32Array]",nc="[object Uint8Array]",rc="[object Uint8ClampedArray]",oc="[object Uint16Array]",ac="[object Uint32Array]",se={};se[Zu]=se[Qu]=se[Xu]=se[ec]=se[tc]=se[nc]=se[rc]=se[oc]=se[ac]=!0;se[Bu]=se[Vu]=se[Yu]=se[Du]=se[Ju]=se[Mu]=se[Fu]=se[Lu]=se[ju]=se[zu]=se[Gu]=se[Hu]=se[Ku]=se[qu]=se[Wu]=!1;function ic(e){return Ru(e)&&Uu(e.length)&&!!se[Ou(e)]}var sc=ic;function uc(e){return function(t){return e(t)}}var zr=uc,Ft={exports:{}};(function(e,t){var n=Xa,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,s=i&&n.process,u=function(){try{var c=a&&a.require&&a.require("util").types;return c||s&&s.binding&&s.binding("util")}catch{}}();e.exports=u})(Ft,Ft.exports);var cc=sc,lc=zr,Wo=Ft.exports,Yo=Wo&&Wo.isTypedArray,dc=Yo?lc(Yo):cc,Vn=dc,fc=yu,pc=Rn,hc=Oe,mc=nt.exports,gc=Bn,vc=Vn,yc=Object.prototype,wc=yc.hasOwnProperty;function Sc(e,t){var n=hc(e),r=!n&&pc(e),a=!n&&!r&&mc(e),i=!n&&!r&&!a&&vc(e),s=n||r||a||i,u=s?fc(e.length,String):[],c=u.length;for(var l in e)(t||wc.call(e,l))&&!(s&&(l=="length"||a&&(l=="offset"||l=="parent")||i&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||gc(l,c)))&&u.push(l);return u}var ri=Sc,_c=Object.prototype;function bc(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||_c;return e===n}var Dn=bc;function Cc(e,t){return function(n){return e(t(n))}}var oi=Cc,Ac=oi,Ec=Ac(Object.keys,Object),Ic=Ec,Tc=Dn,$c=Ic,Pc=Object.prototype,Nc=Pc.hasOwnProperty;function kc(e){if(!Tc(e))return $c(e);var t=[];for(var n in Object(e))Nc.call(e,n)&&n!="constructor"&&t.push(n);return t}var ai=kc,xc=ri,Oc=ai,Uc=Ht;function Rc(e){return Uc(e)?xc(e):Oc(e)}var Mn=Rc,gr;(function(e){e.Apple="SignInWithApple",e.Amazon="LoginWithAmazon",e.Facebook="Facebook",e.Google="Google"})(gr||(gr={}));var U=function(){return U=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},U.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")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 Z(e,t,n,r){function a(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function u(d){try{l(r.next(d))}catch(p){s(p)}}function c(d){try{l(r.throw(d))}catch(p){s(p)}}function l(d){d.done?i(d.value):a(d.value).then(u,c)}l((r=r.apply(e,t||[])).next())})}function Q(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,a,i,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(l){return function(d){return c([l,d])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,a&&(i=l[0]&2?a.return:l[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;switch(a=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){n.label=l[1];break}if(l[0]===6&&n.label<i[1]){n.label=i[1],i=l;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(l);break}i[2]&&n.ops.pop(),n.trys.pop();continue}l=t.call(e,n)}catch(d){l=[6,d],a=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Re(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 Bc=["birthdate","email","family_name","given_name","middle_name","name","nickname","phone_number","preferred_username","profile","website"],Vc=["username","email","phone_number"],Dc=Re(Re(Re([],Vc,!0),Bc,!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]},Mc=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")}},Fc=function(e){var t,n,r,a=Te(e),i=(t=Qa(e))!==null&&t!==void 0?t:{},s=i.codeDeliveryDetails,u=i.remoteError,c=i.validationError,l=(n=i==null?void 0:i.user)!==null&&n!==void 0?n:(r=e.context)===null||r===void 0?void 0:r.user,d=c&&Object.keys(c).length>0,p=e.hasTag("pending")||(a==null?void 0:a.hasTag("pending")),f=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("autoSignIn")):return"autoSignIn";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}}(),g=function(h){switch(h){case"idle":case"setup":return"configuring";case"authenticated":return"authenticated";default:return"unauthenticated"}}(f);return{authStatus:g,codeDeliveryDetails:s,error:u,hasValidationErrors:d,isPending:p,route:f,user:l,validationErrors:c}},si=function(e){var t=e.send,n=e.state,r=Mc(t),a=Fc(n);return U(U({},r),a)},Lc=["+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"],jc={"Account recovery requires verified contact information":"Zur\xFCcksetzen des Account ben\xF6tigt einen verifizierten Account","Back to Sign In":"Zur\xFCck zur Anmeldung","Change Password":"Passwort \xE4ndern",Changing:"\xC4ndern von",Code:"Code","Confirm Password":"Passwort best\xE4tigen","Confirm Sign Up":"Registrierung best\xE4tigen","Confirm SMS Code":"SMS-Code best\xE4tigen","Confirm TOTP Code":"TOTP-Code best\xE4tigen",Confirm:"Best\xE4tigen","Confirmation Code":"Best\xE4tigungs-Code",Confirming:"Wird best\xE4tigt","Create a new account":"Einen neuen Account erstellen","Create Account":"Account erstellen","Creating Account":"Account wird erstellt","Dismiss alert":"Warnung verwerfen",Email:"Email","Enter your code":"Geben Sie Ihren Code ein","Enter your email":"Geben Sie Ihre Email ein","Enter your phone number":"Geben Sie Ihre Telefonnummer ein","Enter your username":"Geben Sie Ihren Benutzernamen ein","Forgot your password?":"Passwort vergessen? ","Hide password":"Passwort verbergen",Loading:"Wird geladen","New password":"Neues Passwort",Password:"Passwort","Phone Number":"Telefonnummer","Resend Code":"Code erneut senden","Reset your Password":"Zur\xFCcksetzen des Passwort","Reset your password":"Zur\xFCcksetzen des passwort","Send code":"Code senden","Send Code":"Code senden",Sending:"Wird gesendet","Setup TOTP":"TOTP einrichten","Show password":"Passwort anzeigen","Sign in to your account":"Melden Sie sich mit Ihrem Account an","Sign In with Amazon":"Mit Amazon anmelden","Sign In with Apple":"Mit Apple anmelden","Sign In with Facebook":"Mit Facebook anmelden","Sign In with Google":"Mit Google anmelden","Sign in":"Anmelden","Sign In":"Anmelden","Signing in":"Wird angemeldet",Skip:"\xDCberspringen",Submit:"Abschicken",Submitting:"Wird gesendet",Username:"Benutzername","Verify Contact":"Kontakt verifizieren",Verify:"Verifizieren","An account with the given email already exists.":"Ein Account mit dieser Email existiert bereits.","Confirm a Code":"Code best\xE4tigen","Confirm Sign In":"Anmeldung best\xE4tigen","Create account":"Hier registrieren","Enter your password":"Geben Sie Ihr Passwort ein","Forgot Password":"Passwort vergessen","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","It may take a minute to arrive.":"Es k\xF6nnte eine Minute dauern, bis der Code eintrifft.","Lost your code? ":"Code verloren? ","New Password":"Neues Passwort","No account? ":"Kein Account? ",or:"oder","Password attempts exceeded":"Die maximale Anzahl der fehlerhaften Anmeldeversuche wurde erreicht","Reset password":"Passwort zur\xFCcksetzen","Sign Out":"Abmelden","Sign Up":"Registrieren","User already exists":"Dieser Benutzer existiert bereits","User does not exist":"Dieser Benutzer existiert nicht","Username cannot be empty":"Benutzername darf nicht leer sein","We Emailed You":"Email wurde versendet","Your code is on the way. To log in, enter the code we emailed to":"Ihr Best\xE4tigungscode ist unterwegs. Um sich einzuloggen geben Sie den Code ein, den wir verschickt haben an","Your code is on the way. To log in, enter the code we texted to":"Ihr Best\xE4tigungscode ist unterwegs. Um sich einzuloggen geben Sie den Code ein, den wir verschickt haben an"},zc={"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 Password":"Confirm Password","Confirm Sign Up":"Confirm Sign Up","Confirm SMS Code":"Confirm SMS Code","Confirm TOTP Code":"Confirm TOTP Code",Confirm:"Confirm","Confirmation Code":"Confirmation Code",Confirming:"Confirming","Create a new account":"Create a new account","Create Account":"Create Account","Creating Account":"Creating Account","Dismiss alert":"Dismiss alert",Email:"Email","Enter your code":"Enter your code","Enter your email":"Enter your email","Enter your phone number":"Enter your phone number","Enter your username":"Enter your username","Forgot your password?":"Forgot your password?","Hide password":"Hide password",Loading:"Loading","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 to your account":"Sign in to your account","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","Sign In":"Sign In","Signing in":"Signing in",Skip:"Skip",Submit:"Submit",Submitting:"Submitting",Username:"Username","Verify Contact":"Verify Contact",Verify:"Verify"},Gc={"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 Password":"Confirmar contrase\xF1a","Confirm Sign Up":"Confirmar registro","Confirm SMS Code":"Confirmar el c\xF3digo de SMS","Confirm TOTP Code":"Confirmar c\xF3digo TOTP",Confirm:"Confirmar","Confirmation Code":"C\xF3digo de confirmaci\xF3n",Confirming:"Confirmando","Create a new account":"Crear una cuenta nueva","Create Account":"Crear cuenta","Creating Account":"Creando cuenta","Dismiss alert":"Descartar alerta",Email:"Email","Enter your code":"Ingrese el c\xF3digo","Enter your email":"Escriba su Email","Enter your phone number":"Ingrese el n\xFAmero de tel\xE9fono","Enter your username":"Ingrese el nombre de usuario","Forgot your password?":"\xBFOlvid\xF3 su contrase\xF1a?","Hide password":"Ocultar contrase\xF1a",Loading:"Cargando","New password":"Nueva contrase\xF1a",Password:"Contrase\xF1a","Phone Number":"N\xFAmero de tel\xE9fono","Resend Code":"Reenviar c\xF3digo","Reset your password":"Restablecer su contrase\xF1a","Reset your Password":"Restablecer su Contrase\xF1a","Send code":"Enviar c\xF3digo","Send Code":"Enviar c\xF3digo",Sending:"Enviando","Setup TOTP":"Configurar TOTP","Show password":"Mostrar contrase\xF1a","Sign in to your account":"Iniciar sesi\xF3n en tu cuenta","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":"Iniciar sesi\xF3n","Sign In":"Iniciar Sesi\xF3n","Signing in":"Iniciando sesi\xF3n",Skip:"Omitir",Submit:"Enviar",Submitting:"Enviando",Username:"Nombre de usuario","Verify Contact":"Verificar contacto",Verify:"Verificar","An account with the given email already exists.":"Ya existe una cuenta con el correo ingresado.","Confirm a Code":"Confirmar un c\xF3digo","Confirm Sign In":"Confirmar inicio de sesi\xF3n","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","Loading...":"Cargando...","New Password":"Nueva contrase\xF1a",or:"o","Resend a Code":"Reenviar un c\xF3digo","Sign Out":"Cerrar sesi\xF3n","Sign Up with Amazon":"Crear cuenta con Amazon","Sign Up with Apple":"Crear cuenta con Apple","Sign Up with Facebook":"Crear cuenta con Facebook","Sign Up with Google":"Crear cuenta con Google","Sign Up":"Crear cuenta","User already exists":"El usuario ya existe","User does not exist":"El usuario no existe","Username cannot be empty":"El nombre de usuario no puede estar vac\xEDo","Your passwords must match":"Las contrase\xF1as deben coincidir"},Hc={"Account recovery requires verified contact information":"La r\xE9cup\xE9ration du compte n\xE9cessite des informations de contact v\xE9rifi\xE9es","Back to Sign In":"Retour \xE0 la connexion","Change Password":"Modifier le mot de passe",Changing:"Modification en cours",Code:"Code","Confirm Password":"Confirmez le mot de passe","Confirm Sign Up":"Confirmer l'inscription","Confirm SMS Code":"Confirmer le code SMS","Confirm TOTP Code":"Confirmer le code TOTP",Confirm:"Confirmer","Confirmation Code":"Code de confirmation",Confirming:"Confirmation","Create a new account":"Cr\xE9er un nouveau compte","Create Account":"Cr\xE9er un compte","Creating Account":"Cr\xE9ation d'un compte","Dismiss alert":"Supprimer l'alerte",Email:"Email","Enter your code":"Saisissez cotre code de confirmation","Enter your email":"Saisissez votre adresse email","Enter your phone number":"Saisissez votre num\xE9ro de t\xE9l\xE9phone","Enter your username":"Saisissez votre nom d'utilisateur","Forgot your password?":"Mot de passe oubli\xE9 ? ","Hide password":"Masquer le mot de passe",Loading:"Chargement en cours","New password":"Nouveau mot de passe",Password:"Mot de passe","Phone Number":"Num\xE9ro de t\xE9l\xE9phone","Resend Code":"Renvoyer le code","Reset your Password":"R\xE9initialiser votre mot de passe","Reset your password":"R\xE9initialisez votre mot de passe","Send code":"Envoyer le code","Send Code":"M'envoyer un code",Sending:"Envoi en cours","Setup TOTP":"Configuration de TOTP","Show password":"Afficher le mot de passe","Sign in to your account":"Connexion \xE0 votre compte","Sign In with Amazon":"Se connecter avec Amazon","Sign In with Apple":"Se connecter avec Apple","Sign In with Facebook":"Se connecter avec Facebook","Sign In with Google":"Se connecter avec Google","Sign in":"Se connecter","Sign In":"Se connecter","Signing in":"Connexion en cours",Skip:"Passer",Submit:"Soumettre",Submitting:"Envoi en cours",Username:"Nom d'utilisateur","Verify Contact":"V\xE9rifier le contact",Verify:"V\xE9rifier","An account with the given email already exists.":"Un utilisateur avec cette adresse email existe d\xE9j\xE0.",Change:"Modifier","Confirm a Code":"Confirmer un code","Confirm Sign In":"Confirmer la connexion","Create account":"Cr\xE9er un compte","Enter your password":"Saisissez votre mot de passe","Forgot 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","Resend a Code":"Renvoyer un code","Reset password":"R\xE9initialisez votre mot de passe",Send:"Envoyer","Sign In with AWS":"Se connecter avec AWS","Sign Out":"D\xE9connexion","Sign Up":"S'inscrire",SMS:"SMS","User already exists":"L'utilisateur existe d\xE9j\xE0","User does not exist":"L'utilisateur n'existe pas","Username cannot be empty":"Le nom d'utilisateur doit \xEAtre renseign\xE9","Username/client id combination not found.":"L'utilisateur n'existe pas"},Kc={"Account recovery requires verified contact information":"Il ripristino dell'account richiede informazioni di contatto verificate","Back to Sign In":"Torna alla schermata di accesso","Change Password":"Cambia la password",Changing:"Modifica in corso",Code:"Codice","Confirm Password":"Conferma la password","Confirm Sign Up":"Conferma registrazione","Confirm SMS Code":"Conferma codice SMS","Confirm TOTP Code":"Conferma codice TOTP",Confirm:"Conferma","Confirmation Code":"Codice di verifica",Confirming:"Conferma in corso","Create a new account":"Crea un nuovo account","Create Account":"Crea Account","Creating Account":"Creazione account in corso","Dismiss alert":"Licenziare l'allerta",Email:"Email","Enter your code":"Inserisci il tuo codice","Enter your email":"Inserisci la tua e-mail","Enter your phone number":'Inserisci il tuo numero di telefono"',"Enter your username":"Inserisci il tuo nome utente","Forgot your password?":"Password dimenticata?","Hide password":"Nascondi password",Loading:"Caricamento in corso","New password":"Nuova password",Password:"Password","Phone Number":"Numero di telefono","Resend Code":"Rispedisci codice","Reset your Password":"Reimposta la tua Password","Reset your password":"Reimposta la tua password","Send code":"Invia codice","Send Code":"Invia codice",Sending:"Invio in corso","Setup TOTP":"Configura TOTP","Show password":"Mostra password","Sign in to your account":"Accedi al tuo account","Sign In with Amazon":"Accedi con Amazon","Sign In with Apple":"Accedi con Apple","Sign In with Facebook":"Accedi con Facebook","Sign In with Google":"Accedi con Google","Sign in":"Accesso","Sign In":"Accesso","Signing in":"Accesso in corso",Skip:"Salta",Submit:"Invia",Submitting:"Invio in corso",Username:"Nome utente","Verify Contact":"Verifica contatto",Verify:"Verifica","An account with the given email already exists.":"Questa email \xE8 gi\xE0 utilizzata da un'altro account.","Confirm a Code":"Conferma un codice","Confirm Sign In":"Conferma l'accesso","Create account":"Crea account","Enter your password":"Inserisci la tua password","Forgot 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","No account? ":"Non hai un account?",or:"o","Password attempts exceeded":"Il numero massimo di tentativi di accesso falliti \xE8 stato raggiunto","Reset password":"Reimposta password","Sign Out":"Esci","Sign Up":"Registrati","User already exists":"Utente gi\xE0 esistente","User does not exist":"Utente inesistente","Username cannot be empty":"Il nome utente non pu\xF2 essere vuoto"},qc={"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","Back to Sign In":"\u30B5\u30A4\u30F3\u30A4\u30F3\u306B\u623B\u308B","Change Password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5909\u3048\u308B ",Changing:"\u5909\u66F4\u4E2D",Code:"\u30B3\u30FC\u30C9","Confirm Password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u306E\u78BA\u8A8D","Confirm Sign Up":"\u767B\u9332\u3059\u308B","Confirm SMS Code":"SMS \u30B3\u30FC\u30C9\u3092\u78BA\u8A8D","Confirm TOTP Code":"TOTP \u30B3\u30FC\u30C9\u3092\u78BA\u8A8D",Confirm:"\u78BA\u5B9A","Confirmation Code":"\u78BA\u8A8D\u30B3\u30FC\u30C9",Confirming:"\u78BA\u8A8D\u4E2D","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","Creating Account":"\u30A2\u30AB\u30A6\u30F3\u30C8\u306E\u4F5C\u6210\u4E2D","Dismiss alert":"\u30A2\u30E9\u30FC\u30C8\u3092\u9589\u3058\u308B",Email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9","Enter your code":"\u30B3\u30FC\u30C9\u3092\u5165\u529B","Enter your email":"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u3092\u5165\u529B","Enter your phone number":"\u96FB\u8A71\u756A\u53F7\u3092\u5165\u529B","Enter your username":"\u30E6\u30FC\u30B6\u30FC\u540D\u3092\u5165\u529B ","Forgot your password?":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5FD8\u308C\u307E\u3057\u305F\u304B\uFF1F ","Hide password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u975E\u8868\u793A",Loading:"\u30ED\u30FC\u30C9\u4E2D","New password":"\u65B0\u3057\u3044\u30D1\u30B9\u30EF\u30FC\u30C9",Password:"\u30D1\u30B9\u30EF\u30FC\u30C9 ","Phone Number":"\u96FB\u8A71\u756A\u53F7","Resend Code":"\u30B3\u30FC\u30C9\u3092\u518D\u9001\u4FE1","Reset your 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","Send Code":"\u30B3\u30FC\u30C9\u3092\u9001\u4FE1",Sending:"\u9001\u4FE1\u4E2D","Setup TOTP":"TOTP \u3092\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7","Show password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u8868\u793A","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 Apple":"Apple \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 In":"\u30B5\u30A4\u30F3\u30A4\u30F3 ","Sign in":"\u30B5\u30A4\u30F3\u30A4\u30F3","Signing in":"\u30B5\u30A4\u30F3\u30A4\u30F3\u4E2D",Skip:"\u30B9\u30AD\u30C3\u30D7",Submit:"\u9001\u4FE1",Submitting:"\u9001\u4FE1\u4E2D",Username:"\u30E6\u30FC\u30B6\u30FC\u540D ","Verify Contact":"\u9023\u7D61\u5148\u3092\u78BA\u8A8D",Verify:"\u78BA\u8A8D","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","Confirm a Code":"\u30B3\u30FC\u30C9\u3092\u78BA\u8A8D","Confirm Sign In":"\u30B5\u30A4\u30F3\u30A4\u30F3\u3059\u308B","Create account":"\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u4F5C\u308B ","Enter your password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5165\u529B ","Forgot Password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5FD8\u308C\u305F ","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
2
- +12345678900 \u306E\u5F62\u5F0F\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044`,"It may take a minute to arrive.":"\u30B3\u30FC\u30C9\u3092\u53D7\u4FE1\u3059\u308B\u307E\u3067\u6570\u5206\u304B\u304B\u308B\u5834\u5408\u304C\u3042\u308A\u307E\u3059\u3002","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 attempts exceeded":"\u30B5\u30A4\u30F3\u30A4\u30F3\u306E\u8A66\u884C\u56DE\u6570\u304C\u4E0A\u9650\u306B\u9054\u3057\u307E\u3057\u305F","Reset password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u30EA\u30BB\u30C3\u30C8 ","Sign Out":"\u30B5\u30A4\u30F3\u30A2\u30A6\u30C8 ","Sign Up":"\u767B\u9332 ","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 cannot be empty":"\u30E6\u30FC\u30B6\u30FC\u540D\u306F\u5165\u529B\u5FC5\u9808\u3067\u3059","We Emailed You":"\u30B3\u30FC\u30C9\u3092\u9001\u4FE1\u3057\u307E\u3057\u305F","Your code is on the way. To log in, enter the code we emailed to":"\u30ED\u30B0\u30A4\u30F3\u3059\u308B\u306B\u306F\u3001\u30E1\u30FC\u30EB\u306B\u8A18\u8F09\u3055\u308C\u305F\u30B3\u30FC\u30C9\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u9001\u4FE1\u5148:","Your code is on the way. To log in, enter the code we texted to":"\u30ED\u30B0\u30A4\u30F3\u3059\u308B\u306B\u306F\u3001\u30C6\u30AD\u30B9\u30C8\u30E1\u30C3\u30BB\u30FC\u30B8\u306B\u8A18\u8F09\u3055\u308C\u305F\u30B3\u30FC\u30C9\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u9001\u4FE1\u5148:"},Wc={"Account recovery requires verified contact information":"\uACC4\uC815 \uBCF5\uAD6C\uB97C \uC704\uD574 \uC5F0\uB77D\uCC98 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4","Back to Sign In":"\uB85C\uADF8\uC778\uC73C\uB85C \uB3CC\uC544\uAC00\uAE30","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","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 a new account":"\uD68C\uC6D0\uAC00\uC785","Create Account":"\uD68C\uC6D0\uAC00\uC785","Creating Account":"\uD68C\uC6D0\uAC00\uC785\uC911","Dismiss alert":"\uC54C\uB9BC \uBB34\uC2DC",Email:"\uC774\uBA54\uC77C","Enter your code":"\uC778\uC99D\uBC88\uD638\uB97C \uC785\uB825\uD574\uC8FC\uC138\uC694","Enter your email":"\uC774\uBA54\uC77C \uC785\uB825","Enter your phone number":"\uC804\uD654\uBC88\uD638 \uC785\uB825","Enter your username":"\uC544\uC774\uB514\uB97C \uC785\uB825\uD574\uC8FC\uC138\uC694","Hide password":"\uBE44\uBC00\uBC88\uD638 \uC228\uAE30\uAE30",Loading:"\uB85C\uB529\uC911","New password":"\uC0C8 \uBE44\uBC00\uBC88\uD638",Password:"\uBE44\uBC00\uBC88\uD638","Phone Number":"\uC804\uD654\uBC88\uD638","Resend Code":"\uC778\uC99D\uBC88\uD638 \uC7AC\uC804\uC1A1","Reset your password":"\uBE44\uBC00\uBC88\uD638 \uC7AC\uC124\uC815","Reset your Password":"\uBE44\uBC00\uBC88\uD638 \uC7AC\uC124\uC815","Send code":"\uC778\uC99D\uCF54\uB4DC \uBCF4\uB0B4\uAE30","Send Code":"\uCF54\uB4DC \uC804\uC1A1",Sending:"\uC804\uC1A1\uC911","Setup TOTP":"TOTP \uC124\uC815\uD558\uAE30","Show password":"\uBE44\uBC00\uBC88\uD638 \uBCF4\uC774\uAE30","Sign in to your account":"\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":"\uB85C\uADF8\uC778","Sign In":"\uB85C\uADF8\uC778","Signing in":"\uB85C\uADF8\uC778\uC911",Skip:"\uB2E4\uC74C\uC5D0 \uD558\uAE30",Submit:"\uD655\uC778",Submitting:"\uD655\uC778\uC911",Username:"\uC544\uC774\uB514","Verify Contact":"\uC5F0\uB77D\uCC98 \uD655\uC778",Verify:"\uC778\uC99D",Birthdate:"\uC0DD\uB144\uC6D4\uC77C","Family Name":"\uC131","Forgot your password?":"\uBE44\uBC00\uBC88\uD638\uB97C \uC78A\uC73C\uC168\uB098\uC694?","Given Name":"\uC774\uB984",Name:"\uC131\uD568",Nickname:"\uB2C9\uB124\uC784","Preferred Username":"\uB2C9\uB124\uC784",Profile:"\uD504\uB85C\uD544","Reset Password":"\uBE44\uBC00\uBC88\uD638 \uC7AC\uC124\uC815",Website:"\uC6F9\uC0AC\uC774\uD2B8"},Yc={"Account recovery requires verified contact information":"Accountherstel vereist geverifieerde contactgegevens","Back to Sign In":"Terug naar inloggen","Change Password":"Wachtwoord wijzigen",Changing:"Wordt aangepast",Code:"Code","Confirm Password":"Bevestig Wachtwoord","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 a new account":"Nieuw account aanmaken","Create Account":"Account aanmaken","Creating Account":"Account wordt aangemaakt","Dismiss alert":"Waarschuwing sluiten",Email:"E-mail","Enter your code":"Vul je code in","Enter your email":"Vul je e-mail in","Enter your phone number":"Vul je telefoonnummer in","Enter your username":"Vul je gebruikersnaam in","Forgot your password?":"Wachtwoord vergeten? ","Hide password":"Verberg wachtwoord",Loading:"Laden","New password":"Nieuw wachtwoord",Password:"Wachtwoord","Phone Number":"Telefoonnummer","Resend Code":"Verstuur code nogmaals","Reset your password":"Reset je wachtwoord","Reset your Password":"Wachtwoord resetten","Send code":"Verstuur code","Send Code":"Verstuur Code",Sending:"Versturen","Setup TOTP":"TOTP Instellingen","Show password":"Toon wachtwoord","Sign in to your account":"Inloggen op je account","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":"Inloggen","Sign In":"Inloggen","Signing in":"Inloggen",Skip:"Overslaan",Submit:"Versturen",Submitting:"Wordt verstuurd",Username:"Gebruikersnaam","Verify Contact":"Verifieer Contact",Verify:"Verifieer"},Jc={"Account recovery requires verified contact information":"Odzyskanie konta wymaga zweryfikowanych danych kontaktowych","Back to Sign In":"Powr\xF3t do logowania","Change Password":"Zmie\u0144 has\u0142o",Changing:"Zmienianie",Code:"Kod","Confirm Password":"Potwierd\u017A 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 a new account":"Utw\xF3rz nowe konto","Create Account":"Utw\xF3rz konto","Creating Account":"Tworzenie konta","Dismiss alert":"Odrzu\u0107 alert",Email:"E-mail","Enter your code":"Wprowad\u017A sw\xF3j kod","Enter your email":"Wpisz sw\xF3j adres e-mail","Enter your phone number":"Wpisz sw\xF3j numer telefonu","Enter your username":"Wprowad\u017A swoj\u0105 nazw\u0119 u\u017Cytkownika","Forgot your password?":"Zapomnia\u0142e\u015B has\u0142a? ","Hide password":"Ukryj has\u0142o",Loading:"\u0141adowanie","New password":"Nowe has\u0142o",Password:"Has\u0142o","Phone Number":"Numer telefonu","Resend Code":"Wy\u015Blij kod ponownie","Reset your password":"Zresetuj swoje has\u0142o","Reset your Password":"Zresetuj swoje has\u0142o","Send code":"Wy\u015Blij kod","Send Code":"Zresetuj has\u0142o",Sending:"Wysy\u0142anie","Setup TOTP":"Konfiguruj TOTP","Show password":"Poka\u017C has\u0142o","Sign in to your account":"Zaloguj si\u0119 na swoje konto","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":"Logowanie","Sign in":"Zaloguj","Signing in":"Logowanie",Skip:"Pomi\u0144",Submit:"Wy\u015Blij",Submitting:"Wysy\u0142anie",Username:"Nazwa u\u017Cytkownika","Verify Contact":"Weryfikacja danych kontaktowych",Verify:"Zweryfikuj",Birthdate:"Data urodzenia","Family Name":"Nazwisko","Given Name":"Pierwsze imi\u0119","Middle Name":"Drugie imi\u0119",Name:"Imi\u0119 i nazwisko",Nickname:"Pseudonim","Preferred Username":"Preferowana nazwa u\u017Cytkownika",Profile:"Profil",Website:"Strona internetowa"},Zc={"Account recovery requires verified contact information":"A recupera\xE7\xE3o da conta requer informa\xE7\xF5es de contato verificadas","Back to Sign In":"Voltar para Entrar","Change Password":"Mudar senha",Changing:"Mudando",Code:"C\xF3digo","Confirm Password":"Confirme a 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 a new account":"Criar uma nova conta","Create Account":"Criar Conta","Creating Account":"Criando conta","Dismiss alert":"Descartar alerta",Email:"O email","Enter your code":"Insira seu c\xF3digo","Enter your email":"Digite seu e-mail","Enter your phone number":"Digite seu n\xFAmero de telefone","Enter your username":"entre com seu nome de usu\xE1rio","Forgot your password?":"Esqueceu sua senha? ","Hide password":"Esconder a senha",Loading:"Carregando","New password":"Nova Senha",Password:"Senha","Phone Number":"N\xFAmero de telefone","Resend Code":"Reenviar c\xF3digo","Reset your password":"Redefina sua senha","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 to your account":"Fa\xE7a login em sua conta","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":"Entrar","Sign In":"Entrar","Signing in":"Entrando",Skip:"Pular",Submit:"Enviar",Submitting:"Enviando",Username:"Nome do usu\xE1rio","Verify Contact":"Verificar contato",Verify:"Verificar"},Qc={"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",Changing:"\u6B63\u5728\u4FEE\u6539",Code:"\u786E\u8BA4\u7801","Confirm Password":"\u786E\u8BA4\u5BC6\u7801","Confirm Sign Up":"\u786E\u8BA4\u6CE8\u518C","Confirm SMS Code":"\u786E\u8BA4\u77ED\u4FE1\u9A8C\u8BC1\u7801","Confirm TOTP Code":"\u786E\u8BA4 TOTP \u4EE3\u7801",Confirm:"\u786E\u8BA4","Confirmation Code":"\u786E\u8BA4\u7801",Confirming:"\u6B63\u5728\u786E\u8BA4","Create a new account":"\u521B\u5EFA\u65B0\u8D26\u6237","Create Account":"\u521B\u5EFA\u8D26\u6237","Creating Account":"\u6B63\u5728\u521B\u5EFA\u8D26\u6237","Dismiss alert":"\u5173\u95ED\u8B66\u62A5",Email:"\u90AE\u7BB1","Enter your code":"\u8F93\u5165\u9A8C\u8BC1\u7801","Enter your email":"\u8F93\u5165\u7535\u5B50\u90AE\u4EF6","Enter your phone number":"\u8F93\u5165\u7535\u8BDD\u53F7\u7801","Enter your username":"\u8F93\u5165\u7528\u6237\u540D","Forgot your password?":"\u5FD8\u8BB0\u5BC6\u7801\u4E86\uFF1F","Hide password":"\u9690\u85CF\u5BC6\u7801",Loading:"\u6B63\u5728\u52A0\u8F7D","New password":"\u65B0\u5BC6\u7801",Password:"\u5BC6\u7801","Phone Number":"\u7535\u8BDD","Resend Code":"\u91CD\u53D1\u9A8C\u8BC1\u7801","Reset your password":"\u91CD\u7F6E\u5BC6\u7801","Reset your Password":"\u91CD\u7F6E\u5BC6\u7801","Send Code":"\u53D1\u9001\u786E\u8BA4\u7801","Send code":"\u53D1\u9001\u9A8C\u8BC1\u7801",Sending:"\u6B63\u5728\u53D1\u9001","Setup TOTP":"\u8BBE\u7F6E TOTP","Show password":"\u663E\u793A\u5BC6\u7801","Sign in to your account":"\u767B\u5F55\u8D26\u6237","Sign In with Amazon":"\u901A\u8FC7 Amazon \u767B\u5F55","Sign In with Apple":"\u901A\u8FC7 Apple \u767B\u5F55","Sign In with Facebook":"\u901A\u8FC7 Facebook \u767B\u5F55","Sign In with Google":"\u901A\u8FC7 Google \u767B\u5F55","Sign in":"\u767B\u5F55","Sign In":"\u767B\u5F55","Signing in":"\u6B63\u5728\u767B\u5F55",Skip:"\u8DF3\u8FC7",Submit:"\u63D0\u4EA4",Submitting:"\u6B63\u5728\u63D0\u4EA4",Username:"\u7528\u6237\u540D","Verify Contact":"\u9A8C\u8BC1\u8054\u7CFB\u65B9\u5F0F",Verify:"\u9A8C\u8BC1","Confirm a Code":"\u786E\u8BA4\u7801","Confirm Sign In":"\u786E\u8BA4\u767B\u5F55","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","Resend a Code":"\u91CD\u53D1\u786E\u8BA4\u7801","Sign Out":"\u9000\u51FA","Sign Up":"\u6CE8\u518C","User already exists":"\u7528\u6237\u5DF2\u7ECF\u5B58\u5728","User does not exist":"\u7528\u6237\u4E0D\u5B58\u5728"},Xc={"Account recovery requires verified contact information":"F\xF6r att \xE5terst\xE4lla kontot beh\xF6ver du ett verifierat konto","Back to Sign In":"Tillbaka till inloggningen","Change Password":"Byt l\xF6senord",Changing:"\xC4ndra",Code:"Kod","Confirm Password":"Bekr\xE4fta l\xF6senord","Confirm Sign Up":"Bekr\xE4fta registrering","Confirm SMS Code":"Bekr\xE4fta SMS-kod","Confirm TOTP Code":"Bekr\xE4fta TOTP-kod",Confirm:"Bekr\xE4fta","Confirmation Code":"Verifikationskod",Confirming:"Bekr\xE4ftar","Create a new account":"Skapa ett nytt konto","Create Account":"Skapa konto","Creating Account":"Skapar konto","Dismiss alert":"Avvisa varning",Email:"E-post","Enter your code":"Skriv din kod","Enter your email":"Fyll i din e-post","Enter your phone number":"Ange ditt telefonnummer","Enter your username":"Ange ditt anv\xE4ndarnamn","Forgot your password?":"Gl\xF6mt ditt l\xF6senord? ","Hide password":"D\xF6lj l\xF6senord",Loading:"Laddar","New password":"Nytt l\xF6senord",Password:"L\xF6senord","Phone Number":"Telefonnummer","Resend Code":"Skicka koden igen","Reset your password":"\xC5terst\xE4ll ditt l\xF6senord","Reset your Password":"\xC5terst\xE4ll ditt l\xF6senord","Send code":"Skicka kod","Send Code":"Skicka kod",Sending:"Skickar","Setup TOTP":"Konfigurera TOTP","Show password":"Visa l\xF6senord","Sign in to your account":"Logga in till ditt konto","Sign In with Amazon":"Logga in med Amazon","Sign In with Apple":"Logga in med Apple","Sign In with Facebook":"Logga in med Facebook","Sign In with Google":"Logga in med Google","Sign in":"Logga in","Sign In":"Logga in","Signing in":"Loggar in",Skip:"Hoppa \xF6ver",Submit:"Skicka",Submitting:"Skickar in",Username:"Anv\xE4ndarnamn","Verify Contact":"Verifiera kontakt",Verify:"Verifiera","An account with the given email already exists.":"Det finns redan ett konto med denna e-postadress","Confirm a Code":"Bekr\xE4fta koden","Confirm Sign In":"Bekr\xE4fta inloggning","Create account":"Skapa konto","Enter your password":"Ange ditt l\xF6senord","Forgot Password":"Gl\xF6mt l\xF6senordet","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 attempts exceeded":"Maximalt antal felaktiga inloggningsf\xF6rs\xF6k har uppn\xE5tts","Reset password":"\xC5terst\xE4ll l\xF6senord","Sign Out":"Logga ut","Sign Up":"Registrering","User already exists":"Anv\xE4ndaren finns redan","User does not exist":"Anv\xE4ndaren finns inte","Username cannot be empty":"Anv\xE4ndarnamnet kan inte vara tomt","We Emailed You":"Vi har skickat e-post till dig"},el={"Account recovery requires verified contact information":"Pemulihan akun memerlukan informasi kontak terverifikasi","Back to Sign In":"Kembali ke Masuk","Change Password":"Ubah kata sandi",Changing:"Mengubah",Code:"Kode","Confirm Password":"Konfirmasi kata sandi","Confirm Sign Up":"Konfirmasi Pendaftaran","Confirm SMS Code":"Konfirmasi Kode SMS","Confirm TOTP Code":"Konfirmasi Kode TOTP",Confirm:"Konfirmasi","Confirmation Code":"Kode Konfirmasi",Confirming:"Mengkonfirmasi","Create a new account":"Buat akun baru","Create Account":"Buat Akun","Creating Account":"Membuat Akun","Dismiss alert":"Hentikan pemberitahuan",Email:"Email","Enter your code":"Masukkan kode anda","Enter your email":"Masukkan email anda","Enter your phone number":"Masukkan nomor telepon anda","Enter your username":"Masukkan nama akun anda","Forgot your password?":"Lupa kata sandi? ","Hide password":"Sembunyikan kata sandi",Loading:"Memuat","New password":"Kata sandi baru",Password:"Kata sandi","Phone Number":"Nomor telepon","Resend Code":"Kirim ulang kodenya","Reset your Password":"Reset Kata Sandi","Reset your password":"Ubah kata sandi anda","Send code":"Kirim kode","Send Code":"Kirim Kode",Sending:"Mengirim","Setup TOTP":"Siapkan TOTP","Show password":"Tampilkan kata sandi","Sign in to your account":"Masuk akun anda","Sign In with Amazon":"Masuk dengan Amazon","Sign In with Apple":"Masuk dengan Apple","Sign In with Facebook":"Masuk dengan Facebook","Sign In with Google":"Masuk dengan Google","Sign in":"Masuk","Sign In":"Masuk","Signing in":"Memasuki",Skip:"Lewati",Submit:"Ajukan",Submitting:"Mengajukan",Username:"Nama akun","Verify Contact":"Verifikasi Kontak",Verify:"Verifikasi","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.","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","Confirm a Code":"Konfirmasi kode","Create account":"Buat akun","Enter your password":"Masukkan kata sandi anda","Forgot 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","No account? ":"Tidak ada akun?",or:"atau","Password did not conform with policy: Password not long enough":"Kata sandi tidak sesuai dengan aturan: Kata sandi kurang panjang","Resend a Code":"Renvoyer un code","Reset password":"Ubah kata sandi anda",Send:"Kirim","Sign In with AWS":"Masuk dengan AWS","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",SMS:"SMS","User already exists":"Akun sudah terdaftar","User does not exist.":"Akun tidak terdaftar.","User is disabled.":"Akun dinonaktifkan.","Username cannot be empty":"Nama akun tidak boleh kosong","Username/client id combination not found.":"Nama akun atau id tidak ditemukan.","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"},tl={"Account recovery requires verified contact information":"Hesap kurtarma, do\u011Frulanm\u0131\u015F ileti\u015Fim bilgilerini gerektirir","Back to Sign In":"Oturum A\xE7maya Geri D\xF6n","Change Password":"\u015Eifreyi De\u011Fi\u015Ftir",Changing:"De\u011Fi\u015Ftiriliyor",Code:"Kod","Confirm Password":"\u015Eifreyi 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",Confirm:"Do\u011Frula","Confirmation Code":"Do\u011Frulama Kodu",Confirming:"Do\u011Frulan\u0131yor","Create a new account":"Yeni bir hesap olu\u015Ftur","Create Account":"Hesap Olu\u015Ftur","Creating Account":"Hesap Olu\u015Fturuluyor","Dismiss alert":"Uyar\u0131y\u0131 reddet",Email:"E-posta","Enter your code":"Kodu girin","Enter your email":"E-posta adresinizi girin","Enter your phone number":"Telefon numaran\u0131z\u0131 girin","Enter your username":"Kullan\u0131c\u0131 ad\u0131n\u0131z\u0131 girin","Forgot your password?":"\u015Eifrenizi mi unuttunuz?","Hide password":"\u015Eifreyi gizle",Loading:"Y\xFCkleniyor","New password":"Yeni \u015Fifre",Password:"\u015Eifre","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 to your account":"Hesab\u0131n\u0131zda oturum a\xE7\u0131n","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":"Oturum a\xE7","Sign In":"Oturum A\xE7","Signing in":"Oturum a\xE7\u0131l\u0131yor",Skip:"Atla",Submit:"G\xF6nder",Submitting:"G\xF6nderiliyor",Username:"Kullan\u0131c\u0131 ad\u0131","Verify Contact":"Ki\u015Fiyi Do\u011Frula",Verify:"Do\u011Frula","An account with the given email already exists.":"Bu e-postaya ait zaten bir hesap var.","Confirm Sign In":"Oturum A\xE7may\u0131 Do\u011Frula","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? ","No account? ":"Hesab\u0131n\u0131z yok mu? ",or:"veya","Password attempts exceeded":"Maksimum oturum a\xE7ma giri\u015Fimi a\u015F\u0131ld\u0131","Sign Out":"\xC7\u0131k\u0131\u015F yap","Sign Up":"Kay\u0131t Ol","User already exists":"Bu kullan\u0131c\u0131 zaten var","User does not exist":"B\xF6yle bir kullan\u0131c\u0131 mevcut de\u011Fil","Username cannot be empty":"Kullan\u0131c\u0131 ad\u0131 bo\u015F olamaz"},nl={"Account recovery requires verified contact information":"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435 \u0443\u0447\u0435\u0442\u043D\u043E\u0439 \u0437\u0430\u043F\u0438\u0441\u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438 \u043A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438","Back to Sign In":"\u041D\u0430\u0437\u0430\u0434, \u0447\u0442\u043E\u0431\u044B \u0432\u043E\u0439\u0442\u0438","Change Password":"\u0438\u0437\u043C\u0435\u043D\u044F\u0442\u044C \u043F\u0430\u0440\u043E\u043B\u044C",Changing:"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435",Code:"\u041A\u043E\u0434","Confirm Password":"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u0435 \u043F\u0430\u0440\u043E\u043B\u044F","Confirm Sign Up":"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u0435 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043E\u0432\u0430\u0442\u044C\u0441\u044F","Confirm SMS Code":"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u0435 CMC-\u041A\u043E\u0434","Confirm TOTP Code":"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u0435 TOTP-\u041A\u043E\u0434",Confirm:"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0442\u044C","Confirmation Code":"\u043A\u043E\u0434 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F",Confirming:"\u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u0435","Create a new account":"\u0421\u043E\u0437\u0434\u0430\u0432\u0430\u0442\u044C \u043D\u043E\u0432\u0443\u044E \u0443\u0447\u0435\u0442\u043D\u0443\u044E \u0437\u0430\u043F\u0438\u0441\u044C","Create Account":"\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u0443\u0447\u0435\u0442\u043D\u0443\u044E \u0437\u0430\u043F\u0438\u0441\u044C","Creating Account":"\u0441\u043E\u0437\u0434\u0430\u043D\u0438\u0435 \u0443\u0447\u0435\u0442\u043D\u0430\u044F \u0437\u0430\u043F\u0438\u0441\u044C","Dismiss alert":"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435",Email:"\u044D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430","Enter your code":"\u0432\u0432\u0435\u0441\u0442\u0438 \u0432\u0430\u0448 \u041A\u043E\u0434","Enter your email":"\u0432\u0432\u0435\u0441\u0442\u0438 \u0432\u0430\u0448 \u044D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430","Enter your phone number":"\u0432\u0432\u0435\u0441\u0442\u0438 \u0432\u0430\u0448 \u043D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430","Enter your username":"\u0432\u0432\u0435\u0441\u0442\u0438 \u0432\u0430\u0448 \u0438\u043C\u044F \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F","Forgot your password?":"\u0417\u0430\u0431\u044B\u043B\u0438 \u0432\u0430\u0448 \u043F\u0430\u0440\u043E\u043B\u044C?","Hide password":"\u0421\u043A\u0440\u044B\u0432\u0430\u0442\u044C \u043F\u0430\u0440\u043E\u043B\u044C",Loading:"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430","New password":"\u041D\u043E\u0432\u044B\u0439 \u043F\u0430\u0440\u043E\u043B\u044C",Password:"\u041F\u0430\u0440\u043E\u043B\u044C","Phone Number":"\u041D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430","Resend Code":"\u041E\u0442\u043F\u0440\u0430\u0432\u044C \u0435\u0449\u0435 \u0440\u0430\u0437 \u041A\u043E\u0434","Reset your password":"\u0441\u0431\u0440\u043E\u0441 \u0432\u0430\u0448 \u043F\u0430\u0440\u043E\u043B\u044C","Reset your Password":"\u0441\u0431\u0440\u043E\u0441 \u0432\u0430\u0448 \u041F\u0430\u0440\u043E\u043B\u044C","Send code":"\u041E\u0442\u043F\u0440\u0430\u0432\u043B\u044F\u0442\u044C \u041A\u043E\u0434","Send Code":"\u041E\u0442\u043F\u0440\u0430\u0432\u043B\u044F\u0442\u044C \u041A\u043E\u0434",Sending:"\u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0430","Setup TOTP":"\u041D\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044C TOTP","Show password":"\u041F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0442\u044C \u043F\u0430\u0440\u043E\u043B\u044C","Sign in to your account":"\u0437\u043D\u0430\u043A \u0432 \u0441\u0432\u043E\u0439 \u0430\u043A\u043A\u0430\u0443\u043D\u0442","Sign In with Amazon":"\u0437\u043D\u0430\u043A \u0432 \u0441 Amazon","Sign In with Apple":"\u0437\u043D\u0430\u043A \u0432 \u0441 Apple","Sign In with Facebook":"\u0437\u043D\u0430\u043A \u0432 \u0441 Facebook","Sign In with Google":"\u0437\u043D\u0430\u043A \u0432 \u0441 Google","Sign in":"\u0437\u043D\u0430\u043A \u0432","Sign In":"\u0437\u043D\u0430\u043A \u0432","Signing in":"\u043F\u043E\u0434\u043F\u0438\u0441\u0430\u043D\u0438\u0435 \u0432",Skip:"\u041F\u0440\u043E\u043F\u0443\u0441\u043A\u0430\u0442\u044C",Submit:"\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043B\u044F\u0442\u044C \u043D\u0430 \u0440\u0430\u0441\u0441\u043C\u043E\u0442\u0440\u0435\u043D\u0438\u0435",Submitting:"\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0432",Username:"\u0418\u043C\u044F \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F","Verify Contact":"\u041F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C \u043A\u043E\u043D\u0442\u0430\u043A\u0442",Verify:"\u041F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C"},rl={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"},ol=U({},jc),al=U({},zc),il=U({},Gc),sl=U({},Hc),ul=U({},Kc),cl=U({},qc),ll=U({},Wc),dl=U({},Yc),fl=U({},Jc),pl=U({},Zc),hl=U({},Qc),ml=U({},Xc),gl=U({},el),vl=U({},tl),yl=U({},nl),wl=U({},rl);U({},wl);function R(e){return ce.I18n.get(e)}function Sl(e){return ce.I18n.get(e)!==e}var _l={de:ol,en:al,es:il,fr:sl,id:gl,it:ul,ja:cl,kr:ll,nl:dl,pl:fl,pt:pl,zh:hl,sv:ml,tr:vl,ru:yl},Gr={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:Lc,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}},bl=["^","$","*",".","[","]","{","}","(",")","?",'"',"!","@","#","%","&","/","\\",",",">","<","'",":",";","|","_","~","`","=","+","-"," "],Me=function(e){var t=new FormData(e.target);return Object.fromEntries(t)},Jo=function(e){return Dc.includes(e)},Cl=function(e){return e?(t=e,Array.isArray(t)?e:[e]):null;var t},Al=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")}},El=function(e,t){return t===void 0&&(t=Al),ce.Hub.listen("auth",function(n){t(n,e)},"authenticator-hub-handler")},Il=function(e){return bl.some(function(t){return e.includes(t)})},We=function(e,t){var n=Qa(e).country_code,r=Gr[t];return r.type==="tel"&&(r=U(U({},r),{dialCode:n})),r},or=function(e){var t=vr(e);return U(U({},We(e,t)),{autocomplete:"username"})},on=function(e){return{confirmation_code:U(U({},We(e,"confirmation_code")),{label:"Code *",placeholder:"Code"})}},Tl={signIn:function(e){return{username:U({},or(e)),password:U(U({},We(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(Re(Re(Re([],n,!0),["password","confirm_password"],!1),r,!0)));s<u.length;s++){var c=u[s];if(Jo(c)){var l=c===a?or(e):We(e,c);i[c]=U({},l)}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:U(U({},We(e,"confirmation_code")),{placeholder:"Enter your code"})}},confirmSignIn:on,forceNewPassword:function(e){for(var t=Te(e).context.requiredAttributes,n={},r=0,a=Array.from(new Set(Re(["password","confirm_password"],t,!0)));r<a.length;r++){var i=a[r];Jo(i)?n[i]=U({},We(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=Gr[t].label;return{username:U(U({},or(e)),{label:"Enter your ".concat(n.toLowerCase()),placeholder:"Enter your ".concat(n.toLowerCase())})}},confirmResetPassword:function(e){return U(U({},on(e)),{password:U(U({},We(e,"password")),{label:"New Password",placeholder:"New Password"}),confirm_password:U(U({},We(e,"confirm_password")),{label:"Confirm Password",placeholder:"Confirm Password"})})},confirmVerifyUser:on,setupTOTP:on};function $l(){this.__data__=[],this.size=0}var Pl=$l;function Nl(e,t){return e===t||e!==e&&t!==t}var Kt=Nl,kl=Kt;function xl(e,t){for(var n=e.length;n--;)if(kl(e[n][0],t))return n;return-1}var Fn=xl,Ol=Fn,Ul=Array.prototype,Rl=Ul.splice;function Bl(e){var t=this.__data__,n=Ol(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Rl.call(t,n,1),--this.size,!0}var Vl=Bl,Dl=Fn;function Ml(e){var t=this.__data__,n=Dl(t,e);return n<0?void 0:t[n][1]}var Fl=Ml,Ll=Fn;function jl(e){return Ll(this.__data__,e)>-1}var zl=jl,Gl=Fn;function Hl(e,t){var n=this.__data__,r=Gl(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Kl=Hl,ql=Pl,Wl=Vl,Yl=Fl,Jl=zl,Zl=Kl;function _t(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])}}_t.prototype.clear=ql;_t.prototype.delete=Wl;_t.prototype.get=Yl;_t.prototype.has=Jl;_t.prototype.set=Zl;var Ln=_t,Ql=Ln;function Xl(){this.__data__=new Ql,this.size=0}var ed=Xl;function td(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var nd=td;function rd(e){return this.__data__.get(e)}var od=rd;function ad(e){return this.__data__.has(e)}var id=ad,sd=Ve,ud=sd["__core-js_shared__"],cd=ud,ar=cd,Zo=function(){var e=/[^.]+$/.exec(ar&&ar.keys&&ar.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ld(e){return!!Zo&&Zo in e}var dd=ld,fd=Function.prototype,pd=fd.toString;function hd(e){if(e!=null){try{return pd.call(e)}catch{}try{return e+""}catch{}}return""}var ui=hd,md=Fr,gd=dd,vd=De,yd=ui,wd=/[\\^$.*+?()[\]{}|]/g,Sd=/^\[object .+?Constructor\]$/,_d=Function.prototype,bd=Object.prototype,Cd=_d.toString,Ad=bd.hasOwnProperty,Ed=RegExp("^"+Cd.call(Ad).replace(wd,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Id(e){if(!vd(e)||gd(e))return!1;var t=md(e)?Ed:Sd;return t.test(yd(e))}var Td=Id;function $d(e,t){return e==null?void 0:e[t]}var Pd=$d,Nd=Td,kd=Pd;function xd(e,t){var n=kd(e,t);return Nd(n)?n:void 0}var rt=xd,Od=rt,Ud=Ve,Rd=Od(Ud,"Map"),Hr=Rd,Bd=rt,Vd=Bd(Object,"create"),jn=Vd,Qo=jn;function Dd(){this.__data__=Qo?Qo(null):{},this.size=0}var Md=Dd;function Fd(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Ld=Fd,jd=jn,zd="__lodash_hash_undefined__",Gd=Object.prototype,Hd=Gd.hasOwnProperty;function Kd(e){var t=this.__data__;if(jd){var n=t[e];return n===zd?void 0:n}return Hd.call(t,e)?t[e]:void 0}var qd=Kd,Wd=jn,Yd=Object.prototype,Jd=Yd.hasOwnProperty;function Zd(e){var t=this.__data__;return Wd?t[e]!==void 0:Jd.call(t,e)}var Qd=Zd,Xd=jn,ef="__lodash_hash_undefined__";function tf(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Xd&&t===void 0?ef:t,this}var nf=tf,rf=Md,of=Ld,af=qd,sf=Qd,uf=nf;function bt(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])}}bt.prototype.clear=rf;bt.prototype.delete=of;bt.prototype.get=af;bt.prototype.has=sf;bt.prototype.set=uf;var cf=bt,Xo=cf,lf=Ln,df=Hr;function ff(){this.size=0,this.__data__={hash:new Xo,map:new(df||lf),string:new Xo}}var pf=ff;function hf(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var mf=hf,gf=mf;function vf(e,t){var n=e.__data__;return gf(t)?n[typeof t=="string"?"string":"hash"]:n.map}var zn=vf,yf=zn;function wf(e){var t=yf(this,e).delete(e);return this.size-=t?1:0,t}var Sf=wf,_f=zn;function bf(e){return _f(this,e).get(e)}var Cf=bf,Af=zn;function Ef(e){return Af(this,e).has(e)}var If=Ef,Tf=zn;function $f(e,t){var n=Tf(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var Pf=$f,Nf=pf,kf=Sf,xf=Cf,Of=If,Uf=Pf;function Ct(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])}}Ct.prototype.clear=Nf;Ct.prototype.delete=kf;Ct.prototype.get=xf;Ct.prototype.has=Of;Ct.prototype.set=Uf;var Kr=Ct,Rf=Ln,Bf=Hr,Vf=Kr,Df=200;function Mf(e,t){var n=this.__data__;if(n instanceof Rf){var r=n.__data__;if(!Bf||r.length<Df-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Vf(r)}return n.set(e,t),this.size=n.size,this}var Ff=Mf,Lf=Ln,jf=ed,zf=nd,Gf=od,Hf=id,Kf=Ff;function At(e){var t=this.__data__=new Lf(e);this.size=t.size}At.prototype.clear=jf;At.prototype.delete=zf;At.prototype.get=Gf;At.prototype.has=Hf;At.prototype.set=Kf;var Gn=At;function qf(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Wf=qf,Yf=rt,Jf=function(){try{var e=Yf(Object,"defineProperty");return e({},"",{}),e}catch{}}(),ci=Jf,ea=ci;function Zf(e,t,n){t=="__proto__"&&ea?ea(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var qr=Zf,Qf=qr,Xf=Kt,ep=Object.prototype,tp=ep.hasOwnProperty;function np(e,t,n){var r=e[t];(!(tp.call(e,t)&&Xf(r,n))||n===void 0&&!(t in e))&&Qf(e,t,n)}var Wr=np,rp=Wr,op=qr;function ap(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?op(n,u,c):rp(n,u,c)}return n}var qt=ap,ip=qt,sp=Mn;function up(e,t){return e&&ip(t,sp(t),e)}var cp=up;function lp(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var dp=lp,fp=De,pp=Dn,hp=dp,mp=Object.prototype,gp=mp.hasOwnProperty;function vp(e){if(!fp(e))return hp(e);var t=pp(e),n=[];for(var r in e)r=="constructor"&&(t||!gp.call(e,r))||n.push(r);return n}var yp=vp,wp=ri,Sp=yp,_p=Ht;function bp(e){return _p(e)?wp(e,!0):Sp(e)}var Wt=bp,Cp=qt,Ap=Wt;function Ep(e,t){return e&&Cp(t,Ap(t),e)}var Ip=Ep,An={exports:{}};(function(e,t){var n=Ve,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(l,d){if(d)return l.slice();var p=l.length,f=u?u(p):new l.constructor(p);return l.copy(f),f}e.exports=c})(An,An.exports);function Tp(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var li=Tp;function $p(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 Pp=$p;function Np(){return[]}var di=Np,kp=Pp,xp=di,Op=Object.prototype,Up=Op.propertyIsEnumerable,ta=Object.getOwnPropertySymbols,Rp=ta?function(e){return e==null?[]:(e=Object(e),kp(ta(e),function(t){return Up.call(e,t)}))}:xp,Yr=Rp,Bp=qt,Vp=Yr;function Dp(e,t){return Bp(e,Vp(e),t)}var Mp=Dp;function Fp(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var fi=Fp,Lp=oi,jp=Lp(Object.getPrototypeOf,Object),Jr=jp,zp=fi,Gp=Jr,Hp=Yr,Kp=di,qp=Object.getOwnPropertySymbols,Wp=qp?function(e){for(var t=[];e;)zp(t,Hp(e)),e=Gp(e);return t}:Kp,pi=Wp,Yp=qt,Jp=pi;function Zp(e,t){return Yp(e,Jp(e),t)}var Qp=Zp,Xp=fi,eh=Oe;function th(e,t,n){var r=t(e);return eh(e)?r:Xp(r,n(e))}var hi=th,nh=hi,rh=Yr,oh=Mn;function ah(e){return nh(e,oh,rh)}var mi=ah,ih=hi,sh=pi,uh=Wt;function ch(e){return ih(e,uh,sh)}var gi=ch,lh=rt,dh=Ve,fh=lh(dh,"DataView"),ph=fh,hh=rt,mh=Ve,gh=hh(mh,"Promise"),vh=gh,yh=rt,wh=Ve,Sh=yh(wh,"Set"),_h=Sh,bh=rt,Ch=Ve,Ah=bh(Ch,"WeakMap"),Eh=Ah,yr=ph,wr=Hr,Sr=vh,_r=_h,br=Eh,vi=St,Et=ui,na="[object Map]",Ih="[object Object]",ra="[object Promise]",oa="[object Set]",aa="[object WeakMap]",ia="[object DataView]",Th=Et(yr),$h=Et(wr),Ph=Et(Sr),Nh=Et(_r),kh=Et(br),et=vi;(yr&&et(new yr(new ArrayBuffer(1)))!=ia||wr&&et(new wr)!=na||Sr&&et(Sr.resolve())!=ra||_r&&et(new _r)!=oa||br&&et(new br)!=aa)&&(et=function(e){var t=vi(e),n=t==Ih?e.constructor:void 0,r=n?Et(n):"";if(r)switch(r){case Th:return ia;case $h:return na;case Ph:return ra;case Nh:return oa;case kh:return aa}return t});var Yt=et,xh=Object.prototype,Oh=xh.hasOwnProperty;function Uh(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Oh.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Rh=Uh,Bh=Ve,Vh=Bh.Uint8Array,yi=Vh,sa=yi;function Dh(e){var t=new e.constructor(e.byteLength);return new sa(t).set(new sa(e)),t}var Zr=Dh,Mh=Zr;function Fh(e,t){var n=t?Mh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Lh=Fh,jh=/\w*$/;function zh(e){var t=new e.constructor(e.source,jh.exec(e));return t.lastIndex=e.lastIndex,t}var Gh=zh,ua=Gt,ca=ua?ua.prototype:void 0,la=ca?ca.valueOf:void 0;function Hh(e){return la?Object(la.call(e)):{}}var Kh=Hh,qh=Zr;function Wh(e,t){var n=t?qh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var wi=Wh,Yh=Zr,Jh=Lh,Zh=Gh,Qh=Kh,Xh=wi,em="[object Boolean]",tm="[object Date]",nm="[object Map]",rm="[object Number]",om="[object RegExp]",am="[object Set]",im="[object String]",sm="[object Symbol]",um="[object ArrayBuffer]",cm="[object DataView]",lm="[object Float32Array]",dm="[object Float64Array]",fm="[object Int8Array]",pm="[object Int16Array]",hm="[object Int32Array]",mm="[object Uint8Array]",gm="[object Uint8ClampedArray]",vm="[object Uint16Array]",ym="[object Uint32Array]";function wm(e,t,n){var r=e.constructor;switch(t){case um:return Yh(e);case em:case tm:return new r(+e);case cm:return Jh(e,n);case lm:case dm:case fm:case pm:case hm:case mm:case gm:case vm:case ym:return Xh(e,n);case nm:return new r;case rm:case im:return new r(e);case om:return Zh(e);case am:return new r;case sm:return Qh(e)}}var Sm=wm,_m=De,da=Object.create,bm=function(){function e(){}return function(t){if(!_m(t))return{};if(da)return da(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Cm=bm,Am=Cm,Em=Jr,Im=Dn;function Tm(e){return typeof e.constructor=="function"&&!Im(e)?Am(Em(e)):{}}var Si=Tm,$m=Yt,Pm=Ke,Nm="[object Map]";function km(e){return Pm(e)&&$m(e)==Nm}var xm=km,Om=xm,Um=zr,fa=Ft.exports,pa=fa&&fa.isMap,Rm=pa?Um(pa):Om,Bm=Rm,Vm=Yt,Dm=Ke,Mm="[object Set]";function Fm(e){return Dm(e)&&Vm(e)==Mm}var Lm=Fm,jm=Lm,zm=zr,ha=Ft.exports,ma=ha&&ha.isSet,Gm=ma?zm(ma):jm,Hm=Gm,Km=Gn,qm=Wf,Wm=Wr,Ym=cp,Jm=Ip,Zm=An.exports,Qm=li,Xm=Mp,eg=Qp,tg=mi,ng=gi,rg=Yt,og=Rh,ag=Sm,ig=Si,sg=Oe,ug=nt.exports,cg=Bm,lg=De,dg=Hm,fg=Mn,pg=Wt,hg=1,mg=2,gg=4,_i="[object Arguments]",vg="[object Array]",yg="[object Boolean]",wg="[object Date]",Sg="[object Error]",bi="[object Function]",_g="[object GeneratorFunction]",bg="[object Map]",Cg="[object Number]",Ci="[object Object]",Ag="[object RegExp]",Eg="[object Set]",Ig="[object String]",Tg="[object Symbol]",$g="[object WeakMap]",Pg="[object ArrayBuffer]",Ng="[object DataView]",kg="[object Float32Array]",xg="[object Float64Array]",Og="[object Int8Array]",Ug="[object Int16Array]",Rg="[object Int32Array]",Bg="[object Uint8Array]",Vg="[object Uint8ClampedArray]",Dg="[object Uint16Array]",Mg="[object Uint32Array]",ae={};ae[_i]=ae[vg]=ae[Pg]=ae[Ng]=ae[yg]=ae[wg]=ae[kg]=ae[xg]=ae[Og]=ae[Ug]=ae[Rg]=ae[bg]=ae[Cg]=ae[Ci]=ae[Ag]=ae[Eg]=ae[Ig]=ae[Tg]=ae[Bg]=ae[Vg]=ae[Dg]=ae[Mg]=!0;ae[Sg]=ae[bi]=ae[$g]=!1;function yn(e,t,n,r,a,i){var s,u=t&hg,c=t&mg,l=t&gg;if(n&&(s=a?n(e,r,a,i):n(e)),s!==void 0)return s;if(!lg(e))return e;var d=sg(e);if(d){if(s=og(e),!u)return Qm(e,s)}else{var p=rg(e),f=p==bi||p==_g;if(ug(e))return Zm(e,u);if(p==Ci||p==_i||f&&!a){if(s=c||f?{}:ig(e),!u)return c?eg(e,Jm(s,e)):Xm(e,Ym(s,e))}else{if(!ae[p])return a?e:{};s=ag(e,p,u)}}i||(i=new Km);var g=i.get(e);if(g)return g;i.set(e,s),dg(e)?e.forEach(function(y){s.add(yn(y,t,n,y,e,i))}):cg(e)&&e.forEach(function(y,v){s.set(v,yn(y,t,n,v,e,i))});var h=l?c?ng:tg:c?pg:fg,m=d?void 0:h(e);return qm(m||e,function(y,v){m&&(v=y,y=e[v]),Wm(s,v,yn(y,t,n,v,e,i))}),s}var Fg=yn,Lg=Fg,jg=1,zg=4;function Gg(e){return Lg(e,jg|zg)}var Hg=Gg,Kg=function(e){for(var t=U({},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]=U(U({},s),{label:u?R(u):void 0,placeholder:c?R(c):void 0})}return t},qg=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})},Wg=function(e,t){t===void 0&&(t={});var n=Hg(e);return Object.keys(t).forEach(function(r){n[r]=U(U({},n[r]),t[r])}),n},Yg=function(e,t){var n=(0,Tl[e])(t);return Kg(n)},Jg=function(e,t){var n,r,a=Yg(e,t),i=((r=(n=Te(t).context)===null||n===void 0?void 0:n.formFields)===null||r===void 0?void 0:r[e])||{},s=Wg(a,i);return delete s.QR,s},Zg=function(e,t){var n=Jg(e,t);return qg(n)};/*! *****************************************************************************
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var o=require("vue"),ce=require("aws-amplify");const Be=o.defineComponent({__name:"base-field-set",setup(e){let t=o.useSlots();return(n,r)=>o.renderSlot(n.$slots,"fieldSetI",o.mergeProps(n.$attrs,{slotData:o.unref(t).default&&o.unref(t).default()}),()=>[o.createElementVNode("fieldset",o.mergeProps(n.$attrs,{"data-amplify-fieldset":""}),[o.renderSlot(n.$slots,"default")],16)])}}),ks=["type","data-fullwidth","data-size","data-fontWeight","data-variation","data-loading","data-disabled","disabled"],_e=o.defineComponent({__name:"amplify-button",props:{type:null,fullWidth:{type:[Boolean,String]},size:null,variation:null,fontWeight:null,loading:{type:[Boolean,String]},disabled:{type:[Boolean,String]}},setup(e){const t=e,{type:n,fullWidth:r,size:a,variation:i,fontWeight:s}=o.toRefs(t);return(u,c)=>o.renderSlot(u.$slots,"buttont",o.normalizeProps(o.guardReactiveProps(u.$attrs)),()=>[o.createElementVNode("button",o.mergeProps({class:["amplify-button",{[`amplify-button--${o.unref(i)}`]:o.unref(i),[`amplify-button--${o.unref(a)}`]:o.unref(a),"amplify-button--fullwidth":o.unref(r),"amplify-button--loading":e.loading,"amplify-button--disabled":e.disabled}],type:o.unref(n),style:{fontWeight:o.unref(s)},"data-fullwidth":o.unref(r),"data-size":o.unref(a),"data-fontWeight":o.unref(s),"data-variation":o.unref(i),"data-loading":e.loading,"data-disabled":e.disabled,disabled:e.disabled},u.$attrs,{"data-amplify-button":""}),[o.renderSlot(u.$slots,"default")],16,ks)])}});var Te=function(e){var t;return(t=e.context.actorRef)===null||t===void 0?void 0:t.getSnapshot()},Qa=function(e){var t;return(t=Te(e))===null||t===void 0?void 0:t.context},rn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},xs=typeof rn=="object"&&rn&&rn.Object===Object&&rn,Xa=xs,Os=Xa,Us=typeof self=="object"&&self&&self.Object===Object&&self,Rs=Os||Us||Function("return this")(),Ve=Rs,Bs=Ve,Vs=Bs.Symbol,Gt=Vs,Go=Gt,ei=Object.prototype,Ms=ei.hasOwnProperty,Ds=ei.toString,Ot=Go?Go.toStringTag:void 0;function Fs(e){var t=Ms.call(e,Ot),n=e[Ot];try{e[Ot]=void 0;var r=!0}catch{}var a=Ds.call(e);return r&&(t?e[Ot]=n:delete e[Ot]),a}var Ls=Fs,js=Object.prototype,zs=js.toString;function Gs(e){return zs.call(e)}var Hs=Gs,Ho=Gt,Ks=Ls,qs=Hs,Ws="[object Null]",Ys="[object Undefined]",Ko=Ho?Ho.toStringTag:void 0;function Js(e){return e==null?e===void 0?Ys:Ws:Ko&&Ko in Object(e)?Ks(e):qs(e)}var St=Js;function Zs(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Me=Zs,Qs=St,Xs=Me,eu="[object AsyncFunction]",tu="[object Function]",nu="[object GeneratorFunction]",ru="[object Proxy]";function ou(e){if(!Xs(e))return!1;var t=Qs(e);return t==tu||t==nu||t==eu||t==ru}var Fr=ou,au=9007199254740991;function iu(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=au}var Lr=iu,su=Fr,uu=Lr;function cu(e){return e!=null&&uu(e.length)&&!su(e)}var Ht=cu,lu=Array.isArray,Oe=lu;function du(e){return e!=null&&typeof e=="object"}var Ke=du,fu=St,pu=Ke,hu="[object Symbol]";function mu(e){return typeof e=="symbol"||pu(e)&&fu(e)==hu}var jr=mu;function gu(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}var ti=gu;function vu(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var yu=vu,wu=St,Su=Ke,_u="[object Arguments]";function bu(e){return Su(e)&&wu(e)==_u}var Cu=bu,qo=Cu,Au=Ke,ni=Object.prototype,Eu=ni.hasOwnProperty,Iu=ni.propertyIsEnumerable,Tu=qo(function(){return arguments}())?qo:function(e){return Au(e)&&Eu.call(e,"callee")&&!Iu.call(e,"callee")},Rn=Tu,nt={exports:{}};function $u(){return!1}var Pu=$u;(function(e,t){var n=Ve,r=Pu,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===a,u=s?n.Buffer:void 0,c=u?u.isBuffer:void 0,l=c||r;e.exports=l})(nt,nt.exports);var Nu=9007199254740991,ku=/^(?:0|[1-9]\d*)$/;function xu(e,t){var n=typeof e;return t=t==null?Nu:t,!!t&&(n=="number"||n!="symbol"&&ku.test(e))&&e>-1&&e%1==0&&e<t}var Bn=xu,Ou=St,Uu=Lr,Ru=Ke,Bu="[object Arguments]",Vu="[object Array]",Mu="[object Boolean]",Du="[object Date]",Fu="[object Error]",Lu="[object Function]",ju="[object Map]",zu="[object Number]",Gu="[object Object]",Hu="[object RegExp]",Ku="[object Set]",qu="[object String]",Wu="[object WeakMap]",Yu="[object ArrayBuffer]",Ju="[object DataView]",Zu="[object Float32Array]",Qu="[object Float64Array]",Xu="[object Int8Array]",ec="[object Int16Array]",tc="[object Int32Array]",nc="[object Uint8Array]",rc="[object Uint8ClampedArray]",oc="[object Uint16Array]",ac="[object Uint32Array]",se={};se[Zu]=se[Qu]=se[Xu]=se[ec]=se[tc]=se[nc]=se[rc]=se[oc]=se[ac]=!0;se[Bu]=se[Vu]=se[Yu]=se[Mu]=se[Ju]=se[Du]=se[Fu]=se[Lu]=se[ju]=se[zu]=se[Gu]=se[Hu]=se[Ku]=se[qu]=se[Wu]=!1;function ic(e){return Ru(e)&&Uu(e.length)&&!!se[Ou(e)]}var sc=ic;function uc(e){return function(t){return e(t)}}var zr=uc,Ft={exports:{}};(function(e,t){var n=Xa,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,s=i&&n.process,u=function(){try{var c=a&&a.require&&a.require("util").types;return c||s&&s.binding&&s.binding("util")}catch{}}();e.exports=u})(Ft,Ft.exports);var cc=sc,lc=zr,Wo=Ft.exports,Yo=Wo&&Wo.isTypedArray,dc=Yo?lc(Yo):cc,Vn=dc,fc=yu,pc=Rn,hc=Oe,mc=nt.exports,gc=Bn,vc=Vn,yc=Object.prototype,wc=yc.hasOwnProperty;function Sc(e,t){var n=hc(e),r=!n&&pc(e),a=!n&&!r&&mc(e),i=!n&&!r&&!a&&vc(e),s=n||r||a||i,u=s?fc(e.length,String):[],c=u.length;for(var l in e)(t||wc.call(e,l))&&!(s&&(l=="length"||a&&(l=="offset"||l=="parent")||i&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||gc(l,c)))&&u.push(l);return u}var ri=Sc,_c=Object.prototype;function bc(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||_c;return e===n}var Mn=bc;function Cc(e,t){return function(n){return e(t(n))}}var oi=Cc,Ac=oi,Ec=Ac(Object.keys,Object),Ic=Ec,Tc=Mn,$c=Ic,Pc=Object.prototype,Nc=Pc.hasOwnProperty;function kc(e){if(!Tc(e))return $c(e);var t=[];for(var n in Object(e))Nc.call(e,n)&&n!="constructor"&&t.push(n);return t}var ai=kc,xc=ri,Oc=ai,Uc=Ht;function Rc(e){return Uc(e)?xc(e):Oc(e)}var Dn=Rc,gr;(function(e){e.Apple="SignInWithApple",e.Amazon="LoginWithAmazon",e.Facebook="Facebook",e.Google="Google"})(gr||(gr={}));var U=function(){return U=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},U.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")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 Z(e,t,n,r){function a(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function u(d){try{l(r.next(d))}catch(h){s(h)}}function c(d){try{l(r.throw(d))}catch(h){s(h)}}function l(d){d.done?i(d.value):a(d.value).then(u,c)}l((r=r.apply(e,t||[])).next())})}function Q(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,a,i,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(l){return function(d){return c([l,d])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,a&&(i=l[0]&2?a.return:l[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;switch(a=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){n.label=l[1];break}if(l[0]===6&&n.label<i[1]){n.label=i[1],i=l;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(l);break}i[2]&&n.ops.pop(),n.trys.pop();continue}l=t.call(e,n)}catch(d){l=[6,d],a=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Re(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 Bc=["birthdate","email","family_name","given_name","middle_name","name","nickname","phone_number","preferred_username","profile","website"],Vc=["username","email","phone_number"],Mc=Re(Re(Re([],Vc,!0),Bc,!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]},Dc=function(e){var t=function(n){return function(r){return e({type:n,data:r})}};return{initializeMachine:t("INIT"),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")}},Fc=function(e){var t,n,r,a,i,s=(t=Qa(e))!==null&&t!==void 0?t:{},u=s.codeDeliveryDetails,c=s.remoteError,l=s.unverifiedContactMethods,d=s.validationError,h=((r=(n=e.context)===null||n===void 0?void 0:n.config)!==null&&r!==void 0?r:{}).socialProviders,f=(a=s==null?void 0:s.user)!==null&&a!==void 0?a:(i=e.context)===null||i===void 0?void 0:i.user,g=d&&Object.keys(d).length>0,p=Te(e),m=e.hasTag("pending")||(p==null?void 0:p.hasTag("pending")),y=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(p==null?void 0:p.matches("autoSignIn")):return"autoSignIn";case(p==null?void 0:p.matches("confirmSignUp")):return"confirmSignUp";case(p==null?void 0:p.matches("confirmSignIn")):return"confirmSignIn";case(p==null?void 0:p.matches("setupTOTP")):return"setupTOTP";case(p==null?void 0:p.matches("signIn")):return"signIn";case(p==null?void 0:p.matches("signUp")):return"signUp";case(p==null?void 0:p.matches("forceNewPassword")):return"forceNewPassword";case(p==null?void 0:p.matches("resetPassword")):return"resetPassword";case(p==null?void 0:p.matches("confirmResetPassword")):return"confirmResetPassword";case(p==null?void 0:p.matches("verifyUser")):return"verifyUser";case(p==null?void 0:p.matches("confirmVerifyUser")):return"confirmVerifyUser";default:return console.debug("Cannot infer `route` from Authenticator state:",e.value),null}}(),v=function(_){switch(_){case"idle":case"setup":return"configuring";case"authenticated":return"authenticated";default:return"unauthenticated"}}(y);return{authStatus:v,codeDeliveryDetails:u,error:c,hasValidationErrors:g,isPending:m,route:y,socialProviders:h,unverifiedContactMethods:l,user:f,validationErrors:d}},si=function(e){var t=e.send,n=e.state,r=Dc(t),a=Fc(n);return U(U({},r),a)},Lc=["+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"],jc={"Account recovery requires verified contact information":"Zur\xFCcksetzen des Account ben\xF6tigt einen verifizierten Account","Back to Sign In":"Zur\xFCck zur Anmeldung","Change Password":"Passwort \xE4ndern",Changing:"\xC4ndern von",Code:"Code","Confirm Password":"Passwort best\xE4tigen","Confirm Sign Up":"Registrierung best\xE4tigen","Confirm SMS Code":"SMS-Code best\xE4tigen","Confirm TOTP Code":"TOTP-Code best\xE4tigen",Confirm:"Best\xE4tigen","Confirmation Code":"Best\xE4tigungs-Code",Confirming:"Wird best\xE4tigt","Create a new account":"Einen neuen Account erstellen","Create Account":"Account erstellen","Creating Account":"Account wird erstellt","Dismiss alert":"Warnung verwerfen",Email:"Email","Enter your code":"Geben Sie Ihren Code ein","Enter your email":"Geben Sie Ihre Email ein","Enter your phone number":"Geben Sie Ihre Telefonnummer ein","Enter your username":"Geben Sie Ihren Benutzernamen ein","Forgot your password?":"Passwort vergessen? ","Hide password":"Passwort verbergen",Loading:"Wird geladen","New password":"Neues Passwort",Password:"Passwort","Phone Number":"Telefonnummer","Resend Code":"Code erneut senden","Reset your Password":"Zur\xFCcksetzen des Passwort","Reset your password":"Zur\xFCcksetzen des passwort","Send code":"Code senden","Send Code":"Code senden",Sending:"Wird gesendet","Setup TOTP":"TOTP einrichten","Show password":"Passwort anzeigen","Sign in to your account":"Melden Sie sich mit Ihrem Account an","Sign In with Amazon":"Mit Amazon anmelden","Sign In with Apple":"Mit Apple anmelden","Sign In with Facebook":"Mit Facebook anmelden","Sign In with Google":"Mit Google anmelden","Sign in":"Anmelden","Sign In":"Anmelden","Signing in":"Wird angemeldet",Skip:"\xDCberspringen",Submit:"Abschicken",Submitting:"Wird gesendet",Username:"Benutzername","Verify Contact":"Kontakt verifizieren",Verify:"Verifizieren","An account with the given email already exists.":"Ein Account mit dieser Email existiert bereits.","Confirm a Code":"Code best\xE4tigen","Confirm Sign In":"Anmeldung best\xE4tigen","Create account":"Hier registrieren","Enter your password":"Geben Sie Ihr Passwort ein","Forgot Password":"Passwort vergessen","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","It may take a minute to arrive.":"Es k\xF6nnte eine Minute dauern, bis der Code eintrifft.","Lost your code? ":"Code verloren? ","New Password":"Neues Passwort","No account? ":"Kein Account? ",or:"oder","Password attempts exceeded":"Die maximale Anzahl der fehlerhaften Anmeldeversuche wurde erreicht","Reset password":"Passwort zur\xFCcksetzen","Sign Out":"Abmelden","Sign Up":"Registrieren","User already exists":"Dieser Benutzer existiert bereits","User does not exist":"Dieser Benutzer existiert nicht","Username cannot be empty":"Benutzername darf nicht leer sein","We Emailed You":"Email wurde versendet","Your code is on the way. To log in, enter the code we emailed to":"Ihr Best\xE4tigungscode ist unterwegs. Um sich einzuloggen geben Sie den Code ein, den wir verschickt haben an","Your code is on the way. To log in, enter the code we texted to":"Ihr Best\xE4tigungscode ist unterwegs. Um sich einzuloggen geben Sie den Code ein, den wir verschickt haben an"},zc={"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 Password":"Confirm Password","Confirm Sign Up":"Confirm Sign Up","Confirm SMS Code":"Confirm SMS Code","Confirm TOTP Code":"Confirm TOTP Code",Confirm:"Confirm","Confirmation Code":"Confirmation Code",Confirming:"Confirming","Create a new account":"Create a new account","Create Account":"Create Account","Creating Account":"Creating Account","Dismiss alert":"Dismiss alert",Email:"Email","Enter your code":"Enter your code","Enter your email":"Enter your email","Enter your phone number":"Enter your phone number","Enter your username":"Enter your username","Forgot your password?":"Forgot your password?","Hide password":"Hide password",Loading:"Loading","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 to your account":"Sign in to your account","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","Sign In":"Sign In","Signing in":"Signing in",Skip:"Skip",Submit:"Submit",Submitting:"Submitting",Username:"Username","Verify Contact":"Verify Contact",Verify:"Verify"},Gc={"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 Password":"Confirmar contrase\xF1a","Confirm Sign Up":"Confirmar registro","Confirm SMS Code":"Confirmar el c\xF3digo de SMS","Confirm TOTP Code":"Confirmar c\xF3digo TOTP",Confirm:"Confirmar","Confirmation Code":"C\xF3digo de confirmaci\xF3n",Confirming:"Confirmando","Create a new account":"Crear una cuenta nueva","Create Account":"Crear cuenta","Creating Account":"Creando cuenta","Dismiss alert":"Descartar alerta",Email:"Email","Enter your code":"Ingrese el c\xF3digo","Enter your email":"Escriba su Email","Enter your phone number":"Ingrese el n\xFAmero de tel\xE9fono","Enter your username":"Ingrese el nombre de usuario","Forgot your password?":"\xBFOlvid\xF3 su contrase\xF1a?","Hide password":"Ocultar contrase\xF1a",Loading:"Cargando","New password":"Nueva contrase\xF1a",Password:"Contrase\xF1a","Phone Number":"N\xFAmero de tel\xE9fono","Resend Code":"Reenviar c\xF3digo","Reset your password":"Restablecer su contrase\xF1a","Reset your Password":"Restablecer su Contrase\xF1a","Send code":"Enviar c\xF3digo","Send Code":"Enviar c\xF3digo",Sending:"Enviando","Setup TOTP":"Configurar TOTP","Show password":"Mostrar contrase\xF1a","Sign in to your account":"Iniciar sesi\xF3n en tu cuenta","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":"Iniciar sesi\xF3n","Sign In":"Iniciar Sesi\xF3n","Signing in":"Iniciando sesi\xF3n",Skip:"Omitir",Submit:"Enviar",Submitting:"Enviando",Username:"Nombre de usuario","Verify Contact":"Verificar contacto",Verify:"Verificar","An account with the given email already exists.":"Ya existe una cuenta con el correo ingresado.","Confirm a Code":"Confirmar un c\xF3digo","Confirm Sign In":"Confirmar inicio de sesi\xF3n","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","Loading...":"Cargando...","New Password":"Nueva contrase\xF1a",or:"o","Resend a Code":"Reenviar un c\xF3digo","Sign Out":"Cerrar sesi\xF3n","Sign Up with Amazon":"Crear cuenta con Amazon","Sign Up with Apple":"Crear cuenta con Apple","Sign Up with Facebook":"Crear cuenta con Facebook","Sign Up with Google":"Crear cuenta con Google","Sign Up":"Crear cuenta","User already exists":"El usuario ya existe","User does not exist":"El usuario no existe","Username cannot be empty":"El nombre de usuario no puede estar vac\xEDo","Your passwords must match":"Las contrase\xF1as deben coincidir"},Hc={"Account recovery requires verified contact information":"La r\xE9cup\xE9ration du compte n\xE9cessite des informations de contact v\xE9rifi\xE9es","Back to Sign In":"Retour \xE0 la connexion","Change Password":"Modifier le mot de passe",Changing:"Modification en cours",Code:"Code","Confirm Password":"Confirmez le mot de passe","Confirm Sign Up":"Confirmer l'inscription","Confirm SMS Code":"Confirmer le code SMS","Confirm TOTP Code":"Confirmer le code TOTP",Confirm:"Confirmer","Confirmation Code":"Code de confirmation",Confirming:"Confirmation","Create a new account":"Cr\xE9er un nouveau compte","Create Account":"Cr\xE9er un compte","Creating Account":"Cr\xE9ation d'un compte","Dismiss alert":"Supprimer l'alerte",Email:"Email","Enter your code":"Saisissez cotre code de confirmation","Enter your email":"Saisissez votre adresse email","Enter your phone number":"Saisissez votre num\xE9ro de t\xE9l\xE9phone","Enter your username":"Saisissez votre nom d'utilisateur","Forgot your password?":"Mot de passe oubli\xE9 ? ","Hide password":"Masquer le mot de passe",Loading:"Chargement en cours","New password":"Nouveau mot de passe",Password:"Mot de passe","Phone Number":"Num\xE9ro de t\xE9l\xE9phone","Resend Code":"Renvoyer le code","Reset your Password":"R\xE9initialiser votre mot de passe","Reset your password":"R\xE9initialisez votre mot de passe","Send code":"Envoyer le code","Send Code":"M'envoyer un code",Sending:"Envoi en cours","Setup TOTP":"Configuration de TOTP","Show password":"Afficher le mot de passe","Sign in to your account":"Connexion \xE0 votre compte","Sign In with Amazon":"Se connecter avec Amazon","Sign In with Apple":"Se connecter avec Apple","Sign In with Facebook":"Se connecter avec Facebook","Sign In with Google":"Se connecter avec Google","Sign in":"Se connecter","Sign In":"Se connecter","Signing in":"Connexion en cours",Skip:"Passer",Submit:"Soumettre",Submitting:"Envoi en cours",Username:"Nom d'utilisateur","Verify Contact":"V\xE9rifier le contact",Verify:"V\xE9rifier","An account with the given email already exists.":"Un utilisateur avec cette adresse email existe d\xE9j\xE0.",Change:"Modifier","Confirm a Code":"Confirmer un code","Confirm Sign In":"Confirmer la connexion","Create account":"Cr\xE9er un compte","Enter your password":"Saisissez votre mot de passe","Forgot 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","Resend a Code":"Renvoyer un code","Reset password":"R\xE9initialisez votre mot de passe",Send:"Envoyer","Sign In with AWS":"Se connecter avec AWS","Sign Out":"D\xE9connexion","Sign Up":"S'inscrire",SMS:"SMS","User already exists":"L'utilisateur existe d\xE9j\xE0","User does not exist":"L'utilisateur n'existe pas","Username cannot be empty":"Le nom d'utilisateur doit \xEAtre renseign\xE9","Username/client id combination not found.":"L'utilisateur n'existe pas"},Kc={"Account recovery requires verified contact information":"Il ripristino dell'account richiede informazioni di contatto verificate","Back to Sign In":"Torna alla schermata di accesso","Change Password":"Cambia la password",Changing:"Modifica in corso",Code:"Codice","Confirm Password":"Conferma la password","Confirm Sign Up":"Conferma registrazione","Confirm SMS Code":"Conferma codice SMS","Confirm TOTP Code":"Conferma codice TOTP",Confirm:"Conferma","Confirmation Code":"Codice di verifica",Confirming:"Conferma in corso","Create a new account":"Crea un nuovo account","Create Account":"Crea Account","Creating Account":"Creazione account in corso","Dismiss alert":"Licenziare l'allerta",Email:"Email","Enter your code":"Inserisci il tuo codice","Enter your email":"Inserisci la tua e-mail","Enter your phone number":'Inserisci il tuo numero di telefono"',"Enter your username":"Inserisci il tuo nome utente","Forgot your password?":"Password dimenticata?","Hide password":"Nascondi password",Loading:"Caricamento in corso","New password":"Nuova password",Password:"Password","Phone Number":"Numero di telefono","Resend Code":"Rispedisci codice","Reset your Password":"Reimposta la tua Password","Reset your password":"Reimposta la tua password","Send code":"Invia codice","Send Code":"Invia codice",Sending:"Invio in corso","Setup TOTP":"Configura TOTP","Show password":"Mostra password","Sign in to your account":"Accedi al tuo account","Sign In with Amazon":"Accedi con Amazon","Sign In with Apple":"Accedi con Apple","Sign In with Facebook":"Accedi con Facebook","Sign In with Google":"Accedi con Google","Sign in":"Accesso","Sign In":"Accesso","Signing in":"Accesso in corso",Skip:"Salta",Submit:"Invia",Submitting:"Invio in corso",Username:"Nome utente","Verify Contact":"Verifica contatto",Verify:"Verifica","An account with the given email already exists.":"Questa email \xE8 gi\xE0 utilizzata da un'altro account.","Confirm a Code":"Conferma un codice","Confirm Sign In":"Conferma l'accesso","Create account":"Crea account","Enter your password":"Inserisci la tua password","Forgot 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","No account? ":"Non hai un account?",or:"o","Password attempts exceeded":"Il numero massimo di tentativi di accesso falliti \xE8 stato raggiunto","Reset password":"Reimposta password","Sign Out":"Esci","Sign Up":"Registrati","User already exists":"Utente gi\xE0 esistente","User does not exist":"Utente inesistente","Username cannot be empty":"Il nome utente non pu\xF2 essere vuoto"},qc={"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","Back to Sign In":"\u30B5\u30A4\u30F3\u30A4\u30F3\u306B\u623B\u308B","Change Password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5909\u3048\u308B ",Changing:"\u5909\u66F4\u4E2D",Code:"\u30B3\u30FC\u30C9","Confirm Password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u306E\u78BA\u8A8D","Confirm Sign Up":"\u767B\u9332\u3059\u308B","Confirm SMS Code":"SMS \u30B3\u30FC\u30C9\u3092\u78BA\u8A8D","Confirm TOTP Code":"TOTP \u30B3\u30FC\u30C9\u3092\u78BA\u8A8D",Confirm:"\u78BA\u5B9A","Confirmation Code":"\u78BA\u8A8D\u30B3\u30FC\u30C9",Confirming:"\u78BA\u8A8D\u4E2D","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","Creating Account":"\u30A2\u30AB\u30A6\u30F3\u30C8\u306E\u4F5C\u6210\u4E2D","Dismiss alert":"\u30A2\u30E9\u30FC\u30C8\u3092\u9589\u3058\u308B",Email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9","Enter your code":"\u30B3\u30FC\u30C9\u3092\u5165\u529B","Enter your email":"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u3092\u5165\u529B","Enter your phone number":"\u96FB\u8A71\u756A\u53F7\u3092\u5165\u529B","Enter your username":"\u30E6\u30FC\u30B6\u30FC\u540D\u3092\u5165\u529B ","Forgot your password?":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5FD8\u308C\u307E\u3057\u305F\u304B\uFF1F ","Hide password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u975E\u8868\u793A",Loading:"\u30ED\u30FC\u30C9\u4E2D","New password":"\u65B0\u3057\u3044\u30D1\u30B9\u30EF\u30FC\u30C9",Password:"\u30D1\u30B9\u30EF\u30FC\u30C9 ","Phone Number":"\u96FB\u8A71\u756A\u53F7","Resend Code":"\u30B3\u30FC\u30C9\u3092\u518D\u9001\u4FE1","Reset your 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","Send Code":"\u30B3\u30FC\u30C9\u3092\u9001\u4FE1",Sending:"\u9001\u4FE1\u4E2D","Setup TOTP":"TOTP \u3092\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7","Show password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u8868\u793A","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 Apple":"Apple \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 In":"\u30B5\u30A4\u30F3\u30A4\u30F3 ","Sign in":"\u30B5\u30A4\u30F3\u30A4\u30F3","Signing in":"\u30B5\u30A4\u30F3\u30A4\u30F3\u4E2D",Skip:"\u30B9\u30AD\u30C3\u30D7",Submit:"\u9001\u4FE1",Submitting:"\u9001\u4FE1\u4E2D",Username:"\u30E6\u30FC\u30B6\u30FC\u540D ","Verify Contact":"\u9023\u7D61\u5148\u3092\u78BA\u8A8D",Verify:"\u78BA\u8A8D","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","Confirm a Code":"\u30B3\u30FC\u30C9\u3092\u78BA\u8A8D","Confirm Sign In":"\u30B5\u30A4\u30F3\u30A4\u30F3\u3059\u308B","Create account":"\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u4F5C\u308B ","Enter your password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5165\u529B ","Forgot Password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5FD8\u308C\u305F ","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
2
+ +12345678900 \u306E\u5F62\u5F0F\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044`,"It may take a minute to arrive.":"\u30B3\u30FC\u30C9\u3092\u53D7\u4FE1\u3059\u308B\u307E\u3067\u6570\u5206\u304B\u304B\u308B\u5834\u5408\u304C\u3042\u308A\u307E\u3059\u3002","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 attempts exceeded":"\u30B5\u30A4\u30F3\u30A4\u30F3\u306E\u8A66\u884C\u56DE\u6570\u304C\u4E0A\u9650\u306B\u9054\u3057\u307E\u3057\u305F","Reset password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u30EA\u30BB\u30C3\u30C8 ","Sign Out":"\u30B5\u30A4\u30F3\u30A2\u30A6\u30C8 ","Sign Up":"\u767B\u9332 ","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 cannot be empty":"\u30E6\u30FC\u30B6\u30FC\u540D\u306F\u5165\u529B\u5FC5\u9808\u3067\u3059","We Emailed You":"\u30B3\u30FC\u30C9\u3092\u9001\u4FE1\u3057\u307E\u3057\u305F","Your code is on the way. To log in, enter the code we emailed to":"\u30ED\u30B0\u30A4\u30F3\u3059\u308B\u306B\u306F\u3001\u30E1\u30FC\u30EB\u306B\u8A18\u8F09\u3055\u308C\u305F\u30B3\u30FC\u30C9\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u9001\u4FE1\u5148:","Your code is on the way. To log in, enter the code we texted to":"\u30ED\u30B0\u30A4\u30F3\u3059\u308B\u306B\u306F\u3001\u30C6\u30AD\u30B9\u30C8\u30E1\u30C3\u30BB\u30FC\u30B8\u306B\u8A18\u8F09\u3055\u308C\u305F\u30B3\u30FC\u30C9\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u9001\u4FE1\u5148:"},Wc={"Account recovery requires verified contact information":"\uACC4\uC815 \uBCF5\uAD6C\uB97C \uC704\uD574 \uC5F0\uB77D\uCC98 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4","Back to Sign In":"\uB85C\uADF8\uC778\uC73C\uB85C \uB3CC\uC544\uAC00\uAE30","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","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 a new account":"\uD68C\uC6D0\uAC00\uC785","Create Account":"\uD68C\uC6D0\uAC00\uC785","Creating Account":"\uD68C\uC6D0\uAC00\uC785\uC911","Dismiss alert":"\uC54C\uB9BC \uBB34\uC2DC",Email:"\uC774\uBA54\uC77C","Enter your code":"\uC778\uC99D\uBC88\uD638\uB97C \uC785\uB825\uD574\uC8FC\uC138\uC694","Enter your email":"\uC774\uBA54\uC77C \uC785\uB825","Enter your phone number":"\uC804\uD654\uBC88\uD638 \uC785\uB825","Enter your username":"\uC544\uC774\uB514\uB97C \uC785\uB825\uD574\uC8FC\uC138\uC694","Hide password":"\uBE44\uBC00\uBC88\uD638 \uC228\uAE30\uAE30",Loading:"\uB85C\uB529\uC911","New password":"\uC0C8 \uBE44\uBC00\uBC88\uD638",Password:"\uBE44\uBC00\uBC88\uD638","Phone Number":"\uC804\uD654\uBC88\uD638","Resend Code":"\uC778\uC99D\uBC88\uD638 \uC7AC\uC804\uC1A1","Reset your password":"\uBE44\uBC00\uBC88\uD638 \uC7AC\uC124\uC815","Reset your Password":"\uBE44\uBC00\uBC88\uD638 \uC7AC\uC124\uC815","Send code":"\uC778\uC99D\uCF54\uB4DC \uBCF4\uB0B4\uAE30","Send Code":"\uCF54\uB4DC \uC804\uC1A1",Sending:"\uC804\uC1A1\uC911","Setup TOTP":"TOTP \uC124\uC815\uD558\uAE30","Show password":"\uBE44\uBC00\uBC88\uD638 \uBCF4\uC774\uAE30","Sign in to your account":"\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":"\uB85C\uADF8\uC778","Sign In":"\uB85C\uADF8\uC778","Signing in":"\uB85C\uADF8\uC778\uC911",Skip:"\uB2E4\uC74C\uC5D0 \uD558\uAE30",Submit:"\uD655\uC778",Submitting:"\uD655\uC778\uC911",Username:"\uC544\uC774\uB514","Verify Contact":"\uC5F0\uB77D\uCC98 \uD655\uC778",Verify:"\uC778\uC99D",Birthdate:"\uC0DD\uB144\uC6D4\uC77C","Family Name":"\uC131","Forgot your password?":"\uBE44\uBC00\uBC88\uD638\uB97C \uC78A\uC73C\uC168\uB098\uC694?","Given Name":"\uC774\uB984",Name:"\uC131\uD568",Nickname:"\uB2C9\uB124\uC784","Preferred Username":"\uB2C9\uB124\uC784",Profile:"\uD504\uB85C\uD544","Reset Password":"\uBE44\uBC00\uBC88\uD638 \uC7AC\uC124\uC815",Website:"\uC6F9\uC0AC\uC774\uD2B8"},Yc={"Account recovery requires verified contact information":"Accountherstel vereist geverifieerde contactgegevens","Back to Sign In":"Terug naar inloggen","Change Password":"Wachtwoord wijzigen",Changing:"Wordt aangepast",Code:"Code","Confirm Password":"Bevestig Wachtwoord","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 a new account":"Nieuw account aanmaken","Create Account":"Account aanmaken","Creating Account":"Account wordt aangemaakt","Dismiss alert":"Waarschuwing sluiten",Email:"E-mail","Enter your code":"Vul je code in","Enter your email":"Vul je e-mail in","Enter your phone number":"Vul je telefoonnummer in","Enter your username":"Vul je gebruikersnaam in","Forgot your password?":"Wachtwoord vergeten? ","Hide password":"Verberg wachtwoord",Loading:"Laden","New password":"Nieuw wachtwoord",Password:"Wachtwoord","Phone Number":"Telefoonnummer","Resend Code":"Verstuur code nogmaals","Reset your password":"Reset je wachtwoord","Reset your Password":"Wachtwoord resetten","Send code":"Verstuur code","Send Code":"Verstuur Code",Sending:"Versturen","Setup TOTP":"TOTP Instellingen","Show password":"Toon wachtwoord","Sign in to your account":"Inloggen op je account","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":"Inloggen","Sign In":"Inloggen","Signing in":"Inloggen",Skip:"Overslaan",Submit:"Versturen",Submitting:"Wordt verstuurd",Username:"Gebruikersnaam","Verify Contact":"Verifieer Contact",Verify:"Verifieer"},Jc={"Account recovery requires verified contact information":"Odzyskanie konta wymaga zweryfikowanych danych kontaktowych","Back to Sign In":"Powr\xF3t do logowania","Change Password":"Zmie\u0144 has\u0142o",Changing:"Zmienianie",Code:"Kod","Confirm Password":"Potwierd\u017A 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 a new account":"Utw\xF3rz nowe konto","Create Account":"Utw\xF3rz konto","Creating Account":"Tworzenie konta","Dismiss alert":"Odrzu\u0107 alert",Email:"E-mail","Enter your code":"Wprowad\u017A sw\xF3j kod","Enter your email":"Wpisz sw\xF3j adres e-mail","Enter your phone number":"Wpisz sw\xF3j numer telefonu","Enter your username":"Wprowad\u017A swoj\u0105 nazw\u0119 u\u017Cytkownika","Forgot your password?":"Zapomnia\u0142e\u015B has\u0142a? ","Hide password":"Ukryj has\u0142o",Loading:"\u0141adowanie","New password":"Nowe has\u0142o",Password:"Has\u0142o","Phone Number":"Numer telefonu","Resend Code":"Wy\u015Blij kod ponownie","Reset your password":"Zresetuj swoje has\u0142o","Reset your Password":"Zresetuj swoje has\u0142o","Send code":"Wy\u015Blij kod","Send Code":"Zresetuj has\u0142o",Sending:"Wysy\u0142anie","Setup TOTP":"Konfiguruj TOTP","Show password":"Poka\u017C has\u0142o","Sign in to your account":"Zaloguj si\u0119 na swoje konto","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":"Logowanie","Sign in":"Zaloguj","Signing in":"Logowanie",Skip:"Pomi\u0144",Submit:"Wy\u015Blij",Submitting:"Wysy\u0142anie",Username:"Nazwa u\u017Cytkownika","Verify Contact":"Weryfikacja danych kontaktowych",Verify:"Zweryfikuj",Birthdate:"Data urodzenia","Family Name":"Nazwisko","Given Name":"Pierwsze imi\u0119","Middle Name":"Drugie imi\u0119",Name:"Imi\u0119 i nazwisko",Nickname:"Pseudonim","Preferred Username":"Preferowana nazwa u\u017Cytkownika",Profile:"Profil",Website:"Strona internetowa"},Zc={"Account recovery requires verified contact information":"A recupera\xE7\xE3o da conta requer informa\xE7\xF5es de contato verificadas","Back to Sign In":"Voltar para Entrar","Change Password":"Mudar senha",Changing:"Mudando",Code:"C\xF3digo","Confirm Password":"Confirme a 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 a new account":"Criar uma nova conta","Create Account":"Criar Conta","Creating Account":"Criando conta","Dismiss alert":"Descartar alerta",Email:"O email","Enter your code":"Insira seu c\xF3digo","Enter your email":"Digite seu e-mail","Enter your phone number":"Digite seu n\xFAmero de telefone","Enter your username":"entre com seu nome de usu\xE1rio","Forgot your password?":"Esqueceu sua senha? ","Hide password":"Esconder a senha",Loading:"Carregando","New password":"Nova Senha",Password:"Senha","Phone Number":"N\xFAmero de telefone","Resend Code":"Reenviar c\xF3digo","Reset your password":"Redefina sua senha","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 to your account":"Fa\xE7a login em sua conta","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":"Entrar","Sign In":"Entrar","Signing in":"Entrando",Skip:"Pular",Submit:"Enviar",Submitting:"Enviando",Username:"Nome do usu\xE1rio","Verify Contact":"Verificar contato",Verify:"Verificar"},Qc={"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",Changing:"\u6B63\u5728\u4FEE\u6539",Code:"\u786E\u8BA4\u7801","Confirm Password":"\u786E\u8BA4\u5BC6\u7801","Confirm Sign Up":"\u786E\u8BA4\u6CE8\u518C","Confirm SMS Code":"\u786E\u8BA4\u77ED\u4FE1\u9A8C\u8BC1\u7801","Confirm TOTP Code":"\u786E\u8BA4 TOTP \u4EE3\u7801",Confirm:"\u786E\u8BA4","Confirmation Code":"\u786E\u8BA4\u7801",Confirming:"\u6B63\u5728\u786E\u8BA4","Create a new account":"\u521B\u5EFA\u65B0\u8D26\u6237","Create Account":"\u521B\u5EFA\u8D26\u6237","Creating Account":"\u6B63\u5728\u521B\u5EFA\u8D26\u6237","Dismiss alert":"\u5173\u95ED\u8B66\u62A5",Email:"\u90AE\u7BB1","Enter your code":"\u8F93\u5165\u9A8C\u8BC1\u7801","Enter your email":"\u8F93\u5165\u7535\u5B50\u90AE\u4EF6","Enter your phone number":"\u8F93\u5165\u7535\u8BDD\u53F7\u7801","Enter your username":"\u8F93\u5165\u7528\u6237\u540D","Forgot your password?":"\u5FD8\u8BB0\u5BC6\u7801\u4E86\uFF1F","Hide password":"\u9690\u85CF\u5BC6\u7801",Loading:"\u6B63\u5728\u52A0\u8F7D","New password":"\u65B0\u5BC6\u7801",Password:"\u5BC6\u7801","Phone Number":"\u7535\u8BDD","Resend Code":"\u91CD\u53D1\u9A8C\u8BC1\u7801","Reset your password":"\u91CD\u7F6E\u5BC6\u7801","Reset your Password":"\u91CD\u7F6E\u5BC6\u7801","Send Code":"\u53D1\u9001\u786E\u8BA4\u7801","Send code":"\u53D1\u9001\u9A8C\u8BC1\u7801",Sending:"\u6B63\u5728\u53D1\u9001","Setup TOTP":"\u8BBE\u7F6E TOTP","Show password":"\u663E\u793A\u5BC6\u7801","Sign in to your account":"\u767B\u5F55\u8D26\u6237","Sign In with Amazon":"\u901A\u8FC7 Amazon \u767B\u5F55","Sign In with Apple":"\u901A\u8FC7 Apple \u767B\u5F55","Sign In with Facebook":"\u901A\u8FC7 Facebook \u767B\u5F55","Sign In with Google":"\u901A\u8FC7 Google \u767B\u5F55","Sign in":"\u767B\u5F55","Sign In":"\u767B\u5F55","Signing in":"\u6B63\u5728\u767B\u5F55",Skip:"\u8DF3\u8FC7",Submit:"\u63D0\u4EA4",Submitting:"\u6B63\u5728\u63D0\u4EA4",Username:"\u7528\u6237\u540D","Verify Contact":"\u9A8C\u8BC1\u8054\u7CFB\u65B9\u5F0F",Verify:"\u9A8C\u8BC1","Confirm a Code":"\u786E\u8BA4\u7801","Confirm Sign In":"\u786E\u8BA4\u767B\u5F55","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","Resend a Code":"\u91CD\u53D1\u786E\u8BA4\u7801","Sign Out":"\u9000\u51FA","Sign Up":"\u6CE8\u518C","User already exists":"\u7528\u6237\u5DF2\u7ECF\u5B58\u5728","User does not exist":"\u7528\u6237\u4E0D\u5B58\u5728"},Xc={"Account recovery requires verified contact information":"F\xF6r att \xE5terst\xE4lla kontot beh\xF6ver du ett verifierat konto","Back to Sign In":"Tillbaka till inloggningen","Change Password":"Byt l\xF6senord",Changing:"\xC4ndra",Code:"Kod","Confirm Password":"Bekr\xE4fta l\xF6senord","Confirm Sign Up":"Bekr\xE4fta registrering","Confirm SMS Code":"Bekr\xE4fta SMS-kod","Confirm TOTP Code":"Bekr\xE4fta TOTP-kod",Confirm:"Bekr\xE4fta","Confirmation Code":"Verifikationskod",Confirming:"Bekr\xE4ftar","Create a new account":"Skapa ett nytt konto","Create Account":"Skapa konto","Creating Account":"Skapar konto","Dismiss alert":"Avvisa varning",Email:"E-post","Enter your code":"Skriv din kod","Enter your email":"Fyll i din e-post","Enter your phone number":"Ange ditt telefonnummer","Enter your username":"Ange ditt anv\xE4ndarnamn","Forgot your password?":"Gl\xF6mt ditt l\xF6senord? ","Hide password":"D\xF6lj l\xF6senord",Loading:"Laddar","New password":"Nytt l\xF6senord",Password:"L\xF6senord","Phone Number":"Telefonnummer","Resend Code":"Skicka koden igen","Reset your password":"\xC5terst\xE4ll ditt l\xF6senord","Reset your Password":"\xC5terst\xE4ll ditt l\xF6senord","Send code":"Skicka kod","Send Code":"Skicka kod",Sending:"Skickar","Setup TOTP":"Konfigurera TOTP","Show password":"Visa l\xF6senord","Sign in to your account":"Logga in till ditt konto","Sign In with Amazon":"Logga in med Amazon","Sign In with Apple":"Logga in med Apple","Sign In with Facebook":"Logga in med Facebook","Sign In with Google":"Logga in med Google","Sign in":"Logga in","Sign In":"Logga in","Signing in":"Loggar in",Skip:"Hoppa \xF6ver",Submit:"Skicka",Submitting:"Skickar in",Username:"Anv\xE4ndarnamn","Verify Contact":"Verifiera kontakt",Verify:"Verifiera","An account with the given email already exists.":"Det finns redan ett konto med denna e-postadress","Confirm a Code":"Bekr\xE4fta koden","Confirm Sign In":"Bekr\xE4fta inloggning","Create account":"Skapa konto","Enter your password":"Ange ditt l\xF6senord","Forgot Password":"Gl\xF6mt l\xF6senordet","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 attempts exceeded":"Maximalt antal felaktiga inloggningsf\xF6rs\xF6k har uppn\xE5tts","Reset password":"\xC5terst\xE4ll l\xF6senord","Sign Out":"Logga ut","Sign Up":"Registrering","User already exists":"Anv\xE4ndaren finns redan","User does not exist":"Anv\xE4ndaren finns inte","Username cannot be empty":"Anv\xE4ndarnamnet kan inte vara tomt","We Emailed You":"Vi har skickat e-post till dig"},el={"Account recovery requires verified contact information":"Pemulihan akun memerlukan informasi kontak terverifikasi","Back to Sign In":"Kembali ke Masuk","Change Password":"Ubah kata sandi",Changing:"Mengubah",Code:"Kode","Confirm Password":"Konfirmasi kata sandi","Confirm Sign Up":"Konfirmasi Pendaftaran","Confirm SMS Code":"Konfirmasi Kode SMS","Confirm TOTP Code":"Konfirmasi Kode TOTP",Confirm:"Konfirmasi","Confirmation Code":"Kode Konfirmasi",Confirming:"Mengkonfirmasi","Create a new account":"Buat akun baru","Create Account":"Buat Akun","Creating Account":"Membuat Akun","Dismiss alert":"Hentikan pemberitahuan",Email:"Email","Enter your code":"Masukkan kode anda","Enter your email":"Masukkan email anda","Enter your phone number":"Masukkan nomor telepon anda","Enter your username":"Masukkan nama akun anda","Forgot your password?":"Lupa kata sandi? ","Hide password":"Sembunyikan kata sandi",Loading:"Memuat","New password":"Kata sandi baru",Password:"Kata sandi","Phone Number":"Nomor telepon","Resend Code":"Kirim ulang kodenya","Reset your Password":"Reset Kata Sandi","Reset your password":"Ubah kata sandi anda","Send code":"Kirim kode","Send Code":"Kirim Kode",Sending:"Mengirim","Setup TOTP":"Siapkan TOTP","Show password":"Tampilkan kata sandi","Sign in to your account":"Masuk akun anda","Sign In with Amazon":"Masuk dengan Amazon","Sign In with Apple":"Masuk dengan Apple","Sign In with Facebook":"Masuk dengan Facebook","Sign In with Google":"Masuk dengan Google","Sign in":"Masuk","Sign In":"Masuk","Signing in":"Memasuki",Skip:"Lewati",Submit:"Ajukan",Submitting:"Mengajukan",Username:"Nama akun","Verify Contact":"Verifikasi Kontak",Verify:"Verifikasi","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.","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","Confirm a Code":"Konfirmasi kode","Create account":"Buat akun","Enter your password":"Masukkan kata sandi anda","Forgot 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","No account? ":"Tidak ada akun?",or:"atau","Password did not conform with policy: Password not long enough":"Kata sandi tidak sesuai dengan aturan: Kata sandi kurang panjang","Resend a Code":"Renvoyer un code","Reset password":"Ubah kata sandi anda",Send:"Kirim","Sign In with AWS":"Masuk dengan AWS","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",SMS:"SMS","User already exists":"Akun sudah terdaftar","User does not exist.":"Akun tidak terdaftar.","User is disabled.":"Akun dinonaktifkan.","Username cannot be empty":"Nama akun tidak boleh kosong","Username/client id combination not found.":"Nama akun atau id tidak ditemukan.","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"},tl={"Account recovery requires verified contact information":"Hesap kurtarma, do\u011Frulanm\u0131\u015F ileti\u015Fim bilgilerini gerektirir","Back to Sign In":"Oturum A\xE7maya Geri D\xF6n","Change Password":"\u015Eifreyi De\u011Fi\u015Ftir",Changing:"De\u011Fi\u015Ftiriliyor",Code:"Kod","Confirm Password":"\u015Eifreyi 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",Confirm:"Do\u011Frula","Confirmation Code":"Do\u011Frulama Kodu",Confirming:"Do\u011Frulan\u0131yor","Create a new account":"Yeni bir hesap olu\u015Ftur","Create Account":"Hesap Olu\u015Ftur","Creating Account":"Hesap Olu\u015Fturuluyor","Dismiss alert":"Uyar\u0131y\u0131 reddet",Email:"E-posta","Enter your code":"Kodu girin","Enter your email":"E-posta adresinizi girin","Enter your phone number":"Telefon numaran\u0131z\u0131 girin","Enter your username":"Kullan\u0131c\u0131 ad\u0131n\u0131z\u0131 girin","Forgot your password?":"\u015Eifrenizi mi unuttunuz?","Hide password":"\u015Eifreyi gizle",Loading:"Y\xFCkleniyor","New password":"Yeni \u015Fifre",Password:"\u015Eifre","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 to your account":"Hesab\u0131n\u0131zda oturum a\xE7\u0131n","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":"Oturum a\xE7","Sign In":"Oturum A\xE7","Signing in":"Oturum a\xE7\u0131l\u0131yor",Skip:"Atla",Submit:"G\xF6nder",Submitting:"G\xF6nderiliyor",Username:"Kullan\u0131c\u0131 ad\u0131","Verify Contact":"Ki\u015Fiyi Do\u011Frula",Verify:"Do\u011Frula","An account with the given email already exists.":"Bu e-postaya ait zaten bir hesap var.","Confirm Sign In":"Oturum A\xE7may\u0131 Do\u011Frula","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? ","No account? ":"Hesab\u0131n\u0131z yok mu? ",or:"veya","Password attempts exceeded":"Maksimum oturum a\xE7ma giri\u015Fimi a\u015F\u0131ld\u0131","Sign Out":"\xC7\u0131k\u0131\u015F yap","Sign Up":"Kay\u0131t Ol","User already exists":"Bu kullan\u0131c\u0131 zaten var","User does not exist":"B\xF6yle bir kullan\u0131c\u0131 mevcut de\u011Fil","Username cannot be empty":"Kullan\u0131c\u0131 ad\u0131 bo\u015F olamaz"},nl={"Account recovery requires verified contact information":"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435 \u0443\u0447\u0435\u0442\u043D\u043E\u0439 \u0437\u0430\u043F\u0438\u0441\u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438 \u043A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438","Back to Sign In":"\u041D\u0430\u0437\u0430\u0434, \u0447\u0442\u043E\u0431\u044B \u0432\u043E\u0439\u0442\u0438","Change Password":"\u0438\u0437\u043C\u0435\u043D\u044F\u0442\u044C \u043F\u0430\u0440\u043E\u043B\u044C",Changing:"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435",Code:"\u041A\u043E\u0434","Confirm Password":"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u0435 \u043F\u0430\u0440\u043E\u043B\u044F","Confirm Sign Up":"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u0435 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043E\u0432\u0430\u0442\u044C\u0441\u044F","Confirm SMS Code":"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u0435 CMC-\u041A\u043E\u0434","Confirm TOTP Code":"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u0435 TOTP-\u041A\u043E\u0434",Confirm:"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0442\u044C","Confirmation Code":"\u043A\u043E\u0434 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F",Confirming:"\u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u0435","Create a new account":"\u0421\u043E\u0437\u0434\u0430\u0432\u0430\u0442\u044C \u043D\u043E\u0432\u0443\u044E \u0443\u0447\u0435\u0442\u043D\u0443\u044E \u0437\u0430\u043F\u0438\u0441\u044C","Create Account":"\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u0443\u0447\u0435\u0442\u043D\u0443\u044E \u0437\u0430\u043F\u0438\u0441\u044C","Creating Account":"\u0441\u043E\u0437\u0434\u0430\u043D\u0438\u0435 \u0443\u0447\u0435\u0442\u043D\u0430\u044F \u0437\u0430\u043F\u0438\u0441\u044C","Dismiss alert":"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435",Email:"\u044D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430","Enter your code":"\u0432\u0432\u0435\u0441\u0442\u0438 \u0432\u0430\u0448 \u041A\u043E\u0434","Enter your email":"\u0432\u0432\u0435\u0441\u0442\u0438 \u0432\u0430\u0448 \u044D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430","Enter your phone number":"\u0432\u0432\u0435\u0441\u0442\u0438 \u0432\u0430\u0448 \u043D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430","Enter your username":"\u0432\u0432\u0435\u0441\u0442\u0438 \u0432\u0430\u0448 \u0438\u043C\u044F \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F","Forgot your password?":"\u0417\u0430\u0431\u044B\u043B\u0438 \u0432\u0430\u0448 \u043F\u0430\u0440\u043E\u043B\u044C?","Hide password":"\u0421\u043A\u0440\u044B\u0432\u0430\u0442\u044C \u043F\u0430\u0440\u043E\u043B\u044C",Loading:"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430","New password":"\u041D\u043E\u0432\u044B\u0439 \u043F\u0430\u0440\u043E\u043B\u044C",Password:"\u041F\u0430\u0440\u043E\u043B\u044C","Phone Number":"\u041D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430","Resend Code":"\u041E\u0442\u043F\u0440\u0430\u0432\u044C \u0435\u0449\u0435 \u0440\u0430\u0437 \u041A\u043E\u0434","Reset your password":"\u0441\u0431\u0440\u043E\u0441 \u0432\u0430\u0448 \u043F\u0430\u0440\u043E\u043B\u044C","Reset your Password":"\u0441\u0431\u0440\u043E\u0441 \u0432\u0430\u0448 \u041F\u0430\u0440\u043E\u043B\u044C","Send code":"\u041E\u0442\u043F\u0440\u0430\u0432\u043B\u044F\u0442\u044C \u041A\u043E\u0434","Send Code":"\u041E\u0442\u043F\u0440\u0430\u0432\u043B\u044F\u0442\u044C \u041A\u043E\u0434",Sending:"\u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0430","Setup TOTP":"\u041D\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044C TOTP","Show password":"\u041F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0442\u044C \u043F\u0430\u0440\u043E\u043B\u044C","Sign in to your account":"\u0437\u043D\u0430\u043A \u0432 \u0441\u0432\u043E\u0439 \u0430\u043A\u043A\u0430\u0443\u043D\u0442","Sign In with Amazon":"\u0437\u043D\u0430\u043A \u0432 \u0441 Amazon","Sign In with Apple":"\u0437\u043D\u0430\u043A \u0432 \u0441 Apple","Sign In with Facebook":"\u0437\u043D\u0430\u043A \u0432 \u0441 Facebook","Sign In with Google":"\u0437\u043D\u0430\u043A \u0432 \u0441 Google","Sign in":"\u0437\u043D\u0430\u043A \u0432","Sign In":"\u0437\u043D\u0430\u043A \u0432","Signing in":"\u043F\u043E\u0434\u043F\u0438\u0441\u0430\u043D\u0438\u0435 \u0432",Skip:"\u041F\u0440\u043E\u043F\u0443\u0441\u043A\u0430\u0442\u044C",Submit:"\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043B\u044F\u0442\u044C \u043D\u0430 \u0440\u0430\u0441\u0441\u043C\u043E\u0442\u0440\u0435\u043D\u0438\u0435",Submitting:"\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0432",Username:"\u0418\u043C\u044F \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F","Verify Contact":"\u041F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C \u043A\u043E\u043D\u0442\u0430\u043A\u0442",Verify:"\u041F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C"},rl={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"},ol=U({},jc),al=U({},zc),il=U({},Gc),sl=U({},Hc),ul=U({},Kc),cl=U({},qc),ll=U({},Wc),dl=U({},Yc),fl=U({},Jc),pl=U({},Zc),hl=U({},Qc),ml=U({},Xc),gl=U({},el),vl=U({},tl),yl=U({},nl),wl=U({},rl);U({},wl);function R(e){return ce.I18n.get(e)}function Sl(e){return ce.I18n.get(e)!==e}var _l={de:ol,en:al,es:il,fr:sl,id:gl,it:ul,ja:cl,kr:ll,nl:dl,pl:fl,pt:pl,zh:hl,sv:ml,tr:vl,ru:yl},Gr={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:Lc,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}},bl=["^","$","*",".","[","]","{","}","(",")","?",'"',"!","@","#","%","&","/","\\",",",">","<","'",":",";","|","_","~","`","=","+","-"," "],De=function(e){var t=new FormData(e.target);return Object.fromEntries(t)},Jo=function(e){return Mc.includes(e)},Cl=function(e){return e?(t=e,Array.isArray(t)?e:[e]):null;var t},Al=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")}},El=function(e,t){return t===void 0&&(t=Al),ce.Hub.listen("auth",function(n){t(n,e)},"authenticator-hub-handler")},Il=function(e){return bl.some(function(t){return e.includes(t)})},We=function(e,t){var n=Qa(e).country_code,r=Gr[t];return r.type==="tel"&&(r=U(U({},r),{dialCode:n})),r},or=function(e){var t=vr(e);return U(U({},We(e,t)),{autocomplete:"username"})},on=function(e){return{confirmation_code:U(U({},We(e,"confirmation_code")),{label:"Code *",placeholder:"Code"})}},Tl={signIn:function(e){return{username:U({},or(e)),password:U(U({},We(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(Re(Re(Re([],n,!0),["password","confirm_password"],!1),r,!0)));s<u.length;s++){var c=u[s];if(Jo(c)){var l=c===a?or(e):We(e,c);i[c]=U({},l)}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:U(U({},We(e,"confirmation_code")),{placeholder:"Enter your code"})}},confirmSignIn:on,forceNewPassword:function(e){for(var t=Te(e).context.requiredAttributes,n={},r=0,a=Array.from(new Set(Re(["password","confirm_password"],t,!0)));r<a.length;r++){var i=a[r];Jo(i)?n[i]=U({},We(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=Gr[t].label;return{username:U(U({},or(e)),{label:"Enter your ".concat(n.toLowerCase()),placeholder:"Enter your ".concat(n.toLowerCase())})}},confirmResetPassword:function(e){return U(U({},on(e)),{password:U(U({},We(e,"password")),{label:"New Password",placeholder:"New Password"}),confirm_password:U(U({},We(e,"confirm_password")),{label:"Confirm Password",placeholder:"Confirm Password"})})},confirmVerifyUser:on,setupTOTP:on};function $l(){this.__data__=[],this.size=0}var Pl=$l;function Nl(e,t){return e===t||e!==e&&t!==t}var Kt=Nl,kl=Kt;function xl(e,t){for(var n=e.length;n--;)if(kl(e[n][0],t))return n;return-1}var Fn=xl,Ol=Fn,Ul=Array.prototype,Rl=Ul.splice;function Bl(e){var t=this.__data__,n=Ol(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Rl.call(t,n,1),--this.size,!0}var Vl=Bl,Ml=Fn;function Dl(e){var t=this.__data__,n=Ml(t,e);return n<0?void 0:t[n][1]}var Fl=Dl,Ll=Fn;function jl(e){return Ll(this.__data__,e)>-1}var zl=jl,Gl=Fn;function Hl(e,t){var n=this.__data__,r=Gl(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Kl=Hl,ql=Pl,Wl=Vl,Yl=Fl,Jl=zl,Zl=Kl;function _t(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])}}_t.prototype.clear=ql;_t.prototype.delete=Wl;_t.prototype.get=Yl;_t.prototype.has=Jl;_t.prototype.set=Zl;var Ln=_t,Ql=Ln;function Xl(){this.__data__=new Ql,this.size=0}var ed=Xl;function td(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var nd=td;function rd(e){return this.__data__.get(e)}var od=rd;function ad(e){return this.__data__.has(e)}var id=ad,sd=Ve,ud=sd["__core-js_shared__"],cd=ud,ar=cd,Zo=function(){var e=/[^.]+$/.exec(ar&&ar.keys&&ar.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ld(e){return!!Zo&&Zo in e}var dd=ld,fd=Function.prototype,pd=fd.toString;function hd(e){if(e!=null){try{return pd.call(e)}catch{}try{return e+""}catch{}}return""}var ui=hd,md=Fr,gd=dd,vd=Me,yd=ui,wd=/[\\^$.*+?()[\]{}|]/g,Sd=/^\[object .+?Constructor\]$/,_d=Function.prototype,bd=Object.prototype,Cd=_d.toString,Ad=bd.hasOwnProperty,Ed=RegExp("^"+Cd.call(Ad).replace(wd,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Id(e){if(!vd(e)||gd(e))return!1;var t=md(e)?Ed:Sd;return t.test(yd(e))}var Td=Id;function $d(e,t){return e==null?void 0:e[t]}var Pd=$d,Nd=Td,kd=Pd;function xd(e,t){var n=kd(e,t);return Nd(n)?n:void 0}var rt=xd,Od=rt,Ud=Ve,Rd=Od(Ud,"Map"),Hr=Rd,Bd=rt,Vd=Bd(Object,"create"),jn=Vd,Qo=jn;function Md(){this.__data__=Qo?Qo(null):{},this.size=0}var Dd=Md;function Fd(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Ld=Fd,jd=jn,zd="__lodash_hash_undefined__",Gd=Object.prototype,Hd=Gd.hasOwnProperty;function Kd(e){var t=this.__data__;if(jd){var n=t[e];return n===zd?void 0:n}return Hd.call(t,e)?t[e]:void 0}var qd=Kd,Wd=jn,Yd=Object.prototype,Jd=Yd.hasOwnProperty;function Zd(e){var t=this.__data__;return Wd?t[e]!==void 0:Jd.call(t,e)}var Qd=Zd,Xd=jn,ef="__lodash_hash_undefined__";function tf(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Xd&&t===void 0?ef:t,this}var nf=tf,rf=Dd,of=Ld,af=qd,sf=Qd,uf=nf;function bt(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])}}bt.prototype.clear=rf;bt.prototype.delete=of;bt.prototype.get=af;bt.prototype.has=sf;bt.prototype.set=uf;var cf=bt,Xo=cf,lf=Ln,df=Hr;function ff(){this.size=0,this.__data__={hash:new Xo,map:new(df||lf),string:new Xo}}var pf=ff;function hf(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var mf=hf,gf=mf;function vf(e,t){var n=e.__data__;return gf(t)?n[typeof t=="string"?"string":"hash"]:n.map}var zn=vf,yf=zn;function wf(e){var t=yf(this,e).delete(e);return this.size-=t?1:0,t}var Sf=wf,_f=zn;function bf(e){return _f(this,e).get(e)}var Cf=bf,Af=zn;function Ef(e){return Af(this,e).has(e)}var If=Ef,Tf=zn;function $f(e,t){var n=Tf(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var Pf=$f,Nf=pf,kf=Sf,xf=Cf,Of=If,Uf=Pf;function Ct(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])}}Ct.prototype.clear=Nf;Ct.prototype.delete=kf;Ct.prototype.get=xf;Ct.prototype.has=Of;Ct.prototype.set=Uf;var Kr=Ct,Rf=Ln,Bf=Hr,Vf=Kr,Mf=200;function Df(e,t){var n=this.__data__;if(n instanceof Rf){var r=n.__data__;if(!Bf||r.length<Mf-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Vf(r)}return n.set(e,t),this.size=n.size,this}var Ff=Df,Lf=Ln,jf=ed,zf=nd,Gf=od,Hf=id,Kf=Ff;function At(e){var t=this.__data__=new Lf(e);this.size=t.size}At.prototype.clear=jf;At.prototype.delete=zf;At.prototype.get=Gf;At.prototype.has=Hf;At.prototype.set=Kf;var Gn=At;function qf(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Wf=qf,Yf=rt,Jf=function(){try{var e=Yf(Object,"defineProperty");return e({},"",{}),e}catch{}}(),ci=Jf,ea=ci;function Zf(e,t,n){t=="__proto__"&&ea?ea(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var qr=Zf,Qf=qr,Xf=Kt,ep=Object.prototype,tp=ep.hasOwnProperty;function np(e,t,n){var r=e[t];(!(tp.call(e,t)&&Xf(r,n))||n===void 0&&!(t in e))&&Qf(e,t,n)}var Wr=np,rp=Wr,op=qr;function ap(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?op(n,u,c):rp(n,u,c)}return n}var qt=ap,ip=qt,sp=Dn;function up(e,t){return e&&ip(t,sp(t),e)}var cp=up;function lp(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var dp=lp,fp=Me,pp=Mn,hp=dp,mp=Object.prototype,gp=mp.hasOwnProperty;function vp(e){if(!fp(e))return hp(e);var t=pp(e),n=[];for(var r in e)r=="constructor"&&(t||!gp.call(e,r))||n.push(r);return n}var yp=vp,wp=ri,Sp=yp,_p=Ht;function bp(e){return _p(e)?wp(e,!0):Sp(e)}var Wt=bp,Cp=qt,Ap=Wt;function Ep(e,t){return e&&Cp(t,Ap(t),e)}var Ip=Ep,An={exports:{}};(function(e,t){var n=Ve,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(l,d){if(d)return l.slice();var h=l.length,f=u?u(h):new l.constructor(h);return l.copy(f),f}e.exports=c})(An,An.exports);function Tp(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var li=Tp;function $p(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 Pp=$p;function Np(){return[]}var di=Np,kp=Pp,xp=di,Op=Object.prototype,Up=Op.propertyIsEnumerable,ta=Object.getOwnPropertySymbols,Rp=ta?function(e){return e==null?[]:(e=Object(e),kp(ta(e),function(t){return Up.call(e,t)}))}:xp,Yr=Rp,Bp=qt,Vp=Yr;function Mp(e,t){return Bp(e,Vp(e),t)}var Dp=Mp;function Fp(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var fi=Fp,Lp=oi,jp=Lp(Object.getPrototypeOf,Object),Jr=jp,zp=fi,Gp=Jr,Hp=Yr,Kp=di,qp=Object.getOwnPropertySymbols,Wp=qp?function(e){for(var t=[];e;)zp(t,Hp(e)),e=Gp(e);return t}:Kp,pi=Wp,Yp=qt,Jp=pi;function Zp(e,t){return Yp(e,Jp(e),t)}var Qp=Zp,Xp=fi,eh=Oe;function th(e,t,n){var r=t(e);return eh(e)?r:Xp(r,n(e))}var hi=th,nh=hi,rh=Yr,oh=Dn;function ah(e){return nh(e,oh,rh)}var mi=ah,ih=hi,sh=pi,uh=Wt;function ch(e){return ih(e,uh,sh)}var gi=ch,lh=rt,dh=Ve,fh=lh(dh,"DataView"),ph=fh,hh=rt,mh=Ve,gh=hh(mh,"Promise"),vh=gh,yh=rt,wh=Ve,Sh=yh(wh,"Set"),_h=Sh,bh=rt,Ch=Ve,Ah=bh(Ch,"WeakMap"),Eh=Ah,yr=ph,wr=Hr,Sr=vh,_r=_h,br=Eh,vi=St,Et=ui,na="[object Map]",Ih="[object Object]",ra="[object Promise]",oa="[object Set]",aa="[object WeakMap]",ia="[object DataView]",Th=Et(yr),$h=Et(wr),Ph=Et(Sr),Nh=Et(_r),kh=Et(br),et=vi;(yr&&et(new yr(new ArrayBuffer(1)))!=ia||wr&&et(new wr)!=na||Sr&&et(Sr.resolve())!=ra||_r&&et(new _r)!=oa||br&&et(new br)!=aa)&&(et=function(e){var t=vi(e),n=t==Ih?e.constructor:void 0,r=n?Et(n):"";if(r)switch(r){case Th:return ia;case $h:return na;case Ph:return ra;case Nh:return oa;case kh:return aa}return t});var Yt=et,xh=Object.prototype,Oh=xh.hasOwnProperty;function Uh(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Oh.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Rh=Uh,Bh=Ve,Vh=Bh.Uint8Array,yi=Vh,sa=yi;function Mh(e){var t=new e.constructor(e.byteLength);return new sa(t).set(new sa(e)),t}var Zr=Mh,Dh=Zr;function Fh(e,t){var n=t?Dh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Lh=Fh,jh=/\w*$/;function zh(e){var t=new e.constructor(e.source,jh.exec(e));return t.lastIndex=e.lastIndex,t}var Gh=zh,ua=Gt,ca=ua?ua.prototype:void 0,la=ca?ca.valueOf:void 0;function Hh(e){return la?Object(la.call(e)):{}}var Kh=Hh,qh=Zr;function Wh(e,t){var n=t?qh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var wi=Wh,Yh=Zr,Jh=Lh,Zh=Gh,Qh=Kh,Xh=wi,em="[object Boolean]",tm="[object Date]",nm="[object Map]",rm="[object Number]",om="[object RegExp]",am="[object Set]",im="[object String]",sm="[object Symbol]",um="[object ArrayBuffer]",cm="[object DataView]",lm="[object Float32Array]",dm="[object Float64Array]",fm="[object Int8Array]",pm="[object Int16Array]",hm="[object Int32Array]",mm="[object Uint8Array]",gm="[object Uint8ClampedArray]",vm="[object Uint16Array]",ym="[object Uint32Array]";function wm(e,t,n){var r=e.constructor;switch(t){case um:return Yh(e);case em:case tm:return new r(+e);case cm:return Jh(e,n);case lm:case dm:case fm:case pm:case hm:case mm:case gm:case vm:case ym:return Xh(e,n);case nm:return new r;case rm:case im:return new r(e);case om:return Zh(e);case am:return new r;case sm:return Qh(e)}}var Sm=wm,_m=Me,da=Object.create,bm=function(){function e(){}return function(t){if(!_m(t))return{};if(da)return da(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Cm=bm,Am=Cm,Em=Jr,Im=Mn;function Tm(e){return typeof e.constructor=="function"&&!Im(e)?Am(Em(e)):{}}var Si=Tm,$m=Yt,Pm=Ke,Nm="[object Map]";function km(e){return Pm(e)&&$m(e)==Nm}var xm=km,Om=xm,Um=zr,fa=Ft.exports,pa=fa&&fa.isMap,Rm=pa?Um(pa):Om,Bm=Rm,Vm=Yt,Mm=Ke,Dm="[object Set]";function Fm(e){return Mm(e)&&Vm(e)==Dm}var Lm=Fm,jm=Lm,zm=zr,ha=Ft.exports,ma=ha&&ha.isSet,Gm=ma?zm(ma):jm,Hm=Gm,Km=Gn,qm=Wf,Wm=Wr,Ym=cp,Jm=Ip,Zm=An.exports,Qm=li,Xm=Dp,eg=Qp,tg=mi,ng=gi,rg=Yt,og=Rh,ag=Sm,ig=Si,sg=Oe,ug=nt.exports,cg=Bm,lg=Me,dg=Hm,fg=Dn,pg=Wt,hg=1,mg=2,gg=4,_i="[object Arguments]",vg="[object Array]",yg="[object Boolean]",wg="[object Date]",Sg="[object Error]",bi="[object Function]",_g="[object GeneratorFunction]",bg="[object Map]",Cg="[object Number]",Ci="[object Object]",Ag="[object RegExp]",Eg="[object Set]",Ig="[object String]",Tg="[object Symbol]",$g="[object WeakMap]",Pg="[object ArrayBuffer]",Ng="[object DataView]",kg="[object Float32Array]",xg="[object Float64Array]",Og="[object Int8Array]",Ug="[object Int16Array]",Rg="[object Int32Array]",Bg="[object Uint8Array]",Vg="[object Uint8ClampedArray]",Mg="[object Uint16Array]",Dg="[object Uint32Array]",ae={};ae[_i]=ae[vg]=ae[Pg]=ae[Ng]=ae[yg]=ae[wg]=ae[kg]=ae[xg]=ae[Og]=ae[Ug]=ae[Rg]=ae[bg]=ae[Cg]=ae[Ci]=ae[Ag]=ae[Eg]=ae[Ig]=ae[Tg]=ae[Bg]=ae[Vg]=ae[Mg]=ae[Dg]=!0;ae[Sg]=ae[bi]=ae[$g]=!1;function yn(e,t,n,r,a,i){var s,u=t&hg,c=t&mg,l=t&gg;if(n&&(s=a?n(e,r,a,i):n(e)),s!==void 0)return s;if(!lg(e))return e;var d=sg(e);if(d){if(s=og(e),!u)return Qm(e,s)}else{var h=rg(e),f=h==bi||h==_g;if(ug(e))return Zm(e,u);if(h==Ci||h==_i||f&&!a){if(s=c||f?{}:ig(e),!u)return c?eg(e,Jm(s,e)):Xm(e,Ym(s,e))}else{if(!ae[h])return a?e:{};s=ag(e,h,u)}}i||(i=new Km);var g=i.get(e);if(g)return g;i.set(e,s),dg(e)?e.forEach(function(y){s.add(yn(y,t,n,y,e,i))}):cg(e)&&e.forEach(function(y,v){s.set(v,yn(y,t,n,v,e,i))});var p=l?c?ng:tg:c?pg:fg,m=d?void 0:p(e);return qm(m||e,function(y,v){m&&(v=y,y=e[v]),Wm(s,v,yn(y,t,n,v,e,i))}),s}var Fg=yn,Lg=Fg,jg=1,zg=4;function Gg(e){return Lg(e,jg|zg)}var Hg=Gg,Kg=function(e){for(var t=U({},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]=U(U({},s),{label:u?R(u):void 0,placeholder:c?R(c):void 0})}return t},qg=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})},Wg=function(e,t){t===void 0&&(t={});var n=Hg(e);return Object.keys(t).forEach(function(r){n[r]=U(U({},n[r]),t[r])}),n},Yg=function(e,t){var n=(0,Tl[e])(t);return Kg(n)},Jg=function(e,t){var n,r,a=Yg(e,t),i=((r=(n=Te(t).context)===null||n===void 0?void 0:n.formFields)===null||r===void 0?void 0:r[e])||{},s=Wg(a,i);return delete s.QR,s},Zg=function(e,t){var n=Jg(e,t);return qg(n)};/*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
5
5
  Permission to use, copy, modify, and/or distribute this software for any
@@ -12,10 +12,10 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */var T=function(){return T=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},T.apply(this,arguments)};function Qr(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 z(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 re(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 te;(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"})(te||(te={}));var He;(function(e){e.Parent="#_parent",e.Internal="#_internal"})(He||(He={}));var Cr=te.Start,Xr=te.Stop,pt=te.Raise,ht=te.Send,Ai=te.Cancel,Qg=te.NullEvent,eo=te.Assign;te.After;te.DoneState;var Ei=te.Log,Xg=te.Init,Ar=te.Invoke;te.ErrorExecution;var ga=te.ErrorPlatform,ev=te.ErrorCustom,to=te.Update,tv=te.Choose,nv=te.Pure,Ii=".",va={},Er="xstate.guard",rv="",Ti=!0,an;function no(e,t,n){n===void 0&&(n=Ii);var r=Dt(e,n),a=Dt(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?no(r[i],a[i]):!1})}function $i(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 It(e)?e:e.toString().split(t)}catch{throw new Error("'".concat(e,"' is not a valid state path."))}}function ov(e){return typeof e=="object"&&"value"in e&&"context"in e&&"event"in e&&"_event"in e}function Dt(e,t){if(ov(e))return e.value;if(It(e))return En(e);if(typeof e!="string")return e;var n=Ir(e,t);return En(n)}function En(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 Ut(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 ya(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,l=e[c];!n(l)||(i[c]=t(l,c,e))}}catch(d){r={error:d}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(r)throw r.error}}return i}var av=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 iv(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(l){r={error:l}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(r)throw r.error}}return i}}function wn(e){if(!e)return[[]];if(Y(e))return[[e]];var t=le(Object.keys(e).map(function(n){var r=e[n];return typeof r!="string"&&(!r||!Object.keys(r).length)?[[n]]:wn(e[n]).map(function(a){return[n].concat(a)})}));return t}function le(e){var t;return(t=[]).concat.apply(t,re([],z(e),!1))}function Pi(e){return It(e)?e:[e]}function ke(e){return e===void 0?[]:Pi(e)}function In(e,t,n){var r,a;if(ee(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,l=e[c];ee(l)?i[c]=l(t,n.data):i[c]=l}}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 sv(e){return/^(done|error)\./.test(e)}function wa(e){return!!(e instanceof Promise||e!==null&&(ee(e)||typeof e=="object")&&ee(e.then))}function uv(e){return e!==null&&typeof e=="object"&&"transition"in e&&typeof e.transition=="function"}function cv(e,t){var n,r,a=z([[],[]],2),i=a[0],s=a[1];try{for(var u=G(e),c=u.next();!c.done;c=u.next()){var l=c.value;t(l)?i.push(l):s.push(l)}}catch(d){n={error:d}}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 Ut(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 lv(e,t){return{current:t,states:Ni(e,t)}}function Sa(e,t,n,r){var a=e&&n.reduce(function(i,s){var u,c,l=s.assignment,d={state:r,action:s,_event:t},p={};if(ee(l))p=l(i,t.data,d);else try{for(var f=G(Object.keys(l)),g=f.next();!g.done;g=f.next()){var h=g.value,m=l[h];p[h]=ee(m)?m(i,t.data,d):m}}catch(y){u={error:y}}finally{try{g&&!g.done&&(c=f.return)&&c.call(f)}finally{if(u)throw u.error}}return Object.assign({},i,p)},e);return a}var dv=function(){};function It(e){return Array.isArray(e)}function ee(e){return typeof e=="function"}function Y(e){return typeof e=="string"}function ki(e,t){if(!!e)return Y(e)?{type:Er,name:e,predicate:t?t[e]:void 0}:ee(e)?{type:Er,name:e.name,predicate:e}:e}function fv(e){try{return"subscribe"in e&&ee(e.subscribe)}catch{return!1}}var Ye=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();an={},an[Ye]=function(){return this},an[Symbol.observable]=function(){return this};function mt(e){return!!e&&"__xstatenode"in e}function pv(e){return!!e&&typeof e.send=="function"}var hv=function(){var e=0;return function(){return e++,e.toString(16)}}();function ro(e,t){return Y(e)||typeof e=="number"?T({type:e},t):e}function ve(e,t){if(!Y(e)&&"$$type"in e&&e.$$type==="scxml")return e;var n=ro(e);return T({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function ut(e,t){var n=Pi(t).map(function(r){return typeof r=="undefined"||typeof r=="string"||mt(r)?{target:r,event:e}:T(T({},r),{event:e})});return n}function mv(e){if(!(e===void 0||e===rv))return ke(e)}function xi(e,t,n,r,a){var i=e.options.guards,s={state:a,cond:t,_event:r};if(t.type===Er)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 Sn(e,t,n){var r=function(){},a=typeof e=="object",i=a?e:null;return{next:((a?e.next:e)||r).bind(i),error:((a?e.error:t)||r).bind(i),complete:((a?e.complete:n)||r).bind(i)}}function sn(e,t){return"".concat(e,":invocation[").concat(t,"]")}var ft=ve({type:Xg});function Tr(e,t){return t&&t[e]||void 0}function Lt(e,t){var n;if(Y(e)||typeof e=="number"){var r=Tr(e,t);ee(r)?n={type:e,exec:r}:r?n=r:n={type:e,exec:void 0}}else if(ee(e))n={type:e.name||e.toString(),exec:e};else{var r=Tr(e.type,t);if(ee(r))n=T(T({},e),{exec:r});else if(r){var a=r.type||e.type;n=T(T(T({},r),e),{type:a})}else n=e}return n}var Je=function(e,t){if(!e)return[];var n=It(e)?e:[e];return n.map(function(r){return Lt(r,t)})};function oo(e){var t=Lt(e);return T(T({id:Y(e)?e:t.id},t),{type:t.type})}function gv(e){return Y(e)?{type:pt,event:e}:Hn(e,{to:He.Internal})}function vv(e){return{type:pt,_event:ve(e.event)}}function Hn(e,t){return{to:t?t.to:void 0,type:ht,event:ee(e)?e:ro(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:ee(e)?e.name:$i(e)}}function yv(e,t,n,r){var a={_event:n},i=ve(ee(e.event)?e.event(t,n.data,a):e.event),s;if(Y(e.delay)){var u=r&&r[e.delay];s=ee(u)?u(t,n.data,a):u}else s=ee(e.delay)?e.delay(t,n.data,a):e.delay;var c=ee(e.to)?e.to(t,n.data,a):e.to;return T(T({},e),{to:c,_event:i,event:i.data,delay:s})}function wv(e,t){return Hn(e,T(T({},t),{to:He.Parent}))}function Sv(){return wv(to)}var _v=function(e,t,n){return T(T({},e),{value:Y(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})},bv=function(e){return{type:Ai,sendId:e}};function Cv(e){var t=oo(e);return{type:te.Start,activity:t,exec:void 0}}function Av(e){var t=ee(e)?e:oo(e);return{type:te.Stop,activity:t,exec:void 0}}function Ev(e,t,n){var r=ee(e.activity)?e.activity(t,n.data):e.activity,a=typeof r=="string"?{id:r}:r,i={type:te.Stop,activity:a};return i}var Iv=function(e){return{type:eo,assignment:e}};function Tv(e,t){var n=t?"#".concat(t):"";return"".concat(te.After,"(").concat(e,")").concat(n)}function un(e,t){var n="".concat(te.DoneState,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function _n(e,t){var n="".concat(te.DoneInvoke,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Rt(e,t){var n="".concat(te.ErrorPlatform,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function $v(e,t){return Hn(function(n,r){return r},T(T({},t),{to:e}))}var Pv=function(e){var t,n,r=[];try{for(var a=G(e),i=a.next();!i.done;i=a.next())for(var s=i.value,u=0;u<s.length;){if(s[u].type===eo){r.push(s[u]),s.splice(u,1);continue}u++}}catch(c){t={error:c}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r};function Tn(e,t,n,r,a,i,s){s===void 0&&(s=!1);var u=s?[]:Pv(a),c=u.length?Sa(n,r,u,t):n,l=s?[n]:void 0,d=[];function p(h){var m;switch(h.type){case pt:return vv(h);case ht:var y=yv(h,c,r,e.options.delays);return i&&y.to!==He.Internal&&d.push(y),y;case Ei:{var v=_v(h,c,r);return i==null||i(v,c,r),v}case tv:{var _=h,S=(m=_.conds.find(function(M){var H=ki(M.cond,e.options.guards);return!H||xi(e,H,c,r,i?void 0:t)}))===null||m===void 0?void 0:m.actions;if(!S)return[];var b=z(Tn(e,t,c,r,[Je(ke(S),e.options.actions)],i,s),2),C=b[0],E=b[1];return c=E,l==null||l.push(c),C}case nv:{var S=h.get(c,r.data);if(!S)return[];var A=z(Tn(e,t,c,r,[Je(ke(S),e.options.actions)],i,s),2),$=A[0],k=A[1];return c=k,l==null||l.push(c),$}case Xr:{var v=Ev(h,c,r);return i==null||i(v,n,r),v}case eo:{c=Sa(c,r,[h],i?void 0:t),l==null||l.push(c);break}default:var I=Lt(h,e.options.actions),B=I.exec;if(i)i(I,c,r);else if(B&&l){var F=l.length-1;I=T(T({},I),{exec:function(M){for(var H=[],W=1;W<arguments.length;W++)H[W-1]=arguments[W];B.apply(void 0,re([l[F]],z(H),!1))}})}return I}}function f(h){var m,y,v=[];try{for(var _=G(h),S=_.next();!S.done;S=_.next()){var b=S.value,C=p(b);C&&(v=v.concat(C))}}catch(E){m={error:E}}finally{try{S&&!S.done&&(y=_.return)&&y.call(_)}finally{if(m)throw m.error}}return d.forEach(function(E){i(E,c,r)}),d.length=0,v}var g=le(a.map(f));return[g,c]}var $n=[],dt=function(e,t){$n.push(e);var n=t(e);return $n.pop(),n},Nv=function(e){return e($n[$n.length-1])};function Ui(e){var t;return t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}},t[Ye]=function(){return this},t}function kv(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?In(e.data,n,r):void 0,c=s?ao(s,e.id,u):Ui(e.id);return c.meta=e,c}function ao(e,t,n){var r=Ui(t);if(r.deferred=!0,mt(e)){var a=r.state=dt(void 0,function(){return(n?e.withContext(n):e).initialState});r.getSnapshot=function(){return a}}return r}function xv(e){try{return typeof e.send=="function"}catch{return!1}}function Ov(e){return xv(e)&&"id"in e}function Uv(e){var t;return T((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}},t[Ye]=function(){return this},t),e)}var Pn=function(e){return e.type==="atomic"||e.type==="final"};function Ri(e){return Object.keys(e.states).map(function(t){return e.states[t]})}function jt(e){return Ri(e).filter(function(t){return t.type!=="history"})}function Bi(e){var t=[e];return Pn(e)?t:t.concat(le(jt(e).map(Bi)))}function Bt(e,t){var n,r,a,i,s,u,c,l,d=new Set(e),p=$r(d),f=new Set(t);try{for(var g=G(f),h=g.next();!h.done;h=g.next())for(var m=h.value,y=m.parent;y&&!f.has(y);)f.add(y),y=y.parent}catch(k){n={error:k}}finally{try{h&&!h.done&&(r=g.return)&&r.call(g)}finally{if(n)throw n.error}}var v=$r(f);try{for(var _=G(f),S=_.next();!S.done;S=_.next()){var m=S.value;if(m.type==="compound"&&(!v.get(m)||!v.get(m).length))p.get(m)?p.get(m).forEach(function(I){return f.add(I)}):m.initialStateNodes.forEach(function(I){return f.add(I)});else if(m.type==="parallel")try{for(var b=(s=void 0,G(jt(m))),C=b.next();!C.done;C=b.next()){var E=C.value;f.has(E)||(f.add(E),p.get(E)?p.get(E).forEach(function(I){return f.add(I)}):E.initialStateNodes.forEach(function(I){return f.add(I)}))}}catch(I){s={error:I}}finally{try{C&&!C.done&&(u=b.return)&&u.call(b)}finally{if(s)throw s.error}}}}catch(k){a={error:k}}finally{try{S&&!S.done&&(i=_.return)&&i.call(_)}finally{if(a)throw a.error}}try{for(var A=G(f),$=A.next();!$.done;$=A.next())for(var m=$.value,y=m.parent;y&&!f.has(y);)f.add(y),y=y.parent}catch(k){c={error:k}}finally{try{$&&!$.done&&(l=A.return)&&l.call(A)}finally{if(c)throw c.error}}return f}function Vi(e,t){var n=t.get(e);if(!n)return{};if(e.type==="compound"){var r=n[0];if(r){if(Pn(r))return r.key}else return{}}var a={};return n.forEach(function(i){a[i.key]=Vi(i,t)}),a}function $r(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 Rv(e,t){var n=Bt([e],t);return Vi(e,$r(n))}function Vt(e,t){return Array.isArray(e)?e.some(function(n){return n===t}):e instanceof Set?e.has(t):!1}function Bv(e){return re([],z(new Set(le(re([],z(e.map(function(t){return t.ownEvents})),!1)))),!1)}function bn(e,t){return t.type==="compound"?jt(t).some(function(n){return n.type==="final"&&Vt(e,n)}):t.type==="parallel"?jt(t).every(function(n){return bn(e,n)}):!1}function Vv(e){return e===void 0&&(e=[]),e.reduce(function(t,n){return n.meta!==void 0&&(t[n.id]=n.meta),t},{})}function _a(e){return new Set(le(e.map(function(t){return t.tags})))}function Di(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 Di(e[a],t[a])})}function Dv(e){return typeof e!="object"||e===null?!1:"value"in e&&"_event"in e}function Mv(e,t){var n=e.exec,r=T(T({},e),{exec:n!==void 0?function(){return n(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0});return r}var xe=function(){function e(t){var n=this,r;this.actions=[],this.activities=va,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||va,this.meta=Vv(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 Bv(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=ft;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=ft;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,re([],z(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=Qr(t,["configuration","transitions","tags","machine"]);return T(T({},r),{tags:Array.from(n)})},e.prototype.matches=function(t){return no(t,this.value)},e.prototype.hasTag=function(t){return this.tags.has(t)},e.prototype.can=function(t){var n;Ti&&dv(!!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}(),Fv={deferEvents:!1},ba=function(){function e(t){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=T(T({},Fv),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}(),ir=new Map,Lv=0,cn={bookId:function(){return"x:".concat(Lv++)},register:function(e,t){return ir.set(e,t),e},get:function(e){return ir.get(e)},free:function(e){ir.delete(e)}};function io(){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 jv(){var e=io();if(e&&"__xstate__"in e)return e.__xstate__}function zv(e){if(!!io()){var t=jv();t&&t.register(e)}}function Gv(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 l=a.shift();n=e.transition(n,l,c),r.forEach(function(d){return d.next(n)})}i=!1}},u=Uv({id:t.id,send:function(l){a.push(l),s()},getSnapshot:function(){return n},subscribe:function(l,d,p){var f=Sn(l,d,p);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 Pr={sync:!1,autoForward:!1},ge;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(ge||(ge={}));var Hv=function(){function e(t,n){n===void 0&&(n=e.defaultOptions);var r=this;this.machine=t,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=ge.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(d,p){if(It(d))return r.batch(d),r.state;var f=ve(ro(d,p));if(r.status===ge.Stopped)return r.state;if(r.status!==ge.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.
16
- Event: `).concat(JSON.stringify(f.data)));return r.scheduler.schedule(function(){r.forward(f);var g=r._nextState(f);r.update(g,f)}),r._state},this.sendTo=function(d,p,f){var g=r.parent&&(p===He.Parent||r.parent.id===p),h=g?r.parent:Y(p)?r.children.get(p)||cn.get(p):pv(p)?p:void 0;if(!h){if(!g)throw new Error("Unable to send event to child '".concat(p,"' from service '").concat(r.id,"'."));return}if("machine"in h){if(r.status!==ge.Stopped||r.parent!==h||r.state.done){var m=T(T({},d),{name:d.name===ev?"".concat(Rt(r.id)):d.name,origin:r.sessionId});!f&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([h,m]):h.send(m)}}else!f&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([h,d.data]):h.send(d.data)},this._exec=function(d,p,f,g){g===void 0&&(g=r.machine.options.actions);var h=d.exec||Tr(d.type,g),m=ee(h)?h:h?h.exec:d.exec;if(m)try{return m(p,f.data,r.machine.config.predictableActionArguments?{action:d,_event:f}:{action:d,state:r.state,_event:f})}catch(F){throw r.parent&&r.parent.send({type:"xstate.error",data:F}),F}switch(d.type){case ht:var y=d;if(typeof y.delay=="number"){r.defer(y);return}else y.to?r.sendTo(y._event,y.to,f===ft):r.send(y._event);break;case Ai:r.cancel(d.sendId);break;case Cr:{if(r.status!==ge.Running)return;var v=d.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[v.id||v.type])break;if(v.type===te.Invoke){var _=Oi(v.src),S=r.machine.options.services?r.machine.options.services[_.type]:void 0,b=v.id,C=v.data,E="autoForward"in v?v.autoForward:!!v.forward;if(!S)return;var A=C?In(C,p,f):void 0;if(typeof S=="string")return;var $=ee(S)?S(p,f.data,{data:A,src:_,meta:v.meta}):S;if(!$)return;var k=void 0;mt($)&&($=A?$.withContext(A):$,k={autoForward:E}),r.spawn($,b,k)}else r.spawnActivity(v);break}case Xr:{r.stopChild(d.activity.id);break}case Ei:var I=d.label,B=d.value;I?r.logger(I,B):r.logger(B);break}};var a=T(T({},e.defaultOptions),n),i=a.clock,s=a.logger,u=a.parent,c=a.id,l=c!==void 0?c:t.id;this.id=l,this.logger=s,this.clock=i,this.parent=u,this.options=a,this.scheduler=new ba({deferEvents:this.options.deferEvents}),this.sessionId=cn.bookId()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:dt(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,l,d,p=this;if(t._sessionid=this.sessionId,this._state=t,(!this.machine.config.predictableActionArguments||n===ft)&&this.options.execute)this.execute(this.state);else for(var f=void 0;f=this._outgoingQueue.shift();)f[0].send(f[1]);if(this.children.forEach(function(k){p.state.children[k.id]=k}),this.devTools&&this.devTools.send(n.data,t),t.event)try{for(var g=G(this.eventListeners),h=g.next();!h.done;h=g.next()){var m=h.value;m(t.event)}}catch(k){r={error:k}}finally{try{h&&!h.done&&(a=g.return)&&a.call(g)}finally{if(r)throw r.error}}try{for(var y=G(this.listeners),v=y.next();!v.done;v=y.next()){var m=v.value;m(t,t.event)}}catch(k){i={error:k}}finally{try{v&&!v.done&&(s=y.return)&&s.call(y)}finally{if(i)throw i.error}}try{for(var _=G(this.contextListeners),S=_.next();!S.done;S=_.next()){var b=S.value;b(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(k){u={error:k}}finally{try{S&&!S.done&&(c=_.return)&&c.call(_)}finally{if(u)throw u.error}}if(this.state.done){var C=t.configuration.find(function(k){return k.type==="final"&&k.parent===p.machine}),E=C&&C.doneData?In(C.doneData,t.context,n):void 0;try{for(var A=G(this.doneListeners),$=A.next();!$.done;$=A.next()){var m=$.value;m(_n(this.id,E))}}catch(k){l={error:k}}finally{try{$&&!$.done&&(d=A.return)&&d.call(A)}finally{if(l)throw l.error}}this._stop(),this._stopChildren()}},e.prototype.onTransition=function(t){return this.listeners.add(t),this.status===ge.Running&&t(this.state,this.state.event),this},e.prototype.subscribe=function(t,n,r){var a=this,i=Sn(t,n,r);this.listeners.add(i.next),this.status!==ge.NotStarted&&i.next(this.state);var s=function(){a.doneListeners.delete(s),a.stopListeners.delete(s),i.complete()};return this.status===ge.Stopped?i.complete():(this.onDone(s),this.onStop(s)),{unsubscribe:function(){a.listeners.delete(i.next),a.doneListeners.delete(s),a.stopListeners.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===ge.Running)return this;this.machine._init(),cn.register(this.sessionId,this),this.initialized=!0,this.status=ge.Running;var r=t===void 0?this.initialState:dt(this,function(){return Dv(t)?n.machine.resolveState(t):n.machine.resolveState(xe.from(t,n.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){n.update(r,ft)}),this},e.prototype._stopChildren=function(){this.children.forEach(function(t){ee(t.stop)&&t.stop()}),this.children.clear()},e.prototype._stop=function(){var t,n,r,a,i,s,u,c,l,d;try{for(var p=G(this.listeners),f=p.next();!f.done;f=p.next()){var g=f.value;this.listeners.delete(g)}}catch(A){t={error:A}}finally{try{f&&!f.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}try{for(var h=G(this.stopListeners),m=h.next();!m.done;m=h.next()){var g=m.value;g(),this.stopListeners.delete(g)}}catch(A){r={error:A}}finally{try{m&&!m.done&&(a=h.return)&&a.call(h)}finally{if(r)throw r.error}}try{for(var y=G(this.contextListeners),v=y.next();!v.done;v=y.next()){var g=v.value;this.contextListeners.delete(g)}}catch(A){i={error:A}}finally{try{v&&!v.done&&(s=y.return)&&s.call(y)}finally{if(i)throw i.error}}try{for(var _=G(this.doneListeners),S=_.next();!S.done;S=_.next()){var g=S.value;this.doneListeners.delete(g)}}catch(A){u={error:A}}finally{try{S&&!S.done&&(c=_.return)&&c.call(_)}finally{if(u)throw u.error}}if(!this.initialized)return this;this.initialized=!1,this.status=ge.Stopped,this._initialState=void 0;try{for(var b=G(Object.keys(this.delayedEventsMap)),C=b.next();!C.done;C=b.next()){var E=C.value;this.clock.clearTimeout(this.delayedEventsMap[E])}}catch(A){l={error:A}}finally{try{C&&!C.done&&(d=b.return)&&d.call(b)}finally{if(l)throw l.error}}this.scheduler.clear(),this.scheduler=new ba({deferEvents:this.options.deferEvents})},e.prototype.stop=function(){var t=this,n=this.scheduler;return this._stop(),n.schedule(function(){var r=ve({type:"xstate.stop"}),a=dt(t,function(){var i=le(re([],z(t.state.configuration),!1).sort(function(d,p){return p.order-d.order}).map(function(d){return Je(d.onExit,t.machine.options.actions)})),s=z(Tn(t.machine,t.state,t.state.context,r,[i],t.machine.config.predictableActionArguments?t._exec:void 0,t.machine.config.predictableActionArguments||t.machine.config.preserveActionOrder),2),u=s[0],c=s[1],l=new xe({value:t.state.value,context:c,_event:r,_sessionid:t.sessionId,historyValue:void 0,history:t.state,actions:u.filter(function(d){return d.type!==pt&&(d.type!==ht||!!d.to&&d.to!==He.Internal)}),activities:{},events:[],configuration:[],transitions:[],children:{},done:t.state.done,tags:t.state.tags,machine:t.machine});return l.changed=!0,l});t.update(a,r),t._stopChildren(),cn.free(t.sessionId)}),this},e.prototype.batch=function(t){var n=this;if(!(this.status===ge.NotStarted&&this.options.deferEvents)){if(this.status!==ge.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.'))}if(!!t.length){var r=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule(function(){var a,i,s=n.state,u=!1,c=[],l=function(g){var h=ve(g);n.forward(h),s=dt(n,function(){return n.machine.transition(s,h,void 0,r||void 0)}),c.push.apply(c,re([],z(n.machine.config.predictableActionArguments?s.actions:s.actions.map(function(m){return Mv(m,s)})),!1)),u=u||!!s.changed};try{for(var d=G(t),p=d.next();!p.done;p=d.next()){var f=p.value;l(f)}}catch(g){a={error:g}}finally{try{p&&!p.done&&(i=d.return)&&i.call(d)}finally{if(a)throw a.error}}s.changed=u,s.actions=c,n.update(s,ve(t[t.length-1]))})}},e.prototype.sender=function(t){return this.send.bind(this,t)},e.prototype._nextState=function(t,n){var r=this;n===void 0&&(n=!!this.machine.config.predictableActionArguments&&this._exec);var a=ve(t);if(a.name.indexOf(ga)===0&&!this.state.nextEvents.some(function(s){return s.indexOf(ga)===0}))throw a.data.data;var i=dt(this,function(){return r.machine.transition(r.state,a,void 0,n||void 0)});return i},e.prototype.nextState=function(t){return this._nextState(t,!1)},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,!0):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),this._exec(t,n.context,n._event,r)},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),ee(n.stop)&&n.stop())},e.prototype.spawn=function(t,n,r){if(this.status!==ge.Running)return ao(t,n);if(wa(t))return this.spawnPromise(Promise.resolve(t),n);if(ee(t))return this.spawnCallback(t,n);if(Ov(t))return this.spawnActor(t,n);if(fv(t))return this.spawnObservable(t,n);if(mt(t))return this.spawnMachine(t,T(T({},r),{id:n}));if(uv(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,T(T({},this.options),{parent:this,id:n.id||t.id})),i=T(T({},Pr),n);i.sync&&a.onTransition(function(u){r.send(to,{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=Gv(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(_n(n,c),{origin:n})))},function(c){if(!i){a.removeChild(n);var l=Rt(n,c);try{a.send(ve(l,{origin:n}))}catch{a.devTools&&a.devTools.send(l,a.state),a.machine.strict&&a.stop()}}});var u=(r={id:n,send:function(){},subscribe:function(c,l,d){var p=Sn(c,l,d),f=!1;return t.then(function(g){f||(p.next(g),!f&&p.complete())},function(g){f||p.error(g)}),{unsubscribe:function(){return f=!0}}},stop:function(){i=!0},toJSON:function(){return{id:n}},getSnapshot:function(){return s}},r[Ye]=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,l=function(f){c=f,u.forEach(function(g){return g(f)}),!i&&a.send(ve(f,{origin:n}))},d;try{d=t(l,function(f){s.add(f)})}catch(f){this.send(Rt(n,f))}if(wa(d))return this.spawnPromise(d,n);var p=(r={id:n,send:function(f){return s.forEach(function(g){return g(f)})},subscribe:function(f){var g=Sn(f);return u.add(g.next),{unsubscribe:function(){u.delete(g.next)}}},stop:function(){i=!0,ee(d)&&d()},toJSON:function(){return{id:n}},getSnapshot:function(){return c}},r[Ye]=function(){return this},r);return this.children.set(n,p),p},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(Rt(n,c),{origin:n}))},function(){a.removeChild(n),a.send(ve(_n(n),{origin:n}))}),u=(r={id:n,send:function(){},subscribe:function(c,l,d){return t.subscribe(c,l,d)},stop:function(){return s.unsubscribe()},getSnapshot:function(){return i},toJSON:function(){return{id:n}}},r[Ye]=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[Ye]=function(){return this},r))},e.prototype.attachDev=function(){var t=io();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(T(T({name:this.id,autoPause:!0,stateSanitizer:function(r){return{value:r.value,context:r.context,actions:r.actions}}},n),{features:T({jump:!1,skip:!1},n?n.features:void 0)}),this.machine),this.devTools.init(this.state)}zv(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[Ye]=function(){return this},e.prototype.getSnapshot=function(){return this.status===ge.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=Mi,e}(),Kv=function(e){return Y(e)?T(T({},Pr),{name:e}):T(T(T({},Pr),{name:hv()}),e)};function ln(e,t){var n=Kv(t);return Nv(function(r){return r?r.spawn(e,n.name,n):ao(e,n.name)})}function Mi(e,t){var n=new Hv(e,t);return n}function qv(e){if(typeof e=="string"){var t={type:e};return t.toString=function(){return e},t}return e}function dn(e){return T(T({type:Ar},e),{toJSON:function(){e.onDone,e.onError;var t=Qr(e,["onDone","onError"]);return T(T({},t),{type:Ar,src:qv(e.src)})}})}var fn="",Nr="#",sr="*",ct={},lt=function(e){return e[0]===Nr},Wv=function(){return{actions:{},guards:{},services:{},activities:{},delays:{}}},Yv=function(){function e(t,n,r,a){r===void 0&&(r="context"in t?t.context:void 0);var i=this,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(Wv(),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:Ii),this.id=this.config.id||re([this.machine.key],z(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?Ut(this.config.states,function(l,d){var p,f=new e(l,{},void 0,{parent:i,key:d});return Object.assign(i.idMap,T((p={},p[f.id]=f,p),f.idMap)),f}):ct;var u=0;function c(l){var d,p;l.order=u++;try{for(var f=G(Ri(l)),g=f.next();!g.done;g=f.next()){var h=g.value;c(h)}}catch(m){d={error:m}}finally{try{g&&!g.done&&(p=f.return)&&p.call(f)}finally{if(d)throw d.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(l){var d=l.event;return d===fn}):fn in this.config.on:!1),this.strict=!!this.config.strict,this.onEntry=ke(this.config.entry||this.config.onEntry).map(function(l){return Lt(l)}),this.onExit=ke(this.config.exit||this.config.onExit).map(function(l){return Lt(l)}),this.meta=this.config.meta,this.doneData=this.type==="final"?this.config.data:void 0,this.invoke=ke(this.config.invoke).map(function(l,d){var p,f;if(mt(l)){var g=sn(i.id,d);return i.machine.options.services=T((p={},p[g]=l,p),i.machine.options.services),dn({src:g,id:g})}else if(Y(l.src)){var g=l.id||sn(i.id,d);return dn(T(T({},l),{id:g,src:l.src}))}else if(mt(l.src)||ee(l.src)){var g=l.id||sn(i.id,d);return i.machine.options.services=T((f={},f[g]=l.src,f),i.machine.options.services),dn(T(T({id:g},l),{src:g}))}else{var h=l.src;return dn(T(T({id:sn(i.id,d)},l),{src:h}))}}),this.activities=ke(this.config.activities).concat(this.invoke).map(function(l){return oo(l)}),this.transition=this.transition.bind(this),this.tags=ke(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||Bi(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:T(T({},a),t.actions),activities:T(T({},i),t.activities),guards:T(T({},s),t.guards),services:T(T({},u),t.services),delays:T(T({},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 ee(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:Ut(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===fn,r=this.transitions.filter(function(a){var i=a.eventType===t;return n?i:i||a.eventType===sr});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=ee(i)?"".concat(t.id,":delay[").concat(s,"]"):i,c=Tv(u,t.id);return t.onEntry.push(Hn(c,{delay:i})),t.onExit.push(bv(c)),c},a=It(n)?n.map(function(i,s){var u=r(i.delay,s);return T(T({},i),{event:u})}):le(Object.keys(n).map(function(i,s){var u=n[i],c=Y(u)?{target:u}:u,l=isNaN(+i)?i:+i,d=r(l,s);return ke(c).map(function(p){return T(T({},p),{event:d,delay:l})})}));return a.map(function(i){var s=i.delay;return T(T({},t.formatTransition(i)),{delay:s})})},e.prototype.getStateNodes=function(t){var n,r=this;if(!t)return[];var a=t instanceof xe?t.value:Dt(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,re([],z(le(s.map(function(c){return r.getStateNode(c).getStateNodes(a[c])}))),!1)),u},e.prototype.handles=function(t){var n=$i(t);return this.events.includes(n)},e.prototype.resolveState=function(t){var n=t instanceof xe?t:xe.create(t),r=Array.from(Bt([],this.getStateNodes(n.value)));return new xe(T(T({},n),{value:this.resolve(n.value),configuration:r,done:bn(r,this),tags:_a(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 l=c.value,d=t[l];if(!!d){var p=this.getStateNode(l),f=p._transition(d,n,r);f&&(s[l]=f)}}}catch(_){a={error:_}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(a)throw a.error}}var g=Object.keys(s).map(function(_){return s[_]}),h=le(g.map(function(_){return _.transitions})),m=g.some(function(_){return _.transitions.length>0});if(!m)return this.next(n,r);var y=le(g.map(function(_){return _.entrySet})),v=le(Object.keys(s).map(function(_){return s[_].configuration}));return{transitions:h,entrySet:y,exitSet:le(g.map(function(_){return _.exitSet})),configuration:v,source:n,actions:le(Object.keys(s).map(function(_){return s[_].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=[],l;try{for(var d=G(this.getCandidates(s)),p=d.next();!p.done;p=d.next()){var f=p.value,g=f.cond,h=f.in,m=t.context,y=h?Y(h)&&lt(h)?t.matches(Dt(this.getStateNodeById(h).path,this.delimiter)):no(Dt(h,this.delimiter),av(this.path.slice(0,-2))(t.value)):!0,v=!1;try{v=!g||xi(this.machine,g,m,n,t)}catch(C){throw new Error("Unable to evaluate guard '".concat(g.name||g.type,"' in transition for event '").concat(s,"' in state node '").concat(this.id,`':
17
- `).concat(C.message))}if(v&&y){f.target!==void 0&&(c=f.target),u.push.apply(u,re([],z(f.actions),!1)),l=f;break}}}catch(C){r={error:C}}finally{try{p&&!p.done&&(a=d.return)&&a.call(d)}finally{if(r)throw r.error}}if(!!l){if(!c.length)return{transitions:[l],entrySet:[],exitSet:[],configuration:t.value?[this]:[],source:t,actions:u};var _=le(c.map(function(C){return i.getRelativeStateNodes(C,t.historyValue)})),S=!!l.internal,b=[];return S||c.forEach(function(C){b.push.apply(b,re([],z(i.getExternalReentryNodes(C)),!1))}),{transitions:[l],entrySet:b,exitSet:S?[]:[this],configuration:_,source:t,actions:u}}},e.prototype.getExternalReentryNodes=function(t){for(var n=[],r=z(t.order>this.order?[t,this]:[this,t],2),a=r[0],i=r[1];a&&a!==i;)n.push(a),a=a.parent;return a!==i?[]:(n.push(i),n)},e.prototype.getActions=function(t,n,r,a,i,s,u){var c,l,d,p,f=this,g=Bt([],s?this.getStateNodes(s.value):[this]);try{for(var h=G(t),m=h.next();!m.done;m=h.next()){var y=m.value;(!Vt(g,y)||Vt(r.entrySet,y.parent))&&r.entrySet.push(y)}}catch(I){c={error:I}}finally{try{m&&!m.done&&(l=h.return)&&l.call(h)}finally{if(c)throw c.error}}try{for(var v=G(g),_=v.next();!_.done;_=v.next()){var y=_.value;(!Vt(t,y)||Vt(r.exitSet,y.parent))&&r.exitSet.push(y)}}catch(I){d={error:I}}finally{try{_&&!_.done&&(p=v.return)&&p.call(v)}finally{if(d)throw d.error}}var S=le(r.entrySet.map(function(I){var B=[];if(I.type!=="final")return B;var F=I.parent;if(!F.parent)return B;B.push(un(I.id,I.doneData),un(F.id,I.doneData?In(I.doneData,a,i):void 0));var M=F.parent;return M.type==="parallel"&&jt(M).every(function(H){return bn(r.configuration,H)})&&B.push(un(M.id)),B}));r.exitSet.sort(function(I,B){return B.order-I.order}),r.entrySet.sort(function(I,B){return I.order-B.order});var b=new Set(r.entrySet),C=new Set(r.exitSet),E=Array.from(b).map(function(I){var B=I.onEntry,F=I.activities.map(function(M){return Cv(M)});return Je(u?re(re([],z(B),!1),z(F),!1):re(re([],z(F),!1),z(B),!1),f.machine.options.actions)}).concat([S.map(gv)]),A=Array.from(C).map(function(I){return Je(re(re([],z(I.onExit),!1),z(I.activities.map(function(B){return Av(B)})),!1),f.machine.options.actions)}),$=A.concat([Je(r.actions,this.machine.options.actions)]).concat(E);if(n){var k=Je(le(re([],z(t),!1).sort(function(I,B){return B.order-I.order}).map(function(I){return I.onExit})),this.machine.options.actions).filter(function(I){return I.type!==pt&&(I.type!==ht||!!I.to&&I.to!==He.Internal)});return $.concat([k])}return $},e.prototype.transition=function(t,n,r,a){t===void 0&&(t=this.initialState);var i=ve(n),s;if(t instanceof xe)s=r===void 0?t:this.resolveState(xe.from(t,r));else{var u=Y(t)?this.resolve(En(this.getResolvedPath(t))):this.resolve(t),c=r!=null?r:this.machine.context;s=this.resolveState(xe.from(u,c))}if(this.strict&&!this.events.includes(i.name)&&!sv(i.name))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(i.name,"'"));var l=this._transition(s.value,s,i)||{transitions:[],configuration:[],entrySet:[],exitSet:[],source:s,actions:[]},d=Bt([],this.getStateNodes(s.value)),p=l.configuration.length?Bt(d,l.configuration):d;return l.configuration=re([],z(p),!1),this.resolveTransition(l,s,s.context,a,i)},e.prototype.resolveRaisedTransition=function(t,n,r,a){var i,s=t.actions;return t=this.transition(t,n,void 0,a),t._event=r,t.event=r.data,(i=t.actions).unshift.apply(i,re([],z(s),!1)),t},e.prototype.resolveTransition=function(t,n,r,a,i){var s,u,c,l,d=this;i===void 0&&(i=ft);var p=t.configuration,f=!n||t.transitions.length>0,g=f?t.configuration:n?n.configuration:[],h=bn(g,this),m=f?Rv(this.machine,p):void 0,y=n?n.historyValue?n.historyValue:t.source?this.machine.historyValue(n.value):void 0:void 0,v=this.getActions(new Set(g),h,t,r,i,n,a),_=n?T({},n.activities):{};try{for(var S=G(v),b=S.next();!b.done;b=S.next()){var C=b.value;try{for(var E=(c=void 0,G(C)),A=E.next();!A.done;A=E.next()){var $=A.value;$.type===Cr?_[$.activity.id||$.activity.type]=$:$.type===Xr&&(_[$.activity.id||$.activity.type]=!1)}}catch(de){c={error:de}}finally{try{A&&!A.done&&(l=E.return)&&l.call(E)}finally{if(c)throw c.error}}}}catch(de){s={error:de}}finally{try{b&&!b.done&&(u=S.return)&&u.call(S)}finally{if(s)throw s.error}}var k=z(Tn(this,n,r,i,v,a,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),I=k[0],B=k[1],F=z(cv(I,function(de){return de.type===pt||de.type===ht&&de.to===He.Internal}),2),M=F[0],H=F[1],W=I.filter(function(de){var Ue;return de.type===Cr&&((Ue=de.activity)===null||Ue===void 0?void 0:Ue.type)===Ar}),pe=W.reduce(function(de,Ue){return de[Ue.activity.id]=kv(Ue.activity,d.machine,B,i),de},n?T({},n.children):{}),qe=new xe({value:m||n.value,context:B,_event:i,_sessionid:n?n._sessionid:null,historyValue:m?y?lv(y,m):void 0:n?n.historyValue:void 0,history:!m||t.source?n:void 0,actions:m?H:[],activities:m?_:n?n.activities:{},events:[],configuration:g,transitions:t.transitions,children:pe,done:h,tags:_a(g),machine:this}),ot=r!==B;qe.changed=i.name===to||ot;var Ne=qe.history;Ne&&delete Ne.history;var at=!h&&(this._transient||p.some(function(de){return de._transient}));if(!f&&(!at||i.name===fn))return qe;var we=qe;if(!h)for(at&&(we=this.resolveRaisedTransition(we,{type:Qg},i,a));M.length;){var Pt=M.shift();we=this.resolveRaisedTransition(we,Pt._event,i,a)}var Nt=we.changed||(Ne?!!we.actions.length||ot||typeof Ne.value!=typeof we.value||!Di(we.value,Ne.value):void 0);return we.changed=Nt,we.history=Ne,we},e.prototype.getStateNode=function(t){if(lt(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=lt(t)?t.slice(Nr.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"&&lt(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||ct;switch(this.type){case"parallel":return Ut(this.initialStateValue,function(i,s){return i?r.getStateNode(s).resolve(t[s]||i):ct});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?Ut(t,function(i,s){return i?r.getStateNode(s).resolve(i):ct}):this.initialStateValue||{};default:return t||ct}},e.prototype.getResolvedPath=function(t){if(lt(t)){var n=this.machine.idMap[t.slice(Nr.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=ya(this.states,function(r){return r.initialStateValue||ct},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=Pn(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:re([],z(r),!1),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=lt(n.target)?En(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(Pn(this))return[this];if(this.type==="compound"&&!this.initial)return[this];var n=wn(this.initialStateValue);return le(n.map(function(r){return t.getFromRelativePath(r)}))},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var n=z(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:ya(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?le(wn(a).map(function(s){return r.getFromRelativePath(s)})):r.initialStateNodes}var i=iv(r.path,"states")(t).current;return Y(i)?[r.getStateNode(i)]:le(wn(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=le(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 l=c.value,d=i[l];if(d.states)try{for(var p=(r=void 0,G(d.events)),f=p.next();!f.done;f=p.next()){var g=f.value;s.add("".concat(g))}}catch(h){r={error:h}}finally{try{f&&!f.done&&(a=p.return)&&a.call(p)}finally{if(r)throw r.error}}}}catch(h){t={error:h}}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,`':
18
- `).concat(u.message))}else return n.getStateNodeByPath(i)})},e.prototype.formatTransition=function(t){var n=this,r=mv(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=T(T({},t),{actions:Je(ke(t.actions)),cond:ki(t.cond,i),target:s,source:this,internal:a,eventType:t.event,toJSON:function(){return T(T({},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=sr,u=i[s],c=u===void 0?[]:u,l=Qr(i,[typeof s=="symbol"?s:s+""]);a=le(Object.keys(l).map(function(_){var S=ut(_,l[_]);return S}).concat(ut(sr,c)))}var d=this.config.always?ut("",this.config.always):[],p=this.config.onDone?ut(String(un(this.id)),this.config.onDone):[],f=le(this.invoke.map(function(_){var S=[];return _.onDone&&S.push.apply(S,re([],z(ut(String(_n(_.id)),_.onDone)),!1)),_.onError&&S.push.apply(S,re([],z(ut(String(Rt(_.id)),_.onError)),!1)),S})),g=this.after,h=le(re(re(re(re([],z(p),!1),z(f),!1),z(a),!1),z(d),!1).map(function(_){return ke(_).map(function(S){return r.formatTransition(S)})}));try{for(var m=G(g),y=m.next();!y.done;y=m.next()){var v=y.value;h.push(v)}}catch(_){t={error:_}}finally{try{y&&!y.done&&(n=m.return)&&n.call(m)}finally{if(t)throw t.error}}return h},e}(),Ca=!1;function Jt(e,t){return!Ti&&!e.predictableActionArguments&&!Ca&&(Ca=!0,console.warn("It is highly recommended to set `predictableActionArguments` to `true` when using `createMachine`. https://xstate.js.org/docs/guides/actions.html")),new Yv(e,t)}var Ie=Iv,so=Sv,Jv=$v,q={},uo={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});/*! *****************************************************************************
15
+ ***************************************************************************** */var T=function(){return T=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},T.apply(this,arguments)};function Qr(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 z(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 re(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 te;(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"})(te||(te={}));var He;(function(e){e.Parent="#_parent",e.Internal="#_internal"})(He||(He={}));var Cr=te.Start,Xr=te.Stop,pt=te.Raise,ht=te.Send,Ai=te.Cancel,Qg=te.NullEvent,eo=te.Assign;te.After;te.DoneState;var Ei=te.Log,Xg=te.Init,Ar=te.Invoke;te.ErrorExecution;var ga=te.ErrorPlatform,ev=te.ErrorCustom,to=te.Update,tv=te.Choose,nv=te.Pure,Ii=".",va={},Er="xstate.guard",rv="",Ti=!0,an;function no(e,t,n){n===void 0&&(n=Ii);var r=Mt(e,n),a=Mt(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?no(r[i],a[i]):!1})}function $i(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 It(e)?e:e.toString().split(t)}catch{throw new Error("'".concat(e,"' is not a valid state path."))}}function ov(e){return typeof e=="object"&&"value"in e&&"context"in e&&"event"in e&&"_event"in e}function Mt(e,t){if(ov(e))return e.value;if(It(e))return En(e);if(typeof e!="string")return e;var n=Ir(e,t);return En(n)}function En(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 Ut(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 ya(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,l=e[c];!n(l)||(i[c]=t(l,c,e))}}catch(d){r={error:d}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(r)throw r.error}}return i}var av=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 iv(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(l){r={error:l}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(r)throw r.error}}return i}}function wn(e){if(!e)return[[]];if(Y(e))return[[e]];var t=le(Object.keys(e).map(function(n){var r=e[n];return typeof r!="string"&&(!r||!Object.keys(r).length)?[[n]]:wn(e[n]).map(function(a){return[n].concat(a)})}));return t}function le(e){var t;return(t=[]).concat.apply(t,re([],z(e),!1))}function Pi(e){return It(e)?e:[e]}function ke(e){return e===void 0?[]:Pi(e)}function In(e,t,n){var r,a;if(ee(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,l=e[c];ee(l)?i[c]=l(t,n.data):i[c]=l}}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 sv(e){return/^(done|error)\./.test(e)}function wa(e){return!!(e instanceof Promise||e!==null&&(ee(e)||typeof e=="object")&&ee(e.then))}function uv(e){return e!==null&&typeof e=="object"&&"transition"in e&&typeof e.transition=="function"}function cv(e,t){var n,r,a=z([[],[]],2),i=a[0],s=a[1];try{for(var u=G(e),c=u.next();!c.done;c=u.next()){var l=c.value;t(l)?i.push(l):s.push(l)}}catch(d){n={error:d}}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 Ut(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 lv(e,t){return{current:t,states:Ni(e,t)}}function Sa(e,t,n,r){var a=e&&n.reduce(function(i,s){var u,c,l=s.assignment,d={state:r,action:s,_event:t},h={};if(ee(l))h=l(i,t.data,d);else try{for(var f=G(Object.keys(l)),g=f.next();!g.done;g=f.next()){var p=g.value,m=l[p];h[p]=ee(m)?m(i,t.data,d):m}}catch(y){u={error:y}}finally{try{g&&!g.done&&(c=f.return)&&c.call(f)}finally{if(u)throw u.error}}return Object.assign({},i,h)},e);return a}var dv=function(){};function It(e){return Array.isArray(e)}function ee(e){return typeof e=="function"}function Y(e){return typeof e=="string"}function ki(e,t){if(!!e)return Y(e)?{type:Er,name:e,predicate:t?t[e]:void 0}:ee(e)?{type:Er,name:e.name,predicate:e}:e}function fv(e){try{return"subscribe"in e&&ee(e.subscribe)}catch{return!1}}var Ye=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();an={},an[Ye]=function(){return this},an[Symbol.observable]=function(){return this};function mt(e){return!!e&&"__xstatenode"in e}function pv(e){return!!e&&typeof e.send=="function"}var hv=function(){var e=0;return function(){return e++,e.toString(16)}}();function ro(e,t){return Y(e)||typeof e=="number"?T({type:e},t):e}function ve(e,t){if(!Y(e)&&"$$type"in e&&e.$$type==="scxml")return e;var n=ro(e);return T({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function ut(e,t){var n=Pi(t).map(function(r){return typeof r=="undefined"||typeof r=="string"||mt(r)?{target:r,event:e}:T(T({},r),{event:e})});return n}function mv(e){if(!(e===void 0||e===rv))return ke(e)}function xi(e,t,n,r,a){var i=e.options.guards,s={state:a,cond:t,_event:r};if(t.type===Er)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 Sn(e,t,n){var r=function(){},a=typeof e=="object",i=a?e:null;return{next:((a?e.next:e)||r).bind(i),error:((a?e.error:t)||r).bind(i),complete:((a?e.complete:n)||r).bind(i)}}function sn(e,t){return"".concat(e,":invocation[").concat(t,"]")}var ft=ve({type:Xg});function Tr(e,t){return t&&t[e]||void 0}function Lt(e,t){var n;if(Y(e)||typeof e=="number"){var r=Tr(e,t);ee(r)?n={type:e,exec:r}:r?n=r:n={type:e,exec:void 0}}else if(ee(e))n={type:e.name||e.toString(),exec:e};else{var r=Tr(e.type,t);if(ee(r))n=T(T({},e),{exec:r});else if(r){var a=r.type||e.type;n=T(T(T({},r),e),{type:a})}else n=e}return n}var Je=function(e,t){if(!e)return[];var n=It(e)?e:[e];return n.map(function(r){return Lt(r,t)})};function oo(e){var t=Lt(e);return T(T({id:Y(e)?e:t.id},t),{type:t.type})}function gv(e){return Y(e)?{type:pt,event:e}:Hn(e,{to:He.Internal})}function vv(e){return{type:pt,_event:ve(e.event)}}function Hn(e,t){return{to:t?t.to:void 0,type:ht,event:ee(e)?e:ro(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:ee(e)?e.name:$i(e)}}function yv(e,t,n,r){var a={_event:n},i=ve(ee(e.event)?e.event(t,n.data,a):e.event),s;if(Y(e.delay)){var u=r&&r[e.delay];s=ee(u)?u(t,n.data,a):u}else s=ee(e.delay)?e.delay(t,n.data,a):e.delay;var c=ee(e.to)?e.to(t,n.data,a):e.to;return T(T({},e),{to:c,_event:i,event:i.data,delay:s})}function wv(e,t){return Hn(e,T(T({},t),{to:He.Parent}))}function Sv(){return wv(to)}var _v=function(e,t,n){return T(T({},e),{value:Y(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})},bv=function(e){return{type:Ai,sendId:e}};function Cv(e){var t=oo(e);return{type:te.Start,activity:t,exec:void 0}}function Av(e){var t=ee(e)?e:oo(e);return{type:te.Stop,activity:t,exec:void 0}}function Ev(e,t,n){var r=ee(e.activity)?e.activity(t,n.data):e.activity,a=typeof r=="string"?{id:r}:r,i={type:te.Stop,activity:a};return i}var Iv=function(e){return{type:eo,assignment:e}};function Tv(e,t){var n=t?"#".concat(t):"";return"".concat(te.After,"(").concat(e,")").concat(n)}function un(e,t){var n="".concat(te.DoneState,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function _n(e,t){var n="".concat(te.DoneInvoke,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Rt(e,t){var n="".concat(te.ErrorPlatform,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function $v(e,t){return Hn(function(n,r){return r},T(T({},t),{to:e}))}var Pv=function(e){var t,n,r=[];try{for(var a=G(e),i=a.next();!i.done;i=a.next())for(var s=i.value,u=0;u<s.length;){if(s[u].type===eo){r.push(s[u]),s.splice(u,1);continue}u++}}catch(c){t={error:c}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r};function Tn(e,t,n,r,a,i,s){s===void 0&&(s=!1);var u=s?[]:Pv(a),c=u.length?Sa(n,r,u,t):n,l=s?[n]:void 0,d=[];function h(p){var m;switch(p.type){case pt:return vv(p);case ht:var y=yv(p,c,r,e.options.delays);return i&&y.to!==He.Internal&&d.push(y),y;case Ei:{var v=_v(p,c,r);return i==null||i(v,c,r),v}case tv:{var _=p,S=(m=_.conds.find(function(D){var H=ki(D.cond,e.options.guards);return!H||xi(e,H,c,r,i?void 0:t)}))===null||m===void 0?void 0:m.actions;if(!S)return[];var b=z(Tn(e,t,c,r,[Je(ke(S),e.options.actions)],i,s),2),C=b[0],E=b[1];return c=E,l==null||l.push(c),C}case nv:{var S=p.get(c,r.data);if(!S)return[];var A=z(Tn(e,t,c,r,[Je(ke(S),e.options.actions)],i,s),2),$=A[0],k=A[1];return c=k,l==null||l.push(c),$}case Xr:{var v=Ev(p,c,r);return i==null||i(v,n,r),v}case eo:{c=Sa(c,r,[p],i?void 0:t),l==null||l.push(c);break}default:var I=Lt(p,e.options.actions),B=I.exec;if(i)i(I,c,r);else if(B&&l){var F=l.length-1;I=T(T({},I),{exec:function(D){for(var H=[],W=1;W<arguments.length;W++)H[W-1]=arguments[W];B.apply(void 0,re([l[F]],z(H),!1))}})}return I}}function f(p){var m,y,v=[];try{for(var _=G(p),S=_.next();!S.done;S=_.next()){var b=S.value,C=h(b);C&&(v=v.concat(C))}}catch(E){m={error:E}}finally{try{S&&!S.done&&(y=_.return)&&y.call(_)}finally{if(m)throw m.error}}return d.forEach(function(E){i(E,c,r)}),d.length=0,v}var g=le(a.map(f));return[g,c]}var $n=[],dt=function(e,t){$n.push(e);var n=t(e);return $n.pop(),n},Nv=function(e){return e($n[$n.length-1])};function Ui(e){var t;return t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}},t[Ye]=function(){return this},t}function kv(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?In(e.data,n,r):void 0,c=s?ao(s,e.id,u):Ui(e.id);return c.meta=e,c}function ao(e,t,n){var r=Ui(t);if(r.deferred=!0,mt(e)){var a=r.state=dt(void 0,function(){return(n?e.withContext(n):e).initialState});r.getSnapshot=function(){return a}}return r}function xv(e){try{return typeof e.send=="function"}catch{return!1}}function Ov(e){return xv(e)&&"id"in e}function Uv(e){var t;return T((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}},t[Ye]=function(){return this},t),e)}var Pn=function(e){return e.type==="atomic"||e.type==="final"};function Ri(e){return Object.keys(e.states).map(function(t){return e.states[t]})}function jt(e){return Ri(e).filter(function(t){return t.type!=="history"})}function Bi(e){var t=[e];return Pn(e)?t:t.concat(le(jt(e).map(Bi)))}function Bt(e,t){var n,r,a,i,s,u,c,l,d=new Set(e),h=$r(d),f=new Set(t);try{for(var g=G(f),p=g.next();!p.done;p=g.next())for(var m=p.value,y=m.parent;y&&!f.has(y);)f.add(y),y=y.parent}catch(k){n={error:k}}finally{try{p&&!p.done&&(r=g.return)&&r.call(g)}finally{if(n)throw n.error}}var v=$r(f);try{for(var _=G(f),S=_.next();!S.done;S=_.next()){var m=S.value;if(m.type==="compound"&&(!v.get(m)||!v.get(m).length))h.get(m)?h.get(m).forEach(function(I){return f.add(I)}):m.initialStateNodes.forEach(function(I){return f.add(I)});else if(m.type==="parallel")try{for(var b=(s=void 0,G(jt(m))),C=b.next();!C.done;C=b.next()){var E=C.value;f.has(E)||(f.add(E),h.get(E)?h.get(E).forEach(function(I){return f.add(I)}):E.initialStateNodes.forEach(function(I){return f.add(I)}))}}catch(I){s={error:I}}finally{try{C&&!C.done&&(u=b.return)&&u.call(b)}finally{if(s)throw s.error}}}}catch(k){a={error:k}}finally{try{S&&!S.done&&(i=_.return)&&i.call(_)}finally{if(a)throw a.error}}try{for(var A=G(f),$=A.next();!$.done;$=A.next())for(var m=$.value,y=m.parent;y&&!f.has(y);)f.add(y),y=y.parent}catch(k){c={error:k}}finally{try{$&&!$.done&&(l=A.return)&&l.call(A)}finally{if(c)throw c.error}}return f}function Vi(e,t){var n=t.get(e);if(!n)return{};if(e.type==="compound"){var r=n[0];if(r){if(Pn(r))return r.key}else return{}}var a={};return n.forEach(function(i){a[i.key]=Vi(i,t)}),a}function $r(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 Rv(e,t){var n=Bt([e],t);return Vi(e,$r(n))}function Vt(e,t){return Array.isArray(e)?e.some(function(n){return n===t}):e instanceof Set?e.has(t):!1}function Bv(e){return re([],z(new Set(le(re([],z(e.map(function(t){return t.ownEvents})),!1)))),!1)}function bn(e,t){return t.type==="compound"?jt(t).some(function(n){return n.type==="final"&&Vt(e,n)}):t.type==="parallel"?jt(t).every(function(n){return bn(e,n)}):!1}function Vv(e){return e===void 0&&(e=[]),e.reduce(function(t,n){return n.meta!==void 0&&(t[n.id]=n.meta),t},{})}function _a(e){return new Set(le(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 Mv(e){return typeof e!="object"||e===null?!1:"value"in e&&"_event"in e}function Dv(e,t){var n=e.exec,r=T(T({},e),{exec:n!==void 0?function(){return n(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0});return r}var xe=function(){function e(t){var n=this,r;this.actions=[],this.activities=va,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||va,this.meta=Vv(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 Bv(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=ft;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=ft;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,re([],z(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=Qr(t,["configuration","transitions","tags","machine"]);return T(T({},r),{tags:Array.from(n)})},e.prototype.matches=function(t){return no(t,this.value)},e.prototype.hasTag=function(t){return this.tags.has(t)},e.prototype.can=function(t){var n;Ti&&dv(!!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}(),Fv={deferEvents:!1},ba=function(){function e(t){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=T(T({},Fv),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}(),ir=new Map,Lv=0,cn={bookId:function(){return"x:".concat(Lv++)},register:function(e,t){return ir.set(e,t),e},get:function(e){return ir.get(e)},free:function(e){ir.delete(e)}};function io(){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 jv(){var e=io();if(e&&"__xstate__"in e)return e.__xstate__}function zv(e){if(!!io()){var t=jv();t&&t.register(e)}}function Gv(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 l=a.shift();n=e.transition(n,l,c),r.forEach(function(d){return d.next(n)})}i=!1}},u=Uv({id:t.id,send:function(l){a.push(l),s()},getSnapshot:function(){return n},subscribe:function(l,d,h){var f=Sn(l,d,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 Pr={sync:!1,autoForward:!1},ge;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(ge||(ge={}));var Hv=function(){function e(t,n){n===void 0&&(n=e.defaultOptions);var r=this;this.machine=t,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=ge.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(d,h){if(It(d))return r.batch(d),r.state;var f=ve(ro(d,h));if(r.status===ge.Stopped)return r.state;if(r.status!==ge.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.
16
+ Event: `).concat(JSON.stringify(f.data)));return r.scheduler.schedule(function(){r.forward(f);var g=r._nextState(f);r.update(g,f)}),r._state},this.sendTo=function(d,h,f){var g=r.parent&&(h===He.Parent||r.parent.id===h),p=g?r.parent:Y(h)?r.children.get(h)||cn.get(h):pv(h)?h:void 0;if(!p){if(!g)throw new Error("Unable to send event to child '".concat(h,"' from service '").concat(r.id,"'."));return}if("machine"in p){if(r.status!==ge.Stopped||r.parent!==p||r.state.done){var m=T(T({},d),{name:d.name===ev?"".concat(Rt(r.id)):d.name,origin:r.sessionId});!f&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([p,m]):p.send(m)}}else!f&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([p,d.data]):p.send(d.data)},this._exec=function(d,h,f,g){g===void 0&&(g=r.machine.options.actions);var p=d.exec||Tr(d.type,g),m=ee(p)?p:p?p.exec:d.exec;if(m)try{return m(h,f.data,r.machine.config.predictableActionArguments?{action:d,_event:f}:{action:d,state:r.state,_event:f})}catch(F){throw r.parent&&r.parent.send({type:"xstate.error",data:F}),F}switch(d.type){case ht:var y=d;if(typeof y.delay=="number"){r.defer(y);return}else y.to?r.sendTo(y._event,y.to,f===ft):r.send(y._event);break;case Ai:r.cancel(d.sendId);break;case Cr:{if(r.status!==ge.Running)return;var v=d.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[v.id||v.type])break;if(v.type===te.Invoke){var _=Oi(v.src),S=r.machine.options.services?r.machine.options.services[_.type]:void 0,b=v.id,C=v.data,E="autoForward"in v?v.autoForward:!!v.forward;if(!S)return;var A=C?In(C,h,f):void 0;if(typeof S=="string")return;var $=ee(S)?S(h,f.data,{data:A,src:_,meta:v.meta}):S;if(!$)return;var k=void 0;mt($)&&($=A?$.withContext(A):$,k={autoForward:E}),r.spawn($,b,k)}else r.spawnActivity(v);break}case Xr:{r.stopChild(d.activity.id);break}case Ei:var I=d.label,B=d.value;I?r.logger(I,B):r.logger(B);break}};var a=T(T({},e.defaultOptions),n),i=a.clock,s=a.logger,u=a.parent,c=a.id,l=c!==void 0?c:t.id;this.id=l,this.logger=s,this.clock=i,this.parent=u,this.options=a,this.scheduler=new ba({deferEvents:this.options.deferEvents}),this.sessionId=cn.bookId()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:dt(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,l,d,h=this;if(t._sessionid=this.sessionId,this._state=t,(!this.machine.config.predictableActionArguments||n===ft)&&this.options.execute)this.execute(this.state);else for(var f=void 0;f=this._outgoingQueue.shift();)f[0].send(f[1]);if(this.children.forEach(function(k){h.state.children[k.id]=k}),this.devTools&&this.devTools.send(n.data,t),t.event)try{for(var g=G(this.eventListeners),p=g.next();!p.done;p=g.next()){var m=p.value;m(t.event)}}catch(k){r={error:k}}finally{try{p&&!p.done&&(a=g.return)&&a.call(g)}finally{if(r)throw r.error}}try{for(var y=G(this.listeners),v=y.next();!v.done;v=y.next()){var m=v.value;m(t,t.event)}}catch(k){i={error:k}}finally{try{v&&!v.done&&(s=y.return)&&s.call(y)}finally{if(i)throw i.error}}try{for(var _=G(this.contextListeners),S=_.next();!S.done;S=_.next()){var b=S.value;b(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(k){u={error:k}}finally{try{S&&!S.done&&(c=_.return)&&c.call(_)}finally{if(u)throw u.error}}if(this.state.done){var C=t.configuration.find(function(k){return k.type==="final"&&k.parent===h.machine}),E=C&&C.doneData?In(C.doneData,t.context,n):void 0;try{for(var A=G(this.doneListeners),$=A.next();!$.done;$=A.next()){var m=$.value;m(_n(this.id,E))}}catch(k){l={error:k}}finally{try{$&&!$.done&&(d=A.return)&&d.call(A)}finally{if(l)throw l.error}}this._stop(),this._stopChildren()}},e.prototype.onTransition=function(t){return this.listeners.add(t),this.status===ge.Running&&t(this.state,this.state.event),this},e.prototype.subscribe=function(t,n,r){var a=this,i=Sn(t,n,r);this.listeners.add(i.next),this.status!==ge.NotStarted&&i.next(this.state);var s=function(){a.doneListeners.delete(s),a.stopListeners.delete(s),i.complete()};return this.status===ge.Stopped?i.complete():(this.onDone(s),this.onStop(s)),{unsubscribe:function(){a.listeners.delete(i.next),a.doneListeners.delete(s),a.stopListeners.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===ge.Running)return this;this.machine._init(),cn.register(this.sessionId,this),this.initialized=!0,this.status=ge.Running;var r=t===void 0?this.initialState:dt(this,function(){return Mv(t)?n.machine.resolveState(t):n.machine.resolveState(xe.from(t,n.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){n.update(r,ft)}),this},e.prototype._stopChildren=function(){this.children.forEach(function(t){ee(t.stop)&&t.stop()}),this.children.clear()},e.prototype._stop=function(){var t,n,r,a,i,s,u,c,l,d;try{for(var h=G(this.listeners),f=h.next();!f.done;f=h.next()){var g=f.value;this.listeners.delete(g)}}catch(A){t={error:A}}finally{try{f&&!f.done&&(n=h.return)&&n.call(h)}finally{if(t)throw t.error}}try{for(var p=G(this.stopListeners),m=p.next();!m.done;m=p.next()){var g=m.value;g(),this.stopListeners.delete(g)}}catch(A){r={error:A}}finally{try{m&&!m.done&&(a=p.return)&&a.call(p)}finally{if(r)throw r.error}}try{for(var y=G(this.contextListeners),v=y.next();!v.done;v=y.next()){var g=v.value;this.contextListeners.delete(g)}}catch(A){i={error:A}}finally{try{v&&!v.done&&(s=y.return)&&s.call(y)}finally{if(i)throw i.error}}try{for(var _=G(this.doneListeners),S=_.next();!S.done;S=_.next()){var g=S.value;this.doneListeners.delete(g)}}catch(A){u={error:A}}finally{try{S&&!S.done&&(c=_.return)&&c.call(_)}finally{if(u)throw u.error}}if(!this.initialized)return this;this.initialized=!1,this.status=ge.Stopped,this._initialState=void 0;try{for(var b=G(Object.keys(this.delayedEventsMap)),C=b.next();!C.done;C=b.next()){var E=C.value;this.clock.clearTimeout(this.delayedEventsMap[E])}}catch(A){l={error:A}}finally{try{C&&!C.done&&(d=b.return)&&d.call(b)}finally{if(l)throw l.error}}this.scheduler.clear(),this.scheduler=new ba({deferEvents:this.options.deferEvents})},e.prototype.stop=function(){var t=this,n=this.scheduler;return this._stop(),n.schedule(function(){var r=ve({type:"xstate.stop"}),a=dt(t,function(){var i=le(re([],z(t.state.configuration),!1).sort(function(d,h){return h.order-d.order}).map(function(d){return Je(d.onExit,t.machine.options.actions)})),s=z(Tn(t.machine,t.state,t.state.context,r,[i],t.machine.config.predictableActionArguments?t._exec:void 0,t.machine.config.predictableActionArguments||t.machine.config.preserveActionOrder),2),u=s[0],c=s[1],l=new xe({value:t.state.value,context:c,_event:r,_sessionid:t.sessionId,historyValue:void 0,history:t.state,actions:u.filter(function(d){return d.type!==pt&&(d.type!==ht||!!d.to&&d.to!==He.Internal)}),activities:{},events:[],configuration:[],transitions:[],children:{},done:t.state.done,tags:t.state.tags,machine:t.machine});return l.changed=!0,l});t.update(a,r),t._stopChildren(),cn.free(t.sessionId)}),this},e.prototype.batch=function(t){var n=this;if(!(this.status===ge.NotStarted&&this.options.deferEvents)){if(this.status!==ge.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.'))}if(!!t.length){var r=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule(function(){var a,i,s=n.state,u=!1,c=[],l=function(g){var p=ve(g);n.forward(p),s=dt(n,function(){return n.machine.transition(s,p,void 0,r||void 0)}),c.push.apply(c,re([],z(n.machine.config.predictableActionArguments?s.actions:s.actions.map(function(m){return Dv(m,s)})),!1)),u=u||!!s.changed};try{for(var d=G(t),h=d.next();!h.done;h=d.next()){var f=h.value;l(f)}}catch(g){a={error:g}}finally{try{h&&!h.done&&(i=d.return)&&i.call(d)}finally{if(a)throw a.error}}s.changed=u,s.actions=c,n.update(s,ve(t[t.length-1]))})}},e.prototype.sender=function(t){return this.send.bind(this,t)},e.prototype._nextState=function(t,n){var r=this;n===void 0&&(n=!!this.machine.config.predictableActionArguments&&this._exec);var a=ve(t);if(a.name.indexOf(ga)===0&&!this.state.nextEvents.some(function(s){return s.indexOf(ga)===0}))throw a.data.data;var i=dt(this,function(){return r.machine.transition(r.state,a,void 0,n||void 0)});return i},e.prototype.nextState=function(t){return this._nextState(t,!1)},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,!0):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),this._exec(t,n.context,n._event,r)},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),ee(n.stop)&&n.stop())},e.prototype.spawn=function(t,n,r){if(this.status!==ge.Running)return ao(t,n);if(wa(t))return this.spawnPromise(Promise.resolve(t),n);if(ee(t))return this.spawnCallback(t,n);if(Ov(t))return this.spawnActor(t,n);if(fv(t))return this.spawnObservable(t,n);if(mt(t))return this.spawnMachine(t,T(T({},r),{id:n}));if(uv(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,T(T({},this.options),{parent:this,id:n.id||t.id})),i=T(T({},Pr),n);i.sync&&a.onTransition(function(u){r.send(to,{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=Gv(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(_n(n,c),{origin:n})))},function(c){if(!i){a.removeChild(n);var l=Rt(n,c);try{a.send(ve(l,{origin:n}))}catch{a.devTools&&a.devTools.send(l,a.state),a.machine.strict&&a.stop()}}});var u=(r={id:n,send:function(){},subscribe:function(c,l,d){var h=Sn(c,l,d),f=!1;return t.then(function(g){f||(h.next(g),!f&&h.complete())},function(g){f||h.error(g)}),{unsubscribe:function(){return f=!0}}},stop:function(){i=!0},toJSON:function(){return{id:n}},getSnapshot:function(){return s}},r[Ye]=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,l=function(f){c=f,u.forEach(function(g){return g(f)}),!i&&a.send(ve(f,{origin:n}))},d;try{d=t(l,function(f){s.add(f)})}catch(f){this.send(Rt(n,f))}if(wa(d))return this.spawnPromise(d,n);var h=(r={id:n,send:function(f){return s.forEach(function(g){return g(f)})},subscribe:function(f){var g=Sn(f);return u.add(g.next),{unsubscribe:function(){u.delete(g.next)}}},stop:function(){i=!0,ee(d)&&d()},toJSON:function(){return{id:n}},getSnapshot:function(){return c}},r[Ye]=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(Rt(n,c),{origin:n}))},function(){a.removeChild(n),a.send(ve(_n(n),{origin:n}))}),u=(r={id:n,send:function(){},subscribe:function(c,l,d){return t.subscribe(c,l,d)},stop:function(){return s.unsubscribe()},getSnapshot:function(){return i},toJSON:function(){return{id:n}}},r[Ye]=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[Ye]=function(){return this},r))},e.prototype.attachDev=function(){var t=io();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(T(T({name:this.id,autoPause:!0,stateSanitizer:function(r){return{value:r.value,context:r.context,actions:r.actions}}},n),{features:T({jump:!1,skip:!1},n?n.features:void 0)}),this.machine),this.devTools.init(this.state)}zv(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[Ye]=function(){return this},e.prototype.getSnapshot=function(){return this.status===ge.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=Di,e}(),Kv=function(e){return Y(e)?T(T({},Pr),{name:e}):T(T(T({},Pr),{name:hv()}),e)};function ln(e,t){var n=Kv(t);return Nv(function(r){return r?r.spawn(e,n.name,n):ao(e,n.name)})}function Di(e,t){var n=new Hv(e,t);return n}function qv(e){if(typeof e=="string"){var t={type:e};return t.toString=function(){return e},t}return e}function dn(e){return T(T({type:Ar},e),{toJSON:function(){e.onDone,e.onError;var t=Qr(e,["onDone","onError"]);return T(T({},t),{type:Ar,src:qv(e.src)})}})}var fn="",Nr="#",sr="*",ct={},lt=function(e){return e[0]===Nr},Wv=function(){return{actions:{},guards:{},services:{},activities:{},delays:{}}},Yv=function(){function e(t,n,r,a){r===void 0&&(r="context"in t?t.context:void 0);var i=this,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(Wv(),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:Ii),this.id=this.config.id||re([this.machine.key],z(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?Ut(this.config.states,function(l,d){var h,f=new e(l,{},void 0,{parent:i,key:d});return Object.assign(i.idMap,T((h={},h[f.id]=f,h),f.idMap)),f}):ct;var u=0;function c(l){var d,h;l.order=u++;try{for(var f=G(Ri(l)),g=f.next();!g.done;g=f.next()){var p=g.value;c(p)}}catch(m){d={error:m}}finally{try{g&&!g.done&&(h=f.return)&&h.call(f)}finally{if(d)throw d.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(l){var d=l.event;return d===fn}):fn in this.config.on:!1),this.strict=!!this.config.strict,this.onEntry=ke(this.config.entry||this.config.onEntry).map(function(l){return Lt(l)}),this.onExit=ke(this.config.exit||this.config.onExit).map(function(l){return Lt(l)}),this.meta=this.config.meta,this.doneData=this.type==="final"?this.config.data:void 0,this.invoke=ke(this.config.invoke).map(function(l,d){var h,f;if(mt(l)){var g=sn(i.id,d);return i.machine.options.services=T((h={},h[g]=l,h),i.machine.options.services),dn({src:g,id:g})}else if(Y(l.src)){var g=l.id||sn(i.id,d);return dn(T(T({},l),{id:g,src:l.src}))}else if(mt(l.src)||ee(l.src)){var g=l.id||sn(i.id,d);return i.machine.options.services=T((f={},f[g]=l.src,f),i.machine.options.services),dn(T(T({id:g},l),{src:g}))}else{var p=l.src;return dn(T(T({id:sn(i.id,d)},l),{src:p}))}}),this.activities=ke(this.config.activities).concat(this.invoke).map(function(l){return oo(l)}),this.transition=this.transition.bind(this),this.tags=ke(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||Bi(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:T(T({},a),t.actions),activities:T(T({},i),t.activities),guards:T(T({},s),t.guards),services:T(T({},u),t.services),delays:T(T({},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 ee(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:Ut(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===fn,r=this.transitions.filter(function(a){var i=a.eventType===t;return n?i:i||a.eventType===sr});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=ee(i)?"".concat(t.id,":delay[").concat(s,"]"):i,c=Tv(u,t.id);return t.onEntry.push(Hn(c,{delay:i})),t.onExit.push(bv(c)),c},a=It(n)?n.map(function(i,s){var u=r(i.delay,s);return T(T({},i),{event:u})}):le(Object.keys(n).map(function(i,s){var u=n[i],c=Y(u)?{target:u}:u,l=isNaN(+i)?i:+i,d=r(l,s);return ke(c).map(function(h){return T(T({},h),{event:d,delay:l})})}));return a.map(function(i){var s=i.delay;return T(T({},t.formatTransition(i)),{delay:s})})},e.prototype.getStateNodes=function(t){var n,r=this;if(!t)return[];var a=t instanceof xe?t.value:Mt(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,re([],z(le(s.map(function(c){return r.getStateNode(c).getStateNodes(a[c])}))),!1)),u},e.prototype.handles=function(t){var n=$i(t);return this.events.includes(n)},e.prototype.resolveState=function(t){var n=t instanceof xe?t:xe.create(t),r=Array.from(Bt([],this.getStateNodes(n.value)));return new xe(T(T({},n),{value:this.resolve(n.value),configuration:r,done:bn(r,this),tags:_a(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 l=c.value,d=t[l];if(!!d){var h=this.getStateNode(l),f=h._transition(d,n,r);f&&(s[l]=f)}}}catch(_){a={error:_}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(a)throw a.error}}var g=Object.keys(s).map(function(_){return s[_]}),p=le(g.map(function(_){return _.transitions})),m=g.some(function(_){return _.transitions.length>0});if(!m)return this.next(n,r);var y=le(g.map(function(_){return _.entrySet})),v=le(Object.keys(s).map(function(_){return s[_].configuration}));return{transitions:p,entrySet:y,exitSet:le(g.map(function(_){return _.exitSet})),configuration:v,source:n,actions:le(Object.keys(s).map(function(_){return s[_].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=[],l;try{for(var d=G(this.getCandidates(s)),h=d.next();!h.done;h=d.next()){var f=h.value,g=f.cond,p=f.in,m=t.context,y=p?Y(p)&&lt(p)?t.matches(Mt(this.getStateNodeById(p).path,this.delimiter)):no(Mt(p,this.delimiter),av(this.path.slice(0,-2))(t.value)):!0,v=!1;try{v=!g||xi(this.machine,g,m,n,t)}catch(C){throw new Error("Unable to evaluate guard '".concat(g.name||g.type,"' in transition for event '").concat(s,"' in state node '").concat(this.id,`':
17
+ `).concat(C.message))}if(v&&y){f.target!==void 0&&(c=f.target),u.push.apply(u,re([],z(f.actions),!1)),l=f;break}}}catch(C){r={error:C}}finally{try{h&&!h.done&&(a=d.return)&&a.call(d)}finally{if(r)throw r.error}}if(!!l){if(!c.length)return{transitions:[l],entrySet:[],exitSet:[],configuration:t.value?[this]:[],source:t,actions:u};var _=le(c.map(function(C){return i.getRelativeStateNodes(C,t.historyValue)})),S=!!l.internal,b=[];return S||c.forEach(function(C){b.push.apply(b,re([],z(i.getExternalReentryNodes(C)),!1))}),{transitions:[l],entrySet:b,exitSet:S?[]:[this],configuration:_,source:t,actions:u}}},e.prototype.getExternalReentryNodes=function(t){for(var n=[],r=z(t.order>this.order?[t,this]:[this,t],2),a=r[0],i=r[1];a&&a!==i;)n.push(a),a=a.parent;return a!==i?[]:(n.push(i),n)},e.prototype.getActions=function(t,n,r,a,i,s,u){var c,l,d,h,f=this,g=Bt([],s?this.getStateNodes(s.value):[this]);try{for(var p=G(t),m=p.next();!m.done;m=p.next()){var y=m.value;(!Vt(g,y)||Vt(r.entrySet,y.parent))&&r.entrySet.push(y)}}catch(I){c={error:I}}finally{try{m&&!m.done&&(l=p.return)&&l.call(p)}finally{if(c)throw c.error}}try{for(var v=G(g),_=v.next();!_.done;_=v.next()){var y=_.value;(!Vt(t,y)||Vt(r.exitSet,y.parent))&&r.exitSet.push(y)}}catch(I){d={error:I}}finally{try{_&&!_.done&&(h=v.return)&&h.call(v)}finally{if(d)throw d.error}}var S=le(r.entrySet.map(function(I){var B=[];if(I.type!=="final")return B;var F=I.parent;if(!F.parent)return B;B.push(un(I.id,I.doneData),un(F.id,I.doneData?In(I.doneData,a,i):void 0));var D=F.parent;return D.type==="parallel"&&jt(D).every(function(H){return bn(r.configuration,H)})&&B.push(un(D.id)),B}));r.exitSet.sort(function(I,B){return B.order-I.order}),r.entrySet.sort(function(I,B){return I.order-B.order});var b=new Set(r.entrySet),C=new Set(r.exitSet),E=Array.from(b).map(function(I){var B=I.onEntry,F=I.activities.map(function(D){return Cv(D)});return Je(u?re(re([],z(B),!1),z(F),!1):re(re([],z(F),!1),z(B),!1),f.machine.options.actions)}).concat([S.map(gv)]),A=Array.from(C).map(function(I){return Je(re(re([],z(I.onExit),!1),z(I.activities.map(function(B){return Av(B)})),!1),f.machine.options.actions)}),$=A.concat([Je(r.actions,this.machine.options.actions)]).concat(E);if(n){var k=Je(le(re([],z(t),!1).sort(function(I,B){return B.order-I.order}).map(function(I){return I.onExit})),this.machine.options.actions).filter(function(I){return I.type!==pt&&(I.type!==ht||!!I.to&&I.to!==He.Internal)});return $.concat([k])}return $},e.prototype.transition=function(t,n,r,a){t===void 0&&(t=this.initialState);var i=ve(n),s;if(t instanceof xe)s=r===void 0?t:this.resolveState(xe.from(t,r));else{var u=Y(t)?this.resolve(En(this.getResolvedPath(t))):this.resolve(t),c=r!=null?r:this.machine.context;s=this.resolveState(xe.from(u,c))}if(this.strict&&!this.events.includes(i.name)&&!sv(i.name))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(i.name,"'"));var l=this._transition(s.value,s,i)||{transitions:[],configuration:[],entrySet:[],exitSet:[],source:s,actions:[]},d=Bt([],this.getStateNodes(s.value)),h=l.configuration.length?Bt(d,l.configuration):d;return l.configuration=re([],z(h),!1),this.resolveTransition(l,s,s.context,a,i)},e.prototype.resolveRaisedTransition=function(t,n,r,a){var i,s=t.actions;return t=this.transition(t,n,void 0,a),t._event=r,t.event=r.data,(i=t.actions).unshift.apply(i,re([],z(s),!1)),t},e.prototype.resolveTransition=function(t,n,r,a,i){var s,u,c,l,d=this;i===void 0&&(i=ft);var h=t.configuration,f=!n||t.transitions.length>0,g=f?t.configuration:n?n.configuration:[],p=bn(g,this),m=f?Rv(this.machine,h):void 0,y=n?n.historyValue?n.historyValue:t.source?this.machine.historyValue(n.value):void 0:void 0,v=this.getActions(new Set(g),p,t,r,i,n,a),_=n?T({},n.activities):{};try{for(var S=G(v),b=S.next();!b.done;b=S.next()){var C=b.value;try{for(var E=(c=void 0,G(C)),A=E.next();!A.done;A=E.next()){var $=A.value;$.type===Cr?_[$.activity.id||$.activity.type]=$:$.type===Xr&&(_[$.activity.id||$.activity.type]=!1)}}catch(de){c={error:de}}finally{try{A&&!A.done&&(l=E.return)&&l.call(E)}finally{if(c)throw c.error}}}}catch(de){s={error:de}}finally{try{b&&!b.done&&(u=S.return)&&u.call(S)}finally{if(s)throw s.error}}var k=z(Tn(this,n,r,i,v,a,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),I=k[0],B=k[1],F=z(cv(I,function(de){return de.type===pt||de.type===ht&&de.to===He.Internal}),2),D=F[0],H=F[1],W=I.filter(function(de){var Ue;return de.type===Cr&&((Ue=de.activity)===null||Ue===void 0?void 0:Ue.type)===Ar}),pe=W.reduce(function(de,Ue){return de[Ue.activity.id]=kv(Ue.activity,d.machine,B,i),de},n?T({},n.children):{}),qe=new xe({value:m||n.value,context:B,_event:i,_sessionid:n?n._sessionid:null,historyValue:m?y?lv(y,m):void 0:n?n.historyValue:void 0,history:!m||t.source?n:void 0,actions:m?H:[],activities:m?_:n?n.activities:{},events:[],configuration:g,transitions:t.transitions,children:pe,done:p,tags:_a(g),machine:this}),ot=r!==B;qe.changed=i.name===to||ot;var Ne=qe.history;Ne&&delete Ne.history;var at=!p&&(this._transient||h.some(function(de){return de._transient}));if(!f&&(!at||i.name===fn))return qe;var we=qe;if(!p)for(at&&(we=this.resolveRaisedTransition(we,{type:Qg},i,a));D.length;){var Pt=D.shift();we=this.resolveRaisedTransition(we,Pt._event,i,a)}var Nt=we.changed||(Ne?!!we.actions.length||ot||typeof Ne.value!=typeof we.value||!Mi(we.value,Ne.value):void 0);return we.changed=Nt,we.history=Ne,we},e.prototype.getStateNode=function(t){if(lt(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=lt(t)?t.slice(Nr.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"&&lt(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||ct;switch(this.type){case"parallel":return Ut(this.initialStateValue,function(i,s){return i?r.getStateNode(s).resolve(t[s]||i):ct});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?Ut(t,function(i,s){return i?r.getStateNode(s).resolve(i):ct}):this.initialStateValue||{};default:return t||ct}},e.prototype.getResolvedPath=function(t){if(lt(t)){var n=this.machine.idMap[t.slice(Nr.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=ya(this.states,function(r){return r.initialStateValue||ct},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=Pn(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:re([],z(r),!1),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=lt(n.target)?En(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(Pn(this))return[this];if(this.type==="compound"&&!this.initial)return[this];var n=wn(this.initialStateValue);return le(n.map(function(r){return t.getFromRelativePath(r)}))},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var n=z(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:ya(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?le(wn(a).map(function(s){return r.getFromRelativePath(s)})):r.initialStateNodes}var i=iv(r.path,"states")(t).current;return Y(i)?[r.getStateNode(i)]:le(wn(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=le(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 l=c.value,d=i[l];if(d.states)try{for(var h=(r=void 0,G(d.events)),f=h.next();!f.done;f=h.next()){var g=f.value;s.add("".concat(g))}}catch(p){r={error:p}}finally{try{f&&!f.done&&(a=h.return)&&a.call(h)}finally{if(r)throw r.error}}}}catch(p){t={error:p}}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,`':
18
+ `).concat(u.message))}else return n.getStateNodeByPath(i)})},e.prototype.formatTransition=function(t){var n=this,r=mv(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=T(T({},t),{actions:Je(ke(t.actions)),cond:ki(t.cond,i),target:s,source:this,internal:a,eventType:t.event,toJSON:function(){return T(T({},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=sr,u=i[s],c=u===void 0?[]:u,l=Qr(i,[typeof s=="symbol"?s:s+""]);a=le(Object.keys(l).map(function(_){var S=ut(_,l[_]);return S}).concat(ut(sr,c)))}var d=this.config.always?ut("",this.config.always):[],h=this.config.onDone?ut(String(un(this.id)),this.config.onDone):[],f=le(this.invoke.map(function(_){var S=[];return _.onDone&&S.push.apply(S,re([],z(ut(String(_n(_.id)),_.onDone)),!1)),_.onError&&S.push.apply(S,re([],z(ut(String(Rt(_.id)),_.onError)),!1)),S})),g=this.after,p=le(re(re(re(re([],z(h),!1),z(f),!1),z(a),!1),z(d),!1).map(function(_){return ke(_).map(function(S){return r.formatTransition(S)})}));try{for(var m=G(g),y=m.next();!y.done;y=m.next()){var v=y.value;p.push(v)}}catch(_){t={error:_}}finally{try{y&&!y.done&&(n=m.return)&&n.call(m)}finally{if(t)throw t.error}}return p},e}(),Ca=!1;function Jt(e,t){return!Ti&&!e.predictableActionArguments&&!Ca&&(Ca=!0,console.warn("It is highly recommended to set `predictableActionArguments` to `true` when using `createMachine`. https://xstate.js.org/docs/guides/actions.html")),new Yv(e,t)}var Ie=Iv,so=Sv,Jv=$v,q={},uo={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});/*! *****************************************************************************
19
19
  Copyright (c) Microsoft Corporation.
20
20
 
21
21
  Permission to use, copy, modify, and/or distribute this software for any
@@ -28,11 +28,11 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
28
28
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
29
29
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
30
30
  PERFORMANCE OF THIS SOFTWARE.
31
- ***************************************************************************** */e.__assign=function(){return e.__assign=Object.assign||function(s){for(var u,c=1,l=arguments.length;c<l;c++){u=arguments[c];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(s[d]=u[d])}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 l=0,c=Object.getOwnPropertySymbols(i);l<c.length;l++)s.indexOf(c[l])<0&&Object.prototype.propertyIsEnumerable.call(i,c[l])&&(u[c[l]]=i[c[l]]);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),l,d=[],p;try{for(;(s===void 0||s-- >0)&&!(l=c.next()).done;)d.push(l.value)}catch(f){p={error:f}}finally{try{l&&!l.done&&(u=c.return)&&u.call(c)}finally{if(p)throw p.error}}return d}function a(i,s,u){if(u||arguments.length===2)for(var c=0,l=s.length,d;c<l;c++)(d||!(c in s))&&(d||(d=Array.prototype.slice.call(s,0,c)),d[c]=s[c]);return i.concat(d||Array.prototype.slice.call(s))}e.__read=r,e.__rest=t,e.__spreadArray=a,e.__values=n})(uo);var co={};(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={}))})(co);var fe={};Object.defineProperty(fe,"__esModule",{value:!0});var me=co,Zv=me.ActionTypes.Start,Qv=me.ActionTypes.Stop,Xv=me.ActionTypes.Raise,ey=me.ActionTypes.Send,ty=me.ActionTypes.Cancel,ny=me.ActionTypes.NullEvent,ry=me.ActionTypes.Assign,oy=me.ActionTypes.After,ay=me.ActionTypes.DoneState,iy=me.ActionTypes.Log,sy=me.ActionTypes.Init,uy=me.ActionTypes.Invoke,cy=me.ActionTypes.ErrorExecution,ly=me.ActionTypes.ErrorPlatform,dy=me.ActionTypes.ErrorCustom,fy=me.ActionTypes.Update,py=me.ActionTypes.Choose,hy=me.ActionTypes.Pure;fe.after=oy;fe.assign=ry;fe.cancel=ty;fe.choose=py;fe.doneState=ay;fe.error=dy;fe.errorExecution=cy;fe.errorPlatform=ly;fe.init=sy;fe.invoke=uy;fe.log=iy;fe.nullEvent=ny;fe.pure=hy;fe.raise=Xv;fe.send=ey;fe.start=Zv;fe.stop=Qv;fe.update=fy;var Fi={},Tt={};Object.defineProperty(Tt,"__esModule",{value:!0});var my=".",gy={},vy="xstate.guard",yy="";Tt.DEFAULT_GUARD_TYPE=vy;Tt.EMPTY_ACTIVITY_MAP=gy;Tt.STATE_DELIMITER=my;Tt.TARGETLESS_KEY=yy;var Kn={};Object.defineProperty(Kn,"__esModule",{value:!0});var wy=!0;Kn.IS_PRODUCTION=wy;(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=uo,n=Tt,r=Kn,a;function i(w){return Object.keys(w)}function s(w,N,O){O===void 0&&(O=n.STATE_DELIMITER);var x=p(w,O),V=p(N,O);return pe(V)?pe(x)?V===x:!1:pe(x)?x in V:Object.keys(x).every(function(D){return D in V?s(x[D],V[D]):!1})}function u(w){try{return pe(w)||typeof w=="number"?"".concat(w):w.type}catch{throw new Error("Events must be strings or objects with a string event.type property.")}}function c(w){try{return pe(w)||typeof w=="number"?"".concat(w):W(w)?w.name:w.type}catch{throw new Error("Actions must be strings or objects with a string action.type property.")}}function l(w,N){try{return H(w)?w:w.toString().split(N)}catch{throw new Error("'".concat(w,"' is not a valid state path."))}}function d(w){return typeof w=="object"&&"value"in w&&"context"in w&&"event"in w&&"_event"in w}function p(w,N){if(d(w))return w.value;if(H(w))return f(w);if(typeof w!="string")return w;var O=l(w,N);return f(O)}function f(w){if(w.length===1)return w[0];for(var N={},O=N,x=0;x<w.length-1;x++)x===w.length-2?O[w[x]]=w[x+1]:(O[w[x]]={},O=O[w[x]]);return N}function g(w,N){for(var O={},x=Object.keys(w),V=0;V<x.length;V++){var D=x[V];O[D]=N(w[D],D,w,V)}return O}function h(w,N,O){var x,V,D={};try{for(var j=t.__values(Object.keys(w)),L=j.next();!L.done;L=j.next()){var X=L.value,ie=w[X];!O(ie)||(D[X]=N(ie,X,w))}}catch(be){x={error:be}}finally{try{L&&!L.done&&(V=j.return)&&V.call(j)}finally{if(x)throw x.error}}return D}var m=function(w){return function(N){var O,x,V=N;try{for(var D=t.__values(w),j=D.next();!j.done;j=D.next()){var L=j.value;V=V[L]}}catch(X){O={error:X}}finally{try{j&&!j.done&&(x=D.return)&&x.call(D)}finally{if(O)throw O.error}}return V}};function y(w,N){return function(O){var x,V,D=O;try{for(var j=t.__values(w),L=j.next();!L.done;L=j.next()){var X=L.value;D=D[N][X]}}catch(ie){x={error:ie}}finally{try{L&&!L.done&&(V=j.return)&&V.call(j)}finally{if(x)throw x.error}}return D}}function v(w){if(!w)return[[]];if(pe(w))return[[w]];var N=S(Object.keys(w).map(function(O){var x=w[O];return typeof x!="string"&&(!x||!Object.keys(x).length)?[[O]]:v(w[O]).map(function(V){return[O].concat(V)})}));return N}function _(w){var N,O,x={};if(w&&w.length===1&&w[0].length===1)return w[0][0];try{for(var V=t.__values(w),D=V.next();!D.done;D=V.next())for(var j=D.value,L=x,X=0;X<j.length;X++){var ie=j[X];if(X===j.length-2){L[ie]=j[X+1];break}L[ie]=L[ie]||{},L=L[ie]}}catch(be){N={error:be}}finally{try{D&&!D.done&&(O=V.return)&&O.call(V)}finally{if(N)throw N.error}}return x}function S(w){var N;return(N=[]).concat.apply(N,t.__spreadArray([],t.__read(w),!1))}function b(w){return H(w)?w:[w]}function C(w){return w===void 0?[]:b(w)}function E(w,N,O){var x,V;if(W(w))return w(N,O.data);var D={};try{for(var j=t.__values(Object.keys(w)),L=j.next();!L.done;L=j.next()){var X=L.value,ie=w[X];W(ie)?D[X]=ie(N,O.data):D[X]=ie}}catch(be){x={error:be}}finally{try{L&&!L.done&&(V=j.return)&&V.call(j)}finally{if(x)throw x.error}}return D}function A(w){return/^(done|error)\./.test(w)}function $(w){return!!(w instanceof Promise||w!==null&&(W(w)||typeof w=="object")&&W(w.then))}function k(w){return w!==null&&typeof w=="object"&&"transition"in w&&typeof w.transition=="function"}function I(w,N){var O,x,V=t.__read([[],[]],2),D=V[0],j=V[1];try{for(var L=t.__values(w),X=L.next();!X.done;X=L.next()){var ie=X.value;N(ie)?D.push(ie):j.push(ie)}}catch(be){O={error:be}}finally{try{X&&!X.done&&(x=L.return)&&x.call(L)}finally{if(O)throw O.error}}return[D,j]}function B(w,N){return g(w.states,function(O,x){if(!!O){var V=(pe(N)?void 0:N[x])||(O?O.current:void 0);if(!!V)return{current:V,states:B(O,V)}}})}function F(w,N){return{current:N,states:B(w,N)}}function M(w,N,O,x){r.IS_PRODUCTION||e.warn(!!w,"Attempting to update undefined context");var V=w&&O.reduce(function(D,j){var L,X,ie=j.assignment,be={state:x,action:j,_event:N},it={};if(W(ie))it=ie(D,N.data,be);else try{for(var ne=t.__values(Object.keys(ie)),oe=ne.next();!oe.done;oe=ne.next()){var st=oe.value,xt=ie[st];it[st]=W(xt)?xt(D,N.data,be):xt}}catch(Ns){L={error:Ns}}finally{try{oe&&!oe.done&&(X=ne.return)&&X.call(ne)}finally{if(L)throw L.error}}return Object.assign({},D,it)},w);return V}e.warn=function(){},r.IS_PRODUCTION||(e.warn=function(w,N){var O=w instanceof Error?w:void 0;if(!(!O&&w)&&console!==void 0){var x=["Warning: ".concat(N)];O&&x.push(O),console.warn.apply(console,x)}});function H(w){return Array.isArray(w)}function W(w){return typeof w=="function"}function pe(w){return typeof w=="string"}function qe(w,N){if(!!w)return pe(w)?{type:n.DEFAULT_GUARD_TYPE,name:w,predicate:N?N[w]:void 0}:W(w)?{type:n.DEFAULT_GUARD_TYPE,name:w.name,predicate:w}:w}function ot(w){try{return"subscribe"in w&&W(w.subscribe)}catch{return!1}}var Ne=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),at=(a={},a[Ne]=function(){return this},a[Symbol.observable]=function(){return this},a);function we(w){return!!w&&"__xstatenode"in w}function Pt(w){return!!w&&typeof w.send=="function"}var Nt=function(){var w=0;return function(){return w++,w.toString(16)}}();function de(w,N){return pe(w)||typeof w=="number"?t.__assign({type:w},N):w}function Ue(w,N){if(!pe(w)&&"$$type"in w&&w.$$type==="scxml")return w;var O=de(w);return t.__assign({name:O.type,data:O,$$type:"scxml",type:"external"},N)}function en(w,N){var O=b(N).map(function(x){return typeof x=="undefined"||typeof x=="string"||we(x)?{target:x,event:w}:t.__assign(t.__assign({},x),{event:w})});return O}function tn(w){if(!(w===void 0||w===n.TARGETLESS_KEY))return C(w)}function kt(w,N,O){if(!r.IS_PRODUCTION){var x=w.stack?" Stacktrace was '".concat(w.stack,"'"):"";if(w===N)console.error("Missing onError handler for invocation '".concat(O,"', error was '").concat(w,"'.").concat(x));else{var V=N.stack?" Stacktrace was '".concat(N.stack,"'"):"";console.error("Missing onError handler and/or unhandled exception/promise rejection for invocation '".concat(O,"'. ")+"Original error: '".concat(w,"'. ").concat(x," Current error is '").concat(N,"'.").concat(V))}}}function rr(w,N,O,x,V){var D=w.options.guards,j={state:V,cond:N,_event:x};if(N.type===n.DEFAULT_GUARD_TYPE)return((D==null?void 0:D[N.name])||N.predicate)(O,x.data,j);var L=D==null?void 0:D[N.type];if(!L)throw new Error("Guard '".concat(N.type,"' is not implemented on machine '").concat(w.id,"'."));return L(O,x.data,j)}function P(w){return typeof w=="string"?{type:w}:w}function Se(w,N,O){var x=function(){},V=typeof w=="object",D=V?w:null;return{next:((V?w.next:w)||x).bind(D),error:((V?w.error:N)||x).bind(D),complete:((V?w.complete:O)||x).bind(D)}}function nn(w,N){return"".concat(w,":invocation[").concat(N,"]")}e.createInvokeId=nn,e.evaluateGuard=rr,e.flatten=S,e.getActionType=c,e.getEventType=u,e.interopSymbols=at,e.isActor=Pt,e.isArray=H,e.isBehavior=k,e.isBuiltInEvent=A,e.isFunction=W,e.isMachine=we,e.isObservable=ot,e.isPromiseLike=$,e.isStateLike=d,e.isString=pe,e.keys=i,e.mapContext=E,e.mapFilterValues=h,e.mapValues=g,e.matchesState=s,e.nestedPath=y,e.normalizeTarget=tn,e.partition=I,e.path=m,e.pathToStateValue=f,e.pathsToStateValue=_,e.reportUnhandledExceptionOnInvocation=kt,e.symbolObservable=Ne,e.toArray=C,e.toArrayStrict=b,e.toEventObject=de,e.toGuard=qe,e.toInvokeSource=P,e.toObserver=Se,e.toSCXMLEvent=Ue,e.toStatePath=l,e.toStatePaths=v,e.toStateValue=p,e.toTransitionConfigArray=en,e.uniqueId=Nt,e.updateContext=M,e.updateHistoryStates=B,e.updateHistoryValue=F})(Fi);Object.defineProperty(q,"__esModule",{value:!0});var J=uo,Ce=co,he=fe,K=Fi,Li=Kn,Sy=K.toSCXMLEvent({type:he.init});function kr(e,t){return t&&t[e]||void 0}function qn(e,t){var n;if(K.isString(e)||typeof e=="number"){var r=kr(e,t);K.isFunction(r)?n={type:e,exec:r}:r?n=r:n={type:e,exec:void 0}}else if(K.isFunction(e))n={type:e.name||e.toString(),exec:e};else{var r=kr(e.type,t);if(K.isFunction(r))n=J.__assign(J.__assign({},e),{exec:r});else if(r){var a=r.type||e.type;n=J.__assign(J.__assign(J.__assign({},r),e),{type:a})}else n=e}return n}var xr=function(e,t){if(!e)return[];var n=K.isArray(e)?e:[e];return n.map(function(r){return qn(r,t)})};function lo(e){var t=qn(e);return J.__assign(J.__assign({id:K.isString(e)?e:t.id},t),{type:t.type})}function _y(e){return K.isString(e)?{type:he.raise,event:e}:$t(e,{to:Ce.SpecialTargets.Internal})}function ji(e){return{type:he.raise,_event:K.toSCXMLEvent(e.event)}}function $t(e,t){return{to:t?t.to:void 0,type:he.send,event:K.isFunction(e)?e:K.toEventObject(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:K.isFunction(e)?e.name:K.getEventType(e)}}function zi(e,t,n,r){var a={_event:n},i=K.toSCXMLEvent(K.isFunction(e.event)?e.event(t,n.data,a):e.event),s;if(K.isString(e.delay)){var u=r&&r[e.delay];s=K.isFunction(u)?u(t,n.data,a):u}else s=K.isFunction(e.delay)?e.delay(t,n.data,a):e.delay;var c=K.isFunction(e.to)?e.to(t,n.data,a):e.to;return J.__assign(J.__assign({},e),{to:c,_event:i,event:i.data,delay:s})}function fo(e,t){return $t(e,J.__assign(J.__assign({},t),{to:Ce.SpecialTargets.Parent}))}function by(e,t,n){return $t(t,J.__assign(J.__assign({},n),{to:e}))}function Cy(){return fo(he.update)}function Ay(e,t){return $t(e,J.__assign(J.__assign({},t),{to:function(n,r,a){var i=a._event;return i.origin}}))}var Ey=function(e,t){return{context:e,event:t}};function Iy(e,t){return e===void 0&&(e=Ey),{type:he.log,label:t,expr:e}}var Gi=function(e,t,n){return J.__assign(J.__assign({},e),{value:K.isString(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})},Ty=function(e){return{type:he.cancel,sendId:e}};function $y(e){var t=lo(e);return{type:Ce.ActionTypes.Start,activity:t,exec:void 0}}function Py(e){var t=K.isFunction(e)?e:lo(e);return{type:Ce.ActionTypes.Stop,activity:t,exec:void 0}}function Hi(e,t,n){var r=K.isFunction(e.activity)?e.activity(t,n.data):e.activity,a=typeof r=="string"?{id:r}:r,i={type:Ce.ActionTypes.Stop,activity:a};return i}var Ny=function(e){return{type:he.assign,assignment:e}};function ky(e){return typeof e=="object"&&"type"in e}function xy(e,t){var n=t?"#".concat(t):"";return"".concat(Ce.ActionTypes.After,"(").concat(e,")").concat(n)}function Oy(e,t){var n="".concat(Ce.ActionTypes.DoneState,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Uy(e,t){var n="".concat(Ce.ActionTypes.DoneInvoke,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Ry(e,t){var n="".concat(Ce.ActionTypes.ErrorPlatform,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function By(e){return{type:Ce.ActionTypes.Pure,get:e}}function Vy(e,t){if(!Li.IS_PRODUCTION&&(!e||typeof e=="function")){var n=e;e=function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];var i=typeof n=="function"?n.apply(void 0,J.__spreadArray([],J.__read(r),!1)):n;if(!i)throw new Error("Attempted to forward event to undefined actor. This risks an infinite loop in the sender.");return i}}return $t(function(r,a){return a},J.__assign(J.__assign({},t),{to:e}))}function Dy(e,t){return fo(function(n,r,a){return{type:he.error,data:K.isFunction(e)?e(n,r,a):e}},J.__assign(J.__assign({},t),{to:Ce.SpecialTargets.Parent}))}function My(e){return{type:Ce.ActionTypes.Choose,conds:e}}var Fy=function(e){var t,n,r=[];try{for(var a=J.__values(e),i=a.next();!i.done;i=a.next())for(var s=i.value,u=0;u<s.length;){if(s[u].type===he.assign){r.push(s[u]),s.splice(u,1);continue}u++}}catch(c){t={error:c}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r};function Or(e,t,n,r,a,i,s){s===void 0&&(s=!1);var u=s?[]:Fy(a),c=u.length?K.updateContext(n,r,u,t):n,l=s?[n]:void 0,d=[];function p(h){var m;switch(h.type){case he.raise:return ji(h);case he.send:var y=zi(h,c,r,e.options.delays);return Li.IS_PRODUCTION||K.warn(!K.isString(h.delay)||typeof y.delay=="number","No delay reference for delay expression '".concat(h.delay,"' was found on machine '").concat(e.id,"'")),i&&y.to!==Ce.SpecialTargets.Internal&&d.push(y),y;case he.log:{var v=Gi(h,c,r);return i==null||i(v,c,r),v}case he.choose:{var _=h,S=(m=_.conds.find(function(M){var H=K.toGuard(M.cond,e.options.guards);return!H||K.evaluateGuard(e,H,c,r,i?void 0:t)}))===null||m===void 0?void 0:m.actions;if(!S)return[];var b=J.__read(Or(e,t,c,r,[xr(K.toArray(S),e.options.actions)],i,s),2),C=b[0],E=b[1];return c=E,l==null||l.push(c),C}case he.pure:{var S=h.get(c,r.data);if(!S)return[];var A=J.__read(Or(e,t,c,r,[xr(K.toArray(S),e.options.actions)],i,s),2),$=A[0],k=A[1];return c=k,l==null||l.push(c),$}case he.stop:{var v=Hi(h,c,r);return i==null||i(v,n,r),v}case he.assign:{c=K.updateContext(c,r,[h],i?void 0:t),l==null||l.push(c);break}default:var I=qn(h,e.options.actions),B=I.exec;if(i)i(I,c,r);else if(B&&l){var F=l.length-1;I=J.__assign(J.__assign({},I),{exec:function(M){for(var H=[],W=1;W<arguments.length;W++)H[W-1]=arguments[W];B.apply(void 0,J.__spreadArray([l[F]],J.__read(H),!1))}})}return I}}function f(h){var m,y,v=[];try{for(var _=J.__values(h),S=_.next();!S.done;S=_.next()){var b=S.value,C=p(b);C&&(v=v.concat(C))}}catch(E){m={error:E}}finally{try{S&&!S.done&&(y=_.return)&&y.call(_)}finally{if(m)throw m.error}}return d.forEach(function(E){i(E,c,r)}),d.length=0,v}var g=K.flatten(a.map(f));return[g,c]}q.actionTypes=he;q.after=xy;var ue=q.assign=Ny;q.cancel=Ty;var Ly=q.choose=My;q.done=Oy;q.doneInvoke=Uy;q.error=Ry;q.escalate=Dy;q.forwardTo=Vy;q.getActionFunction=kr;q.initEvent=Sy;q.isActionObject=ky;q.log=Iy;q.pure=By;q.raise=_y;q.resolveActions=Or;q.resolveLog=Gi;q.resolveRaise=ji;q.resolveSend=zi;q.resolveStop=Hi;q.respond=Ay;q.send=$t;q.sendParent=fo;q.sendTo=by;q.sendUpdate=Cy;q.start=$y;var jy=q.stop=Py;q.toActionObject=qn;q.toActionObjects=xr;q.toActivityDefinition=lo;var pn=function(e){return jy(e)},zy=ue({attributeToVerify:function(e){}}),Gy=ue({challengeName:function(e){}}),Hy=ue({requiredAttributes:function(e){}}),po=ue({remoteError:function(e){return""}}),ho=ue({formValues:function(e){return{}}}),mo=ue({touched:function(e){return{}}}),Ky=ue({unverifiedAttributes:function(e){}}),qy=ue({username:function(e){}}),go=ue({validationError:function(e){return{}}}),Wy=ue({challengeName:function(e,t){var n;return(n=t.data)===null||n===void 0?void 0:n.challengeName}}),Yy=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}}),Jy=ue({redirectIntent:function(e){return"confirmPasswordReset"}}),Zy=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}}}),vo=ue({validationError:function(e,t){return t.data}}),yo=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}}),Qy=ue({unverifiedAttributes:function(e,t){return t.data.unverified}}),qi=ue({user:function(e,t){return t.data.user||t.data}}),Xy=ue({username:function(e,t){var n=e.formValues,r=n.username,a=n.country_code;return a&&(r="".concat(a).concat(r)),r}}),ew=ue({codeDeliveryDetails:function(e,t){return t.data.codeDeliveryDetails}}),tw=ue({authAttributes:function(e,t){return{username:e.formValues.username}}}),wo=ue({formValues:function(e,t){var n,r=t.data,a=r.name,i=r.value;return U(U({},e.formValues),((n={})[a]=i,n))}}),So=ue({formValues:function(e,t){return U(U({},e.formValues),t.data)}}),_o=ue({touched:function(e,t){var n,r=t.data.name;return U(U({},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",l="".concat((r=s.country_code)!==null&&r!==void 0?r:u).concat(s[c]).replace(/[^A-Z0-9+]/gi,""),d=U(U({},s),((n={})[c]=l,n));return delete d.country_code,d}}),nw=Oe,rw=jr,ow=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,aw=/^\w*$/;function iw(e,t){if(nw(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||rw(e)?!0:aw.test(e)||!ow.test(e)||t!=null&&e in Object(t)}var bo=iw,Yi=Kr,sw="Expected a function";function Co(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(sw);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(Co.Cache||Yi),n}Co.Cache=Yi;var uw=Co,cw=uw,lw=500;function dw(e){var t=cw(e,function(r){return n.size===lw&&n.clear(),r}),n=t.cache;return t}var fw=dw,pw=fw,hw=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mw=/\\(\\)?/g,gw=pw(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(hw,function(n,r,a,i){t.push(a?i.replace(mw,"$1"):r||n)}),t}),vw=gw,Aa=Gt,yw=ti,ww=Oe,Sw=jr,_w=1/0,Ea=Aa?Aa.prototype:void 0,Ia=Ea?Ea.toString:void 0;function Ji(e){if(typeof e=="string")return e;if(ww(e))return yw(e,Ji)+"";if(Sw(e))return Ia?Ia.call(e):"";var t=e+"";return t=="0"&&1/e==-_w?"-0":t}var bw=Ji,Cw=bw;function Aw(e){return e==null?"":Cw(e)}var Ew=Aw,Iw=Oe,Tw=bo,$w=vw,Pw=Ew;function Nw(e,t){return Iw(e)?e:Tw(e,t)?[e]:$w(Pw(e))}var Wn=Nw,kw=jr,xw=1/0;function Ow(e){if(typeof e=="string"||kw(e))return e;var t=e+"";return t=="0"&&1/e==-xw?"-0":t}var Zt=Ow,Uw=Wn,Rw=Zt;function Bw(e,t){t=Uw(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Rw(t[n++])];return n&&n==r?e:void 0}var Ao=Bw,Vw=Ao;function Dw(e,t,n){var r=e==null?void 0:Vw(e,t);return r===void 0?n:r}var tt=Dw,Mw=ai,Fw=Yt,Lw=Rn,jw=Oe,zw=Ht,Gw=nt.exports,Hw=Dn,Kw=Vn,qw="[object Map]",Ww="[object Set]",Yw=Object.prototype,Jw=Yw.hasOwnProperty;function Zw(e){if(e==null)return!0;if(zw(e)&&(jw(e)||typeof e=="string"||typeof e.splice=="function"||Gw(e)||Kw(e)||Lw(e)))return!e.length;var t=Fw(e);if(t==qw||t==Ww)return!e.size;if(Hw(e))return!Mw(e).length;for(var n in e)if(Jw.call(e,n))return!1;return!0}var Ur=Zw,Qw=qr,Xw=Kt;function eS(e,t,n){(n!==void 0&&!Xw(e[t],n)||n===void 0&&!(t in e))&&Qw(e,t,n)}var Zi=eS;function tS(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 nS=tS,rS=nS,oS=rS(),aS=oS,iS=Ht,sS=Ke;function uS(e){return sS(e)&&iS(e)}var cS=uS,lS=St,dS=Jr,fS=Ke,pS="[object Object]",hS=Function.prototype,mS=Object.prototype,Qi=hS.toString,gS=mS.hasOwnProperty,vS=Qi.call(Object);function yS(e){if(!fS(e)||lS(e)!=pS)return!1;var t=dS(e);if(t===null)return!0;var n=gS.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Qi.call(n)==vS}var wS=yS;function SS(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Xi=SS,_S=qt,bS=Wt;function CS(e){return _S(e,bS(e))}var AS=CS,Ta=Zi,ES=An.exports,IS=wi,TS=li,$S=Si,$a=Rn,Pa=Oe,PS=cS,NS=nt.exports,kS=Fr,xS=De,OS=wS,US=Vn,Na=Xi,RS=AS;function BS(e,t,n,r,a,i,s){var u=Na(e,n),c=Na(t,n),l=s.get(c);if(l){Ta(e,n,l);return}var d=i?i(u,c,n+"",e,t,s):void 0,p=d===void 0;if(p){var f=Pa(c),g=!f&&NS(c),h=!f&&!g&&US(c);d=c,f||g||h?Pa(u)?d=u:PS(u)?d=TS(u):g?(p=!1,d=ES(c,!0)):h?(p=!1,d=IS(c,!0)):d=[]:OS(c)||$a(c)?(d=u,$a(u)?d=RS(u):(!xS(u)||kS(u))&&(d=$S(c))):p=!1}p&&(s.set(c,d),a(d,c,r,i,s),s.delete(c)),Ta(e,n,d)}var VS=BS,DS=Gn,MS=Zi,FS=aS,LS=VS,jS=De,zS=Wt,GS=Xi;function es(e,t,n,r,a){e!==t&&FS(t,function(i,s){if(a||(a=new DS),jS(i))LS(e,t,s,n,es,r,a);else{var u=r?r(GS(e,s),i,s+"",e,t,a):void 0;u===void 0&&(u=i),MS(e,s,u)}},zS)}var HS=es;function KS(e){return e}var Eo=KS;function qS(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 WS=qS,YS=WS,ka=Math.max;function JS(e,t,n){return t=ka(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=ka(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),YS(e,this,u)}}var ZS=JS;function QS(e){return function(){return e}}var XS=QS,e1=XS,xa=ci,t1=Eo,n1=xa?function(e,t){return xa(e,"toString",{configurable:!0,enumerable:!1,value:e1(t),writable:!0})}:t1,r1=n1,o1=800,a1=16,i1=Date.now;function s1(e){var t=0,n=0;return function(){var r=i1(),a=a1-(r-n);if(n=r,a>0){if(++t>=o1)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var u1=s1,c1=r1,l1=u1,d1=l1(c1),f1=d1,p1=Eo,h1=ZS,m1=f1;function g1(e,t){return m1(h1(e,t,p1),e+"")}var v1=g1,y1=Kt,w1=Ht,S1=Bn,_1=De;function b1(e,t,n){if(!_1(n))return!1;var r=typeof t;return(r=="number"?w1(n)&&S1(t,n.length):r=="string"&&t in n)?y1(n[t],e):!1}var C1=b1,A1=v1,E1=C1;function I1(e){return A1(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&&E1(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 T1=I1,$1=HS,P1=T1,N1=P1(function(e,t,n){$1(e,t,n)}),k1=N1,Io=function(e,t,n,r){return Z(void 0,void 0,void 0,function(){var a,i;return Q(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=k1.apply(void 0,Re([{}],a,!1)),Ur(i)?[2,Promise.resolve()]:[2,Promise.reject(i)]}})})},Nn={getAmplifyConfig:function(){return Z(this,void 0,void 0,function(){return Q(this,function(e){return[2,ce.Amplify.configure()]})})},getCurrentUser:function(){return Z(this,void 0,void 0,function(){return Q(this,function(e){return[2,ce.Auth.currentAuthenticatedUser()]})})},handleSignUp:function(e){return Z(this,void 0,void 0,function(){return Q(this,function(t){return[2,ce.Auth.signUp(e)]})})},handleSignIn:function(e){var t=e.username,n=e.password;return Z(this,void 0,void 0,function(){return Q(this,function(r){return[2,ce.Auth.signIn(t,n)]})})},handleConfirmSignIn:function(e){var t=e.user,n=e.code,r=e.mfaType;return Z(this,void 0,void 0,function(){return Q(this,function(a){return[2,ce.Auth.confirmSignIn(t,n,r)]})})},handleConfirmSignUp:function(e){var t=e.username,n=e.code;return Z(this,void 0,void 0,function(){return Q(this,function(r){switch(r.label){case 0:return[4,ce.Auth.confirmSignUp(t,n)];case 1:return[2,r.sent()]}})})},handleForgotPasswordSubmit:function(e){var t=e.username,n=e.code,r=e.password;return Z(this,void 0,void 0,function(){return Q(this,function(a){return[2,ce.Auth.forgotPasswordSubmit(t,n,r)]})})},handleForgotPassword:function(e){return Z(this,void 0,void 0,function(){return Q(this,function(t){return[2,ce.Auth.forgotPassword(e)]})})},validateCustomSignUp:function(e,t){return Z(this,void 0,void 0,function(){return Q(this,function(n){return[2]})})},validateFormPassword:function(e,t,n){return Z(this,void 0,void 0,function(){var r,a,i,s;return Q(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":Il(r)||a.push("Password must have special characters")}}),[2,a.length!==0?{password:a}:null]):[2,null]})})},validateConfirmPassword:function(e,t){return Z(this,void 0,void 0,function(){var n,r,a,i;return Q(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 Z(this,void 0,void 0,function(){return Q(this,function(n){return[2]})})}},x1=["SMS_MFA","SOFTWARE_TOKEN_MFA"],ur=function(e){return tt(e,"data.challengeName")},Oa=function(e,t){return e===t},Ua=function(e){return x1.includes(e)};function O1(e){var t=e.services;return Jt({initial:"init",id:"signInActor",predictableActionArguments:!0,states:{init:{always:[{target:"autoSignIn",cond:"shouldAutoSignIn"},{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"}}},autoSignIn:{initial:"submit",states:{submit:{tags:["pending"],entry:["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:"#signInActor.resolved"}],onError:[{cond:"shouldRedirectToConfirmSignUp",actions:["setCredentials","setConfirmSignUpIntent"],target:"#signInActor.rejected"},{cond:"shouldRedirectToConfirmResetPassword",actions:["setUsernameAuthAttributes","setConfirmResetPasswordIntent"],target:"#signInActor.rejected"},{actions:"setRemoteError",target:"#signInActor.signIn"}]}}}},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:["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:zy,clearChallengeName:Gy,clearRequiredAttributes:Hy,clearError:po,clearFormValues:ho,clearTouched:mo,clearUnverifiedAttributes:Ky,clearValidationError:go,handleInput:wo,handleSubmit:So,handleBlur:_o,parsePhoneNumber:Wi,setChallengeName:Wy,setConfirmResetPasswordIntent:Jy,setConfirmSignUpIntent:Zy,setRequiredAttributes:Yy,setCredentials:Ki,setFieldErrors:vo,setRemoteError:yo,setUnverifiedAttributes:Qy,setUser:qi,setUsernameAuthAttributes:tw,sendUpdate:so()},guards:{shouldConfirmSignIn:function(n,r){return Ua(ur(r))},shouldAutoSignIn:function(n){return(n==null?void 0:n.intent)==="autoSignIn"},shouldRedirectToConfirmSignUp:function(n,r){return r.data.code==="UserNotConfirmedException"},shouldRedirectToConfirmResetPassword:function(n,r){return r.data.code==="PasswordResetRequiredException"},shouldSetupTOTP:function(n,r){return Oa(ur(r),"MFA_SETUP")},shouldForceChangePassword:function(n,r){return Oa(ur(r),"NEW_PASSWORD_REQUIRED")},shouldRequestVerification:function(n,r){var a=r.data,i=a.unverified,s=a.verified;return Ur(s)&&!Ur(i)}},services:{signIn:function(n){return Z(this,void 0,void 0,function(){var r,a,i,s,u,c,l;return Q(this,function(d){switch(d.label){case 0:return r=n.authAttributes,a=r===void 0?{}:r,i=n.formValues,s=i===void 0?{}:i,u=U(U({},a),s),c=u.username,l=u.password,[4,t.handleSignIn({username:c,password:l})];case 1:return[2,d.sent()]}})})},confirmSignIn:function(n){return Z(this,void 0,void 0,function(){var r,a,i,s;return Q(this,function(u){switch(u.label){case 0:return r=n.challengeName,a=n.user,i=n.formValues.confirmation_code,s=Ua(r)?r:void 0,[4,t.handleConfirmSignIn({user:a,code:i,mfaType:s})];case 1:return u.sent(),[4,ce.Auth.currentAuthenticatedUser()];case 2:return[2,u.sent()]}})})},forceNewPassword:function(n){return Z(this,void 0,void 0,function(){var r,a,i,s,u,c,l,d,p;return Q(this,function(f){switch(f.label){case 0:r=n.user,a=n.formValues,i=a.password,a.confirm_password,s=a.phone_number,u=a.country_code,c=ii(a,["password","confirm_password","phone_number","country_code"]),s&&(l="".concat(u).concat(s).replace(/[^A-Z0-9+]/gi,""),c=U(U({},c),{phone_number:l})),f.label=1;case 1:return f.trys.push([1,3,,4]),[4,ce.Auth.completeNewPassword(r,i,c)];case 2:return(d=f.sent()).challengeName?[2,d]:[2,ce.Auth.currentAuthenticatedUser()];case 3:return p=f.sent(),[2,Promise.reject(p)];case 4:return[2]}})})},verifyTotpToken:function(n){return Z(this,void 0,void 0,function(){var r,a,i;return Q(this,function(s){return r=n.formValues,a=n.user,i=r.confirmation_code,[2,ce.Auth.verifyTotpToken(a,i)]})})},federatedSignIn:function(n,r){return Z(this,void 0,void 0,function(){var a;return Q(this,function(i){switch(i.label){case 0:return a=r.data.provider,[4,ce.Auth.federatedSignIn({provider:a})];case 1:return[2,i.sent()]}})})},checkVerifiedContact:function(n){return Z(this,void 0,void 0,function(){var r;return Q(this,function(a){switch(a.label){case 0:return r=n.user,[4,ce.Auth.verifiedContact(r)];case 1:return[2,a.sent()]}})})},verifyUser:function(n){return Z(this,void 0,void 0,function(){var r,a;return Q(this,function(i){switch(i.label){case 0:return r=n.formValues.unverifiedAttr,[4,ce.Auth.verifyCurrentUserAttribute(r)];case 1:return a=i.sent(),n.attributeToVerify=r,[2,a]}})})},confirmVerifyUser:function(n){return Z(this,void 0,void 0,function(){var r,a;return Q(this,function(i){switch(i.label){case 0:return r=n.attributeToVerify,a=n.formValues.confirmation_code,[4,ce.Auth.verifyCurrentUserAttributeSubmit(r,a)];case 1:return[2,i.sent()]}})})},validateFields:function(n){return Z(this,void 0,void 0,function(){return Q(this,function(r){return[2,Io(n.formValues,n.touched,n.passwordSettings,[Nn.validateConfirmPassword])]})})}}})}var U1=Jt({initial:"pending",id:"signOutActor",predictableActionArguments:!0,states:{pending:{tags:["pending"],invoke:{src:"signOut",onDone:"resolved",onError:"rejected"}},resolved:{type:"final"},rejected:{type:"final"}}},{services:{signOut:function(){return ce.Auth.signOut()}}});function R1(e){var t=e.services;return Jt({id:"resetPasswordActor",initial:"init",predictableActionArguments:!0,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:po,clearFormValues:ho,clearTouched:mo,clearUsername:qy,clearValidationError:go,handleInput:wo,handleSubmit:So,handleBlur:_o,setFieldErrors:vo,setRemoteError:yo,setUsername:Xy,sendUpdate:so()},guards:{shouldAutoConfirmReset:function(n,r){return!(!n.intent||n.intent!=="confirmPasswordReset")}},services:{resetPassword:function(n){return Z(this,void 0,void 0,function(){var r;return Q(this,function(a){return r=n.username,[2,t.handleForgotPassword(r)]})})},confirmResetPassword:function(n){return Z(this,void 0,void 0,function(){var r,a,i,s;return Q(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 Z(this,void 0,void 0,function(){return Q(this,function(a){return[2,Io(n.formValues,n.touched,n.passwordSettings,[Nn.validateConfirmPassword])]})})}}})}var B1="__lodash_hash_undefined__";function V1(e){return this.__data__.set(e,B1),this}var D1=V1;function M1(e){return this.__data__.has(e)}var F1=M1,L1=Kr,j1=D1,z1=F1;function kn(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new L1;++t<n;)this.add(e[t])}kn.prototype.add=kn.prototype.push=j1;kn.prototype.has=z1;var G1=kn;function H1(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 K1=H1;function q1(e,t){return e.has(t)}var W1=q1,Y1=G1,J1=K1,Z1=W1,Q1=1,X1=2;function e_(e,t,n,r,a,i){var s=n&Q1,u=e.length,c=t.length;if(u!=c&&!(s&&c>u))return!1;var l=i.get(e),d=i.get(t);if(l&&d)return l==t&&d==e;var p=-1,f=!0,g=n&X1?new Y1:void 0;for(i.set(e,t),i.set(t,e);++p<u;){var h=e[p],m=t[p];if(r)var y=s?r(m,h,p,t,e,i):r(h,m,p,e,t,i);if(y!==void 0){if(y)continue;f=!1;break}if(g){if(!J1(t,function(v,_){if(!Z1(g,_)&&(h===v||a(h,v,n,r,i)))return g.push(_)})){f=!1;break}}else if(!(h===m||a(h,m,n,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var ts=e_;function t_(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}var n_=t_;function r_(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var o_=r_,Ra=Gt,Ba=yi,a_=Kt,i_=ts,s_=n_,u_=o_,c_=1,l_=2,d_="[object Boolean]",f_="[object Date]",p_="[object Error]",h_="[object Map]",m_="[object Number]",g_="[object RegExp]",v_="[object Set]",y_="[object String]",w_="[object Symbol]",S_="[object ArrayBuffer]",__="[object DataView]",Va=Ra?Ra.prototype:void 0,cr=Va?Va.valueOf:void 0;function b_(e,t,n,r,a,i,s){switch(n){case __:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case S_:return!(e.byteLength!=t.byteLength||!i(new Ba(e),new Ba(t)));case d_:case f_:case m_:return a_(+e,+t);case p_:return e.name==t.name&&e.message==t.message;case g_:case y_:return e==t+"";case h_:var u=s_;case v_:var c=r&c_;if(u||(u=u_),e.size!=t.size&&!c)return!1;var l=s.get(e);if(l)return l==t;r|=l_,s.set(e,t);var d=i_(u(e),u(t),r,a,i,s);return s.delete(e),d;case w_:if(cr)return cr.call(e)==cr.call(t)}return!1}var C_=b_,Da=mi,A_=1,E_=Object.prototype,I_=E_.hasOwnProperty;function T_(e,t,n,r,a,i){var s=n&A_,u=Da(e),c=u.length,l=Da(t),d=l.length;if(c!=d&&!s)return!1;for(var p=c;p--;){var f=u[p];if(!(s?f in t:I_.call(t,f)))return!1}var g=i.get(e),h=i.get(t);if(g&&h)return g==t&&h==e;var m=!0;i.set(e,t),i.set(t,e);for(var y=s;++p<c;){f=u[p];var v=e[f],_=t[f];if(r)var S=s?r(_,v,f,t,e,i):r(v,_,f,e,t,i);if(!(S===void 0?v===_||a(v,_,n,r,i):S)){m=!1;break}y||(y=f=="constructor")}if(m&&!y){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 $_=T_,lr=Gn,P_=ts,N_=C_,k_=$_,Ma=Yt,Fa=Oe,La=nt.exports,x_=Vn,O_=1,ja="[object Arguments]",za="[object Array]",hn="[object Object]",U_=Object.prototype,Ga=U_.hasOwnProperty;function R_(e,t,n,r,a,i){var s=Fa(e),u=Fa(t),c=s?za:Ma(e),l=u?za:Ma(t);c=c==ja?hn:c,l=l==ja?hn:l;var d=c==hn,p=l==hn,f=c==l;if(f&&La(e)){if(!La(t))return!1;s=!0,d=!1}if(f&&!d)return i||(i=new lr),s||x_(e)?P_(e,t,n,r,a,i):N_(e,t,c,n,r,a,i);if(!(n&O_)){var g=d&&Ga.call(e,"__wrapped__"),h=p&&Ga.call(t,"__wrapped__");if(g||h){var m=g?e.value():e,y=h?t.value():t;return i||(i=new lr),a(m,y,n,r,i)}}return f?(i||(i=new lr),k_(e,t,n,r,a,i)):!1}var B_=R_,V_=B_,Ha=Ke;function ns(e,t,n,r,a){return e===t?!0:e==null||t==null||!Ha(e)&&!Ha(t)?e!==e&&t!==t:V_(e,t,n,r,ns,a)}var rs=ns,D_=Gn,M_=rs,F_=1,L_=2;function j_(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],l=e[c],d=u[1];if(s&&u[2]){if(l===void 0&&!(c in e))return!1}else{var p=new D_;if(r)var f=r(l,d,c,e,t,p);if(!(f===void 0?M_(d,l,F_|L_,r,p):f))return!1}}return!0}var z_=j_,G_=De;function H_(e){return e===e&&!G_(e)}var os=H_,K_=os,q_=Mn;function W_(e){for(var t=q_(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,K_(a)]}return t}var Y_=W_;function J_(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var as=J_,Z_=z_,Q_=Y_,X_=as;function eb(e){var t=Q_(e);return t.length==1&&t[0][2]?X_(t[0][0],t[0][1]):function(n){return n===e||Z_(n,e,t)}}var tb=eb;function nb(e,t){return e!=null&&t in Object(e)}var rb=nb,ob=Wn,ab=Rn,ib=Oe,sb=Bn,ub=Lr,cb=Zt;function lb(e,t,n){t=ob(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var s=cb(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&&ub(a)&&sb(s,a)&&(ib(e)||ab(e)))}var db=lb,fb=rb,pb=db;function hb(e,t){return e!=null&&pb(e,t,fb)}var mb=hb,gb=rs,vb=tt,yb=mb,wb=bo,Sb=os,_b=as,bb=Zt,Cb=1,Ab=2;function Eb(e,t){return wb(e)&&Sb(t)?_b(bb(e),t):function(n){var r=vb(n,e);return r===void 0&&r===t?yb(n,e):gb(t,r,Cb|Ab)}}var Ib=Eb;function Tb(e){return function(t){return t==null?void 0:t[e]}}var $b=Tb,Pb=Ao;function Nb(e){return function(t){return Pb(t,e)}}var kb=Nb,xb=$b,Ob=kb,Ub=bo,Rb=Zt;function Bb(e){return Ub(e)?xb(Rb(e)):Ob(e)}var Vb=Bb,Db=tb,Mb=Ib,Fb=Eo,Lb=Oe,jb=Vb;function zb(e){return typeof e=="function"?e:e==null?Fb:typeof e=="object"?Lb(e)?Mb(e[0],e[1]):Db(e):jb(e)}var Gb=zb,Hb=Wr,Kb=Wn,qb=Bn,Ka=De,Wb=Zt;function Yb(e,t,n,r){if(!Ka(e))return e;t=Kb(t,e);for(var a=-1,i=t.length,s=i-1,u=e;u!=null&&++a<i;){var c=Wb(t[a]),l=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(a!=s){var d=u[c];l=r?r(d,c,u):void 0,l===void 0&&(l=Ka(d)?d:qb(t[a+1])?[]:{})}Hb(u,c,l),u=u[c]}return e}var Jb=Yb,Zb=Ao,Qb=Jb,Xb=Wn;function e0(e,t,n){for(var r=-1,a=t.length,i={};++r<a;){var s=t[r],u=Zb(e,s);n(u,s)&&Qb(i,Xb(s,e),u)}return i}var t0=e0,n0=ti,r0=Gb,o0=t0,a0=gi;function i0(e,t){if(e==null)return{};var n=n0(a0(e),function(r){return[r]});return t=r0(t),o0(e,n,function(r,a){return t(r,a[0])})}var s0=i0;function u0(e){var t=e.services;return Jt({id:"signUpActor",initial:"init",predictableActionArguments:!0,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","setCredentials"]},{target:"resolved",actions:["setUser","setCredentials","setCodeDeliveryDetails"]}],onError:{target:"idle",actions:"setRemoteError"}}},skipConfirm:{always:{target:"#signUpActor.resolved",actions:"setAutoSignInIntent"}},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:"setAutoSignInIntent",cond:"isUserAlreadyConfirmed"},{target:"edit",actions:"setRemoteError"}]}},submit:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"confirmSignUp",onDone:{target:"#signUpActor.resolved",actions:"setAutoSignInIntent"},onError:{target:"edit",actions:"setRemoteError"}}}}},resolved:{type:"final",data:function(n,r){var a=n.authAttributes,i=a.username,s=a.password;return{user:tt(r,"data.user")||n.user,authAttributes:{username:i,password:s},intent:n.intent}}}}},{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:po,clearFormValues:ho,clearTouched:mo,clearValidationError:go,handleInput:wo,handleSubmit:So,handleBlur:_o,parsePhoneNumber:Wi,setCredentials:Ki,setFieldErrors:vo,setRemoteError:yo,setCodeDeliveryDetails:ew,setUser:qi,sendUpdate:so(),setAutoSignInIntent:Ie({intent:function(n){return"autoSignIn"}})},services:{confirmSignUp:function(n,r){return Z(this,void 0,void 0,function(){var a,i,s,u,c;return Q(this,function(l){switch(l.label){case 0:return a=n.user,i=n.authAttributes,s=n.formValues,u=s.confirmation_code,c=tt(a,"username")||tt(i,"username"),[4,t.handleConfirmSignUp({username:c,code:u})];case 1:return[2,l.sent()]}})})},resendConfirmationCode:function(n,r){return Z(this,void 0,void 0,function(){var a,i,s;return Q(this,function(u){return a=n.user,i=n.authAttributes,s=tt(a,"username")||tt(i,"username"),[2,ce.Auth.resendSignUp(s)]})})},federatedSignIn:function(n,r){return Z(this,void 0,void 0,function(){var a;return Q(this,function(i){switch(i.label){case 0:return a=r.data.provider,[4,ce.Auth.federatedSignIn({provider:a})];case 1:return[2,i.sent()]}})})},signUp:function(n,r){return Z(this,void 0,void 0,function(){var a,i,s,u,c,l,d;return Q(this,function(p){switch(p.label){case 0:return a=n.formValues,i=n.loginMechanisms,s=i[0],c=(u=a)[s===void 0?"username":s],l=u.password,d=s0(a,function(f,g){switch(g){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 g.startsWith("custom:")}}),[4,t.handleSignUp({username:c,password:l,attributes:d})];case 1:return[2,p.sent()]}})})},validateSignUp:function(n,r){return Z(this,void 0,void 0,function(){return Q(this,function(a){return[2,Io(n.formValues,n.touched,n.passwordSettings,[t.validateFormPassword,t.validateConfirmPassword,t.validatePreferredUsername,t.validateCustomSignUp])]})})}}})}function c0(){return Jt({id:"authenticator",initial:"idle",context:{user:void 0,config:{},services:Nn,actorRef:void 0,hasSetup:!1},predictableActionArguments:!0,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:"#authenticator.signIn",actions:"setActorDoneData",cond:"shouldAutoSignIn"}}},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:Ly([{cond:"hasActor",actions:Jv(function(e){return e.actorRef})}]),setUser:Ie({user:function(e,t){return t.data}}),setActorDoneData:Ie({actorDoneData:function(e,t){var n,r;return{authAttributes:U({},(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:Ie({user:void 0}),clearActorDoneData:Ie({actorDoneData:void 0}),applyAmplifyConfig:Ie({config:function(e,t){var n,r,a,i,s,u,c,l,d,p=(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:[],g=(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:[],h=(l=(c=t.data.aws_cognito_social_providers)===null||c===void 0?void 0:c.map(function(C){return C.toLowerCase()}))!==null&&l!==void 0?l:[],m=t.data.aws_cognito_password_protection_settings||{};p.length===0&&p.push("username");var y=e.config,v=y.loginMechanisms,_=y.signUpAttributes,S=y.socialProviders,b=y.initialState;return{loginMechanisms:v!=null?v:p,formFields:(d=l0(y.formFields))!==null&&d!==void 0?d:{},passwordSettings:m,signUpAttributes:_!=null?_:Array.from(new Set(Re(Re([],f,!0),g,!0))),socialProviders:S!=null?S:h.sort(),initialState:b}}}),spawnSignInActor:Ie({actorRef:function(e,t){var n,r,a,i,s,u,c=e.services,l=O1({services:c}).withContext({authAttributes:(r=(n=e.actorDoneData)===null||n===void 0?void 0:n.authAttributes)!==null&&r!==void 0?r:{},user:e.user,intent:(a=e.actorDoneData)===null||a===void 0?void 0:a.intent,country_code:"+1",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});return ln(l,{name:"signInActor"})}}),spawnSignUpActor:Ie({actorRef:function(e,t){var n,r,a,i,s,u,c,l=e.services,d=u0({services:l}).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 ln(d,{name:"signUpActor"})}}),spawnResetPasswordActor:Ie({actorRef:function(e,t){var n,r,a,i,s=e.services,u=R1({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 ln(u,{name:"resetPasswordActor"})}}),spawnSignOutActor:Ie({actorRef:function(e){var t=U1.withContext({user:e.user});return ln(t,{name:"signOutActor"})}}),stopSignInActor:pn("signInActor"),stopSignUpActor:pn("signUpActor"),stopResetPasswordActor:pn("resetPasswordActor"),stopSignOutActor:pn("signOutActor"),configure:Ie(function(e,t){var n=t.data,r=n.services,a=ii(n,["services"]);return{services:U(U({},Nn),r),config:a}}),setHasSetup:Ie({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"},shouldAutoSignIn:function(e,t){var n;return((n=t.data)===null||n===void 0?void 0:n.intent)==="autoSignIn"},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 l0(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}const d0={key:0,class:"amplify-flex amplify-alert amplify-alert--error amplify-authenticator__base","data-variation":"error",role:"alert"},f0={class:"amplify-flex amplify-authenticator__icon-wrapper"},p0=o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor"},[o.createElementVNode("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"})],-1),h0=o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor"},[o.createElementVNode("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})],-1),Fe={__name:"base-alert",setup(e){const t=o.ref(!0),n=R("Dismiss alert");function r(){t.value=!1}return(a,i)=>{const s=_e;return t.value?(o.openBlock(),o.createElementBlock("div",d0,[o.createElementVNode("div",f0,[p0,o.createElementVNode("div",null,[o.renderSlot(a.$slots,"default")])]),o.createVNode(s,{class:"amplify-field-group__control amplify-alert__dismiss","aria-label":o.unref(n),fullwidth:!1,variation:"link",type:"button",onClick:r},{default:o.withCtx(()=>[h0]),_:1},8,["aria-label"])])):o.createCommentVNode("",!0)}}};var Yn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n};const m0={};function g0(e,t){return o.openBlock(),o.createElementBlock("div",null,[o.renderSlot(e.$slots,"default")])}var ye=Yn(m0,[["render",g0]]);const Le=o.defineComponent({__name:"base-form",setup(e){let t=o.useSlots();return(n,r)=>o.renderSlot(n.$slots,"formt",o.mergeProps(n.$attrs,{slotData:o.unref(t).default&&o.unref(t).default()}),()=>[o.createElementVNode("form",o.mergeProps({"data-amplify-form":""},n.$attrs),[o.renderSlot(n.$slots,"default")],16)])}}),je=o.defineComponent({__name:"base-footer",setup(e){let t=o.useSlots();return(n,r)=>o.renderSlot(n.$slots,"footert",o.mergeProps(n.$attrs,{slotData:o.unref(t).default&&o.unref(t).default()}),()=>[o.createElementVNode("footer",o.normalizeProps(o.guardReactiveProps(n.$attrs)),[o.renderSlot(n.$slots,"default")],16)])}});function v0(e){return o.getCurrentScope()?(o.onScopeDispose(e),!0):!1}function $e(e){let t=0,n,r;const a=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return(...i)=>(t+=1,n||(r=o.effectScope(!0),n=r.run(()=>e(...i))),v0(a),n)}var xn=globalThis&&globalThis.__assign||function(){return xn=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},xn.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,l=t.delays,d=t.state,p=y0(t,["context","guards","actions","activities","services","delays","state"]),f={context:a,guards:i,actions:s,activities:u,services:c,delays:l},g=r.withConfig(f,function(){return xn(xn({},r.context),a)}),h=Mi(g,p).start(d?xe.create(d):void 0),m;return o.onMounted(function(){n&&(m=h.subscribe(w0(n)))}),o.onBeforeUnmount(function(){h.stop(),m==null||m.unsubscribe()}),h}function _0(e){return"state"in e}var qa=function(){};function b0(e){return"getSnapshot"in e?e.getSnapshot():_0(e)?e.state:void 0}function is(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(l){return r.value=l},error:qa,complete:qa}).unsubscribe;u(function(){return c()})},{immediate:!0}),{state:r,send:a}}const ss={error:"",hasValidationErrors:!1,isPending:!1,route:"",authStatus:"",user:"",validationErrors:[""],codeDeliveryDetails:{val:"",DeliveryMedium:""},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},Rr=o.ref(),Cn=o.reactive({...ss,send:"",state:""}),Pe=e=>(e&&(Rr.value=e),is(Rr.value)),C0=()=>(Wa(),o.watchEffect(()=>{Wa()}),Cn),Ae=C0;function Wa(){if(!Rr.value)return;const{state:e,send:t}=Pe(),n=si({send:t,state:e.value});for(const r of Object.keys(ss))Cn[r]=n[r];Cn.send=t,Cn.state=e}const mn=o.defineComponent({__name:"federated-sign-in-button",props:{provider:String},setup(e){const t=e,{provider:n}=o.toRefs(t),{send:r}=Pe(),a=()=>{r({type:"FEDERATED_SIGN_IN",data:{provider:n==null?void 0:n.value}})};return(i,s)=>{const u=ye,c=_e;return o.openBlock(),o.createBlock(c,{class:"amplify-field-group__control federated-sign-in-button amplify-authenticator__font",fullwidth:!1,style:{"font-weight":"normal"},type:"button",onClick:a},{default:o.withCtx(()=>[o.createVNode(u,{class:"amplify-flex federated-sign-in-button-row amplify-authenticator__sign-in-button-wrapper"},{default:o.withCtx(()=>[o.renderSlot(i.$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"},I0=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),T0={class:"amplify-text amplify-authenticator__federated-text"},$0=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),Jn=o.defineComponent({__name:"federated-sign-in",setup(e){var v;const{state:t}=Pe(),n=$e(Ae),{route:r}=n(),{value:{context:a}}=t,i=(v=a==null?void 0:a.config)==null?void 0:v.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"),l=i==null?void 0:i.includes("google"),d=c||l||s||u,p=r==="signUp"?"Up":"In",f=o.computed(()=>gr),g=o.computed(()=>R(`Sign ${p} with Amazon`)),h=o.computed(()=>R(`Sign ${p} with Apple`)),m=o.computed(()=>R(`Sign ${p} with Facebook`)),y=o.computed(()=>R(`Sign ${p} with Google`));return(_,S)=>{const b=ye;return o.unref(d)?(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(mn,{key:0,provider:o.unref(f).Amazon},{default:o.withCtx(()=>[A0,o.createElementVNode("p",E0,o.toDisplayString(o.unref(g)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),o.unref(u)?(o.openBlock(),o.createBlock(mn,{key:1,provider:o.unref(f).Apple},{default:o.withCtx(()=>[I0,o.createElementVNode("p",T0,o.toDisplayString(o.unref(h)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),o.unref(c)?(o.openBlock(),o.createBlock(mn,{key:2,provider:o.unref(f).Facebook},{default:o.withCtx(()=>[$0,o.createElementVNode("p",P0,o.toDisplayString(o.unref(m)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),o.unref(l)?(o.openBlock(),o.createBlock(mn,{key:3,provider:o.unref(f).Google},{default:o.withCtx(()=>[N0,o.createElementVNode("p",k0,o.toDisplayString(o.unref(y)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),x0]),_:1})):o.createCommentVNode("",!0)}}});let O0=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=n[e]&63;r<36?t+=r.toString(36):r<62?t+=(r-26).toString(36).toUpperCase():r<63?t+="_":t+="-"}return t};const U0={},R0={"data-amplify-label":""};function B0(e,t){return o.openBlock(),o.createElementBlock("label",R0,[o.renderSlot(e.$slots,"default")])}var Zn=Yn(U0,[["render",B0]]);const Qn=o.defineComponent({__name:"base-input",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))}}),V0=["aria-label"],D0={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},M0=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),F0=[M0],L0={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},j0=o.createElementVNode("path",{d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z",fill:"none"},null,-1),z0=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),G0=[j0,z0],H0={inheritAttrs:!1},To=o.defineComponent({...H0,__name:"password-control",props:{name:null,label:null,autocomplete:null,hasError:{type:Boolean},labelHidden:{type:Boolean,default:!0},placeholder:null,required:{type:Boolean,default:!0},describedBy:null},setup(e){var _;const t=e,n=R("Show password"),r=R("Hide password"),a=o.ref("password"),i=o.ref(n),s=Math.floor(Math.random()*999999),{name:u,label:c,autocomplete:l,hasError:d,labelHidden:p,placeholder:f,required:g}=o.toRefs(t);let h=o.ref("");function m(){i.value=i.value===n?r:n,a.value=a.value==="password"?"text":"password"}const y=R((_=f==null?void 0:f.value)!=null?_:c.value),v=R(c.value);return(S,b)=>{const C=Zn,E=Qn,A=ye;return o.openBlock(),o.createBlock(A,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield amplify-authenticator__column"},{default:o.withCtx(()=>{var $;return[o.createVNode(C,{class:o.normalizeClass(["amplify-label",{"amplify-visually-hidden":($=o.unref(p))!=null?$:!0}]),for:"amplify-field-"+o.unref(s)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(v)),1)]),_:1},8,["class","for"]),o.createVNode(A,{class:"amplify-flex amplify-field-group"},{default:o.withCtx(()=>{var k;return[o.createVNode(E,o.mergeProps(S.$attrs,{modelValue:o.unref(h),"onUpdate:modelValue":b[0]||(b[0]=I=>o.isRef(h)?h.value=I:h=I),class:"amplify-input amplify-field-group__control",id:"amplify-field-"+o.unref(s),"data-amplify-password":"true",name:o.unref(u),autocomplete:o.unref(l),required:(k=o.unref(g))!=null?k:!0,placeholder:o.unref(y),type:a.value,"aria-invalid":o.unref(d),"aria-describedBy":e.describedBy}),null,16,["modelValue","id","name","autocomplete","required","placeholder","type","aria-invalid","aria-describedBy"]),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",D0,F0)):(o.openBlock(),o.createElementBlock("svg",L0,G0))],8,V0)]),_:1})]}),_:1})]}),_:1})}}}),K0=["value","selected"],q0=o.defineComponent({__name:"base-select",props:{selectValue:{default:""},options:null},emits:["update:selectValue"],setup(e,{emit:t}){const n=e,{options:r,selectValue:a}=o.toRefs(n),i=s=>{t("update:selectValue",s.target.value)};return(s,u)=>(o.openBlock(),o.createElementBlock("select",{onChange:u[0]||(u[0]=c=>i(c))},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(r),(c,l)=>(o.openBlock(),o.createElementBlock("option",{key:l,value:c,selected:c==o.unref(a)?!0:void 0},o.toDisplayString(c),9,K0))),128))],32))}}),W0=o.createTextVNode(o.toDisplayString("Country Code")),Y0=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),J0=o.defineComponent({__name:"alias-control",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"},hasError:{type:Boolean},describedBy:null},setup(e){const t=e,{label:n,name:r,placeholder:a,autocomplete:i,labelHidden:s,required:u,dialCode:c,dialCodeList:l}=o.toRefs(t),d=Math.floor(Math.random()*999999),p=Math.floor(Math.random()*999999);return(f,g)=>{const h=Zn,m=q0,y=ye,v=Qn;return o.openBlock(),o.createBlock(y,{class:"amplify-flex amplify-field amplify-textfield amplify-phonenumberfield amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(h,o.mergeProps({for:"amplify-field-"+o.unref(d),class:["amplify-label",{"sr-only":o.unref(s)}]},f.$attrs),{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(n)),1)]),_:1},16,["for","class"]),o.createVNode(y,{class:"amplify-flex amplify-field-group"},{default:o.withCtx(()=>[o.createVNode(y,{class:"amplify-field-group__outer-start"},{default:o.withCtx(()=>[e.type==="tel"?(o.openBlock(),o.createBlock(y,{key:0,class:"amplify-flex amplify-field amplify-selectfield amplify-countrycodeselect amplify-dialcodeselect amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(h,o.mergeProps({for:"amplify-field-"+o.unref(p),class:"amplify-label amplify-visually-hidden"},f.$attrs),{default:o.withCtx(()=>[W0]),_:1},16,["for"]),o.createVNode(y,{class:"amplify-select__wrapper"},{default:o.withCtx(()=>[o.createVNode(m,{class:"amplify-select amplify-field-group__control",id:"amplify-field-"+o.unref(p),autocomplete:"tel-country-code","aria-label":"country code",name:"country_code",options:o.unref(l),"select-value":o.unref(c)},null,8,["id","options","select-value"]),o.createVNode(y,{class:"amplify-flex amplify-select__icon-wrapper amplify-authenticator__icon-wrapper"},{default:o.withCtx(()=>[Y0]),_:1})]),_:1})]),_:1})):o.createCommentVNode("",!0)]),_:1}),o.createVNode(y,{class:"amplify-field-group__field-wrapper"},{default:o.withCtx(()=>{var _;return[o.createVNode(v,{class:"amplify-input amplify-field-group__control",id:"amplify-field-"+o.unref(d),autocomplete:o.unref(i),name:o.unref(r),required:(_=o.unref(u))!=null?_:!0,type:e.type,placeholder:o.unref(a),"aria-invalid":e.hasError,"aria-describedBy":e.describedBy},null,8,["id","autocomplete","name","required","type","placeholder","aria-invalid","aria-describedBy"])]}),_:1})]),_:1})]),_:1})}}}),Z0=["id"],us=o.defineComponent({__name:"base-form-field",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=s==="password",c=O0(12),l=o.computed(()=>Cl(i.value[n.value])),d=o.computed(()=>{var f;return((f=l.value)==null?void 0:f.length)>0}),p=o.computed(()=>d.value?c:void 0);return(f,g)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[u?(o.openBlock(),o.createBlock(To,{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,hasError:o.unref(d),describedBy:o.unref(p)},null,8,["name","label","placeholder","required","label-hidden","autocomplete","hasError","describedBy"])):(o.openBlock(),o.createBlock(J0,{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,hasError:o.unref(d),describedBy:o.unref(p)},null,8,["name","label","placeholder","required","label-hidden","autocomplete","dial-code","dial-code-list","type","hasError","describedBy"])),o.unref(d)?(o.openBlock(),o.createElementBlock("div",{key:2,id:o.unref(p)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(l),(h,m)=>(o.openBlock(),o.createElementBlock("p",{key:m,role:"alert","data-variation":"error",class:"amplify-text amplify-text--error"},o.toDisplayString(o.unref(R)(h)),1))),128))],8,Z0)):o.createCommentVNode("",!0)],64))}}),ze=o.defineComponent({__name:"base-form-fields",props:{route:null},setup(e){const t=e,{route:n}=o.toRefs(t),{state:r}=Pe();let a=[];return o.onBeforeMount(()=>{a=Zg(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(us,{name:u,key:u,formField:c},null,8,["name","formField"]))),128))}}),Q0=o.createElementVNode("legend",{class:"amplify-visually-hidden"},"Sign in",-1),X0={"data-amplify-footer":""},$o=o.defineComponent({__name:"sign-in",emits:["signInSubmit","forgotPasswordClicked","createAccountClicked"],setup(e,{emit:t}){const r=$e(Ae)(),a=o.useAttrs(),i=o.computed(()=>Sl("Forgot your password? ")?R("Forgot your password? "):R("Forgot your password?")),s=o.computed(()=>R("Sign in")),u=o.computed(()=>R("Signing in")),{state:c,send:l}=Pe(),d=o.computed(()=>Te(c.value)),p=m=>{const{name:y,value:v}=m.target;l({type:"CHANGE",data:{name:y,value:v}})},f=m=>{a!=null&&a.onSignInSubmit?t("signInSubmit",m):g(m)},g=m=>{r.submitForm(Me(m))},h=()=>{a!=null&&a.onForgotPasswordClicked?t("forgotPasswordClicked"):l({type:"RESET_PASSWORD"})};return(m,y)=>{const v=Be,_=Fe,S=_e,b=ye,C=Le,E=je;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:p,onSubmit:o.withModifiers(f,["prevent"]),method:"post"},{formt:o.withCtx(({slotData:A})=>[o.renderSlot(m.$slots,"form",{info:A,onSignInSubmit:f,onInput:p,onForgotPasswordClicked:h})]),default:o.withCtx(()=>[o.createVNode(Jn),o.createVNode(b,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(v,{disabled:o.unref(d).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(()=>[Q0,o.createVNode(ze,{route:"signIn"})]),_:3},8,["disabled"]),o.unref(d).context.remoteError?(o.openBlock(),o.createBlock(_,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(R)(o.unref(d).context.remoteError)),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(S,{disabled:o.unref(d).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(d).matches("signIn.submit")?o.unref(u):o.unref(s)),1)]),_:1},8,["disabled"])]),_:3})]),_:3},8,["onSubmit"])]),_:3},16),o.createVNode(E,null,{default:o.withCtx(()=>[o.renderSlot(m.$slots,"footer",{},()=>[o.createElementVNode("div",X0,[o.createVNode(S,{onClick:h,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})])}}}),Po=o.defineComponent({__name:"authenticator-sign-up-form-fields",setup(e){return(t,n)=>(o.openBlock(),o.createBlock(ze,{route:"signUp"}))}}),No=o.defineComponent({__name:"sign-up",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(),l=o.computed(()=>R("Create Account")),d=h=>{let{checked:m,name:y,type:v,value:_}=h.target;v==="checkbox"&&!m&&(_=void 0),a.updateForm({name:y,value:_})};function p(h){const{name:m}=h.target;a.updateBlur({name:m})}const f=h=>{c!=null&&c.onSignUpSubmit?t("signUpSubmit",h):g(h)},g=h=>{a.submitForm(Me(h))};return(h,m)=>{const y=Be,v=Fe,_=_e,S=ye,b=Le,C=je;return o.renderSlot(h.$slots,"signUpSlotI",o.normalizeProps(o.guardReactiveProps(h.$attrs)),()=>[o.renderSlot(h.$slots,"header"),o.createVNode(S,o.normalizeProps(o.guardReactiveProps(h.$attrs)),{default:o.withCtx(()=>[o.createVNode(b,{onInput:d,onBlurCapture:p,onSubmit:o.withModifiers(f,["prevent"])},{default:o.withCtx(()=>[o.createVNode(Jn),o.createVNode(S,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(y,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(s)},{fieldSetI:o.withCtx(({slotData:E})=>[o.renderSlot(h.$slots,"signup-fields",{info:E})]),default:o.withCtx(()=>[o.createVNode(Po)]),_:3},8,["disabled"]),o.unref(u)?(o.openBlock(),o.createBlock(v,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(R)(o.unref(u))),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(_,{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(l)),1)]),_:1},8,["disabled"])]),_:3})]),_:3},8,["onSubmit"])]),_:3},16),o.createVNode(C,null,{default:o.withCtx(()=>[o.renderSlot(h.$slots,"footer")]),_:3})])}}}),eC=o.defineComponent({__name:"base-two-tab-item",props:{label:null,id:null,active:{type:Boolean,default:!1}},setup(e){const t=e,{active:n,id:r,label:a}=o.toRefs(t);return(i,s)=>{const u=ye;return o.openBlock(),o.createBlock(u,{tabindex:o.unref(n)?0:-1,"data-state":o.unref(n)?"active":"inactive","aria-selected":o.unref(n)?"true":"false","aria-controls":`radix-id-${o.unref(r)}-8-content-0`,id:`radix-id-${o.unref(r)}-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(a)),1)]),_:1},8,["tabindex","data-state","aria-selected","aria-controls","id"])}}}),tC={};function nC(e,t){const n=ye;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 rC=Yn(tC,[["render",nC]]);const Qe=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}`,{...n,class:i},[r])];else return()=>o.h(`h${e.level}`,{"data-amplify-heading":"",...n,class:i},[a[0]?o.h(a[0].children[0]):o.h(r[0])]);return()=>a}}),oC={};function aC(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 cs=Yn(oC,[["render",aC]]);const ko=o.defineComponent({__name:"confirm-sign-up",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:l}=r(),d=o.computed(()=>{var E,A;return((E=s.value)==null?void 0:E.DeliveryMedium)==="EMAIL"?R("We Emailed You"):((A=s.value)==null?void 0:A.DeliveryMedium)==="SMS"?R("We Texted You"):R("We Sent A Code")}),p=o.computed(()=>R("Resend Code")),f=o.computed(()=>R("Confirm")),g=R("Your code is on the way. To log in, enter the code we emailed to"),h=R("Your code is on the way. To log in, enter the code we texted to"),m=R("Your code is on the way. To log in, enter the code we sent you. It may take a minute to arrive."),y=R("It may take a minute to arrive."),v=o.computed(()=>{var E,A,$,k;return((E=s.value)==null?void 0:E.DeliveryMedium)==="EMAIL"?`${g} ${(A=s.value)==null?void 0:A.Destination}. ${y}`:(($=s.value)==null?void 0:$.DeliveryMedium)==="SMS"?`${h} ${(k=s.value)==null?void 0:k.Destination}. ${y}`:R(`${m}`)}),_=E=>{const{name:A,value:$}=E.target;c({name:A,value:$})},S=E=>{n!=null&&n.onConfirmSignUpSubmit?t("confirmSignUpSubmit",E):b(E)},b=E=>{u(Me(E))},C=()=>{n!=null&&n.onLostCodeClicked?t("lostCodeClicked"):l()};return(E,A)=>{const $=Qe,k=cs,I=Be,B=Fe,F=_e,M=je,H=ye,W=Le;return o.renderSlot(E.$slots,"confirmSignUpSlotI",o.normalizeProps(o.guardReactiveProps(E.$attrs)),()=>[o.createVNode(H,o.normalizeProps(o.guardReactiveProps(E.$attrs)),{default:o.withCtx(()=>[o.createVNode(W,{onInput:_,onSubmit:o.withModifiers(S,["prevent"])},{default:o.withCtx(()=>[o.createVNode(H,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(E.$slots,"header",{},()=>[o.createVNode($,{class:"amplify-heading amplify-authenticator__heading",level:3},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1})]),o.createVNode(k,{class:"amplify-authenticator__subtitle"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(v)),1)]),_:1}),o.createVNode(I,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(a)},{default:o.withCtx(()=>[o.createVNode(ze,{route:"confirmSignUp"})]),_:1},8,["disabled"]),o.createVNode(M,{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(R)(o.unref(i))),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(F,{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(F,{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(p)),1)]),_:1},8,["onClick"]),o.renderSlot(E.$slots,"footer",{onConfirmSignUpSubmit:S,onLostCodeClicked:C})]),_:3})]),_:3})]),_:3},8,["onSubmit"])]),_:3},16)])}}}),xo=o.defineComponent({__name:"confirm-sign-in",emits:["confirmSignInSubmit","backToSignInClicked"],setup(e,{emit:t}){const n=o.useAttrs(),{state:r,send:a}=Pe(),s=$e(Ae)(),u=o.computed(()=>Te(r.value)),c=u.value.context.challengeName;let l="SMS";c==="SOFTWARE_TOKEN_MFA"&&(l="TOTP");const d=`Confirm ${l} Code`,p=o.computed(()=>R("Back to Sign In")),f=o.computed(()=>R("Confirm")),g=v=>{const{name:_,value:S}=v.target;a({type:"CHANGE",data:{name:_,value:S}})},h=v=>{n!=null&&n.onConfirmSignInSubmit?t("confirmSignInSubmit",v):m(v)},m=v=>{s.submitForm(Me(v))},y=()=>{n!=null&&n.onBackToSignInClicked?t("backToSignInClicked"):a({type:"SIGN_IN"})};return(v,_)=>{const S=Qe,b=ye,C=Fe,E=_e,A=je,$=Be,k=Le;return o.renderSlot(v.$slots,"confirmSignInSlotI",o.normalizeProps(o.guardReactiveProps(v.$attrs)),()=>[o.createVNode(b,o.normalizeProps(o.guardReactiveProps(v.$attrs)),{default:o.withCtx(()=>[o.createVNode(k,{"data-amplify-authenticator-confirmsignin":"",onInput:g,onSubmit:o.withModifiers(h,["prevent"])},{default:o.withCtx(()=>[o.createVNode($,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(u).matches("confirmSignIn.pending")},{default:o.withCtx(()=>[o.renderSlot(v.$slots,"header",{},()=>[o.createVNode(S,{level:3,class:"amplify-heading"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(d))]),_:1})]),o.createVNode(b,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(ze,{route:"confirmSignIn"})]),_:1}),o.createVNode(A,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var I,B;return[(B=(I=o.unref(u))==null?void 0:I.context)!=null&&B.remoteError?(o.openBlock(),o.createBlock(C,{key:0},{default:o.withCtx(()=>{var F,M;return[o.createTextVNode(o.toDisplayString(o.unref(R)((M=(F=o.unref(u))==null?void 0:F.context)==null?void 0:M.remoteError)),1)]}),_:1})):o.createCommentVNode("",!0),o.createVNode(E,{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(E,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(y,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(p)),1)]),_:1},8,["onClick"]),o.renderSlot(v.$slots,"footer",{onBackToSignInClicked:y,onConfirmSignInSubmit:h})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}});var Qt={},iC=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},ls={},Ee={};let Oo;const sC=[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 sC[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.');Oo=t};Ee.isKanjiModeEnabled=function(){return typeof Oo!="undefined"};Ee.toSJIS=function(t){return Oo(t)};var Xn={};(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}}})(Xn);function ds(){this.buffer=[],this.length=0}ds.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 uC=ds;function Xt(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)}Xt.prototype.set=function(e,t,n,r){const a=e*this.size+t;this.data[a]=n,r&&(this.reservedBit[a]=!0)};Xt.prototype.get=function(e,t){return this.data[e*this.size+t]};Xt.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};Xt.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var cC=Xt,fs={};(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}})(fs);var ps={};const lC=Ee.getSymbolSize,Ya=7;ps.getPositions=function(t){const n=lC(t);return[[0,0],[n-Ya,0],[0,n-Ya]]};var hs={};(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,l=null,d=null;for(let p=0;p<i;p++){u=c=0,l=d=null;for(let f=0;f<i;f++){let g=a.get(p,f);g===l?u++:(u>=5&&(s+=t.N1+(u-5)),l=g,u=1),g=a.get(f,p),g===d?c++:(c>=5&&(s+=t.N1+(c-5)),d=g,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 l=a.get(u,c)+a.get(u,c+1)+a.get(u+1,c)+a.get(u+1,c+1);(l===4||l===0)&&s++}return s*t.N2},e.getPenaltyN3=function(a){const i=a.size;let s=0,u=0,c=0;for(let l=0;l<i;l++){u=c=0;for(let d=0;d<i;d++)u=u<<1&2047|a.get(l,d),d>=10&&(u===1488||u===93)&&s++,c=c<<1&2047|a.get(d,l),d>=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 l=0;l<s;l++){i(l),e.applyMask(l,a);const d=e.getPenaltyN1(a)+e.getPenaltyN2(a)+e.getPenaltyN3(a)+e.getPenaltyN4(a);e.applyMask(l,a),d<c&&(c=d,u=l)}return u}})(hs);var er={};const Ze=Xn,gn=[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],vn=[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];er.getBlocksCount=function(t,n){switch(n){case Ze.L:return gn[(t-1)*4+0];case Ze.M:return gn[(t-1)*4+1];case Ze.Q:return gn[(t-1)*4+2];case Ze.H:return gn[(t-1)*4+3];default:return}};er.getTotalCodewordsCount=function(t,n){switch(n){case Ze.L:return vn[(t-1)*4+0];case Ze.M:return vn[(t-1)*4+1];case Ze.Q:return vn[(t-1)*4+2];case Ze.H:return vn[(t-1)*4+3];default:return}};var ms={},tr={};const Mt=new Uint8Array(512),On=new Uint8Array(256);(function(){let t=1;for(let n=0;n<255;n++)Mt[n]=t,On[t]=n,t<<=1,t&256&&(t^=285);for(let n=255;n<512;n++)Mt[n]=Mt[n-255]})();tr.log=function(t){if(t<1)throw new Error("log("+t+")");return On[t]};tr.exp=function(t){return Mt[t]};tr.mul=function(t,n){return t===0||n===0?0:Mt[On[t]+On[n]]};(function(e){const t=tr;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}})(ms);const gs=ms;function Uo(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}Uo.prototype.initialize=function(t){this.degree=t,this.genPoly=gs.generateECPolynomial(this.degree)};Uo.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=gs.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 dC=Uo,vs={},Xe={},Ro={};Ro.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var Ge={};const ys="[0-9]+",fC="[A-Z $%*+\\-./:]+";let zt="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";zt=zt.replace(/u/g,"\\u");const pC="(?:(?![A-Z0-9 $%*+\\-./:]|"+zt+`)(?:.|[\r
32
- ]))+`;Ge.KANJI=new RegExp(zt,"g");Ge.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");Ge.BYTE=new RegExp(pC,"g");Ge.NUMERIC=new RegExp(ys,"g");Ge.ALPHANUMERIC=new RegExp(fC,"g");const hC=new RegExp("^"+zt+"$"),mC=new RegExp("^"+ys+"$"),gC=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Ge.testKanji=function(t){return hC.test(t)};Ge.testNumeric=function(t){return mC.test(t)};Ge.testAlphanumeric=function(t){return gC.test(t)};(function(e){const t=Ro,n=Ge;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}}})(Xe);(function(e){const t=Ee,n=er,r=Xn,a=Xe,i=Ro,s=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,u=t.getBCHDigit(s);function c(f,g,h){for(let m=1;m<=40;m++)if(g<=e.getCapacity(m,h,f))return m}function l(f,g){return a.getCharCountIndicator(f,g)+4}function d(f,g){let h=0;return f.forEach(function(m){h+=l(m.mode,g)+m.getBitsLength()}),h}function p(f,g){for(let h=1;h<=40;h++)if(d(f,h)<=e.getCapacity(h,g,a.MIXED))return h}e.from=function(g,h){return i.isValid(g)?parseInt(g,10):h},e.getCapacity=function(g,h,m){if(!i.isValid(g))throw new Error("Invalid QR Code version");typeof m=="undefined"&&(m=a.BYTE);const y=t.getSymbolTotalCodewords(g),v=n.getTotalCodewordsCount(g,h),_=(y-v)*8;if(m===a.MIXED)return _;const S=_-l(m,g);switch(m){case a.NUMERIC:return Math.floor(S/10*3);case a.ALPHANUMERIC:return Math.floor(S/11*2);case a.KANJI:return Math.floor(S/13);case a.BYTE:default:return Math.floor(S/8)}},e.getBestVersionForData=function(g,h){let m;const y=r.from(h,r.M);if(Array.isArray(g)){if(g.length>1)return p(g,y);if(g.length===0)return 1;m=g[0]}else m=g;return c(m.mode,m.getLength(),y)},e.getEncodedBits=function(g){if(!i.isValid(g)||g<7)throw new Error("Invalid QR Code version");let h=g<<12;for(;t.getBCHDigit(h)-u>=0;)h^=s<<t.getBCHDigit(h)-u;return g<<12|h}})(vs);var ws={};const Br=Ee,Ss=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,vC=1<<14|1<<12|1<<10|1<<4|1<<1,Ja=Br.getBCHDigit(Ss);ws.getEncodedBits=function(t,n){const r=t.bit<<3|n;let a=r<<10;for(;Br.getBCHDigit(a)-Ja>=0;)a^=Ss<<Br.getBCHDigit(a)-Ja;return(r<<10|a)^vC};var _s={};const yC=Xe;function gt(e){this.mode=yC.NUMERIC,this.data=e.toString()}gt.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};gt.prototype.getLength=function(){return this.data.length};gt.prototype.getBitsLength=function(){return gt.getBitsLength(this.data.length)};gt.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 wC=gt;const SC=Xe,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 vt(e){this.mode=SC.ALPHANUMERIC,this.data=e}vt.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};vt.prototype.getLength=function(){return this.data.length};vt.prototype.getBitsLength=function(){return vt.getBitsLength(this.data.length)};vt.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 _C=vt,bC=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 CC=bC,AC=Xe;function yt(e){this.mode=AC.BYTE,this.data=new Uint8Array(CC(e))}yt.getBitsLength=function(t){return t*8};yt.prototype.getLength=function(){return this.data.length};yt.prototype.getBitsLength=function(){return yt.getBitsLength(this.data.length)};yt.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)};var EC=yt;const IC=Xe,TC=Ee;function wt(e){this.mode=IC.KANJI,this.data=e}wt.getBitsLength=function(t){return t*13};wt.prototype.getLength=function(){return this.data.length};wt.prototype.getBitsLength=function(){return wt.getBitsLength(this.data.length)};wt.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=TC.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]+`
33
- Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};var $C=wt,bs={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,l,d,p,f,g,h,m,y;!u.empty();){c=u.pop(),l=c.value,p=c.cost,f=n[l]||{};for(d in f)f.hasOwnProperty(d)&&(g=f[d],h=p+g,m=s[d],y=typeof s[d]=="undefined",(y||m>h)&&(s[d]=h,u.push(d,h),i[d]=l))}if(typeof a!="undefined"&&typeof s[a]=="undefined"){var v=["Could not find a path from ",r," to ",a,"."].join("");throw new Error(v)}return i},extract_shortest_path_from_predecessor_list:function(n,r){for(var a=[],i=r;i;)a.push(i),n[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})(bs);(function(e){const t=Xe,n=wC,r=_C,a=EC,i=$C,s=Ge,u=Ee,c=bs.exports;function l(v){return unescape(encodeURIComponent(v)).length}function d(v,_,S){const b=[];let C;for(;(C=v.exec(S))!==null;)b.push({data:C[0],index:C.index,mode:_,length:C[0].length});return b}function p(v){const _=d(s.NUMERIC,t.NUMERIC,v),S=d(s.ALPHANUMERIC,t.ALPHANUMERIC,v);let b,C;return u.isKanjiModeEnabled()?(b=d(s.BYTE,t.BYTE,v),C=d(s.KANJI,t.KANJI,v)):(b=d(s.BYTE_KANJI,t.BYTE,v),C=[]),_.concat(S,b,C).sort(function(A,$){return A.index-$.index}).map(function(A){return{data:A.data,mode:A.mode,length:A.length}})}function f(v,_){switch(_){case t.NUMERIC:return n.getBitsLength(v);case t.ALPHANUMERIC:return r.getBitsLength(v);case t.KANJI:return i.getBitsLength(v);case t.BYTE:return a.getBitsLength(v)}}function g(v){return v.reduce(function(_,S){const b=_.length-1>=0?_[_.length-1]:null;return b&&b.mode===S.mode?(_[_.length-1].data+=S.data,_):(_.push(S),_)},[])}function h(v){const _=[];for(let S=0;S<v.length;S++){const b=v[S];switch(b.mode){case t.NUMERIC:_.push([b,{data:b.data,mode:t.ALPHANUMERIC,length:b.length},{data:b.data,mode:t.BYTE,length:b.length}]);break;case t.ALPHANUMERIC:_.push([b,{data:b.data,mode:t.BYTE,length:b.length}]);break;case t.KANJI:_.push([b,{data:b.data,mode:t.BYTE,length:l(b.data)}]);break;case t.BYTE:_.push([{data:b.data,mode:t.BYTE,length:l(b.data)}])}}return _}function m(v,_){const S={},b={start:{}};let C=["start"];for(let E=0;E<v.length;E++){const A=v[E],$=[];for(let k=0;k<A.length;k++){const I=A[k],B=""+E+k;$.push(B),S[B]={node:I,lastCount:0},b[B]={};for(let F=0;F<C.length;F++){const M=C[F];S[M]&&S[M].node.mode===I.mode?(b[M][B]=f(S[M].lastCount+I.length,I.mode)-f(S[M].lastCount,I.mode),S[M].lastCount+=I.length):(S[M]&&(S[M].lastCount=I.length),b[M][B]=f(I.length,I.mode)+4+t.getCharCountIndicator(I.mode,_))}}C=$}for(let E=0;E<C.length;E++)b[C[E]].end=0;return{map:b,table:S}}function y(v,_){let S;const b=t.getBestModeForData(v);if(S=t.from(_,b),S!==t.BYTE&&S.bit<b.bit)throw new Error('"'+v+'" cannot be encoded with mode '+t.toString(S)+`.
34
- Suggested mode is: `+t.toString(b));switch(S===t.KANJI&&!u.isKanjiModeEnabled()&&(S=t.BYTE),S){case t.NUMERIC:return new n(v);case t.ALPHANUMERIC:return new r(v);case t.KANJI:return new i(v);case t.BYTE:return new a(v)}}e.fromArray=function(_){return _.reduce(function(S,b){return typeof b=="string"?S.push(y(b,null)):b.data&&S.push(y(b.data,b.mode)),S},[])},e.fromString=function(_,S){const b=p(_,u.isKanjiModeEnabled()),C=h(b),E=m(C,S),A=c.find_path(E.map,"start","end"),$=[];for(let k=1;k<A.length-1;k++)$.push(E.table[A[k]].node);return e.fromArray(g($))},e.rawSplit=function(_){return e.fromArray(p(_,u.isKanjiModeEnabled()))}})(_s);const nr=Ee,fr=Xn,PC=uC,NC=cC,kC=fs,xC=ps,Vr=hs,Dr=er,OC=dC,Un=vs,UC=ws,RC=Xe,pr=_s;function BC(e,t){const n=e.size,r=xC.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 VC(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 DC(e,t){const n=kC.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 MC(e,t){const n=e.size,r=Un.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 FC(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 l=!1;s<t.length&&(l=(t[s]>>>i&1)===1),e.set(a,u-c,l),i--,i===-1&&(s++,i=7)}if(a+=r,a<0||n<=a){a-=r,r=-r;break}}}function LC(e,t,n){const r=new PC;n.forEach(function(c){r.put(c.mode.bit,4),r.put(c.getLength(),RC.getCharCountIndicator(c.mode,e)),c.write(r)});const a=nr.getSymbolTotalCodewords(e),i=Dr.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 jC(r,e,t)}function jC(e,t,n){const r=nr.getSymbolTotalCodewords(t),a=Dr.getTotalCodewordsCount(t,n),i=r-a,s=Dr.getBlocksCount(t,n),u=r%s,c=s-u,l=Math.floor(r/s),d=Math.floor(i/s),p=d+1,f=l-d,g=new OC(f);let h=0;const m=new Array(s),y=new Array(s);let v=0;const _=new Uint8Array(e.buffer);for(let A=0;A<s;A++){const $=A<c?d:p;m[A]=_.slice(h,h+$),y[A]=g.encode(m[A]),h+=$,v=Math.max(v,$)}const S=new Uint8Array(r);let b=0,C,E;for(C=0;C<v;C++)for(E=0;E<s;E++)C<m[E].length&&(S[b++]=m[E][C]);for(C=0;C<f;C++)for(E=0;E<s;E++)S[b++]=y[E][C];return S}function zC(e,t,n,r){let a;if(Array.isArray(e))a=pr.fromArray(e);else if(typeof e=="string"){let l=t;if(!l){const d=pr.rawSplit(e);l=Un.getBestVersionForData(d,n)}a=pr.fromString(e,l||40)}else throw new Error("Invalid data");const i=Un.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(`
31
+ ***************************************************************************** */e.__assign=function(){return e.__assign=Object.assign||function(s){for(var u,c=1,l=arguments.length;c<l;c++){u=arguments[c];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(s[d]=u[d])}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 l=0,c=Object.getOwnPropertySymbols(i);l<c.length;l++)s.indexOf(c[l])<0&&Object.prototype.propertyIsEnumerable.call(i,c[l])&&(u[c[l]]=i[c[l]]);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),l,d=[],h;try{for(;(s===void 0||s-- >0)&&!(l=c.next()).done;)d.push(l.value)}catch(f){h={error:f}}finally{try{l&&!l.done&&(u=c.return)&&u.call(c)}finally{if(h)throw h.error}}return d}function a(i,s,u){if(u||arguments.length===2)for(var c=0,l=s.length,d;c<l;c++)(d||!(c in s))&&(d||(d=Array.prototype.slice.call(s,0,c)),d[c]=s[c]);return i.concat(d||Array.prototype.slice.call(s))}e.__read=r,e.__rest=t,e.__spreadArray=a,e.__values=n})(uo);var co={};(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={}))})(co);var fe={};Object.defineProperty(fe,"__esModule",{value:!0});var me=co,Zv=me.ActionTypes.Start,Qv=me.ActionTypes.Stop,Xv=me.ActionTypes.Raise,ey=me.ActionTypes.Send,ty=me.ActionTypes.Cancel,ny=me.ActionTypes.NullEvent,ry=me.ActionTypes.Assign,oy=me.ActionTypes.After,ay=me.ActionTypes.DoneState,iy=me.ActionTypes.Log,sy=me.ActionTypes.Init,uy=me.ActionTypes.Invoke,cy=me.ActionTypes.ErrorExecution,ly=me.ActionTypes.ErrorPlatform,dy=me.ActionTypes.ErrorCustom,fy=me.ActionTypes.Update,py=me.ActionTypes.Choose,hy=me.ActionTypes.Pure;fe.after=oy;fe.assign=ry;fe.cancel=ty;fe.choose=py;fe.doneState=ay;fe.error=dy;fe.errorExecution=cy;fe.errorPlatform=ly;fe.init=sy;fe.invoke=uy;fe.log=iy;fe.nullEvent=ny;fe.pure=hy;fe.raise=Xv;fe.send=ey;fe.start=Zv;fe.stop=Qv;fe.update=fy;var Fi={},Tt={};Object.defineProperty(Tt,"__esModule",{value:!0});var my=".",gy={},vy="xstate.guard",yy="";Tt.DEFAULT_GUARD_TYPE=vy;Tt.EMPTY_ACTIVITY_MAP=gy;Tt.STATE_DELIMITER=my;Tt.TARGETLESS_KEY=yy;var Kn={};Object.defineProperty(Kn,"__esModule",{value:!0});var wy=!0;Kn.IS_PRODUCTION=wy;(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=uo,n=Tt,r=Kn,a;function i(w){return Object.keys(w)}function s(w,N,O){O===void 0&&(O=n.STATE_DELIMITER);var x=h(w,O),V=h(N,O);return pe(V)?pe(x)?V===x:!1:pe(x)?x in V:Object.keys(x).every(function(M){return M in V?s(x[M],V[M]):!1})}function u(w){try{return pe(w)||typeof w=="number"?"".concat(w):w.type}catch{throw new Error("Events must be strings or objects with a string event.type property.")}}function c(w){try{return pe(w)||typeof w=="number"?"".concat(w):W(w)?w.name:w.type}catch{throw new Error("Actions must be strings or objects with a string action.type property.")}}function l(w,N){try{return H(w)?w:w.toString().split(N)}catch{throw new Error("'".concat(w,"' is not a valid state path."))}}function d(w){return typeof w=="object"&&"value"in w&&"context"in w&&"event"in w&&"_event"in w}function h(w,N){if(d(w))return w.value;if(H(w))return f(w);if(typeof w!="string")return w;var O=l(w,N);return f(O)}function f(w){if(w.length===1)return w[0];for(var N={},O=N,x=0;x<w.length-1;x++)x===w.length-2?O[w[x]]=w[x+1]:(O[w[x]]={},O=O[w[x]]);return N}function g(w,N){for(var O={},x=Object.keys(w),V=0;V<x.length;V++){var M=x[V];O[M]=N(w[M],M,w,V)}return O}function p(w,N,O){var x,V,M={};try{for(var j=t.__values(Object.keys(w)),L=j.next();!L.done;L=j.next()){var X=L.value,ie=w[X];!O(ie)||(M[X]=N(ie,X,w))}}catch(be){x={error:be}}finally{try{L&&!L.done&&(V=j.return)&&V.call(j)}finally{if(x)throw x.error}}return M}var m=function(w){return function(N){var O,x,V=N;try{for(var M=t.__values(w),j=M.next();!j.done;j=M.next()){var L=j.value;V=V[L]}}catch(X){O={error:X}}finally{try{j&&!j.done&&(x=M.return)&&x.call(M)}finally{if(O)throw O.error}}return V}};function y(w,N){return function(O){var x,V,M=O;try{for(var j=t.__values(w),L=j.next();!L.done;L=j.next()){var X=L.value;M=M[N][X]}}catch(ie){x={error:ie}}finally{try{L&&!L.done&&(V=j.return)&&V.call(j)}finally{if(x)throw x.error}}return M}}function v(w){if(!w)return[[]];if(pe(w))return[[w]];var N=S(Object.keys(w).map(function(O){var x=w[O];return typeof x!="string"&&(!x||!Object.keys(x).length)?[[O]]:v(w[O]).map(function(V){return[O].concat(V)})}));return N}function _(w){var N,O,x={};if(w&&w.length===1&&w[0].length===1)return w[0][0];try{for(var V=t.__values(w),M=V.next();!M.done;M=V.next())for(var j=M.value,L=x,X=0;X<j.length;X++){var ie=j[X];if(X===j.length-2){L[ie]=j[X+1];break}L[ie]=L[ie]||{},L=L[ie]}}catch(be){N={error:be}}finally{try{M&&!M.done&&(O=V.return)&&O.call(V)}finally{if(N)throw N.error}}return x}function S(w){var N;return(N=[]).concat.apply(N,t.__spreadArray([],t.__read(w),!1))}function b(w){return H(w)?w:[w]}function C(w){return w===void 0?[]:b(w)}function E(w,N,O){var x,V;if(W(w))return w(N,O.data);var M={};try{for(var j=t.__values(Object.keys(w)),L=j.next();!L.done;L=j.next()){var X=L.value,ie=w[X];W(ie)?M[X]=ie(N,O.data):M[X]=ie}}catch(be){x={error:be}}finally{try{L&&!L.done&&(V=j.return)&&V.call(j)}finally{if(x)throw x.error}}return M}function A(w){return/^(done|error)\./.test(w)}function $(w){return!!(w instanceof Promise||w!==null&&(W(w)||typeof w=="object")&&W(w.then))}function k(w){return w!==null&&typeof w=="object"&&"transition"in w&&typeof w.transition=="function"}function I(w,N){var O,x,V=t.__read([[],[]],2),M=V[0],j=V[1];try{for(var L=t.__values(w),X=L.next();!X.done;X=L.next()){var ie=X.value;N(ie)?M.push(ie):j.push(ie)}}catch(be){O={error:be}}finally{try{X&&!X.done&&(x=L.return)&&x.call(L)}finally{if(O)throw O.error}}return[M,j]}function B(w,N){return g(w.states,function(O,x){if(!!O){var V=(pe(N)?void 0:N[x])||(O?O.current:void 0);if(!!V)return{current:V,states:B(O,V)}}})}function F(w,N){return{current:N,states:B(w,N)}}function D(w,N,O,x){r.IS_PRODUCTION||e.warn(!!w,"Attempting to update undefined context");var V=w&&O.reduce(function(M,j){var L,X,ie=j.assignment,be={state:x,action:j,_event:N},it={};if(W(ie))it=ie(M,N.data,be);else try{for(var ne=t.__values(Object.keys(ie)),oe=ne.next();!oe.done;oe=ne.next()){var st=oe.value,xt=ie[st];it[st]=W(xt)?xt(M,N.data,be):xt}}catch(Ns){L={error:Ns}}finally{try{oe&&!oe.done&&(X=ne.return)&&X.call(ne)}finally{if(L)throw L.error}}return Object.assign({},M,it)},w);return V}e.warn=function(){},r.IS_PRODUCTION||(e.warn=function(w,N){var O=w instanceof Error?w:void 0;if(!(!O&&w)&&console!==void 0){var x=["Warning: ".concat(N)];O&&x.push(O),console.warn.apply(console,x)}});function H(w){return Array.isArray(w)}function W(w){return typeof w=="function"}function pe(w){return typeof w=="string"}function qe(w,N){if(!!w)return pe(w)?{type:n.DEFAULT_GUARD_TYPE,name:w,predicate:N?N[w]:void 0}:W(w)?{type:n.DEFAULT_GUARD_TYPE,name:w.name,predicate:w}:w}function ot(w){try{return"subscribe"in w&&W(w.subscribe)}catch{return!1}}var Ne=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),at=(a={},a[Ne]=function(){return this},a[Symbol.observable]=function(){return this},a);function we(w){return!!w&&"__xstatenode"in w}function Pt(w){return!!w&&typeof w.send=="function"}var Nt=function(){var w=0;return function(){return w++,w.toString(16)}}();function de(w,N){return pe(w)||typeof w=="number"?t.__assign({type:w},N):w}function Ue(w,N){if(!pe(w)&&"$$type"in w&&w.$$type==="scxml")return w;var O=de(w);return t.__assign({name:O.type,data:O,$$type:"scxml",type:"external"},N)}function en(w,N){var O=b(N).map(function(x){return typeof x=="undefined"||typeof x=="string"||we(x)?{target:x,event:w}:t.__assign(t.__assign({},x),{event:w})});return O}function tn(w){if(!(w===void 0||w===n.TARGETLESS_KEY))return C(w)}function kt(w,N,O){if(!r.IS_PRODUCTION){var x=w.stack?" Stacktrace was '".concat(w.stack,"'"):"";if(w===N)console.error("Missing onError handler for invocation '".concat(O,"', error was '").concat(w,"'.").concat(x));else{var V=N.stack?" Stacktrace was '".concat(N.stack,"'"):"";console.error("Missing onError handler and/or unhandled exception/promise rejection for invocation '".concat(O,"'. ")+"Original error: '".concat(w,"'. ").concat(x," Current error is '").concat(N,"'.").concat(V))}}}function rr(w,N,O,x,V){var M=w.options.guards,j={state:V,cond:N,_event:x};if(N.type===n.DEFAULT_GUARD_TYPE)return((M==null?void 0:M[N.name])||N.predicate)(O,x.data,j);var L=M==null?void 0:M[N.type];if(!L)throw new Error("Guard '".concat(N.type,"' is not implemented on machine '").concat(w.id,"'."));return L(O,x.data,j)}function P(w){return typeof w=="string"?{type:w}:w}function Se(w,N,O){var x=function(){},V=typeof w=="object",M=V?w:null;return{next:((V?w.next:w)||x).bind(M),error:((V?w.error:N)||x).bind(M),complete:((V?w.complete:O)||x).bind(M)}}function nn(w,N){return"".concat(w,":invocation[").concat(N,"]")}e.createInvokeId=nn,e.evaluateGuard=rr,e.flatten=S,e.getActionType=c,e.getEventType=u,e.interopSymbols=at,e.isActor=Pt,e.isArray=H,e.isBehavior=k,e.isBuiltInEvent=A,e.isFunction=W,e.isMachine=we,e.isObservable=ot,e.isPromiseLike=$,e.isStateLike=d,e.isString=pe,e.keys=i,e.mapContext=E,e.mapFilterValues=p,e.mapValues=g,e.matchesState=s,e.nestedPath=y,e.normalizeTarget=tn,e.partition=I,e.path=m,e.pathToStateValue=f,e.pathsToStateValue=_,e.reportUnhandledExceptionOnInvocation=kt,e.symbolObservable=Ne,e.toArray=C,e.toArrayStrict=b,e.toEventObject=de,e.toGuard=qe,e.toInvokeSource=P,e.toObserver=Se,e.toSCXMLEvent=Ue,e.toStatePath=l,e.toStatePaths=v,e.toStateValue=h,e.toTransitionConfigArray=en,e.uniqueId=Nt,e.updateContext=D,e.updateHistoryStates=B,e.updateHistoryValue=F})(Fi);Object.defineProperty(q,"__esModule",{value:!0});var J=uo,Ce=co,he=fe,K=Fi,Li=Kn,Sy=K.toSCXMLEvent({type:he.init});function kr(e,t){return t&&t[e]||void 0}function qn(e,t){var n;if(K.isString(e)||typeof e=="number"){var r=kr(e,t);K.isFunction(r)?n={type:e,exec:r}:r?n=r:n={type:e,exec:void 0}}else if(K.isFunction(e))n={type:e.name||e.toString(),exec:e};else{var r=kr(e.type,t);if(K.isFunction(r))n=J.__assign(J.__assign({},e),{exec:r});else if(r){var a=r.type||e.type;n=J.__assign(J.__assign(J.__assign({},r),e),{type:a})}else n=e}return n}var xr=function(e,t){if(!e)return[];var n=K.isArray(e)?e:[e];return n.map(function(r){return qn(r,t)})};function lo(e){var t=qn(e);return J.__assign(J.__assign({id:K.isString(e)?e:t.id},t),{type:t.type})}function _y(e){return K.isString(e)?{type:he.raise,event:e}:$t(e,{to:Ce.SpecialTargets.Internal})}function ji(e){return{type:he.raise,_event:K.toSCXMLEvent(e.event)}}function $t(e,t){return{to:t?t.to:void 0,type:he.send,event:K.isFunction(e)?e:K.toEventObject(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:K.isFunction(e)?e.name:K.getEventType(e)}}function zi(e,t,n,r){var a={_event:n},i=K.toSCXMLEvent(K.isFunction(e.event)?e.event(t,n.data,a):e.event),s;if(K.isString(e.delay)){var u=r&&r[e.delay];s=K.isFunction(u)?u(t,n.data,a):u}else s=K.isFunction(e.delay)?e.delay(t,n.data,a):e.delay;var c=K.isFunction(e.to)?e.to(t,n.data,a):e.to;return J.__assign(J.__assign({},e),{to:c,_event:i,event:i.data,delay:s})}function fo(e,t){return $t(e,J.__assign(J.__assign({},t),{to:Ce.SpecialTargets.Parent}))}function by(e,t,n){return $t(t,J.__assign(J.__assign({},n),{to:e}))}function Cy(){return fo(he.update)}function Ay(e,t){return $t(e,J.__assign(J.__assign({},t),{to:function(n,r,a){var i=a._event;return i.origin}}))}var Ey=function(e,t){return{context:e,event:t}};function Iy(e,t){return e===void 0&&(e=Ey),{type:he.log,label:t,expr:e}}var Gi=function(e,t,n){return J.__assign(J.__assign({},e),{value:K.isString(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})},Ty=function(e){return{type:he.cancel,sendId:e}};function $y(e){var t=lo(e);return{type:Ce.ActionTypes.Start,activity:t,exec:void 0}}function Py(e){var t=K.isFunction(e)?e:lo(e);return{type:Ce.ActionTypes.Stop,activity:t,exec:void 0}}function Hi(e,t,n){var r=K.isFunction(e.activity)?e.activity(t,n.data):e.activity,a=typeof r=="string"?{id:r}:r,i={type:Ce.ActionTypes.Stop,activity:a};return i}var Ny=function(e){return{type:he.assign,assignment:e}};function ky(e){return typeof e=="object"&&"type"in e}function xy(e,t){var n=t?"#".concat(t):"";return"".concat(Ce.ActionTypes.After,"(").concat(e,")").concat(n)}function Oy(e,t){var n="".concat(Ce.ActionTypes.DoneState,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Uy(e,t){var n="".concat(Ce.ActionTypes.DoneInvoke,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Ry(e,t){var n="".concat(Ce.ActionTypes.ErrorPlatform,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function By(e){return{type:Ce.ActionTypes.Pure,get:e}}function Vy(e,t){if(!Li.IS_PRODUCTION&&(!e||typeof e=="function")){var n=e;e=function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];var i=typeof n=="function"?n.apply(void 0,J.__spreadArray([],J.__read(r),!1)):n;if(!i)throw new Error("Attempted to forward event to undefined actor. This risks an infinite loop in the sender.");return i}}return $t(function(r,a){return a},J.__assign(J.__assign({},t),{to:e}))}function My(e,t){return fo(function(n,r,a){return{type:he.error,data:K.isFunction(e)?e(n,r,a):e}},J.__assign(J.__assign({},t),{to:Ce.SpecialTargets.Parent}))}function Dy(e){return{type:Ce.ActionTypes.Choose,conds:e}}var Fy=function(e){var t,n,r=[];try{for(var a=J.__values(e),i=a.next();!i.done;i=a.next())for(var s=i.value,u=0;u<s.length;){if(s[u].type===he.assign){r.push(s[u]),s.splice(u,1);continue}u++}}catch(c){t={error:c}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r};function Or(e,t,n,r,a,i,s){s===void 0&&(s=!1);var u=s?[]:Fy(a),c=u.length?K.updateContext(n,r,u,t):n,l=s?[n]:void 0,d=[];function h(p){var m;switch(p.type){case he.raise:return ji(p);case he.send:var y=zi(p,c,r,e.options.delays);return Li.IS_PRODUCTION||K.warn(!K.isString(p.delay)||typeof y.delay=="number","No delay reference for delay expression '".concat(p.delay,"' was found on machine '").concat(e.id,"'")),i&&y.to!==Ce.SpecialTargets.Internal&&d.push(y),y;case he.log:{var v=Gi(p,c,r);return i==null||i(v,c,r),v}case he.choose:{var _=p,S=(m=_.conds.find(function(D){var H=K.toGuard(D.cond,e.options.guards);return!H||K.evaluateGuard(e,H,c,r,i?void 0:t)}))===null||m===void 0?void 0:m.actions;if(!S)return[];var b=J.__read(Or(e,t,c,r,[xr(K.toArray(S),e.options.actions)],i,s),2),C=b[0],E=b[1];return c=E,l==null||l.push(c),C}case he.pure:{var S=p.get(c,r.data);if(!S)return[];var A=J.__read(Or(e,t,c,r,[xr(K.toArray(S),e.options.actions)],i,s),2),$=A[0],k=A[1];return c=k,l==null||l.push(c),$}case he.stop:{var v=Hi(p,c,r);return i==null||i(v,n,r),v}case he.assign:{c=K.updateContext(c,r,[p],i?void 0:t),l==null||l.push(c);break}default:var I=qn(p,e.options.actions),B=I.exec;if(i)i(I,c,r);else if(B&&l){var F=l.length-1;I=J.__assign(J.__assign({},I),{exec:function(D){for(var H=[],W=1;W<arguments.length;W++)H[W-1]=arguments[W];B.apply(void 0,J.__spreadArray([l[F]],J.__read(H),!1))}})}return I}}function f(p){var m,y,v=[];try{for(var _=J.__values(p),S=_.next();!S.done;S=_.next()){var b=S.value,C=h(b);C&&(v=v.concat(C))}}catch(E){m={error:E}}finally{try{S&&!S.done&&(y=_.return)&&y.call(_)}finally{if(m)throw m.error}}return d.forEach(function(E){i(E,c,r)}),d.length=0,v}var g=K.flatten(a.map(f));return[g,c]}q.actionTypes=he;q.after=xy;var ue=q.assign=Ny;q.cancel=Ty;var Ly=q.choose=Dy;q.done=Oy;q.doneInvoke=Uy;q.error=Ry;q.escalate=My;q.forwardTo=Vy;q.getActionFunction=kr;q.initEvent=Sy;q.isActionObject=ky;q.log=Iy;q.pure=By;q.raise=_y;q.resolveActions=Or;q.resolveLog=Gi;q.resolveRaise=ji;q.resolveSend=zi;q.resolveStop=Hi;q.respond=Ay;q.send=$t;q.sendParent=fo;q.sendTo=by;q.sendUpdate=Cy;q.start=$y;var jy=q.stop=Py;q.toActionObject=qn;q.toActionObjects=xr;q.toActivityDefinition=lo;var pn=function(e){return jy(e)},zy=ue({attributeToVerify:function(e){}}),Gy=ue({challengeName:function(e){}}),Hy=ue({requiredAttributes:function(e){}}),po=ue({remoteError:function(e){return""}}),ho=ue({formValues:function(e){return{}}}),mo=ue({touched:function(e){return{}}}),Ky=ue({unverifiedContactMethods:function(e){}}),qy=ue({username:function(e){}}),go=ue({validationError:function(e){return{}}}),Wy=ue({challengeName:function(e,t){var n;return(n=t.data)===null||n===void 0?void 0:n.challengeName}}),Yy=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}}),Jy=ue({redirectIntent:function(e){return"confirmPasswordReset"}}),Zy=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}}}),vo=ue({validationError:function(e,t){return t.data}}),yo=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}}),Qy=ue({unverifiedContactMethods:function(e,t){return t.data.unverified}}),qi=ue({user:function(e,t){return t.data.user||t.data}}),Xy=ue({username:function(e,t){var n=e.formValues,r=n.username,a=n.country_code;return a&&(r="".concat(a).concat(r)),r}}),ew=ue({codeDeliveryDetails:function(e,t){return t.data.codeDeliveryDetails}}),tw=ue({authAttributes:function(e,t){return{username:e.formValues.username}}}),wo=ue({formValues:function(e,t){var n,r=t.data,a=r.name,i=r.value;return U(U({},e.formValues),((n={})[a]=i,n))}}),So=ue({formValues:function(e,t){return U(U({},e.formValues),t.data)}}),_o=ue({touched:function(e,t){var n,r=t.data.name;return U(U({},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",l="".concat((r=s.country_code)!==null&&r!==void 0?r:u).concat(s[c]).replace(/[^A-Z0-9+]/gi,""),d=U(U({},s),((n={})[c]=l,n));return delete d.country_code,d}}),nw=Oe,rw=jr,ow=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,aw=/^\w*$/;function iw(e,t){if(nw(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||rw(e)?!0:aw.test(e)||!ow.test(e)||t!=null&&e in Object(t)}var bo=iw,Yi=Kr,sw="Expected a function";function Co(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(sw);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(Co.Cache||Yi),n}Co.Cache=Yi;var uw=Co,cw=uw,lw=500;function dw(e){var t=cw(e,function(r){return n.size===lw&&n.clear(),r}),n=t.cache;return t}var fw=dw,pw=fw,hw=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mw=/\\(\\)?/g,gw=pw(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(hw,function(n,r,a,i){t.push(a?i.replace(mw,"$1"):r||n)}),t}),vw=gw,Aa=Gt,yw=ti,ww=Oe,Sw=jr,_w=1/0,Ea=Aa?Aa.prototype:void 0,Ia=Ea?Ea.toString:void 0;function Ji(e){if(typeof e=="string")return e;if(ww(e))return yw(e,Ji)+"";if(Sw(e))return Ia?Ia.call(e):"";var t=e+"";return t=="0"&&1/e==-_w?"-0":t}var bw=Ji,Cw=bw;function Aw(e){return e==null?"":Cw(e)}var Ew=Aw,Iw=Oe,Tw=bo,$w=vw,Pw=Ew;function Nw(e,t){return Iw(e)?e:Tw(e,t)?[e]:$w(Pw(e))}var Wn=Nw,kw=jr,xw=1/0;function Ow(e){if(typeof e=="string"||kw(e))return e;var t=e+"";return t=="0"&&1/e==-xw?"-0":t}var Zt=Ow,Uw=Wn,Rw=Zt;function Bw(e,t){t=Uw(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Rw(t[n++])];return n&&n==r?e:void 0}var Ao=Bw,Vw=Ao;function Mw(e,t,n){var r=e==null?void 0:Vw(e,t);return r===void 0?n:r}var tt=Mw,Dw=ai,Fw=Yt,Lw=Rn,jw=Oe,zw=Ht,Gw=nt.exports,Hw=Mn,Kw=Vn,qw="[object Map]",Ww="[object Set]",Yw=Object.prototype,Jw=Yw.hasOwnProperty;function Zw(e){if(e==null)return!0;if(zw(e)&&(jw(e)||typeof e=="string"||typeof e.splice=="function"||Gw(e)||Kw(e)||Lw(e)))return!e.length;var t=Fw(e);if(t==qw||t==Ww)return!e.size;if(Hw(e))return!Dw(e).length;for(var n in e)if(Jw.call(e,n))return!1;return!0}var Ur=Zw,Qw=qr,Xw=Kt;function eS(e,t,n){(n!==void 0&&!Xw(e[t],n)||n===void 0&&!(t in e))&&Qw(e,t,n)}var Zi=eS;function tS(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 nS=tS,rS=nS,oS=rS(),aS=oS,iS=Ht,sS=Ke;function uS(e){return sS(e)&&iS(e)}var cS=uS,lS=St,dS=Jr,fS=Ke,pS="[object Object]",hS=Function.prototype,mS=Object.prototype,Qi=hS.toString,gS=mS.hasOwnProperty,vS=Qi.call(Object);function yS(e){if(!fS(e)||lS(e)!=pS)return!1;var t=dS(e);if(t===null)return!0;var n=gS.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Qi.call(n)==vS}var wS=yS;function SS(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Xi=SS,_S=qt,bS=Wt;function CS(e){return _S(e,bS(e))}var AS=CS,Ta=Zi,ES=An.exports,IS=wi,TS=li,$S=Si,$a=Rn,Pa=Oe,PS=cS,NS=nt.exports,kS=Fr,xS=Me,OS=wS,US=Vn,Na=Xi,RS=AS;function BS(e,t,n,r,a,i,s){var u=Na(e,n),c=Na(t,n),l=s.get(c);if(l){Ta(e,n,l);return}var d=i?i(u,c,n+"",e,t,s):void 0,h=d===void 0;if(h){var f=Pa(c),g=!f&&NS(c),p=!f&&!g&&US(c);d=c,f||g||p?Pa(u)?d=u:PS(u)?d=TS(u):g?(h=!1,d=ES(c,!0)):p?(h=!1,d=IS(c,!0)):d=[]:OS(c)||$a(c)?(d=u,$a(u)?d=RS(u):(!xS(u)||kS(u))&&(d=$S(c))):h=!1}h&&(s.set(c,d),a(d,c,r,i,s),s.delete(c)),Ta(e,n,d)}var VS=BS,MS=Gn,DS=Zi,FS=aS,LS=VS,jS=Me,zS=Wt,GS=Xi;function es(e,t,n,r,a){e!==t&&FS(t,function(i,s){if(a||(a=new MS),jS(i))LS(e,t,s,n,es,r,a);else{var u=r?r(GS(e,s),i,s+"",e,t,a):void 0;u===void 0&&(u=i),DS(e,s,u)}},zS)}var HS=es;function KS(e){return e}var Eo=KS;function qS(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 WS=qS,YS=WS,ka=Math.max;function JS(e,t,n){return t=ka(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=ka(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),YS(e,this,u)}}var ZS=JS;function QS(e){return function(){return e}}var XS=QS,e1=XS,xa=ci,t1=Eo,n1=xa?function(e,t){return xa(e,"toString",{configurable:!0,enumerable:!1,value:e1(t),writable:!0})}:t1,r1=n1,o1=800,a1=16,i1=Date.now;function s1(e){var t=0,n=0;return function(){var r=i1(),a=a1-(r-n);if(n=r,a>0){if(++t>=o1)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var u1=s1,c1=r1,l1=u1,d1=l1(c1),f1=d1,p1=Eo,h1=ZS,m1=f1;function g1(e,t){return m1(h1(e,t,p1),e+"")}var v1=g1,y1=Kt,w1=Ht,S1=Bn,_1=Me;function b1(e,t,n){if(!_1(n))return!1;var r=typeof t;return(r=="number"?w1(n)&&S1(t,n.length):r=="string"&&t in n)?y1(n[t],e):!1}var C1=b1,A1=v1,E1=C1;function I1(e){return A1(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&&E1(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 T1=I1,$1=HS,P1=T1,N1=P1(function(e,t,n){$1(e,t,n)}),k1=N1,Io=function(e,t,n,r){return Z(void 0,void 0,void 0,function(){var a,i;return Q(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=k1.apply(void 0,Re([{}],a,!1)),Ur(i)?[2,Promise.resolve()]:[2,Promise.reject(i)]}})})},Nn={getAmplifyConfig:function(){return Z(this,void 0,void 0,function(){return Q(this,function(e){return[2,ce.Amplify.configure()]})})},getCurrentUser:function(){return Z(this,void 0,void 0,function(){return Q(this,function(e){return[2,ce.Auth.currentAuthenticatedUser()]})})},handleSignUp:function(e){return Z(this,void 0,void 0,function(){return Q(this,function(t){return[2,ce.Auth.signUp(e)]})})},handleSignIn:function(e){var t=e.username,n=e.password;return Z(this,void 0,void 0,function(){return Q(this,function(r){return[2,ce.Auth.signIn(t,n)]})})},handleConfirmSignIn:function(e){var t=e.user,n=e.code,r=e.mfaType;return Z(this,void 0,void 0,function(){return Q(this,function(a){return[2,ce.Auth.confirmSignIn(t,n,r)]})})},handleConfirmSignUp:function(e){var t=e.username,n=e.code;return Z(this,void 0,void 0,function(){return Q(this,function(r){switch(r.label){case 0:return[4,ce.Auth.confirmSignUp(t,n)];case 1:return[2,r.sent()]}})})},handleForgotPasswordSubmit:function(e){var t=e.username,n=e.code,r=e.password;return Z(this,void 0,void 0,function(){return Q(this,function(a){return[2,ce.Auth.forgotPasswordSubmit(t,n,r)]})})},handleForgotPassword:function(e){return Z(this,void 0,void 0,function(){return Q(this,function(t){return[2,ce.Auth.forgotPassword(e)]})})},validateCustomSignUp:function(e,t){return Z(this,void 0,void 0,function(){return Q(this,function(n){return[2]})})},validateFormPassword:function(e,t,n){return Z(this,void 0,void 0,function(){var r,a,i,s;return Q(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":Il(r)||a.push("Password must have special characters")}}),[2,a.length!==0?{password:a}:null]):[2,null]})})},validateConfirmPassword:function(e,t){return Z(this,void 0,void 0,function(){var n,r,a,i;return Q(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 Z(this,void 0,void 0,function(){return Q(this,function(n){return[2]})})}},x1=["SMS_MFA","SOFTWARE_TOKEN_MFA"],ur=function(e){return tt(e,"data.challengeName")},Oa=function(e,t){return e===t},Ua=function(e){return x1.includes(e)};function O1(e){var t=e.services;return Jt({initial:"init",id:"signInActor",predictableActionArguments:!0,states:{init:{always:[{target:"autoSignIn",cond:"shouldAutoSignIn"},{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:"setUnverifiedContactMethods"},{target:"resolved"}],onError:{actions:"setRemoteError",target:"edit"}}},resolved:{always:"#signInActor.resolved"},rejected:{always:"#signInActor.rejected"}}},autoSignIn:{initial:"submit",states:{submit:{tags:["pending"],entry:["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:"#signInActor.resolved"}],onError:[{cond:"shouldRedirectToConfirmSignUp",actions:["setCredentials","setConfirmSignUpIntent"],target:"#signInActor.rejected"},{cond:"shouldRedirectToConfirmResetPassword",actions:["setUsernameAuthAttributes","setConfirmResetPasswordIntent"],target:"#signInActor.rejected"},{actions:"setRemoteError",target:"#signInActor.signIn"}]}}}},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:["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","clearUnverifiedContactMethods","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:zy,clearChallengeName:Gy,clearRequiredAttributes:Hy,clearError:po,clearFormValues:ho,clearTouched:mo,clearUnverifiedContactMethods:Ky,clearValidationError:go,handleInput:wo,handleSubmit:So,handleBlur:_o,parsePhoneNumber:Wi,setChallengeName:Wy,setConfirmResetPasswordIntent:Jy,setConfirmSignUpIntent:Zy,setRequiredAttributes:Yy,setCredentials:Ki,setFieldErrors:vo,setRemoteError:yo,setUnverifiedContactMethods:Qy,setUser:qi,setUsernameAuthAttributes:tw,sendUpdate:so()},guards:{shouldConfirmSignIn:function(n,r){return Ua(ur(r))},shouldAutoSignIn:function(n){return(n==null?void 0:n.intent)==="autoSignIn"},shouldRedirectToConfirmSignUp:function(n,r){return r.data.code==="UserNotConfirmedException"},shouldRedirectToConfirmResetPassword:function(n,r){return r.data.code==="PasswordResetRequiredException"},shouldSetupTOTP:function(n,r){return Oa(ur(r),"MFA_SETUP")},shouldForceChangePassword:function(n,r){return Oa(ur(r),"NEW_PASSWORD_REQUIRED")},shouldRequestVerification:function(n,r){var a=r.data,i=a.unverified,s=a.verified;return Ur(s)&&!Ur(i)}},services:{signIn:function(n){return Z(this,void 0,void 0,function(){var r,a,i,s,u,c,l;return Q(this,function(d){switch(d.label){case 0:return r=n.authAttributes,a=r===void 0?{}:r,i=n.formValues,s=i===void 0?{}:i,u=U(U({},a),s),c=u.username,l=u.password,[4,t.handleSignIn({username:c,password:l})];case 1:return[2,d.sent()]}})})},confirmSignIn:function(n){return Z(this,void 0,void 0,function(){var r,a,i,s;return Q(this,function(u){switch(u.label){case 0:return r=n.challengeName,a=n.user,i=n.formValues.confirmation_code,s=Ua(r)?r:void 0,[4,t.handleConfirmSignIn({user:a,code:i,mfaType:s})];case 1:return u.sent(),[4,ce.Auth.currentAuthenticatedUser()];case 2:return[2,u.sent()]}})})},forceNewPassword:function(n){return Z(this,void 0,void 0,function(){var r,a,i,s,u,c,l,d,h;return Q(this,function(f){switch(f.label){case 0:r=n.user,a=n.formValues,i=a.password,a.confirm_password,s=a.phone_number,u=a.country_code,c=ii(a,["password","confirm_password","phone_number","country_code"]),s&&(l="".concat(u).concat(s).replace(/[^A-Z0-9+]/gi,""),c=U(U({},c),{phone_number:l})),f.label=1;case 1:return f.trys.push([1,3,,4]),[4,ce.Auth.completeNewPassword(r,i,c)];case 2:return(d=f.sent()).challengeName?[2,d]:[2,ce.Auth.currentAuthenticatedUser()];case 3:return h=f.sent(),[2,Promise.reject(h)];case 4:return[2]}})})},verifyTotpToken:function(n){return Z(this,void 0,void 0,function(){var r,a,i;return Q(this,function(s){return r=n.formValues,a=n.user,i=r.confirmation_code,[2,ce.Auth.verifyTotpToken(a,i)]})})},federatedSignIn:function(n,r){return Z(this,void 0,void 0,function(){var a;return Q(this,function(i){switch(i.label){case 0:return a=r.data.provider,[4,ce.Auth.federatedSignIn({provider:a})];case 1:return[2,i.sent()]}})})},checkVerifiedContact:function(n){return Z(this,void 0,void 0,function(){var r;return Q(this,function(a){switch(a.label){case 0:return r=n.user,[4,ce.Auth.verifiedContact(r)];case 1:return[2,a.sent()]}})})},verifyUser:function(n){return Z(this,void 0,void 0,function(){var r,a;return Q(this,function(i){switch(i.label){case 0:return r=n.formValues.unverifiedAttr,[4,ce.Auth.verifyCurrentUserAttribute(r)];case 1:return a=i.sent(),n.attributeToVerify=r,[2,a]}})})},confirmVerifyUser:function(n){return Z(this,void 0,void 0,function(){var r,a;return Q(this,function(i){switch(i.label){case 0:return r=n.attributeToVerify,a=n.formValues.confirmation_code,[4,ce.Auth.verifyCurrentUserAttributeSubmit(r,a)];case 1:return[2,i.sent()]}})})},validateFields:function(n){return Z(this,void 0,void 0,function(){return Q(this,function(r){return[2,Io(n.formValues,n.touched,n.passwordSettings,[Nn.validateConfirmPassword])]})})}}})}var U1=Jt({initial:"pending",id:"signOutActor",predictableActionArguments:!0,states:{pending:{tags:["pending"],invoke:{src:"signOut",onDone:"resolved",onError:"rejected"}},resolved:{type:"final"},rejected:{type:"final"}}},{services:{signOut:function(){return ce.Auth.signOut()}}});function R1(e){var t=e.services;return Jt({id:"resetPasswordActor",initial:"init",predictableActionArguments:!0,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:po,clearFormValues:ho,clearTouched:mo,clearUsername:qy,clearValidationError:go,handleInput:wo,handleSubmit:So,handleBlur:_o,setFieldErrors:vo,setRemoteError:yo,setUsername:Xy,sendUpdate:so()},guards:{shouldAutoConfirmReset:function(n,r){return!(!n.intent||n.intent!=="confirmPasswordReset")}},services:{resetPassword:function(n){return Z(this,void 0,void 0,function(){var r;return Q(this,function(a){return r=n.username,[2,t.handleForgotPassword(r)]})})},confirmResetPassword:function(n){return Z(this,void 0,void 0,function(){var r,a,i,s;return Q(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 Z(this,void 0,void 0,function(){return Q(this,function(a){return[2,Io(n.formValues,n.touched,n.passwordSettings,[Nn.validateConfirmPassword])]})})}}})}var B1="__lodash_hash_undefined__";function V1(e){return this.__data__.set(e,B1),this}var M1=V1;function D1(e){return this.__data__.has(e)}var F1=D1,L1=Kr,j1=M1,z1=F1;function kn(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new L1;++t<n;)this.add(e[t])}kn.prototype.add=kn.prototype.push=j1;kn.prototype.has=z1;var G1=kn;function H1(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 K1=H1;function q1(e,t){return e.has(t)}var W1=q1,Y1=G1,J1=K1,Z1=W1,Q1=1,X1=2;function e_(e,t,n,r,a,i){var s=n&Q1,u=e.length,c=t.length;if(u!=c&&!(s&&c>u))return!1;var l=i.get(e),d=i.get(t);if(l&&d)return l==t&&d==e;var h=-1,f=!0,g=n&X1?new Y1:void 0;for(i.set(e,t),i.set(t,e);++h<u;){var p=e[h],m=t[h];if(r)var y=s?r(m,p,h,t,e,i):r(p,m,h,e,t,i);if(y!==void 0){if(y)continue;f=!1;break}if(g){if(!J1(t,function(v,_){if(!Z1(g,_)&&(p===v||a(p,v,n,r,i)))return g.push(_)})){f=!1;break}}else if(!(p===m||a(p,m,n,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var ts=e_;function t_(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}var n_=t_;function r_(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var o_=r_,Ra=Gt,Ba=yi,a_=Kt,i_=ts,s_=n_,u_=o_,c_=1,l_=2,d_="[object Boolean]",f_="[object Date]",p_="[object Error]",h_="[object Map]",m_="[object Number]",g_="[object RegExp]",v_="[object Set]",y_="[object String]",w_="[object Symbol]",S_="[object ArrayBuffer]",__="[object DataView]",Va=Ra?Ra.prototype:void 0,cr=Va?Va.valueOf:void 0;function b_(e,t,n,r,a,i,s){switch(n){case __:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case S_:return!(e.byteLength!=t.byteLength||!i(new Ba(e),new Ba(t)));case d_:case f_:case m_:return a_(+e,+t);case p_:return e.name==t.name&&e.message==t.message;case g_:case y_:return e==t+"";case h_:var u=s_;case v_:var c=r&c_;if(u||(u=u_),e.size!=t.size&&!c)return!1;var l=s.get(e);if(l)return l==t;r|=l_,s.set(e,t);var d=i_(u(e),u(t),r,a,i,s);return s.delete(e),d;case w_:if(cr)return cr.call(e)==cr.call(t)}return!1}var C_=b_,Ma=mi,A_=1,E_=Object.prototype,I_=E_.hasOwnProperty;function T_(e,t,n,r,a,i){var s=n&A_,u=Ma(e),c=u.length,l=Ma(t),d=l.length;if(c!=d&&!s)return!1;for(var h=c;h--;){var f=u[h];if(!(s?f in t:I_.call(t,f)))return!1}var g=i.get(e),p=i.get(t);if(g&&p)return g==t&&p==e;var m=!0;i.set(e,t),i.set(t,e);for(var y=s;++h<c;){f=u[h];var v=e[f],_=t[f];if(r)var S=s?r(_,v,f,t,e,i):r(v,_,f,e,t,i);if(!(S===void 0?v===_||a(v,_,n,r,i):S)){m=!1;break}y||(y=f=="constructor")}if(m&&!y){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 $_=T_,lr=Gn,P_=ts,N_=C_,k_=$_,Da=Yt,Fa=Oe,La=nt.exports,x_=Vn,O_=1,ja="[object Arguments]",za="[object Array]",hn="[object Object]",U_=Object.prototype,Ga=U_.hasOwnProperty;function R_(e,t,n,r,a,i){var s=Fa(e),u=Fa(t),c=s?za:Da(e),l=u?za:Da(t);c=c==ja?hn:c,l=l==ja?hn:l;var d=c==hn,h=l==hn,f=c==l;if(f&&La(e)){if(!La(t))return!1;s=!0,d=!1}if(f&&!d)return i||(i=new lr),s||x_(e)?P_(e,t,n,r,a,i):N_(e,t,c,n,r,a,i);if(!(n&O_)){var g=d&&Ga.call(e,"__wrapped__"),p=h&&Ga.call(t,"__wrapped__");if(g||p){var m=g?e.value():e,y=p?t.value():t;return i||(i=new lr),a(m,y,n,r,i)}}return f?(i||(i=new lr),k_(e,t,n,r,a,i)):!1}var B_=R_,V_=B_,Ha=Ke;function ns(e,t,n,r,a){return e===t?!0:e==null||t==null||!Ha(e)&&!Ha(t)?e!==e&&t!==t:V_(e,t,n,r,ns,a)}var rs=ns,M_=Gn,D_=rs,F_=1,L_=2;function j_(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],l=e[c],d=u[1];if(s&&u[2]){if(l===void 0&&!(c in e))return!1}else{var h=new M_;if(r)var f=r(l,d,c,e,t,h);if(!(f===void 0?D_(d,l,F_|L_,r,h):f))return!1}}return!0}var z_=j_,G_=Me;function H_(e){return e===e&&!G_(e)}var os=H_,K_=os,q_=Dn;function W_(e){for(var t=q_(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,K_(a)]}return t}var Y_=W_;function J_(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var as=J_,Z_=z_,Q_=Y_,X_=as;function eb(e){var t=Q_(e);return t.length==1&&t[0][2]?X_(t[0][0],t[0][1]):function(n){return n===e||Z_(n,e,t)}}var tb=eb;function nb(e,t){return e!=null&&t in Object(e)}var rb=nb,ob=Wn,ab=Rn,ib=Oe,sb=Bn,ub=Lr,cb=Zt;function lb(e,t,n){t=ob(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var s=cb(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&&ub(a)&&sb(s,a)&&(ib(e)||ab(e)))}var db=lb,fb=rb,pb=db;function hb(e,t){return e!=null&&pb(e,t,fb)}var mb=hb,gb=rs,vb=tt,yb=mb,wb=bo,Sb=os,_b=as,bb=Zt,Cb=1,Ab=2;function Eb(e,t){return wb(e)&&Sb(t)?_b(bb(e),t):function(n){var r=vb(n,e);return r===void 0&&r===t?yb(n,e):gb(t,r,Cb|Ab)}}var Ib=Eb;function Tb(e){return function(t){return t==null?void 0:t[e]}}var $b=Tb,Pb=Ao;function Nb(e){return function(t){return Pb(t,e)}}var kb=Nb,xb=$b,Ob=kb,Ub=bo,Rb=Zt;function Bb(e){return Ub(e)?xb(Rb(e)):Ob(e)}var Vb=Bb,Mb=tb,Db=Ib,Fb=Eo,Lb=Oe,jb=Vb;function zb(e){return typeof e=="function"?e:e==null?Fb:typeof e=="object"?Lb(e)?Db(e[0],e[1]):Mb(e):jb(e)}var Gb=zb,Hb=Wr,Kb=Wn,qb=Bn,Ka=Me,Wb=Zt;function Yb(e,t,n,r){if(!Ka(e))return e;t=Kb(t,e);for(var a=-1,i=t.length,s=i-1,u=e;u!=null&&++a<i;){var c=Wb(t[a]),l=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(a!=s){var d=u[c];l=r?r(d,c,u):void 0,l===void 0&&(l=Ka(d)?d:qb(t[a+1])?[]:{})}Hb(u,c,l),u=u[c]}return e}var Jb=Yb,Zb=Ao,Qb=Jb,Xb=Wn;function e0(e,t,n){for(var r=-1,a=t.length,i={};++r<a;){var s=t[r],u=Zb(e,s);n(u,s)&&Qb(i,Xb(s,e),u)}return i}var t0=e0,n0=ti,r0=Gb,o0=t0,a0=gi;function i0(e,t){if(e==null)return{};var n=n0(a0(e),function(r){return[r]});return t=r0(t),o0(e,n,function(r,a){return t(r,a[0])})}var s0=i0;function u0(e){var t=e.services;return Jt({id:"signUpActor",initial:"init",predictableActionArguments:!0,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","setCredentials"]},{target:"resolved",actions:["setUser","setCredentials","setCodeDeliveryDetails"]}],onError:{target:"idle",actions:"setRemoteError"}}},skipConfirm:{always:{target:"#signUpActor.resolved",actions:"setAutoSignInIntent"}},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:"setAutoSignInIntent",cond:"isUserAlreadyConfirmed"},{target:"edit",actions:"setRemoteError"}]}},submit:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"confirmSignUp",onDone:{target:"#signUpActor.resolved",actions:"setAutoSignInIntent"},onError:{target:"edit",actions:"setRemoteError"}}}}},resolved:{type:"final",data:function(n,r){var a=n.authAttributes,i=a.username,s=a.password;return{user:tt(r,"data.user")||n.user,authAttributes:{username:i,password:s},intent:n.intent}}}}},{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:po,clearFormValues:ho,clearTouched:mo,clearValidationError:go,handleInput:wo,handleSubmit:So,handleBlur:_o,parsePhoneNumber:Wi,setCredentials:Ki,setFieldErrors:vo,setRemoteError:yo,setCodeDeliveryDetails:ew,setUser:qi,sendUpdate:so(),setAutoSignInIntent:Ie({intent:function(n){return"autoSignIn"}})},services:{confirmSignUp:function(n,r){return Z(this,void 0,void 0,function(){var a,i,s,u,c;return Q(this,function(l){switch(l.label){case 0:return a=n.user,i=n.authAttributes,s=n.formValues,u=s.confirmation_code,c=tt(a,"username")||tt(i,"username"),[4,t.handleConfirmSignUp({username:c,code:u})];case 1:return[2,l.sent()]}})})},resendConfirmationCode:function(n,r){return Z(this,void 0,void 0,function(){var a,i,s;return Q(this,function(u){return a=n.user,i=n.authAttributes,s=tt(a,"username")||tt(i,"username"),[2,ce.Auth.resendSignUp(s)]})})},federatedSignIn:function(n,r){return Z(this,void 0,void 0,function(){var a;return Q(this,function(i){switch(i.label){case 0:return a=r.data.provider,[4,ce.Auth.federatedSignIn({provider:a})];case 1:return[2,i.sent()]}})})},signUp:function(n,r){return Z(this,void 0,void 0,function(){var a,i,s,u,c,l,d;return Q(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],l=u.password,d=s0(a,function(f,g){switch(g){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 g.startsWith("custom:")}}),[4,t.handleSignUp({username:c,password:l,attributes:d})];case 1:return[2,h.sent()]}})})},validateSignUp:function(n,r){return Z(this,void 0,void 0,function(){return Q(this,function(a){return[2,Io(n.formValues,n.touched,n.passwordSettings,[t.validateFormPassword,t.validateConfirmPassword,t.validatePreferredUsername,t.validateCustomSignUp])]})})}}})}function c0(){return Jt({id:"authenticator",initial:"idle",context:{user:void 0,config:{},services:Nn,actorRef:void 0,hasSetup:!1},predictableActionArguments:!0,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:"#authenticator.signIn",actions:"setActorDoneData",cond:"shouldAutoSignIn"}}},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:Ly([{cond:"hasActor",actions:Jv(function(e){return e.actorRef})}]),setUser:Ie({user:function(e,t){return t.data}}),setActorDoneData:Ie({actorDoneData:function(e,t){var n,r;return{authAttributes:U({},(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:Ie({user:void 0}),clearActorDoneData:Ie({actorDoneData:void 0}),applyAmplifyConfig:Ie({config:function(e,t){var n,r,a,i,s,u,c,l,d,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:[],g=(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:[],p=(l=(c=t.data.aws_cognito_social_providers)===null||c===void 0?void 0:c.map(function(C){return C.toLowerCase()}))!==null&&l!==void 0?l:[],m=t.data.aws_cognito_password_protection_settings||{};h.length===0&&h.push("username");var y=e.config,v=y.loginMechanisms,_=y.signUpAttributes,S=y.socialProviders,b=y.initialState;return{loginMechanisms:v!=null?v:h,formFields:(d=l0(y.formFields))!==null&&d!==void 0?d:{},passwordSettings:m,signUpAttributes:_!=null?_:Array.from(new Set(Re(Re([],f,!0),g,!0))),socialProviders:S!=null?S:p.sort(),initialState:b}}}),spawnSignInActor:Ie({actorRef:function(e,t){var n,r,a,i,s,u,c=e.services,l=O1({services:c}).withContext({authAttributes:(r=(n=e.actorDoneData)===null||n===void 0?void 0:n.authAttributes)!==null&&r!==void 0?r:{},user:e.user,intent:(a=e.actorDoneData)===null||a===void 0?void 0:a.intent,country_code:"+1",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});return ln(l,{name:"signInActor"})}}),spawnSignUpActor:Ie({actorRef:function(e,t){var n,r,a,i,s,u,c,l=e.services,d=u0({services:l}).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 ln(d,{name:"signUpActor"})}}),spawnResetPasswordActor:Ie({actorRef:function(e,t){var n,r,a,i,s=e.services,u=R1({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 ln(u,{name:"resetPasswordActor"})}}),spawnSignOutActor:Ie({actorRef:function(e){var t=U1.withContext({user:e.user});return ln(t,{name:"signOutActor"})}}),stopSignInActor:pn("signInActor"),stopSignUpActor:pn("signUpActor"),stopResetPasswordActor:pn("resetPasswordActor"),stopSignOutActor:pn("signOutActor"),configure:Ie(function(e,t){var n=t.data,r=n.services,a=ii(n,["services"]);return{services:U(U({},Nn),r),config:a}}),setHasSetup:Ie({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"},shouldAutoSignIn:function(e,t){var n;return((n=t.data)===null||n===void 0?void 0:n.intent)==="autoSignIn"},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 l0(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}const d0={key:0,class:"amplify-flex amplify-alert amplify-alert--error amplify-authenticator__base","data-variation":"error",role:"alert"},f0={class:"amplify-flex amplify-authenticator__icon-wrapper"},p0=o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor"},[o.createElementVNode("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"})],-1),h0=o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor"},[o.createElementVNode("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})],-1),Fe={__name:"base-alert",setup(e){const t=o.ref(!0),n=R("Dismiss alert");function r(){t.value=!1}return(a,i)=>{const s=_e;return t.value?(o.openBlock(),o.createElementBlock("div",d0,[o.createElementVNode("div",f0,[p0,o.createElementVNode("div",null,[o.renderSlot(a.$slots,"default")])]),o.createVNode(s,{class:"amplify-field-group__control amplify-alert__dismiss","aria-label":o.unref(n),fullwidth:!1,variation:"link",type:"button",onClick:r},{default:o.withCtx(()=>[h0]),_:1},8,["aria-label"])])):o.createCommentVNode("",!0)}}};var Yn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n};const m0={};function g0(e,t){return o.openBlock(),o.createElementBlock("div",null,[o.renderSlot(e.$slots,"default")])}var ye=Yn(m0,[["render",g0]]);const Le=o.defineComponent({__name:"base-form",setup(e){let t=o.useSlots();return(n,r)=>o.renderSlot(n.$slots,"formt",o.mergeProps(n.$attrs,{slotData:o.unref(t).default&&o.unref(t).default()}),()=>[o.createElementVNode("form",o.mergeProps({"data-amplify-form":""},n.$attrs),[o.renderSlot(n.$slots,"default")],16)])}}),je=o.defineComponent({__name:"base-footer",setup(e){let t=o.useSlots();return(n,r)=>o.renderSlot(n.$slots,"footert",o.mergeProps(n.$attrs,{slotData:o.unref(t).default&&o.unref(t).default()}),()=>[o.createElementVNode("footer",o.normalizeProps(o.guardReactiveProps(n.$attrs)),[o.renderSlot(n.$slots,"default")],16)])}});function v0(e){return o.getCurrentScope()?(o.onScopeDispose(e),!0):!1}function $e(e){let t=0,n,r;const a=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return(...i)=>(t+=1,n||(r=o.effectScope(!0),n=r.run(()=>e(...i))),v0(a),n)}var xn=globalThis&&globalThis.__assign||function(){return xn=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},xn.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,l=t.delays,d=t.state,h=y0(t,["context","guards","actions","activities","services","delays","state"]),f={context:a,guards:i,actions:s,activities:u,services:c,delays:l},g=r.withConfig(f,function(){return xn(xn({},r.context),a)}),p=Di(g,h).start(d?xe.create(d):void 0),m;return o.onMounted(function(){n&&(m=p.subscribe(w0(n)))}),o.onBeforeUnmount(function(){p.stop(),m==null||m.unsubscribe()}),p}function _0(e){return"state"in e}var qa=function(){};function b0(e){return"getSnapshot"in e?e.getSnapshot():_0(e)?e.state:void 0}function is(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(l){return r.value=l},error:qa,complete:qa}).unsubscribe;u(function(){return c()})},{immediate:!0}),{state:r,send:a}}const ss={error:"",hasValidationErrors:!1,isPending:!1,route:"",authStatus:"",user:"",validationErrors:[""],codeDeliveryDetails:{val:"",DeliveryMedium:""},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},Rr=o.ref(),Cn=o.reactive({...ss,send:"",state:""}),Pe=e=>(e&&(Rr.value=e),is(Rr.value)),C0=()=>(Wa(),o.watchEffect(()=>{Wa()}),Cn),Ae=C0;function Wa(){if(!Rr.value)return;const{state:e,send:t}=Pe(),n=si({send:t,state:e.value});for(const r of Object.keys(ss))Cn[r]=n[r];Cn.send=t,Cn.state=e}const mn=o.defineComponent({__name:"federated-sign-in-button",props:{provider:String},setup(e){const t=e,{provider:n}=o.toRefs(t),{send:r}=Pe(),a=()=>{r({type:"FEDERATED_SIGN_IN",data:{provider:n==null?void 0:n.value}})};return(i,s)=>{const u=ye,c=_e;return o.openBlock(),o.createBlock(c,{class:"amplify-field-group__control federated-sign-in-button amplify-authenticator__font",fullwidth:!1,style:{"font-weight":"normal"},type:"button",onClick:a},{default:o.withCtx(()=>[o.createVNode(u,{class:"amplify-flex federated-sign-in-button-row amplify-authenticator__sign-in-button-wrapper"},{default:o.withCtx(()=>[o.renderSlot(i.$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"},I0=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),T0={class:"amplify-text amplify-authenticator__federated-text"},$0=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),Jn=o.defineComponent({__name:"federated-sign-in",setup(e){var v;const{state:t}=Pe(),n=$e(Ae),{route:r}=n(),{value:{context:a}}=t,i=(v=a==null?void 0:a.config)==null?void 0:v.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"),l=i==null?void 0:i.includes("google"),d=c||l||s||u,h=r==="signUp"?"Up":"In",f=o.computed(()=>gr),g=o.computed(()=>R(`Sign ${h} with Amazon`)),p=o.computed(()=>R(`Sign ${h} with Apple`)),m=o.computed(()=>R(`Sign ${h} with Facebook`)),y=o.computed(()=>R(`Sign ${h} with Google`));return(_,S)=>{const b=ye;return o.unref(d)?(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(mn,{key:0,provider:o.unref(f).Amazon},{default:o.withCtx(()=>[A0,o.createElementVNode("p",E0,o.toDisplayString(o.unref(g)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),o.unref(u)?(o.openBlock(),o.createBlock(mn,{key:1,provider:o.unref(f).Apple},{default:o.withCtx(()=>[I0,o.createElementVNode("p",T0,o.toDisplayString(o.unref(p)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),o.unref(c)?(o.openBlock(),o.createBlock(mn,{key:2,provider:o.unref(f).Facebook},{default:o.withCtx(()=>[$0,o.createElementVNode("p",P0,o.toDisplayString(o.unref(m)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),o.unref(l)?(o.openBlock(),o.createBlock(mn,{key:3,provider:o.unref(f).Google},{default:o.withCtx(()=>[N0,o.createElementVNode("p",k0,o.toDisplayString(o.unref(y)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),x0]),_:1})):o.createCommentVNode("",!0)}}});let O0=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=n[e]&63;r<36?t+=r.toString(36):r<62?t+=(r-26).toString(36).toUpperCase():r<63?t+="_":t+="-"}return t};const U0={},R0={"data-amplify-label":""};function B0(e,t){return o.openBlock(),o.createElementBlock("label",R0,[o.renderSlot(e.$slots,"default")])}var Zn=Yn(U0,[["render",B0]]);const Qn=o.defineComponent({__name:"base-input",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))}}),V0=["aria-label"],M0={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),F0=[D0],L0={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},j0=o.createElementVNode("path",{d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z",fill:"none"},null,-1),z0=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),G0=[j0,z0],H0={inheritAttrs:!1},To=o.defineComponent({...H0,__name:"password-control",props:{name:null,label:null,autocomplete:null,hasError:{type:Boolean},labelHidden:{type:Boolean,default:!0},placeholder:null,required:{type:Boolean,default:!0},describedBy:null},setup(e){var _;const t=e,n=R("Show password"),r=R("Hide password"),a=o.ref("password"),i=o.ref(n),s=Math.floor(Math.random()*999999),{name:u,label:c,autocomplete:l,hasError:d,labelHidden:h,placeholder:f,required:g}=o.toRefs(t);let p=o.ref("");function m(){i.value=i.value===n?r:n,a.value=a.value==="password"?"text":"password"}const y=R((_=f==null?void 0:f.value)!=null?_:c.value),v=R(c.value);return(S,b)=>{const C=Zn,E=Qn,A=ye;return o.openBlock(),o.createBlock(A,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield amplify-authenticator__column"},{default:o.withCtx(()=>{var $;return[o.createVNode(C,{class:o.normalizeClass(["amplify-label",{"amplify-visually-hidden":($=o.unref(h))!=null?$:!0}]),for:"amplify-field-"+o.unref(s)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(v)),1)]),_:1},8,["class","for"]),o.createVNode(A,{class:"amplify-flex amplify-field-group"},{default:o.withCtx(()=>{var k;return[o.createVNode(E,o.mergeProps(S.$attrs,{modelValue:o.unref(p),"onUpdate:modelValue":b[0]||(b[0]=I=>o.isRef(p)?p.value=I:p=I),class:"amplify-input amplify-field-group__control",id:"amplify-field-"+o.unref(s),"data-amplify-password":"true",name:o.unref(u),autocomplete:o.unref(l),required:(k=o.unref(g))!=null?k:!0,placeholder:o.unref(y),type:a.value,"aria-invalid":o.unref(d),"aria-describedBy":e.describedBy}),null,16,["modelValue","id","name","autocomplete","required","placeholder","type","aria-invalid","aria-describedBy"]),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",M0,F0)):(o.openBlock(),o.createElementBlock("svg",L0,G0))],8,V0)]),_:1})]}),_:1})]}),_:1})}}}),K0=["value","selected"],q0=o.defineComponent({__name:"base-select",props:{selectValue:{default:""},options:null},emits:["update:selectValue"],setup(e,{emit:t}){const n=e,{options:r,selectValue:a}=o.toRefs(n),i=s=>{t("update:selectValue",s.target.value)};return(s,u)=>(o.openBlock(),o.createElementBlock("select",{onChange:u[0]||(u[0]=c=>i(c))},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(r),(c,l)=>(o.openBlock(),o.createElementBlock("option",{key:l,value:c,selected:c==o.unref(a)?!0:void 0},o.toDisplayString(c),9,K0))),128))],32))}}),W0=o.createTextVNode(o.toDisplayString("Country Code")),Y0=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),J0=o.defineComponent({__name:"alias-control",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"},hasError:{type:Boolean},describedBy:null},setup(e){const t=e,{label:n,name:r,placeholder:a,autocomplete:i,labelHidden:s,required:u,dialCode:c,dialCodeList:l}=o.toRefs(t),d=Math.floor(Math.random()*999999),h=Math.floor(Math.random()*999999);return(f,g)=>{const p=Zn,m=q0,y=ye,v=Qn;return o.openBlock(),o.createBlock(y,{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":o.unref(s)}]},f.$attrs),{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(n)),1)]),_:1},16,["for","class"]),o.createVNode(y,{class:"amplify-flex amplify-field-group"},{default:o.withCtx(()=>[o.createVNode(y,{class:"amplify-field-group__outer-start"},{default:o.withCtx(()=>[e.type==="tel"?(o.openBlock(),o.createBlock(y,{key:0,class:"amplify-flex amplify-field amplify-selectfield amplify-countrycodeselect amplify-dialcodeselect amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(p,o.mergeProps({for:"amplify-field-"+o.unref(h),class:"amplify-label amplify-visually-hidden"},f.$attrs),{default:o.withCtx(()=>[W0]),_:1},16,["for"]),o.createVNode(y,{class:"amplify-select__wrapper"},{default:o.withCtx(()=>[o.createVNode(m,{class:"amplify-select amplify-field-group__control",id:"amplify-field-"+o.unref(h),autocomplete:"tel-country-code","aria-label":"country code",name:"country_code",options:o.unref(l),"select-value":o.unref(c)},null,8,["id","options","select-value"]),o.createVNode(y,{class:"amplify-flex amplify-select__icon-wrapper amplify-authenticator__icon-wrapper"},{default:o.withCtx(()=>[Y0]),_:1})]),_:1})]),_:1})):o.createCommentVNode("",!0)]),_:1}),o.createVNode(y,{class:"amplify-field-group__field-wrapper"},{default:o.withCtx(()=>{var _;return[o.createVNode(v,{class:"amplify-input amplify-field-group__control",id:"amplify-field-"+o.unref(d),autocomplete:o.unref(i),name:o.unref(r),required:(_=o.unref(u))!=null?_:!0,type:e.type,placeholder:o.unref(a),"aria-invalid":e.hasError,"aria-describedBy":e.describedBy},null,8,["id","autocomplete","name","required","type","placeholder","aria-invalid","aria-describedBy"])]}),_:1})]),_:1})]),_:1})}}}),Z0=["id"],us=o.defineComponent({__name:"base-form-field",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=s==="password",c=O0(12),l=o.computed(()=>Cl(i.value[n.value])),d=o.computed(()=>{var f;return((f=l.value)==null?void 0:f.length)>0}),h=o.computed(()=>d.value?c:void 0);return(f,g)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[u?(o.openBlock(),o.createBlock(To,{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,hasError:o.unref(d),describedBy:o.unref(h)},null,8,["name","label","placeholder","required","label-hidden","autocomplete","hasError","describedBy"])):(o.openBlock(),o.createBlock(J0,{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,hasError:o.unref(d),describedBy:o.unref(h)},null,8,["name","label","placeholder","required","label-hidden","autocomplete","dial-code","dial-code-list","type","hasError","describedBy"])),o.unref(d)?(o.openBlock(),o.createElementBlock("div",{key:2,id:o.unref(h)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(l),(p,m)=>(o.openBlock(),o.createElementBlock("p",{key:m,role:"alert","data-variation":"error",class:"amplify-text amplify-text--error"},o.toDisplayString(o.unref(R)(p)),1))),128))],8,Z0)):o.createCommentVNode("",!0)],64))}}),ze=o.defineComponent({__name:"base-form-fields",props:{route:null},setup(e){const t=e,{route:n}=o.toRefs(t),{state:r}=Pe();let a=[];return o.onBeforeMount(()=>{a=Zg(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(us,{name:u,key:u,formField:c},null,8,["name","formField"]))),128))}}),Q0=o.createElementVNode("legend",{class:"amplify-visually-hidden"},"Sign in",-1),X0={"data-amplify-footer":""},$o=o.defineComponent({__name:"sign-in",emits:["signInSubmit","forgotPasswordClicked","createAccountClicked"],setup(e,{emit:t}){const r=$e(Ae)(),a=o.useAttrs(),i=o.computed(()=>Sl("Forgot your password? ")?R("Forgot your password? "):R("Forgot your password?")),s=o.computed(()=>R("Sign in")),u=o.computed(()=>R("Signing in")),{state:c,send:l}=Pe(),d=o.computed(()=>Te(c.value)),h=m=>{const{name:y,value:v}=m.target;l({type:"CHANGE",data:{name:y,value:v}})},f=m=>{a!=null&&a.onSignInSubmit?t("signInSubmit",m):g(m)},g=m=>{r.submitForm(De(m))},p=()=>{a!=null&&a.onForgotPasswordClicked?t("forgotPasswordClicked"):l({type:"RESET_PASSWORD"})};return(m,y)=>{const v=Be,_=Fe,S=_e,b=ye,C=Le,E=je;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:p})]),default:o.withCtx(()=>[o.createVNode(Jn),o.createVNode(b,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(v,{disabled:o.unref(d).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(()=>[Q0,o.createVNode(ze,{route:"signIn"})]),_:3},8,["disabled"]),o.unref(d).context.remoteError?(o.openBlock(),o.createBlock(_,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(R)(o.unref(d).context.remoteError)),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(S,{disabled:o.unref(d).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(d).matches("signIn.submit")?o.unref(u):o.unref(s)),1)]),_:1},8,["disabled"])]),_:3})]),_:3},8,["onSubmit"])]),_:3},16),o.createVNode(E,null,{default:o.withCtx(()=>[o.renderSlot(m.$slots,"footer",{},()=>[o.createElementVNode("div",X0,[o.createVNode(S,{onClick:p,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})])}}}),Po=o.defineComponent({__name:"authenticator-sign-up-form-fields",setup(e){return(t,n)=>(o.openBlock(),o.createBlock(ze,{route:"signUp"}))}}),No=o.defineComponent({__name:"sign-up",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(),l=o.computed(()=>R("Create Account")),d=p=>{let{checked:m,name:y,type:v,value:_}=p.target;v==="checkbox"&&!m&&(_=void 0),a.updateForm({name:y,value:_})};function h(p){const{name:m}=p.target;a.updateBlur({name:m})}const f=p=>{c!=null&&c.onSignUpSubmit?t("signUpSubmit",p):g(p)},g=p=>{a.submitForm(De(p))};return(p,m)=>{const y=Be,v=Fe,_=_e,S=ye,b=Le,C=je;return o.renderSlot(p.$slots,"signUpSlotI",o.normalizeProps(o.guardReactiveProps(p.$attrs)),()=>[o.renderSlot(p.$slots,"header"),o.createVNode(S,o.normalizeProps(o.guardReactiveProps(p.$attrs)),{default:o.withCtx(()=>[o.createVNode(b,{onInput:d,onBlurCapture:h,onSubmit:o.withModifiers(f,["prevent"])},{default:o.withCtx(()=>[o.createVNode(Jn),o.createVNode(S,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(y,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(s)},{fieldSetI:o.withCtx(({slotData:E})=>[o.renderSlot(p.$slots,"signup-fields",{info:E})]),default:o.withCtx(()=>[o.createVNode(Po)]),_:3},8,["disabled"]),o.unref(u)?(o.openBlock(),o.createBlock(v,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(R)(o.unref(u))),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(_,{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(l)),1)]),_:1},8,["disabled"])]),_:3})]),_:3},8,["onSubmit"])]),_:3},16),o.createVNode(C,null,{default:o.withCtx(()=>[o.renderSlot(p.$slots,"footer")]),_:3})])}}}),eC=o.defineComponent({__name:"base-two-tab-item",props:{label:null,id:null,active:{type:Boolean,default:!1}},setup(e){const t=e,{active:n,id:r,label:a}=o.toRefs(t);return(i,s)=>{const u=ye;return o.openBlock(),o.createBlock(u,{tabindex:o.unref(n)?0:-1,"data-state":o.unref(n)?"active":"inactive","aria-selected":o.unref(n)?"true":"false","aria-controls":`radix-id-${o.unref(r)}-8-content-0`,id:`radix-id-${o.unref(r)}-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(a)),1)]),_:1},8,["tabindex","data-state","aria-selected","aria-controls","id"])}}}),tC={};function nC(e,t){const n=ye;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 rC=Yn(tC,[["render",nC]]);const Qe=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}`,{...n,class:i},[r])];else return()=>o.h(`h${e.level}`,{"data-amplify-heading":"",...n,class:i},[a[0]?o.h(a[0].children[0]):o.h(r[0])]);return()=>a}}),oC={};function aC(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 cs=Yn(oC,[["render",aC]]);const ko=o.defineComponent({__name:"confirm-sign-up",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:l}=r(),d=o.computed(()=>{var E,A;return((E=s.value)==null?void 0:E.DeliveryMedium)==="EMAIL"?R("We Emailed You"):((A=s.value)==null?void 0:A.DeliveryMedium)==="SMS"?R("We Texted You"):R("We Sent A Code")}),h=o.computed(()=>R("Resend Code")),f=o.computed(()=>R("Confirm")),g=R("Your code is on the way. To log in, enter the code we emailed to"),p=R("Your code is on the way. To log in, enter the code we texted to"),m=R("Your code is on the way. To log in, enter the code we sent you. It may take a minute to arrive."),y=R("It may take a minute to arrive."),v=o.computed(()=>{var E,A,$,k;return((E=s.value)==null?void 0:E.DeliveryMedium)==="EMAIL"?`${g} ${(A=s.value)==null?void 0:A.Destination}. ${y}`:(($=s.value)==null?void 0:$.DeliveryMedium)==="SMS"?`${p} ${(k=s.value)==null?void 0:k.Destination}. ${y}`:R(`${m}`)}),_=E=>{const{name:A,value:$}=E.target;c({name:A,value:$})},S=E=>{n!=null&&n.onConfirmSignUpSubmit?t("confirmSignUpSubmit",E):b(E)},b=E=>{u(De(E))},C=()=>{n!=null&&n.onLostCodeClicked?t("lostCodeClicked"):l()};return(E,A)=>{const $=Qe,k=cs,I=Be,B=Fe,F=_e,D=je,H=ye,W=Le;return o.renderSlot(E.$slots,"confirmSignUpSlotI",o.normalizeProps(o.guardReactiveProps(E.$attrs)),()=>[o.createVNode(H,o.normalizeProps(o.guardReactiveProps(E.$attrs)),{default:o.withCtx(()=>[o.createVNode(W,{onInput:_,onSubmit:o.withModifiers(S,["prevent"])},{default:o.withCtx(()=>[o.createVNode(H,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(E.$slots,"header",{},()=>[o.createVNode($,{class:"amplify-heading amplify-authenticator__heading",level:3},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1})]),o.createVNode(k,{class:"amplify-authenticator__subtitle"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(v)),1)]),_:1}),o.createVNode(I,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(a)},{default:o.withCtx(()=>[o.createVNode(ze,{route:"confirmSignUp"})]),_:1},8,["disabled"]),o.createVNode(D,{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(R)(o.unref(i))),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(F,{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(F,{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(E.$slots,"footer",{onConfirmSignUpSubmit:S,onLostCodeClicked:C})]),_:3})]),_:3})]),_:3},8,["onSubmit"])]),_:3},16)])}}}),xo=o.defineComponent({__name:"confirm-sign-in",emits:["confirmSignInSubmit","backToSignInClicked"],setup(e,{emit:t}){const n=o.useAttrs(),{state:r,send:a}=Pe(),s=$e(Ae)(),u=o.computed(()=>Te(r.value)),c=u.value.context.challengeName;let l="SMS";c==="SOFTWARE_TOKEN_MFA"&&(l="TOTP");const d=`Confirm ${l} Code`,h=o.computed(()=>R("Back to Sign In")),f=o.computed(()=>R("Confirm")),g=v=>{const{name:_,value:S}=v.target;a({type:"CHANGE",data:{name:_,value:S}})},p=v=>{n!=null&&n.onConfirmSignInSubmit?t("confirmSignInSubmit",v):m(v)},m=v=>{s.submitForm(De(v))},y=()=>{n!=null&&n.onBackToSignInClicked?t("backToSignInClicked"):a({type:"SIGN_IN"})};return(v,_)=>{const S=Qe,b=ye,C=Fe,E=_e,A=je,$=Be,k=Le;return o.renderSlot(v.$slots,"confirmSignInSlotI",o.normalizeProps(o.guardReactiveProps(v.$attrs)),()=>[o.createVNode(b,o.normalizeProps(o.guardReactiveProps(v.$attrs)),{default:o.withCtx(()=>[o.createVNode(k,{"data-amplify-authenticator-confirmsignin":"",onInput:g,onSubmit:o.withModifiers(p,["prevent"])},{default:o.withCtx(()=>[o.createVNode($,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(u).matches("confirmSignIn.pending")},{default:o.withCtx(()=>[o.renderSlot(v.$slots,"header",{},()=>[o.createVNode(S,{level:3,class:"amplify-heading"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(d))]),_:1})]),o.createVNode(b,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(ze,{route:"confirmSignIn"})]),_:1}),o.createVNode(A,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var I,B;return[(B=(I=o.unref(u))==null?void 0:I.context)!=null&&B.remoteError?(o.openBlock(),o.createBlock(C,{key:0},{default:o.withCtx(()=>{var F,D;return[o.createTextVNode(o.toDisplayString(o.unref(R)((D=(F=o.unref(u))==null?void 0:F.context)==null?void 0:D.remoteError)),1)]}),_:1})):o.createCommentVNode("",!0),o.createVNode(E,{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(E,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(y,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(h)),1)]),_:1},8,["onClick"]),o.renderSlot(v.$slots,"footer",{onBackToSignInClicked:y,onConfirmSignInSubmit:p})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}});var Qt={},iC=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},ls={},Ee={};let Oo;const sC=[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 sC[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.');Oo=t};Ee.isKanjiModeEnabled=function(){return typeof Oo!="undefined"};Ee.toSJIS=function(t){return Oo(t)};var Xn={};(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}}})(Xn);function ds(){this.buffer=[],this.length=0}ds.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 uC=ds;function Xt(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)}Xt.prototype.set=function(e,t,n,r){const a=e*this.size+t;this.data[a]=n,r&&(this.reservedBit[a]=!0)};Xt.prototype.get=function(e,t){return this.data[e*this.size+t]};Xt.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};Xt.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var cC=Xt,fs={};(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}})(fs);var ps={};const lC=Ee.getSymbolSize,Ya=7;ps.getPositions=function(t){const n=lC(t);return[[0,0],[n-Ya,0],[0,n-Ya]]};var hs={};(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,l=null,d=null;for(let h=0;h<i;h++){u=c=0,l=d=null;for(let f=0;f<i;f++){let g=a.get(h,f);g===l?u++:(u>=5&&(s+=t.N1+(u-5)),l=g,u=1),g=a.get(f,h),g===d?c++:(c>=5&&(s+=t.N1+(c-5)),d=g,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 l=a.get(u,c)+a.get(u,c+1)+a.get(u+1,c)+a.get(u+1,c+1);(l===4||l===0)&&s++}return s*t.N2},e.getPenaltyN3=function(a){const i=a.size;let s=0,u=0,c=0;for(let l=0;l<i;l++){u=c=0;for(let d=0;d<i;d++)u=u<<1&2047|a.get(l,d),d>=10&&(u===1488||u===93)&&s++,c=c<<1&2047|a.get(d,l),d>=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 l=0;l<s;l++){i(l),e.applyMask(l,a);const d=e.getPenaltyN1(a)+e.getPenaltyN2(a)+e.getPenaltyN3(a)+e.getPenaltyN4(a);e.applyMask(l,a),d<c&&(c=d,u=l)}return u}})(hs);var er={};const Ze=Xn,gn=[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],vn=[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];er.getBlocksCount=function(t,n){switch(n){case Ze.L:return gn[(t-1)*4+0];case Ze.M:return gn[(t-1)*4+1];case Ze.Q:return gn[(t-1)*4+2];case Ze.H:return gn[(t-1)*4+3];default:return}};er.getTotalCodewordsCount=function(t,n){switch(n){case Ze.L:return vn[(t-1)*4+0];case Ze.M:return vn[(t-1)*4+1];case Ze.Q:return vn[(t-1)*4+2];case Ze.H:return vn[(t-1)*4+3];default:return}};var ms={},tr={};const Dt=new Uint8Array(512),On=new Uint8Array(256);(function(){let t=1;for(let n=0;n<255;n++)Dt[n]=t,On[t]=n,t<<=1,t&256&&(t^=285);for(let n=255;n<512;n++)Dt[n]=Dt[n-255]})();tr.log=function(t){if(t<1)throw new Error("log("+t+")");return On[t]};tr.exp=function(t){return Dt[t]};tr.mul=function(t,n){return t===0||n===0?0:Dt[On[t]+On[n]]};(function(e){const t=tr;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}})(ms);const gs=ms;function Uo(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}Uo.prototype.initialize=function(t){this.degree=t,this.genPoly=gs.generateECPolynomial(this.degree)};Uo.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=gs.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 dC=Uo,vs={},Xe={},Ro={};Ro.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var Ge={};const ys="[0-9]+",fC="[A-Z $%*+\\-./:]+";let zt="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";zt=zt.replace(/u/g,"\\u");const pC="(?:(?![A-Z0-9 $%*+\\-./:]|"+zt+`)(?:.|[\r
32
+ ]))+`;Ge.KANJI=new RegExp(zt,"g");Ge.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");Ge.BYTE=new RegExp(pC,"g");Ge.NUMERIC=new RegExp(ys,"g");Ge.ALPHANUMERIC=new RegExp(fC,"g");const hC=new RegExp("^"+zt+"$"),mC=new RegExp("^"+ys+"$"),gC=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Ge.testKanji=function(t){return hC.test(t)};Ge.testNumeric=function(t){return mC.test(t)};Ge.testAlphanumeric=function(t){return gC.test(t)};(function(e){const t=Ro,n=Ge;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}}})(Xe);(function(e){const t=Ee,n=er,r=Xn,a=Xe,i=Ro,s=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,u=t.getBCHDigit(s);function c(f,g,p){for(let m=1;m<=40;m++)if(g<=e.getCapacity(m,p,f))return m}function l(f,g){return a.getCharCountIndicator(f,g)+4}function d(f,g){let p=0;return f.forEach(function(m){p+=l(m.mode,g)+m.getBitsLength()}),p}function h(f,g){for(let p=1;p<=40;p++)if(d(f,p)<=e.getCapacity(p,g,a.MIXED))return p}e.from=function(g,p){return i.isValid(g)?parseInt(g,10):p},e.getCapacity=function(g,p,m){if(!i.isValid(g))throw new Error("Invalid QR Code version");typeof m=="undefined"&&(m=a.BYTE);const y=t.getSymbolTotalCodewords(g),v=n.getTotalCodewordsCount(g,p),_=(y-v)*8;if(m===a.MIXED)return _;const S=_-l(m,g);switch(m){case a.NUMERIC:return Math.floor(S/10*3);case a.ALPHANUMERIC:return Math.floor(S/11*2);case a.KANJI:return Math.floor(S/13);case a.BYTE:default:return Math.floor(S/8)}},e.getBestVersionForData=function(g,p){let m;const y=r.from(p,r.M);if(Array.isArray(g)){if(g.length>1)return h(g,y);if(g.length===0)return 1;m=g[0]}else m=g;return c(m.mode,m.getLength(),y)},e.getEncodedBits=function(g){if(!i.isValid(g)||g<7)throw new Error("Invalid QR Code version");let p=g<<12;for(;t.getBCHDigit(p)-u>=0;)p^=s<<t.getBCHDigit(p)-u;return g<<12|p}})(vs);var ws={};const Br=Ee,Ss=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,vC=1<<14|1<<12|1<<10|1<<4|1<<1,Ja=Br.getBCHDigit(Ss);ws.getEncodedBits=function(t,n){const r=t.bit<<3|n;let a=r<<10;for(;Br.getBCHDigit(a)-Ja>=0;)a^=Ss<<Br.getBCHDigit(a)-Ja;return(r<<10|a)^vC};var _s={};const yC=Xe;function gt(e){this.mode=yC.NUMERIC,this.data=e.toString()}gt.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};gt.prototype.getLength=function(){return this.data.length};gt.prototype.getBitsLength=function(){return gt.getBitsLength(this.data.length)};gt.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 wC=gt;const SC=Xe,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 vt(e){this.mode=SC.ALPHANUMERIC,this.data=e}vt.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};vt.prototype.getLength=function(){return this.data.length};vt.prototype.getBitsLength=function(){return vt.getBitsLength(this.data.length)};vt.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 _C=vt,bC=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 CC=bC,AC=Xe;function yt(e){this.mode=AC.BYTE,this.data=new Uint8Array(CC(e))}yt.getBitsLength=function(t){return t*8};yt.prototype.getLength=function(){return this.data.length};yt.prototype.getBitsLength=function(){return yt.getBitsLength(this.data.length)};yt.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)};var EC=yt;const IC=Xe,TC=Ee;function wt(e){this.mode=IC.KANJI,this.data=e}wt.getBitsLength=function(t){return t*13};wt.prototype.getLength=function(){return this.data.length};wt.prototype.getBitsLength=function(){return wt.getBitsLength(this.data.length)};wt.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=TC.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]+`
33
+ Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};var $C=wt,bs={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,l,d,h,f,g,p,m,y;!u.empty();){c=u.pop(),l=c.value,h=c.cost,f=n[l]||{};for(d in f)f.hasOwnProperty(d)&&(g=f[d],p=h+g,m=s[d],y=typeof s[d]=="undefined",(y||m>p)&&(s[d]=p,u.push(d,p),i[d]=l))}if(typeof a!="undefined"&&typeof s[a]=="undefined"){var v=["Could not find a path from ",r," to ",a,"."].join("");throw new Error(v)}return i},extract_shortest_path_from_predecessor_list:function(n,r){for(var a=[],i=r;i;)a.push(i),n[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})(bs);(function(e){const t=Xe,n=wC,r=_C,a=EC,i=$C,s=Ge,u=Ee,c=bs.exports;function l(v){return unescape(encodeURIComponent(v)).length}function d(v,_,S){const b=[];let C;for(;(C=v.exec(S))!==null;)b.push({data:C[0],index:C.index,mode:_,length:C[0].length});return b}function h(v){const _=d(s.NUMERIC,t.NUMERIC,v),S=d(s.ALPHANUMERIC,t.ALPHANUMERIC,v);let b,C;return u.isKanjiModeEnabled()?(b=d(s.BYTE,t.BYTE,v),C=d(s.KANJI,t.KANJI,v)):(b=d(s.BYTE_KANJI,t.BYTE,v),C=[]),_.concat(S,b,C).sort(function(A,$){return A.index-$.index}).map(function(A){return{data:A.data,mode:A.mode,length:A.length}})}function f(v,_){switch(_){case t.NUMERIC:return n.getBitsLength(v);case t.ALPHANUMERIC:return r.getBitsLength(v);case t.KANJI:return i.getBitsLength(v);case t.BYTE:return a.getBitsLength(v)}}function g(v){return v.reduce(function(_,S){const b=_.length-1>=0?_[_.length-1]:null;return b&&b.mode===S.mode?(_[_.length-1].data+=S.data,_):(_.push(S),_)},[])}function p(v){const _=[];for(let S=0;S<v.length;S++){const b=v[S];switch(b.mode){case t.NUMERIC:_.push([b,{data:b.data,mode:t.ALPHANUMERIC,length:b.length},{data:b.data,mode:t.BYTE,length:b.length}]);break;case t.ALPHANUMERIC:_.push([b,{data:b.data,mode:t.BYTE,length:b.length}]);break;case t.KANJI:_.push([b,{data:b.data,mode:t.BYTE,length:l(b.data)}]);break;case t.BYTE:_.push([{data:b.data,mode:t.BYTE,length:l(b.data)}])}}return _}function m(v,_){const S={},b={start:{}};let C=["start"];for(let E=0;E<v.length;E++){const A=v[E],$=[];for(let k=0;k<A.length;k++){const I=A[k],B=""+E+k;$.push(B),S[B]={node:I,lastCount:0},b[B]={};for(let F=0;F<C.length;F++){const D=C[F];S[D]&&S[D].node.mode===I.mode?(b[D][B]=f(S[D].lastCount+I.length,I.mode)-f(S[D].lastCount,I.mode),S[D].lastCount+=I.length):(S[D]&&(S[D].lastCount=I.length),b[D][B]=f(I.length,I.mode)+4+t.getCharCountIndicator(I.mode,_))}}C=$}for(let E=0;E<C.length;E++)b[C[E]].end=0;return{map:b,table:S}}function y(v,_){let S;const b=t.getBestModeForData(v);if(S=t.from(_,b),S!==t.BYTE&&S.bit<b.bit)throw new Error('"'+v+'" cannot be encoded with mode '+t.toString(S)+`.
34
+ Suggested mode is: `+t.toString(b));switch(S===t.KANJI&&!u.isKanjiModeEnabled()&&(S=t.BYTE),S){case t.NUMERIC:return new n(v);case t.ALPHANUMERIC:return new r(v);case t.KANJI:return new i(v);case t.BYTE:return new a(v)}}e.fromArray=function(_){return _.reduce(function(S,b){return typeof b=="string"?S.push(y(b,null)):b.data&&S.push(y(b.data,b.mode)),S},[])},e.fromString=function(_,S){const b=h(_,u.isKanjiModeEnabled()),C=p(b),E=m(C,S),A=c.find_path(E.map,"start","end"),$=[];for(let k=1;k<A.length-1;k++)$.push(E.table[A[k]].node);return e.fromArray(g($))},e.rawSplit=function(_){return e.fromArray(h(_,u.isKanjiModeEnabled()))}})(_s);const nr=Ee,fr=Xn,PC=uC,NC=cC,kC=fs,xC=ps,Vr=hs,Mr=er,OC=dC,Un=vs,UC=ws,RC=Xe,pr=_s;function BC(e,t){const n=e.size,r=xC.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 VC(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 MC(e,t){const n=kC.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=Un.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 FC(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 l=!1;s<t.length&&(l=(t[s]>>>i&1)===1),e.set(a,u-c,l),i--,i===-1&&(s++,i=7)}if(a+=r,a<0||n<=a){a-=r,r=-r;break}}}function LC(e,t,n){const r=new PC;n.forEach(function(c){r.put(c.mode.bit,4),r.put(c.getLength(),RC.getCharCountIndicator(c.mode,e)),c.write(r)});const a=nr.getSymbolTotalCodewords(e),i=Mr.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 jC(r,e,t)}function jC(e,t,n){const r=nr.getSymbolTotalCodewords(t),a=Mr.getTotalCodewordsCount(t,n),i=r-a,s=Mr.getBlocksCount(t,n),u=r%s,c=s-u,l=Math.floor(r/s),d=Math.floor(i/s),h=d+1,f=l-d,g=new OC(f);let p=0;const m=new Array(s),y=new Array(s);let v=0;const _=new Uint8Array(e.buffer);for(let A=0;A<s;A++){const $=A<c?d:h;m[A]=_.slice(p,p+$),y[A]=g.encode(m[A]),p+=$,v=Math.max(v,$)}const S=new Uint8Array(r);let b=0,C,E;for(C=0;C<v;C++)for(E=0;E<s;E++)C<m[E].length&&(S[b++]=m[E][C]);for(C=0;C<f;C++)for(E=0;E<s;E++)S[b++]=y[E][C];return S}function zC(e,t,n,r){let a;if(Array.isArray(e))a=pr.fromArray(e);else if(typeof e=="string"){let l=t;if(!l){const d=pr.rawSplit(e);l=Un.getBestVersionForData(d,n)}a=pr.fromString(e,l||40)}else throw new Error("Invalid data");const i=Un.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(`
35
35
  The chosen QR Code version cannot contain this amount of data.
36
36
  Minimum version required to store current data is: `+i+`.
37
- `);const s=LC(t,n,a),u=nr.getSymbolSize(t),c=new NC(u);return BC(c,t),VC(c),DC(c,t),hr(c,n,0),t>=7&&MC(c,t),FC(c,s),isNaN(r)&&(r=Vr.getBestMask(c,hr.bind(null,c,n))),Vr.applyMask(r,c),hr(c,n,r),{modules:c,version:t,errorCorrectionLevel:n,maskPattern:r,segments:a}}ls.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=Un.from(n.version),i=Vr.from(n.maskPattern),n.toSJISFunc&&nr.setToSJISFunction(n.toSJISFunc)),zC(t,a,r,i)};var Cs={},Bo={};(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),l=Math.floor((s+i.margin*2)*c),d=i.margin*c,p=[i.color.light,i.color.dark];for(let f=0;f<l;f++)for(let g=0;g<l;g++){let h=(f*l+g)*4,m=i.color.light;if(f>=d&&g>=d&&f<l-d&&g<l-d){const y=Math.floor((f-d)/c),v=Math.floor((g-d)/c);m=p[u[y*s+v]?1:0]}r[h++]=m.r,r[h++]=m.g,r[h++]=m.b,r[h]=m.a}}})(Bo);(function(e){const t=Bo;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,l=s;typeof c=="undefined"&&(!s||!s.getContext)&&(c=s,s=void 0),s||(l=r()),c=t.getOptions(c);const d=t.getImageWidth(i.modules.size,c),p=l.getContext("2d"),f=p.createImageData(d,d);return t.qrToImageData(f.data,i,c),n(p,l,d),p.putImageData(f,0,0),l},e.renderToDataURL=function(i,s,u){let c=u;typeof c=="undefined"&&(!s||!s.getContext)&&(c=s,s=void 0),c||(c={});const l=e.render(i,s,c),d=c.type||"image/png",p=c.rendererOpts||{};return l.toDataURL(d,p.quality)}})(Cs);var As={};const GC=Bo;function Za(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 HC(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),l=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+l+n):mr("m",a,0),a=0,i=!1),c+1<t&&e[u+1]||(r+=mr("h",s),s=0)):a++}return r}As.render=function(t,n,r){const a=GC.getOptions(n),i=t.modules.size,s=t.modules.data,u=i+a.margin*2,c=a.color.light.a?"<path "+Za(a.color.light,"fill")+' d="M0 0h'+u+"v"+u+'H0z"/>':"",l="<path "+Za(a.color.dark,"stroke")+' d="'+HC(s,i,a.margin)+'"/>',d='viewBox="0 0 '+u+" "+u+'"',p=a.width?'width="'+a.width+'" height="'+a.width+'" ':"",f='<svg xmlns="http://www.w3.org/2000/svg" '+p+d+' shape-rendering="crispEdges">'+c+l+`</svg>
38
- `;return typeof r=="function"&&r(null,f),f};const KC=iC,Mr=ls,Es=Cs,qC=As;function Vo(e,t,n,r,a){const i=[].slice.call(arguments,1),s=i.length,u=typeof i[s-1]=="function";if(!u&&!KC())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,l){try{const d=Mr.create(n,r);c(e(d,t,r))}catch(d){l(d)}})}try{const c=Mr.create(n,r);a(null,e(c,t,r))}catch(c){a(c)}}Qt.create=Mr.create;Qt.toCanvas=Vo.bind(null,Es.render);Qt.toDataURL=Vo.bind(null,Es.renderToDataURL);Qt.toString=Vo.bind(null,function(e,t,n){return qC.render(e,n)});const WC={key:0},YC=o.createTextVNode(" Setup TOTP "),JC=["src"],ZC={"data-amplify-copy-tooltip":""},QC=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),XC=o.defineComponent({__name:"setup-totp",emits:["confirmSetupTOTPSubmit","backToSignInClicked"],setup(e,{emit:t}){var C,E;const r=$e(Ae)(),a=o.useAttrs(),{state:i,send:s}=Pe(),{value:{context:u}}=i,c=(E=(C=u==null?void 0:u.config)==null?void 0:C.formFields)==null?void 0:E.setupTOTP,l=c==null?void 0:c.QR,d=o.computed(()=>Te(i.value));let p=o.reactive({qrCodeImageSource:"",isLoading:!0}),f=o.ref(""),g=o.ref(R("COPY"));function h(){navigator.clipboard.writeText(f.value),g.value=R("COPIED")}o.onMounted(async()=>{var k,I;const A=new ce.Logger("SetupTOTP-logger"),{user:$}=d.value.context;if(!!$)try{f.value=await ce.Auth.setupTOTP($);const B=(k=l==null?void 0:l.totpIssuer)!=null?k:"AWSCognito",F=(I=l==null?void 0:l.totpUsername)!=null?I:$.username,M=encodeURI(`otpauth://totp/${B}:${F}?secret=${f.value}&issuer=${B}`);p.qrCodeImageSource=await Qt.toDataURL(M)}catch(B){A.error(B)}finally{p.isLoading=!1}});const m=o.computed(()=>R("Back to Sign In")),y=o.computed(()=>R("Confirm")),v=A=>{const{name:$,value:k}=A.target;s({type:"CHANGE",data:{name:$,value:k}})},_=A=>{a!=null&&a.onConfirmSetupTOTPSubmit?t("confirmSetupTOTPSubmit",A):S(A)},S=A=>{r.submitForm(Me(A))},b=()=>{a!=null&&a.onBackToSignInClicked?t("backToSignInClicked"):s({type:"SIGN_IN"})};return(A,$)=>{const k=Qe,I=ye,B=Fe,F=_e,M=je,H=Be,W=Le;return o.renderSlot(A.$slots,"confirmSetupTOTPI",o.normalizeProps(o.guardReactiveProps(A.$attrs)),()=>[o.createVNode(I,o.normalizeProps(o.guardReactiveProps(A.$attrs)),{default:o.withCtx(()=>[o.createVNode(W,{"data-amplify-authenticator-setup-totp":"",onInput:v,onSubmit:o.withModifiers(_,["prevent"])},{default:o.withCtx(()=>[o.createVNode(H,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(d).matches("confirmSignIn.pending")},{default:o.withCtx(()=>[o.unref(p).isLoading?(o.openBlock(),o.createElementBlock("p",WC,"Loading...")):(o.openBlock(),o.createBlock(I,{key:1,class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(A.$slots,"header",{},()=>[o.createVNode(k,{class:"amplify-heading",level:3},{default:o.withCtx(()=>[YC]),_:1})]),o.createVNode(I,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createElementVNode("img",{class:"amplify-image","data-amplify-qrcode":"",src:o.unref(p).qrCodeImageSource,alt:"qr code",width:"228",height:"228"},null,8,JC),o.createVNode(I,{class:"amplify-flex","data-amplify-copy":""},{default:o.withCtx(()=>[o.createElementVNode("div",null,o.toDisplayString(o.unref(f)),1),o.createVNode(I,{"data-amplify-copy-svg":"",onClick:h},{default:o.withCtx(()=>[o.createElementVNode("div",ZC,o.toDisplayString(o.unref(g)),1),QC]),_:1})]),_:1}),o.createVNode(ze,{route:"setupTOTP"})]),_:1}),o.createVNode(M,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var pe;return[(pe=o.unref(d).context)!=null&&pe.remoteError?(o.openBlock(),o.createBlock(B,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(R)(o.unref(d).context.remoteError)),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(F,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",type:"submit",disabled:o.unref(d).matches("confirmSignIn.pending")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(y)),1)]),_:1},8,["disabled"]),o.createVNode(F,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(b,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(m)),1)]),_:1},8,["onClick"]),o.renderSlot(A.$slots,"footer",{onBackToSignInClicked:b,onSetupTOTPSubmit:_})]}),_:3})]),_:3}))]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Do=o.defineComponent({__name:"authenticator-force-new-password-form-fields",setup(e){return(t,n)=>(o.openBlock(),o.createBlock(ze,{route:"forceNewPassword"}))}}),Mo=o.defineComponent({__name:"force-new-password",emits:["haveAccountClicked","forceNewPasswordSubmit"],setup(e,{emit:t}){const n=o.useAttrs(),{state:r,send:a}=Pe(),s=$e(Ae)(),u=o.computed(()=>Te(r.value)),c=o.computed(()=>R("Change Password")),l=o.computed(()=>R("Changing")),d=o.computed(()=>R("Back to Sign In")),p=()=>{n!=null&&n.onHaveAccountClicked?t("haveAccountClicked"):a({type:"SIGN_IN"})},f=y=>{n!=null&&n.onForceNewPasswordSubmit?t("forceNewPasswordSubmit",y):g(y)},g=y=>{s.submitForm(Me(y))},h=y=>{const{name:v,value:_}=y.target;a({type:"CHANGE",data:{name:v,value:_}})};function m(y){const{name:v}=y.target;s.updateBlur({name:v})}return(y,v)=>{const _=Qe,S=ye,b=Fe,C=_e,E=je,A=Be,$=Le;return o.renderSlot(y.$slots,"forceNewPasswordI",o.normalizeProps(o.guardReactiveProps(y.$attrs)),()=>[o.createVNode(S,o.normalizeProps(o.guardReactiveProps(y.$attrs)),{default:o.withCtx(()=>[o.createVNode($,{"data-amplify-authenticator-forcenewpassword":"",onInput:h,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(y.$slots,"header",{},()=>[o.createVNode(_,{level:3,class:"amplify-heading"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(c)),1)]),_:1})]),o.createVNode(S,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(y.$slots,"force-new-password-form-fields",{},()=>[o.createVNode(Do)])]),_:3}),o.createVNode(E,{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(R)(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(l)+"\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(p,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1},8,["onClick"]),o.renderSlot(y.$slots,"footer",{onHaveAccountClicked:p,onForceNewPasswordSubmit:f})]),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Fo=o.defineComponent({__name:"reset-password",emits:["resetPasswordSubmit","backToSignInClicked"],setup(e,{emit:t}){const n=o.useAttrs(),r=$e(Ae),{send:a,submitForm:i}=r(),{error:s,isPending:u}=o.toRefs(r()),c=o.computed(()=>R("Back to Sign In")),l=o.computed(()=>R("Reset your password")),d=o.computed(()=>R("Send Code")),p=m=>{n!=null&&n.onResetPasswordSubmit?t("resetPasswordSubmit",m):f(m)},f=m=>{i(Me(m))},g=m=>{const{name:y,value:v}=m.target;a({type:"CHANGE",data:{name:y,value:v}})},h=()=>{n!=null&&n.onBackToSignInClicked?t("backToSignInClicked"):a({type:"SIGN_IN"})};return(m,y)=>{const v=Qe,_=Be,S=Fe,b=_e,C=je,E=ye,A=Le;return o.renderSlot(m.$slots,"resetPasswordSlotI",o.normalizeProps(o.guardReactiveProps(m.$attrs)),()=>[o.createVNode(A,o.mergeProps(m.$attrs,{"data-amplify-authenticator-resetpassword":"",onInput:g,onSubmit:o.withModifiers(p,["prevent"])}),{default:o.withCtx(()=>[o.createVNode(E,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(m.$slots,"header",{},()=>[o.createVNode(v,{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(u)},{default:o.withCtx(()=>[o.createVNode(ze,{route:"resetPassword"})]),_:1},8,["disabled"]),o.createVNode(C,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.unref(s)?(o.openBlock(),o.createBlock(S,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(R)(o.unref(s))),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)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),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(h,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(c)),1)]),_:1},8,["onClick"]),o.renderSlot(m.$slots,"footer",{onBackToSignInClicked:h,onResetPasswordSubmit:p})]),_:3})]),_:3})]),_:3},16,["onSubmit"])])}}}),Lo=o.defineComponent({__name:"confirm-reset-password",emits:["confirmResetPasswordSubmit","backToSignInClicked"],setup(e,{emit:t}){const{state:n,send:r}=Pe(),i=$e(Ae)(),s=o.useAttrs(),u=o.computed(()=>Te(n.value)),c=o.computed(()=>R("Resend Code")),l=o.computed(()=>R("Reset your Password")),d=o.computed(()=>R("Submit")),p=y=>{s!=null&&s.onConfirmResetPasswordSubmit?t("confirmResetPasswordSubmit",y):f(y)},f=y=>{i.submitForm(Me(y))},g=()=>{r({type:"RESEND"})},h=y=>{const{name:v,value:_}=y.target;r({type:"CHANGE",data:{name:v,value:_}})};function m(y){const{name:v}=y.target;i.updateBlur({name:v})}return(y,v)=>{const _=Qe,S=ye,b=Fe,C=_e,E=je,A=Be,$=Le;return o.renderSlot(y.$slots,"confirmResetPasswordSlotI",o.normalizeProps(o.guardReactiveProps(y.$attrs)),()=>[o.createVNode(S,o.normalizeProps(o.guardReactiveProps(y.$attrs)),{default:o.withCtx(()=>[o.createVNode($,{"data-amplify-authenticator-confirmResetpassword":"",onInput:h,onBlurCapture:m,onSubmit:o.withModifiers(p,["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(y.$slots,"header",{},()=>[o.createVNode(_,{class:"amplify-heading",level:3},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1})]),o.createVNode(S,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(ze,{route:"confirmResetPassword"})]),_:1}),o.createVNode(E,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var k,I;return[(I=(k=o.unref(u))==null?void 0:k.context)!=null&&I.remoteError?(o.openBlock(),o.createBlock(b,{key:0},{default:o.withCtx(()=>{var B,F;return[o.createTextVNode(o.toDisplayString(o.unref(R)((F=(B=o.unref(u))==null?void 0:B.context)==null?void 0:F.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(d)),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(g,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(c)),1)]),_:1},8,["onClick"]),o.renderSlot(y.$slots,"footer",{onConfirmResetPasswordSubmit:p,onLostYourCodeClicked:g})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),jo=o.defineComponent({__name:"verify-user",emits:["verifyUserSubmit","skipClicked"],setup(e,{emit:t}){const r=$e(Ae)(),a=o.useAttrs(),{state:i,send:s}=Pe(),u=o.computed(()=>Te(i.value)),c=u.value.context.unverifiedAttributes,l=o.computed(()=>R("Account recovery requires verified contact information")),d=o.computed(()=>R("Skip")),p=o.computed(()=>R("Verify")),f=o.computed(()=>R("Verify Contact")),g=v=>{const{name:_,value:S}=v.target;s({type:"CHANGE",data:{name:_,value:S}})},h=v=>{a!=null&&a.onVerifyUserSubmit?t("verifyUserSubmit",v):m(v)},m=v=>{r.submitForm(Me(v))},y=()=>{a!=null&&a.onSkipClicked?t("skipClicked"):s("SKIP")};return(v,_)=>{const S=Qe,b=Zn,C=Qn,E=cs,A=ye,$=Fe,k=_e,I=je,B=Be,F=Le;return o.renderSlot(v.$slots,"verifyUserSlotI",{},()=>[o.createVNode(A,null,{default:o.withCtx(()=>[o.createVNode(F,{onInput:g,onSubmit:o.withModifiers(h,["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(v.$slots,"header",{},()=>[o.createVNode(S,{class:"amplify-heading",level:3},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),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),(M,H)=>(o.openBlock(),o.createBlock(b,{class:"amplify-flex amplify-radio","data-amplify-verify-label":"",id:"verify",key:M},{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:H},null,8,["value"]),o.createVNode(E,{class:"amplify-flex amplify-radio__button","aria-hidden":"true"}),o.createVNode(E,{class:"amplify-text amplify-radio__label"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(Gr)[H].label),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1}),o.createVNode(I,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var M,H;return[(H=(M=o.unref(u))==null?void 0:M.context)!=null&&H.remoteError?(o.openBlock(),o.createBlock($,{key:0},{default:o.withCtx(()=>{var W;return[o.createTextVNode(o.toDisplayString(o.unref(R)((W=o.unref(u))==null?void 0:W.context.remoteError)),1)]}),_:1})):o.createCommentVNode("",!0),o.createVNode(k,{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(p)),1)]),_:1},8,["disabled"]),o.createVNode(k,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(y,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1},8,["onClick"]),o.renderSlot(v.$slots,"footer",{onSkipClicked:y,onVerifyUserSubmit:h})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3})])}}}),zo=o.defineComponent({__name:"confirm-verify-user",emits:["confirmVerifyUserSubmit","skipClicked"],setup(e,{emit:t}){const r=$e(Ae)(),a=o.useAttrs(),{state:i,send:s}=Pe(),u=o.computed(()=>Te(i.value)),c=o.computed(()=>R("Account recovery requires verified contact information")),l=o.computed(()=>R("Skip")),d=o.computed(()=>R("Submit")),p=m=>{const{name:y,value:v}=m.target;s({type:"CHANGE",data:{name:y,value:v}})},f=m=>{a!=null&&a.onConfirmVerifyUserSubmit?t("confirmVerifyUserSubmit",m):g(m)},g=m=>{r.submitForm(Me(m))},h=()=>{a!=null&&a.onSkipClicked?t("skipClicked"):s({type:"SKIP"})};return(m,y)=>{const v=Qe,_=ye,S=Fe,b=_e,C=je,E=Be,A=Le;return o.renderSlot(m.$slots,"confirmVerifyUserSlotI",o.normalizeProps(o.guardReactiveProps(m.$attrs)),()=>[o.createVNode(_,o.normalizeProps(o.guardReactiveProps(m.$attrs)),{default:o.withCtx(()=>[o.createVNode(A,{onInput:p,onSubmit:o.withModifiers(f,["prevent"])},{default:o.withCtx(()=>[o.createVNode(E,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(u).matches("confirmVerifyUser.pending")},{default:o.withCtx(()=>[o.renderSlot(m.$slots,"header",{},()=>[o.createVNode(v,{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.createVNode(ze,{route:"confirmVerifyUser"})]),_:1}),o.createVNode(C,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var $,k;return[(k=($=o.unref(u))==null?void 0:$.context)!=null&&k.remoteError?(o.openBlock(),o.createBlock(S,{key:0},{default:o.withCtx(()=>{var I;return[o.createTextVNode(o.toDisplayString(o.unref(R)((I=o.unref(u))==null?void 0:I.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(d)),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(h,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1},8,["onClick"]),o.renderSlot(m.$slots,"footer",{onSkipClicked:h,onConfirmVerifyUserSubmit:f})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),e2=["data-variation"],t2={"data-amplify-container":""},n2=["data-amplify-router-content"],r2={key:1,"data-amplify-router-content":""},Is=o.defineComponent({__name:"authenticator",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 n=e,r=o.useAttrs(),{initialState:a,loginMechanisms:i,variation:s,services:u,signUpAttributes:c,socialProviders:l,hideSignUp:d,formFields:p}=o.toRefs(n),f=c0(),g=S0(f);let h,m;const{state:y,send:v}=is(g);Pe(g);const _=o.ref(!1);m=g.subscribe(P=>{P.matches("setup")&&!_.value&&(v({type:"INIT",data:{initialState:a==null?void 0:a.value,loginMechanisms:i==null?void 0:i.value,socialProviders:l==null?void 0:l.value,signUpAttributes:c==null?void 0:c.value,services:u==null?void 0:u.value,formFields:p==null?void 0:p.value}}),_.value=!0)}).unsubscribe,o.onMounted(()=>{h=El(g)}),o.onUnmounted(()=>{h&&h(),m&&m()});const S=o.computed(()=>Te(y.value)),b=o.ref(),C=o.ref(),E=o.ref(),A=o.ref(),$=o.ref(),k=o.ref(),I=o.ref(),B=o.ref(),F=o.ref(),M=o.ref(),H=o.computed(()=>R("Create Account")),W=o.computed(()=>R("Sign In")),pe=P=>{var Se;r!=null&&r.onSignInSubmit?t("signInSubmit",P):(Se=b.value)==null||Se.submit(P)},qe=P=>{r!=null&&r.onConfirmSignUpSubmit?t("confirmSignUpSubmit",P):E.value.submit(P)},ot=P=>{r!=null&&r.onResetPasswordSubmit?t("resetPasswordSubmit",P):I.value.submit(P)},Ne=P=>{r!=null&&r.onConfirmResetPasswordSubmit?t("confirmResetPasswordSubmit",P):B.value.submit(P)},at=P=>{r!=null&&r.onConfirmSignInSubmit?t("confirmSignInSubmit",P):A.value.submit(P)},we=P=>{r!=null&&r.onForceNewPasswordSubmit?t("mSetupTOTPSubmit",P):$.value.submit(P)},Pt=P=>{r!=null&&r.onForceNewPasswordSubmit?t("forceNewPasswordSubmit",P):k.value.submit(P)},Nt=P=>{r!=null&&r.onSignUpSubmit?t("signUpSubmit",P):C.value.submit()},de=P=>{r!=null&&r.onVerifyUserSubmit?t("verifyUserSubmit",P):F.value.submit(P)},Ue=P=>{r!=null&&r.onConfirmVerifyUserSubmit?t("confirmVerifyUserSubmit",P):M.value.submit(P)},en=o.ref(null),tn=o.ref();o.watch(()=>y.value.context,()=>{const{user:P,signOut:Se}=si({send:v,state:y.value});en.value=P,tn.value=Se});const kt=o.computed(()=>{var P,Se;return((P=S.value)==null?void 0:P.matches("signIn"))||((Se=S.value)==null?void 0:Se.matches("signUp"))}),rr=o.computed(()=>{var P;return!(y.value.matches("authenticated")||y.value.matches("idle")||y.value.matches("setup")||y.value.matches("signOut")||((P=S.value)==null?void 0:P.matches("autoSignIn")))});return(P,Se)=>{var N,O,x,V,D,j,L,X,ie,be,it;const nn=eC,w=rC;return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.unref(rr)?(o.openBlock(),o.createElementBlock("div",o.mergeProps({key:0},P.$attrs,{"data-amplify-authenticator":"","data-variation":o.unref(s)}),[o.createElementVNode("div",t2,[o.renderSlot(P.$slots,"header"),o.createElementVNode("div",{"data-amplify-router":"","data-amplify-router-content":o.unref(kt)?void 0:""},[o.unref(kt)&&!o.unref(d)?(o.openBlock(),o.createBlock(w,{key:0},{default:o.withCtx(()=>{var ne,oe;return[o.createVNode(nn,{active:(ne=o.unref(S))==null?void 0:ne.matches("signIn"),id:44472,label:o.unref(W),onClick:Se[0]||(Se[0]=st=>o.unref(v)("SIGN_IN"))},null,8,["active","label"]),o.createVNode(nn,{active:(oe=o.unref(S))==null?void 0:oe.matches("signUp"),id:44471,label:o.unref(H),onClick:Se[1]||(Se[1]=st=>o.unref(v)("SIGN_UP"))},null,8,["active","label"])]}),_:1})):o.createCommentVNode("",!0),o.unref(kt)?(o.openBlock(),o.createElementBlock("div",r2,[(N=o.unref(S))!=null&&N.matches("signIn")?(o.openBlock(),o.createBlock($o,{key:0,onSignInSubmit:pe,ref_key:"signInComponent",ref:b},{signInSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"sign-in")]),form:o.withCtx(({info:ne,onSignInSubmit:oe,onForgotPasswordClicked:st,onInput:xt})=>[o.renderSlot(P.$slots,"sign-in-form",{info:ne,onInput:xt,onSignInSubmit:oe,onForgotPasswordClicked:st})]),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),((O=o.unref(S))==null?void 0:O.matches("signUp"))&&!o.unref(d)?(o.openBlock(),o.createBlock(No,{key:1,onSignUpSubmit:Nt,ref_key:"signUpComponent",ref:C},{signUpSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"sign-up")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"sign-up-header")]),"signup-fields":o.withCtx(({info:ne})=>[o.renderSlot(P.$slots,"sign-up-fields",{info:ne})]),footer:o.withCtx(()=>[o.renderSlot(P.$slots,"sign-up-footer")]),_:3},512)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),(x=o.unref(S))!=null&&x.matches("confirmSignUp")?(o.openBlock(),o.createBlock(ko,{key:2,onConfirmSignUpSubmit:qe,ref_key:"confirmSignUpComponent",ref:E},{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:ne,onLostCodeClicked:oe})=>[o.renderSlot(P.$slots,"confirm-sign-up-footer",{onConfirmSignUpSubmit:ne,onLostCodeClicked:oe})]),_:3},512)):o.createCommentVNode("",!0),(V=o.unref(S))!=null&&V.matches("resetPassword")?(o.openBlock(),o.createBlock(Fo,{key:3,onResetPasswordSubmit:ot,ref_key:"resetPasswordComponent",ref:I},{resetPasswordSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"reset-password")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"reset-password-header")]),footer:o.withCtx(({onResetPasswordSubmit:ne,onBackToSignInClicked:oe})=>[o.renderSlot(P.$slots,"reset-password-footer",{onResetPasswordSubmit:ne,onBackToSignInClicked:oe})]),_:3},512)):o.createCommentVNode("",!0),(D=o.unref(S))!=null&&D.matches("confirmResetPassword")?(o.openBlock(),o.createBlock(Lo,{key:4,onConfirmResetPasswordSubmit:Ne,ref_key:"confirmResetPasswordComponent",ref:B},{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:ne,onLostYourCodeClicked:oe})=>[o.renderSlot(P.$slots,"confirm-reset-password-footer",{onConfirmResetPasswordSubmit:ne,onLostYourCodeClicked:oe})]),_:3},512)):o.createCommentVNode("",!0),(j=o.unref(S))!=null&&j.matches("confirmSignIn")?(o.openBlock(),o.createBlock(xo,{key:5,onConfirmSignInSubmit:at,ref_key:"confirmSignInComponent",ref:A},{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:ne,onBackToSignInClicked:oe})=>[o.renderSlot(P.$slots,"confirm-sign-in-footer",{onConfirmSignInSubmit:ne,onBackToSignInClicked:oe})]),_:3},512)):o.createCommentVNode("",!0),(L=o.unref(S))!=null&&L.matches("setupTOTP")?(o.openBlock(),o.createBlock(XC,{key:6,onConfirmSetupTotpSubmit:we,ref_key:"confirmSetupTOTPComponent",ref:$},{confirmSetupTOTPI:o.withCtx(()=>[o.renderSlot(P.$slots,"setup-totp")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"setup-totp-header")]),footer:o.withCtx(({onSetupTOTPSubmit:ne,onBackToSignInClicked:oe})=>[o.renderSlot(P.$slots,"setup-totp-footer",{onSetupTOTPSubmit:ne,onBackToSignInClicked:oe})]),_:3},512)):o.createCommentVNode("",!0),(X=o.unref(S))!=null&&X.matches("forceNewPassword")?(o.openBlock(),o.createBlock(Mo,{key:7,onForceNewPasswordSubmit:Pt,ref_key:"forceNewPasswordComponent",ref:k},{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:ne,onForceNewPasswordSubmit:oe})=>[o.renderSlot(P.$slots,"force-new-password-footer",{onForceNewPasswordSubmit:oe,onBackToSignInClicked:ne})]),_:3},512)):o.createCommentVNode("",!0),(ie=o.unref(S))!=null&&ie.matches("verifyUser")?(o.openBlock(),o.createBlock(jo,{key:8,onVerifyUserSubmit:de,ref_key:"verifyUserComponent",ref:F},{verifyUserSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"verify-user")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"verify-user-header")]),footer:o.withCtx(({onVerifyUserSubmit:ne,onSkipClicked:oe})=>[o.renderSlot(P.$slots,"verify-user-footer",{onVerifyUserSubmit:ne,onSkipClicked:oe})]),_:3},512)):o.createCommentVNode("",!0),(be=o.unref(S))!=null&&be.matches("confirmVerifyUser")?(o.openBlock(),o.createBlock(zo,{key:9,onConfirmVerifyUserSubmit:Ue,ref_key:"confirmVerifyUserComponent",ref:M},{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:ne,onSkipClicked:oe})=>[o.renderSlot(P.$slots,"confirm-verify-user-footer",{onConfirmVerifyUserSubmit:ne,onSkipClicked:oe})]),_:3},512)):o.createCommentVNode("",!0)],8,n2),o.renderSlot(P.$slots,"footer")])],16,e2)):o.createCommentVNode("",!0),(it=o.unref(y))!=null&&it.matches("authenticated")?o.renderSlot(P.$slots,"default",{key:1,user:en.value,state:o.unref(y),signOut:tn.value,send:o.unref(v)}):o.createCommentVNode("",!0)],64)}}}),Ts=o.defineComponent({props:{info:{type:Object}},setup(e){return()=>e.info}}),$s=o.defineComponent({__name:"amplify-text-field",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(l,d)=>{const p=Zn,f=Qn,g=ye;return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(p,{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(g,{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)}}}),o2={class:"amplify-flex amplify-field amplify-checkboxfield"},a2={class:"amplify-flex amplify-checkbox"},i2={class:"amplify-visually-hidden"},s2=["data-error","data-checked"],u2=["data-checked"],c2=o.createElementVNode("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},null,-1),l2=[c2],d2=o.createElementVNode("span",{class:"amplify-text amplify-checkbox__label"}," I agree with the Terms & Conditions",-1),f2={key:0,class:"amplify-text amplify-field__error-message"},Ps=o.defineComponent({__name:"amplify-check-box",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",o2,[o.createElementVNode("label",a2,[o.createElementVNode("span",i2,[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},l2,10,u2))],10,s2),d2]),n.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("p",f2,o.toDisplayString(o.unref(r)),1))]))}});var p2={install:e=>{e.component("SignIn",$o),e.component("SignUp",No),e.component("FederatedSignIn",Jn),e.component("Authenticator",Is),e.component("RenderInfo",Ts),e.component("PasswordControl",To),e.component("ForceNewPassword",Mo),e.component("ResetPassword",Fo),e.component("ConfirmResetPassword",Lo),e.component("ConfirmSignUp",ko),e.component("ConfirmSignIn",xo),e.component("VerifyUser",jo),e.component("ConfirmVerifyUser",zo),e.component("AmplifyTextField",$s),e.component("AmplifyCheckBox",Ps),e.component("AmplifyButton",_e),e.component("BaseFormField",us),e.component("BaseFormFields",ze),e.component("AuthenticatorSignUpFormFields",Po),e.component("AuthenticatorForceNewPasswordFormFields",Do)}};exports.AmplifyButton=_e;exports.AmplifyCheckBox=Ps;exports.AmplifyTextField=$s;exports.Authenticator=Is;exports.AuthenticatorForceNewPasswordFormFields=Do;exports.AuthenticatorSignUpFormFields=Po;exports.ConfirmResetPassword=Lo;exports.ConfirmSignIn=xo;exports.ConfirmSignUp=ko;exports.ConfirmVerifyUser=zo;exports.FederatedSignIn=Jn;exports.ForceNewPassword=Mo;exports.PasswordControl=To;exports.RenderInfo=Ts;exports.ResetPassword=Fo;exports.SignIn=$o;exports.SignUp=No;exports.VerifyUser=jo;exports.default=p2;exports.translations=_l;exports.useAuthenticator=Ae;
37
+ `);const s=LC(t,n,a),u=nr.getSymbolSize(t),c=new NC(u);return BC(c,t),VC(c),MC(c,t),hr(c,n,0),t>=7&&DC(c,t),FC(c,s),isNaN(r)&&(r=Vr.getBestMask(c,hr.bind(null,c,n))),Vr.applyMask(r,c),hr(c,n,r),{modules:c,version:t,errorCorrectionLevel:n,maskPattern:r,segments:a}}ls.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=Un.from(n.version),i=Vr.from(n.maskPattern),n.toSJISFunc&&nr.setToSJISFunction(n.toSJISFunc)),zC(t,a,r,i)};var Cs={},Bo={};(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),l=Math.floor((s+i.margin*2)*c),d=i.margin*c,h=[i.color.light,i.color.dark];for(let f=0;f<l;f++)for(let g=0;g<l;g++){let p=(f*l+g)*4,m=i.color.light;if(f>=d&&g>=d&&f<l-d&&g<l-d){const y=Math.floor((f-d)/c),v=Math.floor((g-d)/c);m=h[u[y*s+v]?1:0]}r[p++]=m.r,r[p++]=m.g,r[p++]=m.b,r[p]=m.a}}})(Bo);(function(e){const t=Bo;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,l=s;typeof c=="undefined"&&(!s||!s.getContext)&&(c=s,s=void 0),s||(l=r()),c=t.getOptions(c);const d=t.getImageWidth(i.modules.size,c),h=l.getContext("2d"),f=h.createImageData(d,d);return t.qrToImageData(f.data,i,c),n(h,l,d),h.putImageData(f,0,0),l},e.renderToDataURL=function(i,s,u){let c=u;typeof c=="undefined"&&(!s||!s.getContext)&&(c=s,s=void 0),c||(c={});const l=e.render(i,s,c),d=c.type||"image/png",h=c.rendererOpts||{};return l.toDataURL(d,h.quality)}})(Cs);var As={};const GC=Bo;function Za(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 HC(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),l=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+l+n):mr("m",a,0),a=0,i=!1),c+1<t&&e[u+1]||(r+=mr("h",s),s=0)):a++}return r}As.render=function(t,n,r){const a=GC.getOptions(n),i=t.modules.size,s=t.modules.data,u=i+a.margin*2,c=a.color.light.a?"<path "+Za(a.color.light,"fill")+' d="M0 0h'+u+"v"+u+'H0z"/>':"",l="<path "+Za(a.color.dark,"stroke")+' d="'+HC(s,i,a.margin)+'"/>',d='viewBox="0 0 '+u+" "+u+'"',h=a.width?'width="'+a.width+'" height="'+a.width+'" ':"",f='<svg xmlns="http://www.w3.org/2000/svg" '+h+d+' shape-rendering="crispEdges">'+c+l+`</svg>
38
+ `;return typeof r=="function"&&r(null,f),f};const KC=iC,Dr=ls,Es=Cs,qC=As;function Vo(e,t,n,r,a){const i=[].slice.call(arguments,1),s=i.length,u=typeof i[s-1]=="function";if(!u&&!KC())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,l){try{const d=Dr.create(n,r);c(e(d,t,r))}catch(d){l(d)}})}try{const c=Dr.create(n,r);a(null,e(c,t,r))}catch(c){a(c)}}Qt.create=Dr.create;Qt.toCanvas=Vo.bind(null,Es.render);Qt.toDataURL=Vo.bind(null,Es.renderToDataURL);Qt.toString=Vo.bind(null,function(e,t,n){return qC.render(e,n)});const WC={key:0},YC=o.createTextVNode(" Setup TOTP "),JC=["src"],ZC={"data-amplify-copy-tooltip":""},QC=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),XC=o.defineComponent({__name:"setup-totp",emits:["confirmSetupTOTPSubmit","backToSignInClicked"],setup(e,{emit:t}){var C,E;const r=$e(Ae)(),a=o.useAttrs(),{state:i,send:s}=Pe(),{value:{context:u}}=i,c=(E=(C=u==null?void 0:u.config)==null?void 0:C.formFields)==null?void 0:E.setupTOTP,l=c==null?void 0:c.QR,d=o.computed(()=>Te(i.value));let h=o.reactive({qrCodeImageSource:"",isLoading:!0}),f=o.ref(""),g=o.ref(R("COPY"));function p(){navigator.clipboard.writeText(f.value),g.value=R("COPIED")}o.onMounted(async()=>{var k,I;const A=new ce.Logger("SetupTOTP-logger"),{user:$}=d.value.context;if(!!$)try{f.value=await ce.Auth.setupTOTP($);const B=(k=l==null?void 0:l.totpIssuer)!=null?k:"AWSCognito",F=(I=l==null?void 0:l.totpUsername)!=null?I:$.username,D=encodeURI(`otpauth://totp/${B}:${F}?secret=${f.value}&issuer=${B}`);h.qrCodeImageSource=await Qt.toDataURL(D)}catch(B){A.error(B)}finally{h.isLoading=!1}});const m=o.computed(()=>R("Back to Sign In")),y=o.computed(()=>R("Confirm")),v=A=>{const{name:$,value:k}=A.target;s({type:"CHANGE",data:{name:$,value:k}})},_=A=>{a!=null&&a.onConfirmSetupTOTPSubmit?t("confirmSetupTOTPSubmit",A):S(A)},S=A=>{r.submitForm(De(A))},b=()=>{a!=null&&a.onBackToSignInClicked?t("backToSignInClicked"):s({type:"SIGN_IN"})};return(A,$)=>{const k=Qe,I=ye,B=Fe,F=_e,D=je,H=Be,W=Le;return o.renderSlot(A.$slots,"confirmSetupTOTPI",o.normalizeProps(o.guardReactiveProps(A.$attrs)),()=>[o.createVNode(I,o.normalizeProps(o.guardReactiveProps(A.$attrs)),{default:o.withCtx(()=>[o.createVNode(W,{"data-amplify-authenticator-setup-totp":"",onInput:v,onSubmit:o.withModifiers(_,["prevent"])},{default:o.withCtx(()=>[o.createVNode(H,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(d).matches("confirmSignIn.pending")},{default:o.withCtx(()=>[o.unref(h).isLoading?(o.openBlock(),o.createElementBlock("p",WC,"Loading...")):(o.openBlock(),o.createBlock(I,{key:1,class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(A.$slots,"header",{},()=>[o.createVNode(k,{class:"amplify-heading",level:3},{default:o.withCtx(()=>[YC]),_:1})]),o.createVNode(I,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createElementVNode("img",{class:"amplify-image","data-amplify-qrcode":"",src:o.unref(h).qrCodeImageSource,alt:"qr code",width:"228",height:"228"},null,8,JC),o.createVNode(I,{class:"amplify-flex","data-amplify-copy":""},{default:o.withCtx(()=>[o.createElementVNode("div",null,o.toDisplayString(o.unref(f)),1),o.createVNode(I,{"data-amplify-copy-svg":"",onClick:p},{default:o.withCtx(()=>[o.createElementVNode("div",ZC,o.toDisplayString(o.unref(g)),1),QC]),_:1})]),_:1}),o.createVNode(ze,{route:"setupTOTP"})]),_:1}),o.createVNode(D,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var pe;return[(pe=o.unref(d).context)!=null&&pe.remoteError?(o.openBlock(),o.createBlock(B,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(R)(o.unref(d).context.remoteError)),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(F,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",type:"submit",disabled:o.unref(d).matches("confirmSignIn.pending")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(y)),1)]),_:1},8,["disabled"]),o.createVNode(F,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(b,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(m)),1)]),_:1},8,["onClick"]),o.renderSlot(A.$slots,"footer",{onBackToSignInClicked:b,onSetupTOTPSubmit:_})]}),_:3})]),_:3}))]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Mo=o.defineComponent({__name:"authenticator-force-new-password-form-fields",setup(e){return(t,n)=>(o.openBlock(),o.createBlock(ze,{route:"forceNewPassword"}))}}),Do=o.defineComponent({__name:"force-new-password",emits:["haveAccountClicked","forceNewPasswordSubmit"],setup(e,{emit:t}){const n=o.useAttrs(),{state:r,send:a}=Pe(),s=$e(Ae)(),u=o.computed(()=>Te(r.value)),c=o.computed(()=>R("Change Password")),l=o.computed(()=>R("Changing")),d=o.computed(()=>R("Back to Sign In")),h=()=>{n!=null&&n.onHaveAccountClicked?t("haveAccountClicked"):a({type:"SIGN_IN"})},f=y=>{n!=null&&n.onForceNewPasswordSubmit?t("forceNewPasswordSubmit",y):g(y)},g=y=>{s.submitForm(De(y))},p=y=>{const{name:v,value:_}=y.target;a({type:"CHANGE",data:{name:v,value:_}})};function m(y){const{name:v}=y.target;s.updateBlur({name:v})}return(y,v)=>{const _=Qe,S=ye,b=Fe,C=_e,E=je,A=Be,$=Le;return o.renderSlot(y.$slots,"forceNewPasswordI",o.normalizeProps(o.guardReactiveProps(y.$attrs)),()=>[o.createVNode(S,o.normalizeProps(o.guardReactiveProps(y.$attrs)),{default:o.withCtx(()=>[o.createVNode($,{"data-amplify-authenticator-forcenewpassword":"",onInput:p,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(y.$slots,"header",{},()=>[o.createVNode(_,{level:3,class:"amplify-heading"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(c)),1)]),_:1})]),o.createVNode(S,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(y.$slots,"force-new-password-form-fields",{},()=>[o.createVNode(Mo)])]),_:3}),o.createVNode(E,{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(R)(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(l)+"\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(d)),1)]),_:1},8,["onClick"]),o.renderSlot(y.$slots,"footer",{onHaveAccountClicked:h,onForceNewPasswordSubmit:f})]),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Fo=o.defineComponent({__name:"reset-password",emits:["resetPasswordSubmit","backToSignInClicked"],setup(e,{emit:t}){const n=o.useAttrs(),r=$e(Ae),{send:a,submitForm:i}=r(),{error:s,isPending:u}=o.toRefs(r()),c=o.computed(()=>R("Back to Sign In")),l=o.computed(()=>R("Reset your password")),d=o.computed(()=>R("Send Code")),h=m=>{n!=null&&n.onResetPasswordSubmit?t("resetPasswordSubmit",m):f(m)},f=m=>{i(De(m))},g=m=>{const{name:y,value:v}=m.target;a({type:"CHANGE",data:{name:y,value:v}})},p=()=>{n!=null&&n.onBackToSignInClicked?t("backToSignInClicked"):a({type:"SIGN_IN"})};return(m,y)=>{const v=Qe,_=Be,S=Fe,b=_e,C=je,E=ye,A=Le;return o.renderSlot(m.$slots,"resetPasswordSlotI",o.normalizeProps(o.guardReactiveProps(m.$attrs)),()=>[o.createVNode(A,o.mergeProps(m.$attrs,{"data-amplify-authenticator-resetpassword":"",onInput:g,onSubmit:o.withModifiers(h,["prevent"])}),{default:o.withCtx(()=>[o.createVNode(E,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(m.$slots,"header",{},()=>[o.createVNode(v,{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(u)},{default:o.withCtx(()=>[o.createVNode(ze,{route:"resetPassword"})]),_:1},8,["disabled"]),o.createVNode(C,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.unref(s)?(o.openBlock(),o.createBlock(S,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(R)(o.unref(s))),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)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),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(p,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(c)),1)]),_:1},8,["onClick"]),o.renderSlot(m.$slots,"footer",{onBackToSignInClicked:p,onResetPasswordSubmit:h})]),_:3})]),_:3})]),_:3},16,["onSubmit"])])}}}),Lo=o.defineComponent({__name:"confirm-reset-password",emits:["confirmResetPasswordSubmit","backToSignInClicked"],setup(e,{emit:t}){const{state:n,send:r}=Pe(),i=$e(Ae)(),s=o.useAttrs(),u=o.computed(()=>Te(n.value)),c=o.computed(()=>R("Resend Code")),l=o.computed(()=>R("Reset your Password")),d=o.computed(()=>R("Submit")),h=y=>{s!=null&&s.onConfirmResetPasswordSubmit?t("confirmResetPasswordSubmit",y):f(y)},f=y=>{i.submitForm(De(y))},g=()=>{r({type:"RESEND"})},p=y=>{const{name:v,value:_}=y.target;r({type:"CHANGE",data:{name:v,value:_}})};function m(y){const{name:v}=y.target;i.updateBlur({name:v})}return(y,v)=>{const _=Qe,S=ye,b=Fe,C=_e,E=je,A=Be,$=Le;return o.renderSlot(y.$slots,"confirmResetPasswordSlotI",o.normalizeProps(o.guardReactiveProps(y.$attrs)),()=>[o.createVNode(S,o.normalizeProps(o.guardReactiveProps(y.$attrs)),{default:o.withCtx(()=>[o.createVNode($,{"data-amplify-authenticator-confirmResetpassword":"",onInput:p,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(y.$slots,"header",{},()=>[o.createVNode(_,{class:"amplify-heading",level:3},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1})]),o.createVNode(S,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(ze,{route:"confirmResetPassword"})]),_:1}),o.createVNode(E,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var k,I;return[(I=(k=o.unref(u))==null?void 0:k.context)!=null&&I.remoteError?(o.openBlock(),o.createBlock(b,{key:0},{default:o.withCtx(()=>{var B,F;return[o.createTextVNode(o.toDisplayString(o.unref(R)((F=(B=o.unref(u))==null?void 0:B.context)==null?void 0:F.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(d)),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(g,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(c)),1)]),_:1},8,["onClick"]),o.renderSlot(y.$slots,"footer",{onConfirmResetPasswordSubmit:h,onLostYourCodeClicked:g})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),jo=o.defineComponent({__name:"verify-user",emits:["verifyUserSubmit","skipClicked"],setup(e,{emit:t}){const r=$e(Ae)(),a=o.useAttrs(),{state:i,send:s}=Pe(),u=o.computed(()=>Te(i.value)),{unverifiedContactMethods:c}=u.value.context,l=o.computed(()=>R("Account recovery requires verified contact information")),d=o.computed(()=>R("Skip")),h=o.computed(()=>R("Verify")),f=o.computed(()=>R("Verify Contact")),g=v=>{const{name:_,value:S}=v.target;s({type:"CHANGE",data:{name:_,value:S}})},p=v=>{a!=null&&a.onVerifyUserSubmit?t("verifyUserSubmit",v):m(v)},m=v=>{r.submitForm(De(v))},y=()=>{a!=null&&a.onSkipClicked?t("skipClicked"):s("SKIP")};return(v,_)=>{const S=Qe,b=Zn,C=Qn,E=cs,A=ye,$=Fe,k=_e,I=je,B=Be,F=Le;return o.renderSlot(v.$slots,"verifyUserSlotI",{},()=>[o.createVNode(A,null,{default:o.withCtx(()=>[o.createVNode(F,{onInput:g,onSubmit:o.withModifiers(p,["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(v.$slots,"header",{},()=>[o.createVNode(S,{class:"amplify-heading",level:3},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),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),(D,H)=>(o.openBlock(),o.createBlock(b,{class:"amplify-flex amplify-radio","data-amplify-verify-label":"",id:"verify",key:D},{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:H},null,8,["value"]),o.createVNode(E,{class:"amplify-flex amplify-radio__button","aria-hidden":"true"}),o.createVNode(E,{class:"amplify-text amplify-radio__label"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(Gr)[H].label),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1}),o.createVNode(I,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var D,H;return[(H=(D=o.unref(u))==null?void 0:D.context)!=null&&H.remoteError?(o.openBlock(),o.createBlock($,{key:0},{default:o.withCtx(()=>{var W;return[o.createTextVNode(o.toDisplayString(o.unref(R)((W=o.unref(u))==null?void 0:W.context.remoteError)),1)]}),_:1})):o.createCommentVNode("",!0),o.createVNode(k,{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(k,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(y,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1},8,["onClick"]),o.renderSlot(v.$slots,"footer",{onSkipClicked:y,onVerifyUserSubmit:p})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3})])}}}),zo=o.defineComponent({__name:"confirm-verify-user",emits:["confirmVerifyUserSubmit","skipClicked"],setup(e,{emit:t}){const r=$e(Ae)(),a=o.useAttrs(),{state:i,send:s}=Pe(),u=o.computed(()=>Te(i.value)),c=o.computed(()=>R("Account recovery requires verified contact information")),l=o.computed(()=>R("Skip")),d=o.computed(()=>R("Submit")),h=m=>{const{name:y,value:v}=m.target;s({type:"CHANGE",data:{name:y,value:v}})},f=m=>{a!=null&&a.onConfirmVerifyUserSubmit?t("confirmVerifyUserSubmit",m):g(m)},g=m=>{r.submitForm(De(m))},p=()=>{a!=null&&a.onSkipClicked?t("skipClicked"):s({type:"SKIP"})};return(m,y)=>{const v=Qe,_=ye,S=Fe,b=_e,C=je,E=Be,A=Le;return o.renderSlot(m.$slots,"confirmVerifyUserSlotI",o.normalizeProps(o.guardReactiveProps(m.$attrs)),()=>[o.createVNode(_,o.normalizeProps(o.guardReactiveProps(m.$attrs)),{default:o.withCtx(()=>[o.createVNode(A,{onInput:h,onSubmit:o.withModifiers(f,["prevent"])},{default:o.withCtx(()=>[o.createVNode(E,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(u).matches("confirmVerifyUser.pending")},{default:o.withCtx(()=>[o.renderSlot(m.$slots,"header",{},()=>[o.createVNode(v,{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.createVNode(ze,{route:"confirmVerifyUser"})]),_:1}),o.createVNode(C,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var $,k;return[(k=($=o.unref(u))==null?void 0:$.context)!=null&&k.remoteError?(o.openBlock(),o.createBlock(S,{key:0},{default:o.withCtx(()=>{var I;return[o.createTextVNode(o.toDisplayString(o.unref(R)((I=o.unref(u))==null?void 0:I.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(d)),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(p,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1},8,["onClick"]),o.renderSlot(m.$slots,"footer",{onSkipClicked:p,onConfirmVerifyUserSubmit:f})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),e2=["data-variation"],t2={"data-amplify-container":""},n2=["data-amplify-router-content"],r2={key:1,"data-amplify-router-content":""},Is=o.defineComponent({__name:"authenticator",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 n=e,r=o.useAttrs(),{initialState:a,loginMechanisms:i,variation:s,services:u,signUpAttributes:c,socialProviders:l,hideSignUp:d,formFields:h}=o.toRefs(n),f=c0(),g=S0(f);let p,m;const{state:y,send:v}=is(g);Pe(g);const _=o.ref(!1);m=g.subscribe(P=>{P.matches("setup")&&!_.value&&(v({type:"INIT",data:{initialState:a==null?void 0:a.value,loginMechanisms:i==null?void 0:i.value,socialProviders:l==null?void 0:l.value,signUpAttributes:c==null?void 0:c.value,services:u==null?void 0:u.value,formFields:h==null?void 0:h.value}}),_.value=!0)}).unsubscribe,o.onMounted(()=>{p=El(g)}),o.onUnmounted(()=>{p&&p(),m&&m()});const S=o.computed(()=>Te(y.value)),b=o.ref(),C=o.ref(),E=o.ref(),A=o.ref(),$=o.ref(),k=o.ref(),I=o.ref(),B=o.ref(),F=o.ref(),D=o.ref(),H=o.computed(()=>R("Create Account")),W=o.computed(()=>R("Sign In")),pe=P=>{var Se;r!=null&&r.onSignInSubmit?t("signInSubmit",P):(Se=b.value)==null||Se.submit(P)},qe=P=>{r!=null&&r.onConfirmSignUpSubmit?t("confirmSignUpSubmit",P):E.value.submit(P)},ot=P=>{r!=null&&r.onResetPasswordSubmit?t("resetPasswordSubmit",P):I.value.submit(P)},Ne=P=>{r!=null&&r.onConfirmResetPasswordSubmit?t("confirmResetPasswordSubmit",P):B.value.submit(P)},at=P=>{r!=null&&r.onConfirmSignInSubmit?t("confirmSignInSubmit",P):A.value.submit(P)},we=P=>{r!=null&&r.onForceNewPasswordSubmit?t("mSetupTOTPSubmit",P):$.value.submit(P)},Pt=P=>{r!=null&&r.onForceNewPasswordSubmit?t("forceNewPasswordSubmit",P):k.value.submit(P)},Nt=P=>{r!=null&&r.onSignUpSubmit?t("signUpSubmit",P):C.value.submit()},de=P=>{r!=null&&r.onVerifyUserSubmit?t("verifyUserSubmit",P):F.value.submit(P)},Ue=P=>{r!=null&&r.onConfirmVerifyUserSubmit?t("confirmVerifyUserSubmit",P):D.value.submit(P)},en=o.ref(null),tn=o.ref();o.watch(()=>y.value.context,()=>{const{user:P,signOut:Se}=si({send:v,state:y.value});en.value=P,tn.value=Se});const kt=o.computed(()=>{var P,Se;return((P=S.value)==null?void 0:P.matches("signIn"))||((Se=S.value)==null?void 0:Se.matches("signUp"))}),rr=o.computed(()=>{var P;return!(y.value.matches("authenticated")||y.value.matches("idle")||y.value.matches("setup")||y.value.matches("signOut")||((P=S.value)==null?void 0:P.matches("autoSignIn")))});return(P,Se)=>{var N,O,x,V,M,j,L,X,ie,be,it;const nn=eC,w=rC;return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.unref(rr)?(o.openBlock(),o.createElementBlock("div",o.mergeProps({key:0},P.$attrs,{"data-amplify-authenticator":"","data-variation":o.unref(s)}),[o.createElementVNode("div",t2,[o.renderSlot(P.$slots,"header"),o.createElementVNode("div",{"data-amplify-router":"","data-amplify-router-content":o.unref(kt)?void 0:""},[o.unref(kt)&&!o.unref(d)?(o.openBlock(),o.createBlock(w,{key:0},{default:o.withCtx(()=>{var ne,oe;return[o.createVNode(nn,{active:(ne=o.unref(S))==null?void 0:ne.matches("signIn"),id:44472,label:o.unref(W),onClick:Se[0]||(Se[0]=st=>o.unref(v)("SIGN_IN"))},null,8,["active","label"]),o.createVNode(nn,{active:(oe=o.unref(S))==null?void 0:oe.matches("signUp"),id:44471,label:o.unref(H),onClick:Se[1]||(Se[1]=st=>o.unref(v)("SIGN_UP"))},null,8,["active","label"])]}),_:1})):o.createCommentVNode("",!0),o.unref(kt)?(o.openBlock(),o.createElementBlock("div",r2,[(N=o.unref(S))!=null&&N.matches("signIn")?(o.openBlock(),o.createBlock($o,{key:0,onSignInSubmit:pe,ref_key:"signInComponent",ref:b},{signInSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"sign-in")]),form:o.withCtx(({info:ne,onSignInSubmit:oe,onForgotPasswordClicked:st,onInput:xt})=>[o.renderSlot(P.$slots,"sign-in-form",{info:ne,onInput:xt,onSignInSubmit:oe,onForgotPasswordClicked:st})]),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),((O=o.unref(S))==null?void 0:O.matches("signUp"))&&!o.unref(d)?(o.openBlock(),o.createBlock(No,{key:1,onSignUpSubmit:Nt,ref_key:"signUpComponent",ref:C},{signUpSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"sign-up")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"sign-up-header")]),"signup-fields":o.withCtx(({info:ne})=>[o.renderSlot(P.$slots,"sign-up-fields",{info:ne})]),footer:o.withCtx(()=>[o.renderSlot(P.$slots,"sign-up-footer")]),_:3},512)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),(x=o.unref(S))!=null&&x.matches("confirmSignUp")?(o.openBlock(),o.createBlock(ko,{key:2,onConfirmSignUpSubmit:qe,ref_key:"confirmSignUpComponent",ref:E},{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:ne,onLostCodeClicked:oe})=>[o.renderSlot(P.$slots,"confirm-sign-up-footer",{onConfirmSignUpSubmit:ne,onLostCodeClicked:oe})]),_:3},512)):o.createCommentVNode("",!0),(V=o.unref(S))!=null&&V.matches("resetPassword")?(o.openBlock(),o.createBlock(Fo,{key:3,onResetPasswordSubmit:ot,ref_key:"resetPasswordComponent",ref:I},{resetPasswordSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"reset-password")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"reset-password-header")]),footer:o.withCtx(({onResetPasswordSubmit:ne,onBackToSignInClicked:oe})=>[o.renderSlot(P.$slots,"reset-password-footer",{onResetPasswordSubmit:ne,onBackToSignInClicked:oe})]),_:3},512)):o.createCommentVNode("",!0),(M=o.unref(S))!=null&&M.matches("confirmResetPassword")?(o.openBlock(),o.createBlock(Lo,{key:4,onConfirmResetPasswordSubmit:Ne,ref_key:"confirmResetPasswordComponent",ref:B},{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:ne,onLostYourCodeClicked:oe})=>[o.renderSlot(P.$slots,"confirm-reset-password-footer",{onConfirmResetPasswordSubmit:ne,onLostYourCodeClicked:oe})]),_:3},512)):o.createCommentVNode("",!0),(j=o.unref(S))!=null&&j.matches("confirmSignIn")?(o.openBlock(),o.createBlock(xo,{key:5,onConfirmSignInSubmit:at,ref_key:"confirmSignInComponent",ref:A},{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:ne,onBackToSignInClicked:oe})=>[o.renderSlot(P.$slots,"confirm-sign-in-footer",{onConfirmSignInSubmit:ne,onBackToSignInClicked:oe})]),_:3},512)):o.createCommentVNode("",!0),(L=o.unref(S))!=null&&L.matches("setupTOTP")?(o.openBlock(),o.createBlock(XC,{key:6,onConfirmSetupTotpSubmit:we,ref_key:"confirmSetupTOTPComponent",ref:$},{confirmSetupTOTPI:o.withCtx(()=>[o.renderSlot(P.$slots,"setup-totp")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"setup-totp-header")]),footer:o.withCtx(({onSetupTOTPSubmit:ne,onBackToSignInClicked:oe})=>[o.renderSlot(P.$slots,"setup-totp-footer",{onSetupTOTPSubmit:ne,onBackToSignInClicked:oe})]),_:3},512)):o.createCommentVNode("",!0),(X=o.unref(S))!=null&&X.matches("forceNewPassword")?(o.openBlock(),o.createBlock(Do,{key:7,onForceNewPasswordSubmit:Pt,ref_key:"forceNewPasswordComponent",ref:k},{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:ne,onForceNewPasswordSubmit:oe})=>[o.renderSlot(P.$slots,"force-new-password-footer",{onForceNewPasswordSubmit:oe,onBackToSignInClicked:ne})]),_:3},512)):o.createCommentVNode("",!0),(ie=o.unref(S))!=null&&ie.matches("verifyUser")?(o.openBlock(),o.createBlock(jo,{key:8,onVerifyUserSubmit:de,ref_key:"verifyUserComponent",ref:F},{verifyUserSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"verify-user")]),header:o.withCtx(()=>[o.renderSlot(P.$slots,"verify-user-header")]),footer:o.withCtx(({onVerifyUserSubmit:ne,onSkipClicked:oe})=>[o.renderSlot(P.$slots,"verify-user-footer",{onVerifyUserSubmit:ne,onSkipClicked:oe})]),_:3},512)):o.createCommentVNode("",!0),(be=o.unref(S))!=null&&be.matches("confirmVerifyUser")?(o.openBlock(),o.createBlock(zo,{key:9,onConfirmVerifyUserSubmit:Ue,ref_key:"confirmVerifyUserComponent",ref:D},{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:ne,onSkipClicked:oe})=>[o.renderSlot(P.$slots,"confirm-verify-user-footer",{onConfirmVerifyUserSubmit:ne,onSkipClicked:oe})]),_:3},512)):o.createCommentVNode("",!0)],8,n2),o.renderSlot(P.$slots,"footer")])],16,e2)):o.createCommentVNode("",!0),(it=o.unref(y))!=null&&it.matches("authenticated")?o.renderSlot(P.$slots,"default",{key:1,user:en.value,state:o.unref(y),signOut:tn.value,send:o.unref(v)}):o.createCommentVNode("",!0)],64)}}}),Ts=o.defineComponent({props:{info:{type:Object}},setup(e){return()=>e.info}}),$s=o.defineComponent({__name:"amplify-text-field",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(l,d)=>{const h=Zn,f=Qn,g=ye;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(g,{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)}}}),o2={class:"amplify-flex amplify-field amplify-checkboxfield"},a2={class:"amplify-flex amplify-checkbox"},i2={class:"amplify-visually-hidden"},s2=["data-error","data-checked"],u2=["data-checked"],c2=o.createElementVNode("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},null,-1),l2=[c2],d2=o.createElementVNode("span",{class:"amplify-text amplify-checkbox__label"}," I agree with the Terms & Conditions",-1),f2={key:0,class:"amplify-text amplify-field__error-message"},Ps=o.defineComponent({__name:"amplify-check-box",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",o2,[o.createElementVNode("label",a2,[o.createElementVNode("span",i2,[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},l2,10,u2))],10,s2),d2]),n.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("p",f2,o.toDisplayString(o.unref(r)),1))]))}});var p2={install:e=>{e.component("SignIn",$o),e.component("SignUp",No),e.component("FederatedSignIn",Jn),e.component("Authenticator",Is),e.component("RenderInfo",Ts),e.component("PasswordControl",To),e.component("ForceNewPassword",Do),e.component("ResetPassword",Fo),e.component("ConfirmResetPassword",Lo),e.component("ConfirmSignUp",ko),e.component("ConfirmSignIn",xo),e.component("VerifyUser",jo),e.component("ConfirmVerifyUser",zo),e.component("AmplifyTextField",$s),e.component("AmplifyCheckBox",Ps),e.component("AmplifyButton",_e),e.component("BaseFormField",us),e.component("BaseFormFields",ze),e.component("AuthenticatorSignUpFormFields",Po),e.component("AuthenticatorForceNewPasswordFormFields",Mo)}};exports.AmplifyButton=_e;exports.AmplifyCheckBox=Ps;exports.AmplifyTextField=$s;exports.Authenticator=Is;exports.AuthenticatorForceNewPasswordFormFields=Mo;exports.AuthenticatorSignUpFormFields=Po;exports.ConfirmResetPassword=Lo;exports.ConfirmSignIn=xo;exports.ConfirmSignUp=ko;exports.ConfirmVerifyUser=zo;exports.FederatedSignIn=Jn;exports.ForceNewPassword=Do;exports.PasswordControl=To;exports.RenderInfo=Ts;exports.ResetPassword=Fo;exports.SignIn=$o;exports.SignUp=No;exports.VerifyUser=jo;exports.default=p2;exports.translations=_l;exports.useAuthenticator=Ae;