@aws-amplify/ui-vue 2.4.14 → 2.4.15
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 +86 -85
- 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)])}}),Dl={key:0,class:"amplify-flex amplify-alert amplify-alert--error amplify-authenticator__base","data-variation":"error",role:"alert"},Ml={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",Dl,[r.createElementVNode("div",Ml,[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 De=ps,fs=ut,ms=De,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,Ds=ri.hasOwnProperty,Ms=ri.propertyIsEnumerable,Fs=Xr(function(){return arguments}())?Xr:function(e){return Vs(e)&&Ds.call(e,"callee")&&!Ms.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,Dc=Vc(Object.keys,Object),Mc=Dc,Fc=Bo,jc=Mc,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","Back to Sign In":"Volver a inicio de sesi\xF3n","Change Password":"Cambiar contrase\xF1a",Changing:"Cambiando",Code:"C\xF3digo",Confirm:"Confirmar","Confirm a Code":"Confirmar un c\xF3digo","Confirm Password":"Confirmar contrase\xF1a","Confirm Sign In":"Confirmar inicio de sesi\xF3n","Confirm Sign Up":"Confirmar registro","Confirm TOTP Code":"Confirmar c\xF3digo TOTP","Confirmation Code":"C\xF3digo de confirmaci\xF3n",Confirming:"Confirmando","Create a new account":"Crear una cuenta nueva","Creating Account":"Creando cuenta",Email:"Email","Forgot Password":"Olvid\xE9 mi contrase\xF1a","Incorrect username or password":"Nombre de usuario o contrase\xF1a incorrecta","Invalid password format":"Formato de contrase\xF1a inv\xE1lido","Invalid phone number format":"Formato de n\xFAmero de tel\xE9fono inv\xE1lido","Forgot your password?":"\xBFOlvid\xF3 su contrase\xF1a?","Hide password":"Ocultar contrase\xF1a","Loading...":"Cargando...","New Password":"Nueva contrase\xF1a",or:"o",Password:"Contrase\xF1a","Phone Number":"N\xFAmero de tel\xE9fono","Resend a Code":"Reenviar un c\xF3digo","Reset your password":"Restablecer su contrase\xF1a","Reset your Password":"Restablecer su Contrase\xF1a","Resend Code":"Reenviar c\xF3digo","Send Code":"Enviar c\xF3digo",Sending:"Enviando","Setup TOTP":"Configurar TOTP","Show password":"Mostrar contrase\xF1a","Sign in":"Iniciar sesi\xF3n","Sign In":"Iniciar Sesi\xF3n","Sign In with Amazon":"Iniciar Sesi\xF3n con Amazon","Sign In with Apple":"Iniciar Sesi\xF3n con Apple","Sign In with Facebook":"Iniciar Sesi\xF3n con Facebook","Sign In with Google":"Iniciar Sesi\xF3n con Google","Sign in to your account":"Iniciar sesi\xF3n en tu cuenta","Sign Out":"Cerrar sesi\xF3n","Sign Up":"Crear cuenta","Signing in":"Iniciando sesi\xF3n",Skip:"Omitir",Submit:"Enviar","User already exists":"El usuario ya existe","User does not exist":"El usuario no existe",Username:"Nombre de usuario","Username cannot be empty":"El nombre de usuario no puede estar vac\xEDo",Verify:"Verificar","Verify Contact":"Verificar contacto"},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={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"},bd=z({},od),hd=z({},nd),vd=z({},rd),wd=z({},ad),_d=z({},id),kd=z({},ld),Sd=z({},sd),xd=z({},cd),Cd=z({},dd),Ad=z({},pd),Ed=z({},fd),Id=z({},md),$d=z({},ud),Td=z({},yd),Pd=z({},gd);z({},Pd);function O(e){return se.I18n.get(e)}function Nd(e){return se.I18n.get(e)!==e}var Ud={de:bd,en:hd,es:vd,fr:wd,id:$d,it:_d,ja:kd,kr:Sd,nl:xd,pl:Cd,pt:Ad,zh:Ed,sv:Id,tr:Td},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}},zd=["^","$","*",".","[","]","{","}","(",")","?",'"',"!","@","#","%","&","/","\\",",",">","<","'",":",";","|","_","~","`","=","+","-"," "],Me=function(e){var t=new FormData(e.target);return Object.fromEntries(t)},ta=function(e){return Xc.includes(e)},Od=function(e){return e?(t=e,Array.isArray(t)?e:[e]):null;var t},Rd=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")}},Bd=function(e,t){return t===void 0&&(t=Rd),se.Hub.listen("auth",function(o){t(o,e)})},Vd=function(e){return zd.some(function(t){return e.includes(t)})};function Dd(){this.__data__=[],this.size=0}var Md=Dd;function Fd(e,t){return e===t||e!==e&&t!==t}var Lt=Fd,jd=Lt;function Ld(e,t){for(var o=e.length;o--;)if(jd(e[o][0],t))return o;return-1}var Do=Ld,Gd=Do,qd=Array.prototype,Hd=qd.splice;function Kd(e){var t=this.__data__,o=Gd(t,e);if(o<0)return!1;var n=t.length-1;return o==n?t.pop():Hd.call(t,o,1),--this.size,!0}var Wd=Kd,Yd=Do;function Jd(e){var t=this.__data__,o=Yd(t,e);return o<0?void 0:t[o][1]}var Zd=Jd,Xd=Do;function Qd(e){return Xd(this.__data__,e)>-1}var ep=Qd,tp=Do;function op(e,t){var o=this.__data__,n=tp(o,e);return n<0?(++this.size,o.push([e,t])):o[n][1]=t,this}var np=op,rp=Md,ap=Wd,ip=Zd,lp=ep,sp=np;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=rp;yt.prototype.delete=ap;yt.prototype.get=ip;yt.prototype.has=lp;yt.prototype.set=sp;var Mo=yt,cp=Mo;function dp(){this.__data__=new cp,this.size=0}var pp=dp;function fp(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}var mp=fp;function up(e){return this.__data__.get(e)}var yp=up;function gp(e){return this.__data__.has(e)}var bp=gp,hp=Ve,vp=hp["__core-js_shared__"],wp=vp,cn=wp,oa=function(){var e=/[^.]+$/.exec(cn&&cn.keys&&cn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function _p(e){return!!oa&&oa in e}var kp=_p,Sp=Function.prototype,xp=Sp.toString;function Cp(e){if(e!=null){try{return xp.call(e)}catch{}try{return e+""}catch{}}return""}var di=Cp,Ap=Hn,Ep=kp,Ip=De,$p=di,Tp=/[\\^$.*+?()[\]{}|]/g,Pp=/^\[object .+?Constructor\]$/,Np=Function.prototype,Up=Object.prototype,zp=Np.toString,Op=Up.hasOwnProperty,Rp=RegExp("^"+zp.call(Op).replace(Tp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Bp(e){if(!Ip(e)||Ep(e))return!1;var t=Ap(e)?Rp:Pp;return t.test($p(e))}var Vp=Bp;function Dp(e,t){return e==null?void 0:e[t]}var Mp=Dp,Fp=Vp,jp=Mp;function Lp(e,t){var o=jp(e,t);return Fp(o)?o:void 0}var et=Lp,Gp=et,qp=Ve,Hp=Gp(qp,"Map"),Zn=Hp,Kp=et,Wp=Kp(Object,"create"),Fo=Wp,na=Fo;function Yp(){this.__data__=na?na(null):{},this.size=0}var Jp=Yp;function Zp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Xp=Zp,Qp=Fo,ef="__lodash_hash_undefined__",tf=Object.prototype,of=tf.hasOwnProperty;function nf(e){var t=this.__data__;if(Qp){var o=t[e];return o===ef?void 0:o}return of.call(t,e)?t[e]:void 0}var rf=nf,af=Fo,lf=Object.prototype,sf=lf.hasOwnProperty;function cf(e){var t=this.__data__;return af?t[e]!==void 0:sf.call(t,e)}var df=cf,pf=Fo,ff="__lodash_hash_undefined__";function mf(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=pf&&t===void 0?ff:t,this}var uf=mf,yf=Jp,gf=Xp,bf=rf,hf=df,vf=uf;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=yf;gt.prototype.delete=gf;gt.prototype.get=bf;gt.prototype.has=hf;gt.prototype.set=vf;var wf=gt,ra=wf,_f=Mo,kf=Zn;function Sf(){this.size=0,this.__data__={hash:new ra,map:new(kf||_f),string:new ra}}var xf=Sf;function Cf(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Af=Cf,Ef=Af;function If(e,t){var o=e.__data__;return Ef(t)?o[typeof t=="string"?"string":"hash"]:o.map}var jo=If,$f=jo;function Tf(e){var t=$f(this,e).delete(e);return this.size-=t?1:0,t}var Pf=Tf,Nf=jo;function Uf(e){return Nf(this,e).get(e)}var zf=Uf,Of=jo;function Rf(e){return Of(this,e).has(e)}var Bf=Rf,Vf=jo;function Df(e,t){var o=Vf(this,e),n=o.size;return o.set(e,t),this.size+=o.size==n?0:1,this}var Mf=Df,Ff=xf,jf=Pf,Lf=zf,Gf=Bf,qf=Mf;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=Ff;bt.prototype.delete=jf;bt.prototype.get=Lf;bt.prototype.has=Gf;bt.prototype.set=qf;var Xn=bt,Hf=Mo,Kf=Zn,Wf=Xn,Yf=200;function Jf(e,t){var o=this.__data__;if(o instanceof Hf){var n=o.__data__;if(!Kf||n.length<Yf-1)return n.push([e,t]),this.size=++o.size,this;o=this.__data__=new Wf(n)}return o.set(e,t),this.size=o.size,this}var Zf=Jf,Xf=Mo,Qf=pp,em=mp,tm=yp,om=bp,nm=Zf;function ht(e){var t=this.__data__=new Xf(e);this.size=t.size}ht.prototype.clear=Qf;ht.prototype.delete=em;ht.prototype.get=tm;ht.prototype.has=om;ht.prototype.set=nm;var Lo=ht;function rm(e,t){for(var o=-1,n=e==null?0:e.length;++o<n&&t(e[o],o,e)!==!1;);return e}var am=rm,im=et,lm=function(){try{var e=im(Object,"defineProperty");return e({},"",{}),e}catch{}}(),pi=lm,aa=pi;function sm(e,t,o){t=="__proto__"&&aa?aa(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}var Qn=sm,cm=Qn,dm=Lt,pm=Object.prototype,fm=pm.hasOwnProperty;function mm(e,t,o){var n=e[t];(!(fm.call(e,t)&&dm(n,o))||o===void 0&&!(t in e))&&cm(e,t,o)}var er=mm,um=er,ym=Qn;function gm(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?ym(o,s,c):um(o,s,c)}return o}var Gt=gm,bm=Gt,hm=Vo;function vm(e,t){return e&&bm(t,hm(t),e)}var wm=vm;function _m(e){var t=[];if(e!=null)for(var o in Object(e))t.push(o);return t}var km=_m,Sm=De,xm=Bo,Cm=km,Am=Object.prototype,Em=Am.hasOwnProperty;function Im(e){if(!Sm(e))return Cm(e);var t=xm(e),o=[];for(var n in e)n=="constructor"&&(t||!Em.call(e,n))||o.push(n);return o}var $m=Im,Tm=ai,Pm=$m,Nm=jt;function Um(e){return Nm(e)?Tm(e,!0):Pm(e)}var qt=Um,zm=Gt,Om=qt;function Rm(e,t){return e&&zm(t,Om(t),e)}var Bm=Rm,_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 Vm(e,t){var o=-1,n=e.length;for(t||(t=Array(n));++o<n;)t[o]=e[o];return t}var fi=Vm;function Dm(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=Dm;function Fm(){return[]}var mi=Fm,jm=Mm,Lm=mi,Gm=Object.prototype,qm=Gm.propertyIsEnumerable,ia=Object.getOwnPropertySymbols,Hm=ia?function(e){return e==null?[]:(e=Object(e),jm(ia(e),function(t){return qm.call(e,t)}))}:Lm,tr=Hm,Km=Gt,Wm=tr;function Ym(e,t){return Km(e,Wm(e),t)}var Jm=Ym;function Zm(e,t){for(var o=-1,n=t.length,a=e.length;++o<n;)e[a+o]=t[o];return e}var ui=Zm,Xm=ii,Qm=Xm(Object.getPrototypeOf,Object),or=Qm,eu=ui,tu=or,ou=tr,nu=mi,ru=Object.getOwnPropertySymbols,au=ru?function(e){for(var t=[];e;)eu(t,ou(e)),e=tu(e);return t}:nu,yi=au,iu=Gt,lu=yi;function su(e,t){return iu(e,lu(e),t)}var cu=su,du=ui,pu=Pe;function fu(e,t,o){var n=t(e);return pu(e)?n:du(n,o(e))}var gi=fu,mu=gi,uu=tr,yu=Vo;function gu(e){return mu(e,yu,uu)}var bi=gu,bu=gi,hu=yi,vu=qt;function wu(e){return bu(e,vu,hu)}var hi=wu,_u=et,ku=Ve,Su=_u(ku,"DataView"),xu=Su,Cu=et,Au=Ve,Eu=Cu(Au,"Promise"),Iu=Eu,$u=et,Tu=Ve,Pu=$u(Tu,"Set"),Nu=Pu,Uu=et,zu=Ve,Ou=Uu(zu,"WeakMap"),Ru=Ou,_n=xu,kn=Zn,Sn=Iu,xn=Nu,Cn=Ru,vi=ut,vt=di,la="[object Map]",Bu="[object Object]",sa="[object Promise]",ca="[object Set]",da="[object WeakMap]",pa="[object DataView]",Vu=vt(_n),Du=vt(kn),Mu=vt(Sn),Fu=vt(xn),ju=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==Bu?e.constructor:void 0,n=o?vt(o):"";if(n)switch(n){case Vu:return pa;case Du:return la;case Mu:return sa;case Fu:return ca;case ju:return da}return t});var Ht=Ze,Lu=Object.prototype,Gu=Lu.hasOwnProperty;function qu(e){var t=e.length,o=new e.constructor(t);return t&&typeof e[0]=="string"&&Gu.call(e,"index")&&(o.index=e.index,o.input=e.input),o}var Hu=qu,Ku=Ve,Wu=Ku.Uint8Array,wi=Wu,fa=wi;function Yu(e){var t=new e.constructor(e.byteLength);return new fa(t).set(new fa(e)),t}var nr=Yu,Ju=nr;function Zu(e,t){var o=t?Ju(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}var Xu=Zu,Qu=/\w*$/;function ey(e){var t=new e.constructor(e.source,Qu.exec(e));return t.lastIndex=e.lastIndex,t}var ty=ey,ma=Ft,ua=ma?ma.prototype:void 0,ya=ua?ua.valueOf:void 0;function oy(e){return ya?Object(ya.call(e)):{}}var ny=oy,ry=nr;function ay(e,t){var o=t?ry(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}var _i=ay,iy=nr,ly=Xu,sy=ty,cy=ny,dy=_i,py="[object Boolean]",fy="[object Date]",my="[object Map]",uy="[object Number]",yy="[object RegExp]",gy="[object Set]",by="[object String]",hy="[object Symbol]",vy="[object ArrayBuffer]",wy="[object DataView]",_y="[object Float32Array]",ky="[object Float64Array]",Sy="[object Int8Array]",xy="[object Int16Array]",Cy="[object Int32Array]",Ay="[object Uint8Array]",Ey="[object Uint8ClampedArray]",Iy="[object Uint16Array]",$y="[object Uint32Array]";function Ty(e,t,o){var n=e.constructor;switch(t){case vy:return iy(e);case py:case fy:return new n(+e);case wy:return ly(e,o);case _y:case ky:case Sy:case xy:case Cy:case Ay:case Ey:case Iy:case $y:return dy(e,o);case my:return new n;case uy:case by:return new n(e);case yy:return sy(e);case gy:return new n;case hy:return cy(e)}}var Py=Ty,Ny=De,ga=Object.create,Uy=function(){function e(){}return function(t){if(!Ny(t))return{};if(ga)return ga(t);e.prototype=t;var o=new e;return e.prototype=void 0,o}}(),zy=Uy,Oy=zy,Ry=or,By=Bo;function Vy(e){return typeof e.constructor=="function"&&!By(e)?Oy(Ry(e)):{}}var ki=Vy,Dy=Ht,My=Ge,Fy="[object Map]";function jy(e){return My(e)&&Dy(e)==Fy}var Ly=jy,Gy=Ly,qy=Yn,ba=Vt.exports,ha=ba&&ba.isMap,Hy=ha?qy(ha):Gy,Ky=Hy,Wy=Ht,Yy=Ge,Jy="[object Set]";function Zy(e){return Yy(e)&&Wy(e)==Jy}var Xy=Zy,Qy=Xy,eg=Yn,va=Vt.exports,wa=va&&va.isSet,tg=wa?eg(wa):Qy,og=tg,ng=Lo,rg=am,ag=er,ig=wm,lg=Bm,sg=_o.exports,cg=fi,dg=Jm,pg=cu,fg=bi,mg=hi,ug=Ht,yg=Hu,gg=Py,bg=ki,hg=Pe,vg=Xe.exports,wg=Ky,_g=De,kg=og,Sg=Vo,xg=qt,Cg=1,Ag=2,Eg=4,Si="[object Arguments]",Ig="[object Array]",$g="[object Boolean]",Tg="[object Date]",Pg="[object Error]",xi="[object Function]",Ng="[object GeneratorFunction]",Ug="[object Map]",zg="[object Number]",Ci="[object Object]",Og="[object RegExp]",Rg="[object Set]",Bg="[object String]",Vg="[object Symbol]",Dg="[object WeakMap]",Mg="[object ArrayBuffer]",Fg="[object DataView]",jg="[object Float32Array]",Lg="[object Float64Array]",Gg="[object Int8Array]",qg="[object Int16Array]",Hg="[object Int32Array]",Kg="[object Uint8Array]",Wg="[object Uint8ClampedArray]",Yg="[object Uint16Array]",Jg="[object Uint32Array]",ne={};ne[Si]=ne[Ig]=ne[Mg]=ne[Fg]=ne[$g]=ne[Tg]=ne[jg]=ne[Lg]=ne[Gg]=ne[qg]=ne[Hg]=ne[Ug]=ne[zg]=ne[Ci]=ne[Og]=ne[Rg]=ne[Bg]=ne[Vg]=ne[Kg]=ne[Wg]=ne[Yg]=ne[Jg]=!0;ne[Pg]=ne[xi]=ne[Dg]=!1;function go(e,t,o,n,a,i){var l,s=t&Cg,c=t&Ag,d=t&Eg;if(o&&(l=a?o(e,n,a,i):o(e)),l!==void 0)return l;if(!_g(e))return e;var p=hg(e);if(p){if(l=yg(e),!s)return cg(e,l)}else{var m=ug(e),f=m==xi||m==Ng;if(vg(e))return sg(e,s);if(m==Ci||m==Si||f&&!a){if(l=c||f?{}:bg(e),!s)return c?pg(e,lg(l,e)):dg(e,ig(l,e))}else{if(!ne[m])return a?e:{};l=gg(e,m,s)}}i||(i=new ng);var u=i.get(e);if(u)return u;i.set(e,l),kg(e)?e.forEach(function(g){l.add(go(g,t,o,g,e,i))}):wg(e)&&e.forEach(function(g,v){l.set(v,go(g,t,o,v,e,i))});var b=d?c?mg:fg:c?xg:Sg,y=p?void 0:b(e);return rg(y||e,function(g,v){y&&(v=g,g=e[v]),ag(l,v,go(g,t,o,v,e,i))}),l}var Zg=go,Xg=Zg,Qg=1,eb=4;function tb(e){return Xg(e,Qg|eb)}var ob=tb,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"})}},nb={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},rb=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},ab=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})},ib=function(e,t){t===void 0&&(t={});var o=ob(e);return Object.keys(t).forEach(function(n){o[n]=z(z({},o[n]),t[n])}),o},lb=function(e,t){var o=(0,nb[e])(t);return rb(o)},sb=function(e,t){var o,n,a=lb(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=ib(a,i);return delete l.QR,l},cb=function(e,t){var o=sb(e,t);return ab(o)};/*! *****************************************************************************
|
|
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)};/*! *****************************************************************************
|
|
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,db=ee.NullEvent,En=ee.Assign;ee.After;ee.DoneState;var Ei=ee.Log,pb=ee.Init,In=ee.Invoke;ee.ErrorExecution;var _a=ee.ErrorPlatform,fb=ee.ErrorCustom,ir=ee.Update,mb=ee.Choose,ub=ee.Pure,Ii=".",ka={},$n="xstate.guard",yb="",$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 gb(e){return typeof e=="object"&&"value"in e&&"context"in e&&"event"in e&&"_event"in e}function zt(e,t){if(gb(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 bb=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 hb(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 vb(e){return/^(done|error)\./.test(e)}function xa(e){return!!(e instanceof Promise||e!==null&&(Q(e)||typeof e=="object")&&Q(e.then))}function wb(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 _b(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 kb(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 Sb(e){return!!e&&typeof e.send=="function"}var xb=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 Cb(e){if(!(e===void 0||e===yb))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:pb});function Nn(e,t){return t&&t[e]||void 0}function Dt(e,t){var o;if(q(e)||typeof e=="number"){var n=Nn(e,t);Q(n)?o={type:e,exec:n}:n?o=n:o={type:e,exec:void 0}}else if(Q(e))o={type:e.name||e.toString(),exec:e};else{var n=Nn(e.type,t);if(Q(n))o=E(E({},e),{exec:n});else if(n){var a=n.type||e.type;o=E(E(E({},n),e),{type:a})}else o=e}return o}var Co=function(e,t){if(!e)return[];var o=wt(e)?e:[e];return o.map(function(n){return Dt(n,t)})};function cr(e){var t=Dt(e);return E(E({id:q(e)?e:t.id},t),{type:t.type})}function Ab(e){return q(e)?{type:Go,event:e}:Ho(e,{to:st.Internal})}function Eb(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 Ib(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 $b(e,t){return Ho(e,E(E({},t),{to:st.Parent}))}function Tb(){return $b(ir)}var Pb=function(e,t,o){return E(E({},e),{value:q(e.expr)?e.expr:e.expr(t,o.data,{_event:o})})},Nb=function(e){return{type:Ai,sendId:e}};function Ub(e){var t=cr(e);return{type:ee.Start,activity:t,exec:void 0}}function zb(e){var t=Q(e)?e:cr(e);return{type:ee.Stop,activity:t,exec:void 0}}function Ob(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 Rb=function(e){return{type:En,assignment:e}};function Bb(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 Vb(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 Eb(f);case qo:var b=Ib(f,d,n,e.options.delays);return b;case Ei:return Pb(f,d,n);case mb:{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 ub:{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 Ob(f,d,n);case En:{d=Ca(d,n,[f],t),p==null||p.push(d);break}default:var S=Dt(f,e.options.actions),C=S.exec;if(C&&p){var $=p.length-1;S=E(E({},S),{exec:function(N){for(var R=[],D=1;D<arguments.length;D++)R[D-1]=arguments[D];C.apply(void 0,de([p[$]],W(R),!1))}})}return S}}).filter(function(f){return!!f}));return[m,d]}var Ao=[],Ut=function(e,t){Ao.push(e);var o=t(e);return Ao.pop(),o},Db=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 Mb(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 Fb(e){try{return typeof e.send=="function"}catch{return!1}}function jb(e){return Fb(e)&&"id"in e}function Lb(e){var t;return E((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}},t[He]=function(){return this},t),e)}var Eo=function(e){return e.type==="atomic"||e.type==="final"};function ct(e){return Object.keys(e.states).map(function(t){return e.states[t]}).filter(function(t){return t.type!=="history"})}function Vi(e){var t=[e];return Eo(e)?t:t.concat(le(ct(e).map(Vi)))}function it(e,t){var o,n,a,i,l,s,c,d,p=new Set(e),m=zn(p),f=new Set(t);try{for(var u=L(f),b=u.next();!b.done;b=u.next())for(var y=b.value,g=y.parent;g&&!f.has(g);)f.add(g),g=g.parent}catch($){o={error:$}}finally{try{b&&!b.done&&(n=u.return)&&n.call(u)}finally{if(o)throw o.error}}var v=zn(f);try{for(var w=L(f),_=w.next();!_.done;_=w.next()){var y=_.value;if(y.type==="compound"&&(!v.get(y)||!v.get(y).length))m.get(y)?m.get(y).forEach(function(N){return f.add(N)}):y.initialStateNodes.forEach(function(N){return f.add(N)});else if(y.type==="parallel")try{for(var k=(l=void 0,L(ct(y))),x=k.next();!x.done;x=k.next()){var A=x.value;f.has(A)||(f.add(A),m.get(A)?m.get(A).forEach(function(N){return f.add(N)}):A.initialStateNodes.forEach(function(N){return f.add(N)}))}}catch(N){l={error:N}}finally{try{x&&!x.done&&(s=k.return)&&s.call(k)}finally{if(l)throw l.error}}}}catch($){a={error:$}}finally{try{_&&!_.done&&(i=w.return)&&i.call(w)}finally{if(a)throw a.error}}try{for(var S=L(f),C=S.next();!C.done;C=S.next())for(var y=C.value,g=y.parent;g&&!f.has(g);)f.add(g),g=g.parent}catch($){c={error:$}}finally{try{C&&!C.done&&(d=S.return)&&d.call(S)}finally{if(c)throw c.error}}return f}function Di(e,t){var o=t.get(e);if(!o)return{};if(e.type==="compound"){var n=o[0];if(n){if(Eo(n))return n.key}else return{}}var a={};return o.forEach(function(i){a[i.key]=Di(i,t)}),a}function zn(e){var t,o,n=new Map;try{for(var a=L(e),i=a.next();!i.done;i=a.next()){var l=i.value;n.has(l)||n.set(l,[]),l.parent&&(n.has(l.parent)||n.set(l.parent,[]),n.get(l.parent).push(l))}}catch(s){t={error:s}}finally{try{i&&!i.done&&(o=a.return)&&o.call(a)}finally{if(t)throw t.error}}return n}function Gb(e,t){var o=it([e],t);return Di(e,zn(o))}function vo(e,t){return Array.isArray(e)?e.some(function(o){return o===t}):e instanceof Set?e.has(t):!1}function qb(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 Hb(e){return e===void 0&&(e=[]),e.reduce(function(t,o){return o.meta!==void 0&&(t[o.id]=o.meta),t},{})}function Aa(e){return new Set(le(e.map(function(t){return t.tags})))}function Mi(e,t){if(e===t)return!0;if(e===void 0||t===void 0)return!1;if(q(e)||q(t))return e===t;var o=Object.keys(e),n=Object.keys(t);return o.length===n.length&&o.every(function(a){return Mi(e[a],t[a])})}function Kb(e){return typeof e!="object"||e===null?!1:"value"in e&&"_event"in e}function Wb(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=Hb(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 qb(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}(),Yb={deferEvents:!1},Ea=function(){function e(t){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=E(E({},Yb),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,Jb=0,lo={bookId:function(){return"x:".concat(Jb++)},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 Zb(){var e=dr();if(e&&"__xstate__"in e)return e.__xstate__}function Xb(e){if(!!dr()){var t=Zb();t&&t.register(e)}}function Qb(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=Lb({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 eh=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):Sb(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===fb?"".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 Kb(t)?o.machine.resolveState(t):o.machine.resolveState(Ne.from(t,o.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){o.update(n,xo)}),this},e.prototype.stop=function(){var t,o,n,a,i,l,s,c,d,p,m=this;try{for(var f=L(this.listeners),u=f.next();!u.done;u=f.next()){var b=u.value;this.listeners.delete(b)}}catch(C){t={error:C}}finally{try{u&&!u.done&&(o=f.return)&&o.call(f)}finally{if(t)throw t.error}}try{for(var y=L(this.stopListeners),g=y.next();!g.done;g=y.next()){var b=g.value;b(),this.stopListeners.delete(b)}}catch(C){n={error:C}}finally{try{g&&!g.done&&(a=y.return)&&a.call(y)}finally{if(n)throw n.error}}try{for(var v=L(this.contextListeners),w=v.next();!w.done;w=v.next()){var b=w.value;this.contextListeners.delete(b)}}catch(C){i={error:C}}finally{try{w&&!w.done&&(l=v.return)&&l.call(v)}finally{if(i)throw i.error}}try{for(var _=L(this.doneListeners),k=_.next();!k.done;k=_.next()){var b=k.value;this.doneListeners.delete(b)}}catch(C){s={error:C}}finally{try{k&&!k.done&&(c=_.return)&&c.call(_)}finally{if(s)throw s.error}}if(!this.initialized)return this;de([],W(this.state.configuration),!1).sort(function(C,$){return $.order-C.order}).forEach(function(C){var $,N;try{for(var R=L(C.definition.exit),D=R.next();!D.done;D=R.next()){var F=D.value;m.exec(F,m.state)}}catch(ce){$={error:ce}}finally{try{D&&!D.done&&(N=R.return)&&N.call(R)}finally{if($)throw $.error}}}),this.children.forEach(function(C){Q(C.stop)&&C.stop()}),this.children.clear();try{for(var x=L(Object.keys(this.delayedEventsMap)),A=x.next();!A.done;A=x.next()){var S=A.value;this.clock.clearTimeout(this.delayedEventsMap[S])}}catch(C){d={error:C}}finally{try{A&&!A.done&&(p=x.return)&&p.call(x)}finally{if(d)throw d.error}}return this.scheduler.clear(),this.scheduler=new Ea({deferEvents:this.options.deferEvents}),this.initialized=!1,this.status=he.Stopped,this._initialState=void 0,lo.free(this.sessionId),this},e.prototype.batch=function(t){var o=this;if(!(this.status===he.NotStarted&&this.options.deferEvents)){if(this.status!==he.Running)throw new Error("".concat(t.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'))}this.scheduler.schedule(function(){var n,a,i=o.state,l=!1,s=[],c=function(f){var u=be(f);o.forward(u),i=Ut(o,function(){return o.machine.transition(i,u)}),s.push.apply(s,de([],W(i.actions.map(function(b){return Wb(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(jb(t))return this.spawnActor(t,o);if(kb(t))return this.spawnObservable(t,o);if(Qe(t))return this.spawnMachine(t,E(E({},n),{id:o}));if(wb(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=Qb(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)}Xb(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}(),th=function(e){return q(e)?E(E({},On),{name:e}):E(E(E({},On),{name:xb()}),e)};function so(e,t){var o=th(t);return Db(function(n){return n?n.spawn(e,o.name,o):Bi(e,o.name)})}function Fi(e,t){var o=new eh(e,t);return o}function oh(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:oh(e.src)})}})}var lt="",Rn="#",Tt="*",rt={},at=function(e){return e[0]===Rn},nh=function(){return{actions:{},guards:{},services:{},activities:{},delays:{}}},rh=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.")},ah=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(nh(),o),this.parent=a==null?void 0:a.parent,this.key=this.config.key||(a==null?void 0:a.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:Ii),this.id=this.config.id||de([this.machine.key],W(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:(l=this.config.schema)!==null&&l!==void 0?l:{},this.description=this.config.description,this.initial=this.config.initial,this.states=this.config.states?Pt(this.config.states,function(d,p){var m,f=new e(d,{},void 0,{parent:i,key:p});return Object.assign(i.idMap,E((m={},m[f.id]=f,m),f.idMap)),f}):rt;var s=0;function c(d){var p,m;d.order=s++;try{for(var f=L(ct(d)),u=f.next();!u.done;u=f.next()){var b=u.value;c(b)}}catch(y){p={error:y}}finally{try{u&&!u.done&&(m=f.return)&&m.call(f)}finally{if(p)throw p.error}}}c(this),this.history=this.config.history===!0?"shallow":this.config.history||!1,this._transient=!!this.config.always||(this.config.on?Array.isArray(this.config.on)?this.config.on.some(function(d){var p=d.event;return p===lt}):lt in this.config.on:!1),this.strict=!!this.config.strict,this.onEntry=Te(this.config.entry||this.config.onEntry).map(function(d){return Dt(d)}),this.onExit=Te(this.config.exit||this.config.onExit).map(function(d){return Dt(d)}),this.meta=this.config.meta,this.doneData=this.type==="final"?this.config.data:void 0,this.invoke=Te(this.config.invoke).map(function(d,p){var m,f;if(Qe(d)){var u=ao(i.id,p);return i.machine.options.services=E((m={},m[u]=d,m),i.machine.options.services),co({src:u,id:u})}else if(q(d.src)){var u=d.id||ao(i.id,p);return co(E(E({},d),{id:u,src:d.src}))}else if(Qe(d.src)||Q(d.src)){var u=d.id||ao(i.id,p);return i.machine.options.services=E((f={},f[u]=d.src,f),i.machine.options.services),co(E(E({id:u},d),{src:u}))}else{var b=d.src;return co(E(E({id:ao(i.id,p)},d),{src:b}))}}),this.activities=Te(this.config.activities).concat(this.invoke).map(function(d){return cr(d)}),this.transition=this.transition.bind(this),this.tags=Te(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||Vi(this).forEach(function(t){return t.on})},e.prototype.withConfig=function(t,o){var n=this.options,a=n.actions,i=n.activities,l=n.guards,s=n.services,c=n.delays;return new e(this.config,{actions:E(E({},a),t.actions),activities:E(E({},i),t.activities),guards:E(E({},l),t.guards),services:E(E({},s),t.services),delays:E(E({},c),t.delays)},o!=null?o:this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return Q(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:Pt(this.states,function(t){return t.definition}),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){return this.definition},Object.defineProperty(e.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var t=this.transitions;return this.__cache.on=t.reduce(function(o,n){return o[n.eventType]=o[n.eventType]||[],o[n.eventType].push(n),o},{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),e.prototype.getCandidates=function(t){if(this.__cache.candidates[t])return this.__cache.candidates[t];var o=t===lt,n=this.transitions.filter(function(a){var i=a.eventType===t;return o?i:i||a.eventType===Tt});return this.__cache.candidates[t]=n,n},e.prototype.getDelayedTransitions=function(){var t=this,o=this.config.after;if(!o)return[];var n=function(i,l){var s=Q(i)?"".concat(t.id,":delay[").concat(l,"]"):i,c=Bb(s,t.id);return t.onEntry.push(Ho(c,{delay:i})),t.onExit.push(Nb(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),bb(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 Ub(C)})),!1),W(S.onEntry),!1)})).concat(g.map(Ab)),le(Array.from(w).map(function(S){return de(de([],W(S.onExit),!1),W(S.activities.map(function(C){return zb(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)&&!vb(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?Gb(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]=Mb($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?_b(m,p):void 0:o?o.historyValue:void 0,history:!p||t.source?o:void 0,actions:p?A:[],activities:p?u:o?o.activities:{},events:[],configuration:$,transitions:t.transitions,children:C,done:N,tags:Aa($),machine:this}),D=n!==_;R.changed=a.name===ir||D;var F=R.history;F&&delete F.history;var ce=!N&&(this._transient||c.some(function(ye){return ye._transient}));if(!d&&(!ce||a.name===lt))return R;var K=R;if(!N)for(ce&&(K=this.resolveRaisedTransition(K,{type:db},a));x.length;){var fe=x.shift();K=this.resolveRaisedTransition(K,fe._event,a)}var St=K.changed||(F?!!K.actions.length||D||typeof F.value!=typeof K.value||!Mi(K.value,F.value):void 0);return K.changed=St,K.history=F,K},e.prototype.getStateNode=function(t){if(at(t))return this.machine.getStateNodeById(t);if(!this.states)throw new Error("Unable to retrieve child state '".concat(t,"' from '").concat(this.id,"'; no child states exist."));var o=this.states[t];if(!o)throw new Error("Child state '".concat(t,"' does not exist on '").concat(this.id,"'"));return o},e.prototype.getStateNodeById=function(t){var o=at(t)?t.slice(Rn.length):t;if(o===this.id)return this;var n=this.machine.idMap[o];if(!n)throw new Error("Child state node '#".concat(o,"' does not exist on machine '").concat(this.id,"'"));return n},e.prototype.getStateNodeByPath=function(t){if(typeof t=="string"&&at(t))try{return this.getStateNodeById(t.slice(1))}catch{}for(var o=Tn(t,this.delimiter).slice(),n=this;o.length;){var a=o.shift();if(!a.length)break;n=n.getStateNode(a)}return n},e.prototype.resolve=function(t){var o,n=this;if(!t)return this.initialStateValue||rt;switch(this.type){case"parallel":return Pt(this.initialStateValue,function(i,l){return i?n.getStateNode(l).resolve(t[l]||i):rt});case"compound":if(q(t)){var a=this.getStateNode(t);return a.type==="parallel"||a.type==="compound"?(o={},o[t]=a.initialStateValue,o):t}return Object.keys(t).length?Pt(t,function(i,l){return i?n.getStateNode(l).resolve(i):rt}):this.initialStateValue||{};default:return t||rt}},e.prototype.getResolvedPath=function(t){if(at(t)){var o=this.machine.idMap[t.slice(Rn.length)];if(!o)throw new Error("Unable to find state node '".concat(t,"'"));return o.path}return Tn(t,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;var o;if(this.type==="parallel")o=Sa(this.states,function(n){return n.initialStateValue||rt},function(n){return n.type!=="history"});else if(this.initial!==void 0){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));o=Eo(this.states[this.initial])?this.initial:(t={},t[this.initial]=this.states[this.initial].initialStateValue,t)}else o={};return this.__cache.initialStateValue=o,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(t,o){this._init();var n=this.getStateNodes(t);return this.resolveTransition({configuration:n,entrySet:n,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,o!=null?o:this.machine.context,void 0)},Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this.initialStateValue;if(!t)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){var t;if(this.type==="history"){var o=this.config;q(o.target)?t=at(o.target)?ko(this.machine.getStateNodeById(o.target).path.slice(this.path.length-1)):o.target:t=o.target}return t},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(t,o,n){return n===void 0&&(n=!0),n?t.type==="history"?t.resolveHistory(o):t.initialStateNodes:[t]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var t=this;if(Eo(this))return[this];if(this.type==="compound"&&!this.initial)return $t||Ot(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this];var o=bo(this.initialStateValue);return le(o.map(function(n){return t.getFromRelativePath(n)}))},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var o=W(t),n=o[0],a=o.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(n,"' from node with no states"));var i=this.getStateNode(n);if(i.type==="history")return i.resolveHistory();if(!this.states[n])throw new Error("Child state '".concat(n,"' does not exist on '").concat(this.id,"'"));return this.states[n].getFromRelativePath(a)},e.prototype.historyValue=function(t){if(!!Object.keys(this.states).length)return{current:t||this.initialStateValue,states:Sa(this.states,function(o,n){if(!t)return o.historyValue();var a=q(t)?void 0:t[n];return o.historyValue(a||o.initialStateValue)},function(o){return!o.history})}},e.prototype.resolveHistory=function(t){var o=this;if(this.type!=="history")return[this];var n=this.parent;if(!t){var a=this.target;return a?le(bo(a).map(function(l){return n.getFromRelativePath(l)})):n.initialStateNodes}var i=hb(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 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=Eb(t.target),a="internal"in t?t.internal:n?n.some(function(c){return q(c)&&c[0]===o.delimiter}):!0,i=this.machine.options.guards,l=this.resolveTarget(n),s=E(E({},t),{actions:Co(Te(t.actions)),cond:Ui(t.cond,i),target:l,source:this,internal:a,eventType:t.event,toJSON:function(){return E(E({},s),{target:s.target?s.target.map(function(c){return"#".concat(c.id)}):void 0,source:"#".concat(o.id)})}});return s},e.prototype.formatTransitions=function(){var t,o,n=this,a;if(!this.config.on)a=[];else if(Array.isArray(this.config.on))a=this.config.on;else{var i=this.config.on,l=Tt,s=i[l],c=s===void 0?[]:s,d=rr(i,[typeof l=="symbol"?l:l+""]);a=le(Object.keys(d).map(function(w){!$t&&w===lt&&Ot(!1,"Empty string transition configs (e.g., `{ on: { '': ... }}`) for transient transitions are deprecated. Specify the transition in the `{ always: ... }` property instead. "+'Please check the `on` configuration for "#'.concat(n.id,'".'));var _=nt(w,d[w]);return $t||ih(n,w,_),_}).concat(nt(Tt,c)))}var p=this.config.always?nt("",this.config.always):[],m=this.config.onDone?nt(String(io(this.id)),this.config.onDone):[];$t||Ot(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var f=le(this.invoke.map(function(w){var _=[];return w.onDone&&_.push.apply(_,de([],W(nt(String(ho(w.id)),w.onDone)),!1)),w.onError&&_.push.apply(_,de([],W(nt(String(Nt(w.id)),w.onError)),!1)),_})),u=this.after,b=le(de(de(de(de([],W(m),!1),W(f),!1),W(a),!1),W(p),!1).map(function(w){return Te(w).map(function(_){return n.formatTransition(_)})}));try{for(var y=L(u),g=y.next();!g.done;g=y.next()){var v=g.value;b.push(v)}}catch(w){t={error:w}}finally{try{g&&!g.done&&(o=y.return)&&o.call(y)}finally{if(t)throw t.error}}return b},e}();function Kt(e,t){return new lh(e,t)}var Ce=Vb,pr=Nb,sh=Db,H={},fr={};(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,lh=ue.ActionTypes.Start,sh=ue.ActionTypes.Stop,ch=ue.ActionTypes.Raise,dh=ue.ActionTypes.Send,ph=ue.ActionTypes.Cancel,fh=ue.ActionTypes.NullEvent,mh=ue.ActionTypes.Assign,uh=ue.ActionTypes.After,yh=ue.ActionTypes.DoneState,gh=ue.ActionTypes.Log,bh=ue.ActionTypes.Init,hh=ue.ActionTypes.Invoke,vh=ue.ActionTypes.ErrorExecution,wh=ue.ActionTypes.ErrorPlatform,_h=ue.ActionTypes.ErrorCustom,kh=ue.ActionTypes.Update,Sh=ue.ActionTypes.Choose,xh=ue.ActionTypes.Pure;pe.after=uh;pe.assign=mh;pe.cancel=ph;pe.choose=Sh;pe.doneState=yh;pe.error=_h;pe.errorExecution=vh;pe.errorPlatform=wh;pe.init=bh;pe.invoke=hh;pe.log=gh;pe.nullEvent=fh;pe.pure=xh;pe.raise=ch;pe.send=dh;pe.start=lh;pe.stop=sh;pe.update=kh;var ji={},_t={};Object.defineProperty(_t,"__esModule",{value:!0});var Ch=".",Ah={},Eh="xstate.guard",Ih="";_t.DEFAULT_GUARD_TYPE=Eh;_t.EMPTY_ACTIVITY_MAP=Ah;_t.STATE_DELIMITER=Ch;_t.TARGETLESS_KEY=Ih;var Ko={};Object.defineProperty(Ko,"__esModule",{value:!0});var $h=!0;Ko.IS_PRODUCTION=$h;(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)),M=j.next();!M.done;M=j.next()){var Z=M.value,re=h[Z];!U(re)||(V[Z]=T(re,Z,h))}}catch(_e){P={error:_e}}finally{try{M&&!M.done&&(B=j.return)&&B.call(j)}finally{if(P)throw P.error}}return V}var y=function(h){return function(T){var U,P,B=T;try{for(var V=t.__values(h),j=V.next();!j.done;j=V.next()){var M=j.value;B=B[M]}}catch(Z){U={error:Z}}finally{try{j&&!j.done&&(P=V.return)&&P.call(V)}finally{if(U)throw U.error}}return B}};function g(h,T){return function(U){var P,B,V=U;try{for(var j=t.__values(h),M=j.next();!M.done;M=j.next()){var Z=M.value;V=V[T][Z]}}catch(re){P={error:re}}finally{try{M&&!M.done&&(B=j.return)&&B.call(j)}finally{if(P)throw P.error}}return V}}function v(h){if(!h)return[[]];if(fe(h))return[[h]];var T=_(Object.keys(h).map(function(U){var P=h[U];return typeof P!="string"&&(!P||!Object.keys(P).length)?[[U]]:v(h[U]).map(function(B){return[U].concat(B)})}));return T}function w(h){var T,U,P={};if(h&&h.length===1&&h[0].length===1)return h[0][0];try{for(var B=t.__values(h),V=B.next();!V.done;V=B.next())for(var j=V.value,M=P,Z=0;Z<j.length;Z++){var re=j[Z];if(Z===j.length-2){M[re]=j[Z+1];break}M[re]=M[re]||{},M=M[re]}}catch(_e){T={error:_e}}finally{try{V&&!V.done&&(U=B.return)&&U.call(B)}finally{if(T)throw T.error}}return P}function _(h){var T;return(T=[]).concat.apply(T,t.__spreadArray([],t.__read(h),!1))}function k(h){return ce(h)?h:[h]}function x(h){return h===void 0?[]:k(h)}function A(h,T,U){var P,B;if(K(h))return h(T,U.data);var V={};try{for(var j=t.__values(Object.keys(h)),M=j.next();!M.done;M=j.next()){var Z=M.value,re=h[Z];K(re)?V[Z]=re(T,U.data):V[Z]=re}}catch(_e){P={error:_e}}finally{try{M&&!M.done&&(B=j.return)&&B.call(j)}finally{if(P)throw P.error}}return V}function S(h){return/^(done|error)\./.test(h)}function C(h){return!!(h instanceof Promise||h!==null&&(K(h)||typeof h=="object")&&K(h.then))}function $(h){return h!==null&&typeof h=="object"&&"transition"in h&&typeof h.transition=="function"}function N(h,T){var U,P,B=t.__read([[],[]],2),V=B[0],j=B[1];try{for(var M=t.__values(h),Z=M.next();!Z.done;Z=M.next()){var re=Z.value;T(re)?V.push(re):j.push(re)}}catch(_e){U={error:_e}}finally{try{Z&&!Z.done&&(P=M.return)&&P.call(M)}finally{if(U)throw U.error}}return[V,j]}function R(h,T){return u(h.states,function(U,P){if(!!U){var B=(fe(T)?void 0:T[P])||(U?U.current:void 0);if(!!B)return{current:B,states:R(U,B)}}})}function D(h,T){return{current:T,states:R(h,T)}}function F(h,T,U,P){n.IS_PRODUCTION||e.warn(!!h,"Attempting to update undefined context");var B=h&&U.reduce(function(V,j){var M,Z,re=j.assignment,_e={state:P,action:j,_event:T},tt={};if(K(re))tt=re(V,T.data,_e);else try{for(var te=t.__values(Object.keys(re)),oe=te.next();!oe.done;oe=te.next()){var ot=oe.value,Ct=re[ot];tt[ot]=K(Ct)?Ct(V,T.data,_e):Ct}}catch(Nl){M={error:Nl}}finally{try{oe&&!oe.done&&(Z=te.return)&&Z.call(te)}finally{if(M)throw M.error}}return Object.assign({},V,tt)},h);return B}e.warn=function(){},n.IS_PRODUCTION||(e.warn=function(h,T){var U=h instanceof Error?h:void 0;if(!(!U&&h)&&console!==void 0){var P=["Warning: ".concat(T)];U&&P.push(U),console.warn.apply(console,P)}});function ce(h){return Array.isArray(h)}function K(h){return typeof h=="function"}function fe(h){return typeof h=="string"}function St(h,T){if(!!h)return fe(h)?{type:o.DEFAULT_GUARD_TYPE,name:h,predicate:T?T[h]:void 0}:K(h)?{type:o.DEFAULT_GUARD_TYPE,name:h.name,predicate:h}:h}function ye(h){try{return"subscribe"in h&&K(h.subscribe)}catch{return!1}}var $e=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),nn=(a={},a[$e]=function(){return this},a[Symbol.observable]=function(){return this},a);function Zt(h){return!!h&&"__xstatenode"in h}function rn(h){return!!h&&typeof h.send=="function"}var an=function(){var h=0;return function(){return h++,h.toString(16)}}();function Xt(h,T){return fe(h)||typeof h=="number"?t.__assign({type:h},T):h}function ln(h,T){if(!fe(h)&&"$$type"in h&&h.$$type==="scxml")return h;var U=Xt(h);return t.__assign({name:U.type,data:U,$$type:"scxml",type:"external"},T)}function Qt(h,T){var U=k(T).map(function(P){return typeof P=="undefined"||typeof P=="string"||Zt(P)?{target:P,event:h}:t.__assign(t.__assign({},P),{event:h})});return U}function eo(h){if(!(h===void 0||h===o.TARGETLESS_KEY))return x(h)}function xt(h,T,U){if(!n.IS_PRODUCTION){var P=h.stack?" Stacktrace was '".concat(h.stack,"'"):"";if(h===T)console.error("Missing onError handler for invocation '".concat(U,"', error was '").concat(h,"'.").concat(P));else{var B=T.stack?" Stacktrace was '".concat(T.stack,"'"):"";console.error("Missing onError handler and/or unhandled exception/promise rejection for invocation '".concat(U,"'. ")+"Original error: '".concat(h,"'. ").concat(P," Current error is '").concat(T,"'.").concat(B))}}}function sn(h,T,U,P,B){var V=h.options.guards,j={state:B,cond:T,_event:P};if(T.type===o.DEFAULT_GUARD_TYPE)return((V==null?void 0:V[T.name])||T.predicate)(U,P.data,j);var M=V==null?void 0:V[T.type];if(!M)throw new Error("Guard '".concat(T.type,"' is not implemented on machine '").concat(h.id,"'."));return M(U,P.data,j)}function I(h){return typeof h=="string"?{type:h}:h}function ve(h,T,U){if(typeof h=="object")return h;var P=function(){};return{next:h,error:T||P,complete:U||P}}function to(h,T){return"".concat(h,":invocation[").concat(T,"]")}e.createInvokeId=to,e.evaluateGuard=sn,e.flatten=_,e.getActionType=c,e.getEventType=s,e.interopSymbols=nn,e.isActor=rn,e.isArray=ce,e.isBehavior=$,e.isBuiltInEvent=S,e.isFunction=K,e.isMachine=Zt,e.isObservable=ye,e.isPromiseLike=C,e.isStateLike=p,e.isString=fe,e.keys=i,e.mapContext=A,e.mapFilterValues=b,e.mapValues=u,e.matchesState=l,e.nestedPath=g,e.normalizeTarget=eo,e.partition=N,e.path=y,e.pathToStateValue=f,e.pathsToStateValue=w,e.reportUnhandledExceptionOnInvocation=xt,e.symbolObservable=$e,e.toArray=x,e.toArrayStrict=k,e.toEventObject=Xt,e.toGuard=St,e.toInvokeSource=I,e.toObserver=ve,e.toSCXMLEvent=ln,e.toStatePath=d,e.toStatePaths=v,e.toStateValue=m,e.toTransitionConfigArray=Qt,e.uniqueId=an,e.updateContext=F,e.updateHistoryStates=R,e.updateHistoryValue=D})(ji);Object.defineProperty(H,"__esModule",{value:!0});var X=fr,Ee=mr,me=pe,G=ji,Th=Ko,Ph=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 Nh(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 Uh(e,t,o){return kt(t,X.__assign(X.__assign({},o),{to:e}))}function zh(){return yr(me.update)}function Oh(e,t){return kt(e,X.__assign(X.__assign({},t),{to:function(o,n,a){var i=a._event;return i.origin}}))}var Rh=function(e,t){return{context:e,event:t}};function Bh(e,t){return e===void 0&&(e=Rh),{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})})},Vh=function(e){return{type:me.cancel,sendId:e}};function Dh(e){var t=ur(e);return{type:Ee.ActionTypes.Start,activity:t,exec:void 0}}function Mh(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 Fh=function(e){return{type:me.assign,assignment:e}};function jh(e){return typeof e=="object"&&"type"in e}function Lh(e,t){var o=t?"#".concat(t):"";return"".concat(Ee.ActionTypes.After,"(").concat(e,")").concat(o)}function Gh(e,t){var o="".concat(Ee.ActionTypes.DoneState,".").concat(e),n={type:o,data:t};return n.toString=function(){return o},n}function qh(e,t){var o="".concat(Ee.ActionTypes.DoneInvoke,".").concat(e),n={type:o,data:t};return n.toString=function(){return o},n}function Hh(e,t){var o="".concat(Ee.ActionTypes.ErrorPlatform,".").concat(e),n={type:o,data:t};return n.toString=function(){return o},n}function Kh(e){return{type:Ee.ActionTypes.Pure,get:e}}function Wh(e,t){return kt(function(o,n){return n},X.__assign(X.__assign({},t),{to:e}))}function Yh(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 Jh(e){return{type:Ee.ActionTypes.Choose,conds:e}}function Dn(e,t,o,n,a,i){i===void 0&&(i=!1);var l=X.__read(i?[[],a]:G.partition(a,function(f){return f.type===me.assign}),2),s=l[0],c=l[1],d=s.length?G.updateContext(o,n,s,t):o,p=i?[o]:void 0,m=G.flatten(c.map(function(f){var u;switch(f.type){case me.raise:return Li(f);case me.send:var b=Gi(f,d,n,e.options.delays);return Th.IS_PRODUCTION||G.warn(!G.isString(f.delay)||typeof b.delay=="number","No delay reference for delay expression '".concat(f.delay,"' was found on machine '").concat(e.id,"'")),b;case me.log:return qi(f,d,n);case me.choose:{var y=f,g=(u=y.conds.find(function(N){var R=G.toGuard(N.cond,e.options.guards);return!R||G.evaluateGuard(e,R,d,n,t)}))===null||u===void 0?void 0:u.actions;if(!g)return[];var v=X.__read(Dn(e,t,d,n,Vn(G.toArray(g),e.options.actions),i),2),w=v[0],_=v[1];return d=_,p==null||p.push(d),w}case me.pure:{var g=f.get(d,n.data);if(!g)return[];var k=X.__read(Dn(e,t,d,n,Vn(G.toArray(g),e.options.actions),i),2),x=k[0],A=k[1];return d=A,p==null||p.push(d),x}case me.stop:return Hi(f,d,n);case me.assign:{d=G.updateContext(d,n,[f],t),p==null||p.push(d);break}default:var S=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=[],D=1;D<arguments.length;D++)R[D-1]=arguments[D];C.apply(void 0,X.__spreadArray([p[$]],X.__read(R),!1))}})}return S}}).filter(function(f){return!!f}));return[m,d]}H.actionTypes=me;H.after=Lh;var ie=H.assign=Fh;H.cancel=Vh;var Zh=H.choose=Jh;H.done=Gh;H.doneInvoke=qh;H.error=Hh;H.escalate=Yh;H.forwardTo=Wh;H.getActionFunction=Bn;H.initEvent=Ph;H.isActionObject=jh;H.log=Bh;H.pure=Kh;H.raise=Nh;H.resolveActions=Dn;H.resolveLog=qi;H.resolveRaise=Li;H.resolveSend=Gi;H.resolveStop=Hi;H.respond=Oh;H.send=kt;H.sendParent=yr;H.sendTo=Uh;H.sendUpdate=zh;H.start=Dh;var Xh=H.stop=Mh;H.toActionObject=Wo;H.toActionObjects=Vn;H.toActivityDefinition=ur;var po=function(e){return Xh(e)},Qh=ie({attributeToVerify:function(e){}}),ev=ie({challengeName:function(e){}}),tv=ie({requiredAttributes:function(e){}}),gr=ie({remoteError:function(e){return""}}),br=ie({formValues:function(e){return{}}}),hr=ie({touched:function(e){return{}}}),ov=ie({unverifiedAttributes:function(e){}}),nv=ie({username:function(e){}}),vr=ie({validationError:function(e){return{}}}),rv=ie({challengeName:function(e,t){var o;return(o=t.data)===null||o===void 0?void 0:o.challengeName}}),av=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}}),iv=ie({redirectIntent:function(e){return"confirmPasswordReset"}}),lv=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}}),sv=ie({unverifiedAttributes:function(e,t){return t.data.unverified}}),Wi=ie({user:function(e,t){return t.data.user||t.data}}),cv=ie({username:function(e,t){var o=e.formValues,n=o.username,a=o.country_code;return a&&(n="".concat(a).concat(n)),n}}),dv=ie({codeDeliveryDetails:function(e,t){return t.data.codeDeliveryDetails}}),pv=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}}),fv=Pe,mv=Wn,uv=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yv=/^\w*$/;function gv(e,t){if(fv(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||mv(e)?!0:yv.test(e)||!uv.test(e)||t!=null&&e in Object(t)}var Cr=gv,Ji=Xn,bv="Expected a function";function Ar(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(bv);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 hv=Ar,vv=hv,wv=500;function _v(e){var t=vv(e,function(n){return o.size===wv&&o.clear(),n}),o=t.cache;return t}var kv=_v,Sv=kv,xv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Cv=/\\(\\)?/g,Av=Sv(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(xv,function(o,n,a,i){t.push(a?i.replace(Cv,"$1"):n||o)}),t}),Ev=Av,Ia=Ft,Iv=ni,$v=Pe,Tv=Wn,Pv=1/0,$a=Ia?Ia.prototype:void 0,Ta=$a?$a.toString:void 0;function Zi(e){if(typeof e=="string")return e;if($v(e))return Iv(e,Zi)+"";if(Tv(e))return Ta?Ta.call(e):"";var t=e+"";return t=="0"&&1/e==-Pv?"-0":t}var Nv=Zi,Uv=Nv;function zv(e){return e==null?"":Uv(e)}var Ov=zv,Rv=Pe,Bv=Cr,Vv=Ev,Dv=Ov;function Mv(e,t){return Rv(e)?e:Bv(e,t)?[e]:Vv(Dv(e))}var Yo=Mv,Fv=Wn,jv=1/0;function Lv(e){if(typeof e=="string"||Fv(e))return e;var t=e+"";return t=="0"&&1/e==-jv?"-0":t}var Wt=Lv,Gv=Yo,qv=Wt;function Hv(e,t){t=Gv(t,e);for(var o=0,n=t.length;e!=null&&o<n;)e=e[qv(t[o++])];return o&&o==n?e:void 0}var Er=Hv,Kv=Er;function Wv(e,t,o){var n=e==null?void 0:Kv(e,t);return n===void 0?o:n}var Xi=Wv,Ke=Xi,Yv=li,Jv=Ht,Zv=zo,Xv=Pe,Qv=jt,ew=Xe.exports,tw=Bo,ow=Ro,nw="[object Map]",rw="[object Set]",aw=Object.prototype,iw=aw.hasOwnProperty;function lw(e){if(e==null)return!0;if(Qv(e)&&(Xv(e)||typeof e=="string"||typeof e.splice=="function"||ew(e)||ow(e)||Zv(e)))return!e.length;var t=Jv(e);if(t==nw||t==rw)return!e.size;if(tw(e))return!Yv(e).length;for(var o in e)if(iw.call(e,o))return!1;return!0}var sw=lw,Mn=sw,cw=Qn,dw=Lt;function pw(e,t,o){(o!==void 0&&!dw(e[t],o)||o===void 0&&!(t in e))&&cw(e,t,o)}var Qi=pw;function fw(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 mw=fw,uw=mw,yw=uw(),gw=yw,bw=jt,hw=Ge;function vw(e){return hw(e)&&bw(e)}var ww=vw,_w=ut,kw=or,Sw=Ge,xw="[object Object]",Cw=Function.prototype,Aw=Object.prototype,el=Cw.toString,Ew=Aw.hasOwnProperty,Iw=el.call(Object);function $w(e){if(!Sw(e)||_w(e)!=xw)return!1;var t=kw(e);if(t===null)return!0;var o=Ew.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&el.call(o)==Iw}var Tw=$w;function Pw(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var tl=Pw,Nw=Gt,Uw=qt;function zw(e){return Nw(e,Uw(e))}var Ow=zw,Pa=Qi,Rw=_o.exports,Bw=_i,Vw=fi,Dw=ki,Na=zo,Ua=Pe,Mw=ww,Fw=Xe.exports,jw=Hn,Lw=De,Gw=Tw,qw=Ro,za=tl,Hw=Ow;function Kw(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&&Fw(c),b=!f&&!u&&qw(c);p=c,f||u||b?Ua(s)?p=s:Mw(s)?p=Vw(s):u?(m=!1,p=Rw(c,!0)):b?(m=!1,p=Bw(c,!0)):p=[]:Gw(c)||Na(c)?(p=s,Na(s)?p=Hw(s):(!Lw(s)||jw(s))&&(p=Dw(c))):m=!1}m&&(l.set(c,p),a(p,c,n,i,l),l.delete(c)),Pa(e,o,p)}var Ww=Kw,Yw=Lo,Jw=Qi,Zw=gw,Xw=Ww,Qw=De,e0=qt,t0=tl;function ol(e,t,o,n,a){e!==t&&Zw(t,function(i,l){if(a||(a=new Yw),Qw(i))Xw(e,t,l,o,ol,n,a);else{var s=n?n(t0(e,l),i,l+"",e,t,a):void 0;s===void 0&&(s=i),Jw(e,l,s)}},e0)}var o0=ol;function n0(e){return e}var Ir=n0;function r0(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 a0=r0,i0=a0,Oa=Math.max;function l0(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),i0(e,this,s)}}var s0=l0;function c0(e){return function(){return e}}var d0=c0,p0=d0,Ra=pi,f0=Ir,m0=Ra?function(e,t){return Ra(e,"toString",{configurable:!0,enumerable:!1,value:p0(t),writable:!0})}:f0,u0=m0,y0=800,g0=16,b0=Date.now;function h0(e){var t=0,o=0;return function(){var n=b0(),a=g0-(n-o);if(o=n,a>0){if(++t>=y0)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var v0=h0,w0=u0,_0=v0,k0=_0(w0),S0=k0,x0=Ir,C0=s0,A0=S0;function E0(e,t){return A0(C0(e,t,x0),e+"")}var I0=E0,$0=Lt,T0=jt,P0=Oo,N0=De;function U0(e,t,o){if(!N0(o))return!1;var n=typeof t;return(n=="number"?T0(o)&&P0(t,o.length):n=="string"&&t in o)?$0(o[t],e):!1}var z0=U0,O0=I0,R0=z0;function B0(e){return O0(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&&R0(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 V0=B0,D0=o0,M0=V0,F0=M0(function(e,t,o){D0(e,t,o)}),j0=F0,$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=j0.apply(void 0,Ue([{}],a,!1)),Mn(i)?[2,Promise.resolve()]:[2,Promise.reject(i)]}})})},Io={getAmplifyConfig:function(){return Y(this,void 0,void 0,function(){return J(this,function(e){return[2,se.Amplify.configure()]})})},getCurrentUser:function(){return Y(this,void 0,void 0,function(){return J(this,function(e){return[2,se.Auth.currentAuthenticatedUser()]})})},handleSignUp:function(e){return Y(this,void 0,void 0,function(){return J(this,function(t){return[2,se.Auth.signUp(e)]})})},handleSignIn:function(e){var t=e.username,o=e.password;return Y(this,void 0,void 0,function(){return J(this,function(n){return[2,se.Auth.signIn(t,o)]})})},handleConfirmSignIn:function(e){var t=e.user,o=e.code,n=e.mfaType;return Y(this,void 0,void 0,function(){return J(this,function(a){return[2,se.Auth.confirmSignIn(t,o,n)]})})},handleConfirmSignUp:function(e){var t=e.username,o=e.code;return Y(this,void 0,void 0,function(){return J(this,function(n){switch(n.label){case 0:return[4,se.Auth.confirmSignUp(t,o)];case 1:return[2,n.sent()]}})})},handleForgotPasswordSubmit:function(e){var t=e.username,o=e.code,n=e.password;return Y(this,void 0,void 0,function(){return J(this,function(a){return[2,se.Auth.forgotPasswordSubmit(t,o,n)]})})},handleForgotPassword:function(e){return Y(this,void 0,void 0,function(){return J(this,function(t){return[2,se.Auth.forgotPassword(e)]})})},validateCustomSignUp:function(e,t){return Y(this,void 0,void 0,function(){return J(this,function(o){return[2]})})},validateFormPassword:function(e,t,o){return Y(this,void 0,void 0,function(){var n,a,i,l;return J(this,function(s){return n=e.password,t.password&&o?(a=[],i=+(o==null?void 0:o.passwordPolicyMinLength),n.length<i&&a.push("Password must have at least ".concat(i," characters")),(l=o==null?void 0:o.passwordPolicyCharacters)==null||l.forEach(function(c){switch(c){case"REQUIRES_LOWERCASE":/[a-z]/.test(n)||a.push("Password must have lower case letters");break;case"REQUIRES_UPPERCASE":/[A-Z]/.test(n)||a.push("Password must have upper case letters");break;case"REQUIRES_NUMBERS":/[0-9]/.test(n)||a.push("Password must have numbers");break;case"REQUIRES_SYMBOLS":Vd(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 L0(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:Qh,clearChallengeName:ev,clearRequiredAttributes:tv,clearError:gr,clearFormValues:br,clearTouched:hr,clearUnverifiedAttributes:ov,clearValidationError:vr,handleInput:kr,handleSubmit:Sr,handleBlur:xr,parsePhoneNumber:Yi,setChallengeName:rv,setConfirmResetPasswordIntent:iv,setConfirmSignUpIntent:lv,setRequiredAttributes:av,setCredentials:Ki,setFieldErrors:wr,setRemoteError:_r,setUnverifiedAttributes:sv,setUser:Wi,setUsernameAuthAttributes:pv,sendUpdate:pr()},guards:{shouldConfirmSignIn:function(o,n){var a=Ke(n,"data.challengeName");return[Le.SMS_MFA,Le.SOFTWARE_TOKEN_MFA].includes(a)},shouldAutoSignIn:function(o){return(o==null?void 0:o.intent)==="autoSignIn"},shouldRedirectToConfirmSignUp:function(o,n){return n.data.code==="UserNotConfirmedException"},shouldRedirectToConfirmResetPassword:function(o,n){return n.data.code==="PasswordResetRequiredException"},shouldSetupTOTP:function(o,n){return Ke(n,"data.challengeName")===Le.MFA_SETUP},shouldForceChangePassword:function(o,n){return Ke(n,"data.challengeName")===Le.NEW_PASSWORD_REQUIRED},shouldRequestVerification:function(o,n){var a=n.data,i=a.unverified,l=a.verified;return Mn(l)&&!Mn(i)}},services:{signIn:function(o){return Y(this,void 0,void 0,function(){var n,a,i,l,s,c,d;return J(this,function(p){switch(p.label){case 0:return n=o.authAttributes,a=n===void 0?{}:n,i=o.formValues,l=i===void 0?{}:i,s=z(z({},a),l),c=s.username,d=s.password,[4,t.handleSignIn({username:c,password:d})];case 1:return[2,p.sent()]}})})},confirmSignIn:function(o,n){return Y(this,void 0,void 0,function(){var a,i,l,s;return J(this,function(c){switch(c.label){case 0:return a=o.challengeName,i=o.user,l=o.formValues.confirmation_code,a!==Le.SMS_MFA&&a!==Le.SOFTWARE_TOKEN_MFA||(s=a),[4,t.handleConfirmSignIn({user:i,code:l,mfaType:s})];case 1:return c.sent(),[4,se.Auth.currentAuthenticatedUser()];case 2:return[2,c.sent()]}})})},forceNewPassword:function(o,n){return Y(this,void 0,void 0,function(){var a,i,l,s,c,d,p,m,f;return J(this,function(u){switch(u.label){case 0:a=o.user,i=o.formValues,l=i.password,s=i.phone_number,c=i.country_code,d=si(i,["password","confirm_password","phone_number","country_code"]),s&&(p="".concat(c).concat(s).replace(/[^A-Z0-9+]/gi,""),d=z(z({},d),{phone_number:p})),u.label=1;case 1:return u.trys.push([1,3,,4]),[4,se.Auth.completeNewPassword(a,l,d)];case 2:return(m=u.sent()).challengeName?[2,m]:[2,se.Auth.currentAuthenticatedUser()];case 3:return f=u.sent(),[2,Promise.reject(f)];case 4:return[2]}})})},verifyTotpToken:function(o,n){return Y(this,void 0,void 0,function(){var a,i;return J(this,function(l){return a=o.user,i=o.formValues.confirmation_code,[2,se.Auth.verifyTotpToken(a,i)]})})},federatedSignIn:function(o,n){return Y(this,void 0,void 0,function(){var a;return J(this,function(i){switch(i.label){case 0:return a=n.data.provider,[4,se.Auth.federatedSignIn({provider:a})];case 1:return[2,i.sent()]}})})},checkVerifiedContact:function(o,n){return Y(this,void 0,void 0,function(){var a;return J(this,function(i){switch(i.label){case 0:return a=o.user,[4,se.Auth.verifiedContact(a)];case 1:return[2,i.sent()]}})})},verifyUser:function(o,n){return Y(this,void 0,void 0,function(){var a,i;return J(this,function(l){switch(l.label){case 0:return a=o.formValues.unverifiedAttr,[4,se.Auth.verifyCurrentUserAttribute(a)];case 1:return i=l.sent(),o.attributeToVerify=a,[2,i]}})})},confirmVerifyUser:function(o,n){return Y(this,void 0,void 0,function(){var a,i;return J(this,function(l){switch(l.label){case 0:return a=o.attributeToVerify,i=o.formValues.confirmation_code,[4,se.Auth.verifyCurrentUserAttributeSubmit(a,i)];case 1:return[2,l.sent()]}})})},validateFields:function(o,n){return Y(this,void 0,void 0,function(){return J(this,function(a){return[2,$r(o.formValues,o.touched,o.passwordSettings,[Io.validateConfirmPassword])]})})}}})}var G0=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 q0(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:nv,clearValidationError:vr,handleInput:kr,handleSubmit:Sr,handleBlur:xr,setFieldErrors:wr,setRemoteError:_r,setUsername:cv,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 H0="__lodash_hash_undefined__";function K0(e){return this.__data__.set(e,H0),this}var W0=K0;function Y0(e){return this.__data__.has(e)}var J0=Y0,Z0=Xn,X0=W0,Q0=J0;function $o(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new Z0;++t<o;)this.add(e[t])}$o.prototype.add=$o.prototype.push=X0;$o.prototype.has=Q0;var e_=$o;function t_(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 o_=t_;function n_(e,t){return e.has(t)}var r_=n_,a_=e_,i_=o_,l_=r_,s_=1,c_=2;function d_(e,t,o,n,a,i){var l=o&s_,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&c_?new a_: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(!i_(t,function(v,w){if(!l_(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=d_;function p_(e){var t=-1,o=Array(e.size);return e.forEach(function(n,a){o[++t]=[a,n]}),o}var f_=p_;function m_(e){var t=-1,o=Array(e.size);return e.forEach(function(n){o[++t]=n}),o}var u_=m_,Ba=Ft,Va=wi,y_=Lt,g_=nl,b_=f_,h_=u_,v_=1,w_=2,__="[object Boolean]",k_="[object Date]",S_="[object Error]",x_="[object Map]",C_="[object Number]",A_="[object RegExp]",E_="[object Set]",I_="[object String]",$_="[object Symbol]",T_="[object ArrayBuffer]",P_="[object DataView]",Da=Ba?Ba.prototype:void 0,fn=Da?Da.valueOf:void 0;function N_(e,t,o,n,a,i,l){switch(o){case P_:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T_:return!(e.byteLength!=t.byteLength||!i(new Va(e),new Va(t)));case __:case k_:case C_:return y_(+e,+t);case S_:return e.name==t.name&&e.message==t.message;case A_:case I_:return e==t+"";case x_:var s=b_;case E_:var c=n&v_;if(s||(s=h_),e.size!=t.size&&!c)return!1;var d=l.get(e);if(d)return d==t;n|=w_,l.set(e,t);var p=g_(s(e),s(t),n,a,i,l);return l.delete(e),p;case $_:if(fn)return fn.call(e)==fn.call(t)}return!1}var U_=N_,Ma=bi,z_=1,O_=Object.prototype,R_=O_.hasOwnProperty;function B_(e,t,o,n,a,i){var l=o&z_,s=Ma(e),c=s.length,d=Ma(t),p=d.length;if(c!=p&&!l)return!1;for(var m=c;m--;){var f=s[m];if(!(l?f in t:R_.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 V_=B_,mn=Lo,D_=nl,M_=U_,F_=V_,Fa=Ht,ja=Pe,La=Xe.exports,j_=Ro,L_=1,Ga="[object Arguments]",qa="[object Array]",fo="[object Object]",G_=Object.prototype,Ha=G_.hasOwnProperty;function q_(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||j_(e)?D_(e,t,o,n,a,i):M_(e,t,c,o,n,a,i);if(!(o&L_)){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),F_(e,t,o,n,a,i)):!1}var H_=q_,K_=H_,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:K_(e,t,o,n,rl,a)}var al=rl,W_=Lo,Y_=al,J_=1,Z_=2;function X_(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 W_;if(n)var f=n(d,p,c,e,t,m);if(!(f===void 0?Y_(p,d,J_|Z_,n,m):f))return!1}}return!0}var Q_=X_,e1=De;function t1(e){return e===e&&!e1(e)}var il=t1,o1=il,n1=Vo;function r1(e){for(var t=n1(e),o=t.length;o--;){var n=t[o],a=e[n];t[o]=[n,a,o1(a)]}return t}var a1=r1;function i1(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==void 0||e in Object(o))}}var ll=i1,l1=Q_,s1=a1,c1=ll;function d1(e){var t=s1(e);return t.length==1&&t[0][2]?c1(t[0][0],t[0][1]):function(o){return o===e||l1(o,e,t)}}var p1=d1;function f1(e,t){return e!=null&&t in Object(e)}var m1=f1,u1=Yo,y1=zo,g1=Pe,b1=Oo,h1=Kn,v1=Wt;function w1(e,t,o){t=u1(t,e);for(var n=-1,a=t.length,i=!1;++n<a;){var l=v1(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&&h1(a)&&b1(l,a)&&(g1(e)||y1(e)))}var _1=w1,k1=m1,S1=_1;function x1(e,t){return e!=null&&S1(e,t,k1)}var C1=x1,A1=al,E1=Xi,I1=C1,$1=Cr,T1=il,P1=ll,N1=Wt,U1=1,z1=2;function O1(e,t){return $1(e)&&T1(t)?P1(N1(e),t):function(o){var n=E1(o,e);return n===void 0&&n===t?I1(o,e):A1(t,n,U1|z1)}}var R1=O1;function B1(e){return function(t){return t==null?void 0:t[e]}}var V1=B1,D1=Er;function M1(e){return function(t){return D1(t,e)}}var F1=M1,j1=V1,L1=F1,G1=Cr,q1=Wt;function H1(e){return G1(e)?j1(q1(e)):L1(e)}var K1=H1,W1=p1,Y1=R1,J1=Ir,Z1=Pe,X1=K1;function Q1(e){return typeof e=="function"?e:e==null?J1:typeof e=="object"?Z1(e)?Y1(e[0],e[1]):W1(e):X1(e)}var ek=Q1,tk=er,ok=Yo,nk=Oo,Wa=De,rk=Wt;function ak(e,t,o,n){if(!Wa(e))return e;t=ok(t,e);for(var a=-1,i=t.length,l=i-1,s=e;s!=null&&++a<i;){var c=rk(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:nk(t[a+1])?[]:{})}tk(s,c,d),s=s[c]}return e}var ik=ak,lk=Er,sk=ik,ck=Yo;function dk(e,t,o){for(var n=-1,a=t.length,i={};++n<a;){var l=t[n],s=lk(e,l);o(s,l)&&sk(i,ck(l,e),s)}return i}var pk=dk,fk=ni,mk=ek,uk=pk,yk=hi;function gk(e,t){if(e==null)return{};var o=fk(yk(e),function(n){return[n]});return t=mk(t),uk(e,o,function(n,a){return t(n,a[0])})}var bk=gk;function hk(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:dv,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=bk(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 vk(){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:Zh([{cond:"hasActor",actions:ih(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=wk(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=L0({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=hk({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=q0({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=G0.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 wk(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)},_k=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 kk(e,t,o){if(typeof e=="object")return e;var n=function(){};return{next:e,error:t||n,complete:o||n}}function Sk(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=_k(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(kk(o)))}),r.onBeforeUnmount(function(){b.stop(),y==null||y.unsubscribe()}),b}function xk(e){return"state"in e}var Ya=function(){};function Ck(e){return"getSnapshot"in e?e.getSnapshot():xk(e)?e.state:void 0}function sl(e,t){t===void 0&&(t=Ck);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)),Ak=()=>(Ja(),r.watchEffect(()=>{Ja()}),wo),Se=Ak;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})}}}),Ek=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),Ik={class:"amplify-text amplify-authenticator__federated-text"},$k=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),Tk={class:"amplify-text amplify-authenticator__federated-text"},Pk=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),Nk={class:"amplify-text amplify-authenticator__federated-text"},Uk=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),zk={class:"amplify-text amplify-authenticator__federated-text"},Ok=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(()=>[Ek,r.createElementVNode("p",Ik,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(()=>[$k,r.createElementVNode("p",Tk,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(()=>[Pk,r.createElementVNode("p",Nk,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(()=>[Uk,r.createElementVNode("p",zk,r.toDisplayString(r.unref(g)),1)]),_:1},8,["provider"])):r.createCommentVNode("",!0),Ok]),_:1})):r.createCommentVNode("",!0)}}});let Rk=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 Bk={},Vk={"data-amplify-label":""};function Dk(e,t){return r.openBlock(),r.createElementBlock("label",Vk,[r.renderSlot(e.$slots,"default")])}var Zo=Uo(Bk,[["render",Dk]]);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))}}),Mk=["aria-label"],Fk={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},jk=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),Lk=[jk],Gk={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},qk=r.createElementVNode("path",{d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z",fill:"none"},null,-1),Hk=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),Kk=[qk,Hk],Wk={inheritAttrs:!1},Tr=r.defineComponent(Et(At({},Wk),{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",Fk,Lk)):(r.openBlock(),r.createElementBlock("svg",Gk,Kk))],8,Mk)]),_:1})]}),_:1})]}),_:1})}}})),Yk=["value","selected"],Jk=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,Yk))),128))],32))}}),Zk=r.createTextVNode(r.toDisplayString("Country Code")),Xk=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),Qk=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=Jk,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(()=>[Zk]),_: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(()=>[Xk]),_: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})}}}),eS=["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=Rk(12),d=r.computed(()=>Od(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(Qk,{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,eS)):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=cb(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))}}),tS=r.createElementVNode("legend",{class:"amplify-visually-hidden"},"Sign in",-1),oS={"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(()=>Nd("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(Me(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(()=>[tS,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",oS,[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(Me(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})])}}}),nS=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"])}}}),rS={};function aS(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 iS=Uo(rS,[["render",aS]]);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}}),lS={};function sS(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(lS,[["render",sS]]);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(Me(A))},x=()=>{o!=null&&o.onLostCodeClicked?t("lostCodeClicked"):d()};return(A,S)=>{const C=Ye,$=pl,N=ze,R=Oe,D=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(D,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",type:"submit",disabled:r.unref(a)},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(f)),1)]),_:1},8,["disabled"]),r.createVNode(D,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"default",style:{"font-weight":"normal"},type:"button",onClick:r.withModifiers(x,["prevent"])},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(m)),1)]),_:1},8,["onClick"]),r.renderSlot(A.$slots,"footer",{onConfirmSignUpSubmit:_,onLostCodeClicked:x})]),_:3})]),_:3})]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Or=r.defineComponent({name:"confirm-sign-in",emits:["confirmSignInSubmit","backToSignInClicked"],setup(e,{emit:t}){const o=r.useAttrs(),{state:n,send:a}=Ie(),l=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(Me(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 D,F;return[r.createTextVNode(r.toDisplayString(r.unref(O)((F=(D=r.unref(s))==null?void 0:D.context)==null?void 0:F.remoteError)),1)]}),_:1})):r.createCommentVNode("",!0),r.createVNode(A,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",style:{"font-weight":"normal"},disabled:r.unref(s).matches("confirmSignIn.pending")},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(f)),1)]),_:1},8,["disabled"]),r.createVNode(A,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:r.withModifiers(g,["prevent"])},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(m)),1)]),_:1},8,["onClick"]),r.renderSlot(v.$slots,"footer",{onBackToSignInClicked:g,onConfirmSignInSubmit:b})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}});var Yt={},cS=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},fl={},xe={};let Rr;const dS=[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 dS[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 pS=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 fS=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 mS=xe.getSymbolSize,Za=7;yl.getPositions=function(t){const o=mS(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 uS=Br,vl={},Je={},Vr={};Vr.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var je={};const wl="[0-9]+",yS="[A-Z $%*+\\-./:]+";let Mt="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Mt=Mt.replace(/u/g,"\\u");const gS="(?:(?![A-Z0-9 $%*+\\-./:]|"+Mt+`)(?:.|[\r
|
|
32
|
-
]))+`;je.KANJI=new RegExp(
|
|
33
|
-
Make sure your charset is UTF-8`);o=(o>>>8&255)*192+(o&255),e.put(o,13)}};var
|
|
34
|
-
Suggested mode is: `+t.toString(k));switch(_===t.KANJI&&!s.isKanjiModeEnabled()&&(_=t.BYTE),_){case t.NUMERIC:return new o(v);case t.ALPHANUMERIC:return new n(v);case t.KANJI:return new i(v);case t.BYTE:return new a(v)}}e.fromArray=function(w){return w.reduce(function(_,k){return typeof k=="string"?_.push(g(k,null)):k.data&&_.push(g(k.data,k.mode)),_},[])},e.fromString=function(w,_){const k=m(w,s.isKanjiModeEnabled()),x=b(k),A=y(x,_),S=c.find_path(A.map,"start","end"),C=[];for(let $=1;$<S.length-1;$++)C.push(A.table[S[$]].node);return e.fromArray(u(C))},e.rawSplit=function(w){return e.fromArray(m(w,s.isKanjiModeEnabled()))}})(Sl);const on=xe,yn=Qo,
|
|
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
|
+
]))+`;je.KANJI=new RegExp(Dt,"g");je.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");je.BYTE=new RegExp(hS,"g");je.NUMERIC=new RegExp(wl,"g");je.ALPHANUMERIC=new RegExp(bS,"g");const vS=new RegExp("^"+Dt+"$"),wS=new RegExp("^"+wl+"$"),_S=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");je.testKanji=function(t){return vS.test(t)};je.testNumeric=function(t){return wS.test(t)};je.testAlphanumeric=function(t){return _S.test(t)};(function(e){const t=Vr,o=je;e.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(i,l){if(!i.ccBits)throw new Error("Invalid mode: "+i);if(!t.isValid(l))throw new Error("Invalid version: "+l);return l>=1&&l<10?i.ccBits[0]:l<27?i.ccBits[1]:i.ccBits[2]},e.getBestModeForData=function(i){return o.testNumeric(i)?e.NUMERIC:o.testAlphanumeric(i)?e.ALPHANUMERIC:o.testKanji(i)?e.KANJI:e.BYTE},e.toString=function(i){if(i&&i.id)return i.id;throw new Error("Invalid mode")},e.isValid=function(i){return i&&i.bit&&i.ccBits};function n(a){if(typeof a!="string")throw new Error("Param is not a string");switch(a.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+a)}}e.from=function(i,l){if(e.isValid(i))return i;try{return n(i)}catch{return l}}})(Je);(function(e){const t=xe,o=en,n=Qo,a=Je,i=Vr,l=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,s=t.getBCHDigit(l);function c(f,u,b){for(let y=1;y<=40;y++)if(u<=e.getCapacity(y,b,f))return y}function d(f,u){return a.getCharCountIndicator(f,u)+4}function p(f,u){let b=0;return f.forEach(function(y){b+=d(y.mode,u)+y.getBitsLength()}),b}function m(f,u){for(let b=1;b<=40;b++)if(p(f,b)<=e.getCapacity(b,u,a.MIXED))return b}e.from=function(u,b){return i.isValid(u)?parseInt(u,10):b},e.getCapacity=function(u,b,y){if(!i.isValid(u))throw new Error("Invalid QR Code version");typeof y=="undefined"&&(y=a.BYTE);const g=t.getSymbolTotalCodewords(u),v=o.getTotalCodewordsCount(u,b),w=(g-v)*8;if(y===a.MIXED)return w;const _=w-d(y,u);switch(y){case a.NUMERIC:return Math.floor(_/10*3);case a.ALPHANUMERIC:return Math.floor(_/11*2);case a.KANJI:return Math.floor(_/13);case a.BYTE:default:return Math.floor(_/8)}},e.getBestVersionForData=function(u,b){let y;const g=n.from(b,n.M);if(Array.isArray(u)){if(u.length>1)return m(u,g);if(u.length===0)return 1;y=u[0]}else y=u;return c(y.mode,y.getLength(),g)},e.getEncodedBits=function(u){if(!i.isValid(u)||u<7)throw new Error("Invalid QR Code version");let b=u<<12;for(;t.getBCHDigit(b)-s>=0;)b^=l<<t.getBCHDigit(b)-s;return u<<12|b}})(vl);var _l={};const jn=xe,kl=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,kS=1<<14|1<<12|1<<10|1<<4|1<<1,Xa=jn.getBCHDigit(kl);_l.getEncodedBits=function(t,o){const n=t.bit<<3|o;let a=n<<10;for(;jn.getBCHDigit(a)-Xa>=0;)a^=kl<<jn.getBCHDigit(a)-Xa;return(n<<10|a)^kS};var Sl={};const SS=Je;function dt(e){this.mode=SS.NUMERIC,this.data=e.toString()}dt.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};dt.prototype.getLength=function(){return this.data.length};dt.prototype.getBitsLength=function(){return dt.getBitsLength(this.data.length)};dt.prototype.write=function(t){let o,n,a;for(o=0;o+3<=this.data.length;o+=3)n=this.data.substr(o,3),a=parseInt(n,10),t.put(a,10);const i=this.data.length-o;i>0&&(n=this.data.substr(o),a=parseInt(n,10),t.put(a,i*3+1))};var xS=dt;const CS=Je,un=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function pt(e){this.mode=CS.ALPHANUMERIC,this.data=e}pt.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};pt.prototype.getLength=function(){return this.data.length};pt.prototype.getBitsLength=function(){return pt.getBitsLength(this.data.length)};pt.prototype.write=function(t){let o;for(o=0;o+2<=this.data.length;o+=2){let n=un.indexOf(this.data[o])*45;n+=un.indexOf(this.data[o+1]),t.put(n,11)}this.data.length%2&&t.put(un.indexOf(this.data[o]),6)};var AS=pt,ES=function(t){for(var o=[],n=t.length,a=0;a<n;a++){var i=t.charCodeAt(a);if(i>=55296&&i<=56319&&n>a+1){var l=t.charCodeAt(a+1);l>=56320&&l<=57343&&(i=(i-55296)*1024+l-56320+65536,a+=1)}if(i<128){o.push(i);continue}if(i<2048){o.push(i>>6|192),o.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){o.push(i>>12|224),o.push(i>>6&63|128),o.push(i&63|128);continue}if(i>=65536&&i<=1114111){o.push(i>>18|240),o.push(i>>12&63|128),o.push(i>>6&63|128),o.push(i&63|128);continue}o.push(239,191,189)}return new Uint8Array(o).buffer};const IS=ES,$S=Je;function ft(e){this.mode=$S.BYTE,this.data=new Uint8Array(IS(e))}ft.getBitsLength=function(t){return t*8};ft.prototype.getLength=function(){return this.data.length};ft.prototype.getBitsLength=function(){return ft.getBitsLength(this.data.length)};ft.prototype.write=function(e){for(let t=0,o=this.data.length;t<o;t++)e.put(this.data[t],8)};var TS=ft;const PS=Je,NS=xe;function mt(e){this.mode=PS.KANJI,this.data=e}mt.getBitsLength=function(t){return t*13};mt.prototype.getLength=function(){return this.data.length};mt.prototype.getBitsLength=function(){return mt.getBitsLength(this.data.length)};mt.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let o=NS.toSJIS(this.data[t]);if(o>=33088&&o<=40956)o-=33088;else if(o>=57408&&o<=60351)o-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
|
|
33
|
+
Make sure your charset is UTF-8`);o=(o>>>8&255)*192+(o&255),e.put(o,13)}};var US=mt,xl={exports:{}};(function(e){var t={single_source_shortest_paths:function(o,n,a){var i={},l={};l[n]=0;var s=t.PriorityQueue.make();s.push(n,0);for(var c,d,p,m,f,u,b,y,g;!s.empty();){c=s.pop(),d=c.value,m=c.cost,f=o[d]||{};for(p in f)f.hasOwnProperty(p)&&(u=f[p],b=m+u,y=l[p],g=typeof l[p]=="undefined",(g||y>b)&&(l[p]=b,s.push(p,b),i[p]=d))}if(typeof a!="undefined"&&typeof l[a]=="undefined"){var v=["Could not find a path from ",n," to ",a,"."].join("");throw new Error(v)}return i},extract_shortest_path_from_predecessor_list:function(o,n){for(var a=[],i=n;i;)a.push(i),i=o[i];return a.reverse(),a},find_path:function(o,n,a){var i=t.single_source_shortest_paths(o,n,a);return t.extract_shortest_path_from_predecessor_list(i,a)},PriorityQueue:{make:function(o){var n=t.PriorityQueue,a={},i;o=o||{};for(i in n)n.hasOwnProperty(i)&&(a[i]=n[i]);return a.queue=[],a.sorter=o.sorter||n.default_sorter,a},default_sorter:function(o,n){return o.cost-n.cost},push:function(o,n){var a={value:o,cost:n};this.queue.push(a),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(xl);(function(e){const t=Je,o=xS,n=AS,a=TS,i=US,l=je,s=xe,c=xl.exports;function d(v){return unescape(encodeURIComponent(v)).length}function p(v,w,_){const k=[];let x;for(;(x=v.exec(_))!==null;)k.push({data:x[0],index:x.index,mode:w,length:x[0].length});return k}function m(v){const w=p(l.NUMERIC,t.NUMERIC,v),_=p(l.ALPHANUMERIC,t.ALPHANUMERIC,v);let k,x;return s.isKanjiModeEnabled()?(k=p(l.BYTE,t.BYTE,v),x=p(l.KANJI,t.KANJI,v)):(k=p(l.BYTE_KANJI,t.BYTE,v),x=[]),w.concat(_,k,x).sort(function(S,C){return S.index-C.index}).map(function(S){return{data:S.data,mode:S.mode,length:S.length}})}function f(v,w){switch(w){case t.NUMERIC:return o.getBitsLength(v);case t.ALPHANUMERIC:return n.getBitsLength(v);case t.KANJI:return i.getBitsLength(v);case t.BYTE:return a.getBitsLength(v)}}function u(v){return v.reduce(function(w,_){const k=w.length-1>=0?w[w.length-1]:null;return k&&k.mode===_.mode?(w[w.length-1].data+=_.data,w):(w.push(_),w)},[])}function b(v){const w=[];for(let _=0;_<v.length;_++){const k=v[_];switch(k.mode){case t.NUMERIC:w.push([k,{data:k.data,mode:t.ALPHANUMERIC,length:k.length},{data:k.data,mode:t.BYTE,length:k.length}]);break;case t.ALPHANUMERIC:w.push([k,{data:k.data,mode:t.BYTE,length:k.length}]);break;case t.KANJI:w.push([k,{data:k.data,mode:t.BYTE,length:d(k.data)}]);break;case t.BYTE:w.push([{data:k.data,mode:t.BYTE,length:d(k.data)}])}}return w}function y(v,w){const _={},k={start:{}};let x=["start"];for(let A=0;A<v.length;A++){const S=v[A],C=[];for(let $=0;$<S.length;$++){const N=S[$],R=""+A+$;C.push(R),_[R]={node:N,lastCount:0},k[R]={};for(let M=0;M<x.length;M++){const F=x[M];_[F]&&_[F].node.mode===N.mode?(k[F][R]=f(_[F].lastCount+N.length,N.mode)-f(_[F].lastCount,N.mode),_[F].lastCount+=N.length):(_[F]&&(_[F].lastCount=N.length),k[F][R]=f(N.length,N.mode)+4+t.getCharCountIndicator(N.mode,w))}}x=C}for(let A=0;A<x.length;A++)k[x[A]].end=0;return{map:k,table:_}}function g(v,w){let _;const k=t.getBestModeForData(v);if(_=t.from(w,k),_!==t.BYTE&&_.bit<k.bit)throw new Error('"'+v+'" cannot be encoded with mode '+t.toString(_)+`.
|
|
34
|
+
Suggested mode is: `+t.toString(k));switch(_===t.KANJI&&!s.isKanjiModeEnabled()&&(_=t.BYTE),_){case t.NUMERIC:return new o(v);case t.ALPHANUMERIC:return new n(v);case t.KANJI:return new i(v);case t.BYTE:return new a(v)}}e.fromArray=function(w){return w.reduce(function(_,k){return typeof k=="string"?_.push(g(k,null)):k.data&&_.push(g(k.data,k.mode)),_},[])},e.fromString=function(w,_){const k=m(w,s.isKanjiModeEnabled()),x=b(k),A=y(x,_),S=c.find_path(A.map,"start","end"),C=[];for(let $=1;$<S.length-1;$++)C.push(A.table[S[$]].node);return e.fromArray(u(C))},e.rawSplit=function(w){return e.fromArray(m(w,s.isKanjiModeEnabled()))}})(Sl);const on=xe,yn=Qo,zS=mS,OS=uS,RS=ul,BS=yl,Ln=gl,Gn=en,VS=gS,No=vl,MS=_l,DS=Je,gn=Sl;function FS(e,t){const o=e.size,n=BS.getPositions(t);for(let a=0;a<n.length;a++){const i=n[a][0],l=n[a][1];for(let s=-1;s<=7;s++)if(!(i+s<=-1||o<=i+s))for(let c=-1;c<=7;c++)l+c<=-1||o<=l+c||(s>=0&&s<=6&&(c===0||c===6)||c>=0&&c<=6&&(s===0||s===6)||s>=2&&s<=4&&c>=2&&c<=4?e.set(i+s,l+c,!0,!0):e.set(i+s,l+c,!1,!0))}}function jS(e){const t=e.size;for(let o=8;o<t-8;o++){const n=o%2===0;e.set(o,6,n,!0),e.set(6,o,n,!0)}}function LS(e,t){const o=RS.getPositions(t);for(let n=0;n<o.length;n++){const a=o[n][0],i=o[n][1];for(let l=-2;l<=2;l++)for(let s=-2;s<=2;s++)l===-2||l===2||s===-2||s===2||l===0&&s===0?e.set(a+l,i+s,!0,!0):e.set(a+l,i+s,!1,!0)}}function GS(e,t){const o=e.size,n=No.getEncodedBits(t);let a,i,l;for(let s=0;s<18;s++)a=Math.floor(s/3),i=s%3+o-8-3,l=(n>>s&1)===1,e.set(a,i,l,!0),e.set(i,a,l,!0)}function bn(e,t,o){const n=e.size,a=MS.getEncodedBits(t,o);let i,l;for(i=0;i<15;i++)l=(a>>i&1)===1,i<6?e.set(i,8,l,!0):i<8?e.set(i+1,8,l,!0):e.set(n-15+i,8,l,!0),i<8?e.set(8,n-i-1,l,!0):i<9?e.set(8,15-i-1+1,l,!0):e.set(8,15-i-1,l,!0);e.set(n-8,8,1,!0)}function qS(e,t){const o=e.size;let n=-1,a=o-1,i=7,l=0;for(let s=o-1;s>0;s-=2)for(s===6&&s--;;){for(let c=0;c<2;c++)if(!e.isReserved(a,s-c)){let d=!1;l<t.length&&(d=(t[l]>>>i&1)===1),e.set(a,s-c,d),i--,i===-1&&(l++,i=7)}if(a+=n,a<0||o<=a){a-=n,n=-n;break}}}function HS(e,t,o){const n=new zS;o.forEach(function(c){n.put(c.mode.bit,4),n.put(c.getLength(),DS.getCharCountIndicator(c.mode,e)),c.write(n)});const a=on.getSymbolTotalCodewords(e),i=Gn.getTotalCodewordsCount(e,t),l=(a-i)*8;for(n.getLengthInBits()+4<=l&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);const s=(l-n.getLengthInBits())/8;for(let c=0;c<s;c++)n.put(c%2?17:236,8);return KS(n,e,t)}function KS(e,t,o){const n=on.getSymbolTotalCodewords(t),a=Gn.getTotalCodewordsCount(t,o),i=n-a,l=Gn.getBlocksCount(t,o),s=n%l,c=l-s,d=Math.floor(n/l),p=Math.floor(i/l),m=p+1,f=d-p,u=new VS(f);let b=0;const y=new Array(l),g=new Array(l);let v=0;const w=new Uint8Array(e.buffer);for(let S=0;S<l;S++){const C=S<c?p:m;y[S]=w.slice(b,b+C),g[S]=u.encode(y[S]),b+=C,v=Math.max(v,C)}const _=new Uint8Array(n);let k=0,x,A;for(x=0;x<v;x++)for(A=0;A<l;A++)x<y[A].length&&(_[k++]=y[A][x]);for(x=0;x<f;x++)for(A=0;A<l;A++)_[k++]=g[A][x];return _}function WS(e,t,o,n){let a;if(Array.isArray(e))a=gn.fromArray(e);else if(typeof e=="string"){let d=t;if(!d){const p=gn.rawSplit(e);d=No.getBestVersionForData(p,o)}a=gn.fromString(e,d||40)}else throw new Error("Invalid data");const i=No.getBestVersionForData(a,o);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=i;else if(t<i)throw new Error(`
|
|
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 YS=cS,qn=fl,El=Cl,JS=Al;function Mr(e,t,o,n,a){const i=[].slice.call(arguments,1),l=i.length,s=typeof i[l-1]=="function";if(!s&&!YS())throw new Error("Callback required as last argument");if(s){if(l<2)throw new Error("Too few arguments provided");l===2?(a=o,o=t,t=n=void 0):l===3&&(t.getContext&&typeof a=="undefined"?(a=n,n=void 0):(a=n,n=o,o=t,t=void 0))}else{if(l<1)throw new Error("Too few arguments provided");return l===1?(o=t,t=n=void 0):l===2&&!t.getContext&&(n=o,o=t,t=void 0),new Promise(function(c,d){try{const p=qn.create(o,n);c(e(p,t,n))}catch(p){d(p)}})}try{const c=qn.create(o,n);a(null,e(c,t,n))}catch(c){a(c)}}Yt.create=qn.create;Yt.toCanvas=Mr.bind(null,El.render);Yt.toDataURL=Mr.bind(null,El.renderToDataURL);Yt.toString=Mr.bind(null,function(e,t,o){return JS.render(e,o)});const ZS={key:0},XS=r.createTextVNode(" Setup TOTP "),QS=["src"],ex={"data-amplify-copy-tooltip":""},tx=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),ox=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",D=(N=d==null?void 0:d.totpUsername)!=null?N:C.username,F=encodeURI(`otpauth://totp/${R}:${D}?secret=${f.value}&issuer=${R}`);m.qrCodeImageSource=await Yt.toDataURL(F)}catch(R){S.error(R)}finally{m.isLoading=!1}});const y=r.computed(()=>O("Back to Sign In")),g=r.computed(()=>O("Confirm")),v=S=>{const{name:C,value:$}=S.target;l({type:"CHANGE",data:{name:C,value:$}})},w=S=>{a!=null&&a.onConfirmSetupTOTPSubmit?t("confirmSetupTOTPSubmit",S):_(S)},_=S=>{n.submitForm(Me(S))},k=()=>{a!=null&&a.onBackToSignInClicked?t("backToSignInClicked"):l({type:"SIGN_IN"})};return(S,C)=>{const $=Ye,N=ge,R=Oe,D=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",ZS,"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(()=>[XS]),_: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,QS),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",ex,r.toDisplayString(r.unref(u)),1),tx]),_:1})]),_:1}),r.createVNode(Fe,{route:"setupTOTP"})]),_:1}),r.createVNode(F,{class:"amplify-flex amplify-authenticator__column"},{default:r.withCtx(()=>{var fe;return[(fe=r.unref(p).context)!=null&&fe.remoteError?(r.openBlock(),r.createBlock(R,{key:0},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(O)(r.unref(p).context.remoteError)),1)]),_:1})):r.createCommentVNode("",!0),r.createVNode(D,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",type:"submit",disabled:r.unref(p).matches("confirmSignIn.pending")},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(g)),1)]),_:1},8,["disabled"]),r.createVNode(D,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:r.withModifiers(k,["prevent"])},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(y)),1)]),_:1},8,["onClick"]),r.renderSlot(S.$slots,"footer",{onBackToSignInClicked:k,onSetupTOTPSubmit:w})]}),_:3})]),_:3}))]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Fr=r.defineComponent({name:"authenticator-force-new-password-form-fields",setup(e){return(t,o)=>(r.openBlock(),r.createBlock(Fe,{route:"forceNewPassword"}))}}),jr=r.defineComponent({name:"force-new-password",emits:["haveAccountClicked","forceNewPasswordSubmit"],setup(e,{emit:t}){const o=r.useAttrs(),{state:n,send:a}=Ie(),l=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(Me(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(Me(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(Me(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,D;return[r.createTextVNode(r.toDisplayString(r.unref(O)((D=(R=r.unref(s))==null?void 0:R.context)==null?void 0:D.remoteError)),1)]}),_:1})):r.createCommentVNode("",!0),r.createVNode(x,{class:"amplify-field-group__control amplify-authenticator__font",variation:"primary",fullwidth:!1,type:"submit",disabled:r.unref(s).matches("confirmResetPassword.pending")},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(p)),1)]),_:1},8,["disabled"]),r.createVNode(x,{class:"amplify-field-group__control amplify-authenticator__font",variation:"link",fullwidth:!1,size:"small",type:"button",onClick:r.withModifiers(u,["prevent"])},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(c)),1)]),_:1},8,["onClick"]),r.renderSlot(g.$slots,"footer",{onConfirmResetPasswordSubmit:m,onLostYourCodeClicked:u})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),qr=r.defineComponent({name:"verify-user",emits:["verifyUserSubmit","skipClicked"],setup(e,{emit:t}){const n=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(Me(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,D=Re;return r.renderSlot(v.$slots,"verifyUserSlotI",{},()=>[r.createVNode(S,null,{default:r.withCtx(()=>[r.createVNode(D,{onInput:u,onSubmit:r.withModifiers(b,["prevent"])},{default:r.withCtx(()=>[r.createVNode(R,{disabled:r.unref(s).matches("verifyUser.pending"),class:"amplify-flex amplify-authenticator__column"},{default:r.withCtx(()=>[r.renderSlot(v.$slots,"header",{},()=>[r.createVNode(_,{class:"amplify-heading",level:3},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(d)),1)]),_:1})]),r.createVNode(S,{class:"amplify-flex amplify-field amplify-radiogroupfield amplify-authenticator__column"},{default:r.withCtx(()=>[r.createVNode(k,{class:"amplify-visually-hidden amplify-label",id:"amplify-field-493c"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(f)),1)]),_:1}),r.createVNode(S,{class:"amplify-flex amplify-field amplify-radiogroupfield amplify-authenticator__column","aria-labelledby":"amplify-field-493c"},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(c),(F,ce)=>(r.openBlock(),r.createBlock(k,{class:"amplify-flex amplify-radio","data-amplify-verify-label":"",id:"verify",key:F},{default:r.withCtx(()=>[r.createVNode(x,{class:"amplify-input amplify-field-group__control amplify-visually-hidden amplify-radio__input","aria-invalid":"false","data-amplify-verify-input":"",id:"verify",name:"unverifiedAttr",type:"radio",value:ce},null,8,["value"]),r.createVNode(A,{class:"amplify-flex amplify-radio__button","aria-hidden":"true"}),r.createVNode(A,{class:"amplify-text amplify-radio__label"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(Jn)[ce].label),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1}),r.createVNode(N,{class:"amplify-flex amplify-authenticator__column"},{default:r.withCtx(()=>{var F,ce;return[(ce=(F=r.unref(s))==null?void 0:F.context)!=null&&ce.remoteError?(r.openBlock(),r.createBlock(C,{key:0},{default:r.withCtx(()=>{var K;return[r.createTextVNode(r.toDisplayString(r.unref(O)((K=r.unref(s))==null?void 0:K.context.remoteError)),1)]}),_:1})):r.createCommentVNode("",!0),r.createVNode($,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"primary",type:"submit",disabled:r.unref(s).matches("verifyUser.pending")},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(m)),1)]),_:1},8,["disabled"]),r.createVNode($,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:r.withModifiers(g,["prevent"])},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(p)),1)]),_:1},8,["onClick"]),r.renderSlot(v.$slots,"footer",{onSkipClicked:g,onVerifyUserSubmit:b})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3})])}}}),Hr=r.defineComponent({name:"confirm-verify-user",emits:["confirmVerifyUserSubmit","skipClicked"],setup(e,{emit:t}){const n=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(Me(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)])}}}),nx=["data-variation"],rx={"data-amplify-container":""},ax=["data-amplify-router-content"],ix={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=vk(),u=Sk(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=Bd(u)}),r.onUnmounted(()=>{b&&b(),y&&y()});const _=r.computed(()=>ke(g.value)),k=r.ref(),x=r.ref(),A=r.ref(),S=r.ref(),C=r.ref(),$=r.ref(),N=r.ref(),R=r.ref(),D=r.ref(),F=r.ref(),ce=r.computed(()=>O("Create Account")),K=r.computed(()=>O("Sign In")),fe=I=>{var ve;n!=null&&n.onSignInSubmit?t("signInSubmit",I):(ve=k.value)==null||ve.submit(I)},St=I=>{n!=null&&n.onConfirmSignUpSubmit?t("confirmSignUpSubmit",I):A.value.submit(I)},ye=I=>{n!=null&&n.onResetPasswordSubmit?t("resetPasswordSubmit",I):N.value.submit(I)},$e=I=>{n!=null&&n.onConfirmResetPasswordSubmit?t("confirmResetPasswordSubmit",I):R.value.submit(I)},nn=I=>{n!=null&&n.onConfirmSignInSubmit?t("confirmSignInSubmit",I):S.value.submit(I)},Zt=I=>{n!=null&&n.onForceNewPasswordSubmit?t("mSetupTOTPSubmit",I):C.value.submit(I)},rn=I=>{n!=null&&n.onForceNewPasswordSubmit?t("forceNewPasswordSubmit",I):$.value.submit(I)},an=I=>{n!=null&&n.onSignUpSubmit?t("signUpSubmit",I):x.value.submit()},Xt=I=>{n!=null&&n.onVerifyUserSubmit?t("verifyUserSubmit",I):D.value.submit(I)},ln=I=>{n!=null&&n.onConfirmVerifyUserSubmit?t("confirmVerifyUserSubmit",I):F.value.submit(I)},Qt=r.ref(null),eo=r.ref();r.watch(()=>g.value.context,()=>{const{user:I,signOut:ve}=ci({send:v,state:g.value});Qt.value=I,eo.value=ve});const xt=r.computed(()=>{var I,ve;return((I=_.value)==null?void 0:I.matches("signIn"))||((ve=_.value)==null?void 0:ve.matches("signUp"))}),sn=r.computed(()=>{var I;return!(g.value.matches("authenticated")||g.value.matches("idle")||g.value.matches("setup")||g.value.matches("signOut")||((I=_.value)==null?void 0:I.matches("autoSignIn")))});return(I,ve)=>{var T,U,P,B,V,j,M,Z,re,_e,tt;const to=nS,h=iS;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",rx,[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",ix,[(T=r.unref(_))!=null&&T.matches("signIn")?(r.openBlock(),r.createBlock(Pr,{key:0,onSignInSubmit:fe,ref_key:"signInComponent",ref:k},{signInSlotI:r.withCtx(()=>[r.renderSlot(I.$slots,"sign-in")]),form:r.withCtx(({info:te,onSignInSubmit:oe,onForgotPasswordClicked:ot,onInput:Ct})=>[r.renderSlot(I.$slots,"sign-in-form",{info:te,onInput:Ct,onSignInSubmit:oe,onForgotPasswordClicked:ot})]),header:r.withCtx(()=>[r.renderSlot(I.$slots,"sign-in-header")]),footer:r.withCtx(()=>[r.renderSlot(I.$slots,"sign-in-footer")]),_:3},512)):r.createCommentVNode("",!0),((U=r.unref(_))==null?void 0:U.matches("signUp"))&&!r.unref(p)?(r.openBlock(),r.createBlock(Ur,{key:1,onSignUpSubmit:an,ref_key:"signUpComponent",ref:x},{signUpSlotI:r.withCtx(()=>[r.renderSlot(I.$slots,"sign-up")]),header:r.withCtx(()=>[r.renderSlot(I.$slots,"sign-up-header")]),"signup-fields":r.withCtx(({info:te})=>[r.renderSlot(I.$slots,"sign-up-fields",{info:te})]),footer:r.withCtx(()=>[r.renderSlot(I.$slots,"sign-up-footer")]),_:3},512)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),(P=r.unref(_))!=null&&P.matches("confirmSignUp")?(r.openBlock(),r.createBlock(zr,{key:2,onConfirmSignUpSubmit:St,ref_key:"confirmSignUpComponent",ref:A},{confirmSignUpSlotI:r.withCtx(()=>[r.renderSlot(I.$slots,"confirm-sign-up")]),header:r.withCtx(()=>[r.renderSlot(I.$slots,"confirm-sign-up-header")]),footer:r.withCtx(({onConfirmSignUpSubmit:te,onLostCodeClicked:oe})=>[r.renderSlot(I.$slots,"confirm-sign-up-footer",{onConfirmSignUpSubmit:te,onLostCodeClicked:oe})]),_:3},512)):r.createCommentVNode("",!0),(B=r.unref(_))!=null&&B.matches("resetPassword")?(r.openBlock(),r.createBlock(Lr,{key:3,onResetPasswordSubmit:ye,ref_key:"resetPasswordComponent",ref:N},{resetPasswordSlotI:r.withCtx(()=>[r.renderSlot(I.$slots,"reset-password")]),header:r.withCtx(()=>[r.renderSlot(I.$slots,"reset-password-header")]),footer:r.withCtx(({onResetPasswordSubmit:te,onBackToSignInClicked:oe})=>[r.renderSlot(I.$slots,"reset-password-footer",{onResetPasswordSubmit:te,onBackToSignInClicked:oe})]),_:3},512)):r.createCommentVNode("",!0),(V=r.unref(_))!=null&&V.matches("confirmResetPassword")?(r.openBlock(),r.createBlock(Gr,{key:4,onConfirmResetPasswordSubmit:$e,ref_key:"confirmResetPasswordComponent",ref:R},{confirmResetPasswordSlotI:r.withCtx(()=>[r.renderSlot(I.$slots,"confirm-reset-password")]),header:r.withCtx(()=>[r.renderSlot(I.$slots,"confirm-reset-password-header")]),footer:r.withCtx(({onConfirmResetPasswordSubmit:te,onLostYourCodeClicked:oe})=>[r.renderSlot(I.$slots,"confirm-reset-password-footer",{onConfirmResetPasswordSubmit:te,onLostYourCodeClicked:oe})]),_:3},512)):r.createCommentVNode("",!0),(j=r.unref(_))!=null&&j.matches("confirmSignIn")?(r.openBlock(),r.createBlock(Or,{key:5,onConfirmSignInSubmit:nn,ref_key:"confirmSignInComponent",ref:S},{confirmSignInSlotI:r.withCtx(()=>[r.renderSlot(I.$slots,"confirm-sign-in")]),header:r.withCtx(()=>[r.renderSlot(I.$slots,"confirm-sign-in-header")]),footer:r.withCtx(({onConfirmSignInSubmit:te,onBackToSignInClicked:oe})=>[r.renderSlot(I.$slots,"confirm-sign-in-footer",{onConfirmSignInSubmit:te,onBackToSignInClicked:oe})]),_:3},512)):r.createCommentVNode("",!0),(M=r.unref(_))!=null&&M.matches("setupTOTP")?(r.openBlock(),r.createBlock(ox,{key:6,onConfirmSetupTotpSubmit:Zt,ref_key:"confirmSetupTOTPComponent",ref:C},{confirmSetupTOTPI:r.withCtx(()=>[r.renderSlot(I.$slots,"setup-totp")]),header:r.withCtx(()=>[r.renderSlot(I.$slots,"setup-totp-header")]),footer:r.withCtx(({onSetupTOTPSubmit:te,onBackToSignInClicked:oe})=>[r.renderSlot(I.$slots,"setup-totp-footer",{onSetupTOTPSubmit:te,onBackToSignInClicked:oe})]),_:3},512)):r.createCommentVNode("",!0),(Z=r.unref(_))!=null&&Z.matches("forceNewPassword")?(r.openBlock(),r.createBlock(jr,{key:7,onForceNewPasswordSubmit:rn,ref_key:"forceNewPasswordComponent",ref:$},{forceNewPasswordI:r.withCtx(()=>[r.renderSlot(I.$slots,"force-new-password")]),header:r.withCtx(()=>[r.renderSlot(I.$slots,"force-new-password-header")]),"force-new-password-form-fields":r.withCtx(()=>[r.renderSlot(I.$slots,"force-new-password-form-fields")]),footer:r.withCtx(({onHaveAccountClicked:te,onForceNewPasswordSubmit:oe})=>[r.renderSlot(I.$slots,"force-new-password-footer",{onForceNewPasswordSubmit:oe,onBackToSignInClicked:te})]),_:3},512)):r.createCommentVNode("",!0),(re=r.unref(_))!=null&&re.matches("verifyUser")?(r.openBlock(),r.createBlock(qr,{key:8,onVerifyUserSubmit:Xt,ref_key:"verifyUserComponent",ref:D},{verifyUserSlotI:r.withCtx(()=>[r.renderSlot(I.$slots,"verify-user")]),header:r.withCtx(()=>[r.renderSlot(I.$slots,"verify-user-header")]),footer:r.withCtx(({onVerifyUserSubmit:te,onSkipClicked:oe})=>[r.renderSlot(I.$slots,"verify-user-footer",{onVerifyUserSubmit:te,onSkipClicked:oe})]),_:3},512)):r.createCommentVNode("",!0),(_e=r.unref(_))!=null&&_e.matches("confirmVerifyUser")?(r.openBlock(),r.createBlock(Hr,{key:9,onConfirmVerifyUserSubmit:ln,ref_key:"confirmVerifyUserComponent",ref:F},{confirmVerifyUserSlotI:r.withCtx(()=>[r.renderSlot(I.$slots,"confirm-verify-user")]),header:r.withCtx(()=>[r.renderSlot(I.$slots,"confirm-verify-user-header")]),footer:r.withCtx(({onConfirmVerifyUserSubmit:te,onSkipClicked:oe})=>[r.renderSlot(I.$slots,"confirm-verify-user-footer",{onConfirmVerifyUserSubmit:te,onSkipClicked:oe})]),_:3},512)):r.createCommentVNode("",!0)],8,ax),r.renderSlot(I.$slots,"footer")])],16,nx)):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)}}}),lx={class:"amplify-flex amplify-field amplify-checkboxfield"},sx={class:"amplify-flex amplify-checkbox"},cx={class:"amplify-visually-hidden"},dx=["data-error","data-checked"],px=["data-checked"],fx=r.createElementVNode("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},null,-1),mx=[fx],ux=r.createElementVNode("span",{class:"amplify-text amplify-checkbox__label"}," I agree with the Terms & Conditions",-1),yx={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",lx,[r.createElementVNode("label",sx,[r.createElementVNode("span",cx,[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},mx,10,px))],10,dx),ux]),o.value?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("p",yx,r.toDisplayString(r.unref(n)),1))]))}});var gx={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=gx;exports.translations=Ud;exports.useAuthenticator=Se;
|
|
37
|
+
`);const l=HS(t,o,a),s=on.getSymbolSize(t),c=new OS(s);return FS(c,t),jS(c),LS(c,t),bn(c,o,0),t>=7&&GS(c,t),qS(c,l),isNaN(n)&&(n=Ln.getBestMask(c,bn.bind(null,c,o))),Ln.applyMask(n,c),bn(c,o,n),{modules:c,version:t,errorCorrectionLevel:o,maskPattern:n,segments:a}}fl.create=function(t,o){if(typeof t=="undefined"||t==="")throw new Error("No input text");let n=yn.M,a,i;return typeof o!="undefined"&&(n=yn.from(o.errorCorrectionLevel,yn.M),a=No.from(o.version),i=Ln.from(o.maskPattern),o.toSJISFunc&&on.setToSJISFunction(o.toSJISFunc)),WS(t,a,n,i)};var Cl={},Mr={};(function(e){function t(o){if(typeof o=="number"&&(o=o.toString()),typeof o!="string")throw new Error("Color should be defined as hex string");let n=o.slice().replace("#","").split("");if(n.length<3||n.length===5||n.length>8)throw new Error("Invalid hex color: "+o);(n.length===3||n.length===4)&&(n=Array.prototype.concat.apply([],n.map(function(i){return[i,i]}))),n.length===6&&n.push("F","F");const a=parseInt(n.join(""),16);return{r:a>>24&255,g:a>>16&255,b:a>>8&255,a:a&255,hex:"#"+n.slice(0,6).join("")}}e.getOptions=function(n){n||(n={}),n.color||(n.color={});const a=typeof n.margin=="undefined"||n.margin===null||n.margin<0?4:n.margin,i=n.width&&n.width>=21?n.width:void 0,l=n.scale||4;return{width:i,scale:i?4:l,margin:a,color:{dark:t(n.color.dark||"#000000ff"),light:t(n.color.light||"#ffffffff")},type:n.type,rendererOpts:n.rendererOpts||{}}},e.getScale=function(n,a){return a.width&&a.width>=n+a.margin*2?a.width/(n+a.margin*2):a.scale},e.getImageWidth=function(n,a){const i=e.getScale(n,a);return Math.floor((n+a.margin*2)*i)},e.qrToImageData=function(n,a,i){const l=a.modules.size,s=a.modules.data,c=e.getScale(l,i),d=Math.floor((l+i.margin*2)*c),p=i.margin*c,m=[i.color.light,i.color.dark];for(let f=0;f<d;f++)for(let u=0;u<d;u++){let b=(f*d+u)*4,y=i.color.light;if(f>=p&&u>=p&&f<d-p&&u<d-p){const g=Math.floor((f-p)/c),v=Math.floor((u-p)/c);y=m[s[g*l+v]?1:0]}n[b++]=y.r,n[b++]=y.g,n[b++]=y.b,n[b]=y.a}}})(Mr);(function(e){const t=Mr;function o(a,i,l){a.clearRect(0,0,i.width,i.height),i.style||(i.style={}),i.height=l,i.width=l,i.style.height=l+"px",i.style.width=l+"px"}function n(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(i,l,s){let c=s,d=l;typeof c=="undefined"&&(!l||!l.getContext)&&(c=l,l=void 0),l||(d=n()),c=t.getOptions(c);const p=t.getImageWidth(i.modules.size,c),m=d.getContext("2d"),f=m.createImageData(p,p);return t.qrToImageData(f.data,i,c),o(m,d,p),m.putImageData(f,0,0),d},e.renderToDataURL=function(i,l,s){let c=s;typeof c=="undefined"&&(!l||!l.getContext)&&(c=l,l=void 0),c||(c={});const d=e.render(i,l,c),p=c.type||"image/png",m=c.rendererOpts||{};return d.toDataURL(p,m.quality)}})(Cl);var Al={};const YS=Mr;function Qa(e,t){const o=e.a/255,n=t+'="'+e.hex+'"';return o<1?n+" "+t+'-opacity="'+o.toFixed(2).slice(1)+'"':n}function hn(e,t,o){let n=e+t;return typeof o!="undefined"&&(n+=" "+o),n}function JS(e,t,o){let n="",a=0,i=!1,l=0;for(let s=0;s<e.length;s++){const c=Math.floor(s%t),d=Math.floor(s/t);!c&&!i&&(i=!0),e[s]?(l++,s>0&&c>0&&e[s-1]||(n+=i?hn("M",c+o,.5+d+o):hn("m",a,0),a=0,i=!1),c+1<t&&e[s+1]||(n+=hn("h",l),l=0)):a++}return n}Al.render=function(t,o,n){const a=YS.getOptions(o),i=t.modules.size,l=t.modules.data,s=i+a.margin*2,c=a.color.light.a?"<path "+Qa(a.color.light,"fill")+' d="M0 0h'+s+"v"+s+'H0z"/>':"",d="<path "+Qa(a.color.dark,"stroke")+' d="'+JS(l,i,a.margin)+'"/>',p='viewBox="0 0 '+s+" "+s+'"',m=a.width?'width="'+a.width+'" height="'+a.width+'" ':"",f='<svg xmlns="http://www.w3.org/2000/svg" '+m+p+' shape-rendering="crispEdges">'+c+d+`</svg>
|
|
38
|
+
`;return typeof n=="function"&&n(null,f),f};const ZS=pS,qn=fl,El=Cl,XS=Al;function 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;
|