@aws-amplify/ui-vue 2.4.15 → 2.4.18
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 +12 -12
- package/dist/index.js +847 -759
- package/dist/src/components/primitives/__tests__/base-alert.spec.d.ts +2 -0
- package/dist/src/components/primitives/__tests__/base-alert.spec.d.ts.map +1 -0
- package/dist/src/components/primitives/base-alert.vue.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
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)])}}),Ml={key:0,class:"amplify-flex amplify-alert amplify-alert--error amplify-authenticator__base","data-variation":"error",role:"alert"},Dl={class:"amplify-flex amplify-authenticator__icon-wrapper"},Fl=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),jl=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),Oe={name:"base-alert",setup(e){const t=r.ref(!0);function o(){t.value=!1}return(n,a)=>{const i=we;return t.value?(r.openBlock(),r.createElementBlock("div",Ml,[r.createElementVNode("div",Dl,[Fl,r.createElementVNode("div",null,[r.renderSlot(n.$slots,"default")])]),r.createVNode(i,{class:"amplify-field-group__control",fullwidth:!1,variation:"link",type:"button",onClick:o},{default:r.withCtx(()=>[jl]),_:1})])):r.createCommentVNode("",!0)}}};var Uo=(e,t)=>{const o=e.__vccOpts||e;for(const[n,a]of t)o[n]=a;return o};const Ll={};function Gl(e,t){return r.openBlock(),r.createElementBlock("div",null,[r.renderSlot(e.$slots,"default")])}var ge=Uo(Ll,[["render",Gl]]);const Re=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)])}}),Be=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 ql(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function Ae(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))),ql(a),o)}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:{},Hl=typeof oo=="object"&&oo&&oo.Object===Object&&oo,ti=Hl,Kl=ti,Wl=typeof self=="object"&&self&&self.Object===Object&&self,Yl=Kl||Wl||Function("return this")(),Ve=Yl,Jl=Ve,Zl=Jl.Symbol,Ft=Zl,Yr=Ft,oi=Object.prototype,Xl=oi.hasOwnProperty,Ql=oi.toString,It=Yr?Yr.toStringTag:void 0;function es(e){var t=Xl.call(e,It),o=e[It];try{e[It]=void 0;var n=!0}catch{}var a=Ql.call(e);return n&&(t?e[It]=o:delete e[It]),a}var ts=es,os=Object.prototype,ns=os.toString;function rs(e){return ns.call(e)}var as=rs,Jr=Ft,is=ts,ls=as,ss="[object Null]",cs="[object Undefined]",Zr=Jr?Jr.toStringTag:void 0;function ds(e){return e==null?e===void 0?cs:ss:Zr&&Zr in Object(e)?is(e):ls(e)}var ut=ds;function ps(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Me=ps,fs=ut,ms=Me,us="[object AsyncFunction]",ys="[object Function]",gs="[object GeneratorFunction]",bs="[object Proxy]";function hs(e){if(!ms(e))return!1;var t=fs(e);return t==ys||t==gs||t==us||t==bs}var Hn=hs,vs=9007199254740991;function ws(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=vs}var Kn=ws,_s=Hn,ks=Kn;function Ss(e){return e!=null&&ks(e.length)&&!_s(e)}var jt=Ss,xs=Array.isArray,Pe=xs;function Cs(e){return e!=null&&typeof e=="object"}var Ge=Cs,As=ut,Es=Ge,Is="[object Symbol]";function $s(e){return typeof e=="symbol"||Es(e)&&As(e)==Is}var Wn=$s;function Ts(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=Ts;function Ps(e,t){for(var o=-1,n=Array(e);++o<e;)n[o]=t(o);return n}var Ns=Ps,Us=ut,zs=Ge,Os="[object Arguments]";function Rs(e){return zs(e)&&Us(e)==Os}var Bs=Rs,Xr=Bs,Vs=Ge,ri=Object.prototype,Ms=ri.hasOwnProperty,Ds=ri.propertyIsEnumerable,Fs=Xr(function(){return arguments}())?Xr:function(e){return Vs(e)&&Ms.call(e,"callee")&&!Ds.call(e,"callee")},zo=Fs,Xe={exports:{}};function js(){return!1}var Ls=js;(function(e,t){var o=Ve,n=Ls,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 Gs=9007199254740991,qs=/^(?:0|[1-9]\d*)$/;function Hs(e,t){var o=typeof e;return t=t==null?Gs:t,!!t&&(o=="number"||o!="symbol"&&qs.test(e))&&e>-1&&e%1==0&&e<t}var Oo=Hs,Ks=ut,Ws=Kn,Ys=Ge,Js="[object Arguments]",Zs="[object Array]",Xs="[object Boolean]",Qs="[object Date]",ec="[object Error]",tc="[object Function]",oc="[object Map]",nc="[object Number]",rc="[object Object]",ac="[object RegExp]",ic="[object Set]",lc="[object String]",sc="[object WeakMap]",cc="[object ArrayBuffer]",dc="[object DataView]",pc="[object Float32Array]",fc="[object Float64Array]",mc="[object Int8Array]",uc="[object Int16Array]",yc="[object Int32Array]",gc="[object Uint8Array]",bc="[object Uint8ClampedArray]",hc="[object Uint16Array]",vc="[object Uint32Array]",ae={};ae[pc]=ae[fc]=ae[mc]=ae[uc]=ae[yc]=ae[gc]=ae[bc]=ae[hc]=ae[vc]=!0;ae[Js]=ae[Zs]=ae[cc]=ae[Xs]=ae[dc]=ae[Qs]=ae[ec]=ae[tc]=ae[oc]=ae[nc]=ae[rc]=ae[ac]=ae[ic]=ae[lc]=ae[sc]=!1;function wc(e){return Ys(e)&&Ws(e.length)&&!!ae[Ks(e)]}var _c=wc;function kc(e){return function(t){return e(t)}}var Yn=kc,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 Sc=_c,xc=Yn,Qr=Vt.exports,ea=Qr&&Qr.isTypedArray,Cc=ea?xc(ea):Sc,Ro=Cc,Ac=Ns,Ec=zo,Ic=Pe,$c=Xe.exports,Tc=Oo,Pc=Ro,Nc=Object.prototype,Uc=Nc.hasOwnProperty;function zc(e,t){var o=Ic(e),n=!o&&Ec(e),a=!o&&!n&&$c(e),i=!o&&!n&&!a&&Pc(e),l=o||n||a||i,s=l?Ac(e.length,String):[],c=s.length;for(var d in e)(t||Uc.call(e,d))&&!(l&&(d=="length"||a&&(d=="offset"||d=="parent")||i&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||Tc(d,c)))&&s.push(d);return s}var ai=zc,Oc=Object.prototype;function Rc(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||Oc;return e===o}var Bo=Rc;function Bc(e,t){return function(o){return e(t(o))}}var ii=Bc,Vc=ii,Mc=Vc(Object.keys,Object),Dc=Mc,Fc=Bo,jc=Dc,Lc=Object.prototype,Gc=Lc.hasOwnProperty;function qc(e){if(!Fc(e))return jc(e);var t=[];for(var o in Object(e))Gc.call(e,o)&&o!="constructor"&&t.push(o);return t}var li=qc,Hc=ai,Kc=li,Wc=jt;function Yc(e){return Wc(e)?Hc(e):Kc(e)}var Vo=Yc,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 Jc=["birthdate","email","family_name","given_name","middle_name","name","nickname","phone_number","preferred_username","profile","website"],Zc=["username","email","phone_number"],Xc=Ue(Ue(Ue([],Zc,!0),Jc,!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]},Qc=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")}},ed=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=Qc(t),a=ed(o);return z(z({},n),a)},td=["+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"],od={"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."},nd={"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"},rd={"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"},ad={"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"},id={"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"},ld={"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"},sd={"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"},cd={"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"},dd={"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"},pd={"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"},fd={"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"},md={"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"},ud={"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"},yd={"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"},gd={"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"},bd={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"},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),Ed=z({},pd),Id=z({},fd),$d=z({},md),Td=z({},ud),Pd=z({},yd),Nd=z({},gd),Ud=z({},bd);z({},Ud);function O(e){return se.I18n.get(e)}function zd(e){return se.I18n.get(e)!==e}var Od={de:hd,en:vd,es:wd,fr:_d,id:Td,it:kd,ja:Sd,kr:xd,nl:Cd,pl:Ad,pt:Ed,zh:Id,sv:$d,tr:Pd,ru:Nd},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:td,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}},Rd=["^","$","*",".","[","]","{","}","(",")","?",'"',"!","@","#","%","&","/","\\",",",">","<","'",":",";","|","_","~","`","=","+","-"," "],De=function(e){var t=new FormData(e.target);return Object.fromEntries(t)},ta=function(e){return Xc.includes(e)},Bd=function(e){return e?(t=e,Array.isArray(t)?e:[e]):null;var t},Vd=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")}},Md=function(e,t){return t===void 0&&(t=Vd),se.Hub.listen("auth",function(o){t(o,e)},"authenticator-hub-handler")},Dd=function(e){return Rd.some(function(t){return e.includes(t)})};function Fd(){this.__data__=[],this.size=0}var jd=Fd;function Ld(e,t){return e===t||e!==e&&t!==t}var Lt=Ld,Gd=Lt;function qd(e,t){for(var o=e.length;o--;)if(Gd(e[o][0],t))return o;return-1}var Mo=qd,Hd=Mo,Kd=Array.prototype,Wd=Kd.splice;function Yd(e){var t=this.__data__,o=Hd(t,e);if(o<0)return!1;var n=t.length-1;return o==n?t.pop():Wd.call(t,o,1),--this.size,!0}var Jd=Yd,Zd=Mo;function Xd(e){var t=this.__data__,o=Zd(t,e);return o<0?void 0:t[o][1]}var Qd=Xd,ep=Mo;function tp(e){return ep(this.__data__,e)>-1}var op=tp,np=Mo;function rp(e,t){var o=this.__data__,n=np(o,e);return n<0?(++this.size,o.push([e,t])):o[n][1]=t,this}var ap=rp,ip=jd,lp=Jd,sp=Qd,cp=op,dp=ap;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=ip;yt.prototype.delete=lp;yt.prototype.get=sp;yt.prototype.has=cp;yt.prototype.set=dp;var Do=yt,pp=Do;function fp(){this.__data__=new pp,this.size=0}var mp=fp;function up(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}var yp=up;function gp(e){return this.__data__.get(e)}var bp=gp;function hp(e){return this.__data__.has(e)}var vp=hp,wp=Ve,_p=wp["__core-js_shared__"],kp=_p,cn=kp,oa=function(){var e=/[^.]+$/.exec(cn&&cn.keys&&cn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Sp(e){return!!oa&&oa in e}var xp=Sp,Cp=Function.prototype,Ap=Cp.toString;function Ep(e){if(e!=null){try{return Ap.call(e)}catch{}try{return e+""}catch{}}return""}var di=Ep,Ip=Hn,$p=xp,Tp=Me,Pp=di,Np=/[\\^$.*+?()[\]{}|]/g,Up=/^\[object .+?Constructor\]$/,zp=Function.prototype,Op=Object.prototype,Rp=zp.toString,Bp=Op.hasOwnProperty,Vp=RegExp("^"+Rp.call(Bp).replace(Np,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Mp(e){if(!Tp(e)||$p(e))return!1;var t=Ip(e)?Vp:Up;return t.test(Pp(e))}var Dp=Mp;function Fp(e,t){return e==null?void 0:e[t]}var jp=Fp,Lp=Dp,Gp=jp;function qp(e,t){var o=Gp(e,t);return Lp(o)?o:void 0}var et=qp,Hp=et,Kp=Ve,Wp=Hp(Kp,"Map"),Zn=Wp,Yp=et,Jp=Yp(Object,"create"),Fo=Jp,na=Fo;function Zp(){this.__data__=na?na(null):{},this.size=0}var Xp=Zp;function Qp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ef=Qp,tf=Fo,of="__lodash_hash_undefined__",nf=Object.prototype,rf=nf.hasOwnProperty;function af(e){var t=this.__data__;if(tf){var o=t[e];return o===of?void 0:o}return rf.call(t,e)?t[e]:void 0}var lf=af,sf=Fo,cf=Object.prototype,df=cf.hasOwnProperty;function pf(e){var t=this.__data__;return sf?t[e]!==void 0:df.call(t,e)}var ff=pf,mf=Fo,uf="__lodash_hash_undefined__";function yf(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=mf&&t===void 0?uf:t,this}var gf=yf,bf=Xp,hf=ef,vf=lf,wf=ff,_f=gf;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=bf;gt.prototype.delete=hf;gt.prototype.get=vf;gt.prototype.has=wf;gt.prototype.set=_f;var kf=gt,ra=kf,Sf=Do,xf=Zn;function Cf(){this.size=0,this.__data__={hash:new ra,map:new(xf||Sf),string:new ra}}var Af=Cf;function Ef(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var If=Ef,$f=If;function Tf(e,t){var o=e.__data__;return $f(t)?o[typeof t=="string"?"string":"hash"]:o.map}var jo=Tf,Pf=jo;function Nf(e){var t=Pf(this,e).delete(e);return this.size-=t?1:0,t}var Uf=Nf,zf=jo;function Of(e){return zf(this,e).get(e)}var Rf=Of,Bf=jo;function Vf(e){return Bf(this,e).has(e)}var Mf=Vf,Df=jo;function Ff(e,t){var o=Df(this,e),n=o.size;return o.set(e,t),this.size+=o.size==n?0:1,this}var jf=Ff,Lf=Af,Gf=Uf,qf=Rf,Hf=Mf,Kf=jf;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=Lf;bt.prototype.delete=Gf;bt.prototype.get=qf;bt.prototype.has=Hf;bt.prototype.set=Kf;var Xn=bt,Wf=Do,Yf=Zn,Jf=Xn,Zf=200;function Xf(e,t){var o=this.__data__;if(o instanceof Wf){var n=o.__data__;if(!Yf||n.length<Zf-1)return n.push([e,t]),this.size=++o.size,this;o=this.__data__=new Jf(n)}return o.set(e,t),this.size=o.size,this}var Qf=Xf,em=Do,tm=mp,om=yp,nm=bp,rm=vp,am=Qf;function ht(e){var t=this.__data__=new em(e);this.size=t.size}ht.prototype.clear=tm;ht.prototype.delete=om;ht.prototype.get=nm;ht.prototype.has=rm;ht.prototype.set=am;var Lo=ht;function im(e,t){for(var o=-1,n=e==null?0:e.length;++o<n&&t(e[o],o,e)!==!1;);return e}var lm=im,sm=et,cm=function(){try{var e=sm(Object,"defineProperty");return e({},"",{}),e}catch{}}(),pi=cm,aa=pi;function dm(e,t,o){t=="__proto__"&&aa?aa(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}var Qn=dm,pm=Qn,fm=Lt,mm=Object.prototype,um=mm.hasOwnProperty;function ym(e,t,o){var n=e[t];(!(um.call(e,t)&&fm(n,o))||o===void 0&&!(t in e))&&pm(e,t,o)}var er=ym,gm=er,bm=Qn;function hm(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?bm(o,s,c):gm(o,s,c)}return o}var Gt=hm,vm=Gt,wm=Vo;function _m(e,t){return e&&vm(t,wm(t),e)}var km=_m;function Sm(e){var t=[];if(e!=null)for(var o in Object(e))t.push(o);return t}var xm=Sm,Cm=Me,Am=Bo,Em=xm,Im=Object.prototype,$m=Im.hasOwnProperty;function Tm(e){if(!Cm(e))return Em(e);var t=Am(e),o=[];for(var n in e)n=="constructor"&&(t||!$m.call(e,n))||o.push(n);return o}var Pm=Tm,Nm=ai,Um=Pm,zm=jt;function Om(e){return zm(e)?Nm(e,!0):Um(e)}var qt=Om,Rm=Gt,Bm=qt;function Vm(e,t){return e&&Rm(t,Bm(t),e)}var Mm=Vm,_o={exports:{}};(function(e,t){var o=Ve,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 Dm(e,t){var o=-1,n=e.length;for(t||(t=Array(n));++o<n;)t[o]=e[o];return t}var fi=Dm;function Fm(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 jm=Fm;function Lm(){return[]}var mi=Lm,Gm=jm,qm=mi,Hm=Object.prototype,Km=Hm.propertyIsEnumerable,ia=Object.getOwnPropertySymbols,Wm=ia?function(e){return e==null?[]:(e=Object(e),Gm(ia(e),function(t){return Km.call(e,t)}))}:qm,tr=Wm,Ym=Gt,Jm=tr;function Zm(e,t){return Ym(e,Jm(e),t)}var Xm=Zm;function Qm(e,t){for(var o=-1,n=t.length,a=e.length;++o<n;)e[a+o]=t[o];return e}var ui=Qm,eu=ii,tu=eu(Object.getPrototypeOf,Object),or=tu,ou=ui,nu=or,ru=tr,au=mi,iu=Object.getOwnPropertySymbols,lu=iu?function(e){for(var t=[];e;)ou(t,ru(e)),e=nu(e);return t}:au,yi=lu,su=Gt,cu=yi;function du(e,t){return su(e,cu(e),t)}var pu=du,fu=ui,mu=Pe;function uu(e,t,o){var n=t(e);return mu(e)?n:fu(n,o(e))}var gi=uu,yu=gi,gu=tr,bu=Vo;function hu(e){return yu(e,bu,gu)}var bi=hu,vu=gi,wu=yi,_u=qt;function ku(e){return vu(e,_u,wu)}var hi=ku,Su=et,xu=Ve,Cu=Su(xu,"DataView"),Au=Cu,Eu=et,Iu=Ve,$u=Eu(Iu,"Promise"),Tu=$u,Pu=et,Nu=Ve,Uu=Pu(Nu,"Set"),zu=Uu,Ou=et,Ru=Ve,Bu=Ou(Ru,"WeakMap"),Vu=Bu,_n=Au,kn=Zn,Sn=Tu,xn=zu,Cn=Vu,vi=ut,vt=di,la="[object Map]",Mu="[object Object]",sa="[object Promise]",ca="[object Set]",da="[object WeakMap]",pa="[object DataView]",Du=vt(_n),Fu=vt(kn),ju=vt(Sn),Lu=vt(xn),Gu=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==Mu?e.constructor:void 0,n=o?vt(o):"";if(n)switch(n){case Du:return pa;case Fu:return la;case ju:return sa;case Lu:return ca;case Gu:return da}return t});var Ht=Ze,qu=Object.prototype,Hu=qu.hasOwnProperty;function Ku(e){var t=e.length,o=new e.constructor(t);return t&&typeof e[0]=="string"&&Hu.call(e,"index")&&(o.index=e.index,o.input=e.input),o}var Wu=Ku,Yu=Ve,Ju=Yu.Uint8Array,wi=Ju,fa=wi;function Zu(e){var t=new e.constructor(e.byteLength);return new fa(t).set(new fa(e)),t}var nr=Zu,Xu=nr;function Qu(e,t){var o=t?Xu(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}var ey=Qu,ty=/\w*$/;function oy(e){var t=new e.constructor(e.source,ty.exec(e));return t.lastIndex=e.lastIndex,t}var ny=oy,ma=Ft,ua=ma?ma.prototype:void 0,ya=ua?ua.valueOf:void 0;function ry(e){return ya?Object(ya.call(e)):{}}var ay=ry,iy=nr;function ly(e,t){var o=t?iy(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}var _i=ly,sy=nr,cy=ey,dy=ny,py=ay,fy=_i,my="[object Boolean]",uy="[object Date]",yy="[object Map]",gy="[object Number]",by="[object RegExp]",hy="[object Set]",vy="[object String]",wy="[object Symbol]",_y="[object ArrayBuffer]",ky="[object DataView]",Sy="[object Float32Array]",xy="[object Float64Array]",Cy="[object Int8Array]",Ay="[object Int16Array]",Ey="[object Int32Array]",Iy="[object Uint8Array]",$y="[object Uint8ClampedArray]",Ty="[object Uint16Array]",Py="[object Uint32Array]";function Ny(e,t,o){var n=e.constructor;switch(t){case _y:return sy(e);case my:case uy:return new n(+e);case ky:return cy(e,o);case Sy:case xy:case Cy:case Ay:case Ey:case Iy:case $y:case Ty:case Py:return fy(e,o);case yy:return new n;case gy:case vy:return new n(e);case by:return dy(e);case hy:return new n;case wy:return py(e)}}var Uy=Ny,zy=Me,ga=Object.create,Oy=function(){function e(){}return function(t){if(!zy(t))return{};if(ga)return ga(t);e.prototype=t;var o=new e;return e.prototype=void 0,o}}(),Ry=Oy,By=Ry,Vy=or,My=Bo;function Dy(e){return typeof e.constructor=="function"&&!My(e)?By(Vy(e)):{}}var ki=Dy,Fy=Ht,jy=Ge,Ly="[object Map]";function Gy(e){return jy(e)&&Fy(e)==Ly}var qy=Gy,Hy=qy,Ky=Yn,ba=Vt.exports,ha=ba&&ba.isMap,Wy=ha?Ky(ha):Hy,Yy=Wy,Jy=Ht,Zy=Ge,Xy="[object Set]";function Qy(e){return Zy(e)&&Jy(e)==Xy}var eg=Qy,tg=eg,og=Yn,va=Vt.exports,wa=va&&va.isSet,ng=wa?og(wa):tg,rg=ng,ag=Lo,ig=lm,lg=er,sg=km,cg=Mm,dg=_o.exports,pg=fi,fg=Xm,mg=pu,ug=bi,yg=hi,gg=Ht,bg=Wu,hg=Uy,vg=ki,wg=Pe,_g=Xe.exports,kg=Yy,Sg=Me,xg=rg,Cg=Vo,Ag=qt,Eg=1,Ig=2,$g=4,Si="[object Arguments]",Tg="[object Array]",Pg="[object Boolean]",Ng="[object Date]",Ug="[object Error]",xi="[object Function]",zg="[object GeneratorFunction]",Og="[object Map]",Rg="[object Number]",Ci="[object Object]",Bg="[object RegExp]",Vg="[object Set]",Mg="[object String]",Dg="[object Symbol]",Fg="[object WeakMap]",jg="[object ArrayBuffer]",Lg="[object DataView]",Gg="[object Float32Array]",qg="[object Float64Array]",Hg="[object Int8Array]",Kg="[object Int16Array]",Wg="[object Int32Array]",Yg="[object Uint8Array]",Jg="[object Uint8ClampedArray]",Zg="[object Uint16Array]",Xg="[object Uint32Array]",ne={};ne[Si]=ne[Tg]=ne[jg]=ne[Lg]=ne[Pg]=ne[Ng]=ne[Gg]=ne[qg]=ne[Hg]=ne[Kg]=ne[Wg]=ne[Og]=ne[Rg]=ne[Ci]=ne[Bg]=ne[Vg]=ne[Mg]=ne[Dg]=ne[Yg]=ne[Jg]=ne[Zg]=ne[Xg]=!0;ne[Ug]=ne[xi]=ne[Fg]=!1;function go(e,t,o,n,a,i){var l,s=t&Eg,c=t&Ig,d=t&$g;if(o&&(l=a?o(e,n,a,i):o(e)),l!==void 0)return l;if(!Sg(e))return e;var p=wg(e);if(p){if(l=bg(e),!s)return pg(e,l)}else{var m=gg(e),f=m==xi||m==zg;if(_g(e))return dg(e,s);if(m==Ci||m==Si||f&&!a){if(l=c||f?{}:vg(e),!s)return c?mg(e,cg(l,e)):fg(e,sg(l,e))}else{if(!ne[m])return a?e:{};l=hg(e,m,s)}}i||(i=new ag);var u=i.get(e);if(u)return u;i.set(e,l),xg(e)?e.forEach(function(g){l.add(go(g,t,o,g,e,i))}):kg(e)&&e.forEach(function(g,v){l.set(v,go(g,t,o,v,e,i))});var b=d?c?yg:ug:c?Ag:Cg,y=p?void 0:b(e);return ig(y||e,function(g,v){y&&(v=g,g=e[v]),lg(l,v,go(g,t,o,v,e,i))}),l}var Qg=go,eb=Qg,tb=1,ob=4;function nb(e){return eb(e,tb|ob)}var rb=nb,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"})}},ab={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},ib=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},lb=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})},sb=function(e,t){t===void 0&&(t={});var o=rb(e);return Object.keys(t).forEach(function(n){o[n]=z(z({},o[n]),t[n])}),o},cb=function(e,t){var o=(0,ab[e])(t);return ib(o)},db=function(e,t){var o,n,a=cb(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=sb(a,i);return delete l.QR,l},pb=function(e,t){var o=db(e,t);return lb(o)};/*! *****************************************************************************
|
|
1
|
+
"use strict";var Rl=Object.defineProperty,Bl=Object.defineProperties;var Vl=Object.getOwnPropertyDescriptors;var Wr=Object.getOwnPropertySymbols;var Ml=Object.prototype.hasOwnProperty,Dl=Object.prototype.propertyIsEnumerable;var Yr=(e,t,o)=>t in e?Rl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,$t=(e,t)=>{for(var o in t||(t={}))Ml.call(t,o)&&Yr(e,o,t[o]);if(Wr)for(var o of Wr(t))Dl.call(t,o)&&Yr(e,o,t[o]);return e},Pt=(e,t)=>Bl(e,Vl(t));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var r=require("vue"),de=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)])}}),Fl=["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,Fl)])}});var ke=function(e){var t;return(t=e.context.actorRef)===null||t===void 0?void 0:t.getSnapshot()},oi=function(e){var t;return(t=ke(e))===null||t===void 0?void 0:t.context},lo=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Ll=typeof lo=="object"&&lo&&lo.Object===Object&&lo,ni=Ll,jl=ni,Gl=typeof self=="object"&&self&&self.Object===Object&&self,ql=jl||Gl||Function("return this")(),Ue=ql,Hl=Ue,Kl=Hl.Symbol,Ht=Kl,Jr=Ht,ri=Object.prototype,Wl=ri.hasOwnProperty,Yl=ri.toString,Nt=Jr?Jr.toStringTag:void 0;function Jl(e){var t=Wl.call(e,Nt),o=e[Nt];try{e[Nt]=void 0;var n=!0}catch{}var a=Yl.call(e);return n&&(t?e[Nt]=o:delete e[Nt]),a}var Zl=Jl,Xl=Object.prototype,Ql=Xl.toString;function es(e){return Ql.call(e)}var ts=es,Zr=Ht,os=Zl,ns=ts,rs="[object Null]",as="[object Undefined]",Xr=Zr?Zr.toStringTag:void 0;function is(e){return e==null?e===void 0?as:rs:Xr&&Xr in Object(e)?os(e):ns(e)}var bt=is;function ls(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Re=ls,ss=bt,cs=Re,ds="[object AsyncFunction]",ps="[object Function]",fs="[object GeneratorFunction]",ms="[object Proxy]";function us(e){if(!cs(e))return!1;var t=ss(e);return t==ps||t==fs||t==ds||t==ms}var Hn=us,ys=9007199254740991;function gs(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ys}var Kn=gs,bs=Hn,hs=Kn;function vs(e){return e!=null&&hs(e.length)&&!bs(e)}var Kt=vs,ws=Array.isArray,Pe=ws;function _s(e){return e!=null&&typeof e=="object"}var qe=_s,ks=bt,Ss=qe,xs="[object Symbol]";function Cs(e){return typeof e=="symbol"||Ss(e)&&ks(e)==xs}var Wn=Cs;function As(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 ai=As;function Es(e,t){for(var o=-1,n=Array(e);++o<e;)n[o]=t(o);return n}var Is=Es,Ts=bt,$s=qe,Ps="[object Arguments]";function Ns(e){return $s(e)&&Ts(e)==Ps}var Os=Ns,Qr=Os,zs=qe,ii=Object.prototype,Us=ii.hasOwnProperty,Rs=ii.propertyIsEnumerable,Bs=Qr(function(){return arguments}())?Qr:function(e){return zs(e)&&Us.call(e,"callee")&&!Rs.call(e,"callee")},Vo=Bs,Qe={exports:{}};function Vs(){return!1}var Ms=Vs;(function(e,t){var o=Ue,n=Ms,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})(Qe,Qe.exports);var Ds=9007199254740991,Fs=/^(?:0|[1-9]\d*)$/;function Ls(e,t){var o=typeof e;return t=t==null?Ds:t,!!t&&(o=="number"||o!="symbol"&&Fs.test(e))&&e>-1&&e%1==0&&e<t}var Mo=Ls,js=bt,Gs=Kn,qs=qe,Hs="[object Arguments]",Ks="[object Array]",Ws="[object Boolean]",Ys="[object Date]",Js="[object Error]",Zs="[object Function]",Xs="[object Map]",Qs="[object Number]",ec="[object Object]",tc="[object RegExp]",oc="[object Set]",nc="[object String]",rc="[object WeakMap]",ac="[object ArrayBuffer]",ic="[object DataView]",lc="[object Float32Array]",sc="[object Float64Array]",cc="[object Int8Array]",dc="[object Int16Array]",pc="[object Int32Array]",fc="[object Uint8Array]",mc="[object Uint8ClampedArray]",uc="[object Uint16Array]",yc="[object Uint32Array]",se={};se[lc]=se[sc]=se[cc]=se[dc]=se[pc]=se[fc]=se[mc]=se[uc]=se[yc]=!0;se[Hs]=se[Ks]=se[ac]=se[Ws]=se[ic]=se[Ys]=se[Js]=se[Zs]=se[Xs]=se[Qs]=se[ec]=se[tc]=se[oc]=se[nc]=se[rc]=!1;function gc(e){return qs(e)&&Gs(e.length)&&!!se[js(e)]}var bc=gc;function hc(e){return function(t){return e(t)}}var Yn=hc,Ft={exports:{}};(function(e,t){var o=ni,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})(Ft,Ft.exports);var vc=bc,wc=Yn,ea=Ft.exports,ta=ea&&ea.isTypedArray,_c=ta?wc(ta):vc,Do=_c,kc=Is,Sc=Vo,xc=Pe,Cc=Qe.exports,Ac=Mo,Ec=Do,Ic=Object.prototype,Tc=Ic.hasOwnProperty;function $c(e,t){var o=xc(e),n=!o&&Sc(e),a=!o&&!n&&Cc(e),i=!o&&!n&&!a&&Ec(e),l=o||n||a||i,s=l?kc(e.length,String):[],c=s.length;for(var d in e)(t||Tc.call(e,d))&&!(l&&(d=="length"||a&&(d=="offset"||d=="parent")||i&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||Ac(d,c)))&&s.push(d);return s}var li=$c,Pc=Object.prototype;function Nc(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||Pc;return e===o}var Fo=Nc;function Oc(e,t){return function(o){return e(t(o))}}var si=Oc,zc=si,Uc=zc(Object.keys,Object),Rc=Uc,Bc=Fo,Vc=Rc,Mc=Object.prototype,Dc=Mc.hasOwnProperty;function Fc(e){if(!Bc(e))return Vc(e);var t=[];for(var o in Object(e))Dc.call(e,o)&&o!="constructor"&&t.push(o);return t}var ci=Fc,Lc=li,jc=ci,Gc=Kt;function qc(e){return Gc(e)?Lc(e):jc(e)}var Lo=qc,je,_n;(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"})(je||(je={})),function(e){e.Apple="SignInWithApple",e.Amazon="LoginWithAmazon",e.Facebook="Facebook",e.Google="Google"}(_n||(_n={}));var z=function(){return z=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},z.apply(this,arguments)};function di(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 Y(e,t,o,n){function a(i){return i instanceof o?i:new o(function(l){l(i)})}return new(o||(o=Promise))(function(i,l){function s(p){try{d(n.next(p))}catch(u){l(u)}}function c(p){try{d(n.throw(p))}catch(u){l(u)}}function d(p){p.done?i(p.value):a(p.value).then(s,c)}d((n=n.apply(e,t||[])).next())})}function J(e,t){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,l;return l={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function s(d){return function(p){return c([d,p])}}function c(d){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=d[0]&2?a.return:d[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,d[1])).done)return i;switch(a=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return o.label++,{value:d[1],done:!1};case 5:o.label++,a=d[1],d=[0];continue;case 7:d=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){o=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]<i[3])){o.label=d[1];break}if(d[0]===6&&o.label<i[1]){o.label=i[1],i=d;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(d);break}i[2]&&o.ops.pop(),o.trys.pop();continue}d=t.call(e,o)}catch(p){d=[6,p],a=0}finally{n=i=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function Oe(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 Hc=["birthdate","email","family_name","given_name","middle_name","name","nickname","phone_number","preferred_username","profile","website"],Kc=["username","email","phone_number"],Wc=Oe(Oe(Oe([],Kc,!0),Hc,!0),["confirmation_code","password","confirm_password"],!1),kn=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]},Yc=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")}},Jc=function(e){var t,o,n=(t=e.context)===null||t===void 0?void 0:t.user,a=ke(e),i=oi(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")),u=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(m){switch(m){case"idle":case"setup":return"configuring";case"authenticated":return"authenticated";default:return"unauthenticated"}}(u);return{error:l,hasValidationErrors:d,isPending:p,route:u,authStatus:f,user:n,validationErrors:s,codeDeliveryDetails:c}},pi=function(e){var t=e.send,o=e.state,n=Yc(t),a=Jc(o);return z(z({},n),a)},Zc=["+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"],Xc={"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"},Qc={"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"},ed={"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"},td={"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"},od={"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"},nd={"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:"},rd={"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"},ad={"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"},id={"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"},ld={"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"},sd={"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"},cd={"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"},dd={"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"},pd={"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"},fd={"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"},md={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"},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),Ed=z({},pd),Id=z({},fd),Td=z({},md);z({},Td);function U(e){return de.I18n.get(e)}function $d(e){return de.I18n.get(e)!==e}var Pd={de:ud,en:yd,es:gd,fr:bd,id:Ad,it:hd,ja:vd,kr:wd,nl:_d,pl:kd,pt:Sd,zh:xd,sv:Cd,tr:Ed,ru:Id},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:Zc,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}},Nd=["^","$","*",".","[","]","{","}","(",")","?",'"',"!","@","#","%","&","/","\\",",",">","<","'",":",";","|","_","~","`","=","+","-"," "],Be=function(e){var t=new FormData(e.target);return Object.fromEntries(t)},oa=function(e){return Wc.includes(e)},Od=function(e){return e?(t=e,Array.isArray(t)?e:[e]):null;var t},zd=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")}},Ud=function(e,t){return t===void 0&&(t=zd),de.Hub.listen("auth",function(o){t(o,e)},"authenticator-hub-handler")},Rd=function(e){return Nd.some(function(t){return e.includes(t)})},He=function(e,t){var o=oi(e).country_code,n=Jn[t];return n.type==="tel"&&(n=z(z({},n),{dialCode:o})),n},pn=function(e){var t=kn(e);return z(z({},He(e,t)),{autocomplete:"username"})},so=function(e){return{confirmation_code:z(z({},He(e,"confirmation_code")),{label:"Code *",placeholder:"Code"})}},Bd={signIn:function(e){return{username:z({},pn(e)),password:z(z({},He(e,"password")),{autocomplete:"current-password"})}},signUp:function(e){for(var t=e.context.config,o=t.loginMechanisms,n=t.signUpAttributes,a=kn(e),i={},l=0,s=Array.from(new Set(Oe(Oe(Oe([],o,!0),["password","confirm_password"],!1),n,!0)));l<s.length;l++){var c=s[l];if(oa(c)){var d=c===a?pn(e):He(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({},He(e,"confirmation_code")),{placeholder:"Enter your code"})}},confirmSignIn:so,forceNewPassword:function(e){for(var t=ke(e).context.requiredAttributes,o={},n=0,a=Array.from(new Set(Oe(["password","confirm_password"],t,!0)));n<a.length;n++){var i=a[n];oa(i)?o[i]=z({},He(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=kn(e),o=Jn[t].label;return{username:z(z({},pn(e)),{label:"Enter your ".concat(o.toLowerCase()),placeholder:"Enter your ".concat(o.toLowerCase())})}},confirmResetPassword:function(e){return z(z({},so(e)),{password:z(z({},He(e,"password")),{label:"New Password",placeholder:"New Password"}),confirm_password:z(z({},He(e,"confirm_password")),{label:"Confirm Password",placeholder:"Confirm Password"})})},confirmVerifyUser:so,setupTOTP:so};function Vd(){this.__data__=[],this.size=0}var Md=Vd;function Dd(e,t){return e===t||e!==e&&t!==t}var Wt=Dd,Fd=Wt;function Ld(e,t){for(var o=e.length;o--;)if(Fd(e[o][0],t))return o;return-1}var jo=Ld,jd=jo,Gd=Array.prototype,qd=Gd.splice;function Hd(e){var t=this.__data__,o=jd(t,e);if(o<0)return!1;var n=t.length-1;return o==n?t.pop():qd.call(t,o,1),--this.size,!0}var Kd=Hd,Wd=jo;function Yd(e){var t=this.__data__,o=Wd(t,e);return o<0?void 0:t[o][1]}var Jd=Yd,Zd=jo;function Xd(e){return Zd(this.__data__,e)>-1}var Qd=Xd,ep=jo;function tp(e,t){var o=this.__data__,n=ep(o,e);return n<0?(++this.size,o.push([e,t])):o[n][1]=t,this}var op=tp,np=Md,rp=Kd,ap=Jd,ip=Qd,lp=op;function ht(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])}}ht.prototype.clear=np;ht.prototype.delete=rp;ht.prototype.get=ap;ht.prototype.has=ip;ht.prototype.set=lp;var Go=ht,sp=Go;function cp(){this.__data__=new sp,this.size=0}var dp=cp;function pp(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}var fp=pp;function mp(e){return this.__data__.get(e)}var up=mp;function yp(e){return this.__data__.has(e)}var gp=yp,bp=Ue,hp=bp["__core-js_shared__"],vp=hp,fn=vp,na=function(){var e=/[^.]+$/.exec(fn&&fn.keys&&fn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function wp(e){return!!na&&na in e}var _p=wp,kp=Function.prototype,Sp=kp.toString;function xp(e){if(e!=null){try{return Sp.call(e)}catch{}try{return e+""}catch{}}return""}var fi=xp,Cp=Hn,Ap=_p,Ep=Re,Ip=fi,Tp=/[\\^$.*+?()[\]{}|]/g,$p=/^\[object .+?Constructor\]$/,Pp=Function.prototype,Np=Object.prototype,Op=Pp.toString,zp=Np.hasOwnProperty,Up=RegExp("^"+Op.call(zp).replace(Tp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Rp(e){if(!Ep(e)||Ap(e))return!1;var t=Cp(e)?Up:$p;return t.test(Ip(e))}var Bp=Rp;function Vp(e,t){return e==null?void 0:e[t]}var Mp=Vp,Dp=Bp,Fp=Mp;function Lp(e,t){var o=Fp(e,t);return Dp(o)?o:void 0}var tt=Lp,jp=tt,Gp=Ue,qp=jp(Gp,"Map"),Zn=qp,Hp=tt,Kp=Hp(Object,"create"),qo=Kp,ra=qo;function Wp(){this.__data__=ra?ra(null):{},this.size=0}var Yp=Wp;function Jp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Zp=Jp,Xp=qo,Qp="__lodash_hash_undefined__",ef=Object.prototype,tf=ef.hasOwnProperty;function of(e){var t=this.__data__;if(Xp){var o=t[e];return o===Qp?void 0:o}return tf.call(t,e)?t[e]:void 0}var nf=of,rf=qo,af=Object.prototype,lf=af.hasOwnProperty;function sf(e){var t=this.__data__;return rf?t[e]!==void 0:lf.call(t,e)}var cf=sf,df=qo,pf="__lodash_hash_undefined__";function ff(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=df&&t===void 0?pf:t,this}var mf=ff,uf=Yp,yf=Zp,gf=nf,bf=cf,hf=mf;function vt(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])}}vt.prototype.clear=uf;vt.prototype.delete=yf;vt.prototype.get=gf;vt.prototype.has=bf;vt.prototype.set=hf;var vf=vt,aa=vf,wf=Go,_f=Zn;function kf(){this.size=0,this.__data__={hash:new aa,map:new(_f||wf),string:new aa}}var Sf=kf;function xf(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Cf=xf,Af=Cf;function Ef(e,t){var o=e.__data__;return Af(t)?o[typeof t=="string"?"string":"hash"]:o.map}var Ho=Ef,If=Ho;function Tf(e){var t=If(this,e).delete(e);return this.size-=t?1:0,t}var $f=Tf,Pf=Ho;function Nf(e){return Pf(this,e).get(e)}var Of=Nf,zf=Ho;function Uf(e){return zf(this,e).has(e)}var Rf=Uf,Bf=Ho;function Vf(e,t){var o=Bf(this,e),n=o.size;return o.set(e,t),this.size+=o.size==n?0:1,this}var Mf=Vf,Df=Sf,Ff=$f,Lf=Of,jf=Rf,Gf=Mf;function wt(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])}}wt.prototype.clear=Df;wt.prototype.delete=Ff;wt.prototype.get=Lf;wt.prototype.has=jf;wt.prototype.set=Gf;var Xn=wt,qf=Go,Hf=Zn,Kf=Xn,Wf=200;function Yf(e,t){var o=this.__data__;if(o instanceof qf){var n=o.__data__;if(!Hf||n.length<Wf-1)return n.push([e,t]),this.size=++o.size,this;o=this.__data__=new Kf(n)}return o.set(e,t),this.size=o.size,this}var Jf=Yf,Zf=Go,Xf=dp,Qf=fp,em=up,tm=gp,om=Jf;function _t(e){var t=this.__data__=new Zf(e);this.size=t.size}_t.prototype.clear=Xf;_t.prototype.delete=Qf;_t.prototype.get=em;_t.prototype.has=tm;_t.prototype.set=om;var Ko=_t;function nm(e,t){for(var o=-1,n=e==null?0:e.length;++o<n&&t(e[o],o,e)!==!1;);return e}var rm=nm,am=tt,im=function(){try{var e=am(Object,"defineProperty");return e({},"",{}),e}catch{}}(),mi=im,ia=mi;function lm(e,t,o){t=="__proto__"&&ia?ia(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}var Qn=lm,sm=Qn,cm=Wt,dm=Object.prototype,pm=dm.hasOwnProperty;function fm(e,t,o){var n=e[t];(!(pm.call(e,t)&&cm(n,o))||o===void 0&&!(t in e))&&sm(e,t,o)}var er=fm,mm=er,um=Qn;function ym(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?um(o,s,c):mm(o,s,c)}return o}var Yt=ym,gm=Yt,bm=Lo;function hm(e,t){return e&&gm(t,bm(t),e)}var vm=hm;function wm(e){var t=[];if(e!=null)for(var o in Object(e))t.push(o);return t}var _m=wm,km=Re,Sm=Fo,xm=_m,Cm=Object.prototype,Am=Cm.hasOwnProperty;function Em(e){if(!km(e))return xm(e);var t=Sm(e),o=[];for(var n in e)n=="constructor"&&(t||!Am.call(e,n))||o.push(n);return o}var Im=Em,Tm=li,$m=Im,Pm=Kt;function Nm(e){return Pm(e)?Tm(e,!0):$m(e)}var Jt=Nm,Om=Yt,zm=Jt;function Um(e,t){return e&&Om(t,zm(t),e)}var Rm=Um,Eo={exports:{}};(function(e,t){var o=Ue,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 u=d.length,f=s?s(u):new d.constructor(u);return d.copy(f),f}e.exports=c})(Eo,Eo.exports);function Bm(e,t){var o=-1,n=e.length;for(t||(t=Array(n));++o<n;)t[o]=e[o];return t}var ui=Bm;function Vm(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 Mm=Vm;function Dm(){return[]}var yi=Dm,Fm=Mm,Lm=yi,jm=Object.prototype,Gm=jm.propertyIsEnumerable,la=Object.getOwnPropertySymbols,qm=la?function(e){return e==null?[]:(e=Object(e),Fm(la(e),function(t){return Gm.call(e,t)}))}:Lm,tr=qm,Hm=Yt,Km=tr;function Wm(e,t){return Hm(e,Km(e),t)}var Ym=Wm;function Jm(e,t){for(var o=-1,n=t.length,a=e.length;++o<n;)e[a+o]=t[o];return e}var gi=Jm,Zm=si,Xm=Zm(Object.getPrototypeOf,Object),or=Xm,Qm=gi,eu=or,tu=tr,ou=yi,nu=Object.getOwnPropertySymbols,ru=nu?function(e){for(var t=[];e;)Qm(t,tu(e)),e=eu(e);return t}:ou,bi=ru,au=Yt,iu=bi;function lu(e,t){return au(e,iu(e),t)}var su=lu,cu=gi,du=Pe;function pu(e,t,o){var n=t(e);return du(e)?n:cu(n,o(e))}var hi=pu,fu=hi,mu=tr,uu=Lo;function yu(e){return fu(e,uu,mu)}var vi=yu,gu=hi,bu=bi,hu=Jt;function vu(e){return gu(e,hu,bu)}var wi=vu,wu=tt,_u=Ue,ku=wu(_u,"DataView"),Su=ku,xu=tt,Cu=Ue,Au=xu(Cu,"Promise"),Eu=Au,Iu=tt,Tu=Ue,$u=Iu(Tu,"Set"),Pu=$u,Nu=tt,Ou=Ue,zu=Nu(Ou,"WeakMap"),Uu=zu,Sn=Su,xn=Zn,Cn=Eu,An=Pu,En=Uu,_i=bt,kt=fi,sa="[object Map]",Ru="[object Object]",ca="[object Promise]",da="[object Set]",pa="[object WeakMap]",fa="[object DataView]",Bu=kt(Sn),Vu=kt(xn),Mu=kt(Cn),Du=kt(An),Fu=kt(En),Xe=_i;(Sn&&Xe(new Sn(new ArrayBuffer(1)))!=fa||xn&&Xe(new xn)!=sa||Cn&&Xe(Cn.resolve())!=ca||An&&Xe(new An)!=da||En&&Xe(new En)!=pa)&&(Xe=function(e){var t=_i(e),o=t==Ru?e.constructor:void 0,n=o?kt(o):"";if(n)switch(n){case Bu:return fa;case Vu:return sa;case Mu:return ca;case Du:return da;case Fu:return pa}return t});var Zt=Xe,Lu=Object.prototype,ju=Lu.hasOwnProperty;function Gu(e){var t=e.length,o=new e.constructor(t);return t&&typeof e[0]=="string"&&ju.call(e,"index")&&(o.index=e.index,o.input=e.input),o}var qu=Gu,Hu=Ue,Ku=Hu.Uint8Array,ki=Ku,ma=ki;function Wu(e){var t=new e.constructor(e.byteLength);return new ma(t).set(new ma(e)),t}var nr=Wu,Yu=nr;function Ju(e,t){var o=t?Yu(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}var Zu=Ju,Xu=/\w*$/;function Qu(e){var t=new e.constructor(e.source,Xu.exec(e));return t.lastIndex=e.lastIndex,t}var ey=Qu,ua=Ht,ya=ua?ua.prototype:void 0,ga=ya?ya.valueOf:void 0;function ty(e){return ga?Object(ga.call(e)):{}}var oy=ty,ny=nr;function ry(e,t){var o=t?ny(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}var Si=ry,ay=nr,iy=Zu,ly=ey,sy=oy,cy=Si,dy="[object Boolean]",py="[object Date]",fy="[object Map]",my="[object Number]",uy="[object RegExp]",yy="[object Set]",gy="[object String]",by="[object Symbol]",hy="[object ArrayBuffer]",vy="[object DataView]",wy="[object Float32Array]",_y="[object Float64Array]",ky="[object Int8Array]",Sy="[object Int16Array]",xy="[object Int32Array]",Cy="[object Uint8Array]",Ay="[object Uint8ClampedArray]",Ey="[object Uint16Array]",Iy="[object Uint32Array]";function Ty(e,t,o){var n=e.constructor;switch(t){case hy:return ay(e);case dy:case py:return new n(+e);case vy:return iy(e,o);case wy:case _y:case ky:case Sy:case xy:case Cy:case Ay:case Ey:case Iy:return cy(e,o);case fy:return new n;case my:case gy:return new n(e);case uy:return ly(e);case yy:return new n;case by:return sy(e)}}var $y=Ty,Py=Re,ba=Object.create,Ny=function(){function e(){}return function(t){if(!Py(t))return{};if(ba)return ba(t);e.prototype=t;var o=new e;return e.prototype=void 0,o}}(),Oy=Ny,zy=Oy,Uy=or,Ry=Fo;function By(e){return typeof e.constructor=="function"&&!Ry(e)?zy(Uy(e)):{}}var xi=By,Vy=Zt,My=qe,Dy="[object Map]";function Fy(e){return My(e)&&Vy(e)==Dy}var Ly=Fy,jy=Ly,Gy=Yn,ha=Ft.exports,va=ha&&ha.isMap,qy=va?Gy(va):jy,Hy=qy,Ky=Zt,Wy=qe,Yy="[object Set]";function Jy(e){return Wy(e)&&Ky(e)==Yy}var Zy=Jy,Xy=Zy,Qy=Yn,wa=Ft.exports,_a=wa&&wa.isSet,eg=_a?Qy(_a):Xy,tg=eg,og=Ko,ng=rm,rg=er,ag=vm,ig=Rm,lg=Eo.exports,sg=ui,cg=Ym,dg=su,pg=vi,fg=wi,mg=Zt,ug=qu,yg=$y,gg=xi,bg=Pe,hg=Qe.exports,vg=Hy,wg=Re,_g=tg,kg=Lo,Sg=Jt,xg=1,Cg=2,Ag=4,Ci="[object Arguments]",Eg="[object Array]",Ig="[object Boolean]",Tg="[object Date]",$g="[object Error]",Ai="[object Function]",Pg="[object GeneratorFunction]",Ng="[object Map]",Og="[object Number]",Ei="[object Object]",zg="[object RegExp]",Ug="[object Set]",Rg="[object String]",Bg="[object Symbol]",Vg="[object WeakMap]",Mg="[object ArrayBuffer]",Dg="[object DataView]",Fg="[object Float32Array]",Lg="[object Float64Array]",jg="[object Int8Array]",Gg="[object Int16Array]",qg="[object Int32Array]",Hg="[object Uint8Array]",Kg="[object Uint8ClampedArray]",Wg="[object Uint16Array]",Yg="[object Uint32Array]",re={};re[Ci]=re[Eg]=re[Mg]=re[Dg]=re[Ig]=re[Tg]=re[Fg]=re[Lg]=re[jg]=re[Gg]=re[qg]=re[Ng]=re[Og]=re[Ei]=re[zg]=re[Ug]=re[Rg]=re[Bg]=re[Hg]=re[Kg]=re[Wg]=re[Yg]=!0;re[$g]=re[Ai]=re[Vg]=!1;function _o(e,t,o,n,a,i){var l,s=t&xg,c=t&Cg,d=t&Ag;if(o&&(l=a?o(e,n,a,i):o(e)),l!==void 0)return l;if(!wg(e))return e;var p=bg(e);if(p){if(l=ug(e),!s)return sg(e,l)}else{var u=mg(e),f=u==Ai||u==Pg;if(hg(e))return lg(e,s);if(u==Ei||u==Ci||f&&!a){if(l=c||f?{}:gg(e),!s)return c?dg(e,ig(l,e)):cg(e,ag(l,e))}else{if(!re[u])return a?e:{};l=yg(e,u,s)}}i||(i=new og);var m=i.get(e);if(m)return m;i.set(e,l),_g(e)?e.forEach(function(b){l.add(_o(b,t,o,b,e,i))}):vg(e)&&e.forEach(function(b,v){l.set(v,_o(b,t,o,v,e,i))});var g=d?c?fg:pg:c?Sg:kg,y=p?void 0:g(e);return ng(y||e,function(b,v){y&&(v=b,b=e[v]),rg(l,v,_o(b,t,o,v,e,i))}),l}var Jg=_o,Zg=Jg,Xg=1,Qg=4;function eb(e){return Zg(e,Xg|Qg)}var tb=eb,ob=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?U(s):void 0,placeholder:c?U(c):void 0})}return t},nb=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})},rb=function(e,t){t===void 0&&(t={});var o=tb(e);return Object.keys(t).forEach(function(n){o[n]=z(z({},o[n]),t[n])}),o},ab=function(e,t){var o=(0,Bd[e])(t);return ob(o)},ib=function(e,t){var o,n,a=ab(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=rb(a,i);return delete l.QR,l},lb=function(e,t){var o=ib(e,t);return nb(o)};/*! *****************************************************************************
|
|
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,Go=ee.Raise,qo=ee.Send,Ai=ee.Cancel,fb=ee.NullEvent,En=ee.Assign;ee.After;ee.DoneState;var Ei=ee.Log,mb=ee.Init,In=ee.Invoke;ee.ErrorExecution;var _a=ee.ErrorPlatform,ub=ee.ErrorCustom,ir=ee.Update,yb=ee.Choose,gb=ee.Pure,Ii=".",ka={},$n="xstate.guard",bb="",$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 hb(e){return typeof e=="object"&&"value"in e&&"context"in e&&"event"in e&&"_event"in e}function zt(e,t){if(hb(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 vb=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 wb(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 _b(e){return/^(done|error)\./.test(e)}function xa(e){return!!(e instanceof Promise||e!==null&&(Q(e)||typeof e=="object")&&Q(e.then))}function kb(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 Sb(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 xb(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 Cb(e){return!!e&&typeof e.send=="function"}var Ab=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 Eb(e){if(!(e===void 0||e===bb))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:mb});function Nn(e,t){return t&&t[e]||void 0}function Mt(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 Mt(n,t)})};function cr(e){var t=Mt(e);return E(E({id:q(e)?e:t.id},t),{type:t.type})}function Ib(e){return q(e)?{type:Go,event:e}:Ho(e,{to:st.Internal})}function $b(e){return{type:Go,_event:be(e.event)}}function Ho(e,t){return{to:t?t.to:void 0,type:qo,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 Tb(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 Pb(e,t){return Ho(e,E(E({},t),{to:st.Parent}))}function Nb(){return Pb(ir)}var Ub=function(e,t,o){return E(E({},e),{value:q(e.expr)?e.expr:e.expr(t,o.data,{_event:o})})},zb=function(e){return{type:Ai,sendId:e}};function Ob(e){var t=cr(e);return{type:ee.Start,activity:t,exec:void 0}}function Rb(e){var t=Q(e)?e:cr(e);return{type:ee.Stop,activity:t,exec:void 0}}function Bb(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 Vb=function(e){return{type:En,assignment:e}};function Mb(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 Db(e,t){return Ho(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 Go:return $b(f);case qo:var b=Tb(f,d,n,e.options.delays);return b;case Ei:return Ub(f,d,n);case yb:{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 gb:{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 Bb(f,d,n);case En:{d=Ca(d,n,[f],t),p==null||p.push(d);break}default:var S=Mt(f,e.options.actions),C=S.exec;if(C&&p){var $=p.length-1;S=E(E({},S),{exec:function(N){for(var R=[],M=1;M<arguments.length;M++)R[M-1]=arguments[M];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},Fb=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 jb(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 Lb(e){try{return typeof e.send=="function"}catch{return!1}}function Gb(e){return Lb(e)&&"id"in e}function qb(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 Mi(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]=Mi(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 Hb(e,t){var o=it([e],t);return Mi(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 Kb(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 Wb(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 Di(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 Di(e[a],t[a])})}function Yb(e){return typeof e!="object"||e===null?!1:"value"in e&&"_event"in e}function Jb(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=Wb(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 Kb(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}(),Zb={deferEvents:!1},Ea=function(){function e(t){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=E(E({},Zb),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,Xb=0,lo={bookId:function(){return"x:".concat(Xb++)},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 Qb(){var e=dr();if(e&&"__xstate__"in e)return e.__xstate__}function eh(e){if(!!dr()){var t=Qb();t&&t.register(e)}}function th(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=qb({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 oh=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):Cb(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===ub?"".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 Yb(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),M=R.next();!M.done;M=R.next()){var F=M.value;m.exec(F,m.state)}}catch(ce){$={error:ce}}finally{try{M&&!M.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 Jb(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 qo: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(Gb(t))return this.spawnActor(t,o);if(xb(t))return this.spawnObservable(t,o);if(Qe(t))return this.spawnMachine(t,E(E({},n),{id:o}));if(kb(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=th(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)}eh(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}(),nh=function(e){return q(e)?E(E({},On),{name:e}):E(E(E({},On),{name:Ab()}),e)};function so(e,t){var o=nh(t);return Fb(function(n){return n?n.spawn(e,o.name,o):Bi(e,o.name)})}function Fi(e,t){var o=new oh(e,t);return o}function rh(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:rh(e.src)})}})}var lt="",Rn="#",Tt="*",rt={},at=function(e){return e[0]===Rn},ah=function(){return{actions:{},guards:{},services:{},activities:{},delays:{}}},ih=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.")},lh=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(ah(),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 Mt(d)}),this.onExit=Te(this.config.exit||this.config.onExit).map(function(d){return Mt(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=Mb(s,t.id);return t.onEntry.push(Ho(c,{delay:i})),t.onExit.push(zb(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),vb(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 Ob(C)})),!1),W(S.onEntry),!1)})).concat(g.map(Ib)),le(Array.from(w).map(function(S){return de(de([],W(S.onExit),!1),W(S.activities.map(function(C){return Rb(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)&&!_b(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?Hb(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===Go||ye.type===qo&&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]=jb($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?Sb(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}),M=n!==_;R.changed=a.name===ir||M;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:fb},a));x.length;){var fe=x.shift();K=this.resolveRaisedTransition(K,fe._event,a)}var St=K.changed||(F?!!K.actions.length||M||typeof F.value!=typeof K.value||!Di(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=wb(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=
|
|
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 H(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 j(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 le(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 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 Ge;(function(e){e.Parent="#_parent",e.Internal="#_internal"})(Ge||(Ge={}));var In=te.Start,ar=te.Stop,pt=te.Raise,ft=te.Send,Ii=te.Cancel,sb=te.NullEvent,Tn=te.Assign;te.After;te.DoneState;var Ti=te.Log,cb=te.Init,$n=te.Invoke;te.ErrorExecution;var ka=te.ErrorPlatform,db=te.ErrorCustom,ir=te.Update,pb=te.Choose,fb=te.Pure,$i=".",Sa={},Pn="xstate.guard",mb="",lt=!0,co;function lr(e,t,o){o===void 0&&(o=$i);var n=Vt(e,o),a=Vt(t,o);return K(a)?K(n)?a===n:!1:K(n)?n in a:Object.keys(n).every(function(i){return i in a?lr(n[i],a[i]):!1})}function Pi(e){try{return K(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 Nn(e,t){try{return St(e)?e:e.toString().split(t)}catch{throw new Error("'".concat(e,"' is not a valid state path."))}}function ub(e){return typeof e=="object"&&"value"in e&&"context"in e&&"event"in e&&"_event"in e}function Vt(e,t){if(ub(e))return e.value;if(St(e))return Io(e);if(typeof e!="string")return e;var o=Nn(e,t);return Io(o)}function Io(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 zt(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 xa(e,t,o){var n,a,i={};try{for(var l=H(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 yb=function(e){return function(t){var o,n,a=t;try{for(var i=H(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 gb(e,t){return function(o){var n,a,i=o;try{for(var l=H(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 ko(e){if(!e)return[[]];if(K(e))return[[e]];var t=ie(Object.keys(e).map(function(o){var n=e[o];return typeof n!="string"&&(!n||!Object.keys(n).length)?[[o]]:ko(e[o]).map(function(a){return[o].concat(a)})}));return t}function ie(e){var t;return(t=[]).concat.apply(t,le([],j(e),!1))}function Ni(e){return St(e)?e:[e]}function Te(e){return e===void 0?[]:Ni(e)}function To(e,t,o){var n,a;if(ee(e))return e(t,o.data);var i={};try{for(var l=H(Object.keys(e)),s=l.next();!s.done;s=l.next()){var c=s.value,d=e[c];ee(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 bb(e){return/^(done|error)\./.test(e)}function Ca(e){return!!(e instanceof Promise||e!==null&&(ee(e)||typeof e=="object")&&ee(e.then))}function hb(e){return e!==null&&typeof e=="object"&&"transition"in e&&typeof e.transition=="function"}function Oi(e,t){var o,n,a=j([[],[]],2),i=a[0],l=a[1];try{for(var s=H(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 zi(e,t){return zt(e.states,function(o,n){if(!!o){var a=(K(t)?void 0:t[n])||(o?o.current:void 0);if(!!a)return{current:a,states:zi(o,a)}}})}function vb(e,t){return{current:t,states:zi(e,t)}}function Aa(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},u={};if(ee(d))u=d(i,t.data,p);else try{for(var f=H(Object.keys(d)),m=f.next();!m.done;m=f.next()){var g=m.value,y=d[g];u[g]=ee(y)?y(i,t.data,p):y}}catch(b){s={error:b}}finally{try{m&&!m.done&&(c=f.return)&&c.call(f)}finally{if(s)throw s.error}}return Object.assign({},i,u)},e);return a}var Mt=function(){};function St(e){return Array.isArray(e)}function ee(e){return typeof e=="function"}function K(e){return typeof e=="string"}function Ui(e,t){if(!!e)return K(e)?{type:Pn,name:e,predicate:t?t[e]:void 0}:ee(e)?{type:Pn,name:e.name,predicate:e}:e}function wb(e){try{return"subscribe"in e&&ee(e.subscribe)}catch{return!1}}var Ke=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();co={},co[Ke]=function(){return this},co[Symbol.observable]=function(){return this};function et(e){return!!e&&"__xstatenode"in e}function _b(e){return!!e&&typeof e.send=="function"}var kb=function(){var e=0;return function(){return e++,e.toString(16)}}();function sr(e,t){return K(e)||typeof e=="number"?E({type:e},t):e}function be(e,t){if(!K(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 rt(e,t){var o=Ni(t).map(function(n){return typeof n=="undefined"||typeof n=="string"||et(n)?{target:n,event:e}:E(E({},n),{event:e})});return o}function Sb(e){if(!(e===void 0||e===mb))return Te(e)}function Ri(e,t,o,n,a){var i=e.options.guards,l={state:a,cond:t,_event:n};if(t.type===Pn)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 Bi(e){return typeof e=="string"?{type:e}:e}function So(e,t,o){var n=function(){},a=typeof e=="object",i=a?e:null;return{next:((a?e.next:e)||n).bind(i),error:((a?e.error:t)||n).bind(i),complete:((a?e.complete:o)||n).bind(i)}}function po(e,t){return"".concat(e,":invocation[").concat(t,"]")}var Lt=be({type:cb});function On(e,t){return t&&t[e]||void 0}function jt(e,t){var o;if(K(e)||typeof e=="number"){var n=On(e,t);ee(n)?o={type:e,exec:n}:n?o=n:o={type:e,exec:void 0}}else if(ee(e))o={type:e.name||e.toString(),exec:e};else{var n=On(e.type,t);if(ee(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 dt=function(e,t){if(!e)return[];var o=St(e)?e:[e];return o.map(function(n){return jt(n,t)})};function cr(e){var t=jt(e);return E(E({id:K(e)?e:t.id},t),{type:t.type})}function xb(e){return K(e)?{type:pt,event:e}:Wo(e,{to:Ge.Internal})}function Cb(e){return{type:pt,_event:be(e.event)}}function Wo(e,t){return{to:t?t.to:void 0,type:ft,event:ee(e)?e:sr(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:ee(e)?e.name:Pi(e)}}function Ab(e,t,o,n){var a={_event:o},i=be(ee(e.event)?e.event(t,o.data,a):e.event),l;if(K(e.delay)){var s=n&&n[e.delay];l=ee(s)?s(t,o.data,a):s}else l=ee(e.delay)?e.delay(t,o.data,a):e.delay;var c=ee(e.to)?e.to(t,o.data,a):e.to;return E(E({},e),{to:c,_event:i,event:i.data,delay:l})}function Eb(e,t){return Wo(e,E(E({},t),{to:Ge.Parent}))}function Ib(){return Eb(ir)}var Tb=function(e,t,o){return E(E({},e),{value:K(e.expr)?e.expr:e.expr(t,o.data,{_event:o})})},$b=function(e){return{type:Ii,sendId:e}};function Pb(e){var t=cr(e);return{type:te.Start,activity:t,exec:void 0}}function Nb(e){var t=ee(e)?e:cr(e);return{type:te.Stop,activity:t,exec:void 0}}function Ob(e,t,o){var n=ee(e.activity)?e.activity(t,o.data):e.activity,a=typeof n=="string"?{id:n}:n,i={type:te.Stop,activity:a};return i}var zb=function(e){return{type:Tn,assignment:e}};function Ub(e,t){var o=t?"#".concat(t):"";return"".concat(te.After,"(").concat(e,")").concat(o)}function fo(e,t){var o="".concat(te.DoneState,".").concat(e),n={type:o,data:t};return n.toString=function(){return o},n}function xo(e,t){var o="".concat(te.DoneInvoke,".").concat(e),n={type:o,data:t};return n.toString=function(){return o},n}function Ut(e,t){var o="".concat(te.ErrorPlatform,".").concat(e),n={type:o,data:t};return n.toString=function(){return o},n}function Rb(e,t){return Wo(function(o,n){return n},E(E({},t),{to:e}))}function $o(e,t,o,n,a,i,l){l===void 0&&(l=!1);var s=j(l?[[],a]:Oi(a,function(m){return m.type===Tn}),2),c=s[0],d=s[1],p=c.length?Aa(o,n,c,t):o,u=l?[o]:void 0,f=ie(d.map(function(m){var g;switch(m.type){case pt:return Cb(m);case ft:var y=Ab(m,p,n,e.options.delays);return y.to!==Ge.Internal&&(i==null||i(y,p,n)),y;case Ti:{var b=Tb(m,p,n);return i==null||i(b,p,n),b}case pb:{var v=m,w=(g=v.conds.find(function(D){var V=Ui(D.cond,e.options.guards);return!V||Ri(e,V,p,n,i?void 0:t)}))===null||g===void 0?void 0:g.actions;if(!w)return[];var _=j($o(e,t,p,n,dt(Te(w),e.options.actions),i,l),2),k=_[0],S=_[1];return p=S,u==null||u.push(p),k}case fb:{var w=m.get(p,n.data);if(!w)return[];var C=j($o(e,t,p,n,dt(Te(w),e.options.actions),i,l),2),x=C[0],I=C[1];return p=I,u==null||u.push(p),x}case ar:{var b=Ob(m,p,n);return i==null||i(b,p,n),b}case Tn:{p=Aa(p,n,[m],i?void 0:t),u==null||u.push(p);break}default:var A=jt(m,e.options.actions),$=A.exec;if(i)i(A,p,n);else if($&&u){var M=u.length-1;A=E(E({},A),{exec:function(D){for(var V=[],G=1;G<arguments.length;G++)V[G-1]=arguments[G];$.apply(void 0,le([u[M]],j(V),!1))}})}return A}}).filter(function(m){return!!m}));return[f,p]}var Po=[],st=function(e,t){Po.push(e);var o=t(e);return Po.pop(),o},Bb=function(e){return e(Po[Po.length-1])};function Vi(e){var t;return t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}},t[Ke]=function(){return this},t}function Vb(e,t,o,n){var a,i=Bi(e.src),l=(a=t==null?void 0:t.options.services)===null||a===void 0?void 0:a[i.type],s=e.data?To(e.data,o,n):void 0,c=l?dr(l,e.id,s):Vi(e.id);return c.meta=e,c}function dr(e,t,o){var n=Vi(t);if(n.deferred=!0,et(e)){var a=n.state=st(void 0,function(){return(o?e.withContext(o):e).initialState});n.getSnapshot=function(){return a}}return n}function Mb(e){try{return typeof e.send=="function"}catch{return!1}}function Db(e){return Mb(e)&&"id"in e}function Fb(e){var t;return E((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}},t[Ke]=function(){return this},t),e)}var No=function(e){return e.type==="atomic"||e.type==="final"};function Mi(e){return Object.keys(e.states).map(function(t){return e.states[t]})}function Gt(e){return Mi(e).filter(function(t){return t.type!=="history"})}function Di(e){var t=[e];return No(e)?t:t.concat(ie(Gt(e).map(Di)))}function Rt(e,t){var o,n,a,i,l,s,c,d,p=new Set(e),u=zn(p),f=new Set(t);try{for(var m=H(f),g=m.next();!g.done;g=m.next())for(var y=g.value,b=y.parent;b&&!f.has(b);)f.add(b),b=b.parent}catch(A){o={error:A}}finally{try{g&&!g.done&&(n=m.return)&&n.call(m)}finally{if(o)throw o.error}}var v=zn(f);try{for(var w=H(f),_=w.next();!_.done;_=w.next()){var y=_.value;if(y.type==="compound"&&(!v.get(y)||!v.get(y).length))u.get(y)?u.get(y).forEach(function($){return f.add($)}):y.initialStateNodes.forEach(function($){return f.add($)});else if(y.type==="parallel")try{for(var k=(l=void 0,H(Gt(y))),S=k.next();!S.done;S=k.next()){var C=S.value;f.has(C)||(f.add(C),u.get(C)?u.get(C).forEach(function($){return f.add($)}):C.initialStateNodes.forEach(function($){return f.add($)}))}}catch($){l={error:$}}finally{try{S&&!S.done&&(s=k.return)&&s.call(k)}finally{if(l)throw l.error}}}}catch(A){a={error:A}}finally{try{_&&!_.done&&(i=w.return)&&i.call(w)}finally{if(a)throw a.error}}try{for(var x=H(f),I=x.next();!I.done;I=x.next())for(var y=I.value,b=y.parent;b&&!f.has(b);)f.add(b),b=b.parent}catch(A){c={error:A}}finally{try{I&&!I.done&&(d=x.return)&&d.call(x)}finally{if(c)throw c.error}}return f}function Fi(e,t){var o=t.get(e);if(!o)return{};if(e.type==="compound"){var n=o[0];if(n){if(No(n))return n.key}else return{}}var a={};return o.forEach(function(i){a[i.key]=Fi(i,t)}),a}function zn(e){var t,o,n=new Map;try{for(var a=H(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 Lb(e,t){var o=Rt([e],t);return Fi(e,zn(o))}function Bt(e,t){return Array.isArray(e)?e.some(function(o){return o===t}):e instanceof Set?e.has(t):!1}function jb(e){return le([],j(new Set(ie(le([],j(e.map(function(t){return t.ownEvents})),!1)))),!1)}function Co(e,t){return t.type==="compound"?Gt(t).some(function(o){return o.type==="final"&&Bt(e,o)}):t.type==="parallel"?Gt(t).every(function(o){return Co(e,o)}):!1}function Gb(e){return e===void 0&&(e=[]),e.reduce(function(t,o){return o.meta!==void 0&&(t[o.id]=o.meta),t},{})}function Ea(e){return new Set(ie(e.map(function(t){return t.tags})))}function Li(e,t){if(e===t)return!0;if(e===void 0||t===void 0)return!1;if(K(e)||K(t))return e===t;var o=Object.keys(e),n=Object.keys(t);return o.length===n.length&&o.every(function(a){return Li(e[a],t[a])})}function qb(e){return typeof e!="object"||e===null?!1:"value"in e&&"_event"in e}function Hb(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 $e=function(){function e(t){var o=this,n;this.actions=[],this.activities=Sa,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||Sa,this.meta=Gb(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 jb(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=Lt;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=Lt;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="."),K(t))return[t];var a=Object.keys(t);return a.concat.apply(a,le([],j(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;Mt(!!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}(),Kb={deferEvents:!1},Ia=function(){function e(t){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=E(E({},Kb),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}(),mn=new Map,Wb=0,mo={bookId:function(){return"x:".concat(Wb++)},register:function(e,t){return mn.set(e,t),e},get:function(e){return mn.get(e)},free:function(e){mn.delete(e)}};function pr(){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 Yb(){var e=pr();if(e&&"__xstate__"in e)return e.__xstate__}function Jb(e){if(!!pr()){var t=Yb();t&&t.register(e)}}function Zb(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=Fb({id:t.id,send:function(d){a.push(d),l()},getSnapshot:function(){return o},subscribe:function(d,p,u){var f=So(d,p,u);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 Un={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 Xb=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=ge.NotStarted,this.children=new Map,this.forwardTo=new Set,this.init=this.start,this.send=function(p,u){if(St(p))return n.batch(p),n.state;var f=be(sr(p,u));if(n.status===ge.Stopped)return n.state;if(n.status!==ge.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 m=n.nextState(f);n.update(m,f)}),n._state},this.sendTo=function(p,u){var f=n.parent&&(u===Ge.Parent||n.parent.id===u),m=f?n.parent:K(u)?n.children.get(u)||mo.get(u):_b(u)?u:void 0;if(!m){if(!f)throw new Error("Unable to send event to child '".concat(u,"' from service '").concat(n.id,"'."));return}"machine"in m?(n.status!==ge.Stopped||n.parent!==m||n.state.done)&&m.send(E(E({},p),{name:p.name===db?"".concat(Ut(n.id)):p.name,origin:n.sessionId})):m.send(p.data)},this._exec=function(p,u,f,m){m===void 0&&(m=n.machine.options.actions);var g=p.exec||On(p.type,m),y=ee(g)?g:g?g.exec:p.exec;if(y)try{return y(u,f.data,n.machine.config.predictableActionArguments?{action:p,_event:f}:{action:p,state:n.state,_event:f})}catch(D){throw n.parent&&n.parent.send({type:"xstate.error",data:D}),D}switch(p.type){case ft:var b=p;if(typeof b.delay=="number"){n.defer(b);return}else b.to?n.sendTo(b._event,b.to):n.send(b._event);break;case Ii:n.cancel(p.sendId);break;case In:{if(n.status!==ge.Running)return;var v=p.activity;if(!n.machine.config.predictableActionArguments&&!n.state.activities[v.id||v.type])break;if(v.type===te.Invoke){var w=Bi(v.src),_=n.machine.options.services?n.machine.options.services[w.type]:void 0,k=v.id,S=v.data,C="autoForward"in v?v.autoForward:!!v.forward;if(!_)return;var x=S?To(S,u,f):void 0;if(typeof _=="string")return;var I=ee(_)?_(u,f.data,{data:x,src:w,meta:v.meta}):_;if(!I)return;var A=void 0;et(I)&&(I=x?I.withContext(x):I,A={autoForward:C}),n.spawn(I,k,A)}else n.spawnActivity(v);break}case ar:{n.stopChild(p.activity.id);break}case Ti:var $=p.label,M=p.value;$?n.logger($,M):n.logger(M);break}};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 Ia({deferEvents:this.options.deferEvents}),this.sessionId=mo.bookId()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:st(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=H(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,u=this;if(t._sessionid=this.sessionId,this._state=t,(!this.machine.config.predictableActionArguments||o===Lt)&&this.options.execute&&this.execute(this.state),this.children.forEach(function(I){u.state.children[I.id]=I}),this.devTools&&this.devTools.send(o.data,t),t.event)try{for(var f=H(this.eventListeners),m=f.next();!m.done;m=f.next()){var g=m.value;g(t.event)}}catch(I){n={error:I}}finally{try{m&&!m.done&&(a=f.return)&&a.call(f)}finally{if(n)throw n.error}}try{for(var y=H(this.listeners),b=y.next();!b.done;b=y.next()){var g=b.value;g(t,t.event)}}catch(I){i={error:I}}finally{try{b&&!b.done&&(l=y.return)&&l.call(y)}finally{if(i)throw i.error}}try{for(var v=H(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(I){s={error:I}}finally{try{w&&!w.done&&(c=v.return)&&c.call(v)}finally{if(s)throw s.error}}if(this.state.done){var k=t.configuration.find(function(I){return I.type==="final"&&I.parent===u.machine}),S=k&&k.doneData?To(k.doneData,t.context,o):void 0;try{for(var C=H(this.doneListeners),x=C.next();!x.done;x=C.next()){var g=x.value;g(xo(this.id,S))}}catch(I){d={error:I}}finally{try{x&&!x.done&&(p=C.return)&&p.call(C)}finally{if(d)throw d.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,o,n){var a=this,i=So(t,o,n);this.listeners.add(i.next),this.status!==ge.NotStarted&&i.next(this.state);var l=function(){a.doneListeners.delete(l),a.stopListeners.delete(l),i.complete()};return this.status===ge.Stopped?i.complete():(this.onDone(l),this.onStop(l)),{unsubscribe:function(){a.listeners.delete(i.next),a.doneListeners.delete(l),a.stopListeners.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===ge.Running)return this;this.machine._init(),mo.register(this.sessionId,this),this.initialized=!0,this.status=ge.Running;var n=t===void 0?this.initialState:st(this,function(){return qb(t)?o.machine.resolveState(t):o.machine.resolveState($e.from(t,o.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){o.update(n,Lt)}),this},e.prototype._stop=function(){var t,o,n,a,i,l,s,c,d,p;try{for(var u=H(this.listeners),f=u.next();!f.done;f=u.next()){var m=f.value;this.listeners.delete(m)}}catch(x){t={error:x}}finally{try{f&&!f.done&&(o=u.return)&&o.call(u)}finally{if(t)throw t.error}}try{for(var g=H(this.stopListeners),y=g.next();!y.done;y=g.next()){var m=y.value;m(),this.stopListeners.delete(m)}}catch(x){n={error:x}}finally{try{y&&!y.done&&(a=g.return)&&a.call(g)}finally{if(n)throw n.error}}try{for(var b=H(this.contextListeners),v=b.next();!v.done;v=b.next()){var m=v.value;this.contextListeners.delete(m)}}catch(x){i={error:x}}finally{try{v&&!v.done&&(l=b.return)&&l.call(b)}finally{if(i)throw i.error}}try{for(var w=H(this.doneListeners),_=w.next();!_.done;_=w.next()){var m=_.value;this.doneListeners.delete(m)}}catch(x){s={error:x}}finally{try{_&&!_.done&&(c=w.return)&&c.call(w)}finally{if(s)throw s.error}}if(!this.initialized)return this;this.initialized=!1,this.status=ge.Stopped,this._initialState=void 0;try{for(var k=H(Object.keys(this.delayedEventsMap)),S=k.next();!S.done;S=k.next()){var C=S.value;this.clock.clearTimeout(this.delayedEventsMap[C])}}catch(x){d={error:x}}finally{try{S&&!S.done&&(p=k.return)&&p.call(k)}finally{if(d)throw d.error}}this.scheduler.clear(),this.scheduler=new Ia({deferEvents:this.options.deferEvents})},e.prototype.stop=function(){var t=this,o=this.scheduler;return this._stop(),o.schedule(function(){var n=be({type:"xstate.stop"}),a=st(t,function(){var i=ie(le([],j(t.state.configuration),!1).sort(function(p,u){return u.order-p.order}).map(function(p){return dt(p.onExit,t.machine.options.actions)})),l=j($o(t.machine,t.state,t.state.context,n,i,t.machine.config.predictableActionArguments?t._exec:void 0,t.machine.config.predictableActionArguments||t.machine.config.preserveActionOrder),2),s=l[0],c=l[1],d=new $e({value:t.state.value,context:c,_event:n,_sessionid:t.sessionId,historyValue:void 0,history:t.state,actions:s.filter(function(p){return p.type!==pt&&(p.type!==ft||!!p.to&&p.to!==Ge.Internal)}),activities:{},events:[],configuration:[],transitions:[],children:{},done:t.state.done,tags:t.state.tags,machine:t.machine});return d.changed=!0,d});t.update(a,n),t.children.forEach(function(i){ee(i.stop)&&i.stop()}),t.children.clear(),mo.free(t.sessionId)}),this},e.prototype.batch=function(t){var o=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 n,a,i=o.state,l=!1,s=[],c=function(f){var m=be(f);o.forward(m),i=st(o,function(){return o.machine.transition(i,m)}),s.push.apply(s,le([],j(i.actions.map(function(g){return Hb(g,i)})),!1)),l=l||!!i.changed};try{for(var d=H(t),p=d.next();!p.done;p=d.next()){var u=p.value;c(u)}}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(ka)===0&&!this.state.nextEvents.some(function(i){return i.indexOf(ka)===0}))throw n.data.data;var a=st(this,function(){return o.machine.transition(o.state,n,void 0,o.machine.config.predictableActionArguments?o._exec:void 0)});return a},e.prototype.nextState=function(t){return this._nextState(t)},e.prototype.forward=function(t){var o,n;try{for(var a=H(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),this._exec(t,o.context,o._event,n)},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),ee(o.stop)&&o.stop())},e.prototype.spawn=function(t,o,n){if(this.status!==ge.Running)return dr(t,o);if(Ca(t))return this.spawnPromise(Promise.resolve(t),o);if(ee(t))return this.spawnCallback(t,o);if(Db(t))return this.spawnActor(t,o);if(wb(t))return this.spawnObservable(t,o);if(et(t))return this.spawnMachine(t,E(E({},n),{id:o}));if(hb(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({},Un),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=Zb(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(xo(o,c),{origin:o})))},function(c){if(!i){a.removeChild(o);var d=Ut(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 u=So(c,d,p),f=!1;return t.then(function(m){f||(u.next(m),!f&&u.complete())},function(m){f||u.error(m)}),{unsubscribe:function(){return f=!0}}},stop:function(){i=!0},toJSON:function(){return{id:o}},getSnapshot:function(){return l}},n[Ke]=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(m){return m(f)}),!i&&a.send(be(f,{origin:o}))},p;try{p=t(d,function(f){l.add(f)})}catch(f){this.send(Ut(o,f))}if(Ca(p))return this.spawnPromise(p,o);var u=(n={id:o,send:function(f){return l.forEach(function(m){return m(f)})},subscribe:function(f){var m=So(f);return s.add(m.next),{unsubscribe:function(){s.delete(m.next)}}},stop:function(){i=!0,ee(p)&&p()},toJSON:function(){return{id:o}},getSnapshot:function(){return c}},n[Ke]=function(){return this},n);return this.children.set(o,u),u},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(Ut(o,c),{origin:o}))},function(){a.removeChild(o),a.send(be(xo(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[Ke]=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[Ke]=function(){return this},n))},e.prototype.attachDev=function(){var t=pr();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)}Jb(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[Ke]=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,o){return setTimeout(t,o)},clearTimeout:function(t){return clearTimeout(t)}},logger:console.log.bind(console),devTools:!1},e.interpret=ji,e}(),Qb=function(e){return K(e)?E(E({},Un),{name:e}):E(E(E({},Un),{name:kb()}),e)};function uo(e,t){var o=Qb(t);return Bb(function(n){return n?n.spawn(e,o.name,o):dr(e,o.name)})}function ji(e,t){var o=new Xb(e,t);return o}function eh(e){if(typeof e=="string"){var t={type:e};return t.toString=function(){return e},t}return e}function yo(e){return E(E({type:$n},e),{toJSON:function(){e.onDone,e.onError;var t=rr(e,["onDone","onError"]);return E(E({},t),{type:$n,src:eh(e.src)})}})}var ct="",Rn="#",Ot="*",at={},it=function(e){return e[0]===Rn},th=function(){return{actions:{},guards:{},services:{},activities:{},delays:{}}},oh=function(e,t,o){var n=o.slice(0,-1).some(function(i){return!("cond"in i)&&!("in"in i)&&(K(i.target)||et(i.target))}),a=t===ct?"the transient event":"event '".concat(t,"'");Mt(!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.")},nh=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(th(),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:$i),this.id=this.config.id||le([this.machine.key],j(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:(l=this.config.schema)!==null&&l!==void 0?l:{},this.description=this.config.description,this.initial=this.config.initial,this.states=this.config.states?zt(this.config.states,function(d,p){var u,f=new e(d,{},void 0,{parent:i,key:p});return Object.assign(i.idMap,E((u={},u[f.id]=f,u),f.idMap)),f}):at;var s=0;function c(d){var p,u;d.order=s++;try{for(var f=H(Mi(d)),m=f.next();!m.done;m=f.next()){var g=m.value;c(g)}}catch(y){p={error:y}}finally{try{m&&!m.done&&(u=f.return)&&u.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===ct}):ct in this.config.on:!1),this.strict=!!this.config.strict,this.onEntry=Te(this.config.entry||this.config.onEntry).map(function(d){return jt(d)}),this.onExit=Te(this.config.exit||this.config.onExit).map(function(d){return jt(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 u,f;if(et(d)){var m=po(i.id,p);return i.machine.options.services=E((u={},u[m]=d,u),i.machine.options.services),yo({src:m,id:m})}else if(K(d.src)){var m=d.id||po(i.id,p);return yo(E(E({},d),{id:m,src:d.src}))}else if(et(d.src)||ee(d.src)){var m=d.id||po(i.id,p);return i.machine.options.services=E((f={},f[m]=d.src,f),i.machine.options.services),yo(E(E({id:m},d),{src:m}))}else{var g=d.src;return yo(E(E({id:po(i.id,p)},d),{src:g}))}}),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||Di(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 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:zt(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===ct,n=this.transitions.filter(function(a){var i=a.eventType===t;return o?i:i||a.eventType===Ot});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=ee(i)?"".concat(t.id,":delay[").concat(l,"]"):i,c=Ub(s,t.id);return t.onEntry.push(Wo(c,{delay:i})),t.onExit.push($b(c)),c},a=St(o)?o.map(function(i,l){var s=n(i.delay,l);return E(E({},i),{event:s})}):ie(Object.keys(o).map(function(i,l){var s=o[i],c=K(s)?{target:s}:s,d=isNaN(+i)?i:+i,p=n(d,l);return Te(c).map(function(u){return E(E({},u),{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 $e?t.value:Vt(t,this.delimiter);if(K(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,le([],j(ie(l.map(function(c){return n.getStateNode(c).getStateNodes(a[c])}))),!1)),s},e.prototype.handles=function(t){var o=Pi(t);return this.events.includes(o)},e.prototype.resolveState=function(t){var o=t instanceof $e?t:$e.create(t),n=Array.from(Rt([],this.getStateNodes(o.value)));return new $e(E(E({},o),{value:this.resolve(o.value),configuration:n,done:Co(n,this),tags:Ea(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=H(Object.keys(t)),c=s.next();!c.done;c=s.next()){var d=c.value,p=t[d];if(!!p){var u=this.getStateNode(d),f=u._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 m=Object.keys(l).map(function(w){return l[w]}),g=ie(m.map(function(w){return w.transitions})),y=m.some(function(w){return w.transitions.length>0});if(!y)return this.next(o,n);var b=ie(m.map(function(w){return w.entrySet})),v=ie(Object.keys(l).map(function(w){return l[w].configuration}));return{transitions:g,entrySet:b,exitSet:ie(m.map(function(w){return w.exitSet})),configuration:v,source:o,actions:ie(Object.keys(l).map(function(w){return l[w].actions}))}},e.prototype._transition=function(t,o,n){return K(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=H(this.getCandidates(l)),u=p.next();!u.done;u=p.next()){var f=u.value,m=f.cond,g=f.in,y=t.context,b=g?K(g)&&it(g)?t.matches(Vt(this.getStateNodeById(g).path,this.delimiter)):lr(Vt(g,this.delimiter),yb(this.path.slice(0,-2))(t.value)):!0,v=!1;try{v=!m||Ri(this.machine,m,y,o,t)}catch(S){throw new Error("Unable to evaluate guard '".concat(m.name||m.type,"' in transition for event '").concat(l,"' in state node '").concat(this.id,`':
|
|
17
|
+
`).concat(S.message))}if(v&&b){f.target!==void 0&&(c=f.target),s.push.apply(s,le([],j(f.actions),!1)),d=f;break}}}catch(S){n={error:S}}finally{try{u&&!u.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=ie(c.map(function(S){return i.getRelativeStateNodes(S,t.historyValue)})),_=!!d.internal,k=[];return _||c.forEach(function(S){k.push.apply(k,le([],j(i.getExternalReentryNodes(S)),!1))}),{transitions:[d],entrySet:k,exitSet:_?[]:[this],configuration:w,source:t,actions:s}}},e.prototype.getExternalReentryNodes=function(t){for(var o=[],n=j(t.order>this.order?[t,this]:[this,t],2),a=n[0],i=n[1];a&&a!==i;)o.push(a),a=a.parent;return a!==i?[]:(o.push(i),o)},e.prototype.getActions=function(t,o,n,a,i,l){var s,c,d,p,u=Rt([],l?this.getStateNodes(l.value):[this]);try{for(var f=H(t),m=f.next();!m.done;m=f.next()){var g=m.value;(!Bt(u,g)||Bt(n.entrySet,g.parent))&&n.entrySet.push(g)}}catch(A){s={error:A}}finally{try{m&&!m.done&&(c=f.return)&&c.call(f)}finally{if(s)throw s.error}}try{for(var y=H(u),b=y.next();!b.done;b=y.next()){var g=b.value;(!Bt(t,g)||Bt(n.exitSet,g.parent))&&n.exitSet.push(g)}}catch(A){d={error:A}}finally{try{b&&!b.done&&(p=y.return)&&p.call(y)}finally{if(d)throw d.error}}var v=ie(n.entrySet.map(function(A){var $=[];if(A.type!=="final")return $;var M=A.parent;if(!M.parent)return $;$.push(fo(A.id,A.doneData),fo(M.id,A.doneData?To(A.doneData,a,i):void 0));var D=M.parent;return D.type==="parallel"&&Gt(D).every(function(V){return Co(n.configuration,V)})&&$.push(fo(D.id)),$}));n.exitSet.sort(function(A,$){return $.order-A.order}),n.entrySet.sort(function(A,$){return A.order-$.order});var w=new Set(n.entrySet),_=new Set(n.exitSet),k=j([ie(Array.from(w).map(function(A){return le(le([],j(A.activities.map(function($){return Pb($)})),!1),j(A.onEntry),!1)})).concat(v.map(xb)),ie(Array.from(_).map(function(A){return le(le([],j(A.onExit),!1),j(A.activities.map(function($){return Nb($)})),!1)}))],2),S=k[0],C=k[1],x=dt(C.concat(n.actions).concat(S),this.machine.options.actions);if(o){var I=dt(ie(le([],j(t),!1).sort(function(A,$){return $.order-A.order}).map(function(A){return A.onExit})),this.machine.options.actions).filter(function(A){return A.type!==pt&&(A.type!==ft||!!A.to&&A.to!==Ge.Internal)});return x.concat(I)}return x},e.prototype.transition=function(t,o,n,a){t===void 0&&(t=this.initialState);var i=be(o),l;if(t instanceof $e)l=n===void 0?t:this.resolveState($e.from(t,n));else{var s=K(t)?this.resolve(Io(this.getResolvedPath(t))):this.resolve(t),c=n!=null?n:this.machine.context;l=this.resolveState($e.from(s,c))}if(!lt&&i.name===Ot)throw new Error("An event cannot have the wildcard type ('".concat(Ot,"')"));if(this.strict&&!this.events.includes(i.name)&&!bb(i.name))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(i.name,"'"));var d=this._transition(l.value,l,i)||{transitions:[],configuration:[],entrySet:[],exitSet:[],source:l,actions:[]},p=Rt([],this.getStateNodes(l.value)),u=d.configuration.length?Rt(p,d.configuration):p;return d.configuration=le([],j(u),!1),this.resolveTransition(d,l,l.context,a,i)},e.prototype.resolveRaisedTransition=function(t,o,n,a){var i,l=t.actions;return t=this.transition(t,o,void 0,a),t._event=n,t.event=n.data,(i=t.actions).unshift.apply(i,le([],j(l),!1)),t},e.prototype.resolveTransition=function(t,o,n,a,i){var l,s,c=this;i===void 0&&(i=Lt);var d=t.configuration,p=!o||t.transitions.length>0,u=p?t.configuration:o?o.configuration:[],f=Co(u,this),m=p?Lb(this.machine,d):void 0,g=o?o.historyValue?o.historyValue:t.source?this.machine.historyValue(o.value):void 0:void 0,y=this.getActions(new Set(u),f,t,n,i,o),b=o?E({},o.activities):{};try{for(var v=H(y),w=v.next();!w.done;w=v.next()){var _=w.value;_.type===In?b[_.activity.id||_.activity.type]=_:_.type===ar&&(b[_.activity.id||_.activity.type]=!1)}}catch(me){l={error:me}}finally{try{w&&!w.done&&(s=v.return)&&s.call(v)}finally{if(l)throw l.error}}var k=j($o(this,o,n,i,y,a,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),S=k[0],C=k[1],x=j(Oi(S,function(me){return me.type===pt||me.type===ft&&me.to===Ge.Internal}),2),I=x[0],A=x[1],$=S.filter(function(me){var Ne;return me.type===In&&((Ne=me.activity)===null||Ne===void 0?void 0:Ne.type)===$n}),M=$.reduce(function(me,Ne){return me[Ne.activity.id]=Vb(Ne.activity,c.machine,C,i),me},o?E({},o.children):{}),D=new $e({value:m||o.value,context:C,_event:i,_sessionid:o?o._sessionid:null,historyValue:m?g?vb(g,m):void 0:o?o.historyValue:void 0,history:!m||t.source?o:void 0,actions:m?A:[],activities:m?b:o?o.activities:{},events:[],configuration:u,transitions:t.transitions,children:M,done:f,tags:Ea(u),machine:this}),V=n!==C;D.changed=i.name===ir||V;var G=D.history;G&&delete G.history;var pe=!f&&(this._transient||d.some(function(me){return me._transient}));if(!p&&(!pe||i.name===ct))return D;var Q=D;if(!f)for(pe&&(Q=this.resolveRaisedTransition(Q,{type:sb},i,a));I.length;){var At=I.shift();Q=this.resolveRaisedTransition(Q,At._event,i,a)}var Et=Q.changed||(G?!!Q.actions.length||V||typeof G.value!=typeof Q.value||!Li(Q.value,G.value):void 0);return Q.changed=Et,Q.history=G,Q},e.prototype.getStateNode=function(t){if(it(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=it(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"&&it(t))try{return this.getStateNodeById(t.slice(1))}catch{}for(var o=Nn(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||at;switch(this.type){case"parallel":return zt(this.initialStateValue,function(i,l){return i?n.getStateNode(l).resolve(t[l]||i):at});case"compound":if(K(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?zt(t,function(i,l){return i?n.getStateNode(l).resolve(i):at}):this.initialStateValue||{};default:return t||at}},e.prototype.getResolvedPath=function(t){if(it(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 Nn(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=xa(this.states,function(n){return n.initialStateValue||at},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=No(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:le([],j(n),!1),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;K(o.target)?t=it(o.target)?Io(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(No(this))return[this];if(this.type==="compound"&&!this.initial)return lt||Mt(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this];var o=ko(this.initialStateValue);return ie(o.map(function(n){return t.getFromRelativePath(n)}))},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var o=j(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:xa(this.states,function(o,n){if(!t)return o.historyValue();var a=K(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?ie(ko(a).map(function(l){return n.getFromRelativePath(l)})):n.initialStateNodes}var i=gb(n.path,"states")(t).current;return K(i)?[n.getStateNode(i)]:ie(ko(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=ie(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=H(Object.keys(i)),c=s.next();!c.done;c=s.next()){var d=c.value,p=i[d];if(p.states)try{for(var u=(n=void 0,H(p.events)),f=u.next();!f.done;f=u.next()){var m=f.value;l.add("".concat(m))}}catch(g){n={error:g}}finally{try{f&&!f.done&&(a=u.return)&&a.call(u)}finally{if(n)throw n.error}}}}catch(g){t={error:g}}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(!K(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=Sb(t.target),a="internal"in t?t.internal:n?n.some(function(c){return K(c)&&c[0]===o.delimiter}):!0,i=this.machine.options.guards,l=this.resolveTarget(n),s=E(E({},t),{actions:dt(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=Ot,s=i[l],c=s===void 0?[]:s,d=rr(i,[typeof l=="symbol"?l:l+""]);a=ie(Object.keys(d).map(function(w){!lt&&w===ct&&Mt(!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 _=rt(w,d[w]);return lt||oh(n,w,_),_}).concat(rt(Ot,c)))}var p=this.config.always?rt("",this.config.always):[],u=this.config.onDone?rt(String(fo(this.id)),this.config.onDone):[];lt||Mt(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var f=ie(this.invoke.map(function(w){var _=[];return w.onDone&&_.push.apply(_,le([],j(rt(String(xo(w.id)),w.onDone)),!1)),w.onError&&_.push.apply(_,le([],j(rt(String(Ut(w.id)),w.onError)),!1)),_})),m=this.after,g=ie(le(le(le(le([],j(u),!1),j(f),!1),j(a),!1),j(p),!1).map(function(w){return Te(w).map(function(_){return n.formatTransition(_)})}));try{for(var y=H(m),b=y.next();!b.done;b=y.next()){var v=b.value;g.push(v)}}catch(w){t={error:w}}finally{try{b&&!b.done&&(o=y.return)&&o.call(y)}finally{if(t)throw t.error}}return g},e}(),Ta=!1;function Xt(e,t){return!lt&&!e.predictableActionArguments&&!Ta&&(Ta=!0,console.warn("It is highly recommended to set `predictableActionArguments` to `true` when using `createMachine`. https://xstate.js.org/docs/guides/actions.html")),new nh(e,t)}var Ae=zb,fr=Ib,rh=Rb,W={},mr={};(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,ch=ue.ActionTypes.Start,dh=ue.ActionTypes.Stop,ph=ue.ActionTypes.Raise,fh=ue.ActionTypes.Send,mh=ue.ActionTypes.Cancel,uh=ue.ActionTypes.NullEvent,yh=ue.ActionTypes.Assign,gh=ue.ActionTypes.After,bh=ue.ActionTypes.DoneState,hh=ue.ActionTypes.Log,vh=ue.ActionTypes.Init,wh=ue.ActionTypes.Invoke,_h=ue.ActionTypes.ErrorExecution,kh=ue.ActionTypes.ErrorPlatform,Sh=ue.ActionTypes.ErrorCustom,xh=ue.ActionTypes.Update,Ch=ue.ActionTypes.Choose,Ah=ue.ActionTypes.Pure;pe.after=gh;pe.assign=yh;pe.cancel=mh;pe.choose=Ch;pe.doneState=bh;pe.error=Sh;pe.errorExecution=_h;pe.errorPlatform=kh;pe.init=vh;pe.invoke=wh;pe.log=hh;pe.nullEvent=uh;pe.pure=Ah;pe.raise=ph;pe.send=fh;pe.start=ch;pe.stop=dh;pe.update=xh;var ji={},_t={};Object.defineProperty(_t,"__esModule",{value:!0});var Eh=".",Ih={},$h="xstate.guard",Th="";_t.DEFAULT_GUARD_TYPE=$h;_t.EMPTY_ACTIVITY_MAP=Ih;_t.STATE_DELIMITER=Eh;_t.TARGETLESS_KEY=Th;var Ko={};Object.defineProperty(Ko,"__esModule",{value:!0});var Ph=!0;Ko.IS_PRODUCTION=Ph;(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=fr,o=_t,n=Ko,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)),D=j.next();!D.done;D=j.next()){var Z=D.value,re=h[Z];!U(re)||(V[Z]=T(re,Z,h))}}catch(_e){P={error:_e}}finally{try{D&&!D.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 D=j.value;B=B[D]}}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),D=j.next();!D.done;D=j.next()){var Z=D.value;V=V[T][Z]}}catch(re){P={error:re}}finally{try{D&&!D.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,D=P,Z=0;Z<j.length;Z++){var re=j[Z];if(Z===j.length-2){D[re]=j[Z+1];break}D[re]=D[re]||{},D=D[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)),D=j.next();!D.done;D=j.next()){var Z=D.value,re=h[Z];K(re)?V[Z]=re(T,U.data):V[Z]=re}}catch(_e){P={error:_e}}finally{try{D&&!D.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 D=t.__values(h),Z=D.next();!Z.done;Z=D.next()){var re=Z.value;T(re)?V.push(re):j.push(re)}}catch(_e){U={error:_e}}finally{try{Z&&!Z.done&&(P=D.return)&&P.call(D)}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 M(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 D,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){D={error:Nl}}finally{try{oe&&!oe.done&&(Z=te.return)&&Z.call(te)}finally{if(D)throw D.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 D=V==null?void 0:V[T.type];if(!D)throw new Error("Guard '".concat(T.type,"' is not implemented on machine '").concat(h.id,"'."));return D(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=M})(ji);Object.defineProperty(H,"__esModule",{value:!0});var X=fr,Ee=mr,me=pe,G=ji,Nh=Ko,Uh=G.toSCXMLEvent({type:me.init});function Bn(e,t){return t&&t[e]||void 0}function Wo(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 Wo(n,t)})};function ur(e){var t=Wo(e);return X.__assign(X.__assign({id:G.isString(e)?e:t.id},t),{type:t.type})}function zh(e){return G.isString(e)?{type:me.raise,event:e}:kt(e,{to:Ee.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:Ee.SpecialTargets.Parent}))}function Oh(e,t,o){return kt(t,X.__assign(X.__assign({},o),{to:e}))}function Rh(){return yr(me.update)}function Bh(e,t){return kt(e,X.__assign(X.__assign({},t),{to:function(o,n,a){var i=a._event;return i.origin}}))}var Vh=function(e,t){return{context:e,event:t}};function Mh(e,t){return e===void 0&&(e=Vh),{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})})},Dh=function(e){return{type:me.cancel,sendId:e}};function Fh(e){var t=ur(e);return{type:Ee.ActionTypes.Start,activity:t,exec:void 0}}function jh(e){var t=G.isFunction(e)?e:ur(e);return{type:Ee.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:Ee.ActionTypes.Stop,activity:a};return i}var Lh=function(e){return{type:me.assign,assignment:e}};function Gh(e){return typeof e=="object"&&"type"in e}function qh(e,t){var o=t?"#".concat(t):"";return"".concat(Ee.ActionTypes.After,"(").concat(e,")").concat(o)}function Hh(e,t){var o="".concat(Ee.ActionTypes.DoneState,".").concat(e),n={type:o,data:t};return n.toString=function(){return o},n}function Kh(e,t){var o="".concat(Ee.ActionTypes.DoneInvoke,".").concat(e),n={type:o,data:t};return n.toString=function(){return o},n}function Wh(e,t){var o="".concat(Ee.ActionTypes.ErrorPlatform,".").concat(e),n={type:o,data:t};return n.toString=function(){return o},n}function Yh(e){return{type:Ee.ActionTypes.Pure,get:e}}function Jh(e,t){return kt(function(o,n){return n},X.__assign(X.__assign({},t),{to:e}))}function Zh(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:Ee.SpecialTargets.Parent}))}function Xh(e){return{type:Ee.ActionTypes.Choose,conds:e}}function Mn(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 Nh.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(Mn(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(Mn(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=Wo(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=[],M=1;M<arguments.length;M++)R[M-1]=arguments[M];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=qh;var ie=H.assign=Lh;H.cancel=Dh;var Qh=H.choose=Xh;H.done=Hh;H.doneInvoke=Kh;H.error=Wh;H.escalate=Zh;H.forwardTo=Jh;H.getActionFunction=Bn;H.initEvent=Uh;H.isActionObject=Gh;H.log=Mh;H.pure=Yh;H.raise=zh;H.resolveActions=Mn;H.resolveLog=qi;H.resolveRaise=Li;H.resolveSend=Gi;H.resolveStop=Hi;H.respond=Bh;H.send=kt;H.sendParent=yr;H.sendTo=Oh;H.sendUpdate=Rh;H.start=Fh;var ev=H.stop=jh;H.toActionObject=Wo;H.toActionObjects=Vn;H.toActivityDefinition=ur;var po=function(e){return ev(e)},tv=ie({attributeToVerify:function(e){}}),ov=ie({challengeName:function(e){}}),nv=ie({requiredAttributes:function(e){}}),gr=ie({remoteError:function(e){return""}}),br=ie({formValues:function(e){return{}}}),hr=ie({touched:function(e){return{}}}),rv=ie({unverifiedAttributes:function(e){}}),av=ie({username:function(e){}}),vr=ie({validationError:function(e){return{}}}),iv=ie({challengeName:function(e,t){var o;return(o=t.data)===null||o===void 0?void 0:o.challengeName}}),lv=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}}),sv=ie({redirectIntent:function(e){return"confirmPasswordReset"}}),cv=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}}),dv=ie({unverifiedAttributes:function(e,t){return t.data.unverified}}),Wi=ie({user:function(e,t){return t.data.user||t.data}}),pv=ie({username:function(e,t){var o=e.formValues,n=o.username,a=o.country_code;return a&&(n="".concat(a).concat(n)),n}}),fv=ie({codeDeliveryDetails:function(e,t){return t.data.codeDeliveryDetails}}),mv=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}}),uv=Pe,yv=Wn,gv=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,bv=/^\w*$/;function hv(e,t){if(uv(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||yv(e)?!0:bv.test(e)||!gv.test(e)||t!=null&&e in Object(t)}var Cr=hv,Ji=Xn,vv="Expected a function";function Ar(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(vv);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 wv=Ar,_v=wv,kv=500;function Sv(e){var t=_v(e,function(n){return o.size===kv&&o.clear(),n}),o=t.cache;return t}var xv=Sv,Cv=xv,Av=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ev=/\\(\\)?/g,Iv=Cv(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Av,function(o,n,a,i){t.push(a?i.replace(Ev,"$1"):n||o)}),t}),$v=Iv,Ia=Ft,Tv=ni,Pv=Pe,Nv=Wn,Uv=1/0,$a=Ia?Ia.prototype:void 0,Ta=$a?$a.toString:void 0;function Zi(e){if(typeof e=="string")return e;if(Pv(e))return Tv(e,Zi)+"";if(Nv(e))return Ta?Ta.call(e):"";var t=e+"";return t=="0"&&1/e==-Uv?"-0":t}var zv=Zi,Ov=zv;function Rv(e){return e==null?"":Ov(e)}var Bv=Rv,Vv=Pe,Mv=Cr,Dv=$v,Fv=Bv;function jv(e,t){return Vv(e)?e:Mv(e,t)?[e]:Dv(Fv(e))}var Yo=jv,Lv=Wn,Gv=1/0;function qv(e){if(typeof e=="string"||Lv(e))return e;var t=e+"";return t=="0"&&1/e==-Gv?"-0":t}var Wt=qv,Hv=Yo,Kv=Wt;function Wv(e,t){t=Hv(t,e);for(var o=0,n=t.length;e!=null&&o<n;)e=e[Kv(t[o++])];return o&&o==n?e:void 0}var Er=Wv,Yv=Er;function Jv(e,t,o){var n=e==null?void 0:Yv(e,t);return n===void 0?o:n}var Xi=Jv,Ke=Xi,Zv=li,Xv=Ht,Qv=zo,ew=Pe,tw=jt,ow=Xe.exports,nw=Bo,rw=Ro,aw="[object Map]",iw="[object Set]",lw=Object.prototype,sw=lw.hasOwnProperty;function cw(e){if(e==null)return!0;if(tw(e)&&(ew(e)||typeof e=="string"||typeof e.splice=="function"||ow(e)||rw(e)||Qv(e)))return!e.length;var t=Xv(e);if(t==aw||t==iw)return!e.size;if(nw(e))return!Zv(e).length;for(var o in e)if(sw.call(e,o))return!1;return!0}var dw=cw,Dn=dw,pw=Qn,fw=Lt;function mw(e,t,o){(o!==void 0&&!fw(e[t],o)||o===void 0&&!(t in e))&&pw(e,t,o)}var Qi=mw;function uw(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 yw=uw,gw=yw,bw=gw(),hw=bw,vw=jt,ww=Ge;function _w(e){return ww(e)&&vw(e)}var kw=_w,Sw=ut,xw=or,Cw=Ge,Aw="[object Object]",Ew=Function.prototype,Iw=Object.prototype,el=Ew.toString,$w=Iw.hasOwnProperty,Tw=el.call(Object);function Pw(e){if(!Cw(e)||Sw(e)!=Aw)return!1;var t=xw(e);if(t===null)return!0;var o=$w.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&el.call(o)==Tw}var Nw=Pw;function Uw(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var tl=Uw,zw=Gt,Ow=qt;function Rw(e){return zw(e,Ow(e))}var Bw=Rw,Pa=Qi,Vw=_o.exports,Mw=_i,Dw=fi,Fw=ki,Na=zo,Ua=Pe,jw=kw,Lw=Xe.exports,Gw=Hn,qw=Me,Hw=Nw,Kw=Ro,za=tl,Ww=Bw;function Yw(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&&Lw(c),b=!f&&!u&&Kw(c);p=c,f||u||b?Ua(s)?p=s:jw(s)?p=Dw(s):u?(m=!1,p=Vw(c,!0)):b?(m=!1,p=Mw(c,!0)):p=[]:Hw(c)||Na(c)?(p=s,Na(s)?p=Ww(s):(!qw(s)||Gw(s))&&(p=Fw(c))):m=!1}m&&(l.set(c,p),a(p,c,n,i,l),l.delete(c)),Pa(e,o,p)}var Jw=Yw,Zw=Lo,Xw=Qi,Qw=hw,e0=Jw,t0=Me,o0=qt,n0=tl;function ol(e,t,o,n,a){e!==t&&Qw(t,function(i,l){if(a||(a=new Zw),t0(i))e0(e,t,l,o,ol,n,a);else{var s=n?n(n0(e,l),i,l+"",e,t,a):void 0;s===void 0&&(s=i),Xw(e,l,s)}},o0)}var r0=ol;function a0(e){return e}var Ir=a0;function i0(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 l0=i0,s0=l0,Oa=Math.max;function c0(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),s0(e,this,s)}}var d0=c0;function p0(e){return function(){return e}}var f0=p0,m0=f0,Ra=pi,u0=Ir,y0=Ra?function(e,t){return Ra(e,"toString",{configurable:!0,enumerable:!1,value:m0(t),writable:!0})}:u0,g0=y0,b0=800,h0=16,v0=Date.now;function w0(e){var t=0,o=0;return function(){var n=v0(),a=h0-(n-o);if(o=n,a>0){if(++t>=b0)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var _0=w0,k0=g0,S0=_0,x0=S0(k0),C0=x0,A0=Ir,E0=d0,I0=C0;function $0(e,t){return I0(E0(e,t,A0),e+"")}var T0=$0,P0=Lt,N0=jt,U0=Oo,z0=Me;function O0(e,t,o){if(!z0(o))return!1;var n=typeof t;return(n=="number"?N0(o)&&U0(t,o.length):n=="string"&&t in o)?P0(o[t],e):!1}var R0=O0,B0=T0,V0=R0;function M0(e){return B0(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&&V0(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 D0=M0,F0=r0,j0=D0,L0=j0(function(e,t,o){F0(e,t,o)}),G0=L0,$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=G0.apply(void 0,Ue([{}],a,!1)),Dn(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":Dd(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 q0(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:["setUser","clearChallengeName","clearRequiredAttributes"],target:"#signInActor.resolved"},onError:{actions:"setRemoteError",target:"edit"}}}}},verifyUser:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SKIP:"#signInActor.resolved",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:"clearError",invoke:{src:"verifyUser",onDone:{target:"#signInActor.confirmVerifyUser"},onError:{actions:"setRemoteError",target:"edit"}}}}},confirmVerifyUser:{initial:"edit",exit:["clearFormValues","clearError","clearUnverifiedAttributes","clearAttributeToVerify","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SKIP:"#signInActor.resolved",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:"clearError",invoke:{src:"confirmVerifyUser",onDone:{target:"#signInActor.resolved"},onError:{actions:"setRemoteError",target:"edit"}}}}},resolved:{type:"final",data:function(o){return{user:o.user}}},rejected:{type:"final",data:function(o,n){return{intent:o.redirectIntent,authAttributes:o.authAttributes}}}}},{actions:{clearAttributeToVerify:tv,clearChallengeName:ov,clearRequiredAttributes:nv,clearError:gr,clearFormValues:br,clearTouched:hr,clearUnverifiedAttributes:rv,clearValidationError:vr,handleInput:kr,handleSubmit:Sr,handleBlur:xr,parsePhoneNumber:Yi,setChallengeName:iv,setConfirmResetPasswordIntent:sv,setConfirmSignUpIntent:cv,setRequiredAttributes:lv,setCredentials:Ki,setFieldErrors:wr,setRemoteError:_r,setUnverifiedAttributes:dv,setUser:Wi,setUsernameAuthAttributes:mv,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 Dn(l)&&!Dn(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 H0=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 K0(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:av,clearValidationError:vr,handleInput:kr,handleSubmit:Sr,handleBlur:xr,setFieldErrors:wr,setRemoteError:_r,setUsername:pv,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 W0="__lodash_hash_undefined__";function Y0(e){return this.__data__.set(e,W0),this}var J0=Y0;function Z0(e){return this.__data__.has(e)}var X0=Z0,Q0=Xn,e_=J0,t_=X0;function $o(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new Q0;++t<o;)this.add(e[t])}$o.prototype.add=$o.prototype.push=e_;$o.prototype.has=t_;var o_=$o;function n_(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 r_=n_;function a_(e,t){return e.has(t)}var i_=a_,l_=o_,s_=r_,c_=i_,d_=1,p_=2;function f_(e,t,o,n,a,i){var l=o&d_,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&p_?new l_: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(!s_(t,function(v,w){if(!c_(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=f_;function m_(e){var t=-1,o=Array(e.size);return e.forEach(function(n,a){o[++t]=[a,n]}),o}var u_=m_;function y_(e){var t=-1,o=Array(e.size);return e.forEach(function(n){o[++t]=n}),o}var g_=y_,Ba=Ft,Va=wi,b_=Lt,h_=nl,v_=u_,w_=g_,__=1,k_=2,S_="[object Boolean]",x_="[object Date]",C_="[object Error]",A_="[object Map]",E_="[object Number]",I_="[object RegExp]",$_="[object Set]",T_="[object String]",P_="[object Symbol]",N_="[object ArrayBuffer]",U_="[object DataView]",Ma=Ba?Ba.prototype:void 0,fn=Ma?Ma.valueOf:void 0;function z_(e,t,o,n,a,i,l){switch(o){case U_:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case N_:return!(e.byteLength!=t.byteLength||!i(new Va(e),new Va(t)));case S_:case x_:case E_:return b_(+e,+t);case C_:return e.name==t.name&&e.message==t.message;case I_:case T_:return e==t+"";case A_:var s=v_;case $_:var c=n&__;if(s||(s=w_),e.size!=t.size&&!c)return!1;var d=l.get(e);if(d)return d==t;n|=k_,l.set(e,t);var p=h_(s(e),s(t),n,a,i,l);return l.delete(e),p;case P_:if(fn)return fn.call(e)==fn.call(t)}return!1}var O_=z_,Da=bi,R_=1,B_=Object.prototype,V_=B_.hasOwnProperty;function M_(e,t,o,n,a,i){var l=o&R_,s=Da(e),c=s.length,d=Da(t),p=d.length;if(c!=p&&!l)return!1;for(var m=c;m--;){var f=s[m];if(!(l?f in t:V_.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 D_=M_,mn=Lo,F_=nl,j_=O_,L_=D_,Fa=Ht,ja=Pe,La=Xe.exports,G_=Ro,q_=1,Ga="[object Arguments]",qa="[object Array]",fo="[object Object]",H_=Object.prototype,Ha=H_.hasOwnProperty;function K_(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||G_(e)?F_(e,t,o,n,a,i):j_(e,t,c,o,n,a,i);if(!(o&q_)){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),L_(e,t,o,n,a,i)):!1}var W_=K_,Y_=W_,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:Y_(e,t,o,n,rl,a)}var al=rl,J_=Lo,Z_=al,X_=1,Q_=2;function e1(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 J_;if(n)var f=n(d,p,c,e,t,m);if(!(f===void 0?Z_(p,d,X_|Q_,n,m):f))return!1}}return!0}var t1=e1,o1=Me;function n1(e){return e===e&&!o1(e)}var il=n1,r1=il,a1=Vo;function i1(e){for(var t=a1(e),o=t.length;o--;){var n=t[o],a=e[n];t[o]=[n,a,r1(a)]}return t}var l1=i1;function s1(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==void 0||e in Object(o))}}var ll=s1,c1=t1,d1=l1,p1=ll;function f1(e){var t=d1(e);return t.length==1&&t[0][2]?p1(t[0][0],t[0][1]):function(o){return o===e||c1(o,e,t)}}var m1=f1;function u1(e,t){return e!=null&&t in Object(e)}var y1=u1,g1=Yo,b1=zo,h1=Pe,v1=Oo,w1=Kn,_1=Wt;function k1(e,t,o){t=g1(t,e);for(var n=-1,a=t.length,i=!1;++n<a;){var l=_1(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&&w1(a)&&v1(l,a)&&(h1(e)||b1(e)))}var S1=k1,x1=y1,C1=S1;function A1(e,t){return e!=null&&C1(e,t,x1)}var E1=A1,I1=al,$1=Xi,T1=E1,P1=Cr,N1=il,U1=ll,z1=Wt,O1=1,R1=2;function B1(e,t){return P1(e)&&N1(t)?U1(z1(e),t):function(o){var n=$1(o,e);return n===void 0&&n===t?T1(o,e):I1(t,n,O1|R1)}}var V1=B1;function M1(e){return function(t){return t==null?void 0:t[e]}}var D1=M1,F1=Er;function j1(e){return function(t){return F1(t,e)}}var L1=j1,G1=D1,q1=L1,H1=Cr,K1=Wt;function W1(e){return H1(e)?G1(K1(e)):q1(e)}var Y1=W1,J1=m1,Z1=V1,X1=Ir,Q1=Pe,ek=Y1;function tk(e){return typeof e=="function"?e:e==null?X1:typeof e=="object"?Q1(e)?Z1(e[0],e[1]):J1(e):ek(e)}var ok=tk,nk=er,rk=Yo,ak=Oo,Wa=Me,ik=Wt;function lk(e,t,o,n){if(!Wa(e))return e;t=rk(t,e);for(var a=-1,i=t.length,l=i-1,s=e;s!=null&&++a<i;){var c=ik(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:ak(t[a+1])?[]:{})}nk(s,c,d),s=s[c]}return e}var sk=lk,ck=Er,dk=sk,pk=Yo;function fk(e,t,o){for(var n=-1,a=t.length,i={};++n<a;){var l=t[n],s=ck(e,l);o(s,l)&&dk(i,pk(l,e),s)}return i}var mk=fk,uk=ni,yk=ok,gk=mk,bk=hi;function hk(e,t){if(e==null)return{};var o=uk(bk(e),function(n){return[n]});return t=yk(t),gk(e,o,function(n,a){return t(n,a[0])})}var vk=hk;function wk(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:fv,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=vk(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 _k(){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:Qh([{cond:"hasActor",actions:sh(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=kk(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=q0({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=wk({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=K0({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=H0.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 kk(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}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=Ae(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 Mk={},Dk={"data-amplify-label":""};function Fk(e,t){return r.openBlock(),r.createElementBlock("label",Dk,[r.renderSlot(e.$slots,"default")])}var Zo=Uo(Mk,[["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=Ae(Se),{validationErrors:i}=r.toRefs(a()),{type:l}=n.value,s=l==="password",c=Vk(12),d=r.computed(()=>Bd(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=pb(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=Ae(Se)(),a=r.useAttrs(),i=r.computed(()=>zd("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(De(y))},b=()=>{a!=null&&a.onForgotPasswordClicked?t("forgotPasswordClicked"):d({type:"RESET_PASSWORD"})};return(y,g)=>{const v=ze,w=Oe,_=we,k=ge,x=Re,A=Be;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=Ae(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(De(b))};return(b,y)=>{const g=ze,v=Oe,w=we,_=ge,k=Re,x=Be;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=Uo(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=Uo(cS,[["render",dS]]);const zr=r.defineComponent({name:"confirm-sign-up",emits:["confirmSignUpSubmit","lostCodeClicked"],setup(e,{emit:t}){const o=r.useAttrs(),n=Ae(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(De(A))},x=()=>{o!=null&&o.onLostCodeClicked?t("lostCodeClicked"):d()};return(A,S)=>{const C=Ye,$=pl,N=ze,R=Oe,M=we,F=Be,ce=ge,K=Re;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(M,{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(M,{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=Ae(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(De(v))},g=()=>{o!=null&&o.onBackToSignInClicked?t("backToSignInClicked"):a({type:"SIGN_IN"})};return(v,w)=>{const _=Ye,k=ge,x=Oe,A=we,S=Be,C=ze,$=Re;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 M,F;return[r.createTextVNode(r.toDisplayString(r.unref(O)((F=(M=r.unref(s))==null?void 0:M.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 Dt="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Dt=Dt.replace(/u/g,"\\u");const hS="(?:(?![A-Z0-9 $%*+\\-./:]|"+Dt+`)(?:.|[\r
|
|
32
|
-
]))+`;
|
|
33
|
-
Make sure your charset is UTF-8`);o=(o>>>8&255)*192+(o&255),e.put(o,13)}};var US=
|
|
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(
|
|
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=[],u;try{for(;(l===void 0||l-- >0)&&!(d=c.next()).done;)p.push(d.value)}catch(f){u={error:f}}finally{try{d&&!d.done&&(s=c.return)&&s.call(c)}finally{if(u)throw u.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})(mr);var ur={};(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={}))})(ur);var fe={};Object.defineProperty(fe,"__esModule",{value:!0});var ye=ur,ah=ye.ActionTypes.Start,ih=ye.ActionTypes.Stop,lh=ye.ActionTypes.Raise,sh=ye.ActionTypes.Send,ch=ye.ActionTypes.Cancel,dh=ye.ActionTypes.NullEvent,ph=ye.ActionTypes.Assign,fh=ye.ActionTypes.After,mh=ye.ActionTypes.DoneState,uh=ye.ActionTypes.Log,yh=ye.ActionTypes.Init,gh=ye.ActionTypes.Invoke,bh=ye.ActionTypes.ErrorExecution,hh=ye.ActionTypes.ErrorPlatform,vh=ye.ActionTypes.ErrorCustom,wh=ye.ActionTypes.Update,_h=ye.ActionTypes.Choose,kh=ye.ActionTypes.Pure;fe.after=fh;fe.assign=ph;fe.cancel=ch;fe.choose=_h;fe.doneState=mh;fe.error=vh;fe.errorExecution=bh;fe.errorPlatform=hh;fe.init=yh;fe.invoke=gh;fe.log=uh;fe.nullEvent=dh;fe.pure=kh;fe.raise=lh;fe.send=sh;fe.start=ah;fe.stop=ih;fe.update=wh;var Gi={},xt={};Object.defineProperty(xt,"__esModule",{value:!0});var Sh=".",xh={},Ch="xstate.guard",Ah="";xt.DEFAULT_GUARD_TYPE=Ch;xt.EMPTY_ACTIVITY_MAP=xh;xt.STATE_DELIMITER=Sh;xt.TARGETLESS_KEY=Ah;var Yo={};Object.defineProperty(Yo,"__esModule",{value:!0});var Eh=!0;Yo.IS_PRODUCTION=Eh;(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=mr,o=xt,n=Yo,a;function i(h){return Object.keys(h)}function l(h,P,O){O===void 0&&(O=o.STATE_DELIMITER);var N=u(h,O),R=u(P,O);return Q(R)?Q(N)?R===N:!1:Q(N)?N in R:Object.keys(N).every(function(B){return B in R?l(N[B],R[B]):!1})}function s(h){try{return Q(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 Q(h)||typeof h=="number"?"".concat(h):pe(h)?h.name:h.type}catch{throw new Error("Actions must be strings or objects with a string action.type property.")}}function d(h,P){try{return G(h)?h:h.toString().split(P)}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 u(h,P){if(p(h))return h.value;if(G(h))return f(h);if(typeof h!="string")return h;var O=d(h,P);return f(O)}function f(h){if(h.length===1)return h[0];for(var P={},O=P,N=0;N<h.length-1;N++)N===h.length-2?O[h[N]]=h[N+1]:(O[h[N]]={},O=O[h[N]]);return P}function m(h,P){for(var O={},N=Object.keys(h),R=0;R<N.length;R++){var B=N[R];O[B]=P(h[B],B,h,R)}return O}function g(h,P,O){var N,R,B={};try{for(var L=t.__values(Object.keys(h)),F=L.next();!F.done;F=L.next()){var X=F.value,ae=h[X];!O(ae)||(B[X]=P(ae,X,h))}}catch(_e){N={error:_e}}finally{try{F&&!F.done&&(R=L.return)&&R.call(L)}finally{if(N)throw N.error}}return B}var y=function(h){return function(P){var O,N,R=P;try{for(var B=t.__values(h),L=B.next();!L.done;L=B.next()){var F=L.value;R=R[F]}}catch(X){O={error:X}}finally{try{L&&!L.done&&(N=B.return)&&N.call(B)}finally{if(O)throw O.error}}return R}};function b(h,P){return function(O){var N,R,B=O;try{for(var L=t.__values(h),F=L.next();!F.done;F=L.next()){var X=F.value;B=B[P][X]}}catch(ae){N={error:ae}}finally{try{F&&!F.done&&(R=L.return)&&R.call(L)}finally{if(N)throw N.error}}return B}}function v(h){if(!h)return[[]];if(Q(h))return[[h]];var P=_(Object.keys(h).map(function(O){var N=h[O];return typeof N!="string"&&(!N||!Object.keys(N).length)?[[O]]:v(h[O]).map(function(R){return[O].concat(R)})}));return P}function w(h){var P,O,N={};if(h&&h.length===1&&h[0].length===1)return h[0][0];try{for(var R=t.__values(h),B=R.next();!B.done;B=R.next())for(var L=B.value,F=N,X=0;X<L.length;X++){var ae=L[X];if(X===L.length-2){F[ae]=L[X+1];break}F[ae]=F[ae]||{},F=F[ae]}}catch(_e){P={error:_e}}finally{try{B&&!B.done&&(O=R.return)&&O.call(R)}finally{if(P)throw P.error}}return N}function _(h){var P;return(P=[]).concat.apply(P,t.__spreadArray([],t.__read(h),!1))}function k(h){return G(h)?h:[h]}function S(h){return h===void 0?[]:k(h)}function C(h,P,O){var N,R;if(pe(h))return h(P,O.data);var B={};try{for(var L=t.__values(Object.keys(h)),F=L.next();!F.done;F=L.next()){var X=F.value,ae=h[X];pe(ae)?B[X]=ae(P,O.data):B[X]=ae}}catch(_e){N={error:_e}}finally{try{F&&!F.done&&(R=L.return)&&R.call(L)}finally{if(N)throw N.error}}return B}function x(h){return/^(done|error)\./.test(h)}function I(h){return!!(h instanceof Promise||h!==null&&(pe(h)||typeof h=="object")&&pe(h.then))}function A(h){return h!==null&&typeof h=="object"&&"transition"in h&&typeof h.transition=="function"}function $(h,P){var O,N,R=t.__read([[],[]],2),B=R[0],L=R[1];try{for(var F=t.__values(h),X=F.next();!X.done;X=F.next()){var ae=X.value;P(ae)?B.push(ae):L.push(ae)}}catch(_e){O={error:_e}}finally{try{X&&!X.done&&(N=F.return)&&N.call(F)}finally{if(O)throw O.error}}return[B,L]}function M(h,P){return m(h.states,function(O,N){if(!!O){var R=(Q(P)?void 0:P[N])||(O?O.current:void 0);if(!!R)return{current:R,states:M(O,R)}}})}function D(h,P){return{current:P,states:M(h,P)}}function V(h,P,O,N){n.IS_PRODUCTION||e.warn(!!h,"Attempting to update undefined context");var R=h&&O.reduce(function(B,L){var F,X,ae=L.assignment,_e={state:N,action:L,_event:P},ot={};if(pe(ae))ot=ae(B,P.data,_e);else try{for(var oe=t.__values(Object.keys(ae)),ne=oe.next();!ne.done;ne=oe.next()){var nt=ne.value,Tt=ae[nt];ot[nt]=pe(Tt)?Tt(B,P.data,_e):Tt}}catch(Ul){F={error:Ul}}finally{try{ne&&!ne.done&&(X=oe.return)&&X.call(oe)}finally{if(F)throw F.error}}return Object.assign({},B,ot)},h);return R}e.warn=function(){},n.IS_PRODUCTION||(e.warn=function(h,P){var O=h instanceof Error?h:void 0;if(!(!O&&h)&&console!==void 0){var N=["Warning: ".concat(P)];O&&N.push(O),console.warn.apply(console,N)}});function G(h){return Array.isArray(h)}function pe(h){return typeof h=="function"}function Q(h){return typeof h=="string"}function At(h,P){if(!!h)return Q(h)?{type:o.DEFAULT_GUARD_TYPE,name:h,predicate:P?P[h]:void 0}:pe(h)?{type:o.DEFAULT_GUARD_TYPE,name:h.name,predicate:h}:h}function Et(h){try{return"subscribe"in h&&pe(h.subscribe)}catch{return!1}}var me=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ne=(a={},a[me]=function(){return this},a[Symbol.observable]=function(){return this},a);function oo(h){return!!h&&"__xstatenode"in h}function ln(h){return!!h&&typeof h.send=="function"}var sn=function(){var h=0;return function(){return h++,h.toString(16)}}();function no(h,P){return Q(h)||typeof h=="number"?t.__assign({type:h},P):h}function cn(h,P){if(!Q(h)&&"$$type"in h&&h.$$type==="scxml")return h;var O=no(h);return t.__assign({name:O.type,data:O,$$type:"scxml",type:"external"},P)}function ro(h,P){var O=k(P).map(function(N){return typeof N=="undefined"||typeof N=="string"||oo(N)?{target:N,event:h}:t.__assign(t.__assign({},N),{event:h})});return O}function ao(h){if(!(h===void 0||h===o.TARGETLESS_KEY))return S(h)}function It(h,P,O){if(!n.IS_PRODUCTION){var N=h.stack?" Stacktrace was '".concat(h.stack,"'"):"";if(h===P)console.error("Missing onError handler for invocation '".concat(O,"', error was '").concat(h,"'.").concat(N));else{var R=P.stack?" Stacktrace was '".concat(P.stack,"'"):"";console.error("Missing onError handler and/or unhandled exception/promise rejection for invocation '".concat(O,"'. ")+"Original error: '".concat(h,"'. ").concat(N," Current error is '").concat(P,"'.").concat(R))}}}function dn(h,P,O,N,R){var B=h.options.guards,L={state:R,cond:P,_event:N};if(P.type===o.DEFAULT_GUARD_TYPE)return((B==null?void 0:B[P.name])||P.predicate)(O,N.data,L);var F=B==null?void 0:B[P.type];if(!F)throw new Error("Guard '".concat(P.type,"' is not implemented on machine '").concat(h.id,"'."));return F(O,N.data,L)}function T(h){return typeof h=="string"?{type:h}:h}function ve(h,P,O){var N=function(){},R=typeof h=="object",B=R?h:null;return{next:((R?h.next:h)||N).bind(B),error:((R?h.error:P)||N).bind(B),complete:((R?h.complete:O)||N).bind(B)}}function io(h,P){return"".concat(h,":invocation[").concat(P,"]")}e.createInvokeId=io,e.evaluateGuard=dn,e.flatten=_,e.getActionType=c,e.getEventType=s,e.interopSymbols=Ne,e.isActor=ln,e.isArray=G,e.isBehavior=A,e.isBuiltInEvent=x,e.isFunction=pe,e.isMachine=oo,e.isObservable=Et,e.isPromiseLike=I,e.isStateLike=p,e.isString=Q,e.keys=i,e.mapContext=C,e.mapFilterValues=g,e.mapValues=m,e.matchesState=l,e.nestedPath=b,e.normalizeTarget=ao,e.partition=$,e.path=y,e.pathToStateValue=f,e.pathsToStateValue=w,e.reportUnhandledExceptionOnInvocation=It,e.symbolObservable=me,e.toArray=S,e.toArrayStrict=k,e.toEventObject=no,e.toGuard=At,e.toInvokeSource=T,e.toObserver=ve,e.toSCXMLEvent=cn,e.toStatePath=d,e.toStatePaths=v,e.toStateValue=u,e.toTransitionConfigArray=ro,e.uniqueId=sn,e.updateContext=V,e.updateHistoryStates=M,e.updateHistoryValue=D})(Gi);Object.defineProperty(W,"__esModule",{value:!0});var Z=mr,Se=ur,ue=fe,q=Gi,qi=Yo,Ih=q.toSCXMLEvent({type:ue.init});function Bn(e,t){return t&&t[e]||void 0}function Jo(e,t){var o;if(q.isString(e)||typeof e=="number"){var n=Bn(e,t);q.isFunction(n)?o={type:e,exec:n}:n?o=n:o={type:e,exec:void 0}}else if(q.isFunction(e))o={type:e.name||e.toString(),exec:e};else{var n=Bn(e.type,t);if(q.isFunction(n))o=Z.__assign(Z.__assign({},e),{exec:n});else if(n){var a=n.type||e.type;o=Z.__assign(Z.__assign(Z.__assign({},n),e),{type:a})}else o=e}return o}var Vn=function(e,t){if(!e)return[];var o=q.isArray(e)?e:[e];return o.map(function(n){return Jo(n,t)})};function yr(e){var t=Jo(e);return Z.__assign(Z.__assign({id:q.isString(e)?e:t.id},t),{type:t.type})}function Th(e){return q.isString(e)?{type:ue.raise,event:e}:Ct(e,{to:Se.SpecialTargets.Internal})}function Hi(e){return{type:ue.raise,_event:q.toSCXMLEvent(e.event)}}function Ct(e,t){return{to:t?t.to:void 0,type:ue.send,event:q.isFunction(e)?e:q.toEventObject(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:q.isFunction(e)?e.name:q.getEventType(e)}}function Ki(e,t,o,n){var a={_event:o},i=q.toSCXMLEvent(q.isFunction(e.event)?e.event(t,o.data,a):e.event),l;if(q.isString(e.delay)){var s=n&&n[e.delay];l=q.isFunction(s)?s(t,o.data,a):s}else l=q.isFunction(e.delay)?e.delay(t,o.data,a):e.delay;var c=q.isFunction(e.to)?e.to(t,o.data,a):e.to;return Z.__assign(Z.__assign({},e),{to:c,_event:i,event:i.data,delay:l})}function gr(e,t){return Ct(e,Z.__assign(Z.__assign({},t),{to:Se.SpecialTargets.Parent}))}function $h(e,t,o){return Ct(t,Z.__assign(Z.__assign({},o),{to:e}))}function Ph(){return gr(ue.update)}function Nh(e,t){return Ct(e,Z.__assign(Z.__assign({},t),{to:function(o,n,a){var i=a._event;return i.origin}}))}var Oh=function(e,t){return{context:e,event:t}};function zh(e,t){return e===void 0&&(e=Oh),{type:ue.log,label:t,expr:e}}var Wi=function(e,t,o){return Z.__assign(Z.__assign({},e),{value:q.isString(e.expr)?e.expr:e.expr(t,o.data,{_event:o})})},Uh=function(e){return{type:ue.cancel,sendId:e}};function Rh(e){var t=yr(e);return{type:Se.ActionTypes.Start,activity:t,exec:void 0}}function Bh(e){var t=q.isFunction(e)?e:yr(e);return{type:Se.ActionTypes.Stop,activity:t,exec:void 0}}function Yi(e,t,o){var n=q.isFunction(e.activity)?e.activity(t,o.data):e.activity,a=typeof n=="string"?{id:n}:n,i={type:Se.ActionTypes.Stop,activity:a};return i}var Vh=function(e){return{type:ue.assign,assignment:e}};function Mh(e){return typeof e=="object"&&"type"in e}function Dh(e,t){var o=t?"#".concat(t):"";return"".concat(Se.ActionTypes.After,"(").concat(e,")").concat(o)}function Fh(e,t){var o="".concat(Se.ActionTypes.DoneState,".").concat(e),n={type:o,data:t};return n.toString=function(){return o},n}function Lh(e,t){var o="".concat(Se.ActionTypes.DoneInvoke,".").concat(e),n={type:o,data:t};return n.toString=function(){return o},n}function jh(e,t){var o="".concat(Se.ActionTypes.ErrorPlatform,".").concat(e),n={type:o,data:t};return n.toString=function(){return o},n}function Gh(e){return{type:Se.ActionTypes.Pure,get:e}}function qh(e,t){if(!qi.IS_PRODUCTION&&(!e||typeof e=="function")){var o=e;e=function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];var i=typeof o=="function"?o.apply(void 0,Z.__spreadArray([],Z.__read(n),!1)):o;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(n,a){return a},Z.__assign(Z.__assign({},t),{to:e}))}function Hh(e,t){return gr(function(o,n,a){return{type:ue.error,data:q.isFunction(e)?e(o,n,a):e}},Z.__assign(Z.__assign({},t),{to:Se.SpecialTargets.Parent}))}function Kh(e){return{type:Se.ActionTypes.Choose,conds:e}}function Mn(e,t,o,n,a,i,l){l===void 0&&(l=!1);var s=Z.__read(l?[[],a]:q.partition(a,function(m){return m.type===ue.assign}),2),c=s[0],d=s[1],p=c.length?q.updateContext(o,n,c,t):o,u=l?[o]:void 0,f=q.flatten(d.map(function(m){var g;switch(m.type){case ue.raise:return Hi(m);case ue.send:var y=Ki(m,p,n,e.options.delays);return qi.IS_PRODUCTION||q.warn(!q.isString(m.delay)||typeof y.delay=="number","No delay reference for delay expression '".concat(m.delay,"' was found on machine '").concat(e.id,"'")),y.to!==Se.SpecialTargets.Internal&&(i==null||i(y,p,n)),y;case ue.log:{var b=Wi(m,p,n);return i==null||i(b,p,n),b}case ue.choose:{var v=m,w=(g=v.conds.find(function(D){var V=q.toGuard(D.cond,e.options.guards);return!V||q.evaluateGuard(e,V,p,n,i?void 0:t)}))===null||g===void 0?void 0:g.actions;if(!w)return[];var _=Z.__read(Mn(e,t,p,n,Vn(q.toArray(w),e.options.actions),i,l),2),k=_[0],S=_[1];return p=S,u==null||u.push(p),k}case ue.pure:{var w=m.get(p,n.data);if(!w)return[];var C=Z.__read(Mn(e,t,p,n,Vn(q.toArray(w),e.options.actions),i,l),2),x=C[0],I=C[1];return p=I,u==null||u.push(p),x}case ue.stop:{var b=Yi(m,p,n);return i==null||i(b,p,n),b}case ue.assign:{p=q.updateContext(p,n,[m],i?void 0:t),u==null||u.push(p);break}default:var A=Jo(m,e.options.actions),$=A.exec;if(i)i(A,p,n);else if($&&u){var M=u.length-1;A=Z.__assign(Z.__assign({},A),{exec:function(D){for(var V=[],G=1;G<arguments.length;G++)V[G-1]=arguments[G];$.apply(void 0,Z.__spreadArray([u[M]],Z.__read(V),!1))}})}return A}}).filter(function(m){return!!m}));return[f,p]}W.actionTypes=ue;W.after=Dh;var ce=W.assign=Vh;W.cancel=Uh;var Wh=W.choose=Kh;W.done=Fh;W.doneInvoke=Lh;W.error=jh;W.escalate=Hh;W.forwardTo=qh;W.getActionFunction=Bn;W.initEvent=Ih;W.isActionObject=Mh;W.log=zh;W.pure=Gh;W.raise=Th;W.resolveActions=Mn;W.resolveLog=Wi;W.resolveRaise=Hi;W.resolveSend=Ki;W.resolveStop=Yi;W.respond=Nh;W.send=Ct;W.sendParent=gr;W.sendTo=$h;W.sendUpdate=Ph;W.start=Rh;var Yh=W.stop=Bh;W.toActionObject=Jo;W.toActionObjects=Vn;W.toActivityDefinition=yr;var go=function(e){return Yh(e)},Jh=ce({attributeToVerify:function(e){}}),Zh=ce({challengeName:function(e){}}),Xh=ce({requiredAttributes:function(e){}}),br=ce({remoteError:function(e){return""}}),hr=ce({formValues:function(e){return{}}}),vr=ce({touched:function(e){return{}}}),Qh=ce({unverifiedAttributes:function(e){}}),ev=ce({username:function(e){}}),wr=ce({validationError:function(e){return{}}}),tv=ce({challengeName:function(e,t){var o;return(o=t.data)===null||o===void 0?void 0:o.challengeName}}),ov=ce({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}}),nv=ce({redirectIntent:function(e){return"confirmPasswordReset"}}),rv=ce({redirectIntent:function(e){return"confirmSignUp"}}),Ji=ce({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}}}),_r=ce({validationError:function(e,t){return t.data}}),kr=ce({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}}),av=ce({unverifiedAttributes:function(e,t){return t.data.unverified}}),Zi=ce({user:function(e,t){return t.data.user||t.data}}),iv=ce({username:function(e,t){var o=e.formValues,n=o.username,a=o.country_code;return a&&(n="".concat(a).concat(n)),n}}),lv=ce({codeDeliveryDetails:function(e,t){return t.data.codeDeliveryDetails}}),sv=ce({authAttributes:function(e,t){return{username:e.formValues.username}}}),Sr=ce({formValues:function(e,t){var o,n=t.data,a=n.name,i=n.value;return z(z({},e.formValues),((o={})[a]=i,o))}}),xr=ce({formValues:function(e,t){return z(z({},e.formValues),t.data)}}),Cr=ce({touched:function(e,t){var o,n=t.data.name;return z(z({},e.touched),((o={})["".concat(n)]=!0,o))}}),Xi=ce({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}}),cv=Pe,dv=Wn,pv=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fv=/^\w*$/;function mv(e,t){if(cv(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||dv(e)?!0:fv.test(e)||!pv.test(e)||t!=null&&e in Object(t)}var Ar=mv,Qi=Xn,uv="Expected a function";function Er(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(uv);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(Er.Cache||Qi),o}Er.Cache=Qi;var yv=Er,gv=yv,bv=500;function hv(e){var t=gv(e,function(n){return o.size===bv&&o.clear(),n}),o=t.cache;return t}var vv=hv,wv=vv,_v=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kv=/\\(\\)?/g,Sv=wv(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(_v,function(o,n,a,i){t.push(a?i.replace(kv,"$1"):n||o)}),t}),xv=Sv,$a=Ht,Cv=ai,Av=Pe,Ev=Wn,Iv=1/0,Pa=$a?$a.prototype:void 0,Na=Pa?Pa.toString:void 0;function el(e){if(typeof e=="string")return e;if(Av(e))return Cv(e,el)+"";if(Ev(e))return Na?Na.call(e):"";var t=e+"";return t=="0"&&1/e==-Iv?"-0":t}var Tv=el,$v=Tv;function Pv(e){return e==null?"":$v(e)}var Nv=Pv,Ov=Pe,zv=Ar,Uv=xv,Rv=Nv;function Bv(e,t){return Ov(e)?e:zv(e,t)?[e]:Uv(Rv(e))}var Zo=Bv,Vv=Wn,Mv=1/0;function Dv(e){if(typeof e=="string"||Vv(e))return e;var t=e+"";return t=="0"&&1/e==-Mv?"-0":t}var Qt=Dv,Fv=Zo,Lv=Qt;function jv(e,t){t=Fv(t,e);for(var o=0,n=t.length;e!=null&&o<n;)e=e[Lv(t[o++])];return o&&o==n?e:void 0}var Ir=jv,Gv=Ir;function qv(e,t,o){var n=e==null?void 0:Gv(e,t);return n===void 0?o:n}var tl=qv,We=tl,Hv=ci,Kv=Zt,Wv=Vo,Yv=Pe,Jv=Kt,Zv=Qe.exports,Xv=Fo,Qv=Do,ew="[object Map]",tw="[object Set]",ow=Object.prototype,nw=ow.hasOwnProperty;function rw(e){if(e==null)return!0;if(Jv(e)&&(Yv(e)||typeof e=="string"||typeof e.splice=="function"||Zv(e)||Qv(e)||Wv(e)))return!e.length;var t=Kv(e);if(t==ew||t==tw)return!e.size;if(Xv(e))return!Hv(e).length;for(var o in e)if(nw.call(e,o))return!1;return!0}var aw=rw,Dn=aw,iw=Qn,lw=Wt;function sw(e,t,o){(o!==void 0&&!lw(e[t],o)||o===void 0&&!(t in e))&&iw(e,t,o)}var ol=sw;function cw(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 dw=cw,pw=dw,fw=pw(),mw=fw,uw=Kt,yw=qe;function gw(e){return yw(e)&&uw(e)}var bw=gw,hw=bt,vw=or,ww=qe,_w="[object Object]",kw=Function.prototype,Sw=Object.prototype,nl=kw.toString,xw=Sw.hasOwnProperty,Cw=nl.call(Object);function Aw(e){if(!ww(e)||hw(e)!=_w)return!1;var t=vw(e);if(t===null)return!0;var o=xw.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&nl.call(o)==Cw}var Ew=Aw;function Iw(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var rl=Iw,Tw=Yt,$w=Jt;function Pw(e){return Tw(e,$w(e))}var Nw=Pw,Oa=ol,Ow=Eo.exports,zw=Si,Uw=ui,Rw=xi,za=Vo,Ua=Pe,Bw=bw,Vw=Qe.exports,Mw=Hn,Dw=Re,Fw=Ew,Lw=Do,Ra=rl,jw=Nw;function Gw(e,t,o,n,a,i,l){var s=Ra(e,o),c=Ra(t,o),d=l.get(c);if(d){Oa(e,o,d);return}var p=i?i(s,c,o+"",e,t,l):void 0,u=p===void 0;if(u){var f=Ua(c),m=!f&&Vw(c),g=!f&&!m&&Lw(c);p=c,f||m||g?Ua(s)?p=s:Bw(s)?p=Uw(s):m?(u=!1,p=Ow(c,!0)):g?(u=!1,p=zw(c,!0)):p=[]:Fw(c)||za(c)?(p=s,za(s)?p=jw(s):(!Dw(s)||Mw(s))&&(p=Rw(c))):u=!1}u&&(l.set(c,p),a(p,c,n,i,l),l.delete(c)),Oa(e,o,p)}var qw=Gw,Hw=Ko,Kw=ol,Ww=mw,Yw=qw,Jw=Re,Zw=Jt,Xw=rl;function al(e,t,o,n,a){e!==t&&Ww(t,function(i,l){if(a||(a=new Hw),Jw(i))Yw(e,t,l,o,al,n,a);else{var s=n?n(Xw(e,l),i,l+"",e,t,a):void 0;s===void 0&&(s=i),Kw(e,l,s)}},Zw)}var Qw=al;function e0(e){return e}var Tr=e0;function t0(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 o0=t0,n0=o0,Ba=Math.max;function r0(e,t,o){return t=Ba(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=Ba(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),n0(e,this,s)}}var a0=r0;function i0(e){return function(){return e}}var l0=i0,s0=l0,Va=mi,c0=Tr,d0=Va?function(e,t){return Va(e,"toString",{configurable:!0,enumerable:!1,value:s0(t),writable:!0})}:c0,p0=d0,f0=800,m0=16,u0=Date.now;function y0(e){var t=0,o=0;return function(){var n=u0(),a=m0-(n-o);if(o=n,a>0){if(++t>=f0)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var g0=y0,b0=p0,h0=g0,v0=h0(b0),w0=v0,_0=Tr,k0=a0,S0=w0;function x0(e,t){return S0(k0(e,t,_0),e+"")}var C0=x0,A0=Wt,E0=Kt,I0=Mo,T0=Re;function $0(e,t,o){if(!T0(o))return!1;var n=typeof t;return(n=="number"?E0(o)&&I0(t,o.length):n=="string"&&t in o)?A0(o[t],e):!1}var P0=$0,N0=C0,O0=P0;function z0(e){return N0(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&&O0(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=z0,R0=Qw,B0=U0,V0=B0(function(e,t,o){R0(e,t,o)}),M0=V0,$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=M0.apply(void 0,Oe([{}],a,!1)),Dn(i)?[2,Promise.resolve()]:[2,Promise.reject(i)]}})})},Oo={getAmplifyConfig:function(){return Y(this,void 0,void 0,function(){return J(this,function(e){return[2,de.Amplify.configure()]})})},getCurrentUser:function(){return Y(this,void 0,void 0,function(){return J(this,function(e){return[2,de.Auth.currentAuthenticatedUser()]})})},handleSignUp:function(e){return Y(this,void 0,void 0,function(){return J(this,function(t){return[2,de.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,de.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,de.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,de.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,de.Auth.forgotPasswordSubmit(t,o,n)]})})},handleForgotPassword:function(e){return Y(this,void 0,void 0,function(){return J(this,function(t){return[2,de.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":Rd(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 D0(e){var t=e.services;return Xt({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:Jh,clearChallengeName:Zh,clearRequiredAttributes:Xh,clearError:br,clearFormValues:hr,clearTouched:vr,clearUnverifiedAttributes:Qh,clearValidationError:wr,handleInput:Sr,handleSubmit:xr,handleBlur:Cr,parsePhoneNumber:Xi,setChallengeName:tv,setConfirmResetPasswordIntent:nv,setConfirmSignUpIntent:rv,setRequiredAttributes:ov,setCredentials:Ji,setFieldErrors:_r,setRemoteError:kr,setUnverifiedAttributes:av,setUser:Zi,setUsernameAuthAttributes:sv,sendUpdate:fr()},guards:{shouldConfirmSignIn:function(o,n){var a=We(n,"data.challengeName");return[je.SMS_MFA,je.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 We(n,"data.challengeName")===je.MFA_SETUP},shouldForceChangePassword:function(o,n){return We(n,"data.challengeName")===je.NEW_PASSWORD_REQUIRED},shouldRequestVerification:function(o,n){var a=n.data,i=a.unverified,l=a.verified;return Dn(l)&&!Dn(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!==je.SMS_MFA&&a!==je.SOFTWARE_TOKEN_MFA||(s=a),[4,t.handleConfirmSignIn({user:i,code:l,mfaType:s})];case 1:return c.sent(),[4,de.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,u,f;return J(this,function(m){switch(m.label){case 0:a=o.user,i=o.formValues,l=i.password,s=i.phone_number,c=i.country_code,d=di(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})),m.label=1;case 1:return m.trys.push([1,3,,4]),[4,de.Auth.completeNewPassword(a,l,d)];case 2:return(u=m.sent()).challengeName?[2,u]:[2,de.Auth.currentAuthenticatedUser()];case 3:return f=m.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,de.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,de.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,de.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,de.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,de.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,[Oo.validateConfirmPassword])]})})}}})}var F0=Xt({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 de.Auth.signOut()}}});function L0(e){var t=e.services;return Xt({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:br,clearFormValues:hr,clearTouched:vr,clearUsername:ev,clearValidationError:wr,handleInput:Sr,handleSubmit:xr,handleBlur:Cr,setFieldErrors:_r,setRemoteError:kr,setUsername:iv,sendUpdate:fr()},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,[Oo.validateConfirmPassword])]})})}}})}var j0="__lodash_hash_undefined__";function G0(e){return this.__data__.set(e,j0),this}var q0=G0;function H0(e){return this.__data__.has(e)}var K0=H0,W0=Xn,Y0=q0,J0=K0;function zo(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new W0;++t<o;)this.add(e[t])}zo.prototype.add=zo.prototype.push=Y0;zo.prototype.has=J0;var Z0=zo;function X0(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 Q0=X0;function e_(e,t){return e.has(t)}var t_=e_,o_=Z0,n_=Q0,r_=t_,a_=1,i_=2;function l_(e,t,o,n,a,i){var l=o&a_,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 u=-1,f=!0,m=o&i_?new o_:void 0;for(i.set(e,t),i.set(t,e);++u<s;){var g=e[u],y=t[u];if(n)var b=l?n(y,g,u,t,e,i):n(g,y,u,e,t,i);if(b!==void 0){if(b)continue;f=!1;break}if(m){if(!n_(t,function(v,w){if(!r_(m,w)&&(g===v||a(g,v,o,n,i)))return m.push(w)})){f=!1;break}}else if(!(g===y||a(g,y,o,n,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var il=l_;function s_(e){var t=-1,o=Array(e.size);return e.forEach(function(n,a){o[++t]=[a,n]}),o}var c_=s_;function d_(e){var t=-1,o=Array(e.size);return e.forEach(function(n){o[++t]=n}),o}var p_=d_,Ma=Ht,Da=ki,f_=Wt,m_=il,u_=c_,y_=p_,g_=1,b_=2,h_="[object Boolean]",v_="[object Date]",w_="[object Error]",__="[object Map]",k_="[object Number]",S_="[object RegExp]",x_="[object Set]",C_="[object String]",A_="[object Symbol]",E_="[object ArrayBuffer]",I_="[object DataView]",Fa=Ma?Ma.prototype:void 0,un=Fa?Fa.valueOf:void 0;function T_(e,t,o,n,a,i,l){switch(o){case I_:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case E_:return!(e.byteLength!=t.byteLength||!i(new Da(e),new Da(t)));case h_:case v_:case k_:return f_(+e,+t);case w_:return e.name==t.name&&e.message==t.message;case S_:case C_:return e==t+"";case __:var s=u_;case x_:var c=n&g_;if(s||(s=y_),e.size!=t.size&&!c)return!1;var d=l.get(e);if(d)return d==t;n|=b_,l.set(e,t);var p=m_(s(e),s(t),n,a,i,l);return l.delete(e),p;case A_:if(un)return un.call(e)==un.call(t)}return!1}var $_=T_,La=vi,P_=1,N_=Object.prototype,O_=N_.hasOwnProperty;function z_(e,t,o,n,a,i){var l=o&P_,s=La(e),c=s.length,d=La(t),p=d.length;if(c!=p&&!l)return!1;for(var u=c;u--;){var f=s[u];if(!(l?f in t:O_.call(t,f)))return!1}var m=i.get(e),g=i.get(t);if(m&&g)return m==t&&g==e;var y=!0;i.set(e,t),i.set(t,e);for(var b=l;++u<c;){f=s[u];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}b||(b=f=="constructor")}if(y&&!b){var k=e.constructor,S=t.constructor;k!=S&&"constructor"in e&&"constructor"in t&&!(typeof k=="function"&&k instanceof k&&typeof S=="function"&&S instanceof S)&&(y=!1)}return i.delete(e),i.delete(t),y}var U_=z_,yn=Ko,R_=il,B_=$_,V_=U_,ja=Zt,Ga=Pe,qa=Qe.exports,M_=Do,D_=1,Ha="[object Arguments]",Ka="[object Array]",bo="[object Object]",F_=Object.prototype,Wa=F_.hasOwnProperty;function L_(e,t,o,n,a,i){var l=Ga(e),s=Ga(t),c=l?Ka:ja(e),d=s?Ka:ja(t);c=c==Ha?bo:c,d=d==Ha?bo:d;var p=c==bo,u=d==bo,f=c==d;if(f&&qa(e)){if(!qa(t))return!1;l=!0,p=!1}if(f&&!p)return i||(i=new yn),l||M_(e)?R_(e,t,o,n,a,i):B_(e,t,c,o,n,a,i);if(!(o&D_)){var m=p&&Wa.call(e,"__wrapped__"),g=u&&Wa.call(t,"__wrapped__");if(m||g){var y=m?e.value():e,b=g?t.value():t;return i||(i=new yn),a(y,b,o,n,i)}}return f?(i||(i=new yn),V_(e,t,o,n,a,i)):!1}var j_=L_,G_=j_,Ya=qe;function ll(e,t,o,n,a){return e===t?!0:e==null||t==null||!Ya(e)&&!Ya(t)?e!==e&&t!==t:G_(e,t,o,n,ll,a)}var sl=ll,q_=Ko,H_=sl,K_=1,W_=2;function Y_(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 u=new q_;if(n)var f=n(d,p,c,e,t,u);if(!(f===void 0?H_(p,d,K_|W_,n,u):f))return!1}}return!0}var J_=Y_,Z_=Re;function X_(e){return e===e&&!Z_(e)}var cl=X_,Q_=cl,e1=Lo;function t1(e){for(var t=e1(e),o=t.length;o--;){var n=t[o],a=e[n];t[o]=[n,a,Q_(a)]}return t}var o1=t1;function n1(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==void 0||e in Object(o))}}var dl=n1,r1=J_,a1=o1,i1=dl;function l1(e){var t=a1(e);return t.length==1&&t[0][2]?i1(t[0][0],t[0][1]):function(o){return o===e||r1(o,e,t)}}var s1=l1;function c1(e,t){return e!=null&&t in Object(e)}var d1=c1,p1=Zo,f1=Vo,m1=Pe,u1=Mo,y1=Kn,g1=Qt;function b1(e,t,o){t=p1(t,e);for(var n=-1,a=t.length,i=!1;++n<a;){var l=g1(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&&y1(a)&&u1(l,a)&&(m1(e)||f1(e)))}var h1=b1,v1=d1,w1=h1;function _1(e,t){return e!=null&&w1(e,t,v1)}var k1=_1,S1=sl,x1=tl,C1=k1,A1=Ar,E1=cl,I1=dl,T1=Qt,$1=1,P1=2;function N1(e,t){return A1(e)&&E1(t)?I1(T1(e),t):function(o){var n=x1(o,e);return n===void 0&&n===t?C1(o,e):S1(t,n,$1|P1)}}var O1=N1;function z1(e){return function(t){return t==null?void 0:t[e]}}var U1=z1,R1=Ir;function B1(e){return function(t){return R1(t,e)}}var V1=B1,M1=U1,D1=V1,F1=Ar,L1=Qt;function j1(e){return F1(e)?M1(L1(e)):D1(e)}var G1=j1,q1=s1,H1=O1,K1=Tr,W1=Pe,Y1=G1;function J1(e){return typeof e=="function"?e:e==null?K1:typeof e=="object"?W1(e)?H1(e[0],e[1]):q1(e):Y1(e)}var Z1=J1,X1=er,Q1=Zo,ek=Mo,Ja=Re,tk=Qt;function ok(e,t,o,n){if(!Ja(e))return e;t=Q1(t,e);for(var a=-1,i=t.length,l=i-1,s=e;s!=null&&++a<i;){var c=tk(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=Ja(p)?p:ek(t[a+1])?[]:{})}X1(s,c,d),s=s[c]}return e}var nk=ok,rk=Ir,ak=nk,ik=Zo;function lk(e,t,o){for(var n=-1,a=t.length,i={};++n<a;){var l=t[n],s=rk(e,l);o(s,l)&&ak(i,ik(l,e),s)}return i}var sk=lk,ck=ai,dk=Z1,pk=sk,fk=wi;function mk(e,t){if(e==null)return{};var o=ck(fk(e),function(n){return[n]});return t=dk(t),pk(e,o,function(n,a){return t(n,a[0])})}var uk=mk;function yk(e){var t=e.services;return Xt({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:We(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:br,clearFormValues:hr,clearTouched:vr,clearValidationError:wr,handleInput:Sr,handleSubmit:xr,handleBlur:Cr,parsePhoneNumber:Xi,setCredentials:Ji,setFieldErrors:_r,setRemoteError:kr,setCodeDeliveryDetails:lv,setUser:Zi,sendUpdate:fr(),setAutoSignInIntent:Ae({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=We(a,"username")||We(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=We(a,"username")||We(i,"username"),[2,de.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,de.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(u){switch(u.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=uk(a,function(f,m){switch(m){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 m.startsWith("custom:")}}),[4,t.handleSignUp({username:c,password:d,attributes:p})];case 1:return[2,u.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 gk(){return Xt({id:"authenticator",initial:"idle",context:{user:void 0,config:{},services:Oo,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:Wh([{cond:"hasActor",actions:rh(function(e){return e.actorRef})}]),setUser:Ae({user:function(e,t){return t.data}}),setActorDoneData:Ae({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:Ae({user:void 0}),clearActorDoneData:Ae({actorDoneData:void 0}),applyAmplifyConfig:Ae({config:function(e,t){var o,n,a,i,l,s,c,d,p,u=(n=(o=t.data.aws_cognito_username_attributes)===null||o===void 0?void 0:o.map(function(S){return S.toLowerCase()}))!==null&&n!==void 0?n:[],f=(i=(a=t.data.aws_cognito_verification_mechanisms)===null||a===void 0?void 0:a.map(function(S){return S.toLowerCase()}))!==null&&i!==void 0?i:[],m=(s=(l=t.data.aws_cognito_signup_attributes)===null||l===void 0?void 0:l.map(function(S){return S.toLowerCase()}))!==null&&s!==void 0?s:[],g=(d=(c=t.data.aws_cognito_social_providers)===null||c===void 0?void 0:c.map(function(S){return S.toLowerCase()}))!==null&&d!==void 0?d:[],y=t.data.aws_cognito_password_protection_settings||{};u.length===0&&u.push("username");var b=e.config,v=b.loginMechanisms,w=b.signUpAttributes,_=b.socialProviders,k=b.initialState;return{loginMechanisms:v!=null?v:u,formFields:(p=bk(b.formFields))!==null&&p!==void 0?p:{},passwordSettings:y,signUpAttributes:w!=null?w:Array.from(new Set(Oe(Oe([],f,!0),m,!0))),socialProviders:_!=null?_:g.sort(),initialState:k}}}),spawnSignInActor:Ae({actorRef:function(e,t){var o,n,a,i,l,s,c=e.services,d=D0({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 uo(d,{name:"signInActor"})}}),spawnSignUpActor:Ae({actorRef:function(e,t){var o,n,a,i,l,s,c,d=e.services,p=yk({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 uo(p,{name:"signUpActor"})}}),spawnResetPasswordActor:Ae({actorRef:function(e,t){var o,n,a,i,l=e.services,s=L0({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 uo(s,{name:"resetPasswordActor"})}}),spawnSignOutActor:Ae({actorRef:function(e){var t=F0.withContext({user:e.user});return uo(t,{name:"signOutActor"})}}),stopSignInActor:go("signInActor"),stopSignUpActor:go("signUpActor"),stopResetPasswordActor:go("resetPasswordActor"),stopSignOutActor:go("signOutActor"),configure:Ae(function(e,t){var o=t.data,n=o.services,a=di(o,["services"]);return{services:z(z({},Oo),n),config:a}}),setHasSetup:Ae({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 bk(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 hk={key:0,class:"amplify-flex amplify-alert amplify-alert--error amplify-authenticator__base","data-variation":"error",role:"alert"},vk={class:"amplify-flex amplify-authenticator__icon-wrapper"},wk=r.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon","aria-hidden":"true",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),_k=r.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon","aria-hidden":"true",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=U("Dismiss alert");function n(){t.value=!1}return(a,i)=>{const l=we;return t.value?(r.openBlock(),r.createElementBlock("div",hk,[r.createElementVNode("div",vk,[wk,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(()=>[_k]),_:1},8,["aria-label"])])):r.createCommentVNode("",!0)}}};var Xo=(e,t)=>{const o=e.__vccOpts||e;for(const[n,a]of t)o[n]=a;return o};const kk={};function Sk(e,t){return r.openBlock(),r.createElementBlock("div",null,[r.renderSlot(e.$slots,"default")])}var he=Xo(kk,[["render",Sk]]);const Me=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)])}}),De=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 xk(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))),xk(a),o)}var Uo=globalThis&&globalThis.__assign||function(){return Uo=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},Uo.apply(this,arguments)},Ck=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 Ak(e,t,o){if(typeof e=="object")return e;var n=function(){};return{next:e,error:t||n,complete:o||n}}function Ek(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,u=Ck(t,["context","guards","actions","activities","services","delays","state"]),f={context:a,guards:i,actions:l,activities:s,services:c,delays:d},m=n.withConfig(f,function(){return Uo(Uo({},n.context),a)}),g=ji(m,u).start(p?$e.create(p):void 0),y;return r.onMounted(function(){o&&(y=g.subscribe(Ak(o)))}),r.onBeforeUnmount(function(){g.stop(),y==null||y.unsubscribe()}),g}function Ik(e){return"state"in e}var Za=function(){};function Tk(e){return"getSnapshot"in e?e.getSnapshot():Ik(e)?e.state:void 0}function pl(e,t){t===void 0&&(t=Tk);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:Za,complete:Za}).unsubscribe;s(function(){return c()})},{immediate:!0}),{state:n,send:a}}const fl={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(),Ao=r.reactive(Pt($t({},fl),{send:"",state:""})),Ie=e=>(e&&(Fn.value=e),pl(Fn.value)),$k=()=>(Xa(),r.watchEffect(()=>{Xa()}),Ao),xe=$k;function Xa(){if(!Fn.value)return;const{state:e,send:t}=Ie(),o=pi({send:t,state:e.value});for(const n of Object.keys(fl))Ao[n]=o[n];Ao.send=t,Ao.state=e}const ho=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=he,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})}}}),Pk=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),Nk={class:"amplify-text amplify-authenticator__federated-text"},Ok=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),zk={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),Rk={class:"amplify-text amplify-authenticator__federated-text"},Bk=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),Vk={class:"amplify-text amplify-authenticator__federated-text"},Mk=r.createElementVNode("hr",{class:"amplify-divider amplify-divider--label amplify-divider--small","aria-orientation":"horizontal","data-size":"small","data-label":"or"},null,-1),Qo=r.defineComponent({name:"federated-sign-in",setup(e){var v;const{state:t}=Ie(),o=Ee(xe),{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,u=n==="signUp"?"Up":"In",f=r.computed(()=>_n),m=r.computed(()=>U(`Sign ${u} with Amazon`)),g=r.computed(()=>U(`Sign ${u} with Apple`)),y=r.computed(()=>U(`Sign ${u} with Facebook`)),b=r.computed(()=>U(`Sign ${u} with Google`));return(w,_)=>{const k=he;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(ho,{key:0,provider:r.unref(f).Amazon},{default:r.withCtx(()=>[Pk,r.createElementVNode("p",Nk,r.toDisplayString(r.unref(m)),1)]),_:1},8,["provider"])):r.createCommentVNode("",!0),r.unref(s)?(r.openBlock(),r.createBlock(ho,{key:1,provider:r.unref(f).Apple},{default:r.withCtx(()=>[Ok,r.createElementVNode("p",zk,r.toDisplayString(r.unref(g)),1)]),_:1},8,["provider"])):r.createCommentVNode("",!0),r.unref(c)?(r.openBlock(),r.createBlock(ho,{key:2,provider:r.unref(f).Facebook},{default:r.withCtx(()=>[Uk,r.createElementVNode("p",Rk,r.toDisplayString(r.unref(y)),1)]),_:1},8,["provider"])):r.createCommentVNode("",!0),r.unref(d)?(r.openBlock(),r.createBlock(ho,{key:3,provider:r.unref(f).Google},{default:r.withCtx(()=>[Bk,r.createElementVNode("p",Vk,r.toDisplayString(r.unref(b)),1)]),_:1},8,["provider"])):r.createCommentVNode("",!0),Mk]),_:1})):r.createCommentVNode("",!0)}}});let Dk=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 Fk={},Lk={"data-amplify-label":""};function jk(e,t){return r.openBlock(),r.createElementBlock("label",Lk,[r.renderSlot(e.$slots,"default")])}var en=Xo(Fk,[["render",jk]]);const tn=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))}}),Gk=["aria-label"],qk={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},Hk=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),Kk=[Hk],Wk={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},Yk=r.createElementVNode("path",{d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z",fill:"none"},null,-1),Jk=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),Zk=[Yk,Jk],Xk={inheritAttrs:!1},Pr=r.defineComponent(Pt($t({},Xk),{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=U("Show password"),n=U("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:u,placeholder:f,required:m}=r.toRefs(t);let g=r.ref("");function y(){i.value=i.value===o?n:o,a.value=a.value==="password"?"text":"password"}const b=U((w=f==null?void 0:f.value)!=null?w:c.value),v=U(c.value);return(_,k)=>{const S=en,C=tn,x=he;return r.openBlock(),r.createBlock(x,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield amplify-authenticator__column"},{default:r.withCtx(()=>{var I;return[r.createVNode(S,{class:r.normalizeClass(["amplify-label",{"amplify-visually-hidden":(I=r.unref(u))!=null?I:!0}]),for:"amplify-field-"+r.unref(l)},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(v)),1)]),_:1},8,["class","for"]),r.createVNode(x,{class:"amplify-flex amplify-field-group"},{default:r.withCtx(()=>{var A;return[r.createVNode(C,r.mergeProps(_.$attrs,{modelValue:r.unref(g),"onUpdate:modelValue":k[0]||(k[0]=$=>r.isRef(g)?g.value=$:g=$),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:(A=r.unref(m))!=null?A:!0,placeholder:r.unref(b),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(x,{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",qk,Kk)):(r.openBlock(),r.createElementBlock("svg",Wk,Zk))],8,Gk)]),_:1})]}),_:1})]}),_:1})}}})),Qk=["value","selected"],eS=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,Qk))),128))],32))}}),tS=r.createTextVNode(r.toDisplayString("Country Code")),oS=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),nS=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),u=Math.floor(Math.random()*999999);return(f,m)=>{const g=en,y=eS,b=he,v=tn;return r.openBlock(),r.createBlock(b,{class:"amplify-flex amplify-field amplify-textfield amplify-phonenumberfield amplify-authenticator__column"},{default:r.withCtx(()=>[r.createVNode(g,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(b,{class:"amplify-flex amplify-field-group"},{default:r.withCtx(()=>[r.createVNode(b,{class:"amplify-field-group__outer-start"},{default:r.withCtx(()=>[e.type==="tel"?(r.openBlock(),r.createBlock(b,{key:0,class:"amplify-flex amplify-field amplify-selectfield amplify-countrycodeselect amplify-authenticator__column"},{default:r.withCtx(()=>[r.createVNode(g,r.mergeProps({for:"amplify-field-"+r.unref(u),class:"amplify-label amplify-visually-hidden"},f.$attrs),{default:r.withCtx(()=>[tS]),_:1},16,["for"]),r.createVNode(b,{class:"amplify-select__wrapper"},{default:r.withCtx(()=>[r.createVNode(y,{class:"amplify-select amplify-field-group__control",id:"amplify-field-"+r.unref(u),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(b,{class:"amplify-flex amplify-select__icon-wrapper amplify-authenticator__icon-wrapper"},{default:r.withCtx(()=>[oS]),_:1})]),_:1})]),_:1})):r.createCommentVNode("",!0)]),_:1}),r.createVNode(b,{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})}}}),rS=["id"],ml=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(xe),{validationErrors:i}=r.toRefs(a()),{type:l}=n.value,s=l==="password",c=Dk(12),d=r.computed(()=>Od(i.value[o.value])),p=r.computed(()=>{var f;return((f=d.value)==null?void 0:f.length)>0}),u=r.computed(()=>p.value?c:void 0);return(f,m)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[s?(r.openBlock(),r.createBlock(Pr,{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(u)},null,8,["name","label","placeholder","required","label-hidden","autocomplete","hasError","describedBy"])):(r.openBlock(),r.createBlock(nS,{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(u)},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(u)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(d),(g,y)=>(r.openBlock(),r.createElementBlock("p",{key:y,role:"alert","data-variation":"error",class:"amplify-text amplify-text--error"},r.toDisplayString(r.unref(U)(g)),1))),128))],8,rS)):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=lb(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(ml,{name:s,key:s,formField:c},null,8,["name","formField"]))),128))}}),aS=r.createElementVNode("legend",{class:"amplify-visually-hidden"},"Sign in",-1),iS={"data-amplify-footer":""},Nr=r.defineComponent({name:"sign-in",emits:["signInSubmit","forgotPasswordClicked","createAccountClicked"],setup(e,{emit:t}){const n=Ee(xe)(),a=r.useAttrs(),i=r.computed(()=>$d("Forgot your password? ")?U("Forgot your password? "):U("Forgot your password?")),l=r.computed(()=>U("Sign in")),s=r.computed(()=>U("Signing in")),{state:c,send:d}=Ie(),p=r.computed(()=>ke(c.value)),u=y=>{const{name:b,value:v}=y.target;d({type:"CHANGE",data:{name:b,value:v}})},f=y=>{a!=null&&a.onSignInSubmit?t("signInSubmit",y):m(y)},m=y=>{n.submitForm(Be(y))},g=()=>{a!=null&&a.onForgotPasswordClicked?t("forgotPasswordClicked"):d({type:"RESET_PASSWORD"})};return(y,b)=>{const v=ze,w=Ve,_=we,k=he,S=Me,C=De;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(S,{"data-amplify-authenticator-signin":"",onInput:u,onSubmit:r.withModifiers(f,["prevent"]),method:"post"},{formt:r.withCtx(({slotData:x})=>[r.renderSlot(y.$slots,"form",{info:x,onSignInSubmit:f,onInput:u,onForgotPasswordClicked:g})]),default:r.withCtx(()=>[r.createVNode(Qo),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:x})=>[r.renderSlot(y.$slots,"signin-fields",{info:x})]),default:r.withCtx(()=>[aS,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(U)(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(C,null,{default:r.withCtx(()=>[r.renderSlot(y.$slots,"footer",{},()=>[r.createElementVNode("div",iS,[r.createVNode(_,{onClick:g,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})])}}}),Or=r.defineComponent({name:"authenticator-sign-up-form-fields",setup(e){return(t,o)=>(r.openBlock(),r.createBlock(Fe,{route:"signUp"}))}}),zr=r.defineComponent({name:"sign-up",emits:["signUpSubmit"],setup(e,{emit:t}){const o=Ee(xe),n=o(),a=o(),{hasValidationErrors:i,isPending:l,error:s}=r.toRefs(n),c=r.useAttrs(),d=r.computed(()=>U("Create Account")),p=g=>{let{checked:y,name:b,type:v,value:w}=g.target;v==="checkbox"&&!y&&(w=void 0),a.updateForm({name:b,value:w})};function u(g){const{name:y}=g.target;a.updateBlur({name:y})}const f=g=>{c!=null&&c.onSignUpSubmit?t("signUpSubmit",g):m(g)},m=g=>{a.submitForm(Be(g))};return(g,y)=>{const b=ze,v=Ve,w=we,_=he,k=Me,S=De;return r.renderSlot(g.$slots,"signUpSlotI",r.normalizeProps(r.guardReactiveProps(g.$attrs)),()=>[r.renderSlot(g.$slots,"header"),r.createVNode(_,r.normalizeProps(r.guardReactiveProps(g.$attrs)),{default:r.withCtx(()=>[r.createVNode(k,{onInput:p,onBlurCapture:u,onSubmit:r.withModifiers(f,["prevent"])},{default:r.withCtx(()=>[r.createVNode(Qo),r.createVNode(_,{class:"amplify-flex amplify-authenticator__column"},{default:r.withCtx(()=>[r.createVNode(b,{class:"amplify-flex amplify-authenticator__column",disabled:r.unref(l)},{fieldSetI:r.withCtx(({slotData:C})=>[r.renderSlot(g.$slots,"signup-fields",{info:C})]),default:r.withCtx(()=>[r.createVNode(Or)]),_:3},8,["disabled"]),r.unref(s)?(r.openBlock(),r.createBlock(v,{key:0},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(U)(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(S,null,{default:r.withCtx(()=>[r.renderSlot(g.$slots,"footer")]),_:3})])}}}),lS=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=he;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"])}}}),sS={};function cS(e,t){const o=he;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 dS=Xo(sS,[["render",cS]]);const Je=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}`,Pt($t({},o),{class:i}),[n])];else return()=>r.h(`h${e.level}`,Pt($t({"data-amplify-heading":""},o),{class:i}),[a[0]?r.h(a[0].children[0]):r.h(n[0])]);return()=>a}}),pS={};function fS(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 ul=Xo(pS,[["render",fS]]);const Ur=r.defineComponent({name:"confirm-sign-up",emits:["confirmSignUpSubmit","lostCodeClicked"],setup(e,{emit:t}){const o=r.useAttrs(),n=Ee(xe),{isPending:a,error:i,codeDeliveryDetails:l}=r.toRefs(n()),{submitForm:s,updateForm:c,resendCode:d}=n(),p=r.computed(()=>{var C,x;return((C=l.value)==null?void 0:C.DeliveryMedium)==="EMAIL"?U("We Emailed You"):((x=l.value)==null?void 0:x.DeliveryMedium)==="SMS"?U("We Texted You"):U("We Sent A Code")}),u=r.computed(()=>U("Resend Code")),f=r.computed(()=>U("Confirm")),m=U("Your code is on the way. To log in, enter the code we emailed to"),g=U("Your code is on the way. To log in, enter the code we texted to"),y=U("Your code is on the way. To log in, enter the code we sent you. It may take a minute to arrive."),b=U("It may take a minute to arrive."),v=r.computed(()=>{var C,x,I,A;return((C=l.value)==null?void 0:C.DeliveryMedium)==="EMAIL"?`${m} ${(x=l.value)==null?void 0:x.Destination}. ${b}`:((I=l.value)==null?void 0:I.DeliveryMedium)==="SMS"?`${g} ${(A=l.value)==null?void 0:A.Destination}. ${b}`:U(`${y}`)}),w=C=>{const{name:x,value:I}=C.target;c({name:x,value:I})},_=C=>{o!=null&&o.onConfirmSignUpSubmit?t("confirmSignUpSubmit",C):k(C)},k=C=>{s(Be(C))},S=()=>{o!=null&&o.onLostCodeClicked?t("lostCodeClicked"):d()};return(C,x)=>{const I=Je,A=ul,$=ze,M=Ve,D=we,V=De,G=he,pe=Me;return r.renderSlot(C.$slots,"confirmSignUpSlotI",r.normalizeProps(r.guardReactiveProps(C.$attrs)),()=>[r.createVNode(G,r.normalizeProps(r.guardReactiveProps(C.$attrs)),{default:r.withCtx(()=>[r.createVNode(pe,{onInput:w,onSubmit:r.withModifiers(_,["prevent"])},{default:r.withCtx(()=>[r.createVNode(G,{class:"amplify-flex amplify-authenticator__column"},{default:r.withCtx(()=>[r.renderSlot(C.$slots,"header",{},()=>[r.createVNode(I,{class:"amplify-heading amplify-authenticator__heading",level:3},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(p)),1)]),_:1})]),r.createVNode(A,{class:"amplify-authenticator__subtitle"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(v)),1)]),_:1}),r.createVNode($,{class:"amplify-flex amplify-authenticator__column",disabled:r.unref(a)},{default:r.withCtx(()=>[r.createVNode(Fe,{route:"confirmSignUp"})]),_:1},8,["disabled"]),r.createVNode(V,{class:"amplify-flex amplify-authenticator__column"},{default:r.withCtx(()=>[r.unref(i)?(r.openBlock(),r.createBlock(M,{key:0},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(U)(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(S,["prevent"])},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(u)),1)]),_:1},8,["onClick"]),r.renderSlot(C.$slots,"footer",{onConfirmSignUpSubmit:_,onLostCodeClicked:S})]),_:3})]),_:3})]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Rr=r.defineComponent({name:"confirm-sign-in",emits:["confirmSignInSubmit","backToSignInClicked"],setup(e,{emit:t}){const o=r.useAttrs(),{state:n,send:a}=Ie(),l=Ee(xe)(),s=r.computed(()=>ke(n.value)),c=s.value.context.challengeName;let d="SMS";c===je.SOFTWARE_TOKEN_MFA&&(d="TOTP");const p=`Confirm ${d} Code`,u=r.computed(()=>U("Back to Sign In")),f=r.computed(()=>U("Confirm")),m=v=>{const{name:w,value:_}=v.target;a({type:"CHANGE",data:{name:w,value:_}})},g=v=>{o!=null&&o.onConfirmSignInSubmit?t("confirmSignInSubmit",v):y(v)},y=v=>{l.submitForm(Be(v))},b=()=>{o!=null&&o.onBackToSignInClicked?t("backToSignInClicked"):a({type:"SIGN_IN"})};return(v,w)=>{const _=Je,k=he,S=Ve,C=we,x=De,I=ze,A=Me;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(A,{"data-amplify-authenticator-confirmsignin":"",onInput:m,onSubmit:r.withModifiers(g,["prevent"])},{default:r.withCtx(()=>[r.createVNode(I,{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(x,{class:"amplify-flex amplify-authenticator__column"},{default:r.withCtx(()=>{var $,M;return[(M=($=r.unref(s))==null?void 0:$.context)!=null&&M.remoteError?(r.openBlock(),r.createBlock(S,{key:0},{default:r.withCtx(()=>{var D,V;return[r.createTextVNode(r.toDisplayString(r.unref(U)((V=(D=r.unref(s))==null?void 0:D.context)==null?void 0:V.remoteError)),1)]}),_:1})):r.createCommentVNode("",!0),r.createVNode(C,{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(C,{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(u)),1)]),_:1},8,["onClick"]),r.renderSlot(v.$slots,"footer",{onBackToSignInClicked:b,onConfirmSignInSubmit:g})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}});var eo={},mS=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},yl={},Ce={};let Br;const uS=[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];Ce.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};Ce.getSymbolTotalCodewords=function(t){return uS[t]};Ce.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};Ce.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Br=t};Ce.isKanjiModeEnabled=function(){return typeof Br!="undefined"};Ce.toSJIS=function(t){return Br(t)};var on={};(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}}})(on);function gl(){this.buffer=[],this.length=0}gl.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 yS=gl;function to(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)}to.prototype.set=function(e,t,o,n){const a=e*this.size+t;this.data[a]=o,n&&(this.reservedBit[a]=!0)};to.prototype.get=function(e,t){return this.data[e*this.size+t]};to.prototype.xor=function(e,t,o){this.data[e*this.size+t]^=o};to.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var gS=to,bl={};(function(e){const t=Ce.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}})(bl);var hl={};const bS=Ce.getSymbolSize,Qa=7;hl.getPositions=function(t){const o=bS(t);return[[0,0],[o-Qa,0],[0,o-Qa]]};var vl={};(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 u=0;u<i;u++){s=c=0,d=p=null;for(let f=0;f<i;f++){let m=a.get(u,f);m===d?s++:(s>=5&&(l+=t.N1+(s-5)),d=m,s=1),m=a.get(f,u),m===p?c++:(c>=5&&(l+=t.N1+(c-5)),p=m,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}})(vl);var nn={};const Ye=on,vo=[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],wo=[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];nn.getBlocksCount=function(t,o){switch(o){case Ye.L:return vo[(t-1)*4+0];case Ye.M:return vo[(t-1)*4+1];case Ye.Q:return vo[(t-1)*4+2];case Ye.H:return vo[(t-1)*4+3];default:return}};nn.getTotalCodewordsCount=function(t,o){switch(o){case Ye.L:return wo[(t-1)*4+0];case Ye.M:return wo[(t-1)*4+1];case Ye.Q:return wo[(t-1)*4+2];case Ye.H:return wo[(t-1)*4+3];default:return}};var wl={},rn={};const Dt=new Uint8Array(512),Ro=new Uint8Array(256);(function(){let t=1;for(let o=0;o<255;o++)Dt[o]=t,Ro[t]=o,t<<=1,t&256&&(t^=285);for(let o=255;o<512;o++)Dt[o]=Dt[o-255]})();rn.log=function(t){if(t<1)throw new Error("log("+t+")");return Ro[t]};rn.exp=function(t){return Dt[t]};rn.mul=function(t,o){return t===0||o===0?0:Dt[Ro[t]+Ro[o]]};(function(e){const t=rn;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}})(wl);const _l=wl;function Vr(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}Vr.prototype.initialize=function(t){this.degree=t,this.genPoly=_l.generateECPolynomial(this.degree)};Vr.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=_l.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 hS=Vr,kl={},Ze={},Mr={};Mr.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var Le={};const Sl="[0-9]+",vS="[A-Z $%*+\\-./:]+";let qt="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";qt=qt.replace(/u/g,"\\u");const wS="(?:(?![A-Z0-9 $%*+\\-./:]|"+qt+`)(?:.|[\r
|
|
32
|
+
]))+`;Le.KANJI=new RegExp(qt,"g");Le.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");Le.BYTE=new RegExp(wS,"g");Le.NUMERIC=new RegExp(Sl,"g");Le.ALPHANUMERIC=new RegExp(vS,"g");const _S=new RegExp("^"+qt+"$"),kS=new RegExp("^"+Sl+"$"),SS=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Le.testKanji=function(t){return _S.test(t)};Le.testNumeric=function(t){return kS.test(t)};Le.testAlphanumeric=function(t){return SS.test(t)};(function(e){const t=Mr,o=Le;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}}})(Ze);(function(e){const t=Ce,o=nn,n=on,a=Ze,i=Mr,l=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,s=t.getBCHDigit(l);function c(f,m,g){for(let y=1;y<=40;y++)if(m<=e.getCapacity(y,g,f))return y}function d(f,m){return a.getCharCountIndicator(f,m)+4}function p(f,m){let g=0;return f.forEach(function(y){g+=d(y.mode,m)+y.getBitsLength()}),g}function u(f,m){for(let g=1;g<=40;g++)if(p(f,g)<=e.getCapacity(g,m,a.MIXED))return g}e.from=function(m,g){return i.isValid(m)?parseInt(m,10):g},e.getCapacity=function(m,g,y){if(!i.isValid(m))throw new Error("Invalid QR Code version");typeof y=="undefined"&&(y=a.BYTE);const b=t.getSymbolTotalCodewords(m),v=o.getTotalCodewordsCount(m,g),w=(b-v)*8;if(y===a.MIXED)return w;const _=w-d(y,m);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(m,g){let y;const b=n.from(g,n.M);if(Array.isArray(m)){if(m.length>1)return u(m,b);if(m.length===0)return 1;y=m[0]}else y=m;return c(y.mode,y.getLength(),b)},e.getEncodedBits=function(m){if(!i.isValid(m)||m<7)throw new Error("Invalid QR Code version");let g=m<<12;for(;t.getBCHDigit(g)-s>=0;)g^=l<<t.getBCHDigit(g)-s;return m<<12|g}})(kl);var xl={};const Ln=Ce,Cl=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,xS=1<<14|1<<12|1<<10|1<<4|1<<1,ei=Ln.getBCHDigit(Cl);xl.getEncodedBits=function(t,o){const n=t.bit<<3|o;let a=n<<10;for(;Ln.getBCHDigit(a)-ei>=0;)a^=Cl<<Ln.getBCHDigit(a)-ei;return(n<<10|a)^xS};var Al={};const CS=Ze;function mt(e){this.mode=CS.NUMERIC,this.data=e.toString()}mt.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};mt.prototype.getLength=function(){return this.data.length};mt.prototype.getBitsLength=function(){return mt.getBitsLength(this.data.length)};mt.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 AS=mt;const ES=Ze,gn=["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 ut(e){this.mode=ES.ALPHANUMERIC,this.data=e}ut.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};ut.prototype.getLength=function(){return this.data.length};ut.prototype.getBitsLength=function(){return ut.getBitsLength(this.data.length)};ut.prototype.write=function(t){let o;for(o=0;o+2<=this.data.length;o+=2){let n=gn.indexOf(this.data[o])*45;n+=gn.indexOf(this.data[o+1]),t.put(n,11)}this.data.length%2&&t.put(gn.indexOf(this.data[o]),6)};var IS=ut,TS=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 $S=TS,PS=Ze;function yt(e){this.mode=PS.BYTE,this.data=new Uint8Array($S(e))}yt.getBitsLength=function(t){return t*8};yt.prototype.getLength=function(){return this.data.length};yt.prototype.getBitsLength=function(){return yt.getBitsLength(this.data.length)};yt.prototype.write=function(e){for(let t=0,o=this.data.length;t<o;t++)e.put(this.data[t],8)};var NS=yt;const OS=Ze,zS=Ce;function gt(e){this.mode=OS.KANJI,this.data=e}gt.getBitsLength=function(t){return t*13};gt.prototype.getLength=function(){return this.data.length};gt.prototype.getBitsLength=function(){return gt.getBitsLength(this.data.length)};gt.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let o=zS.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=gt,El={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,u,f,m,g,y,b;!s.empty();){c=s.pop(),d=c.value,u=c.cost,f=o[d]||{};for(p in f)f.hasOwnProperty(p)&&(m=f[p],g=u+m,y=l[p],b=typeof l[p]=="undefined",(b||y>g)&&(l[p]=g,s.push(p,g),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})(El);(function(e){const t=Ze,o=AS,n=IS,a=NS,i=US,l=Le,s=Ce,c=El.exports;function d(v){return unescape(encodeURIComponent(v)).length}function p(v,w,_){const k=[];let S;for(;(S=v.exec(_))!==null;)k.push({data:S[0],index:S.index,mode:w,length:S[0].length});return k}function u(v){const w=p(l.NUMERIC,t.NUMERIC,v),_=p(l.ALPHANUMERIC,t.ALPHANUMERIC,v);let k,S;return s.isKanjiModeEnabled()?(k=p(l.BYTE,t.BYTE,v),S=p(l.KANJI,t.KANJI,v)):(k=p(l.BYTE_KANJI,t.BYTE,v),S=[]),w.concat(_,k,S).sort(function(x,I){return x.index-I.index}).map(function(x){return{data:x.data,mode:x.mode,length:x.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 m(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 g(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 S=["start"];for(let C=0;C<v.length;C++){const x=v[C],I=[];for(let A=0;A<x.length;A++){const $=x[A],M=""+C+A;I.push(M),_[M]={node:$,lastCount:0},k[M]={};for(let D=0;D<S.length;D++){const V=S[D];_[V]&&_[V].node.mode===$.mode?(k[V][M]=f(_[V].lastCount+$.length,$.mode)-f(_[V].lastCount,$.mode),_[V].lastCount+=$.length):(_[V]&&(_[V].lastCount=$.length),k[V][M]=f($.length,$.mode)+4+t.getCharCountIndicator($.mode,w))}}S=I}for(let C=0;C<S.length;C++)k[S[C]].end=0;return{map:k,table:_}}function b(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(b(k,null)):k.data&&_.push(b(k.data,k.mode)),_},[])},e.fromString=function(w,_){const k=u(w,s.isKanjiModeEnabled()),S=g(k),C=y(S,_),x=c.find_path(C.map,"start","end"),I=[];for(let A=1;A<x.length-1;A++)I.push(C.table[x[A]].node);return e.fromArray(m(I))},e.rawSplit=function(w){return e.fromArray(u(w,s.isKanjiModeEnabled()))}})(Al);const an=Ce,bn=on,RS=yS,BS=gS,VS=bl,MS=hl,jn=vl,Gn=nn,DS=hS,Bo=kl,FS=xl,LS=Ze,hn=Al;function jS(e,t){const o=e.size,n=MS.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 GS(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 qS(e,t){const o=VS.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 HS(e,t){const o=e.size,n=Bo.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 vn(e,t,o){const n=e.size,a=FS.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 KS(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 WS(e,t,o){const n=new RS;o.forEach(function(c){n.put(c.mode.bit,4),n.put(c.getLength(),LS.getCharCountIndicator(c.mode,e)),c.write(n)});const a=an.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 YS(n,e,t)}function YS(e,t,o){const n=an.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),u=p+1,f=d-p,m=new DS(f);let g=0;const y=new Array(l),b=new Array(l);let v=0;const w=new Uint8Array(e.buffer);for(let x=0;x<l;x++){const I=x<c?p:u;y[x]=w.slice(g,g+I),b[x]=m.encode(y[x]),g+=I,v=Math.max(v,I)}const _=new Uint8Array(n);let k=0,S,C;for(S=0;S<v;S++)for(C=0;C<l;C++)S<y[C].length&&(_[k++]=y[C][S]);for(S=0;S<f;S++)for(C=0;C<l;C++)_[k++]=b[C][S];return _}function JS(e,t,o,n){let a;if(Array.isArray(e))a=hn.fromArray(e);else if(typeof e=="string"){let d=t;if(!d){const p=hn.rawSplit(e);d=Bo.getBestVersionForData(p,o)}a=hn.fromString(e,d||40)}else throw new Error("Invalid data");const i=Bo.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(`
|
|
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=
|
|
38
|
-
`;return typeof n=="function"&&n(null,f),f};const ZS=pS,qn=fl,El=Cl,XS=Al;function Dr(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=Dr.bind(null,El.render);Yt.toDataURL=Dr.bind(null,El.renderToDataURL);Yt.toString=Dr.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=Ae(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",M=(N=d==null?void 0:d.totpUsername)!=null?N:C.username,F=encodeURI(`otpauth://totp/${R}:${M}?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(De(S))},k=()=>{a!=null&&a.onBackToSignInClicked?t("backToSignInClicked"):l({type:"SIGN_IN"})};return(S,C)=>{const $=Ye,N=ge,R=Oe,M=we,F=Be,ce=ze,K=Re;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(M,{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(M,{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=Ae(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(De(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=Oe,x=we,A=Be,S=ze,C=Re;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=Ae(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(De(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,_=Oe,k=we,x=Be,A=ge,S=Re;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=Ae(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(De(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=Oe,x=we,A=Be,S=ze,C=Re;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,M;return[r.createTextVNode(r.toDisplayString(r.unref(O)((M=(R=r.unref(s))==null?void 0:R.context)==null?void 0:M.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=Ae(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(De(v))},g=()=>{a!=null&&a.onSkipClicked?t("skipClicked"):l("SKIP")};return(v,w)=>{const _=Ye,k=Zo,x=Xo,A=pl,S=ge,C=Oe,$=we,N=Be,R=ze,M=Re;return r.renderSlot(v.$slots,"verifyUserSlotI",{},()=>[r.createVNode(S,null,{default:r.withCtx(()=>[r.createVNode(M,{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=Ae(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(De(y))},b=()=>{a!=null&&a.onSkipClicked?t("skipClicked"):l({type:"SKIP"})};return(y,g)=>{const v=Ye,w=ge,_=Oe,k=we,x=Be,A=ze,S=Re;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=_k(),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=Md(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(),M=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):M.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,D,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),(D=r.unref(_))!=null&&D.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:M},{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=Od;exports.useAuthenticator=Se;
|
|
37
|
+
`);const l=WS(t,o,a),s=an.getSymbolSize(t),c=new BS(s);return jS(c,t),GS(c),qS(c,t),vn(c,o,0),t>=7&&HS(c,t),KS(c,l),isNaN(n)&&(n=jn.getBestMask(c,vn.bind(null,c,o))),jn.applyMask(n,c),vn(c,o,n),{modules:c,version:t,errorCorrectionLevel:o,maskPattern:n,segments:a}}yl.create=function(t,o){if(typeof t=="undefined"||t==="")throw new Error("No input text");let n=bn.M,a,i;return typeof o!="undefined"&&(n=bn.from(o.errorCorrectionLevel,bn.M),a=Bo.from(o.version),i=jn.from(o.maskPattern),o.toSJISFunc&&an.setToSJISFunction(o.toSJISFunc)),JS(t,a,n,i)};var Il={},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,u=[i.color.light,i.color.dark];for(let f=0;f<d;f++)for(let m=0;m<d;m++){let g=(f*d+m)*4,y=i.color.light;if(f>=p&&m>=p&&f<d-p&&m<d-p){const b=Math.floor((f-p)/c),v=Math.floor((m-p)/c);y=u[s[b*l+v]?1:0]}n[g++]=y.r,n[g++]=y.g,n[g++]=y.b,n[g]=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),u=d.getContext("2d"),f=u.createImageData(p,p);return t.qrToImageData(f.data,i,c),o(u,d,p),u.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",u=c.rendererOpts||{};return d.toDataURL(p,u.quality)}})(Il);var Tl={};const ZS=Dr;function ti(e,t){const o=e.a/255,n=t+'="'+e.hex+'"';return o<1?n+" "+t+'-opacity="'+o.toFixed(2).slice(1)+'"':n}function wn(e,t,o){let n=e+t;return typeof o!="undefined"&&(n+=" "+o),n}function XS(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?wn("M",c+o,.5+d+o):wn("m",a,0),a=0,i=!1),c+1<t&&e[s+1]||(n+=wn("h",l),l=0)):a++}return n}Tl.render=function(t,o,n){const a=ZS.getOptions(o),i=t.modules.size,l=t.modules.data,s=i+a.margin*2,c=a.color.light.a?"<path "+ti(a.color.light,"fill")+' d="M0 0h'+s+"v"+s+'H0z"/>':"",d="<path "+ti(a.color.dark,"stroke")+' d="'+XS(l,i,a.margin)+'"/>',p='viewBox="0 0 '+s+" "+s+'"',u=a.width?'width="'+a.width+'" height="'+a.width+'" ':"",f='<svg xmlns="http://www.w3.org/2000/svg" '+u+p+' shape-rendering="crispEdges">'+c+d+`</svg>
|
|
38
|
+
`;return typeof n=="function"&&n(null,f),f};const QS=mS,qn=yl,$l=Il,ex=Tl;function Fr(e,t,o,n,a){const i=[].slice.call(arguments,1),l=i.length,s=typeof i[l-1]=="function";if(!s&&!QS())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)}}eo.create=qn.create;eo.toCanvas=Fr.bind(null,$l.render);eo.toDataURL=Fr.bind(null,$l.renderToDataURL);eo.toString=Fr.bind(null,function(e,t,o){return ex.render(e,o)});const tx={key:0},ox=r.createTextVNode(" Setup TOTP "),nx=["src"],rx={"data-amplify-copy-tooltip":""},ax=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),ix=r.defineComponent({name:"setup-totp",emits:["confirmSetupTOTPSubmit","backToSignInClicked"],setup(e,{emit:t}){var S,C;const n=Ee(xe)(),a=r.useAttrs(),{state:i,send:l}=Ie(),{value:{context:s}}=i,c=(C=(S=s==null?void 0:s.config)==null?void 0:S.formFields)==null?void 0:C.setupTOTP,d=c==null?void 0:c.QR,p=r.computed(()=>ke(i.value));let u=r.reactive({qrCodeImageSource:"",isLoading:!0}),f=r.ref(""),m=r.ref(U("COPY"));function g(){navigator.clipboard.writeText(f.value),m.value=U("COPIED")}r.onMounted(async()=>{var A,$;const x=new de.Logger("SetupTOTP-logger"),{user:I}=p.value.context;if(!!I)try{f.value=await de.Auth.setupTOTP(I);const M=(A=d==null?void 0:d.totpIssuer)!=null?A:"AWSCognito",D=($=d==null?void 0:d.totpUsername)!=null?$:I.username,V=encodeURI(`otpauth://totp/${M}:${D}?secret=${f.value}&issuer=${M}`);u.qrCodeImageSource=await eo.toDataURL(V)}catch(M){x.error(M)}finally{u.isLoading=!1}});const y=r.computed(()=>U("Back to Sign In")),b=r.computed(()=>U("Confirm")),v=x=>{const{name:I,value:A}=x.target;l({type:"CHANGE",data:{name:I,value:A}})},w=x=>{a!=null&&a.onConfirmSetupTOTPSubmit?t("confirmSetupTOTPSubmit",x):_(x)},_=x=>{n.submitForm(Be(x))},k=()=>{a!=null&&a.onBackToSignInClicked?t("backToSignInClicked"):l({type:"SIGN_IN"})};return(x,I)=>{const A=Je,$=he,M=Ve,D=we,V=De,G=ze,pe=Me;return r.renderSlot(x.$slots,"confirmSetupTOTPI",r.normalizeProps(r.guardReactiveProps(x.$attrs)),()=>[r.createVNode($,r.normalizeProps(r.guardReactiveProps(x.$attrs)),{default:r.withCtx(()=>[r.createVNode(pe,{"data-amplify-authenticator-setup-totp":"",onInput:v,onSubmit:r.withModifiers(w,["prevent"])},{default:r.withCtx(()=>[r.createVNode(G,{class:"amplify-flex amplify-authenticator__column",disabled:r.unref(p).matches("confirmSignIn.pending")},{default:r.withCtx(()=>[r.unref(u).isLoading?(r.openBlock(),r.createElementBlock("p",tx,"Loading...")):(r.openBlock(),r.createBlock($,{key:1,class:"amplify-flex amplify-authenticator__column"},{default:r.withCtx(()=>[r.renderSlot(x.$slots,"header",{},()=>[r.createVNode(A,{class:"amplify-heading",level:3},{default:r.withCtx(()=>[ox]),_:1})]),r.createVNode($,{class:"amplify-flex amplify-authenticator__column"},{default:r.withCtx(()=>[r.createElementVNode("img",{class:"amplify-image","data-amplify-qrcode":"",src:r.unref(u).qrCodeImageSource,alt:"qr code",width:"228",height:"228"},null,8,nx),r.createVNode($,{class:"amplify-flex","data-amplify-copy":""},{default:r.withCtx(()=>[r.createElementVNode("div",null,r.toDisplayString(r.unref(f)),1),r.createVNode($,{"data-amplify-copy-svg":"",onClick:g},{default:r.withCtx(()=>[r.createElementVNode("div",rx,r.toDisplayString(r.unref(m)),1),ax]),_:1})]),_:1}),r.createVNode(Fe,{route:"setupTOTP"})]),_:1}),r.createVNode(V,{class:"amplify-flex amplify-authenticator__column"},{default:r.withCtx(()=>{var Q;return[(Q=r.unref(p).context)!=null&&Q.remoteError?(r.openBlock(),r.createBlock(M,{key:0},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(U)(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(b)),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(x.$slots,"footer",{onBackToSignInClicked:k,onSetupTOTPSubmit:w})]}),_:3})]),_:3}))]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Lr=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(xe)(),s=r.computed(()=>ke(n.value)),c=r.computed(()=>U("Change Password")),d=r.computed(()=>U("Changing")),p=r.computed(()=>U("Back to Sign In")),u=()=>{o!=null&&o.onHaveAccountClicked?t("haveAccountClicked"):a({type:"SIGN_IN"})},f=b=>{o!=null&&o.onForceNewPasswordSubmit?t("forceNewPasswordSubmit",b):m(b)},m=b=>{l.submitForm(Be(b))},g=b=>{const{name:v,value:w}=b.target;a({type:"CHANGE",data:{name:v,value:w}})};function y(b){const{name:v}=b.target;l.updateBlur({name:v})}return(b,v)=>{const w=Je,_=he,k=Ve,S=we,C=De,x=ze,I=Me;return r.renderSlot(b.$slots,"forceNewPasswordI",r.normalizeProps(r.guardReactiveProps(b.$attrs)),()=>[r.createVNode(_,r.normalizeProps(r.guardReactiveProps(b.$attrs)),{default:r.withCtx(()=>[r.createVNode(I,{"data-amplify-authenticator-forcenewpassword":"",onInput:g,onBlur:y,onSubmit:r.withModifiers(f,["prevent"])},{default:r.withCtx(()=>[r.createVNode(x,{class:"amplify-flex amplify-authenticator__column",disabled:r.unref(s).matches("forceNewPassword.pending")},{default:r.withCtx(()=>[r.renderSlot(b.$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(b.$slots,"force-new-password-form-fields",{},()=>[r.createVNode(Lr)])]),_:3}),r.createVNode(C,{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(U)(r.unref(s).context.remoteError)),1)]),_:1})):r.createCommentVNode("",!0),r.createVNode(S,{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(S,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:r.withModifiers(u,["prevent"])},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(p)),1)]),_:1},8,["onClick"]),r.renderSlot(b.$slots,"footer",{onHaveAccountClicked:u,onForceNewPasswordSubmit:f})]),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Gr=r.defineComponent({name:"reset-password",emits:["resetPasswordSubmit","backToSignInClicked"],setup(e,{emit:t}){const o=r.useAttrs(),n=Ee(xe),{send:a,submitForm:i}=n(),{error:l,isPending:s}=r.toRefs(n()),c=r.computed(()=>U("Back to Sign In")),d=r.computed(()=>U("Reset your password")),p=r.computed(()=>U("Send Code")),u=y=>{o!=null&&o.onResetPasswordSubmit?t("resetPasswordSubmit",y):f(y)},f=y=>{i(Be(y))},m=y=>{const{name:b,value:v}=y.target;a({type:"CHANGE",data:{name:b,value:v}})},g=()=>{o!=null&&o.onBackToSignInClicked?t("backToSignInClicked"):a({type:"SIGN_IN"})};return(y,b)=>{const v=Je,w=ze,_=Ve,k=we,S=De,C=he,x=Me;return r.renderSlot(y.$slots,"resetPasswordSlotI",r.normalizeProps(r.guardReactiveProps(y.$attrs)),()=>[r.createVNode(x,r.mergeProps(y.$attrs,{"data-amplify-authenticator-resetpassword":"",onInput:m,onSubmit:r.withModifiers(u,["prevent"])}),{default:r.withCtx(()=>[r.createVNode(C,{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(S,{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(U)(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(g,["prevent"])},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(c)),1)]),_:1},8,["onClick"]),r.renderSlot(y.$slots,"footer",{onBackToSignInClicked:g,onResetPasswordSubmit:u})]),_:3})]),_:3})]),_:3},16,["onSubmit"])])}}}),qr=r.defineComponent({name:"confirm-reset-password",emits:["confirmResetPasswordSubmit","backToSignInClicked"],setup(e,{emit:t}){const{state:o,send:n}=Ie(),i=Ee(xe)(),l=r.useAttrs(),s=r.computed(()=>ke(o.value)),c=r.computed(()=>U("Resend Code")),d=r.computed(()=>U("Reset your Password")),p=r.computed(()=>U("Submit")),u=b=>{l!=null&&l.onConfirmResetPasswordSubmit?t("confirmResetPasswordSubmit",b):f(b)},f=b=>{i.submitForm(Be(b))},m=()=>{n({type:"RESEND"})},g=b=>{const{name:v,value:w}=b.target;n({type:"CHANGE",data:{name:v,value:w}})};function y(b){const{name:v}=b.target;i.updateBlur({name:v})}return(b,v)=>{const w=Je,_=he,k=Ve,S=we,C=De,x=ze,I=Me;return r.renderSlot(b.$slots,"confirmResetPasswordSlotI",r.normalizeProps(r.guardReactiveProps(b.$attrs)),()=>[r.createVNode(_,r.normalizeProps(r.guardReactiveProps(b.$attrs)),{default:r.withCtx(()=>[r.createVNode(I,{"data-amplify-authenticator-confirmResetpassword":"",onInput:g,onBlurCapture:y,onSubmit:r.withModifiers(u,["prevent"])},{default:r.withCtx(()=>[r.createVNode(x,{class:"amplify-flex amplify-authenticator__column",disabled:r.unref(s).matches("confirmResetPassword.pending")},{default:r.withCtx(()=>[r.renderSlot(b.$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(C,{class:"amplify-flex amplify-authenticator__column"},{default:r.withCtx(()=>{var A,$;return[($=(A=r.unref(s))==null?void 0:A.context)!=null&&$.remoteError?(r.openBlock(),r.createBlock(k,{key:0},{default:r.withCtx(()=>{var M,D;return[r.createTextVNode(r.toDisplayString(r.unref(U)((D=(M=r.unref(s))==null?void 0:M.context)==null?void 0:D.remoteError)),1)]}),_:1})):r.createCommentVNode("",!0),r.createVNode(S,{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(S,{class:"amplify-field-group__control amplify-authenticator__font",variation:"link",fullwidth:!1,size:"small",type:"button",onClick:r.withModifiers(m,["prevent"])},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(c)),1)]),_:1},8,["onClick"]),r.renderSlot(b.$slots,"footer",{onConfirmResetPasswordSubmit:u,onLostYourCodeClicked:m})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Hr=r.defineComponent({name:"verify-user",emits:["verifyUserSubmit","skipClicked"],setup(e,{emit:t}){const n=Ee(xe)(),a=r.useAttrs(),{state:i,send:l}=Ie(),s=r.computed(()=>ke(i.value)),c=s.value.context.unverifiedAttributes,d=r.computed(()=>U("Account recovery requires verified contact information")),p=r.computed(()=>U("Skip")),u=r.computed(()=>U("Verify")),f=r.computed(()=>U("Verify Contact")),m=v=>{const{name:w,value:_}=v.target;l({type:"CHANGE",data:{name:w,value:_}})},g=v=>{a!=null&&a.onVerifyUserSubmit?t("verifyUserSubmit",v):y(v)},y=v=>{n.submitForm(Be(v))},b=()=>{a!=null&&a.onSkipClicked?t("skipClicked"):l("SKIP")};return(v,w)=>{const _=Je,k=en,S=tn,C=ul,x=he,I=Ve,A=we,$=De,M=ze,D=Me;return r.renderSlot(v.$slots,"verifyUserSlotI",{},()=>[r.createVNode(x,null,{default:r.withCtx(()=>[r.createVNode(D,{onInput:m,onSubmit:r.withModifiers(g,["prevent"])},{default:r.withCtx(()=>[r.createVNode(M,{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(x,{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(x,{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),(V,G)=>(r.openBlock(),r.createBlock(k,{class:"amplify-flex amplify-radio","data-amplify-verify-label":"",id:"verify",key:V},{default:r.withCtx(()=>[r.createVNode(S,{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"]),r.createVNode(C,{class:"amplify-flex amplify-radio__button","aria-hidden":"true"}),r.createVNode(C,{class:"amplify-text amplify-radio__label"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(Jn)[G].label),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1}),r.createVNode($,{class:"amplify-flex amplify-authenticator__column"},{default:r.withCtx(()=>{var V,G;return[(G=(V=r.unref(s))==null?void 0:V.context)!=null&&G.remoteError?(r.openBlock(),r.createBlock(I,{key:0},{default:r.withCtx(()=>{var pe;return[r.createTextVNode(r.toDisplayString(r.unref(U)((pe=r.unref(s))==null?void 0:pe.context.remoteError)),1)]}),_:1})):r.createCommentVNode("",!0),r.createVNode(A,{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(u)),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(b,["prevent"])},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(p)),1)]),_:1},8,["onClick"]),r.renderSlot(v.$slots,"footer",{onSkipClicked:b,onVerifyUserSubmit:g})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3})])}}}),Kr=r.defineComponent({name:"confirm-verify-user",emits:["confirmVerifyUserSubmit","skipClicked"],setup(e,{emit:t}){const n=Ee(xe)(),a=r.useAttrs(),{state:i,send:l}=Ie(),s=r.computed(()=>ke(i.value)),c=r.computed(()=>U("Account recovery requires verified contact information")),d=r.computed(()=>U("Skip")),p=r.computed(()=>U("Submit")),u=y=>{const{name:b,value:v}=y.target;l({type:"CHANGE",data:{name:b,value:v}})},f=y=>{a!=null&&a.onConfirmVerifyUserSubmit?t("confirmVerifyUserSubmit",y):m(y)},m=y=>{n.submitForm(Be(y))},g=()=>{a!=null&&a.onSkipClicked?t("skipClicked"):l({type:"SKIP"})};return(y,b)=>{const v=Je,w=he,_=Ve,k=we,S=De,C=ze,x=Me;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(x,{onInput:u,onSubmit:r.withModifiers(f,["prevent"])},{default:r.withCtx(()=>[r.createVNode(C,{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(S,{class:"amplify-flex amplify-authenticator__column"},{default:r.withCtx(()=>{var I,A;return[(A=(I=r.unref(s))==null?void 0:I.context)!=null&&A.remoteError?(r.openBlock(),r.createBlock(_,{key:0},{default:r.withCtx(()=>{var $;return[r.createTextVNode(r.toDisplayString(r.unref(U)(($=r.unref(s))==null?void 0:$.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(g,["prevent"])},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(d)),1)]),_:1},8,["onClick"]),r.renderSlot(y.$slots,"footer",{onSkipClicked:g,onConfirmVerifyUserSubmit:f})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),lx=["data-variation"],sx={"data-amplify-container":""},cx=["data-amplify-router-content"],dx={key:1,"data-amplify-router-content":""},Pl=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:u}=r.toRefs(o),f=gk(),m=Ek(f);let g,y;const{state:b,send:v}=pl(m);Ie(m);const w=r.ref(!1);y=m.subscribe(T=>{T.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:u==null?void 0:u.value}}),w.value=!0)}).unsubscribe,r.onMounted(()=>{g=Ud(m)}),r.onUnmounted(()=>{g&&g(),y&&y()});const _=r.computed(()=>ke(b.value)),k=r.ref(),S=r.ref(),C=r.ref(),x=r.ref(),I=r.ref(),A=r.ref(),$=r.ref(),M=r.ref(),D=r.ref(),V=r.ref(),G=r.computed(()=>U("Create Account")),pe=r.computed(()=>U("Sign In")),Q=T=>{var ve;n!=null&&n.onSignInSubmit?t("signInSubmit",T):(ve=k.value)==null||ve.submit(T)},At=T=>{n!=null&&n.onConfirmSignUpSubmit?t("confirmSignUpSubmit",T):C.value.submit(T)},Et=T=>{n!=null&&n.onResetPasswordSubmit?t("resetPasswordSubmit",T):$.value.submit(T)},me=T=>{n!=null&&n.onConfirmResetPasswordSubmit?t("confirmResetPasswordSubmit",T):M.value.submit(T)},Ne=T=>{n!=null&&n.onConfirmSignInSubmit?t("confirmSignInSubmit",T):x.value.submit(T)},oo=T=>{n!=null&&n.onForceNewPasswordSubmit?t("mSetupTOTPSubmit",T):I.value.submit(T)},ln=T=>{n!=null&&n.onForceNewPasswordSubmit?t("forceNewPasswordSubmit",T):A.value.submit(T)},sn=T=>{n!=null&&n.onSignUpSubmit?t("signUpSubmit",T):S.value.submit()},no=T=>{n!=null&&n.onVerifyUserSubmit?t("verifyUserSubmit",T):D.value.submit(T)},cn=T=>{n!=null&&n.onConfirmVerifyUserSubmit?t("confirmVerifyUserSubmit",T):V.value.submit(T)},ro=r.ref(null),ao=r.ref();r.watch(()=>b.value.context,()=>{const{user:T,signOut:ve}=pi({send:v,state:b.value});ro.value=T,ao.value=ve});const It=r.computed(()=>{var T,ve;return((T=_.value)==null?void 0:T.matches("signIn"))||((ve=_.value)==null?void 0:ve.matches("signUp"))}),dn=r.computed(()=>{var T;return!(b.value.matches("authenticated")||b.value.matches("idle")||b.value.matches("setup")||b.value.matches("signOut")||((T=_.value)==null?void 0:T.matches("autoSignIn")))});return(T,ve)=>{var P,O,N,R,B,L,F,X,ae,_e,ot;const io=lS,h=dS;return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(dn)?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0},T.$attrs,{"data-amplify-authenticator":"","data-variation":r.unref(l)}),[r.createElementVNode("div",sx,[r.renderSlot(T.$slots,"header"),r.createElementVNode("div",{"data-amplify-router":"","data-amplify-router-content":r.unref(It)?void 0:""},[r.unref(It)&&!r.unref(p)?(r.openBlock(),r.createBlock(h,{key:0},{default:r.withCtx(()=>{var oe,ne;return[r.createVNode(io,{active:(oe=r.unref(_))==null?void 0:oe.matches("signIn"),id:44472,label:r.unref(pe),onClick:ve[0]||(ve[0]=nt=>r.unref(v)("SIGN_IN"))},null,8,["active","label"]),r.createVNode(io,{active:(ne=r.unref(_))==null?void 0:ne.matches("signUp"),id:44471,label:r.unref(G),onClick:ve[1]||(ve[1]=nt=>r.unref(v)("SIGN_UP"))},null,8,["active","label"])]}),_:1})):r.createCommentVNode("",!0),r.unref(It)?(r.openBlock(),r.createElementBlock("div",dx,[(P=r.unref(_))!=null&&P.matches("signIn")?(r.openBlock(),r.createBlock(Nr,{key:0,onSignInSubmit:Q,ref_key:"signInComponent",ref:k},{signInSlotI:r.withCtx(()=>[r.renderSlot(T.$slots,"sign-in")]),form:r.withCtx(({info:oe,onSignInSubmit:ne,onForgotPasswordClicked:nt,onInput:Tt})=>[r.renderSlot(T.$slots,"sign-in-form",{info:oe,onInput:Tt,onSignInSubmit:ne,onForgotPasswordClicked:nt})]),header:r.withCtx(()=>[r.renderSlot(T.$slots,"sign-in-header")]),footer:r.withCtx(()=>[r.renderSlot(T.$slots,"sign-in-footer")]),_:3},512)):r.createCommentVNode("",!0),((O=r.unref(_))==null?void 0:O.matches("signUp"))&&!r.unref(p)?(r.openBlock(),r.createBlock(zr,{key:1,onSignUpSubmit:sn,ref_key:"signUpComponent",ref:S},{signUpSlotI:r.withCtx(()=>[r.renderSlot(T.$slots,"sign-up")]),header:r.withCtx(()=>[r.renderSlot(T.$slots,"sign-up-header")]),"signup-fields":r.withCtx(({info:oe})=>[r.renderSlot(T.$slots,"sign-up-fields",{info:oe})]),footer:r.withCtx(()=>[r.renderSlot(T.$slots,"sign-up-footer")]),_:3},512)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),(N=r.unref(_))!=null&&N.matches("confirmSignUp")?(r.openBlock(),r.createBlock(Ur,{key:2,onConfirmSignUpSubmit:At,ref_key:"confirmSignUpComponent",ref:C},{confirmSignUpSlotI:r.withCtx(()=>[r.renderSlot(T.$slots,"confirm-sign-up")]),header:r.withCtx(()=>[r.renderSlot(T.$slots,"confirm-sign-up-header")]),footer:r.withCtx(({onConfirmSignUpSubmit:oe,onLostCodeClicked:ne})=>[r.renderSlot(T.$slots,"confirm-sign-up-footer",{onConfirmSignUpSubmit:oe,onLostCodeClicked:ne})]),_:3},512)):r.createCommentVNode("",!0),(R=r.unref(_))!=null&&R.matches("resetPassword")?(r.openBlock(),r.createBlock(Gr,{key:3,onResetPasswordSubmit:Et,ref_key:"resetPasswordComponent",ref:$},{resetPasswordSlotI:r.withCtx(()=>[r.renderSlot(T.$slots,"reset-password")]),header:r.withCtx(()=>[r.renderSlot(T.$slots,"reset-password-header")]),footer:r.withCtx(({onResetPasswordSubmit:oe,onBackToSignInClicked:ne})=>[r.renderSlot(T.$slots,"reset-password-footer",{onResetPasswordSubmit:oe,onBackToSignInClicked:ne})]),_:3},512)):r.createCommentVNode("",!0),(B=r.unref(_))!=null&&B.matches("confirmResetPassword")?(r.openBlock(),r.createBlock(qr,{key:4,onConfirmResetPasswordSubmit:me,ref_key:"confirmResetPasswordComponent",ref:M},{confirmResetPasswordSlotI:r.withCtx(()=>[r.renderSlot(T.$slots,"confirm-reset-password")]),header:r.withCtx(()=>[r.renderSlot(T.$slots,"confirm-reset-password-header")]),footer:r.withCtx(({onConfirmResetPasswordSubmit:oe,onLostYourCodeClicked:ne})=>[r.renderSlot(T.$slots,"confirm-reset-password-footer",{onConfirmResetPasswordSubmit:oe,onLostYourCodeClicked:ne})]),_:3},512)):r.createCommentVNode("",!0),(L=r.unref(_))!=null&&L.matches("confirmSignIn")?(r.openBlock(),r.createBlock(Rr,{key:5,onConfirmSignInSubmit:Ne,ref_key:"confirmSignInComponent",ref:x},{confirmSignInSlotI:r.withCtx(()=>[r.renderSlot(T.$slots,"confirm-sign-in")]),header:r.withCtx(()=>[r.renderSlot(T.$slots,"confirm-sign-in-header")]),footer:r.withCtx(({onConfirmSignInSubmit:oe,onBackToSignInClicked:ne})=>[r.renderSlot(T.$slots,"confirm-sign-in-footer",{onConfirmSignInSubmit:oe,onBackToSignInClicked:ne})]),_:3},512)):r.createCommentVNode("",!0),(F=r.unref(_))!=null&&F.matches("setupTOTP")?(r.openBlock(),r.createBlock(ix,{key:6,onConfirmSetupTotpSubmit:oo,ref_key:"confirmSetupTOTPComponent",ref:I},{confirmSetupTOTPI:r.withCtx(()=>[r.renderSlot(T.$slots,"setup-totp")]),header:r.withCtx(()=>[r.renderSlot(T.$slots,"setup-totp-header")]),footer:r.withCtx(({onSetupTOTPSubmit:oe,onBackToSignInClicked:ne})=>[r.renderSlot(T.$slots,"setup-totp-footer",{onSetupTOTPSubmit:oe,onBackToSignInClicked:ne})]),_:3},512)):r.createCommentVNode("",!0),(X=r.unref(_))!=null&&X.matches("forceNewPassword")?(r.openBlock(),r.createBlock(jr,{key:7,onForceNewPasswordSubmit:ln,ref_key:"forceNewPasswordComponent",ref:A},{forceNewPasswordI:r.withCtx(()=>[r.renderSlot(T.$slots,"force-new-password")]),header:r.withCtx(()=>[r.renderSlot(T.$slots,"force-new-password-header")]),"force-new-password-form-fields":r.withCtx(()=>[r.renderSlot(T.$slots,"force-new-password-form-fields")]),footer:r.withCtx(({onHaveAccountClicked:oe,onForceNewPasswordSubmit:ne})=>[r.renderSlot(T.$slots,"force-new-password-footer",{onForceNewPasswordSubmit:ne,onBackToSignInClicked:oe})]),_:3},512)):r.createCommentVNode("",!0),(ae=r.unref(_))!=null&&ae.matches("verifyUser")?(r.openBlock(),r.createBlock(Hr,{key:8,onVerifyUserSubmit:no,ref_key:"verifyUserComponent",ref:D},{verifyUserSlotI:r.withCtx(()=>[r.renderSlot(T.$slots,"verify-user")]),header:r.withCtx(()=>[r.renderSlot(T.$slots,"verify-user-header")]),footer:r.withCtx(({onVerifyUserSubmit:oe,onSkipClicked:ne})=>[r.renderSlot(T.$slots,"verify-user-footer",{onVerifyUserSubmit:oe,onSkipClicked:ne})]),_:3},512)):r.createCommentVNode("",!0),(_e=r.unref(_))!=null&&_e.matches("confirmVerifyUser")?(r.openBlock(),r.createBlock(Kr,{key:9,onConfirmVerifyUserSubmit:cn,ref_key:"confirmVerifyUserComponent",ref:V},{confirmVerifyUserSlotI:r.withCtx(()=>[r.renderSlot(T.$slots,"confirm-verify-user")]),header:r.withCtx(()=>[r.renderSlot(T.$slots,"confirm-verify-user-header")]),footer:r.withCtx(({onConfirmVerifyUserSubmit:oe,onSkipClicked:ne})=>[r.renderSlot(T.$slots,"confirm-verify-user-footer",{onConfirmVerifyUserSubmit:oe,onSkipClicked:ne})]),_:3},512)):r.createCommentVNode("",!0)],8,cx),r.renderSlot(T.$slots,"footer")])],16,lx)):r.createCommentVNode("",!0),(ot=r.unref(b))!=null&&ot.matches("authenticated")?r.renderSlot(T.$slots,"default",{key:1,user:ro.value,state:r.unref(b),signOut:ao.value,send:r.unref(v)}):r.createCommentVNode("",!0)],64)}}}),Nl=r.defineComponent({props:{info:{type:Object}},setup(e){return()=>e.info}}),Ol=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 u=en,f=tn,m=he;return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(u,{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(m,{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)}}}),px={class:"amplify-flex amplify-field amplify-checkboxfield"},fx={class:"amplify-flex amplify-checkbox"},mx={class:"amplify-visually-hidden"},ux=["data-error","data-checked"],yx=["data-checked"],gx=r.createElementVNode("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},null,-1),bx=[gx],hx=r.createElementVNode("span",{class:"amplify-text amplify-checkbox__label"}," I agree with the Terms & Conditions",-1),vx={key:0,class:"amplify-text amplify-field__error-message"},zl=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",px,[r.createElementVNode("label",fx,[r.createElementVNode("span",mx,[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},bx,10,yx))],10,ux),hx]),o.value?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("p",vx,r.toDisplayString(r.unref(n)),1))]))}});var wx={install:e=>{e.component("SignIn",Nr),e.component("SignUp",zr),e.component("FederatedSignIn",Qo),e.component("Authenticator",Pl),e.component("RenderInfo",Nl),e.component("PasswordControl",Pr),e.component("ForceNewPassword",jr),e.component("ResetPassword",Gr),e.component("ConfirmResetPassword",qr),e.component("ConfirmSignUp",Ur),e.component("ConfirmSignIn",Rr),e.component("VerifyUser",Hr),e.component("ConfirmVerifyUser",Kr),e.component("AmplifyTextField",Ol),e.component("AmplifyCheckBox",zl),e.component("AmplifyButton",we),e.component("BaseFormField",ml),e.component("BaseFormFields",Fe),e.component("AuthenticatorSignUpFormFields",Or),e.component("AuthenticatorForceNewPasswordFormFields",Lr)}};exports.AmplifyButton=we;exports.AmplifyCheckBox=zl;exports.AmplifyTextField=Ol;exports.Authenticator=Pl;exports.AuthenticatorForceNewPasswordFormFields=Lr;exports.AuthenticatorSignUpFormFields=Or;exports.ConfirmResetPassword=qr;exports.ConfirmSignIn=Rr;exports.ConfirmSignUp=Ur;exports.ConfirmVerifyUser=Kr;exports.FederatedSignIn=Qo;exports.ForceNewPassword=jr;exports.PasswordControl=Pr;exports.RenderInfo=Nl;exports.ResetPassword=Gr;exports.SignIn=Nr;exports.SignUp=zr;exports.VerifyUser=Hr;exports.default=wx;exports.translations=Pd;exports.useAuthenticator=xe;
|