@movmo_app/react-common 0.15.0 → 0.16.0

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 ou=Object.defineProperty;var iu=(e,t,r)=>t in e?ou(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var go=(e,t,r)=>iu(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("react"),su=require("react-dom");function lu(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const S=lu(w);var tr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function uu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ta={exports:{}},Gn={};/**
1
+ "use strict";var iu=Object.defineProperty;var su=(e,t,r)=>t in e?iu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var go=(e,t,r)=>su(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("react"),lu=require("react-dom");function uu(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const S=uu(E);var tr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ta={exports:{}},Pn={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var mo;function cu(){if(mo)return Gn;mo=1;var e=w,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function i(l,s,c){var d,f={},y=null,C=null;c!==void 0&&(y=""+c),s.key!==void 0&&(y=""+s.key),s.ref!==void 0&&(C=s.ref);for(d in s)a.call(s,d)&&!o.hasOwnProperty(d)&&(f[d]=s[d]);if(l&&l.defaultProps)for(d in s=l.defaultProps,s)f[d]===void 0&&(f[d]=s[d]);return{$$typeof:t,type:l,key:y,ref:C,props:f,_owner:n.current}}return Gn.Fragment=r,Gn.jsx=i,Gn.jsxs=i,Gn}var Pn={};/**
9
+ */var mo;function du(){if(mo)return Pn;mo=1;var e=E,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function i(l,s,c){var d,g={},y=null,x=null;c!==void 0&&(y=""+c),s.key!==void 0&&(y=""+s.key),s.ref!==void 0&&(x=s.ref);for(d in s)a.call(s,d)&&!o.hasOwnProperty(d)&&(g[d]=s[d]);if(l&&l.defaultProps)for(d in s=l.defaultProps,s)g[d]===void 0&&(g[d]=s[d]);return{$$typeof:t,type:l,key:y,ref:x,props:g,_owner:n.current}}return Pn.Fragment=r,Pn.jsx=i,Pn.jsxs=i,Pn}var Tn={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,84 +14,84 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var bo;function du(){return bo||(bo=1,process.env.NODE_ENV!=="production"&&function(){var e=w,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),b=Symbol.iterator,h="@@iterator";function p(v){if(v===null||typeof v!="object")return null;var V=b&&v[b]||v[h];return typeof V=="function"?V:null}var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(v){{for(var V=arguments.length,U=new Array(V>1?V-1:0),be=1;be<V;be++)U[be-1]=arguments[be];R("error",v,U)}}function R(v,V,U){{var be=x.ReactDebugCurrentFrame,Oe=be.getStackAddendum();Oe!==""&&(V+="%s",U=U.concat([Oe]));var ke=U.map(function(Ne){return String(Ne)});ke.unshift("Warning: "+V),Function.prototype.apply.call(console[v],console,ke)}}var A=!1,I=!1,j=!1,F=!1,M=!1,ie;ie=Symbol.for("react.module.reference");function re(v){return!!(typeof v=="string"||typeof v=="function"||v===a||v===o||M||v===n||v===c||v===d||F||v===C||A||I||j||typeof v=="object"&&v!==null&&(v.$$typeof===y||v.$$typeof===f||v.$$typeof===i||v.$$typeof===l||v.$$typeof===s||v.$$typeof===ie||v.getModuleId!==void 0))}function ce(v,V,U){var be=v.displayName;if(be)return be;var Oe=V.displayName||V.name||"";return Oe!==""?U+"("+Oe+")":U}function z(v){return v.displayName||"Context"}function le(v){if(v==null)return null;if(typeof v.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof v=="function")return v.displayName||v.name||null;if(typeof v=="string")return v;switch(v){case a:return"Fragment";case r:return"Portal";case o:return"Profiler";case n:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if(typeof v=="object")switch(v.$$typeof){case l:var V=v;return z(V)+".Consumer";case i:var U=v;return z(U._context)+".Provider";case s:return ce(v,v.render,"ForwardRef");case f:var be=v.displayName||null;return be!==null?be:le(v.type)||"Memo";case y:{var Oe=v,ke=Oe._payload,Ne=Oe._init;try{return le(Ne(ke))}catch{return null}}}return null}var G=Object.assign,T=0,B,J,ne,Ie,_,W,Z;function ae(){}ae.__reactDisabledLog=!0;function L(){{if(T===0){B=console.log,J=console.info,ne=console.warn,Ie=console.error,_=console.group,W=console.groupCollapsed,Z=console.groupEnd;var v={configurable:!0,enumerable:!0,value:ae,writable:!0};Object.defineProperties(console,{info:v,log:v,warn:v,error:v,group:v,groupCollapsed:v,groupEnd:v})}T++}}function m(){{if(T--,T===0){var v={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:G({},v,{value:B}),info:G({},v,{value:J}),warn:G({},v,{value:ne}),error:G({},v,{value:Ie}),group:G({},v,{value:_}),groupCollapsed:G({},v,{value:W}),groupEnd:G({},v,{value:Z})})}T<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var pe=x.ReactCurrentDispatcher,Y;function K(v,V,U){{if(Y===void 0)try{throw Error()}catch(Oe){var be=Oe.stack.trim().match(/\n( *(at )?)/);Y=be&&be[1]||""}return`
18
- `+Y+v}}var me=!1,ye;{var Te=typeof WeakMap=="function"?WeakMap:Map;ye=new Te}function X(v,V){if(!v||me)return"";{var U=ye.get(v);if(U!==void 0)return U}var be;me=!0;var Oe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ke;ke=pe.current,pe.current=null,L();try{if(V){var Ne=function(){throw Error()};if(Object.defineProperty(Ne.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ne,[])}catch(te){be=te}Reflect.construct(v,[],Ne)}else{try{Ne.call()}catch(te){be=te}v.call(Ne.prototype)}}else{try{throw Error()}catch(te){be=te}v()}}catch(te){if(te&&be&&typeof te.stack=="string"){for(var Ge=te.stack.split(`
19
- `),rt=be.stack.split(`
20
- `),qe=Ge.length-1,g=rt.length-1;qe>=1&&g>=0&&Ge[qe]!==rt[g];)g--;for(;qe>=1&&g>=0;qe--,g--)if(Ge[qe]!==rt[g]){if(qe!==1||g!==1)do if(qe--,g--,g<0||Ge[qe]!==rt[g]){var N=`
21
- `+Ge[qe].replace(" at new "," at ");return v.displayName&&N.includes("<anonymous>")&&(N=N.replace("<anonymous>",v.displayName)),typeof v=="function"&&ye.set(v,N),N}while(qe>=1&&g>=0);break}}}finally{me=!1,pe.current=ke,m(),Error.prepareStackTrace=Oe}var k=v?v.displayName||v.name:"",H=k?K(k):"";return typeof v=="function"&&ye.set(v,H),H}function je(v,V,U){return X(v,!1)}function Ae(v){var V=v.prototype;return!!(V&&V.isReactComponent)}function P(v,V,U){if(v==null)return"";if(typeof v=="function")return X(v,Ae(v));if(typeof v=="string")return K(v);switch(v){case c:return K("Suspense");case d:return K("SuspenseList")}if(typeof v=="object")switch(v.$$typeof){case s:return je(v.render);case f:return P(v.type,V,U);case y:{var be=v,Oe=be._payload,ke=be._init;try{return P(ke(Oe),V,U)}catch{}}}return""}var D=Object.prototype.hasOwnProperty,$={},he=x.ReactDebugCurrentFrame;function ue(v){if(v){var V=v._owner,U=P(v.type,v._source,V?V.type:null);he.setExtraStackFrame(U)}else he.setExtraStackFrame(null)}function Ce(v,V,U,be,Oe){{var ke=Function.call.bind(D);for(var Ne in v)if(ke(v,Ne)){var Ge=void 0;try{if(typeof v[Ne]!="function"){var rt=Error((be||"React class")+": "+U+" type `"+Ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof v[Ne]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw rt.name="Invariant Violation",rt}Ge=v[Ne](V,Ne,be,U,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(qe){Ge=qe}Ge&&!(Ge instanceof Error)&&(ue(Oe),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",be||"React class",U,Ne,typeof Ge),ue(null)),Ge instanceof Error&&!(Ge.message in $)&&($[Ge.message]=!0,ue(Oe),E("Failed %s type: %s",U,Ge.message),ue(null))}}}var we=Array.isArray;function Re(v){return we(v)}function ee(v){{var V=typeof Symbol=="function"&&Symbol.toStringTag,U=V&&v[Symbol.toStringTag]||v.constructor.name||"Object";return U}}function de(v){try{return Se(v),!1}catch{return!0}}function Se(v){return""+v}function q(v){if(de(v))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ee(v)),Se(v)}var se=x.ReactCurrentOwner,De={key:!0,ref:!0,__self:!0,__source:!0},ot,Ke;function lt(v){if(D.call(v,"ref")){var V=Object.getOwnPropertyDescriptor(v,"ref").get;if(V&&V.isReactWarning)return!1}return v.ref!==void 0}function mt(v){if(D.call(v,"key")){var V=Object.getOwnPropertyDescriptor(v,"key").get;if(V&&V.isReactWarning)return!1}return v.key!==void 0}function St(v,V){typeof v.ref=="string"&&se.current}function Ue(v,V){{var U=function(){ot||(ot=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",V))};U.isReactWarning=!0,Object.defineProperty(v,"key",{get:U,configurable:!0})}}function Gt(v,V){{var U=function(){Ke||(Ke=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",V))};U.isReactWarning=!0,Object.defineProperty(v,"ref",{get:U,configurable:!0})}}var Ft=function(v,V,U,be,Oe,ke,Ne){var Ge={$$typeof:t,type:v,key:V,ref:U,props:Ne,_owner:ke};return Ge._store={},Object.defineProperty(Ge._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ge,"_self",{configurable:!1,enumerable:!1,writable:!1,value:be}),Object.defineProperty(Ge,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Oe}),Object.freeze&&(Object.freeze(Ge.props),Object.freeze(Ge)),Ge};function an(v,V,U,be,Oe){{var ke,Ne={},Ge=null,rt=null;U!==void 0&&(q(U),Ge=""+U),mt(V)&&(q(V.key),Ge=""+V.key),lt(V)&&(rt=V.ref,St(V,Oe));for(ke in V)D.call(V,ke)&&!De.hasOwnProperty(ke)&&(Ne[ke]=V[ke]);if(v&&v.defaultProps){var qe=v.defaultProps;for(ke in qe)Ne[ke]===void 0&&(Ne[ke]=qe[ke])}if(Ge||rt){var g=typeof v=="function"?v.displayName||v.name||"Unknown":v;Ge&&Ue(Ne,g),rt&&Gt(Ne,g)}return Ft(v,Ge,rt,Oe,be,se.current,Ne)}}var At=x.ReactCurrentOwner,Pt=x.ReactDebugCurrentFrame;function Tt(v){if(v){var V=v._owner,U=P(v.type,v._source,V?V.type:null);Pt.setExtraStackFrame(U)}else Pt.setExtraStackFrame(null)}var on;on=!1;function Zt(v){return typeof v=="object"&&v!==null&&v.$$typeof===t}function sn(){{if(At.current){var v=le(At.current.type);if(v)return`
17
+ */var bo;function fu(){return bo||(bo=1,process.env.NODE_ENV!=="production"&&function(){var e=E,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),m=Symbol.iterator,h="@@iterator";function p(v){if(v===null||typeof v!="object")return null;var H=m&&v[m]||v[h];return typeof H=="function"?H:null}var C=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(v){{for(var H=arguments.length,q=new Array(H>1?H-1:0),be=1;be<H;be++)q[be-1]=arguments[be];N("error",v,q)}}function N(v,H,q){{var be=C.ReactDebugCurrentFrame,Te=be.getStackAddendum();Te!==""&&(H+="%s",q=q.concat([Te]));var Me=q.map(function(Ee){return String(Ee)});Me.unshift("Warning: "+H),Function.prototype.apply.call(console[v],console,Me)}}var A=!1,I=!1,M=!1,_=!1,B=!1,se;se=Symbol.for("react.module.reference");function te(v){return!!(typeof v=="string"||typeof v=="function"||v===a||v===o||B||v===n||v===c||v===d||_||v===x||A||I||M||typeof v=="object"&&v!==null&&(v.$$typeof===y||v.$$typeof===g||v.$$typeof===i||v.$$typeof===l||v.$$typeof===s||v.$$typeof===se||v.getModuleId!==void 0))}function fe(v,H,q){var be=v.displayName;if(be)return be;var Te=H.displayName||H.name||"";return Te!==""?q+"("+Te+")":q}function $(v){return v.displayName||"Context"}function ce(v){if(v==null)return null;if(typeof v.tag=="number"&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof v=="function")return v.displayName||v.name||null;if(typeof v=="string")return v;switch(v){case a:return"Fragment";case r:return"Portal";case o:return"Profiler";case n:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if(typeof v=="object")switch(v.$$typeof){case l:var H=v;return $(H)+".Consumer";case i:var q=v;return $(q._context)+".Provider";case s:return fe(v,v.render,"ForwardRef");case g:var be=v.displayName||null;return be!==null?be:ce(v.type)||"Memo";case y:{var Te=v,Me=Te._payload,Ee=Te._init;try{return ce(Ee(Me))}catch{return null}}}return null}var T=Object.assign,j=0,k,J,pe,ue,D,L,Y;function ie(){}ie.__reactDisabledLog=!0;function X(){{if(j===0){k=console.log,J=console.info,pe=console.warn,ue=console.error,D=console.group,L=console.groupCollapsed,Y=console.groupEnd;var v={configurable:!0,enumerable:!0,value:ie,writable:!0};Object.defineProperties(console,{info:v,log:v,warn:v,error:v,group:v,groupCollapsed:v,groupEnd:v})}j++}}function b(){{if(j--,j===0){var v={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:T({},v,{value:k}),info:T({},v,{value:J}),warn:T({},v,{value:pe}),error:T({},v,{value:ue}),group:T({},v,{value:D}),groupCollapsed:T({},v,{value:L}),groupEnd:T({},v,{value:Y})})}j<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var de=C.ReactCurrentDispatcher,Z;function K(v,H,q){{if(Z===void 0)try{throw Error()}catch(Te){var be=Te.stack.trim().match(/\n( *(at )?)/);Z=be&&be[1]||""}return`
18
+ `+Z+v}}var me=!1,we;{var Ge=typeof WeakMap=="function"?WeakMap:Map;we=new Ge}function z(v,H){if(!v||me)return"";{var q=we.get(v);if(q!==void 0)return q}var be;me=!0;var Te=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Me;Me=de.current,de.current=null,X();try{if(H){var Ee=function(){throw Error()};if(Object.defineProperty(Ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ee,[])}catch(U){be=U}Reflect.construct(v,[],Ee)}else{try{Ee.call()}catch(U){be=U}v.call(Ee.prototype)}}else{try{throw Error()}catch(U){be=U}v()}}catch(U){if(U&&be&&typeof U.stack=="string"){for(var Re=U.stack.split(`
19
+ `),G=be.stack.split(`
20
+ `),F=Re.length-1,f=G.length-1;F>=1&&f>=0&&Re[F]!==G[f];)f--;for(;F>=1&&f>=0;F--,f--)if(Re[F]!==G[f]){if(F!==1||f!==1)do if(F--,f--,f<0||Re[F]!==G[f]){var w=`
21
+ `+Re[F].replace(" at new "," at ");return v.displayName&&w.includes("<anonymous>")&&(w=w.replace("<anonymous>",v.displayName)),typeof v=="function"&&we.set(v,w),w}while(F>=1&&f>=0);break}}}finally{me=!1,de.current=Me,b(),Error.prepareStackTrace=Te}var O=v?v.displayName||v.name:"",V=O?K(O):"";return typeof v=="function"&&we.set(v,V),V}function Fe(v,H,q){return z(v,!1)}function Pe(v){var H=v.prototype;return!!(H&&H.isReactComponent)}function P(v,H,q){if(v==null)return"";if(typeof v=="function")return z(v,Pe(v));if(typeof v=="string")return K(v);switch(v){case c:return K("Suspense");case d:return K("SuspenseList")}if(typeof v=="object")switch(v.$$typeof){case s:return Fe(v.render);case g:return P(v.type,H,q);case y:{var be=v,Te=be._payload,Me=be._init;try{return P(Me(Te),H,q)}catch{}}}return""}var W=Object.prototype.hasOwnProperty,re={},Ce=C.ReactDebugCurrentFrame;function ae(v){if(v){var H=v._owner,q=P(v.type,v._source,H?H.type:null);Ce.setExtraStackFrame(q)}else Ce.setExtraStackFrame(null)}function ve(v,H,q,be,Te){{var Me=Function.call.bind(W);for(var Ee in v)if(Me(v,Ee)){var Re=void 0;try{if(typeof v[Ee]!="function"){var G=Error((be||"React class")+": "+q+" type `"+Ee+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof v[Ee]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw G.name="Invariant Violation",G}Re=v[Ee](H,Ee,be,q,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(F){Re=F}Re&&!(Re instanceof Error)&&(ae(Te),R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",be||"React class",q,Ee,typeof Re),ae(null)),Re instanceof Error&&!(Re.message in re)&&(re[Re.message]=!0,ae(Te),R("Failed %s type: %s",q,Re.message),ae(null))}}}var Se=Array.isArray;function xe(v){return Se(v)}function Q(v){{var H=typeof Symbol=="function"&&Symbol.toStringTag,q=H&&v[Symbol.toStringTag]||v.constructor.name||"Object";return q}}function ee(v){try{return Ae(v),!1}catch{return!0}}function Ae(v){return""+v}function oe(v){if(ee(v))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Q(v)),Ae(v)}var le=C.ReactCurrentOwner,ke={key:!0,ref:!0,__self:!0,__source:!0},Qe,Ue;function st(v){if(W.call(v,"ref")){var H=Object.getOwnPropertyDescriptor(v,"ref").get;if(H&&H.isReactWarning)return!1}return v.ref!==void 0}function nt(v){if(W.call(v,"key")){var H=Object.getOwnPropertyDescriptor(v,"key").get;if(H&&H.isReactWarning)return!1}return v.key!==void 0}function pt(v,H){typeof v.ref=="string"&&le.current}function $e(v,H){{var q=function(){Qe||(Qe=!0,R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",H))};q.isReactWarning=!0,Object.defineProperty(v,"key",{get:q,configurable:!0})}}function ut(v,H){{var q=function(){Ue||(Ue=!0,R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",H))};q.isReactWarning=!0,Object.defineProperty(v,"ref",{get:q,configurable:!0})}}var gt=function(v,H,q,be,Te,Me,Ee){var Re={$$typeof:t,type:v,key:H,ref:q,props:Ee,_owner:Me};return Re._store={},Object.defineProperty(Re._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Re,"_self",{configurable:!1,enumerable:!1,writable:!1,value:be}),Object.defineProperty(Re,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Te}),Object.freeze&&(Object.freeze(Re.props),Object.freeze(Re)),Re};function Wt(v,H,q,be,Te){{var Me,Ee={},Re=null,G=null;q!==void 0&&(oe(q),Re=""+q),nt(H)&&(oe(H.key),Re=""+H.key),st(H)&&(G=H.ref,pt(H,Te));for(Me in H)W.call(H,Me)&&!ke.hasOwnProperty(Me)&&(Ee[Me]=H[Me]);if(v&&v.defaultProps){var F=v.defaultProps;for(Me in F)Ee[Me]===void 0&&(Ee[Me]=F[Me])}if(Re||G){var f=typeof v=="function"?v.displayName||v.name||"Unknown":v;Re&&$e(Ee,f),G&&ut(Ee,f)}return gt(v,Re,G,Te,be,le.current,Ee)}}var vt=C.ReactCurrentOwner,Ct=C.ReactDebugCurrentFrame;function yt(v){if(v){var H=v._owner,q=P(v.type,v._source,H?H.type:null);Ct.setExtraStackFrame(q)}else Ct.setExtraStackFrame(null)}var Lt;Lt=!1;function Pt(v){return typeof v=="object"&&v!==null&&v.$$typeof===t}function nn(){{if(vt.current){var v=ce(vt.current.type);if(v)return`
22
22
 
23
- Check the render method of \``+v+"`."}return""}}function Bt(v){return""}var xt={};function vt(v){{var V=sn();if(!V){var U=typeof v=="string"?v:v.displayName||v.name;U&&(V=`
23
+ Check the render method of \``+v+"`."}return""}}function Tt(v){return""}var xt={};function mt(v){{var H=nn();if(!H){var q=typeof v=="string"?v:v.displayName||v.name;q&&(H=`
24
24
 
25
- Check the top-level render call using <`+U+">.")}return V}}function ln(v,V){{if(!v._store||v._store.validated||v.key!=null)return;v._store.validated=!0;var U=vt(V);if(xt[U])return;xt[U]=!0;var be="";v&&v._owner&&v._owner!==At.current&&(be=" It was passed a child from "+le(v._owner.type)+"."),Tt(v),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',U,be),Tt(null)}}function Ot(v,V){{if(typeof v!="object")return;if(Re(v))for(var U=0;U<v.length;U++){var be=v[U];Zt(be)&&ln(be,V)}else if(Zt(v))v._store&&(v._store.validated=!0);else if(v){var Oe=p(v);if(typeof Oe=="function"&&Oe!==v.entries)for(var ke=Oe.call(v),Ne;!(Ne=ke.next()).done;)Zt(Ne.value)&&ln(Ne.value,V)}}}function un(v){{var V=v.type;if(V==null||typeof V=="string")return;var U;if(typeof V=="function")U=V.propTypes;else if(typeof V=="object"&&(V.$$typeof===s||V.$$typeof===f))U=V.propTypes;else return;if(U){var be=le(V);Ce(U,v.props,"prop",be,v)}else if(V.PropTypes!==void 0&&!on){on=!0;var Oe=le(V);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Oe||"Unknown")}typeof V.getDefaultProps=="function"&&!V.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function O(v){{for(var V=Object.keys(v.props),U=0;U<V.length;U++){var be=V[U];if(be!=="children"&&be!=="key"){Tt(v),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",be),Tt(null);break}}v.ref!==null&&(Tt(v),E("Invalid attribute `ref` supplied to `React.Fragment`."),Tt(null))}}var Q={};function oe(v,V,U,be,Oe,ke){{var Ne=re(v);if(!Ne){var Ge="";(v===void 0||typeof v=="object"&&v!==null&&Object.keys(v).length===0)&&(Ge+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var rt=Bt();rt?Ge+=rt:Ge+=sn();var qe;v===null?qe="null":Re(v)?qe="array":v!==void 0&&v.$$typeof===t?(qe="<"+(le(v.type)||"Unknown")+" />",Ge=" Did you accidentally export a JSX literal instead of a component?"):qe=typeof v,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",qe,Ge)}var g=an(v,V,U,Oe,ke);if(g==null)return g;if(Ne){var N=V.children;if(N!==void 0)if(be)if(Re(N)){for(var k=0;k<N.length;k++)Ot(N[k],v);Object.freeze&&Object.freeze(N)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ot(N,v)}if(D.call(V,"key")){var H=le(v),te=Object.keys(V).filter(function(Ye){return Ye!=="key"}),fe=te.length>0?"{key: someKey, "+te.join(": ..., ")+": ...}":"{key: someKey}";if(!Q[H+fe]){var Ee=te.length>0?"{"+te.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+q+">.")}return H}}function rn(v,H){{if(!v._store||v._store.validated||v.key!=null)return;v._store.validated=!0;var q=mt(H);if(xt[q])return;xt[q]=!0;var be="";v&&v._owner&&v._owner!==vt.current&&(be=" It was passed a child from "+ce(v._owner.type)+"."),yt(v),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',q,be),yt(null)}}function Ot(v,H){{if(typeof v!="object")return;if(xe(v))for(var q=0;q<v.length;q++){var be=v[q];Pt(be)&&rn(be,H)}else if(Pt(v))v._store&&(v._store.validated=!0);else if(v){var Te=p(v);if(typeof Te=="function"&&Te!==v.entries)for(var Me=Te.call(v),Ee;!(Ee=Me.next()).done;)Pt(Ee.value)&&rn(Ee.value,H)}}}function dn(v){{var H=v.type;if(H==null||typeof H=="string")return;var q;if(typeof H=="function")q=H.propTypes;else if(typeof H=="object"&&(H.$$typeof===s||H.$$typeof===g))q=H.propTypes;else return;if(q){var be=ce(H);ve(q,v.props,"prop",be,v)}else if(H.PropTypes!==void 0&&!Lt){Lt=!0;var Te=ce(H);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Te||"Unknown")}typeof H.getDefaultProps=="function"&&!H.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function fn(v){{for(var H=Object.keys(v.props),q=0;q<H.length;q++){var be=H[q];if(be!=="children"&&be!=="key"){yt(v),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",be),yt(null);break}}v.ref!==null&&(yt(v),R("Invalid attribute `ref` supplied to `React.Fragment`."),yt(null))}}var pn={};function jt(v,H,q,be,Te,Me){{var Ee=te(v);if(!Ee){var Re="";(v===void 0||typeof v=="object"&&v!==null&&Object.keys(v).length===0)&&(Re+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var G=Tt();G?Re+=G:Re+=nn();var F;v===null?F="null":xe(v)?F="array":v!==void 0&&v.$$typeof===t?(F="<"+(ce(v.type)||"Unknown")+" />",Re=" Did you accidentally export a JSX literal instead of a component?"):F=typeof v,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",F,Re)}var f=Wt(v,H,q,Te,Me);if(f==null)return f;if(Ee){var w=H.children;if(w!==void 0)if(be)if(xe(w)){for(var O=0;O<w.length;O++)Ot(w[O],v);Object.freeze&&Object.freeze(w)}else R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ot(w,v)}if(W.call(H,"key")){var V=ce(v),U=Object.keys(H).filter(function(Xe){return Xe!=="key"}),ne=U.length>0?"{key: someKey, "+U.join(": ..., ")+": ...}":"{key: someKey}";if(!pn[V+ne]){var he=U.length>0?"{"+U.join(": ..., ")+": ...}":"{}";R(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,fe,H,Ee,H),Q[H+fe]=!0}}return v===a?O(g):un(g),g}}function Fe(v,V,U){return oe(v,V,U,!0)}function nt(v,V,U){return oe(v,V,U,!1)}var ft=nt,ut=Fe;Pn.Fragment=a,Pn.jsx=ft,Pn.jsxs=ut}()),Pn}process.env.NODE_ENV==="production"?ta.exports=cu():ta.exports=du();var u=ta.exports;function bi(e){var t,r,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=bi(e[t]))&&(a&&(a+=" "),a+=r)}else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}function fu(){for(var e,t,r=0,a="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=bi(e))&&(a&&(a+=" "),a+=t);return a}const Ia="-",pu=e=>{const t=mu(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:i=>{const l=i.split(Ia);return l[0]===""&&l.length!==1&&l.shift(),hi(l,t)||gu(i)},getConflictingClassGroupIds:(i,l)=>{const s=r[i]||[];return l&&a[i]?[...s,...a[i]]:s}}},hi=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],a=t.nextPart.get(r),n=a?hi(e.slice(1),a):void 0;if(n)return n;if(t.validators.length===0)return;const o=e.join(Ia);return(i=t.validators.find(({validator:l})=>l(o)))==null?void 0:i.classGroupId},ho=/^\[(.+)\]$/,gu=e=>{if(ho.test(e)){const t=ho.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},mu=e=>{const{theme:t,prefix:r}=e,a={nextPart:new Map,validators:[]};return hu(Object.entries(e.classGroups),r).forEach(([o,i])=>{na(i,a,o,t)}),a},na=(e,t,r,a)=>{e.forEach(n=>{if(typeof n=="string"){const o=n===""?t:vo(t,n);o.classGroupId=r;return}if(typeof n=="function"){if(bu(n)){na(n(a),t,r,a);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([o,i])=>{na(i,vo(t,o),r,a)})})},vo=(e,t)=>{let r=e;return t.split(Ia).forEach(a=>{r.nextPart.has(a)||r.nextPart.set(a,{nextPart:new Map,validators:[]}),r=r.nextPart.get(a)}),r},bu=e=>e.isThemeGetter,hu=(e,t)=>t?e.map(([r,a])=>{const n=a.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,l])=>[t+i,l])):o);return[r,n]}):e,vu=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,a=new Map;const n=(o,i)=>{r.set(o,i),t++,t>e&&(t=0,a=r,r=new Map)};return{get(o){let i=r.get(o);if(i!==void 0)return i;if((i=a.get(o))!==void 0)return n(o,i),i},set(o,i){r.has(o)?r.set(o,i):n(o,i)}}},vi="!",yu=e=>{const{separator:t,experimentalParseClassName:r}=e,a=t.length===1,n=t[0],o=t.length,i=l=>{const s=[];let c=0,d=0,f;for(let p=0;p<l.length;p++){let x=l[p];if(c===0){if(x===n&&(a||l.slice(p,p+o)===t)){s.push(l.slice(d,p)),d=p+o;continue}if(x==="/"){f=p;continue}}x==="["?c++:x==="]"&&c--}const y=s.length===0?l:l.substring(d),C=y.startsWith(vi),b=C?y.substring(1):y,h=f&&f>d?f-d:void 0;return{modifiers:s,hasImportantModifier:C,baseClassName:b,maybePostfixModifierPosition:h}};return r?l=>r({className:l,parseClassName:i}):i},Cu=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(a=>{a[0]==="["?(t.push(...r.sort(),a),r=[]):r.push(a)}),t.push(...r.sort()),t},xu=e=>({cache:vu(e.cacheSize),parseClassName:yu(e),...pu(e)}),Iu=/\s+/,Su=(e,t)=>{const{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:n}=t,o=[],i=e.trim().split(Iu);let l="";for(let s=i.length-1;s>=0;s-=1){const c=i[s],{modifiers:d,hasImportantModifier:f,baseClassName:y,maybePostfixModifierPosition:C}=r(c);let b=!!C,h=a(b?y.substring(0,C):y);if(!h){if(!b){l=c+(l.length>0?" "+l:l);continue}if(h=a(y),!h){l=c+(l.length>0?" "+l:l);continue}b=!1}const p=Cu(d).join(":"),x=f?p+vi:p,E=x+h;if(o.includes(E))continue;o.push(E);const R=n(h,b);for(let A=0;A<R.length;++A){const I=R[A];o.push(x+I)}l=c+(l.length>0?" "+l:l)}return l};function Au(){let e=0,t,r,a="";for(;e<arguments.length;)(t=arguments[e++])&&(r=yi(t))&&(a&&(a+=" "),a+=r);return a}const yi=e=>{if(typeof e=="string")return e;let t,r="";for(let a=0;a<e.length;a++)e[a]&&(t=yi(e[a]))&&(r&&(r+=" "),r+=t);return r};function wu(e,...t){let r,a,n,o=i;function i(s){const c=t.reduce((d,f)=>f(d),e());return r=xu(c),a=r.cache.get,n=r.cache.set,o=l,l(s)}function l(s){const c=a(s);if(c)return c;const d=Su(s,r);return n(s,d),d}return function(){return o(Au.apply(null,arguments))}}const Qe=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Ci=/^\[(?:([a-z-]+):)?(.+)\]$/i,Eu=/^\d+\/\d+$/,Ru=new Set(["px","full","screen"]),Nu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Gu=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Pu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Tu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ou=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,_t=e=>Cn(e)||Ru.has(e)||Eu.test(e),Ut=e=>wn(e,"length",Du),Cn=e=>!!e&&!Number.isNaN(Number(e)),Lr=e=>wn(e,"number",Cn),Tn=e=>!!e&&Number.isInteger(Number(e)),ju=e=>e.endsWith("%")&&Cn(e.slice(0,-1)),Pe=e=>Ci.test(e),$t=e=>Nu.test(e),Mu=new Set(["length","size","percentage"]),ku=e=>wn(e,Mu,xi),Fu=e=>wn(e,"position",xi),Bu=new Set(["image","url"]),Vu=e=>wn(e,Bu,Lu),_u=e=>wn(e,"",Wu),On=()=>!0,wn=(e,t,r)=>{const a=Ci.exec(e);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):r(a[2]):!1},Du=e=>Gu.test(e)&&!Pu.test(e),xi=()=>!1,Wu=e=>Tu.test(e),Lu=e=>Ou.test(e),Xu=()=>{const e=Qe("colors"),t=Qe("spacing"),r=Qe("blur"),a=Qe("brightness"),n=Qe("borderColor"),o=Qe("borderRadius"),i=Qe("borderSpacing"),l=Qe("borderWidth"),s=Qe("contrast"),c=Qe("grayscale"),d=Qe("hueRotate"),f=Qe("invert"),y=Qe("gap"),C=Qe("gradientColorStops"),b=Qe("gradientColorStopPositions"),h=Qe("inset"),p=Qe("margin"),x=Qe("opacity"),E=Qe("padding"),R=Qe("saturate"),A=Qe("scale"),I=Qe("sepia"),j=Qe("skew"),F=Qe("space"),M=Qe("translate"),ie=()=>["auto","contain","none"],re=()=>["auto","hidden","clip","visible","scroll"],ce=()=>["auto",Pe,t],z=()=>[Pe,t],le=()=>["",_t,Ut],G=()=>["auto",Cn,Pe],T=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],J=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ne=()=>["start","end","center","between","around","evenly","stretch"],Ie=()=>["","0",Pe],_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[Cn,Pe];return{cacheSize:500,separator:":",theme:{colors:[On],spacing:[_t,Ut],blur:["none","",$t,Pe],brightness:W(),borderColor:[e],borderRadius:["none","","full",$t,Pe],borderSpacing:z(),borderWidth:le(),contrast:W(),grayscale:Ie(),hueRotate:W(),invert:Ie(),gap:z(),gradientColorStops:[e],gradientColorStopPositions:[ju,Ut],inset:ce(),margin:ce(),opacity:W(),padding:z(),saturate:W(),scale:W(),sepia:Ie(),skew:W(),space:z(),translate:z()},classGroups:{aspect:[{aspect:["auto","square","video",Pe]}],container:["container"],columns:[{columns:[$t]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...T(),Pe]}],overflow:[{overflow:re()}],"overflow-x":[{"overflow-x":re()}],"overflow-y":[{"overflow-y":re()}],overscroll:[{overscroll:ie()}],"overscroll-x":[{"overscroll-x":ie()}],"overscroll-y":[{"overscroll-y":ie()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Tn,Pe]}],basis:[{basis:ce()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Pe]}],grow:[{grow:Ie()}],shrink:[{shrink:Ie()}],order:[{order:["first","last","none",Tn,Pe]}],"grid-cols":[{"grid-cols":[On]}],"col-start-end":[{col:["auto",{span:["full",Tn,Pe]},Pe]}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":[On]}],"row-start-end":[{row:["auto",{span:[Tn,Pe]},Pe]}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Pe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Pe]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...ne()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ne(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ne(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[E]}],px:[{px:[E]}],py:[{py:[E]}],ps:[{ps:[E]}],pe:[{pe:[E]}],pt:[{pt:[E]}],pr:[{pr:[E]}],pb:[{pb:[E]}],pl:[{pl:[E]}],m:[{m:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],me:[{me:[p]}],mt:[{mt:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],"space-x":[{"space-x":[F]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[F]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Pe,t]}],"min-w":[{"min-w":[Pe,t,"min","max","fit"]}],"max-w":[{"max-w":[Pe,t,"none","full","min","max","fit","prose",{screen:[$t]},$t]}],h:[{h:[Pe,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Pe,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Pe,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Pe,t,"auto","min","max","fit"]}],"font-size":[{text:["base",$t,Ut]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Lr]}],"font-family":[{font:[On]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Pe]}],"line-clamp":[{"line-clamp":["none",Cn,Lr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",_t,Pe]}],"list-image":[{"list-image":["none",Pe]}],"list-style-type":[{list:["none","disc","decimal",Pe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",_t,Ut]}],"underline-offset":[{"underline-offset":["auto",_t,Pe]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Pe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Pe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...T(),Fu]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ku]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Vu]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[C]}],"gradient-via":[{via:[C]}],"gradient-to":[{to:[C]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:B()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[_t,Pe]}],"outline-w":[{outline:[_t,Ut]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[_t,Ut]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",$t,_u]}],"shadow-color":[{shadow:[On]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...J(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":J()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[a]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",$t,Pe]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[R]}],sepia:[{sepia:[I]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[R]}],"backdrop-sepia":[{"backdrop-sepia":[I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Pe]}],duration:[{duration:W()}],ease:[{ease:["linear","in","out","in-out",Pe]}],delay:[{delay:W()}],animate:[{animate:["none","spin","ping","pulse","bounce",Pe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[Tn,Pe]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[j]}],"skew-y":[{"skew-y":[j]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Pe]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Pe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Pe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[_t,Ut,Lr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Hu=wu(Xu);function Me(...e){return Hu(fu(e))}const Ii=S.forwardRef(({variant:e="primary",size:t="md",isLoading:r=!1,fullWidth:a=!1,className:n,children:o,...i},l)=>{const s="font-inter inline-flex items-center justify-center rounded-lg text-white font-semibold transition-colors focus:outline-none",c={primary:"bg-brand-500 hover:bg-brand-600",secondary:"bg-secondary-500 hover:bg-secondary-600",error:"bg-error-500 hover:bg-error-600",success:"bg-success-500 hover:bg-success-600",warning:"bg-warning-500 hover:bg-warning-600"},d={sm:"px-3 py-2 text-sm",md:"px-3.5 py-2.5 text-sm",lg:"px-4 py-2.5 text-base",xl:"px-5 py-3 text-base","2xl":"px-6 py-4 text-lg"},f=r?"opacity-70 cursor-not-allowed":"",y=a?"w-full":"";return u.jsx("button",{ref:l,className:Me(s,c[e],d[t],f,y,n),disabled:r||i.disabled,...i,children:o})});Ii.displayName="Button";function Zu(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Si(...e){return t=>e.forEach(r=>Zu(r,t))}function Ai(...e){return S.useCallback(Si(...e),e)}var wi=S.forwardRef((e,t)=>{const{children:r,...a}=e,n=S.Children.toArray(r),o=n.find(Yu);if(o){const i=o.props.children,l=n.map(s=>s===o?S.Children.count(i)>1?S.Children.only(null):S.isValidElement(i)?i.props.children:null:s);return u.jsx(ra,{...a,ref:t,children:S.isValidElement(i)?S.cloneElement(i,void 0,l):null})}return u.jsx(ra,{...a,ref:t,children:r})});wi.displayName="Slot";var ra=S.forwardRef((e,t)=>{const{children:r,...a}=e;if(S.isValidElement(r)){const n=Uu(r);return S.cloneElement(r,{...Ju(a,r.props),ref:t?Si(t,n):n})}return S.Children.count(r)>1?S.Children.only(null):null});ra.displayName="SlotClone";var zu=({children:e})=>u.jsx(u.Fragment,{children:e});function Yu(e){return S.isValidElement(e)&&e.type===zu}function Ju(e,t){const r={...t};for(const a in t){const n=e[a],o=t[a];/^on[A-Z]/.test(a)?n&&o?r[a]=(...l)=>{o(...l),n(...l)}:n&&(r[a]=n):a==="style"?r[a]={...n,...o}:a==="className"&&(r[a]=[n,o].filter(Boolean).join(" "))}return{...e,...r}}function Uu(e){var a,n;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var $u=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Sa=$u.reduce((e,t)=>{const r=S.forwardRef((a,n)=>{const{asChild:o,...i}=a,l=o?wi:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(l,{...i,ref:n})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Qu="Separator",yo="horizontal",Ku=["horizontal","vertical"],Ei=S.forwardRef((e,t)=>{const{decorative:r,orientation:a=yo,...n}=e,o=qu(a)?a:yo,l=r?{role:"none"}:{"aria-orientation":o==="vertical"?o:void 0,role:"separator"};return u.jsx(Sa.div,{"data-orientation":o,...l,...n,ref:t})});Ei.displayName=Qu;function qu(e){return Ku.includes(e)}var Ri=Ei;const Ni=S.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,text:a,...n},o)=>a?u.jsxs("div",{className:"flex items-center w-full",children:[u.jsx("div",{className:"flex-grow border-t border-grayWarm-200"}),u.jsx("span",{className:Me("px-4 text-grayWarm-500 text-sm font-normal",e),children:a}),u.jsx("div",{className:"flex-grow border-t border-grayWarm-200"})]}):u.jsx(Ri,{ref:o,decorative:r,orientation:t,className:Me("shrink-0 bg-border bg-grayWarm-200",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));Ni.displayName=Ri.displayName;const Aa=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:Me("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Aa.displayName="Card";const wa=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:Me("flex flex-col space-y-1.5 p-6",e),...t}));wa.displayName="CardHeader";const Gi=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:Me("font-semibold leading-none tracking-tight",e),...t}));Gi.displayName="CardTitle";const Pi=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:Me("text-sm text-muted-foreground",e),...t}));Pi.displayName="CardDescription";const Ea=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:Me("p-6 pt-0",e),...t}));Ea.displayName="CardContent";const Ti=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:Me("flex items-center p-6 pt-0",e),...t}));Ti.displayName="CardFooter";function fn(e){"@babel/helpers - typeof";return fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fn(e)}function ec(e,t){if(fn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(fn(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Oi(e){var t=ec(e,"string");return fn(t)=="symbol"?t:t+""}function Fn(e,t,r){return(t=Oi(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Co(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function ve(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Co(Object(r),!0).forEach(function(a){Fn(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Co(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function tc(e){if(Array.isArray(e))return e}function nc(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,n,o,i,l=[],s=!0,c=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(a=o.call(r)).done)&&(l.push(a.value),l.length!==t);s=!0);}catch(d){c=!0,n=d}finally{try{if(!s&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw n}}return l}}function aa(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}function ji(e,t){if(e){if(typeof e=="string")return aa(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?aa(e,t):void 0}}function rc(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
31
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wt(e,t){return tc(e)||nc(e,t)||ji(e,t)||rc()}function ac(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}function Ht(e,t){if(e==null)return{};var r,a,n=ac(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var oc=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function ic(e){var t=e.defaultInputValue,r=t===void 0?"":t,a=e.defaultMenuIsOpen,n=a===void 0?!1:a,o=e.defaultValue,i=o===void 0?null:o,l=e.inputValue,s=e.menuIsOpen,c=e.onChange,d=e.onInputChange,f=e.onMenuClose,y=e.onMenuOpen,C=e.value,b=Ht(e,oc),h=w.useState(l!==void 0?l:r),p=Wt(h,2),x=p[0],E=p[1],R=w.useState(s!==void 0?s:n),A=Wt(R,2),I=A[0],j=A[1],F=w.useState(C!==void 0?C:i),M=Wt(F,2),ie=M[0],re=M[1],ce=w.useCallback(function(ne,Ie){typeof c=="function"&&c(ne,Ie),re(ne)},[c]),z=w.useCallback(function(ne,Ie){var _;typeof d=="function"&&(_=d(ne,Ie)),E(_!==void 0?_:ne)},[d]),le=w.useCallback(function(){typeof y=="function"&&y(),j(!0)},[y]),G=w.useCallback(function(){typeof f=="function"&&f(),j(!1)},[f]),T=l!==void 0?l:x,B=s!==void 0?s:I,J=C!==void 0?C:ie;return ve(ve({},b),{},{inputValue:T,menuIsOpen:B,onChange:ce,onInputChange:z,onMenuClose:G,onMenuOpen:le,value:J})}function xe(){return xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},xe.apply(null,arguments)}function sc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xo(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,Oi(a.key),a)}}function lc(e,t,r){return t&&xo(e.prototype,t),r&&xo(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function oa(e,t){return oa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},oa(e,t)}function uc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oa(e,t)}function gr(e){return gr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},gr(e)}function Mi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Mi=function(){return!!e})()}function cc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dc(e,t){if(t&&(fn(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cc(e)}function fc(e){var t=Mi();return function(){var r,a=gr(e);if(t){var n=gr(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return dc(this,r)}}function pc(e){if(Array.isArray(e))return aa(e)}function gc(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mc(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
32
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ra(e){return pc(e)||gc(e)||ji(e)||mc()}function bc(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function hc(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var vc=function(){function e(r){var a=this;this._insertTag=function(n){var o;a.tags.length===0?a.insertionPoint?o=a.insertionPoint.nextSibling:a.prepend?o=a.container.firstChild:o=a.before:o=a.tags[a.tags.length-1].nextSibling,a.container.insertBefore(n,o),a.tags.push(n)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(a){a.forEach(this._insertTag)},t.insert=function(a){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(hc(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var o=bc(n);try{o.insertRule(a,o.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(a));this.ctr++},t.flush=function(){this.tags.forEach(function(a){var n;return(n=a.parentNode)==null?void 0:n.removeChild(a)}),this.tags=[],this.ctr=0},e}(),pt="-ms-",mr="-moz-",Ve="-webkit-",ki="comm",Na="rule",Ga="decl",yc="@import",Fi="@keyframes",Cc="@layer",xc=Math.abs,Er=String.fromCharCode,Ic=Object.assign;function Sc(e,t){return dt(e,0)^45?(((t<<2^dt(e,0))<<2^dt(e,1))<<2^dt(e,2))<<2^dt(e,3):0}function Bi(e){return e.trim()}function Ac(e,t){return(e=t.exec(e))?e[0]:e}function _e(e,t,r){return e.replace(t,r)}function ia(e,t){return e.indexOf(t)}function dt(e,t){return e.charCodeAt(t)|0}function Bn(e,t,r){return e.slice(t,r)}function jt(e){return e.length}function Pa(e){return e.length}function nr(e,t){return t.push(e),e}function wc(e,t){return e.map(t).join("")}var Rr=1,In=1,Vi=0,ht=0,at=0,En="";function Nr(e,t,r,a,n,o,i){return{value:e,root:t,parent:r,type:a,props:n,children:o,line:Rr,column:In,length:i,return:""}}function jn(e,t){return Ic(Nr("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ec(){return at}function Rc(){return at=ht>0?dt(En,--ht):0,In--,at===10&&(In=1,Rr--),at}function Ct(){return at=ht<Vi?dt(En,ht++):0,In++,at===10&&(In=1,Rr++),at}function kt(){return dt(En,ht)}function ur(){return ht}function Xn(e,t){return Bn(En,e,t)}function Vn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function _i(e){return Rr=In=1,Vi=jt(En=e),ht=0,[]}function Di(e){return En="",e}function cr(e){return Bi(Xn(ht-1,sa(e===91?e+2:e===40?e+1:e)))}function Nc(e){for(;(at=kt())&&at<33;)Ct();return Vn(e)>2||Vn(at)>3?"":" "}function Gc(e,t){for(;--t&&Ct()&&!(at<48||at>102||at>57&&at<65||at>70&&at<97););return Xn(e,ur()+(t<6&&kt()==32&&Ct()==32))}function sa(e){for(;Ct();)switch(at){case e:return ht;case 34:case 39:e!==34&&e!==39&&sa(at);break;case 40:e===41&&sa(e);break;case 92:Ct();break}return ht}function Pc(e,t){for(;Ct()&&e+at!==57;)if(e+at===84&&kt()===47)break;return"/*"+Xn(t,ht-1)+"*"+Er(e===47?e:Ct())}function Tc(e){for(;!Vn(kt());)Ct();return Xn(e,ht)}function Oc(e){return Di(dr("",null,null,null,[""],e=_i(e),0,[0],e))}function dr(e,t,r,a,n,o,i,l,s){for(var c=0,d=0,f=i,y=0,C=0,b=0,h=1,p=1,x=1,E=0,R="",A=n,I=o,j=a,F=R;p;)switch(b=E,E=Ct()){case 40:if(b!=108&&dt(F,f-1)==58){ia(F+=_e(cr(E),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:F+=cr(E);break;case 9:case 10:case 13:case 32:F+=Nc(b);break;case 92:F+=Gc(ur()-1,7);continue;case 47:switch(kt()){case 42:case 47:nr(jc(Pc(Ct(),ur()),t,r),s);break;default:F+="/"}break;case 123*h:l[c++]=jt(F)*x;case 125*h:case 59:case 0:switch(E){case 0:case 125:p=0;case 59+d:x==-1&&(F=_e(F,/\f/g,"")),C>0&&jt(F)-f&&nr(C>32?So(F+";",a,r,f-1):So(_e(F," ","")+";",a,r,f-2),s);break;case 59:F+=";";default:if(nr(j=Io(F,t,r,c,d,n,l,R,A=[],I=[],f),o),E===123)if(d===0)dr(F,t,j,j,A,o,f,l,I);else switch(y===99&&dt(F,3)===110?100:y){case 100:case 108:case 109:case 115:dr(e,j,j,a&&nr(Io(e,j,j,0,0,n,l,R,n,A=[],f),I),n,I,f,l,a?A:I);break;default:dr(F,j,j,j,[""],I,0,l,I)}}c=d=C=0,h=x=1,R=F="",f=i;break;case 58:f=1+jt(F),C=b;default:if(h<1){if(E==123)--h;else if(E==125&&h++==0&&Rc()==125)continue}switch(F+=Er(E),E*h){case 38:x=d>0?1:(F+="\f",-1);break;case 44:l[c++]=(jt(F)-1)*x,x=1;break;case 64:kt()===45&&(F+=cr(Ct())),y=kt(),d=f=jt(R=F+=Tc(ur())),E++;break;case 45:b===45&&jt(F)==2&&(h=0)}}return o}function Io(e,t,r,a,n,o,i,l,s,c,d){for(var f=n-1,y=n===0?o:[""],C=Pa(y),b=0,h=0,p=0;b<a;++b)for(var x=0,E=Bn(e,f+1,f=xc(h=i[b])),R=e;x<C;++x)(R=Bi(h>0?y[x]+" "+E:_e(E,/&\f/g,y[x])))&&(s[p++]=R);return Nr(e,t,r,n===0?Na:l,s,c,d)}function jc(e,t,r){return Nr(e,t,r,ki,Er(Ec()),Bn(e,2,-2),0)}function So(e,t,r,a){return Nr(e,t,r,Ga,Bn(e,0,a),Bn(e,a+1,-1),a)}function xn(e,t){for(var r="",a=Pa(e),n=0;n<a;n++)r+=t(e[n],n,e,t)||"";return r}function Mc(e,t,r,a){switch(e.type){case Cc:if(e.children.length)break;case yc:case Ga:return e.return=e.return||e.value;case ki:return"";case Fi:return e.return=e.value+"{"+xn(e.children,a)+"}";case Na:e.value=e.props.join(",")}return jt(r=xn(e.children,a))?e.return=e.value+"{"+r+"}":""}function kc(e){var t=Pa(e);return function(r,a,n,o){for(var i="",l=0;l<t;l++)i+=e[l](r,a,n,o)||"";return i}}function Fc(e){return function(t){t.root||(t=t.return)&&e(t)}}function Bc(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Vc=function(t,r,a){for(var n=0,o=0;n=o,o=kt(),n===38&&o===12&&(r[a]=1),!Vn(o);)Ct();return Xn(t,ht)},_c=function(t,r){var a=-1,n=44;do switch(Vn(n)){case 0:n===38&&kt()===12&&(r[a]=1),t[a]+=Vc(ht-1,r,a);break;case 2:t[a]+=cr(n);break;case 4:if(n===44){t[++a]=kt()===58?"&\f":"",r[a]=t[a].length;break}default:t[a]+=Er(n)}while(n=Ct());return t},Dc=function(t,r){return Di(_c(_i(t),r))},Ao=new WeakMap,Wc=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,a=t.parent,n=t.column===a.column&&t.line===a.line;a.type!=="rule";)if(a=a.parent,!a)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Ao.get(a))&&!n){Ao.set(t,!0);for(var o=[],i=Dc(r,o),l=a.props,s=0,c=0;s<i.length;s++)for(var d=0;d<l.length;d++,c++)t.props[c]=o[s]?i[s].replace(/&\f/g,l[d]):l[d]+" "+i[s]}}},Lc=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Wi(e,t){switch(Sc(e,t)){case 5103:return Ve+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ve+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ve+e+mr+e+pt+e+e;case 6828:case 4268:return Ve+e+pt+e+e;case 6165:return Ve+e+pt+"flex-"+e+e;case 5187:return Ve+e+_e(e,/(\w+).+(:[^]+)/,Ve+"box-$1$2"+pt+"flex-$1$2")+e;case 5443:return Ve+e+pt+"flex-item-"+_e(e,/flex-|-self/,"")+e;case 4675:return Ve+e+pt+"flex-line-pack"+_e(e,/align-content|flex-|-self/,"")+e;case 5548:return Ve+e+pt+_e(e,"shrink","negative")+e;case 5292:return Ve+e+pt+_e(e,"basis","preferred-size")+e;case 6060:return Ve+"box-"+_e(e,"-grow","")+Ve+e+pt+_e(e,"grow","positive")+e;case 4554:return Ve+_e(e,/([^-])(transform)/g,"$1"+Ve+"$2")+e;case 6187:return _e(_e(_e(e,/(zoom-|grab)/,Ve+"$1"),/(image-set)/,Ve+"$1"),e,"")+e;case 5495:case 3959:return _e(e,/(image-set\([^]*)/,Ve+"$1$`$1");case 4968:return _e(_e(e,/(.+:)(flex-)?(.*)/,Ve+"box-pack:$3"+pt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ve+e+e;case 4095:case 3583:case 4068:case 2532:return _e(e,/(.+)-inline(.+)/,Ve+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(jt(e)-1-t>6)switch(dt(e,t+1)){case 109:if(dt(e,t+4)!==45)break;case 102:return _e(e,/(.+:)(.+)-([^]+)/,"$1"+Ve+"$2-$3$1"+mr+(dt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ia(e,"stretch")?Wi(_e(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(dt(e,t+1)!==115)break;case 6444:switch(dt(e,jt(e)-3-(~ia(e,"!important")&&10))){case 107:return _e(e,":",":"+Ve)+e;case 101:return _e(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ve+(dt(e,14)===45?"inline-":"")+"box$3$1"+Ve+"$2$3$1"+pt+"$2box$3")+e}break;case 5936:switch(dt(e,t+11)){case 114:return Ve+e+pt+_e(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ve+e+pt+_e(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ve+e+pt+_e(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ve+e+pt+e+e}return e}var Xc=function(t,r,a,n){if(t.length>-1&&!t.return)switch(t.type){case Ga:t.return=Wi(t.value,t.length);break;case Fi:return xn([jn(t,{value:_e(t.value,"@","@"+Ve)})],n);case Na:if(t.length)return wc(t.props,function(o){switch(Ac(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return xn([jn(t,{props:[_e(o,/:(read-\w+)/,":"+mr+"$1")]})],n);case"::placeholder":return xn([jn(t,{props:[_e(o,/:(plac\w+)/,":"+Ve+"input-$1")]}),jn(t,{props:[_e(o,/:(plac\w+)/,":"+mr+"$1")]}),jn(t,{props:[_e(o,/:(plac\w+)/,pt+"input-$1")]})],n)}return""})}},Hc=[Xc],Zc=function(t){var r=t.key;if(r==="css"){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,function(h){var p=h.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var n=t.stylisPlugins||Hc,o={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(h){for(var p=h.getAttribute("data-emotion").split(" "),x=1;x<p.length;x++)o[p[x]]=!0;l.push(h)});var s,c=[Wc,Lc];{var d,f=[Mc,Fc(function(h){d.insert(h)})],y=kc(c.concat(n,f)),C=function(p){return xn(Oc(p),y)};s=function(p,x,E,R){d=E,C(p?p+"{"+x.styles+"}":x.styles),R&&(b.inserted[x.name]=!0)}}var b={key:r,sheet:new vc({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:s};return b.sheet.hydrate(l),b},la={exports:{}},We={};/** @license React v16.13.1
30
+ <%s key={someKey} {...props} />`,ne,V,he,V),pn[V+ne]=!0}}return v===a?fn(f):dn(f),f}}function It(v,H,q){return jt(v,H,q,!0)}function an(v,H,q){return jt(v,H,q,!1)}var gn=an,mn=It;Tn.Fragment=a,Tn.jsx=gn,Tn.jsxs=mn}()),Tn}process.env.NODE_ENV==="production"?ta.exports=du():ta.exports=fu();var u=ta.exports;function bi(e){var t,r,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=bi(e[t]))&&(a&&(a+=" "),a+=r)}else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}function pu(){for(var e,t,r=0,a="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=bi(e))&&(a&&(a+=" "),a+=t);return a}const Ia="-",gu=e=>{const t=bu(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:i=>{const l=i.split(Ia);return l[0]===""&&l.length!==1&&l.shift(),hi(l,t)||mu(i)},getConflictingClassGroupIds:(i,l)=>{const s=r[i]||[];return l&&a[i]?[...s,...a[i]]:s}}},hi=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],a=t.nextPart.get(r),n=a?hi(e.slice(1),a):void 0;if(n)return n;if(t.validators.length===0)return;const o=e.join(Ia);return(i=t.validators.find(({validator:l})=>l(o)))==null?void 0:i.classGroupId},ho=/^\[(.+)\]$/,mu=e=>{if(ho.test(e)){const t=ho.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},bu=e=>{const{theme:t,prefix:r}=e,a={nextPart:new Map,validators:[]};return vu(Object.entries(e.classGroups),r).forEach(([o,i])=>{na(i,a,o,t)}),a},na=(e,t,r,a)=>{e.forEach(n=>{if(typeof n=="string"){const o=n===""?t:vo(t,n);o.classGroupId=r;return}if(typeof n=="function"){if(hu(n)){na(n(a),t,r,a);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([o,i])=>{na(i,vo(t,o),r,a)})})},vo=(e,t)=>{let r=e;return t.split(Ia).forEach(a=>{r.nextPart.has(a)||r.nextPart.set(a,{nextPart:new Map,validators:[]}),r=r.nextPart.get(a)}),r},hu=e=>e.isThemeGetter,vu=(e,t)=>t?e.map(([r,a])=>{const n=a.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,l])=>[t+i,l])):o);return[r,n]}):e,yu=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,a=new Map;const n=(o,i)=>{r.set(o,i),t++,t>e&&(t=0,a=r,r=new Map)};return{get(o){let i=r.get(o);if(i!==void 0)return i;if((i=a.get(o))!==void 0)return n(o,i),i},set(o,i){r.has(o)?r.set(o,i):n(o,i)}}},vi="!",Cu=e=>{const{separator:t,experimentalParseClassName:r}=e,a=t.length===1,n=t[0],o=t.length,i=l=>{const s=[];let c=0,d=0,g;for(let p=0;p<l.length;p++){let C=l[p];if(c===0){if(C===n&&(a||l.slice(p,p+o)===t)){s.push(l.slice(d,p)),d=p+o;continue}if(C==="/"){g=p;continue}}C==="["?c++:C==="]"&&c--}const y=s.length===0?l:l.substring(d),x=y.startsWith(vi),m=x?y.substring(1):y,h=g&&g>d?g-d:void 0;return{modifiers:s,hasImportantModifier:x,baseClassName:m,maybePostfixModifierPosition:h}};return r?l=>r({className:l,parseClassName:i}):i},xu=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(a=>{a[0]==="["?(t.push(...r.sort(),a),r=[]):r.push(a)}),t.push(...r.sort()),t},Iu=e=>({cache:yu(e.cacheSize),parseClassName:Cu(e),...gu(e)}),Su=/\s+/,Au=(e,t)=>{const{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:n}=t,o=[],i=e.trim().split(Su);let l="";for(let s=i.length-1;s>=0;s-=1){const c=i[s],{modifiers:d,hasImportantModifier:g,baseClassName:y,maybePostfixModifierPosition:x}=r(c);let m=!!x,h=a(m?y.substring(0,x):y);if(!h){if(!m){l=c+(l.length>0?" "+l:l);continue}if(h=a(y),!h){l=c+(l.length>0?" "+l:l);continue}m=!1}const p=xu(d).join(":"),C=g?p+vi:p,R=C+h;if(o.includes(R))continue;o.push(R);const N=n(h,m);for(let A=0;A<N.length;++A){const I=N[A];o.push(C+I)}l=c+(l.length>0?" "+l:l)}return l};function wu(){let e=0,t,r,a="";for(;e<arguments.length;)(t=arguments[e++])&&(r=yi(t))&&(a&&(a+=" "),a+=r);return a}const yi=e=>{if(typeof e=="string")return e;let t,r="";for(let a=0;a<e.length;a++)e[a]&&(t=yi(e[a]))&&(r&&(r+=" "),r+=t);return r};function Eu(e,...t){let r,a,n,o=i;function i(s){const c=t.reduce((d,g)=>g(d),e());return r=Iu(c),a=r.cache.get,n=r.cache.set,o=l,l(s)}function l(s){const c=a(s);if(c)return c;const d=Au(s,r);return n(s,d),d}return function(){return o(wu.apply(null,arguments))}}const Ke=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Ci=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ru=/^\d+\/\d+$/,Nu=new Set(["px","full","screen"]),Gu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Pu=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Tu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ou=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ju=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,kt=e=>Cn(e)||Nu.has(e)||Ru.test(e),zt=e=>En(e,"length",Wu),Cn=e=>!!e&&!Number.isNaN(Number(e)),Xr=e=>En(e,"number",Cn),On=e=>!!e&&Number.isInteger(Number(e)),Mu=e=>e.endsWith("%")&&Cn(e.slice(0,-1)),Ne=e=>Ci.test(e),Yt=e=>Gu.test(e),ku=new Set(["length","size","percentage"]),Fu=e=>En(e,ku,xi),Bu=e=>En(e,"position",xi),Vu=new Set(["image","url"]),_u=e=>En(e,Vu,Xu),Du=e=>En(e,"",Lu),jn=()=>!0,En=(e,t,r)=>{const a=Ci.exec(e);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):r(a[2]):!1},Wu=e=>Pu.test(e)&&!Tu.test(e),xi=()=>!1,Lu=e=>Ou.test(e),Xu=e=>ju.test(e),Hu=()=>{const e=Ke("colors"),t=Ke("spacing"),r=Ke("blur"),a=Ke("brightness"),n=Ke("borderColor"),o=Ke("borderRadius"),i=Ke("borderSpacing"),l=Ke("borderWidth"),s=Ke("contrast"),c=Ke("grayscale"),d=Ke("hueRotate"),g=Ke("invert"),y=Ke("gap"),x=Ke("gradientColorStops"),m=Ke("gradientColorStopPositions"),h=Ke("inset"),p=Ke("margin"),C=Ke("opacity"),R=Ke("padding"),N=Ke("saturate"),A=Ke("scale"),I=Ke("sepia"),M=Ke("skew"),_=Ke("space"),B=Ke("translate"),se=()=>["auto","contain","none"],te=()=>["auto","hidden","clip","visible","scroll"],fe=()=>["auto",Ne,t],$=()=>[Ne,t],ce=()=>["",kt,zt],T=()=>["auto",Cn,Ne],j=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],k=()=>["solid","dashed","dotted","double","none"],J=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pe=()=>["start","end","center","between","around","evenly","stretch"],ue=()=>["","0",Ne],D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>[Cn,Ne];return{cacheSize:500,separator:":",theme:{colors:[jn],spacing:[kt,zt],blur:["none","",Yt,Ne],brightness:L(),borderColor:[e],borderRadius:["none","","full",Yt,Ne],borderSpacing:$(),borderWidth:ce(),contrast:L(),grayscale:ue(),hueRotate:L(),invert:ue(),gap:$(),gradientColorStops:[e],gradientColorStopPositions:[Mu,zt],inset:fe(),margin:fe(),opacity:L(),padding:$(),saturate:L(),scale:L(),sepia:ue(),skew:L(),space:$(),translate:$()},classGroups:{aspect:[{aspect:["auto","square","video",Ne]}],container:["container"],columns:[{columns:[Yt]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...j(),Ne]}],overflow:[{overflow:te()}],"overflow-x":[{"overflow-x":te()}],"overflow-y":[{"overflow-y":te()}],overscroll:[{overscroll:se()}],"overscroll-x":[{"overscroll-x":se()}],"overscroll-y":[{"overscroll-y":se()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",On,Ne]}],basis:[{basis:fe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ne]}],grow:[{grow:ue()}],shrink:[{shrink:ue()}],order:[{order:["first","last","none",On,Ne]}],"grid-cols":[{"grid-cols":[jn]}],"col-start-end":[{col:["auto",{span:["full",On,Ne]},Ne]}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":[jn]}],"row-start-end":[{row:["auto",{span:[On,Ne]},Ne]}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ne]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ne]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...pe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...pe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...pe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[R]}],px:[{px:[R]}],py:[{py:[R]}],ps:[{ps:[R]}],pe:[{pe:[R]}],pt:[{pt:[R]}],pr:[{pr:[R]}],pb:[{pb:[R]}],pl:[{pl:[R]}],m:[{m:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],me:[{me:[p]}],mt:[{mt:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ne,t]}],"min-w":[{"min-w":[Ne,t,"min","max","fit"]}],"max-w":[{"max-w":[Ne,t,"none","full","min","max","fit","prose",{screen:[Yt]},Yt]}],h:[{h:[Ne,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ne,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ne,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ne,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Yt,zt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Xr]}],"font-family":[{font:[jn]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Ne]}],"line-clamp":[{"line-clamp":["none",Cn,Xr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",kt,Ne]}],"list-image":[{"list-image":["none",Ne]}],"list-style-type":[{list:["none","disc","decimal",Ne]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[C]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[C]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...k(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",kt,zt]}],"underline-offset":[{"underline-offset":["auto",kt,Ne]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ne]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ne]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[C]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...j(),Bu]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Fu]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},_u]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[C]}],"border-style":[{border:[...k(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[C]}],"divide-style":[{divide:k()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...k()]}],"outline-offset":[{"outline-offset":[kt,Ne]}],"outline-w":[{outline:[kt,zt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[C]}],"ring-offset-w":[{"ring-offset":[kt,zt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Yt,Du]}],"shadow-color":[{shadow:[jn]}],opacity:[{opacity:[C]}],"mix-blend":[{"mix-blend":[...J(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":J()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[a]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",Yt,Ne]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[g]}],saturate:[{saturate:[N]}],sepia:[{sepia:[I]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[C]}],"backdrop-saturate":[{"backdrop-saturate":[N]}],"backdrop-sepia":[{"backdrop-sepia":[I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Ne]}],duration:[{duration:L()}],ease:[{ease:["linear","in","out","in-out",Ne]}],delay:[{delay:L()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ne]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[On,Ne]}],"translate-x":[{"translate-x":[B]}],"translate-y":[{"translate-y":[B]}],"skew-x":[{"skew-x":[M]}],"skew-y":[{"skew-y":[M]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ne]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ne]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ne]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[kt,zt,Xr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Zu=Eu(Hu);function Oe(...e){return Zu(pu(e))}const Ii=S.forwardRef(({variant:e="primary",size:t="md",isLoading:r=!1,fullWidth:a=!1,className:n,children:o,...i},l)=>{const s="font-inter inline-flex items-center justify-center rounded-lg text-white font-semibold transition-colors focus:outline-none",c={primary:"bg-brand-500 hover:bg-brand-600",secondary:"bg-secondary-500 hover:bg-secondary-600",error:"bg-error-500 hover:bg-error-600",success:"bg-success-500 hover:bg-success-600",warning:"bg-warning-500 hover:bg-warning-600"},d={sm:"px-3 py-2 text-sm",md:"px-3.5 py-2.5 text-sm",lg:"px-4 py-2.5 text-base",xl:"px-5 py-3 text-base","2xl":"px-6 py-4 text-lg"},g=r?"opacity-70 cursor-not-allowed":"",y=a?"w-full":"";return u.jsx("button",{ref:l,className:Oe(s,c[e],d[t],g,y,n),disabled:r||i.disabled,...i,children:o})});Ii.displayName="Button";function zu(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Si(...e){return t=>e.forEach(r=>zu(r,t))}function Ai(...e){return S.useCallback(Si(...e),e)}var wi=S.forwardRef((e,t)=>{const{children:r,...a}=e,n=S.Children.toArray(r),o=n.find(Ju);if(o){const i=o.props.children,l=n.map(s=>s===o?S.Children.count(i)>1?S.Children.only(null):S.isValidElement(i)?i.props.children:null:s);return u.jsx(ra,{...a,ref:t,children:S.isValidElement(i)?S.cloneElement(i,void 0,l):null})}return u.jsx(ra,{...a,ref:t,children:r})});wi.displayName="Slot";var ra=S.forwardRef((e,t)=>{const{children:r,...a}=e;if(S.isValidElement(r)){const n=$u(r);return S.cloneElement(r,{...Uu(a,r.props),ref:t?Si(t,n):n})}return S.Children.count(r)>1?S.Children.only(null):null});ra.displayName="SlotClone";var Yu=({children:e})=>u.jsx(u.Fragment,{children:e});function Ju(e){return S.isValidElement(e)&&e.type===Yu}function Uu(e,t){const r={...t};for(const a in t){const n=e[a],o=t[a];/^on[A-Z]/.test(a)?n&&o?r[a]=(...l)=>{o(...l),n(...l)}:n&&(r[a]=n):a==="style"?r[a]={...n,...o}:a==="className"&&(r[a]=[n,o].filter(Boolean).join(" "))}return{...e,...r}}function $u(e){var a,n;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Ku=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Sa=Ku.reduce((e,t)=>{const r=S.forwardRef((a,n)=>{const{asChild:o,...i}=a,l=o?wi:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(l,{...i,ref:n})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Qu="Separator",yo="horizontal",qu=["horizontal","vertical"],Ei=S.forwardRef((e,t)=>{const{decorative:r,orientation:a=yo,...n}=e,o=ec(a)?a:yo,l=r?{role:"none"}:{"aria-orientation":o==="vertical"?o:void 0,role:"separator"};return u.jsx(Sa.div,{"data-orientation":o,...l,...n,ref:t})});Ei.displayName=Qu;function ec(e){return qu.includes(e)}var Ri=Ei;const Ni=S.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,text:a,...n},o)=>a?u.jsxs("div",{className:"flex items-center w-full",children:[u.jsx("div",{className:"flex-grow border-t border-grayWarm-200"}),u.jsx("span",{className:Oe("px-4 text-grayWarm-500 text-sm font-normal",e),children:a}),u.jsx("div",{className:"flex-grow border-t border-grayWarm-200"})]}):u.jsx(Ri,{ref:o,decorative:r,orientation:t,className:Oe("shrink-0 bg-border bg-grayWarm-200",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));Ni.displayName=Ri.displayName;const Aa=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:Oe("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Aa.displayName="Card";const wa=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:Oe("flex flex-col space-y-1.5 p-6",e),...t}));wa.displayName="CardHeader";const Gi=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:Oe("font-semibold leading-none tracking-tight",e),...t}));Gi.displayName="CardTitle";const Pi=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:Oe("text-sm text-muted-foreground",e),...t}));Pi.displayName="CardDescription";const Ea=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:Oe("p-6 pt-0",e),...t}));Ea.displayName="CardContent";const Ti=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:Oe("flex items-center p-6 pt-0",e),...t}));Ti.displayName="CardFooter";function ln(e){"@babel/helpers - typeof";return ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ln(e)}function tc(e,t){if(ln(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(ln(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Oi(e){var t=tc(e,"string");return ln(t)=="symbol"?t:t+""}function Bn(e,t,r){return(t=Oi(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Co(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function ye(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Co(Object(r),!0).forEach(function(a){Bn(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Co(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function nc(e){if(Array.isArray(e))return e}function rc(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,n,o,i,l=[],s=!0,c=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(a=o.call(r)).done)&&(l.push(a.value),l.length!==t);s=!0);}catch(d){c=!0,n=d}finally{try{if(!s&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw n}}return l}}function aa(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}function ji(e,t){if(e){if(typeof e=="string")return aa(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?aa(e,t):void 0}}function ac(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
31
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bt(e,t){return nc(e)||rc(e,t)||ji(e,t)||ac()}function oc(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}function Dt(e,t){if(e==null)return{};var r,a,n=oc(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var ic=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function sc(e){var t=e.defaultInputValue,r=t===void 0?"":t,a=e.defaultMenuIsOpen,n=a===void 0?!1:a,o=e.defaultValue,i=o===void 0?null:o,l=e.inputValue,s=e.menuIsOpen,c=e.onChange,d=e.onInputChange,g=e.onMenuClose,y=e.onMenuOpen,x=e.value,m=Dt(e,ic),h=E.useState(l!==void 0?l:r),p=Bt(h,2),C=p[0],R=p[1],N=E.useState(s!==void 0?s:n),A=Bt(N,2),I=A[0],M=A[1],_=E.useState(x!==void 0?x:i),B=Bt(_,2),se=B[0],te=B[1],fe=E.useCallback(function(pe,ue){typeof c=="function"&&c(pe,ue),te(pe)},[c]),$=E.useCallback(function(pe,ue){var D;typeof d=="function"&&(D=d(pe,ue)),R(D!==void 0?D:pe)},[d]),ce=E.useCallback(function(){typeof y=="function"&&y(),M(!0)},[y]),T=E.useCallback(function(){typeof g=="function"&&g(),M(!1)},[g]),j=l!==void 0?l:C,k=s!==void 0?s:I,J=x!==void 0?x:se;return ye(ye({},m),{},{inputValue:j,menuIsOpen:k,onChange:fe,onInputChange:$,onMenuClose:T,onMenuOpen:ce,value:J})}function Ie(){return Ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Ie.apply(null,arguments)}function lc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xo(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,Oi(a.key),a)}}function uc(e,t,r){return t&&xo(e.prototype,t),r&&xo(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function oa(e,t){return oa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},oa(e,t)}function cc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oa(e,t)}function mr(e){return mr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},mr(e)}function Mi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Mi=function(){return!!e})()}function dc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fc(e,t){if(t&&(ln(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dc(e)}function pc(e){var t=Mi();return function(){var r,a=mr(e);if(t){var n=mr(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return fc(this,r)}}function gc(e){if(Array.isArray(e))return aa(e)}function mc(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bc(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
32
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ra(e){return gc(e)||mc(e)||ji(e)||bc()}function hc(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function vc(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var yc=function(){function e(r){var a=this;this._insertTag=function(n){var o;a.tags.length===0?a.insertionPoint?o=a.insertionPoint.nextSibling:a.prepend?o=a.container.firstChild:o=a.before:o=a.tags[a.tags.length-1].nextSibling,a.container.insertBefore(n,o),a.tags.push(n)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(a){a.forEach(this._insertTag)},t.insert=function(a){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(vc(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var o=hc(n);try{o.insertRule(a,o.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(a));this.ctr++},t.flush=function(){this.tags.forEach(function(a){var n;return(n=a.parentNode)==null?void 0:n.removeChild(a)}),this.tags=[],this.ctr=0},e}(),lt="-ms-",br="-moz-",Ve="-webkit-",ki="comm",Na="rule",Ga="decl",Cc="@import",Fi="@keyframes",xc="@layer",Ic=Math.abs,Rr=String.fromCharCode,Sc=Object.assign;function Ac(e,t){return it(e,0)^45?(((t<<2^it(e,0))<<2^it(e,1))<<2^it(e,2))<<2^it(e,3):0}function Bi(e){return e.trim()}function wc(e,t){return(e=t.exec(e))?e[0]:e}function _e(e,t,r){return e.replace(t,r)}function ia(e,t){return e.indexOf(t)}function it(e,t){return e.charCodeAt(t)|0}function Vn(e,t,r){return e.slice(t,r)}function Rt(e){return e.length}function Pa(e){return e.length}function nr(e,t){return t.push(e),e}function Ec(e,t){return e.map(t).join("")}var Nr=1,In=1,Vi=0,ft=0,tt=0,Rn="";function Gr(e,t,r,a,n,o,i){return{value:e,root:t,parent:r,type:a,props:n,children:o,line:Nr,column:In,length:i,return:""}}function Mn(e,t){return Sc(Gr("",null,null,"",null,null,0),e,{length:-e.length},t)}function Rc(){return tt}function Nc(){return tt=ft>0?it(Rn,--ft):0,In--,tt===10&&(In=1,Nr--),tt}function ht(){return tt=ft<Vi?it(Rn,ft++):0,In++,tt===10&&(In=1,Nr++),tt}function Gt(){return it(Rn,ft)}function cr(){return ft}function Xn(e,t){return Vn(Rn,e,t)}function _n(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function _i(e){return Nr=In=1,Vi=Rt(Rn=e),ft=0,[]}function Di(e){return Rn="",e}function dr(e){return Bi(Xn(ft-1,sa(e===91?e+2:e===40?e+1:e)))}function Gc(e){for(;(tt=Gt())&&tt<33;)ht();return _n(e)>2||_n(tt)>3?"":" "}function Pc(e,t){for(;--t&&ht()&&!(tt<48||tt>102||tt>57&&tt<65||tt>70&&tt<97););return Xn(e,cr()+(t<6&&Gt()==32&&ht()==32))}function sa(e){for(;ht();)switch(tt){case e:return ft;case 34:case 39:e!==34&&e!==39&&sa(tt);break;case 40:e===41&&sa(e);break;case 92:ht();break}return ft}function Tc(e,t){for(;ht()&&e+tt!==57;)if(e+tt===84&&Gt()===47)break;return"/*"+Xn(t,ft-1)+"*"+Rr(e===47?e:ht())}function Oc(e){for(;!_n(Gt());)ht();return Xn(e,ft)}function jc(e){return Di(fr("",null,null,null,[""],e=_i(e),0,[0],e))}function fr(e,t,r,a,n,o,i,l,s){for(var c=0,d=0,g=i,y=0,x=0,m=0,h=1,p=1,C=1,R=0,N="",A=n,I=o,M=a,_=N;p;)switch(m=R,R=ht()){case 40:if(m!=108&&it(_,g-1)==58){ia(_+=_e(dr(R),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:_+=dr(R);break;case 9:case 10:case 13:case 32:_+=Gc(m);break;case 92:_+=Pc(cr()-1,7);continue;case 47:switch(Gt()){case 42:case 47:nr(Mc(Tc(ht(),cr()),t,r),s);break;default:_+="/"}break;case 123*h:l[c++]=Rt(_)*C;case 125*h:case 59:case 0:switch(R){case 0:case 125:p=0;case 59+d:C==-1&&(_=_e(_,/\f/g,"")),x>0&&Rt(_)-g&&nr(x>32?So(_+";",a,r,g-1):So(_e(_," ","")+";",a,r,g-2),s);break;case 59:_+=";";default:if(nr(M=Io(_,t,r,c,d,n,l,N,A=[],I=[],g),o),R===123)if(d===0)fr(_,t,M,M,A,o,g,l,I);else switch(y===99&&it(_,3)===110?100:y){case 100:case 108:case 109:case 115:fr(e,M,M,a&&nr(Io(e,M,M,0,0,n,l,N,n,A=[],g),I),n,I,g,l,a?A:I);break;default:fr(_,M,M,M,[""],I,0,l,I)}}c=d=x=0,h=C=1,N=_="",g=i;break;case 58:g=1+Rt(_),x=m;default:if(h<1){if(R==123)--h;else if(R==125&&h++==0&&Nc()==125)continue}switch(_+=Rr(R),R*h){case 38:C=d>0?1:(_+="\f",-1);break;case 44:l[c++]=(Rt(_)-1)*C,C=1;break;case 64:Gt()===45&&(_+=dr(ht())),y=Gt(),d=g=Rt(N=_+=Oc(cr())),R++;break;case 45:m===45&&Rt(_)==2&&(h=0)}}return o}function Io(e,t,r,a,n,o,i,l,s,c,d){for(var g=n-1,y=n===0?o:[""],x=Pa(y),m=0,h=0,p=0;m<a;++m)for(var C=0,R=Vn(e,g+1,g=Ic(h=i[m])),N=e;C<x;++C)(N=Bi(h>0?y[C]+" "+R:_e(R,/&\f/g,y[C])))&&(s[p++]=N);return Gr(e,t,r,n===0?Na:l,s,c,d)}function Mc(e,t,r){return Gr(e,t,r,ki,Rr(Rc()),Vn(e,2,-2),0)}function So(e,t,r,a){return Gr(e,t,r,Ga,Vn(e,0,a),Vn(e,a+1,-1),a)}function xn(e,t){for(var r="",a=Pa(e),n=0;n<a;n++)r+=t(e[n],n,e,t)||"";return r}function kc(e,t,r,a){switch(e.type){case xc:if(e.children.length)break;case Cc:case Ga:return e.return=e.return||e.value;case ki:return"";case Fi:return e.return=e.value+"{"+xn(e.children,a)+"}";case Na:e.value=e.props.join(",")}return Rt(r=xn(e.children,a))?e.return=e.value+"{"+r+"}":""}function Fc(e){var t=Pa(e);return function(r,a,n,o){for(var i="",l=0;l<t;l++)i+=e[l](r,a,n,o)||"";return i}}function Bc(e){return function(t){t.root||(t=t.return)&&e(t)}}function Vc(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var _c=function(t,r,a){for(var n=0,o=0;n=o,o=Gt(),n===38&&o===12&&(r[a]=1),!_n(o);)ht();return Xn(t,ft)},Dc=function(t,r){var a=-1,n=44;do switch(_n(n)){case 0:n===38&&Gt()===12&&(r[a]=1),t[a]+=_c(ft-1,r,a);break;case 2:t[a]+=dr(n);break;case 4:if(n===44){t[++a]=Gt()===58?"&\f":"",r[a]=t[a].length;break}default:t[a]+=Rr(n)}while(n=ht());return t},Wc=function(t,r){return Di(Dc(_i(t),r))},Ao=new WeakMap,Lc=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,a=t.parent,n=t.column===a.column&&t.line===a.line;a.type!=="rule";)if(a=a.parent,!a)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Ao.get(a))&&!n){Ao.set(t,!0);for(var o=[],i=Wc(r,o),l=a.props,s=0,c=0;s<i.length;s++)for(var d=0;d<l.length;d++,c++)t.props[c]=o[s]?i[s].replace(/&\f/g,l[d]):l[d]+" "+i[s]}}},Xc=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Wi(e,t){switch(Ac(e,t)){case 5103:return Ve+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ve+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ve+e+br+e+lt+e+e;case 6828:case 4268:return Ve+e+lt+e+e;case 6165:return Ve+e+lt+"flex-"+e+e;case 5187:return Ve+e+_e(e,/(\w+).+(:[^]+)/,Ve+"box-$1$2"+lt+"flex-$1$2")+e;case 5443:return Ve+e+lt+"flex-item-"+_e(e,/flex-|-self/,"")+e;case 4675:return Ve+e+lt+"flex-line-pack"+_e(e,/align-content|flex-|-self/,"")+e;case 5548:return Ve+e+lt+_e(e,"shrink","negative")+e;case 5292:return Ve+e+lt+_e(e,"basis","preferred-size")+e;case 6060:return Ve+"box-"+_e(e,"-grow","")+Ve+e+lt+_e(e,"grow","positive")+e;case 4554:return Ve+_e(e,/([^-])(transform)/g,"$1"+Ve+"$2")+e;case 6187:return _e(_e(_e(e,/(zoom-|grab)/,Ve+"$1"),/(image-set)/,Ve+"$1"),e,"")+e;case 5495:case 3959:return _e(e,/(image-set\([^]*)/,Ve+"$1$`$1");case 4968:return _e(_e(e,/(.+:)(flex-)?(.*)/,Ve+"box-pack:$3"+lt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ve+e+e;case 4095:case 3583:case 4068:case 2532:return _e(e,/(.+)-inline(.+)/,Ve+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Rt(e)-1-t>6)switch(it(e,t+1)){case 109:if(it(e,t+4)!==45)break;case 102:return _e(e,/(.+:)(.+)-([^]+)/,"$1"+Ve+"$2-$3$1"+br+(it(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ia(e,"stretch")?Wi(_e(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(it(e,t+1)!==115)break;case 6444:switch(it(e,Rt(e)-3-(~ia(e,"!important")&&10))){case 107:return _e(e,":",":"+Ve)+e;case 101:return _e(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ve+(it(e,14)===45?"inline-":"")+"box$3$1"+Ve+"$2$3$1"+lt+"$2box$3")+e}break;case 5936:switch(it(e,t+11)){case 114:return Ve+e+lt+_e(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ve+e+lt+_e(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ve+e+lt+_e(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ve+e+lt+e+e}return e}var Hc=function(t,r,a,n){if(t.length>-1&&!t.return)switch(t.type){case Ga:t.return=Wi(t.value,t.length);break;case Fi:return xn([Mn(t,{value:_e(t.value,"@","@"+Ve)})],n);case Na:if(t.length)return Ec(t.props,function(o){switch(wc(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return xn([Mn(t,{props:[_e(o,/:(read-\w+)/,":"+br+"$1")]})],n);case"::placeholder":return xn([Mn(t,{props:[_e(o,/:(plac\w+)/,":"+Ve+"input-$1")]}),Mn(t,{props:[_e(o,/:(plac\w+)/,":"+br+"$1")]}),Mn(t,{props:[_e(o,/:(plac\w+)/,lt+"input-$1")]})],n)}return""})}},Zc=[Hc],zc=function(t){var r=t.key;if(r==="css"){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,function(h){var p=h.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var n=t.stylisPlugins||Zc,o={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(h){for(var p=h.getAttribute("data-emotion").split(" "),C=1;C<p.length;C++)o[p[C]]=!0;l.push(h)});var s,c=[Lc,Xc];{var d,g=[kc,Bc(function(h){d.insert(h)})],y=Fc(c.concat(n,g)),x=function(p){return xn(jc(p),y)};s=function(p,C,R,N){d=R,x(p?p+"{"+C.styles+"}":C.styles),N&&(m.inserted[C.name]=!0)}}var m={key:r,sheet:new yc({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:s};return m.sheet.hydrate(l),m},la={exports:{}},De={};/** @license React v16.13.1
33
33
  * react-is.production.min.js
34
34
  *
35
35
  * Copyright (c) Facebook, Inc. and its affiliates.
36
36
  *
37
37
  * This source code is licensed under the MIT license found in the
38
38
  * LICENSE file in the root directory of this source tree.
39
- */var wo;function zc(){if(wo)return We;wo=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,C=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function R(I){if(typeof I=="object"&&I!==null){var j=I.$$typeof;switch(j){case t:switch(I=I.type,I){case s:case c:case a:case o:case n:case f:return I;default:switch(I=I&&I.$$typeof,I){case l:case d:case b:case C:case i:return I;default:return j}}case r:return j}}}function A(I){return R(I)===c}return We.AsyncMode=s,We.ConcurrentMode=c,We.ContextConsumer=l,We.ContextProvider=i,We.Element=t,We.ForwardRef=d,We.Fragment=a,We.Lazy=b,We.Memo=C,We.Portal=r,We.Profiler=o,We.StrictMode=n,We.Suspense=f,We.isAsyncMode=function(I){return A(I)||R(I)===s},We.isConcurrentMode=A,We.isContextConsumer=function(I){return R(I)===l},We.isContextProvider=function(I){return R(I)===i},We.isElement=function(I){return typeof I=="object"&&I!==null&&I.$$typeof===t},We.isForwardRef=function(I){return R(I)===d},We.isFragment=function(I){return R(I)===a},We.isLazy=function(I){return R(I)===b},We.isMemo=function(I){return R(I)===C},We.isPortal=function(I){return R(I)===r},We.isProfiler=function(I){return R(I)===o},We.isStrictMode=function(I){return R(I)===n},We.isSuspense=function(I){return R(I)===f},We.isValidElementType=function(I){return typeof I=="string"||typeof I=="function"||I===a||I===c||I===o||I===n||I===f||I===y||typeof I=="object"&&I!==null&&(I.$$typeof===b||I.$$typeof===C||I.$$typeof===i||I.$$typeof===l||I.$$typeof===d||I.$$typeof===p||I.$$typeof===x||I.$$typeof===E||I.$$typeof===h)},We.typeOf=R,We}var Le={};/** @license React v16.13.1
39
+ */var wo;function Yc(){if(wo)return De;wo=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function N(I){if(typeof I=="object"&&I!==null){var M=I.$$typeof;switch(M){case t:switch(I=I.type,I){case s:case c:case a:case o:case n:case g:return I;default:switch(I=I&&I.$$typeof,I){case l:case d:case m:case x:case i:return I;default:return M}}case r:return M}}}function A(I){return N(I)===c}return De.AsyncMode=s,De.ConcurrentMode=c,De.ContextConsumer=l,De.ContextProvider=i,De.Element=t,De.ForwardRef=d,De.Fragment=a,De.Lazy=m,De.Memo=x,De.Portal=r,De.Profiler=o,De.StrictMode=n,De.Suspense=g,De.isAsyncMode=function(I){return A(I)||N(I)===s},De.isConcurrentMode=A,De.isContextConsumer=function(I){return N(I)===l},De.isContextProvider=function(I){return N(I)===i},De.isElement=function(I){return typeof I=="object"&&I!==null&&I.$$typeof===t},De.isForwardRef=function(I){return N(I)===d},De.isFragment=function(I){return N(I)===a},De.isLazy=function(I){return N(I)===m},De.isMemo=function(I){return N(I)===x},De.isPortal=function(I){return N(I)===r},De.isProfiler=function(I){return N(I)===o},De.isStrictMode=function(I){return N(I)===n},De.isSuspense=function(I){return N(I)===g},De.isValidElementType=function(I){return typeof I=="string"||typeof I=="function"||I===a||I===c||I===o||I===n||I===g||I===y||typeof I=="object"&&I!==null&&(I.$$typeof===m||I.$$typeof===x||I.$$typeof===i||I.$$typeof===l||I.$$typeof===d||I.$$typeof===p||I.$$typeof===C||I.$$typeof===R||I.$$typeof===h)},De.typeOf=N,De}var We={};/** @license React v16.13.1
40
40
  * react-is.development.js
41
41
  *
42
42
  * Copyright (c) Facebook, Inc. and its affiliates.
43
43
  *
44
44
  * This source code is licensed under the MIT license found in the
45
45
  * LICENSE file in the root directory of this source tree.
46
- */var Eo;function Yc(){return Eo||(Eo=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,C=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function R(X){return typeof X=="string"||typeof X=="function"||X===a||X===c||X===o||X===n||X===f||X===y||typeof X=="object"&&X!==null&&(X.$$typeof===b||X.$$typeof===C||X.$$typeof===i||X.$$typeof===l||X.$$typeof===d||X.$$typeof===p||X.$$typeof===x||X.$$typeof===E||X.$$typeof===h)}function A(X){if(typeof X=="object"&&X!==null){var je=X.$$typeof;switch(je){case t:var Ae=X.type;switch(Ae){case s:case c:case a:case o:case n:case f:return Ae;default:var P=Ae&&Ae.$$typeof;switch(P){case l:case d:case b:case C:case i:return P;default:return je}}case r:return je}}}var I=s,j=c,F=l,M=i,ie=t,re=d,ce=a,z=b,le=C,G=r,T=o,B=n,J=f,ne=!1;function Ie(X){return ne||(ne=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),_(X)||A(X)===s}function _(X){return A(X)===c}function W(X){return A(X)===l}function Z(X){return A(X)===i}function ae(X){return typeof X=="object"&&X!==null&&X.$$typeof===t}function L(X){return A(X)===d}function m(X){return A(X)===a}function pe(X){return A(X)===b}function Y(X){return A(X)===C}function K(X){return A(X)===r}function me(X){return A(X)===o}function ye(X){return A(X)===n}function Te(X){return A(X)===f}Le.AsyncMode=I,Le.ConcurrentMode=j,Le.ContextConsumer=F,Le.ContextProvider=M,Le.Element=ie,Le.ForwardRef=re,Le.Fragment=ce,Le.Lazy=z,Le.Memo=le,Le.Portal=G,Le.Profiler=T,Le.StrictMode=B,Le.Suspense=J,Le.isAsyncMode=Ie,Le.isConcurrentMode=_,Le.isContextConsumer=W,Le.isContextProvider=Z,Le.isElement=ae,Le.isForwardRef=L,Le.isFragment=m,Le.isLazy=pe,Le.isMemo=Y,Le.isPortal=K,Le.isProfiler=me,Le.isStrictMode=ye,Le.isSuspense=Te,Le.isValidElementType=R,Le.typeOf=A}()),Le}process.env.NODE_ENV==="production"?la.exports=zc():la.exports=Yc();var Jc=la.exports,Li=Jc,Uc={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},$c={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Xi={};Xi[Li.ForwardRef]=Uc;Xi[Li.Memo]=$c;var Qc=!0;function Kc(e,t,r){var a="";return r.split(" ").forEach(function(n){e[n]!==void 0?t.push(e[n]+";"):n&&(a+=n+" ")}),a}var Hi=function(t,r,a){var n=t.key+"-"+r.name;(a===!1||Qc===!1)&&t.registered[n]===void 0&&(t.registered[n]=r.styles)},qc=function(t,r,a){Hi(t,r,a);var n=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var o=r;do t.insert(r===o?"."+n:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function ed(e){for(var t=0,r,a=0,n=e.length;n>=4;++a,n-=4)r=e.charCodeAt(a)&255|(e.charCodeAt(++a)&255)<<8|(e.charCodeAt(++a)&255)<<16|(e.charCodeAt(++a)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(a+2)&255)<<16;case 2:t^=(e.charCodeAt(a+1)&255)<<8;case 1:t^=e.charCodeAt(a)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var td={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},nd=/[A-Z]|^ms/g,rd=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Zi=function(t){return t.charCodeAt(1)===45},Ro=function(t){return t!=null&&typeof t!="boolean"},Xr=Bc(function(e){return Zi(e)?e:e.replace(nd,"-$&").toLowerCase()}),No=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(rd,function(a,n,o){return Mt={name:n,styles:o,next:Mt},n})}return td[t]!==1&&!Zi(t)&&typeof r=="number"&&r!==0?r+"px":r};function _n(e,t,r){if(r==null)return"";var a=r;if(a.__emotion_styles!==void 0)return a;switch(typeof r){case"boolean":return"";case"object":{var n=r;if(n.anim===1)return Mt={name:n.name,styles:n.styles,next:Mt},n.name;var o=r;if(o.styles!==void 0){var i=o.next;if(i!==void 0)for(;i!==void 0;)Mt={name:i.name,styles:i.styles,next:Mt},i=i.next;var l=o.styles+";";return l}return ad(e,t,r)}case"function":{if(e!==void 0){var s=Mt,c=r(e);return Mt=s,_n(e,t,c)}break}}var d=r;return d}function ad(e,t,r){var a="";if(Array.isArray(r))for(var n=0;n<r.length;n++)a+=_n(e,t,r[n])+";";else for(var o in r){var i=r[o];if(typeof i!="object"){var l=i;Ro(l)&&(a+=Xr(o)+":"+No(o,l)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var s=0;s<i.length;s++)Ro(i[s])&&(a+=Xr(o)+":"+No(o,i[s])+";");else{var c=_n(e,t,i);switch(o){case"animation":case"animationName":{a+=Xr(o)+":"+c+";";break}default:a+=o+"{"+c+"}"}}}return a}var Go=/label:\s*([^\s;{]+)\s*(;|$)/g,Mt;function zi(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var a=!0,n="";Mt=void 0;var o=e[0];if(o==null||o.raw===void 0)a=!1,n+=_n(r,t,o);else{var i=o;n+=i[0]}for(var l=1;l<e.length;l++)if(n+=_n(r,t,e[l]),a){var s=o;n+=s[l]}Go.lastIndex=0;for(var c="",d;(d=Go.exec(n))!==null;)c+="-"+d[1];var f=ed(n)+c;return{name:f,styles:n,next:Mt}}var od=function(t){return t()},id=S.useInsertionEffect?S.useInsertionEffect:!1,sd=id||od,Yi=S.createContext(typeof HTMLElement<"u"?Zc({key:"css"}):null);Yi.Provider;var ld=function(t){return w.forwardRef(function(r,a){var n=w.useContext(Yi);return t(r,n,a)})},ud=S.createContext({}),Ta={}.hasOwnProperty,ua="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",cd=function(t,r){var a={};for(var n in r)Ta.call(r,n)&&(a[n]=r[n]);return a[ua]=t,a},dd=function(t){var r=t.cache,a=t.serialized,n=t.isStringTag;return Hi(r,a,n),sd(function(){return qc(r,a,n)}),null},fd=ld(function(e,t,r){var a=e.css;typeof a=="string"&&t.registered[a]!==void 0&&(a=t.registered[a]);var n=e[ua],o=[a],i="";typeof e.className=="string"?i=Kc(t.registered,o,e.className):e.className!=null&&(i=e.className+" ");var l=zi(o,void 0,S.useContext(ud));i+=t.key+"-"+l.name;var s={};for(var c in e)Ta.call(e,c)&&c!=="css"&&c!==ua&&(s[c]=e[c]);return s.className=i,r&&(s.ref=r),S.createElement(S.Fragment,null,S.createElement(dd,{cache:t,serialized:l,isStringTag:typeof n=="string"}),S.createElement(n,s))}),pd=fd,ge=function(t,r){var a=arguments;if(r==null||!Ta.call(r,"css"))return S.createElement.apply(void 0,a);var n=a.length,o=new Array(n);o[0]=pd,o[1]=cd(t,r);for(var i=2;i<n;i++)o[i]=a[i];return S.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(ge||(ge={}));function Oa(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return zi(t)}function gd(){var e=Oa.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function md(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const bd=Math.min,hd=Math.max,br=Math.round,rr=Math.floor,hr=e=>({x:e,y:e});function vd(e){const{x:t,y:r,width:a,height:n}=e;return{width:a,height:n,top:r,left:t,right:t+a,bottom:r+n,x:t,y:r}}function Gr(){return typeof window<"u"}function Ji(e){return $i(e)?(e.nodeName||"").toLowerCase():"#document"}function Xt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ui(e){var t;return(t=($i(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function $i(e){return Gr()?e instanceof Node||e instanceof Xt(e).Node:!1}function yd(e){return Gr()?e instanceof Element||e instanceof Xt(e).Element:!1}function ja(e){return Gr()?e instanceof HTMLElement||e instanceof Xt(e).HTMLElement:!1}function Po(e){return!Gr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Xt(e).ShadowRoot}function Qi(e){const{overflow:t,overflowX:r,overflowY:a,display:n}=Ma(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+r)&&!["inline","contents"].includes(n)}function Cd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function xd(e){return["html","body","#document"].includes(Ji(e))}function Ma(e){return Xt(e).getComputedStyle(e)}function Id(e){if(Ji(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Po(e)&&e.host||Ui(e);return Po(t)?t.host:t}function Ki(e){const t=Id(e);return xd(t)?e.ownerDocument?e.ownerDocument.body:e.body:ja(t)&&Qi(t)?t:Ki(t)}function vr(e,t,r){var a;t===void 0&&(t=[]),r===void 0&&(r=!0);const n=Ki(e),o=n===((a=e.ownerDocument)==null?void 0:a.body),i=Xt(n);if(o){const l=ca(i);return t.concat(i,i.visualViewport||[],Qi(n)?n:[],l&&r?vr(l):[])}return t.concat(n,vr(n,[],r))}function ca(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Sd(e){const t=Ma(e);let r=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const n=ja(e),o=n?e.offsetWidth:r,i=n?e.offsetHeight:a,l=br(r)!==o||br(a)!==i;return l&&(r=o,a=i),{width:r,height:a,$:l}}function ka(e){return yd(e)?e:e.contextElement}function To(e){const t=ka(e);if(!ja(t))return hr(1);const r=t.getBoundingClientRect(),{width:a,height:n,$:o}=Sd(t);let i=(o?br(r.width):r.width)/a,l=(o?br(r.height):r.height)/n;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const Ad=hr(0);function wd(e){const t=Xt(e);return!Cd()||!t.visualViewport?Ad:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ed(e,t,r){return!1}function Oo(e,t,r,a){t===void 0&&(t=!1);const n=e.getBoundingClientRect(),o=ka(e);let i=hr(1);t&&(i=To(e));const l=Ed()?wd(o):hr(0);let s=(n.left+l.x)/i.x,c=(n.top+l.y)/i.y,d=n.width/i.x,f=n.height/i.y;if(o){const y=Xt(o),C=a;let b=y,h=ca(b);for(;h&&a&&C!==b;){const p=To(h),x=h.getBoundingClientRect(),E=Ma(h),R=x.left+(h.clientLeft+parseFloat(E.paddingLeft))*p.x,A=x.top+(h.clientTop+parseFloat(E.paddingTop))*p.y;s*=p.x,c*=p.y,d*=p.x,f*=p.y,s+=R,c+=A,b=Xt(h),h=ca(b)}}return vd({width:d,height:f,x:s,y:c})}function Rd(e,t){let r=null,a;const n=Ui(e);function o(){var l;clearTimeout(a),(l=r)==null||l.disconnect(),r=null}function i(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),o();const{left:c,top:d,width:f,height:y}=e.getBoundingClientRect();if(l||t(),!f||!y)return;const C=rr(d),b=rr(n.clientWidth-(c+f)),h=rr(n.clientHeight-(d+y)),p=rr(c),E={rootMargin:-C+"px "+-b+"px "+-h+"px "+-p+"px",threshold:hd(0,bd(1,s))||1};let R=!0;function A(I){const j=I[0].intersectionRatio;if(j!==s){if(!R)return i();j?i(!1,j):a=setTimeout(()=>{i(!1,1e-7)},1e3)}R=!1}try{r=new IntersectionObserver(A,{...E,root:n.ownerDocument})}catch{r=new IntersectionObserver(A,E)}r.observe(e)}return i(!0),o}function Nd(e,t,r,a){a===void 0&&(a={});const{ancestorScroll:n=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=a,c=ka(e),d=n||o?[...c?vr(c):[],...vr(t)]:[];d.forEach(x=>{n&&x.addEventListener("scroll",r,{passive:!0}),o&&x.addEventListener("resize",r)});const f=c&&l?Rd(c,r):null;let y=-1,C=null;i&&(C=new ResizeObserver(x=>{let[E]=x;E&&E.target===c&&C&&(C.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var R;(R=C)==null||R.observe(t)})),r()}),c&&!s&&C.observe(c),C.observe(t));let b,h=s?Oo(e):null;s&&p();function p(){const x=Oo(e);h&&(x.x!==h.x||x.y!==h.y||x.width!==h.width||x.height!==h.height)&&r(),h=x,b=requestAnimationFrame(p)}return r(),()=>{var x;d.forEach(E=>{n&&E.removeEventListener("scroll",r),o&&E.removeEventListener("resize",r)}),f==null||f(),(x=C)==null||x.disconnect(),C=null,s&&cancelAnimationFrame(b)}}var da=w.useLayoutEffect,Gd=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],yr=function(){};function Pd(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function Td(e,t){for(var r=arguments.length,a=new Array(r>2?r-2:0),n=2;n<r;n++)a[n-2]=arguments[n];var o=[].concat(a);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&o.push("".concat(Pd(e,i)));return o.filter(function(l){return l}).map(function(l){return String(l).trim()}).join(" ")}var jo=function(t){return Dd(t)?t.filter(Boolean):fn(t)==="object"&&t!==null?[t]:[]},qi=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var r=Ht(t,Gd);return ve({},r)},tt=function(t,r,a){var n=t.cx,o=t.getStyles,i=t.getClassNames,l=t.className;return{css:o(r,t),className:n(a??{},i(r,t),l)}};function Pr(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Od(e){return Pr(e)?window.innerHeight:e.clientHeight}function es(e){return Pr(e)?window.pageYOffset:e.scrollTop}function Cr(e,t){if(Pr(e)){window.scrollTo(0,t);return}e.scrollTop=t}function jd(e){var t=getComputedStyle(e),r=t.position==="absolute",a=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var n=e;n=n.parentElement;)if(t=getComputedStyle(n),!(r&&t.position==="static")&&a.test(t.overflow+t.overflowY+t.overflowX))return n;return document.documentElement}function Md(e,t,r,a){return r*((e=e/a-1)*e*e+1)+t}function ar(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:yr,n=es(e),o=t-n,i=10,l=0;function s(){l+=i;var c=Md(l,n,o,r);Cr(e,c),l<r?window.requestAnimationFrame(s):a(e)}s()}function Mo(e,t){var r=e.getBoundingClientRect(),a=t.getBoundingClientRect(),n=t.offsetHeight/3;a.bottom+n>r.bottom?Cr(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+n,e.scrollHeight)):a.top-n<r.top&&Cr(e,Math.max(t.offsetTop-n,0))}function kd(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function ko(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function Fd(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var ts=!1,Bd={get passive(){return ts=!0}},or=typeof window<"u"?window:{};or.addEventListener&&or.removeEventListener&&(or.addEventListener("p",yr,Bd),or.removeEventListener("p",yr,!1));var Vd=ts;function _d(e){return e!=null}function Dd(e){return Array.isArray(e)}function ir(e,t,r){return e?t:r}var Wd=function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),n=1;n<r;n++)a[n-1]=arguments[n];var o=Object.entries(t).filter(function(i){var l=Wt(i,1),s=l[0];return!a.includes(s)});return o.reduce(function(i,l){var s=Wt(l,2),c=s[0],d=s[1];return i[c]=d,i},{})},Ld=["children","innerProps"],Xd=["children","innerProps"];function Hd(e){var t=e.maxHeight,r=e.menuEl,a=e.minHeight,n=e.placement,o=e.shouldScroll,i=e.isFixedPosition,l=e.controlHeight,s=jd(r),c={placement:"bottom",maxHeight:t};if(!r||!r.offsetParent)return c;var d=s.getBoundingClientRect(),f=d.height,y=r.getBoundingClientRect(),C=y.bottom,b=y.height,h=y.top,p=r.offsetParent.getBoundingClientRect(),x=p.top,E=i?window.innerHeight:Od(s),R=es(s),A=parseInt(getComputedStyle(r).marginBottom,10),I=parseInt(getComputedStyle(r).marginTop,10),j=x-I,F=E-h,M=j+R,ie=f-R-h,re=C-E+R+A,ce=R+h-I,z=160;switch(n){case"auto":case"bottom":if(F>=b)return{placement:"bottom",maxHeight:t};if(ie>=b&&!i)return o&&ar(s,re,z),{placement:"bottom",maxHeight:t};if(!i&&ie>=a||i&&F>=a){o&&ar(s,re,z);var le=i?F-A:ie-A;return{placement:"bottom",maxHeight:le}}if(n==="auto"||i){var G=t,T=i?j:M;return T>=a&&(G=Math.min(T-A-l,t)),{placement:"top",maxHeight:G}}if(n==="bottom")return o&&Cr(s,re),{placement:"bottom",maxHeight:t};break;case"top":if(j>=b)return{placement:"top",maxHeight:t};if(M>=b&&!i)return o&&ar(s,ce,z),{placement:"top",maxHeight:t};if(!i&&M>=a||i&&j>=a){var B=t;return(!i&&M>=a||i&&j>=a)&&(B=i?j-I:M-I),o&&ar(s,ce,z),{placement:"top",maxHeight:B}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(n,'".'))}return c}function Zd(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var ns=function(t){return t==="auto"?"bottom":t},zd=function(t,r){var a,n=t.placement,o=t.theme,i=o.borderRadius,l=o.spacing,s=o.colors;return ve((a={label:"menu"},Fn(a,Zd(n),"100%"),Fn(a,"position","absolute"),Fn(a,"width","100%"),Fn(a,"zIndex",1),a),r?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},rs=w.createContext(null),Yd=function(t){var r=t.children,a=t.minMenuHeight,n=t.maxMenuHeight,o=t.menuPlacement,i=t.menuPosition,l=t.menuShouldScrollIntoView,s=t.theme,c=w.useContext(rs)||{},d=c.setPortalPlacement,f=w.useRef(null),y=w.useState(n),C=Wt(y,2),b=C[0],h=C[1],p=w.useState(null),x=Wt(p,2),E=x[0],R=x[1],A=s.spacing.controlHeight;return da(function(){var I=f.current;if(I){var j=i==="fixed",F=l&&!j,M=Hd({maxHeight:n,menuEl:I,minHeight:a,placement:o,shouldScroll:F,isFixedPosition:j,controlHeight:A});h(M.maxHeight),R(M.placement),d==null||d(M.placement)}},[n,o,i,l,a,d,A]),r({ref:f,placerProps:ve(ve({},t),{},{placement:E||ns(o),maxHeight:b})})},Jd=function(t){var r=t.children,a=t.innerRef,n=t.innerProps;return ge("div",xe({},tt(t,"menu",{menu:!0}),{ref:a},n),r)},Ud=Jd,$d=function(t,r){var a=t.maxHeight,n=t.theme.spacing.baseUnit;return ve({maxHeight:a,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:n,paddingTop:n})},Qd=function(t){var r=t.children,a=t.innerProps,n=t.innerRef,o=t.isMulti;return ge("div",xe({},tt(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:n},a),r)},as=function(t,r){var a=t.theme,n=a.spacing.baseUnit,o=a.colors;return ve({textAlign:"center"},r?{}:{color:o.neutral40,padding:"".concat(n*2,"px ").concat(n*3,"px")})},Kd=as,qd=as,ef=function(t){var r=t.children,a=r===void 0?"No options":r,n=t.innerProps,o=Ht(t,Ld);return ge("div",xe({},tt(ve(ve({},o),{},{children:a,innerProps:n}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),a)},tf=function(t){var r=t.children,a=r===void 0?"Loading...":r,n=t.innerProps,o=Ht(t,Xd);return ge("div",xe({},tt(ve(ve({},o),{},{children:a,innerProps:n}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),a)},nf=function(t){var r=t.rect,a=t.offset,n=t.position;return{left:r.left,position:n,top:a,width:r.width,zIndex:1}},rf=function(t){var r=t.appendTo,a=t.children,n=t.controlElement,o=t.innerProps,i=t.menuPlacement,l=t.menuPosition,s=w.useRef(null),c=w.useRef(null),d=w.useState(ns(i)),f=Wt(d,2),y=f[0],C=f[1],b=w.useMemo(function(){return{setPortalPlacement:C}},[]),h=w.useState(null),p=Wt(h,2),x=p[0],E=p[1],R=w.useCallback(function(){if(n){var F=kd(n),M=l==="fixed"?0:window.pageYOffset,ie=F[y]+M;(ie!==(x==null?void 0:x.offset)||F.left!==(x==null?void 0:x.rect.left)||F.width!==(x==null?void 0:x.rect.width))&&E({offset:ie,rect:F})}},[n,l,y,x==null?void 0:x.offset,x==null?void 0:x.rect.left,x==null?void 0:x.rect.width]);da(function(){R()},[R]);var A=w.useCallback(function(){typeof c.current=="function"&&(c.current(),c.current=null),n&&s.current&&(c.current=Nd(n,s.current,R,{elementResize:"ResizeObserver"in window}))},[n,R]);da(function(){A()},[A]);var I=w.useCallback(function(F){s.current=F,A()},[A]);if(!r&&l!=="fixed"||!x)return null;var j=ge("div",xe({ref:I},tt(ve(ve({},t),{},{offset:x.offset,position:l,rect:x.rect}),"menuPortal",{"menu-portal":!0}),o),a);return ge(rs.Provider,{value:b},r?su.createPortal(j,r):j)},af=function(t){var r=t.isDisabled,a=t.isRtl;return{label:"container",direction:a?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},of=function(t){var r=t.children,a=t.innerProps,n=t.isDisabled,o=t.isRtl;return ge("div",xe({},tt(t,"container",{"--is-disabled":n,"--is-rtl":o}),a),r)},sf=function(t,r){var a=t.theme.spacing,n=t.isMulti,o=t.hasValue,i=t.selectProps.controlShouldRenderValue;return ve({alignItems:"center",display:n&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(a.baseUnit/2,"px ").concat(a.baseUnit*2,"px")})},lf=function(t){var r=t.children,a=t.innerProps,n=t.isMulti,o=t.hasValue;return ge("div",xe({},tt(t,"valueContainer",{"value-container":!0,"value-container--is-multi":n,"value-container--has-value":o}),a),r)},uf=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},cf=function(t){var r=t.children,a=t.innerProps;return ge("div",xe({},tt(t,"indicatorsContainer",{indicators:!0}),a),r)},Fo,df=["size"],ff=["innerProps","isRtl","size"];function pf(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var gf=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm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kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:pf},os=function(t){var r=t.size,a=Ht(t,df);return ge("svg",xe({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:gf},a))},Fa=function(t){return ge(os,xe({size:20},t),ge("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},is=function(t){return ge(os,xe({size:20},t),ge("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},ss=function(t,r){var a=t.isFocused,n=t.theme,o=n.spacing.baseUnit,i=n.colors;return ve({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:a?i.neutral60:i.neutral20,padding:o*2,":hover":{color:a?i.neutral80:i.neutral40}})},mf=ss,bf=function(t){var r=t.children,a=t.innerProps;return ge("div",xe({},tt(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),a),r||ge(is,null))},hf=ss,vf=function(t){var r=t.children,a=t.innerProps;return ge("div",xe({},tt(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),a),r||ge(Fa,null))},yf=function(t,r){var a=t.isDisabled,n=t.theme,o=n.spacing.baseUnit,i=n.colors;return ve({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:a?i.neutral10:i.neutral20,marginBottom:o*2,marginTop:o*2})},Cf=function(t){var r=t.innerProps;return ge("span",xe({},r,tt(t,"indicatorSeparator",{"indicator-separator":!0})))},xf=gd(Fo||(Fo=md([`
46
+ */var Eo;function Jc(){return Eo||(Eo=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function N(z){return typeof z=="string"||typeof z=="function"||z===a||z===c||z===o||z===n||z===g||z===y||typeof z=="object"&&z!==null&&(z.$$typeof===m||z.$$typeof===x||z.$$typeof===i||z.$$typeof===l||z.$$typeof===d||z.$$typeof===p||z.$$typeof===C||z.$$typeof===R||z.$$typeof===h)}function A(z){if(typeof z=="object"&&z!==null){var Fe=z.$$typeof;switch(Fe){case t:var Pe=z.type;switch(Pe){case s:case c:case a:case o:case n:case g:return Pe;default:var P=Pe&&Pe.$$typeof;switch(P){case l:case d:case m:case x:case i:return P;default:return Fe}}case r:return Fe}}}var I=s,M=c,_=l,B=i,se=t,te=d,fe=a,$=m,ce=x,T=r,j=o,k=n,J=g,pe=!1;function ue(z){return pe||(pe=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),D(z)||A(z)===s}function D(z){return A(z)===c}function L(z){return A(z)===l}function Y(z){return A(z)===i}function ie(z){return typeof z=="object"&&z!==null&&z.$$typeof===t}function X(z){return A(z)===d}function b(z){return A(z)===a}function de(z){return A(z)===m}function Z(z){return A(z)===x}function K(z){return A(z)===r}function me(z){return A(z)===o}function we(z){return A(z)===n}function Ge(z){return A(z)===g}We.AsyncMode=I,We.ConcurrentMode=M,We.ContextConsumer=_,We.ContextProvider=B,We.Element=se,We.ForwardRef=te,We.Fragment=fe,We.Lazy=$,We.Memo=ce,We.Portal=T,We.Profiler=j,We.StrictMode=k,We.Suspense=J,We.isAsyncMode=ue,We.isConcurrentMode=D,We.isContextConsumer=L,We.isContextProvider=Y,We.isElement=ie,We.isForwardRef=X,We.isFragment=b,We.isLazy=de,We.isMemo=Z,We.isPortal=K,We.isProfiler=me,We.isStrictMode=we,We.isSuspense=Ge,We.isValidElementType=N,We.typeOf=A}()),We}process.env.NODE_ENV==="production"?la.exports=Yc():la.exports=Jc();var Uc=la.exports,Li=Uc,$c={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Kc={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Xi={};Xi[Li.ForwardRef]=$c;Xi[Li.Memo]=Kc;var Qc=!0;function qc(e,t,r){var a="";return r.split(" ").forEach(function(n){e[n]!==void 0?t.push(e[n]+";"):n&&(a+=n+" ")}),a}var Hi=function(t,r,a){var n=t.key+"-"+r.name;(a===!1||Qc===!1)&&t.registered[n]===void 0&&(t.registered[n]=r.styles)},ed=function(t,r,a){Hi(t,r,a);var n=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var o=r;do t.insert(r===o?"."+n:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function td(e){for(var t=0,r,a=0,n=e.length;n>=4;++a,n-=4)r=e.charCodeAt(a)&255|(e.charCodeAt(++a)&255)<<8|(e.charCodeAt(++a)&255)<<16|(e.charCodeAt(++a)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(a+2)&255)<<16;case 2:t^=(e.charCodeAt(a+1)&255)<<8;case 1:t^=e.charCodeAt(a)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var nd={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},rd=/[A-Z]|^ms/g,ad=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Zi=function(t){return t.charCodeAt(1)===45},Ro=function(t){return t!=null&&typeof t!="boolean"},Hr=Vc(function(e){return Zi(e)?e:e.replace(rd,"-$&").toLowerCase()}),No=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(ad,function(a,n,o){return Nt={name:n,styles:o,next:Nt},n})}return nd[t]!==1&&!Zi(t)&&typeof r=="number"&&r!==0?r+"px":r};function Dn(e,t,r){if(r==null)return"";var a=r;if(a.__emotion_styles!==void 0)return a;switch(typeof r){case"boolean":return"";case"object":{var n=r;if(n.anim===1)return Nt={name:n.name,styles:n.styles,next:Nt},n.name;var o=r;if(o.styles!==void 0){var i=o.next;if(i!==void 0)for(;i!==void 0;)Nt={name:i.name,styles:i.styles,next:Nt},i=i.next;var l=o.styles+";";return l}return od(e,t,r)}case"function":{if(e!==void 0){var s=Nt,c=r(e);return Nt=s,Dn(e,t,c)}break}}var d=r;return d}function od(e,t,r){var a="";if(Array.isArray(r))for(var n=0;n<r.length;n++)a+=Dn(e,t,r[n])+";";else for(var o in r){var i=r[o];if(typeof i!="object"){var l=i;Ro(l)&&(a+=Hr(o)+":"+No(o,l)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var s=0;s<i.length;s++)Ro(i[s])&&(a+=Hr(o)+":"+No(o,i[s])+";");else{var c=Dn(e,t,i);switch(o){case"animation":case"animationName":{a+=Hr(o)+":"+c+";";break}default:a+=o+"{"+c+"}"}}}return a}var Go=/label:\s*([^\s;{]+)\s*(;|$)/g,Nt;function zi(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var a=!0,n="";Nt=void 0;var o=e[0];if(o==null||o.raw===void 0)a=!1,n+=Dn(r,t,o);else{var i=o;n+=i[0]}for(var l=1;l<e.length;l++)if(n+=Dn(r,t,e[l]),a){var s=o;n+=s[l]}Go.lastIndex=0;for(var c="",d;(d=Go.exec(n))!==null;)c+="-"+d[1];var g=td(n)+c;return{name:g,styles:n,next:Nt}}var id=function(t){return t()},sd=S.useInsertionEffect?S.useInsertionEffect:!1,ld=sd||id,Yi=S.createContext(typeof HTMLElement<"u"?zc({key:"css"}):null);Yi.Provider;var ud=function(t){return E.forwardRef(function(r,a){var n=E.useContext(Yi);return t(r,n,a)})},cd=S.createContext({}),Ta={}.hasOwnProperty,ua="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",dd=function(t,r){var a={};for(var n in r)Ta.call(r,n)&&(a[n]=r[n]);return a[ua]=t,a},fd=function(t){var r=t.cache,a=t.serialized,n=t.isStringTag;return Hi(r,a,n),ld(function(){return ed(r,a,n)}),null},pd=ud(function(e,t,r){var a=e.css;typeof a=="string"&&t.registered[a]!==void 0&&(a=t.registered[a]);var n=e[ua],o=[a],i="";typeof e.className=="string"?i=qc(t.registered,o,e.className):e.className!=null&&(i=e.className+" ");var l=zi(o,void 0,S.useContext(cd));i+=t.key+"-"+l.name;var s={};for(var c in e)Ta.call(e,c)&&c!=="css"&&c!==ua&&(s[c]=e[c]);return s.className=i,r&&(s.ref=r),S.createElement(S.Fragment,null,S.createElement(fd,{cache:t,serialized:l,isStringTag:typeof n=="string"}),S.createElement(n,s))}),gd=pd,ge=function(t,r){var a=arguments;if(r==null||!Ta.call(r,"css"))return S.createElement.apply(void 0,a);var n=a.length,o=new Array(n);o[0]=gd,o[1]=dd(t,r);for(var i=2;i<n;i++)o[i]=a[i];return S.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(ge||(ge={}));function Oa(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return zi(t)}function md(){var e=Oa.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function bd(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const hd=Math.min,vd=Math.max,hr=Math.round,rr=Math.floor,vr=e=>({x:e,y:e});function yd(e){const{x:t,y:r,width:a,height:n}=e;return{width:a,height:n,top:r,left:t,right:t+a,bottom:r+n,x:t,y:r}}function Pr(){return typeof window<"u"}function Ji(e){return $i(e)?(e.nodeName||"").toLowerCase():"#document"}function _t(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ui(e){var t;return(t=($i(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function $i(e){return Pr()?e instanceof Node||e instanceof _t(e).Node:!1}function Cd(e){return Pr()?e instanceof Element||e instanceof _t(e).Element:!1}function ja(e){return Pr()?e instanceof HTMLElement||e instanceof _t(e).HTMLElement:!1}function Po(e){return!Pr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _t(e).ShadowRoot}function Ki(e){const{overflow:t,overflowX:r,overflowY:a,display:n}=Ma(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+r)&&!["inline","contents"].includes(n)}function xd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Id(e){return["html","body","#document"].includes(Ji(e))}function Ma(e){return _t(e).getComputedStyle(e)}function Sd(e){if(Ji(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Po(e)&&e.host||Ui(e);return Po(t)?t.host:t}function Qi(e){const t=Sd(e);return Id(t)?e.ownerDocument?e.ownerDocument.body:e.body:ja(t)&&Ki(t)?t:Qi(t)}function yr(e,t,r){var a;t===void 0&&(t=[]),r===void 0&&(r=!0);const n=Qi(e),o=n===((a=e.ownerDocument)==null?void 0:a.body),i=_t(n);if(o){const l=ca(i);return t.concat(i,i.visualViewport||[],Ki(n)?n:[],l&&r?yr(l):[])}return t.concat(n,yr(n,[],r))}function ca(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ad(e){const t=Ma(e);let r=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const n=ja(e),o=n?e.offsetWidth:r,i=n?e.offsetHeight:a,l=hr(r)!==o||hr(a)!==i;return l&&(r=o,a=i),{width:r,height:a,$:l}}function ka(e){return Cd(e)?e:e.contextElement}function To(e){const t=ka(e);if(!ja(t))return vr(1);const r=t.getBoundingClientRect(),{width:a,height:n,$:o}=Ad(t);let i=(o?hr(r.width):r.width)/a,l=(o?hr(r.height):r.height)/n;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const wd=vr(0);function Ed(e){const t=_t(e);return!xd()||!t.visualViewport?wd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Rd(e,t,r){return!1}function Oo(e,t,r,a){t===void 0&&(t=!1);const n=e.getBoundingClientRect(),o=ka(e);let i=vr(1);t&&(i=To(e));const l=Rd()?Ed(o):vr(0);let s=(n.left+l.x)/i.x,c=(n.top+l.y)/i.y,d=n.width/i.x,g=n.height/i.y;if(o){const y=_t(o),x=a;let m=y,h=ca(m);for(;h&&a&&x!==m;){const p=To(h),C=h.getBoundingClientRect(),R=Ma(h),N=C.left+(h.clientLeft+parseFloat(R.paddingLeft))*p.x,A=C.top+(h.clientTop+parseFloat(R.paddingTop))*p.y;s*=p.x,c*=p.y,d*=p.x,g*=p.y,s+=N,c+=A,m=_t(h),h=ca(m)}}return yd({width:d,height:g,x:s,y:c})}function Nd(e,t){let r=null,a;const n=Ui(e);function o(){var l;clearTimeout(a),(l=r)==null||l.disconnect(),r=null}function i(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),o();const{left:c,top:d,width:g,height:y}=e.getBoundingClientRect();if(l||t(),!g||!y)return;const x=rr(d),m=rr(n.clientWidth-(c+g)),h=rr(n.clientHeight-(d+y)),p=rr(c),R={rootMargin:-x+"px "+-m+"px "+-h+"px "+-p+"px",threshold:vd(0,hd(1,s))||1};let N=!0;function A(I){const M=I[0].intersectionRatio;if(M!==s){if(!N)return i();M?i(!1,M):a=setTimeout(()=>{i(!1,1e-7)},1e3)}N=!1}try{r=new IntersectionObserver(A,{...R,root:n.ownerDocument})}catch{r=new IntersectionObserver(A,R)}r.observe(e)}return i(!0),o}function Gd(e,t,r,a){a===void 0&&(a={});const{ancestorScroll:n=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=a,c=ka(e),d=n||o?[...c?yr(c):[],...yr(t)]:[];d.forEach(C=>{n&&C.addEventListener("scroll",r,{passive:!0}),o&&C.addEventListener("resize",r)});const g=c&&l?Nd(c,r):null;let y=-1,x=null;i&&(x=new ResizeObserver(C=>{let[R]=C;R&&R.target===c&&x&&(x.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var N;(N=x)==null||N.observe(t)})),r()}),c&&!s&&x.observe(c),x.observe(t));let m,h=s?Oo(e):null;s&&p();function p(){const C=Oo(e);h&&(C.x!==h.x||C.y!==h.y||C.width!==h.width||C.height!==h.height)&&r(),h=C,m=requestAnimationFrame(p)}return r(),()=>{var C;d.forEach(R=>{n&&R.removeEventListener("scroll",r),o&&R.removeEventListener("resize",r)}),g==null||g(),(C=x)==null||C.disconnect(),x=null,s&&cancelAnimationFrame(m)}}var da=E.useLayoutEffect,Pd=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Cr=function(){};function Td(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function Od(e,t){for(var r=arguments.length,a=new Array(r>2?r-2:0),n=2;n<r;n++)a[n-2]=arguments[n];var o=[].concat(a);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&o.push("".concat(Td(e,i)));return o.filter(function(l){return l}).map(function(l){return String(l).trim()}).join(" ")}var jo=function(t){return Wd(t)?t.filter(Boolean):ln(t)==="object"&&t!==null?[t]:[]},qi=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var r=Dt(t,Pd);return ye({},r)},qe=function(t,r,a){var n=t.cx,o=t.getStyles,i=t.getClassNames,l=t.className;return{css:o(r,t),className:n(a??{},i(r,t),l)}};function Tr(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function jd(e){return Tr(e)?window.innerHeight:e.clientHeight}function es(e){return Tr(e)?window.pageYOffset:e.scrollTop}function xr(e,t){if(Tr(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Md(e){var t=getComputedStyle(e),r=t.position==="absolute",a=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var n=e;n=n.parentElement;)if(t=getComputedStyle(n),!(r&&t.position==="static")&&a.test(t.overflow+t.overflowY+t.overflowX))return n;return document.documentElement}function kd(e,t,r,a){return r*((e=e/a-1)*e*e+1)+t}function ar(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Cr,n=es(e),o=t-n,i=10,l=0;function s(){l+=i;var c=kd(l,n,o,r);xr(e,c),l<r?window.requestAnimationFrame(s):a(e)}s()}function Mo(e,t){var r=e.getBoundingClientRect(),a=t.getBoundingClientRect(),n=t.offsetHeight/3;a.bottom+n>r.bottom?xr(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+n,e.scrollHeight)):a.top-n<r.top&&xr(e,Math.max(t.offsetTop-n,0))}function Fd(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function ko(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function Bd(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var ts=!1,Vd={get passive(){return ts=!0}},or=typeof window<"u"?window:{};or.addEventListener&&or.removeEventListener&&(or.addEventListener("p",Cr,Vd),or.removeEventListener("p",Cr,!1));var _d=ts;function Dd(e){return e!=null}function Wd(e){return Array.isArray(e)}function ir(e,t,r){return e?t:r}var Ld=function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),n=1;n<r;n++)a[n-1]=arguments[n];var o=Object.entries(t).filter(function(i){var l=Bt(i,1),s=l[0];return!a.includes(s)});return o.reduce(function(i,l){var s=Bt(l,2),c=s[0],d=s[1];return i[c]=d,i},{})},Xd=["children","innerProps"],Hd=["children","innerProps"];function Zd(e){var t=e.maxHeight,r=e.menuEl,a=e.minHeight,n=e.placement,o=e.shouldScroll,i=e.isFixedPosition,l=e.controlHeight,s=Md(r),c={placement:"bottom",maxHeight:t};if(!r||!r.offsetParent)return c;var d=s.getBoundingClientRect(),g=d.height,y=r.getBoundingClientRect(),x=y.bottom,m=y.height,h=y.top,p=r.offsetParent.getBoundingClientRect(),C=p.top,R=i?window.innerHeight:jd(s),N=es(s),A=parseInt(getComputedStyle(r).marginBottom,10),I=parseInt(getComputedStyle(r).marginTop,10),M=C-I,_=R-h,B=M+N,se=g-N-h,te=x-R+N+A,fe=N+h-I,$=160;switch(n){case"auto":case"bottom":if(_>=m)return{placement:"bottom",maxHeight:t};if(se>=m&&!i)return o&&ar(s,te,$),{placement:"bottom",maxHeight:t};if(!i&&se>=a||i&&_>=a){o&&ar(s,te,$);var ce=i?_-A:se-A;return{placement:"bottom",maxHeight:ce}}if(n==="auto"||i){var T=t,j=i?M:B;return j>=a&&(T=Math.min(j-A-l,t)),{placement:"top",maxHeight:T}}if(n==="bottom")return o&&xr(s,te),{placement:"bottom",maxHeight:t};break;case"top":if(M>=m)return{placement:"top",maxHeight:t};if(B>=m&&!i)return o&&ar(s,fe,$),{placement:"top",maxHeight:t};if(!i&&B>=a||i&&M>=a){var k=t;return(!i&&B>=a||i&&M>=a)&&(k=i?M-I:B-I),o&&ar(s,fe,$),{placement:"top",maxHeight:k}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(n,'".'))}return c}function zd(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var ns=function(t){return t==="auto"?"bottom":t},Yd=function(t,r){var a,n=t.placement,o=t.theme,i=o.borderRadius,l=o.spacing,s=o.colors;return ye((a={label:"menu"},Bn(a,zd(n),"100%"),Bn(a,"position","absolute"),Bn(a,"width","100%"),Bn(a,"zIndex",1),a),r?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},rs=E.createContext(null),Jd=function(t){var r=t.children,a=t.minMenuHeight,n=t.maxMenuHeight,o=t.menuPlacement,i=t.menuPosition,l=t.menuShouldScrollIntoView,s=t.theme,c=E.useContext(rs)||{},d=c.setPortalPlacement,g=E.useRef(null),y=E.useState(n),x=Bt(y,2),m=x[0],h=x[1],p=E.useState(null),C=Bt(p,2),R=C[0],N=C[1],A=s.spacing.controlHeight;return da(function(){var I=g.current;if(I){var M=i==="fixed",_=l&&!M,B=Zd({maxHeight:n,menuEl:I,minHeight:a,placement:o,shouldScroll:_,isFixedPosition:M,controlHeight:A});h(B.maxHeight),N(B.placement),d==null||d(B.placement)}},[n,o,i,l,a,d,A]),r({ref:g,placerProps:ye(ye({},t),{},{placement:R||ns(o),maxHeight:m})})},Ud=function(t){var r=t.children,a=t.innerRef,n=t.innerProps;return ge("div",Ie({},qe(t,"menu",{menu:!0}),{ref:a},n),r)},$d=Ud,Kd=function(t,r){var a=t.maxHeight,n=t.theme.spacing.baseUnit;return ye({maxHeight:a,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:n,paddingTop:n})},Qd=function(t){var r=t.children,a=t.innerProps,n=t.innerRef,o=t.isMulti;return ge("div",Ie({},qe(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:n},a),r)},as=function(t,r){var a=t.theme,n=a.spacing.baseUnit,o=a.colors;return ye({textAlign:"center"},r?{}:{color:o.neutral40,padding:"".concat(n*2,"px ").concat(n*3,"px")})},qd=as,ef=as,tf=function(t){var r=t.children,a=r===void 0?"No options":r,n=t.innerProps,o=Dt(t,Xd);return ge("div",Ie({},qe(ye(ye({},o),{},{children:a,innerProps:n}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),a)},nf=function(t){var r=t.children,a=r===void 0?"Loading...":r,n=t.innerProps,o=Dt(t,Hd);return ge("div",Ie({},qe(ye(ye({},o),{},{children:a,innerProps:n}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),a)},rf=function(t){var r=t.rect,a=t.offset,n=t.position;return{left:r.left,position:n,top:a,width:r.width,zIndex:1}},af=function(t){var r=t.appendTo,a=t.children,n=t.controlElement,o=t.innerProps,i=t.menuPlacement,l=t.menuPosition,s=E.useRef(null),c=E.useRef(null),d=E.useState(ns(i)),g=Bt(d,2),y=g[0],x=g[1],m=E.useMemo(function(){return{setPortalPlacement:x}},[]),h=E.useState(null),p=Bt(h,2),C=p[0],R=p[1],N=E.useCallback(function(){if(n){var _=Fd(n),B=l==="fixed"?0:window.pageYOffset,se=_[y]+B;(se!==(C==null?void 0:C.offset)||_.left!==(C==null?void 0:C.rect.left)||_.width!==(C==null?void 0:C.rect.width))&&R({offset:se,rect:_})}},[n,l,y,C==null?void 0:C.offset,C==null?void 0:C.rect.left,C==null?void 0:C.rect.width]);da(function(){N()},[N]);var A=E.useCallback(function(){typeof c.current=="function"&&(c.current(),c.current=null),n&&s.current&&(c.current=Gd(n,s.current,N,{elementResize:"ResizeObserver"in window}))},[n,N]);da(function(){A()},[A]);var I=E.useCallback(function(_){s.current=_,A()},[A]);if(!r&&l!=="fixed"||!C)return null;var M=ge("div",Ie({ref:I},qe(ye(ye({},t),{},{offset:C.offset,position:l,rect:C.rect}),"menuPortal",{"menu-portal":!0}),o),a);return ge(rs.Provider,{value:m},r?lu.createPortal(M,r):M)},of=function(t){var r=t.isDisabled,a=t.isRtl;return{label:"container",direction:a?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},sf=function(t){var r=t.children,a=t.innerProps,n=t.isDisabled,o=t.isRtl;return ge("div",Ie({},qe(t,"container",{"--is-disabled":n,"--is-rtl":o}),a),r)},lf=function(t,r){var a=t.theme.spacing,n=t.isMulti,o=t.hasValue,i=t.selectProps.controlShouldRenderValue;return ye({alignItems:"center",display:n&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(a.baseUnit/2,"px ").concat(a.baseUnit*2,"px")})},uf=function(t){var r=t.children,a=t.innerProps,n=t.isMulti,o=t.hasValue;return ge("div",Ie({},qe(t,"valueContainer",{"value-container":!0,"value-container--is-multi":n,"value-container--has-value":o}),a),r)},cf=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},df=function(t){var r=t.children,a=t.innerProps;return ge("div",Ie({},qe(t,"indicatorsContainer",{indicators:!0}),a),r)},Fo,ff=["size"],pf=["innerProps","isRtl","size"];function gf(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var mf=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09i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iXX0= */",toString:gf},os=function(t){var r=t.size,a=Dt(t,ff);return ge("svg",Ie({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:mf},a))},Fa=function(t){return ge(os,Ie({size:20},t),ge("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},is=function(t){return ge(os,Ie({size:20},t),ge("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},ss=function(t,r){var a=t.isFocused,n=t.theme,o=n.spacing.baseUnit,i=n.colors;return ye({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:a?i.neutral60:i.neutral20,padding:o*2,":hover":{color:a?i.neutral80:i.neutral40}})},bf=ss,hf=function(t){var r=t.children,a=t.innerProps;return ge("div",Ie({},qe(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),a),r||ge(is,null))},vf=ss,yf=function(t){var r=t.children,a=t.innerProps;return ge("div",Ie({},qe(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),a),r||ge(Fa,null))},Cf=function(t,r){var a=t.isDisabled,n=t.theme,o=n.spacing.baseUnit,i=n.colors;return ye({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:a?i.neutral10:i.neutral20,marginBottom:o*2,marginTop:o*2})},xf=function(t){var r=t.innerProps;return ge("span",Ie({},r,qe(t,"indicatorSeparator",{"indicator-separator":!0})))},If=md(Fo||(Fo=bd([`
47
47
  0%, 80%, 100% { opacity: 0; }
48
48
  40% { opacity: 1; }
49
- `]))),If=function(t,r){var a=t.isFocused,n=t.size,o=t.theme,i=o.colors,l=o.spacing.baseUnit;return ve({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"},r?{}:{color:a?i.neutral60:i.neutral20,padding:l*2})},Hr=function(t){var r=t.delay,a=t.offset;return ge("span",{css:Oa({animation:"".concat(xf," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:a?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1c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U2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},Sf=function(t){var r=t.innerProps,a=t.isRtl,n=t.size,o=n===void 0?4:n,i=Ht(t,ff);return ge("div",xe({},tt(ve(ve({},i),{},{innerProps:r,isRtl:a,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),ge(Hr,{delay:0,offset:a}),ge(Hr,{delay:160,offset:!0}),ge(Hr,{delay:320,offset:!a}))},Af=function(t,r){var a=t.isDisabled,n=t.isFocused,o=t.theme,i=o.colors,l=o.borderRadius,s=o.spacing;return ve({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:a?i.neutral5:i.neutral0,borderColor:a?i.neutral10:n?i.primary:i.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:n?i.primary:i.neutral30}})},wf=function(t){var r=t.children,a=t.isDisabled,n=t.isFocused,o=t.innerRef,i=t.innerProps,l=t.menuIsOpen;return ge("div",xe({ref:o},tt(t,"control",{control:!0,"control--is-disabled":a,"control--is-focused":n,"control--menu-is-open":l}),i,{"aria-disabled":a||void 0}),r)},Ef=wf,Rf=["data"],Nf=function(t,r){var a=t.theme.spacing;return r?{}:{paddingBottom:a.baseUnit*2,paddingTop:a.baseUnit*2}},Gf=function(t){var r=t.children,a=t.cx,n=t.getStyles,o=t.getClassNames,i=t.Heading,l=t.headingProps,s=t.innerProps,c=t.label,d=t.theme,f=t.selectProps;return ge("div",xe({},tt(t,"group",{group:!0}),s),ge(i,xe({},l,{selectProps:f,theme:d,getStyles:n,getClassNames:o,cx:a}),c),ge("div",null,r))},Pf=function(t,r){var a=t.theme,n=a.colors,o=a.spacing;return ve({label:"group",cursor:"default",display:"block"},r?{}:{color:n.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},Tf=function(t){var r=qi(t);r.data;var a=Ht(r,Rf);return ge("div",xe({},tt(t,"groupHeading",{"group-heading":!0}),a))},Of=Gf,jf=["innerRef","isDisabled","isHidden","inputClassName"],Mf=function(t,r){var a=t.isDisabled,n=t.value,o=t.theme,i=o.spacing,l=o.colors;return ve(ve({visibility:a?"hidden":"visible",transform:n?"translateZ(0)":""},kf),r?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:l.neutral80})},ls={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},kf={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ve({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},ls)},Ff=function(t){return ve({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},ls)},Bf=function(t){var r=t.cx,a=t.value,n=qi(t),o=n.innerRef,i=n.isDisabled,l=n.isHidden,s=n.inputClassName,c=Ht(n,jf);return ge("div",xe({},tt(t,"input",{"input-container":!0}),{"data-value":a||""}),ge("input",xe({className:r({input:!0},s),ref:o,style:Ff(l),disabled:i},c)))},Vf=Bf,_f=function(t,r){var a=t.theme,n=a.spacing,o=a.borderRadius,i=a.colors;return ve({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:n.baseUnit/2})},Df=function(t,r){var a=t.theme,n=a.borderRadius,o=a.colors,i=t.cropWithEllipsis;return ve({overflow:"hidden",textOverflow:i||i===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:n/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Wf=function(t,r){var a=t.theme,n=a.spacing,o=a.borderRadius,i=a.colors,l=t.isFocused;return ve({alignItems:"center",display:"flex"},r?{}:{borderRadius:o/2,backgroundColor:l?i.dangerLight:void 0,paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},us=function(t){var r=t.children,a=t.innerProps;return ge("div",a,r)},Lf=us,Xf=us;function Hf(e){var t=e.children,r=e.innerProps;return ge("div",xe({role:"button"},r),t||ge(Fa,{size:14}))}var Zf=function(t){var r=t.children,a=t.components,n=t.data,o=t.innerProps,i=t.isDisabled,l=t.removeProps,s=t.selectProps,c=a.Container,d=a.Label,f=a.Remove;return ge(c,{data:n,innerProps:ve(ve({},tt(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:s},ge(d,{data:n,innerProps:ve({},tt(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},r),ge(f,{data:n,innerProps:ve(ve({},tt(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},l),selectProps:s}))},zf=Zf,Yf=function(t,r){var a=t.isDisabled,n=t.isFocused,o=t.isSelected,i=t.theme,l=i.spacing,s=i.colors;return ve({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:o?s.primary:n?s.primary25:"transparent",color:a?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:a?void 0:o?s.primary:s.primary50}})},Jf=function(t){var r=t.children,a=t.isDisabled,n=t.isFocused,o=t.isSelected,i=t.innerRef,l=t.innerProps;return ge("div",xe({},tt(t,"option",{option:!0,"option--is-disabled":a,"option--is-focused":n,"option--is-selected":o}),{ref:i,"aria-disabled":a},l),r)},Uf=Jf,$f=function(t,r){var a=t.theme,n=a.spacing,o=a.colors;return ve({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:o.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2})},Qf=function(t){var r=t.children,a=t.innerProps;return ge("div",xe({},tt(t,"placeholder",{placeholder:!0}),a),r)},Kf=Qf,qf=function(t,r){var a=t.isDisabled,n=t.theme,o=n.spacing,i=n.colors;return ve({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:a?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},ep=function(t){var r=t.children,a=t.isDisabled,n=t.innerProps;return ge("div",xe({},tt(t,"singleValue",{"single-value":!0,"single-value--is-disabled":a}),n),r)},tp=ep,cs={ClearIndicator:vf,Control:Ef,DropdownIndicator:bf,DownChevron:is,CrossIcon:Fa,Group:Of,GroupHeading:Tf,IndicatorsContainer:cf,IndicatorSeparator:Cf,Input:Vf,LoadingIndicator:Sf,Menu:Ud,MenuList:Qd,MenuPortal:rf,LoadingMessage:tf,NoOptionsMessage:ef,MultiValue:zf,MultiValueContainer:Lf,MultiValueLabel:Xf,MultiValueRemove:Hf,Option:Uf,Placeholder:Kf,SelectContainer:of,SingleValue:tp,ValueContainer:lf},np=function(t){return ve(ve({},cs),t.components)},Bo=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function rp(e,t){return!!(e===t||Bo(e)&&Bo(t))}function ap(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!rp(e[r],t[r]))return!1;return!0}function op(e,t){t===void 0&&(t=ap);var r=null;function a(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];if(r&&r.lastThis===this&&t(n,r.lastArgs))return r.lastResult;var i=e.apply(this,n);return r={lastResult:i,lastArgs:n,lastThis:this},i}return a.clear=function(){r=null},a}function ip(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var sp=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:ip},lp=function(t){return ge("span",xe({css:sp},t))},Vo=lp,up={guidance:function(t){var r=t.isSearchable,a=t.isMulti,n=t.tabSelectsValue,o=t.context,i=t.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(n?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(t["aria-label"]||"Select"," is focused ").concat(r?",type to refine list":"",", press Down to open the menu, ").concat(a?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var r=t.action,a=t.label,n=a===void 0?"":a,o=t.labels,i=t.isDisabled;switch(r){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return i?"option ".concat(n," is disabled. Select another option."):"option ".concat(n,", selected.");default:return""}},onFocus:function(t){var r=t.context,a=t.focused,n=t.options,o=t.label,i=o===void 0?"":o,l=t.selectValue,s=t.isDisabled,c=t.isSelected,d=t.isAppleDevice,f=function(h,p){return h&&h.length?"".concat(h.indexOf(p)+1," of ").concat(h.length):""};if(r==="value"&&l)return"value ".concat(i," focused, ").concat(f(l,a),".");if(r==="menu"&&d){var y=s?" disabled":"",C="".concat(c?" selected":"").concat(y);return"".concat(i).concat(C,", ").concat(f(n,a),".")}return""},onFilter:function(t){var r=t.inputValue,a=t.resultsMessage;return"".concat(a).concat(r?" for search term "+r:"",".")}},cp=function(t){var r=t.ariaSelection,a=t.focusedOption,n=t.focusedValue,o=t.focusableOptions,i=t.isFocused,l=t.selectValue,s=t.selectProps,c=t.id,d=t.isAppleDevice,f=s.ariaLiveMessages,y=s.getOptionLabel,C=s.inputValue,b=s.isMulti,h=s.isOptionDisabled,p=s.isSearchable,x=s.menuIsOpen,E=s.options,R=s.screenReaderStatus,A=s.tabSelectsValue,I=s.isLoading,j=s["aria-label"],F=s["aria-live"],M=w.useMemo(function(){return ve(ve({},up),f||{})},[f]),ie=w.useMemo(function(){var T="";if(r&&M.onChange){var B=r.option,J=r.options,ne=r.removedValue,Ie=r.removedValues,_=r.value,W=function(K){return Array.isArray(K)?null:K},Z=ne||B||W(_),ae=Z?y(Z):"",L=J||Ie||void 0,m=L?L.map(y):[],pe=ve({isDisabled:Z&&h(Z,l),label:ae,labels:m},r);T=M.onChange(pe)}return T},[r,M,h,l,y]),re=w.useMemo(function(){var T="",B=a||n,J=!!(a&&l&&l.includes(a));if(B&&M.onFocus){var ne={focused:B,label:y(B),isDisabled:h(B,l),isSelected:J,options:o,context:B===a?"menu":"value",selectValue:l,isAppleDevice:d};T=M.onFocus(ne)}return T},[a,n,y,h,M,o,l,d]),ce=w.useMemo(function(){var T="";if(x&&E.length&&!I&&M.onFilter){var B=R({count:o.length});T=M.onFilter({inputValue:C,resultsMessage:B})}return T},[o,C,x,M,E,R,I]),z=(r==null?void 0:r.action)==="initial-input-focus",le=w.useMemo(function(){var T="";if(M.guidance){var B=n?"value":x?"menu":"input";T=M.guidance({"aria-label":j,context:B,isDisabled:a&&h(a,l),isMulti:b,isSearchable:p,tabSelectsValue:A,isInitialFocus:z})}return T},[j,a,n,b,h,p,x,M,l,A,z]),G=ge(w.Fragment,null,ge("span",{id:"aria-selection"},ie),ge("span",{id:"aria-focused"},re),ge("span",{id:"aria-results"},ce),ge("span",{id:"aria-guidance"},le));return ge(w.Fragment,null,ge(Vo,{id:c},z&&G),ge(Vo,{"aria-live":F,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!z&&G))},dp=cp,fa=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],fp=new RegExp("["+fa.map(function(e){return e.letters}).join("")+"]","g"),ds={};for(var Zr=0;Zr<fa.length;Zr++)for(var zr=fa[Zr],Yr=0;Yr<zr.letters.length;Yr++)ds[zr.letters[Yr]]=zr.base;var fs=function(t){return t.replace(fp,function(r){return ds[r]})},pp=op(fs),_o=function(t){return t.replace(/^\s+|\s+$/g,"")},gp=function(t){return"".concat(t.label," ").concat(t.value)},mp=function(t){return function(r,a){if(r.data.__isNew__)return!0;var n=ve({ignoreCase:!0,ignoreAccents:!0,stringify:gp,trim:!0,matchFrom:"any"},t),o=n.ignoreCase,i=n.ignoreAccents,l=n.stringify,s=n.trim,c=n.matchFrom,d=s?_o(a):a,f=s?_o(l(r)):l(r);return o&&(d=d.toLowerCase(),f=f.toLowerCase()),i&&(d=pp(d),f=fs(f)),c==="start"?f.substr(0,d.length)===d:f.indexOf(d)>-1}},bp=["innerRef"];function hp(e){var t=e.innerRef,r=Ht(e,bp),a=Wd(r,"onExited","in","enter","exit","appear");return ge("input",xe({ref:t},a,{css:Oa({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var vp=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function yp(e){var t=e.isEnabled,r=e.onBottomArrive,a=e.onBottomLeave,n=e.onTopArrive,o=e.onTopLeave,i=w.useRef(!1),l=w.useRef(!1),s=w.useRef(0),c=w.useRef(null),d=w.useCallback(function(p,x){if(c.current!==null){var E=c.current,R=E.scrollTop,A=E.scrollHeight,I=E.clientHeight,j=c.current,F=x>0,M=A-I-R,ie=!1;M>x&&i.current&&(a&&a(p),i.current=!1),F&&l.current&&(o&&o(p),l.current=!1),F&&x>M?(r&&!i.current&&r(p),j.scrollTop=A,ie=!0,i.current=!0):!F&&-x>R&&(n&&!l.current&&n(p),j.scrollTop=0,ie=!0,l.current=!0),ie&&vp(p)}},[r,a,n,o]),f=w.useCallback(function(p){d(p,p.deltaY)},[d]),y=w.useCallback(function(p){s.current=p.changedTouches[0].clientY},[]),C=w.useCallback(function(p){var x=s.current-p.changedTouches[0].clientY;d(p,x)},[d]),b=w.useCallback(function(p){if(p){var x=Vd?{passive:!1}:!1;p.addEventListener("wheel",f,x),p.addEventListener("touchstart",y,x),p.addEventListener("touchmove",C,x)}},[C,y,f]),h=w.useCallback(function(p){p&&(p.removeEventListener("wheel",f,!1),p.removeEventListener("touchstart",y,!1),p.removeEventListener("touchmove",C,!1))},[C,y,f]);return w.useEffect(function(){if(t){var p=c.current;return b(p),function(){h(p)}}},[t,b,h]),function(p){c.current=p}}var Do=["boxSizing","height","overflow","paddingRight","position"],Wo={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Lo(e){e.cancelable&&e.preventDefault()}function Xo(e){e.stopPropagation()}function Ho(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;e===0?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function Zo(){return"ontouchstart"in window||navigator.maxTouchPoints}var zo=!!(typeof window<"u"&&window.document&&window.document.createElement),Mn=0,vn={capture:!1,passive:!1};function Cp(e){var t=e.isEnabled,r=e.accountForScrollbars,a=r===void 0?!0:r,n=w.useRef({}),o=w.useRef(null),i=w.useCallback(function(s){if(zo){var c=document.body,d=c&&c.style;if(a&&Do.forEach(function(b){var h=d&&d[b];n.current[b]=h}),a&&Mn<1){var f=parseInt(n.current.paddingRight,10)||0,y=document.body?document.body.clientWidth:0,C=window.innerWidth-y+f||0;Object.keys(Wo).forEach(function(b){var h=Wo[b];d&&(d[b]=h)}),d&&(d.paddingRight="".concat(C,"px"))}c&&Zo()&&(c.addEventListener("touchmove",Lo,vn),s&&(s.addEventListener("touchstart",Ho,vn),s.addEventListener("touchmove",Xo,vn))),Mn+=1}},[a]),l=w.useCallback(function(s){if(zo){var c=document.body,d=c&&c.style;Mn=Math.max(Mn-1,0),a&&Mn<1&&Do.forEach(function(f){var y=n.current[f];d&&(d[f]=y)}),c&&Zo()&&(c.removeEventListener("touchmove",Lo,vn),s&&(s.removeEventListener("touchstart",Ho,vn),s.removeEventListener("touchmove",Xo,vn)))}},[a]);return w.useEffect(function(){if(t){var s=o.current;return i(s),function(){l(s)}}},[t,i,l]),function(s){o.current=s}}function xp(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Ip=function(t){var r=t.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},Sp=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3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QXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:xp};function Ap(e){var t=e.children,r=e.lockEnabled,a=e.captureEnabled,n=a===void 0?!0:a,o=e.onBottomArrive,i=e.onBottomLeave,l=e.onTopArrive,s=e.onTopLeave,c=yp({isEnabled:n,onBottomArrive:o,onBottomLeave:i,onTopArrive:l,onTopLeave:s}),d=Cp({isEnabled:r}),f=function(C){c(C),d(C)};return ge(w.Fragment,null,r&&ge("div",{onClick:Ip,css:Sp}),t(f))}function wp(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Ep=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:wp},Rp=function(t){var r=t.name,a=t.onFocus;return ge("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:a,css:Ep,value:"",onChange:function(){}})},Np=Rp;function Ba(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Gp(){return Ba(/^iPhone/i)}function ps(){return Ba(/^Mac/i)}function Pp(){return Ba(/^iPad/i)||ps()&&navigator.maxTouchPoints>1}function Tp(){return Gp()||Pp()}function Op(){return ps()||Tp()}var jp=function(t){return t.label},Mp=function(t){return t.label},kp=function(t){return t.value},Fp=function(t){return!!t.isDisabled},Bp={clearIndicator:hf,container:af,control:Af,dropdownIndicator:mf,group:Nf,groupHeading:Pf,indicatorsContainer:uf,indicatorSeparator:yf,input:Mf,loadingIndicator:If,loadingMessage:qd,menu:zd,menuList:$d,menuPortal:nf,multiValue:_f,multiValueLabel:Df,multiValueRemove:Wf,noOptionsMessage:Kd,option:Yf,placeholder:$f,singleValue:qf,valueContainer:sf},Vp={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},_p=4,gs=4,Dp=38,Wp=gs*2,Lp={baseUnit:gs,controlHeight:Dp,menuGutter:Wp},Jr={borderRadius:_p,colors:Vp,spacing:Lp},Xp={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ko(),captureMenuScroll:!ko(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:mp(),formatGroupLabel:jp,getOptionLabel:Mp,getOptionValue:kp,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Fp,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Fd(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var r=t.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Yo(e,t,r,a){var n=hs(e,t,r),o=vs(e,t,r),i=bs(e,t),l=xr(e,t);return{type:"option",data:t,isDisabled:n,isSelected:o,label:i,value:l,index:a}}function fr(e,t){return e.options.map(function(r,a){if("options"in r){var n=r.options.map(function(i,l){return Yo(e,i,t,l)}).filter(function(i){return Uo(e,i)});return n.length>0?{type:"group",data:r,options:n,index:a}:void 0}var o=Yo(e,r,t,a);return Uo(e,o)?o:void 0}).filter(_d)}function ms(e){return e.reduce(function(t,r){return r.type==="group"?t.push.apply(t,Ra(r.options.map(function(a){return a.data}))):t.push(r.data),t},[])}function Jo(e,t){return e.reduce(function(r,a){return a.type==="group"?r.push.apply(r,Ra(a.options.map(function(n){return{data:n.data,id:"".concat(t,"-").concat(a.index,"-").concat(n.index)}}))):r.push({data:a.data,id:"".concat(t,"-").concat(a.index)}),r},[])}function Hp(e,t){return ms(fr(e,t))}function Uo(e,t){var r=e.inputValue,a=r===void 0?"":r,n=t.data,o=t.isSelected,i=t.label,l=t.value;return(!Cs(e)||!o)&&ys(e,{label:i,value:l,data:n},a)}function Zp(e,t){var r=e.focusedValue,a=e.selectValue,n=a.indexOf(r);if(n>-1){var o=t.indexOf(r);if(o>-1)return r;if(n<t.length)return t[n]}return null}function zp(e,t){var r=e.focusedOption;return r&&t.indexOf(r)>-1?r:t[0]}var Ur=function(t,r){var a,n=(a=t.find(function(o){return o.data===r}))===null||a===void 0?void 0:a.id;return n||null},bs=function(t,r){return t.getOptionLabel(r)},xr=function(t,r){return t.getOptionValue(r)};function hs(e,t,r){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,r):!1}function vs(e,t,r){if(r.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,r);var a=xr(e,t);return r.some(function(n){return xr(e,n)===a})}function ys(e,t,r){return e.filterOption?e.filterOption(t,r):!0}var Cs=function(t){var r=t.hideSelectedOptions,a=t.isMulti;return r===void 0?a:r},Yp=1,xs=function(e){uc(r,e);var t=fc(r);function r(a){var n;if(sc(this,r),n=t.call(this,a),n.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},n.blockOptionHover=!1,n.isComposing=!1,n.commonProps=void 0,n.initialTouchX=0,n.initialTouchY=0,n.openAfterFocus=!1,n.scrollToFocusedOptionOnUpdate=!1,n.userIsDragging=void 0,n.isAppleDevice=Op(),n.controlRef=null,n.getControlRef=function(s){n.controlRef=s},n.focusedOptionRef=null,n.getFocusedOptionRef=function(s){n.focusedOptionRef=s},n.menuListRef=null,n.getMenuListRef=function(s){n.menuListRef=s},n.inputRef=null,n.getInputRef=function(s){n.inputRef=s},n.focus=n.focusInput,n.blur=n.blurInput,n.onChange=function(s,c){var d=n.props,f=d.onChange,y=d.name;c.name=y,n.ariaOnChange(s,c),f(s,c)},n.setValue=function(s,c,d){var f=n.props,y=f.closeMenuOnSelect,C=f.isMulti,b=f.inputValue;n.onInputChange("",{action:"set-value",prevInputValue:b}),y&&(n.setState({inputIsHiddenAfterUpdate:!C}),n.onMenuClose()),n.setState({clearFocusValueOnUpdate:!0}),n.onChange(s,{action:c,option:d})},n.selectOption=function(s){var c=n.props,d=c.blurInputOnSelect,f=c.isMulti,y=c.name,C=n.state.selectValue,b=f&&n.isOptionSelected(s,C),h=n.isOptionDisabled(s,C);if(b){var p=n.getOptionValue(s);n.setValue(C.filter(function(x){return n.getOptionValue(x)!==p}),"deselect-option",s)}else if(!h)f?n.setValue([].concat(Ra(C),[s]),"select-option",s):n.setValue(s,"select-option");else{n.ariaOnChange(s,{action:"select-option",option:s,name:y});return}d&&n.blurInput()},n.removeValue=function(s){var c=n.props.isMulti,d=n.state.selectValue,f=n.getOptionValue(s),y=d.filter(function(b){return n.getOptionValue(b)!==f}),C=ir(c,y,y[0]||null);n.onChange(C,{action:"remove-value",removedValue:s}),n.focusInput()},n.clearValue=function(){var s=n.state.selectValue;n.onChange(ir(n.props.isMulti,[],null),{action:"clear",removedValues:s})},n.popValue=function(){var s=n.props.isMulti,c=n.state.selectValue,d=c[c.length-1],f=c.slice(0,c.length-1),y=ir(s,f,f[0]||null);d&&n.onChange(y,{action:"pop-value",removedValue:d})},n.getFocusedOptionId=function(s){return Ur(n.state.focusableOptionsWithIds,s)},n.getFocusableOptionsWithIds=function(){return Jo(fr(n.props,n.state.selectValue),n.getElementId("option"))},n.getValue=function(){return n.state.selectValue},n.cx=function(){for(var s=arguments.length,c=new Array(s),d=0;d<s;d++)c[d]=arguments[d];return Td.apply(void 0,[n.props.classNamePrefix].concat(c))},n.getOptionLabel=function(s){return bs(n.props,s)},n.getOptionValue=function(s){return xr(n.props,s)},n.getStyles=function(s,c){var d=n.props.unstyled,f=Bp[s](c,d);f.boxSizing="border-box";var y=n.props.styles[s];return y?y(f,c):f},n.getClassNames=function(s,c){var d,f;return(d=(f=n.props.classNames)[s])===null||d===void 0?void 0:d.call(f,c)},n.getElementId=function(s){return"".concat(n.state.instancePrefix,"-").concat(s)},n.getComponents=function(){return np(n.props)},n.buildCategorizedOptions=function(){return fr(n.props,n.state.selectValue)},n.getCategorizedOptions=function(){return n.props.menuIsOpen?n.buildCategorizedOptions():[]},n.buildFocusableOptions=function(){return ms(n.buildCategorizedOptions())},n.getFocusableOptions=function(){return n.props.menuIsOpen?n.buildFocusableOptions():[]},n.ariaOnChange=function(s,c){n.setState({ariaSelection:ve({value:s},c)})},n.onMenuMouseDown=function(s){s.button===0&&(s.stopPropagation(),s.preventDefault(),n.focusInput())},n.onMenuMouseMove=function(s){n.blockOptionHover=!1},n.onControlMouseDown=function(s){if(!s.defaultPrevented){var c=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&n.onMenuClose():c&&n.openMenu("first"):(c&&(n.openAfterFocus=!0),n.focusInput()),s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&s.preventDefault()}},n.onDropdownIndicatorMouseDown=function(s){if(!(s&&s.type==="mousedown"&&s.button!==0)&&!n.props.isDisabled){var c=n.props,d=c.isMulti,f=c.menuIsOpen;n.focusInput(),f?(n.setState({inputIsHiddenAfterUpdate:!d}),n.onMenuClose()):n.openMenu("first"),s.preventDefault()}},n.onClearIndicatorMouseDown=function(s){s&&s.type==="mousedown"&&s.button!==0||(n.clearValue(),s.preventDefault(),n.openAfterFocus=!1,s.type==="touchend"?n.focusInput():setTimeout(function(){return n.focusInput()}))},n.onScroll=function(s){typeof n.props.closeMenuOnScroll=="boolean"?s.target instanceof HTMLElement&&Pr(s.target)&&n.props.onMenuClose():typeof n.props.closeMenuOnScroll=="function"&&n.props.closeMenuOnScroll(s)&&n.props.onMenuClose()},n.onCompositionStart=function(){n.isComposing=!0},n.onCompositionEnd=function(){n.isComposing=!1},n.onTouchStart=function(s){var c=s.touches,d=c&&c.item(0);d&&(n.initialTouchX=d.clientX,n.initialTouchY=d.clientY,n.userIsDragging=!1)},n.onTouchMove=function(s){var c=s.touches,d=c&&c.item(0);if(d){var f=Math.abs(d.clientX-n.initialTouchX),y=Math.abs(d.clientY-n.initialTouchY),C=5;n.userIsDragging=f>C||y>C}},n.onTouchEnd=function(s){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(s.target)&&n.menuListRef&&!n.menuListRef.contains(s.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)},n.onControlTouchEnd=function(s){n.userIsDragging||n.onControlMouseDown(s)},n.onClearIndicatorTouchEnd=function(s){n.userIsDragging||n.onClearIndicatorMouseDown(s)},n.onDropdownIndicatorTouchEnd=function(s){n.userIsDragging||n.onDropdownIndicatorMouseDown(s)},n.handleInputChange=function(s){var c=n.props.inputValue,d=s.currentTarget.value;n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange(d,{action:"input-change",prevInputValue:c}),n.props.menuIsOpen||n.onMenuOpen()},n.onInputFocus=function(s){n.props.onFocus&&n.props.onFocus(s),n.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1},n.onInputBlur=function(s){var c=n.props.inputValue;if(n.menuListRef&&n.menuListRef.contains(document.activeElement)){n.inputRef.focus();return}n.props.onBlur&&n.props.onBlur(s),n.onInputChange("",{action:"input-blur",prevInputValue:c}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1})},n.onOptionHover=function(s){if(!(n.blockOptionHover||n.state.focusedOption===s)){var c=n.getFocusableOptions(),d=c.indexOf(s);n.setState({focusedOption:s,focusedOptionId:d>-1?n.getFocusedOptionId(s):null})}},n.shouldHideSelectedOptions=function(){return Cs(n.props)},n.onValueInputFocus=function(s){s.preventDefault(),s.stopPropagation(),n.focus()},n.onKeyDown=function(s){var c=n.props,d=c.isMulti,f=c.backspaceRemovesValue,y=c.escapeClearsValue,C=c.inputValue,b=c.isClearable,h=c.isDisabled,p=c.menuIsOpen,x=c.onKeyDown,E=c.tabSelectsValue,R=c.openMenuOnFocus,A=n.state,I=A.focusedOption,j=A.focusedValue,F=A.selectValue;if(!h&&!(typeof x=="function"&&(x(s),s.defaultPrevented))){switch(n.blockOptionHover=!0,s.key){case"ArrowLeft":if(!d||C)return;n.focusValue("previous");break;case"ArrowRight":if(!d||C)return;n.focusValue("next");break;case"Delete":case"Backspace":if(C)return;if(j)n.removeValue(j);else{if(!f)return;d?n.popValue():b&&n.clearValue()}break;case"Tab":if(n.isComposing||s.shiftKey||!p||!E||!I||R&&n.isOptionSelected(I,F))return;n.selectOption(I);break;case"Enter":if(s.keyCode===229)break;if(p){if(!I||n.isComposing)return;n.selectOption(I);break}return;case"Escape":p?(n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange("",{action:"menu-close",prevInputValue:C}),n.onMenuClose()):b&&y&&n.clearValue();break;case" ":if(C)return;if(!p){n.openMenu("first");break}if(!I)return;n.selectOption(I);break;case"ArrowUp":p?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":p?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!p)return;n.focusOption("pageup");break;case"PageDown":if(!p)return;n.focusOption("pagedown");break;case"Home":if(!p)return;n.focusOption("first");break;case"End":if(!p)return;n.focusOption("last");break;default:return}s.preventDefault()}},n.state.instancePrefix="react-select-"+(n.props.instanceId||++Yp),n.state.selectValue=jo(a.value),a.menuIsOpen&&n.state.selectValue.length){var o=n.getFocusableOptionsWithIds(),i=n.buildFocusableOptions(),l=i.indexOf(n.state.selectValue[0]);n.state.focusableOptionsWithIds=o,n.state.focusedOption=i[l],n.state.focusedOptionId=Ur(o,i[l])}return n}return lc(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Mo(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(n){var o=this.props,i=o.isDisabled,l=o.menuIsOpen,s=this.state.isFocused;(s&&!i&&n.isDisabled||s&&l&&!n.menuIsOpen)&&this.focusInput(),s&&i&&!n.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!s&&!i&&n.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Mo(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(n,o){this.props.onInputChange(n,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(n){var o=this,i=this.state,l=i.selectValue,s=i.isFocused,c=this.buildFocusableOptions(),d=n==="first"?0:c.length-1;if(!this.props.isMulti){var f=c.indexOf(l[0]);f>-1&&(d=f)}this.scrollToFocusedOptionOnUpdate=!(s&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:c[d],focusedOptionId:this.getFocusedOptionId(c[d])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(n){var o=this.state,i=o.selectValue,l=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var s=i.indexOf(l);l||(s=-1);var c=i.length-1,d=-1;if(i.length){switch(n){case"previous":s===0?d=0:s===-1?d=c:d=s-1;break;case"next":s>-1&&s<c&&(d=s+1);break}this.setState({inputIsHidden:d!==-1,focusedValue:i[d]})}}}},{key:"focusOption",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,i=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var s=0,c=l.indexOf(i);i||(c=-1),n==="up"?s=c>0?c-1:l.length-1:n==="down"?s=(c+1)%l.length:n==="pageup"?(s=c-o,s<0&&(s=0)):n==="pagedown"?(s=c+o,s>l.length-1&&(s=l.length-1)):n==="last"&&(s=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[s],focusedValue:null,focusedOptionId:this.getFocusedOptionId(l[s])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Jr):ve(ve({},Jr),this.props.theme):Jr}},{key:"getCommonProps",value:function(){var n=this.clearValue,o=this.cx,i=this.getStyles,l=this.getClassNames,s=this.getValue,c=this.selectOption,d=this.setValue,f=this.props,y=f.isMulti,C=f.isRtl,b=f.options,h=this.hasValue();return{clearValue:n,cx:o,getStyles:i,getClassNames:l,getValue:s,hasValue:h,isMulti:y,isRtl:C,options:b,selectOption:c,selectProps:f,setValue:d,theme:this.getTheme()}}},{key:"hasValue",value:function(){var n=this.state.selectValue;return n.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var n=this.props,o=n.isClearable,i=n.isMulti;return o===void 0?i:o}},{key:"isOptionDisabled",value:function(n,o){return hs(this.props,n,o)}},{key:"isOptionSelected",value:function(n,o){return vs(this.props,n,o)}},{key:"filterOption",value:function(n,o){return ys(this.props,n,o)}},{key:"formatOptionLabel",value:function(n,o){if(typeof this.props.formatOptionLabel=="function"){var i=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(n,{context:o,inputValue:i,selectValue:l})}else return this.getOptionLabel(n)}},{key:"formatGroupLabel",value:function(n){return this.props.formatGroupLabel(n)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var n=this.props,o=n.isDisabled,i=n.isSearchable,l=n.inputId,s=n.inputValue,c=n.tabIndex,d=n.form,f=n.menuIsOpen,y=n.required,C=this.getComponents(),b=C.Input,h=this.state,p=h.inputIsHidden,x=h.ariaSelection,E=this.commonProps,R=l||this.getElementId("input"),A=ve(ve(ve({"aria-autocomplete":"list","aria-expanded":f,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":y,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},f&&{"aria-controls":this.getElementId("listbox")}),!i&&{"aria-readonly":!0}),this.hasValue()?(x==null?void 0:x.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return i?S.createElement(b,xe({},E,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:R,innerRef:this.getInputRef,isDisabled:o,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:c,form:d,type:"text",value:s},A)):S.createElement(hp,xe({id:R,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:yr,onFocus:this.onInputFocus,disabled:o,tabIndex:c,inputMode:"none",form:d,value:""},A))}},{key:"renderPlaceholderOrValue",value:function(){var n=this,o=this.getComponents(),i=o.MultiValue,l=o.MultiValueContainer,s=o.MultiValueLabel,c=o.MultiValueRemove,d=o.SingleValue,f=o.Placeholder,y=this.commonProps,C=this.props,b=C.controlShouldRenderValue,h=C.isDisabled,p=C.isMulti,x=C.inputValue,E=C.placeholder,R=this.state,A=R.selectValue,I=R.focusedValue,j=R.isFocused;if(!this.hasValue()||!b)return x?null:S.createElement(f,xe({},y,{key:"placeholder",isDisabled:h,isFocused:j,innerProps:{id:this.getElementId("placeholder")}}),E);if(p)return A.map(function(M,ie){var re=M===I,ce="".concat(n.getOptionLabel(M),"-").concat(n.getOptionValue(M));return S.createElement(i,xe({},y,{components:{Container:l,Label:s,Remove:c},isFocused:re,isDisabled:h,key:ce,index:ie,removeProps:{onClick:function(){return n.removeValue(M)},onTouchEnd:function(){return n.removeValue(M)},onMouseDown:function(le){le.preventDefault()}},data:M}),n.formatOptionLabel(M,"value"))});if(x)return null;var F=A[0];return S.createElement(d,xe({},y,{data:F,isDisabled:h}),this.formatOptionLabel(F,"value"))}},{key:"renderClearIndicator",value:function(){var n=this.getComponents(),o=n.ClearIndicator,i=this.commonProps,l=this.props,s=l.isDisabled,c=l.isLoading,d=this.state.isFocused;if(!this.isClearable()||!o||s||!this.hasValue()||c)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return S.createElement(o,xe({},i,{innerProps:f,isFocused:d}))}},{key:"renderLoadingIndicator",value:function(){var n=this.getComponents(),o=n.LoadingIndicator,i=this.commonProps,l=this.props,s=l.isDisabled,c=l.isLoading,d=this.state.isFocused;if(!o||!c)return null;var f={"aria-hidden":"true"};return S.createElement(o,xe({},i,{innerProps:f,isDisabled:s,isFocused:d}))}},{key:"renderIndicatorSeparator",value:function(){var n=this.getComponents(),o=n.DropdownIndicator,i=n.IndicatorSeparator;if(!o||!i)return null;var l=this.commonProps,s=this.props.isDisabled,c=this.state.isFocused;return S.createElement(i,xe({},l,{isDisabled:s,isFocused:c}))}},{key:"renderDropdownIndicator",value:function(){var n=this.getComponents(),o=n.DropdownIndicator;if(!o)return null;var i=this.commonProps,l=this.props.isDisabled,s=this.state.isFocused,c={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return S.createElement(o,xe({},i,{innerProps:c,isDisabled:l,isFocused:s}))}},{key:"renderMenu",value:function(){var n=this,o=this.getComponents(),i=o.Group,l=o.GroupHeading,s=o.Menu,c=o.MenuList,d=o.MenuPortal,f=o.LoadingMessage,y=o.NoOptionsMessage,C=o.Option,b=this.commonProps,h=this.state.focusedOption,p=this.props,x=p.captureMenuScroll,E=p.inputValue,R=p.isLoading,A=p.loadingMessage,I=p.minMenuHeight,j=p.maxMenuHeight,F=p.menuIsOpen,M=p.menuPlacement,ie=p.menuPosition,re=p.menuPortalTarget,ce=p.menuShouldBlockScroll,z=p.menuShouldScrollIntoView,le=p.noOptionsMessage,G=p.onMenuScrollToTop,T=p.onMenuScrollToBottom;if(!F)return null;var B=function(ae,L){var m=ae.type,pe=ae.data,Y=ae.isDisabled,K=ae.isSelected,me=ae.label,ye=ae.value,Te=h===pe,X=Y?void 0:function(){return n.onOptionHover(pe)},je=Y?void 0:function(){return n.selectOption(pe)},Ae="".concat(n.getElementId("option"),"-").concat(L),P={id:Ae,onClick:je,onMouseMove:X,onMouseOver:X,tabIndex:-1,role:"option","aria-selected":n.isAppleDevice?void 0:K};return S.createElement(C,xe({},b,{innerProps:P,data:pe,isDisabled:Y,isSelected:K,key:Ae,label:me,type:m,value:ye,isFocused:Te,innerRef:Te?n.getFocusedOptionRef:void 0}),n.formatOptionLabel(ae.data,"menu"))},J;if(this.hasOptions())J=this.getCategorizedOptions().map(function(Z){if(Z.type==="group"){var ae=Z.data,L=Z.options,m=Z.index,pe="".concat(n.getElementId("group"),"-").concat(m),Y="".concat(pe,"-heading");return S.createElement(i,xe({},b,{key:pe,data:ae,options:L,Heading:l,headingProps:{id:Y,data:Z.data},label:n.formatGroupLabel(Z.data)}),Z.options.map(function(K){return B(K,"".concat(m,"-").concat(K.index))}))}else if(Z.type==="option")return B(Z,"".concat(Z.index))});else if(R){var ne=A({inputValue:E});if(ne===null)return null;J=S.createElement(f,b,ne)}else{var Ie=le({inputValue:E});if(Ie===null)return null;J=S.createElement(y,b,Ie)}var _={minMenuHeight:I,maxMenuHeight:j,menuPlacement:M,menuPosition:ie,menuShouldScrollIntoView:z},W=S.createElement(Yd,xe({},b,_),function(Z){var ae=Z.ref,L=Z.placerProps,m=L.placement,pe=L.maxHeight;return S.createElement(s,xe({},b,_,{innerRef:ae,innerProps:{onMouseDown:n.onMenuMouseDown,onMouseMove:n.onMenuMouseMove},isLoading:R,placement:m}),S.createElement(Ap,{captureEnabled:x,onTopArrive:G,onBottomArrive:T,lockEnabled:ce},function(Y){return S.createElement(c,xe({},b,{innerRef:function(me){n.getMenuListRef(me),Y(me)},innerProps:{role:"listbox","aria-multiselectable":b.isMulti,id:n.getElementId("listbox")},isLoading:R,maxHeight:pe,focusedOption:h}),J)}))});return re||ie==="fixed"?S.createElement(d,xe({},b,{appendTo:re,controlElement:this.controlRef,menuPlacement:M,menuPosition:ie}),W):W}},{key:"renderFormField",value:function(){var n=this,o=this.props,i=o.delimiter,l=o.isDisabled,s=o.isMulti,c=o.name,d=o.required,f=this.state.selectValue;if(d&&!this.hasValue()&&!l)return S.createElement(Np,{name:c,onFocus:this.onValueInputFocus});if(!(!c||l))if(s)if(i){var y=f.map(function(h){return n.getOptionValue(h)}).join(i);return S.createElement("input",{name:c,type:"hidden",value:y})}else{var C=f.length>0?f.map(function(h,p){return S.createElement("input",{key:"i-".concat(p),name:c,type:"hidden",value:n.getOptionValue(h)})}):S.createElement("input",{name:c,type:"hidden",value:""});return S.createElement("div",null,C)}else{var b=f[0]?this.getOptionValue(f[0]):"";return S.createElement("input",{name:c,type:"hidden",value:b})}}},{key:"renderLiveRegion",value:function(){var n=this.commonProps,o=this.state,i=o.ariaSelection,l=o.focusedOption,s=o.focusedValue,c=o.isFocused,d=o.selectValue,f=this.getFocusableOptions();return S.createElement(dp,xe({},n,{id:this.getElementId("live-region"),ariaSelection:i,focusedOption:l,focusedValue:s,isFocused:c,selectValue:d,focusableOptions:f,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var n=this.getComponents(),o=n.Control,i=n.IndicatorsContainer,l=n.SelectContainer,s=n.ValueContainer,c=this.props,d=c.className,f=c.id,y=c.isDisabled,C=c.menuIsOpen,b=this.state.isFocused,h=this.commonProps=this.getCommonProps();return S.createElement(l,xe({},h,{className:d,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:y,isFocused:b}),this.renderLiveRegion(),S.createElement(o,xe({},h,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:y,isFocused:b,menuIsOpen:C}),S.createElement(s,xe({},h,{isDisabled:y}),this.renderPlaceholderOrValue(),this.renderInput()),S.createElement(i,xe({},h,{isDisabled:y}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(n,o){var i=o.prevProps,l=o.clearFocusValueOnUpdate,s=o.inputIsHiddenAfterUpdate,c=o.ariaSelection,d=o.isFocused,f=o.prevWasFocused,y=o.instancePrefix,C=n.options,b=n.value,h=n.menuIsOpen,p=n.inputValue,x=n.isMulti,E=jo(b),R={};if(i&&(b!==i.value||C!==i.options||h!==i.menuIsOpen||p!==i.inputValue)){var A=h?Hp(n,E):[],I=h?Jo(fr(n,E),"".concat(y,"-option")):[],j=l?Zp(o,E):null,F=zp(o,A),M=Ur(I,F);R={selectValue:E,focusedOption:F,focusedOptionId:M,focusableOptionsWithIds:I,focusedValue:j,clearFocusValueOnUpdate:!1}}var ie=s!=null&&n!==i?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{},re=c,ce=d&&f;return d&&!ce&&(re={value:ir(x,E,E[0]||null),options:E,action:"initial-input-focus"},ce=!f),(c==null?void 0:c.action)==="initial-input-focus"&&(re=null),ve(ve(ve({},R),ie),{},{prevProps:n,ariaSelection:re,prevWasFocused:ce})}}]),r}(w.Component);xs.defaultProps=Xp;var Jp=w.forwardRef(function(e,t){var r=ic(e);return S.createElement(xs,xe({ref:t},r))}),Up=Jp;const Dn=({value:e,options:t,placeholder:r,onChange:a,className:n="text-xs md:text-sm",styles:o={},isSearchable:i=!1,"data-testid":l})=>{const s={control:(d,f)=>({...d,borderRadius:"0.5rem",borderColor:f.isFocused?"#171412":"#D7D3D0",boxShadow:"none","&:hover":{borderColor:"#171412"},minHeight:"2.5rem",height:"2.5rem",cursor:"pointer"}),valueContainer:d=>({...d,height:"2.5rem",padding:"0 0.875rem"}),input:d=>({...d,margin:0,padding:0}),indicatorsContainer:d=>({...d,height:"2.5rem"}),dropdownIndicator:d=>({...d,color:"#79716B","&:hover":{color:"#79716B"},svg:{strokeWidth:"0.01rem"}}),indicatorSeparator:()=>({display:"none"}),placeholder:d=>({...d,color:"#79716B"}),...o},c=d=>u.jsx(cs.Option,{...d,innerRef:d.innerRef,children:u.jsx("div",{"data-testid":`option-${d.data.value}`,children:d.data.label})});return u.jsx("div",{"data-testid":l,children:u.jsx(Up,{value:e,options:t,placeholder:r,onChange:a,className:n,styles:s,isSearchable:i,components:{Option:c}})})},Dt=S.forwardRef(({className:e,type:t,required:r,...a},n)=>(r&&(a.placeholder=a.placeholder+"*"),u.jsx("input",{type:t,className:Me("flex h-10 w-full rounded-lg border bg-transparent px-3.5 py-2.5 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-grayWarm-400 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-grayWarm-950 disabled:cursor-not-allowed disabled:opacity-50 border-grayWarm-300 focus:border-grayWarm-950 text-grayWarm-700 md:text-s",e),ref:n,...a})));Dt.displayName="Input";function $p(e,t=[]){let r=[];function a(o,i){const l=S.createContext(i),s=r.length;r=[...r,i];const c=f=>{var x;const{scope:y,children:C,...b}=f,h=((x=y==null?void 0:y[e])==null?void 0:x[s])||l,p=S.useMemo(()=>b,Object.values(b));return u.jsx(h.Provider,{value:p,children:C})};c.displayName=o+"Provider";function d(f,y){var h;const C=((h=y==null?void 0:y[e])==null?void 0:h[s])||l,b=S.useContext(C);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[c,d]}const n=()=>{const o=r.map(i=>S.createContext(i));return function(l){const s=(l==null?void 0:l[e])||o;return S.useMemo(()=>({[`__scope${e}`]:{...l,[e]:s}}),[l,s])}};return n.scopeName=e,[a,Qp(n,...t)]}function Qp(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const a=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(o){const i=a.reduce((l,{useScope:s,scopeName:c})=>{const f=s(o)[`__scope${c}`];return{...l,...f}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function $o(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e==null||e(n),r===!1||!n.defaultPrevented)return t==null?void 0:t(n)}}function Is(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...r)=>{var a;return(a=t.current)==null?void 0:a.call(t,...r)},[])}function Kp({prop:e,defaultProp:t,onChange:r=()=>{}}){const[a,n]=qp({defaultProp:t,onChange:r}),o=e!==void 0,i=o?e:a,l=Is(r),s=S.useCallback(c=>{if(o){const f=typeof c=="function"?c(e):c;f!==e&&l(f)}else n(c)},[o,e,n,l]);return[i,s]}function qp({defaultProp:e,onChange:t}){const r=S.useState(e),[a]=r,n=S.useRef(a),o=Is(t);return S.useEffect(()=>{n.current!==a&&(o(a),n.current=a)},[a,n,o]),r}function eg(e){const t=S.useRef({value:e,previous:e});return S.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var pa=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{};function tg(e){const[t,r]=S.useState(void 0);return pa(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const a=new ResizeObserver(n=>{if(!Array.isArray(n)||!n.length)return;const o=n[0];let i,l;if("borderBoxSize"in o){const s=o.borderBoxSize,c=Array.isArray(s)?s[0]:s;i=c.inlineSize,l=c.blockSize}else i=e.offsetWidth,l=e.offsetHeight;r({width:i,height:l})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else r(void 0)},[e]),t}function ng(e,t){return S.useReducer((r,a)=>t[r][a]??r,e)}var Ss=e=>{const{present:t,children:r}=e,a=rg(t),n=typeof r=="function"?r({present:a.isPresent}):S.Children.only(r),o=Ai(a.ref,ag(n));return typeof r=="function"||a.isPresent?S.cloneElement(n,{ref:o}):null};Ss.displayName="Presence";function rg(e){const[t,r]=S.useState(),a=S.useRef({}),n=S.useRef(e),o=S.useRef("none"),i=e?"mounted":"unmounted",[l,s]=ng(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const c=sr(a.current);o.current=l==="mounted"?c:"none"},[l]),pa(()=>{const c=a.current,d=n.current;if(d!==e){const y=o.current,C=sr(c);e?s("MOUNT"):C==="none"||(c==null?void 0:c.display)==="none"?s("UNMOUNT"):s(d&&y!==C?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,s]),pa(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,f=C=>{const h=sr(a.current).includes(C.animationName);if(C.target===t&&h&&(s("ANIMATION_END"),!n.current)){const p=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=p)})}},y=C=>{C.target===t&&(o.current=sr(a.current))};return t.addEventListener("animationstart",y),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",y),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:S.useCallback(c=>{c&&(a.current=getComputedStyle(c)),r(c)},[])}}function sr(e){return(e==null?void 0:e.animationName)||"none"}function ag(e){var a,n;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Va="Checkbox",[og]=$p(Va),[ig,sg]=og(Va),As=S.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:a,checked:n,defaultChecked:o,required:i,disabled:l,value:s="on",onCheckedChange:c,form:d,...f}=e,[y,C]=S.useState(null),b=Ai(t,A=>C(A)),h=S.useRef(!1),p=y?d||!!y.closest("form"):!0,[x=!1,E]=Kp({prop:n,defaultProp:o,onChange:c}),R=S.useRef(x);return S.useEffect(()=>{const A=y==null?void 0:y.form;if(A){const I=()=>E(R.current);return A.addEventListener("reset",I),()=>A.removeEventListener("reset",I)}},[y,E]),u.jsxs(ig,{scope:r,state:x,disabled:l,children:[u.jsx(Sa.button,{type:"button",role:"checkbox","aria-checked":en(x)?"mixed":x,"aria-required":i,"data-state":Rs(x),"data-disabled":l?"":void 0,disabled:l,value:s,...f,ref:b,onKeyDown:$o(e.onKeyDown,A=>{A.key==="Enter"&&A.preventDefault()}),onClick:$o(e.onClick,A=>{E(I=>en(I)?!0:!I),p&&(h.current=A.isPropagationStopped(),h.current||A.stopPropagation())})}),p&&u.jsx(lg,{control:y,bubbles:!h.current,name:a,value:s,checked:x,required:i,disabled:l,form:d,style:{transform:"translateX(-100%)"},defaultChecked:en(o)?!1:o})]})});As.displayName=Va;var ws="CheckboxIndicator",Es=S.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:a,...n}=e,o=sg(ws,r);return u.jsx(Ss,{present:a||en(o.state)||o.state===!0,children:u.jsx(Sa.span,{"data-state":Rs(o.state),"data-disabled":o.disabled?"":void 0,...n,ref:t,style:{pointerEvents:"none",...e.style}})})});Es.displayName=ws;var lg=e=>{const{control:t,checked:r,bubbles:a=!0,defaultChecked:n,...o}=e,i=S.useRef(null),l=eg(r),s=tg(t);S.useEffect(()=>{const d=i.current,f=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(f,"checked").set;if(l!==r&&C){const b=new Event("click",{bubbles:a});d.indeterminate=en(r),C.call(d,en(r)?!1:r),d.dispatchEvent(b)}},[l,r,a]);const c=S.useRef(en(r)?!1:r);return u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n??c.current,...o,tabIndex:-1,ref:i,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function en(e){return e==="indeterminate"}function Rs(e){return en(e)?"indeterminate":e?"checked":"unchecked"}var Ns=As,ug=Es;/**
49
+ `]))),Sf=function(t,r){var a=t.isFocused,n=t.size,o=t.theme,i=o.colors,l=o.spacing.baseUnit;return ye({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"},r?{}:{color:a?i.neutral60:i.neutral20,padding:l*2})},Zr=function(t){var r=t.delay,a=t.offset;return ge("span",{css:Oa({animation:"".concat(If," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:a?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cb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BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},Af=function(t){var r=t.innerProps,a=t.isRtl,n=t.size,o=n===void 0?4:n,i=Dt(t,pf);return ge("div",Ie({},qe(ye(ye({},i),{},{innerProps:r,isRtl:a,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),ge(Zr,{delay:0,offset:a}),ge(Zr,{delay:160,offset:!0}),ge(Zr,{delay:320,offset:!a}))},wf=function(t,r){var a=t.isDisabled,n=t.isFocused,o=t.theme,i=o.colors,l=o.borderRadius,s=o.spacing;return ye({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:a?i.neutral5:i.neutral0,borderColor:a?i.neutral10:n?i.primary:i.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:n?i.primary:i.neutral30}})},Ef=function(t){var r=t.children,a=t.isDisabled,n=t.isFocused,o=t.innerRef,i=t.innerProps,l=t.menuIsOpen;return ge("div",Ie({ref:o},qe(t,"control",{control:!0,"control--is-disabled":a,"control--is-focused":n,"control--menu-is-open":l}),i,{"aria-disabled":a||void 0}),r)},Rf=Ef,Nf=["data"],Gf=function(t,r){var a=t.theme.spacing;return r?{}:{paddingBottom:a.baseUnit*2,paddingTop:a.baseUnit*2}},Pf=function(t){var r=t.children,a=t.cx,n=t.getStyles,o=t.getClassNames,i=t.Heading,l=t.headingProps,s=t.innerProps,c=t.label,d=t.theme,g=t.selectProps;return ge("div",Ie({},qe(t,"group",{group:!0}),s),ge(i,Ie({},l,{selectProps:g,theme:d,getStyles:n,getClassNames:o,cx:a}),c),ge("div",null,r))},Tf=function(t,r){var a=t.theme,n=a.colors,o=a.spacing;return ye({label:"group",cursor:"default",display:"block"},r?{}:{color:n.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},Of=function(t){var r=qi(t);r.data;var a=Dt(r,Nf);return ge("div",Ie({},qe(t,"groupHeading",{"group-heading":!0}),a))},jf=Pf,Mf=["innerRef","isDisabled","isHidden","inputClassName"],kf=function(t,r){var a=t.isDisabled,n=t.value,o=t.theme,i=o.spacing,l=o.colors;return ye(ye({visibility:a?"hidden":"visible",transform:n?"translateZ(0)":""},Ff),r?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:l.neutral80})},ls={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Ff={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ye({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},ls)},Bf=function(t){return ye({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},ls)},Vf=function(t){var r=t.cx,a=t.value,n=qi(t),o=n.innerRef,i=n.isDisabled,l=n.isHidden,s=n.inputClassName,c=Dt(n,Mf);return ge("div",Ie({},qe(t,"input",{"input-container":!0}),{"data-value":a||""}),ge("input",Ie({className:r({input:!0},s),ref:o,style:Bf(l),disabled:i},c)))},_f=Vf,Df=function(t,r){var a=t.theme,n=a.spacing,o=a.borderRadius,i=a.colors;return ye({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:n.baseUnit/2})},Wf=function(t,r){var a=t.theme,n=a.borderRadius,o=a.colors,i=t.cropWithEllipsis;return ye({overflow:"hidden",textOverflow:i||i===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:n/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Lf=function(t,r){var a=t.theme,n=a.spacing,o=a.borderRadius,i=a.colors,l=t.isFocused;return ye({alignItems:"center",display:"flex"},r?{}:{borderRadius:o/2,backgroundColor:l?i.dangerLight:void 0,paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},us=function(t){var r=t.children,a=t.innerProps;return ge("div",a,r)},Xf=us,Hf=us;function Zf(e){var t=e.children,r=e.innerProps;return ge("div",Ie({role:"button"},r),t||ge(Fa,{size:14}))}var zf=function(t){var r=t.children,a=t.components,n=t.data,o=t.innerProps,i=t.isDisabled,l=t.removeProps,s=t.selectProps,c=a.Container,d=a.Label,g=a.Remove;return ge(c,{data:n,innerProps:ye(ye({},qe(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:s},ge(d,{data:n,innerProps:ye({},qe(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},r),ge(g,{data:n,innerProps:ye(ye({},qe(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},l),selectProps:s}))},Yf=zf,Jf=function(t,r){var a=t.isDisabled,n=t.isFocused,o=t.isSelected,i=t.theme,l=i.spacing,s=i.colors;return ye({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:o?s.primary:n?s.primary25:"transparent",color:a?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:a?void 0:o?s.primary:s.primary50}})},Uf=function(t){var r=t.children,a=t.isDisabled,n=t.isFocused,o=t.isSelected,i=t.innerRef,l=t.innerProps;return ge("div",Ie({},qe(t,"option",{option:!0,"option--is-disabled":a,"option--is-focused":n,"option--is-selected":o}),{ref:i,"aria-disabled":a},l),r)},$f=Uf,Kf=function(t,r){var a=t.theme,n=a.spacing,o=a.colors;return ye({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:o.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2})},Qf=function(t){var r=t.children,a=t.innerProps;return ge("div",Ie({},qe(t,"placeholder",{placeholder:!0}),a),r)},qf=Qf,ep=function(t,r){var a=t.isDisabled,n=t.theme,o=n.spacing,i=n.colors;return ye({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:a?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},tp=function(t){var r=t.children,a=t.isDisabled,n=t.innerProps;return ge("div",Ie({},qe(t,"singleValue",{"single-value":!0,"single-value--is-disabled":a}),n),r)},np=tp,cs={ClearIndicator:yf,Control:Rf,DropdownIndicator:hf,DownChevron:is,CrossIcon:Fa,Group:jf,GroupHeading:Of,IndicatorsContainer:df,IndicatorSeparator:xf,Input:_f,LoadingIndicator:Af,Menu:$d,MenuList:Qd,MenuPortal:af,LoadingMessage:nf,NoOptionsMessage:tf,MultiValue:Yf,MultiValueContainer:Xf,MultiValueLabel:Hf,MultiValueRemove:Zf,Option:$f,Placeholder:qf,SelectContainer:sf,SingleValue:np,ValueContainer:uf},rp=function(t){return ye(ye({},cs),t.components)},Bo=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function ap(e,t){return!!(e===t||Bo(e)&&Bo(t))}function op(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!ap(e[r],t[r]))return!1;return!0}function ip(e,t){t===void 0&&(t=op);var r=null;function a(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];if(r&&r.lastThis===this&&t(n,r.lastArgs))return r.lastResult;var i=e.apply(this,n);return r={lastResult:i,lastArgs:n,lastThis:this},i}return a.clear=function(){r=null},a}function sp(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var lp=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:sp},up=function(t){return ge("span",Ie({css:lp},t))},Vo=up,cp={guidance:function(t){var r=t.isSearchable,a=t.isMulti,n=t.tabSelectsValue,o=t.context,i=t.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(n?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(t["aria-label"]||"Select"," is focused ").concat(r?",type to refine list":"",", press Down to open the menu, ").concat(a?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var r=t.action,a=t.label,n=a===void 0?"":a,o=t.labels,i=t.isDisabled;switch(r){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return i?"option ".concat(n," is disabled. Select another option."):"option ".concat(n,", selected.");default:return""}},onFocus:function(t){var r=t.context,a=t.focused,n=t.options,o=t.label,i=o===void 0?"":o,l=t.selectValue,s=t.isDisabled,c=t.isSelected,d=t.isAppleDevice,g=function(h,p){return h&&h.length?"".concat(h.indexOf(p)+1," of ").concat(h.length):""};if(r==="value"&&l)return"value ".concat(i," focused, ").concat(g(l,a),".");if(r==="menu"&&d){var y=s?" disabled":"",x="".concat(c?" selected":"").concat(y);return"".concat(i).concat(x,", ").concat(g(n,a),".")}return""},onFilter:function(t){var r=t.inputValue,a=t.resultsMessage;return"".concat(a).concat(r?" for search term "+r:"",".")}},dp=function(t){var r=t.ariaSelection,a=t.focusedOption,n=t.focusedValue,o=t.focusableOptions,i=t.isFocused,l=t.selectValue,s=t.selectProps,c=t.id,d=t.isAppleDevice,g=s.ariaLiveMessages,y=s.getOptionLabel,x=s.inputValue,m=s.isMulti,h=s.isOptionDisabled,p=s.isSearchable,C=s.menuIsOpen,R=s.options,N=s.screenReaderStatus,A=s.tabSelectsValue,I=s.isLoading,M=s["aria-label"],_=s["aria-live"],B=E.useMemo(function(){return ye(ye({},cp),g||{})},[g]),se=E.useMemo(function(){var j="";if(r&&B.onChange){var k=r.option,J=r.options,pe=r.removedValue,ue=r.removedValues,D=r.value,L=function(K){return Array.isArray(K)?null:K},Y=pe||k||L(D),ie=Y?y(Y):"",X=J||ue||void 0,b=X?X.map(y):[],de=ye({isDisabled:Y&&h(Y,l),label:ie,labels:b},r);j=B.onChange(de)}return j},[r,B,h,l,y]),te=E.useMemo(function(){var j="",k=a||n,J=!!(a&&l&&l.includes(a));if(k&&B.onFocus){var pe={focused:k,label:y(k),isDisabled:h(k,l),isSelected:J,options:o,context:k===a?"menu":"value",selectValue:l,isAppleDevice:d};j=B.onFocus(pe)}return j},[a,n,y,h,B,o,l,d]),fe=E.useMemo(function(){var j="";if(C&&R.length&&!I&&B.onFilter){var k=N({count:o.length});j=B.onFilter({inputValue:x,resultsMessage:k})}return j},[o,x,C,B,R,N,I]),$=(r==null?void 0:r.action)==="initial-input-focus",ce=E.useMemo(function(){var j="";if(B.guidance){var k=n?"value":C?"menu":"input";j=B.guidance({"aria-label":M,context:k,isDisabled:a&&h(a,l),isMulti:m,isSearchable:p,tabSelectsValue:A,isInitialFocus:$})}return j},[M,a,n,m,h,p,C,B,l,A,$]),T=ge(E.Fragment,null,ge("span",{id:"aria-selection"},se),ge("span",{id:"aria-focused"},te),ge("span",{id:"aria-results"},fe),ge("span",{id:"aria-guidance"},ce));return ge(E.Fragment,null,ge(Vo,{id:c},$&&T),ge(Vo,{"aria-live":_,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!$&&T))},fp=dp,fa=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],pp=new RegExp("["+fa.map(function(e){return e.letters}).join("")+"]","g"),ds={};for(var zr=0;zr<fa.length;zr++)for(var Yr=fa[zr],Jr=0;Jr<Yr.letters.length;Jr++)ds[Yr.letters[Jr]]=Yr.base;var fs=function(t){return t.replace(pp,function(r){return ds[r]})},gp=ip(fs),_o=function(t){return t.replace(/^\s+|\s+$/g,"")},mp=function(t){return"".concat(t.label," ").concat(t.value)},bp=function(t){return function(r,a){if(r.data.__isNew__)return!0;var n=ye({ignoreCase:!0,ignoreAccents:!0,stringify:mp,trim:!0,matchFrom:"any"},t),o=n.ignoreCase,i=n.ignoreAccents,l=n.stringify,s=n.trim,c=n.matchFrom,d=s?_o(a):a,g=s?_o(l(r)):l(r);return o&&(d=d.toLowerCase(),g=g.toLowerCase()),i&&(d=gp(d),g=fs(g)),c==="start"?g.substr(0,d.length)===d:g.indexOf(d)>-1}},hp=["innerRef"];function vp(e){var t=e.innerRef,r=Dt(e,hp),a=Ld(r,"onExited","in","enter","exit","appear");return ge("input",Ie({ref:t},a,{css:Oa({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInN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hOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var yp=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function Cp(e){var t=e.isEnabled,r=e.onBottomArrive,a=e.onBottomLeave,n=e.onTopArrive,o=e.onTopLeave,i=E.useRef(!1),l=E.useRef(!1),s=E.useRef(0),c=E.useRef(null),d=E.useCallback(function(p,C){if(c.current!==null){var R=c.current,N=R.scrollTop,A=R.scrollHeight,I=R.clientHeight,M=c.current,_=C>0,B=A-I-N,se=!1;B>C&&i.current&&(a&&a(p),i.current=!1),_&&l.current&&(o&&o(p),l.current=!1),_&&C>B?(r&&!i.current&&r(p),M.scrollTop=A,se=!0,i.current=!0):!_&&-C>N&&(n&&!l.current&&n(p),M.scrollTop=0,se=!0,l.current=!0),se&&yp(p)}},[r,a,n,o]),g=E.useCallback(function(p){d(p,p.deltaY)},[d]),y=E.useCallback(function(p){s.current=p.changedTouches[0].clientY},[]),x=E.useCallback(function(p){var C=s.current-p.changedTouches[0].clientY;d(p,C)},[d]),m=E.useCallback(function(p){if(p){var C=_d?{passive:!1}:!1;p.addEventListener("wheel",g,C),p.addEventListener("touchstart",y,C),p.addEventListener("touchmove",x,C)}},[x,y,g]),h=E.useCallback(function(p){p&&(p.removeEventListener("wheel",g,!1),p.removeEventListener("touchstart",y,!1),p.removeEventListener("touchmove",x,!1))},[x,y,g]);return E.useEffect(function(){if(t){var p=c.current;return m(p),function(){h(p)}}},[t,m,h]),function(p){c.current=p}}var Do=["boxSizing","height","overflow","paddingRight","position"],Wo={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Lo(e){e.cancelable&&e.preventDefault()}function Xo(e){e.stopPropagation()}function Ho(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;e===0?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function Zo(){return"ontouchstart"in window||navigator.maxTouchPoints}var zo=!!(typeof window<"u"&&window.document&&window.document.createElement),kn=0,vn={capture:!1,passive:!1};function xp(e){var t=e.isEnabled,r=e.accountForScrollbars,a=r===void 0?!0:r,n=E.useRef({}),o=E.useRef(null),i=E.useCallback(function(s){if(zo){var c=document.body,d=c&&c.style;if(a&&Do.forEach(function(m){var h=d&&d[m];n.current[m]=h}),a&&kn<1){var g=parseInt(n.current.paddingRight,10)||0,y=document.body?document.body.clientWidth:0,x=window.innerWidth-y+g||0;Object.keys(Wo).forEach(function(m){var h=Wo[m];d&&(d[m]=h)}),d&&(d.paddingRight="".concat(x,"px"))}c&&Zo()&&(c.addEventListener("touchmove",Lo,vn),s&&(s.addEventListener("touchstart",Ho,vn),s.addEventListener("touchmove",Xo,vn))),kn+=1}},[a]),l=E.useCallback(function(s){if(zo){var c=document.body,d=c&&c.style;kn=Math.max(kn-1,0),a&&kn<1&&Do.forEach(function(g){var y=n.current[g];d&&(d[g]=y)}),c&&Zo()&&(c.removeEventListener("touchmove",Lo,vn),s&&(s.removeEventListener("touchstart",Ho,vn),s.removeEventListener("touchmove",Xo,vn)))}},[a]);return E.useEffect(function(){if(t){var s=o.current;return i(s),function(){l(s)}}},[t,i,l]),function(s){o.current=s}}function Ip(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Sp=function(t){var r=t.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},Ap=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5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Qm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:Ip};function wp(e){var t=e.children,r=e.lockEnabled,a=e.captureEnabled,n=a===void 0?!0:a,o=e.onBottomArrive,i=e.onBottomLeave,l=e.onTopArrive,s=e.onTopLeave,c=Cp({isEnabled:n,onBottomArrive:o,onBottomLeave:i,onTopArrive:l,onTopLeave:s}),d=xp({isEnabled:r}),g=function(x){c(x),d(x)};return ge(E.Fragment,null,r&&ge("div",{onClick:Sp,css:Ap}),t(g))}function Ep(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Rp=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:Ep},Np=function(t){var r=t.name,a=t.onFocus;return ge("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:a,css:Rp,value:"",onChange:function(){}})},Gp=Np;function Ba(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Pp(){return Ba(/^iPhone/i)}function ps(){return Ba(/^Mac/i)}function Tp(){return Ba(/^iPad/i)||ps()&&navigator.maxTouchPoints>1}function Op(){return Pp()||Tp()}function jp(){return ps()||Op()}var Mp=function(t){return t.label},kp=function(t){return t.label},Fp=function(t){return t.value},Bp=function(t){return!!t.isDisabled},Vp={clearIndicator:vf,container:of,control:wf,dropdownIndicator:bf,group:Gf,groupHeading:Tf,indicatorsContainer:cf,indicatorSeparator:Cf,input:kf,loadingIndicator:Sf,loadingMessage:ef,menu:Yd,menuList:Kd,menuPortal:rf,multiValue:Df,multiValueLabel:Wf,multiValueRemove:Lf,noOptionsMessage:qd,option:Jf,placeholder:Kf,singleValue:ep,valueContainer:lf},_p={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},Dp=4,gs=4,Wp=38,Lp=gs*2,Xp={baseUnit:gs,controlHeight:Wp,menuGutter:Lp},Ur={borderRadius:Dp,colors:_p,spacing:Xp},Hp={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ko(),captureMenuScroll:!ko(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:bp(),formatGroupLabel:Mp,getOptionLabel:kp,getOptionValue:Fp,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Bp,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Bd(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var r=t.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Yo(e,t,r,a){var n=hs(e,t,r),o=vs(e,t,r),i=bs(e,t),l=Ir(e,t);return{type:"option",data:t,isDisabled:n,isSelected:o,label:i,value:l,index:a}}function pr(e,t){return e.options.map(function(r,a){if("options"in r){var n=r.options.map(function(i,l){return Yo(e,i,t,l)}).filter(function(i){return Uo(e,i)});return n.length>0?{type:"group",data:r,options:n,index:a}:void 0}var o=Yo(e,r,t,a);return Uo(e,o)?o:void 0}).filter(Dd)}function ms(e){return e.reduce(function(t,r){return r.type==="group"?t.push.apply(t,Ra(r.options.map(function(a){return a.data}))):t.push(r.data),t},[])}function Jo(e,t){return e.reduce(function(r,a){return a.type==="group"?r.push.apply(r,Ra(a.options.map(function(n){return{data:n.data,id:"".concat(t,"-").concat(a.index,"-").concat(n.index)}}))):r.push({data:a.data,id:"".concat(t,"-").concat(a.index)}),r},[])}function Zp(e,t){return ms(pr(e,t))}function Uo(e,t){var r=e.inputValue,a=r===void 0?"":r,n=t.data,o=t.isSelected,i=t.label,l=t.value;return(!Cs(e)||!o)&&ys(e,{label:i,value:l,data:n},a)}function zp(e,t){var r=e.focusedValue,a=e.selectValue,n=a.indexOf(r);if(n>-1){var o=t.indexOf(r);if(o>-1)return r;if(n<t.length)return t[n]}return null}function Yp(e,t){var r=e.focusedOption;return r&&t.indexOf(r)>-1?r:t[0]}var $r=function(t,r){var a,n=(a=t.find(function(o){return o.data===r}))===null||a===void 0?void 0:a.id;return n||null},bs=function(t,r){return t.getOptionLabel(r)},Ir=function(t,r){return t.getOptionValue(r)};function hs(e,t,r){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,r):!1}function vs(e,t,r){if(r.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,r);var a=Ir(e,t);return r.some(function(n){return Ir(e,n)===a})}function ys(e,t,r){return e.filterOption?e.filterOption(t,r):!0}var Cs=function(t){var r=t.hideSelectedOptions,a=t.isMulti;return r===void 0?a:r},Jp=1,xs=function(e){cc(r,e);var t=pc(r);function r(a){var n;if(lc(this,r),n=t.call(this,a),n.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},n.blockOptionHover=!1,n.isComposing=!1,n.commonProps=void 0,n.initialTouchX=0,n.initialTouchY=0,n.openAfterFocus=!1,n.scrollToFocusedOptionOnUpdate=!1,n.userIsDragging=void 0,n.isAppleDevice=jp(),n.controlRef=null,n.getControlRef=function(s){n.controlRef=s},n.focusedOptionRef=null,n.getFocusedOptionRef=function(s){n.focusedOptionRef=s},n.menuListRef=null,n.getMenuListRef=function(s){n.menuListRef=s},n.inputRef=null,n.getInputRef=function(s){n.inputRef=s},n.focus=n.focusInput,n.blur=n.blurInput,n.onChange=function(s,c){var d=n.props,g=d.onChange,y=d.name;c.name=y,n.ariaOnChange(s,c),g(s,c)},n.setValue=function(s,c,d){var g=n.props,y=g.closeMenuOnSelect,x=g.isMulti,m=g.inputValue;n.onInputChange("",{action:"set-value",prevInputValue:m}),y&&(n.setState({inputIsHiddenAfterUpdate:!x}),n.onMenuClose()),n.setState({clearFocusValueOnUpdate:!0}),n.onChange(s,{action:c,option:d})},n.selectOption=function(s){var c=n.props,d=c.blurInputOnSelect,g=c.isMulti,y=c.name,x=n.state.selectValue,m=g&&n.isOptionSelected(s,x),h=n.isOptionDisabled(s,x);if(m){var p=n.getOptionValue(s);n.setValue(x.filter(function(C){return n.getOptionValue(C)!==p}),"deselect-option",s)}else if(!h)g?n.setValue([].concat(Ra(x),[s]),"select-option",s):n.setValue(s,"select-option");else{n.ariaOnChange(s,{action:"select-option",option:s,name:y});return}d&&n.blurInput()},n.removeValue=function(s){var c=n.props.isMulti,d=n.state.selectValue,g=n.getOptionValue(s),y=d.filter(function(m){return n.getOptionValue(m)!==g}),x=ir(c,y,y[0]||null);n.onChange(x,{action:"remove-value",removedValue:s}),n.focusInput()},n.clearValue=function(){var s=n.state.selectValue;n.onChange(ir(n.props.isMulti,[],null),{action:"clear",removedValues:s})},n.popValue=function(){var s=n.props.isMulti,c=n.state.selectValue,d=c[c.length-1],g=c.slice(0,c.length-1),y=ir(s,g,g[0]||null);d&&n.onChange(y,{action:"pop-value",removedValue:d})},n.getFocusedOptionId=function(s){return $r(n.state.focusableOptionsWithIds,s)},n.getFocusableOptionsWithIds=function(){return Jo(pr(n.props,n.state.selectValue),n.getElementId("option"))},n.getValue=function(){return n.state.selectValue},n.cx=function(){for(var s=arguments.length,c=new Array(s),d=0;d<s;d++)c[d]=arguments[d];return Od.apply(void 0,[n.props.classNamePrefix].concat(c))},n.getOptionLabel=function(s){return bs(n.props,s)},n.getOptionValue=function(s){return Ir(n.props,s)},n.getStyles=function(s,c){var d=n.props.unstyled,g=Vp[s](c,d);g.boxSizing="border-box";var y=n.props.styles[s];return y?y(g,c):g},n.getClassNames=function(s,c){var d,g;return(d=(g=n.props.classNames)[s])===null||d===void 0?void 0:d.call(g,c)},n.getElementId=function(s){return"".concat(n.state.instancePrefix,"-").concat(s)},n.getComponents=function(){return rp(n.props)},n.buildCategorizedOptions=function(){return pr(n.props,n.state.selectValue)},n.getCategorizedOptions=function(){return n.props.menuIsOpen?n.buildCategorizedOptions():[]},n.buildFocusableOptions=function(){return ms(n.buildCategorizedOptions())},n.getFocusableOptions=function(){return n.props.menuIsOpen?n.buildFocusableOptions():[]},n.ariaOnChange=function(s,c){n.setState({ariaSelection:ye({value:s},c)})},n.onMenuMouseDown=function(s){s.button===0&&(s.stopPropagation(),s.preventDefault(),n.focusInput())},n.onMenuMouseMove=function(s){n.blockOptionHover=!1},n.onControlMouseDown=function(s){if(!s.defaultPrevented){var c=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&n.onMenuClose():c&&n.openMenu("first"):(c&&(n.openAfterFocus=!0),n.focusInput()),s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&s.preventDefault()}},n.onDropdownIndicatorMouseDown=function(s){if(!(s&&s.type==="mousedown"&&s.button!==0)&&!n.props.isDisabled){var c=n.props,d=c.isMulti,g=c.menuIsOpen;n.focusInput(),g?(n.setState({inputIsHiddenAfterUpdate:!d}),n.onMenuClose()):n.openMenu("first"),s.preventDefault()}},n.onClearIndicatorMouseDown=function(s){s&&s.type==="mousedown"&&s.button!==0||(n.clearValue(),s.preventDefault(),n.openAfterFocus=!1,s.type==="touchend"?n.focusInput():setTimeout(function(){return n.focusInput()}))},n.onScroll=function(s){typeof n.props.closeMenuOnScroll=="boolean"?s.target instanceof HTMLElement&&Tr(s.target)&&n.props.onMenuClose():typeof n.props.closeMenuOnScroll=="function"&&n.props.closeMenuOnScroll(s)&&n.props.onMenuClose()},n.onCompositionStart=function(){n.isComposing=!0},n.onCompositionEnd=function(){n.isComposing=!1},n.onTouchStart=function(s){var c=s.touches,d=c&&c.item(0);d&&(n.initialTouchX=d.clientX,n.initialTouchY=d.clientY,n.userIsDragging=!1)},n.onTouchMove=function(s){var c=s.touches,d=c&&c.item(0);if(d){var g=Math.abs(d.clientX-n.initialTouchX),y=Math.abs(d.clientY-n.initialTouchY),x=5;n.userIsDragging=g>x||y>x}},n.onTouchEnd=function(s){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(s.target)&&n.menuListRef&&!n.menuListRef.contains(s.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)},n.onControlTouchEnd=function(s){n.userIsDragging||n.onControlMouseDown(s)},n.onClearIndicatorTouchEnd=function(s){n.userIsDragging||n.onClearIndicatorMouseDown(s)},n.onDropdownIndicatorTouchEnd=function(s){n.userIsDragging||n.onDropdownIndicatorMouseDown(s)},n.handleInputChange=function(s){var c=n.props.inputValue,d=s.currentTarget.value;n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange(d,{action:"input-change",prevInputValue:c}),n.props.menuIsOpen||n.onMenuOpen()},n.onInputFocus=function(s){n.props.onFocus&&n.props.onFocus(s),n.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1},n.onInputBlur=function(s){var c=n.props.inputValue;if(n.menuListRef&&n.menuListRef.contains(document.activeElement)){n.inputRef.focus();return}n.props.onBlur&&n.props.onBlur(s),n.onInputChange("",{action:"input-blur",prevInputValue:c}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1})},n.onOptionHover=function(s){if(!(n.blockOptionHover||n.state.focusedOption===s)){var c=n.getFocusableOptions(),d=c.indexOf(s);n.setState({focusedOption:s,focusedOptionId:d>-1?n.getFocusedOptionId(s):null})}},n.shouldHideSelectedOptions=function(){return Cs(n.props)},n.onValueInputFocus=function(s){s.preventDefault(),s.stopPropagation(),n.focus()},n.onKeyDown=function(s){var c=n.props,d=c.isMulti,g=c.backspaceRemovesValue,y=c.escapeClearsValue,x=c.inputValue,m=c.isClearable,h=c.isDisabled,p=c.menuIsOpen,C=c.onKeyDown,R=c.tabSelectsValue,N=c.openMenuOnFocus,A=n.state,I=A.focusedOption,M=A.focusedValue,_=A.selectValue;if(!h&&!(typeof C=="function"&&(C(s),s.defaultPrevented))){switch(n.blockOptionHover=!0,s.key){case"ArrowLeft":if(!d||x)return;n.focusValue("previous");break;case"ArrowRight":if(!d||x)return;n.focusValue("next");break;case"Delete":case"Backspace":if(x)return;if(M)n.removeValue(M);else{if(!g)return;d?n.popValue():m&&n.clearValue()}break;case"Tab":if(n.isComposing||s.shiftKey||!p||!R||!I||N&&n.isOptionSelected(I,_))return;n.selectOption(I);break;case"Enter":if(s.keyCode===229)break;if(p){if(!I||n.isComposing)return;n.selectOption(I);break}return;case"Escape":p?(n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange("",{action:"menu-close",prevInputValue:x}),n.onMenuClose()):m&&y&&n.clearValue();break;case" ":if(x)return;if(!p){n.openMenu("first");break}if(!I)return;n.selectOption(I);break;case"ArrowUp":p?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":p?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!p)return;n.focusOption("pageup");break;case"PageDown":if(!p)return;n.focusOption("pagedown");break;case"Home":if(!p)return;n.focusOption("first");break;case"End":if(!p)return;n.focusOption("last");break;default:return}s.preventDefault()}},n.state.instancePrefix="react-select-"+(n.props.instanceId||++Jp),n.state.selectValue=jo(a.value),a.menuIsOpen&&n.state.selectValue.length){var o=n.getFocusableOptionsWithIds(),i=n.buildFocusableOptions(),l=i.indexOf(n.state.selectValue[0]);n.state.focusableOptionsWithIds=o,n.state.focusedOption=i[l],n.state.focusedOptionId=$r(o,i[l])}return n}return uc(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Mo(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(n){var o=this.props,i=o.isDisabled,l=o.menuIsOpen,s=this.state.isFocused;(s&&!i&&n.isDisabled||s&&l&&!n.menuIsOpen)&&this.focusInput(),s&&i&&!n.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!s&&!i&&n.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Mo(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(n,o){this.props.onInputChange(n,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(n){var o=this,i=this.state,l=i.selectValue,s=i.isFocused,c=this.buildFocusableOptions(),d=n==="first"?0:c.length-1;if(!this.props.isMulti){var g=c.indexOf(l[0]);g>-1&&(d=g)}this.scrollToFocusedOptionOnUpdate=!(s&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:c[d],focusedOptionId:this.getFocusedOptionId(c[d])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(n){var o=this.state,i=o.selectValue,l=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var s=i.indexOf(l);l||(s=-1);var c=i.length-1,d=-1;if(i.length){switch(n){case"previous":s===0?d=0:s===-1?d=c:d=s-1;break;case"next":s>-1&&s<c&&(d=s+1);break}this.setState({inputIsHidden:d!==-1,focusedValue:i[d]})}}}},{key:"focusOption",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,i=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var s=0,c=l.indexOf(i);i||(c=-1),n==="up"?s=c>0?c-1:l.length-1:n==="down"?s=(c+1)%l.length:n==="pageup"?(s=c-o,s<0&&(s=0)):n==="pagedown"?(s=c+o,s>l.length-1&&(s=l.length-1)):n==="last"&&(s=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[s],focusedValue:null,focusedOptionId:this.getFocusedOptionId(l[s])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Ur):ye(ye({},Ur),this.props.theme):Ur}},{key:"getCommonProps",value:function(){var n=this.clearValue,o=this.cx,i=this.getStyles,l=this.getClassNames,s=this.getValue,c=this.selectOption,d=this.setValue,g=this.props,y=g.isMulti,x=g.isRtl,m=g.options,h=this.hasValue();return{clearValue:n,cx:o,getStyles:i,getClassNames:l,getValue:s,hasValue:h,isMulti:y,isRtl:x,options:m,selectOption:c,selectProps:g,setValue:d,theme:this.getTheme()}}},{key:"hasValue",value:function(){var n=this.state.selectValue;return n.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var n=this.props,o=n.isClearable,i=n.isMulti;return o===void 0?i:o}},{key:"isOptionDisabled",value:function(n,o){return hs(this.props,n,o)}},{key:"isOptionSelected",value:function(n,o){return vs(this.props,n,o)}},{key:"filterOption",value:function(n,o){return ys(this.props,n,o)}},{key:"formatOptionLabel",value:function(n,o){if(typeof this.props.formatOptionLabel=="function"){var i=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(n,{context:o,inputValue:i,selectValue:l})}else return this.getOptionLabel(n)}},{key:"formatGroupLabel",value:function(n){return this.props.formatGroupLabel(n)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var n=this.props,o=n.isDisabled,i=n.isSearchable,l=n.inputId,s=n.inputValue,c=n.tabIndex,d=n.form,g=n.menuIsOpen,y=n.required,x=this.getComponents(),m=x.Input,h=this.state,p=h.inputIsHidden,C=h.ariaSelection,R=this.commonProps,N=l||this.getElementId("input"),A=ye(ye(ye({"aria-autocomplete":"list","aria-expanded":g,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":y,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},g&&{"aria-controls":this.getElementId("listbox")}),!i&&{"aria-readonly":!0}),this.hasValue()?(C==null?void 0:C.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return i?S.createElement(m,Ie({},R,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:N,innerRef:this.getInputRef,isDisabled:o,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:c,form:d,type:"text",value:s},A)):S.createElement(vp,Ie({id:N,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Cr,onFocus:this.onInputFocus,disabled:o,tabIndex:c,inputMode:"none",form:d,value:""},A))}},{key:"renderPlaceholderOrValue",value:function(){var n=this,o=this.getComponents(),i=o.MultiValue,l=o.MultiValueContainer,s=o.MultiValueLabel,c=o.MultiValueRemove,d=o.SingleValue,g=o.Placeholder,y=this.commonProps,x=this.props,m=x.controlShouldRenderValue,h=x.isDisabled,p=x.isMulti,C=x.inputValue,R=x.placeholder,N=this.state,A=N.selectValue,I=N.focusedValue,M=N.isFocused;if(!this.hasValue()||!m)return C?null:S.createElement(g,Ie({},y,{key:"placeholder",isDisabled:h,isFocused:M,innerProps:{id:this.getElementId("placeholder")}}),R);if(p)return A.map(function(B,se){var te=B===I,fe="".concat(n.getOptionLabel(B),"-").concat(n.getOptionValue(B));return S.createElement(i,Ie({},y,{components:{Container:l,Label:s,Remove:c},isFocused:te,isDisabled:h,key:fe,index:se,removeProps:{onClick:function(){return n.removeValue(B)},onTouchEnd:function(){return n.removeValue(B)},onMouseDown:function(ce){ce.preventDefault()}},data:B}),n.formatOptionLabel(B,"value"))});if(C)return null;var _=A[0];return S.createElement(d,Ie({},y,{data:_,isDisabled:h}),this.formatOptionLabel(_,"value"))}},{key:"renderClearIndicator",value:function(){var n=this.getComponents(),o=n.ClearIndicator,i=this.commonProps,l=this.props,s=l.isDisabled,c=l.isLoading,d=this.state.isFocused;if(!this.isClearable()||!o||s||!this.hasValue()||c)return null;var g={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return S.createElement(o,Ie({},i,{innerProps:g,isFocused:d}))}},{key:"renderLoadingIndicator",value:function(){var n=this.getComponents(),o=n.LoadingIndicator,i=this.commonProps,l=this.props,s=l.isDisabled,c=l.isLoading,d=this.state.isFocused;if(!o||!c)return null;var g={"aria-hidden":"true"};return S.createElement(o,Ie({},i,{innerProps:g,isDisabled:s,isFocused:d}))}},{key:"renderIndicatorSeparator",value:function(){var n=this.getComponents(),o=n.DropdownIndicator,i=n.IndicatorSeparator;if(!o||!i)return null;var l=this.commonProps,s=this.props.isDisabled,c=this.state.isFocused;return S.createElement(i,Ie({},l,{isDisabled:s,isFocused:c}))}},{key:"renderDropdownIndicator",value:function(){var n=this.getComponents(),o=n.DropdownIndicator;if(!o)return null;var i=this.commonProps,l=this.props.isDisabled,s=this.state.isFocused,c={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return S.createElement(o,Ie({},i,{innerProps:c,isDisabled:l,isFocused:s}))}},{key:"renderMenu",value:function(){var n=this,o=this.getComponents(),i=o.Group,l=o.GroupHeading,s=o.Menu,c=o.MenuList,d=o.MenuPortal,g=o.LoadingMessage,y=o.NoOptionsMessage,x=o.Option,m=this.commonProps,h=this.state.focusedOption,p=this.props,C=p.captureMenuScroll,R=p.inputValue,N=p.isLoading,A=p.loadingMessage,I=p.minMenuHeight,M=p.maxMenuHeight,_=p.menuIsOpen,B=p.menuPlacement,se=p.menuPosition,te=p.menuPortalTarget,fe=p.menuShouldBlockScroll,$=p.menuShouldScrollIntoView,ce=p.noOptionsMessage,T=p.onMenuScrollToTop,j=p.onMenuScrollToBottom;if(!_)return null;var k=function(ie,X){var b=ie.type,de=ie.data,Z=ie.isDisabled,K=ie.isSelected,me=ie.label,we=ie.value,Ge=h===de,z=Z?void 0:function(){return n.onOptionHover(de)},Fe=Z?void 0:function(){return n.selectOption(de)},Pe="".concat(n.getElementId("option"),"-").concat(X),P={id:Pe,onClick:Fe,onMouseMove:z,onMouseOver:z,tabIndex:-1,role:"option","aria-selected":n.isAppleDevice?void 0:K};return S.createElement(x,Ie({},m,{innerProps:P,data:de,isDisabled:Z,isSelected:K,key:Pe,label:me,type:b,value:we,isFocused:Ge,innerRef:Ge?n.getFocusedOptionRef:void 0}),n.formatOptionLabel(ie.data,"menu"))},J;if(this.hasOptions())J=this.getCategorizedOptions().map(function(Y){if(Y.type==="group"){var ie=Y.data,X=Y.options,b=Y.index,de="".concat(n.getElementId("group"),"-").concat(b),Z="".concat(de,"-heading");return S.createElement(i,Ie({},m,{key:de,data:ie,options:X,Heading:l,headingProps:{id:Z,data:Y.data},label:n.formatGroupLabel(Y.data)}),Y.options.map(function(K){return k(K,"".concat(b,"-").concat(K.index))}))}else if(Y.type==="option")return k(Y,"".concat(Y.index))});else if(N){var pe=A({inputValue:R});if(pe===null)return null;J=S.createElement(g,m,pe)}else{var ue=ce({inputValue:R});if(ue===null)return null;J=S.createElement(y,m,ue)}var D={minMenuHeight:I,maxMenuHeight:M,menuPlacement:B,menuPosition:se,menuShouldScrollIntoView:$},L=S.createElement(Jd,Ie({},m,D),function(Y){var ie=Y.ref,X=Y.placerProps,b=X.placement,de=X.maxHeight;return S.createElement(s,Ie({},m,D,{innerRef:ie,innerProps:{onMouseDown:n.onMenuMouseDown,onMouseMove:n.onMenuMouseMove},isLoading:N,placement:b}),S.createElement(wp,{captureEnabled:C,onTopArrive:T,onBottomArrive:j,lockEnabled:fe},function(Z){return S.createElement(c,Ie({},m,{innerRef:function(me){n.getMenuListRef(me),Z(me)},innerProps:{role:"listbox","aria-multiselectable":m.isMulti,id:n.getElementId("listbox")},isLoading:N,maxHeight:de,focusedOption:h}),J)}))});return te||se==="fixed"?S.createElement(d,Ie({},m,{appendTo:te,controlElement:this.controlRef,menuPlacement:B,menuPosition:se}),L):L}},{key:"renderFormField",value:function(){var n=this,o=this.props,i=o.delimiter,l=o.isDisabled,s=o.isMulti,c=o.name,d=o.required,g=this.state.selectValue;if(d&&!this.hasValue()&&!l)return S.createElement(Gp,{name:c,onFocus:this.onValueInputFocus});if(!(!c||l))if(s)if(i){var y=g.map(function(h){return n.getOptionValue(h)}).join(i);return S.createElement("input",{name:c,type:"hidden",value:y})}else{var x=g.length>0?g.map(function(h,p){return S.createElement("input",{key:"i-".concat(p),name:c,type:"hidden",value:n.getOptionValue(h)})}):S.createElement("input",{name:c,type:"hidden",value:""});return S.createElement("div",null,x)}else{var m=g[0]?this.getOptionValue(g[0]):"";return S.createElement("input",{name:c,type:"hidden",value:m})}}},{key:"renderLiveRegion",value:function(){var n=this.commonProps,o=this.state,i=o.ariaSelection,l=o.focusedOption,s=o.focusedValue,c=o.isFocused,d=o.selectValue,g=this.getFocusableOptions();return S.createElement(fp,Ie({},n,{id:this.getElementId("live-region"),ariaSelection:i,focusedOption:l,focusedValue:s,isFocused:c,selectValue:d,focusableOptions:g,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var n=this.getComponents(),o=n.Control,i=n.IndicatorsContainer,l=n.SelectContainer,s=n.ValueContainer,c=this.props,d=c.className,g=c.id,y=c.isDisabled,x=c.menuIsOpen,m=this.state.isFocused,h=this.commonProps=this.getCommonProps();return S.createElement(l,Ie({},h,{className:d,innerProps:{id:g,onKeyDown:this.onKeyDown},isDisabled:y,isFocused:m}),this.renderLiveRegion(),S.createElement(o,Ie({},h,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:y,isFocused:m,menuIsOpen:x}),S.createElement(s,Ie({},h,{isDisabled:y}),this.renderPlaceholderOrValue(),this.renderInput()),S.createElement(i,Ie({},h,{isDisabled:y}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(n,o){var i=o.prevProps,l=o.clearFocusValueOnUpdate,s=o.inputIsHiddenAfterUpdate,c=o.ariaSelection,d=o.isFocused,g=o.prevWasFocused,y=o.instancePrefix,x=n.options,m=n.value,h=n.menuIsOpen,p=n.inputValue,C=n.isMulti,R=jo(m),N={};if(i&&(m!==i.value||x!==i.options||h!==i.menuIsOpen||p!==i.inputValue)){var A=h?Zp(n,R):[],I=h?Jo(pr(n,R),"".concat(y,"-option")):[],M=l?zp(o,R):null,_=Yp(o,A),B=$r(I,_);N={selectValue:R,focusedOption:_,focusedOptionId:B,focusableOptionsWithIds:I,focusedValue:M,clearFocusValueOnUpdate:!1}}var se=s!=null&&n!==i?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{},te=c,fe=d&&g;return d&&!fe&&(te={value:ir(C,R,R[0]||null),options:R,action:"initial-input-focus"},fe=!g),(c==null?void 0:c.action)==="initial-input-focus"&&(te=null),ye(ye(ye({},N),se),{},{prevProps:n,ariaSelection:te,prevWasFocused:fe})}}]),r}(E.Component);xs.defaultProps=Hp;var Up=E.forwardRef(function(e,t){var r=sc(e);return S.createElement(xs,Ie({ref:t},r))}),$p=Up;const Wn=({value:e,options:t,placeholder:r,onChange:a,className:n="text-xs md:text-sm",styles:o={},isSearchable:i=!1,"data-testid":l})=>{const s={control:(d,g)=>({...d,borderRadius:"0.5rem",borderColor:g.isFocused?"#171412":"#D7D3D0",boxShadow:"none","&:hover":{borderColor:"#171412"},minHeight:"2.5rem",height:"2.5rem",cursor:"pointer"}),valueContainer:d=>({...d,height:"2.5rem",padding:"0 0.875rem"}),input:d=>({...d,margin:0,padding:0}),indicatorsContainer:d=>({...d,height:"2.5rem"}),dropdownIndicator:d=>({...d,color:"#79716B","&:hover":{color:"#79716B"},svg:{strokeWidth:"0.01rem"}}),indicatorSeparator:()=>({display:"none"}),placeholder:d=>({...d,color:"#79716B"}),...o},c=d=>u.jsx(cs.Option,{...d,innerRef:d.innerRef,children:u.jsx("div",{"data-testid":`option-${d.data.value}`,children:d.data.label})});return u.jsx("div",{"data-testid":l,children:u.jsx($p,{value:e,options:t,placeholder:r,onChange:a,className:n,styles:s,isSearchable:i,components:{Option:c}})})},Ft=S.forwardRef(({className:e,type:t,required:r,...a},n)=>(r&&(a.placeholder=a.placeholder+"*"),u.jsx("input",{type:t,className:Oe("flex h-10 w-full rounded-lg border bg-transparent px-3.5 py-2.5 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-grayWarm-400 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-grayWarm-950 disabled:cursor-not-allowed disabled:opacity-50 border-grayWarm-300 focus:border-grayWarm-950 text-grayWarm-700 md:text-s",e),ref:n,...a})));Ft.displayName="Input";function Kp(e,t=[]){let r=[];function a(o,i){const l=S.createContext(i),s=r.length;r=[...r,i];const c=g=>{var C;const{scope:y,children:x,...m}=g,h=((C=y==null?void 0:y[e])==null?void 0:C[s])||l,p=S.useMemo(()=>m,Object.values(m));return u.jsx(h.Provider,{value:p,children:x})};c.displayName=o+"Provider";function d(g,y){var h;const x=((h=y==null?void 0:y[e])==null?void 0:h[s])||l,m=S.useContext(x);if(m)return m;if(i!==void 0)return i;throw new Error(`\`${g}\` must be used within \`${o}\``)}return[c,d]}const n=()=>{const o=r.map(i=>S.createContext(i));return function(l){const s=(l==null?void 0:l[e])||o;return S.useMemo(()=>({[`__scope${e}`]:{...l,[e]:s}}),[l,s])}};return n.scopeName=e,[a,Qp(n,...t)]}function Qp(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const a=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(o){const i=a.reduce((l,{useScope:s,scopeName:c})=>{const g=s(o)[`__scope${c}`];return{...l,...g}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function $o(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e==null||e(n),r===!1||!n.defaultPrevented)return t==null?void 0:t(n)}}function Is(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...r)=>{var a;return(a=t.current)==null?void 0:a.call(t,...r)},[])}function qp({prop:e,defaultProp:t,onChange:r=()=>{}}){const[a,n]=eg({defaultProp:t,onChange:r}),o=e!==void 0,i=o?e:a,l=Is(r),s=S.useCallback(c=>{if(o){const g=typeof c=="function"?c(e):c;g!==e&&l(g)}else n(c)},[o,e,n,l]);return[i,s]}function eg({defaultProp:e,onChange:t}){const r=S.useState(e),[a]=r,n=S.useRef(a),o=Is(t);return S.useEffect(()=>{n.current!==a&&(o(a),n.current=a)},[a,n,o]),r}function tg(e){const t=S.useRef({value:e,previous:e});return S.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var pa=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{};function ng(e){const[t,r]=S.useState(void 0);return pa(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const a=new ResizeObserver(n=>{if(!Array.isArray(n)||!n.length)return;const o=n[0];let i,l;if("borderBoxSize"in o){const s=o.borderBoxSize,c=Array.isArray(s)?s[0]:s;i=c.inlineSize,l=c.blockSize}else i=e.offsetWidth,l=e.offsetHeight;r({width:i,height:l})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else r(void 0)},[e]),t}function rg(e,t){return S.useReducer((r,a)=>t[r][a]??r,e)}var Ss=e=>{const{present:t,children:r}=e,a=ag(t),n=typeof r=="function"?r({present:a.isPresent}):S.Children.only(r),o=Ai(a.ref,og(n));return typeof r=="function"||a.isPresent?S.cloneElement(n,{ref:o}):null};Ss.displayName="Presence";function ag(e){const[t,r]=S.useState(),a=S.useRef({}),n=S.useRef(e),o=S.useRef("none"),i=e?"mounted":"unmounted",[l,s]=rg(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const c=sr(a.current);o.current=l==="mounted"?c:"none"},[l]),pa(()=>{const c=a.current,d=n.current;if(d!==e){const y=o.current,x=sr(c);e?s("MOUNT"):x==="none"||(c==null?void 0:c.display)==="none"?s("UNMOUNT"):s(d&&y!==x?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,s]),pa(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,g=x=>{const h=sr(a.current).includes(x.animationName);if(x.target===t&&h&&(s("ANIMATION_END"),!n.current)){const p=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=p)})}},y=x=>{x.target===t&&(o.current=sr(a.current))};return t.addEventListener("animationstart",y),t.addEventListener("animationcancel",g),t.addEventListener("animationend",g),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",y),t.removeEventListener("animationcancel",g),t.removeEventListener("animationend",g)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:S.useCallback(c=>{c&&(a.current=getComputedStyle(c)),r(c)},[])}}function sr(e){return(e==null?void 0:e.animationName)||"none"}function og(e){var a,n;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Va="Checkbox",[ig]=Kp(Va),[sg,lg]=ig(Va),As=S.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:a,checked:n,defaultChecked:o,required:i,disabled:l,value:s="on",onCheckedChange:c,form:d,...g}=e,[y,x]=S.useState(null),m=Ai(t,A=>x(A)),h=S.useRef(!1),p=y?d||!!y.closest("form"):!0,[C=!1,R]=qp({prop:n,defaultProp:o,onChange:c}),N=S.useRef(C);return S.useEffect(()=>{const A=y==null?void 0:y.form;if(A){const I=()=>R(N.current);return A.addEventListener("reset",I),()=>A.removeEventListener("reset",I)}},[y,R]),u.jsxs(sg,{scope:r,state:C,disabled:l,children:[u.jsx(Sa.button,{type:"button",role:"checkbox","aria-checked":Kt(C)?"mixed":C,"aria-required":i,"data-state":Rs(C),"data-disabled":l?"":void 0,disabled:l,value:s,...g,ref:m,onKeyDown:$o(e.onKeyDown,A=>{A.key==="Enter"&&A.preventDefault()}),onClick:$o(e.onClick,A=>{R(I=>Kt(I)?!0:!I),p&&(h.current=A.isPropagationStopped(),h.current||A.stopPropagation())})}),p&&u.jsx(ug,{control:y,bubbles:!h.current,name:a,value:s,checked:C,required:i,disabled:l,form:d,style:{transform:"translateX(-100%)"},defaultChecked:Kt(o)?!1:o})]})});As.displayName=Va;var ws="CheckboxIndicator",Es=S.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:a,...n}=e,o=lg(ws,r);return u.jsx(Ss,{present:a||Kt(o.state)||o.state===!0,children:u.jsx(Sa.span,{"data-state":Rs(o.state),"data-disabled":o.disabled?"":void 0,...n,ref:t,style:{pointerEvents:"none",...e.style}})})});Es.displayName=ws;var ug=e=>{const{control:t,checked:r,bubbles:a=!0,defaultChecked:n,...o}=e,i=S.useRef(null),l=tg(r),s=ng(t);S.useEffect(()=>{const d=i.current,g=window.HTMLInputElement.prototype,x=Object.getOwnPropertyDescriptor(g,"checked").set;if(l!==r&&x){const m=new Event("click",{bubbles:a});d.indeterminate=Kt(r),x.call(d,Kt(r)?!1:r),d.dispatchEvent(m)}},[l,r,a]);const c=S.useRef(Kt(r)?!1:r);return u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n??c.current,...o,tabIndex:-1,ref:i,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Kt(e){return e==="indeterminate"}function Rs(e){return Kt(e)?"indeterminate":e?"checked":"unchecked"}var Ns=As,cg=Es;/**
50
50
  * @license lucide-react v0.456.0 - ISC
51
51
  *
52
52
  * This source code is licensed under the ISC license.
53
53
  * See the LICENSE file in the root directory of this source tree.
54
- */const cg=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Gs=(...e)=>e.filter((t,r,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===r).join(" ").trim();/**
54
+ */const dg=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Gs=(...e)=>e.filter((t,r,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===r).join(" ").trim();/**
55
55
  * @license lucide-react v0.456.0 - ISC
56
56
  *
57
57
  * This source code is licensed under the ISC license.
58
58
  * See the LICENSE file in the root directory of this source tree.
59
- */var dg={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
59
+ */var fg={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
60
60
  * @license lucide-react v0.456.0 - ISC
61
61
  *
62
62
  * This source code is licensed under the ISC license.
63
63
  * See the LICENSE file in the root directory of this source tree.
64
- */const fg=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:n="",children:o,iconNode:i,...l},s)=>w.createElement("svg",{ref:s,...dg,width:t,height:t,stroke:e,strokeWidth:a?Number(r)*24/Number(t):r,className:Gs("lucide",n),...l},[...i.map(([c,d])=>w.createElement(c,d)),...Array.isArray(o)?o:[o]]));/**
64
+ */const pg=E.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:n="",children:o,iconNode:i,...l},s)=>E.createElement("svg",{ref:s,...fg,width:t,height:t,stroke:e,strokeWidth:a?Number(r)*24/Number(t):r,className:Gs("lucide",n),...l},[...i.map(([c,d])=>E.createElement(c,d)),...Array.isArray(o)?o:[o]]));/**
65
65
  * @license lucide-react v0.456.0 - ISC
66
66
  *
67
67
  * This source code is licensed under the ISC license.
68
68
  * See the LICENSE file in the root directory of this source tree.
69
- */const Hn=(e,t)=>{const r=w.forwardRef(({className:a,...n},o)=>w.createElement(fg,{ref:o,iconNode:t,className:Gs(`lucide-${cg(e)}`,a),...n}));return r.displayName=`${e}`,r};/**
69
+ */const Hn=(e,t)=>{const r=E.forwardRef(({className:a,...n},o)=>E.createElement(pg,{ref:o,iconNode:t,className:Gs(`lucide-${dg(e)}`,a),...n}));return r.displayName=`${e}`,r};/**
70
70
  * @license lucide-react v0.456.0 - ISC
71
71
  *
72
72
  * This source code is licensed under the ISC license.
73
73
  * See the LICENSE file in the root directory of this source tree.
74
- */const pg=Hn("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
74
+ */const gg=Hn("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
75
75
  * @license lucide-react v0.456.0 - ISC
76
76
  *
77
77
  * This source code is licensed under the ISC license.
78
78
  * See the LICENSE file in the root directory of this source tree.
79
- */const gg=Hn("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
79
+ */const mg=Hn("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
80
80
  * @license lucide-react v0.456.0 - ISC
81
81
  *
82
82
  * This source code is licensed under the ISC license.
83
83
  * See the LICENSE file in the root directory of this source tree.
84
- */const mg=Hn("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
84
+ */const bg=Hn("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
85
85
  * @license lucide-react v0.456.0 - ISC
86
86
  *
87
87
  * This source code is licensed under the ISC license.
88
88
  * See the LICENSE file in the root directory of this source tree.
89
- */const bg=Hn("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
89
+ */const hg=Hn("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
90
90
  * @license lucide-react v0.456.0 - ISC
91
91
  *
92
92
  * This source code is licensed under the ISC license.
93
93
  * See the LICENSE file in the root directory of this source tree.
94
- */const hg=Hn("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Ps=S.forwardRef(({className:e,...t},r)=>u.jsx(Ns,{ref:r,className:Me("peer h-4 w-4 shrink-0 rounded-sm border border-primary border-grayWarm-300 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:u.jsx(ug,{className:Me("flex items-center justify-center text-current"),children:u.jsx(pg,{className:"h-4 w-4"})})}));Ps.displayName=Ns.displayName;const _a=S.forwardRef(({variant:e="default",size:t="sm",className:r,children:a,...n},o)=>{const i={success:"bg-success-100 text-success-800",error:"bg-error-100 text-error-700",warning:"bg-warning-100 text-warning-700",info:"bg-blueDark-100 text-blueDark-800",default:"bg-grayWarm-100 text-grayWarm-700"},l={sm:"px-2 py-0.5 text-xs",md:"px-2.5 py-1 text-sm"};return u.jsx("span",{ref:o,className:Me("inline-flex items-center font-medium rounded-full",i[e],l[t],r),...n,children:a})});_a.displayName="Badge";const Ts=S.forwardRef(({variant:e="ghost",size:t="md",className:r,children:a,...n},o)=>{const i={ghost:"bg-transparent hover:bg-grayWarm-100",outline:"bg-white border border-grayWarm-200 hover:bg-grayWarm-50",default:"bg-grayWarm-100 hover:bg-grayWarm-200"},l={sm:"w-8 h-8",md:"w-10 h-10",lg:"w-12 h-12"};return u.jsx("button",{ref:o,className:Me("inline-flex items-center justify-center rounded-lg transition-colors focus:outline-none",i[e],l[t],r),...n,children:a})});Ts.displayName="IconButton";function vg(e,t=[]){let r=[];function a(o,i){const l=S.createContext(i);l.displayName=o+"Context";const s=r.length;r=[...r,i];const c=f=>{var x;const{scope:y,children:C,...b}=f,h=((x=y==null?void 0:y[e])==null?void 0:x[s])||l,p=S.useMemo(()=>b,Object.values(b));return u.jsx(h.Provider,{value:p,children:C})};c.displayName=o+"Provider";function d(f,y){var h;const C=((h=y==null?void 0:y[e])==null?void 0:h[s])||l,b=S.useContext(C);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[c,d]}const n=()=>{const o=r.map(i=>S.createContext(i));return function(l){const s=(l==null?void 0:l[e])||o;return S.useMemo(()=>({[`__scope${e}`]:{...l,[e]:s}}),[l,s])}};return n.scopeName=e,[a,yg(n,...t)]}function yg(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const a=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(o){const i=a.reduce((l,{useScope:s,scopeName:c})=>{const f=s(o)[`__scope${c}`];return{...l,...f}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function Os(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...r)=>{var a;return(a=t.current)==null?void 0:a.call(t,...r)},[])}var Sn=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{};function Qo(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Da(...e){return t=>{let r=!1;const a=e.map(n=>{const o=Qo(n,t);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let n=0;n<a.length;n++){const o=a[n];typeof o=="function"?o():Qo(e[n],null)}}}}function Wn(...e){return S.useCallback(Da(...e),e)}var Cg=Symbol.for("react.lazy"),Ir=S[" use ".trim().toString()];function xg(e){return typeof e=="object"&&e!==null&&"then"in e}function js(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Cg&&"_payload"in e&&xg(e._payload)}function Ig(e){const t=Sg(e),r=S.forwardRef((a,n)=>{let{children:o,...i}=a;js(o)&&typeof Ir=="function"&&(o=Ir(o._payload));const l=S.Children.toArray(o),s=l.find(wg);if(s){const c=s.props.children,d=l.map(f=>f===s?S.Children.count(c)>1?S.Children.only(null):S.isValidElement(c)?c.props.children:null:f);return u.jsx(t,{...i,ref:n,children:S.isValidElement(c)?S.cloneElement(c,void 0,d):null})}return u.jsx(t,{...i,ref:n,children:o})});return r.displayName=`${e}.Slot`,r}function Sg(e){const t=S.forwardRef((r,a)=>{let{children:n,...o}=r;if(js(n)&&typeof Ir=="function"&&(n=Ir(n._payload)),S.isValidElement(n)){const i=Rg(n),l=Eg(o,n.props);return n.type!==S.Fragment&&(l.ref=a?Da(a,i):i),S.cloneElement(n,l)}return S.Children.count(n)>1?S.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ag=Symbol("radix.slottable");function wg(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ag}function Eg(e,t){const r={...t};for(const a in t){const n=e[a],o=t[a];/^on[A-Z]/.test(a)?n&&o?r[a]=(...l)=>{const s=o(...l);return n(...l),s}:n&&(r[a]=n):a==="style"?r[a]={...n,...o}:a==="className"&&(r[a]=[n,o].filter(Boolean).join(" "))}return{...e,...r}}function Rg(e){var a,n;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Ng=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Wa=Ng.reduce((e,t)=>{const r=Ig(`Primitive.${t}`),a=S.forwardRef((n,o)=>{const{asChild:i,...l}=n,s=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(s,{...l,ref:o})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),ga={exports:{}},$r={};/**
94
+ */const vg=Hn("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Ps=S.forwardRef(({className:e,...t},r)=>u.jsx(Ns,{ref:r,className:Oe("peer h-4 w-4 shrink-0 rounded-sm border border-primary border-grayWarm-300 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:u.jsx(cg,{className:Oe("flex items-center justify-center text-current"),children:u.jsx(gg,{className:"h-4 w-4"})})}));Ps.displayName=Ns.displayName;const _a=S.forwardRef(({variant:e="default",size:t="sm",className:r,children:a,...n},o)=>{const i={success:"bg-success-100 text-success-800",error:"bg-error-100 text-error-700",warning:"bg-warning-100 text-warning-700",info:"bg-blueDark-100 text-blueDark-800",default:"bg-grayWarm-100 text-grayWarm-700"},l={sm:"px-2 py-0.5 text-xs",md:"px-2.5 py-1 text-sm"};return u.jsx("span",{ref:o,className:Oe("inline-flex items-center font-medium rounded-full",i[e],l[t],r),...n,children:a})});_a.displayName="Badge";const Ts=S.forwardRef(({variant:e="ghost",size:t="md",className:r,children:a,...n},o)=>{const i={ghost:"bg-transparent hover:bg-grayWarm-100",outline:"bg-white border border-grayWarm-200 hover:bg-grayWarm-50",default:"bg-grayWarm-100 hover:bg-grayWarm-200"},l={sm:"w-8 h-8",md:"w-10 h-10",lg:"w-12 h-12"};return u.jsx("button",{ref:o,className:Oe("inline-flex items-center justify-center rounded-lg transition-colors focus:outline-none",i[e],l[t],r),...n,children:a})});Ts.displayName="IconButton";function yg(e,t=[]){let r=[];function a(o,i){const l=S.createContext(i);l.displayName=o+"Context";const s=r.length;r=[...r,i];const c=g=>{var C;const{scope:y,children:x,...m}=g,h=((C=y==null?void 0:y[e])==null?void 0:C[s])||l,p=S.useMemo(()=>m,Object.values(m));return u.jsx(h.Provider,{value:p,children:x})};c.displayName=o+"Provider";function d(g,y){var h;const x=((h=y==null?void 0:y[e])==null?void 0:h[s])||l,m=S.useContext(x);if(m)return m;if(i!==void 0)return i;throw new Error(`\`${g}\` must be used within \`${o}\``)}return[c,d]}const n=()=>{const o=r.map(i=>S.createContext(i));return function(l){const s=(l==null?void 0:l[e])||o;return S.useMemo(()=>({[`__scope${e}`]:{...l,[e]:s}}),[l,s])}};return n.scopeName=e,[a,Cg(n,...t)]}function Cg(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const a=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(o){const i=a.reduce((l,{useScope:s,scopeName:c})=>{const g=s(o)[`__scope${c}`];return{...l,...g}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function Os(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...r)=>{var a;return(a=t.current)==null?void 0:a.call(t,...r)},[])}var Sn=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{};function Ko(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Da(...e){return t=>{let r=!1;const a=e.map(n=>{const o=Ko(n,t);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let n=0;n<a.length;n++){const o=a[n];typeof o=="function"?o():Ko(e[n],null)}}}}function Ln(...e){return S.useCallback(Da(...e),e)}var xg=Symbol.for("react.lazy"),Sr=S[" use ".trim().toString()];function Ig(e){return typeof e=="object"&&e!==null&&"then"in e}function js(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===xg&&"_payload"in e&&Ig(e._payload)}function Sg(e){const t=Ag(e),r=S.forwardRef((a,n)=>{let{children:o,...i}=a;js(o)&&typeof Sr=="function"&&(o=Sr(o._payload));const l=S.Children.toArray(o),s=l.find(Eg);if(s){const c=s.props.children,d=l.map(g=>g===s?S.Children.count(c)>1?S.Children.only(null):S.isValidElement(c)?c.props.children:null:g);return u.jsx(t,{...i,ref:n,children:S.isValidElement(c)?S.cloneElement(c,void 0,d):null})}return u.jsx(t,{...i,ref:n,children:o})});return r.displayName=`${e}.Slot`,r}function Ag(e){const t=S.forwardRef((r,a)=>{let{children:n,...o}=r;if(js(n)&&typeof Sr=="function"&&(n=Sr(n._payload)),S.isValidElement(n)){const i=Ng(n),l=Rg(o,n.props);return n.type!==S.Fragment&&(l.ref=a?Da(a,i):i),S.cloneElement(n,l)}return S.Children.count(n)>1?S.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var wg=Symbol("radix.slottable");function Eg(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===wg}function Rg(e,t){const r={...t};for(const a in t){const n=e[a],o=t[a];/^on[A-Z]/.test(a)?n&&o?r[a]=(...l)=>{const s=o(...l);return n(...l),s}:n&&(r[a]=n):a==="style"?r[a]={...n,...o}:a==="className"&&(r[a]=[n,o].filter(Boolean).join(" "))}return{...e,...r}}function Ng(e){var a,n;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Gg=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Wa=Gg.reduce((e,t)=>{const r=Sg(`Primitive.${t}`),a=S.forwardRef((n,o)=>{const{asChild:i,...l}=n,s=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(s,{...l,ref:o})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),ga={exports:{}},Kr={};/**
95
95
  * @license React
96
96
  * use-sync-external-store-shim.production.js
97
97
  *
@@ -99,7 +99,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
99
99
  *
100
100
  * This source code is licensed under the MIT license found in the
101
101
  * LICENSE file in the root directory of this source tree.
102
- */var Ko;function Gg(){if(Ko)return $r;Ko=1;var e=w;function t(f,y){return f===y&&(f!==0||1/f===1/y)||f!==f&&y!==y}var r=typeof Object.is=="function"?Object.is:t,a=e.useState,n=e.useEffect,o=e.useLayoutEffect,i=e.useDebugValue;function l(f,y){var C=y(),b=a({inst:{value:C,getSnapshot:y}}),h=b[0].inst,p=b[1];return o(function(){h.value=C,h.getSnapshot=y,s(h)&&p({inst:h})},[f,C,y]),n(function(){return s(h)&&p({inst:h}),f(function(){s(h)&&p({inst:h})})},[f]),i(C),C}function s(f){var y=f.getSnapshot;f=f.value;try{var C=y();return!r(f,C)}catch{return!0}}function c(f,y){return y()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:l;return $r.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,$r}var Qr={};/**
102
+ */var Qo;function Pg(){if(Qo)return Kr;Qo=1;var e=E;function t(g,y){return g===y&&(g!==0||1/g===1/y)||g!==g&&y!==y}var r=typeof Object.is=="function"?Object.is:t,a=e.useState,n=e.useEffect,o=e.useLayoutEffect,i=e.useDebugValue;function l(g,y){var x=y(),m=a({inst:{value:x,getSnapshot:y}}),h=m[0].inst,p=m[1];return o(function(){h.value=x,h.getSnapshot=y,s(h)&&p({inst:h})},[g,x,y]),n(function(){return s(h)&&p({inst:h}),g(function(){s(h)&&p({inst:h})})},[g]),i(x),x}function s(g){var y=g.getSnapshot;g=g.value;try{var x=y();return!r(g,x)}catch{return!0}}function c(g,y){return y()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:l;return Kr.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,Kr}var Qr={};/**
103
103
  * @license React
104
104
  * use-sync-external-store-shim.development.js
105
105
  *
@@ -107,9 +107,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
107
107
  *
108
108
  * This source code is licensed under the MIT license found in the
109
109
  * LICENSE file in the root directory of this source tree.
110
- */var qo;function Pg(){return qo||(qo=1,process.env.NODE_ENV!=="production"&&function(){function e(C,b){return C===b&&(C!==0||1/C===1/b)||C!==C&&b!==b}function t(C,b){d||n.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var h=b();if(!f){var p=b();o(h,p)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}p=i({inst:{value:h,getSnapshot:b}});var x=p[0].inst,E=p[1];return s(function(){x.value=h,x.getSnapshot=b,r(x)&&E({inst:x})},[C,h,b]),l(function(){return r(x)&&E({inst:x}),C(function(){r(x)&&E({inst:x})})},[C]),c(h),h}function r(C){var b=C.getSnapshot;C=C.value;try{var h=b();return!o(C,h)}catch{return!0}}function a(C,b){return b()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=w,o=typeof Object.is=="function"?Object.is:e,i=n.useState,l=n.useEffect,s=n.useLayoutEffect,c=n.useDebugValue,d=!1,f=!1,y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?a:t;Qr.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:y,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Qr}process.env.NODE_ENV==="production"?ga.exports=Gg():ga.exports=Pg();var Tg=ga.exports;function Og(){return Tg.useSyncExternalStore(jg,()=>!0,()=>!1)}function jg(){return()=>{}}var La="Avatar",[Mg]=vg(La),[kg,Ms]=Mg(La),ks=S.forwardRef((e,t)=>{const{__scopeAvatar:r,...a}=e,[n,o]=S.useState("idle");return u.jsx(kg,{scope:r,imageLoadingStatus:n,onImageLoadingStatusChange:o,children:u.jsx(Wa.span,{...a,ref:t})})});ks.displayName=La;var Fs="AvatarImage",Bs=S.forwardRef((e,t)=>{const{__scopeAvatar:r,src:a,onLoadingStatusChange:n=()=>{},...o}=e,i=Ms(Fs,r),l=Fg(a,o),s=Os(c=>{n(c),i.onImageLoadingStatusChange(c)});return Sn(()=>{l!=="idle"&&s(l)},[l,s]),l==="loaded"?u.jsx(Wa.img,{...o,ref:t,src:a}):null});Bs.displayName=Fs;var Vs="AvatarFallback",_s=S.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:a,...n}=e,o=Ms(Vs,r),[i,l]=S.useState(a===void 0);return S.useEffect(()=>{if(a!==void 0){const s=window.setTimeout(()=>l(!0),a);return()=>window.clearTimeout(s)}},[a]),i&&o.imageLoadingStatus!=="loaded"?u.jsx(Wa.span,{...n,ref:t}):null});_s.displayName=Vs;function ei(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Fg(e,{referrerPolicy:t,crossOrigin:r}){const a=Og(),n=S.useRef(null),o=a?(n.current||(n.current=new window.Image),n.current):null,[i,l]=S.useState(()=>ei(o,e));return Sn(()=>{l(ei(o,e))},[o,e]),Sn(()=>{const s=f=>()=>{l(f)};if(!o)return;const c=s("loaded"),d=s("error");return o.addEventListener("load",c),o.addEventListener("error",d),t&&(o.referrerPolicy=t),typeof r=="string"&&(o.crossOrigin=r),()=>{o.removeEventListener("load",c),o.removeEventListener("error",d)}},[o,r,t]),i}var Bg=ks,Vg=Bs,_g=_s;const Ds=S.forwardRef(({size:e="md",className:t,...r},a)=>{const n={sm:"w-8 h-8",md:"w-10 h-10",lg:"w-12 h-12",xl:"w-16 h-16"};return u.jsx(Bg,{ref:a,className:Me("relative flex shrink-0 overflow-hidden rounded-full",n[e],t),...r})});Ds.displayName="Avatar";const Ws=S.forwardRef(({className:e,...t},r)=>u.jsx(Vg,{ref:r,className:Me("aspect-square h-full w-full object-cover",e),...t}));Ws.displayName="AvatarImage";const Ls=S.forwardRef(({className:e,...t},r)=>u.jsx(_g,{ref:r,className:Me("flex h-full w-full items-center justify-center rounded-full bg-grayWarm-100 text-grayWarm-600 font-semibold",e),...t}));Ls.displayName="AvatarFallback";function tn(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e==null||e(n),r===!1||!n.defaultPrevented)return t==null?void 0:t(n)}}function Tr(e,t=[]){let r=[];function a(o,i){const l=S.createContext(i),s=r.length;r=[...r,i];const c=f=>{var x;const{scope:y,children:C,...b}=f,h=((x=y==null?void 0:y[e])==null?void 0:x[s])||l,p=S.useMemo(()=>b,Object.values(b));return u.jsx(h.Provider,{value:p,children:C})};c.displayName=o+"Provider";function d(f,y){var h;const C=((h=y==null?void 0:y[e])==null?void 0:h[s])||l,b=S.useContext(C);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[c,d]}const n=()=>{const o=r.map(i=>S.createContext(i));return function(l){const s=(l==null?void 0:l[e])||o;return S.useMemo(()=>({[`__scope${e}`]:{...l,[e]:s}}),[l,s])}};return n.scopeName=e,[a,Dg(n,...t)]}function Dg(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const a=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(o){const i=a.reduce((l,{useScope:s,scopeName:c})=>{const f=s(o)[`__scope${c}`];return{...l,...f}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}var Wg=S[" useInsertionEffect ".trim().toString()]||Sn;function Zn({prop:e,defaultProp:t,onChange:r=()=>{},caller:a}){const[n,o,i]=Lg({defaultProp:t,onChange:r}),l=e!==void 0,s=l?e:n;{const d=S.useRef(e!==void 0);S.useEffect(()=>{const f=d.current;f!==l&&console.warn(`${a} is changing from ${f?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=l},[l,a])}const c=S.useCallback(d=>{var f;if(l){const y=Xg(d)?d(e):d;y!==e&&((f=i.current)==null||f.call(i,y))}else o(d)},[l,e,o,i]);return[s,c]}function Lg({defaultProp:e,onChange:t}){const[r,a]=S.useState(e),n=S.useRef(r),o=S.useRef(t);return Wg(()=>{o.current=t},[t]),S.useEffect(()=>{var i;n.current!==r&&((i=o.current)==null||i.call(o,r),n.current=r)},[r,n]),[r,a,o]}function Xg(e){return typeof e=="function"}function Hg(e){const t=S.useRef({value:e,previous:e});return S.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Zg(e){const[t,r]=S.useState(void 0);return Sn(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const a=new ResizeObserver(n=>{if(!Array.isArray(n)||!n.length)return;const o=n[0];let i,l;if("borderBoxSize"in o){const s=o.borderBoxSize,c=Array.isArray(s)?s[0]:s;i=c.inlineSize,l=c.blockSize}else i=e.offsetWidth,l=e.offsetHeight;r({width:i,height:l})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else r(void 0)},[e]),t}function ma(e){const t=zg(e),r=S.forwardRef((a,n)=>{const{children:o,...i}=a,l=S.Children.toArray(o),s=l.find(Jg);if(s){const c=s.props.children,d=l.map(f=>f===s?S.Children.count(c)>1?S.Children.only(null):S.isValidElement(c)?c.props.children:null:f);return u.jsx(t,{...i,ref:n,children:S.isValidElement(c)?S.cloneElement(c,void 0,d):null})}return u.jsx(t,{...i,ref:n,children:o})});return r.displayName=`${e}.Slot`,r}function zg(e){const t=S.forwardRef((r,a)=>{const{children:n,...o}=r;if(S.isValidElement(n)){const i=$g(n),l=Ug(o,n.props);return n.type!==S.Fragment&&(l.ref=a?Da(a,i):i),S.cloneElement(n,l)}return S.Children.count(n)>1?S.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Yg=Symbol("radix.slottable");function Jg(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Yg}function Ug(e,t){const r={...t};for(const a in t){const n=e[a],o=t[a];/^on[A-Z]/.test(a)?n&&o?r[a]=(...l)=>{const s=o(...l);return n(...l),s}:n&&(r[a]=n):a==="style"?r[a]={...n,...o}:a==="className"&&(r[a]=[n,o].filter(Boolean).join(" "))}return{...e,...r}}function $g(e){var a,n;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Qg=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pn=Qg.reduce((e,t)=>{const r=ma(`Primitive.${t}`),a=S.forwardRef((n,o)=>{const{asChild:i,...l}=n,s=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(s,{...l,ref:o})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),Or="Switch",[Kg]=Tr(Or),[qg,em]=Kg(Or),Xs=S.forwardRef((e,t)=>{const{__scopeSwitch:r,name:a,checked:n,defaultChecked:o,required:i,disabled:l,value:s="on",onCheckedChange:c,form:d,...f}=e,[y,C]=S.useState(null),b=Wn(t,R=>C(R)),h=S.useRef(!1),p=y?d||!!y.closest("form"):!0,[x,E]=Zn({prop:n,defaultProp:o??!1,onChange:c,caller:Or});return u.jsxs(qg,{scope:r,checked:x,disabled:l,children:[u.jsx(pn.button,{type:"button",role:"switch","aria-checked":x,"aria-required":i,"data-state":Ys(x),"data-disabled":l?"":void 0,disabled:l,value:s,...f,ref:b,onClick:tn(e.onClick,R=>{E(A=>!A),p&&(h.current=R.isPropagationStopped(),h.current||R.stopPropagation())})}),p&&u.jsx(zs,{control:y,bubbles:!h.current,name:a,value:s,checked:x,required:i,disabled:l,form:d,style:{transform:"translateX(-100%)"}})]})});Xs.displayName=Or;var Hs="SwitchThumb",Zs=S.forwardRef((e,t)=>{const{__scopeSwitch:r,...a}=e,n=em(Hs,r);return u.jsx(pn.span,{"data-state":Ys(n.checked),"data-disabled":n.disabled?"":void 0,...a,ref:t})});Zs.displayName=Hs;var tm="SwitchBubbleInput",zs=S.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:a=!0,...n},o)=>{const i=S.useRef(null),l=Wn(i,o),s=Hg(r),c=Zg(t);return S.useEffect(()=>{const d=i.current;if(!d)return;const f=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(f,"checked").set;if(s!==r&&C){const b=new Event("click",{bubbles:a});C.call(d,r),d.dispatchEvent(b)}},[s,r,a]),u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...n,tabIndex:-1,ref:l,style:{...n.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});zs.displayName=tm;function Ys(e){return e?"checked":"unchecked"}var nm=Xs,rm=Zs;const Xa=S.forwardRef(({size:e="md",className:t,...r},a)=>{const n={sm:"w-9 h-5",md:"w-11 h-6"},o={sm:"w-4 h-4 data-[state=checked]:translate-x-4",md:"w-5 h-5 data-[state=checked]:translate-x-5"};return u.jsx(nm,{ref:a,className:Me("peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-500 focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:bg-brand-500 data-[state=unchecked]:bg-grayWarm-200",n[e],t),...r,children:u.jsx(rm,{className:Me("pointer-events-none block rounded-full bg-white shadow-xs transition-transform data-[state=unchecked]:translate-x-0",o[e])})})});Xa.displayName="Toggle";function am(e){const t=e+"CollectionProvider",[r,a]=Tr(t),[n,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=h=>{const{scope:p,children:x}=h,E=w.useRef(null),R=w.useRef(new Map).current;return u.jsx(n,{scope:p,itemMap:R,collectionRef:E,children:x})};i.displayName=t;const l=e+"CollectionSlot",s=ma(l),c=w.forwardRef((h,p)=>{const{scope:x,children:E}=h,R=o(l,x),A=Wn(p,R.collectionRef);return u.jsx(s,{ref:A,children:E})});c.displayName=l;const d=e+"CollectionItemSlot",f="data-radix-collection-item",y=ma(d),C=w.forwardRef((h,p)=>{const{scope:x,children:E,...R}=h,A=w.useRef(null),I=Wn(p,A),j=o(d,x);return w.useEffect(()=>(j.itemMap.set(A,{ref:A,...R}),()=>void j.itemMap.delete(A))),u.jsx(y,{[f]:"",ref:I,children:E})});C.displayName=d;function b(h){const p=o(e+"CollectionConsumer",h);return w.useCallback(()=>{const E=p.collectionRef.current;if(!E)return[];const R=Array.from(E.querySelectorAll(`[${f}]`));return Array.from(p.itemMap.values()).sort((j,F)=>R.indexOf(j.ref.current)-R.indexOf(F.ref.current))},[p.collectionRef,p.itemMap])}return[{Provider:i,Slot:c,ItemSlot:C},b,a]}var om=S[" useId ".trim().toString()]||(()=>{}),im=0;function sm(e){const[t,r]=S.useState(om());return Sn(()=>{r(a=>a??String(im++))},[e]),t?`radix-${t}`:""}var lm=S.createContext(void 0);function Js(e){const t=S.useContext(lm);return e||t||"ltr"}var Kr="rovingFocusGroup.onEntryFocus",um={bubbles:!1,cancelable:!0},zn="RovingFocusGroup",[ba,Us,cm]=am(zn),[dm,$s]=Tr(zn,[cm]),[fm,pm]=dm(zn),Qs=S.forwardRef((e,t)=>u.jsx(ba.Provider,{scope:e.__scopeRovingFocusGroup,children:u.jsx(ba.Slot,{scope:e.__scopeRovingFocusGroup,children:u.jsx(gm,{...e,ref:t})})}));Qs.displayName=zn;var gm=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:a,loop:n=!1,dir:o,currentTabStopId:i,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:s,onEntryFocus:c,preventScrollOnEntryFocus:d=!1,...f}=e,y=S.useRef(null),C=Wn(t,y),b=Js(o),[h,p]=Zn({prop:i,defaultProp:l??null,onChange:s,caller:zn}),[x,E]=S.useState(!1),R=Os(c),A=Us(r),I=S.useRef(!1),[j,F]=S.useState(0);return S.useEffect(()=>{const M=y.current;if(M)return M.addEventListener(Kr,R),()=>M.removeEventListener(Kr,R)},[R]),u.jsx(fm,{scope:r,orientation:a,dir:b,loop:n,currentTabStopId:h,onItemFocus:S.useCallback(M=>p(M),[p]),onItemShiftTab:S.useCallback(()=>E(!0),[]),onFocusableItemAdd:S.useCallback(()=>F(M=>M+1),[]),onFocusableItemRemove:S.useCallback(()=>F(M=>M-1),[]),children:u.jsx(pn.div,{tabIndex:x||j===0?-1:0,"data-orientation":a,...f,ref:C,style:{outline:"none",...e.style},onMouseDown:tn(e.onMouseDown,()=>{I.current=!0}),onFocus:tn(e.onFocus,M=>{const ie=!I.current;if(M.target===M.currentTarget&&ie&&!x){const re=new CustomEvent(Kr,um);if(M.currentTarget.dispatchEvent(re),!re.defaultPrevented){const ce=A().filter(B=>B.focusable),z=ce.find(B=>B.active),le=ce.find(B=>B.id===h),T=[z,le,...ce].filter(Boolean).map(B=>B.ref.current);el(T,d)}}I.current=!1}),onBlur:tn(e.onBlur,()=>E(!1))})})}),Ks="RovingFocusGroupItem",qs=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:a=!0,active:n=!1,tabStopId:o,children:i,...l}=e,s=sm(),c=o||s,d=pm(Ks,r),f=d.currentTabStopId===c,y=Us(r),{onFocusableItemAdd:C,onFocusableItemRemove:b,currentTabStopId:h}=d;return S.useEffect(()=>{if(a)return C(),()=>b()},[a,C,b]),u.jsx(ba.ItemSlot,{scope:r,id:c,focusable:a,active:n,children:u.jsx(pn.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...l,ref:t,onMouseDown:tn(e.onMouseDown,p=>{a?d.onItemFocus(c):p.preventDefault()}),onFocus:tn(e.onFocus,()=>d.onItemFocus(c)),onKeyDown:tn(e.onKeyDown,p=>{if(p.key==="Tab"&&p.shiftKey){d.onItemShiftTab();return}if(p.target!==p.currentTarget)return;const x=hm(p,d.orientation,d.dir);if(x!==void 0){if(p.metaKey||p.ctrlKey||p.altKey||p.shiftKey)return;p.preventDefault();let R=y().filter(A=>A.focusable).map(A=>A.ref.current);if(x==="last")R.reverse();else if(x==="prev"||x==="next"){x==="prev"&&R.reverse();const A=R.indexOf(p.currentTarget);R=d.loop?vm(R,A+1):R.slice(A+1)}setTimeout(()=>el(R))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:h!=null}):i})})});qs.displayName=Ks;var mm={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function bm(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function hm(e,t,r){const a=bm(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return mm[a]}function el(e,t=!1){const r=document.activeElement;for(const a of e)if(a===r||(a.focus({preventScroll:t}),document.activeElement!==r))return}function vm(e,t){return e.map((r,a)=>e[(t+a)%e.length])}var ym=Qs,Cm=qs,tl="Toggle",nl=S.forwardRef((e,t)=>{const{pressed:r,defaultPressed:a,onPressedChange:n,...o}=e,[i,l]=Zn({prop:r,onChange:n,defaultProp:a??!1,caller:tl});return u.jsx(pn.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0,...o,ref:t,onClick:tn(e.onClick,()=>{e.disabled||l(!i)})})});nl.displayName=tl;var rn="ToggleGroup",[rl]=Tr(rn,[$s]),al=$s(),Ha=w.forwardRef((e,t)=>{const{type:r,...a}=e;if(r==="single"){const n=a;return u.jsx(xm,{...n,ref:t})}if(r==="multiple"){const n=a;return u.jsx(Im,{...n,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${rn}\``)});Ha.displayName=rn;var[ol,il]=rl(rn),xm=w.forwardRef((e,t)=>{const{value:r,defaultValue:a,onValueChange:n=()=>{},...o}=e,[i,l]=Zn({prop:r,defaultProp:a??"",onChange:n,caller:rn});return u.jsx(ol,{scope:e.__scopeToggleGroup,type:"single",value:w.useMemo(()=>i?[i]:[],[i]),onItemActivate:l,onItemDeactivate:w.useCallback(()=>l(""),[l]),children:u.jsx(sl,{...o,ref:t})})}),Im=w.forwardRef((e,t)=>{const{value:r,defaultValue:a,onValueChange:n=()=>{},...o}=e,[i,l]=Zn({prop:r,defaultProp:a??[],onChange:n,caller:rn}),s=w.useCallback(d=>l((f=[])=>[...f,d]),[l]),c=w.useCallback(d=>l((f=[])=>f.filter(y=>y!==d)),[l]);return u.jsx(ol,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:s,onItemDeactivate:c,children:u.jsx(sl,{...o,ref:t})})});Ha.displayName=rn;var[Sm,Am]=rl(rn),sl=w.forwardRef((e,t)=>{const{__scopeToggleGroup:r,disabled:a=!1,rovingFocus:n=!0,orientation:o,dir:i,loop:l=!0,...s}=e,c=al(r),d=Js(i),f={role:"group",dir:d,...s};return u.jsx(Sm,{scope:r,rovingFocus:n,disabled:a,children:n?u.jsx(ym,{asChild:!0,...c,orientation:o,dir:d,loop:l,children:u.jsx(pn.div,{...f,ref:t})}):u.jsx(pn.div,{...f,ref:t})})}),Sr="ToggleGroupItem",ll=w.forwardRef((e,t)=>{const r=il(Sr,e.__scopeToggleGroup),a=Am(Sr,e.__scopeToggleGroup),n=al(e.__scopeToggleGroup),o=r.value.includes(e.value),i=a.disabled||e.disabled,l={...e,pressed:o,disabled:i},s=w.useRef(null);return a.rovingFocus?u.jsx(Cm,{asChild:!0,...n,focusable:!i,active:o,ref:s,children:u.jsx(ti,{...l,ref:t})}):u.jsx(ti,{...l,ref:t})});ll.displayName=Sr;var ti=w.forwardRef((e,t)=>{const{__scopeToggleGroup:r,value:a,...n}=e,o=il(Sr,r),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},l=o.type==="single"?i:void 0;return u.jsx(nl,{...l,...n,ref:t,onPressedChange:s=>{s?o.onItemActivate(a):o.onItemDeactivate(a)}})}),wm=Ha,Em=ll;const ul=S.forwardRef(({className:e,...t},r)=>u.jsx(wm,{ref:r,className:Me("inline-flex items-center rounded-lg border border-grayWarm-200 overflow-hidden",e),...t}));ul.displayName="ToggleGroup";const cl=S.forwardRef(({className:e,children:t,...r},a)=>u.jsx(Em,{ref:a,className:Me("inline-flex items-center justify-center px-4 py-2 text-sm font-semibold transition-colors","border-r border-grayWarm-200 last:border-r-0","data-[state=on]:bg-grayWarm-100 data-[state=on]:text-grayWarm-950","data-[state=off]:bg-white data-[state=off]:text-grayWarm-600 data-[state=off]:hover:bg-grayWarm-50","focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500",e),...r,children:t}));cl.displayName="ToggleGroupItem";const dl=S.forwardRef(({className:e,...t},r)=>u.jsx("textarea",{ref:r,className:Me("flex min-h-[80px] w-full rounded-lg border border-grayWarm-200 bg-white px-3.5 py-2.5 text-base text-grayWarm-950","placeholder:text-grayWarm-400","focus:outline-none focus:ring-2 focus:ring-brand-500 focus:border-brand-500","disabled:cursor-not-allowed disabled:opacity-50","resize-vertical",e),...t}));dl.displayName="Textarea";const fl=({currentPage:e,totalPages:t,onPageChange:r,className:a})=>{const n=()=>{const o=[];if(t<=7){for(let s=1;s<=t;s++)o.push(s);return o}o.push(1),e>3&&o.push("...");const i=Math.max(2,e-1),l=Math.min(t-1,e+1);for(let s=i;s<=l;s++)o.push(s);return e<t-2&&o.push("..."),o.push(t),o};return u.jsxs("nav",{className:Me("flex items-center justify-between",a),children:[u.jsxs("button",{onClick:()=>r(e-1),disabled:e<=1,className:Me("inline-flex items-center gap-1.5 px-3 py-2 text-sm font-semibold rounded-lg transition-colors","text-grayWarm-600 hover:bg-grayWarm-50","disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-transparent"),children:[u.jsx(gg,{className:"w-4 h-4"}),"Previous"]}),u.jsx("div",{className:"flex items-center gap-0.5",children:n().map((o,i)=>o==="..."?u.jsx("span",{className:"w-10 h-10 flex items-center justify-center text-sm text-grayWarm-500",children:"..."},`ellipsis-${i}`):u.jsx("button",{onClick:()=>r(o),className:Me("w-10 h-10 flex items-center justify-center text-sm font-medium rounded-lg transition-colors",o===e?"bg-grayWarm-100 text-grayWarm-950":"text-grayWarm-600 hover:bg-grayWarm-50"),children:o},o))}),u.jsxs("button",{onClick:()=>r(e+1),disabled:e>=t,className:Me("inline-flex items-center gap-1.5 px-3 py-2 text-sm font-semibold rounded-lg transition-colors","text-grayWarm-600 hover:bg-grayWarm-50","disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-transparent"),children:["Next",u.jsx(mg,{className:"w-4 h-4"})]})]})};fl.displayName="Pagination";const pl=S.forwardRef(({className:e,...t},r)=>u.jsxs("div",{className:Me("relative",e),children:[u.jsx(bg,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-grayWarm-400"}),u.jsx("input",{ref:r,type:"search",className:Me("w-full rounded-lg border border-grayWarm-200 bg-white pl-10 pr-3.5 py-2.5 text-base text-grayWarm-950","placeholder:text-grayWarm-400","focus:outline-none focus:ring-2 focus:ring-brand-500 focus:border-brand-500"),...t})]}));pl.displayName="SearchInput";const gl=S.forwardRef(({variant:e="default",onRemove:t,className:r,children:a,...n},o)=>{const i={default:"bg-white border-grayWarm-200 text-grayWarm-700",selected:"bg-brand-50 border-brand-300 text-brand-600"};return u.jsxs("span",{ref:o,className:Me("inline-flex items-center gap-1.5 px-3 py-1 rounded-full border text-sm font-medium",i[e],r),...n,children:[a,t&&u.jsx("button",{onClick:t,className:"inline-flex items-center justify-center w-4 h-4 rounded-full hover:bg-grayWarm-200 transition-colors",children:u.jsx(hg,{className:"w-3 h-3"})})]})});gl.displayName="Chip";const ha=({value:e,onChange:t,travelerType:r,departureDate:a,uniqueId:n,label:o="Date of Birth",yearDirection:i="past",errorState:l=!1,labelClassName:s,className:c,monthSearchable:d=!1})=>{const f=["January","February","March","April","May","June","July","August","September","October","November","December"],y=new Date().getUTCFullYear(),C=w.useMemo(()=>i==="future"?Array.from({length:21},(G,T)=>y+T):Array.from({length:120},(G,T)=>y-T),[y,i]),[b,h]=w.useState(e?new Date(e).getUTCMonth():void 0),[p,x]=w.useState(e?new Date(e).getUTCDate():void 0),[E,R]=w.useState(e?new Date(e).getUTCFullYear():void 0),A=(G,T)=>new Date(Date.UTC(T,G+1,0)).getUTCDate(),I=w.useMemo(()=>b!==void 0?A(b,E??2e3):31,[b,E]),j=w.useRef(void 0);w.useEffect(()=>{if(e&&e!==j.current)try{const G=new Date(e);isNaN(G.getTime())||(h(G.getUTCMonth()),x(G.getUTCDate()),R(G.getUTCFullYear()))}catch(G){console.error("Invalid date format:",G)}},[e]),w.useEffect(()=>{p!==void 0&&p>I&&x(I)},[I,p]),w.useEffect(()=>{if(b!==void 0&&p!==void 0&&E!==void 0){const G=Math.min(p,A(b,E)),T=new Date(Date.UTC(E,b,G)),B=T.toISOString();if(j.current=B,e){const J=new Date(e);if(!isNaN(J.getTime())&&J.getTime()===T.getTime())return}t(B)}},[b,p,E]);const F=G=>{G&&h(f.indexOf(G.value))},M=G=>{if(G===""){x(void 0);return}const T=parseInt(G,10);isNaN(T)||x(Math.min(Math.max(T,1),I))},ie=G=>{if(G){const T=parseInt(G.value,10);isNaN(T)||R(T)}},re=l&&b===void 0,ce=l&&p===void 0,z=l&&E===void 0,le=G=>G?{control:(T,B)=>({...T,borderRadius:"0.5rem",borderColor:"#EF4444",boxShadow:"none","&:hover":{borderColor:"#EF4444"},minHeight:"2.5rem",height:"2.5rem",cursor:"pointer"})}:{};return u.jsxs("div",{className:c||"mt-7",children:[u.jsx("p",{className:s||"text-sm md:text-base font-semibold",children:o}),u.jsxs("div",{className:"flex flex-row gap-4 mt-2",children:[u.jsx("div",{className:"relative w-full md:max-w-[140px]",children:u.jsx(Dn,{value:b!==void 0?{value:f[b],label:f[b]}:null,options:f.map(G=>({value:G,label:G})),placeholder:"Month*",onChange:F,styles:le(re),isSearchable:d})}),u.jsx("div",{className:"relative w-full md:max-w-[80px]",children:u.jsx(Dt,{type:"text",inputMode:"numeric",required:!0,placeholder:"Day",value:p!==void 0?p:"",onChange:G=>M(G.target.value),disabled:b===void 0,max:I,min:1,className:`text-xs md:text-sm border-grayWarm-300 rounded-lg h-10${ce?" border-error-500":""}`,id:`date-dropdowns-day-${n}`,name:"date-dropdowns-day"})}),u.jsx("div",{className:"relative w-full md:max-w-[140px]",children:u.jsx(Dn,{value:E!==void 0?{value:E.toString(),label:E.toString()}:null,options:C.map(G=>({value:G.toString(),label:G.toString()})),placeholder:"Year*",onChange:ie,styles:le(z),isSearchable:!0})})]})]})};var qt={},jr={};Object.defineProperty(jr,"__esModule",{value:!0});jr.Gender=void 0;var ni;(function(e){e.MALE="male",e.FEMALE="female",e.DEFAULT=""})(ni||(jr.Gender=ni={}));var Mr={};Object.defineProperty(Mr,"__esModule",{value:!0});Mr.CustomerResourceType=void 0;var ri;(function(e){e.STORAGE="storage",e.HOSTING="hosting",e.DNS="dns",e.AUTHENTICATION="authentication",e.AUTHORIZATION="authorization"})(ri||(Mr.CustomerResourceType=ri={}));var ml={};Object.defineProperty(ml,"__esModule",{value:!0});var nn={};Object.defineProperty(nn,"__esModule",{value:!0});nn.TravelerType=nn.FlightOfferSegmentLegType=nn.FlightOfferDataSource=void 0;var ai;(function(e){e.Amadeus="amadeus"})(ai||(nn.FlightOfferDataSource=ai={}));var oi;(function(e){e.Inbound="inbound",e.Outbound="outbound"})(oi||(nn.FlightOfferSegmentLegType=oi={}));var ii;(function(e){e.ADULT="adult",e.CHILD="child",e.INFANT="infant"})(ii||(nn.TravelerType=ii={}));var kr={};Object.defineProperty(kr,"__esModule",{value:!0});kr.OTPAction=void 0;var si;(function(e){e.EMAILED="emailed",e.TEXTED="texted"})(si||(kr.OTPAction=si={}));var bl={};Object.defineProperty(bl,"__esModule",{value:!0});var hl={};Object.defineProperty(hl,"__esModule",{value:!0});var vl={};Object.defineProperty(vl,"__esModule",{value:!0});var yl={};Object.defineProperty(yl,"__esModule",{value:!0});var Cl={};Object.defineProperty(Cl,"__esModule",{value:!0});var xl={};Object.defineProperty(xl,"__esModule",{value:!0});var Il={};Object.defineProperty(Il,"__esModule",{value:!0});var Sl={};Object.defineProperty(Sl,"__esModule",{value:!0});var Al={};Object.defineProperty(Al,"__esModule",{value:!0});var wl={};Object.defineProperty(wl,"__esModule",{value:!0});var Lt={};Object.defineProperty(Lt,"__esModule",{value:!0});Lt.MOVMO_PARTNER_ORIGINS=Lt.MOVMO_FLIGHTS_ORIGINS=Lt.MovmoFrameMessageType=void 0;Lt.isTrustedOrigin=Rm;var li;(function(e){e.READY="MOVMO_READY",e.INIT="MOVMO_INIT",e.BOOKING_COMPLETE="MOVMO_BOOKING_COMPLETE",e.BOOKING_FAILED="MOVMO_BOOKING_FAILED",e.RECOGNITION_STATE="MOVMO_RECOGNITION_STATE",e.RECOGNITION_TOKEN="MOVMO_RECOGNITION_TOKEN",e.RECOGNITION_RESIZE="MOVMO_RECOGNITION_RESIZE",e.RECOGNITION_CONNECT="MOVMO_RECOGNITION_CONNECT",e.RECOGNITION_ERROR="MOVMO_RECOGNITION_ERROR",e.RECOGNITION_SIGNED_OUT="MOVMO_RECOGNITION_SIGNED_OUT"})(li||(Lt.MovmoFrameMessageType=li={}));Lt.MOVMO_FLIGHTS_ORIGINS={prod:["https://flights.movmo.io"],nonProd:["https://flights.e2e.movmo.io","http://localhost:3000"]};Lt.MOVMO_PARTNER_ORIGINS={prod:[],nonProd:["https://mockairline-e2e.app.flyeasyapp.com","https://mockairline-e2e.app.movmoapp.com","http://localhost:3000"]};function Rm(e,t,{isProd:r,extraOrigins:a=[]}){if(r)return t.prod.includes(e);const n=[...t.nonProd];for(const o of a)if(o)try{n.push(new URL(o).origin)}catch{console.warn(`[movmo] isTrustedOrigin: ignoring malformed extra origin "${o}"`)}return n.includes(e)}var Za={};Object.defineProperty(Za,"__esModule",{value:!0});Za.mapIdentityPartners=Nm;function Nm(e){var t;return((t=e==null?void 0:e.partners)!==null&&t!==void 0?t:[]).map(r=>{var a;return{clientId:r.client_id,airlineName:r.airline_name,airlineDomain:r.airline_domain,providerId:r.provider_id,supportedScopes:(a=r.supported_scopes)!==null&&a!==void 0?a:[]}})}var El={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PAIR_COPY=e.SCOPE_COPY=void 0,e.displayRows=t,e.SCOPE_COPY={"profile.read":{label:"View your profile",detail:"Name and contact details"},"profile.write":{label:"Update your profile",detail:"Including your profile photo"},"preferences.read":{label:"View your travel preferences",detail:"Seat, meal, and assistance preferences; language and currency"},"preferences.write":{label:"Update your travel preferences"},"passengers.read":{label:"View your saved travelers",detail:"Including travel document details"},"passengers.write":{label:"Add, update, and remove saved travelers"},"payments.read":{label:"View saved payment methods",detail:"Card brand and last 4 digits only — never full numbers"},"payments.write":{label:"Update or remove saved payment methods",detail:"Cannot add new cards"},"loyalty.read":{label:"View your loyalty status",detail:"Your membership in that airline's loyalty program"},"bookings.read":{label:"View your bookings and trip history"},"bookings.write":{label:"Search and book flights",detail:"Bookings are charged to a saved payment method"}},e.PAIR_COPY={profile:{label:"View and manage your profile",detail:"Name, contact details, and profile photo"},preferences:{label:"View and manage your travel preferences",detail:"Update seat, meal, and assistance preferences you’ve saved"},passengers:{label:"View and manage saved travelers",detail:"Add, update, and remove travelers — including travel document details"},payments:{label:"View and manage saved payment methods",detail:"Card brand and last 4 digits only — never full numbers. Can’t add new cards."}};function t(r){const a=new Set(r),n=new Set,o=[];for(const i of r){const[l]=i.split("."),s=e.PAIR_COPY[l],c=a.has(`${l}.read`)&&a.has(`${l}.write`);if(s&&c){n.has(l)||(n.add(l),o.push(Object.assign(Object.assign({},s),{key:l,scopes:[`${l}.read`,`${l}.write`]})));continue}const d=e.SCOPE_COPY[i];o.push(d?Object.assign(Object.assign({},d),{key:i,scopes:[i]}):{label:i,key:i,scopes:[i]})}return o}})(El);var Rl={};Object.defineProperty(Rl,"__esModule",{value:!0});(function(e){var t=tr&&tr.__createBinding||(Object.create?function(a,n,o,i){i===void 0&&(i=o);var l=Object.getOwnPropertyDescriptor(n,o);(!l||("get"in l?!n.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(a,i,l)}:function(a,n,o,i){i===void 0&&(i=o),a[i]=n[o]}),r=tr&&tr.__exportStar||function(a,n){for(var o in a)o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&t(n,a,o)};Object.defineProperty(e,"__esModule",{value:!0}),r(jr,e),r(Mr,e),r(ml,e),r(nn,e),r(kr,e),r(bl,e),r(hl,e),r(vl,e),r(yl,e),r(Cl,e),r(xl,e),r(Il,e),r(Sl,e),r(Al,e),r(wl,e),r(Lt,e),r(Za,e),r(El,e),r(Rl,e)})(qt);const va=[{value:"US",label:"United States"},{value:"CA",label:"Canada"},{value:"GB",label:"United Kingdom"},{value:"AU",label:"Australia"},{value:"AF",label:"Afghanistan"},{value:"AX",label:"Åland Islands"},{value:"AL",label:"Albania"},{value:"DZ",label:"Algeria"},{value:"AS",label:"American Samoa"},{value:"AD",label:"Andorra"},{value:"AO",label:"Angola"},{value:"AI",label:"Anguilla"},{value:"AQ",label:"Antarctica"},{value:"AG",label:"Antigua and Barbuda"},{value:"AR",label:"Argentina"},{value:"AM",label:"Armenia"},{value:"AW",label:"Aruba"},{value:"AT",label:"Austria"},{value:"AZ",label:"Azerbaijan"},{value:"BS",label:"Bahamas"},{value:"BH",label:"Bahrain"},{value:"BD",label:"Bangladesh"},{value:"BB",label:"Barbados"},{value:"BY",label:"Belarus"},{value:"BE",label:"Belgium"},{value:"BZ",label:"Belize"},{value:"BJ",label:"Benin"},{value:"BM",label:"Bermuda"},{value:"BT",label:"Bhutan"},{value:"BO",label:"Bolivia"},{value:"BQ",label:"Bonaire, Sint Eustatius and Saba"},{value:"BA",label:"Bosnia and Herzegovina"},{value:"BW",label:"Botswana"},{value:"BV",label:"Bouvet Island"},{value:"BR",label:"Brazil"},{value:"IO",label:"British Indian Ocean Territory"},{value:"BN",label:"Brunei Darussalam"},{value:"BG",label:"Bulgaria"},{value:"BF",label:"Burkina Faso"},{value:"BI",label:"Burundi"},{value:"CV",label:"Cabo Verde"},{value:"KH",label:"Cambodia"},{value:"CM",label:"Cameroon"},{value:"KY",label:"Cayman Islands"},{value:"CF",label:"Central African Republic"},{value:"TD",label:"Chad"},{value:"CL",label:"Chile"},{value:"CN",label:"China"},{value:"CX",label:"Christmas Island"},{value:"CC",label:"Cocos (Keeling) Islands"},{value:"CO",label:"Colombia"},{value:"KM",label:"Comoros"},{value:"CG",label:"Congo"},{value:"CD",label:"Congo, Democratic Republic of the"},{value:"CK",label:"Cook Islands"},{value:"CR",label:"Costa Rica"},{value:"CI",label:"Côte d'Ivoire"},{value:"HR",label:"Croatia"},{value:"CU",label:"Cuba"},{value:"CW",label:"Curaçao"},{value:"CY",label:"Cyprus"},{value:"CZ",label:"Czechia"},{value:"DK",label:"Denmark"},{value:"DJ",label:"Djibouti"},{value:"DM",label:"Dominica"},{value:"DO",label:"Dominican Republic"},{value:"EC",label:"Ecuador"},{value:"EG",label:"Egypt"},{value:"SV",label:"El Salvador"},{value:"GQ",label:"Equatorial Guinea"},{value:"ER",label:"Eritrea"},{value:"EE",label:"Estonia"},{value:"SZ",label:"Eswatini"},{value:"ET",label:"Ethiopia"},{value:"FK",label:"Falkland Islands (Malvinas)"},{value:"FO",label:"Faroe Islands"},{value:"FJ",label:"Fiji"},{value:"FI",label:"Finland"},{value:"FR",label:"France"},{value:"GF",label:"French Guiana"},{value:"PF",label:"French Polynesia"},{value:"TF",label:"French Southern Territories"},{value:"GA",label:"Gabon"},{value:"GM",label:"Gambia"},{value:"GE",label:"Georgia"},{value:"DE",label:"Germany"},{value:"GH",label:"Ghana"},{value:"GI",label:"Gibraltar"},{value:"GR",label:"Greece"},{value:"GL",label:"Greenland"},{value:"GD",label:"Grenada"},{value:"GP",label:"Guadeloupe"},{value:"GU",label:"Guam"},{value:"GT",label:"Guatemala"},{value:"GG",label:"Guernsey"},{value:"GN",label:"Guinea"},{value:"GW",label:"Guinea-Bissau"},{value:"GY",label:"Guyana"},{value:"HT",label:"Haiti"},{value:"HM",label:"Heard Island and McDonald Islands"},{value:"VA",label:"Holy See"},{value:"HN",label:"Honduras"},{value:"HK",label:"Hong Kong"},{value:"HU",label:"Hungary"},{value:"IS",label:"Iceland"},{value:"IN",label:"India"},{value:"ID",label:"Indonesia"},{value:"IR",label:"Iran, Islamic Republic of"},{value:"IQ",label:"Iraq"},{value:"IE",label:"Ireland"},{value:"IM",label:"Isle of Man"},{value:"IL",label:"Israel"},{value:"IT",label:"Italy"},{value:"JM",label:"Jamaica"},{value:"JP",label:"Japan"},{value:"JE",label:"Jersey"},{value:"JO",label:"Jordan"},{value:"KZ",label:"Kazakhstan"},{value:"KE",label:"Kenya"},{value:"KI",label:"Kiribati"},{value:"KP",label:"Korea, Democratic People's Republic of"},{value:"KR",label:"Korea, Republic of"},{value:"KW",label:"Kuwait"},{value:"KG",label:"Kyrgyzstan"},{value:"LA",label:"Lao People's Democratic Republic"},{value:"LV",label:"Latvia"},{value:"LB",label:"Lebanon"},{value:"LS",label:"Lesotho"},{value:"LR",label:"Liberia"},{value:"LY",label:"Libya"},{value:"LI",label:"Liechtenstein"},{value:"LT",label:"Lithuania"},{value:"LU",label:"Luxembourg"},{value:"MO",label:"Macao"},{value:"MG",label:"Madagascar"},{value:"MW",label:"Malawi"},{value:"MY",label:"Malaysia"},{value:"MV",label:"Maldives"},{value:"ML",label:"Mali"},{value:"MT",label:"Malta"},{value:"MH",label:"Marshall Islands"},{value:"MQ",label:"Martinique"},{value:"MR",label:"Mauritania"},{value:"MU",label:"Mauritius"},{value:"YT",label:"Mayotte"},{value:"MX",label:"Mexico"},{value:"FM",label:"Micronesia, Federated States of"},{value:"MD",label:"Moldova, Republic of"},{value:"MC",label:"Monaco"},{value:"MN",label:"Mongolia"},{value:"ME",label:"Montenegro"},{value:"MS",label:"Montserrat"},{value:"MA",label:"Morocco"},{value:"MZ",label:"Mozambique"},{value:"MM",label:"Myanmar"},{value:"NA",label:"Namibia"},{value:"NR",label:"Nauru"},{value:"NP",label:"Nepal"},{value:"NL",label:"Netherlands"},{value:"NC",label:"New Caledonia"},{value:"NZ",label:"New Zealand"},{value:"NI",label:"Nicaragua"},{value:"NE",label:"Niger"},{value:"NG",label:"Nigeria"},{value:"NU",label:"Niue"},{value:"NF",label:"Norfolk Island"},{value:"MK",label:"North Macedonia"},{value:"MP",label:"Northern Mariana Islands"},{value:"NO",label:"Norway"},{value:"OM",label:"Oman"},{value:"PK",label:"Pakistan"},{value:"PW",label:"Palau"},{value:"PS",label:"Palestine, State of"},{value:"PA",label:"Panama"},{value:"PG",label:"Papua New Guinea"},{value:"PY",label:"Paraguay"},{value:"PE",label:"Peru"},{value:"PH",label:"Philippines"},{value:"PN",label:"Pitcairn"},{value:"PL",label:"Poland"},{value:"PT",label:"Portugal"},{value:"PR",label:"Puerto Rico"},{value:"QA",label:"Qatar"},{value:"RE",label:"Réunion"},{value:"RO",label:"Romania"},{value:"RU",label:"Russian Federation"},{value:"RW",label:"Rwanda"},{value:"BL",label:"Saint Barthélemy"},{value:"SH",label:"Saint Helena, Ascension and Tristan da Cunha"},{value:"KN",label:"Saint Kitts and Nevis"},{value:"LC",label:"Saint Lucia"},{value:"MF",label:"Saint Martin (French part)"},{value:"PM",label:"Saint Pierre and Miquelon"},{value:"VC",label:"Saint Vincent and the Grenadines"},{value:"WS",label:"Samoa"},{value:"SM",label:"San Marino"},{value:"ST",label:"Sao Tome and Principe"},{value:"SA",label:"Saudi Arabia"},{value:"SN",label:"Senegal"},{value:"RS",label:"Serbia"},{value:"SC",label:"Seychelles"},{value:"SL",label:"Sierra Leone"},{value:"SG",label:"Singapore"},{value:"SX",label:"Sint Maarten (Dutch part)"},{value:"SK",label:"Slovakia"},{value:"SI",label:"Slovenia"},{value:"SB",label:"Solomon Islands"},{value:"SO",label:"Somalia"},{value:"ZA",label:"South Africa"},{value:"GS",label:"South Georgia and the South Sandwich Islands"},{value:"SS",label:"South Sudan"},{value:"ES",label:"Spain"},{value:"LK",label:"Sri Lanka"},{value:"SD",label:"Sudan"},{value:"SR",label:"Suriname"},{value:"SJ",label:"Svalbard and Jan Mayen"},{value:"SE",label:"Sweden"},{value:"CH",label:"Switzerland"},{value:"SY",label:"Syrian Arab Republic"},{value:"TW",label:"Taiwan, Province of China"},{value:"TJ",label:"Tajikistan"},{value:"TZ",label:"Tanzania, United Republic of"},{value:"TH",label:"Thailand"},{value:"TL",label:"Timor-Leste"},{value:"TG",label:"Togo"},{value:"TK",label:"Tokelau"},{value:"TO",label:"Tonga"},{value:"TT",label:"Trinidad and Tobago"},{value:"TN",label:"Tunisia"},{value:"TR",label:"Turkey"},{value:"TM",label:"Turkmenistan"},{value:"TC",label:"Turks and Caicos Islands"},{value:"TV",label:"Tuvalu"},{value:"UG",label:"Uganda"},{value:"UA",label:"Ukraine"},{value:"AE",label:"United Arab Emirates"},{value:"UM",label:"United States Minor Outlying Islands"},{value:"UY",label:"Uruguay"},{value:"UZ",label:"Uzbekistan"},{value:"VU",label:"Vanuatu"},{value:"VE",label:"Venezuela, Bolivarian Republic of"},{value:"VN",label:"Viet Nam"},{value:"VG",label:"Virgin Islands, British"},{value:"VI",label:"Virgin Islands, U.S."},{value:"WF",label:"Wallis and Futuna"},{value:"EH",label:"Western Sahara"},{value:"YE",label:"Yemen"},{value:"ZM",label:"Zambia"},{value:"ZW",label:"Zimbabwe"}],Gm=({firstName:e,setFirstName:t,middleName:r,setMiddleName:a,lastName:n,setLastName:o,gender:i,setGender:l,knownTravelerNumber:s,setKnownTravelerNumber:c,dateOfBirth:d,setDateOfBirth:f,travelerType:y,departureDate:C,uniqueId:b,ktnAdornment:h,additionalFields:p,errorState:x=!1,errorMessage:E,firstNameError:R=!1,firstNameErrorMessage:A,middleNameError:I=!1,middleNameErrorMessage:j,lastNameError:F=!1,lastNameErrorMessage:M,showPassportFields:ie=!1,passportNumber:re,setPassportNumber:ce,issuingCountry:z,setIssuingCountry:le,expirationDate:G,setExpirationDate:T,passportErrorState:B=!1,passportErrorMessage:J})=>{const ne=Object.values(qt.Gender).filter(_=>_!==qt.Gender.DEFAULT).map(_=>({value:_.toString(),label:_.charAt(0).toUpperCase()+_.slice(1)})),Ie=_=>{_&&(_.value===qt.Gender.MALE?l(qt.Gender.MALE):_.value===qt.Gender.FEMALE&&l(qt.Gender.FEMALE))};return u.jsxs("div",{children:[u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-3 place-content-center",children:[u.jsxs("div",{className:"md:order-none order-1",children:[u.jsx(Dt,{type:"text",required:!0,placeholder:"First name",value:e,onChange:_=>t(_.target.value),className:`text-xs md:text-sm${R?" border-error-500":""}`,id:`passenger-first-name-${b}`,name:`passenger-first-name-${b}`}),R&&A&&u.jsx("p",{className:"text-error-700 text-sm mt-1",children:A})]}),u.jsxs("div",{className:"md:order-none order-2",children:[u.jsx(Dt,{type:"text",required:!1,placeholder:"Middle name",value:r,onChange:_=>a(_.target.value),className:`text-xs md:text-sm${I?" border-error-500":""}`,id:`passenger-middle-name-${b}`,name:`passenger-middle-name-${b}`}),I&&j&&u.jsx("p",{className:"text-error-700 text-sm mt-1",children:j})]}),u.jsxs("div",{className:"md:order-none order-3",children:[u.jsx(Dt,{type:"text",required:!0,placeholder:"Last name",value:n,onChange:_=>o(_.target.value),className:`text-xs md:text-sm${F?" border-error-500":""}`,id:`passenger-last-name-${b}`,name:`passenger-last-name-${b}`}),F&&M&&u.jsx("p",{className:"text-error-700 text-sm mt-1",children:M})]})]}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 place-content-center mt-3",children:[u.jsx("div",{className:"md:order-none order-1",children:u.jsx(Dn,{value:ne.find(_=>_.value===i)||null,placeholder:"Gender",options:ne,onChange:Ie,"data-testid":"gender-dropdown"})}),u.jsxs("div",{className:"md:order-none order-2 relative",children:[u.jsx(Dt,{type:"text",placeholder:"Known traveler number",value:s,onChange:_=>c(_.target.value),className:"text-xs md:text-sm pr-10",id:`passenger-known-traveler-number-${b}`,name:`passenger-known-traveler-number-${b}`}),h]})]}),p,u.jsx(ha,{value:d,onChange:f,travelerType:y,departureDate:C,uniqueId:b}),ie&&(()=>{const _=B&&!(re||"").trim(),W=B&&!(z||"").trim(),Z=B&&!(G||"").trim(),ae=W?{control:(L,m)=>({...L,borderRadius:"0.5rem",borderColor:"#EF4444",boxShadow:"none","&:hover":{borderColor:"#EF4444"},minHeight:"2.5rem",height:"2.5rem",cursor:"pointer"})}:{};return u.jsxs("div",{className:"mt-7",children:[u.jsx("p",{className:"text-sm md:text-base font-semibold",children:"Passport information"}),B&&J&&u.jsx("p",{className:"text-error-700 text-sm mt-1",children:J}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 mt-2",children:[u.jsx(Dt,{type:"text",placeholder:"Passport number",required:!0,value:re||"",onChange:L=>ce==null?void 0:ce(L.target.value),className:`text-xs md:text-sm${_?" border-error-500":""}`,id:`passport-number-${b}`,name:`passport-number-${b}`}),u.jsx(Dn,{value:z&&va.find(L=>L.value===z)||null,placeholder:"Issuing country",options:va,isSearchable:!0,onChange:L=>le==null?void 0:le((L==null?void 0:L.value)||""),styles:ae})]}),u.jsx(ha,{value:G,onChange:L=>T==null?void 0:T(L),label:"Expiration date",labelClassName:"text-sm font-medium text-grayWarm-600",className:"mt-4",yearDirection:"future",uniqueId:b?`passport-exp-${b}`:void 0,errorState:Z})]})})(),x&&u.jsx("div",{className:"text-error-700 text-sm mt-3",children:E||"Error saving passenger. Please try again."})]})},Pm=w.createContext({}),Nl=!0;function Tm({baseColor:e,highlightColor:t,width:r,height:a,borderRadius:n,circle:o,direction:i,duration:l,enableAnimation:s=Nl,customHighlightBackground:c}){const d={};return i==="rtl"&&(d["--animation-direction"]="reverse"),typeof l=="number"&&(d["--animation-duration"]=`${l}s`),s||(d["--pseudo-element-display"]="none"),(typeof r=="string"||typeof r=="number")&&(d.width=r),(typeof a=="string"||typeof a=="number")&&(d.height=a),(typeof n=="string"||typeof n=="number")&&(d.borderRadius=n),o&&(d.borderRadius="50%"),typeof e<"u"&&(d["--base-color"]=e),typeof t<"u"&&(d["--highlight-color"]=t),typeof c=="string"&&(d["--custom-highlight-background"]=c),d}function Et({count:e=1,wrapper:t,className:r,containerClassName:a,containerTestId:n,circle:o=!1,style:i,...l}){var s,c,d;const f=w.useContext(Pm),y={...l};for(const[R,A]of Object.entries(l))typeof A>"u"&&delete y[R];const C={...f,...y,circle:o},b={...i,...Tm(C)};let h="react-loading-skeleton";r&&(h+=` ${r}`);const p=(s=C.inline)!==null&&s!==void 0?s:!1,x=[],E=Math.ceil(e);for(let R=0;R<E;R++){let A=b;if(E>e&&R===E-1){const j=(c=A.width)!==null&&c!==void 0?c:"100%",F=e%1,M=typeof j=="number"?j*F:`calc(${j} * ${F})`;A={...A,width:M}}const I=w.createElement("span",{className:h,style:A,key:R},"‌");p?x.push(I):x.push(w.createElement(w.Fragment,{key:R},I,w.createElement("br",null)))}return w.createElement("span",{className:a,"data-testid":n,"aria-live":"polite","aria-busy":(d=C.enableAnimation)!==null&&d!==void 0?d:Nl},t?x.map((R,A)=>w.createElement(t,{key:A},R)):x)}const Om=({children:e,showFooter:t=!1})=>u.jsxs("div",{children:[u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-3 place-content-center",children:[u.jsx(Et,{height:40,borderRadius:8}),u.jsx(Et,{height:40,borderRadius:8}),u.jsx(Et,{height:40,borderRadius:8})]}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 place-content-center mt-3",children:[u.jsx(Et,{height:44,borderRadius:8}),u.jsx(Et,{height:40,borderRadius:8})]}),e,u.jsxs("div",{className:"mt-7",children:[u.jsx(Et,{height:20,width:100,borderRadius:4}),u.jsxs("div",{className:"flex flex-row gap-4 mt-2",children:[u.jsx("div",{className:"w-full md:max-w-[140px]",children:u.jsx(Et,{height:44,borderRadius:8})}),u.jsx("div",{className:"w-full md:max-w-[80px]",children:u.jsx(Et,{height:40,borderRadius:8})}),u.jsx("div",{className:"w-full md:max-w-[140px]",children:u.jsx(Et,{height:44,borderRadius:8})})]})]}),t&&u.jsxs("div",{className:"flex gap-3 mt-8 pt-4 border-t border-grayWarm-200",children:[u.jsx(Et,{height:40,borderRadius:8,containerClassName:"flex-1"}),u.jsx(Et,{height:40,borderRadius:8,containerClassName:"flex-1"})]})]}),bt=({size:e=20,title:t,children:r,...a})=>u.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",role:t?"img":void 0,"aria-hidden":t?void 0:!0,...a,children:[t&&u.jsx("title",{children:t}),r]}),za=e=>u.jsx(bt,{...e,children:u.jsx("path",{d:"M17 8.99994C17 8.48812 16.8047 7.9763 16.4142 7.58579C16.0237 7.19526 15.5118 7 15 7M15 15C18.3137 15 21 12.3137 21 9C21 5.68629 18.3137 3 15 3C11.6863 3 9 5.68629 9 9C9 9.27368 9.01832 9.54308 9.05381 9.80704C9.11218 10.2412 9.14136 10.4583 9.12172 10.5956C9.10125 10.7387 9.0752 10.8157 9.00469 10.9419C8.937 11.063 8.81771 11.1823 8.57913 11.4209L3.46863 16.5314C3.29568 16.7043 3.2092 16.7908 3.14736 16.8917C3.09253 16.9812 3.05213 17.0787 3.02763 17.1808C3 17.2959 3 17.4182 3 17.6627V19.4C3 19.9601 3 20.2401 3.10899 20.454C3.20487 20.6422 3.35785 20.7951 3.54601 20.891C3.75992 21 4.03995 21 4.6 21H7V19H9V17H11L12.5791 15.4209C12.8177 15.1823 12.937 15.063 13.0581 14.9953C13.1843 14.9248 13.2613 14.8987 13.4044 14.8783C13.5417 14.8586 13.7588 14.8878 14.193 14.9462C14.4569 14.9817 14.7263 15 15 15Z"})}),Gl=e=>u.jsx(bt,{...e,children:u.jsx("path",{d:"M8 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V8M8 21H7.8C6.11984 21 5.27976 21 4.63803 20.673C4.07354 20.3854 3.6146 19.9265 3.32698 19.362C3 18.7202 3 17.8802 3 16.2V16M21 8V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H16M21 16V16.2C21 17.8802 21 18.7202 20.673 19.362C20.3854 19.9265 19.9265 20.3854 19.362 20.673C18.7202 21 17.8802 21 16.2 21H16M7.5 8V9.5M16.5 8V9.5M11 12.6001C11.8 12.6001 12.5 11.9001 12.5 11.1001V8M15.2002 15.2C13.4002 17 10.5002 17 8.7002 15.2"})}),Pl=e=>u.jsx(bt,{...e,children:u.jsx("path",{d:"M5.80688 18.5304C5.82459 18.5005 5.84273 18.4709 5.8613 18.4413C7.2158 16.2881 7.99991 13.7418 7.99991 11C7.99991 8.79086 9.79077 7 11.9999 7C14.209 7 15.9999 8.79086 15.9999 11C15.9999 12.017 15.9307 13.0186 15.7966 14M13.6792 20.8436C14.2909 19.6226 14.7924 18.3369 15.1707 17M19.0097 18.132C19.6547 15.8657 20 13.4732 20 11C20 6.58172 16.4183 3 12 3C10.5429 3 9.17669 3.38958 8 4.07026M3 15.3641C3.64066 14.0454 4 12.5646 4 11C4 9.54285 4.38958 8.17669 5.07026 7M11.9999 11C11.9999 14.5172 10.9911 17.7988 9.24707 20.5712"})}),Tl=e=>u.jsx(bt,{...e,children:u.jsx("path",{d:"M18 9V3.6C18 3.03995 18 2.75992 17.891 2.54601C17.7951 2.35785 17.6422 2.20487 17.454 2.10899C17.2401 2 16.9601 2 16.4 2H7.6C7.03995 2 6.75992 2 6.54601 2.10899C6.35785 2.20487 6.20487 2.35785 6.10899 2.54601C6 2.75992 6 3.03995 6 3.6V9M10 6V5M14 6V5M8.8 22H15.2C16.8802 22 17.7202 22 18.362 21.673C18.9265 21.3854 19.3854 20.9265 19.673 20.362C20 19.7202 20 18.8802 20 17.2V12.2C20 11.0799 20 10.5198 19.782 10.092C19.5903 9.71569 19.2843 9.40973 18.908 9.21799C18.4802 9 17.9201 9 16.8 9H7.2C6.0799 9 5.51984 9 5.09202 9.21799C4.71569 9.40973 4.40973 9.71569 4.21799 10.092C4 10.5198 4 11.0799 4 12.2V17.2C4 18.8802 4 19.7202 4.32698 20.362C4.6146 20.9265 5.07354 21.3854 5.63803 21.673C6.27976 22 7.11984 22 8.8 22Z"})}),Ol=e=>u.jsx(bt,{...e,children:u.jsx("path",{d:"M3 16V7.2C3 6.07989 3 5.51984 3.21799 5.09202C3.40973 4.71569 3.71569 4.40973 4.09202 4.21799C4.51984 4 5.0799 4 6.2 4H17.8C18.9201 4 19.4802 4 19.908 4.21799C20.2843 4.40973 20.5903 4.71569 20.782 5.09202C21 5.51984 21 6.0799 21 7.2V16H15.6627C15.4182 16 15.2959 16 15.1808 16.0276C15.0787 16.0521 14.9812 16.0925 14.8917 16.1474C14.7908 16.2092 14.7043 16.2957 14.5314 16.4686L14.4686 16.5314C14.2957 16.7043 14.2092 16.7908 14.1083 16.8526C14.0188 16.9075 13.9213 16.9479 13.8192 16.9724C13.7041 17 13.5818 17 13.3373 17H10.6627C10.4182 17 10.2959 17 10.1808 16.9724C10.0787 16.9479 9.98119 16.9075 9.89172 16.8526C9.7908 16.7908 9.70432 16.7043 9.53137 16.5314L9.46863 16.4686C9.29568 16.2957 9.2092 16.2092 9.10828 16.1474C9.01881 16.0925 8.92127 16.0521 8.81923 16.0276C8.70414 16 8.58185 16 8.33726 16H3ZM3 16C2.44772 16 2 16.4477 2 17V17.3333C2 17.9533 2 18.2633 2.06815 18.5176C2.25308 19.2078 2.79218 19.7469 3.48236 19.9319C3.7367 20 4.04669 20 4.66667 20H19.3333C19.9533 20 20.2633 20 20.5176 19.9319C21.2078 19.7469 21.7469 19.2078 21.9319 18.5176C22 18.2633 22 17.9533 22 17.3333C22 17.0233 22 16.8683 21.9659 16.7412C21.8735 16.3961 21.6039 16.1265 21.2588 16.0341C21.1317 16 20.9767 16 20.6667 16H20"})}),jl=e=>u.jsx(bt,{...e,children:u.jsx("path",{d:"M9 11.4999L11 13.4999L15.5 8.99987M20 11.9999C20 16.9083 14.646 20.4783 12.698 21.6147C12.4766 21.7439 12.3659 21.8085 12.2097 21.842C12.0884 21.868 11.9116 21.868 11.7903 21.842C11.6341 21.8085 11.5234 21.7439 11.302 21.6147C9.35396 20.4783 4 16.9083 4 11.9999V7.21747C4 6.41796 4 6.0182 4.13076 5.67457C4.24627 5.37101 4.43398 5.10015 4.67766 4.8854C4.9535 4.64231 5.3278 4.50195 6.0764 4.22122L11.4382 2.21054C11.6461 2.13258 11.75 2.0936 11.857 2.07815C11.9518 2.06444 12.0482 2.06444 12.143 2.07815C12.25 2.0936 12.3539 2.13258 12.5618 2.21054L17.9236 4.22122C18.6722 4.50195 19.0465 4.64231 19.3223 4.8854C19.566 5.10015 19.7537 5.37101 19.8692 5.67457C20 6.0182 20 6.41796 20 7.21747V11.9999Z"})}),Ya=e=>u.jsx(bt,{...e,children:u.jsx("path",{d:"M16 6V5.2C16 4.0799 16 3.51984 15.782 3.09202C15.5903 2.71569 15.2843 2.40973 14.908 2.21799C14.4802 2 13.9201 2 12.8 2H11.2C10.0799 2 9.51984 2 9.09202 2.21799C8.71569 2.40973 8.40973 2.71569 8.21799 3.09202C8 3.51984 8 4.0799 8 5.2V6M10 11.5V16.5M14 11.5V16.5M3 6H21M19 6V17.2C19 18.8802 19 19.7202 18.673 20.362C18.3854 20.9265 17.9265 21.3854 17.362 21.673C16.7202 22 15.8802 22 14.2 22H9.8C8.11984 22 7.27976 22 6.63803 21.673C6.07354 21.3854 5.6146 20.9265 5.32698 20.362C5 19.7202 5 18.8802 5 17.2V6"})}),Ml=e=>u.jsx(bt,{...e,children:u.jsx("path",{d:"M12 5V19M5 12H19"})}),jm=e=>u.jsx(bt,{...e,children:u.jsx("path",{d:"M6.5 19C4.01472 19 2 16.9853 2 14.5C2 12.1564 3.79151 10.2313 6.07974 10.0194C6.54781 7.17213 9.02024 5 12 5C14.9798 5 17.4522 7.17213 17.9203 10.0194C20.2085 10.2313 22 12.1564 22 14.5C22 16.9853 19.9853 19 17.5 19C13.1102 19 10.3433 19 6.5 19Z"})}),Fr=e=>u.jsx(bt,{...e,children:u.jsx("path",{d:"M2 7L10.1649 12.7154C10.8261 13.1783 11.1567 13.4097 11.5163 13.4993C11.8339 13.5785 12.1661 13.5785 12.4837 13.4993C12.8433 13.4097 13.1739 13.1783 13.8351 12.7154L22 7M6.8 20H17.2C18.8802 20 19.7202 20 20.362 19.673C20.9265 19.3854 21.3854 18.9265 21.673 18.362C22 17.7202 22 16.8802 22 15.2V8.8C22 7.11984 22 6.27976 21.673 5.63803C21.3854 5.07354 20.9265 4.6146 20.362 4.32698C19.7202 4 18.8802 4 17.2 4H6.8C5.11984 4 4.27976 4 3.63803 4.32698C3.07354 4.6146 2.6146 5.07354 2.32698 5.63803C2 6.27976 2 7.11984 2 8.8V15.2C2 16.8802 2 17.7202 2.32698 18.362C2.6146 18.9265 3.07354 19.3854 3.63803 19.673C4.27976 20 5.11984 20 6.8 20Z"})}),kl=e=>u.jsx(bt,{...e,children:u.jsx("path",{d:"M18 6L6 18M6 6L18 18"})}),Ja=e=>u.jsx(bt,{...e,children:u.jsx("path",{d:"M7.5 12L10.5 15L16.5 9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"})}),Rn=e=>u.jsx(bt,{...e,children:u.jsx("path",{d:"M12 8V12M12 16H12.01M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"})}),Mm=e=>u.jsx(bt,{...e,children:u.jsx("path",{d:"M12 12H12.005M17 12H17.005M7 12H7.005M5.2 7H18.8C19.9201 7 20.4802 7 20.908 7.21799C21.2843 7.40973 21.5903 7.71569 21.782 8.09202C22 8.51984 22 9.0799 22 10.2V13.8C22 14.9201 22 15.4802 21.782 15.908C21.5903 16.2843 21.2843 16.5903 20.908 16.782C20.4802 17 19.9201 17 18.8 17H5.2C4.0799 17 3.51984 17 3.09202 16.782C2.71569 16.5903 2.40973 16.2843 2.21799 15.908C2 15.4802 2 14.9201 2 13.8V10.2C2 9.0799 2 8.51984 2.21799 8.09202C2.40973 7.71569 2.71569 7.40973 3.09202 7.21799C3.51984 7 4.0799 7 5.2 7ZM12.25 12C12.25 12.1381 12.1381 12.25 12 12.25C11.8619 12.25 11.75 12.1381 11.75 12C11.75 11.8619 11.8619 11.75 12 11.75C12.1381 11.75 12.25 11.8619 12.25 12ZM17.25 12C17.25 12.1381 17.1381 12.25 17 12.25C16.8619 12.25 16.75 12.1381 16.75 12C16.75 11.8619 16.8619 11.75 17 11.75C17.1381 11.75 17.25 11.8619 17.25 12ZM7.25 12C7.25 12.1381 7.13807 12.25 7 12.25C6.86193 12.25 6.75 12.1381 6.75 12C6.75 11.8619 6.86193 11.75 7 11.75C7.13807 11.75 7.25 11.8619 7.25 12Z"})}),Fl=e=>u.jsx(bt,{...e,children:u.jsx("path",{d:"M15 3H16.2C17.8802 3 18.7202 3 19.362 3.32698C19.9265 3.6146 20.3854 4.07354 20.673 4.63803C21 5.27976 21 6.11984 21 7.8V16.2C21 17.8802 21 18.7202 20.673 19.362C20.3854 19.9265 19.9265 20.3854 19.362 20.673C18.7202 21 17.8802 21 16.2 21H15M10 7L15 12M15 12L10 17M15 12L3 12"})});function Rt(e){if(e)try{e.focus()}catch(t){if(t instanceof DOMException&&t.name==="SecurityError")return;throw t}}const km=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),ui=e=>Array.from(e.querySelectorAll(km)),kn=[],Fm=()=>u.jsx("svg",{className:"w-4 h-4 text-grayWarm-600",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),gn=e=>e.isOpen?u.jsx(Bm,{...e}):null,Bm=({onClose:e,title:t,children:r,footer:a,maxWidth:n="max-w-screen-sm",maxWidthPx:o,footerHasBorder:i=!1,hideCloseButton:l=!1,allowOverflow:s=!1,header:c="bar"})=>{const d=w.useRef(null),f=w.useId(),y=w.useRef(e);y.current=e;const C=w.useRef(!l);C.current=!l;const[b]=w.useState(()=>typeof document>"u"?null:document.activeElement);w.useEffect(()=>{const p=d.current;if(!p)return;const x=Symbol("modal");kn.push(x),p.contains(document.activeElement)||Rt(ui(p)[0]??p);const E=R=>{if(kn[kn.length-1]!==x||R.defaultPrevented)return;if(R.key==="Escape"){C.current&&y.current();return}if(R.key!=="Tab")return;const A=ui(p);if(A.length===0){R.preventDefault(),Rt(p);return}const I=A[0],j=A[A.length-1],F=document.activeElement,M=p.contains(F);R.shiftKey&&(!M||F===I)?(R.preventDefault(),Rt(j)):!R.shiftKey&&(!M||F===j)&&(R.preventDefault(),Rt(I))};return document.addEventListener("keydown",E),()=>{document.removeEventListener("keydown",E);const R=kn.indexOf(x);R!==-1&&kn.splice(R,1),b&&b!==document.body&&b.isConnected&&Rt(b)}},[]);const h=c==="bar";return u.jsxs("div",{className:"fixed inset-0 z-[110] flex items-center justify-center",children:[u.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 transition-opacity",onClick:l?void 0:e,"data-testid":"modal-backdrop"}),u.jsxs("div",{ref:d,role:"dialog","aria-modal":"true","aria-labelledby":h&&t?f:void 0,"aria-label":!h&&typeof t=="string"?t:void 0,tabIndex:-1,className:Me("relative w-full mx-4 bg-white rounded-xl shadow-xl transform transition-all focus:outline-none",o?"":n),style:o?{maxWidth:`${o}px`}:void 0,children:[h&&(t||!l)&&u.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-grayWarm-200",children:[l?u.jsx("div",{className:"w-8"}):u.jsx("button",{onClick:e,"aria-label":"Close modal",className:"w-8 h-8 flex items-center justify-center bg-grayWarm-100 hover:bg-grayWarm-200 rounded-lg transition-colors",children:u.jsx(Fm,{})}),u.jsx("h2",{id:f,className:"text-lg font-semibold text-grayWarm-950",children:t}),u.jsx("div",{className:"w-8"})]}),!h&&!l&&u.jsx("button",{type:"button",onClick:e,"aria-label":"Close modal",className:"absolute top-4 right-4 z-10 w-8 h-8 flex items-center justify-center rounded-lg text-grayWarm-500 hover:bg-grayWarm-100 hover:text-grayWarm-700 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-grayWarm-950",children:u.jsx(kl,{size:24})}),u.jsx("div",{className:Me("p-6",s?"overflow-visible":"max-h-[90vh] overflow-y-auto"),children:r}),i&&u.jsx("div",{className:"border-t border-grayWarm-200"}),a&&u.jsx("div",{className:"p-6",children:a})]})]})},Br=[{languageCode:"en",regionCode:"US",currencyCode:"USD",languageDisplay:"English",regionDisplay:"United States"},{languageCode:"en",regionCode:"GB",currencyCode:"GBP",languageDisplay:"English",regionDisplay:"United Kingdom"},{languageCode:"en",regionCode:"CA",currencyCode:"CAD",languageDisplay:"English",regionDisplay:"Canada"},{languageCode:"en",regionCode:"AU",currencyCode:"AUD",languageDisplay:"English",regionDisplay:"Australia"},{languageCode:"es",regionCode:"ES",currencyCode:"EUR",languageDisplay:"Español",regionDisplay:"España"},{languageCode:"es",regionCode:"MX",currencyCode:"MXN",languageDisplay:"Español",regionDisplay:"México"},{languageCode:"fr",regionCode:"FR",currencyCode:"EUR",languageDisplay:"Français",regionDisplay:"France"},{languageCode:"fr",regionCode:"CA",currencyCode:"CAD",languageDisplay:"Français",regionDisplay:"Canada"},{languageCode:"de",regionCode:"DE",currencyCode:"EUR",languageDisplay:"Deutsch",regionDisplay:"Deutschland"},{languageCode:"it",regionCode:"IT",currencyCode:"EUR",languageDisplay:"Italiano",regionDisplay:"Italia"},{languageCode:"pt",regionCode:"BR",currencyCode:"BRL",languageDisplay:"Português",regionDisplay:"Brasil"},{languageCode:"ja",regionCode:"JP",currencyCode:"JPY",languageDisplay:"日本語",regionDisplay:"日本"},{languageCode:"ko",regionCode:"KR",currencyCode:"KRW",languageDisplay:"한국어",regionDisplay:"대한민국"},{languageCode:"zh",regionCode:"CN",currencyCode:"CNY",languageDisplay:"中文",regionDisplay:"中国"},{languageCode:"hi",regionCode:"IN",currencyCode:"INR",languageDisplay:"हिन्दी",regionDisplay:"भारत"}],Bl=Br[0],Vm="movmo_locale_preferences",_m=(e,t)=>Br.find(r=>r.languageCode.toLowerCase()===e.toLowerCase()&&r.regionCode.toLowerCase()===t.toLowerCase())??Bl,Dm=e=>e.languageDisplay,Wm=()=>u.jsx("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:u.jsx("path",{d:"M12.913 17H20.087M12.913 17L11 21M12.913 17L16.5 9L20.087 17M2 5H12M7 2V5M11 5C9.72 8.44 7.36 11.44 4.5 13.5M7.5 16.5C6.26 15.34 5.14 14.04 4.17 12.63"})}),Lm=({isOpen:e,onClose:t,currentLanguageCode:r,currentRegionCode:a,onLocaleSelect:n,translateIconUrl:o})=>{const i=l=>l.languageCode===r&&l.regionCode===a;return u.jsxs(gn,{isOpen:e,onClose:t,title:null,maxWidthPx:860,hideCloseButton:!0,children:[u.jsx("div",{className:"flex items-center mb-6",children:u.jsx("button",{onClick:t,"aria-label":"Close",className:"w-8 h-8 flex items-center justify-center bg-grayWarm-100 hover:bg-grayWarm-200 rounded-lg transition-colors",children:u.jsx("svg",{className:"w-4 h-4 text-grayWarm-600",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})}),u.jsxs("div",{className:"border border-grayWarm-200 rounded-xl p-4 mb-6 flex items-center justify-between opacity-60 cursor-not-allowed",children:[u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"font-semibold text-grayWarm-950",children:"Translation"}),o?u.jsx("img",{src:o,alt:"",className:"w-4 h-4"}):u.jsx(Wm,{})]}),u.jsx("p",{className:"text-sm text-grayWarm-600 mt-1",children:"Automatically translate descriptions to English."})]}),u.jsx("div",{className:"w-11 h-6 bg-grayWarm-950 rounded-full relative flex-shrink-0","aria-hidden":"true",children:u.jsx("div",{className:"w-5 h-5 bg-white rounded-full absolute top-0.5 right-0.5"})})]}),u.jsx("h3",{className:"text-base font-semibold text-grayWarm-950 mb-4",children:"Choose a language and region"}),u.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-1 p-px",role:"radiogroup","aria-label":"Language and region selection",children:Br.map(l=>{const s=i(l);return u.jsxs("button",{onClick:()=>n(l),role:"radio","aria-checked":s,className:`p-3 rounded-lg text-left cursor-pointer border transition-colors ${s?"border-grayWarm-950 ring-1 ring-grayWarm-950":"border-transparent hover:bg-grayWarm-50"}`,children:[u.jsx("p",{className:"text-sm font-semibold text-grayWarm-950",children:l.languageDisplay}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:l.regionDisplay})]},`${l.languageCode}-${l.regionCode}`)})})]})},Vr=[{code:"USD",name:"United States dollar",symbol:"$"},{code:"AUD",name:"Australian dollar",symbol:"$"},{code:"BRL",name:"Brazilian real",symbol:"R$"},{code:"BGN",name:"Bulgarian lev",symbol:"лв."},{code:"CAD",name:"Canadian dollar",symbol:"$"},{code:"CLP",name:"Chilean peso",symbol:"$"},{code:"CNY",name:"Chinese yuan",symbol:"¥"},{code:"COP",name:"Colombian peso",symbol:"$"},{code:"CRC",name:"Costa Rican colon",symbol:"₡"},{code:"CZK",name:"Czech koruna",symbol:"Kč"},{code:"DKK",name:"Danish krone",symbol:"kr"},{code:"EGP",name:"Egyptian pound",symbol:"ج.م"},{code:"AED",name:"Emirati dirham",symbol:"د.إ"},{code:"EUR",name:"Euro",symbol:"€"},{code:"GHS",name:"Ghanaian cedi",symbol:"GH₵"},{code:"HKD",name:"Hong Kong dollar",symbol:"$"},{code:"HUF",name:"Hungarian forint",symbol:"Ft"},{code:"INR",name:"Indian rupee",symbol:"₹"},{code:"IDR",name:"Indonesian rupiah",symbol:"Rp"},{code:"ILS",name:"Israeli new shekel",symbol:"₪"},{code:"JPY",name:"Japanese yen",symbol:"¥"},{code:"KZT",name:"Kazakhstani tenge",symbol:"₸"},{code:"KES",name:"Kenyan shilling",symbol:"KSh"},{code:"MYR",name:"Malaysian ringgit",symbol:"RM"},{code:"MXN",name:"Mexican peso",symbol:"$"},{code:"MAD",name:"Moroccan dirham",symbol:"MAD"},{code:"TWD",name:"New Taiwan dollar",symbol:"$"},{code:"NZD",name:"New Zealand dollar",symbol:"$"},{code:"NOK",name:"Norwegian krone",symbol:"kr"},{code:"PEN",name:"Peruvian sol",symbol:"S/"},{code:"PHP",name:"Philippine peso",symbol:"₱"},{code:"PLN",name:"Polish zloty",symbol:"zł"},{code:"GBP",name:"Pound sterling",symbol:"£"},{code:"QAR",name:"Qatari riyal",symbol:"ر.ق"},{code:"RON",name:"Romanian leu",symbol:"lei"},{code:"SAR",name:"Saudi Arabian riyal",symbol:"SR"},{code:"SGD",name:"Singapore dollar",symbol:"$"},{code:"ZAR",name:"South African rand",symbol:"R"},{code:"KRW",name:"South Korean won",symbol:"₩"},{code:"SEK",name:"Swedish krona",symbol:"kr"},{code:"CHF",name:"Swiss franc",symbol:"CHF"},{code:"THB",name:"Thai baht",symbol:"฿"},{code:"TRY",name:"Turkish lira",symbol:"₺"},{code:"UGX",name:"Ugandan shilling",symbol:"USh"},{code:"UAH",name:"Ukrainian hryvnia",symbol:"₴"},{code:"UYU",name:"Uruguayan peso",symbol:"$U"},{code:"VND",name:"Vietnamese dong",symbol:"₫"}],Xm=Vr[0],Hm=e=>Vr.find(t=>t.code.toUpperCase()===e.toUpperCase())??Xm,Vl=e=>e.code===e.symbol?e.code:`${e.code} – ${e.symbol}`,Zm=({isOpen:e,onClose:t,currentCurrencyCode:r,onCurrencySelect:a})=>u.jsxs(gn,{isOpen:e,onClose:t,title:null,maxWidthPx:920,hideCloseButton:!0,children:[u.jsx("div",{className:"flex items-center mb-6",children:u.jsx("button",{onClick:t,"aria-label":"Close",className:"w-8 h-8 flex items-center justify-center bg-grayWarm-100 hover:bg-grayWarm-200 rounded-lg transition-colors",children:u.jsx("svg",{className:"w-4 h-4 text-grayWarm-600",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})}),u.jsx("h3",{className:"text-base font-semibold text-grayWarm-950 mb-4",children:"Choose a currency"}),u.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-x-3 gap-y-1 p-px",role:"radiogroup","aria-label":"Currency selection",children:Vr.map(n=>{const o=n.code===r;return u.jsxs("button",{onClick:()=>a(n.code),role:"radio","aria-checked":o,className:`p-3 rounded-lg text-left cursor-pointer border transition-colors ${o?"border-grayWarm-950 ring-1 ring-grayWarm-950":"border-transparent hover:bg-grayWarm-50"}`,children:[u.jsx("p",{className:"text-sm font-medium text-grayWarm-950",children:n.name}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:Vl(n)})]},n.code)})})]});var zm=function(e){var t={};function r(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(a,n,o){r.o(a,n)||Object.defineProperty(a,n,{enumerable:!0,get:o})},r.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},r.t=function(a,n){if(1&n&&(a=r(a)),8&n||4&n&&typeof a=="object"&&a&&a.__esModule)return a;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:a}),2&n&&typeof a!="string")for(var i in a)r.d(o,i,(function(l){return a[l]}).bind(null,i));return o},r.n=function(a){var n=a&&a.__esModule?function(){return a.default}:function(){return a};return r.d(n,"a",n),n},r.o=function(a,n){return Object.prototype.hasOwnProperty.call(a,n)},r.p="",r(r.s=9)}([function(e,t){e.exports=w},function(e,t,r){var a;/*!
110
+ */var qo;function Tg(){return qo||(qo=1,process.env.NODE_ENV!=="production"&&function(){function e(x,m){return x===m&&(x!==0||1/x===1/m)||x!==x&&m!==m}function t(x,m){d||n.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var h=m();if(!g){var p=m();o(h,p)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),g=!0)}p=i({inst:{value:h,getSnapshot:m}});var C=p[0].inst,R=p[1];return s(function(){C.value=h,C.getSnapshot=m,r(C)&&R({inst:C})},[x,h,m]),l(function(){return r(C)&&R({inst:C}),x(function(){r(C)&&R({inst:C})})},[x]),c(h),h}function r(x){var m=x.getSnapshot;x=x.value;try{var h=m();return!o(x,h)}catch{return!0}}function a(x,m){return m()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=E,o=typeof Object.is=="function"?Object.is:e,i=n.useState,l=n.useEffect,s=n.useLayoutEffect,c=n.useDebugValue,d=!1,g=!1,y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?a:t;Qr.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:y,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Qr}process.env.NODE_ENV==="production"?ga.exports=Pg():ga.exports=Tg();var Og=ga.exports;function jg(){return Og.useSyncExternalStore(Mg,()=>!0,()=>!1)}function Mg(){return()=>{}}var La="Avatar",[kg]=yg(La),[Fg,Ms]=kg(La),ks=S.forwardRef((e,t)=>{const{__scopeAvatar:r,...a}=e,[n,o]=S.useState("idle");return u.jsx(Fg,{scope:r,imageLoadingStatus:n,onImageLoadingStatusChange:o,children:u.jsx(Wa.span,{...a,ref:t})})});ks.displayName=La;var Fs="AvatarImage",Bs=S.forwardRef((e,t)=>{const{__scopeAvatar:r,src:a,onLoadingStatusChange:n=()=>{},...o}=e,i=Ms(Fs,r),l=Bg(a,o),s=Os(c=>{n(c),i.onImageLoadingStatusChange(c)});return Sn(()=>{l!=="idle"&&s(l)},[l,s]),l==="loaded"?u.jsx(Wa.img,{...o,ref:t,src:a}):null});Bs.displayName=Fs;var Vs="AvatarFallback",_s=S.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:a,...n}=e,o=Ms(Vs,r),[i,l]=S.useState(a===void 0);return S.useEffect(()=>{if(a!==void 0){const s=window.setTimeout(()=>l(!0),a);return()=>window.clearTimeout(s)}},[a]),i&&o.imageLoadingStatus!=="loaded"?u.jsx(Wa.span,{...n,ref:t}):null});_s.displayName=Vs;function ei(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Bg(e,{referrerPolicy:t,crossOrigin:r}){const a=jg(),n=S.useRef(null),o=a?(n.current||(n.current=new window.Image),n.current):null,[i,l]=S.useState(()=>ei(o,e));return Sn(()=>{l(ei(o,e))},[o,e]),Sn(()=>{const s=g=>()=>{l(g)};if(!o)return;const c=s("loaded"),d=s("error");return o.addEventListener("load",c),o.addEventListener("error",d),t&&(o.referrerPolicy=t),typeof r=="string"&&(o.crossOrigin=r),()=>{o.removeEventListener("load",c),o.removeEventListener("error",d)}},[o,r,t]),i}var Vg=ks,_g=Bs,Dg=_s;const Ds=S.forwardRef(({size:e="md",className:t,...r},a)=>{const n={sm:"w-8 h-8",md:"w-10 h-10",lg:"w-12 h-12",xl:"w-16 h-16"};return u.jsx(Vg,{ref:a,className:Oe("relative flex shrink-0 overflow-hidden rounded-full",n[e],t),...r})});Ds.displayName="Avatar";const Ws=S.forwardRef(({className:e,...t},r)=>u.jsx(_g,{ref:r,className:Oe("aspect-square h-full w-full object-cover",e),...t}));Ws.displayName="AvatarImage";const Ls=S.forwardRef(({className:e,...t},r)=>u.jsx(Dg,{ref:r,className:Oe("flex h-full w-full items-center justify-center rounded-full bg-grayWarm-100 text-grayWarm-600 font-semibold",e),...t}));Ls.displayName="AvatarFallback";function Qt(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e==null||e(n),r===!1||!n.defaultPrevented)return t==null?void 0:t(n)}}function Or(e,t=[]){let r=[];function a(o,i){const l=S.createContext(i),s=r.length;r=[...r,i];const c=g=>{var C;const{scope:y,children:x,...m}=g,h=((C=y==null?void 0:y[e])==null?void 0:C[s])||l,p=S.useMemo(()=>m,Object.values(m));return u.jsx(h.Provider,{value:p,children:x})};c.displayName=o+"Provider";function d(g,y){var h;const x=((h=y==null?void 0:y[e])==null?void 0:h[s])||l,m=S.useContext(x);if(m)return m;if(i!==void 0)return i;throw new Error(`\`${g}\` must be used within \`${o}\``)}return[c,d]}const n=()=>{const o=r.map(i=>S.createContext(i));return function(l){const s=(l==null?void 0:l[e])||o;return S.useMemo(()=>({[`__scope${e}`]:{...l,[e]:s}}),[l,s])}};return n.scopeName=e,[a,Wg(n,...t)]}function Wg(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const a=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(o){const i=a.reduce((l,{useScope:s,scopeName:c})=>{const g=s(o)[`__scope${c}`];return{...l,...g}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}var Lg=S[" useInsertionEffect ".trim().toString()]||Sn;function Zn({prop:e,defaultProp:t,onChange:r=()=>{},caller:a}){const[n,o,i]=Xg({defaultProp:t,onChange:r}),l=e!==void 0,s=l?e:n;{const d=S.useRef(e!==void 0);S.useEffect(()=>{const g=d.current;g!==l&&console.warn(`${a} is changing from ${g?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=l},[l,a])}const c=S.useCallback(d=>{var g;if(l){const y=Hg(d)?d(e):d;y!==e&&((g=i.current)==null||g.call(i,y))}else o(d)},[l,e,o,i]);return[s,c]}function Xg({defaultProp:e,onChange:t}){const[r,a]=S.useState(e),n=S.useRef(r),o=S.useRef(t);return Lg(()=>{o.current=t},[t]),S.useEffect(()=>{var i;n.current!==r&&((i=o.current)==null||i.call(o,r),n.current=r)},[r,n]),[r,a,o]}function Hg(e){return typeof e=="function"}function Zg(e){const t=S.useRef({value:e,previous:e});return S.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function zg(e){const[t,r]=S.useState(void 0);return Sn(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const a=new ResizeObserver(n=>{if(!Array.isArray(n)||!n.length)return;const o=n[0];let i,l;if("borderBoxSize"in o){const s=o.borderBoxSize,c=Array.isArray(s)?s[0]:s;i=c.inlineSize,l=c.blockSize}else i=e.offsetWidth,l=e.offsetHeight;r({width:i,height:l})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else r(void 0)},[e]),t}function ma(e){const t=Yg(e),r=S.forwardRef((a,n)=>{const{children:o,...i}=a,l=S.Children.toArray(o),s=l.find(Ug);if(s){const c=s.props.children,d=l.map(g=>g===s?S.Children.count(c)>1?S.Children.only(null):S.isValidElement(c)?c.props.children:null:g);return u.jsx(t,{...i,ref:n,children:S.isValidElement(c)?S.cloneElement(c,void 0,d):null})}return u.jsx(t,{...i,ref:n,children:o})});return r.displayName=`${e}.Slot`,r}function Yg(e){const t=S.forwardRef((r,a)=>{const{children:n,...o}=r;if(S.isValidElement(n)){const i=Kg(n),l=$g(o,n.props);return n.type!==S.Fragment&&(l.ref=a?Da(a,i):i),S.cloneElement(n,l)}return S.Children.count(n)>1?S.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Jg=Symbol("radix.slottable");function Ug(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Jg}function $g(e,t){const r={...t};for(const a in t){const n=e[a],o=t[a];/^on[A-Z]/.test(a)?n&&o?r[a]=(...l)=>{const s=o(...l);return n(...l),s}:n&&(r[a]=n):a==="style"?r[a]={...n,...o}:a==="className"&&(r[a]=[n,o].filter(Boolean).join(" "))}return{...e,...r}}function Kg(e){var a,n;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Qg=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],un=Qg.reduce((e,t)=>{const r=ma(`Primitive.${t}`),a=S.forwardRef((n,o)=>{const{asChild:i,...l}=n,s=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(s,{...l,ref:o})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),jr="Switch",[qg]=Or(jr),[em,tm]=qg(jr),Xs=S.forwardRef((e,t)=>{const{__scopeSwitch:r,name:a,checked:n,defaultChecked:o,required:i,disabled:l,value:s="on",onCheckedChange:c,form:d,...g}=e,[y,x]=S.useState(null),m=Ln(t,N=>x(N)),h=S.useRef(!1),p=y?d||!!y.closest("form"):!0,[C,R]=Zn({prop:n,defaultProp:o??!1,onChange:c,caller:jr});return u.jsxs(em,{scope:r,checked:C,disabled:l,children:[u.jsx(un.button,{type:"button",role:"switch","aria-checked":C,"aria-required":i,"data-state":Ys(C),"data-disabled":l?"":void 0,disabled:l,value:s,...g,ref:m,onClick:Qt(e.onClick,N=>{R(A=>!A),p&&(h.current=N.isPropagationStopped(),h.current||N.stopPropagation())})}),p&&u.jsx(zs,{control:y,bubbles:!h.current,name:a,value:s,checked:C,required:i,disabled:l,form:d,style:{transform:"translateX(-100%)"}})]})});Xs.displayName=jr;var Hs="SwitchThumb",Zs=S.forwardRef((e,t)=>{const{__scopeSwitch:r,...a}=e,n=tm(Hs,r);return u.jsx(un.span,{"data-state":Ys(n.checked),"data-disabled":n.disabled?"":void 0,...a,ref:t})});Zs.displayName=Hs;var nm="SwitchBubbleInput",zs=S.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:a=!0,...n},o)=>{const i=S.useRef(null),l=Ln(i,o),s=Zg(r),c=zg(t);return S.useEffect(()=>{const d=i.current;if(!d)return;const g=window.HTMLInputElement.prototype,x=Object.getOwnPropertyDescriptor(g,"checked").set;if(s!==r&&x){const m=new Event("click",{bubbles:a});x.call(d,r),d.dispatchEvent(m)}},[s,r,a]),u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...n,tabIndex:-1,ref:l,style:{...n.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});zs.displayName=nm;function Ys(e){return e?"checked":"unchecked"}var rm=Xs,am=Zs;const Xa=S.forwardRef(({size:e="md",className:t,...r},a)=>{const n={sm:"w-9 h-5",md:"w-11 h-6"},o={sm:"w-4 h-4 data-[state=checked]:translate-x-4",md:"w-5 h-5 data-[state=checked]:translate-x-5"};return u.jsx(rm,{ref:a,className:Oe("peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-500 focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:bg-brand-500 data-[state=unchecked]:bg-grayWarm-200",n[e],t),...r,children:u.jsx(am,{className:Oe("pointer-events-none block rounded-full bg-white shadow-xs transition-transform data-[state=unchecked]:translate-x-0",o[e])})})});Xa.displayName="Toggle";function om(e){const t=e+"CollectionProvider",[r,a]=Or(t),[n,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=h=>{const{scope:p,children:C}=h,R=E.useRef(null),N=E.useRef(new Map).current;return u.jsx(n,{scope:p,itemMap:N,collectionRef:R,children:C})};i.displayName=t;const l=e+"CollectionSlot",s=ma(l),c=E.forwardRef((h,p)=>{const{scope:C,children:R}=h,N=o(l,C),A=Ln(p,N.collectionRef);return u.jsx(s,{ref:A,children:R})});c.displayName=l;const d=e+"CollectionItemSlot",g="data-radix-collection-item",y=ma(d),x=E.forwardRef((h,p)=>{const{scope:C,children:R,...N}=h,A=E.useRef(null),I=Ln(p,A),M=o(d,C);return E.useEffect(()=>(M.itemMap.set(A,{ref:A,...N}),()=>void M.itemMap.delete(A))),u.jsx(y,{[g]:"",ref:I,children:R})});x.displayName=d;function m(h){const p=o(e+"CollectionConsumer",h);return E.useCallback(()=>{const R=p.collectionRef.current;if(!R)return[];const N=Array.from(R.querySelectorAll(`[${g}]`));return Array.from(p.itemMap.values()).sort((M,_)=>N.indexOf(M.ref.current)-N.indexOf(_.ref.current))},[p.collectionRef,p.itemMap])}return[{Provider:i,Slot:c,ItemSlot:x},m,a]}var im=S[" useId ".trim().toString()]||(()=>{}),sm=0;function lm(e){const[t,r]=S.useState(im());return Sn(()=>{r(a=>a??String(sm++))},[e]),t?`radix-${t}`:""}var um=S.createContext(void 0);function Js(e){const t=S.useContext(um);return e||t||"ltr"}var qr="rovingFocusGroup.onEntryFocus",cm={bubbles:!1,cancelable:!0},zn="RovingFocusGroup",[ba,Us,dm]=om(zn),[fm,$s]=Or(zn,[dm]),[pm,gm]=fm(zn),Ks=S.forwardRef((e,t)=>u.jsx(ba.Provider,{scope:e.__scopeRovingFocusGroup,children:u.jsx(ba.Slot,{scope:e.__scopeRovingFocusGroup,children:u.jsx(mm,{...e,ref:t})})}));Ks.displayName=zn;var mm=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:a,loop:n=!1,dir:o,currentTabStopId:i,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:s,onEntryFocus:c,preventScrollOnEntryFocus:d=!1,...g}=e,y=S.useRef(null),x=Ln(t,y),m=Js(o),[h,p]=Zn({prop:i,defaultProp:l??null,onChange:s,caller:zn}),[C,R]=S.useState(!1),N=Os(c),A=Us(r),I=S.useRef(!1),[M,_]=S.useState(0);return S.useEffect(()=>{const B=y.current;if(B)return B.addEventListener(qr,N),()=>B.removeEventListener(qr,N)},[N]),u.jsx(pm,{scope:r,orientation:a,dir:m,loop:n,currentTabStopId:h,onItemFocus:S.useCallback(B=>p(B),[p]),onItemShiftTab:S.useCallback(()=>R(!0),[]),onFocusableItemAdd:S.useCallback(()=>_(B=>B+1),[]),onFocusableItemRemove:S.useCallback(()=>_(B=>B-1),[]),children:u.jsx(un.div,{tabIndex:C||M===0?-1:0,"data-orientation":a,...g,ref:x,style:{outline:"none",...e.style},onMouseDown:Qt(e.onMouseDown,()=>{I.current=!0}),onFocus:Qt(e.onFocus,B=>{const se=!I.current;if(B.target===B.currentTarget&&se&&!C){const te=new CustomEvent(qr,cm);if(B.currentTarget.dispatchEvent(te),!te.defaultPrevented){const fe=A().filter(k=>k.focusable),$=fe.find(k=>k.active),ce=fe.find(k=>k.id===h),j=[$,ce,...fe].filter(Boolean).map(k=>k.ref.current);el(j,d)}}I.current=!1}),onBlur:Qt(e.onBlur,()=>R(!1))})})}),Qs="RovingFocusGroupItem",qs=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:a=!0,active:n=!1,tabStopId:o,children:i,...l}=e,s=lm(),c=o||s,d=gm(Qs,r),g=d.currentTabStopId===c,y=Us(r),{onFocusableItemAdd:x,onFocusableItemRemove:m,currentTabStopId:h}=d;return S.useEffect(()=>{if(a)return x(),()=>m()},[a,x,m]),u.jsx(ba.ItemSlot,{scope:r,id:c,focusable:a,active:n,children:u.jsx(un.span,{tabIndex:g?0:-1,"data-orientation":d.orientation,...l,ref:t,onMouseDown:Qt(e.onMouseDown,p=>{a?d.onItemFocus(c):p.preventDefault()}),onFocus:Qt(e.onFocus,()=>d.onItemFocus(c)),onKeyDown:Qt(e.onKeyDown,p=>{if(p.key==="Tab"&&p.shiftKey){d.onItemShiftTab();return}if(p.target!==p.currentTarget)return;const C=vm(p,d.orientation,d.dir);if(C!==void 0){if(p.metaKey||p.ctrlKey||p.altKey||p.shiftKey)return;p.preventDefault();let N=y().filter(A=>A.focusable).map(A=>A.ref.current);if(C==="last")N.reverse();else if(C==="prev"||C==="next"){C==="prev"&&N.reverse();const A=N.indexOf(p.currentTarget);N=d.loop?ym(N,A+1):N.slice(A+1)}setTimeout(()=>el(N))}}),children:typeof i=="function"?i({isCurrentTabStop:g,hasTabStop:h!=null}):i})})});qs.displayName=Qs;var bm={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function hm(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function vm(e,t,r){const a=hm(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return bm[a]}function el(e,t=!1){const r=document.activeElement;for(const a of e)if(a===r||(a.focus({preventScroll:t}),document.activeElement!==r))return}function ym(e,t){return e.map((r,a)=>e[(t+a)%e.length])}var Cm=Ks,xm=qs,tl="Toggle",nl=S.forwardRef((e,t)=>{const{pressed:r,defaultPressed:a,onPressedChange:n,...o}=e,[i,l]=Zn({prop:r,onChange:n,defaultProp:a??!1,caller:tl});return u.jsx(un.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0,...o,ref:t,onClick:Qt(e.onClick,()=>{e.disabled||l(!i)})})});nl.displayName=tl;var en="ToggleGroup",[rl]=Or(en,[$s]),al=$s(),Ha=E.forwardRef((e,t)=>{const{type:r,...a}=e;if(r==="single"){const n=a;return u.jsx(Im,{...n,ref:t})}if(r==="multiple"){const n=a;return u.jsx(Sm,{...n,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${en}\``)});Ha.displayName=en;var[ol,il]=rl(en),Im=E.forwardRef((e,t)=>{const{value:r,defaultValue:a,onValueChange:n=()=>{},...o}=e,[i,l]=Zn({prop:r,defaultProp:a??"",onChange:n,caller:en});return u.jsx(ol,{scope:e.__scopeToggleGroup,type:"single",value:E.useMemo(()=>i?[i]:[],[i]),onItemActivate:l,onItemDeactivate:E.useCallback(()=>l(""),[l]),children:u.jsx(sl,{...o,ref:t})})}),Sm=E.forwardRef((e,t)=>{const{value:r,defaultValue:a,onValueChange:n=()=>{},...o}=e,[i,l]=Zn({prop:r,defaultProp:a??[],onChange:n,caller:en}),s=E.useCallback(d=>l((g=[])=>[...g,d]),[l]),c=E.useCallback(d=>l((g=[])=>g.filter(y=>y!==d)),[l]);return u.jsx(ol,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:s,onItemDeactivate:c,children:u.jsx(sl,{...o,ref:t})})});Ha.displayName=en;var[Am,wm]=rl(en),sl=E.forwardRef((e,t)=>{const{__scopeToggleGroup:r,disabled:a=!1,rovingFocus:n=!0,orientation:o,dir:i,loop:l=!0,...s}=e,c=al(r),d=Js(i),g={role:"group",dir:d,...s};return u.jsx(Am,{scope:r,rovingFocus:n,disabled:a,children:n?u.jsx(Cm,{asChild:!0,...c,orientation:o,dir:d,loop:l,children:u.jsx(un.div,{...g,ref:t})}):u.jsx(un.div,{...g,ref:t})})}),Ar="ToggleGroupItem",ll=E.forwardRef((e,t)=>{const r=il(Ar,e.__scopeToggleGroup),a=wm(Ar,e.__scopeToggleGroup),n=al(e.__scopeToggleGroup),o=r.value.includes(e.value),i=a.disabled||e.disabled,l={...e,pressed:o,disabled:i},s=E.useRef(null);return a.rovingFocus?u.jsx(xm,{asChild:!0,...n,focusable:!i,active:o,ref:s,children:u.jsx(ti,{...l,ref:t})}):u.jsx(ti,{...l,ref:t})});ll.displayName=Ar;var ti=E.forwardRef((e,t)=>{const{__scopeToggleGroup:r,value:a,...n}=e,o=il(Ar,r),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},l=o.type==="single"?i:void 0;return u.jsx(nl,{...l,...n,ref:t,onPressedChange:s=>{s?o.onItemActivate(a):o.onItemDeactivate(a)}})}),Em=Ha,Rm=ll;const ul=S.forwardRef(({className:e,...t},r)=>u.jsx(Em,{ref:r,className:Oe("inline-flex items-center rounded-lg border border-grayWarm-200 overflow-hidden",e),...t}));ul.displayName="ToggleGroup";const cl=S.forwardRef(({className:e,children:t,...r},a)=>u.jsx(Rm,{ref:a,className:Oe("inline-flex items-center justify-center px-4 py-2 text-sm font-semibold transition-colors","border-r border-grayWarm-200 last:border-r-0","data-[state=on]:bg-grayWarm-100 data-[state=on]:text-grayWarm-950","data-[state=off]:bg-white data-[state=off]:text-grayWarm-600 data-[state=off]:hover:bg-grayWarm-50","focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500",e),...r,children:t}));cl.displayName="ToggleGroupItem";const dl=S.forwardRef(({className:e,...t},r)=>u.jsx("textarea",{ref:r,className:Oe("flex min-h-[80px] w-full rounded-lg border border-grayWarm-200 bg-white px-3.5 py-2.5 text-base text-grayWarm-950","placeholder:text-grayWarm-400","focus:outline-none focus:ring-2 focus:ring-brand-500 focus:border-brand-500","disabled:cursor-not-allowed disabled:opacity-50","resize-vertical",e),...t}));dl.displayName="Textarea";const fl=({currentPage:e,totalPages:t,onPageChange:r,className:a})=>{const n=()=>{const o=[];if(t<=7){for(let s=1;s<=t;s++)o.push(s);return o}o.push(1),e>3&&o.push("...");const i=Math.max(2,e-1),l=Math.min(t-1,e+1);for(let s=i;s<=l;s++)o.push(s);return e<t-2&&o.push("..."),o.push(t),o};return u.jsxs("nav",{className:Oe("flex items-center justify-between",a),children:[u.jsxs("button",{onClick:()=>r(e-1),disabled:e<=1,className:Oe("inline-flex items-center gap-1.5 px-3 py-2 text-sm font-semibold rounded-lg transition-colors","text-grayWarm-600 hover:bg-grayWarm-50","disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-transparent"),children:[u.jsx(mg,{className:"w-4 h-4"}),"Previous"]}),u.jsx("div",{className:"flex items-center gap-0.5",children:n().map((o,i)=>o==="..."?u.jsx("span",{className:"w-10 h-10 flex items-center justify-center text-sm text-grayWarm-500",children:"..."},`ellipsis-${i}`):u.jsx("button",{onClick:()=>r(o),className:Oe("w-10 h-10 flex items-center justify-center text-sm font-medium rounded-lg transition-colors",o===e?"bg-grayWarm-100 text-grayWarm-950":"text-grayWarm-600 hover:bg-grayWarm-50"),children:o},o))}),u.jsxs("button",{onClick:()=>r(e+1),disabled:e>=t,className:Oe("inline-flex items-center gap-1.5 px-3 py-2 text-sm font-semibold rounded-lg transition-colors","text-grayWarm-600 hover:bg-grayWarm-50","disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-transparent"),children:["Next",u.jsx(bg,{className:"w-4 h-4"})]})]})};fl.displayName="Pagination";const pl=S.forwardRef(({className:e,...t},r)=>u.jsxs("div",{className:Oe("relative",e),children:[u.jsx(hg,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-grayWarm-400"}),u.jsx("input",{ref:r,type:"search",className:Oe("w-full rounded-lg border border-grayWarm-200 bg-white pl-10 pr-3.5 py-2.5 text-base text-grayWarm-950","placeholder:text-grayWarm-400","focus:outline-none focus:ring-2 focus:ring-brand-500 focus:border-brand-500"),...t})]}));pl.displayName="SearchInput";const gl=S.forwardRef(({variant:e="default",onRemove:t,className:r,children:a,...n},o)=>{const i={default:"bg-white border-grayWarm-200 text-grayWarm-700",selected:"bg-brand-50 border-brand-300 text-brand-600"};return u.jsxs("span",{ref:o,className:Oe("inline-flex items-center gap-1.5 px-3 py-1 rounded-full border text-sm font-medium",i[e],r),...n,children:[a,t&&u.jsx("button",{onClick:t,className:"inline-flex items-center justify-center w-4 h-4 rounded-full hover:bg-grayWarm-200 transition-colors",children:u.jsx(vg,{className:"w-3 h-3"})})]})});gl.displayName="Chip";const ha=({value:e,onChange:t,travelerType:r,departureDate:a,uniqueId:n,label:o="Date of Birth",yearDirection:i="past",errorState:l=!1,labelClassName:s,className:c,monthSearchable:d=!1})=>{const g=["January","February","March","April","May","June","July","August","September","October","November","December"],y=new Date().getUTCFullYear(),x=E.useMemo(()=>i==="future"?Array.from({length:21},(T,j)=>y+j):Array.from({length:120},(T,j)=>y-j),[y,i]),[m,h]=E.useState(e?new Date(e).getUTCMonth():void 0),[p,C]=E.useState(e?new Date(e).getUTCDate():void 0),[R,N]=E.useState(e?new Date(e).getUTCFullYear():void 0),A=(T,j)=>new Date(Date.UTC(j,T+1,0)).getUTCDate(),I=E.useMemo(()=>m!==void 0?A(m,R??2e3):31,[m,R]),M=E.useRef(void 0);E.useEffect(()=>{if(e&&e!==M.current)try{const T=new Date(e);isNaN(T.getTime())||(h(T.getUTCMonth()),C(T.getUTCDate()),N(T.getUTCFullYear()))}catch(T){console.error("Invalid date format:",T)}},[e]),E.useEffect(()=>{p!==void 0&&p>I&&C(I)},[I,p]),E.useEffect(()=>{if(m!==void 0&&p!==void 0&&R!==void 0){const T=Math.min(p,A(m,R)),j=new Date(Date.UTC(R,m,T)),k=j.toISOString();if(M.current=k,e){const J=new Date(e);if(!isNaN(J.getTime())&&J.getTime()===j.getTime())return}t(k)}},[m,p,R]);const _=T=>{T&&h(g.indexOf(T.value))},B=T=>{if(T===""){C(void 0);return}const j=parseInt(T,10);isNaN(j)||C(Math.min(Math.max(j,1),I))},se=T=>{if(T){const j=parseInt(T.value,10);isNaN(j)||N(j)}},te=l&&m===void 0,fe=l&&p===void 0,$=l&&R===void 0,ce=T=>T?{control:(j,k)=>({...j,borderRadius:"0.5rem",borderColor:"#EF4444",boxShadow:"none","&:hover":{borderColor:"#EF4444"},minHeight:"2.5rem",height:"2.5rem",cursor:"pointer"})}:{};return u.jsxs("div",{className:c||"mt-7",children:[u.jsx("p",{className:s||"text-sm md:text-base font-semibold",children:o}),u.jsxs("div",{className:"flex flex-row gap-4 mt-2",children:[u.jsx("div",{className:"relative w-full md:max-w-[140px]",children:u.jsx(Wn,{value:m!==void 0?{value:g[m],label:g[m]}:null,options:g.map(T=>({value:T,label:T})),placeholder:"Month*",onChange:_,styles:ce(te),isSearchable:d})}),u.jsx("div",{className:"relative w-full md:max-w-[80px]",children:u.jsx(Ft,{type:"text",inputMode:"numeric",required:!0,placeholder:"Day",value:p!==void 0?p:"",onChange:T=>B(T.target.value),disabled:m===void 0,max:I,min:1,className:`text-xs md:text-sm border-grayWarm-300 rounded-lg h-10${fe?" border-error-500":""}`,id:`date-dropdowns-day-${n}`,name:"date-dropdowns-day"})}),u.jsx("div",{className:"relative w-full md:max-w-[140px]",children:u.jsx(Wn,{value:R!==void 0?{value:R.toString(),label:R.toString()}:null,options:x.map(T=>({value:T.toString(),label:T.toString()})),placeholder:"Year*",onChange:se,styles:ce($),isSearchable:!0})})]})]})};var $t={},Mr={};Object.defineProperty(Mr,"__esModule",{value:!0});Mr.Gender=void 0;var ni;(function(e){e.MALE="male",e.FEMALE="female",e.DEFAULT=""})(ni||(Mr.Gender=ni={}));var kr={};Object.defineProperty(kr,"__esModule",{value:!0});kr.CustomerResourceType=void 0;var ri;(function(e){e.STORAGE="storage",e.HOSTING="hosting",e.DNS="dns",e.AUTHENTICATION="authentication",e.AUTHORIZATION="authorization"})(ri||(kr.CustomerResourceType=ri={}));var ml={};Object.defineProperty(ml,"__esModule",{value:!0});var qt={};Object.defineProperty(qt,"__esModule",{value:!0});qt.TravelerType=qt.FlightOfferSegmentLegType=qt.FlightOfferDataSource=void 0;var ai;(function(e){e.Amadeus="amadeus"})(ai||(qt.FlightOfferDataSource=ai={}));var oi;(function(e){e.Inbound="inbound",e.Outbound="outbound"})(oi||(qt.FlightOfferSegmentLegType=oi={}));var ii;(function(e){e.ADULT="adult",e.CHILD="child",e.INFANT="infant"})(ii||(qt.TravelerType=ii={}));var Fr={};Object.defineProperty(Fr,"__esModule",{value:!0});Fr.OTPAction=void 0;var si;(function(e){e.EMAILED="emailed",e.TEXTED="texted"})(si||(Fr.OTPAction=si={}));var bl={};Object.defineProperty(bl,"__esModule",{value:!0});var hl={};Object.defineProperty(hl,"__esModule",{value:!0});var vl={};Object.defineProperty(vl,"__esModule",{value:!0});var yl={};Object.defineProperty(yl,"__esModule",{value:!0});var Cl={};Object.defineProperty(Cl,"__esModule",{value:!0});var xl={};Object.defineProperty(xl,"__esModule",{value:!0});var Il={};Object.defineProperty(Il,"__esModule",{value:!0});var Sl={};Object.defineProperty(Sl,"__esModule",{value:!0});var Al={};Object.defineProperty(Al,"__esModule",{value:!0});var wl={};Object.defineProperty(wl,"__esModule",{value:!0});var Vt={};Object.defineProperty(Vt,"__esModule",{value:!0});Vt.MOVMO_PARTNER_ORIGINS=Vt.MOVMO_FLIGHTS_ORIGINS=Vt.MovmoFrameMessageType=void 0;Vt.isTrustedOrigin=Nm;var li;(function(e){e.READY="MOVMO_READY",e.INIT="MOVMO_INIT",e.BOOKING_COMPLETE="MOVMO_BOOKING_COMPLETE",e.BOOKING_FAILED="MOVMO_BOOKING_FAILED",e.RECOGNITION_STATE="MOVMO_RECOGNITION_STATE",e.RECOGNITION_TOKEN="MOVMO_RECOGNITION_TOKEN",e.RECOGNITION_RESIZE="MOVMO_RECOGNITION_RESIZE",e.RECOGNITION_CONNECT="MOVMO_RECOGNITION_CONNECT",e.RECOGNITION_ERROR="MOVMO_RECOGNITION_ERROR",e.RECOGNITION_SIGNED_OUT="MOVMO_RECOGNITION_SIGNED_OUT"})(li||(Vt.MovmoFrameMessageType=li={}));Vt.MOVMO_FLIGHTS_ORIGINS={prod:["https://flights.movmo.io"],nonProd:["https://flights.e2e.movmo.io","http://localhost:3000"]};Vt.MOVMO_PARTNER_ORIGINS={prod:[],nonProd:["https://mockairline-e2e.app.flyeasyapp.com","https://mockairline-e2e.app.movmoapp.com","http://localhost:3000"]};function Nm(e,t,{isProd:r,extraOrigins:a=[]}){if(r)return t.prod.includes(e);const n=[...t.nonProd];for(const o of a)if(o)try{n.push(new URL(o).origin)}catch{console.warn(`[movmo] isTrustedOrigin: ignoring malformed extra origin "${o}"`)}return n.includes(e)}var Za={};Object.defineProperty(Za,"__esModule",{value:!0});Za.mapIdentityPartners=Gm;function Gm(e){var t;return((t=e==null?void 0:e.partners)!==null&&t!==void 0?t:[]).map(r=>{var a;return{clientId:r.client_id,airlineName:r.airline_name,airlineDomain:r.airline_domain,providerId:r.provider_id,supportedScopes:(a=r.supported_scopes)!==null&&a!==void 0?a:[]}})}var El={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PAIR_COPY=e.SCOPE_COPY=void 0,e.displayRows=t,e.SCOPE_COPY={"profile.read":{label:"View your profile",detail:"Name and contact details"},"profile.write":{label:"Update your profile",detail:"Including your profile photo"},"preferences.read":{label:"View your travel preferences",detail:"Seat, meal, and assistance preferences; language and currency"},"preferences.write":{label:"Update your travel preferences"},"passengers.read":{label:"View your saved travelers",detail:"Including travel document details"},"passengers.write":{label:"Add, update, and remove saved travelers"},"payments.read":{label:"View saved payment methods",detail:"Card brand and last 4 digits only — never full numbers"},"payments.write":{label:"Update or remove saved payment methods",detail:"Cannot add new cards"},"loyalty.read":{label:"View your loyalty status",detail:"Your membership in that airline's loyalty program"},"bookings.read":{label:"View your bookings and trip history"},"bookings.write":{label:"Search and book flights",detail:"Bookings are charged to a saved payment method"}},e.PAIR_COPY={profile:{label:"View and manage your profile",detail:"Name, contact details, and profile photo"},preferences:{label:"View and manage your travel preferences",detail:"Update seat, meal, and assistance preferences you’ve saved"},passengers:{label:"View and manage saved travelers",detail:"Add, update, and remove travelers — including travel document details"},payments:{label:"View and manage saved payment methods",detail:"Card brand and last 4 digits only — never full numbers. Can’t add new cards."}};function t(r){const a=new Set(r),n=new Set,o=[];for(const i of r){const[l]=i.split("."),s=e.PAIR_COPY[l],c=a.has(`${l}.read`)&&a.has(`${l}.write`);if(s&&c){n.has(l)||(n.add(l),o.push(Object.assign(Object.assign({},s),{key:l,scopes:[`${l}.read`,`${l}.write`]})));continue}const d=e.SCOPE_COPY[i];o.push(d?Object.assign(Object.assign({},d),{key:i,scopes:[i]}):{label:i,key:i,scopes:[i]})}return o}})(El);var Rl={};Object.defineProperty(Rl,"__esModule",{value:!0});(function(e){var t=tr&&tr.__createBinding||(Object.create?function(a,n,o,i){i===void 0&&(i=o);var l=Object.getOwnPropertyDescriptor(n,o);(!l||("get"in l?!n.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(a,i,l)}:function(a,n,o,i){i===void 0&&(i=o),a[i]=n[o]}),r=tr&&tr.__exportStar||function(a,n){for(var o in a)o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&t(n,a,o)};Object.defineProperty(e,"__esModule",{value:!0}),r(Mr,e),r(kr,e),r(ml,e),r(qt,e),r(Fr,e),r(bl,e),r(hl,e),r(vl,e),r(yl,e),r(Cl,e),r(xl,e),r(Il,e),r(Sl,e),r(Al,e),r(wl,e),r(Vt,e),r(Za,e),r(El,e),r(Rl,e)})($t);const va=[{value:"US",label:"United States"},{value:"CA",label:"Canada"},{value:"GB",label:"United Kingdom"},{value:"AU",label:"Australia"},{value:"AF",label:"Afghanistan"},{value:"AX",label:"Åland Islands"},{value:"AL",label:"Albania"},{value:"DZ",label:"Algeria"},{value:"AS",label:"American Samoa"},{value:"AD",label:"Andorra"},{value:"AO",label:"Angola"},{value:"AI",label:"Anguilla"},{value:"AQ",label:"Antarctica"},{value:"AG",label:"Antigua and Barbuda"},{value:"AR",label:"Argentina"},{value:"AM",label:"Armenia"},{value:"AW",label:"Aruba"},{value:"AT",label:"Austria"},{value:"AZ",label:"Azerbaijan"},{value:"BS",label:"Bahamas"},{value:"BH",label:"Bahrain"},{value:"BD",label:"Bangladesh"},{value:"BB",label:"Barbados"},{value:"BY",label:"Belarus"},{value:"BE",label:"Belgium"},{value:"BZ",label:"Belize"},{value:"BJ",label:"Benin"},{value:"BM",label:"Bermuda"},{value:"BT",label:"Bhutan"},{value:"BO",label:"Bolivia"},{value:"BQ",label:"Bonaire, Sint Eustatius and Saba"},{value:"BA",label:"Bosnia and Herzegovina"},{value:"BW",label:"Botswana"},{value:"BV",label:"Bouvet Island"},{value:"BR",label:"Brazil"},{value:"IO",label:"British Indian Ocean Territory"},{value:"BN",label:"Brunei Darussalam"},{value:"BG",label:"Bulgaria"},{value:"BF",label:"Burkina Faso"},{value:"BI",label:"Burundi"},{value:"CV",label:"Cabo Verde"},{value:"KH",label:"Cambodia"},{value:"CM",label:"Cameroon"},{value:"KY",label:"Cayman Islands"},{value:"CF",label:"Central African Republic"},{value:"TD",label:"Chad"},{value:"CL",label:"Chile"},{value:"CN",label:"China"},{value:"CX",label:"Christmas Island"},{value:"CC",label:"Cocos (Keeling) Islands"},{value:"CO",label:"Colombia"},{value:"KM",label:"Comoros"},{value:"CG",label:"Congo"},{value:"CD",label:"Congo, Democratic Republic of the"},{value:"CK",label:"Cook Islands"},{value:"CR",label:"Costa Rica"},{value:"CI",label:"Côte d'Ivoire"},{value:"HR",label:"Croatia"},{value:"CU",label:"Cuba"},{value:"CW",label:"Curaçao"},{value:"CY",label:"Cyprus"},{value:"CZ",label:"Czechia"},{value:"DK",label:"Denmark"},{value:"DJ",label:"Djibouti"},{value:"DM",label:"Dominica"},{value:"DO",label:"Dominican Republic"},{value:"EC",label:"Ecuador"},{value:"EG",label:"Egypt"},{value:"SV",label:"El Salvador"},{value:"GQ",label:"Equatorial Guinea"},{value:"ER",label:"Eritrea"},{value:"EE",label:"Estonia"},{value:"SZ",label:"Eswatini"},{value:"ET",label:"Ethiopia"},{value:"FK",label:"Falkland Islands (Malvinas)"},{value:"FO",label:"Faroe Islands"},{value:"FJ",label:"Fiji"},{value:"FI",label:"Finland"},{value:"FR",label:"France"},{value:"GF",label:"French Guiana"},{value:"PF",label:"French Polynesia"},{value:"TF",label:"French Southern Territories"},{value:"GA",label:"Gabon"},{value:"GM",label:"Gambia"},{value:"GE",label:"Georgia"},{value:"DE",label:"Germany"},{value:"GH",label:"Ghana"},{value:"GI",label:"Gibraltar"},{value:"GR",label:"Greece"},{value:"GL",label:"Greenland"},{value:"GD",label:"Grenada"},{value:"GP",label:"Guadeloupe"},{value:"GU",label:"Guam"},{value:"GT",label:"Guatemala"},{value:"GG",label:"Guernsey"},{value:"GN",label:"Guinea"},{value:"GW",label:"Guinea-Bissau"},{value:"GY",label:"Guyana"},{value:"HT",label:"Haiti"},{value:"HM",label:"Heard Island and McDonald Islands"},{value:"VA",label:"Holy See"},{value:"HN",label:"Honduras"},{value:"HK",label:"Hong Kong"},{value:"HU",label:"Hungary"},{value:"IS",label:"Iceland"},{value:"IN",label:"India"},{value:"ID",label:"Indonesia"},{value:"IR",label:"Iran, Islamic Republic of"},{value:"IQ",label:"Iraq"},{value:"IE",label:"Ireland"},{value:"IM",label:"Isle of Man"},{value:"IL",label:"Israel"},{value:"IT",label:"Italy"},{value:"JM",label:"Jamaica"},{value:"JP",label:"Japan"},{value:"JE",label:"Jersey"},{value:"JO",label:"Jordan"},{value:"KZ",label:"Kazakhstan"},{value:"KE",label:"Kenya"},{value:"KI",label:"Kiribati"},{value:"KP",label:"Korea, Democratic People's Republic of"},{value:"KR",label:"Korea, Republic of"},{value:"KW",label:"Kuwait"},{value:"KG",label:"Kyrgyzstan"},{value:"LA",label:"Lao People's Democratic Republic"},{value:"LV",label:"Latvia"},{value:"LB",label:"Lebanon"},{value:"LS",label:"Lesotho"},{value:"LR",label:"Liberia"},{value:"LY",label:"Libya"},{value:"LI",label:"Liechtenstein"},{value:"LT",label:"Lithuania"},{value:"LU",label:"Luxembourg"},{value:"MO",label:"Macao"},{value:"MG",label:"Madagascar"},{value:"MW",label:"Malawi"},{value:"MY",label:"Malaysia"},{value:"MV",label:"Maldives"},{value:"ML",label:"Mali"},{value:"MT",label:"Malta"},{value:"MH",label:"Marshall Islands"},{value:"MQ",label:"Martinique"},{value:"MR",label:"Mauritania"},{value:"MU",label:"Mauritius"},{value:"YT",label:"Mayotte"},{value:"MX",label:"Mexico"},{value:"FM",label:"Micronesia, Federated States of"},{value:"MD",label:"Moldova, Republic of"},{value:"MC",label:"Monaco"},{value:"MN",label:"Mongolia"},{value:"ME",label:"Montenegro"},{value:"MS",label:"Montserrat"},{value:"MA",label:"Morocco"},{value:"MZ",label:"Mozambique"},{value:"MM",label:"Myanmar"},{value:"NA",label:"Namibia"},{value:"NR",label:"Nauru"},{value:"NP",label:"Nepal"},{value:"NL",label:"Netherlands"},{value:"NC",label:"New Caledonia"},{value:"NZ",label:"New Zealand"},{value:"NI",label:"Nicaragua"},{value:"NE",label:"Niger"},{value:"NG",label:"Nigeria"},{value:"NU",label:"Niue"},{value:"NF",label:"Norfolk Island"},{value:"MK",label:"North Macedonia"},{value:"MP",label:"Northern Mariana Islands"},{value:"NO",label:"Norway"},{value:"OM",label:"Oman"},{value:"PK",label:"Pakistan"},{value:"PW",label:"Palau"},{value:"PS",label:"Palestine, State of"},{value:"PA",label:"Panama"},{value:"PG",label:"Papua New Guinea"},{value:"PY",label:"Paraguay"},{value:"PE",label:"Peru"},{value:"PH",label:"Philippines"},{value:"PN",label:"Pitcairn"},{value:"PL",label:"Poland"},{value:"PT",label:"Portugal"},{value:"PR",label:"Puerto Rico"},{value:"QA",label:"Qatar"},{value:"RE",label:"Réunion"},{value:"RO",label:"Romania"},{value:"RU",label:"Russian Federation"},{value:"RW",label:"Rwanda"},{value:"BL",label:"Saint Barthélemy"},{value:"SH",label:"Saint Helena, Ascension and Tristan da Cunha"},{value:"KN",label:"Saint Kitts and Nevis"},{value:"LC",label:"Saint Lucia"},{value:"MF",label:"Saint Martin (French part)"},{value:"PM",label:"Saint Pierre and Miquelon"},{value:"VC",label:"Saint Vincent and the Grenadines"},{value:"WS",label:"Samoa"},{value:"SM",label:"San Marino"},{value:"ST",label:"Sao Tome and Principe"},{value:"SA",label:"Saudi Arabia"},{value:"SN",label:"Senegal"},{value:"RS",label:"Serbia"},{value:"SC",label:"Seychelles"},{value:"SL",label:"Sierra Leone"},{value:"SG",label:"Singapore"},{value:"SX",label:"Sint Maarten (Dutch part)"},{value:"SK",label:"Slovakia"},{value:"SI",label:"Slovenia"},{value:"SB",label:"Solomon Islands"},{value:"SO",label:"Somalia"},{value:"ZA",label:"South Africa"},{value:"GS",label:"South Georgia and the South Sandwich Islands"},{value:"SS",label:"South Sudan"},{value:"ES",label:"Spain"},{value:"LK",label:"Sri Lanka"},{value:"SD",label:"Sudan"},{value:"SR",label:"Suriname"},{value:"SJ",label:"Svalbard and Jan Mayen"},{value:"SE",label:"Sweden"},{value:"CH",label:"Switzerland"},{value:"SY",label:"Syrian Arab Republic"},{value:"TW",label:"Taiwan, Province of China"},{value:"TJ",label:"Tajikistan"},{value:"TZ",label:"Tanzania, United Republic of"},{value:"TH",label:"Thailand"},{value:"TL",label:"Timor-Leste"},{value:"TG",label:"Togo"},{value:"TK",label:"Tokelau"},{value:"TO",label:"Tonga"},{value:"TT",label:"Trinidad and Tobago"},{value:"TN",label:"Tunisia"},{value:"TR",label:"Turkey"},{value:"TM",label:"Turkmenistan"},{value:"TC",label:"Turks and Caicos Islands"},{value:"TV",label:"Tuvalu"},{value:"UG",label:"Uganda"},{value:"UA",label:"Ukraine"},{value:"AE",label:"United Arab Emirates"},{value:"UM",label:"United States Minor Outlying Islands"},{value:"UY",label:"Uruguay"},{value:"UZ",label:"Uzbekistan"},{value:"VU",label:"Vanuatu"},{value:"VE",label:"Venezuela, Bolivarian Republic of"},{value:"VN",label:"Viet Nam"},{value:"VG",label:"Virgin Islands, British"},{value:"VI",label:"Virgin Islands, U.S."},{value:"WF",label:"Wallis and Futuna"},{value:"EH",label:"Western Sahara"},{value:"YE",label:"Yemen"},{value:"ZM",label:"Zambia"},{value:"ZW",label:"Zimbabwe"}],Pm=({firstName:e,setFirstName:t,middleName:r,setMiddleName:a,lastName:n,setLastName:o,gender:i,setGender:l,knownTravelerNumber:s,setKnownTravelerNumber:c,dateOfBirth:d,setDateOfBirth:g,travelerType:y,departureDate:x,uniqueId:m,ktnAdornment:h,additionalFields:p,errorState:C=!1,errorMessage:R,firstNameError:N=!1,firstNameErrorMessage:A,middleNameError:I=!1,middleNameErrorMessage:M,lastNameError:_=!1,lastNameErrorMessage:B,showPassportFields:se=!1,passportNumber:te,setPassportNumber:fe,issuingCountry:$,setIssuingCountry:ce,expirationDate:T,setExpirationDate:j,passportErrorState:k=!1,passportErrorMessage:J})=>{const pe=Object.values($t.Gender).filter(D=>D!==$t.Gender.DEFAULT).map(D=>({value:D.toString(),label:D.charAt(0).toUpperCase()+D.slice(1)})),ue=D=>{D&&(D.value===$t.Gender.MALE?l($t.Gender.MALE):D.value===$t.Gender.FEMALE&&l($t.Gender.FEMALE))};return u.jsxs("div",{children:[u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-3 place-content-center",children:[u.jsxs("div",{className:"md:order-none order-1",children:[u.jsx(Ft,{type:"text",required:!0,placeholder:"First name",value:e,onChange:D=>t(D.target.value),className:`text-xs md:text-sm${N?" border-error-500":""}`,id:`passenger-first-name-${m}`,name:`passenger-first-name-${m}`}),N&&A&&u.jsx("p",{className:"text-error-700 text-sm mt-1",children:A})]}),u.jsxs("div",{className:"md:order-none order-2",children:[u.jsx(Ft,{type:"text",required:!1,placeholder:"Middle name",value:r,onChange:D=>a(D.target.value),className:`text-xs md:text-sm${I?" border-error-500":""}`,id:`passenger-middle-name-${m}`,name:`passenger-middle-name-${m}`}),I&&M&&u.jsx("p",{className:"text-error-700 text-sm mt-1",children:M})]}),u.jsxs("div",{className:"md:order-none order-3",children:[u.jsx(Ft,{type:"text",required:!0,placeholder:"Last name",value:n,onChange:D=>o(D.target.value),className:`text-xs md:text-sm${_?" border-error-500":""}`,id:`passenger-last-name-${m}`,name:`passenger-last-name-${m}`}),_&&B&&u.jsx("p",{className:"text-error-700 text-sm mt-1",children:B})]})]}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 place-content-center mt-3",children:[u.jsx("div",{className:"md:order-none order-1",children:u.jsx(Wn,{value:pe.find(D=>D.value===i)||null,placeholder:"Gender",options:pe,onChange:ue,"data-testid":"gender-dropdown"})}),u.jsxs("div",{className:"md:order-none order-2 relative",children:[u.jsx(Ft,{type:"text",placeholder:"Known traveler number",value:s,onChange:D=>c(D.target.value),className:"text-xs md:text-sm pr-10",id:`passenger-known-traveler-number-${m}`,name:`passenger-known-traveler-number-${m}`}),h]})]}),p,u.jsx(ha,{value:d,onChange:g,travelerType:y,departureDate:x,uniqueId:m}),se&&(()=>{const D=k&&!(te||"").trim(),L=k&&!($||"").trim(),Y=k&&!(T||"").trim(),ie=L?{control:(X,b)=>({...X,borderRadius:"0.5rem",borderColor:"#EF4444",boxShadow:"none","&:hover":{borderColor:"#EF4444"},minHeight:"2.5rem",height:"2.5rem",cursor:"pointer"})}:{};return u.jsxs("div",{className:"mt-7",children:[u.jsx("p",{className:"text-sm md:text-base font-semibold",children:"Passport information"}),k&&J&&u.jsx("p",{className:"text-error-700 text-sm mt-1",children:J}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 mt-2",children:[u.jsx(Ft,{type:"text",placeholder:"Passport number",required:!0,value:te||"",onChange:X=>fe==null?void 0:fe(X.target.value),className:`text-xs md:text-sm${D?" border-error-500":""}`,id:`passport-number-${m}`,name:`passport-number-${m}`}),u.jsx(Wn,{value:$&&va.find(X=>X.value===$)||null,placeholder:"Issuing country",options:va,isSearchable:!0,onChange:X=>ce==null?void 0:ce((X==null?void 0:X.value)||""),styles:ie})]}),u.jsx(ha,{value:T,onChange:X=>j==null?void 0:j(X),label:"Expiration date",labelClassName:"text-sm font-medium text-grayWarm-600",className:"mt-4",yearDirection:"future",uniqueId:m?`passport-exp-${m}`:void 0,errorState:Y})]})})(),C&&u.jsx("div",{className:"text-error-700 text-sm mt-3",children:R||"Error saving passenger. Please try again."})]})},Tm=E.createContext({}),Nl=!0;function Om({baseColor:e,highlightColor:t,width:r,height:a,borderRadius:n,circle:o,direction:i,duration:l,enableAnimation:s=Nl,customHighlightBackground:c}){const d={};return i==="rtl"&&(d["--animation-direction"]="reverse"),typeof l=="number"&&(d["--animation-duration"]=`${l}s`),s||(d["--pseudo-element-display"]="none"),(typeof r=="string"||typeof r=="number")&&(d.width=r),(typeof a=="string"||typeof a=="number")&&(d.height=a),(typeof n=="string"||typeof n=="number")&&(d.borderRadius=n),o&&(d.borderRadius="50%"),typeof e<"u"&&(d["--base-color"]=e),typeof t<"u"&&(d["--highlight-color"]=t),typeof c=="string"&&(d["--custom-highlight-background"]=c),d}function At({count:e=1,wrapper:t,className:r,containerClassName:a,containerTestId:n,circle:o=!1,style:i,...l}){var s,c,d;const g=E.useContext(Tm),y={...l};for(const[N,A]of Object.entries(l))typeof A>"u"&&delete y[N];const x={...g,...y,circle:o},m={...i,...Om(x)};let h="react-loading-skeleton";r&&(h+=` ${r}`);const p=(s=x.inline)!==null&&s!==void 0?s:!1,C=[],R=Math.ceil(e);for(let N=0;N<R;N++){let A=m;if(R>e&&N===R-1){const M=(c=A.width)!==null&&c!==void 0?c:"100%",_=e%1,B=typeof M=="number"?M*_:`calc(${M} * ${_})`;A={...A,width:B}}const I=E.createElement("span",{className:h,style:A,key:N},"‌");p?C.push(I):C.push(E.createElement(E.Fragment,{key:N},I,E.createElement("br",null)))}return E.createElement("span",{className:a,"data-testid":n,"aria-live":"polite","aria-busy":(d=x.enableAnimation)!==null&&d!==void 0?d:Nl},t?C.map((N,A)=>E.createElement(t,{key:A},N)):C)}const jm=({children:e,showFooter:t=!1})=>u.jsxs("div",{children:[u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-3 place-content-center",children:[u.jsx(At,{height:40,borderRadius:8}),u.jsx(At,{height:40,borderRadius:8}),u.jsx(At,{height:40,borderRadius:8})]}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 place-content-center mt-3",children:[u.jsx(At,{height:44,borderRadius:8}),u.jsx(At,{height:40,borderRadius:8})]}),e,u.jsxs("div",{className:"mt-7",children:[u.jsx(At,{height:20,width:100,borderRadius:4}),u.jsxs("div",{className:"flex flex-row gap-4 mt-2",children:[u.jsx("div",{className:"w-full md:max-w-[140px]",children:u.jsx(At,{height:44,borderRadius:8})}),u.jsx("div",{className:"w-full md:max-w-[80px]",children:u.jsx(At,{height:40,borderRadius:8})}),u.jsx("div",{className:"w-full md:max-w-[140px]",children:u.jsx(At,{height:44,borderRadius:8})})]})]}),t&&u.jsxs("div",{className:"flex gap-3 mt-8 pt-4 border-t border-grayWarm-200",children:[u.jsx(At,{height:40,borderRadius:8,containerClassName:"flex-1"}),u.jsx(At,{height:40,borderRadius:8,containerClassName:"flex-1"})]})]}),dt=({size:e=20,title:t,children:r,...a})=>u.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",role:t?"img":void 0,"aria-hidden":t?void 0:!0,...a,children:[t&&u.jsx("title",{children:t}),r]}),za=e=>u.jsx(dt,{...e,children:u.jsx("path",{d:"M17 8.99994C17 8.48812 16.8047 7.9763 16.4142 7.58579C16.0237 7.19526 15.5118 7 15 7M15 15C18.3137 15 21 12.3137 21 9C21 5.68629 18.3137 3 15 3C11.6863 3 9 5.68629 9 9C9 9.27368 9.01832 9.54308 9.05381 9.80704C9.11218 10.2412 9.14136 10.4583 9.12172 10.5956C9.10125 10.7387 9.0752 10.8157 9.00469 10.9419C8.937 11.063 8.81771 11.1823 8.57913 11.4209L3.46863 16.5314C3.29568 16.7043 3.2092 16.7908 3.14736 16.8917C3.09253 16.9812 3.05213 17.0787 3.02763 17.1808C3 17.2959 3 17.4182 3 17.6627V19.4C3 19.9601 3 20.2401 3.10899 20.454C3.20487 20.6422 3.35785 20.7951 3.54601 20.891C3.75992 21 4.03995 21 4.6 21H7V19H9V17H11L12.5791 15.4209C12.8177 15.1823 12.937 15.063 13.0581 14.9953C13.1843 14.9248 13.2613 14.8987 13.4044 14.8783C13.5417 14.8586 13.7588 14.8878 14.193 14.9462C14.4569 14.9817 14.7263 15 15 15Z"})}),Gl=e=>u.jsx(dt,{...e,children:u.jsx("path",{d:"M8 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V8M8 21H7.8C6.11984 21 5.27976 21 4.63803 20.673C4.07354 20.3854 3.6146 19.9265 3.32698 19.362C3 18.7202 3 17.8802 3 16.2V16M21 8V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H16M21 16V16.2C21 17.8802 21 18.7202 20.673 19.362C20.3854 19.9265 19.9265 20.3854 19.362 20.673C18.7202 21 17.8802 21 16.2 21H16M7.5 8V9.5M16.5 8V9.5M11 12.6001C11.8 12.6001 12.5 11.9001 12.5 11.1001V8M15.2002 15.2C13.4002 17 10.5002 17 8.7002 15.2"})}),Pl=e=>u.jsx(dt,{...e,children:u.jsx("path",{d:"M5.80688 18.5304C5.82459 18.5005 5.84273 18.4709 5.8613 18.4413C7.2158 16.2881 7.99991 13.7418 7.99991 11C7.99991 8.79086 9.79077 7 11.9999 7C14.209 7 15.9999 8.79086 15.9999 11C15.9999 12.017 15.9307 13.0186 15.7966 14M13.6792 20.8436C14.2909 19.6226 14.7924 18.3369 15.1707 17M19.0097 18.132C19.6547 15.8657 20 13.4732 20 11C20 6.58172 16.4183 3 12 3C10.5429 3 9.17669 3.38958 8 4.07026M3 15.3641C3.64066 14.0454 4 12.5646 4 11C4 9.54285 4.38958 8.17669 5.07026 7M11.9999 11C11.9999 14.5172 10.9911 17.7988 9.24707 20.5712"})}),Tl=e=>u.jsx(dt,{...e,children:u.jsx("path",{d:"M18 9V3.6C18 3.03995 18 2.75992 17.891 2.54601C17.7951 2.35785 17.6422 2.20487 17.454 2.10899C17.2401 2 16.9601 2 16.4 2H7.6C7.03995 2 6.75992 2 6.54601 2.10899C6.35785 2.20487 6.20487 2.35785 6.10899 2.54601C6 2.75992 6 3.03995 6 3.6V9M10 6V5M14 6V5M8.8 22H15.2C16.8802 22 17.7202 22 18.362 21.673C18.9265 21.3854 19.3854 20.9265 19.673 20.362C20 19.7202 20 18.8802 20 17.2V12.2C20 11.0799 20 10.5198 19.782 10.092C19.5903 9.71569 19.2843 9.40973 18.908 9.21799C18.4802 9 17.9201 9 16.8 9H7.2C6.0799 9 5.51984 9 5.09202 9.21799C4.71569 9.40973 4.40973 9.71569 4.21799 10.092C4 10.5198 4 11.0799 4 12.2V17.2C4 18.8802 4 19.7202 4.32698 20.362C4.6146 20.9265 5.07354 21.3854 5.63803 21.673C6.27976 22 7.11984 22 8.8 22Z"})}),Ol=e=>u.jsx(dt,{...e,children:u.jsx("path",{d:"M3 16V7.2C3 6.07989 3 5.51984 3.21799 5.09202C3.40973 4.71569 3.71569 4.40973 4.09202 4.21799C4.51984 4 5.0799 4 6.2 4H17.8C18.9201 4 19.4802 4 19.908 4.21799C20.2843 4.40973 20.5903 4.71569 20.782 5.09202C21 5.51984 21 6.0799 21 7.2V16H15.6627C15.4182 16 15.2959 16 15.1808 16.0276C15.0787 16.0521 14.9812 16.0925 14.8917 16.1474C14.7908 16.2092 14.7043 16.2957 14.5314 16.4686L14.4686 16.5314C14.2957 16.7043 14.2092 16.7908 14.1083 16.8526C14.0188 16.9075 13.9213 16.9479 13.8192 16.9724C13.7041 17 13.5818 17 13.3373 17H10.6627C10.4182 17 10.2959 17 10.1808 16.9724C10.0787 16.9479 9.98119 16.9075 9.89172 16.8526C9.7908 16.7908 9.70432 16.7043 9.53137 16.5314L9.46863 16.4686C9.29568 16.2957 9.2092 16.2092 9.10828 16.1474C9.01881 16.0925 8.92127 16.0521 8.81923 16.0276C8.70414 16 8.58185 16 8.33726 16H3ZM3 16C2.44772 16 2 16.4477 2 17V17.3333C2 17.9533 2 18.2633 2.06815 18.5176C2.25308 19.2078 2.79218 19.7469 3.48236 19.9319C3.7367 20 4.04669 20 4.66667 20H19.3333C19.9533 20 20.2633 20 20.5176 19.9319C21.2078 19.7469 21.7469 19.2078 21.9319 18.5176C22 18.2633 22 17.9533 22 17.3333C22 17.0233 22 16.8683 21.9659 16.7412C21.8735 16.3961 21.6039 16.1265 21.2588 16.0341C21.1317 16 20.9767 16 20.6667 16H20"})}),jl=e=>u.jsx(dt,{...e,children:u.jsx("path",{d:"M9 11.4999L11 13.4999L15.5 8.99987M20 11.9999C20 16.9083 14.646 20.4783 12.698 21.6147C12.4766 21.7439 12.3659 21.8085 12.2097 21.842C12.0884 21.868 11.9116 21.868 11.7903 21.842C11.6341 21.8085 11.5234 21.7439 11.302 21.6147C9.35396 20.4783 4 16.9083 4 11.9999V7.21747C4 6.41796 4 6.0182 4.13076 5.67457C4.24627 5.37101 4.43398 5.10015 4.67766 4.8854C4.9535 4.64231 5.3278 4.50195 6.0764 4.22122L11.4382 2.21054C11.6461 2.13258 11.75 2.0936 11.857 2.07815C11.9518 2.06444 12.0482 2.06444 12.143 2.07815C12.25 2.0936 12.3539 2.13258 12.5618 2.21054L17.9236 4.22122C18.6722 4.50195 19.0465 4.64231 19.3223 4.8854C19.566 5.10015 19.7537 5.37101 19.8692 5.67457C20 6.0182 20 6.41796 20 7.21747V11.9999Z"})}),Ya=e=>u.jsx(dt,{...e,children:u.jsx("path",{d:"M16 6V5.2C16 4.0799 16 3.51984 15.782 3.09202C15.5903 2.71569 15.2843 2.40973 14.908 2.21799C14.4802 2 13.9201 2 12.8 2H11.2C10.0799 2 9.51984 2 9.09202 2.21799C8.71569 2.40973 8.40973 2.71569 8.21799 3.09202C8 3.51984 8 4.0799 8 5.2V6M10 11.5V16.5M14 11.5V16.5M3 6H21M19 6V17.2C19 18.8802 19 19.7202 18.673 20.362C18.3854 20.9265 17.9265 21.3854 17.362 21.673C16.7202 22 15.8802 22 14.2 22H9.8C8.11984 22 7.27976 22 6.63803 21.673C6.07354 21.3854 5.6146 20.9265 5.32698 20.362C5 19.7202 5 18.8802 5 17.2V6"})}),Ml=e=>u.jsx(dt,{...e,children:u.jsx("path",{d:"M12 5V19M5 12H19"})}),Mm=e=>u.jsx(dt,{...e,children:u.jsx("path",{d:"M6.5 19C4.01472 19 2 16.9853 2 14.5C2 12.1564 3.79151 10.2313 6.07974 10.0194C6.54781 7.17213 9.02024 5 12 5C14.9798 5 17.4522 7.17213 17.9203 10.0194C20.2085 10.2313 22 12.1564 22 14.5C22 16.9853 19.9853 19 17.5 19C13.1102 19 10.3433 19 6.5 19Z"})}),Br=e=>u.jsx(dt,{...e,children:u.jsx("path",{d:"M2 7L10.1649 12.7154C10.8261 13.1783 11.1567 13.4097 11.5163 13.4993C11.8339 13.5785 12.1661 13.5785 12.4837 13.4993C12.8433 13.4097 13.1739 13.1783 13.8351 12.7154L22 7M6.8 20H17.2C18.8802 20 19.7202 20 20.362 19.673C20.9265 19.3854 21.3854 18.9265 21.673 18.362C22 17.7202 22 16.8802 22 15.2V8.8C22 7.11984 22 6.27976 21.673 5.63803C21.3854 5.07354 20.9265 4.6146 20.362 4.32698C19.7202 4 18.8802 4 17.2 4H6.8C5.11984 4 4.27976 4 3.63803 4.32698C3.07354 4.6146 2.6146 5.07354 2.32698 5.63803C2 6.27976 2 7.11984 2 8.8V15.2C2 16.8802 2 17.7202 2.32698 18.362C2.6146 18.9265 3.07354 19.3854 3.63803 19.673C4.27976 20 5.11984 20 6.8 20Z"})}),kl=e=>u.jsx(dt,{...e,children:u.jsx("path",{d:"M18 6L6 18M6 6L18 18"})}),Ja=e=>u.jsx(dt,{...e,children:u.jsx("path",{d:"M7.5 12L10.5 15L16.5 9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"})}),Nn=e=>u.jsx(dt,{...e,children:u.jsx("path",{d:"M12 8V12M12 16H12.01M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"})}),km=e=>u.jsx(dt,{...e,children:u.jsx("path",{d:"M12 12H12.005M17 12H17.005M7 12H7.005M5.2 7H18.8C19.9201 7 20.4802 7 20.908 7.21799C21.2843 7.40973 21.5903 7.71569 21.782 8.09202C22 8.51984 22 9.0799 22 10.2V13.8C22 14.9201 22 15.4802 21.782 15.908C21.5903 16.2843 21.2843 16.5903 20.908 16.782C20.4802 17 19.9201 17 18.8 17H5.2C4.0799 17 3.51984 17 3.09202 16.782C2.71569 16.5903 2.40973 16.2843 2.21799 15.908C2 15.4802 2 14.9201 2 13.8V10.2C2 9.0799 2 8.51984 2.21799 8.09202C2.40973 7.71569 2.71569 7.40973 3.09202 7.21799C3.51984 7 4.0799 7 5.2 7ZM12.25 12C12.25 12.1381 12.1381 12.25 12 12.25C11.8619 12.25 11.75 12.1381 11.75 12C11.75 11.8619 11.8619 11.75 12 11.75C12.1381 11.75 12.25 11.8619 12.25 12ZM17.25 12C17.25 12.1381 17.1381 12.25 17 12.25C16.8619 12.25 16.75 12.1381 16.75 12C16.75 11.8619 16.8619 11.75 17 11.75C17.1381 11.75 17.25 11.8619 17.25 12ZM7.25 12C7.25 12.1381 7.13807 12.25 7 12.25C6.86193 12.25 6.75 12.1381 6.75 12C6.75 11.8619 6.86193 11.75 7 11.75C7.13807 11.75 7.25 11.8619 7.25 12Z"})}),Fl=e=>u.jsx(dt,{...e,children:u.jsx("path",{d:"M15 3H16.2C17.8802 3 18.7202 3 19.362 3.32698C19.9265 3.6146 20.3854 4.07354 20.673 4.63803C21 5.27976 21 6.11984 21 7.8V16.2C21 17.8802 21 18.7202 20.673 19.362C20.3854 19.9265 19.9265 20.3854 19.362 20.673C18.7202 21 17.8802 21 16.2 21H15M10 7L15 12M15 12L10 17M15 12L3 12"})});function wt(e){if(e)try{e.focus()}catch(t){if(t instanceof DOMException&&t.name==="SecurityError")return;throw t}}const Fm=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),ui=e=>Array.from(e.querySelectorAll(Fm)),Fn=[],Bm=()=>u.jsx("svg",{className:"w-4 h-4 text-grayWarm-600",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),cn=e=>e.isOpen?u.jsx(Vm,{...e}):null,Vm=({onClose:e,title:t,children:r,footer:a,maxWidth:n="max-w-screen-sm",maxWidthPx:o,footerHasBorder:i=!1,hideCloseButton:l=!1,allowOverflow:s=!1,header:c="bar"})=>{const d=E.useRef(null),g=E.useId(),y=E.useRef(e);y.current=e;const x=E.useRef(!l);x.current=!l;const[m]=E.useState(()=>typeof document>"u"?null:document.activeElement);E.useEffect(()=>{const p=d.current;if(!p)return;const C=Symbol("modal");Fn.push(C),p.contains(document.activeElement)||wt(ui(p)[0]??p);const R=N=>{if(Fn[Fn.length-1]!==C||N.defaultPrevented)return;if(N.key==="Escape"){x.current&&y.current();return}if(N.key!=="Tab")return;const A=ui(p);if(A.length===0){N.preventDefault(),wt(p);return}const I=A[0],M=A[A.length-1],_=document.activeElement,B=p.contains(_);N.shiftKey&&(!B||_===I)?(N.preventDefault(),wt(M)):!N.shiftKey&&(!B||_===M)&&(N.preventDefault(),wt(I))};return document.addEventListener("keydown",R),()=>{document.removeEventListener("keydown",R);const N=Fn.indexOf(C);N!==-1&&Fn.splice(N,1),m&&m!==document.body&&m.isConnected&&wt(m)}},[]);const h=c==="bar";return u.jsxs("div",{className:"fixed inset-0 z-[110] flex items-center justify-center",children:[u.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 transition-opacity",onClick:l?void 0:e,"data-testid":"modal-backdrop"}),u.jsxs("div",{ref:d,role:"dialog","aria-modal":"true","aria-labelledby":h&&t?g:void 0,"aria-label":!h&&typeof t=="string"?t:void 0,tabIndex:-1,className:Oe("relative w-full mx-4 bg-white rounded-xl shadow-xl transform transition-all focus:outline-none",o?"":n),style:o?{maxWidth:`${o}px`}:void 0,children:[h&&(t||!l)&&u.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-grayWarm-200",children:[l?u.jsx("div",{className:"w-8"}):u.jsx("button",{onClick:e,"aria-label":"Close modal",className:"w-8 h-8 flex items-center justify-center bg-grayWarm-100 hover:bg-grayWarm-200 rounded-lg transition-colors",children:u.jsx(Bm,{})}),u.jsx("h2",{id:g,className:"text-lg font-semibold text-grayWarm-950",children:t}),u.jsx("div",{className:"w-8"})]}),!h&&!l&&u.jsx("button",{type:"button",onClick:e,"aria-label":"Close modal",className:"absolute top-4 right-4 z-10 w-8 h-8 flex items-center justify-center rounded-lg text-grayWarm-500 hover:bg-grayWarm-100 hover:text-grayWarm-700 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-grayWarm-950",children:u.jsx(kl,{size:24})}),u.jsx("div",{className:Oe("p-6",s?"overflow-visible":"max-h-[90vh] overflow-y-auto"),children:r}),i&&u.jsx("div",{className:"border-t border-grayWarm-200"}),a&&u.jsx("div",{className:"p-6",children:a})]})]})},Vr=[{languageCode:"en",regionCode:"US",currencyCode:"USD",languageDisplay:"English",regionDisplay:"United States"},{languageCode:"en",regionCode:"GB",currencyCode:"GBP",languageDisplay:"English",regionDisplay:"United Kingdom"},{languageCode:"en",regionCode:"CA",currencyCode:"CAD",languageDisplay:"English",regionDisplay:"Canada"},{languageCode:"en",regionCode:"AU",currencyCode:"AUD",languageDisplay:"English",regionDisplay:"Australia"},{languageCode:"es",regionCode:"ES",currencyCode:"EUR",languageDisplay:"Español",regionDisplay:"España"},{languageCode:"es",regionCode:"MX",currencyCode:"MXN",languageDisplay:"Español",regionDisplay:"México"},{languageCode:"fr",regionCode:"FR",currencyCode:"EUR",languageDisplay:"Français",regionDisplay:"France"},{languageCode:"fr",regionCode:"CA",currencyCode:"CAD",languageDisplay:"Français",regionDisplay:"Canada"},{languageCode:"de",regionCode:"DE",currencyCode:"EUR",languageDisplay:"Deutsch",regionDisplay:"Deutschland"},{languageCode:"it",regionCode:"IT",currencyCode:"EUR",languageDisplay:"Italiano",regionDisplay:"Italia"},{languageCode:"pt",regionCode:"BR",currencyCode:"BRL",languageDisplay:"Português",regionDisplay:"Brasil"},{languageCode:"ja",regionCode:"JP",currencyCode:"JPY",languageDisplay:"日本語",regionDisplay:"日本"},{languageCode:"ko",regionCode:"KR",currencyCode:"KRW",languageDisplay:"한국어",regionDisplay:"대한민국"},{languageCode:"zh",regionCode:"CN",currencyCode:"CNY",languageDisplay:"中文",regionDisplay:"中国"},{languageCode:"hi",regionCode:"IN",currencyCode:"INR",languageDisplay:"हिन्दी",regionDisplay:"भारत"}],Bl=Vr[0],_m="movmo_locale_preferences",Dm=(e,t)=>Vr.find(r=>r.languageCode.toLowerCase()===e.toLowerCase()&&r.regionCode.toLowerCase()===t.toLowerCase())??Bl,Wm=e=>e.languageDisplay,Lm=()=>u.jsx("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:u.jsx("path",{d:"M12.913 17H20.087M12.913 17L11 21M12.913 17L16.5 9L20.087 17M2 5H12M7 2V5M11 5C9.72 8.44 7.36 11.44 4.5 13.5M7.5 16.5C6.26 15.34 5.14 14.04 4.17 12.63"})}),Xm=({isOpen:e,onClose:t,currentLanguageCode:r,currentRegionCode:a,onLocaleSelect:n,translateIconUrl:o})=>{const i=l=>l.languageCode===r&&l.regionCode===a;return u.jsxs(cn,{isOpen:e,onClose:t,title:null,maxWidthPx:860,hideCloseButton:!0,children:[u.jsx("div",{className:"flex items-center mb-6",children:u.jsx("button",{onClick:t,"aria-label":"Close",className:"w-8 h-8 flex items-center justify-center bg-grayWarm-100 hover:bg-grayWarm-200 rounded-lg transition-colors",children:u.jsx("svg",{className:"w-4 h-4 text-grayWarm-600",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})}),u.jsxs("div",{className:"border border-grayWarm-200 rounded-xl p-4 mb-6 flex items-center justify-between opacity-60 cursor-not-allowed",children:[u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"font-semibold text-grayWarm-950",children:"Translation"}),o?u.jsx("img",{src:o,alt:"",className:"w-4 h-4"}):u.jsx(Lm,{})]}),u.jsx("p",{className:"text-sm text-grayWarm-600 mt-1",children:"Automatically translate descriptions to English."})]}),u.jsx("div",{className:"w-11 h-6 bg-grayWarm-950 rounded-full relative flex-shrink-0","aria-hidden":"true",children:u.jsx("div",{className:"w-5 h-5 bg-white rounded-full absolute top-0.5 right-0.5"})})]}),u.jsx("h3",{className:"text-base font-semibold text-grayWarm-950 mb-4",children:"Choose a language and region"}),u.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-1 p-px",role:"radiogroup","aria-label":"Language and region selection",children:Vr.map(l=>{const s=i(l);return u.jsxs("button",{onClick:()=>n(l),role:"radio","aria-checked":s,className:`p-3 rounded-lg text-left cursor-pointer border transition-colors ${s?"border-grayWarm-950 ring-1 ring-grayWarm-950":"border-transparent hover:bg-grayWarm-50"}`,children:[u.jsx("p",{className:"text-sm font-semibold text-grayWarm-950",children:l.languageDisplay}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:l.regionDisplay})]},`${l.languageCode}-${l.regionCode}`)})})]})},_r=[{code:"USD",name:"United States dollar",symbol:"$"},{code:"AUD",name:"Australian dollar",symbol:"$"},{code:"BRL",name:"Brazilian real",symbol:"R$"},{code:"BGN",name:"Bulgarian lev",symbol:"лв."},{code:"CAD",name:"Canadian dollar",symbol:"$"},{code:"CLP",name:"Chilean peso",symbol:"$"},{code:"CNY",name:"Chinese yuan",symbol:"¥"},{code:"COP",name:"Colombian peso",symbol:"$"},{code:"CRC",name:"Costa Rican colon",symbol:"₡"},{code:"CZK",name:"Czech koruna",symbol:"Kč"},{code:"DKK",name:"Danish krone",symbol:"kr"},{code:"EGP",name:"Egyptian pound",symbol:"ج.م"},{code:"AED",name:"Emirati dirham",symbol:"د.إ"},{code:"EUR",name:"Euro",symbol:"€"},{code:"GHS",name:"Ghanaian cedi",symbol:"GH₵"},{code:"HKD",name:"Hong Kong dollar",symbol:"$"},{code:"HUF",name:"Hungarian forint",symbol:"Ft"},{code:"INR",name:"Indian rupee",symbol:"₹"},{code:"IDR",name:"Indonesian rupiah",symbol:"Rp"},{code:"ILS",name:"Israeli new shekel",symbol:"₪"},{code:"JPY",name:"Japanese yen",symbol:"¥"},{code:"KZT",name:"Kazakhstani tenge",symbol:"₸"},{code:"KES",name:"Kenyan shilling",symbol:"KSh"},{code:"MYR",name:"Malaysian ringgit",symbol:"RM"},{code:"MXN",name:"Mexican peso",symbol:"$"},{code:"MAD",name:"Moroccan dirham",symbol:"MAD"},{code:"TWD",name:"New Taiwan dollar",symbol:"$"},{code:"NZD",name:"New Zealand dollar",symbol:"$"},{code:"NOK",name:"Norwegian krone",symbol:"kr"},{code:"PEN",name:"Peruvian sol",symbol:"S/"},{code:"PHP",name:"Philippine peso",symbol:"₱"},{code:"PLN",name:"Polish zloty",symbol:"zł"},{code:"GBP",name:"Pound sterling",symbol:"£"},{code:"QAR",name:"Qatari riyal",symbol:"ر.ق"},{code:"RON",name:"Romanian leu",symbol:"lei"},{code:"SAR",name:"Saudi Arabian riyal",symbol:"SR"},{code:"SGD",name:"Singapore dollar",symbol:"$"},{code:"ZAR",name:"South African rand",symbol:"R"},{code:"KRW",name:"South Korean won",symbol:"₩"},{code:"SEK",name:"Swedish krona",symbol:"kr"},{code:"CHF",name:"Swiss franc",symbol:"CHF"},{code:"THB",name:"Thai baht",symbol:"฿"},{code:"TRY",name:"Turkish lira",symbol:"₺"},{code:"UGX",name:"Ugandan shilling",symbol:"USh"},{code:"UAH",name:"Ukrainian hryvnia",symbol:"₴"},{code:"UYU",name:"Uruguayan peso",symbol:"$U"},{code:"VND",name:"Vietnamese dong",symbol:"₫"}],Hm=_r[0],Zm=e=>_r.find(t=>t.code.toUpperCase()===e.toUpperCase())??Hm,Vl=e=>e.code===e.symbol?e.code:`${e.code} – ${e.symbol}`,zm=({isOpen:e,onClose:t,currentCurrencyCode:r,onCurrencySelect:a})=>u.jsxs(cn,{isOpen:e,onClose:t,title:null,maxWidthPx:920,hideCloseButton:!0,children:[u.jsx("div",{className:"flex items-center mb-6",children:u.jsx("button",{onClick:t,"aria-label":"Close",className:"w-8 h-8 flex items-center justify-center bg-grayWarm-100 hover:bg-grayWarm-200 rounded-lg transition-colors",children:u.jsx("svg",{className:"w-4 h-4 text-grayWarm-600",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})}),u.jsx("h3",{className:"text-base font-semibold text-grayWarm-950 mb-4",children:"Choose a currency"}),u.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-x-3 gap-y-1 p-px",role:"radiogroup","aria-label":"Currency selection",children:_r.map(n=>{const o=n.code===r;return u.jsxs("button",{onClick:()=>a(n.code),role:"radio","aria-checked":o,className:`p-3 rounded-lg text-left cursor-pointer border transition-colors ${o?"border-grayWarm-950 ring-1 ring-grayWarm-950":"border-transparent hover:bg-grayWarm-50"}`,children:[u.jsx("p",{className:"text-sm font-medium text-grayWarm-950",children:n.name}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:Vl(n)})]},n.code)})})]});var Ym=function(e){var t={};function r(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(a,n,o){r.o(a,n)||Object.defineProperty(a,n,{enumerable:!0,get:o})},r.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},r.t=function(a,n){if(1&n&&(a=r(a)),8&n||4&n&&typeof a=="object"&&a&&a.__esModule)return a;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:a}),2&n&&typeof a!="string")for(var i in a)r.d(o,i,(function(l){return a[l]}).bind(null,i));return o},r.n=function(a){var n=a&&a.__esModule?function(){return a.default}:function(){return a};return r.d(n,"a",n),n},r.o=function(a,n){return Object.prototype.hasOwnProperty.call(a,n)},r.p="",r(r.s=9)}([function(e,t){e.exports=E},function(e,t,r){var a;/*!
111
111
  Copyright (c) 2017 Jed Watson.
112
112
  Licensed under the MIT License (MIT), see
113
113
  http://jedwatson.github.io/classnames
114
- */(function(){var n={}.hasOwnProperty;function o(){for(var i=[],l=0;l<arguments.length;l++){var s=arguments[l];if(s){var c=typeof s;if(c==="string"||c==="number")i.push(s);else if(Array.isArray(s)&&s.length){var d=o.apply(null,s);d&&i.push(d)}else if(c==="object")for(var f in s)n.call(s,f)&&s[f]&&i.push(f)}}return i.join(" ")}e.exports?(o.default=o,e.exports=o):(a=(function(){return o}).apply(t,[]))===void 0||(e.exports=a)})()},function(e,t,r){(function(a){var n=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,l=/^0o[0-7]+$/i,s=parseInt,c=typeof a=="object"&&a&&a.Object===Object&&a,d=typeof self=="object"&&self&&self.Object===Object&&self,f=c||d||Function("return this")(),y=Object.prototype.toString,C=f.Symbol,b=C?C.prototype:void 0,h=b?b.toString:void 0;function p(A){if(typeof A=="string")return A;if(E(A))return h?h.call(A):"";var I=A+"";return I=="0"&&1/A==-1/0?"-0":I}function x(A){var I=typeof A;return!!A&&(I=="object"||I=="function")}function E(A){return typeof A=="symbol"||function(I){return!!I&&typeof I=="object"}(A)&&y.call(A)=="[object Symbol]"}function R(A){return A?(A=function(I){if(typeof I=="number")return I;if(E(I))return NaN;if(x(I)){var j=typeof I.valueOf=="function"?I.valueOf():I;I=x(j)?j+"":j}if(typeof I!="string")return I===0?I:+I;I=I.replace(n,"");var F=i.test(I);return F||l.test(I)?s(I.slice(2),F?2:8):o.test(I)?NaN:+I}(A))===1/0||A===-1/0?17976931348623157e292*(A<0?-1:1):A==A?A:0:A===0?A:0}e.exports=function(A,I,j){var F,M,ie,re;return A=(F=A)==null?"":p(F),M=function(ce){var z=R(ce),le=z%1;return z==z?le?z-le:z:0}(j),ie=0,re=A.length,M==M&&(re!==void 0&&(M=M<=re?M:re),ie!==void 0&&(M=M>=ie?M:ie)),j=M,I=p(I),A.slice(j,j+I.length)==I}}).call(this,r(3))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch{typeof window=="object"&&(r=window)}e.exports=r},function(e,t,r){(function(a){var n=/^\[object .+?Constructor\]$/,o=typeof a=="object"&&a&&a.Object===Object&&a,i=typeof self=="object"&&self&&self.Object===Object&&self,l=o||i||Function("return this")(),s,c=Array.prototype,d=Function.prototype,f=Object.prototype,y=l["__core-js_shared__"],C=(s=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||""))?"Symbol(src)_1."+s:"",b=d.toString,h=f.hasOwnProperty,p=f.toString,x=RegExp("^"+b.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),E=c.splice,R=ce(l,"Map"),A=ce(Object,"create");function I(G){var T=-1,B=G?G.length:0;for(this.clear();++T<B;){var J=G[T];this.set(J[0],J[1])}}function j(G){var T=-1,B=G?G.length:0;for(this.clear();++T<B;){var J=G[T];this.set(J[0],J[1])}}function F(G){var T=-1,B=G?G.length:0;for(this.clear();++T<B;){var J=G[T];this.set(J[0],J[1])}}function M(G,T){for(var B,J,ne=G.length;ne--;)if((B=G[ne][0])===(J=T)||B!=B&&J!=J)return ne;return-1}function ie(G){return!(!le(G)||(T=G,C&&C in T))&&(function(B){var J=le(B)?p.call(B):"";return J=="[object Function]"||J=="[object GeneratorFunction]"}(G)||function(B){var J=!1;if(B!=null&&typeof B.toString!="function")try{J=!!(B+"")}catch{}return J}(G)?x:n).test(function(B){if(B!=null){try{return b.call(B)}catch{}try{return B+""}catch{}}return""}(G));var T}function re(G,T){var B,J,ne=G.__data__;return((J=typeof(B=T))=="string"||J=="number"||J=="symbol"||J=="boolean"?B!=="__proto__":B===null)?ne[typeof T=="string"?"string":"hash"]:ne.map}function ce(G,T){var B=function(J,ne){return J==null?void 0:J[ne]}(G,T);return ie(B)?B:void 0}function z(G,T){if(typeof G!="function"||T&&typeof T!="function")throw new TypeError("Expected a function");var B=function(){var J=arguments,ne=T?T.apply(this,J):J[0],Ie=B.cache;if(Ie.has(ne))return Ie.get(ne);var _=G.apply(this,J);return B.cache=Ie.set(ne,_),_};return B.cache=new(z.Cache||F),B}function le(G){var T=typeof G;return!!G&&(T=="object"||T=="function")}I.prototype.clear=function(){this.__data__=A?A(null):{}},I.prototype.delete=function(G){return this.has(G)&&delete this.__data__[G]},I.prototype.get=function(G){var T=this.__data__;if(A){var B=T[G];return B==="__lodash_hash_undefined__"?void 0:B}return h.call(T,G)?T[G]:void 0},I.prototype.has=function(G){var T=this.__data__;return A?T[G]!==void 0:h.call(T,G)},I.prototype.set=function(G,T){return this.__data__[G]=A&&T===void 0?"__lodash_hash_undefined__":T,this},j.prototype.clear=function(){this.__data__=[]},j.prototype.delete=function(G){var T=this.__data__,B=M(T,G);return!(B<0)&&(B==T.length-1?T.pop():E.call(T,B,1),!0)},j.prototype.get=function(G){var T=this.__data__,B=M(T,G);return B<0?void 0:T[B][1]},j.prototype.has=function(G){return M(this.__data__,G)>-1},j.prototype.set=function(G,T){var B=this.__data__,J=M(B,G);return J<0?B.push([G,T]):B[J][1]=T,this},F.prototype.clear=function(){this.__data__={hash:new I,map:new(R||j),string:new I}},F.prototype.delete=function(G){return re(this,G).delete(G)},F.prototype.get=function(G){return re(this,G).get(G)},F.prototype.has=function(G){return re(this,G).has(G)},F.prototype.set=function(G,T){return re(this,G).set(G,T),this},z.Cache=F,e.exports=z}).call(this,r(3))},function(e,t,r){(function(a){var n=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,l=/^0o[0-7]+$/i,s=parseInt,c=typeof a=="object"&&a&&a.Object===Object&&a,d=typeof self=="object"&&self&&self.Object===Object&&self,f=c||d||Function("return this")(),y=Object.prototype.toString,C=Math.max,b=Math.min,h=function(){return f.Date.now()};function p(E){var R=typeof E;return!!E&&(R=="object"||R=="function")}function x(E){if(typeof E=="number")return E;if(function(I){return typeof I=="symbol"||function(j){return!!j&&typeof j=="object"}(I)&&y.call(I)=="[object Symbol]"}(E))return NaN;if(p(E)){var R=typeof E.valueOf=="function"?E.valueOf():E;E=p(R)?R+"":R}if(typeof E!="string")return E===0?E:+E;E=E.replace(n,"");var A=i.test(E);return A||l.test(E)?s(E.slice(2),A?2:8):o.test(E)?NaN:+E}e.exports=function(E,R,A){var I,j,F,M,ie,re,ce=0,z=!1,le=!1,G=!0;if(typeof E!="function")throw new TypeError("Expected a function");function T(W){var Z=I,ae=j;return I=j=void 0,ce=W,M=E.apply(ae,Z)}function B(W){return ce=W,ie=setTimeout(ne,R),z?T(W):M}function J(W){var Z=W-re;return re===void 0||Z>=R||Z<0||le&&W-ce>=F}function ne(){var W=h();if(J(W))return Ie(W);ie=setTimeout(ne,function(Z){var ae=R-(Z-re);return le?b(ae,F-(Z-ce)):ae}(W))}function Ie(W){return ie=void 0,G&&I?T(W):(I=j=void 0,M)}function _(){var W=h(),Z=J(W);if(I=arguments,j=this,re=W,Z){if(ie===void 0)return B(re);if(le)return ie=setTimeout(ne,R),T(re)}return ie===void 0&&(ie=setTimeout(ne,R)),M}return R=x(R)||0,p(A)&&(z=!!A.leading,F=(le="maxWait"in A)?C(x(A.maxWait)||0,R):F,G="trailing"in A?!!A.trailing:G),_.cancel=function(){ie!==void 0&&clearTimeout(ie),ce=0,I=re=j=ie=void 0},_.flush=function(){return ie===void 0?M:Ie(h())},_}}).call(this,r(3))},function(e,t,r){(function(a,n){var o="[object Arguments]",i="[object Map]",l="[object Object]",s="[object Set]",c=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d=/^\w*$/,f=/^\./,y=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,C=/\\(\\)?/g,b=/^\[object .+?Constructor\]$/,h=/^(?:0|[1-9]\d*)$/,p={};p["[object Float32Array]"]=p["[object Float64Array]"]=p["[object Int8Array]"]=p["[object Int16Array]"]=p["[object Int32Array]"]=p["[object Uint8Array]"]=p["[object Uint8ClampedArray]"]=p["[object Uint16Array]"]=p["[object Uint32Array]"]=!0,p[o]=p["[object Array]"]=p["[object ArrayBuffer]"]=p["[object Boolean]"]=p["[object DataView]"]=p["[object Date]"]=p["[object Error]"]=p["[object Function]"]=p[i]=p["[object Number]"]=p[l]=p["[object RegExp]"]=p[s]=p["[object String]"]=p["[object WeakMap]"]=!1;var x=typeof a=="object"&&a&&a.Object===Object&&a,E=typeof self=="object"&&self&&self.Object===Object&&self,R=x||E||Function("return this")(),A=t&&!t.nodeType&&t,I=A&&typeof n=="object"&&n&&!n.nodeType&&n,j=I&&I.exports===A&&x.process,F=function(){try{return j&&j.binding("util")}catch{}}(),M=F&&F.isTypedArray;function ie(g,N,k,H){var te=-1,fe=g?g.length:0;for(H&&fe&&(k=g[++te]);++te<fe;)k=N(k,g[te],te,g);return k}function re(g,N){for(var k=-1,H=g?g.length:0;++k<H;)if(N(g[k],k,g))return!0;return!1}function ce(g,N,k,H,te){return te(g,function(fe,Ee,Ye){k=H?(H=!1,fe):N(k,fe,Ee,Ye)}),k}function z(g){var N=!1;if(g!=null&&typeof g.toString!="function")try{N=!!(g+"")}catch{}return N}function le(g){var N=-1,k=Array(g.size);return g.forEach(function(H,te){k[++N]=[te,H]}),k}function G(g){var N=-1,k=Array(g.size);return g.forEach(function(H){k[++N]=H}),k}var T,B,J,ne=Array.prototype,Ie=Function.prototype,_=Object.prototype,W=R["__core-js_shared__"],Z=(T=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||""))?"Symbol(src)_1."+T:"",ae=Ie.toString,L=_.hasOwnProperty,m=_.toString,pe=RegExp("^"+ae.call(L).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Y=R.Symbol,K=R.Uint8Array,me=_.propertyIsEnumerable,ye=ne.splice,Te=(B=Object.keys,J=Object,function(g){return B(J(g))}),X=xt(R,"DataView"),je=xt(R,"Map"),Ae=xt(R,"Promise"),P=xt(R,"Set"),D=xt(R,"WeakMap"),$=xt(Object,"create"),he=Fe(X),ue=Fe(je),Ce=Fe(Ae),we=Fe(P),Re=Fe(D),ee=Y?Y.prototype:void 0,de=ee?ee.valueOf:void 0,Se=ee?ee.toString:void 0;function q(g){var N=-1,k=g?g.length:0;for(this.clear();++N<k;){var H=g[N];this.set(H[0],H[1])}}function se(g){var N=-1,k=g?g.length:0;for(this.clear();++N<k;){var H=g[N];this.set(H[0],H[1])}}function De(g){var N=-1,k=g?g.length:0;for(this.clear();++N<k;){var H=g[N];this.set(H[0],H[1])}}function ot(g){var N=-1,k=g?g.length:0;for(this.__data__=new De;++N<k;)this.add(g[N])}function Ke(g){this.__data__=new se(g)}function lt(g,N){var k=v(g)||ut(g)?function(Ee,Ye){for(var $e=-1,ze=Array(Ee);++$e<Ee;)ze[$e]=Ye($e);return ze}(g.length,String):[],H=k.length,te=!!H;for(var fe in g)!L.call(g,fe)||te&&(fe=="length"||ln(fe,H))||k.push(fe);return k}function mt(g,N){for(var k=g.length;k--;)if(ft(g[k][0],N))return k;return-1}q.prototype.clear=function(){this.__data__=$?$(null):{}},q.prototype.delete=function(g){return this.has(g)&&delete this.__data__[g]},q.prototype.get=function(g){var N=this.__data__;if($){var k=N[g];return k==="__lodash_hash_undefined__"?void 0:k}return L.call(N,g)?N[g]:void 0},q.prototype.has=function(g){var N=this.__data__;return $?N[g]!==void 0:L.call(N,g)},q.prototype.set=function(g,N){return this.__data__[g]=$&&N===void 0?"__lodash_hash_undefined__":N,this},se.prototype.clear=function(){this.__data__=[]},se.prototype.delete=function(g){var N=this.__data__,k=mt(N,g);return!(k<0)&&(k==N.length-1?N.pop():ye.call(N,k,1),!0)},se.prototype.get=function(g){var N=this.__data__,k=mt(N,g);return k<0?void 0:N[k][1]},se.prototype.has=function(g){return mt(this.__data__,g)>-1},se.prototype.set=function(g,N){var k=this.__data__,H=mt(k,g);return H<0?k.push([g,N]):k[H][1]=N,this},De.prototype.clear=function(){this.__data__={hash:new q,map:new(je||se),string:new q}},De.prototype.delete=function(g){return Bt(this,g).delete(g)},De.prototype.get=function(g){return Bt(this,g).get(g)},De.prototype.has=function(g){return Bt(this,g).has(g)},De.prototype.set=function(g,N){return Bt(this,g).set(g,N),this},ot.prototype.add=ot.prototype.push=function(g){return this.__data__.set(g,"__lodash_hash_undefined__"),this},ot.prototype.has=function(g){return this.__data__.has(g)},Ke.prototype.clear=function(){this.__data__=new se},Ke.prototype.delete=function(g){return this.__data__.delete(g)},Ke.prototype.get=function(g){return this.__data__.get(g)},Ke.prototype.has=function(g){return this.__data__.has(g)},Ke.prototype.set=function(g,N){var k=this.__data__;if(k instanceof se){var H=k.__data__;if(!je||H.length<199)return H.push([g,N]),this;k=this.__data__=new De(H)}return k.set(g,N),this};var St,Ue=(St=function(g,N){return g&&Gt(g,N,rt)},function(g,N){if(g==null)return g;if(!V(g))return St(g,N);for(var k=g.length,H=-1,te=Object(g);++H<k&&N(te[H],H,te)!==!1;);return g}),Gt=function(g){return function(N,k,H){for(var te=-1,fe=Object(N),Ee=H(N),Ye=Ee.length;Ye--;){var $e=Ee[++te];if(k(fe[$e],$e,fe)===!1)break}return N}}();function Ft(g,N){for(var k=0,H=(N=Ot(N,g)?[N]:Zt(N)).length;g!=null&&k<H;)g=g[oe(N[k++])];return k&&k==H?g:void 0}function an(g,N){return g!=null&&N in Object(g)}function At(g,N,k,H,te){return g===N||(g==null||N==null||!Oe(g)&&!ke(N)?g!=g&&N!=N:function(fe,Ee,Ye,$e,ze,Be){var It=v(fe),ct=v(Ee),it="[object Array]",st="[object Array]";It||(it=(it=vt(fe))==o?l:it),ct||(st=(st=vt(Ee))==o?l:st);var wt=it==l&&!z(fe),bn=st==l&&!z(Ee),zt=it==st;if(zt&&!wt)return Be||(Be=new Ke),It||Ge(fe)?sn(fe,Ee,Ye,$e,ze,Be):function(Je,He,Dr,cn,Jn,yt,Vt){switch(Dr){case"[object DataView]":if(Je.byteLength!=He.byteLength||Je.byteOffset!=He.byteOffset)return!1;Je=Je.buffer,He=He.buffer;case"[object ArrayBuffer]":return!(Je.byteLength!=He.byteLength||!cn(new K(Je),new K(He)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ft(+Je,+He);case"[object Error]":return Je.name==He.name&&Je.message==He.message;case"[object RegExp]":case"[object String]":return Je==He+"";case i:var Yt=le;case s:var Nn=2&yt;if(Yt||(Yt=G),Je.size!=He.size&&!Nn)return!1;var Un=Vt.get(Je);if(Un)return Un==He;yt|=1,Vt.set(Je,He);var hn=sn(Yt(Je),Yt(He),cn,Jn,yt,Vt);return Vt.delete(Je),hn;case"[object Symbol]":if(de)return de.call(Je)==de.call(He)}return!1}(fe,Ee,it,Ye,$e,ze,Be);if(!(2&ze)){var uo=wt&&L.call(fe,"__wrapped__"),co=bn&&L.call(Ee,"__wrapped__");if(uo||co){var ru=uo?fe.value():fe,au=co?Ee.value():Ee;return Be||(Be=new Ke),Ye(ru,au,$e,ze,Be)}}return zt?(Be||(Be=new Ke),function(Je,He,Dr,cn,Jn,yt){var Vt=2&Jn,Yt=rt(Je),Nn=Yt.length,Un=rt(He).length;if(Nn!=Un&&!Vt)return!1;for(var hn=Nn;hn--;){var Jt=Yt[hn];if(!(Vt?Jt in He:L.call(He,Jt)))return!1}var fo=yt.get(Je);if(fo&&yt.get(He))return fo==He;var $n=!0;yt.set(Je,He),yt.set(He,Je);for(var Wr=Vt;++hn<Nn;){Jt=Yt[hn];var Qn=Je[Jt],Kn=He[Jt];if(cn)var po=Vt?cn(Kn,Qn,Jt,He,Je,yt):cn(Qn,Kn,Jt,Je,He,yt);if(!(po===void 0?Qn===Kn||Dr(Qn,Kn,cn,Jn,yt):po)){$n=!1;break}Wr||(Wr=Jt=="constructor")}if($n&&!Wr){var qn=Je.constructor,er=He.constructor;qn==er||!("constructor"in Je)||!("constructor"in He)||typeof qn=="function"&&qn instanceof qn&&typeof er=="function"&&er instanceof er||($n=!1)}return yt.delete(Je),yt.delete(He),$n}(fe,Ee,Ye,$e,ze,Be)):!1}(g,N,At,k,H,te))}function Pt(g){return!(!Oe(g)||function(N){return!!Z&&Z in N}(g))&&(U(g)||z(g)?pe:b).test(Fe(g))}function Tt(g){return typeof g=="function"?g:g==null?qe:typeof g=="object"?v(g)?function(H,te){return Ot(H)&&un(te)?O(oe(H),te):function(fe){var Ee=function(Ye,$e,ze){var Be=Ye==null?void 0:Ft(Ye,$e);return Be===void 0?ze:Be}(fe,H);return Ee===void 0&&Ee===te?function(Ye,$e){return Ye!=null&&function(ze,Be,It){Be=Ot(Be,ze)?[Be]:Zt(Be);for(var ct,it=-1,st=Be.length;++it<st;){var wt=oe(Be[it]);if(!(ct=ze!=null&&It(ze,wt)))break;ze=ze[wt]}return ct||!!(st=ze?ze.length:0)&&be(st)&&ln(wt,st)&&(v(ze)||ut(ze))}(Ye,$e,an)}(fe,H):At(te,Ee,void 0,3)}}(g[0],g[1]):function(H){var te=function(fe){for(var Ee=rt(fe),Ye=Ee.length;Ye--;){var $e=Ee[Ye],ze=fe[$e];Ee[Ye]=[$e,ze,un(ze)]}return Ee}(H);return te.length==1&&te[0][2]?O(te[0][0],te[0][1]):function(fe){return fe===H||function(Ee,Ye,$e,ze){var Be=$e.length,It=Be;if(Ee==null)return!It;for(Ee=Object(Ee);Be--;){var ct=$e[Be];if(ct[2]?ct[1]!==Ee[ct[0]]:!(ct[0]in Ee))return!1}for(;++Be<It;){var it=(ct=$e[Be])[0],st=Ee[it],wt=ct[1];if(ct[2]){if(st===void 0&&!(it in Ee))return!1}else{var bn=new Ke,zt;if(!(zt===void 0?At(wt,st,ze,3,bn):zt))return!1}}return!0}(fe,H,te)}}(g):Ot(N=g)?(k=oe(N),function(H){return H==null?void 0:H[k]}):function(H){return function(te){return Ft(te,H)}}(N);var N,k}function on(g){if(k=(N=g)&&N.constructor,H=typeof k=="function"&&k.prototype||_,N!==H)return Te(g);var N,k,H,te=[];for(var fe in Object(g))L.call(g,fe)&&fe!="constructor"&&te.push(fe);return te}function Zt(g){return v(g)?g:Q(g)}function sn(g,N,k,H,te,fe){var Ee=2&te,Ye=g.length,$e=N.length;if(Ye!=$e&&!(Ee&&$e>Ye))return!1;var ze=fe.get(g);if(ze&&fe.get(N))return ze==N;var Be=-1,It=!0,ct=1&te?new ot:void 0;for(fe.set(g,N),fe.set(N,g);++Be<Ye;){var it=g[Be],st=N[Be];if(H)var wt=Ee?H(st,it,Be,N,g,fe):H(it,st,Be,g,N,fe);if(wt!==void 0){if(wt)continue;It=!1;break}if(ct){if(!re(N,function(bn,zt){if(!ct.has(zt)&&(it===bn||k(it,bn,H,te,fe)))return ct.add(zt)})){It=!1;break}}else if(it!==st&&!k(it,st,H,te,fe)){It=!1;break}}return fe.delete(g),fe.delete(N),It}function Bt(g,N){var k,H,te=g.__data__;return((H=typeof(k=N))=="string"||H=="number"||H=="symbol"||H=="boolean"?k!=="__proto__":k===null)?te[typeof N=="string"?"string":"hash"]:te.map}function xt(g,N){var k=function(H,te){return H==null?void 0:H[te]}(g,N);return Pt(k)?k:void 0}var vt=function(g){return m.call(g)};function ln(g,N){return!!(N=N??9007199254740991)&&(typeof g=="number"||h.test(g))&&g>-1&&g%1==0&&g<N}function Ot(g,N){if(v(g))return!1;var k=typeof g;return!(k!="number"&&k!="symbol"&&k!="boolean"&&g!=null&&!Ne(g))||d.test(g)||!c.test(g)||N!=null&&g in Object(N)}function un(g){return g==g&&!Oe(g)}function O(g,N){return function(k){return k!=null&&k[g]===N&&(N!==void 0||g in Object(k))}}(X&&vt(new X(new ArrayBuffer(1)))!="[object DataView]"||je&&vt(new je)!=i||Ae&&vt(Ae.resolve())!="[object Promise]"||P&&vt(new P)!=s||D&&vt(new D)!="[object WeakMap]")&&(vt=function(g){var N=m.call(g),k=N==l?g.constructor:void 0,H=k?Fe(k):void 0;if(H)switch(H){case he:return"[object DataView]";case ue:return i;case Ce:return"[object Promise]";case we:return s;case Re:return"[object WeakMap]"}return N});var Q=nt(function(g){var N;g=(N=g)==null?"":function(H){if(typeof H=="string")return H;if(Ne(H))return Se?Se.call(H):"";var te=H+"";return te=="0"&&1/H==-1/0?"-0":te}(N);var k=[];return f.test(g)&&k.push(""),g.replace(y,function(H,te,fe,Ee){k.push(fe?Ee.replace(C,"$1"):te||H)}),k});function oe(g){if(typeof g=="string"||Ne(g))return g;var N=g+"";return N=="0"&&1/g==-1/0?"-0":N}function Fe(g){if(g!=null){try{return ae.call(g)}catch{}try{return g+""}catch{}}return""}function nt(g,N){if(typeof g!="function"||N&&typeof N!="function")throw new TypeError("Expected a function");var k=function(){var H=arguments,te=N?N.apply(this,H):H[0],fe=k.cache;if(fe.has(te))return fe.get(te);var Ee=g.apply(this,H);return k.cache=fe.set(te,Ee),Ee};return k.cache=new(nt.Cache||De),k}function ft(g,N){return g===N||g!=g&&N!=N}function ut(g){return function(N){return ke(N)&&V(N)}(g)&&L.call(g,"callee")&&(!me.call(g,"callee")||m.call(g)==o)}nt.Cache=De;var v=Array.isArray;function V(g){return g!=null&&be(g.length)&&!U(g)}function U(g){var N=Oe(g)?m.call(g):"";return N=="[object Function]"||N=="[object GeneratorFunction]"}function be(g){return typeof g=="number"&&g>-1&&g%1==0&&g<=9007199254740991}function Oe(g){var N=typeof g;return!!g&&(N=="object"||N=="function")}function ke(g){return!!g&&typeof g=="object"}function Ne(g){return typeof g=="symbol"||ke(g)&&m.call(g)=="[object Symbol]"}var Ge=M?function(g){return function(N){return g(N)}}(M):function(g){return ke(g)&&be(g.length)&&!!p[m.call(g)]};function rt(g){return V(g)?lt(g):on(g)}function qe(g){return g}n.exports=function(g,N,k){var H=v(g)?ie:ce,te=arguments.length<3;return H(g,Tt(N),k,te,Ue)}}).call(this,r(3),r(7)(e))},function(e,t){e.exports=function(r){return r.webpackPolyfill||(r.deprecate=function(){},r.paths=[],r.children||(r.children=[]),Object.defineProperty(r,"loaded",{enumerable:!0,get:function(){return r.l}}),Object.defineProperty(r,"id",{enumerable:!0,get:function(){return r.i}}),r.webpackPolyfill=1),r}},function(e,t){String.prototype.padEnd||(String.prototype.padEnd=function(r,a){return r>>=0,a=String(a!==void 0?a:" "),this.length>r?String(this):((r-=this.length)>a.length&&(a+=a.repeat(r/a.length)),String(this)+a.slice(0,r))})},function(e,t,r){function a(_,W,Z){return W in _?Object.defineProperty(_,W,{value:Z,enumerable:!0,configurable:!0,writable:!0}):_[W]=Z,_}function n(_){if(Symbol.iterator in Object(_)||Object.prototype.toString.call(_)==="[object Arguments]")return Array.from(_)}function o(_){return function(W){if(Array.isArray(W)){for(var Z=0,ae=new Array(W.length);Z<W.length;Z++)ae[Z]=W[Z];return ae}}(_)||n(_)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function i(_){if(Array.isArray(_))return _}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function s(_,W){if(!(_ instanceof W))throw new TypeError("Cannot call a class as a function")}function c(_,W){for(var Z=0;Z<W.length;Z++){var ae=W[Z];ae.enumerable=ae.enumerable||!1,ae.configurable=!0,"value"in ae&&(ae.writable=!0),Object.defineProperty(_,ae.key,ae)}}function d(_){return(d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W})(_)}function f(_){return(f=typeof Symbol=="function"&&d(Symbol.iterator)==="symbol"?function(W){return d(W)}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":d(W)})(_)}function y(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function C(_){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(W){return W.__proto__||Object.getPrototypeOf(W)})(_)}function b(_,W){return(b=Object.setPrototypeOf||function(Z,ae){return Z.__proto__=ae,Z})(_,W)}r.r(t);var h=r(0),p=r.n(h),x=r(5),E=r.n(x),R=r(4),A=r.n(R),I=r(6),j=r.n(I),F=r(2),M=r.n(F),ie=r(1),re=r.n(ie);r(8);function ce(_,W){return i(_)||function(Z,ae){var L=[],m=!0,pe=!1,Y=void 0;try{for(var K,me=Z[Symbol.iterator]();!(m=(K=me.next()).done)&&(L.push(K.value),!ae||L.length!==ae);m=!0);}catch(ye){pe=!0,Y=ye}finally{try{m||me.return==null||me.return()}finally{if(pe)throw Y}}return L}(_,W)||l()}var z=[["Afghanistan",["asia"],"af","93"],["Albania",["europe"],"al","355"],["Algeria",["africa","north-africa"],"dz","213"],["Andorra",["europe"],"ad","376"],["Angola",["africa"],"ao","244"],["Antigua and Barbuda",["america","carribean"],"ag","1268"],["Argentina",["america","south-america"],"ar","54","(..) ........",0,["11","221","223","261","264","2652","280","2905","291","2920","2966","299","341","342","343","351","376","379","381","3833","385","387","388"]],["Armenia",["asia","ex-ussr"],"am","374",".. ......"],["Aruba",["america","carribean"],"aw","297"],["Australia",["oceania"],"au","61","(..) .... ....",0,["2","3","4","7","8","02","03","04","07","08"]],["Austria",["europe","eu-union"],"at","43"],["Azerbaijan",["asia","ex-ussr"],"az","994","(..) ... .. .."],["Bahamas",["america","carribean"],"bs","1242"],["Bahrain",["middle-east"],"bh","973"],["Bangladesh",["asia"],"bd","880"],["Barbados",["america","carribean"],"bb","1246"],["Belarus",["europe","ex-ussr"],"by","375","(..) ... .. .."],["Belgium",["europe","eu-union"],"be","32","... .. .. .."],["Belize",["america","central-america"],"bz","501"],["Benin",["africa"],"bj","229"],["Bhutan",["asia"],"bt","975"],["Bolivia",["america","south-america"],"bo","591"],["Bosnia and Herzegovina",["europe","ex-yugos"],"ba","387"],["Botswana",["africa"],"bw","267"],["Brazil",["america","south-america"],"br","55","(..) ........."],["British Indian Ocean Territory",["asia"],"io","246"],["Brunei",["asia"],"bn","673"],["Bulgaria",["europe","eu-union"],"bg","359"],["Burkina Faso",["africa"],"bf","226"],["Burundi",["africa"],"bi","257"],["Cambodia",["asia"],"kh","855"],["Cameroon",["africa"],"cm","237"],["Canada",["america","north-america"],"ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde",["africa"],"cv","238"],["Caribbean Netherlands",["america","carribean"],"bq","599","",1],["Central African Republic",["africa"],"cf","236"],["Chad",["africa"],"td","235"],["Chile",["america","south-america"],"cl","56"],["China",["asia"],"cn","86","..-........."],["Colombia",["america","south-america"],"co","57","... ... ...."],["Comoros",["africa"],"km","269"],["Congo",["africa"],"cd","243"],["Congo",["africa"],"cg","242"],["Costa Rica",["america","central-america"],"cr","506","....-...."],["Côte d’Ivoire",["africa"],"ci","225",".. .. .. .."],["Croatia",["europe","eu-union","ex-yugos"],"hr","385"],["Cuba",["america","carribean"],"cu","53"],["Curaçao",["america","carribean"],"cw","599","",0],["Cyprus",["europe","eu-union"],"cy","357",".. ......"],["Czech Republic",["europe","eu-union"],"cz","420","... ... ..."],["Denmark",["europe","eu-union","baltic"],"dk","45",".. .. .. .."],["Djibouti",["africa"],"dj","253"],["Dominica",["america","carribean"],"dm","1767"],["Dominican Republic",["america","carribean"],"do","1","",2,["809","829","849"]],["Ecuador",["america","south-america"],"ec","593"],["Egypt",["africa","north-africa"],"eg","20"],["El Salvador",["america","central-america"],"sv","503","....-...."],["Equatorial Guinea",["africa"],"gq","240"],["Eritrea",["africa"],"er","291"],["Estonia",["europe","eu-union","ex-ussr","baltic"],"ee","372",".... ......"],["Ethiopia",["africa"],"et","251"],["Fiji",["oceania"],"fj","679"],["Finland",["europe","eu-union","baltic"],"fi","358",".. ... .. .."],["France",["europe","eu-union"],"fr","33",". .. .. .. .."],["French Guiana",["america","south-america"],"gf","594"],["French Polynesia",["oceania"],"pf","689"],["Gabon",["africa"],"ga","241"],["Gambia",["africa"],"gm","220"],["Georgia",["asia","ex-ussr"],"ge","995"],["Germany",["europe","eu-union","baltic"],"de","49",".... ........"],["Ghana",["africa"],"gh","233"],["Greece",["europe","eu-union"],"gr","30"],["Grenada",["america","carribean"],"gd","1473"],["Guadeloupe",["america","carribean"],"gp","590","",0],["Guam",["oceania"],"gu","1671"],["Guatemala",["america","central-america"],"gt","502","....-...."],["Guinea",["africa"],"gn","224"],["Guinea-Bissau",["africa"],"gw","245"],["Guyana",["america","south-america"],"gy","592"],["Haiti",["america","carribean"],"ht","509","....-...."],["Honduras",["america","central-america"],"hn","504"],["Hong Kong",["asia"],"hk","852",".... ...."],["Hungary",["europe","eu-union"],"hu","36"],["Iceland",["europe"],"is","354","... ...."],["India",["asia"],"in","91",".....-....."],["Indonesia",["asia"],"id","62"],["Iran",["middle-east"],"ir","98","... ... ...."],["Iraq",["middle-east"],"iq","964"],["Ireland",["europe","eu-union"],"ie","353",".. ......."],["Israel",["middle-east"],"il","972","... ... ...."],["Italy",["europe","eu-union"],"it","39","... .......",0],["Jamaica",["america","carribean"],"jm","1876"],["Japan",["asia"],"jp","81",".. .... ...."],["Jordan",["middle-east"],"jo","962"],["Kazakhstan",["asia","ex-ussr"],"kz","7","... ...-..-..",1,["310","311","312","313","315","318","321","324","325","326","327","336","7172","73622"]],["Kenya",["africa"],"ke","254"],["Kiribati",["oceania"],"ki","686"],["Kosovo",["europe","ex-yugos"],"xk","383"],["Kuwait",["middle-east"],"kw","965"],["Kyrgyzstan",["asia","ex-ussr"],"kg","996","... ... ..."],["Laos",["asia"],"la","856"],["Latvia",["europe","eu-union","ex-ussr","baltic"],"lv","371",".. ... ..."],["Lebanon",["middle-east"],"lb","961"],["Lesotho",["africa"],"ls","266"],["Liberia",["africa"],"lr","231"],["Libya",["africa","north-africa"],"ly","218"],["Liechtenstein",["europe"],"li","423"],["Lithuania",["europe","eu-union","ex-ussr","baltic"],"lt","370"],["Luxembourg",["europe","eu-union"],"lu","352"],["Macau",["asia"],"mo","853"],["Macedonia",["europe","ex-yugos"],"mk","389"],["Madagascar",["africa"],"mg","261"],["Malawi",["africa"],"mw","265"],["Malaysia",["asia"],"my","60","..-....-...."],["Maldives",["asia"],"mv","960"],["Mali",["africa"],"ml","223"],["Malta",["europe","eu-union"],"mt","356"],["Marshall Islands",["oceania"],"mh","692"],["Martinique",["america","carribean"],"mq","596"],["Mauritania",["africa"],"mr","222"],["Mauritius",["africa"],"mu","230"],["Mexico",["america","central-america"],"mx","52","... ... ....",0,["55","81","33","656","664","998","774","229"]],["Micronesia",["oceania"],"fm","691"],["Moldova",["europe"],"md","373","(..) ..-..-.."],["Monaco",["europe"],"mc","377"],["Mongolia",["asia"],"mn","976"],["Montenegro",["europe","ex-yugos"],"me","382"],["Morocco",["africa","north-africa"],"ma","212"],["Mozambique",["africa"],"mz","258"],["Myanmar",["asia"],"mm","95"],["Namibia",["africa"],"na","264"],["Nauru",["africa"],"nr","674"],["Nepal",["asia"],"np","977"],["Netherlands",["europe","eu-union"],"nl","31",".. ........"],["New Caledonia",["oceania"],"nc","687"],["New Zealand",["oceania"],"nz","64","...-...-...."],["Nicaragua",["america","central-america"],"ni","505"],["Niger",["africa"],"ne","227"],["Nigeria",["africa"],"ng","234"],["North Korea",["asia"],"kp","850"],["Norway",["europe","baltic"],"no","47","... .. ..."],["Oman",["middle-east"],"om","968"],["Pakistan",["asia"],"pk","92","...-......."],["Palau",["oceania"],"pw","680"],["Palestine",["middle-east"],"ps","970"],["Panama",["america","central-america"],"pa","507"],["Papua New Guinea",["oceania"],"pg","675"],["Paraguay",["america","south-america"],"py","595"],["Peru",["america","south-america"],"pe","51"],["Philippines",["asia"],"ph","63",".... ......."],["Poland",["europe","eu-union","baltic"],"pl","48","...-...-..."],["Portugal",["europe","eu-union"],"pt","351"],["Puerto Rico",["america","carribean"],"pr","1","",3,["787","939"]],["Qatar",["middle-east"],"qa","974"],["Réunion",["africa"],"re","262"],["Romania",["europe","eu-union"],"ro","40"],["Russia",["europe","asia","ex-ussr","baltic"],"ru","7","(...) ...-..-..",0],["Rwanda",["africa"],"rw","250"],["Saint Kitts and Nevis",["america","carribean"],"kn","1869"],["Saint Lucia",["america","carribean"],"lc","1758"],["Saint Vincent and the Grenadines",["america","carribean"],"vc","1784"],["Samoa",["oceania"],"ws","685"],["San Marino",["europe"],"sm","378"],["São Tomé and Príncipe",["africa"],"st","239"],["Saudi Arabia",["middle-east"],"sa","966"],["Senegal",["africa"],"sn","221"],["Serbia",["europe","ex-yugos"],"rs","381"],["Seychelles",["africa"],"sc","248"],["Sierra Leone",["africa"],"sl","232"],["Singapore",["asia"],"sg","65","....-...."],["Slovakia",["europe","eu-union"],"sk","421"],["Slovenia",["europe","eu-union","ex-yugos"],"si","386"],["Solomon Islands",["oceania"],"sb","677"],["Somalia",["africa"],"so","252"],["South Africa",["africa"],"za","27"],["South Korea",["asia"],"kr","82","... .... ...."],["South Sudan",["africa","north-africa"],"ss","211"],["Spain",["europe","eu-union"],"es","34","... ... ..."],["Sri Lanka",["asia"],"lk","94"],["Sudan",["africa"],"sd","249"],["Suriname",["america","south-america"],"sr","597"],["Swaziland",["africa"],"sz","268"],["Sweden",["europe","eu-union","baltic"],"se","46","(...) ...-..."],["Switzerland",["europe"],"ch","41",".. ... .. .."],["Syria",["middle-east"],"sy","963"],["Taiwan",["asia"],"tw","886"],["Tajikistan",["asia","ex-ussr"],"tj","992"],["Tanzania",["africa"],"tz","255"],["Thailand",["asia"],"th","66"],["Timor-Leste",["asia"],"tl","670"],["Togo",["africa"],"tg","228"],["Tonga",["oceania"],"to","676"],["Trinidad and Tobago",["america","carribean"],"tt","1868"],["Tunisia",["africa","north-africa"],"tn","216"],["Turkey",["europe"],"tr","90","... ... .. .."],["Turkmenistan",["asia","ex-ussr"],"tm","993"],["Tuvalu",["asia"],"tv","688"],["Uganda",["africa"],"ug","256"],["Ukraine",["europe","ex-ussr"],"ua","380","(..) ... .. .."],["United Arab Emirates",["middle-east"],"ae","971"],["United Kingdom",["europe","eu-union"],"gb","44",".... ......"],["United States",["america","north-america"],"us","1","(...) ...-....",0,["907","205","251","256","334","479","501","870","480","520","602","623","928","209","213","310","323","408","415","510","530","559","562","619","626","650","661","707","714","760","805","818","831","858","909","916","925","949","951","303","719","970","203","860","202","302","239","305","321","352","386","407","561","727","772","813","850","863","904","941","954","229","404","478","706","770","912","808","319","515","563","641","712","208","217","309","312","618","630","708","773","815","847","219","260","317","574","765","812","316","620","785","913","270","502","606","859","225","318","337","504","985","413","508","617","781","978","301","410","207","231","248","269","313","517","586","616","734","810","906","989","218","320","507","612","651","763","952","314","417","573","636","660","816","228","601","662","406","252","336","704","828","910","919","701","308","402","603","201","609","732","856","908","973","505","575","702","775","212","315","516","518","585","607","631","716","718","845","914","216","330","419","440","513","614","740","937","405","580","918","503","541","215","412","570","610","717","724","814","401","803","843","864","605","423","615","731","865","901","931","210","214","254","281","325","361","409","432","512","713","806","817","830","903","915","936","940","956","972","979","435","801","276","434","540","703","757","804","802","206","253","360","425","509","262","414","608","715","920","304","307"]],["Uruguay",["america","south-america"],"uy","598"],["Uzbekistan",["asia","ex-ussr"],"uz","998",".. ... .. .."],["Vanuatu",["oceania"],"vu","678"],["Vatican City",["europe"],"va","39",".. .... ....",1],["Venezuela",["america","south-america"],"ve","58"],["Vietnam",["asia"],"vn","84"],["Yemen",["middle-east"],"ye","967"],["Zambia",["africa"],"zm","260"],["Zimbabwe",["africa"],"zw","263"]],le=[["American Samoa",["oceania"],"as","1684"],["Anguilla",["america","carribean"],"ai","1264"],["Bermuda",["america","north-america"],"bm","1441"],["British Virgin Islands",["america","carribean"],"vg","1284"],["Cayman Islands",["america","carribean"],"ky","1345"],["Cook Islands",["oceania"],"ck","682"],["Falkland Islands",["america","south-america"],"fk","500"],["Faroe Islands",["europe"],"fo","298"],["Gibraltar",["europe"],"gi","350"],["Greenland",["america"],"gl","299"],["Jersey",["europe","eu-union"],"je","44",".... ......"],["Montserrat",["america","carribean"],"ms","1664"],["Niue",["asia"],"nu","683"],["Norfolk Island",["oceania"],"nf","672"],["Northern Mariana Islands",["oceania"],"mp","1670"],["Saint Barthélemy",["america","carribean"],"bl","590","",1],["Saint Helena",["africa"],"sh","290"],["Saint Martin",["america","carribean"],"mf","590","",2],["Saint Pierre and Miquelon",["america","north-america"],"pm","508"],["Sint Maarten",["america","carribean"],"sx","1721"],["Tokelau",["oceania"],"tk","690"],["Turks and Caicos Islands",["america","carribean"],"tc","1649"],["U.S. Virgin Islands",["america","carribean"],"vi","1340"],["Wallis and Futuna",["oceania"],"wf","681"]];function G(_,W,Z,ae,L){return!Z||L?_+"".padEnd(W.length,".")+" "+ae:_+"".padEnd(W.length,".")+" "+Z}function T(_,W,Z,ae,L){var m,pe,Y=[];return pe=W===!0,[(m=[]).concat.apply(m,o(_.map(function(K){var me={name:K[0],regions:K[1],iso2:K[2],countryCode:K[3],dialCode:K[3],format:G(Z,K[3],K[4],ae,L),priority:K[5]||0},ye=[];return K[6]&&K[6].map(function(Te){var X=function(je){for(var Ae=1;Ae<arguments.length;Ae++){var P=arguments[Ae]!=null?arguments[Ae]:{},D=Object.keys(P);typeof Object.getOwnPropertySymbols=="function"&&(D=D.concat(Object.getOwnPropertySymbols(P).filter(function($){return Object.getOwnPropertyDescriptor(P,$).enumerable}))),D.forEach(function($){a(je,$,P[$])})}return je}({},me);X.dialCode=K[3]+Te,X.isAreaCode=!0,X.areaCodeLength=Te.length,ye.push(X)}),ye.length>0?(me.mainCode=!0,pe||W.constructor.name==="Array"&&W.includes(K[2])?(me.hasAreaCodes=!0,[me].concat(ye)):(Y=Y.concat(ye),[me])):[me]}))),Y]}function B(_,W,Z,ae){if(Z!==null){var L=Object.keys(Z),m=Object.values(Z);L.forEach(function(pe,Y){if(ae)return _.push([pe,m[Y]]);var K=_.findIndex(function(ye){return ye[0]===pe});if(K===-1){var me=[pe];me[W]=m[Y],_.push(me)}else _[K][W]=m[Y]})}}function J(_,W){return W.length===0?_:_.map(function(Z){var ae=W.findIndex(function(m){return m[0]===Z[2]});if(ae===-1)return Z;var L=W[ae];return L[1]&&(Z[4]=L[1]),L[3]&&(Z[5]=L[3]),L[2]&&(Z[6]=L[2]),Z})}var ne=function _(W,Z,ae,L,m,pe,Y,K,me,ye,Te,X,je,Ae){s(this,_),this.filterRegions=function(ee,de){if(typeof ee=="string"){var Se=ee;return de.filter(function(q){return q.regions.some(function(se){return se===Se})})}return de.filter(function(q){return ee.map(function(se){return q.regions.some(function(De){return De===se})}).some(function(se){return se})})},this.sortTerritories=function(ee,de){var Se=[].concat(o(ee),o(de));return Se.sort(function(q,se){return q.name<se.name?-1:q.name>se.name?1:0}),Se},this.getFilteredCountryList=function(ee,de,Se){return ee.length===0?de:Se?ee.map(function(q){var se=de.find(function(De){return De.iso2===q});if(se)return se}).filter(function(q){return q}):de.filter(function(q){return ee.some(function(se){return se===q.iso2})})},this.localizeCountries=function(ee,de,Se){for(var q=0;q<ee.length;q++)de[ee[q].iso2]!==void 0?ee[q].localName=de[ee[q].iso2]:de[ee[q].name]!==void 0&&(ee[q].localName=de[ee[q].name]);return Se||ee.sort(function(se,De){return se.localName<De.localName?-1:se.localName>De.localName?1:0}),ee},this.getCustomAreas=function(ee,de){for(var Se=[],q=0;q<de.length;q++){var se=JSON.parse(JSON.stringify(ee));se.dialCode+=de[q],Se.push(se)}return Se},this.excludeCountries=function(ee,de){return de.length===0?ee:ee.filter(function(Se){return!de.includes(Se.iso2)})};var P=function(ee,de,Se){var q=[];return B(q,1,ee,!0),B(q,3,de),B(q,2,Se),q}(K,me,ye),D=J(JSON.parse(JSON.stringify(z)),P),$=J(JSON.parse(JSON.stringify(le)),P),he=ce(T(D,W,X,je,Ae),2),ue=he[0],Ce=he[1];if(Z){var we=ce(T($,W,X,je,Ae),2),Re=we[0];we[1],ue=this.sortTerritories(Re,ue)}ae&&(ue=this.filterRegions(ae,ue)),this.onlyCountries=this.localizeCountries(this.excludeCountries(this.getFilteredCountryList(L,ue,Y.includes("onlyCountries")),pe),Te,Y.includes("onlyCountries")),this.preferredCountries=m.length===0?[]:this.localizeCountries(this.getFilteredCountryList(m,ue,Y.includes("preferredCountries")),Te,Y.includes("preferredCountries")),this.hiddenAreaCodes=this.excludeCountries(this.getFilteredCountryList(L,Ce),pe)},Ie=function(_){function W(L){var m;s(this,W),(m=function(P,D){return!D||f(D)!=="object"&&typeof D!="function"?y(P):D}(this,C(W).call(this,L))).getProbableCandidate=A()(function(P){return P&&P.length!==0?m.state.onlyCountries.filter(function(D){return M()(D.name.toLowerCase(),P.toLowerCase())},y(y(m)))[0]:null}),m.guessSelectedCountry=A()(function(P,D,$,he){var ue;if(m.props.enableAreaCodes===!1&&(he.some(function(Re){if(M()(P,Re.dialCode))return $.some(function(ee){if(Re.iso2===ee.iso2&&ee.mainCode)return ue=ee,!0}),!0}),ue))return ue;var Ce=$.find(function(Re){return Re.iso2==D});if(P.trim()==="")return Ce;var we=$.reduce(function(Re,ee){return M()(P,ee.dialCode)&&(ee.dialCode.length>Re.dialCode.length||ee.dialCode.length===Re.dialCode.length&&ee.priority<Re.priority)?ee:Re},{dialCode:"",priority:10001},y(y(m)));return we.name?we:Ce}),m.updateCountry=function(P){var D,$=m.state.onlyCountries;(D=P.indexOf(0)>="0"&&P.indexOf(0)<="9"?$.find(function(he){return he.dialCode==+P}):$.find(function(he){return he.iso2==P}))&&D.dialCode&&m.setState({selectedCountry:D,formattedNumber:m.props.disableCountryCode?"":m.formatNumber(D.dialCode,D)})},m.scrollTo=function(P,D){if(P){var $=m.dropdownRef;if($&&document.body){var he=$.offsetHeight,ue=$.getBoundingClientRect().top+document.body.scrollTop,Ce=ue+he,we=P,Re=we.getBoundingClientRect(),ee=we.offsetHeight,de=Re.top+document.body.scrollTop,Se=de+ee,q=de-ue+$.scrollTop,se=he/2-ee/2;if(m.props.enableSearch?de<ue+32:de<ue)D&&(q-=se),$.scrollTop=q;else if(Se>Ce){D&&(q+=se);var De=he-ee;$.scrollTop=q-De}}}},m.scrollToTop=function(){var P=m.dropdownRef;P&&document.body&&(P.scrollTop=0)},m.formatNumber=function(P,D){if(!D)return P;var $,he=D.format,ue=m.props,Ce=ue.disableCountryCode,we=ue.enableAreaCodeStretch,Re=ue.enableLongNumbers,ee=ue.autoFormat;if(Ce?(($=he.split(" ")).shift(),$=$.join(" ")):we&&D.isAreaCode?(($=he.split(" "))[1]=$[1].replace(/\.+/,"".padEnd(D.areaCodeLength,".")),$=$.join(" ")):$=he,!P||P.length===0)return Ce?"":m.props.prefix;if(P&&P.length<2||!$||!ee)return Ce?P:m.props.prefix+P;var de,Se=j()($,function(q,se){if(q.remainingText.length===0)return q;if(se!==".")return{formattedText:q.formattedText+se,remainingText:q.remainingText};var De,ot=i(De=q.remainingText)||n(De)||l(),Ke=ot[0],lt=ot.slice(1);return{formattedText:q.formattedText+Ke,remainingText:lt}},{formattedText:"",remainingText:P.split("")});return(de=Re?Se.formattedText+Se.remainingText.join(""):Se.formattedText).includes("(")&&!de.includes(")")&&(de+=")"),de},m.cursorToEnd=function(){var P=m.numberInputRef;if(document.activeElement===P){P.focus();var D=P.value.length;P.value.charAt(D-1)===")"&&(D-=1),P.setSelectionRange(D,D)}},m.getElement=function(P){return m["flag_no_".concat(P)]},m.getCountryData=function(){return m.state.selectedCountry?{name:m.state.selectedCountry.name||"",dialCode:m.state.selectedCountry.dialCode||"",countryCode:m.state.selectedCountry.iso2||"",format:m.state.selectedCountry.format||""}:{}},m.handleFlagDropdownClick=function(P){if(P.preventDefault(),m.state.showDropdown||!m.props.disabled){var D=m.state,$=D.preferredCountries,he=D.onlyCountries,ue=D.selectedCountry,Ce=m.concatPreferredCountries($,he).findIndex(function(we){return we.dialCode===ue.dialCode&&we.iso2===ue.iso2});m.setState({showDropdown:!m.state.showDropdown,highlightCountryIndex:Ce},function(){m.state.showDropdown&&m.scrollTo(m.getElement(m.state.highlightCountryIndex))})}},m.handleInput=function(P){var D=P.target.value,$=m.props,he=$.prefix,ue=$.onChange,Ce=m.props.disableCountryCode?"":he,we=m.state.selectedCountry,Re=m.state.freezeSelection;if(!m.props.countryCodeEditable){var ee=he+(we.hasAreaCodes?m.state.onlyCountries.find(function(Ue){return Ue.iso2===we.iso2&&Ue.mainCode}).dialCode:we.dialCode);if(D.slice(0,ee.length)!==ee)return}if(D===he)return ue&&ue("",m.getCountryData(),P,""),m.setState({formattedNumber:""});if(!(D.replace(/\D/g,"").length>15&&(m.props.enableLongNumbers===!1||typeof m.props.enableLongNumbers=="number"&&D.replace(/\D/g,"").length>m.props.enableLongNumbers))&&D!==m.state.formattedNumber){P.preventDefault?P.preventDefault():P.returnValue=!1;var de=m.props.country,Se=m.state,q=Se.onlyCountries,se=Se.selectedCountry,De=Se.hiddenAreaCodes;if(ue&&P.persist(),D.length>0){var ot=D.replace(/\D/g,"");(!m.state.freezeSelection||se&&se.dialCode.length>ot.length)&&(we=m.props.disableCountryGuess?se:m.guessSelectedCountry(ot.substring(0,6),de,q,De)||se,Re=!1),Ce=m.formatNumber(ot,we),we=we.dialCode?we:se}var Ke=P.target.selectionStart,lt=P.target.selectionStart,mt=m.state.formattedNumber,St=Ce.length-mt.length;m.setState({formattedNumber:Ce,freezeSelection:Re,selectedCountry:we},function(){St>0&&(lt-=St),Ce.charAt(Ce.length-1)==")"?m.numberInputRef.setSelectionRange(Ce.length-1,Ce.length-1):lt>0&&mt.length>=Ce.length?m.numberInputRef.setSelectionRange(lt,lt):Ke<mt.length&&m.numberInputRef.setSelectionRange(Ke,Ke),ue&&ue(Ce.replace(/[^0-9]+/g,""),m.getCountryData(),P,Ce)})}},m.handleInputClick=function(P){m.setState({showDropdown:!1}),m.props.onClick&&m.props.onClick(P,m.getCountryData())},m.handleDoubleClick=function(P){var D=P.target.value.length;P.target.setSelectionRange(0,D)},m.handleFlagItemClick=function(P,D){var $=m.state.selectedCountry,he=m.state.onlyCountries.find(function(Re){return Re==P});if(he){var ue=m.state.formattedNumber.replace(" ","").replace("(","").replace(")","").replace("-",""),Ce=ue.length>1?ue.replace($.dialCode,he.dialCode):he.dialCode,we=m.formatNumber(Ce.replace(/\D/g,""),he);m.setState({showDropdown:!1,selectedCountry:he,freezeSelection:!0,formattedNumber:we,searchValue:""},function(){m.cursorToEnd(),m.props.onChange&&m.props.onChange(we.replace(/[^0-9]+/g,""),m.getCountryData(),D,we)})}},m.handleInputFocus=function(P){m.numberInputRef&&m.numberInputRef.value===m.props.prefix&&m.state.selectedCountry&&!m.props.disableCountryCode&&m.setState({formattedNumber:m.props.prefix+m.state.selectedCountry.dialCode},function(){m.props.jumpCursorToEnd&&setTimeout(m.cursorToEnd,0)}),m.setState({placeholder:""}),m.props.onFocus&&m.props.onFocus(P,m.getCountryData()),m.props.jumpCursorToEnd&&setTimeout(m.cursorToEnd,0)},m.handleInputBlur=function(P){P.target.value||m.setState({placeholder:m.props.placeholder}),m.props.onBlur&&m.props.onBlur(P,m.getCountryData())},m.handleInputCopy=function(P){if(m.props.copyNumbersOnly){var D=window.getSelection().toString().replace(/[^0-9]+/g,"");P.clipboardData.setData("text/plain",D),P.preventDefault()}},m.getHighlightCountryIndex=function(P){var D=m.state.highlightCountryIndex+P;return D<0||D>=m.state.onlyCountries.length+m.state.preferredCountries.length?D-P:m.props.enableSearch&&D>m.getSearchFilteredCountries().length?0:D},m.searchCountry=function(){var P=m.getProbableCandidate(m.state.queryString)||m.state.onlyCountries[0],D=m.state.onlyCountries.findIndex(function($){return $==P})+m.state.preferredCountries.length;m.scrollTo(m.getElement(D),!0),m.setState({queryString:"",highlightCountryIndex:D})},m.handleKeydown=function(P){var D=m.props.keys,$=P.target.className;if($.includes("selected-flag")&&P.which===D.ENTER&&!m.state.showDropdown)return m.handleFlagDropdownClick(P);if($.includes("form-control")&&(P.which===D.ENTER||P.which===D.ESC))return P.target.blur();if(m.state.showDropdown&&!m.props.disabled&&(!$.includes("search-box")||P.which===D.UP||P.which===D.DOWN||P.which===D.ENTER||P.which===D.ESC&&P.target.value==="")){P.preventDefault?P.preventDefault():P.returnValue=!1;var he=function(ue){m.setState({highlightCountryIndex:m.getHighlightCountryIndex(ue)},function(){m.scrollTo(m.getElement(m.state.highlightCountryIndex),!0)})};switch(P.which){case D.DOWN:he(1);break;case D.UP:he(-1);break;case D.ENTER:m.props.enableSearch?m.handleFlagItemClick(m.getSearchFilteredCountries()[m.state.highlightCountryIndex]||m.getSearchFilteredCountries()[0],P):m.handleFlagItemClick([].concat(o(m.state.preferredCountries),o(m.state.onlyCountries))[m.state.highlightCountryIndex],P);break;case D.ESC:case D.TAB:m.setState({showDropdown:!1},m.cursorToEnd);break;default:(P.which>=D.A&&P.which<=D.Z||P.which===D.SPACE)&&m.setState({queryString:m.state.queryString+String.fromCharCode(P.which)},m.state.debouncedQueryStingSearcher)}}},m.handleInputKeyDown=function(P){var D=m.props,$=D.keys,he=D.onEnterKeyPress,ue=D.onKeyDown;P.which===$.ENTER&&he&&he(P),ue&&ue(P)},m.handleClickOutside=function(P){m.dropdownRef&&!m.dropdownContainerRef.contains(P.target)&&m.state.showDropdown&&m.setState({showDropdown:!1})},m.handleSearchChange=function(P){var D=P.currentTarget.value,$=m.state,he=$.preferredCountries,ue=$.selectedCountry,Ce=0;if(D===""&&ue){var we=m.state.onlyCountries;Ce=m.concatPreferredCountries(he,we).findIndex(function(Re){return Re==ue}),setTimeout(function(){return m.scrollTo(m.getElement(Ce))},100)}m.setState({searchValue:D,highlightCountryIndex:Ce})},m.concatPreferredCountries=function(P,D){return P.length>0?o(new Set(P.concat(D))):D},m.getDropdownCountryName=function(P){return P.localName||P.name},m.getSearchFilteredCountries=function(){var P=m.state,D=P.preferredCountries,$=P.onlyCountries,he=P.searchValue,ue=m.props.enableSearch,Ce=m.concatPreferredCountries(D,$),we=he.trim().toLowerCase().replace("+","");if(ue&&we){if(/^\d+$/.test(we))return Ce.filter(function(de){var Se=de.dialCode;return["".concat(Se)].some(function(q){return q.toLowerCase().includes(we)})});var Re=Ce.filter(function(de){var Se=de.iso2;return["".concat(Se)].some(function(q){return q.toLowerCase().includes(we)})}),ee=Ce.filter(function(de){var Se=de.name,q=de.localName;return de.iso2,["".concat(Se),"".concat(q||"")].some(function(se){return se.toLowerCase().includes(we)})});return m.scrollToTop(),o(new Set([].concat(Re,ee)))}return Ce},m.getCountryDropdownList=function(){var P=m.state,D=P.preferredCountries,$=P.highlightCountryIndex,he=P.showDropdown,ue=P.searchValue,Ce=m.props,we=Ce.disableDropdown,Re=Ce.prefix,ee=m.props,de=ee.enableSearch,Se=ee.searchNotFound,q=ee.disableSearchIcon,se=ee.searchClass,De=ee.searchStyle,ot=ee.searchPlaceholder,Ke=ee.autocompleteSearch,lt=m.getSearchFilteredCountries().map(function(Ue,Gt){var Ft=$===Gt,an=re()({country:!0,preferred:Ue.iso2==="us"||Ue.iso2==="gb",active:Ue.iso2==="us",highlight:Ft}),At="flag ".concat(Ue.iso2);return p.a.createElement("li",Object.assign({ref:function(Pt){return m["flag_no_".concat(Gt)]=Pt},key:"flag_no_".concat(Gt),"data-flag-key":"flag_no_".concat(Gt),className:an,"data-dial-code":"1",tabIndex:we?"-1":"0","data-country-code":Ue.iso2,onClick:function(Pt){return m.handleFlagItemClick(Ue,Pt)},role:"option"},Ft?{"aria-selected":!0}:{}),p.a.createElement("div",{className:At}),p.a.createElement("span",{className:"country-name"},m.getDropdownCountryName(Ue)),p.a.createElement("span",{className:"dial-code"},Ue.format?m.formatNumber(Ue.dialCode,Ue):Re+Ue.dialCode))}),mt=p.a.createElement("li",{key:"dashes",className:"divider"});D.length>0&&(!de||de&&!ue.trim())&&lt.splice(D.length,0,mt);var St=re()(a({"country-list":!0,hide:!he},m.props.dropdownClass,!0));return p.a.createElement("ul",{ref:function(Ue){return!de&&Ue&&Ue.focus(),m.dropdownRef=Ue},className:St,style:m.props.dropdownStyle,role:"listbox",tabIndex:"0"},de&&p.a.createElement("li",{className:re()(a({search:!0},se,se))},!q&&p.a.createElement("span",{className:re()(a({"search-emoji":!0},"".concat(se,"-emoji"),se)),role:"img","aria-label":"Magnifying glass"},"🔎"),p.a.createElement("input",{className:re()(a({"search-box":!0},"".concat(se,"-box"),se)),style:De,type:"search",placeholder:ot,autoFocus:!0,autoComplete:Ke?"on":"off",value:ue,onChange:m.handleSearchChange})),lt.length>0?lt:p.a.createElement("li",{className:"no-entries-message"},p.a.createElement("span",null,Se)))};var pe,Y=new ne(L.enableAreaCodes,L.enableTerritories,L.regions,L.onlyCountries,L.preferredCountries,L.excludeCountries,L.preserveOrder,L.masks,L.priority,L.areaCodes,L.localization,L.prefix,L.defaultMask,L.alwaysDefaultMask),K=Y.onlyCountries,me=Y.preferredCountries,ye=Y.hiddenAreaCodes,Te=L.value?L.value.replace(/\D/g,""):"";pe=L.disableInitialCountryGuess?0:Te.length>1?m.guessSelectedCountry(Te.substring(0,6),L.country,K,ye)||0:L.country&&K.find(function(P){return P.iso2==L.country})||0;var X,je=Te.length<2&&pe&&!M()(Te,pe.dialCode)?pe.dialCode:"";X=Te===""&&pe===0?"":m.formatNumber((L.disableCountryCode?"":je)+Te,pe.name?pe:void 0);var Ae=K.findIndex(function(P){return P==pe});return m.state={showDropdown:L.showDropdown,formattedNumber:X,onlyCountries:K,preferredCountries:me,hiddenAreaCodes:ye,selectedCountry:pe,highlightCountryIndex:Ae,queryString:"",freezeSelection:!1,debouncedQueryStingSearcher:E()(m.searchCountry,250),searchValue:""},m}var Z,ae;return function(L,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(m&&m.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),m&&b(L,m)}(W,_),Z=W,(ae=[{key:"componentDidMount",value:function(){document.addEventListener&&this.props.enableClickOutside&&document.addEventListener("mousedown",this.handleClickOutside),this.props.onMount&&this.props.onMount(this.state.formattedNumber.replace(/[^0-9]+/g,""),this.getCountryData(),this.state.formattedNumber)}},{key:"componentWillUnmount",value:function(){document.removeEventListener&&this.props.enableClickOutside&&document.removeEventListener("mousedown",this.handleClickOutside)}},{key:"componentDidUpdate",value:function(L,m,pe){L.country!==this.props.country?this.updateCountry(this.props.country):L.value!==this.props.value&&this.updateFormattedNumber(this.props.value)}},{key:"updateFormattedNumber",value:function(L){if(L===null)return this.setState({selectedCountry:0,formattedNumber:""});var m=this.state,pe=m.onlyCountries,Y=m.selectedCountry,K=m.hiddenAreaCodes,me=this.props,ye=me.country,Te=me.prefix;if(L==="")return this.setState({selectedCountry:Y,formattedNumber:""});var X,je,Ae=L.replace(/\D/g,"");if(Y&&M()(L,Te+Y.dialCode))je=this.formatNumber(Ae,Y),this.setState({formattedNumber:je});else{var P=(X=this.props.disableCountryGuess?Y:this.guessSelectedCountry(Ae.substring(0,6),ye,pe,K)||Y)&&M()(Ae,Te+X.dialCode)?X.dialCode:"";je=this.formatNumber((this.props.disableCountryCode?"":P)+Ae,X||void 0),this.setState({selectedCountry:X,formattedNumber:je})}}},{key:"render",value:function(){var L,m,pe,Y=this,K=this.state,me=K.onlyCountries,ye=K.selectedCountry,Te=K.showDropdown,X=K.formattedNumber,je=K.hiddenAreaCodes,Ae=this.props,P=Ae.disableDropdown,D=Ae.renderStringAsFlag,$=Ae.isValid,he=Ae.defaultErrorMessage,ue=Ae.specialLabel;if(typeof $=="boolean")m=$;else{var Ce=$(X.replace(/\D/g,""),ye,me,je);typeof Ce=="boolean"?(m=Ce)===!1&&(pe=he):(m=!1,pe=Ce)}var we=re()((a(L={},this.props.containerClass,!0),a(L,"react-tel-input",!0),L)),Re=re()({arrow:!0,up:Te}),ee=re()(a({"form-control":!0,"invalid-number":!m,open:Te},this.props.inputClass,!0)),de=re()({"selected-flag":!0,open:Te}),Se=re()(a({"flag-dropdown":!0,"invalid-number":!m,open:Te},this.props.buttonClass,!0)),q="flag ".concat(ye&&ye.iso2);return p.a.createElement("div",{className:"".concat(we," ").concat(this.props.className),style:this.props.style||this.props.containerStyle,onKeyDown:this.handleKeydown},ue&&p.a.createElement("div",{className:"special-label"},ue),pe&&p.a.createElement("div",{className:"invalid-number-message"},pe),p.a.createElement("input",Object.assign({className:ee,style:this.props.inputStyle,onChange:this.handleInput,onClick:this.handleInputClick,onDoubleClick:this.handleDoubleClick,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onCopy:this.handleInputCopy,value:X,onKeyDown:this.handleInputKeyDown,placeholder:this.props.placeholder,disabled:this.props.disabled,type:"tel"},this.props.inputProps,{ref:function(se){Y.numberInputRef=se,typeof Y.props.inputProps.ref=="function"?Y.props.inputProps.ref(se):typeof Y.props.inputProps.ref=="object"&&(Y.props.inputProps.ref.current=se)}})),p.a.createElement("div",{className:Se,style:this.props.buttonStyle,ref:function(se){return Y.dropdownContainerRef=se}},D?p.a.createElement("div",{className:de},D):p.a.createElement("div",{onClick:P?void 0:this.handleFlagDropdownClick,className:de,title:ye?"".concat(ye.localName||ye.name,": + ").concat(ye.dialCode):"",tabIndex:P?"-1":"0",role:"button","aria-haspopup":"listbox","aria-expanded":!!Te||void 0},p.a.createElement("div",{className:q},!P&&p.a.createElement("div",{className:Re}))),Te&&this.getCountryDropdownList()))}}])&&c(Z.prototype,ae),W}(p.a.Component);Ie.defaultProps={country:"",value:"",onlyCountries:[],preferredCountries:[],excludeCountries:[],placeholder:"1 (702) 123-4567",searchPlaceholder:"search",searchNotFound:"No entries to show",flagsImagePath:"./flags.png",disabled:!1,containerStyle:{},inputStyle:{},buttonStyle:{},dropdownStyle:{},searchStyle:{},containerClass:"",inputClass:"",buttonClass:"",dropdownClass:"",searchClass:"",className:"",autoFormat:!0,enableAreaCodes:!1,enableTerritories:!1,disableCountryCode:!1,disableDropdown:!1,enableLongNumbers:!1,countryCodeEditable:!0,enableSearch:!1,disableSearchIcon:!1,disableInitialCountryGuess:!1,disableCountryGuess:!1,regions:"",inputProps:{},localization:{},masks:null,priority:null,areaCodes:null,preserveOrder:[],defaultMask:"... ... ... ... ..",alwaysDefaultMask:!1,prefix:"+",copyNumbersOnly:!0,renderStringAsFlag:"",autocompleteSearch:!1,jumpCursorToEnd:!0,enableAreaCodeStretch:!1,enableClickOutside:!0,showDropdown:!1,isValid:!0,defaultErrorMessage:"",specialLabel:"Phone",onEnterKeyPress:null,keys:{UP:38,DOWN:40,RIGHT:39,LEFT:37,ENTER:13,ESC:27,PLUS:43,A:65,Z:90,SPACE:32,TAB:9}},t.default=Ie}]);const Ym=uu(zm),Jm=({value:e,onChange:t,error:r,onBlur:a,id:n,name:o,required:i,defaultCountry:l="us",className:s,responsive:c=!1,enableSearch:d=!0,autoComplete:f})=>{const y=(C,b)=>{t("+"+C,b.countryCode)};return u.jsxs("div",{className:s,children:[u.jsx("div",{className:Me("movmo-phone-input flex items-center px-3.5 py-0 h-10 rounded-lg border",c&&"movmo-phone-input-responsive",r?"border-error-500 focus:ring-error-500":"border-grayWarm-300 focus-within:ring-2 focus-within:ring-grayWarm-950"),children:u.jsx(Ym,{country:l,value:e.replace("+",""),onChange:y,inputProps:{onBlur:a,required:i,id:n,name:o,...f&&{autoComplete:f}},enableSearch:d,autoFormat:!0})}),r&&u.jsx("p",{className:"text-error-500 text-xs mt-1",children:r})]})},ya=e=>`otp-input-${e}`,lr=e=>Rt(document.getElementById(ya(e))),Um=e=>Array.from({length:e},()=>""),Ua=({length:e,onComplete:t,onChange:r,disabled:a=!1,autoFocus:n=!1})=>{const[o,i]=w.useState(()=>Um(e)),l=w.useRef(null),s=w.useRef(t);s.current=t;const c=b=>{i(b),r==null||r(b.join(""))},d=b=>{const h=[...o];for(let x=0;x<Math.min(b.length,e);x++)h[x]=b[x];c(h);const p=h.findIndex(x=>x==="");lr(p!==-1?p:e-1)},f=(b,h)=>{if(a||!/^\d*$/.test(b))return;if(b.length>=e){d(b);return}const p=[...o];p[h]=b.slice(-1),c(p),b&&h<e-1&&lr(h+1)},y=b=>{if(a)return;b.preventDefault();const h=b.clipboardData.getData("text/plain").replace(/\D/g,"");h&&d(h)},C=b=>{if(a)return;const h=[...o];h[b]="",c(h),b>0&&lr(b-1)};return w.useEffect(()=>{n&&lr(0)},[]),w.useEffect(()=>{if(a)return;const b=o.join("");if(o.some(h=>h==="")){l.current=null;return}l.current!==b&&(l.current=b,s.current(b))},[o,a]),u.jsx("div",{className:"flex justify-center gap-1.5 sm:gap-2",children:Array.from({length:e}).map((b,h)=>u.jsx("input",{type:"text",inputMode:"numeric",pattern:"[0-9]*",maxLength:h===0?e:1,autoComplete:h===0?"one-time-code":"off","aria-label":`Digit ${h+1} of ${e}`,disabled:a,className:`w-full max-w-10 h-16 border border-grayWarm-300 shadow-xs rounded-md text-center text-lg focus:outline-none focus:ring-2 focus:ring-grayWarm-950${a?" bg-grayWarm-100 text-grayWarm-400 cursor-not-allowed":""}`,value:o[h]??"",onChange:p=>f(p.target.value,h),onPaste:y,id:ya(h),"data-testid":ya(h),onKeyDown:p=>{p.key==="Backspace"&&C(h)}},h))})};function $m(e){const t=Math.max(0,Math.ceil(e));return`${Math.floor(t/60)}:${String(t%60).padStart(2,"0")}`}const pr={didntGetIt:"Didn't get it?",resend:"Resend code",resendIn:e=>`Resend code in ${$m(e)}`,attemptsLeft:e=>`${e} ${e===1?"attempt":"attempts"} left.`},_l=({secondsLeft:e,onResend:t,disabled:r=!1,className:a=""})=>u.jsx("p",{className:`text-sm text-grayWarm-600 ${a}`,children:e>0?pr.resendIn(e):u.jsxs(u.Fragment,{children:[u.jsx("span",{children:pr.didntGetIt})," ",u.jsx("button",{type:"button",onClick:t,disabled:r,className:"font-semibold text-brand-600 hover:text-brand-700 rounded focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500 disabled:opacity-60 disabled:cursor-not-allowed",children:pr.resend})]})}),Qm=({email:e,phone:t,otpLength:r,otpAction:a,onVerify:n,onClose:o,externalError:i,externalErrorVariant:l="error",disabled:s=!1,title:c,description:d,onOtpChange:f,onResend:y,resendAfter:C=0,attemptsRemaining:b})=>{const[h,p]=w.useState(C);w.useEffect(()=>{p(C)},[C]);const x=h>0;w.useEffect(()=>{if(!x)return;const A=setInterval(()=>p(I=>Math.max(0,I-1)),1e3);return()=>clearInterval(A)},[x]);const E=()=>{y==null||y(),p(C)};w.useEffect(()=>{const A=I=>{I.key==="Escape"&&o()};return document.addEventListener("keydown",A),()=>document.removeEventListener("keydown",A)},[o]);const R=l==="warning"?"text-warning-700":"text-error-500";return u.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex justify-center items-center z-[110] px-4",children:u.jsxs(Aa,{className:"w-full max-w-[400px] rounded-lg bg-white",children:[u.jsx(wa,{className:"p-4 border-b border-grayWarm-200",children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("button",{onClick:o,className:"w-8 h-8 flex items-center justify-center bg-grayWarm-100 hover:bg-grayWarm-200 rounded-lg transition-colors","aria-label":"Close modal",children:u.jsx("svg",{className:"w-4 h-4 text-grayWarm-600",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),u.jsx("h2",{className:"text-xl md:text-lg font-bold text-center flex-1",children:c||"Verify Account"}),u.jsx("div",{className:"w-8"})]})}),u.jsxs(Ea,{className:"p-4 text-center",children:[u.jsxs("div",{className:"text-center mb-3",children:[u.jsx("p",{className:"text-sm md:text-md text-grayWarm-600",children:d||"Enter the code we sent to"}),!d&&u.jsx("p",{className:"text-sm md:text-md text-grayWarm-600 mt-1",children:a===qt.OTPAction.EMAILED?e:t})]}),u.jsx("div",{className:"mb-6",children:u.jsx(Ua,{length:r,onComplete:n,onChange:f,disabled:s})}),i&&u.jsx("p",{className:`${R} text-center text-sm mb-4`,children:i}),b!==void 0&&u.jsx("p",{className:"text-error-500 text-center text-sm mb-4",children:pr.attemptsLeft(b)}),y&&u.jsx(_l,{secondsLeft:h,onResend:E,disabled:s,className:"text-center mb-2"})]})]})})};function $a(){if(typeof window>"u")return!1;try{return window.self!==window.top}catch{return!0}}const Km=new Set(["invalid_email","rate_limited","resend_too_soon","flow_expired","invalid_code","too_many_attempts","invalid_request","invalid_credential","topOrigin_required","passkey_limit","credential_exists","not_found","reauth_required","movmo_session_required","first_party_only","issuer_unavailable","passkey_failed","sign_in_failed","recovery_required","recovery_blocked","recovery_cooldown","code_sends_paused"]);function qm(e){return Km.has(e)}class Nt extends Error{constructor(t,r,a,n,o){super(r),this.status=t,this.code=r,this.retryAfter=a,this.attemptsRemaining=n,this.until=o}}function eb(e){return typeof e=="object"&&e!==null?e:void 0}function ci(e){return typeof e=="number"&&Number.isFinite(e)?e:void 0}function gt(e){if(e instanceof Nt)return e;const t=eb(e);if(t){const{response:r}=t;if(r&&typeof r=="object"){const a=typeof r.status=="number"?r.status:0,n=r.data&&typeof r.data=="object"?r.data:void 0,o=n==null?void 0:n.code,i=typeof o=="string"&&qm(o)?o:"unknown";return new Nt(a,i,ci(n==null?void 0:n.retry_after),ci(n==null?void 0:n.attempts_remaining),i==="recovery_cooldown"&&typeof(n==null?void 0:n.until)=="string"?n.until:void 0)}if(t.isAxiosError===!0||t.request!==void 0)return new Nt(0,"network")}return e instanceof TypeError&&/failed to fetch/i.test(e.message)?new Nt(0,"network"):new Nt(0,"unknown")}const tb=/^[A-Za-z0-9_-]{1,512}$/,nb=/^rc1\.[A-Za-z0-9_-]+$/,Dl=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}};function rb(e,t){const r=()=>{var n;return((n=t==null?void 0:t.locale)==null?void 0:n.call(t))??"en-US"};function a(n){const o=Dl();return o?{...n,time_zone:o}:n}return{async login(n){try{const{data:o}=await e.post("/v1/auth/login",a({email:n,locale:r()}));return o}catch(o){throw gt(o)}},async sendCode(n){try{const{data:o}=await e.post("/v1/auth/code",a({flow_id:n}));return o}catch(o){throw gt(o)}},async startRecovery(n){try{const{data:o}=await e.post("/v1/auth/recovery",a({flow_id:n}));return o}catch(o){throw gt(o)}},async cancelRecovery(n){if(!nb.test(n))throw new Nt(0,"invalid_request");try{await e.post("/v1/auth/recovery/cancel",{token:n})}catch(o){throw gt(o)}},async passkeyOptions(){try{const{data:n}=await e.post("/v1/auth/passkey/options",{});return n}catch(n){throw gt(n)}},async verifyCode(n,o){try{const{data:i}=await e.post("/v1/auth/verify",{flow_id:n,code:o});return i}catch(i){throw gt(i)}},async verifyPasskey(n,o){try{const{data:i}=await e.post("/v1/auth/verify",{flow_id:n,credential:o});return i}catch(i){throw gt(i)}},async listPasskeys(){try{const{data:n}=await e.get("/v1/users/me/passkeys");return n.passkeys??[]}catch(n){throw gt(n)}},async startRegistration(){try{const{data:n}=await e.post("/v1/users/me/passkeys/registration/start",{});return n}catch(n){throw gt(n)}},async completeRegistration(n,o){try{const{data:i}=await e.post("/v1/users/me/passkeys/registration/complete",a({flow_id:n,credential:o}));return i.passkey}catch(i){throw gt(i)}},async logout(){try{await e.post("/v1/auth/logout",{})}catch(n){gt(n)}},async deletePasskey(n){if(!tb.test(n))throw new Nt(0,"invalid_request");try{await e.delete(`/v1/users/me/passkeys/${encodeURIComponent(n)}`)}catch(o){throw gt(o)}}}}const et={passkeyNotRecognized:"That passkey isn't recognized. We've sent you a code instead.",tooManyAttempts:"Too many attempts. Start again.",flowExpired:"That took too long. Start again.",codeSent:"Code sent",signedIn:"Signed in",generic:"Something went wrong. Try again.",accountMismatch:"That's a different account. Sign in with the account you're using.",passkeyExists:"This passkey is already on your account.",enrollExpired:"That took too long. Try again.",invalidEmail:"Enter a valid email address.",passkeyUnavailable:"This browser couldn't use a passkey. Choose 'I can't use my passkey' to sign in with a code.",discoverableNotRecognized:"That passkey isn't recognized. Continue with your email instead.",recoveryStarted:"Sign in without your passkey",recoveryBlocked:"We can't recover this account right now"};function Wl(e){return e===void 0?"Incorrect code.":`Incorrect code. ${e} ${e===1?"attempt":"attempts"} left.`}function Qa(e){const t=e!==void 0&&Number.isFinite(e)?Math.max(1,Math.ceil(e/60)):1;return`Too many requests. Try again in ${t} ${t===1?"minute":"minutes"}.`}const Ka="movmo_pk_prompt",ab=864e5,ob=14,ib=3,sb=99,lb=3456e4,qa=e=>Math.floor(e/ab),ub=/^\d{1,3}(\.\d{1,3}){3}$/;function Ll(e){if(!e||e.includes(":")||ub.test(e))return;const t=e.split(".");if(!(t.length<2))return"."+t.slice(-2).join(".")}function cb(e,t){const r=[];for(const a of e.split(";")){const n=a.indexOf("=");n!==-1&&a.slice(0,n).trim()===t&&r.push(a.slice(n+1))}return r}function db(e){if(typeof e!="object"||e===null)return!1;const{v:t,d:r,n:a,x:n}=e;return t===1&&typeof r=="number"&&Number.isInteger(r)&&r>=0&&typeof a=="number"&&Number.isInteger(a)&&a>=0&&(n===0||n===1)}function Yn(e=document.cookie,t=Date.now()){const r=cb(e,Ka);if(r.length!==1)return null;let a;try{a=JSON.parse(decodeURIComponent(r[0]))}catch{return null}return!db(a)||a.d>qa(t)?null:a}function Xl(e=Date.now(),t=Yn(document.cookie,e)){return t?t.x===1?!1:t.d===0?!0:qa(e)-t.d>=ob&&t.n>=ib:!0}function eo(e){try{const t=Ll(window.location.hostname),r={...e,n:Math.min(e.n,sb)};document.cookie=`${Ka}=${encodeURIComponent(JSON.stringify(r))}; Path=/; Max-Age=${lb}; SameSite=Lax; Secure${t?"; Domain="+t:""}`}catch{}}function Hl(){const e=Yn();!e||e.d<=0||e.x!==0||eo({v:1,d:e.d,n:e.n+1,x:e.x})}function Zl(e=Date.now()){eo({v:1,d:qa(e),n:0,x:0})}function zl(e){const t=Yn();eo({v:1,d:(t==null?void 0:t.d)??0,n:(t==null?void 0:t.n)??0,x:e?1:0})}function Yl(){var e;return((e=Yn())==null?void 0:e.x)===1}function _r(e){switch(e instanceof DOMException||typeof e=="object"&&e!==null&&"name"in e?e.name:void 0){case"NotAllowedError":return"cancelled";case"AbortError":return"aborted";case"InvalidStateError":return"exists";case"NotSupportedError":return"unsupported";case"SecurityError":return"security";default:return"unknown"}}function to(){if(!(typeof window>"u"||!window.PublicKeyCredential))return window.PublicKeyCredential}async function no(){const e=to();if(!e)return{webauthn:!1,conditional:!1,platform:!1};let t=!1;try{typeof e.isConditionalMediationAvailable=="function"&&(t=await e.isConditionalMediationAvailable())}catch{t=!1}let r=!1;try{typeof e.isUserVerifyingPlatformAuthenticatorAvailable=="function"&&(r=await e.isUserVerifyingPlatformAuthenticatorAvailable())}catch{r=!1}return{webauthn:!0,conditional:t,platform:r}}class ro{constructor(){go(this,"current",null)}begin(){return this.abortCurrent(),this.current=new AbortController,this.current.signal}abort(){this.abortCurrent()}abortCurrent(){this.current&&!this.current.signal.aborted&&this.current.abort(new DOMException("Superseded by a new ceremony","AbortError"))}}function fb(e){return ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}function yn(e){const t=fb(e);let r="";for(let a=0;a<t.length;a++)r+=String.fromCharCode(t[a]);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function Ar(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),r=(4-t.length%4)%4;if(r===3)throw new Error("Invalid base64url string");const a=t+"=".repeat(r),n=atob(a),o=new Uint8Array(n.length);for(let i=0;i<n.length;i++)o[i]=n.charCodeAt(i);return o.buffer}function Jl(e){if(Array.isArray(e))return e.map(t=>({...t,id:typeof t.id=="string"?Ar(t.id):t.id}))}function pb(e){const t={...e};typeof e.challenge=="string"&&(t.challenge=Ar(e.challenge));const r=Jl(e.allowCredentials);return r&&(t.allowCredentials=r),t}function gb(e){const t={...e};if(typeof e.challenge=="string"&&(t.challenge=Ar(e.challenge)),e.user&&typeof e.user=="object"){const a=e.user;t.user={...a,id:typeof a.id=="string"?Ar(a.id):a.id}}const r=Jl(e.excludeCredentials);return r&&(t.excludeCredentials=r),t}function mb(e){const t=to();return t&&typeof t.parseRequestOptionsFromJSON=="function"?t.parseRequestOptionsFromJSON(e.publicKey):pb(e.publicKey)}function bb(e){const t=to();return t&&typeof t.parseCreationOptionsFromJSON=="function"?t.parseCreationOptionsFromJSON(e.publicKey):gb(e.publicKey)}function hb(e){const t={clientDataJSON:yn(e.clientDataJSON)},r=e;r.authenticatorData&&(t.authenticatorData=yn(r.authenticatorData),t.signature=r.signature?yn(r.signature):void 0,t.userHandle=r.userHandle?yn(r.userHandle):void 0);const a=e;return a.attestationObject&&(t.attestationObject=yn(a.attestationObject),typeof a.getTransports=="function"&&(t.transports=a.getTransports())),t}function vb(e){return{id:e.id,rawId:yn(e.rawId),type:e.type,authenticatorAttachment:e.authenticatorAttachment??void 0,clientExtensionResults:e.getClientExtensionResults(),response:hb(e.response)}}function Ul(e){const t=e;if(typeof t.toJSON=="function")try{return t.toJSON()}catch{}return vb(e)}async function Ca(e,t){const a={publicKey:mb(e),signal:t.signal};t.conditional&&(a.mediation="conditional");const n=await navigator.credentials.get(a);if(!n)throw new DOMException("No credential returned","NotAllowedError");return Ul(n)}async function $l(e,t){let r=e.publicKey;if(t.securityKey){const o=r.authenticatorSelection??{};r={...r,hints:["security-key"],authenticatorSelection:{...o,authenticatorAttachment:"cross-platform"}}}const a=bb({publicKey:r}),n=await navigator.credentials.create({publicKey:a,signal:t.signal});if(!n)throw new DOMException("No credential returned","NotAllowedError");return Ul(n)}function di(e){if(e.aborted)throw new DOMException("Registration aborted","AbortError")}async function ao(e,t){const r=await e.startRegistration();di(t.signal);const a=await $l(r.options,{signal:t.signal,securityKey:t.securityKey});return di(t.signal),e.completeRegistration(r.flow_id,a)}function qr(e){switch(e.code){case"invalid_code":return{code:e.code,message:Wl(e.attemptsRemaining)};case"too_many_attempts":return{code:e.code,message:et.tooManyAttempts};case"rate_limited":return{code:e.code,message:Qa(e.retryAfter)};case"flow_expired":case"topOrigin_required":return{code:e.code,message:et.flowExpired};case"invalid_email":return{code:e.code,message:et.invalidEmail};default:return{code:e.code,message:et.generic}}}function yb(e){return e==="flow_expired"||e==="topOrigin_required"||e==="too_many_attempts"}function Cb(e){const t=e==="security"||e==="unsupported"?et.passkeyUnavailable:et.generic;return{code:e,message:t}}function xb(e){if(e instanceof Nt)switch(e.code){case"credential_exists":return{code:e.code,message:et.passkeyExists};case"flow_expired":return{code:e.code,message:et.enrollExpired};case"rate_limited":return{code:e.code,message:Qa(e.retryAfter)};default:return{code:e.code,message:et.generic}}const t=_r(e);return t==="cancelled"||t==="aborted"?null:t==="exists"?{code:t,message:et.passkeyExists}:{code:t,message:et.generic}}async function Ib(e){return e.method!=="otp"||e.loginNext!=="code"||e.surface!=="top-level"||e.offerEnrollment===!1||!await e.platformAuthenticator()?!1:Xl()}const Ql=27e4,ea=6;function Kl(e){const t=w.useRef(e);t.current=e;const[r]=w.useState($a),a=e.surface==="top-level"&&!r,n=a?"top-level":"embedded",o=e.lockedEmail!==void 0||e.expectedUserId!==void 0,[i,l]=w.useState("email"),[s,c]=w.useState(e.lockedEmail??e.initialEmail??""),[d,f]=w.useState(!1),[y,C]=w.useState(null),[b,h]=w.useState(ea),[p,x]=w.useState(0),[E,R]=w.useState(void 0),[A,I]=w.useState(!1),[j,F]=w.useState(!1),[M,ie]=w.useState(!1),[re,ce]=w.useState(""),[z]=w.useState(()=>new ro),le=w.useRef(!1),G=w.useRef("email"),T=w.useRef(s),B=w.useRef(0);B.current=p;const J=w.useRef(0),ne=w.useRef(null),Ie=w.useRef(null),_=w.useRef(null),W=w.useRef(0),Z=w.useRef(null),ae=w.useRef(null),L=w.useRef(!1),m=w.useRef(null),pe=w.useRef(!1),Y=w.useRef(!1),K=w.useRef(!1),me=()=>ae.current??(ae.current=no()),ye=O=>{G.current=O,l(O),O!=="code"&&x(0),O!=="passkey"&&F(!1),O!=="recovery"&&ie(!1)},Te=O=>{C(O),O&&ce("")},X=O=>le.current&&J.current===O,je=O=>{const Q=++J.current;return ne.current=O,f(!0),C(null),Q},Ae=O=>{J.current===O&&(ne.current=null,f(!1))},P=()=>{J.current++,ne.current=null,f(!1)},D=()=>({surface:t.current.promptSurface??"modal"}),$=O=>{var Q,oe;return(oe=(Q=t.current).onEvent)==null?void 0:oe.call(Q,O,D())},he=()=>{Z.current!==null&&(clearTimeout(Z.current),Z.current=null),W.current++},ue=()=>{he(),z.abort()},Ce=async()=>{if(!a||o)return;he();const O=W.current,Q=()=>le.current&&W.current===O&&G.current==="email"&&ne.current===null,{conditional:oe}=await me();if(!Q()||!oe)return;const Fe=z.begin();Z.current=setTimeout(()=>void Ce(),Ql);let nt;try{nt=await t.current.api.passkeyOptions()}catch{return}if(!Q()||Fe.aborted)return;const ft=nt.flow_id;Ca(nt.options,{signal:Fe,conditional:!0}).then(ut=>{Q()&&we(ft,ut)},()=>{})},we=async(O,Q)=>{he();const oe=je("request");let Fe;try{Fe=await t.current.api.verifyPasskey(O,Q)}catch(nt){if(!X(oe))return;const ft=gt(nt).code==="invalid_credential";Re(oe,ft?{code:"invalid_credential",message:et.discoverableNotRecognized}:null);return}X(oe)&&await Ke(oe,Fe,"passkey",null)},Re=(O,Q)=>{Ae(O),Te(Q),G.current==="passkey"&&F(!0),G.current==="email"&&Ce()},ee=(O,Q)=>{const oe=G.current==="email";Ae(O),Ie.current=null,ye("email"),Te(Q),oe&&Ce()},de=(O,Q)=>{const oe=gt(Q);if(oe.code==="recovery_required"){Ae(O),Te(null),ye("recovery"),ce(et.recoveryStarted);return}if(oe.code==="recovery_blocked"){Ae(O),Te(null),ie(!0),ce(et.recoveryBlocked);return}if(yb(oe.code)){ee(O,qr(oe));return}if(oe.code==="resend_too_soon"){Ae(O),x(Math.max(0,Math.ceil(oe.retryAfter??0)));return}oe.code==="invalid_code"&&R(oe.attemptsRemaining),Re(O,qr(oe))},Se=async(O,Q)=>{ne.current="request";try{const oe=await Q();return X(O)?oe:void 0}catch(oe){X(O)&&de(O,oe);return}},q=(O,Q)=>{_.current=O.flow_id,h(O.code_length||ea),R(void 0),ye("code"),x(Math.max(0,O.resend_after??0)),ce(et.codeSent),Q&&C(Q)},se=async(O,Q,oe)=>{const Fe=await Se(O,()=>t.current.api.sendCode(Q));Fe&&(Ae(O),q(Fe,oe))},De=()=>{P(),ue(),Ie.current=null,ye("mismatch"),Te({code:"account_mismatch",message:et.accountMismatch});const{api:O}=t.current;(async()=>{var Q,oe;try{await O.logout()}catch{}(oe=(Q=t.current).onAccountMismatch)==null||oe.call(Q)})()},ot=(O,Q)=>{pe.current||(pe.current=!0,m.current=null,ye("done"),ce(et.signedIn),t.current.onSignedIn(O,Q))},Ke=async(O,Q,oe,Fe)=>{var be,Oe,ke,Ne;const nt=t.current,ft=nt.expectedUserId;if(ft!==void 0&&Q.user_id!==ft){De();return}let ut;try{ut=await nt.getCurrentUser()}catch{if(!X(O))return;const Ge={code:"unknown",message:et.generic};G.current==="passkey"?ee(O,Ge):Re(O,Ge);return}if(!X(O))return;if(ft!==void 0&&ut.id!==ft){De();return}const v=typeof Q.recovery_until=="string"&&Q.recovery_until!=="",V=v?{method:"recovery",newUser:Q.new_user,recoveryUntil:Q.recovery_until}:{method:oe,newUser:Q.new_user};Y.current||(Y.current=!0,(Oe=(be=t.current).onVerified)==null||Oe.call(be,ut,V)),V.method==="otp"&&a&&Hl(),v&&((Ne=(ke=t.current).onEvent)==null||Ne.call(ke,"sign_in",{...D(),method:"recovery"}));const U=await Ib({method:V.method,loginNext:Fe,surface:n,offerEnrollment:nt.offerEnrollment,platformAuthenticator:async()=>(await me()).platform});X(O)&&(Ae(O),U?(m.current={user:ut,info:V},ye("enroll"),$("passkey_prompt_shown")):ot(ut,V))},lt=async(O,Q,oe,Fe)=>{if(!a){Ae(O);return}ne.current="ceremony";let nt;try{nt=await Ca(Q.options,{signal:oe})}catch(ut){if(!X(O))return;const v=_r(ut);Re(O,v==="cancelled"||v==="aborted"?null:Cb(v));return}if(!X(O))return;ne.current="request";let ft;try{ft=await t.current.api.verifyPasskey(Q.flow_id,nt)}catch(ut){if(!X(O))return;const v=gt(ut);if(v.code==="invalid_credential"&&Fe){const V={code:"invalid_credential",message:et.passkeyNotRecognized};await se(O,Q.flow_id,V)}else v.code==="invalid_credential"?Re(O,{code:"invalid_credential",message:et.discoverableNotRecognized}):Fe?ee(O,qr(v)):de(O,ut);return}X(O)&&await Ke(O,ft,"passkey",Fe?"passkey":null)},mt=(O,Q)=>(F(!1),lt(O,Q,z.begin(),!0)),St=O=>{t.current.lockedEmail===void 0&&(T.current=O,c(O))},Ue=async()=>{if(ne.current||G.current!=="email")return;ue();const O=(t.current.lockedEmail??T.current).trim();if(!O){Te({code:"invalid_email",message:et.invalidEmail}),Ce();return}T.current=O,c(O);const Q=je("request"),oe=await Se(Q,()=>t.current.api.login(O));oe&&(Ie.current=oe,oe.next==="code"?(Ae(Q),q(oe)):a?(h(oe.code_length||ea),ye("passkey"),await mt(Q,oe)):await se(Q,oe.flow_id))},Gt=async()=>{if(!a||o||!L.current||ne.current||G.current!=="email")return;ue();const O=je("ceremony"),Q=z.begin(),oe=await Se(O,()=>t.current.api.passkeyOptions());oe&&await lt(O,oe,Q,!1)},Ft=()=>{const O=Ie.current;!a||G.current!=="passkey"||ne.current||(O==null?void 0:O.next)!=="passkey"||mt(je("ceremony"),O)},an=()=>{o||G.current!=="passkey"||ne.current==="request"||!Ie.current||(P(),z.abort(),C(null),ye("recovery"),ce(et.recoveryStarted))},At=async()=>{var Fe;const O=(Fe=Ie.current)==null?void 0:Fe.flow_id;if(G.current!=="recovery"||ne.current||!O||o)return;const Q=je("request"),oe=await Se(Q,()=>t.current.api.startRecovery(O));oe&&(Ae(Q),$("recovery_started"),q(oe))},Pt=()=>{var O;G.current!=="recovery"||ne.current||M||(C(null),a&&((O=Ie.current)==null?void 0:O.next)==="passkey"?ye("passkey"):(Ie.current=null,ye("email")))},Tt=()=>{G.current!=="passkey"&&G.current!=="code"||(P(),z.abort(),Ie.current=null,C(null),ye("email"))},on=async O=>{var nt;const Q=_.current;if(G.current!=="code"||ne.current||!Q)return;const oe=je("request"),Fe=await Se(oe,()=>t.current.api.verifyCode(Q,O));Fe&&await Ke(oe,Fe,"otp",((nt=Ie.current)==null?void 0:nt.next)??null)},Zt=async()=>{const O=_.current;if(G.current!=="code"||ne.current||B.current>0||!O)return;ce("");const Q=je("request"),oe=await Se(Q,()=>t.current.api.sendCode(O));oe&&(Ae(Q),q(oe))},sn=async()=>{if(!a||G.current!=="enroll"||ne.current)return;const O=je("ceremony"),Q=z.begin();try{await ao(t.current.api,{signal:Q})}catch(oe){X(O)&&Re(O,xb(oe));return}X(O)&&(Ae(O),ye("enrolled"),$("passkey_prompt_accepted"))},Bt=()=>{const O=m.current;O&&ot(O.user,O.info)},xt=()=>{G.current==="enroll"&&(P(),z.abort(),C(null),Zl(),$("passkey_prompt_declined"),Bt())},vt=()=>{G.current==="enrolled"&&Bt()},ln=()=>{G.current==="enroll"?xt():G.current==="enrolled"?vt():(P(),ue())};w.useEffect(()=>(le.current=!0,()=>{le.current=!1,ue()}),[]),w.useEffect(()=>{if(!a||o)return;let O=!1;return me().then(Q=>{L.current=Q.webauthn,O||I(Q.webauthn)}),()=>{O=!0}},[a,o]);const Ot=()=>{var Fe;const{autoContinue:O,lockedEmail:Q,initialEmail:oe}=t.current;return!!(O&&((Fe=Q??oe)!=null&&Fe.trim())&&!K.current)};w.useEffect(()=>{if(!(i!=="email"||ne.current||Ot()))return Ce(),he},[i]),w.useEffect(()=>{Ot()&&(K.current=!0,Ue())},[]);const un=i==="code"&&p>0;return w.useEffect(()=>{if(!un)return;const O=setInterval(()=>x(Q=>Math.max(0,Q-1)),1e3);return()=>clearInterval(O)},[un]),{step:i,email:s,setEmail:St,busy:d,error:(y==null?void 0:y.message)??null,errorCode:(y==null?void 0:y.code)??null,codeLength:b,resendIn:p,attemptsRemaining:E,canUsePasskeyButton:A,passkeyFailed:j,recoveryAvailable:!o,recoveryBlocked:M,liveMessage:re,submitEmail:()=>void Ue(),signInWithPasskey:()=>void Gt(),retryPasskey:Ft,cantUsePasskey:an,sendRecoveryCode:()=>void At(),back:Pt,changeEmail:Tt,submitCode:O=>void on(O),resendCode:()=>void Zt(),acceptEnrollment:()=>void sn(),declineEnrollment:xt,finish:vt,close:ln}}const Qt={prompt:{heading:"Skip the code next time",body:"Set up a passkey and sign in with Face ID, your fingerprint or your screen lock.",accept:"Set up passkey",decline:"Not now",footnote:"You can manage passkeys anytime in Security."},added:{heading:"Passkey added",body:"Next time, sign in with Face ID, your fingerprint or your screen lock. We've emailed you a confirmation.",done:"Done"}},xa=({status:e="prompt",onAccept:t,onDecline:r,onDone:a,busy:n=!1,error:o=null})=>e==="added"?u.jsxs("div",{className:"flex flex-col items-center text-center gap-4",children:[u.jsx("div",{className:"flex items-center justify-center w-12 h-12 rounded-full bg-success-50",children:u.jsx(Ja,{size:24,className:"text-success-600"})}),u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsx("h2",{tabIndex:-1,className:"text-lg font-semibold text-grayWarm-950 focus:outline-none",children:Qt.added.heading}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:Qt.added.body})]}),u.jsx("button",{type:"button",onClick:a,className:"w-full py-3 px-4 bg-gradient-to-r from-brand-500 to-brand-600 text-white font-semibold rounded-xl transition-opacity hover:opacity-90",children:Qt.added.done})]}):u.jsxs("div",{className:"flex flex-col items-center text-center gap-4",children:[u.jsx("div",{className:"flex items-center justify-center w-12 h-12 rounded-full bg-brand-50",children:u.jsx(Pl,{size:24,className:"text-brand-600"})}),u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsx("h2",{tabIndex:-1,className:"text-lg font-semibold text-grayWarm-950 focus:outline-none",children:Qt.prompt.heading}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:Qt.prompt.body})]}),o&&u.jsxs("div",{role:"alert",className:"w-full flex items-start gap-2 rounded-lg bg-warning-50 border border-warning-200 p-3 text-left",children:[u.jsx(Rn,{size:20,className:"text-warning-700 flex-shrink-0 mt-0.5"}),u.jsx("p",{className:"text-sm text-warning-700",children:o})]}),u.jsxs("div",{className:"w-full flex flex-col gap-2",children:[u.jsx("button",{type:"button",onClick:t,disabled:n,"aria-busy":n,className:"w-full py-3 px-4 bg-gradient-to-r from-brand-500 to-brand-600 text-white font-semibold rounded-xl transition-opacity hover:opacity-90 disabled:opacity-70 disabled:cursor-not-allowed",children:Qt.prompt.accept}),u.jsx("button",{type:"button",onClick:r,className:"w-full py-3 px-4 bg-white border border-grayWarm-300 text-grayWarm-700 font-semibold rounded-xl transition-colors hover:bg-grayWarm-50",children:Qt.prompt.decline})]}),u.jsx("p",{className:"text-xs text-grayWarm-500",children:Qt.prompt.footnote})]}),oo="focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500 focus-visible:ring-offset-2",Ln=S.forwardRef(({className:e,type:t="button",...r},a)=>u.jsx("button",{ref:a,type:t,className:Me("w-full h-11 px-4 inline-flex items-center justify-center gap-2 rounded-xl bg-gradient-to-r from-brand-500 to-brand-600 text-white font-semibold shadow-sm transition-opacity hover:opacity-95 disabled:opacity-60 disabled:cursor-not-allowed",oo,e),...r})),mn=S.forwardRef(({className:e,type:t="button",...r},a)=>u.jsx("button",{ref:a,type:t,className:Me("w-full h-11 px-4 inline-flex items-center justify-center gap-2 rounded-xl bg-white border border-grayWarm-300 text-grayWarm-700 font-semibold shadow-sm transition-colors hover:bg-grayWarm-50 disabled:opacity-60 disabled:cursor-not-allowed",oo,e),...r})),wr=S.forwardRef(({className:e,type:t="button",...r},a)=>u.jsx("button",{ref:a,type:t,className:Me("text-sm font-semibold text-brand-600 hover:text-brand-700 rounded disabled:opacity-60 disabled:cursor-not-allowed",oo,e),...r}));Ln.displayName="PrimaryButton";mn.displayName="SecondaryButton";wr.displayName="LinkButton";const Ze={email:{title:"Sign in to Movmo",description:"Enter your email. New here? We'll create your account.",label:"Email",continue:"Continue",divider:"or",passkey:"Sign in with passkey"},passkey:{title:"Sign in with your passkey",description:"Use Face ID, your fingerprint or your screen lock.",change:"Change",changeLabel:"Change email",continue:"Continue",failed:"Your passkey didn't finish. Try again, or choose 'I can't use my passkey'.",tryAgain:"Try again",cantUse:"I can't use my passkey",reauthDescription:"Use your passkey to continue. Lost it? Recover your account from the sign-in page."},recovery:{title:"Sign in without your passkey",description:e=>`We'll email a code to ${e}. Signing in this way starts account recovery: everyone on your account is notified, and for 24 hours this session can't add passkeys, change contact details, add payment methods or connect airlines.`,send:"Send me a code",back:"Back",blockedTitle:"We can't recover this account right now",blockedDescription:"Too many recovery attempts, or recovery was recently cancelled from this account. Try again later or sign in with a passkey on another device.",close:"Close"},code:{title:"Check your email",description:e=>`Enter the code we sent to ${e}.`},cancel:"Cancel"},io=({flow:e,lockedEmail:t,title:r,description:a,onCancel:n,onClose:o,icon:i})=>{const l=n?()=>{e.close(),n()}:void 0;let s=null;switch(e.step){case"email":s=u.jsx(Sb,{flow:e,locked:t!==void 0,title:r,description:a,onCancel:l,icon:i});break;case"passkey":s=u.jsx(Ab,{flow:e,locked:t!==void 0,title:r,description:a,onCancel:l,icon:i});break;case"recovery":s=u.jsx(Eb,{flow:e,onCancel:l??o});break;case"code":s=u.jsx(Nb,{flow:e,title:r,onCancel:l});break;case"enroll":s=u.jsx(fi,{children:u.jsx(xa,{status:"prompt",onAccept:e.acceptEnrollment,onDecline:e.declineEnrollment,busy:e.busy,error:e.error})});break;case"enrolled":s=u.jsx(fi,{children:u.jsx(xa,{status:"added",onAccept:e.acceptEnrollment,onDecline:e.declineEnrollment,onDone:e.finish})});break;case"mismatch":s=u.jsx(Rb,{flow:e,title:r,onCancel:l,icon:i});break}return u.jsxs("div",{className:"text-left",children:[u.jsx("div",{"aria-live":"polite",className:"sr-only",children:e.error??e.liveMessage}),u.jsx("div",{"data-step":e.step,className:"motion-safe:animate-in motion-safe:fade-in-0 motion-safe:slide-in-from-bottom-1 motion-safe:duration-200",children:s},e.step)]})},fi=({children:e})=>{const t=w.useRef(null);return w.useEffect(()=>{var r;Rt((r=t.current)==null?void 0:r.querySelector("h2"))},[]),u.jsx("div",{ref:t,children:e})},An=({icon:e,title:t,description:r,headingRef:a})=>u.jsxs("div",{className:"flex flex-col gap-5 mb-5",children:[u.jsx("div",{className:"flex items-center justify-center w-12 h-12 rounded-[10px] border border-grayWarm-200 shadow-sm text-grayWarm-700",children:u.jsx(e,{size:24})}),u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsx("h2",{ref:a,tabIndex:a?-1:void 0,className:"text-lg font-semibold text-grayWarm-950 focus:outline-none",children:t}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:r})]})]}),so=({children:e})=>u.jsxs("div",{className:"flex items-start gap-3 rounded-xl border border-warning-200 bg-warning-50 p-4",children:[u.jsx(Rn,{size:20,className:"flex-shrink-0 text-warning-700"}),u.jsx("p",{className:"text-sm text-warning-700",children:e})]}),ql=({primary:e,onCancel:t})=>t?u.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[u.jsx(mn,{onClick:t,children:Ze.cancel}),e]}):u.jsx(u.Fragment,{children:e}),Sb=({flow:e,locked:t,title:r,description:a,onCancel:n,icon:o})=>{const i=w.useRef(null),l=w.useRef(null),s=w.useId(),c=w.useId();return w.useEffect(()=>{Rt(t?l.current:i.current)},[t]),u.jsxs(u.Fragment,{children:[u.jsx(An,{icon:o??Fl,title:r??Ze.email.title,description:a??Ze.email.description}),u.jsxs("form",{noValidate:!0,onSubmit:d=>{d.preventDefault(),e.submitEmail()},className:"flex flex-col gap-5",children:[u.jsxs("div",{className:"flex flex-col gap-1.5",children:[u.jsx("label",{htmlFor:s,className:"text-sm font-medium text-grayWarm-700",children:Ze.email.label}),u.jsxs("div",{className:"relative",children:[u.jsx(Fr,{size:20,className:"pointer-events-none absolute left-3.5 top-1/2 -translate-y-1/2 text-grayWarm-500"}),u.jsx(Dt,{ref:i,id:s,type:"email",name:"email",autoComplete:"username webauthn",value:e.email,onChange:d=>e.setEmail(d.target.value),disabled:t,"aria-invalid":e.error?!0:void 0,"aria-describedby":e.error?c:void 0,className:`h-11 pl-10 ${e.error?"border-error-500 focus:border-error-500":""} autofill:bg-white autofill:shadow-[inset_0_0_0px_1000px_white]`})]}),e.error&&u.jsx("p",{id:c,className:"text-sm text-error-500",children:e.error})]}),u.jsx(ql,{onCancel:n,primary:u.jsx(Ln,{ref:l,type:"submit",disabled:e.busy,"aria-busy":e.busy,children:Ze.email.continue})})]}),e.canUsePasskeyButton&&u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"flex items-center gap-2 my-5","aria-hidden":"true",children:[u.jsx("div",{className:"h-px flex-1 bg-grayWarm-200"}),u.jsx("span",{className:"text-sm text-grayWarm-500",children:Ze.email.divider}),u.jsx("div",{className:"h-px flex-1 bg-grayWarm-200"})]}),u.jsxs(mn,{onClick:e.signInWithPasskey,disabled:e.busy,children:[u.jsx(za,{size:20}),Ze.email.passkey]})]})]})},Ab=({flow:e,locked:t,title:r,description:a,onCancel:n,icon:o})=>{const i=w.useRef(null);w.useEffect(()=>{Rt(i.current)},[]);const l=e.error??(e.passkeyFailed?Ze.passkey.failed:null);return u.jsxs(u.Fragment,{children:[u.jsx(An,{icon:o??Gl,title:r??Ze.passkey.title,description:e.recoveryAvailable?a??Ze.passkey.description:Ze.passkey.reauthDescription,headingRef:i}),u.jsxs("div",{className:"flex flex-col gap-5",children:[l?u.jsx(so,{children:l}):u.jsxs("div",{className:"flex items-center justify-between gap-3 h-11 rounded-lg border border-grayWarm-300 bg-grayWarm-50 px-3.5 shadow-sm",children:[u.jsx("span",{className:"truncate text-base text-grayWarm-700",children:e.email}),!t&&u.jsx(wr,{onClick:e.changeEmail,"aria-label":Ze.passkey.changeLabel,children:Ze.passkey.change})]}),u.jsx(ql,{onCancel:n,primary:u.jsx(Ln,{onClick:e.retryPasskey,disabled:e.busy,"aria-busy":e.busy,children:e.passkeyFailed?Ze.passkey.tryAgain:Ze.passkey.continue})}),e.recoveryAvailable&&u.jsx(wr,{onClick:e.cantUsePasskey,className:"self-center",children:Ze.passkey.cantUse})]})]})},wb=e=>{const t=e.lastIndexOf("@");return t<1?e:`${e.slice(0,1)}•••${e.slice(t)}`},Eb=({flow:e,onCancel:t})=>{const r=w.useRef(null);return w.useEffect(()=>{Rt(r.current)},[e.recoveryBlocked]),e.recoveryBlocked?u.jsxs(u.Fragment,{children:[u.jsx(An,{icon:Rn,title:Ze.recovery.blockedTitle,description:Ze.recovery.blockedDescription,headingRef:r}),u.jsx(Ln,{onClick:t??e.close,children:Ze.recovery.close})]}):u.jsxs(u.Fragment,{children:[u.jsx(An,{icon:Fr,title:Ze.recovery.title,description:Ze.recovery.description(wb(e.email)),headingRef:r}),u.jsxs("div",{className:"flex flex-col gap-5",children:[e.error&&u.jsx(so,{children:e.error}),u.jsx(Ln,{onClick:e.sendRecoveryCode,disabled:e.busy,"aria-busy":e.busy,children:Ze.recovery.send}),u.jsx(wr,{onClick:e.back,disabled:e.busy,className:"self-center",children:Ze.recovery.back})]})]})},Rb=({flow:e,title:t,onCancel:r,icon:a})=>u.jsxs(u.Fragment,{children:[u.jsx(An,{icon:a??Rn,title:t??Ze.email.title,description:e.error??""}),r&&u.jsx(mn,{onClick:r,children:Ze.cancel})]}),Nb=({flow:e,title:t,onCancel:r})=>u.jsxs(u.Fragment,{children:[u.jsx(An,{icon:Fr,title:t??Ze.code.title,description:Ze.code.description(e.email)}),u.jsxs("div",{className:"flex flex-col gap-5",children:[u.jsxs("div",{className:"flex flex-col gap-1.5",children:[u.jsx(Ua,{length:e.codeLength,onComplete:e.submitCode,autoFocus:!0}),e.error&&e.errorCode!=="invalid_credential"&&u.jsx("p",{className:"text-error-500 text-center text-sm",children:e.error})]}),e.error&&e.errorCode==="invalid_credential"&&u.jsx(so,{children:e.error}),u.jsx(_l,{secondsLeft:e.resendIn,onResend:e.resendCode,disabled:e.busy}),r&&u.jsx(mn,{onClick:r,children:Ze.cancel})]})]});function lo(e){const t=Kl(e),r=w.useRef(t);return r.current=t,w.useEffect(()=>()=>{const{step:a,close:n}=r.current;(a==="enroll"||a==="enrolled")&&n()},[]),t}const Gb=({title:e,description:t,onCancel:r,...a})=>{const n=lo(a);return u.jsx(io,{flow:n,lockedEmail:a.lockedEmail,title:e,description:t,onCancel:r})},Pb=({isOpen:e,...t})=>e?u.jsx(Tb,{...t}):null,Tb=({onClose:e,hideCloseButton:t=!1,onLoginSuccess:r,...a})=>{const n=lo({...a,promptSurface:a.promptSurface??"modal",onSignedIn:r}),o=()=>{n.close(),e()};return u.jsx(gn,{isOpen:n.step!=="done",onClose:o,title:Ze.email.title,header:"none",maxWidthPx:400,hideCloseButton:t,children:u.jsx(io,{flow:n,lockedEmail:a.lockedEmail,onClose:o})})},dn={title:"Confirm it's you",framed:"Manage passkeys on the Movmo Security page.",cancel:"Cancel",description:{add:"For your security, sign in again to add a passkey.",remove:"For your security, sign in again to remove this passkey."}},eu=({isOpen:e,...t})=>e?u.jsx(Ob,{...t}):null,Ob=e=>{const[t]=w.useState($a);return t?u.jsx(jb,{onCancel:e.onCancel}):u.jsx(Mb,{...e})},jb=({onCancel:e})=>u.jsx(gn,{isOpen:!0,onClose:e,title:dn.title,header:"none",maxWidthPx:400,children:u.jsxs("div",{className:"flex flex-col gap-5 text-left",children:[u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsx("h2",{className:"text-lg font-semibold text-grayWarm-950",children:dn.title}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:dn.framed})]}),u.jsx(mn,{onClick:e,children:dn.cancel})]})}),Mb=({action:e,account:t,api:r,getCurrentUser:a,onConfirmed:n,onCancel:o,onMismatch:i})=>{const l=lo({api:r,surface:"top-level",getCurrentUser:a,lockedEmail:t.email,expectedUserId:t.id,autoContinue:!0,offerEnrollment:!1,onSignedIn:()=>n(),onAccountMismatch:i}),s=()=>{l.close(),o()};return u.jsx(gn,{isOpen:l.step!=="done",onClose:s,title:dn.title,header:"none",maxWidthPx:400,children:u.jsx(io,{flow:l,lockedEmail:t.email,title:dn.title,description:dn.description[e],onCancel:o,icon:jl})})},Xe={loading:"Loading passkeys",framed:"Manage passkeys on the Movmo Security page.",empty:"Passkeys let you sign in with Face ID, your fingerprint, your screen lock or a security key. No code to wait for.",addPasskey:"Passkey",addPasskeyLabel:"Add passkey",addSecurityKey:"Security key",addSecurityKeyLabel:"Add security key",suggestToggle:"Suggest a passkey after I sign in with a code",limit:"You've reached the limit of 10 passkeys. Remove one to add another.",unsupported:"This browser doesn't support passkeys. You can still remove them here.",added:"Passkey added. We've emailed you a confirmation.",exists:"This passkey is already on your account.",expired:"That took too long. Try again.",generic:"Something went wrong. Try again.",confirmedAdd:"You're confirmed. Select + Passkey again to finish.",confirmedAddKey:"You're confirmed. Select + Security key again to finish.",recoveryInProgress:e=>e?`Account recovery is in progress. You can change passkeys after ${e}.`:"Account recovery is in progress. You can change passkeys once it ends.",retry:"Retry",sessionRequired:"Sign in again to manage passkeys",signIn:"Sign in",kind:{synced:"Synced",device:"This device",security_key:"Security key"},securityKeyTitle:"Security key",addedOn:e=>`Added ${e}`,lastUsed:e=>`Last used ${e}`,neverUsed:"Never used",removeLabel:e=>`Remove ${e}`,remove:{title:e=>`Remove ${e}?`,body:"You won't be able to sign in with it anymore. You can still sign in with a code.",cancel:"Cancel",confirm:"Remove"}},kb=10,Fb=6e3,Bb=new Set(["confirmedAdd","confirmedAddKey"]),Vb={synced:za,device:Ol,security_key:Tl},_b=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}),Db=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"}),Wb=e=>{const t=new Date(e);return Number.isNaN(t.getTime())?void 0:Db.format(t)},pi=e=>{const t=new Date(e);return Number.isNaN(t.getTime())?e:_b.format(t)};function tu(e){const t=e.kind??(e.synced?"synced":"device"),r=e.provider==="Passkey"&&t==="security_key"?Xe.securityKeyTitle:e.provider,a=Xe.kind[t]===r?null:Xe.kind[t],n=`${Xe.addedOn(pi(e.created_at))} · ${e.last_used_at?Xe.lastUsed(pi(e.last_used_at)):Xe.neverUsed}`;return{kind:t,title:r,badge:a,meta:n,Icon:Vb[t]}}const Lb=e=>{const t=w.useRef(e);t.current=e;const[r]=w.useState($a),[a,n]=w.useState("loading"),[o,i]=w.useState([]),[l,s]=w.useState(!1),[c,d]=w.useState(!1),[f,y]=w.useState(!1),[C,b]=w.useState(null),[h,p]=w.useState(0),[x,E]=w.useState(!1),[R,A]=w.useState(null),[I,j]=w.useState(null),[F,M]=w.useState(()=>!Yl()),[ie,re]=w.useState(null),[ce]=w.useState(()=>new ro),z=w.useRef(!1),le=w.useRef(!1),G=w.useRef(0),T=w.useId(),B=w.useCallback(async()=>{const Y=++G.current;n("loading");try{const[K,me]=await Promise.all([t.current.api.listPasskeys(),no()]);if(!le.current||Y!==G.current)return;i(K),s(me.webauthn),n("ready")}catch(K){if(!le.current||Y!==G.current)return;const me=K instanceof Nt&&K.code==="movmo_session_required";n(me?"sessionRequired":"error")}},[]);w.useEffect(()=>(le.current=!0,r||B(),()=>{le.current=!1,ce.abort()}),[r,ce,B]),w.useEffect(()=>{if(h===0)return;E(!0);const Y=setTimeout(()=>E(!1),Fb);return()=>clearTimeout(Y)},[h]);const J=Y=>{i(K=>K.filter(me=>me.id!==Y)),d(!1)},ne=(Y,K,me)=>{if(K instanceof Nt){switch(K.code){case"recovery_cooldown":re(K.until??"");return;case"reauth_required":me?b("generic"):j(Y);return;case"movmo_session_required":b("sessionRequired"),t.current.onSessionRequired();return;case"credential_exists":b("exists");return;case"passkey_limit":d(!0);return;case"flow_expired":b("expired");return;case"not_found":if(Y.type==="remove"){J(Y.passkey.id);return}break}b("generic");return}switch(_r(K)){case"cancelled":case"aborted":me&&Y.type==="add"&&b(Y.securityKey?"confirmedAddKey":"confirmedAdd");return;case"exists":b("exists");return;default:b("generic")}},Ie=async(Y,K=!1)=>{if(!z.current){z.current=!0,y(!0),b(null);try{if(Y.type==="add"){const me=await ao(t.current.api,{securityKey:Y.securityKey,signal:ce.begin()});if(!le.current)return;i(ye=>[me,...ye.filter(Te=>Te.id!==me.id)]),p(ye=>ye+1)}else{if(await t.current.api.deletePasskey(Y.passkey.id),!le.current)return;J(Y.passkey.id)}}catch(me){le.current&&ne(Y,me,K)}finally{z.current=!1,le.current&&(y(!1),A(null))}}},_=()=>{const Y=I;j(null),Y&&Ie(Y,!0)},W=()=>{j(null),t.current.onAccountMismatch()};if(r)return u.jsx(Kt,{tone:"neutral",children:Xe.framed});if(a==="loading")return u.jsx(Hb,{});if(a==="error")return u.jsxs(Kt,{tone:"neutral",role:"alert",children:[u.jsx("span",{children:Xe.generic}),u.jsx(nu,{onClick:()=>void B(),children:Xe.retry})]});if(a==="sessionRequired")return u.jsx(mi,{onSignIn:()=>t.current.onSessionRequired()});const Z=ie??e.recoveryUntil??null,ae=Z?new Date(Z).getTime():Number.NaN,L=Z!==null&&(Number.isNaN(ae)||ae>Date.now()),m=c||o.length>=kb,pe=o.length===0;return u.jsxs("div",{className:"flex flex-col gap-4",children:[pe?u.jsx("p",{className:"text-sm text-grayWarm-600",children:Xe.empty}):u.jsx("ul",{className:"flex flex-col divide-y divide-grayWarm-200 -my-3",children:o.map(Y=>u.jsx(Xb,{passkey:Y,disabled:f||L,onRemove:()=>A(Y)},Y.id))}),L&&u.jsx(Kt,{tone:"neutral",role:"status",children:Xe.recoveryInProgress(Z?Wb(Z):void 0)}),u.jsx("div",{role:"status","aria-live":"polite",children:x&&u.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium text-grayWarm-700",children:[u.jsx(Ja,{size:20,className:"flex-shrink-0 text-success-600"}),Xe.added]})}),l?m&&u.jsx(Kt,{tone:"neutral",children:Xe.limit}):u.jsx(Kt,{tone:"neutral",children:Xe.unsupported}),C==="sessionRequired"?u.jsx(mi,{onSignIn:()=>t.current.onSessionRequired()}):C&&Bb.has(C)?u.jsx(Kt,{tone:"neutral",role:"status",children:Xe[C]}):C&&u.jsx(Kt,{tone:"warning",role:"alert",children:Xe[C]}),l&&u.jsxs("div",{className:"flex flex-wrap gap-3",children:[u.jsx(gi,{label:Xe.addPasskeyLabel,disabled:f||m||L,onClick:()=>void Ie({type:"add",securityKey:!1}),children:Xe.addPasskey}),u.jsx(gi,{label:Xe.addSecurityKeyLabel,disabled:f||m||L,onClick:()=>void Ie({type:"add",securityKey:!0}),children:Xe.addSecurityKey})]}),pe&&u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(Xa,{id:T,checked:F,onCheckedChange:Y=>{M(Y),zl(!Y)}}),u.jsx("label",{htmlFor:T,className:"text-sm font-medium text-grayWarm-700",children:Xe.suggestToggle})]}),R&&u.jsx(Zb,{title:tu(R).title,busy:f,onCancel:()=>A(null),onConfirm:()=>void Ie({type:"remove",passkey:R})}),u.jsx(eu,{isOpen:I!==null,action:(I==null?void 0:I.type)??"add",account:e.account,api:e.api,getCurrentUser:e.getCurrentUser,onConfirmed:_,onCancel:()=>j(null),onMismatch:W})]})},Xb=({passkey:e,disabled:t,onRemove:r})=>{const{title:a,badge:n,meta:o,Icon:i}=tu(e);return u.jsxs("li",{className:"flex items-center gap-3 py-3",children:[u.jsx("div",{className:"flex items-center justify-center flex-shrink-0 w-10 h-10 rounded-lg bg-grayWarm-100 text-grayWarm-700",children:u.jsx(i,{size:20})}),u.jsxs("div",{className:"flex-1 min-w-0",children:[u.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[u.jsx("span",{className:"text-base font-semibold text-grayWarm-950",children:a}),n&&u.jsx(_a,{variant:n===Xe.kind.synced?"info":"default",children:n})]}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:o})]}),u.jsx("button",{type:"button","aria-label":Xe.removeLabel(a),disabled:t,onClick:r,className:"flex items-center justify-center flex-shrink-0 w-9 h-9 rounded-lg bg-grayWarm-100 text-grayWarm-600 transition-colors hover:bg-grayWarm-200 hover:text-grayWarm-800 disabled:opacity-60 disabled:cursor-not-allowed focus:outline-none focus-visible:ring-2 focus-visible:ring-grayWarm-950",children:u.jsx(Ya,{size:18})})]})},gi=({label:e,disabled:t,onClick:r,children:a})=>u.jsxs("button",{type:"button","aria-label":e,disabled:t,onClick:r,className:"inline-flex items-center gap-2 px-3.5 py-2.5 rounded-lg bg-grayWarm-100 text-sm font-semibold text-grayWarm-950 transition-colors hover:bg-grayWarm-200 disabled:bg-transparent disabled:text-grayWarm-400 disabled:cursor-not-allowed focus:outline-none focus-visible:ring-2 focus-visible:ring-grayWarm-950",children:[u.jsx(Ml,{size:20}),a]}),Kt=({tone:e,role:t,children:r})=>u.jsxs("div",{role:t,className:Me("flex items-start gap-3 rounded-xl border p-4 text-sm",e==="warning"?"border-warning-200 bg-warning-50 text-warning-700":"border-grayWarm-200 bg-grayWarm-50 text-grayWarm-700"),children:[u.jsx(Rn,{size:20,className:Me("flex-shrink-0",e==="warning"?"text-warning-700":"text-grayWarm-500")}),u.jsx("div",{className:"flex flex-1 flex-wrap items-center justify-between gap-3",children:r})]}),nu=({onClick:e,children:t})=>u.jsx("button",{type:"button",onClick:e,className:"px-3 py-2 rounded-lg bg-grayWarm-100 text-sm font-semibold text-grayWarm-950 transition-colors hover:bg-grayWarm-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-grayWarm-950",children:t}),mi=({onSignIn:e})=>u.jsxs(Kt,{tone:"neutral",children:[u.jsx("span",{children:Xe.sessionRequired}),u.jsx(nu,{onClick:e,children:Xe.signIn})]}),Hb=()=>u.jsxs("div",{"aria-busy":"true",className:"flex flex-col gap-3",children:[u.jsx("span",{className:"sr-only",children:Xe.loading}),[0,1].map(e=>u.jsxs("div",{"aria-hidden":"true",className:"flex items-center gap-3 py-1",children:[u.jsx("div",{className:"w-10 h-10 rounded-lg bg-grayWarm-100 motion-safe:animate-pulse"}),u.jsxs("div",{className:"flex-1 flex flex-col gap-2",children:[u.jsx("div",{className:"h-4 w-40 rounded bg-grayWarm-100 motion-safe:animate-pulse"}),u.jsx("div",{className:"h-3 w-56 rounded bg-grayWarm-100 motion-safe:animate-pulse"})]})]},e))]}),Zb=({title:e,busy:t,onCancel:r,onConfirm:a})=>{const n=Xe.remove.title(e);return u.jsx(gn,{isOpen:!0,onClose:r,title:n,header:"none",maxWidthPx:400,children:u.jsxs("div",{className:"flex flex-col gap-5 text-left",children:[u.jsx("div",{className:"flex items-center justify-center w-12 h-12 rounded-full bg-error-100 text-error-600",children:u.jsx(Ya,{size:24})}),u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsx("h2",{className:"text-lg font-semibold text-grayWarm-950",children:n}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:Xe.remove.body})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[u.jsx(mn,{onClick:r,children:Xe.remove.cancel}),u.jsx("button",{type:"button",disabled:t,"aria-busy":t||void 0,onClick:a,className:"w-full h-11 px-4 inline-flex items-center justify-center rounded-xl bg-error-600 text-white font-semibold shadow-sm transition-colors hover:bg-error-700 disabled:opacity-60 disabled:cursor-not-allowed focus:outline-none focus-visible:ring-2 focus-visible:ring-error-500 focus-visible:ring-offset-2",children:Xe.remove.confirm})]})]})})},zb={us:{dialCode:"1",lengths:[10]},ca:{dialCode:"1",lengths:[10]},gb:{dialCode:"44",lengths:[10]},au:{dialCode:"61",lengths:[9]},de:{dialCode:"49",lengths:[10,11]},fr:{dialCode:"33",lengths:[9]},it:{dialCode:"39",lengths:[9,10]},es:{dialCode:"34",lengths:[9]},jp:{dialCode:"81",lengths:[10,11]},kr:{dialCode:"82",lengths:[10,11]},in:{dialCode:"91",lengths:[10]},br:{dialCode:"55",lengths:[10,11]},mx:{dialCode:"52",lengths:[10]},cn:{dialCode:"86",lengths:[11]}};function Yb(e,t){if(!e||!e.startsWith("+"))return!1;const r=e.slice(1);if(!/^\d+$/.test(r))return!1;if(t){const a=zb[t.toLowerCase()];if(a){if(!r.startsWith(a.dialCode))return!1;const n=r.slice(a.dialCode.length);return a.lengths.includes(n.length)}}return r.length>=7&&r.length<=15}const Jb=e=>/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$/.test(e),Ub=new RegExp("^[\\p{L} '-]{2,100}$","u");function $b(e){return Ub.test(e)?{isValid:!0}:{isValid:!1,message:"must contain only letters, spaces, hyphens, and apostrophes (2-100 characters)"}}exports.AUTOFILL_REFRESH_MS=Ql;exports.AlertCircleIcon=Rn;exports.AuthError=Nt;exports.Avatar=Ds;exports.AvatarFallback=Ls;exports.AvatarImage=Ws;exports.Badge=_a;exports.Button=Ii;exports.COUNTRY_OPTIONS=va;exports.CURRENCY_OPTIONS=Vr;exports.Card=Aa;exports.CardContent=Ea;exports.CardDescription=Pi;exports.CardFooter=Ti;exports.CardHeader=wa;exports.CardTitle=Gi;exports.CeremonyGate=ro;exports.CheckCircleIcon=Ja;exports.Checkbox=Ps;exports.Chip=gl;exports.CloudIcon=jm;exports.CurrencyModal=Zm;exports.DEFAULT_LOCALE=Bl;exports.DateDropdowns=ha;exports.FaceIdIcon=Gl;exports.FingerprintIcon=Pl;exports.IconButton=Ts;exports.Input=Dt;exports.KeyIcon=za;exports.LOCALE_OPTIONS=Br;exports.LOCALE_STORAGE_KEY=Vm;exports.LaptopIcon=Ol;exports.LocaleModal=Lm;exports.LogInIcon=Fl;exports.MailIcon=Fr;exports.Modal=gn;exports.OTPModal=Qm;exports.OtpCodeInput=Ua;exports.PROMPT_COOKIE=Ka;exports.Pagination=fl;exports.PasscodeIcon=Mm;exports.PassengerForm=Gm;exports.PassengerFormSkeleton=Om;exports.PasskeyEnrollPrompt=xa;exports.PasskeyList=Lb;exports.PhoneInput=Jm;exports.PlusIcon=Ml;exports.ReauthDialog=eu;exports.SearchInput=pl;exports.SelectDropdown=Dn;exports.Separator=Ni;exports.ShieldTickIcon=jl;exports.SignInFlow=Gb;exports.SignInModal=Pb;exports.Textarea=dl;exports.Toggle=Xa;exports.ToggleGroup=ul;exports.ToggleGroupItem=cl;exports.TrashIcon=Ya;exports.UsbKeyIcon=Tl;exports.XCloseIcon=kl;exports.classifyWebAuthnError=_r;exports.cookieDomain=Ll;exports.createMovmoAuthApi=rb;exports.createPasskey=$l;exports.detectSupport=no;exports.dismissPrompt=Zl;exports.findCurrencyOption=Hm;exports.findLocaleOption=_m;exports.getCurrencyDisplayText=Vl;exports.getLanguageDisplayName=Dm;exports.getPasskey=Ca;exports.incorrectCode=Wl;exports.neverAsk=Yl;exports.rateLimited=Qa;exports.readPromptState=Yn;exports.recordCodeSignIn=Hl;exports.registerPasskey=ao;exports.safeFocus=Rt;exports.setNeverAsk=zl;exports.shouldOfferPasskey=Xl;exports.signInCopy=et;exports.timeZone=Dl;exports.toAuthError=gt;exports.useMovmoSignIn=Kl;exports.validateEmail=Jb;exports.validateName=$b;exports.validatePhoneNumber=Yb;
114
+ */(function(){var n={}.hasOwnProperty;function o(){for(var i=[],l=0;l<arguments.length;l++){var s=arguments[l];if(s){var c=typeof s;if(c==="string"||c==="number")i.push(s);else if(Array.isArray(s)&&s.length){var d=o.apply(null,s);d&&i.push(d)}else if(c==="object")for(var g in s)n.call(s,g)&&s[g]&&i.push(g)}}return i.join(" ")}e.exports?(o.default=o,e.exports=o):(a=(function(){return o}).apply(t,[]))===void 0||(e.exports=a)})()},function(e,t,r){(function(a){var n=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,l=/^0o[0-7]+$/i,s=parseInt,c=typeof a=="object"&&a&&a.Object===Object&&a,d=typeof self=="object"&&self&&self.Object===Object&&self,g=c||d||Function("return this")(),y=Object.prototype.toString,x=g.Symbol,m=x?x.prototype:void 0,h=m?m.toString:void 0;function p(A){if(typeof A=="string")return A;if(R(A))return h?h.call(A):"";var I=A+"";return I=="0"&&1/A==-1/0?"-0":I}function C(A){var I=typeof A;return!!A&&(I=="object"||I=="function")}function R(A){return typeof A=="symbol"||function(I){return!!I&&typeof I=="object"}(A)&&y.call(A)=="[object Symbol]"}function N(A){return A?(A=function(I){if(typeof I=="number")return I;if(R(I))return NaN;if(C(I)){var M=typeof I.valueOf=="function"?I.valueOf():I;I=C(M)?M+"":M}if(typeof I!="string")return I===0?I:+I;I=I.replace(n,"");var _=i.test(I);return _||l.test(I)?s(I.slice(2),_?2:8):o.test(I)?NaN:+I}(A))===1/0||A===-1/0?17976931348623157e292*(A<0?-1:1):A==A?A:0:A===0?A:0}e.exports=function(A,I,M){var _,B,se,te;return A=(_=A)==null?"":p(_),B=function(fe){var $=N(fe),ce=$%1;return $==$?ce?$-ce:$:0}(M),se=0,te=A.length,B==B&&(te!==void 0&&(B=B<=te?B:te),se!==void 0&&(B=B>=se?B:se)),M=B,I=p(I),A.slice(M,M+I.length)==I}}).call(this,r(3))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch{typeof window=="object"&&(r=window)}e.exports=r},function(e,t,r){(function(a){var n=/^\[object .+?Constructor\]$/,o=typeof a=="object"&&a&&a.Object===Object&&a,i=typeof self=="object"&&self&&self.Object===Object&&self,l=o||i||Function("return this")(),s,c=Array.prototype,d=Function.prototype,g=Object.prototype,y=l["__core-js_shared__"],x=(s=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||""))?"Symbol(src)_1."+s:"",m=d.toString,h=g.hasOwnProperty,p=g.toString,C=RegExp("^"+m.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),R=c.splice,N=fe(l,"Map"),A=fe(Object,"create");function I(T){var j=-1,k=T?T.length:0;for(this.clear();++j<k;){var J=T[j];this.set(J[0],J[1])}}function M(T){var j=-1,k=T?T.length:0;for(this.clear();++j<k;){var J=T[j];this.set(J[0],J[1])}}function _(T){var j=-1,k=T?T.length:0;for(this.clear();++j<k;){var J=T[j];this.set(J[0],J[1])}}function B(T,j){for(var k,J,pe=T.length;pe--;)if((k=T[pe][0])===(J=j)||k!=k&&J!=J)return pe;return-1}function se(T){return!(!ce(T)||(j=T,x&&x in j))&&(function(k){var J=ce(k)?p.call(k):"";return J=="[object Function]"||J=="[object GeneratorFunction]"}(T)||function(k){var J=!1;if(k!=null&&typeof k.toString!="function")try{J=!!(k+"")}catch{}return J}(T)?C:n).test(function(k){if(k!=null){try{return m.call(k)}catch{}try{return k+""}catch{}}return""}(T));var j}function te(T,j){var k,J,pe=T.__data__;return((J=typeof(k=j))=="string"||J=="number"||J=="symbol"||J=="boolean"?k!=="__proto__":k===null)?pe[typeof j=="string"?"string":"hash"]:pe.map}function fe(T,j){var k=function(J,pe){return J==null?void 0:J[pe]}(T,j);return se(k)?k:void 0}function $(T,j){if(typeof T!="function"||j&&typeof j!="function")throw new TypeError("Expected a function");var k=function(){var J=arguments,pe=j?j.apply(this,J):J[0],ue=k.cache;if(ue.has(pe))return ue.get(pe);var D=T.apply(this,J);return k.cache=ue.set(pe,D),D};return k.cache=new($.Cache||_),k}function ce(T){var j=typeof T;return!!T&&(j=="object"||j=="function")}I.prototype.clear=function(){this.__data__=A?A(null):{}},I.prototype.delete=function(T){return this.has(T)&&delete this.__data__[T]},I.prototype.get=function(T){var j=this.__data__;if(A){var k=j[T];return k==="__lodash_hash_undefined__"?void 0:k}return h.call(j,T)?j[T]:void 0},I.prototype.has=function(T){var j=this.__data__;return A?j[T]!==void 0:h.call(j,T)},I.prototype.set=function(T,j){return this.__data__[T]=A&&j===void 0?"__lodash_hash_undefined__":j,this},M.prototype.clear=function(){this.__data__=[]},M.prototype.delete=function(T){var j=this.__data__,k=B(j,T);return!(k<0)&&(k==j.length-1?j.pop():R.call(j,k,1),!0)},M.prototype.get=function(T){var j=this.__data__,k=B(j,T);return k<0?void 0:j[k][1]},M.prototype.has=function(T){return B(this.__data__,T)>-1},M.prototype.set=function(T,j){var k=this.__data__,J=B(k,T);return J<0?k.push([T,j]):k[J][1]=j,this},_.prototype.clear=function(){this.__data__={hash:new I,map:new(N||M),string:new I}},_.prototype.delete=function(T){return te(this,T).delete(T)},_.prototype.get=function(T){return te(this,T).get(T)},_.prototype.has=function(T){return te(this,T).has(T)},_.prototype.set=function(T,j){return te(this,T).set(T,j),this},$.Cache=_,e.exports=$}).call(this,r(3))},function(e,t,r){(function(a){var n=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,l=/^0o[0-7]+$/i,s=parseInt,c=typeof a=="object"&&a&&a.Object===Object&&a,d=typeof self=="object"&&self&&self.Object===Object&&self,g=c||d||Function("return this")(),y=Object.prototype.toString,x=Math.max,m=Math.min,h=function(){return g.Date.now()};function p(R){var N=typeof R;return!!R&&(N=="object"||N=="function")}function C(R){if(typeof R=="number")return R;if(function(I){return typeof I=="symbol"||function(M){return!!M&&typeof M=="object"}(I)&&y.call(I)=="[object Symbol]"}(R))return NaN;if(p(R)){var N=typeof R.valueOf=="function"?R.valueOf():R;R=p(N)?N+"":N}if(typeof R!="string")return R===0?R:+R;R=R.replace(n,"");var A=i.test(R);return A||l.test(R)?s(R.slice(2),A?2:8):o.test(R)?NaN:+R}e.exports=function(R,N,A){var I,M,_,B,se,te,fe=0,$=!1,ce=!1,T=!0;if(typeof R!="function")throw new TypeError("Expected a function");function j(L){var Y=I,ie=M;return I=M=void 0,fe=L,B=R.apply(ie,Y)}function k(L){return fe=L,se=setTimeout(pe,N),$?j(L):B}function J(L){var Y=L-te;return te===void 0||Y>=N||Y<0||ce&&L-fe>=_}function pe(){var L=h();if(J(L))return ue(L);se=setTimeout(pe,function(Y){var ie=N-(Y-te);return ce?m(ie,_-(Y-fe)):ie}(L))}function ue(L){return se=void 0,T&&I?j(L):(I=M=void 0,B)}function D(){var L=h(),Y=J(L);if(I=arguments,M=this,te=L,Y){if(se===void 0)return k(te);if(ce)return se=setTimeout(pe,N),j(te)}return se===void 0&&(se=setTimeout(pe,N)),B}return N=C(N)||0,p(A)&&($=!!A.leading,_=(ce="maxWait"in A)?x(C(A.maxWait)||0,N):_,T="trailing"in A?!!A.trailing:T),D.cancel=function(){se!==void 0&&clearTimeout(se),fe=0,I=te=M=se=void 0},D.flush=function(){return se===void 0?B:ue(h())},D}}).call(this,r(3))},function(e,t,r){(function(a,n){var o="[object Arguments]",i="[object Map]",l="[object Object]",s="[object Set]",c=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d=/^\w*$/,g=/^\./,y=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,x=/\\(\\)?/g,m=/^\[object .+?Constructor\]$/,h=/^(?:0|[1-9]\d*)$/,p={};p["[object Float32Array]"]=p["[object Float64Array]"]=p["[object Int8Array]"]=p["[object Int16Array]"]=p["[object Int32Array]"]=p["[object Uint8Array]"]=p["[object Uint8ClampedArray]"]=p["[object Uint16Array]"]=p["[object Uint32Array]"]=!0,p[o]=p["[object Array]"]=p["[object ArrayBuffer]"]=p["[object Boolean]"]=p["[object DataView]"]=p["[object Date]"]=p["[object Error]"]=p["[object Function]"]=p[i]=p["[object Number]"]=p[l]=p["[object RegExp]"]=p[s]=p["[object String]"]=p["[object WeakMap]"]=!1;var C=typeof a=="object"&&a&&a.Object===Object&&a,R=typeof self=="object"&&self&&self.Object===Object&&self,N=C||R||Function("return this")(),A=t&&!t.nodeType&&t,I=A&&typeof n=="object"&&n&&!n.nodeType&&n,M=I&&I.exports===A&&C.process,_=function(){try{return M&&M.binding("util")}catch{}}(),B=_&&_.isTypedArray;function se(f,w,O,V){var U=-1,ne=f?f.length:0;for(V&&ne&&(O=f[++U]);++U<ne;)O=w(O,f[U],U,f);return O}function te(f,w){for(var O=-1,V=f?f.length:0;++O<V;)if(w(f[O],O,f))return!0;return!1}function fe(f,w,O,V,U){return U(f,function(ne,he,Xe){O=V?(V=!1,ne):w(O,ne,he,Xe)}),O}function $(f){var w=!1;if(f!=null&&typeof f.toString!="function")try{w=!!(f+"")}catch{}return w}function ce(f){var w=-1,O=Array(f.size);return f.forEach(function(V,U){O[++w]=[U,V]}),O}function T(f){var w=-1,O=Array(f.size);return f.forEach(function(V){O[++w]=V}),O}var j,k,J,pe=Array.prototype,ue=Function.prototype,D=Object.prototype,L=N["__core-js_shared__"],Y=(j=/[^.]+$/.exec(L&&L.keys&&L.keys.IE_PROTO||""))?"Symbol(src)_1."+j:"",ie=ue.toString,X=D.hasOwnProperty,b=D.toString,de=RegExp("^"+ie.call(X).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Z=N.Symbol,K=N.Uint8Array,me=D.propertyIsEnumerable,we=pe.splice,Ge=(k=Object.keys,J=Object,function(f){return k(J(f))}),z=xt(N,"DataView"),Fe=xt(N,"Map"),Pe=xt(N,"Promise"),P=xt(N,"Set"),W=xt(N,"WeakMap"),re=xt(Object,"create"),Ce=It(z),ae=It(Fe),ve=It(Pe),Se=It(P),xe=It(W),Q=Z?Z.prototype:void 0,ee=Q?Q.valueOf:void 0,Ae=Q?Q.toString:void 0;function oe(f){var w=-1,O=f?f.length:0;for(this.clear();++w<O;){var V=f[w];this.set(V[0],V[1])}}function le(f){var w=-1,O=f?f.length:0;for(this.clear();++w<O;){var V=f[w];this.set(V[0],V[1])}}function ke(f){var w=-1,O=f?f.length:0;for(this.clear();++w<O;){var V=f[w];this.set(V[0],V[1])}}function Qe(f){var w=-1,O=f?f.length:0;for(this.__data__=new ke;++w<O;)this.add(f[w])}function Ue(f){this.__data__=new le(f)}function st(f,w){var O=v(f)||mn(f)?function(he,Xe){for(var Ye=-1,Be=Array(he);++Ye<he;)Be[Ye]=Xe(Ye);return Be}(f.length,String):[],V=O.length,U=!!V;for(var ne in f)!X.call(f,ne)||U&&(ne=="length"||rn(ne,V))||O.push(ne);return O}function nt(f,w){for(var O=f.length;O--;)if(gn(f[O][0],w))return O;return-1}oe.prototype.clear=function(){this.__data__=re?re(null):{}},oe.prototype.delete=function(f){return this.has(f)&&delete this.__data__[f]},oe.prototype.get=function(f){var w=this.__data__;if(re){var O=w[f];return O==="__lodash_hash_undefined__"?void 0:O}return X.call(w,f)?w[f]:void 0},oe.prototype.has=function(f){var w=this.__data__;return re?w[f]!==void 0:X.call(w,f)},oe.prototype.set=function(f,w){return this.__data__[f]=re&&w===void 0?"__lodash_hash_undefined__":w,this},le.prototype.clear=function(){this.__data__=[]},le.prototype.delete=function(f){var w=this.__data__,O=nt(w,f);return!(O<0)&&(O==w.length-1?w.pop():we.call(w,O,1),!0)},le.prototype.get=function(f){var w=this.__data__,O=nt(w,f);return O<0?void 0:w[O][1]},le.prototype.has=function(f){return nt(this.__data__,f)>-1},le.prototype.set=function(f,w){var O=this.__data__,V=nt(O,f);return V<0?O.push([f,w]):O[V][1]=w,this},ke.prototype.clear=function(){this.__data__={hash:new oe,map:new(Fe||le),string:new oe}},ke.prototype.delete=function(f){return Tt(this,f).delete(f)},ke.prototype.get=function(f){return Tt(this,f).get(f)},ke.prototype.has=function(f){return Tt(this,f).has(f)},ke.prototype.set=function(f,w){return Tt(this,f).set(f,w),this},Qe.prototype.add=Qe.prototype.push=function(f){return this.__data__.set(f,"__lodash_hash_undefined__"),this},Qe.prototype.has=function(f){return this.__data__.has(f)},Ue.prototype.clear=function(){this.__data__=new le},Ue.prototype.delete=function(f){return this.__data__.delete(f)},Ue.prototype.get=function(f){return this.__data__.get(f)},Ue.prototype.has=function(f){return this.__data__.has(f)},Ue.prototype.set=function(f,w){var O=this.__data__;if(O instanceof le){var V=O.__data__;if(!Fe||V.length<199)return V.push([f,w]),this;O=this.__data__=new ke(V)}return O.set(f,w),this};var pt,$e=(pt=function(f,w){return f&&ut(f,w,G)},function(f,w){if(f==null)return f;if(!H(f))return pt(f,w);for(var O=f.length,V=-1,U=Object(f);++V<O&&w(U[V],V,U)!==!1;);return f}),ut=function(f){return function(w,O,V){for(var U=-1,ne=Object(w),he=V(w),Xe=he.length;Xe--;){var Ye=he[++U];if(O(ne[Ye],Ye,ne)===!1)break}return w}}();function gt(f,w){for(var O=0,V=(w=Ot(w,f)?[w]:Pt(w)).length;f!=null&&O<V;)f=f[jt(w[O++])];return O&&O==V?f:void 0}function Wt(f,w){return f!=null&&w in Object(f)}function vt(f,w,O,V,U){return f===w||(f==null||w==null||!Te(f)&&!Me(w)?f!=f&&w!=w:function(ne,he,Xe,Ye,Be,je){var ct=v(ne),et=v(he),rt="[object Array]",at="[object Array]";ct||(rt=(rt=mt(ne))==o?l:rt),et||(at=(at=mt(he))==o?l:at);var St=rt==l&&!$(ne),bn=at==l&&!$(he),Xt=rt==at;if(Xt&&!St)return je||(je=new Ue),ct||Re(ne)?nn(ne,he,Xe,Ye,Be,je):function(Je,He,Wr,on,Jn,bt,Mt){switch(Wr){case"[object DataView]":if(Je.byteLength!=He.byteLength||Je.byteOffset!=He.byteOffset)return!1;Je=Je.buffer,He=He.buffer;case"[object ArrayBuffer]":return!(Je.byteLength!=He.byteLength||!on(new K(Je),new K(He)));case"[object Boolean]":case"[object Date]":case"[object Number]":return gn(+Je,+He);case"[object Error]":return Je.name==He.name&&Je.message==He.message;case"[object RegExp]":case"[object String]":return Je==He+"";case i:var Ht=ce;case s:var Gn=2&bt;if(Ht||(Ht=T),Je.size!=He.size&&!Gn)return!1;var Un=Mt.get(Je);if(Un)return Un==He;bt|=1,Mt.set(Je,He);var hn=nn(Ht(Je),Ht(He),on,Jn,bt,Mt);return Mt.delete(Je),hn;case"[object Symbol]":if(ee)return ee.call(Je)==ee.call(He)}return!1}(ne,he,rt,Xe,Ye,Be,je);if(!(2&Be)){var uo=St&&X.call(ne,"__wrapped__"),co=bn&&X.call(he,"__wrapped__");if(uo||co){var au=uo?ne.value():ne,ou=co?he.value():he;return je||(je=new Ue),Xe(au,ou,Ye,Be,je)}}return Xt?(je||(je=new Ue),function(Je,He,Wr,on,Jn,bt){var Mt=2&Jn,Ht=G(Je),Gn=Ht.length,Un=G(He).length;if(Gn!=Un&&!Mt)return!1;for(var hn=Gn;hn--;){var Zt=Ht[hn];if(!(Mt?Zt in He:X.call(He,Zt)))return!1}var fo=bt.get(Je);if(fo&&bt.get(He))return fo==He;var $n=!0;bt.set(Je,He),bt.set(He,Je);for(var Lr=Mt;++hn<Gn;){Zt=Ht[hn];var Kn=Je[Zt],Qn=He[Zt];if(on)var po=Mt?on(Qn,Kn,Zt,He,Je,bt):on(Kn,Qn,Zt,Je,He,bt);if(!(po===void 0?Kn===Qn||Wr(Kn,Qn,on,Jn,bt):po)){$n=!1;break}Lr||(Lr=Zt=="constructor")}if($n&&!Lr){var qn=Je.constructor,er=He.constructor;qn==er||!("constructor"in Je)||!("constructor"in He)||typeof qn=="function"&&qn instanceof qn&&typeof er=="function"&&er instanceof er||($n=!1)}return bt.delete(Je),bt.delete(He),$n}(ne,he,Xe,Ye,Be,je)):!1}(f,w,vt,O,V,U))}function Ct(f){return!(!Te(f)||function(w){return!!Y&&Y in w}(f))&&(q(f)||$(f)?de:m).test(It(f))}function yt(f){return typeof f=="function"?f:f==null?F:typeof f=="object"?v(f)?function(V,U){return Ot(V)&&dn(U)?fn(jt(V),U):function(ne){var he=function(Xe,Ye,Be){var je=Xe==null?void 0:gt(Xe,Ye);return je===void 0?Be:je}(ne,V);return he===void 0&&he===U?function(Xe,Ye){return Xe!=null&&function(Be,je,ct){je=Ot(je,Be)?[je]:Pt(je);for(var et,rt=-1,at=je.length;++rt<at;){var St=jt(je[rt]);if(!(et=Be!=null&&ct(Be,St)))break;Be=Be[St]}return et||!!(at=Be?Be.length:0)&&be(at)&&rn(St,at)&&(v(Be)||mn(Be))}(Xe,Ye,Wt)}(ne,V):vt(U,he,void 0,3)}}(f[0],f[1]):function(V){var U=function(ne){for(var he=G(ne),Xe=he.length;Xe--;){var Ye=he[Xe],Be=ne[Ye];he[Xe]=[Ye,Be,dn(Be)]}return he}(V);return U.length==1&&U[0][2]?fn(U[0][0],U[0][1]):function(ne){return ne===V||function(he,Xe,Ye,Be){var je=Ye.length,ct=je;if(he==null)return!ct;for(he=Object(he);je--;){var et=Ye[je];if(et[2]?et[1]!==he[et[0]]:!(et[0]in he))return!1}for(;++je<ct;){var rt=(et=Ye[je])[0],at=he[rt],St=et[1];if(et[2]){if(at===void 0&&!(rt in he))return!1}else{var bn=new Ue,Xt;if(!(Xt===void 0?vt(St,at,Be,3,bn):Xt))return!1}}return!0}(ne,V,U)}}(f):Ot(w=f)?(O=jt(w),function(V){return V==null?void 0:V[O]}):function(V){return function(U){return gt(U,V)}}(w);var w,O}function Lt(f){if(O=(w=f)&&w.constructor,V=typeof O=="function"&&O.prototype||D,w!==V)return Ge(f);var w,O,V,U=[];for(var ne in Object(f))X.call(f,ne)&&ne!="constructor"&&U.push(ne);return U}function Pt(f){return v(f)?f:pn(f)}function nn(f,w,O,V,U,ne){var he=2&U,Xe=f.length,Ye=w.length;if(Xe!=Ye&&!(he&&Ye>Xe))return!1;var Be=ne.get(f);if(Be&&ne.get(w))return Be==w;var je=-1,ct=!0,et=1&U?new Qe:void 0;for(ne.set(f,w),ne.set(w,f);++je<Xe;){var rt=f[je],at=w[je];if(V)var St=he?V(at,rt,je,w,f,ne):V(rt,at,je,f,w,ne);if(St!==void 0){if(St)continue;ct=!1;break}if(et){if(!te(w,function(bn,Xt){if(!et.has(Xt)&&(rt===bn||O(rt,bn,V,U,ne)))return et.add(Xt)})){ct=!1;break}}else if(rt!==at&&!O(rt,at,V,U,ne)){ct=!1;break}}return ne.delete(f),ne.delete(w),ct}function Tt(f,w){var O,V,U=f.__data__;return((V=typeof(O=w))=="string"||V=="number"||V=="symbol"||V=="boolean"?O!=="__proto__":O===null)?U[typeof w=="string"?"string":"hash"]:U.map}function xt(f,w){var O=function(V,U){return V==null?void 0:V[U]}(f,w);return Ct(O)?O:void 0}var mt=function(f){return b.call(f)};function rn(f,w){return!!(w=w??9007199254740991)&&(typeof f=="number"||h.test(f))&&f>-1&&f%1==0&&f<w}function Ot(f,w){if(v(f))return!1;var O=typeof f;return!(O!="number"&&O!="symbol"&&O!="boolean"&&f!=null&&!Ee(f))||d.test(f)||!c.test(f)||w!=null&&f in Object(w)}function dn(f){return f==f&&!Te(f)}function fn(f,w){return function(O){return O!=null&&O[f]===w&&(w!==void 0||f in Object(O))}}(z&&mt(new z(new ArrayBuffer(1)))!="[object DataView]"||Fe&&mt(new Fe)!=i||Pe&&mt(Pe.resolve())!="[object Promise]"||P&&mt(new P)!=s||W&&mt(new W)!="[object WeakMap]")&&(mt=function(f){var w=b.call(f),O=w==l?f.constructor:void 0,V=O?It(O):void 0;if(V)switch(V){case Ce:return"[object DataView]";case ae:return i;case ve:return"[object Promise]";case Se:return s;case xe:return"[object WeakMap]"}return w});var pn=an(function(f){var w;f=(w=f)==null?"":function(V){if(typeof V=="string")return V;if(Ee(V))return Ae?Ae.call(V):"";var U=V+"";return U=="0"&&1/V==-1/0?"-0":U}(w);var O=[];return g.test(f)&&O.push(""),f.replace(y,function(V,U,ne,he){O.push(ne?he.replace(x,"$1"):U||V)}),O});function jt(f){if(typeof f=="string"||Ee(f))return f;var w=f+"";return w=="0"&&1/f==-1/0?"-0":w}function It(f){if(f!=null){try{return ie.call(f)}catch{}try{return f+""}catch{}}return""}function an(f,w){if(typeof f!="function"||w&&typeof w!="function")throw new TypeError("Expected a function");var O=function(){var V=arguments,U=w?w.apply(this,V):V[0],ne=O.cache;if(ne.has(U))return ne.get(U);var he=f.apply(this,V);return O.cache=ne.set(U,he),he};return O.cache=new(an.Cache||ke),O}function gn(f,w){return f===w||f!=f&&w!=w}function mn(f){return function(w){return Me(w)&&H(w)}(f)&&X.call(f,"callee")&&(!me.call(f,"callee")||b.call(f)==o)}an.Cache=ke;var v=Array.isArray;function H(f){return f!=null&&be(f.length)&&!q(f)}function q(f){var w=Te(f)?b.call(f):"";return w=="[object Function]"||w=="[object GeneratorFunction]"}function be(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=9007199254740991}function Te(f){var w=typeof f;return!!f&&(w=="object"||w=="function")}function Me(f){return!!f&&typeof f=="object"}function Ee(f){return typeof f=="symbol"||Me(f)&&b.call(f)=="[object Symbol]"}var Re=B?function(f){return function(w){return f(w)}}(B):function(f){return Me(f)&&be(f.length)&&!!p[b.call(f)]};function G(f){return H(f)?st(f):Lt(f)}function F(f){return f}n.exports=function(f,w,O){var V=v(f)?se:fe,U=arguments.length<3;return V(f,yt(w),O,U,$e)}}).call(this,r(3),r(7)(e))},function(e,t){e.exports=function(r){return r.webpackPolyfill||(r.deprecate=function(){},r.paths=[],r.children||(r.children=[]),Object.defineProperty(r,"loaded",{enumerable:!0,get:function(){return r.l}}),Object.defineProperty(r,"id",{enumerable:!0,get:function(){return r.i}}),r.webpackPolyfill=1),r}},function(e,t){String.prototype.padEnd||(String.prototype.padEnd=function(r,a){return r>>=0,a=String(a!==void 0?a:" "),this.length>r?String(this):((r-=this.length)>a.length&&(a+=a.repeat(r/a.length)),String(this)+a.slice(0,r))})},function(e,t,r){function a(D,L,Y){return L in D?Object.defineProperty(D,L,{value:Y,enumerable:!0,configurable:!0,writable:!0}):D[L]=Y,D}function n(D){if(Symbol.iterator in Object(D)||Object.prototype.toString.call(D)==="[object Arguments]")return Array.from(D)}function o(D){return function(L){if(Array.isArray(L)){for(var Y=0,ie=new Array(L.length);Y<L.length;Y++)ie[Y]=L[Y];return ie}}(D)||n(D)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function i(D){if(Array.isArray(D))return D}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function s(D,L){if(!(D instanceof L))throw new TypeError("Cannot call a class as a function")}function c(D,L){for(var Y=0;Y<L.length;Y++){var ie=L[Y];ie.enumerable=ie.enumerable||!1,ie.configurable=!0,"value"in ie&&(ie.writable=!0),Object.defineProperty(D,ie.key,ie)}}function d(D){return(d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L})(D)}function g(D){return(g=typeof Symbol=="function"&&d(Symbol.iterator)==="symbol"?function(L){return d(L)}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":d(L)})(D)}function y(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function x(D){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(L){return L.__proto__||Object.getPrototypeOf(L)})(D)}function m(D,L){return(m=Object.setPrototypeOf||function(Y,ie){return Y.__proto__=ie,Y})(D,L)}r.r(t);var h=r(0),p=r.n(h),C=r(5),R=r.n(C),N=r(4),A=r.n(N),I=r(6),M=r.n(I),_=r(2),B=r.n(_),se=r(1),te=r.n(se);r(8);function fe(D,L){return i(D)||function(Y,ie){var X=[],b=!0,de=!1,Z=void 0;try{for(var K,me=Y[Symbol.iterator]();!(b=(K=me.next()).done)&&(X.push(K.value),!ie||X.length!==ie);b=!0);}catch(we){de=!0,Z=we}finally{try{b||me.return==null||me.return()}finally{if(de)throw Z}}return X}(D,L)||l()}var $=[["Afghanistan",["asia"],"af","93"],["Albania",["europe"],"al","355"],["Algeria",["africa","north-africa"],"dz","213"],["Andorra",["europe"],"ad","376"],["Angola",["africa"],"ao","244"],["Antigua and Barbuda",["america","carribean"],"ag","1268"],["Argentina",["america","south-america"],"ar","54","(..) ........",0,["11","221","223","261","264","2652","280","2905","291","2920","2966","299","341","342","343","351","376","379","381","3833","385","387","388"]],["Armenia",["asia","ex-ussr"],"am","374",".. ......"],["Aruba",["america","carribean"],"aw","297"],["Australia",["oceania"],"au","61","(..) .... ....",0,["2","3","4","7","8","02","03","04","07","08"]],["Austria",["europe","eu-union"],"at","43"],["Azerbaijan",["asia","ex-ussr"],"az","994","(..) ... .. .."],["Bahamas",["america","carribean"],"bs","1242"],["Bahrain",["middle-east"],"bh","973"],["Bangladesh",["asia"],"bd","880"],["Barbados",["america","carribean"],"bb","1246"],["Belarus",["europe","ex-ussr"],"by","375","(..) ... .. .."],["Belgium",["europe","eu-union"],"be","32","... .. .. .."],["Belize",["america","central-america"],"bz","501"],["Benin",["africa"],"bj","229"],["Bhutan",["asia"],"bt","975"],["Bolivia",["america","south-america"],"bo","591"],["Bosnia and Herzegovina",["europe","ex-yugos"],"ba","387"],["Botswana",["africa"],"bw","267"],["Brazil",["america","south-america"],"br","55","(..) ........."],["British Indian Ocean Territory",["asia"],"io","246"],["Brunei",["asia"],"bn","673"],["Bulgaria",["europe","eu-union"],"bg","359"],["Burkina Faso",["africa"],"bf","226"],["Burundi",["africa"],"bi","257"],["Cambodia",["asia"],"kh","855"],["Cameroon",["africa"],"cm","237"],["Canada",["america","north-america"],"ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde",["africa"],"cv","238"],["Caribbean Netherlands",["america","carribean"],"bq","599","",1],["Central African Republic",["africa"],"cf","236"],["Chad",["africa"],"td","235"],["Chile",["america","south-america"],"cl","56"],["China",["asia"],"cn","86","..-........."],["Colombia",["america","south-america"],"co","57","... ... ...."],["Comoros",["africa"],"km","269"],["Congo",["africa"],"cd","243"],["Congo",["africa"],"cg","242"],["Costa Rica",["america","central-america"],"cr","506","....-...."],["Côte d’Ivoire",["africa"],"ci","225",".. .. .. .."],["Croatia",["europe","eu-union","ex-yugos"],"hr","385"],["Cuba",["america","carribean"],"cu","53"],["Curaçao",["america","carribean"],"cw","599","",0],["Cyprus",["europe","eu-union"],"cy","357",".. ......"],["Czech Republic",["europe","eu-union"],"cz","420","... ... ..."],["Denmark",["europe","eu-union","baltic"],"dk","45",".. .. .. .."],["Djibouti",["africa"],"dj","253"],["Dominica",["america","carribean"],"dm","1767"],["Dominican Republic",["america","carribean"],"do","1","",2,["809","829","849"]],["Ecuador",["america","south-america"],"ec","593"],["Egypt",["africa","north-africa"],"eg","20"],["El Salvador",["america","central-america"],"sv","503","....-...."],["Equatorial Guinea",["africa"],"gq","240"],["Eritrea",["africa"],"er","291"],["Estonia",["europe","eu-union","ex-ussr","baltic"],"ee","372",".... ......"],["Ethiopia",["africa"],"et","251"],["Fiji",["oceania"],"fj","679"],["Finland",["europe","eu-union","baltic"],"fi","358",".. ... .. .."],["France",["europe","eu-union"],"fr","33",". .. .. .. .."],["French Guiana",["america","south-america"],"gf","594"],["French Polynesia",["oceania"],"pf","689"],["Gabon",["africa"],"ga","241"],["Gambia",["africa"],"gm","220"],["Georgia",["asia","ex-ussr"],"ge","995"],["Germany",["europe","eu-union","baltic"],"de","49",".... ........"],["Ghana",["africa"],"gh","233"],["Greece",["europe","eu-union"],"gr","30"],["Grenada",["america","carribean"],"gd","1473"],["Guadeloupe",["america","carribean"],"gp","590","",0],["Guam",["oceania"],"gu","1671"],["Guatemala",["america","central-america"],"gt","502","....-...."],["Guinea",["africa"],"gn","224"],["Guinea-Bissau",["africa"],"gw","245"],["Guyana",["america","south-america"],"gy","592"],["Haiti",["america","carribean"],"ht","509","....-...."],["Honduras",["america","central-america"],"hn","504"],["Hong Kong",["asia"],"hk","852",".... ...."],["Hungary",["europe","eu-union"],"hu","36"],["Iceland",["europe"],"is","354","... ...."],["India",["asia"],"in","91",".....-....."],["Indonesia",["asia"],"id","62"],["Iran",["middle-east"],"ir","98","... ... ...."],["Iraq",["middle-east"],"iq","964"],["Ireland",["europe","eu-union"],"ie","353",".. ......."],["Israel",["middle-east"],"il","972","... ... ...."],["Italy",["europe","eu-union"],"it","39","... .......",0],["Jamaica",["america","carribean"],"jm","1876"],["Japan",["asia"],"jp","81",".. .... ...."],["Jordan",["middle-east"],"jo","962"],["Kazakhstan",["asia","ex-ussr"],"kz","7","... ...-..-..",1,["310","311","312","313","315","318","321","324","325","326","327","336","7172","73622"]],["Kenya",["africa"],"ke","254"],["Kiribati",["oceania"],"ki","686"],["Kosovo",["europe","ex-yugos"],"xk","383"],["Kuwait",["middle-east"],"kw","965"],["Kyrgyzstan",["asia","ex-ussr"],"kg","996","... ... ..."],["Laos",["asia"],"la","856"],["Latvia",["europe","eu-union","ex-ussr","baltic"],"lv","371",".. ... ..."],["Lebanon",["middle-east"],"lb","961"],["Lesotho",["africa"],"ls","266"],["Liberia",["africa"],"lr","231"],["Libya",["africa","north-africa"],"ly","218"],["Liechtenstein",["europe"],"li","423"],["Lithuania",["europe","eu-union","ex-ussr","baltic"],"lt","370"],["Luxembourg",["europe","eu-union"],"lu","352"],["Macau",["asia"],"mo","853"],["Macedonia",["europe","ex-yugos"],"mk","389"],["Madagascar",["africa"],"mg","261"],["Malawi",["africa"],"mw","265"],["Malaysia",["asia"],"my","60","..-....-...."],["Maldives",["asia"],"mv","960"],["Mali",["africa"],"ml","223"],["Malta",["europe","eu-union"],"mt","356"],["Marshall Islands",["oceania"],"mh","692"],["Martinique",["america","carribean"],"mq","596"],["Mauritania",["africa"],"mr","222"],["Mauritius",["africa"],"mu","230"],["Mexico",["america","central-america"],"mx","52","... ... ....",0,["55","81","33","656","664","998","774","229"]],["Micronesia",["oceania"],"fm","691"],["Moldova",["europe"],"md","373","(..) ..-..-.."],["Monaco",["europe"],"mc","377"],["Mongolia",["asia"],"mn","976"],["Montenegro",["europe","ex-yugos"],"me","382"],["Morocco",["africa","north-africa"],"ma","212"],["Mozambique",["africa"],"mz","258"],["Myanmar",["asia"],"mm","95"],["Namibia",["africa"],"na","264"],["Nauru",["africa"],"nr","674"],["Nepal",["asia"],"np","977"],["Netherlands",["europe","eu-union"],"nl","31",".. ........"],["New Caledonia",["oceania"],"nc","687"],["New Zealand",["oceania"],"nz","64","...-...-...."],["Nicaragua",["america","central-america"],"ni","505"],["Niger",["africa"],"ne","227"],["Nigeria",["africa"],"ng","234"],["North Korea",["asia"],"kp","850"],["Norway",["europe","baltic"],"no","47","... .. ..."],["Oman",["middle-east"],"om","968"],["Pakistan",["asia"],"pk","92","...-......."],["Palau",["oceania"],"pw","680"],["Palestine",["middle-east"],"ps","970"],["Panama",["america","central-america"],"pa","507"],["Papua New Guinea",["oceania"],"pg","675"],["Paraguay",["america","south-america"],"py","595"],["Peru",["america","south-america"],"pe","51"],["Philippines",["asia"],"ph","63",".... ......."],["Poland",["europe","eu-union","baltic"],"pl","48","...-...-..."],["Portugal",["europe","eu-union"],"pt","351"],["Puerto Rico",["america","carribean"],"pr","1","",3,["787","939"]],["Qatar",["middle-east"],"qa","974"],["Réunion",["africa"],"re","262"],["Romania",["europe","eu-union"],"ro","40"],["Russia",["europe","asia","ex-ussr","baltic"],"ru","7","(...) ...-..-..",0],["Rwanda",["africa"],"rw","250"],["Saint Kitts and Nevis",["america","carribean"],"kn","1869"],["Saint Lucia",["america","carribean"],"lc","1758"],["Saint Vincent and the Grenadines",["america","carribean"],"vc","1784"],["Samoa",["oceania"],"ws","685"],["San Marino",["europe"],"sm","378"],["São Tomé and Príncipe",["africa"],"st","239"],["Saudi Arabia",["middle-east"],"sa","966"],["Senegal",["africa"],"sn","221"],["Serbia",["europe","ex-yugos"],"rs","381"],["Seychelles",["africa"],"sc","248"],["Sierra Leone",["africa"],"sl","232"],["Singapore",["asia"],"sg","65","....-...."],["Slovakia",["europe","eu-union"],"sk","421"],["Slovenia",["europe","eu-union","ex-yugos"],"si","386"],["Solomon Islands",["oceania"],"sb","677"],["Somalia",["africa"],"so","252"],["South Africa",["africa"],"za","27"],["South Korea",["asia"],"kr","82","... .... ...."],["South Sudan",["africa","north-africa"],"ss","211"],["Spain",["europe","eu-union"],"es","34","... ... ..."],["Sri Lanka",["asia"],"lk","94"],["Sudan",["africa"],"sd","249"],["Suriname",["america","south-america"],"sr","597"],["Swaziland",["africa"],"sz","268"],["Sweden",["europe","eu-union","baltic"],"se","46","(...) ...-..."],["Switzerland",["europe"],"ch","41",".. ... .. .."],["Syria",["middle-east"],"sy","963"],["Taiwan",["asia"],"tw","886"],["Tajikistan",["asia","ex-ussr"],"tj","992"],["Tanzania",["africa"],"tz","255"],["Thailand",["asia"],"th","66"],["Timor-Leste",["asia"],"tl","670"],["Togo",["africa"],"tg","228"],["Tonga",["oceania"],"to","676"],["Trinidad and Tobago",["america","carribean"],"tt","1868"],["Tunisia",["africa","north-africa"],"tn","216"],["Turkey",["europe"],"tr","90","... ... .. .."],["Turkmenistan",["asia","ex-ussr"],"tm","993"],["Tuvalu",["asia"],"tv","688"],["Uganda",["africa"],"ug","256"],["Ukraine",["europe","ex-ussr"],"ua","380","(..) ... .. .."],["United Arab Emirates",["middle-east"],"ae","971"],["United Kingdom",["europe","eu-union"],"gb","44",".... ......"],["United States",["america","north-america"],"us","1","(...) ...-....",0,["907","205","251","256","334","479","501","870","480","520","602","623","928","209","213","310","323","408","415","510","530","559","562","619","626","650","661","707","714","760","805","818","831","858","909","916","925","949","951","303","719","970","203","860","202","302","239","305","321","352","386","407","561","727","772","813","850","863","904","941","954","229","404","478","706","770","912","808","319","515","563","641","712","208","217","309","312","618","630","708","773","815","847","219","260","317","574","765","812","316","620","785","913","270","502","606","859","225","318","337","504","985","413","508","617","781","978","301","410","207","231","248","269","313","517","586","616","734","810","906","989","218","320","507","612","651","763","952","314","417","573","636","660","816","228","601","662","406","252","336","704","828","910","919","701","308","402","603","201","609","732","856","908","973","505","575","702","775","212","315","516","518","585","607","631","716","718","845","914","216","330","419","440","513","614","740","937","405","580","918","503","541","215","412","570","610","717","724","814","401","803","843","864","605","423","615","731","865","901","931","210","214","254","281","325","361","409","432","512","713","806","817","830","903","915","936","940","956","972","979","435","801","276","434","540","703","757","804","802","206","253","360","425","509","262","414","608","715","920","304","307"]],["Uruguay",["america","south-america"],"uy","598"],["Uzbekistan",["asia","ex-ussr"],"uz","998",".. ... .. .."],["Vanuatu",["oceania"],"vu","678"],["Vatican City",["europe"],"va","39",".. .... ....",1],["Venezuela",["america","south-america"],"ve","58"],["Vietnam",["asia"],"vn","84"],["Yemen",["middle-east"],"ye","967"],["Zambia",["africa"],"zm","260"],["Zimbabwe",["africa"],"zw","263"]],ce=[["American Samoa",["oceania"],"as","1684"],["Anguilla",["america","carribean"],"ai","1264"],["Bermuda",["america","north-america"],"bm","1441"],["British Virgin Islands",["america","carribean"],"vg","1284"],["Cayman Islands",["america","carribean"],"ky","1345"],["Cook Islands",["oceania"],"ck","682"],["Falkland Islands",["america","south-america"],"fk","500"],["Faroe Islands",["europe"],"fo","298"],["Gibraltar",["europe"],"gi","350"],["Greenland",["america"],"gl","299"],["Jersey",["europe","eu-union"],"je","44",".... ......"],["Montserrat",["america","carribean"],"ms","1664"],["Niue",["asia"],"nu","683"],["Norfolk Island",["oceania"],"nf","672"],["Northern Mariana Islands",["oceania"],"mp","1670"],["Saint Barthélemy",["america","carribean"],"bl","590","",1],["Saint Helena",["africa"],"sh","290"],["Saint Martin",["america","carribean"],"mf","590","",2],["Saint Pierre and Miquelon",["america","north-america"],"pm","508"],["Sint Maarten",["america","carribean"],"sx","1721"],["Tokelau",["oceania"],"tk","690"],["Turks and Caicos Islands",["america","carribean"],"tc","1649"],["U.S. Virgin Islands",["america","carribean"],"vi","1340"],["Wallis and Futuna",["oceania"],"wf","681"]];function T(D,L,Y,ie,X){return!Y||X?D+"".padEnd(L.length,".")+" "+ie:D+"".padEnd(L.length,".")+" "+Y}function j(D,L,Y,ie,X){var b,de,Z=[];return de=L===!0,[(b=[]).concat.apply(b,o(D.map(function(K){var me={name:K[0],regions:K[1],iso2:K[2],countryCode:K[3],dialCode:K[3],format:T(Y,K[3],K[4],ie,X),priority:K[5]||0},we=[];return K[6]&&K[6].map(function(Ge){var z=function(Fe){for(var Pe=1;Pe<arguments.length;Pe++){var P=arguments[Pe]!=null?arguments[Pe]:{},W=Object.keys(P);typeof Object.getOwnPropertySymbols=="function"&&(W=W.concat(Object.getOwnPropertySymbols(P).filter(function(re){return Object.getOwnPropertyDescriptor(P,re).enumerable}))),W.forEach(function(re){a(Fe,re,P[re])})}return Fe}({},me);z.dialCode=K[3]+Ge,z.isAreaCode=!0,z.areaCodeLength=Ge.length,we.push(z)}),we.length>0?(me.mainCode=!0,de||L.constructor.name==="Array"&&L.includes(K[2])?(me.hasAreaCodes=!0,[me].concat(we)):(Z=Z.concat(we),[me])):[me]}))),Z]}function k(D,L,Y,ie){if(Y!==null){var X=Object.keys(Y),b=Object.values(Y);X.forEach(function(de,Z){if(ie)return D.push([de,b[Z]]);var K=D.findIndex(function(we){return we[0]===de});if(K===-1){var me=[de];me[L]=b[Z],D.push(me)}else D[K][L]=b[Z]})}}function J(D,L){return L.length===0?D:D.map(function(Y){var ie=L.findIndex(function(b){return b[0]===Y[2]});if(ie===-1)return Y;var X=L[ie];return X[1]&&(Y[4]=X[1]),X[3]&&(Y[5]=X[3]),X[2]&&(Y[6]=X[2]),Y})}var pe=function D(L,Y,ie,X,b,de,Z,K,me,we,Ge,z,Fe,Pe){s(this,D),this.filterRegions=function(Q,ee){if(typeof Q=="string"){var Ae=Q;return ee.filter(function(oe){return oe.regions.some(function(le){return le===Ae})})}return ee.filter(function(oe){return Q.map(function(le){return oe.regions.some(function(ke){return ke===le})}).some(function(le){return le})})},this.sortTerritories=function(Q,ee){var Ae=[].concat(o(Q),o(ee));return Ae.sort(function(oe,le){return oe.name<le.name?-1:oe.name>le.name?1:0}),Ae},this.getFilteredCountryList=function(Q,ee,Ae){return Q.length===0?ee:Ae?Q.map(function(oe){var le=ee.find(function(ke){return ke.iso2===oe});if(le)return le}).filter(function(oe){return oe}):ee.filter(function(oe){return Q.some(function(le){return le===oe.iso2})})},this.localizeCountries=function(Q,ee,Ae){for(var oe=0;oe<Q.length;oe++)ee[Q[oe].iso2]!==void 0?Q[oe].localName=ee[Q[oe].iso2]:ee[Q[oe].name]!==void 0&&(Q[oe].localName=ee[Q[oe].name]);return Ae||Q.sort(function(le,ke){return le.localName<ke.localName?-1:le.localName>ke.localName?1:0}),Q},this.getCustomAreas=function(Q,ee){for(var Ae=[],oe=0;oe<ee.length;oe++){var le=JSON.parse(JSON.stringify(Q));le.dialCode+=ee[oe],Ae.push(le)}return Ae},this.excludeCountries=function(Q,ee){return ee.length===0?Q:Q.filter(function(Ae){return!ee.includes(Ae.iso2)})};var P=function(Q,ee,Ae){var oe=[];return k(oe,1,Q,!0),k(oe,3,ee),k(oe,2,Ae),oe}(K,me,we),W=J(JSON.parse(JSON.stringify($)),P),re=J(JSON.parse(JSON.stringify(ce)),P),Ce=fe(j(W,L,z,Fe,Pe),2),ae=Ce[0],ve=Ce[1];if(Y){var Se=fe(j(re,L,z,Fe,Pe),2),xe=Se[0];Se[1],ae=this.sortTerritories(xe,ae)}ie&&(ae=this.filterRegions(ie,ae)),this.onlyCountries=this.localizeCountries(this.excludeCountries(this.getFilteredCountryList(X,ae,Z.includes("onlyCountries")),de),Ge,Z.includes("onlyCountries")),this.preferredCountries=b.length===0?[]:this.localizeCountries(this.getFilteredCountryList(b,ae,Z.includes("preferredCountries")),Ge,Z.includes("preferredCountries")),this.hiddenAreaCodes=this.excludeCountries(this.getFilteredCountryList(X,ve),de)},ue=function(D){function L(X){var b;s(this,L),(b=function(P,W){return!W||g(W)!=="object"&&typeof W!="function"?y(P):W}(this,x(L).call(this,X))).getProbableCandidate=A()(function(P){return P&&P.length!==0?b.state.onlyCountries.filter(function(W){return B()(W.name.toLowerCase(),P.toLowerCase())},y(y(b)))[0]:null}),b.guessSelectedCountry=A()(function(P,W,re,Ce){var ae;if(b.props.enableAreaCodes===!1&&(Ce.some(function(xe){if(B()(P,xe.dialCode))return re.some(function(Q){if(xe.iso2===Q.iso2&&Q.mainCode)return ae=Q,!0}),!0}),ae))return ae;var ve=re.find(function(xe){return xe.iso2==W});if(P.trim()==="")return ve;var Se=re.reduce(function(xe,Q){return B()(P,Q.dialCode)&&(Q.dialCode.length>xe.dialCode.length||Q.dialCode.length===xe.dialCode.length&&Q.priority<xe.priority)?Q:xe},{dialCode:"",priority:10001},y(y(b)));return Se.name?Se:ve}),b.updateCountry=function(P){var W,re=b.state.onlyCountries;(W=P.indexOf(0)>="0"&&P.indexOf(0)<="9"?re.find(function(Ce){return Ce.dialCode==+P}):re.find(function(Ce){return Ce.iso2==P}))&&W.dialCode&&b.setState({selectedCountry:W,formattedNumber:b.props.disableCountryCode?"":b.formatNumber(W.dialCode,W)})},b.scrollTo=function(P,W){if(P){var re=b.dropdownRef;if(re&&document.body){var Ce=re.offsetHeight,ae=re.getBoundingClientRect().top+document.body.scrollTop,ve=ae+Ce,Se=P,xe=Se.getBoundingClientRect(),Q=Se.offsetHeight,ee=xe.top+document.body.scrollTop,Ae=ee+Q,oe=ee-ae+re.scrollTop,le=Ce/2-Q/2;if(b.props.enableSearch?ee<ae+32:ee<ae)W&&(oe-=le),re.scrollTop=oe;else if(Ae>ve){W&&(oe+=le);var ke=Ce-Q;re.scrollTop=oe-ke}}}},b.scrollToTop=function(){var P=b.dropdownRef;P&&document.body&&(P.scrollTop=0)},b.formatNumber=function(P,W){if(!W)return P;var re,Ce=W.format,ae=b.props,ve=ae.disableCountryCode,Se=ae.enableAreaCodeStretch,xe=ae.enableLongNumbers,Q=ae.autoFormat;if(ve?((re=Ce.split(" ")).shift(),re=re.join(" ")):Se&&W.isAreaCode?((re=Ce.split(" "))[1]=re[1].replace(/\.+/,"".padEnd(W.areaCodeLength,".")),re=re.join(" ")):re=Ce,!P||P.length===0)return ve?"":b.props.prefix;if(P&&P.length<2||!re||!Q)return ve?P:b.props.prefix+P;var ee,Ae=M()(re,function(oe,le){if(oe.remainingText.length===0)return oe;if(le!==".")return{formattedText:oe.formattedText+le,remainingText:oe.remainingText};var ke,Qe=i(ke=oe.remainingText)||n(ke)||l(),Ue=Qe[0],st=Qe.slice(1);return{formattedText:oe.formattedText+Ue,remainingText:st}},{formattedText:"",remainingText:P.split("")});return(ee=xe?Ae.formattedText+Ae.remainingText.join(""):Ae.formattedText).includes("(")&&!ee.includes(")")&&(ee+=")"),ee},b.cursorToEnd=function(){var P=b.numberInputRef;if(document.activeElement===P){P.focus();var W=P.value.length;P.value.charAt(W-1)===")"&&(W-=1),P.setSelectionRange(W,W)}},b.getElement=function(P){return b["flag_no_".concat(P)]},b.getCountryData=function(){return b.state.selectedCountry?{name:b.state.selectedCountry.name||"",dialCode:b.state.selectedCountry.dialCode||"",countryCode:b.state.selectedCountry.iso2||"",format:b.state.selectedCountry.format||""}:{}},b.handleFlagDropdownClick=function(P){if(P.preventDefault(),b.state.showDropdown||!b.props.disabled){var W=b.state,re=W.preferredCountries,Ce=W.onlyCountries,ae=W.selectedCountry,ve=b.concatPreferredCountries(re,Ce).findIndex(function(Se){return Se.dialCode===ae.dialCode&&Se.iso2===ae.iso2});b.setState({showDropdown:!b.state.showDropdown,highlightCountryIndex:ve},function(){b.state.showDropdown&&b.scrollTo(b.getElement(b.state.highlightCountryIndex))})}},b.handleInput=function(P){var W=P.target.value,re=b.props,Ce=re.prefix,ae=re.onChange,ve=b.props.disableCountryCode?"":Ce,Se=b.state.selectedCountry,xe=b.state.freezeSelection;if(!b.props.countryCodeEditable){var Q=Ce+(Se.hasAreaCodes?b.state.onlyCountries.find(function($e){return $e.iso2===Se.iso2&&$e.mainCode}).dialCode:Se.dialCode);if(W.slice(0,Q.length)!==Q)return}if(W===Ce)return ae&&ae("",b.getCountryData(),P,""),b.setState({formattedNumber:""});if(!(W.replace(/\D/g,"").length>15&&(b.props.enableLongNumbers===!1||typeof b.props.enableLongNumbers=="number"&&W.replace(/\D/g,"").length>b.props.enableLongNumbers))&&W!==b.state.formattedNumber){P.preventDefault?P.preventDefault():P.returnValue=!1;var ee=b.props.country,Ae=b.state,oe=Ae.onlyCountries,le=Ae.selectedCountry,ke=Ae.hiddenAreaCodes;if(ae&&P.persist(),W.length>0){var Qe=W.replace(/\D/g,"");(!b.state.freezeSelection||le&&le.dialCode.length>Qe.length)&&(Se=b.props.disableCountryGuess?le:b.guessSelectedCountry(Qe.substring(0,6),ee,oe,ke)||le,xe=!1),ve=b.formatNumber(Qe,Se),Se=Se.dialCode?Se:le}var Ue=P.target.selectionStart,st=P.target.selectionStart,nt=b.state.formattedNumber,pt=ve.length-nt.length;b.setState({formattedNumber:ve,freezeSelection:xe,selectedCountry:Se},function(){pt>0&&(st-=pt),ve.charAt(ve.length-1)==")"?b.numberInputRef.setSelectionRange(ve.length-1,ve.length-1):st>0&&nt.length>=ve.length?b.numberInputRef.setSelectionRange(st,st):Ue<nt.length&&b.numberInputRef.setSelectionRange(Ue,Ue),ae&&ae(ve.replace(/[^0-9]+/g,""),b.getCountryData(),P,ve)})}},b.handleInputClick=function(P){b.setState({showDropdown:!1}),b.props.onClick&&b.props.onClick(P,b.getCountryData())},b.handleDoubleClick=function(P){var W=P.target.value.length;P.target.setSelectionRange(0,W)},b.handleFlagItemClick=function(P,W){var re=b.state.selectedCountry,Ce=b.state.onlyCountries.find(function(xe){return xe==P});if(Ce){var ae=b.state.formattedNumber.replace(" ","").replace("(","").replace(")","").replace("-",""),ve=ae.length>1?ae.replace(re.dialCode,Ce.dialCode):Ce.dialCode,Se=b.formatNumber(ve.replace(/\D/g,""),Ce);b.setState({showDropdown:!1,selectedCountry:Ce,freezeSelection:!0,formattedNumber:Se,searchValue:""},function(){b.cursorToEnd(),b.props.onChange&&b.props.onChange(Se.replace(/[^0-9]+/g,""),b.getCountryData(),W,Se)})}},b.handleInputFocus=function(P){b.numberInputRef&&b.numberInputRef.value===b.props.prefix&&b.state.selectedCountry&&!b.props.disableCountryCode&&b.setState({formattedNumber:b.props.prefix+b.state.selectedCountry.dialCode},function(){b.props.jumpCursorToEnd&&setTimeout(b.cursorToEnd,0)}),b.setState({placeholder:""}),b.props.onFocus&&b.props.onFocus(P,b.getCountryData()),b.props.jumpCursorToEnd&&setTimeout(b.cursorToEnd,0)},b.handleInputBlur=function(P){P.target.value||b.setState({placeholder:b.props.placeholder}),b.props.onBlur&&b.props.onBlur(P,b.getCountryData())},b.handleInputCopy=function(P){if(b.props.copyNumbersOnly){var W=window.getSelection().toString().replace(/[^0-9]+/g,"");P.clipboardData.setData("text/plain",W),P.preventDefault()}},b.getHighlightCountryIndex=function(P){var W=b.state.highlightCountryIndex+P;return W<0||W>=b.state.onlyCountries.length+b.state.preferredCountries.length?W-P:b.props.enableSearch&&W>b.getSearchFilteredCountries().length?0:W},b.searchCountry=function(){var P=b.getProbableCandidate(b.state.queryString)||b.state.onlyCountries[0],W=b.state.onlyCountries.findIndex(function(re){return re==P})+b.state.preferredCountries.length;b.scrollTo(b.getElement(W),!0),b.setState({queryString:"",highlightCountryIndex:W})},b.handleKeydown=function(P){var W=b.props.keys,re=P.target.className;if(re.includes("selected-flag")&&P.which===W.ENTER&&!b.state.showDropdown)return b.handleFlagDropdownClick(P);if(re.includes("form-control")&&(P.which===W.ENTER||P.which===W.ESC))return P.target.blur();if(b.state.showDropdown&&!b.props.disabled&&(!re.includes("search-box")||P.which===W.UP||P.which===W.DOWN||P.which===W.ENTER||P.which===W.ESC&&P.target.value==="")){P.preventDefault?P.preventDefault():P.returnValue=!1;var Ce=function(ae){b.setState({highlightCountryIndex:b.getHighlightCountryIndex(ae)},function(){b.scrollTo(b.getElement(b.state.highlightCountryIndex),!0)})};switch(P.which){case W.DOWN:Ce(1);break;case W.UP:Ce(-1);break;case W.ENTER:b.props.enableSearch?b.handleFlagItemClick(b.getSearchFilteredCountries()[b.state.highlightCountryIndex]||b.getSearchFilteredCountries()[0],P):b.handleFlagItemClick([].concat(o(b.state.preferredCountries),o(b.state.onlyCountries))[b.state.highlightCountryIndex],P);break;case W.ESC:case W.TAB:b.setState({showDropdown:!1},b.cursorToEnd);break;default:(P.which>=W.A&&P.which<=W.Z||P.which===W.SPACE)&&b.setState({queryString:b.state.queryString+String.fromCharCode(P.which)},b.state.debouncedQueryStingSearcher)}}},b.handleInputKeyDown=function(P){var W=b.props,re=W.keys,Ce=W.onEnterKeyPress,ae=W.onKeyDown;P.which===re.ENTER&&Ce&&Ce(P),ae&&ae(P)},b.handleClickOutside=function(P){b.dropdownRef&&!b.dropdownContainerRef.contains(P.target)&&b.state.showDropdown&&b.setState({showDropdown:!1})},b.handleSearchChange=function(P){var W=P.currentTarget.value,re=b.state,Ce=re.preferredCountries,ae=re.selectedCountry,ve=0;if(W===""&&ae){var Se=b.state.onlyCountries;ve=b.concatPreferredCountries(Ce,Se).findIndex(function(xe){return xe==ae}),setTimeout(function(){return b.scrollTo(b.getElement(ve))},100)}b.setState({searchValue:W,highlightCountryIndex:ve})},b.concatPreferredCountries=function(P,W){return P.length>0?o(new Set(P.concat(W))):W},b.getDropdownCountryName=function(P){return P.localName||P.name},b.getSearchFilteredCountries=function(){var P=b.state,W=P.preferredCountries,re=P.onlyCountries,Ce=P.searchValue,ae=b.props.enableSearch,ve=b.concatPreferredCountries(W,re),Se=Ce.trim().toLowerCase().replace("+","");if(ae&&Se){if(/^\d+$/.test(Se))return ve.filter(function(ee){var Ae=ee.dialCode;return["".concat(Ae)].some(function(oe){return oe.toLowerCase().includes(Se)})});var xe=ve.filter(function(ee){var Ae=ee.iso2;return["".concat(Ae)].some(function(oe){return oe.toLowerCase().includes(Se)})}),Q=ve.filter(function(ee){var Ae=ee.name,oe=ee.localName;return ee.iso2,["".concat(Ae),"".concat(oe||"")].some(function(le){return le.toLowerCase().includes(Se)})});return b.scrollToTop(),o(new Set([].concat(xe,Q)))}return ve},b.getCountryDropdownList=function(){var P=b.state,W=P.preferredCountries,re=P.highlightCountryIndex,Ce=P.showDropdown,ae=P.searchValue,ve=b.props,Se=ve.disableDropdown,xe=ve.prefix,Q=b.props,ee=Q.enableSearch,Ae=Q.searchNotFound,oe=Q.disableSearchIcon,le=Q.searchClass,ke=Q.searchStyle,Qe=Q.searchPlaceholder,Ue=Q.autocompleteSearch,st=b.getSearchFilteredCountries().map(function($e,ut){var gt=re===ut,Wt=te()({country:!0,preferred:$e.iso2==="us"||$e.iso2==="gb",active:$e.iso2==="us",highlight:gt}),vt="flag ".concat($e.iso2);return p.a.createElement("li",Object.assign({ref:function(Ct){return b["flag_no_".concat(ut)]=Ct},key:"flag_no_".concat(ut),"data-flag-key":"flag_no_".concat(ut),className:Wt,"data-dial-code":"1",tabIndex:Se?"-1":"0","data-country-code":$e.iso2,onClick:function(Ct){return b.handleFlagItemClick($e,Ct)},role:"option"},gt?{"aria-selected":!0}:{}),p.a.createElement("div",{className:vt}),p.a.createElement("span",{className:"country-name"},b.getDropdownCountryName($e)),p.a.createElement("span",{className:"dial-code"},$e.format?b.formatNumber($e.dialCode,$e):xe+$e.dialCode))}),nt=p.a.createElement("li",{key:"dashes",className:"divider"});W.length>0&&(!ee||ee&&!ae.trim())&&st.splice(W.length,0,nt);var pt=te()(a({"country-list":!0,hide:!Ce},b.props.dropdownClass,!0));return p.a.createElement("ul",{ref:function($e){return!ee&&$e&&$e.focus(),b.dropdownRef=$e},className:pt,style:b.props.dropdownStyle,role:"listbox",tabIndex:"0"},ee&&p.a.createElement("li",{className:te()(a({search:!0},le,le))},!oe&&p.a.createElement("span",{className:te()(a({"search-emoji":!0},"".concat(le,"-emoji"),le)),role:"img","aria-label":"Magnifying glass"},"🔎"),p.a.createElement("input",{className:te()(a({"search-box":!0},"".concat(le,"-box"),le)),style:ke,type:"search",placeholder:Qe,autoFocus:!0,autoComplete:Ue?"on":"off",value:ae,onChange:b.handleSearchChange})),st.length>0?st:p.a.createElement("li",{className:"no-entries-message"},p.a.createElement("span",null,Ae)))};var de,Z=new pe(X.enableAreaCodes,X.enableTerritories,X.regions,X.onlyCountries,X.preferredCountries,X.excludeCountries,X.preserveOrder,X.masks,X.priority,X.areaCodes,X.localization,X.prefix,X.defaultMask,X.alwaysDefaultMask),K=Z.onlyCountries,me=Z.preferredCountries,we=Z.hiddenAreaCodes,Ge=X.value?X.value.replace(/\D/g,""):"";de=X.disableInitialCountryGuess?0:Ge.length>1?b.guessSelectedCountry(Ge.substring(0,6),X.country,K,we)||0:X.country&&K.find(function(P){return P.iso2==X.country})||0;var z,Fe=Ge.length<2&&de&&!B()(Ge,de.dialCode)?de.dialCode:"";z=Ge===""&&de===0?"":b.formatNumber((X.disableCountryCode?"":Fe)+Ge,de.name?de:void 0);var Pe=K.findIndex(function(P){return P==de});return b.state={showDropdown:X.showDropdown,formattedNumber:z,onlyCountries:K,preferredCountries:me,hiddenAreaCodes:we,selectedCountry:de,highlightCountryIndex:Pe,queryString:"",freezeSelection:!1,debouncedQueryStingSearcher:R()(b.searchCountry,250),searchValue:""},b}var Y,ie;return function(X,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");X.prototype=Object.create(b&&b.prototype,{constructor:{value:X,writable:!0,configurable:!0}}),b&&m(X,b)}(L,D),Y=L,(ie=[{key:"componentDidMount",value:function(){document.addEventListener&&this.props.enableClickOutside&&document.addEventListener("mousedown",this.handleClickOutside),this.props.onMount&&this.props.onMount(this.state.formattedNumber.replace(/[^0-9]+/g,""),this.getCountryData(),this.state.formattedNumber)}},{key:"componentWillUnmount",value:function(){document.removeEventListener&&this.props.enableClickOutside&&document.removeEventListener("mousedown",this.handleClickOutside)}},{key:"componentDidUpdate",value:function(X,b,de){X.country!==this.props.country?this.updateCountry(this.props.country):X.value!==this.props.value&&this.updateFormattedNumber(this.props.value)}},{key:"updateFormattedNumber",value:function(X){if(X===null)return this.setState({selectedCountry:0,formattedNumber:""});var b=this.state,de=b.onlyCountries,Z=b.selectedCountry,K=b.hiddenAreaCodes,me=this.props,we=me.country,Ge=me.prefix;if(X==="")return this.setState({selectedCountry:Z,formattedNumber:""});var z,Fe,Pe=X.replace(/\D/g,"");if(Z&&B()(X,Ge+Z.dialCode))Fe=this.formatNumber(Pe,Z),this.setState({formattedNumber:Fe});else{var P=(z=this.props.disableCountryGuess?Z:this.guessSelectedCountry(Pe.substring(0,6),we,de,K)||Z)&&B()(Pe,Ge+z.dialCode)?z.dialCode:"";Fe=this.formatNumber((this.props.disableCountryCode?"":P)+Pe,z||void 0),this.setState({selectedCountry:z,formattedNumber:Fe})}}},{key:"render",value:function(){var X,b,de,Z=this,K=this.state,me=K.onlyCountries,we=K.selectedCountry,Ge=K.showDropdown,z=K.formattedNumber,Fe=K.hiddenAreaCodes,Pe=this.props,P=Pe.disableDropdown,W=Pe.renderStringAsFlag,re=Pe.isValid,Ce=Pe.defaultErrorMessage,ae=Pe.specialLabel;if(typeof re=="boolean")b=re;else{var ve=re(z.replace(/\D/g,""),we,me,Fe);typeof ve=="boolean"?(b=ve)===!1&&(de=Ce):(b=!1,de=ve)}var Se=te()((a(X={},this.props.containerClass,!0),a(X,"react-tel-input",!0),X)),xe=te()({arrow:!0,up:Ge}),Q=te()(a({"form-control":!0,"invalid-number":!b,open:Ge},this.props.inputClass,!0)),ee=te()({"selected-flag":!0,open:Ge}),Ae=te()(a({"flag-dropdown":!0,"invalid-number":!b,open:Ge},this.props.buttonClass,!0)),oe="flag ".concat(we&&we.iso2);return p.a.createElement("div",{className:"".concat(Se," ").concat(this.props.className),style:this.props.style||this.props.containerStyle,onKeyDown:this.handleKeydown},ae&&p.a.createElement("div",{className:"special-label"},ae),de&&p.a.createElement("div",{className:"invalid-number-message"},de),p.a.createElement("input",Object.assign({className:Q,style:this.props.inputStyle,onChange:this.handleInput,onClick:this.handleInputClick,onDoubleClick:this.handleDoubleClick,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onCopy:this.handleInputCopy,value:z,onKeyDown:this.handleInputKeyDown,placeholder:this.props.placeholder,disabled:this.props.disabled,type:"tel"},this.props.inputProps,{ref:function(le){Z.numberInputRef=le,typeof Z.props.inputProps.ref=="function"?Z.props.inputProps.ref(le):typeof Z.props.inputProps.ref=="object"&&(Z.props.inputProps.ref.current=le)}})),p.a.createElement("div",{className:Ae,style:this.props.buttonStyle,ref:function(le){return Z.dropdownContainerRef=le}},W?p.a.createElement("div",{className:ee},W):p.a.createElement("div",{onClick:P?void 0:this.handleFlagDropdownClick,className:ee,title:we?"".concat(we.localName||we.name,": + ").concat(we.dialCode):"",tabIndex:P?"-1":"0",role:"button","aria-haspopup":"listbox","aria-expanded":!!Ge||void 0},p.a.createElement("div",{className:oe},!P&&p.a.createElement("div",{className:xe}))),Ge&&this.getCountryDropdownList()))}}])&&c(Y.prototype,ie),L}(p.a.Component);ue.defaultProps={country:"",value:"",onlyCountries:[],preferredCountries:[],excludeCountries:[],placeholder:"1 (702) 123-4567",searchPlaceholder:"search",searchNotFound:"No entries to show",flagsImagePath:"./flags.png",disabled:!1,containerStyle:{},inputStyle:{},buttonStyle:{},dropdownStyle:{},searchStyle:{},containerClass:"",inputClass:"",buttonClass:"",dropdownClass:"",searchClass:"",className:"",autoFormat:!0,enableAreaCodes:!1,enableTerritories:!1,disableCountryCode:!1,disableDropdown:!1,enableLongNumbers:!1,countryCodeEditable:!0,enableSearch:!1,disableSearchIcon:!1,disableInitialCountryGuess:!1,disableCountryGuess:!1,regions:"",inputProps:{},localization:{},masks:null,priority:null,areaCodes:null,preserveOrder:[],defaultMask:"... ... ... ... ..",alwaysDefaultMask:!1,prefix:"+",copyNumbersOnly:!0,renderStringAsFlag:"",autocompleteSearch:!1,jumpCursorToEnd:!0,enableAreaCodeStretch:!1,enableClickOutside:!0,showDropdown:!1,isValid:!0,defaultErrorMessage:"",specialLabel:"Phone",onEnterKeyPress:null,keys:{UP:38,DOWN:40,RIGHT:39,LEFT:37,ENTER:13,ESC:27,PLUS:43,A:65,Z:90,SPACE:32,TAB:9}},t.default=ue}]);const Jm=cu(Ym),Um=({value:e,onChange:t,error:r,onBlur:a,id:n,name:o,required:i,defaultCountry:l="us",className:s,responsive:c=!1,enableSearch:d=!0,autoComplete:g})=>{const y=(x,m)=>{t("+"+x,m.countryCode)};return u.jsxs("div",{className:s,children:[u.jsx("div",{className:Oe("movmo-phone-input flex items-center px-3.5 py-0 h-10 rounded-lg border",c&&"movmo-phone-input-responsive",r?"border-error-500 focus:ring-error-500":"border-grayWarm-300 focus-within:ring-2 focus-within:ring-grayWarm-950"),children:u.jsx(Jm,{country:l,value:e.replace("+",""),onChange:y,inputProps:{onBlur:a,required:i,id:n,name:o,...g&&{autoComplete:g}},enableSearch:d,autoFormat:!0})}),r&&u.jsx("p",{className:"text-error-500 text-xs mt-1",children:r})]})},ya=e=>`otp-input-${e}`,lr=e=>wt(document.getElementById(ya(e))),$m=e=>Array.from({length:e},()=>""),Ua=({length:e,onComplete:t,onChange:r,disabled:a=!1,autoFocus:n=!1})=>{const[o,i]=E.useState(()=>$m(e)),l=E.useRef(null),s=E.useRef(t);s.current=t;const c=m=>{i(m),r==null||r(m.join(""))},d=m=>{const h=[...o];for(let C=0;C<Math.min(m.length,e);C++)h[C]=m[C];c(h);const p=h.findIndex(C=>C==="");lr(p!==-1?p:e-1)},g=(m,h)=>{if(a||!/^\d*$/.test(m))return;if(m.length>=e){d(m);return}const p=[...o];p[h]=m.slice(-1),c(p),m&&h<e-1&&lr(h+1)},y=m=>{if(a)return;m.preventDefault();const h=m.clipboardData.getData("text/plain").replace(/\D/g,"");h&&d(h)},x=m=>{if(a)return;const h=[...o];h[m]="",c(h),m>0&&lr(m-1)};return E.useEffect(()=>{n&&lr(0)},[]),E.useEffect(()=>{if(a)return;const m=o.join("");if(o.some(h=>h==="")){l.current=null;return}l.current!==m&&(l.current=m,s.current(m))},[o,a]),u.jsx("div",{className:"flex justify-center gap-1.5 sm:gap-2",children:Array.from({length:e}).map((m,h)=>u.jsx("input",{type:"text",inputMode:"numeric",pattern:"[0-9]*",maxLength:h===0?e:1,autoComplete:h===0?"one-time-code":"off","aria-label":`Digit ${h+1} of ${e}`,disabled:a,className:`w-full max-w-10 h-16 border border-grayWarm-300 shadow-xs rounded-md text-center text-lg focus:outline-none focus:ring-2 focus:ring-grayWarm-950${a?" bg-grayWarm-100 text-grayWarm-400 cursor-not-allowed":""}`,value:o[h]??"",onChange:p=>g(p.target.value,h),onPaste:y,id:ya(h),"data-testid":ya(h),onKeyDown:p=>{p.key==="Backspace"&&x(h)}},h))})};function Km(e){const t=Math.max(0,Math.ceil(e));return`${Math.floor(t/60)}:${String(t%60).padStart(2,"0")}`}const gr={didntGetIt:"Didn't get it?",resend:"Resend code",resendIn:e=>`Resend code in ${Km(e)}`,attemptsLeft:e=>`${e} ${e===1?"attempt":"attempts"} left.`},_l=({secondsLeft:e,onResend:t,disabled:r=!1,className:a=""})=>u.jsx("p",{className:`text-sm text-grayWarm-600 ${a}`,children:e>0?gr.resendIn(e):u.jsxs(u.Fragment,{children:[u.jsx("span",{children:gr.didntGetIt})," ",u.jsx("button",{type:"button",onClick:t,disabled:r,className:"font-semibold text-brand-600 hover:text-brand-700 rounded focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500 disabled:opacity-60 disabled:cursor-not-allowed",children:gr.resend})]})}),Qm=({email:e,phone:t,otpLength:r,otpAction:a,onVerify:n,onClose:o,externalError:i,externalErrorVariant:l="error",disabled:s=!1,title:c,description:d,onOtpChange:g,onResend:y,resendAfter:x=0,attemptsRemaining:m})=>{const[h,p]=E.useState(x);E.useEffect(()=>{p(x)},[x]);const C=h>0;E.useEffect(()=>{if(!C)return;const A=setInterval(()=>p(I=>Math.max(0,I-1)),1e3);return()=>clearInterval(A)},[C]);const R=()=>{y==null||y(),p(x)};E.useEffect(()=>{const A=I=>{I.key==="Escape"&&o()};return document.addEventListener("keydown",A),()=>document.removeEventListener("keydown",A)},[o]);const N=l==="warning"?"text-warning-700":"text-error-500";return u.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex justify-center items-center z-[110] px-4",children:u.jsxs(Aa,{className:"w-full max-w-[400px] rounded-lg bg-white",children:[u.jsx(wa,{className:"p-4 border-b border-grayWarm-200",children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("button",{onClick:o,className:"w-8 h-8 flex items-center justify-center bg-grayWarm-100 hover:bg-grayWarm-200 rounded-lg transition-colors","aria-label":"Close modal",children:u.jsx("svg",{className:"w-4 h-4 text-grayWarm-600",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),u.jsx("h2",{className:"text-xl md:text-lg font-bold text-center flex-1",children:c||"Verify Account"}),u.jsx("div",{className:"w-8"})]})}),u.jsxs(Ea,{className:"p-4 text-center",children:[u.jsxs("div",{className:"text-center mb-3",children:[u.jsx("p",{className:"text-sm md:text-md text-grayWarm-600",children:d||"Enter the code we sent to"}),!d&&u.jsx("p",{className:"text-sm md:text-md text-grayWarm-600 mt-1",children:a===$t.OTPAction.EMAILED?e:t})]}),u.jsx("div",{className:"mb-6",children:u.jsx(Ua,{length:r,onComplete:n,onChange:g,disabled:s})}),i&&u.jsx("p",{className:`${N} text-center text-sm mb-4`,children:i}),m!==void 0&&u.jsx("p",{className:"text-error-500 text-center text-sm mb-4",children:gr.attemptsLeft(m)}),y&&u.jsx(_l,{secondsLeft:h,onResend:R,disabled:s,className:"text-center mb-2"})]})]})})};function $a(){if(typeof window>"u")return!1;try{return window.self!==window.top}catch{return!0}}const qm=new Set(["invalid_email","rate_limited","resend_too_soon","flow_expired","invalid_code","too_many_attempts","invalid_request","invalid_credential","topOrigin_required","passkey_limit","credential_exists","not_found","reauth_required","movmo_session_required","first_party_only","issuer_unavailable","passkey_failed","sign_in_failed","recovery_required","recovery_blocked","recovery_cooldown","code_sends_paused"]);function eb(e){return qm.has(e)}class Et extends Error{constructor(t,r,a,n,o){super(r),this.status=t,this.code=r,this.retryAfter=a,this.attemptsRemaining=n,this.until=o}}function tb(e){return typeof e=="object"&&e!==null?e:void 0}function ci(e){return typeof e=="number"&&Number.isFinite(e)?e:void 0}function ot(e){if(e instanceof Et)return e;const t=tb(e);if(t){const{response:r}=t;if(r&&typeof r=="object"){const a=typeof r.status=="number"?r.status:0,n=r.data&&typeof r.data=="object"?r.data:void 0,o=n==null?void 0:n.code,i=typeof o=="string"&&eb(o)?o:"unknown";return new Et(a,i,ci(n==null?void 0:n.retry_after),ci(n==null?void 0:n.attempts_remaining),i==="recovery_cooldown"&&typeof(n==null?void 0:n.until)=="string"?n.until:void 0)}if(t.isAxiosError===!0||t.request!==void 0)return new Et(0,"network")}return e instanceof TypeError&&/failed to fetch/i.test(e.message)?new Et(0,"network"):new Et(0,"unknown")}const nb=/^[A-Za-z0-9_-]{1,512}$/,rb=/^rc1\.[A-Za-z0-9_-]+$/,Dl=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}};function ab(e,t){const r=()=>{var n;return((n=t==null?void 0:t.locale)==null?void 0:n.call(t))??"en-US"};function a(n){const o=Dl();return o?{...n,time_zone:o}:n}return{async login(n,o){try{const{data:i}=await e.post("/v1/auth/login",a({email:n,locale:r(),...o!=null&&o.deferCode?{defer_code:!0}:{}}));return i}catch(i){throw ot(i)}},async sendCode(n){try{const{data:o}=await e.post("/v1/auth/code",a({flow_id:n}));return o}catch(o){throw ot(o)}},async startRecovery(n){try{const{data:o}=await e.post("/v1/auth/recovery",a({flow_id:n}));return o}catch(o){throw ot(o)}},async cancelRecovery(n){if(!rb.test(n))throw new Et(0,"invalid_request");try{await e.post("/v1/auth/recovery/cancel",{token:n})}catch(o){throw ot(o)}},async passkeyOptions(){try{const{data:n}=await e.post("/v1/auth/passkey/options",{});return n}catch(n){throw ot(n)}},async verifyCode(n,o){try{const{data:i}=await e.post("/v1/auth/verify",{flow_id:n,code:o});return i}catch(i){throw ot(i)}},async verifyPasskey(n,o){try{const{data:i}=await e.post("/v1/auth/verify",{flow_id:n,credential:o});return i}catch(i){throw ot(i)}},async listPasskeys(){try{const{data:n}=await e.get("/v1/users/me/passkeys");return n.passkeys??[]}catch(n){throw ot(n)}},async startRegistration(){try{const{data:n}=await e.post("/v1/users/me/passkeys/registration/start",{});return n}catch(n){throw ot(n)}},async completeRegistration(n,o){try{const{data:i}=await e.post("/v1/users/me/passkeys/registration/complete",a({flow_id:n,credential:o}));return i.passkey}catch(i){throw ot(i)}},async logout(){try{await e.post("/v1/auth/logout",{})}catch(n){ot(n)}},async deletePasskey(n){if(!nb.test(n))throw new Et(0,"invalid_request");try{await e.delete(`/v1/users/me/passkeys/${encodeURIComponent(n)}`)}catch(o){throw ot(o)}}}}const Ze={passkeyNotRecognized:"That passkey isn't recognized. We've sent you a code instead.",tooManyAttempts:"Too many attempts. Start again.",flowExpired:"That took too long. Start again.",codeSent:"Code sent",signedIn:"Signed in",generic:"Something went wrong. Try again.",accountMismatch:"That's a different account. Sign in with the account you're using.",passkeyExists:"This passkey is already on your account.",enrollExpired:"That took too long. Try again.",invalidEmail:"Enter a valid email address.",passkeyUnavailable:"This browser couldn't use a passkey. Choose 'I can't use my passkey' to sign in with a code.",discoverableNotRecognized:"That passkey isn't recognized. Continue with your email instead.",recoveryStarted:"Sign in without your passkey",topLevelRequired:"Your browser needs a separate window to use your passkey.",continueTopLevel:"Continue in a new window",framedPasskeyFailed:"Your passkey didn't work here. Try again, or continue in a new window.",recoveryBlocked:"We can't recover this account right now"};function Wl(e){return e===void 0?"Incorrect code.":`Incorrect code. ${e} ${e===1?"attempt":"attempts"} left.`}function Ka(e){const t=e!==void 0&&Number.isFinite(e)?Math.max(1,Math.ceil(e/60)):1;return`Too many requests. Try again in ${t} ${t===1?"minute":"minutes"}.`}const Qa="movmo_pk_prompt",ob=864e5,ib=14,sb=3,lb=99,ub=3456e4,qa=e=>Math.floor(e/ob),cb=/^\d{1,3}(\.\d{1,3}){3}$/;function Ll(e){if(!e||e.includes(":")||cb.test(e))return;const t=e.split(".");if(!(t.length<2))return"."+t.slice(-2).join(".")}function db(e,t){const r=[];for(const a of e.split(";")){const n=a.indexOf("=");n!==-1&&a.slice(0,n).trim()===t&&r.push(a.slice(n+1))}return r}function fb(e){if(typeof e!="object"||e===null)return!1;const{v:t,d:r,n:a,x:n}=e;return t===1&&typeof r=="number"&&Number.isInteger(r)&&r>=0&&typeof a=="number"&&Number.isInteger(a)&&a>=0&&(n===0||n===1)}function Yn(e=document.cookie,t=Date.now()){const r=db(e,Qa);if(r.length!==1)return null;let a;try{a=JSON.parse(decodeURIComponent(r[0]))}catch{return null}return!fb(a)||a.d>qa(t)?null:a}function Xl(e=Date.now(),t=Yn(document.cookie,e)){return t?t.x===1?!1:t.d===0?!0:qa(e)-t.d>=ib&&t.n>=sb:!0}function eo(e){try{const t=Ll(window.location.hostname),r={...e,n:Math.min(e.n,lb)};document.cookie=`${Qa}=${encodeURIComponent(JSON.stringify(r))}; Path=/; Max-Age=${ub}; SameSite=Lax; Secure${t?"; Domain="+t:""}`}catch{}}function Hl(){const e=Yn();!e||e.d<=0||e.x!==0||eo({v:1,d:e.d,n:e.n+1,x:e.x})}function Zl(e=Date.now()){eo({v:1,d:qa(e),n:0,x:0})}function zl(e){const t=Yn();eo({v:1,d:(t==null?void 0:t.d)??0,n:(t==null?void 0:t.n)??0,x:e?1:0})}function Yl(){var e;return((e=Yn())==null?void 0:e.x)===1}function Dr(e){switch(e instanceof DOMException||typeof e=="object"&&e!==null&&"name"in e?e.name:void 0){case"NotAllowedError":return"cancelled";case"AbortError":return"aborted";case"InvalidStateError":return"exists";case"NotSupportedError":return"unsupported";case"SecurityError":return"security";default:return"unknown"}}function to(){if(!(typeof window>"u"||!window.PublicKeyCredential))return window.PublicKeyCredential}async function no(){const e=to();if(!e)return{webauthn:!1,conditional:!1,platform:!1};let t=!1;try{typeof e.isConditionalMediationAvailable=="function"&&(t=await e.isConditionalMediationAvailable())}catch{t=!1}let r=!1;try{typeof e.isUserVerifyingPlatformAuthenticatorAvailable=="function"&&(r=await e.isUserVerifyingPlatformAuthenticatorAvailable())}catch{r=!1}return{webauthn:!0,conditional:t,platform:r}}class ro{constructor(){go(this,"current",null)}begin(){return this.abortCurrent(),this.current=new AbortController,this.current.signal}abort(){this.abortCurrent()}abortCurrent(){this.current&&!this.current.signal.aborted&&this.current.abort(new DOMException("Superseded by a new ceremony","AbortError"))}}function pb(e){return ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}function yn(e){const t=pb(e);let r="";for(let a=0;a<t.length;a++)r+=String.fromCharCode(t[a]);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function wr(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),r=(4-t.length%4)%4;if(r===3)throw new Error("Invalid base64url string");const a=t+"=".repeat(r),n=atob(a),o=new Uint8Array(n.length);for(let i=0;i<n.length;i++)o[i]=n.charCodeAt(i);return o.buffer}function Jl(e){if(Array.isArray(e))return e.map(t=>({...t,id:typeof t.id=="string"?wr(t.id):t.id}))}function gb(e){const t={...e};typeof e.challenge=="string"&&(t.challenge=wr(e.challenge));const r=Jl(e.allowCredentials);return r&&(t.allowCredentials=r),t}function mb(e){const t={...e};if(typeof e.challenge=="string"&&(t.challenge=wr(e.challenge)),e.user&&typeof e.user=="object"){const a=e.user;t.user={...a,id:typeof a.id=="string"?wr(a.id):a.id}}const r=Jl(e.excludeCredentials);return r&&(t.excludeCredentials=r),t}function bb(e){const t=to();return t&&typeof t.parseRequestOptionsFromJSON=="function"?t.parseRequestOptionsFromJSON(e.publicKey):gb(e.publicKey)}function hb(e){const t=to();return t&&typeof t.parseCreationOptionsFromJSON=="function"?t.parseCreationOptionsFromJSON(e.publicKey):mb(e.publicKey)}function vb(e){const t={clientDataJSON:yn(e.clientDataJSON)},r=e;r.authenticatorData&&(t.authenticatorData=yn(r.authenticatorData),t.signature=r.signature?yn(r.signature):void 0,t.userHandle=r.userHandle?yn(r.userHandle):void 0);const a=e;return a.attestationObject&&(t.attestationObject=yn(a.attestationObject),typeof a.getTransports=="function"&&(t.transports=a.getTransports())),t}function yb(e){return{id:e.id,rawId:yn(e.rawId),type:e.type,authenticatorAttachment:e.authenticatorAttachment??void 0,clientExtensionResults:e.getClientExtensionResults(),response:vb(e.response)}}function Ul(e){const t=e;if(typeof t.toJSON=="function")try{return t.toJSON()}catch{}return yb(e)}async function Ca(e,t){const a={publicKey:bb(e),signal:t.signal};t.conditional&&(a.mediation="conditional");const n=await navigator.credentials.get(a);if(!n)throw new DOMException("No credential returned","NotAllowedError");return Ul(n)}async function $l(e,t){let r=e.publicKey;if(t.securityKey){const o=r.authenticatorSelection??{};r={...r,hints:["security-key"],authenticatorSelection:{...o,authenticatorAttachment:"cross-platform"}}}const a=hb({publicKey:r}),n=await navigator.credentials.create({publicKey:a,signal:t.signal});if(!n)throw new DOMException("No credential returned","NotAllowedError");return Ul(n)}function di(e){if(e.aborted)throw new DOMException("Registration aborted","AbortError")}async function ao(e,t){const r=await e.startRegistration();di(t.signal);const a=await $l(r.options,{signal:t.signal,securityKey:t.securityKey});return di(t.signal),e.completeRegistration(r.flow_id,a)}function ea(e){switch(e.code){case"invalid_code":return{code:e.code,message:Wl(e.attemptsRemaining)};case"too_many_attempts":return{code:e.code,message:Ze.tooManyAttempts};case"rate_limited":return{code:e.code,message:Ka(e.retryAfter)};case"flow_expired":case"topOrigin_required":return{code:e.code,message:Ze.flowExpired};case"invalid_email":return{code:e.code,message:Ze.invalidEmail};default:return{code:e.code,message:Ze.generic}}}function Cb(e){return e==="flow_expired"||e==="topOrigin_required"||e==="too_many_attempts"}function xb(e,t=!1){if(t)return{code:e,message:Ze.framedPasskeyFailed};const r=e==="security"||e==="unsupported"?Ze.passkeyUnavailable:Ze.generic;return{code:e,message:r}}function Ib(e){if(e instanceof Et)switch(e.code){case"credential_exists":return{code:e.code,message:Ze.passkeyExists};case"flow_expired":return{code:e.code,message:Ze.enrollExpired};case"rate_limited":return{code:e.code,message:Ka(e.retryAfter)};default:return{code:e.code,message:Ze.generic}}const t=Dr(e);return t==="cancelled"||t==="aborted"?null:t==="exists"?{code:t,message:Ze.passkeyExists}:{code:t,message:Ze.generic}}async function Sb(e){return e.method!=="otp"||e.loginNext!=="code"||e.surface!=="top-level"||e.offerEnrollment===!1||!await e.platformAuthenticator()?!1:Xl()}const Kl=27e4,ur=6,Ql="movmo_pk_toplevel",Ab=()=>{try{return window.sessionStorage.getItem(Ql)==="1"}catch{return!1}},wb=()=>{try{window.sessionStorage.setItem(Ql,"1")}catch{}};function ql(e){const t=E.useRef(e);t.current=e;const[r]=E.useState($a),a=e.surface==="top-level"&&!r,n=a?"top-level":"embedded",o=r&&!!e.framedPasskeys,i=a||o,l=e.lockedEmail!==void 0||e.expectedUserId!==void 0,[s]=E.useState(()=>{var G,F;return((G=e.resumeLogin)==null?void 0:G.next)==="code"?"code":((F=e.resumeLogin)==null?void 0:F.next)==="passkey"&&i?"passkey":"email"}),[c,d]=E.useState(s),[g,y]=E.useState(e.lockedEmail??e.initialEmail??""),[x,m]=E.useState(!1),[h,p]=E.useState(null),[C,R]=E.useState(ur),[N,A]=E.useState(0),[I,M]=E.useState(void 0),[_,B]=E.useState(!1),[se,te]=E.useState(!1),[fe,$]=E.useState(!1),[ce,T]=E.useState(!1),[j,k]=E.useState(""),[J]=E.useState(()=>new ro),pe=E.useRef(!1),ue=E.useRef(s),D=E.useRef(!1),L=E.useRef(!1),Y=E.useRef(!1),ie=()=>Y.current||Ab(),X=E.useRef(g),b=E.useRef(0);b.current=N;const de=E.useRef(0),Z=E.useRef(null),K=E.useRef(null),me=E.useRef(null),we=E.useRef(0),Ge=E.useRef(null),z=E.useRef(null),Fe=E.useRef(!1),Pe=E.useRef(null),P=E.useRef(!1),W=E.useRef(!1),re=E.useRef(!1),Ce=()=>z.current??(z.current=no()),ae=G=>{ue.current=G,d(G),G!=="code"&&A(0),G!=="passkey"&&(te(!1),D.current=!1,T(!1)),G!=="recovery"&&$(!1)},ve=G=>{p(G),G&&k("")},Se=()=>{Y.current=!0,D.current=!0,T(!0),te(!1),p(null),k(Ze.topLevelRequired)},xe=G=>pe.current&&de.current===G,Q=G=>{const F=++de.current;return Z.current=G,m(!0),p(null),F},ee=G=>{de.current===G&&(Z.current=null,m(!1))},Ae=()=>{de.current++,Z.current=null,m(!1)},oe=()=>({surface:t.current.promptSurface??"modal"}),le=G=>{var F,f;return(f=(F=t.current).onEvent)==null?void 0:f.call(F,G,oe())},ke=()=>{Ge.current!==null&&(clearTimeout(Ge.current),Ge.current=null),we.current++},Qe=()=>{ke(),J.abort()},Ue=async()=>{if(!a||l)return;ke();const G=we.current,F=()=>pe.current&&we.current===G&&ue.current==="email"&&Z.current===null,{conditional:f}=await Ce();if(!F()||!f)return;const w=J.begin();Ge.current=setTimeout(()=>void Ue(),Kl);let O;try{O=await t.current.api.passkeyOptions()}catch{return}if(!F()||w.aborted)return;const V=O.flow_id;Ca(O.options,{signal:w,conditional:!0}).then(U=>{F()&&st(V,U)},()=>{})},st=async(G,F)=>{ke();const f=Q("request");let w;try{w=await t.current.api.verifyPasskey(G,F)}catch(O){if(!xe(f))return;const V=ot(O).code==="invalid_credential";nt(f,V?{code:"invalid_credential",message:Ze.discoverableNotRecognized}:null);return}xe(f)&&await yt(f,w,"passkey",null)},nt=(G,F)=>{ee(G),ve(F),ue.current==="passkey"&&te(!0),ue.current==="email"&&Ue()},pt=(G,F)=>{const f=ue.current==="email";ee(G),K.current=null,ae("email"),ve(F),f&&Ue()},$e=(G,F)=>{const f=ot(F);if(f.code==="recovery_required"){ee(G),ve(null),ae("recovery"),k(Ze.recoveryStarted);return}if(f.code==="recovery_blocked"){ee(G),ve(null),$(!0),k(Ze.recoveryBlocked);return}if(Cb(f.code)){pt(G,ea(f));return}if(f.code==="resend_too_soon"){ee(G),A(Math.max(0,Math.ceil(f.retryAfter??0)));return}f.code==="invalid_code"&&M(f.attemptsRemaining),nt(G,ea(f))},ut=async(G,F)=>{Z.current="request";try{const f=await F();return xe(G)?f:void 0}catch(f){xe(G)&&$e(G,f);return}},gt=(G,F)=>{me.current=G.flow_id,R(G.code_length||ur),M(void 0),ae("code"),A(Math.max(0,G.resend_after??0)),k(Ze.codeSent),F&&p(F)},Wt=async(G,F,f)=>{const w=await ut(G,()=>t.current.api.sendCode(F));w&&(ee(G),gt(w,f))},vt=()=>{Ae(),Qe(),K.current=null,ae("mismatch"),ve({code:"account_mismatch",message:Ze.accountMismatch});const{api:G}=t.current;(async()=>{var F,f;try{await G.logout()}catch{}(f=(F=t.current).onAccountMismatch)==null||f.call(F)})()},Ct=(G,F)=>{P.current||(P.current=!0,Pe.current=null,ae("done"),k(Ze.signedIn),t.current.onSignedIn(G,F))},yt=async(G,F,f,w)=>{var Ye,Be,je,ct;const O=t.current,V=O.expectedUserId;if(V!==void 0&&F.user_id!==V){vt();return}let U;try{U=await O.getCurrentUser()}catch{if(!xe(G))return;const et={code:"unknown",message:Ze.generic};ue.current==="passkey"?pt(G,et):nt(G,et);return}if(!xe(G))return;if(V!==void 0&&U.id!==V){vt();return}const ne=typeof F.recovery_until=="string"&&F.recovery_until!=="",he=ne?{method:"recovery",newUser:F.new_user,recoveryUntil:F.recovery_until}:{method:f,newUser:F.new_user};W.current||(W.current=!0,(Be=(Ye=t.current).onVerified)==null||Be.call(Ye,U,he)),he.method==="otp"&&a&&Hl(),ne&&((ct=(je=t.current).onEvent)==null||ct.call(je,"sign_in",{...oe(),method:"recovery"}));const Xe=await Sb({method:he.method,loginNext:w,surface:n,offerEnrollment:O.offerEnrollment,platformAuthenticator:async()=>(await Ce()).platform});xe(G)&&(ee(G),Xe?(Pe.current={user:U,info:he},ae("enroll"),le("passkey_prompt_shown")):Ct(U,he))},Lt=async(G,F,f,w)=>{if(!a&&!o){ee(G);return}Z.current="ceremony";let O;try{O=await Ca(F.options,{signal:f})}catch(U){if(!xe(G))return;const ne=Dr(U);nt(G,ne==="cancelled"||ne==="aborted"?null:xb(ne,o));return}if(!xe(G))return;Z.current="request";let V;try{V=await t.current.api.verifyPasskey(F.flow_id,O)}catch(U){if(!xe(G))return;const ne=ot(U);if(ne.code==="topOrigin_required"&&o&&w)wb(),ee(G),Se();else if(ne.code==="invalid_credential"&&w){const he={code:"invalid_credential",message:Ze.passkeyNotRecognized};await Wt(G,F.flow_id,he)}else ne.code==="invalid_credential"?nt(G,{code:"invalid_credential",message:Ze.discoverableNotRecognized}):w?pt(G,ea(ne)):$e(G,U);return}xe(G)&&await yt(G,V,"passkey",w?"passkey":null)},Pt=(G,F)=>(te(!1),Lt(G,F,J.begin(),!0)),nn=G=>{t.current.lockedEmail===void 0&&(X.current=G,y(G))},Tt=async()=>{if(Z.current||ue.current!=="email")return;Qe();const G=(t.current.lockedEmail??X.current).trim();if(!G){ve({code:"invalid_email",message:Ze.invalidEmail}),Ue();return}X.current=G,y(G);const F=Q("request"),f=await ut(F,()=>t.current.api.login(G));f&&await mt(F,f)},xt=async(G,F)=>{me.current=F.flow_id,R(F.code_length||ur);try{const f=await t.current.api.sendCode(F.flow_id);if(!xe(G))return;ee(G),gt(f)}catch(f){if(!xe(G))return;const w=ot(f);if(w.code==="resend_too_soon"){ee(G),M(void 0),ae("code"),A(Math.max(0,Math.ceil(w.retryAfter??0)));return}$e(G,f)}},mt=async(G,F,f=!1)=>{if(K.current=F,F.next==="code"){if(f){await xt(G,F);return}ee(G),gt(F)}else if(!i)await Wt(G,F.flow_id);else{if(R(F.code_length||ur),ae("passkey"),o&&ie()){ee(G),Se();return}await Pt(G,F)}},rn=async()=>{if(!a||l||!Fe.current||Z.current||ue.current!=="email")return;Qe();const G=Q("ceremony"),F=J.begin(),f=await ut(G,()=>t.current.api.passkeyOptions());f&&await Lt(G,f,F,!1)},Ot=()=>{const G=K.current;if(!(!i||ue.current!=="passkey"||Z.current||D.current||(G==null?void 0:G.next)!=="passkey")){if(o&&ie()){Se();return}Pt(Q("ceremony"),G)}},dn=()=>{var G,F;ue.current!=="passkey"||!o||Z.current==="request"||((F=(G=t.current).onContinueTopLevel)==null||F.call(G,X.current),Ae(),J.abort())},fn=()=>{l||ue.current!=="passkey"||Z.current==="request"||!K.current||(Ae(),J.abort(),p(null),ae("recovery"),k(Ze.recoveryStarted))},pn=async()=>{var w;const G=(w=K.current)==null?void 0:w.flow_id;if(ue.current!=="recovery"||Z.current||!G||l)return;const F=Q("request"),f=await ut(F,()=>t.current.api.startRecovery(G));f&&(ee(F),le("recovery_started"),gt(f))},jt=()=>{var G;ue.current!=="recovery"||Z.current||fe||(p(null),i&&((G=K.current)==null?void 0:G.next)==="passkey"?(ae("passkey"),o&&ie()&&Se()):(K.current=null,ae("email")))},It=()=>!!(t.current.resumeLogin&&t.current.onChangeEmail),an=()=>{var G,F;if(!(ue.current!=="passkey"&&ue.current!=="code")){if(Ae(),J.abort(),It()){(F=(G=t.current).onChangeEmail)==null||F.call(G);return}K.current=null,p(null),ae("email")}},gn=async G=>{var O;const F=me.current;if(ue.current!=="code"||Z.current||!F)return;const f=Q("request"),w=await ut(f,()=>t.current.api.verifyCode(F,G));w&&await yt(f,w,"otp",((O=K.current)==null?void 0:O.next)??null)},mn=async()=>{const G=me.current;if(ue.current!=="code"||Z.current||b.current>0||!G)return;k("");const F=Q("request"),f=await ut(F,()=>t.current.api.sendCode(G));f&&(ee(F),gt(f))},v=async()=>{if(!a||ue.current!=="enroll"||Z.current)return;const G=Q("ceremony"),F=J.begin();try{await ao(t.current.api,{signal:F})}catch(f){xe(G)&&nt(G,Ib(f));return}xe(G)&&(ee(G),ae("enrolled"),le("passkey_prompt_accepted"))},H=()=>{const G=Pe.current;G&&Ct(G.user,G.info)},q=()=>{ue.current==="enroll"&&(Ae(),J.abort(),p(null),Zl(),le("passkey_prompt_declined"),H())},be=()=>{ue.current==="enrolled"&&H()},Te=()=>{ue.current==="enroll"?q():ue.current==="enrolled"?be():(Ae(),Qe())};E.useEffect(()=>(pe.current=!0,()=>{pe.current=!1,Qe()}),[]),E.useEffect(()=>{if(!a||l)return;let G=!1;return Ce().then(F=>{Fe.current=F.webauthn,G||B(F.webauthn)}),()=>{G=!0}},[a,l]);const Me=()=>!!t.current.resumeLogin&&!L.current,Ee=()=>{var w;const{autoContinue:G,lockedEmail:F,initialEmail:f}=t.current;return!!(G&&((w=F??f)!=null&&w.trim())&&!re.current)};E.useEffect(()=>{if(!(c!=="email"||Z.current||Ee()||Me()))return Ue(),ke},[c]),E.useEffect(()=>{const G=t.current.resumeLogin;if(!G||L.current)return;L.current=!0;const F=Q("request");queueMicrotask(()=>{xe(F)&&mt(F,G,!0)})},[]),E.useEffect(()=>{Ee()&&(re.current=!0,Tt())},[]);const Re=c==="code"&&N>0;return E.useEffect(()=>{if(!Re)return;const G=setInterval(()=>A(F=>Math.max(0,F-1)),1e3);return()=>clearInterval(G)},[Re]),{step:c,email:g,setEmail:nn,busy:x,error:(h==null?void 0:h.message)??null,errorCode:(h==null?void 0:h.code)??null,codeLength:C,resendIn:N,attemptsRemaining:I,canUsePasskeyButton:_,passkeyFailed:se,recoveryAvailable:!l,recoveryBlocked:fe,topLevelRequired:ce,framedPasskeys:o,liveMessage:j,submitEmail:()=>void Tt(),signInWithPasskey:()=>void rn(),retryPasskey:Ot,continueTopLevel:dn,cantUsePasskey:fn,sendRecoveryCode:()=>void pn(),back:jt,changeEmail:an,submitCode:G=>void gn(G),resendCode:()=>void mn(),acceptEnrollment:()=>void v(),declineEnrollment:q,finish:be,close:Te}}const Jt={prompt:{heading:"Skip the code next time",body:"Set up a passkey and sign in with Face ID, your fingerprint or your screen lock.",accept:"Set up passkey",decline:"Not now",footnote:"You can manage passkeys anytime in Security."},added:{heading:"Passkey added",body:"Next time, sign in with Face ID, your fingerprint or your screen lock. We've emailed you a confirmation.",done:"Done"}},xa=({status:e="prompt",onAccept:t,onDecline:r,onDone:a,busy:n=!1,error:o=null})=>e==="added"?u.jsxs("div",{className:"flex flex-col items-center text-center gap-4",children:[u.jsx("div",{className:"flex items-center justify-center w-12 h-12 rounded-full bg-success-50",children:u.jsx(Ja,{size:24,className:"text-success-600"})}),u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsx("h2",{tabIndex:-1,className:"text-lg font-semibold text-grayWarm-950 focus:outline-none",children:Jt.added.heading}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:Jt.added.body})]}),u.jsx("button",{type:"button",onClick:a,className:"w-full py-3 px-4 bg-gradient-to-r from-brand-500 to-brand-600 text-white font-semibold rounded-xl transition-opacity hover:opacity-90",children:Jt.added.done})]}):u.jsxs("div",{className:"flex flex-col items-center text-center gap-4",children:[u.jsx("div",{className:"flex items-center justify-center w-12 h-12 rounded-full bg-brand-50",children:u.jsx(Pl,{size:24,className:"text-brand-600"})}),u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsx("h2",{tabIndex:-1,className:"text-lg font-semibold text-grayWarm-950 focus:outline-none",children:Jt.prompt.heading}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:Jt.prompt.body})]}),o&&u.jsxs("div",{role:"alert",className:"w-full flex items-start gap-2 rounded-lg bg-warning-50 border border-warning-200 p-3 text-left",children:[u.jsx(Nn,{size:20,className:"text-warning-700 flex-shrink-0 mt-0.5"}),u.jsx("p",{className:"text-sm text-warning-700",children:o})]}),u.jsxs("div",{className:"w-full flex flex-col gap-2",children:[u.jsx("button",{type:"button",onClick:t,disabled:n,"aria-busy":n,className:"w-full py-3 px-4 bg-gradient-to-r from-brand-500 to-brand-600 text-white font-semibold rounded-xl transition-opacity hover:opacity-90 disabled:opacity-70 disabled:cursor-not-allowed",children:Jt.prompt.accept}),u.jsx("button",{type:"button",onClick:r,className:"w-full py-3 px-4 bg-white border border-grayWarm-300 text-grayWarm-700 font-semibold rounded-xl transition-colors hover:bg-grayWarm-50",children:Jt.prompt.decline})]}),u.jsx("p",{className:"text-xs text-grayWarm-500",children:Jt.prompt.footnote})]}),oo="focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500 focus-visible:ring-offset-2",An=S.forwardRef(({className:e,type:t="button",...r},a)=>u.jsx("button",{ref:a,type:t,className:Oe("w-full h-11 px-4 inline-flex items-center justify-center gap-2 rounded-xl bg-gradient-to-r from-brand-500 to-brand-600 text-white font-semibold shadow-sm transition-opacity hover:opacity-95 disabled:opacity-60 disabled:cursor-not-allowed",oo,e),...r})),tn=S.forwardRef(({className:e,type:t="button",...r},a)=>u.jsx("button",{ref:a,type:t,className:Oe("w-full h-11 px-4 inline-flex items-center justify-center gap-2 rounded-xl bg-white border border-grayWarm-300 text-grayWarm-700 font-semibold shadow-sm transition-colors hover:bg-grayWarm-50 disabled:opacity-60 disabled:cursor-not-allowed",oo,e),...r})),Er=S.forwardRef(({className:e,type:t="button",...r},a)=>u.jsx("button",{ref:a,type:t,className:Oe("text-sm font-semibold text-brand-600 hover:text-brand-700 rounded disabled:opacity-60 disabled:cursor-not-allowed",oo,e),...r}));An.displayName="PrimaryButton";tn.displayName="SecondaryButton";Er.displayName="LinkButton";const ze={email:{title:"Sign in to Movmo",description:"Enter your email. New here? We'll create your account.",label:"Email",continue:"Continue",divider:"or",passkey:"Sign in with passkey"},passkey:{title:"Sign in with your passkey",description:"Use Face ID, your fingerprint or your screen lock.",change:"Change",changeLabel:"Change email",continue:"Continue",failed:"Your passkey didn't finish. Try again, or choose 'I can't use my passkey'.",tryAgain:"Try again",cantUse:"I can't use my passkey",reauthDescription:"Use your passkey to continue. Lost it? Recover your account from the sign-in page."},recovery:{title:"Sign in without your passkey",description:e=>`We'll email a code to ${e}. Signing in this way starts account recovery: everyone on your account is notified, and for 24 hours this session can't add passkeys, change contact details, add payment methods or connect airlines.`,send:"Send me a code",back:"Back",blockedTitle:"We can't recover this account right now",blockedDescription:"Too many recovery attempts, or recovery was recently cancelled from this account. Try again later or sign in with a passkey on another device.",close:"Close"},code:{title:"Check your email",description:e=>`Enter the code we sent to ${e}.`},cancel:"Cancel"},io=({flow:e,lockedEmail:t,title:r,description:a,onCancel:n,onClose:o,icon:i})=>{const l=n?()=>{e.close(),n()}:void 0;let s=null;switch(e.step){case"email":s=u.jsx(Eb,{flow:e,locked:t!==void 0,title:r,description:a,onCancel:l,icon:i});break;case"passkey":s=u.jsx(Rb,{flow:e,locked:t!==void 0,title:r,description:a,onCancel:l,icon:i});break;case"recovery":s=u.jsx(Gb,{flow:e,onCancel:l??o});break;case"code":s=u.jsx(Tb,{flow:e,title:r,onCancel:l});break;case"enroll":s=u.jsx(fi,{children:u.jsx(xa,{status:"prompt",onAccept:e.acceptEnrollment,onDecline:e.declineEnrollment,busy:e.busy,error:e.error})});break;case"enrolled":s=u.jsx(fi,{children:u.jsx(xa,{status:"added",onAccept:e.acceptEnrollment,onDecline:e.declineEnrollment,onDone:e.finish})});break;case"mismatch":s=u.jsx(Pb,{flow:e,title:r,onCancel:l,icon:i});break}return u.jsxs("div",{className:"text-left",children:[u.jsx("div",{"aria-live":"polite",className:"sr-only",children:e.error??e.liveMessage}),u.jsx("div",{"data-step":e.step,className:"motion-safe:animate-in motion-safe:fade-in-0 motion-safe:slide-in-from-bottom-1 motion-safe:duration-200",children:s},e.step)]})},fi=({children:e})=>{const t=E.useRef(null);return E.useEffect(()=>{var r;wt((r=t.current)==null?void 0:r.querySelector("h2"))},[]),u.jsx("div",{ref:t,children:e})},wn=({icon:e,title:t,description:r,headingRef:a})=>u.jsxs("div",{className:"flex flex-col gap-5 mb-5",children:[u.jsx("div",{className:"flex items-center justify-center w-12 h-12 rounded-[10px] border border-grayWarm-200 shadow-sm text-grayWarm-700",children:u.jsx(e,{size:24})}),u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsx("h2",{ref:a,tabIndex:a?-1:void 0,className:"text-lg font-semibold text-grayWarm-950 focus:outline-none",children:t}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:r})]})]}),so=({children:e})=>u.jsxs("div",{className:"flex items-start gap-3 rounded-xl border border-warning-200 bg-warning-50 p-4",children:[u.jsx(Nn,{size:20,className:"flex-shrink-0 text-warning-700"}),u.jsx("p",{className:"text-sm text-warning-700",children:e})]}),eu=({primary:e,onCancel:t})=>t?u.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[u.jsx(tn,{onClick:t,children:ze.cancel}),e]}):u.jsx(u.Fragment,{children:e}),Eb=({flow:e,locked:t,title:r,description:a,onCancel:n,icon:o})=>{const i=E.useRef(null),l=E.useRef(null),s=E.useId(),c=E.useId();return E.useEffect(()=>{wt(t?l.current:i.current)},[t]),u.jsxs(u.Fragment,{children:[u.jsx(wn,{icon:o??Fl,title:r??ze.email.title,description:a??ze.email.description}),u.jsxs("form",{noValidate:!0,onSubmit:d=>{d.preventDefault(),e.submitEmail()},className:"flex flex-col gap-5",children:[u.jsxs("div",{className:"flex flex-col gap-1.5",children:[u.jsx("label",{htmlFor:s,className:"text-sm font-medium text-grayWarm-700",children:ze.email.label}),u.jsxs("div",{className:"relative",children:[u.jsx(Br,{size:20,className:"pointer-events-none absolute left-3.5 top-1/2 -translate-y-1/2 text-grayWarm-500"}),u.jsx(Ft,{ref:i,id:s,type:"email",name:"email",autoComplete:"username webauthn",value:e.email,onChange:d=>e.setEmail(d.target.value),disabled:t,"aria-invalid":e.error?!0:void 0,"aria-describedby":e.error?c:void 0,className:`h-11 pl-10 ${e.error?"border-error-500 focus:border-error-500":""} autofill:bg-white autofill:shadow-[inset_0_0_0px_1000px_white]`})]}),e.error&&u.jsx("p",{id:c,className:"text-sm text-error-500",children:e.error})]}),u.jsx(eu,{onCancel:n,primary:u.jsx(An,{ref:l,type:"submit",disabled:e.busy,"aria-busy":e.busy,children:ze.email.continue})})]}),e.canUsePasskeyButton&&u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"flex items-center gap-2 my-5","aria-hidden":"true",children:[u.jsx("div",{className:"h-px flex-1 bg-grayWarm-200"}),u.jsx("span",{className:"text-sm text-grayWarm-500",children:ze.email.divider}),u.jsx("div",{className:"h-px flex-1 bg-grayWarm-200"})]}),u.jsxs(tn,{onClick:e.signInWithPasskey,disabled:e.busy,children:[u.jsx(za,{size:20}),ze.email.passkey]})]})]})},Rb=({flow:e,locked:t,title:r,description:a,onCancel:n,icon:o})=>{const i=E.useRef(null);E.useEffect(()=>{wt(i.current)},[]);const l=e.error??(e.topLevelRequired?Ze.topLevelRequired:null)??(e.passkeyFailed?e.framedPasskeys?Ze.framedPasskeyFailed:ze.passkey.failed:null);return u.jsxs(u.Fragment,{children:[u.jsx(wn,{icon:o??Gl,title:r??ze.passkey.title,description:e.recoveryAvailable?a??ze.passkey.description:ze.passkey.reauthDescription,headingRef:i}),u.jsxs("div",{className:"flex flex-col gap-5",children:[l?u.jsx(so,{children:l}):u.jsxs("div",{className:"flex items-center justify-between gap-3 h-11 rounded-lg border border-grayWarm-300 bg-grayWarm-50 px-3.5 shadow-sm",children:[u.jsx("span",{className:"truncate text-base text-grayWarm-700",children:e.email}),!t&&u.jsx(Er,{onClick:e.changeEmail,"aria-label":ze.passkey.changeLabel,children:ze.passkey.change})]}),u.jsx(eu,{onCancel:n,primary:e.topLevelRequired?u.jsx(An,{onClick:e.continueTopLevel,children:Ze.continueTopLevel}):u.jsx(An,{onClick:e.retryPasskey,disabled:e.busy,"aria-busy":e.busy,children:e.passkeyFailed?ze.passkey.tryAgain:ze.passkey.continue})}),e.framedPasskeys&&!e.topLevelRequired&&u.jsx(tn,{onClick:e.continueTopLevel,disabled:e.busy,children:Ze.continueTopLevel}),e.recoveryAvailable&&u.jsx(Er,{onClick:e.cantUsePasskey,className:"self-center",children:ze.passkey.cantUse})]})]})},Nb=e=>{const t=e.lastIndexOf("@");return t<1?e:`${e.slice(0,1)}•••${e.slice(t)}`},Gb=({flow:e,onCancel:t})=>{const r=E.useRef(null);return E.useEffect(()=>{wt(r.current)},[e.recoveryBlocked]),e.recoveryBlocked?u.jsxs(u.Fragment,{children:[u.jsx(wn,{icon:Nn,title:ze.recovery.blockedTitle,description:ze.recovery.blockedDescription,headingRef:r}),u.jsx(An,{onClick:t??e.close,children:ze.recovery.close})]}):u.jsxs(u.Fragment,{children:[u.jsx(wn,{icon:Br,title:ze.recovery.title,description:ze.recovery.description(Nb(e.email)),headingRef:r}),u.jsxs("div",{className:"flex flex-col gap-5",children:[e.error&&u.jsx(so,{children:e.error}),u.jsx(An,{onClick:e.sendRecoveryCode,disabled:e.busy,"aria-busy":e.busy,children:ze.recovery.send}),u.jsx(Er,{onClick:e.back,disabled:e.busy,className:"self-center",children:ze.recovery.back})]})]})},Pb=({flow:e,title:t,onCancel:r,icon:a})=>u.jsxs(u.Fragment,{children:[u.jsx(wn,{icon:a??Nn,title:t??ze.email.title,description:e.error??""}),r&&u.jsx(tn,{onClick:r,children:ze.cancel})]}),Tb=({flow:e,title:t,onCancel:r})=>u.jsxs(u.Fragment,{children:[u.jsx(wn,{icon:Br,title:t??ze.code.title,description:ze.code.description(e.email)}),u.jsxs("div",{className:"flex flex-col gap-5",children:[u.jsxs("div",{className:"flex flex-col gap-1.5",children:[u.jsx(Ua,{length:e.codeLength,onComplete:e.submitCode,autoFocus:!0}),e.error&&e.errorCode!=="invalid_credential"&&u.jsx("p",{className:"text-error-500 text-center text-sm",children:e.error})]}),e.error&&e.errorCode==="invalid_credential"&&u.jsx(so,{children:e.error}),u.jsx(_l,{secondsLeft:e.resendIn,onResend:e.resendCode,disabled:e.busy}),r&&u.jsx(tn,{onClick:r,children:ze.cancel})]})]});function lo(e){const t=ql(e),r=E.useRef(t);return r.current=t,E.useEffect(()=>()=>{const{step:a,close:n}=r.current;(a==="enroll"||a==="enrolled")&&n()},[]),t}const Ob=({title:e,description:t,onCancel:r,...a})=>{const n=lo(a);return u.jsx(io,{flow:n,lockedEmail:a.lockedEmail,title:e,description:t,onCancel:r})},jb=({isOpen:e,...t})=>e?u.jsx(Mb,{...t}):null,Mb=({onClose:e,hideCloseButton:t=!1,onLoginSuccess:r,...a})=>{const n=lo({...a,promptSurface:a.promptSurface??"modal",onSignedIn:r}),o=()=>{n.close(),e()};return u.jsx(cn,{isOpen:n.step!=="done",onClose:o,title:ze.email.title,header:"none",maxWidthPx:400,hideCloseButton:t,children:u.jsx(io,{flow:n,lockedEmail:a.lockedEmail,onClose:o})})},sn={title:"Confirm it's you",framed:"Manage passkeys on the Movmo Security page.",cancel:"Cancel",description:{add:"For your security, sign in again to add a passkey.",remove:"For your security, sign in again to remove this passkey."}},tu=({isOpen:e,...t})=>e?u.jsx(kb,{...t}):null,kb=e=>{const[t]=E.useState($a);return t?u.jsx(Fb,{onCancel:e.onCancel}):u.jsx(Bb,{...e})},Fb=({onCancel:e})=>u.jsx(cn,{isOpen:!0,onClose:e,title:sn.title,header:"none",maxWidthPx:400,children:u.jsxs("div",{className:"flex flex-col gap-5 text-left",children:[u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsx("h2",{className:"text-lg font-semibold text-grayWarm-950",children:sn.title}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:sn.framed})]}),u.jsx(tn,{onClick:e,children:sn.cancel})]})}),Bb=({action:e,account:t,api:r,getCurrentUser:a,onConfirmed:n,onCancel:o,onMismatch:i})=>{const l=lo({api:r,surface:"top-level",getCurrentUser:a,lockedEmail:t.email,expectedUserId:t.id,autoContinue:!0,offerEnrollment:!1,onSignedIn:()=>n(),onAccountMismatch:i}),s=()=>{l.close(),o()};return u.jsx(cn,{isOpen:l.step!=="done",onClose:s,title:sn.title,header:"none",maxWidthPx:400,children:u.jsx(io,{flow:l,lockedEmail:t.email,title:sn.title,description:sn.description[e],onCancel:o,icon:jl})})},Le={loading:"Loading passkeys",framed:"Manage passkeys on the Movmo Security page.",empty:"Passkeys let you sign in with Face ID, your fingerprint, your screen lock or a security key. No code to wait for.",addPasskey:"Passkey",addPasskeyLabel:"Add passkey",addSecurityKey:"Security key",addSecurityKeyLabel:"Add security key",suggestToggle:"Suggest a passkey after I sign in with a code",limit:"You've reached the limit of 10 passkeys. Remove one to add another.",unsupported:"This browser doesn't support passkeys. You can still remove them here.",added:"Passkey added. We've emailed you a confirmation.",exists:"This passkey is already on your account.",expired:"That took too long. Try again.",generic:"Something went wrong. Try again.",confirmedAdd:"You're confirmed. Select + Passkey again to finish.",confirmedAddKey:"You're confirmed. Select + Security key again to finish.",recoveryInProgress:e=>e?`Account recovery is in progress. You can change passkeys after ${e}.`:"Account recovery is in progress. You can change passkeys once it ends.",retry:"Retry",sessionRequired:"Sign in again to manage passkeys",signIn:"Sign in",kind:{synced:"Synced",device:"This device",security_key:"Security key"},securityKeyTitle:"Security key",addedOn:e=>`Added ${e}`,lastUsed:e=>`Last used ${e}`,neverUsed:"Never used",removeLabel:e=>`Remove ${e}`,remove:{title:e=>`Remove ${e}?`,body:"You won't be able to sign in with it anymore. You can still sign in with a code.",cancel:"Cancel",confirm:"Remove"}},Vb=10,_b=6e3,Db=new Set(["confirmedAdd","confirmedAddKey"]),Wb={synced:za,device:Ol,security_key:Tl},Lb=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}),Xb=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"}),Hb=e=>{const t=new Date(e);return Number.isNaN(t.getTime())?void 0:Xb.format(t)},pi=e=>{const t=new Date(e);return Number.isNaN(t.getTime())?e:Lb.format(t)};function nu(e){const t=e.kind??(e.synced?"synced":"device"),r=e.provider==="Passkey"&&t==="security_key"?Le.securityKeyTitle:e.provider,a=Le.kind[t]===r?null:Le.kind[t],n=`${Le.addedOn(pi(e.created_at))} · ${e.last_used_at?Le.lastUsed(pi(e.last_used_at)):Le.neverUsed}`;return{kind:t,title:r,badge:a,meta:n,Icon:Wb[t]}}const Zb=e=>{const t=E.useRef(e);t.current=e;const[r]=E.useState($a),[a,n]=E.useState("loading"),[o,i]=E.useState([]),[l,s]=E.useState(!1),[c,d]=E.useState(!1),[g,y]=E.useState(!1),[x,m]=E.useState(null),[h,p]=E.useState(0),[C,R]=E.useState(!1),[N,A]=E.useState(null),[I,M]=E.useState(null),[_,B]=E.useState(()=>!Yl()),[se,te]=E.useState(null),[fe]=E.useState(()=>new ro),$=E.useRef(!1),ce=E.useRef(!1),T=E.useRef(0),j=E.useId(),k=E.useCallback(async()=>{const Z=++T.current;n("loading");try{const[K,me]=await Promise.all([t.current.api.listPasskeys(),no()]);if(!ce.current||Z!==T.current)return;i(K),s(me.webauthn),n("ready")}catch(K){if(!ce.current||Z!==T.current)return;const me=K instanceof Et&&K.code==="movmo_session_required";n(me?"sessionRequired":"error")}},[]);E.useEffect(()=>(ce.current=!0,r||k(),()=>{ce.current=!1,fe.abort()}),[r,fe,k]),E.useEffect(()=>{if(h===0)return;R(!0);const Z=setTimeout(()=>R(!1),_b);return()=>clearTimeout(Z)},[h]);const J=Z=>{i(K=>K.filter(me=>me.id!==Z)),d(!1)},pe=(Z,K,me)=>{if(K instanceof Et){switch(K.code){case"recovery_cooldown":te(K.until??"");return;case"reauth_required":me?m("generic"):M(Z);return;case"movmo_session_required":m("sessionRequired"),t.current.onSessionRequired();return;case"credential_exists":m("exists");return;case"passkey_limit":d(!0);return;case"flow_expired":m("expired");return;case"not_found":if(Z.type==="remove"){J(Z.passkey.id);return}break}m("generic");return}switch(Dr(K)){case"cancelled":case"aborted":me&&Z.type==="add"&&m(Z.securityKey?"confirmedAddKey":"confirmedAdd");return;case"exists":m("exists");return;default:m("generic")}},ue=async(Z,K=!1)=>{if(!$.current){$.current=!0,y(!0),m(null);try{if(Z.type==="add"){const me=await ao(t.current.api,{securityKey:Z.securityKey,signal:fe.begin()});if(!ce.current)return;i(we=>[me,...we.filter(Ge=>Ge.id!==me.id)]),p(we=>we+1)}else{if(await t.current.api.deletePasskey(Z.passkey.id),!ce.current)return;J(Z.passkey.id)}}catch(me){ce.current&&pe(Z,me,K)}finally{$.current=!1,ce.current&&(y(!1),A(null))}}},D=()=>{const Z=I;M(null),Z&&ue(Z,!0)},L=()=>{M(null),t.current.onAccountMismatch()};if(r)return u.jsx(Ut,{tone:"neutral",children:Le.framed});if(a==="loading")return u.jsx(Yb,{});if(a==="error")return u.jsxs(Ut,{tone:"neutral",role:"alert",children:[u.jsx("span",{children:Le.generic}),u.jsx(ru,{onClick:()=>void k(),children:Le.retry})]});if(a==="sessionRequired")return u.jsx(mi,{onSignIn:()=>t.current.onSessionRequired()});const Y=se??e.recoveryUntil??null,ie=Y?new Date(Y).getTime():Number.NaN,X=Y!==null&&(Number.isNaN(ie)||ie>Date.now()),b=c||o.length>=Vb,de=o.length===0;return u.jsxs("div",{className:"flex flex-col gap-4",children:[de?u.jsx("p",{className:"text-sm text-grayWarm-600",children:Le.empty}):u.jsx("ul",{className:"flex flex-col divide-y divide-grayWarm-200 -my-3",children:o.map(Z=>u.jsx(zb,{passkey:Z,disabled:g||X,onRemove:()=>A(Z)},Z.id))}),X&&u.jsx(Ut,{tone:"neutral",role:"status",children:Le.recoveryInProgress(Y?Hb(Y):void 0)}),u.jsx("div",{role:"status","aria-live":"polite",children:C&&u.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium text-grayWarm-700",children:[u.jsx(Ja,{size:20,className:"flex-shrink-0 text-success-600"}),Le.added]})}),l?b&&u.jsx(Ut,{tone:"neutral",children:Le.limit}):u.jsx(Ut,{tone:"neutral",children:Le.unsupported}),x==="sessionRequired"?u.jsx(mi,{onSignIn:()=>t.current.onSessionRequired()}):x&&Db.has(x)?u.jsx(Ut,{tone:"neutral",role:"status",children:Le[x]}):x&&u.jsx(Ut,{tone:"warning",role:"alert",children:Le[x]}),l&&u.jsxs("div",{className:"flex flex-wrap gap-3",children:[u.jsx(gi,{label:Le.addPasskeyLabel,disabled:g||b||X,onClick:()=>void ue({type:"add",securityKey:!1}),children:Le.addPasskey}),u.jsx(gi,{label:Le.addSecurityKeyLabel,disabled:g||b||X,onClick:()=>void ue({type:"add",securityKey:!0}),children:Le.addSecurityKey})]}),de&&u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(Xa,{id:j,checked:_,onCheckedChange:Z=>{B(Z),zl(!Z)}}),u.jsx("label",{htmlFor:j,className:"text-sm font-medium text-grayWarm-700",children:Le.suggestToggle})]}),N&&u.jsx(Jb,{title:nu(N).title,busy:g,onCancel:()=>A(null),onConfirm:()=>void ue({type:"remove",passkey:N})}),u.jsx(tu,{isOpen:I!==null,action:(I==null?void 0:I.type)??"add",account:e.account,api:e.api,getCurrentUser:e.getCurrentUser,onConfirmed:D,onCancel:()=>M(null),onMismatch:L})]})},zb=({passkey:e,disabled:t,onRemove:r})=>{const{title:a,badge:n,meta:o,Icon:i}=nu(e);return u.jsxs("li",{className:"flex items-center gap-3 py-3",children:[u.jsx("div",{className:"flex items-center justify-center flex-shrink-0 w-10 h-10 rounded-lg bg-grayWarm-100 text-grayWarm-700",children:u.jsx(i,{size:20})}),u.jsxs("div",{className:"flex-1 min-w-0",children:[u.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[u.jsx("span",{className:"text-base font-semibold text-grayWarm-950",children:a}),n&&u.jsx(_a,{variant:n===Le.kind.synced?"info":"default",children:n})]}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:o})]}),u.jsx("button",{type:"button","aria-label":Le.removeLabel(a),disabled:t,onClick:r,className:"flex items-center justify-center flex-shrink-0 w-9 h-9 rounded-lg bg-grayWarm-100 text-grayWarm-600 transition-colors hover:bg-grayWarm-200 hover:text-grayWarm-800 disabled:opacity-60 disabled:cursor-not-allowed focus:outline-none focus-visible:ring-2 focus-visible:ring-grayWarm-950",children:u.jsx(Ya,{size:18})})]})},gi=({label:e,disabled:t,onClick:r,children:a})=>u.jsxs("button",{type:"button","aria-label":e,disabled:t,onClick:r,className:"inline-flex items-center gap-2 px-3.5 py-2.5 rounded-lg bg-grayWarm-100 text-sm font-semibold text-grayWarm-950 transition-colors hover:bg-grayWarm-200 disabled:bg-transparent disabled:text-grayWarm-400 disabled:cursor-not-allowed focus:outline-none focus-visible:ring-2 focus-visible:ring-grayWarm-950",children:[u.jsx(Ml,{size:20}),a]}),Ut=({tone:e,role:t,children:r})=>u.jsxs("div",{role:t,className:Oe("flex items-start gap-3 rounded-xl border p-4 text-sm",e==="warning"?"border-warning-200 bg-warning-50 text-warning-700":"border-grayWarm-200 bg-grayWarm-50 text-grayWarm-700"),children:[u.jsx(Nn,{size:20,className:Oe("flex-shrink-0",e==="warning"?"text-warning-700":"text-grayWarm-500")}),u.jsx("div",{className:"flex flex-1 flex-wrap items-center justify-between gap-3",children:r})]}),ru=({onClick:e,children:t})=>u.jsx("button",{type:"button",onClick:e,className:"px-3 py-2 rounded-lg bg-grayWarm-100 text-sm font-semibold text-grayWarm-950 transition-colors hover:bg-grayWarm-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-grayWarm-950",children:t}),mi=({onSignIn:e})=>u.jsxs(Ut,{tone:"neutral",children:[u.jsx("span",{children:Le.sessionRequired}),u.jsx(ru,{onClick:e,children:Le.signIn})]}),Yb=()=>u.jsxs("div",{"aria-busy":"true",className:"flex flex-col gap-3",children:[u.jsx("span",{className:"sr-only",children:Le.loading}),[0,1].map(e=>u.jsxs("div",{"aria-hidden":"true",className:"flex items-center gap-3 py-1",children:[u.jsx("div",{className:"w-10 h-10 rounded-lg bg-grayWarm-100 motion-safe:animate-pulse"}),u.jsxs("div",{className:"flex-1 flex flex-col gap-2",children:[u.jsx("div",{className:"h-4 w-40 rounded bg-grayWarm-100 motion-safe:animate-pulse"}),u.jsx("div",{className:"h-3 w-56 rounded bg-grayWarm-100 motion-safe:animate-pulse"})]})]},e))]}),Jb=({title:e,busy:t,onCancel:r,onConfirm:a})=>{const n=Le.remove.title(e);return u.jsx(cn,{isOpen:!0,onClose:r,title:n,header:"none",maxWidthPx:400,children:u.jsxs("div",{className:"flex flex-col gap-5 text-left",children:[u.jsx("div",{className:"flex items-center justify-center w-12 h-12 rounded-full bg-error-100 text-error-600",children:u.jsx(Ya,{size:24})}),u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsx("h2",{className:"text-lg font-semibold text-grayWarm-950",children:n}),u.jsx("p",{className:"text-sm text-grayWarm-600",children:Le.remove.body})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[u.jsx(tn,{onClick:r,children:Le.remove.cancel}),u.jsx("button",{type:"button",disabled:t,"aria-busy":t||void 0,onClick:a,className:"w-full h-11 px-4 inline-flex items-center justify-center rounded-xl bg-error-600 text-white font-semibold shadow-sm transition-colors hover:bg-error-700 disabled:opacity-60 disabled:cursor-not-allowed focus:outline-none focus-visible:ring-2 focus-visible:ring-error-500 focus-visible:ring-offset-2",children:Le.remove.confirm})]})]})})},Ub={us:{dialCode:"1",lengths:[10]},ca:{dialCode:"1",lengths:[10]},gb:{dialCode:"44",lengths:[10]},au:{dialCode:"61",lengths:[9]},de:{dialCode:"49",lengths:[10,11]},fr:{dialCode:"33",lengths:[9]},it:{dialCode:"39",lengths:[9,10]},es:{dialCode:"34",lengths:[9]},jp:{dialCode:"81",lengths:[10,11]},kr:{dialCode:"82",lengths:[10,11]},in:{dialCode:"91",lengths:[10]},br:{dialCode:"55",lengths:[10,11]},mx:{dialCode:"52",lengths:[10]},cn:{dialCode:"86",lengths:[11]}};function $b(e,t){if(!e||!e.startsWith("+"))return!1;const r=e.slice(1);if(!/^\d+$/.test(r))return!1;if(t){const a=Ub[t.toLowerCase()];if(a){if(!r.startsWith(a.dialCode))return!1;const n=r.slice(a.dialCode.length);return a.lengths.includes(n.length)}}return r.length>=7&&r.length<=15}const Kb=e=>/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$/.test(e),Qb=new RegExp("^[\\p{L} '-]{2,100}$","u");function qb(e){return Qb.test(e)?{isValid:!0}:{isValid:!1,message:"must contain only letters, spaces, hyphens, and apostrophes (2-100 characters)"}}exports.AUTOFILL_REFRESH_MS=Kl;exports.AlertCircleIcon=Nn;exports.AuthError=Et;exports.Avatar=Ds;exports.AvatarFallback=Ls;exports.AvatarImage=Ws;exports.Badge=_a;exports.Button=Ii;exports.COUNTRY_OPTIONS=va;exports.CURRENCY_OPTIONS=_r;exports.Card=Aa;exports.CardContent=Ea;exports.CardDescription=Pi;exports.CardFooter=Ti;exports.CardHeader=wa;exports.CardTitle=Gi;exports.CeremonyGate=ro;exports.CheckCircleIcon=Ja;exports.Checkbox=Ps;exports.Chip=gl;exports.CloudIcon=Mm;exports.CurrencyModal=zm;exports.DEFAULT_LOCALE=Bl;exports.DateDropdowns=ha;exports.FaceIdIcon=Gl;exports.FingerprintIcon=Pl;exports.IconButton=Ts;exports.Input=Ft;exports.KeyIcon=za;exports.LOCALE_OPTIONS=Vr;exports.LOCALE_STORAGE_KEY=_m;exports.LaptopIcon=Ol;exports.LocaleModal=Xm;exports.LogInIcon=Fl;exports.MailIcon=Br;exports.Modal=cn;exports.OTPModal=Qm;exports.OtpCodeInput=Ua;exports.PROMPT_COOKIE=Qa;exports.Pagination=fl;exports.PasscodeIcon=km;exports.PassengerForm=Pm;exports.PassengerFormSkeleton=jm;exports.PasskeyEnrollPrompt=xa;exports.PasskeyList=Zb;exports.PhoneInput=Um;exports.PlusIcon=Ml;exports.ReauthDialog=tu;exports.SearchInput=pl;exports.SelectDropdown=Wn;exports.Separator=Ni;exports.ShieldTickIcon=jl;exports.SignInFlow=Ob;exports.SignInModal=jb;exports.Textarea=dl;exports.Toggle=Xa;exports.ToggleGroup=ul;exports.ToggleGroupItem=cl;exports.TrashIcon=Ya;exports.UsbKeyIcon=Tl;exports.XCloseIcon=kl;exports.classifyWebAuthnError=Dr;exports.cookieDomain=Ll;exports.createMovmoAuthApi=ab;exports.createPasskey=$l;exports.detectSupport=no;exports.dismissPrompt=Zl;exports.findCurrencyOption=Zm;exports.findLocaleOption=Dm;exports.getCurrencyDisplayText=Vl;exports.getLanguageDisplayName=Wm;exports.getPasskey=Ca;exports.incorrectCode=Wl;exports.neverAsk=Yl;exports.rateLimited=Ka;exports.readPromptState=Yn;exports.recordCodeSignIn=Hl;exports.registerPasskey=ao;exports.safeFocus=wt;exports.setNeverAsk=zl;exports.shouldOfferPasskey=Xl;exports.signInCopy=Ze;exports.timeZone=Dl;exports.toAuthError=ot;exports.useMovmoSignIn=ql;exports.validateEmail=Kb;exports.validateName=qb;exports.validatePhoneNumber=$b;
115
115
  //# sourceMappingURL=index.cjs.map