@aws-amplify/ui-vue 2.4.16 → 2.4.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
- "use strict";var Ul=Object.defineProperty,zl=Object.defineProperties;var Ol=Object.getOwnPropertyDescriptors;var Kr=Object.getOwnPropertySymbols;var Rl=Object.prototype.hasOwnProperty,Bl=Object.prototype.propertyIsEnumerable;var Wr=(e,t,o)=>t in e?Ul(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,At=(e,t)=>{for(var o in t||(t={}))Rl.call(t,o)&&Wr(e,o,t[o]);if(Kr)for(var o of Kr(t))Bl.call(t,o)&&Wr(e,o,t[o]);return e},Et=(e,t)=>zl(e,Ol(t));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var r=require("vue"),se=require("aws-amplify");const ze=r.defineComponent({name:"base-field-set",setup(e){let t=r.useSlots();return(o,n)=>r.renderSlot(o.$slots,"fieldSetI",r.mergeProps(o.$attrs,{slotData:r.unref(t).default&&r.unref(t).default()}),()=>[r.createElementVNode("fieldset",r.mergeProps(o.$attrs,{"data-amplify-fieldset":""}),[r.renderSlot(o.$slots,"default")],16)])}}),Vl=["type","data-fullwidth","data-size","data-fontWeight","data-variation","data-loading","data-disabled","disabled"],we=r.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:o,fullWidth:n,size:a,variation:i,fontWeight:l}=r.toRefs(t);return(s,c)=>r.renderSlot(s.$slots,"buttont",r.normalizeProps(r.guardReactiveProps(s.$attrs)),()=>[r.createElementVNode("button",r.mergeProps({class:["amplify-button",{[`amplify-button--${r.unref(i)}`]:r.unref(i),[`amplify-button--${r.unref(a)}`]:r.unref(a),"amplify-button--fullwidth":r.unref(n),"amplify-button--loading":e.loading,"amplify-button--disabled":e.disabled}],type:r.unref(o),style:{fontWeight:r.unref(l)},"data-fullwidth":r.unref(n),"data-size":r.unref(a),"data-fontWeight":r.unref(l),"data-variation":r.unref(i),"data-loading":e.loading,"data-disabled":e.disabled,disabled:e.disabled},s.$attrs,{"data-amplify-button":""}),[r.renderSlot(s.$slots,"default")],16,Vl)])}});var ke=function(e){var t;return(t=e.context.actorRef)===null||t===void 0?void 0:t.getSnapshot()},ei=function(e){var t;return(t=ke(e))===null||t===void 0?void 0:t.context},oo=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Dl=typeof oo=="object"&&oo&&oo.Object===Object&&oo,ti=Dl,Ml=ti,Fl=typeof self=="object"&&self&&self.Object===Object&&self,jl=Ml||Fl||Function("return this")(),Oe=jl,Ll=Oe,Gl=Ll.Symbol,Ft=Gl,Yr=Ft,oi=Object.prototype,ql=oi.hasOwnProperty,Hl=oi.toString,It=Yr?Yr.toStringTag:void 0;function Kl(e){var t=ql.call(e,It),o=e[It];try{e[It]=void 0;var n=!0}catch{}var a=Hl.call(e);return n&&(t?e[It]=o:delete e[It]),a}var Wl=Kl,Yl=Object.prototype,Jl=Yl.toString;function Zl(e){return Jl.call(e)}var Xl=Zl,Jr=Ft,Ql=Wl,es=Xl,ts="[object Null]",os="[object Undefined]",Zr=Jr?Jr.toStringTag:void 0;function ns(e){return e==null?e===void 0?os:ts:Zr&&Zr in Object(e)?Ql(e):es(e)}var ut=ns;function rs(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Re=rs,as=ut,is=Re,ls="[object AsyncFunction]",ss="[object Function]",cs="[object GeneratorFunction]",ds="[object Proxy]";function ps(e){if(!is(e))return!1;var t=as(e);return t==ss||t==cs||t==ls||t==ds}var Hn=ps,fs=9007199254740991;function ms(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=fs}var Kn=ms,us=Hn,ys=Kn;function gs(e){return e!=null&&ys(e.length)&&!us(e)}var jt=gs,bs=Array.isArray,Pe=bs;function hs(e){return e!=null&&typeof e=="object"}var Ge=hs,vs=ut,ws=Ge,_s="[object Symbol]";function ks(e){return typeof e=="symbol"||ws(e)&&vs(e)==_s}var Wn=ks;function Ss(e,t){for(var o=-1,n=e==null?0:e.length,a=Array(n);++o<n;)a[o]=t(e[o],o,e);return a}var ni=Ss;function xs(e,t){for(var o=-1,n=Array(e);++o<e;)n[o]=t(o);return n}var Cs=xs,As=ut,Es=Ge,Is="[object Arguments]";function $s(e){return Es(e)&&As(e)==Is}var Ts=$s,Xr=Ts,Ps=Ge,ri=Object.prototype,Ns=ri.hasOwnProperty,Us=ri.propertyIsEnumerable,zs=Xr(function(){return arguments}())?Xr:function(e){return Ps(e)&&Ns.call(e,"callee")&&!Us.call(e,"callee")},Uo=zs,Xe={exports:{}};function Os(){return!1}var Rs=Os;(function(e,t){var o=Oe,n=Rs,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,l=i&&i.exports===a,s=l?o.Buffer:void 0,c=s?s.isBuffer:void 0,d=c||n;e.exports=d})(Xe,Xe.exports);var Bs=9007199254740991,Vs=/^(?:0|[1-9]\d*)$/;function Ds(e,t){var o=typeof e;return t=t==null?Bs:t,!!t&&(o=="number"||o!="symbol"&&Vs.test(e))&&e>-1&&e%1==0&&e<t}var zo=Ds,Ms=ut,Fs=Kn,js=Ge,Ls="[object Arguments]",Gs="[object Array]",qs="[object Boolean]",Hs="[object Date]",Ks="[object Error]",Ws="[object Function]",Ys="[object Map]",Js="[object Number]",Zs="[object Object]",Xs="[object RegExp]",Qs="[object Set]",ec="[object String]",tc="[object WeakMap]",oc="[object ArrayBuffer]",nc="[object DataView]",rc="[object Float32Array]",ac="[object Float64Array]",ic="[object Int8Array]",lc="[object Int16Array]",sc="[object Int32Array]",cc="[object Uint8Array]",dc="[object Uint8ClampedArray]",pc="[object Uint16Array]",fc="[object Uint32Array]",ae={};ae[rc]=ae[ac]=ae[ic]=ae[lc]=ae[sc]=ae[cc]=ae[dc]=ae[pc]=ae[fc]=!0;ae[Ls]=ae[Gs]=ae[oc]=ae[qs]=ae[nc]=ae[Hs]=ae[Ks]=ae[Ws]=ae[Ys]=ae[Js]=ae[Zs]=ae[Xs]=ae[Qs]=ae[ec]=ae[tc]=!1;function mc(e){return js(e)&&Fs(e.length)&&!!ae[Ms(e)]}var uc=mc;function yc(e){return function(t){return e(t)}}var Yn=yc,Vt={exports:{}};(function(e,t){var o=ti,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,l=i&&o.process,s=function(){try{var c=a&&a.require&&a.require("util").types;return c||l&&l.binding&&l.binding("util")}catch{}}();e.exports=s})(Vt,Vt.exports);var gc=uc,bc=Yn,Qr=Vt.exports,ea=Qr&&Qr.isTypedArray,hc=ea?bc(ea):gc,Oo=hc,vc=Cs,wc=Uo,_c=Pe,kc=Xe.exports,Sc=zo,xc=Oo,Cc=Object.prototype,Ac=Cc.hasOwnProperty;function Ec(e,t){var o=_c(e),n=!o&&wc(e),a=!o&&!n&&kc(e),i=!o&&!n&&!a&&xc(e),l=o||n||a||i,s=l?vc(e.length,String):[],c=s.length;for(var d in e)(t||Ac.call(e,d))&&!(l&&(d=="length"||a&&(d=="offset"||d=="parent")||i&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||Sc(d,c)))&&s.push(d);return s}var ai=Ec,Ic=Object.prototype;function $c(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||Ic;return e===o}var Ro=$c;function Tc(e,t){return function(o){return e(t(o))}}var ii=Tc,Pc=ii,Nc=Pc(Object.keys,Object),Uc=Nc,zc=Ro,Oc=Uc,Rc=Object.prototype,Bc=Rc.hasOwnProperty;function Vc(e){if(!zc(e))return Oc(e);var t=[];for(var o in Object(e))Bc.call(e,o)&&o!="constructor"&&t.push(o);return t}var li=Vc,Dc=ai,Mc=li,Fc=jt;function jc(e){return Fc(e)?Dc(e):Mc(e)}var Bo=jc,Le,vn;(function(e){e.SMS_MFA="SMS_MFA",e.SOFTWARE_TOKEN_MFA="SOFTWARE_TOKEN_MFA",e.NEW_PASSWORD_REQUIRED="NEW_PASSWORD_REQUIRED",e.RESET_REQUIRED="RESET_REQUIRED",e.MFA_SETUP="MFA_SETUP"})(Le||(Le={})),function(e){e.Apple="SignInWithApple",e.Amazon="LoginWithAmazon",e.Facebook="Facebook",e.Google="Google"}(vn||(vn={}));var z=function(){return z=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var a in t=arguments[o])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},z.apply(this,arguments)};function si(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(o[n[a]]=e[n[a]])}return o}function Y(e,t,o,n){return new(o||(o=Promise))(function(a,i){function l(d){try{c(n.next(d))}catch(p){i(p)}}function s(d){try{c(n.throw(d))}catch(p){i(p)}}function c(d){var p;d.done?a(d.value):(p=d.value,p instanceof o?p:new o(function(m){m(p)})).then(l,s)}c((n=n.apply(e,t||[])).next())})}function J(e,t){var o,n,a,i,l={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(c){return function(d){return function(p){if(o)throw new TypeError("Generator is already executing.");for(;l;)try{if(o=1,n&&(a=2&p[0]?n.return:p[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,p[1])).done)return a;switch(n=0,a&&(p=[2&p[0],a.value]),p[0]){case 0:case 1:a=p;break;case 4:return l.label++,{value:p[1],done:!1};case 5:l.label++,n=p[1],p=[0];continue;case 7:p=l.ops.pop(),l.trys.pop();continue;default:if(a=l.trys,!((a=a.length>0&&a[a.length-1])||p[0]!==6&&p[0]!==2)){l=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){l.label=p[1];break}if(p[0]===6&&l.label<a[1]){l.label=a[1],a=p;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(p);break}a[2]&&l.ops.pop(),l.trys.pop();continue}p=t.call(e,l)}catch(m){p=[6,m],n=0}finally{o=a=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}([c,d])}}}function Ue(e,t,o){if(o||arguments.length===2)for(var n,a=0,i=t.length;a<i;a++)!n&&a in t||(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);return e.concat(n||Array.prototype.slice.call(t))}var Lc=["birthdate","email","family_name","given_name","middle_name","name","nickname","phone_number","preferred_username","profile","website"],Gc=["username","email","phone_number"],qc=Ue(Ue(Ue([],Gc,!0),Lc,!0),["confirmation_code","password","confirm_password"],!1),wn=function(e){var t,o=(t=e==null?void 0:e.context.config)===null||t===void 0?void 0:t.loginMechanisms;return(o!=null?o:["username"])[0]},Hc=function(e){var t=function(o){return function(n){return e({type:o,data:n})}};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")}},Kc=function(e){var t,o,n=(t=e.context)===null||t===void 0?void 0:t.user,a=ke(e),i=ei(e),l=i==null?void 0:i.remoteError,s=z({},i==null?void 0:i.validationError),c=i==null?void 0:i.codeDeliveryDetails,d=Object.keys(s).length>0,p=e.hasTag("pending")||((o=ke(e))===null||o===void 0?void 0:o.hasTag("pending")),m=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}}(),f=function(u){switch(u){case"idle":case"setup":return"configuring";case"authenticated":return"authenticated";default:return"unauthenticated"}}(m);return{error:l,hasValidationErrors:d,isPending:p,route:m,authStatus:f,user:n,validationErrors:s,codeDeliveryDetails:c}},ci=function(e){var t=e.send,o=e.state,n=Hc(t),a=Kc(o);return z(z({},n),a)},Wc=["+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"],Yc={"Account recovery requires verified contact information":"Zur\xFCcksetzen des Account ben\xF6tigt einen verifizierten Account","An account with the given email already exists.":"Ein Account mit dieser Email existiert bereits.","Back to Sign In":"Zur\xFCck zur Anmeldung","Change Password":"Passwort \xE4ndern",Code:"Code",Confirm:"Best\xE4tigen","Confirm Password":"Passwort best\xE4tigen","Confirm a Code":"Code best\xE4tigen","Confirm Sign In":"Anmeldung best\xE4tigen","Confirm Sign Up":"Registrierung best\xE4tigen","Confirm SMS Code":"SMS-Code best\xE4tigen","Confirm TOTP Code":"TOTP-Code best\xE4tigen","Confirmation Code":"Best\xE4tigungs-Code","Create a new account":"Einen neuen Account erstellen","Create account":"Hier registrieren","Create Account":"Account erstellen","Creating Account":"Account wird erstellt",Email:"Email","Enter your code":"Geben Sie Ihren Code ein","Enter your password":"Geben Sie Ihr Passwort ein","Enter your username":"Geben Sie Ihren Benutzernamen ein","Enter your phone number":"Geben Sie Ihre Telefonnummer ein","Enter your email":"Geben Sie Ihre Email ein","Forgot your password?":"Passwort vergessen? ","Forgot Password":"Passwort vergessen","Hide password":"Passwort verbergen","Have an account? ":"Schon registriert? ","Incorrect username or password":"Falscher Benutzername oder falsches Passwort","Invalid password format":"Ung\xFCltiges Passwort-Format","Invalid phone number format":"Ung\xFCltiges Telefonummern-Format. Benutze eine Nummer im Format: +12345678900","Lost your code? ":"Code verloren? ","New Password":"Neues Passwort","No account? ":"Kein Account? ",or:"oder",Password:"Passwort","Password attempts exceeded":"Die maximale Anzahl der fehlerhaften Anmeldeversuche wurde erreicht","Phone Number":"Telefonnummer","Resend Code":"Code erneut senden","Reset password":"Passwort zur\xFCcksetzen","Reset your password":"Zur\xFCcksetzen des Passworts","Send Code":"Code senden","Send code":"Code senden","Sign in":"Anmelden","Sign In":"Anmelden","Sign in to your account":"Melden Sie sich mit Ihrem Account an","Sign Out":"Abmelden","Sign Up":"Registrieren",Skip:"\xDCberspringen",Submit:"Abschicken","User already exists":"Dieser Benutzer existiert bereits","User does not exist":"Dieser Benutzer existiert nicht",Username:"Benutzername","Username cannot be empty":"Benutzername darf nicht leer sein",Verify:"Verifizieren","Verify Contact":"Kontakt verifizieren","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","It may take a minute to arrive.":"Es k\xF6nnte eine Minute dauern, bis der Code eintrifft."},Jc={"Account recovery requires verified contact information":"Account recovery requires verified contact information","Back to Sign In":"Back to Sign In","Change Password":"Change Password",Changing:"Changing",Code:"Code",Confirm:"Confirm","Confirm Password":"Confirm Password","Confirm Sign Up":"Confirm Sign Up","Confirm SMS Code":"Confirm SMS Code","Confirm TOTP Code":"Confirm TOTP Code","Confirmation Code":"Confirmation Code",Confirming:"Confirming","Create Account":"Create Account","Creating Account":"Creating Account",Email:"Email","Enter your code":"Enter your code","Enter your username":"Enter your username","Enter your phone number":"Enter your phone number","Enter your email":"Enter your email","Forgot your password?":"Forgot your password?","Hide password":"Hide password",Loading:"Loading",Username:"Username","New password":"New password",Password:"Password","Phone Number":"Phone Number","Resend Code":"Resend Code","Reset your password":"Reset your password","Reset your Password":"Reset your Password","Send Code":"Send Code","Send code":"Send code",Sending:"Sending","Setup TOTP":"Setup TOTP","Show password":"Show password","Sign in":"Sign in","Sign In":"Sign In","Sign In with Amazon":"Sign In with Amazon","Sign In with Apple":"Sign In with Apple","Sign In with Facebook":"Sign In with Facebook","Sign In with Google":"Sign In with Google","Sign in to your account":"Sign in to your account","Create a new account":"Create a new account","Signing in":"Signing in",Skip:"Skip",Submit:"Submit",Submitting:"Submitting","Verify Contact":"Verify Contact",Verify:"Verify"},Zc={"Account recovery requires verified contact information":"La recuperaci\xF3n de la cuenta requiere informaci\xF3n de contacto verificada","An account with the given email already exists.":"Ya existe una cuenta con el correo ingresado.","Back to Sign In":"Volver a inicio de sesi\xF3n","Change Password":"Cambiar contrase\xF1a",Changing:"Cambiando",Code:"C\xF3digo",Confirm:"Confirmar","Confirm a Code":"Confirmar un c\xF3digo","Confirm Password":"Confirmar contrase\xF1a","Confirm Sign In":"Confirmar inicio de sesi\xF3n","Confirm Sign Up":"Confirmar registro","Confirm TOTP Code":"Confirmar c\xF3digo TOTP","Confirmation Code":"C\xF3digo de confirmaci\xF3n",Confirming:"Confirmando","Create a new account":"Crear una cuenta nueva","Create Account":"Crear cuenta","Creating Account":"Creando cuenta",Email:"Email","Enter your email":"Escriba su Email","Forgot Password":"Olvid\xE9 mi contrase\xF1a","Incorrect username or password.":"Nombre de usuario o contrase\xF1a incorrecta","Invalid password format":"Formato de contrase\xF1a inv\xE1lido","Invalid phone number format":"Formato de n\xFAmero de tel\xE9fono inv\xE1lido","Forgot your password?":"\xBFOlvid\xF3 su contrase\xF1a?","Hide password":"Ocultar contrase\xF1a","Loading...":"Cargando...","New Password":"Nueva contrase\xF1a",or:"o",Password:"Contrase\xF1a","Phone Number":"N\xFAmero de tel\xE9fono","Resend a Code":"Reenviar un c\xF3digo","Reset your password":"Restablecer su contrase\xF1a","Reset your Password":"Restablecer su Contrase\xF1a","Resend Code":"Reenviar c\xF3digo","Send Code":"Enviar c\xF3digo",Sending:"Enviando","Setup TOTP":"Configurar TOTP","Show password":"Mostrar contrase\xF1a","Sign in":"Iniciar sesi\xF3n","Sign In":"Iniciar Sesi\xF3n","Sign In with Amazon":"Iniciar Sesi\xF3n con Amazon","Sign In with Apple":"Iniciar Sesi\xF3n con Apple","Sign In with Facebook":"Iniciar Sesi\xF3n con Facebook","Sign In with Google":"Iniciar Sesi\xF3n con Google","Sign in to your account":"Iniciar sesi\xF3n en tu cuenta","Sign Out":"Cerrar sesi\xF3n","Sign Up":"Crear cuenta","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","Signing in":"Iniciando sesi\xF3n",Skip:"Omitir",Submit:"Enviar","User already exists":"El usuario ya existe","User does not exist":"El usuario no existe",Username:"Nombre de usuario","Username cannot be empty":"El nombre de usuario no puede estar vac\xEDo",Verify:"Verificar","Verify Contact":"Verificar contacto","Your passwords must match":"Las contrase\xF1as deben coincidir"},Xc={"Account recovery requires verified contact information":"La r\xE9cup\xE9ration du compte n\xE9cessite des informations de contact v\xE9rifi\xE9es","An account with the given email already exists.":"Un utilisateur avec cette adresse email existe d\xE9j\xE0.","Back to Sign In":"Retour \xE0 la connexion",Change:"Modifier","Change Password":"Modifier le mot de passe",Code:"Code",Confirm:"Confirmer","Confirm a Code":"Confirmer un code","Confirm Password":"Confirmez le mot de passe","Confirm Sign In":"Confirmer la connexion","Confirm Sign Up":"Confirmer l'inscription","Confirm SMS Code":"Confirmer le code SMS","Confirm TOTP Code":"Confirmer le code TOTP","Confirmation Code":"Code de confirmation","Create a new account":"Cr\xE9er un nouveau compte","Create account":"Cr\xE9er un compte","Create Account":"Cr\xE9er un compte",Email:"Email","Enter your code":"Saisissez cotre code de confirmation","Enter your email":"Saisissez votre adresse email","Enter your password":"Saisissez votre mot de passe","Enter your phone number":"Saisissez votre num\xE9ro de t\xE9l\xE9phone","Enter your username":"Saisissez votre nom d'utilisateur","Forgot Password":"Mot de passe oubli\xE9","Forgot your password?":"Mot de passe oubli\xE9 ? ","Have an account? ":"D\xE9j\xE0 un compte ? ",Hello:"Bonjour","Incorrect username or password":"Identifiant ou mot de passe incorrect","Invalid password format":"Format de mot de passe invalide","Invalid phone number format":"Format de num\xE9ro de t\xE9l\xE9phone invalide. Veuillez utiliser un format +12345678900","Loading...":"Chargement...","Lost your code? ":"Vous avez perdu votre code ? ","Network error":"Erreur r\xE9seau","New Password":"Nouveau mot de passe","No account? ":"Pas de compte ? ",or:"ou",Password:"Mot de passe","Phone Number":"Num\xE9ro de t\xE9l\xE9phone","Resend a Code":"Renvoyer un code","Resend Code":"Renvoyer le code","Reset password":"R\xE9initialisez votre mot de passe","Reset your password":"R\xE9initialisez votre mot de passe",Send:"Envoyer","Send Code":"M'envoyer un code","Sign in":"Se connecter","Sign In":"Se connecter","Sign in to your account":"Connexion \xE0 votre compte","Sign In with Amazon":"Se connecter avec Amazon","Sign In with AWS":"Se connecter avec AWS","Sign In with Facebook":"Se connecter avec Facebook","Sign In with Google":"Se connecter avec Google","Sign Out":"D\xE9connexion","Sign Up":"S'inscrire",Skip:"Passer",SMS:"SMS",Submit:"Soumettre","User already exists":"L'utilisateur existe d\xE9j\xE0","User does not exist":"L'utilisateur n'existe pas",Username:"Nom d'utilisateur","Username cannot be empty":"Le nom d'utilisateur doit \xEAtre renseign\xE9","Username/client id combination not found.":"L'utilisateur n'existe pas",Verify:"V\xE9rifier","Verify Contact":"V\xE9rifier le contact"},Qc={"Account recovery requires verified contact information":"Il ripristino dell'account richiede informazioni di contatto verificate","An account with the given email already exists.":"Questa email \xE8 gi\xE0 utilizzata da un'altro account.","Back to Sign In":"Torna alla schermata di accesso","Change Password":"Cambia la password",Code:"Codice",Confirm:"Conferma","Confirm a Code":"Conferma un codice","Confirm Password":"Conferma la password","Confirm Sign In":"Conferma l'accesso","Confirm Sign Up":"Conferma registrazione","Confirmation Code":"Codice di verifica","Create a new account":"Crea un nuovo account","Create account":"Crea account","Create Account":"Crea Account",Email:"Email","Enter your password":"Inserisci la tua password","Enter your username":"Inserisci il tuo nome utente","Forgot Password":"Password dimenticata","Forgot your password?":"Password dimenticata?","Have an account? ":"Gi\xE0 registrato?","Incorrect username or password":"Nome utente o password errati","Invalid password format":"Formato della password non valido","Invalid phone number format":"Formato del numero di telefono non valido","Lost your code?":"Codice smarrito?","New Password":"Nuova password",or:"o","No account? ":"Non hai un account?",Password:"Password","Password attempts exceeded":"Il numero massimo di tentativi di accesso falliti \xE8 stato raggiunto","Phone Number":"Numero di telefono","Resend Code":"Rispedisci codice","Reset password":"Reimposta password","Reset your password":"Reimposta la tua password","Send Code":"Invia codice","Sign in":"Accesso","Sign In":"Accesso","Sign in to your account":"Accedi al tuo account","Sign Out":"Esci","Sign Up":"Registrati",Skip:"Salta",Submit:"Invia","User already exists":"Utente gi\xE0 esistente","User does not exist":"Utente inesistente",Username:"Nome utente","Username cannot be empty":"Il nome utente non pu\xF2 essere vuoto",Verify:"Verifica","Verify Contact":"Verifica contatto"},ed={"Account recovery requires verified contact information":"\u30A2\u30AB\u30A6\u30F3\u30C8\u306E\u5FA9\u65E7\u306B\u306F\u78BA\u8A8D\u6E08\u307F\u306E\u9023\u7D61\u5148\u304C\u5FC5\u8981\u3067\u3059","An account with the given email already exists.":"\u5165\u529B\u3055\u308C\u305F\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u306E\u30A2\u30AB\u30A6\u30F3\u30C8\u304C\u65E2\u306B\u5B58\u5728\u3057\u307E\u3059","Back to Sign In":"\u30B5\u30A4\u30F3\u30A4\u30F3\u306B\u623B\u308B","Change Password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5909\u3048\u308B ",Code:"\u30B3\u30FC\u30C9",Confirm:"\u78BA\u5B9A","Confirm a Code":"\u30B3\u30FC\u30C9\u3092\u78BA\u8A8D","Confirm Password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u306E\u78BA\u8A8D","Confirm Sign In":"\u30B5\u30A4\u30F3\u30A4\u30F3\u3059\u308B","Confirm Sign Up":"\u767B\u9332\u3059\u308B","Confirmation Code":"\u78BA\u8A8D\u30B3\u30FC\u30C9","Create a new account":"\u65B0\u3057\u3044\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u4F5C\u308B","Create account":"\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u4F5C\u308B ","Create Account":"\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u4F5C\u308B",Email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9","Enter your password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5165\u529B ","Enter your username":"\u30E6\u30FC\u30B6\u30FC\u540D\u3092\u5165\u529B ","Forgot Password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5FD8\u308C\u305F ","Forgot your password?":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5FD8\u308C\u307E\u3057\u305F\u304B\uFF1F ","Have an account? ":"\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u6301\u3063\u3066\u3044\u307E\u3059\u304B\uFF1F","Incorrect username or password":"\u30E6\u30FC\u30B6\u30FC\u540D\u304B\u30D1\u30B9\u30EF\u30FC\u30C9\u304C\u7570\u306A\u308A\u307E\u3059 ","Invalid password format":"\u30D1\u30B9\u30EF\u30FC\u30C9\u306E\u5F62\u5F0F\u304C\u7121\u52B9\u3067\u3059 ","Invalid phone number format":`\u4E0D\u6B63\u306A\u96FB\u8A71\u756A\u53F7\u306E\u5F62\u5F0F\u3067\u3059\u3002
2
- +12345678900 \u306E\u5F62\u5F0F\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044`,"Lost your code? ":"\u30B3\u30FC\u30C9\u3092\u5931\u304F\u3057\u307E\u3057\u305F\u304B\uFF1F","New Password":"\u65B0\u3057\u3044\u30D1\u30B9\u30EF\u30FC\u30C9","No account? ":"\u30A2\u30AB\u30A6\u30F3\u30C8\u304C\u7121\u3044\u3068\u304D ",or:"\u53C8\u306F",Password:"\u30D1\u30B9\u30EF\u30FC\u30C9 ","Password attempts exceeded":"\u30B5\u30A4\u30F3\u30A4\u30F3\u306E\u8A66\u884C\u56DE\u6570\u304C\u4E0A\u9650\u306B\u9054\u3057\u307E\u3057\u305F","Phone Number":"\u96FB\u8A71\u756A\u53F7","Resend Code":"\u30B3\u30FC\u30C9\u3092\u518D\u9001\u4FE1","Reset password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u30EA\u30BB\u30C3\u30C8 ","Reset your password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u30EA\u30BB\u30C3\u30C8\u3059\u308B","Send Code":"\u30B3\u30FC\u30C9\u3092\u9001\u4FE1","Sign in":"\u30B5\u30A4\u30F3\u30A4\u30F3","Sign In":"\u30B5\u30A4\u30F3\u30A4\u30F3 ","Sign in to your account":"\u30A2\u30AB\u30A6\u30F3\u30C8\u306B\u30B5\u30A4\u30F3\u30A4\u30F3 ","Sign In with Amazon":"Amazon\u3067\u30B5\u30A4\u30F3\u30A4\u30F3","Sign In with Facebook":"Facebook\u3067\u30B5\u30A4\u30F3\u30A4\u30F3","Sign In with Google":"Google\u3067\u30B5\u30A4\u30F3\u30A4\u30F3","Sign Out":"\u30B5\u30A4\u30F3\u30A2\u30A6\u30C8 ","Sign Up":"\u767B\u9332 ",Skip:"\u30B9\u30AD\u30C3\u30D7",Submit:"\u9001\u4FE1","User already exists":"\u65E2\u306B\u30E6\u30FC\u30B6\u30FC\u304C\u5B58\u5728\u3057\u3066\u3044\u307E\u3059 ","User does not exist":"\u30E6\u30FC\u30B6\u30FC\u304C\u5B58\u5728\u3057\u307E\u305B\u3093 ",Username:"\u30E6\u30FC\u30B6\u30FC\u540D ","Username cannot be empty":"\u30E6\u30FC\u30B6\u30FC\u540D\u306F\u5165\u529B\u5FC5\u9808\u3067\u3059",Verify:"\u78BA\u8A8D","Verify Contact":"\u9023\u7D61\u5148\u3092\u78BA\u8A8D","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:","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"},td={"Back to Sign In":"\uB85C\uADF8\uC778\uC73C\uB85C \uB3CC\uC544\uAC00\uAE30",Birthdate:"\uC0DD\uB144\uC6D4\uC77C","Change Password":"\uBE44\uBC00\uBC88\uD638 \uBCC0\uACBD\uD558\uAE30",Changing:"\uBCC0\uACBD\uC911",Code:"\uCF54\uB4DC","Confirm Password":"\uBE44\uBC00\uBC88\uD638 \uC7AC\uD655\uC778","Reset your Password":"\uBE44\uBC00\uBC88\uD638 \uC7AC\uC124\uC815","Confirm Sign Up":"\uD68C\uC6D0\uAC00\uC785 \uD655\uC778","Confirm SMS Code":"\uD734\uB300\uD3F0 \uBCF8\uC778 \uD655\uC778","Confirm TOTP Code":"TOTP \uC778\uC99D\uBC88\uD638 \uD655\uC778",Confirm:"\uD655\uC778","Confirmation Code":"\uC778\uC99D\uBC88\uD638",Confirming:"\uD655\uC778\uC911","Create Account":"\uD68C\uC6D0\uAC00\uC785","Creating Account":"\uD68C\uC6D0\uAC00\uC785\uC911",Email:"\uC774\uBA54\uC77C","Enter your code":"\uC778\uC99D\uBC88\uD638\uB97C \uC785\uB825\uD574\uC8FC\uC138\uC694","Enter your username":"\uC544\uC774\uB514\uB97C \uC785\uB825\uD574\uC8FC\uC138\uC694","Family Name":"\uC131","Given Name":"\uC774\uB984","Forgot your password?":"\uBE44\uBC00\uBC88\uD638\uB97C \uC78A\uC73C\uC168\uB098\uC694?","Hide password":"\uBE44\uBC00\uBC88\uD638 \uC228\uAE30\uAE30",Loading:"\uB85C\uB529\uC911",Username:"\uC544\uC774\uB514",Name:"\uC131\uD568",Nickname:"\uB2C9\uB124\uC784","New password":"\uC0C8 \uBE44\uBC00\uBC88\uD638",Password:"\uBE44\uBC00\uBC88\uD638","Phone Number":"\uC804\uD654\uBC88\uD638","Preferred Username":"\uB2C9\uB124\uC784",Profile:"\uD504\uB85C\uD544","Resend Code":"\uC778\uC99D\uBC88\uD638 \uC7AC\uC804\uC1A1","Reset your password":"\uBE44\uBC00\uBC88\uD638 \uC7AC\uC124\uC815","Reset Password":"\uBE44\uBC00\uBC88\uD638 \uC7AC\uC124\uC815","Send code":"\uC778\uC99D\uCF54\uB4DC \uBCF4\uB0B4\uAE30",Sending:"\uC804\uC1A1\uC911","Setup TOTP":"TOTP \uC124\uC815\uD558\uAE30","Show password":"\uBE44\uBC00\uBC88\uD638 \uBCF4\uC774\uAE30","Sign in":"\uB85C\uADF8\uC778","Sign In":"\uB85C\uADF8\uC778","Sign In with Amazon":"Amazon \uB85C\uADF8\uC778","Sign In with Apple":"Apple \uB85C\uADF8\uC778","Sign In with Facebook":"Facebook \uB85C\uADF8\uC778","Sign In with Google":"Google \uB85C\uADF8\uC778","Sign in to your account":"\uB85C\uADF8\uC778","Create a new account":"\uD68C\uC6D0\uAC00\uC785","Signing in":"\uB85C\uADF8\uC778\uC911",Skip:"\uB2E4\uC74C\uC5D0 \uD558\uAE30",Submit:"\uD655\uC778",Submitting:"\uD655\uC778\uC911","Verify Contact":"\uC5F0\uB77D\uCC98 \uD655\uC778","Account recovery requires verified contact information":"\uACC4\uC815 \uBCF5\uAD6C\uB97C \uC704\uD574 \uC5F0\uB77D\uCC98 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4",Verify:"\uC778\uC99D",Website:"\uC6F9\uC0AC\uC774\uD2B8"},od={"Back to Sign In":"Terug naar inloggen","Change Password":"Wachtwoord wijzigen",Changing:"Wordt aangepast",Code:"Code","Confirm Password":"Bevestig Wachtwoord","Reset your Password":"Wachtwoord resetten","Confirm Sign Up":"Bevestig inschrijving","Confirm SMS Code":"Bevestig SMS Code","Confirm TOTP Code":"Bevestig TOTP Code",Confirm:"Bevestig","Confirmation Code":"Bevestigingscode",Confirming:"Bevestigen","Create Account":"Account aanmaken","Creating Account":"Account wordt aangemaakt",Email:"E-mail","Enter your code":"Vul je code in","Enter your username":"Vul je gebruikersnaam in","Enter your phone number":"Vul je telefoonnummer in","Enter your email":"Vul je e-mail in","Forgot your password?":"Wachtwoord vergeten? ","Hide password":"Verberg wachtwoord",Loading:"Laden",Username:"Gebruikersnaam","New password":"Nieuw wachtwoord",Password:"Wachtwoord","Phone Number":"Telefoonnummer","Resend Code":"Verstuur code nogmaals","Reset your password":"Reset je wachtwoord","Send Code":"Verstuur Code","Send code":"Verstuur code",Sending:"Versturen","Setup TOTP":"TOTP Instellingen","Show password":"Toon wachtwoord","Sign in":"Inloggen","Sign In":"Inloggen","Sign In with Amazon":"Inloggen met Amazon","Sign In with Apple":"Inloggen met Apple","Sign In with Facebook":"Inloggen met Facebook","Sign In with Google":"Inloggen met Google","Sign in to your account":"Inloggen op je account","Create a new account":"Nieuw account aanmaken","Signing in":"Inloggen",Skip:"Overslaan",Submit:"Versturen",Submitting:"Wordt verstuurd","Verify Contact":"Verifieer Contact","Account recovery requires verified contact information":"Accountherstel vereist geverifieerde contactgegevens",Verify:"Verifieer"},nd={"Back to Sign In":"Powr\xF3t do logowania",Birthdate:"Data urodzenia","Change Password":"Zmie\u0144 has\u0142o",Changing:"Zmienianie",Code:"Kod","Confirm Password":"Potwierd\u017A Has\u0142o","Reset your Password":"Zresetuj swoje has\u0142o","Confirm Sign Up":"Potwierd\u017A rejestracj\u0119","Confirm SMS Code":"Potwierd\u017A kod SMS","Confirm TOTP Code":"Potwierd\u017A has\u0142o jednorazowe",Confirm:"Potwierd\u017A","Confirmation Code":"Kod potwierdzenia",Confirming:"Potwierdzanie","Create Account":"Utw\xF3rz konto","Creating Account":"Tworzenie konta",Email:"E-mail","Enter your code":"Wprowad\u017A sw\xF3j kod","Enter your username":"Wprowad\u017A swoj\u0105 nazw\u0119 u\u017Cytkownika","Family Name":"Nazwisko","Given Name":"Pierwsze imi\u0119","Forgot your password?":"Zapomnia\u0142e\u015B has\u0142a? ","Hide password":"Ukryj has\u0142o",Loading:"\u0141adowanie",Username:"Nazwa u\u017Cytkownika","Middle Name":"Drugie imi\u0119",Name:"Imi\u0119 i nazwisko",Nickname:"Pseudonim","New password":"Nowe has\u0142o",Password:"Has\u0142o","Phone Number":"Numer telefonu","Preferred Username":"Preferowana nazwa u\u017Cytkownika",Profile:"Profil","Resend Code":"Wy\u015Blij kod ponownie","Reset your password":"Zresetuj swoje has\u0142o","Send Code":"Zresetuj has\u0142o","Send code":"Wy\u015Blij kod",Sending:"Wysy\u0142anie","Setup TOTP":"Konfiguruj TOTP","Show password":"Poka\u017C has\u0142o","Sign in":"Zaloguj","Sign In":"Logowanie","Sign In with Amazon":"Zaloguj z Amazon","Sign In with Apple":"Zaloguj z Apple","Sign In with Facebook":"Zaloguj z Facebook","Sign In with Google":"Zaloguj z Google","Sign in to your account":"Zaloguj si\u0119 na swoje konto","Create a new account":"Utw\xF3rz nowe konto","Signing in":"Logowanie",Skip:"Pomi\u0144",Submit:"Wy\u015Blij",Submitting:"Wysy\u0142anie","Verify Contact":"Weryfikacja danych kontaktowych","Account recovery requires verified contact information":"Odzyskanie konta wymaga zweryfikowanych danych kontaktowych",Verify:"Zweryfikuj",Website:"Strona internetowa"},rd={"Back to Sign In":"Voltar para Entrar","Change Password":"Mudar senha",Changing:"Mudando",Code:"C\xF3digo","Confirm Password":"Confirme a Senha","Reset your Password":"Redefina sua senha","Confirm Sign Up":"Confirmar inscri\xE7\xE3o","Confirm SMS Code":"Confirme o c\xF3digo SMS","Confirm TOTP Code":"Confirme o c\xF3digo TOTP",Confirm:"confirme","Confirmation Code":"C\xF3digo de confirma\xE7\xE3o",Confirming:"Confirmando","Create Account":"Criar Conta","Creating Account":"Criando conta",Email:"O email","Enter your code":"Insira seu c\xF3digo","Enter your username":"entre com seu nome de usu\xE1rio","Enter your phone number":"Digite seu n\xFAmero de telefone","Enter your email":"Digite seu e-mail","Forgot your password?":"Esqueceu sua senha? ","Hide password":"Esconder a senha",Loading:"Carregando",Username:"Nome do usu\xE1rio","New password":"Nova Senha",Password:"Senha","Phone Number":"N\xFAmero de telefone","Resend Code":"Reenviar c\xF3digo","Reset your password":"Redefina sua senha","Send Code":"Enviar c\xF3digo","Send code":"Enviar c\xF3digo",Sending:"Enviando","Setup TOTP":"Configurar TOTP","Show password":"Mostrar senha","Sign In":"Entrar","Sign in":"Entrar","Sign In with Amazon":"Entrar com a Amazon","Sign In with Apple":"Entrar com a Apple","Sign In with Facebook":"Entrar com o Facebook","Sign In with Google":"Fa\xE7a login no Google","Sign in to your account":"Fa\xE7a login em sua conta","Create a new account":"Criar uma nova conta","Signing in":"Entrando",Skip:"Pular",Submit:"Enviar",Submitting:"Enviando","Verify Contact":"Verificar contato","Account recovery requires verified contact information":"A recupera\xE7\xE3o da conta requer informa\xE7\xF5es de contato verificadas",Verify:"Verificar"},ad={"Account recovery requires verified contact information":"\u8D26\u6237\u6062\u590D\u9700\u8981\u9A8C\u8BC1\u8FC7\u7684\u8054\u7CFB\u65B9\u5F0F","Back to Sign In":"\u56DE\u5230\u767B\u5F55","Change Password":"\u66F4\u6539\u5BC6\u7801",Code:"\u786E\u8BA4\u7801",Confirm:"\u786E\u8BA4","Confirm a Code":"\u786E\u8BA4\u7801","Confirm Password":"\u786E\u8BA4\u5BC6\u7801","Confirm Sign In":"\u786E\u8BA4\u767B\u5F55","Confirm Sign Up":"\u786E\u8BA4\u6CE8\u518C",Email:"\u90AE\u7BB1","Forgot Password":"\u5FD8\u8BB0\u5BC6\u7801","Incorrect username or password":"\u7528\u6237\u540D\u6216\u5BC6\u7801\u9519\u8BEF","Invalid password format":"\u5BC6\u7801\u683C\u5F0F\u9519\u8BEF","Invalid phone number format":"\u7535\u8BDD\u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u4F7F\u7528\u683C\u5F0F +12345678900","New Password":"\u65B0\u5BC6\u7801",or:"\u6216\u8005",Password:"\u5BC6\u7801","Phone Number":"\u7535\u8BDD","Resend a Code":"\u91CD\u53D1\u786E\u8BA4\u7801","Send Code":"\u53D1\u9001\u786E\u8BA4\u7801","Sign In":"\u767B\u5F55","Sign Out":"\u9000\u51FA","Sign Up":"\u6CE8\u518C",Skip:"\u8DF3\u8FC7",Submit:"\u63D0\u4EA4","User already exists":"\u7528\u6237\u5DF2\u7ECF\u5B58\u5728","User does not exist":"\u7528\u6237\u4E0D\u5B58\u5728",Username:"\u7528\u6237\u540D",Verify:"\u9A8C\u8BC1","Verify Contact":"\u9A8C\u8BC1\u8054\u7CFB\u65B9\u5F0F"},id={"Account recovery requires verified contact information":"F\xF6r att \xE5terst\xE4lla kontot beh\xF6ver du ett verifierat konto","An account with the given email already exists.":"Det finns redan ett konto med denna e-postadress","Back to Sign In":"Tillbaka till inloggningen","Change Password":"Byt l\xF6senord","Confirm Password":"Bekr\xE4fta l\xF6senord",Code:"Kod",Confirm:"Bekr\xE4fta","Confirm a Code":"Bekr\xE4fta koden","Confirm Sign In":"Bekr\xE4fta inloggning","Confirm Sign Up":"Bekr\xE4fta registrering","Confirmation Code":"Verifikationskod","Create a new account":"Skapa ett nytt konto","Create account":"Skapa konto","Create Account":"Skapa konto",Email:"E-post","Enter your password":"Ange ditt l\xF6senord","Enter your username":"Ange ditt anv\xE4ndarnamn","Forgot Password":"Gl\xF6mt l\xF6senordet","Forgot your password?":"Gl\xF6mt ditt l\xF6senord? ","Have an account? ":"Redan registrerad? ","Incorrect username or password":"Felaktigt anv\xE4ndarnamn eller l\xF6senord","Invalid password format":"Ogiltigt l\xF6senordsformat","Invalid phone number format":"Ogiltigt format f\xF6r telefonnummer","Lost your code? ":"F\xF6rlorat koden? ","New Password":"Nytt l\xF6senord","No account? ":"Inget konto? ",or:"eller",Password:"L\xF6senord","Password attempts exceeded":"Maximalt antal felaktiga inloggningsf\xF6rs\xF6k har uppn\xE5tts","Phone Number":"Telefonnummer","Resend Code":"Skicka koden igen","Reset password":"\xC5terst\xE4ll l\xF6senord","Reset your password":"\xC5terst\xE4ll ditt l\xF6senord","Send code":"Skicka kod","Sign in":"Logga in","Sign In":"Logga in","Sign in to your account":"Logga in till ditt konto","Sign Out":"Logga ut","Sign Up":"Registrering","We Emailed You":"Vi har skickat e-post till dig","Enter your code":"Skriv din kod",Skip:"Hoppa \xF6ver",Submit:"Skicka","User already exists":"Anv\xE4ndaren finns redan","User does not exist":"Anv\xE4ndaren finns inte",Username:"Anv\xE4ndarnamn","Username cannot be empty":"Anv\xE4ndarnamnet kan inte vara tomt",Verify:"Verifiera","Verify Contact":"Verifiera kontakt"},ld={"Account recovery requires verified contact information":"Pemulihan akun memerlukan informasi kontak terverifikasi","An account with the given email already exists.":"Akun dengan email tersebut sudah terdaftar.","Attempt limit exceeded, please try after some time.":"Batas percobaan terlampaui, mohon coba lagi setelah beberapa waktu.","Back to Sign In":"Kembali ke Masuk","Cannot reset password for the user as there is no registered/verified email or phone_number":"Tidak dapat mengatur ulang kata sandi karena tidak ada email terdaftar / terverifikasi atau nomor telepon",Change:"Ubah","Change Password":"Ubah kata sandi",Code:"Kode",Confirm:"Konfirmasi","Confirm a Code":"Konfirmasi kode","Confirm Password":"Konfirmasi kata sandi","Confirmation Code":"Kode Konfirmasi","Create a new account":"Buat akun baru","Create account":"Buat akun","Create Account":"Buat Akun","Creating Account":"Membuat Akun",Confirming:"Mengkonfirmasi",Email:"Email","Enter your code":"Masukkan kode anda","Enter your email":"Masukkan email anda","Enter your password":"Masukkan kata sandi anda","Enter your phone number":"Masukkan nomor telepon anda","Enter your username":"Masukkan nama akun anda","Forgot Password":"Lupa kata sandi","Forgot your password?":"Lupa kata sandi? ","Have an account? ":"Sudah punya akun? ",Hello:"Halo","Incorrect username or password.":"Nama akun atau kata sandi salah.","Invalid phone number format":"Nomor telepon tidak sesuai dengan format.","Invalid verification code provided, please try again.":"Kode verifikasi tidak sesuai, mohon coba lagi.","It may take a minute to arrive.":"Mungkin perlu beberapa waktu untuk tiba.","Lost your code? ":"Kode anda hilang?",Name:"Nama","Network error":"Galat jaringan","New password":"Kata sandi baru","No account? ":"Tidak ada akun?",or:"atau",Password:"Kata sandi","Password did not conform with policy: Password not long enough":"Kata sandi tidak sesuai dengan aturan: Kata sandi kurang panjang","Phone Number":"Nomor telepon","Resend a Code":"Renvoyer un code","Resend Code":"Kirim ulang kodenya","Reset password":"Ubah kata sandi anda","Reset your password":"Ubah kata sandi anda",Send:"Kirim","Send Code":"Kirim Kode","Send code":"Kirim kode",Sending:"Mengirim","Sign in":"Masuk","Sign In":"Masuk","Sign in to your account":"Masuk akun anda","Sign In with Amazon":"Masuk dengan Amazon","Sign In with AWS":"Masuk dengan AWS","Sign In with Facebook":"Masuk dengan Facebook","Sign In with Google":"Masuk dengan Google","Sign Up with Amazon":"Daftar dengan Amazon","Sign Up with AWS":"Daftar dengan AWS","Sign Up with Facebook":"Daftar dengan Facebook","Sign Up with Google":"Daftar dengan Google","Signing in":"Memasuki",Skip:"Lewati",SMS:"SMS",Submit:"Ajukan",Submitting:"Mengajukan","User is disabled.":"Akun dinonaktifkan.","User already exists":"Akun sudah terdaftar","User does not exist.":"Akun tidak terdaftar.",Username:"Nama akun","Username cannot be empty":"Nama akun tidak boleh kosong","Username/client id combination not found.":"Nama akun atau id tidak ditemukan.",Verify:"Verifikasi","Verify Contact":"Verifikasi Kontak","We Emailed You":"Kami mengirimkanmu email","Your code is on the way. To log in, enter the code we emailed to":"Kode anda dalam pengiriman. Untuk masuk, masukkan kode yang kami emailkan ke","Your code is on the way. To log in, enter the code we texted to":"Kode anda dalam pengiriman. Untuk masuk, masukkan kode yang kami tuliskan ke","Your passwords must match":"Kata sandi harus sama"},sd={"Account recovery requires verified contact information":"Hesap kurtarma, do\u011Frulanm\u0131\u015F ileti\u015Fim bilgilerini gerektirir","An account with the given email already exists.":"Bu e-postaya ait zaten bir hesap var.","Back to Sign In":"Oturum A\xE7maya Geri D\xF6n","Change Password":"\u015Eifreyi De\u011Fi\u015Ftir",Changing:"De\u011Fi\u015Ftiriliyor",Code:"Kod",Confirm:"Do\u011Frula","Confirm Password":"\u015Eifreyi Do\u011Frula","Confirm Sign In":"Oturum A\xE7may\u0131 Do\u011Frula","Confirm Sign Up":"Kay\u0131t \u0130\u015Flemini Do\u011Frula","Confirm SMS Code":"SMS Kodunu Do\u011Frula","Confirm TOTP Code":"Tek Kullan\u0131ml\u0131k \u015Eifreyi Do\u011Frula","Confirmation Code":"Do\u011Frulama Kodu",Confirming:"Do\u011Frulan\u0131yor","Create Account":"Hesap Olu\u015Ftur","Creating Account":"Hesap Olu\u015Fturuluyor",Email:"E-posta","Enter your code":"Kodu girin","Enter your username":"Kullan\u0131c\u0131 ad\u0131n\u0131z\u0131 girin","Enter your phone number":"Telefon numaran\u0131z\u0131 girin","Enter your email":"E-posta adresinizi girin","Forgot your password?":"\u015Eifrenizi mi unuttunuz?","Hide password":"\u015Eifreyi gizle","Have an account? ":"Hesab\u0131n\u0131z var m\u0131? ","Incorrect username or password":"Yanl\u0131\u015F kullan\u0131c\u0131 ad\u0131 ya da \u015Fifre","Invalid password format":"Ge\xE7ersiz parola format\u0131","Invalid phone number format":"Ge\xE7ersiz telefon numaras\u0131 format\u0131","Lost your code? ":"Kodu mu kaybettiniz? ",Loading:"Y\xFCkleniyor","New password":"Yeni \u015Fifre","No account? ":"Hesab\u0131n\u0131z yok mu? ",or:"veya",Password:"\u015Eifre","Password attempts exceeded":"Maksimum oturum a\xE7ma giri\u015Fimi a\u015F\u0131ld\u0131","Phone Number":"Telefon Numaras\u0131","Resend Code":"Kodu Yeniden G\xF6nder","Reset your password":"\u015Eifrenizi s\u0131f\u0131rlay\u0131n","Reset your Password":"\u015Eifrenizi S\u0131f\u0131rlay\u0131n","Send Code":"Kod G\xF6nder","Send code":"Kod g\xF6nder",Sending:"G\xF6nderiliyor","Setup TOTP":"Tek kullan\u0131ml\u0131k \u015Fifre kurulumu yap","Show password":"\u015Eifreyi g\xF6ster","Sign in":"Oturum a\xE7","Sign In":"Oturum A\xE7","Sign In with Amazon":"Amazon ile Oturum A\xE7","Sign In with Apple":"Apple ile Oturum A\xE7","Sign In with Facebook":"Facebook ile Oturum A\xE7","Sign In with Google":"Google ile Oturum A\xE7","Sign in to your account":"Hesab\u0131n\u0131zda oturum a\xE7\u0131n","Create a new account":"Yeni bir hesap olu\u015Ftur","Signing in":"Oturum a\xE7\u0131l\u0131yor","Sign Out":"\xC7\u0131k\u0131\u015F yap","Sign Up":"Kay\u0131t Ol",Skip:"Atla",Submit:"G\xF6nder",Submitting:"G\xF6nderiliyor","User already exists":"Bu kullan\u0131c\u0131 zaten var","User does not exist":"B\xF6yle bir kullan\u0131c\u0131 mevcut de\u011Fil",Username:"Kullan\u0131c\u0131 ad\u0131","Username cannot be empty":"Kullan\u0131c\u0131 ad\u0131 bo\u015F olamaz","Verify Contact":"Ki\u015Fiyi Do\u011Frula",Verify:"Do\u011Frula"},cd={"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:"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0442\u044C","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","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 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",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 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","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 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","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",Username:"\u0418\u043C\u044F \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F","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":"\u0437\u043D\u0430\u043A \u0432","Sign In":"\u0437\u043D\u0430\u043A \u0432","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 to your account":"\u0437\u043D\u0430\u043A \u0432 \u0441\u0432\u043E\u0439 \u0430\u043A\u043A\u0430\u0443\u043D\u0442","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","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","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"},dd={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"},pd=z({},Yc),fd=z({},Jc),md=z({},Zc),ud=z({},Xc),yd=z({},Qc),gd=z({},ed),bd=z({},td),hd=z({},od),vd=z({},nd),wd=z({},rd),_d=z({},ad),kd=z({},id),Sd=z({},ld),xd=z({},sd),Cd=z({},cd),Ad=z({},dd);z({},Ad);function O(e){return se.I18n.get(e)}function Ed(e){return se.I18n.get(e)!==e}var Id={de:pd,en:fd,es:md,fr:ud,id:Sd,it:yd,ja:gd,kr:bd,nl:hd,pl:vd,pt:wd,zh:_d,sv:kd,tr:xd,ru:Cd},Jn={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:Wc,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}},$d=["^","$","*",".","[","]","{","}","(",")","?",'"',"!","@","#","%","&","/","\\",",",">","<","'",":",";","|","_","~","`","=","+","-"," "],Be=function(e){var t=new FormData(e.target);return Object.fromEntries(t)},ta=function(e){return qc.includes(e)},Td=function(e){return e?(t=e,Array.isArray(t)?e:[e]):null;var t},Pd=function(e,t){var o=t.send,n=t.getSnapshot();switch(e.payload.event){case"tokenRefresh":n.matches("authenticated.idle")&&o("TOKEN_REFRESH");break;case"signOut":case"tokenRefresh_failure":n.matches("authenticated.idle")&&o("SIGN_OUT")}},Nd=function(e,t){return t===void 0&&(t=Pd),se.Hub.listen("auth",function(o){t(o,e)},"authenticator-hub-handler")},Ud=function(e){return $d.some(function(t){return e.includes(t)})};function zd(){this.__data__=[],this.size=0}var Od=zd;function Rd(e,t){return e===t||e!==e&&t!==t}var Lt=Rd,Bd=Lt;function Vd(e,t){for(var o=e.length;o--;)if(Bd(e[o][0],t))return o;return-1}var Vo=Vd,Dd=Vo,Md=Array.prototype,Fd=Md.splice;function jd(e){var t=this.__data__,o=Dd(t,e);if(o<0)return!1;var n=t.length-1;return o==n?t.pop():Fd.call(t,o,1),--this.size,!0}var Ld=jd,Gd=Vo;function qd(e){var t=this.__data__,o=Gd(t,e);return o<0?void 0:t[o][1]}var Hd=qd,Kd=Vo;function Wd(e){return Kd(this.__data__,e)>-1}var Yd=Wd,Jd=Vo;function Zd(e,t){var o=this.__data__,n=Jd(o,e);return n<0?(++this.size,o.push([e,t])):o[n][1]=t,this}var Xd=Zd,Qd=Od,ep=Ld,tp=Hd,op=Yd,np=Xd;function yt(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}yt.prototype.clear=Qd;yt.prototype.delete=ep;yt.prototype.get=tp;yt.prototype.has=op;yt.prototype.set=np;var Do=yt,rp=Do;function ap(){this.__data__=new rp,this.size=0}var ip=ap;function lp(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}var sp=lp;function cp(e){return this.__data__.get(e)}var dp=cp;function pp(e){return this.__data__.has(e)}var fp=pp,mp=Oe,up=mp["__core-js_shared__"],yp=up,cn=yp,oa=function(){var e=/[^.]+$/.exec(cn&&cn.keys&&cn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function gp(e){return!!oa&&oa in e}var bp=gp,hp=Function.prototype,vp=hp.toString;function wp(e){if(e!=null){try{return vp.call(e)}catch{}try{return e+""}catch{}}return""}var di=wp,_p=Hn,kp=bp,Sp=Re,xp=di,Cp=/[\\^$.*+?()[\]{}|]/g,Ap=/^\[object .+?Constructor\]$/,Ep=Function.prototype,Ip=Object.prototype,$p=Ep.toString,Tp=Ip.hasOwnProperty,Pp=RegExp("^"+$p.call(Tp).replace(Cp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Np(e){if(!Sp(e)||kp(e))return!1;var t=_p(e)?Pp:Ap;return t.test(xp(e))}var Up=Np;function zp(e,t){return e==null?void 0:e[t]}var Op=zp,Rp=Up,Bp=Op;function Vp(e,t){var o=Bp(e,t);return Rp(o)?o:void 0}var et=Vp,Dp=et,Mp=Oe,Fp=Dp(Mp,"Map"),Zn=Fp,jp=et,Lp=jp(Object,"create"),Mo=Lp,na=Mo;function Gp(){this.__data__=na?na(null):{},this.size=0}var qp=Gp;function Hp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Kp=Hp,Wp=Mo,Yp="__lodash_hash_undefined__",Jp=Object.prototype,Zp=Jp.hasOwnProperty;function Xp(e){var t=this.__data__;if(Wp){var o=t[e];return o===Yp?void 0:o}return Zp.call(t,e)?t[e]:void 0}var Qp=Xp,ef=Mo,tf=Object.prototype,of=tf.hasOwnProperty;function nf(e){var t=this.__data__;return ef?t[e]!==void 0:of.call(t,e)}var rf=nf,af=Mo,lf="__lodash_hash_undefined__";function sf(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=af&&t===void 0?lf:t,this}var cf=sf,df=qp,pf=Kp,ff=Qp,mf=rf,uf=cf;function gt(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}gt.prototype.clear=df;gt.prototype.delete=pf;gt.prototype.get=ff;gt.prototype.has=mf;gt.prototype.set=uf;var yf=gt,ra=yf,gf=Do,bf=Zn;function hf(){this.size=0,this.__data__={hash:new ra,map:new(bf||gf),string:new ra}}var vf=hf;function wf(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var _f=wf,kf=_f;function Sf(e,t){var o=e.__data__;return kf(t)?o[typeof t=="string"?"string":"hash"]:o.map}var Fo=Sf,xf=Fo;function Cf(e){var t=xf(this,e).delete(e);return this.size-=t?1:0,t}var Af=Cf,Ef=Fo;function If(e){return Ef(this,e).get(e)}var $f=If,Tf=Fo;function Pf(e){return Tf(this,e).has(e)}var Nf=Pf,Uf=Fo;function zf(e,t){var o=Uf(this,e),n=o.size;return o.set(e,t),this.size+=o.size==n?0:1,this}var Of=zf,Rf=vf,Bf=Af,Vf=$f,Df=Nf,Mf=Of;function bt(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}bt.prototype.clear=Rf;bt.prototype.delete=Bf;bt.prototype.get=Vf;bt.prototype.has=Df;bt.prototype.set=Mf;var Xn=bt,Ff=Do,jf=Zn,Lf=Xn,Gf=200;function qf(e,t){var o=this.__data__;if(o instanceof Ff){var n=o.__data__;if(!jf||n.length<Gf-1)return n.push([e,t]),this.size=++o.size,this;o=this.__data__=new Lf(n)}return o.set(e,t),this.size=o.size,this}var Hf=qf,Kf=Do,Wf=ip,Yf=sp,Jf=dp,Zf=fp,Xf=Hf;function ht(e){var t=this.__data__=new Kf(e);this.size=t.size}ht.prototype.clear=Wf;ht.prototype.delete=Yf;ht.prototype.get=Jf;ht.prototype.has=Zf;ht.prototype.set=Xf;var jo=ht;function Qf(e,t){for(var o=-1,n=e==null?0:e.length;++o<n&&t(e[o],o,e)!==!1;);return e}var em=Qf,tm=et,om=function(){try{var e=tm(Object,"defineProperty");return e({},"",{}),e}catch{}}(),pi=om,aa=pi;function nm(e,t,o){t=="__proto__"&&aa?aa(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}var Qn=nm,rm=Qn,am=Lt,im=Object.prototype,lm=im.hasOwnProperty;function sm(e,t,o){var n=e[t];(!(lm.call(e,t)&&am(n,o))||o===void 0&&!(t in e))&&rm(e,t,o)}var er=sm,cm=er,dm=Qn;function pm(e,t,o,n){var a=!o;o||(o={});for(var i=-1,l=t.length;++i<l;){var s=t[i],c=n?n(o[s],e[s],s,o,e):void 0;c===void 0&&(c=e[s]),a?dm(o,s,c):cm(o,s,c)}return o}var Gt=pm,fm=Gt,mm=Bo;function um(e,t){return e&&fm(t,mm(t),e)}var ym=um;function gm(e){var t=[];if(e!=null)for(var o in Object(e))t.push(o);return t}var bm=gm,hm=Re,vm=Ro,wm=bm,_m=Object.prototype,km=_m.hasOwnProperty;function Sm(e){if(!hm(e))return wm(e);var t=vm(e),o=[];for(var n in e)n=="constructor"&&(t||!km.call(e,n))||o.push(n);return o}var xm=Sm,Cm=ai,Am=xm,Em=jt;function Im(e){return Em(e)?Cm(e,!0):Am(e)}var qt=Im,$m=Gt,Tm=qt;function Pm(e,t){return e&&$m(t,Tm(t),e)}var Nm=Pm,_o={exports:{}};(function(e,t){var o=Oe,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,l=i?o.Buffer:void 0,s=l?l.allocUnsafe:void 0;function c(d,p){if(p)return d.slice();var m=d.length,f=s?s(m):new d.constructor(m);return d.copy(f),f}e.exports=c})(_o,_o.exports);function Um(e,t){var o=-1,n=e.length;for(t||(t=Array(n));++o<n;)t[o]=e[o];return t}var fi=Um;function zm(e,t){for(var o=-1,n=e==null?0:e.length,a=0,i=[];++o<n;){var l=e[o];t(l,o,e)&&(i[a++]=l)}return i}var Om=zm;function Rm(){return[]}var mi=Rm,Bm=Om,Vm=mi,Dm=Object.prototype,Mm=Dm.propertyIsEnumerable,ia=Object.getOwnPropertySymbols,Fm=ia?function(e){return e==null?[]:(e=Object(e),Bm(ia(e),function(t){return Mm.call(e,t)}))}:Vm,tr=Fm,jm=Gt,Lm=tr;function Gm(e,t){return jm(e,Lm(e),t)}var qm=Gm;function Hm(e,t){for(var o=-1,n=t.length,a=e.length;++o<n;)e[a+o]=t[o];return e}var ui=Hm,Km=ii,Wm=Km(Object.getPrototypeOf,Object),or=Wm,Ym=ui,Jm=or,Zm=tr,Xm=mi,Qm=Object.getOwnPropertySymbols,eu=Qm?function(e){for(var t=[];e;)Ym(t,Zm(e)),e=Jm(e);return t}:Xm,yi=eu,tu=Gt,ou=yi;function nu(e,t){return tu(e,ou(e),t)}var ru=nu,au=ui,iu=Pe;function lu(e,t,o){var n=t(e);return iu(e)?n:au(n,o(e))}var gi=lu,su=gi,cu=tr,du=Bo;function pu(e){return su(e,du,cu)}var bi=pu,fu=gi,mu=yi,uu=qt;function yu(e){return fu(e,uu,mu)}var hi=yu,gu=et,bu=Oe,hu=gu(bu,"DataView"),vu=hu,wu=et,_u=Oe,ku=wu(_u,"Promise"),Su=ku,xu=et,Cu=Oe,Au=xu(Cu,"Set"),Eu=Au,Iu=et,$u=Oe,Tu=Iu($u,"WeakMap"),Pu=Tu,_n=vu,kn=Zn,Sn=Su,xn=Eu,Cn=Pu,vi=ut,vt=di,la="[object Map]",Nu="[object Object]",sa="[object Promise]",ca="[object Set]",da="[object WeakMap]",pa="[object DataView]",Uu=vt(_n),zu=vt(kn),Ou=vt(Sn),Ru=vt(xn),Bu=vt(Cn),Ze=vi;(_n&&Ze(new _n(new ArrayBuffer(1)))!=pa||kn&&Ze(new kn)!=la||Sn&&Ze(Sn.resolve())!=sa||xn&&Ze(new xn)!=ca||Cn&&Ze(new Cn)!=da)&&(Ze=function(e){var t=vi(e),o=t==Nu?e.constructor:void 0,n=o?vt(o):"";if(n)switch(n){case Uu:return pa;case zu:return la;case Ou:return sa;case Ru:return ca;case Bu:return da}return t});var Ht=Ze,Vu=Object.prototype,Du=Vu.hasOwnProperty;function Mu(e){var t=e.length,o=new e.constructor(t);return t&&typeof e[0]=="string"&&Du.call(e,"index")&&(o.index=e.index,o.input=e.input),o}var Fu=Mu,ju=Oe,Lu=ju.Uint8Array,wi=Lu,fa=wi;function Gu(e){var t=new e.constructor(e.byteLength);return new fa(t).set(new fa(e)),t}var nr=Gu,qu=nr;function Hu(e,t){var o=t?qu(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}var Ku=Hu,Wu=/\w*$/;function Yu(e){var t=new e.constructor(e.source,Wu.exec(e));return t.lastIndex=e.lastIndex,t}var Ju=Yu,ma=Ft,ua=ma?ma.prototype:void 0,ya=ua?ua.valueOf:void 0;function Zu(e){return ya?Object(ya.call(e)):{}}var Xu=Zu,Qu=nr;function ey(e,t){var o=t?Qu(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}var _i=ey,ty=nr,oy=Ku,ny=Ju,ry=Xu,ay=_i,iy="[object Boolean]",ly="[object Date]",sy="[object Map]",cy="[object Number]",dy="[object RegExp]",py="[object Set]",fy="[object String]",my="[object Symbol]",uy="[object ArrayBuffer]",yy="[object DataView]",gy="[object Float32Array]",by="[object Float64Array]",hy="[object Int8Array]",vy="[object Int16Array]",wy="[object Int32Array]",_y="[object Uint8Array]",ky="[object Uint8ClampedArray]",Sy="[object Uint16Array]",xy="[object Uint32Array]";function Cy(e,t,o){var n=e.constructor;switch(t){case uy:return ty(e);case iy:case ly:return new n(+e);case yy:return oy(e,o);case gy:case by:case hy:case vy:case wy:case _y:case ky:case Sy:case xy:return ay(e,o);case sy:return new n;case cy:case fy:return new n(e);case dy:return ny(e);case py:return new n;case my:return ry(e)}}var Ay=Cy,Ey=Re,ga=Object.create,Iy=function(){function e(){}return function(t){if(!Ey(t))return{};if(ga)return ga(t);e.prototype=t;var o=new e;return e.prototype=void 0,o}}(),$y=Iy,Ty=$y,Py=or,Ny=Ro;function Uy(e){return typeof e.constructor=="function"&&!Ny(e)?Ty(Py(e)):{}}var ki=Uy,zy=Ht,Oy=Ge,Ry="[object Map]";function By(e){return Oy(e)&&zy(e)==Ry}var Vy=By,Dy=Vy,My=Yn,ba=Vt.exports,ha=ba&&ba.isMap,Fy=ha?My(ha):Dy,jy=Fy,Ly=Ht,Gy=Ge,qy="[object Set]";function Hy(e){return Gy(e)&&Ly(e)==qy}var Ky=Hy,Wy=Ky,Yy=Yn,va=Vt.exports,wa=va&&va.isSet,Jy=wa?Yy(wa):Wy,Zy=Jy,Xy=jo,Qy=em,eg=er,tg=ym,og=Nm,ng=_o.exports,rg=fi,ag=qm,ig=ru,lg=bi,sg=hi,cg=Ht,dg=Fu,pg=Ay,fg=ki,mg=Pe,ug=Xe.exports,yg=jy,gg=Re,bg=Zy,hg=Bo,vg=qt,wg=1,_g=2,kg=4,Si="[object Arguments]",Sg="[object Array]",xg="[object Boolean]",Cg="[object Date]",Ag="[object Error]",xi="[object Function]",Eg="[object GeneratorFunction]",Ig="[object Map]",$g="[object Number]",Ci="[object Object]",Tg="[object RegExp]",Pg="[object Set]",Ng="[object String]",Ug="[object Symbol]",zg="[object WeakMap]",Og="[object ArrayBuffer]",Rg="[object DataView]",Bg="[object Float32Array]",Vg="[object Float64Array]",Dg="[object Int8Array]",Mg="[object Int16Array]",Fg="[object Int32Array]",jg="[object Uint8Array]",Lg="[object Uint8ClampedArray]",Gg="[object Uint16Array]",qg="[object Uint32Array]",ne={};ne[Si]=ne[Sg]=ne[Og]=ne[Rg]=ne[xg]=ne[Cg]=ne[Bg]=ne[Vg]=ne[Dg]=ne[Mg]=ne[Fg]=ne[Ig]=ne[$g]=ne[Ci]=ne[Tg]=ne[Pg]=ne[Ng]=ne[Ug]=ne[jg]=ne[Lg]=ne[Gg]=ne[qg]=!0;ne[Ag]=ne[xi]=ne[zg]=!1;function go(e,t,o,n,a,i){var l,s=t&wg,c=t&_g,d=t&kg;if(o&&(l=a?o(e,n,a,i):o(e)),l!==void 0)return l;if(!gg(e))return e;var p=mg(e);if(p){if(l=dg(e),!s)return rg(e,l)}else{var m=cg(e),f=m==xi||m==Eg;if(ug(e))return ng(e,s);if(m==Ci||m==Si||f&&!a){if(l=c||f?{}:fg(e),!s)return c?ig(e,og(l,e)):ag(e,tg(l,e))}else{if(!ne[m])return a?e:{};l=pg(e,m,s)}}i||(i=new Xy);var u=i.get(e);if(u)return u;i.set(e,l),bg(e)?e.forEach(function(g){l.add(go(g,t,o,g,e,i))}):yg(e)&&e.forEach(function(g,v){l.set(v,go(g,t,o,v,e,i))});var b=d?c?sg:lg:c?vg:hg,y=p?void 0:b(e);return Qy(y||e,function(g,v){y&&(v=g,g=e[v]),eg(l,v,go(g,t,o,v,e,i))}),l}var Hg=go,Kg=Hg,Wg=1,Yg=4;function Jg(e){return Kg(e,Wg|Yg)}var Zg=Jg,qe=function(e,t){var o=ei(e).country_code,n=Jn[t];return n.type==="tel"&&(n=z(z({},n),{dialCode:o})),n},dn=function(e){var t=wn(e);return z(z({},qe(e,t)),{autocomplete:"username"})},no=function(e){return{confirmation_code:z(z({},qe(e,"confirmation_code")),{label:"Code *",placeholder:"Code"})}},Xg={signIn:function(e){return{username:z({},dn(e)),password:z(z({},qe(e,"password")),{autocomplete:"current-password"})}},signUp:function(e){for(var t=e.context.config,o=t.loginMechanisms,n=t.signUpAttributes,a=wn(e),i={},l=0,s=Array.from(new Set(Ue(Ue(Ue([],o,!0),["password","confirm_password"],!1),n,!0)));l<s.length;l++){var c=s[l];if(ta(c)){var d=c===a?dn(e):qe(e,c);i[c]=z({},d)}else console.debug("Authenticator does not have a default implementation for ".concat(c,". Customize SignUp FormFields to add your own."))}return i},confirmSignUp:function(e){return{confirmation_code:z(z({},qe(e,"confirmation_code")),{placeholder:"Enter your code"})}},confirmSignIn:no,forceNewPassword:function(e){for(var t=ke(e).context.requiredAttributes,o={},n=0,a=Array.from(new Set(Ue(["password","confirm_password"],t,!0)));n<a.length;n++){var i=a[n];ta(i)?o[i]=z({},qe(e,i)):console.debug("Authenticator does not have a default implementation for ".concat(i,". Customize ForceNewPassword FormFields to add your own."))}return o},resetPassword:function(e){var t=wn(e),o=Jn[t].label;return{username:z(z({},dn(e)),{label:"Enter your ".concat(o.toLowerCase()),placeholder:"Enter your ".concat(o.toLowerCase())})}},confirmResetPassword:function(e){return z(z({},no(e)),{password:z(z({},qe(e,"password")),{label:"New Password",placeholder:"New Password"}),confirm_password:z(z({},qe(e,"confirm_password")),{label:"Confirm Password",placeholder:"Confirm Password"})})},confirmVerifyUser:no,setupTOTP:no},Qg=function(e){for(var t=z({},e),o=0,n=Object.entries(e);o<n.length;o++){var a=n[o],i=a[0],l=a[1],s=l.label,c=l.placeholder;t[i]=z(z({},l),{label:s?O(s):void 0,placeholder:c?O(c):void 0})}return t},eb=function(e){return Object.entries(e).sort(function(t,o){return(t[1].order||Number.MAX_VALUE)-(o[1].order||Number.MAX_VALUE)}).filter(function(t){return t[1]!==void 0})},tb=function(e,t){t===void 0&&(t={});var o=Zg(e);return Object.keys(t).forEach(function(n){o[n]=z(z({},o[n]),t[n])}),o},ob=function(e,t){var o=(0,Xg[e])(t);return Qg(o)},nb=function(e,t){var o,n,a=ob(e,t),i=((n=(o=ke(t).context)===null||o===void 0?void 0:o.formFields)===null||n===void 0?void 0:n[e])||{},l=tb(a,i);return delete l.QR,l},rb=function(e,t){var o=nb(e,t);return eb(o)};/*! *****************************************************************************
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var o=require("vue"),le=require("aws-amplify");const Ue=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)])}}),Ns=["type","data-fullwidth","data-size","data-fontWeight","data-variation","data-loading","data-disabled","disabled"],we=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,Ns)])}});var be=function(e){var t;return(t=e.context.actorRef)===null||t===void 0?void 0:t.getSnapshot()},Ja=function(e){var t;return(t=be(e))===null||t===void 0?void 0:t.context},tn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},ks=typeof tn=="object"&&tn&&tn.Object===Object&&tn,Za=ks,xs=Za,Os=typeof self=="object"&&self&&self.Object===Object&&self,Us=xs||Os||Function("return this")(),Re=Us,Rs=Re,Bs=Rs.Symbol,Ft=Bs,Go=Ft,Qa=Object.prototype,Vs=Qa.hasOwnProperty,Ds=Qa.toString,$t=Go?Go.toStringTag:void 0;function Ms(e){var t=Vs.call(e,$t),n=e[$t];try{e[$t]=void 0;var r=!0}catch{}var a=Ds.call(e);return r&&(t?e[$t]=n:delete e[$t]),a}var Fs=Ms,Ls=Object.prototype,js=Ls.toString;function zs(e){return js.call(e)}var Gs=zs,Ho=Ft,Hs=Fs,Ks=Gs,qs="[object Null]",Ws="[object Undefined]",Ko=Ho?Ho.toStringTag:void 0;function Ys(e){return e==null?e===void 0?Ws:qs:Ko&&Ko in Object(e)?Hs(e):Ks(e)}var mt=Ys;function Js(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Be=Js,Zs=mt,Qs=Be,Xs="[object AsyncFunction]",eu="[object Function]",tu="[object GeneratorFunction]",nu="[object Proxy]";function ru(e){if(!Qs(e))return!1;var t=Zs(e);return t==eu||t==tu||t==Xs||t==nu}var Lr=ru,ou=9007199254740991;function au(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ou}var jr=au,iu=Lr,su=jr;function uu(e){return e!=null&&su(e.length)&&!iu(e)}var Lt=uu,cu=Array.isArray,ke=cu;function lu(e){return e!=null&&typeof e=="object"}var Ke=lu,du=mt,fu=Ke,pu="[object Symbol]";function hu(e){return typeof e=="symbol"||fu(e)&&du(e)==pu}var zr=hu;function mu(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 Xa=mu;function gu(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var vu=gu,yu=mt,Su=Ke,wu="[object Arguments]";function _u(e){return Su(e)&&yu(e)==wu}var bu=_u,qo=bu,Cu=Ke,ei=Object.prototype,Au=ei.hasOwnProperty,Eu=ei.propertyIsEnumerable,Iu=qo(function(){return arguments}())?qo:function(e){return Cu(e)&&Au.call(e,"callee")&&!Eu.call(e,"callee")},On=Iu,Xe={exports:{}};function Tu(){return!1}var $u=Tu;(function(e,t){var n=Re,r=$u,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})(Xe,Xe.exports);var Pu=9007199254740991,Nu=/^(?:0|[1-9]\d*)$/;function ku(e,t){var n=typeof e;return t=t==null?Pu:t,!!t&&(n=="number"||n!="symbol"&&Nu.test(e))&&e>-1&&e%1==0&&e<t}var Un=ku,xu=mt,Ou=jr,Uu=Ke,Ru="[object Arguments]",Bu="[object Array]",Vu="[object Boolean]",Du="[object Date]",Mu="[object Error]",Fu="[object Function]",Lu="[object Map]",ju="[object Number]",zu="[object Object]",Gu="[object RegExp]",Hu="[object Set]",Ku="[object String]",qu="[object WeakMap]",Wu="[object ArrayBuffer]",Yu="[object DataView]",Ju="[object Float32Array]",Zu="[object Float64Array]",Qu="[object Int8Array]",Xu="[object Int16Array]",ec="[object Int32Array]",tc="[object Uint8Array]",nc="[object Uint8ClampedArray]",rc="[object Uint16Array]",oc="[object Uint32Array]",ue={};ue[Ju]=ue[Zu]=ue[Qu]=ue[Xu]=ue[ec]=ue[tc]=ue[nc]=ue[rc]=ue[oc]=!0;ue[Ru]=ue[Bu]=ue[Wu]=ue[Vu]=ue[Yu]=ue[Du]=ue[Mu]=ue[Fu]=ue[Lu]=ue[ju]=ue[zu]=ue[Gu]=ue[Hu]=ue[Ku]=ue[qu]=!1;function ac(e){return Uu(e)&&Ou(e.length)&&!!ue[xu(e)]}var ic=ac;function sc(e){return function(t){return e(t)}}var Gr=sc,Rt={exports:{}};(function(e,t){var n=Za,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})(Rt,Rt.exports);var uc=ic,cc=Gr,Wo=Rt.exports,Yo=Wo&&Wo.isTypedArray,lc=Yo?cc(Yo):uc,Rn=lc,dc=vu,fc=On,pc=ke,hc=Xe.exports,mc=Un,gc=Rn,vc=Object.prototype,yc=vc.hasOwnProperty;function Sc(e,t){var n=pc(e),r=!n&&fc(e),a=!n&&!r&&hc(e),i=!n&&!r&&!a&&gc(e),s=n||r||a||i,u=s?dc(e.length,String):[],c=u.length;for(var l in e)(t||yc.call(e,l))&&!(s&&(l=="length"||a&&(l=="offset"||l=="parent")||i&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||mc(l,c)))&&u.push(l);return u}var ti=Sc,wc=Object.prototype;function _c(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||wc;return e===n}var Bn=_c;function bc(e,t){return function(n){return e(t(n))}}var ni=bc,Cc=ni,Ac=Cc(Object.keys,Object),Ec=Ac,Ic=Bn,Tc=Ec,$c=Object.prototype,Pc=$c.hasOwnProperty;function Nc(e){if(!Ic(e))return Tc(e);var t=[];for(var n in Object(e))Pc.call(e,n)&&n!="constructor"&&t.push(n);return t}var ri=Nc,kc=ti,xc=ri,Oc=Lt;function Uc(e){return Oc(e)?kc(e):xc(e)}var Vn=Uc,ze,gr;(function(e){e.SMS_MFA="SMS_MFA",e.SOFTWARE_TOKEN_MFA="SOFTWARE_TOKEN_MFA",e.NEW_PASSWORD_REQUIRED="NEW_PASSWORD_REQUIRED",e.RESET_REQUIRED="RESET_REQUIRED",e.MFA_SETUP="MFA_SETUP"})(ze||(ze={})),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 oi(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 Y(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 J(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 Oe(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 Rc=["birthdate","email","family_name","given_name","middle_name","name","nickname","phone_number","preferred_username","profile","website"],Bc=["username","email","phone_number"],Vc=Oe(Oe(Oe([],Bc,!0),Rc,!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{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")}},Mc=function(e){var t,n,r=(t=e.context)===null||t===void 0?void 0:t.user,a=be(e),i=Ja(e),s=i==null?void 0:i.remoteError,u=U({},i==null?void 0:i.validationError),c=i==null?void 0:i.codeDeliveryDetails,l=Object.keys(u).length>0,d=e.hasTag("pending")||((n=be(e))===null||n===void 0?void 0:n.hasTag("pending")),h=function(){switch(!0){case e.matches("idle"):return"idle";case e.matches("setup"):return"setup";case e.matches("signOut"):return"signOut";case e.matches("authenticated"):return"authenticated";case(a==null?void 0:a.matches("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}}(),f=function(p){switch(p){case"idle":case"setup":return"configuring";case"authenticated":return"authenticated";default:return"unauthenticated"}}(h);return{error:s,hasValidationErrors:l,isPending:d,route:h,authStatus:f,user:r,validationErrors:u,codeDeliveryDetails:c}},ai=function(e){var t=e.send,n=e.state,r=Dc(t),a=Mc(n);return U(U({},r),a)},Fc=["+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"],Lc={"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"},jc={"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"},zc={"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"},Gc={"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"},Hc={"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"},Kc={"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:"},qc={"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"},Wc={"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"},Yc={"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"},Jc={"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"},Zc={"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"},Qc={"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"},Xc={"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"},el={"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"},tl={"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"},nl={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"},rl=U({},Lc),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);U({},yl);function R(e){return le.I18n.get(e)}function Sl(e){return le.I18n.get(e)!==e}var wl={de:rl,en:ol,es:al,fr:il,id:ml,it:sl,ja:ul,kr:cl,nl:ll,pl:dl,pt:fl,zh:pl,sv:hl,tr:gl,ru:vl},Hr={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:Fc,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}},_l=["^","$","*",".","[","]","{","}","(",")","?",'"',"!","@","#","%","&","/","\\",",",">","<","'",":",";","|","_","~","`","=","+","-"," "],Ve=function(e){var t=new FormData(e.target);return Object.fromEntries(t)},Jo=function(e){return Vc.includes(e)},bl=function(e){return e?(t=e,Array.isArray(t)?e:[e]):null;var t},Cl=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")}},Al=function(e,t){return t===void 0&&(t=Cl),le.Hub.listen("auth",function(n){t(n,e)},"authenticator-hub-handler")},El=function(e){return _l.some(function(t){return e.includes(t)})},qe=function(e,t){var n=Ja(e).country_code,r=Hr[t];return r.type==="tel"&&(r=U(U({},r),{dialCode:n})),r},ar=function(e){var t=vr(e);return U(U({},qe(e,t)),{autocomplete:"username"})},nn=function(e){return{confirmation_code:U(U({},qe(e,"confirmation_code")),{label:"Code *",placeholder:"Code"})}},Il={signIn:function(e){return{username:U({},ar(e)),password:U(U({},qe(e,"password")),{autocomplete:"current-password"})}},signUp:function(e){for(var t=e.context.config,n=t.loginMechanisms,r=t.signUpAttributes,a=vr(e),i={},s=0,u=Array.from(new Set(Oe(Oe(Oe([],n,!0),["password","confirm_password"],!1),r,!0)));s<u.length;s++){var c=u[s];if(Jo(c)){var l=c===a?ar(e):qe(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({},qe(e,"confirmation_code")),{placeholder:"Enter your code"})}},confirmSignIn:nn,forceNewPassword:function(e){for(var t=be(e).context.requiredAttributes,n={},r=0,a=Array.from(new Set(Oe(["password","confirm_password"],t,!0)));r<a.length;r++){var i=a[r];Jo(i)?n[i]=U({},qe(e,i)):console.debug("Authenticator does not have a default implementation for ".concat(i,". Customize ForceNewPassword FormFields to add your own."))}return n},resetPassword:function(e){var t=vr(e),n=Hr[t].label;return{username:U(U({},ar(e)),{label:"Enter your ".concat(n.toLowerCase()),placeholder:"Enter your ".concat(n.toLowerCase())})}},confirmResetPassword:function(e){return U(U({},nn(e)),{password:U(U({},qe(e,"password")),{label:"New Password",placeholder:"New Password"}),confirm_password:U(U({},qe(e,"confirm_password")),{label:"Confirm Password",placeholder:"Confirm Password"})})},confirmVerifyUser:nn,setupTOTP:nn};function Tl(){this.__data__=[],this.size=0}var $l=Tl;function Pl(e,t){return e===t||e!==e&&t!==t}var jt=Pl,Nl=jt;function kl(e,t){for(var n=e.length;n--;)if(Nl(e[n][0],t))return n;return-1}var Dn=kl,xl=Dn,Ol=Array.prototype,Ul=Ol.splice;function Rl(e){var t=this.__data__,n=xl(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Ul.call(t,n,1),--this.size,!0}var Bl=Rl,Vl=Dn;function Dl(e){var t=this.__data__,n=Vl(t,e);return n<0?void 0:t[n][1]}var Ml=Dl,Fl=Dn;function Ll(e){return Fl(this.__data__,e)>-1}var jl=Ll,zl=Dn;function Gl(e,t){var n=this.__data__,r=zl(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Hl=Gl,Kl=$l,ql=Bl,Wl=Ml,Yl=jl,Jl=Hl;function gt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}gt.prototype.clear=Kl;gt.prototype.delete=ql;gt.prototype.get=Wl;gt.prototype.has=Yl;gt.prototype.set=Jl;var Mn=gt,Zl=Mn;function Ql(){this.__data__=new Zl,this.size=0}var Xl=Ql;function ed(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var td=ed;function nd(e){return this.__data__.get(e)}var rd=nd;function od(e){return this.__data__.has(e)}var ad=od,id=Re,sd=id["__core-js_shared__"],ud=sd,ir=ud,Zo=function(){var e=/[^.]+$/.exec(ir&&ir.keys&&ir.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function cd(e){return!!Zo&&Zo in e}var ld=cd,dd=Function.prototype,fd=dd.toString;function pd(e){if(e!=null){try{return fd.call(e)}catch{}try{return e+""}catch{}}return""}var ii=pd,hd=Lr,md=ld,gd=Be,vd=ii,yd=/[\\^$.*+?()[\]{}|]/g,Sd=/^\[object .+?Constructor\]$/,wd=Function.prototype,_d=Object.prototype,bd=wd.toString,Cd=_d.hasOwnProperty,Ad=RegExp("^"+bd.call(Cd).replace(yd,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ed(e){if(!gd(e)||md(e))return!1;var t=hd(e)?Ad:Sd;return t.test(vd(e))}var Id=Ed;function Td(e,t){return e==null?void 0:e[t]}var $d=Td,Pd=Id,Nd=$d;function kd(e,t){var n=Nd(e,t);return Pd(n)?n:void 0}var et=kd,xd=et,Od=Re,Ud=xd(Od,"Map"),Kr=Ud,Rd=et,Bd=Rd(Object,"create"),Fn=Bd,Qo=Fn;function Vd(){this.__data__=Qo?Qo(null):{},this.size=0}var Dd=Vd;function Md(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Fd=Md,Ld=Fn,jd="__lodash_hash_undefined__",zd=Object.prototype,Gd=zd.hasOwnProperty;function Hd(e){var t=this.__data__;if(Ld){var n=t[e];return n===jd?void 0:n}return Gd.call(t,e)?t[e]:void 0}var Kd=Hd,qd=Fn,Wd=Object.prototype,Yd=Wd.hasOwnProperty;function Jd(e){var t=this.__data__;return qd?t[e]!==void 0:Yd.call(t,e)}var Zd=Jd,Qd=Fn,Xd="__lodash_hash_undefined__";function ef(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Qd&&t===void 0?Xd:t,this}var tf=ef,nf=Dd,rf=Fd,of=Kd,af=Zd,sf=tf;function vt(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])}}vt.prototype.clear=nf;vt.prototype.delete=rf;vt.prototype.get=of;vt.prototype.has=af;vt.prototype.set=sf;var uf=vt,Xo=uf,cf=Mn,lf=Kr;function df(){this.size=0,this.__data__={hash:new Xo,map:new(lf||cf),string:new Xo}}var ff=df;function pf(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var hf=pf,mf=hf;function gf(e,t){var n=e.__data__;return mf(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Ln=gf,vf=Ln;function yf(e){var t=vf(this,e).delete(e);return this.size-=t?1:0,t}var Sf=yf,wf=Ln;function _f(e){return wf(this,e).get(e)}var bf=_f,Cf=Ln;function Af(e){return Cf(this,e).has(e)}var Ef=Af,If=Ln;function Tf(e,t){var n=If(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var $f=Tf,Pf=ff,Nf=Sf,kf=bf,xf=Ef,Of=$f;function yt(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])}}yt.prototype.clear=Pf;yt.prototype.delete=Nf;yt.prototype.get=kf;yt.prototype.has=xf;yt.prototype.set=Of;var qr=yt,Uf=Mn,Rf=Kr,Bf=qr,Vf=200;function Df(e,t){var n=this.__data__;if(n instanceof Uf){var r=n.__data__;if(!Rf||r.length<Vf-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Bf(r)}return n.set(e,t),this.size=n.size,this}var Mf=Df,Ff=Mn,Lf=Xl,jf=td,zf=rd,Gf=ad,Hf=Mf;function St(e){var t=this.__data__=new Ff(e);this.size=t.size}St.prototype.clear=Lf;St.prototype.delete=jf;St.prototype.get=zf;St.prototype.has=Gf;St.prototype.set=Hf;var jn=St;function Kf(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var qf=Kf,Wf=et,Yf=function(){try{var e=Wf(Object,"defineProperty");return e({},"",{}),e}catch{}}(),si=Yf,ea=si;function Jf(e,t,n){t=="__proto__"&&ea?ea(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Wr=Jf,Zf=Wr,Qf=jt,Xf=Object.prototype,ep=Xf.hasOwnProperty;function tp(e,t,n){var r=e[t];(!(ep.call(e,t)&&Qf(r,n))||n===void 0&&!(t in e))&&Zf(e,t,n)}var Yr=tp,np=Yr,rp=Wr;function op(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?rp(n,u,c):np(n,u,c)}return n}var zt=op,ap=zt,ip=Vn;function sp(e,t){return e&&ap(t,ip(t),e)}var up=sp;function cp(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var lp=cp,dp=Be,fp=Bn,pp=lp,hp=Object.prototype,mp=hp.hasOwnProperty;function gp(e){if(!dp(e))return pp(e);var t=fp(e),n=[];for(var r in e)r=="constructor"&&(t||!mp.call(e,r))||n.push(r);return n}var vp=gp,yp=ti,Sp=vp,wp=Lt;function _p(e){return wp(e)?yp(e,!0):Sp(e)}var Gt=_p,bp=zt,Cp=Gt;function Ap(e,t){return e&&bp(t,Cp(t),e)}var Ep=Ap,bn={exports:{}};(function(e,t){var n=Re,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})(bn,bn.exports);function Ip(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var ui=Ip;function Tp(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 $p=Tp;function Pp(){return[]}var ci=Pp,Np=$p,kp=ci,xp=Object.prototype,Op=xp.propertyIsEnumerable,ta=Object.getOwnPropertySymbols,Up=ta?function(e){return e==null?[]:(e=Object(e),Np(ta(e),function(t){return Op.call(e,t)}))}:kp,Jr=Up,Rp=zt,Bp=Jr;function Vp(e,t){return Rp(e,Bp(e),t)}var Dp=Vp;function Mp(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var li=Mp,Fp=ni,Lp=Fp(Object.getPrototypeOf,Object),Zr=Lp,jp=li,zp=Zr,Gp=Jr,Hp=ci,Kp=Object.getOwnPropertySymbols,qp=Kp?function(e){for(var t=[];e;)jp(t,Gp(e)),e=zp(e);return t}:Hp,di=qp,Wp=zt,Yp=di;function Jp(e,t){return Wp(e,Yp(e),t)}var Zp=Jp,Qp=li,Xp=ke;function eh(e,t,n){var r=t(e);return Xp(e)?r:Qp(r,n(e))}var fi=eh,th=fi,nh=Jr,rh=Vn;function oh(e){return th(e,rh,nh)}var pi=oh,ah=fi,ih=di,sh=Gt;function uh(e){return ah(e,sh,ih)}var hi=uh,ch=et,lh=Re,dh=ch(lh,"DataView"),fh=dh,ph=et,hh=Re,mh=ph(hh,"Promise"),gh=mh,vh=et,yh=Re,Sh=vh(yh,"Set"),wh=Sh,_h=et,bh=Re,Ch=_h(bh,"WeakMap"),Ah=Ch,yr=fh,Sr=Kr,wr=gh,_r=wh,br=Ah,mi=mt,wt=ii,na="[object Map]",Eh="[object Object]",ra="[object Promise]",oa="[object Set]",aa="[object WeakMap]",ia="[object DataView]",Ih=wt(yr),Th=wt(Sr),$h=wt(wr),Ph=wt(_r),Nh=wt(br),Qe=mi;(yr&&Qe(new yr(new ArrayBuffer(1)))!=ia||Sr&&Qe(new Sr)!=na||wr&&Qe(wr.resolve())!=ra||_r&&Qe(new _r)!=oa||br&&Qe(new br)!=aa)&&(Qe=function(e){var t=mi(e),n=t==Eh?e.constructor:void 0,r=n?wt(n):"";if(r)switch(r){case Ih:return ia;case Th:return na;case $h:return ra;case Ph:return oa;case Nh:return aa}return t});var Ht=Qe,kh=Object.prototype,xh=kh.hasOwnProperty;function Oh(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&xh.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Uh=Oh,Rh=Re,Bh=Rh.Uint8Array,gi=Bh,sa=gi;function Vh(e){var t=new e.constructor(e.byteLength);return new sa(t).set(new sa(e)),t}var Qr=Vh,Dh=Qr;function Mh(e,t){var n=t?Dh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Fh=Mh,Lh=/\w*$/;function jh(e){var t=new e.constructor(e.source,Lh.exec(e));return t.lastIndex=e.lastIndex,t}var zh=jh,ua=Ft,ca=ua?ua.prototype:void 0,la=ca?ca.valueOf:void 0;function Gh(e){return la?Object(la.call(e)):{}}var Hh=Gh,Kh=Qr;function qh(e,t){var n=t?Kh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var vi=qh,Wh=Qr,Yh=Fh,Jh=zh,Zh=Hh,Qh=vi,Xh="[object Boolean]",em="[object Date]",tm="[object Map]",nm="[object Number]",rm="[object RegExp]",om="[object Set]",am="[object String]",im="[object Symbol]",sm="[object ArrayBuffer]",um="[object DataView]",cm="[object Float32Array]",lm="[object Float64Array]",dm="[object Int8Array]",fm="[object Int16Array]",pm="[object Int32Array]",hm="[object Uint8Array]",mm="[object Uint8ClampedArray]",gm="[object Uint16Array]",vm="[object Uint32Array]";function ym(e,t,n){var r=e.constructor;switch(t){case sm:return Wh(e);case Xh:case em:return new r(+e);case um:return Yh(e,n);case cm:case lm:case dm:case fm:case pm:case hm:case mm:case gm:case vm:return Qh(e,n);case tm:return new r;case nm:case am:return new r(e);case rm:return Jh(e);case om:return new r;case im:return Zh(e)}}var Sm=ym,wm=Be,da=Object.create,_m=function(){function e(){}return function(t){if(!wm(t))return{};if(da)return da(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),bm=_m,Cm=bm,Am=Zr,Em=Bn;function Im(e){return typeof e.constructor=="function"&&!Em(e)?Cm(Am(e)):{}}var yi=Im,Tm=Ht,$m=Ke,Pm="[object Map]";function Nm(e){return $m(e)&&Tm(e)==Pm}var km=Nm,xm=km,Om=Gr,fa=Rt.exports,pa=fa&&fa.isMap,Um=pa?Om(pa):xm,Rm=Um,Bm=Ht,Vm=Ke,Dm="[object Set]";function Mm(e){return Vm(e)&&Bm(e)==Dm}var Fm=Mm,Lm=Fm,jm=Gr,ha=Rt.exports,ma=ha&&ha.isSet,zm=ma?jm(ma):Lm,Gm=zm,Hm=jn,Km=qf,qm=Yr,Wm=up,Ym=Ep,Jm=bn.exports,Zm=ui,Qm=Dp,Xm=Zp,eg=pi,tg=hi,ng=Ht,rg=Uh,og=Sm,ag=yi,ig=ke,sg=Xe.exports,ug=Rm,cg=Be,lg=Gm,dg=Vn,fg=Gt,pg=1,hg=2,mg=4,Si="[object Arguments]",gg="[object Array]",vg="[object Boolean]",yg="[object Date]",Sg="[object Error]",wi="[object Function]",wg="[object GeneratorFunction]",_g="[object Map]",bg="[object Number]",_i="[object Object]",Cg="[object RegExp]",Ag="[object Set]",Eg="[object String]",Ig="[object Symbol]",Tg="[object WeakMap]",$g="[object ArrayBuffer]",Pg="[object DataView]",Ng="[object Float32Array]",kg="[object Float64Array]",xg="[object Int8Array]",Og="[object Int16Array]",Ug="[object Int32Array]",Rg="[object Uint8Array]",Bg="[object Uint8ClampedArray]",Vg="[object Uint16Array]",Dg="[object Uint32Array]",oe={};oe[Si]=oe[gg]=oe[$g]=oe[Pg]=oe[vg]=oe[yg]=oe[Ng]=oe[kg]=oe[xg]=oe[Og]=oe[Ug]=oe[_g]=oe[bg]=oe[_i]=oe[Cg]=oe[Ag]=oe[Eg]=oe[Ig]=oe[Rg]=oe[Bg]=oe[Vg]=oe[Dg]=!0;oe[Sg]=oe[wi]=oe[Tg]=!1;function gn(e,t,n,r,a,i){var s,u=t&pg,c=t&hg,l=t&mg;if(n&&(s=a?n(e,r,a,i):n(e)),s!==void 0)return s;if(!cg(e))return e;var d=ig(e);if(d){if(s=rg(e),!u)return Zm(e,s)}else{var h=ng(e),f=h==wi||h==wg;if(sg(e))return Jm(e,u);if(h==_i||h==Si||f&&!a){if(s=c||f?{}:ag(e),!u)return c?Xm(e,Ym(s,e)):Qm(e,Wm(s,e))}else{if(!oe[h])return a?e:{};s=og(e,h,u)}}i||(i=new Hm);var p=i.get(e);if(p)return p;i.set(e,s),lg(e)?e.forEach(function(v){s.add(gn(v,t,n,v,e,i))}):ug(e)&&e.forEach(function(v,S){s.set(S,gn(v,t,n,S,e,i))});var g=l?c?tg:eg:c?fg:dg,m=d?void 0:g(e);return Km(m||e,function(v,S){m&&(S=v,v=e[S]),qm(s,S,gn(v,t,n,S,e,i))}),s}var Mg=gn,Fg=Mg,Lg=1,jg=4;function zg(e){return Fg(e,Lg|jg)}var Gg=zg,Hg=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},Kg=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})},qg=function(e,t){t===void 0&&(t={});var n=Gg(e);return Object.keys(t).forEach(function(r){n[r]=U(U({},n[r]),t[r])}),n},Wg=function(e,t){var n=(0,Il[e])(t);return Hg(n)},Yg=function(e,t){var n,r,a=Wg(e,t),i=((r=(n=be(t).context)===null||n===void 0?void 0:n.formFields)===null||r===void 0?void 0:r[e])||{},s=qg(a,i);return delete s.QR,s},Jg=function(e,t){var n=Yg(e,t);return Kg(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 E=function(){return E=Object.assign||function(t){for(var o,n=1,a=arguments.length;n<a;n++){o=arguments[n];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t},E.apply(this,arguments)};function rr(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(o[n[a]]=e[n[a]]);return o}function L(e){var t=typeof Symbol=="function"&&Symbol.iterator,o=t&&e[t],n=0;if(o)return o.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function W(e,t){var o=typeof Symbol=="function"&&e[Symbol.iterator];if(!o)return e;var n=o.call(e),a,i=[],l;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(s){l={error:s}}finally{try{a&&!a.done&&(o=n.return)&&o.call(n)}finally{if(l)throw l.error}}return i}function de(e,t,o){if(o||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var ee;(function(e){e.Start="xstate.start",e.Stop="xstate.stop",e.Raise="xstate.raise",e.Send="xstate.send",e.Cancel="xstate.cancel",e.NullEvent="",e.Assign="xstate.assign",e.After="xstate.after",e.DoneState="done.state",e.DoneInvoke="done.invoke",e.Log="xstate.log",e.Init="xstate.init",e.Invoke="xstate.invoke",e.ErrorExecution="error.execution",e.ErrorCommunication="error.communication",e.ErrorPlatform="error.platform",e.ErrorCustom="xstate.error",e.Update="xstate.update",e.Pure="xstate.pure",e.Choose="xstate.choose"})(ee||(ee={}));var st;(function(e){e.Parent="#_parent",e.Internal="#_internal"})(st||(st={}));var An=ee.Start,ar=ee.Stop,Lo=ee.Raise,Go=ee.Send,Ai=ee.Cancel,ab=ee.NullEvent,En=ee.Assign;ee.After;ee.DoneState;var Ei=ee.Log,ib=ee.Init,In=ee.Invoke;ee.ErrorExecution;var _a=ee.ErrorPlatform,lb=ee.ErrorCustom,ir=ee.Update,sb=ee.Choose,cb=ee.Pure,Ii=".",ka={},$n="xstate.guard",db="",$t=!0,ro;function lr(e,t,o){o===void 0&&(o=Ii);var n=zt(e,o),a=zt(t,o);return q(a)?q(n)?a===n:!1:q(n)?n in a:Object.keys(n).every(function(i){return i in a?lr(n[i],a[i]):!1})}function $i(e){try{return q(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 Tn(e,t){try{return wt(e)?e:e.toString().split(t)}catch{throw new Error("'".concat(e,"' is not a valid state path."))}}function pb(e){return typeof e=="object"&&"value"in e&&"context"in e&&"event"in e&&"_event"in e}function zt(e,t){if(pb(e))return e.value;if(wt(e))return ko(e);if(typeof e!="string")return e;var o=Tn(e,t);return ko(o)}function ko(e){if(e.length===1)return e[0];for(var t={},o=t,n=0;n<e.length-1;n++)n===e.length-2?o[e[n]]=e[n+1]:(o[e[n]]={},o=o[e[n]]);return t}function Pt(e,t){for(var o={},n=Object.keys(e),a=0;a<n.length;a++){var i=n[a];o[i]=t(e[i],i,e,a)}return o}function Sa(e,t,o){var n,a,i={};try{for(var l=L(Object.keys(e)),s=l.next();!s.done;s=l.next()){var c=s.value,d=e[c];!o(d)||(i[c]=t(d,c,e))}}catch(p){n={error:p}}finally{try{s&&!s.done&&(a=l.return)&&a.call(l)}finally{if(n)throw n.error}}return i}var fb=function(e){return function(t){var o,n,a=t;try{for(var i=L(e),l=i.next();!l.done;l=i.next()){var s=l.value;a=a[s]}}catch(c){o={error:c}}finally{try{l&&!l.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}};function mb(e,t){return function(o){var n,a,i=o;try{for(var l=L(e),s=l.next();!s.done;s=l.next()){var c=s.value;i=i[t][c]}}catch(d){n={error:d}}finally{try{s&&!s.done&&(a=l.return)&&a.call(l)}finally{if(n)throw n.error}}return i}}function bo(e){if(!e)return[[]];if(q(e))return[[e]];var t=le(Object.keys(e).map(function(o){var n=e[o];return typeof n!="string"&&(!n||!Object.keys(n).length)?[[o]]:bo(e[o]).map(function(a){return[o].concat(a)})}));return t}function le(e){var t;return(t=[]).concat.apply(t,de([],W(e),!1))}function Ti(e){return wt(e)?e:[e]}function Te(e){return e===void 0?[]:Ti(e)}function So(e,t,o){var n,a;if(Q(e))return e(t,o.data);var i={};try{for(var l=L(Object.keys(e)),s=l.next();!s.done;s=l.next()){var c=s.value,d=e[c];Q(d)?i[c]=d(t,o.data):i[c]=d}}catch(p){n={error:p}}finally{try{s&&!s.done&&(a=l.return)&&a.call(l)}finally{if(n)throw n.error}}return i}function ub(e){return/^(done|error)\./.test(e)}function xa(e){return!!(e instanceof Promise||e!==null&&(Q(e)||typeof e=="object")&&Q(e.then))}function yb(e){return e!==null&&typeof e=="object"&&"transition"in e&&typeof e.transition=="function"}function Pi(e,t){var o,n,a=W([[],[]],2),i=a[0],l=a[1];try{for(var s=L(e),c=s.next();!c.done;c=s.next()){var d=c.value;t(d)?i.push(d):l.push(d)}}catch(p){o={error:p}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return[i,l]}function Ni(e,t){return Pt(e.states,function(o,n){if(!!o){var a=(q(t)?void 0:t[n])||(o?o.current:void 0);if(!!a)return{current:a,states:Ni(o,a)}}})}function gb(e,t){return{current:t,states:Ni(e,t)}}function Ca(e,t,o,n){var a=e&&o.reduce(function(i,l){var s,c,d=l.assignment,p={state:n,action:l,_event:t},m={};if(Q(d))m=d(i,t.data,p);else try{for(var f=L(Object.keys(d)),u=f.next();!u.done;u=f.next()){var b=u.value,y=d[b];m[b]=Q(y)?y(i,t.data,p):y}}catch(g){s={error:g}}finally{try{u&&!u.done&&(c=f.return)&&c.call(f)}finally{if(s)throw s.error}}return Object.assign({},i,m)},e);return a}var Ot=function(){};function wt(e){return Array.isArray(e)}function Q(e){return typeof e=="function"}function q(e){return typeof e=="string"}function Ui(e,t){if(!!e)return q(e)?{type:$n,name:e,predicate:t?t[e]:void 0}:Q(e)?{type:$n,name:e.name,predicate:e}:e}function bb(e){try{return"subscribe"in e&&Q(e.subscribe)}catch{return!1}}var He=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();ro={},ro[He]=function(){return this},ro[Symbol.observable]=function(){return this};function Qe(e){return!!e&&"__xstatenode"in e}function hb(e){return!!e&&typeof e.send=="function"}var vb=function(){var e=0;return function(){return e++,e.toString(16)}}();function sr(e,t){return q(e)||typeof e=="number"?E({type:e},t):e}function be(e,t){if(!q(e)&&"$$type"in e&&e.$$type==="scxml")return e;var o=sr(e);return E({name:o.type,data:o,$$type:"scxml",type:"external"},t)}function nt(e,t){var o=Ti(t).map(function(n){return typeof n=="undefined"||typeof n=="string"||Qe(n)?{target:n,event:e}:E(E({},n),{event:e})});return o}function wb(e){if(!(e===void 0||e===db))return Te(e)}function zi(e,t,o,n,a){var i=e.options.guards,l={state:a,cond:t,_event:n};if(t.type===$n)return((i==null?void 0:i[t.name])||t.predicate)(o,n.data,l);var s=i==null?void 0:i[t.type];if(!s)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return s(o,n.data,l)}function Oi(e){return typeof e=="string"?{type:e}:e}function Pn(e,t,o){if(typeof e=="object")return e;var n=function(){};return{next:e,error:t||n,complete:o||n}}function ao(e,t){return"".concat(e,":invocation[").concat(t,"]")}var xo=be({type:ib});function Nn(e,t){return t&&t[e]||void 0}function Dt(e,t){var o;if(q(e)||typeof e=="number"){var n=Nn(e,t);Q(n)?o={type:e,exec:n}:n?o=n:o={type:e,exec:void 0}}else if(Q(e))o={type:e.name||e.toString(),exec:e};else{var n=Nn(e.type,t);if(Q(n))o=E(E({},e),{exec:n});else if(n){var a=n.type||e.type;o=E(E(E({},n),e),{type:a})}else o=e}return o}var Co=function(e,t){if(!e)return[];var o=wt(e)?e:[e];return o.map(function(n){return Dt(n,t)})};function cr(e){var t=Dt(e);return E(E({id:q(e)?e:t.id},t),{type:t.type})}function _b(e){return q(e)?{type:Lo,event:e}:qo(e,{to:st.Internal})}function kb(e){return{type:Lo,_event:be(e.event)}}function qo(e,t){return{to:t?t.to:void 0,type:Go,event:Q(e)?e:sr(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:Q(e)?e.name:$i(e)}}function Sb(e,t,o,n){var a={_event:o},i=be(Q(e.event)?e.event(t,o.data,a):e.event),l;if(q(e.delay)){var s=n&&n[e.delay];l=Q(s)?s(t,o.data,a):s}else l=Q(e.delay)?e.delay(t,o.data,a):e.delay;var c=Q(e.to)?e.to(t,o.data,a):e.to;return E(E({},e),{to:c,_event:i,event:i.data,delay:l})}function xb(e,t){return qo(e,E(E({},t),{to:st.Parent}))}function Cb(){return xb(ir)}var Ab=function(e,t,o){return E(E({},e),{value:q(e.expr)?e.expr:e.expr(t,o.data,{_event:o})})},Eb=function(e){return{type:Ai,sendId:e}};function Ib(e){var t=cr(e);return{type:ee.Start,activity:t,exec:void 0}}function $b(e){var t=Q(e)?e:cr(e);return{type:ee.Stop,activity:t,exec:void 0}}function Tb(e,t,o){var n=Q(e.activity)?e.activity(t,o.data):e.activity,a=typeof n=="string"?{id:n}:n,i={type:ee.Stop,activity:a};return i}var Pb=function(e){return{type:En,assignment:e}};function Nb(e,t){var o=t?"#".concat(t):"";return"".concat(ee.After,"(").concat(e,")").concat(o)}function io(e,t){var o="".concat(ee.DoneState,".").concat(e),n={type:o,data:t};return n.toString=function(){return o},n}function ho(e,t){var o="".concat(ee.DoneInvoke,".").concat(e),n={type:o,data:t};return n.toString=function(){return o},n}function Nt(e,t){var o="".concat(ee.ErrorPlatform,".").concat(e),n={type:o,data:t};return n.toString=function(){return o},n}function Ub(e,t){return qo(function(o,n){return n},E(E({},t),{to:e}))}function Un(e,t,o,n,a,i){i===void 0&&(i=!1);var l=W(i?[[],a]:Pi(a,function(f){return f.type===En}),2),s=l[0],c=l[1],d=s.length?Ca(o,n,s,t):o,p=i?[o]:void 0,m=le(c.map(function(f){var u;switch(f.type){case Lo:return kb(f);case Go:var b=Sb(f,d,n,e.options.delays);return b;case Ei:return Ab(f,d,n);case sb:{var y=f,g=(u=y.conds.find(function(N){var R=Ui(N.cond,e.options.guards);return!R||zi(e,R,d,n,t)}))===null||u===void 0?void 0:u.actions;if(!g)return[];var v=W(Un(e,t,d,n,Co(Te(g),e.options.actions),i),2),w=v[0],_=v[1];return d=_,p==null||p.push(d),w}case cb:{var g=f.get(d,n.data);if(!g)return[];var k=W(Un(e,t,d,n,Co(Te(g),e.options.actions),i),2),x=k[0],A=k[1];return d=A,p==null||p.push(d),x}case ar:return Tb(f,d,n);case En:{d=Ca(d,n,[f],t),p==null||p.push(d);break}default:var S=Dt(f,e.options.actions),C=S.exec;if(C&&p){var $=p.length-1;S=E(E({},S),{exec:function(N){for(var R=[],D=1;D<arguments.length;D++)R[D-1]=arguments[D];C.apply(void 0,de([p[$]],W(R),!1))}})}return S}}).filter(function(f){return!!f}));return[m,d]}var Ao=[],Ut=function(e,t){Ao.push(e);var o=t(e);return Ao.pop(),o},zb=function(e){return e(Ao[Ao.length-1])};function Ri(e){var t;return t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}},t[He]=function(){return this},t}function Ob(e,t,o,n){var a,i=Oi(e.src),l=(a=t==null?void 0:t.options.services)===null||a===void 0?void 0:a[i.type],s=e.data?So(e.data,o,n):void 0,c=l?Bi(l,e.id,s):Ri(e.id);return c.meta=e,c}function Bi(e,t,o){var n=Ri(t);if(n.deferred=!0,Qe(e)){var a=n.state=Ut(void 0,function(){return(o?e.withContext(o):e).initialState});n.getSnapshot=function(){return a}}return n}function Rb(e){try{return typeof e.send=="function"}catch{return!1}}function Bb(e){return Rb(e)&&"id"in e}function Vb(e){var t;return E((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}},t[He]=function(){return this},t),e)}var Eo=function(e){return e.type==="atomic"||e.type==="final"};function ct(e){return Object.keys(e.states).map(function(t){return e.states[t]}).filter(function(t){return t.type!=="history"})}function Vi(e){var t=[e];return Eo(e)?t:t.concat(le(ct(e).map(Vi)))}function it(e,t){var o,n,a,i,l,s,c,d,p=new Set(e),m=zn(p),f=new Set(t);try{for(var u=L(f),b=u.next();!b.done;b=u.next())for(var y=b.value,g=y.parent;g&&!f.has(g);)f.add(g),g=g.parent}catch($){o={error:$}}finally{try{b&&!b.done&&(n=u.return)&&n.call(u)}finally{if(o)throw o.error}}var v=zn(f);try{for(var w=L(f),_=w.next();!_.done;_=w.next()){var y=_.value;if(y.type==="compound"&&(!v.get(y)||!v.get(y).length))m.get(y)?m.get(y).forEach(function(N){return f.add(N)}):y.initialStateNodes.forEach(function(N){return f.add(N)});else if(y.type==="parallel")try{for(var k=(l=void 0,L(ct(y))),x=k.next();!x.done;x=k.next()){var A=x.value;f.has(A)||(f.add(A),m.get(A)?m.get(A).forEach(function(N){return f.add(N)}):A.initialStateNodes.forEach(function(N){return f.add(N)}))}}catch(N){l={error:N}}finally{try{x&&!x.done&&(s=k.return)&&s.call(k)}finally{if(l)throw l.error}}}}catch($){a={error:$}}finally{try{_&&!_.done&&(i=w.return)&&i.call(w)}finally{if(a)throw a.error}}try{for(var S=L(f),C=S.next();!C.done;C=S.next())for(var y=C.value,g=y.parent;g&&!f.has(g);)f.add(g),g=g.parent}catch($){c={error:$}}finally{try{C&&!C.done&&(d=S.return)&&d.call(S)}finally{if(c)throw c.error}}return f}function Di(e,t){var o=t.get(e);if(!o)return{};if(e.type==="compound"){var n=o[0];if(n){if(Eo(n))return n.key}else return{}}var a={};return o.forEach(function(i){a[i.key]=Di(i,t)}),a}function zn(e){var t,o,n=new Map;try{for(var a=L(e),i=a.next();!i.done;i=a.next()){var l=i.value;n.has(l)||n.set(l,[]),l.parent&&(n.has(l.parent)||n.set(l.parent,[]),n.get(l.parent).push(l))}}catch(s){t={error:s}}finally{try{i&&!i.done&&(o=a.return)&&o.call(a)}finally{if(t)throw t.error}}return n}function Db(e,t){var o=it([e],t);return Di(e,zn(o))}function vo(e,t){return Array.isArray(e)?e.some(function(o){return o===t}):e instanceof Set?e.has(t):!1}function Mb(e){return de([],W(new Set(le(de([],W(e.map(function(t){return t.ownEvents})),!1)))),!1)}function Rt(e,t){return t.type==="compound"?ct(t).some(function(o){return o.type==="final"&&vo(e,o)}):t.type==="parallel"?ct(t).every(function(o){return Rt(e,o)}):!1}function Fb(e){return e===void 0&&(e=[]),e.reduce(function(t,o){return o.meta!==void 0&&(t[o.id]=o.meta),t},{})}function Aa(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(q(e)||q(t))return e===t;var o=Object.keys(e),n=Object.keys(t);return o.length===n.length&&o.every(function(a){return Mi(e[a],t[a])})}function jb(e){return typeof e!="object"||e===null?!1:"value"in e&&"_event"in e}function Lb(e,t){var o=e.exec,n=E(E({},e),{exec:o!==void 0?function(){return o(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0});return n}var Ne=function(){function e(t){var o=this,n;this.actions=[],this.activities=ka,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||ka,this.meta=Fb(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=(n=Array.isArray(t.tags)?new Set(t.tags):t.tags)!==null&&n!==void 0?n:new Set,this.machine=t.machine,Object.defineProperty(this,"nextEvents",{get:function(){return Mb(o.configuration)}})}return e.from=function(t,o){if(t instanceof e)return t.context!==o?new e({value:t.value,context:o,_event:t._event,_sessionid:null,historyValue:t.historyValue,history:t.history,actions:[],activities:t.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):t;var n=xo;return new e({value:t,context:o,_event:n,_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,o){if(t instanceof e){if(!t.actions.length)return t;var n=xo;return new e({value:t.value,context:o,_event:n,_sessionid:null,historyValue:t.historyValue,history:t.history,activities:t.activities,configuration:t.configuration,transitions:[],children:{}})}return e.from(t,o)},e.prototype.toStrings=function(t,o){var n=this;if(t===void 0&&(t=this.value),o===void 0&&(o="."),q(t))return[t];var a=Object.keys(t);return a.concat.apply(a,de([],W(a.map(function(i){return n.toStrings(t[i],o).map(function(l){return i+o+l})})),!1))},e.prototype.toJSON=function(){var t=this;t.configuration,t.transitions;var o=t.tags;t.machine;var n=rr(t,["configuration","transitions","tags","machine"]);return E(E({},n),{tags:Array.from(o)})},e.prototype.matches=function(t){return lr(t,this.value)},e.prototype.hasTag=function(t){return this.tags.has(t)},e.prototype.can=function(t){var o;Ot(!!this.machine);var n=(o=this.machine)===null||o===void 0?void 0:o.getTransitionData(this,t);return!!(n!=null&&n.transitions.length)&&n.transitions.some(function(a){return a.target!==void 0||a.actions.length})},e}(),Gb={deferEvents:!1},Ea=function(){function e(t){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=E(E({},Gb),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(o){throw this.clear(),o}finally{this.processingEvent=!1}},e}(),pn=new Map,qb=0,lo={bookId:function(){return"x:".concat(qb++)},register:function(e,t){return pn.set(e,t),e},get:function(e){return pn.get(e)},free:function(e){pn.delete(e)}};function dr(){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 Hb(){var e=dr();if(e&&"__xstate__"in e)return e.__xstate__}function Kb(e){if(!!dr()){var t=Hb();t&&t.register(e)}}function Wb(e,t){t===void 0&&(t={});var o=e.initialState,n=new Set,a=[],i=!1,l=function(){if(!i){for(i=!0;a.length>0;){var d=a.shift();o=e.transition(o,d,c),n.forEach(function(p){return p.next(o)})}i=!1}},s=Vb({id:t.id,send:function(d){a.push(d),l()},getSnapshot:function(){return o},subscribe:function(d,p,m){var f=Pn(d,p,m);return n.add(f),f.next(o),{unsubscribe:function(){n.delete(f)}}}}),c={parent:t.parent,self:s,id:t.id||"anonymous",observers:n};return o=e.start?e.start(c):o,s}var On={sync:!1,autoForward:!1},he;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(he||(he={}));var Yb=function(){function e(t,o){var n=this;o===void 0&&(o=e.defaultOptions),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=he.NotStarted,this.children=new Map,this.forwardTo=new Set,this.init=this.start,this.send=function(p,m){if(wt(p))return n.batch(p),n.state;var f=be(sr(p,m));if(n.status===he.Stopped)return n.state;if(n.status!==he.Running&&!n.options.deferEvents)throw new Error('Event "'.concat(f.name,'" was sent to uninitialized service "').concat(n.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 n.scheduler.schedule(function(){n.forward(f);var u=n.nextState(f);n.update(u,f)}),n._state},this.sendTo=function(p,m){var f=n.parent&&(m===st.Parent||n.parent.id===m),u=f?n.parent:q(m)?n.children.get(m)||lo.get(m):hb(m)?m:void 0;if(!u){if(!f)throw new Error("Unable to send event to child '".concat(m,"' from service '").concat(n.id,"'."));return}"machine"in u?u.send(E(E({},p),{name:p.name===lb?"".concat(Nt(n.id)):p.name,origin:n.sessionId})):u.send(p.data)};var a=E(E({},e.defaultOptions),o),i=a.clock,l=a.logger,s=a.parent,c=a.id,d=c!==void 0?c:t.id;this.id=d,this.logger=l,this.clock=i,this.parent=s,this.options=a,this.scheduler=new Ea({deferEvents:this.options.deferEvents}),this.sessionId=lo.bookId()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:Ut(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,o){var n,a;try{for(var i=L(t.actions),l=i.next();!l.done;l=i.next()){var s=l.value;this.exec(s,t,o)}}catch(c){n={error:c}}finally{try{l&&!l.done&&(a=i.return)&&a.call(i)}finally{if(n)throw n.error}}},e.prototype.update=function(t,o){var n,a,i,l,s,c,d,p,m=this;if(t._sessionid=this.sessionId,this._state=t,this.options.execute&&this.execute(this.state),this.children.forEach(function($){m.state.children[$.id]=$}),this.devTools&&this.devTools.send(o.data,t),t.event)try{for(var f=L(this.eventListeners),u=f.next();!u.done;u=f.next()){var b=u.value;b(t.event)}}catch($){n={error:$}}finally{try{u&&!u.done&&(a=f.return)&&a.call(f)}finally{if(n)throw n.error}}try{for(var y=L(this.listeners),g=y.next();!g.done;g=y.next()){var b=g.value;b(t,t.event)}}catch($){i={error:$}}finally{try{g&&!g.done&&(l=y.return)&&l.call(y)}finally{if(i)throw i.error}}try{for(var v=L(this.contextListeners),w=v.next();!w.done;w=v.next()){var _=w.value;_(this.state.context,this.state.history?this.state.history.context:void 0)}}catch($){s={error:$}}finally{try{w&&!w.done&&(c=v.return)&&c.call(v)}finally{if(s)throw s.error}}var k=Rt(t.configuration||[],this.machine);if(this.state.configuration&&k){var x=t.configuration.find(function($){return $.type==="final"&&$.parent===m.machine}),A=x&&x.doneData?So(x.doneData,t.context,o):void 0;try{for(var S=L(this.doneListeners),C=S.next();!C.done;C=S.next()){var b=C.value;b(ho(this.id,A))}}catch($){d={error:$}}finally{try{C&&!C.done&&(p=S.return)&&p.call(S)}finally{if(d)throw d.error}}this.stop()}},e.prototype.onTransition=function(t){return this.listeners.add(t),this.status===he.Running&&t(this.state,this.state.event),this},e.prototype.subscribe=function(t,o,n){var a=this;if(!t)return{unsubscribe:function(){}};var i,l=n;return typeof t=="function"?i=t:(i=t.next.bind(t),l=t.complete.bind(t)),this.listeners.add(i),this.status!==he.NotStarted&&i(this.state),l&&(this.status===he.Stopped?l():this.onDone(l)),{unsubscribe:function(){i&&a.listeners.delete(i),l&&a.doneListeners.delete(l)}}},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 o=this;if(this.status===he.Running)return this;this.machine._init(),lo.register(this.sessionId,this),this.initialized=!0,this.status=he.Running;var n=t===void 0?this.initialState:Ut(this,function(){return jb(t)?o.machine.resolveState(t):o.machine.resolveState(Ne.from(t,o.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){o.update(n,xo)}),this},e.prototype.stop=function(){var t,o,n,a,i,l,s,c,d,p,m=this;try{for(var f=L(this.listeners),u=f.next();!u.done;u=f.next()){var b=u.value;this.listeners.delete(b)}}catch(C){t={error:C}}finally{try{u&&!u.done&&(o=f.return)&&o.call(f)}finally{if(t)throw t.error}}try{for(var y=L(this.stopListeners),g=y.next();!g.done;g=y.next()){var b=g.value;b(),this.stopListeners.delete(b)}}catch(C){n={error:C}}finally{try{g&&!g.done&&(a=y.return)&&a.call(y)}finally{if(n)throw n.error}}try{for(var v=L(this.contextListeners),w=v.next();!w.done;w=v.next()){var b=w.value;this.contextListeners.delete(b)}}catch(C){i={error:C}}finally{try{w&&!w.done&&(l=v.return)&&l.call(v)}finally{if(i)throw i.error}}try{for(var _=L(this.doneListeners),k=_.next();!k.done;k=_.next()){var b=k.value;this.doneListeners.delete(b)}}catch(C){s={error:C}}finally{try{k&&!k.done&&(c=_.return)&&c.call(_)}finally{if(s)throw s.error}}if(!this.initialized)return this;de([],W(this.state.configuration),!1).sort(function(C,$){return $.order-C.order}).forEach(function(C){var $,N;try{for(var R=L(C.definition.exit),D=R.next();!D.done;D=R.next()){var F=D.value;m.exec(F,m.state)}}catch(ce){$={error:ce}}finally{try{D&&!D.done&&(N=R.return)&&N.call(R)}finally{if($)throw $.error}}}),this.children.forEach(function(C){Q(C.stop)&&C.stop()}),this.children.clear();try{for(var x=L(Object.keys(this.delayedEventsMap)),A=x.next();!A.done;A=x.next()){var S=A.value;this.clock.clearTimeout(this.delayedEventsMap[S])}}catch(C){d={error:C}}finally{try{A&&!A.done&&(p=x.return)&&p.call(x)}finally{if(d)throw d.error}}return this.scheduler.clear(),this.scheduler=new Ea({deferEvents:this.options.deferEvents}),this.initialized=!1,this.status=he.Stopped,this._initialState=void 0,lo.free(this.sessionId),this},e.prototype.batch=function(t){var o=this;if(!(this.status===he.NotStarted&&this.options.deferEvents)){if(this.status!==he.Running)throw new Error("".concat(t.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'))}this.scheduler.schedule(function(){var n,a,i=o.state,l=!1,s=[],c=function(f){var u=be(f);o.forward(u),i=Ut(o,function(){return o.machine.transition(i,u)}),s.push.apply(s,de([],W(i.actions.map(function(b){return Lb(b,i)})),!1)),l=l||!!i.changed};try{for(var d=L(t),p=d.next();!p.done;p=d.next()){var m=p.value;c(m)}}catch(f){n={error:f}}finally{try{p&&!p.done&&(a=d.return)&&a.call(d)}finally{if(n)throw n.error}}i.changed=l,i.actions=s,o.update(i,be(t[t.length-1]))})},e.prototype.sender=function(t){return this.send.bind(this,t)},e.prototype.nextState=function(t){var o=this,n=be(t);if(n.name.indexOf(_a)===0&&!this.state.nextEvents.some(function(i){return i.indexOf(_a)===0}))throw n.data.data;var a=Ut(this,function(){return o.machine.transition(o.state,n)});return a},e.prototype.forward=function(t){var o,n;try{for(var a=L(this.forwardTo),i=a.next();!i.done;i=a.next()){var l=i.value,s=this.children.get(l);if(!s)throw new Error("Unable to forward event '".concat(t,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(l,"'."));s.send(t)}}catch(c){o={error:c}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}},e.prototype.defer=function(t){var o=this;this.delayedEventsMap[t.id]=this.clock.setTimeout(function(){t.to?o.sendTo(t._event,t.to):o.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,o,n){n===void 0&&(n=this.machine.options.actions);var a=o.context,i=o._event,l=t.exec||Nn(t.type,n),s=Q(l)?l:l?l.exec:t.exec;if(s)try{return s(a,i.data,{action:t,state:this.state,_event:i})}catch(k){throw this.parent&&this.parent.send({type:"xstate.error",data:k}),k}switch(t.type){case Go:var c=t;if(typeof c.delay=="number"){this.defer(c);return}else c.to?this.sendTo(c._event,c.to):this.send(c._event);break;case Ai:this.cancel(t.sendId);break;case An:{if(this.status!==he.Running)return;var d=t.activity;if(!this.state.activities[d.id||d.type])break;if(d.type===ee.Invoke){var p=Oi(d.src),m=this.machine.options.services?this.machine.options.services[p.type]:void 0,f=d.id,u=d.data,b="autoForward"in d?d.autoForward:!!d.forward;if(!m)return;var y=u?So(u,a,i):void 0;if(typeof m=="string")return;var g=Q(m)?m(a,i.data,{data:y,src:p,meta:d.meta}):m;if(!g)return;var v=void 0;Qe(g)&&(g=y?g.withContext(y):g,v={autoForward:b}),this.spawn(g,f,v)}else this.spawnActivity(d);break}case ar:{this.stopChild(t.activity.id);break}case Ei:var w=t.label,_=t.value;w?this.logger(w,_):this.logger(_);break}},e.prototype.removeChild=function(t){var o;this.children.delete(t),this.forwardTo.delete(t),(o=this.state)===null||o===void 0||delete o.children[t]},e.prototype.stopChild=function(t){var o=this.children.get(t);!o||(this.removeChild(t),Q(o.stop)&&o.stop())},e.prototype.spawn=function(t,o,n){if(xa(t))return this.spawnPromise(Promise.resolve(t),o);if(Q(t))return this.spawnCallback(t,o);if(Bb(t))return this.spawnActor(t,o);if(bb(t))return this.spawnObservable(t,o);if(Qe(t))return this.spawnMachine(t,E(E({},n),{id:o}));if(yb(t))return this.spawnBehavior(t,o);throw new Error('Unable to spawn entity "'.concat(o,'" of type "').concat(typeof t,'".'))},e.prototype.spawnMachine=function(t,o){var n=this;o===void 0&&(o={});var a=new e(t,E(E({},this.options),{parent:this,id:o.id||t.id})),i=E(E({},On),o);i.sync&&a.onTransition(function(s){n.send(ir,{state:s,id:a.id})});var l=a;return this.children.set(a.id,l),i.autoForward&&this.forwardTo.add(a.id),a.onDone(function(s){n.removeChild(a.id),n.send(be(s,{origin:a.id}))}).start(),l},e.prototype.spawnBehavior=function(t,o){var n=Wb(t,{id:o,parent:this});return this.children.set(o,n),n},e.prototype.spawnPromise=function(t,o){var n,a=this,i=!1,l;t.then(function(c){i||(l=c,a.removeChild(o),a.send(be(ho(o,c),{origin:o})))},function(c){if(!i){a.removeChild(o);var d=Nt(o,c);try{a.send(be(d,{origin:o}))}catch{a.devTools&&a.devTools.send(d,a.state),a.machine.strict&&a.stop()}}});var s=(n={id:o,send:function(){},subscribe:function(c,d,p){var m=Pn(c,d,p),f=!1;return t.then(function(u){f||(m.next(u),!f&&m.complete())},function(u){f||m.error(u)}),{unsubscribe:function(){return f=!0}}},stop:function(){i=!0},toJSON:function(){return{id:o}},getSnapshot:function(){return l}},n[He]=function(){return this},n);return this.children.set(o,s),s},e.prototype.spawnCallback=function(t,o){var n,a=this,i=!1,l=new Set,s=new Set,c,d=function(f){c=f,s.forEach(function(u){return u(f)}),!i&&a.send(be(f,{origin:o}))},p;try{p=t(d,function(f){l.add(f)})}catch(f){this.send(Nt(o,f))}if(xa(p))return this.spawnPromise(p,o);var m=(n={id:o,send:function(f){return l.forEach(function(u){return u(f)})},subscribe:function(f){var u=Pn(f);return s.add(u.next),{unsubscribe:function(){s.delete(u.next)}}},stop:function(){i=!0,Q(p)&&p()},toJSON:function(){return{id:o}},getSnapshot:function(){return c}},n[He]=function(){return this},n);return this.children.set(o,m),m},e.prototype.spawnObservable=function(t,o){var n,a=this,i,l=t.subscribe(function(c){i=c,a.send(be(c,{origin:o}))},function(c){a.removeChild(o),a.send(be(Nt(o,c),{origin:o}))},function(){a.removeChild(o),a.send(be(ho(o),{origin:o}))}),s=(n={id:o,send:function(){},subscribe:function(c,d,p){return t.subscribe(c,d,p)},stop:function(){return l.unsubscribe()},getSnapshot:function(){return i},toJSON:function(){return{id:o}}},n[He]=function(){return this},n);return this.children.set(o,s),s},e.prototype.spawnActor=function(t,o){return this.children.set(o,t),t},e.prototype.spawnActivity=function(t){var o=this.machine.options&&this.machine.options.activities?this.machine.options.activities[t.type]:void 0;if(!!o){var n=o(this.state.context,t);this.spawnEffect(t.id,n)}},e.prototype.spawnEffect=function(t,o){var n;this.children.set(t,(n={id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:o||void 0,getSnapshot:function(){},toJSON:function(){return{id:t}}},n[He]=function(){return this},n))},e.prototype.attachDev=function(){var t=dr();if(this.options.devTools&&t){if(t.__REDUX_DEVTOOLS_EXTENSION__){var o=typeof this.options.devTools=="object"?this.options.devTools:void 0;this.devTools=t.__REDUX_DEVTOOLS_EXTENSION__.connect(E(E({name:this.id,autoPause:!0,stateSanitizer:function(n){return{value:n.value,context:n.context,actions:n.actions}}},o),{features:E({jump:!1,skip:!1},o?o.features:void 0)}),this.machine),this.devTools.init(this.state)}Kb(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[He]=function(){return this},e.prototype.getSnapshot=function(){return this.status===he.NotStarted?this.initialState:this._state},e.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(t,o){return setTimeout(t,o)},clearTimeout:function(t){return clearTimeout(t)}},logger:console.log.bind(console),devTools:!1},e.interpret=Fi,e}(),Jb=function(e){return q(e)?E(E({},On),{name:e}):E(E(E({},On),{name:vb()}),e)};function so(e,t){var o=Jb(t);return zb(function(n){return n?n.spawn(e,o.name,o):Bi(e,o.name)})}function Fi(e,t){var o=new Yb(e,t);return o}function Zb(e){if(typeof e=="string"){var t={type:e};return t.toString=function(){return e},t}return e}function co(e){return E(E({type:In},e),{toJSON:function(){e.onDone,e.onError;var t=rr(e,["onDone","onError"]);return E(E({},t),{type:In,src:Zb(e.src)})}})}var lt="",Rn="#",Tt="*",rt={},at=function(e){return e[0]===Rn},Xb=function(){return{actions:{},guards:{},services:{},activities:{},delays:{}}},Qb=function(e,t,o){var n=o.slice(0,-1).some(function(i){return!("cond"in i)&&!("in"in i)&&(q(i.target)||Qe(i.target))}),a=t===lt?"the transient event":"event '".concat(t,"'");Ot(!n,"One or more transitions for ".concat(a," on state '").concat(e.id,"' are unreachable. ")+"Make sure that the default transition is the last one defined.")},eh=function(){function e(t,o,n,a){var i=this;n===void 0&&(n="context"in t?t.context:void 0);var l;this.config=t,this._context=n,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(Xb(),o),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||de([this.machine.key],W(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:(l=this.config.schema)!==null&&l!==void 0?l:{},this.description=this.config.description,this.initial=this.config.initial,this.states=this.config.states?Pt(this.config.states,function(d,p){var m,f=new e(d,{},void 0,{parent:i,key:p});return Object.assign(i.idMap,E((m={},m[f.id]=f,m),f.idMap)),f}):rt;var s=0;function c(d){var p,m;d.order=s++;try{for(var f=L(ct(d)),u=f.next();!u.done;u=f.next()){var b=u.value;c(b)}}catch(y){p={error:y}}finally{try{u&&!u.done&&(m=f.return)&&m.call(f)}finally{if(p)throw p.error}}}c(this),this.history=this.config.history===!0?"shallow":this.config.history||!1,this._transient=!!this.config.always||(this.config.on?Array.isArray(this.config.on)?this.config.on.some(function(d){var p=d.event;return p===lt}):lt in this.config.on:!1),this.strict=!!this.config.strict,this.onEntry=Te(this.config.entry||this.config.onEntry).map(function(d){return Dt(d)}),this.onExit=Te(this.config.exit||this.config.onExit).map(function(d){return Dt(d)}),this.meta=this.config.meta,this.doneData=this.type==="final"?this.config.data:void 0,this.invoke=Te(this.config.invoke).map(function(d,p){var m,f;if(Qe(d)){var u=ao(i.id,p);return i.machine.options.services=E((m={},m[u]=d,m),i.machine.options.services),co({src:u,id:u})}else if(q(d.src)){var u=d.id||ao(i.id,p);return co(E(E({},d),{id:u,src:d.src}))}else if(Qe(d.src)||Q(d.src)){var u=d.id||ao(i.id,p);return i.machine.options.services=E((f={},f[u]=d.src,f),i.machine.options.services),co(E(E({id:u},d),{src:u}))}else{var b=d.src;return co(E(E({id:ao(i.id,p)},d),{src:b}))}}),this.activities=Te(this.config.activities).concat(this.invoke).map(function(d){return cr(d)}),this.transition=this.transition.bind(this),this.tags=Te(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||Vi(this).forEach(function(t){return t.on})},e.prototype.withConfig=function(t,o){var n=this.options,a=n.actions,i=n.activities,l=n.guards,s=n.services,c=n.delays;return new e(this.config,{actions:E(E({},a),t.actions),activities:E(E({},i),t.activities),guards:E(E({},l),t.guards),services:E(E({},s),t.services),delays:E(E({},c),t.delays)},o!=null?o:this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return Q(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:Pt(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(o,n){return o[n.eventType]=o[n.eventType]||[],o[n.eventType].push(n),o},{})},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 o=t===lt,n=this.transitions.filter(function(a){var i=a.eventType===t;return o?i:i||a.eventType===Tt});return this.__cache.candidates[t]=n,n},e.prototype.getDelayedTransitions=function(){var t=this,o=this.config.after;if(!o)return[];var n=function(i,l){var s=Q(i)?"".concat(t.id,":delay[").concat(l,"]"):i,c=Nb(s,t.id);return t.onEntry.push(qo(c,{delay:i})),t.onExit.push(Eb(c)),c},a=wt(o)?o.map(function(i,l){var s=n(i.delay,l);return E(E({},i),{event:s})}):le(Object.keys(o).map(function(i,l){var s=o[i],c=q(s)?{target:s}:s,d=isNaN(+i)?i:+i,p=n(d,l);return Te(c).map(function(m){return E(E({},m),{event:p,delay:d})})}));return a.map(function(i){var l=i.delay;return E(E({},t.formatTransition(i)),{delay:l})})},e.prototype.getStateNodes=function(t){var o,n=this;if(!t)return[];var a=t instanceof Ne?t.value:zt(t,this.delimiter);if(q(a)){var i=this.getStateNode(a).initial;return i!==void 0?this.getStateNodes((o={},o[a]=i,o)):[this,this.states[a]]}var l=Object.keys(a),s=[this];return s.push.apply(s,de([],W(le(l.map(function(c){return n.getStateNode(c).getStateNodes(a[c])}))),!1)),s},e.prototype.handles=function(t){var o=$i(t);return this.events.includes(o)},e.prototype.resolveState=function(t){var o=t instanceof Ne?t:Ne.create(t),n=Array.from(it([],this.getStateNodes(o.value)));return new Ne(E(E({},o),{value:this.resolve(o.value),configuration:n,done:Rt(n,this),tags:Aa(n),machine:this.machine}))},e.prototype.transitionLeafNode=function(t,o,n){var a=this.getStateNode(t),i=a.next(o,n);return!i||!i.transitions.length?this.next(o,n):i},e.prototype.transitionCompoundNode=function(t,o,n){var a=Object.keys(t),i=this.getStateNode(a[0]),l=i._transition(t[a[0]],o,n);return!l||!l.transitions.length?this.next(o,n):l},e.prototype.transitionParallelNode=function(t,o,n){var a,i,l={};try{for(var s=L(Object.keys(t)),c=s.next();!c.done;c=s.next()){var d=c.value,p=t[d];if(!!p){var m=this.getStateNode(d),f=m._transition(p,o,n);f&&(l[d]=f)}}}catch(w){a={error:w}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(a)throw a.error}}var u=Object.keys(l).map(function(w){return l[w]}),b=le(u.map(function(w){return w.transitions})),y=u.some(function(w){return w.transitions.length>0});if(!y)return this.next(o,n);var g=le(u.map(function(w){return w.entrySet})),v=le(Object.keys(l).map(function(w){return l[w].configuration}));return{transitions:b,entrySet:g,exitSet:le(u.map(function(w){return w.exitSet})),configuration:v,source:o,actions:le(Object.keys(l).map(function(w){return l[w].actions}))}},e.prototype._transition=function(t,o,n){return q(t)?this.transitionLeafNode(t,o,n):Object.keys(t).length===1?this.transitionCompoundNode(t,o,n):this.transitionParallelNode(t,o,n)},e.prototype.getTransitionData=function(t,o){return this._transition(t.value,t,be(o))},e.prototype.next=function(t,o){var n,a,i=this,l=o.name,s=[],c=[],d;try{for(var p=L(this.getCandidates(l)),m=p.next();!m.done;m=p.next()){var f=m.value,u=f.cond,b=f.in,y=t.context,g=b?q(b)&&at(b)?t.matches(zt(this.getStateNodeById(b).path,this.delimiter)):lr(zt(b,this.delimiter),fb(this.path.slice(0,-2))(t.value)):!0,v=!1;try{v=!u||zi(this.machine,u,y,o,t)}catch(x){throw new Error("Unable to evaluate guard '".concat(u.name||u.type,"' in transition for event '").concat(l,"' in state node '").concat(this.id,`':
17
- `).concat(x.message))}if(v&&g){f.target!==void 0&&(c=f.target),s.push.apply(s,de([],W(f.actions),!1)),d=f;break}}}catch(x){n={error:x}}finally{try{m&&!m.done&&(a=p.return)&&a.call(p)}finally{if(n)throw n.error}}if(!!d){if(!c.length)return{transitions:[d],entrySet:[],exitSet:[],configuration:t.value?[this]:[],source:t,actions:s};var w=le(c.map(function(x){return i.getRelativeStateNodes(x,t.historyValue)})),_=!!d.internal,k=_?[]:le(w.map(function(x){return i.nodesFromChild(x)}));return{transitions:[d],entrySet:k,exitSet:_?[]:[this],configuration:w,source:t,actions:s}}},e.prototype.nodesFromChild=function(t){if(t.escapes(this))return[];for(var o=[],n=t;n&&n!==this;)o.push(n),n=n.parent;return o.push(this),o},e.prototype.escapes=function(t){if(this===t)return!1;for(var o=this.parent;o;){if(o===t)return!1;o=o.parent}return!0},e.prototype.getActions=function(t,o,n,a){var i,l,s,c,d=it([],a?this.getStateNodes(a.value):[this]),p=t.configuration.length?it(d,t.configuration):d;try{for(var m=L(p),f=m.next();!f.done;f=m.next()){var u=f.value;vo(d,u)||t.entrySet.push(u)}}catch(S){i={error:S}}finally{try{f&&!f.done&&(l=m.return)&&l.call(m)}finally{if(i)throw i.error}}try{for(var b=L(d),y=b.next();!y.done;y=b.next()){var u=y.value;(!vo(p,u)||vo(t.exitSet,u.parent))&&t.exitSet.push(u)}}catch(S){s={error:S}}finally{try{y&&!y.done&&(c=b.return)&&c.call(b)}finally{if(s)throw s.error}}var g=le(t.entrySet.map(function(S){var C=[];if(S.type!=="final")return C;var $=S.parent;if(!$.parent)return C;C.push(io(S.id,S.doneData),io($.id,S.doneData?So(S.doneData,o,n):void 0));var N=$.parent;return N.type==="parallel"&&ct(N).every(function(R){return Rt(t.configuration,R)})&&C.push(io(N.id)),C}));t.exitSet.sort(function(S,C){return C.order-S.order}),t.entrySet.sort(function(S,C){return S.order-C.order});var v=new Set(t.entrySet),w=new Set(t.exitSet),_=W([le(Array.from(v).map(function(S){return de(de([],W(S.activities.map(function(C){return Ib(C)})),!1),W(S.onEntry),!1)})).concat(g.map(_b)),le(Array.from(w).map(function(S){return de(de([],W(S.onExit),!1),W(S.activities.map(function(C){return $b(C)})),!1)}))],2),k=_[0],x=_[1],A=Co(x.concat(t.actions).concat(k),this.machine.options.actions);return A},e.prototype.transition=function(t,o,n){t===void 0&&(t=this.initialState);var a=be(o),i;if(t instanceof Ne)i=n===void 0?t:this.resolveState(Ne.from(t,n));else{var l=q(t)?this.resolve(ko(this.getResolvedPath(t))):this.resolve(t),s=n!=null?n:this.machine.context;i=this.resolveState(Ne.from(l,s))}if(!$t&&a.name===Tt)throw new Error("An event cannot have the wildcard type ('".concat(Tt,"')"));if(this.strict&&!this.events.includes(a.name)&&!ub(a.name))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(a.name,"'"));var c=this._transition(i.value,i,a)||{transitions:[],configuration:[],entrySet:[],exitSet:[],source:i,actions:[]},d=it([],this.getStateNodes(i.value)),p=c.configuration.length?it(d,c.configuration):d;return c.configuration=de([],W(p),!1),this.resolveTransition(c,i,i.context,a)},e.prototype.resolveRaisedTransition=function(t,o,n){var a,i=t.actions;return t=this.transition(t,o),t._event=n,t.event=n.data,(a=t.actions).unshift.apply(a,de([],W(i),!1)),t},e.prototype.resolveTransition=function(t,o,n,a){var i,l,s=this;a===void 0&&(a=xo);var c=t.configuration,d=!o||t.transitions.length>0,p=d?Db(this.machine,c):void 0,m=o?o.historyValue?o.historyValue:t.source?this.machine.historyValue(o.value):void 0:void 0,f=this.getActions(t,n,a,o),u=o?E({},o.activities):{};try{for(var b=L(f),y=b.next();!y.done;y=b.next()){var g=y.value;g.type===An?u[g.activity.id||g.activity.type]=g:g.type===ar&&(u[g.activity.id||g.activity.type]=!1)}}catch(ye){i={error:ye}}finally{try{y&&!y.done&&(l=b.return)&&l.call(b)}finally{if(i)throw i.error}}var v=W(Un(this,o,n,a,f,this.machine.config.preserveActionOrder),2),w=v[0],_=v[1],k=W(Pi(w,function(ye){return ye.type===Lo||ye.type===Go&&ye.to===st.Internal}),2),x=k[0],A=k[1],S=w.filter(function(ye){var $e;return ye.type===An&&(($e=ye.activity)===null||$e===void 0?void 0:$e.type)===In}),C=S.reduce(function(ye,$e){return ye[$e.activity.id]=Ob($e.activity,s.machine,_,a),ye},o?E({},o.children):{}),$=d?t.configuration:o?o.configuration:[],N=Rt($,this),R=new Ne({value:p||o.value,context:_,_event:a,_sessionid:o?o._sessionid:null,historyValue:p?m?gb(m,p):void 0:o?o.historyValue:void 0,history:!p||t.source?o:void 0,actions:p?A:[],activities:p?u:o?o.activities:{},events:[],configuration:$,transitions:t.transitions,children:C,done:N,tags:Aa($),machine:this}),D=n!==_;R.changed=a.name===ir||D;var F=R.history;F&&delete F.history;var ce=!N&&(this._transient||c.some(function(ye){return ye._transient}));if(!d&&(!ce||a.name===lt))return R;var K=R;if(!N)for(ce&&(K=this.resolveRaisedTransition(K,{type:ab},a));x.length;){var fe=x.shift();K=this.resolveRaisedTransition(K,fe._event,a)}var St=K.changed||(F?!!K.actions.length||D||typeof F.value!=typeof K.value||!Mi(K.value,F.value):void 0);return K.changed=St,K.history=F,K},e.prototype.getStateNode=function(t){if(at(t))return this.machine.getStateNodeById(t);if(!this.states)throw new Error("Unable to retrieve child state '".concat(t,"' from '").concat(this.id,"'; no child states exist."));var o=this.states[t];if(!o)throw new Error("Child state '".concat(t,"' does not exist on '").concat(this.id,"'"));return o},e.prototype.getStateNodeById=function(t){var o=at(t)?t.slice(Rn.length):t;if(o===this.id)return this;var n=this.machine.idMap[o];if(!n)throw new Error("Child state node '#".concat(o,"' does not exist on machine '").concat(this.id,"'"));return n},e.prototype.getStateNodeByPath=function(t){if(typeof t=="string"&&at(t))try{return this.getStateNodeById(t.slice(1))}catch{}for(var o=Tn(t,this.delimiter).slice(),n=this;o.length;){var a=o.shift();if(!a.length)break;n=n.getStateNode(a)}return n},e.prototype.resolve=function(t){var o,n=this;if(!t)return this.initialStateValue||rt;switch(this.type){case"parallel":return Pt(this.initialStateValue,function(i,l){return i?n.getStateNode(l).resolve(t[l]||i):rt});case"compound":if(q(t)){var a=this.getStateNode(t);return a.type==="parallel"||a.type==="compound"?(o={},o[t]=a.initialStateValue,o):t}return Object.keys(t).length?Pt(t,function(i,l){return i?n.getStateNode(l).resolve(i):rt}):this.initialStateValue||{};default:return t||rt}},e.prototype.getResolvedPath=function(t){if(at(t)){var o=this.machine.idMap[t.slice(Rn.length)];if(!o)throw new Error("Unable to find state node '".concat(t,"'"));return o.path}return Tn(t,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;var o;if(this.type==="parallel")o=Sa(this.states,function(n){return n.initialStateValue||rt},function(n){return n.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,"'"));o=Eo(this.states[this.initial])?this.initial:(t={},t[this.initial]=this.states[this.initial].initialStateValue,t)}else o={};return this.__cache.initialStateValue=o,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(t,o){this._init();var n=this.getStateNodes(t);return this.resolveTransition({configuration:n,entrySet:n,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,o!=null?o: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 o=this.config;q(o.target)?t=at(o.target)?ko(this.machine.getStateNodeById(o.target).path.slice(this.path.length-1)):o.target:t=o.target}return t},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(t,o,n){return n===void 0&&(n=!0),n?t.type==="history"?t.resolveHistory(o):t.initialStateNodes:[t]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var t=this;if(Eo(this))return[this];if(this.type==="compound"&&!this.initial)return $t||Ot(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this];var o=bo(this.initialStateValue);return le(o.map(function(n){return t.getFromRelativePath(n)}))},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var o=W(t),n=o[0],a=o.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(n,"' from node with no states"));var i=this.getStateNode(n);if(i.type==="history")return i.resolveHistory();if(!this.states[n])throw new Error("Child state '".concat(n,"' does not exist on '").concat(this.id,"'"));return this.states[n].getFromRelativePath(a)},e.prototype.historyValue=function(t){if(!!Object.keys(this.states).length)return{current:t||this.initialStateValue,states:Sa(this.states,function(o,n){if(!t)return o.historyValue();var a=q(t)?void 0:t[n];return o.historyValue(a||o.initialStateValue)},function(o){return!o.history})}},e.prototype.resolveHistory=function(t){var o=this;if(this.type!=="history")return[this];var n=this.parent;if(!t){var a=this.target;return a?le(bo(a).map(function(l){return n.getFromRelativePath(l)})):n.initialStateNodes}var i=mb(n.path,"states")(t).current;return q(i)?[n.getStateNode(i)]:le(bo(i).map(function(l){return o.history==="deep"?n.getFromRelativePath(l):[n.states[l[0]]]}))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var t=this,o=le(Object.keys(this.states).map(function(n){return t.states[n].stateIds}));return[this.id].concat(o)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){var t,o,n,a;if(this.__cache.events)return this.__cache.events;var i=this.states,l=new Set(this.ownEvents);if(i)try{for(var s=L(Object.keys(i)),c=s.next();!c.done;c=s.next()){var d=c.value,p=i[d];if(p.states)try{for(var m=(n=void 0,L(p.events)),f=m.next();!f.done;f=m.next()){var u=f.value;l.add("".concat(u))}}catch(b){n={error:b}}finally{try{f&&!f.done&&(a=m.return)&&a.call(m)}finally{if(n)throw n.error}}}}catch(b){t={error:b}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(t)throw t.error}}return this.__cache.events=Array.from(l)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownEvents",{get:function(){var t=new Set(this.transitions.filter(function(o){return!(!o.target&&!o.actions.length&&o.internal)}).map(function(o){return o.eventType}));return Array.from(t)},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(t){var o=this;if(t!==void 0)return t.map(function(n){if(!q(n))return n;var a=n[0]===o.delimiter;if(a&&!o.parent)return o.getStateNodeByPath(n.slice(1));var i=a?o.key+n:n;if(o.parent)try{var l=o.parent.getStateNodeByPath(i);return l}catch(s){throw new Error("Invalid transition definition for state node '".concat(o.id,`':
18
- `).concat(s.message))}else return o.getStateNodeByPath(i)})},e.prototype.formatTransition=function(t){var o=this,n=wb(t.target),a="internal"in t?t.internal:n?n.some(function(c){return q(c)&&c[0]===o.delimiter}):!0,i=this.machine.options.guards,l=this.resolveTarget(n),s=E(E({},t),{actions:Co(Te(t.actions)),cond:Ui(t.cond,i),target:l,source:this,internal:a,eventType:t.event,toJSON:function(){return E(E({},s),{target:s.target?s.target.map(function(c){return"#".concat(c.id)}):void 0,source:"#".concat(o.id)})}});return s},e.prototype.formatTransitions=function(){var t,o,n=this,a;if(!this.config.on)a=[];else if(Array.isArray(this.config.on))a=this.config.on;else{var i=this.config.on,l=Tt,s=i[l],c=s===void 0?[]:s,d=rr(i,[typeof l=="symbol"?l:l+""]);a=le(Object.keys(d).map(function(w){!$t&&w===lt&&Ot(!1,"Empty string transition configs (e.g., `{ on: { '': ... }}`) for transient transitions are deprecated. Specify the transition in the `{ always: ... }` property instead. "+'Please check the `on` configuration for "#'.concat(n.id,'".'));var _=nt(w,d[w]);return $t||Qb(n,w,_),_}).concat(nt(Tt,c)))}var p=this.config.always?nt("",this.config.always):[],m=this.config.onDone?nt(String(io(this.id)),this.config.onDone):[];$t||Ot(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var f=le(this.invoke.map(function(w){var _=[];return w.onDone&&_.push.apply(_,de([],W(nt(String(ho(w.id)),w.onDone)),!1)),w.onError&&_.push.apply(_,de([],W(nt(String(Nt(w.id)),w.onError)),!1)),_})),u=this.after,b=le(de(de(de(de([],W(m),!1),W(f),!1),W(a),!1),W(p),!1).map(function(w){return Te(w).map(function(_){return n.formatTransition(_)})}));try{for(var y=L(u),g=y.next();!g.done;g=y.next()){var v=g.value;b.push(v)}}catch(w){t={error:w}}finally{try{g&&!g.done&&(o=y.return)&&o.call(y)}finally{if(t)throw t.error}}return b},e}();function Kt(e,t){return new eh(e,t)}var Ce=Pb,pr=Cb,th=Ub,H={},fr={};(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 Xr(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 K(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 se(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,eo=te.Stop,ut=te.Raise,ct=te.Send,bi=te.Cancel,Zg=te.NullEvent,Ar=te.Assign;te.After;te.DoneState;var Ci=te.Log,Qg=te.Init,Er=te.Invoke;te.ErrorExecution;var ga=te.ErrorPlatform,Xg=te.ErrorCustom,to=te.Update,ev=te.Choose,tv=te.Pure,Ai=".",va={},Ir="xstate.guard",nv="",Ei=!0,rn;function no(e,t,n){n===void 0&&(n=Ai);var r=Ot(e,n),a=Ot(t,n);return W(a)?W(r)?a===r:!1:W(r)?r in a:Object.keys(r).every(function(i){return i in a?no(r[i],a[i]):!1})}function Ii(e){try{return W(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 Tr(e,t){try{return _t(e)?e:e.toString().split(t)}catch{throw new Error("'".concat(e,"' is not a valid state path."))}}function rv(e){return typeof e=="object"&&"value"in e&&"context"in e&&"event"in e&&"_event"in e}function Ot(e,t){if(rv(e))return e.value;if(_t(e))return Cn(e);if(typeof e!="string")return e;var n=Tr(e,t);return Cn(n)}function Cn(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 Pt(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=K(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 ov=function(e){return function(t){var n,r,a=t;try{for(var i=K(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 av(e,t){return function(n){var r,a,i=n;try{for(var s=K(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 vn(e){if(!e)return[[]];if(W(e))return[[e]];var t=ie(Object.keys(e).map(function(n){var r=e[n];return typeof r!="string"&&(!r||!Object.keys(r).length)?[[n]]:vn(e[n]).map(function(a){return[n].concat(a)})}));return t}function ie(e){var t;return(t=[]).concat.apply(t,se([],z(e),!1))}function Ti(e){return _t(e)?e:[e]}function Pe(e){return e===void 0?[]:Ti(e)}function An(e,t,n){var r,a;if(ee(e))return e(t,n.data);var i={};try{for(var s=K(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 iv(e){return/^(done|error)\./.test(e)}function Sa(e){return!!(e instanceof Promise||e!==null&&(ee(e)||typeof e=="object")&&ee(e.then))}function sv(e){return e!==null&&typeof e=="object"&&"transition"in e&&typeof e.transition=="function"}function $i(e,t){var n,r,a=z([[],[]],2),i=a[0],s=a[1];try{for(var u=K(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 Pi(e,t){return Pt(e.states,function(n,r){if(!!n){var a=(W(t)?void 0:t[r])||(n?n.current:void 0);if(!!a)return{current:a,states:Pi(n,a)}}})}function uv(e,t){return{current:t,states:Pi(e,t)}}function wa(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=K(Object.keys(l)),p=f.next();!p.done;p=f.next()){var g=p.value,m=l[g];h[g]=ee(m)?m(i,t.data,d):m}}catch(v){u={error:v}}finally{try{p&&!p.done&&(c=f.return)&&c.call(f)}finally{if(u)throw u.error}}return Object.assign({},i,h)},e);return a}var cv=function(){};function _t(e){return Array.isArray(e)}function ee(e){return typeof e=="function"}function W(e){return typeof e=="string"}function Ni(e,t){if(!!e)return W(e)?{type:Ir,name:e,predicate:t?t[e]:void 0}:ee(e)?{type:Ir,name:e.name,predicate:e}:e}function lv(e){try{return"subscribe"in e&&ee(e.subscribe)}catch{return!1}}var We=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();rn={},rn[We]=function(){return this},rn[Symbol.observable]=function(){return this};function lt(e){return!!e&&"__xstatenode"in e}function dv(e){return!!e&&typeof e.send=="function"}var fv=function(){var e=0;return function(){return e++,e.toString(16)}}();function ro(e,t){return W(e)||typeof e=="number"?T({type:e},t):e}function ve(e,t){if(!W(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 rt(e,t){var n=Ti(t).map(function(r){return typeof r=="undefined"||typeof r=="string"||lt(r)?{target:r,event:e}:T(T({},r),{event:e})});return n}function pv(e){if(!(e===void 0||e===nv))return Pe(e)}function ki(e,t,n,r,a){var i=e.options.guards,s={state:a,cond:t,_event:r};if(t.type===Ir)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 xi(e){return typeof e=="string"?{type:e}:e}function yn(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 on(e,t){return"".concat(e,":invocation[").concat(t,"]")}var Bt=ve({type:Qg});function $r(e,t){return t&&t[e]||void 0}function Vt(e,t){var n;if(W(e)||typeof e=="number"){var r=$r(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=$r(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 st=function(e,t){if(!e)return[];var n=_t(e)?e:[e];return n.map(function(r){return Vt(r,t)})};function oo(e){var t=Vt(e);return T(T({id:W(e)?e:t.id},t),{type:t.type})}function hv(e){return W(e)?{type:ut,event:e}:zn(e,{to:He.Internal})}function mv(e){return{type:ut,_event:ve(e.event)}}function zn(e,t){return{to:t?t.to:void 0,type:ct,event:ee(e)?e:ro(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:ee(e)?e.name:Ii(e)}}function gv(e,t,n,r){var a={_event:n},i=ve(ee(e.event)?e.event(t,n.data,a):e.event),s;if(W(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 vv(e,t){return zn(e,T(T({},t),{to:He.Parent}))}function yv(){return vv(to)}var Sv=function(e,t,n){return T(T({},e),{value:W(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})},wv=function(e){return{type:bi,sendId:e}};function _v(e){var t=oo(e);return{type:te.Start,activity:t,exec:void 0}}function bv(e){var t=ee(e)?e:oo(e);return{type:te.Stop,activity:t,exec:void 0}}function Cv(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 Av=function(e){return{type:Ar,assignment:e}};function Ev(e,t){var n=t?"#".concat(t):"";return"".concat(te.After,"(").concat(e,")").concat(n)}function an(e,t){var n="".concat(te.DoneState,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Sn(e,t){var n="".concat(te.DoneInvoke,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Nt(e,t){var n="".concat(te.ErrorPlatform,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Iv(e,t){return zn(function(n,r){return r},T(T({},t),{to:e}))}function En(e,t,n,r,a,i,s){s===void 0&&(s=!1);var u=z(s?[[],a]:$i(a,function(p){return p.type===Ar}),2),c=u[0],l=u[1],d=c.length?wa(n,r,c,t):n,h=s?[n]:void 0,f=ie(l.map(function(p){var g;switch(p.type){case ut:return mv(p);case ct:var m=gv(p,d,r,e.options.delays);return m.to!==He.Internal&&(i==null||i(m,d,r)),m;case Ci:{var v=Sv(p,d,r);return i==null||i(v,d,r),v}case ev:{var S=p,w=(g=S.conds.find(function(F){var D=Ni(F.cond,e.options.guards);return!D||ki(e,D,d,r,i?void 0:t)}))===null||g===void 0?void 0:g.actions;if(!w)return[];var _=z(En(e,t,d,r,st(Pe(w),e.options.actions),i,s),2),b=_[0],C=_[1];return d=C,h==null||h.push(d),b}case tv:{var w=p.get(d,r.data);if(!w)return[];var E=z(En(e,t,d,r,st(Pe(w),e.options.actions),i,s),2),A=E[0],$=E[1];return d=$,h==null||h.push(d),A}case eo:{var v=Cv(p,d,r);return i==null||i(v,d,r),v}case Ar:{d=wa(d,r,[p],i?void 0:t),h==null||h.push(d);break}default:var I=Vt(p,e.options.actions),N=I.exec;if(i)i(I,d,r);else if(N&&h){var M=h.length-1;I=T(T({},I),{exec:function(F){for(var D=[],G=1;G<arguments.length;G++)D[G-1]=arguments[G];N.apply(void 0,se([h[M]],z(D),!1))}})}return I}}).filter(function(p){return!!p}));return[f,d]}var In=[],it=function(e,t){In.push(e);var n=t(e);return In.pop(),n},Tv=function(e){return e(In[In.length-1])};function Oi(e){var t;return t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}},t[We]=function(){return this},t}function $v(e,t,n,r){var a,i=xi(e.src),s=(a=t==null?void 0:t.options.services)===null||a===void 0?void 0:a[i.type],u=e.data?An(e.data,n,r):void 0,c=s?ao(s,e.id,u):Oi(e.id);return c.meta=e,c}function ao(e,t,n){var r=Oi(t);if(r.deferred=!0,lt(e)){var a=r.state=it(void 0,function(){return(n?e.withContext(n):e).initialState});r.getSnapshot=function(){return a}}return r}function Pv(e){try{return typeof e.send=="function"}catch{return!1}}function Nv(e){return Pv(e)&&"id"in e}function kv(e){var t;return T((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}},t[We]=function(){return this},t),e)}var Tn=function(e){return e.type==="atomic"||e.type==="final"};function Ui(e){return Object.keys(e.states).map(function(t){return e.states[t]})}function Dt(e){return Ui(e).filter(function(t){return t.type!=="history"})}function Ri(e){var t=[e];return Tn(e)?t:t.concat(ie(Dt(e).map(Ri)))}function kt(e,t){var n,r,a,i,s,u,c,l,d=new Set(e),h=Pr(d),f=new Set(t);try{for(var p=K(f),g=p.next();!g.done;g=p.next())for(var m=g.value,v=m.parent;v&&!f.has(v);)f.add(v),v=v.parent}catch(I){n={error:I}}finally{try{g&&!g.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}var S=Pr(f);try{for(var w=K(f),_=w.next();!_.done;_=w.next()){var m=_.value;if(m.type==="compound"&&(!S.get(m)||!S.get(m).length))h.get(m)?h.get(m).forEach(function(N){return f.add(N)}):m.initialStateNodes.forEach(function(N){return f.add(N)});else if(m.type==="parallel")try{for(var b=(s=void 0,K(Dt(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(N){return f.add(N)}):E.initialStateNodes.forEach(function(N){return f.add(N)}))}}catch(N){s={error:N}}finally{try{C&&!C.done&&(u=b.return)&&u.call(b)}finally{if(s)throw s.error}}}}catch(I){a={error:I}}finally{try{_&&!_.done&&(i=w.return)&&i.call(w)}finally{if(a)throw a.error}}try{for(var A=K(f),$=A.next();!$.done;$=A.next())for(var m=$.value,v=m.parent;v&&!f.has(v);)f.add(v),v=v.parent}catch(I){c={error:I}}finally{try{$&&!$.done&&(l=A.return)&&l.call(A)}finally{if(c)throw c.error}}return f}function Bi(e,t){var n=t.get(e);if(!n)return{};if(e.type==="compound"){var r=n[0];if(r){if(Tn(r))return r.key}else return{}}var a={};return n.forEach(function(i){a[i.key]=Bi(i,t)}),a}function Pr(e){var t,n,r=new Map;try{for(var a=K(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 xv(e,t){var n=kt([e],t);return Bi(e,Pr(n))}function xt(e,t){return Array.isArray(e)?e.some(function(n){return n===t}):e instanceof Set?e.has(t):!1}function Ov(e){return se([],z(new Set(ie(se([],z(e.map(function(t){return t.ownEvents})),!1)))),!1)}function wn(e,t){return t.type==="compound"?Dt(t).some(function(n){return n.type==="final"&&xt(e,n)}):t.type==="parallel"?Dt(t).every(function(n){return wn(e,n)}):!1}function Uv(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(ie(e.map(function(t){return t.tags})))}function Vi(e,t){if(e===t)return!0;if(e===void 0||t===void 0)return!1;if(W(e)||W(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(function(a){return Vi(e[a],t[a])})}function Rv(e){return typeof e!="object"||e===null?!1:"value"in e&&"_event"in e}function Bv(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 Ne=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=Uv(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 Ov(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=Bt;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=Bt;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="."),W(t))return[t];var a=Object.keys(t);return a.concat.apply(a,se([],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=Xr(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;Ei&&cv(!!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}(),Vv={deferEvents:!1},ba=function(){function e(t){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=T(T({},Vv),t)}return e.prototype.initialize=function(t){if(this.initialized=!0,t){if(!this.options.deferEvents){this.schedule(t);return}this.process(t)}this.flushEvents()},e.prototype.schedule=function(t){if(!this.initialized||this.processingEvent){this.queue.push(t);return}if(this.queue.length!==0)throw new Error("Event queue should be empty when it is not processing events");this.process(t),this.flushEvents()},e.prototype.clear=function(){this.queue=[]},e.prototype.flushEvents=function(){for(var t=this.queue.shift();t;)this.process(t),t=this.queue.shift()},e.prototype.process=function(t){this.processingEvent=!0;try{t()}catch(n){throw this.clear(),n}finally{this.processingEvent=!1}},e}(),sr=new Map,Dv=0,sn={bookId:function(){return"x:".concat(Dv++)},register:function(e,t){return sr.set(e,t),e},get:function(e){return sr.get(e)},free:function(e){sr.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 Mv(){var e=io();if(e&&"__xstate__"in e)return e.__xstate__}function Fv(e){if(!!io()){var t=Mv();t&&t.register(e)}}function Lv(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=kv({id:t.id,send:function(l){a.push(l),s()},getSnapshot:function(){return n},subscribe:function(l,d,h){var f=yn(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 Nr={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 jv=function(){function e(t,n){var r=this;n===void 0&&(n=e.defaultOptions),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.init=this.start,this.send=function(d,h){if(_t(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 p=r._nextState(f);r.update(p,f)}),r._state},this.sendTo=function(d,h){var f=r.parent&&(h===He.Parent||r.parent.id===h),p=f?r.parent:W(h)?r.children.get(h)||sn.get(h):dv(h)?h:void 0;if(!p){if(!f)throw new Error("Unable to send event to child '".concat(h,"' from service '").concat(r.id,"'."));return}"machine"in p?(r.status!==ge.Stopped||r.parent!==p||r.state.done)&&p.send(T(T({},d),{name:d.name===Xg?"".concat(Nt(r.id)):d.name,origin:r.sessionId})):p.send(d.data)},this._exec=function(d,h,f,p){p===void 0&&(p=r.machine.options.actions);var g=d.exec||$r(d.type,p),m=ee(g)?g:g?g.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 ct:var v=d;if(typeof v.delay=="number"){r.defer(v);return}else v.to?r.sendTo(v._event,v.to):r.send(v._event);break;case bi:r.cancel(d.sendId);break;case Cr:{if(r.status!==ge.Running)return;var S=d.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[S.id||S.type])break;if(S.type===te.Invoke){var w=xi(S.src),_=r.machine.options.services?r.machine.options.services[w.type]:void 0,b=S.id,C=S.data,E="autoForward"in S?S.autoForward:!!S.forward;if(!_)return;var A=C?An(C,h,f):void 0;if(typeof _=="string")return;var $=ee(_)?_(h,f.data,{data:A,src:w,meta:S.meta}):_;if(!$)return;var I=void 0;lt($)&&($=A?$.withContext(A):$,I={autoForward:E}),r.spawn($,b,I)}else r.spawnActivity(S);break}case eo:{r.stopChild(d.activity.id);break}case Ci:var N=d.label,M=d.value;N?r.logger(N,M):r.logger(M);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=sn.bookId()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:it(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=K(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===Bt)&&this.options.execute&&this.execute(this.state),this.children.forEach(function($){h.state.children[$.id]=$}),this.devTools&&this.devTools.send(n.data,t),t.event)try{for(var f=K(this.eventListeners),p=f.next();!p.done;p=f.next()){var g=p.value;g(t.event)}}catch($){r={error:$}}finally{try{p&&!p.done&&(a=f.return)&&a.call(f)}finally{if(r)throw r.error}}try{for(var m=K(this.listeners),v=m.next();!v.done;v=m.next()){var g=v.value;g(t,t.event)}}catch($){i={error:$}}finally{try{v&&!v.done&&(s=m.return)&&s.call(m)}finally{if(i)throw i.error}}try{for(var S=K(this.contextListeners),w=S.next();!w.done;w=S.next()){var _=w.value;_(this.state.context,this.state.history?this.state.history.context:void 0)}}catch($){u={error:$}}finally{try{w&&!w.done&&(c=S.return)&&c.call(S)}finally{if(u)throw u.error}}if(this.state.done){var b=t.configuration.find(function($){return $.type==="final"&&$.parent===h.machine}),C=b&&b.doneData?An(b.doneData,t.context,n):void 0;try{for(var E=K(this.doneListeners),A=E.next();!A.done;A=E.next()){var g=A.value;g(Sn(this.id,C))}}catch($){l={error:$}}finally{try{A&&!A.done&&(d=E.return)&&d.call(E)}finally{if(l)throw l.error}}this._stop()}},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=yn(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(),sn.register(this.sessionId,this),this.initialized=!0,this.status=ge.Running;var r=t===void 0?this.initialState:it(this,function(){return Rv(t)?n.machine.resolveState(t):n.machine.resolveState(Ne.from(t,n.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){n.update(r,Bt)}),this},e.prototype._stop=function(){var t,n,r,a,i,s,u,c,l,d;try{for(var h=K(this.listeners),f=h.next();!f.done;f=h.next()){var p=f.value;this.listeners.delete(p)}}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 g=K(this.stopListeners),m=g.next();!m.done;m=g.next()){var p=m.value;p(),this.stopListeners.delete(p)}}catch(A){r={error:A}}finally{try{m&&!m.done&&(a=g.return)&&a.call(g)}finally{if(r)throw r.error}}try{for(var v=K(this.contextListeners),S=v.next();!S.done;S=v.next()){var p=S.value;this.contextListeners.delete(p)}}catch(A){i={error:A}}finally{try{S&&!S.done&&(s=v.return)&&s.call(v)}finally{if(i)throw i.error}}try{for(var w=K(this.doneListeners),_=w.next();!_.done;_=w.next()){var p=_.value;this.doneListeners.delete(p)}}catch(A){u={error:A}}finally{try{_&&!_.done&&(c=w.return)&&c.call(w)}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=K(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=it(t,function(){var i=ie(se([],z(t.state.configuration),!1).sort(function(d,h){return h.order-d.order}).map(function(d){return st(d.onExit,t.machine.options.actions)})),s=z(En(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 Ne({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!==ut&&(d.type!==ct||!!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.children.forEach(function(i){ee(i.stop)&&i.stop()}),t.children.clear(),sn.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.'))}this.scheduler.schedule(function(){var r,a,i=n.state,s=!1,u=[],c=function(f){var p=ve(f);n.forward(p),i=it(n,function(){return n.machine.transition(i,p)}),u.push.apply(u,se([],z(i.actions.map(function(g){return Bv(g,i)})),!1)),s=s||!!i.changed};try{for(var l=K(t),d=l.next();!d.done;d=l.next()){var h=d.value;c(h)}}catch(f){r={error:f}}finally{try{d&&!d.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}i.changed=s,i.actions=u,n.update(i,ve(t[t.length-1]))})},e.prototype.sender=function(t){return this.send.bind(this,t)},e.prototype._nextState=function(t,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=it(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=K(this.forwardTo),i=a.next();!i.done;i=a.next()){var s=i.value,u=this.children.get(s);if(!u)throw new Error("Unable to forward event '".concat(t,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(s,"'."));u.send(t)}}catch(c){n={error:c}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}},e.prototype.defer=function(t){var n=this;this.delayedEventsMap[t.id]=this.clock.setTimeout(function(){t.to?n.sendTo(t._event,t.to):n.send(t._event)},t.delay)},e.prototype.cancel=function(t){this.clock.clearTimeout(this.delayedEventsMap[t]),delete this.delayedEventsMap[t]},e.prototype.exec=function(t,n,r){r===void 0&&(r=this.machine.options.actions),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(Sa(t))return this.spawnPromise(Promise.resolve(t),n);if(ee(t))return this.spawnCallback(t,n);if(Nv(t))return this.spawnActor(t,n);if(lv(t))return this.spawnObservable(t,n);if(lt(t))return this.spawnMachine(t,T(T({},r),{id:n}));if(sv(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({},Nr),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=Lv(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(Sn(n,c),{origin:n})))},function(c){if(!i){a.removeChild(n);var l=Nt(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=yn(c,l,d),f=!1;return t.then(function(p){f||(h.next(p),!f&&h.complete())},function(p){f||h.error(p)}),{unsubscribe:function(){return f=!0}}},stop:function(){i=!0},toJSON:function(){return{id:n}},getSnapshot:function(){return s}},r[We]=function(){return this},r);return this.children.set(n,u),u},e.prototype.spawnCallback=function(t,n){var r,a=this,i=!1,s=new Set,u=new Set,c,l=function(f){c=f,u.forEach(function(p){return p(f)}),!i&&a.send(ve(f,{origin:n}))},d;try{d=t(l,function(f){s.add(f)})}catch(f){this.send(Nt(n,f))}if(Sa(d))return this.spawnPromise(d,n);var h=(r={id:n,send:function(f){return s.forEach(function(p){return p(f)})},subscribe:function(f){var p=yn(f);return u.add(p.next),{unsubscribe:function(){u.delete(p.next)}}},stop:function(){i=!0,ee(d)&&d()},toJSON:function(){return{id:n}},getSnapshot:function(){return c}},r[We]=function(){return this},r);return this.children.set(n,h),h},e.prototype.spawnObservable=function(t,n){var r,a=this,i,s=t.subscribe(function(c){i=c,a.send(ve(c,{origin:n}))},function(c){a.removeChild(n),a.send(ve(Nt(n,c),{origin:n}))},function(){a.removeChild(n),a.send(ve(Sn(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[We]=function(){return this},r);return this.children.set(n,u),u},e.prototype.spawnActor=function(t,n){return this.children.set(n,t),t},e.prototype.spawnActivity=function(t){var n=this.machine.options&&this.machine.options.activities?this.machine.options.activities[t.type]:void 0;if(!!n){var r=n(this.state.context,t);this.spawnEffect(t.id,r)}},e.prototype.spawnEffect=function(t,n){var r;this.children.set(t,(r={id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:n||void 0,getSnapshot:function(){},toJSON:function(){return{id:t}}},r[We]=function(){return this},r))},e.prototype.attachDev=function(){var t=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)}Fv(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[We]=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}(),zv=function(e){return W(e)?T(T({},Nr),{name:e}):T(T(T({},Nr),{name:fv()}),e)};function un(e,t){var n=zv(t);return Tv(function(r){return r?r.spawn(e,n.name,n):ao(e,n.name)})}function Di(e,t){var n=new jv(e,t);return n}function Gv(e){if(typeof e=="string"){var t={type:e};return t.toString=function(){return e},t}return e}function cn(e){return T(T({type:Er},e),{toJSON:function(){e.onDone,e.onError;var t=Xr(e,["onDone","onError"]);return T(T({},t),{type:Er,src:Gv(e.src)})}})}var ln="",kr="#",ur="*",ot={},at=function(e){return e[0]===kr},Hv=function(){return{actions:{},guards:{},services:{},activities:{},delays:{}}},Kv=function(){function e(t,n,r,a){var i=this;r===void 0&&(r="context"in t?t.context:void 0);var s;this.config=t,this._context=r,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign(Hv(),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:Ai),this.id=this.config.id||se([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?Pt(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}):ot;var u=0;function c(l){var d,h;l.order=u++;try{for(var f=K(Ui(l)),p=f.next();!p.done;p=f.next()){var g=p.value;c(g)}}catch(m){d={error:m}}finally{try{p&&!p.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===ln}):ln in this.config.on:!1),this.strict=!!this.config.strict,this.onEntry=Pe(this.config.entry||this.config.onEntry).map(function(l){return Vt(l)}),this.onExit=Pe(this.config.exit||this.config.onExit).map(function(l){return Vt(l)}),this.meta=this.config.meta,this.doneData=this.type==="final"?this.config.data:void 0,this.invoke=Pe(this.config.invoke).map(function(l,d){var h,f;if(lt(l)){var p=on(i.id,d);return i.machine.options.services=T((h={},h[p]=l,h),i.machine.options.services),cn({src:p,id:p})}else if(W(l.src)){var p=l.id||on(i.id,d);return cn(T(T({},l),{id:p,src:l.src}))}else if(lt(l.src)||ee(l.src)){var p=l.id||on(i.id,d);return i.machine.options.services=T((f={},f[p]=l.src,f),i.machine.options.services),cn(T(T({id:p},l),{src:p}))}else{var g=l.src;return cn(T(T({id:on(i.id,d)},l),{src:g}))}}),this.activities=Pe(this.config.activities).concat(this.invoke).map(function(l){return oo(l)}),this.transition=this.transition.bind(this),this.tags=Pe(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||Ri(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:Pt(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===ln,r=this.transitions.filter(function(a){var i=a.eventType===t;return n?i:i||a.eventType===ur});return this.__cache.candidates[t]=r,r},e.prototype.getDelayedTransitions=function(){var t=this,n=this.config.after;if(!n)return[];var r=function(i,s){var u=ee(i)?"".concat(t.id,":delay[").concat(s,"]"):i,c=Ev(u,t.id);return t.onEntry.push(zn(c,{delay:i})),t.onExit.push(wv(c)),c},a=_t(n)?n.map(function(i,s){var u=r(i.delay,s);return T(T({},i),{event:u})}):ie(Object.keys(n).map(function(i,s){var u=n[i],c=W(u)?{target:u}:u,l=isNaN(+i)?i:+i,d=r(l,s);return Pe(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 Ne?t.value:Ot(t,this.delimiter);if(W(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,se([],z(ie(s.map(function(c){return r.getStateNode(c).getStateNodes(a[c])}))),!1)),u},e.prototype.handles=function(t){var n=Ii(t);return this.events.includes(n)},e.prototype.resolveState=function(t){var n=t instanceof Ne?t:Ne.create(t),r=Array.from(kt([],this.getStateNodes(n.value)));return new Ne(T(T({},n),{value:this.resolve(n.value),configuration:r,done:wn(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=K(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(w){a={error:w}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(a)throw a.error}}var p=Object.keys(s).map(function(w){return s[w]}),g=ie(p.map(function(w){return w.transitions})),m=p.some(function(w){return w.transitions.length>0});if(!m)return this.next(n,r);var v=ie(p.map(function(w){return w.entrySet})),S=ie(Object.keys(s).map(function(w){return s[w].configuration}));return{transitions:g,entrySet:v,exitSet:ie(p.map(function(w){return w.exitSet})),configuration:S,source:n,actions:ie(Object.keys(s).map(function(w){return s[w].actions}))}},e.prototype._transition=function(t,n,r){return W(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=K(this.getCandidates(s)),h=d.next();!h.done;h=d.next()){var f=h.value,p=f.cond,g=f.in,m=t.context,v=g?W(g)&&at(g)?t.matches(Ot(this.getStateNodeById(g).path,this.delimiter)):no(Ot(g,this.delimiter),ov(this.path.slice(0,-2))(t.value)):!0,S=!1;try{S=!p||ki(this.machine,p,m,n,t)}catch(C){throw new Error("Unable to evaluate guard '".concat(p.name||p.type,"' in transition for event '").concat(s,"' in state node '").concat(this.id,`':
17
+ `).concat(C.message))}if(S&&v){f.target!==void 0&&(c=f.target),u.push.apply(u,se([],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 w=ie(c.map(function(C){return i.getRelativeStateNodes(C,t.historyValue)})),_=!!l.internal,b=[];return _||c.forEach(function(C){b.push.apply(b,se([],z(i.getExternalReentryNodes(C)),!1))}),{transitions:[l],entrySet:b,exitSet:_?[]:[this],configuration:w,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){var u,c,l,d,h=kt([],s?this.getStateNodes(s.value):[this]);try{for(var f=K(t),p=f.next();!p.done;p=f.next()){var g=p.value;(!xt(h,g)||xt(r.entrySet,g.parent))&&r.entrySet.push(g)}}catch(I){u={error:I}}finally{try{p&&!p.done&&(c=f.return)&&c.call(f)}finally{if(u)throw u.error}}try{for(var m=K(h),v=m.next();!v.done;v=m.next()){var g=v.value;(!xt(t,g)||xt(r.exitSet,g.parent))&&r.exitSet.push(g)}}catch(I){l={error:I}}finally{try{v&&!v.done&&(d=m.return)&&d.call(m)}finally{if(l)throw l.error}}var S=ie(r.entrySet.map(function(I){var N=[];if(I.type!=="final")return N;var M=I.parent;if(!M.parent)return N;N.push(an(I.id,I.doneData),an(M.id,I.doneData?An(I.doneData,a,i):void 0));var F=M.parent;return F.type==="parallel"&&Dt(F).every(function(D){return wn(r.configuration,D)})&&N.push(an(F.id)),N}));r.exitSet.sort(function(I,N){return N.order-I.order}),r.entrySet.sort(function(I,N){return I.order-N.order});var w=new Set(r.entrySet),_=new Set(r.exitSet),b=z([ie(Array.from(w).map(function(I){return se(se([],z(I.activities.map(function(N){return _v(N)})),!1),z(I.onEntry),!1)})).concat(S.map(hv)),ie(Array.from(_).map(function(I){return se(se([],z(I.onExit),!1),z(I.activities.map(function(N){return bv(N)})),!1)}))],2),C=b[0],E=b[1],A=st(E.concat(r.actions).concat(C),this.machine.options.actions);if(n){var $=st(ie(se([],z(t),!1).sort(function(I,N){return N.order-I.order}).map(function(I){return I.onExit})),this.machine.options.actions).filter(function(I){return I.type!==ut&&(I.type!==ct||!!I.to&&I.to!==He.Internal)});return A.concat($)}return A},e.prototype.transition=function(t,n,r,a){t===void 0&&(t=this.initialState);var i=ve(n),s;if(t instanceof Ne)s=r===void 0?t:this.resolveState(Ne.from(t,r));else{var u=W(t)?this.resolve(Cn(this.getResolvedPath(t))):this.resolve(t),c=r!=null?r:this.machine.context;s=this.resolveState(Ne.from(u,c))}if(this.strict&&!this.events.includes(i.name)&&!iv(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=kt([],this.getStateNodes(s.value)),h=l.configuration.length?kt(d,l.configuration):d;return l.configuration=se([],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,se([],z(s),!1)),t},e.prototype.resolveTransition=function(t,n,r,a,i){var s,u,c=this;i===void 0&&(i=Bt);var l=t.configuration,d=!n||t.transitions.length>0,h=d?t.configuration:n?n.configuration:[],f=wn(h,this),p=d?xv(this.machine,l):void 0,g=n?n.historyValue?n.historyValue:t.source?this.machine.historyValue(n.value):void 0:void 0,m=this.getActions(new Set(h),f,t,r,i,n),v=n?T({},n.activities):{};try{for(var S=K(m),w=S.next();!w.done;w=S.next()){var _=w.value;_.type===Cr?v[_.activity.id||_.activity.type]=_:_.type===eo&&(v[_.activity.id||_.activity.type]=!1)}}catch(pe){s={error:pe}}finally{try{w&&!w.done&&(u=S.return)&&u.call(S)}finally{if(s)throw s.error}}var b=z(En(this,n,r,i,m,a,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),C=b[0],E=b[1],A=z($i(C,function(pe){return pe.type===ut||pe.type===ct&&pe.to===He.Internal}),2),$=A[0],I=A[1],N=C.filter(function(pe){var xe;return pe.type===Cr&&((xe=pe.activity)===null||xe===void 0?void 0:xe.type)===Er}),M=N.reduce(function(pe,xe){return pe[xe.activity.id]=$v(xe.activity,c.machine,E,i),pe},n?T({},n.children):{}),F=new Ne({value:p||n.value,context:E,_event:i,_sessionid:n?n._sessionid:null,historyValue:p?g?uv(g,p):void 0:n?n.historyValue:void 0,history:!p||t.source?n:void 0,actions:p?I:[],activities:p?v:n?n.activities:{},events:[],configuration:h,transitions:t.transitions,children:M,done:f,tags:_a(h),machine:this}),D=r!==E;F.changed=i.name===to||D;var G=F.history;G&&delete G.history;var de=!f&&(this._transient||l.some(function(pe){return pe._transient}));if(!d&&(!de||i.name===ln))return F;var X=F;if(!f)for(de&&(X=this.resolveRaisedTransition(X,{type:Zg},i,a));$.length;){var At=$.shift();X=this.resolveRaisedTransition(X,At._event,i,a)}var Et=X.changed||(G?!!X.actions.length||D||typeof G.value!=typeof X.value||!Vi(X.value,G.value):void 0);return X.changed=Et,X.history=G,X},e.prototype.getStateNode=function(t){if(at(t))return this.machine.getStateNodeById(t);if(!this.states)throw new Error("Unable to retrieve child state '".concat(t,"' from '").concat(this.id,"'; no child states exist."));var n=this.states[t];if(!n)throw new Error("Child state '".concat(t,"' does not exist on '").concat(this.id,"'"));return n},e.prototype.getStateNodeById=function(t){var n=at(t)?t.slice(kr.length):t;if(n===this.id)return this;var r=this.machine.idMap[n];if(!r)throw new Error("Child state node '#".concat(n,"' does not exist on machine '").concat(this.id,"'"));return r},e.prototype.getStateNodeByPath=function(t){if(typeof t=="string"&&at(t))try{return this.getStateNodeById(t.slice(1))}catch{}for(var n=Tr(t,this.delimiter).slice(),r=this;n.length;){var a=n.shift();if(!a.length)break;r=r.getStateNode(a)}return r},e.prototype.resolve=function(t){var n,r=this;if(!t)return this.initialStateValue||ot;switch(this.type){case"parallel":return Pt(this.initialStateValue,function(i,s){return i?r.getStateNode(s).resolve(t[s]||i):ot});case"compound":if(W(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?Pt(t,function(i,s){return i?r.getStateNode(s).resolve(i):ot}):this.initialStateValue||{};default:return t||ot}},e.prototype.getResolvedPath=function(t){if(at(t)){var n=this.machine.idMap[t.slice(kr.length)];if(!n)throw new Error("Unable to find state node '".concat(t,"'"));return n.path}return Tr(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||ot},function(r){return r.type!=="history"});else if(this.initial!==void 0){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));n=Tn(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:se([],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;W(n.target)?t=at(n.target)?Cn(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(Tn(this))return[this];if(this.type==="compound"&&!this.initial)return[this];var n=vn(this.initialStateValue);return ie(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=W(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?ie(vn(a).map(function(s){return r.getFromRelativePath(s)})):r.initialStateNodes}var i=av(r.path,"states")(t).current;return W(i)?[r.getStateNode(i)]:ie(vn(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=ie(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=K(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,K(d.events)),f=h.next();!f.done;f=h.next()){var p=f.value;s.add("".concat(p))}}catch(g){r={error:g}}finally{try{f&&!f.done&&(a=h.return)&&a.call(h)}finally{if(r)throw r.error}}}}catch(g){t={error:g}}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(!W(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=pv(t.target),a="internal"in t?t.internal:r?r.some(function(c){return W(c)&&c[0]===n.delimiter}):!0,i=this.machine.options.guards,s=this.resolveTarget(r),u=T(T({},t),{actions:st(Pe(t.actions)),cond:Ni(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=ur,u=i[s],c=u===void 0?[]:u,l=Xr(i,[typeof s=="symbol"?s:s+""]);a=ie(Object.keys(l).map(function(w){var _=rt(w,l[w]);return _}).concat(rt(ur,c)))}var d=this.config.always?rt("",this.config.always):[],h=this.config.onDone?rt(String(an(this.id)),this.config.onDone):[],f=ie(this.invoke.map(function(w){var _=[];return w.onDone&&_.push.apply(_,se([],z(rt(String(Sn(w.id)),w.onDone)),!1)),w.onError&&_.push.apply(_,se([],z(rt(String(Nt(w.id)),w.onError)),!1)),_})),p=this.after,g=ie(se(se(se(se([],z(h),!1),z(f),!1),z(a),!1),z(d),!1).map(function(w){return Pe(w).map(function(_){return r.formatTransition(_)})}));try{for(var m=K(p),v=m.next();!v.done;v=m.next()){var S=v.value;g.push(S)}}catch(w){t={error:w}}finally{try{v&&!v.done&&(n=m.return)&&n.call(m)}finally{if(t)throw t.error}}return g},e}(),Ca=!1;function Kt(e,t){return!Ei&&!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 Kv(e,t)}var Ie=Av,so=yv,qv=Iv,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(l){for(var s,c=1,d=arguments.length;c<d;c++){s=arguments[c];for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&(l[p]=s[p])}return l},e.__assign.apply(this,arguments)};function t(i,l){var s={};for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&l.indexOf(c)<0&&(s[c]=i[c]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,c=Object.getOwnPropertySymbols(i);d<c.length;d++)l.indexOf(c[d])<0&&Object.prototype.propertyIsEnumerable.call(i,c[d])&&(s[c[d]]=i[c[d]]);return s}function o(i){var l=typeof Symbol=="function"&&Symbol.iterator,s=l&&i[l],c=0;if(s)return s.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(l?"Object is not iterable.":"Symbol.iterator is not defined.")}function n(i,l){var s=typeof Symbol=="function"&&i[Symbol.iterator];if(!s)return i;var c=s.call(i),d,p=[],m;try{for(;(l===void 0||l-- >0)&&!(d=c.next()).done;)p.push(d.value)}catch(f){m={error:f}}finally{try{d&&!d.done&&(s=c.return)&&s.call(c)}finally{if(m)throw m.error}}return p}function a(i,l,s){if(s||arguments.length===2)for(var c=0,d=l.length,p;c<d;c++)(p||!(c in l))&&(p||(p=Array.prototype.slice.call(l,0,c)),p[c]=l[c]);return i.concat(p||Array.prototype.slice.call(l))}e.__read=n,e.__rest=t,e.__spreadArray=a,e.__values=o})(fr);var mr={};(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={}))})(mr);var pe={};Object.defineProperty(pe,"__esModule",{value:!0});var ue=mr,oh=ue.ActionTypes.Start,nh=ue.ActionTypes.Stop,rh=ue.ActionTypes.Raise,ah=ue.ActionTypes.Send,ih=ue.ActionTypes.Cancel,lh=ue.ActionTypes.NullEvent,sh=ue.ActionTypes.Assign,ch=ue.ActionTypes.After,dh=ue.ActionTypes.DoneState,ph=ue.ActionTypes.Log,fh=ue.ActionTypes.Init,mh=ue.ActionTypes.Invoke,uh=ue.ActionTypes.ErrorExecution,yh=ue.ActionTypes.ErrorPlatform,gh=ue.ActionTypes.ErrorCustom,bh=ue.ActionTypes.Update,hh=ue.ActionTypes.Choose,vh=ue.ActionTypes.Pure;pe.after=ch;pe.assign=sh;pe.cancel=ih;pe.choose=hh;pe.doneState=dh;pe.error=gh;pe.errorExecution=uh;pe.errorPlatform=yh;pe.init=fh;pe.invoke=mh;pe.log=ph;pe.nullEvent=lh;pe.pure=vh;pe.raise=rh;pe.send=ah;pe.start=oh;pe.stop=nh;pe.update=bh;var ji={},_t={};Object.defineProperty(_t,"__esModule",{value:!0});var wh=".",_h={},kh="xstate.guard",Sh="";_t.DEFAULT_GUARD_TYPE=kh;_t.EMPTY_ACTIVITY_MAP=_h;_t.STATE_DELIMITER=wh;_t.TARGETLESS_KEY=Sh;var Ho={};Object.defineProperty(Ho,"__esModule",{value:!0});var xh=!0;Ho.IS_PRODUCTION=xh;(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=fr,o=_t,n=Ho,a;function i(h){return Object.keys(h)}function l(h,T,U){U===void 0&&(U=o.STATE_DELIMITER);var P=m(h,U),B=m(T,U);return fe(B)?fe(P)?B===P:!1:fe(P)?P in B:Object.keys(P).every(function(V){return V in B?l(P[V],B[V]):!1})}function s(h){try{return fe(h)||typeof h=="number"?"".concat(h):h.type}catch{throw new Error("Events must be strings or objects with a string event.type property.")}}function c(h){try{return fe(h)||typeof h=="number"?"".concat(h):K(h)?h.name:h.type}catch{throw new Error("Actions must be strings or objects with a string action.type property.")}}function d(h,T){try{return ce(h)?h:h.toString().split(T)}catch{throw new Error("'".concat(h,"' is not a valid state path."))}}function p(h){return typeof h=="object"&&"value"in h&&"context"in h&&"event"in h&&"_event"in h}function m(h,T){if(p(h))return h.value;if(ce(h))return f(h);if(typeof h!="string")return h;var U=d(h,T);return f(U)}function f(h){if(h.length===1)return h[0];for(var T={},U=T,P=0;P<h.length-1;P++)P===h.length-2?U[h[P]]=h[P+1]:(U[h[P]]={},U=U[h[P]]);return T}function u(h,T){for(var U={},P=Object.keys(h),B=0;B<P.length;B++){var V=P[B];U[V]=T(h[V],V,h,B)}return U}function b(h,T,U){var P,B,V={};try{for(var j=t.__values(Object.keys(h)),M=j.next();!M.done;M=j.next()){var Z=M.value,re=h[Z];!U(re)||(V[Z]=T(re,Z,h))}}catch(_e){P={error:_e}}finally{try{M&&!M.done&&(B=j.return)&&B.call(j)}finally{if(P)throw P.error}}return V}var y=function(h){return function(T){var U,P,B=T;try{for(var V=t.__values(h),j=V.next();!j.done;j=V.next()){var M=j.value;B=B[M]}}catch(Z){U={error:Z}}finally{try{j&&!j.done&&(P=V.return)&&P.call(V)}finally{if(U)throw U.error}}return B}};function g(h,T){return function(U){var P,B,V=U;try{for(var j=t.__values(h),M=j.next();!M.done;M=j.next()){var Z=M.value;V=V[T][Z]}}catch(re){P={error:re}}finally{try{M&&!M.done&&(B=j.return)&&B.call(j)}finally{if(P)throw P.error}}return V}}function v(h){if(!h)return[[]];if(fe(h))return[[h]];var T=_(Object.keys(h).map(function(U){var P=h[U];return typeof P!="string"&&(!P||!Object.keys(P).length)?[[U]]:v(h[U]).map(function(B){return[U].concat(B)})}));return T}function w(h){var T,U,P={};if(h&&h.length===1&&h[0].length===1)return h[0][0];try{for(var B=t.__values(h),V=B.next();!V.done;V=B.next())for(var j=V.value,M=P,Z=0;Z<j.length;Z++){var re=j[Z];if(Z===j.length-2){M[re]=j[Z+1];break}M[re]=M[re]||{},M=M[re]}}catch(_e){T={error:_e}}finally{try{V&&!V.done&&(U=B.return)&&U.call(B)}finally{if(T)throw T.error}}return P}function _(h){var T;return(T=[]).concat.apply(T,t.__spreadArray([],t.__read(h),!1))}function k(h){return ce(h)?h:[h]}function x(h){return h===void 0?[]:k(h)}function A(h,T,U){var P,B;if(K(h))return h(T,U.data);var V={};try{for(var j=t.__values(Object.keys(h)),M=j.next();!M.done;M=j.next()){var Z=M.value,re=h[Z];K(re)?V[Z]=re(T,U.data):V[Z]=re}}catch(_e){P={error:_e}}finally{try{M&&!M.done&&(B=j.return)&&B.call(j)}finally{if(P)throw P.error}}return V}function S(h){return/^(done|error)\./.test(h)}function C(h){return!!(h instanceof Promise||h!==null&&(K(h)||typeof h=="object")&&K(h.then))}function $(h){return h!==null&&typeof h=="object"&&"transition"in h&&typeof h.transition=="function"}function N(h,T){var U,P,B=t.__read([[],[]],2),V=B[0],j=B[1];try{for(var M=t.__values(h),Z=M.next();!Z.done;Z=M.next()){var re=Z.value;T(re)?V.push(re):j.push(re)}}catch(_e){U={error:_e}}finally{try{Z&&!Z.done&&(P=M.return)&&P.call(M)}finally{if(U)throw U.error}}return[V,j]}function R(h,T){return u(h.states,function(U,P){if(!!U){var B=(fe(T)?void 0:T[P])||(U?U.current:void 0);if(!!B)return{current:B,states:R(U,B)}}})}function D(h,T){return{current:T,states:R(h,T)}}function F(h,T,U,P){n.IS_PRODUCTION||e.warn(!!h,"Attempting to update undefined context");var B=h&&U.reduce(function(V,j){var M,Z,re=j.assignment,_e={state:P,action:j,_event:T},tt={};if(K(re))tt=re(V,T.data,_e);else try{for(var te=t.__values(Object.keys(re)),oe=te.next();!oe.done;oe=te.next()){var ot=oe.value,Ct=re[ot];tt[ot]=K(Ct)?Ct(V,T.data,_e):Ct}}catch(Nl){M={error:Nl}}finally{try{oe&&!oe.done&&(Z=te.return)&&Z.call(te)}finally{if(M)throw M.error}}return Object.assign({},V,tt)},h);return B}e.warn=function(){},n.IS_PRODUCTION||(e.warn=function(h,T){var U=h instanceof Error?h:void 0;if(!(!U&&h)&&console!==void 0){var P=["Warning: ".concat(T)];U&&P.push(U),console.warn.apply(console,P)}});function ce(h){return Array.isArray(h)}function K(h){return typeof h=="function"}function fe(h){return typeof h=="string"}function St(h,T){if(!!h)return fe(h)?{type:o.DEFAULT_GUARD_TYPE,name:h,predicate:T?T[h]:void 0}:K(h)?{type:o.DEFAULT_GUARD_TYPE,name:h.name,predicate:h}:h}function ye(h){try{return"subscribe"in h&&K(h.subscribe)}catch{return!1}}var $e=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),nn=(a={},a[$e]=function(){return this},a[Symbol.observable]=function(){return this},a);function Zt(h){return!!h&&"__xstatenode"in h}function rn(h){return!!h&&typeof h.send=="function"}var an=function(){var h=0;return function(){return h++,h.toString(16)}}();function Xt(h,T){return fe(h)||typeof h=="number"?t.__assign({type:h},T):h}function ln(h,T){if(!fe(h)&&"$$type"in h&&h.$$type==="scxml")return h;var U=Xt(h);return t.__assign({name:U.type,data:U,$$type:"scxml",type:"external"},T)}function Qt(h,T){var U=k(T).map(function(P){return typeof P=="undefined"||typeof P=="string"||Zt(P)?{target:P,event:h}:t.__assign(t.__assign({},P),{event:h})});return U}function eo(h){if(!(h===void 0||h===o.TARGETLESS_KEY))return x(h)}function xt(h,T,U){if(!n.IS_PRODUCTION){var P=h.stack?" Stacktrace was '".concat(h.stack,"'"):"";if(h===T)console.error("Missing onError handler for invocation '".concat(U,"', error was '").concat(h,"'.").concat(P));else{var B=T.stack?" Stacktrace was '".concat(T.stack,"'"):"";console.error("Missing onError handler and/or unhandled exception/promise rejection for invocation '".concat(U,"'. ")+"Original error: '".concat(h,"'. ").concat(P," Current error is '").concat(T,"'.").concat(B))}}}function sn(h,T,U,P,B){var V=h.options.guards,j={state:B,cond:T,_event:P};if(T.type===o.DEFAULT_GUARD_TYPE)return((V==null?void 0:V[T.name])||T.predicate)(U,P.data,j);var M=V==null?void 0:V[T.type];if(!M)throw new Error("Guard '".concat(T.type,"' is not implemented on machine '").concat(h.id,"'."));return M(U,P.data,j)}function I(h){return typeof h=="string"?{type:h}:h}function ve(h,T,U){if(typeof h=="object")return h;var P=function(){};return{next:h,error:T||P,complete:U||P}}function to(h,T){return"".concat(h,":invocation[").concat(T,"]")}e.createInvokeId=to,e.evaluateGuard=sn,e.flatten=_,e.getActionType=c,e.getEventType=s,e.interopSymbols=nn,e.isActor=rn,e.isArray=ce,e.isBehavior=$,e.isBuiltInEvent=S,e.isFunction=K,e.isMachine=Zt,e.isObservable=ye,e.isPromiseLike=C,e.isStateLike=p,e.isString=fe,e.keys=i,e.mapContext=A,e.mapFilterValues=b,e.mapValues=u,e.matchesState=l,e.nestedPath=g,e.normalizeTarget=eo,e.partition=N,e.path=y,e.pathToStateValue=f,e.pathsToStateValue=w,e.reportUnhandledExceptionOnInvocation=xt,e.symbolObservable=$e,e.toArray=x,e.toArrayStrict=k,e.toEventObject=Xt,e.toGuard=St,e.toInvokeSource=I,e.toObserver=ve,e.toSCXMLEvent=ln,e.toStatePath=d,e.toStatePaths=v,e.toStateValue=m,e.toTransitionConfigArray=Qt,e.uniqueId=an,e.updateContext=F,e.updateHistoryStates=R,e.updateHistoryValue=D})(ji);Object.defineProperty(H,"__esModule",{value:!0});var X=fr,Ae=mr,me=pe,G=ji,Ch=Ho,Ah=G.toSCXMLEvent({type:me.init});function Bn(e,t){return t&&t[e]||void 0}function Ko(e,t){var o;if(G.isString(e)||typeof e=="number"){var n=Bn(e,t);G.isFunction(n)?o={type:e,exec:n}:n?o=n:o={type:e,exec:void 0}}else if(G.isFunction(e))o={type:e.name||e.toString(),exec:e};else{var n=Bn(e.type,t);if(G.isFunction(n))o=X.__assign(X.__assign({},e),{exec:n});else if(n){var a=n.type||e.type;o=X.__assign(X.__assign(X.__assign({},n),e),{type:a})}else o=e}return o}var Vn=function(e,t){if(!e)return[];var o=G.isArray(e)?e:[e];return o.map(function(n){return Ko(n,t)})};function ur(e){var t=Ko(e);return X.__assign(X.__assign({id:G.isString(e)?e:t.id},t),{type:t.type})}function Eh(e){return G.isString(e)?{type:me.raise,event:e}:kt(e,{to:Ae.SpecialTargets.Internal})}function Li(e){return{type:me.raise,_event:G.toSCXMLEvent(e.event)}}function kt(e,t){return{to:t?t.to:void 0,type:me.send,event:G.isFunction(e)?e:G.toEventObject(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:G.isFunction(e)?e.name:G.getEventType(e)}}function Gi(e,t,o,n){var a={_event:o},i=G.toSCXMLEvent(G.isFunction(e.event)?e.event(t,o.data,a):e.event),l;if(G.isString(e.delay)){var s=n&&n[e.delay];l=G.isFunction(s)?s(t,o.data,a):s}else l=G.isFunction(e.delay)?e.delay(t,o.data,a):e.delay;var c=G.isFunction(e.to)?e.to(t,o.data,a):e.to;return X.__assign(X.__assign({},e),{to:c,_event:i,event:i.data,delay:l})}function yr(e,t){return kt(e,X.__assign(X.__assign({},t),{to:Ae.SpecialTargets.Parent}))}function Ih(e,t,o){return kt(t,X.__assign(X.__assign({},o),{to:e}))}function $h(){return yr(me.update)}function Th(e,t){return kt(e,X.__assign(X.__assign({},t),{to:function(o,n,a){var i=a._event;return i.origin}}))}var Ph=function(e,t){return{context:e,event:t}};function Nh(e,t){return e===void 0&&(e=Ph),{type:me.log,label:t,expr:e}}var qi=function(e,t,o){return X.__assign(X.__assign({},e),{value:G.isString(e.expr)?e.expr:e.expr(t,o.data,{_event:o})})},Uh=function(e){return{type:me.cancel,sendId:e}};function zh(e){var t=ur(e);return{type:Ae.ActionTypes.Start,activity:t,exec:void 0}}function Oh(e){var t=G.isFunction(e)?e:ur(e);return{type:Ae.ActionTypes.Stop,activity:t,exec:void 0}}function Hi(e,t,o){var n=G.isFunction(e.activity)?e.activity(t,o.data):e.activity,a=typeof n=="string"?{id:n}:n,i={type:Ae.ActionTypes.Stop,activity:a};return i}var Rh=function(e){return{type:me.assign,assignment:e}};function Bh(e){return typeof e=="object"&&"type"in e}function Vh(e,t){var o=t?"#".concat(t):"";return"".concat(Ae.ActionTypes.After,"(").concat(e,")").concat(o)}function Dh(e,t){var o="".concat(Ae.ActionTypes.DoneState,".").concat(e),n={type:o,data:t};return n.toString=function(){return o},n}function Mh(e,t){var o="".concat(Ae.ActionTypes.DoneInvoke,".").concat(e),n={type:o,data:t};return n.toString=function(){return o},n}function Fh(e,t){var o="".concat(Ae.ActionTypes.ErrorPlatform,".").concat(e),n={type:o,data:t};return n.toString=function(){return o},n}function jh(e){return{type:Ae.ActionTypes.Pure,get:e}}function Lh(e,t){return kt(function(o,n){return n},X.__assign(X.__assign({},t),{to:e}))}function Gh(e,t){return yr(function(o,n,a){return{type:me.error,data:G.isFunction(e)?e(o,n,a):e}},X.__assign(X.__assign({},t),{to:Ae.SpecialTargets.Parent}))}function qh(e){return{type:Ae.ActionTypes.Choose,conds:e}}function Dn(e,t,o,n,a,i){i===void 0&&(i=!1);var l=X.__read(i?[[],a]:G.partition(a,function(f){return f.type===me.assign}),2),s=l[0],c=l[1],d=s.length?G.updateContext(o,n,s,t):o,p=i?[o]:void 0,m=G.flatten(c.map(function(f){var u;switch(f.type){case me.raise:return Li(f);case me.send:var b=Gi(f,d,n,e.options.delays);return Ch.IS_PRODUCTION||G.warn(!G.isString(f.delay)||typeof b.delay=="number","No delay reference for delay expression '".concat(f.delay,"' was found on machine '").concat(e.id,"'")),b;case me.log:return qi(f,d,n);case me.choose:{var y=f,g=(u=y.conds.find(function(N){var R=G.toGuard(N.cond,e.options.guards);return!R||G.evaluateGuard(e,R,d,n,t)}))===null||u===void 0?void 0:u.actions;if(!g)return[];var v=X.__read(Dn(e,t,d,n,Vn(G.toArray(g),e.options.actions),i),2),w=v[0],_=v[1];return d=_,p==null||p.push(d),w}case me.pure:{var g=f.get(d,n.data);if(!g)return[];var k=X.__read(Dn(e,t,d,n,Vn(G.toArray(g),e.options.actions),i),2),x=k[0],A=k[1];return d=A,p==null||p.push(d),x}case me.stop:return Hi(f,d,n);case me.assign:{d=G.updateContext(d,n,[f],t),p==null||p.push(d);break}default:var S=Ko(f,e.options.actions),C=S.exec;if(C&&p){var $=p.length-1;S=X.__assign(X.__assign({},S),{exec:function(N){for(var R=[],D=1;D<arguments.length;D++)R[D-1]=arguments[D];C.apply(void 0,X.__spreadArray([p[$]],X.__read(R),!1))}})}return S}}).filter(function(f){return!!f}));return[m,d]}H.actionTypes=me;H.after=Vh;var ie=H.assign=Rh;H.cancel=Uh;var Hh=H.choose=qh;H.done=Dh;H.doneInvoke=Mh;H.error=Fh;H.escalate=Gh;H.forwardTo=Lh;H.getActionFunction=Bn;H.initEvent=Ah;H.isActionObject=Bh;H.log=Nh;H.pure=jh;H.raise=Eh;H.resolveActions=Dn;H.resolveLog=qi;H.resolveRaise=Li;H.resolveSend=Gi;H.resolveStop=Hi;H.respond=Th;H.send=kt;H.sendParent=yr;H.sendTo=Ih;H.sendUpdate=$h;H.start=zh;var Kh=H.stop=Oh;H.toActionObject=Ko;H.toActionObjects=Vn;H.toActivityDefinition=ur;var po=function(e){return Kh(e)},Wh=ie({attributeToVerify:function(e){}}),Yh=ie({challengeName:function(e){}}),Jh=ie({requiredAttributes:function(e){}}),gr=ie({remoteError:function(e){return""}}),br=ie({formValues:function(e){return{}}}),hr=ie({touched:function(e){return{}}}),Zh=ie({unverifiedAttributes:function(e){}}),Xh=ie({username:function(e){}}),vr=ie({validationError:function(e){return{}}}),Qh=ie({challengeName:function(e,t){var o;return(o=t.data)===null||o===void 0?void 0:o.challengeName}}),ev=ie({requiredAttributes:function(e,t){var o,n;return(n=(o=t.data)===null||o===void 0?void 0:o.challengeParam)===null||n===void 0?void 0:n.requiredAttributes}}),tv=ie({redirectIntent:function(e){return"confirmPasswordReset"}}),ov=ie({redirectIntent:function(e){return"confirmSignUp"}}),Ki=ie({authAttributes:function(e,t){var o,n,a=e.loginMechanisms[0];return{username:(o=e.formValues[a])!==null&&o!==void 0?o:e.formValues.username,password:(n=e.formValues)===null||n===void 0?void 0:n.password}}}),wr=ie({validationError:function(e,t){return t.data}}),_r=ie({remoteError:function(e,t){var o;return t.data.name==="NoUserPoolError"?"Configuration error (see console) \u2013 please contact the administrator":((o=t.data)===null||o===void 0?void 0:o.message)||t.data}}),nv=ie({unverifiedAttributes:function(e,t){return t.data.unverified}}),Wi=ie({user:function(e,t){return t.data.user||t.data}}),rv=ie({username:function(e,t){var o=e.formValues,n=o.username,a=o.country_code;return a&&(n="".concat(a).concat(n)),n}}),av=ie({codeDeliveryDetails:function(e,t){return t.data.codeDeliveryDetails}}),iv=ie({authAttributes:function(e,t){return{username:e.formValues.username}}}),kr=ie({formValues:function(e,t){var o,n=t.data,a=n.name,i=n.value;return z(z({},e.formValues),((o={})[a]=i,o))}}),Sr=ie({formValues:function(e,t){return z(z({},e.formValues),t.data)}}),xr=ie({touched:function(e,t){var o,n=t.data.name;return z(z({},e.touched),((o={})["".concat(n)]=!0,o))}}),Yi=ie({formValues:function(e,t){var o,n,a=e.loginMechanisms[0],i=a===void 0?"username":a;if(!e.formValues.phone_number&&i!=="phone_number")return e.formValues;var l=e.formValues,s=e.country_code,c=l.phone_number?"phone_number":"username",d="".concat((n=l.country_code)!==null&&n!==void 0?n:s).concat(l[c]).replace(/[^A-Z0-9+]/gi,""),p=z(z({},l),((o={})[c]=d,o));return delete p.country_code,p}}),lv=Pe,sv=Wn,cv=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,dv=/^\w*$/;function pv(e,t){if(lv(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||sv(e)?!0:dv.test(e)||!cv.test(e)||t!=null&&e in Object(t)}var Cr=pv,Ji=Xn,fv="Expected a function";function Ar(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(fv);var o=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=o.cache;if(i.has(a))return i.get(a);var l=e.apply(this,n);return o.cache=i.set(a,l)||i,l};return o.cache=new(Ar.Cache||Ji),o}Ar.Cache=Ji;var mv=Ar,uv=mv,yv=500;function gv(e){var t=uv(e,function(n){return o.size===yv&&o.clear(),n}),o=t.cache;return t}var bv=gv,hv=bv,vv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wv=/\\(\\)?/g,_v=hv(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(vv,function(o,n,a,i){t.push(a?i.replace(wv,"$1"):n||o)}),t}),kv=_v,Ia=Ft,Sv=ni,xv=Pe,Cv=Wn,Av=1/0,$a=Ia?Ia.prototype:void 0,Ta=$a?$a.toString:void 0;function Zi(e){if(typeof e=="string")return e;if(xv(e))return Sv(e,Zi)+"";if(Cv(e))return Ta?Ta.call(e):"";var t=e+"";return t=="0"&&1/e==-Av?"-0":t}var Ev=Zi,Iv=Ev;function $v(e){return e==null?"":Iv(e)}var Tv=$v,Pv=Pe,Nv=Cr,Uv=kv,zv=Tv;function Ov(e,t){return Pv(e)?e:Nv(e,t)?[e]:Uv(zv(e))}var Wo=Ov,Rv=Wn,Bv=1/0;function Vv(e){if(typeof e=="string"||Rv(e))return e;var t=e+"";return t=="0"&&1/e==-Bv?"-0":t}var Wt=Vv,Dv=Wo,Mv=Wt;function Fv(e,t){t=Dv(t,e);for(var o=0,n=t.length;e!=null&&o<n;)e=e[Mv(t[o++])];return o&&o==n?e:void 0}var Er=Fv,jv=Er;function Lv(e,t,o){var n=e==null?void 0:jv(e,t);return n===void 0?o:n}var Xi=Lv,Ke=Xi,Gv=li,qv=Ht,Hv=Uo,Kv=Pe,Wv=jt,Yv=Xe.exports,Jv=Ro,Zv=Oo,Xv="[object Map]",Qv="[object Set]",ew=Object.prototype,tw=ew.hasOwnProperty;function ow(e){if(e==null)return!0;if(Wv(e)&&(Kv(e)||typeof e=="string"||typeof e.splice=="function"||Yv(e)||Zv(e)||Hv(e)))return!e.length;var t=qv(e);if(t==Xv||t==Qv)return!e.size;if(Jv(e))return!Gv(e).length;for(var o in e)if(tw.call(e,o))return!1;return!0}var nw=ow,Mn=nw,rw=Qn,aw=Lt;function iw(e,t,o){(o!==void 0&&!aw(e[t],o)||o===void 0&&!(t in e))&&rw(e,t,o)}var Qi=iw;function lw(e){return function(t,o,n){for(var a=-1,i=Object(t),l=n(t),s=l.length;s--;){var c=l[e?s:++a];if(o(i[c],c,i)===!1)break}return t}}var sw=lw,cw=sw,dw=cw(),pw=dw,fw=jt,mw=Ge;function uw(e){return mw(e)&&fw(e)}var yw=uw,gw=ut,bw=or,hw=Ge,vw="[object Object]",ww=Function.prototype,_w=Object.prototype,el=ww.toString,kw=_w.hasOwnProperty,Sw=el.call(Object);function xw(e){if(!hw(e)||gw(e)!=vw)return!1;var t=bw(e);if(t===null)return!0;var o=kw.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&el.call(o)==Sw}var Cw=xw;function Aw(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var tl=Aw,Ew=Gt,Iw=qt;function $w(e){return Ew(e,Iw(e))}var Tw=$w,Pa=Qi,Pw=_o.exports,Nw=_i,Uw=fi,zw=ki,Na=Uo,Ua=Pe,Ow=yw,Rw=Xe.exports,Bw=Hn,Vw=Re,Dw=Cw,Mw=Oo,za=tl,Fw=Tw;function jw(e,t,o,n,a,i,l){var s=za(e,o),c=za(t,o),d=l.get(c);if(d){Pa(e,o,d);return}var p=i?i(s,c,o+"",e,t,l):void 0,m=p===void 0;if(m){var f=Ua(c),u=!f&&Rw(c),b=!f&&!u&&Mw(c);p=c,f||u||b?Ua(s)?p=s:Ow(s)?p=Uw(s):u?(m=!1,p=Pw(c,!0)):b?(m=!1,p=Nw(c,!0)):p=[]:Dw(c)||Na(c)?(p=s,Na(s)?p=Fw(s):(!Vw(s)||Bw(s))&&(p=zw(c))):m=!1}m&&(l.set(c,p),a(p,c,n,i,l),l.delete(c)),Pa(e,o,p)}var Lw=jw,Gw=jo,qw=Qi,Hw=pw,Kw=Lw,Ww=Re,Yw=qt,Jw=tl;function ol(e,t,o,n,a){e!==t&&Hw(t,function(i,l){if(a||(a=new Gw),Ww(i))Kw(e,t,l,o,ol,n,a);else{var s=n?n(Jw(e,l),i,l+"",e,t,a):void 0;s===void 0&&(s=i),qw(e,l,s)}},Yw)}var Zw=ol;function Xw(e){return e}var Ir=Xw;function Qw(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)}var e0=Qw,t0=e0,Oa=Math.max;function o0(e,t,o){return t=Oa(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=Oa(n.length-t,0),l=Array(i);++a<i;)l[a]=n[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=n[a];return s[t]=o(l),t0(e,this,s)}}var n0=o0;function r0(e){return function(){return e}}var a0=r0,i0=a0,Ra=pi,l0=Ir,s0=Ra?function(e,t){return Ra(e,"toString",{configurable:!0,enumerable:!1,value:i0(t),writable:!0})}:l0,c0=s0,d0=800,p0=16,f0=Date.now;function m0(e){var t=0,o=0;return function(){var n=f0(),a=p0-(n-o);if(o=n,a>0){if(++t>=d0)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var u0=m0,y0=c0,g0=u0,b0=g0(y0),h0=b0,v0=Ir,w0=n0,_0=h0;function k0(e,t){return _0(w0(e,t,v0),e+"")}var S0=k0,x0=Lt,C0=jt,A0=zo,E0=Re;function I0(e,t,o){if(!E0(o))return!1;var n=typeof t;return(n=="number"?C0(o)&&A0(t,o.length):n=="string"&&t in o)?x0(o[t],e):!1}var $0=I0,T0=S0,P0=$0;function N0(e){return T0(function(t,o){var n=-1,a=o.length,i=a>1?o[a-1]:void 0,l=a>2?o[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,l&&P0(o[0],o[1],l)&&(i=a<3?void 0:i,a=1),t=Object(t);++n<a;){var s=o[n];s&&e(t,s,n,i)}return t})}var U0=N0,z0=Zw,O0=U0,R0=O0(function(e,t,o){z0(e,t,o)}),B0=R0,$r=function(e,t,o,n){return Y(void 0,void 0,void 0,function(){var a,i;return J(this,function(l){switch(l.label){case 0:return[4,Promise.all(n.map(function(s){return s(e,t,o)}))];case 1:return a=l.sent(),i=B0.apply(void 0,Ue([{}],a,!1)),Mn(i)?[2,Promise.resolve()]:[2,Promise.reject(i)]}})})},Io={getAmplifyConfig:function(){return Y(this,void 0,void 0,function(){return J(this,function(e){return[2,se.Amplify.configure()]})})},getCurrentUser:function(){return Y(this,void 0,void 0,function(){return J(this,function(e){return[2,se.Auth.currentAuthenticatedUser()]})})},handleSignUp:function(e){return Y(this,void 0,void 0,function(){return J(this,function(t){return[2,se.Auth.signUp(e)]})})},handleSignIn:function(e){var t=e.username,o=e.password;return Y(this,void 0,void 0,function(){return J(this,function(n){return[2,se.Auth.signIn(t,o)]})})},handleConfirmSignIn:function(e){var t=e.user,o=e.code,n=e.mfaType;return Y(this,void 0,void 0,function(){return J(this,function(a){return[2,se.Auth.confirmSignIn(t,o,n)]})})},handleConfirmSignUp:function(e){var t=e.username,o=e.code;return Y(this,void 0,void 0,function(){return J(this,function(n){switch(n.label){case 0:return[4,se.Auth.confirmSignUp(t,o)];case 1:return[2,n.sent()]}})})},handleForgotPasswordSubmit:function(e){var t=e.username,o=e.code,n=e.password;return Y(this,void 0,void 0,function(){return J(this,function(a){return[2,se.Auth.forgotPasswordSubmit(t,o,n)]})})},handleForgotPassword:function(e){return Y(this,void 0,void 0,function(){return J(this,function(t){return[2,se.Auth.forgotPassword(e)]})})},validateCustomSignUp:function(e,t){return Y(this,void 0,void 0,function(){return J(this,function(o){return[2]})})},validateFormPassword:function(e,t,o){return Y(this,void 0,void 0,function(){var n,a,i,l;return J(this,function(s){return n=e.password,t.password&&o?(a=[],i=+(o==null?void 0:o.passwordPolicyMinLength),n.length<i&&a.push("Password must have at least ".concat(i," characters")),(l=o==null?void 0:o.passwordPolicyCharacters)==null||l.forEach(function(c){switch(c){case"REQUIRES_LOWERCASE":/[a-z]/.test(n)||a.push("Password must have lower case letters");break;case"REQUIRES_UPPERCASE":/[A-Z]/.test(n)||a.push("Password must have upper case letters");break;case"REQUIRES_NUMBERS":/[0-9]/.test(n)||a.push("Password must have numbers");break;case"REQUIRES_SYMBOLS":Ud(n)||a.push("Password must have special characters")}}),[2,a.length!==0?{password:a}:null]):[2,null]})})},validateConfirmPassword:function(e,t){return Y(this,void 0,void 0,function(){var o,n,a,i;return J(this,function(l){return o=e.password,n=e.confirm_password,a=t.confirm_password,i=t.password,o||n?(o||n)&&o!==n&&(a&&i||(o==null?void 0:o.length)>=6&&(n==null?void 0:n.length)>=6)?[2,{confirm_password:"Your passwords must match"}]:[2]:[2,null]})})},validatePreferredUsername:function(e,t){return Y(this,void 0,void 0,function(){return J(this,function(o){return[2]})})}};function V0(e){var t=e.services;return Kt({initial:"init",id:"signInActor",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(o){return{user:o.user}}},rejected:{type:"final",data:function(o,n){return{intent:o.redirectIntent,authAttributes:o.authAttributes}}}}},{actions:{clearAttributeToVerify:Wh,clearChallengeName:Yh,clearRequiredAttributes:Jh,clearError:gr,clearFormValues:br,clearTouched:hr,clearUnverifiedAttributes:Zh,clearValidationError:vr,handleInput:kr,handleSubmit:Sr,handleBlur:xr,parsePhoneNumber:Yi,setChallengeName:Qh,setConfirmResetPasswordIntent:tv,setConfirmSignUpIntent:ov,setRequiredAttributes:ev,setCredentials:Ki,setFieldErrors:wr,setRemoteError:_r,setUnverifiedAttributes:nv,setUser:Wi,setUsernameAuthAttributes:iv,sendUpdate:pr()},guards:{shouldConfirmSignIn:function(o,n){var a=Ke(n,"data.challengeName");return[Le.SMS_MFA,Le.SOFTWARE_TOKEN_MFA].includes(a)},shouldAutoSignIn:function(o){return(o==null?void 0:o.intent)==="autoSignIn"},shouldRedirectToConfirmSignUp:function(o,n){return n.data.code==="UserNotConfirmedException"},shouldRedirectToConfirmResetPassword:function(o,n){return n.data.code==="PasswordResetRequiredException"},shouldSetupTOTP:function(o,n){return Ke(n,"data.challengeName")===Le.MFA_SETUP},shouldForceChangePassword:function(o,n){return Ke(n,"data.challengeName")===Le.NEW_PASSWORD_REQUIRED},shouldRequestVerification:function(o,n){var a=n.data,i=a.unverified,l=a.verified;return Mn(l)&&!Mn(i)}},services:{signIn:function(o){return Y(this,void 0,void 0,function(){var n,a,i,l,s,c,d;return J(this,function(p){switch(p.label){case 0:return n=o.authAttributes,a=n===void 0?{}:n,i=o.formValues,l=i===void 0?{}:i,s=z(z({},a),l),c=s.username,d=s.password,[4,t.handleSignIn({username:c,password:d})];case 1:return[2,p.sent()]}})})},confirmSignIn:function(o,n){return Y(this,void 0,void 0,function(){var a,i,l,s;return J(this,function(c){switch(c.label){case 0:return a=o.challengeName,i=o.user,l=o.formValues.confirmation_code,a!==Le.SMS_MFA&&a!==Le.SOFTWARE_TOKEN_MFA||(s=a),[4,t.handleConfirmSignIn({user:i,code:l,mfaType:s})];case 1:return c.sent(),[4,se.Auth.currentAuthenticatedUser()];case 2:return[2,c.sent()]}})})},forceNewPassword:function(o,n){return Y(this,void 0,void 0,function(){var a,i,l,s,c,d,p,m,f;return J(this,function(u){switch(u.label){case 0:a=o.user,i=o.formValues,l=i.password,s=i.phone_number,c=i.country_code,d=si(i,["password","confirm_password","phone_number","country_code"]),s&&(p="".concat(c).concat(s).replace(/[^A-Z0-9+]/gi,""),d=z(z({},d),{phone_number:p})),u.label=1;case 1:return u.trys.push([1,3,,4]),[4,se.Auth.completeNewPassword(a,l,d)];case 2:return(m=u.sent()).challengeName?[2,m]:[2,se.Auth.currentAuthenticatedUser()];case 3:return f=u.sent(),[2,Promise.reject(f)];case 4:return[2]}})})},verifyTotpToken:function(o,n){return Y(this,void 0,void 0,function(){var a,i;return J(this,function(l){return a=o.user,i=o.formValues.confirmation_code,[2,se.Auth.verifyTotpToken(a,i)]})})},federatedSignIn:function(o,n){return Y(this,void 0,void 0,function(){var a;return J(this,function(i){switch(i.label){case 0:return a=n.data.provider,[4,se.Auth.federatedSignIn({provider:a})];case 1:return[2,i.sent()]}})})},checkVerifiedContact:function(o,n){return Y(this,void 0,void 0,function(){var a;return J(this,function(i){switch(i.label){case 0:return a=o.user,[4,se.Auth.verifiedContact(a)];case 1:return[2,i.sent()]}})})},verifyUser:function(o,n){return Y(this,void 0,void 0,function(){var a,i;return J(this,function(l){switch(l.label){case 0:return a=o.formValues.unverifiedAttr,[4,se.Auth.verifyCurrentUserAttribute(a)];case 1:return i=l.sent(),o.attributeToVerify=a,[2,i]}})})},confirmVerifyUser:function(o,n){return Y(this,void 0,void 0,function(){var a,i;return J(this,function(l){switch(l.label){case 0:return a=o.attributeToVerify,i=o.formValues.confirmation_code,[4,se.Auth.verifyCurrentUserAttributeSubmit(a,i)];case 1:return[2,l.sent()]}})})},validateFields:function(o,n){return Y(this,void 0,void 0,function(){return J(this,function(a){return[2,$r(o.formValues,o.touched,o.passwordSettings,[Io.validateConfirmPassword])]})})}}})}var D0=Kt({initial:"pending",id:"signOutActor",states:{pending:{tags:["pending"],invoke:{src:"signOut",onDone:"resolved",onError:"rejected"}},resolved:{type:"final"},rejected:{type:"final"}}},{services:{signOut:function(){return se.Auth.signOut()}}});function M0(e){var t=e.services;return Kt({id:"resetPasswordActor",initial:"init",states:{init:{always:[{target:"confirmResetPassword",cond:"shouldAutoConfirmReset"},{target:"resetPassword"}]},resetPassword:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},submit:{tags:["pending"],entry:["sendUpdate","setUsername","clearError"],invoke:{src:"resetPassword",onDone:{target:"#resetPasswordActor.confirmResetPassword"},onError:{actions:["setRemoteError"],target:"edit"}}}}},confirmResetPassword:{type:"parallel",exit:["clearFormValues","clearError","clearUsername","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateFields",onDone:{target:"valid",actions:"clearValidationError"},onError:{target:"invalid",actions:"setFieldErrors"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"},RESEND:"resendCode",CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},validate:{entry:"sendUpdate",invoke:{src:"validateFields",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},resendCode:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"resetPassword",onDone:{target:"idle"},onError:{actions:"setRemoteError",target:"idle"}}},pending:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"confirmResetPassword",onDone:{actions:"clearUsername",target:"#resetPasswordActor.resolved"},onError:{actions:"setRemoteError",target:"idle"}}}}}}},resolved:{type:"final"}}},{actions:{clearError:gr,clearFormValues:br,clearTouched:hr,clearUsername:Xh,clearValidationError:vr,handleInput:kr,handleSubmit:Sr,handleBlur:xr,setFieldErrors:wr,setRemoteError:_r,setUsername:rv,sendUpdate:pr()},guards:{shouldAutoConfirmReset:function(o,n){return!(!o.intent||o.intent!=="confirmPasswordReset")}},services:{resetPassword:function(o){return Y(this,void 0,void 0,function(){var n;return J(this,function(a){return n=o.username,[2,t.handleForgotPassword(n)]})})},confirmResetPassword:function(o){return Y(this,void 0,void 0,function(){var n,a,i,l;return J(this,function(s){return n=o.username,a=o.formValues,i=a.confirmation_code,l=a.password,[2,t.handleForgotPasswordSubmit({username:n,code:i,password:l})]})})},validateFields:function(o,n){return Y(this,void 0,void 0,function(){return J(this,function(a){return[2,$r(o.formValues,o.touched,o.passwordSettings,[Io.validateConfirmPassword])]})})}}})}var F0="__lodash_hash_undefined__";function j0(e){return this.__data__.set(e,F0),this}var L0=j0;function G0(e){return this.__data__.has(e)}var q0=G0,H0=Xn,K0=L0,W0=q0;function $o(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new H0;++t<o;)this.add(e[t])}$o.prototype.add=$o.prototype.push=K0;$o.prototype.has=W0;var Y0=$o;function J0(e,t){for(var o=-1,n=e==null?0:e.length;++o<n;)if(t(e[o],o,e))return!0;return!1}var Z0=J0;function X0(e,t){return e.has(t)}var Q0=X0,e_=Y0,t_=Z0,o_=Q0,n_=1,r_=2;function a_(e,t,o,n,a,i){var l=o&n_,s=e.length,c=t.length;if(s!=c&&!(l&&c>s))return!1;var d=i.get(e),p=i.get(t);if(d&&p)return d==t&&p==e;var m=-1,f=!0,u=o&r_?new e_:void 0;for(i.set(e,t),i.set(t,e);++m<s;){var b=e[m],y=t[m];if(n)var g=l?n(y,b,m,t,e,i):n(b,y,m,e,t,i);if(g!==void 0){if(g)continue;f=!1;break}if(u){if(!t_(t,function(v,w){if(!o_(u,w)&&(b===v||a(b,v,o,n,i)))return u.push(w)})){f=!1;break}}else if(!(b===y||a(b,y,o,n,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var nl=a_;function i_(e){var t=-1,o=Array(e.size);return e.forEach(function(n,a){o[++t]=[a,n]}),o}var l_=i_;function s_(e){var t=-1,o=Array(e.size);return e.forEach(function(n){o[++t]=n}),o}var c_=s_,Ba=Ft,Va=wi,d_=Lt,p_=nl,f_=l_,m_=c_,u_=1,y_=2,g_="[object Boolean]",b_="[object Date]",h_="[object Error]",v_="[object Map]",w_="[object Number]",__="[object RegExp]",k_="[object Set]",S_="[object String]",x_="[object Symbol]",C_="[object ArrayBuffer]",A_="[object DataView]",Da=Ba?Ba.prototype:void 0,fn=Da?Da.valueOf:void 0;function E_(e,t,o,n,a,i,l){switch(o){case A_:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case C_:return!(e.byteLength!=t.byteLength||!i(new Va(e),new Va(t)));case g_:case b_:case w_:return d_(+e,+t);case h_:return e.name==t.name&&e.message==t.message;case __:case S_:return e==t+"";case v_:var s=f_;case k_:var c=n&u_;if(s||(s=m_),e.size!=t.size&&!c)return!1;var d=l.get(e);if(d)return d==t;n|=y_,l.set(e,t);var p=p_(s(e),s(t),n,a,i,l);return l.delete(e),p;case x_:if(fn)return fn.call(e)==fn.call(t)}return!1}var I_=E_,Ma=bi,$_=1,T_=Object.prototype,P_=T_.hasOwnProperty;function N_(e,t,o,n,a,i){var l=o&$_,s=Ma(e),c=s.length,d=Ma(t),p=d.length;if(c!=p&&!l)return!1;for(var m=c;m--;){var f=s[m];if(!(l?f in t:P_.call(t,f)))return!1}var u=i.get(e),b=i.get(t);if(u&&b)return u==t&&b==e;var y=!0;i.set(e,t),i.set(t,e);for(var g=l;++m<c;){f=s[m];var v=e[f],w=t[f];if(n)var _=l?n(w,v,f,t,e,i):n(v,w,f,e,t,i);if(!(_===void 0?v===w||a(v,w,o,n,i):_)){y=!1;break}g||(g=f=="constructor")}if(y&&!g){var k=e.constructor,x=t.constructor;k!=x&&"constructor"in e&&"constructor"in t&&!(typeof k=="function"&&k instanceof k&&typeof x=="function"&&x instanceof x)&&(y=!1)}return i.delete(e),i.delete(t),y}var U_=N_,mn=jo,z_=nl,O_=I_,R_=U_,Fa=Ht,ja=Pe,La=Xe.exports,B_=Oo,V_=1,Ga="[object Arguments]",qa="[object Array]",fo="[object Object]",D_=Object.prototype,Ha=D_.hasOwnProperty;function M_(e,t,o,n,a,i){var l=ja(e),s=ja(t),c=l?qa:Fa(e),d=s?qa:Fa(t);c=c==Ga?fo:c,d=d==Ga?fo:d;var p=c==fo,m=d==fo,f=c==d;if(f&&La(e)){if(!La(t))return!1;l=!0,p=!1}if(f&&!p)return i||(i=new mn),l||B_(e)?z_(e,t,o,n,a,i):O_(e,t,c,o,n,a,i);if(!(o&V_)){var u=p&&Ha.call(e,"__wrapped__"),b=m&&Ha.call(t,"__wrapped__");if(u||b){var y=u?e.value():e,g=b?t.value():t;return i||(i=new mn),a(y,g,o,n,i)}}return f?(i||(i=new mn),R_(e,t,o,n,a,i)):!1}var F_=M_,j_=F_,Ka=Ge;function rl(e,t,o,n,a){return e===t?!0:e==null||t==null||!Ka(e)&&!Ka(t)?e!==e&&t!==t:j_(e,t,o,n,rl,a)}var al=rl,L_=jo,G_=al,q_=1,H_=2;function K_(e,t,o,n){var a=o.length,i=a,l=!n;if(e==null)return!i;for(e=Object(e);a--;){var s=o[a];if(l&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<i;){s=o[a];var c=s[0],d=e[c],p=s[1];if(l&&s[2]){if(d===void 0&&!(c in e))return!1}else{var m=new L_;if(n)var f=n(d,p,c,e,t,m);if(!(f===void 0?G_(p,d,q_|H_,n,m):f))return!1}}return!0}var W_=K_,Y_=Re;function J_(e){return e===e&&!Y_(e)}var il=J_,Z_=il,X_=Bo;function Q_(e){for(var t=X_(e),o=t.length;o--;){var n=t[o],a=e[n];t[o]=[n,a,Z_(a)]}return t}var e1=Q_;function t1(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==void 0||e in Object(o))}}var ll=t1,o1=W_,n1=e1,r1=ll;function a1(e){var t=n1(e);return t.length==1&&t[0][2]?r1(t[0][0],t[0][1]):function(o){return o===e||o1(o,e,t)}}var i1=a1;function l1(e,t){return e!=null&&t in Object(e)}var s1=l1,c1=Wo,d1=Uo,p1=Pe,f1=zo,m1=Kn,u1=Wt;function y1(e,t,o){t=c1(t,e);for(var n=-1,a=t.length,i=!1;++n<a;){var l=u1(t[n]);if(!(i=e!=null&&o(e,l)))break;e=e[l]}return i||++n!=a?i:(a=e==null?0:e.length,!!a&&m1(a)&&f1(l,a)&&(p1(e)||d1(e)))}var g1=y1,b1=s1,h1=g1;function v1(e,t){return e!=null&&h1(e,t,b1)}var w1=v1,_1=al,k1=Xi,S1=w1,x1=Cr,C1=il,A1=ll,E1=Wt,I1=1,$1=2;function T1(e,t){return x1(e)&&C1(t)?A1(E1(e),t):function(o){var n=k1(o,e);return n===void 0&&n===t?S1(o,e):_1(t,n,I1|$1)}}var P1=T1;function N1(e){return function(t){return t==null?void 0:t[e]}}var U1=N1,z1=Er;function O1(e){return function(t){return z1(t,e)}}var R1=O1,B1=U1,V1=R1,D1=Cr,M1=Wt;function F1(e){return D1(e)?B1(M1(e)):V1(e)}var j1=F1,L1=i1,G1=P1,q1=Ir,H1=Pe,K1=j1;function W1(e){return typeof e=="function"?e:e==null?q1:typeof e=="object"?H1(e)?G1(e[0],e[1]):L1(e):K1(e)}var Y1=W1,J1=er,Z1=Wo,X1=zo,Wa=Re,Q1=Wt;function ek(e,t,o,n){if(!Wa(e))return e;t=Z1(t,e);for(var a=-1,i=t.length,l=i-1,s=e;s!=null&&++a<i;){var c=Q1(t[a]),d=o;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(a!=l){var p=s[c];d=n?n(p,c,s):void 0,d===void 0&&(d=Wa(p)?p:X1(t[a+1])?[]:{})}J1(s,c,d),s=s[c]}return e}var tk=ek,ok=Er,nk=tk,rk=Wo;function ak(e,t,o){for(var n=-1,a=t.length,i={};++n<a;){var l=t[n],s=ok(e,l);o(s,l)&&nk(i,rk(l,e),s)}return i}var ik=ak,lk=ni,sk=Y1,ck=ik,dk=hi;function pk(e,t){if(e==null)return{};var o=lk(dk(e),function(n){return[n]});return t=sk(t),ck(e,o,function(n,a){return t(n,a[0])})}var fk=pk;function mk(e){var t=e.services;return Kt({id:"signUpActor",initial:"init",states:{init:{always:[{target:"confirmSignUp",cond:"shouldInitConfirmSignUp"},{target:"signUp"}]},signUp:{type:"parallel",exit:["clearError","clearFormValues","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateSignUp",onDone:{target:"valid",actions:"clearValidationError"},onError:{target:"invalid",actions:"setFieldErrors"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"},FEDERATED_SIGN_IN:"federatedSignIn"}},federatedSignIn:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"federatedSignIn",onDone:"#signUpActor.resolved",onError:{actions:"setRemoteError"}}},validate:{entry:"sendUpdate",invoke:{src:"validateSignUp",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},pending:{tags:["pending"],entry:["parsePhoneNumber","sendUpdate","clearError"],invoke:{src:"signUp",onDone:[{cond:"shouldSkipConfirm",target:"skipConfirm",actions:["setUser","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(o,n){var a=o.authAttributes,i=a.username,l=a.password;return{user:Ke(n,"data.user")||o.user,authAttributes:{username:i,password:l},intent:o.intent}}}}},{guards:{isUserAlreadyConfirmed:function(o,n){return n.data.message==="User is already confirmed."},shouldInitConfirmSignUp:function(o){return o.intent&&o.intent==="confirmSignUp"},shouldSkipConfirm:function(o,n){return n.data.userConfirmed}},actions:{clearError:gr,clearFormValues:br,clearTouched:hr,clearValidationError:vr,handleInput:kr,handleSubmit:Sr,handleBlur:xr,parsePhoneNumber:Yi,setCredentials:Ki,setFieldErrors:wr,setRemoteError:_r,setCodeDeliveryDetails:av,setUser:Wi,sendUpdate:pr(),setAutoSignInIntent:Ce({intent:function(o){return"autoSignIn"}})},services:{confirmSignUp:function(o,n){return Y(this,void 0,void 0,function(){var a,i,l,s,c;return J(this,function(d){switch(d.label){case 0:return a=o.user,i=o.authAttributes,l=o.formValues,s=l.confirmation_code,c=Ke(a,"username")||Ke(i,"username"),[4,t.handleConfirmSignUp({username:c,code:s})];case 1:return[2,d.sent()]}})})},resendConfirmationCode:function(o,n){return Y(this,void 0,void 0,function(){var a,i,l;return J(this,function(s){return a=o.user,i=o.authAttributes,l=Ke(a,"username")||Ke(i,"username"),[2,se.Auth.resendSignUp(l)]})})},federatedSignIn:function(o,n){return Y(this,void 0,void 0,function(){var a;return J(this,function(i){switch(i.label){case 0:return a=n.data.provider,[4,se.Auth.federatedSignIn({provider:a})];case 1:return[2,i.sent()]}})})},signUp:function(o,n){return Y(this,void 0,void 0,function(){var a,i,l,s,c,d,p;return J(this,function(m){switch(m.label){case 0:return a=o.formValues,i=o.loginMechanisms,l=i[0],c=(s=a)[l===void 0?"username":l],d=s.password,p=fk(a,function(f,u){switch(u){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 u.startsWith("custom:")}}),[4,t.handleSignUp({username:c,password:d,attributes:p})];case 1:return[2,m.sent()]}})})},validateSignUp:function(o,n){return Y(this,void 0,void 0,function(){return J(this,function(a){return[2,$r(o.formValues,o.touched,o.passwordSettings,[t.validateFormPassword,t.validateConfirmPassword,t.validatePreferredUsername,t.validateCustomSignUp])]})})}}})}function uk(){return Kt({id:"authenticator",initial:"idle",context:{user:void 0,config:{},services:Io,actorRef:void 0,hasSetup:!1},states:{idle:{invoke:{src:"getCurrentUser",onDone:{actions:"setUser",target:"authenticated"},onError:{target:"setup"}}},setup:{initial:"waitConfig",states:{waitConfig:{on:{INIT:{actions:["configure","setHasSetup"],target:"applyConfig"}}},applyConfig:{invoke:{src:"getAmplifyConfig",onDone:{actions:"applyAmplifyConfig",target:"goToInitialState"}}},goToInitialState:{always:[{target:"#authenticator.signUp",cond:"isInitialStateSignUp"},{target:"#authenticator.resetPassword",cond:"isInitialStateResetPassword"},{target:"#authenticator.signIn"}]}}},signIn:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignInActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:"stopSignInActor"}},on:{SIGN_UP:"signUp",RESET_PASSWORD:"resetPassword","done.invoke.signInActor":[{target:"signUp",actions:"setActorDoneData",cond:"shouldRedirectToSignUp"},{target:"resetPassword",actions:"setActorDoneData",cond:"shouldRedirectToResetPassword"},{target:"authenticated",actions:"setActorDoneData"}]}},signUp:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignUpActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:"stopSignUpActor"},autoSignIn:{invoke:{src:"getCurrentUser",onDone:"#authenticator.authenticated",onError:"#authenticator.setup.goToInitialState"}}},on:{SIGN_IN:"signIn","done.invoke.signUpActor":{target:"#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:Hh([{cond:"hasActor",actions:th(function(e){return e.actorRef})}]),setUser:Ce({user:function(e,t){return t.data}}),setActorDoneData:Ce({actorDoneData:function(e,t){var o,n;return{authAttributes:z({},(o=t.data)===null||o===void 0?void 0:o.authAttributes),intent:(n=t.data)===null||n===void 0?void 0:n.intent}},user:function(e,t){var o;return(o=t.data)===null||o===void 0?void 0:o.user}}),clearUser:Ce({user:void 0}),clearActorDoneData:Ce({actorDoneData:void 0}),applyAmplifyConfig:Ce({config:function(e,t){var o,n,a,i,l,s,c,d,p,m=(n=(o=t.data.aws_cognito_username_attributes)===null||o===void 0?void 0:o.map(function(x){return x.toLowerCase()}))!==null&&n!==void 0?n:[],f=(i=(a=t.data.aws_cognito_verification_mechanisms)===null||a===void 0?void 0:a.map(function(x){return x.toLowerCase()}))!==null&&i!==void 0?i:[],u=(s=(l=t.data.aws_cognito_signup_attributes)===null||l===void 0?void 0:l.map(function(x){return x.toLowerCase()}))!==null&&s!==void 0?s:[],b=(d=(c=t.data.aws_cognito_social_providers)===null||c===void 0?void 0:c.map(function(x){return x.toLowerCase()}))!==null&&d!==void 0?d:[],y=t.data.aws_cognito_password_protection_settings||{};m.length===0&&m.push("username");var g=e.config,v=g.loginMechanisms,w=g.signUpAttributes,_=g.socialProviders,k=g.initialState;return{loginMechanisms:v!=null?v:m,formFields:(p=yk(g.formFields))!==null&&p!==void 0?p:{},passwordSettings:y,signUpAttributes:w!=null?w:Array.from(new Set(Ue(Ue([],f,!0),u,!0))),socialProviders:_!=null?_:b.sort(),initialState:k}}}),spawnSignInActor:Ce({actorRef:function(e,t){var o,n,a,i,l,s,c=e.services,d=V0({services:c}).withContext({authAttributes:(n=(o=e.actorDoneData)===null||o===void 0?void 0:o.authAttributes)!==null&&n!==void 0?n:{},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:(l=e.config)===null||l===void 0?void 0:l.socialProviders,formFields:(s=e.config)===null||s===void 0?void 0:s.formFields});return so(d,{name:"signInActor"})}}),spawnSignUpActor:Ce({actorRef:function(e,t){var o,n,a,i,l,s,c,d=e.services,p=mk({services:d}).withContext({authAttributes:(n=(o=e.actorDoneData)===null||o===void 0?void 0:o.authAttributes)!==null&&n!==void 0?n:{},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:(l=e.config)===null||l===void 0?void 0:l.socialProviders,formFields:(s=e.config)===null||s===void 0?void 0:s.formFields,passwordSettings:(c=e.config)===null||c===void 0?void 0:c.passwordSettings});return so(p,{name:"signUpActor"})}}),spawnResetPasswordActor:Ce({actorRef:function(e,t){var o,n,a,i,l=e.services,s=M0({services:l}).withContext({formValues:{},touched:{},intent:(o=e.actorDoneData)===null||o===void 0?void 0:o.intent,username:(a=(n=e.actorDoneData)===null||n===void 0?void 0:n.authAttributes)===null||a===void 0?void 0:a.username,formFields:(i=e.config)===null||i===void 0?void 0:i.formFields,validationError:{}});return so(s,{name:"resetPasswordActor"})}}),spawnSignOutActor:Ce({actorRef:function(e){var t=D0.withContext({user:e.user});return so(t,{name:"signOutActor"})}}),stopSignInActor:po("signInActor"),stopSignUpActor:po("signUpActor"),stopResetPasswordActor:po("resetPasswordActor"),stopSignOutActor:po("signOutActor"),configure:Ce(function(e,t){var o=t.data,n=o.services,a=si(o,["services"]);return{services:z(z({},Io),n),config:a}}),setHasSetup:Ce({hasSetup:!0})},guards:{isInitialStateSignUp:function(e){return e.config.initialState==="signUp"},isInitialStateResetPassword:function(e){return e.config.initialState==="resetPassword"},shouldRedirectToSignUp:function(e,t){var o;return((o=t.data)===null||o===void 0?void 0:o.intent)==="confirmSignUp"},shouldRedirectToResetPassword:function(e,t){var o;return((o=t.data)===null||o===void 0?void 0:o.intent)==="confirmPasswordReset"},shouldAutoSignIn:function(e,t){var o;return((o=t.data)===null||o===void 0?void 0:o.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 yk(e){return e&&Object.keys(e).forEach(function(t){Object.keys(e[t]).forEach(function(o){var n=e[t][o];n.required=n.isRequired})}),e}const gk={key:0,class:"amplify-flex amplify-alert amplify-alert--error amplify-authenticator__base","data-variation":"error",role:"alert"},bk={class:"amplify-flex amplify-authenticator__icon-wrapper"},hk=r.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon",viewBox:"0 0 24 24",fill:"currentColor"},[r.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),vk=r.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon",viewBox:"0 0 24 24",fill:"currentColor"},[r.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),Ve={name:"base-alert",setup(e){const t=r.ref(!0),o=O("Dismiss alert");function n(){t.value=!1}return(a,i)=>{const l=we;return t.value?(r.openBlock(),r.createElementBlock("div",gk,[r.createElementVNode("div",bk,[hk,r.createElementVNode("div",null,[r.renderSlot(a.$slots,"default")])]),r.createVNode(l,{class:"amplify-field-group__control amplify-alert__dismiss","aria-label":r.unref(o),fullwidth:!1,variation:"link",type:"button",onClick:n},{default:r.withCtx(()=>[vk]),_:1},8,["aria-label"])])):r.createCommentVNode("",!0)}}};var Yo=(e,t)=>{const o=e.__vccOpts||e;for(const[n,a]of t)o[n]=a;return o};const wk={};function _k(e,t){return r.openBlock(),r.createElementBlock("div",null,[r.renderSlot(e.$slots,"default")])}var ge=Yo(wk,[["render",_k]]);const De=r.defineComponent({name:"base-form",setup(e){let t=r.useSlots();return(o,n)=>r.renderSlot(o.$slots,"formt",r.mergeProps(o.$attrs,{slotData:r.unref(t).default&&r.unref(t).default()}),()=>[r.createElementVNode("form",r.mergeProps({"data-amplify-form":""},o.$attrs),[r.renderSlot(o.$slots,"default")],16)])}}),Me=r.defineComponent({name:"base-footer",setup(e){let t=r.useSlots();return(o,n)=>r.renderSlot(o.$slots,"footert",r.mergeProps(o.$attrs,{slotData:r.unref(t).default&&r.unref(t).default()}),()=>[r.createElementVNode("footer",r.normalizeProps(r.guardReactiveProps(o.$attrs)),[r.renderSlot(o.$slots,"default")],16)])}});function kk(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function Ee(e){let t=0,o,n;const a=()=>{t-=1,n&&t<=0&&(n.stop(),o=void 0,n=void 0)};return(...i)=>(t+=1,o||(n=r.effectScope(!0),o=n.run(()=>e(...i))),kk(a),o)}var To=globalThis&&globalThis.__assign||function(){return To=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++){t=arguments[o];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},To.apply(this,arguments)},Sk=globalThis&&globalThis.__rest||function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(o[n[a]]=e[n[a]]);return o};function xk(e,t,o){if(typeof e=="object")return e;var n=function(){};return{next:e,error:t||n,complete:o||n}}function Ck(e,t,o){t===void 0&&(t={});var n=typeof e=="function"?e():e,a=t.context,i=t.guards,l=t.actions,s=t.activities,c=t.services,d=t.delays,p=t.state,m=Sk(t,["context","guards","actions","activities","services","delays","state"]),f={context:a,guards:i,actions:l,activities:s,services:c,delays:d},u=n.withConfig(f,function(){return To(To({},n.context),a)}),b=Fi(u,m).start(p?Ne.create(p):void 0),y;return r.onMounted(function(){o&&(y=b.subscribe(xk(o)))}),r.onBeforeUnmount(function(){b.stop(),y==null||y.unsubscribe()}),b}function Ak(e){return"state"in e}var Ya=function(){};function Ek(e){return"getSnapshot"in e?e.getSnapshot():Ak(e)?e.state:void 0}function sl(e,t){t===void 0&&(t=Ek);var o=r.isRef(e)?e:r.shallowRef(e),n=r.shallowRef(t(o.value)),a=function(i){o.value.send(i)};return r.watch(o,function(i,l,s){n.value=t(i);var c=i.subscribe({next:function(d){return n.value=d},error:Ya,complete:Ya}).unsubscribe;s(function(){return c()})},{immediate:!0}),{state:n,send:a}}const cl={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},Fn=r.ref(),wo=r.reactive(Et(At({},cl),{send:"",state:""})),Ie=e=>(e&&(Fn.value=e),sl(Fn.value)),Ik=()=>(Ja(),r.watchEffect(()=>{Ja()}),wo),Se=Ik;function Ja(){if(!Fn.value)return;const{state:e,send:t}=Ie(),o=ci({send:t,state:e.value});for(const n of Object.keys(cl))wo[n]=o[n];wo.send=t,wo.state=e}const mo=r.defineComponent({name:"federated-sign-in-button",props:{provider:String},setup(e){const t=e,{provider:o}=r.toRefs(t),{send:n}=Ie(),a=()=>{n({type:"FEDERATED_SIGN_IN",data:{provider:o==null?void 0:o.value}})};return(i,l)=>{const s=ge,c=we;return r.openBlock(),r.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:r.withCtx(()=>[r.createVNode(s,{class:"amplify-flex federated-sign-in-button-row amplify-authenticator__sign-in-button-wrapper"},{default:r.withCtx(()=>[r.renderSlot(i.$slots,"default")]),_:3})]),_:3})}}}),$k=r.createElementVNode("svg",{"aria-label":"Amazon icon",class:"amplify-icon federated-sign-in-icon",viewBox:"0 0 248 268"},[r.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),Tk={class:"amplify-text amplify-authenticator__federated-text"},Pk=r.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"},[r.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),Nk={class:"amplify-text amplify-authenticator__federated-text"},Uk=r.createElementVNode("svg",{"aria-label":"Facebook icon",class:"amplify-icon federated-sign-in-icon",viewBox:"0 0 279 538"},[r.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),zk={class:"amplify-text amplify-authenticator__federated-text"},Ok=r.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"},[r.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"}),r.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"}),r.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"}),r.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),Rk={class:"amplify-text amplify-authenticator__federated-text"},Bk=r.createElementVNode("hr",{class:"amplify-divider amplify-divider--label amplify-divider--small","aria-orientation":"horizontal","data-size":"small","data-label":"or"},null,-1),Jo=r.defineComponent({name:"federated-sign-in",setup(e){var v;const{state:t}=Ie(),o=Ee(Se),{route:n}=o(),{value:{context:a}}=t,i=(v=a==null?void 0:a.config)==null?void 0:v.socialProviders,l=i==null?void 0:i.includes("amazon"),s=i==null?void 0:i.includes("apple"),c=i==null?void 0:i.includes("facebook"),d=i==null?void 0:i.includes("google"),p=c||d||l||s,m=n==="signUp"?"Up":"In",f=r.computed(()=>vn),u=r.computed(()=>O(`Sign ${m} with Amazon`)),b=r.computed(()=>O(`Sign ${m} with Apple`)),y=r.computed(()=>O(`Sign ${m} with Facebook`)),g=r.computed(()=>O(`Sign ${m} with Google`));return(w,_)=>{const k=ge;return r.unref(p)?(r.openBlock(),r.createBlock(k,{key:0,class:"amplify-flex federated-sign-in-container amplify-authenticator__column amplify-authenticator__sign-in-base"},{default:r.withCtx(()=>[r.unref(l)?(r.openBlock(),r.createBlock(mo,{key:0,provider:r.unref(f).Amazon},{default:r.withCtx(()=>[$k,r.createElementVNode("p",Tk,r.toDisplayString(r.unref(u)),1)]),_:1},8,["provider"])):r.createCommentVNode("",!0),r.unref(s)?(r.openBlock(),r.createBlock(mo,{key:1,provider:r.unref(f).Apple},{default:r.withCtx(()=>[Pk,r.createElementVNode("p",Nk,r.toDisplayString(r.unref(b)),1)]),_:1},8,["provider"])):r.createCommentVNode("",!0),r.unref(c)?(r.openBlock(),r.createBlock(mo,{key:2,provider:r.unref(f).Facebook},{default:r.withCtx(()=>[Uk,r.createElementVNode("p",zk,r.toDisplayString(r.unref(y)),1)]),_:1},8,["provider"])):r.createCommentVNode("",!0),r.unref(d)?(r.openBlock(),r.createBlock(mo,{key:3,provider:r.unref(f).Google},{default:r.withCtx(()=>[Ok,r.createElementVNode("p",Rk,r.toDisplayString(r.unref(g)),1)]),_:1},8,["provider"])):r.createCommentVNode("",!0),Bk]),_:1})):r.createCommentVNode("",!0)}}});let Vk=e=>{let t="",o=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let n=o[e]&63;n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n<63?t+="_":t+="-"}return t};const Dk={},Mk={"data-amplify-label":""};function Fk(e,t){return r.openBlock(),r.createElementBlock("label",Mk,[r.renderSlot(e.$slots,"default")])}var Zo=Yo(Dk,[["render",Fk]]);const Xo=r.defineComponent({name:"base-input",emits:["update:modelValue"],setup(e,{emit:t}){const o=n=>{t("update:modelValue",n.target.value)};return(n,a)=>(r.openBlock(),r.createElementBlock("input",{onChange:a[0]||(a[0]=i=>o(i)),"data-amplify-input":""},null,32))}}),jk=["aria-label"],Lk={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},Gk=r.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),qk=[Gk],Hk={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},Kk=r.createElementVNode("path",{d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z",fill:"none"},null,-1),Wk=r.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),Yk=[Kk,Wk],Jk={inheritAttrs:!1},Tr=r.defineComponent(Et(At({},Jk),{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 w;const t=e,o=O("Show password"),n=O("Hide password"),a=r.ref("password"),i=r.ref(o),l=Math.floor(Math.random()*999999),{name:s,label:c,autocomplete:d,hasError:p,labelHidden:m,placeholder:f,required:u}=r.toRefs(t);let b=r.ref("");function y(){i.value=i.value===o?n:o,a.value=a.value==="password"?"text":"password"}const g=O((w=f==null?void 0:f.value)!=null?w:c.value),v=O(c.value);return(_,k)=>{const x=Zo,A=Xo,S=ge;return r.openBlock(),r.createBlock(S,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield amplify-authenticator__column"},{default:r.withCtx(()=>{var C;return[r.createVNode(x,{class:r.normalizeClass(["amplify-label",{"amplify-visually-hidden":(C=r.unref(m))!=null?C:!0}]),for:"amplify-field-"+r.unref(l)},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(v)),1)]),_:1},8,["class","for"]),r.createVNode(S,{class:"amplify-flex amplify-field-group"},{default:r.withCtx(()=>{var $;return[r.createVNode(A,r.mergeProps(_.$attrs,{modelValue:r.unref(b),"onUpdate:modelValue":k[0]||(k[0]=N=>r.isRef(b)?b.value=N:b=N),class:"amplify-input amplify-field-group__control",id:"amplify-field-"+r.unref(l),"data-amplify-password":"true",name:r.unref(s),autocomplete:r.unref(d),required:($=r.unref(u))!=null?$:!0,placeholder:r.unref(g),type:a.value,"aria-invalid":r.unref(p),"aria-describedBy":e.describedBy}),null,16,["modelValue","id","name","autocomplete","required","placeholder","type","aria-invalid","aria-describedBy"]),r.createVNode(S,{class:"amplify-field-group__outer-end"},{default:r.withCtx(()=>[r.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:y},[a.value==="password"?(r.openBlock(),r.createElementBlock("svg",Lk,qk)):(r.openBlock(),r.createElementBlock("svg",Hk,Yk))],8,jk)]),_:1})]}),_:1})]}),_:1})}}})),Zk=["value","selected"],Xk=r.defineComponent({name:"base-select",props:{selectValue:{default:""},options:null},emits:["update:selectValue"],setup(e,{emit:t}){const o=e,{options:n,selectValue:a}=r.toRefs(o),i=l=>{t("update:selectValue",l.target.value)};return(l,s)=>(r.openBlock(),r.createElementBlock("select",{onChange:s[0]||(s[0]=c=>i(c))},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(n),(c,d)=>(r.openBlock(),r.createElementBlock("option",{key:d,value:c,selected:c==r.unref(a)?!0:void 0},r.toDisplayString(c),9,Zk))),128))],32))}}),Qk=r.createTextVNode(r.toDisplayString("Country Code")),eS=r.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"},[r.createElementVNode("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})],-1),tS=r.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:o,name:n,placeholder:a,autocomplete:i,labelHidden:l,required:s,dialCode:c,dialCodeList:d}=r.toRefs(t),p=Math.floor(Math.random()*999999),m=Math.floor(Math.random()*999999);return(f,u)=>{const b=Zo,y=Xk,g=ge,v=Xo;return r.openBlock(),r.createBlock(g,{class:"amplify-flex amplify-field amplify-textfield amplify-phonenumberfield amplify-authenticator__column"},{default:r.withCtx(()=>[r.createVNode(b,r.mergeProps({for:"amplify-field-"+r.unref(p),class:["amplify-label",{"sr-only":r.unref(l)}]},f.$attrs),{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(o)),1)]),_:1},16,["for","class"]),r.createVNode(g,{class:"amplify-flex amplify-field-group"},{default:r.withCtx(()=>[r.createVNode(g,{class:"amplify-field-group__outer-start"},{default:r.withCtx(()=>[e.type==="tel"?(r.openBlock(),r.createBlock(g,{key:0,class:"amplify-flex amplify-field amplify-selectfield amplify-countrycodeselect amplify-authenticator__column"},{default:r.withCtx(()=>[r.createVNode(b,r.mergeProps({for:"amplify-field-"+r.unref(m),class:"amplify-label amplify-visually-hidden"},f.$attrs),{default:r.withCtx(()=>[Qk]),_:1},16,["for"]),r.createVNode(g,{class:"amplify-select__wrapper"},{default:r.withCtx(()=>[r.createVNode(y,{class:"amplify-select amplify-field-group__control",id:"amplify-field-"+r.unref(m),autocomplete:"tel-country-code","aria-label":"country code",name:"country_code",options:r.unref(d),"select-value":r.unref(c)},null,8,["id","options","select-value"]),r.createVNode(g,{class:"amplify-flex amplify-select__icon-wrapper amplify-authenticator__icon-wrapper"},{default:r.withCtx(()=>[eS]),_:1})]),_:1})]),_:1})):r.createCommentVNode("",!0)]),_:1}),r.createVNode(g,{class:"amplify-field-group__field-wrapper"},{default:r.withCtx(()=>{var w;return[r.createVNode(v,{class:"amplify-input amplify-field-group__control",id:"amplify-field-"+r.unref(p),autocomplete:r.unref(i),name:r.unref(n),required:(w=r.unref(s))!=null?w:!0,type:e.type,placeholder:r.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})}}}),oS=["id"],dl=r.defineComponent({name:"base-form-field",props:{name:{default:""},formField:{default:()=>({})}},setup(e){const t=e,{name:o,formField:n}=r.toRefs(t),a=Ee(Se),{validationErrors:i}=r.toRefs(a()),{type:l}=n.value,s=l==="password",c=Vk(12),d=r.computed(()=>Td(i.value[o.value])),p=r.computed(()=>{var f;return((f=d.value)==null?void 0:f.length)>0}),m=r.computed(()=>p.value?c:void 0);return(f,u)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[s?(r.openBlock(),r.createBlock(Tr,{key:0,name:r.unref(o),label:r.unref(n).label,placeholder:r.unref(n).placeholder,required:r.unref(n).isRequired,"label-hidden":r.unref(n).labelHidden,autocomplete:r.unref(n).autocomplete,hasError:r.unref(p),describedBy:r.unref(m)},null,8,["name","label","placeholder","required","label-hidden","autocomplete","hasError","describedBy"])):(r.openBlock(),r.createBlock(tS,{key:1,name:r.unref(o),label:r.unref(n).label,placeholder:r.unref(n).placeholder,required:r.unref(n).isRequired,"label-hidden":r.unref(n).labelHidden,autocomplete:r.unref(n).autocomplete,"dial-code":r.unref(n).dialCode,"dial-code-list":r.unref(n).dialCodeList,type:r.unref(n).type,hasError:r.unref(p),describedBy:r.unref(m)},null,8,["name","label","placeholder","required","label-hidden","autocomplete","dial-code","dial-code-list","type","hasError","describedBy"])),r.unref(p)?(r.openBlock(),r.createElementBlock("div",{key:2,id:r.unref(m)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(d),(b,y)=>(r.openBlock(),r.createElementBlock("p",{key:y,role:"alert","data-variation":"error",class:"amplify-text amplify-text--error"},r.toDisplayString(r.unref(O)(b)),1))),128))],8,oS)):r.createCommentVNode("",!0)],64))}}),Fe=r.defineComponent({name:"base-form-fields",props:{route:null},setup(e){const t=e,{route:o}=r.toRefs(t),{state:n}=Ie();let a=[];return r.onBeforeMount(()=>{a=rb(o.value,n.value)}),(i,l)=>(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(a),([s,c])=>(r.openBlock(),r.createBlock(dl,{name:s,key:s,formField:c},null,8,["name","formField"]))),128))}}),nS=r.createElementVNode("legend",{class:"amplify-visually-hidden"},"Sign in",-1),rS={"data-amplify-footer":""},Pr=r.defineComponent({name:"sign-in",emits:["signInSubmit","forgotPasswordClicked","createAccountClicked"],setup(e,{emit:t}){const n=Ee(Se)(),a=r.useAttrs(),i=r.computed(()=>Ed("Forgot your password? ")?O("Forgot your password? "):O("Forgot your password?")),l=r.computed(()=>O("Sign in")),s=r.computed(()=>O("Signing in")),{state:c,send:d}=Ie(),p=r.computed(()=>ke(c.value)),m=y=>{const{name:g,value:v}=y.target;d({type:"CHANGE",data:{name:g,value:v}})},f=y=>{a!=null&&a.onSignInSubmit?t("signInSubmit",y):u(y)},u=y=>{n.submitForm(Be(y))},b=()=>{a!=null&&a.onForgotPasswordClicked?t("forgotPasswordClicked"):d({type:"RESET_PASSWORD"})};return(y,g)=>{const v=ze,w=Ve,_=we,k=ge,x=De,A=Me;return r.renderSlot(y.$slots,"signInSlotI",r.normalizeProps(r.guardReactiveProps(y.$attrs)),()=>[r.renderSlot(y.$slots,"header"),r.createVNode(k,r.normalizeProps(r.guardReactiveProps(y.$attrs)),{default:r.withCtx(()=>[r.createVNode(x,{"data-amplify-authenticator-signin":"",onInput:m,onSubmit:r.withModifiers(f,["prevent"]),method:"post"},{formt:r.withCtx(({slotData:S})=>[r.renderSlot(y.$slots,"form",{info:S,onSignInSubmit:f,onInput:m,onForgotPasswordClicked:b})]),default:r.withCtx(()=>[r.createVNode(Jo),r.createVNode(k,{class:"amplify-flex amplify-authenticator__column"},{default:r.withCtx(()=>[r.createVNode(v,{disabled:r.unref(p).matches("signIn.submit"),class:"amplify-flex amplify-authenticator__column"},{fieldSetI:r.withCtx(({slotData:S})=>[r.renderSlot(y.$slots,"signin-fields",{info:S})]),default:r.withCtx(()=>[nS,r.createVNode(Fe,{route:"signIn"})]),_:3},8,["disabled"]),r.unref(p).context.remoteError?(r.openBlock(),r.createBlock(w,{key:0},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(O)(r.unref(p).context.remoteError)),1)]),_:1})):r.createCommentVNode("",!0),r.createVNode(_,{disabled:r.unref(p).matches("signIn.submit"),class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!0,loading:!1,variation:"primary"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(p).matches("signIn.submit")?r.unref(s):r.unref(l)),1)]),_:1},8,["disabled"])]),_:3})]),_:3},8,["onSubmit"])]),_:3},16),r.createVNode(A,null,{default:r.withCtx(()=>[r.renderSlot(y.$slots,"footer",{},()=>[r.createElementVNode("div",rS,[r.createVNode(_,{onClick:b,class:"amplify-field-group__control amplify-authenticator__font",variation:"link",fullwidth:!0,size:"small",style:{"font-weight":"normal"},type:"button"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(i)),1)]),_:1})])])]),_:3})])}}}),Nr=r.defineComponent({name:"authenticator-sign-up-form-fields",setup(e){return(t,o)=>(r.openBlock(),r.createBlock(Fe,{route:"signUp"}))}}),Ur=r.defineComponent({name:"sign-up",emits:["signUpSubmit"],setup(e,{emit:t}){const o=Ee(Se),n=o(),a=o(),{hasValidationErrors:i,isPending:l,error:s}=r.toRefs(n),c=r.useAttrs(),d=r.computed(()=>O("Create Account")),p=b=>{let{checked:y,name:g,type:v,value:w}=b.target;v==="checkbox"&&!y&&(w=void 0),a.updateForm({name:g,value:w})};function m(b){const{name:y}=b.target;a.updateBlur({name:y})}const f=b=>{c!=null&&c.onSignUpSubmit?t("signUpSubmit",b):u(b)},u=b=>{a.submitForm(Be(b))};return(b,y)=>{const g=ze,v=Ve,w=we,_=ge,k=De,x=Me;return r.renderSlot(b.$slots,"signUpSlotI",r.normalizeProps(r.guardReactiveProps(b.$attrs)),()=>[r.renderSlot(b.$slots,"header"),r.createVNode(_,r.normalizeProps(r.guardReactiveProps(b.$attrs)),{default:r.withCtx(()=>[r.createVNode(k,{onInput:p,onBlurCapture:m,onSubmit:r.withModifiers(f,["prevent"])},{default:r.withCtx(()=>[r.createVNode(Jo),r.createVNode(_,{class:"amplify-flex amplify-authenticator__column"},{default:r.withCtx(()=>[r.createVNode(g,{class:"amplify-flex amplify-authenticator__column",disabled:r.unref(l)},{fieldSetI:r.withCtx(({slotData:A})=>[r.renderSlot(b.$slots,"signup-fields",{info:A})]),default:r.withCtx(()=>[r.createVNode(Nr)]),_:3},8,["disabled"]),r.unref(s)?(r.openBlock(),r.createBlock(v,{key:0},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(O)(r.unref(s))),1)]),_:1})):r.createCommentVNode("",!0),r.createVNode(w,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!0,loading:!1,variation:"primary",style:{"border-radius":"0px","font-weight":"normal"},disabled:r.unref(l)||r.unref(i)},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(d)),1)]),_:1},8,["disabled"])]),_:3})]),_:3},8,["onSubmit"])]),_:3},16),r.createVNode(x,null,{default:r.withCtx(()=>[r.renderSlot(b.$slots,"footer")]),_:3})])}}}),aS=r.defineComponent({name:"base-two-tab-item",props:{label:null,id:null,active:{type:Boolean,default:!1}},setup(e){const t=e,{active:o,id:n,label:a}=r.toRefs(t);return(i,l)=>{const s=ge;return r.openBlock(),r.createBlock(s,{tabindex:r.unref(o)?0:-1,"data-state":r.unref(o)?"active":"inactive","aria-selected":r.unref(o)?"true":"false","aria-controls":`radix-id-${r.unref(n)}-8-content-0`,id:`radix-id-${r.unref(n)}-8-trigger-0`,"data-orientation":"horizontal",role:"tab",class:"amplify-tabs-item","data-spacing":"equal","data-radix-collection-item":""},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(a)),1)]),_:1},8,["tabindex","data-state","aria-selected","aria-controls","id"])}}}),iS={};function lS(e,t){const o=ge;return r.openBlock(),r.createBlock(o,{tabindex:"0","aria-orientation":"horizontal","data-orientation":"horizontal",class:"amplify-authenticator__tabs",role:"tablist"},{default:r.withCtx(()=>[r.createVNode(o,{class:"amplify-flex amplify-tabs amplify-authenticator__tabs-wrapper","data-indicator-position":"top"},{default:r.withCtx(()=>[r.renderSlot(e.$slots,"default")]),_:3})]),_:3})}var sS=Yo(iS,[["render",lS]]);const Ye=r.defineComponent({props:{level:{type:Number,default:1}},inheritAttrs:!1,setup(e,{slots:t,attrs:o}){var l,s;const n=t.default?t.default():[],a=t.headingI?t.headingI():[],i=`${o.class||""} amplify-heading--${e.level}`;if(((s=(l=a[0])==null?void 0:l.children)==null?void 0:s.length)===0)a[0].children=[r.h(`h${e.level}`,Et(At({},o),{class:i}),[n])];else return()=>r.h(`h${e.level}`,Et(At({"data-amplify-heading":""},o),{class:i}),[a[0]?r.h(a[0].children[0]):r.h(n[0])]);return()=>a}}),cS={};function dS(e,t){return r.renderSlot(e.$slots,"textI",r.normalizeProps(r.guardReactiveProps(e.$attrs)),()=>[r.createElementVNode("span",r.mergeProps(e.$attrs,{"data-amplify-text":""}),[r.renderSlot(e.$slots,"default")],16)])}var pl=Yo(cS,[["render",dS]]);const zr=r.defineComponent({name:"confirm-sign-up",emits:["confirmSignUpSubmit","lostCodeClicked"],setup(e,{emit:t}){const o=r.useAttrs(),n=Ee(Se),{isPending:a,error:i,codeDeliveryDetails:l}=r.toRefs(n()),{submitForm:s,updateForm:c,resendCode:d}=n(),p=r.computed(()=>{var A,S;return((A=l.value)==null?void 0:A.DeliveryMedium)==="EMAIL"?O("We Emailed You"):((S=l.value)==null?void 0:S.DeliveryMedium)==="SMS"?O("We Texted You"):O("We Sent A Code")}),m=r.computed(()=>O("Resend Code")),f=r.computed(()=>O("Confirm")),u=O("Your code is on the way. To log in, enter the code we emailed to"),b=O("Your code is on the way. To log in, enter the code we texted to"),y=O("Your code is on the way. To log in, enter the code we sent you. It may take a minute to arrive."),g=O("It may take a minute to arrive."),v=r.computed(()=>{var A,S,C,$;return((A=l.value)==null?void 0:A.DeliveryMedium)==="EMAIL"?`${u} ${(S=l.value)==null?void 0:S.Destination}. ${g}`:((C=l.value)==null?void 0:C.DeliveryMedium)==="SMS"?`${b} ${($=l.value)==null?void 0:$.Destination}. ${g}`:O(`${y}`)}),w=A=>{const{name:S,value:C}=A.target;c({name:S,value:C})},_=A=>{o!=null&&o.onConfirmSignUpSubmit?t("confirmSignUpSubmit",A):k(A)},k=A=>{s(Be(A))},x=()=>{o!=null&&o.onLostCodeClicked?t("lostCodeClicked"):d()};return(A,S)=>{const C=Ye,$=pl,N=ze,R=Ve,D=we,F=Me,ce=ge,K=De;return r.renderSlot(A.$slots,"confirmSignUpSlotI",r.normalizeProps(r.guardReactiveProps(A.$attrs)),()=>[r.createVNode(ce,r.normalizeProps(r.guardReactiveProps(A.$attrs)),{default:r.withCtx(()=>[r.createVNode(K,{onInput:w,onSubmit:r.withModifiers(_,["prevent"])},{default:r.withCtx(()=>[r.createVNode(ce,{class:"amplify-flex amplify-authenticator__column"},{default:r.withCtx(()=>[r.renderSlot(A.$slots,"header",{},()=>[r.createVNode(C,{class:"amplify-heading amplify-authenticator__heading",level:3},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(p)),1)]),_:1})]),r.createVNode($,{class:"amplify-authenticator__subtitle"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(v)),1)]),_:1}),r.createVNode(N,{class:"amplify-flex amplify-authenticator__column",disabled:r.unref(a)},{default:r.withCtx(()=>[r.createVNode(Fe,{route:"confirmSignUp"})]),_:1},8,["disabled"]),r.createVNode(F,{class:"amplify-flex amplify-authenticator__column"},{default:r.withCtx(()=>[r.unref(i)?(r.openBlock(),r.createBlock(R,{key:0},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(O)(r.unref(i))),1)]),_:1})):r.createCommentVNode("",!0),r.createVNode(D,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",type:"submit",disabled:r.unref(a)},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(f)),1)]),_:1},8,["disabled"]),r.createVNode(D,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"default",style:{"font-weight":"normal"},type:"button",onClick:r.withModifiers(x,["prevent"])},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(m)),1)]),_:1},8,["onClick"]),r.renderSlot(A.$slots,"footer",{onConfirmSignUpSubmit:_,onLostCodeClicked:x})]),_:3})]),_:3})]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Or=r.defineComponent({name:"confirm-sign-in",emits:["confirmSignInSubmit","backToSignInClicked"],setup(e,{emit:t}){const o=r.useAttrs(),{state:n,send:a}=Ie(),l=Ee(Se)(),s=r.computed(()=>ke(n.value)),c=s.value.context.challengeName;let d="SMS";c===Le.SOFTWARE_TOKEN_MFA&&(d="TOTP");const p=`Confirm ${d} Code`,m=r.computed(()=>O("Back to Sign In")),f=r.computed(()=>O("Confirm")),u=v=>{const{name:w,value:_}=v.target;a({type:"CHANGE",data:{name:w,value:_}})},b=v=>{o!=null&&o.onConfirmSignInSubmit?t("confirmSignInSubmit",v):y(v)},y=v=>{l.submitForm(Be(v))},g=()=>{o!=null&&o.onBackToSignInClicked?t("backToSignInClicked"):a({type:"SIGN_IN"})};return(v,w)=>{const _=Ye,k=ge,x=Ve,A=we,S=Me,C=ze,$=De;return r.renderSlot(v.$slots,"confirmSignInSlotI",r.normalizeProps(r.guardReactiveProps(v.$attrs)),()=>[r.createVNode(k,r.normalizeProps(r.guardReactiveProps(v.$attrs)),{default:r.withCtx(()=>[r.createVNode($,{"data-amplify-authenticator-confirmsignin":"",onInput:u,onSubmit:r.withModifiers(b,["prevent"])},{default:r.withCtx(()=>[r.createVNode(C,{class:"amplify-flex amplify-authenticator__column",disabled:r.unref(s).matches("confirmSignIn.pending")},{default:r.withCtx(()=>[r.renderSlot(v.$slots,"header",{},()=>[r.createVNode(_,{level:3,class:"amplify-heading"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(p))]),_:1})]),r.createVNode(k,{class:"amplify-flex amplify-authenticator__column"},{default:r.withCtx(()=>[r.createVNode(Fe,{route:"confirmSignIn"})]),_:1}),r.createVNode(S,{class:"amplify-flex amplify-authenticator__column"},{default:r.withCtx(()=>{var N,R;return[(R=(N=r.unref(s))==null?void 0:N.context)!=null&&R.remoteError?(r.openBlock(),r.createBlock(x,{key:0},{default:r.withCtx(()=>{var D,F;return[r.createTextVNode(r.toDisplayString(r.unref(O)((F=(D=r.unref(s))==null?void 0:D.context)==null?void 0:F.remoteError)),1)]}),_:1})):r.createCommentVNode("",!0),r.createVNode(A,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",style:{"font-weight":"normal"},disabled:r.unref(s).matches("confirmSignIn.pending")},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(f)),1)]),_:1},8,["disabled"]),r.createVNode(A,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:r.withModifiers(g,["prevent"])},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(m)),1)]),_:1},8,["onClick"]),r.renderSlot(v.$slots,"footer",{onBackToSignInClicked:g,onConfirmSignInSubmit:b})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}});var Yt={},pS=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},fl={},xe={};let Rr;const fS=[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];xe.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};xe.getSymbolTotalCodewords=function(t){return fS[t]};xe.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};xe.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Rr=t};xe.isKanjiModeEnabled=function(){return typeof Rr!="undefined"};xe.toSJIS=function(t){return Rr(t)};var Qo={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.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: "+o)}}e.isValid=function(n){return n&&typeof n.bit!="undefined"&&n.bit>=0&&n.bit<4},e.from=function(n,a){if(e.isValid(n))return n;try{return t(n)}catch{return a}}})(Qo);function ml(){this.buffer=[],this.length=0}ml.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 o=0;o<t;o++)this.putBit((e>>>t-o-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 mS=ml;function Jt(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)}Jt.prototype.set=function(e,t,o,n){const a=e*this.size+t;this.data[a]=o,n&&(this.reservedBit[a]=!0)};Jt.prototype.get=function(e,t){return this.data[e*this.size+t]};Jt.prototype.xor=function(e,t,o){this.data[e*this.size+t]^=o};Jt.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var uS=Jt,ul={};(function(e){const t=xe.getSymbolSize;e.getRowColCoords=function(n){if(n===1)return[];const a=Math.floor(n/7)+2,i=t(n),l=i===145?26:Math.ceil((i-13)/(2*a-2))*2,s=[i-7];for(let c=1;c<a-1;c++)s[c]=s[c-1]-l;return s.push(6),s.reverse()},e.getPositions=function(n){const a=[],i=e.getRowColCoords(n),l=i.length;for(let s=0;s<l;s++)for(let c=0;c<l;c++)s===0&&c===0||s===0&&c===l-1||s===l-1&&c===0||a.push([i[s],i[c]]);return a}})(ul);var yl={};const yS=xe.getSymbolSize,Za=7;yl.getPositions=function(t){const o=yS(t);return[[0,0],[o-Za,0],[0,o-Za]]};var gl={};(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 l=0,s=0,c=0,d=null,p=null;for(let m=0;m<i;m++){s=c=0,d=p=null;for(let f=0;f<i;f++){let u=a.get(m,f);u===d?s++:(s>=5&&(l+=t.N1+(s-5)),d=u,s=1),u=a.get(f,m),u===p?c++:(c>=5&&(l+=t.N1+(c-5)),p=u,c=1)}s>=5&&(l+=t.N1+(s-5)),c>=5&&(l+=t.N1+(c-5))}return l},e.getPenaltyN2=function(a){const i=a.size;let l=0;for(let s=0;s<i-1;s++)for(let c=0;c<i-1;c++){const d=a.get(s,c)+a.get(s,c+1)+a.get(s+1,c)+a.get(s+1,c+1);(d===4||d===0)&&l++}return l*t.N2},e.getPenaltyN3=function(a){const i=a.size;let l=0,s=0,c=0;for(let d=0;d<i;d++){s=c=0;for(let p=0;p<i;p++)s=s<<1&2047|a.get(d,p),p>=10&&(s===1488||s===93)&&l++,c=c<<1&2047|a.get(p,d),p>=10&&(c===1488||c===93)&&l++}return l*t.N3},e.getPenaltyN4=function(a){let i=0;const l=a.data.length;for(let c=0;c<l;c++)i+=a.data[c];return Math.abs(Math.ceil(i*100/l/5)-10)*t.N4};function o(n,a,i){switch(n){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:"+n)}}e.applyMask=function(a,i){const l=i.size;for(let s=0;s<l;s++)for(let c=0;c<l;c++)i.isReserved(c,s)||i.xor(c,s,o(a,c,s))},e.getBestMask=function(a,i){const l=Object.keys(e.Patterns).length;let s=0,c=1/0;for(let d=0;d<l;d++){i(d),e.applyMask(d,a);const p=e.getPenaltyN1(a)+e.getPenaltyN2(a)+e.getPenaltyN3(a)+e.getPenaltyN4(a);e.applyMask(d,a),p<c&&(c=p,s=d)}return s}})(gl);var en={};const We=Qo,uo=[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],yo=[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];en.getBlocksCount=function(t,o){switch(o){case We.L:return uo[(t-1)*4+0];case We.M:return uo[(t-1)*4+1];case We.Q:return uo[(t-1)*4+2];case We.H:return uo[(t-1)*4+3];default:return}};en.getTotalCodewordsCount=function(t,o){switch(o){case We.L:return yo[(t-1)*4+0];case We.M:return yo[(t-1)*4+1];case We.Q:return yo[(t-1)*4+2];case We.H:return yo[(t-1)*4+3];default:return}};var bl={},tn={};const Bt=new Uint8Array(512),Po=new Uint8Array(256);(function(){let t=1;for(let o=0;o<255;o++)Bt[o]=t,Po[t]=o,t<<=1,t&256&&(t^=285);for(let o=255;o<512;o++)Bt[o]=Bt[o-255]})();tn.log=function(t){if(t<1)throw new Error("log("+t+")");return Po[t]};tn.exp=function(t){return Bt[t]};tn.mul=function(t,o){return t===0||o===0?0:Bt[Po[t]+Po[o]]};(function(e){const t=tn;e.mul=function(n,a){const i=new Uint8Array(n.length+a.length-1);for(let l=0;l<n.length;l++)for(let s=0;s<a.length;s++)i[l+s]^=t.mul(n[l],a[s]);return i},e.mod=function(n,a){let i=new Uint8Array(n);for(;i.length-a.length>=0;){const l=i[0];for(let c=0;c<a.length;c++)i[c]^=t.mul(a[c],l);let s=0;for(;s<i.length&&i[s]===0;)s++;i=i.slice(s)}return i},e.generateECPolynomial=function(n){let a=new Uint8Array([1]);for(let i=0;i<n;i++)a=e.mul(a,new Uint8Array([1,t.exp(i)]));return a}})(bl);const hl=bl;function Br(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}Br.prototype.initialize=function(t){this.degree=t,this.genPoly=hl.generateECPolynomial(this.degree)};Br.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const o=new Uint8Array(t.length+this.degree);o.set(t);const n=hl.mod(o,this.genPoly),a=this.degree-n.length;if(a>0){const i=new Uint8Array(this.degree);return i.set(n,a),i}return n};var gS=Br,vl={},Je={},Vr={};Vr.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var je={};const wl="[0-9]+",bS="[A-Z $%*+\\-./:]+";let Mt="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Mt=Mt.replace(/u/g,"\\u");const hS="(?:(?![A-Z0-9 $%*+\\-./:]|"+Mt+`)(?:.|[\r
32
- ]))+`;je.KANJI=new RegExp(Mt,"g");je.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");je.BYTE=new RegExp(hS,"g");je.NUMERIC=new RegExp(wl,"g");je.ALPHANUMERIC=new RegExp(bS,"g");const vS=new RegExp("^"+Mt+"$"),wS=new RegExp("^"+wl+"$"),_S=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");je.testKanji=function(t){return vS.test(t)};je.testNumeric=function(t){return wS.test(t)};je.testAlphanumeric=function(t){return _S.test(t)};(function(e){const t=Vr,o=je;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,l){if(!i.ccBits)throw new Error("Invalid mode: "+i);if(!t.isValid(l))throw new Error("Invalid version: "+l);return l>=1&&l<10?i.ccBits[0]:l<27?i.ccBits[1]:i.ccBits[2]},e.getBestModeForData=function(i){return o.testNumeric(i)?e.NUMERIC:o.testAlphanumeric(i)?e.ALPHANUMERIC:o.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 n(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,l){if(e.isValid(i))return i;try{return n(i)}catch{return l}}})(Je);(function(e){const t=xe,o=en,n=Qo,a=Je,i=Vr,l=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,s=t.getBCHDigit(l);function c(f,u,b){for(let y=1;y<=40;y++)if(u<=e.getCapacity(y,b,f))return y}function d(f,u){return a.getCharCountIndicator(f,u)+4}function p(f,u){let b=0;return f.forEach(function(y){b+=d(y.mode,u)+y.getBitsLength()}),b}function m(f,u){for(let b=1;b<=40;b++)if(p(f,b)<=e.getCapacity(b,u,a.MIXED))return b}e.from=function(u,b){return i.isValid(u)?parseInt(u,10):b},e.getCapacity=function(u,b,y){if(!i.isValid(u))throw new Error("Invalid QR Code version");typeof y=="undefined"&&(y=a.BYTE);const g=t.getSymbolTotalCodewords(u),v=o.getTotalCodewordsCount(u,b),w=(g-v)*8;if(y===a.MIXED)return w;const _=w-d(y,u);switch(y){case a.NUMERIC:return Math.floor(_/10*3);case a.ALPHANUMERIC:return Math.floor(_/11*2);case a.KANJI:return Math.floor(_/13);case a.BYTE:default:return Math.floor(_/8)}},e.getBestVersionForData=function(u,b){let y;const g=n.from(b,n.M);if(Array.isArray(u)){if(u.length>1)return m(u,g);if(u.length===0)return 1;y=u[0]}else y=u;return c(y.mode,y.getLength(),g)},e.getEncodedBits=function(u){if(!i.isValid(u)||u<7)throw new Error("Invalid QR Code version");let b=u<<12;for(;t.getBCHDigit(b)-s>=0;)b^=l<<t.getBCHDigit(b)-s;return u<<12|b}})(vl);var _l={};const jn=xe,kl=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,kS=1<<14|1<<12|1<<10|1<<4|1<<1,Xa=jn.getBCHDigit(kl);_l.getEncodedBits=function(t,o){const n=t.bit<<3|o;let a=n<<10;for(;jn.getBCHDigit(a)-Xa>=0;)a^=kl<<jn.getBCHDigit(a)-Xa;return(n<<10|a)^kS};var Sl={};const SS=Je;function dt(e){this.mode=SS.NUMERIC,this.data=e.toString()}dt.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};dt.prototype.getLength=function(){return this.data.length};dt.prototype.getBitsLength=function(){return dt.getBitsLength(this.data.length)};dt.prototype.write=function(t){let o,n,a;for(o=0;o+3<=this.data.length;o+=3)n=this.data.substr(o,3),a=parseInt(n,10),t.put(a,10);const i=this.data.length-o;i>0&&(n=this.data.substr(o),a=parseInt(n,10),t.put(a,i*3+1))};var xS=dt;const CS=Je,un=["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 pt(e){this.mode=CS.ALPHANUMERIC,this.data=e}pt.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};pt.prototype.getLength=function(){return this.data.length};pt.prototype.getBitsLength=function(){return pt.getBitsLength(this.data.length)};pt.prototype.write=function(t){let o;for(o=0;o+2<=this.data.length;o+=2){let n=un.indexOf(this.data[o])*45;n+=un.indexOf(this.data[o+1]),t.put(n,11)}this.data.length%2&&t.put(un.indexOf(this.data[o]),6)};var AS=pt,ES=function(t){for(var o=[],n=t.length,a=0;a<n;a++){var i=t.charCodeAt(a);if(i>=55296&&i<=56319&&n>a+1){var l=t.charCodeAt(a+1);l>=56320&&l<=57343&&(i=(i-55296)*1024+l-56320+65536,a+=1)}if(i<128){o.push(i);continue}if(i<2048){o.push(i>>6|192),o.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){o.push(i>>12|224),o.push(i>>6&63|128),o.push(i&63|128);continue}if(i>=65536&&i<=1114111){o.push(i>>18|240),o.push(i>>12&63|128),o.push(i>>6&63|128),o.push(i&63|128);continue}o.push(239,191,189)}return new Uint8Array(o).buffer};const IS=ES,$S=Je;function ft(e){this.mode=$S.BYTE,this.data=new Uint8Array(IS(e))}ft.getBitsLength=function(t){return t*8};ft.prototype.getLength=function(){return this.data.length};ft.prototype.getBitsLength=function(){return ft.getBitsLength(this.data.length)};ft.prototype.write=function(e){for(let t=0,o=this.data.length;t<o;t++)e.put(this.data[t],8)};var TS=ft;const PS=Je,NS=xe;function mt(e){this.mode=PS.KANJI,this.data=e}mt.getBitsLength=function(t){return t*13};mt.prototype.getLength=function(){return this.data.length};mt.prototype.getBitsLength=function(){return mt.getBitsLength(this.data.length)};mt.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let o=NS.toSJIS(this.data[t]);if(o>=33088&&o<=40956)o-=33088;else if(o>=57408&&o<=60351)o-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
33
- Make sure your charset is UTF-8`);o=(o>>>8&255)*192+(o&255),e.put(o,13)}};var US=mt,xl={exports:{}};(function(e){var t={single_source_shortest_paths:function(o,n,a){var i={},l={};l[n]=0;var s=t.PriorityQueue.make();s.push(n,0);for(var c,d,p,m,f,u,b,y,g;!s.empty();){c=s.pop(),d=c.value,m=c.cost,f=o[d]||{};for(p in f)f.hasOwnProperty(p)&&(u=f[p],b=m+u,y=l[p],g=typeof l[p]=="undefined",(g||y>b)&&(l[p]=b,s.push(p,b),i[p]=d))}if(typeof a!="undefined"&&typeof l[a]=="undefined"){var v=["Could not find a path from ",n," to ",a,"."].join("");throw new Error(v)}return i},extract_shortest_path_from_predecessor_list:function(o,n){for(var a=[],i=n;i;)a.push(i),i=o[i];return a.reverse(),a},find_path:function(o,n,a){var i=t.single_source_shortest_paths(o,n,a);return t.extract_shortest_path_from_predecessor_list(i,a)},PriorityQueue:{make:function(o){var n=t.PriorityQueue,a={},i;o=o||{};for(i in n)n.hasOwnProperty(i)&&(a[i]=n[i]);return a.queue=[],a.sorter=o.sorter||n.default_sorter,a},default_sorter:function(o,n){return o.cost-n.cost},push:function(o,n){var a={value:o,cost:n};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})(xl);(function(e){const t=Je,o=xS,n=AS,a=TS,i=US,l=je,s=xe,c=xl.exports;function d(v){return unescape(encodeURIComponent(v)).length}function p(v,w,_){const k=[];let x;for(;(x=v.exec(_))!==null;)k.push({data:x[0],index:x.index,mode:w,length:x[0].length});return k}function m(v){const w=p(l.NUMERIC,t.NUMERIC,v),_=p(l.ALPHANUMERIC,t.ALPHANUMERIC,v);let k,x;return s.isKanjiModeEnabled()?(k=p(l.BYTE,t.BYTE,v),x=p(l.KANJI,t.KANJI,v)):(k=p(l.BYTE_KANJI,t.BYTE,v),x=[]),w.concat(_,k,x).sort(function(S,C){return S.index-C.index}).map(function(S){return{data:S.data,mode:S.mode,length:S.length}})}function f(v,w){switch(w){case t.NUMERIC:return o.getBitsLength(v);case t.ALPHANUMERIC:return n.getBitsLength(v);case t.KANJI:return i.getBitsLength(v);case t.BYTE:return a.getBitsLength(v)}}function u(v){return v.reduce(function(w,_){const k=w.length-1>=0?w[w.length-1]:null;return k&&k.mode===_.mode?(w[w.length-1].data+=_.data,w):(w.push(_),w)},[])}function b(v){const w=[];for(let _=0;_<v.length;_++){const k=v[_];switch(k.mode){case t.NUMERIC:w.push([k,{data:k.data,mode:t.ALPHANUMERIC,length:k.length},{data:k.data,mode:t.BYTE,length:k.length}]);break;case t.ALPHANUMERIC:w.push([k,{data:k.data,mode:t.BYTE,length:k.length}]);break;case t.KANJI:w.push([k,{data:k.data,mode:t.BYTE,length:d(k.data)}]);break;case t.BYTE:w.push([{data:k.data,mode:t.BYTE,length:d(k.data)}])}}return w}function y(v,w){const _={},k={start:{}};let x=["start"];for(let A=0;A<v.length;A++){const S=v[A],C=[];for(let $=0;$<S.length;$++){const N=S[$],R=""+A+$;C.push(R),_[R]={node:N,lastCount:0},k[R]={};for(let D=0;D<x.length;D++){const F=x[D];_[F]&&_[F].node.mode===N.mode?(k[F][R]=f(_[F].lastCount+N.length,N.mode)-f(_[F].lastCount,N.mode),_[F].lastCount+=N.length):(_[F]&&(_[F].lastCount=N.length),k[F][R]=f(N.length,N.mode)+4+t.getCharCountIndicator(N.mode,w))}}x=C}for(let A=0;A<x.length;A++)k[x[A]].end=0;return{map:k,table:_}}function g(v,w){let _;const k=t.getBestModeForData(v);if(_=t.from(w,k),_!==t.BYTE&&_.bit<k.bit)throw new Error('"'+v+'" cannot be encoded with mode '+t.toString(_)+`.
34
- Suggested mode is: `+t.toString(k));switch(_===t.KANJI&&!s.isKanjiModeEnabled()&&(_=t.BYTE),_){case t.NUMERIC:return new o(v);case t.ALPHANUMERIC:return new n(v);case t.KANJI:return new i(v);case t.BYTE:return new a(v)}}e.fromArray=function(w){return w.reduce(function(_,k){return typeof k=="string"?_.push(g(k,null)):k.data&&_.push(g(k.data,k.mode)),_},[])},e.fromString=function(w,_){const k=m(w,s.isKanjiModeEnabled()),x=b(k),A=y(x,_),S=c.find_path(A.map,"start","end"),C=[];for(let $=1;$<S.length-1;$++)C.push(A.table[S[$]].node);return e.fromArray(u(C))},e.rawSplit=function(w){return e.fromArray(m(w,s.isKanjiModeEnabled()))}})(Sl);const on=xe,yn=Qo,zS=mS,OS=uS,RS=ul,BS=yl,Ln=gl,Gn=en,VS=gS,No=vl,DS=_l,MS=Je,gn=Sl;function FS(e,t){const o=e.size,n=BS.getPositions(t);for(let a=0;a<n.length;a++){const i=n[a][0],l=n[a][1];for(let s=-1;s<=7;s++)if(!(i+s<=-1||o<=i+s))for(let c=-1;c<=7;c++)l+c<=-1||o<=l+c||(s>=0&&s<=6&&(c===0||c===6)||c>=0&&c<=6&&(s===0||s===6)||s>=2&&s<=4&&c>=2&&c<=4?e.set(i+s,l+c,!0,!0):e.set(i+s,l+c,!1,!0))}}function jS(e){const t=e.size;for(let o=8;o<t-8;o++){const n=o%2===0;e.set(o,6,n,!0),e.set(6,o,n,!0)}}function LS(e,t){const o=RS.getPositions(t);for(let n=0;n<o.length;n++){const a=o[n][0],i=o[n][1];for(let l=-2;l<=2;l++)for(let s=-2;s<=2;s++)l===-2||l===2||s===-2||s===2||l===0&&s===0?e.set(a+l,i+s,!0,!0):e.set(a+l,i+s,!1,!0)}}function GS(e,t){const o=e.size,n=No.getEncodedBits(t);let a,i,l;for(let s=0;s<18;s++)a=Math.floor(s/3),i=s%3+o-8-3,l=(n>>s&1)===1,e.set(a,i,l,!0),e.set(i,a,l,!0)}function bn(e,t,o){const n=e.size,a=DS.getEncodedBits(t,o);let i,l;for(i=0;i<15;i++)l=(a>>i&1)===1,i<6?e.set(i,8,l,!0):i<8?e.set(i+1,8,l,!0):e.set(n-15+i,8,l,!0),i<8?e.set(8,n-i-1,l,!0):i<9?e.set(8,15-i-1+1,l,!0):e.set(8,15-i-1,l,!0);e.set(n-8,8,1,!0)}function qS(e,t){const o=e.size;let n=-1,a=o-1,i=7,l=0;for(let s=o-1;s>0;s-=2)for(s===6&&s--;;){for(let c=0;c<2;c++)if(!e.isReserved(a,s-c)){let d=!1;l<t.length&&(d=(t[l]>>>i&1)===1),e.set(a,s-c,d),i--,i===-1&&(l++,i=7)}if(a+=n,a<0||o<=a){a-=n,n=-n;break}}}function HS(e,t,o){const n=new zS;o.forEach(function(c){n.put(c.mode.bit,4),n.put(c.getLength(),MS.getCharCountIndicator(c.mode,e)),c.write(n)});const a=on.getSymbolTotalCodewords(e),i=Gn.getTotalCodewordsCount(e,t),l=(a-i)*8;for(n.getLengthInBits()+4<=l&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);const s=(l-n.getLengthInBits())/8;for(let c=0;c<s;c++)n.put(c%2?17:236,8);return KS(n,e,t)}function KS(e,t,o){const n=on.getSymbolTotalCodewords(t),a=Gn.getTotalCodewordsCount(t,o),i=n-a,l=Gn.getBlocksCount(t,o),s=n%l,c=l-s,d=Math.floor(n/l),p=Math.floor(i/l),m=p+1,f=d-p,u=new VS(f);let b=0;const y=new Array(l),g=new Array(l);let v=0;const w=new Uint8Array(e.buffer);for(let S=0;S<l;S++){const C=S<c?p:m;y[S]=w.slice(b,b+C),g[S]=u.encode(y[S]),b+=C,v=Math.max(v,C)}const _=new Uint8Array(n);let k=0,x,A;for(x=0;x<v;x++)for(A=0;A<l;A++)x<y[A].length&&(_[k++]=y[A][x]);for(x=0;x<f;x++)for(A=0;A<l;A++)_[k++]=g[A][x];return _}function WS(e,t,o,n){let a;if(Array.isArray(e))a=gn.fromArray(e);else if(typeof e=="string"){let d=t;if(!d){const p=gn.rawSplit(e);d=No.getBestVersionForData(p,o)}a=gn.fromString(e,d||40)}else throw new Error("Invalid data");const i=No.getBestVersionForData(a,o);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,Wv=me.ActionTypes.Start,Yv=me.ActionTypes.Stop,Jv=me.ActionTypes.Raise,Zv=me.ActionTypes.Send,Qv=me.ActionTypes.Cancel,Xv=me.ActionTypes.NullEvent,ey=me.ActionTypes.Assign,ty=me.ActionTypes.After,ny=me.ActionTypes.DoneState,ry=me.ActionTypes.Log,oy=me.ActionTypes.Init,ay=me.ActionTypes.Invoke,iy=me.ActionTypes.ErrorExecution,sy=me.ActionTypes.ErrorPlatform,uy=me.ActionTypes.ErrorCustom,cy=me.ActionTypes.Update,ly=me.ActionTypes.Choose,dy=me.ActionTypes.Pure;fe.after=ty;fe.assign=ey;fe.cancel=Qv;fe.choose=ly;fe.doneState=ny;fe.error=uy;fe.errorExecution=iy;fe.errorPlatform=sy;fe.init=oy;fe.invoke=ay;fe.log=ry;fe.nullEvent=Xv;fe.pure=dy;fe.raise=Jv;fe.send=Zv;fe.start=Wv;fe.stop=Yv;fe.update=cy;var Mi={},bt={};Object.defineProperty(bt,"__esModule",{value:!0});var fy=".",py={},hy="xstate.guard",my="";bt.DEFAULT_GUARD_TYPE=hy;bt.EMPTY_ACTIVITY_MAP=py;bt.STATE_DELIMITER=fy;bt.TARGETLESS_KEY=my;var Gn={};Object.defineProperty(Gn,"__esModule",{value:!0});var gy=!0;Gn.IS_PRODUCTION=gy;(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=uo,n=bt,r=Gn,a;function i(y){return Object.keys(y)}function s(y,k,O){O===void 0&&(O=n.STATE_DELIMITER);var x=h(y,O),B=h(k,O);return X(B)?X(x)?B===x:!1:X(x)?x in B:Object.keys(x).every(function(V){return V in B?s(x[V],B[V]):!1})}function u(y){try{return X(y)||typeof y=="number"?"".concat(y):y.type}catch{throw new Error("Events must be strings or objects with a string event.type property.")}}function c(y){try{return X(y)||typeof y=="number"?"".concat(y):de(y)?y.name:y.type}catch{throw new Error("Actions must be strings or objects with a string action.type property.")}}function l(y,k){try{return G(y)?y:y.toString().split(k)}catch{throw new Error("'".concat(y,"' is not a valid state path."))}}function d(y){return typeof y=="object"&&"value"in y&&"context"in y&&"event"in y&&"_event"in y}function h(y,k){if(d(y))return y.value;if(G(y))return f(y);if(typeof y!="string")return y;var O=l(y,k);return f(O)}function f(y){if(y.length===1)return y[0];for(var k={},O=k,x=0;x<y.length-1;x++)x===y.length-2?O[y[x]]=y[x+1]:(O[y[x]]={},O=O[y[x]]);return k}function p(y,k){for(var O={},x=Object.keys(y),B=0;B<x.length;B++){var V=x[B];O[V]=k(y[V],V,y,B)}return O}function g(y,k,O){var x,B,V={};try{for(var j=t.__values(Object.keys(y)),L=j.next();!L.done;L=j.next()){var Q=L.value,ae=y[Q];!O(ae)||(V[Q]=k(ae,Q,y))}}catch(_e){x={error:_e}}finally{try{L&&!L.done&&(B=j.return)&&B.call(j)}finally{if(x)throw x.error}}return V}var m=function(y){return function(k){var O,x,B=k;try{for(var V=t.__values(y),j=V.next();!j.done;j=V.next()){var L=j.value;B=B[L]}}catch(Q){O={error:Q}}finally{try{j&&!j.done&&(x=V.return)&&x.call(V)}finally{if(O)throw O.error}}return B}};function v(y,k){return function(O){var x,B,V=O;try{for(var j=t.__values(y),L=j.next();!L.done;L=j.next()){var Q=L.value;V=V[k][Q]}}catch(ae){x={error:ae}}finally{try{L&&!L.done&&(B=j.return)&&B.call(j)}finally{if(x)throw x.error}}return V}}function S(y){if(!y)return[[]];if(X(y))return[[y]];var k=_(Object.keys(y).map(function(O){var x=y[O];return typeof x!="string"&&(!x||!Object.keys(x).length)?[[O]]:S(y[O]).map(function(B){return[O].concat(B)})}));return k}function w(y){var k,O,x={};if(y&&y.length===1&&y[0].length===1)return y[0][0];try{for(var B=t.__values(y),V=B.next();!V.done;V=B.next())for(var j=V.value,L=x,Q=0;Q<j.length;Q++){var ae=j[Q];if(Q===j.length-2){L[ae]=j[Q+1];break}L[ae]=L[ae]||{},L=L[ae]}}catch(_e){k={error:_e}}finally{try{V&&!V.done&&(O=B.return)&&O.call(B)}finally{if(k)throw k.error}}return x}function _(y){var k;return(k=[]).concat.apply(k,t.__spreadArray([],t.__read(y),!1))}function b(y){return G(y)?y:[y]}function C(y){return y===void 0?[]:b(y)}function E(y,k,O){var x,B;if(de(y))return y(k,O.data);var V={};try{for(var j=t.__values(Object.keys(y)),L=j.next();!L.done;L=j.next()){var Q=L.value,ae=y[Q];de(ae)?V[Q]=ae(k,O.data):V[Q]=ae}}catch(_e){x={error:_e}}finally{try{L&&!L.done&&(B=j.return)&&B.call(j)}finally{if(x)throw x.error}}return V}function A(y){return/^(done|error)\./.test(y)}function $(y){return!!(y instanceof Promise||y!==null&&(de(y)||typeof y=="object")&&de(y.then))}function I(y){return y!==null&&typeof y=="object"&&"transition"in y&&typeof y.transition=="function"}function N(y,k){var O,x,B=t.__read([[],[]],2),V=B[0],j=B[1];try{for(var L=t.__values(y),Q=L.next();!Q.done;Q=L.next()){var ae=Q.value;k(ae)?V.push(ae):j.push(ae)}}catch(_e){O={error:_e}}finally{try{Q&&!Q.done&&(x=L.return)&&x.call(L)}finally{if(O)throw O.error}}return[V,j]}function M(y,k){return p(y.states,function(O,x){if(!!O){var B=(X(k)?void 0:k[x])||(O?O.current:void 0);if(!!B)return{current:B,states:M(O,B)}}})}function F(y,k){return{current:k,states:M(y,k)}}function D(y,k,O,x){r.IS_PRODUCTION||e.warn(!!y,"Attempting to update undefined context");var B=y&&O.reduce(function(V,j){var L,Q,ae=j.assignment,_e={state:x,action:j,_event:k},tt={};if(de(ae))tt=ae(V,k.data,_e);else try{for(var ne=t.__values(Object.keys(ae)),re=ne.next();!re.done;re=ne.next()){var nt=re.value,Tt=ae[nt];tt[nt]=de(Tt)?Tt(V,k.data,_e):Tt}}catch(Ps){L={error:Ps}}finally{try{re&&!re.done&&(Q=ne.return)&&Q.call(ne)}finally{if(L)throw L.error}}return Object.assign({},V,tt)},y);return B}e.warn=function(){},r.IS_PRODUCTION||(e.warn=function(y,k){var O=y instanceof Error?y:void 0;if(!(!O&&y)&&console!==void 0){var x=["Warning: ".concat(k)];O&&x.push(O),console.warn.apply(console,x)}});function G(y){return Array.isArray(y)}function de(y){return typeof y=="function"}function X(y){return typeof y=="string"}function At(y,k){if(!!y)return X(y)?{type:n.DEFAULT_GUARD_TYPE,name:y,predicate:k?k[y]:void 0}:de(y)?{type:n.DEFAULT_GUARD_TYPE,name:y.name,predicate:y}:y}function Et(y){try{return"subscribe"in y&&de(y.subscribe)}catch{return!1}}var pe=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),xe=(a={},a[pe]=function(){return this},a[Symbol.observable]=function(){return this},a);function Jt(y){return!!y&&"__xstatenode"in y}function tr(y){return!!y&&typeof y.send=="function"}var nr=function(){var y=0;return function(){return y++,y.toString(16)}}();function Zt(y,k){return X(y)||typeof y=="number"?t.__assign({type:y},k):y}function rr(y,k){if(!X(y)&&"$$type"in y&&y.$$type==="scxml")return y;var O=Zt(y);return t.__assign({name:O.type,data:O,$$type:"scxml",type:"external"},k)}function Qt(y,k){var O=b(k).map(function(x){return typeof x=="undefined"||typeof x=="string"||Jt(x)?{target:x,event:y}:t.__assign(t.__assign({},x),{event:y})});return O}function Xt(y){if(!(y===void 0||y===n.TARGETLESS_KEY))return C(y)}function It(y,k,O){if(!r.IS_PRODUCTION){var x=y.stack?" Stacktrace was '".concat(y.stack,"'"):"";if(y===k)console.error("Missing onError handler for invocation '".concat(O,"', error was '").concat(y,"'.").concat(x));else{var B=k.stack?" Stacktrace was '".concat(k.stack,"'"):"";console.error("Missing onError handler and/or unhandled exception/promise rejection for invocation '".concat(O,"'. ")+"Original error: '".concat(y,"'. ").concat(x," Current error is '").concat(k,"'.").concat(B))}}}function or(y,k,O,x,B){var V=y.options.guards,j={state:B,cond:k,_event:x};if(k.type===n.DEFAULT_GUARD_TYPE)return((V==null?void 0:V[k.name])||k.predicate)(O,x.data,j);var L=V==null?void 0:V[k.type];if(!L)throw new Error("Guard '".concat(k.type,"' is not implemented on machine '").concat(y.id,"'."));return L(O,x.data,j)}function P(y){return typeof y=="string"?{type:y}:y}function Se(y,k,O){var x=function(){},B=typeof y=="object",V=B?y:null;return{next:((B?y.next:y)||x).bind(V),error:((B?y.error:k)||x).bind(V),complete:((B?y.complete:O)||x).bind(V)}}function en(y,k){return"".concat(y,":invocation[").concat(k,"]")}e.createInvokeId=en,e.evaluateGuard=or,e.flatten=_,e.getActionType=c,e.getEventType=u,e.interopSymbols=xe,e.isActor=tr,e.isArray=G,e.isBehavior=I,e.isBuiltInEvent=A,e.isFunction=de,e.isMachine=Jt,e.isObservable=Et,e.isPromiseLike=$,e.isStateLike=d,e.isString=X,e.keys=i,e.mapContext=E,e.mapFilterValues=g,e.mapValues=p,e.matchesState=s,e.nestedPath=v,e.normalizeTarget=Xt,e.partition=N,e.path=m,e.pathToStateValue=f,e.pathsToStateValue=w,e.reportUnhandledExceptionOnInvocation=It,e.symbolObservable=pe,e.toArray=C,e.toArrayStrict=b,e.toEventObject=Zt,e.toGuard=At,e.toInvokeSource=P,e.toObserver=Se,e.toSCXMLEvent=rr,e.toStatePath=l,e.toStatePaths=S,e.toStateValue=h,e.toTransitionConfigArray=Qt,e.uniqueId=nr,e.updateContext=D,e.updateHistoryStates=M,e.updateHistoryValue=F})(Mi);Object.defineProperty(q,"__esModule",{value:!0});var Z=uo,Ce=co,he=fe,H=Mi,Fi=Gn,vy=H.toSCXMLEvent({type:he.init});function xr(e,t){return t&&t[e]||void 0}function Hn(e,t){var n;if(H.isString(e)||typeof e=="number"){var r=xr(e,t);H.isFunction(r)?n={type:e,exec:r}:r?n=r:n={type:e,exec:void 0}}else if(H.isFunction(e))n={type:e.name||e.toString(),exec:e};else{var r=xr(e.type,t);if(H.isFunction(r))n=Z.__assign(Z.__assign({},e),{exec:r});else if(r){var a=r.type||e.type;n=Z.__assign(Z.__assign(Z.__assign({},r),e),{type:a})}else n=e}return n}var Or=function(e,t){if(!e)return[];var n=H.isArray(e)?e:[e];return n.map(function(r){return Hn(r,t)})};function lo(e){var t=Hn(e);return Z.__assign(Z.__assign({id:H.isString(e)?e:t.id},t),{type:t.type})}function yy(e){return H.isString(e)?{type:he.raise,event:e}:Ct(e,{to:Ce.SpecialTargets.Internal})}function Li(e){return{type:he.raise,_event:H.toSCXMLEvent(e.event)}}function Ct(e,t){return{to:t?t.to:void 0,type:he.send,event:H.isFunction(e)?e:H.toEventObject(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:H.isFunction(e)?e.name:H.getEventType(e)}}function ji(e,t,n,r){var a={_event:n},i=H.toSCXMLEvent(H.isFunction(e.event)?e.event(t,n.data,a):e.event),s;if(H.isString(e.delay)){var u=r&&r[e.delay];s=H.isFunction(u)?u(t,n.data,a):u}else s=H.isFunction(e.delay)?e.delay(t,n.data,a):e.delay;var c=H.isFunction(e.to)?e.to(t,n.data,a):e.to;return Z.__assign(Z.__assign({},e),{to:c,_event:i,event:i.data,delay:s})}function fo(e,t){return Ct(e,Z.__assign(Z.__assign({},t),{to:Ce.SpecialTargets.Parent}))}function Sy(e,t,n){return Ct(t,Z.__assign(Z.__assign({},n),{to:e}))}function wy(){return fo(he.update)}function _y(e,t){return Ct(e,Z.__assign(Z.__assign({},t),{to:function(n,r,a){var i=a._event;return i.origin}}))}var by=function(e,t){return{context:e,event:t}};function Cy(e,t){return e===void 0&&(e=by),{type:he.log,label:t,expr:e}}var zi=function(e,t,n){return Z.__assign(Z.__assign({},e),{value:H.isString(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})},Ay=function(e){return{type:he.cancel,sendId:e}};function Ey(e){var t=lo(e);return{type:Ce.ActionTypes.Start,activity:t,exec:void 0}}function Iy(e){var t=H.isFunction(e)?e:lo(e);return{type:Ce.ActionTypes.Stop,activity:t,exec:void 0}}function Gi(e,t,n){var r=H.isFunction(e.activity)?e.activity(t,n.data):e.activity,a=typeof r=="string"?{id:r}:r,i={type:Ce.ActionTypes.Stop,activity:a};return i}var Ty=function(e){return{type:he.assign,assignment:e}};function $y(e){return typeof e=="object"&&"type"in e}function Py(e,t){var n=t?"#".concat(t):"";return"".concat(Ce.ActionTypes.After,"(").concat(e,")").concat(n)}function Ny(e,t){var n="".concat(Ce.ActionTypes.DoneState,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function ky(e,t){var n="".concat(Ce.ActionTypes.DoneInvoke,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function xy(e,t){var n="".concat(Ce.ActionTypes.ErrorPlatform,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Oy(e){return{type:Ce.ActionTypes.Pure,get:e}}function Uy(e,t){if(!Fi.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,Z.__spreadArray([],Z.__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 Ct(function(r,a){return a},Z.__assign(Z.__assign({},t),{to:e}))}function Ry(e,t){return fo(function(n,r,a){return{type:he.error,data:H.isFunction(e)?e(n,r,a):e}},Z.__assign(Z.__assign({},t),{to:Ce.SpecialTargets.Parent}))}function By(e){return{type:Ce.ActionTypes.Choose,conds:e}}function Ur(e,t,n,r,a,i,s){s===void 0&&(s=!1);var u=Z.__read(s?[[],a]:H.partition(a,function(p){return p.type===he.assign}),2),c=u[0],l=u[1],d=c.length?H.updateContext(n,r,c,t):n,h=s?[n]:void 0,f=H.flatten(l.map(function(p){var g;switch(p.type){case he.raise:return Li(p);case he.send:var m=ji(p,d,r,e.options.delays);return Fi.IS_PRODUCTION||H.warn(!H.isString(p.delay)||typeof m.delay=="number","No delay reference for delay expression '".concat(p.delay,"' was found on machine '").concat(e.id,"'")),m.to!==Ce.SpecialTargets.Internal&&(i==null||i(m,d,r)),m;case he.log:{var v=zi(p,d,r);return i==null||i(v,d,r),v}case he.choose:{var S=p,w=(g=S.conds.find(function(F){var D=H.toGuard(F.cond,e.options.guards);return!D||H.evaluateGuard(e,D,d,r,i?void 0:t)}))===null||g===void 0?void 0:g.actions;if(!w)return[];var _=Z.__read(Ur(e,t,d,r,Or(H.toArray(w),e.options.actions),i,s),2),b=_[0],C=_[1];return d=C,h==null||h.push(d),b}case he.pure:{var w=p.get(d,r.data);if(!w)return[];var E=Z.__read(Ur(e,t,d,r,Or(H.toArray(w),e.options.actions),i,s),2),A=E[0],$=E[1];return d=$,h==null||h.push(d),A}case he.stop:{var v=Gi(p,d,r);return i==null||i(v,d,r),v}case he.assign:{d=H.updateContext(d,r,[p],i?void 0:t),h==null||h.push(d);break}default:var I=Hn(p,e.options.actions),N=I.exec;if(i)i(I,d,r);else if(N&&h){var M=h.length-1;I=Z.__assign(Z.__assign({},I),{exec:function(F){for(var D=[],G=1;G<arguments.length;G++)D[G-1]=arguments[G];N.apply(void 0,Z.__spreadArray([h[M]],Z.__read(D),!1))}})}return I}}).filter(function(p){return!!p}));return[f,d]}q.actionTypes=he;q.after=Py;var ce=q.assign=Ty;q.cancel=Ay;var Vy=q.choose=By;q.done=Ny;q.doneInvoke=ky;q.error=xy;q.escalate=Ry;q.forwardTo=Uy;q.getActionFunction=xr;q.initEvent=vy;q.isActionObject=$y;q.log=Cy;q.pure=Oy;q.raise=yy;q.resolveActions=Ur;q.resolveLog=zi;q.resolveRaise=Li;q.resolveSend=ji;q.resolveStop=Gi;q.respond=_y;q.send=Ct;q.sendParent=fo;q.sendTo=Sy;q.sendUpdate=wy;q.start=Ey;var Dy=q.stop=Iy;q.toActionObject=Hn;q.toActionObjects=Or;q.toActivityDefinition=lo;var dn=function(e){return Dy(e)},My=ce({attributeToVerify:function(e){}}),Fy=ce({challengeName:function(e){}}),Ly=ce({requiredAttributes:function(e){}}),po=ce({remoteError:function(e){return""}}),ho=ce({formValues:function(e){return{}}}),mo=ce({touched:function(e){return{}}}),jy=ce({unverifiedAttributes:function(e){}}),zy=ce({username:function(e){}}),go=ce({validationError:function(e){return{}}}),Gy=ce({challengeName:function(e,t){var n;return(n=t.data)===null||n===void 0?void 0:n.challengeName}}),Hy=ce({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}}),Ky=ce({redirectIntent:function(e){return"confirmPasswordReset"}}),qy=ce({redirectIntent:function(e){return"confirmSignUp"}}),Hi=ce({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=ce({validationError:function(e,t){return t.data}}),yo=ce({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}}),Wy=ce({unverifiedAttributes:function(e,t){return t.data.unverified}}),Ki=ce({user:function(e,t){return t.data.user||t.data}}),Yy=ce({username:function(e,t){var n=e.formValues,r=n.username,a=n.country_code;return a&&(r="".concat(a).concat(r)),r}}),Jy=ce({codeDeliveryDetails:function(e,t){return t.data.codeDeliveryDetails}}),Zy=ce({authAttributes:function(e,t){return{username:e.formValues.username}}}),So=ce({formValues:function(e,t){var n,r=t.data,a=r.name,i=r.value;return U(U({},e.formValues),((n={})[a]=i,n))}}),wo=ce({formValues:function(e,t){return U(U({},e.formValues),t.data)}}),_o=ce({touched:function(e,t){var n,r=t.data.name;return U(U({},e.touched),((n={})["".concat(r)]=!0,n))}}),qi=ce({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}}),Qy=ke,Xy=zr,eS=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tS=/^\w*$/;function nS(e,t){if(Qy(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Xy(e)?!0:tS.test(e)||!eS.test(e)||t!=null&&e in Object(t)}var bo=nS,Wi=qr,rS="Expected a function";function Co(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(rS);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||Wi),n}Co.Cache=Wi;var oS=Co,aS=oS,iS=500;function sS(e){var t=aS(e,function(r){return n.size===iS&&n.clear(),r}),n=t.cache;return t}var uS=sS,cS=uS,lS=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,dS=/\\(\\)?/g,fS=cS(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(lS,function(n,r,a,i){t.push(a?i.replace(dS,"$1"):r||n)}),t}),pS=fS,Aa=Ft,hS=Xa,mS=ke,gS=zr,vS=1/0,Ea=Aa?Aa.prototype:void 0,Ia=Ea?Ea.toString:void 0;function Yi(e){if(typeof e=="string")return e;if(mS(e))return hS(e,Yi)+"";if(gS(e))return Ia?Ia.call(e):"";var t=e+"";return t=="0"&&1/e==-vS?"-0":t}var yS=Yi,SS=yS;function wS(e){return e==null?"":SS(e)}var _S=wS,bS=ke,CS=bo,AS=pS,ES=_S;function IS(e,t){return bS(e)?e:CS(e,t)?[e]:AS(ES(e))}var Kn=IS,TS=zr,$S=1/0;function PS(e){if(typeof e=="string"||TS(e))return e;var t=e+"";return t=="0"&&1/e==-$S?"-0":t}var qt=PS,NS=Kn,kS=qt;function xS(e,t){t=NS(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[kS(t[n++])];return n&&n==r?e:void 0}var Ao=xS,OS=Ao;function US(e,t,n){var r=e==null?void 0:OS(e,t);return r===void 0?n:r}var Ge=US,RS=ri,BS=Ht,VS=On,DS=ke,MS=Lt,FS=Xe.exports,LS=Bn,jS=Rn,zS="[object Map]",GS="[object Set]",HS=Object.prototype,KS=HS.hasOwnProperty;function qS(e){if(e==null)return!0;if(MS(e)&&(DS(e)||typeof e=="string"||typeof e.splice=="function"||FS(e)||jS(e)||VS(e)))return!e.length;var t=BS(e);if(t==zS||t==GS)return!e.size;if(LS(e))return!RS(e).length;for(var n in e)if(KS.call(e,n))return!1;return!0}var Rr=qS,WS=Wr,YS=jt;function JS(e,t,n){(n!==void 0&&!YS(e[t],n)||n===void 0&&!(t in e))&&WS(e,t,n)}var Ji=JS;function ZS(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 QS=ZS,XS=QS,ew=XS(),tw=ew,nw=Lt,rw=Ke;function ow(e){return rw(e)&&nw(e)}var aw=ow,iw=mt,sw=Zr,uw=Ke,cw="[object Object]",lw=Function.prototype,dw=Object.prototype,Zi=lw.toString,fw=dw.hasOwnProperty,pw=Zi.call(Object);function hw(e){if(!uw(e)||iw(e)!=cw)return!1;var t=sw(e);if(t===null)return!0;var n=fw.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Zi.call(n)==pw}var mw=hw;function gw(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Qi=gw,vw=zt,yw=Gt;function Sw(e){return vw(e,yw(e))}var ww=Sw,Ta=Ji,_w=bn.exports,bw=vi,Cw=ui,Aw=yi,$a=On,Pa=ke,Ew=aw,Iw=Xe.exports,Tw=Lr,$w=Be,Pw=mw,Nw=Rn,Na=Qi,kw=ww;function xw(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),p=!f&&Iw(c),g=!f&&!p&&Nw(c);d=c,f||p||g?Pa(u)?d=u:Ew(u)?d=Cw(u):p?(h=!1,d=_w(c,!0)):g?(h=!1,d=bw(c,!0)):d=[]:Pw(c)||$a(c)?(d=u,$a(u)?d=kw(u):(!$w(u)||Tw(u))&&(d=Aw(c))):h=!1}h&&(s.set(c,d),a(d,c,r,i,s),s.delete(c)),Ta(e,n,d)}var Ow=xw,Uw=jn,Rw=Ji,Bw=tw,Vw=Ow,Dw=Be,Mw=Gt,Fw=Qi;function Xi(e,t,n,r,a){e!==t&&Bw(t,function(i,s){if(a||(a=new Uw),Dw(i))Vw(e,t,s,n,Xi,r,a);else{var u=r?r(Fw(e,s),i,s+"",e,t,a):void 0;u===void 0&&(u=i),Rw(e,s,u)}},Mw)}var Lw=Xi;function jw(e){return e}var Eo=jw;function zw(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 Gw=zw,Hw=Gw,ka=Math.max;function Kw(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),Hw(e,this,u)}}var qw=Kw;function Ww(e){return function(){return e}}var Yw=Ww,Jw=Yw,xa=si,Zw=Eo,Qw=xa?function(e,t){return xa(e,"toString",{configurable:!0,enumerable:!1,value:Jw(t),writable:!0})}:Zw,Xw=Qw,e1=800,t1=16,n1=Date.now;function r1(e){var t=0,n=0;return function(){var r=n1(),a=t1-(r-n);if(n=r,a>0){if(++t>=e1)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var o1=r1,a1=Xw,i1=o1,s1=i1(a1),u1=s1,c1=Eo,l1=qw,d1=u1;function f1(e,t){return d1(l1(e,t,c1),e+"")}var p1=f1,h1=jt,m1=Lt,g1=Un,v1=Be;function y1(e,t,n){if(!v1(n))return!1;var r=typeof t;return(r=="number"?m1(n)&&g1(t,n.length):r=="string"&&t in n)?h1(n[t],e):!1}var S1=y1,w1=p1,_1=S1;function b1(e){return w1(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&&_1(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 C1=b1,A1=Lw,E1=C1,I1=E1(function(e,t,n){A1(e,t,n)}),T1=I1,Io=function(e,t,n,r){return Y(void 0,void 0,void 0,function(){var a,i;return J(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=T1.apply(void 0,Oe([{}],a,!1)),Rr(i)?[2,Promise.resolve()]:[2,Promise.reject(i)]}})})},$n={getAmplifyConfig:function(){return Y(this,void 0,void 0,function(){return J(this,function(e){return[2,le.Amplify.configure()]})})},getCurrentUser:function(){return Y(this,void 0,void 0,function(){return J(this,function(e){return[2,le.Auth.currentAuthenticatedUser()]})})},handleSignUp:function(e){return Y(this,void 0,void 0,function(){return J(this,function(t){return[2,le.Auth.signUp(e)]})})},handleSignIn:function(e){var t=e.username,n=e.password;return Y(this,void 0,void 0,function(){return J(this,function(r){return[2,le.Auth.signIn(t,n)]})})},handleConfirmSignIn:function(e){var t=e.user,n=e.code,r=e.mfaType;return Y(this,void 0,void 0,function(){return J(this,function(a){return[2,le.Auth.confirmSignIn(t,n,r)]})})},handleConfirmSignUp:function(e){var t=e.username,n=e.code;return Y(this,void 0,void 0,function(){return J(this,function(r){switch(r.label){case 0:return[4,le.Auth.confirmSignUp(t,n)];case 1:return[2,r.sent()]}})})},handleForgotPasswordSubmit:function(e){var t=e.username,n=e.code,r=e.password;return Y(this,void 0,void 0,function(){return J(this,function(a){return[2,le.Auth.forgotPasswordSubmit(t,n,r)]})})},handleForgotPassword:function(e){return Y(this,void 0,void 0,function(){return J(this,function(t){return[2,le.Auth.forgotPassword(e)]})})},validateCustomSignUp:function(e,t){return Y(this,void 0,void 0,function(){return J(this,function(n){return[2]})})},validateFormPassword:function(e,t,n){return Y(this,void 0,void 0,function(){var r,a,i,s;return J(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":El(r)||a.push("Password must have special characters")}}),[2,a.length!==0?{password:a}:null]):[2,null]})})},validateConfirmPassword:function(e,t){return Y(this,void 0,void 0,function(){var n,r,a,i;return J(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 Y(this,void 0,void 0,function(){return J(this,function(n){return[2]})})}};function $1(e){var t=e.services;return Kt({initial:"init",id:"signInActor",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:My,clearChallengeName:Fy,clearRequiredAttributes:Ly,clearError:po,clearFormValues:ho,clearTouched:mo,clearUnverifiedAttributes:jy,clearValidationError:go,handleInput:So,handleSubmit:wo,handleBlur:_o,parsePhoneNumber:qi,setChallengeName:Gy,setConfirmResetPasswordIntent:Ky,setConfirmSignUpIntent:qy,setRequiredAttributes:Hy,setCredentials:Hi,setFieldErrors:vo,setRemoteError:yo,setUnverifiedAttributes:Wy,setUser:Ki,setUsernameAuthAttributes:Zy,sendUpdate:so()},guards:{shouldConfirmSignIn:function(n,r){var a=Ge(r,"data.challengeName");return[ze.SMS_MFA,ze.SOFTWARE_TOKEN_MFA].includes(a)},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 Ge(r,"data.challengeName")===ze.MFA_SETUP},shouldForceChangePassword:function(n,r){return Ge(r,"data.challengeName")===ze.NEW_PASSWORD_REQUIRED},shouldRequestVerification:function(n,r){var a=r.data,i=a.unverified,s=a.verified;return Rr(s)&&!Rr(i)}},services:{signIn:function(n){return Y(this,void 0,void 0,function(){var r,a,i,s,u,c,l;return J(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,r){return Y(this,void 0,void 0,function(){var a,i,s,u;return J(this,function(c){switch(c.label){case 0:return a=n.challengeName,i=n.user,s=n.formValues.confirmation_code,a!==ze.SMS_MFA&&a!==ze.SOFTWARE_TOKEN_MFA||(u=a),[4,t.handleConfirmSignIn({user:i,code:s,mfaType:u})];case 1:return c.sent(),[4,le.Auth.currentAuthenticatedUser()];case 2:return[2,c.sent()]}})})},forceNewPassword:function(n,r){return Y(this,void 0,void 0,function(){var a,i,s,u,c,l,d,h,f;return J(this,function(p){switch(p.label){case 0:a=n.user,i=n.formValues,s=i.password,i.confirm_password,u=i.phone_number,c=i.country_code,l=oi(i,["password","confirm_password","phone_number","country_code"]),u&&(d="".concat(c).concat(u).replace(/[^A-Z0-9+]/gi,""),l=U(U({},l),{phone_number:d})),p.label=1;case 1:return p.trys.push([1,3,,4]),[4,le.Auth.completeNewPassword(a,s,l)];case 2:return(h=p.sent()).challengeName?[2,h]:[2,le.Auth.currentAuthenticatedUser()];case 3:return f=p.sent(),[2,Promise.reject(f)];case 4:return[2]}})})},verifyTotpToken:function(n,r){return Y(this,void 0,void 0,function(){var a,i;return J(this,function(s){return a=n.user,i=n.formValues.confirmation_code,[2,le.Auth.verifyTotpToken(a,i)]})})},federatedSignIn:function(n,r){return Y(this,void 0,void 0,function(){var a;return J(this,function(i){switch(i.label){case 0:return a=r.data.provider,[4,le.Auth.federatedSignIn({provider:a})];case 1:return[2,i.sent()]}})})},checkVerifiedContact:function(n,r){return Y(this,void 0,void 0,function(){var a;return J(this,function(i){switch(i.label){case 0:return a=n.user,[4,le.Auth.verifiedContact(a)];case 1:return[2,i.sent()]}})})},verifyUser:function(n,r){return Y(this,void 0,void 0,function(){var a,i;return J(this,function(s){switch(s.label){case 0:return a=n.formValues.unverifiedAttr,[4,le.Auth.verifyCurrentUserAttribute(a)];case 1:return i=s.sent(),n.attributeToVerify=a,[2,i]}})})},confirmVerifyUser:function(n,r){return Y(this,void 0,void 0,function(){var a,i;return J(this,function(s){switch(s.label){case 0:return a=n.attributeToVerify,i=n.formValues.confirmation_code,[4,le.Auth.verifyCurrentUserAttributeSubmit(a,i)];case 1:return[2,s.sent()]}})})},validateFields:function(n,r){return Y(this,void 0,void 0,function(){return J(this,function(a){return[2,Io(n.formValues,n.touched,n.passwordSettings,[$n.validateConfirmPassword])]})})}}})}var P1=Kt({initial:"pending",id:"signOutActor",states:{pending:{tags:["pending"],invoke:{src:"signOut",onDone:"resolved",onError:"rejected"}},resolved:{type:"final"},rejected:{type:"final"}}},{services:{signOut:function(){return le.Auth.signOut()}}});function N1(e){var t=e.services;return Kt({id:"resetPasswordActor",initial:"init",states:{init:{always:[{target:"confirmResetPassword",cond:"shouldAutoConfirmReset"},{target:"resetPassword"}]},resetPassword:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},submit:{tags:["pending"],entry:["sendUpdate","setUsername","clearError"],invoke:{src:"resetPassword",onDone:{target:"#resetPasswordActor.confirmResetPassword"},onError:{actions:["setRemoteError"],target:"edit"}}}}},confirmResetPassword:{type:"parallel",exit:["clearFormValues","clearError","clearUsername","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateFields",onDone:{target:"valid",actions:"clearValidationError"},onError:{target:"invalid",actions:"setFieldErrors"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"},RESEND:"resendCode",CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},validate:{entry:"sendUpdate",invoke:{src:"validateFields",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},resendCode:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"resetPassword",onDone:{target:"idle"},onError:{actions:"setRemoteError",target:"idle"}}},pending:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"confirmResetPassword",onDone:{actions:"clearUsername",target:"#resetPasswordActor.resolved"},onError:{actions:"setRemoteError",target:"idle"}}}}}}},resolved:{type:"final"}}},{actions:{clearError:po,clearFormValues:ho,clearTouched:mo,clearUsername:zy,clearValidationError:go,handleInput:So,handleSubmit:wo,handleBlur:_o,setFieldErrors:vo,setRemoteError:yo,setUsername:Yy,sendUpdate:so()},guards:{shouldAutoConfirmReset:function(n,r){return!(!n.intent||n.intent!=="confirmPasswordReset")}},services:{resetPassword:function(n){return Y(this,void 0,void 0,function(){var r;return J(this,function(a){return r=n.username,[2,t.handleForgotPassword(r)]})})},confirmResetPassword:function(n){return Y(this,void 0,void 0,function(){var r,a,i,s;return J(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 Y(this,void 0,void 0,function(){return J(this,function(a){return[2,Io(n.formValues,n.touched,n.passwordSettings,[$n.validateConfirmPassword])]})})}}})}var k1="__lodash_hash_undefined__";function x1(e){return this.__data__.set(e,k1),this}var O1=x1;function U1(e){return this.__data__.has(e)}var R1=U1,B1=qr,V1=O1,D1=R1;function Pn(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new B1;++t<n;)this.add(e[t])}Pn.prototype.add=Pn.prototype.push=V1;Pn.prototype.has=D1;var M1=Pn;function F1(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 L1=F1;function j1(e,t){return e.has(t)}var z1=j1,G1=M1,H1=L1,K1=z1,q1=1,W1=2;function Y1(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,p=n&W1?new G1:void 0;for(i.set(e,t),i.set(t,e);++h<u;){var g=e[h],m=t[h];if(r)var v=s?r(m,g,h,t,e,i):r(g,m,h,e,t,i);if(v!==void 0){if(v)continue;f=!1;break}if(p){if(!H1(t,function(S,w){if(!K1(p,w)&&(g===S||a(g,S,n,r,i)))return p.push(w)})){f=!1;break}}else if(!(g===m||a(g,m,n,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var es=Y1;function J1(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}var Z1=J1;function Q1(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var X1=Q1,Oa=Ft,Ua=gi,e_=jt,t_=es,n_=Z1,r_=X1,o_=1,a_=2,i_="[object Boolean]",s_="[object Date]",u_="[object Error]",c_="[object Map]",l_="[object Number]",d_="[object RegExp]",f_="[object Set]",p_="[object String]",h_="[object Symbol]",m_="[object ArrayBuffer]",g_="[object DataView]",Ra=Oa?Oa.prototype:void 0,cr=Ra?Ra.valueOf:void 0;function v_(e,t,n,r,a,i,s){switch(n){case g_:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case m_:return!(e.byteLength!=t.byteLength||!i(new Ua(e),new Ua(t)));case i_:case s_:case l_:return e_(+e,+t);case u_:return e.name==t.name&&e.message==t.message;case d_:case p_:return e==t+"";case c_:var u=n_;case f_:var c=r&o_;if(u||(u=r_),e.size!=t.size&&!c)return!1;var l=s.get(e);if(l)return l==t;r|=a_,s.set(e,t);var d=t_(u(e),u(t),r,a,i,s);return s.delete(e),d;case h_:if(cr)return cr.call(e)==cr.call(t)}return!1}var y_=v_,Ba=pi,S_=1,w_=Object.prototype,__=w_.hasOwnProperty;function b_(e,t,n,r,a,i){var s=n&S_,u=Ba(e),c=u.length,l=Ba(t),d=l.length;if(c!=d&&!s)return!1;for(var h=c;h--;){var f=u[h];if(!(s?f in t:__.call(t,f)))return!1}var p=i.get(e),g=i.get(t);if(p&&g)return p==t&&g==e;var m=!0;i.set(e,t),i.set(t,e);for(var v=s;++h<c;){f=u[h];var S=e[f],w=t[f];if(r)var _=s?r(w,S,f,t,e,i):r(S,w,f,e,t,i);if(!(_===void 0?S===w||a(S,w,n,r,i):_)){m=!1;break}v||(v=f=="constructor")}if(m&&!v){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 C_=b_,lr=jn,A_=es,E_=y_,I_=C_,Va=Ht,Da=ke,Ma=Xe.exports,T_=Rn,$_=1,Fa="[object Arguments]",La="[object Array]",fn="[object Object]",P_=Object.prototype,ja=P_.hasOwnProperty;function N_(e,t,n,r,a,i){var s=Da(e),u=Da(t),c=s?La:Va(e),l=u?La:Va(t);c=c==Fa?fn:c,l=l==Fa?fn:l;var d=c==fn,h=l==fn,f=c==l;if(f&&Ma(e)){if(!Ma(t))return!1;s=!0,d=!1}if(f&&!d)return i||(i=new lr),s||T_(e)?A_(e,t,n,r,a,i):E_(e,t,c,n,r,a,i);if(!(n&$_)){var p=d&&ja.call(e,"__wrapped__"),g=h&&ja.call(t,"__wrapped__");if(p||g){var m=p?e.value():e,v=g?t.value():t;return i||(i=new lr),a(m,v,n,r,i)}}return f?(i||(i=new lr),I_(e,t,n,r,a,i)):!1}var k_=N_,x_=k_,za=Ke;function ts(e,t,n,r,a){return e===t?!0:e==null||t==null||!za(e)&&!za(t)?e!==e&&t!==t:x_(e,t,n,r,ts,a)}var ns=ts,O_=jn,U_=ns,R_=1,B_=2;function V_(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 O_;if(r)var f=r(l,d,c,e,t,h);if(!(f===void 0?U_(d,l,R_|B_,r,h):f))return!1}}return!0}var D_=V_,M_=Be;function F_(e){return e===e&&!M_(e)}var rs=F_,L_=rs,j_=Vn;function z_(e){for(var t=j_(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,L_(a)]}return t}var G_=z_;function H_(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var os=H_,K_=D_,q_=G_,W_=os;function Y_(e){var t=q_(e);return t.length==1&&t[0][2]?W_(t[0][0],t[0][1]):function(n){return n===e||K_(n,e,t)}}var J_=Y_;function Z_(e,t){return e!=null&&t in Object(e)}var Q_=Z_,X_=Kn,eb=On,tb=ke,nb=Un,rb=jr,ob=qt;function ab(e,t,n){t=X_(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var s=ob(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&&rb(a)&&nb(s,a)&&(tb(e)||eb(e)))}var ib=ab,sb=Q_,ub=ib;function cb(e,t){return e!=null&&ub(e,t,sb)}var lb=cb,db=ns,fb=Ge,pb=lb,hb=bo,mb=rs,gb=os,vb=qt,yb=1,Sb=2;function wb(e,t){return hb(e)&&mb(t)?gb(vb(e),t):function(n){var r=fb(n,e);return r===void 0&&r===t?pb(n,e):db(t,r,yb|Sb)}}var _b=wb;function bb(e){return function(t){return t==null?void 0:t[e]}}var Cb=bb,Ab=Ao;function Eb(e){return function(t){return Ab(t,e)}}var Ib=Eb,Tb=Cb,$b=Ib,Pb=bo,Nb=qt;function kb(e){return Pb(e)?Tb(Nb(e)):$b(e)}var xb=kb,Ob=J_,Ub=_b,Rb=Eo,Bb=ke,Vb=xb;function Db(e){return typeof e=="function"?e:e==null?Rb:typeof e=="object"?Bb(e)?Ub(e[0],e[1]):Ob(e):Vb(e)}var Mb=Db,Fb=Yr,Lb=Kn,jb=Un,Ga=Be,zb=qt;function Gb(e,t,n,r){if(!Ga(e))return e;t=Lb(t,e);for(var a=-1,i=t.length,s=i-1,u=e;u!=null&&++a<i;){var c=zb(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=Ga(d)?d:jb(t[a+1])?[]:{})}Fb(u,c,l),u=u[c]}return e}var Hb=Gb,Kb=Ao,qb=Hb,Wb=Kn;function Yb(e,t,n){for(var r=-1,a=t.length,i={};++r<a;){var s=t[r],u=Kb(e,s);n(u,s)&&qb(i,Wb(s,e),u)}return i}var Jb=Yb,Zb=Xa,Qb=Mb,Xb=Jb,e0=hi;function t0(e,t){if(e==null)return{};var n=Zb(e0(e),function(r){return[r]});return t=Qb(t),Xb(e,n,function(r,a){return t(r,a[0])})}var n0=t0;function r0(e){var t=e.services;return Kt({id:"signUpActor",initial:"init",states:{init:{always:[{target:"confirmSignUp",cond:"shouldInitConfirmSignUp"},{target:"signUp"}]},signUp:{type:"parallel",exit:["clearError","clearFormValues","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateSignUp",onDone:{target:"valid",actions:"clearValidationError"},onError:{target:"invalid",actions:"setFieldErrors"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"},FEDERATED_SIGN_IN:"federatedSignIn"}},federatedSignIn:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"federatedSignIn",onDone:"#signUpActor.resolved",onError:{actions:"setRemoteError"}}},validate:{entry:"sendUpdate",invoke:{src:"validateSignUp",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},pending:{tags:["pending"],entry:["parsePhoneNumber","sendUpdate","clearError"],invoke:{src:"signUp",onDone:[{cond:"shouldSkipConfirm",target:"skipConfirm",actions:["setUser","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:Ge(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:So,handleSubmit:wo,handleBlur:_o,parsePhoneNumber:qi,setCredentials:Hi,setFieldErrors:vo,setRemoteError:yo,setCodeDeliveryDetails:Jy,setUser:Ki,sendUpdate:so(),setAutoSignInIntent:Ie({intent:function(n){return"autoSignIn"}})},services:{confirmSignUp:function(n,r){return Y(this,void 0,void 0,function(){var a,i,s,u,c;return J(this,function(l){switch(l.label){case 0:return a=n.user,i=n.authAttributes,s=n.formValues,u=s.confirmation_code,c=Ge(a,"username")||Ge(i,"username"),[4,t.handleConfirmSignUp({username:c,code:u})];case 1:return[2,l.sent()]}})})},resendConfirmationCode:function(n,r){return Y(this,void 0,void 0,function(){var a,i,s;return J(this,function(u){return a=n.user,i=n.authAttributes,s=Ge(a,"username")||Ge(i,"username"),[2,le.Auth.resendSignUp(s)]})})},federatedSignIn:function(n,r){return Y(this,void 0,void 0,function(){var a;return J(this,function(i){switch(i.label){case 0:return a=r.data.provider,[4,le.Auth.federatedSignIn({provider:a})];case 1:return[2,i.sent()]}})})},signUp:function(n,r){return Y(this,void 0,void 0,function(){var a,i,s,u,c,l,d;return J(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=n0(a,function(f,p){switch(p){case"address":case"birthdate":case"email":case"family_name":case"gender":case"given_name":case"locale":case"middle_name":case"name":case"nickname":case"phone_number":case"picture":case"preferred_username":case"profile":case"updated_at":case"website":case"zoneinfo":return!0;default:return p.startsWith("custom:")}}),[4,t.handleSignUp({username:c,password:l,attributes:d})];case 1:return[2,h.sent()]}})})},validateSignUp:function(n,r){return Y(this,void 0,void 0,function(){return J(this,function(a){return[2,Io(n.formValues,n.touched,n.passwordSettings,[t.validateFormPassword,t.validateConfirmPassword,t.validatePreferredUsername,t.validateCustomSignUp])]})})}}})}function o0(){return Kt({id:"authenticator",initial:"idle",context:{user:void 0,config:{},services:$n,actorRef:void 0,hasSetup:!1},states:{idle:{invoke:{src:"getCurrentUser",onDone:{actions:"setUser",target:"authenticated"},onError:{target:"setup"}}},setup:{initial:"waitConfig",states:{waitConfig:{on:{INIT:{actions:["configure","setHasSetup"],target:"applyConfig"}}},applyConfig:{invoke:{src:"getAmplifyConfig",onDone:{actions:"applyAmplifyConfig",target:"goToInitialState"}}},goToInitialState:{always:[{target:"#authenticator.signUp",cond:"isInitialStateSignUp"},{target:"#authenticator.resetPassword",cond:"isInitialStateResetPassword"},{target:"#authenticator.signIn"}]}}},signIn:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignInActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:"stopSignInActor"}},on:{SIGN_UP:"signUp",RESET_PASSWORD:"resetPassword","done.invoke.signInActor":[{target:"signUp",actions:"setActorDoneData",cond:"shouldRedirectToSignUp"},{target:"resetPassword",actions:"setActorDoneData",cond:"shouldRedirectToResetPassword"},{target:"authenticated",actions:"setActorDoneData"}]}},signUp:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignUpActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:"stopSignUpActor"},autoSignIn:{invoke:{src:"getCurrentUser",onDone:"#authenticator.authenticated",onError:"#authenticator.setup.goToInitialState"}}},on:{SIGN_IN:"signIn","done.invoke.signUpActor":{target:"#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:Vy([{cond:"hasActor",actions:qv(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:[],p=(u=(s=t.data.aws_cognito_signup_attributes)===null||s===void 0?void 0:s.map(function(C){return C.toLowerCase()}))!==null&&u!==void 0?u:[],g=(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 v=e.config,S=v.loginMechanisms,w=v.signUpAttributes,_=v.socialProviders,b=v.initialState;return{loginMechanisms:S!=null?S:h,formFields:(d=a0(v.formFields))!==null&&d!==void 0?d:{},passwordSettings:m,signUpAttributes:w!=null?w:Array.from(new Set(Oe(Oe([],f,!0),p,!0))),socialProviders:_!=null?_:g.sort(),initialState:b}}}),spawnSignInActor:Ie({actorRef:function(e,t){var n,r,a,i,s,u,c=e.services,l=$1({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 un(l,{name:"signInActor"})}}),spawnSignUpActor:Ie({actorRef:function(e,t){var n,r,a,i,s,u,c,l=e.services,d=r0({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 un(d,{name:"signUpActor"})}}),spawnResetPasswordActor:Ie({actorRef:function(e,t){var n,r,a,i,s=e.services,u=N1({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 un(u,{name:"resetPasswordActor"})}}),spawnSignOutActor:Ie({actorRef:function(e){var t=P1.withContext({user:e.user});return un(t,{name:"signOutActor"})}}),stopSignInActor:dn("signInActor"),stopSignUpActor:dn("signUpActor"),stopResetPasswordActor:dn("resetPasswordActor"),stopSignOutActor:dn("signOutActor"),configure:Ie(function(e,t){var n=t.data,r=n.services,a=oi(n,["services"]);return{services:U(U({},$n),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 a0(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 i0={key:0,class:"amplify-flex amplify-alert amplify-alert--error amplify-authenticator__base","data-variation":"error",role:"alert"},s0={class:"amplify-flex amplify-authenticator__icon-wrapper"},u0=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),c0=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),De={__name:"base-alert",setup(e){const t=o.ref(!0),n=R("Dismiss alert");function r(){t.value=!1}return(a,i)=>{const s=we;return t.value?(o.openBlock(),o.createElementBlock("div",i0,[o.createElementVNode("div",s0,[u0,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(()=>[c0]),_:1},8,["aria-label"])])):o.createCommentVNode("",!0)}}};var qn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n};const l0={};function d0(e,t){return o.openBlock(),o.createElementBlock("div",null,[o.renderSlot(e.$slots,"default")])}var ye=qn(l0,[["render",d0]]);const Me=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)])}}),Fe=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 f0(e){return o.getCurrentScope()?(o.onScopeDispose(e),!0):!1}function Te(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))),f0(a),n)}var Nn=globalThis&&globalThis.__assign||function(){return Nn=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},Nn.apply(this,arguments)},p0=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 h0(e,t,n){if(typeof e=="object")return e;var r=function(){};return{next:e,error:t||r,complete:n||r}}function m0(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=p0(t,["context","guards","actions","activities","services","delays","state"]),f={context:a,guards:i,actions:s,activities:u,services:c,delays:l},p=r.withConfig(f,function(){return Nn(Nn({},r.context),a)}),g=Di(p,h).start(d?Ne.create(d):void 0),m;return o.onMounted(function(){n&&(m=g.subscribe(h0(n)))}),o.onBeforeUnmount(function(){g.stop(),m==null||m.unsubscribe()}),g}function g0(e){return"state"in e}var Ha=function(){};function v0(e){return"getSnapshot"in e?e.getSnapshot():g0(e)?e.state:void 0}function as(e,t){t===void 0&&(t=v0);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:Ha,complete:Ha}).unsubscribe;u(function(){return c()})},{immediate:!0}),{state:r,send:a}}const is={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},Br=o.ref(),_n=o.reactive({...is,send:"",state:""}),$e=e=>(e&&(Br.value=e),as(Br.value)),y0=()=>(Ka(),o.watchEffect(()=>{Ka()}),_n),Ae=y0;function Ka(){if(!Br.value)return;const{state:e,send:t}=$e(),n=ai({send:t,state:e.value});for(const r of Object.keys(is))_n[r]=n[r];_n.send=t,_n.state=e}const pn=o.defineComponent({__name:"federated-sign-in-button",props:{provider:String},setup(e){const t=e,{provider:n}=o.toRefs(t),{send:r}=$e(),a=()=>{r({type:"FEDERATED_SIGN_IN",data:{provider:n==null?void 0:n.value}})};return(i,s)=>{const u=ye,c=we;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})}}}),S0=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),w0={class:"amplify-text amplify-authenticator__federated-text"},_0=o.createElementVNode("svg",{"aria-label":"Apple icon",class:"amplify-icon federated-sign-in-icon",fill:"#000",preserveAspectRatio:"xMidYMid",stroke:"#000",strokeWidth:"0",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M747.4 535.7c-.4-68.2 30.5-119.6 92.9-157.5-34.9-50-87.7-77.5-157.3-82.8-65.9-5.2-138 38.4-164.4 38.4-27.9 0-91.7-36.6-141.9-36.6C273.1 298.8 163 379.8 163 544.6c0 48.7 8.9 99 26.7 150.8 23.8 68.2 109.6 235.3 199.1 232.6 46.8-1.1 79.9-33.2 140.8-33.2 59.1 0 89.7 33.2 141.9 33.2 90.3-1.3 167.9-153.2 190.5-221.6-121.1-57.1-114.6-167.2-114.6-170.7zm-105.1-305c50.7-60.2 46.1-115 44.6-134.7-44.8 2.6-96.6 30.5-126.1 64.8-32.5 36.8-51.6 82.3-47.5 133.6 48.4 3.7 92.6-21.2 129-63.7z"})],-1),b0={class:"amplify-text amplify-authenticator__federated-text"},C0=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),A0={class:"amplify-text amplify-authenticator__federated-text"},E0=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),I0={class:"amplify-text amplify-authenticator__federated-text"},T0=o.createElementVNode("hr",{class:"amplify-divider amplify-divider--label amplify-divider--small","aria-orientation":"horizontal","data-size":"small","data-label":"or"},null,-1),Wn=o.defineComponent({__name:"federated-sign-in",setup(e){var S;const{state:t}=$e(),n=Te(Ae),{route:r}=n(),{value:{context:a}}=t,i=(S=a==null?void 0:a.config)==null?void 0:S.socialProviders,s=i==null?void 0:i.includes("amazon"),u=i==null?void 0:i.includes("apple"),c=i==null?void 0:i.includes("facebook"),l=i==null?void 0:i.includes("google"),d=c||l||s||u,h=r==="signUp"?"Up":"In",f=o.computed(()=>gr),p=o.computed(()=>R(`Sign ${h} with Amazon`)),g=o.computed(()=>R(`Sign ${h} with Apple`)),m=o.computed(()=>R(`Sign ${h} with Facebook`)),v=o.computed(()=>R(`Sign ${h} with Google`));return(w,_)=>{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(pn,{key:0,provider:o.unref(f).Amazon},{default:o.withCtx(()=>[S0,o.createElementVNode("p",w0,o.toDisplayString(o.unref(p)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),o.unref(u)?(o.openBlock(),o.createBlock(pn,{key:1,provider:o.unref(f).Apple},{default:o.withCtx(()=>[_0,o.createElementVNode("p",b0,o.toDisplayString(o.unref(g)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),o.unref(c)?(o.openBlock(),o.createBlock(pn,{key:2,provider:o.unref(f).Facebook},{default:o.withCtx(()=>[C0,o.createElementVNode("p",A0,o.toDisplayString(o.unref(m)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),o.unref(l)?(o.openBlock(),o.createBlock(pn,{key:3,provider:o.unref(f).Google},{default:o.withCtx(()=>[E0,o.createElementVNode("p",I0,o.toDisplayString(o.unref(v)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),T0]),_:1})):o.createCommentVNode("",!0)}}});let $0=(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 P0={},N0={"data-amplify-label":""};function k0(e,t){return o.openBlock(),o.createElementBlock("label",N0,[o.renderSlot(e.$slots,"default")])}var Yn=qn(P0,[["render",k0]]);const Jn=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))}}),x0=["aria-label"],O0={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},U0=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),R0=[U0],B0={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},V0=o.createElementVNode("path",{d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z",fill:"none"},null,-1),D0=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),M0=[V0,D0],F0={inheritAttrs:!1},To=o.defineComponent({...F0,__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 w;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:p}=o.toRefs(t);let g=o.ref("");function m(){i.value=i.value===n?r:n,a.value=a.value==="password"?"text":"password"}const v=R((w=f==null?void 0:f.value)!=null?w:c.value),S=R(c.value);return(_,b)=>{const C=Yn,E=Jn,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(S)),1)]),_:1},8,["class","for"]),o.createVNode(A,{class:"amplify-flex amplify-field-group"},{default:o.withCtx(()=>{var I;return[o.createVNode(E,o.mergeProps(_.$attrs,{modelValue:o.unref(g),"onUpdate:modelValue":b[0]||(b[0]=N=>o.isRef(g)?g.value=N:g=N),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:(I=o.unref(p))!=null?I:!0,placeholder:o.unref(v),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",O0,R0)):(o.openBlock(),o.createElementBlock("svg",B0,M0))],8,x0)]),_:1})]}),_:1})]}),_:1})}}}),L0=["value","selected"],j0=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,L0))),128))],32))}}),z0=o.createTextVNode(o.toDisplayString("Country Code")),G0=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),H0=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,p)=>{const g=Yn,m=j0,v=ye,S=Jn;return o.openBlock(),o.createBlock(v,{class:"amplify-flex amplify-field amplify-textfield amplify-phonenumberfield amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(g,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(v,{class:"amplify-flex amplify-field-group"},{default:o.withCtx(()=>[o.createVNode(v,{class:"amplify-field-group__outer-start"},{default:o.withCtx(()=>[e.type==="tel"?(o.openBlock(),o.createBlock(v,{key:0,class:"amplify-flex amplify-field amplify-selectfield amplify-countrycodeselect amplify-dialcodeselect amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(g,o.mergeProps({for:"amplify-field-"+o.unref(h),class:"amplify-label amplify-visually-hidden"},f.$attrs),{default:o.withCtx(()=>[z0]),_:1},16,["for"]),o.createVNode(v,{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(v,{class:"amplify-flex amplify-select__icon-wrapper amplify-authenticator__icon-wrapper"},{default:o.withCtx(()=>[G0]),_:1})]),_:1})]),_:1})):o.createCommentVNode("",!0)]),_:1}),o.createVNode(v,{class:"amplify-field-group__field-wrapper"},{default:o.withCtx(()=>{var w;return[o.createVNode(S,{class:"amplify-input amplify-field-group__control",id:"amplify-field-"+o.unref(d),autocomplete:o.unref(i),name:o.unref(r),required:(w=o.unref(u))!=null?w:!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})}}}),K0=["id"],ss=o.defineComponent({__name:"base-form-field",props:{name:{default:""},formField:{default:()=>({})}},setup(e){const t=e,{name:n,formField:r}=o.toRefs(t),a=Te(Ae),{validationErrors:i}=o.toRefs(a()),{type:s}=r.value,u=s==="password",c=$0(12),l=o.computed(()=>bl(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,p)=>(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(H0,{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),(g,m)=>(o.openBlock(),o.createElementBlock("p",{key:m,role:"alert","data-variation":"error",class:"amplify-text amplify-text--error"},o.toDisplayString(o.unref(R)(g)),1))),128))],8,K0)):o.createCommentVNode("",!0)],64))}}),Le=o.defineComponent({__name:"base-form-fields",props:{route:null},setup(e){const t=e,{route:n}=o.toRefs(t),{state:r}=$e();let a=[];return o.onBeforeMount(()=>{a=Jg(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(ss,{name:u,key:u,formField:c},null,8,["name","formField"]))),128))}}),q0=o.createElementVNode("legend",{class:"amplify-visually-hidden"},"Sign in",-1),W0={"data-amplify-footer":""},$o=o.defineComponent({__name:"sign-in",emits:["signInSubmit","forgotPasswordClicked","createAccountClicked"],setup(e,{emit:t}){const r=Te(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}=$e(),d=o.computed(()=>be(c.value)),h=m=>{const{name:v,value:S}=m.target;l({type:"CHANGE",data:{name:v,value:S}})},f=m=>{a!=null&&a.onSignInSubmit?t("signInSubmit",m):p(m)},p=m=>{r.submitForm(Ve(m))},g=()=>{a!=null&&a.onForgotPasswordClicked?t("forgotPasswordClicked"):l({type:"RESET_PASSWORD"})};return(m,v)=>{const S=Ue,w=De,_=we,b=ye,C=Me,E=Fe;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:g})]),default:o.withCtx(()=>[o.createVNode(Wn),o.createVNode(b,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(S,{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(Le,{route:"signIn"})]),_:3},8,["disabled"]),o.unref(d).context.remoteError?(o.openBlock(),o.createBlock(w,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(R)(o.unref(d).context.remoteError)),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(_,{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",W0,[o.createVNode(_,{onClick:g,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(Le,{route:"signUp"}))}}),No=o.defineComponent({__name:"sign-up",emits:["signUpSubmit"],setup(e,{emit:t}){const n=Te(Ae),r=n(),a=n(),{hasValidationErrors:i,isPending:s,error:u}=o.toRefs(r),c=o.useAttrs(),l=o.computed(()=>R("Create Account")),d=g=>{let{checked:m,name:v,type:S,value:w}=g.target;S==="checkbox"&&!m&&(w=void 0),a.updateForm({name:v,value:w})};function h(g){const{name:m}=g.target;a.updateBlur({name:m})}const f=g=>{c!=null&&c.onSignUpSubmit?t("signUpSubmit",g):p(g)},p=g=>{a.submitForm(Ve(g))};return(g,m)=>{const v=Ue,S=De,w=we,_=ye,b=Me,C=Fe;return o.renderSlot(g.$slots,"signUpSlotI",o.normalizeProps(o.guardReactiveProps(g.$attrs)),()=>[o.renderSlot(g.$slots,"header"),o.createVNode(_,o.normalizeProps(o.guardReactiveProps(g.$attrs)),{default:o.withCtx(()=>[o.createVNode(b,{onInput:d,onBlurCapture:h,onSubmit:o.withModifiers(f,["prevent"])},{default:o.withCtx(()=>[o.createVNode(Wn),o.createVNode(_,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(v,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(s)},{fieldSetI:o.withCtx(({slotData:E})=>[o.renderSlot(g.$slots,"signup-fields",{info:E})]),default:o.withCtx(()=>[o.createVNode(Po)]),_:3},8,["disabled"]),o.unref(u)?(o.openBlock(),o.createBlock(S,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(R)(o.unref(u))),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(w,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!0,loading:!1,variation:"primary",style:{"border-radius":"0px","font-weight":"normal"},disabled:o.unref(s)||o.unref(i)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1},8,["disabled"])]),_:3})]),_:3},8,["onSubmit"])]),_:3},16),o.createVNode(C,null,{default:o.withCtx(()=>[o.renderSlot(g.$slots,"footer")]),_:3})])}}}),Y0=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"])}}}),J0={};function Z0(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 Q0=qn(J0,[["render",Z0]]);const Je=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}}),X0={};function eC(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 us=qn(X0,[["render",eC]]);const ko=o.defineComponent({__name:"confirm-sign-up",emits:["confirmSignUpSubmit","lostCodeClicked"],setup(e,{emit:t}){const n=o.useAttrs(),r=Te(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")),p=R("Your code is on the way. To log in, enter the code we emailed to"),g=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."),v=R("It may take a minute to arrive."),S=o.computed(()=>{var E,A,$,I;return((E=s.value)==null?void 0:E.DeliveryMedium)==="EMAIL"?`${p} ${(A=s.value)==null?void 0:A.Destination}. ${v}`:(($=s.value)==null?void 0:$.DeliveryMedium)==="SMS"?`${g} ${(I=s.value)==null?void 0:I.Destination}. ${v}`:R(`${m}`)}),w=E=>{const{name:A,value:$}=E.target;c({name:A,value:$})},_=E=>{n!=null&&n.onConfirmSignUpSubmit?t("confirmSignUpSubmit",E):b(E)},b=E=>{u(Ve(E))},C=()=>{n!=null&&n.onLostCodeClicked?t("lostCodeClicked"):l()};return(E,A)=>{const $=Je,I=us,N=Ue,M=De,F=we,D=Fe,G=ye,de=Me;return o.renderSlot(E.$slots,"confirmSignUpSlotI",o.normalizeProps(o.guardReactiveProps(E.$attrs)),()=>[o.createVNode(G,o.normalizeProps(o.guardReactiveProps(E.$attrs)),{default:o.withCtx(()=>[o.createVNode(de,{onInput:w,onSubmit:o.withModifiers(_,["prevent"])},{default:o.withCtx(()=>[o.createVNode(G,{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(I,{class:"amplify-authenticator__subtitle"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(S)),1)]),_:1}),o.createVNode(N,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(a)},{default:o.withCtx(()=>[o.createVNode(Le,{route:"confirmSignUp"})]),_:1},8,["disabled"]),o.createVNode(D,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.unref(i)?(o.openBlock(),o.createBlock(M,{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:_,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}=$e(),s=Te(Ae)(),u=o.computed(()=>be(r.value)),c=u.value.context.challengeName;let l="SMS";c===ze.SOFTWARE_TOKEN_MFA&&(l="TOTP");const d=`Confirm ${l} Code`,h=o.computed(()=>R("Back to Sign In")),f=o.computed(()=>R("Confirm")),p=S=>{const{name:w,value:_}=S.target;a({type:"CHANGE",data:{name:w,value:_}})},g=S=>{n!=null&&n.onConfirmSignInSubmit?t("confirmSignInSubmit",S):m(S)},m=S=>{s.submitForm(Ve(S))},v=()=>{n!=null&&n.onBackToSignInClicked?t("backToSignInClicked"):a({type:"SIGN_IN"})};return(S,w)=>{const _=Je,b=ye,C=De,E=we,A=Fe,$=Ue,I=Me;return o.renderSlot(S.$slots,"confirmSignInSlotI",o.normalizeProps(o.guardReactiveProps(S.$attrs)),()=>[o.createVNode(b,o.normalizeProps(o.guardReactiveProps(S.$attrs)),{default:o.withCtx(()=>[o.createVNode(I,{"data-amplify-authenticator-confirmsignin":"",onInput:p,onSubmit:o.withModifiers(g,["prevent"])},{default:o.withCtx(()=>[o.createVNode($,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(u).matches("confirmSignIn.pending")},{default:o.withCtx(()=>[o.renderSlot(S.$slots,"header",{},()=>[o.createVNode(_,{level:3,class:"amplify-heading"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(d))]),_:1})]),o.createVNode(b,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(Le,{route:"confirmSignIn"})]),_:1}),o.createVNode(A,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var N,M;return[(M=(N=o.unref(u))==null?void 0:N.context)!=null&&M.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(v,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(h)),1)]),_:1},8,["onClick"]),o.renderSlot(S.$slots,"footer",{onBackToSignInClicked:v,onConfirmSignInSubmit:g})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}});var Wt={},tC=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},cs={},Ee={};let Oo;const nC=[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 nC[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 Zn={};(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}}})(Zn);function ls(){this.buffer=[],this.length=0}ls.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 rC=ls;function Yt(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)}Yt.prototype.set=function(e,t,n,r){const a=e*this.size+t;this.data[a]=n,r&&(this.reservedBit[a]=!0)};Yt.prototype.get=function(e,t){return this.data[e*this.size+t]};Yt.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};Yt.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var oC=Yt,ds={};(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}})(ds);var fs={};const aC=Ee.getSymbolSize,qa=7;fs.getPositions=function(t){const n=aC(t);return[[0,0],[n-qa,0],[0,n-qa]]};var ps={};(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 p=a.get(h,f);p===l?u++:(u>=5&&(s+=t.N1+(u-5)),l=p,u=1),p=a.get(f,h),p===d?c++:(c>=5&&(s+=t.N1+(c-5)),d=p,c=1)}u>=5&&(s+=t.N1+(u-5)),c>=5&&(s+=t.N1+(c-5))}return s},e.getPenaltyN2=function(a){const i=a.size;let s=0;for(let u=0;u<i-1;u++)for(let c=0;c<i-1;c++){const 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}})(ps);var Qn={};const Ye=Zn,hn=[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],mn=[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];Qn.getBlocksCount=function(t,n){switch(n){case Ye.L:return hn[(t-1)*4+0];case Ye.M:return hn[(t-1)*4+1];case Ye.Q:return hn[(t-1)*4+2];case Ye.H:return hn[(t-1)*4+3];default:return}};Qn.getTotalCodewordsCount=function(t,n){switch(n){case Ye.L:return mn[(t-1)*4+0];case Ye.M:return mn[(t-1)*4+1];case Ye.Q:return mn[(t-1)*4+2];case Ye.H:return mn[(t-1)*4+3];default:return}};var hs={},Xn={};const Ut=new Uint8Array(512),kn=new Uint8Array(256);(function(){let t=1;for(let n=0;n<255;n++)Ut[n]=t,kn[t]=n,t<<=1,t&256&&(t^=285);for(let n=255;n<512;n++)Ut[n]=Ut[n-255]})();Xn.log=function(t){if(t<1)throw new Error("log("+t+")");return kn[t]};Xn.exp=function(t){return Ut[t]};Xn.mul=function(t,n){return t===0||n===0?0:Ut[kn[t]+kn[n]]};(function(e){const t=Xn;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}})(hs);const ms=hs;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=ms.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=ms.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 iC=Uo,gs={},Ze={},Ro={};Ro.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var je={};const vs="[0-9]+",sC="[A-Z $%*+\\-./:]+";let Mt="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Mt=Mt.replace(/u/g,"\\u");const uC="(?:(?![A-Z0-9 $%*+\\-./:]|"+Mt+`)(?:.|[\r
32
+ ]))+`;je.KANJI=new RegExp(Mt,"g");je.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");je.BYTE=new RegExp(uC,"g");je.NUMERIC=new RegExp(vs,"g");je.ALPHANUMERIC=new RegExp(sC,"g");const cC=new RegExp("^"+Mt+"$"),lC=new RegExp("^"+vs+"$"),dC=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");je.testKanji=function(t){return cC.test(t)};je.testNumeric=function(t){return lC.test(t)};je.testAlphanumeric=function(t){return dC.test(t)};(function(e){const t=Ro,n=je;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}}})(Ze);(function(e){const t=Ee,n=Qn,r=Zn,a=Ze,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,p,g){for(let m=1;m<=40;m++)if(p<=e.getCapacity(m,g,f))return m}function l(f,p){return a.getCharCountIndicator(f,p)+4}function d(f,p){let g=0;return f.forEach(function(m){g+=l(m.mode,p)+m.getBitsLength()}),g}function h(f,p){for(let g=1;g<=40;g++)if(d(f,g)<=e.getCapacity(g,p,a.MIXED))return g}e.from=function(p,g){return i.isValid(p)?parseInt(p,10):g},e.getCapacity=function(p,g,m){if(!i.isValid(p))throw new Error("Invalid QR Code version");typeof m=="undefined"&&(m=a.BYTE);const v=t.getSymbolTotalCodewords(p),S=n.getTotalCodewordsCount(p,g),w=(v-S)*8;if(m===a.MIXED)return w;const _=w-l(m,p);switch(m){case a.NUMERIC:return Math.floor(_/10*3);case a.ALPHANUMERIC:return Math.floor(_/11*2);case a.KANJI:return Math.floor(_/13);case a.BYTE:default:return Math.floor(_/8)}},e.getBestVersionForData=function(p,g){let m;const v=r.from(g,r.M);if(Array.isArray(p)){if(p.length>1)return h(p,v);if(p.length===0)return 1;m=p[0]}else m=p;return c(m.mode,m.getLength(),v)},e.getEncodedBits=function(p){if(!i.isValid(p)||p<7)throw new Error("Invalid QR Code version");let g=p<<12;for(;t.getBCHDigit(g)-u>=0;)g^=s<<t.getBCHDigit(g)-u;return p<<12|g}})(gs);var ys={};const Vr=Ee,Ss=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,fC=1<<14|1<<12|1<<10|1<<4|1<<1,Wa=Vr.getBCHDigit(Ss);ys.getEncodedBits=function(t,n){const r=t.bit<<3|n;let a=r<<10;for(;Vr.getBCHDigit(a)-Wa>=0;)a^=Ss<<Vr.getBCHDigit(a)-Wa;return(r<<10|a)^fC};var ws={};const pC=Ze;function dt(e){this.mode=pC.NUMERIC,this.data=e.toString()}dt.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};dt.prototype.getLength=function(){return this.data.length};dt.prototype.getBitsLength=function(){return dt.getBitsLength(this.data.length)};dt.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 hC=dt;const mC=Ze,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 ft(e){this.mode=mC.ALPHANUMERIC,this.data=e}ft.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};ft.prototype.getLength=function(){return this.data.length};ft.prototype.getBitsLength=function(){return ft.getBitsLength(this.data.length)};ft.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 gC=ft,vC=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 yC=vC,SC=Ze;function pt(e){this.mode=SC.BYTE,this.data=new Uint8Array(yC(e))}pt.getBitsLength=function(t){return t*8};pt.prototype.getLength=function(){return this.data.length};pt.prototype.getBitsLength=function(){return pt.getBitsLength(this.data.length)};pt.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)};var wC=pt;const _C=Ze,bC=Ee;function ht(e){this.mode=_C.KANJI,this.data=e}ht.getBitsLength=function(t){return t*13};ht.prototype.getLength=function(){return this.data.length};ht.prototype.getBitsLength=function(){return ht.getBitsLength(this.data.length)};ht.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=bC.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 CC=ht,_s={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,p,g,m,v;!u.empty();){c=u.pop(),l=c.value,h=c.cost,f=n[l]||{};for(d in f)f.hasOwnProperty(d)&&(p=f[d],g=h+p,m=s[d],v=typeof s[d]=="undefined",(v||m>g)&&(s[d]=g,u.push(d,g),i[d]=l))}if(typeof a!="undefined"&&typeof s[a]=="undefined"){var S=["Could not find a path from ",r," to ",a,"."].join("");throw new Error(S)}return i},extract_shortest_path_from_predecessor_list:function(n,r){for(var a=[],i=r;i;)a.push(i),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})(_s);(function(e){const t=Ze,n=hC,r=gC,a=wC,i=CC,s=je,u=Ee,c=_s.exports;function l(S){return unescape(encodeURIComponent(S)).length}function d(S,w,_){const b=[];let C;for(;(C=S.exec(_))!==null;)b.push({data:C[0],index:C.index,mode:w,length:C[0].length});return b}function h(S){const w=d(s.NUMERIC,t.NUMERIC,S),_=d(s.ALPHANUMERIC,t.ALPHANUMERIC,S);let b,C;return u.isKanjiModeEnabled()?(b=d(s.BYTE,t.BYTE,S),C=d(s.KANJI,t.KANJI,S)):(b=d(s.BYTE_KANJI,t.BYTE,S),C=[]),w.concat(_,b,C).sort(function(A,$){return A.index-$.index}).map(function(A){return{data:A.data,mode:A.mode,length:A.length}})}function f(S,w){switch(w){case t.NUMERIC:return n.getBitsLength(S);case t.ALPHANUMERIC:return r.getBitsLength(S);case t.KANJI:return i.getBitsLength(S);case t.BYTE:return a.getBitsLength(S)}}function p(S){return S.reduce(function(w,_){const b=w.length-1>=0?w[w.length-1]:null;return b&&b.mode===_.mode?(w[w.length-1].data+=_.data,w):(w.push(_),w)},[])}function g(S){const w=[];for(let _=0;_<S.length;_++){const b=S[_];switch(b.mode){case t.NUMERIC:w.push([b,{data:b.data,mode:t.ALPHANUMERIC,length:b.length},{data:b.data,mode:t.BYTE,length:b.length}]);break;case t.ALPHANUMERIC:w.push([b,{data:b.data,mode:t.BYTE,length:b.length}]);break;case t.KANJI:w.push([b,{data:b.data,mode:t.BYTE,length:l(b.data)}]);break;case t.BYTE:w.push([{data:b.data,mode:t.BYTE,length:l(b.data)}])}}return w}function m(S,w){const _={},b={start:{}};let C=["start"];for(let E=0;E<S.length;E++){const A=S[E],$=[];for(let I=0;I<A.length;I++){const N=A[I],M=""+E+I;$.push(M),_[M]={node:N,lastCount:0},b[M]={};for(let F=0;F<C.length;F++){const D=C[F];_[D]&&_[D].node.mode===N.mode?(b[D][M]=f(_[D].lastCount+N.length,N.mode)-f(_[D].lastCount,N.mode),_[D].lastCount+=N.length):(_[D]&&(_[D].lastCount=N.length),b[D][M]=f(N.length,N.mode)+4+t.getCharCountIndicator(N.mode,w))}}C=$}for(let E=0;E<C.length;E++)b[C[E]].end=0;return{map:b,table:_}}function v(S,w){let _;const b=t.getBestModeForData(S);if(_=t.from(w,b),_!==t.BYTE&&_.bit<b.bit)throw new Error('"'+S+'" cannot be encoded with mode '+t.toString(_)+`.
34
+ Suggested mode is: `+t.toString(b));switch(_===t.KANJI&&!u.isKanjiModeEnabled()&&(_=t.BYTE),_){case t.NUMERIC:return new n(S);case t.ALPHANUMERIC:return new r(S);case t.KANJI:return new i(S);case t.BYTE:return new a(S)}}e.fromArray=function(w){return w.reduce(function(_,b){return typeof b=="string"?_.push(v(b,null)):b.data&&_.push(v(b.data,b.mode)),_},[])},e.fromString=function(w,_){const b=h(w,u.isKanjiModeEnabled()),C=g(b),E=m(C,_),A=c.find_path(E.map,"start","end"),$=[];for(let I=1;I<A.length-1;I++)$.push(E.table[A[I]].node);return e.fromArray(p($))},e.rawSplit=function(w){return e.fromArray(h(w,u.isKanjiModeEnabled()))}})(ws);const er=Ee,fr=Zn,AC=rC,EC=oC,IC=ds,TC=fs,Dr=ps,Mr=Qn,$C=iC,xn=gs,PC=ys,NC=Ze,pr=ws;function kC(e,t){const n=e.size,r=TC.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 xC(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 OC(e,t){const n=IC.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 UC(e,t){const n=e.size,r=xn.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=PC.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 RC(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 BC(e,t,n){const r=new AC;n.forEach(function(c){r.put(c.mode.bit,4),r.put(c.getLength(),NC.getCharCountIndicator(c.mode,e)),c.write(r)});const a=er.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 VC(r,e,t)}function VC(e,t,n){const r=er.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,p=new $C(f);let g=0;const m=new Array(s),v=new Array(s);let S=0;const w=new Uint8Array(e.buffer);for(let A=0;A<s;A++){const $=A<c?d:h;m[A]=w.slice(g,g+$),v[A]=p.encode(m[A]),g+=$,S=Math.max(S,$)}const _=new Uint8Array(r);let b=0,C,E;for(C=0;C<S;C++)for(E=0;E<s;E++)C<m[E].length&&(_[b++]=m[E][C]);for(C=0;C<f;C++)for(E=0;E<s;E++)_[b++]=v[E][C];return _}function DC(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=xn.getBestVersionForData(d,n)}a=pr.fromString(e,l||40)}else throw new Error("Invalid data");const i=xn.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 l=HS(t,o,a),s=on.getSymbolSize(t),c=new OS(s);return FS(c,t),jS(c),LS(c,t),bn(c,o,0),t>=7&&GS(c,t),qS(c,l),isNaN(n)&&(n=Ln.getBestMask(c,bn.bind(null,c,o))),Ln.applyMask(n,c),bn(c,o,n),{modules:c,version:t,errorCorrectionLevel:o,maskPattern:n,segments:a}}fl.create=function(t,o){if(typeof t=="undefined"||t==="")throw new Error("No input text");let n=yn.M,a,i;return typeof o!="undefined"&&(n=yn.from(o.errorCorrectionLevel,yn.M),a=No.from(o.version),i=Ln.from(o.maskPattern),o.toSJISFunc&&on.setToSJISFunction(o.toSJISFunc)),WS(t,a,n,i)};var Cl={},Dr={};(function(e){function t(o){if(typeof o=="number"&&(o=o.toString()),typeof o!="string")throw new Error("Color should be defined as hex string");let n=o.slice().replace("#","").split("");if(n.length<3||n.length===5||n.length>8)throw new Error("Invalid hex color: "+o);(n.length===3||n.length===4)&&(n=Array.prototype.concat.apply([],n.map(function(i){return[i,i]}))),n.length===6&&n.push("F","F");const a=parseInt(n.join(""),16);return{r:a>>24&255,g:a>>16&255,b:a>>8&255,a:a&255,hex:"#"+n.slice(0,6).join("")}}e.getOptions=function(n){n||(n={}),n.color||(n.color={});const a=typeof n.margin=="undefined"||n.margin===null||n.margin<0?4:n.margin,i=n.width&&n.width>=21?n.width:void 0,l=n.scale||4;return{width:i,scale:i?4:l,margin:a,color:{dark:t(n.color.dark||"#000000ff"),light:t(n.color.light||"#ffffffff")},type:n.type,rendererOpts:n.rendererOpts||{}}},e.getScale=function(n,a){return a.width&&a.width>=n+a.margin*2?a.width/(n+a.margin*2):a.scale},e.getImageWidth=function(n,a){const i=e.getScale(n,a);return Math.floor((n+a.margin*2)*i)},e.qrToImageData=function(n,a,i){const l=a.modules.size,s=a.modules.data,c=e.getScale(l,i),d=Math.floor((l+i.margin*2)*c),p=i.margin*c,m=[i.color.light,i.color.dark];for(let f=0;f<d;f++)for(let u=0;u<d;u++){let b=(f*d+u)*4,y=i.color.light;if(f>=p&&u>=p&&f<d-p&&u<d-p){const g=Math.floor((f-p)/c),v=Math.floor((u-p)/c);y=m[s[g*l+v]?1:0]}n[b++]=y.r,n[b++]=y.g,n[b++]=y.b,n[b]=y.a}}})(Dr);(function(e){const t=Dr;function o(a,i,l){a.clearRect(0,0,i.width,i.height),i.style||(i.style={}),i.height=l,i.width=l,i.style.height=l+"px",i.style.width=l+"px"}function n(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(i,l,s){let c=s,d=l;typeof c=="undefined"&&(!l||!l.getContext)&&(c=l,l=void 0),l||(d=n()),c=t.getOptions(c);const p=t.getImageWidth(i.modules.size,c),m=d.getContext("2d"),f=m.createImageData(p,p);return t.qrToImageData(f.data,i,c),o(m,d,p),m.putImageData(f,0,0),d},e.renderToDataURL=function(i,l,s){let c=s;typeof c=="undefined"&&(!l||!l.getContext)&&(c=l,l=void 0),c||(c={});const d=e.render(i,l,c),p=c.type||"image/png",m=c.rendererOpts||{};return d.toDataURL(p,m.quality)}})(Cl);var Al={};const YS=Dr;function Qa(e,t){const o=e.a/255,n=t+'="'+e.hex+'"';return o<1?n+" "+t+'-opacity="'+o.toFixed(2).slice(1)+'"':n}function hn(e,t,o){let n=e+t;return typeof o!="undefined"&&(n+=" "+o),n}function JS(e,t,o){let n="",a=0,i=!1,l=0;for(let s=0;s<e.length;s++){const c=Math.floor(s%t),d=Math.floor(s/t);!c&&!i&&(i=!0),e[s]?(l++,s>0&&c>0&&e[s-1]||(n+=i?hn("M",c+o,.5+d+o):hn("m",a,0),a=0,i=!1),c+1<t&&e[s+1]||(n+=hn("h",l),l=0)):a++}return n}Al.render=function(t,o,n){const a=YS.getOptions(o),i=t.modules.size,l=t.modules.data,s=i+a.margin*2,c=a.color.light.a?"<path "+Qa(a.color.light,"fill")+' d="M0 0h'+s+"v"+s+'H0z"/>':"",d="<path "+Qa(a.color.dark,"stroke")+' d="'+JS(l,i,a.margin)+'"/>',p='viewBox="0 0 '+s+" "+s+'"',m=a.width?'width="'+a.width+'" height="'+a.width+'" ':"",f='<svg xmlns="http://www.w3.org/2000/svg" '+m+p+' shape-rendering="crispEdges">'+c+d+`</svg>
38
- `;return typeof n=="function"&&n(null,f),f};const ZS=pS,qn=fl,El=Cl,XS=Al;function Mr(e,t,o,n,a){const i=[].slice.call(arguments,1),l=i.length,s=typeof i[l-1]=="function";if(!s&&!ZS())throw new Error("Callback required as last argument");if(s){if(l<2)throw new Error("Too few arguments provided");l===2?(a=o,o=t,t=n=void 0):l===3&&(t.getContext&&typeof a=="undefined"?(a=n,n=void 0):(a=n,n=o,o=t,t=void 0))}else{if(l<1)throw new Error("Too few arguments provided");return l===1?(o=t,t=n=void 0):l===2&&!t.getContext&&(n=o,o=t,t=void 0),new Promise(function(c,d){try{const p=qn.create(o,n);c(e(p,t,n))}catch(p){d(p)}})}try{const c=qn.create(o,n);a(null,e(c,t,n))}catch(c){a(c)}}Yt.create=qn.create;Yt.toCanvas=Mr.bind(null,El.render);Yt.toDataURL=Mr.bind(null,El.renderToDataURL);Yt.toString=Mr.bind(null,function(e,t,o){return XS.render(e,o)});const QS={key:0},ex=r.createTextVNode(" Setup TOTP "),tx=["src"],ox={"data-amplify-copy-tooltip":""},nx=r.createElementVNode("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[r.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),rx=r.defineComponent({name:"setup-totp",emits:["confirmSetupTOTPSubmit","backToSignInClicked"],setup(e,{emit:t}){var x,A;const n=Ee(Se)(),a=r.useAttrs(),{state:i,send:l}=Ie(),{value:{context:s}}=i,c=(A=(x=s==null?void 0:s.config)==null?void 0:x.formFields)==null?void 0:A.setupTOTP,d=c==null?void 0:c.QR,p=r.computed(()=>ke(i.value));let m=r.reactive({qrCodeImageSource:"",isLoading:!0}),f=r.ref(""),u=r.ref(O("COPY"));function b(){navigator.clipboard.writeText(f.value),u.value=O("COPIED")}r.onMounted(async()=>{var $,N;const S=new se.Logger("SetupTOTP-logger"),{user:C}=p.value.context;if(!!C)try{f.value=await se.Auth.setupTOTP(C);const R=($=d==null?void 0:d.totpIssuer)!=null?$:"AWSCognito",D=(N=d==null?void 0:d.totpUsername)!=null?N:C.username,F=encodeURI(`otpauth://totp/${R}:${D}?secret=${f.value}&issuer=${R}`);m.qrCodeImageSource=await Yt.toDataURL(F)}catch(R){S.error(R)}finally{m.isLoading=!1}});const y=r.computed(()=>O("Back to Sign In")),g=r.computed(()=>O("Confirm")),v=S=>{const{name:C,value:$}=S.target;l({type:"CHANGE",data:{name:C,value:$}})},w=S=>{a!=null&&a.onConfirmSetupTOTPSubmit?t("confirmSetupTOTPSubmit",S):_(S)},_=S=>{n.submitForm(Be(S))},k=()=>{a!=null&&a.onBackToSignInClicked?t("backToSignInClicked"):l({type:"SIGN_IN"})};return(S,C)=>{const $=Ye,N=ge,R=Ve,D=we,F=Me,ce=ze,K=De;return r.renderSlot(S.$slots,"confirmSetupTOTPI",r.normalizeProps(r.guardReactiveProps(S.$attrs)),()=>[r.createVNode(N,r.normalizeProps(r.guardReactiveProps(S.$attrs)),{default:r.withCtx(()=>[r.createVNode(K,{"data-amplify-authenticator-setup-totp":"",onInput:v,onSubmit:r.withModifiers(w,["prevent"])},{default:r.withCtx(()=>[r.createVNode(ce,{class:"amplify-flex amplify-authenticator__column",disabled:r.unref(p).matches("confirmSignIn.pending")},{default:r.withCtx(()=>[r.unref(m).isLoading?(r.openBlock(),r.createElementBlock("p",QS,"Loading...")):(r.openBlock(),r.createBlock(N,{key:1,class:"amplify-flex amplify-authenticator__column"},{default:r.withCtx(()=>[r.renderSlot(S.$slots,"header",{},()=>[r.createVNode($,{class:"amplify-heading",level:3},{default:r.withCtx(()=>[ex]),_:1})]),r.createVNode(N,{class:"amplify-flex amplify-authenticator__column"},{default:r.withCtx(()=>[r.createElementVNode("img",{class:"amplify-image","data-amplify-qrcode":"",src:r.unref(m).qrCodeImageSource,alt:"qr code",width:"228",height:"228"},null,8,tx),r.createVNode(N,{class:"amplify-flex","data-amplify-copy":""},{default:r.withCtx(()=>[r.createElementVNode("div",null,r.toDisplayString(r.unref(f)),1),r.createVNode(N,{"data-amplify-copy-svg":"",onClick:b},{default:r.withCtx(()=>[r.createElementVNode("div",ox,r.toDisplayString(r.unref(u)),1),nx]),_:1})]),_:1}),r.createVNode(Fe,{route:"setupTOTP"})]),_:1}),r.createVNode(F,{class:"amplify-flex amplify-authenticator__column"},{default:r.withCtx(()=>{var fe;return[(fe=r.unref(p).context)!=null&&fe.remoteError?(r.openBlock(),r.createBlock(R,{key:0},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(O)(r.unref(p).context.remoteError)),1)]),_:1})):r.createCommentVNode("",!0),r.createVNode(D,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",type:"submit",disabled:r.unref(p).matches("confirmSignIn.pending")},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(g)),1)]),_:1},8,["disabled"]),r.createVNode(D,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:r.withModifiers(k,["prevent"])},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(y)),1)]),_:1},8,["onClick"]),r.renderSlot(S.$slots,"footer",{onBackToSignInClicked:k,onSetupTOTPSubmit:w})]}),_:3})]),_:3}))]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Fr=r.defineComponent({name:"authenticator-force-new-password-form-fields",setup(e){return(t,o)=>(r.openBlock(),r.createBlock(Fe,{route:"forceNewPassword"}))}}),jr=r.defineComponent({name:"force-new-password",emits:["haveAccountClicked","forceNewPasswordSubmit"],setup(e,{emit:t}){const o=r.useAttrs(),{state:n,send:a}=Ie(),l=Ee(Se)(),s=r.computed(()=>ke(n.value)),c=r.computed(()=>O("Change Password")),d=r.computed(()=>O("Changing")),p=r.computed(()=>O("Back to Sign In")),m=()=>{o!=null&&o.onHaveAccountClicked?t("haveAccountClicked"):a({type:"SIGN_IN"})},f=g=>{o!=null&&o.onForceNewPasswordSubmit?t("forceNewPasswordSubmit",g):u(g)},u=g=>{l.submitForm(Be(g))},b=g=>{const{name:v,value:w}=g.target;a({type:"CHANGE",data:{name:v,value:w}})};function y(g){const{name:v}=g.target;l.updateBlur({name:v})}return(g,v)=>{const w=Ye,_=ge,k=Ve,x=we,A=Me,S=ze,C=De;return r.renderSlot(g.$slots,"forceNewPasswordI",r.normalizeProps(r.guardReactiveProps(g.$attrs)),()=>[r.createVNode(_,r.normalizeProps(r.guardReactiveProps(g.$attrs)),{default:r.withCtx(()=>[r.createVNode(C,{"data-amplify-authenticator-forcenewpassword":"",onInput:b,onBlur:y,onSubmit:r.withModifiers(f,["prevent"])},{default:r.withCtx(()=>[r.createVNode(S,{class:"amplify-flex amplify-authenticator__column",disabled:r.unref(s).matches("forceNewPassword.pending")},{default:r.withCtx(()=>[r.renderSlot(g.$slots,"header",{},()=>[r.createVNode(w,{level:3,class:"amplify-heading"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(c)),1)]),_:1})]),r.createVNode(_,{class:"amplify-flex amplify-authenticator__column"},{default:r.withCtx(()=>[r.renderSlot(g.$slots,"force-new-password-form-fields",{},()=>[r.createVNode(Fr)])]),_:3}),r.createVNode(A,{class:"amplify-flex amplify-authenticator__column"},{default:r.withCtx(()=>[r.unref(s).context.remoteError?(r.openBlock(),r.createBlock(k,{key:0,"data-ui-error":""},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(O)(r.unref(s).context.remoteError)),1)]),_:1})):r.createCommentVNode("",!0),r.createVNode(x,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",style:{"font-weight":"normal"},disabled:r.unref(s).matches("signUp.submit")},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(s).matches("forceNewPassword.pending")?r.unref(d)+"\u2026":r.unref(c)),1)]),_:1},8,["disabled"]),r.createVNode(x,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:r.withModifiers(m,["prevent"])},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(p)),1)]),_:1},8,["onClick"]),r.renderSlot(g.$slots,"footer",{onHaveAccountClicked:m,onForceNewPasswordSubmit:f})]),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Lr=r.defineComponent({name:"reset-password",emits:["resetPasswordSubmit","backToSignInClicked"],setup(e,{emit:t}){const o=r.useAttrs(),n=Ee(Se),{send:a,submitForm:i}=n(),{error:l,isPending:s}=r.toRefs(n()),c=r.computed(()=>O("Back to Sign In")),d=r.computed(()=>O("Reset your password")),p=r.computed(()=>O("Send Code")),m=y=>{o!=null&&o.onResetPasswordSubmit?t("resetPasswordSubmit",y):f(y)},f=y=>{i(Be(y))},u=y=>{const{name:g,value:v}=y.target;a({type:"CHANGE",data:{name:g,value:v}})},b=()=>{o!=null&&o.onBackToSignInClicked?t("backToSignInClicked"):a({type:"SIGN_IN"})};return(y,g)=>{const v=Ye,w=ze,_=Ve,k=we,x=Me,A=ge,S=De;return r.renderSlot(y.$slots,"resetPasswordSlotI",r.normalizeProps(r.guardReactiveProps(y.$attrs)),()=>[r.createVNode(S,r.mergeProps(y.$attrs,{"data-amplify-authenticator-resetpassword":"",onInput:u,onSubmit:r.withModifiers(m,["prevent"])}),{default:r.withCtx(()=>[r.createVNode(A,{class:"amplify-flex amplify-authenticator__column"},{default:r.withCtx(()=>[r.renderSlot(y.$slots,"header",{},()=>[r.createVNode(v,{class:"amplify-heading",level:3},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(d)),1)]),_:1})]),r.createVNode(w,{class:"amplify-flex amplify-authenticator__column",disabled:r.unref(s)},{default:r.withCtx(()=>[r.createVNode(Fe,{route:"resetPassword"})]),_:1},8,["disabled"]),r.createVNode(x,{class:"amplify-flex amplify-authenticator__column"},{default:r.withCtx(()=>[r.unref(l)?(r.openBlock(),r.createBlock(_,{key:0},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(O)(r.unref(l))),1)]),_:1})):r.createCommentVNode("",!0),r.createVNode(k,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"primary",type:"submit",disabled:r.unref(s)},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(p)),1)]),_:1},8,["disabled"]),r.createVNode(k,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:r.withModifiers(b,["prevent"])},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(c)),1)]),_:1},8,["onClick"]),r.renderSlot(y.$slots,"footer",{onBackToSignInClicked:b,onResetPasswordSubmit:m})]),_:3})]),_:3})]),_:3},16,["onSubmit"])])}}}),Gr=r.defineComponent({name:"confirm-reset-password",emits:["confirmResetPasswordSubmit","backToSignInClicked"],setup(e,{emit:t}){const{state:o,send:n}=Ie(),i=Ee(Se)(),l=r.useAttrs(),s=r.computed(()=>ke(o.value)),c=r.computed(()=>O("Resend Code")),d=r.computed(()=>O("Reset your Password")),p=r.computed(()=>O("Submit")),m=g=>{l!=null&&l.onConfirmResetPasswordSubmit?t("confirmResetPasswordSubmit",g):f(g)},f=g=>{i.submitForm(Be(g))},u=()=>{n({type:"RESEND"})},b=g=>{const{name:v,value:w}=g.target;n({type:"CHANGE",data:{name:v,value:w}})};function y(g){const{name:v}=g.target;i.updateBlur({name:v})}return(g,v)=>{const w=Ye,_=ge,k=Ve,x=we,A=Me,S=ze,C=De;return r.renderSlot(g.$slots,"confirmResetPasswordSlotI",r.normalizeProps(r.guardReactiveProps(g.$attrs)),()=>[r.createVNode(_,r.normalizeProps(r.guardReactiveProps(g.$attrs)),{default:r.withCtx(()=>[r.createVNode(C,{"data-amplify-authenticator-confirmResetpassword":"",onInput:b,onBlurCapture:y,onSubmit:r.withModifiers(m,["prevent"])},{default:r.withCtx(()=>[r.createVNode(S,{class:"amplify-flex amplify-authenticator__column",disabled:r.unref(s).matches("confirmResetPassword.pending")},{default:r.withCtx(()=>[r.renderSlot(g.$slots,"header",{},()=>[r.createVNode(w,{class:"amplify-heading",level:3},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(d)),1)]),_:1})]),r.createVNode(_,{class:"amplify-flex amplify-authenticator__column"},{default:r.withCtx(()=>[r.createVNode(Fe,{route:"confirmResetPassword"})]),_:1}),r.createVNode(A,{class:"amplify-flex amplify-authenticator__column"},{default:r.withCtx(()=>{var $,N;return[(N=($=r.unref(s))==null?void 0:$.context)!=null&&N.remoteError?(r.openBlock(),r.createBlock(k,{key:0},{default:r.withCtx(()=>{var R,D;return[r.createTextVNode(r.toDisplayString(r.unref(O)((D=(R=r.unref(s))==null?void 0:R.context)==null?void 0:D.remoteError)),1)]}),_:1})):r.createCommentVNode("",!0),r.createVNode(x,{class:"amplify-field-group__control amplify-authenticator__font",variation:"primary",fullwidth:!1,type:"submit",disabled:r.unref(s).matches("confirmResetPassword.pending")},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(p)),1)]),_:1},8,["disabled"]),r.createVNode(x,{class:"amplify-field-group__control amplify-authenticator__font",variation:"link",fullwidth:!1,size:"small",type:"button",onClick:r.withModifiers(u,["prevent"])},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(c)),1)]),_:1},8,["onClick"]),r.renderSlot(g.$slots,"footer",{onConfirmResetPasswordSubmit:m,onLostYourCodeClicked:u})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),qr=r.defineComponent({name:"verify-user",emits:["verifyUserSubmit","skipClicked"],setup(e,{emit:t}){const n=Ee(Se)(),a=r.useAttrs(),{state:i,send:l}=Ie(),s=r.computed(()=>ke(i.value)),c=s.value.context.unverifiedAttributes,d=r.computed(()=>O("Account recovery requires verified contact information")),p=r.computed(()=>O("Skip")),m=r.computed(()=>O("Verify")),f=r.computed(()=>O("Verify Contact")),u=v=>{const{name:w,value:_}=v.target;l({type:"CHANGE",data:{name:w,value:_}})},b=v=>{a!=null&&a.onVerifyUserSubmit?t("verifyUserSubmit",v):y(v)},y=v=>{n.submitForm(Be(v))},g=()=>{a!=null&&a.onSkipClicked?t("skipClicked"):l("SKIP")};return(v,w)=>{const _=Ye,k=Zo,x=Xo,A=pl,S=ge,C=Ve,$=we,N=Me,R=ze,D=De;return r.renderSlot(v.$slots,"verifyUserSlotI",{},()=>[r.createVNode(S,null,{default:r.withCtx(()=>[r.createVNode(D,{onInput:u,onSubmit:r.withModifiers(b,["prevent"])},{default:r.withCtx(()=>[r.createVNode(R,{disabled:r.unref(s).matches("verifyUser.pending"),class:"amplify-flex amplify-authenticator__column"},{default:r.withCtx(()=>[r.renderSlot(v.$slots,"header",{},()=>[r.createVNode(_,{class:"amplify-heading",level:3},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(d)),1)]),_:1})]),r.createVNode(S,{class:"amplify-flex amplify-field amplify-radiogroupfield amplify-authenticator__column"},{default:r.withCtx(()=>[r.createVNode(k,{class:"amplify-visually-hidden amplify-label",id:"amplify-field-493c"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(f)),1)]),_:1}),r.createVNode(S,{class:"amplify-flex amplify-field amplify-radiogroupfield amplify-authenticator__column","aria-labelledby":"amplify-field-493c"},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(c),(F,ce)=>(r.openBlock(),r.createBlock(k,{class:"amplify-flex amplify-radio","data-amplify-verify-label":"",id:"verify",key:F},{default:r.withCtx(()=>[r.createVNode(x,{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:ce},null,8,["value"]),r.createVNode(A,{class:"amplify-flex amplify-radio__button","aria-hidden":"true"}),r.createVNode(A,{class:"amplify-text amplify-radio__label"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(Jn)[ce].label),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1}),r.createVNode(N,{class:"amplify-flex amplify-authenticator__column"},{default:r.withCtx(()=>{var F,ce;return[(ce=(F=r.unref(s))==null?void 0:F.context)!=null&&ce.remoteError?(r.openBlock(),r.createBlock(C,{key:0},{default:r.withCtx(()=>{var K;return[r.createTextVNode(r.toDisplayString(r.unref(O)((K=r.unref(s))==null?void 0:K.context.remoteError)),1)]}),_:1})):r.createCommentVNode("",!0),r.createVNode($,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"primary",type:"submit",disabled:r.unref(s).matches("verifyUser.pending")},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(m)),1)]),_:1},8,["disabled"]),r.createVNode($,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:r.withModifiers(g,["prevent"])},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(p)),1)]),_:1},8,["onClick"]),r.renderSlot(v.$slots,"footer",{onSkipClicked:g,onVerifyUserSubmit:b})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3})])}}}),Hr=r.defineComponent({name:"confirm-verify-user",emits:["confirmVerifyUserSubmit","skipClicked"],setup(e,{emit:t}){const n=Ee(Se)(),a=r.useAttrs(),{state:i,send:l}=Ie(),s=r.computed(()=>ke(i.value)),c=r.computed(()=>O("Account recovery requires verified contact information")),d=r.computed(()=>O("Skip")),p=r.computed(()=>O("Submit")),m=y=>{const{name:g,value:v}=y.target;l({type:"CHANGE",data:{name:g,value:v}})},f=y=>{a!=null&&a.onConfirmVerifyUserSubmit?t("confirmVerifyUserSubmit",y):u(y)},u=y=>{n.submitForm(Be(y))},b=()=>{a!=null&&a.onSkipClicked?t("skipClicked"):l({type:"SKIP"})};return(y,g)=>{const v=Ye,w=ge,_=Ve,k=we,x=Me,A=ze,S=De;return r.renderSlot(y.$slots,"confirmVerifyUserSlotI",r.normalizeProps(r.guardReactiveProps(y.$attrs)),()=>[r.createVNode(w,r.normalizeProps(r.guardReactiveProps(y.$attrs)),{default:r.withCtx(()=>[r.createVNode(S,{onInput:m,onSubmit:r.withModifiers(f,["prevent"])},{default:r.withCtx(()=>[r.createVNode(A,{class:"amplify-flex amplify-authenticator__column",disabled:r.unref(s).matches("confirmVerifyUser.pending")},{default:r.withCtx(()=>[r.renderSlot(y.$slots,"header",{},()=>[r.createVNode(v,{level:3,class:"amplify-heading"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(c)),1)]),_:1})]),r.createVNode(w,{class:"amplify-flex amplify-authenticator__column"},{default:r.withCtx(()=>[r.createVNode(Fe,{route:"confirmVerifyUser"})]),_:1}),r.createVNode(x,{class:"amplify-flex amplify-authenticator__column"},{default:r.withCtx(()=>{var C,$;return[($=(C=r.unref(s))==null?void 0:C.context)!=null&&$.remoteError?(r.openBlock(),r.createBlock(_,{key:0},{default:r.withCtx(()=>{var N;return[r.createTextVNode(r.toDisplayString(r.unref(O)((N=r.unref(s))==null?void 0:N.context.remoteError)),1)]}),_:1})):r.createCommentVNode("",!0),r.createVNode(k,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"primary",type:"submit",disabled:r.unref(s).matches("confirmVerifyUser.pending")},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(p)),1)]),_:1},8,["disabled"]),r.createVNode(k,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:r.withModifiers(b,["prevent"])},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(d)),1)]),_:1},8,["onClick"]),r.renderSlot(y.$slots,"footer",{onSkipClicked:b,onConfirmVerifyUserSubmit:f})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),ax=["data-variation"],ix={"data-amplify-container":""},lx=["data-amplify-router-content"],sx={key:1,"data-amplify-router-content":""},Il=r.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 o=e,n=r.useAttrs(),{initialState:a,loginMechanisms:i,variation:l,services:s,signUpAttributes:c,socialProviders:d,hideSignUp:p,formFields:m}=r.toRefs(o),f=uk(),u=Ck(f);let b,y;const{state:g,send:v}=sl(u);Ie(u);const w=r.ref(!1);y=u.subscribe(I=>{I.matches("setup")&&!w.value&&(v({type:"INIT",data:{initialState:a==null?void 0:a.value,loginMechanisms:i==null?void 0:i.value,socialProviders:d==null?void 0:d.value,signUpAttributes:c==null?void 0:c.value,services:s==null?void 0:s.value,formFields:m==null?void 0:m.value}}),w.value=!0)}).unsubscribe,r.onMounted(()=>{b=Nd(u)}),r.onUnmounted(()=>{b&&b(),y&&y()});const _=r.computed(()=>ke(g.value)),k=r.ref(),x=r.ref(),A=r.ref(),S=r.ref(),C=r.ref(),$=r.ref(),N=r.ref(),R=r.ref(),D=r.ref(),F=r.ref(),ce=r.computed(()=>O("Create Account")),K=r.computed(()=>O("Sign In")),fe=I=>{var ve;n!=null&&n.onSignInSubmit?t("signInSubmit",I):(ve=k.value)==null||ve.submit(I)},St=I=>{n!=null&&n.onConfirmSignUpSubmit?t("confirmSignUpSubmit",I):A.value.submit(I)},ye=I=>{n!=null&&n.onResetPasswordSubmit?t("resetPasswordSubmit",I):N.value.submit(I)},$e=I=>{n!=null&&n.onConfirmResetPasswordSubmit?t("confirmResetPasswordSubmit",I):R.value.submit(I)},nn=I=>{n!=null&&n.onConfirmSignInSubmit?t("confirmSignInSubmit",I):S.value.submit(I)},Zt=I=>{n!=null&&n.onForceNewPasswordSubmit?t("mSetupTOTPSubmit",I):C.value.submit(I)},rn=I=>{n!=null&&n.onForceNewPasswordSubmit?t("forceNewPasswordSubmit",I):$.value.submit(I)},an=I=>{n!=null&&n.onSignUpSubmit?t("signUpSubmit",I):x.value.submit()},Xt=I=>{n!=null&&n.onVerifyUserSubmit?t("verifyUserSubmit",I):D.value.submit(I)},ln=I=>{n!=null&&n.onConfirmVerifyUserSubmit?t("confirmVerifyUserSubmit",I):F.value.submit(I)},Qt=r.ref(null),eo=r.ref();r.watch(()=>g.value.context,()=>{const{user:I,signOut:ve}=ci({send:v,state:g.value});Qt.value=I,eo.value=ve});const xt=r.computed(()=>{var I,ve;return((I=_.value)==null?void 0:I.matches("signIn"))||((ve=_.value)==null?void 0:ve.matches("signUp"))}),sn=r.computed(()=>{var I;return!(g.value.matches("authenticated")||g.value.matches("idle")||g.value.matches("setup")||g.value.matches("signOut")||((I=_.value)==null?void 0:I.matches("autoSignIn")))});return(I,ve)=>{var T,U,P,B,V,j,M,Z,re,_e,tt;const to=aS,h=sS;return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(sn)?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0},I.$attrs,{"data-amplify-authenticator":"","data-variation":r.unref(l)}),[r.createElementVNode("div",ix,[r.renderSlot(I.$slots,"header"),r.createElementVNode("div",{"data-amplify-router":"","data-amplify-router-content":r.unref(xt)?void 0:""},[r.unref(xt)&&!r.unref(p)?(r.openBlock(),r.createBlock(h,{key:0},{default:r.withCtx(()=>{var te,oe;return[r.createVNode(to,{active:(te=r.unref(_))==null?void 0:te.matches("signIn"),id:44472,label:r.unref(K),onClick:ve[0]||(ve[0]=ot=>r.unref(v)("SIGN_IN"))},null,8,["active","label"]),r.createVNode(to,{active:(oe=r.unref(_))==null?void 0:oe.matches("signUp"),id:44471,label:r.unref(ce),onClick:ve[1]||(ve[1]=ot=>r.unref(v)("SIGN_UP"))},null,8,["active","label"])]}),_:1})):r.createCommentVNode("",!0),r.unref(xt)?(r.openBlock(),r.createElementBlock("div",sx,[(T=r.unref(_))!=null&&T.matches("signIn")?(r.openBlock(),r.createBlock(Pr,{key:0,onSignInSubmit:fe,ref_key:"signInComponent",ref:k},{signInSlotI:r.withCtx(()=>[r.renderSlot(I.$slots,"sign-in")]),form:r.withCtx(({info:te,onSignInSubmit:oe,onForgotPasswordClicked:ot,onInput:Ct})=>[r.renderSlot(I.$slots,"sign-in-form",{info:te,onInput:Ct,onSignInSubmit:oe,onForgotPasswordClicked:ot})]),header:r.withCtx(()=>[r.renderSlot(I.$slots,"sign-in-header")]),footer:r.withCtx(()=>[r.renderSlot(I.$slots,"sign-in-footer")]),_:3},512)):r.createCommentVNode("",!0),((U=r.unref(_))==null?void 0:U.matches("signUp"))&&!r.unref(p)?(r.openBlock(),r.createBlock(Ur,{key:1,onSignUpSubmit:an,ref_key:"signUpComponent",ref:x},{signUpSlotI:r.withCtx(()=>[r.renderSlot(I.$slots,"sign-up")]),header:r.withCtx(()=>[r.renderSlot(I.$slots,"sign-up-header")]),"signup-fields":r.withCtx(({info:te})=>[r.renderSlot(I.$slots,"sign-up-fields",{info:te})]),footer:r.withCtx(()=>[r.renderSlot(I.$slots,"sign-up-footer")]),_:3},512)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),(P=r.unref(_))!=null&&P.matches("confirmSignUp")?(r.openBlock(),r.createBlock(zr,{key:2,onConfirmSignUpSubmit:St,ref_key:"confirmSignUpComponent",ref:A},{confirmSignUpSlotI:r.withCtx(()=>[r.renderSlot(I.$slots,"confirm-sign-up")]),header:r.withCtx(()=>[r.renderSlot(I.$slots,"confirm-sign-up-header")]),footer:r.withCtx(({onConfirmSignUpSubmit:te,onLostCodeClicked:oe})=>[r.renderSlot(I.$slots,"confirm-sign-up-footer",{onConfirmSignUpSubmit:te,onLostCodeClicked:oe})]),_:3},512)):r.createCommentVNode("",!0),(B=r.unref(_))!=null&&B.matches("resetPassword")?(r.openBlock(),r.createBlock(Lr,{key:3,onResetPasswordSubmit:ye,ref_key:"resetPasswordComponent",ref:N},{resetPasswordSlotI:r.withCtx(()=>[r.renderSlot(I.$slots,"reset-password")]),header:r.withCtx(()=>[r.renderSlot(I.$slots,"reset-password-header")]),footer:r.withCtx(({onResetPasswordSubmit:te,onBackToSignInClicked:oe})=>[r.renderSlot(I.$slots,"reset-password-footer",{onResetPasswordSubmit:te,onBackToSignInClicked:oe})]),_:3},512)):r.createCommentVNode("",!0),(V=r.unref(_))!=null&&V.matches("confirmResetPassword")?(r.openBlock(),r.createBlock(Gr,{key:4,onConfirmResetPasswordSubmit:$e,ref_key:"confirmResetPasswordComponent",ref:R},{confirmResetPasswordSlotI:r.withCtx(()=>[r.renderSlot(I.$slots,"confirm-reset-password")]),header:r.withCtx(()=>[r.renderSlot(I.$slots,"confirm-reset-password-header")]),footer:r.withCtx(({onConfirmResetPasswordSubmit:te,onLostYourCodeClicked:oe})=>[r.renderSlot(I.$slots,"confirm-reset-password-footer",{onConfirmResetPasswordSubmit:te,onLostYourCodeClicked:oe})]),_:3},512)):r.createCommentVNode("",!0),(j=r.unref(_))!=null&&j.matches("confirmSignIn")?(r.openBlock(),r.createBlock(Or,{key:5,onConfirmSignInSubmit:nn,ref_key:"confirmSignInComponent",ref:S},{confirmSignInSlotI:r.withCtx(()=>[r.renderSlot(I.$slots,"confirm-sign-in")]),header:r.withCtx(()=>[r.renderSlot(I.$slots,"confirm-sign-in-header")]),footer:r.withCtx(({onConfirmSignInSubmit:te,onBackToSignInClicked:oe})=>[r.renderSlot(I.$slots,"confirm-sign-in-footer",{onConfirmSignInSubmit:te,onBackToSignInClicked:oe})]),_:3},512)):r.createCommentVNode("",!0),(M=r.unref(_))!=null&&M.matches("setupTOTP")?(r.openBlock(),r.createBlock(rx,{key:6,onConfirmSetupTotpSubmit:Zt,ref_key:"confirmSetupTOTPComponent",ref:C},{confirmSetupTOTPI:r.withCtx(()=>[r.renderSlot(I.$slots,"setup-totp")]),header:r.withCtx(()=>[r.renderSlot(I.$slots,"setup-totp-header")]),footer:r.withCtx(({onSetupTOTPSubmit:te,onBackToSignInClicked:oe})=>[r.renderSlot(I.$slots,"setup-totp-footer",{onSetupTOTPSubmit:te,onBackToSignInClicked:oe})]),_:3},512)):r.createCommentVNode("",!0),(Z=r.unref(_))!=null&&Z.matches("forceNewPassword")?(r.openBlock(),r.createBlock(jr,{key:7,onForceNewPasswordSubmit:rn,ref_key:"forceNewPasswordComponent",ref:$},{forceNewPasswordI:r.withCtx(()=>[r.renderSlot(I.$slots,"force-new-password")]),header:r.withCtx(()=>[r.renderSlot(I.$slots,"force-new-password-header")]),"force-new-password-form-fields":r.withCtx(()=>[r.renderSlot(I.$slots,"force-new-password-form-fields")]),footer:r.withCtx(({onHaveAccountClicked:te,onForceNewPasswordSubmit:oe})=>[r.renderSlot(I.$slots,"force-new-password-footer",{onForceNewPasswordSubmit:oe,onBackToSignInClicked:te})]),_:3},512)):r.createCommentVNode("",!0),(re=r.unref(_))!=null&&re.matches("verifyUser")?(r.openBlock(),r.createBlock(qr,{key:8,onVerifyUserSubmit:Xt,ref_key:"verifyUserComponent",ref:D},{verifyUserSlotI:r.withCtx(()=>[r.renderSlot(I.$slots,"verify-user")]),header:r.withCtx(()=>[r.renderSlot(I.$slots,"verify-user-header")]),footer:r.withCtx(({onVerifyUserSubmit:te,onSkipClicked:oe})=>[r.renderSlot(I.$slots,"verify-user-footer",{onVerifyUserSubmit:te,onSkipClicked:oe})]),_:3},512)):r.createCommentVNode("",!0),(_e=r.unref(_))!=null&&_e.matches("confirmVerifyUser")?(r.openBlock(),r.createBlock(Hr,{key:9,onConfirmVerifyUserSubmit:ln,ref_key:"confirmVerifyUserComponent",ref:F},{confirmVerifyUserSlotI:r.withCtx(()=>[r.renderSlot(I.$slots,"confirm-verify-user")]),header:r.withCtx(()=>[r.renderSlot(I.$slots,"confirm-verify-user-header")]),footer:r.withCtx(({onConfirmVerifyUserSubmit:te,onSkipClicked:oe})=>[r.renderSlot(I.$slots,"confirm-verify-user-footer",{onConfirmVerifyUserSubmit:te,onSkipClicked:oe})]),_:3},512)):r.createCommentVNode("",!0)],8,lx),r.renderSlot(I.$slots,"footer")])],16,ax)):r.createCommentVNode("",!0),(tt=r.unref(g))!=null&&tt.matches("authenticated")?r.renderSlot(I.$slots,"default",{key:1,user:Qt.value,state:r.unref(g),signOut:eo.value,send:r.unref(v)}):r.createCommentVNode("",!0)],64)}}}),$l=r.defineComponent({props:{info:{type:Object}},setup(e){return()=>e.info}}),Tl=r.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:o,id:n,autocomplete:a,placeholder:i,required:l,name:s,type:c}=r.toRefs(t);return(d,p)=>{const m=Zo,f=Xo,u=ge;return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(m,{class:r.normalizeClass(["amplify-label",{"amplify-visually-hidden":e.hideLabel}]),for:r.unref(n)},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(o)),1)]),_:1},8,["class","for"]),r.createVNode(u,{class:"amplify-field-group__field-wrapper"},{default:r.withCtx(()=>[r.createVNode(f,{class:"amplify-input amplify-field-group__control",id:r.unref(n),"aria-invalid":"false",autocomplete:r.unref(a),placeholder:r.unref(i),required:r.unref(l),name:r.unref(s),disabled:e.disabled,type:r.unref(c)},null,8,["id","autocomplete","placeholder","required","name","disabled","type"])]),_:1})],64)}}}),cx={class:"amplify-flex amplify-field amplify-checkboxfield"},dx={class:"amplify-flex amplify-checkbox"},px={class:"amplify-visually-hidden"},fx=["data-error","data-checked"],mx=["data-checked"],ux=r.createElementVNode("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},null,-1),yx=[ux],gx=r.createElementVNode("span",{class:"amplify-text amplify-checkbox__label"}," I agree with the Terms & Conditions",-1),bx={key:0,class:"amplify-text amplify-field__error-message"},Pl=r.defineComponent({name:"amplify-check-box",props:{errorMessage:{default:""}},setup(e){const t=e,o=r.ref(!1),{errorMessage:n}=r.toRefs(t);return(a,i)=>(r.openBlock(),r.createElementBlock("div",cx,[r.createElementVNode("label",dx,[r.createElementVNode("span",px,[r.createElementVNode("input",{onClick:i[0]||(i[0]=l=>o.value=!o.value),class:"amplify-input amplify-field-group__control amplify-checkbox__input","aria-invalid":"false",type:"checkbox",name:"acknowledgement",value:"yes"})]),r.createElementVNode("span",{class:r.normalizeClass(["amplify-flex amplify-checkbox__button",{"amplify-checkbox__button--error":!o.value}]),"aria-hidden":"true","data-focus":"false","data-error":!o.value,"data-checked":o.value},[(r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",class:r.normalizeClass(["amplify-icon amplify-checkbox__icon",{"amplify-checkbox__icon--checked":o.value}]),viewBox:"0 0 24 24",fill:"currentColor","data-checked":o.value},yx,10,mx))],10,fx),gx]),o.value?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("p",bx,r.toDisplayString(r.unref(n)),1))]))}});var hx={install:e=>{e.component("SignIn",Pr),e.component("SignUp",Ur),e.component("FederatedSignIn",Jo),e.component("Authenticator",Il),e.component("RenderInfo",$l),e.component("PasswordControl",Tr),e.component("ForceNewPassword",jr),e.component("ResetPassword",Lr),e.component("ConfirmResetPassword",Gr),e.component("ConfirmSignUp",zr),e.component("ConfirmSignIn",Or),e.component("VerifyUser",qr),e.component("ConfirmVerifyUser",Hr),e.component("AmplifyTextField",Tl),e.component("AmplifyCheckBox",Pl),e.component("AmplifyButton",we),e.component("BaseFormField",dl),e.component("BaseFormFields",Fe),e.component("AuthenticatorSignUpFormFields",Nr),e.component("AuthenticatorForceNewPasswordFormFields",Fr)}};exports.AmplifyButton=we;exports.AmplifyCheckBox=Pl;exports.AmplifyTextField=Tl;exports.Authenticator=Il;exports.AuthenticatorForceNewPasswordFormFields=Fr;exports.AuthenticatorSignUpFormFields=Nr;exports.ConfirmResetPassword=Gr;exports.ConfirmSignIn=Or;exports.ConfirmSignUp=zr;exports.ConfirmVerifyUser=Hr;exports.FederatedSignIn=Jo;exports.ForceNewPassword=jr;exports.PasswordControl=Tr;exports.RenderInfo=$l;exports.ResetPassword=Lr;exports.SignIn=Pr;exports.SignUp=Ur;exports.VerifyUser=qr;exports.default=hx;exports.translations=Id;exports.useAuthenticator=Se;
37
+ `);const s=BC(t,n,a),u=er.getSymbolSize(t),c=new EC(u);return kC(c,t),xC(c),OC(c,t),hr(c,n,0),t>=7&&UC(c,t),RC(c,s),isNaN(r)&&(r=Dr.getBestMask(c,hr.bind(null,c,n))),Dr.applyMask(r,c),hr(c,n,r),{modules:c,version:t,errorCorrectionLevel:n,maskPattern:r,segments:a}}cs.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=xn.from(n.version),i=Dr.from(n.maskPattern),n.toSJISFunc&&er.setToSJISFunction(n.toSJISFunc)),DC(t,a,r,i)};var bs={},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 p=0;p<l;p++){let g=(f*l+p)*4,m=i.color.light;if(f>=d&&p>=d&&f<l-d&&p<l-d){const v=Math.floor((f-d)/c),S=Math.floor((p-d)/c);m=h[u[v*s+S]?1:0]}r[g++]=m.r,r[g++]=m.g,r[g++]=m.b,r[g]=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)}})(bs);var Cs={};const MC=Bo;function Ya(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 FC(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}Cs.render=function(t,n,r){const a=MC.getOptions(n),i=t.modules.size,s=t.modules.data,u=i+a.margin*2,c=a.color.light.a?"<path "+Ya(a.color.light,"fill")+' d="M0 0h'+u+"v"+u+'H0z"/>':"",l="<path "+Ya(a.color.dark,"stroke")+' d="'+FC(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 LC=tC,Fr=cs,As=bs,jC=Cs;function Vo(e,t,n,r,a){const i=[].slice.call(arguments,1),s=i.length,u=typeof i[s-1]=="function";if(!u&&!LC())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=Fr.create(n,r);c(e(d,t,r))}catch(d){l(d)}})}try{const c=Fr.create(n,r);a(null,e(c,t,r))}catch(c){a(c)}}Wt.create=Fr.create;Wt.toCanvas=Vo.bind(null,As.render);Wt.toDataURL=Vo.bind(null,As.renderToDataURL);Wt.toString=Vo.bind(null,function(e,t,n){return jC.render(e,n)});const zC={key:0},GC=o.createTextVNode(" Setup TOTP "),HC=["src"],KC={"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),WC=o.defineComponent({__name:"setup-totp",emits:["confirmSetupTOTPSubmit","backToSignInClicked"],setup(e,{emit:t}){var C,E;const r=Te(Ae)(),a=o.useAttrs(),{state:i,send:s}=$e(),{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(()=>be(i.value));let h=o.reactive({qrCodeImageSource:"",isLoading:!0}),f=o.ref(""),p=o.ref(R("COPY"));function g(){navigator.clipboard.writeText(f.value),p.value=R("COPIED")}o.onMounted(async()=>{var I,N;const A=new le.Logger("SetupTOTP-logger"),{user:$}=d.value.context;if(!!$)try{f.value=await le.Auth.setupTOTP($);const M=(I=l==null?void 0:l.totpIssuer)!=null?I:"AWSCognito",F=(N=l==null?void 0:l.totpUsername)!=null?N:$.username,D=encodeURI(`otpauth://totp/${M}:${F}?secret=${f.value}&issuer=${M}`);h.qrCodeImageSource=await Wt.toDataURL(D)}catch(M){A.error(M)}finally{h.isLoading=!1}});const m=o.computed(()=>R("Back to Sign In")),v=o.computed(()=>R("Confirm")),S=A=>{const{name:$,value:I}=A.target;s({type:"CHANGE",data:{name:$,value:I}})},w=A=>{a!=null&&a.onConfirmSetupTOTPSubmit?t("confirmSetupTOTPSubmit",A):_(A)},_=A=>{r.submitForm(Ve(A))},b=()=>{a!=null&&a.onBackToSignInClicked?t("backToSignInClicked"):s({type:"SIGN_IN"})};return(A,$)=>{const I=Je,N=ye,M=De,F=we,D=Fe,G=Ue,de=Me;return o.renderSlot(A.$slots,"confirmSetupTOTPI",o.normalizeProps(o.guardReactiveProps(A.$attrs)),()=>[o.createVNode(N,o.normalizeProps(o.guardReactiveProps(A.$attrs)),{default:o.withCtx(()=>[o.createVNode(de,{"data-amplify-authenticator-setup-totp":"",onInput:S,onSubmit:o.withModifiers(w,["prevent"])},{default:o.withCtx(()=>[o.createVNode(G,{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",zC,"Loading...")):(o.openBlock(),o.createBlock(N,{key:1,class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(A.$slots,"header",{},()=>[o.createVNode(I,{class:"amplify-heading",level:3},{default:o.withCtx(()=>[GC]),_:1})]),o.createVNode(N,{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,HC),o.createVNode(N,{class:"amplify-flex","data-amplify-copy":""},{default:o.withCtx(()=>[o.createElementVNode("div",null,o.toDisplayString(o.unref(f)),1),o.createVNode(N,{"data-amplify-copy-svg":"",onClick:g},{default:o.withCtx(()=>[o.createElementVNode("div",KC,o.toDisplayString(o.unref(p)),1),qC]),_:1})]),_:1}),o.createVNode(Le,{route:"setupTOTP"})]),_:1}),o.createVNode(D,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var X;return[(X=o.unref(d).context)!=null&&X.remoteError?(o.openBlock(),o.createBlock(M,{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(v)),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:w})]}),_: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(Le,{route:"forceNewPassword"}))}}),Mo=o.defineComponent({__name:"force-new-password",emits:["haveAccountClicked","forceNewPasswordSubmit"],setup(e,{emit:t}){const n=o.useAttrs(),{state:r,send:a}=$e(),s=Te(Ae)(),u=o.computed(()=>be(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=v=>{n!=null&&n.onForceNewPasswordSubmit?t("forceNewPasswordSubmit",v):p(v)},p=v=>{s.submitForm(Ve(v))},g=v=>{const{name:S,value:w}=v.target;a({type:"CHANGE",data:{name:S,value:w}})};function m(v){const{name:S}=v.target;s.updateBlur({name:S})}return(v,S)=>{const w=Je,_=ye,b=De,C=we,E=Fe,A=Ue,$=Me;return o.renderSlot(v.$slots,"forceNewPasswordI",o.normalizeProps(o.guardReactiveProps(v.$attrs)),()=>[o.createVNode(_,o.normalizeProps(o.guardReactiveProps(v.$attrs)),{default:o.withCtx(()=>[o.createVNode($,{"data-amplify-authenticator-forcenewpassword":"",onInput:g,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(v.$slots,"header",{},()=>[o.createVNode(w,{level:3,class:"amplify-heading"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(c)),1)]),_:1})]),o.createVNode(_,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(v.$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(h,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1},8,["onClick"]),o.renderSlot(v.$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=Te(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(Ve(m))},p=m=>{const{name:v,value:S}=m.target;a({type:"CHANGE",data:{name:v,value:S}})},g=()=>{n!=null&&n.onBackToSignInClicked?t("backToSignInClicked"):a({type:"SIGN_IN"})};return(m,v)=>{const S=Je,w=Ue,_=De,b=we,C=Fe,E=ye,A=Me;return o.renderSlot(m.$slots,"resetPasswordSlotI",o.normalizeProps(o.guardReactiveProps(m.$attrs)),()=>[o.createVNode(A,o.mergeProps(m.$attrs,{"data-amplify-authenticator-resetpassword":"",onInput:p,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(S,{class:"amplify-heading",level:3},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1})]),o.createVNode(w,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(u)},{default:o.withCtx(()=>[o.createVNode(Le,{route:"resetPassword"})]),_:1},8,["disabled"]),o.createVNode(C,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.unref(s)?(o.openBlock(),o.createBlock(_,{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(g,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(c)),1)]),_:1},8,["onClick"]),o.renderSlot(m.$slots,"footer",{onBackToSignInClicked:g,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}=$e(),i=Te(Ae)(),s=o.useAttrs(),u=o.computed(()=>be(n.value)),c=o.computed(()=>R("Resend Code")),l=o.computed(()=>R("Reset your Password")),d=o.computed(()=>R("Submit")),h=v=>{s!=null&&s.onConfirmResetPasswordSubmit?t("confirmResetPasswordSubmit",v):f(v)},f=v=>{i.submitForm(Ve(v))},p=()=>{r({type:"RESEND"})},g=v=>{const{name:S,value:w}=v.target;r({type:"CHANGE",data:{name:S,value:w}})};function m(v){const{name:S}=v.target;i.updateBlur({name:S})}return(v,S)=>{const w=Je,_=ye,b=De,C=we,E=Fe,A=Ue,$=Me;return o.renderSlot(v.$slots,"confirmResetPasswordSlotI",o.normalizeProps(o.guardReactiveProps(v.$attrs)),()=>[o.createVNode(_,o.normalizeProps(o.guardReactiveProps(v.$attrs)),{default:o.withCtx(()=>[o.createVNode($,{"data-amplify-authenticator-confirmResetpassword":"",onInput:g,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(v.$slots,"header",{},()=>[o.createVNode(w,{class:"amplify-heading",level:3},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1})]),o.createVNode(_,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(Le,{route:"confirmResetPassword"})]),_:1}),o.createVNode(E,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var I,N;return[(N=(I=o.unref(u))==null?void 0:I.context)!=null&&N.remoteError?(o.openBlock(),o.createBlock(b,{key:0},{default:o.withCtx(()=>{var M,F;return[o.createTextVNode(o.toDisplayString(o.unref(R)((F=(M=o.unref(u))==null?void 0:M.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(p,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(c)),1)]),_:1},8,["onClick"]),o.renderSlot(v.$slots,"footer",{onConfirmResetPasswordSubmit:h,onLostYourCodeClicked:p})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),jo=o.defineComponent({__name:"verify-user",emits:["verifyUserSubmit","skipClicked"],setup(e,{emit:t}){const r=Te(Ae)(),a=o.useAttrs(),{state:i,send:s}=$e(),u=o.computed(()=>be(i.value)),c=u.value.context.unverifiedAttributes,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")),p=S=>{const{name:w,value:_}=S.target;s({type:"CHANGE",data:{name:w,value:_}})},g=S=>{a!=null&&a.onVerifyUserSubmit?t("verifyUserSubmit",S):m(S)},m=S=>{r.submitForm(Ve(S))},v=()=>{a!=null&&a.onSkipClicked?t("skipClicked"):s("SKIP")};return(S,w)=>{const _=Je,b=Yn,C=Jn,E=us,A=ye,$=De,I=we,N=Fe,M=Ue,F=Me;return o.renderSlot(S.$slots,"verifyUserSlotI",{},()=>[o.createVNode(A,null,{default:o.withCtx(()=>[o.createVNode(F,{onInput:p,onSubmit:o.withModifiers(g,["prevent"])},{default:o.withCtx(()=>[o.createVNode(M,{disabled:o.unref(u).matches("verifyUser.pending"),class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(S.$slots,"header",{},()=>[o.createVNode(_,{class:"amplify-heading",level:3},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(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,G)=>(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:G},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(Hr)[G].label),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1}),o.createVNode(N,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var D,G;return[(G=(D=o.unref(u))==null?void 0:D.context)!=null&&G.remoteError?(o.openBlock(),o.createBlock($,{key:0},{default:o.withCtx(()=>{var de;return[o.createTextVNode(o.toDisplayString(o.unref(R)((de=o.unref(u))==null?void 0:de.context.remoteError)),1)]}),_:1})):o.createCommentVNode("",!0),o.createVNode(I,{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(I,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(v,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1},8,["onClick"]),o.renderSlot(S.$slots,"footer",{onSkipClicked:v,onVerifyUserSubmit:g})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3})])}}}),zo=o.defineComponent({__name:"confirm-verify-user",emits:["confirmVerifyUserSubmit","skipClicked"],setup(e,{emit:t}){const r=Te(Ae)(),a=o.useAttrs(),{state:i,send:s}=$e(),u=o.computed(()=>be(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:v,value:S}=m.target;s({type:"CHANGE",data:{name:v,value:S}})},f=m=>{a!=null&&a.onConfirmVerifyUserSubmit?t("confirmVerifyUserSubmit",m):p(m)},p=m=>{r.submitForm(Ve(m))},g=()=>{a!=null&&a.onSkipClicked?t("skipClicked"):s({type:"SKIP"})};return(m,v)=>{const S=Je,w=ye,_=De,b=we,C=Fe,E=Ue,A=Me;return o.renderSlot(m.$slots,"confirmVerifyUserSlotI",o.normalizeProps(o.guardReactiveProps(m.$attrs)),()=>[o.createVNode(w,o.normalizeProps(o.guardReactiveProps(m.$attrs)),{default:o.withCtx(()=>[o.createVNode(A,{onInput:h,onSubmit:o.withModifiers(f,["prevent"])},{default:o.withCtx(()=>[o.createVNode(E,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(u).matches("confirmVerifyUser.pending")},{default:o.withCtx(()=>[o.renderSlot(m.$slots,"header",{},()=>[o.createVNode(S,{level:3,class:"amplify-heading"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(c)),1)]),_:1})]),o.createVNode(w,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(Le,{route:"confirmVerifyUser"})]),_:1}),o.createVNode(C,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var $,I;return[(I=($=o.unref(u))==null?void 0:$.context)!=null&&I.remoteError?(o.openBlock(),o.createBlock(_,{key:0},{default:o.withCtx(()=>{var N;return[o.createTextVNode(o.toDisplayString(o.unref(R)((N=o.unref(u))==null?void 0:N.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(g,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1},8,["onClick"]),o.renderSlot(m.$slots,"footer",{onSkipClicked:g,onConfirmVerifyUserSubmit:f})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),YC=["data-variation"],JC={"data-amplify-container":""},ZC=["data-amplify-router-content"],QC={key:1,"data-amplify-router-content":""},Es=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=o0(),p=m0(f);let g,m;const{state:v,send:S}=as(p);$e(p);const w=o.ref(!1);m=p.subscribe(P=>{P.matches("setup")&&!w.value&&(S({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}}),w.value=!0)}).unsubscribe,o.onMounted(()=>{g=Al(p)}),o.onUnmounted(()=>{g&&g(),m&&m()});const _=o.computed(()=>be(v.value)),b=o.ref(),C=o.ref(),E=o.ref(),A=o.ref(),$=o.ref(),I=o.ref(),N=o.ref(),M=o.ref(),F=o.ref(),D=o.ref(),G=o.computed(()=>R("Create Account")),de=o.computed(()=>R("Sign In")),X=P=>{var Se;r!=null&&r.onSignInSubmit?t("signInSubmit",P):(Se=b.value)==null||Se.submit(P)},At=P=>{r!=null&&r.onConfirmSignUpSubmit?t("confirmSignUpSubmit",P):E.value.submit(P)},Et=P=>{r!=null&&r.onResetPasswordSubmit?t("resetPasswordSubmit",P):N.value.submit(P)},pe=P=>{r!=null&&r.onConfirmResetPasswordSubmit?t("confirmResetPasswordSubmit",P):M.value.submit(P)},xe=P=>{r!=null&&r.onConfirmSignInSubmit?t("confirmSignInSubmit",P):A.value.submit(P)},Jt=P=>{r!=null&&r.onForceNewPasswordSubmit?t("mSetupTOTPSubmit",P):$.value.submit(P)},tr=P=>{r!=null&&r.onForceNewPasswordSubmit?t("forceNewPasswordSubmit",P):I.value.submit(P)},nr=P=>{r!=null&&r.onSignUpSubmit?t("signUpSubmit",P):C.value.submit()},Zt=P=>{r!=null&&r.onVerifyUserSubmit?t("verifyUserSubmit",P):F.value.submit(P)},rr=P=>{r!=null&&r.onConfirmVerifyUserSubmit?t("confirmVerifyUserSubmit",P):D.value.submit(P)},Qt=o.ref(null),Xt=o.ref();o.watch(()=>v.value.context,()=>{const{user:P,signOut:Se}=ai({send:S,state:v.value});Qt.value=P,Xt.value=Se});const It=o.computed(()=>{var P,Se;return((P=_.value)==null?void 0:P.matches("signIn"))||((Se=_.value)==null?void 0:Se.matches("signUp"))}),or=o.computed(()=>{var P;return!(v.value.matches("authenticated")||v.value.matches("idle")||v.value.matches("setup")||v.value.matches("signOut")||((P=_.value)==null?void 0:P.matches("autoSignIn")))});return(P,Se)=>{var k,O,x,B,V,j,L,Q,ae,_e,tt;const en=Y0,y=Q0;return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.unref(or)?(o.openBlock(),o.createElementBlock("div",o.mergeProps({key:0},P.$attrs,{"data-amplify-authenticator":"","data-variation":o.unref(s)}),[o.createElementVNode("div",JC,[o.renderSlot(P.$slots,"header"),o.createElementVNode("div",{"data-amplify-router":"","data-amplify-router-content":o.unref(It)?void 0:""},[o.unref(It)&&!o.unref(d)?(o.openBlock(),o.createBlock(y,{key:0},{default:o.withCtx(()=>{var ne,re;return[o.createVNode(en,{active:(ne=o.unref(_))==null?void 0:ne.matches("signIn"),id:44472,label:o.unref(de),onClick:Se[0]||(Se[0]=nt=>o.unref(S)("SIGN_IN"))},null,8,["active","label"]),o.createVNode(en,{active:(re=o.unref(_))==null?void 0:re.matches("signUp"),id:44471,label:o.unref(G),onClick:Se[1]||(Se[1]=nt=>o.unref(S)("SIGN_UP"))},null,8,["active","label"])]}),_:1})):o.createCommentVNode("",!0),o.unref(It)?(o.openBlock(),o.createElementBlock("div",QC,[(k=o.unref(_))!=null&&k.matches("signIn")?(o.openBlock(),o.createBlock($o,{key:0,onSignInSubmit:X,ref_key:"signInComponent",ref:b},{signInSlotI:o.withCtx(()=>[o.renderSlot(P.$slots,"sign-in")]),form:o.withCtx(({info:ne,onSignInSubmit:re,onForgotPasswordClicked:nt,onInput:Tt})=>[o.renderSlot(P.$slots,"sign-in-form",{info:ne,onInput:Tt,onSignInSubmit:re,onForgotPasswordClicked:nt})]),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(_))==null?void 0:O.matches("signUp"))&&!o.unref(d)?(o.openBlock(),o.createBlock(No,{key:1,onSignUpSubmit:nr,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(_))!=null&&x.matches("confirmSignUp")?(o.openBlock(),o.createBlock(ko,{key:2,onConfirmSignUpSubmit:At,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:re})=>[o.renderSlot(P.$slots,"confirm-sign-up-footer",{onConfirmSignUpSubmit:ne,onLostCodeClicked:re})]),_:3},512)):o.createCommentVNode("",!0),(B=o.unref(_))!=null&&B.matches("resetPassword")?(o.openBlock(),o.createBlock(Fo,{key:3,onResetPasswordSubmit:Et,ref_key:"resetPasswordComponent",ref:N},{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:re})=>[o.renderSlot(P.$slots,"reset-password-footer",{onResetPasswordSubmit:ne,onBackToSignInClicked:re})]),_:3},512)):o.createCommentVNode("",!0),(V=o.unref(_))!=null&&V.matches("confirmResetPassword")?(o.openBlock(),o.createBlock(Lo,{key:4,onConfirmResetPasswordSubmit:pe,ref_key:"confirmResetPasswordComponent",ref:M},{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:re})=>[o.renderSlot(P.$slots,"confirm-reset-password-footer",{onConfirmResetPasswordSubmit:ne,onLostYourCodeClicked:re})]),_:3},512)):o.createCommentVNode("",!0),(j=o.unref(_))!=null&&j.matches("confirmSignIn")?(o.openBlock(),o.createBlock(xo,{key:5,onConfirmSignInSubmit:xe,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:re})=>[o.renderSlot(P.$slots,"confirm-sign-in-footer",{onConfirmSignInSubmit:ne,onBackToSignInClicked:re})]),_:3},512)):o.createCommentVNode("",!0),(L=o.unref(_))!=null&&L.matches("setupTOTP")?(o.openBlock(),o.createBlock(WC,{key:6,onConfirmSetupTotpSubmit:Jt,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:re})=>[o.renderSlot(P.$slots,"setup-totp-footer",{onSetupTOTPSubmit:ne,onBackToSignInClicked:re})]),_:3},512)):o.createCommentVNode("",!0),(Q=o.unref(_))!=null&&Q.matches("forceNewPassword")?(o.openBlock(),o.createBlock(Mo,{key:7,onForceNewPasswordSubmit:tr,ref_key:"forceNewPasswordComponent",ref:I},{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:re})=>[o.renderSlot(P.$slots,"force-new-password-footer",{onForceNewPasswordSubmit:re,onBackToSignInClicked:ne})]),_:3},512)):o.createCommentVNode("",!0),(ae=o.unref(_))!=null&&ae.matches("verifyUser")?(o.openBlock(),o.createBlock(jo,{key:8,onVerifyUserSubmit:Zt,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:re})=>[o.renderSlot(P.$slots,"verify-user-footer",{onVerifyUserSubmit:ne,onSkipClicked:re})]),_:3},512)):o.createCommentVNode("",!0),(_e=o.unref(_))!=null&&_e.matches("confirmVerifyUser")?(o.openBlock(),o.createBlock(zo,{key:9,onConfirmVerifyUserSubmit:rr,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:re})=>[o.renderSlot(P.$slots,"confirm-verify-user-footer",{onConfirmVerifyUserSubmit:ne,onSkipClicked:re})]),_:3},512)):o.createCommentVNode("",!0)],8,ZC),o.renderSlot(P.$slots,"footer")])],16,YC)):o.createCommentVNode("",!0),(tt=o.unref(v))!=null&&tt.matches("authenticated")?o.renderSlot(P.$slots,"default",{key:1,user:Qt.value,state:o.unref(v),signOut:Xt.value,send:o.unref(S)}):o.createCommentVNode("",!0)],64)}}}),Is=o.defineComponent({props:{info:{type:Object}},setup(e){return()=>e.info}}),Ts=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=Yn,f=Jn,p=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(p,{class:"amplify-field-group__field-wrapper"},{default:o.withCtx(()=>[o.createVNode(f,{class:"amplify-input amplify-field-group__control",id:o.unref(r),"aria-invalid":"false",autocomplete:o.unref(a),placeholder:o.unref(i),required:o.unref(s),name:o.unref(u),disabled:e.disabled,type:o.unref(c)},null,8,["id","autocomplete","placeholder","required","name","disabled","type"])]),_:1})],64)}}}),XC={class:"amplify-flex amplify-field amplify-checkboxfield"},e2={class:"amplify-flex amplify-checkbox"},t2={class:"amplify-visually-hidden"},n2=["data-error","data-checked"],r2=["data-checked"],o2=o.createElementVNode("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},null,-1),a2=[o2],i2=o.createElementVNode("span",{class:"amplify-text amplify-checkbox__label"}," I agree with the Terms & Conditions",-1),s2={key:0,class:"amplify-text amplify-field__error-message"},$s=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",XC,[o.createElementVNode("label",e2,[o.createElementVNode("span",t2,[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},a2,10,r2))],10,n2),i2]),n.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("p",s2,o.toDisplayString(o.unref(r)),1))]))}});var u2={install:e=>{e.component("SignIn",$o),e.component("SignUp",No),e.component("FederatedSignIn",Wn),e.component("Authenticator",Es),e.component("RenderInfo",Is),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",Ts),e.component("AmplifyCheckBox",$s),e.component("AmplifyButton",we),e.component("BaseFormField",ss),e.component("BaseFormFields",Le),e.component("AuthenticatorSignUpFormFields",Po),e.component("AuthenticatorForceNewPasswordFormFields",Do)}};exports.AmplifyButton=we;exports.AmplifyCheckBox=$s;exports.AmplifyTextField=Ts;exports.Authenticator=Es;exports.AuthenticatorForceNewPasswordFormFields=Do;exports.AuthenticatorSignUpFormFields=Po;exports.ConfirmResetPassword=Lo;exports.ConfirmSignIn=xo;exports.ConfirmSignUp=ko;exports.ConfirmVerifyUser=zo;exports.FederatedSignIn=Wn;exports.ForceNewPassword=Mo;exports.PasswordControl=To;exports.RenderInfo=Is;exports.ResetPassword=Fo;exports.SignIn=$o;exports.SignUp=No;exports.VerifyUser=jo;exports.default=u2;exports.translations=wl;exports.useAuthenticator=Ae;