@aws-amplify/ui-vue 2.1.1 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var ml=Object.defineProperty,hl=Object.defineProperties;var gl=Object.getOwnPropertyDescriptors;var Ka=Object.getOwnPropertySymbols;var yl=Object.prototype.hasOwnProperty,bl=Object.prototype.propertyIsEnumerable;var qa=(e,t,r)=>t in e?ml(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ne=(e,t)=>{for(var r in t||(t={}))yl.call(t,r)&&qa(e,r,t[r]);if(Ka)for(var r of Ka(t))bl.call(t,r)&&qa(e,r,t[r]);return e},rn=(e,t)=>hl(e,gl(t));Object.defineProperty(exports,"__esModule",{value:!0});exports[Symbol.toStringTag]="Module";var n=require("vue"),re=require("aws-amplify"),Bt=(e,t)=>{const r=e.__vccOpts||e;for(const[a,o]of t)r[a]=o;return r};const Cl={};function wl(e,t){return n.openBlock(),n.createElementBlock("div",null,[n.renderSlot(e.$slots,"default")])}var pe=Bt(Cl,[["render",wl]]);const Fe=n.defineComponent({setup(e){let t=n.useSlots();return(r,a)=>n.renderSlot(r.$slots,"fieldSetI",n.mergeProps(r.$attrs,{slotData:n.unref(t).default&&n.unref(t).default()}),()=>[n.createElementVNode("fieldset",n.mergeProps(r.$attrs,{"data-amplify-fieldset":""}),[n.renderSlot(r.$slots,"default")],16)])}}),we=n.defineComponent({props:{type:null,fullWidth:{type:[Boolean,String]},size:null,variation:null,fontWeight:null},setup(e){const{type:t,fullWidth:r,size:a,variation:o,fontWeight:i}=e;return(s,l)=>n.renderSlot(s.$slots,"buttont",n.normalizeProps(n.guardReactiveProps(s.$attrs)),()=>[n.createElementVNode("button",n.mergeProps({class:"amplify-button",type:t,style:{fontWeight:i},"data-fullwidth":r,"data-size":a,"data-fontWeight":i,"data-variation":o},s.$attrs,{"data-amplify-button":""}),[n.renderSlot(s.$slots,"default")],16)])}}),_l={key:0,class:"amplify-flex amplify-alert","data-variation":"error",style:{"align-items":"center","justify-content":"space-between"},role:"alert"},Sl={class:"amplify-flex",style:{"align-items":"center"}},xl=n.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon",viewBox:"0 0 24 24",fill:"currentColor"},[n.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),El=n.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon",viewBox:"0 0 24 24",fill:"currentColor"},[n.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),Re={setup(e){const t=n.ref(!0);function r(){t.value=!1}return(a,o)=>{const i=we;return t.value?(n.openBlock(),n.createElementBlock("div",_l,[n.createElementVNode("div",Sl,[xl,n.createElementVNode("div",null,[n.renderSlot(a.$slots,"default")])]),n.createVNode(i,{class:"amplify-field-group__control","data-fullwidth":"false","data-variation":"link",type:"button",onClick:r},{default:n.withCtx(()=>[El]),_:1})])):n.createCommentVNode("",!0)}}},De=n.defineComponent({setup(e){let t=n.useSlots();return(r,a)=>n.renderSlot(r.$slots,"formt",n.mergeProps(r.$attrs,{slotData:n.unref(t).default&&n.unref(t).default()}),()=>[n.createElementVNode("form",n.mergeProps({"data-amplify-form":""},r.$attrs),[n.renderSlot(r.$slots,"default")],16)])}}),Oe=n.defineComponent({setup(e){let t=n.useSlots();return(r,a)=>n.renderSlot(r.$slots,"footert",n.mergeProps(r.$attrs,{slotData:n.unref(t).default&&n.unref(t).default()}),()=>[n.createElementVNode("footer",n.normalizeProps(n.guardReactiveProps(r.$attrs)),[n.renderSlot(r.$slots,"default")],16)])}});var tr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Al(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),t}function Il(e,t,r,a){for(var o=e.length,i=r+(a?1:-1);a?i--:++i<o;)if(t(e[i],i,e))return i;return-1}var Nl=Il;function Pl(e){return e!==e}var Tl=Pl;function $l(e,t,r){for(var a=r-1,o=e.length;++a<o;)if(e[a]===t)return a;return-1}var kl=$l,Bl=Nl,Fl=Tl,Rl=kl;function Dl(e,t,r){return t===t?Rl(e,t,r):Bl(e,Fl,r)}var Ol=Dl,Vl=typeof tr=="object"&&tr&&tr.Object===Object&&tr,Ya=Vl,Ul=Ya,Ml=typeof self=="object"&&self&&self.Object===Object&&self,Ll=Ul||Ml||Function("return this")(),Ve=Ll,zl=Ve,jl=zl.Symbol,rr=jl,Za=rr,Ja=Object.prototype,Gl=Ja.hasOwnProperty,Wl=Ja.toString,Ft=Za?Za.toStringTag:void 0;function Hl(e){var t=Gl.call(e,Ft),r=e[Ft];try{e[Ft]=void 0;var a=!0}catch{}var o=Wl.call(e);return a&&(t?e[Ft]=r:delete e[Ft]),o}var Kl=Hl,ql=Object.prototype,Yl=ql.toString;function Zl(e){return Yl.call(e)}var Jl=Zl,Xa=rr,Xl=Kl,Ql=Jl,eu="[object Null]",tu="[object Undefined]",Qa=Xa?Xa.toStringTag:void 0;function ru(e){return e==null?e===void 0?tu:eu:Qa&&Qa in Object(e)?Xl(e):Ql(e)}var tt=ru;function nu(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ue=nu,au=tt,ou=Ue,iu="[object AsyncFunction]",su="[object Function]",lu="[object GeneratorFunction]",uu="[object Proxy]";function cu(e){if(!ou(e))return!1;var t=au(e);return t==su||t==lu||t==iu||t==uu}var nn=cu,du=9007199254740991;function fu(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=du}var an=fu,vu=nn,pu=an;function mu(e){return e!=null&&pu(e.length)&&!vu(e)}var ot=mu,hu=Array.isArray,Pe=hu;function gu(e){return e!=null&&typeof e=="object"}var Ke=gu,yu=tt,bu=Pe,Cu=Ke,wu="[object String]";function _u(e){return typeof e=="string"||!bu(e)&&Cu(e)&&yu(e)==wu}var Su=_u,xu=/\s/;function Eu(e){for(var t=e.length;t--&&xu.test(e.charAt(t)););return t}var Au=Eu,Iu=Au,Nu=/^\s+/;function Pu(e){return e&&e.slice(0,Iu(e)+1).replace(Nu,"")}var Tu=Pu,$u=tt,ku=Ke,Bu="[object Symbol]";function Fu(e){return typeof e=="symbol"||ku(e)&&$u(e)==Bu}var nr=Fu,Ru=Tu,eo=Ue,Du=nr,to=0/0,Ou=/^[-+]0x[0-9a-f]+$/i,Vu=/^0b[01]+$/i,Uu=/^0o[0-7]+$/i,Mu=parseInt;function Lu(e){if(typeof e=="number")return e;if(Du(e))return to;if(eo(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=eo(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ru(e);var r=Vu.test(e);return r||Uu.test(e)?Mu(e.slice(2),r?2:8):Ou.test(e)?to:+e}var zu=Lu,ju=zu,ro=1/0,Gu=17976931348623157e292;function Wu(e){if(!e)return e===0?e:0;if(e=ju(e),e===ro||e===-ro){var t=e<0?-1:1;return t*Gu}return e===e?e:0}var Hu=Wu,Ku=Hu;function qu(e){var t=Ku(e),r=t%1;return t===t?r?t-r:t:0}var Yu=qu;function Zu(e,t){for(var r=-1,a=e==null?0:e.length,o=Array(a);++r<a;)o[r]=t(e[r],r,e);return o}var on=Zu,Ju=on;function Xu(e,t){return Ju(t,function(r){return e[r]})}var Qu=Xu;function ec(e,t){for(var r=-1,a=Array(e);++r<e;)a[r]=t(r);return a}var tc=ec,rc=tt,nc=Ke,ac="[object Arguments]";function oc(e){return nc(e)&&rc(e)==ac}var ic=oc,no=ic,sc=Ke,ao=Object.prototype,lc=ao.hasOwnProperty,uc=ao.propertyIsEnumerable,cc=no(function(){return arguments}())?no:function(e){return sc(e)&&lc.call(e,"callee")&&!uc.call(e,"callee")},ar=cc,it={exports:{}};function dc(){return!1}var fc=dc;(function(e,t){var r=Ve,a=fc,o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===o,l=s?r.Buffer:void 0,u=l?l.isBuffer:void 0,c=u||a;e.exports=c})(it,it.exports);var vc=9007199254740991,pc=/^(?:0|[1-9]\d*)$/;function mc(e,t){var r=typeof e;return t=t==null?vc:t,!!t&&(r=="number"||r!="symbol"&&pc.test(e))&&e>-1&&e%1==0&&e<t}var or=mc,hc=tt,gc=an,yc=Ke,bc="[object Arguments]",Cc="[object Array]",wc="[object Boolean]",_c="[object Date]",Sc="[object Error]",xc="[object Function]",Ec="[object Map]",Ac="[object Number]",Ic="[object Object]",Nc="[object RegExp]",Pc="[object Set]",Tc="[object String]",$c="[object WeakMap]",kc="[object ArrayBuffer]",Bc="[object DataView]",Fc="[object Float32Array]",Rc="[object Float64Array]",Dc="[object Int8Array]",Oc="[object Int16Array]",Vc="[object Int32Array]",Uc="[object Uint8Array]",Mc="[object Uint8ClampedArray]",Lc="[object Uint16Array]",zc="[object Uint32Array]",ne={};ne[Fc]=ne[Rc]=ne[Dc]=ne[Oc]=ne[Vc]=ne[Uc]=ne[Mc]=ne[Lc]=ne[zc]=!0;ne[bc]=ne[Cc]=ne[kc]=ne[wc]=ne[Bc]=ne[_c]=ne[Sc]=ne[xc]=ne[Ec]=ne[Ac]=ne[Ic]=ne[Nc]=ne[Pc]=ne[Tc]=ne[$c]=!1;function jc(e){return yc(e)&&gc(e.length)&&!!ne[hc(e)]}var Gc=jc;function Wc(e){return function(t){return e(t)}}var Hc=Wc,sn={exports:{}};(function(e,t){var r=Ya,a=t&&!t.nodeType&&t,o=a&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===a,s=i&&r.process,l=function(){try{var u=o&&o.require&&o.require("util").types;return u||s&&s.binding&&s.binding("util")}catch{}}();e.exports=l})(sn,sn.exports);var Kc=Gc,qc=Hc,oo=sn.exports,io=oo&&oo.isTypedArray,Yc=io?qc(io):Kc,ir=Yc,Zc=tc,Jc=ar,Xc=Pe,Qc=it.exports,ed=or,td=ir,rd=Object.prototype,nd=rd.hasOwnProperty;function ad(e,t){var r=Xc(e),a=!r&&Jc(e),o=!r&&!a&&Qc(e),i=!r&&!a&&!o&&td(e),s=r||a||o||i,l=s?Zc(e.length,String):[],u=l.length;for(var c in e)(t||nd.call(e,c))&&!(s&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||ed(c,u)))&&l.push(c);return l}var so=ad,od=Object.prototype;function id(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||od;return e===r}var sr=id;function sd(e,t){return function(r){return e(t(r))}}var lo=sd,ld=lo,ud=ld(Object.keys,Object),cd=ud,dd=sr,fd=cd,vd=Object.prototype,pd=vd.hasOwnProperty;function md(e){if(!dd(e))return fd(e);var t=[];for(var r in Object(e))pd.call(e,r)&&r!="constructor"&&t.push(r);return t}var uo=md,hd=so,gd=uo,yd=ot;function bd(e){return yd(e)?hd(e):gd(e)}var ln=bd,Cd=Qu,wd=ln;function _d(e){return e==null?[]:Cd(e,wd(e))}var Sd=_d,xd=Ol,Ed=ot,Ad=Su,Id=Yu,Nd=Sd,Pd=Math.max;function Td(e,t,r,a){e=Ed(e)?e:Nd(e),r=r&&!a?Id(r):0;var o=e.length;return r<0&&(r=Pd(o+r,0)),Ad(e)?r<=o&&e.indexOf(t,r)>-1:!!o&&xd(e,t,r)>-1}var $d=Td;/*! *****************************************************************************
1
+ "use strict";var ml=Object.defineProperty,hl=Object.defineProperties;var gl=Object.getOwnPropertyDescriptors;var Ka=Object.getOwnPropertySymbols;var yl=Object.prototype.hasOwnProperty,bl=Object.prototype.propertyIsEnumerable;var qa=(e,t,r)=>t in e?ml(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ne=(e,t)=>{for(var r in t||(t={}))yl.call(t,r)&&qa(e,r,t[r]);if(Ka)for(var r of Ka(t))bl.call(t,r)&&qa(e,r,t[r]);return e},rn=(e,t)=>hl(e,gl(t));Object.defineProperty(exports,"__esModule",{value:!0});exports[Symbol.toStringTag]="Module";var n=require("vue"),re=require("aws-amplify"),Bt=(e,t)=>{const r=e.__vccOpts||e;for(const[a,o]of t)r[a]=o;return r};const Cl={};function wl(e,t){return n.openBlock(),n.createElementBlock("div",null,[n.renderSlot(e.$slots,"default")])}var pe=Bt(Cl,[["render",wl]]);const Fe=n.defineComponent({setup(e){let t=n.useSlots();return(r,a)=>n.renderSlot(r.$slots,"fieldSetI",n.mergeProps(r.$attrs,{slotData:n.unref(t).default&&n.unref(t).default()}),()=>[n.createElementVNode("fieldset",n.mergeProps(r.$attrs,{"data-amplify-fieldset":""}),[n.renderSlot(r.$slots,"default")],16)])}}),we=n.defineComponent({props:{type:null,fullWidth:{type:[Boolean,String]},size:null,variation:null,fontWeight:null},setup(e){const{type:t,fullWidth:r,size:a,variation:o,fontWeight:i}=e;return(s,l)=>n.renderSlot(s.$slots,"buttont",n.normalizeProps(n.guardReactiveProps(s.$attrs)),()=>[n.createElementVNode("button",n.mergeProps({class:"amplify-button",type:t,style:{fontWeight:i},"data-fullwidth":r,"data-size":a,"data-fontWeight":i,"data-variation":o},s.$attrs,{"data-amplify-button":""}),[n.renderSlot(s.$slots,"default")],16)])}}),Sl={key:0,class:"amplify-flex amplify-alert","data-variation":"error",style:{"align-items":"center","justify-content":"space-between"},role:"alert"},_l={class:"amplify-flex",style:{"align-items":"center"}},xl=n.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon",viewBox:"0 0 24 24",fill:"currentColor"},[n.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),El=n.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon",viewBox:"0 0 24 24",fill:"currentColor"},[n.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),Re={setup(e){const t=n.ref(!0);function r(){t.value=!1}return(a,o)=>{const i=we;return t.value?(n.openBlock(),n.createElementBlock("div",Sl,[n.createElementVNode("div",_l,[xl,n.createElementVNode("div",null,[n.renderSlot(a.$slots,"default")])]),n.createVNode(i,{class:"amplify-field-group__control","data-fullwidth":"false","data-variation":"link",type:"button",onClick:r},{default:n.withCtx(()=>[El]),_:1})])):n.createCommentVNode("",!0)}}},Oe=n.defineComponent({setup(e){let t=n.useSlots();return(r,a)=>n.renderSlot(r.$slots,"formt",n.mergeProps(r.$attrs,{slotData:n.unref(t).default&&n.unref(t).default()}),()=>[n.createElementVNode("form",n.mergeProps({"data-amplify-form":""},r.$attrs),[n.renderSlot(r.$slots,"default")],16)])}}),De=n.defineComponent({setup(e){let t=n.useSlots();return(r,a)=>n.renderSlot(r.$slots,"footert",n.mergeProps(r.$attrs,{slotData:n.unref(t).default&&n.unref(t).default()}),()=>[n.createElementVNode("footer",n.normalizeProps(n.guardReactiveProps(r.$attrs)),[n.renderSlot(r.$slots,"default")],16)])}});var tr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Al(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),t}function Il(e,t,r,a){for(var o=e.length,i=r+(a?1:-1);a?i--:++i<o;)if(t(e[i],i,e))return i;return-1}var Nl=Il;function Pl(e){return e!==e}var Tl=Pl;function $l(e,t,r){for(var a=r-1,o=e.length;++a<o;)if(e[a]===t)return a;return-1}var kl=$l,Bl=Nl,Fl=Tl,Rl=kl;function Ol(e,t,r){return t===t?Rl(e,t,r):Bl(e,Fl,r)}var Dl=Ol,Vl=typeof tr=="object"&&tr&&tr.Object===Object&&tr,Ya=Vl,Ul=Ya,Ml=typeof self=="object"&&self&&self.Object===Object&&self,Ll=Ul||Ml||Function("return this")(),Ve=Ll,zl=Ve,jl=zl.Symbol,rr=jl,Za=rr,Ja=Object.prototype,Gl=Ja.hasOwnProperty,Wl=Ja.toString,Ft=Za?Za.toStringTag:void 0;function Hl(e){var t=Gl.call(e,Ft),r=e[Ft];try{e[Ft]=void 0;var a=!0}catch{}var o=Wl.call(e);return a&&(t?e[Ft]=r:delete e[Ft]),o}var Kl=Hl,ql=Object.prototype,Yl=ql.toString;function Zl(e){return Yl.call(e)}var Jl=Zl,Xa=rr,Xl=Kl,Ql=Jl,eu="[object Null]",tu="[object Undefined]",Qa=Xa?Xa.toStringTag:void 0;function ru(e){return e==null?e===void 0?tu:eu:Qa&&Qa in Object(e)?Xl(e):Ql(e)}var tt=ru;function nu(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ue=nu,au=tt,ou=Ue,iu="[object AsyncFunction]",su="[object Function]",lu="[object GeneratorFunction]",uu="[object Proxy]";function cu(e){if(!ou(e))return!1;var t=au(e);return t==su||t==lu||t==iu||t==uu}var nn=cu,du=9007199254740991;function fu(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=du}var an=fu,vu=nn,pu=an;function mu(e){return e!=null&&pu(e.length)&&!vu(e)}var ot=mu,hu=Array.isArray,Pe=hu;function gu(e){return e!=null&&typeof e=="object"}var Ke=gu,yu=tt,bu=Pe,Cu=Ke,wu="[object String]";function Su(e){return typeof e=="string"||!bu(e)&&Cu(e)&&yu(e)==wu}var _u=Su,xu=/\s/;function Eu(e){for(var t=e.length;t--&&xu.test(e.charAt(t)););return t}var Au=Eu,Iu=Au,Nu=/^\s+/;function Pu(e){return e&&e.slice(0,Iu(e)+1).replace(Nu,"")}var Tu=Pu,$u=tt,ku=Ke,Bu="[object Symbol]";function Fu(e){return typeof e=="symbol"||ku(e)&&$u(e)==Bu}var nr=Fu,Ru=Tu,eo=Ue,Ou=nr,to=0/0,Du=/^[-+]0x[0-9a-f]+$/i,Vu=/^0b[01]+$/i,Uu=/^0o[0-7]+$/i,Mu=parseInt;function Lu(e){if(typeof e=="number")return e;if(Ou(e))return to;if(eo(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=eo(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ru(e);var r=Vu.test(e);return r||Uu.test(e)?Mu(e.slice(2),r?2:8):Du.test(e)?to:+e}var zu=Lu,ju=zu,ro=1/0,Gu=17976931348623157e292;function Wu(e){if(!e)return e===0?e:0;if(e=ju(e),e===ro||e===-ro){var t=e<0?-1:1;return t*Gu}return e===e?e:0}var Hu=Wu,Ku=Hu;function qu(e){var t=Ku(e),r=t%1;return t===t?r?t-r:t:0}var Yu=qu;function Zu(e,t){for(var r=-1,a=e==null?0:e.length,o=Array(a);++r<a;)o[r]=t(e[r],r,e);return o}var on=Zu,Ju=on;function Xu(e,t){return Ju(t,function(r){return e[r]})}var Qu=Xu;function ec(e,t){for(var r=-1,a=Array(e);++r<e;)a[r]=t(r);return a}var tc=ec,rc=tt,nc=Ke,ac="[object Arguments]";function oc(e){return nc(e)&&rc(e)==ac}var ic=oc,no=ic,sc=Ke,ao=Object.prototype,lc=ao.hasOwnProperty,uc=ao.propertyIsEnumerable,cc=no(function(){return arguments}())?no:function(e){return sc(e)&&lc.call(e,"callee")&&!uc.call(e,"callee")},ar=cc,it={exports:{}};function dc(){return!1}var fc=dc;(function(e,t){var r=Ve,a=fc,o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===o,l=s?r.Buffer:void 0,u=l?l.isBuffer:void 0,c=u||a;e.exports=c})(it,it.exports);var vc=9007199254740991,pc=/^(?:0|[1-9]\d*)$/;function mc(e,t){var r=typeof e;return t=t==null?vc:t,!!t&&(r=="number"||r!="symbol"&&pc.test(e))&&e>-1&&e%1==0&&e<t}var or=mc,hc=tt,gc=an,yc=Ke,bc="[object Arguments]",Cc="[object Array]",wc="[object Boolean]",Sc="[object Date]",_c="[object Error]",xc="[object Function]",Ec="[object Map]",Ac="[object Number]",Ic="[object Object]",Nc="[object RegExp]",Pc="[object Set]",Tc="[object String]",$c="[object WeakMap]",kc="[object ArrayBuffer]",Bc="[object DataView]",Fc="[object Float32Array]",Rc="[object Float64Array]",Oc="[object Int8Array]",Dc="[object Int16Array]",Vc="[object Int32Array]",Uc="[object Uint8Array]",Mc="[object Uint8ClampedArray]",Lc="[object Uint16Array]",zc="[object Uint32Array]",ne={};ne[Fc]=ne[Rc]=ne[Oc]=ne[Dc]=ne[Vc]=ne[Uc]=ne[Mc]=ne[Lc]=ne[zc]=!0;ne[bc]=ne[Cc]=ne[kc]=ne[wc]=ne[Bc]=ne[Sc]=ne[_c]=ne[xc]=ne[Ec]=ne[Ac]=ne[Ic]=ne[Nc]=ne[Pc]=ne[Tc]=ne[$c]=!1;function jc(e){return yc(e)&&gc(e.length)&&!!ne[hc(e)]}var Gc=jc;function Wc(e){return function(t){return e(t)}}var Hc=Wc,sn={exports:{}};(function(e,t){var r=Ya,a=t&&!t.nodeType&&t,o=a&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===a,s=i&&r.process,l=function(){try{var u=o&&o.require&&o.require("util").types;return u||s&&s.binding&&s.binding("util")}catch{}}();e.exports=l})(sn,sn.exports);var Kc=Gc,qc=Hc,oo=sn.exports,io=oo&&oo.isTypedArray,Yc=io?qc(io):Kc,ir=Yc,Zc=tc,Jc=ar,Xc=Pe,Qc=it.exports,ed=or,td=ir,rd=Object.prototype,nd=rd.hasOwnProperty;function ad(e,t){var r=Xc(e),a=!r&&Jc(e),o=!r&&!a&&Qc(e),i=!r&&!a&&!o&&td(e),s=r||a||o||i,l=s?Zc(e.length,String):[],u=l.length;for(var c in e)(t||nd.call(e,c))&&!(s&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||ed(c,u)))&&l.push(c);return l}var so=ad,od=Object.prototype;function id(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||od;return e===r}var sr=id;function sd(e,t){return function(r){return e(t(r))}}var lo=sd,ld=lo,ud=ld(Object.keys,Object),cd=ud,dd=sr,fd=cd,vd=Object.prototype,pd=vd.hasOwnProperty;function md(e){if(!dd(e))return fd(e);var t=[];for(var r in Object(e))pd.call(e,r)&&r!="constructor"&&t.push(r);return t}var uo=md,hd=so,gd=uo,yd=ot;function bd(e){return yd(e)?hd(e):gd(e)}var ln=bd,Cd=Qu,wd=ln;function Sd(e){return e==null?[]:Cd(e,wd(e))}var _d=Sd,xd=Dl,Ed=ot,Ad=_u,Id=Yu,Nd=_d,Pd=Math.max;function Td(e,t,r,a){e=Ed(e)?e:Nd(e),r=r&&!a?Id(r):0;var o=e.length;return r<0&&(r=Pd(o+r,0)),Ad(e)?r<=o&&e.indexOf(t,r)>-1:!!o&&xd(e,t,r)>-1}var $d=Td;/*! *****************************************************************************
2
2
  Copyright (c) Microsoft Corporation.
3
3
 
4
4
  Permission to use, copy, modify, and/or distribute this software for any
@@ -11,10 +11,10 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
11
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
12
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
13
  PERFORMANCE OF THIS SOFTWARE.
14
- ***************************************************************************** */var A=function(){return A=Object.assign||function(t){for(var r,a=1,o=arguments.length;a<o;a++){r=arguments[a];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},A.apply(this,arguments)};function un(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(r[a[o]]=e[a[o]]);return r}function W(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],a=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function J(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var a=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=a.next()).done;)i.push(o.value)}catch(l){s={error:l}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(s)throw s.error}}return i}function ce(e,t,r){if(r||arguments.length===2)for(var a=0,o=t.length,i;a<o;a++)(i||!(a in t))&&(i||(i=Array.prototype.slice.call(t,0,a)),i[a]=t[a]);return e.concat(i||Array.prototype.slice.call(t))}var co=".",fo={},cn="xstate.guard",kd="",st=!0,dn;function oe(e){return Object.keys(e)}function fn(e,t,r){r===void 0&&(r=co);var a=Rt(e,r),o=Rt(t,r);return H(o)?H(a)?o===a:!1:H(a)?a in o:oe(a).every(function(i){return i in o?fn(a[i],o[i]):!1})}function vo(e){try{return H(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 vn(e,t){try{return ut(e)?e:e.toString().split(t)}catch{throw new Error("'".concat(e,"' is not a valid state path."))}}function Bd(e){return typeof e=="object"&&"value"in e&&"context"in e&&"event"in e&&"_event"in e}function Rt(e,t){if(Bd(e))return e.value;if(ut(e))return lr(e);if(typeof e!="string")return e;var r=vn(e,t);return lr(r)}function lr(e){if(e.length===1)return e[0];for(var t={},r=t,a=0;a<e.length-1;a++)a===e.length-2?r[e[a]]=e[a+1]:(r[e[a]]={},r=r[e[a]]);return t}function Dt(e,t){for(var r={},a=oe(e),o=0;o<a.length;o++){var i=a[o];r[i]=t(e[i],i,e,o)}return r}function po(e,t,r){var a,o,i={};try{for(var s=W(oe(e)),l=s.next();!l.done;l=s.next()){var u=l.value,c=e[u];!r(c)||(i[u]=t(c,u,e))}}catch(d){a={error:d}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(a)throw a.error}}return i}var Fd=function(e){return function(t){var r,a,o=t;try{for(var i=W(e),s=i.next();!s.done;s=i.next()){var l=s.value;o=o[l]}}catch(u){r={error:u}}finally{try{s&&!s.done&&(a=i.return)&&a.call(i)}finally{if(r)throw r.error}}return o}};function Rd(e,t){return function(r){var a,o,i=r;try{for(var s=W(e),l=s.next();!l.done;l=s.next()){var u=l.value;i=i[t][u]}}catch(c){a={error:c}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(a)throw a.error}}return i}}function ur(e){if(!e)return[[]];if(H(e))return[[e]];var t=ie(oe(e).map(function(r){var a=e[r];return typeof a!="string"&&(!a||!Object.keys(a).length)?[[r]]:ur(e[r]).map(function(o){return[r].concat(o)})}));return t}function ie(e){var t;return(t=[]).concat.apply(t,ce([],J(e),!1))}function mo(e){return ut(e)?e:[e]}function Te(e){return e===void 0?[]:mo(e)}function cr(e,t,r){var a,o;if(X(e))return e(t,r.data);var i={};try{for(var s=W(Object.keys(e)),l=s.next();!l.done;l=s.next()){var u=l.value,c=e[u];X(c)?i[u]=c(t,r.data):i[u]=c}}catch(d){a={error:d}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(a)throw a.error}}return i}function Dd(e){return/^(done|error)\./.test(e)}function ho(e){return!!(e instanceof Promise||e!==null&&(X(e)||typeof e=="object")&&X(e.then))}function Od(e){return e!==null&&typeof e=="object"&&"transition"in e&&typeof e.transition=="function"}function go(e,t){var r,a,o=J([[],[]],2),i=o[0],s=o[1];try{for(var l=W(e),u=l.next();!u.done;u=l.next()){var c=u.value;t(c)?i.push(c):s.push(c)}}catch(d){r={error:d}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return[i,s]}function yo(e,t){return Dt(e.states,function(r,a){if(!!r){var o=(H(t)?void 0:t[a])||(r?r.current:void 0);if(!!o)return{current:o,states:yo(r,o)}}})}function Vd(e,t){return{current:t,states:yo(e,t)}}function bo(e,t,r,a){var o=e&&r.reduce(function(i,s){var l,u,c=s.assignment,d={state:a,action:s,_event:t},v={};if(X(c))v=c(i,t.data,d);else try{for(var f=W(oe(c)),p=f.next();!p.done;p=f.next()){var m=p.value,h=c[m];v[m]=X(h)?h(i,t.data,d):h}}catch(C){l={error:C}}finally{try{p&&!p.done&&(u=f.return)&&u.call(f)}finally{if(l)throw l.error}}return Object.assign({},i,v)},e);return o}var lt=function(){};function ut(e){return Array.isArray(e)}function X(e){return typeof e=="function"}function H(e){return typeof e=="string"}function Co(e,t){if(!!e)return H(e)?{type:cn,name:e,predicate:t?t[e]:void 0}:X(e)?{type:cn,name:e.name,predicate:e}:e}function Ud(e){try{return"subscribe"in e&&X(e.subscribe)}catch{return!1}}var wo=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ct=(dn={},dn[wo]=function(){return this},dn);function ze(e){try{return"__xstatenode"in e}catch{return!1}}function Md(e){return!!e&&typeof e.send=="function"}var Ld=function(){var e=0;return function(){return e++,e.toString(16)}}();function pn(e,t){return H(e)||typeof e=="number"?A({type:e},t):e}function ye(e,t){if(!H(e)&&"$$type"in e&&e.$$type==="scxml")return e;var r=pn(e);return A({name:r.type,data:r,$$type:"scxml",type:"external"},t)}function dt(e,t){var r=mo(t).map(function(a){return typeof a=="undefined"||typeof a=="string"||ze(a)?{target:a,event:e}:A(A({},a),{event:e})});return r}function zd(e){if(!(e===void 0||e===kd))return Te(e)}function _o(e,t,r,a,o){var i=e.options.guards,s={state:o,cond:t,_event:a};if(t.type===cn)return((i==null?void 0:i[t.name])||t.predicate)(r,a.data,s);var l=i[t.type];if(!l)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return l(r,a.data,s)}function So(e){return typeof e=="string"?{type:e}:e}function xo(e,t,r){if(typeof e=="object")return e;var a=function(){};return{next:e,error:t||a,complete:r||a}}function dr(e,t){return"".concat(e,":invocation[").concat(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 ft;(function(e){e.Parent="#_parent",e.Internal="#_internal"})(ft||(ft={}));var mn=ee.Start,hn=ee.Stop,fr=ee.Raise,vr=ee.Send,Eo=ee.Cancel,jd=ee.NullEvent,gn=ee.Assign;ee.After;ee.DoneState;var Ao=ee.Log,Gd=ee.Init,yn=ee.Invoke;ee.ErrorExecution;var Io=ee.ErrorPlatform,Wd=ee.ErrorCustom,bn=ee.Update,Hd=ee.Choose,Kd=ee.Pure,pr=ye({type:Gd});function Cn(e,t){return t&&t[e]||void 0}function Ot(e,t){var r;if(H(e)||typeof e=="number"){var a=Cn(e,t);X(a)?r={type:e,exec:a}:a?r=a:r={type:e,exec:void 0}}else if(X(e))r={type:e.name||e.toString(),exec:e};else{var a=Cn(e.type,t);if(X(a))r=A(A({},e),{exec:a});else if(a){var o=a.type||e.type;r=A(A(A({},a),e),{type:o})}else r=e}return r}var mr=function(e,t){if(!e)return[];var r=ut(e)?e:[e];return r.map(function(a){return Ot(a,t)})};function wn(e){var t=Ot(e);return A(A({id:H(e)?e:t.id},t),{type:t.type})}function qd(e){return H(e)?{type:fr,event:e}:hr(e,{to:ft.Internal})}function Yd(e){return{type:fr,_event:ye(e.event)}}function hr(e,t){return{to:t?t.to:void 0,type:vr,event:X(e)?e:pn(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:X(e)?e.name:vo(e)}}function Zd(e,t,r,a){var o={_event:r},i=ye(X(e.event)?e.event(t,r.data,o):e.event),s;if(H(e.delay)){var l=a&&a[e.delay];s=X(l)?l(t,r.data,o):l}else s=X(e.delay)?e.delay(t,r.data,o):e.delay;var u=X(e.to)?e.to(t,r.data,o):e.to;return A(A({},e),{to:u,_event:i,event:i.data,delay:s})}function Jd(e,t){return hr(e,A(A({},t),{to:ft.Parent}))}function Y(){return Jd(bn)}var Xd=function(e,t,r){return A(A({},e),{value:H(e.expr)?e.expr:e.expr(t,r.data,{_event:r})})},Qd=function(e){return{type:Eo,sendId:e}};function ef(e){var t=wn(e);return{type:ee.Start,activity:t,exec:void 0}}function tf(e){var t=X(e)?e:wn(e);return{type:ee.Stop,activity:t,exec:void 0}}function rf(e,t,r){var a=X(e.activity)?e.activity(t,r.data):e.activity,o=typeof a=="string"?{id:a}:a,i={type:ee.Stop,activity:o};return i}var qe=function(e){return{type:gn,assignment:e}};function nf(e,t){var r=t?"#".concat(t):"";return"".concat(ee.After,"(").concat(e,")").concat(r)}function gr(e,t){var r="".concat(ee.DoneState,".").concat(e),a={type:r,data:t};return a.toString=function(){return r},a}function yr(e,t){var r="".concat(ee.DoneInvoke,".").concat(e),a={type:r,data:t};return a.toString=function(){return r},a}function Vt(e,t){var r="".concat(ee.ErrorPlatform,".").concat(e),a={type:r,data:t};return a.toString=function(){return r},a}function af(e,t){return hr(function(r,a){return a},A(A({},t),{to:e}))}function _n(e,t,r,a,o,i){i===void 0&&(i=!1);var s=J(i?[[],o]:go(o,function(f){return f.type===gn}),2),l=s[0],u=s[1],c=l.length?bo(r,a,l,t):r,d=i?[r]:void 0,v=ie(u.map(function(f){var p;switch(f.type){case fr:return Yd(f);case vr:var m=Zd(f,c,a,e.options.delays);return m;case Ao:return Xd(f,c,a);case Hd:{var h=f,C=(p=h.conds.find(function(B){var V=Co(B.cond,e.options.guards);return!V||_o(e,V,c,a,t)}))===null||p===void 0?void 0:p.actions;if(!C)return[];var b=J(_n(e,t,c,a,mr(Te(C),e.options.actions),i),2),g=b[0],w=b[1];return c=w,d==null||d.push(c),g}case Kd:{var C=f.get(c,a.data);if(!C)return[];var _=J(_n(e,t,c,a,mr(Te(C),e.options.actions),i),2),S=_[0],I=_[1];return c=I,d==null||d.push(c),S}case hn:return rf(f,c,a);case gn:{c=bo(c,a,[f],t),d==null||d.push(c);break}default:var x=Ot(f,e.options.actions),N=x.exec;if(N&&d){var k=d.length-1;x=A(A({},x),{exec:function(B){for(var V=[],O=1;O<arguments.length;O++)V[O-1]=arguments[O];N.apply(void 0,ce([d[k]],J(V),!1))}})}return x}}).filter(function(f){return!!f}));return[v,c]}var br=function(e){return e.type==="atomic"||e.type==="final"};function vt(e){return oe(e.states).map(function(t){return e.states[t]})}function No(e){var t=[e];return br(e)?t:t.concat(ie(vt(e).map(No)))}function pt(e,t){var r,a,o,i,s,l,u,c,d=new Set(e),v=Sn(d),f=new Set(t);try{for(var p=W(f),m=p.next();!m.done;m=p.next())for(var h=m.value,C=h.parent;C&&!f.has(C);)f.add(C),C=C.parent}catch(k){r={error:k}}finally{try{m&&!m.done&&(a=p.return)&&a.call(p)}finally{if(r)throw r.error}}var b=Sn(f);try{for(var g=W(f),w=g.next();!w.done;w=g.next()){var h=w.value;if(h.type==="compound"&&(!b.get(h)||!b.get(h).length))v.get(h)?v.get(h).forEach(function(B){return f.add(B)}):h.initialStateNodes.forEach(function(B){return f.add(B)});else if(h.type==="parallel")try{for(var _=(s=void 0,W(vt(h))),S=_.next();!S.done;S=_.next()){var I=S.value;I.type!=="history"&&(f.has(I)||(f.add(I),v.get(I)?v.get(I).forEach(function(B){return f.add(B)}):I.initialStateNodes.forEach(function(B){return f.add(B)})))}}catch(B){s={error:B}}finally{try{S&&!S.done&&(l=_.return)&&l.call(_)}finally{if(s)throw s.error}}}}catch(k){o={error:k}}finally{try{w&&!w.done&&(i=g.return)&&i.call(g)}finally{if(o)throw o.error}}try{for(var x=W(f),N=x.next();!N.done;N=x.next())for(var h=N.value,C=h.parent;C&&!f.has(C);)f.add(C),C=C.parent}catch(k){u={error:k}}finally{try{N&&!N.done&&(c=x.return)&&c.call(x)}finally{if(u)throw u.error}}return f}function Po(e,t){var r=t.get(e);if(!r)return{};if(e.type==="compound"){var a=r[0];if(a){if(br(a))return a.key}else return{}}var o={};return r.forEach(function(i){o[i.key]=Po(i,t)}),o}function Sn(e){var t,r,a=new Map;try{for(var o=W(e),i=o.next();!i.done;i=o.next()){var s=i.value;a.has(s)||a.set(s,[]),s.parent&&(a.has(s.parent)||a.set(s.parent,[]),a.get(s.parent).push(s))}}catch(l){t={error:l}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return a}function of(e,t){var r=pt([e],t);return Po(e,Sn(r))}function Cr(e,t){return Array.isArray(e)?e.some(function(r){return r===t}):e instanceof Set?e.has(t):!1}function sf(e){return ce([],J(new Set(ie(ce([],J(e.map(function(t){return t.ownEvents})),!1)))),!1)}function Ut(e,t){return t.type==="compound"?vt(t).some(function(r){return r.type==="final"&&Cr(e,r)}):t.type==="parallel"?vt(t).every(function(r){return Ut(e,r)}):!1}function lf(e){return e===void 0&&(e=[]),e.reduce(function(t,r){return r.meta!==void 0&&(t[r.id]=r.meta),t},{})}function To(e){return new Set(ie(e.map(function(t){return t.tags})))}function $o(e,t){if(e===t)return!0;if(e===void 0||t===void 0)return!1;if(H(e)||H(t))return e===t;var r=oe(e),a=oe(t);return r.length===a.length&&r.every(function(o){return $o(e[o],t[o])})}function uf(e){return H(e)?!1:"value"in e&&"history"in e}function cf(e,t){var r=e.exec,a=A(A({},e),{exec:r!==void 0?function(){return r(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0});return a}var Ye=function(){function e(t){var r=this,a;this.actions=[],this.activities=fo,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||fo,this.meta=lf(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=(a=Array.isArray(t.tags)?new Set(t.tags):t.tags)!==null&&a!==void 0?a:new Set,this.machine=t.machine,Object.defineProperty(this,"nextEvents",{get:function(){return sf(r.configuration)}})}return e.from=function(t,r){if(t instanceof e)return t.context!==r?new e({value:t.value,context:r,_event:t._event,_sessionid:null,historyValue:t.historyValue,history:t.history,actions:[],activities:t.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):t;var a=pr;return new e({value:t,context:r,_event:a,_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,r){if(t instanceof e){if(!t.actions.length)return t;var a=pr;return new e({value:t.value,context:r,_event:a,_sessionid:null,historyValue:t.historyValue,history:t.history,activities:t.activities,configuration:t.configuration,transitions:[],children:{}})}return e.from(t,r)},e.prototype.toStrings=function(t,r){var a=this;if(t===void 0&&(t=this.value),r===void 0&&(r="."),H(t))return[t];var o=oe(t);return o.concat.apply(o,ce([],J(o.map(function(i){return a.toStrings(t[i],r).map(function(s){return i+r+s})})),!1))},e.prototype.toJSON=function(){var t=this;t.configuration,t.transitions;var r=t.tags;t.machine;var a=un(t,["configuration","transitions","tags","machine"]);return A(A({},a),{tags:Array.from(r)})},e.prototype.matches=function(t){return fn(t,this.value)},e.prototype.hasTag=function(t){return this.tags.has(t)},e.prototype.can=function(t){var r;lt(!!this.machine);var a=(r=this.machine)===null||r===void 0?void 0:r.getTransitionData(this,t);return!!(a==null?void 0:a.transitions.length)&&a.transitions.some(function(o){return o.target!==void 0||o.actions.length})},e}(),wr=[],Mt=function(e,t){wr.push(e);var r=t(e);return wr.pop(),r},df=function(e){return e(wr[wr.length-1])};function ko(e){return A({id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}},ct)}function ff(e,t,r,a){var o,i=So(e.src),s=(o=t==null?void 0:t.options.services)===null||o===void 0?void 0:o[i.type],l=e.data?cr(e.data,r,a):void 0,u=s?Bo(s,e.id,l):ko(e.id);return u.meta=e,u}function Bo(e,t,r){var a=ko(t);if(a.deferred=!0,ze(e)){var o=a.state=Mt(void 0,function(){return(r?e.withContext(r):e).initialState});a.getSnapshot=function(){return o}}return a}function vf(e){try{return typeof e.send=="function"}catch{return!1}}function pf(e){return vf(e)&&"id"in e}function mf(e){return A(A({subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}},ct),e)}function hf(e){if(typeof e=="string"){var t={type:e};return t.toString=function(){return e},t}return e}function _r(e){return A(A({type:yn},e),{toJSON:function(){e.onDone,e.onError;var t=un(e,["onDone","onError"]);return A(A({},t),{type:yn,src:hf(e.src)})}})}var mt="",xn="#",Lt="*",ht={},gt=function(e){return e[0]===xn},gf=function(){return{actions:{},guards:{},services:{},activities:{},delays:{}}},yf=function(e,t,r){var a=r.slice(0,-1).some(function(i){return!("cond"in i)&&!("in"in i)&&(H(i.target)||ze(i.target))}),o=t===mt?"the transient event":"event '".concat(t,"'");lt(!a,"One or more transitions for ".concat(o," on state '").concat(e.id,"' are unreachable. ")+"Make sure that the default transition is the last one defined.")},bf=function(){function e(t,r,a){var o=this;a===void 0&&(a="context"in t?t.context:void 0);var i;this.config=t,this._context=a,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(gf(),r),this.parent=this.options._parent,this.key=this.config.key||this.options._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:co),this.id=this.config.id||ce([this.machine.key],J(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&oe(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:(i=this.config.schema)!==null&&i!==void 0?i:{},this.description=this.config.description,this.initial=this.config.initial,this.states=this.config.states?Dt(this.config.states,function(u,c){var d,v=new e(u,{_parent:o,_key:c});return Object.assign(o.idMap,A((d={},d[v.id]=v,d),v.idMap)),v}):ht;var s=0;function l(u){var c,d;u.order=s++;try{for(var v=W(vt(u)),f=v.next();!f.done;f=v.next()){var p=f.value;l(p)}}catch(m){c={error:m}}finally{try{f&&!f.done&&(d=v.return)&&d.call(v)}finally{if(c)throw c.error}}}l(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(u){var c=u.event;return c===mt}):mt in this.config.on:!1),this.strict=!!this.config.strict,this.onEntry=Te(this.config.entry||this.config.onEntry).map(function(u){return Ot(u)}),this.onExit=Te(this.config.exit||this.config.onExit).map(function(u){return Ot(u)}),this.meta=this.config.meta,this.doneData=this.type==="final"?this.config.data:void 0,this.invoke=Te(this.config.invoke).map(function(u,c){var d,v;if(ze(u)){var f=dr(o.id,c);return o.machine.options.services=A((d={},d[f]=u,d),o.machine.options.services),_r({src:f,id:f})}else if(H(u.src)){var f=u.id||dr(o.id,c);return _r(A(A({},u),{id:f,src:u.src}))}else if(ze(u.src)||X(u.src)){var f=u.id||dr(o.id,c);return o.machine.options.services=A((v={},v[f]=u.src,v),o.machine.options.services),_r(A(A({id:f},u),{src:f}))}else{var p=u.src;return _r(A(A({id:dr(o.id,c)},u),{src:p}))}}),this.activities=Te(this.config.activities).concat(this.invoke).map(function(u){return wn(u)}),this.transition=this.transition.bind(this),this.tags=Te(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||No(this).forEach(function(t){return t.on})},e.prototype.withConfig=function(t,r){var a=this.options,o=a.actions,i=a.activities,s=a.guards,l=a.services,u=a.delays;return new e(this.config,{actions:A(A({},o),t.actions),activities:A(A({},i),t.activities),guards:A(A({},s),t.guards),services:A(A({},l),t.services),delays:A(A({},u),t.delays)},r!=null?r:this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return X(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:Dt(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(r,a){return r[a.eventType]=r[a.eventType]||[],r[a.eventType].push(a),r},{})},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 r=t===mt,a=this.transitions.filter(function(o){var i=o.eventType===t;return r?i:i||o.eventType===Lt});return this.__cache.candidates[t]=a,a},e.prototype.getDelayedTransitions=function(){var t=this,r=this.config.after;if(!r)return[];var a=function(i,s){var l=X(i)?"".concat(t.id,":delay[").concat(s,"]"):i,u=nf(l,t.id);return t.onEntry.push(hr(u,{delay:i})),t.onExit.push(Qd(u)),u},o=ut(r)?r.map(function(i,s){var l=a(i.delay,s);return A(A({},i),{event:l})}):ie(oe(r).map(function(i,s){var l=r[i],u=H(l)?{target:l}:l,c=isNaN(+i)?i:+i,d=a(c,s);return Te(u).map(function(v){return A(A({},v),{event:d,delay:c})})}));return o.map(function(i){var s=i.delay;return A(A({},t.formatTransition(i)),{delay:s})})},e.prototype.getStateNodes=function(t){var r,a=this;if(!t)return[];var o=t instanceof Ye?t.value:Rt(t,this.delimiter);if(H(o)){var i=this.getStateNode(o).initial;return i!==void 0?this.getStateNodes((r={},r[o]=i,r)):[this,this.states[o]]}var s=oe(o),l=[this];return l.push.apply(l,ce([],J(ie(s.map(function(u){return a.getStateNode(u).getStateNodes(o[u])}))),!1)),l},e.prototype.handles=function(t){var r=vo(t);return this.events.includes(r)},e.prototype.resolveState=function(t){var r=Array.from(pt([],this.getStateNodes(t.value)));return new Ye(A(A({},t),{value:this.resolve(t.value),configuration:r,done:Ut(r,this),tags:To(r)}))},e.prototype.transitionLeafNode=function(t,r,a){var o=this.getStateNode(t),i=o.next(r,a);return!i||!i.transitions.length?this.next(r,a):i},e.prototype.transitionCompoundNode=function(t,r,a){var o=oe(t),i=this.getStateNode(o[0]),s=i._transition(t[o[0]],r,a);return!s||!s.transitions.length?this.next(r,a):s},e.prototype.transitionParallelNode=function(t,r,a){var o,i,s={};try{for(var l=W(oe(t)),u=l.next();!u.done;u=l.next()){var c=u.value,d=t[c];if(!!d){var v=this.getStateNode(c),f=v._transition(d,r,a);f&&(s[c]=f)}}}catch(g){o={error:g}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}var p=oe(s).map(function(g){return s[g]}),m=ie(p.map(function(g){return g.transitions})),h=p.some(function(g){return g.transitions.length>0});if(!h)return this.next(r,a);var C=ie(p.map(function(g){return g.entrySet})),b=ie(oe(s).map(function(g){return s[g].configuration}));return{transitions:m,entrySet:C,exitSet:ie(p.map(function(g){return g.exitSet})),configuration:b,source:r,actions:ie(oe(s).map(function(g){return s[g].actions}))}},e.prototype._transition=function(t,r,a){return H(t)?this.transitionLeafNode(t,r,a):oe(t).length===1?this.transitionCompoundNode(t,r,a):this.transitionParallelNode(t,r,a)},e.prototype.getTransitionData=function(t,r){return this._transition(t.value,t,ye(r))},e.prototype.next=function(t,r){var a,o,i=this,s=r.name,l=[],u=[],c;try{for(var d=W(this.getCandidates(s)),v=d.next();!v.done;v=d.next()){var f=v.value,p=f.cond,m=f.in,h=t.context,C=m?H(m)&&gt(m)?t.matches(Rt(this.getStateNodeById(m).path,this.delimiter)):fn(Rt(m,this.delimiter),Fd(this.path.slice(0,-2))(t.value)):!0,b=!1;try{b=!p||_o(this.machine,p,h,r,t)}catch(S){throw new Error("Unable to evaluate guard '".concat(p.name||p.type,"' in transition for event '").concat(s,"' in state node '").concat(this.id,`':
15
- `).concat(S.message))}if(b&&C){f.target!==void 0&&(u=f.target),l.push.apply(l,ce([],J(f.actions),!1)),c=f;break}}}catch(S){a={error:S}}finally{try{v&&!v.done&&(o=d.return)&&o.call(d)}finally{if(a)throw a.error}}if(!!c){if(!u.length)return{transitions:[c],entrySet:[],exitSet:[],configuration:t.value?[this]:[],source:t,actions:l};var g=ie(u.map(function(S){return i.getRelativeStateNodes(S,t.historyValue)})),w=!!c.internal,_=w?[]:ie(g.map(function(S){return i.nodesFromChild(S)}));return{transitions:[c],entrySet:_,exitSet:w?[]:[this],configuration:g,source:t,actions:l}}},e.prototype.nodesFromChild=function(t){if(t.escapes(this))return[];for(var r=[],a=t;a&&a!==this;)r.push(a),a=a.parent;return r.push(this),r},e.prototype.escapes=function(t){if(this===t)return!1;for(var r=this.parent;r;){if(r===t)return!1;r=r.parent}return!0},e.prototype.getActions=function(t,r,a,o){var i,s,l,u,c=pt([],o?this.getStateNodes(o.value):[this]),d=t.configuration.length?pt(c,t.configuration):c;try{for(var v=W(d),f=v.next();!f.done;f=v.next()){var p=f.value;Cr(c,p)||t.entrySet.push(p)}}catch(x){i={error:x}}finally{try{f&&!f.done&&(s=v.return)&&s.call(v)}finally{if(i)throw i.error}}try{for(var m=W(c),h=m.next();!h.done;h=m.next()){var p=h.value;(!Cr(d,p)||Cr(t.exitSet,p.parent))&&t.exitSet.push(p)}}catch(x){l={error:x}}finally{try{h&&!h.done&&(u=m.return)&&u.call(m)}finally{if(l)throw l.error}}var C=ie(t.entrySet.map(function(x){var N=[];if(x.type!=="final")return N;var k=x.parent;if(!k.parent)return N;N.push(gr(x.id,x.doneData),gr(k.id,x.doneData?cr(x.doneData,r,a):void 0));var B=k.parent;return B.type==="parallel"&&vt(B).every(function(V){return Ut(t.configuration,V)})&&N.push(gr(B.id)),N}));t.exitSet.sort(function(x,N){return N.order-x.order}),t.entrySet.sort(function(x,N){return x.order-N.order});var b=new Set(t.entrySet),g=new Set(t.exitSet),w=J([ie(Array.from(b).map(function(x){return ce(ce([],J(x.activities.map(function(N){return ef(N)})),!1),J(x.onEntry),!1)})).concat(C.map(qd)),ie(Array.from(g).map(function(x){return ce(ce([],J(x.onExit),!1),J(x.activities.map(function(N){return tf(N)})),!1)}))],2),_=w[0],S=w[1],I=mr(S.concat(t.actions).concat(_),this.machine.options.actions);return I},e.prototype.transition=function(t,r,a){t===void 0&&(t=this.initialState);var o=ye(r),i;if(t instanceof Ye)i=a===void 0?t:this.resolveState(Ye.from(t,a));else{var s=H(t)?this.resolve(lr(this.getResolvedPath(t))):this.resolve(t),l=a!=null?a:this.machine.context;i=this.resolveState(Ye.from(s,l))}if(!st&&o.name===Lt)throw new Error("An event cannot have the wildcard type ('".concat(Lt,"')"));if(this.strict&&!this.events.includes(o.name)&&!Dd(o.name))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(o.name,"'"));var u=this._transition(i.value,i,o)||{transitions:[],configuration:[],entrySet:[],exitSet:[],source:i,actions:[]},c=pt([],this.getStateNodes(i.value)),d=u.configuration.length?pt(c,u.configuration):c;return u.configuration=ce([],J(d),!1),this.resolveTransition(u,i,o)},e.prototype.resolveRaisedTransition=function(t,r,a){var o,i=t.actions;return t=this.transition(t,r),t._event=a,t.event=a.data,(o=t.actions).unshift.apply(o,ce([],J(i),!1)),t},e.prototype.resolveTransition=function(t,r,a,o){var i,s,l=this;a===void 0&&(a=pr),o===void 0&&(o=this.machine.context);var u=t.configuration,c=!r||t.transitions.length>0,d=c?of(this.machine,u):void 0,v=r?r.historyValue?r.historyValue:t.source?this.machine.historyValue(r.value):void 0:void 0,f=r?r.context:o,p=this.getActions(t,f,a,r),m=r?A({},r.activities):{};try{for(var h=W(p),C=h.next();!C.done;C=h.next()){var b=C.value;b.type===mn?m[b.activity.id||b.activity.type]=b:b.type===hn&&(m[b.activity.id||b.activity.type]=!1)}}catch(ae){i={error:ae}}finally{try{C&&!C.done&&(s=h.return)&&s.call(h)}finally{if(i)throw i.error}}var g=J(_n(this,r,f,a,p,this.machine.config.preserveActionOrder),2),w=g[0],_=g[1],S=J(go(w,function(ae){return ae.type===fr||ae.type===vr&&ae.to===ft.Internal}),2),I=S[0],x=S[1],N=w.filter(function(ae){var Se;return ae.type===mn&&((Se=ae.activity)===null||Se===void 0?void 0:Se.type)===yn}),k=N.reduce(function(ae,Se){return ae[Se.activity.id]=ff(Se.activity,l.machine,_,a),ae},r?A({},r.children):{}),B=d?t.configuration:r?r.configuration:[],V=Ut(B,this),O=new Ye({value:d||r.value,context:_,_event:a,_sessionid:r?r._sessionid:null,historyValue:d?v?Vd(v,d):void 0:r?r.historyValue:void 0,history:!d||t.source?r:void 0,actions:d?x:[],activities:d?m:r?r.activities:{},events:[],configuration:B,transitions:t.transitions,children:k,done:V,tags:r==null?void 0:r.tags,machine:this}),L=f!==_;O.changed=a.name===bn||L;var Q=O.history;Q&&delete Q.history;var Be=!V&&(this._transient||u.some(function(ae){return ae._transient}));if(!c&&(!Be||a.name===mt))return O;var ve=O;if(!V)for(Be&&(ve=this.resolveRaisedTransition(ve,{type:jd},a));I.length;){var Le=I.shift();ve=this.resolveRaisedTransition(ve,Le._event,a)}var We=ve.changed||(Q?!!ve.actions.length||L||typeof Q.value!=typeof ve.value||!$o(ve.value,Q.value):void 0);return ve.changed=We,ve.history=Q,ve.tags=To(ve.configuration),ve},e.prototype.getStateNode=function(t){if(gt(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 r=this.states[t];if(!r)throw new Error("Child state '".concat(t,"' does not exist on '").concat(this.id,"'"));return r},e.prototype.getStateNodeById=function(t){var r=gt(t)?t.slice(xn.length):t;if(r===this.id)return this;var a=this.machine.idMap[r];if(!a)throw new Error("Child state node '#".concat(r,"' does not exist on machine '").concat(this.id,"'"));return a},e.prototype.getStateNodeByPath=function(t){if(typeof t=="string"&&gt(t))try{return this.getStateNodeById(t.slice(1))}catch{}for(var r=vn(t,this.delimiter).slice(),a=this;r.length;){var o=r.shift();if(!o.length)break;a=a.getStateNode(o)}return a},e.prototype.resolve=function(t){var r,a=this;if(!t)return this.initialStateValue||ht;switch(this.type){case"parallel":return Dt(this.initialStateValue,function(i,s){return i?a.getStateNode(s).resolve(t[s]||i):ht});case"compound":if(H(t)){var o=this.getStateNode(t);return o.type==="parallel"||o.type==="compound"?(r={},r[t]=o.initialStateValue,r):t}return oe(t).length?Dt(t,function(i,s){return i?a.getStateNode(s).resolve(i):ht}):this.initialStateValue||{};default:return t||ht}},e.prototype.getResolvedPath=function(t){if(gt(t)){var r=this.machine.idMap[t.slice(xn.length)];if(!r)throw new Error("Unable to find state node '".concat(t,"'"));return r.path}return vn(t,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;var r;if(this.type==="parallel")r=po(this.states,function(a){return a.initialStateValue||ht},function(a){return a.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,"'"));r=br(this.states[this.initial])?this.initial:(t={},t[this.initial]=this.states[this.initial].initialStateValue,t)}else r={};return this.__cache.initialStateValue=r,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(t,r){var a=this.getStateNodes(t);return this.resolveTransition({configuration:a,entrySet:a,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,void 0,r)},Object.defineProperty(e.prototype,"initialState",{get:function(){this._init();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 r=this.config;H(r.target)?t=gt(r.target)?lr(this.machine.getStateNodeById(r.target).path.slice(this.path.length-1)):r.target:t=r.target}return t},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(t,r,a){return a===void 0&&(a=!0),a?t.type==="history"?t.resolveHistory(r):t.initialStateNodes:[t]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var t=this;if(br(this))return[this];if(this.type==="compound"&&!this.initial)return st||lt(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this];var r=ur(this.initialStateValue);return ie(r.map(function(a){return t.getFromRelativePath(a)}))},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var r=J(t),a=r[0],o=r.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(a,"' from node with no states"));var i=this.getStateNode(a);if(i.type==="history")return i.resolveHistory();if(!this.states[a])throw new Error("Child state '".concat(a,"' does not exist on '").concat(this.id,"'"));return this.states[a].getFromRelativePath(o)},e.prototype.historyValue=function(t){if(!!oe(this.states).length)return{current:t||this.initialStateValue,states:po(this.states,function(r,a){if(!t)return r.historyValue();var o=H(t)?void 0:t[a];return r.historyValue(o||r.initialStateValue)},function(r){return!r.history})}},e.prototype.resolveHistory=function(t){var r=this;if(this.type!=="history")return[this];var a=this.parent;if(!t){var o=this.target;return o?ie(ur(o).map(function(s){return a.getFromRelativePath(s)})):a.initialStateNodes}var i=Rd(a.path,"states")(t).current;return H(i)?[a.getStateNode(i)]:ie(ur(i).map(function(s){return r.history==="deep"?a.getFromRelativePath(s):[a.states[s[0]]]}))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var t=this,r=ie(oe(this.states).map(function(a){return t.states[a].stateIds}));return[this.id].concat(r)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){var t,r,a,o;if(this.__cache.events)return this.__cache.events;var i=this.states,s=new Set(this.ownEvents);if(i)try{for(var l=W(oe(i)),u=l.next();!u.done;u=l.next()){var c=u.value,d=i[c];if(d.states)try{for(var v=(a=void 0,W(d.events)),f=v.next();!f.done;f=v.next()){var p=f.value;s.add("".concat(p))}}catch(m){a={error:m}}finally{try{f&&!f.done&&(o=v.return)&&o.call(v)}finally{if(a)throw a.error}}}}catch(m){t={error:m}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}return this.__cache.events=Array.from(s)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownEvents",{get:function(){var t=new Set(this.transitions.filter(function(r){return!(!r.target&&!r.actions.length&&r.internal)}).map(function(r){return r.eventType}));return Array.from(t)},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(t){var r=this;if(t!==void 0)return t.map(function(a){if(!H(a))return a;var o=a[0]===r.delimiter;if(o&&!r.parent)return r.getStateNodeByPath(a.slice(1));var i=o?r.key+a:a;if(r.parent)try{var s=r.parent.getStateNodeByPath(i);return s}catch(l){throw new Error("Invalid transition definition for state node '".concat(r.id,`':
16
- `).concat(l.message))}else return r.getStateNodeByPath(i)})},e.prototype.formatTransition=function(t){var r=this,a=zd(t.target),o="internal"in t?t.internal:a?a.some(function(u){return H(u)&&u[0]===r.delimiter}):!0,i=this.machine.options.guards,s=this.resolveTarget(a),l=A(A({},t),{actions:mr(Te(t.actions)),cond:Co(t.cond,i),target:s,source:this,internal:o,eventType:t.event,toJSON:function(){return A(A({},l),{target:l.target?l.target.map(function(u){return"#".concat(u.id)}):void 0,source:"#".concat(r.id)})}});return l},e.prototype.formatTransitions=function(){var t,r,a=this,o;if(!this.config.on)o=[];else if(Array.isArray(this.config.on))o=this.config.on;else{var i=this.config.on,s=Lt,l=i[s],u=l===void 0?[]:l,c=un(i,[typeof s=="symbol"?s:s+""]);o=ie(oe(c).map(function(g){!st&&g===mt&&lt(!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(a.id,'".'));var w=dt(g,c[g]);return st||yf(a,g,w),w}).concat(dt(Lt,u)))}var d=this.config.always?dt("",this.config.always):[],v=this.config.onDone?dt(String(gr(this.id)),this.config.onDone):[];st||lt(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var f=ie(this.invoke.map(function(g){var w=[];return g.onDone&&w.push.apply(w,ce([],J(dt(String(yr(g.id)),g.onDone)),!1)),g.onError&&w.push.apply(w,ce([],J(dt(String(Vt(g.id)),g.onError)),!1)),w})),p=this.after,m=ie(ce(ce(ce(ce([],J(v),!1),J(f),!1),J(o),!1),J(d),!1).map(function(g){return Te(g).map(function(w){return a.formatTransition(w)})}));try{for(var h=W(p),C=h.next();!C.done;C=h.next()){var b=C.value;m.push(b)}}catch(g){t={error:g}}finally{try{C&&!C.done&&(r=h.return)&&r.call(h)}finally{if(t)throw t.error}}return m},e}();function zt(e,t){return new bf(e,t)}var Cf={deferEvents:!1},Fo=function(){function e(t){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=A(A({},Cf),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(r){throw this.clear(),r}finally{this.processingEvent=!1}},e}(),En=new Map,wf=0,Sr={bookId:function(){return"x:".concat(wf++)},register:function(e,t){return En.set(e,t),e},get:function(e){return En.get(e)},free:function(e){En.delete(e)}};function An(){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 _f(){var e=An();if(e&&"__xstate__"in e)return e.__xstate__}function Sf(e){if(!!An()){var t=_f();t&&t.register(e)}}function xf(e,t){t===void 0&&(t={});var r=e.initialState,a=new Set,o=[],i=!1,s=function(){if(!i){for(i=!0;o.length>0;){var c=o.shift();r=e.transition(r,c,u),a.forEach(function(d){return d.next(r)})}i=!1}},l=mf({id:t.id,send:function(c){o.push(c),s()},getSnapshot:function(){return r},subscribe:function(c,d,v){var f=xo(c,d,v);return a.add(f),f.next(r),{unsubscribe:function(){a.delete(f)}}}}),u={parent:t.parent,self:l,id:t.id||"anonymous",observers:a};return r=e.start?e.start(u):r,l}var In={sync:!1,autoForward:!1},_e;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(_e||(_e={}));var Ef=function(){function e(t,r){var a=this;r===void 0&&(r=e.defaultOptions),this.machine=t,this.scheduler=new Fo,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=_e.NotStarted,this.children=new Map,this.forwardTo=new Set,this.init=this.start,this.send=function(d,v){if(ut(d))return a.batch(d),a.state;var f=ye(pn(d,v));if(a.status===_e.Stopped)return a.state;if(a.status!==_e.Running&&!a.options.deferEvents)throw new Error('Event "'.concat(f.name,'" was sent to uninitialized service "').concat(a.machine.id,`". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.
17
- Event: `).concat(JSON.stringify(f.data)));return a.scheduler.schedule(function(){a.forward(f);var p=a.nextState(f);a.update(p,f)}),a._state},this.sendTo=function(d,v){var f=a.parent&&(v===ft.Parent||a.parent.id===v),p=f?a.parent:H(v)?a.children.get(v)||Sr.get(v):Md(v)?v:void 0;if(!p){if(!f)throw new Error("Unable to send event to child '".concat(v,"' from service '").concat(a.id,"'."));return}"machine"in p?p.send(A(A({},d),{name:d.name===Wd?"".concat(Vt(a.id)):d.name,origin:a.sessionId})):p.send(d.data)};var o=A(A({},e.defaultOptions),r),i=o.clock,s=o.logger,l=o.parent,u=o.id,c=u!==void 0?u:t.id;this.id=c,this.logger=s,this.clock=i,this.parent=l,this.options=o,this.scheduler=new Fo({deferEvents:this.options.deferEvents}),this.sessionId=Sr.bookId()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:Mt(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,r){var a,o;try{for(var i=W(t.actions),s=i.next();!s.done;s=i.next()){var l=s.value;this.exec(l,t,r)}}catch(u){a={error:u}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(a)throw a.error}}},e.prototype.update=function(t,r){var a,o,i,s,l,u,c,d,v=this;if(t._sessionid=this.sessionId,this._state=t,this.options.execute&&this.execute(this.state),this.children.forEach(function(k){v.state.children[k.id]=k}),this.devTools&&this.devTools.send(r.data,t),t.event)try{for(var f=W(this.eventListeners),p=f.next();!p.done;p=f.next()){var m=p.value;m(t.event)}}catch(k){a={error:k}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(a)throw a.error}}try{for(var h=W(this.listeners),C=h.next();!C.done;C=h.next()){var m=C.value;m(t,t.event)}}catch(k){i={error:k}}finally{try{C&&!C.done&&(s=h.return)&&s.call(h)}finally{if(i)throw i.error}}try{for(var b=W(this.contextListeners),g=b.next();!g.done;g=b.next()){var w=g.value;w(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(k){l={error:k}}finally{try{g&&!g.done&&(u=b.return)&&u.call(b)}finally{if(l)throw l.error}}var _=Ut(t.configuration||[],this.machine);if(this.state.configuration&&_){var S=t.configuration.find(function(k){return k.type==="final"&&k.parent===v.machine}),I=S&&S.doneData?cr(S.doneData,t.context,r):void 0;try{for(var x=W(this.doneListeners),N=x.next();!N.done;N=x.next()){var m=N.value;m(yr(this.id,I))}}catch(k){c={error:k}}finally{try{N&&!N.done&&(d=x.return)&&d.call(x)}finally{if(c)throw c.error}}this.stop()}},e.prototype.onTransition=function(t){return this.listeners.add(t),this.status===_e.Running&&t(this.state,this.state.event),this},e.prototype.subscribe=function(t,r,a){var o=this;if(!t)return{unsubscribe:function(){}};var i,s=a;return typeof t=="function"?i=t:(i=t.next.bind(t),s=t.complete.bind(t)),this.listeners.add(i),this.status===_e.Running&&i(this.state),s&&this.onDone(s),{unsubscribe:function(){i&&o.listeners.delete(i),s&&o.doneListeners.delete(s)}}},e.prototype.onEvent=function(t){return this.eventListeners.add(t),this},e.prototype.onSend=function(t){return this.sendListeners.add(t),this},e.prototype.onChange=function(t){return this.contextListeners.add(t),this},e.prototype.onStop=function(t){return this.stopListeners.add(t),this},e.prototype.onDone=function(t){return this.doneListeners.add(t),this},e.prototype.off=function(t){return this.listeners.delete(t),this.eventListeners.delete(t),this.sendListeners.delete(t),this.stopListeners.delete(t),this.doneListeners.delete(t),this.contextListeners.delete(t),this},e.prototype.start=function(t){var r=this;if(this.status===_e.Running)return this;Sr.register(this.sessionId,this),this.initialized=!0,this.status=_e.Running;var a=t===void 0?this.initialState:Mt(this,function(){return uf(t)?r.machine.resolveState(t):r.machine.resolveState(Ye.from(t,r.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){r.update(a,pr)}),this},e.prototype.stop=function(){var t,r,a,o,i,s,l,u,c,d,v=this;try{for(var f=W(this.listeners),p=f.next();!p.done;p=f.next()){var m=p.value;this.listeners.delete(m)}}catch(N){t={error:N}}finally{try{p&&!p.done&&(r=f.return)&&r.call(f)}finally{if(t)throw t.error}}try{for(var h=W(this.stopListeners),C=h.next();!C.done;C=h.next()){var m=C.value;m(),this.stopListeners.delete(m)}}catch(N){a={error:N}}finally{try{C&&!C.done&&(o=h.return)&&o.call(h)}finally{if(a)throw a.error}}try{for(var b=W(this.contextListeners),g=b.next();!g.done;g=b.next()){var m=g.value;this.contextListeners.delete(m)}}catch(N){i={error:N}}finally{try{g&&!g.done&&(s=b.return)&&s.call(b)}finally{if(i)throw i.error}}try{for(var w=W(this.doneListeners),_=w.next();!_.done;_=w.next()){var m=_.value;this.doneListeners.delete(m)}}catch(N){l={error:N}}finally{try{_&&!_.done&&(u=w.return)&&u.call(w)}finally{if(l)throw l.error}}if(!this.initialized)return this;this.state.configuration.forEach(function(N){var k,B;try{for(var V=W(N.definition.exit),O=V.next();!O.done;O=V.next()){var L=O.value;v.exec(L,v.state)}}catch(Q){k={error:Q}}finally{try{O&&!O.done&&(B=V.return)&&B.call(V)}finally{if(k)throw k.error}}}),this.children.forEach(function(N){X(N.stop)&&N.stop()});try{for(var S=W(oe(this.delayedEventsMap)),I=S.next();!I.done;I=S.next()){var x=I.value;this.clock.clearTimeout(this.delayedEventsMap[x])}}catch(N){c={error:N}}finally{try{I&&!I.done&&(d=S.return)&&d.call(S)}finally{if(c)throw c.error}}return this.scheduler.clear(),this.initialized=!1,this.status=_e.Stopped,Sr.free(this.sessionId),this},e.prototype.batch=function(t){var r=this;if(!(this.status===_e.NotStarted&&this.options.deferEvents)){if(this.status!==_e.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 a,o,i=r.state,s=!1,l=[],u=function(f){var p=ye(f);r.forward(p),i=Mt(r,function(){return r.machine.transition(i,p)}),l.push.apply(l,ce([],J(i.actions.map(function(m){return cf(m,i)})),!1)),s=s||!!i.changed};try{for(var c=W(t),d=c.next();!d.done;d=c.next()){var v=d.value;u(v)}}catch(f){a={error:f}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(a)throw a.error}}i.changed=s,i.actions=l,r.update(i,ye(t[t.length-1]))})},e.prototype.sender=function(t){return this.send.bind(this,t)},e.prototype.nextState=function(t){var r=this,a=ye(t);if(a.name.indexOf(Io)===0&&!this.state.nextEvents.some(function(i){return i.indexOf(Io)===0}))throw a.data.data;var o=Mt(this,function(){return r.machine.transition(r.state,a)});return o},e.prototype.forward=function(t){var r,a;try{for(var o=W(this.forwardTo),i=o.next();!i.done;i=o.next()){var s=i.value,l=this.children.get(s);if(!l)throw new Error("Unable to forward event '".concat(t,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(s,"'."));l.send(t)}}catch(u){r={error:u}}finally{try{i&&!i.done&&(a=o.return)&&a.call(o)}finally{if(r)throw r.error}}},e.prototype.defer=function(t){var r=this;this.delayedEventsMap[t.id]=this.clock.setTimeout(function(){t.to?r.sendTo(t._event,t.to):r.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,r,a){a===void 0&&(a=this.machine.options.actions);var o=r.context,i=r._event,s=t.exec||Cn(t.type,a),l=X(s)?s:s?s.exec:t.exec;if(l)try{return l(o,i.data,{action:t,state:this.state,_event:i})}catch(_){throw this.parent&&this.parent.send({type:"xstate.error",data:_}),_}switch(t.type){case vr:var u=t;if(typeof u.delay=="number"){this.defer(u);return}else u.to?this.sendTo(u._event,u.to):this.send(u._event);break;case Eo:this.cancel(t.sendId);break;case mn:{if(this.status!==_e.Running)return;var c=t.activity;if(!this.state.activities[c.id||c.type])break;if(c.type===ee.Invoke){var d=So(c.src),v=this.machine.options.services?this.machine.options.services[d.type]:void 0,f=c.id,p=c.data,m="autoForward"in c?c.autoForward:!!c.forward;if(!v)return;var h=p?cr(p,o,i):void 0;if(typeof v=="string")return;var C=X(v)?v(o,i.data,{data:h,src:d,meta:c.meta}):v;if(!C)return;var b=void 0;ze(C)&&(C=h?C.withContext(h):C,b={autoForward:m}),this.spawn(C,f,b)}else this.spawnActivity(c);break}case hn:{this.stopChild(t.activity.id);break}case Ao:var g=t.label,w=t.value;g?this.logger(g,w):this.logger(w);break}},e.prototype.removeChild=function(t){var r;this.children.delete(t),this.forwardTo.delete(t),(r=this.state)===null||r===void 0||delete r.children[t]},e.prototype.stopChild=function(t){var r=this.children.get(t);!r||(this.removeChild(t),X(r.stop)&&r.stop())},e.prototype.spawn=function(t,r,a){if(ho(t))return this.spawnPromise(Promise.resolve(t),r);if(X(t))return this.spawnCallback(t,r);if(pf(t))return this.spawnActor(t,r);if(Ud(t))return this.spawnObservable(t,r);if(ze(t))return this.spawnMachine(t,A(A({},a),{id:r}));if(Od(t))return this.spawnBehavior(t,r);throw new Error('Unable to spawn entity "'.concat(r,'" of type "').concat(typeof t,'".'))},e.prototype.spawnMachine=function(t,r){var a=this;r===void 0&&(r={});var o=new e(t,A(A({},this.options),{parent:this,id:r.id||t.id})),i=A(A({},In),r);i.sync&&o.onTransition(function(l){a.send(bn,{state:l,id:o.id})});var s=o;return this.children.set(o.id,s),i.autoForward&&this.forwardTo.add(o.id),o.onDone(function(l){a.removeChild(o.id),a.send(ye(l,{origin:o.id}))}).start(),s},e.prototype.spawnBehavior=function(t,r){var a=xf(t,{id:r,parent:this});return this.children.set(r,a),a},e.prototype.spawnPromise=function(t,r){var a=this,o=!1,i;t.then(function(l){o||(i=l,a.removeChild(r),a.send(ye(yr(r,l),{origin:r})))},function(l){if(!o){a.removeChild(r);var u=Vt(r,l);try{a.send(ye(u,{origin:r}))}catch{a.devTools&&a.devTools.send(u,a.state),a.machine.strict&&a.stop()}}});var s=A({id:r,send:function(){},subscribe:function(l,u,c){var d=xo(l,u,c),v=!1;return t.then(function(f){v||(d.next(f),!v&&d.complete())},function(f){v||d.error(f)}),{unsubscribe:function(){return v=!0}}},stop:function(){o=!0},toJSON:function(){return{id:r}},getSnapshot:function(){return i}},ct);return this.children.set(r,s),s},e.prototype.spawnCallback=function(t,r){var a=this,o=!1,i=new Set,s=new Set,l,u=function(v){l=v,s.forEach(function(f){return f(v)}),!o&&a.send(ye(v,{origin:r}))},c;try{c=t(u,function(v){i.add(v)})}catch(v){this.send(Vt(r,v))}if(ho(c))return this.spawnPromise(c,r);var d=A({id:r,send:function(v){return i.forEach(function(f){return f(v)})},subscribe:function(v){return s.add(v),{unsubscribe:function(){s.delete(v)}}},stop:function(){o=!0,X(c)&&c()},toJSON:function(){return{id:r}},getSnapshot:function(){return l}},ct);return this.children.set(r,d),d},e.prototype.spawnObservable=function(t,r){var a=this,o,i=t.subscribe(function(l){o=l,a.send(ye(l,{origin:r}))},function(l){a.removeChild(r),a.send(ye(Vt(r,l),{origin:r}))},function(){a.removeChild(r),a.send(ye(yr(r),{origin:r}))}),s=A({id:r,send:function(){},subscribe:function(l,u,c){return t.subscribe(l,u,c)},stop:function(){return i.unsubscribe()},getSnapshot:function(){return o},toJSON:function(){return{id:r}}},ct);return this.children.set(r,s),s},e.prototype.spawnActor=function(t,r){return this.children.set(r,t),t},e.prototype.spawnActivity=function(t){var r=this.machine.options&&this.machine.options.activities?this.machine.options.activities[t.type]:void 0;if(!!r){var a=r(this.state.context,t);this.spawnEffect(t.id,a)}},e.prototype.spawnEffect=function(t,r){this.children.set(t,A({id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:r||void 0,getSnapshot:function(){},toJSON:function(){return{id:t}}},ct))},e.prototype.attachDev=function(){var t=An();if(this.options.devTools&&t){if(t.__REDUX_DEVTOOLS_EXTENSION__){var r=typeof this.options.devTools=="object"?this.options.devTools:void 0;this.devTools=t.__REDUX_DEVTOOLS_EXTENSION__.connect(A(A({name:this.id,autoPause:!0,stateSanitizer:function(a){return{value:a.value,context:a.context,actions:a.actions}}},r),{features:A({jump:!1,skip:!1},r?r.features:void 0)}),this.machine),this.devTools.init(this.state)}Sf(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[wo]=function(){return this},e.prototype.getSnapshot=function(){return this.status===_e.NotStarted?this.initialState:this._state},e.defaultOptions=function(t){return{execute:!0,deferEvents:!0,clock:{setTimeout:function(r,a){return setTimeout(r,a)},clearTimeout:function(r){return clearTimeout(r)}},logger:t.console.log.bind(console),devTools:!1}}(typeof self!="undefined"?self:global),e.interpret=Ro,e}(),Af=function(e){return H(e)?A(A({},In),{name:e}):A(A(A({},In),{name:Ld()}),e)};function xr(e,t){var r=Af(t);return df(function(a){if(!st){var o=ze(e)||X(e);lt(!!a||o,'Attempted to spawn an Actor (ID: "'.concat(ze(e)?e.id:"undefined",'") outside of a service. This will have no effect.'))}return a?a.spawn(e,r.name,r):Bo(e,r.name)})}function Ro(e,t){var r=new Ef(e,t);return r}var Z={},Nn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});/*! *****************************************************************************
14
+ ***************************************************************************** */var A=function(){return A=Object.assign||function(t){for(var r,a=1,o=arguments.length;a<o;a++){r=arguments[a];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},A.apply(this,arguments)};function un(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(r[a[o]]=e[a[o]]);return r}function W(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],a=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function J(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var a=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=a.next()).done;)i.push(o.value)}catch(l){s={error:l}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(s)throw s.error}}return i}function ce(e,t,r){if(r||arguments.length===2)for(var a=0,o=t.length,i;a<o;a++)(i||!(a in t))&&(i||(i=Array.prototype.slice.call(t,0,a)),i[a]=t[a]);return e.concat(i||Array.prototype.slice.call(t))}var co=".",fo={},cn="xstate.guard",kd="",st=!0,dn;function oe(e){return Object.keys(e)}function fn(e,t,r){r===void 0&&(r=co);var a=Rt(e,r),o=Rt(t,r);return H(o)?H(a)?o===a:!1:H(a)?a in o:oe(a).every(function(i){return i in o?fn(a[i],o[i]):!1})}function vo(e){try{return H(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 vn(e,t){try{return ut(e)?e:e.toString().split(t)}catch{throw new Error("'".concat(e,"' is not a valid state path."))}}function Bd(e){return typeof e=="object"&&"value"in e&&"context"in e&&"event"in e&&"_event"in e}function Rt(e,t){if(Bd(e))return e.value;if(ut(e))return lr(e);if(typeof e!="string")return e;var r=vn(e,t);return lr(r)}function lr(e){if(e.length===1)return e[0];for(var t={},r=t,a=0;a<e.length-1;a++)a===e.length-2?r[e[a]]=e[a+1]:(r[e[a]]={},r=r[e[a]]);return t}function Ot(e,t){for(var r={},a=oe(e),o=0;o<a.length;o++){var i=a[o];r[i]=t(e[i],i,e,o)}return r}function po(e,t,r){var a,o,i={};try{for(var s=W(oe(e)),l=s.next();!l.done;l=s.next()){var u=l.value,c=e[u];!r(c)||(i[u]=t(c,u,e))}}catch(d){a={error:d}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(a)throw a.error}}return i}var Fd=function(e){return function(t){var r,a,o=t;try{for(var i=W(e),s=i.next();!s.done;s=i.next()){var l=s.value;o=o[l]}}catch(u){r={error:u}}finally{try{s&&!s.done&&(a=i.return)&&a.call(i)}finally{if(r)throw r.error}}return o}};function Rd(e,t){return function(r){var a,o,i=r;try{for(var s=W(e),l=s.next();!l.done;l=s.next()){var u=l.value;i=i[t][u]}}catch(c){a={error:c}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(a)throw a.error}}return i}}function ur(e){if(!e)return[[]];if(H(e))return[[e]];var t=ie(oe(e).map(function(r){var a=e[r];return typeof a!="string"&&(!a||!Object.keys(a).length)?[[r]]:ur(e[r]).map(function(o){return[r].concat(o)})}));return t}function ie(e){var t;return(t=[]).concat.apply(t,ce([],J(e),!1))}function mo(e){return ut(e)?e:[e]}function Te(e){return e===void 0?[]:mo(e)}function cr(e,t,r){var a,o;if(X(e))return e(t,r.data);var i={};try{for(var s=W(Object.keys(e)),l=s.next();!l.done;l=s.next()){var u=l.value,c=e[u];X(c)?i[u]=c(t,r.data):i[u]=c}}catch(d){a={error:d}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(a)throw a.error}}return i}function Od(e){return/^(done|error)\./.test(e)}function ho(e){return!!(e instanceof Promise||e!==null&&(X(e)||typeof e=="object")&&X(e.then))}function Dd(e){return e!==null&&typeof e=="object"&&"transition"in e&&typeof e.transition=="function"}function go(e,t){var r,a,o=J([[],[]],2),i=o[0],s=o[1];try{for(var l=W(e),u=l.next();!u.done;u=l.next()){var c=u.value;t(c)?i.push(c):s.push(c)}}catch(d){r={error:d}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return[i,s]}function yo(e,t){return Ot(e.states,function(r,a){if(!!r){var o=(H(t)?void 0:t[a])||(r?r.current:void 0);if(!!o)return{current:o,states:yo(r,o)}}})}function Vd(e,t){return{current:t,states:yo(e,t)}}function bo(e,t,r,a){var o=e&&r.reduce(function(i,s){var l,u,c=s.assignment,d={state:a,action:s,_event:t},v={};if(X(c))v=c(i,t.data,d);else try{for(var f=W(oe(c)),p=f.next();!p.done;p=f.next()){var m=p.value,h=c[m];v[m]=X(h)?h(i,t.data,d):h}}catch(C){l={error:C}}finally{try{p&&!p.done&&(u=f.return)&&u.call(f)}finally{if(l)throw l.error}}return Object.assign({},i,v)},e);return o}var lt=function(){};function ut(e){return Array.isArray(e)}function X(e){return typeof e=="function"}function H(e){return typeof e=="string"}function Co(e,t){if(!!e)return H(e)?{type:cn,name:e,predicate:t?t[e]:void 0}:X(e)?{type:cn,name:e.name,predicate:e}:e}function Ud(e){try{return"subscribe"in e&&X(e.subscribe)}catch{return!1}}var wo=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ct=(dn={},dn[wo]=function(){return this},dn);function ze(e){try{return"__xstatenode"in e}catch{return!1}}function Md(e){return!!e&&typeof e.send=="function"}var Ld=function(){var e=0;return function(){return e++,e.toString(16)}}();function pn(e,t){return H(e)||typeof e=="number"?A({type:e},t):e}function ye(e,t){if(!H(e)&&"$$type"in e&&e.$$type==="scxml")return e;var r=pn(e);return A({name:r.type,data:r,$$type:"scxml",type:"external"},t)}function dt(e,t){var r=mo(t).map(function(a){return typeof a=="undefined"||typeof a=="string"||ze(a)?{target:a,event:e}:A(A({},a),{event:e})});return r}function zd(e){if(!(e===void 0||e===kd))return Te(e)}function So(e,t,r,a,o){var i=e.options.guards,s={state:o,cond:t,_event:a};if(t.type===cn)return((i==null?void 0:i[t.name])||t.predicate)(r,a.data,s);var l=i[t.type];if(!l)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return l(r,a.data,s)}function _o(e){return typeof e=="string"?{type:e}:e}function xo(e,t,r){if(typeof e=="object")return e;var a=function(){};return{next:e,error:t||a,complete:r||a}}function dr(e,t){return"".concat(e,":invocation[").concat(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 ft;(function(e){e.Parent="#_parent",e.Internal="#_internal"})(ft||(ft={}));var mn=ee.Start,hn=ee.Stop,fr=ee.Raise,vr=ee.Send,Eo=ee.Cancel,jd=ee.NullEvent,gn=ee.Assign;ee.After;ee.DoneState;var Ao=ee.Log,Gd=ee.Init,yn=ee.Invoke;ee.ErrorExecution;var Io=ee.ErrorPlatform,Wd=ee.ErrorCustom,bn=ee.Update,Hd=ee.Choose,Kd=ee.Pure,pr=ye({type:Gd});function Cn(e,t){return t&&t[e]||void 0}function Dt(e,t){var r;if(H(e)||typeof e=="number"){var a=Cn(e,t);X(a)?r={type:e,exec:a}:a?r=a:r={type:e,exec:void 0}}else if(X(e))r={type:e.name||e.toString(),exec:e};else{var a=Cn(e.type,t);if(X(a))r=A(A({},e),{exec:a});else if(a){var o=a.type||e.type;r=A(A(A({},a),e),{type:o})}else r=e}return r}var mr=function(e,t){if(!e)return[];var r=ut(e)?e:[e];return r.map(function(a){return Dt(a,t)})};function wn(e){var t=Dt(e);return A(A({id:H(e)?e:t.id},t),{type:t.type})}function qd(e){return H(e)?{type:fr,event:e}:hr(e,{to:ft.Internal})}function Yd(e){return{type:fr,_event:ye(e.event)}}function hr(e,t){return{to:t?t.to:void 0,type:vr,event:X(e)?e:pn(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:X(e)?e.name:vo(e)}}function Zd(e,t,r,a){var o={_event:r},i=ye(X(e.event)?e.event(t,r.data,o):e.event),s;if(H(e.delay)){var l=a&&a[e.delay];s=X(l)?l(t,r.data,o):l}else s=X(e.delay)?e.delay(t,r.data,o):e.delay;var u=X(e.to)?e.to(t,r.data,o):e.to;return A(A({},e),{to:u,_event:i,event:i.data,delay:s})}function Jd(e,t){return hr(e,A(A({},t),{to:ft.Parent}))}function Y(){return Jd(bn)}var Xd=function(e,t,r){return A(A({},e),{value:H(e.expr)?e.expr:e.expr(t,r.data,{_event:r})})},Qd=function(e){return{type:Eo,sendId:e}};function ef(e){var t=wn(e);return{type:ee.Start,activity:t,exec:void 0}}function tf(e){var t=X(e)?e:wn(e);return{type:ee.Stop,activity:t,exec:void 0}}function rf(e,t,r){var a=X(e.activity)?e.activity(t,r.data):e.activity,o=typeof a=="string"?{id:a}:a,i={type:ee.Stop,activity:o};return i}var qe=function(e){return{type:gn,assignment:e}};function nf(e,t){var r=t?"#".concat(t):"";return"".concat(ee.After,"(").concat(e,")").concat(r)}function gr(e,t){var r="".concat(ee.DoneState,".").concat(e),a={type:r,data:t};return a.toString=function(){return r},a}function yr(e,t){var r="".concat(ee.DoneInvoke,".").concat(e),a={type:r,data:t};return a.toString=function(){return r},a}function Vt(e,t){var r="".concat(ee.ErrorPlatform,".").concat(e),a={type:r,data:t};return a.toString=function(){return r},a}function af(e,t){return hr(function(r,a){return a},A(A({},t),{to:e}))}function Sn(e,t,r,a,o,i){i===void 0&&(i=!1);var s=J(i?[[],o]:go(o,function(f){return f.type===gn}),2),l=s[0],u=s[1],c=l.length?bo(r,a,l,t):r,d=i?[r]:void 0,v=ie(u.map(function(f){var p;switch(f.type){case fr:return Yd(f);case vr:var m=Zd(f,c,a,e.options.delays);return m;case Ao:return Xd(f,c,a);case Hd:{var h=f,C=(p=h.conds.find(function(B){var V=Co(B.cond,e.options.guards);return!V||So(e,V,c,a,t)}))===null||p===void 0?void 0:p.actions;if(!C)return[];var b=J(Sn(e,t,c,a,mr(Te(C),e.options.actions),i),2),g=b[0],w=b[1];return c=w,d==null||d.push(c),g}case Kd:{var C=f.get(c,a.data);if(!C)return[];var S=J(Sn(e,t,c,a,mr(Te(C),e.options.actions),i),2),_=S[0],I=S[1];return c=I,d==null||d.push(c),_}case hn:return rf(f,c,a);case gn:{c=bo(c,a,[f],t),d==null||d.push(c);break}default:var x=Dt(f,e.options.actions),N=x.exec;if(N&&d){var k=d.length-1;x=A(A({},x),{exec:function(B){for(var V=[],D=1;D<arguments.length;D++)V[D-1]=arguments[D];N.apply(void 0,ce([d[k]],J(V),!1))}})}return x}}).filter(function(f){return!!f}));return[v,c]}var br=function(e){return e.type==="atomic"||e.type==="final"};function vt(e){return oe(e.states).map(function(t){return e.states[t]})}function No(e){var t=[e];return br(e)?t:t.concat(ie(vt(e).map(No)))}function pt(e,t){var r,a,o,i,s,l,u,c,d=new Set(e),v=_n(d),f=new Set(t);try{for(var p=W(f),m=p.next();!m.done;m=p.next())for(var h=m.value,C=h.parent;C&&!f.has(C);)f.add(C),C=C.parent}catch(k){r={error:k}}finally{try{m&&!m.done&&(a=p.return)&&a.call(p)}finally{if(r)throw r.error}}var b=_n(f);try{for(var g=W(f),w=g.next();!w.done;w=g.next()){var h=w.value;if(h.type==="compound"&&(!b.get(h)||!b.get(h).length))v.get(h)?v.get(h).forEach(function(B){return f.add(B)}):h.initialStateNodes.forEach(function(B){return f.add(B)});else if(h.type==="parallel")try{for(var S=(s=void 0,W(vt(h))),_=S.next();!_.done;_=S.next()){var I=_.value;I.type!=="history"&&(f.has(I)||(f.add(I),v.get(I)?v.get(I).forEach(function(B){return f.add(B)}):I.initialStateNodes.forEach(function(B){return f.add(B)})))}}catch(B){s={error:B}}finally{try{_&&!_.done&&(l=S.return)&&l.call(S)}finally{if(s)throw s.error}}}}catch(k){o={error:k}}finally{try{w&&!w.done&&(i=g.return)&&i.call(g)}finally{if(o)throw o.error}}try{for(var x=W(f),N=x.next();!N.done;N=x.next())for(var h=N.value,C=h.parent;C&&!f.has(C);)f.add(C),C=C.parent}catch(k){u={error:k}}finally{try{N&&!N.done&&(c=x.return)&&c.call(x)}finally{if(u)throw u.error}}return f}function Po(e,t){var r=t.get(e);if(!r)return{};if(e.type==="compound"){var a=r[0];if(a){if(br(a))return a.key}else return{}}var o={};return r.forEach(function(i){o[i.key]=Po(i,t)}),o}function _n(e){var t,r,a=new Map;try{for(var o=W(e),i=o.next();!i.done;i=o.next()){var s=i.value;a.has(s)||a.set(s,[]),s.parent&&(a.has(s.parent)||a.set(s.parent,[]),a.get(s.parent).push(s))}}catch(l){t={error:l}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return a}function of(e,t){var r=pt([e],t);return Po(e,_n(r))}function Cr(e,t){return Array.isArray(e)?e.some(function(r){return r===t}):e instanceof Set?e.has(t):!1}function sf(e){return ce([],J(new Set(ie(ce([],J(e.map(function(t){return t.ownEvents})),!1)))),!1)}function Ut(e,t){return t.type==="compound"?vt(t).some(function(r){return r.type==="final"&&Cr(e,r)}):t.type==="parallel"?vt(t).every(function(r){return Ut(e,r)}):!1}function lf(e){return e===void 0&&(e=[]),e.reduce(function(t,r){return r.meta!==void 0&&(t[r.id]=r.meta),t},{})}function To(e){return new Set(ie(e.map(function(t){return t.tags})))}function $o(e,t){if(e===t)return!0;if(e===void 0||t===void 0)return!1;if(H(e)||H(t))return e===t;var r=oe(e),a=oe(t);return r.length===a.length&&r.every(function(o){return $o(e[o],t[o])})}function uf(e){return H(e)?!1:"value"in e&&"history"in e}function cf(e,t){var r=e.exec,a=A(A({},e),{exec:r!==void 0?function(){return r(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0});return a}var Ye=function(){function e(t){var r=this,a;this.actions=[],this.activities=fo,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||fo,this.meta=lf(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=(a=Array.isArray(t.tags)?new Set(t.tags):t.tags)!==null&&a!==void 0?a:new Set,this.machine=t.machine,Object.defineProperty(this,"nextEvents",{get:function(){return sf(r.configuration)}})}return e.from=function(t,r){if(t instanceof e)return t.context!==r?new e({value:t.value,context:r,_event:t._event,_sessionid:null,historyValue:t.historyValue,history:t.history,actions:[],activities:t.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):t;var a=pr;return new e({value:t,context:r,_event:a,_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,r){if(t instanceof e){if(!t.actions.length)return t;var a=pr;return new e({value:t.value,context:r,_event:a,_sessionid:null,historyValue:t.historyValue,history:t.history,activities:t.activities,configuration:t.configuration,transitions:[],children:{}})}return e.from(t,r)},e.prototype.toStrings=function(t,r){var a=this;if(t===void 0&&(t=this.value),r===void 0&&(r="."),H(t))return[t];var o=oe(t);return o.concat.apply(o,ce([],J(o.map(function(i){return a.toStrings(t[i],r).map(function(s){return i+r+s})})),!1))},e.prototype.toJSON=function(){var t=this;t.configuration,t.transitions;var r=t.tags;t.machine;var a=un(t,["configuration","transitions","tags","machine"]);return A(A({},a),{tags:Array.from(r)})},e.prototype.matches=function(t){return fn(t,this.value)},e.prototype.hasTag=function(t){return this.tags.has(t)},e.prototype.can=function(t){var r;lt(!!this.machine);var a=(r=this.machine)===null||r===void 0?void 0:r.getTransitionData(this,t);return!!(a==null?void 0:a.transitions.length)&&a.transitions.some(function(o){return o.target!==void 0||o.actions.length})},e}(),wr=[],Mt=function(e,t){wr.push(e);var r=t(e);return wr.pop(),r},df=function(e){return e(wr[wr.length-1])};function ko(e){return A({id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}},ct)}function ff(e,t,r,a){var o,i=_o(e.src),s=(o=t==null?void 0:t.options.services)===null||o===void 0?void 0:o[i.type],l=e.data?cr(e.data,r,a):void 0,u=s?Bo(s,e.id,l):ko(e.id);return u.meta=e,u}function Bo(e,t,r){var a=ko(t);if(a.deferred=!0,ze(e)){var o=a.state=Mt(void 0,function(){return(r?e.withContext(r):e).initialState});a.getSnapshot=function(){return o}}return a}function vf(e){try{return typeof e.send=="function"}catch{return!1}}function pf(e){return vf(e)&&"id"in e}function mf(e){return A(A({subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}},ct),e)}function hf(e){if(typeof e=="string"){var t={type:e};return t.toString=function(){return e},t}return e}function Sr(e){return A(A({type:yn},e),{toJSON:function(){e.onDone,e.onError;var t=un(e,["onDone","onError"]);return A(A({},t),{type:yn,src:hf(e.src)})}})}var mt="",xn="#",Lt="*",ht={},gt=function(e){return e[0]===xn},gf=function(){return{actions:{},guards:{},services:{},activities:{},delays:{}}},yf=function(e,t,r){var a=r.slice(0,-1).some(function(i){return!("cond"in i)&&!("in"in i)&&(H(i.target)||ze(i.target))}),o=t===mt?"the transient event":"event '".concat(t,"'");lt(!a,"One or more transitions for ".concat(o," on state '").concat(e.id,"' are unreachable. ")+"Make sure that the default transition is the last one defined.")},bf=function(){function e(t,r,a){var o=this;a===void 0&&(a="context"in t?t.context:void 0);var i;this.config=t,this._context=a,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(gf(),r),this.parent=this.options._parent,this.key=this.config.key||this.options._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:co),this.id=this.config.id||ce([this.machine.key],J(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&oe(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:(i=this.config.schema)!==null&&i!==void 0?i:{},this.description=this.config.description,this.initial=this.config.initial,this.states=this.config.states?Ot(this.config.states,function(u,c){var d,v=new e(u,{_parent:o,_key:c});return Object.assign(o.idMap,A((d={},d[v.id]=v,d),v.idMap)),v}):ht;var s=0;function l(u){var c,d;u.order=s++;try{for(var v=W(vt(u)),f=v.next();!f.done;f=v.next()){var p=f.value;l(p)}}catch(m){c={error:m}}finally{try{f&&!f.done&&(d=v.return)&&d.call(v)}finally{if(c)throw c.error}}}l(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(u){var c=u.event;return c===mt}):mt in this.config.on:!1),this.strict=!!this.config.strict,this.onEntry=Te(this.config.entry||this.config.onEntry).map(function(u){return Dt(u)}),this.onExit=Te(this.config.exit||this.config.onExit).map(function(u){return Dt(u)}),this.meta=this.config.meta,this.doneData=this.type==="final"?this.config.data:void 0,this.invoke=Te(this.config.invoke).map(function(u,c){var d,v;if(ze(u)){var f=dr(o.id,c);return o.machine.options.services=A((d={},d[f]=u,d),o.machine.options.services),Sr({src:f,id:f})}else if(H(u.src)){var f=u.id||dr(o.id,c);return Sr(A(A({},u),{id:f,src:u.src}))}else if(ze(u.src)||X(u.src)){var f=u.id||dr(o.id,c);return o.machine.options.services=A((v={},v[f]=u.src,v),o.machine.options.services),Sr(A(A({id:f},u),{src:f}))}else{var p=u.src;return Sr(A(A({id:dr(o.id,c)},u),{src:p}))}}),this.activities=Te(this.config.activities).concat(this.invoke).map(function(u){return wn(u)}),this.transition=this.transition.bind(this),this.tags=Te(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||No(this).forEach(function(t){return t.on})},e.prototype.withConfig=function(t,r){var a=this.options,o=a.actions,i=a.activities,s=a.guards,l=a.services,u=a.delays;return new e(this.config,{actions:A(A({},o),t.actions),activities:A(A({},i),t.activities),guards:A(A({},s),t.guards),services:A(A({},l),t.services),delays:A(A({},u),t.delays)},r!=null?r:this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return X(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:Ot(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(r,a){return r[a.eventType]=r[a.eventType]||[],r[a.eventType].push(a),r},{})},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 r=t===mt,a=this.transitions.filter(function(o){var i=o.eventType===t;return r?i:i||o.eventType===Lt});return this.__cache.candidates[t]=a,a},e.prototype.getDelayedTransitions=function(){var t=this,r=this.config.after;if(!r)return[];var a=function(i,s){var l=X(i)?"".concat(t.id,":delay[").concat(s,"]"):i,u=nf(l,t.id);return t.onEntry.push(hr(u,{delay:i})),t.onExit.push(Qd(u)),u},o=ut(r)?r.map(function(i,s){var l=a(i.delay,s);return A(A({},i),{event:l})}):ie(oe(r).map(function(i,s){var l=r[i],u=H(l)?{target:l}:l,c=isNaN(+i)?i:+i,d=a(c,s);return Te(u).map(function(v){return A(A({},v),{event:d,delay:c})})}));return o.map(function(i){var s=i.delay;return A(A({},t.formatTransition(i)),{delay:s})})},e.prototype.getStateNodes=function(t){var r,a=this;if(!t)return[];var o=t instanceof Ye?t.value:Rt(t,this.delimiter);if(H(o)){var i=this.getStateNode(o).initial;return i!==void 0?this.getStateNodes((r={},r[o]=i,r)):[this,this.states[o]]}var s=oe(o),l=[this];return l.push.apply(l,ce([],J(ie(s.map(function(u){return a.getStateNode(u).getStateNodes(o[u])}))),!1)),l},e.prototype.handles=function(t){var r=vo(t);return this.events.includes(r)},e.prototype.resolveState=function(t){var r=Array.from(pt([],this.getStateNodes(t.value)));return new Ye(A(A({},t),{value:this.resolve(t.value),configuration:r,done:Ut(r,this),tags:To(r)}))},e.prototype.transitionLeafNode=function(t,r,a){var o=this.getStateNode(t),i=o.next(r,a);return!i||!i.transitions.length?this.next(r,a):i},e.prototype.transitionCompoundNode=function(t,r,a){var o=oe(t),i=this.getStateNode(o[0]),s=i._transition(t[o[0]],r,a);return!s||!s.transitions.length?this.next(r,a):s},e.prototype.transitionParallelNode=function(t,r,a){var o,i,s={};try{for(var l=W(oe(t)),u=l.next();!u.done;u=l.next()){var c=u.value,d=t[c];if(!!d){var v=this.getStateNode(c),f=v._transition(d,r,a);f&&(s[c]=f)}}}catch(g){o={error:g}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}var p=oe(s).map(function(g){return s[g]}),m=ie(p.map(function(g){return g.transitions})),h=p.some(function(g){return g.transitions.length>0});if(!h)return this.next(r,a);var C=ie(p.map(function(g){return g.entrySet})),b=ie(oe(s).map(function(g){return s[g].configuration}));return{transitions:m,entrySet:C,exitSet:ie(p.map(function(g){return g.exitSet})),configuration:b,source:r,actions:ie(oe(s).map(function(g){return s[g].actions}))}},e.prototype._transition=function(t,r,a){return H(t)?this.transitionLeafNode(t,r,a):oe(t).length===1?this.transitionCompoundNode(t,r,a):this.transitionParallelNode(t,r,a)},e.prototype.getTransitionData=function(t,r){return this._transition(t.value,t,ye(r))},e.prototype.next=function(t,r){var a,o,i=this,s=r.name,l=[],u=[],c;try{for(var d=W(this.getCandidates(s)),v=d.next();!v.done;v=d.next()){var f=v.value,p=f.cond,m=f.in,h=t.context,C=m?H(m)&&gt(m)?t.matches(Rt(this.getStateNodeById(m).path,this.delimiter)):fn(Rt(m,this.delimiter),Fd(this.path.slice(0,-2))(t.value)):!0,b=!1;try{b=!p||So(this.machine,p,h,r,t)}catch(_){throw new Error("Unable to evaluate guard '".concat(p.name||p.type,"' in transition for event '").concat(s,"' in state node '").concat(this.id,`':
15
+ `).concat(_.message))}if(b&&C){f.target!==void 0&&(u=f.target),l.push.apply(l,ce([],J(f.actions),!1)),c=f;break}}}catch(_){a={error:_}}finally{try{v&&!v.done&&(o=d.return)&&o.call(d)}finally{if(a)throw a.error}}if(!!c){if(!u.length)return{transitions:[c],entrySet:[],exitSet:[],configuration:t.value?[this]:[],source:t,actions:l};var g=ie(u.map(function(_){return i.getRelativeStateNodes(_,t.historyValue)})),w=!!c.internal,S=w?[]:ie(g.map(function(_){return i.nodesFromChild(_)}));return{transitions:[c],entrySet:S,exitSet:w?[]:[this],configuration:g,source:t,actions:l}}},e.prototype.nodesFromChild=function(t){if(t.escapes(this))return[];for(var r=[],a=t;a&&a!==this;)r.push(a),a=a.parent;return r.push(this),r},e.prototype.escapes=function(t){if(this===t)return!1;for(var r=this.parent;r;){if(r===t)return!1;r=r.parent}return!0},e.prototype.getActions=function(t,r,a,o){var i,s,l,u,c=pt([],o?this.getStateNodes(o.value):[this]),d=t.configuration.length?pt(c,t.configuration):c;try{for(var v=W(d),f=v.next();!f.done;f=v.next()){var p=f.value;Cr(c,p)||t.entrySet.push(p)}}catch(x){i={error:x}}finally{try{f&&!f.done&&(s=v.return)&&s.call(v)}finally{if(i)throw i.error}}try{for(var m=W(c),h=m.next();!h.done;h=m.next()){var p=h.value;(!Cr(d,p)||Cr(t.exitSet,p.parent))&&t.exitSet.push(p)}}catch(x){l={error:x}}finally{try{h&&!h.done&&(u=m.return)&&u.call(m)}finally{if(l)throw l.error}}var C=ie(t.entrySet.map(function(x){var N=[];if(x.type!=="final")return N;var k=x.parent;if(!k.parent)return N;N.push(gr(x.id,x.doneData),gr(k.id,x.doneData?cr(x.doneData,r,a):void 0));var B=k.parent;return B.type==="parallel"&&vt(B).every(function(V){return Ut(t.configuration,V)})&&N.push(gr(B.id)),N}));t.exitSet.sort(function(x,N){return N.order-x.order}),t.entrySet.sort(function(x,N){return x.order-N.order});var b=new Set(t.entrySet),g=new Set(t.exitSet),w=J([ie(Array.from(b).map(function(x){return ce(ce([],J(x.activities.map(function(N){return ef(N)})),!1),J(x.onEntry),!1)})).concat(C.map(qd)),ie(Array.from(g).map(function(x){return ce(ce([],J(x.onExit),!1),J(x.activities.map(function(N){return tf(N)})),!1)}))],2),S=w[0],_=w[1],I=mr(_.concat(t.actions).concat(S),this.machine.options.actions);return I},e.prototype.transition=function(t,r,a){t===void 0&&(t=this.initialState);var o=ye(r),i;if(t instanceof Ye)i=a===void 0?t:this.resolveState(Ye.from(t,a));else{var s=H(t)?this.resolve(lr(this.getResolvedPath(t))):this.resolve(t),l=a!=null?a:this.machine.context;i=this.resolveState(Ye.from(s,l))}if(!st&&o.name===Lt)throw new Error("An event cannot have the wildcard type ('".concat(Lt,"')"));if(this.strict&&!this.events.includes(o.name)&&!Od(o.name))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(o.name,"'"));var u=this._transition(i.value,i,o)||{transitions:[],configuration:[],entrySet:[],exitSet:[],source:i,actions:[]},c=pt([],this.getStateNodes(i.value)),d=u.configuration.length?pt(c,u.configuration):c;return u.configuration=ce([],J(d),!1),this.resolveTransition(u,i,o)},e.prototype.resolveRaisedTransition=function(t,r,a){var o,i=t.actions;return t=this.transition(t,r),t._event=a,t.event=a.data,(o=t.actions).unshift.apply(o,ce([],J(i),!1)),t},e.prototype.resolveTransition=function(t,r,a,o){var i,s,l=this;a===void 0&&(a=pr),o===void 0&&(o=this.machine.context);var u=t.configuration,c=!r||t.transitions.length>0,d=c?of(this.machine,u):void 0,v=r?r.historyValue?r.historyValue:t.source?this.machine.historyValue(r.value):void 0:void 0,f=r?r.context:o,p=this.getActions(t,f,a,r),m=r?A({},r.activities):{};try{for(var h=W(p),C=h.next();!C.done;C=h.next()){var b=C.value;b.type===mn?m[b.activity.id||b.activity.type]=b:b.type===hn&&(m[b.activity.id||b.activity.type]=!1)}}catch(ae){i={error:ae}}finally{try{C&&!C.done&&(s=h.return)&&s.call(h)}finally{if(i)throw i.error}}var g=J(Sn(this,r,f,a,p,this.machine.config.preserveActionOrder),2),w=g[0],S=g[1],_=J(go(w,function(ae){return ae.type===fr||ae.type===vr&&ae.to===ft.Internal}),2),I=_[0],x=_[1],N=w.filter(function(ae){var _e;return ae.type===mn&&((_e=ae.activity)===null||_e===void 0?void 0:_e.type)===yn}),k=N.reduce(function(ae,_e){return ae[_e.activity.id]=ff(_e.activity,l.machine,S,a),ae},r?A({},r.children):{}),B=d?t.configuration:r?r.configuration:[],V=Ut(B,this),D=new Ye({value:d||r.value,context:S,_event:a,_sessionid:r?r._sessionid:null,historyValue:d?v?Vd(v,d):void 0:r?r.historyValue:void 0,history:!d||t.source?r:void 0,actions:d?x:[],activities:d?m:r?r.activities:{},events:[],configuration:B,transitions:t.transitions,children:k,done:V,tags:r==null?void 0:r.tags,machine:this}),L=f!==S;D.changed=a.name===bn||L;var Q=D.history;Q&&delete Q.history;var Be=!V&&(this._transient||u.some(function(ae){return ae._transient}));if(!c&&(!Be||a.name===mt))return D;var ve=D;if(!V)for(Be&&(ve=this.resolveRaisedTransition(ve,{type:jd},a));I.length;){var Le=I.shift();ve=this.resolveRaisedTransition(ve,Le._event,a)}var We=ve.changed||(Q?!!ve.actions.length||L||typeof Q.value!=typeof ve.value||!$o(ve.value,Q.value):void 0);return ve.changed=We,ve.history=Q,ve.tags=To(ve.configuration),ve},e.prototype.getStateNode=function(t){if(gt(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 r=this.states[t];if(!r)throw new Error("Child state '".concat(t,"' does not exist on '").concat(this.id,"'"));return r},e.prototype.getStateNodeById=function(t){var r=gt(t)?t.slice(xn.length):t;if(r===this.id)return this;var a=this.machine.idMap[r];if(!a)throw new Error("Child state node '#".concat(r,"' does not exist on machine '").concat(this.id,"'"));return a},e.prototype.getStateNodeByPath=function(t){if(typeof t=="string"&&gt(t))try{return this.getStateNodeById(t.slice(1))}catch{}for(var r=vn(t,this.delimiter).slice(),a=this;r.length;){var o=r.shift();if(!o.length)break;a=a.getStateNode(o)}return a},e.prototype.resolve=function(t){var r,a=this;if(!t)return this.initialStateValue||ht;switch(this.type){case"parallel":return Ot(this.initialStateValue,function(i,s){return i?a.getStateNode(s).resolve(t[s]||i):ht});case"compound":if(H(t)){var o=this.getStateNode(t);return o.type==="parallel"||o.type==="compound"?(r={},r[t]=o.initialStateValue,r):t}return oe(t).length?Ot(t,function(i,s){return i?a.getStateNode(s).resolve(i):ht}):this.initialStateValue||{};default:return t||ht}},e.prototype.getResolvedPath=function(t){if(gt(t)){var r=this.machine.idMap[t.slice(xn.length)];if(!r)throw new Error("Unable to find state node '".concat(t,"'"));return r.path}return vn(t,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;var r;if(this.type==="parallel")r=po(this.states,function(a){return a.initialStateValue||ht},function(a){return a.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,"'"));r=br(this.states[this.initial])?this.initial:(t={},t[this.initial]=this.states[this.initial].initialStateValue,t)}else r={};return this.__cache.initialStateValue=r,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(t,r){var a=this.getStateNodes(t);return this.resolveTransition({configuration:a,entrySet:a,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,void 0,r)},Object.defineProperty(e.prototype,"initialState",{get:function(){this._init();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 r=this.config;H(r.target)?t=gt(r.target)?lr(this.machine.getStateNodeById(r.target).path.slice(this.path.length-1)):r.target:t=r.target}return t},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(t,r,a){return a===void 0&&(a=!0),a?t.type==="history"?t.resolveHistory(r):t.initialStateNodes:[t]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var t=this;if(br(this))return[this];if(this.type==="compound"&&!this.initial)return st||lt(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this];var r=ur(this.initialStateValue);return ie(r.map(function(a){return t.getFromRelativePath(a)}))},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var r=J(t),a=r[0],o=r.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(a,"' from node with no states"));var i=this.getStateNode(a);if(i.type==="history")return i.resolveHistory();if(!this.states[a])throw new Error("Child state '".concat(a,"' does not exist on '").concat(this.id,"'"));return this.states[a].getFromRelativePath(o)},e.prototype.historyValue=function(t){if(!!oe(this.states).length)return{current:t||this.initialStateValue,states:po(this.states,function(r,a){if(!t)return r.historyValue();var o=H(t)?void 0:t[a];return r.historyValue(o||r.initialStateValue)},function(r){return!r.history})}},e.prototype.resolveHistory=function(t){var r=this;if(this.type!=="history")return[this];var a=this.parent;if(!t){var o=this.target;return o?ie(ur(o).map(function(s){return a.getFromRelativePath(s)})):a.initialStateNodes}var i=Rd(a.path,"states")(t).current;return H(i)?[a.getStateNode(i)]:ie(ur(i).map(function(s){return r.history==="deep"?a.getFromRelativePath(s):[a.states[s[0]]]}))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var t=this,r=ie(oe(this.states).map(function(a){return t.states[a].stateIds}));return[this.id].concat(r)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){var t,r,a,o;if(this.__cache.events)return this.__cache.events;var i=this.states,s=new Set(this.ownEvents);if(i)try{for(var l=W(oe(i)),u=l.next();!u.done;u=l.next()){var c=u.value,d=i[c];if(d.states)try{for(var v=(a=void 0,W(d.events)),f=v.next();!f.done;f=v.next()){var p=f.value;s.add("".concat(p))}}catch(m){a={error:m}}finally{try{f&&!f.done&&(o=v.return)&&o.call(v)}finally{if(a)throw a.error}}}}catch(m){t={error:m}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}return this.__cache.events=Array.from(s)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownEvents",{get:function(){var t=new Set(this.transitions.filter(function(r){return!(!r.target&&!r.actions.length&&r.internal)}).map(function(r){return r.eventType}));return Array.from(t)},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(t){var r=this;if(t!==void 0)return t.map(function(a){if(!H(a))return a;var o=a[0]===r.delimiter;if(o&&!r.parent)return r.getStateNodeByPath(a.slice(1));var i=o?r.key+a:a;if(r.parent)try{var s=r.parent.getStateNodeByPath(i);return s}catch(l){throw new Error("Invalid transition definition for state node '".concat(r.id,`':
16
+ `).concat(l.message))}else return r.getStateNodeByPath(i)})},e.prototype.formatTransition=function(t){var r=this,a=zd(t.target),o="internal"in t?t.internal:a?a.some(function(u){return H(u)&&u[0]===r.delimiter}):!0,i=this.machine.options.guards,s=this.resolveTarget(a),l=A(A({},t),{actions:mr(Te(t.actions)),cond:Co(t.cond,i),target:s,source:this,internal:o,eventType:t.event,toJSON:function(){return A(A({},l),{target:l.target?l.target.map(function(u){return"#".concat(u.id)}):void 0,source:"#".concat(r.id)})}});return l},e.prototype.formatTransitions=function(){var t,r,a=this,o;if(!this.config.on)o=[];else if(Array.isArray(this.config.on))o=this.config.on;else{var i=this.config.on,s=Lt,l=i[s],u=l===void 0?[]:l,c=un(i,[typeof s=="symbol"?s:s+""]);o=ie(oe(c).map(function(g){!st&&g===mt&&lt(!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(a.id,'".'));var w=dt(g,c[g]);return st||yf(a,g,w),w}).concat(dt(Lt,u)))}var d=this.config.always?dt("",this.config.always):[],v=this.config.onDone?dt(String(gr(this.id)),this.config.onDone):[];st||lt(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var f=ie(this.invoke.map(function(g){var w=[];return g.onDone&&w.push.apply(w,ce([],J(dt(String(yr(g.id)),g.onDone)),!1)),g.onError&&w.push.apply(w,ce([],J(dt(String(Vt(g.id)),g.onError)),!1)),w})),p=this.after,m=ie(ce(ce(ce(ce([],J(v),!1),J(f),!1),J(o),!1),J(d),!1).map(function(g){return Te(g).map(function(w){return a.formatTransition(w)})}));try{for(var h=W(p),C=h.next();!C.done;C=h.next()){var b=C.value;m.push(b)}}catch(g){t={error:g}}finally{try{C&&!C.done&&(r=h.return)&&r.call(h)}finally{if(t)throw t.error}}return m},e}();function zt(e,t){return new bf(e,t)}var Cf={deferEvents:!1},Fo=function(){function e(t){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=A(A({},Cf),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(r){throw this.clear(),r}finally{this.processingEvent=!1}},e}(),En=new Map,wf=0,_r={bookId:function(){return"x:".concat(wf++)},register:function(e,t){return En.set(e,t),e},get:function(e){return En.get(e)},free:function(e){En.delete(e)}};function An(){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 Sf(){var e=An();if(e&&"__xstate__"in e)return e.__xstate__}function _f(e){if(!!An()){var t=Sf();t&&t.register(e)}}function xf(e,t){t===void 0&&(t={});var r=e.initialState,a=new Set,o=[],i=!1,s=function(){if(!i){for(i=!0;o.length>0;){var c=o.shift();r=e.transition(r,c,u),a.forEach(function(d){return d.next(r)})}i=!1}},l=mf({id:t.id,send:function(c){o.push(c),s()},getSnapshot:function(){return r},subscribe:function(c,d,v){var f=xo(c,d,v);return a.add(f),f.next(r),{unsubscribe:function(){a.delete(f)}}}}),u={parent:t.parent,self:l,id:t.id||"anonymous",observers:a};return r=e.start?e.start(u):r,l}var In={sync:!1,autoForward:!1},Se;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Se||(Se={}));var Ef=function(){function e(t,r){var a=this;r===void 0&&(r=e.defaultOptions),this.machine=t,this.scheduler=new Fo,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=Se.NotStarted,this.children=new Map,this.forwardTo=new Set,this.init=this.start,this.send=function(d,v){if(ut(d))return a.batch(d),a.state;var f=ye(pn(d,v));if(a.status===Se.Stopped)return a.state;if(a.status!==Se.Running&&!a.options.deferEvents)throw new Error('Event "'.concat(f.name,'" was sent to uninitialized service "').concat(a.machine.id,`". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.
17
+ Event: `).concat(JSON.stringify(f.data)));return a.scheduler.schedule(function(){a.forward(f);var p=a.nextState(f);a.update(p,f)}),a._state},this.sendTo=function(d,v){var f=a.parent&&(v===ft.Parent||a.parent.id===v),p=f?a.parent:H(v)?a.children.get(v)||_r.get(v):Md(v)?v:void 0;if(!p){if(!f)throw new Error("Unable to send event to child '".concat(v,"' from service '").concat(a.id,"'."));return}"machine"in p?p.send(A(A({},d),{name:d.name===Wd?"".concat(Vt(a.id)):d.name,origin:a.sessionId})):p.send(d.data)};var o=A(A({},e.defaultOptions),r),i=o.clock,s=o.logger,l=o.parent,u=o.id,c=u!==void 0?u:t.id;this.id=c,this.logger=s,this.clock=i,this.parent=l,this.options=o,this.scheduler=new Fo({deferEvents:this.options.deferEvents}),this.sessionId=_r.bookId()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:Mt(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,r){var a,o;try{for(var i=W(t.actions),s=i.next();!s.done;s=i.next()){var l=s.value;this.exec(l,t,r)}}catch(u){a={error:u}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(a)throw a.error}}},e.prototype.update=function(t,r){var a,o,i,s,l,u,c,d,v=this;if(t._sessionid=this.sessionId,this._state=t,this.options.execute&&this.execute(this.state),this.children.forEach(function(k){v.state.children[k.id]=k}),this.devTools&&this.devTools.send(r.data,t),t.event)try{for(var f=W(this.eventListeners),p=f.next();!p.done;p=f.next()){var m=p.value;m(t.event)}}catch(k){a={error:k}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(a)throw a.error}}try{for(var h=W(this.listeners),C=h.next();!C.done;C=h.next()){var m=C.value;m(t,t.event)}}catch(k){i={error:k}}finally{try{C&&!C.done&&(s=h.return)&&s.call(h)}finally{if(i)throw i.error}}try{for(var b=W(this.contextListeners),g=b.next();!g.done;g=b.next()){var w=g.value;w(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(k){l={error:k}}finally{try{g&&!g.done&&(u=b.return)&&u.call(b)}finally{if(l)throw l.error}}var S=Ut(t.configuration||[],this.machine);if(this.state.configuration&&S){var _=t.configuration.find(function(k){return k.type==="final"&&k.parent===v.machine}),I=_&&_.doneData?cr(_.doneData,t.context,r):void 0;try{for(var x=W(this.doneListeners),N=x.next();!N.done;N=x.next()){var m=N.value;m(yr(this.id,I))}}catch(k){c={error:k}}finally{try{N&&!N.done&&(d=x.return)&&d.call(x)}finally{if(c)throw c.error}}this.stop()}},e.prototype.onTransition=function(t){return this.listeners.add(t),this.status===Se.Running&&t(this.state,this.state.event),this},e.prototype.subscribe=function(t,r,a){var o=this;if(!t)return{unsubscribe:function(){}};var i,s=a;return typeof t=="function"?i=t:(i=t.next.bind(t),s=t.complete.bind(t)),this.listeners.add(i),this.status===Se.Running&&i(this.state),s&&this.onDone(s),{unsubscribe:function(){i&&o.listeners.delete(i),s&&o.doneListeners.delete(s)}}},e.prototype.onEvent=function(t){return this.eventListeners.add(t),this},e.prototype.onSend=function(t){return this.sendListeners.add(t),this},e.prototype.onChange=function(t){return this.contextListeners.add(t),this},e.prototype.onStop=function(t){return this.stopListeners.add(t),this},e.prototype.onDone=function(t){return this.doneListeners.add(t),this},e.prototype.off=function(t){return this.listeners.delete(t),this.eventListeners.delete(t),this.sendListeners.delete(t),this.stopListeners.delete(t),this.doneListeners.delete(t),this.contextListeners.delete(t),this},e.prototype.start=function(t){var r=this;if(this.status===Se.Running)return this;_r.register(this.sessionId,this),this.initialized=!0,this.status=Se.Running;var a=t===void 0?this.initialState:Mt(this,function(){return uf(t)?r.machine.resolveState(t):r.machine.resolveState(Ye.from(t,r.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){r.update(a,pr)}),this},e.prototype.stop=function(){var t,r,a,o,i,s,l,u,c,d,v=this;try{for(var f=W(this.listeners),p=f.next();!p.done;p=f.next()){var m=p.value;this.listeners.delete(m)}}catch(N){t={error:N}}finally{try{p&&!p.done&&(r=f.return)&&r.call(f)}finally{if(t)throw t.error}}try{for(var h=W(this.stopListeners),C=h.next();!C.done;C=h.next()){var m=C.value;m(),this.stopListeners.delete(m)}}catch(N){a={error:N}}finally{try{C&&!C.done&&(o=h.return)&&o.call(h)}finally{if(a)throw a.error}}try{for(var b=W(this.contextListeners),g=b.next();!g.done;g=b.next()){var m=g.value;this.contextListeners.delete(m)}}catch(N){i={error:N}}finally{try{g&&!g.done&&(s=b.return)&&s.call(b)}finally{if(i)throw i.error}}try{for(var w=W(this.doneListeners),S=w.next();!S.done;S=w.next()){var m=S.value;this.doneListeners.delete(m)}}catch(N){l={error:N}}finally{try{S&&!S.done&&(u=w.return)&&u.call(w)}finally{if(l)throw l.error}}if(!this.initialized)return this;this.state.configuration.forEach(function(N){var k,B;try{for(var V=W(N.definition.exit),D=V.next();!D.done;D=V.next()){var L=D.value;v.exec(L,v.state)}}catch(Q){k={error:Q}}finally{try{D&&!D.done&&(B=V.return)&&B.call(V)}finally{if(k)throw k.error}}}),this.children.forEach(function(N){X(N.stop)&&N.stop()});try{for(var _=W(oe(this.delayedEventsMap)),I=_.next();!I.done;I=_.next()){var x=I.value;this.clock.clearTimeout(this.delayedEventsMap[x])}}catch(N){c={error:N}}finally{try{I&&!I.done&&(d=_.return)&&d.call(_)}finally{if(c)throw c.error}}return this.scheduler.clear(),this.initialized=!1,this.status=Se.Stopped,_r.free(this.sessionId),this},e.prototype.batch=function(t){var r=this;if(!(this.status===Se.NotStarted&&this.options.deferEvents)){if(this.status!==Se.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 a,o,i=r.state,s=!1,l=[],u=function(f){var p=ye(f);r.forward(p),i=Mt(r,function(){return r.machine.transition(i,p)}),l.push.apply(l,ce([],J(i.actions.map(function(m){return cf(m,i)})),!1)),s=s||!!i.changed};try{for(var c=W(t),d=c.next();!d.done;d=c.next()){var v=d.value;u(v)}}catch(f){a={error:f}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(a)throw a.error}}i.changed=s,i.actions=l,r.update(i,ye(t[t.length-1]))})},e.prototype.sender=function(t){return this.send.bind(this,t)},e.prototype.nextState=function(t){var r=this,a=ye(t);if(a.name.indexOf(Io)===0&&!this.state.nextEvents.some(function(i){return i.indexOf(Io)===0}))throw a.data.data;var o=Mt(this,function(){return r.machine.transition(r.state,a)});return o},e.prototype.forward=function(t){var r,a;try{for(var o=W(this.forwardTo),i=o.next();!i.done;i=o.next()){var s=i.value,l=this.children.get(s);if(!l)throw new Error("Unable to forward event '".concat(t,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(s,"'."));l.send(t)}}catch(u){r={error:u}}finally{try{i&&!i.done&&(a=o.return)&&a.call(o)}finally{if(r)throw r.error}}},e.prototype.defer=function(t){var r=this;this.delayedEventsMap[t.id]=this.clock.setTimeout(function(){t.to?r.sendTo(t._event,t.to):r.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,r,a){a===void 0&&(a=this.machine.options.actions);var o=r.context,i=r._event,s=t.exec||Cn(t.type,a),l=X(s)?s:s?s.exec:t.exec;if(l)try{return l(o,i.data,{action:t,state:this.state,_event:i})}catch(S){throw this.parent&&this.parent.send({type:"xstate.error",data:S}),S}switch(t.type){case vr:var u=t;if(typeof u.delay=="number"){this.defer(u);return}else u.to?this.sendTo(u._event,u.to):this.send(u._event);break;case Eo:this.cancel(t.sendId);break;case mn:{if(this.status!==Se.Running)return;var c=t.activity;if(!this.state.activities[c.id||c.type])break;if(c.type===ee.Invoke){var d=_o(c.src),v=this.machine.options.services?this.machine.options.services[d.type]:void 0,f=c.id,p=c.data,m="autoForward"in c?c.autoForward:!!c.forward;if(!v)return;var h=p?cr(p,o,i):void 0;if(typeof v=="string")return;var C=X(v)?v(o,i.data,{data:h,src:d,meta:c.meta}):v;if(!C)return;var b=void 0;ze(C)&&(C=h?C.withContext(h):C,b={autoForward:m}),this.spawn(C,f,b)}else this.spawnActivity(c);break}case hn:{this.stopChild(t.activity.id);break}case Ao:var g=t.label,w=t.value;g?this.logger(g,w):this.logger(w);break}},e.prototype.removeChild=function(t){var r;this.children.delete(t),this.forwardTo.delete(t),(r=this.state)===null||r===void 0||delete r.children[t]},e.prototype.stopChild=function(t){var r=this.children.get(t);!r||(this.removeChild(t),X(r.stop)&&r.stop())},e.prototype.spawn=function(t,r,a){if(ho(t))return this.spawnPromise(Promise.resolve(t),r);if(X(t))return this.spawnCallback(t,r);if(pf(t))return this.spawnActor(t,r);if(Ud(t))return this.spawnObservable(t,r);if(ze(t))return this.spawnMachine(t,A(A({},a),{id:r}));if(Dd(t))return this.spawnBehavior(t,r);throw new Error('Unable to spawn entity "'.concat(r,'" of type "').concat(typeof t,'".'))},e.prototype.spawnMachine=function(t,r){var a=this;r===void 0&&(r={});var o=new e(t,A(A({},this.options),{parent:this,id:r.id||t.id})),i=A(A({},In),r);i.sync&&o.onTransition(function(l){a.send(bn,{state:l,id:o.id})});var s=o;return this.children.set(o.id,s),i.autoForward&&this.forwardTo.add(o.id),o.onDone(function(l){a.removeChild(o.id),a.send(ye(l,{origin:o.id}))}).start(),s},e.prototype.spawnBehavior=function(t,r){var a=xf(t,{id:r,parent:this});return this.children.set(r,a),a},e.prototype.spawnPromise=function(t,r){var a=this,o=!1,i;t.then(function(l){o||(i=l,a.removeChild(r),a.send(ye(yr(r,l),{origin:r})))},function(l){if(!o){a.removeChild(r);var u=Vt(r,l);try{a.send(ye(u,{origin:r}))}catch{a.devTools&&a.devTools.send(u,a.state),a.machine.strict&&a.stop()}}});var s=A({id:r,send:function(){},subscribe:function(l,u,c){var d=xo(l,u,c),v=!1;return t.then(function(f){v||(d.next(f),!v&&d.complete())},function(f){v||d.error(f)}),{unsubscribe:function(){return v=!0}}},stop:function(){o=!0},toJSON:function(){return{id:r}},getSnapshot:function(){return i}},ct);return this.children.set(r,s),s},e.prototype.spawnCallback=function(t,r){var a=this,o=!1,i=new Set,s=new Set,l,u=function(v){l=v,s.forEach(function(f){return f(v)}),!o&&a.send(ye(v,{origin:r}))},c;try{c=t(u,function(v){i.add(v)})}catch(v){this.send(Vt(r,v))}if(ho(c))return this.spawnPromise(c,r);var d=A({id:r,send:function(v){return i.forEach(function(f){return f(v)})},subscribe:function(v){return s.add(v),{unsubscribe:function(){s.delete(v)}}},stop:function(){o=!0,X(c)&&c()},toJSON:function(){return{id:r}},getSnapshot:function(){return l}},ct);return this.children.set(r,d),d},e.prototype.spawnObservable=function(t,r){var a=this,o,i=t.subscribe(function(l){o=l,a.send(ye(l,{origin:r}))},function(l){a.removeChild(r),a.send(ye(Vt(r,l),{origin:r}))},function(){a.removeChild(r),a.send(ye(yr(r),{origin:r}))}),s=A({id:r,send:function(){},subscribe:function(l,u,c){return t.subscribe(l,u,c)},stop:function(){return i.unsubscribe()},getSnapshot:function(){return o},toJSON:function(){return{id:r}}},ct);return this.children.set(r,s),s},e.prototype.spawnActor=function(t,r){return this.children.set(r,t),t},e.prototype.spawnActivity=function(t){var r=this.machine.options&&this.machine.options.activities?this.machine.options.activities[t.type]:void 0;if(!!r){var a=r(this.state.context,t);this.spawnEffect(t.id,a)}},e.prototype.spawnEffect=function(t,r){this.children.set(t,A({id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:r||void 0,getSnapshot:function(){},toJSON:function(){return{id:t}}},ct))},e.prototype.attachDev=function(){var t=An();if(this.options.devTools&&t){if(t.__REDUX_DEVTOOLS_EXTENSION__){var r=typeof this.options.devTools=="object"?this.options.devTools:void 0;this.devTools=t.__REDUX_DEVTOOLS_EXTENSION__.connect(A(A({name:this.id,autoPause:!0,stateSanitizer:function(a){return{value:a.value,context:a.context,actions:a.actions}}},r),{features:A({jump:!1,skip:!1},r?r.features:void 0)}),this.machine),this.devTools.init(this.state)}_f(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[wo]=function(){return this},e.prototype.getSnapshot=function(){return this.status===Se.NotStarted?this.initialState:this._state},e.defaultOptions=function(t){return{execute:!0,deferEvents:!0,clock:{setTimeout:function(r,a){return setTimeout(r,a)},clearTimeout:function(r){return clearTimeout(r)}},logger:t.console.log.bind(console),devTools:!1}}(typeof self!="undefined"?self:global),e.interpret=Ro,e}(),Af=function(e){return H(e)?A(A({},In),{name:e}):A(A(A({},In),{name:Ld()}),e)};function xr(e,t){var r=Af(t);return df(function(a){if(!st){var o=ze(e)||X(e);lt(!!a||o,'Attempted to spawn an Actor (ID: "'.concat(ze(e)?e.id:"undefined",'") outside of a service. This will have no effect.'))}return a?a.spawn(e,r.name,r):Bo(e,r.name)})}function Ro(e,t){var r=new Ef(e,t);return r}var Z={},Nn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});/*! *****************************************************************************
18
18
  Copyright (c) Microsoft Corporation.
19
19
 
20
20
  Permission to use, copy, modify, and/or distribute this software for any
@@ -27,7 +27,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
27
27
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
28
28
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
29
29
  PERFORMANCE OF THIS SOFTWARE.
30
- ***************************************************************************** */e.__assign=function(){return e.__assign=Object.assign||function(s){for(var l,u=1,c=arguments.length;u<c;u++){l=arguments[u];for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(s[d]=l[d])}return s},e.__assign.apply(this,arguments)};function t(i,s){var l={};for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&s.indexOf(u)<0&&(l[u]=i[u]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,u=Object.getOwnPropertySymbols(i);c<u.length;c++)s.indexOf(u[c])<0&&Object.prototype.propertyIsEnumerable.call(i,u[c])&&(l[u[c]]=i[u[c]]);return l}function r(i){var s=typeof Symbol=="function"&&Symbol.iterator,l=s&&i[s],u=0;if(l)return l.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&u>=i.length&&(i=void 0),{value:i&&i[u++],done:!i}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(i,s){var l=typeof Symbol=="function"&&i[Symbol.iterator];if(!l)return i;var u=l.call(i),c,d=[],v;try{for(;(s===void 0||s-- >0)&&!(c=u.next()).done;)d.push(c.value)}catch(f){v={error:f}}finally{try{c&&!c.done&&(l=u.return)&&l.call(u)}finally{if(v)throw v.error}}return d}function o(i,s,l){if(l||arguments.length===2)for(var u=0,c=s.length,d;u<c;u++)(d||!(u in s))&&(d||(d=Array.prototype.slice.call(s,0,u)),d[u]=s[u]);return i.concat(d||Array.prototype.slice.call(s))}e.__read=a,e.__rest=t,e.__spreadArray=o,e.__values=r})(Nn);var Er={};Object.defineProperty(Er,"__esModule",{value:!0});var If=!0;Er.IS_PRODUCTION=If;var Do={},yt={};Object.defineProperty(yt,"__esModule",{value:!0});var Nf=".",Pf={},Tf="xstate.guard",$f="";yt.DEFAULT_GUARD_TYPE=Tf;yt.EMPTY_ACTIVITY_MAP=Pf;yt.STATE_DELIMITER=Nf;yt.TARGETLESS_KEY=$f;(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Nn,r=yt,a=Er,o;function i(y){return Object.keys(y)}function s(y,$,R){R===void 0&&(R=r.STATE_DELIMITER);var F=d(y,R),M=d($,R);return Q(M)?Q(F)?M===F:!1:Q(F)?F in M:i(F).every(function(z){return z in M?s(F[z],M[z]):!1})}function l(y){try{return Q(y)||typeof y=="number"?"".concat(y):y.type}catch{throw new Error("Events must be strings or objects with a string event.type property.")}}function u(y,$){try{return O(y)?y:y.toString().split($)}catch{throw new Error("'".concat(y,"' is not a valid state path."))}}function c(y){return typeof y=="object"&&"value"in y&&"context"in y&&"event"in y&&"_event"in y}function d(y,$){if(c(y))return y.value;if(O(y))return v(y);if(typeof y!="string")return y;var R=u(y,$);return v(R)}function v(y){if(y.length===1)return y[0];for(var $={},R=$,F=0;F<y.length-1;F++)F===y.length-2?R[y[F]]=y[F+1]:(R[y[F]]={},R=R[y[F]]);return $}function f(y,$){for(var R={},F=i(y),M=0;M<F.length;M++){var z=F[M];R[z]=$(y[z],z,y,M)}return R}function p(y,$,R){var F,M,z={};try{for(var q=t.__values(i(y)),G=q.next();!G.done;G=q.next()){var ue=G.value,de=y[ue];!R(de)||(z[ue]=$(de,ue,y))}}catch(D){F={error:D}}finally{try{G&&!G.done&&(M=q.return)&&M.call(q)}finally{if(F)throw F.error}}return z}var m=function(y){return function($){var R,F,M=$;try{for(var z=t.__values(y),q=z.next();!q.done;q=z.next()){var G=q.value;M=M[G]}}catch(ue){R={error:ue}}finally{try{q&&!q.done&&(F=z.return)&&F.call(z)}finally{if(R)throw R.error}}return M}};function h(y,$){return function(R){var F,M,z=R;try{for(var q=t.__values(y),G=q.next();!G.done;G=q.next()){var ue=G.value;z=z[$][ue]}}catch(de){F={error:de}}finally{try{G&&!G.done&&(M=q.return)&&M.call(q)}finally{if(F)throw F.error}}return z}}function C(y){if(!y)return[[]];if(Q(y))return[[y]];var $=b(i(y).map(function(R){var F=y[R];return typeof F!="string"&&(!F||!Object.keys(F).length)?[[R]]:C(y[R]).map(function(M){return[R].concat(M)})}));return $}function b(y){var $;return($=[]).concat.apply($,t.__spreadArray([],t.__read(y),!1))}function g(y){return O(y)?y:[y]}function w(y){return y===void 0?[]:g(y)}function _(y,$,R){var F,M;if(L(y))return y($,R.data);var z={};try{for(var q=t.__values(Object.keys(y)),G=q.next();!G.done;G=q.next()){var ue=G.value,de=y[ue];L(de)?z[ue]=de($,R.data):z[ue]=de}}catch(D){F={error:D}}finally{try{G&&!G.done&&(M=q.return)&&M.call(q)}finally{if(F)throw F.error}}return z}function S(y){return/^(done|error)\./.test(y)}function I(y){return!!(y instanceof Promise||y!==null&&(L(y)||typeof y=="object")&&L(y.then))}function x(y){return y!==null&&typeof y=="object"&&"transition"in y&&typeof y.transition=="function"}function N(y,$){var R,F,M=t.__read([[],[]],2),z=M[0],q=M[1];try{for(var G=t.__values(y),ue=G.next();!ue.done;ue=G.next()){var de=ue.value;$(de)?z.push(de):q.push(de)}}catch(D){R={error:D}}finally{try{ue&&!ue.done&&(F=G.return)&&F.call(G)}finally{if(R)throw R.error}}return[z,q]}function k(y,$){return f(y.states,function(R,F){if(!!R){var M=(Q($)?void 0:$[F])||(R?R.current:void 0);if(!!M)return{current:M,states:k(R,M)}}})}function B(y,$){return{current:$,states:k(y,$)}}function V(y,$,R,F){a.IS_PRODUCTION||e.warn(!!y,"Attempting to update undefined context");var M=y&&R.reduce(function(z,q){var G,ue,de=q.assignment,D={state:F,action:q,_event:$},U={};if(L(de))U=de(z,$.data,D);else try{for(var He=t.__values(i(de)),et=He.next();!et.done;et=He.next()){var Ha=et.value,tn=de[Ha];U[Ha]=L(tn)?tn(z,$.data,D):tn}}catch(pl){G={error:pl}}finally{try{et&&!et.done&&(ue=He.return)&&ue.call(He)}finally{if(G)throw G.error}}return Object.assign({},z,U)},y);return M}e.warn=function(){},a.IS_PRODUCTION||(e.warn=function(y,$){var R=y instanceof Error?y:void 0;if(!(!R&&y)&&console!==void 0){var F=["Warning: ".concat($)];R&&F.push(R),console.warn.apply(console,F)}});function O(y){return Array.isArray(y)}function L(y){return typeof y=="function"}function Q(y){return typeof y=="string"}function Be(y,$){if(!!y)return Q(y)?{type:r.DEFAULT_GUARD_TYPE,name:y,predicate:$?$[y]:void 0}:L(y)?{type:r.DEFAULT_GUARD_TYPE,name:y.name,predicate:y}:y}function ve(y){try{return"subscribe"in y&&L(y.subscribe)}catch{return!1}}var Le=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),We=(o={},o[Le]=function(){return this},o);function ae(y){try{return"__xstatenode"in y}catch{return!1}}function Se(y){return!!y&&typeof y.send=="function"}var Qr=function(){var y=0;return function(){return y++,y.toString(16)}}();function $t(y,$){return Q(y)||typeof y=="number"?t.__assign({type:y},$):y}function Jt(y,$){if(!Q(y)&&"$$type"in y&&y.$$type==="scxml")return y;var R=$t(y);return t.__assign({name:R.type,data:R,$$type:"scxml",type:"external"},$)}function kt(y,$){var R=g($).map(function(F){return typeof F=="undefined"||typeof F=="string"||ae(F)?{target:F,event:y}:t.__assign(t.__assign({},F),{event:y})});return R}function T(y){if(!(y===void 0||y===r.TARGETLESS_KEY))return w(y)}function Ce(y,$,R){if(!a.IS_PRODUCTION){var F=y.stack?" Stacktrace was '".concat(y.stack,"'"):"";if(y===$)console.error("Missing onError handler for invocation '".concat(R,"', error was '").concat(y,"'.").concat(F));else{var M=$.stack?" Stacktrace was '".concat($.stack,"'"):"";console.error("Missing onError handler and/or unhandled exception/promise rejection for invocation '".concat(R,"'. ")+"Original error: '".concat(y,"'. ").concat(F," Current error is '").concat($,"'.").concat(M))}}}function Xt(y,$,R,F,M){var z=y.options.guards,q={state:M,cond:$,_event:F};if($.type===r.DEFAULT_GUARD_TYPE)return((z==null?void 0:z[$.name])||$.predicate)(R,F.data,q);var G=z[$.type];if(!G)throw new Error("Guard '".concat($.type,"' is not implemented on machine '").concat(y.id,"'."));return G(R,F.data,q)}function en(y){return typeof y=="string"?{type:y}:y}function Qt(y,$,R){if(typeof y=="object")return y;var F=function(){};return{next:y,error:$||F,complete:R||F}}function er(y,$){return"".concat(y,":invocation[").concat($,"]")}e.createInvokeId=er,e.evaluateGuard=Xt,e.flatten=b,e.getEventType=l,e.interopSymbols=We,e.isActor=Se,e.isArray=O,e.isBehavior=x,e.isBuiltInEvent=S,e.isFunction=L,e.isMachine=ae,e.isObservable=ve,e.isPromiseLike=I,e.isStateLike=c,e.isString=Q,e.keys=i,e.mapContext=_,e.mapFilterValues=p,e.mapValues=f,e.matchesState=s,e.nestedPath=h,e.normalizeTarget=T,e.partition=N,e.path=m,e.pathToStateValue=v,e.reportUnhandledExceptionOnInvocation=Ce,e.symbolObservable=Le,e.toArray=w,e.toArrayStrict=g,e.toEventObject=$t,e.toGuard=Be,e.toInvokeSource=en,e.toObserver=Qt,e.toSCXMLEvent=Jt,e.toStatePath=u,e.toStatePaths=C,e.toStateValue=d,e.toTransitionConfigArray=kt,e.uniqueId=Qr,e.updateContext=V,e.updateHistoryStates=k,e.updateHistoryValue=B})(Do);var Pn={};(function(e){Object.defineProperty(e,"__esModule",{value:!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={})),function(t){t.Parent="#_parent",t.Internal="#_internal"}(e.SpecialTargets||(e.SpecialTargets={}))})(Pn);var fe={};Object.defineProperty(fe,"__esModule",{value:!0});var me=Pn,kf=me.ActionTypes.Start,Bf=me.ActionTypes.Stop,Ff=me.ActionTypes.Raise,Rf=me.ActionTypes.Send,Df=me.ActionTypes.Cancel,Of=me.ActionTypes.NullEvent,Vf=me.ActionTypes.Assign,Uf=me.ActionTypes.After,Mf=me.ActionTypes.DoneState,Lf=me.ActionTypes.Log,zf=me.ActionTypes.Init,jf=me.ActionTypes.Invoke,Gf=me.ActionTypes.ErrorExecution,Wf=me.ActionTypes.ErrorPlatform,Hf=me.ActionTypes.ErrorCustom,Kf=me.ActionTypes.Update,qf=me.ActionTypes.Choose,Yf=me.ActionTypes.Pure;fe.after=Uf;fe.assign=Vf;fe.cancel=Df;fe.choose=qf;fe.doneState=Mf;fe.error=Hf;fe.errorExecution=Gf;fe.errorPlatform=Wf;fe.init=zf;fe.invoke=jf;fe.log=Lf;fe.nullEvent=Of;fe.pure=Yf;fe.raise=Ff;fe.send=Rf;fe.start=kf;fe.stop=Bf;fe.update=Kf;Object.defineProperty(Z,"__esModule",{value:!0});var te=Nn,Zf=Er,K=Do,Ee=Pn,he=fe,Jf=K.toSCXMLEvent({type:he.init});function Tn(e,t){return t&&t[e]||void 0}function Ar(e,t){var r;if(K.isString(e)||typeof e=="number"){var a=Tn(e,t);K.isFunction(a)?r={type:e,exec:a}:a?r=a:r={type:e,exec:void 0}}else if(K.isFunction(e))r={type:e.name||e.toString(),exec:e};else{var a=Tn(e.type,t);if(K.isFunction(a))r=te.__assign(te.__assign({},e),{exec:a});else if(a){var o=a.type||e.type;r=te.__assign(te.__assign(te.__assign({},a),e),{type:o})}else r=e}return r}var $n=function(e,t){if(!e)return[];var r=K.isArray(e)?e:[e];return r.map(function(a){return Ar(a,t)})};function kn(e){var t=Ar(e);return te.__assign(te.__assign({id:K.isString(e)?e:t.id},t),{type:t.type})}function Xf(e){return K.isString(e)?{type:he.raise,event:e}:bt(e,{to:Ee.SpecialTargets.Internal})}function Oo(e){return{type:he.raise,_event:K.toSCXMLEvent(e.event)}}function bt(e,t){return{to:t?t.to:void 0,type:he.send,event:K.isFunction(e)?e:K.toEventObject(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:K.isFunction(e)?e.name:K.getEventType(e)}}function Vo(e,t,r,a){var o={_event:r},i=K.toSCXMLEvent(K.isFunction(e.event)?e.event(t,r.data,o):e.event),s;if(K.isString(e.delay)){var l=a&&a[e.delay];s=K.isFunction(l)?l(t,r.data,o):l}else s=K.isFunction(e.delay)?e.delay(t,r.data,o):e.delay;var u=K.isFunction(e.to)?e.to(t,r.data,o):e.to;return te.__assign(te.__assign({},e),{to:u,_event:i,event:i.data,delay:s})}function Bn(e,t){return bt(e,te.__assign(te.__assign({},t),{to:Ee.SpecialTargets.Parent}))}function Qf(e,t,r){return bt(t,te.__assign(te.__assign({},r),{to:e}))}function ev(){return Bn(he.update)}function tv(e,t){return bt(e,te.__assign(te.__assign({},t),{to:function(r,a,o){var i=o._event;return i.origin}}))}var rv=function(e,t){return{context:e,event:t}};function nv(e,t){return e===void 0&&(e=rv),{type:he.log,label:t,expr:e}}var Uo=function(e,t,r){return te.__assign(te.__assign({},e),{value:K.isString(e.expr)?e.expr:e.expr(t,r.data,{_event:r})})},av=function(e){return{type:he.cancel,sendId:e}};function ov(e){var t=kn(e);return{type:Ee.ActionTypes.Start,activity:t,exec:void 0}}function iv(e){var t=K.isFunction(e)?e:kn(e);return{type:Ee.ActionTypes.Stop,activity:t,exec:void 0}}function Mo(e,t,r){var a=K.isFunction(e.activity)?e.activity(t,r.data):e.activity,o=typeof a=="string"?{id:a}:a,i={type:Ee.ActionTypes.Stop,activity:o};return i}var sv=function(e){return{type:he.assign,assignment:e}};function lv(e,t){var r=t?"#".concat(t):"";return"".concat(Ee.ActionTypes.After,"(").concat(e,")").concat(r)}function uv(e,t){var r="".concat(Ee.ActionTypes.DoneState,".").concat(e),a={type:r,data:t};return a.toString=function(){return r},a}function cv(e,t){var r="".concat(Ee.ActionTypes.DoneInvoke,".").concat(e),a={type:r,data:t};return a.toString=function(){return r},a}function dv(e,t){var r="".concat(Ee.ActionTypes.ErrorPlatform,".").concat(e),a={type:r,data:t};return a.toString=function(){return r},a}function fv(e){return{type:Ee.ActionTypes.Pure,get:e}}function vv(e,t){return bt(function(r,a){return a},te.__assign(te.__assign({},t),{to:e}))}function pv(e,t){return Bn(function(r,a,o){return{type:he.error,data:K.isFunction(e)?e(r,a,o):e}},te.__assign(te.__assign({},t),{to:Ee.SpecialTargets.Parent}))}function mv(e){return{type:Ee.ActionTypes.Choose,conds:e}}function Fn(e,t,r,a,o,i){i===void 0&&(i=!1);var s=te.__read(i?[[],o]:K.partition(o,function(f){return f.type===he.assign}),2),l=s[0],u=s[1],c=l.length?K.updateContext(r,a,l,t):r,d=i?[r]:void 0,v=K.flatten(u.map(function(f){var p;switch(f.type){case he.raise:return Oo(f);case he.send:var m=Vo(f,c,a,e.options.delays);return Zf.IS_PRODUCTION||K.warn(!K.isString(f.delay)||typeof m.delay=="number","No delay reference for delay expression '".concat(f.delay,"' was found on machine '").concat(e.id,"'")),m;case he.log:return Uo(f,c,a);case he.choose:{var h=f,C=(p=h.conds.find(function(B){var V=K.toGuard(B.cond,e.options.guards);return!V||K.evaluateGuard(e,V,c,a,t)}))===null||p===void 0?void 0:p.actions;if(!C)return[];var b=te.__read(Fn(e,t,c,a,$n(K.toArray(C),e.options.actions),i),2),g=b[0],w=b[1];return c=w,d==null||d.push(c),g}case he.pure:{var C=f.get(c,a.data);if(!C)return[];var _=te.__read(Fn(e,t,c,a,$n(K.toArray(C),e.options.actions),i),2),S=_[0],I=_[1];return c=I,d==null||d.push(c),S}case he.stop:return Mo(f,c,a);case he.assign:{c=K.updateContext(c,a,[f],t),d==null||d.push(c);break}default:var x=Ar(f,e.options.actions),N=x.exec;if(N&&d){var k=d.length-1;x=te.__assign(te.__assign({},x),{exec:function(B){for(var V=[],O=1;O<arguments.length;O++)V[O-1]=arguments[O];N.apply(void 0,te.__spreadArray([d[k]],te.__read(V),!1))}})}return x}}).filter(function(f){return!!f}));return[v,c]}Z.after=lv;var se=Z.assign=sv;Z.cancel=av;Z.choose=mv;Z.done=uv;Z.doneInvoke=cv;Z.error=dv;Z.escalate=pv;Z.forwardTo=vv;Z.getActionFunction=Tn;Z.initEvent=Jf;Z.log=nv;Z.pure=fv;Z.raise=Xf;Z.resolveActions=Fn;Z.resolveLog=Uo;Z.resolveRaise=Oo;Z.resolveSend=Vo;Z.resolveStop=Mo;Z.respond=tv;Z.send=bt;Z.sendParent=Bn;Z.sendTo=Qf;Z.sendUpdate=ev;Z.start=ov;var hv=Z.stop=iv;Z.toActionObject=Ar;Z.toActionObjects=$n;Z.toActivityDefinition=kn;var gv=Pe,yv=nr,bv=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Cv=/^\w*$/;function wv(e,t){if(gv(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||yv(e)?!0:Cv.test(e)||!bv.test(e)||t!=null&&e in Object(t)}var Rn=wv,_v=Ve,Sv=_v["__core-js_shared__"],xv=Sv,Dn=xv,Lo=function(){var e=/[^.]+$/.exec(Dn&&Dn.keys&&Dn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ev(e){return!!Lo&&Lo in e}var Av=Ev,Iv=Function.prototype,Nv=Iv.toString;function Pv(e){if(e!=null){try{return Nv.call(e)}catch{}try{return e+""}catch{}}return""}var zo=Pv,Tv=nn,$v=Av,kv=Ue,Bv=zo,Fv=/[\\^$.*+?()[\]{}|]/g,Rv=/^\[object .+?Constructor\]$/,Dv=Function.prototype,Ov=Object.prototype,Vv=Dv.toString,Uv=Ov.hasOwnProperty,Mv=RegExp("^"+Vv.call(Uv).replace(Fv,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Lv(e){if(!kv(e)||$v(e))return!1;var t=Tv(e)?Mv:Rv;return t.test(Bv(e))}var zv=Lv;function jv(e,t){return e==null?void 0:e[t]}var Gv=jv,Wv=zv,Hv=Gv;function Kv(e,t){var r=Hv(e,t);return Wv(r)?r:void 0}var rt=Kv,qv=rt,Yv=qv(Object,"create"),Ir=Yv,jo=Ir;function Zv(){this.__data__=jo?jo(null):{},this.size=0}var Jv=Zv;function Xv(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Qv=Xv,ep=Ir,tp="__lodash_hash_undefined__",rp=Object.prototype,np=rp.hasOwnProperty;function ap(e){var t=this.__data__;if(ep){var r=t[e];return r===tp?void 0:r}return np.call(t,e)?t[e]:void 0}var op=ap,ip=Ir,sp=Object.prototype,lp=sp.hasOwnProperty;function up(e){var t=this.__data__;return ip?t[e]!==void 0:lp.call(t,e)}var cp=up,dp=Ir,fp="__lodash_hash_undefined__";function vp(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=dp&&t===void 0?fp:t,this}var pp=vp,mp=Jv,hp=Qv,gp=op,yp=cp,bp=pp;function Ct(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Ct.prototype.clear=mp;Ct.prototype.delete=hp;Ct.prototype.get=gp;Ct.prototype.has=yp;Ct.prototype.set=bp;var Cp=Ct;function wp(){this.__data__=[],this.size=0}var _p=wp;function Sp(e,t){return e===t||e!==e&&t!==t}var jt=Sp,xp=jt;function Ep(e,t){for(var r=e.length;r--;)if(xp(e[r][0],t))return r;return-1}var Nr=Ep,Ap=Nr,Ip=Array.prototype,Np=Ip.splice;function Pp(e){var t=this.__data__,r=Ap(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():Np.call(t,r,1),--this.size,!0}var Tp=Pp,$p=Nr;function kp(e){var t=this.__data__,r=$p(t,e);return r<0?void 0:t[r][1]}var Bp=kp,Fp=Nr;function Rp(e){return Fp(this.__data__,e)>-1}var Dp=Rp,Op=Nr;function Vp(e,t){var r=this.__data__,a=Op(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}var Up=Vp,Mp=_p,Lp=Tp,zp=Bp,jp=Dp,Gp=Up;function wt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}wt.prototype.clear=Mp;wt.prototype.delete=Lp;wt.prototype.get=zp;wt.prototype.has=jp;wt.prototype.set=Gp;var Pr=wt,Wp=rt,Hp=Ve,Kp=Wp(Hp,"Map"),On=Kp,Go=Cp,qp=Pr,Yp=On;function Zp(){this.size=0,this.__data__={hash:new Go,map:new(Yp||qp),string:new Go}}var Jp=Zp;function Xp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Qp=Xp,em=Qp;function tm(e,t){var r=e.__data__;return em(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Tr=tm,rm=Tr;function nm(e){var t=rm(this,e).delete(e);return this.size-=t?1:0,t}var am=nm,om=Tr;function im(e){return om(this,e).get(e)}var sm=im,lm=Tr;function um(e){return lm(this,e).has(e)}var cm=um,dm=Tr;function fm(e,t){var r=dm(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}var vm=fm,pm=Jp,mm=am,hm=sm,gm=cm,ym=vm;function _t(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}_t.prototype.clear=pm;_t.prototype.delete=mm;_t.prototype.get=hm;_t.prototype.has=gm;_t.prototype.set=ym;var Vn=_t,Wo=Vn,bm="Expected a function";function Un(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(bm);var r=function(){var a=arguments,o=t?t.apply(this,a):a[0],i=r.cache;if(i.has(o))return i.get(o);var s=e.apply(this,a);return r.cache=i.set(o,s)||i,s};return r.cache=new(Un.Cache||Wo),r}Un.Cache=Wo;var Cm=Un,wm=Cm,_m=500;function Sm(e){var t=wm(e,function(a){return r.size===_m&&r.clear(),a}),r=t.cache;return t}var xm=Sm,Em=xm,Am=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Im=/\\(\\)?/g,Nm=Em(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Am,function(r,a,o,i){t.push(o?i.replace(Im,"$1"):a||r)}),t}),Pm=Nm,Ho=rr,Tm=on,$m=Pe,km=nr,Bm=1/0,Ko=Ho?Ho.prototype:void 0,qo=Ko?Ko.toString:void 0;function Yo(e){if(typeof e=="string")return e;if($m(e))return Tm(e,Yo)+"";if(km(e))return qo?qo.call(e):"";var t=e+"";return t=="0"&&1/e==-Bm?"-0":t}var Fm=Yo,Rm=Fm;function Dm(e){return e==null?"":Rm(e)}var Mn=Dm,Om=Pe,Vm=Rn,Um=Pm,Mm=Mn;function Lm(e,t){return Om(e)?e:Vm(e,t)?[e]:Um(Mm(e))}var $r=Lm,zm=nr,jm=1/0;function Gm(e){if(typeof e=="string"||zm(e))return e;var t=e+"";return t=="0"&&1/e==-jm?"-0":t}var Gt=Gm,Wm=$r,Hm=Gt;function Km(e,t){t=Wm(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[Hm(t[r++])];return r&&r==a?e:void 0}var Ln=Km,qm=Ln;function Ym(e,t,r){var a=e==null?void 0:qm(e,t);return a===void 0?r:a}var Ae=Ym,Zm=rt,Jm=Ve,Xm=Zm(Jm,"DataView"),Qm=Xm,eh=rt,th=Ve,rh=eh(th,"Promise"),nh=rh,ah=rt,oh=Ve,ih=ah(oh,"Set"),sh=ih,lh=rt,uh=Ve,ch=lh(uh,"WeakMap"),dh=ch,zn=Qm,jn=On,Gn=nh,Wn=sh,Hn=dh,Zo=tt,St=zo,Jo="[object Map]",fh="[object Object]",Xo="[object Promise]",Qo="[object Set]",ei="[object WeakMap]",ti="[object DataView]",vh=St(zn),ph=St(jn),mh=St(Gn),hh=St(Wn),gh=St(Hn),nt=Zo;(zn&&nt(new zn(new ArrayBuffer(1)))!=ti||jn&&nt(new jn)!=Jo||Gn&&nt(Gn.resolve())!=Xo||Wn&&nt(new Wn)!=Qo||Hn&&nt(new Hn)!=ei)&&(nt=function(e){var t=Zo(e),r=t==fh?e.constructor:void 0,a=r?St(r):"";if(a)switch(a){case vh:return ti;case ph:return Jo;case mh:return Xo;case hh:return Qo;case gh:return ei}return t});var ri=nt,yh=uo,bh=ri,Ch=ar,wh=Pe,_h=ot,Sh=it.exports,xh=sr,Eh=ir,Ah="[object Map]",Ih="[object Set]",Nh=Object.prototype,Ph=Nh.hasOwnProperty;function Th(e){if(e==null)return!0;if(_h(e)&&(wh(e)||typeof e=="string"||typeof e.splice=="function"||Sh(e)||Eh(e)||Ch(e)))return!e.length;var t=bh(e);if(t==Ah||t==Ih)return!e.size;if(xh(e))return!yh(e).length;for(var r in e)if(Ph.call(e,r))return!1;return!0}var Kn=Th,$h=Pr;function kh(){this.__data__=new $h,this.size=0}var Bh=kh;function Fh(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var Rh=Fh;function Dh(e){return this.__data__.get(e)}var Oh=Dh;function Vh(e){return this.__data__.has(e)}var Uh=Vh,Mh=Pr,Lh=On,zh=Vn,jh=200;function Gh(e,t){var r=this.__data__;if(r instanceof Mh){var a=r.__data__;if(!Lh||a.length<jh-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new zh(a)}return r.set(e,t),this.size=r.size,this}var Wh=Gh,Hh=Pr,Kh=Bh,qh=Rh,Yh=Oh,Zh=Uh,Jh=Wh;function xt(e){var t=this.__data__=new Hh(e);this.size=t.size}xt.prototype.clear=Kh;xt.prototype.delete=qh;xt.prototype.get=Yh;xt.prototype.has=Zh;xt.prototype.set=Jh;var qn=xt,Xh=rt,Qh=function(){try{var e=Xh(Object,"defineProperty");return e({},"",{}),e}catch{}}(),ni=Qh,ai=ni;function eg(e,t,r){t=="__proto__"&&ai?ai(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Yn=eg,tg=Yn,rg=jt;function ng(e,t,r){(r!==void 0&&!rg(e[t],r)||r===void 0&&!(t in e))&&tg(e,t,r)}var oi=ng;function ag(e){return function(t,r,a){for(var o=-1,i=Object(t),s=a(t),l=s.length;l--;){var u=s[e?l:++o];if(r(i[u],u,i)===!1)break}return t}}var og=ag,ig=og,sg=ig(),lg=sg,Zn={exports:{}};(function(e,t){var r=Ve,a=t&&!t.nodeType&&t,o=a&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===a,s=i?r.Buffer:void 0,l=s?s.allocUnsafe:void 0;function u(c,d){if(d)return c.slice();var v=c.length,f=l?l(v):new c.constructor(v);return c.copy(f),f}e.exports=u})(Zn,Zn.exports);var ug=Ve,cg=ug.Uint8Array,ii=cg,si=ii;function dg(e){var t=new e.constructor(e.byteLength);return new si(t).set(new si(e)),t}var fg=dg,vg=fg;function pg(e,t){var r=t?vg(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var mg=pg;function hg(e,t){var r=-1,a=e.length;for(t||(t=Array(a));++r<a;)t[r]=e[r];return t}var gg=hg,yg=Ue,li=Object.create,bg=function(){function e(){}return function(t){if(!yg(t))return{};if(li)return li(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),Cg=bg,wg=lo,_g=wg(Object.getPrototypeOf,Object),Jn=_g,Sg=Cg,xg=Jn,Eg=sr;function Ag(e){return typeof e.constructor=="function"&&!Eg(e)?Sg(xg(e)):{}}var Ig=Ag,Ng=ot,Pg=Ke;function Tg(e){return Pg(e)&&Ng(e)}var $g=Tg,kg=tt,Bg=Jn,Fg=Ke,Rg="[object Object]",Dg=Function.prototype,Og=Object.prototype,ui=Dg.toString,Vg=Og.hasOwnProperty,Ug=ui.call(Object);function Mg(e){if(!Fg(e)||kg(e)!=Rg)return!1;var t=Bg(e);if(t===null)return!0;var r=Vg.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ui.call(r)==Ug}var Lg=Mg;function zg(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var ci=zg,jg=Yn,Gg=jt,Wg=Object.prototype,Hg=Wg.hasOwnProperty;function Kg(e,t,r){var a=e[t];(!(Hg.call(e,t)&&Gg(a,r))||r===void 0&&!(t in e))&&jg(e,t,r)}var di=Kg,qg=di,Yg=Yn;function Zg(e,t,r,a){var o=!r;r||(r={});for(var i=-1,s=t.length;++i<s;){var l=t[i],u=a?a(r[l],e[l],l,r,e):void 0;u===void 0&&(u=e[l]),o?Yg(r,l,u):qg(r,l,u)}return r}var Jg=Zg;function Xg(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Qg=Xg,e0=Ue,t0=sr,r0=Qg,n0=Object.prototype,a0=n0.hasOwnProperty;function o0(e){if(!e0(e))return r0(e);var t=t0(e),r=[];for(var a in e)a=="constructor"&&(t||!a0.call(e,a))||r.push(a);return r}var i0=o0,s0=so,l0=i0,u0=ot;function c0(e){return u0(e)?s0(e,!0):l0(e)}var Xn=c0,d0=Jg,f0=Xn;function v0(e){return d0(e,f0(e))}var p0=v0,fi=oi,m0=Zn.exports,h0=mg,g0=gg,y0=Ig,vi=ar,pi=Pe,b0=$g,C0=it.exports,w0=nn,_0=Ue,S0=Lg,x0=ir,mi=ci,E0=p0;function A0(e,t,r,a,o,i,s){var l=mi(e,r),u=mi(t,r),c=s.get(u);if(c){fi(e,r,c);return}var d=i?i(l,u,r+"",e,t,s):void 0,v=d===void 0;if(v){var f=pi(u),p=!f&&C0(u),m=!f&&!p&&x0(u);d=u,f||p||m?pi(l)?d=l:b0(l)?d=g0(l):p?(v=!1,d=m0(u,!0)):m?(v=!1,d=h0(u,!0)):d=[]:S0(u)||vi(u)?(d=l,vi(l)?d=E0(l):(!_0(l)||w0(l))&&(d=y0(u))):v=!1}v&&(s.set(u,d),o(d,u,a,i,s),s.delete(u)),fi(e,r,d)}var I0=A0,N0=qn,P0=oi,T0=lg,$0=I0,k0=Ue,B0=Xn,F0=ci;function hi(e,t,r,a,o){e!==t&&T0(t,function(i,s){if(o||(o=new N0),k0(i))$0(e,t,s,r,hi,a,o);else{var l=a?a(F0(e,s),i,s+"",e,t,o):void 0;l===void 0&&(l=i),P0(e,s,l)}},B0)}var R0=hi;function D0(e){return e}var Qn=D0;function O0(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var V0=O0,U0=V0,gi=Math.max;function M0(e,t,r){return t=gi(t===void 0?e.length-1:t,0),function(){for(var a=arguments,o=-1,i=gi(a.length-t,0),s=Array(i);++o<i;)s[o]=a[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=a[o];return l[t]=r(s),U0(e,this,l)}}var L0=M0;function z0(e){return function(){return e}}var j0=z0,G0=j0,yi=ni,W0=Qn,H0=yi?function(e,t){return yi(e,"toString",{configurable:!0,enumerable:!1,value:G0(t),writable:!0})}:W0,K0=H0,q0=800,Y0=16,Z0=Date.now;function J0(e){var t=0,r=0;return function(){var a=Z0(),o=Y0-(a-r);if(r=a,o>0){if(++t>=q0)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var X0=J0,Q0=K0,ey=X0,ty=ey(Q0),ry=ty,ny=Qn,ay=L0,oy=ry;function iy(e,t){return oy(ay(e,t,ny),e+"")}var sy=iy,ly=jt,uy=ot,cy=or,dy=Ue;function fy(e,t,r){if(!dy(r))return!1;var a=typeof t;return(a=="number"?uy(r)&&cy(t,r.length):a=="string"&&t in r)?ly(r[t],e):!1}var vy=fy,py=sy,my=vy;function hy(e){return py(function(t,r){var a=-1,o=r.length,i=o>1?r[o-1]:void 0,s=o>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,s&&my(r[0],r[1],s)&&(i=o<3?void 0:i,o=1),t=Object(t);++a<o;){var l=r[a];l&&e(t,l,a,i)}return t})}var gy=hy,yy=R0,by=gy,Cy=by(function(e,t,r){yy(e,t,r)}),wy=Cy,_y="__lodash_hash_undefined__";function Sy(e){return this.__data__.set(e,_y),this}var xy=Sy;function Ey(e){return this.__data__.has(e)}var Ay=Ey,Iy=Vn,Ny=xy,Py=Ay;function kr(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Iy;++t<r;)this.add(e[t])}kr.prototype.add=kr.prototype.push=Ny;kr.prototype.has=Py;var Ty=kr;function $y(e,t){for(var r=-1,a=e==null?0:e.length;++r<a;)if(t(e[r],r,e))return!0;return!1}var ky=$y;function By(e,t){return e.has(t)}var Fy=By,Ry=Ty,Dy=ky,Oy=Fy,Vy=1,Uy=2;function My(e,t,r,a,o,i){var s=r&Vy,l=e.length,u=t.length;if(l!=u&&!(s&&u>l))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var v=-1,f=!0,p=r&Uy?new Ry:void 0;for(i.set(e,t),i.set(t,e);++v<l;){var m=e[v],h=t[v];if(a)var C=s?a(h,m,v,t,e,i):a(m,h,v,e,t,i);if(C!==void 0){if(C)continue;f=!1;break}if(p){if(!Dy(t,function(b,g){if(!Oy(p,g)&&(m===b||o(m,b,r,a,i)))return p.push(g)})){f=!1;break}}else if(!(m===h||o(m,h,r,a,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var bi=My;function Ly(e){var t=-1,r=Array(e.size);return e.forEach(function(a,o){r[++t]=[o,a]}),r}var zy=Ly;function jy(e){var t=-1,r=Array(e.size);return e.forEach(function(a){r[++t]=a}),r}var Gy=jy,Ci=rr,wi=ii,Wy=jt,Hy=bi,Ky=zy,qy=Gy,Yy=1,Zy=2,Jy="[object Boolean]",Xy="[object Date]",Qy="[object Error]",e1="[object Map]",t1="[object Number]",r1="[object RegExp]",n1="[object Set]",a1="[object String]",o1="[object Symbol]",i1="[object ArrayBuffer]",s1="[object DataView]",_i=Ci?Ci.prototype:void 0,ea=_i?_i.valueOf:void 0;function l1(e,t,r,a,o,i,s){switch(r){case s1:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case i1:return!(e.byteLength!=t.byteLength||!i(new wi(e),new wi(t)));case Jy:case Xy:case t1:return Wy(+e,+t);case Qy:return e.name==t.name&&e.message==t.message;case r1:case a1:return e==t+"";case e1:var l=Ky;case n1:var u=a&Yy;if(l||(l=qy),e.size!=t.size&&!u)return!1;var c=s.get(e);if(c)return c==t;a|=Zy,s.set(e,t);var d=Hy(l(e),l(t),a,o,i,s);return s.delete(e),d;case o1:if(ea)return ea.call(e)==ea.call(t)}return!1}var u1=l1;function c1(e,t){for(var r=-1,a=t.length,o=e.length;++r<a;)e[o+r]=t[r];return e}var Si=c1,d1=Si,f1=Pe;function v1(e,t,r){var a=t(e);return f1(e)?a:d1(a,r(e))}var xi=v1;function p1(e,t){for(var r=-1,a=e==null?0:e.length,o=0,i=[];++r<a;){var s=e[r];t(s,r,e)&&(i[o++]=s)}return i}var m1=p1;function h1(){return[]}var Ei=h1,g1=m1,y1=Ei,b1=Object.prototype,C1=b1.propertyIsEnumerable,Ai=Object.getOwnPropertySymbols,w1=Ai?function(e){return e==null?[]:(e=Object(e),g1(Ai(e),function(t){return C1.call(e,t)}))}:y1,Ii=w1,_1=xi,S1=Ii,x1=ln;function E1(e){return _1(e,x1,S1)}var A1=E1,Ni=A1,I1=1,N1=Object.prototype,P1=N1.hasOwnProperty;function T1(e,t,r,a,o,i){var s=r&I1,l=Ni(e),u=l.length,c=Ni(t),d=c.length;if(u!=d&&!s)return!1;for(var v=u;v--;){var f=l[v];if(!(s?f in t:P1.call(t,f)))return!1}var p=i.get(e),m=i.get(t);if(p&&m)return p==t&&m==e;var h=!0;i.set(e,t),i.set(t,e);for(var C=s;++v<u;){f=l[v];var b=e[f],g=t[f];if(a)var w=s?a(g,b,f,t,e,i):a(b,g,f,e,t,i);if(!(w===void 0?b===g||o(b,g,r,a,i):w)){h=!1;break}C||(C=f=="constructor")}if(h&&!C){var _=e.constructor,S=t.constructor;_!=S&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof S=="function"&&S instanceof S)&&(h=!1)}return i.delete(e),i.delete(t),h}var $1=T1,ta=qn,k1=bi,B1=u1,F1=$1,Pi=ri,Ti=Pe,$i=it.exports,R1=ir,D1=1,ki="[object Arguments]",Bi="[object Array]",Br="[object Object]",O1=Object.prototype,Fi=O1.hasOwnProperty;function V1(e,t,r,a,o,i){var s=Ti(e),l=Ti(t),u=s?Bi:Pi(e),c=l?Bi:Pi(t);u=u==ki?Br:u,c=c==ki?Br:c;var d=u==Br,v=c==Br,f=u==c;if(f&&$i(e)){if(!$i(t))return!1;s=!0,d=!1}if(f&&!d)return i||(i=new ta),s||R1(e)?k1(e,t,r,a,o,i):B1(e,t,u,r,a,o,i);if(!(r&D1)){var p=d&&Fi.call(e,"__wrapped__"),m=v&&Fi.call(t,"__wrapped__");if(p||m){var h=p?e.value():e,C=m?t.value():t;return i||(i=new ta),o(h,C,r,a,i)}}return f?(i||(i=new ta),F1(e,t,r,a,o,i)):!1}var U1=V1,M1=U1,Ri=Ke;function Di(e,t,r,a,o){return e===t?!0:e==null||t==null||!Ri(e)&&!Ri(t)?e!==e&&t!==t:M1(e,t,r,a,Di,o)}var Oi=Di,L1=qn,z1=Oi,j1=1,G1=2;function W1(e,t,r,a){var o=r.length,i=o,s=!a;if(e==null)return!i;for(e=Object(e);o--;){var l=r[o];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<i;){l=r[o];var u=l[0],c=e[u],d=l[1];if(s&&l[2]){if(c===void 0&&!(u in e))return!1}else{var v=new L1;if(a)var f=a(c,d,u,e,t,v);if(!(f===void 0?z1(d,c,j1|G1,a,v):f))return!1}}return!0}var H1=W1,K1=Ue;function q1(e){return e===e&&!K1(e)}var Vi=q1,Y1=Vi,Z1=ln;function J1(e){for(var t=Z1(e),r=t.length;r--;){var a=t[r],o=e[a];t[r]=[a,o,Y1(o)]}return t}var X1=J1;function Q1(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Ui=Q1,eb=H1,tb=X1,rb=Ui;function nb(e){var t=tb(e);return t.length==1&&t[0][2]?rb(t[0][0],t[0][1]):function(r){return r===e||eb(r,e,t)}}var ab=nb;function ob(e,t){return e!=null&&t in Object(e)}var ib=ob,sb=$r,lb=ar,ub=Pe,cb=or,db=an,fb=Gt;function vb(e,t,r){t=sb(t,e);for(var a=-1,o=t.length,i=!1;++a<o;){var s=fb(t[a]);if(!(i=e!=null&&r(e,s)))break;e=e[s]}return i||++a!=o?i:(o=e==null?0:e.length,!!o&&db(o)&&cb(s,o)&&(ub(e)||lb(e)))}var pb=vb,mb=ib,hb=pb;function gb(e,t){return e!=null&&hb(e,t,mb)}var yb=gb,bb=Oi,Cb=Ae,wb=yb,_b=Rn,Sb=Vi,xb=Ui,Eb=Gt,Ab=1,Ib=2;function Nb(e,t){return _b(e)&&Sb(t)?xb(Eb(e),t):function(r){var a=Cb(r,e);return a===void 0&&a===t?wb(r,e):bb(t,a,Ab|Ib)}}var Pb=Nb;function Tb(e){return function(t){return t==null?void 0:t[e]}}var $b=Tb,kb=Ln;function Bb(e){return function(t){return kb(t,e)}}var Fb=Bb,Rb=$b,Db=Fb,Ob=Rn,Vb=Gt;function Ub(e){return Ob(e)?Rb(Vb(e)):Db(e)}var Mb=Ub,Lb=ab,zb=Pb,jb=Qn,Gb=Pe,Wb=Mb;function Hb(e){return typeof e=="function"?e:e==null?jb:typeof e=="object"?Gb(e)?zb(e[0],e[1]):Lb(e):Wb(e)}var Kb=Hb,qb=di,Yb=$r,Zb=or,Mi=Ue,Jb=Gt;function Xb(e,t,r,a){if(!Mi(e))return e;t=Yb(t,e);for(var o=-1,i=t.length,s=i-1,l=e;l!=null&&++o<i;){var u=Jb(t[o]),c=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(o!=s){var d=l[u];c=a?a(d,u,l):void 0,c===void 0&&(c=Mi(d)?d:Zb(t[o+1])?[]:{})}qb(l,u,c),l=l[u]}return e}var Qb=Xb,eC=Ln,tC=Qb,rC=$r;function nC(e,t,r){for(var a=-1,o=t.length,i={};++a<o;){var s=t[a],l=eC(e,s);r(l,s)&&tC(i,rC(s,e),l)}return i}var aC=nC,oC=Si,iC=Jn,sC=Ii,lC=Ei,uC=Object.getOwnPropertySymbols,cC=uC?function(e){for(var t=[];e;)oC(t,sC(e)),e=iC(e);return t}:lC,dC=cC,fC=xi,vC=dC,pC=Xn;function mC(e){return fC(e,pC,vC)}var hC=mC,gC=on,yC=Kb,bC=aC,CC=hC;function wC(e,t){if(e==null)return{};var r=gC(CC(e),function(a){return[a]});return t=yC(t),bC(e,r,function(a,o){return t(a,o[0])})}var _C=wC;/*! *****************************************************************************
30
+ ***************************************************************************** */e.__assign=function(){return e.__assign=Object.assign||function(s){for(var l,u=1,c=arguments.length;u<c;u++){l=arguments[u];for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(s[d]=l[d])}return s},e.__assign.apply(this,arguments)};function t(i,s){var l={};for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&s.indexOf(u)<0&&(l[u]=i[u]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,u=Object.getOwnPropertySymbols(i);c<u.length;c++)s.indexOf(u[c])<0&&Object.prototype.propertyIsEnumerable.call(i,u[c])&&(l[u[c]]=i[u[c]]);return l}function r(i){var s=typeof Symbol=="function"&&Symbol.iterator,l=s&&i[s],u=0;if(l)return l.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&u>=i.length&&(i=void 0),{value:i&&i[u++],done:!i}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(i,s){var l=typeof Symbol=="function"&&i[Symbol.iterator];if(!l)return i;var u=l.call(i),c,d=[],v;try{for(;(s===void 0||s-- >0)&&!(c=u.next()).done;)d.push(c.value)}catch(f){v={error:f}}finally{try{c&&!c.done&&(l=u.return)&&l.call(u)}finally{if(v)throw v.error}}return d}function o(i,s,l){if(l||arguments.length===2)for(var u=0,c=s.length,d;u<c;u++)(d||!(u in s))&&(d||(d=Array.prototype.slice.call(s,0,u)),d[u]=s[u]);return i.concat(d||Array.prototype.slice.call(s))}e.__read=a,e.__rest=t,e.__spreadArray=o,e.__values=r})(Nn);var Er={};Object.defineProperty(Er,"__esModule",{value:!0});var If=!0;Er.IS_PRODUCTION=If;var Oo={},yt={};Object.defineProperty(yt,"__esModule",{value:!0});var Nf=".",Pf={},Tf="xstate.guard",$f="";yt.DEFAULT_GUARD_TYPE=Tf;yt.EMPTY_ACTIVITY_MAP=Pf;yt.STATE_DELIMITER=Nf;yt.TARGETLESS_KEY=$f;(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Nn,r=yt,a=Er,o;function i(y){return Object.keys(y)}function s(y,$,R){R===void 0&&(R=r.STATE_DELIMITER);var F=d(y,R),M=d($,R);return Q(M)?Q(F)?M===F:!1:Q(F)?F in M:i(F).every(function(z){return z in M?s(F[z],M[z]):!1})}function l(y){try{return Q(y)||typeof y=="number"?"".concat(y):y.type}catch{throw new Error("Events must be strings or objects with a string event.type property.")}}function u(y,$){try{return D(y)?y:y.toString().split($)}catch{throw new Error("'".concat(y,"' is not a valid state path."))}}function c(y){return typeof y=="object"&&"value"in y&&"context"in y&&"event"in y&&"_event"in y}function d(y,$){if(c(y))return y.value;if(D(y))return v(y);if(typeof y!="string")return y;var R=u(y,$);return v(R)}function v(y){if(y.length===1)return y[0];for(var $={},R=$,F=0;F<y.length-1;F++)F===y.length-2?R[y[F]]=y[F+1]:(R[y[F]]={},R=R[y[F]]);return $}function f(y,$){for(var R={},F=i(y),M=0;M<F.length;M++){var z=F[M];R[z]=$(y[z],z,y,M)}return R}function p(y,$,R){var F,M,z={};try{for(var q=t.__values(i(y)),G=q.next();!G.done;G=q.next()){var ue=G.value,de=y[ue];!R(de)||(z[ue]=$(de,ue,y))}}catch(O){F={error:O}}finally{try{G&&!G.done&&(M=q.return)&&M.call(q)}finally{if(F)throw F.error}}return z}var m=function(y){return function($){var R,F,M=$;try{for(var z=t.__values(y),q=z.next();!q.done;q=z.next()){var G=q.value;M=M[G]}}catch(ue){R={error:ue}}finally{try{q&&!q.done&&(F=z.return)&&F.call(z)}finally{if(R)throw R.error}}return M}};function h(y,$){return function(R){var F,M,z=R;try{for(var q=t.__values(y),G=q.next();!G.done;G=q.next()){var ue=G.value;z=z[$][ue]}}catch(de){F={error:de}}finally{try{G&&!G.done&&(M=q.return)&&M.call(q)}finally{if(F)throw F.error}}return z}}function C(y){if(!y)return[[]];if(Q(y))return[[y]];var $=b(i(y).map(function(R){var F=y[R];return typeof F!="string"&&(!F||!Object.keys(F).length)?[[R]]:C(y[R]).map(function(M){return[R].concat(M)})}));return $}function b(y){var $;return($=[]).concat.apply($,t.__spreadArray([],t.__read(y),!1))}function g(y){return D(y)?y:[y]}function w(y){return y===void 0?[]:g(y)}function S(y,$,R){var F,M;if(L(y))return y($,R.data);var z={};try{for(var q=t.__values(Object.keys(y)),G=q.next();!G.done;G=q.next()){var ue=G.value,de=y[ue];L(de)?z[ue]=de($,R.data):z[ue]=de}}catch(O){F={error:O}}finally{try{G&&!G.done&&(M=q.return)&&M.call(q)}finally{if(F)throw F.error}}return z}function _(y){return/^(done|error)\./.test(y)}function I(y){return!!(y instanceof Promise||y!==null&&(L(y)||typeof y=="object")&&L(y.then))}function x(y){return y!==null&&typeof y=="object"&&"transition"in y&&typeof y.transition=="function"}function N(y,$){var R,F,M=t.__read([[],[]],2),z=M[0],q=M[1];try{for(var G=t.__values(y),ue=G.next();!ue.done;ue=G.next()){var de=ue.value;$(de)?z.push(de):q.push(de)}}catch(O){R={error:O}}finally{try{ue&&!ue.done&&(F=G.return)&&F.call(G)}finally{if(R)throw R.error}}return[z,q]}function k(y,$){return f(y.states,function(R,F){if(!!R){var M=(Q($)?void 0:$[F])||(R?R.current:void 0);if(!!M)return{current:M,states:k(R,M)}}})}function B(y,$){return{current:$,states:k(y,$)}}function V(y,$,R,F){a.IS_PRODUCTION||e.warn(!!y,"Attempting to update undefined context");var M=y&&R.reduce(function(z,q){var G,ue,de=q.assignment,O={state:F,action:q,_event:$},U={};if(L(de))U=de(z,$.data,O);else try{for(var He=t.__values(i(de)),et=He.next();!et.done;et=He.next()){var Ha=et.value,tn=de[Ha];U[Ha]=L(tn)?tn(z,$.data,O):tn}}catch(pl){G={error:pl}}finally{try{et&&!et.done&&(ue=He.return)&&ue.call(He)}finally{if(G)throw G.error}}return Object.assign({},z,U)},y);return M}e.warn=function(){},a.IS_PRODUCTION||(e.warn=function(y,$){var R=y instanceof Error?y:void 0;if(!(!R&&y)&&console!==void 0){var F=["Warning: ".concat($)];R&&F.push(R),console.warn.apply(console,F)}});function D(y){return Array.isArray(y)}function L(y){return typeof y=="function"}function Q(y){return typeof y=="string"}function Be(y,$){if(!!y)return Q(y)?{type:r.DEFAULT_GUARD_TYPE,name:y,predicate:$?$[y]:void 0}:L(y)?{type:r.DEFAULT_GUARD_TYPE,name:y.name,predicate:y}:y}function ve(y){try{return"subscribe"in y&&L(y.subscribe)}catch{return!1}}var Le=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),We=(o={},o[Le]=function(){return this},o);function ae(y){try{return"__xstatenode"in y}catch{return!1}}function _e(y){return!!y&&typeof y.send=="function"}var Qr=function(){var y=0;return function(){return y++,y.toString(16)}}();function $t(y,$){return Q(y)||typeof y=="number"?t.__assign({type:y},$):y}function Jt(y,$){if(!Q(y)&&"$$type"in y&&y.$$type==="scxml")return y;var R=$t(y);return t.__assign({name:R.type,data:R,$$type:"scxml",type:"external"},$)}function kt(y,$){var R=g($).map(function(F){return typeof F=="undefined"||typeof F=="string"||ae(F)?{target:F,event:y}:t.__assign(t.__assign({},F),{event:y})});return R}function T(y){if(!(y===void 0||y===r.TARGETLESS_KEY))return w(y)}function Ce(y,$,R){if(!a.IS_PRODUCTION){var F=y.stack?" Stacktrace was '".concat(y.stack,"'"):"";if(y===$)console.error("Missing onError handler for invocation '".concat(R,"', error was '").concat(y,"'.").concat(F));else{var M=$.stack?" Stacktrace was '".concat($.stack,"'"):"";console.error("Missing onError handler and/or unhandled exception/promise rejection for invocation '".concat(R,"'. ")+"Original error: '".concat(y,"'. ").concat(F," Current error is '").concat($,"'.").concat(M))}}}function Xt(y,$,R,F,M){var z=y.options.guards,q={state:M,cond:$,_event:F};if($.type===r.DEFAULT_GUARD_TYPE)return((z==null?void 0:z[$.name])||$.predicate)(R,F.data,q);var G=z[$.type];if(!G)throw new Error("Guard '".concat($.type,"' is not implemented on machine '").concat(y.id,"'."));return G(R,F.data,q)}function en(y){return typeof y=="string"?{type:y}:y}function Qt(y,$,R){if(typeof y=="object")return y;var F=function(){};return{next:y,error:$||F,complete:R||F}}function er(y,$){return"".concat(y,":invocation[").concat($,"]")}e.createInvokeId=er,e.evaluateGuard=Xt,e.flatten=b,e.getEventType=l,e.interopSymbols=We,e.isActor=_e,e.isArray=D,e.isBehavior=x,e.isBuiltInEvent=_,e.isFunction=L,e.isMachine=ae,e.isObservable=ve,e.isPromiseLike=I,e.isStateLike=c,e.isString=Q,e.keys=i,e.mapContext=S,e.mapFilterValues=p,e.mapValues=f,e.matchesState=s,e.nestedPath=h,e.normalizeTarget=T,e.partition=N,e.path=m,e.pathToStateValue=v,e.reportUnhandledExceptionOnInvocation=Ce,e.symbolObservable=Le,e.toArray=w,e.toArrayStrict=g,e.toEventObject=$t,e.toGuard=Be,e.toInvokeSource=en,e.toObserver=Qt,e.toSCXMLEvent=Jt,e.toStatePath=u,e.toStatePaths=C,e.toStateValue=d,e.toTransitionConfigArray=kt,e.uniqueId=Qr,e.updateContext=V,e.updateHistoryStates=k,e.updateHistoryValue=B})(Oo);var Pn={};(function(e){Object.defineProperty(e,"__esModule",{value:!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={})),function(t){t.Parent="#_parent",t.Internal="#_internal"}(e.SpecialTargets||(e.SpecialTargets={}))})(Pn);var fe={};Object.defineProperty(fe,"__esModule",{value:!0});var me=Pn,kf=me.ActionTypes.Start,Bf=me.ActionTypes.Stop,Ff=me.ActionTypes.Raise,Rf=me.ActionTypes.Send,Of=me.ActionTypes.Cancel,Df=me.ActionTypes.NullEvent,Vf=me.ActionTypes.Assign,Uf=me.ActionTypes.After,Mf=me.ActionTypes.DoneState,Lf=me.ActionTypes.Log,zf=me.ActionTypes.Init,jf=me.ActionTypes.Invoke,Gf=me.ActionTypes.ErrorExecution,Wf=me.ActionTypes.ErrorPlatform,Hf=me.ActionTypes.ErrorCustom,Kf=me.ActionTypes.Update,qf=me.ActionTypes.Choose,Yf=me.ActionTypes.Pure;fe.after=Uf;fe.assign=Vf;fe.cancel=Of;fe.choose=qf;fe.doneState=Mf;fe.error=Hf;fe.errorExecution=Gf;fe.errorPlatform=Wf;fe.init=zf;fe.invoke=jf;fe.log=Lf;fe.nullEvent=Df;fe.pure=Yf;fe.raise=Ff;fe.send=Rf;fe.start=kf;fe.stop=Bf;fe.update=Kf;Object.defineProperty(Z,"__esModule",{value:!0});var te=Nn,Zf=Er,K=Oo,Ee=Pn,he=fe,Jf=K.toSCXMLEvent({type:he.init});function Tn(e,t){return t&&t[e]||void 0}function Ar(e,t){var r;if(K.isString(e)||typeof e=="number"){var a=Tn(e,t);K.isFunction(a)?r={type:e,exec:a}:a?r=a:r={type:e,exec:void 0}}else if(K.isFunction(e))r={type:e.name||e.toString(),exec:e};else{var a=Tn(e.type,t);if(K.isFunction(a))r=te.__assign(te.__assign({},e),{exec:a});else if(a){var o=a.type||e.type;r=te.__assign(te.__assign(te.__assign({},a),e),{type:o})}else r=e}return r}var $n=function(e,t){if(!e)return[];var r=K.isArray(e)?e:[e];return r.map(function(a){return Ar(a,t)})};function kn(e){var t=Ar(e);return te.__assign(te.__assign({id:K.isString(e)?e:t.id},t),{type:t.type})}function Xf(e){return K.isString(e)?{type:he.raise,event:e}:bt(e,{to:Ee.SpecialTargets.Internal})}function Do(e){return{type:he.raise,_event:K.toSCXMLEvent(e.event)}}function bt(e,t){return{to:t?t.to:void 0,type:he.send,event:K.isFunction(e)?e:K.toEventObject(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:K.isFunction(e)?e.name:K.getEventType(e)}}function Vo(e,t,r,a){var o={_event:r},i=K.toSCXMLEvent(K.isFunction(e.event)?e.event(t,r.data,o):e.event),s;if(K.isString(e.delay)){var l=a&&a[e.delay];s=K.isFunction(l)?l(t,r.data,o):l}else s=K.isFunction(e.delay)?e.delay(t,r.data,o):e.delay;var u=K.isFunction(e.to)?e.to(t,r.data,o):e.to;return te.__assign(te.__assign({},e),{to:u,_event:i,event:i.data,delay:s})}function Bn(e,t){return bt(e,te.__assign(te.__assign({},t),{to:Ee.SpecialTargets.Parent}))}function Qf(e,t,r){return bt(t,te.__assign(te.__assign({},r),{to:e}))}function ev(){return Bn(he.update)}function tv(e,t){return bt(e,te.__assign(te.__assign({},t),{to:function(r,a,o){var i=o._event;return i.origin}}))}var rv=function(e,t){return{context:e,event:t}};function nv(e,t){return e===void 0&&(e=rv),{type:he.log,label:t,expr:e}}var Uo=function(e,t,r){return te.__assign(te.__assign({},e),{value:K.isString(e.expr)?e.expr:e.expr(t,r.data,{_event:r})})},av=function(e){return{type:he.cancel,sendId:e}};function ov(e){var t=kn(e);return{type:Ee.ActionTypes.Start,activity:t,exec:void 0}}function iv(e){var t=K.isFunction(e)?e:kn(e);return{type:Ee.ActionTypes.Stop,activity:t,exec:void 0}}function Mo(e,t,r){var a=K.isFunction(e.activity)?e.activity(t,r.data):e.activity,o=typeof a=="string"?{id:a}:a,i={type:Ee.ActionTypes.Stop,activity:o};return i}var sv=function(e){return{type:he.assign,assignment:e}};function lv(e,t){var r=t?"#".concat(t):"";return"".concat(Ee.ActionTypes.After,"(").concat(e,")").concat(r)}function uv(e,t){var r="".concat(Ee.ActionTypes.DoneState,".").concat(e),a={type:r,data:t};return a.toString=function(){return r},a}function cv(e,t){var r="".concat(Ee.ActionTypes.DoneInvoke,".").concat(e),a={type:r,data:t};return a.toString=function(){return r},a}function dv(e,t){var r="".concat(Ee.ActionTypes.ErrorPlatform,".").concat(e),a={type:r,data:t};return a.toString=function(){return r},a}function fv(e){return{type:Ee.ActionTypes.Pure,get:e}}function vv(e,t){return bt(function(r,a){return a},te.__assign(te.__assign({},t),{to:e}))}function pv(e,t){return Bn(function(r,a,o){return{type:he.error,data:K.isFunction(e)?e(r,a,o):e}},te.__assign(te.__assign({},t),{to:Ee.SpecialTargets.Parent}))}function mv(e){return{type:Ee.ActionTypes.Choose,conds:e}}function Fn(e,t,r,a,o,i){i===void 0&&(i=!1);var s=te.__read(i?[[],o]:K.partition(o,function(f){return f.type===he.assign}),2),l=s[0],u=s[1],c=l.length?K.updateContext(r,a,l,t):r,d=i?[r]:void 0,v=K.flatten(u.map(function(f){var p;switch(f.type){case he.raise:return Do(f);case he.send:var m=Vo(f,c,a,e.options.delays);return Zf.IS_PRODUCTION||K.warn(!K.isString(f.delay)||typeof m.delay=="number","No delay reference for delay expression '".concat(f.delay,"' was found on machine '").concat(e.id,"'")),m;case he.log:return Uo(f,c,a);case he.choose:{var h=f,C=(p=h.conds.find(function(B){var V=K.toGuard(B.cond,e.options.guards);return!V||K.evaluateGuard(e,V,c,a,t)}))===null||p===void 0?void 0:p.actions;if(!C)return[];var b=te.__read(Fn(e,t,c,a,$n(K.toArray(C),e.options.actions),i),2),g=b[0],w=b[1];return c=w,d==null||d.push(c),g}case he.pure:{var C=f.get(c,a.data);if(!C)return[];var S=te.__read(Fn(e,t,c,a,$n(K.toArray(C),e.options.actions),i),2),_=S[0],I=S[1];return c=I,d==null||d.push(c),_}case he.stop:return Mo(f,c,a);case he.assign:{c=K.updateContext(c,a,[f],t),d==null||d.push(c);break}default:var x=Ar(f,e.options.actions),N=x.exec;if(N&&d){var k=d.length-1;x=te.__assign(te.__assign({},x),{exec:function(B){for(var V=[],D=1;D<arguments.length;D++)V[D-1]=arguments[D];N.apply(void 0,te.__spreadArray([d[k]],te.__read(V),!1))}})}return x}}).filter(function(f){return!!f}));return[v,c]}Z.after=lv;var se=Z.assign=sv;Z.cancel=av;Z.choose=mv;Z.done=uv;Z.doneInvoke=cv;Z.error=dv;Z.escalate=pv;Z.forwardTo=vv;Z.getActionFunction=Tn;Z.initEvent=Jf;Z.log=nv;Z.pure=fv;Z.raise=Xf;Z.resolveActions=Fn;Z.resolveLog=Uo;Z.resolveRaise=Do;Z.resolveSend=Vo;Z.resolveStop=Mo;Z.respond=tv;Z.send=bt;Z.sendParent=Bn;Z.sendTo=Qf;Z.sendUpdate=ev;Z.start=ov;var hv=Z.stop=iv;Z.toActionObject=Ar;Z.toActionObjects=$n;Z.toActivityDefinition=kn;var gv=Pe,yv=nr,bv=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Cv=/^\w*$/;function wv(e,t){if(gv(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||yv(e)?!0:Cv.test(e)||!bv.test(e)||t!=null&&e in Object(t)}var Rn=wv,Sv=Ve,_v=Sv["__core-js_shared__"],xv=_v,On=xv,Lo=function(){var e=/[^.]+$/.exec(On&&On.keys&&On.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ev(e){return!!Lo&&Lo in e}var Av=Ev,Iv=Function.prototype,Nv=Iv.toString;function Pv(e){if(e!=null){try{return Nv.call(e)}catch{}try{return e+""}catch{}}return""}var zo=Pv,Tv=nn,$v=Av,kv=Ue,Bv=zo,Fv=/[\\^$.*+?()[\]{}|]/g,Rv=/^\[object .+?Constructor\]$/,Ov=Function.prototype,Dv=Object.prototype,Vv=Ov.toString,Uv=Dv.hasOwnProperty,Mv=RegExp("^"+Vv.call(Uv).replace(Fv,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Lv(e){if(!kv(e)||$v(e))return!1;var t=Tv(e)?Mv:Rv;return t.test(Bv(e))}var zv=Lv;function jv(e,t){return e==null?void 0:e[t]}var Gv=jv,Wv=zv,Hv=Gv;function Kv(e,t){var r=Hv(e,t);return Wv(r)?r:void 0}var rt=Kv,qv=rt,Yv=qv(Object,"create"),Ir=Yv,jo=Ir;function Zv(){this.__data__=jo?jo(null):{},this.size=0}var Jv=Zv;function Xv(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Qv=Xv,ep=Ir,tp="__lodash_hash_undefined__",rp=Object.prototype,np=rp.hasOwnProperty;function ap(e){var t=this.__data__;if(ep){var r=t[e];return r===tp?void 0:r}return np.call(t,e)?t[e]:void 0}var op=ap,ip=Ir,sp=Object.prototype,lp=sp.hasOwnProperty;function up(e){var t=this.__data__;return ip?t[e]!==void 0:lp.call(t,e)}var cp=up,dp=Ir,fp="__lodash_hash_undefined__";function vp(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=dp&&t===void 0?fp:t,this}var pp=vp,mp=Jv,hp=Qv,gp=op,yp=cp,bp=pp;function Ct(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Ct.prototype.clear=mp;Ct.prototype.delete=hp;Ct.prototype.get=gp;Ct.prototype.has=yp;Ct.prototype.set=bp;var Cp=Ct;function wp(){this.__data__=[],this.size=0}var Sp=wp;function _p(e,t){return e===t||e!==e&&t!==t}var jt=_p,xp=jt;function Ep(e,t){for(var r=e.length;r--;)if(xp(e[r][0],t))return r;return-1}var Nr=Ep,Ap=Nr,Ip=Array.prototype,Np=Ip.splice;function Pp(e){var t=this.__data__,r=Ap(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():Np.call(t,r,1),--this.size,!0}var Tp=Pp,$p=Nr;function kp(e){var t=this.__data__,r=$p(t,e);return r<0?void 0:t[r][1]}var Bp=kp,Fp=Nr;function Rp(e){return Fp(this.__data__,e)>-1}var Op=Rp,Dp=Nr;function Vp(e,t){var r=this.__data__,a=Dp(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}var Up=Vp,Mp=Sp,Lp=Tp,zp=Bp,jp=Op,Gp=Up;function wt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}wt.prototype.clear=Mp;wt.prototype.delete=Lp;wt.prototype.get=zp;wt.prototype.has=jp;wt.prototype.set=Gp;var Pr=wt,Wp=rt,Hp=Ve,Kp=Wp(Hp,"Map"),Dn=Kp,Go=Cp,qp=Pr,Yp=Dn;function Zp(){this.size=0,this.__data__={hash:new Go,map:new(Yp||qp),string:new Go}}var Jp=Zp;function Xp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Qp=Xp,em=Qp;function tm(e,t){var r=e.__data__;return em(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Tr=tm,rm=Tr;function nm(e){var t=rm(this,e).delete(e);return this.size-=t?1:0,t}var am=nm,om=Tr;function im(e){return om(this,e).get(e)}var sm=im,lm=Tr;function um(e){return lm(this,e).has(e)}var cm=um,dm=Tr;function fm(e,t){var r=dm(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}var vm=fm,pm=Jp,mm=am,hm=sm,gm=cm,ym=vm;function St(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}St.prototype.clear=pm;St.prototype.delete=mm;St.prototype.get=hm;St.prototype.has=gm;St.prototype.set=ym;var Vn=St,Wo=Vn,bm="Expected a function";function Un(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(bm);var r=function(){var a=arguments,o=t?t.apply(this,a):a[0],i=r.cache;if(i.has(o))return i.get(o);var s=e.apply(this,a);return r.cache=i.set(o,s)||i,s};return r.cache=new(Un.Cache||Wo),r}Un.Cache=Wo;var Cm=Un,wm=Cm,Sm=500;function _m(e){var t=wm(e,function(a){return r.size===Sm&&r.clear(),a}),r=t.cache;return t}var xm=_m,Em=xm,Am=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Im=/\\(\\)?/g,Nm=Em(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Am,function(r,a,o,i){t.push(o?i.replace(Im,"$1"):a||r)}),t}),Pm=Nm,Ho=rr,Tm=on,$m=Pe,km=nr,Bm=1/0,Ko=Ho?Ho.prototype:void 0,qo=Ko?Ko.toString:void 0;function Yo(e){if(typeof e=="string")return e;if($m(e))return Tm(e,Yo)+"";if(km(e))return qo?qo.call(e):"";var t=e+"";return t=="0"&&1/e==-Bm?"-0":t}var Fm=Yo,Rm=Fm;function Om(e){return e==null?"":Rm(e)}var Mn=Om,Dm=Pe,Vm=Rn,Um=Pm,Mm=Mn;function Lm(e,t){return Dm(e)?e:Vm(e,t)?[e]:Um(Mm(e))}var $r=Lm,zm=nr,jm=1/0;function Gm(e){if(typeof e=="string"||zm(e))return e;var t=e+"";return t=="0"&&1/e==-jm?"-0":t}var Gt=Gm,Wm=$r,Hm=Gt;function Km(e,t){t=Wm(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[Hm(t[r++])];return r&&r==a?e:void 0}var Ln=Km,qm=Ln;function Ym(e,t,r){var a=e==null?void 0:qm(e,t);return a===void 0?r:a}var Ae=Ym,Zm=rt,Jm=Ve,Xm=Zm(Jm,"DataView"),Qm=Xm,eh=rt,th=Ve,rh=eh(th,"Promise"),nh=rh,ah=rt,oh=Ve,ih=ah(oh,"Set"),sh=ih,lh=rt,uh=Ve,ch=lh(uh,"WeakMap"),dh=ch,zn=Qm,jn=Dn,Gn=nh,Wn=sh,Hn=dh,Zo=tt,_t=zo,Jo="[object Map]",fh="[object Object]",Xo="[object Promise]",Qo="[object Set]",ei="[object WeakMap]",ti="[object DataView]",vh=_t(zn),ph=_t(jn),mh=_t(Gn),hh=_t(Wn),gh=_t(Hn),nt=Zo;(zn&&nt(new zn(new ArrayBuffer(1)))!=ti||jn&&nt(new jn)!=Jo||Gn&&nt(Gn.resolve())!=Xo||Wn&&nt(new Wn)!=Qo||Hn&&nt(new Hn)!=ei)&&(nt=function(e){var t=Zo(e),r=t==fh?e.constructor:void 0,a=r?_t(r):"";if(a)switch(a){case vh:return ti;case ph:return Jo;case mh:return Xo;case hh:return Qo;case gh:return ei}return t});var ri=nt,yh=uo,bh=ri,Ch=ar,wh=Pe,Sh=ot,_h=it.exports,xh=sr,Eh=ir,Ah="[object Map]",Ih="[object Set]",Nh=Object.prototype,Ph=Nh.hasOwnProperty;function Th(e){if(e==null)return!0;if(Sh(e)&&(wh(e)||typeof e=="string"||typeof e.splice=="function"||_h(e)||Eh(e)||Ch(e)))return!e.length;var t=bh(e);if(t==Ah||t==Ih)return!e.size;if(xh(e))return!yh(e).length;for(var r in e)if(Ph.call(e,r))return!1;return!0}var Kn=Th,$h=Pr;function kh(){this.__data__=new $h,this.size=0}var Bh=kh;function Fh(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var Rh=Fh;function Oh(e){return this.__data__.get(e)}var Dh=Oh;function Vh(e){return this.__data__.has(e)}var Uh=Vh,Mh=Pr,Lh=Dn,zh=Vn,jh=200;function Gh(e,t){var r=this.__data__;if(r instanceof Mh){var a=r.__data__;if(!Lh||a.length<jh-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new zh(a)}return r.set(e,t),this.size=r.size,this}var Wh=Gh,Hh=Pr,Kh=Bh,qh=Rh,Yh=Dh,Zh=Uh,Jh=Wh;function xt(e){var t=this.__data__=new Hh(e);this.size=t.size}xt.prototype.clear=Kh;xt.prototype.delete=qh;xt.prototype.get=Yh;xt.prototype.has=Zh;xt.prototype.set=Jh;var qn=xt,Xh=rt,Qh=function(){try{var e=Xh(Object,"defineProperty");return e({},"",{}),e}catch{}}(),ni=Qh,ai=ni;function eg(e,t,r){t=="__proto__"&&ai?ai(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Yn=eg,tg=Yn,rg=jt;function ng(e,t,r){(r!==void 0&&!rg(e[t],r)||r===void 0&&!(t in e))&&tg(e,t,r)}var oi=ng;function ag(e){return function(t,r,a){for(var o=-1,i=Object(t),s=a(t),l=s.length;l--;){var u=s[e?l:++o];if(r(i[u],u,i)===!1)break}return t}}var og=ag,ig=og,sg=ig(),lg=sg,Zn={exports:{}};(function(e,t){var r=Ve,a=t&&!t.nodeType&&t,o=a&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===a,s=i?r.Buffer:void 0,l=s?s.allocUnsafe:void 0;function u(c,d){if(d)return c.slice();var v=c.length,f=l?l(v):new c.constructor(v);return c.copy(f),f}e.exports=u})(Zn,Zn.exports);var ug=Ve,cg=ug.Uint8Array,ii=cg,si=ii;function dg(e){var t=new e.constructor(e.byteLength);return new si(t).set(new si(e)),t}var fg=dg,vg=fg;function pg(e,t){var r=t?vg(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var mg=pg;function hg(e,t){var r=-1,a=e.length;for(t||(t=Array(a));++r<a;)t[r]=e[r];return t}var gg=hg,yg=Ue,li=Object.create,bg=function(){function e(){}return function(t){if(!yg(t))return{};if(li)return li(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),Cg=bg,wg=lo,Sg=wg(Object.getPrototypeOf,Object),Jn=Sg,_g=Cg,xg=Jn,Eg=sr;function Ag(e){return typeof e.constructor=="function"&&!Eg(e)?_g(xg(e)):{}}var Ig=Ag,Ng=ot,Pg=Ke;function Tg(e){return Pg(e)&&Ng(e)}var $g=Tg,kg=tt,Bg=Jn,Fg=Ke,Rg="[object Object]",Og=Function.prototype,Dg=Object.prototype,ui=Og.toString,Vg=Dg.hasOwnProperty,Ug=ui.call(Object);function Mg(e){if(!Fg(e)||kg(e)!=Rg)return!1;var t=Bg(e);if(t===null)return!0;var r=Vg.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ui.call(r)==Ug}var Lg=Mg;function zg(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var ci=zg,jg=Yn,Gg=jt,Wg=Object.prototype,Hg=Wg.hasOwnProperty;function Kg(e,t,r){var a=e[t];(!(Hg.call(e,t)&&Gg(a,r))||r===void 0&&!(t in e))&&jg(e,t,r)}var di=Kg,qg=di,Yg=Yn;function Zg(e,t,r,a){var o=!r;r||(r={});for(var i=-1,s=t.length;++i<s;){var l=t[i],u=a?a(r[l],e[l],l,r,e):void 0;u===void 0&&(u=e[l]),o?Yg(r,l,u):qg(r,l,u)}return r}var Jg=Zg;function Xg(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Qg=Xg,e0=Ue,t0=sr,r0=Qg,n0=Object.prototype,a0=n0.hasOwnProperty;function o0(e){if(!e0(e))return r0(e);var t=t0(e),r=[];for(var a in e)a=="constructor"&&(t||!a0.call(e,a))||r.push(a);return r}var i0=o0,s0=so,l0=i0,u0=ot;function c0(e){return u0(e)?s0(e,!0):l0(e)}var Xn=c0,d0=Jg,f0=Xn;function v0(e){return d0(e,f0(e))}var p0=v0,fi=oi,m0=Zn.exports,h0=mg,g0=gg,y0=Ig,vi=ar,pi=Pe,b0=$g,C0=it.exports,w0=nn,S0=Ue,_0=Lg,x0=ir,mi=ci,E0=p0;function A0(e,t,r,a,o,i,s){var l=mi(e,r),u=mi(t,r),c=s.get(u);if(c){fi(e,r,c);return}var d=i?i(l,u,r+"",e,t,s):void 0,v=d===void 0;if(v){var f=pi(u),p=!f&&C0(u),m=!f&&!p&&x0(u);d=u,f||p||m?pi(l)?d=l:b0(l)?d=g0(l):p?(v=!1,d=m0(u,!0)):m?(v=!1,d=h0(u,!0)):d=[]:_0(u)||vi(u)?(d=l,vi(l)?d=E0(l):(!S0(l)||w0(l))&&(d=y0(u))):v=!1}v&&(s.set(u,d),o(d,u,a,i,s),s.delete(u)),fi(e,r,d)}var I0=A0,N0=qn,P0=oi,T0=lg,$0=I0,k0=Ue,B0=Xn,F0=ci;function hi(e,t,r,a,o){e!==t&&T0(t,function(i,s){if(o||(o=new N0),k0(i))$0(e,t,s,r,hi,a,o);else{var l=a?a(F0(e,s),i,s+"",e,t,o):void 0;l===void 0&&(l=i),P0(e,s,l)}},B0)}var R0=hi;function O0(e){return e}var Qn=O0;function D0(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var V0=D0,U0=V0,gi=Math.max;function M0(e,t,r){return t=gi(t===void 0?e.length-1:t,0),function(){for(var a=arguments,o=-1,i=gi(a.length-t,0),s=Array(i);++o<i;)s[o]=a[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=a[o];return l[t]=r(s),U0(e,this,l)}}var L0=M0;function z0(e){return function(){return e}}var j0=z0,G0=j0,yi=ni,W0=Qn,H0=yi?function(e,t){return yi(e,"toString",{configurable:!0,enumerable:!1,value:G0(t),writable:!0})}:W0,K0=H0,q0=800,Y0=16,Z0=Date.now;function J0(e){var t=0,r=0;return function(){var a=Z0(),o=Y0-(a-r);if(r=a,o>0){if(++t>=q0)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var X0=J0,Q0=K0,ey=X0,ty=ey(Q0),ry=ty,ny=Qn,ay=L0,oy=ry;function iy(e,t){return oy(ay(e,t,ny),e+"")}var sy=iy,ly=jt,uy=ot,cy=or,dy=Ue;function fy(e,t,r){if(!dy(r))return!1;var a=typeof t;return(a=="number"?uy(r)&&cy(t,r.length):a=="string"&&t in r)?ly(r[t],e):!1}var vy=fy,py=sy,my=vy;function hy(e){return py(function(t,r){var a=-1,o=r.length,i=o>1?r[o-1]:void 0,s=o>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,s&&my(r[0],r[1],s)&&(i=o<3?void 0:i,o=1),t=Object(t);++a<o;){var l=r[a];l&&e(t,l,a,i)}return t})}var gy=hy,yy=R0,by=gy,Cy=by(function(e,t,r){yy(e,t,r)}),wy=Cy,Sy="__lodash_hash_undefined__";function _y(e){return this.__data__.set(e,Sy),this}var xy=_y;function Ey(e){return this.__data__.has(e)}var Ay=Ey,Iy=Vn,Ny=xy,Py=Ay;function kr(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Iy;++t<r;)this.add(e[t])}kr.prototype.add=kr.prototype.push=Ny;kr.prototype.has=Py;var Ty=kr;function $y(e,t){for(var r=-1,a=e==null?0:e.length;++r<a;)if(t(e[r],r,e))return!0;return!1}var ky=$y;function By(e,t){return e.has(t)}var Fy=By,Ry=Ty,Oy=ky,Dy=Fy,Vy=1,Uy=2;function My(e,t,r,a,o,i){var s=r&Vy,l=e.length,u=t.length;if(l!=u&&!(s&&u>l))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var v=-1,f=!0,p=r&Uy?new Ry:void 0;for(i.set(e,t),i.set(t,e);++v<l;){var m=e[v],h=t[v];if(a)var C=s?a(h,m,v,t,e,i):a(m,h,v,e,t,i);if(C!==void 0){if(C)continue;f=!1;break}if(p){if(!Oy(t,function(b,g){if(!Dy(p,g)&&(m===b||o(m,b,r,a,i)))return p.push(g)})){f=!1;break}}else if(!(m===h||o(m,h,r,a,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var bi=My;function Ly(e){var t=-1,r=Array(e.size);return e.forEach(function(a,o){r[++t]=[o,a]}),r}var zy=Ly;function jy(e){var t=-1,r=Array(e.size);return e.forEach(function(a){r[++t]=a}),r}var Gy=jy,Ci=rr,wi=ii,Wy=jt,Hy=bi,Ky=zy,qy=Gy,Yy=1,Zy=2,Jy="[object Boolean]",Xy="[object Date]",Qy="[object Error]",e1="[object Map]",t1="[object Number]",r1="[object RegExp]",n1="[object Set]",a1="[object String]",o1="[object Symbol]",i1="[object ArrayBuffer]",s1="[object DataView]",Si=Ci?Ci.prototype:void 0,ea=Si?Si.valueOf:void 0;function l1(e,t,r,a,o,i,s){switch(r){case s1:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case i1:return!(e.byteLength!=t.byteLength||!i(new wi(e),new wi(t)));case Jy:case Xy:case t1:return Wy(+e,+t);case Qy:return e.name==t.name&&e.message==t.message;case r1:case a1:return e==t+"";case e1:var l=Ky;case n1:var u=a&Yy;if(l||(l=qy),e.size!=t.size&&!u)return!1;var c=s.get(e);if(c)return c==t;a|=Zy,s.set(e,t);var d=Hy(l(e),l(t),a,o,i,s);return s.delete(e),d;case o1:if(ea)return ea.call(e)==ea.call(t)}return!1}var u1=l1;function c1(e,t){for(var r=-1,a=t.length,o=e.length;++r<a;)e[o+r]=t[r];return e}var _i=c1,d1=_i,f1=Pe;function v1(e,t,r){var a=t(e);return f1(e)?a:d1(a,r(e))}var xi=v1;function p1(e,t){for(var r=-1,a=e==null?0:e.length,o=0,i=[];++r<a;){var s=e[r];t(s,r,e)&&(i[o++]=s)}return i}var m1=p1;function h1(){return[]}var Ei=h1,g1=m1,y1=Ei,b1=Object.prototype,C1=b1.propertyIsEnumerable,Ai=Object.getOwnPropertySymbols,w1=Ai?function(e){return e==null?[]:(e=Object(e),g1(Ai(e),function(t){return C1.call(e,t)}))}:y1,Ii=w1,S1=xi,_1=Ii,x1=ln;function E1(e){return S1(e,x1,_1)}var A1=E1,Ni=A1,I1=1,N1=Object.prototype,P1=N1.hasOwnProperty;function T1(e,t,r,a,o,i){var s=r&I1,l=Ni(e),u=l.length,c=Ni(t),d=c.length;if(u!=d&&!s)return!1;for(var v=u;v--;){var f=l[v];if(!(s?f in t:P1.call(t,f)))return!1}var p=i.get(e),m=i.get(t);if(p&&m)return p==t&&m==e;var h=!0;i.set(e,t),i.set(t,e);for(var C=s;++v<u;){f=l[v];var b=e[f],g=t[f];if(a)var w=s?a(g,b,f,t,e,i):a(b,g,f,e,t,i);if(!(w===void 0?b===g||o(b,g,r,a,i):w)){h=!1;break}C||(C=f=="constructor")}if(h&&!C){var S=e.constructor,_=t.constructor;S!=_&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof _=="function"&&_ instanceof _)&&(h=!1)}return i.delete(e),i.delete(t),h}var $1=T1,ta=qn,k1=bi,B1=u1,F1=$1,Pi=ri,Ti=Pe,$i=it.exports,R1=ir,O1=1,ki="[object Arguments]",Bi="[object Array]",Br="[object Object]",D1=Object.prototype,Fi=D1.hasOwnProperty;function V1(e,t,r,a,o,i){var s=Ti(e),l=Ti(t),u=s?Bi:Pi(e),c=l?Bi:Pi(t);u=u==ki?Br:u,c=c==ki?Br:c;var d=u==Br,v=c==Br,f=u==c;if(f&&$i(e)){if(!$i(t))return!1;s=!0,d=!1}if(f&&!d)return i||(i=new ta),s||R1(e)?k1(e,t,r,a,o,i):B1(e,t,u,r,a,o,i);if(!(r&O1)){var p=d&&Fi.call(e,"__wrapped__"),m=v&&Fi.call(t,"__wrapped__");if(p||m){var h=p?e.value():e,C=m?t.value():t;return i||(i=new ta),o(h,C,r,a,i)}}return f?(i||(i=new ta),F1(e,t,r,a,o,i)):!1}var U1=V1,M1=U1,Ri=Ke;function Oi(e,t,r,a,o){return e===t?!0:e==null||t==null||!Ri(e)&&!Ri(t)?e!==e&&t!==t:M1(e,t,r,a,Oi,o)}var Di=Oi,L1=qn,z1=Di,j1=1,G1=2;function W1(e,t,r,a){var o=r.length,i=o,s=!a;if(e==null)return!i;for(e=Object(e);o--;){var l=r[o];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<i;){l=r[o];var u=l[0],c=e[u],d=l[1];if(s&&l[2]){if(c===void 0&&!(u in e))return!1}else{var v=new L1;if(a)var f=a(c,d,u,e,t,v);if(!(f===void 0?z1(d,c,j1|G1,a,v):f))return!1}}return!0}var H1=W1,K1=Ue;function q1(e){return e===e&&!K1(e)}var Vi=q1,Y1=Vi,Z1=ln;function J1(e){for(var t=Z1(e),r=t.length;r--;){var a=t[r],o=e[a];t[r]=[a,o,Y1(o)]}return t}var X1=J1;function Q1(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Ui=Q1,eb=H1,tb=X1,rb=Ui;function nb(e){var t=tb(e);return t.length==1&&t[0][2]?rb(t[0][0],t[0][1]):function(r){return r===e||eb(r,e,t)}}var ab=nb;function ob(e,t){return e!=null&&t in Object(e)}var ib=ob,sb=$r,lb=ar,ub=Pe,cb=or,db=an,fb=Gt;function vb(e,t,r){t=sb(t,e);for(var a=-1,o=t.length,i=!1;++a<o;){var s=fb(t[a]);if(!(i=e!=null&&r(e,s)))break;e=e[s]}return i||++a!=o?i:(o=e==null?0:e.length,!!o&&db(o)&&cb(s,o)&&(ub(e)||lb(e)))}var pb=vb,mb=ib,hb=pb;function gb(e,t){return e!=null&&hb(e,t,mb)}var yb=gb,bb=Di,Cb=Ae,wb=yb,Sb=Rn,_b=Vi,xb=Ui,Eb=Gt,Ab=1,Ib=2;function Nb(e,t){return Sb(e)&&_b(t)?xb(Eb(e),t):function(r){var a=Cb(r,e);return a===void 0&&a===t?wb(r,e):bb(t,a,Ab|Ib)}}var Pb=Nb;function Tb(e){return function(t){return t==null?void 0:t[e]}}var $b=Tb,kb=Ln;function Bb(e){return function(t){return kb(t,e)}}var Fb=Bb,Rb=$b,Ob=Fb,Db=Rn,Vb=Gt;function Ub(e){return Db(e)?Rb(Vb(e)):Ob(e)}var Mb=Ub,Lb=ab,zb=Pb,jb=Qn,Gb=Pe,Wb=Mb;function Hb(e){return typeof e=="function"?e:e==null?jb:typeof e=="object"?Gb(e)?zb(e[0],e[1]):Lb(e):Wb(e)}var Kb=Hb,qb=di,Yb=$r,Zb=or,Mi=Ue,Jb=Gt;function Xb(e,t,r,a){if(!Mi(e))return e;t=Yb(t,e);for(var o=-1,i=t.length,s=i-1,l=e;l!=null&&++o<i;){var u=Jb(t[o]),c=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(o!=s){var d=l[u];c=a?a(d,u,l):void 0,c===void 0&&(c=Mi(d)?d:Zb(t[o+1])?[]:{})}qb(l,u,c),l=l[u]}return e}var Qb=Xb,eC=Ln,tC=Qb,rC=$r;function nC(e,t,r){for(var a=-1,o=t.length,i={};++a<o;){var s=t[a],l=eC(e,s);r(l,s)&&tC(i,rC(s,e),l)}return i}var aC=nC,oC=_i,iC=Jn,sC=Ii,lC=Ei,uC=Object.getOwnPropertySymbols,cC=uC?function(e){for(var t=[];e;)oC(t,sC(e)),e=iC(e);return t}:lC,dC=cC,fC=xi,vC=dC,pC=Xn;function mC(e){return fC(e,pC,vC)}var hC=mC,gC=on,yC=Kb,bC=aC,CC=hC;function wC(e,t){if(e==null)return{};var r=gC(CC(e),function(a){return[a]});return t=yC(t),bC(e,r,function(a,o){return t(a,o[0])})}var SC=wC;/*! *****************************************************************************
31
31
  Copyright (c) Microsoft Corporation.
32
32
 
33
33
  Permission to use, copy, modify, and/or distribute this software for any
@@ -53,7 +53,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
53
53
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
54
54
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
55
55
  PERFORMANCE OF THIS SOFTWARE.
56
- ***************************************************************************** */var ra=function(){return ra=Object.assign||function(t){for(var r,a=1,o=arguments.length;a<o;a++){r=arguments[a];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},ra.apply(this,arguments)};function SC(e){return e.toLowerCase()}var xC=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],EC=/[^A-Z0-9]+/gi;function AC(e,t){t===void 0&&(t={});for(var r=t.splitRegexp,a=r===void 0?xC:r,o=t.stripRegexp,i=o===void 0?EC:o,s=t.transform,l=s===void 0?SC:s,u=t.delimiter,c=u===void 0?" ":u,d=Li(Li(e,a,"$1\0$2"),i,"\0"),v=0,f=d.length;d.charAt(v)==="\0";)v++;for(;d.charAt(f-1)==="\0";)f--;return d.slice(v,f).split("\0").map(l).join(c)}function Li(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(a,o){return a.replace(o,r)},e)}function na(e,t){var r=e.charAt(0),a=e.substr(1).toLowerCase();return t>0&&r>="0"&&r<="9"?"_"+r+a:""+r.toUpperCase()+a}function zi(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}function ji(e,t){return t===void 0&&(t={}),AC(e,ra({delimiter:"",transform:na},t))}function Gi(e,t){return t===0?e.toLowerCase():na(e,t)}function IC(e,t){return t===0?e.toLowerCase():zi(e)}function NC(e,t){return t===void 0&&(t={}),ji(e,je({transform:Gi},t))}/*! *****************************************************************************
56
+ ***************************************************************************** */var ra=function(){return ra=Object.assign||function(t){for(var r,a=1,o=arguments.length;a<o;a++){r=arguments[a];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},ra.apply(this,arguments)};function _C(e){return e.toLowerCase()}var xC=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],EC=/[^A-Z0-9]+/gi;function AC(e,t){t===void 0&&(t={});for(var r=t.splitRegexp,a=r===void 0?xC:r,o=t.stripRegexp,i=o===void 0?EC:o,s=t.transform,l=s===void 0?_C:s,u=t.delimiter,c=u===void 0?" ":u,d=Li(Li(e,a,"$1\0$2"),i,"\0"),v=0,f=d.length;d.charAt(v)==="\0";)v++;for(;d.charAt(f-1)==="\0";)f--;return d.slice(v,f).split("\0").map(l).join(c)}function Li(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(a,o){return a.replace(o,r)},e)}function na(e,t){var r=e.charAt(0),a=e.substr(1).toLowerCase();return t>0&&r>="0"&&r<="9"?"_"+r+a:""+r.toUpperCase()+a}function zi(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}function ji(e,t){return t===void 0&&(t={}),AC(e,ra({delimiter:"",transform:na},t))}function Gi(e,t){return t===0?e.toLowerCase():na(e,t)}function IC(e,t){return t===0?e.toLowerCase():zi(e)}function NC(e,t){return t===void 0&&(t={}),ji(e,je({transform:Gi},t))}/*! *****************************************************************************
57
57
  Copyright (c) Microsoft Corporation.
58
58
 
59
59
  Permission to use, copy, modify, and/or distribute this software for any
@@ -66,7 +66,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
66
66
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
67
67
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
68
68
  PERFORMANCE OF THIS SOFTWARE.
69
- ***************************************************************************** */var aa=function(){return aa=Object.assign||function(t){for(var r,a=1,o=arguments.length;a<o;a++){r=arguments[a];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},aa.apply(this,arguments)};function PC(e){return e.toLowerCase()}var TC=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],$C=/[^A-Z0-9]+/gi;function kC(e,t){t===void 0&&(t={});for(var r=t.splitRegexp,a=r===void 0?TC:r,o=t.stripRegexp,i=o===void 0?$C:o,s=t.transform,l=s===void 0?PC:s,u=t.delimiter,c=u===void 0?" ":u,d=Wi(Wi(e,a,"$1\0$2"),i,"\0"),v=0,f=d.length;d.charAt(v)==="\0";)v++;for(;d.charAt(f-1)==="\0";)f--;return d.slice(v,f).split("\0").map(l).join(c)}function Wi(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(a,o){return a.replace(o,r)},e)}function BC(e){return e.charAt(0).toUpperCase()+e.substr(1)}function Hi(e){return BC(e.toLowerCase())}function Ki(e,t){return t===void 0&&(t={}),kC(e,aa({delimiter:" ",transform:Hi},t))}function FC(e){return e.toLowerCase()}var RC=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],DC=/[^A-Z0-9]+/gi;function oa(e,t){t===void 0&&(t={});for(var r=t.splitRegexp,a=r===void 0?RC:r,o=t.stripRegexp,i=o===void 0?DC:o,s=t.transform,l=s===void 0?FC:s,u=t.delimiter,c=u===void 0?" ":u,d=qi(qi(e,a,"$1\0$2"),i,"\0"),v=0,f=d.length;d.charAt(v)==="\0";)v++;for(;d.charAt(f-1)==="\0";)f--;return d.slice(v,f).split("\0").map(l).join(c)}function qi(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(a,o){return a.replace(o,r)},e)}function OC(e){return e.toUpperCase()}function VC(e,t){return t===void 0&&(t={}),oa(e,je({delimiter:"_",transform:OC},t))}/*! *****************************************************************************
69
+ ***************************************************************************** */var aa=function(){return aa=Object.assign||function(t){for(var r,a=1,o=arguments.length;a<o;a++){r=arguments[a];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},aa.apply(this,arguments)};function PC(e){return e.toLowerCase()}var TC=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],$C=/[^A-Z0-9]+/gi;function kC(e,t){t===void 0&&(t={});for(var r=t.splitRegexp,a=r===void 0?TC:r,o=t.stripRegexp,i=o===void 0?$C:o,s=t.transform,l=s===void 0?PC:s,u=t.delimiter,c=u===void 0?" ":u,d=Wi(Wi(e,a,"$1\0$2"),i,"\0"),v=0,f=d.length;d.charAt(v)==="\0";)v++;for(;d.charAt(f-1)==="\0";)f--;return d.slice(v,f).split("\0").map(l).join(c)}function Wi(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(a,o){return a.replace(o,r)},e)}function BC(e){return e.charAt(0).toUpperCase()+e.substr(1)}function Hi(e){return BC(e.toLowerCase())}function Ki(e,t){return t===void 0&&(t={}),kC(e,aa({delimiter:" ",transform:Hi},t))}function FC(e){return e.toLowerCase()}var RC=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],OC=/[^A-Z0-9]+/gi;function oa(e,t){t===void 0&&(t={});for(var r=t.splitRegexp,a=r===void 0?RC:r,o=t.stripRegexp,i=o===void 0?OC:o,s=t.transform,l=s===void 0?FC:s,u=t.delimiter,c=u===void 0?" ":u,d=qi(qi(e,a,"$1\0$2"),i,"\0"),v=0,f=d.length;d.charAt(v)==="\0";)v++;for(;d.charAt(f-1)==="\0";)f--;return d.slice(v,f).split("\0").map(l).join(c)}function qi(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(a,o){return a.replace(o,r)},e)}function DC(e){return e.toUpperCase()}function VC(e,t){return t===void 0&&(t={}),oa(e,je({delimiter:"_",transform:DC},t))}/*! *****************************************************************************
70
70
  Copyright (c) Microsoft Corporation.
71
71
 
72
72
  Permission to use, copy, modify, and/or distribute this software for any
@@ -79,11 +79,11 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
79
79
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
80
80
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
81
81
  PERFORMANCE OF THIS SOFTWARE.
82
- ***************************************************************************** */var ia=function(){return ia=Object.assign||function(t){for(var r,a=1,o=arguments.length;a<o;a++){r=arguments[a];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},ia.apply(this,arguments)};function UC(e){return e.toLowerCase()}var MC=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],LC=/[^A-Z0-9]+/gi;function zC(e,t){t===void 0&&(t={});for(var r=t.splitRegexp,a=r===void 0?MC:r,o=t.stripRegexp,i=o===void 0?LC:o,s=t.transform,l=s===void 0?UC:s,u=t.delimiter,c=u===void 0?" ":u,d=Yi(Yi(e,a,"$1\0$2"),i,"\0"),v=0,f=d.length;d.charAt(v)==="\0";)v++;for(;d.charAt(f-1)==="\0";)f--;return d.slice(v,f).split("\0").map(l).join(c)}function Yi(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(a,o){return a.replace(o,r)},e)}function Fr(e,t){return t===void 0&&(t={}),zC(e,ia({delimiter:"."},t))}function jC(e,t){return t===void 0&&(t={}),Ki(e,je({delimiter:"-"},t))}function GC(e,t){return t===void 0&&(t={}),Fr(e,je({delimiter:"-"},t))}function WC(e,t){return t===void 0&&(t={}),Fr(e,je({delimiter:"/"},t))}function HC(e){return e.charAt(0).toUpperCase()+e.substr(1)}function Zi(e,t){var r=e.toLowerCase();return t===0?HC(r):r}function KC(e,t){return t===void 0&&(t={}),oa(e,je({delimiter:" ",transform:Zi},t))}function qC(e,t){return t===void 0&&(t={}),Fr(e,je({delimiter:"_"},t))}var YC=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",camelCaseTransform:Gi,camelCaseTransformMerge:IC,camelCase:NC,capitalCaseTransform:Hi,capitalCase:Ki,constantCase:VC,dotCase:Fr,headerCase:jC,noCase:oa,paramCase:GC,pascalCaseTransform:na,pascalCaseTransformMerge:zi,pascalCase:ji,pathCase:WC,sentenceCaseTransform:Zi,sentenceCase:KC,snakeCase:qC}),ZC=Al(YC);const Rr=ZC,JC=function(e,t,r){return Object.keys(e||{}).reduce((a,o)=>{let i=e[o];return t(a,i,o,e)},r)},sa=function(e,t){Object.keys(e||{}).forEach(r=>{let a=e[r];t(a,r)})},XC=function(e){return Object.assign(new e.constructor,e)},Dr=function(e){if(e==null||typeof e!="object")return e;if(e instanceof Array)return e.reduce((t,r,a)=>(t[a]=Dr(r),t),[]);if(e instanceof Object)return Object.keys(e||{}).reduce((t,r)=>(t[r]=Dr(e[r]),t),{})},Ji=function(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")},QC=function(e){return typeof e=="string"||e instanceof String},ew=function(e){return Array.isArray(e)},tw=function(e){return[Object,Array].includes((e||{}).constructor)&&!Object.entries(e||{}).length};function rw(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}const nw=function(e,t){if(typeof t!="function")throw"filter is not a function";return typeof e=="undefined"?[]:e.filter(t)},aw=function(){let e=Array.prototype.slice.call(arguments);return e.unshift({}),Object.assign(...e)},ow=function(e,...t){var r=new Set(t);for(let a=e.length-1;a>=0;a--)r.has(e[a])&&e.splice(a,1)},iw=function(e){return e?e[0].toUpperCase()+e.substr(1):""},Xi=function(e,t){return Ji(t)?Object.keys(t).every(r=>Xi(e[r],t[r])):e==t},sw=function(e){let t=Dr(e);return a=>Xi(a,t)},lw={transform:Rr.camelCaseTransformMerge},uw=function(e,t){return(r,a)=>e(r,Object.assign({},lw,t,a))};var Qi={each:sa,forEach:sa,forIn:sa,keys:Object.keys,clone:XC,cloneDeep:Dr,extend:Object.assign,isString:QC,isArray:ew,isObject:Ji,isPlainObject:rw,isEmpty:tw,filter:nw,reduce:JC,assign:aw,upperFirst:iw,camelCase:uw(Rr.camelCase),snakeCase:Rr.snakeCase,kebabCase:Rr.paramCase,pull:ow,matches:sw},Or=Qi;function es(e,t,r){if(e==null)return{};var a,o,i,s,l,u,c=e[0]||{},d=1,v=e.length;for(r=r||[],typeof c!="object"&&(c={});d<v;d++)if((l=e[d])!=null){for(s in l)if(!!l.hasOwnProperty(s)&&s!=="__proto__"&&(a=c[s],i=l[s],c!==i))if(i&&(Or.isPlainObject(i)||(o=Or.isArray(i)))){o?(o=!1,u=a&&Or.isArray(a)?a:[]):u=a&&Or.isPlainObject(a)?a:{};var f=r.slice(0);f.push(s),c[s]=es([u,i],t,f)}else i!==void 0&&(a!=null&&typeof t=="function"&&t({target:c,copy:l,path:r,key:s}),c[s]=i)}return c}var cw=es,ts=Qi;function rs(e,t){t=t||[];for(var r in e)e.hasOwnProperty(r)&&(ts.isPlainObject(e[r])&&"value"in e[r]?t.push(e[r]):ts.isPlainObject(e[r])&&rs(e[r],t));return t}var ns=rs;function dw(e,t,r,a){var o=-1,i=e==null?0:e.length;for(a&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}var fw=dw;function vw(e){return function(t){return e==null?void 0:e[t]}}var pw=vw,mw=pw,hw={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},gw=mw(hw),yw=gw,bw=yw,Cw=Mn,ww=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_w="\\u0300-\\u036f",Sw="\\ufe20-\\ufe2f",xw="\\u20d0-\\u20ff",Ew=_w+Sw+xw,Aw="["+Ew+"]",Iw=RegExp(Aw,"g");function Nw(e){return e=Cw(e),e&&e.replace(ww,bw).replace(Iw,"")}var Pw=Nw,Tw=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function $w(e){return e.match(Tw)||[]}var kw=$w,Bw=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Fw(e){return Bw.test(e)}var Rw=Fw,as="\\ud800-\\udfff",Dw="\\u0300-\\u036f",Ow="\\ufe20-\\ufe2f",Vw="\\u20d0-\\u20ff",Uw=Dw+Ow+Vw,os="\\u2700-\\u27bf",is="a-z\\xdf-\\xf6\\xf8-\\xff",Mw="\\xac\\xb1\\xd7\\xf7",Lw="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",zw="\\u2000-\\u206f",jw=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ss="A-Z\\xc0-\\xd6\\xd8-\\xde",Gw="\\ufe0e\\ufe0f",ls=Mw+Lw+zw+jw,us="['\u2019]",cs="["+ls+"]",Ww="["+Uw+"]",ds="\\d+",Hw="["+os+"]",fs="["+is+"]",vs="[^"+as+ls+ds+os+is+ss+"]",Kw="\\ud83c[\\udffb-\\udfff]",qw="(?:"+Ww+"|"+Kw+")",Yw="[^"+as+"]",ps="(?:\\ud83c[\\udde6-\\uddff]){2}",ms="[\\ud800-\\udbff][\\udc00-\\udfff]",Et="["+ss+"]",Zw="\\u200d",hs="(?:"+fs+"|"+vs+")",Jw="(?:"+Et+"|"+vs+")",gs="(?:"+us+"(?:d|ll|m|re|s|t|ve))?",ys="(?:"+us+"(?:D|LL|M|RE|S|T|VE))?",bs=qw+"?",Cs="["+Gw+"]?",Xw="(?:"+Zw+"(?:"+[Yw,ps,ms].join("|")+")"+Cs+bs+")*",Qw="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",e_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",t_=Cs+bs+Xw,r_="(?:"+[Hw,ps,ms].join("|")+")"+t_,n_=RegExp([Et+"?"+fs+"+"+gs+"(?="+[cs,Et,"$"].join("|")+")",Jw+"+"+ys+"(?="+[cs,Et+hs,"$"].join("|")+")",Et+"?"+hs+"+"+gs,Et+"+"+ys,e_,Qw,ds,r_].join("|"),"g");function a_(e){return e.match(n_)||[]}var o_=a_,i_=kw,s_=Rw,l_=Mn,u_=o_;function c_(e,t,r){return e=l_(e),t=r?void 0:t,t===void 0?s_(e)?u_(e):i_(e):e.match(t)||[]}var d_=c_,f_=fw,v_=Pw,p_=d_,m_="['\u2019]",h_=RegExp(m_,"g");function g_(e){return function(t){return f_(p_(v_(t).replace(h_,"")),e,"")}}var y_=g_,b_=y_,C_=b_(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),w_=C_;const __={opening_character:"{",closing_character:"}",separator:"."};var S_=__;const x_=S_;function E_(e={}){const t=Object.assign({},x_,e);return new RegExp("\\"+t.opening_character+"([^"+t.closing_character+"]+)\\"+t.closing_character,"g")}var A_=E_;const I_=A_;function ws(e,t={}){const r=t instanceof RegExp?t:I_(t);if(typeof e=="string")return r.test(e);if(typeof e=="object"){let a=!1;for(const o in e)if(e.hasOwnProperty(o)){const i=e[o];if(ws(i,t)){a=!0;break}}return a}return!1}var N_=ws,P_=Object.defineProperty,T_=Object.defineProperties,$_=Object.getOwnPropertyDescriptors,Vr=Object.getOwnPropertySymbols,_s=Object.prototype.hasOwnProperty,Ss=Object.prototype.propertyIsEnumerable,xs=(e,t,r)=>t in e?P_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,le=(e,t)=>{for(var r in t||(t={}))_s.call(t,r)&&xs(e,r,t[r]);if(Vr)for(var r of Vr(t))Ss.call(t,r)&&xs(e,r,t[r]);return e},Wt=(e,t)=>T_(e,$_(t)),Es=(e,t)=>{var r={};for(var a in e)_s.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&Vr)for(var a of Vr(e))t.indexOf(a)<0&&Ss.call(e,a)&&(r[a]=e[a]);return r},k_=(e,t)=>()=>(e&&(t=e(e=0)),t),j=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),E=k_(()=>{}),B_=j((e,t)=>{E(),t.exports={alignItems:{value:"center"},justifyContent:{value:"space-between"},color:{value:"{colors.font.primary.value}"},backgroundColor:{value:"{colors.background.tertiary.value}"},paddingBlock:{value:"{space.small.value}"},paddingInline:{value:"{space.medium.value}"},icon:{size:{value:"{fontSizes.xl.value}"}},heading:{fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"}},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.info.value}"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.error.value}"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.warning.value}"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.success.value}"}}}}),F_=j((e,t)=>{E(),t.exports={color:{value:"{colors.font.primary.value}"},lineHeight:{value:1},fontWeight:{value:"{fontWeights.semibold.value}"},fontSize:{value:"{fontSizes.small.value}"},textAlign:{value:"center"},paddingVertical:{value:"{space.xs.value}"},paddingHorizontal:{value:"{space.small.value}"},backgroundColor:{value:"{colors.background.tertiary.value}"},borderRadius:{value:"{radii.xl.value}"},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.info.value}"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.warning.value}"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.success.value}"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.error.value}"}},small:{fontSize:{value:"{fontSizes.xs.value}"},paddingVertical:{value:"{space.xxs.value}"},paddingHorizontal:{value:"{space.xs.value}"}},large:{fontSize:{value:"{fontSizes.medium.value}"},paddingVertical:{value:"{space.small.value}"},paddingHorizontal:{value:"{space.medium.value}"}}}}),R_=j((e,t)=>{E(),t.exports={fontWeight:{value:"{fontWeights.bold.value}"},transitionDuration:{value:"{components.fieldcontrol.transitionDuration.value}"},fontSize:{value:"{components.fieldcontrol.fontSize.value}"},lineHeight:{value:"{components.fieldcontrol.lineHeight.value}"},paddingBlockStart:{value:"{components.fieldcontrol.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.paddingInlineEnd.value}"},borderColor:{value:"{components.fieldcontrol.borderColor.value}"},borderWidth:{value:"{components.fieldcontrol.borderWidth.value}"},borderStyle:{value:"{components.fieldcontrol.borderStyle.value}"},borderRadius:{value:"{components.fieldcontrol.borderRadius.value}"},color:{value:"{colors.font.primary.value}"},_hover:{color:{value:"{colors.font.focus.value}"},backgroundColor:{value:"{colors.brand.primary.10.value}"},borderColor:{value:"{colors.brand.primary.60.value}"}},_focus:{color:{value:"{colors.font.focus.value}"},backgroundColor:{value:"{colors.brand.primary.10.value}"},borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{color:{value:"{colors.font.active.value}"},backgroundColor:{value:"{colors.brand.primary.20.value}"},borderColor:{value:"{colors.brand.primary.100.value}"}},_loading:{color:{value:"{colors.font.tertiary.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"}},_disabled:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"}},primary:{borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},backgroundColor:{value:"{colors.brand.primary.80.value}"},color:{value:"{colors.font.inverse.value}"},_disabled:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_loading:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.tertiary.value}"},color:{value:"{colors.font.inverse.value}"}},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.100.value}"},color:{value:"{colors.font.inverse.value}"}}},menu:{borderWidth:{value:0},backgroundColor:{value:"transparent"},justifyContent:{value:"start"},_hover:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.brand.primary.80.value}"}},_focus:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.brand.primary.80.value}"}},_active:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.brand.primary.90.value}"}},_disabled:{color:{value:"{colors.font.disabled.value}"}}},link:{borderWidth:{value:0},borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.interactive.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.10.value}"},color:{value:"{colors.font.hover.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.10.value}"},color:{value:"{colors.font.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.20.value}"},color:{value:"{colors.font.active.value}"}},_disabled:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled.value}"}},_loading:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled.value}"}}},small:{fontSize:{value:"{components.fieldcontrol.small.fontSize.value}"},paddingBlockStart:{value:"{components.fieldcontrol.small.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.small.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.small.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.small.paddingInlineEnd.value}"}},large:{fontSize:{value:"{components.fieldcontrol.large.fontSize.value}"},paddingBlockStart:{value:"{components.fieldcontrol.large.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.large.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.large.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.large.paddingInlineEnd.value}"}}}}),D_=j((e,t)=>{E(),t.exports={backgroundColor:{value:"{colors.background.primary.value}"},borderRadius:{value:"{radii.xs.value}"},borderWidth:{value:"0"},borderStyle:{value:"solid"},borderColor:{value:"transparent"},boxShadow:{value:"none"},padding:{value:"{space.medium.value}"},outlined:{backgroundColor:{value:"{components.card.backgroundColor.value}"},borderRadius:{value:"{radii.xs.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"}},elevated:{backgroundColor:{value:"{components.card.backgroundColor.value}"},borderRadius:{value:"{radii.xs.value}"},borderWidth:{value:"0"},borderStyle:{value:"solid"},borderColor:{value:"transparent"},boxShadow:{value:"{shadows.medium.value}"}}}}),O_=j((e,t)=>{E(),t.exports={cursor:{value:"pointer"},alignItems:{value:"center"},_disabled:{cursor:{value:"not-allowed"}},button:{position:{value:"relative"},alignItems:{value:"center"},justifyContent:{value:"center"},color:{value:"{colors.white.value}"},before:{width:{value:"100%"},height:{value:"100%"},borderWidth:{value:"{borderWidths.medium.value}"},borderRadius:{value:"20%"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"}},_focus:{outlineColor:{value:"{colors.transparent.value}"},outlineStyle:{value:"solid"},outlineWidth:{value:"{outlineWidths.medium.value}"},outlineOffset:{value:"{outlineOffsets.medium.value}"},borderColor:{value:"{colors.transparent.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.border.focus.value}"}}},_disabled:{borderColor:{value:"{colors.border.disabled.value}"}},_error:{borderColor:{value:"{colors.border.error.value}"},_focus:{borderColor:{value:"{colors.transparent.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.border.error.value}"}}}}},icon:{backgroundColor:{value:"{colors.brand.primary.80.value}"},borderRadius:{value:"20%"},opacity:{value:"{opacities.0.value}"},transform:{value:"scale(0)"},transitionProperty:{value:"all"},transitionDuration:{value:"{time.short.value}"},transitionTimingFunction:{value:"ease-in-out"},_checked:{opacity:{value:"{opacities.100.value}"},transform:{value:"scale(1)"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"}}}},label:{_disabled:{color:{value:"{colors.font.disabled.value}"}}}}}),V_=j((e,t)=>{E(),t.exports={alignItems:{value:"flex-start"},alignContent:{value:"center"},flexDirection:{value:"column"},justifyContent:{value:"center"}}}),U_=j((e,t)=>{E(),t.exports={height:{value:"100%"}}}),M_=j((e,t)=>{E(),t.exports={borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},borderWidth:{value:"{borderWidths.medium.value}"},small:{borderWidth:{value:"{borderWidths.small.value}"}},large:{borderWidth:{value:"{borderWidths.large.value}"}},opacity:{value:"{opacities.60.value}"}}}),L_=j((e,t)=>{E(),t.exports={display:{value:"block"},backgroundColor:{value:"{colors.white.value}"},borderRadius:{value:"{radii.medium.value}"},boxShadow:{value:"{shadows.large.value}"},width:{value:"100%"},item:{marginTop:{value:"1px"},boxShadow:{value:"{shadows.small.value}"},borderBottomLeftRadius:{value:"{radii.medium.value}"},borderBottomRightRadius:{value:"{radii.medium.value}"},borderTopLeftRadius:{value:"{radii.medium.value}"},borderTopRightRadius:{value:"{radii.medium.value}"},borderStartStartRadius:{value:"{radii.medium.value}"},borderStartEndRadius:{value:"{radii.medium.value}"},borderEndStartRadius:{value:"{radii.medium.value}"},borderEndEndRadius:{value:"{radii.medium.value}"},_focus:{boxShadow:{value:{offsetX:"0",offsetY:"0",blurRadius:"0",spreadRadius:"2px",color:"{colors.border.focus.value}"}}}},header:{boxShadow:{value:{offsetX:"0",offsetY:"1px",blurRadius:"0",color:"{colors.overlay.20.value}"}}},trigger:{minHeight:{value:"3rem"},paddingInlineStart:{value:"{space.large.value}"},paddingInlineEnd:{value:"{space.large.value}"},alignItems:{value:"center"},justifyContent:{value:"space-between"},_hover:{backgroundColor:{value:"{colors.overlay.10.value}"}}},content:{paddingInlineStart:{value:"{space.large.value}"},paddingInlineEnd:{value:"{space.large.value}"},text:{color:{value:"{colors.font.secondary.value}"},paddingBlockStart:{value:"{space.medium.value}"},paddingBlockEnd:{value:"{space.medium.value}"}},_open:{animationDuration:{value:"{time.medium.value}"},animationTimingFunction:{value:"cubic-bezier(0.87, 0, 0.13, 1)"}},_closed:{animationDuration:{value:"{time.medium.value}"},animationTimingFunction:{value:"cubic-bezier(0.87, 0, 0.13, 1)"}}},icon:{transitionDuration:{value:"{time.medium.value}"},transitionTimingFunction:{value:"cubic-bezier(0.87, 0, 0.13, 1)"}}}}),z_=j((e,t)=>{E(),t.exports={gap:{value:"{space.xs.value}"},fontSize:{value:"{fontSizes.medium.value}"},small:{gap:{value:"{space.xxxs.value}"},fontSize:{value:"{fontSizes.small.value}"}},large:{gap:{value:"{space.small.value}"},fontSize:{value:"{fontSizes.large.value}"}},label:{color:{value:"{colors.font.secondary.value}"}}}}),j_=j((e,t)=>{E(),t.exports={borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderRadius:{value:"{radii.small.value}"},color:{value:"{colors.font.primary.value}"},paddingBlockStart:{value:"{space.xs.value}"},paddingBlockEnd:{value:"{space.xs.value}"},paddingInlineStart:{value:"{space.medium.value}"},paddingInlineEnd:{value:"{space.medium.value}"},fontSize:{value:"{components.field.fontSize.value}"},lineHeight:{value:"{lineHeights.medium.value}"},transitionDuration:{value:"{time.medium.value}"},outlineColor:{value:"{colors.transparent.value}"},outlineStyle:{value:"solid"},outlineWidth:{value:"{outlineWidths.medium.value}"},outlineOffset:{value:"{outlineOffsets.medium.value}"},small:{fontSize:{value:"{components.field.small.fontSize.value}"},paddingBlockStart:{value:"{space.xxs.value}"},paddingBlockEnd:{value:"{space.xxs.value}"},paddingInlineStart:{value:"{space.small.value}"},paddingInlineEnd:{value:"{space.small.value}"}},large:{fontSize:{value:"{components.field.large.fontSize.value}"},paddingBlockStart:{value:"{space.xs.value}"},paddingBlockEnd:{value:"{space.xs.value}"},paddingInlineStart:{value:"{space.medium.value}"},paddingInlineEnd:{value:"{space.medium.value}"}},quiet:{borderStyle:{value:"none"},borderBlockEnd:{value:"{borderWidths.small.value} solid {colors.border.primary.value}"},borderInlineStart:{value:"none"},borderInlineEnd:{value:"none"},borderBlockStart:{value:"none"},borderRadius:{value:"0"},_focus:{borderBlockEndColor:{value:"{colors.border.focus.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"1px",color:"{colors.border.focus.value}"}}},_error:{borderBlockEndColor:{value:"{colors.border.error.value}"},_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"1px",color:"{colors.border.error.value}"}}}}},_focus:{borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.border.focus.value}"}}},_disabled:{color:{value:"{colors.font.disabled.value}"},cursor:{value:"not-allowed"},borderColor:{value:"{colors.transparent.value}"},backgroundColor:{value:"{colors.background.disabled.value}"}},_error:{borderColor:{value:"{colors.border.error.value}"},_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.border.error.value}"}}}}}}),G_=j((e,t)=>{E(),t.exports={gap:{value:0},vertical:{alignItems:{value:"center"}},outer:{alignItems:{value:"center"}}}}),W_=j((e,t)=>{E(),t.exports={error:{color:{value:"{colors.font.error.value}"},fontSize:{value:"{fontSizes.small.value}"}},description:{color:{value:"{colors.font.secondary.value}"},fontStyle:{value:"italic"},fontSize:{value:"{fontSizes.small.value}"}}}}),H_=j((e,t)=>{E(),t.exports={gap:{value:"{space.medium.value}"},justifyContent:{value:"normal"},alignItems:{value:"stretch"},alignContent:{value:"normal"},flexWrap:{value:"nowrap"}}}),K_=j((e,t)=>{E(),t.exports={color:{value:"{colors.font.primary.value}"},lineHeight:{value:"{lineHeights.small.value}"},1:{fontSize:{value:"{fontSizes.xxxxl.value}"},fontWeight:{value:"{fontWeights.light.value}"}},2:{fontSize:{value:"{fontSizes.xxxl.value}"},fontWeight:{value:"{fontWeights.normal.value}"}},3:{fontSize:{value:"{fontSizes.xxl.value}"},fontWeight:{value:"{fontWeights.medium.value}"}},4:{fontSize:{value:"{fontSizes.xl.value}"},fontWeight:{value:"{fontWeights.semibold.value}"}},5:{fontSize:{value:"{fontSizes.large.value}"},fontWeight:{value:"{fontWeights.bold.value}"}},6:{fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.extrabold.value}"}}}}),q_=j((e,t)=>{E(),t.exports={lineHeight:{value:1},height:{value:"1em"}}}),Y_=j((e,t)=>{E(),t.exports={maxWidth:{value:"100%"},height:{value:"auto"},objectFit:{value:"initial"},objectPosition:{value:"initial"}}}),Z_=j((e,t)=>{E(),t.exports={active:{color:{value:"{colors.font.active.value}"}},color:{value:"{colors.font.interactive.value}"},focus:{color:{value:"{colors.font.focus.value}"}},hover:{color:{value:"{colors.font.hover.value}"}},large:{fontSize:{value:"{fontSizes.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"}},visited:{color:{value:"{colors.font.interactive.value}"}}}}),J_=j((e,t)=>{E(),t.exports={width:{value:"{fontSizes.xxl.value}"},height:{value:"{fontSizes.xxl.value}"},strokeEmpty:{value:"{colors.neutral.20.value}"},strokeFilled:{value:"{colors.brand.primary.80.value}"},strokeLinecap:{value:"round"},animationDuration:{value:"1s"},small:{width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"}},large:{width:{value:"{fontSizes.xxxl.value}"},height:{value:"{fontSizes.xxxl.value}"}},linear:{width:{value:"100%"},minWidth:{value:"5rem"},height:{value:"{fontSizes.xxs.value}"},strokeWidth:{value:"{fontSizes.xxs.value}"},strokeFilled:{value:"{colors.brand.primary.80.value}"},strokeEmpty:{value:"{colors.neutral.20.value}"},strokeLinecap:{value:"round"},animationDuration:{value:"1s"},small:{height:{value:"{fontSizes.xxxs.value}"},strokeWidth:{value:"{fontSizes.xxxs.value}"}},large:{height:{value:"{fontSizes.xs.value}"},strokeWidth:{value:"{fontSizes.xs.value}"}}}}}),X_=j((e,t)=>{E(),t.exports={backgroundColor:{value:"{colors.white.value}"},borderRadius:{value:"{radii.medium.value}"},boxShadow:{value:"{shadows.large.value}"},flexDirection:{value:"column"},gap:{value:0},maxWidth:{value:"30rem"},minWidth:{value:"14rem"},small:{width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"}},large:{width:{value:"{fontSizes.xxxl.value}"},height:{value:"{fontSizes.xxxl.value}"}},item:{minHeight:{value:"2.5rem"},paddingInlineStart:{value:"{space.medium.value}"},paddingInlineEnd:{value:"{space.medium.value}"}}}}),Q_=j((e,t)=>{E(),t.exports={current:{alignItems:{value:"center"},justifyContent:{value:"center"},color:{value:"{colors.white.value}"},fontSize:{value:"{fontSizes.small.value}"},backgroundColor:{value:"{colors.overlay.40.value}"}},button:{color:{value:"{colors.font.primary.value}"},paddingInlineStart:{value:"{space.xxs.value}"},paddingInlineEnd:{value:"{space.xxs.value}"},transitionProperty:{value:"background-color"},transitionDuration:{value:"{time.medium.value}"},hover:{backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.font.primary.value}"}},disabled:{color:{value:"{colors.font.disabled.value}"}}},ellipsis:{alignItems:{value:"baseline"},justifyContent:{value:"center"},paddingInlineStart:{value:"{space.xs.value}"},paddingInlineEnd:{value:"{space.xs.value}"}},itemContainer:{marginLeft:{value:"{space.xxxs.value}"},marginRight:{value:"{space.xxxs.value}"}},itemShared:{height:{value:"{fontSizes.xxl.value}"},minWidth:{value:"{fontSizes.xxl.value}"},borderRadius:{value:"{fontSizes.medium.value}"}}}}),eS=j((e,t)=>{E(),t.exports={}}),tS=j((e,t)=>{E(),t.exports={borderRadius:{value:"{radii.small.value}"},transitionDuration:{value:"{time.long.value}"},startColor:{value:"{colors.background.secondary.value}"},endColor:{value:"{colors.background.tertiary.value}"},small:{height:{value:"{space.small.value}"}},default:{height:{value:"{space.medium.value}"}},large:{height:{value:"{space.large.value}"}}}}),rS=j((e,t)=>{E(),t.exports={alignItems:{value:"center"},justifyContent:{value:"flex-start"},gap:{value:"inherit"},_disabled:{cursor:{value:"not-allowed"}},button:{alignItems:{value:"center"},justifyContent:{value:"center"},width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"},boxSizing:{value:"border-box"},borderWidth:{value:"{borderWidths.medium.value}"},borderStyle:{value:"solid"},borderRadius:{value:"50%"},borderColor:{value:"{colors.border.primary.value}"},color:{value:"{colors.white.value}"},backgroundColor:{value:"{colors.white.value}"},transitionProperty:{value:"all"},transitionDuration:{value:"{time.medium.value}"},outlineColor:{value:"{colors.transparent.value}"},outlineStyle:{value:"solid"},outlineWidth:{value:"{outlineWidths.medium.value}"},outlineOffset:{value:"{outlineOffsets.medium.value}"},padding:{value:"{borderWidths.medium.value}"},small:{width:{value:"{fontSizes.small.value}"},height:{value:"{fontSizes.small.value}"}},large:{width:{value:"{fontSizes.large.value}"},height:{value:"{fontSizes.large.value}"}},_checked:{color:{value:"{colors.brand.primary.80.value}"},_disabled:{color:{value:"{colors.background.disabled.value}"}}},_focus:{borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_error:{borderColor:{value:"{colors.border.error.value}"},_focus:{boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}}},_disabled:{borderColor:{value:"{colors.border.disabled.value}"},backgroundColor:{value:"{colors.background.primary.value}"}}},label:{_disabled:{color:{value:"{colors.font.disabled.value}"}}}}}),nS=j((e,t)=>{E(),t.exports={large:{size:{value:"{fontSizes.xxxl.value}"}},default:{size:{value:"{fontSizes.xl.value}"}},small:{size:{value:"{fontSizes.small.value}"}},filled:{color:{value:"{colors.brand.secondary.80.value}"}},empty:{color:{value:"{colors.background.tertiary.value}"}}}}),aS=j((e,t)=>{E(),t.exports={paddingInlineEnd:{value:"{space.xxl.value}"},wrapper:{flex:{value:"1"},display:{value:"block"},position:{value:"relative"},cursor:{value:"pointer"}},iconWrapper:{alignItems:{value:"center"},position:{value:"absolute"},top:{value:"50%"},right:{value:"{space.medium.value}"},transform:{value:"translateY(-50%)"},pointerEvents:{value:"none"}},option:{backgroundColor:{value:"{colors.background.primary.value}"}},whiteSpace:{value:"nowrap"},minWidth:{value:"6.5rem"},small:{minWidth:{value:"5.5rem"}},large:{minWidth:{value:"7.5rem"}}}}),oS=j((e,t)=>{E(),t.exports={flexDirection:{value:"column"}}}),iS=j((e,t)=>{E(),t.exports={paddingBlock:{value:"{space.xs.value}"},track:{backgroundColor:{value:"{colors.background.tertiary.value}"},borderRadius:{value:"9999px"},height:{value:"0.375rem"},minWidth:{value:"10rem"}},range:{backgroundColor:{value:"{colors.brand.primary.80.value}"},borderRadius:{value:"9999px"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"}}},thumb:{width:{value:"1.25rem"},height:{value:"1.25rem"},backgroundColor:{value:"{colors.background.primary.value}"},boxShadow:{value:"{shadows.medium.value}"},borderRadius:{value:"50%"},borderWidth:{value:"{borderWidths.small.value}"},borderColor:{value:"{colors.border.primary.value}"},borderStyle:{value:"solid"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"},borderColor:{value:"transparent"},boxShadow:{value:"none"}},_hover:{backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.focus.value}"}},_focus:{boxShadow:{value:{offsetX:"0",offsetY:"0",blurRadius:"0",spreadRadius:"3px",color:"{colors.border.focus.value}"}}}},small:{track:{height:{value:"0.25rem"}},thumb:{width:{value:"1rem"},height:{value:"1rem"}}},large:{track:{height:{value:"0.625rem"}},thumb:{width:{value:"1.5rem"},height:{value:"1.5rem"}}}}}),sS=j((e,t)=>{E(),t.exports={flexDirection:{value:"column"},input:{textAlign:{value:"center"}}}}),lS=j((e,t)=>{E(),t.exports={disabled:{opacity:{value:"{opacities.60.value}"}},focused:{shadow:{value:"{shadows.small.value}"}},label:{padding:{value:"{space.xs.value}"}},large:{font:{size:{value:"{fontSizes.large.value}"}}},small:{font:{size:{value:"{fontSizes.small.value}"}}},thumb:{backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.tertiary.value}"},borderRadius:{value:"{radii.xxxl.value}"},checked:{transform:{value:"{transforms.slideX.medium.value}"}},transition:{duration:{value:"{time.medium.value}"}},width:{value:"{space.relative.medium.value}"}},track:{backgroundColor:{value:"{colors.background.tertiary.value}"},borderRadius:{value:"{radii.xxxl.value}"},checked:{backgroundColor:{value:"{colors.brand.primary.60.value}"}},height:{value:"{space.relative.medium.value}"},padding:{value:"{outlineWidths.medium.value}"},transition:{duration:{value:"{time.short.value}"}},width:{value:"{space.relative.xl.value}"}}}}),uS=j((e,t)=>{E(),t.exports={borderCollapse:{value:"collapse"},display:{value:"table"},width:{value:"100%"},head:{display:{value:"table-header-group"},verticalAlign:{value:"middle"}},body:{display:{value:"table-row-group"},verticalAlign:{value:"middle"}},foot:{display:{value:"table-footer-group"},verticalAlign:{value:"middle"}},row:{display:{value:"table-row"},verticalAlign:{value:"middle"},hover:{backgroundColor:{value:"{colors.background.tertiary.value}"}},striped:{backgroundColor:{value:"{colors.background.secondary.value}"}}},header:{borderColor:{value:"{colors.border.tertiary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small.value}"},color:{value:"{colors.font.primary.value}"},display:{value:"table-cell"},fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"},padding:{value:"{space.medium.value}"},verticalAlign:{value:"middle"},large:{fontSize:{value:"{fontSizes.large.value}"},padding:{value:"{space.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"},padding:{value:"{space.xs.value}"}}},data:{borderColor:{value:"{colors.border.tertiary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small.value}"},color:{value:"{colors.font.primary.value}"},display:{value:"table-cell"},fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.normal.value}"},padding:{value:"{space.medium.value}"},verticalAlign:{value:"middle"},large:{fontSize:{value:"{fontSizes.large.value}"},padding:{value:"{space.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"},padding:{value:"{space.xs.value}"}}},caption:{captionSide:{value:"bottom"},color:{value:"{colors.font.primary.value}"},display:{value:"table-caption"},fontSize:{value:"{fontSizes.medium.value}"},textAlign:{value:"center"},wordBreak:{value:"break-all"},large:{fontSize:{value:"{fontSizes.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"}}}}}),cS=j((e,t)=>{E(),t.exports={backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.secondary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.medium.value}"},gap:{value:"0"},item:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.secondary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.medium.value}"},color:{value:"{colors.font.secondary.value}"},fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"},paddingVertical:{value:"{space.small.value}"},paddingHorizontal:{value:"{space.medium.value}"},textAlign:{value:"center"},transitionDuration:{value:"{time.medium.value}"},_hover:{color:{value:"{colors.font.hover.value}"}},_focus:{color:{value:"{colors.font.focus.value}"}},_active:{color:{value:"{colors.font.interactive.value}"},borderColor:{value:"{colors.font.interactive.value}"},backgroundColor:{value:"transparent"}},_disabled:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"}}}}}),dS=j((e,t)=>{E(),t.exports={color:{value:"{colors.font.primary.value}"},primary:{color:{value:"{colors.font.primary.value}"}},secondary:{color:{value:"{colors.font.secondary.value}"}},tertiary:{color:{value:"{colors.font.tertiary.value}"}},error:{color:{value:"{colors.font.error.value}"}},warning:{color:{value:"{colors.font.warning.value}"}},success:{color:{value:"{colors.font.success.value}"}},info:{color:{value:"{colors.font.info.value}"}}}}),fS=j((e,t)=>{E(),t.exports={borderColor:{value:"{colors.border.primary.value}"},color:{value:"{colors.overlay.50.value}"},_hover:{backgroundColor:{value:"{colors.overlay.10.value}"}},_focus:{borderColor:{value:"{colors.border.focus.value}"},color:{value:"{colors.overlay.50.value}"}},_active:{backgroundColor:{value:"{colors.transparent.value}"}},_disabled:{backgroundColor:{value:"{colors.transparent.value}"},borderColor:{value:"{colors.border.secondary.value}"},color:{value:"{colors.font.disabled.value}"}},_pressed:{color:{value:"{colors.overlay.90.value}"},backgroundColor:{value:"{colors.overlay.20.value}"},_hover:{backgroundColor:{value:"{colors.overlay.30.value}"}}},primary:{backgroundColor:{value:"{colors.transparent.value}"},borderWidth:{value:"{borderWidths.small.value}"},_focus:{borderColor:{value:"{colors.border.focus.value}"},backgroundColor:{value:"{colors.transparent.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"},color:{value:"{colors.overlay.50.value}"}},_hover:{backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.overlay.50.value}"}},_disabled:{backgroundColor:{value:"{colors.background.tertiary.value}"},color:{value:"{colors.font.disabled.value}"}},_pressed:{backgroundColor:{value:"{colors.brand.primary.80.value}"},borderColor:{value:"{colors.brand.primary.80.value}"},color:{value:"{colors.white.value}"},_focus:{backgroundColor:{value:"{colors.border.focus.value}"},borderColor:{value:"{colors.border.focus.value}"}},_hover:{borderColor:{value:"{colors.brand.primary.60.value}"},backgroundColor:{value:"{colors.brand.primary.60.value}"}}}},link:{color:{value:"{colors.overlay.50.value}"},_hover:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.50.value}"}},_focus:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.50.value}"}},_disabled:{color:{value:"{colors.font.disabled.value}"}},_pressed:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.90.value}"},_hover:{backgroundColor:{value:"{colors.transparent.value}"}}}}}}),vS=j((e,t)=>{E(),t.exports={alignItems:{value:"center"},alignContent:{value:"center"},justifyContent:{value:"flex-start"}}}),pS=j((e,t)=>{E(),t.exports={alert:B_(),badge:F_(),button:R_(),card:D_(),checkbox:O_(),checkboxfield:V_(),countrycodeselect:U_(),divider:M_(),expander:L_(),field:z_(),fieldcontrol:j_(),fieldgroup:G_(),fieldmessages:W_(),flex:H_(),heading:K_(),icon:q_(),image:Y_(),link:Z_(),loader:J_(),menu:X_(),pagination:Q_(),phonenumberfield:eS(),placeholder:tS(),radio:rS(),rating:nS(),select:aS(),selectfield:oS(),sliderfield:iS(),stepperfield:sS(),switchfield:lS(),table:uS(),tabs:cS(),text:dS(),togglebutton:fS(),togglebuttongroup:vS()}});E();E();E();E();E();var As=(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",e))(As||{}),la=["username","email","phone_number"];E();var ge={birthdate:{label:"Birthdate",placeholder:"Birthdate",type:"date",autocomplete:"bday"},confirmation_code:{label:"Confirmation Code",placeholder:"Code",type:"text",autocomplete:"one-time-code"},email:{label:"Email",type:"email",placeholder:"Email",autocomplete:"username"},family_name:{label:"Family Name",placeholder:"Family Name",type:"text",autocomplete:"family-name"},given_name:{label:"Given Name",placeholder:"Given Name",type:"text",autocomplete:"given-name"},middle_name:{label:"Middle Name",placeholder:"Middle Name",type:"text",autocomplete:"additional-name"},name:{label:"Name",placeholder:"Name",type:"text",autocomplete:"name"},nickname:{label:"Nickname",placeholder:"Nickname",type:"text",autocomplete:"tel"},password:{label:"Password",placeholder:"Password",type:"password",autocomplete:"password"},phone_number:{label:"Phone Number",placeholder:"Phone",type:"tel",autocomplete:"tel"},preferred_username:{label:"Preferred Username",placeholder:"Preferred Username",type:"text"},profile:{label:"Profile",placeholder:"Profile",type:"url",autocomplete:"url"},website:{label:"Website",placeholder:"Website",type:"url",autocomplete:"url"},username:{label:"Username",type:"text",placeholder:"Username",autocomplete:"username"}},Is=(e=>(e.Apple="SignInWithApple",e.Amazon="LoginWithAmazon",e.Facebook="Facebook",e.Google="Google",e))(Is||{}),Ns=(e,t)=>{var r,a,o,i,s;let l=(r=e.config)==null?void 0:r.loginMechanisms,u=(o=(a=e.actorRef)==null?void 0:a.context)==null?void 0:o.validationError.username;if(la.includes(t))return{label:ge[t].label,type:ge[t].type,error:u};let c="text",d=l.filter(v=>$d(la,v)).map(v=>{var f,p;return(p=(f=ge[v])==null?void 0:f.label)!=null?p:ge.username.label}).join(" or ");return l.length===1&&(c=(s=(i=ge[l[0]])==null?void 0:i.type)!=null?s:"text"),{label:d,type:c,error:u}},Ie=e=>{var t;return(t=e.context.actorRef)==null?void 0:t.getSnapshot()},Ht=e=>{var t;return(t=Ie(e))==null?void 0:t.context},mS=e=>{let t=r=>a=>e({type:r,data:a});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")}},hS=e=>{var t,r;let a=(t=e.context)==null?void 0:t.user,o=Ie(e),i=Ht(e),s=i==null?void 0:i.remoteError,l=le({},i==null?void 0:i.validationError),u=i==null?void 0:i.codeDeliveryDetails,c=Object.keys(l).length>0,d=e.hasTag("pending")||((r=Ie(e))==null?void 0:r.hasTag("pending")),v=(()=>{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(o==null?void 0:o.matches("confirmSignUp")):return"confirmSignUp";case(o==null?void 0:o.matches("confirmSignIn")):return"confirmSignIn";case(o==null?void 0:o.matches("setupTOTP")):return"setupTOTP";case(o==null?void 0:o.matches("signIn")):return"signIn";case(o==null?void 0:o.matches("signUp")):return"signUp";case(o==null?void 0:o.matches("forceNewPassword")):return"forceNewPassword";case(o==null?void 0:o.matches("resetPassword")):return"resetPassword";case(o==null?void 0:o.matches("confirmResetPassword")):return"confirmResetPassword";case(o==null?void 0:o.matches("verifyUser")):return"verifyUser";case(o==null?void 0:o.matches("confirmVerifyUser")):return"confirmVerifyUser";default:return console.debug("Cannot infer `route` from Authenticator state:",e.value),null}})();return{error:s,hasValidationErrors:c,isPending:d,route:v,user:a,validationErrors:l,codeDeliveryDetails:u}},Ps=({send:e,state:t})=>{let r=mS(e),a=hS(t);return le(le({},r),a)},gS=e=>re.Hub.listen("auth",t=>{switch(t.payload.event){case"signOut":e("SIGN_OUT");break}});E();E();E();var Ts=["+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"];E();E();E();E();var yS={"Account recovery requires verified contact information":"Zur\xFCcksetzen des Account ben\xF6tigt einen verifizierten Account","An account with the given email already exists.":"Ein Account mit dieser Email existiert bereits.","Back to Sign In":"Zur\xFCck zur Anmeldung","Change Password":"Passwort \xE4ndern",Code:"Code",Confirm:"Best\xE4tigen","Confirm Password":"Passwort best\xE4tigen","Confirm a Code":"Code best\xE4tigen","Confirm Sign In":"Anmeldung best\xE4tigen","Confirm Sign Up":"Registrierung best\xE4tigen","Confirm SMS Code":"SMS-Code best\xE4tigen","Confirm TOTP Code":"TOTP-Code best\xE4tigen","Confirmation Code":"Best\xE4tigungs-Code","Create a new account":"Einen neuen Account erstellen","Create account":"Hier registrieren","Create Account":"Account erstellen","Creating Account":"Account wird erstellt",Email:"Email","Enter your code":"Geben Sie Ihren Code ein","Enter your password":"Geben Sie Ihr Passwort ein","Enter your username":"Geben Sie Ihren Benutzernamen ein","Enter your phone number":"Geben Sie Ihre Telefonnummer ein","Enter your email":"Geben Sie ihre Email ein","Forgot your password?":"Passwort vergessen? ","Forgot Password":"Passwort vergessen","Hide password":"Passwort verbergen","Have an account? ":"Schon registriert? ","Incorrect username or password":"Falscher Benutzername oder falsches Passwort","Invalid password format":"Ung\xFCltiges Passwort-Format","Invalid phone number format":"Ung\xFCltiges Telefonummern-Format. Benutze eine Nummer im Format: +12345678900","Lost your code? ":"Code verloren? ","New Password":"Neues Passwort","No account? ":"Kein Account? ",or:"oder",Password:"Passwort","Password attempts exceeded":"Die maximale Anzahl der fehlerhaften Anmeldeversuche wurde erreicht","Phone Number":"Telefonnummer","Resend Code":"Code erneut senden","Reset password":"Passwort zur\xFCcksetzen","Reset your password":"Zur\xFCcksetzen des Passworts","Send Code":"Code senden","Sign in":"Anmelden","Sign In":"Anmelden","Sign in to your account":"Melden Sie sich mit Ihrem Account an","Sign Out":"Abmelden","Sign Up":"Registrieren",Skip:"\xDCberspringen",Submit:"Abschicken","User already exists":"Dieser Benutzer existiert bereits","User does not exist":"Dieser Benutzer existiert nicht",Username:"Benutzername","Username cannot be empty":"Benutzername darf nicht leer sein",Verify:"Verifizieren","Verify Contact":"Kontakt verifizieren"};E();var bS={"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"};E();var CS={"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",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","Confirmation Code":"C\xF3digo de confirmaci\xF3n","Create a new account":"Crear una cuenta nueva",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","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","Resend Code":"Reenviar c\xF3digo","Send Code":"Enviar c\xF3digo","Sign In":"Iniciar sesi\xF3n","Sign in to your account":"Iniciar sesi\xF3n en tu cuenta","Sign Out":"Cerrar sesi\xF3n","Sign Up":"Crear cuenta",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"};E();var wS={"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"};E();var _S={"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"};E();var SS={"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
83
- +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"};E();var xS={"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"};E();var ES={"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"};E();var AS={"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"};E();var IS={"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"};E();var NS={"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":"\u6539\u53D8\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"};E();var PS={"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"};E();var TS={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"};le({},yS);le({},bS);le({},CS);le({},wS);le({},_S);le({},SS);le({},xS);le({},ES);le({},AS);le({},IS);le({},NS);le({},PS);var $S=le({},TS);le({},$S);function P(e){return re.I18n.get(e)}function kS(e){return re.I18n.get(e)!==e}E();E();E();var Ur=e=>hv(e),BS=se({attributeToVerify:e=>{}}),FS=se({challengeName:e=>{}}),RS=se({requiredAttributes:e=>{}}),ua=se({remoteError:e=>""}),ca=se({formValues:e=>({})}),da=se({touched:e=>({})}),DS=se({unverifiedAttributes:e=>{}}),OS=se({username:e=>{}}),fa=se({validationError:e=>({})}),VS=se({challengeName:(e,t)=>{var r;return(r=t.data)==null?void 0:r.challengeName}}),US=se({requiredAttributes:(e,t)=>{var r,a;return(a=(r=t.data)==null?void 0:r.challengeParam)==null?void 0:a.requiredAttributes}}),MS=se({redirectIntent:e=>"confirmPasswordReset"}),LS=se({redirectIntent:e=>"confirmSignUp"}),$s=se({authAttributes:(e,t)=>{var r,a;let[o]=e.loginMechanisms,i=(r=e.formValues[o])!=null?r:e.formValues.username,s=(a=e.formValues)==null?void 0:a.password;return{username:i,password:s}}}),va=se({validationError:(e,t)=>t.data}),pa=se({remoteError:(e,t)=>{var r;return t.data.name==="NoUserPoolError"?"Configuration error (see console) \u2013 please contact the administrator":((r=t.data)==null?void 0:r.message)||t.data}}),zS=se({unverifiedAttributes:(e,t)=>t.data.unverified}),ks=se({user:(e,t)=>t.data.user||t.data}),jS=se({username:(e,t)=>e.formValues.username}),GS=se({codeDeliveryDetails:(e,t)=>t.data.codeDeliveryDetails}),WS=se({authAttributes:(e,t)=>({username:e.formValues.username})}),ma=se({formValues:(e,t)=>{let{name:r,value:a}=t.data;return Wt(le({},e.formValues),{[r]:a})}}),ha=se({touched:(e,t)=>{let{name:r}=t.data;return Wt(le({},e.touched),{[`${r}`]:!0})}}),Bs=se({formValues:(e,t)=>{var r;let[a="username"]=e.loginMechanisms;if(!e.formValues.phone_number&&a!=="phone_number")return e.formValues;let{formValues:o,country_code:i}=e,s=o.phone_number?"phone_number":"username",l=`${(r=o.country_code)!=null?r:i}${o[s]}`.replace(/[^A-Z0-9+]/gi,""),u=Wt(le({},o),{[s]:l});return delete u.country_code,u}});E();E();E();var ga=async(e,t,r)=>{let a=await Promise.all(r.map(i=>i(e,t))),o=wy({},...a);return Kn(o)?Promise.resolve():Promise.reject(o)};E();var ya={async getAmplifyConfig(){return re.Amplify.configure()},async getCurrentUser(){return re.Auth.currentAuthenticatedUser()},async handleSignUp(e){return re.Auth.signUp(e)},async handleSignIn({username:e,password:t}){return re.Auth.signIn(e,t)},async handleConfirmSignIn({user:e,code:t,mfaType:r}){return re.Auth.confirmSignIn(e,t,r)},async handleConfirmSignUp({username:e,code:t}){return await re.Auth.confirmSignUp(e,t)},async handleForgotPasswordSubmit({username:e,code:t,password:r}){return re.Auth.forgotPasswordSubmit(e,t,r)},async handleForgotPassword(e){return re.Auth.forgotPassword(e)},async validateCustomSignUp(e,t){},async validateConfirmPassword(e,t){let{password:r,confirm_password:a}=e,{confirm_password:o,password:i}=t;if(!r&&!a)return null;if((r||a)&&r!==a&&(o&&i||r.length>=6&&a.length>=6))return{confirm_password:"Your passwords must match"}},async validatePreferredUsername(e,t){}};function HS({services:e}){return zt({initial:"init",id:"signInActor",states:{init:{always:[{target:"signIn"}]},signIn:{initial:"edit",exit:["clearFormValues","clearTouched"],states:{edit:{entry:Y(),on:{SUBMIT:"submit",CHANGE:{actions:"handleInput"},FEDERATED_SIGN_IN:"federatedSignIn"}},federatedSignIn:{tags:["pending"],entry:[Y(),"clearError"],invoke:{src:"federatedSignIn",onError:{actions:"setRemoteError"}}},submit:{tags:["pending"],entry:["parsePhoneNumber","clearError",Y()],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",Y()],invoke:{src:"checkVerifiedContact",onDone:[{cond:"shouldRequestVerification",target:"#signInActor.verifyUser",actions:"setUnverifiedAttributes"},{target:"resolved"}],onError:{actions:"setRemoteError",target:"edit"}}},resolved:{always:"#signInActor.resolved"},rejected:{always:"#signInActor.rejected"}}},confirmSignIn:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:Y(),on:{SUBMIT:"submit",SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:["clearError",Y()],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:Y()},invalid:{entry:Y()}},on:{CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submit:{initial:"idle",entry:"clearError",states:{idle:{entry:Y(),on:{SUBMIT:"validate"}},validate:{entry:Y(),invoke:{src:"validateFields",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},pending:{tags:["pending"],entry:[Y(),"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:Y(),on:{SUBMIT:"submit",SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:[Y(),"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:Y(),on:{SUBMIT:"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:Y(),on:{SUBMIT:"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:t=>({user:t.user})},rejected:{type:"final",data:(t,r)=>({intent:t.redirectIntent,authAttributes:t.authAttributes})}}},{actions:{clearAttributeToVerify:BS,clearChallengeName:FS,clearRequiredAttributes:RS,clearError:ua,clearFormValues:ca,clearTouched:da,clearUnverifiedAttributes:DS,clearValidationError:fa,handleInput:ma,handleBlur:ha,parsePhoneNumber:Bs,setChallengeName:VS,setConfirmResetPasswordIntent:MS,setConfirmSignUpIntent:LS,setRequiredAttributes:US,setCredentials:$s,setFieldErrors:va,setRemoteError:pa,setUnverifiedAttributes:zS,setUser:ks,setUsernameAuthAttributes:WS},guards:{shouldConfirmSignIn:(t,r)=>{let a=Ae(r,"data.challengeName");return["SMS_MFA","SOFTWARE_TOKEN_MFA"].includes(a)},shouldRedirectToConfirmSignUp:(t,r)=>r.data.code==="UserNotConfirmedException",shouldRedirectToConfirmResetPassword:(t,r)=>r.data.code==="PasswordResetRequiredException",shouldSetupTOTP:(t,r)=>Ae(r,"data.challengeName")==="MFA_SETUP",shouldForceChangePassword:(t,r)=>Ae(r,"data.challengeName")==="NEW_PASSWORD_REQUIRED",shouldRequestVerification:(t,r)=>{let{unverified:a,verified:o}=r.data;return Kn(o)&&!Kn(a)}},services:{async signIn(t){let{username:r,password:a}=t.formValues;return await e.handleSignIn({username:r,password:a})},async confirmSignIn(t,r){let{challengeName:a,user:o}=t,{confirmation_code:i}=t.formValues,s;return(a==="SMS_MFA"||a==="SOFTWARE_TOKEN_MFA")&&(s=a),await e.handleConfirmSignIn({user:o,code:i,mfaType:s}),await re.Auth.currentAuthenticatedUser()},async forceNewPassword(t,r){let{user:a,formValues:o}=t,i=o,{password:s,confirm_password:l,phone_number:u,country_code:c}=i,d=Es(i,["password","confirm_password","phone_number","country_code"]),v;return u&&(v=`${c}${u}`.replace(/[^A-Z0-9+]/gi,""),d=Wt(le({},d),{phone_number:v})),re.Auth.completeNewPassword(a,s,d)},async verifyTotpToken(t,r){let{user:a}=t,{confirmation_code:o}=t.formValues;return re.Auth.verifyTotpToken(a,o)},async federatedSignIn(t,r){let{provider:a}=r.data;return await re.Auth.federatedSignIn({provider:a})},async checkVerifiedContact(t,r){let{user:a}=t;return await re.Auth.verifiedContact(a)},async verifyUser(t,r){let{unverifiedAttr:a}=t.formValues,o=await re.Auth.verifyCurrentUserAttribute(a);return t.attributeToVerify=a,o},async confirmVerifyUser(t,r){let{attributeToVerify:a}=t,{confirmation_code:o}=t.formValues;return await re.Auth.verifyCurrentUserAttributeSubmit(a,o)},async validateFields(t,r){return ga(t.formValues,t.touched,[ya.validateConfirmPassword])}}})}E();var KS=zt({initial:"pending",id:"signOutActor",states:{pending:{tags:["pending"],invoke:{src:"signOut",onDone:"resolved",onError:"rejected"}},resolved:{type:"final"},rejected:{type:"final"}}},{services:{signOut:()=>re.Auth.signOut()}});E();function qS({services:e}){return zt({id:"resetPasswordActor",initial:"init",states:{init:{always:[{target:"confirmResetPassword",cond:"shouldAutoConfirmReset"},{target:"resetPassword"}]},resetPassword:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:Y(),on:{SUBMIT:"submit",CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},submit:{tags:["pending"],entry:[Y(),"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:Y()},invalid:{entry:Y()}},on:{CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:Y(),on:{SUBMIT:"validate",RESEND:"resendCode",CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},validate:{entry:Y(),invoke:{src:"validateFields",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},resendCode:{tags:["pending"],entry:["clearError",Y()],invoke:{src:"resetPassword",onDone:{target:"idle"},onError:{actions:"setRemoteError",target:"idle"}}},pending:{tags:["pending"],entry:["clearError",Y()],invoke:{src:"confirmResetPassword",onDone:{actions:"clearUsername",target:"#resetPasswordActor.resolved"},onError:{actions:"setRemoteError",target:"idle"}}}}}}},resolved:{type:"final"}}},{actions:{clearError:ua,clearFormValues:ca,clearTouched:da,clearUsername:OS,clearValidationError:fa,handleInput:ma,handleBlur:ha,setFieldErrors:va,setRemoteError:pa,setUsername:jS},guards:{shouldAutoConfirmReset:(t,r)=>!!(t.intent&&t.intent==="confirmPasswordReset")},services:{async resetPassword(t){var r,a;let o=(a=(r=t.formValues)==null?void 0:r.username)!=null?a:t.username;return e.handleForgotPassword(o)},async confirmResetPassword(t){let{username:r}=t,{confirmation_code:a,password:o}=t.formValues;return e.handleForgotPasswordSubmit({username:r,code:a,password:o})},async validateFields(t,r){return ga(t.formValues,t.touched,[ya.validateConfirmPassword])}}})}E();function YS({services:e}){return zt({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:Y()},invalid:{entry:Y()}},on:{CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:Y(),on:{SUBMIT:"validate",FEDERATED_SIGN_IN:"federatedSignIn"}},federatedSignIn:{tags:["pending"],entry:[Y(),"clearError"],invoke:{src:"federatedSignIn",onDone:"#signUpActor.resolved",onError:{actions:"setRemoteError"}}},validate:{entry:Y(),invoke:{src:"validateSignUp",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},pending:{tags:["pending"],entry:["parsePhoneNumber",Y(),"clearError"],invoke:{src:"signUp",onDone:[{cond:"shouldSkipConfirm",target:"skipConfirm",actions:["setUser"]},{target:"resolved",actions:["setUser","setCredentials","setCodeDeliveryDetails"]}],onError:{target:"idle",actions:"setRemoteError"}}},skipConfirm:{invoke:{src:"signIn",onDone:{target:"#signUpActor.resolved",actions:"setUser"},onError:{target:"idle",actions:"setRemoteError"}}},resolved:{type:"final",always:"#signUpActor.confirmSignUp"}}}}},confirmSignUp:{initial:"edit",states:{edit:{entry:Y(),on:{SUBMIT:"submit",CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"},RESEND:"resend"}},resend:{tags:["pending"],entry:Y(),invoke:{src:"resendConfirmationCode",onDone:{target:"edit"},onError:[{target:"#signUpActor.resolved",actions:"setUser",cond:"isUserAlreadyConfirmed"},{target:"edit",actions:"setRemoteError"}]}},submit:{tags:["pending"],entry:[Y(),"clearError"],invoke:{src:"confirmSignUp",onDone:{target:"#signUpActor.resolved",actions:["setUser"]},onError:{target:"edit",actions:"setRemoteError"}}}}},resolved:{type:"final",data:(t,r)=>{let{username:a,password:o}=t.authAttributes;return{user:Ae(r,"data.user")||t.user,authAttributes:{username:a,password:o}}}}}},{guards:{isUserAlreadyConfirmed:(t,r)=>r.data.message==="User is already confirmed.",shouldInitConfirmSignUp:t=>t.intent&&t.intent==="confirmSignUp",shouldSkipConfirm:(t,r)=>r.data.userConfirmed},actions:{clearError:ua,clearFormValues:ca,clearTouched:da,clearValidationError:fa,handleInput:ma,handleBlur:ha,parsePhoneNumber:Bs,setCredentials:$s,setFieldErrors:va,setRemoteError:pa,setCodeDeliveryDetails:GS,setUser:ks},services:{async signIn(t,r){let{user:a,authAttributes:o,formValues:i}=t,s=Ae(a,"username")||Ae(o,"username"),l=Ae(i,"password");return await re.Auth.signIn(s,l)},async confirmSignUp(t,r){let{user:a,authAttributes:o,formValues:i}=t,{confirmation_code:s}=i,l=Ae(a,"username")||Ae(o,"username"),{password:u}=o;return await e.handleConfirmSignUp({username:l,code:s}),await re.Auth.signIn(l,u)},async resendConfirmationCode(t,r){let{user:a,authAttributes:o}=t,i=Ae(a,"username")||Ae(o,"username");return re.Auth.resendSignUp(i)},async federatedSignIn(t,r){let{provider:a}=r.data;return await re.Auth.federatedSignIn({provider:a})},async signUp(t,r){let{formValues:a,loginMechanisms:o}=t,[i="username"]=o,{[i]:s,password:l}=a,u=_C(a,(c,d)=>{switch(d){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 d.startsWith("custom:")}});return await e.handleSignUp({username:s,password:l,attributes:u})},async validateSignUp(t,r){return ga(t.formValues,t.touched,[e.validateConfirmPassword,e.validatePreferredUsername,e.validateCustomSignUp])}}})}var Fs="+1";function ZS(){return zt({id:"authenticator",initial:"idle",context:{user:void 0,config:{},services:{},actorRef:void 0},states:{idle:{on:{INIT:{target:"setup",actions:"configure"}}},setup:{invoke:[{src:(e,t)=>e.services.getCurrentUser(),onDone:{actions:"setUser",target:"authenticated"},onError:[{target:"signUp",cond:e=>e.config.initialState==="signUp"},{target:"resetPassword",cond:e=>e.config.initialState==="resetPassword"},{target:"signIn"}]},{src:(e,t)=>e.services.getAmplifyConfig(),onDone:{actions:"applyAmplifyConfig"}}]},signIn:{entry:"spawnSignInActor",exit:Ur("signInActor"),on:{SIGN_UP:"signUp",RESET_PASSWORD:"resetPassword","done.invoke.signInActor":[{target:"signUp",cond:"shouldRedirectToSignUp"},{target:"resetPassword",cond:"shouldRedirectToResetPassword"},{target:"authenticated",actions:"setUser"}]}},signUp:{entry:"spawnSignUpActor",exit:Ur("signUpActor"),on:{SIGN_IN:"signIn","done.invoke.signUpActor":{target:"setup",actions:"setUser"}}},resetPassword:{entry:"spawnResetPasswordActor",exit:Ur("resetPasswordActor"),on:{SIGN_IN:"signIn","done.invoke.resetPasswordActor":"signIn"}},signOut:{entry:"spawnSignOutActor",exit:[Ur("signOutActor"),"clearUser"],on:{"done.invoke.signOutActor":"signIn"}},authenticated:{on:{SIGN_OUT:"signOut"}}},on:{CHANGE:{actions:"forwardToActor"},BLUR:{actions:"forwardToActor"},SUBMIT:{actions:"forwardToActor"},FEDERATED_SIGN_IN:{actions:"forwardToActor"},RESEND:{actions:"forwardToActor"},SIGN_OUT:{actions:"forwardToActor"},SIGN_IN:{actions:"forwardToActor"},SKIP:{actions:"forwardToActor"}}},{actions:{forwardToActor:af(e=>e.actorRef),setUser:qe({user:(e,t)=>t.data.user||t.data}),clearUser:qe({user:void 0}),applyAmplifyConfig:qe({config(e,t){var r,a,o,i,s,l,u,c;let d=(a=(r=t.data.aws_cognito_username_attributes)==null?void 0:r.map(g=>g.toLowerCase()))!=null?a:[],v=(i=(o=t.data.aws_cognito_verification_mechanisms)==null?void 0:o.map(g=>g.toLowerCase()))!=null?i:[],f=(l=(s=t.data.aws_cognito_signup_attributes)==null?void 0:s.map(g=>g.toLowerCase()))!=null?l:[],p=(c=(u=t.data.aws_cognito_social_providers)==null?void 0:u.map(g=>g.toLowerCase()))!=null?c:[];d.length===0&&d.push("username");let{loginMechanisms:m,signUpAttributes:h,socialProviders:C,initialState:b}=e.config;return{loginMechanisms:m!=null?m:d,signUpAttributes:h!=null?h:Array.from(new Set([...v,...f])),socialProviders:C!=null?C:p.sort(),initialState:b}}}),spawnSignInActor:qe({actorRef:(e,t)=>{var r,a,o,i,s;let{services:l}=e,u=HS({services:l}).withContext({authAttributes:(r=t.data)==null?void 0:r.authAttributes,user:(a=t.data)==null?void 0:a.user,intent:(o=t.data)==null?void 0:o.intent,country_code:Fs,formValues:{},touched:{},validationError:{},loginMechanisms:(i=e.config)==null?void 0:i.loginMechanisms,socialProviders:(s=e.config)==null?void 0:s.socialProviders});return xr(u,{name:"signInActor"})}}),spawnSignUpActor:qe({actorRef:(e,t)=>{var r,a,o,i,s;let{services:l}=e,u=YS({services:l}).withContext({authAttributes:(a=(r=t.data)==null?void 0:r.authAttributes)!=null?a:{},country_code:Fs,intent:(o=t.data)==null?void 0:o.intent,formValues:{},touched:{},validationError:{},loginMechanisms:(i=e.config)==null?void 0:i.loginMechanisms,socialProviders:(s=e.config)==null?void 0:s.socialProviders});return xr(u,{name:"signUpActor"})}}),spawnResetPasswordActor:qe({actorRef:(e,t)=>{var r,a,o;let{services:i}=e,s=qS({services:i}).withContext({formValues:{},touched:{},intent:(r=t.data)==null?void 0:r.intent,username:(o=(a=t.data)==null?void 0:a.authAttributes)==null?void 0:o.username,validationError:{}});return xr(s,{name:"resetPasswordActor"})}}),spawnSignOutActor:qe({actorRef:e=>{let t=KS.withContext({user:e.user});return xr(t,{name:"signOutActor"})}}),configure:qe((e,t)=>{let r=t.data,{services:a}=r,o=Es(r,["services"]);return{services:le(le({},ya),a),config:o}})},guards:{shouldRedirectToSignUp:(e,t)=>{var r;return((r=t.data)==null?void 0:r.intent)?t.data.intent==="confirmSignUp":!1},shouldRedirectToResetPassword:(e,t)=>{var r;return((r=t.data)==null?void 0:r.intent)?t.data.intent==="confirmPasswordReset":!1}}})}E();E();E();E();E();var JS={small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}};E();var XS={red:{10:{value:"hsl(0, 75%, 95%)"},20:{value:"hsl(0, 75%, 85%)"},40:{value:"hsl(0, 75%, 75%)"},60:{value:"hsl(0, 50%, 50%)"},80:{value:"hsl(0, 95%, 30%)"},90:{value:"hsl(0, 100%, 20%)"},100:{value:"hsl(0, 100%, 15%)"}},orange:{10:{value:"hsl(30, 75%, 95%)"},20:{value:"hsl(30, 75%, 85%)"},40:{value:"hsl(30, 75%, 75%)"},60:{value:"hsl(30, 50%, 50%)"},80:{value:"hsl(30, 95%, 30%)"},90:{value:"hsl(30, 100%, 20%)"},100:{value:"hsl(30, 100%, 15%)"}},yellow:{10:{value:"hsl(60, 75%, 95%)"},20:{value:"hsl(60, 75%, 85%)"},40:{value:"hsl(60, 75%, 75%)"},60:{value:"hsl(60, 50%, 50%)"},80:{value:"hsl(60, 95%, 30%)"},90:{value:"hsl(60, 100%, 20%)"},100:{value:"hsl(60, 100%, 15%)"}},green:{10:{value:"hsl(130, 60%, 95%)"},20:{value:"hsl(130, 60%, 90%)"},40:{value:"hsl(130, 44%, 63%)"},60:{value:"hsl(130, 43%, 46%)"},80:{value:"hsl(130, 33%, 37%)"},90:{value:"hsl(130, 27%, 29%)"},100:{value:"hsl(130, 22%, 23%)"}},teal:{10:{value:"hsl(190, 75%, 95%)"},20:{value:"hsl(190, 75%, 85%)"},40:{value:"hsl(190, 70%, 70%)"},60:{value:"hsl(190, 50%, 50%)"},80:{value:"hsl(190, 95%, 30%)"},90:{value:"hsl(190, 100%, 20%)"},100:{value:"hsl(190, 100%, 15%)"}},blue:{10:{value:"hsl(220, 95%, 95%)"},20:{value:"hsl(220, 85%, 85%)"},40:{value:"hsl(220, 70%, 70%)"},60:{value:"hsl(220, 50%, 50%)"},80:{value:"hsl(220, 95%, 30%)"},90:{value:"hsl(220, 100%, 20%)"},100:{value:"hsl(220, 100%, 15%)"}},purple:{10:{value:"hsl(300, 95%, 95%)"},20:{value:"hsl(300, 85%, 85%)"},40:{value:"hsl(300, 70%, 70%)"},60:{value:"hsl(300, 50%, 50%)"},80:{value:"hsl(300, 95%, 30%)"},90:{value:"hsl(300, 100%, 20%)"},100:{value:"hsl(300, 100%, 15%)"}},pink:{10:{value:"hsl(340, 95%, 95%)"},20:{value:"hsl(340, 90%, 85%)"},40:{value:"hsl(340, 70%, 70%)"},60:{value:"hsl(340, 50%, 50%)"},80:{value:"hsl(340, 95%, 30%)"},90:{value:"hsl(340, 100%, 20%)"},100:{value:"hsl(340, 100%, 15%)"}},neutral:{10:{value:"hsl(210, 5%, 98%)"},20:{value:"hsl(210, 5%, 94%)"},40:{value:"hsl(210, 5%, 87%)"},60:{value:"hsl(210, 6%, 70%)"},80:{value:"hsl(210, 10%, 40%)"},90:{value:"hsl(210, 25%, 25%)"},100:{value:"hsl(210, 50%, 10%)"}},brand:{primary:{10:{value:"{colors.teal.10.value}"},20:{value:"{colors.teal.20.value}"},40:{value:"{colors.teal.40.value}"},60:{value:"{colors.teal.60.value}"},80:{value:"{colors.teal.80.value}"},90:{value:"{colors.teal.90.value}"},100:{value:"{colors.teal.100.value}"}},secondary:{10:{value:"{colors.purple.10.value}"},20:{value:"{colors.purple.20.value}"},40:{value:"{colors.purple.40.value}"},60:{value:"{colors.purple.60.value}"},80:{value:"{colors.purple.80.value}"},90:{value:"{colors.purple.90.value}"},100:{value:"{colors.purple.100.value}"}}},font:{primary:{value:"{colors.neutral.100.value}"},secondary:{value:"{colors.neutral.90.value}"},tertiary:{value:"{colors.neutral.80.value}"},disabled:{value:"{colors.font.tertiary.value}"},inverse:{value:"{colors.white.value}"},interactive:{value:"{colors.brand.primary.80.value}"},hover:{value:"{colors.brand.primary.90.value}"},focus:{value:"{colors.brand.primary.100.value}"},active:{value:"{colors.brand.primary.100.value}"},info:{value:"{colors.blue.90.value}"},warning:{value:"{colors.orange.90.value}"},error:{value:"{colors.red.90.value}"},success:{value:"{colors.green.90.value}"}},background:{primary:{value:"{colors.white.value}"},secondary:{value:"{colors.neutral.10.value}"},tertiary:{value:"{colors.neutral.20.value}"},disabled:{value:"{colors.background.tertiary.value}"},info:{value:"{colors.blue.20.value}"},warning:{value:"{colors.orange.20.value}"},error:{value:"{colors.red.20.value}"},success:{value:"{colors.green.20.value}"}},border:{primary:{value:"{colors.neutral.60.value}"},secondary:{value:"{colors.neutral.40.value}"},tertiary:{value:"{colors.neutral.20.value}"},disabled:{value:"{colors.border.tertiary.value}"},focus:{value:"{colors.brand.primary.100.value}"},error:{value:"{colors.red.80.value}"}},shadow:{primary:{value:"hsla(210, 50%, 10%, 0.25)"},secondary:{value:"hsla(210, 50%, 10%, 0.15)"},tertiary:{value:"hsla(210, 50%, 10%, 0.05)"}},overlay:{10:{value:"hsla(0, 0%, 0%, 0.1)"},20:{value:"hsla(0, 0%, 0%, 0.2)"},30:{value:"hsla(0, 0%, 0%, 0.3)"},40:{value:"hsla(0, 0%, 0%, 0.4)"},50:{value:"hsla(0, 0%, 0%, 0.5)"},60:{value:"hsla(0, 0%, 0%, 0.6)"},70:{value:"hsla(0, 0%, 0%, 0.7)"},80:{value:"hsla(0, 0%, 0%, 0.8)"},90:{value:"hsla(0, 0%, 0%, 0.9)"}},black:{value:"hsl(0, 0%, 0%)"},white:{value:"hsl(0, 0%, 100%)"},transparent:{value:"transparent"}};E();var QS={default:{variable:{value:`'InterVariable', 'Inter var', 'Inter', -apple-system, BlinkMacSystemFont,
82
+ ***************************************************************************** */var ia=function(){return ia=Object.assign||function(t){for(var r,a=1,o=arguments.length;a<o;a++){r=arguments[a];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},ia.apply(this,arguments)};function UC(e){return e.toLowerCase()}var MC=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],LC=/[^A-Z0-9]+/gi;function zC(e,t){t===void 0&&(t={});for(var r=t.splitRegexp,a=r===void 0?MC:r,o=t.stripRegexp,i=o===void 0?LC:o,s=t.transform,l=s===void 0?UC:s,u=t.delimiter,c=u===void 0?" ":u,d=Yi(Yi(e,a,"$1\0$2"),i,"\0"),v=0,f=d.length;d.charAt(v)==="\0";)v++;for(;d.charAt(f-1)==="\0";)f--;return d.slice(v,f).split("\0").map(l).join(c)}function Yi(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(a,o){return a.replace(o,r)},e)}function Fr(e,t){return t===void 0&&(t={}),zC(e,ia({delimiter:"."},t))}function jC(e,t){return t===void 0&&(t={}),Ki(e,je({delimiter:"-"},t))}function GC(e,t){return t===void 0&&(t={}),Fr(e,je({delimiter:"-"},t))}function WC(e,t){return t===void 0&&(t={}),Fr(e,je({delimiter:"/"},t))}function HC(e){return e.charAt(0).toUpperCase()+e.substr(1)}function Zi(e,t){var r=e.toLowerCase();return t===0?HC(r):r}function KC(e,t){return t===void 0&&(t={}),oa(e,je({delimiter:" ",transform:Zi},t))}function qC(e,t){return t===void 0&&(t={}),Fr(e,je({delimiter:"_"},t))}var YC=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",camelCaseTransform:Gi,camelCaseTransformMerge:IC,camelCase:NC,capitalCaseTransform:Hi,capitalCase:Ki,constantCase:VC,dotCase:Fr,headerCase:jC,noCase:oa,paramCase:GC,pascalCaseTransform:na,pascalCaseTransformMerge:zi,pascalCase:ji,pathCase:WC,sentenceCaseTransform:Zi,sentenceCase:KC,snakeCase:qC}),ZC=Al(YC);const Rr=ZC,JC=function(e,t,r){return Object.keys(e||{}).reduce((a,o)=>{let i=e[o];return t(a,i,o,e)},r)},sa=function(e,t){Object.keys(e||{}).forEach(r=>{let a=e[r];t(a,r)})},XC=function(e){return Object.assign(new e.constructor,e)},Or=function(e){if(e==null||typeof e!="object")return e;if(e instanceof Array)return e.reduce((t,r,a)=>(t[a]=Or(r),t),[]);if(e instanceof Object)return Object.keys(e||{}).reduce((t,r)=>(t[r]=Or(e[r]),t),{})},Ji=function(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")},QC=function(e){return typeof e=="string"||e instanceof String},ew=function(e){return Array.isArray(e)},tw=function(e){return[Object,Array].includes((e||{}).constructor)&&!Object.entries(e||{}).length};function rw(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}const nw=function(e,t){if(typeof t!="function")throw"filter is not a function";return typeof e=="undefined"?[]:e.filter(t)},aw=function(){let e=Array.prototype.slice.call(arguments);return e.unshift({}),Object.assign(...e)},ow=function(e,...t){var r=new Set(t);for(let a=e.length-1;a>=0;a--)r.has(e[a])&&e.splice(a,1)},iw=function(e){return e?e[0].toUpperCase()+e.substr(1):""},Xi=function(e,t){return Ji(t)?Object.keys(t).every(r=>Xi(e[r],t[r])):e==t},sw=function(e){let t=Or(e);return a=>Xi(a,t)},lw={transform:Rr.camelCaseTransformMerge},uw=function(e,t){return(r,a)=>e(r,Object.assign({},lw,t,a))};var Qi={each:sa,forEach:sa,forIn:sa,keys:Object.keys,clone:XC,cloneDeep:Or,extend:Object.assign,isString:QC,isArray:ew,isObject:Ji,isPlainObject:rw,isEmpty:tw,filter:nw,reduce:JC,assign:aw,upperFirst:iw,camelCase:uw(Rr.camelCase),snakeCase:Rr.snakeCase,kebabCase:Rr.paramCase,pull:ow,matches:sw},Dr=Qi;function es(e,t,r){if(e==null)return{};var a,o,i,s,l,u,c=e[0]||{},d=1,v=e.length;for(r=r||[],typeof c!="object"&&(c={});d<v;d++)if((l=e[d])!=null){for(s in l)if(!!l.hasOwnProperty(s)&&s!=="__proto__"&&(a=c[s],i=l[s],c!==i))if(i&&(Dr.isPlainObject(i)||(o=Dr.isArray(i)))){o?(o=!1,u=a&&Dr.isArray(a)?a:[]):u=a&&Dr.isPlainObject(a)?a:{};var f=r.slice(0);f.push(s),c[s]=es([u,i],t,f)}else i!==void 0&&(a!=null&&typeof t=="function"&&t({target:c,copy:l,path:r,key:s}),c[s]=i)}return c}var cw=es,ts=Qi;function rs(e,t){t=t||[];for(var r in e)e.hasOwnProperty(r)&&(ts.isPlainObject(e[r])&&"value"in e[r]?t.push(e[r]):ts.isPlainObject(e[r])&&rs(e[r],t));return t}var ns=rs;function dw(e,t,r,a){var o=-1,i=e==null?0:e.length;for(a&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}var fw=dw;function vw(e){return function(t){return e==null?void 0:e[t]}}var pw=vw,mw=pw,hw={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},gw=mw(hw),yw=gw,bw=yw,Cw=Mn,ww=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Sw="\\u0300-\\u036f",_w="\\ufe20-\\ufe2f",xw="\\u20d0-\\u20ff",Ew=Sw+_w+xw,Aw="["+Ew+"]",Iw=RegExp(Aw,"g");function Nw(e){return e=Cw(e),e&&e.replace(ww,bw).replace(Iw,"")}var Pw=Nw,Tw=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function $w(e){return e.match(Tw)||[]}var kw=$w,Bw=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Fw(e){return Bw.test(e)}var Rw=Fw,as="\\ud800-\\udfff",Ow="\\u0300-\\u036f",Dw="\\ufe20-\\ufe2f",Vw="\\u20d0-\\u20ff",Uw=Ow+Dw+Vw,os="\\u2700-\\u27bf",is="a-z\\xdf-\\xf6\\xf8-\\xff",Mw="\\xac\\xb1\\xd7\\xf7",Lw="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",zw="\\u2000-\\u206f",jw=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ss="A-Z\\xc0-\\xd6\\xd8-\\xde",Gw="\\ufe0e\\ufe0f",ls=Mw+Lw+zw+jw,us="['\u2019]",cs="["+ls+"]",Ww="["+Uw+"]",ds="\\d+",Hw="["+os+"]",fs="["+is+"]",vs="[^"+as+ls+ds+os+is+ss+"]",Kw="\\ud83c[\\udffb-\\udfff]",qw="(?:"+Ww+"|"+Kw+")",Yw="[^"+as+"]",ps="(?:\\ud83c[\\udde6-\\uddff]){2}",ms="[\\ud800-\\udbff][\\udc00-\\udfff]",Et="["+ss+"]",Zw="\\u200d",hs="(?:"+fs+"|"+vs+")",Jw="(?:"+Et+"|"+vs+")",gs="(?:"+us+"(?:d|ll|m|re|s|t|ve))?",ys="(?:"+us+"(?:D|LL|M|RE|S|T|VE))?",bs=qw+"?",Cs="["+Gw+"]?",Xw="(?:"+Zw+"(?:"+[Yw,ps,ms].join("|")+")"+Cs+bs+")*",Qw="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",eS="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",tS=Cs+bs+Xw,rS="(?:"+[Hw,ps,ms].join("|")+")"+tS,nS=RegExp([Et+"?"+fs+"+"+gs+"(?="+[cs,Et,"$"].join("|")+")",Jw+"+"+ys+"(?="+[cs,Et+hs,"$"].join("|")+")",Et+"?"+hs+"+"+gs,Et+"+"+ys,eS,Qw,ds,rS].join("|"),"g");function aS(e){return e.match(nS)||[]}var oS=aS,iS=kw,sS=Rw,lS=Mn,uS=oS;function cS(e,t,r){return e=lS(e),t=r?void 0:t,t===void 0?sS(e)?uS(e):iS(e):e.match(t)||[]}var dS=cS,fS=fw,vS=Pw,pS=dS,mS="['\u2019]",hS=RegExp(mS,"g");function gS(e){return function(t){return fS(pS(vS(t).replace(hS,"")),e,"")}}var yS=gS,bS=yS,CS=bS(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),wS=CS;const SS={opening_character:"{",closing_character:"}",separator:"."};var _S=SS;const xS=_S;function ES(e={}){const t=Object.assign({},xS,e);return new RegExp("\\"+t.opening_character+"([^"+t.closing_character+"]+)\\"+t.closing_character,"g")}var AS=ES;const IS=AS;function ws(e,t={}){const r=t instanceof RegExp?t:IS(t);if(typeof e=="string")return r.test(e);if(typeof e=="object"){let a=!1;for(const o in e)if(e.hasOwnProperty(o)){const i=e[o];if(ws(i,t)){a=!0;break}}return a}return!1}var NS=ws,PS=Object.defineProperty,TS=Object.defineProperties,$S=Object.getOwnPropertyDescriptors,Vr=Object.getOwnPropertySymbols,Ss=Object.prototype.hasOwnProperty,_s=Object.prototype.propertyIsEnumerable,xs=(e,t,r)=>t in e?PS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,le=(e,t)=>{for(var r in t||(t={}))Ss.call(t,r)&&xs(e,r,t[r]);if(Vr)for(var r of Vr(t))_s.call(t,r)&&xs(e,r,t[r]);return e},Wt=(e,t)=>TS(e,$S(t)),Es=(e,t)=>{var r={};for(var a in e)Ss.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&Vr)for(var a of Vr(e))t.indexOf(a)<0&&_s.call(e,a)&&(r[a]=e[a]);return r},kS=(e,t)=>()=>(e&&(t=e(e=0)),t),j=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),E=kS(()=>{}),BS=j((e,t)=>{E(),t.exports={alignItems:{value:"center"},justifyContent:{value:"space-between"},color:{value:"{colors.font.primary.value}"},backgroundColor:{value:"{colors.background.tertiary.value}"},paddingBlock:{value:"{space.small.value}"},paddingInline:{value:"{space.medium.value}"},icon:{size:{value:"{fontSizes.xl.value}"}},heading:{fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"}},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.info.value}"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.error.value}"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.warning.value}"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.success.value}"}}}}),FS=j((e,t)=>{E(),t.exports={color:{value:"{colors.font.primary.value}"},lineHeight:{value:1},fontWeight:{value:"{fontWeights.semibold.value}"},fontSize:{value:"{fontSizes.small.value}"},textAlign:{value:"center"},paddingVertical:{value:"{space.xs.value}"},paddingHorizontal:{value:"{space.small.value}"},backgroundColor:{value:"{colors.background.tertiary.value}"},borderRadius:{value:"{radii.xl.value}"},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.info.value}"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.warning.value}"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.success.value}"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.error.value}"}},small:{fontSize:{value:"{fontSizes.xs.value}"},paddingVertical:{value:"{space.xxs.value}"},paddingHorizontal:{value:"{space.xs.value}"}},large:{fontSize:{value:"{fontSizes.medium.value}"},paddingVertical:{value:"{space.small.value}"},paddingHorizontal:{value:"{space.medium.value}"}}}}),RS=j((e,t)=>{E(),t.exports={fontWeight:{value:"{fontWeights.bold.value}"},transitionDuration:{value:"{components.fieldcontrol.transitionDuration.value}"},fontSize:{value:"{components.fieldcontrol.fontSize.value}"},lineHeight:{value:"{components.fieldcontrol.lineHeight.value}"},paddingBlockStart:{value:"{components.fieldcontrol.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.paddingInlineEnd.value}"},borderColor:{value:"{components.fieldcontrol.borderColor.value}"},borderWidth:{value:"{components.fieldcontrol.borderWidth.value}"},borderStyle:{value:"{components.fieldcontrol.borderStyle.value}"},borderRadius:{value:"{components.fieldcontrol.borderRadius.value}"},color:{value:"{colors.font.primary.value}"},_hover:{color:{value:"{colors.font.focus.value}"},backgroundColor:{value:"{colors.brand.primary.10.value}"},borderColor:{value:"{colors.brand.primary.60.value}"}},_focus:{color:{value:"{colors.font.focus.value}"},backgroundColor:{value:"{colors.brand.primary.10.value}"},borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{color:{value:"{colors.font.active.value}"},backgroundColor:{value:"{colors.brand.primary.20.value}"},borderColor:{value:"{colors.brand.primary.100.value}"}},_loading:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"}},_disabled:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"}},primary:{borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},backgroundColor:{value:"{colors.brand.primary.80.value}"},color:{value:"{colors.font.inverse.value}"},_disabled:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_loading:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.100.value}"},color:{value:"{colors.font.inverse.value}"}}},menu:{borderWidth:{value:0},backgroundColor:{value:"transparent"},justifyContent:{value:"start"},_hover:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.brand.primary.80.value}"}},_focus:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.brand.primary.80.value}"}},_active:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.brand.primary.90.value}"}},_disabled:{color:{value:"{colors.font.disabled.value}"}}},link:{borderWidth:{value:0},borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.interactive.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.10.value}"},color:{value:"{colors.font.hover.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.10.value}"},color:{value:"{colors.font.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.20.value}"},color:{value:"{colors.font.active.value}"}},_disabled:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled.value}"}},_loading:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled.value}"}}},small:{fontSize:{value:"{components.fieldcontrol.small.fontSize.value}"},paddingBlockStart:{value:"{components.fieldcontrol.small.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.small.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.small.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.small.paddingInlineEnd.value}"}},large:{fontSize:{value:"{components.fieldcontrol.large.fontSize.value}"},paddingBlockStart:{value:"{components.fieldcontrol.large.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.large.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.large.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.large.paddingInlineEnd.value}"}},loaderWrapper:{alignItems:{value:"center"},gap:{value:"{space.xs.value}"}}}}),OS=j((e,t)=>{E(),t.exports={backgroundColor:{value:"{colors.background.primary.value}"},borderRadius:{value:"{radii.xs.value}"},borderWidth:{value:"0"},borderStyle:{value:"solid"},borderColor:{value:"transparent"},boxShadow:{value:"none"},padding:{value:"{space.medium.value}"},outlined:{backgroundColor:{value:"{components.card.backgroundColor.value}"},borderRadius:{value:"{radii.xs.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},boxShadow:{value:"{components.card.boxShadow.value}"}},elevated:{backgroundColor:{value:"{components.card.backgroundColor.value}"},borderRadius:{value:"{radii.xs.value}"},borderWidth:{value:"0"},borderStyle:{value:"solid"},borderColor:{value:"transparent"},boxShadow:{value:"{shadows.medium.value}"}}}}),DS=j((e,t)=>{E(),t.exports={cursor:{value:"pointer"},alignItems:{value:"center"},_disabled:{cursor:{value:"not-allowed"}},button:{position:{value:"relative"},alignItems:{value:"center"},justifyContent:{value:"center"},color:{value:"{colors.white.value}"},before:{width:{value:"100%"},height:{value:"100%"},borderWidth:{value:"{borderWidths.medium.value}"},borderRadius:{value:"20%"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"}},_focus:{outlineColor:{value:"{colors.transparent.value}"},outlineStyle:{value:"solid"},outlineWidth:{value:"{outlineWidths.medium.value}"},outlineOffset:{value:"{outlineOffsets.medium.value}"},borderColor:{value:"{colors.transparent.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.border.focus.value}"}}},_disabled:{borderColor:{value:"{colors.border.disabled.value}"}},_error:{borderColor:{value:"{colors.border.error.value}"},_focus:{borderColor:{value:"{colors.transparent.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.border.error.value}"}}}}},icon:{backgroundColor:{value:"{colors.brand.primary.80.value}"},borderRadius:{value:"20%"},opacity:{value:"{opacities.0.value}"},transform:{value:"scale(0)"},transitionProperty:{value:"all"},transitionDuration:{value:"{time.short.value}"},transitionTimingFunction:{value:"ease-in-out"},_checked:{opacity:{value:"{opacities.100.value}"},transform:{value:"scale(1)"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"}}}},label:{_disabled:{color:{value:"{colors.font.disabled.value}"}}}}}),VS=j((e,t)=>{E(),t.exports={alignItems:{value:"flex-start"},alignContent:{value:"center"},flexDirection:{value:"column"},justifyContent:{value:"center"}}}),US=j((e,t)=>{E(),t.exports={height:{value:"100%"}}}),MS=j((e,t)=>{E(),t.exports={borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},borderWidth:{value:"{borderWidths.medium.value}"},small:{borderWidth:{value:"{borderWidths.small.value}"}},large:{borderWidth:{value:"{borderWidths.large.value}"}},opacity:{value:"{opacities.60.value}"}}}),LS=j((e,t)=>{E(),t.exports={display:{value:"block"},backgroundColor:{value:"{colors.white.value}"},borderRadius:{value:"{radii.medium.value}"},boxShadow:{value:"{shadows.large.value}"},width:{value:"100%"},item:{marginTop:{value:"1px"},boxShadow:{value:"{shadows.small.value}"},borderBottomLeftRadius:{value:"{radii.medium.value}"},borderBottomRightRadius:{value:"{radii.medium.value}"},borderTopLeftRadius:{value:"{radii.medium.value}"},borderTopRightRadius:{value:"{radii.medium.value}"},borderStartStartRadius:{value:"{radii.medium.value}"},borderStartEndRadius:{value:"{radii.medium.value}"},borderEndStartRadius:{value:"{radii.medium.value}"},borderEndEndRadius:{value:"{radii.medium.value}"},_focus:{boxShadow:{value:{offsetX:"0",offsetY:"0",blurRadius:"0",spreadRadius:"2px",color:"{colors.border.focus.value}"}}}},header:{boxShadow:{value:{offsetX:"0",offsetY:"1px",blurRadius:"0",color:"{colors.overlay.20.value}"}}},trigger:{minHeight:{value:"3rem"},paddingInlineStart:{value:"{space.large.value}"},paddingInlineEnd:{value:"{space.large.value}"},alignItems:{value:"center"},justifyContent:{value:"space-between"},_hover:{backgroundColor:{value:"{colors.overlay.10.value}"}}},content:{paddingInlineStart:{value:"{space.large.value}"},paddingInlineEnd:{value:"{space.large.value}"},text:{color:{value:"{colors.font.secondary.value}"},paddingBlockStart:{value:"{space.medium.value}"},paddingBlockEnd:{value:"{space.medium.value}"}},_open:{animationDuration:{value:"{time.medium.value}"},animationTimingFunction:{value:"cubic-bezier(0.87, 0, 0.13, 1)"}},_closed:{animationDuration:{value:"{time.medium.value}"},animationTimingFunction:{value:"cubic-bezier(0.87, 0, 0.13, 1)"}}},icon:{transitionDuration:{value:"{time.medium.value}"},transitionTimingFunction:{value:"cubic-bezier(0.87, 0, 0.13, 1)"}}}}),zS=j((e,t)=>{E(),t.exports={gap:{value:"{space.xs.value}"},fontSize:{value:"{fontSizes.medium.value}"},small:{gap:{value:"{space.xxxs.value}"},fontSize:{value:"{fontSizes.small.value}"}},large:{gap:{value:"{space.small.value}"},fontSize:{value:"{fontSizes.large.value}"}},label:{color:{value:"{colors.font.secondary.value}"}}}}),jS=j((e,t)=>{E(),t.exports={borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderRadius:{value:"{radii.small.value}"},color:{value:"{colors.font.primary.value}"},paddingBlockStart:{value:"{space.xs.value}"},paddingBlockEnd:{value:"{space.xs.value}"},paddingInlineStart:{value:"{space.medium.value}"},paddingInlineEnd:{value:"{space.medium.value}"},fontSize:{value:"{components.field.fontSize.value}"},lineHeight:{value:"{lineHeights.medium.value}"},transitionDuration:{value:"{time.medium.value}"},outlineColor:{value:"{colors.transparent.value}"},outlineStyle:{value:"solid"},outlineWidth:{value:"{outlineWidths.medium.value}"},outlineOffset:{value:"{outlineOffsets.medium.value}"},small:{fontSize:{value:"{components.field.small.fontSize.value}"},paddingBlockStart:{value:"{space.xxs.value}"},paddingBlockEnd:{value:"{space.xxs.value}"},paddingInlineStart:{value:"{space.small.value}"},paddingInlineEnd:{value:"{space.small.value}"}},large:{fontSize:{value:"{components.field.large.fontSize.value}"},paddingBlockStart:{value:"{space.xs.value}"},paddingBlockEnd:{value:"{space.xs.value}"},paddingInlineStart:{value:"{space.medium.value}"},paddingInlineEnd:{value:"{space.medium.value}"}},quiet:{borderStyle:{value:"none"},borderBlockEnd:{value:"{borderWidths.small.value} solid {colors.border.primary.value}"},borderInlineStart:{value:"none"},borderInlineEnd:{value:"none"},borderBlockStart:{value:"none"},borderRadius:{value:"0"},_focus:{borderBlockEndColor:{value:"{colors.border.focus.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"1px",color:"{colors.border.focus.value}"}}},_error:{borderBlockEndColor:{value:"{colors.border.error.value}"},_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"1px",color:"{colors.border.error.value}"}}}}},_focus:{borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.border.focus.value}"}}},_disabled:{color:{value:"{colors.font.disabled.value}"},cursor:{value:"not-allowed"},borderColor:{value:"{colors.transparent.value}"},backgroundColor:{value:"{colors.background.disabled.value}"}},_error:{borderColor:{value:"{colors.border.error.value}"},_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.border.error.value}"}}}}}}),GS=j((e,t)=>{E(),t.exports={gap:{value:0},vertical:{alignItems:{value:"center"}},outer:{alignItems:{value:"center"}}}}),WS=j((e,t)=>{E(),t.exports={error:{color:{value:"{colors.font.error.value}"},fontSize:{value:"{fontSizes.small.value}"}},description:{color:{value:"{colors.font.secondary.value}"},fontStyle:{value:"italic"},fontSize:{value:"{fontSizes.small.value}"}}}}),HS=j((e,t)=>{E(),t.exports={gap:{value:"{space.medium.value}"},justifyContent:{value:"normal"},alignItems:{value:"stretch"},alignContent:{value:"normal"},flexWrap:{value:"nowrap"}}}),KS=j((e,t)=>{E(),t.exports={color:{value:"{colors.font.primary.value}"},lineHeight:{value:"{lineHeights.small.value}"},1:{fontSize:{value:"{fontSizes.xxxxl.value}"},fontWeight:{value:"{fontWeights.light.value}"}},2:{fontSize:{value:"{fontSizes.xxxl.value}"},fontWeight:{value:"{fontWeights.normal.value}"}},3:{fontSize:{value:"{fontSizes.xxl.value}"},fontWeight:{value:"{fontWeights.medium.value}"}},4:{fontSize:{value:"{fontSizes.xl.value}"},fontWeight:{value:"{fontWeights.semibold.value}"}},5:{fontSize:{value:"{fontSizes.large.value}"},fontWeight:{value:"{fontWeights.bold.value}"}},6:{fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.extrabold.value}"}}}}),qS=j((e,t)=>{E(),t.exports={lineHeight:{value:1},height:{value:"1em"}}}),YS=j((e,t)=>{E(),t.exports={maxWidth:{value:"100%"},height:{value:"auto"},objectFit:{value:"initial"},objectPosition:{value:"initial"}}}),ZS=j((e,t)=>{E(),t.exports={active:{color:{value:"{colors.font.active.value}"}},color:{value:"{colors.font.interactive.value}"},focus:{color:{value:"{colors.font.focus.value}"}},hover:{color:{value:"{colors.font.hover.value}"}},large:{fontSize:{value:"{fontSizes.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"}},visited:{color:{value:"{colors.font.interactive.value}"}}}}),JS=j((e,t)=>{E(),t.exports={width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"},strokeEmpty:{value:"{colors.neutral.20.value}"},strokeFilled:{value:"{colors.brand.primary.80.value}"},strokeLinecap:{value:"round"},animationDuration:{value:"1s"},small:{width:{value:"{fontSizes.small.value}"},height:{value:"{fontSizes.small.value}"}},large:{width:{value:"{fontSizes.large.value}"},height:{value:"{fontSizes.large.value}"}},linear:{width:{value:"100%"},minWidth:{value:"5rem"},height:{value:"{fontSizes.medium.value}"},strokeWidth:{value:"{fontSizes.medium.value}"},strokeFilled:{value:"{colors.brand.primary.80.value}"},strokeEmpty:{value:"{colors.neutral.20.value}"},strokeLinecap:{value:"round"},animationDuration:{value:"1s"},small:{height:{value:"{fontSizes.small.value}"},strokeWidth:{value:"{fontSizes.small.value}"}},large:{height:{value:"{fontSizes.large.value}"},strokeWidth:{value:"{fontSizes.large.value}"}}}}}),XS=j((e,t)=>{E(),t.exports={backgroundColor:{value:"{colors.white.value}"},borderRadius:{value:"{radii.medium.value}"},boxShadow:{value:"{shadows.large.value}"},flexDirection:{value:"column"},gap:{value:0},maxWidth:{value:"30rem"},minWidth:{value:"14rem"},small:{width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"}},large:{width:{value:"{fontSizes.xxxl.value}"},height:{value:"{fontSizes.xxxl.value}"}},item:{minHeight:{value:"2.5rem"},paddingInlineStart:{value:"{space.medium.value}"},paddingInlineEnd:{value:"{space.medium.value}"}}}}),QS=j((e,t)=>{E(),t.exports={current:{alignItems:{value:"center"},justifyContent:{value:"center"},color:{value:"{colors.white.value}"},fontSize:{value:"{fontSizes.small.value}"},backgroundColor:{value:"{colors.overlay.40.value}"}},button:{color:{value:"{colors.font.primary.value}"},paddingInlineStart:{value:"{space.xxs.value}"},paddingInlineEnd:{value:"{space.xxs.value}"},transitionProperty:{value:"background-color"},transitionDuration:{value:"{time.medium.value}"},hover:{backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.font.primary.value}"}},disabled:{color:{value:"{colors.font.disabled.value}"}}},ellipsis:{alignItems:{value:"baseline"},justifyContent:{value:"center"},paddingInlineStart:{value:"{space.xs.value}"},paddingInlineEnd:{value:"{space.xs.value}"}},itemContainer:{marginLeft:{value:"{space.xxxs.value}"},marginRight:{value:"{space.xxxs.value}"}},itemShared:{height:{value:"{fontSizes.xxl.value}"},minWidth:{value:"{fontSizes.xxl.value}"},borderRadius:{value:"{fontSizes.medium.value}"}}}}),e_=j((e,t)=>{E(),t.exports={}}),t_=j((e,t)=>{E(),t.exports={borderRadius:{value:"{radii.small.value}"},transitionDuration:{value:"{time.long.value}"},startColor:{value:"{colors.background.secondary.value}"},endColor:{value:"{colors.background.tertiary.value}"},small:{height:{value:"{space.small.value}"}},default:{height:{value:"{space.medium.value}"}},large:{height:{value:"{space.large.value}"}}}}),r_=j((e,t)=>{E(),t.exports={alignItems:{value:"center"},justifyContent:{value:"flex-start"},gap:{value:"inherit"},_disabled:{cursor:{value:"not-allowed"}},button:{alignItems:{value:"center"},justifyContent:{value:"center"},width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"},boxSizing:{value:"border-box"},borderWidth:{value:"{borderWidths.medium.value}"},borderStyle:{value:"solid"},borderRadius:{value:"50%"},borderColor:{value:"{colors.border.primary.value}"},color:{value:"{colors.white.value}"},backgroundColor:{value:"{colors.white.value}"},transitionProperty:{value:"all"},transitionDuration:{value:"{time.medium.value}"},outlineColor:{value:"{colors.transparent.value}"},outlineStyle:{value:"solid"},outlineWidth:{value:"{outlineWidths.medium.value}"},outlineOffset:{value:"{outlineOffsets.medium.value}"},padding:{value:"{borderWidths.medium.value}"},small:{width:{value:"{fontSizes.small.value}"},height:{value:"{fontSizes.small.value}"}},large:{width:{value:"{fontSizes.large.value}"},height:{value:"{fontSizes.large.value}"}},_checked:{color:{value:"{colors.brand.primary.80.value}"},_disabled:{color:{value:"{colors.background.disabled.value}"}}},_focus:{borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_error:{borderColor:{value:"{colors.border.error.value}"},_focus:{boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}}},_disabled:{borderColor:{value:"{colors.border.disabled.value}"},backgroundColor:{value:"{colors.background.primary.value}"}}},label:{_disabled:{color:{value:"{colors.font.disabled.value}"}}}}}),n_=j((e,t)=>{E(),t.exports={large:{size:{value:"{fontSizes.xxxl.value}"}},default:{size:{value:"{fontSizes.xl.value}"}},small:{size:{value:"{fontSizes.small.value}"}},filled:{color:{value:"{colors.brand.secondary.80.value}"}},empty:{color:{value:"{colors.background.tertiary.value}"}}}}),a_=j((e,t)=>{E(),t.exports={paddingInlineEnd:{value:"{space.xxl.value}"},wrapper:{flex:{value:"1"},display:{value:"block"},position:{value:"relative"},cursor:{value:"pointer"}},iconWrapper:{alignItems:{value:"center"},position:{value:"absolute"},top:{value:"50%"},right:{value:"{space.medium.value}"},transform:{value:"translateY(-50%)"},pointerEvents:{value:"none"}},option:{backgroundColor:{value:"{colors.background.primary.value}"}},whiteSpace:{value:"nowrap"},minWidth:{value:"6.5rem"},small:{minWidth:{value:"5.5rem"}},large:{minWidth:{value:"7.5rem"}}}}),o_=j((e,t)=>{E(),t.exports={flexDirection:{value:"column"}}}),i_=j((e,t)=>{E(),t.exports={paddingBlock:{value:"{space.xs.value}"},track:{backgroundColor:{value:"{colors.background.tertiary.value}"},borderRadius:{value:"9999px"},height:{value:"0.375rem"},minWidth:{value:"10rem"}},range:{backgroundColor:{value:"{colors.brand.primary.80.value}"},borderRadius:{value:"9999px"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"}}},thumb:{width:{value:"1.25rem"},height:{value:"1.25rem"},backgroundColor:{value:"{colors.background.primary.value}"},boxShadow:{value:"{shadows.small.value}"},borderRadius:{value:"50%"},borderWidth:{value:"{borderWidths.small.value}"},borderColor:{value:"{colors.border.primary.value}"},borderStyle:{value:"solid"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"},borderColor:{value:"transparent"},boxShadow:{value:"none"}},_hover:{backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.focus.value}"}},_focus:{boxShadow:{value:{offsetX:"0",offsetY:"0",blurRadius:"0",spreadRadius:"3px",color:"{colors.border.focus.value}"}}}},small:{track:{height:{value:"0.25rem"}},thumb:{width:{value:"1rem"},height:{value:"1rem"}}},large:{track:{height:{value:"0.625rem"}},thumb:{width:{value:"1.5rem"},height:{value:"1.5rem"}}}}}),s_=j((e,t)=>{E(),t.exports={flexDirection:{value:"column"},input:{textAlign:{value:"center"}}}}),l_=j((e,t)=>{E(),t.exports={disabled:{opacity:{value:"{opacities.60.value}"}},focused:{shadow:{value:"{shadows.small.value}"}},large:{fontSize:{value:"{fontSizes.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"}},label:{padding:{value:"{space.xs.value}"}},thumb:{backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.tertiary.value}"},borderRadius:{value:"{radii.xxxl.value}"},checked:{transform:{value:"{transforms.slideX.medium.value}"}},transition:{duration:{value:"{time.medium.value}"}},width:{value:"{space.relative.medium.value}"}},track:{backgroundColor:{value:"{colors.background.tertiary.value}"},borderRadius:{value:"{radii.xxxl.value}"},checked:{backgroundColor:{value:"{colors.brand.primary.60.value}"}},height:{value:"{space.relative.medium.value}"},padding:{value:"{outlineWidths.medium.value}"},transition:{duration:{value:"{time.short.value}"}},width:{value:"{space.relative.xl.value}"}}}}),u_=j((e,t)=>{E(),t.exports={borderCollapse:{value:"collapse"},display:{value:"table"},width:{value:"100%"},head:{display:{value:"table-header-group"},verticalAlign:{value:"middle"}},body:{display:{value:"table-row-group"},verticalAlign:{value:"middle"}},foot:{display:{value:"table-footer-group"},verticalAlign:{value:"middle"}},row:{display:{value:"table-row"},verticalAlign:{value:"middle"},hover:{backgroundColor:{value:"{colors.background.tertiary.value}"}},striped:{backgroundColor:{value:"{colors.background.secondary.value}"}}},header:{borderColor:{value:"{colors.border.tertiary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small.value}"},color:{value:"{colors.font.primary.value}"},display:{value:"table-cell"},fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"},padding:{value:"{space.medium.value}"},verticalAlign:{value:"middle"},large:{fontSize:{value:"{fontSizes.large.value}"},padding:{value:"{space.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"},padding:{value:"{space.xs.value}"}}},data:{borderColor:{value:"{colors.border.tertiary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small.value}"},color:{value:"{colors.font.primary.value}"},display:{value:"table-cell"},fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.normal.value}"},padding:{value:"{space.medium.value}"},verticalAlign:{value:"middle"},large:{fontSize:{value:"{fontSizes.large.value}"},padding:{value:"{space.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"},padding:{value:"{space.xs.value}"}}},caption:{captionSide:{value:"bottom"},color:{value:"{colors.font.primary.value}"},display:{value:"table-caption"},fontSize:{value:"{fontSizes.medium.value}"},textAlign:{value:"center"},wordBreak:{value:"break-all"},large:{fontSize:{value:"{fontSizes.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"}}}}}),c_=j((e,t)=>{E(),t.exports={backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.secondary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.medium.value}"},gap:{value:"0"},item:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.secondary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.medium.value}"},color:{value:"{colors.font.secondary.value}"},fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"},paddingVertical:{value:"{space.small.value}"},paddingHorizontal:{value:"{space.medium.value}"},textAlign:{value:"center"},transitionDuration:{value:"{time.medium.value}"},_hover:{color:{value:"{colors.font.hover.value}"}},_focus:{color:{value:"{colors.font.focus.value}"}},_active:{color:{value:"{colors.font.interactive.value}"},borderColor:{value:"{colors.font.interactive.value}"},backgroundColor:{value:"transparent"}},_disabled:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"}}}}}),d_=j((e,t)=>{E(),t.exports={color:{value:"{colors.font.primary.value}"},primary:{color:{value:"{colors.font.primary.value}"}},secondary:{color:{value:"{colors.font.secondary.value}"}},tertiary:{color:{value:"{colors.font.tertiary.value}"}},error:{color:{value:"{colors.font.error.value}"}},warning:{color:{value:"{colors.font.warning.value}"}},success:{color:{value:"{colors.font.success.value}"}},info:{color:{value:"{colors.font.info.value}"}}}}),f_=j((e,t)=>{E(),t.exports={borderColor:{value:"{colors.border.primary.value}"},color:{value:"{colors.overlay.50.value}"},_hover:{backgroundColor:{value:"{colors.overlay.10.value}"}},_focus:{borderColor:{value:"{colors.border.focus.value}"},color:{value:"{colors.overlay.50.value}"}},_active:{backgroundColor:{value:"{colors.transparent.value}"}},_disabled:{backgroundColor:{value:"{colors.transparent.value}"},borderColor:{value:"{colors.border.secondary.value}"},color:{value:"{colors.font.disabled.value}"}},_pressed:{color:{value:"{colors.font.primary.value}"},backgroundColor:{value:"{colors.overlay.20.value}"},_hover:{backgroundColor:{value:"{colors.overlay.30.value}"}}},primary:{backgroundColor:{value:"{colors.transparent.value}"},borderWidth:{value:"{borderWidths.small.value}"},_focus:{borderColor:{value:"{colors.border.focus.value}"},backgroundColor:{value:"{colors.transparent.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"},color:{value:"{colors.overlay.50.value}"}},_hover:{backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.overlay.50.value}"}},_disabled:{backgroundColor:{value:"{colors.background.tertiary.value}"},color:{value:"{colors.font.disabled.value}"}},_pressed:{backgroundColor:{value:"{colors.brand.primary.80.value}"},borderColor:{value:"{colors.brand.primary.80.value}"},color:{value:"{colors.white.value}"},_focus:{backgroundColor:{value:"{colors.border.focus.value}"},borderColor:{value:"{colors.border.focus.value}"}},_hover:{borderColor:{value:"{colors.brand.primary.60.value}"},backgroundColor:{value:"{colors.brand.primary.60.value}"}}}},link:{color:{value:"{colors.overlay.50.value}"},_hover:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.50.value}"}},_focus:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.50.value}"}},_disabled:{color:{value:"{colors.font.disabled.value}"}},_pressed:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.90.value}"},_hover:{backgroundColor:{value:"{colors.transparent.value}"}}}}}}),v_=j((e,t)=>{E(),t.exports={alignItems:{value:"center"},alignContent:{value:"center"},justifyContent:{value:"flex-start"}}}),p_=j((e,t)=>{E(),t.exports={alert:BS(),badge:FS(),button:RS(),card:OS(),checkbox:DS(),checkboxfield:VS(),countrycodeselect:US(),divider:MS(),expander:LS(),field:zS(),fieldcontrol:jS(),fieldgroup:GS(),fieldmessages:WS(),flex:HS(),heading:KS(),icon:qS(),image:YS(),link:ZS(),loader:JS(),menu:XS(),pagination:QS(),phonenumberfield:e_(),placeholder:t_(),radio:r_(),rating:n_(),select:a_(),selectfield:o_(),sliderfield:i_(),stepperfield:s_(),switchfield:l_(),table:u_(),tabs:c_(),text:d_(),togglebutton:f_(),togglebuttongroup:v_()}});E();E();E();E();E();var As=(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",e))(As||{}),la=["username","email","phone_number"];E();var ge={birthdate:{label:"Birthdate",placeholder:"Birthdate",type:"date",autocomplete:"bday"},confirmation_code:{label:"Confirmation Code",placeholder:"Code",type:"text",autocomplete:"one-time-code"},email:{label:"Email",type:"email",placeholder:"Email",autocomplete:"username"},family_name:{label:"Family Name",placeholder:"Family Name",type:"text",autocomplete:"family-name"},given_name:{label:"Given Name",placeholder:"Given Name",type:"text",autocomplete:"given-name"},middle_name:{label:"Middle Name",placeholder:"Middle Name",type:"text",autocomplete:"additional-name"},name:{label:"Name",placeholder:"Name",type:"text",autocomplete:"name"},nickname:{label:"Nickname",placeholder:"Nickname",type:"text",autocomplete:"tel"},password:{label:"Password",placeholder:"Password",type:"password",autocomplete:"password"},phone_number:{label:"Phone Number",placeholder:"Phone",type:"tel",autocomplete:"tel"},preferred_username:{label:"Preferred Username",placeholder:"Preferred Username",type:"text"},profile:{label:"Profile",placeholder:"Profile",type:"url",autocomplete:"url"},website:{label:"Website",placeholder:"Website",type:"url",autocomplete:"url"},username:{label:"Username",type:"text",placeholder:"Username",autocomplete:"username"}},Is=(e=>(e.Apple="SignInWithApple",e.Amazon="LoginWithAmazon",e.Facebook="Facebook",e.Google="Google",e))(Is||{}),Ns=(e,t)=>{var r,a,o,i,s;let l=(r=e.config)==null?void 0:r.loginMechanisms,u=(o=(a=e.actorRef)==null?void 0:a.context)==null?void 0:o.validationError.username;if(la.includes(t))return{label:ge[t].label,type:ge[t].type,error:u};let c="text",d=l.filter(v=>$d(la,v)).map(v=>{var f,p;return(p=(f=ge[v])==null?void 0:f.label)!=null?p:ge.username.label}).join(" or ");return l.length===1&&(c=(s=(i=ge[l[0]])==null?void 0:i.type)!=null?s:"text"),{label:d,type:c,error:u}},Ie=e=>{var t;return(t=e.context.actorRef)==null?void 0:t.getSnapshot()},Ht=e=>{var t;return(t=Ie(e))==null?void 0:t.context},m_=e=>{let t=r=>a=>e({type:r,data:a});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")}},h_=e=>{var t,r;let a=(t=e.context)==null?void 0:t.user,o=Ie(e),i=Ht(e),s=i==null?void 0:i.remoteError,l=le({},i==null?void 0:i.validationError),u=i==null?void 0:i.codeDeliveryDetails,c=Object.keys(l).length>0,d=e.hasTag("pending")||((r=Ie(e))==null?void 0:r.hasTag("pending")),v=(()=>{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(o==null?void 0:o.matches("confirmSignUp")):return"confirmSignUp";case(o==null?void 0:o.matches("confirmSignIn")):return"confirmSignIn";case(o==null?void 0:o.matches("setupTOTP")):return"setupTOTP";case(o==null?void 0:o.matches("signIn")):return"signIn";case(o==null?void 0:o.matches("signUp")):return"signUp";case(o==null?void 0:o.matches("forceNewPassword")):return"forceNewPassword";case(o==null?void 0:o.matches("resetPassword")):return"resetPassword";case(o==null?void 0:o.matches("confirmResetPassword")):return"confirmResetPassword";case(o==null?void 0:o.matches("verifyUser")):return"verifyUser";case(o==null?void 0:o.matches("confirmVerifyUser")):return"confirmVerifyUser";default:return console.debug("Cannot infer `route` from Authenticator state:",e.value),null}})();return{error:s,hasValidationErrors:c,isPending:d,route:v,user:a,validationErrors:l,codeDeliveryDetails:u}},Ps=({send:e,state:t})=>{let r=m_(e),a=h_(t);return le(le({},r),a)},g_=e=>re.Hub.listen("auth",t=>{switch(t.payload.event){case"signOut":e("SIGN_OUT");break}});E();E();E();var Ts=["+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"];E();E();E();E();var y_={"Account recovery requires verified contact information":"Zur\xFCcksetzen des Account ben\xF6tigt einen verifizierten Account","An account with the given email already exists.":"Ein Account mit dieser Email existiert bereits.","Back to Sign In":"Zur\xFCck zur Anmeldung","Change Password":"Passwort \xE4ndern",Code:"Code",Confirm:"Best\xE4tigen","Confirm Password":"Passwort best\xE4tigen","Confirm a Code":"Code best\xE4tigen","Confirm Sign In":"Anmeldung best\xE4tigen","Confirm Sign Up":"Registrierung best\xE4tigen","Confirm SMS Code":"SMS-Code best\xE4tigen","Confirm TOTP Code":"TOTP-Code best\xE4tigen","Confirmation Code":"Best\xE4tigungs-Code","Create a new account":"Einen neuen Account erstellen","Create account":"Hier registrieren","Create Account":"Account erstellen","Creating Account":"Account wird erstellt",Email:"Email","Enter your code":"Geben Sie Ihren Code ein","Enter your password":"Geben Sie Ihr Passwort ein","Enter your username":"Geben Sie Ihren Benutzernamen ein","Enter your phone number":"Geben Sie Ihre Telefonnummer ein","Enter your email":"Geben Sie ihre Email ein","Forgot your password?":"Passwort vergessen? ","Forgot Password":"Passwort vergessen","Hide password":"Passwort verbergen","Have an account? ":"Schon registriert? ","Incorrect username or password":"Falscher Benutzername oder falsches Passwort","Invalid password format":"Ung\xFCltiges Passwort-Format","Invalid phone number format":"Ung\xFCltiges Telefonummern-Format. Benutze eine Nummer im Format: +12345678900","Lost your code? ":"Code verloren? ","New Password":"Neues Passwort","No account? ":"Kein Account? ",or:"oder",Password:"Passwort","Password attempts exceeded":"Die maximale Anzahl der fehlerhaften Anmeldeversuche wurde erreicht","Phone Number":"Telefonnummer","Resend Code":"Code erneut senden","Reset password":"Passwort zur\xFCcksetzen","Reset your password":"Zur\xFCcksetzen des Passworts","Send Code":"Code senden","Sign in":"Anmelden","Sign In":"Anmelden","Sign in to your account":"Melden Sie sich mit Ihrem Account an","Sign Out":"Abmelden","Sign Up":"Registrieren",Skip:"\xDCberspringen",Submit:"Abschicken","User already exists":"Dieser Benutzer existiert bereits","User does not exist":"Dieser Benutzer existiert nicht",Username:"Benutzername","Username cannot be empty":"Benutzername darf nicht leer sein",Verify:"Verifizieren","Verify Contact":"Kontakt verifizieren"};E();var b_={"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"};E();var C_={"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"};E();var w_={"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"};E();var S_={"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"};E();var __={"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
83
+ +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"};E();var x_={"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"};E();var E_={"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"};E();var A_={"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"};E();var I_={"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"};E();var N_={"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"};E();var P_={"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"};E();var T_={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"},$_=le({},y_),k_=le({},b_),B_=le({},C_),F_=le({},w_),R_=le({},S_),O_=le({},__),D_=le({},x_),V_=le({},E_),U_=le({},A_),M_=le({},I_),L_=le({},N_),z_=le({},P_),j_=le({},T_);le({},j_);function P(e){return re.I18n.get(e)}function G_(e){return re.I18n.get(e)!==e}var W_={de:$_,en:k_,es:B_,fr:F_,it:R_,ja:O_,kr:D_,nl:V_,pl:U_,pt:M_,zh:L_,sv:z_};E();E();E();var Ur=e=>hv(e),H_=se({attributeToVerify:e=>{}}),K_=se({challengeName:e=>{}}),q_=se({requiredAttributes:e=>{}}),ua=se({remoteError:e=>""}),ca=se({formValues:e=>({})}),da=se({touched:e=>({})}),Y_=se({unverifiedAttributes:e=>{}}),Z_=se({username:e=>{}}),fa=se({validationError:e=>({})}),J_=se({challengeName:(e,t)=>{var r;return(r=t.data)==null?void 0:r.challengeName}}),X_=se({requiredAttributes:(e,t)=>{var r,a;return(a=(r=t.data)==null?void 0:r.challengeParam)==null?void 0:a.requiredAttributes}}),Q_=se({redirectIntent:e=>"confirmPasswordReset"}),e2=se({redirectIntent:e=>"confirmSignUp"}),$s=se({authAttributes:(e,t)=>{var r,a;let[o]=e.loginMechanisms,i=(r=e.formValues[o])!=null?r:e.formValues.username,s=(a=e.formValues)==null?void 0:a.password;return{username:i,password:s}}}),va=se({validationError:(e,t)=>t.data}),pa=se({remoteError:(e,t)=>{var r;return t.data.name==="NoUserPoolError"?"Configuration error (see console) \u2013 please contact the administrator":((r=t.data)==null?void 0:r.message)||t.data}}),t2=se({unverifiedAttributes:(e,t)=>t.data.unverified}),ks=se({user:(e,t)=>t.data.user||t.data}),r2=se({username:(e,t)=>e.formValues.username}),n2=se({codeDeliveryDetails:(e,t)=>t.data.codeDeliveryDetails}),a2=se({authAttributes:(e,t)=>({username:e.formValues.username})}),ma=se({formValues:(e,t)=>{let{name:r,value:a}=t.data;return Wt(le({},e.formValues),{[r]:a})}}),ha=se({touched:(e,t)=>{let{name:r}=t.data;return Wt(le({},e.touched),{[`${r}`]:!0})}}),Bs=se({formValues:(e,t)=>{var r;let[a="username"]=e.loginMechanisms;if(!e.formValues.phone_number&&a!=="phone_number")return e.formValues;let{formValues:o,country_code:i}=e,s=o.phone_number?"phone_number":"username",l=`${(r=o.country_code)!=null?r:i}${o[s]}`.replace(/[^A-Z0-9+]/gi,""),u=Wt(le({},o),{[s]:l});return delete u.country_code,u}});E();E();E();var ga=async(e,t,r)=>{let a=await Promise.all(r.map(i=>i(e,t))),o=wy({},...a);return Kn(o)?Promise.resolve():Promise.reject(o)};E();var ya={async getAmplifyConfig(){return re.Amplify.configure()},async getCurrentUser(){return re.Auth.currentAuthenticatedUser()},async handleSignUp(e){return re.Auth.signUp(e)},async handleSignIn({username:e,password:t}){return re.Auth.signIn(e,t)},async handleConfirmSignIn({user:e,code:t,mfaType:r}){return re.Auth.confirmSignIn(e,t,r)},async handleConfirmSignUp({username:e,code:t}){return await re.Auth.confirmSignUp(e,t)},async handleForgotPasswordSubmit({username:e,code:t,password:r}){return re.Auth.forgotPasswordSubmit(e,t,r)},async handleForgotPassword(e){return re.Auth.forgotPassword(e)},async validateCustomSignUp(e,t){},async validateConfirmPassword(e,t){let{password:r,confirm_password:a}=e,{confirm_password:o,password:i}=t;if(!r&&!a)return null;if((r||a)&&r!==a&&(o&&i||r.length>=6&&a.length>=6))return{confirm_password:"Your passwords must match"}},async validatePreferredUsername(e,t){}};function o2({services:e}){return zt({initial:"init",id:"signInActor",states:{init:{always:[{target:"signIn"}]},signIn:{initial:"edit",exit:["clearFormValues","clearTouched"],states:{edit:{entry:Y(),on:{SUBMIT:"submit",CHANGE:{actions:"handleInput"},FEDERATED_SIGN_IN:"federatedSignIn"}},federatedSignIn:{tags:["pending"],entry:[Y(),"clearError"],invoke:{src:"federatedSignIn",onError:{actions:"setRemoteError"}}},submit:{tags:["pending"],entry:["parsePhoneNumber","clearError",Y()],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",Y()],invoke:{src:"checkVerifiedContact",onDone:[{cond:"shouldRequestVerification",target:"#signInActor.verifyUser",actions:"setUnverifiedAttributes"},{target:"resolved"}],onError:{actions:"setRemoteError",target:"edit"}}},resolved:{always:"#signInActor.resolved"},rejected:{always:"#signInActor.rejected"}}},confirmSignIn:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:Y(),on:{SUBMIT:"submit",SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:["clearError",Y()],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:Y()},invalid:{entry:Y()}},on:{SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submit:{initial:"idle",entry:"clearError",states:{idle:{entry:Y(),on:{SUBMIT:"validate"}},validate:{entry:Y(),invoke:{src:"validateFields",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},pending:{tags:["pending"],entry:[Y(),"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:Y(),on:{SUBMIT:"submit",SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:[Y(),"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:Y(),on:{SUBMIT:"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:Y(),on:{SUBMIT:"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:t=>({user:t.user})},rejected:{type:"final",data:(t,r)=>({intent:t.redirectIntent,authAttributes:t.authAttributes})}}},{actions:{clearAttributeToVerify:H_,clearChallengeName:K_,clearRequiredAttributes:q_,clearError:ua,clearFormValues:ca,clearTouched:da,clearUnverifiedAttributes:Y_,clearValidationError:fa,handleInput:ma,handleBlur:ha,parsePhoneNumber:Bs,setChallengeName:J_,setConfirmResetPasswordIntent:Q_,setConfirmSignUpIntent:e2,setRequiredAttributes:X_,setCredentials:$s,setFieldErrors:va,setRemoteError:pa,setUnverifiedAttributes:t2,setUser:ks,setUsernameAuthAttributes:a2},guards:{shouldConfirmSignIn:(t,r)=>{let a=Ae(r,"data.challengeName");return["SMS_MFA","SOFTWARE_TOKEN_MFA"].includes(a)},shouldRedirectToConfirmSignUp:(t,r)=>r.data.code==="UserNotConfirmedException",shouldRedirectToConfirmResetPassword:(t,r)=>r.data.code==="PasswordResetRequiredException",shouldSetupTOTP:(t,r)=>Ae(r,"data.challengeName")==="MFA_SETUP",shouldForceChangePassword:(t,r)=>Ae(r,"data.challengeName")==="NEW_PASSWORD_REQUIRED",shouldRequestVerification:(t,r)=>{let{unverified:a,verified:o}=r.data;return Kn(o)&&!Kn(a)}},services:{async signIn(t){let{username:r,password:a}=t.formValues;return await e.handleSignIn({username:r,password:a})},async confirmSignIn(t,r){let{challengeName:a,user:o}=t,{confirmation_code:i}=t.formValues,s;return(a==="SMS_MFA"||a==="SOFTWARE_TOKEN_MFA")&&(s=a),await e.handleConfirmSignIn({user:o,code:i,mfaType:s}),await re.Auth.currentAuthenticatedUser()},async forceNewPassword(t,r){let{user:a,formValues:o}=t,i=o,{password:s,confirm_password:l,phone_number:u,country_code:c}=i,d=Es(i,["password","confirm_password","phone_number","country_code"]),v;return u&&(v=`${c}${u}`.replace(/[^A-Z0-9+]/gi,""),d=Wt(le({},d),{phone_number:v})),re.Auth.completeNewPassword(a,s,d)},async verifyTotpToken(t,r){let{user:a}=t,{confirmation_code:o}=t.formValues;return re.Auth.verifyTotpToken(a,o)},async federatedSignIn(t,r){let{provider:a}=r.data;return await re.Auth.federatedSignIn({provider:a})},async checkVerifiedContact(t,r){let{user:a}=t;return await re.Auth.verifiedContact(a)},async verifyUser(t,r){let{unverifiedAttr:a}=t.formValues,o=await re.Auth.verifyCurrentUserAttribute(a);return t.attributeToVerify=a,o},async confirmVerifyUser(t,r){let{attributeToVerify:a}=t,{confirmation_code:o}=t.formValues;return await re.Auth.verifyCurrentUserAttributeSubmit(a,o)},async validateFields(t,r){return ga(t.formValues,t.touched,[ya.validateConfirmPassword])}}})}E();var i2=zt({initial:"pending",id:"signOutActor",states:{pending:{tags:["pending"],invoke:{src:"signOut",onDone:"resolved",onError:"rejected"}},resolved:{type:"final"},rejected:{type:"final"}}},{services:{signOut:()=>re.Auth.signOut()}});E();function s2({services:e}){return zt({id:"resetPasswordActor",initial:"init",states:{init:{always:[{target:"confirmResetPassword",cond:"shouldAutoConfirmReset"},{target:"resetPassword"}]},resetPassword:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:Y(),on:{SUBMIT:"submit",CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},submit:{tags:["pending"],entry:[Y(),"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:Y()},invalid:{entry:Y()}},on:{CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:Y(),on:{SUBMIT:"validate",RESEND:"resendCode",CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},validate:{entry:Y(),invoke:{src:"validateFields",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},resendCode:{tags:["pending"],entry:["clearError",Y()],invoke:{src:"resetPassword",onDone:{target:"idle"},onError:{actions:"setRemoteError",target:"idle"}}},pending:{tags:["pending"],entry:["clearError",Y()],invoke:{src:"confirmResetPassword",onDone:{actions:"clearUsername",target:"#resetPasswordActor.resolved"},onError:{actions:"setRemoteError",target:"idle"}}}}}}},resolved:{type:"final"}}},{actions:{clearError:ua,clearFormValues:ca,clearTouched:da,clearUsername:Z_,clearValidationError:fa,handleInput:ma,handleBlur:ha,setFieldErrors:va,setRemoteError:pa,setUsername:r2},guards:{shouldAutoConfirmReset:(t,r)=>!!(t.intent&&t.intent==="confirmPasswordReset")},services:{async resetPassword(t){var r,a;let o=(a=(r=t.formValues)==null?void 0:r.username)!=null?a:t.username;return e.handleForgotPassword(o)},async confirmResetPassword(t){let{username:r}=t,{confirmation_code:a,password:o}=t.formValues;return e.handleForgotPasswordSubmit({username:r,code:a,password:o})},async validateFields(t,r){return ga(t.formValues,t.touched,[ya.validateConfirmPassword])}}})}E();function l2({services:e}){return zt({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:Y()},invalid:{entry:Y()}},on:{CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:Y(),on:{SUBMIT:"validate",FEDERATED_SIGN_IN:"federatedSignIn"}},federatedSignIn:{tags:["pending"],entry:[Y(),"clearError"],invoke:{src:"federatedSignIn",onDone:"#signUpActor.resolved",onError:{actions:"setRemoteError"}}},validate:{entry:Y(),invoke:{src:"validateSignUp",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},pending:{tags:["pending"],entry:["parsePhoneNumber",Y(),"clearError"],invoke:{src:"signUp",onDone:[{cond:"shouldSkipConfirm",target:"skipConfirm",actions:["setUser"]},{target:"resolved",actions:["setUser","setCredentials","setCodeDeliveryDetails"]}],onError:{target:"idle",actions:"setRemoteError"}}},skipConfirm:{invoke:{src:"signIn",onDone:{target:"#signUpActor.resolved",actions:"setUser"},onError:{target:"idle",actions:"setRemoteError"}}},resolved:{type:"final",always:"#signUpActor.confirmSignUp"}}}}},confirmSignUp:{initial:"edit",states:{edit:{entry:Y(),on:{SUBMIT:"submit",CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"},RESEND:"resend"}},resend:{tags:["pending"],entry:Y(),invoke:{src:"resendConfirmationCode",onDone:{target:"edit"},onError:[{target:"#signUpActor.resolved",actions:"setUser",cond:"isUserAlreadyConfirmed"},{target:"edit",actions:"setRemoteError"}]}},submit:{tags:["pending"],entry:[Y(),"clearError"],invoke:{src:"confirmSignUp",onDone:{target:"#signUpActor.resolved",actions:["setUser"]},onError:{target:"edit",actions:"setRemoteError"}}}}},resolved:{type:"final",data:(t,r)=>{let{username:a,password:o}=t.authAttributes;return{user:Ae(r,"data.user")||t.user,authAttributes:{username:a,password:o}}}}}},{guards:{isUserAlreadyConfirmed:(t,r)=>r.data.message==="User is already confirmed.",shouldInitConfirmSignUp:t=>t.intent&&t.intent==="confirmSignUp",shouldSkipConfirm:(t,r)=>r.data.userConfirmed},actions:{clearError:ua,clearFormValues:ca,clearTouched:da,clearValidationError:fa,handleInput:ma,handleBlur:ha,parsePhoneNumber:Bs,setCredentials:$s,setFieldErrors:va,setRemoteError:pa,setCodeDeliveryDetails:n2,setUser:ks},services:{async signIn(t,r){let{user:a,authAttributes:o,formValues:i}=t,s=Ae(a,"username")||Ae(o,"username"),l=Ae(i,"password");return await re.Auth.signIn(s,l)},async confirmSignUp(t,r){let{user:a,authAttributes:o,formValues:i}=t,{confirmation_code:s}=i,l=Ae(a,"username")||Ae(o,"username"),{password:u}=o;return await e.handleConfirmSignUp({username:l,code:s}),await re.Auth.signIn(l,u)},async resendConfirmationCode(t,r){let{user:a,authAttributes:o}=t,i=Ae(a,"username")||Ae(o,"username");return re.Auth.resendSignUp(i)},async federatedSignIn(t,r){let{provider:a}=r.data;return await re.Auth.federatedSignIn({provider:a})},async signUp(t,r){let{formValues:a,loginMechanisms:o}=t,[i="username"]=o,{[i]:s,password:l}=a,u=SC(a,(c,d)=>{switch(d){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 d.startsWith("custom:")}});return await e.handleSignUp({username:s,password:l,attributes:u})},async validateSignUp(t,r){return ga(t.formValues,t.touched,[e.validateConfirmPassword,e.validatePreferredUsername,e.validateCustomSignUp])}}})}var Fs="+1";function u2(){return zt({id:"authenticator",initial:"idle",context:{user:void 0,config:{},services:{},actorRef:void 0},states:{idle:{on:{INIT:{target:"setup",actions:"configure"}}},setup:{invoke:[{src:(e,t)=>e.services.getCurrentUser(),onDone:{actions:"setUser",target:"authenticated"},onError:[{target:"signUp",cond:e=>e.config.initialState==="signUp"},{target:"resetPassword",cond:e=>e.config.initialState==="resetPassword"},{target:"signIn"}]},{src:(e,t)=>e.services.getAmplifyConfig(),onDone:{actions:"applyAmplifyConfig"}}]},signIn:{entry:"spawnSignInActor",exit:Ur("signInActor"),on:{SIGN_UP:"signUp",RESET_PASSWORD:"resetPassword","done.invoke.signInActor":[{target:"signUp",cond:"shouldRedirectToSignUp"},{target:"resetPassword",cond:"shouldRedirectToResetPassword"},{target:"authenticated",actions:"setUser"}]}},signUp:{entry:"spawnSignUpActor",exit:Ur("signUpActor"),on:{SIGN_IN:"signIn","done.invoke.signUpActor":{target:"setup",actions:"setUser"}}},resetPassword:{entry:"spawnResetPasswordActor",exit:Ur("resetPasswordActor"),on:{SIGN_IN:"signIn","done.invoke.resetPasswordActor":"signIn"}},signOut:{entry:"spawnSignOutActor",exit:[Ur("signOutActor"),"clearUser"],on:{"done.invoke.signOutActor":"signIn"}},authenticated:{on:{SIGN_OUT:"signOut"}}},on:{CHANGE:{actions:"forwardToActor"},BLUR:{actions:"forwardToActor"},SUBMIT:{actions:"forwardToActor"},FEDERATED_SIGN_IN:{actions:"forwardToActor"},RESEND:{actions:"forwardToActor"},SIGN_OUT:{actions:"forwardToActor"},SIGN_IN:{actions:"forwardToActor"},SKIP:{actions:"forwardToActor"}}},{actions:{forwardToActor:af(e=>e.actorRef),setUser:qe({user:(e,t)=>t.data.user||t.data}),clearUser:qe({user:void 0}),applyAmplifyConfig:qe({config(e,t){var r,a,o,i,s,l,u,c;let d=(a=(r=t.data.aws_cognito_username_attributes)==null?void 0:r.map(g=>g.toLowerCase()))!=null?a:[],v=(i=(o=t.data.aws_cognito_verification_mechanisms)==null?void 0:o.map(g=>g.toLowerCase()))!=null?i:[],f=(l=(s=t.data.aws_cognito_signup_attributes)==null?void 0:s.map(g=>g.toLowerCase()))!=null?l:[],p=(c=(u=t.data.aws_cognito_social_providers)==null?void 0:u.map(g=>g.toLowerCase()))!=null?c:[];d.length===0&&d.push("username");let{loginMechanisms:m,signUpAttributes:h,socialProviders:C,initialState:b}=e.config;return{loginMechanisms:m!=null?m:d,signUpAttributes:h!=null?h:Array.from(new Set([...v,...f])),socialProviders:C!=null?C:p.sort(),initialState:b}}}),spawnSignInActor:qe({actorRef:(e,t)=>{var r,a,o,i,s;let{services:l}=e,u=o2({services:l}).withContext({authAttributes:(r=t.data)==null?void 0:r.authAttributes,user:(a=t.data)==null?void 0:a.user,intent:(o=t.data)==null?void 0:o.intent,country_code:Fs,formValues:{},touched:{},validationError:{},loginMechanisms:(i=e.config)==null?void 0:i.loginMechanisms,socialProviders:(s=e.config)==null?void 0:s.socialProviders});return xr(u,{name:"signInActor"})}}),spawnSignUpActor:qe({actorRef:(e,t)=>{var r,a,o,i,s;let{services:l}=e,u=l2({services:l}).withContext({authAttributes:(a=(r=t.data)==null?void 0:r.authAttributes)!=null?a:{},country_code:Fs,intent:(o=t.data)==null?void 0:o.intent,formValues:{},touched:{},validationError:{},loginMechanisms:(i=e.config)==null?void 0:i.loginMechanisms,socialProviders:(s=e.config)==null?void 0:s.socialProviders});return xr(u,{name:"signUpActor"})}}),spawnResetPasswordActor:qe({actorRef:(e,t)=>{var r,a,o;let{services:i}=e,s=s2({services:i}).withContext({formValues:{},touched:{},intent:(r=t.data)==null?void 0:r.intent,username:(o=(a=t.data)==null?void 0:a.authAttributes)==null?void 0:o.username,validationError:{}});return xr(s,{name:"resetPasswordActor"})}}),spawnSignOutActor:qe({actorRef:e=>{let t=i2.withContext({user:e.user});return xr(t,{name:"signOutActor"})}}),configure:qe((e,t)=>{let r=t.data,{services:a}=r,o=Es(r,["services"]);return{services:le(le({},ya),a),config:o}})},guards:{shouldRedirectToSignUp:(e,t)=>{var r;return((r=t.data)==null?void 0:r.intent)?t.data.intent==="confirmSignUp":!1},shouldRedirectToResetPassword:(e,t)=>{var r;return((r=t.data)==null?void 0:r.intent)?t.data.intent==="confirmPasswordReset":!1}}})}E();E();E();E();E();var c2={small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}};E();var d2={red:{10:{value:"hsl(0, 75%, 95%)"},20:{value:"hsl(0, 75%, 85%)"},40:{value:"hsl(0, 75%, 75%)"},60:{value:"hsl(0, 50%, 50%)"},80:{value:"hsl(0, 95%, 30%)"},90:{value:"hsl(0, 100%, 20%)"},100:{value:"hsl(0, 100%, 15%)"}},orange:{10:{value:"hsl(30, 75%, 95%)"},20:{value:"hsl(30, 75%, 85%)"},40:{value:"hsl(30, 75%, 75%)"},60:{value:"hsl(30, 50%, 50%)"},80:{value:"hsl(30, 95%, 30%)"},90:{value:"hsl(30, 100%, 20%)"},100:{value:"hsl(30, 100%, 15%)"}},yellow:{10:{value:"hsl(60, 75%, 95%)"},20:{value:"hsl(60, 75%, 85%)"},40:{value:"hsl(60, 75%, 75%)"},60:{value:"hsl(60, 50%, 50%)"},80:{value:"hsl(60, 95%, 30%)"},90:{value:"hsl(60, 100%, 20%)"},100:{value:"hsl(60, 100%, 15%)"}},green:{10:{value:"hsl(130, 60%, 95%)"},20:{value:"hsl(130, 60%, 90%)"},40:{value:"hsl(130, 44%, 63%)"},60:{value:"hsl(130, 43%, 46%)"},80:{value:"hsl(130, 33%, 37%)"},90:{value:"hsl(130, 27%, 29%)"},100:{value:"hsl(130, 22%, 23%)"}},teal:{10:{value:"hsl(190, 75%, 95%)"},20:{value:"hsl(190, 75%, 85%)"},40:{value:"hsl(190, 70%, 70%)"},60:{value:"hsl(190, 50%, 50%)"},80:{value:"hsl(190, 95%, 30%)"},90:{value:"hsl(190, 100%, 20%)"},100:{value:"hsl(190, 100%, 15%)"}},blue:{10:{value:"hsl(220, 95%, 95%)"},20:{value:"hsl(220, 85%, 85%)"},40:{value:"hsl(220, 70%, 70%)"},60:{value:"hsl(220, 50%, 50%)"},80:{value:"hsl(220, 95%, 30%)"},90:{value:"hsl(220, 100%, 20%)"},100:{value:"hsl(220, 100%, 15%)"}},purple:{10:{value:"hsl(300, 95%, 95%)"},20:{value:"hsl(300, 85%, 85%)"},40:{value:"hsl(300, 70%, 70%)"},60:{value:"hsl(300, 50%, 50%)"},80:{value:"hsl(300, 95%, 30%)"},90:{value:"hsl(300, 100%, 20%)"},100:{value:"hsl(300, 100%, 15%)"}},pink:{10:{value:"hsl(340, 95%, 95%)"},20:{value:"hsl(340, 90%, 85%)"},40:{value:"hsl(340, 70%, 70%)"},60:{value:"hsl(340, 50%, 50%)"},80:{value:"hsl(340, 95%, 30%)"},90:{value:"hsl(340, 100%, 20%)"},100:{value:"hsl(340, 100%, 15%)"}},neutral:{10:{value:"hsl(210, 5%, 98%)"},20:{value:"hsl(210, 5%, 94%)"},40:{value:"hsl(210, 5%, 87%)"},60:{value:"hsl(210, 6%, 70%)"},80:{value:"hsl(210, 10%, 40%)"},90:{value:"hsl(210, 25%, 25%)"},100:{value:"hsl(210, 50%, 10%)"}},brand:{primary:{10:{value:"{colors.teal.10.value}"},20:{value:"{colors.teal.20.value}"},40:{value:"{colors.teal.40.value}"},60:{value:"{colors.teal.60.value}"},80:{value:"{colors.teal.80.value}"},90:{value:"{colors.teal.90.value}"},100:{value:"{colors.teal.100.value}"}},secondary:{10:{value:"{colors.purple.10.value}"},20:{value:"{colors.purple.20.value}"},40:{value:"{colors.purple.40.value}"},60:{value:"{colors.purple.60.value}"},80:{value:"{colors.purple.80.value}"},90:{value:"{colors.purple.90.value}"},100:{value:"{colors.purple.100.value}"}}},font:{primary:{value:"{colors.neutral.100.value}"},secondary:{value:"{colors.neutral.90.value}"},tertiary:{value:"{colors.neutral.80.value}"},disabled:{value:"{colors.font.tertiary.value}"},inverse:{value:"{colors.white.value}"},interactive:{value:"{colors.brand.primary.80.value}"},hover:{value:"{colors.brand.primary.90.value}"},focus:{value:"{colors.brand.primary.100.value}"},active:{value:"{colors.brand.primary.100.value}"},info:{value:"{colors.blue.90.value}"},warning:{value:"{colors.orange.90.value}"},error:{value:"{colors.red.90.value}"},success:{value:"{colors.green.90.value}"}},background:{primary:{value:"{colors.white.value}"},secondary:{value:"{colors.neutral.10.value}"},tertiary:{value:"{colors.neutral.20.value}"},disabled:{value:"{colors.background.tertiary.value}"},info:{value:"{colors.blue.20.value}"},warning:{value:"{colors.orange.20.value}"},error:{value:"{colors.red.20.value}"},success:{value:"{colors.green.20.value}"}},border:{primary:{value:"{colors.neutral.60.value}"},secondary:{value:"{colors.neutral.40.value}"},tertiary:{value:"{colors.neutral.20.value}"},disabled:{value:"{colors.border.tertiary.value}"},focus:{value:"{colors.brand.primary.100.value}"},error:{value:"{colors.red.80.value}"}},shadow:{primary:{value:"hsla(210, 50%, 10%, 0.25)"},secondary:{value:"hsla(210, 50%, 10%, 0.15)"},tertiary:{value:"hsla(210, 50%, 10%, 0.05)"}},overlay:{10:{value:"hsla(0, 0%, 0%, 0.1)"},20:{value:"hsla(0, 0%, 0%, 0.2)"},30:{value:"hsla(0, 0%, 0%, 0.3)"},40:{value:"hsla(0, 0%, 0%, 0.4)"},50:{value:"hsla(0, 0%, 0%, 0.5)"},60:{value:"hsla(0, 0%, 0%, 0.6)"},70:{value:"hsla(0, 0%, 0%, 0.7)"},80:{value:"hsla(0, 0%, 0%, 0.8)"},90:{value:"hsla(0, 0%, 0%, 0.9)"}},black:{value:"hsl(0, 0%, 0%)"},white:{value:"hsl(0, 0%, 100%)"},transparent:{value:"transparent"}};E();var f2={default:{variable:{value:`'InterVariable', 'Inter var', 'Inter', -apple-system, BlinkMacSystemFont,
84
84
  'Helvetica Neue', 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans',
85
85
  sans-serif`},static:{value:`'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue',
86
- 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif`}}};E();var e2={xxxs:{value:"0.375rem"},xxs:{value:"0.5rem"},xs:{value:"0.75rem"},small:{value:"0.875rem"},medium:{value:"1rem"},large:{value:"1.25rem"},xl:{value:"1.5rem"},xxl:{value:"2rem"},xxxl:{value:"2.5rem"},xxxxl:{value:"3rem"}};E();var t2={hairline:{value:100},thin:{value:200},light:{value:300},normal:{value:400},medium:{value:500},semibold:{value:600},bold:{value:700},extrabold:{value:800},black:{value:900}};E();var r2={small:{value:"1.25"},medium:{value:"1.5"},large:{value:"2"}};E();var n2={0:{value:"0"},10:{value:"0.1"},20:{value:"0.2"},30:{value:"0.3"},40:{value:"0.4"},50:{value:"0.5"},60:{value:"0.6"},70:{value:"0.7"},80:{value:"0.8"},90:{value:"0.9"},100:{value:"1"}};E();var a2={small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}};E();var o2={small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}};E();var i2={xs:{value:"0.125rem"},small:{value:"0.25rem"},medium:{value:"0.5rem"},large:{value:"1rem"},xl:{value:"2rem"},xxl:{value:"4rem"},xxxl:{value:"8rem"}};E();var s2={small:{value:{offsetX:"0px",offsetY:"2px",blurRadius:"4px",color:"{colors.shadow.tertiary.value}"}},medium:{value:{offsetX:"0px",offsetY:"2px",blurRadius:"6px",color:"{colors.shadow.secondary.value}"}},large:{value:{offsetX:"0px",offsetY:"4px",blurRadius:"12px",color:"{colors.shadow.primary.value}"}}};E();var l2={xxxs:{value:"0.25rem"},xxs:{value:"0.375rem"},xs:{value:"0.5rem"},small:{value:"0.75rem"},medium:{value:"1rem"},large:{value:"1.5rem"},xl:{value:"2.0rem"},xxl:{value:"3.0rem"},xxxl:{value:"4.5rem"},relative:{xxxs:{value:"0.25em"},xxs:{value:"0.375rem"},xs:{value:"0.5em"},small:{value:"0.75em"},medium:{value:"1em"},large:{value:"1.5em"},xl:{value:"2.0em"},xxl:{value:"3.0em"},xxxl:{value:"4.5em"}}};E();var u2={short:{value:"100ms"},medium:{value:"250ms"},long:{value:"500ms"}};E();var c2={slideX:{small:{value:"translateX(0.5em)"},medium:{value:"translateX(1em)"},large:{value:"translateX(2em)"}}},d2={components:pS(),borderWidths:JS,colors:XS,fonts:QS,fontSizes:e2,fontWeights:t2,lineHeights:r2,opacities:n2,outlineOffsets:a2,outlineWidths:o2,radii:i2,shadows:s2,space:l2,time:u2,transforms:c2};E();var f2={values:{base:0,small:480,medium:768,large:992,xl:1280,xxl:1536},defaultBreakpoint:"base"},Rs={tokens:d2,breakpoints:f2,name:"base-theme"};E();var v2="amplify";function At(e){if(N_(e)){let t=e.replace(/\{|\}/g,"").replace(".value","").split(".");return`var(--${Ds({path:t})})`}return e}function p2(e){let{value:t}=e;if(typeof t=="string")return At(t);if(typeof t=="object"&&"offsetX"in t){let{offsetX:r="",offsetY:a="",blurRadius:o="",spreadRadius:i="",color:s=""}=t;return[At(r),At(a),At(o),At(i),At(s)].join(" ")}return t}function Ds({path:e=[]}){return`${w_([v2,...e].join(" "))}`}function m2(e,t){let r=`--${Ds({path:t})}`,{value:a}=e;return{name:r,path:t,value:p2(e),original:a,toString:()=>`var(${r})`}}function ba(e,t=[]){let r={};if(e.hasOwnProperty("value"))return m2(e,t);for(let a in e)e.hasOwnProperty(a)&&(r[a]=ba(e[a],t.concat(a)));return r}function h2(e,t=Rs){let r=cw([{},t,e]),a=ba(r.tokens),{breakpoints:o,name:i}=r,s=`[data-amplify-theme="${i}"] {
86
+ 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif`}}};E();var v2={xxxs:{value:"0.375rem"},xxs:{value:"0.5rem"},xs:{value:"0.75rem"},small:{value:"0.875rem"},medium:{value:"1rem"},large:{value:"1.25rem"},xl:{value:"1.5rem"},xxl:{value:"2rem"},xxxl:{value:"2.5rem"},xxxxl:{value:"3rem"}};E();var p2={hairline:{value:100},thin:{value:200},light:{value:300},normal:{value:400},medium:{value:500},semibold:{value:600},bold:{value:700},extrabold:{value:800},black:{value:900}};E();var m2={small:{value:"1.25"},medium:{value:"1.5"},large:{value:"2"}};E();var h2={0:{value:"0"},10:{value:"0.1"},20:{value:"0.2"},30:{value:"0.3"},40:{value:"0.4"},50:{value:"0.5"},60:{value:"0.6"},70:{value:"0.7"},80:{value:"0.8"},90:{value:"0.9"},100:{value:"1"}};E();var g2={small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}};E();var y2={small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}};E();var b2={xs:{value:"0.125rem"},small:{value:"0.25rem"},medium:{value:"0.5rem"},large:{value:"1rem"},xl:{value:"2rem"},xxl:{value:"4rem"},xxxl:{value:"8rem"}};E();var C2={small:{value:{offsetX:"0px",offsetY:"2px",blurRadius:"4px",color:"{colors.shadow.tertiary.value}"}},medium:{value:{offsetX:"0px",offsetY:"2px",blurRadius:"6px",color:"{colors.shadow.secondary.value}"}},large:{value:{offsetX:"0px",offsetY:"4px",blurRadius:"12px",color:"{colors.shadow.primary.value}"}}};E();var w2={xxxs:{value:"0.25rem"},xxs:{value:"0.375rem"},xs:{value:"0.5rem"},small:{value:"0.75rem"},medium:{value:"1rem"},large:{value:"1.5rem"},xl:{value:"2.0rem"},xxl:{value:"3.0rem"},xxxl:{value:"4.5rem"},relative:{xxxs:{value:"0.25em"},xxs:{value:"0.375rem"},xs:{value:"0.5em"},small:{value:"0.75em"},medium:{value:"1em"},large:{value:"1.5em"},xl:{value:"2.0em"},xxl:{value:"3.0em"},xxxl:{value:"4.5em"}}};E();var S2={short:{value:"100ms"},medium:{value:"250ms"},long:{value:"500ms"}};E();var _2={slideX:{small:{value:"translateX(0.5em)"},medium:{value:"translateX(1em)"},large:{value:"translateX(2em)"}}},x2={components:p_(),borderWidths:c2,colors:d2,fonts:f2,fontSizes:v2,fontWeights:p2,lineHeights:m2,opacities:h2,outlineOffsets:g2,outlineWidths:y2,radii:b2,shadows:C2,space:w2,time:S2,transforms:_2};E();var E2={values:{base:0,small:480,medium:768,large:992,xl:1280,xxl:1536},defaultBreakpoint:"base"},Rs={tokens:x2,breakpoints:E2,name:"base-theme"};E();var A2="amplify";function At(e){if(NS(e)){let t=e.replace(/\{|\}/g,"").replace(".value","").split(".");return`var(--${Os({path:t})})`}return e}function I2(e){let{value:t}=e;if(typeof t=="string")return At(t);if(typeof t=="object"&&"offsetX"in t){let{offsetX:r="",offsetY:a="",blurRadius:o="",spreadRadius:i="",color:s=""}=t;return[At(r),At(a),At(o),At(i),At(s)].join(" ")}return t}function Os({path:e=[]}){return`${wS([A2,...e].join(" "))}`}function N2(e,t){let r=`--${Os({path:t})}`,{value:a}=e;return{name:r,path:t,value:I2(e),original:a,toString:()=>`var(${r})`}}function ba(e,t=[]){let r={};if(e.hasOwnProperty("value"))return N2(e,t);for(let a in e)e.hasOwnProperty(a)&&(r[a]=ba(e[a],t.concat(a)));return r}function P2(e,t=Rs){let r=cw([{},t,e]),a=ba(r.tokens),{breakpoints:o,name:i}=r,s=`[data-amplify-theme="${i}"] {
87
87
  `+ns(a).map(u=>`${u.name}: ${u.value};`).join(`
88
88
  `)+`
89
89
  }
@@ -114,11 +114,11 @@ ${d}
114
114
  [data-amplify-theme="${i}"][data-amplify-color-mode="${u.colorMode}"] {
115
115
  ${d}
116
116
  }
117
- `),Wt(le({},u),{tokens:c})})),{tokens:a,breakpoints:o,name:i,cssText:s,overrides:l}}E();E();h2({name:"default-theme"},Rs);const g2={},y2={"data-amplify-label":""};function b2(e,t){return n.openBlock(),n.createElementBlock("label",y2,[n.renderSlot(e.$slots,"default")])}var $e=Bt(g2,[["render",b2]]);const ke=n.defineComponent({emits:["update:modelValue"],setup(e,{emit:t}){const r=a=>{t("update:modelValue",a.target.value)};return(a,o)=>(n.openBlock(),n.createElementBlock("input",{onChange:o[0]||(o[0]=i=>r(i)),"data-amplify-input":""},null,32))}}),C2=["aria-label"],w2={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},_2=n.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),S2=[_2],x2={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},E2=n.createElementVNode("path",{d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z",fill:"none"},null,-1),A2=n.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),I2=[E2,A2];function N2(e){const t=e,r=P("Show password"),a=P("Hide password"),o=n.ref("password"),i=n.ref(r),s=Math.floor(Math.random()*999999),{name:l,label:u,autocomplete:c,ariainvalid:d}=n.toRefs(t);let v=n.ref("");function f(){i.value=i.value===r?a:r,o.value=o.value==="password"?"text":"password"}return(p,m)=>{const h=$e,C=ke,b=pe;return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(h,{class:"amplify-label sr-only",for:"amplify-field-"+n.unref(s)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(u)),1)]),_:1},8,["for"]),n.createVNode(b,{class:"amplify-flex amplify-field-group"},{default:n.withCtx(()=>[n.createVNode(C,n.mergeProps(p.$attrs,{modelValue:n.unref(v),"onUpdate:modelValue":m[0]||(m[0]=g=>n.isRef(v)?v.value=g:v=g),class:"amplify-input amplify-field-group__control","aria-invalid":n.unref(d),id:"amplify-field-"+n.unref(s),"data-amplify-password":"true",name:n.unref(l),autocomplete:n.unref(c),required:"",placeholder:n.unref(u),type:o.value}),null,16,["modelValue","aria-invalid","id","name","autocomplete","placeholder","type"]),n.createVNode(b,{class:"amplify-field-group__outer-end"},{default:n.withCtx(()=>[n.createElementVNode("button",{"aria-label":i.value,class:"amplify-button amplify-field-group__control amplify-field__show-password","data-fullwidth":"false",type:"button",onClick:f},[o.value==="password"?(n.openBlock(),n.createElementBlock("svg",w2,S2)):(n.openBlock(),n.createElementBlock("svg",x2,I2))],8,C2)]),_:1})]),_:1})],64)}}const P2={inheritAttrs:!1},Ge=n.defineComponent(rn(Ne({},P2),{props:{name:String,label:String,autocomplete:String,ariainvalid:Boolean},setup:N2})),T2=["value","selected"],Os=n.defineComponent({props:{selectValue:{default:""},options:null},emits:["update:selectValue"],setup(e,{emit:t}){const{options:r,selectValue:a}=e,o=i=>{t("update:selectValue",i.target.value)};return(i,s)=>(n.openBlock(),n.createElementBlock("select",{onChange:s[0]||(s[0]=l=>o(l))},[(n.openBlock(),n.createElementBlock(n.Fragment,null,n.renderList(r,(l,u)=>n.createElementVNode("option",{key:u,value:l,selected:l==a?!0:void 0},n.toDisplayString(l),9,T2)),64))],32))}});var Mr=globalThis&&globalThis.__assign||function(){return Mr=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Mr.apply(this,arguments)},$2=globalThis&&globalThis.__rest||function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(r[a[o]]=e[a[o]]);return r};function k2(e,t,r){if(typeof e=="object")return e;var a=function(){};return{next:e,error:t||a,complete:r||a}}function B2(e,t,r){t===void 0&&(t={});var a=typeof e=="function"?e():e,o=t.context,i=t.guards,s=t.actions,l=t.activities,u=t.services,c=t.delays,d=t.state,v=$2(t,["context","guards","actions","activities","services","delays","state"]),f={context:o,guards:i,actions:s,activities:l,services:u,delays:c},p=a.withConfig(f,function(){return Mr(Mr({},a.context),o)}),m=Ro(p,v).start(d?Ye.create(d):void 0),h;return n.onMounted(function(){r&&(h=m.subscribe(k2(r)))}),n.onBeforeUnmount(function(){m.stop(),h==null||h.unsubscribe()}),m}function F2(e){return"state"in e}var Vs=function(){};function R2(e){return"getSnapshot"in e?e.getSnapshot():F2(e)?e.state:void 0}function Us(e,t){t===void 0&&(t=R2);var r=n.isRef(e)?e:n.shallowRef(e),a=n.shallowRef(t(r.value)),o=function(i){r.value.send(i)};return n.watch(r,function(i,s,l){a.value=t(i);var u=i.subscribe({next:function(c){return a.value=c},error:Vs,complete:Vs}).unsubscribe;l(function(){return u()})},{immediate:!0}),{state:a,send:o}}const D2=e=>(e==null?void 0:e.length)===1&&e[0]==="username"?[...la]:e,Ms={error:"",hasValidationErrors:!1,isPending:!1,route:"",user:"",validationErrors:{val:""},codeDeliveryDetails:{val:""},change:e=>null,updateForm:e=>null,updateBlur:e=>null,resend:e=>null,resendCode:e=>null,signOut:e=>null,federatedSignIn:e=>null,toFederatedSignIn:e=>null,resetPassword:e=>null,toResetPassword:e=>null,signIn:e=>null,toSignIn:e=>null,signUp:e=>null,toSignUp:e=>null,skip:e=>null,skipVerification:e=>null,submit:e=>null,submitForm:e=>null},Ca=n.ref();let Lr=n.reactive(rn(Ne({},Ms),{send:"",state:""}));const be=e=>(e&&(Ca.value=e),Us(Ca.value)),O2=()=>(Ls(),n.watchEffect(()=>{Ls()}),Lr),Ze=O2;function Ls(){if(!Ca.value)return;const{state:e,send:t}=be(),r=Ps({send:t,state:e.value});for(const a of Object.keys(Ms))Lr[a]=r[a];Lr.send=t,Lr.state=e}const V2=n.createTextVNode(n.toDisplayString("Country Code")),U2=n.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon",viewBox:"0 0 24 24","data-size":"large",fill:"currentColor"},[n.createElementVNode("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})],-1),zr=n.defineComponent({props:{userNameAlias:{type:Boolean,default:!1},userName:{default:""},disabled:{type:Boolean}},setup(e){var m,h,C,b,g;const{userNameAlias:t,userName:r,disabled:a}=e,{state:o}=be(),{value:{context:i}}=o,l=n.computed(()=>Ht(o.value)).value.country_code;let u=n.ref("");r&&(u=n.computed(()=>r));const c=n.computed(()=>Ts),[d]=D2((m=i==null?void 0:i.config)==null?void 0:m.loginMechanisms);let v=d,f=(C=(h=ge[d])==null?void 0:h.label)!=null?C:ge.username.label,p=(g=(b=ge[v])==null?void 0:b.type)!=null?g:ge.username.label;if(t){const w=Ns(i);f=w.label||ge.username.label,p=w.type,v="username"}return f=P(f),(w,_)=>{const S=$e,I=Os,x=pe,N=ke;return n.openBlock(),n.createBlock(x,{class:"amplify-flex amplify-field amplify-textfield amplify-phonenumberfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(S,n.mergeProps({class:"amplify-label sr-only",for:"amplify-field-601d"},w.$attrs),{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(f)),1)]),_:1},16),n.createVNode(x,{class:"amplify-flex amplify-field-group"},{default:n.withCtx(()=>[n.createVNode(x,{class:"amplify-field-group__outer-start"},{default:n.withCtx(()=>[n.unref(p)==="tel"?(n.openBlock(),n.createBlock(x,{key:0,class:"amplify-flex amplify-field amplify-selectfield amplify-countrycodeselect",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(S,{class:"amplify-label sr-only",for:"amplify-field-1177"},{default:n.withCtx(()=>[V2]),_:1}),n.createVNode(x,{class:"amplify-select__wrapper"},{default:n.withCtx(()=>[n.createVNode(I,{class:"amplify-select amplify-field-group__control",id:"amplify-field-1177","aria-label":"country code",name:"country_code",options:n.unref(c),selectValue:n.unref(l)},null,8,["options","selectValue"]),n.createVNode(x,{class:"amplify-flex amplify-select__icon-wrapper",style:{"align-items":"center","justify-content":"center"}},{default:n.withCtx(()=>[U2]),_:1})]),_:1})]),_:1})):n.createCommentVNode("",!0)]),_:1}),n.createVNode(x,{class:"amplify-field-group__field-wrapper"},{default:n.withCtx(()=>[n.createVNode(N,{class:"amplify-input amplify-field-group__control",id:"amplify-field-601d","aria-invalid":"false",textValue:n.unref(u),autocomplete:"username",placeholder:n.unref(f),required:"",name:n.unref(v),disabled:a,type:n.unref(p)},null,8,["textValue","placeholder","name","type"])]),_:1})]),_:1})]),_:1})}}}),jr=n.defineComponent({props:{provider:String},setup(e){const{provider:t}=e,{send:r}=be(),a=o=>{r({type:"FEDERATED_SIGN_IN",data:{provider:t}})};return(o,i)=>{const s=pe,l=we;return n.openBlock(),n.createBlock(l,{class:"amplify-field-group__control federated-sign-in-button","data-fullwidth":"false",style:{"font-weight":"normal"},type:"button",onClick:a},{default:n.withCtx(()=>[n.createVNode(s,{class:"amplify-flex federated-sign-in-button-row",style:{"flex-direction":"row","justify-content":"center","align-items":"center"}},{default:n.withCtx(()=>[n.renderSlot(o.$slots,"default")]),_:3})]),_:3})}}});function M2(e){return n.getCurrentScope()?(n.onScopeDispose(e),!0):!1}function at(e){let t=0,r,a;const o=()=>{t-=1,a&&t<=0&&(a.stop(),r=void 0,a=void 0)};return(...i)=>(t+=1,r||(a=n.effectScope(!0),r=a.run(()=>e(...i))),M2(o),r)}const L2=n.createElementVNode("svg",{"aria-label":"Amazon icon",class:"amplify-icon federated-sign-in-icon",viewBox:"0 0 248 268"},[n.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),z2={class:"amplify-text",style:{"align-self":"center"}},j2=n.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"},[n.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),G2={class:"amplify-text",style:{"align-self":"center"}},W2=n.createElementVNode("svg",{"aria-label":"Facebook icon",class:"amplify-icon federated-sign-in-icon",viewBox:"0 0 279 538"},[n.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),H2={class:"amplify-text",style:{"align-self":"center"}},K2=n.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"},[n.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"}),n.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"}),n.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"}),n.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),q2={class:"amplify-text",style:{"align-self":"center"}},Y2=n.createElementVNode("div",{"data-or-line":""},"or",-1),Z2=n.createElementVNode("hr",{class:"amplify-divider","aria-orientation":"horizontal","data-size":"small"},null,-1),Gr=n.defineComponent({setup(e){var b;const{state:t}=be(),r=at(Ze),{route:a}=r(),{value:{context:o}}=t,i=(b=o==null?void 0:o.config)==null?void 0:b.socialProviders,s=i==null?void 0:i.includes("amazon"),l=i==null?void 0:i.includes("apple"),u=i==null?void 0:i.includes("facebook"),c=i==null?void 0:i.includes("google"),d=u||c||s||l,v=a==="signUp"?"Up":"In",f=n.computed(()=>Is),p=n.computed(()=>P(`Sign ${v} with Amazon`)),m=n.computed(()=>P(`Sign ${v} with Apple`)),h=n.computed(()=>P(`Sign ${v} with Facebook`)),C=n.computed(()=>P(`Sign ${v} with Google`));return(g,w)=>{const _=pe;return n.unref(d)?(n.openBlock(),n.createBlock(_,{key:0,class:"amplify-flex federated-sign-in-container",style:{"flex-direction":"column",padding:"0 0 1rem 0"}},{default:n.withCtx(()=>[n.unref(s)?(n.openBlock(),n.createBlock(jr,{key:0,provider:n.unref(f).Amazon},{default:n.withCtx(()=>[L2,n.createElementVNode("p",z2,n.toDisplayString(n.unref(p)),1)]),_:1},8,["provider"])):n.createCommentVNode("",!0),n.unref(l)?(n.openBlock(),n.createBlock(jr,{key:1,provider:n.unref(f).Apple},{default:n.withCtx(()=>[j2,n.createElementVNode("p",G2,n.toDisplayString(n.unref(m)),1)]),_:1},8,["provider"])):n.createCommentVNode("",!0),n.unref(u)?(n.openBlock(),n.createBlock(jr,{key:2,provider:n.unref(f).Facebook},{default:n.withCtx(()=>[W2,n.createElementVNode("p",H2,n.toDisplayString(n.unref(h)),1)]),_:1},8,["provider"])):n.createCommentVNode("",!0),n.unref(c)?(n.openBlock(),n.createBlock(jr,{key:3,provider:n.unref(f).Google},{default:n.withCtx(()=>[K2,n.createElementVNode("p",q2,n.toDisplayString(n.unref(C)),1)]),_:1},8,["provider"])):n.createCommentVNode("",!0),n.createVNode(_,{class:"amplify-flex","data-or-container":""},{default:n.withCtx(()=>[Y2,Z2]),_:1})]),_:1})):n.createCommentVNode("",!0)}}}),J2={"data-amplify-footer":""},wa=n.defineComponent({emits:["signInSubmit","forgotPasswordClicked","createAccountClicked"],setup(e,{emit:t}){const r=n.useAttrs(),a=n.computed(()=>P("Password")),o=n.computed(()=>kS("Forgot your password? ")?P("Forgot your password? "):P("Forgot your password?")),i=n.computed(()=>P("Sign in")),s=n.computed(()=>P("Signing in")),{state:l,send:u}=be(),c=n.computed(()=>Ie(l.value)),d=m=>{const{name:h,value:C}=m.target;u({type:"CHANGE",data:{name:h,value:C}})},v=m=>{(r==null?void 0:r.onSignInSubmit)?t("signInSubmit",m):f(m)},f=m=>{const h=new FormData(m.target);u({type:"SUBMIT",data:Object.fromEntries(h)})},p=()=>{(r==null?void 0:r.onForgotPasswordClicked)?t("forgotPasswordClicked"):u({type:"RESET_PASSWORD"})};return(m,h)=>{const C=pe,b=Fe,g=Re,w=we,_=De,S=Oe;return n.renderSlot(m.$slots,"signInSlotI",n.normalizeProps(n.guardReactiveProps(m.$attrs)),()=>[n.renderSlot(m.$slots,"header"),n.createVNode(C,n.normalizeProps(n.guardReactiveProps(m.$attrs)),{default:n.withCtx(()=>[n.createVNode(_,{"data-amplify-authenticator-signin":"",onInput:d,onSubmit:n.withModifiers(v,["prevent"]),method:"post"},{formt:n.withCtx(({slotData:I})=>[n.renderSlot(m.$slots,"form",{info:I,onSignInSubmit:v,onInput:d,onForgotPasswordClicked:p})]),default:n.withCtx(()=>[n.createVNode(Gr),n.createVNode(C,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(b,{disabled:n.unref(c).matches("signIn.submit"),class:"amplify-flex",style:{"flex-direction":"column"}},{fieldSetI:n.withCtx(({slotData:I})=>[n.renderSlot(m.$slots,"signin-fields",{info:I})]),default:n.withCtx(()=>[n.createVNode(zr,{userNameAlias:!0}),n.createVNode(C,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield password-field",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(Ge,{name:"password",label:n.unref(a),autocomplete:"current-password",ariainvalid:!1},null,8,["label"])]),_:1})]),_:3},8,["disabled"]),n.unref(c).context.remoteError?(n.openBlock(),n.createBlock(g,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(P)(n.unref(c).context.remoteError)),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(w,{disabled:n.unref(c).matches("signIn.submit"),class:"amplify-field-group__control",fullwidth:!0,"data-loading":"false",variation:"primary",style:{"border-radius":"0x","font-weight":"normal"}},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(c).matches("signIn.submit")?n.unref(s):n.unref(i)),1)]),_:1},8,["disabled"])]),_:3})]),_:3},8,["onSubmit"])]),_:3},16),n.createVNode(S,null,{default:n.withCtx(()=>[n.renderSlot(m.$slots,"footer",{},()=>[n.createElementVNode("div",J2,[n.createVNode(w,{onClick:p,class:"amplify-field-group__control","data-fullwidth":"true","data-size":"small","data-variation":"link",style:{"font-weight":"normal"},type:"button"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(o)),1)]),_:1})])])]),_:3})])}}}),X2=n.createTextVNode(n.toDisplayString("Country Code")),Q2=n.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","data-size":"large",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},[n.createElementVNode("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})],-1),zs=n.defineComponent({props:{label:{default:"Username"},name:{default:"username"},placeholder:{default:""},autocomplete:{default:""}},setup(e){const{label:t,name:r,placeholder:a,autocomplete:o}=e,i=Math.floor(Math.random()*999999),s=Math.floor(Math.random()*999999),{state:l,send:u}=be(),c=n.computed(()=>ge),v=n.computed(()=>Ht(l.value)).value.country_code,f=n.computed(()=>Ts);n.onMounted(()=>{var m;((m=c.value[r])==null?void 0:m.type)==="tel"&&u({type:"CHANGE",data:{name:"country_code",value:v}})});const p=n.computed(()=>{var m;return o||((m=ge[r])==null?void 0:m.autocomplete)||r});return(m,h)=>{const C=$e,b=Os,g=pe,w=ke;return n.openBlock(),n.createBlock(g,{class:"amplify-flex amplify-field amplify-textfield amplify-phonenumberfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(C,n.mergeProps({for:"amplify-field-"+n.unref(i),class:"amplify-label"},m.$attrs),{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(t))]),_:1},16,["for"]),n.createVNode(g,{class:"amplify-flex amplify-field-group"},{default:n.withCtx(()=>[n.createVNode(g,{class:"amplify-field-group__outer-start"},{default:n.withCtx(()=>[r==="phone_number"?(n.openBlock(),n.createBlock(g,{key:0,class:"amplify-flex amplify-field amplify-selectfield amplify-countrycodeselect",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(C,n.mergeProps({for:"amplify-field-"+n.unref(s),class:"amplify-label sr-only"},m.$attrs),{default:n.withCtx(()=>[X2]),_:1},16,["for"]),n.createVNode(g,{class:"amplify-select__wrapper"},{default:n.withCtx(()=>[n.createVNode(b,{class:"amplify-select amplify-field-group__control",id:"amplify-field-"+n.unref(s),autocomplete:"tel-country-code","aria-label":"country code",name:"country_code",options:n.unref(f),"select-value":n.unref(v)},null,8,["id","options","select-value"]),n.createVNode(g,{class:"amplify-flex amplify-select__icon-wrapper",style:{"align-items":"center","justify-content":"center"}},{default:n.withCtx(()=>[Q2]),_:1})]),_:1})]),_:1})):n.createCommentVNode("",!0)]),_:1}),n.createVNode(g,{class:"amplify-field-group__field-wrapper"},{default:n.withCtx(()=>{var _,S;return[n.createVNode(w,{class:"amplify-input amplify-field-group__control","aria-invalid":"false",id:"amplify-field-"+n.unref(i),autocomplete:n.unref(p),name:r,required:"",type:(S=(_=n.unref(c)[r])==null?void 0:_.type)!=null?S:"text",placeholder:a},null,8,["id","autocomplete","type"])]}),_:1})]),_:1})]),_:1})}}}),e3={key:0,role:"alert","data-variation":"error",class:"amplify-text"},_a=n.defineComponent({setup(e){var m,h;const{state:t}=be(),{value:{context:r}}=t,a=at(Ze),{validationErrors:o}=n.toRefs(a()),i=a(),s=n.computed(()=>ge),l=n.computed(()=>P("Password")),u=n.computed(()=>P("Confirm Password"));let c,d=(m=r.config)==null?void 0:m.loginMechanisms,v=(h=r.config)==null?void 0:h.signUpAttributes;c=Array.from(new Set([...d,...v])),c=c.filter(C=>{const b=!!ge[C];return b||console.debug(`Authenticator does not have a default implementation for ${C}. Customize the authenticator sign-up-fields slot to add your own.`),b});function f(C){const{name:b}=C.target;i.updateBlur({name:b})}const p=c.shift();return(C,b)=>{const g=pe;return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(zr,{userName:n.unref(p)},null,8,["userName"]),n.createVNode(g,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield password-field",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(Ge,{name:"password",label:n.unref(l),autocomplete:"new-password",ariainvalid:!!n.unref(o).confirm_password,onBlur:f},null,8,["label","ariainvalid"])]),_:1}),n.createVNode(g,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield password-field",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(Ge,{name:"confirm_password",label:n.unref(u),autocomplete:"new-password",ariainvalid:!!n.unref(o).confirm_password,onBlur:f},null,8,["label","ariainvalid"])]),_:1}),n.unref(o).confirm_password?(n.openBlock(),n.createElementBlock("p",e3,n.toDisplayString(n.unref(P)(n.unref(o).confirm_password)),1)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(c),(w,_)=>(n.openBlock(),n.createBlock(zs,{key:_,label:n.unref(P)(n.unref(s)[w].label),name:w,placeholder:n.unref(P)(n.unref(s)[w].label)},null,8,["label","name","placeholder"]))),128))],64)}}}),Sa=n.defineComponent({emits:["signUpSubmit"],setup(e,{emit:t}){const r=at(Ze),a=r(),o=r(),{hasValidationErrors:i,isPending:s,error:l}=n.toRefs(a),u=n.useAttrs(),c=n.computed(()=>P("Create Account")),d=p=>{let{checked:m,name:h,type:C,value:b}=p.target;C==="checkbox"&&!m&&(b=void 0),o.updateForm({name:h,value:b})},v=p=>{(u==null?void 0:u.onSignUpSubmit)?t("signUpSubmit",p):f()},f=()=>{o.submitForm()};return(p,m)=>{const h=Fe,C=Re,b=we,g=pe,w=De,_=Oe;return n.renderSlot(p.$slots,"signUpSlotI",n.normalizeProps(n.guardReactiveProps(p.$attrs)),()=>[n.renderSlot(p.$slots,"header"),n.createVNode(g,n.normalizeProps(n.guardReactiveProps(p.$attrs)),{default:n.withCtx(()=>[n.createVNode(w,{onInput:d,onSubmit:n.withModifiers(v,["prevent"])},{default:n.withCtx(()=>[n.createVNode(Gr),n.createVNode(g,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(h,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:n.unref(s)},{fieldSetI:n.withCtx(({slotData:S})=>[n.renderSlot(p.$slots,"signup-fields",{info:S})]),default:n.withCtx(()=>[n.createVNode(_a)]),_:3},8,["disabled"]),n.unref(l)?(n.openBlock(),n.createBlock(C,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(P)(n.unref(l))),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(b,{class:"amplify-field-group__control","data-fullwidth":"true","data-loading":"false","data-variation":"primary",style:{"border-radius":"0px","font-weight":"normal"},disabled:n.unref(s)||n.unref(i)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(c)),1)]),_:1},8,["disabled"])]),_:3})]),_:3},8,["onSubmit"])]),_:3},16),n.createVNode(_,null,{default:n.withCtx(()=>[n.renderSlot(p.$slots,"footer")]),_:3})])}}}),t3=n.defineComponent({props:{label:null,id:null,active:{type:Boolean,default:!1}},setup(e){const t=e,{id:r,label:a}=t,{active:o}=n.toRefs(t);return(i,s)=>{const l=pe;return n.openBlock(),n.createBlock(l,{tabindex:n.unref(o)?0:-1,"data-state":n.unref(o)?"active":"inactive","aria-selected":n.unref(o)?"true":"false","aria-controls":`radix-id-${n.unref(r)}-8-content-0`,id:`radix-id-${n.unref(r)}-8-trigger-0`,"data-orientation":"horizontal",role:"tab",class:"amplify-tabs-item","data-spacing":"equal","data-radix-collection-item":""},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(a)),1)]),_:1},8,["tabindex","data-state","aria-selected","aria-controls","id"])}}}),r3={};function n3(e,t){const r=pe;return n.openBlock(),n.createBlock(r,{tabindex:"0","aria-orientation":"horizontal","data-orientation":"horizontal",role:"tablist",style:{outline:"none"}},{default:n.withCtx(()=>[n.createVNode(r,{class:"amplify-flex amplify-tabs","data-indicator-position":"top",style:{gap:"0px","justify-content":"center"}},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3})]),_:3})}var a3=Bt(r3,[["render",n3]]);const Je=n.defineComponent({props:{level:{type:Number,default:1}},inheritAttrs:!1,setup(e,{slots:t,attrs:r}){var i,s;const a=t.default?t.default():[],o=t.headingI?t.headingI():[];if(((s=(i=o[0])==null?void 0:i.children)==null?void 0:s.length)===0)o[0].children=[n.h(`h${e.level}`,Ne({},r),[a])];else return()=>n.h(`h${e.level}`,Ne({"data-amplify-heading":""},r),[o[0]?n.h(o[0].children[0]):n.h(a[0])]);return()=>o}}),o3={};function i3(e,t){return n.renderSlot(e.$slots,"textI",n.normalizeProps(n.guardReactiveProps(e.$attrs)),()=>[n.createElementVNode("span",n.mergeProps(e.$attrs,{"data-amplify-text":""}),[n.renderSlot(e.$slots,"default")],16)])}var js=Bt(o3,[["render",i3]]);const xa=n.defineComponent({emits:["confirmSignUpSubmit","lostCodeClicked"],setup(e,{emit:t}){const r=n.useAttrs(),a=at(Ze),{isPending:o,error:i,codeDeliveryDetails:s}=n.toRefs(a()),{submitForm:l,updateForm:u,resendCode:c}=a(),d=n.computed(()=>{var _,S;return((_=s.value)==null?void 0:_.DeliveryMedium)==="EMAIL"?P("We Emailed You"):((S=s.value)==null?void 0:S.DeliveryMedium)==="SMS"?P("We Texted You"):P("We Sent A Code")}),v=n.computed(()=>P("Enter your code")),f=n.computed(()=>P("Confirmation Code")),p=n.computed(()=>P("Resend Code")),m=n.computed(()=>P("Confirm")),h=n.computed(()=>{var _,S,I,x;return((_=s.value)==null?void 0:_.DeliveryMedium)==="EMAIL"?`Your code is on the way. To log in, enter the code we emailed to ${(S=s.value)==null?void 0:S.Destination}. It may take a minute to arrive.`:((I=s.value)==null?void 0:I.DeliveryMedium)==="SMS"?`Your code is on the way. To log in, enter the code we texted to ${(x=s.value)==null?void 0:x.Destination}. It may take a minute to arrive.`:P("Your code is on the way. To log in, enter the code we sent you. It may take a minute to arrive.")}),C=_=>{const{name:S,value:I}=_.target;u({name:S,value:I})},b=_=>{(r==null?void 0:r.onConfirmSignUpSubmit)?t("confirmSignUpSubmit",_):g()},g=_=>{l()},w=()=>{(r==null?void 0:r.onLostCodeClicked)?t("lostCodeClicked"):c()};return(_,S)=>{const I=Je,x=js,N=$e,k=ke,B=pe,V=Fe,O=Re,L=we,Q=Oe,Be=De;return n.renderSlot(_.$slots,"confirmSignUpSlotI",n.normalizeProps(n.guardReactiveProps(_.$attrs)),()=>[n.createVNode(B,n.normalizeProps(n.guardReactiveProps(_.$attrs)),{default:n.withCtx(()=>[n.createVNode(Be,{onInput:C,onSubmit:n.withModifiers(b,["prevent"])},{default:n.withCtx(()=>[n.createVNode(B,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.renderSlot(_.$slots,"header",{},()=>[n.createVNode(I,{class:"amplify-heading",style:{"font-size":"1.5rem"},level:3},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)]),_:1})]),n.createVNode(x,{style:{"margin-bottom":"1rem"}},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(h)),1)]),_:1}),n.createVNode(V,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:n.unref(o)},{default:n.withCtx(()=>[n.createVNode(B,{class:"amplify-flex amplify-field amplify-textfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(N,{class:"sr-only amplify-label",for:"amplify-field-124b"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(f)),1)]),_:1}),n.createVNode(B,{class:"amplify-flex"},{default:n.withCtx(()=>[n.createVNode(k,{class:"amplify-input amplify-field-group__control",id:"amplify-field-124b","aria-invalid":"false",autocomplete:"one-time-code",name:"confirmation_code",required:"",placeholder:n.unref(v)},null,8,["placeholder"])]),_:1})]),_:1})]),_:1},8,["disabled"]),n.createVNode(Q,{class:"amplify-flex",style:{"flex-direction":"column","align-items":"unset"}},{default:n.withCtx(()=>[n.unref(i)?(n.openBlock(),n.createBlock(O,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(P)(n.unref(i))),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(L,{class:"amplify-field-group__control","data-fullwidth":"false","data-loading":"false","data-variation":"primary",type:"submit",style:{"font-weight":"normal"},disabled:n.unref(o)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(m)),1)]),_:1},8,["disabled"]),n.createVNode(L,{class:"amplify-field-group__control","data-fullwidth":"false","data-variation":"default",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(w,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(p)),1)]),_:1},8,["onClick"]),n.renderSlot(_.$slots,"footer",{onConfirmSignUpSubmit:b,onLostCodeClicked:w})]),_:3})]),_:3})]),_:3},8,["onSubmit"])]),_:3},16)])}}}),s3=n.createTextVNode(" Code * "),Ea=n.defineComponent({emits:["confirmSignInSubmit","backToSignInClicked"],setup(e,{emit:t}){const r=n.useAttrs(),{state:a,send:o}=be(),i=n.computed(()=>Ie(a.value)),s=i.value.context.challengeName;let l="SMS";s===As.SOFTWARE_TOKEN_MFA&&(l="TOTP");const u=`Confirm ${l} Code`,c=n.computed(()=>P("Back to Sign In")),d=n.computed(()=>P("Confirm")),v=n.computed(()=>P("Code")),f=C=>{const{name:b,value:g}=C.target;o({type:"CHANGE",data:{name:b,value:g}})},p=C=>{(r==null?void 0:r.onConfirmSignInSubmit)?t("confirmSignInSubmit",C):m(C)},m=C=>{const b=new FormData(C.target);o({type:"SUBMIT",data:Ne({},Object.fromEntries(b))})},h=()=>{(r==null?void 0:r.onBackToSignInClicked)?t("backToSignInClicked"):o({type:"SIGN_IN"})};return(C,b)=>{const g=Je,w=$e,_=ke,S=pe,I=Re,x=we,N=Oe,k=Fe,B=De;return n.renderSlot(C.$slots,"confirmSignInSlotI",n.normalizeProps(n.guardReactiveProps(C.$attrs)),()=>[n.createVNode(S,n.normalizeProps(n.guardReactiveProps(C.$attrs)),{default:n.withCtx(()=>[n.createVNode(B,{"data-amplify-authenticator-confirmsignin":"",onInput:f,onSubmit:n.withModifiers(p,["prevent"])},{default:n.withCtx(()=>[n.createVNode(k,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:n.unref(i).matches("confirmSignIn.pending")},{default:n.withCtx(()=>[n.renderSlot(C.$slots,"header",{},()=>[n.createVNode(g,{level:3,class:"amplify-heading"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(u))]),_:1})]),n.createVNode(S,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(S,{class:"amplify-flex amplify-field amplify-textfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(w,{class:"sr-only amplify-label",for:"amplify-field-51ee"},{default:n.withCtx(()=>[s3]),_:1}),n.createVNode(S,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(_,{class:"amplify-input amplify-field-group__control",id:"amplify-field-51ee","aria-invalid":"false",name:"confirmation_code",placeholder:n.unref(v),autocomplete:"one-time-code",required:"",type:"text"},null,8,["placeholder"])]),_:1})]),_:1})]),_:1}),n.createVNode(N,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>{var V,O;return[((O=(V=n.unref(i))==null?void 0:V.context)==null?void 0:O.remoteError)?(n.openBlock(),n.createBlock(I,{key:0},{default:n.withCtx(()=>{var L,Q;return[n.createTextVNode(n.toDisplayString(n.unref(P)((Q=(L=n.unref(i))==null?void 0:L.context)==null?void 0:Q.remoteError)),1)]}),_:1})):n.createCommentVNode("",!0),n.createVNode(x,{class:"amplify-field-group__control","data-fullwidth":"false","data-loading":"false","data-variation":"primary",style:{"font-weight":"normal"},disabled:n.unref(i).matches("confirmSignIn.pending")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)]),_:1},8,["disabled"]),n.createVNode(x,{class:"amplify-field-group__control","data-fullwidth":"false","data-size":"small","data-variation":"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(h,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(c)),1)]),_:1},8,["onClick"]),n.renderSlot(C.$slots,"footer",{onBackToSignInClicked:h,onConfirmSignInSubmit:p})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}});var Kt={},l3=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Gs={},xe={};let Aa;const u3=[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 u3[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.');Aa=t};xe.isKanjiModeEnabled=function(){return typeof Aa!="undefined"};xe.toSJIS=function(t){return Aa(t)};var Wr={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.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: "+r)}}e.isValid=function(a){return a&&typeof a.bit!="undefined"&&a.bit>=0&&a.bit<4},e.from=function(a,o){if(e.isValid(a))return a;try{return t(a)}catch{return o}}})(Wr);function Ws(){this.buffer=[],this.length=0}Ws.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 r=0;r<t;r++)this.putBit((e>>>t-r-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 c3=Ws;function qt(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)}qt.prototype.set=function(e,t,r,a){const o=e*this.size+t;this.data[o]=r,a&&(this.reservedBit[o]=!0)};qt.prototype.get=function(e,t){return this.data[e*this.size+t]};qt.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r};qt.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var d3=qt,Hs={};(function(e){const t=xe.getSymbolSize;e.getRowColCoords=function(a){if(a===1)return[];const o=Math.floor(a/7)+2,i=t(a),s=i===145?26:Math.ceil((i-13)/(2*o-2))*2,l=[i-7];for(let u=1;u<o-1;u++)l[u]=l[u-1]-s;return l.push(6),l.reverse()},e.getPositions=function(a){const o=[],i=e.getRowColCoords(a),s=i.length;for(let l=0;l<s;l++)for(let u=0;u<s;u++)l===0&&u===0||l===0&&u===s-1||l===s-1&&u===0||o.push([i[l],i[u]]);return o}})(Hs);var Ks={};const f3=xe.getSymbolSize,qs=7;Ks.getPositions=function(t){const r=f3(t);return[[0,0],[r-qs,0],[0,r-qs]]};var Ys={};(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(o){return o!=null&&o!==""&&!isNaN(o)&&o>=0&&o<=7},e.from=function(o){return e.isValid(o)?parseInt(o,10):void 0},e.getPenaltyN1=function(o){const i=o.size;let s=0,l=0,u=0,c=null,d=null;for(let v=0;v<i;v++){l=u=0,c=d=null;for(let f=0;f<i;f++){let p=o.get(v,f);p===c?l++:(l>=5&&(s+=t.N1+(l-5)),c=p,l=1),p=o.get(f,v),p===d?u++:(u>=5&&(s+=t.N1+(u-5)),d=p,u=1)}l>=5&&(s+=t.N1+(l-5)),u>=5&&(s+=t.N1+(u-5))}return s},e.getPenaltyN2=function(o){const i=o.size;let s=0;for(let l=0;l<i-1;l++)for(let u=0;u<i-1;u++){const c=o.get(l,u)+o.get(l,u+1)+o.get(l+1,u)+o.get(l+1,u+1);(c===4||c===0)&&s++}return s*t.N2},e.getPenaltyN3=function(o){const i=o.size;let s=0,l=0,u=0;for(let c=0;c<i;c++){l=u=0;for(let d=0;d<i;d++)l=l<<1&2047|o.get(c,d),d>=10&&(l===1488||l===93)&&s++,u=u<<1&2047|o.get(d,c),d>=10&&(u===1488||u===93)&&s++}return s*t.N3},e.getPenaltyN4=function(o){let i=0;const s=o.data.length;for(let u=0;u<s;u++)i+=o.data[u];return Math.abs(Math.ceil(i*100/s/5)-10)*t.N4};function r(a,o,i){switch(a){case e.Patterns.PATTERN000:return(o+i)%2==0;case e.Patterns.PATTERN001:return o%2==0;case e.Patterns.PATTERN010:return i%3==0;case e.Patterns.PATTERN011:return(o+i)%3==0;case e.Patterns.PATTERN100:return(Math.floor(o/2)+Math.floor(i/3))%2==0;case e.Patterns.PATTERN101:return o*i%2+o*i%3==0;case e.Patterns.PATTERN110:return(o*i%2+o*i%3)%2==0;case e.Patterns.PATTERN111:return(o*i%3+(o+i)%2)%2==0;default:throw new Error("bad maskPattern:"+a)}}e.applyMask=function(o,i){const s=i.size;for(let l=0;l<s;l++)for(let u=0;u<s;u++)i.isReserved(u,l)||i.xor(u,l,r(o,u,l))},e.getBestMask=function(o,i){const s=Object.keys(e.Patterns).length;let l=0,u=1/0;for(let c=0;c<s;c++){i(c),e.applyMask(c,o);const d=e.getPenaltyN1(o)+e.getPenaltyN2(o)+e.getPenaltyN3(o)+e.getPenaltyN4(o);e.applyMask(c,o),d<u&&(u=d,l=c)}return l}})(Ys);var Hr={};const Xe=Wr,Kr=[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],qr=[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];Hr.getBlocksCount=function(t,r){switch(r){case Xe.L:return Kr[(t-1)*4+0];case Xe.M:return Kr[(t-1)*4+1];case Xe.Q:return Kr[(t-1)*4+2];case Xe.H:return Kr[(t-1)*4+3];default:return}};Hr.getTotalCodewordsCount=function(t,r){switch(r){case Xe.L:return qr[(t-1)*4+0];case Xe.M:return qr[(t-1)*4+1];case Xe.Q:return qr[(t-1)*4+2];case Xe.H:return qr[(t-1)*4+3];default:return}};var Zs={},Yr={};const Yt=new Uint8Array(512),Zr=new Uint8Array(256);(function(){let t=1;for(let r=0;r<255;r++)Yt[r]=t,Zr[t]=r,t<<=1,t&256&&(t^=285);for(let r=255;r<512;r++)Yt[r]=Yt[r-255]})();Yr.log=function(t){if(t<1)throw new Error("log("+t+")");return Zr[t]};Yr.exp=function(t){return Yt[t]};Yr.mul=function(t,r){return t===0||r===0?0:Yt[Zr[t]+Zr[r]]};(function(e){const t=Yr;e.mul=function(a,o){const i=new Uint8Array(a.length+o.length-1);for(let s=0;s<a.length;s++)for(let l=0;l<o.length;l++)i[s+l]^=t.mul(a[s],o[l]);return i},e.mod=function(a,o){let i=new Uint8Array(a);for(;i.length-o.length>=0;){const s=i[0];for(let u=0;u<o.length;u++)i[u]^=t.mul(o[u],s);let l=0;for(;l<i.length&&i[l]===0;)l++;i=i.slice(l)}return i},e.generateECPolynomial=function(a){let o=new Uint8Array([1]);for(let i=0;i<a;i++)o=e.mul(o,new Uint8Array([1,t.exp(i)]));return o}})(Zs);const Js=Zs;function Ia(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}Ia.prototype.initialize=function(t){this.degree=t,this.genPoly=Js.generateECPolynomial(this.degree)};Ia.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const r=new Uint8Array(t.length+this.degree);r.set(t);const a=Js.mod(r,this.genPoly),o=this.degree-a.length;if(o>0){const i=new Uint8Array(this.degree);return i.set(a,o),i}return a};var v3=Ia,Xs={},Qe={},Na={};Na.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var Me={};const Qs="[0-9]+",p3="[A-Z $%*+\\-./:]+";let Zt="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Zt=Zt.replace(/u/g,"\\u");const m3="(?:(?![A-Z0-9 $%*+\\-./:]|"+Zt+`)(?:.|[\r
118
- ]))+`;Me.KANJI=new RegExp(Zt,"g");Me.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");Me.BYTE=new RegExp(m3,"g");Me.NUMERIC=new RegExp(Qs,"g");Me.ALPHANUMERIC=new RegExp(p3,"g");const h3=new RegExp("^"+Zt+"$"),g3=new RegExp("^"+Qs+"$"),y3=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Me.testKanji=function(t){return h3.test(t)};Me.testNumeric=function(t){return g3.test(t)};Me.testAlphanumeric=function(t){return y3.test(t)};(function(e){const t=Na,r=Me;e.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(i,s){if(!i.ccBits)throw new Error("Invalid mode: "+i);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?i.ccBits[0]:s<27?i.ccBits[1]:i.ccBits[2]},e.getBestModeForData=function(i){return r.testNumeric(i)?e.NUMERIC:r.testAlphanumeric(i)?e.ALPHANUMERIC:r.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 a(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.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: "+o)}}e.from=function(i,s){if(e.isValid(i))return i;try{return a(i)}catch{return s}}})(Qe);(function(e){const t=xe,r=Hr,a=Wr,o=Qe,i=Na,s=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,l=t.getBCHDigit(s);function u(f,p,m){for(let h=1;h<=40;h++)if(p<=e.getCapacity(h,m,f))return h}function c(f,p){return o.getCharCountIndicator(f,p)+4}function d(f,p){let m=0;return f.forEach(function(h){m+=c(h.mode,p)+h.getBitsLength()}),m}function v(f,p){for(let m=1;m<=40;m++)if(d(f,m)<=e.getCapacity(m,p,o.MIXED))return m}e.from=function(p,m){return i.isValid(p)?parseInt(p,10):m},e.getCapacity=function(p,m,h){if(!i.isValid(p))throw new Error("Invalid QR Code version");typeof h=="undefined"&&(h=o.BYTE);const C=t.getSymbolTotalCodewords(p),b=r.getTotalCodewordsCount(p,m),g=(C-b)*8;if(h===o.MIXED)return g;const w=g-c(h,p);switch(h){case o.NUMERIC:return Math.floor(w/10*3);case o.ALPHANUMERIC:return Math.floor(w/11*2);case o.KANJI:return Math.floor(w/13);case o.BYTE:default:return Math.floor(w/8)}},e.getBestVersionForData=function(p,m){let h;const C=a.from(m,a.M);if(Array.isArray(p)){if(p.length>1)return v(p,C);if(p.length===0)return 1;h=p[0]}else h=p;return u(h.mode,h.getLength(),C)},e.getEncodedBits=function(p){if(!i.isValid(p)||p<7)throw new Error("Invalid QR Code version");let m=p<<12;for(;t.getBCHDigit(m)-l>=0;)m^=s<<t.getBCHDigit(m)-l;return p<<12|m}})(Xs);var el={};const Pa=xe,tl=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,b3=1<<14|1<<12|1<<10|1<<4|1<<1,rl=Pa.getBCHDigit(tl);el.getEncodedBits=function(t,r){const a=t.bit<<3|r;let o=a<<10;for(;Pa.getBCHDigit(o)-rl>=0;)o^=tl<<Pa.getBCHDigit(o)-rl;return(a<<10|o)^b3};var nl={};const C3=Qe;function It(e){this.mode=C3.NUMERIC,this.data=e.toString()}It.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};It.prototype.getLength=function(){return this.data.length};It.prototype.getBitsLength=function(){return It.getBitsLength(this.data.length)};It.prototype.write=function(t){let r,a,o;for(r=0;r+3<=this.data.length;r+=3)a=this.data.substr(r,3),o=parseInt(a,10),t.put(o,10);const i=this.data.length-r;i>0&&(a=this.data.substr(r),o=parseInt(a,10),t.put(o,i*3+1))};var w3=It;const _3=Qe,Ta=["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 Nt(e){this.mode=_3.ALPHANUMERIC,this.data=e}Nt.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};Nt.prototype.getLength=function(){return this.data.length};Nt.prototype.getBitsLength=function(){return Nt.getBitsLength(this.data.length)};Nt.prototype.write=function(t){let r;for(r=0;r+2<=this.data.length;r+=2){let a=Ta.indexOf(this.data[r])*45;a+=Ta.indexOf(this.data[r+1]),t.put(a,11)}this.data.length%2&&t.put(Ta.indexOf(this.data[r]),6)};var S3=Nt,x3=function(t){for(var r=[],a=t.length,o=0;o<a;o++){var i=t.charCodeAt(o);if(i>=55296&&i<=56319&&a>o+1){var s=t.charCodeAt(o+1);s>=56320&&s<=57343&&(i=(i-55296)*1024+s-56320+65536,o+=1)}if(i<128){r.push(i);continue}if(i<2048){r.push(i>>6|192),r.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){r.push(i>>12|224),r.push(i>>6&63|128),r.push(i&63|128);continue}if(i>=65536&&i<=1114111){r.push(i>>18|240),r.push(i>>12&63|128),r.push(i>>6&63|128),r.push(i&63|128);continue}r.push(239,191,189)}return new Uint8Array(r).buffer};const E3=x3,A3=Qe;function Pt(e){this.mode=A3.BYTE,this.data=new Uint8Array(E3(e))}Pt.getBitsLength=function(t){return t*8};Pt.prototype.getLength=function(){return this.data.length};Pt.prototype.getBitsLength=function(){return Pt.getBitsLength(this.data.length)};Pt.prototype.write=function(e){for(let t=0,r=this.data.length;t<r;t++)e.put(this.data[t],8)};var I3=Pt;const N3=Qe,P3=xe;function Tt(e){this.mode=N3.KANJI,this.data=e}Tt.getBitsLength=function(t){return t*13};Tt.prototype.getLength=function(){return this.data.length};Tt.prototype.getBitsLength=function(){return Tt.getBitsLength(this.data.length)};Tt.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let r=P3.toSJIS(this.data[t]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
119
- Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),e.put(r,13)}};var T3=Tt,al={exports:{}};(function(e){var t={single_source_shortest_paths:function(r,a,o){var i={},s={};s[a]=0;var l=t.PriorityQueue.make();l.push(a,0);for(var u,c,d,v,f,p,m,h,C;!l.empty();){u=l.pop(),c=u.value,v=u.cost,f=r[c]||{};for(d in f)f.hasOwnProperty(d)&&(p=f[d],m=v+p,h=s[d],C=typeof s[d]=="undefined",(C||h>m)&&(s[d]=m,l.push(d,m),i[d]=c))}if(typeof o!="undefined"&&typeof s[o]=="undefined"){var b=["Could not find a path from ",a," to ",o,"."].join("");throw new Error(b)}return i},extract_shortest_path_from_predecessor_list:function(r,a){for(var o=[],i=a;i;)o.push(i),i=r[i];return o.reverse(),o},find_path:function(r,a,o){var i=t.single_source_shortest_paths(r,a,o);return t.extract_shortest_path_from_predecessor_list(i,o)},PriorityQueue:{make:function(r){var a=t.PriorityQueue,o={},i;r=r||{};for(i in a)a.hasOwnProperty(i)&&(o[i]=a[i]);return o.queue=[],o.sorter=r.sorter||a.default_sorter,o},default_sorter:function(r,a){return r.cost-a.cost},push:function(r,a){var o={value:r,cost:a};this.queue.push(o),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(al);(function(e){const t=Qe,r=w3,a=S3,o=I3,i=T3,s=Me,l=xe,u=al.exports;function c(b){return unescape(encodeURIComponent(b)).length}function d(b,g,w){const _=[];let S;for(;(S=b.exec(w))!==null;)_.push({data:S[0],index:S.index,mode:g,length:S[0].length});return _}function v(b){const g=d(s.NUMERIC,t.NUMERIC,b),w=d(s.ALPHANUMERIC,t.ALPHANUMERIC,b);let _,S;return l.isKanjiModeEnabled()?(_=d(s.BYTE,t.BYTE,b),S=d(s.KANJI,t.KANJI,b)):(_=d(s.BYTE_KANJI,t.BYTE,b),S=[]),g.concat(w,_,S).sort(function(x,N){return x.index-N.index}).map(function(x){return{data:x.data,mode:x.mode,length:x.length}})}function f(b,g){switch(g){case t.NUMERIC:return r.getBitsLength(b);case t.ALPHANUMERIC:return a.getBitsLength(b);case t.KANJI:return i.getBitsLength(b);case t.BYTE:return o.getBitsLength(b)}}function p(b){return b.reduce(function(g,w){const _=g.length-1>=0?g[g.length-1]:null;return _&&_.mode===w.mode?(g[g.length-1].data+=w.data,g):(g.push(w),g)},[])}function m(b){const g=[];for(let w=0;w<b.length;w++){const _=b[w];switch(_.mode){case t.NUMERIC:g.push([_,{data:_.data,mode:t.ALPHANUMERIC,length:_.length},{data:_.data,mode:t.BYTE,length:_.length}]);break;case t.ALPHANUMERIC:g.push([_,{data:_.data,mode:t.BYTE,length:_.length}]);break;case t.KANJI:g.push([_,{data:_.data,mode:t.BYTE,length:c(_.data)}]);break;case t.BYTE:g.push([{data:_.data,mode:t.BYTE,length:c(_.data)}])}}return g}function h(b,g){const w={},_={start:{}};let S=["start"];for(let I=0;I<b.length;I++){const x=b[I],N=[];for(let k=0;k<x.length;k++){const B=x[k],V=""+I+k;N.push(V),w[V]={node:B,lastCount:0},_[V]={};for(let O=0;O<S.length;O++){const L=S[O];w[L]&&w[L].node.mode===B.mode?(_[L][V]=f(w[L].lastCount+B.length,B.mode)-f(w[L].lastCount,B.mode),w[L].lastCount+=B.length):(w[L]&&(w[L].lastCount=B.length),_[L][V]=f(B.length,B.mode)+4+t.getCharCountIndicator(B.mode,g))}}S=N}for(let I=0;I<S.length;I++)_[S[I]].end=0;return{map:_,table:w}}function C(b,g){let w;const _=t.getBestModeForData(b);if(w=t.from(g,_),w!==t.BYTE&&w.bit<_.bit)throw new Error('"'+b+'" cannot be encoded with mode '+t.toString(w)+`.
120
- Suggested mode is: `+t.toString(_));switch(w===t.KANJI&&!l.isKanjiModeEnabled()&&(w=t.BYTE),w){case t.NUMERIC:return new r(b);case t.ALPHANUMERIC:return new a(b);case t.KANJI:return new i(b);case t.BYTE:return new o(b)}}e.fromArray=function(g){return g.reduce(function(w,_){return typeof _=="string"?w.push(C(_,null)):_.data&&w.push(C(_.data,_.mode)),w},[])},e.fromString=function(g,w){const _=v(g,l.isKanjiModeEnabled()),S=m(_),I=h(S,w),x=u.find_path(I.map,"start","end"),N=[];for(let k=1;k<x.length-1;k++)N.push(I.table[x[k]].node);return e.fromArray(p(N))},e.rawSplit=function(g){return e.fromArray(v(g,l.isKanjiModeEnabled()))}})(nl);const Jr=xe,$a=Wr,$3=c3,k3=d3,B3=Hs,F3=Ks,ka=Ys,Ba=Hr,R3=v3,Xr=Xs,D3=el,O3=Qe,Fa=nl;function V3(e,t){const r=e.size,a=F3.getPositions(t);for(let o=0;o<a.length;o++){const i=a[o][0],s=a[o][1];for(let l=-1;l<=7;l++)if(!(i+l<=-1||r<=i+l))for(let u=-1;u<=7;u++)s+u<=-1||r<=s+u||(l>=0&&l<=6&&(u===0||u===6)||u>=0&&u<=6&&(l===0||l===6)||l>=2&&l<=4&&u>=2&&u<=4?e.set(i+l,s+u,!0,!0):e.set(i+l,s+u,!1,!0))}}function U3(e){const t=e.size;for(let r=8;r<t-8;r++){const a=r%2==0;e.set(r,6,a,!0),e.set(6,r,a,!0)}}function M3(e,t){const r=B3.getPositions(t);for(let a=0;a<r.length;a++){const o=r[a][0],i=r[a][1];for(let s=-2;s<=2;s++)for(let l=-2;l<=2;l++)s===-2||s===2||l===-2||l===2||s===0&&l===0?e.set(o+s,i+l,!0,!0):e.set(o+s,i+l,!1,!0)}}function L3(e,t){const r=e.size,a=Xr.getEncodedBits(t);let o,i,s;for(let l=0;l<18;l++)o=Math.floor(l/3),i=l%3+r-8-3,s=(a>>l&1)==1,e.set(o,i,s,!0),e.set(i,o,s,!0)}function Ra(e,t,r){const a=e.size,o=D3.getEncodedBits(t,r);let i,s;for(i=0;i<15;i++)s=(o>>i&1)==1,i<6?e.set(i,8,s,!0):i<8?e.set(i+1,8,s,!0):e.set(a-15+i,8,s,!0),i<8?e.set(8,a-i-1,s,!0):i<9?e.set(8,15-i-1+1,s,!0):e.set(8,15-i-1,s,!0);e.set(a-8,8,1,!0)}function z3(e,t){const r=e.size;let a=-1,o=r-1,i=7,s=0;for(let l=r-1;l>0;l-=2)for(l===6&&l--;;){for(let u=0;u<2;u++)if(!e.isReserved(o,l-u)){let c=!1;s<t.length&&(c=(t[s]>>>i&1)==1),e.set(o,l-u,c),i--,i===-1&&(s++,i=7)}if(o+=a,o<0||r<=o){o-=a,a=-a;break}}}function j3(e,t,r){const a=new $3;r.forEach(function(u){a.put(u.mode.bit,4),a.put(u.getLength(),O3.getCharCountIndicator(u.mode,e)),u.write(a)});const o=Jr.getSymbolTotalCodewords(e),i=Ba.getTotalCodewordsCount(e,t),s=(o-i)*8;for(a.getLengthInBits()+4<=s&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(0);const l=(s-a.getLengthInBits())/8;for(let u=0;u<l;u++)a.put(u%2?17:236,8);return G3(a,e,t)}function G3(e,t,r){const a=Jr.getSymbolTotalCodewords(t),o=Ba.getTotalCodewordsCount(t,r),i=a-o,s=Ba.getBlocksCount(t,r),l=a%s,u=s-l,c=Math.floor(a/s),d=Math.floor(i/s),v=d+1,f=c-d,p=new R3(f);let m=0;const h=new Array(s),C=new Array(s);let b=0;const g=new Uint8Array(e.buffer);for(let x=0;x<s;x++){const N=x<u?d:v;h[x]=g.slice(m,m+N),C[x]=p.encode(h[x]),m+=N,b=Math.max(b,N)}const w=new Uint8Array(a);let _=0,S,I;for(S=0;S<b;S++)for(I=0;I<s;I++)S<h[I].length&&(w[_++]=h[I][S]);for(S=0;S<f;S++)for(I=0;I<s;I++)w[_++]=C[I][S];return w}function W3(e,t,r,a){let o;if(Array.isArray(e))o=Fa.fromArray(e);else if(typeof e=="string"){let c=t;if(!c){const d=Fa.rawSplit(e);c=Xr.getBestVersionForData(d,r)}o=Fa.fromString(e,c||40)}else throw new Error("Invalid data");const i=Xr.getBestVersionForData(o,r);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(`
117
+ `),Wt(le({},u),{tokens:c})})),{tokens:a,breakpoints:o,name:i,cssText:s,overrides:l}}E();E();P2({name:"default-theme"},Rs);const T2={},$2={"data-amplify-label":""};function k2(e,t){return n.openBlock(),n.createElementBlock("label",$2,[n.renderSlot(e.$slots,"default")])}var $e=Bt(T2,[["render",k2]]);const ke=n.defineComponent({emits:["update:modelValue"],setup(e,{emit:t}){const r=a=>{t("update:modelValue",a.target.value)};return(a,o)=>(n.openBlock(),n.createElementBlock("input",{onChange:o[0]||(o[0]=i=>r(i)),"data-amplify-input":""},null,32))}}),B2=["aria-label"],F2={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},R2=n.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),O2=[R2],D2={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},V2=n.createElementVNode("path",{d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z",fill:"none"},null,-1),U2=n.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),M2=[V2,U2];function L2(e){const t=e,r=P("Show password"),a=P("Hide password"),o=n.ref("password"),i=n.ref(r),s=Math.floor(Math.random()*999999),{name:l,label:u,autocomplete:c,ariainvalid:d}=n.toRefs(t);let v=n.ref("");function f(){i.value=i.value===r?a:r,o.value=o.value==="password"?"text":"password"}return(p,m)=>{const h=$e,C=ke,b=pe;return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(h,{class:"amplify-label sr-only",for:"amplify-field-"+n.unref(s)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(u)),1)]),_:1},8,["for"]),n.createVNode(b,{class:"amplify-flex amplify-field-group"},{default:n.withCtx(()=>[n.createVNode(C,n.mergeProps(p.$attrs,{modelValue:n.unref(v),"onUpdate:modelValue":m[0]||(m[0]=g=>n.isRef(v)?v.value=g:v=g),class:"amplify-input amplify-field-group__control","aria-invalid":n.unref(d),id:"amplify-field-"+n.unref(s),"data-amplify-password":"true",name:n.unref(l),autocomplete:n.unref(c),required:"",placeholder:n.unref(u),type:o.value}),null,16,["modelValue","aria-invalid","id","name","autocomplete","placeholder","type"]),n.createVNode(b,{class:"amplify-field-group__outer-end"},{default:n.withCtx(()=>[n.createElementVNode("button",{"aria-label":i.value,class:"amplify-button amplify-field-group__control amplify-field__show-password","data-fullwidth":"false",type:"button",onClick:f},[o.value==="password"?(n.openBlock(),n.createElementBlock("svg",F2,O2)):(n.openBlock(),n.createElementBlock("svg",D2,M2))],8,B2)]),_:1})]),_:1})],64)}}const z2={inheritAttrs:!1},Ge=n.defineComponent(rn(Ne({},z2),{props:{name:String,label:String,autocomplete:String,ariainvalid:Boolean},setup:L2})),j2=["value","selected"],Ds=n.defineComponent({props:{selectValue:{default:""},options:null},emits:["update:selectValue"],setup(e,{emit:t}){const{options:r,selectValue:a}=e,o=i=>{t("update:selectValue",i.target.value)};return(i,s)=>(n.openBlock(),n.createElementBlock("select",{onChange:s[0]||(s[0]=l=>o(l))},[(n.openBlock(),n.createElementBlock(n.Fragment,null,n.renderList(r,(l,u)=>n.createElementVNode("option",{key:u,value:l,selected:l==a?!0:void 0},n.toDisplayString(l),9,j2)),64))],32))}});var Mr=globalThis&&globalThis.__assign||function(){return Mr=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Mr.apply(this,arguments)},G2=globalThis&&globalThis.__rest||function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(r[a[o]]=e[a[o]]);return r};function W2(e,t,r){if(typeof e=="object")return e;var a=function(){};return{next:e,error:t||a,complete:r||a}}function H2(e,t,r){t===void 0&&(t={});var a=typeof e=="function"?e():e,o=t.context,i=t.guards,s=t.actions,l=t.activities,u=t.services,c=t.delays,d=t.state,v=G2(t,["context","guards","actions","activities","services","delays","state"]),f={context:o,guards:i,actions:s,activities:l,services:u,delays:c},p=a.withConfig(f,function(){return Mr(Mr({},a.context),o)}),m=Ro(p,v).start(d?Ye.create(d):void 0),h;return n.onMounted(function(){r&&(h=m.subscribe(W2(r)))}),n.onBeforeUnmount(function(){m.stop(),h==null||h.unsubscribe()}),m}function K2(e){return"state"in e}var Vs=function(){};function q2(e){return"getSnapshot"in e?e.getSnapshot():K2(e)?e.state:void 0}function Us(e,t){t===void 0&&(t=q2);var r=n.isRef(e)?e:n.shallowRef(e),a=n.shallowRef(t(r.value)),o=function(i){r.value.send(i)};return n.watch(r,function(i,s,l){a.value=t(i);var u=i.subscribe({next:function(c){return a.value=c},error:Vs,complete:Vs}).unsubscribe;l(function(){return u()})},{immediate:!0}),{state:a,send:o}}const Y2=e=>(e==null?void 0:e.length)===1&&e[0]==="username"?[...la]:e,Ms={error:"",hasValidationErrors:!1,isPending:!1,route:"",user:"",validationErrors:{val:""},codeDeliveryDetails:{val:""},change:e=>null,updateForm:e=>null,updateBlur:e=>null,resend:e=>null,resendCode:e=>null,signOut:e=>null,federatedSignIn:e=>null,toFederatedSignIn:e=>null,resetPassword:e=>null,toResetPassword:e=>null,signIn:e=>null,toSignIn:e=>null,signUp:e=>null,toSignUp:e=>null,skip:e=>null,skipVerification:e=>null,submit:e=>null,submitForm:e=>null},Ca=n.ref();let Lr=n.reactive(rn(Ne({},Ms),{send:"",state:""}));const be=e=>(e&&(Ca.value=e),Us(Ca.value)),Z2=()=>(Ls(),n.watchEffect(()=>{Ls()}),Lr),Ze=Z2;function Ls(){if(!Ca.value)return;const{state:e,send:t}=be(),r=Ps({send:t,state:e.value});for(const a of Object.keys(Ms))Lr[a]=r[a];Lr.send=t,Lr.state=e}const J2=n.createTextVNode(n.toDisplayString("Country Code")),X2=n.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon",viewBox:"0 0 24 24","data-size":"large",fill:"currentColor"},[n.createElementVNode("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})],-1),zr=n.defineComponent({props:{userNameAlias:{type:Boolean,default:!1},userName:{default:""},disabled:{type:Boolean}},setup(e){var m,h,C,b,g;const{userNameAlias:t,userName:r,disabled:a}=e,{state:o}=be(),{value:{context:i}}=o,l=n.computed(()=>Ht(o.value)).value.country_code;let u=n.ref("");r&&(u=n.computed(()=>r));const c=n.computed(()=>Ts),[d]=Y2((m=i==null?void 0:i.config)==null?void 0:m.loginMechanisms);let v=d,f=(C=(h=ge[d])==null?void 0:h.label)!=null?C:ge.username.label,p=(g=(b=ge[v])==null?void 0:b.type)!=null?g:ge.username.label;if(t){const w=Ns(i);f=w.label||ge.username.label,p=w.type,v="username"}return f=P(f),(w,S)=>{const _=$e,I=Ds,x=pe,N=ke;return n.openBlock(),n.createBlock(x,{class:"amplify-flex amplify-field amplify-textfield amplify-phonenumberfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(_,n.mergeProps({class:"amplify-label sr-only",for:"amplify-field-601d"},w.$attrs),{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(f)),1)]),_:1},16),n.createVNode(x,{class:"amplify-flex amplify-field-group"},{default:n.withCtx(()=>[n.createVNode(x,{class:"amplify-field-group__outer-start"},{default:n.withCtx(()=>[n.unref(p)==="tel"?(n.openBlock(),n.createBlock(x,{key:0,class:"amplify-flex amplify-field amplify-selectfield amplify-countrycodeselect",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(_,{class:"amplify-label sr-only",for:"amplify-field-1177"},{default:n.withCtx(()=>[J2]),_:1}),n.createVNode(x,{class:"amplify-select__wrapper"},{default:n.withCtx(()=>[n.createVNode(I,{class:"amplify-select amplify-field-group__control",id:"amplify-field-1177","aria-label":"country code",name:"country_code",options:n.unref(c),selectValue:n.unref(l)},null,8,["options","selectValue"]),n.createVNode(x,{class:"amplify-flex amplify-select__icon-wrapper",style:{"align-items":"center","justify-content":"center"}},{default:n.withCtx(()=>[X2]),_:1})]),_:1})]),_:1})):n.createCommentVNode("",!0)]),_:1}),n.createVNode(x,{class:"amplify-field-group__field-wrapper"},{default:n.withCtx(()=>[n.createVNode(N,{class:"amplify-input amplify-field-group__control",id:"amplify-field-601d","aria-invalid":"false",textValue:n.unref(u),autocomplete:"username",placeholder:n.unref(f),required:"",name:n.unref(v),disabled:a,type:n.unref(p)},null,8,["textValue","placeholder","name","type"])]),_:1})]),_:1})]),_:1})}}}),jr=n.defineComponent({props:{provider:String},setup(e){const{provider:t}=e,{send:r}=be(),a=o=>{r({type:"FEDERATED_SIGN_IN",data:{provider:t}})};return(o,i)=>{const s=pe,l=we;return n.openBlock(),n.createBlock(l,{class:"amplify-field-group__control federated-sign-in-button","data-fullwidth":"false",style:{"font-weight":"normal"},type:"button",onClick:a},{default:n.withCtx(()=>[n.createVNode(s,{class:"amplify-flex federated-sign-in-button-row",style:{"flex-direction":"row","justify-content":"center","align-items":"center"}},{default:n.withCtx(()=>[n.renderSlot(o.$slots,"default")]),_:3})]),_:3})}}});function Q2(e){return n.getCurrentScope()?(n.onScopeDispose(e),!0):!1}function at(e){let t=0,r,a;const o=()=>{t-=1,a&&t<=0&&(a.stop(),r=void 0,a=void 0)};return(...i)=>(t+=1,r||(a=n.effectScope(!0),r=a.run(()=>e(...i))),Q2(o),r)}const e3=n.createElementVNode("svg",{"aria-label":"Amazon icon",class:"amplify-icon federated-sign-in-icon",viewBox:"0 0 248 268"},[n.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),t3={class:"amplify-text",style:{"align-self":"center"}},r3=n.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"},[n.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),n3={class:"amplify-text",style:{"align-self":"center"}},a3=n.createElementVNode("svg",{"aria-label":"Facebook icon",class:"amplify-icon federated-sign-in-icon",viewBox:"0 0 279 538"},[n.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),o3={class:"amplify-text",style:{"align-self":"center"}},i3=n.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"},[n.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"}),n.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"}),n.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"}),n.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),s3={class:"amplify-text",style:{"align-self":"center"}},l3=n.createElementVNode("div",{"data-or-line":""},"or",-1),u3=n.createElementVNode("hr",{class:"amplify-divider","aria-orientation":"horizontal","data-size":"small"},null,-1),Gr=n.defineComponent({setup(e){var b;const{state:t}=be(),r=at(Ze),{route:a}=r(),{value:{context:o}}=t,i=(b=o==null?void 0:o.config)==null?void 0:b.socialProviders,s=i==null?void 0:i.includes("amazon"),l=i==null?void 0:i.includes("apple"),u=i==null?void 0:i.includes("facebook"),c=i==null?void 0:i.includes("google"),d=u||c||s||l,v=a==="signUp"?"Up":"In",f=n.computed(()=>Is),p=n.computed(()=>P(`Sign ${v} with Amazon`)),m=n.computed(()=>P(`Sign ${v} with Apple`)),h=n.computed(()=>P(`Sign ${v} with Facebook`)),C=n.computed(()=>P(`Sign ${v} with Google`));return(g,w)=>{const S=pe;return n.unref(d)?(n.openBlock(),n.createBlock(S,{key:0,class:"amplify-flex federated-sign-in-container",style:{"flex-direction":"column",padding:"0 0 1rem 0"}},{default:n.withCtx(()=>[n.unref(s)?(n.openBlock(),n.createBlock(jr,{key:0,provider:n.unref(f).Amazon},{default:n.withCtx(()=>[e3,n.createElementVNode("p",t3,n.toDisplayString(n.unref(p)),1)]),_:1},8,["provider"])):n.createCommentVNode("",!0),n.unref(l)?(n.openBlock(),n.createBlock(jr,{key:1,provider:n.unref(f).Apple},{default:n.withCtx(()=>[r3,n.createElementVNode("p",n3,n.toDisplayString(n.unref(m)),1)]),_:1},8,["provider"])):n.createCommentVNode("",!0),n.unref(u)?(n.openBlock(),n.createBlock(jr,{key:2,provider:n.unref(f).Facebook},{default:n.withCtx(()=>[a3,n.createElementVNode("p",o3,n.toDisplayString(n.unref(h)),1)]),_:1},8,["provider"])):n.createCommentVNode("",!0),n.unref(c)?(n.openBlock(),n.createBlock(jr,{key:3,provider:n.unref(f).Google},{default:n.withCtx(()=>[i3,n.createElementVNode("p",s3,n.toDisplayString(n.unref(C)),1)]),_:1},8,["provider"])):n.createCommentVNode("",!0),n.createVNode(S,{class:"amplify-flex","data-or-container":""},{default:n.withCtx(()=>[l3,u3]),_:1})]),_:1})):n.createCommentVNode("",!0)}}}),c3={"data-amplify-footer":""},wa=n.defineComponent({emits:["signInSubmit","forgotPasswordClicked","createAccountClicked"],setup(e,{emit:t}){const r=n.useAttrs(),a=n.computed(()=>P("Password")),o=n.computed(()=>G_("Forgot your password? ")?P("Forgot your password? "):P("Forgot your password?")),i=n.computed(()=>P("Sign in")),s=n.computed(()=>P("Signing in")),{state:l,send:u}=be(),c=n.computed(()=>Ie(l.value)),d=m=>{const{name:h,value:C}=m.target;u({type:"CHANGE",data:{name:h,value:C}})},v=m=>{(r==null?void 0:r.onSignInSubmit)?t("signInSubmit",m):f(m)},f=m=>{const h=new FormData(m.target);u({type:"SUBMIT",data:Object.fromEntries(h)})},p=()=>{(r==null?void 0:r.onForgotPasswordClicked)?t("forgotPasswordClicked"):u({type:"RESET_PASSWORD"})};return(m,h)=>{const C=pe,b=Fe,g=Re,w=we,S=Oe,_=De;return n.renderSlot(m.$slots,"signInSlotI",n.normalizeProps(n.guardReactiveProps(m.$attrs)),()=>[n.renderSlot(m.$slots,"header"),n.createVNode(C,n.normalizeProps(n.guardReactiveProps(m.$attrs)),{default:n.withCtx(()=>[n.createVNode(S,{"data-amplify-authenticator-signin":"",onInput:d,onSubmit:n.withModifiers(v,["prevent"]),method:"post"},{formt:n.withCtx(({slotData:I})=>[n.renderSlot(m.$slots,"form",{info:I,onSignInSubmit:v,onInput:d,onForgotPasswordClicked:p})]),default:n.withCtx(()=>[n.createVNode(Gr),n.createVNode(C,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(b,{disabled:n.unref(c).matches("signIn.submit"),class:"amplify-flex",style:{"flex-direction":"column"}},{fieldSetI:n.withCtx(({slotData:I})=>[n.renderSlot(m.$slots,"signin-fields",{info:I})]),default:n.withCtx(()=>[n.createVNode(zr,{userNameAlias:!0}),n.createVNode(C,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield password-field",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(Ge,{name:"password",label:n.unref(a),autocomplete:"current-password",ariainvalid:!1},null,8,["label"])]),_:1})]),_:3},8,["disabled"]),n.unref(c).context.remoteError?(n.openBlock(),n.createBlock(g,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(P)(n.unref(c).context.remoteError)),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(w,{disabled:n.unref(c).matches("signIn.submit"),class:"amplify-field-group__control",fullwidth:!0,"data-loading":"false",variation:"primary",style:{"border-radius":"0x","font-weight":"normal"}},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(c).matches("signIn.submit")?n.unref(s):n.unref(i)),1)]),_:1},8,["disabled"])]),_:3})]),_:3},8,["onSubmit"])]),_:3},16),n.createVNode(_,null,{default:n.withCtx(()=>[n.renderSlot(m.$slots,"footer",{},()=>[n.createElementVNode("div",c3,[n.createVNode(w,{onClick:p,class:"amplify-field-group__control","data-fullwidth":"true","data-size":"small","data-variation":"link",style:{"font-weight":"normal"},type:"button"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(o)),1)]),_:1})])])]),_:3})])}}}),d3=n.createTextVNode(n.toDisplayString("Country Code")),f3=n.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","data-size":"large",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},[n.createElementVNode("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})],-1),zs=n.defineComponent({props:{label:{default:"Username"},name:{default:"username"},placeholder:{default:""},autocomplete:{default:""}},setup(e){const{label:t,name:r,placeholder:a,autocomplete:o}=e,i=Math.floor(Math.random()*999999),s=Math.floor(Math.random()*999999),{state:l,send:u}=be(),c=n.computed(()=>ge),v=n.computed(()=>Ht(l.value)).value.country_code,f=n.computed(()=>Ts);n.onMounted(()=>{var m;((m=c.value[r])==null?void 0:m.type)==="tel"&&u({type:"CHANGE",data:{name:"country_code",value:v}})});const p=n.computed(()=>{var m;return o||((m=ge[r])==null?void 0:m.autocomplete)||r});return(m,h)=>{const C=$e,b=Ds,g=pe,w=ke;return n.openBlock(),n.createBlock(g,{class:"amplify-flex amplify-field amplify-textfield amplify-phonenumberfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(C,n.mergeProps({for:"amplify-field-"+n.unref(i),class:"amplify-label"},m.$attrs),{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(t))]),_:1},16,["for"]),n.createVNode(g,{class:"amplify-flex amplify-field-group"},{default:n.withCtx(()=>[n.createVNode(g,{class:"amplify-field-group__outer-start"},{default:n.withCtx(()=>[r==="phone_number"?(n.openBlock(),n.createBlock(g,{key:0,class:"amplify-flex amplify-field amplify-selectfield amplify-countrycodeselect",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(C,n.mergeProps({for:"amplify-field-"+n.unref(s),class:"amplify-label sr-only"},m.$attrs),{default:n.withCtx(()=>[d3]),_:1},16,["for"]),n.createVNode(g,{class:"amplify-select__wrapper"},{default:n.withCtx(()=>[n.createVNode(b,{class:"amplify-select amplify-field-group__control",id:"amplify-field-"+n.unref(s),autocomplete:"tel-country-code","aria-label":"country code",name:"country_code",options:n.unref(f),"select-value":n.unref(v)},null,8,["id","options","select-value"]),n.createVNode(g,{class:"amplify-flex amplify-select__icon-wrapper",style:{"align-items":"center","justify-content":"center"}},{default:n.withCtx(()=>[f3]),_:1})]),_:1})]),_:1})):n.createCommentVNode("",!0)]),_:1}),n.createVNode(g,{class:"amplify-field-group__field-wrapper"},{default:n.withCtx(()=>{var S,_;return[n.createVNode(w,{class:"amplify-input amplify-field-group__control","aria-invalid":"false",id:"amplify-field-"+n.unref(i),autocomplete:n.unref(p),name:r,required:"",type:(_=(S=n.unref(c)[r])==null?void 0:S.type)!=null?_:"text",placeholder:a},null,8,["id","autocomplete","type"])]}),_:1})]),_:1})]),_:1})}}}),v3={key:0,role:"alert","data-variation":"error",class:"amplify-text"},Sa=n.defineComponent({setup(e){var m,h;const{state:t}=be(),{value:{context:r}}=t,a=at(Ze),{validationErrors:o}=n.toRefs(a()),i=a(),s=n.computed(()=>ge),l=n.computed(()=>P("Password")),u=n.computed(()=>P("Confirm Password"));let c,d=(m=r.config)==null?void 0:m.loginMechanisms,v=(h=r.config)==null?void 0:h.signUpAttributes;c=Array.from(new Set([...d,...v])),c=c.filter(C=>{const b=!!ge[C];return b||console.debug(`Authenticator does not have a default implementation for ${C}. Customize the authenticator sign-up-fields slot to add your own.`),b});function f(C){const{name:b}=C.target;i.updateBlur({name:b})}const p=c.shift();return(C,b)=>{const g=pe;return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(zr,{userName:n.unref(p)},null,8,["userName"]),n.createVNode(g,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield password-field",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(Ge,{name:"password",label:n.unref(l),autocomplete:"new-password",ariainvalid:!!n.unref(o).confirm_password,onBlur:f},null,8,["label","ariainvalid"])]),_:1}),n.createVNode(g,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield password-field",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(Ge,{name:"confirm_password",label:n.unref(u),autocomplete:"new-password",ariainvalid:!!n.unref(o).confirm_password,onBlur:f},null,8,["label","ariainvalid"])]),_:1}),n.unref(o).confirm_password?(n.openBlock(),n.createElementBlock("p",v3,n.toDisplayString(n.unref(P)(n.unref(o).confirm_password)),1)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(c),(w,S)=>(n.openBlock(),n.createBlock(zs,{key:S,label:n.unref(P)(n.unref(s)[w].label),name:w,placeholder:n.unref(P)(n.unref(s)[w].label)},null,8,["label","name","placeholder"]))),128))],64)}}}),_a=n.defineComponent({emits:["signUpSubmit"],setup(e,{emit:t}){const r=at(Ze),a=r(),o=r(),{hasValidationErrors:i,isPending:s,error:l}=n.toRefs(a),u=n.useAttrs(),c=n.computed(()=>P("Create Account")),d=p=>{let{checked:m,name:h,type:C,value:b}=p.target;C==="checkbox"&&!m&&(b=void 0),o.updateForm({name:h,value:b})},v=p=>{(u==null?void 0:u.onSignUpSubmit)?t("signUpSubmit",p):f()},f=()=>{o.submitForm()};return(p,m)=>{const h=Fe,C=Re,b=we,g=pe,w=Oe,S=De;return n.renderSlot(p.$slots,"signUpSlotI",n.normalizeProps(n.guardReactiveProps(p.$attrs)),()=>[n.renderSlot(p.$slots,"header"),n.createVNode(g,n.normalizeProps(n.guardReactiveProps(p.$attrs)),{default:n.withCtx(()=>[n.createVNode(w,{onInput:d,onSubmit:n.withModifiers(v,["prevent"])},{default:n.withCtx(()=>[n.createVNode(Gr),n.createVNode(g,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(h,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:n.unref(s)},{fieldSetI:n.withCtx(({slotData:_})=>[n.renderSlot(p.$slots,"signup-fields",{info:_})]),default:n.withCtx(()=>[n.createVNode(Sa)]),_:3},8,["disabled"]),n.unref(l)?(n.openBlock(),n.createBlock(C,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(P)(n.unref(l))),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(b,{class:"amplify-field-group__control","data-fullwidth":"true","data-loading":"false","data-variation":"primary",style:{"border-radius":"0px","font-weight":"normal"},disabled:n.unref(s)||n.unref(i)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(c)),1)]),_:1},8,["disabled"])]),_:3})]),_:3},8,["onSubmit"])]),_:3},16),n.createVNode(S,null,{default:n.withCtx(()=>[n.renderSlot(p.$slots,"footer")]),_:3})])}}}),p3=n.defineComponent({props:{label:null,id:null,active:{type:Boolean,default:!1}},setup(e){const t=e,{id:r,label:a}=t,{active:o}=n.toRefs(t);return(i,s)=>{const l=pe;return n.openBlock(),n.createBlock(l,{tabindex:n.unref(o)?0:-1,"data-state":n.unref(o)?"active":"inactive","aria-selected":n.unref(o)?"true":"false","aria-controls":`radix-id-${n.unref(r)}-8-content-0`,id:`radix-id-${n.unref(r)}-8-trigger-0`,"data-orientation":"horizontal",role:"tab",class:"amplify-tabs-item","data-spacing":"equal","data-radix-collection-item":""},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(a)),1)]),_:1},8,["tabindex","data-state","aria-selected","aria-controls","id"])}}}),m3={};function h3(e,t){const r=pe;return n.openBlock(),n.createBlock(r,{tabindex:"0","aria-orientation":"horizontal","data-orientation":"horizontal",role:"tablist",style:{outline:"none"}},{default:n.withCtx(()=>[n.createVNode(r,{class:"amplify-flex amplify-tabs","data-indicator-position":"top",style:{gap:"0px","justify-content":"center"}},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3})]),_:3})}var g3=Bt(m3,[["render",h3]]);const Je=n.defineComponent({props:{level:{type:Number,default:1}},inheritAttrs:!1,setup(e,{slots:t,attrs:r}){var i,s;const a=t.default?t.default():[],o=t.headingI?t.headingI():[];if(((s=(i=o[0])==null?void 0:i.children)==null?void 0:s.length)===0)o[0].children=[n.h(`h${e.level}`,Ne({},r),[a])];else return()=>n.h(`h${e.level}`,Ne({"data-amplify-heading":""},r),[o[0]?n.h(o[0].children[0]):n.h(a[0])]);return()=>o}}),y3={};function b3(e,t){return n.renderSlot(e.$slots,"textI",n.normalizeProps(n.guardReactiveProps(e.$attrs)),()=>[n.createElementVNode("span",n.mergeProps(e.$attrs,{"data-amplify-text":""}),[n.renderSlot(e.$slots,"default")],16)])}var js=Bt(y3,[["render",b3]]);const xa=n.defineComponent({emits:["confirmSignUpSubmit","lostCodeClicked"],setup(e,{emit:t}){const r=n.useAttrs(),a=at(Ze),{isPending:o,error:i,codeDeliveryDetails:s}=n.toRefs(a()),{submitForm:l,updateForm:u,resendCode:c}=a(),d=n.computed(()=>{var S,_;return((S=s.value)==null?void 0:S.DeliveryMedium)==="EMAIL"?P("We Emailed You"):((_=s.value)==null?void 0:_.DeliveryMedium)==="SMS"?P("We Texted You"):P("We Sent A Code")}),v=n.computed(()=>P("Enter your code")),f=n.computed(()=>P("Confirmation Code")),p=n.computed(()=>P("Resend Code")),m=n.computed(()=>P("Confirm")),h=n.computed(()=>{var S,_,I,x;return((S=s.value)==null?void 0:S.DeliveryMedium)==="EMAIL"?`Your code is on the way. To log in, enter the code we emailed to ${(_=s.value)==null?void 0:_.Destination}. It may take a minute to arrive.`:((I=s.value)==null?void 0:I.DeliveryMedium)==="SMS"?`Your code is on the way. To log in, enter the code we texted to ${(x=s.value)==null?void 0:x.Destination}. It may take a minute to arrive.`:P("Your code is on the way. To log in, enter the code we sent you. It may take a minute to arrive.")}),C=S=>{const{name:_,value:I}=S.target;u({name:_,value:I})},b=S=>{(r==null?void 0:r.onConfirmSignUpSubmit)?t("confirmSignUpSubmit",S):g()},g=S=>{l()},w=()=>{(r==null?void 0:r.onLostCodeClicked)?t("lostCodeClicked"):c()};return(S,_)=>{const I=Je,x=js,N=$e,k=ke,B=pe,V=Fe,D=Re,L=we,Q=De,Be=Oe;return n.renderSlot(S.$slots,"confirmSignUpSlotI",n.normalizeProps(n.guardReactiveProps(S.$attrs)),()=>[n.createVNode(B,n.normalizeProps(n.guardReactiveProps(S.$attrs)),{default:n.withCtx(()=>[n.createVNode(Be,{onInput:C,onSubmit:n.withModifiers(b,["prevent"])},{default:n.withCtx(()=>[n.createVNode(B,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.renderSlot(S.$slots,"header",{},()=>[n.createVNode(I,{class:"amplify-heading",style:{"font-size":"1.5rem"},level:3},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)]),_:1})]),n.createVNode(x,{style:{"margin-bottom":"1rem"}},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(h)),1)]),_:1}),n.createVNode(V,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:n.unref(o)},{default:n.withCtx(()=>[n.createVNode(B,{class:"amplify-flex amplify-field amplify-textfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(N,{class:"sr-only amplify-label",for:"amplify-field-124b"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(f)),1)]),_:1}),n.createVNode(B,{class:"amplify-flex"},{default:n.withCtx(()=>[n.createVNode(k,{class:"amplify-input amplify-field-group__control",id:"amplify-field-124b","aria-invalid":"false",autocomplete:"one-time-code",name:"confirmation_code",required:"",placeholder:n.unref(v)},null,8,["placeholder"])]),_:1})]),_:1})]),_:1},8,["disabled"]),n.createVNode(Q,{class:"amplify-flex",style:{"flex-direction":"column","align-items":"unset"}},{default:n.withCtx(()=>[n.unref(i)?(n.openBlock(),n.createBlock(D,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(P)(n.unref(i))),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(L,{class:"amplify-field-group__control","data-fullwidth":"false","data-loading":"false","data-variation":"primary",type:"submit",style:{"font-weight":"normal"},disabled:n.unref(o)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(m)),1)]),_:1},8,["disabled"]),n.createVNode(L,{class:"amplify-field-group__control","data-fullwidth":"false","data-variation":"default",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(w,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(p)),1)]),_:1},8,["onClick"]),n.renderSlot(S.$slots,"footer",{onConfirmSignUpSubmit:b,onLostCodeClicked:w})]),_:3})]),_:3})]),_:3},8,["onSubmit"])]),_:3},16)])}}}),C3=n.createTextVNode(" Code * "),Ea=n.defineComponent({emits:["confirmSignInSubmit","backToSignInClicked"],setup(e,{emit:t}){const r=n.useAttrs(),{state:a,send:o}=be(),i=n.computed(()=>Ie(a.value)),s=i.value.context.challengeName;let l="SMS";s===As.SOFTWARE_TOKEN_MFA&&(l="TOTP");const u=`Confirm ${l} Code`,c=n.computed(()=>P("Back to Sign In")),d=n.computed(()=>P("Confirm")),v=n.computed(()=>P("Code")),f=C=>{const{name:b,value:g}=C.target;o({type:"CHANGE",data:{name:b,value:g}})},p=C=>{(r==null?void 0:r.onConfirmSignInSubmit)?t("confirmSignInSubmit",C):m(C)},m=C=>{const b=new FormData(C.target);o({type:"SUBMIT",data:Ne({},Object.fromEntries(b))})},h=()=>{(r==null?void 0:r.onBackToSignInClicked)?t("backToSignInClicked"):o({type:"SIGN_IN"})};return(C,b)=>{const g=Je,w=$e,S=ke,_=pe,I=Re,x=we,N=De,k=Fe,B=Oe;return n.renderSlot(C.$slots,"confirmSignInSlotI",n.normalizeProps(n.guardReactiveProps(C.$attrs)),()=>[n.createVNode(_,n.normalizeProps(n.guardReactiveProps(C.$attrs)),{default:n.withCtx(()=>[n.createVNode(B,{"data-amplify-authenticator-confirmsignin":"",onInput:f,onSubmit:n.withModifiers(p,["prevent"])},{default:n.withCtx(()=>[n.createVNode(k,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:n.unref(i).matches("confirmSignIn.pending")},{default:n.withCtx(()=>[n.renderSlot(C.$slots,"header",{},()=>[n.createVNode(g,{level:3,class:"amplify-heading"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(u))]),_:1})]),n.createVNode(_,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(_,{class:"amplify-flex amplify-field amplify-textfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(w,{class:"sr-only amplify-label",for:"amplify-field-51ee"},{default:n.withCtx(()=>[C3]),_:1}),n.createVNode(_,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(S,{class:"amplify-input amplify-field-group__control",id:"amplify-field-51ee","aria-invalid":"false",name:"confirmation_code",placeholder:n.unref(v),autocomplete:"one-time-code",required:"",type:"text"},null,8,["placeholder"])]),_:1})]),_:1})]),_:1}),n.createVNode(N,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>{var V,D;return[((D=(V=n.unref(i))==null?void 0:V.context)==null?void 0:D.remoteError)?(n.openBlock(),n.createBlock(I,{key:0},{default:n.withCtx(()=>{var L,Q;return[n.createTextVNode(n.toDisplayString(n.unref(P)((Q=(L=n.unref(i))==null?void 0:L.context)==null?void 0:Q.remoteError)),1)]}),_:1})):n.createCommentVNode("",!0),n.createVNode(x,{class:"amplify-field-group__control","data-fullwidth":"false","data-loading":"false","data-variation":"primary",style:{"font-weight":"normal"},disabled:n.unref(i).matches("confirmSignIn.pending")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)]),_:1},8,["disabled"]),n.createVNode(x,{class:"amplify-field-group__control","data-fullwidth":"false","data-size":"small","data-variation":"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(h,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(c)),1)]),_:1},8,["onClick"]),n.renderSlot(C.$slots,"footer",{onBackToSignInClicked:h,onConfirmSignInSubmit:p})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}});var Kt={},w3=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Gs={},xe={};let Aa;const S3=[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 S3[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.');Aa=t};xe.isKanjiModeEnabled=function(){return typeof Aa!="undefined"};xe.toSJIS=function(t){return Aa(t)};var Wr={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.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: "+r)}}e.isValid=function(a){return a&&typeof a.bit!="undefined"&&a.bit>=0&&a.bit<4},e.from=function(a,o){if(e.isValid(a))return a;try{return t(a)}catch{return o}}})(Wr);function Ws(){this.buffer=[],this.length=0}Ws.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 r=0;r<t;r++)this.putBit((e>>>t-r-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 _3=Ws;function qt(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)}qt.prototype.set=function(e,t,r,a){const o=e*this.size+t;this.data[o]=r,a&&(this.reservedBit[o]=!0)};qt.prototype.get=function(e,t){return this.data[e*this.size+t]};qt.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r};qt.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var x3=qt,Hs={};(function(e){const t=xe.getSymbolSize;e.getRowColCoords=function(a){if(a===1)return[];const o=Math.floor(a/7)+2,i=t(a),s=i===145?26:Math.ceil((i-13)/(2*o-2))*2,l=[i-7];for(let u=1;u<o-1;u++)l[u]=l[u-1]-s;return l.push(6),l.reverse()},e.getPositions=function(a){const o=[],i=e.getRowColCoords(a),s=i.length;for(let l=0;l<s;l++)for(let u=0;u<s;u++)l===0&&u===0||l===0&&u===s-1||l===s-1&&u===0||o.push([i[l],i[u]]);return o}})(Hs);var Ks={};const E3=xe.getSymbolSize,qs=7;Ks.getPositions=function(t){const r=E3(t);return[[0,0],[r-qs,0],[0,r-qs]]};var Ys={};(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(o){return o!=null&&o!==""&&!isNaN(o)&&o>=0&&o<=7},e.from=function(o){return e.isValid(o)?parseInt(o,10):void 0},e.getPenaltyN1=function(o){const i=o.size;let s=0,l=0,u=0,c=null,d=null;for(let v=0;v<i;v++){l=u=0,c=d=null;for(let f=0;f<i;f++){let p=o.get(v,f);p===c?l++:(l>=5&&(s+=t.N1+(l-5)),c=p,l=1),p=o.get(f,v),p===d?u++:(u>=5&&(s+=t.N1+(u-5)),d=p,u=1)}l>=5&&(s+=t.N1+(l-5)),u>=5&&(s+=t.N1+(u-5))}return s},e.getPenaltyN2=function(o){const i=o.size;let s=0;for(let l=0;l<i-1;l++)for(let u=0;u<i-1;u++){const c=o.get(l,u)+o.get(l,u+1)+o.get(l+1,u)+o.get(l+1,u+1);(c===4||c===0)&&s++}return s*t.N2},e.getPenaltyN3=function(o){const i=o.size;let s=0,l=0,u=0;for(let c=0;c<i;c++){l=u=0;for(let d=0;d<i;d++)l=l<<1&2047|o.get(c,d),d>=10&&(l===1488||l===93)&&s++,u=u<<1&2047|o.get(d,c),d>=10&&(u===1488||u===93)&&s++}return s*t.N3},e.getPenaltyN4=function(o){let i=0;const s=o.data.length;for(let u=0;u<s;u++)i+=o.data[u];return Math.abs(Math.ceil(i*100/s/5)-10)*t.N4};function r(a,o,i){switch(a){case e.Patterns.PATTERN000:return(o+i)%2==0;case e.Patterns.PATTERN001:return o%2==0;case e.Patterns.PATTERN010:return i%3==0;case e.Patterns.PATTERN011:return(o+i)%3==0;case e.Patterns.PATTERN100:return(Math.floor(o/2)+Math.floor(i/3))%2==0;case e.Patterns.PATTERN101:return o*i%2+o*i%3==0;case e.Patterns.PATTERN110:return(o*i%2+o*i%3)%2==0;case e.Patterns.PATTERN111:return(o*i%3+(o+i)%2)%2==0;default:throw new Error("bad maskPattern:"+a)}}e.applyMask=function(o,i){const s=i.size;for(let l=0;l<s;l++)for(let u=0;u<s;u++)i.isReserved(u,l)||i.xor(u,l,r(o,u,l))},e.getBestMask=function(o,i){const s=Object.keys(e.Patterns).length;let l=0,u=1/0;for(let c=0;c<s;c++){i(c),e.applyMask(c,o);const d=e.getPenaltyN1(o)+e.getPenaltyN2(o)+e.getPenaltyN3(o)+e.getPenaltyN4(o);e.applyMask(c,o),d<u&&(u=d,l=c)}return l}})(Ys);var Hr={};const Xe=Wr,Kr=[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],qr=[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];Hr.getBlocksCount=function(t,r){switch(r){case Xe.L:return Kr[(t-1)*4+0];case Xe.M:return Kr[(t-1)*4+1];case Xe.Q:return Kr[(t-1)*4+2];case Xe.H:return Kr[(t-1)*4+3];default:return}};Hr.getTotalCodewordsCount=function(t,r){switch(r){case Xe.L:return qr[(t-1)*4+0];case Xe.M:return qr[(t-1)*4+1];case Xe.Q:return qr[(t-1)*4+2];case Xe.H:return qr[(t-1)*4+3];default:return}};var Zs={},Yr={};const Yt=new Uint8Array(512),Zr=new Uint8Array(256);(function(){let t=1;for(let r=0;r<255;r++)Yt[r]=t,Zr[t]=r,t<<=1,t&256&&(t^=285);for(let r=255;r<512;r++)Yt[r]=Yt[r-255]})();Yr.log=function(t){if(t<1)throw new Error("log("+t+")");return Zr[t]};Yr.exp=function(t){return Yt[t]};Yr.mul=function(t,r){return t===0||r===0?0:Yt[Zr[t]+Zr[r]]};(function(e){const t=Yr;e.mul=function(a,o){const i=new Uint8Array(a.length+o.length-1);for(let s=0;s<a.length;s++)for(let l=0;l<o.length;l++)i[s+l]^=t.mul(a[s],o[l]);return i},e.mod=function(a,o){let i=new Uint8Array(a);for(;i.length-o.length>=0;){const s=i[0];for(let u=0;u<o.length;u++)i[u]^=t.mul(o[u],s);let l=0;for(;l<i.length&&i[l]===0;)l++;i=i.slice(l)}return i},e.generateECPolynomial=function(a){let o=new Uint8Array([1]);for(let i=0;i<a;i++)o=e.mul(o,new Uint8Array([1,t.exp(i)]));return o}})(Zs);const Js=Zs;function Ia(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}Ia.prototype.initialize=function(t){this.degree=t,this.genPoly=Js.generateECPolynomial(this.degree)};Ia.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const r=new Uint8Array(t.length+this.degree);r.set(t);const a=Js.mod(r,this.genPoly),o=this.degree-a.length;if(o>0){const i=new Uint8Array(this.degree);return i.set(a,o),i}return a};var A3=Ia,Xs={},Qe={},Na={};Na.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var Me={};const Qs="[0-9]+",I3="[A-Z $%*+\\-./:]+";let Zt="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Zt=Zt.replace(/u/g,"\\u");const N3="(?:(?![A-Z0-9 $%*+\\-./:]|"+Zt+`)(?:.|[\r
118
+ ]))+`;Me.KANJI=new RegExp(Zt,"g");Me.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");Me.BYTE=new RegExp(N3,"g");Me.NUMERIC=new RegExp(Qs,"g");Me.ALPHANUMERIC=new RegExp(I3,"g");const P3=new RegExp("^"+Zt+"$"),T3=new RegExp("^"+Qs+"$"),$3=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Me.testKanji=function(t){return P3.test(t)};Me.testNumeric=function(t){return T3.test(t)};Me.testAlphanumeric=function(t){return $3.test(t)};(function(e){const t=Na,r=Me;e.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(i,s){if(!i.ccBits)throw new Error("Invalid mode: "+i);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?i.ccBits[0]:s<27?i.ccBits[1]:i.ccBits[2]},e.getBestModeForData=function(i){return r.testNumeric(i)?e.NUMERIC:r.testAlphanumeric(i)?e.ALPHANUMERIC:r.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 a(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.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: "+o)}}e.from=function(i,s){if(e.isValid(i))return i;try{return a(i)}catch{return s}}})(Qe);(function(e){const t=xe,r=Hr,a=Wr,o=Qe,i=Na,s=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,l=t.getBCHDigit(s);function u(f,p,m){for(let h=1;h<=40;h++)if(p<=e.getCapacity(h,m,f))return h}function c(f,p){return o.getCharCountIndicator(f,p)+4}function d(f,p){let m=0;return f.forEach(function(h){m+=c(h.mode,p)+h.getBitsLength()}),m}function v(f,p){for(let m=1;m<=40;m++)if(d(f,m)<=e.getCapacity(m,p,o.MIXED))return m}e.from=function(p,m){return i.isValid(p)?parseInt(p,10):m},e.getCapacity=function(p,m,h){if(!i.isValid(p))throw new Error("Invalid QR Code version");typeof h=="undefined"&&(h=o.BYTE);const C=t.getSymbolTotalCodewords(p),b=r.getTotalCodewordsCount(p,m),g=(C-b)*8;if(h===o.MIXED)return g;const w=g-c(h,p);switch(h){case o.NUMERIC:return Math.floor(w/10*3);case o.ALPHANUMERIC:return Math.floor(w/11*2);case o.KANJI:return Math.floor(w/13);case o.BYTE:default:return Math.floor(w/8)}},e.getBestVersionForData=function(p,m){let h;const C=a.from(m,a.M);if(Array.isArray(p)){if(p.length>1)return v(p,C);if(p.length===0)return 1;h=p[0]}else h=p;return u(h.mode,h.getLength(),C)},e.getEncodedBits=function(p){if(!i.isValid(p)||p<7)throw new Error("Invalid QR Code version");let m=p<<12;for(;t.getBCHDigit(m)-l>=0;)m^=s<<t.getBCHDigit(m)-l;return p<<12|m}})(Xs);var el={};const Pa=xe,tl=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,k3=1<<14|1<<12|1<<10|1<<4|1<<1,rl=Pa.getBCHDigit(tl);el.getEncodedBits=function(t,r){const a=t.bit<<3|r;let o=a<<10;for(;Pa.getBCHDigit(o)-rl>=0;)o^=tl<<Pa.getBCHDigit(o)-rl;return(a<<10|o)^k3};var nl={};const B3=Qe;function It(e){this.mode=B3.NUMERIC,this.data=e.toString()}It.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};It.prototype.getLength=function(){return this.data.length};It.prototype.getBitsLength=function(){return It.getBitsLength(this.data.length)};It.prototype.write=function(t){let r,a,o;for(r=0;r+3<=this.data.length;r+=3)a=this.data.substr(r,3),o=parseInt(a,10),t.put(o,10);const i=this.data.length-r;i>0&&(a=this.data.substr(r),o=parseInt(a,10),t.put(o,i*3+1))};var F3=It;const R3=Qe,Ta=["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 Nt(e){this.mode=R3.ALPHANUMERIC,this.data=e}Nt.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};Nt.prototype.getLength=function(){return this.data.length};Nt.prototype.getBitsLength=function(){return Nt.getBitsLength(this.data.length)};Nt.prototype.write=function(t){let r;for(r=0;r+2<=this.data.length;r+=2){let a=Ta.indexOf(this.data[r])*45;a+=Ta.indexOf(this.data[r+1]),t.put(a,11)}this.data.length%2&&t.put(Ta.indexOf(this.data[r]),6)};var O3=Nt,D3=function(t){for(var r=[],a=t.length,o=0;o<a;o++){var i=t.charCodeAt(o);if(i>=55296&&i<=56319&&a>o+1){var s=t.charCodeAt(o+1);s>=56320&&s<=57343&&(i=(i-55296)*1024+s-56320+65536,o+=1)}if(i<128){r.push(i);continue}if(i<2048){r.push(i>>6|192),r.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){r.push(i>>12|224),r.push(i>>6&63|128),r.push(i&63|128);continue}if(i>=65536&&i<=1114111){r.push(i>>18|240),r.push(i>>12&63|128),r.push(i>>6&63|128),r.push(i&63|128);continue}r.push(239,191,189)}return new Uint8Array(r).buffer};const V3=D3,U3=Qe;function Pt(e){this.mode=U3.BYTE,this.data=new Uint8Array(V3(e))}Pt.getBitsLength=function(t){return t*8};Pt.prototype.getLength=function(){return this.data.length};Pt.prototype.getBitsLength=function(){return Pt.getBitsLength(this.data.length)};Pt.prototype.write=function(e){for(let t=0,r=this.data.length;t<r;t++)e.put(this.data[t],8)};var M3=Pt;const L3=Qe,z3=xe;function Tt(e){this.mode=L3.KANJI,this.data=e}Tt.getBitsLength=function(t){return t*13};Tt.prototype.getLength=function(){return this.data.length};Tt.prototype.getBitsLength=function(){return Tt.getBitsLength(this.data.length)};Tt.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let r=z3.toSJIS(this.data[t]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
119
+ Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),e.put(r,13)}};var j3=Tt,al={exports:{}};(function(e){var t={single_source_shortest_paths:function(r,a,o){var i={},s={};s[a]=0;var l=t.PriorityQueue.make();l.push(a,0);for(var u,c,d,v,f,p,m,h,C;!l.empty();){u=l.pop(),c=u.value,v=u.cost,f=r[c]||{};for(d in f)f.hasOwnProperty(d)&&(p=f[d],m=v+p,h=s[d],C=typeof s[d]=="undefined",(C||h>m)&&(s[d]=m,l.push(d,m),i[d]=c))}if(typeof o!="undefined"&&typeof s[o]=="undefined"){var b=["Could not find a path from ",a," to ",o,"."].join("");throw new Error(b)}return i},extract_shortest_path_from_predecessor_list:function(r,a){for(var o=[],i=a;i;)o.push(i),i=r[i];return o.reverse(),o},find_path:function(r,a,o){var i=t.single_source_shortest_paths(r,a,o);return t.extract_shortest_path_from_predecessor_list(i,o)},PriorityQueue:{make:function(r){var a=t.PriorityQueue,o={},i;r=r||{};for(i in a)a.hasOwnProperty(i)&&(o[i]=a[i]);return o.queue=[],o.sorter=r.sorter||a.default_sorter,o},default_sorter:function(r,a){return r.cost-a.cost},push:function(r,a){var o={value:r,cost:a};this.queue.push(o),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(al);(function(e){const t=Qe,r=F3,a=O3,o=M3,i=j3,s=Me,l=xe,u=al.exports;function c(b){return unescape(encodeURIComponent(b)).length}function d(b,g,w){const S=[];let _;for(;(_=b.exec(w))!==null;)S.push({data:_[0],index:_.index,mode:g,length:_[0].length});return S}function v(b){const g=d(s.NUMERIC,t.NUMERIC,b),w=d(s.ALPHANUMERIC,t.ALPHANUMERIC,b);let S,_;return l.isKanjiModeEnabled()?(S=d(s.BYTE,t.BYTE,b),_=d(s.KANJI,t.KANJI,b)):(S=d(s.BYTE_KANJI,t.BYTE,b),_=[]),g.concat(w,S,_).sort(function(x,N){return x.index-N.index}).map(function(x){return{data:x.data,mode:x.mode,length:x.length}})}function f(b,g){switch(g){case t.NUMERIC:return r.getBitsLength(b);case t.ALPHANUMERIC:return a.getBitsLength(b);case t.KANJI:return i.getBitsLength(b);case t.BYTE:return o.getBitsLength(b)}}function p(b){return b.reduce(function(g,w){const S=g.length-1>=0?g[g.length-1]:null;return S&&S.mode===w.mode?(g[g.length-1].data+=w.data,g):(g.push(w),g)},[])}function m(b){const g=[];for(let w=0;w<b.length;w++){const S=b[w];switch(S.mode){case t.NUMERIC:g.push([S,{data:S.data,mode:t.ALPHANUMERIC,length:S.length},{data:S.data,mode:t.BYTE,length:S.length}]);break;case t.ALPHANUMERIC:g.push([S,{data:S.data,mode:t.BYTE,length:S.length}]);break;case t.KANJI:g.push([S,{data:S.data,mode:t.BYTE,length:c(S.data)}]);break;case t.BYTE:g.push([{data:S.data,mode:t.BYTE,length:c(S.data)}])}}return g}function h(b,g){const w={},S={start:{}};let _=["start"];for(let I=0;I<b.length;I++){const x=b[I],N=[];for(let k=0;k<x.length;k++){const B=x[k],V=""+I+k;N.push(V),w[V]={node:B,lastCount:0},S[V]={};for(let D=0;D<_.length;D++){const L=_[D];w[L]&&w[L].node.mode===B.mode?(S[L][V]=f(w[L].lastCount+B.length,B.mode)-f(w[L].lastCount,B.mode),w[L].lastCount+=B.length):(w[L]&&(w[L].lastCount=B.length),S[L][V]=f(B.length,B.mode)+4+t.getCharCountIndicator(B.mode,g))}}_=N}for(let I=0;I<_.length;I++)S[_[I]].end=0;return{map:S,table:w}}function C(b,g){let w;const S=t.getBestModeForData(b);if(w=t.from(g,S),w!==t.BYTE&&w.bit<S.bit)throw new Error('"'+b+'" cannot be encoded with mode '+t.toString(w)+`.
120
+ Suggested mode is: `+t.toString(S));switch(w===t.KANJI&&!l.isKanjiModeEnabled()&&(w=t.BYTE),w){case t.NUMERIC:return new r(b);case t.ALPHANUMERIC:return new a(b);case t.KANJI:return new i(b);case t.BYTE:return new o(b)}}e.fromArray=function(g){return g.reduce(function(w,S){return typeof S=="string"?w.push(C(S,null)):S.data&&w.push(C(S.data,S.mode)),w},[])},e.fromString=function(g,w){const S=v(g,l.isKanjiModeEnabled()),_=m(S),I=h(_,w),x=u.find_path(I.map,"start","end"),N=[];for(let k=1;k<x.length-1;k++)N.push(I.table[x[k]].node);return e.fromArray(p(N))},e.rawSplit=function(g){return e.fromArray(v(g,l.isKanjiModeEnabled()))}})(nl);const Jr=xe,$a=Wr,G3=_3,W3=x3,H3=Hs,K3=Ks,ka=Ys,Ba=Hr,q3=A3,Xr=Xs,Y3=el,Z3=Qe,Fa=nl;function J3(e,t){const r=e.size,a=K3.getPositions(t);for(let o=0;o<a.length;o++){const i=a[o][0],s=a[o][1];for(let l=-1;l<=7;l++)if(!(i+l<=-1||r<=i+l))for(let u=-1;u<=7;u++)s+u<=-1||r<=s+u||(l>=0&&l<=6&&(u===0||u===6)||u>=0&&u<=6&&(l===0||l===6)||l>=2&&l<=4&&u>=2&&u<=4?e.set(i+l,s+u,!0,!0):e.set(i+l,s+u,!1,!0))}}function X3(e){const t=e.size;for(let r=8;r<t-8;r++){const a=r%2==0;e.set(r,6,a,!0),e.set(6,r,a,!0)}}function Q3(e,t){const r=H3.getPositions(t);for(let a=0;a<r.length;a++){const o=r[a][0],i=r[a][1];for(let s=-2;s<=2;s++)for(let l=-2;l<=2;l++)s===-2||s===2||l===-2||l===2||s===0&&l===0?e.set(o+s,i+l,!0,!0):e.set(o+s,i+l,!1,!0)}}function ex(e,t){const r=e.size,a=Xr.getEncodedBits(t);let o,i,s;for(let l=0;l<18;l++)o=Math.floor(l/3),i=l%3+r-8-3,s=(a>>l&1)==1,e.set(o,i,s,!0),e.set(i,o,s,!0)}function Ra(e,t,r){const a=e.size,o=Y3.getEncodedBits(t,r);let i,s;for(i=0;i<15;i++)s=(o>>i&1)==1,i<6?e.set(i,8,s,!0):i<8?e.set(i+1,8,s,!0):e.set(a-15+i,8,s,!0),i<8?e.set(8,a-i-1,s,!0):i<9?e.set(8,15-i-1+1,s,!0):e.set(8,15-i-1,s,!0);e.set(a-8,8,1,!0)}function tx(e,t){const r=e.size;let a=-1,o=r-1,i=7,s=0;for(let l=r-1;l>0;l-=2)for(l===6&&l--;;){for(let u=0;u<2;u++)if(!e.isReserved(o,l-u)){let c=!1;s<t.length&&(c=(t[s]>>>i&1)==1),e.set(o,l-u,c),i--,i===-1&&(s++,i=7)}if(o+=a,o<0||r<=o){o-=a,a=-a;break}}}function rx(e,t,r){const a=new G3;r.forEach(function(u){a.put(u.mode.bit,4),a.put(u.getLength(),Z3.getCharCountIndicator(u.mode,e)),u.write(a)});const o=Jr.getSymbolTotalCodewords(e),i=Ba.getTotalCodewordsCount(e,t),s=(o-i)*8;for(a.getLengthInBits()+4<=s&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(0);const l=(s-a.getLengthInBits())/8;for(let u=0;u<l;u++)a.put(u%2?17:236,8);return nx(a,e,t)}function nx(e,t,r){const a=Jr.getSymbolTotalCodewords(t),o=Ba.getTotalCodewordsCount(t,r),i=a-o,s=Ba.getBlocksCount(t,r),l=a%s,u=s-l,c=Math.floor(a/s),d=Math.floor(i/s),v=d+1,f=c-d,p=new q3(f);let m=0;const h=new Array(s),C=new Array(s);let b=0;const g=new Uint8Array(e.buffer);for(let x=0;x<s;x++){const N=x<u?d:v;h[x]=g.slice(m,m+N),C[x]=p.encode(h[x]),m+=N,b=Math.max(b,N)}const w=new Uint8Array(a);let S=0,_,I;for(_=0;_<b;_++)for(I=0;I<s;I++)_<h[I].length&&(w[S++]=h[I][_]);for(_=0;_<f;_++)for(I=0;I<s;I++)w[S++]=C[I][_];return w}function ax(e,t,r,a){let o;if(Array.isArray(e))o=Fa.fromArray(e);else if(typeof e=="string"){let c=t;if(!c){const d=Fa.rawSplit(e);c=Xr.getBestVersionForData(d,r)}o=Fa.fromString(e,c||40)}else throw new Error("Invalid data");const i=Xr.getBestVersionForData(o,r);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(`
121
121
  The chosen QR Code version cannot contain this amount of data.
122
122
  Minimum version required to store current data is: `+i+`.
123
- `);const s=j3(t,r,o),l=Jr.getSymbolSize(t),u=new k3(l);return V3(u,t),U3(u),M3(u,t),Ra(u,r,0),t>=7&&L3(u,t),z3(u,s),isNaN(a)&&(a=ka.getBestMask(u,Ra.bind(null,u,r))),ka.applyMask(a,u),Ra(u,r,a),{modules:u,version:t,errorCorrectionLevel:r,maskPattern:a,segments:o}}Gs.create=function(t,r){if(typeof t=="undefined"||t==="")throw new Error("No input text");let a=$a.M,o,i;return typeof r!="undefined"&&(a=$a.from(r.errorCorrectionLevel,$a.M),o=Xr.from(r.version),i=ka.from(r.maskPattern),r.toSJISFunc&&Jr.setToSJISFunction(r.toSJISFunc)),W3(t,o,a,i)};var ol={},Da={};(function(e){function t(r){if(typeof r=="number"&&(r=r.toString()),typeof r!="string")throw new Error("Color should be defined as hex string");let a=r.slice().replace("#","").split("");if(a.length<3||a.length===5||a.length>8)throw new Error("Invalid hex color: "+r);(a.length===3||a.length===4)&&(a=Array.prototype.concat.apply([],a.map(function(i){return[i,i]}))),a.length===6&&a.push("F","F");const o=parseInt(a.join(""),16);return{r:o>>24&255,g:o>>16&255,b:o>>8&255,a:o&255,hex:"#"+a.slice(0,6).join("")}}e.getOptions=function(a){a||(a={}),a.color||(a.color={});const o=typeof a.margin=="undefined"||a.margin===null||a.margin<0?4:a.margin,i=a.width&&a.width>=21?a.width:void 0,s=a.scale||4;return{width:i,scale:i?4:s,margin:o,color:{dark:t(a.color.dark||"#000000ff"),light:t(a.color.light||"#ffffffff")},type:a.type,rendererOpts:a.rendererOpts||{}}},e.getScale=function(a,o){return o.width&&o.width>=a+o.margin*2?o.width/(a+o.margin*2):o.scale},e.getImageWidth=function(a,o){const i=e.getScale(a,o);return Math.floor((a+o.margin*2)*i)},e.qrToImageData=function(a,o,i){const s=o.modules.size,l=o.modules.data,u=e.getScale(s,i),c=Math.floor((s+i.margin*2)*u),d=i.margin*u,v=[i.color.light,i.color.dark];for(let f=0;f<c;f++)for(let p=0;p<c;p++){let m=(f*c+p)*4,h=i.color.light;if(f>=d&&p>=d&&f<c-d&&p<c-d){const C=Math.floor((f-d)/u),b=Math.floor((p-d)/u);h=v[l[C*s+b]?1:0]}a[m++]=h.r,a[m++]=h.g,a[m++]=h.b,a[m]=h.a}}})(Da);(function(e){const t=Da;function r(o,i,s){o.clearRect(0,0,i.width,i.height),i.style||(i.style={}),i.height=s,i.width=s,i.style.height=s+"px",i.style.width=s+"px"}function a(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(i,s,l){let u=l,c=s;typeof u=="undefined"&&(!s||!s.getContext)&&(u=s,s=void 0),s||(c=a()),u=t.getOptions(u);const d=t.getImageWidth(i.modules.size,u),v=c.getContext("2d"),f=v.createImageData(d,d);return t.qrToImageData(f.data,i,u),r(v,c,d),v.putImageData(f,0,0),c},e.renderToDataURL=function(i,s,l){let u=l;typeof u=="undefined"&&(!s||!s.getContext)&&(u=s,s=void 0),u||(u={});const c=e.render(i,s,u),d=u.type||"image/png",v=u.rendererOpts||{};return c.toDataURL(d,v.quality)}})(ol);var il={};const H3=Da;function sl(e,t){const r=e.a/255,a=t+'="'+e.hex+'"';return r<1?a+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':a}function Oa(e,t,r){let a=e+t;return typeof r!="undefined"&&(a+=" "+r),a}function K3(e,t,r){let a="",o=0,i=!1,s=0;for(let l=0;l<e.length;l++){const u=Math.floor(l%t),c=Math.floor(l/t);!u&&!i&&(i=!0),e[l]?(s++,l>0&&u>0&&e[l-1]||(a+=i?Oa("M",u+r,.5+c+r):Oa("m",o,0),o=0,i=!1),u+1<t&&e[l+1]||(a+=Oa("h",s),s=0)):o++}return a}il.render=function(t,r,a){const o=H3.getOptions(r),i=t.modules.size,s=t.modules.data,l=i+o.margin*2,u=o.color.light.a?"<path "+sl(o.color.light,"fill")+' d="M0 0h'+l+"v"+l+'H0z"/>':"",c="<path "+sl(o.color.dark,"stroke")+' d="'+K3(s,i,o.margin)+'"/>',d='viewBox="0 0 '+l+" "+l+'"',v=o.width?'width="'+o.width+'" height="'+o.width+'" ':"",f='<svg xmlns="http://www.w3.org/2000/svg" '+v+d+' shape-rendering="crispEdges">'+u+c+`</svg>
124
- `;return typeof a=="function"&&a(null,f),f};const q3=l3,Va=Gs,ll=ol,Y3=il;function Ua(e,t,r,a,o){const i=[].slice.call(arguments,1),s=i.length,l=typeof i[s-1]=="function";if(!l&&!q3())throw new Error("Callback required as last argument");if(l){if(s<2)throw new Error("Too few arguments provided");s===2?(o=r,r=t,t=a=void 0):s===3&&(t.getContext&&typeof o=="undefined"?(o=a,a=void 0):(o=a,a=r,r=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(r=t,t=a=void 0):s===2&&!t.getContext&&(a=r,r=t,t=void 0),new Promise(function(u,c){try{const d=Va.create(r,a);u(e(d,t,a))}catch(d){c(d)}})}try{const u=Va.create(r,a);o(null,e(u,t,a))}catch(u){o(u)}}Kt.create=Va.create;Kt.toCanvas=Ua.bind(null,ll.render);Kt.toDataURL=Ua.bind(null,ll.renderToDataURL);Kt.toString=Ua.bind(null,function(e,t,r){return Y3.render(e,r)});const Z3={key:0},J3=n.createTextVNode(" Setup TOTP "),X3=["src"],Q3={"data-amplify-copy-tooltip":""},ex=n.createElementVNode("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[n.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",fill:"black"})],-1),tx=n.createTextVNode("Code *"),rx=n.defineComponent({emits:["confirmSetupTOTPSubmit","backToSignInClicked"],setup(e,{emit:t}){const r=n.useAttrs(),{state:a,send:o}=be(),i=n.computed(()=>Ie(a.value));let s=n.reactive({qrCodeImageSource:"",isLoading:!0}),l=n.ref(""),u=n.ref(P("COPY"));function c(){navigator.clipboard.writeText(l.value),u.value=P("COPIED")}n.onMounted(async()=>{const b=new re.Logger("SetupTOTP-logger"),{user:g}=i.value.context;if(!!g)try{l.value=await re.Auth.setupTOTP(g);const w="AWSCognito",_=`otpauth://totp/${w}:${g.username}?secret=${l.value}&issuer=${w}`;s.qrCodeImageSource=await Kt.toDataURL(_)}catch(w){b.error(w)}finally{s.isLoading=!1}});const d=n.computed(()=>P("Back to Sign In")),v=n.computed(()=>P("Confirm")),f=n.computed(()=>P("Code")),p=b=>{const{name:g,value:w}=b.target;o({type:"CHANGE",data:{name:g,value:w}})},m=b=>{(r==null?void 0:r.onConfirmSetupTOTPSubmit)?t("confirmSetupTOTPSubmit",b):h(b)},h=b=>{const g=new FormData(b.target);o({type:"SUBMIT",data:Ne({},Object.fromEntries(g))})},C=()=>{(r==null?void 0:r.onBackToSignInClicked)?t("backToSignInClicked"):o({type:"SIGN_IN"})};return(b,g)=>{const w=Je,_=pe,S=$e,I=ke,x=Re,N=we,k=Oe,B=Fe,V=De;return n.renderSlot(b.$slots,"confirmSetupTOTPI",n.normalizeProps(n.guardReactiveProps(b.$attrs)),()=>[n.createVNode(_,n.normalizeProps(n.guardReactiveProps(b.$attrs)),{default:n.withCtx(()=>[n.createVNode(V,{"data-amplify-authenticator-setup-totp":"",onInput:p,onSubmit:n.withModifiers(m,["prevent"])},{default:n.withCtx(()=>[n.createVNode(B,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:n.unref(i).matches("confirmSignIn.pending")},{default:n.withCtx(()=>[n.unref(s).isLoading?(n.openBlock(),n.createElementBlock("p",Z3,"Loading...")):(n.openBlock(),n.createBlock(_,{key:1,class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.renderSlot(b.$slots,"header",{},()=>[n.createVNode(w,{class:"amplify-heading",level:3},{default:n.withCtx(()=>[J3]),_:1})]),n.createVNode(_,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createElementVNode("img",{class:"amplify-image","data-amplify-qrcode":"",src:n.unref(s).qrCodeImageSource,alt:"qr code",width:"228",height:"228"},null,8,X3),n.createVNode(_,{class:"amplify-flex","data-amplify-copy":""},{default:n.withCtx(()=>[n.createElementVNode("div",null,n.toDisplayString(n.unref(l)),1),n.createVNode(_,{"data-amplify-copy-svg":"",onClick:c},{default:n.withCtx(()=>[n.createElementVNode("div",Q3,n.toDisplayString(n.unref(u)),1),ex]),_:1})]),_:1}),n.createVNode(_,{class:"amplify-flex amplify-field amplify-textfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(S,{class:"sr-only amplify-label",for:"amplify-field-45d1"},{default:n.withCtx(()=>[tx]),_:1}),n.createVNode(_,{class:"amplify-flex"},{default:n.withCtx(()=>[n.createVNode(I,{class:"amplify-input amplify-field-group__control",id:"amplify-field-45d1","aria-invalid":"false",name:"confirmation_code",placeholder:n.unref(f),autocomplete:"one-time-code",required:"",type:"text"},null,8,["placeholder"])]),_:1})]),_:1})]),_:1}),n.createVNode(k,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>{var O;return[((O=n.unref(i).context)==null?void 0:O.remoteError)?(n.openBlock(),n.createBlock(x,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(P)(n.unref(i).context.remoteError)),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(N,{class:"amplify-field-group__control","data-fullwidth":"false","data-loading":"false","data-variation":"primary",type:"submit",style:{"font-weight":"normal"},disabled:n.unref(i).matches("confirmSignIn.pending")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(v)),1)]),_:1},8,["disabled"]),n.createVNode(N,{class:"amplify-field-group__control","data-fullwidth":"false","data-size":"small","data-variation":"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(C,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)]),_:1},8,["onClick"]),n.renderSlot(b.$slots,"footer",{onBackToSignInClicked:C,onSetupTOTPSubmit:m})]}),_:3})]),_:3}))]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),nx={},ax={"data-amplify-box":""};function ox(e,t){return n.openBlock(),n.createElementBlock("div",ax,[n.renderSlot(e.$slots,"default")])}var ul=Bt(nx,[["render",ox]]);const Ma=n.defineComponent({setup(e){const{state:t}=be(),r=n.computed(()=>Ie(t.value)),a=n.computed(()=>ge);let o=r.value.context.requiredAttributes;return o=o==null?void 0:o.filter(i=>{const s=!!ge[i];return s||console.debug(`Authenticator does not have a default implementation for ${i}. Customize the authenticator force-new-password-fields slot to add your own.`),s}),(i,s)=>(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(o),(l,u)=>{var c,d;return n.openBlock(),n.createBlock(zs,{key:u,label:n.unref(P)((c=n.unref(a)[l])==null?void 0:c.label),name:l,placeholder:n.unref(P)((d=n.unref(a)[l])==null?void 0:d.label)},null,8,["label","name","placeholder"])}),128))}}),La=n.defineComponent({emits:["haveAccountClicked","forceNewPasswordSubmit"],setup(e,{emit:t}){const r=n.useAttrs(),{state:a,send:o}=be(),s=at(Ze)(),l=n.computed(()=>Ie(a.value)),u=n.computed(()=>Ht(a.value)),c=n.computed(()=>P("Change Password")),d=n.computed(()=>P("Changing")),v=n.computed(()=>P("Back to Sign In")),f=n.computed(()=>P("Password")),p=n.computed(()=>P("Confirm Password")),m=()=>{(r==null?void 0:r.onHaveAccountClicked)?t("haveAccountClicked"):o({type:"SIGN_IN"})},h=w=>{(r==null?void 0:r.onForceNewPasswordSubmit)?t("forceNewPasswordSubmit",w):C(w)},C=w=>{const _=new FormData(w.target);o({type:"SUBMIT",data:Ne({},Object.fromEntries(_))})},b=w=>{const{name:_,value:S}=w.target;o({type:"CHANGE",data:{name:_,value:S}})};function g(w){const{name:_}=w.target;s.updateBlur({name:_})}return(w,_)=>{const S=Je,I=pe,x=ul,N=Re,k=we,B=Oe,V=Fe,O=De;return n.renderSlot(w.$slots,"forceNewPasswordI",n.normalizeProps(n.guardReactiveProps(w.$attrs)),()=>[n.createVNode(I,n.normalizeProps(n.guardReactiveProps(w.$attrs)),{default:n.withCtx(()=>[n.createVNode(O,{"data-amplify-authenticator-forcenewpassword":"",onInput:b,onSubmit:n.withModifiers(h,["prevent"])},{default:n.withCtx(()=>[n.createVNode(V,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:n.unref(l).matches("forceNewPassword.pending")},{default:n.withCtx(()=>[n.renderSlot(w.$slots,"header",{},()=>[n.createVNode(S,{level:3,class:"amplify-heading"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(c)),1)]),_:1})]),n.createVNode(I,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(I,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(Ge,{name:"password",label:n.unref(f),autocomplete:"new-password",ariainvalid:!!n.unref(u).validationError.confirm_password,onBlur:g},null,8,["label","ariainvalid"])]),_:1}),n.createVNode(I,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(Ge,{name:"confirm_password",label:n.unref(p),autocomplete:"new-password",ariainvalid:!!n.unref(u).validationError.confirm_password,onBlur:g},null,8,["label","ariainvalid"])]),_:1}),n.renderSlot(w.$slots,"force-new-password-form-fields",{},()=>[n.createVNode(Ma)])]),_:3}),n.createVNode(B,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.unref(u).validationError.confirm_password?(n.openBlock(),n.createBlock(x,{key:0,"data-ui-error":"",role:"alert","data-variation":"error",class:"amplify-text"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(P)(n.unref(u).validationError.confirm_password)),1)]),_:1})):n.createCommentVNode("",!0),n.unref(l).context.remoteError?(n.openBlock(),n.createBlock(N,{key:1,"data-ui-error":""},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(P)(n.unref(l).context.remoteError)),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(k,{class:"amplify-field-group__control","data-fullwidth":"false","data-loading":"false","data-variation":"primary",style:{"font-weight":"normal"},disabled:n.unref(l).matches("signUp.submit")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(l).matches("forceNewPassword.pending")?n.unref(d)+"\u2026":n.unref(c)),1)]),_:1},8,["disabled"]),n.createVNode(k,{class:"amplify-field-group__control","data-fullwidth":"false","data-size":"small","data-variation":"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(m,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(v)),1)]),_:1},8,["onClick"]),n.renderSlot(w.$slots,"footer",{onHaveAccountClicked:m,onForceNewPasswordSubmit:h})]),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),za=n.defineComponent({emits:["resetPasswordSubmit","backToSignInClicked"],setup(e,{emit:t}){const r=n.useAttrs(),a=at(Ze),{state:o,send:i}=a(),{error:s,isPending:l}=n.toRefs(a()),{label:u}=Ns(o.context),c=`Enter your ${u.toLowerCase()}`,d=n.computed(()=>P("Back to Sign In")),v=n.computed(()=>P("Reset your password")),f=n.computed(()=>P("Send Code")),p=n.computed(()=>P(c)),m=g=>{(r==null?void 0:r.onResetPasswordSubmit)?t("resetPasswordSubmit",g):h(g)},h=g=>{const w=new FormData(g.target);i({type:"SUBMIT",data:Object.fromEntries(w)})},C=g=>{const{name:w,value:_}=g.target;i({type:"CHANGE",data:{name:w,value:_}})},b=()=>{(r==null?void 0:r.onBackToSignInClicked)?t("backToSignInClicked"):i({type:"SIGN_IN"})};return(g,w)=>{const _=Je,S=$e,I=ke,x=pe,N=Fe,k=Re,B=we,V=Oe,O=De;return n.renderSlot(g.$slots,"resetPasswordSlotI",n.normalizeProps(n.guardReactiveProps(g.$attrs)),()=>[n.createVNode(O,n.mergeProps(g.$attrs,{"data-amplify-authenticator-resetpassword":"",onInput:C,onSubmit:n.withModifiers(m,["prevent"])}),{default:n.withCtx(()=>[n.createVNode(x,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.renderSlot(g.$slots,"header",{},()=>[n.createVNode(_,{class:"amplify-heading",level:3},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(v)),1)]),_:1})]),n.createVNode(N,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:n.unref(l)},{default:n.withCtx(()=>[n.createVNode(x,{class:"amplify-flex amplify-field amplify-textfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(S,{class:"sr-only amplify-label",for:"amplify-field-7dce"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(c))]),_:1}),n.createVNode(x,{class:"amplify-flex"},{default:n.withCtx(()=>[n.createVNode(I,{class:"amplify-input amplify-field-group__control",id:"amplify-field-7dce","aria-invalid":"false",name:"username",placeholder:n.unref(p),autocomplete:"username",required:"",type:"username"},null,8,["placeholder"])]),_:1})]),_:1})]),_:1},8,["disabled"]),n.createVNode(V,{class:"amplify-flex",style:{"flex-direction":"column","align-items":"unset"}},{default:n.withCtx(()=>[n.unref(s)?(n.openBlock(),n.createBlock(k,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(P)(n.unref(s))),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(B,{class:"amplify-field-group__control","data-fullwidth":"false","data-variation":"primary",type:"submit",style:{"font-weight":"normal"},disabled:n.unref(l)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(f)),1)]),_:1},8,["disabled"]),n.createVNode(B,{class:"amplify-field-group__control","data-fullwidth":"false","data-size":"small","data-variation":"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(b,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)]),_:1},8,["onClick"]),n.renderSlot(g.$slots,"footer",{onBackToSignInClicked:b,onResetPasswordSubmit:m})]),_:3})]),_:3})]),_:3},16,["onSubmit"])])}}}),ja=n.defineComponent({emits:["confirmResetPasswordSubmit","backToSignInClicked"],setup(e,{emit:t}){const{state:r,send:a}=be(),i=at(Ze)(),s=n.useAttrs(),l=n.computed(()=>Ie(r.value)),u=n.computed(()=>Ht(r.value)),c=n.computed(()=>P("Resend Code")),d=n.computed(()=>P("Confirmation Code")),v=n.computed(()=>P("Reset your Password")),f=n.computed(()=>P("Submit")),p=n.computed(()=>P("Code")),m=n.computed(()=>P("New password")),h=n.computed(()=>P("Confirm Password")),C=S=>{(s==null?void 0:s.onConfirmResetPasswordSubmit)?t("confirmResetPasswordSubmit",S):b(S)},b=S=>{const I=new FormData(S.target);a({type:"SUBMIT",data:Ne({},Object.fromEntries(I))})},g=()=>{a({type:"RESEND"})},w=S=>{const{name:I,value:x}=S.target;a({type:"CHANGE",data:{name:I,value:x}})};function _(S){const{name:I}=S.target;i.updateBlur({name:I})}return(S,I)=>{const x=Je,N=$e,k=ke,B=pe,V=ul,O=Re,L=we,Q=Oe,Be=Fe,ve=De;return n.renderSlot(S.$slots,"confirmResetPasswordSlotI",n.normalizeProps(n.guardReactiveProps(S.$attrs)),()=>[n.createVNode(B,n.normalizeProps(n.guardReactiveProps(S.$attrs)),{default:n.withCtx(()=>[n.createVNode(ve,{"data-amplify-authenticator-confirmResetpassword":"",onInput:w,onSubmit:n.withModifiers(C,["prevent"])},{default:n.withCtx(()=>[n.createVNode(Be,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:n.unref(l).matches("confirmResetPassword.pending")},{default:n.withCtx(()=>[n.renderSlot(S.$slots,"header",{},()=>[n.createVNode(x,{class:"amplify-heading",level:3},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(v)),1)]),_:1})]),n.createVNode(B,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(B,{class:"amplify-flex amplify-field amplify-textfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(N,{class:"sr-only amplify-label",for:"amplify-field-d653"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)]),_:1}),n.createVNode(B,{class:"amplify-flex"},{default:n.withCtx(()=>[n.createVNode(k,{class:"amplify-input amplify-field-group__control",id:"amplify-field-d653","aria-invalid":"false",autocomplete:"one-time-code",placeholder:n.unref(p),name:"confirmation_code",required:"",type:"number"},null,8,["placeholder"])]),_:1})]),_:1}),n.createVNode(B,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield password-field",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(Ge,{name:"password",label:n.unref(m),autocomplete:"current-password",ariainvalid:!!n.unref(u).validationError.confirm_password,onBlur:_},null,8,["label","ariainvalid"])]),_:1}),n.createVNode(B,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(Ge,{name:"confirm_password",label:n.unref(h),autocomplete:"new-password",ariainvalid:!!n.unref(u).validationError.confirm_password,onBlur:_},null,8,["label","ariainvalid"])]),_:1})]),_:1}),n.createVNode(Q,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>{var Le,We;return[n.unref(u).validationError.confirm_password?(n.openBlock(),n.createBlock(V,{key:0,"data-ui-error":"","data-variation":"error",role:"alert",class:"amplify-text"},{default:n.withCtx(()=>{var ae;return[n.createTextVNode(n.toDisplayString(n.unref(P)((ae=n.unref(u).validationError)==null?void 0:ae.confirm_password)),1)]}),_:1})):n.createCommentVNode("",!0),((We=(Le=n.unref(l))==null?void 0:Le.context)==null?void 0:We.remoteError)?(n.openBlock(),n.createBlock(O,{key:1},{default:n.withCtx(()=>{var ae,Se;return[n.createTextVNode(n.toDisplayString(n.unref(P)((Se=(ae=n.unref(l))==null?void 0:ae.context)==null?void 0:Se.remoteError)),1)]}),_:1})):n.createCommentVNode("",!0),n.createVNode(L,{class:"amplify-field-group__control","data-fullwidth":"false","data-variation":"primary",type:"submit",style:{"font-weight":"normal"},disabled:n.unref(l).matches("confirmResetPassword.pending")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(f)),1)]),_:1},8,["disabled"]),n.createVNode(L,{class:"amplify-field-group__control","data-fullwidth":"false","data-size":"small","data-variation":"link",type:"button",onClick:n.withModifiers(g,["prevent"]),style:{"font-weight":"normal"}},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(c)),1)]),_:1},8,["onClick"]),n.renderSlot(S.$slots,"footer",{onConfirmResetPasswordSubmit:C,onLostYourCodeClicked:g})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Ga=n.defineComponent({emits:["verifyUserSubmit","skipClicked"],setup(e,{emit:t}){const r=n.useAttrs(),{state:a,send:o}=be(),i=n.computed(()=>Ie(a.value)),s=i.value.context.unverifiedAttributes,l=n.computed(()=>P("Account recovery requires verified contact information")),u=n.computed(()=>P("Skip")),c=n.computed(()=>P("Verify")),d=n.computed(()=>P("Verify Contact")),v=h=>{const{name:C,value:b}=h.target;o({type:"CHANGE",data:{name:C,value:b}})},f=h=>{(r==null?void 0:r.onVerifyUserSubmit)?t("verifyUserSubmit",h):p(h)},p=h=>{const C=new FormData(h.target);o({type:"SUBMIT",data:Ne({},Object.fromEntries(C))})},m=()=>{(r==null?void 0:r.onSkipClicked)?t("skipClicked"):o("SKIP")};return(h,C)=>{const b=Je,g=$e,w=ke,_=js,S=pe,I=Re,x=we,N=Oe,k=Fe,B=De;return n.renderSlot(h.$slots,"verifyUserSlotI",{},()=>[n.createVNode(S,null,{default:n.withCtx(()=>[n.createVNode(B,{onInput:v,onSubmit:n.withModifiers(f,["prevent"])},{default:n.withCtx(()=>[n.createVNode(k,{disabled:n.unref(i).matches("verifyUser.pending"),class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.renderSlot(h.$slots,"header",{},()=>[n.createVNode(b,{class:"amplify-heading",level:3},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(l)),1)]),_:1})]),n.createVNode(S,{class:"amplify-flex amplify-field amplify-radiogroupfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(g,{class:"sr-only amplify-label",id:"amplify-field-493c"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)]),_:1}),n.createVNode(S,{class:"amplify-flex amplify-field amplify-radiogroupfield",style:{"flex-direction":"column"},"aria-labelledby":"amplify-field-493c"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(s),(V,O)=>(n.openBlock(),n.createBlock(g,{class:"amplify-flex amplify-radio","data-amplify-verify-label":"",id:"verify",key:V},{default:n.withCtx(()=>[n.createVNode(w,{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:O},null,8,["value"]),n.createVNode(_,{class:"amplify-flex amplify-radio__button","aria-hidden":"true"}),n.createVNode(_,{class:"amplify-text amplify-radio__label"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(ge)[O].label),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1}),n.createVNode(N,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>{var V,O;return[((O=(V=n.unref(i))==null?void 0:V.context)==null?void 0:O.remoteError)?(n.openBlock(),n.createBlock(I,{key:0},{default:n.withCtx(()=>{var L;return[n.createTextVNode(n.toDisplayString(n.unref(P)((L=n.unref(i))==null?void 0:L.context.remoteError)),1)]}),_:1})):n.createCommentVNode("",!0),n.createVNode(x,{class:"amplify-field-group__control","data-fullwidth":"false","data-variation":"primary",type:"submit",style:{"font-weight":"normal"},disabled:n.unref(i).matches("verifyUser.pending")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(c)),1)]),_:1},8,["disabled"]),n.createVNode(x,{class:"amplify-field-group__control","data-fullwidth":"false","data-size":"small","data-variation":"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(m,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(u)),1)]),_:1},8,["onClick"]),n.renderSlot(h.$slots,"footer",{onSkipClicked:m,onVerifyUserSubmit:f})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3})])}}}),Wa=n.defineComponent({emits:["confirmVerifyUserSubmit","skipClicked"],setup(e,{emit:t}){const r=n.useAttrs(),{state:a,send:o}=be(),i=n.computed(()=>Ie(a.value)),s=n.computed(()=>P("Account recovery requires verified contact information")),l=n.computed(()=>P("Skip"));n.computed(()=>P("Verify"));const u=n.computed(()=>P("Confirmation Code")),c=n.computed(()=>P("Code")),d=n.computed(()=>P("Submit")),v=h=>{const{name:C,value:b}=h.target;o({type:"CHANGE",data:{name:C,value:b}})},f=h=>{(r==null?void 0:r.onConfirmVerifyUserSubmit)?t("confirmVerifyUserSubmit",h):p(h)},p=h=>{const C=new FormData(h.target);o({type:"SUBMIT",data:Ne({},Object.fromEntries(C))})},m=()=>{(r==null?void 0:r.onSkipClicked)?t("skipClicked"):o({type:"SKIP"})};return(h,C)=>{const b=Je,g=$e,w=ke,_=pe,S=Re,I=we,x=Oe,N=Fe,k=De;return n.renderSlot(h.$slots,"confirmVerifyUserSlotI",n.normalizeProps(n.guardReactiveProps(h.$attrs)),()=>[n.createVNode(_,n.normalizeProps(n.guardReactiveProps(h.$attrs)),{default:n.withCtx(()=>[n.createVNode(k,{onInput:v,onSubmit:n.withModifiers(f,["prevent"])},{default:n.withCtx(()=>[n.createVNode(N,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:n.unref(i).matches("confirmVerifyUser.pending")},{default:n.withCtx(()=>[n.renderSlot(h.$slots,"header",{},()=>[n.createVNode(b,{level:3,class:"amplify-heading"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(s)),1)]),_:1})]),n.createVNode(_,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(_,{class:"amplify-flex amplify-field amplify-textfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(g,{class:"sr-only amplify-label",for:"amplify-field-c34b"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(u)),1)]),_:1}),n.createVNode(_,{class:"amplify-flex"},{default:n.withCtx(()=>[n.createVNode(w,{class:"amplify-input amplify-field-group__control",id:"amplify-field-c34b","aria-invalid":"false",autocomplete:"one-time-code",name:"confirmation_code",required:"",placeholder:n.unref(c),type:"text"},null,8,["placeholder"])]),_:1})]),_:1})]),_:1}),n.createVNode(x,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>{var B,V;return[((V=(B=n.unref(i))==null?void 0:B.context)==null?void 0:V.remoteError)?(n.openBlock(),n.createBlock(S,{key:0},{default:n.withCtx(()=>{var O;return[n.createTextVNode(n.toDisplayString(n.unref(P)((O=n.unref(i))==null?void 0:O.context.remoteError)),1)]}),_:1})):n.createCommentVNode("",!0),n.createVNode(I,{class:"amplify-field-group__control","data-fullwidth":"false","data-variation":"primary",type:"submit",style:{"font-weight":"normal"},disabled:n.unref(i).matches("confirmVerifyUser.pending")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)]),_:1},8,["disabled"]),n.createVNode(I,{class:"amplify-field-group__control","data-fullwidth":"false","data-size":"small","data-variation":"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(m,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(l)),1)]),_:1},8,["onClick"]),n.renderSlot(h.$slots,"footer",{onSkipClicked:m,onConfirmVerifyUserSubmit:f})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),ix={"data-amplify-container":""},sx=["data-amplify-router-content"],lx={key:1,"data-amplify-router-content":""},cl=n.defineComponent({props:{hideSignUp:{type:Boolean},initialState:null,loginMechanisms:null,services:null,signUpAttributes:null,variation:{default:"default"},socialProviders:null},emits:["signInSubmit","confirmSignUpSubmit","resetPasswordSubmit","confirmResetPasswordSubmit","confirmSignInSubmit","mSetupTOTPSubmit","forceNewPasswordSubmit","signUpSubmit","verifyUserSubmit","confirmVerifyUserSubmit"],setup(e,{emit:t}){const{initialState:r,loginMechanisms:a,variation:o,services:i,signUpAttributes:s,socialProviders:l,hideSignUp:u}=e,c=n.useAttrs(),d=ZS(),v=B2(d);let f;const{state:p,send:m}=Us(v);be(v),n.onMounted(()=>{f=gS(m),m({type:"INIT",data:{initialState:r,loginMechanisms:a,socialProviders:l,signUpAttributes:s,services:i}})}),n.onUnmounted(()=>{f&&f()});const h=n.computed(()=>Ie(p.value)),C=n.ref(),b=n.ref(),g=n.ref(),w=n.ref(),_=n.ref(),S=n.ref(),I=n.ref(),x=n.ref(),N=n.ref(),k=n.ref(),B=n.computed(()=>P("Create Account")),V=n.computed(()=>P("Sign In")),O=T=>{var Ce;(c==null?void 0:c.onSignInSubmit)?t("signInSubmit",T):(Ce=C.value)==null||Ce.submit(T)},L=T=>{(c==null?void 0:c.onConfirmSignUpSubmit)?t("confirmSignUpSubmit",T):g.value.submit(T)},Q=T=>{(c==null?void 0:c.onResetPasswordSubmit)?t("resetPasswordSubmit",T):I.value.submit(T)},Be=T=>{(c==null?void 0:c.onConfirmResetPasswordSubmit)?t("confirmResetPasswordSubmit",T):x.value.submit(T)},ve=T=>{(c==null?void 0:c.onConfirmSignInSubmit)?t("confirmSignInSubmit",T):w.value.submit(T)},Le=T=>{(c==null?void 0:c.onForceNewPasswordSubmit)?t("mSetupTOTPSubmit",T):_.value.submit(T)},We=T=>{(c==null?void 0:c.onForceNewPasswordSubmit)?t("forceNewPasswordSubmit",T):S.value.submit(T)},ae=T=>{(c==null?void 0:c.onSignUpSubmit)?t("signUpSubmit",T):b.value.submit()},Se=T=>{(c==null?void 0:c.onVerifyUserSubmit)?t("verifyUserSubmit",T):N.value.submit(T)},Qr=T=>{(c==null?void 0:c.onConfirmVerifyUserSubmit)?t("confirmVerifyUserSubmit",T):k.value.submit(T)},$t=n.ref(null),Jt=n.ref();n.watch(()=>p.value.context,()=>{const{user:T,signOut:Ce}=Ps({send:m,state:p.value});$t.value=T,Jt.value=Ce});const kt=n.computed(()=>{var T,Ce;return((T=h.value)==null?void 0:T.matches("signIn"))||((Ce=h.value)==null?void 0:Ce.matches("signUp"))});return(T,Ce)=>{var Qt,er,y,$,R,F,M,z,q,G,ue,de;const Xt=t3,en=a3;return n.openBlock(),n.createElementBlock(n.Fragment,null,[((Qt=n.unref(p))==null?void 0:Qt.matches("authenticated"))?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",n.mergeProps({key:0},T.$attrs,{"data-amplify-authenticator":"","data-variation":o}),[n.createElementVNode("div",ix,[n.renderSlot(T.$slots,"header"),n.createElementVNode("div",{"data-amplify-router":"","data-amplify-router-content":n.unref(kt)?void 0:""},[n.unref(kt)&&!u?(n.openBlock(),n.createBlock(en,{key:0},{default:n.withCtx(()=>{var D,U;return[n.createVNode(Xt,{active:(D=n.unref(h))==null?void 0:D.matches("signIn"),id:44472,label:n.unref(V),onClick:Ce[0]||(Ce[0]=He=>n.unref(m)("SIGN_IN"))},null,8,["active","label"]),n.createVNode(Xt,{active:(U=n.unref(h))==null?void 0:U.matches("signUp"),id:44471,label:n.unref(B),onClick:Ce[1]||(Ce[1]=He=>n.unref(m)("SIGN_UP"))},null,8,["active","label"])]}),_:1})):n.createCommentVNode("",!0),n.unref(kt)?(n.openBlock(),n.createElementBlock("div",lx,[((er=n.unref(h))==null?void 0:er.matches("signIn"))?(n.openBlock(),n.createBlock(wa,{key:0,onSignInSubmit:O,ref:(D,U)=>{U.signInComponent=D,C.value=D}},{signInSlotI:n.withCtx(()=>[n.renderSlot(T.$slots,"sign-in")]),form:n.withCtx(({info:D,onSignInSubmit:U,onForgotPasswordClicked:He,onInput:et})=>[n.renderSlot(T.$slots,"sign-in-form",{info:D,onInput:et,onSignInSubmit:U,onForgotPasswordClicked:He})]),header:n.withCtx(()=>[n.renderSlot(T.$slots,"sign-in-header")]),footer:n.withCtx(()=>[n.renderSlot(T.$slots,"sign-in-footer")]),_:3},512)):n.createCommentVNode("",!0),((y=n.unref(h))==null?void 0:y.matches("signUp"))&&!u?(n.openBlock(),n.createBlock(Sa,{key:1,onSignUpSubmit:ae,ref:(D,U)=>{U.signUpComponent=D,b.value=D}},{signUpSlotI:n.withCtx(()=>[n.renderSlot(T.$slots,"sign-up")]),header:n.withCtx(()=>[n.renderSlot(T.$slots,"sign-up-header")]),"signup-fields":n.withCtx(({info:D})=>[n.renderSlot(T.$slots,"sign-up-fields",{info:D})]),footer:n.withCtx(()=>[n.renderSlot(T.$slots,"sign-up-footer")]),_:3},512)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),(($=n.unref(h))==null?void 0:$.matches("confirmSignUp"))?(n.openBlock(),n.createBlock(xa,{key:2,onConfirmSignUpSubmit:L,ref:(D,U)=>{U.confirmSignUpComponent=D,g.value=D}},{confirmSignUpSlotI:n.withCtx(()=>[n.renderSlot(T.$slots,"confirm-sign-up")]),header:n.withCtx(()=>[n.renderSlot(T.$slots,"confirm-sign-up-header")]),footer:n.withCtx(({onConfirmSignUpSubmit:D,onLostCodeClicked:U})=>[n.renderSlot(T.$slots,"confirm-sign-up-footer",{onConfirmSignUpSubmit:D,onLostCodeClicked:U})]),_:3},512)):n.createCommentVNode("",!0),((R=n.unref(h))==null?void 0:R.matches("resetPassword"))?(n.openBlock(),n.createBlock(za,{key:3,onResetPasswordSubmit:Q,ref:(D,U)=>{U.resetPasswordComponent=D,I.value=D}},{resetPasswordSlotI:n.withCtx(()=>[n.renderSlot(T.$slots,"reset-password")]),header:n.withCtx(()=>[n.renderSlot(T.$slots,"reset-password-header")]),footer:n.withCtx(({onResetPasswordSubmit:D,onBackToSignInClicked:U})=>[n.renderSlot(T.$slots,"reset-password-footer",{onResetPasswordSubmit:D,onBackToSignInClicked:U})]),_:3},512)):n.createCommentVNode("",!0),((F=n.unref(h))==null?void 0:F.matches("confirmResetPassword"))?(n.openBlock(),n.createBlock(ja,{key:4,onConfirmResetPasswordSubmit:Be,ref:(D,U)=>{U.confirmResetPasswordComponent=D,x.value=D}},{confirmResetPasswordSlotI:n.withCtx(()=>[n.renderSlot(T.$slots,"confirm-reset-password")]),header:n.withCtx(()=>[n.renderSlot(T.$slots,"confirm-reset-password-header")]),footer:n.withCtx(({onConfirmResetPasswordSubmit:D,onLostYourCodeClicked:U})=>[n.renderSlot(T.$slots,"confirm-reset-password-footer",{onConfirmResetPasswordSubmit:D,onLostYourCodeClicked:U})]),_:3},512)):n.createCommentVNode("",!0),((M=n.unref(h))==null?void 0:M.matches("confirmSignIn"))?(n.openBlock(),n.createBlock(Ea,{key:5,onConfirmSignInSubmit:ve,ref:(D,U)=>{U.confirmSignInComponent=D,w.value=D}},{confirmSignInSlotI:n.withCtx(()=>[n.renderSlot(T.$slots,"confirm-sign-in")]),header:n.withCtx(()=>[n.renderSlot(T.$slots,"confirm-sign-in-header")]),footer:n.withCtx(({onConfirmSignInSubmit:D,onBackToSignInClicked:U})=>[n.renderSlot(T.$slots,"confirm-sign-in-footer",{onConfirmSignInSubmit:D,onBackToSignInClicked:U})]),_:3},512)):n.createCommentVNode("",!0),((z=n.unref(h))==null?void 0:z.matches("setupTOTP"))?(n.openBlock(),n.createBlock(rx,{key:6,onConfirmSetupTotpSubmit:Le,ref:(D,U)=>{U.confirmSetupTOTPComponent=D,_.value=D}},{confirmSetupTOTPI:n.withCtx(()=>[n.renderSlot(T.$slots,"setup-totp")]),header:n.withCtx(()=>[n.renderSlot(T.$slots,"setup-totp-header")]),footer:n.withCtx(({onSetupTOTPSubmit:D,onBackToSignInClicked:U})=>[n.renderSlot(T.$slots,"setup-totp-footer",{onSetupTOTPSubmit:D,onBackToSignInClicked:U})]),_:3},512)):n.createCommentVNode("",!0),((q=n.unref(h))==null?void 0:q.matches("forceNewPassword"))?(n.openBlock(),n.createBlock(La,{key:7,onForceNewPasswordSubmit:We,ref:(D,U)=>{U.forceNewPasswordComponent=D,S.value=D}},{forceNewPasswordI:n.withCtx(()=>[n.renderSlot(T.$slots,"force-new-password")]),header:n.withCtx(()=>[n.renderSlot(T.$slots,"force-new-password-header")]),"force-new-password-form-fields":n.withCtx(()=>[n.renderSlot(T.$slots,"force-new-password-form-fields")]),footer:n.withCtx(({onHaveAccountClicked:D,onForceNewPasswordSubmit:U})=>[n.renderSlot(T.$slots,"force-new-password-footer",{onForceNewPasswordSubmit:U,onBackToSignInClicked:D})]),_:3},512)):n.createCommentVNode("",!0),((G=n.unref(h))==null?void 0:G.matches("verifyUser"))?(n.openBlock(),n.createBlock(Ga,{key:8,onVerifyUserSubmit:Se,ref:(D,U)=>{U.verifyUserComponent=D,N.value=D}},{verifyUserSlotI:n.withCtx(()=>[n.renderSlot(T.$slots,"verify-user")]),header:n.withCtx(()=>[n.renderSlot(T.$slots,"verify-user-header")]),footer:n.withCtx(({onVerifyUserSubmit:D,onSkipClicked:U})=>[n.renderSlot(T.$slots,"verify-user-footer",{onVerifyUserSubmit:D,onSkipClicked:U})]),_:3},512)):n.createCommentVNode("",!0),((ue=n.unref(h))==null?void 0:ue.matches("confirmVerifyUser"))?(n.openBlock(),n.createBlock(Wa,{key:9,onConfirmVerifyUserSubmit:Qr,ref:(D,U)=>{U.confirmVerifyUserComponent=D,k.value=D}},{confirmVerifyUserSlotI:n.withCtx(()=>[n.renderSlot(T.$slots,"confirm-verify-user")]),header:n.withCtx(()=>[n.renderSlot(T.$slots,"confirm-verify-user-header")]),footer:n.withCtx(({onConfirmVerifyUserSubmit:D,onSkipClicked:U})=>[n.renderSlot(T.$slots,"confirm-verify-user-footer",{onConfirmVerifyUserSubmit:D,onSkipClicked:U})]),_:3},512)):n.createCommentVNode("",!0)],8,sx),n.renderSlot(T.$slots,"footer")])],16)),((de=n.unref(p))==null?void 0:de.matches("authenticated"))?n.renderSlot(T.$slots,"default",{key:1,user:$t.value,state:n.unref(p),signOut:Jt.value,send:n.unref(m)}):n.createCommentVNode("",!0)],64)}}}),dl=n.defineComponent({props:{info:{type:Object}},setup(e){return()=>e.info}}),fl=n.defineComponent({props:{label:{default:""},id:{default:""},autocomplete:{default:""},placeholder:{default:""},required:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},name:{default:""},type:{default:"text"},hideLabel:{type:Boolean,default:!0}},setup(e){const t=e,{label:r,id:a,autocomplete:o,placeholder:i,required:s,name:l,type:u}=n.toRefs(t);return(c,d)=>{const v=$e,f=ke,p=pe;return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(v,{class:n.normalizeClass(["amplify-label",{"sr-only":e.hideLabel}]),for:n.unref(a)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(r)),1)]),_:1},8,["class","for"]),n.createVNode(p,{class:"amplify-field-group__field-wrapper"},{default:n.withCtx(()=>[n.createVNode(f,{class:"amplify-input amplify-field-group__control",id:n.unref(a),"aria-invalid":"false",autocomplete:n.unref(o),placeholder:n.unref(i),required:n.unref(s),name:n.unref(l),disabled:e.disabled,type:n.unref(u)},null,8,["id","autocomplete","placeholder","required","name","disabled","type"])]),_:1})],64)}}}),ux={class:"amplify-flex amplify-field amplify-checkboxfield"},cx={class:"amplify-flex amplify-checkbox"},dx={class:"amplify-visually-hidden"},fx=["data-error","data-checked"],vx=["data-checked"],px=n.createElementVNode("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},null,-1),mx=[px],hx=n.createElementVNode("span",{class:"amplify-text amplify-checkbox__label"}," I agree with the Terms & Conditions",-1),gx={key:0,class:"amplify-text amplify-field__error-message"},vl=n.defineComponent({props:{errorMessage:{default:""}},setup(e){const t=e,r=n.ref(!1),{errorMessage:a}=n.toRefs(t);return(o,i)=>(n.openBlock(),n.createElementBlock("div",ux,[n.createElementVNode("label",cx,[n.createElementVNode("span",dx,[n.createElementVNode("input",{onClick:i[0]||(i[0]=s=>r.value=!r.value),class:"amplify-input amplify-field-group__control amplify-checkbox__input","aria-invalid":"false",type:"checkbox",name:"acknowledgement",value:"yes"})]),n.createElementVNode("span",{class:"amplify-flex amplify-checkbox__button","aria-hidden":"true","data-focus":"false","data-error":!r.value,"data-checked":r.value},[(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon amplify-checkbox__icon",viewBox:"0 0 24 24",fill:"currentColor","data-checked":r.value},mx,8,vx))],8,fx),hx]),r.value?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("p",gx,n.toDisplayString(n.unref(a)),1))]))}});var yx={install:e=>{e.component("SignIn",wa),e.component("SignUp",Sa),e.component("FederatedSignIn",Gr),e.component("Authenticator",cl),e.component("RenderInfo",dl),e.component("PasswordControl",Ge),e.component("UserNameAlias",zr),e.component("ForceNewPassword",La),e.component("ResetPassword",za),e.component("ConfirmResetPassword",ja),e.component("ConfirmSignUp",xa),e.component("ConfirmSignIn",Ea),e.component("VerifyUser",Ga),e.component("ConfirmVerifyUser",Wa),e.component("AmplifyTextField",fl),e.component("AmplifyCheckBox",vl),e.component("AmplifyButton",we),e.component("AuthenticatorSignUpFormFields",_a),e.component("AuthenticatorForceNewPasswordFormFields",Ma)}};exports.AmplifyButton=we;exports.AmplifyCheckBox=vl;exports.AmplifyTextField=fl;exports.Authenticator=cl;exports.AuthenticatorForceNewPasswordFormFields=Ma;exports.AuthenticatorSignUpFormFields=_a;exports.ConfirmResetPassword=ja;exports.ConfirmSignIn=Ea;exports.ConfirmSignUp=xa;exports.ConfirmVerifyUser=Wa;exports.FederatedSignIn=Gr;exports.ForceNewPassword=La;exports.PasswordControl=Ge;exports.RenderInfo=dl;exports.ResetPassword=za;exports.SignIn=wa;exports.SignUp=Sa;exports.UserNameAlias=zr;exports.VerifyUser=Ga;exports.default=yx;exports.useAuthenticator=Ze;
123
+ `);const s=rx(t,r,o),l=Jr.getSymbolSize(t),u=new W3(l);return J3(u,t),X3(u),Q3(u,t),Ra(u,r,0),t>=7&&ex(u,t),tx(u,s),isNaN(a)&&(a=ka.getBestMask(u,Ra.bind(null,u,r))),ka.applyMask(a,u),Ra(u,r,a),{modules:u,version:t,errorCorrectionLevel:r,maskPattern:a,segments:o}}Gs.create=function(t,r){if(typeof t=="undefined"||t==="")throw new Error("No input text");let a=$a.M,o,i;return typeof r!="undefined"&&(a=$a.from(r.errorCorrectionLevel,$a.M),o=Xr.from(r.version),i=ka.from(r.maskPattern),r.toSJISFunc&&Jr.setToSJISFunction(r.toSJISFunc)),ax(t,o,a,i)};var ol={},Oa={};(function(e){function t(r){if(typeof r=="number"&&(r=r.toString()),typeof r!="string")throw new Error("Color should be defined as hex string");let a=r.slice().replace("#","").split("");if(a.length<3||a.length===5||a.length>8)throw new Error("Invalid hex color: "+r);(a.length===3||a.length===4)&&(a=Array.prototype.concat.apply([],a.map(function(i){return[i,i]}))),a.length===6&&a.push("F","F");const o=parseInt(a.join(""),16);return{r:o>>24&255,g:o>>16&255,b:o>>8&255,a:o&255,hex:"#"+a.slice(0,6).join("")}}e.getOptions=function(a){a||(a={}),a.color||(a.color={});const o=typeof a.margin=="undefined"||a.margin===null||a.margin<0?4:a.margin,i=a.width&&a.width>=21?a.width:void 0,s=a.scale||4;return{width:i,scale:i?4:s,margin:o,color:{dark:t(a.color.dark||"#000000ff"),light:t(a.color.light||"#ffffffff")},type:a.type,rendererOpts:a.rendererOpts||{}}},e.getScale=function(a,o){return o.width&&o.width>=a+o.margin*2?o.width/(a+o.margin*2):o.scale},e.getImageWidth=function(a,o){const i=e.getScale(a,o);return Math.floor((a+o.margin*2)*i)},e.qrToImageData=function(a,o,i){const s=o.modules.size,l=o.modules.data,u=e.getScale(s,i),c=Math.floor((s+i.margin*2)*u),d=i.margin*u,v=[i.color.light,i.color.dark];for(let f=0;f<c;f++)for(let p=0;p<c;p++){let m=(f*c+p)*4,h=i.color.light;if(f>=d&&p>=d&&f<c-d&&p<c-d){const C=Math.floor((f-d)/u),b=Math.floor((p-d)/u);h=v[l[C*s+b]?1:0]}a[m++]=h.r,a[m++]=h.g,a[m++]=h.b,a[m]=h.a}}})(Oa);(function(e){const t=Oa;function r(o,i,s){o.clearRect(0,0,i.width,i.height),i.style||(i.style={}),i.height=s,i.width=s,i.style.height=s+"px",i.style.width=s+"px"}function a(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(i,s,l){let u=l,c=s;typeof u=="undefined"&&(!s||!s.getContext)&&(u=s,s=void 0),s||(c=a()),u=t.getOptions(u);const d=t.getImageWidth(i.modules.size,u),v=c.getContext("2d"),f=v.createImageData(d,d);return t.qrToImageData(f.data,i,u),r(v,c,d),v.putImageData(f,0,0),c},e.renderToDataURL=function(i,s,l){let u=l;typeof u=="undefined"&&(!s||!s.getContext)&&(u=s,s=void 0),u||(u={});const c=e.render(i,s,u),d=u.type||"image/png",v=u.rendererOpts||{};return c.toDataURL(d,v.quality)}})(ol);var il={};const ox=Oa;function sl(e,t){const r=e.a/255,a=t+'="'+e.hex+'"';return r<1?a+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':a}function Da(e,t,r){let a=e+t;return typeof r!="undefined"&&(a+=" "+r),a}function ix(e,t,r){let a="",o=0,i=!1,s=0;for(let l=0;l<e.length;l++){const u=Math.floor(l%t),c=Math.floor(l/t);!u&&!i&&(i=!0),e[l]?(s++,l>0&&u>0&&e[l-1]||(a+=i?Da("M",u+r,.5+c+r):Da("m",o,0),o=0,i=!1),u+1<t&&e[l+1]||(a+=Da("h",s),s=0)):o++}return a}il.render=function(t,r,a){const o=ox.getOptions(r),i=t.modules.size,s=t.modules.data,l=i+o.margin*2,u=o.color.light.a?"<path "+sl(o.color.light,"fill")+' d="M0 0h'+l+"v"+l+'H0z"/>':"",c="<path "+sl(o.color.dark,"stroke")+' d="'+ix(s,i,o.margin)+'"/>',d='viewBox="0 0 '+l+" "+l+'"',v=o.width?'width="'+o.width+'" height="'+o.width+'" ':"",f='<svg xmlns="http://www.w3.org/2000/svg" '+v+d+' shape-rendering="crispEdges">'+u+c+`</svg>
124
+ `;return typeof a=="function"&&a(null,f),f};const sx=w3,Va=Gs,ll=ol,lx=il;function Ua(e,t,r,a,o){const i=[].slice.call(arguments,1),s=i.length,l=typeof i[s-1]=="function";if(!l&&!sx())throw new Error("Callback required as last argument");if(l){if(s<2)throw new Error("Too few arguments provided");s===2?(o=r,r=t,t=a=void 0):s===3&&(t.getContext&&typeof o=="undefined"?(o=a,a=void 0):(o=a,a=r,r=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(r=t,t=a=void 0):s===2&&!t.getContext&&(a=r,r=t,t=void 0),new Promise(function(u,c){try{const d=Va.create(r,a);u(e(d,t,a))}catch(d){c(d)}})}try{const u=Va.create(r,a);o(null,e(u,t,a))}catch(u){o(u)}}Kt.create=Va.create;Kt.toCanvas=Ua.bind(null,ll.render);Kt.toDataURL=Ua.bind(null,ll.renderToDataURL);Kt.toString=Ua.bind(null,function(e,t,r){return lx.render(e,r)});const ux={key:0},cx=n.createTextVNode(" Setup TOTP "),dx=["src"],fx={"data-amplify-copy-tooltip":""},vx=n.createElementVNode("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[n.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",fill:"black"})],-1),px=n.createTextVNode("Code *"),mx=n.defineComponent({emits:["confirmSetupTOTPSubmit","backToSignInClicked"],setup(e,{emit:t}){const r=n.useAttrs(),{state:a,send:o}=be(),i=n.computed(()=>Ie(a.value));let s=n.reactive({qrCodeImageSource:"",isLoading:!0}),l=n.ref(""),u=n.ref(P("COPY"));function c(){navigator.clipboard.writeText(l.value),u.value=P("COPIED")}n.onMounted(async()=>{const b=new re.Logger("SetupTOTP-logger"),{user:g}=i.value.context;if(!!g)try{l.value=await re.Auth.setupTOTP(g);const w="AWSCognito",S=`otpauth://totp/${w}:${g.username}?secret=${l.value}&issuer=${w}`;s.qrCodeImageSource=await Kt.toDataURL(S)}catch(w){b.error(w)}finally{s.isLoading=!1}});const d=n.computed(()=>P("Back to Sign In")),v=n.computed(()=>P("Confirm")),f=n.computed(()=>P("Code")),p=b=>{const{name:g,value:w}=b.target;o({type:"CHANGE",data:{name:g,value:w}})},m=b=>{(r==null?void 0:r.onConfirmSetupTOTPSubmit)?t("confirmSetupTOTPSubmit",b):h(b)},h=b=>{const g=new FormData(b.target);o({type:"SUBMIT",data:Ne({},Object.fromEntries(g))})},C=()=>{(r==null?void 0:r.onBackToSignInClicked)?t("backToSignInClicked"):o({type:"SIGN_IN"})};return(b,g)=>{const w=Je,S=pe,_=$e,I=ke,x=Re,N=we,k=De,B=Fe,V=Oe;return n.renderSlot(b.$slots,"confirmSetupTOTPI",n.normalizeProps(n.guardReactiveProps(b.$attrs)),()=>[n.createVNode(S,n.normalizeProps(n.guardReactiveProps(b.$attrs)),{default:n.withCtx(()=>[n.createVNode(V,{"data-amplify-authenticator-setup-totp":"",onInput:p,onSubmit:n.withModifiers(m,["prevent"])},{default:n.withCtx(()=>[n.createVNode(B,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:n.unref(i).matches("confirmSignIn.pending")},{default:n.withCtx(()=>[n.unref(s).isLoading?(n.openBlock(),n.createElementBlock("p",ux,"Loading...")):(n.openBlock(),n.createBlock(S,{key:1,class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.renderSlot(b.$slots,"header",{},()=>[n.createVNode(w,{class:"amplify-heading",level:3},{default:n.withCtx(()=>[cx]),_:1})]),n.createVNode(S,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createElementVNode("img",{class:"amplify-image","data-amplify-qrcode":"",src:n.unref(s).qrCodeImageSource,alt:"qr code",width:"228",height:"228"},null,8,dx),n.createVNode(S,{class:"amplify-flex","data-amplify-copy":""},{default:n.withCtx(()=>[n.createElementVNode("div",null,n.toDisplayString(n.unref(l)),1),n.createVNode(S,{"data-amplify-copy-svg":"",onClick:c},{default:n.withCtx(()=>[n.createElementVNode("div",fx,n.toDisplayString(n.unref(u)),1),vx]),_:1})]),_:1}),n.createVNode(S,{class:"amplify-flex amplify-field amplify-textfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(_,{class:"sr-only amplify-label",for:"amplify-field-45d1"},{default:n.withCtx(()=>[px]),_:1}),n.createVNode(S,{class:"amplify-flex"},{default:n.withCtx(()=>[n.createVNode(I,{class:"amplify-input amplify-field-group__control",id:"amplify-field-45d1","aria-invalid":"false",name:"confirmation_code",placeholder:n.unref(f),autocomplete:"one-time-code",required:"",type:"text"},null,8,["placeholder"])]),_:1})]),_:1})]),_:1}),n.createVNode(k,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>{var D;return[((D=n.unref(i).context)==null?void 0:D.remoteError)?(n.openBlock(),n.createBlock(x,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(P)(n.unref(i).context.remoteError)),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(N,{class:"amplify-field-group__control","data-fullwidth":"false","data-loading":"false","data-variation":"primary",type:"submit",style:{"font-weight":"normal"},disabled:n.unref(i).matches("confirmSignIn.pending")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(v)),1)]),_:1},8,["disabled"]),n.createVNode(N,{class:"amplify-field-group__control","data-fullwidth":"false","data-size":"small","data-variation":"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(C,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)]),_:1},8,["onClick"]),n.renderSlot(b.$slots,"footer",{onBackToSignInClicked:C,onSetupTOTPSubmit:m})]}),_:3})]),_:3}))]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),hx={},gx={"data-amplify-box":""};function yx(e,t){return n.openBlock(),n.createElementBlock("div",gx,[n.renderSlot(e.$slots,"default")])}var ul=Bt(hx,[["render",yx]]);const Ma=n.defineComponent({setup(e){const{state:t}=be(),r=n.computed(()=>Ie(t.value)),a=n.computed(()=>ge);let o=r.value.context.requiredAttributes;return o=o==null?void 0:o.filter(i=>{const s=!!ge[i];return s||console.debug(`Authenticator does not have a default implementation for ${i}. Customize the authenticator force-new-password-fields slot to add your own.`),s}),(i,s)=>(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(o),(l,u)=>{var c,d;return n.openBlock(),n.createBlock(zs,{key:u,label:n.unref(P)((c=n.unref(a)[l])==null?void 0:c.label),name:l,placeholder:n.unref(P)((d=n.unref(a)[l])==null?void 0:d.label)},null,8,["label","name","placeholder"])}),128))}}),La=n.defineComponent({emits:["haveAccountClicked","forceNewPasswordSubmit"],setup(e,{emit:t}){const r=n.useAttrs(),{state:a,send:o}=be(),s=at(Ze)(),l=n.computed(()=>Ie(a.value)),u=n.computed(()=>Ht(a.value)),c=n.computed(()=>P("Change Password")),d=n.computed(()=>P("Changing")),v=n.computed(()=>P("Back to Sign In")),f=n.computed(()=>P("Password")),p=n.computed(()=>P("Confirm Password")),m=()=>{(r==null?void 0:r.onHaveAccountClicked)?t("haveAccountClicked"):o({type:"SIGN_IN"})},h=w=>{(r==null?void 0:r.onForceNewPasswordSubmit)?t("forceNewPasswordSubmit",w):C(w)},C=w=>{const S=new FormData(w.target);o({type:"SUBMIT",data:Ne({},Object.fromEntries(S))})},b=w=>{const{name:S,value:_}=w.target;o({type:"CHANGE",data:{name:S,value:_}})};function g(w){const{name:S}=w.target;s.updateBlur({name:S})}return(w,S)=>{const _=Je,I=pe,x=ul,N=Re,k=we,B=De,V=Fe,D=Oe;return n.renderSlot(w.$slots,"forceNewPasswordI",n.normalizeProps(n.guardReactiveProps(w.$attrs)),()=>[n.createVNode(I,n.normalizeProps(n.guardReactiveProps(w.$attrs)),{default:n.withCtx(()=>[n.createVNode(D,{"data-amplify-authenticator-forcenewpassword":"",onInput:b,onSubmit:n.withModifiers(h,["prevent"])},{default:n.withCtx(()=>[n.createVNode(V,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:n.unref(l).matches("forceNewPassword.pending")},{default:n.withCtx(()=>[n.renderSlot(w.$slots,"header",{},()=>[n.createVNode(_,{level:3,class:"amplify-heading"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(c)),1)]),_:1})]),n.createVNode(I,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(I,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(Ge,{name:"password",label:n.unref(f),autocomplete:"new-password",ariainvalid:!!n.unref(u).validationError.confirm_password,onBlur:g},null,8,["label","ariainvalid"])]),_:1}),n.createVNode(I,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(Ge,{name:"confirm_password",label:n.unref(p),autocomplete:"new-password",ariainvalid:!!n.unref(u).validationError.confirm_password,onBlur:g},null,8,["label","ariainvalid"])]),_:1}),n.renderSlot(w.$slots,"force-new-password-form-fields",{},()=>[n.createVNode(Ma)])]),_:3}),n.createVNode(B,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.unref(u).validationError.confirm_password?(n.openBlock(),n.createBlock(x,{key:0,"data-ui-error":"",role:"alert","data-variation":"error",class:"amplify-text"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(P)(n.unref(u).validationError.confirm_password)),1)]),_:1})):n.createCommentVNode("",!0),n.unref(l).context.remoteError?(n.openBlock(),n.createBlock(N,{key:1,"data-ui-error":""},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(P)(n.unref(l).context.remoteError)),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(k,{class:"amplify-field-group__control","data-fullwidth":"false","data-loading":"false","data-variation":"primary",style:{"font-weight":"normal"},disabled:n.unref(l).matches("signUp.submit")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(l).matches("forceNewPassword.pending")?n.unref(d)+"\u2026":n.unref(c)),1)]),_:1},8,["disabled"]),n.createVNode(k,{class:"amplify-field-group__control","data-fullwidth":"false","data-size":"small","data-variation":"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(m,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(v)),1)]),_:1},8,["onClick"]),n.renderSlot(w.$slots,"footer",{onHaveAccountClicked:m,onForceNewPasswordSubmit:h})]),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),za=n.defineComponent({emits:["resetPasswordSubmit","backToSignInClicked"],setup(e,{emit:t}){const r=n.useAttrs(),a=at(Ze),{state:o,send:i}=a(),{error:s,isPending:l}=n.toRefs(a()),{label:u}=Ns(o.context),c=`Enter your ${u.toLowerCase()}`,d=n.computed(()=>P("Back to Sign In")),v=n.computed(()=>P("Reset your password")),f=n.computed(()=>P("Send Code")),p=n.computed(()=>P(c)),m=g=>{(r==null?void 0:r.onResetPasswordSubmit)?t("resetPasswordSubmit",g):h(g)},h=g=>{const w=new FormData(g.target);i({type:"SUBMIT",data:Object.fromEntries(w)})},C=g=>{const{name:w,value:S}=g.target;i({type:"CHANGE",data:{name:w,value:S}})},b=()=>{(r==null?void 0:r.onBackToSignInClicked)?t("backToSignInClicked"):i({type:"SIGN_IN"})};return(g,w)=>{const S=Je,_=$e,I=ke,x=pe,N=Fe,k=Re,B=we,V=De,D=Oe;return n.renderSlot(g.$slots,"resetPasswordSlotI",n.normalizeProps(n.guardReactiveProps(g.$attrs)),()=>[n.createVNode(D,n.mergeProps(g.$attrs,{"data-amplify-authenticator-resetpassword":"",onInput:C,onSubmit:n.withModifiers(m,["prevent"])}),{default:n.withCtx(()=>[n.createVNode(x,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.renderSlot(g.$slots,"header",{},()=>[n.createVNode(S,{class:"amplify-heading",level:3},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(v)),1)]),_:1})]),n.createVNode(N,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:n.unref(l)},{default:n.withCtx(()=>[n.createVNode(x,{class:"amplify-flex amplify-field amplify-textfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(_,{class:"sr-only amplify-label",for:"amplify-field-7dce"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(c))]),_:1}),n.createVNode(x,{class:"amplify-flex"},{default:n.withCtx(()=>[n.createVNode(I,{class:"amplify-input amplify-field-group__control",id:"amplify-field-7dce","aria-invalid":"false",name:"username",placeholder:n.unref(p),autocomplete:"username",required:"",type:"username"},null,8,["placeholder"])]),_:1})]),_:1})]),_:1},8,["disabled"]),n.createVNode(V,{class:"amplify-flex",style:{"flex-direction":"column","align-items":"unset"}},{default:n.withCtx(()=>[n.unref(s)?(n.openBlock(),n.createBlock(k,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(P)(n.unref(s))),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(B,{class:"amplify-field-group__control","data-fullwidth":"false","data-variation":"primary",type:"submit",style:{"font-weight":"normal"},disabled:n.unref(l)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(f)),1)]),_:1},8,["disabled"]),n.createVNode(B,{class:"amplify-field-group__control","data-fullwidth":"false","data-size":"small","data-variation":"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(b,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)]),_:1},8,["onClick"]),n.renderSlot(g.$slots,"footer",{onBackToSignInClicked:b,onResetPasswordSubmit:m})]),_:3})]),_:3})]),_:3},16,["onSubmit"])])}}}),ja=n.defineComponent({emits:["confirmResetPasswordSubmit","backToSignInClicked"],setup(e,{emit:t}){const{state:r,send:a}=be(),i=at(Ze)(),s=n.useAttrs(),l=n.computed(()=>Ie(r.value)),u=n.computed(()=>Ht(r.value)),c=n.computed(()=>P("Resend Code")),d=n.computed(()=>P("Confirmation Code")),v=n.computed(()=>P("Reset your Password")),f=n.computed(()=>P("Submit")),p=n.computed(()=>P("Code")),m=n.computed(()=>P("New password")),h=n.computed(()=>P("Confirm Password")),C=_=>{(s==null?void 0:s.onConfirmResetPasswordSubmit)?t("confirmResetPasswordSubmit",_):b(_)},b=_=>{const I=new FormData(_.target);a({type:"SUBMIT",data:Ne({},Object.fromEntries(I))})},g=()=>{a({type:"RESEND"})},w=_=>{const{name:I,value:x}=_.target;a({type:"CHANGE",data:{name:I,value:x}})};function S(_){const{name:I}=_.target;i.updateBlur({name:I})}return(_,I)=>{const x=Je,N=$e,k=ke,B=pe,V=ul,D=Re,L=we,Q=De,Be=Fe,ve=Oe;return n.renderSlot(_.$slots,"confirmResetPasswordSlotI",n.normalizeProps(n.guardReactiveProps(_.$attrs)),()=>[n.createVNode(B,n.normalizeProps(n.guardReactiveProps(_.$attrs)),{default:n.withCtx(()=>[n.createVNode(ve,{"data-amplify-authenticator-confirmResetpassword":"",onInput:w,onSubmit:n.withModifiers(C,["prevent"])},{default:n.withCtx(()=>[n.createVNode(Be,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:n.unref(l).matches("confirmResetPassword.pending")},{default:n.withCtx(()=>[n.renderSlot(_.$slots,"header",{},()=>[n.createVNode(x,{class:"amplify-heading",level:3},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(v)),1)]),_:1})]),n.createVNode(B,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(B,{class:"amplify-flex amplify-field amplify-textfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(N,{class:"sr-only amplify-label",for:"amplify-field-d653"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)]),_:1}),n.createVNode(B,{class:"amplify-flex"},{default:n.withCtx(()=>[n.createVNode(k,{class:"amplify-input amplify-field-group__control",id:"amplify-field-d653","aria-invalid":"false",autocomplete:"one-time-code",placeholder:n.unref(p),name:"confirmation_code",required:"",type:"number"},null,8,["placeholder"])]),_:1})]),_:1}),n.createVNode(B,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield password-field",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(Ge,{name:"password",label:n.unref(m),autocomplete:"current-password",ariainvalid:!!n.unref(u).validationError.confirm_password,onBlur:S},null,8,["label","ariainvalid"])]),_:1}),n.createVNode(B,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(Ge,{name:"confirm_password",label:n.unref(h),autocomplete:"new-password",ariainvalid:!!n.unref(u).validationError.confirm_password,onBlur:S},null,8,["label","ariainvalid"])]),_:1})]),_:1}),n.createVNode(Q,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>{var Le,We;return[n.unref(u).validationError.confirm_password?(n.openBlock(),n.createBlock(V,{key:0,"data-ui-error":"","data-variation":"error",role:"alert",class:"amplify-text"},{default:n.withCtx(()=>{var ae;return[n.createTextVNode(n.toDisplayString(n.unref(P)((ae=n.unref(u).validationError)==null?void 0:ae.confirm_password)),1)]}),_:1})):n.createCommentVNode("",!0),((We=(Le=n.unref(l))==null?void 0:Le.context)==null?void 0:We.remoteError)?(n.openBlock(),n.createBlock(D,{key:1},{default:n.withCtx(()=>{var ae,_e;return[n.createTextVNode(n.toDisplayString(n.unref(P)((_e=(ae=n.unref(l))==null?void 0:ae.context)==null?void 0:_e.remoteError)),1)]}),_:1})):n.createCommentVNode("",!0),n.createVNode(L,{class:"amplify-field-group__control","data-fullwidth":"false","data-variation":"primary",type:"submit",style:{"font-weight":"normal"},disabled:n.unref(l).matches("confirmResetPassword.pending")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(f)),1)]),_:1},8,["disabled"]),n.createVNode(L,{class:"amplify-field-group__control","data-fullwidth":"false","data-size":"small","data-variation":"link",type:"button",onClick:n.withModifiers(g,["prevent"]),style:{"font-weight":"normal"}},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(c)),1)]),_:1},8,["onClick"]),n.renderSlot(_.$slots,"footer",{onConfirmResetPasswordSubmit:C,onLostYourCodeClicked:g})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Ga=n.defineComponent({emits:["verifyUserSubmit","skipClicked"],setup(e,{emit:t}){const r=n.useAttrs(),{state:a,send:o}=be(),i=n.computed(()=>Ie(a.value)),s=i.value.context.unverifiedAttributes,l=n.computed(()=>P("Account recovery requires verified contact information")),u=n.computed(()=>P("Skip")),c=n.computed(()=>P("Verify")),d=n.computed(()=>P("Verify Contact")),v=h=>{const{name:C,value:b}=h.target;o({type:"CHANGE",data:{name:C,value:b}})},f=h=>{(r==null?void 0:r.onVerifyUserSubmit)?t("verifyUserSubmit",h):p(h)},p=h=>{const C=new FormData(h.target);o({type:"SUBMIT",data:Ne({},Object.fromEntries(C))})},m=()=>{(r==null?void 0:r.onSkipClicked)?t("skipClicked"):o("SKIP")};return(h,C)=>{const b=Je,g=$e,w=ke,S=js,_=pe,I=Re,x=we,N=De,k=Fe,B=Oe;return n.renderSlot(h.$slots,"verifyUserSlotI",{},()=>[n.createVNode(_,null,{default:n.withCtx(()=>[n.createVNode(B,{onInput:v,onSubmit:n.withModifiers(f,["prevent"])},{default:n.withCtx(()=>[n.createVNode(k,{disabled:n.unref(i).matches("verifyUser.pending"),class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.renderSlot(h.$slots,"header",{},()=>[n.createVNode(b,{class:"amplify-heading",level:3},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(l)),1)]),_:1})]),n.createVNode(_,{class:"amplify-flex amplify-field amplify-radiogroupfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(g,{class:"sr-only amplify-label",id:"amplify-field-493c"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)]),_:1}),n.createVNode(_,{class:"amplify-flex amplify-field amplify-radiogroupfield",style:{"flex-direction":"column"},"aria-labelledby":"amplify-field-493c"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(s),(V,D)=>(n.openBlock(),n.createBlock(g,{class:"amplify-flex amplify-radio","data-amplify-verify-label":"",id:"verify",key:V},{default:n.withCtx(()=>[n.createVNode(w,{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:D},null,8,["value"]),n.createVNode(S,{class:"amplify-flex amplify-radio__button","aria-hidden":"true"}),n.createVNode(S,{class:"amplify-text amplify-radio__label"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(ge)[D].label),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1}),n.createVNode(N,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>{var V,D;return[((D=(V=n.unref(i))==null?void 0:V.context)==null?void 0:D.remoteError)?(n.openBlock(),n.createBlock(I,{key:0},{default:n.withCtx(()=>{var L;return[n.createTextVNode(n.toDisplayString(n.unref(P)((L=n.unref(i))==null?void 0:L.context.remoteError)),1)]}),_:1})):n.createCommentVNode("",!0),n.createVNode(x,{class:"amplify-field-group__control","data-fullwidth":"false","data-variation":"primary",type:"submit",style:{"font-weight":"normal"},disabled:n.unref(i).matches("verifyUser.pending")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(c)),1)]),_:1},8,["disabled"]),n.createVNode(x,{class:"amplify-field-group__control","data-fullwidth":"false","data-size":"small","data-variation":"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(m,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(u)),1)]),_:1},8,["onClick"]),n.renderSlot(h.$slots,"footer",{onSkipClicked:m,onVerifyUserSubmit:f})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3})])}}}),Wa=n.defineComponent({emits:["confirmVerifyUserSubmit","skipClicked"],setup(e,{emit:t}){const r=n.useAttrs(),{state:a,send:o}=be(),i=n.computed(()=>Ie(a.value)),s=n.computed(()=>P("Account recovery requires verified contact information")),l=n.computed(()=>P("Skip"));n.computed(()=>P("Verify"));const u=n.computed(()=>P("Confirmation Code")),c=n.computed(()=>P("Code")),d=n.computed(()=>P("Submit")),v=h=>{const{name:C,value:b}=h.target;o({type:"CHANGE",data:{name:C,value:b}})},f=h=>{(r==null?void 0:r.onConfirmVerifyUserSubmit)?t("confirmVerifyUserSubmit",h):p(h)},p=h=>{const C=new FormData(h.target);o({type:"SUBMIT",data:Ne({},Object.fromEntries(C))})},m=()=>{(r==null?void 0:r.onSkipClicked)?t("skipClicked"):o({type:"SKIP"})};return(h,C)=>{const b=Je,g=$e,w=ke,S=pe,_=Re,I=we,x=De,N=Fe,k=Oe;return n.renderSlot(h.$slots,"confirmVerifyUserSlotI",n.normalizeProps(n.guardReactiveProps(h.$attrs)),()=>[n.createVNode(S,n.normalizeProps(n.guardReactiveProps(h.$attrs)),{default:n.withCtx(()=>[n.createVNode(k,{onInput:v,onSubmit:n.withModifiers(f,["prevent"])},{default:n.withCtx(()=>[n.createVNode(N,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:n.unref(i).matches("confirmVerifyUser.pending")},{default:n.withCtx(()=>[n.renderSlot(h.$slots,"header",{},()=>[n.createVNode(b,{level:3,class:"amplify-heading"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(s)),1)]),_:1})]),n.createVNode(S,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(S,{class:"amplify-flex amplify-field amplify-textfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(g,{class:"sr-only amplify-label",for:"amplify-field-c34b"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(u)),1)]),_:1}),n.createVNode(S,{class:"amplify-flex"},{default:n.withCtx(()=>[n.createVNode(w,{class:"amplify-input amplify-field-group__control",id:"amplify-field-c34b","aria-invalid":"false",autocomplete:"one-time-code",name:"confirmation_code",required:"",placeholder:n.unref(c),type:"text"},null,8,["placeholder"])]),_:1})]),_:1})]),_:1}),n.createVNode(x,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>{var B,V;return[((V=(B=n.unref(i))==null?void 0:B.context)==null?void 0:V.remoteError)?(n.openBlock(),n.createBlock(_,{key:0},{default:n.withCtx(()=>{var D;return[n.createTextVNode(n.toDisplayString(n.unref(P)((D=n.unref(i))==null?void 0:D.context.remoteError)),1)]}),_:1})):n.createCommentVNode("",!0),n.createVNode(I,{class:"amplify-field-group__control","data-fullwidth":"false","data-variation":"primary",type:"submit",style:{"font-weight":"normal"},disabled:n.unref(i).matches("confirmVerifyUser.pending")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)]),_:1},8,["disabled"]),n.createVNode(I,{class:"amplify-field-group__control","data-fullwidth":"false","data-size":"small","data-variation":"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(m,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(l)),1)]),_:1},8,["onClick"]),n.renderSlot(h.$slots,"footer",{onSkipClicked:m,onConfirmVerifyUserSubmit:f})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),bx={"data-amplify-container":""},Cx=["data-amplify-router-content"],wx={key:1,"data-amplify-router-content":""},cl=n.defineComponent({props:{hideSignUp:{type:Boolean},initialState:null,loginMechanisms:null,services:null,signUpAttributes:null,variation:{default:"default"},socialProviders:null},emits:["signInSubmit","confirmSignUpSubmit","resetPasswordSubmit","confirmResetPasswordSubmit","confirmSignInSubmit","mSetupTOTPSubmit","forceNewPasswordSubmit","signUpSubmit","verifyUserSubmit","confirmVerifyUserSubmit"],setup(e,{emit:t}){const{initialState:r,loginMechanisms:a,variation:o,services:i,signUpAttributes:s,socialProviders:l,hideSignUp:u}=e,c=n.useAttrs(),d=u2(),v=H2(d);let f;const{state:p,send:m}=Us(v);be(v),n.onMounted(()=>{f=g_(m),m({type:"INIT",data:{initialState:r,loginMechanisms:a,socialProviders:l,signUpAttributes:s,services:i}})}),n.onUnmounted(()=>{f&&f()});const h=n.computed(()=>Ie(p.value)),C=n.ref(),b=n.ref(),g=n.ref(),w=n.ref(),S=n.ref(),_=n.ref(),I=n.ref(),x=n.ref(),N=n.ref(),k=n.ref(),B=n.computed(()=>P("Create Account")),V=n.computed(()=>P("Sign In")),D=T=>{var Ce;(c==null?void 0:c.onSignInSubmit)?t("signInSubmit",T):(Ce=C.value)==null||Ce.submit(T)},L=T=>{(c==null?void 0:c.onConfirmSignUpSubmit)?t("confirmSignUpSubmit",T):g.value.submit(T)},Q=T=>{(c==null?void 0:c.onResetPasswordSubmit)?t("resetPasswordSubmit",T):I.value.submit(T)},Be=T=>{(c==null?void 0:c.onConfirmResetPasswordSubmit)?t("confirmResetPasswordSubmit",T):x.value.submit(T)},ve=T=>{(c==null?void 0:c.onConfirmSignInSubmit)?t("confirmSignInSubmit",T):w.value.submit(T)},Le=T=>{(c==null?void 0:c.onForceNewPasswordSubmit)?t("mSetupTOTPSubmit",T):S.value.submit(T)},We=T=>{(c==null?void 0:c.onForceNewPasswordSubmit)?t("forceNewPasswordSubmit",T):_.value.submit(T)},ae=T=>{(c==null?void 0:c.onSignUpSubmit)?t("signUpSubmit",T):b.value.submit()},_e=T=>{(c==null?void 0:c.onVerifyUserSubmit)?t("verifyUserSubmit",T):N.value.submit(T)},Qr=T=>{(c==null?void 0:c.onConfirmVerifyUserSubmit)?t("confirmVerifyUserSubmit",T):k.value.submit(T)},$t=n.ref(null),Jt=n.ref();n.watch(()=>p.value.context,()=>{const{user:T,signOut:Ce}=Ps({send:m,state:p.value});$t.value=T,Jt.value=Ce});const kt=n.computed(()=>{var T,Ce;return((T=h.value)==null?void 0:T.matches("signIn"))||((Ce=h.value)==null?void 0:Ce.matches("signUp"))});return(T,Ce)=>{var Qt,er,y,$,R,F,M,z,q,G,ue,de;const Xt=p3,en=g3;return n.openBlock(),n.createElementBlock(n.Fragment,null,[((Qt=n.unref(p))==null?void 0:Qt.matches("authenticated"))?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",n.mergeProps({key:0},T.$attrs,{"data-amplify-authenticator":"","data-variation":o}),[n.createElementVNode("div",bx,[n.renderSlot(T.$slots,"header"),n.createElementVNode("div",{"data-amplify-router":"","data-amplify-router-content":n.unref(kt)?void 0:""},[n.unref(kt)&&!u?(n.openBlock(),n.createBlock(en,{key:0},{default:n.withCtx(()=>{var O,U;return[n.createVNode(Xt,{active:(O=n.unref(h))==null?void 0:O.matches("signIn"),id:44472,label:n.unref(V),onClick:Ce[0]||(Ce[0]=He=>n.unref(m)("SIGN_IN"))},null,8,["active","label"]),n.createVNode(Xt,{active:(U=n.unref(h))==null?void 0:U.matches("signUp"),id:44471,label:n.unref(B),onClick:Ce[1]||(Ce[1]=He=>n.unref(m)("SIGN_UP"))},null,8,["active","label"])]}),_:1})):n.createCommentVNode("",!0),n.unref(kt)?(n.openBlock(),n.createElementBlock("div",wx,[((er=n.unref(h))==null?void 0:er.matches("signIn"))?(n.openBlock(),n.createBlock(wa,{key:0,onSignInSubmit:D,ref:(O,U)=>{U.signInComponent=O,C.value=O}},{signInSlotI:n.withCtx(()=>[n.renderSlot(T.$slots,"sign-in")]),form:n.withCtx(({info:O,onSignInSubmit:U,onForgotPasswordClicked:He,onInput:et})=>[n.renderSlot(T.$slots,"sign-in-form",{info:O,onInput:et,onSignInSubmit:U,onForgotPasswordClicked:He})]),header:n.withCtx(()=>[n.renderSlot(T.$slots,"sign-in-header")]),footer:n.withCtx(()=>[n.renderSlot(T.$slots,"sign-in-footer")]),_:3},512)):n.createCommentVNode("",!0),((y=n.unref(h))==null?void 0:y.matches("signUp"))&&!u?(n.openBlock(),n.createBlock(_a,{key:1,onSignUpSubmit:ae,ref:(O,U)=>{U.signUpComponent=O,b.value=O}},{signUpSlotI:n.withCtx(()=>[n.renderSlot(T.$slots,"sign-up")]),header:n.withCtx(()=>[n.renderSlot(T.$slots,"sign-up-header")]),"signup-fields":n.withCtx(({info:O})=>[n.renderSlot(T.$slots,"sign-up-fields",{info:O})]),footer:n.withCtx(()=>[n.renderSlot(T.$slots,"sign-up-footer")]),_:3},512)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),(($=n.unref(h))==null?void 0:$.matches("confirmSignUp"))?(n.openBlock(),n.createBlock(xa,{key:2,onConfirmSignUpSubmit:L,ref:(O,U)=>{U.confirmSignUpComponent=O,g.value=O}},{confirmSignUpSlotI:n.withCtx(()=>[n.renderSlot(T.$slots,"confirm-sign-up")]),header:n.withCtx(()=>[n.renderSlot(T.$slots,"confirm-sign-up-header")]),footer:n.withCtx(({onConfirmSignUpSubmit:O,onLostCodeClicked:U})=>[n.renderSlot(T.$slots,"confirm-sign-up-footer",{onConfirmSignUpSubmit:O,onLostCodeClicked:U})]),_:3},512)):n.createCommentVNode("",!0),((R=n.unref(h))==null?void 0:R.matches("resetPassword"))?(n.openBlock(),n.createBlock(za,{key:3,onResetPasswordSubmit:Q,ref:(O,U)=>{U.resetPasswordComponent=O,I.value=O}},{resetPasswordSlotI:n.withCtx(()=>[n.renderSlot(T.$slots,"reset-password")]),header:n.withCtx(()=>[n.renderSlot(T.$slots,"reset-password-header")]),footer:n.withCtx(({onResetPasswordSubmit:O,onBackToSignInClicked:U})=>[n.renderSlot(T.$slots,"reset-password-footer",{onResetPasswordSubmit:O,onBackToSignInClicked:U})]),_:3},512)):n.createCommentVNode("",!0),((F=n.unref(h))==null?void 0:F.matches("confirmResetPassword"))?(n.openBlock(),n.createBlock(ja,{key:4,onConfirmResetPasswordSubmit:Be,ref:(O,U)=>{U.confirmResetPasswordComponent=O,x.value=O}},{confirmResetPasswordSlotI:n.withCtx(()=>[n.renderSlot(T.$slots,"confirm-reset-password")]),header:n.withCtx(()=>[n.renderSlot(T.$slots,"confirm-reset-password-header")]),footer:n.withCtx(({onConfirmResetPasswordSubmit:O,onLostYourCodeClicked:U})=>[n.renderSlot(T.$slots,"confirm-reset-password-footer",{onConfirmResetPasswordSubmit:O,onLostYourCodeClicked:U})]),_:3},512)):n.createCommentVNode("",!0),((M=n.unref(h))==null?void 0:M.matches("confirmSignIn"))?(n.openBlock(),n.createBlock(Ea,{key:5,onConfirmSignInSubmit:ve,ref:(O,U)=>{U.confirmSignInComponent=O,w.value=O}},{confirmSignInSlotI:n.withCtx(()=>[n.renderSlot(T.$slots,"confirm-sign-in")]),header:n.withCtx(()=>[n.renderSlot(T.$slots,"confirm-sign-in-header")]),footer:n.withCtx(({onConfirmSignInSubmit:O,onBackToSignInClicked:U})=>[n.renderSlot(T.$slots,"confirm-sign-in-footer",{onConfirmSignInSubmit:O,onBackToSignInClicked:U})]),_:3},512)):n.createCommentVNode("",!0),((z=n.unref(h))==null?void 0:z.matches("setupTOTP"))?(n.openBlock(),n.createBlock(mx,{key:6,onConfirmSetupTotpSubmit:Le,ref:(O,U)=>{U.confirmSetupTOTPComponent=O,S.value=O}},{confirmSetupTOTPI:n.withCtx(()=>[n.renderSlot(T.$slots,"setup-totp")]),header:n.withCtx(()=>[n.renderSlot(T.$slots,"setup-totp-header")]),footer:n.withCtx(({onSetupTOTPSubmit:O,onBackToSignInClicked:U})=>[n.renderSlot(T.$slots,"setup-totp-footer",{onSetupTOTPSubmit:O,onBackToSignInClicked:U})]),_:3},512)):n.createCommentVNode("",!0),((q=n.unref(h))==null?void 0:q.matches("forceNewPassword"))?(n.openBlock(),n.createBlock(La,{key:7,onForceNewPasswordSubmit:We,ref:(O,U)=>{U.forceNewPasswordComponent=O,_.value=O}},{forceNewPasswordI:n.withCtx(()=>[n.renderSlot(T.$slots,"force-new-password")]),header:n.withCtx(()=>[n.renderSlot(T.$slots,"force-new-password-header")]),"force-new-password-form-fields":n.withCtx(()=>[n.renderSlot(T.$slots,"force-new-password-form-fields")]),footer:n.withCtx(({onHaveAccountClicked:O,onForceNewPasswordSubmit:U})=>[n.renderSlot(T.$slots,"force-new-password-footer",{onForceNewPasswordSubmit:U,onBackToSignInClicked:O})]),_:3},512)):n.createCommentVNode("",!0),((G=n.unref(h))==null?void 0:G.matches("verifyUser"))?(n.openBlock(),n.createBlock(Ga,{key:8,onVerifyUserSubmit:_e,ref:(O,U)=>{U.verifyUserComponent=O,N.value=O}},{verifyUserSlotI:n.withCtx(()=>[n.renderSlot(T.$slots,"verify-user")]),header:n.withCtx(()=>[n.renderSlot(T.$slots,"verify-user-header")]),footer:n.withCtx(({onVerifyUserSubmit:O,onSkipClicked:U})=>[n.renderSlot(T.$slots,"verify-user-footer",{onVerifyUserSubmit:O,onSkipClicked:U})]),_:3},512)):n.createCommentVNode("",!0),((ue=n.unref(h))==null?void 0:ue.matches("confirmVerifyUser"))?(n.openBlock(),n.createBlock(Wa,{key:9,onConfirmVerifyUserSubmit:Qr,ref:(O,U)=>{U.confirmVerifyUserComponent=O,k.value=O}},{confirmVerifyUserSlotI:n.withCtx(()=>[n.renderSlot(T.$slots,"confirm-verify-user")]),header:n.withCtx(()=>[n.renderSlot(T.$slots,"confirm-verify-user-header")]),footer:n.withCtx(({onConfirmVerifyUserSubmit:O,onSkipClicked:U})=>[n.renderSlot(T.$slots,"confirm-verify-user-footer",{onConfirmVerifyUserSubmit:O,onSkipClicked:U})]),_:3},512)):n.createCommentVNode("",!0)],8,Cx),n.renderSlot(T.$slots,"footer")])],16)),((de=n.unref(p))==null?void 0:de.matches("authenticated"))?n.renderSlot(T.$slots,"default",{key:1,user:$t.value,state:n.unref(p),signOut:Jt.value,send:n.unref(m)}):n.createCommentVNode("",!0)],64)}}}),dl=n.defineComponent({props:{info:{type:Object}},setup(e){return()=>e.info}}),fl=n.defineComponent({props:{label:{default:""},id:{default:""},autocomplete:{default:""},placeholder:{default:""},required:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},name:{default:""},type:{default:"text"},hideLabel:{type:Boolean,default:!0}},setup(e){const t=e,{label:r,id:a,autocomplete:o,placeholder:i,required:s,name:l,type:u}=n.toRefs(t);return(c,d)=>{const v=$e,f=ke,p=pe;return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(v,{class:n.normalizeClass(["amplify-label",{"sr-only":e.hideLabel}]),for:n.unref(a)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(r)),1)]),_:1},8,["class","for"]),n.createVNode(p,{class:"amplify-field-group__field-wrapper"},{default:n.withCtx(()=>[n.createVNode(f,{class:"amplify-input amplify-field-group__control",id:n.unref(a),"aria-invalid":"false",autocomplete:n.unref(o),placeholder:n.unref(i),required:n.unref(s),name:n.unref(l),disabled:e.disabled,type:n.unref(u)},null,8,["id","autocomplete","placeholder","required","name","disabled","type"])]),_:1})],64)}}}),Sx={class:"amplify-flex amplify-field amplify-checkboxfield"},_x={class:"amplify-flex amplify-checkbox"},xx={class:"amplify-visually-hidden"},Ex=["data-error","data-checked"],Ax=["data-checked"],Ix=n.createElementVNode("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},null,-1),Nx=[Ix],Px=n.createElementVNode("span",{class:"amplify-text amplify-checkbox__label"}," I agree with the Terms & Conditions",-1),Tx={key:0,class:"amplify-text amplify-field__error-message"},vl=n.defineComponent({props:{errorMessage:{default:""}},setup(e){const t=e,r=n.ref(!1),{errorMessage:a}=n.toRefs(t);return(o,i)=>(n.openBlock(),n.createElementBlock("div",Sx,[n.createElementVNode("label",_x,[n.createElementVNode("span",xx,[n.createElementVNode("input",{onClick:i[0]||(i[0]=s=>r.value=!r.value),class:"amplify-input amplify-field-group__control amplify-checkbox__input","aria-invalid":"false",type:"checkbox",name:"acknowledgement",value:"yes"})]),n.createElementVNode("span",{class:"amplify-flex amplify-checkbox__button","aria-hidden":"true","data-focus":"false","data-error":!r.value,"data-checked":r.value},[(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon amplify-checkbox__icon",viewBox:"0 0 24 24",fill:"currentColor","data-checked":r.value},Nx,8,Ax))],8,Ex),Px]),r.value?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("p",Tx,n.toDisplayString(n.unref(a)),1))]))}});var $x={install:e=>{e.component("SignIn",wa),e.component("SignUp",_a),e.component("FederatedSignIn",Gr),e.component("Authenticator",cl),e.component("RenderInfo",dl),e.component("PasswordControl",Ge),e.component("UserNameAlias",zr),e.component("ForceNewPassword",La),e.component("ResetPassword",za),e.component("ConfirmResetPassword",ja),e.component("ConfirmSignUp",xa),e.component("ConfirmSignIn",Ea),e.component("VerifyUser",Ga),e.component("ConfirmVerifyUser",Wa),e.component("AmplifyTextField",fl),e.component("AmplifyCheckBox",vl),e.component("AmplifyButton",we),e.component("AuthenticatorSignUpFormFields",Sa),e.component("AuthenticatorForceNewPasswordFormFields",Ma)}};exports.AmplifyButton=we;exports.AmplifyCheckBox=vl;exports.AmplifyTextField=fl;exports.Authenticator=cl;exports.AuthenticatorForceNewPasswordFormFields=Ma;exports.AuthenticatorSignUpFormFields=Sa;exports.ConfirmResetPassword=ja;exports.ConfirmSignIn=Ea;exports.ConfirmSignUp=xa;exports.ConfirmVerifyUser=Wa;exports.FederatedSignIn=Gr;exports.ForceNewPassword=La;exports.PasswordControl=Ge;exports.RenderInfo=dl;exports.ResetPassword=za;exports.SignIn=wa;exports.SignUp=_a;exports.UserNameAlias=zr;exports.VerifyUser=Ga;exports.default=$x;exports.translations=W_;exports.useAuthenticator=Ze;