@zwayam/apply-experience-library 0.0.33 → 0.0.35

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.
@@ -1,11 +1,11 @@
1
- var yg=Object.create;var Oe=Object.defineProperty;var bg=Object.getOwnPropertyDescriptor;var Tg=Object.getOwnPropertyNames;var $g=Object.getPrototypeOf,Og=Object.prototype.hasOwnProperty;var Q8=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(r,l)=>(typeof require<"u"?require:r)[l]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var W0=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports);var Fg=(t,r,l,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of Tg(r))!Og.call(t,o)&&o!==l&&Oe(t,o,{get:()=>r[o],enumerable:!(i=bg(r,o))||i.enumerable});return t};var E=(t,r,l)=>(l=t!=null?yg($g(t)):{},Fg(r||!t||!t.__esModule?Oe(l,"default",{value:t,enumerable:!0}):l,t));var je=W0(H1=>{"use strict";var J8=Symbol.for("react.element"),Dg=Symbol.for("react.portal"),Eg=Symbol.for("react.fragment"),Ng=Symbol.for("react.strict_mode"),_g=Symbol.for("react.profiler"),Rg=Symbol.for("react.provider"),Ig=Symbol.for("react.context"),kg=Symbol.for("react.forward_ref"),Ug=Symbol.for("react.suspense"),Gg=Symbol.for("react.memo"),Wg=Symbol.for("react.lazy"),Fe=Symbol.iterator;function jg(t){return t===null||typeof t!="object"?null:(t=Fe&&t[Fe]||t["@@iterator"],typeof t=="function"?t:null)}var Ne={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_e=Object.assign,Re={};function D6(t,r,l){this.props=t,this.context=r,this.refs=Re,this.updater=l||Ne}D6.prototype.isReactComponent={};D6.prototype.setState=function(t,r){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,r,"setState")};D6.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Ie(){}Ie.prototype=D6.prototype;function C7(t,r,l){this.props=t,this.context=r,this.refs=Re,this.updater=l||Ne}var w7=C7.prototype=new Ie;w7.constructor=C7;_e(w7,D6.prototype);w7.isPureReactComponent=!0;var De=Array.isArray,ke=Object.prototype.hasOwnProperty,B7={current:null},Ue={key:!0,ref:!0,__self:!0,__source:!0};function Ge(t,r,l){var i,o={},n=null,h=null;if(r!=null)for(i in r.ref!==void 0&&(h=r.ref),r.key!==void 0&&(n=""+r.key),r)ke.call(r,i)&&!Ue.hasOwnProperty(i)&&(o[i]=r[i]);var v=arguments.length-2;if(v===1)o.children=l;else if(1<v){for(var u=Array(v),s=0;s<v;s++)u[s]=arguments[s+2];o.children=u}if(t&&t.defaultProps)for(i in v=t.defaultProps,v)o[i]===void 0&&(o[i]=v[i]);return{$$typeof:J8,type:t,key:n,ref:h,props:o,_owner:B7.current}}function qg(t,r){return{$$typeof:J8,type:t.type,key:r,ref:t.ref,props:t.props,_owner:t._owner}}function P7(t){return typeof t=="object"&&t!==null&&t.$$typeof===J8}function Kg(t){var r={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(l){return r[l]})}var Ee=/\/+/g;function z7(t,r){return typeof t=="object"&&t!==null&&t.key!=null?Kg(""+t.key):r.toString(36)}function D5(t,r,l,i,o){var n=typeof t;(n==="undefined"||n==="boolean")&&(t=null);var h=!1;if(t===null)h=!0;else switch(n){case"string":case"number":h=!0;break;case"object":switch(t.$$typeof){case J8:case Dg:h=!0}}if(h)return h=t,o=o(h),t=i===""?"."+z7(h,0):i,De(o)?(l="",t!=null&&(l=t.replace(Ee,"$&/")+"/"),D5(o,r,l,"",function(s){return s})):o!=null&&(P7(o)&&(o=qg(o,l+(!o.key||h&&h.key===o.key?"":(""+o.key).replace(Ee,"$&/")+"/")+t)),r.push(o)),1;if(h=0,i=i===""?".":i+":",De(t))for(var v=0;v<t.length;v++){n=t[v];var u=i+z7(n,v);h+=D5(n,r,l,u,o)}else if(u=jg(t),typeof u=="function")for(t=u.call(t),v=0;!(n=t.next()).done;)n=n.value,u=i+z7(n,v++),h+=D5(n,r,l,u,o);else if(n==="object")throw r=String(t),Error("Objects are not valid as a React child (found: "+(r==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return h}function F5(t,r,l){if(t==null)return t;var i=[],o=0;return D5(t,i,"","",function(n){return r.call(l,n,o++)}),i}function Yg(t){if(t._status===-1){var r=t._result;r=r(),r.then(function(l){(t._status===0||t._status===-1)&&(t._status=1,t._result=l)},function(l){(t._status===0||t._status===-1)&&(t._status=2,t._result=l)}),t._status===-1&&(t._status=0,t._result=r)}if(t._status===1)return t._result.default;throw t._result}var m0={current:null},E5={transition:null},Xg={ReactCurrentDispatcher:m0,ReactCurrentBatchConfig:E5,ReactCurrentOwner:B7};function We(){throw Error("act(...) is not supported in production builds of React.")}H1.Children={map:F5,forEach:function(t,r,l){F5(t,function(){r.apply(this,arguments)},l)},count:function(t){var r=0;return F5(t,function(){r++}),r},toArray:function(t){return F5(t,function(r){return r})||[]},only:function(t){if(!P7(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};H1.Component=D6;H1.Fragment=Eg;H1.Profiler=_g;H1.PureComponent=C7;H1.StrictMode=Ng;H1.Suspense=Ug;H1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Xg;H1.act=We;H1.cloneElement=function(t,r,l){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var i=_e({},t.props),o=t.key,n=t.ref,h=t._owner;if(r!=null){if(r.ref!==void 0&&(n=r.ref,h=B7.current),r.key!==void 0&&(o=""+r.key),t.type&&t.type.defaultProps)var v=t.type.defaultProps;for(u in r)ke.call(r,u)&&!Ue.hasOwnProperty(u)&&(i[u]=r[u]===void 0&&v!==void 0?v[u]:r[u])}var u=arguments.length-2;if(u===1)i.children=l;else if(1<u){v=Array(u);for(var s=0;s<u;s++)v[s]=arguments[s+2];i.children=v}return{$$typeof:J8,type:t.type,key:o,ref:n,props:i,_owner:h}};H1.createContext=function(t){return t={$$typeof:Ig,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:Rg,_context:t},t.Consumer=t};H1.createElement=Ge;H1.createFactory=function(t){var r=Ge.bind(null,t);return r.type=t,r};H1.createRef=function(){return{current:null}};H1.forwardRef=function(t){return{$$typeof:kg,render:t}};H1.isValidElement=P7;H1.lazy=function(t){return{$$typeof:Wg,_payload:{_status:-1,_result:t},_init:Yg}};H1.memo=function(t,r){return{$$typeof:Gg,type:t,compare:r===void 0?null:r}};H1.startTransition=function(t){var r=E5.transition;E5.transition={};try{t()}finally{E5.transition=r}};H1.unstable_act=We;H1.useCallback=function(t,r){return m0.current.useCallback(t,r)};H1.useContext=function(t){return m0.current.useContext(t)};H1.useDebugValue=function(){};H1.useDeferredValue=function(t){return m0.current.useDeferredValue(t)};H1.useEffect=function(t,r){return m0.current.useEffect(t,r)};H1.useId=function(){return m0.current.useId()};H1.useImperativeHandle=function(t,r,l){return m0.current.useImperativeHandle(t,r,l)};H1.useInsertionEffect=function(t,r){return m0.current.useInsertionEffect(t,r)};H1.useLayoutEffect=function(t,r){return m0.current.useLayoutEffect(t,r)};H1.useMemo=function(t,r){return m0.current.useMemo(t,r)};H1.useReducer=function(t,r,l){return m0.current.useReducer(t,r,l)};H1.useRef=function(t){return m0.current.useRef(t)};H1.useState=function(t){return m0.current.useState(t)};H1.useSyncExternalStore=function(t,r,l){return m0.current.useSyncExternalStore(t,r,l)};H1.useTransition=function(){return m0.current.useTransition()};H1.version="18.3.1"});var I=W0((BA,qe)=>{"use strict";qe.exports=je()});var ei=W0(w1=>{"use strict";function T7(t,r){var l=t.length;t.push(r);t:for(;0<l;){var i=l-1>>>1,o=t[i];if(0<N5(o,r))t[i]=r,t[l]=o,l=i;else break t}}function d2(t){return t.length===0?null:t[0]}function R5(t){if(t.length===0)return null;var r=t[0],l=t.pop();if(l!==r){t[0]=l;t:for(var i=0,o=t.length,n=o>>>1;i<n;){var h=2*(i+1)-1,v=t[h],u=h+1,s=t[u];if(0>N5(v,l))u<o&&0>N5(s,v)?(t[i]=s,t[u]=l,i=u):(t[i]=v,t[h]=l,i=h);else if(u<o&&0>N5(s,l))t[i]=s,t[u]=l,i=u;else break t}}return r}function N5(t,r){var l=t.sortIndex-r.sortIndex;return l!==0?l:t.id-r.id}typeof performance=="object"&&typeof performance.now=="function"?(Ke=performance,w1.unstable_now=function(){return Ke.now()}):(S7=Date,Ye=S7.now(),w1.unstable_now=function(){return S7.now()-Ye});var Ke,S7,Ye,P2=[],f4=[],Qg=1,j0=null,s0=3,I5=!1,i6=!1,at=!1,Je=typeof setTimeout=="function"?setTimeout:null,ti=typeof clearTimeout=="function"?clearTimeout:null,Xe=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function $7(t){for(var r=d2(f4);r!==null;){if(r.callback===null)R5(f4);else if(r.startTime<=t)R5(f4),r.sortIndex=r.expirationTime,T7(P2,r);else break;r=d2(f4)}}function O7(t){if(at=!1,$7(t),!i6)if(d2(P2)!==null)i6=!0,D7(F7);else{var r=d2(f4);r!==null&&E7(O7,r.startTime-t)}}function F7(t,r){i6=!1,at&&(at=!1,ti(rt),rt=-1),I5=!0;var l=s0;try{for($7(r),j0=d2(P2);j0!==null&&(!(j0.expirationTime>r)||t&&!li());){var i=j0.callback;if(typeof i=="function"){j0.callback=null,s0=j0.priorityLevel;var o=i(j0.expirationTime<=r);r=w1.unstable_now(),typeof o=="function"?j0.callback=o:j0===d2(P2)&&R5(P2),$7(r)}else R5(P2);j0=d2(P2)}if(j0!==null)var n=!0;else{var h=d2(f4);h!==null&&E7(O7,h.startTime-r),n=!1}return n}finally{j0=null,s0=l,I5=!1}}var k5=!1,_5=null,rt=-1,ai=5,ri=-1;function li(){return!(w1.unstable_now()-ri<ai)}function y7(){if(_5!==null){var t=w1.unstable_now();ri=t;var r=!0;try{r=_5(!0,t)}finally{r?tt():(k5=!1,_5=null)}}else k5=!1}var tt;typeof Xe=="function"?tt=function(){Xe(y7)}:typeof MessageChannel<"u"?(b7=new MessageChannel,Qe=b7.port2,b7.port1.onmessage=y7,tt=function(){Qe.postMessage(null)}):tt=function(){Je(y7,0)};var b7,Qe;function D7(t){_5=t,k5||(k5=!0,tt())}function E7(t,r){rt=Je(function(){t(w1.unstable_now())},r)}w1.unstable_IdlePriority=5;w1.unstable_ImmediatePriority=1;w1.unstable_LowPriority=4;w1.unstable_NormalPriority=3;w1.unstable_Profiling=null;w1.unstable_UserBlockingPriority=2;w1.unstable_cancelCallback=function(t){t.callback=null};w1.unstable_continueExecution=function(){i6||I5||(i6=!0,D7(F7))};w1.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ai=0<t?Math.floor(1e3/t):5};w1.unstable_getCurrentPriorityLevel=function(){return s0};w1.unstable_getFirstCallbackNode=function(){return d2(P2)};w1.unstable_next=function(t){switch(s0){case 1:case 2:case 3:var r=3;break;default:r=s0}var l=s0;s0=r;try{return t()}finally{s0=l}};w1.unstable_pauseExecution=function(){};w1.unstable_requestPaint=function(){};w1.unstable_runWithPriority=function(t,r){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var l=s0;s0=t;try{return r()}finally{s0=l}};w1.unstable_scheduleCallback=function(t,r,l){var i=w1.unstable_now();switch(typeof l=="object"&&l!==null?(l=l.delay,l=typeof l=="number"&&0<l?i+l:i):l=i,t){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=l+o,t={id:Qg++,callback:r,priorityLevel:t,startTime:l,expirationTime:o,sortIndex:-1},l>i?(t.sortIndex=l,T7(f4,t),d2(P2)===null&&t===d2(f4)&&(at?(ti(rt),rt=-1):at=!0,E7(O7,l-i))):(t.sortIndex=o,T7(P2,t),i6||I5||(i6=!0,D7(F7))),t};w1.unstable_shouldYield=li;w1.unstable_wrapCallback=function(t){var r=s0;return function(){var l=s0;s0=r;try{return t.apply(this,arguments)}finally{s0=l}}}});var oi=W0((SA,ii)=>{"use strict";ii.exports=ei()});var gc=W0(R0=>{"use strict";var Jg=I(),N0=oi();function N(t){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+t,l=1;l<arguments.length;l++)r+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var so=new Set,Lt={};function f6(t,r){e8(t,r),e8(t+"Capture",r)}function e8(t,r){for(Lt[t]=r,t=0;t<r.length;t++)so.add(r[t])}var r4=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),n9=Object.prototype.hasOwnProperty,tu=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ni={},ci={};function au(t){return n9.call(ci,t)?!0:n9.call(ni,t)?!1:tu.test(t)?ci[t]=!0:(ni[t]=!0,!1)}function ru(t,r,l,i){if(l!==null&&l.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return i?!1:l!==null?!l.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function lu(t,r,l,i){if(r===null||typeof r>"u"||ru(t,r,l,i))return!0;if(i)return!1;if(l!==null)switch(l.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function L0(t,r,l,i,o,n,h){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=i,this.attributeNamespace=o,this.mustUseProperty=l,this.propertyName=t,this.type=r,this.sanitizeURL=n,this.removeEmptyString=h}var h0={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){h0[t]=new L0(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var r=t[0];h0[r]=new L0(r,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){h0[t]=new L0(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){h0[t]=new L0(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){h0[t]=new L0(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){h0[t]=new L0(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){h0[t]=new L0(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){h0[t]=new L0(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){h0[t]=new L0(t,5,!1,t.toLowerCase(),null,!1,!1)});var J9=/[\-:]([a-z])/g;function tr(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var r=t.replace(J9,tr);h0[r]=new L0(r,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var r=t.replace(J9,tr);h0[r]=new L0(r,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var r=t.replace(J9,tr);h0[r]=new L0(r,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){h0[t]=new L0(t,1,!1,t.toLowerCase(),null,!1,!1)});h0.xlinkHref=new L0("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){h0[t]=new L0(t,1,!1,t.toLowerCase(),null,!0,!0)});function ar(t,r,l,i){var o=h0.hasOwnProperty(r)?h0[r]:null;(o!==null?o.type!==0:i||!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(lu(r,l,o,i)&&(l=null),i||o===null?au(r)&&(l===null?t.removeAttribute(r):t.setAttribute(r,""+l)):o.mustUseProperty?t[o.propertyName]=l===null?o.type===3?!1:"":l:(r=o.attributeName,i=o.attributeNamespace,l===null?t.removeAttribute(r):(o=o.type,l=o===3||o===4&&l===!0?"":""+l,i?t.setAttributeNS(i,r,l):t.setAttribute(r,l))))}var o4=Jg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,U5=Symbol.for("react.element"),_6=Symbol.for("react.portal"),R6=Symbol.for("react.fragment"),rr=Symbol.for("react.strict_mode"),c9=Symbol.for("react.profiler"),po=Symbol.for("react.provider"),Ho=Symbol.for("react.context"),lr=Symbol.for("react.forward_ref"),h9=Symbol.for("react.suspense"),d9=Symbol.for("react.suspense_list"),er=Symbol.for("react.memo"),V4=Symbol.for("react.lazy"),Mo=Symbol.for("react.offscreen"),hi=Symbol.iterator;function lt(t){return t===null||typeof t!="object"?null:(t=hi&&t[hi]||t["@@iterator"],typeof t=="function"?t:null)}var N1=Object.assign,N7;function vt(t){if(N7===void 0)try{throw Error()}catch(l){var r=l.stack.trim().match(/\n( *(at )?)/);N7=r&&r[1]||""}return`
1
+ var yg=Object.create;var Oe=Object.defineProperty;var bg=Object.getOwnPropertyDescriptor;var Tg=Object.getOwnPropertyNames;var $g=Object.getPrototypeOf,Og=Object.prototype.hasOwnProperty;var Q8=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(r,l)=>(typeof require<"u"?require:r)[l]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var W0=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports);var Fg=(t,r,l,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of Tg(r))!Og.call(t,o)&&o!==l&&Oe(t,o,{get:()=>r[o],enumerable:!(i=bg(r,o))||i.enumerable});return t};var E=(t,r,l)=>(l=t!=null?yg($g(t)):{},Fg(r||!t||!t.__esModule?Oe(l,"default",{value:t,enumerable:!0}):l,t));var je=W0(H1=>{"use strict";var J8=Symbol.for("react.element"),Dg=Symbol.for("react.portal"),Eg=Symbol.for("react.fragment"),Ng=Symbol.for("react.strict_mode"),_g=Symbol.for("react.profiler"),Rg=Symbol.for("react.provider"),Ig=Symbol.for("react.context"),kg=Symbol.for("react.forward_ref"),Ug=Symbol.for("react.suspense"),Gg=Symbol.for("react.memo"),Wg=Symbol.for("react.lazy"),Fe=Symbol.iterator;function jg(t){return t===null||typeof t!="object"?null:(t=Fe&&t[Fe]||t["@@iterator"],typeof t=="function"?t:null)}var Ne={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_e=Object.assign,Re={};function D6(t,r,l){this.props=t,this.context=r,this.refs=Re,this.updater=l||Ne}D6.prototype.isReactComponent={};D6.prototype.setState=function(t,r){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,r,"setState")};D6.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Ie(){}Ie.prototype=D6.prototype;function C7(t,r,l){this.props=t,this.context=r,this.refs=Re,this.updater=l||Ne}var w7=C7.prototype=new Ie;w7.constructor=C7;_e(w7,D6.prototype);w7.isPureReactComponent=!0;var De=Array.isArray,ke=Object.prototype.hasOwnProperty,B7={current:null},Ue={key:!0,ref:!0,__self:!0,__source:!0};function Ge(t,r,l){var i,o={},n=null,h=null;if(r!=null)for(i in r.ref!==void 0&&(h=r.ref),r.key!==void 0&&(n=""+r.key),r)ke.call(r,i)&&!Ue.hasOwnProperty(i)&&(o[i]=r[i]);var v=arguments.length-2;if(v===1)o.children=l;else if(1<v){for(var u=Array(v),s=0;s<v;s++)u[s]=arguments[s+2];o.children=u}if(t&&t.defaultProps)for(i in v=t.defaultProps,v)o[i]===void 0&&(o[i]=v[i]);return{$$typeof:J8,type:t,key:n,ref:h,props:o,_owner:B7.current}}function qg(t,r){return{$$typeof:J8,type:t.type,key:r,ref:t.ref,props:t.props,_owner:t._owner}}function P7(t){return typeof t=="object"&&t!==null&&t.$$typeof===J8}function Kg(t){var r={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(l){return r[l]})}var Ee=/\/+/g;function z7(t,r){return typeof t=="object"&&t!==null&&t.key!=null?Kg(""+t.key):r.toString(36)}function D5(t,r,l,i,o){var n=typeof t;(n==="undefined"||n==="boolean")&&(t=null);var h=!1;if(t===null)h=!0;else switch(n){case"string":case"number":h=!0;break;case"object":switch(t.$$typeof){case J8:case Dg:h=!0}}if(h)return h=t,o=o(h),t=i===""?"."+z7(h,0):i,De(o)?(l="",t!=null&&(l=t.replace(Ee,"$&/")+"/"),D5(o,r,l,"",function(s){return s})):o!=null&&(P7(o)&&(o=qg(o,l+(!o.key||h&&h.key===o.key?"":(""+o.key).replace(Ee,"$&/")+"/")+t)),r.push(o)),1;if(h=0,i=i===""?".":i+":",De(t))for(var v=0;v<t.length;v++){n=t[v];var u=i+z7(n,v);h+=D5(n,r,l,u,o)}else if(u=jg(t),typeof u=="function")for(t=u.call(t),v=0;!(n=t.next()).done;)n=n.value,u=i+z7(n,v++),h+=D5(n,r,l,u,o);else if(n==="object")throw r=String(t),Error("Objects are not valid as a React child (found: "+(r==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return h}function F5(t,r,l){if(t==null)return t;var i=[],o=0;return D5(t,i,"","",function(n){return r.call(l,n,o++)}),i}function Yg(t){if(t._status===-1){var r=t._result;r=r(),r.then(function(l){(t._status===0||t._status===-1)&&(t._status=1,t._result=l)},function(l){(t._status===0||t._status===-1)&&(t._status=2,t._result=l)}),t._status===-1&&(t._status=0,t._result=r)}if(t._status===1)return t._result.default;throw t._result}var m0={current:null},E5={transition:null},Xg={ReactCurrentDispatcher:m0,ReactCurrentBatchConfig:E5,ReactCurrentOwner:B7};function We(){throw Error("act(...) is not supported in production builds of React.")}H1.Children={map:F5,forEach:function(t,r,l){F5(t,function(){r.apply(this,arguments)},l)},count:function(t){var r=0;return F5(t,function(){r++}),r},toArray:function(t){return F5(t,function(r){return r})||[]},only:function(t){if(!P7(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};H1.Component=D6;H1.Fragment=Eg;H1.Profiler=_g;H1.PureComponent=C7;H1.StrictMode=Ng;H1.Suspense=Ug;H1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Xg;H1.act=We;H1.cloneElement=function(t,r,l){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var i=_e({},t.props),o=t.key,n=t.ref,h=t._owner;if(r!=null){if(r.ref!==void 0&&(n=r.ref,h=B7.current),r.key!==void 0&&(o=""+r.key),t.type&&t.type.defaultProps)var v=t.type.defaultProps;for(u in r)ke.call(r,u)&&!Ue.hasOwnProperty(u)&&(i[u]=r[u]===void 0&&v!==void 0?v[u]:r[u])}var u=arguments.length-2;if(u===1)i.children=l;else if(1<u){v=Array(u);for(var s=0;s<u;s++)v[s]=arguments[s+2];i.children=v}return{$$typeof:J8,type:t.type,key:o,ref:n,props:i,_owner:h}};H1.createContext=function(t){return t={$$typeof:Ig,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:Rg,_context:t},t.Consumer=t};H1.createElement=Ge;H1.createFactory=function(t){var r=Ge.bind(null,t);return r.type=t,r};H1.createRef=function(){return{current:null}};H1.forwardRef=function(t){return{$$typeof:kg,render:t}};H1.isValidElement=P7;H1.lazy=function(t){return{$$typeof:Wg,_payload:{_status:-1,_result:t},_init:Yg}};H1.memo=function(t,r){return{$$typeof:Gg,type:t,compare:r===void 0?null:r}};H1.startTransition=function(t){var r=E5.transition;E5.transition={};try{t()}finally{E5.transition=r}};H1.unstable_act=We;H1.useCallback=function(t,r){return m0.current.useCallback(t,r)};H1.useContext=function(t){return m0.current.useContext(t)};H1.useDebugValue=function(){};H1.useDeferredValue=function(t){return m0.current.useDeferredValue(t)};H1.useEffect=function(t,r){return m0.current.useEffect(t,r)};H1.useId=function(){return m0.current.useId()};H1.useImperativeHandle=function(t,r,l){return m0.current.useImperativeHandle(t,r,l)};H1.useInsertionEffect=function(t,r){return m0.current.useInsertionEffect(t,r)};H1.useLayoutEffect=function(t,r){return m0.current.useLayoutEffect(t,r)};H1.useMemo=function(t,r){return m0.current.useMemo(t,r)};H1.useReducer=function(t,r,l){return m0.current.useReducer(t,r,l)};H1.useRef=function(t){return m0.current.useRef(t)};H1.useState=function(t){return m0.current.useState(t)};H1.useSyncExternalStore=function(t,r,l){return m0.current.useSyncExternalStore(t,r,l)};H1.useTransition=function(){return m0.current.useTransition()};H1.version="18.3.1"});var I=W0((wA,qe)=>{"use strict";qe.exports=je()});var ei=W0(w1=>{"use strict";function T7(t,r){var l=t.length;t.push(r);t:for(;0<l;){var i=l-1>>>1,o=t[i];if(0<N5(o,r))t[i]=r,t[l]=o,l=i;else break t}}function d2(t){return t.length===0?null:t[0]}function R5(t){if(t.length===0)return null;var r=t[0],l=t.pop();if(l!==r){t[0]=l;t:for(var i=0,o=t.length,n=o>>>1;i<n;){var h=2*(i+1)-1,v=t[h],u=h+1,s=t[u];if(0>N5(v,l))u<o&&0>N5(s,v)?(t[i]=s,t[u]=l,i=u):(t[i]=v,t[h]=l,i=h);else if(u<o&&0>N5(s,l))t[i]=s,t[u]=l,i=u;else break t}}return r}function N5(t,r){var l=t.sortIndex-r.sortIndex;return l!==0?l:t.id-r.id}typeof performance=="object"&&typeof performance.now=="function"?(Ke=performance,w1.unstable_now=function(){return Ke.now()}):(S7=Date,Ye=S7.now(),w1.unstable_now=function(){return S7.now()-Ye});var Ke,S7,Ye,P2=[],f4=[],Qg=1,j0=null,s0=3,I5=!1,i6=!1,at=!1,Je=typeof setTimeout=="function"?setTimeout:null,ti=typeof clearTimeout=="function"?clearTimeout:null,Xe=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function $7(t){for(var r=d2(f4);r!==null;){if(r.callback===null)R5(f4);else if(r.startTime<=t)R5(f4),r.sortIndex=r.expirationTime,T7(P2,r);else break;r=d2(f4)}}function O7(t){if(at=!1,$7(t),!i6)if(d2(P2)!==null)i6=!0,D7(F7);else{var r=d2(f4);r!==null&&E7(O7,r.startTime-t)}}function F7(t,r){i6=!1,at&&(at=!1,ti(rt),rt=-1),I5=!0;var l=s0;try{for($7(r),j0=d2(P2);j0!==null&&(!(j0.expirationTime>r)||t&&!li());){var i=j0.callback;if(typeof i=="function"){j0.callback=null,s0=j0.priorityLevel;var o=i(j0.expirationTime<=r);r=w1.unstable_now(),typeof o=="function"?j0.callback=o:j0===d2(P2)&&R5(P2),$7(r)}else R5(P2);j0=d2(P2)}if(j0!==null)var n=!0;else{var h=d2(f4);h!==null&&E7(O7,h.startTime-r),n=!1}return n}finally{j0=null,s0=l,I5=!1}}var k5=!1,_5=null,rt=-1,ai=5,ri=-1;function li(){return!(w1.unstable_now()-ri<ai)}function y7(){if(_5!==null){var t=w1.unstable_now();ri=t;var r=!0;try{r=_5(!0,t)}finally{r?tt():(k5=!1,_5=null)}}else k5=!1}var tt;typeof Xe=="function"?tt=function(){Xe(y7)}:typeof MessageChannel<"u"?(b7=new MessageChannel,Qe=b7.port2,b7.port1.onmessage=y7,tt=function(){Qe.postMessage(null)}):tt=function(){Je(y7,0)};var b7,Qe;function D7(t){_5=t,k5||(k5=!0,tt())}function E7(t,r){rt=Je(function(){t(w1.unstable_now())},r)}w1.unstable_IdlePriority=5;w1.unstable_ImmediatePriority=1;w1.unstable_LowPriority=4;w1.unstable_NormalPriority=3;w1.unstable_Profiling=null;w1.unstable_UserBlockingPriority=2;w1.unstable_cancelCallback=function(t){t.callback=null};w1.unstable_continueExecution=function(){i6||I5||(i6=!0,D7(F7))};w1.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ai=0<t?Math.floor(1e3/t):5};w1.unstable_getCurrentPriorityLevel=function(){return s0};w1.unstable_getFirstCallbackNode=function(){return d2(P2)};w1.unstable_next=function(t){switch(s0){case 1:case 2:case 3:var r=3;break;default:r=s0}var l=s0;s0=r;try{return t()}finally{s0=l}};w1.unstable_pauseExecution=function(){};w1.unstable_requestPaint=function(){};w1.unstable_runWithPriority=function(t,r){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var l=s0;s0=t;try{return r()}finally{s0=l}};w1.unstable_scheduleCallback=function(t,r,l){var i=w1.unstable_now();switch(typeof l=="object"&&l!==null?(l=l.delay,l=typeof l=="number"&&0<l?i+l:i):l=i,t){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=l+o,t={id:Qg++,callback:r,priorityLevel:t,startTime:l,expirationTime:o,sortIndex:-1},l>i?(t.sortIndex=l,T7(f4,t),d2(P2)===null&&t===d2(f4)&&(at?(ti(rt),rt=-1):at=!0,E7(O7,l-i))):(t.sortIndex=o,T7(P2,t),i6||I5||(i6=!0,D7(F7))),t};w1.unstable_shouldYield=li;w1.unstable_wrapCallback=function(t){var r=s0;return function(){var l=s0;s0=r;try{return t.apply(this,arguments)}finally{s0=l}}}});var oi=W0((PA,ii)=>{"use strict";ii.exports=ei()});var gc=W0(R0=>{"use strict";var Jg=I(),N0=oi();function N(t){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+t,l=1;l<arguments.length;l++)r+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var so=new Set,Lt={};function f6(t,r){e8(t,r),e8(t+"Capture",r)}function e8(t,r){for(Lt[t]=r,t=0;t<r.length;t++)so.add(r[t])}var r4=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),n9=Object.prototype.hasOwnProperty,tu=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ni={},ci={};function au(t){return n9.call(ci,t)?!0:n9.call(ni,t)?!1:tu.test(t)?ci[t]=!0:(ni[t]=!0,!1)}function ru(t,r,l,i){if(l!==null&&l.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return i?!1:l!==null?!l.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function lu(t,r,l,i){if(r===null||typeof r>"u"||ru(t,r,l,i))return!0;if(i)return!1;if(l!==null)switch(l.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function L0(t,r,l,i,o,n,h){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=i,this.attributeNamespace=o,this.mustUseProperty=l,this.propertyName=t,this.type=r,this.sanitizeURL=n,this.removeEmptyString=h}var h0={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){h0[t]=new L0(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var r=t[0];h0[r]=new L0(r,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){h0[t]=new L0(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){h0[t]=new L0(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){h0[t]=new L0(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){h0[t]=new L0(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){h0[t]=new L0(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){h0[t]=new L0(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){h0[t]=new L0(t,5,!1,t.toLowerCase(),null,!1,!1)});var J9=/[\-:]([a-z])/g;function tr(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var r=t.replace(J9,tr);h0[r]=new L0(r,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var r=t.replace(J9,tr);h0[r]=new L0(r,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var r=t.replace(J9,tr);h0[r]=new L0(r,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){h0[t]=new L0(t,1,!1,t.toLowerCase(),null,!1,!1)});h0.xlinkHref=new L0("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){h0[t]=new L0(t,1,!1,t.toLowerCase(),null,!0,!0)});function ar(t,r,l,i){var o=h0.hasOwnProperty(r)?h0[r]:null;(o!==null?o.type!==0:i||!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(lu(r,l,o,i)&&(l=null),i||o===null?au(r)&&(l===null?t.removeAttribute(r):t.setAttribute(r,""+l)):o.mustUseProperty?t[o.propertyName]=l===null?o.type===3?!1:"":l:(r=o.attributeName,i=o.attributeNamespace,l===null?t.removeAttribute(r):(o=o.type,l=o===3||o===4&&l===!0?"":""+l,i?t.setAttributeNS(i,r,l):t.setAttribute(r,l))))}var o4=Jg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,U5=Symbol.for("react.element"),_6=Symbol.for("react.portal"),R6=Symbol.for("react.fragment"),rr=Symbol.for("react.strict_mode"),c9=Symbol.for("react.profiler"),po=Symbol.for("react.provider"),Ho=Symbol.for("react.context"),lr=Symbol.for("react.forward_ref"),h9=Symbol.for("react.suspense"),d9=Symbol.for("react.suspense_list"),er=Symbol.for("react.memo"),V4=Symbol.for("react.lazy"),Mo=Symbol.for("react.offscreen"),hi=Symbol.iterator;function lt(t){return t===null||typeof t!="object"?null:(t=hi&&t[hi]||t["@@iterator"],typeof t=="function"?t:null)}var N1=Object.assign,N7;function vt(t){if(N7===void 0)try{throw Error()}catch(l){var r=l.stack.trim().match(/\n( *(at )?)/);N7=r&&r[1]||""}return`
2
2
  `+N7+t}var _7=!1;function R7(t,r){if(!t||_7)return"";_7=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(r)if(r=function(){throw Error()},Object.defineProperty(r.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(r,[])}catch(s){var i=s}Reflect.construct(t,[],r)}else{try{r.call()}catch(s){i=s}t.call(r.prototype)}else{try{throw Error()}catch(s){i=s}t()}}catch(s){if(s&&i&&typeof s.stack=="string"){for(var o=s.stack.split(`
3
3
  `),n=i.stack.split(`
4
4
  `),h=o.length-1,v=n.length-1;1<=h&&0<=v&&o[h]!==n[v];)v--;for(;1<=h&&0<=v;h--,v--)if(o[h]!==n[v]){if(h!==1||v!==1)do if(h--,v--,0>v||o[h]!==n[v]){var u=`
5
5
  `+o[h].replace(" at new "," at ");return t.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",t.displayName)),u}while(1<=h&&0<=v);break}}}finally{_7=!1,Error.prepareStackTrace=l}return(t=t?t.displayName||t.name:"")?vt(t):""}function eu(t){switch(t.tag){case 5:return vt(t.type);case 16:return vt("Lazy");case 13:return vt("Suspense");case 19:return vt("SuspenseList");case 0:case 2:case 15:return t=R7(t.type,!1),t;case 11:return t=R7(t.type.render,!1),t;case 1:return t=R7(t.type,!0),t;default:return""}}function v9(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case R6:return"Fragment";case _6:return"Portal";case c9:return"Profiler";case rr:return"StrictMode";case h9:return"Suspense";case d9:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Ho:return(t.displayName||"Context")+".Consumer";case po:return(t._context.displayName||"Context")+".Provider";case lr:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case er:return r=t.displayName||null,r!==null?r:v9(t.type)||"Memo";case V4:r=t._payload,t=t._init;try{return v9(t(r))}catch{}}return null}function iu(t){var r=t.type;switch(t.tag){case 24:return"Cache";case 9:return(r.displayName||"Context")+".Consumer";case 10:return(r._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=r.render,t=t.displayName||t.name||"",r.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return v9(r);case 8:return r===rr?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r}return null}function $4(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function fo(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function ou(t){var r=fo(t)?"checked":"value",l=Object.getOwnPropertyDescriptor(t.constructor.prototype,r),i=""+t[r];if(!t.hasOwnProperty(r)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var o=l.get,n=l.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return o.call(this)},set:function(h){i=""+h,n.call(this,h)}}),Object.defineProperty(t,r,{enumerable:l.enumerable}),{getValue:function(){return i},setValue:function(h){i=""+h},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function G5(t){t._valueTracker||(t._valueTracker=ou(t))}function Ao(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var l=r.getValue(),i="";return t&&(i=fo(t)?t.checked?"true":"false":t.value),t=i,t!==l?(r.setValue(t),!0):!1}function A3(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function g9(t,r){var l=r.checked;return N1({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??t._wrapperState.initialChecked})}function di(t,r){var l=r.defaultValue==null?"":r.defaultValue,i=r.checked!=null?r.checked:r.defaultChecked;l=$4(r.value!=null?r.value:l),t._wrapperState={initialChecked:i,initialValue:l,controlled:r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null}}function Vo(t,r){r=r.checked,r!=null&&ar(t,"checked",r,!1)}function u9(t,r){Vo(t,r);var l=$4(r.value),i=r.type;if(l!=null)i==="number"?(l===0&&t.value===""||t.value!=l)&&(t.value=""+l):t.value!==""+l&&(t.value=""+l);else if(i==="submit"||i==="reset"){t.removeAttribute("value");return}r.hasOwnProperty("value")?s9(t,r.type,l):r.hasOwnProperty("defaultValue")&&s9(t,r.type,$4(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(t.defaultChecked=!!r.defaultChecked)}function vi(t,r,l){if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var i=r.type;if(!(i!=="submit"&&i!=="reset"||r.value!==void 0&&r.value!==null))return;r=""+t._wrapperState.initialValue,l||r===t.value||(t.value=r),t.defaultValue=r}l=t.name,l!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,l!==""&&(t.name=l)}function s9(t,r,l){(r!=="number"||A3(t.ownerDocument)!==t)&&(l==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+l&&(t.defaultValue=""+l))}var gt=Array.isArray;function Q6(t,r,l,i){if(t=t.options,r){r={};for(var o=0;o<l.length;o++)r["$"+l[o]]=!0;for(l=0;l<t.length;l++)o=r.hasOwnProperty("$"+t[l].value),t[l].selected!==o&&(t[l].selected=o),o&&i&&(t[l].defaultSelected=!0)}else{for(l=""+$4(l),r=null,o=0;o<t.length;o++){if(t[o].value===l){t[o].selected=!0,i&&(t[o].defaultSelected=!0);return}r!==null||t[o].disabled||(r=t[o])}r!==null&&(r.selected=!0)}}function p9(t,r){if(r.dangerouslySetInnerHTML!=null)throw Error(N(91));return N1({},r,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function gi(t,r){var l=r.value;if(l==null){if(l=r.children,r=r.defaultValue,l!=null){if(r!=null)throw Error(N(92));if(gt(l)){if(1<l.length)throw Error(N(93));l=l[0]}r=l}r==null&&(r=""),l=r}t._wrapperState={initialValue:$4(l)}}function mo(t,r){var l=$4(r.value),i=$4(r.defaultValue);l!=null&&(l=""+l,l!==t.value&&(t.value=l),r.defaultValue==null&&t.defaultValue!==l&&(t.defaultValue=l)),i!=null&&(t.defaultValue=""+i)}function ui(t){var r=t.textContent;r===t._wrapperState.initialValue&&r!==""&&r!==null&&(t.value=r)}function Zo(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function H9(t,r){return t==null||t==="http://www.w3.org/1999/xhtml"?Zo(r):t==="http://www.w3.org/2000/svg"&&r==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var W5,xo=(function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(r,l,i,o){MSApp.execUnsafeLocalFunction(function(){return t(r,l,i,o)})}:t})(function(t,r){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=r;else{for(W5=W5||document.createElement("div"),W5.innerHTML="<svg>"+r.valueOf().toString()+"</svg>",r=W5.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;r.firstChild;)t.appendChild(r.firstChild)}});function zt(t,r){if(r){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=r;return}}t.textContent=r}var pt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},nu=["Webkit","ms","Moz","O"];Object.keys(pt).forEach(function(t){nu.forEach(function(r){r=r+t.charAt(0).toUpperCase()+t.substring(1),pt[r]=pt[t]})});function Lo(t,r,l){return r==null||typeof r=="boolean"||r===""?"":l||typeof r!="number"||r===0||pt.hasOwnProperty(t)&&pt[t]?(""+r).trim():r+"px"}function zo(t,r){t=t.style;for(var l in r)if(r.hasOwnProperty(l)){var i=l.indexOf("--")===0,o=Lo(l,r[l],i);l==="float"&&(l="cssFloat"),i?t.setProperty(l,o):t[l]=o}}var cu=N1({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function M9(t,r){if(r){if(cu[t]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw Error(N(137,t));if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw Error(N(60));if(typeof r.dangerouslySetInnerHTML!="object"||!("__html"in r.dangerouslySetInnerHTML))throw Error(N(61))}if(r.style!=null&&typeof r.style!="object")throw Error(N(62))}}function f9(t,r){if(t.indexOf("-")===-1)return typeof r.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var A9=null;function ir(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var V9=null,J6=null,t8=null;function si(t){if(t=kt(t)){if(typeof V9!="function")throw Error(N(280));var r=t.stateNode;r&&(r=j3(r),V9(t.stateNode,t.type,r))}}function Co(t){J6?t8?t8.push(t):t8=[t]:J6=t}function wo(){if(J6){var t=J6,r=t8;if(t8=J6=null,si(t),r)for(t=0;t<r.length;t++)si(r[t])}}function Bo(t,r){return t(r)}function Po(){}var I7=!1;function So(t,r,l){if(I7)return t(r,l);I7=!0;try{return Bo(t,r,l)}finally{I7=!1,(J6!==null||t8!==null)&&(Po(),wo())}}function Ct(t,r){var l=t.stateNode;if(l===null)return null;var i=j3(l);if(i===null)return null;l=i[r];t:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(t=t.type,i=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!i;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(N(231,r,typeof l));return l}var m9=!1;if(r4)try{E6={},Object.defineProperty(E6,"passive",{get:function(){m9=!0}}),window.addEventListener("test",E6,E6),window.removeEventListener("test",E6,E6)}catch{m9=!1}var E6;function hu(t,r,l,i,o,n,h,v,u){var s=Array.prototype.slice.call(arguments,3);try{r.apply(l,s)}catch(p){this.onError(p)}}var Ht=!1,V3=null,m3=!1,Z9=null,du={onError:function(t){Ht=!0,V3=t}};function vu(t,r,l,i,o,n,h,v,u){Ht=!1,V3=null,hu.apply(du,arguments)}function gu(t,r,l,i,o,n,h,v,u){if(vu.apply(this,arguments),Ht){if(Ht){var s=V3;Ht=!1,V3=null}else throw Error(N(198));m3||(m3=!0,Z9=s)}}function A6(t){var r=t,l=t;if(t.alternate)for(;r.return;)r=r.return;else{t=r;do r=t,(r.flags&4098)!==0&&(l=r.return),t=r.return;while(t)}return r.tag===3?l:null}function yo(t){if(t.tag===13){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function pi(t){if(A6(t)!==t)throw Error(N(188))}function uu(t){var r=t.alternate;if(!r){if(r=A6(t),r===null)throw Error(N(188));return r!==t?null:t}for(var l=t,i=r;;){var o=l.return;if(o===null)break;var n=o.alternate;if(n===null){if(i=o.return,i!==null){l=i;continue}break}if(o.child===n.child){for(n=o.child;n;){if(n===l)return pi(o),t;if(n===i)return pi(o),r;n=n.sibling}throw Error(N(188))}if(l.return!==i.return)l=o,i=n;else{for(var h=!1,v=o.child;v;){if(v===l){h=!0,l=o,i=n;break}if(v===i){h=!0,i=o,l=n;break}v=v.sibling}if(!h){for(v=n.child;v;){if(v===l){h=!0,l=n,i=o;break}if(v===i){h=!0,i=n,l=o;break}v=v.sibling}if(!h)throw Error(N(189))}}if(l.alternate!==i)throw Error(N(190))}if(l.tag!==3)throw Error(N(188));return l.stateNode.current===l?t:r}function bo(t){return t=uu(t),t!==null?To(t):null}function To(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var r=To(t);if(r!==null)return r;t=t.sibling}return null}var $o=N0.unstable_scheduleCallback,Hi=N0.unstable_cancelCallback,su=N0.unstable_shouldYield,pu=N0.unstable_requestPaint,k1=N0.unstable_now,Hu=N0.unstable_getCurrentPriorityLevel,or=N0.unstable_ImmediatePriority,Oo=N0.unstable_UserBlockingPriority,Z3=N0.unstable_NormalPriority,Mu=N0.unstable_LowPriority,Fo=N0.unstable_IdlePriority,k3=null,T2=null;function fu(t){if(T2&&typeof T2.onCommitFiberRoot=="function")try{T2.onCommitFiberRoot(k3,t,void 0,(t.current.flags&128)===128)}catch{}}var p2=Math.clz32?Math.clz32:mu,Au=Math.log,Vu=Math.LN2;function mu(t){return t>>>=0,t===0?32:31-(Au(t)/Vu|0)|0}var j5=64,q5=4194304;function ut(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function x3(t,r){var l=t.pendingLanes;if(l===0)return 0;var i=0,o=t.suspendedLanes,n=t.pingedLanes,h=l&268435455;if(h!==0){var v=h&~o;v!==0?i=ut(v):(n&=h,n!==0&&(i=ut(n)))}else h=l&~o,h!==0?i=ut(h):n!==0&&(i=ut(n));if(i===0)return 0;if(r!==0&&r!==i&&(r&o)===0&&(o=i&-i,n=r&-r,o>=n||o===16&&(n&4194240)!==0))return r;if((i&4)!==0&&(i|=l&16),r=t.entangledLanes,r!==0)for(t=t.entanglements,r&=i;0<r;)l=31-p2(r),o=1<<l,i|=t[l],r&=~o;return i}function Zu(t,r){switch(t){case 1:case 2:case 4:return r+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function xu(t,r){for(var l=t.suspendedLanes,i=t.pingedLanes,o=t.expirationTimes,n=t.pendingLanes;0<n;){var h=31-p2(n),v=1<<h,u=o[h];u===-1?((v&l)===0||(v&i)!==0)&&(o[h]=Zu(v,r)):u<=r&&(t.expiredLanes|=v),n&=~v}}function x9(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Do(){var t=j5;return j5<<=1,(j5&4194240)===0&&(j5=64),t}function k7(t){for(var r=[],l=0;31>l;l++)r.push(t);return r}function Rt(t,r,l){t.pendingLanes|=r,r!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,r=31-p2(r),t[r]=l}function Lu(t,r){var l=t.pendingLanes&~r;t.pendingLanes=r,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=r,t.mutableReadLanes&=r,t.entangledLanes&=r,r=t.entanglements;var i=t.eventTimes;for(t=t.expirationTimes;0<l;){var o=31-p2(l),n=1<<o;r[o]=0,i[o]=-1,t[o]=-1,l&=~n}}function nr(t,r){var l=t.entangledLanes|=r;for(t=t.entanglements;l;){var i=31-p2(l),o=1<<i;o&r|t[i]&r&&(t[i]|=r),l&=~o}}var x1=0;function Eo(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var No,cr,_o,Ro,Io,L9=!1,K5=[],C4=null,w4=null,B4=null,wt=new Map,Bt=new Map,Z4=[],zu="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Mi(t,r){switch(t){case"focusin":case"focusout":C4=null;break;case"dragenter":case"dragleave":w4=null;break;case"mouseover":case"mouseout":B4=null;break;case"pointerover":case"pointerout":wt.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bt.delete(r.pointerId)}}function et(t,r,l,i,o,n){return t===null||t.nativeEvent!==n?(t={blockedOn:r,domEventName:l,eventSystemFlags:i,nativeEvent:n,targetContainers:[o]},r!==null&&(r=kt(r),r!==null&&cr(r)),t):(t.eventSystemFlags|=i,r=t.targetContainers,o!==null&&r.indexOf(o)===-1&&r.push(o),t)}function Cu(t,r,l,i,o){switch(r){case"focusin":return C4=et(C4,t,r,l,i,o),!0;case"dragenter":return w4=et(w4,t,r,l,i,o),!0;case"mouseover":return B4=et(B4,t,r,l,i,o),!0;case"pointerover":var n=o.pointerId;return wt.set(n,et(wt.get(n)||null,t,r,l,i,o)),!0;case"gotpointercapture":return n=o.pointerId,Bt.set(n,et(Bt.get(n)||null,t,r,l,i,o)),!0}return!1}function ko(t){var r=c6(t.target);if(r!==null){var l=A6(r);if(l!==null){if(r=l.tag,r===13){if(r=yo(l),r!==null){t.blockedOn=r,Io(t.priority,function(){_o(l)});return}}else if(r===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function h3(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var l=z9(t.domEventName,t.eventSystemFlags,r[0],t.nativeEvent);if(l===null){l=t.nativeEvent;var i=new l.constructor(l.type,l);A9=i,l.target.dispatchEvent(i),A9=null}else return r=kt(l),r!==null&&cr(r),t.blockedOn=l,!1;r.shift()}return!0}function fi(t,r,l){h3(t)&&l.delete(r)}function wu(){L9=!1,C4!==null&&h3(C4)&&(C4=null),w4!==null&&h3(w4)&&(w4=null),B4!==null&&h3(B4)&&(B4=null),wt.forEach(fi),Bt.forEach(fi)}function it(t,r){t.blockedOn===r&&(t.blockedOn=null,L9||(L9=!0,N0.unstable_scheduleCallback(N0.unstable_NormalPriority,wu)))}function Pt(t){function r(o){return it(o,t)}if(0<K5.length){it(K5[0],t);for(var l=1;l<K5.length;l++){var i=K5[l];i.blockedOn===t&&(i.blockedOn=null)}}for(C4!==null&&it(C4,t),w4!==null&&it(w4,t),B4!==null&&it(B4,t),wt.forEach(r),Bt.forEach(r),l=0;l<Z4.length;l++)i=Z4[l],i.blockedOn===t&&(i.blockedOn=null);for(;0<Z4.length&&(l=Z4[0],l.blockedOn===null);)ko(l),l.blockedOn===null&&Z4.shift()}var a8=o4.ReactCurrentBatchConfig,L3=!0;function Bu(t,r,l,i){var o=x1,n=a8.transition;a8.transition=null;try{x1=1,hr(t,r,l,i)}finally{x1=o,a8.transition=n}}function Pu(t,r,l,i){var o=x1,n=a8.transition;a8.transition=null;try{x1=4,hr(t,r,l,i)}finally{x1=o,a8.transition=n}}function hr(t,r,l,i){if(L3){var o=z9(t,r,l,i);if(o===null)Y7(t,r,i,z3,l),Mi(t,i);else if(Cu(o,t,r,l,i))i.stopPropagation();else if(Mi(t,i),r&4&&-1<zu.indexOf(t)){for(;o!==null;){var n=kt(o);if(n!==null&&No(n),n=z9(t,r,l,i),n===null&&Y7(t,r,i,z3,l),n===o)break;o=n}o!==null&&i.stopPropagation()}else Y7(t,r,i,null,l)}}var z3=null;function z9(t,r,l,i){if(z3=null,t=ir(i),t=c6(t),t!==null)if(r=A6(t),r===null)t=null;else if(l=r.tag,l===13){if(t=yo(r),t!==null)return t;t=null}else if(l===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null);return z3=t,null}function Uo(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Hu()){case or:return 1;case Oo:return 4;case Z3:case Mu:return 16;case Fo:return 536870912;default:return 16}default:return 16}}var L4=null,dr=null,d3=null;function Go(){if(d3)return d3;var t,r=dr,l=r.length,i,o="value"in L4?L4.value:L4.textContent,n=o.length;for(t=0;t<l&&r[t]===o[t];t++);var h=l-t;for(i=1;i<=h&&r[l-i]===o[n-i];i++);return d3=o.slice(t,1<i?1-i:void 0)}function v3(t){var r=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&r===13&&(t=13)):t=r,t===10&&(t=13),32<=t||t===13?t:0}function Y5(){return!0}function Ai(){return!1}function _0(t){function r(l,i,o,n,h){this._reactName=l,this._targetInst=o,this.type=i,this.nativeEvent=n,this.target=h,this.currentTarget=null;for(var v in t)t.hasOwnProperty(v)&&(l=t[v],this[v]=l?l(n):n[v]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?Y5:Ai,this.isPropagationStopped=Ai,this}return N1(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Y5)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Y5)},persist:function(){},isPersistent:Y5}),r}var v8={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vr=_0(v8),It=N1({},v8,{view:0,detail:0}),Su=_0(It),U7,G7,ot,U3=N1({},It,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gr,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==ot&&(ot&&t.type==="mousemove"?(U7=t.screenX-ot.screenX,G7=t.screenY-ot.screenY):G7=U7=0,ot=t),U7)},movementY:function(t){return"movementY"in t?t.movementY:G7}}),Vi=_0(U3),yu=N1({},U3,{dataTransfer:0}),bu=_0(yu),Tu=N1({},It,{relatedTarget:0}),W7=_0(Tu),$u=N1({},v8,{animationName:0,elapsedTime:0,pseudoElement:0}),Ou=_0($u),Fu=N1({},v8,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Du=_0(Fu),Eu=N1({},v8,{data:0}),mi=_0(Eu),Nu={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_u={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Ru={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Iu(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=Ru[t])?!!r[t]:!1}function gr(){return Iu}var ku=N1({},It,{key:function(t){if(t.key){var r=Nu[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=v3(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?_u[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gr,charCode:function(t){return t.type==="keypress"?v3(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?v3(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Uu=_0(ku),Gu=N1({},U3,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Zi=_0(Gu),Wu=N1({},It,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gr}),ju=_0(Wu),qu=N1({},v8,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ku=_0(qu),Yu=N1({},U3,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Xu=_0(Yu),Qu=[9,13,27,32],ur=r4&&"CompositionEvent"in window,Mt=null;r4&&"documentMode"in document&&(Mt=document.documentMode);var Ju=r4&&"TextEvent"in window&&!Mt,Wo=r4&&(!ur||Mt&&8<Mt&&11>=Mt),xi=" ",Li=!1;function jo(t,r){switch(t){case"keyup":return Qu.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qo(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var I6=!1;function ts(t,r){switch(t){case"compositionend":return qo(r);case"keypress":return r.which!==32?null:(Li=!0,xi);case"textInput":return t=r.data,t===xi&&Li?null:t;default:return null}}function as(t,r){if(I6)return t==="compositionend"||!ur&&jo(t,r)?(t=Go(),d3=dr=L4=null,I6=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return Wo&&r.locale!=="ko"?null:r.data;default:return null}}var rs={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function zi(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!rs[t.type]:r==="textarea"}function Ko(t,r,l,i){Co(i),r=C3(r,"onChange"),0<r.length&&(l=new vr("onChange","change",null,l,i),t.push({event:l,listeners:r}))}var ft=null,St=null;function ls(t){nn(t,0)}function G3(t){var r=G6(t);if(Ao(r))return t}function es(t,r){if(t==="change")return r}var Yo=!1;r4&&(r4?(Q5="oninput"in document,Q5||(j7=document.createElement("div"),j7.setAttribute("oninput","return;"),Q5=typeof j7.oninput=="function"),X5=Q5):X5=!1,Yo=X5&&(!document.documentMode||9<document.documentMode));var X5,Q5,j7;function Ci(){ft&&(ft.detachEvent("onpropertychange",Xo),St=ft=null)}function Xo(t){if(t.propertyName==="value"&&G3(St)){var r=[];Ko(r,St,t,ir(t)),So(ls,r)}}function is(t,r,l){t==="focusin"?(Ci(),ft=r,St=l,ft.attachEvent("onpropertychange",Xo)):t==="focusout"&&Ci()}function os(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return G3(St)}function ns(t,r){if(t==="click")return G3(r)}function cs(t,r){if(t==="input"||t==="change")return G3(r)}function hs(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var M2=typeof Object.is=="function"?Object.is:hs;function yt(t,r){if(M2(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;var l=Object.keys(t),i=Object.keys(r);if(l.length!==i.length)return!1;for(i=0;i<l.length;i++){var o=l[i];if(!n9.call(r,o)||!M2(t[o],r[o]))return!1}return!0}function wi(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Bi(t,r){var l=wi(t);t=0;for(var i;l;){if(l.nodeType===3){if(i=t+l.textContent.length,t<=r&&i>=r)return{node:l,offset:r-t};t=i}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=wi(l)}}function Qo(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?Qo(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function Jo(){for(var t=window,r=A3();r instanceof t.HTMLIFrameElement;){try{var l=typeof r.contentWindow.location.href=="string"}catch{l=!1}if(l)t=r.contentWindow;else break;r=A3(t.document)}return r}function sr(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}function ds(t){var r=Jo(),l=t.focusedElem,i=t.selectionRange;if(r!==l&&l&&l.ownerDocument&&Qo(l.ownerDocument.documentElement,l)){if(i!==null&&sr(l)){if(r=i.start,t=i.end,t===void 0&&(t=r),"selectionStart"in l)l.selectionStart=r,l.selectionEnd=Math.min(t,l.value.length);else if(t=(r=l.ownerDocument||document)&&r.defaultView||window,t.getSelection){t=t.getSelection();var o=l.textContent.length,n=Math.min(i.start,o);i=i.end===void 0?n:Math.min(i.end,o),!t.extend&&n>i&&(o=i,i=n,n=o),o=Bi(l,n);var h=Bi(l,i);o&&h&&(t.rangeCount!==1||t.anchorNode!==o.node||t.anchorOffset!==o.offset||t.focusNode!==h.node||t.focusOffset!==h.offset)&&(r=r.createRange(),r.setStart(o.node,o.offset),t.removeAllRanges(),n>i?(t.addRange(r),t.extend(h.node,h.offset)):(r.setEnd(h.node,h.offset),t.addRange(r)))}}for(r=[],t=l;t=t.parentNode;)t.nodeType===1&&r.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<r.length;l++)t=r[l],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var vs=r4&&"documentMode"in document&&11>=document.documentMode,k6=null,C9=null,At=null,w9=!1;function Pi(t,r,l){var i=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;w9||k6==null||k6!==A3(i)||(i=k6,"selectionStart"in i&&sr(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),At&&yt(At,i)||(At=i,i=C3(C9,"onSelect"),0<i.length&&(r=new vr("onSelect","select",null,r,l),t.push({event:r,listeners:i}),r.target=k6)))}function J5(t,r){var l={};return l[t.toLowerCase()]=r.toLowerCase(),l["Webkit"+t]="webkit"+r,l["Moz"+t]="moz"+r,l}var U6={animationend:J5("Animation","AnimationEnd"),animationiteration:J5("Animation","AnimationIteration"),animationstart:J5("Animation","AnimationStart"),transitionend:J5("Transition","TransitionEnd")},q7={},tn={};r4&&(tn=document.createElement("div").style,"AnimationEvent"in window||(delete U6.animationend.animation,delete U6.animationiteration.animation,delete U6.animationstart.animation),"TransitionEvent"in window||delete U6.transitionend.transition);function W3(t){if(q7[t])return q7[t];if(!U6[t])return t;var r=U6[t],l;for(l in r)if(r.hasOwnProperty(l)&&l in tn)return q7[t]=r[l];return t}var an=W3("animationend"),rn=W3("animationiteration"),ln=W3("animationstart"),en=W3("transitionend"),on=new Map,Si="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function F4(t,r){on.set(t,r),f6(r,[t])}for(t3=0;t3<Si.length;t3++)a3=Si[t3],yi=a3.toLowerCase(),bi=a3[0].toUpperCase()+a3.slice(1),F4(yi,"on"+bi);var a3,yi,bi,t3;F4(an,"onAnimationEnd");F4(rn,"onAnimationIteration");F4(ln,"onAnimationStart");F4("dblclick","onDoubleClick");F4("focusin","onFocus");F4("focusout","onBlur");F4(en,"onTransitionEnd");e8("onMouseEnter",["mouseout","mouseover"]);e8("onMouseLeave",["mouseout","mouseover"]);e8("onPointerEnter",["pointerout","pointerover"]);e8("onPointerLeave",["pointerout","pointerover"]);f6("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));f6("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));f6("onBeforeInput",["compositionend","keypress","textInput","paste"]);f6("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));f6("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));f6("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var st="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),gs=new Set("cancel close invalid load scroll toggle".split(" ").concat(st));function Ti(t,r,l){var i=t.type||"unknown-event";t.currentTarget=l,gu(i,r,void 0,t),t.currentTarget=null}function nn(t,r){r=(r&4)!==0;for(var l=0;l<t.length;l++){var i=t[l],o=i.event;i=i.listeners;t:{var n=void 0;if(r)for(var h=i.length-1;0<=h;h--){var v=i[h],u=v.instance,s=v.currentTarget;if(v=v.listener,u!==n&&o.isPropagationStopped())break t;Ti(o,v,s),n=u}else for(h=0;h<i.length;h++){if(v=i[h],u=v.instance,s=v.currentTarget,v=v.listener,u!==n&&o.isPropagationStopped())break t;Ti(o,v,s),n=u}}}if(m3)throw t=Z9,m3=!1,Z9=null,t}function y1(t,r){var l=r[b9];l===void 0&&(l=r[b9]=new Set);var i=t+"__bubble";l.has(i)||(cn(r,t,2,!1),l.add(i))}function K7(t,r,l){var i=0;r&&(i|=4),cn(l,t,i,r)}var r3="_reactListening"+Math.random().toString(36).slice(2);function bt(t){if(!t[r3]){t[r3]=!0,so.forEach(function(l){l!=="selectionchange"&&(gs.has(l)||K7(l,!1,t),K7(l,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[r3]||(r[r3]=!0,K7("selectionchange",!1,r))}}function cn(t,r,l,i){switch(Uo(r)){case 1:var o=Bu;break;case 4:o=Pu;break;default:o=hr}l=o.bind(null,r,l,t),o=void 0,!m9||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(o=!0),i?o!==void 0?t.addEventListener(r,l,{capture:!0,passive:o}):t.addEventListener(r,l,!0):o!==void 0?t.addEventListener(r,l,{passive:o}):t.addEventListener(r,l,!1)}function Y7(t,r,l,i,o){var n=i;if((r&1)===0&&(r&2)===0&&i!==null)t:for(;;){if(i===null)return;var h=i.tag;if(h===3||h===4){var v=i.stateNode.containerInfo;if(v===o||v.nodeType===8&&v.parentNode===o)break;if(h===4)for(h=i.return;h!==null;){var u=h.tag;if((u===3||u===4)&&(u=h.stateNode.containerInfo,u===o||u.nodeType===8&&u.parentNode===o))return;h=h.return}for(;v!==null;){if(h=c6(v),h===null)return;if(u=h.tag,u===5||u===6){i=n=h;continue t}v=v.parentNode}}i=i.return}So(function(){var s=n,p=ir(l),A=[];t:{var M=on.get(t);if(M!==void 0){var H=vr,Z=t;switch(t){case"keypress":if(v3(l)===0)break t;case"keydown":case"keyup":H=Uu;break;case"focusin":Z="focus",H=W7;break;case"focusout":Z="blur",H=W7;break;case"beforeblur":case"afterblur":H=W7;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=Vi;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=bu;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=ju;break;case an:case rn:case ln:H=Ou;break;case en:H=Ku;break;case"scroll":H=Su;break;case"wheel":H=Xu;break;case"copy":case"cut":case"paste":H=Du;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=Zi}var L=(r&4)!==0,w=!L&&t==="scroll",m=L?M!==null?M+"Capture":null:M;L=[];for(var V=s,x;V!==null;){x=V;var z=x.stateNode;if(x.tag===5&&z!==null&&(x=z,m!==null&&(z=Ct(V,m),z!=null&&L.push(Tt(V,z,x)))),w)break;V=V.return}0<L.length&&(M=new H(M,Z,null,l,p),A.push({event:M,listeners:L}))}}if((r&7)===0){t:{if(M=t==="mouseover"||t==="pointerover",H=t==="mouseout"||t==="pointerout",M&&l!==A9&&(Z=l.relatedTarget||l.fromElement)&&(c6(Z)||Z[l4]))break t;if((H||M)&&(M=p.window===p?p:(M=p.ownerDocument)?M.defaultView||M.parentWindow:window,H?(Z=l.relatedTarget||l.toElement,H=s,Z=Z?c6(Z):null,Z!==null&&(w=A6(Z),Z!==w||Z.tag!==5&&Z.tag!==6)&&(Z=null)):(H=null,Z=s),H!==Z)){if(L=Vi,z="onMouseLeave",m="onMouseEnter",V="mouse",(t==="pointerout"||t==="pointerover")&&(L=Zi,z="onPointerLeave",m="onPointerEnter",V="pointer"),w=H==null?M:G6(H),x=Z==null?M:G6(Z),M=new L(z,V+"leave",H,l,p),M.target=w,M.relatedTarget=x,z=null,c6(p)===s&&(L=new L(m,V+"enter",Z,l,p),L.target=x,L.relatedTarget=w,z=L),w=z,H&&Z)a:{for(L=H,m=Z,V=0,x=L;x;x=N6(x))V++;for(x=0,z=m;z;z=N6(z))x++;for(;0<V-x;)L=N6(L),V--;for(;0<x-V;)m=N6(m),x--;for(;V--;){if(L===m||m!==null&&L===m.alternate)break a;L=N6(L),m=N6(m)}L=null}else L=null;H!==null&&$i(A,M,H,L,!1),Z!==null&&w!==null&&$i(A,w,Z,L,!0)}}t:{if(M=s?G6(s):window,H=M.nodeName&&M.nodeName.toLowerCase(),H==="select"||H==="input"&&M.type==="file")var B=es;else if(zi(M))if(Yo)B=cs;else{B=os;var S=is}else(H=M.nodeName)&&H.toLowerCase()==="input"&&(M.type==="checkbox"||M.type==="radio")&&(B=ns);if(B&&(B=B(t,s))){Ko(A,B,l,p);break t}S&&S(t,M,s),t==="focusout"&&(S=M._wrapperState)&&S.controlled&&M.type==="number"&&s9(M,"number",M.value)}switch(S=s?G6(s):window,t){case"focusin":(zi(S)||S.contentEditable==="true")&&(k6=S,C9=s,At=null);break;case"focusout":At=C9=k6=null;break;case"mousedown":w9=!0;break;case"contextmenu":case"mouseup":case"dragend":w9=!1,Pi(A,l,p);break;case"selectionchange":if(vs)break;case"keydown":case"keyup":Pi(A,l,p)}var $;if(ur)t:{switch(t){case"compositionstart":var y="onCompositionStart";break t;case"compositionend":y="onCompositionEnd";break t;case"compositionupdate":y="onCompositionUpdate";break t}y=void 0}else I6?jo(t,l)&&(y="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(y="onCompositionStart");y&&(Wo&&l.locale!=="ko"&&(I6||y!=="onCompositionStart"?y==="onCompositionEnd"&&I6&&($=Go()):(L4=p,dr="value"in L4?L4.value:L4.textContent,I6=!0)),S=C3(s,y),0<S.length&&(y=new mi(y,t,null,l,p),A.push({event:y,listeners:S}),$?y.data=$:($=qo(l),$!==null&&(y.data=$)))),($=Ju?ts(t,l):as(t,l))&&(s=C3(s,"onBeforeInput"),0<s.length&&(p=new mi("onBeforeInput","beforeinput",null,l,p),A.push({event:p,listeners:s}),p.data=$))}nn(A,r)})}function Tt(t,r,l){return{instance:t,listener:r,currentTarget:l}}function C3(t,r){for(var l=r+"Capture",i=[];t!==null;){var o=t,n=o.stateNode;o.tag===5&&n!==null&&(o=n,n=Ct(t,l),n!=null&&i.unshift(Tt(t,n,o)),n=Ct(t,r),n!=null&&i.push(Tt(t,n,o))),t=t.return}return i}function N6(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function $i(t,r,l,i,o){for(var n=r._reactName,h=[];l!==null&&l!==i;){var v=l,u=v.alternate,s=v.stateNode;if(u!==null&&u===i)break;v.tag===5&&s!==null&&(v=s,o?(u=Ct(l,n),u!=null&&h.unshift(Tt(l,u,v))):o||(u=Ct(l,n),u!=null&&h.push(Tt(l,u,v)))),l=l.return}h.length!==0&&t.push({event:r,listeners:h})}var us=/\r\n?/g,ss=/\u0000|\uFFFD/g;function Oi(t){return(typeof t=="string"?t:""+t).replace(us,`
6
6
  `).replace(ss,"")}function l3(t,r,l){if(r=Oi(r),Oi(t)!==r&&l)throw Error(N(425))}function w3(){}var B9=null,P9=null;function S9(t,r){return t==="textarea"||t==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var y9=typeof setTimeout=="function"?setTimeout:void 0,ps=typeof clearTimeout=="function"?clearTimeout:void 0,Fi=typeof Promise=="function"?Promise:void 0,Hs=typeof queueMicrotask=="function"?queueMicrotask:typeof Fi<"u"?function(t){return Fi.resolve(null).then(t).catch(Ms)}:y9;function Ms(t){setTimeout(function(){throw t})}function X7(t,r){var l=r,i=0;do{var o=l.nextSibling;if(t.removeChild(l),o&&o.nodeType===8)if(l=o.data,l==="/$"){if(i===0){t.removeChild(o),Pt(r);return}i--}else l!=="$"&&l!=="$?"&&l!=="$!"||i++;l=o}while(l);Pt(r)}function P4(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r==="$"||r==="$!"||r==="$?")break;if(r==="/$")return null}}return t}function Di(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"){if(r===0)return t;r--}else l==="/$"&&r++}t=t.previousSibling}return null}var g8=Math.random().toString(36).slice(2),b2="__reactFiber$"+g8,$t="__reactProps$"+g8,l4="__reactContainer$"+g8,b9="__reactEvents$"+g8,fs="__reactListeners$"+g8,As="__reactHandles$"+g8;function c6(t){var r=t[b2];if(r)return r;for(var l=t.parentNode;l;){if(r=l[l4]||l[b2]){if(l=r.alternate,r.child!==null||l!==null&&l.child!==null)for(t=Di(t);t!==null;){if(l=t[b2])return l;t=Di(t)}return r}t=l,l=t.parentNode}return null}function kt(t){return t=t[b2]||t[l4],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function G6(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(N(33))}function j3(t){return t[$t]||null}var T9=[],W6=-1;function D4(t){return{current:t}}function b1(t){0>W6||(t.current=T9[W6],T9[W6]=null,W6--)}function B1(t,r){W6++,T9[W6]=t.current,t.current=r}var O4={},f0=D4(O4),P0=D4(!1),u6=O4;function i8(t,r){var l=t.type.contextTypes;if(!l)return O4;var i=t.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===r)return i.__reactInternalMemoizedMaskedChildContext;var o={},n;for(n in l)o[n]=r[n];return i&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=r,t.__reactInternalMemoizedMaskedChildContext=o),o}function S0(t){return t=t.childContextTypes,t!=null}function B3(){b1(P0),b1(f0)}function Ei(t,r,l){if(f0.current!==O4)throw Error(N(168));B1(f0,r),B1(P0,l)}function hn(t,r,l){var i=t.stateNode;if(r=r.childContextTypes,typeof i.getChildContext!="function")return l;i=i.getChildContext();for(var o in i)if(!(o in r))throw Error(N(108,iu(t)||"Unknown",o));return N1({},l,i)}function P3(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||O4,u6=f0.current,B1(f0,t),B1(P0,P0.current),!0}function Ni(t,r,l){var i=t.stateNode;if(!i)throw Error(N(169));l?(t=hn(t,r,u6),i.__reactInternalMemoizedMergedChildContext=t,b1(P0),b1(f0),B1(f0,t)):b1(P0),B1(P0,l)}var Q2=null,q3=!1,Q7=!1;function dn(t){Q2===null?Q2=[t]:Q2.push(t)}function Vs(t){q3=!0,dn(t)}function E4(){if(!Q7&&Q2!==null){Q7=!0;var t=0,r=x1;try{var l=Q2;for(x1=1;t<l.length;t++){var i=l[t];do i=i(!0);while(i!==null)}Q2=null,q3=!1}catch(o){throw Q2!==null&&(Q2=Q2.slice(t+1)),$o(or,E4),o}finally{x1=r,Q7=!1}}return null}var j6=[],q6=0,S3=null,y3=0,q0=[],K0=0,s6=null,J2=1,t4="";function o6(t,r){j6[q6++]=y3,j6[q6++]=S3,S3=t,y3=r}function vn(t,r,l){q0[K0++]=J2,q0[K0++]=t4,q0[K0++]=s6,s6=t;var i=J2;t=t4;var o=32-p2(i)-1;i&=~(1<<o),l+=1;var n=32-p2(r)+o;if(30<n){var h=o-o%5;n=(i&(1<<h)-1).toString(32),i>>=h,o-=h,J2=1<<32-p2(r)+o|l<<o|i,t4=n+t}else J2=1<<n|l<<o|i,t4=t}function pr(t){t.return!==null&&(o6(t,1),vn(t,1,0))}function Hr(t){for(;t===S3;)S3=j6[--q6],j6[q6]=null,y3=j6[--q6],j6[q6]=null;for(;t===s6;)s6=q0[--K0],q0[K0]=null,t4=q0[--K0],q0[K0]=null,J2=q0[--K0],q0[K0]=null}var E0=null,D0=null,$1=!1,s2=null;function gn(t,r){var l=Y0(5,null,null,0);l.elementType="DELETED",l.stateNode=r,l.return=t,r=t.deletions,r===null?(t.deletions=[l],t.flags|=16):r.push(l)}function _i(t,r){switch(t.tag){case 5:var l=t.type;return r=r.nodeType!==1||l.toLowerCase()!==r.nodeName.toLowerCase()?null:r,r!==null?(t.stateNode=r,E0=t,D0=P4(r.firstChild),!0):!1;case 6:return r=t.pendingProps===""||r.nodeType!==3?null:r,r!==null?(t.stateNode=r,E0=t,D0=null,!0):!1;case 13:return r=r.nodeType!==8?null:r,r!==null?(l=s6!==null?{id:J2,overflow:t4}:null,t.memoizedState={dehydrated:r,treeContext:l,retryLane:1073741824},l=Y0(18,null,null,0),l.stateNode=r,l.return=t,t.child=l,E0=t,D0=null,!0):!1;default:return!1}}function $9(t){return(t.mode&1)!==0&&(t.flags&128)===0}function O9(t){if($1){var r=D0;if(r){var l=r;if(!_i(t,r)){if($9(t))throw Error(N(418));r=P4(l.nextSibling);var i=E0;r&&_i(t,r)?gn(i,l):(t.flags=t.flags&-4097|2,$1=!1,E0=t)}}else{if($9(t))throw Error(N(418));t.flags=t.flags&-4097|2,$1=!1,E0=t}}}function Ri(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;E0=t}function e3(t){if(t!==E0)return!1;if(!$1)return Ri(t),$1=!0,!1;var r;if((r=t.tag!==3)&&!(r=t.tag!==5)&&(r=t.type,r=r!=="head"&&r!=="body"&&!S9(t.type,t.memoizedProps)),r&&(r=D0)){if($9(t))throw un(),Error(N(418));for(;r;)gn(t,r),r=P4(r.nextSibling)}if(Ri(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(N(317));t:{for(t=t.nextSibling,r=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"){if(r===0){D0=P4(t.nextSibling);break t}r--}else l!=="$"&&l!=="$!"&&l!=="$?"||r++}t=t.nextSibling}D0=null}}else D0=E0?P4(t.stateNode.nextSibling):null;return!0}function un(){for(var t=D0;t;)t=P4(t.nextSibling)}function o8(){D0=E0=null,$1=!1}function Mr(t){s2===null?s2=[t]:s2.push(t)}var ms=o4.ReactCurrentBatchConfig;function nt(t,r,l){if(t=l.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(N(309));var i=l.stateNode}if(!i)throw Error(N(147,t));var o=i,n=""+t;return r!==null&&r.ref!==null&&typeof r.ref=="function"&&r.ref._stringRef===n?r.ref:(r=function(h){var v=o.refs;h===null?delete v[n]:v[n]=h},r._stringRef=n,r)}if(typeof t!="string")throw Error(N(284));if(!l._owner)throw Error(N(290,t))}return t}function i3(t,r){throw t=Object.prototype.toString.call(r),Error(N(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t))}function Ii(t){var r=t._init;return r(t._payload)}function sn(t){function r(m,V){if(t){var x=m.deletions;x===null?(m.deletions=[V],m.flags|=16):x.push(V)}}function l(m,V){if(!t)return null;for(;V!==null;)r(m,V),V=V.sibling;return null}function i(m,V){for(m=new Map;V!==null;)V.key!==null?m.set(V.key,V):m.set(V.index,V),V=V.sibling;return m}function o(m,V){return m=T4(m,V),m.index=0,m.sibling=null,m}function n(m,V,x){return m.index=x,t?(x=m.alternate,x!==null?(x=x.index,x<V?(m.flags|=2,V):x):(m.flags|=2,V)):(m.flags|=1048576,V)}function h(m){return t&&m.alternate===null&&(m.flags|=2),m}function v(m,V,x,z){return V===null||V.tag!==6?(V=i9(x,m.mode,z),V.return=m,V):(V=o(V,x),V.return=m,V)}function u(m,V,x,z){var B=x.type;return B===R6?p(m,V,x.props.children,z,x.key):V!==null&&(V.elementType===B||typeof B=="object"&&B!==null&&B.$$typeof===V4&&Ii(B)===V.type)?(z=o(V,x.props),z.ref=nt(m,V,x),z.return=m,z):(z=f3(x.type,x.key,x.props,null,m.mode,z),z.ref=nt(m,V,x),z.return=m,z)}function s(m,V,x,z){return V===null||V.tag!==4||V.stateNode.containerInfo!==x.containerInfo||V.stateNode.implementation!==x.implementation?(V=o9(x,m.mode,z),V.return=m,V):(V=o(V,x.children||[]),V.return=m,V)}function p(m,V,x,z,B){return V===null||V.tag!==7?(V=g6(x,m.mode,z,B),V.return=m,V):(V=o(V,x),V.return=m,V)}function A(m,V,x){if(typeof V=="string"&&V!==""||typeof V=="number")return V=i9(""+V,m.mode,x),V.return=m,V;if(typeof V=="object"&&V!==null){switch(V.$$typeof){case U5:return x=f3(V.type,V.key,V.props,null,m.mode,x),x.ref=nt(m,null,V),x.return=m,x;case _6:return V=o9(V,m.mode,x),V.return=m,V;case V4:var z=V._init;return A(m,z(V._payload),x)}if(gt(V)||lt(V))return V=g6(V,m.mode,x,null),V.return=m,V;i3(m,V)}return null}function M(m,V,x,z){var B=V!==null?V.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return B!==null?null:v(m,V,""+x,z);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case U5:return x.key===B?u(m,V,x,z):null;case _6:return x.key===B?s(m,V,x,z):null;case V4:return B=x._init,M(m,V,B(x._payload),z)}if(gt(x)||lt(x))return B!==null?null:p(m,V,x,z,null);i3(m,x)}return null}function H(m,V,x,z,B){if(typeof z=="string"&&z!==""||typeof z=="number")return m=m.get(x)||null,v(V,m,""+z,B);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case U5:return m=m.get(z.key===null?x:z.key)||null,u(V,m,z,B);case _6:return m=m.get(z.key===null?x:z.key)||null,s(V,m,z,B);case V4:var S=z._init;return H(m,V,x,S(z._payload),B)}if(gt(z)||lt(z))return m=m.get(x)||null,p(V,m,z,B,null);i3(V,z)}return null}function Z(m,V,x,z){for(var B=null,S=null,$=V,y=V=0,O=null;$!==null&&y<x.length;y++){$.index>y?(O=$,$=null):O=$.sibling;var T=M(m,$,x[y],z);if(T===null){$===null&&($=O);break}t&&$&&T.alternate===null&&r(m,$),V=n(T,V,y),S===null?B=T:S.sibling=T,S=T,$=O}if(y===x.length)return l(m,$),$1&&o6(m,y),B;if($===null){for(;y<x.length;y++)$=A(m,x[y],z),$!==null&&(V=n($,V,y),S===null?B=$:S.sibling=$,S=$);return $1&&o6(m,y),B}for($=i(m,$);y<x.length;y++)O=H($,m,y,x[y],z),O!==null&&(t&&O.alternate!==null&&$.delete(O.key===null?y:O.key),V=n(O,V,y),S===null?B=O:S.sibling=O,S=O);return t&&$.forEach(function(D){return r(m,D)}),$1&&o6(m,y),B}function L(m,V,x,z){var B=lt(x);if(typeof B!="function")throw Error(N(150));if(x=B.call(x),x==null)throw Error(N(151));for(var S=B=null,$=V,y=V=0,O=null,T=x.next();$!==null&&!T.done;y++,T=x.next()){$.index>y?(O=$,$=null):O=$.sibling;var D=M(m,$,T.value,z);if(D===null){$===null&&($=O);break}t&&$&&D.alternate===null&&r(m,$),V=n(D,V,y),S===null?B=D:S.sibling=D,S=D,$=O}if(T.done)return l(m,$),$1&&o6(m,y),B;if($===null){for(;!T.done;y++,T=x.next())T=A(m,T.value,z),T!==null&&(V=n(T,V,y),S===null?B=T:S.sibling=T,S=T);return $1&&o6(m,y),B}for($=i(m,$);!T.done;y++,T=x.next())T=H($,m,y,T.value,z),T!==null&&(t&&T.alternate!==null&&$.delete(T.key===null?y:T.key),V=n(T,V,y),S===null?B=T:S.sibling=T,S=T);return t&&$.forEach(function(k){return r(m,k)}),$1&&o6(m,y),B}function w(m,V,x,z){if(typeof x=="object"&&x!==null&&x.type===R6&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case U5:t:{for(var B=x.key,S=V;S!==null;){if(S.key===B){if(B=x.type,B===R6){if(S.tag===7){l(m,S.sibling),V=o(S,x.props.children),V.return=m,m=V;break t}}else if(S.elementType===B||typeof B=="object"&&B!==null&&B.$$typeof===V4&&Ii(B)===S.type){l(m,S.sibling),V=o(S,x.props),V.ref=nt(m,S,x),V.return=m,m=V;break t}l(m,S);break}else r(m,S);S=S.sibling}x.type===R6?(V=g6(x.props.children,m.mode,z,x.key),V.return=m,m=V):(z=f3(x.type,x.key,x.props,null,m.mode,z),z.ref=nt(m,V,x),z.return=m,m=z)}return h(m);case _6:t:{for(S=x.key;V!==null;){if(V.key===S)if(V.tag===4&&V.stateNode.containerInfo===x.containerInfo&&V.stateNode.implementation===x.implementation){l(m,V.sibling),V=o(V,x.children||[]),V.return=m,m=V;break t}else{l(m,V);break}else r(m,V);V=V.sibling}V=o9(x,m.mode,z),V.return=m,m=V}return h(m);case V4:return S=x._init,w(m,V,S(x._payload),z)}if(gt(x))return Z(m,V,x,z);if(lt(x))return L(m,V,x,z);i3(m,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,V!==null&&V.tag===6?(l(m,V.sibling),V=o(V,x),V.return=m,m=V):(l(m,V),V=i9(x,m.mode,z),V.return=m,m=V),h(m)):l(m,V)}return w}var n8=sn(!0),pn=sn(!1),b3=D4(null),T3=null,K6=null,fr=null;function Ar(){fr=K6=T3=null}function Vr(t){var r=b3.current;b1(b3),t._currentValue=r}function F9(t,r,l){for(;t!==null;){var i=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,i!==null&&(i.childLanes|=r)):i!==null&&(i.childLanes&r)!==r&&(i.childLanes|=r),t===l)break;t=t.return}}function r8(t,r){T3=t,fr=K6=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&r)!==0&&(B0=!0),t.firstContext=null)}function Q0(t){var r=t._currentValue;if(fr!==t)if(t={context:t,memoizedValue:r,next:null},K6===null){if(T3===null)throw Error(N(308));K6=t,T3.dependencies={lanes:0,firstContext:t}}else K6=K6.next=t;return r}var h6=null;function mr(t){h6===null?h6=[t]:h6.push(t)}function Hn(t,r,l,i){var o=r.interleaved;return o===null?(l.next=l,mr(r)):(l.next=o.next,o.next=l),r.interleaved=l,e4(t,i)}function e4(t,r){t.lanes|=r;var l=t.alternate;for(l!==null&&(l.lanes|=r),l=t,t=t.return;t!==null;)t.childLanes|=r,l=t.alternate,l!==null&&(l.childLanes|=r),l=t,t=t.return;return l.tag===3?l.stateNode:null}var m4=!1;function Zr(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Mn(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function a4(t,r){return{eventTime:t,lane:r,tag:0,payload:null,callback:null,next:null}}function S4(t,r,l){var i=t.updateQueue;if(i===null)return null;if(i=i.shared,(m1&2)!==0){var o=i.pending;return o===null?r.next=r:(r.next=o.next,o.next=r),i.pending=r,e4(t,l)}return o=i.interleaved,o===null?(r.next=r,mr(i)):(r.next=o.next,o.next=r),i.interleaved=r,e4(t,l)}function g3(t,r,l){if(r=r.updateQueue,r!==null&&(r=r.shared,(l&4194240)!==0)){var i=r.lanes;i&=t.pendingLanes,l|=i,r.lanes=l,nr(t,l)}}function ki(t,r){var l=t.updateQueue,i=t.alternate;if(i!==null&&(i=i.updateQueue,l===i)){var o=null,n=null;if(l=l.firstBaseUpdate,l!==null){do{var h={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};n===null?o=n=h:n=n.next=h,l=l.next}while(l!==null);n===null?o=n=r:n=n.next=r}else o=n=r;l={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:n,shared:i.shared,effects:i.effects},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=r:t.next=r,l.lastBaseUpdate=r}function $3(t,r,l,i){var o=t.updateQueue;m4=!1;var n=o.firstBaseUpdate,h=o.lastBaseUpdate,v=o.shared.pending;if(v!==null){o.shared.pending=null;var u=v,s=u.next;u.next=null,h===null?n=s:h.next=s,h=u;var p=t.alternate;p!==null&&(p=p.updateQueue,v=p.lastBaseUpdate,v!==h&&(v===null?p.firstBaseUpdate=s:v.next=s,p.lastBaseUpdate=u))}if(n!==null){var A=o.baseState;h=0,p=s=u=null,v=n;do{var M=v.lane,H=v.eventTime;if((i&M)===M){p!==null&&(p=p.next={eventTime:H,lane:0,tag:v.tag,payload:v.payload,callback:v.callback,next:null});t:{var Z=t,L=v;switch(M=r,H=l,L.tag){case 1:if(Z=L.payload,typeof Z=="function"){A=Z.call(H,A,M);break t}A=Z;break t;case 3:Z.flags=Z.flags&-65537|128;case 0:if(Z=L.payload,M=typeof Z=="function"?Z.call(H,A,M):Z,M==null)break t;A=N1({},A,M);break t;case 2:m4=!0}}v.callback!==null&&v.lane!==0&&(t.flags|=64,M=o.effects,M===null?o.effects=[v]:M.push(v))}else H={eventTime:H,lane:M,tag:v.tag,payload:v.payload,callback:v.callback,next:null},p===null?(s=p=H,u=A):p=p.next=H,h|=M;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;M=v,v=M.next,M.next=null,o.lastBaseUpdate=M,o.shared.pending=null}}while(!0);if(p===null&&(u=A),o.baseState=u,o.firstBaseUpdate=s,o.lastBaseUpdate=p,r=o.shared.interleaved,r!==null){o=r;do h|=o.lane,o=o.next;while(o!==r)}else n===null&&(o.shared.lanes=0);H6|=h,t.lanes=h,t.memoizedState=A}}function Ui(t,r,l){if(t=r.effects,r.effects=null,t!==null)for(r=0;r<t.length;r++){var i=t[r],o=i.callback;if(o!==null){if(i.callback=null,i=l,typeof o!="function")throw Error(N(191,o));o.call(i)}}}var Ut={},$2=D4(Ut),Ot=D4(Ut),Ft=D4(Ut);function d6(t){if(t===Ut)throw Error(N(174));return t}function xr(t,r){switch(B1(Ft,r),B1(Ot,t),B1($2,Ut),t=r.nodeType,t){case 9:case 11:r=(r=r.documentElement)?r.namespaceURI:H9(null,"");break;default:t=t===8?r.parentNode:r,r=t.namespaceURI||null,t=t.tagName,r=H9(r,t)}b1($2),B1($2,r)}function c8(){b1($2),b1(Ot),b1(Ft)}function fn(t){d6(Ft.current);var r=d6($2.current),l=H9(r,t.type);r!==l&&(B1(Ot,t),B1($2,l))}function Lr(t){Ot.current===t&&(b1($2),b1(Ot))}var D1=D4(0);function O3(t){for(var r=t;r!==null;){if(r.tag===13){var l=r.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var J7=[];function zr(){for(var t=0;t<J7.length;t++)J7[t]._workInProgressVersionPrimary=null;J7.length=0}var u3=o4.ReactCurrentDispatcher,t9=o4.ReactCurrentBatchConfig,p6=0,E1=null,Q1=null,a0=null,F3=!1,Vt=!1,Dt=0,Zs=0;function p0(){throw Error(N(321))}function Cr(t,r){if(r===null)return!1;for(var l=0;l<r.length&&l<t.length;l++)if(!M2(t[l],r[l]))return!1;return!0}function wr(t,r,l,i,o,n){if(p6=n,E1=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,u3.current=t===null||t.memoizedState===null?Cs:ws,t=l(i,o),Vt){n=0;do{if(Vt=!1,Dt=0,25<=n)throw Error(N(301));n+=1,a0=Q1=null,r.updateQueue=null,u3.current=Bs,t=l(i,o)}while(Vt)}if(u3.current=D3,r=Q1!==null&&Q1.next!==null,p6=0,a0=Q1=E1=null,F3=!1,r)throw Error(N(300));return t}function Br(){var t=Dt!==0;return Dt=0,t}function y2(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return a0===null?E1.memoizedState=a0=t:a0=a0.next=t,a0}function J0(){if(Q1===null){var t=E1.alternate;t=t!==null?t.memoizedState:null}else t=Q1.next;var r=a0===null?E1.memoizedState:a0.next;if(r!==null)a0=r,Q1=t;else{if(t===null)throw Error(N(310));Q1=t,t={memoizedState:Q1.memoizedState,baseState:Q1.baseState,baseQueue:Q1.baseQueue,queue:Q1.queue,next:null},a0===null?E1.memoizedState=a0=t:a0=a0.next=t}return a0}function Et(t,r){return typeof r=="function"?r(t):r}function a9(t){var r=J0(),l=r.queue;if(l===null)throw Error(N(311));l.lastRenderedReducer=t;var i=Q1,o=i.baseQueue,n=l.pending;if(n!==null){if(o!==null){var h=o.next;o.next=n.next,n.next=h}i.baseQueue=o=n,l.pending=null}if(o!==null){n=o.next,i=i.baseState;var v=h=null,u=null,s=n;do{var p=s.lane;if((p6&p)===p)u!==null&&(u=u.next={lane:0,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null}),i=s.hasEagerState?s.eagerState:t(i,s.action);else{var A={lane:p,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null};u===null?(v=u=A,h=i):u=u.next=A,E1.lanes|=p,H6|=p}s=s.next}while(s!==null&&s!==n);u===null?h=i:u.next=v,M2(i,r.memoizedState)||(B0=!0),r.memoizedState=i,r.baseState=h,r.baseQueue=u,l.lastRenderedState=i}if(t=l.interleaved,t!==null){o=t;do n=o.lane,E1.lanes|=n,H6|=n,o=o.next;while(o!==t)}else o===null&&(l.lanes=0);return[r.memoizedState,l.dispatch]}function r9(t){var r=J0(),l=r.queue;if(l===null)throw Error(N(311));l.lastRenderedReducer=t;var i=l.dispatch,o=l.pending,n=r.memoizedState;if(o!==null){l.pending=null;var h=o=o.next;do n=t(n,h.action),h=h.next;while(h!==o);M2(n,r.memoizedState)||(B0=!0),r.memoizedState=n,r.baseQueue===null&&(r.baseState=n),l.lastRenderedState=n}return[n,i]}function An(){}function Vn(t,r){var l=E1,i=J0(),o=r(),n=!M2(i.memoizedState,o);if(n&&(i.memoizedState=o,B0=!0),i=i.queue,Pr(xn.bind(null,l,i,t),[t]),i.getSnapshot!==r||n||a0!==null&&a0.memoizedState.tag&1){if(l.flags|=2048,Nt(9,Zn.bind(null,l,i,o,r),void 0,null),r0===null)throw Error(N(349));(p6&30)!==0||mn(l,r,o)}return o}function mn(t,r,l){t.flags|=16384,t={getSnapshot:r,value:l},r=E1.updateQueue,r===null?(r={lastEffect:null,stores:null},E1.updateQueue=r,r.stores=[t]):(l=r.stores,l===null?r.stores=[t]:l.push(t))}function Zn(t,r,l,i){r.value=l,r.getSnapshot=i,Ln(r)&&zn(t)}function xn(t,r,l){return l(function(){Ln(r)&&zn(t)})}function Ln(t){var r=t.getSnapshot;t=t.value;try{var l=r();return!M2(t,l)}catch{return!0}}function zn(t){var r=e4(t,1);r!==null&&H2(r,t,1,-1)}function Gi(t){var r=y2();return typeof t=="function"&&(t=t()),r.memoizedState=r.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Et,lastRenderedState:t},r.queue=t,t=t.dispatch=zs.bind(null,E1,t),[r.memoizedState,t]}function Nt(t,r,l,i){return t={tag:t,create:r,destroy:l,deps:i,next:null},r=E1.updateQueue,r===null?(r={lastEffect:null,stores:null},E1.updateQueue=r,r.lastEffect=t.next=t):(l=r.lastEffect,l===null?r.lastEffect=t.next=t:(i=l.next,l.next=t,t.next=i,r.lastEffect=t)),t}function Cn(){return J0().memoizedState}function s3(t,r,l,i){var o=y2();E1.flags|=t,o.memoizedState=Nt(1|r,l,void 0,i===void 0?null:i)}function K3(t,r,l,i){var o=J0();i=i===void 0?null:i;var n=void 0;if(Q1!==null){var h=Q1.memoizedState;if(n=h.destroy,i!==null&&Cr(i,h.deps)){o.memoizedState=Nt(r,l,n,i);return}}E1.flags|=t,o.memoizedState=Nt(1|r,l,n,i)}function Wi(t,r){return s3(8390656,8,t,r)}function Pr(t,r){return K3(2048,8,t,r)}function wn(t,r){return K3(4,2,t,r)}function Bn(t,r){return K3(4,4,t,r)}function Pn(t,r){if(typeof r=="function")return t=t(),r(t),function(){r(null)};if(r!=null)return t=t(),r.current=t,function(){r.current=null}}function Sn(t,r,l){return l=l!=null?l.concat([t]):null,K3(4,4,Pn.bind(null,r,t),l)}function Sr(){}function yn(t,r){var l=J0();r=r===void 0?null:r;var i=l.memoizedState;return i!==null&&r!==null&&Cr(r,i[1])?i[0]:(l.memoizedState=[t,r],t)}function bn(t,r){var l=J0();r=r===void 0?null:r;var i=l.memoizedState;return i!==null&&r!==null&&Cr(r,i[1])?i[0]:(t=t(),l.memoizedState=[t,r],t)}function Tn(t,r,l){return(p6&21)===0?(t.baseState&&(t.baseState=!1,B0=!0),t.memoizedState=l):(M2(l,r)||(l=Do(),E1.lanes|=l,H6|=l,t.baseState=!0),r)}function xs(t,r){var l=x1;x1=l!==0&&4>l?l:4,t(!0);var i=t9.transition;t9.transition={};try{t(!1),r()}finally{x1=l,t9.transition=i}}function $n(){return J0().memoizedState}function Ls(t,r,l){var i=b4(t);if(l={lane:i,action:l,hasEagerState:!1,eagerState:null,next:null},On(t))Fn(r,l);else if(l=Hn(t,r,l,i),l!==null){var o=x0();H2(l,t,i,o),Dn(l,r,i)}}function zs(t,r,l){var i=b4(t),o={lane:i,action:l,hasEagerState:!1,eagerState:null,next:null};if(On(t))Fn(r,o);else{var n=t.alternate;if(t.lanes===0&&(n===null||n.lanes===0)&&(n=r.lastRenderedReducer,n!==null))try{var h=r.lastRenderedState,v=n(h,l);if(o.hasEagerState=!0,o.eagerState=v,M2(v,h)){var u=r.interleaved;u===null?(o.next=o,mr(r)):(o.next=u.next,u.next=o),r.interleaved=o;return}}catch{}l=Hn(t,r,o,i),l!==null&&(o=x0(),H2(l,t,i,o),Dn(l,r,i))}}function On(t){var r=t.alternate;return t===E1||r!==null&&r===E1}function Fn(t,r){Vt=F3=!0;var l=t.pending;l===null?r.next=r:(r.next=l.next,l.next=r),t.pending=r}function Dn(t,r,l){if((l&4194240)!==0){var i=r.lanes;i&=t.pendingLanes,l|=i,r.lanes=l,nr(t,l)}}var D3={readContext:Q0,useCallback:p0,useContext:p0,useEffect:p0,useImperativeHandle:p0,useInsertionEffect:p0,useLayoutEffect:p0,useMemo:p0,useReducer:p0,useRef:p0,useState:p0,useDebugValue:p0,useDeferredValue:p0,useTransition:p0,useMutableSource:p0,useSyncExternalStore:p0,useId:p0,unstable_isNewReconciler:!1},Cs={readContext:Q0,useCallback:function(t,r){return y2().memoizedState=[t,r===void 0?null:r],t},useContext:Q0,useEffect:Wi,useImperativeHandle:function(t,r,l){return l=l!=null?l.concat([t]):null,s3(4194308,4,Pn.bind(null,r,t),l)},useLayoutEffect:function(t,r){return s3(4194308,4,t,r)},useInsertionEffect:function(t,r){return s3(4,2,t,r)},useMemo:function(t,r){var l=y2();return r=r===void 0?null:r,t=t(),l.memoizedState=[t,r],t},useReducer:function(t,r,l){var i=y2();return r=l!==void 0?l(r):r,i.memoizedState=i.baseState=r,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},i.queue=t,t=t.dispatch=Ls.bind(null,E1,t),[i.memoizedState,t]},useRef:function(t){var r=y2();return t={current:t},r.memoizedState=t},useState:Gi,useDebugValue:Sr,useDeferredValue:function(t){return y2().memoizedState=t},useTransition:function(){var t=Gi(!1),r=t[0];return t=xs.bind(null,t[1]),y2().memoizedState=t,[r,t]},useMutableSource:function(){},useSyncExternalStore:function(t,r,l){var i=E1,o=y2();if($1){if(l===void 0)throw Error(N(407));l=l()}else{if(l=r(),r0===null)throw Error(N(349));(p6&30)!==0||mn(i,r,l)}o.memoizedState=l;var n={value:l,getSnapshot:r};return o.queue=n,Wi(xn.bind(null,i,n,t),[t]),i.flags|=2048,Nt(9,Zn.bind(null,i,n,l,r),void 0,null),l},useId:function(){var t=y2(),r=r0.identifierPrefix;if($1){var l=t4,i=J2;l=(i&~(1<<32-p2(i)-1)).toString(32)+l,r=":"+r+"R"+l,l=Dt++,0<l&&(r+="H"+l.toString(32)),r+=":"}else l=Zs++,r=":"+r+"r"+l.toString(32)+":";return t.memoizedState=r},unstable_isNewReconciler:!1},ws={readContext:Q0,useCallback:yn,useContext:Q0,useEffect:Pr,useImperativeHandle:Sn,useInsertionEffect:wn,useLayoutEffect:Bn,useMemo:bn,useReducer:a9,useRef:Cn,useState:function(){return a9(Et)},useDebugValue:Sr,useDeferredValue:function(t){var r=J0();return Tn(r,Q1.memoizedState,t)},useTransition:function(){var t=a9(Et)[0],r=J0().memoizedState;return[t,r]},useMutableSource:An,useSyncExternalStore:Vn,useId:$n,unstable_isNewReconciler:!1},Bs={readContext:Q0,useCallback:yn,useContext:Q0,useEffect:Pr,useImperativeHandle:Sn,useInsertionEffect:wn,useLayoutEffect:Bn,useMemo:bn,useReducer:r9,useRef:Cn,useState:function(){return r9(Et)},useDebugValue:Sr,useDeferredValue:function(t){var r=J0();return Q1===null?r.memoizedState=t:Tn(r,Q1.memoizedState,t)},useTransition:function(){var t=r9(Et)[0],r=J0().memoizedState;return[t,r]},useMutableSource:An,useSyncExternalStore:Vn,useId:$n,unstable_isNewReconciler:!1};function g2(t,r){if(t&&t.defaultProps){r=N1({},r),t=t.defaultProps;for(var l in t)r[l]===void 0&&(r[l]=t[l]);return r}return r}function D9(t,r,l,i){r=t.memoizedState,l=l(i,r),l=l==null?r:N1({},r,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var Y3={isMounted:function(t){return(t=t._reactInternals)?A6(t)===t:!1},enqueueSetState:function(t,r,l){t=t._reactInternals;var i=x0(),o=b4(t),n=a4(i,o);n.payload=r,l!=null&&(n.callback=l),r=S4(t,n,o),r!==null&&(H2(r,t,o,i),g3(r,t,o))},enqueueReplaceState:function(t,r,l){t=t._reactInternals;var i=x0(),o=b4(t),n=a4(i,o);n.tag=1,n.payload=r,l!=null&&(n.callback=l),r=S4(t,n,o),r!==null&&(H2(r,t,o,i),g3(r,t,o))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var l=x0(),i=b4(t),o=a4(l,i);o.tag=2,r!=null&&(o.callback=r),r=S4(t,o,i),r!==null&&(H2(r,t,i,l),g3(r,t,i))}};function ji(t,r,l,i,o,n,h){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(i,n,h):r.prototype&&r.prototype.isPureReactComponent?!yt(l,i)||!yt(o,n):!0}function En(t,r,l){var i=!1,o=O4,n=r.contextType;return typeof n=="object"&&n!==null?n=Q0(n):(o=S0(r)?u6:f0.current,i=r.contextTypes,n=(i=i!=null)?i8(t,o):O4),r=new r(l,n),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Y3,t.stateNode=r,r._reactInternals=t,i&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=o,t.__reactInternalMemoizedMaskedChildContext=n),r}function qi(t,r,l,i){t=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(l,i),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(l,i),r.state!==t&&Y3.enqueueReplaceState(r,r.state,null)}function E9(t,r,l,i){var o=t.stateNode;o.props=l,o.state=t.memoizedState,o.refs={},Zr(t);var n=r.contextType;typeof n=="object"&&n!==null?o.context=Q0(n):(n=S0(r)?u6:f0.current,o.context=i8(t,n)),o.state=t.memoizedState,n=r.getDerivedStateFromProps,typeof n=="function"&&(D9(t,r,n,l),o.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(r=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),r!==o.state&&Y3.enqueueReplaceState(o,o.state,null),$3(t,l,o,i),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308)}function h8(t,r){try{var l="",i=r;do l+=eu(i),i=i.return;while(i);var o=l}catch(n){o=`
7
7
  Error generating stack: `+n.message+`
8
- `+n.stack}return{value:t,source:r,stack:o,digest:null}}function l9(t,r,l){return{value:t,source:null,stack:l??null,digest:r??null}}function N9(t,r){try{console.error(r.value)}catch(l){setTimeout(function(){throw l})}}var Ps=typeof WeakMap=="function"?WeakMap:Map;function Nn(t,r,l){l=a4(-1,l),l.tag=3,l.payload={element:null};var i=r.value;return l.callback=function(){N3||(N3=!0,K9=i),N9(t,r)},l}function _n(t,r,l){l=a4(-1,l),l.tag=3;var i=t.type.getDerivedStateFromError;if(typeof i=="function"){var o=r.value;l.payload=function(){return i(o)},l.callback=function(){N9(t,r)}}var n=t.stateNode;return n!==null&&typeof n.componentDidCatch=="function"&&(l.callback=function(){N9(t,r),typeof i!="function"&&(y4===null?y4=new Set([this]):y4.add(this));var h=r.stack;this.componentDidCatch(r.value,{componentStack:h!==null?h:""})}),l}function Ki(t,r,l){var i=t.pingCache;if(i===null){i=t.pingCache=new Ps;var o=new Set;i.set(r,o)}else o=i.get(r),o===void 0&&(o=new Set,i.set(r,o));o.has(l)||(o.add(l),t=ks.bind(null,t,r,l),r.then(t,t))}function Yi(t){do{var r;if((r=t.tag===13)&&(r=t.memoizedState,r=r!==null?r.dehydrated!==null:!0),r)return t;t=t.return}while(t!==null);return null}function Xi(t,r,l,i,o){return(t.mode&1)===0?(t===r?t.flags|=65536:(t.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(r=a4(-1,1),r.tag=2,S4(l,r,1))),l.lanes|=1),t):(t.flags|=65536,t.lanes=o,t)}var Ss=o4.ReactCurrentOwner,B0=!1;function Z0(t,r,l,i){r.child=t===null?pn(r,null,l,i):n8(r,t.child,l,i)}function Qi(t,r,l,i,o){l=l.render;var n=r.ref;return r8(r,o),i=wr(t,r,l,i,n,o),l=Br(),t!==null&&!B0?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~o,i4(t,r,o)):($1&&l&&pr(r),r.flags|=1,Z0(t,r,i,o),r.child)}function Ji(t,r,l,i,o){if(t===null){var n=l.type;return typeof n=="function"&&!Er(n)&&n.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(r.tag=15,r.type=n,Rn(t,r,n,i,o)):(t=f3(l.type,null,i,r,r.mode,o),t.ref=r.ref,t.return=r,r.child=t)}if(n=t.child,(t.lanes&o)===0){var h=n.memoizedProps;if(l=l.compare,l=l!==null?l:yt,l(h,i)&&t.ref===r.ref)return i4(t,r,o)}return r.flags|=1,t=T4(n,i),t.ref=r.ref,t.return=r,r.child=t}function Rn(t,r,l,i,o){if(t!==null){var n=t.memoizedProps;if(yt(n,i)&&t.ref===r.ref)if(B0=!1,r.pendingProps=i=n,(t.lanes&o)!==0)(t.flags&131072)!==0&&(B0=!0);else return r.lanes=t.lanes,i4(t,r,o)}return _9(t,r,l,i,o)}function In(t,r,l){var i=r.pendingProps,o=i.children,n=t!==null?t.memoizedState:null;if(i.mode==="hidden")if((r.mode&1)===0)r.memoizedState={baseLanes:0,cachePool:null,transitions:null},B1(X6,F0),F0|=l;else{if((l&1073741824)===0)return t=n!==null?n.baseLanes|l:l,r.lanes=r.childLanes=1073741824,r.memoizedState={baseLanes:t,cachePool:null,transitions:null},r.updateQueue=null,B1(X6,F0),F0|=t,null;r.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=n!==null?n.baseLanes:l,B1(X6,F0),F0|=i}else n!==null?(i=n.baseLanes|l,r.memoizedState=null):i=l,B1(X6,F0),F0|=i;return Z0(t,r,o,l),r.child}function kn(t,r){var l=r.ref;(t===null&&l!==null||t!==null&&t.ref!==l)&&(r.flags|=512,r.flags|=2097152)}function _9(t,r,l,i,o){var n=S0(l)?u6:f0.current;return n=i8(r,n),r8(r,o),l=wr(t,r,l,i,n,o),i=Br(),t!==null&&!B0?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~o,i4(t,r,o)):($1&&i&&pr(r),r.flags|=1,Z0(t,r,l,o),r.child)}function to(t,r,l,i,o){if(S0(l)){var n=!0;P3(r)}else n=!1;if(r8(r,o),r.stateNode===null)p3(t,r),En(r,l,i),E9(r,l,i,o),i=!0;else if(t===null){var h=r.stateNode,v=r.memoizedProps;h.props=v;var u=h.context,s=l.contextType;typeof s=="object"&&s!==null?s=Q0(s):(s=S0(l)?u6:f0.current,s=i8(r,s));var p=l.getDerivedStateFromProps,A=typeof p=="function"||typeof h.getSnapshotBeforeUpdate=="function";A||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(v!==i||u!==s)&&qi(r,h,i,s),m4=!1;var M=r.memoizedState;h.state=M,$3(r,i,h,o),u=r.memoizedState,v!==i||M!==u||P0.current||m4?(typeof p=="function"&&(D9(r,l,p,i),u=r.memoizedState),(v=m4||ji(r,l,v,i,M,u,s))?(A||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(r.flags|=4194308)):(typeof h.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=i,r.memoizedState=u),h.props=i,h.state=u,h.context=s,i=v):(typeof h.componentDidMount=="function"&&(r.flags|=4194308),i=!1)}else{h=r.stateNode,Mn(t,r),v=r.memoizedProps,s=r.type===r.elementType?v:g2(r.type,v),h.props=s,A=r.pendingProps,M=h.context,u=l.contextType,typeof u=="object"&&u!==null?u=Q0(u):(u=S0(l)?u6:f0.current,u=i8(r,u));var H=l.getDerivedStateFromProps;(p=typeof H=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(v!==A||M!==u)&&qi(r,h,i,u),m4=!1,M=r.memoizedState,h.state=M,$3(r,i,h,o);var Z=r.memoizedState;v!==A||M!==Z||P0.current||m4?(typeof H=="function"&&(D9(r,l,H,i),Z=r.memoizedState),(s=m4||ji(r,l,s,i,M,Z,u)||!1)?(p||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(i,Z,u),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(i,Z,u)),typeof h.componentDidUpdate=="function"&&(r.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof h.componentDidUpdate!="function"||v===t.memoizedProps&&M===t.memoizedState||(r.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||v===t.memoizedProps&&M===t.memoizedState||(r.flags|=1024),r.memoizedProps=i,r.memoizedState=Z),h.props=i,h.state=Z,h.context=u,i=s):(typeof h.componentDidUpdate!="function"||v===t.memoizedProps&&M===t.memoizedState||(r.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||v===t.memoizedProps&&M===t.memoizedState||(r.flags|=1024),i=!1)}return R9(t,r,l,i,n,o)}function R9(t,r,l,i,o,n){kn(t,r);var h=(r.flags&128)!==0;if(!i&&!h)return o&&Ni(r,l,!1),i4(t,r,n);i=r.stateNode,Ss.current=r;var v=h&&typeof l.getDerivedStateFromError!="function"?null:i.render();return r.flags|=1,t!==null&&h?(r.child=n8(r,t.child,null,n),r.child=n8(r,null,v,n)):Z0(t,r,v,n),r.memoizedState=i.state,o&&Ni(r,l,!0),r.child}function Un(t){var r=t.stateNode;r.pendingContext?Ei(t,r.pendingContext,r.pendingContext!==r.context):r.context&&Ei(t,r.context,!1),xr(t,r.containerInfo)}function ao(t,r,l,i,o){return o8(),Mr(o),r.flags|=256,Z0(t,r,l,i),r.child}var I9={dehydrated:null,treeContext:null,retryLane:0};function k9(t){return{baseLanes:t,cachePool:null,transitions:null}}function Gn(t,r,l){var i=r.pendingProps,o=D1.current,n=!1,h=(r.flags&128)!==0,v;if((v=h)||(v=t!==null&&t.memoizedState===null?!1:(o&2)!==0),v?(n=!0,r.flags&=-129):(t===null||t.memoizedState!==null)&&(o|=1),B1(D1,o&1),t===null)return O9(r),t=r.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((r.mode&1)===0?r.lanes=1:t.data==="$!"?r.lanes=8:r.lanes=1073741824,null):(h=i.children,t=i.fallback,n?(i=r.mode,n=r.child,h={mode:"hidden",children:h},(i&1)===0&&n!==null?(n.childLanes=0,n.pendingProps=h):n=J3(h,i,0,null),t=g6(t,i,l,null),n.return=r,t.return=r,n.sibling=t,r.child=n,r.child.memoizedState=k9(l),r.memoizedState=I9,t):yr(r,h));if(o=t.memoizedState,o!==null&&(v=o.dehydrated,v!==null))return ys(t,r,h,i,v,o,l);if(n){n=i.fallback,h=r.mode,o=t.child,v=o.sibling;var u={mode:"hidden",children:i.children};return(h&1)===0&&r.child!==o?(i=r.child,i.childLanes=0,i.pendingProps=u,r.deletions=null):(i=T4(o,u),i.subtreeFlags=o.subtreeFlags&14680064),v!==null?n=T4(v,n):(n=g6(n,h,l,null),n.flags|=2),n.return=r,i.return=r,i.sibling=n,r.child=i,i=n,n=r.child,h=t.child.memoizedState,h=h===null?k9(l):{baseLanes:h.baseLanes|l,cachePool:null,transitions:h.transitions},n.memoizedState=h,n.childLanes=t.childLanes&~l,r.memoizedState=I9,i}return n=t.child,t=n.sibling,i=T4(n,{mode:"visible",children:i.children}),(r.mode&1)===0&&(i.lanes=l),i.return=r,i.sibling=null,t!==null&&(l=r.deletions,l===null?(r.deletions=[t],r.flags|=16):l.push(t)),r.child=i,r.memoizedState=null,i}function yr(t,r){return r=J3({mode:"visible",children:r},t.mode,0,null),r.return=t,t.child=r}function o3(t,r,l,i){return i!==null&&Mr(i),n8(r,t.child,null,l),t=yr(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function ys(t,r,l,i,o,n,h){if(l)return r.flags&256?(r.flags&=-257,i=l9(Error(N(422))),o3(t,r,h,i)):r.memoizedState!==null?(r.child=t.child,r.flags|=128,null):(n=i.fallback,o=r.mode,i=J3({mode:"visible",children:i.children},o,0,null),n=g6(n,o,h,null),n.flags|=2,i.return=r,n.return=r,i.sibling=n,r.child=i,(r.mode&1)!==0&&n8(r,t.child,null,h),r.child.memoizedState=k9(h),r.memoizedState=I9,n);if((r.mode&1)===0)return o3(t,r,h,null);if(o.data==="$!"){if(i=o.nextSibling&&o.nextSibling.dataset,i)var v=i.dgst;return i=v,n=Error(N(419)),i=l9(n,i,void 0),o3(t,r,h,i)}if(v=(h&t.childLanes)!==0,B0||v){if(i=r0,i!==null){switch(h&-h){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=(o&(i.suspendedLanes|h))!==0?0:o,o!==0&&o!==n.retryLane&&(n.retryLane=o,e4(t,o),H2(i,t,o,-1))}return Dr(),i=l9(Error(N(421))),o3(t,r,h,i)}return o.data==="$?"?(r.flags|=128,r.child=t.child,r=Us.bind(null,t),o._reactRetry=r,null):(t=n.treeContext,D0=P4(o.nextSibling),E0=r,$1=!0,s2=null,t!==null&&(q0[K0++]=J2,q0[K0++]=t4,q0[K0++]=s6,J2=t.id,t4=t.overflow,s6=r),r=yr(r,i.children),r.flags|=4096,r)}function ro(t,r,l){t.lanes|=r;var i=t.alternate;i!==null&&(i.lanes|=r),F9(t.return,r,l)}function e9(t,r,l,i,o){var n=t.memoizedState;n===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:i,tail:l,tailMode:o}:(n.isBackwards=r,n.rendering=null,n.renderingStartTime=0,n.last=i,n.tail=l,n.tailMode=o)}function Wn(t,r,l){var i=r.pendingProps,o=i.revealOrder,n=i.tail;if(Z0(t,r,i.children,l),i=D1.current,(i&2)!==0)i=i&1|2,r.flags|=128;else{if(t!==null&&(t.flags&128)!==0)t:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&ro(t,l,r);else if(t.tag===19)ro(t,l,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break t;for(;t.sibling===null;){if(t.return===null||t.return===r)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}i&=1}if(B1(D1,i),(r.mode&1)===0)r.memoizedState=null;else switch(o){case"forwards":for(l=r.child,o=null;l!==null;)t=l.alternate,t!==null&&O3(t)===null&&(o=l),l=l.sibling;l=o,l===null?(o=r.child,r.child=null):(o=l.sibling,l.sibling=null),e9(r,!1,o,l,n);break;case"backwards":for(l=null,o=r.child,r.child=null;o!==null;){if(t=o.alternate,t!==null&&O3(t)===null){r.child=o;break}t=o.sibling,o.sibling=l,l=o,o=t}e9(r,!0,l,null,n);break;case"together":e9(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function p3(t,r){(r.mode&1)===0&&t!==null&&(t.alternate=null,r.alternate=null,r.flags|=2)}function i4(t,r,l){if(t!==null&&(r.dependencies=t.dependencies),H6|=r.lanes,(l&r.childLanes)===0)return null;if(t!==null&&r.child!==t.child)throw Error(N(153));if(r.child!==null){for(t=r.child,l=T4(t,t.pendingProps),r.child=l,l.return=r;t.sibling!==null;)t=t.sibling,l=l.sibling=T4(t,t.pendingProps),l.return=r;l.sibling=null}return r.child}function bs(t,r,l){switch(r.tag){case 3:Un(r),o8();break;case 5:fn(r);break;case 1:S0(r.type)&&P3(r);break;case 4:xr(r,r.stateNode.containerInfo);break;case 10:var i=r.type._context,o=r.memoizedProps.value;B1(b3,i._currentValue),i._currentValue=o;break;case 13:if(i=r.memoizedState,i!==null)return i.dehydrated!==null?(B1(D1,D1.current&1),r.flags|=128,null):(l&r.child.childLanes)!==0?Gn(t,r,l):(B1(D1,D1.current&1),t=i4(t,r,l),t!==null?t.sibling:null);B1(D1,D1.current&1);break;case 19:if(i=(l&r.childLanes)!==0,(t.flags&128)!==0){if(i)return Wn(t,r,l);r.flags|=128}if(o=r.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),B1(D1,D1.current),i)break;return null;case 22:case 23:return r.lanes=0,In(t,r,l)}return i4(t,r,l)}var jn,U9,qn,Kn;jn=function(t,r){for(var l=r.child;l!==null;){if(l.tag===5||l.tag===6)t.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===r)break;for(;l.sibling===null;){if(l.return===null||l.return===r)return;l=l.return}l.sibling.return=l.return,l=l.sibling}};U9=function(){};qn=function(t,r,l,i){var o=t.memoizedProps;if(o!==i){t=r.stateNode,d6($2.current);var n=null;switch(l){case"input":o=g9(t,o),i=g9(t,i),n=[];break;case"select":o=N1({},o,{value:void 0}),i=N1({},i,{value:void 0}),n=[];break;case"textarea":o=p9(t,o),i=p9(t,i),n=[];break;default:typeof o.onClick!="function"&&typeof i.onClick=="function"&&(t.onclick=w3)}M9(l,i);var h;l=null;for(s in o)if(!i.hasOwnProperty(s)&&o.hasOwnProperty(s)&&o[s]!=null)if(s==="style"){var v=o[s];for(h in v)v.hasOwnProperty(h)&&(l||(l={}),l[h]="")}else s!=="dangerouslySetInnerHTML"&&s!=="children"&&s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Lt.hasOwnProperty(s)?n||(n=[]):(n=n||[]).push(s,null));for(s in i){var u=i[s];if(v=o?.[s],i.hasOwnProperty(s)&&u!==v&&(u!=null||v!=null))if(s==="style")if(v){for(h in v)!v.hasOwnProperty(h)||u&&u.hasOwnProperty(h)||(l||(l={}),l[h]="");for(h in u)u.hasOwnProperty(h)&&v[h]!==u[h]&&(l||(l={}),l[h]=u[h])}else l||(n||(n=[]),n.push(s,l)),l=u;else s==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,v=v?v.__html:void 0,u!=null&&v!==u&&(n=n||[]).push(s,u)):s==="children"?typeof u!="string"&&typeof u!="number"||(n=n||[]).push(s,""+u):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&(Lt.hasOwnProperty(s)?(u!=null&&s==="onScroll"&&y1("scroll",t),n||v===u||(n=[])):(n=n||[]).push(s,u))}l&&(n=n||[]).push("style",l);var s=n;(r.updateQueue=s)&&(r.flags|=4)}};Kn=function(t,r,l,i){l!==i&&(r.flags|=4)};function ct(t,r){if(!$1)switch(t.tailMode){case"hidden":r=t.tail;for(var l=null;r!==null;)r.alternate!==null&&(l=r),r=r.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var i=null;l!==null;)l.alternate!==null&&(i=l),l=l.sibling;i===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:i.sibling=null}}function H0(t){var r=t.alternate!==null&&t.alternate.child===t.child,l=0,i=0;if(r)for(var o=t.child;o!==null;)l|=o.lanes|o.childLanes,i|=o.subtreeFlags&14680064,i|=o.flags&14680064,o.return=t,o=o.sibling;else for(o=t.child;o!==null;)l|=o.lanes|o.childLanes,i|=o.subtreeFlags,i|=o.flags,o.return=t,o=o.sibling;return t.subtreeFlags|=i,t.childLanes=l,r}function Ts(t,r,l){var i=r.pendingProps;switch(Hr(r),r.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return H0(r),null;case 1:return S0(r.type)&&B3(),H0(r),null;case 3:return i=r.stateNode,c8(),b1(P0),b1(f0),zr(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(e3(r)?r.flags|=4:t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,s2!==null&&(Q9(s2),s2=null))),U9(t,r),H0(r),null;case 5:Lr(r);var o=d6(Ft.current);if(l=r.type,t!==null&&r.stateNode!=null)qn(t,r,l,i,o),t.ref!==r.ref&&(r.flags|=512,r.flags|=2097152);else{if(!i){if(r.stateNode===null)throw Error(N(166));return H0(r),null}if(t=d6($2.current),e3(r)){i=r.stateNode,l=r.type;var n=r.memoizedProps;switch(i[b2]=r,i[$t]=n,t=(r.mode&1)!==0,l){case"dialog":y1("cancel",i),y1("close",i);break;case"iframe":case"object":case"embed":y1("load",i);break;case"video":case"audio":for(o=0;o<st.length;o++)y1(st[o],i);break;case"source":y1("error",i);break;case"img":case"image":case"link":y1("error",i),y1("load",i);break;case"details":y1("toggle",i);break;case"input":di(i,n),y1("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!n.multiple},y1("invalid",i);break;case"textarea":gi(i,n),y1("invalid",i)}M9(l,n),o=null;for(var h in n)if(n.hasOwnProperty(h)){var v=n[h];h==="children"?typeof v=="string"?i.textContent!==v&&(n.suppressHydrationWarning!==!0&&l3(i.textContent,v,t),o=["children",v]):typeof v=="number"&&i.textContent!==""+v&&(n.suppressHydrationWarning!==!0&&l3(i.textContent,v,t),o=["children",""+v]):Lt.hasOwnProperty(h)&&v!=null&&h==="onScroll"&&y1("scroll",i)}switch(l){case"input":G5(i),vi(i,n,!0);break;case"textarea":G5(i),ui(i);break;case"select":case"option":break;default:typeof n.onClick=="function"&&(i.onclick=w3)}i=o,r.updateQueue=i,i!==null&&(r.flags|=4)}else{h=o.nodeType===9?o:o.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=Zo(l)),t==="http://www.w3.org/1999/xhtml"?l==="script"?(t=h.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof i.is=="string"?t=h.createElement(l,{is:i.is}):(t=h.createElement(l),l==="select"&&(h=t,i.multiple?h.multiple=!0:i.size&&(h.size=i.size))):t=h.createElementNS(t,l),t[b2]=r,t[$t]=i,jn(t,r,!1,!1),r.stateNode=t;t:{switch(h=f9(l,i),l){case"dialog":y1("cancel",t),y1("close",t),o=i;break;case"iframe":case"object":case"embed":y1("load",t),o=i;break;case"video":case"audio":for(o=0;o<st.length;o++)y1(st[o],t);o=i;break;case"source":y1("error",t),o=i;break;case"img":case"image":case"link":y1("error",t),y1("load",t),o=i;break;case"details":y1("toggle",t),o=i;break;case"input":di(t,i),o=g9(t,i),y1("invalid",t);break;case"option":o=i;break;case"select":t._wrapperState={wasMultiple:!!i.multiple},o=N1({},i,{value:void 0}),y1("invalid",t);break;case"textarea":gi(t,i),o=p9(t,i),y1("invalid",t);break;default:o=i}M9(l,o),v=o;for(n in v)if(v.hasOwnProperty(n)){var u=v[n];n==="style"?zo(t,u):n==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&xo(t,u)):n==="children"?typeof u=="string"?(l!=="textarea"||u!=="")&&zt(t,u):typeof u=="number"&&zt(t,""+u):n!=="suppressContentEditableWarning"&&n!=="suppressHydrationWarning"&&n!=="autoFocus"&&(Lt.hasOwnProperty(n)?u!=null&&n==="onScroll"&&y1("scroll",t):u!=null&&ar(t,n,u,h))}switch(l){case"input":G5(t),vi(t,i,!1);break;case"textarea":G5(t),ui(t);break;case"option":i.value!=null&&t.setAttribute("value",""+$4(i.value));break;case"select":t.multiple=!!i.multiple,n=i.value,n!=null?Q6(t,!!i.multiple,n,!1):i.defaultValue!=null&&Q6(t,!!i.multiple,i.defaultValue,!0);break;default:typeof o.onClick=="function"&&(t.onclick=w3)}switch(l){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break t;case"img":i=!0;break t;default:i=!1}}i&&(r.flags|=4)}r.ref!==null&&(r.flags|=512,r.flags|=2097152)}return H0(r),null;case 6:if(t&&r.stateNode!=null)Kn(t,r,t.memoizedProps,i);else{if(typeof i!="string"&&r.stateNode===null)throw Error(N(166));if(l=d6(Ft.current),d6($2.current),e3(r)){if(i=r.stateNode,l=r.memoizedProps,i[b2]=r,(n=i.nodeValue!==l)&&(t=E0,t!==null))switch(t.tag){case 3:l3(i.nodeValue,l,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&l3(i.nodeValue,l,(t.mode&1)!==0)}n&&(r.flags|=4)}else i=(l.nodeType===9?l:l.ownerDocument).createTextNode(i),i[b2]=r,r.stateNode=i}return H0(r),null;case 13:if(b1(D1),i=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if($1&&D0!==null&&(r.mode&1)!==0&&(r.flags&128)===0)un(),o8(),r.flags|=98560,n=!1;else if(n=e3(r),i!==null&&i.dehydrated!==null){if(t===null){if(!n)throw Error(N(318));if(n=r.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(N(317));n[b2]=r}else o8(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;H0(r),n=!1}else s2!==null&&(Q9(s2),s2=null),n=!0;if(!n)return r.flags&65536?r:null}return(r.flags&128)!==0?(r.lanes=l,r):(i=i!==null,i!==(t!==null&&t.memoizedState!==null)&&i&&(r.child.flags|=8192,(r.mode&1)!==0&&(t===null||(D1.current&1)!==0?J1===0&&(J1=3):Dr())),r.updateQueue!==null&&(r.flags|=4),H0(r),null);case 4:return c8(),U9(t,r),t===null&&bt(r.stateNode.containerInfo),H0(r),null;case 10:return Vr(r.type._context),H0(r),null;case 17:return S0(r.type)&&B3(),H0(r),null;case 19:if(b1(D1),n=r.memoizedState,n===null)return H0(r),null;if(i=(r.flags&128)!==0,h=n.rendering,h===null)if(i)ct(n,!1);else{if(J1!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(h=O3(t),h!==null){for(r.flags|=128,ct(n,!1),i=h.updateQueue,i!==null&&(r.updateQueue=i,r.flags|=4),r.subtreeFlags=0,i=l,l=r.child;l!==null;)n=l,t=i,n.flags&=14680066,h=n.alternate,h===null?(n.childLanes=0,n.lanes=t,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=h.childLanes,n.lanes=h.lanes,n.child=h.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=h.memoizedProps,n.memoizedState=h.memoizedState,n.updateQueue=h.updateQueue,n.type=h.type,t=h.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),l=l.sibling;return B1(D1,D1.current&1|2),r.child}t=t.sibling}n.tail!==null&&k1()>d8&&(r.flags|=128,i=!0,ct(n,!1),r.lanes=4194304)}else{if(!i)if(t=O3(h),t!==null){if(r.flags|=128,i=!0,l=t.updateQueue,l!==null&&(r.updateQueue=l,r.flags|=4),ct(n,!0),n.tail===null&&n.tailMode==="hidden"&&!h.alternate&&!$1)return H0(r),null}else 2*k1()-n.renderingStartTime>d8&&l!==1073741824&&(r.flags|=128,i=!0,ct(n,!1),r.lanes=4194304);n.isBackwards?(h.sibling=r.child,r.child=h):(l=n.last,l!==null?l.sibling=h:r.child=h,n.last=h)}return n.tail!==null?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.renderingStartTime=k1(),r.sibling=null,l=D1.current,B1(D1,i?l&1|2:l&1),r):(H0(r),null);case 22:case 23:return Fr(),i=r.memoizedState!==null,t!==null&&t.memoizedState!==null!==i&&(r.flags|=8192),i&&(r.mode&1)!==0?(F0&1073741824)!==0&&(H0(r),r.subtreeFlags&6&&(r.flags|=8192)):H0(r),null;case 24:return null;case 25:return null}throw Error(N(156,r.tag))}function $s(t,r){switch(Hr(r),r.tag){case 1:return S0(r.type)&&B3(),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return c8(),b1(P0),b1(f0),zr(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 5:return Lr(r),null;case 13:if(b1(D1),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(N(340));o8()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return b1(D1),null;case 4:return c8(),null;case 10:return Vr(r.type._context),null;case 22:case 23:return Fr(),null;case 24:return null;default:return null}}var n3=!1,M0=!1,Os=typeof WeakSet=="function"?WeakSet:Set,j=null;function Y6(t,r){var l=t.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(i){R1(t,r,i)}else l.current=null}function G9(t,r,l){try{l()}catch(i){R1(t,r,i)}}var lo=!1;function Fs(t,r){if(B9=L3,t=Jo(),sr(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var i=l.getSelection&&l.getSelection();if(i&&i.rangeCount!==0){l=i.anchorNode;var o=i.anchorOffset,n=i.focusNode;i=i.focusOffset;try{l.nodeType,n.nodeType}catch{l=null;break t}var h=0,v=-1,u=-1,s=0,p=0,A=t,M=null;a:for(;;){for(var H;A!==l||o!==0&&A.nodeType!==3||(v=h+o),A!==n||i!==0&&A.nodeType!==3||(u=h+i),A.nodeType===3&&(h+=A.nodeValue.length),(H=A.firstChild)!==null;)M=A,A=H;for(;;){if(A===t)break a;if(M===l&&++s===o&&(v=h),M===n&&++p===i&&(u=h),(H=A.nextSibling)!==null)break;A=M,M=A.parentNode}A=H}l=v===-1||u===-1?null:{start:v,end:u}}else l=null}l=l||{start:0,end:0}}else l=null;for(P9={focusedElem:t,selectionRange:l},L3=!1,j=r;j!==null;)if(r=j,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,j=t;else for(;j!==null;){r=j;try{var Z=r.alternate;if((r.flags&1024)!==0)switch(r.tag){case 0:case 11:case 15:break;case 1:if(Z!==null){var L=Z.memoizedProps,w=Z.memoizedState,m=r.stateNode,V=m.getSnapshotBeforeUpdate(r.elementType===r.type?L:g2(r.type,L),w);m.__reactInternalSnapshotBeforeUpdate=V}break;case 3:var x=r.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(z){R1(r,r.return,z)}if(t=r.sibling,t!==null){t.return=r.return,j=t;break}j=r.return}return Z=lo,lo=!1,Z}function mt(t,r,l){var i=r.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var o=i=i.next;do{if((o.tag&t)===t){var n=o.destroy;o.destroy=void 0,n!==void 0&&G9(r,l,n)}o=o.next}while(o!==i)}}function X3(t,r){if(r=r.updateQueue,r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&t)===t){var i=l.create;l.destroy=i()}l=l.next}while(l!==r)}}function W9(t){var r=t.ref;if(r!==null){var l=t.stateNode;t.tag,t=l,typeof r=="function"?r(t):r.current=t}}function Yn(t){var r=t.alternate;r!==null&&(t.alternate=null,Yn(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&(delete r[b2],delete r[$t],delete r[b9],delete r[fs],delete r[As])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Xn(t){return t.tag===5||t.tag===3||t.tag===4}function eo(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Xn(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function j9(t,r,l){var i=t.tag;if(i===5||i===6)t=t.stateNode,r?l.nodeType===8?l.parentNode.insertBefore(t,r):l.insertBefore(t,r):(l.nodeType===8?(r=l.parentNode,r.insertBefore(t,l)):(r=l,r.appendChild(t)),l=l._reactRootContainer,l!=null||r.onclick!==null||(r.onclick=w3));else if(i!==4&&(t=t.child,t!==null))for(j9(t,r,l),t=t.sibling;t!==null;)j9(t,r,l),t=t.sibling}function q9(t,r,l){var i=t.tag;if(i===5||i===6)t=t.stateNode,r?l.insertBefore(t,r):l.appendChild(t);else if(i!==4&&(t=t.child,t!==null))for(q9(t,r,l),t=t.sibling;t!==null;)q9(t,r,l),t=t.sibling}var n0=null,u2=!1;function A4(t,r,l){for(l=l.child;l!==null;)Qn(t,r,l),l=l.sibling}function Qn(t,r,l){if(T2&&typeof T2.onCommitFiberUnmount=="function")try{T2.onCommitFiberUnmount(k3,l)}catch{}switch(l.tag){case 5:M0||Y6(l,r);case 6:var i=n0,o=u2;n0=null,A4(t,r,l),n0=i,u2=o,n0!==null&&(u2?(t=n0,l=l.stateNode,t.nodeType===8?t.parentNode.removeChild(l):t.removeChild(l)):n0.removeChild(l.stateNode));break;case 18:n0!==null&&(u2?(t=n0,l=l.stateNode,t.nodeType===8?X7(t.parentNode,l):t.nodeType===1&&X7(t,l),Pt(t)):X7(n0,l.stateNode));break;case 4:i=n0,o=u2,n0=l.stateNode.containerInfo,u2=!0,A4(t,r,l),n0=i,u2=o;break;case 0:case 11:case 14:case 15:if(!M0&&(i=l.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){o=i=i.next;do{var n=o,h=n.destroy;n=n.tag,h!==void 0&&((n&2)!==0||(n&4)!==0)&&G9(l,r,h),o=o.next}while(o!==i)}A4(t,r,l);break;case 1:if(!M0&&(Y6(l,r),i=l.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=l.memoizedProps,i.state=l.memoizedState,i.componentWillUnmount()}catch(v){R1(l,r,v)}A4(t,r,l);break;case 21:A4(t,r,l);break;case 22:l.mode&1?(M0=(i=M0)||l.memoizedState!==null,A4(t,r,l),M0=i):A4(t,r,l);break;default:A4(t,r,l)}}function io(t){var r=t.updateQueue;if(r!==null){t.updateQueue=null;var l=t.stateNode;l===null&&(l=t.stateNode=new Os),r.forEach(function(i){var o=Gs.bind(null,t,i);l.has(i)||(l.add(i),i.then(o,o))})}}function v2(t,r){var l=r.deletions;if(l!==null)for(var i=0;i<l.length;i++){var o=l[i];try{var n=t,h=r,v=h;t:for(;v!==null;){switch(v.tag){case 5:n0=v.stateNode,u2=!1;break t;case 3:n0=v.stateNode.containerInfo,u2=!0;break t;case 4:n0=v.stateNode.containerInfo,u2=!0;break t}v=v.return}if(n0===null)throw Error(N(160));Qn(n,h,o),n0=null,u2=!1;var u=o.alternate;u!==null&&(u.return=null),o.return=null}catch(s){R1(o,r,s)}}if(r.subtreeFlags&12854)for(r=r.child;r!==null;)Jn(r,t),r=r.sibling}function Jn(t,r){var l=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(v2(r,t),S2(t),i&4){try{mt(3,t,t.return),X3(3,t)}catch(L){R1(t,t.return,L)}try{mt(5,t,t.return)}catch(L){R1(t,t.return,L)}}break;case 1:v2(r,t),S2(t),i&512&&l!==null&&Y6(l,l.return);break;case 5:if(v2(r,t),S2(t),i&512&&l!==null&&Y6(l,l.return),t.flags&32){var o=t.stateNode;try{zt(o,"")}catch(L){R1(t,t.return,L)}}if(i&4&&(o=t.stateNode,o!=null)){var n=t.memoizedProps,h=l!==null?l.memoizedProps:n,v=t.type,u=t.updateQueue;if(t.updateQueue=null,u!==null)try{v==="input"&&n.type==="radio"&&n.name!=null&&Vo(o,n),f9(v,h);var s=f9(v,n);for(h=0;h<u.length;h+=2){var p=u[h],A=u[h+1];p==="style"?zo(o,A):p==="dangerouslySetInnerHTML"?xo(o,A):p==="children"?zt(o,A):ar(o,p,A,s)}switch(v){case"input":u9(o,n);break;case"textarea":mo(o,n);break;case"select":var M=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!n.multiple;var H=n.value;H!=null?Q6(o,!!n.multiple,H,!1):M!==!!n.multiple&&(n.defaultValue!=null?Q6(o,!!n.multiple,n.defaultValue,!0):Q6(o,!!n.multiple,n.multiple?[]:"",!1))}o[$t]=n}catch(L){R1(t,t.return,L)}}break;case 6:if(v2(r,t),S2(t),i&4){if(t.stateNode===null)throw Error(N(162));o=t.stateNode,n=t.memoizedProps;try{o.nodeValue=n}catch(L){R1(t,t.return,L)}}break;case 3:if(v2(r,t),S2(t),i&4&&l!==null&&l.memoizedState.isDehydrated)try{Pt(r.containerInfo)}catch(L){R1(t,t.return,L)}break;case 4:v2(r,t),S2(t);break;case 13:v2(r,t),S2(t),o=t.child,o.flags&8192&&(n=o.memoizedState!==null,o.stateNode.isHidden=n,!n||o.alternate!==null&&o.alternate.memoizedState!==null||($r=k1())),i&4&&io(t);break;case 22:if(p=l!==null&&l.memoizedState!==null,t.mode&1?(M0=(s=M0)||p,v2(r,t),M0=s):v2(r,t),S2(t),i&8192){if(s=t.memoizedState!==null,(t.stateNode.isHidden=s)&&!p&&(t.mode&1)!==0)for(j=t,p=t.child;p!==null;){for(A=j=p;j!==null;){switch(M=j,H=M.child,M.tag){case 0:case 11:case 14:case 15:mt(4,M,M.return);break;case 1:Y6(M,M.return);var Z=M.stateNode;if(typeof Z.componentWillUnmount=="function"){i=M,l=M.return;try{r=i,Z.props=r.memoizedProps,Z.state=r.memoizedState,Z.componentWillUnmount()}catch(L){R1(i,l,L)}}break;case 5:Y6(M,M.return);break;case 22:if(M.memoizedState!==null){no(A);continue}}H!==null?(H.return=M,j=H):no(A)}p=p.sibling}t:for(p=null,A=t;;){if(A.tag===5){if(p===null){p=A;try{o=A.stateNode,s?(n=o.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none"):(v=A.stateNode,u=A.memoizedProps.style,h=u!=null&&u.hasOwnProperty("display")?u.display:null,v.style.display=Lo("display",h))}catch(L){R1(t,t.return,L)}}}else if(A.tag===6){if(p===null)try{A.stateNode.nodeValue=s?"":A.memoizedProps}catch(L){R1(t,t.return,L)}}else if((A.tag!==22&&A.tag!==23||A.memoizedState===null||A===t)&&A.child!==null){A.child.return=A,A=A.child;continue}if(A===t)break t;for(;A.sibling===null;){if(A.return===null||A.return===t)break t;p===A&&(p=null),A=A.return}p===A&&(p=null),A.sibling.return=A.return,A=A.sibling}}break;case 19:v2(r,t),S2(t),i&4&&io(t);break;case 21:break;default:v2(r,t),S2(t)}}function S2(t){var r=t.flags;if(r&2){try{t:{for(var l=t.return;l!==null;){if(Xn(l)){var i=l;break t}l=l.return}throw Error(N(160))}switch(i.tag){case 5:var o=i.stateNode;i.flags&32&&(zt(o,""),i.flags&=-33);var n=eo(t);q9(t,n,o);break;case 3:case 4:var h=i.stateNode.containerInfo,v=eo(t);j9(t,v,h);break;default:throw Error(N(161))}}catch(u){R1(t,t.return,u)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function Ds(t,r,l){j=t,tc(t,r,l)}function tc(t,r,l){for(var i=(t.mode&1)!==0;j!==null;){var o=j,n=o.child;if(o.tag===22&&i){var h=o.memoizedState!==null||n3;if(!h){var v=o.alternate,u=v!==null&&v.memoizedState!==null||M0;v=n3;var s=M0;if(n3=h,(M0=u)&&!s)for(j=o;j!==null;)h=j,u=h.child,h.tag===22&&h.memoizedState!==null?co(o):u!==null?(u.return=h,j=u):co(o);for(;n!==null;)j=n,tc(n,r,l),n=n.sibling;j=o,n3=v,M0=s}oo(t,r,l)}else(o.subtreeFlags&8772)!==0&&n!==null?(n.return=o,j=n):oo(t,r,l)}}function oo(t){for(;j!==null;){var r=j;if((r.flags&8772)!==0){var l=r.alternate;try{if((r.flags&8772)!==0)switch(r.tag){case 0:case 11:case 15:M0||X3(5,r);break;case 1:var i=r.stateNode;if(r.flags&4&&!M0)if(l===null)i.componentDidMount();else{var o=r.elementType===r.type?l.memoizedProps:g2(r.type,l.memoizedProps);i.componentDidUpdate(o,l.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var n=r.updateQueue;n!==null&&Ui(r,n,i);break;case 3:var h=r.updateQueue;if(h!==null){if(l=null,r.child!==null)switch(r.child.tag){case 5:l=r.child.stateNode;break;case 1:l=r.child.stateNode}Ui(r,h,l)}break;case 5:var v=r.stateNode;if(l===null&&r.flags&4){l=v;var u=r.memoizedProps;switch(r.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&l.focus();break;case"img":u.src&&(l.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(r.memoizedState===null){var s=r.alternate;if(s!==null){var p=s.memoizedState;if(p!==null){var A=p.dehydrated;A!==null&&Pt(A)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(N(163))}M0||r.flags&512&&W9(r)}catch(M){R1(r,r.return,M)}}if(r===t){j=null;break}if(l=r.sibling,l!==null){l.return=r.return,j=l;break}j=r.return}}function no(t){for(;j!==null;){var r=j;if(r===t){j=null;break}var l=r.sibling;if(l!==null){l.return=r.return,j=l;break}j=r.return}}function co(t){for(;j!==null;){var r=j;try{switch(r.tag){case 0:case 11:case 15:var l=r.return;try{X3(4,r)}catch(u){R1(r,l,u)}break;case 1:var i=r.stateNode;if(typeof i.componentDidMount=="function"){var o=r.return;try{i.componentDidMount()}catch(u){R1(r,o,u)}}var n=r.return;try{W9(r)}catch(u){R1(r,n,u)}break;case 5:var h=r.return;try{W9(r)}catch(u){R1(r,h,u)}}}catch(u){R1(r,r.return,u)}if(r===t){j=null;break}var v=r.sibling;if(v!==null){v.return=r.return,j=v;break}j=r.return}}var Es=Math.ceil,E3=o4.ReactCurrentDispatcher,br=o4.ReactCurrentOwner,X0=o4.ReactCurrentBatchConfig,m1=0,r0=null,W1=null,c0=0,F0=0,X6=D4(0),J1=0,_t=null,H6=0,Q3=0,Tr=0,Zt=null,w0=null,$r=0,d8=1/0,X2=null,N3=!1,K9=null,y4=null,c3=!1,z4=null,_3=0,xt=0,Y9=null,H3=-1,M3=0;function x0(){return(m1&6)!==0?k1():H3!==-1?H3:H3=k1()}function b4(t){return(t.mode&1)===0?1:(m1&2)!==0&&c0!==0?c0&-c0:ms.transition!==null?(M3===0&&(M3=Do()),M3):(t=x1,t!==0||(t=window.event,t=t===void 0?16:Uo(t.type)),t)}function H2(t,r,l,i){if(50<xt)throw xt=0,Y9=null,Error(N(185));Rt(t,l,i),((m1&2)===0||t!==r0)&&(t===r0&&((m1&2)===0&&(Q3|=l),J1===4&&x4(t,c0)),y0(t,i),l===1&&m1===0&&(r.mode&1)===0&&(d8=k1()+500,q3&&E4()))}function y0(t,r){var l=t.callbackNode;xu(t,r);var i=x3(t,t===r0?c0:0);if(i===0)l!==null&&Hi(l),t.callbackNode=null,t.callbackPriority=0;else if(r=i&-i,t.callbackPriority!==r){if(l!=null&&Hi(l),r===1)t.tag===0?Vs(ho.bind(null,t)):dn(ho.bind(null,t)),Hs(function(){(m1&6)===0&&E4()}),l=null;else{switch(Eo(i)){case 1:l=or;break;case 4:l=Oo;break;case 16:l=Z3;break;case 536870912:l=Fo;break;default:l=Z3}l=cc(l,ac.bind(null,t))}t.callbackPriority=r,t.callbackNode=l}}function ac(t,r){if(H3=-1,M3=0,(m1&6)!==0)throw Error(N(327));var l=t.callbackNode;if(l8()&&t.callbackNode!==l)return null;var i=x3(t,t===r0?c0:0);if(i===0)return null;if((i&30)!==0||(i&t.expiredLanes)!==0||r)r=R3(t,i);else{r=i;var o=m1;m1|=2;var n=lc();(r0!==t||c0!==r)&&(X2=null,d8=k1()+500,v6(t,r));do try{Rs();break}catch(v){rc(t,v)}while(!0);Ar(),E3.current=n,m1=o,W1!==null?r=0:(r0=null,c0=0,r=J1)}if(r!==0){if(r===2&&(o=x9(t),o!==0&&(i=o,r=X9(t,o))),r===1)throw l=_t,v6(t,0),x4(t,i),y0(t,k1()),l;if(r===6)x4(t,i);else{if(o=t.current.alternate,(i&30)===0&&!Ns(o)&&(r=R3(t,i),r===2&&(n=x9(t),n!==0&&(i=n,r=X9(t,n))),r===1))throw l=_t,v6(t,0),x4(t,i),y0(t,k1()),l;switch(t.finishedWork=o,t.finishedLanes=i,r){case 0:case 1:throw Error(N(345));case 2:n6(t,w0,X2);break;case 3:if(x4(t,i),(i&130023424)===i&&(r=$r+500-k1(),10<r)){if(x3(t,0)!==0)break;if(o=t.suspendedLanes,(o&i)!==i){x0(),t.pingedLanes|=t.suspendedLanes&o;break}t.timeoutHandle=y9(n6.bind(null,t,w0,X2),r);break}n6(t,w0,X2);break;case 4:if(x4(t,i),(i&4194240)===i)break;for(r=t.eventTimes,o=-1;0<i;){var h=31-p2(i);n=1<<h,h=r[h],h>o&&(o=h),i&=~n}if(i=o,i=k1()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Es(i/1960))-i,10<i){t.timeoutHandle=y9(n6.bind(null,t,w0,X2),i);break}n6(t,w0,X2);break;case 5:n6(t,w0,X2);break;default:throw Error(N(329))}}}return y0(t,k1()),t.callbackNode===l?ac.bind(null,t):null}function X9(t,r){var l=Zt;return t.current.memoizedState.isDehydrated&&(v6(t,r).flags|=256),t=R3(t,r),t!==2&&(r=w0,w0=l,r!==null&&Q9(r)),t}function Q9(t){w0===null?w0=t:w0.push.apply(w0,t)}function Ns(t){for(var r=t;;){if(r.flags&16384){var l=r.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var i=0;i<l.length;i++){var o=l[i],n=o.getSnapshot;o=o.value;try{if(!M2(n(),o))return!1}catch{return!1}}}if(l=r.child,r.subtreeFlags&16384&&l!==null)l.return=r,r=l;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function x4(t,r){for(r&=~Tr,r&=~Q3,t.suspendedLanes|=r,t.pingedLanes&=~r,t=t.expirationTimes;0<r;){var l=31-p2(r),i=1<<l;t[l]=-1,r&=~i}}function ho(t){if((m1&6)!==0)throw Error(N(327));l8();var r=x3(t,0);if((r&1)===0)return y0(t,k1()),null;var l=R3(t,r);if(t.tag!==0&&l===2){var i=x9(t);i!==0&&(r=i,l=X9(t,i))}if(l===1)throw l=_t,v6(t,0),x4(t,r),y0(t,k1()),l;if(l===6)throw Error(N(345));return t.finishedWork=t.current.alternate,t.finishedLanes=r,n6(t,w0,X2),y0(t,k1()),null}function Or(t,r){var l=m1;m1|=1;try{return t(r)}finally{m1=l,m1===0&&(d8=k1()+500,q3&&E4())}}function M6(t){z4!==null&&z4.tag===0&&(m1&6)===0&&l8();var r=m1;m1|=1;var l=X0.transition,i=x1;try{if(X0.transition=null,x1=1,t)return t()}finally{x1=i,X0.transition=l,m1=r,(m1&6)===0&&E4()}}function Fr(){F0=X6.current,b1(X6)}function v6(t,r){t.finishedWork=null,t.finishedLanes=0;var l=t.timeoutHandle;if(l!==-1&&(t.timeoutHandle=-1,ps(l)),W1!==null)for(l=W1.return;l!==null;){var i=l;switch(Hr(i),i.tag){case 1:i=i.type.childContextTypes,i!=null&&B3();break;case 3:c8(),b1(P0),b1(f0),zr();break;case 5:Lr(i);break;case 4:c8();break;case 13:b1(D1);break;case 19:b1(D1);break;case 10:Vr(i.type._context);break;case 22:case 23:Fr()}l=l.return}if(r0=t,W1=t=T4(t.current,null),c0=F0=r,J1=0,_t=null,Tr=Q3=H6=0,w0=Zt=null,h6!==null){for(r=0;r<h6.length;r++)if(l=h6[r],i=l.interleaved,i!==null){l.interleaved=null;var o=i.next,n=l.pending;if(n!==null){var h=n.next;n.next=o,i.next=h}l.pending=i}h6=null}return t}function rc(t,r){do{var l=W1;try{if(Ar(),u3.current=D3,F3){for(var i=E1.memoizedState;i!==null;){var o=i.queue;o!==null&&(o.pending=null),i=i.next}F3=!1}if(p6=0,a0=Q1=E1=null,Vt=!1,Dt=0,br.current=null,l===null||l.return===null){J1=1,_t=r,W1=null;break}t:{var n=t,h=l.return,v=l,u=r;if(r=c0,v.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var s=u,p=v,A=p.tag;if((p.mode&1)===0&&(A===0||A===11||A===15)){var M=p.alternate;M?(p.updateQueue=M.updateQueue,p.memoizedState=M.memoizedState,p.lanes=M.lanes):(p.updateQueue=null,p.memoizedState=null)}var H=Yi(h);if(H!==null){H.flags&=-257,Xi(H,h,v,n,r),H.mode&1&&Ki(n,s,r),r=H,u=s;var Z=r.updateQueue;if(Z===null){var L=new Set;L.add(u),r.updateQueue=L}else Z.add(u);break t}else{if((r&1)===0){Ki(n,s,r),Dr();break t}u=Error(N(426))}}else if($1&&v.mode&1){var w=Yi(h);if(w!==null){(w.flags&65536)===0&&(w.flags|=256),Xi(w,h,v,n,r),Mr(h8(u,v));break t}}n=u=h8(u,v),J1!==4&&(J1=2),Zt===null?Zt=[n]:Zt.push(n),n=h;do{switch(n.tag){case 3:n.flags|=65536,r&=-r,n.lanes|=r;var m=Nn(n,u,r);ki(n,m);break t;case 1:v=u;var V=n.type,x=n.stateNode;if((n.flags&128)===0&&(typeof V.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(y4===null||!y4.has(x)))){n.flags|=65536,r&=-r,n.lanes|=r;var z=_n(n,v,r);ki(n,z);break t}}n=n.return}while(n!==null)}ic(l)}catch(B){r=B,W1===l&&l!==null&&(W1=l=l.return);continue}break}while(!0)}function lc(){var t=E3.current;return E3.current=D3,t===null?D3:t}function Dr(){(J1===0||J1===3||J1===2)&&(J1=4),r0===null||(H6&268435455)===0&&(Q3&268435455)===0||x4(r0,c0)}function R3(t,r){var l=m1;m1|=2;var i=lc();(r0!==t||c0!==r)&&(X2=null,v6(t,r));do try{_s();break}catch(o){rc(t,o)}while(!0);if(Ar(),m1=l,E3.current=i,W1!==null)throw Error(N(261));return r0=null,c0=0,J1}function _s(){for(;W1!==null;)ec(W1)}function Rs(){for(;W1!==null&&!su();)ec(W1)}function ec(t){var r=nc(t.alternate,t,F0);t.memoizedProps=t.pendingProps,r===null?ic(t):W1=r,br.current=null}function ic(t){var r=t;do{var l=r.alternate;if(t=r.return,(r.flags&32768)===0){if(l=Ts(l,r,F0),l!==null){W1=l;return}}else{if(l=$s(l,r),l!==null){l.flags&=32767,W1=l;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{J1=6,W1=null;return}}if(r=r.sibling,r!==null){W1=r;return}W1=r=t}while(r!==null);J1===0&&(J1=5)}function n6(t,r,l){var i=x1,o=X0.transition;try{X0.transition=null,x1=1,Is(t,r,l,i)}finally{X0.transition=o,x1=i}return null}function Is(t,r,l,i){do l8();while(z4!==null);if((m1&6)!==0)throw Error(N(327));l=t.finishedWork;var o=t.finishedLanes;if(l===null)return null;if(t.finishedWork=null,t.finishedLanes=0,l===t.current)throw Error(N(177));t.callbackNode=null,t.callbackPriority=0;var n=l.lanes|l.childLanes;if(Lu(t,n),t===r0&&(W1=r0=null,c0=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||c3||(c3=!0,cc(Z3,function(){return l8(),null})),n=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||n){n=X0.transition,X0.transition=null;var h=x1;x1=1;var v=m1;m1|=4,br.current=null,Fs(t,l),Jn(l,t),ds(P9),L3=!!B9,P9=B9=null,t.current=l,Ds(l,t,o),pu(),m1=v,x1=h,X0.transition=n}else t.current=l;if(c3&&(c3=!1,z4=t,_3=o),n=t.pendingLanes,n===0&&(y4=null),fu(l.stateNode,i),y0(t,k1()),r!==null)for(i=t.onRecoverableError,l=0;l<r.length;l++)o=r[l],i(o.value,{componentStack:o.stack,digest:o.digest});if(N3)throw N3=!1,t=K9,K9=null,t;return(_3&1)!==0&&t.tag!==0&&l8(),n=t.pendingLanes,(n&1)!==0?t===Y9?xt++:(xt=0,Y9=t):xt=0,E4(),null}function l8(){if(z4!==null){var t=Eo(_3),r=X0.transition,l=x1;try{if(X0.transition=null,x1=16>t?16:t,z4===null)var i=!1;else{if(t=z4,z4=null,_3=0,(m1&6)!==0)throw Error(N(331));var o=m1;for(m1|=4,j=t.current;j!==null;){var n=j,h=n.child;if((j.flags&16)!==0){var v=n.deletions;if(v!==null){for(var u=0;u<v.length;u++){var s=v[u];for(j=s;j!==null;){var p=j;switch(p.tag){case 0:case 11:case 15:mt(8,p,n)}var A=p.child;if(A!==null)A.return=p,j=A;else for(;j!==null;){p=j;var M=p.sibling,H=p.return;if(Yn(p),p===s){j=null;break}if(M!==null){M.return=H,j=M;break}j=H}}}var Z=n.alternate;if(Z!==null){var L=Z.child;if(L!==null){Z.child=null;do{var w=L.sibling;L.sibling=null,L=w}while(L!==null)}}j=n}}if((n.subtreeFlags&2064)!==0&&h!==null)h.return=n,j=h;else t:for(;j!==null;){if(n=j,(n.flags&2048)!==0)switch(n.tag){case 0:case 11:case 15:mt(9,n,n.return)}var m=n.sibling;if(m!==null){m.return=n.return,j=m;break t}j=n.return}}var V=t.current;for(j=V;j!==null;){h=j;var x=h.child;if((h.subtreeFlags&2064)!==0&&x!==null)x.return=h,j=x;else t:for(h=V;j!==null;){if(v=j,(v.flags&2048)!==0)try{switch(v.tag){case 0:case 11:case 15:X3(9,v)}}catch(B){R1(v,v.return,B)}if(v===h){j=null;break t}var z=v.sibling;if(z!==null){z.return=v.return,j=z;break t}j=v.return}}if(m1=o,E4(),T2&&typeof T2.onPostCommitFiberRoot=="function")try{T2.onPostCommitFiberRoot(k3,t)}catch{}i=!0}return i}finally{x1=l,X0.transition=r}}return!1}function vo(t,r,l){r=h8(l,r),r=Nn(t,r,1),t=S4(t,r,1),r=x0(),t!==null&&(Rt(t,1,r),y0(t,r))}function R1(t,r,l){if(t.tag===3)vo(t,t,l);else for(;r!==null;){if(r.tag===3){vo(r,t,l);break}else if(r.tag===1){var i=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(y4===null||!y4.has(i))){t=h8(l,t),t=_n(r,t,1),r=S4(r,t,1),t=x0(),r!==null&&(Rt(r,1,t),y0(r,t));break}}r=r.return}}function ks(t,r,l){var i=t.pingCache;i!==null&&i.delete(r),r=x0(),t.pingedLanes|=t.suspendedLanes&l,r0===t&&(c0&l)===l&&(J1===4||J1===3&&(c0&130023424)===c0&&500>k1()-$r?v6(t,0):Tr|=l),y0(t,r)}function oc(t,r){r===0&&((t.mode&1)===0?r=1:(r=q5,q5<<=1,(q5&130023424)===0&&(q5=4194304)));var l=x0();t=e4(t,r),t!==null&&(Rt(t,r,l),y0(t,l))}function Us(t){var r=t.memoizedState,l=0;r!==null&&(l=r.retryLane),oc(t,l)}function Gs(t,r){var l=0;switch(t.tag){case 13:var i=t.stateNode,o=t.memoizedState;o!==null&&(l=o.retryLane);break;case 19:i=t.stateNode;break;default:throw Error(N(314))}i!==null&&i.delete(r),oc(t,l)}var nc;nc=function(t,r,l){if(t!==null)if(t.memoizedProps!==r.pendingProps||P0.current)B0=!0;else{if((t.lanes&l)===0&&(r.flags&128)===0)return B0=!1,bs(t,r,l);B0=(t.flags&131072)!==0}else B0=!1,$1&&(r.flags&1048576)!==0&&vn(r,y3,r.index);switch(r.lanes=0,r.tag){case 2:var i=r.type;p3(t,r),t=r.pendingProps;var o=i8(r,f0.current);r8(r,l),o=wr(null,r,i,t,o,l);var n=Br();return r.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(r.tag=1,r.memoizedState=null,r.updateQueue=null,S0(i)?(n=!0,P3(r)):n=!1,r.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Zr(r),o.updater=Y3,r.stateNode=o,o._reactInternals=r,E9(r,i,t,l),r=R9(null,r,i,!0,n,l)):(r.tag=0,$1&&n&&pr(r),Z0(null,r,o,l),r=r.child),r;case 16:i=r.elementType;t:{switch(p3(t,r),t=r.pendingProps,o=i._init,i=o(i._payload),r.type=i,o=r.tag=js(i),t=g2(i,t),o){case 0:r=_9(null,r,i,t,l);break t;case 1:r=to(null,r,i,t,l);break t;case 11:r=Qi(null,r,i,t,l);break t;case 14:r=Ji(null,r,i,g2(i.type,t),l);break t}throw Error(N(306,i,""))}return r;case 0:return i=r.type,o=r.pendingProps,o=r.elementType===i?o:g2(i,o),_9(t,r,i,o,l);case 1:return i=r.type,o=r.pendingProps,o=r.elementType===i?o:g2(i,o),to(t,r,i,o,l);case 3:t:{if(Un(r),t===null)throw Error(N(387));i=r.pendingProps,n=r.memoizedState,o=n.element,Mn(t,r),$3(r,i,null,l);var h=r.memoizedState;if(i=h.element,n.isDehydrated)if(n={element:i,isDehydrated:!1,cache:h.cache,pendingSuspenseBoundaries:h.pendingSuspenseBoundaries,transitions:h.transitions},r.updateQueue.baseState=n,r.memoizedState=n,r.flags&256){o=h8(Error(N(423)),r),r=ao(t,r,i,l,o);break t}else if(i!==o){o=h8(Error(N(424)),r),r=ao(t,r,i,l,o);break t}else for(D0=P4(r.stateNode.containerInfo.firstChild),E0=r,$1=!0,s2=null,l=pn(r,null,i,l),r.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(o8(),i===o){r=i4(t,r,l);break t}Z0(t,r,i,l)}r=r.child}return r;case 5:return fn(r),t===null&&O9(r),i=r.type,o=r.pendingProps,n=t!==null?t.memoizedProps:null,h=o.children,S9(i,o)?h=null:n!==null&&S9(i,n)&&(r.flags|=32),kn(t,r),Z0(t,r,h,l),r.child;case 6:return t===null&&O9(r),null;case 13:return Gn(t,r,l);case 4:return xr(r,r.stateNode.containerInfo),i=r.pendingProps,t===null?r.child=n8(r,null,i,l):Z0(t,r,i,l),r.child;case 11:return i=r.type,o=r.pendingProps,o=r.elementType===i?o:g2(i,o),Qi(t,r,i,o,l);case 7:return Z0(t,r,r.pendingProps,l),r.child;case 8:return Z0(t,r,r.pendingProps.children,l),r.child;case 12:return Z0(t,r,r.pendingProps.children,l),r.child;case 10:t:{if(i=r.type._context,o=r.pendingProps,n=r.memoizedProps,h=o.value,B1(b3,i._currentValue),i._currentValue=h,n!==null)if(M2(n.value,h)){if(n.children===o.children&&!P0.current){r=i4(t,r,l);break t}}else for(n=r.child,n!==null&&(n.return=r);n!==null;){var v=n.dependencies;if(v!==null){h=n.child;for(var u=v.firstContext;u!==null;){if(u.context===i){if(n.tag===1){u=a4(-1,l&-l),u.tag=2;var s=n.updateQueue;if(s!==null){s=s.shared;var p=s.pending;p===null?u.next=u:(u.next=p.next,p.next=u),s.pending=u}}n.lanes|=l,u=n.alternate,u!==null&&(u.lanes|=l),F9(n.return,l,r),v.lanes|=l;break}u=u.next}}else if(n.tag===10)h=n.type===r.type?null:n.child;else if(n.tag===18){if(h=n.return,h===null)throw Error(N(341));h.lanes|=l,v=h.alternate,v!==null&&(v.lanes|=l),F9(h,l,r),h=n.sibling}else h=n.child;if(h!==null)h.return=n;else for(h=n;h!==null;){if(h===r){h=null;break}if(n=h.sibling,n!==null){n.return=h.return,h=n;break}h=h.return}n=h}Z0(t,r,o.children,l),r=r.child}return r;case 9:return o=r.type,i=r.pendingProps.children,r8(r,l),o=Q0(o),i=i(o),r.flags|=1,Z0(t,r,i,l),r.child;case 14:return i=r.type,o=g2(i,r.pendingProps),o=g2(i.type,o),Ji(t,r,i,o,l);case 15:return Rn(t,r,r.type,r.pendingProps,l);case 17:return i=r.type,o=r.pendingProps,o=r.elementType===i?o:g2(i,o),p3(t,r),r.tag=1,S0(i)?(t=!0,P3(r)):t=!1,r8(r,l),En(r,i,o),E9(r,i,o,l),R9(null,r,i,!0,t,l);case 19:return Wn(t,r,l);case 22:return In(t,r,l)}throw Error(N(156,r.tag))};function cc(t,r){return $o(t,r)}function Ws(t,r,l,i){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Y0(t,r,l,i){return new Ws(t,r,l,i)}function Er(t){return t=t.prototype,!(!t||!t.isReactComponent)}function js(t){if(typeof t=="function")return Er(t)?1:0;if(t!=null){if(t=t.$$typeof,t===lr)return 11;if(t===er)return 14}return 2}function T4(t,r){var l=t.alternate;return l===null?(l=Y0(t.tag,r,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=r,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&14680064,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,r=t.dependencies,l.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l}function f3(t,r,l,i,o,n){var h=2;if(i=t,typeof t=="function")Er(t)&&(h=1);else if(typeof t=="string")h=5;else t:switch(t){case R6:return g6(l.children,o,n,r);case rr:h=8,o|=8;break;case c9:return t=Y0(12,l,r,o|2),t.elementType=c9,t.lanes=n,t;case h9:return t=Y0(13,l,r,o),t.elementType=h9,t.lanes=n,t;case d9:return t=Y0(19,l,r,o),t.elementType=d9,t.lanes=n,t;case Mo:return J3(l,o,n,r);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case po:h=10;break t;case Ho:h=9;break t;case lr:h=11;break t;case er:h=14;break t;case V4:h=16,i=null;break t}throw Error(N(130,t==null?t:typeof t,""))}return r=Y0(h,l,r,o),r.elementType=t,r.type=i,r.lanes=n,r}function g6(t,r,l,i){return t=Y0(7,t,i,r),t.lanes=l,t}function J3(t,r,l,i){return t=Y0(22,t,i,r),t.elementType=Mo,t.lanes=l,t.stateNode={isHidden:!1},t}function i9(t,r,l){return t=Y0(6,t,null,r),t.lanes=l,t}function o9(t,r,l){return r=Y0(4,t.children!==null?t.children:[],t.key,r),r.lanes=l,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}function qs(t,r,l,i,o){this.tag=r,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=k7(0),this.expirationTimes=k7(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=k7(0),this.identifierPrefix=i,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Nr(t,r,l,i,o,n,h,v,u){return t=new qs(t,r,l,v,u),r===1?(r=1,n===!0&&(r|=8)):r=0,n=Y0(3,null,null,r),t.current=n,n.stateNode=t,n.memoizedState={element:i,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zr(n),t}function Ks(t,r,l){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:_6,key:i==null?null:""+i,children:t,containerInfo:r,implementation:l}}function hc(t){if(!t)return O4;t=t._reactInternals;t:{if(A6(t)!==t||t.tag!==1)throw Error(N(170));var r=t;do{switch(r.tag){case 3:r=r.stateNode.context;break t;case 1:if(S0(r.type)){r=r.stateNode.__reactInternalMemoizedMergedChildContext;break t}}r=r.return}while(r!==null);throw Error(N(171))}if(t.tag===1){var l=t.type;if(S0(l))return hn(t,l,r)}return r}function dc(t,r,l,i,o,n,h,v,u){return t=Nr(l,i,!0,t,o,n,h,v,u),t.context=hc(null),l=t.current,i=x0(),o=b4(l),n=a4(i,o),n.callback=r??null,S4(l,n,o),t.current.lanes=o,Rt(t,o,i),y0(t,i),t}function ta(t,r,l,i){var o=r.current,n=x0(),h=b4(o);return l=hc(l),r.context===null?r.context=l:r.pendingContext=l,r=a4(n,h),r.payload={element:t},i=i===void 0?null:i,i!==null&&(r.callback=i),t=S4(o,r,h),t!==null&&(H2(t,o,h,n),g3(t,o,h)),h}function I3(t){return t=t.current,t.child?(t.child.tag===5,t.child.stateNode):null}function go(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<r?l:r}}function _r(t,r){go(t,r),(t=t.alternate)&&go(t,r)}function Ys(){return null}var vc=typeof reportError=="function"?reportError:function(t){console.error(t)};function Rr(t){this._internalRoot=t}aa.prototype.render=Rr.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(N(409));ta(t,r,null,null)};aa.prototype.unmount=Rr.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;M6(function(){ta(null,t,null,null)}),r[l4]=null}};function aa(t){this._internalRoot=t}aa.prototype.unstable_scheduleHydration=function(t){if(t){var r=Ro();t={blockedOn:null,target:t,priority:r};for(var l=0;l<Z4.length&&r!==0&&r<Z4[l].priority;l++);Z4.splice(l,0,t),l===0&&ko(t)}};function Ir(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function ra(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function uo(){}function Xs(t,r,l,i,o){if(o){if(typeof i=="function"){var n=i;i=function(){var s=I3(h);n.call(s)}}var h=dc(r,i,t,0,null,!1,!1,"",uo);return t._reactRootContainer=h,t[l4]=h.current,bt(t.nodeType===8?t.parentNode:t),M6(),h}for(;o=t.lastChild;)t.removeChild(o);if(typeof i=="function"){var v=i;i=function(){var s=I3(u);v.call(s)}}var u=Nr(t,0,!1,null,null,!1,!1,"",uo);return t._reactRootContainer=u,t[l4]=u.current,bt(t.nodeType===8?t.parentNode:t),M6(function(){ta(r,u,l,i)}),u}function la(t,r,l,i,o){var n=l._reactRootContainer;if(n){var h=n;if(typeof o=="function"){var v=o;o=function(){var u=I3(h);v.call(u)}}ta(r,h,t,o)}else h=Xs(l,r,t,o,i);return I3(h)}No=function(t){switch(t.tag){case 3:var r=t.stateNode;if(r.current.memoizedState.isDehydrated){var l=ut(r.pendingLanes);l!==0&&(nr(r,l|1),y0(r,k1()),(m1&6)===0&&(d8=k1()+500,E4()))}break;case 13:M6(function(){var i=e4(t,1);if(i!==null){var o=x0();H2(i,t,1,o)}}),_r(t,1)}};cr=function(t){if(t.tag===13){var r=e4(t,134217728);if(r!==null){var l=x0();H2(r,t,134217728,l)}_r(t,134217728)}};_o=function(t){if(t.tag===13){var r=b4(t),l=e4(t,r);if(l!==null){var i=x0();H2(l,t,r,i)}_r(t,r)}};Ro=function(){return x1};Io=function(t,r){var l=x1;try{return x1=t,r()}finally{x1=l}};V9=function(t,r,l){switch(r){case"input":if(u9(t,l),r=l.name,l.type==="radio"&&r!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),r=0;r<l.length;r++){var i=l[r];if(i!==t&&i.form===t.form){var o=j3(i);if(!o)throw Error(N(90));Ao(i),u9(i,o)}}}break;case"textarea":mo(t,l);break;case"select":r=l.value,r!=null&&Q6(t,!!l.multiple,r,!1)}};Bo=Or;Po=M6;var Qs={usingClientEntryPoint:!1,Events:[kt,G6,j3,Co,wo,Or]},ht={findFiberByHostInstance:c6,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Js={bundleType:ht.bundleType,version:ht.version,rendererPackageName:ht.rendererPackageName,rendererConfig:ht.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:o4.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=bo(t),t===null?null:t.stateNode},findFiberByHostInstance:ht.findFiberByHostInstance||Ys,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(dt=__REACT_DEVTOOLS_GLOBAL_HOOK__,!dt.isDisabled&&dt.supportsFiber))try{k3=dt.inject(Js),T2=dt}catch{}var dt;R0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Qs;R0.createPortal=function(t,r){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ir(r))throw Error(N(200));return Ks(t,r,null,l)};R0.createRoot=function(t,r){if(!Ir(t))throw Error(N(299));var l=!1,i="",o=vc;return r!=null&&(r.unstable_strictMode===!0&&(l=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),r=Nr(t,1,!1,null,null,l,!1,i,o),t[l4]=r.current,bt(t.nodeType===8?t.parentNode:t),new Rr(r)};R0.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(N(188)):(t=Object.keys(t).join(","),Error(N(268,t)));return t=bo(r),t=t===null?null:t.stateNode,t};R0.flushSync=function(t){return M6(t)};R0.hydrate=function(t,r,l){if(!ra(r))throw Error(N(200));return la(null,t,r,!0,l)};R0.hydrateRoot=function(t,r,l){if(!Ir(t))throw Error(N(405));var i=l!=null&&l.hydratedSources||null,o=!1,n="",h=vc;if(l!=null&&(l.unstable_strictMode===!0&&(o=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onRecoverableError!==void 0&&(h=l.onRecoverableError)),r=dc(r,null,t,1,l??null,o,!1,n,h),t[l4]=r.current,bt(t),i)for(t=0;t<i.length;t++)l=i[t],o=l._getVersion,o=o(l._source),r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[l,o]:r.mutableSourceEagerHydrationData.push(l,o);return new aa(r)};R0.render=function(t,r,l){if(!ra(r))throw Error(N(200));return la(null,t,r,!1,l)};R0.unmountComponentAtNode=function(t){if(!ra(t))throw Error(N(40));return t._reactRootContainer?(M6(function(){la(null,null,t,!1,function(){t._reactRootContainer=null,t[l4]=null})}),!0):!1};R0.unstable_batchedUpdates=Or;R0.unstable_renderSubtreeIntoContainer=function(t,r,l,i){if(!ra(l))throw Error(N(200));if(t==null||t._reactInternals===void 0)throw Error(N(38));return la(t,r,l,!1,i)};R0.version="18.3.1-next-f1338f8080-20240426"});var O2=W0((bA,sc)=>{"use strict";function uc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(uc)}catch(t){console.error(t)}}uc(),sc.exports=gc()});var ea=W0(kr=>{"use strict";var pc=O2();kr.createRoot=pc.createRoot,kr.hydrateRoot=pc.hydrateRoot;var TA});var Mc=W0(ia=>{"use strict";var tp=I(),ap=Symbol.for("react.element"),rp=Symbol.for("react.fragment"),lp=Object.prototype.hasOwnProperty,ep=tp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ip={key:!0,ref:!0,__self:!0,__source:!0};function Hc(t,r,l){var i,o={},n=null,h=null;l!==void 0&&(n=""+l),r.key!==void 0&&(n=""+r.key),r.ref!==void 0&&(h=r.ref);for(i in r)lp.call(r,i)&&!ip.hasOwnProperty(i)&&(o[i]=r[i]);if(t&&t.defaultProps)for(i in r=t.defaultProps,r)o[i]===void 0&&(o[i]=r[i]);return{$$typeof:ap,type:t,key:n,ref:h,props:o,_owner:ep.current}}ia.Fragment=rp;ia.jsx=Hc;ia.jsxs=Hc});var Gt=W0((FA,fc)=>{"use strict";fc.exports=Mc()});var Vh=W0(Ah=>{"use strict";var n5=I();function lH(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var eH=typeof Object.is=="function"?Object.is:lH,iH=n5.useSyncExternalStore,oH=n5.useRef,nH=n5.useEffect,cH=n5.useMemo,hH=n5.useDebugValue;Ah.useSyncExternalStoreWithSelector=function(t,r,l,i,o){var n=oH(null);if(n.current===null){var h={hasValue:!1,value:null};n.current=h}else h=n.current;n=cH(function(){function u(H){if(!s){if(s=!0,p=H,H=i(H),o!==void 0&&h.hasValue){var Z=h.value;if(o(Z,H))return A=Z}return A=H}if(Z=A,eH(p,H))return Z;var L=i(H);return o!==void 0&&o(Z,L)?(p=H,Z):(p=H,A=L)}var s=!1,p,A,M=l===void 0?null:l;return[function(){return u(r())},M===null?void 0:function(){return u(M())}]},[r,l,i,o]);var v=iH(t,n[0],n[1]);return nH(function(){h.hasValue=!0,h.value=v},[v]),hH(v),v}});var Zh=W0((RZ,mh)=>{"use strict";mh.exports=Vh()});var Ev=W0((exports,module)=>{(function(t){if(typeof exports=="object"&&typeof module<"u")module.exports=t();else if(typeof define=="function"&&define.amd)define([],t);else{var r;typeof window<"u"?r=window:typeof global<"u"?r=global:typeof self<"u"?r=self:r=this,r.libphonenumber=t()}})(function(){var define,module,exports;return(function(){function t(r,l,i){function o(v,u){if(!l[v]){if(!r[v]){var s=typeof Q8=="function"&&Q8;if(!u&&s)return s(v,!0);if(n)return n(v,!0);var p=new Error("Cannot find module '"+v+"'");throw p.code="MODULE_NOT_FOUND",p}var A=l[v]={exports:{}};r[v][0].call(A.exports,function(M){var H=r[v][1][M];return o(H||M)},A,A.exports,t,r,l,i)}return l[v].exports}for(var n=typeof Q8=="function"&&Q8,h=0;h<i.length;h++)o(i[h]);return o}return t})()({1:[function(require,module,exports){(function(global){(function(){var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.createTemplateTagFirstArg=function(t){return t.raw=t},$jscomp.createTemplateTagFirstArgWithRaw=function(t,r){return t.raw=r,t},$jscomp.arrayIteratorImpl=function(t){var r=0;return function(){return r<t.length?{done:!1,value:t[r++]}:{done:!0}}},$jscomp.arrayIterator=function(t){return{next:$jscomp.arrayIteratorImpl(t)}},$jscomp.makeIterator=function(t){var r=typeof Symbol<"u"&&Symbol.iterator&&t[Symbol.iterator];return r?r.call(t):$jscomp.arrayIterator(t)},$jscomp.arrayFromIterator=function(t){for(var r,l=[];!(r=t.next()).done;)l.push(r.value);return l},$jscomp.arrayFromIterable=function(t){return t instanceof Array?t:$jscomp.arrayFromIterator($jscomp.makeIterator(t))},$jscomp.checkStringArgs=function(t,r,l){if(t==null)throw new TypeError("The 'this' value for String.prototype."+l+" must not be null or undefined");if(r instanceof RegExp)throw new TypeError("First argument to String.prototype."+l+" must not be a regular expression");return t+""},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.ISOLATE_POLYFILLS=!1,$jscomp.FORCE_POLYFILL_PROMISE=!1,$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||typeof Object.defineProperties=="function"?Object.defineProperty:function(t,r,l){return t==Array.prototype||t==Object.prototype||(t[r]=l.value),t},$jscomp.getGlobal=function(t){t=[typeof globalThis=="object"&&globalThis,t,typeof window=="object"&&window,typeof self=="object"&&self,typeof global=="object"&&global];for(var r=0;r<t.length;++r){var l=t[r];if(l&&l.Math==Math)return l}throw Error("Cannot find global object")},$jscomp.global=$jscomp.getGlobal(this),$jscomp.IS_SYMBOL_NATIVE=typeof Symbol=="function"&&typeof Symbol("x")=="symbol",$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE,$jscomp.polyfills={},$jscomp.propertyToPolyfillSymbol={},$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(t,r){var l=$jscomp.propertyToPolyfillSymbol[r];return l==null?t[r]:(l=t[l],l!==void 0?l:t[r])};$jscomp.polyfill=function(t,r,l,i){r&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(t,r,l,i):$jscomp.polyfillUnisolated(t,r,l,i))},$jscomp.polyfillUnisolated=function(t,r,l,i){for(l=$jscomp.global,t=t.split("."),i=0;i<t.length-1;i++){var o=t[i];if(!(o in l))return;l=l[o]}t=t[t.length-1],i=l[t],r=r(i),r!=i&&r!=null&&$jscomp.defineProperty(l,t,{configurable:!0,writable:!0,value:r})},$jscomp.polyfillIsolated=function(t,r,l,i){var o=t.split(".");t=o.length===1,i=o[0],i=!t&&i in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var n=0;n<o.length-1;n++){var h=o[n];if(!(h in i))return;i=i[h]}o=o[o.length-1],l=$jscomp.IS_SYMBOL_NATIVE&&l==="es6"?i[o]:null,r=r(l),r!=null&&(t?$jscomp.defineProperty($jscomp.polyfills,o,{configurable:!0,writable:!0,value:r}):r!==l&&($jscomp.propertyToPolyfillSymbol[o]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(o):$jscomp.POLYFILL_PREFIX+o,o=$jscomp.propertyToPolyfillSymbol[o],$jscomp.defineProperty(i,o,{configurable:!0,writable:!0,value:r})))},$jscomp.polyfill("String.prototype.endsWith",function(t){return t||function(r,l){var i=$jscomp.checkStringArgs(this,r,"endsWith");r+="",l===void 0&&(l=i.length),l=Math.max(0,Math.min(l|0,i.length));for(var o=r.length;0<o&&0<l;)if(i[--l]!=r[--o])return!1;return 0>=o}},"es6","es3"),$jscomp.findInternal=function(t,r,l){t instanceof String&&(t=String(t));for(var i=t.length,o=0;o<i;o++){var n=t[o];if(r.call(l,n,o,t))return{i:o,v:n}}return{i:-1,v:void 0}},$jscomp.polyfill("Array.prototype.find",function(t){return t||function(r,l){return $jscomp.findInternal(this,r,l).v}},"es6","es3"),$jscomp.polyfill("String.prototype.startsWith",function(t){return t||function(r,l){var i=$jscomp.checkStringArgs(this,r,"startsWith");r+="";var o=i.length,n=r.length;l=Math.max(0,Math.min(l|0,i.length));for(var h=0;h<n&&l<o;)if(i[l++]!=r[h++])return!1;return h>=n}},"es6","es3"),$jscomp.polyfill("String.prototype.repeat",function(t){return t||function(r){var l=$jscomp.checkStringArgs(this,null,"repeat");if(0>r||1342177279<r)throw new RangeError("Invalid count value");r|=0;for(var i="";r;)r&1&&(i+=l),(r>>>=1)&&(l+=l);return i}},"es6","es3"),$jscomp.initSymbol=function(){},$jscomp.polyfill("Symbol",function(t){if(t)return t;var r=function(o,n){this.$jscomp$symbol$id_=o,$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:n})};r.prototype.toString=function(){return this.$jscomp$symbol$id_};var l=0,i=function(o){if(this instanceof i)throw new TypeError("Symbol is not a constructor");return new r("jscomp_symbol_"+(o||"")+"_"+l++,o)};return i},"es6","es3"),$jscomp.polyfill("Symbol.iterator",function(t){if(t)return t;t=Symbol("Symbol.iterator");for(var r="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),l=0;l<r.length;l++){var i=$jscomp.global[r[l]];typeof i=="function"&&typeof i.prototype[t]!="function"&&$jscomp.defineProperty(i.prototype,t,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return t},"es6","es3"),$jscomp.iteratorPrototype=function(t){return t={next:t},t[Symbol.iterator]=function(){return this},t},$jscomp.iteratorFromArray=function(t,r){t instanceof String&&(t+="");var l=0,i=!1,o={next:function(){if(!i&&l<t.length){var n=l++;return{value:r(n,t[n]),done:!1}}return i=!0,{done:!0,value:void 0}}};return o[Symbol.iterator]=function(){return o},o},$jscomp.polyfill("Array.prototype.keys",function(t){return t||function(){return $jscomp.iteratorFromArray(this,function(r){return r})}},"es6","es3"),$jscomp.polyfill("Object.is",function(t){return t||function(r,l){return r===l?r!==0||1/r===1/l:r!==r&&l!==l}},"es6","es3"),$jscomp.polyfill("Array.prototype.includes",function(t){return t||function(r,l){var i=this;i instanceof String&&(i=String(i));var o=i.length;for(l=l||0,0>l&&(l=Math.max(l+o,0));l<o;l++){var n=i[l];if(n===r||Object.is(n,r))return!0}return!1}},"es7","es3"),$jscomp.polyfill("String.prototype.includes",function(t){return t||function(r,l){return $jscomp.checkStringArgs(this,r,"includes").indexOf(r,l||0)!==-1}},"es6","es3");var COMPILED=!0,goog=goog||{};goog.global=this||self,goog.exportPath_=function(t,r,l,i){t=t.split("."),i=i||goog.global,t[0]in i||typeof i.execScript>"u"||i.execScript("var "+t[0]);for(var o;t.length&&(o=t.shift());)if(t.length||r===void 0)i=i[o]&&i[o]!==Object.prototype[o]?i[o]:i[o]={};else if(!l&&goog.isObject(r)&&goog.isObject(i[o]))for(var n in r)r.hasOwnProperty(n)&&(i[o][n]=r[n]);else i[o]=r},goog.define=function(t,r){if(!COMPILED){var l=goog.global.CLOSURE_UNCOMPILED_DEFINES,i=goog.global.CLOSURE_DEFINES;l&&l.nodeType===void 0&&Object.prototype.hasOwnProperty.call(l,t)?r=l[t]:i&&i.nodeType===void 0&&Object.prototype.hasOwnProperty.call(i,t)&&(r=i[t])}return r},goog.FEATURESET_YEAR=2012,goog.DEBUG=!0,goog.LOCALE="en",goog.TRUSTED_SITE=!0,goog.DISALLOW_TEST_ONLY_CODE=COMPILED&&!goog.DEBUG,goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1,goog.provide=function(t){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");if(!COMPILED&&goog.isProvided_(t))throw Error('Namespace "'+t+'" already declared.');goog.constructNamespace_(t)},goog.constructNamespace_=function(t,r,l){if(!COMPILED){delete goog.implicitNamespaces_[t];for(var i=t;(i=i.substring(0,i.lastIndexOf(".")))&&!goog.getObjectByName(i);)goog.implicitNamespaces_[i]=!0}goog.exportPath_(t,r,l)},goog.getScriptNonce=function(t){return t&&t!=goog.global?goog.getScriptNonce_(t.document):(goog.cspNonce_===null&&(goog.cspNonce_=goog.getScriptNonce_(goog.global.document)),goog.cspNonce_)},goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/,goog.cspNonce_=null,goog.getScriptNonce_=function(t){return(t=t.querySelector&&t.querySelector("script[nonce]"))&&(t=t.nonce||t.getAttribute("nonce"))&&goog.NONCE_PATTERN_.test(t)?t:""},goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/,goog.module=function(t){if(typeof t!="string"||!t||t.search(goog.VALID_MODULE_RE_)==-1)throw Error("Invalid module identifier");if(!goog.isInGoogModuleLoader_())throw Error("Module "+t+" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");if(goog.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");if(goog.moduleLoaderState_.moduleName=t,!COMPILED){if(goog.isProvided_(t))throw Error('Namespace "'+t+'" already declared.');delete goog.implicitNamespaces_[t]}},goog.module.get=function(t){return goog.module.getInternal_(t)},goog.module.getInternal_=function(t){if(!COMPILED){if(t in goog.loadedModules_)return goog.loadedModules_[t].exports;if(!goog.implicitNamespaces_[t])return t=goog.getObjectByName(t),t??null}return null},goog.ModuleType={ES6:"es6",GOOG:"goog"},goog.moduleLoaderState_=null,goog.isInModuleLoader_=function(){return goog.isInGoogModuleLoader_()||goog.isInEs6ModuleLoader_()},goog.isInGoogModuleLoader_=function(){return!!goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.GOOG},goog.isInEs6ModuleLoader_=function(){if(goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.ES6)return!0;var t=goog.global.$jscomp;return t?typeof t.getCurrentModulePath!="function"?!1:!!t.getCurrentModulePath():!1},goog.module.declareLegacyNamespace=function(){if(!COMPILED&&!goog.isInGoogModuleLoader_())throw Error("goog.module.declareLegacyNamespace must be called from within a goog.module");if(!COMPILED&&!goog.moduleLoaderState_.moduleName)throw Error("goog.module must be called prior to goog.module.declareLegacyNamespace.");goog.moduleLoaderState_.declareLegacyNamespace=!0},goog.declareModuleId=function(t){if(!COMPILED){if(!goog.isInEs6ModuleLoader_())throw Error("goog.declareModuleId may only be called from within an ES6 module");if(goog.moduleLoaderState_&&goog.moduleLoaderState_.moduleName)throw Error("goog.declareModuleId may only be called once per module.");if(t in goog.loadedModules_)throw Error('Module with namespace "'+t+'" already exists.')}if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=t;else{var r=goog.global.$jscomp;if(!r||typeof r.getCurrentModulePath!="function")throw Error('Module with namespace "'+t+'" has been loaded incorrectly.');r=r.require(r.getCurrentModulePath()),goog.loadedModules_[t]={exports:r,type:goog.ModuleType.ES6,moduleId:t}}},goog.setTestOnly=function(t){if(goog.DISALLOW_TEST_ONLY_CODE)throw t=t||"",Error("Importing test-only code into non-debug environment"+(t?": "+t:"."))},goog.forwardDeclare=function(t){},COMPILED||(goog.isProvided_=function(t){return t in goog.loadedModules_||!goog.implicitNamespaces_[t]&&goog.getObjectByName(t)!=null},goog.implicitNamespaces_={"goog.module":!0}),goog.getObjectByName=function(t,r){t=t.split("."),r=r||goog.global;for(var l=0;l<t.length;l++)if(r=r[t[l]],r==null)return null;return r},goog.addDependency=function(t,r,l,i){!COMPILED&&goog.DEPENDENCIES_ENABLED&&goog.debugLoader_.addDependency(t,r,l,i)},goog.ENABLE_DEBUG_LOADER=!0,goog.logToConsole_=function(t){goog.global.console&&goog.global.console.error(t)},goog.require=function(t){if(!COMPILED){if(goog.ENABLE_DEBUG_LOADER&&goog.debugLoader_.requested(t),goog.isProvided_(t)){if(goog.isInModuleLoader_())return goog.module.getInternal_(t)}else if(goog.ENABLE_DEBUG_LOADER){var r=goog.moduleLoaderState_;goog.moduleLoaderState_=null;try{goog.debugLoader_.load_(t)}finally{goog.moduleLoaderState_=r}}return null}},goog.requireType=function(t){return{}},goog.basePath="",goog.nullFunction=function(){},goog.abstractMethod=function(){throw Error("unimplemented abstract method")},goog.addSingletonGetter=function(t){t.instance_=void 0,t.getInstance=function(){return t.instance_?t.instance_:(goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingletons_.length]=t),t.instance_=new t)}},goog.instantiatedSingletons_=[],goog.LOAD_MODULE_USING_EVAL=!0,goog.SEAL_MODULE_EXPORTS=goog.DEBUG,goog.loadedModules_={},goog.DEPENDENCIES_ENABLED=!COMPILED&&goog.ENABLE_DEBUG_LOADER,goog.TRANSPILE="detect",goog.ASSUME_ES_MODULES_TRANSPILED=!1,goog.TRANSPILE_TO_LANGUAGE="",goog.TRANSPILER="transpile.js",goog.hasBadLetScoping=null,goog.useSafari10Workaround=function(){if(goog.hasBadLetScoping==null){try{var a=!eval('"use strict";let x = 1; function f() { return typeof x; };f() == "number";')}catch(t){a=!1}goog.hasBadLetScoping=a}return goog.hasBadLetScoping},goog.workaroundSafari10EvalBug=function(t){return"(function(){"+t+`
8
+ `+n.stack}return{value:t,source:r,stack:o,digest:null}}function l9(t,r,l){return{value:t,source:null,stack:l??null,digest:r??null}}function N9(t,r){try{console.error(r.value)}catch(l){setTimeout(function(){throw l})}}var Ps=typeof WeakMap=="function"?WeakMap:Map;function Nn(t,r,l){l=a4(-1,l),l.tag=3,l.payload={element:null};var i=r.value;return l.callback=function(){N3||(N3=!0,K9=i),N9(t,r)},l}function _n(t,r,l){l=a4(-1,l),l.tag=3;var i=t.type.getDerivedStateFromError;if(typeof i=="function"){var o=r.value;l.payload=function(){return i(o)},l.callback=function(){N9(t,r)}}var n=t.stateNode;return n!==null&&typeof n.componentDidCatch=="function"&&(l.callback=function(){N9(t,r),typeof i!="function"&&(y4===null?y4=new Set([this]):y4.add(this));var h=r.stack;this.componentDidCatch(r.value,{componentStack:h!==null?h:""})}),l}function Ki(t,r,l){var i=t.pingCache;if(i===null){i=t.pingCache=new Ps;var o=new Set;i.set(r,o)}else o=i.get(r),o===void 0&&(o=new Set,i.set(r,o));o.has(l)||(o.add(l),t=ks.bind(null,t,r,l),r.then(t,t))}function Yi(t){do{var r;if((r=t.tag===13)&&(r=t.memoizedState,r=r!==null?r.dehydrated!==null:!0),r)return t;t=t.return}while(t!==null);return null}function Xi(t,r,l,i,o){return(t.mode&1)===0?(t===r?t.flags|=65536:(t.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(r=a4(-1,1),r.tag=2,S4(l,r,1))),l.lanes|=1),t):(t.flags|=65536,t.lanes=o,t)}var Ss=o4.ReactCurrentOwner,B0=!1;function Z0(t,r,l,i){r.child=t===null?pn(r,null,l,i):n8(r,t.child,l,i)}function Qi(t,r,l,i,o){l=l.render;var n=r.ref;return r8(r,o),i=wr(t,r,l,i,n,o),l=Br(),t!==null&&!B0?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~o,i4(t,r,o)):($1&&l&&pr(r),r.flags|=1,Z0(t,r,i,o),r.child)}function Ji(t,r,l,i,o){if(t===null){var n=l.type;return typeof n=="function"&&!Er(n)&&n.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(r.tag=15,r.type=n,Rn(t,r,n,i,o)):(t=f3(l.type,null,i,r,r.mode,o),t.ref=r.ref,t.return=r,r.child=t)}if(n=t.child,(t.lanes&o)===0){var h=n.memoizedProps;if(l=l.compare,l=l!==null?l:yt,l(h,i)&&t.ref===r.ref)return i4(t,r,o)}return r.flags|=1,t=T4(n,i),t.ref=r.ref,t.return=r,r.child=t}function Rn(t,r,l,i,o){if(t!==null){var n=t.memoizedProps;if(yt(n,i)&&t.ref===r.ref)if(B0=!1,r.pendingProps=i=n,(t.lanes&o)!==0)(t.flags&131072)!==0&&(B0=!0);else return r.lanes=t.lanes,i4(t,r,o)}return _9(t,r,l,i,o)}function In(t,r,l){var i=r.pendingProps,o=i.children,n=t!==null?t.memoizedState:null;if(i.mode==="hidden")if((r.mode&1)===0)r.memoizedState={baseLanes:0,cachePool:null,transitions:null},B1(X6,F0),F0|=l;else{if((l&1073741824)===0)return t=n!==null?n.baseLanes|l:l,r.lanes=r.childLanes=1073741824,r.memoizedState={baseLanes:t,cachePool:null,transitions:null},r.updateQueue=null,B1(X6,F0),F0|=t,null;r.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=n!==null?n.baseLanes:l,B1(X6,F0),F0|=i}else n!==null?(i=n.baseLanes|l,r.memoizedState=null):i=l,B1(X6,F0),F0|=i;return Z0(t,r,o,l),r.child}function kn(t,r){var l=r.ref;(t===null&&l!==null||t!==null&&t.ref!==l)&&(r.flags|=512,r.flags|=2097152)}function _9(t,r,l,i,o){var n=S0(l)?u6:f0.current;return n=i8(r,n),r8(r,o),l=wr(t,r,l,i,n,o),i=Br(),t!==null&&!B0?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~o,i4(t,r,o)):($1&&i&&pr(r),r.flags|=1,Z0(t,r,l,o),r.child)}function to(t,r,l,i,o){if(S0(l)){var n=!0;P3(r)}else n=!1;if(r8(r,o),r.stateNode===null)p3(t,r),En(r,l,i),E9(r,l,i,o),i=!0;else if(t===null){var h=r.stateNode,v=r.memoizedProps;h.props=v;var u=h.context,s=l.contextType;typeof s=="object"&&s!==null?s=Q0(s):(s=S0(l)?u6:f0.current,s=i8(r,s));var p=l.getDerivedStateFromProps,A=typeof p=="function"||typeof h.getSnapshotBeforeUpdate=="function";A||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(v!==i||u!==s)&&qi(r,h,i,s),m4=!1;var M=r.memoizedState;h.state=M,$3(r,i,h,o),u=r.memoizedState,v!==i||M!==u||P0.current||m4?(typeof p=="function"&&(D9(r,l,p,i),u=r.memoizedState),(v=m4||ji(r,l,v,i,M,u,s))?(A||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(r.flags|=4194308)):(typeof h.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=i,r.memoizedState=u),h.props=i,h.state=u,h.context=s,i=v):(typeof h.componentDidMount=="function"&&(r.flags|=4194308),i=!1)}else{h=r.stateNode,Mn(t,r),v=r.memoizedProps,s=r.type===r.elementType?v:g2(r.type,v),h.props=s,A=r.pendingProps,M=h.context,u=l.contextType,typeof u=="object"&&u!==null?u=Q0(u):(u=S0(l)?u6:f0.current,u=i8(r,u));var H=l.getDerivedStateFromProps;(p=typeof H=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(v!==A||M!==u)&&qi(r,h,i,u),m4=!1,M=r.memoizedState,h.state=M,$3(r,i,h,o);var Z=r.memoizedState;v!==A||M!==Z||P0.current||m4?(typeof H=="function"&&(D9(r,l,H,i),Z=r.memoizedState),(s=m4||ji(r,l,s,i,M,Z,u)||!1)?(p||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(i,Z,u),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(i,Z,u)),typeof h.componentDidUpdate=="function"&&(r.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof h.componentDidUpdate!="function"||v===t.memoizedProps&&M===t.memoizedState||(r.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||v===t.memoizedProps&&M===t.memoizedState||(r.flags|=1024),r.memoizedProps=i,r.memoizedState=Z),h.props=i,h.state=Z,h.context=u,i=s):(typeof h.componentDidUpdate!="function"||v===t.memoizedProps&&M===t.memoizedState||(r.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||v===t.memoizedProps&&M===t.memoizedState||(r.flags|=1024),i=!1)}return R9(t,r,l,i,n,o)}function R9(t,r,l,i,o,n){kn(t,r);var h=(r.flags&128)!==0;if(!i&&!h)return o&&Ni(r,l,!1),i4(t,r,n);i=r.stateNode,Ss.current=r;var v=h&&typeof l.getDerivedStateFromError!="function"?null:i.render();return r.flags|=1,t!==null&&h?(r.child=n8(r,t.child,null,n),r.child=n8(r,null,v,n)):Z0(t,r,v,n),r.memoizedState=i.state,o&&Ni(r,l,!0),r.child}function Un(t){var r=t.stateNode;r.pendingContext?Ei(t,r.pendingContext,r.pendingContext!==r.context):r.context&&Ei(t,r.context,!1),xr(t,r.containerInfo)}function ao(t,r,l,i,o){return o8(),Mr(o),r.flags|=256,Z0(t,r,l,i),r.child}var I9={dehydrated:null,treeContext:null,retryLane:0};function k9(t){return{baseLanes:t,cachePool:null,transitions:null}}function Gn(t,r,l){var i=r.pendingProps,o=D1.current,n=!1,h=(r.flags&128)!==0,v;if((v=h)||(v=t!==null&&t.memoizedState===null?!1:(o&2)!==0),v?(n=!0,r.flags&=-129):(t===null||t.memoizedState!==null)&&(o|=1),B1(D1,o&1),t===null)return O9(r),t=r.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((r.mode&1)===0?r.lanes=1:t.data==="$!"?r.lanes=8:r.lanes=1073741824,null):(h=i.children,t=i.fallback,n?(i=r.mode,n=r.child,h={mode:"hidden",children:h},(i&1)===0&&n!==null?(n.childLanes=0,n.pendingProps=h):n=J3(h,i,0,null),t=g6(t,i,l,null),n.return=r,t.return=r,n.sibling=t,r.child=n,r.child.memoizedState=k9(l),r.memoizedState=I9,t):yr(r,h));if(o=t.memoizedState,o!==null&&(v=o.dehydrated,v!==null))return ys(t,r,h,i,v,o,l);if(n){n=i.fallback,h=r.mode,o=t.child,v=o.sibling;var u={mode:"hidden",children:i.children};return(h&1)===0&&r.child!==o?(i=r.child,i.childLanes=0,i.pendingProps=u,r.deletions=null):(i=T4(o,u),i.subtreeFlags=o.subtreeFlags&14680064),v!==null?n=T4(v,n):(n=g6(n,h,l,null),n.flags|=2),n.return=r,i.return=r,i.sibling=n,r.child=i,i=n,n=r.child,h=t.child.memoizedState,h=h===null?k9(l):{baseLanes:h.baseLanes|l,cachePool:null,transitions:h.transitions},n.memoizedState=h,n.childLanes=t.childLanes&~l,r.memoizedState=I9,i}return n=t.child,t=n.sibling,i=T4(n,{mode:"visible",children:i.children}),(r.mode&1)===0&&(i.lanes=l),i.return=r,i.sibling=null,t!==null&&(l=r.deletions,l===null?(r.deletions=[t],r.flags|=16):l.push(t)),r.child=i,r.memoizedState=null,i}function yr(t,r){return r=J3({mode:"visible",children:r},t.mode,0,null),r.return=t,t.child=r}function o3(t,r,l,i){return i!==null&&Mr(i),n8(r,t.child,null,l),t=yr(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function ys(t,r,l,i,o,n,h){if(l)return r.flags&256?(r.flags&=-257,i=l9(Error(N(422))),o3(t,r,h,i)):r.memoizedState!==null?(r.child=t.child,r.flags|=128,null):(n=i.fallback,o=r.mode,i=J3({mode:"visible",children:i.children},o,0,null),n=g6(n,o,h,null),n.flags|=2,i.return=r,n.return=r,i.sibling=n,r.child=i,(r.mode&1)!==0&&n8(r,t.child,null,h),r.child.memoizedState=k9(h),r.memoizedState=I9,n);if((r.mode&1)===0)return o3(t,r,h,null);if(o.data==="$!"){if(i=o.nextSibling&&o.nextSibling.dataset,i)var v=i.dgst;return i=v,n=Error(N(419)),i=l9(n,i,void 0),o3(t,r,h,i)}if(v=(h&t.childLanes)!==0,B0||v){if(i=r0,i!==null){switch(h&-h){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=(o&(i.suspendedLanes|h))!==0?0:o,o!==0&&o!==n.retryLane&&(n.retryLane=o,e4(t,o),H2(i,t,o,-1))}return Dr(),i=l9(Error(N(421))),o3(t,r,h,i)}return o.data==="$?"?(r.flags|=128,r.child=t.child,r=Us.bind(null,t),o._reactRetry=r,null):(t=n.treeContext,D0=P4(o.nextSibling),E0=r,$1=!0,s2=null,t!==null&&(q0[K0++]=J2,q0[K0++]=t4,q0[K0++]=s6,J2=t.id,t4=t.overflow,s6=r),r=yr(r,i.children),r.flags|=4096,r)}function ro(t,r,l){t.lanes|=r;var i=t.alternate;i!==null&&(i.lanes|=r),F9(t.return,r,l)}function e9(t,r,l,i,o){var n=t.memoizedState;n===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:i,tail:l,tailMode:o}:(n.isBackwards=r,n.rendering=null,n.renderingStartTime=0,n.last=i,n.tail=l,n.tailMode=o)}function Wn(t,r,l){var i=r.pendingProps,o=i.revealOrder,n=i.tail;if(Z0(t,r,i.children,l),i=D1.current,(i&2)!==0)i=i&1|2,r.flags|=128;else{if(t!==null&&(t.flags&128)!==0)t:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&ro(t,l,r);else if(t.tag===19)ro(t,l,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break t;for(;t.sibling===null;){if(t.return===null||t.return===r)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}i&=1}if(B1(D1,i),(r.mode&1)===0)r.memoizedState=null;else switch(o){case"forwards":for(l=r.child,o=null;l!==null;)t=l.alternate,t!==null&&O3(t)===null&&(o=l),l=l.sibling;l=o,l===null?(o=r.child,r.child=null):(o=l.sibling,l.sibling=null),e9(r,!1,o,l,n);break;case"backwards":for(l=null,o=r.child,r.child=null;o!==null;){if(t=o.alternate,t!==null&&O3(t)===null){r.child=o;break}t=o.sibling,o.sibling=l,l=o,o=t}e9(r,!0,l,null,n);break;case"together":e9(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function p3(t,r){(r.mode&1)===0&&t!==null&&(t.alternate=null,r.alternate=null,r.flags|=2)}function i4(t,r,l){if(t!==null&&(r.dependencies=t.dependencies),H6|=r.lanes,(l&r.childLanes)===0)return null;if(t!==null&&r.child!==t.child)throw Error(N(153));if(r.child!==null){for(t=r.child,l=T4(t,t.pendingProps),r.child=l,l.return=r;t.sibling!==null;)t=t.sibling,l=l.sibling=T4(t,t.pendingProps),l.return=r;l.sibling=null}return r.child}function bs(t,r,l){switch(r.tag){case 3:Un(r),o8();break;case 5:fn(r);break;case 1:S0(r.type)&&P3(r);break;case 4:xr(r,r.stateNode.containerInfo);break;case 10:var i=r.type._context,o=r.memoizedProps.value;B1(b3,i._currentValue),i._currentValue=o;break;case 13:if(i=r.memoizedState,i!==null)return i.dehydrated!==null?(B1(D1,D1.current&1),r.flags|=128,null):(l&r.child.childLanes)!==0?Gn(t,r,l):(B1(D1,D1.current&1),t=i4(t,r,l),t!==null?t.sibling:null);B1(D1,D1.current&1);break;case 19:if(i=(l&r.childLanes)!==0,(t.flags&128)!==0){if(i)return Wn(t,r,l);r.flags|=128}if(o=r.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),B1(D1,D1.current),i)break;return null;case 22:case 23:return r.lanes=0,In(t,r,l)}return i4(t,r,l)}var jn,U9,qn,Kn;jn=function(t,r){for(var l=r.child;l!==null;){if(l.tag===5||l.tag===6)t.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===r)break;for(;l.sibling===null;){if(l.return===null||l.return===r)return;l=l.return}l.sibling.return=l.return,l=l.sibling}};U9=function(){};qn=function(t,r,l,i){var o=t.memoizedProps;if(o!==i){t=r.stateNode,d6($2.current);var n=null;switch(l){case"input":o=g9(t,o),i=g9(t,i),n=[];break;case"select":o=N1({},o,{value:void 0}),i=N1({},i,{value:void 0}),n=[];break;case"textarea":o=p9(t,o),i=p9(t,i),n=[];break;default:typeof o.onClick!="function"&&typeof i.onClick=="function"&&(t.onclick=w3)}M9(l,i);var h;l=null;for(s in o)if(!i.hasOwnProperty(s)&&o.hasOwnProperty(s)&&o[s]!=null)if(s==="style"){var v=o[s];for(h in v)v.hasOwnProperty(h)&&(l||(l={}),l[h]="")}else s!=="dangerouslySetInnerHTML"&&s!=="children"&&s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Lt.hasOwnProperty(s)?n||(n=[]):(n=n||[]).push(s,null));for(s in i){var u=i[s];if(v=o?.[s],i.hasOwnProperty(s)&&u!==v&&(u!=null||v!=null))if(s==="style")if(v){for(h in v)!v.hasOwnProperty(h)||u&&u.hasOwnProperty(h)||(l||(l={}),l[h]="");for(h in u)u.hasOwnProperty(h)&&v[h]!==u[h]&&(l||(l={}),l[h]=u[h])}else l||(n||(n=[]),n.push(s,l)),l=u;else s==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,v=v?v.__html:void 0,u!=null&&v!==u&&(n=n||[]).push(s,u)):s==="children"?typeof u!="string"&&typeof u!="number"||(n=n||[]).push(s,""+u):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&(Lt.hasOwnProperty(s)?(u!=null&&s==="onScroll"&&y1("scroll",t),n||v===u||(n=[])):(n=n||[]).push(s,u))}l&&(n=n||[]).push("style",l);var s=n;(r.updateQueue=s)&&(r.flags|=4)}};Kn=function(t,r,l,i){l!==i&&(r.flags|=4)};function ct(t,r){if(!$1)switch(t.tailMode){case"hidden":r=t.tail;for(var l=null;r!==null;)r.alternate!==null&&(l=r),r=r.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var i=null;l!==null;)l.alternate!==null&&(i=l),l=l.sibling;i===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:i.sibling=null}}function H0(t){var r=t.alternate!==null&&t.alternate.child===t.child,l=0,i=0;if(r)for(var o=t.child;o!==null;)l|=o.lanes|o.childLanes,i|=o.subtreeFlags&14680064,i|=o.flags&14680064,o.return=t,o=o.sibling;else for(o=t.child;o!==null;)l|=o.lanes|o.childLanes,i|=o.subtreeFlags,i|=o.flags,o.return=t,o=o.sibling;return t.subtreeFlags|=i,t.childLanes=l,r}function Ts(t,r,l){var i=r.pendingProps;switch(Hr(r),r.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return H0(r),null;case 1:return S0(r.type)&&B3(),H0(r),null;case 3:return i=r.stateNode,c8(),b1(P0),b1(f0),zr(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(e3(r)?r.flags|=4:t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,s2!==null&&(Q9(s2),s2=null))),U9(t,r),H0(r),null;case 5:Lr(r);var o=d6(Ft.current);if(l=r.type,t!==null&&r.stateNode!=null)qn(t,r,l,i,o),t.ref!==r.ref&&(r.flags|=512,r.flags|=2097152);else{if(!i){if(r.stateNode===null)throw Error(N(166));return H0(r),null}if(t=d6($2.current),e3(r)){i=r.stateNode,l=r.type;var n=r.memoizedProps;switch(i[b2]=r,i[$t]=n,t=(r.mode&1)!==0,l){case"dialog":y1("cancel",i),y1("close",i);break;case"iframe":case"object":case"embed":y1("load",i);break;case"video":case"audio":for(o=0;o<st.length;o++)y1(st[o],i);break;case"source":y1("error",i);break;case"img":case"image":case"link":y1("error",i),y1("load",i);break;case"details":y1("toggle",i);break;case"input":di(i,n),y1("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!n.multiple},y1("invalid",i);break;case"textarea":gi(i,n),y1("invalid",i)}M9(l,n),o=null;for(var h in n)if(n.hasOwnProperty(h)){var v=n[h];h==="children"?typeof v=="string"?i.textContent!==v&&(n.suppressHydrationWarning!==!0&&l3(i.textContent,v,t),o=["children",v]):typeof v=="number"&&i.textContent!==""+v&&(n.suppressHydrationWarning!==!0&&l3(i.textContent,v,t),o=["children",""+v]):Lt.hasOwnProperty(h)&&v!=null&&h==="onScroll"&&y1("scroll",i)}switch(l){case"input":G5(i),vi(i,n,!0);break;case"textarea":G5(i),ui(i);break;case"select":case"option":break;default:typeof n.onClick=="function"&&(i.onclick=w3)}i=o,r.updateQueue=i,i!==null&&(r.flags|=4)}else{h=o.nodeType===9?o:o.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=Zo(l)),t==="http://www.w3.org/1999/xhtml"?l==="script"?(t=h.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof i.is=="string"?t=h.createElement(l,{is:i.is}):(t=h.createElement(l),l==="select"&&(h=t,i.multiple?h.multiple=!0:i.size&&(h.size=i.size))):t=h.createElementNS(t,l),t[b2]=r,t[$t]=i,jn(t,r,!1,!1),r.stateNode=t;t:{switch(h=f9(l,i),l){case"dialog":y1("cancel",t),y1("close",t),o=i;break;case"iframe":case"object":case"embed":y1("load",t),o=i;break;case"video":case"audio":for(o=0;o<st.length;o++)y1(st[o],t);o=i;break;case"source":y1("error",t),o=i;break;case"img":case"image":case"link":y1("error",t),y1("load",t),o=i;break;case"details":y1("toggle",t),o=i;break;case"input":di(t,i),o=g9(t,i),y1("invalid",t);break;case"option":o=i;break;case"select":t._wrapperState={wasMultiple:!!i.multiple},o=N1({},i,{value:void 0}),y1("invalid",t);break;case"textarea":gi(t,i),o=p9(t,i),y1("invalid",t);break;default:o=i}M9(l,o),v=o;for(n in v)if(v.hasOwnProperty(n)){var u=v[n];n==="style"?zo(t,u):n==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&xo(t,u)):n==="children"?typeof u=="string"?(l!=="textarea"||u!=="")&&zt(t,u):typeof u=="number"&&zt(t,""+u):n!=="suppressContentEditableWarning"&&n!=="suppressHydrationWarning"&&n!=="autoFocus"&&(Lt.hasOwnProperty(n)?u!=null&&n==="onScroll"&&y1("scroll",t):u!=null&&ar(t,n,u,h))}switch(l){case"input":G5(t),vi(t,i,!1);break;case"textarea":G5(t),ui(t);break;case"option":i.value!=null&&t.setAttribute("value",""+$4(i.value));break;case"select":t.multiple=!!i.multiple,n=i.value,n!=null?Q6(t,!!i.multiple,n,!1):i.defaultValue!=null&&Q6(t,!!i.multiple,i.defaultValue,!0);break;default:typeof o.onClick=="function"&&(t.onclick=w3)}switch(l){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break t;case"img":i=!0;break t;default:i=!1}}i&&(r.flags|=4)}r.ref!==null&&(r.flags|=512,r.flags|=2097152)}return H0(r),null;case 6:if(t&&r.stateNode!=null)Kn(t,r,t.memoizedProps,i);else{if(typeof i!="string"&&r.stateNode===null)throw Error(N(166));if(l=d6(Ft.current),d6($2.current),e3(r)){if(i=r.stateNode,l=r.memoizedProps,i[b2]=r,(n=i.nodeValue!==l)&&(t=E0,t!==null))switch(t.tag){case 3:l3(i.nodeValue,l,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&l3(i.nodeValue,l,(t.mode&1)!==0)}n&&(r.flags|=4)}else i=(l.nodeType===9?l:l.ownerDocument).createTextNode(i),i[b2]=r,r.stateNode=i}return H0(r),null;case 13:if(b1(D1),i=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if($1&&D0!==null&&(r.mode&1)!==0&&(r.flags&128)===0)un(),o8(),r.flags|=98560,n=!1;else if(n=e3(r),i!==null&&i.dehydrated!==null){if(t===null){if(!n)throw Error(N(318));if(n=r.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(N(317));n[b2]=r}else o8(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;H0(r),n=!1}else s2!==null&&(Q9(s2),s2=null),n=!0;if(!n)return r.flags&65536?r:null}return(r.flags&128)!==0?(r.lanes=l,r):(i=i!==null,i!==(t!==null&&t.memoizedState!==null)&&i&&(r.child.flags|=8192,(r.mode&1)!==0&&(t===null||(D1.current&1)!==0?J1===0&&(J1=3):Dr())),r.updateQueue!==null&&(r.flags|=4),H0(r),null);case 4:return c8(),U9(t,r),t===null&&bt(r.stateNode.containerInfo),H0(r),null;case 10:return Vr(r.type._context),H0(r),null;case 17:return S0(r.type)&&B3(),H0(r),null;case 19:if(b1(D1),n=r.memoizedState,n===null)return H0(r),null;if(i=(r.flags&128)!==0,h=n.rendering,h===null)if(i)ct(n,!1);else{if(J1!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(h=O3(t),h!==null){for(r.flags|=128,ct(n,!1),i=h.updateQueue,i!==null&&(r.updateQueue=i,r.flags|=4),r.subtreeFlags=0,i=l,l=r.child;l!==null;)n=l,t=i,n.flags&=14680066,h=n.alternate,h===null?(n.childLanes=0,n.lanes=t,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=h.childLanes,n.lanes=h.lanes,n.child=h.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=h.memoizedProps,n.memoizedState=h.memoizedState,n.updateQueue=h.updateQueue,n.type=h.type,t=h.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),l=l.sibling;return B1(D1,D1.current&1|2),r.child}t=t.sibling}n.tail!==null&&k1()>d8&&(r.flags|=128,i=!0,ct(n,!1),r.lanes=4194304)}else{if(!i)if(t=O3(h),t!==null){if(r.flags|=128,i=!0,l=t.updateQueue,l!==null&&(r.updateQueue=l,r.flags|=4),ct(n,!0),n.tail===null&&n.tailMode==="hidden"&&!h.alternate&&!$1)return H0(r),null}else 2*k1()-n.renderingStartTime>d8&&l!==1073741824&&(r.flags|=128,i=!0,ct(n,!1),r.lanes=4194304);n.isBackwards?(h.sibling=r.child,r.child=h):(l=n.last,l!==null?l.sibling=h:r.child=h,n.last=h)}return n.tail!==null?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.renderingStartTime=k1(),r.sibling=null,l=D1.current,B1(D1,i?l&1|2:l&1),r):(H0(r),null);case 22:case 23:return Fr(),i=r.memoizedState!==null,t!==null&&t.memoizedState!==null!==i&&(r.flags|=8192),i&&(r.mode&1)!==0?(F0&1073741824)!==0&&(H0(r),r.subtreeFlags&6&&(r.flags|=8192)):H0(r),null;case 24:return null;case 25:return null}throw Error(N(156,r.tag))}function $s(t,r){switch(Hr(r),r.tag){case 1:return S0(r.type)&&B3(),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return c8(),b1(P0),b1(f0),zr(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 5:return Lr(r),null;case 13:if(b1(D1),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(N(340));o8()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return b1(D1),null;case 4:return c8(),null;case 10:return Vr(r.type._context),null;case 22:case 23:return Fr(),null;case 24:return null;default:return null}}var n3=!1,M0=!1,Os=typeof WeakSet=="function"?WeakSet:Set,j=null;function Y6(t,r){var l=t.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(i){R1(t,r,i)}else l.current=null}function G9(t,r,l){try{l()}catch(i){R1(t,r,i)}}var lo=!1;function Fs(t,r){if(B9=L3,t=Jo(),sr(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var i=l.getSelection&&l.getSelection();if(i&&i.rangeCount!==0){l=i.anchorNode;var o=i.anchorOffset,n=i.focusNode;i=i.focusOffset;try{l.nodeType,n.nodeType}catch{l=null;break t}var h=0,v=-1,u=-1,s=0,p=0,A=t,M=null;a:for(;;){for(var H;A!==l||o!==0&&A.nodeType!==3||(v=h+o),A!==n||i!==0&&A.nodeType!==3||(u=h+i),A.nodeType===3&&(h+=A.nodeValue.length),(H=A.firstChild)!==null;)M=A,A=H;for(;;){if(A===t)break a;if(M===l&&++s===o&&(v=h),M===n&&++p===i&&(u=h),(H=A.nextSibling)!==null)break;A=M,M=A.parentNode}A=H}l=v===-1||u===-1?null:{start:v,end:u}}else l=null}l=l||{start:0,end:0}}else l=null;for(P9={focusedElem:t,selectionRange:l},L3=!1,j=r;j!==null;)if(r=j,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,j=t;else for(;j!==null;){r=j;try{var Z=r.alternate;if((r.flags&1024)!==0)switch(r.tag){case 0:case 11:case 15:break;case 1:if(Z!==null){var L=Z.memoizedProps,w=Z.memoizedState,m=r.stateNode,V=m.getSnapshotBeforeUpdate(r.elementType===r.type?L:g2(r.type,L),w);m.__reactInternalSnapshotBeforeUpdate=V}break;case 3:var x=r.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(z){R1(r,r.return,z)}if(t=r.sibling,t!==null){t.return=r.return,j=t;break}j=r.return}return Z=lo,lo=!1,Z}function mt(t,r,l){var i=r.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var o=i=i.next;do{if((o.tag&t)===t){var n=o.destroy;o.destroy=void 0,n!==void 0&&G9(r,l,n)}o=o.next}while(o!==i)}}function X3(t,r){if(r=r.updateQueue,r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&t)===t){var i=l.create;l.destroy=i()}l=l.next}while(l!==r)}}function W9(t){var r=t.ref;if(r!==null){var l=t.stateNode;t.tag,t=l,typeof r=="function"?r(t):r.current=t}}function Yn(t){var r=t.alternate;r!==null&&(t.alternate=null,Yn(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&(delete r[b2],delete r[$t],delete r[b9],delete r[fs],delete r[As])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Xn(t){return t.tag===5||t.tag===3||t.tag===4}function eo(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Xn(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function j9(t,r,l){var i=t.tag;if(i===5||i===6)t=t.stateNode,r?l.nodeType===8?l.parentNode.insertBefore(t,r):l.insertBefore(t,r):(l.nodeType===8?(r=l.parentNode,r.insertBefore(t,l)):(r=l,r.appendChild(t)),l=l._reactRootContainer,l!=null||r.onclick!==null||(r.onclick=w3));else if(i!==4&&(t=t.child,t!==null))for(j9(t,r,l),t=t.sibling;t!==null;)j9(t,r,l),t=t.sibling}function q9(t,r,l){var i=t.tag;if(i===5||i===6)t=t.stateNode,r?l.insertBefore(t,r):l.appendChild(t);else if(i!==4&&(t=t.child,t!==null))for(q9(t,r,l),t=t.sibling;t!==null;)q9(t,r,l),t=t.sibling}var n0=null,u2=!1;function A4(t,r,l){for(l=l.child;l!==null;)Qn(t,r,l),l=l.sibling}function Qn(t,r,l){if(T2&&typeof T2.onCommitFiberUnmount=="function")try{T2.onCommitFiberUnmount(k3,l)}catch{}switch(l.tag){case 5:M0||Y6(l,r);case 6:var i=n0,o=u2;n0=null,A4(t,r,l),n0=i,u2=o,n0!==null&&(u2?(t=n0,l=l.stateNode,t.nodeType===8?t.parentNode.removeChild(l):t.removeChild(l)):n0.removeChild(l.stateNode));break;case 18:n0!==null&&(u2?(t=n0,l=l.stateNode,t.nodeType===8?X7(t.parentNode,l):t.nodeType===1&&X7(t,l),Pt(t)):X7(n0,l.stateNode));break;case 4:i=n0,o=u2,n0=l.stateNode.containerInfo,u2=!0,A4(t,r,l),n0=i,u2=o;break;case 0:case 11:case 14:case 15:if(!M0&&(i=l.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){o=i=i.next;do{var n=o,h=n.destroy;n=n.tag,h!==void 0&&((n&2)!==0||(n&4)!==0)&&G9(l,r,h),o=o.next}while(o!==i)}A4(t,r,l);break;case 1:if(!M0&&(Y6(l,r),i=l.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=l.memoizedProps,i.state=l.memoizedState,i.componentWillUnmount()}catch(v){R1(l,r,v)}A4(t,r,l);break;case 21:A4(t,r,l);break;case 22:l.mode&1?(M0=(i=M0)||l.memoizedState!==null,A4(t,r,l),M0=i):A4(t,r,l);break;default:A4(t,r,l)}}function io(t){var r=t.updateQueue;if(r!==null){t.updateQueue=null;var l=t.stateNode;l===null&&(l=t.stateNode=new Os),r.forEach(function(i){var o=Gs.bind(null,t,i);l.has(i)||(l.add(i),i.then(o,o))})}}function v2(t,r){var l=r.deletions;if(l!==null)for(var i=0;i<l.length;i++){var o=l[i];try{var n=t,h=r,v=h;t:for(;v!==null;){switch(v.tag){case 5:n0=v.stateNode,u2=!1;break t;case 3:n0=v.stateNode.containerInfo,u2=!0;break t;case 4:n0=v.stateNode.containerInfo,u2=!0;break t}v=v.return}if(n0===null)throw Error(N(160));Qn(n,h,o),n0=null,u2=!1;var u=o.alternate;u!==null&&(u.return=null),o.return=null}catch(s){R1(o,r,s)}}if(r.subtreeFlags&12854)for(r=r.child;r!==null;)Jn(r,t),r=r.sibling}function Jn(t,r){var l=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(v2(r,t),S2(t),i&4){try{mt(3,t,t.return),X3(3,t)}catch(L){R1(t,t.return,L)}try{mt(5,t,t.return)}catch(L){R1(t,t.return,L)}}break;case 1:v2(r,t),S2(t),i&512&&l!==null&&Y6(l,l.return);break;case 5:if(v2(r,t),S2(t),i&512&&l!==null&&Y6(l,l.return),t.flags&32){var o=t.stateNode;try{zt(o,"")}catch(L){R1(t,t.return,L)}}if(i&4&&(o=t.stateNode,o!=null)){var n=t.memoizedProps,h=l!==null?l.memoizedProps:n,v=t.type,u=t.updateQueue;if(t.updateQueue=null,u!==null)try{v==="input"&&n.type==="radio"&&n.name!=null&&Vo(o,n),f9(v,h);var s=f9(v,n);for(h=0;h<u.length;h+=2){var p=u[h],A=u[h+1];p==="style"?zo(o,A):p==="dangerouslySetInnerHTML"?xo(o,A):p==="children"?zt(o,A):ar(o,p,A,s)}switch(v){case"input":u9(o,n);break;case"textarea":mo(o,n);break;case"select":var M=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!n.multiple;var H=n.value;H!=null?Q6(o,!!n.multiple,H,!1):M!==!!n.multiple&&(n.defaultValue!=null?Q6(o,!!n.multiple,n.defaultValue,!0):Q6(o,!!n.multiple,n.multiple?[]:"",!1))}o[$t]=n}catch(L){R1(t,t.return,L)}}break;case 6:if(v2(r,t),S2(t),i&4){if(t.stateNode===null)throw Error(N(162));o=t.stateNode,n=t.memoizedProps;try{o.nodeValue=n}catch(L){R1(t,t.return,L)}}break;case 3:if(v2(r,t),S2(t),i&4&&l!==null&&l.memoizedState.isDehydrated)try{Pt(r.containerInfo)}catch(L){R1(t,t.return,L)}break;case 4:v2(r,t),S2(t);break;case 13:v2(r,t),S2(t),o=t.child,o.flags&8192&&(n=o.memoizedState!==null,o.stateNode.isHidden=n,!n||o.alternate!==null&&o.alternate.memoizedState!==null||($r=k1())),i&4&&io(t);break;case 22:if(p=l!==null&&l.memoizedState!==null,t.mode&1?(M0=(s=M0)||p,v2(r,t),M0=s):v2(r,t),S2(t),i&8192){if(s=t.memoizedState!==null,(t.stateNode.isHidden=s)&&!p&&(t.mode&1)!==0)for(j=t,p=t.child;p!==null;){for(A=j=p;j!==null;){switch(M=j,H=M.child,M.tag){case 0:case 11:case 14:case 15:mt(4,M,M.return);break;case 1:Y6(M,M.return);var Z=M.stateNode;if(typeof Z.componentWillUnmount=="function"){i=M,l=M.return;try{r=i,Z.props=r.memoizedProps,Z.state=r.memoizedState,Z.componentWillUnmount()}catch(L){R1(i,l,L)}}break;case 5:Y6(M,M.return);break;case 22:if(M.memoizedState!==null){no(A);continue}}H!==null?(H.return=M,j=H):no(A)}p=p.sibling}t:for(p=null,A=t;;){if(A.tag===5){if(p===null){p=A;try{o=A.stateNode,s?(n=o.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none"):(v=A.stateNode,u=A.memoizedProps.style,h=u!=null&&u.hasOwnProperty("display")?u.display:null,v.style.display=Lo("display",h))}catch(L){R1(t,t.return,L)}}}else if(A.tag===6){if(p===null)try{A.stateNode.nodeValue=s?"":A.memoizedProps}catch(L){R1(t,t.return,L)}}else if((A.tag!==22&&A.tag!==23||A.memoizedState===null||A===t)&&A.child!==null){A.child.return=A,A=A.child;continue}if(A===t)break t;for(;A.sibling===null;){if(A.return===null||A.return===t)break t;p===A&&(p=null),A=A.return}p===A&&(p=null),A.sibling.return=A.return,A=A.sibling}}break;case 19:v2(r,t),S2(t),i&4&&io(t);break;case 21:break;default:v2(r,t),S2(t)}}function S2(t){var r=t.flags;if(r&2){try{t:{for(var l=t.return;l!==null;){if(Xn(l)){var i=l;break t}l=l.return}throw Error(N(160))}switch(i.tag){case 5:var o=i.stateNode;i.flags&32&&(zt(o,""),i.flags&=-33);var n=eo(t);q9(t,n,o);break;case 3:case 4:var h=i.stateNode.containerInfo,v=eo(t);j9(t,v,h);break;default:throw Error(N(161))}}catch(u){R1(t,t.return,u)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function Ds(t,r,l){j=t,tc(t,r,l)}function tc(t,r,l){for(var i=(t.mode&1)!==0;j!==null;){var o=j,n=o.child;if(o.tag===22&&i){var h=o.memoizedState!==null||n3;if(!h){var v=o.alternate,u=v!==null&&v.memoizedState!==null||M0;v=n3;var s=M0;if(n3=h,(M0=u)&&!s)for(j=o;j!==null;)h=j,u=h.child,h.tag===22&&h.memoizedState!==null?co(o):u!==null?(u.return=h,j=u):co(o);for(;n!==null;)j=n,tc(n,r,l),n=n.sibling;j=o,n3=v,M0=s}oo(t,r,l)}else(o.subtreeFlags&8772)!==0&&n!==null?(n.return=o,j=n):oo(t,r,l)}}function oo(t){for(;j!==null;){var r=j;if((r.flags&8772)!==0){var l=r.alternate;try{if((r.flags&8772)!==0)switch(r.tag){case 0:case 11:case 15:M0||X3(5,r);break;case 1:var i=r.stateNode;if(r.flags&4&&!M0)if(l===null)i.componentDidMount();else{var o=r.elementType===r.type?l.memoizedProps:g2(r.type,l.memoizedProps);i.componentDidUpdate(o,l.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var n=r.updateQueue;n!==null&&Ui(r,n,i);break;case 3:var h=r.updateQueue;if(h!==null){if(l=null,r.child!==null)switch(r.child.tag){case 5:l=r.child.stateNode;break;case 1:l=r.child.stateNode}Ui(r,h,l)}break;case 5:var v=r.stateNode;if(l===null&&r.flags&4){l=v;var u=r.memoizedProps;switch(r.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&l.focus();break;case"img":u.src&&(l.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(r.memoizedState===null){var s=r.alternate;if(s!==null){var p=s.memoizedState;if(p!==null){var A=p.dehydrated;A!==null&&Pt(A)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(N(163))}M0||r.flags&512&&W9(r)}catch(M){R1(r,r.return,M)}}if(r===t){j=null;break}if(l=r.sibling,l!==null){l.return=r.return,j=l;break}j=r.return}}function no(t){for(;j!==null;){var r=j;if(r===t){j=null;break}var l=r.sibling;if(l!==null){l.return=r.return,j=l;break}j=r.return}}function co(t){for(;j!==null;){var r=j;try{switch(r.tag){case 0:case 11:case 15:var l=r.return;try{X3(4,r)}catch(u){R1(r,l,u)}break;case 1:var i=r.stateNode;if(typeof i.componentDidMount=="function"){var o=r.return;try{i.componentDidMount()}catch(u){R1(r,o,u)}}var n=r.return;try{W9(r)}catch(u){R1(r,n,u)}break;case 5:var h=r.return;try{W9(r)}catch(u){R1(r,h,u)}}}catch(u){R1(r,r.return,u)}if(r===t){j=null;break}var v=r.sibling;if(v!==null){v.return=r.return,j=v;break}j=r.return}}var Es=Math.ceil,E3=o4.ReactCurrentDispatcher,br=o4.ReactCurrentOwner,X0=o4.ReactCurrentBatchConfig,m1=0,r0=null,W1=null,c0=0,F0=0,X6=D4(0),J1=0,_t=null,H6=0,Q3=0,Tr=0,Zt=null,w0=null,$r=0,d8=1/0,X2=null,N3=!1,K9=null,y4=null,c3=!1,z4=null,_3=0,xt=0,Y9=null,H3=-1,M3=0;function x0(){return(m1&6)!==0?k1():H3!==-1?H3:H3=k1()}function b4(t){return(t.mode&1)===0?1:(m1&2)!==0&&c0!==0?c0&-c0:ms.transition!==null?(M3===0&&(M3=Do()),M3):(t=x1,t!==0||(t=window.event,t=t===void 0?16:Uo(t.type)),t)}function H2(t,r,l,i){if(50<xt)throw xt=0,Y9=null,Error(N(185));Rt(t,l,i),((m1&2)===0||t!==r0)&&(t===r0&&((m1&2)===0&&(Q3|=l),J1===4&&x4(t,c0)),y0(t,i),l===1&&m1===0&&(r.mode&1)===0&&(d8=k1()+500,q3&&E4()))}function y0(t,r){var l=t.callbackNode;xu(t,r);var i=x3(t,t===r0?c0:0);if(i===0)l!==null&&Hi(l),t.callbackNode=null,t.callbackPriority=0;else if(r=i&-i,t.callbackPriority!==r){if(l!=null&&Hi(l),r===1)t.tag===0?Vs(ho.bind(null,t)):dn(ho.bind(null,t)),Hs(function(){(m1&6)===0&&E4()}),l=null;else{switch(Eo(i)){case 1:l=or;break;case 4:l=Oo;break;case 16:l=Z3;break;case 536870912:l=Fo;break;default:l=Z3}l=cc(l,ac.bind(null,t))}t.callbackPriority=r,t.callbackNode=l}}function ac(t,r){if(H3=-1,M3=0,(m1&6)!==0)throw Error(N(327));var l=t.callbackNode;if(l8()&&t.callbackNode!==l)return null;var i=x3(t,t===r0?c0:0);if(i===0)return null;if((i&30)!==0||(i&t.expiredLanes)!==0||r)r=R3(t,i);else{r=i;var o=m1;m1|=2;var n=lc();(r0!==t||c0!==r)&&(X2=null,d8=k1()+500,v6(t,r));do try{Rs();break}catch(v){rc(t,v)}while(!0);Ar(),E3.current=n,m1=o,W1!==null?r=0:(r0=null,c0=0,r=J1)}if(r!==0){if(r===2&&(o=x9(t),o!==0&&(i=o,r=X9(t,o))),r===1)throw l=_t,v6(t,0),x4(t,i),y0(t,k1()),l;if(r===6)x4(t,i);else{if(o=t.current.alternate,(i&30)===0&&!Ns(o)&&(r=R3(t,i),r===2&&(n=x9(t),n!==0&&(i=n,r=X9(t,n))),r===1))throw l=_t,v6(t,0),x4(t,i),y0(t,k1()),l;switch(t.finishedWork=o,t.finishedLanes=i,r){case 0:case 1:throw Error(N(345));case 2:n6(t,w0,X2);break;case 3:if(x4(t,i),(i&130023424)===i&&(r=$r+500-k1(),10<r)){if(x3(t,0)!==0)break;if(o=t.suspendedLanes,(o&i)!==i){x0(),t.pingedLanes|=t.suspendedLanes&o;break}t.timeoutHandle=y9(n6.bind(null,t,w0,X2),r);break}n6(t,w0,X2);break;case 4:if(x4(t,i),(i&4194240)===i)break;for(r=t.eventTimes,o=-1;0<i;){var h=31-p2(i);n=1<<h,h=r[h],h>o&&(o=h),i&=~n}if(i=o,i=k1()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Es(i/1960))-i,10<i){t.timeoutHandle=y9(n6.bind(null,t,w0,X2),i);break}n6(t,w0,X2);break;case 5:n6(t,w0,X2);break;default:throw Error(N(329))}}}return y0(t,k1()),t.callbackNode===l?ac.bind(null,t):null}function X9(t,r){var l=Zt;return t.current.memoizedState.isDehydrated&&(v6(t,r).flags|=256),t=R3(t,r),t!==2&&(r=w0,w0=l,r!==null&&Q9(r)),t}function Q9(t){w0===null?w0=t:w0.push.apply(w0,t)}function Ns(t){for(var r=t;;){if(r.flags&16384){var l=r.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var i=0;i<l.length;i++){var o=l[i],n=o.getSnapshot;o=o.value;try{if(!M2(n(),o))return!1}catch{return!1}}}if(l=r.child,r.subtreeFlags&16384&&l!==null)l.return=r,r=l;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function x4(t,r){for(r&=~Tr,r&=~Q3,t.suspendedLanes|=r,t.pingedLanes&=~r,t=t.expirationTimes;0<r;){var l=31-p2(r),i=1<<l;t[l]=-1,r&=~i}}function ho(t){if((m1&6)!==0)throw Error(N(327));l8();var r=x3(t,0);if((r&1)===0)return y0(t,k1()),null;var l=R3(t,r);if(t.tag!==0&&l===2){var i=x9(t);i!==0&&(r=i,l=X9(t,i))}if(l===1)throw l=_t,v6(t,0),x4(t,r),y0(t,k1()),l;if(l===6)throw Error(N(345));return t.finishedWork=t.current.alternate,t.finishedLanes=r,n6(t,w0,X2),y0(t,k1()),null}function Or(t,r){var l=m1;m1|=1;try{return t(r)}finally{m1=l,m1===0&&(d8=k1()+500,q3&&E4())}}function M6(t){z4!==null&&z4.tag===0&&(m1&6)===0&&l8();var r=m1;m1|=1;var l=X0.transition,i=x1;try{if(X0.transition=null,x1=1,t)return t()}finally{x1=i,X0.transition=l,m1=r,(m1&6)===0&&E4()}}function Fr(){F0=X6.current,b1(X6)}function v6(t,r){t.finishedWork=null,t.finishedLanes=0;var l=t.timeoutHandle;if(l!==-1&&(t.timeoutHandle=-1,ps(l)),W1!==null)for(l=W1.return;l!==null;){var i=l;switch(Hr(i),i.tag){case 1:i=i.type.childContextTypes,i!=null&&B3();break;case 3:c8(),b1(P0),b1(f0),zr();break;case 5:Lr(i);break;case 4:c8();break;case 13:b1(D1);break;case 19:b1(D1);break;case 10:Vr(i.type._context);break;case 22:case 23:Fr()}l=l.return}if(r0=t,W1=t=T4(t.current,null),c0=F0=r,J1=0,_t=null,Tr=Q3=H6=0,w0=Zt=null,h6!==null){for(r=0;r<h6.length;r++)if(l=h6[r],i=l.interleaved,i!==null){l.interleaved=null;var o=i.next,n=l.pending;if(n!==null){var h=n.next;n.next=o,i.next=h}l.pending=i}h6=null}return t}function rc(t,r){do{var l=W1;try{if(Ar(),u3.current=D3,F3){for(var i=E1.memoizedState;i!==null;){var o=i.queue;o!==null&&(o.pending=null),i=i.next}F3=!1}if(p6=0,a0=Q1=E1=null,Vt=!1,Dt=0,br.current=null,l===null||l.return===null){J1=1,_t=r,W1=null;break}t:{var n=t,h=l.return,v=l,u=r;if(r=c0,v.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var s=u,p=v,A=p.tag;if((p.mode&1)===0&&(A===0||A===11||A===15)){var M=p.alternate;M?(p.updateQueue=M.updateQueue,p.memoizedState=M.memoizedState,p.lanes=M.lanes):(p.updateQueue=null,p.memoizedState=null)}var H=Yi(h);if(H!==null){H.flags&=-257,Xi(H,h,v,n,r),H.mode&1&&Ki(n,s,r),r=H,u=s;var Z=r.updateQueue;if(Z===null){var L=new Set;L.add(u),r.updateQueue=L}else Z.add(u);break t}else{if((r&1)===0){Ki(n,s,r),Dr();break t}u=Error(N(426))}}else if($1&&v.mode&1){var w=Yi(h);if(w!==null){(w.flags&65536)===0&&(w.flags|=256),Xi(w,h,v,n,r),Mr(h8(u,v));break t}}n=u=h8(u,v),J1!==4&&(J1=2),Zt===null?Zt=[n]:Zt.push(n),n=h;do{switch(n.tag){case 3:n.flags|=65536,r&=-r,n.lanes|=r;var m=Nn(n,u,r);ki(n,m);break t;case 1:v=u;var V=n.type,x=n.stateNode;if((n.flags&128)===0&&(typeof V.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(y4===null||!y4.has(x)))){n.flags|=65536,r&=-r,n.lanes|=r;var z=_n(n,v,r);ki(n,z);break t}}n=n.return}while(n!==null)}ic(l)}catch(B){r=B,W1===l&&l!==null&&(W1=l=l.return);continue}break}while(!0)}function lc(){var t=E3.current;return E3.current=D3,t===null?D3:t}function Dr(){(J1===0||J1===3||J1===2)&&(J1=4),r0===null||(H6&268435455)===0&&(Q3&268435455)===0||x4(r0,c0)}function R3(t,r){var l=m1;m1|=2;var i=lc();(r0!==t||c0!==r)&&(X2=null,v6(t,r));do try{_s();break}catch(o){rc(t,o)}while(!0);if(Ar(),m1=l,E3.current=i,W1!==null)throw Error(N(261));return r0=null,c0=0,J1}function _s(){for(;W1!==null;)ec(W1)}function Rs(){for(;W1!==null&&!su();)ec(W1)}function ec(t){var r=nc(t.alternate,t,F0);t.memoizedProps=t.pendingProps,r===null?ic(t):W1=r,br.current=null}function ic(t){var r=t;do{var l=r.alternate;if(t=r.return,(r.flags&32768)===0){if(l=Ts(l,r,F0),l!==null){W1=l;return}}else{if(l=$s(l,r),l!==null){l.flags&=32767,W1=l;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{J1=6,W1=null;return}}if(r=r.sibling,r!==null){W1=r;return}W1=r=t}while(r!==null);J1===0&&(J1=5)}function n6(t,r,l){var i=x1,o=X0.transition;try{X0.transition=null,x1=1,Is(t,r,l,i)}finally{X0.transition=o,x1=i}return null}function Is(t,r,l,i){do l8();while(z4!==null);if((m1&6)!==0)throw Error(N(327));l=t.finishedWork;var o=t.finishedLanes;if(l===null)return null;if(t.finishedWork=null,t.finishedLanes=0,l===t.current)throw Error(N(177));t.callbackNode=null,t.callbackPriority=0;var n=l.lanes|l.childLanes;if(Lu(t,n),t===r0&&(W1=r0=null,c0=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||c3||(c3=!0,cc(Z3,function(){return l8(),null})),n=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||n){n=X0.transition,X0.transition=null;var h=x1;x1=1;var v=m1;m1|=4,br.current=null,Fs(t,l),Jn(l,t),ds(P9),L3=!!B9,P9=B9=null,t.current=l,Ds(l,t,o),pu(),m1=v,x1=h,X0.transition=n}else t.current=l;if(c3&&(c3=!1,z4=t,_3=o),n=t.pendingLanes,n===0&&(y4=null),fu(l.stateNode,i),y0(t,k1()),r!==null)for(i=t.onRecoverableError,l=0;l<r.length;l++)o=r[l],i(o.value,{componentStack:o.stack,digest:o.digest});if(N3)throw N3=!1,t=K9,K9=null,t;return(_3&1)!==0&&t.tag!==0&&l8(),n=t.pendingLanes,(n&1)!==0?t===Y9?xt++:(xt=0,Y9=t):xt=0,E4(),null}function l8(){if(z4!==null){var t=Eo(_3),r=X0.transition,l=x1;try{if(X0.transition=null,x1=16>t?16:t,z4===null)var i=!1;else{if(t=z4,z4=null,_3=0,(m1&6)!==0)throw Error(N(331));var o=m1;for(m1|=4,j=t.current;j!==null;){var n=j,h=n.child;if((j.flags&16)!==0){var v=n.deletions;if(v!==null){for(var u=0;u<v.length;u++){var s=v[u];for(j=s;j!==null;){var p=j;switch(p.tag){case 0:case 11:case 15:mt(8,p,n)}var A=p.child;if(A!==null)A.return=p,j=A;else for(;j!==null;){p=j;var M=p.sibling,H=p.return;if(Yn(p),p===s){j=null;break}if(M!==null){M.return=H,j=M;break}j=H}}}var Z=n.alternate;if(Z!==null){var L=Z.child;if(L!==null){Z.child=null;do{var w=L.sibling;L.sibling=null,L=w}while(L!==null)}}j=n}}if((n.subtreeFlags&2064)!==0&&h!==null)h.return=n,j=h;else t:for(;j!==null;){if(n=j,(n.flags&2048)!==0)switch(n.tag){case 0:case 11:case 15:mt(9,n,n.return)}var m=n.sibling;if(m!==null){m.return=n.return,j=m;break t}j=n.return}}var V=t.current;for(j=V;j!==null;){h=j;var x=h.child;if((h.subtreeFlags&2064)!==0&&x!==null)x.return=h,j=x;else t:for(h=V;j!==null;){if(v=j,(v.flags&2048)!==0)try{switch(v.tag){case 0:case 11:case 15:X3(9,v)}}catch(B){R1(v,v.return,B)}if(v===h){j=null;break t}var z=v.sibling;if(z!==null){z.return=v.return,j=z;break t}j=v.return}}if(m1=o,E4(),T2&&typeof T2.onPostCommitFiberRoot=="function")try{T2.onPostCommitFiberRoot(k3,t)}catch{}i=!0}return i}finally{x1=l,X0.transition=r}}return!1}function vo(t,r,l){r=h8(l,r),r=Nn(t,r,1),t=S4(t,r,1),r=x0(),t!==null&&(Rt(t,1,r),y0(t,r))}function R1(t,r,l){if(t.tag===3)vo(t,t,l);else for(;r!==null;){if(r.tag===3){vo(r,t,l);break}else if(r.tag===1){var i=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(y4===null||!y4.has(i))){t=h8(l,t),t=_n(r,t,1),r=S4(r,t,1),t=x0(),r!==null&&(Rt(r,1,t),y0(r,t));break}}r=r.return}}function ks(t,r,l){var i=t.pingCache;i!==null&&i.delete(r),r=x0(),t.pingedLanes|=t.suspendedLanes&l,r0===t&&(c0&l)===l&&(J1===4||J1===3&&(c0&130023424)===c0&&500>k1()-$r?v6(t,0):Tr|=l),y0(t,r)}function oc(t,r){r===0&&((t.mode&1)===0?r=1:(r=q5,q5<<=1,(q5&130023424)===0&&(q5=4194304)));var l=x0();t=e4(t,r),t!==null&&(Rt(t,r,l),y0(t,l))}function Us(t){var r=t.memoizedState,l=0;r!==null&&(l=r.retryLane),oc(t,l)}function Gs(t,r){var l=0;switch(t.tag){case 13:var i=t.stateNode,o=t.memoizedState;o!==null&&(l=o.retryLane);break;case 19:i=t.stateNode;break;default:throw Error(N(314))}i!==null&&i.delete(r),oc(t,l)}var nc;nc=function(t,r,l){if(t!==null)if(t.memoizedProps!==r.pendingProps||P0.current)B0=!0;else{if((t.lanes&l)===0&&(r.flags&128)===0)return B0=!1,bs(t,r,l);B0=(t.flags&131072)!==0}else B0=!1,$1&&(r.flags&1048576)!==0&&vn(r,y3,r.index);switch(r.lanes=0,r.tag){case 2:var i=r.type;p3(t,r),t=r.pendingProps;var o=i8(r,f0.current);r8(r,l),o=wr(null,r,i,t,o,l);var n=Br();return r.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(r.tag=1,r.memoizedState=null,r.updateQueue=null,S0(i)?(n=!0,P3(r)):n=!1,r.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Zr(r),o.updater=Y3,r.stateNode=o,o._reactInternals=r,E9(r,i,t,l),r=R9(null,r,i,!0,n,l)):(r.tag=0,$1&&n&&pr(r),Z0(null,r,o,l),r=r.child),r;case 16:i=r.elementType;t:{switch(p3(t,r),t=r.pendingProps,o=i._init,i=o(i._payload),r.type=i,o=r.tag=js(i),t=g2(i,t),o){case 0:r=_9(null,r,i,t,l);break t;case 1:r=to(null,r,i,t,l);break t;case 11:r=Qi(null,r,i,t,l);break t;case 14:r=Ji(null,r,i,g2(i.type,t),l);break t}throw Error(N(306,i,""))}return r;case 0:return i=r.type,o=r.pendingProps,o=r.elementType===i?o:g2(i,o),_9(t,r,i,o,l);case 1:return i=r.type,o=r.pendingProps,o=r.elementType===i?o:g2(i,o),to(t,r,i,o,l);case 3:t:{if(Un(r),t===null)throw Error(N(387));i=r.pendingProps,n=r.memoizedState,o=n.element,Mn(t,r),$3(r,i,null,l);var h=r.memoizedState;if(i=h.element,n.isDehydrated)if(n={element:i,isDehydrated:!1,cache:h.cache,pendingSuspenseBoundaries:h.pendingSuspenseBoundaries,transitions:h.transitions},r.updateQueue.baseState=n,r.memoizedState=n,r.flags&256){o=h8(Error(N(423)),r),r=ao(t,r,i,l,o);break t}else if(i!==o){o=h8(Error(N(424)),r),r=ao(t,r,i,l,o);break t}else for(D0=P4(r.stateNode.containerInfo.firstChild),E0=r,$1=!0,s2=null,l=pn(r,null,i,l),r.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(o8(),i===o){r=i4(t,r,l);break t}Z0(t,r,i,l)}r=r.child}return r;case 5:return fn(r),t===null&&O9(r),i=r.type,o=r.pendingProps,n=t!==null?t.memoizedProps:null,h=o.children,S9(i,o)?h=null:n!==null&&S9(i,n)&&(r.flags|=32),kn(t,r),Z0(t,r,h,l),r.child;case 6:return t===null&&O9(r),null;case 13:return Gn(t,r,l);case 4:return xr(r,r.stateNode.containerInfo),i=r.pendingProps,t===null?r.child=n8(r,null,i,l):Z0(t,r,i,l),r.child;case 11:return i=r.type,o=r.pendingProps,o=r.elementType===i?o:g2(i,o),Qi(t,r,i,o,l);case 7:return Z0(t,r,r.pendingProps,l),r.child;case 8:return Z0(t,r,r.pendingProps.children,l),r.child;case 12:return Z0(t,r,r.pendingProps.children,l),r.child;case 10:t:{if(i=r.type._context,o=r.pendingProps,n=r.memoizedProps,h=o.value,B1(b3,i._currentValue),i._currentValue=h,n!==null)if(M2(n.value,h)){if(n.children===o.children&&!P0.current){r=i4(t,r,l);break t}}else for(n=r.child,n!==null&&(n.return=r);n!==null;){var v=n.dependencies;if(v!==null){h=n.child;for(var u=v.firstContext;u!==null;){if(u.context===i){if(n.tag===1){u=a4(-1,l&-l),u.tag=2;var s=n.updateQueue;if(s!==null){s=s.shared;var p=s.pending;p===null?u.next=u:(u.next=p.next,p.next=u),s.pending=u}}n.lanes|=l,u=n.alternate,u!==null&&(u.lanes|=l),F9(n.return,l,r),v.lanes|=l;break}u=u.next}}else if(n.tag===10)h=n.type===r.type?null:n.child;else if(n.tag===18){if(h=n.return,h===null)throw Error(N(341));h.lanes|=l,v=h.alternate,v!==null&&(v.lanes|=l),F9(h,l,r),h=n.sibling}else h=n.child;if(h!==null)h.return=n;else for(h=n;h!==null;){if(h===r){h=null;break}if(n=h.sibling,n!==null){n.return=h.return,h=n;break}h=h.return}n=h}Z0(t,r,o.children,l),r=r.child}return r;case 9:return o=r.type,i=r.pendingProps.children,r8(r,l),o=Q0(o),i=i(o),r.flags|=1,Z0(t,r,i,l),r.child;case 14:return i=r.type,o=g2(i,r.pendingProps),o=g2(i.type,o),Ji(t,r,i,o,l);case 15:return Rn(t,r,r.type,r.pendingProps,l);case 17:return i=r.type,o=r.pendingProps,o=r.elementType===i?o:g2(i,o),p3(t,r),r.tag=1,S0(i)?(t=!0,P3(r)):t=!1,r8(r,l),En(r,i,o),E9(r,i,o,l),R9(null,r,i,!0,t,l);case 19:return Wn(t,r,l);case 22:return In(t,r,l)}throw Error(N(156,r.tag))};function cc(t,r){return $o(t,r)}function Ws(t,r,l,i){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Y0(t,r,l,i){return new Ws(t,r,l,i)}function Er(t){return t=t.prototype,!(!t||!t.isReactComponent)}function js(t){if(typeof t=="function")return Er(t)?1:0;if(t!=null){if(t=t.$$typeof,t===lr)return 11;if(t===er)return 14}return 2}function T4(t,r){var l=t.alternate;return l===null?(l=Y0(t.tag,r,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=r,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&14680064,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,r=t.dependencies,l.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l}function f3(t,r,l,i,o,n){var h=2;if(i=t,typeof t=="function")Er(t)&&(h=1);else if(typeof t=="string")h=5;else t:switch(t){case R6:return g6(l.children,o,n,r);case rr:h=8,o|=8;break;case c9:return t=Y0(12,l,r,o|2),t.elementType=c9,t.lanes=n,t;case h9:return t=Y0(13,l,r,o),t.elementType=h9,t.lanes=n,t;case d9:return t=Y0(19,l,r,o),t.elementType=d9,t.lanes=n,t;case Mo:return J3(l,o,n,r);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case po:h=10;break t;case Ho:h=9;break t;case lr:h=11;break t;case er:h=14;break t;case V4:h=16,i=null;break t}throw Error(N(130,t==null?t:typeof t,""))}return r=Y0(h,l,r,o),r.elementType=t,r.type=i,r.lanes=n,r}function g6(t,r,l,i){return t=Y0(7,t,i,r),t.lanes=l,t}function J3(t,r,l,i){return t=Y0(22,t,i,r),t.elementType=Mo,t.lanes=l,t.stateNode={isHidden:!1},t}function i9(t,r,l){return t=Y0(6,t,null,r),t.lanes=l,t}function o9(t,r,l){return r=Y0(4,t.children!==null?t.children:[],t.key,r),r.lanes=l,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}function qs(t,r,l,i,o){this.tag=r,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=k7(0),this.expirationTimes=k7(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=k7(0),this.identifierPrefix=i,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Nr(t,r,l,i,o,n,h,v,u){return t=new qs(t,r,l,v,u),r===1?(r=1,n===!0&&(r|=8)):r=0,n=Y0(3,null,null,r),t.current=n,n.stateNode=t,n.memoizedState={element:i,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zr(n),t}function Ks(t,r,l){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:_6,key:i==null?null:""+i,children:t,containerInfo:r,implementation:l}}function hc(t){if(!t)return O4;t=t._reactInternals;t:{if(A6(t)!==t||t.tag!==1)throw Error(N(170));var r=t;do{switch(r.tag){case 3:r=r.stateNode.context;break t;case 1:if(S0(r.type)){r=r.stateNode.__reactInternalMemoizedMergedChildContext;break t}}r=r.return}while(r!==null);throw Error(N(171))}if(t.tag===1){var l=t.type;if(S0(l))return hn(t,l,r)}return r}function dc(t,r,l,i,o,n,h,v,u){return t=Nr(l,i,!0,t,o,n,h,v,u),t.context=hc(null),l=t.current,i=x0(),o=b4(l),n=a4(i,o),n.callback=r??null,S4(l,n,o),t.current.lanes=o,Rt(t,o,i),y0(t,i),t}function ta(t,r,l,i){var o=r.current,n=x0(),h=b4(o);return l=hc(l),r.context===null?r.context=l:r.pendingContext=l,r=a4(n,h),r.payload={element:t},i=i===void 0?null:i,i!==null&&(r.callback=i),t=S4(o,r,h),t!==null&&(H2(t,o,h,n),g3(t,o,h)),h}function I3(t){return t=t.current,t.child?(t.child.tag===5,t.child.stateNode):null}function go(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<r?l:r}}function _r(t,r){go(t,r),(t=t.alternate)&&go(t,r)}function Ys(){return null}var vc=typeof reportError=="function"?reportError:function(t){console.error(t)};function Rr(t){this._internalRoot=t}aa.prototype.render=Rr.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(N(409));ta(t,r,null,null)};aa.prototype.unmount=Rr.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;M6(function(){ta(null,t,null,null)}),r[l4]=null}};function aa(t){this._internalRoot=t}aa.prototype.unstable_scheduleHydration=function(t){if(t){var r=Ro();t={blockedOn:null,target:t,priority:r};for(var l=0;l<Z4.length&&r!==0&&r<Z4[l].priority;l++);Z4.splice(l,0,t),l===0&&ko(t)}};function Ir(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function ra(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function uo(){}function Xs(t,r,l,i,o){if(o){if(typeof i=="function"){var n=i;i=function(){var s=I3(h);n.call(s)}}var h=dc(r,i,t,0,null,!1,!1,"",uo);return t._reactRootContainer=h,t[l4]=h.current,bt(t.nodeType===8?t.parentNode:t),M6(),h}for(;o=t.lastChild;)t.removeChild(o);if(typeof i=="function"){var v=i;i=function(){var s=I3(u);v.call(s)}}var u=Nr(t,0,!1,null,null,!1,!1,"",uo);return t._reactRootContainer=u,t[l4]=u.current,bt(t.nodeType===8?t.parentNode:t),M6(function(){ta(r,u,l,i)}),u}function la(t,r,l,i,o){var n=l._reactRootContainer;if(n){var h=n;if(typeof o=="function"){var v=o;o=function(){var u=I3(h);v.call(u)}}ta(r,h,t,o)}else h=Xs(l,r,t,o,i);return I3(h)}No=function(t){switch(t.tag){case 3:var r=t.stateNode;if(r.current.memoizedState.isDehydrated){var l=ut(r.pendingLanes);l!==0&&(nr(r,l|1),y0(r,k1()),(m1&6)===0&&(d8=k1()+500,E4()))}break;case 13:M6(function(){var i=e4(t,1);if(i!==null){var o=x0();H2(i,t,1,o)}}),_r(t,1)}};cr=function(t){if(t.tag===13){var r=e4(t,134217728);if(r!==null){var l=x0();H2(r,t,134217728,l)}_r(t,134217728)}};_o=function(t){if(t.tag===13){var r=b4(t),l=e4(t,r);if(l!==null){var i=x0();H2(l,t,r,i)}_r(t,r)}};Ro=function(){return x1};Io=function(t,r){var l=x1;try{return x1=t,r()}finally{x1=l}};V9=function(t,r,l){switch(r){case"input":if(u9(t,l),r=l.name,l.type==="radio"&&r!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),r=0;r<l.length;r++){var i=l[r];if(i!==t&&i.form===t.form){var o=j3(i);if(!o)throw Error(N(90));Ao(i),u9(i,o)}}}break;case"textarea":mo(t,l);break;case"select":r=l.value,r!=null&&Q6(t,!!l.multiple,r,!1)}};Bo=Or;Po=M6;var Qs={usingClientEntryPoint:!1,Events:[kt,G6,j3,Co,wo,Or]},ht={findFiberByHostInstance:c6,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Js={bundleType:ht.bundleType,version:ht.version,rendererPackageName:ht.rendererPackageName,rendererConfig:ht.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:o4.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=bo(t),t===null?null:t.stateNode},findFiberByHostInstance:ht.findFiberByHostInstance||Ys,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(dt=__REACT_DEVTOOLS_GLOBAL_HOOK__,!dt.isDisabled&&dt.supportsFiber))try{k3=dt.inject(Js),T2=dt}catch{}var dt;R0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Qs;R0.createPortal=function(t,r){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ir(r))throw Error(N(200));return Ks(t,r,null,l)};R0.createRoot=function(t,r){if(!Ir(t))throw Error(N(299));var l=!1,i="",o=vc;return r!=null&&(r.unstable_strictMode===!0&&(l=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),r=Nr(t,1,!1,null,null,l,!1,i,o),t[l4]=r.current,bt(t.nodeType===8?t.parentNode:t),new Rr(r)};R0.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(N(188)):(t=Object.keys(t).join(","),Error(N(268,t)));return t=bo(r),t=t===null?null:t.stateNode,t};R0.flushSync=function(t){return M6(t)};R0.hydrate=function(t,r,l){if(!ra(r))throw Error(N(200));return la(null,t,r,!0,l)};R0.hydrateRoot=function(t,r,l){if(!Ir(t))throw Error(N(405));var i=l!=null&&l.hydratedSources||null,o=!1,n="",h=vc;if(l!=null&&(l.unstable_strictMode===!0&&(o=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onRecoverableError!==void 0&&(h=l.onRecoverableError)),r=dc(r,null,t,1,l??null,o,!1,n,h),t[l4]=r.current,bt(t),i)for(t=0;t<i.length;t++)l=i[t],o=l._getVersion,o=o(l._source),r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[l,o]:r.mutableSourceEagerHydrationData.push(l,o);return new aa(r)};R0.render=function(t,r,l){if(!ra(r))throw Error(N(200));return la(null,t,r,!1,l)};R0.unmountComponentAtNode=function(t){if(!ra(t))throw Error(N(40));return t._reactRootContainer?(M6(function(){la(null,null,t,!1,function(){t._reactRootContainer=null,t[l4]=null})}),!0):!1};R0.unstable_batchedUpdates=Or;R0.unstable_renderSubtreeIntoContainer=function(t,r,l,i){if(!ra(l))throw Error(N(200));if(t==null||t._reactInternals===void 0)throw Error(N(38));return la(t,r,l,!1,i)};R0.version="18.3.1-next-f1338f8080-20240426"});var O2=W0((yA,sc)=>{"use strict";function uc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(uc)}catch(t){console.error(t)}}uc(),sc.exports=gc()});var ea=W0(kr=>{"use strict";var pc=O2();kr.createRoot=pc.createRoot,kr.hydrateRoot=pc.hydrateRoot;var bA});var Mc=W0(ia=>{"use strict";var tp=I(),ap=Symbol.for("react.element"),rp=Symbol.for("react.fragment"),lp=Object.prototype.hasOwnProperty,ep=tp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ip={key:!0,ref:!0,__self:!0,__source:!0};function Hc(t,r,l){var i,o={},n=null,h=null;l!==void 0&&(n=""+l),r.key!==void 0&&(n=""+r.key),r.ref!==void 0&&(h=r.ref);for(i in r)lp.call(r,i)&&!ip.hasOwnProperty(i)&&(o[i]=r[i]);if(t&&t.defaultProps)for(i in r=t.defaultProps,r)o[i]===void 0&&(o[i]=r[i]);return{$$typeof:ap,type:t,key:n,ref:h,props:o,_owner:ep.current}}ia.Fragment=rp;ia.jsx=Hc;ia.jsxs=Hc});var Gt=W0((OA,fc)=>{"use strict";fc.exports=Mc()});var Vh=W0(Ah=>{"use strict";var n5=I();function lH(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var eH=typeof Object.is=="function"?Object.is:lH,iH=n5.useSyncExternalStore,oH=n5.useRef,nH=n5.useEffect,cH=n5.useMemo,hH=n5.useDebugValue;Ah.useSyncExternalStoreWithSelector=function(t,r,l,i,o){var n=oH(null);if(n.current===null){var h={hasValue:!1,value:null};n.current=h}else h=n.current;n=cH(function(){function u(H){if(!s){if(s=!0,p=H,H=i(H),o!==void 0&&h.hasValue){var Z=h.value;if(o(Z,H))return A=Z}return A=H}if(Z=A,eH(p,H))return Z;var L=i(H);return o!==void 0&&o(Z,L)?(p=H,Z):(p=H,A=L)}var s=!1,p,A,M=l===void 0?null:l;return[function(){return u(r())},M===null?void 0:function(){return u(M())}]},[r,l,i,o]);var v=iH(t,n[0],n[1]);return nH(function(){h.hasValue=!0,h.value=v},[v]),hH(v),v}});var Zh=W0((_Z,mh)=>{"use strict";mh.exports=Vh()});var Ev=W0((exports,module)=>{(function(t){if(typeof exports=="object"&&typeof module<"u")module.exports=t();else if(typeof define=="function"&&define.amd)define([],t);else{var r;typeof window<"u"?r=window:typeof global<"u"?r=global:typeof self<"u"?r=self:r=this,r.libphonenumber=t()}})(function(){var define,module,exports;return(function(){function t(r,l,i){function o(v,u){if(!l[v]){if(!r[v]){var s=typeof Q8=="function"&&Q8;if(!u&&s)return s(v,!0);if(n)return n(v,!0);var p=new Error("Cannot find module '"+v+"'");throw p.code="MODULE_NOT_FOUND",p}var A=l[v]={exports:{}};r[v][0].call(A.exports,function(M){var H=r[v][1][M];return o(H||M)},A,A.exports,t,r,l,i)}return l[v].exports}for(var n=typeof Q8=="function"&&Q8,h=0;h<i.length;h++)o(i[h]);return o}return t})()({1:[function(require,module,exports){(function(global){(function(){var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.createTemplateTagFirstArg=function(t){return t.raw=t},$jscomp.createTemplateTagFirstArgWithRaw=function(t,r){return t.raw=r,t},$jscomp.arrayIteratorImpl=function(t){var r=0;return function(){return r<t.length?{done:!1,value:t[r++]}:{done:!0}}},$jscomp.arrayIterator=function(t){return{next:$jscomp.arrayIteratorImpl(t)}},$jscomp.makeIterator=function(t){var r=typeof Symbol<"u"&&Symbol.iterator&&t[Symbol.iterator];return r?r.call(t):$jscomp.arrayIterator(t)},$jscomp.arrayFromIterator=function(t){for(var r,l=[];!(r=t.next()).done;)l.push(r.value);return l},$jscomp.arrayFromIterable=function(t){return t instanceof Array?t:$jscomp.arrayFromIterator($jscomp.makeIterator(t))},$jscomp.checkStringArgs=function(t,r,l){if(t==null)throw new TypeError("The 'this' value for String.prototype."+l+" must not be null or undefined");if(r instanceof RegExp)throw new TypeError("First argument to String.prototype."+l+" must not be a regular expression");return t+""},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.ISOLATE_POLYFILLS=!1,$jscomp.FORCE_POLYFILL_PROMISE=!1,$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||typeof Object.defineProperties=="function"?Object.defineProperty:function(t,r,l){return t==Array.prototype||t==Object.prototype||(t[r]=l.value),t},$jscomp.getGlobal=function(t){t=[typeof globalThis=="object"&&globalThis,t,typeof window=="object"&&window,typeof self=="object"&&self,typeof global=="object"&&global];for(var r=0;r<t.length;++r){var l=t[r];if(l&&l.Math==Math)return l}throw Error("Cannot find global object")},$jscomp.global=$jscomp.getGlobal(this),$jscomp.IS_SYMBOL_NATIVE=typeof Symbol=="function"&&typeof Symbol("x")=="symbol",$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE,$jscomp.polyfills={},$jscomp.propertyToPolyfillSymbol={},$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(t,r){var l=$jscomp.propertyToPolyfillSymbol[r];return l==null?t[r]:(l=t[l],l!==void 0?l:t[r])};$jscomp.polyfill=function(t,r,l,i){r&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(t,r,l,i):$jscomp.polyfillUnisolated(t,r,l,i))},$jscomp.polyfillUnisolated=function(t,r,l,i){for(l=$jscomp.global,t=t.split("."),i=0;i<t.length-1;i++){var o=t[i];if(!(o in l))return;l=l[o]}t=t[t.length-1],i=l[t],r=r(i),r!=i&&r!=null&&$jscomp.defineProperty(l,t,{configurable:!0,writable:!0,value:r})},$jscomp.polyfillIsolated=function(t,r,l,i){var o=t.split(".");t=o.length===1,i=o[0],i=!t&&i in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var n=0;n<o.length-1;n++){var h=o[n];if(!(h in i))return;i=i[h]}o=o[o.length-1],l=$jscomp.IS_SYMBOL_NATIVE&&l==="es6"?i[o]:null,r=r(l),r!=null&&(t?$jscomp.defineProperty($jscomp.polyfills,o,{configurable:!0,writable:!0,value:r}):r!==l&&($jscomp.propertyToPolyfillSymbol[o]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(o):$jscomp.POLYFILL_PREFIX+o,o=$jscomp.propertyToPolyfillSymbol[o],$jscomp.defineProperty(i,o,{configurable:!0,writable:!0,value:r})))},$jscomp.polyfill("String.prototype.endsWith",function(t){return t||function(r,l){var i=$jscomp.checkStringArgs(this,r,"endsWith");r+="",l===void 0&&(l=i.length),l=Math.max(0,Math.min(l|0,i.length));for(var o=r.length;0<o&&0<l;)if(i[--l]!=r[--o])return!1;return 0>=o}},"es6","es3"),$jscomp.findInternal=function(t,r,l){t instanceof String&&(t=String(t));for(var i=t.length,o=0;o<i;o++){var n=t[o];if(r.call(l,n,o,t))return{i:o,v:n}}return{i:-1,v:void 0}},$jscomp.polyfill("Array.prototype.find",function(t){return t||function(r,l){return $jscomp.findInternal(this,r,l).v}},"es6","es3"),$jscomp.polyfill("String.prototype.startsWith",function(t){return t||function(r,l){var i=$jscomp.checkStringArgs(this,r,"startsWith");r+="";var o=i.length,n=r.length;l=Math.max(0,Math.min(l|0,i.length));for(var h=0;h<n&&l<o;)if(i[l++]!=r[h++])return!1;return h>=n}},"es6","es3"),$jscomp.polyfill("String.prototype.repeat",function(t){return t||function(r){var l=$jscomp.checkStringArgs(this,null,"repeat");if(0>r||1342177279<r)throw new RangeError("Invalid count value");r|=0;for(var i="";r;)r&1&&(i+=l),(r>>>=1)&&(l+=l);return i}},"es6","es3"),$jscomp.initSymbol=function(){},$jscomp.polyfill("Symbol",function(t){if(t)return t;var r=function(o,n){this.$jscomp$symbol$id_=o,$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:n})};r.prototype.toString=function(){return this.$jscomp$symbol$id_};var l=0,i=function(o){if(this instanceof i)throw new TypeError("Symbol is not a constructor");return new r("jscomp_symbol_"+(o||"")+"_"+l++,o)};return i},"es6","es3"),$jscomp.polyfill("Symbol.iterator",function(t){if(t)return t;t=Symbol("Symbol.iterator");for(var r="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),l=0;l<r.length;l++){var i=$jscomp.global[r[l]];typeof i=="function"&&typeof i.prototype[t]!="function"&&$jscomp.defineProperty(i.prototype,t,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return t},"es6","es3"),$jscomp.iteratorPrototype=function(t){return t={next:t},t[Symbol.iterator]=function(){return this},t},$jscomp.iteratorFromArray=function(t,r){t instanceof String&&(t+="");var l=0,i=!1,o={next:function(){if(!i&&l<t.length){var n=l++;return{value:r(n,t[n]),done:!1}}return i=!0,{done:!0,value:void 0}}};return o[Symbol.iterator]=function(){return o},o},$jscomp.polyfill("Array.prototype.keys",function(t){return t||function(){return $jscomp.iteratorFromArray(this,function(r){return r})}},"es6","es3"),$jscomp.polyfill("Object.is",function(t){return t||function(r,l){return r===l?r!==0||1/r===1/l:r!==r&&l!==l}},"es6","es3"),$jscomp.polyfill("Array.prototype.includes",function(t){return t||function(r,l){var i=this;i instanceof String&&(i=String(i));var o=i.length;for(l=l||0,0>l&&(l=Math.max(l+o,0));l<o;l++){var n=i[l];if(n===r||Object.is(n,r))return!0}return!1}},"es7","es3"),$jscomp.polyfill("String.prototype.includes",function(t){return t||function(r,l){return $jscomp.checkStringArgs(this,r,"includes").indexOf(r,l||0)!==-1}},"es6","es3");var COMPILED=!0,goog=goog||{};goog.global=this||self,goog.exportPath_=function(t,r,l,i){t=t.split("."),i=i||goog.global,t[0]in i||typeof i.execScript>"u"||i.execScript("var "+t[0]);for(var o;t.length&&(o=t.shift());)if(t.length||r===void 0)i=i[o]&&i[o]!==Object.prototype[o]?i[o]:i[o]={};else if(!l&&goog.isObject(r)&&goog.isObject(i[o]))for(var n in r)r.hasOwnProperty(n)&&(i[o][n]=r[n]);else i[o]=r},goog.define=function(t,r){if(!COMPILED){var l=goog.global.CLOSURE_UNCOMPILED_DEFINES,i=goog.global.CLOSURE_DEFINES;l&&l.nodeType===void 0&&Object.prototype.hasOwnProperty.call(l,t)?r=l[t]:i&&i.nodeType===void 0&&Object.prototype.hasOwnProperty.call(i,t)&&(r=i[t])}return r},goog.FEATURESET_YEAR=2012,goog.DEBUG=!0,goog.LOCALE="en",goog.TRUSTED_SITE=!0,goog.DISALLOW_TEST_ONLY_CODE=COMPILED&&!goog.DEBUG,goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1,goog.provide=function(t){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");if(!COMPILED&&goog.isProvided_(t))throw Error('Namespace "'+t+'" already declared.');goog.constructNamespace_(t)},goog.constructNamespace_=function(t,r,l){if(!COMPILED){delete goog.implicitNamespaces_[t];for(var i=t;(i=i.substring(0,i.lastIndexOf(".")))&&!goog.getObjectByName(i);)goog.implicitNamespaces_[i]=!0}goog.exportPath_(t,r,l)},goog.getScriptNonce=function(t){return t&&t!=goog.global?goog.getScriptNonce_(t.document):(goog.cspNonce_===null&&(goog.cspNonce_=goog.getScriptNonce_(goog.global.document)),goog.cspNonce_)},goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/,goog.cspNonce_=null,goog.getScriptNonce_=function(t){return(t=t.querySelector&&t.querySelector("script[nonce]"))&&(t=t.nonce||t.getAttribute("nonce"))&&goog.NONCE_PATTERN_.test(t)?t:""},goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/,goog.module=function(t){if(typeof t!="string"||!t||t.search(goog.VALID_MODULE_RE_)==-1)throw Error("Invalid module identifier");if(!goog.isInGoogModuleLoader_())throw Error("Module "+t+" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");if(goog.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");if(goog.moduleLoaderState_.moduleName=t,!COMPILED){if(goog.isProvided_(t))throw Error('Namespace "'+t+'" already declared.');delete goog.implicitNamespaces_[t]}},goog.module.get=function(t){return goog.module.getInternal_(t)},goog.module.getInternal_=function(t){if(!COMPILED){if(t in goog.loadedModules_)return goog.loadedModules_[t].exports;if(!goog.implicitNamespaces_[t])return t=goog.getObjectByName(t),t??null}return null},goog.ModuleType={ES6:"es6",GOOG:"goog"},goog.moduleLoaderState_=null,goog.isInModuleLoader_=function(){return goog.isInGoogModuleLoader_()||goog.isInEs6ModuleLoader_()},goog.isInGoogModuleLoader_=function(){return!!goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.GOOG},goog.isInEs6ModuleLoader_=function(){if(goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.ES6)return!0;var t=goog.global.$jscomp;return t?typeof t.getCurrentModulePath!="function"?!1:!!t.getCurrentModulePath():!1},goog.module.declareLegacyNamespace=function(){if(!COMPILED&&!goog.isInGoogModuleLoader_())throw Error("goog.module.declareLegacyNamespace must be called from within a goog.module");if(!COMPILED&&!goog.moduleLoaderState_.moduleName)throw Error("goog.module must be called prior to goog.module.declareLegacyNamespace.");goog.moduleLoaderState_.declareLegacyNamespace=!0},goog.declareModuleId=function(t){if(!COMPILED){if(!goog.isInEs6ModuleLoader_())throw Error("goog.declareModuleId may only be called from within an ES6 module");if(goog.moduleLoaderState_&&goog.moduleLoaderState_.moduleName)throw Error("goog.declareModuleId may only be called once per module.");if(t in goog.loadedModules_)throw Error('Module with namespace "'+t+'" already exists.')}if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=t;else{var r=goog.global.$jscomp;if(!r||typeof r.getCurrentModulePath!="function")throw Error('Module with namespace "'+t+'" has been loaded incorrectly.');r=r.require(r.getCurrentModulePath()),goog.loadedModules_[t]={exports:r,type:goog.ModuleType.ES6,moduleId:t}}},goog.setTestOnly=function(t){if(goog.DISALLOW_TEST_ONLY_CODE)throw t=t||"",Error("Importing test-only code into non-debug environment"+(t?": "+t:"."))},goog.forwardDeclare=function(t){},COMPILED||(goog.isProvided_=function(t){return t in goog.loadedModules_||!goog.implicitNamespaces_[t]&&goog.getObjectByName(t)!=null},goog.implicitNamespaces_={"goog.module":!0}),goog.getObjectByName=function(t,r){t=t.split("."),r=r||goog.global;for(var l=0;l<t.length;l++)if(r=r[t[l]],r==null)return null;return r},goog.addDependency=function(t,r,l,i){!COMPILED&&goog.DEPENDENCIES_ENABLED&&goog.debugLoader_.addDependency(t,r,l,i)},goog.ENABLE_DEBUG_LOADER=!0,goog.logToConsole_=function(t){goog.global.console&&goog.global.console.error(t)},goog.require=function(t){if(!COMPILED){if(goog.ENABLE_DEBUG_LOADER&&goog.debugLoader_.requested(t),goog.isProvided_(t)){if(goog.isInModuleLoader_())return goog.module.getInternal_(t)}else if(goog.ENABLE_DEBUG_LOADER){var r=goog.moduleLoaderState_;goog.moduleLoaderState_=null;try{goog.debugLoader_.load_(t)}finally{goog.moduleLoaderState_=r}}return null}},goog.requireType=function(t){return{}},goog.basePath="",goog.nullFunction=function(){},goog.abstractMethod=function(){throw Error("unimplemented abstract method")},goog.addSingletonGetter=function(t){t.instance_=void 0,t.getInstance=function(){return t.instance_?t.instance_:(goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingletons_.length]=t),t.instance_=new t)}},goog.instantiatedSingletons_=[],goog.LOAD_MODULE_USING_EVAL=!0,goog.SEAL_MODULE_EXPORTS=goog.DEBUG,goog.loadedModules_={},goog.DEPENDENCIES_ENABLED=!COMPILED&&goog.ENABLE_DEBUG_LOADER,goog.TRANSPILE="detect",goog.ASSUME_ES_MODULES_TRANSPILED=!1,goog.TRANSPILE_TO_LANGUAGE="",goog.TRANSPILER="transpile.js",goog.hasBadLetScoping=null,goog.useSafari10Workaround=function(){if(goog.hasBadLetScoping==null){try{var a=!eval('"use strict";let x = 1; function f() { return typeof x; };f() == "number";')}catch(t){a=!1}goog.hasBadLetScoping=a}return goog.hasBadLetScoping},goog.workaroundSafari10EvalBug=function(t){return"(function(){"+t+`
9
9
  ;})();
10
10
  `},goog.loadModule=function(t){var r=goog.moduleLoaderState_;try{goog.moduleLoaderState_={moduleName:"",declareLegacyNamespace:!1,type:goog.ModuleType.GOOG};var l={},i=l;if(typeof t=="function")i=t.call(void 0,i);else if(typeof t=="string")goog.useSafari10Workaround()&&(t=goog.workaroundSafari10EvalBug(t)),i=goog.loadModuleFromSource_.call(void 0,i,t);else throw Error("Invalid module definition");var o=goog.moduleLoaderState_.moduleName;if(typeof o=="string"&&o)goog.moduleLoaderState_.declareLegacyNamespace?goog.constructNamespace_(o,i,l!==i):goog.SEAL_MODULE_EXPORTS&&Object.seal&&typeof i=="object"&&i!=null&&Object.seal(i),goog.loadedModules_[o]={exports:i,type:goog.ModuleType.GOOG,moduleId:goog.moduleLoaderState_.moduleName};else throw Error('Invalid module name "'+o+'"')}finally{goog.moduleLoaderState_=r}},goog.loadModuleFromSource_=function(a,b){return eval(b),a},goog.normalizePath_=function(t){t=t.split("/");for(var r=0;r<t.length;)t[r]=="."?t.splice(r,1):r&&t[r]==".."&&t[r-1]&&t[r-1]!=".."?t.splice(--r,2):r++;return t.join("/")},goog.loadFileSync_=function(t){if(goog.global.CLOSURE_LOAD_FILE_SYNC)return goog.global.CLOSURE_LOAD_FILE_SYNC(t);try{var r=new goog.global.XMLHttpRequest;return r.open("get",t,!1),r.send(),r.status==0||r.status==200?r.responseText:null}catch{return null}},goog.transpile_=function(t,r,l){var i=goog.global.$jscomp;i||(goog.global.$jscomp=i={});var o=i.transpile;if(!o){var n=goog.basePath+goog.TRANSPILER,h=goog.loadFileSync_(n);if(h){if((function(){(0,eval)(h+`
11
11
  //# sourceURL=`+n)}).call(goog.global),goog.global.$gwtExport&&goog.global.$gwtExport.$jscomp&&!goog.global.$gwtExport.$jscomp.transpile)throw Error('The transpiler did not properly export the "transpile" method. $gwtExport: '+JSON.stringify(goog.global.$gwtExport));goog.global.$jscomp.transpile=goog.global.$gwtExport.$jscomp.transpile,i=goog.global.$jscomp,o=i.transpile}}return o||(o=i.transpile=function(v,u){return goog.logToConsole_(u+" requires transpilation but no transpiler was found."),v}),o(t,r,l)},goog.typeOf=function(t){var r=typeof t;return r!="object"?r:t?Array.isArray(t)?"array":r:"null"},goog.isArrayLike=function(t){var r=goog.typeOf(t);return r=="array"||r=="object"&&typeof t.length=="number"},goog.isDateLike=function(t){return goog.isObject(t)&&typeof t.getFullYear=="function"},goog.isObject=function(t){var r=typeof t;return r=="object"&&t!=null||r=="function"},goog.getUid=function(t){return Object.prototype.hasOwnProperty.call(t,goog.UID_PROPERTY_)&&t[goog.UID_PROPERTY_]||(t[goog.UID_PROPERTY_]=++goog.uidCounter_)},goog.hasUid=function(t){return!!t[goog.UID_PROPERTY_]},goog.removeUid=function(t){t!==null&&"removeAttribute"in t&&t.removeAttribute(goog.UID_PROPERTY_);try{delete t[goog.UID_PROPERTY_]}catch{}},goog.UID_PROPERTY_="closure_uid_"+(1e9*Math.random()>>>0),goog.uidCounter_=0,goog.cloneObject=function(t){var r=goog.typeOf(t);if(r=="object"||r=="array"){if(typeof t.clone=="function")return t.clone();r=r=="array"?[]:{};for(var l in t)r[l]=goog.cloneObject(t[l]);return r}return t},goog.bindNative_=function(t,r,l){return t.call.apply(t.bind,arguments)},goog.bindJs_=function(t,r,l){if(!t)throw Error();if(2<arguments.length){var i=Array.prototype.slice.call(arguments,2);return function(){var o=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(o,i),t.apply(r,o)}}return function(){return t.apply(r,arguments)}},goog.bind=function(t,r,l){return Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?goog.bind=goog.bindNative_:goog.bind=goog.bindJs_,goog.bind.apply(null,arguments)},goog.partial=function(t,r){var l=Array.prototype.slice.call(arguments,1);return function(){var i=l.slice();return i.push.apply(i,arguments),t.apply(this,i)}},goog.mixin=function(t,r){for(var l in r)t[l]=r[l]},goog.now=function(){return Date.now()},goog.globalEval=function(t){(0,eval)(t)},goog.getCssName=function(t,r){if(String(t).charAt(0)==".")throw Error('className passed in goog.getCssName must not start with ".". You passed: '+t);var l=function(o){return goog.cssNameMapping_[o]||o},i=function(o){o=o.split("-");for(var n=[],h=0;h<o.length;h++)n.push(l(o[h]));return n.join("-")};return i=goog.cssNameMapping_?goog.cssNameMappingStyle_=="BY_WHOLE"?l:i:function(o){return o},t=r?t+"-"+i(r):i(t),goog.global.CLOSURE_CSS_NAME_MAP_FN?goog.global.CLOSURE_CSS_NAME_MAP_FN(t):t},goog.setCssNameMapping=function(t,r){goog.cssNameMapping_=t,goog.cssNameMappingStyle_=r},!COMPILED&&goog.global.CLOSURE_CSS_NAME_MAPPING&&(goog.cssNameMapping_=goog.global.CLOSURE_CSS_NAME_MAPPING),goog.getMsg=function(t,r,l){return l&&l.html&&(t=t.replace(/</g,"&lt;")),l&&l.unescapeHtmlEntities&&(t=t.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&apos;/g,"'").replace(/&quot;/g,'"').replace(/&amp;/g,"&")),r&&(t=t.replace(/\{\$([^}]+)}/g,function(i,o){return r!=null&&o in r?r[o]:i})),t},goog.getMsgWithFallback=function(t,r){return t},goog.exportSymbol=function(t,r,l){goog.exportPath_(t,r,!0,l)},goog.exportProperty=function(t,r,l){t[r]=l},goog.inherits=function(t,r){function l(){}l.prototype=r.prototype,t.superClass_=r.prototype,t.prototype=new l,t.prototype.constructor=t,t.base=function(i,o,n){for(var h=Array(arguments.length-2),v=2;v<arguments.length;v++)h[v-2]=arguments[v];return r.prototype[o].apply(i,h)}},goog.scope=function(t){if(goog.isInModuleLoader_())throw Error("goog.scope is not supported within a module.");t.call(goog.global)},COMPILED||(goog.global.COMPILED=COMPILED),goog.defineClass=function(t,r){var l=r.constructor,i=r.statics;return l&&l!=Object.prototype.constructor||(l=function(){throw Error("cannot instantiate an interface (no constructor defined).")}),l=goog.defineClass.createSealingConstructor_(l,t),t&&goog.inherits(l,t),delete r.constructor,delete r.statics,goog.defineClass.applyProperties_(l.prototype,r),i!=null&&(i instanceof Function?i(l):goog.defineClass.applyProperties_(l,i)),l},goog.defineClass.SEAL_CLASS_INSTANCES=goog.DEBUG,goog.defineClass.createSealingConstructor_=function(t,r){return goog.defineClass.SEAL_CLASS_INSTANCES?function(){var l=t.apply(this,arguments)||this;return l[goog.UID_PROPERTY_]=l[goog.UID_PROPERTY_],l}:t},goog.defineClass.OBJECT_PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),goog.defineClass.applyProperties_=function(t,r){for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(t[l]=r[l]);for(var i=0;i<goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length;i++)l=goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[i],Object.prototype.hasOwnProperty.call(r,l)&&(t[l]=r[l])},!COMPILED&&goog.DEPENDENCIES_ENABLED&&(goog.inHtmlDocument_=function(){var t=goog.global.document;return t!=null&&"write"in t},goog.isDocumentLoading_=function(){var t=goog.global.document;return t.attachEvent?t.readyState!="complete":t.readyState=="loading"},goog.findBasePath_=function(){if(goog.global.CLOSURE_BASE_PATH!=null&&typeof goog.global.CLOSURE_BASE_PATH=="string")goog.basePath=goog.global.CLOSURE_BASE_PATH;else if(goog.inHtmlDocument_()){var t=goog.global.document,r=t.currentScript;for(t=r?[r]:t.getElementsByTagName("SCRIPT"),r=t.length-1;0<=r;--r){var l=t[r].src,i=l.lastIndexOf("?");if(i=i==-1?l.length:i,l.substr(i-7,7)=="base.js"){goog.basePath=l.substr(0,i-7);break}}}},goog.findBasePath_(),goog.Transpiler=function(){this.requiresTranspilation_=null,this.transpilationTarget_=goog.TRANSPILE_TO_LANGUAGE},goog.Transpiler.prototype.createRequiresTranspilation_=function(){function a(t,r){e?d[t]=!0:r()?(c=t,d[t]=!1):e=d[t]=!0}function b(g){try{return!!eval(g)}catch(t){return!1}}var c="es3",d={es3:!1},e=!1,f=goog.global.navigator&&goog.global.navigator.userAgent?goog.global.navigator.userAgent:"";return a("es5",function(){return b("[1,].length==1")}),a("es6",function(){return f.match(/Edge\/(\d+)(\.\d)*/i)?!1:b('(()=>{"use strict";class X{constructor(){if(new.target!=String)throw 1;this.x=42}}let q=Reflect.construct(X,[],String);if(q.x!=42||!(q instanceof String))throw 1;for(const a of[2,3]){if(a==2)continue;function f(z={a}){let a=0;return z.a}{function f(){return 0;}}return f()==3}})()')}),a("es7",function(){return b("2 ** 2 == 4")}),a("es8",function(){return b("async () => 1, true")}),a("es9",function(){return b("({...rest} = {}), true")}),a("es_next",function(){return!1}),{target:c,map:d}},goog.Transpiler.prototype.needsTranspile=function(t,r){if(goog.TRANSPILE=="always")return!0;if(goog.TRANSPILE=="never")return!1;if(!this.requiresTranspilation_){var l=this.createRequiresTranspilation_();this.requiresTranspilation_=l.map,this.transpilationTarget_=this.transpilationTarget_||l.target}if(t in this.requiresTranspilation_)return this.requiresTranspilation_[t]?!0:!(!goog.inHtmlDocument_()||r!="es6"||"noModule"in goog.global.document.createElement("script"));throw Error("Unknown language mode: "+t)},goog.Transpiler.prototype.transpile=function(t,r){return goog.transpile_(t,r,this.transpilationTarget_)},goog.transpiler_=new goog.Transpiler,goog.protectScriptTag_=function(t){return t.replace(/<\/(SCRIPT)/ig,"\\x3c/$1")},goog.DebugLoader_=function(){this.dependencies_={},this.idToPath_={},this.written_={},this.loadingDeps_=[],this.depsToLoad_=[],this.paused_=!1,this.factory_=new goog.DependencyFactory(goog.transpiler_),this.deferredCallbacks_={},this.deferredQueue_=[]},goog.DebugLoader_.prototype.bootstrap=function(t,r){function l(){i&&(goog.global.setTimeout(i,0),i=null)}var i=r;if(t.length){r=[];for(var o=0;o<t.length;o++){var n=this.getPathFromDeps_(t[o]);if(!n)throw Error("Unregonized namespace: "+t[o]);r.push(this.dependencies_[n])}n=goog.require;var h=0;for(o=0;o<t.length;o++)n(t[o]),r[o].onLoad(function(){++h==t.length&&l()})}else l()},goog.DebugLoader_.prototype.loadClosureDeps=function(){this.depsToLoad_.push(this.factory_.createDependency(goog.normalizePath_(goog.basePath+"deps.js"),"deps.js",[],[],{},!1)),this.loadDeps_()},goog.DebugLoader_.prototype.requested=function(t,r){(t=this.getPathFromDeps_(t))&&(r||this.areDepsLoaded_(this.dependencies_[t].requires))&&(r=this.deferredCallbacks_[t])&&(delete this.deferredCallbacks_[t],r())},goog.DebugLoader_.prototype.setDependencyFactory=function(t){this.factory_=t},goog.DebugLoader_.prototype.load_=function(t){if(this.getPathFromDeps_(t)){var r=this,l=[],i=function(o){var n=r.getPathFromDeps_(o);if(!n)throw Error("Bad dependency path or symbol: "+o);if(!r.written_[n]){for(r.written_[n]=!0,o=r.dependencies_[n],n=0;n<o.requires.length;n++)goog.isProvided_(o.requires[n])||i(o.requires[n]);l.push(o)}};i(t),t=!!this.depsToLoad_.length,this.depsToLoad_=this.depsToLoad_.concat(l),this.paused_||t||this.loadDeps_()}else throw t="goog.require could not find: "+t,goog.logToConsole_(t),Error(t)},goog.DebugLoader_.prototype.loadDeps_=function(){for(var t=this,r=this.paused_;this.depsToLoad_.length&&!r;)(function(){var l=!1,i=t.depsToLoad_.shift(),o=!1;t.loading_(i);var n={pause:function(){if(l)throw Error("Cannot call pause after the call to load.");r=!0},resume:function(){l?t.resume_():r=!1},loaded:function(){if(o)throw Error("Double call to loaded.");o=!0,t.loaded_(i)},pending:function(){for(var h=[],v=0;v<t.loadingDeps_.length;v++)h.push(t.loadingDeps_[v]);return h},setModuleState:function(h){goog.moduleLoaderState_={type:h,moduleName:"",declareLegacyNamespace:!1}},registerEs6ModuleExports:function(h,v,u){u&&(goog.loadedModules_[u]={exports:v,type:goog.ModuleType.ES6,moduleId:u||""})},registerGoogModuleExports:function(h,v){goog.loadedModules_[h]={exports:v,type:goog.ModuleType.GOOG,moduleId:h}},clearModuleState:function(){goog.moduleLoaderState_=null},defer:function(h){if(l)throw Error("Cannot register with defer after the call to load.");t.defer_(i,h)},areDepsLoaded:function(){return t.areDepsLoaded_(i.requires)}};try{i.load(n)}finally{l=!0}})();r&&this.pause_()},goog.DebugLoader_.prototype.pause_=function(){this.paused_=!0},goog.DebugLoader_.prototype.resume_=function(){this.paused_&&(this.paused_=!1,this.loadDeps_())},goog.DebugLoader_.prototype.loading_=function(t){this.loadingDeps_.push(t)},goog.DebugLoader_.prototype.loaded_=function(t){for(var r=0;r<this.loadingDeps_.length;r++)if(this.loadingDeps_[r]==t){this.loadingDeps_.splice(r,1);break}for(r=0;r<this.deferredQueue_.length;r++)if(this.deferredQueue_[r]==t.path){this.deferredQueue_.splice(r,1);break}if(this.loadingDeps_.length==this.deferredQueue_.length&&!this.depsToLoad_.length)for(;this.deferredQueue_.length;)this.requested(this.deferredQueue_.shift(),!0);t.loaded()},goog.DebugLoader_.prototype.areDepsLoaded_=function(t){for(var r=0;r<t.length;r++){var l=this.getPathFromDeps_(t[r]);if(!l||!(l in this.deferredCallbacks_||goog.isProvided_(t[r])))return!1}return!0},goog.DebugLoader_.prototype.getPathFromDeps_=function(t){return t in this.idToPath_?this.idToPath_[t]:t in this.dependencies_?t:null},goog.DebugLoader_.prototype.defer_=function(t,r){this.deferredCallbacks_[t.path]=r,this.deferredQueue_.push(t.path)},goog.LoadController=function(){},goog.LoadController.prototype.pause=function(){},goog.LoadController.prototype.resume=function(){},goog.LoadController.prototype.loaded=function(){},goog.LoadController.prototype.pending=function(){},goog.LoadController.prototype.registerEs6ModuleExports=function(t,r,l){},goog.LoadController.prototype.setModuleState=function(t){},goog.LoadController.prototype.clearModuleState=function(){},goog.LoadController.prototype.defer=function(t){},goog.LoadController.prototype.areDepsLoaded=function(){},goog.Dependency=function(t,r,l,i,o){this.path=t,this.relativePath=r,this.provides=l,this.requires=i,this.loadFlags=o,this.loaded_=!1,this.loadCallbacks_=[]},goog.Dependency.prototype.getPathName=function(){var t=this.path,r=t.indexOf("://");return 0<=r&&(t=t.substring(r+3),r=t.indexOf("/"),0<=r&&(t=t.substring(r+1))),t},goog.Dependency.prototype.onLoad=function(t){this.loaded_?t():this.loadCallbacks_.push(t)},goog.Dependency.prototype.loaded=function(){this.loaded_=!0;var t=this.loadCallbacks_;this.loadCallbacks_=[];for(var r=0;r<t.length;r++)t[r]()},goog.Dependency.defer_=!1,goog.Dependency.callbackMap_={},goog.Dependency.registerCallback_=function(t){var r=Math.random().toString(32);return goog.Dependency.callbackMap_[r]=t,r},goog.Dependency.unregisterCallback_=function(t){delete goog.Dependency.callbackMap_[t]},goog.Dependency.callback_=function(t,r){if(t in goog.Dependency.callbackMap_){for(var l=goog.Dependency.callbackMap_[t],i=[],o=1;o<arguments.length;o++)i.push(arguments[o]);l.apply(void 0,i)}else throw Error("Callback key "+t+" does not exist (was base.js loaded more than once?).")},goog.Dependency.prototype.load=function(t){if(goog.global.CLOSURE_IMPORT_SCRIPT)goog.global.CLOSURE_IMPORT_SCRIPT(this.path)?t.loaded():t.pause();else if(goog.inHtmlDocument_()){var r=goog.global.document;if(r.readyState=="complete"&&!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING){if(/\bdeps.js$/.test(this.path)){t.loaded();return}throw Error('Cannot write "'+this.path+'" after document load')}var l=goog.getScriptNonce();if(!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING&&goog.isDocumentLoading_()){var i=function(v){v.readyState&&v.readyState!="complete"?v.onload=i:(goog.Dependency.unregisterCallback_(o),t.loaded())},o=goog.Dependency.registerCallback_(i);l=l?' nonce="'+l+'"':"";var n='<script src="'+this.path+'"'+l+(goog.Dependency.defer_?" defer":"")+' id="script-'+o+'"><\/script>';n+="<script"+l+">",n=goog.Dependency.defer_?n+("document.getElementById('script-"+o+`').onload = function() {
@@ -27,4 +27,4 @@ Error generating stack: `+n.message+`
27
27
  font-size: .6rem;
28
28
  font-weight: bold;
29
29
  color: hsl(${Math.max(0,Math.min(120-120*w,120))}deg 100% 31%);`,l?.key)}return l?.onChange&&!(n&&l.skipInitialOnChange)&&l.onChange(o),n=!1,o}return h.updateDeps=v=>{i=v},h}function fl(t,r){if(t===void 0)throw new Error(`Unexpected undefined${r?`: ${r}`:""}`);return t}var Jc=(t,r)=>Math.abs(t-r)<1.01,th=(t,r,l)=>{let i;return function(...o){t.clearTimeout(i),i=t.setTimeout(()=>r.apply(this,o),l)}};var ah=t=>{let{offsetWidth:r,offsetHeight:l}=t;return{width:r,height:l}},Gp=t=>t,Wp=t=>{let r=Math.max(t.startIndex-t.overscan,0),l=Math.min(t.endIndex+t.overscan,t.count-1),i=[];for(let o=r;o<=l;o++)i.push(o);return i},eh=(t,r)=>{let l=t.scrollElement;if(!l)return;let i=t.targetWindow;if(!i)return;let o=h=>{let{width:v,height:u}=h;r({width:Math.round(v),height:Math.round(u)})};if(o(ah(l)),!i.ResizeObserver)return()=>{};let n=new i.ResizeObserver(h=>{let v=()=>{let u=h[0];if(u?.borderBoxSize){let s=u.borderBoxSize[0];if(s){o({width:s.inlineSize,height:s.blockSize});return}}o(ah(l))};t.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(v):v()});return n.observe(l,{box:"border-box"}),()=>{n.unobserve(l)}},rh={passive:!0};var lh=typeof window>"u"?!0:"onscrollend"in window,ih=(t,r)=>{let l=t.scrollElement;if(!l)return;let i=t.targetWindow;if(!i)return;let o=0,n=t.options.useScrollendEvent&&lh?()=>{}:th(i,()=>{r(o,!1)},t.options.isScrollingResetDelay),h=p=>()=>{let{horizontal:A,isRtl:M}=t.options;o=A?l.scrollLeft*(M&&-1||1):l.scrollTop,n(),r(o,p)},v=h(!0),u=h(!1);l.addEventListener("scroll",v,rh);let s=t.options.useScrollendEvent&&lh;return s&&l.addEventListener("scrollend",u,rh),()=>{l.removeEventListener("scroll",v),s&&l.removeEventListener("scrollend",u)}};var jp=(t,r,l)=>{if(r?.borderBoxSize){let i=r.borderBoxSize[0];if(i)return Math.round(i[l.options.horizontal?"inlineSize":"blockSize"])}return t[l.options.horizontal?"offsetWidth":"offsetHeight"]};var oh=(t,{adjustments:r=0,behavior:l},i)=>{var o,n;let h=t+r;(n=(o=i.scrollElement)==null?void 0:o.scrollTo)==null||n.call(o,{[i.options.horizontal?"left":"top"]:h,behavior:l})},Ca=class{constructor(r){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var l,i,o;return((o=(i=(l=this.targetWindow)==null?void 0:l.performance)==null?void 0:i.now)==null?void 0:o.call(i))??Date.now()},this.observer=(()=>{let l=null,i=()=>l||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:l=new this.targetWindow.ResizeObserver(o=>{o.forEach(n=>{let h=()=>{let v=n.target,u=this.indexFromElement(v);if(!v.isConnected){this.observer.unobserve(v);return}this.shouldMeasureDuringScroll(u)&&this.resizeItem(u,this.options.measureElement(v,n,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(h):h()})}));return{disconnect:()=>{var o;(o=i())==null||o.disconnect(),l=null},observe:o=>{var n;return(n=i())==null?void 0:n.observe(o,{box:"border-box"})},unobserve:o=>{var n;return(n=i())==null?void 0:n.unobserve(o)}}})(),this.range=null,this.setOptions=l=>{Object.entries(l).forEach(([i,o])=>{typeof o>"u"&&delete l[i]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Gp,rangeExtractor:Wp,onChange:()=>{},measureElement:jp,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...l}},this.notify=l=>{var i,o;(o=(i=this.options).onChange)==null||o.call(i,this,l)},this.maybeNotify=L6(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),l=>{this.notify(l)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(l=>l()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var l;let i=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==i){if(this.cleanup(),!i){this.maybeNotify();return}this.scrollElement=i,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((l=this.scrollElement)==null?void 0:l.window)??null,this.elementsCache.forEach(o=>{this.observer.observe(o)}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(o,n)=>{this.scrollAdjustments=0,this.scrollDirection=n?this.getScrollOffset()<o?"forward":"backward":null,this.scrollOffset=o,this.isScrolling=n,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(l,i)=>{let o=new Map,n=new Map;for(let h=i-1;h>=0;h--){let v=l[h];if(o.has(v.lane))continue;let u=n.get(v.lane);if(u==null||v.end>u.end?n.set(v.lane,v):v.end<u.end&&o.set(v.lane,!0),o.size===this.options.lanes)break}return n.size===this.options.lanes?Array.from(n.values()).sort((h,v)=>h.end===v.end?h.index-v.index:h.end-v.end)[0]:void 0},this.getMeasurementOptions=L6(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(l,i,o,n,h,v)=>(this.prevLanes!==void 0&&this.prevLanes!==v&&(this.lanesChangedFlag=!0),this.prevLanes=v,this.pendingMeasuredCacheIndexes=[],{count:l,paddingStart:i,scrollMargin:o,getItemKey:n,enabled:h,lanes:v}),{key:!1}),this.getMeasurements=L6(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:l,paddingStart:i,scrollMargin:o,getItemKey:n,enabled:h,lanes:v},u)=>{if(!h)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>l)for(let M of this.laneAssignments.keys())M>=l&&this.laneAssignments.delete(M);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(M=>{this.itemSizeCache.set(M.key,M.size)}));let s=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===l&&(this.lanesSettling=!1);let p=this.measurementsCache.slice(0,s),A=new Array(v).fill(void 0);for(let M=0;M<s;M++){let H=p[M];H&&(A[H.lane]=M)}for(let M=s;M<l;M++){let H=n(M),Z=this.laneAssignments.get(M),L,w;if(Z!==void 0&&this.options.lanes>1){L=Z;let z=A[L],B=z!==void 0?p[z]:void 0;w=B?B.end+this.options.gap:i+o}else{let z=this.options.lanes===1?p[M-1]:this.getFurthestMeasurement(p,M);w=z?z.end+this.options.gap:i+o,L=z?z.lane:M%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(M,L)}let m=u.get(H),V=typeof m=="number"?m:this.options.estimateSize(M),x=w+V;p[M]={index:M,start:w,size:V,end:x,key:H,lane:L},A[L]=M}return this.measurementsCache=p,p},{key:!1,debug:()=>this.options.debug}),this.calculateRange=L6(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(l,i,o,n)=>this.range=l.length>0&&i>0?qp({measurements:l,outerSize:i,scrollOffset:o,lanes:n}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=L6(()=>{let l=null,i=null,o=this.calculateRange();return o&&(l=o.startIndex,i=o.endIndex),this.maybeNotify.updateDeps([this.isScrolling,l,i]),[this.options.rangeExtractor,this.options.overscan,this.options.count,l,i]},(l,i,o,n,h)=>n===null||h===null?[]:l({startIndex:n,endIndex:h,overscan:i,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=l=>{let i=this.options.indexAttribute,o=l.getAttribute(i);return o?parseInt(o,10):(console.warn(`Missing attribute name '${i}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=l=>{var i;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;let o=this.scrollState.index??((i=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:i.index);if(o!==void 0&&this.range){let n=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),h=Math.max(0,o-n),v=Math.min(this.options.count-1,o+n);return l>=h&&l<=v}return!0},this.measureElement=l=>{if(!l){this.elementsCache.forEach((h,v)=>{h.isConnected||(this.observer.unobserve(h),this.elementsCache.delete(v))});return}let i=this.indexFromElement(l),o=this.options.getItemKey(i),n=this.elementsCache.get(o);n!==l&&(n&&this.observer.unobserve(n),this.observer.observe(l),this.elementsCache.set(o,l)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(i)&&this.resizeItem(i,this.options.measureElement(l,void 0,this))},this.resizeItem=(l,i)=>{var o;let n=this.measurementsCache[l];if(!n)return;let h=this.itemSizeCache.get(n.key)??n.size,v=i-h;v!==0&&(((o=this.scrollState)==null?void 0:o.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(n,v,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=v,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,i)),this.notify(!1))},this.getVirtualItems=L6(()=>[this.getVirtualIndexes(),this.getMeasurements()],(l,i)=>{let o=[];for(let n=0,h=l.length;n<h;n++){let v=l[n],u=i[v];o.push(u)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=l=>{let i=this.getMeasurements();if(i.length!==0)return fl(i[nh(0,i.length-1,o=>fl(i[o]).start,l)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{let l=this.scrollElement.document.documentElement;return this.options.horizontal?l.scrollWidth-this.scrollElement.innerWidth:l.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(l,i,o=0)=>{if(!this.scrollElement)return 0;let n=this.getSize(),h=this.getScrollOffset();i==="auto"&&(i=l>=h+n?"end":"start"),i==="center"?l+=(o-n)/2:i==="end"&&(l-=n);let v=this.getMaxScrollOffset();return Math.max(Math.min(v,l),0)},this.getOffsetForIndex=(l,i="auto")=>{l=Math.max(0,Math.min(l,this.options.count-1));let o=this.getSize(),n=this.getScrollOffset(),h=this.measurementsCache[l];if(!h)return;if(i==="auto")if(h.end>=n+o-this.options.scrollPaddingEnd)i="end";else if(h.start<=n+this.options.scrollPaddingStart)i="start";else return[n,i];if(i==="end"&&l===this.options.count-1)return[this.getMaxScrollOffset(),i];let v=i==="end"?h.end+this.options.scrollPaddingEnd:h.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(v,i,h.size),i]},this.scrollToOffset=(l,{align:i="start",behavior:o="auto"}={})=>{let n=this.getOffsetForAlignment(l,i),h=this.now();this.scrollState={index:null,align:i,behavior:o,startedAt:h,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:o}),this.scheduleScrollReconcile()},this.scrollToIndex=(l,{align:i="auto",behavior:o="auto"}={})=>{l=Math.max(0,Math.min(l,this.options.count-1));let n=this.getOffsetForIndex(l,i);if(!n)return;let[h,v]=n,u=this.now();this.scrollState={index:l,align:v,behavior:o,startedAt:u,lastTargetOffset:h,stableFrames:0},this._scrollToOffset(h,{adjustments:void 0,behavior:o}),this.scheduleScrollReconcile()},this.scrollBy=(l,{behavior:i="auto"}={})=>{let o=this.getScrollOffset()+l,n=this.now();this.scrollState={index:null,align:"start",behavior:i,startedAt:n,lastTargetOffset:o,stableFrames:0},this._scrollToOffset(o,{adjustments:void 0,behavior:i}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var l;let i=this.getMeasurements(),o;if(i.length===0)o=this.options.paddingStart;else if(this.options.lanes===1)o=((l=i[i.length-1])==null?void 0:l.end)??0;else{let n=Array(this.options.lanes).fill(null),h=i.length-1;for(;h>=0&&n.some(v=>v===null);){let v=i[h];n[v.lane]===null&&(n[v.lane]=v.end),h--}o=Math.max(...n.filter(v=>v!==null))}return Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(l,{adjustments:i,behavior:o})=>{this.options.scrollToFn(l,{behavior:o,adjustments:i},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(r)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}let i=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,o=i?i[0]:this.scrollState.lastTargetOffset,n=1,h=o!==this.scrollState.lastTargetOffset;if(!h&&Jc(o,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=n){this.scrollState=null;return}}else this.scrollState.stableFrames=0,h&&(this.scrollState.lastTargetOffset=o,this.scrollState.behavior="auto",this._scrollToOffset(o,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}},nh=(t,r,l,i)=>{for(;t<=r;){let o=(t+r)/2|0,n=l(o);if(n<i)t=o+1;else if(n>i)r=o-1;else return o}return t>0?t-1:0};function qp({measurements:t,outerSize:r,scrollOffset:l,lanes:i}){let o=t.length-1,n=u=>t[u].start;if(t.length<=i)return{startIndex:0,endIndex:o};let h=nh(0,o,n,l),v=h;if(i===1)for(;v<o&&t[v].end<l+r;)v++;else if(i>1){let u=Array(i).fill(0);for(;v<o&&u.some(p=>p<l+r);){let p=t[v];u[p.lane]=p.end,v++}let s=Array(i).fill(l+r);for(;h>=0&&s.some(p=>p>=l);){let p=t[h];s[p.lane]=p.start,h--}h=Math.max(0,h-h%i),v=Math.min(o,v+(i-1-v%i))}return{startIndex:h,endIndex:v}}var ch=typeof document<"u"?W4.useLayoutEffect:W4.useEffect;function Kp({useFlushSync:t=!0,...r}){let l=W4.useReducer(()=>({}),{})[1],i={...r,onChange:(n,h)=>{var v;t&&h?(0,hh.flushSync)(l):l(),(v=r.onChange)==null||v.call(r,n,h)}},[o]=W4.useState(()=>new Ca(i));return o.setOptions(i),ch(()=>o._didMount(),[]),ch(()=>o._willUpdate()),o}function dh(t){return Kp({observeElementRect:eh,observeElementOffset:ih,scrollToFn:oh,...t})}var Q=E(I(),1),T6=E(O2(),1);var vh=E(I(),1);function Yp(t,r){return t!==null&&r!==null&&typeof t=="object"&&typeof r=="object"&&"id"in t&&"id"in r?t.id===r.id:t===r}function wa(t=Yp){return(0,vh.useCallback)((r,l)=>{if(typeof t=="string"){let i=t;return r?.[i]===l?.[i]}return t(r,l)},[t])}var uh=E(I(),1);function gh(t){if(t===null)return{width:0,height:0};let{width:r,height:l}=t.getBoundingClientRect();return{width:r,height:l}}function r5(t,r,l=!1){let[i,o]=(0,uh.useState)(()=>gh(r));return J(()=>{if(!r||!t)return;let n=T1();return n.requestAnimationFrame(function h(){n.requestAnimationFrame(h),o(v=>{let u=gh(r);return u.width===v.width&&u.height===v.height?v:u})}),()=>{n.dispose()}},[r,t]),l?{width:`${i.width}px`,height:`${i.height}px`}:i}var sh=E(I(),1);var l5=(t=>(t[t.Left=0]="Left",t[t.Right=2]="Right",t))(l5||{});function Ba(t){let r=(0,sh.useRef)(null),l=_(o=>{r.current=o.pointerType,!t5(o.currentTarget)&&o.pointerType==="mouse"&&o.button===l5.Left&&(o.preventDefault(),t(o))}),i=_(o=>{r.current!=="mouse"&&(t5(o.currentTarget)||t(o))});return{onPointerDown:l,onClick:i}}var Sa=E(I(),1);var m8=class extends Map{constructor(r){super(),this.factory=r}get(r){let l=super.get(r);return l===void 0&&(l=this.factory(r),this.set(r,l)),l}};var Xp=Object.defineProperty,Qp=(t,r,l)=>r in t?Xp(t,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):t[r]=l,Jp=(t,r,l)=>(Qp(t,typeof r!="symbol"?r+"":r,l),l),Mh=(t,r,l)=>{if(!r.has(t))throw TypeError("Cannot "+l)},e2=(t,r,l)=>(Mh(t,r,"read from private field"),l?l.call(t):r.get(t)),Al=(t,r,l)=>{if(r.has(t))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(t):r.set(t,l)},ph=(t,r,l,i)=>(Mh(t,r,"write to private field"),i?i.call(t,l):r.set(t,l),l),R2,e5,i5,j4=class{constructor(r){Al(this,R2,{}),Al(this,e5,new m8(()=>new Set)),Al(this,i5,new Set),Jp(this,"disposables",T1()),ph(this,R2,r),z0.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return e2(this,R2)}subscribe(r,l){if(z0.isServer)return()=>{};let i={selector:r,callback:l,current:r(e2(this,R2))};return e2(this,i5).add(i),this.disposables.add(()=>{e2(this,i5).delete(i)})}on(r,l){return z0.isServer?()=>{}:(e2(this,e5).get(r).add(l),this.disposables.add(()=>{e2(this,e5).get(r).delete(l)}))}send(r){let l=this.reduce(e2(this,R2),r);if(l!==e2(this,R2)){ph(this,R2,l);for(let i of e2(this,i5)){let o=i.selector(e2(this,R2));ml(i.current,o)||(i.current=o,i.callback(o))}for(let i of e2(this,e5).get(r.type))i(e2(this,R2),r)}}};R2=new WeakMap,e5=new WeakMap,i5=new WeakMap;function ml(t,r){return Object.is(t,r)?!0:typeof t!="object"||t===null||typeof r!="object"||r===null?!1:Array.isArray(t)&&Array.isArray(r)?t.length!==r.length?!1:Vl(t[Symbol.iterator](),r[Symbol.iterator]()):t instanceof Map&&r instanceof Map||t instanceof Set&&r instanceof Set?t.size!==r.size?!1:Vl(t.entries(),r.entries()):Hh(t)&&Hh(r)?Vl(Object.entries(t)[Symbol.iterator](),Object.entries(r)[Symbol.iterator]()):!1}function Vl(t,r){do{let l=t.next(),i=r.next();if(l.done&&i.done)return!0;if(l.done||i.done||!Object.is(l.value,i.value))return!1}while(!0)}function Hh(t){if(Object.prototype.toString.call(t)!=="[object Object]")return!1;let r=Object.getPrototypeOf(t);return r===null||Object.getPrototypeOf(r)===null}function Pa(t){let[r,l]=t(),i=T1();return(...o)=>{r(...o),i.dispose(),i.microTask(l)}}var tH=Object.defineProperty,aH=(t,r,l)=>r in t?tH(t,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):t[r]=l,fh=(t,r,l)=>(aH(t,typeof r!="symbol"?r+"":r,l),l),o5=(t=>(t[t.Push=0]="Push",t[t.Pop=1]="Pop",t))(o5||{}),rH={0(t,r){let l=r.id,i=t.stack,o=t.stack.indexOf(l);if(o!==-1){let n=t.stack.slice();return n.splice(o,1),n.push(l),i=n,{...t,stack:i}}return{...t,stack:[...t.stack,l]}},1(t,r){let l=r.id,i=t.stack.indexOf(l);if(i===-1)return t;let o=t.stack.slice();return o.splice(i,1),{...t,stack:o}}},Zl=class t extends j4{constructor(){super(...arguments),fh(this,"actions",{push:r=>this.send({type:0,id:r}),pop:r=>this.send({type:1,id:r})}),fh(this,"selectors",{isTop:(r,l)=>r.stack[r.stack.length-1]===l,inStack:(r,l)=>r.stack.includes(l)})}static new(){return new t({stack:[]})}reduce(r,l){return Z1(l.type,rH,r,l)}},i2=new m8(()=>Zl.new());var xh=E(Zh(),1);function A1(t,r,l=ml){return(0,xh.useSyncExternalStoreWithSelector)(_(i=>t.subscribe(dH,i)),_(()=>t.state),_(()=>t.state),_(r),l)}function dH(t){return t}function v4(t,r){let l=(0,Sa.useId)(),i=i2.get(r),[o,n]=A1(i,(0,Sa.useCallback)(h=>[i.selectors.isTop(h,l),i.selectors.inStack(h,l)],[i,l]));return J(()=>{if(t)return i.actions.push(l),()=>i.actions.pop(l)},[i,t,l]),t?n?o:!0:!1}var xl=new Map,c5=new Map;function Lh(t){var r;let l=(r=c5.get(t))!=null?r:0;return c5.set(t,l+1),l!==0?()=>zh(t):(xl.set(t,{"aria-hidden":t.getAttribute("aria-hidden"),inert:t.inert}),t.setAttribute("aria-hidden","true"),t.inert=!0,()=>zh(t))}function zh(t){var r;let l=(r=c5.get(t))!=null?r:1;if(l===1?c5.delete(t):c5.set(t,l-1),l!==1)return;let i=xl.get(t);i&&(i["aria-hidden"]===null?t.removeAttribute("aria-hidden"):t.setAttribute("aria-hidden",i["aria-hidden"]),t.inert=i.inert,xl.delete(t))}function Z8(t,{allowed:r,disallowed:l}={}){let i=v4(t,"inert-others");J(()=>{var o,n;if(!i)return;let h=T1();for(let u of(o=l?.())!=null?o:[])u&&h.add(Lh(u));let v=(n=r?.())!=null?n:[];for(let u of v){if(!u)continue;let s=k0(u);if(!s)continue;let p=u.parentElement;for(;p&&p!==s.body;){for(let A of p.children)v.some(M=>A.contains(M))||h.add(Lh(A));p=p.parentElement}}return h.dispose},[i,r,l])}var Ch=E(I(),1);function x8(t,r,l){let i=l0(o=>{let n=o.getBoundingClientRect();n.x===0&&n.y===0&&n.width===0&&n.height===0&&l()});(0,Ch.useEffect)(()=>{if(!t)return;let o=r===null?null:q1(r)?r:r.current;if(!o)return;let n=T1();if(typeof ResizeObserver<"u"){let h=new ResizeObserver(()=>i.current(o));h.observe(o),n.add(()=>h.disconnect())}if(typeof IntersectionObserver<"u"){let h=new IntersectionObserver(()=>i.current(o));h.observe(o),n.add(()=>h.disconnect())}return()=>n.dispose()},[r,i,t])}var u5=E(I(),1);var h5=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(t=>`${t}:not([tabindex='-1'])`).join(","),vH=["[data-autofocus]"].map(t=>`${t}:not([tabindex='-1'])`).join(","),U0=(t=>(t[t.First=1]="First",t[t.Previous=2]="Previous",t[t.Next=4]="Next",t[t.Last=8]="Last",t[t.WrapAround=16]="WrapAround",t[t.NoScroll=32]="NoScroll",t[t.AutoFocus=64]="AutoFocus",t))(U0||{}),ya=(t=>(t[t.Error=0]="Error",t[t.Overflow=1]="Overflow",t[t.Success=2]="Success",t[t.Underflow=3]="Underflow",t))(ya||{}),gH=(t=>(t[t.Previous=-1]="Previous",t[t.Next=1]="Next",t))(gH||{});function wh(t=document.body){return t==null?[]:Array.from(t.querySelectorAll(h5)).sort((r,l)=>Math.sign((r.tabIndex||Number.MAX_SAFE_INTEGER)-(l.tabIndex||Number.MAX_SAFE_INTEGER)))}function uH(t=document.body){return t==null?[]:Array.from(t.querySelectorAll(vH)).sort((r,l)=>Math.sign((r.tabIndex||Number.MAX_SAFE_INTEGER)-(l.tabIndex||Number.MAX_SAFE_INTEGER)))}var d5=(t=>(t[t.Strict=0]="Strict",t[t.Loose=1]="Loose",t))(d5||{});function ba(t,r=0){var l;return t===((l=k0(t))==null?void 0:l.body)?!1:Z1(r,{0(){return t.matches(h5)},1(){let i=t;for(;i!==null;){if(i.matches(h5))return!0;i=i.parentElement}return!1}})}var sH=(t=>(t[t.Keyboard=0]="Keyboard",t[t.Mouse=1]="Mouse",t))(sH||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",t=>{t.metaKey||t.altKey||t.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",t=>{t.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:t.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function I2(t){t?.focus({preventScroll:!0})}var pH=["textarea","input"].join(",");function HH(t){var r,l;return(l=(r=t?.matches)==null?void 0:r.call(t,pH))!=null?l:!1}function v5(t,r=l=>l){return t.slice().sort((l,i)=>{let o=r(l),n=r(i);if(o===null||n===null)return 0;let h=o.compareDocumentPosition(n);return h&Node.DOCUMENT_POSITION_FOLLOWING?-1:h&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Bh(t,r,l=t===null?document.body:s8(t)){return z6(wh(l),r,{relativeTo:t})}function z6(t,r,{sorted:l=!0,relativeTo:i=null,skipElements:o=[]}={}){let n=Array.isArray(t)?t.length>0?s8(t[0]):document:s8(t),h=Array.isArray(t)?l?v5(t):t:r&64?uH(t):wh(t);o.length>0&&h.length>1&&(h=h.filter(H=>!o.some(Z=>Z!=null&&"current"in Z?Z?.current===H:Z===H))),i=i??n?.activeElement;let v=(()=>{if(r&5)return 1;if(r&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=(()=>{if(r&1)return 0;if(r&2)return Math.max(0,h.indexOf(i))-1;if(r&4)return Math.max(0,h.indexOf(i))+1;if(r&8)return h.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),s=r&32?{preventScroll:!0}:{},p=0,A=h.length,M;do{if(p>=A||p+A<=0)return 0;let H=u+p;if(r&16)H=(H+A)%A;else{if(H<0)return 3;if(H>=A)return 1}M=h[H],M?.focus(s),p+=v}while(M!==gl(M));return r&6&&HH(M)&&M.select(),2}function Ll(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function MH(){return/Android/gi.test(window.navigator.userAgent)}function g5(){return Ll()||MH()}var Ph=E(I(),1);function q4(t,r,l,i){let o=l0(l);(0,Ph.useEffect)(()=>{if(!t)return;function n(h){o.current(h)}return document.addEventListener(r,n,i),()=>document.removeEventListener(r,n,i)},[t,r,i])}var Sh=E(I(),1);function Ta(t,r,l,i){let o=l0(l);(0,Sh.useEffect)(()=>{if(!t)return;function n(h){o.current(h)}return window.addEventListener(r,n,i),()=>window.removeEventListener(r,n,i)},[t,r,i])}var yh=30;function L8(t,r,l){let i=l0(l),o=(0,u5.useCallback)(function(v,u){if(v.defaultPrevented)return;let s=u(v);if(s===null||!s.getRootNode().contains(s)||!s.isConnected)return;let p=(function A(M){return typeof M=="function"?A(M()):Array.isArray(M)||M instanceof Set?M:[M]})(r);for(let A of p)if(A!==null&&(A.contains(s)||v.composed&&v.composedPath().includes(A)))return;return!ba(s,d5.Loose)&&s.tabIndex!==-1&&v.preventDefault(),i.current(v,s)},[i,r]),n=(0,u5.useRef)(null);q4(t,"pointerdown",v=>{var u,s;g5()||(n.current=((s=(u=v.composedPath)==null?void 0:u.call(v))==null?void 0:s[0])||v.target)},!0),q4(t,"pointerup",v=>{if(g5()||!n.current)return;let u=n.current;return n.current=null,o(v,()=>u)},!0);let h=(0,u5.useRef)({x:0,y:0});q4(t,"touchstart",v=>{h.current.x=v.touches[0].clientX,h.current.y=v.touches[0].clientY},!0),q4(t,"touchend",v=>{let u={x:v.changedTouches[0].clientX,y:v.changedTouches[0].clientY};if(!(Math.abs(u.x-h.current.x)>=yh||Math.abs(u.y-h.current.y)>=yh))return o(v,()=>b0(v.target)?v.target:null)},!0),Ta(t,"blur",v=>o(v,()=>Ic(window.document.activeElement)?window.document.activeElement:null),!0)}var bh=E(I(),1);function o2(...t){return(0,bh.useMemo)(()=>k0(...t),[...t])}var $a=E(I(),1);var fH=(t=>(t[t.Ignore=0]="Ignore",t[t.Select=1]="Select",t[t.Close=2]="Close",t))(fH||{}),x2={Ignore:{kind:0},Select:t=>({kind:1,target:t}),Close:{kind:2}},AH=200,Th=5;function Oa(t,{trigger:r,action:l,close:i,select:o}){let n=(0,$a.useRef)(null),h=(0,$a.useRef)(null),v=(0,$a.useRef)(null);q4(t&&r!==null,"pointerdown",u=>{pl(u?.target)&&r!=null&&r.contains(u.target)&&(h.current=u.x,v.current=u.y,n.current=u.timeStamp)}),q4(t&&r!==null,"pointerup",u=>{var s,p;let A=n.current;if(A===null||(n.current=null,!b0(u.target))||Math.abs(u.x-((s=h.current)!=null?s:u.x))<Th&&Math.abs(u.y-((p=v.current)!=null?p:u.y))<Th)return;let M=l(u);switch(M.kind){case 0:return;case 1:{u.timeStamp-A>AH&&(o(M.target),i());break}case 2:{i();break}}},{capture:!0})}var Oh=E(I(),1);var $h=E(I(),1);function z8(t,r,l,i){let o=l0(l);(0,$h.useEffect)(()=>{t=t??window;function n(h){o.current(h)}return t.addEventListener(r,n,i),()=>t.removeEventListener(r,n,i)},[t,r,i])}function zl(t){let r=(0,Oh.useRef)({value:"",selectionStart:null,selectionEnd:null});return z8(t,"blur",l=>{let i=l.target;x6(i)&&(r.current={value:i.value,selectionStart:i.selectionStart,selectionEnd:i.selectionEnd})}),_(()=>{if(!I4(t)&&x6(t)&&t.isConnected){if(t.focus({preventScroll:!0}),t.value!==r.current.value)t.setSelectionRange(t.value.length,t.value.length);else{let{selectionStart:l,selectionEnd:i}=r.current;l!==null&&i!==null&&t.setSelectionRange(l,i)}r.current={value:"",selectionStart:null,selectionEnd:null}}})}var Fh=E(I(),1);function Fa(t,r){return(0,Fh.useMemo)(()=>{var l;if(t.type)return t.type;let i=(l=t.as)!=null?l:"button";if(typeof i=="string"&&i.toLowerCase()==="button"||r?.tagName==="BUTTON"&&!r.hasAttribute("type"))return"button"},[t.type,t.as,r])}var Dh=E(I(),1);function Eh(t){return(0,Dh.useSyncExternalStore)(t.subscribe,t.getSnapshot,t.getSnapshot)}function Nh(t,r){let l=t(),i=new Set;return{getSnapshot(){return l},subscribe(o){return i.add(o),()=>i.delete(o)},dispatch(o,...n){let h=r[o].call(l,...n);h&&(l=h,i.forEach(v=>v()))}}}function _h(){let t;return{before({doc:r}){var l;let i=r.documentElement,o=(l=r.defaultView)!=null?l:window;t=Math.max(0,o.innerWidth-i.clientWidth)},after({doc:r,d:l}){let i=r.documentElement,o=Math.max(0,i.clientWidth-i.offsetWidth),n=Math.max(0,t-o);l.style(i,"paddingRight",`${n}px`)}}}function Rh(){return Ll()?{before({doc:t,d:r,meta:l}){function i(o){for(let n of l().containers)for(let h of n())if(h.contains(o))return!0;return!1}r.microTask(()=>{var o;if(window.getComputedStyle(t.documentElement).scrollBehavior!=="auto"){let v=T1();v.style(t.documentElement,"scrollBehavior","auto"),r.add(()=>r.microTask(()=>v.dispose()))}let n=(o=window.scrollY)!=null?o:window.pageYOffset,h=null;r.addEventListener(t,"click",v=>{if(b0(v.target))try{let u=v.target.closest("a");if(!u)return;let{hash:s}=new URL(u.href),p=t.querySelector(s);b0(p)&&!i(p)&&(h=p)}catch{}},!0),r.group(v=>{r.addEventListener(t,"touchstart",u=>{if(v.dispose(),b0(u.target)&&Rc(u.target))if(i(u.target)){let s=u.target;for(;s.parentElement&&i(s.parentElement);)s=s.parentElement;v.style(s,"overscrollBehavior","contain")}else v.style(u.target,"touchAction","none")})}),r.addEventListener(t,"touchmove",v=>{if(b0(v.target)){if(x6(v.target))return;if(i(v.target)){let u=v.target;for(;u.parentElement&&u.dataset.headlessuiPortal!==""&&!(u.scrollHeight>u.clientHeight||u.scrollWidth>u.clientWidth);)u=u.parentElement;u.dataset.headlessuiPortal===""&&v.preventDefault()}else v.preventDefault()}},{passive:!1}),r.add(()=>{var v;let u=(v=window.scrollY)!=null?v:window.pageYOffset;n!==u&&window.scrollTo(0,n),h&&h.isConnected&&(h.scrollIntoView({block:"nearest"}),h=null)})})}}:{}}function Ih(){return{before({doc:t,d:r}){r.style(t.documentElement,"overflow","hidden")}}}function kh(t){let r={};for(let l of t)Object.assign(r,l(r));return r}var K4=Nh(()=>new Map,{PUSH(t,r){var l;let i=(l=this.get(t))!=null?l:{doc:t,count:0,d:T1(),meta:new Set,computedMeta:{}};return i.count++,i.meta.add(r),i.computedMeta=kh(i.meta),this.set(t,i),this},POP(t,r){let l=this.get(t);return l&&(l.count--,l.meta.delete(r),l.computedMeta=kh(l.meta)),this},SCROLL_PREVENT(t){let r={doc:t.doc,d:t.d,meta(){return t.computedMeta}},l=[Rh(),_h(),Ih()];l.forEach(({before:i})=>i?.(r)),l.forEach(({after:i})=>i?.(r))},SCROLL_ALLOW({d:t}){t.dispose()},TEARDOWN({doc:t}){this.delete(t)}});K4.subscribe(()=>{let t=K4.getSnapshot(),r=new Map;for(let[l]of t)r.set(l,l.documentElement.style.overflow);for(let l of t.values()){let i=r.get(l.doc)==="hidden",o=l.count!==0;(o&&!i||!o&&i)&&K4.dispatch(l.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",l),l.count===0&&K4.dispatch("TEARDOWN",l)}});function Uh(t,r,l=()=>({containers:[]})){let i=Eh(K4),o=r?i.get(r):void 0,n=o?o.count>0:!1;return J(()=>{if(!(!r||!t))return K4.dispatch("PUSH",r,l),()=>K4.dispatch("POP",r,l)},[t,r]),n}function C8(t,r,l=()=>[document.body]){let i=v4(t,"scroll-lock");Uh(i,r,o=>{var n;return{containers:[...(n=o.containers)!=null?n:[],l]}})}var Wh=E(I(),1);function Gh(t){return[t.screenX,t.screenY]}function Da(){let t=(0,Wh.useRef)([-1,-1]);return{wasMoved(r){let l=Gh(r);return t.current[0]===l[0]&&t.current[1]===l[1]?!1:(t.current=l,!0)},update(r){t.current=Gh(r)}}}var s5=E(I(),1);var Y4=E(I(),1);function jh(t=0){let[r,l]=(0,Y4.useState)(t),i=(0,Y4.useCallback)(u=>l(u),[]),o=(0,Y4.useCallback)(u=>l(s=>s|u),[]),n=(0,Y4.useCallback)(u=>(r&u)===u,[r]),h=(0,Y4.useCallback)(u=>l(s=>s&~u),[]),v=(0,Y4.useCallback)(u=>l(s=>s^u),[]);return{flags:r,setFlag:i,addFlag:o,hasFlag:n,removeFlag:h,toggleFlag:v}}var qh,Kh;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((qh=process==null?void 0:process.env)==null?void 0:qh.NODE_ENV)==="test"&&typeof((Kh=Element?.prototype)==null?void 0:Kh.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
30
- `)),[]});var VH=(t=>(t[t.None=0]="None",t[t.Closed=1]="Closed",t[t.Enter=2]="Enter",t[t.Leave=4]="Leave",t))(VH||{});function w8(t){let r={};for(let l in t)t[l]===!0&&(r[`data-${l}`]="");return r}function B8(t,r,l,i){let[o,n]=(0,s5.useState)(l),{hasFlag:h,addFlag:v,removeFlag:u}=jh(t&&o?3:0),s=(0,s5.useRef)(!1),p=(0,s5.useRef)(!1),A=j1();return J(()=>{var M;if(t){if(l&&n(!0),!r){l&&v(3);return}return(M=i?.start)==null||M.call(i,l),mH(r,{inFlight:s,prepare(){p.current?p.current=!1:p.current=s.current,s.current=!0,!p.current&&(l?(v(3),u(4)):(v(4),u(2)))},run(){p.current?l?(u(3),v(4)):(u(4),v(3)):l?u(1):v(1)},done(){var H;p.current&&LH(r)||(s.current=!1,u(7),l||n(!1),(H=i?.end)==null||H.call(i,l))}})}},[t,l,r,A]),t?[o,{closed:h(1),enter:h(2),leave:h(4),transition:h(2)||h(4)}]:[l,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function mH(t,{prepare:r,run:l,done:i,inFlight:o}){let n=T1();return xH(t,{prepare:r,inFlight:o}),n.nextFrame(()=>{l(),n.requestAnimationFrame(()=>{n.add(ZH(t,i))})}),n.dispose}function ZH(t,r){var l,i;let o=T1();if(!t)return o.dispose;let n=!1;o.add(()=>{n=!0});let h=(i=(l=t.getAnimations)==null?void 0:l.call(t).filter(v=>v instanceof CSSTransition))!=null?i:[];return h.length===0?(r(),o.dispose):(Promise.allSettled(h.map(v=>v.finished)).then(()=>{n||r()}),o.dispose)}function xH(t,{inFlight:r,prepare:l}){if(r!=null&&r.current){l();return}let i=t.style.transition;t.style.transition="none",l(),t.offsetHeight,t.style.transition=i}function LH(t){var r,l;return((l=(r=t.getAnimations)==null?void 0:r.call(t))!=null?l:[]).some(i=>i instanceof CSSTransition&&i.playState!=="finished")}var p5=E(I(),1);function Yh(t,{container:r,accept:l,walk:i}){let o=(0,p5.useRef)(l),n=(0,p5.useRef)(i);(0,p5.useEffect)(()=>{o.current=l,n.current=i},[l,i]),J(()=>{if(!r||!t)return;let h=k0(r);if(!h)return;let v=o.current,u=n.current,s=Object.assign(A=>v(A),{acceptNode:v}),p=h.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,s,!1);for(;p.nextNode();)u(p.currentNode)},[r,t,o,n])}var Ea=E(I(),1);function C6(t,r){let l=(0,Ea.useRef)([]),i=_(t);(0,Ea.useEffect)(()=>{let o=[...l.current];for(let[n,h]of r.entries())if(l.current[n]!==h){let v=i(r,o);return l.current=r,v}},[i,...r])}var t1=E(I(),1),Z5=E(I(),1);function Na(){return typeof window<"u"}function X4(t){return Qh(t)?(t.nodeName||"").toLowerCase():"#document"}function C0(t){var r;return(t==null||(r=t.ownerDocument)==null?void 0:r.defaultView)||window}function L2(t){var r;return(r=(Qh(t)?t.ownerDocument:t.document)||window.document)==null?void 0:r.documentElement}function Qh(t){return Na()?t instanceof Node||t instanceof C0(t).Node:!1}function v0(t){return Na()?t instanceof Element||t instanceof C0(t).Element:!1}function z2(t){return Na()?t instanceof HTMLElement||t instanceof C0(t).HTMLElement:!1}function Xh(t){return!Na()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof C0(t).ShadowRoot}function P8(t){let{overflow:r,overflowX:l,overflowY:i,display:o}=G0(t);return/auto|scroll|overlay|hidden|clip/.test(r+i+l)&&o!=="inline"&&o!=="contents"}function Jh(t){return/^(table|td|th)$/.test(X4(t))}function H5(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var zH=/transform|translate|scale|rotate|perspective|filter/,CH=/paint|layout|strict|content/,w6=t=>!!t&&t!=="none",Cl;function _a(t){let r=v0(t)?G0(t):t;return w6(r.transform)||w6(r.translate)||w6(r.scale)||w6(r.rotate)||w6(r.perspective)||!M5()&&(w6(r.backdropFilter)||w6(r.filter))||zH.test(r.willChange||"")||CH.test(r.contain||"")}function td(t){let r=k2(t);for(;z2(r)&&!Q4(r);){if(_a(r))return r;if(H5(r))return null;r=k2(r)}return null}function M5(){return Cl==null&&(Cl=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Cl}function Q4(t){return/^(html|body|#document)$/.test(X4(t))}function G0(t){return C0(t).getComputedStyle(t)}function f5(t){return v0(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function k2(t){if(X4(t)==="html")return t;let r=t.assignedSlot||t.parentNode||Xh(t)&&t.host||L2(t);return Xh(r)?r.host:r}function ad(t){let r=k2(t);return Q4(r)?t.ownerDocument?t.ownerDocument.body:t.body:z2(r)&&P8(r)?r:ad(r)}function g4(t,r,l){var i;r===void 0&&(r=[]),l===void 0&&(l=!0);let o=ad(t),n=o===((i=t.ownerDocument)==null?void 0:i.body),h=C0(o);if(n){let v=Ra(h);return r.concat(h,h.visualViewport||[],P8(o)?o:[],v&&l?g4(v):[])}else return r.concat(o,g4(o,[],l))}function Ra(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function rd(){let t=navigator.userAgentData;return t&&Array.isArray(t.brands)?t.brands.map(r=>{let{brand:l,version:i}=r;return l+"/"+i}).join(" "):navigator.userAgent}var U2=Math.min,t0=Math.max,B6=Math.round,S8=Math.floor,C2=t=>({x:t,y:t}),wH={left:"right",right:"left",bottom:"top",top:"bottom"};function wl(t,r,l){return t0(t,U2(r,l))}function J4(t,r){return typeof t=="function"?t(r):t}function u4(t){return t.split("-")[0]}function y8(t){return t.split("-")[1]}function Bl(t){return t==="x"?"y":"x"}function Pl(t){return t==="y"?"height":"width"}function G2(t){let r=t[0];return r==="t"||r==="b"?"y":"x"}function Sl(t){return Bl(G2(t))}function id(t,r,l){l===void 0&&(l=!1);let i=y8(t),o=Sl(t),n=Pl(o),h=o==="x"?i===(l?"end":"start")?"right":"left":i==="start"?"bottom":"top";return r.reference[n]>r.floating[n]&&(h=A5(h)),[h,A5(h)]}function od(t){let r=A5(t);return[Ia(t),r,Ia(r)]}function Ia(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}var ld=["left","right"],ed=["right","left"],BH=["top","bottom"],PH=["bottom","top"];function SH(t,r,l){switch(t){case"top":case"bottom":return l?r?ed:ld:r?ld:ed;case"left":case"right":return r?BH:PH;default:return[]}}function nd(t,r,l,i){let o=y8(t),n=SH(u4(t),l==="start",i);return o&&(n=n.map(h=>h+"-"+o),r&&(n=n.concat(n.map(Ia)))),n}function A5(t){let r=u4(t);return wH[r]+t.slice(r.length)}function yH(t){return{top:0,right:0,bottom:0,left:0,...t}}function cd(t){return typeof t!="number"?yH(t):{top:t,right:t,bottom:t,left:t}}function P6(t){let{x:r,y:l,width:i,height:o}=t;return{width:i,height:o,top:l,left:r,right:r+i,bottom:l+o,x:r,y:l}}var m5=E(O2(),1);function hd(t,r,l){let{reference:i,floating:o}=t,n=G2(r),h=Sl(r),v=Pl(h),u=u4(r),s=n==="y",p=i.x+i.width/2-o.width/2,A=i.y+i.height/2-o.height/2,M=i[v]/2-o[v]/2,H;switch(u){case"top":H={x:p,y:i.y-o.height};break;case"bottom":H={x:p,y:i.y+i.height};break;case"right":H={x:i.x+i.width,y:A};break;case"left":H={x:i.x-o.width,y:A};break;default:H={x:i.x,y:i.y}}switch(y8(r)){case"start":H[h]-=M*(l&&s?-1:1);break;case"end":H[h]+=M*(l&&s?-1:1);break}return H}async function yl(t,r){var l;r===void 0&&(r={});let{x:i,y:o,platform:n,rects:h,elements:v,strategy:u}=t,{boundary:s="clippingAncestors",rootBoundary:p="viewport",elementContext:A="floating",altBoundary:M=!1,padding:H=0}=J4(r,t),Z=cd(H),w=v[M?A==="floating"?"reference":"floating":A],m=P6(await n.getClippingRect({element:(l=await(n.isElement==null?void 0:n.isElement(w)))==null||l?w:w.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(v.floating)),boundary:s,rootBoundary:p,strategy:u})),V=A==="floating"?{x:i,y:o,width:h.floating.width,height:h.floating.height}:h.reference,x=await(n.getOffsetParent==null?void 0:n.getOffsetParent(v.floating)),z=await(n.isElement==null?void 0:n.isElement(x))?await(n.getScale==null?void 0:n.getScale(x))||{x:1,y:1}:{x:1,y:1},B=P6(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:v,rect:V,offsetParent:x,strategy:u}):V);return{top:(m.top-B.top+Z.top)/z.y,bottom:(B.bottom-m.bottom+Z.bottom)/z.y,left:(m.left-B.left+Z.left)/z.x,right:(B.right-m.right+Z.right)/z.x}}var bH=50,dd=async(t,r,l)=>{let{placement:i="bottom",strategy:o="absolute",middleware:n=[],platform:h}=l,v=h.detectOverflow?h:{...h,detectOverflow:yl},u=await(h.isRTL==null?void 0:h.isRTL(r)),s=await h.getElementRects({reference:t,floating:r,strategy:o}),{x:p,y:A}=hd(s,i,u),M=i,H=0,Z={};for(let L=0;L<n.length;L++){let w=n[L];if(!w)continue;let{name:m,fn:V}=w,{x,y:z,data:B,reset:S}=await V({x:p,y:A,initialPlacement:i,placement:M,strategy:o,middlewareData:Z,rects:s,platform:v,elements:{reference:t,floating:r}});p=x??p,A=z??A,Z[m]={...Z[m],...B},S&&H<bH&&(H++,typeof S=="object"&&(S.placement&&(M=S.placement),S.rects&&(s=S.rects===!0?await h.getElementRects({reference:t,floating:r,strategy:o}):S.rects),{x:p,y:A}=hd(s,M,u)),L=-1)}return{x:p,y:A,placement:M,strategy:o,middlewareData:Z}};var vd=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(r){var l,i;let{placement:o,middlewareData:n,rects:h,initialPlacement:v,platform:u,elements:s}=r,{mainAxis:p=!0,crossAxis:A=!0,fallbackPlacements:M,fallbackStrategy:H="bestFit",fallbackAxisSideDirection:Z="none",flipAlignment:L=!0,...w}=J4(t,r);if((l=n.arrow)!=null&&l.alignmentOffset)return{};let m=u4(o),V=G2(v),x=u4(v)===v,z=await(u.isRTL==null?void 0:u.isRTL(s.floating)),B=M||(x||!L?[A5(v)]:od(v)),S=Z!=="none";!M&&S&&B.push(...nd(v,L,Z,z));let $=[v,...B],y=await u.detectOverflow(r,w),O=[],T=((i=n.flip)==null?void 0:i.overflows)||[];if(p&&O.push(y[m]),A){let G=id(o,h,z);O.push(y[G[0]],y[G[1]])}if(T=[...T,{placement:o,overflows:O}],!O.every(G=>G<=0)){var D,k;let G=(((D=n.flip)==null?void 0:D.index)||0)+1,R=$[G];if(R&&(!(A==="alignment"?V!==G2(R):!1)||T.every(K=>G2(K.placement)===V?K.overflows[0]>0:!0)))return{data:{index:G,overflows:T},reset:{placement:R}};let Y=(k=T.filter(M1=>M1.overflows[0]<=0).sort((M1,K)=>M1.overflows[1]-K.overflows[1])[0])==null?void 0:k.placement;if(!Y)switch(H){case"bestFit":{var W;let M1=(W=T.filter(K=>{if(S){let a1=G2(K.placement);return a1===V||a1==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(a1=>a1>0).reduce((a1,d1)=>a1+d1,0)]).sort((K,a1)=>K[1]-a1[1])[0])==null?void 0:W[0];M1&&(Y=M1);break}case"initialPlacement":Y=v;break}if(o!==Y)return{reset:{placement:Y}}}return{}}}};var TH=new Set(["left","top"]);async function $H(t,r){let{placement:l,platform:i,elements:o}=t,n=await(i.isRTL==null?void 0:i.isRTL(o.floating)),h=u4(l),v=y8(l),u=G2(l)==="y",s=TH.has(h)?-1:1,p=n&&u?-1:1,A=J4(r,t),{mainAxis:M,crossAxis:H,alignmentAxis:Z}=typeof A=="number"?{mainAxis:A,crossAxis:0,alignmentAxis:null}:{mainAxis:A.mainAxis||0,crossAxis:A.crossAxis||0,alignmentAxis:A.alignmentAxis};return v&&typeof Z=="number"&&(H=v==="end"?Z*-1:Z),u?{x:H*p,y:M*s}:{x:M*s,y:H*p}}var gd=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(r){var l,i;let{x:o,y:n,placement:h,middlewareData:v}=r,u=await $H(r,t);return h===((l=v.offset)==null?void 0:l.placement)&&(i=v.arrow)!=null&&i.alignmentOffset?{}:{x:o+u.x,y:n+u.y,data:{...u,placement:h}}}}},ud=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(r){let{x:l,y:i,placement:o,platform:n}=r,{mainAxis:h=!0,crossAxis:v=!1,limiter:u={fn:m=>{let{x:V,y:x}=m;return{x:V,y:x}}},...s}=J4(t,r),p={x:l,y:i},A=await n.detectOverflow(r,s),M=G2(u4(o)),H=Bl(M),Z=p[H],L=p[M];if(h){let m=H==="y"?"top":"left",V=H==="y"?"bottom":"right",x=Z+A[m],z=Z-A[V];Z=wl(x,Z,z)}if(v){let m=M==="y"?"top":"left",V=M==="y"?"bottom":"right",x=L+A[m],z=L-A[V];L=wl(x,L,z)}let w=u.fn({...r,[H]:Z,[M]:L});return{...w,data:{x:w.x-l,y:w.y-i,enabled:{[H]:h,[M]:v}}}}}};var sd=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(r){var l,i;let{placement:o,rects:n,platform:h,elements:v}=r,{apply:u=()=>{},...s}=J4(t,r),p=await h.detectOverflow(r,s),A=u4(o),M=y8(o),H=G2(o)==="y",{width:Z,height:L}=n.floating,w,m;A==="top"||A==="bottom"?(w=A,m=M===(await(h.isRTL==null?void 0:h.isRTL(v.floating))?"start":"end")?"left":"right"):(m=A,w=M==="end"?"top":"bottom");let V=L-p.top-p.bottom,x=Z-p.left-p.right,z=U2(L-p[w],V),B=U2(Z-p[m],x),S=!r.middlewareData.shift,$=z,y=B;if((l=r.middlewareData.shift)!=null&&l.enabled.x&&(y=x),(i=r.middlewareData.shift)!=null&&i.enabled.y&&($=V),S&&!M){let T=t0(p.left,0),D=t0(p.right,0),k=t0(p.top,0),W=t0(p.bottom,0);H?y=Z-2*(T!==0||D!==0?T+D:t0(p.left,p.right)):$=L-2*(k!==0||W!==0?k+W:t0(p.top,p.bottom))}await u({...r,availableWidth:y,availableHeight:$});let O=await h.getDimensions(v.floating);return Z!==O.width||L!==O.height?{reset:{rects:!0}}:{}}}};function fd(t){let r=G0(t),l=parseFloat(r.width)||0,i=parseFloat(r.height)||0,o=z2(t),n=o?t.offsetWidth:l,h=o?t.offsetHeight:i,v=B6(l)!==n||B6(i)!==h;return v&&(l=n,i=h),{width:l,height:i,$:v}}function Tl(t){return v0(t)?t:t.contextElement}function b8(t){let r=Tl(t);if(!z2(r))return C2(1);let l=r.getBoundingClientRect(),{width:i,height:o,$:n}=fd(r),h=(n?B6(l.width):l.width)/i,v=(n?B6(l.height):l.height)/o;return(!h||!Number.isFinite(h))&&(h=1),(!v||!Number.isFinite(v))&&(v=1),{x:h,y:v}}var OH=C2(0);function Ad(t){let r=C0(t);return!M5()||!r.visualViewport?OH:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function FH(t,r,l){return r===void 0&&(r=!1),!l||r&&l!==C0(t)?!1:r}function S6(t,r,l,i){r===void 0&&(r=!1),l===void 0&&(l=!1);let o=t.getBoundingClientRect(),n=Tl(t),h=C2(1);r&&(i?v0(i)&&(h=b8(i)):h=b8(t));let v=FH(n,l,i)?Ad(n):C2(0),u=(o.left+v.x)/h.x,s=(o.top+v.y)/h.y,p=o.width/h.x,A=o.height/h.y;if(n){let M=C0(n),H=i&&v0(i)?C0(i):i,Z=M,L=Ra(Z);for(;L&&i&&H!==Z;){let w=b8(L),m=L.getBoundingClientRect(),V=G0(L),x=m.left+(L.clientLeft+parseFloat(V.paddingLeft))*w.x,z=m.top+(L.clientTop+parseFloat(V.paddingTop))*w.y;u*=w.x,s*=w.y,p*=w.x,A*=w.y,u+=x,s+=z,Z=C0(L),L=Ra(Z)}}return P6({width:p,height:A,x:u,y:s})}function ka(t,r){let l=f5(t).scrollLeft;return r?r.left+l:S6(L2(t)).left+l}function Vd(t,r){let l=t.getBoundingClientRect(),i=l.left+r.scrollLeft-ka(t,l),o=l.top+r.scrollTop;return{x:i,y:o}}function DH(t){let{elements:r,rect:l,offsetParent:i,strategy:o}=t,n=o==="fixed",h=L2(i),v=r?H5(r.floating):!1;if(i===h||v&&n)return l;let u={scrollLeft:0,scrollTop:0},s=C2(1),p=C2(0),A=z2(i);if((A||!A&&!n)&&((X4(i)!=="body"||P8(h))&&(u=f5(i)),A)){let H=S6(i);s=b8(i),p.x=H.x+i.clientLeft,p.y=H.y+i.clientTop}let M=h&&!A&&!n?Vd(h,u):C2(0);return{width:l.width*s.x,height:l.height*s.y,x:l.x*s.x-u.scrollLeft*s.x+p.x+M.x,y:l.y*s.y-u.scrollTop*s.y+p.y+M.y}}function EH(t){return Array.from(t.getClientRects())}function NH(t){let r=L2(t),l=f5(t),i=t.ownerDocument.body,o=t0(r.scrollWidth,r.clientWidth,i.scrollWidth,i.clientWidth),n=t0(r.scrollHeight,r.clientHeight,i.scrollHeight,i.clientHeight),h=-l.scrollLeft+ka(t),v=-l.scrollTop;return G0(i).direction==="rtl"&&(h+=t0(r.clientWidth,i.clientWidth)-o),{width:o,height:n,x:h,y:v}}var pd=25;function _H(t,r){let l=C0(t),i=L2(t),o=l.visualViewport,n=i.clientWidth,h=i.clientHeight,v=0,u=0;if(o){n=o.width,h=o.height;let p=M5();(!p||p&&r==="fixed")&&(v=o.offsetLeft,u=o.offsetTop)}let s=ka(i);if(s<=0){let p=i.ownerDocument,A=p.body,M=getComputedStyle(A),H=p.compatMode==="CSS1Compat"&&parseFloat(M.marginLeft)+parseFloat(M.marginRight)||0,Z=Math.abs(i.clientWidth-A.clientWidth-H);Z<=pd&&(n-=Z)}else s<=pd&&(n+=s);return{width:n,height:h,x:v,y:u}}function RH(t,r){let l=S6(t,!0,r==="fixed"),i=l.top+t.clientTop,o=l.left+t.clientLeft,n=z2(t)?b8(t):C2(1),h=t.clientWidth*n.x,v=t.clientHeight*n.y,u=o*n.x,s=i*n.y;return{width:h,height:v,x:u,y:s}}function Hd(t,r,l){let i;if(r==="viewport")i=_H(t,l);else if(r==="document")i=NH(L2(t));else if(v0(r))i=RH(r,l);else{let o=Ad(t);i={x:r.x-o.x,y:r.y-o.y,width:r.width,height:r.height}}return P6(i)}function md(t,r){let l=k2(t);return l===r||!v0(l)||Q4(l)?!1:G0(l).position==="fixed"||md(l,r)}function IH(t,r){let l=r.get(t);if(l)return l;let i=g4(t,[],!1).filter(v=>v0(v)&&X4(v)!=="body"),o=null,n=G0(t).position==="fixed",h=n?k2(t):t;for(;v0(h)&&!Q4(h);){let v=G0(h),u=_a(h);!u&&v.position==="fixed"&&(o=null),(n?!u&&!o:!u&&v.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||P8(h)&&!u&&md(t,h))?i=i.filter(p=>p!==h):o=v,h=k2(h)}return r.set(t,i),i}function kH(t){let{element:r,boundary:l,rootBoundary:i,strategy:o}=t,h=[...l==="clippingAncestors"?H5(r)?[]:IH(r,this._c):[].concat(l),i],v=Hd(r,h[0],o),u=v.top,s=v.right,p=v.bottom,A=v.left;for(let M=1;M<h.length;M++){let H=Hd(r,h[M],o);u=t0(H.top,u),s=U2(H.right,s),p=U2(H.bottom,p),A=t0(H.left,A)}return{width:s-A,height:p-u,x:A,y:u}}function UH(t){let{width:r,height:l}=fd(t);return{width:r,height:l}}function GH(t,r,l){let i=z2(r),o=L2(r),n=l==="fixed",h=S6(t,!0,n,r),v={scrollLeft:0,scrollTop:0},u=C2(0);function s(){u.x=ka(o)}if(i||!i&&!n)if((X4(r)!=="body"||P8(o))&&(v=f5(r)),i){let H=S6(r,!0,n,r);u.x=H.x+r.clientLeft,u.y=H.y+r.clientTop}else o&&s();n&&!i&&o&&s();let p=o&&!i&&!n?Vd(o,v):C2(0),A=h.left+v.scrollLeft-u.x-p.x,M=h.top+v.scrollTop-u.y-p.y;return{x:A,y:M,width:h.width,height:h.height}}function bl(t){return G0(t).position==="static"}function Md(t,r){if(!z2(t)||G0(t).position==="fixed")return null;if(r)return r(t);let l=t.offsetParent;return L2(t)===l&&(l=l.ownerDocument.body),l}function Zd(t,r){let l=C0(t);if(H5(t))return l;if(!z2(t)){let o=k2(t);for(;o&&!Q4(o);){if(v0(o)&&!bl(o))return o;o=k2(o)}return l}let i=Md(t,r);for(;i&&Jh(i)&&bl(i);)i=Md(i,r);return i&&Q4(i)&&bl(i)&&!_a(i)?l:i||td(t)||l}var WH=async function(t){let r=this.getOffsetParent||Zd,l=this.getDimensions,i=await l(t.floating);return{reference:GH(t.reference,await r(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function jH(t){return G0(t).direction==="rtl"}var $l={convertOffsetParentRelativeRectToViewportRelativeRect:DH,getDocumentElement:L2,getClippingRect:kH,getOffsetParent:Zd,getElementRects:WH,getClientRects:EH,getDimensions:UH,getScale:b8,isElement:v0,isRTL:jH};function xd(t,r){return t.x===r.x&&t.y===r.y&&t.width===r.width&&t.height===r.height}function qH(t,r){let l=null,i,o=L2(t);function n(){var v;clearTimeout(i),(v=l)==null||v.disconnect(),l=null}function h(v,u){v===void 0&&(v=!1),u===void 0&&(u=1),n();let s=t.getBoundingClientRect(),{left:p,top:A,width:M,height:H}=s;if(v||r(),!M||!H)return;let Z=S8(A),L=S8(o.clientWidth-(p+M)),w=S8(o.clientHeight-(A+H)),m=S8(p),x={rootMargin:-Z+"px "+-L+"px "+-w+"px "+-m+"px",threshold:t0(0,U2(1,u))||1},z=!0;function B(S){let $=S[0].intersectionRatio;if($!==u){if(!z)return h();$?h(!1,$):i=setTimeout(()=>{h(!1,1e-7)},1e3)}$===1&&!xd(s,t.getBoundingClientRect())&&h(),z=!1}try{l=new IntersectionObserver(B,{...x,root:o.ownerDocument})}catch{l=new IntersectionObserver(B,x)}l.observe(t)}return h(!0),n}function Ua(t,r,l,i){i===void 0&&(i={});let{ancestorScroll:o=!0,ancestorResize:n=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:v=typeof IntersectionObserver=="function",animationFrame:u=!1}=i,s=Tl(t),p=o||n?[...s?g4(s):[],...r?g4(r):[]]:[];p.forEach(m=>{o&&m.addEventListener("scroll",l,{passive:!0}),n&&m.addEventListener("resize",l)});let A=s&&v?qH(s,l):null,M=-1,H=null;h&&(H=new ResizeObserver(m=>{let[V]=m;V&&V.target===s&&H&&r&&(H.unobserve(r),cancelAnimationFrame(M),M=requestAnimationFrame(()=>{var x;(x=H)==null||x.observe(r)})),l()}),s&&!u&&H.observe(s),r&&H.observe(r));let Z,L=u?S6(t):null;u&&w();function w(){let m=S6(t);L&&!xd(L,m)&&l(),L=m,Z=requestAnimationFrame(w)}return l(),()=>{var m;p.forEach(V=>{o&&V.removeEventListener("scroll",l),n&&V.removeEventListener("resize",l)}),A?.(),(m=H)==null||m.disconnect(),H=null,u&&cancelAnimationFrame(Z)}}var T8=yl,Ld=gd;var zd=ud,Cd=vd,wd=sd;var Ga=(t,r,l)=>{let i=new Map,o={platform:$l,...l},n={...o.platform,_c:i};return dd(t,r,{...o,platform:n})};var K1=E(I(),1),Pd=E(I(),1),Sd=E(O2(),1),KH=typeof document<"u",YH=function(){},Wa=KH?Pd.useLayoutEffect:YH;function ja(t,r){if(t===r)return!0;if(typeof t!=typeof r)return!1;if(typeof t=="function"&&t.toString()===r.toString())return!0;let l,i,o;if(t&&r&&typeof t=="object"){if(Array.isArray(t)){if(l=t.length,l!==r.length)return!1;for(i=l;i--!==0;)if(!ja(t[i],r[i]))return!1;return!0}if(o=Object.keys(t),l=o.length,l!==Object.keys(r).length)return!1;for(i=l;i--!==0;)if(!{}.hasOwnProperty.call(r,o[i]))return!1;for(i=l;i--!==0;){let n=o[i];if(!(n==="_owner"&&t.$$typeof)&&!ja(t[n],r[n]))return!1}return!0}return t!==t&&r!==r}function yd(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Bd(t,r){let l=yd(t);return Math.round(r*l)/l}function Ol(t){let r=K1.useRef(t);return Wa(()=>{r.current=t}),r}function bd(t){t===void 0&&(t={});let{placement:r="bottom",strategy:l="absolute",middleware:i=[],platform:o,elements:{reference:n,floating:h}={},transform:v=!0,whileElementsMounted:u,open:s}=t,[p,A]=K1.useState({x:0,y:0,strategy:l,placement:r,middlewareData:{},isPositioned:!1}),[M,H]=K1.useState(i);ja(M,i)||H(i);let[Z,L]=K1.useState(null),[w,m]=K1.useState(null),V=K1.useCallback(K=>{K!==S.current&&(S.current=K,L(K))},[]),x=K1.useCallback(K=>{K!==$.current&&($.current=K,m(K))},[]),z=n||Z,B=h||w,S=K1.useRef(null),$=K1.useRef(null),y=K1.useRef(p),O=u!=null,T=Ol(u),D=Ol(o),k=Ol(s),W=K1.useCallback(()=>{if(!S.current||!$.current)return;let K={placement:r,strategy:l,middleware:M};D.current&&(K.platform=D.current),Ga(S.current,$.current,K).then(a1=>{let d1={...a1,isPositioned:k.current!==!1};G.current&&!ja(y.current,d1)&&(y.current=d1,Sd.flushSync(()=>{A(d1)}))})},[M,r,l,D,k]);Wa(()=>{s===!1&&y.current.isPositioned&&(y.current.isPositioned=!1,A(K=>({...K,isPositioned:!1})))},[s]);let G=K1.useRef(!1);Wa(()=>(G.current=!0,()=>{G.current=!1}),[]),Wa(()=>{if(z&&(S.current=z),B&&($.current=B),z&&B){if(T.current)return T.current(z,B,W);W()}},[z,B,W,T,O]);let R=K1.useMemo(()=>({reference:S,floating:$,setReference:V,setFloating:x}),[V,x]),Y=K1.useMemo(()=>({reference:z,floating:B}),[z,B]),M1=K1.useMemo(()=>{let K={position:l,left:0,top:0};if(!Y.floating)return K;let a1=Bd(Y.floating,p.x),d1=Bd(Y.floating,p.y);return v?{...K,transform:"translate("+a1+"px, "+d1+"px)",...yd(Y.floating)>=1.5&&{willChange:"transform"}}:{position:l,left:a1,top:d1}},[l,v,Y.floating,p.x,p.y]);return K1.useMemo(()=>({...p,update:W,refs:R,elements:Y,floatingStyles:M1}),[p,W,R,Y,M1])}var V5=(t,r)=>{let l=Ld(t);return{name:l.name,fn:l.fn,options:[t,r]}},Fl=(t,r)=>{let l=zd(t);return{name:l.name,fn:l.fn,options:[t,r]}};var Dl=(t,r)=>{let l=Cd(t);return{name:l.name,fn:l.fn,options:[t,r]}},El=(t,r)=>{let l=wd(t);return{name:l.name,fn:l.fn,options:[t,r]}};var Ed={...t1},XH=Ed.useInsertionEffect,QH=XH||(t=>t());function Nd(t){let r=t1.useRef(()=>{});return QH(()=>{r.current=t}),t1.useCallback(function(){for(var l=arguments.length,i=new Array(l),o=0;o<l;o++)i[o]=arguments[o];return r.current==null?void 0:r.current(...i)},[])}var JH="ArrowUp",tM="ArrowDown",aM="ArrowLeft",rM="ArrowRight";var _l=typeof document<"u"?Z5.useLayoutEffect:Z5.useEffect;var lM=[aM,rM],eM=[JH,tM],rz=[...lM,...eM];var Td=!1,iM=0,$d=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+iM++;function oM(){let[t,r]=t1.useState(()=>Td?$d():void 0);return _l(()=>{t==null&&r($d())},[]),t1.useEffect(()=>{Td=!0},[]),t}var nM=Ed.useId,cM=nM||oM;function hM(){let t=new Map;return{emit(r,l){var i;(i=t.get(r))==null||i.forEach(o=>o(l))},on(r,l){t.set(r,[...t.get(r)||[],l])},off(r,l){var i;t.set(r,((i=t.get(r))==null?void 0:i.filter(o=>o!==l))||[])}}}var dM=t1.createContext(null),vM=t1.createContext(null),gM=()=>{var t;return((t=t1.useContext(dM))==null?void 0:t.id)||null},uM=()=>t1.useContext(vM);var sM="data-floating-ui-focusable";function pM(t){let{open:r=!1,onOpenChange:l,elements:i}=t,o=cM(),n=t1.useRef({}),[h]=t1.useState(()=>hM()),v=gM()!=null,[u,s]=t1.useState(i.reference),p=Nd((H,Z,L)=>{n.current.openEvent=H?Z:void 0,h.emit("openchange",{open:H,event:Z,reason:L,nested:v}),l?.(H,Z,L)}),A=t1.useMemo(()=>({setPositionReference:s}),[]),M=t1.useMemo(()=>({reference:u||i.reference||null,floating:i.floating||null,domReference:i.reference}),[u,i.reference,i.floating]);return t1.useMemo(()=>({dataRef:n,open:r,onOpenChange:p,elements:M,events:h,floatingId:o,refs:A}),[r,p,M,h,o,A])}function _d(t){t===void 0&&(t={});let{nodeId:r}=t,l=pM({...t,elements:{reference:null,floating:null,...t.elements}}),i=t.rootContext||l,o=i.elements,[n,h]=t1.useState(null),[v,u]=t1.useState(null),p=o?.domReference||n,A=t1.useRef(null),M=uM();_l(()=>{p&&(A.current=p)},[p]);let H=bd({...t,elements:{...o,...v&&{reference:v}}}),Z=t1.useCallback(x=>{let z=v0(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),contextElement:x}:x;u(z),H.refs.setReference(z)},[H.refs]),L=t1.useCallback(x=>{(v0(x)||x===null)&&(A.current=x,h(x)),(v0(H.refs.reference.current)||H.refs.reference.current===null||x!==null&&!v0(x))&&H.refs.setReference(x)},[H.refs]),w=t1.useMemo(()=>({...H.refs,setReference:L,setPositionReference:Z,domReference:A}),[H.refs,L,Z]),m=t1.useMemo(()=>({...H.elements,domReference:p}),[H.elements,p]),V=t1.useMemo(()=>({...H,...i,refs:w,elements:m,nodeId:r}),[H,w,m,r,i]);return _l(()=>{i.dataRef.current.floatingContext=V;let x=M?.nodesRef.current.find(z=>z.id===r);x&&(x.context=V)}),t1.useMemo(()=>({...H,context:V,refs:w,elements:m}),[H,w,m,V])}var Od="active",Fd="selected";function Nl(t,r,l){let i=new Map,o=l==="item",n=t;if(o&&t){let{[Od]:h,[Fd]:v,...u}=t;n=u}return{...l==="floating"&&{tabIndex:-1,[sM]:""},...n,...r.map(h=>{let v=h?h[l]:null;return typeof v=="function"?t?v(t):null:v}).concat(t).reduce((h,v)=>(v&&Object.entries(v).forEach(u=>{let[s,p]=u;if(!(o&&[Od,Fd].includes(s)))if(s.indexOf("on")===0){if(i.has(s)||i.set(s,[]),typeof p=="function"){var A;(A=i.get(s))==null||A.push(p),h[s]=function(){for(var M,H=arguments.length,Z=new Array(H),L=0;L<H;L++)Z[L]=arguments[L];return(M=i.get(s))==null?void 0:M.map(w=>w(...Z)).find(w=>w!==void 0)}}}else h[s]=p}),h),{})}}function Rd(t){t===void 0&&(t=[]);let r=t.map(v=>v?.reference),l=t.map(v=>v?.floating),i=t.map(v=>v?.item),o=t1.useCallback(v=>Nl(v,t,"reference"),r),n=t1.useCallback(v=>Nl(v,t,"floating"),l),h=t1.useCallback(v=>Nl(v,t,"item"),i);return t1.useMemo(()=>({getReferenceProps:o,getFloatingProps:n,getItemProps:h}),[o,n,h])}function Dd(t,r){return{...t,rects:{...t.rects,floating:{...t.rects.floating,height:r}}}}var Id=t=>({name:"inner",options:t,async fn(r){let{listRef:l,overflowRef:i,onFallbackChange:o,offset:n=0,index:h=0,minItemsVisible:v=4,referenceOverflowThreshold:u=0,scrollRef:s,...p}=J4(t,r),{rects:A,elements:{floating:M}}=r,H=l.current[h],Z=s?.current||M,L=M.clientTop||Z.clientTop,w=M.clientTop!==0,m=Z.clientTop!==0,V=M===Z;if(!H)return{};let x={...r,...await V5(-H.offsetTop-M.clientTop-A.reference.height/2-H.offsetHeight/2-n).fn(r)},z=await T8(Dd(x,Z.scrollHeight+L+M.clientTop),p),B=await T8(x,{...p,elementContext:"reference"}),S=t0(0,z.top),$=x.y+S,T=(Z.scrollHeight>Z.clientHeight?D=>D:B6)(t0(0,Z.scrollHeight+(w&&V||m?L*2:0)-S-t0(0,z.bottom)));if(Z.style.maxHeight=T+"px",Z.scrollTop=S,o){let D=Z.offsetHeight<H.offsetHeight*U2(v,l.current.length)-1||B.top>=-u||B.bottom>=-u;m5.flushSync(()=>o(D))}return i&&(i.current=await T8(Dd({...x,y:$},Z.offsetHeight+L+M.clientTop),p)),{y:$}}});function kd(t,r){let{open:l,elements:i}=t,{enabled:o=!0,overflowRef:n,scrollRef:h,onChange:v}=r,u=Nd(v),s=t1.useRef(!1),p=t1.useRef(null),A=t1.useRef(null);t1.useEffect(()=>{if(!o)return;function H(L){if(L.ctrlKey||!Z||n.current==null)return;let w=L.deltaY,m=n.current.top>=-.5,V=n.current.bottom>=-.5,x=Z.scrollHeight-Z.clientHeight,z=w<0?-1:1,B=w<0?"max":"min";Z.scrollHeight<=Z.clientHeight||(!m&&w>0||!V&&w<0?(L.preventDefault(),m5.flushSync(()=>{u(S=>S+Math[B](w,x*z))})):/firefox/i.test(rd())&&(Z.scrollTop+=w))}let Z=h?.current||i.floating;if(l&&Z)return Z.addEventListener("wheel",H),requestAnimationFrame(()=>{p.current=Z.scrollTop,n.current!=null&&(A.current={...n.current})}),()=>{p.current=null,A.current=null,Z.removeEventListener("wheel",H)}},[o,l,i.floating,n,h,u]);let M=t1.useMemo(()=>({onKeyDown(){s.current=!0},onWheel(){s.current=!1},onPointerMove(){s.current=!1},onScroll(){let H=h?.current||i.floating;if(!(!n.current||!H||!s.current)){if(p.current!==null){let Z=H.scrollTop-p.current;(n.current.bottom<-.5&&Z<-1||n.current.top<-.5&&Z>1)&&m5.flushSync(()=>u(L=>L+Z))}requestAnimationFrame(()=>{p.current=H.scrollTop})}}}),[i.floating,u,n,h]);return t1.useMemo(()=>o?{floating:M}:{},[o,M])}var Il=E(I(),1),F1=E(I(),1);var $8=(0,F1.createContext)({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});$8.displayName="FloatingContext";var kl=(0,F1.createContext)(null);kl.displayName="PlacementContext";function qa(t){return(0,F1.useMemo)(()=>t?typeof t=="string"?{to:t}:t:null,[t])}function Ka(){return(0,F1.useContext)($8).setReference}function Wd(){return(0,F1.useContext)($8).getReferenceProps}function Ya(){let{getFloatingProps:t,slot:r}=(0,F1.useContext)($8);return(0,F1.useCallback)((...l)=>Object.assign({},t(...l),{"data-anchor":r.anchor}),[t,r])}function Xa(t=null){t===!1&&(t=null),typeof t=="string"&&(t={to:t});let r=(0,F1.useContext)(kl),l=(0,F1.useMemo)(()=>t,[JSON.stringify(t,(o,n)=>{var h;return(h=n?.outerHTML)!=null?h:n})]);J(()=>{r?.(l??null)},[r,l]);let i=(0,F1.useContext)($8);return(0,F1.useMemo)(()=>[i.setFloating,t?i.styles:{}],[i.setFloating,t,i.styles])}var Ud=4;function Qa({children:t,enabled:r=!0}){let[l,i]=(0,F1.useState)(null),[o,n]=(0,F1.useState)(0),h=(0,F1.useRef)(null),[v,u]=(0,F1.useState)(null);HM(v);let s=r&&l!==null&&v!==null,{to:p="bottom",gap:A=0,offset:M=0,padding:H=0,inner:Z}=MM(l,v),[L,w="center"]=p.split(" ");J(()=>{s&&n(0)},[s]);let{refs:m,floatingStyles:V,context:x}=_d({open:s,placement:L==="selection"?w==="center"?"bottom":`bottom-${w}`:w==="center"?`${L}`:`${L}-${w}`,strategy:"absolute",transform:!1,middleware:[V5({mainAxis:L==="selection"?0:A,crossAxis:M}),Fl({padding:H}),L!=="selection"&&Dl({padding:H}),L==="selection"&&Z?Id({...Z,padding:H,overflowRef:h,offset:o,minItemsVisible:Ud,referenceOverflowThreshold:H,onFallbackChange(D){var k,W;if(!D)return;let G=x.elements.floating;if(!G)return;let R=parseFloat(getComputedStyle(G).scrollPaddingBottom)||0,Y=Math.min(Ud,G.childElementCount),M1=0,K=0;for(let a1 of(W=(k=x.elements.floating)==null?void 0:k.childNodes)!=null?W:[])if(q1(a1)){let d1=a1.offsetTop,z1=d1+a1.clientHeight+R,P=G.scrollTop,F=P+G.clientHeight;if(d1>=P&&z1<=F)Y--;else{K=Math.max(0,Math.min(z1,F)-Math.max(d1,P)),M1=a1.clientHeight;break}}Y>=1&&n(a1=>{let d1=M1*Y-K+R;return a1>=d1?a1:d1})}}):null,El({padding:H,apply({availableWidth:D,availableHeight:k,elements:W}){Object.assign(W.floating.style,{overflow:"auto",maxWidth:`${D}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${k}px)`})}})].filter(Boolean),whileElementsMounted:Ua}),[z=L,B=w]=x.placement.split("-");L==="selection"&&(z="selection");let S=(0,F1.useMemo)(()=>({anchor:[z,B].filter(Boolean).join(" ")}),[z,B]),$=kd(x,{overflowRef:h,onChange:n}),{getReferenceProps:y,getFloatingProps:O}=Rd([$]),T=_(D=>{u(D),m.setFloating(D)});return Il.createElement(kl.Provider,{value:i},Il.createElement($8.Provider,{value:{setFloating:T,setReference:m.setReference,styles:V,getReferenceProps:y,getFloatingProps:O,slot:S}},t))}function HM(t){J(()=>{if(!t)return;let r=new MutationObserver(()=>{let l=window.getComputedStyle(t).maxHeight,i=parseFloat(l);if(isNaN(i))return;let o=parseInt(l);isNaN(o)||i!==o&&(t.style.maxHeight=`${Math.ceil(i)}px`)});return r.observe(t,{attributes:!0,attributeFilter:["style"]}),()=>{r.disconnect()}},[t])}function MM(t,r){var l,i,o;let n=Rl((l=t?.gap)!=null?l:"var(--anchor-gap, 0)",r),h=Rl((i=t?.offset)!=null?i:"var(--anchor-offset, 0)",r),v=Rl((o=t?.padding)!=null?o:"var(--anchor-padding, 0)",r);return{...t,gap:n,offset:h,padding:v}}function Rl(t,r,l=void 0){let i=j1(),o=_((u,s)=>{if(u==null)return[l,null];if(typeof u=="number")return[u,null];if(typeof u=="string"){if(!s)return[l,null];let p=Gd(u,s);return[p,A=>{let M=jd(u);{let H=M.map(Z=>window.getComputedStyle(s).getPropertyValue(Z));i.requestAnimationFrame(function Z(){i.nextFrame(Z);let L=!1;for(let[m,V]of M.entries()){let x=window.getComputedStyle(s).getPropertyValue(V);if(H[m]!==x){H[m]=x,L=!0;break}}if(!L)return;let w=Gd(u,s);p!==w&&(A(w),p=w)})}return i.dispose}]}return[l,null]}),n=(0,F1.useMemo)(()=>o(t,r)[0],[t,r]),[h=n,v]=(0,F1.useState)();return J(()=>{let[u,s]=o(t,r);if(v(u),!!s)return s(v)},[t,r]),h}function jd(t){let r=/var\((.*)\)/.exec(t);if(r){let l=r[1].indexOf(",");if(l===-1)return[r[1]];let i=r[1].slice(0,l).trim(),o=r[1].slice(l+1).trim();return o?[i,...jd(o)]:[i]}return[]}function Gd(t,r){let l=document.createElement("div");r.appendChild(l),l.style.setProperty("margin-top","0px","important"),l.style.setProperty("margin-top",t,"important");let i=parseFloat(window.getComputedStyle(l).marginTop)||0;return r.removeChild(l),i}var W2=E(I(),1);function fM({children:t,freeze:r},l){let i=O8(r,t);return(0,W2.isValidElement)(i)?(0,W2.cloneElement)(i,{ref:l}):W2.default.createElement(W2.default.Fragment,null,i)}var qd=W2.default.forwardRef(fM);function O8(t,r){let[l,i]=(0,W2.useState)(r);return!t&&l!==r&&i(r),t?l:r}var y6=E(I(),1),Ja=(0,y6.createContext)(null);Ja.displayName="OpenClosedContext";var _1=(t=>(t[t.Open=1]="Open",t[t.Closed=2]="Closed",t[t.Closing=4]="Closing",t[t.Opening=8]="Opening",t))(_1||{});function j2(){return(0,y6.useContext)(Ja)}function F8({value:t,children:r}){return y6.default.createElement(Ja.Provider,{value:t},r)}function Kd({children:t}){return y6.default.createElement(Ja.Provider,{value:null},t)}function Yd(t){function r(){document.readyState!=="loading"&&(t(),document.removeEventListener("DOMContentLoaded",r))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",r),r())}var n2=[];Yd(()=>{function t(r){if(!b0(r.target)||r.target===document.body||n2[0]===r.target)return;let l=r.target;l=l.closest(h5),n2.unshift(l??r.target),n2=n2.filter(i=>i!=null&&i.isConnected),n2.splice(10)}window.addEventListener("click",t,{capture:!0}),window.addEventListener("mousedown",t,{capture:!0}),window.addEventListener("focus",t,{capture:!0}),document.body.addEventListener("click",t,{capture:!0}),document.body.addEventListener("mousedown",t,{capture:!0}),document.body.addEventListener("focus",t,{capture:!0})});function AM(t){throw new Error("Unexpected object: "+t)}var e1=(t=>(t[t.First=0]="First",t[t.Previous=1]="Previous",t[t.Next=2]="Next",t[t.Last=3]="Last",t[t.Specific=4]="Specific",t[t.Nothing=5]="Nothing",t))(e1||{});function t6(t,r){let l=r.resolveItems();if(l.length<=0)return null;let i=r.resolveActiveIndex(),o=i??-1;switch(t.focus){case 0:{for(let n=0;n<l.length;++n)if(!r.resolveDisabled(l[n],n,l))return n;return i}case 1:{o===-1&&(o=l.length);for(let n=o-1;n>=0;--n)if(!r.resolveDisabled(l[n],n,l))return n;return i}case 2:{for(let n=o+1;n<l.length;++n)if(!r.resolveDisabled(l[n],n,l))return n;return i}case 3:{for(let n=l.length-1;n>=0;--n)if(!r.resolveDisabled(l[n],n,l))return n;return i}case 4:{for(let n=0;n<l.length;++n)if(r.resolveId(l[n],n,l)===t.id)return n;return i}case 5:return null;default:AM(t)}}var S1=E(I(),1),Jd=E(O2(),1);var t7=E(I(),1);function a6(t){let r=_(t),l=(0,t7.useRef)(!1);(0,t7.useEffect)(()=>(l.current=!1,()=>{l.current=!0,Z6(()=>{l.current&&r()})}),[r])}var b6=E(I(),1);function VM(){let t=typeof document>"u";return"useSyncExternalStore"in b6?(r=>r.useSyncExternalStore)(b6)(()=>()=>{},()=>!1,()=>!t):!1}function s4(){let t=VM(),[r,l]=b6.useState(z0.isHandoffComplete);return r&&z0.isHandoffComplete===!1&&l(!1),b6.useEffect(()=>{r!==!0&&l(!0)},[r]),b6.useEffect(()=>z0.handoff(),[]),t?!1:r}var D8=E(I(),1),Xd=(0,D8.createContext)(!1);function Qd(){return(0,D8.useContext)(Xd)}function Ul(t){return D8.default.createElement(Xd.Provider,{value:t.force},t.children)}function mM(t){let r=Qd(),l=(0,S1.useContext)(av),[i,o]=(0,S1.useState)(()=>{var n;if(!r&&l!==null)return(n=l.current)!=null?n:null;if(z0.isServer)return null;let h=t?.getElementById("headlessui-portal-root");if(h)return h;if(t===null)return null;let v=t.createElement("div");return v.setAttribute("id","headlessui-portal-root"),t.body.appendChild(v)});return(0,S1.useEffect)(()=>{i!==null&&(t!=null&&t.body.contains(i)||t==null||t.body.appendChild(i))},[i,t]),(0,S1.useEffect)(()=>{r||l!==null&&o(l.current)},[l,o,r]),i}var tv=S1.Fragment,ZM=v1(function(t,r){let{ownerDocument:l=null,...i}=t,o=(0,S1.useRef)(null),n=L1(Wc(H=>{o.current=H}),r),h=o2(o.current),v=l??h,u=mM(v),s=(0,S1.useContext)(Gl),p=j1(),A=s4(),M=f1();return a6(()=>{var H;u&&u.childNodes.length<=0&&((H=u.parentElement)==null||H.removeChild(u))}),!u||!A?null:(0,Jd.createPortal)(S1.default.createElement("div",{"data-headlessui-portal":"",ref:H=>{p.dispose(),s&&H&&p.add(s.register(H))}},M({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:tv,name:"Portal"})),u)});function xM(t,r){let l=L1(r),{enabled:i=!0,ownerDocument:o,...n}=t,h=f1();return i?S1.default.createElement(ZM,{...n,ownerDocument:o,ref:l}):h({ourProps:{ref:l},theirProps:n,slot:{},defaultTag:tv,name:"Portal"})}var LM=S1.Fragment,av=(0,S1.createContext)(null);function zM(t,r){let{target:l,...i}=t,o={ref:L1(r)},n=f1();return S1.default.createElement(av.Provider,{value:l},n({ourProps:o,theirProps:i,defaultTag:LM,name:"Popover.Group"}))}var Gl=(0,S1.createContext)(null);function rv(){let t=(0,S1.useContext)(Gl),r=(0,S1.useRef)([]),l=_(n=>(r.current.push(n),t&&t.register(n),()=>i(n))),i=_(n=>{let h=r.current.indexOf(n);h!==-1&&r.current.splice(h,1),t&&t.unregister(n)}),o=(0,S1.useMemo)(()=>({register:l,unregister:i,portals:r}),[l,i,r]);return[r,(0,S1.useMemo)(()=>function({children:n}){return S1.default.createElement(Gl.Provider,{value:o},n)},[o])]}var CM=v1(xM),Wl=v1(zM),E8=Object.assign(CM,{Group:Wl});var w2={Idle:{kind:"Idle"},Tracked:t=>({kind:"Tracked",position:t}),Moved:{kind:"Moved"}};function x5(t){let r=t.getBoundingClientRect();return`${r.x},${r.y}`}function a7(t,r,l){let i=T1();if(r.kind==="Tracked"){let n=function(){h!==x5(t)&&(i.dispose(),l())};var o=n;let{position:h}=r,v=new ResizeObserver(n);v.observe(t),i.add(()=>v.disconnect()),i.addEventListener(window,"scroll",n,{passive:!0}),i.addEventListener(window,"resize",n)}return()=>i.dispose()}var wM=Object.defineProperty,BM=(t,r,l)=>r in t?wM(t,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):t[r]=l,lv=(t,r,l)=>(BM(t,typeof r!="symbol"?r+"":r,l),l),g1=(t=>(t[t.Open=0]="Open",t[t.Closed=1]="Closed",t))(g1||{}),$0=(t=>(t[t.Single=0]="Single",t[t.Multi=1]="Multi",t))($0||{}),B2=(t=>(t[t.Pointer=0]="Pointer",t[t.Focus=1]="Focus",t[t.Other=2]="Other",t))(B2||{}),ql=(t=>(t[t.OpenCombobox=0]="OpenCombobox",t[t.CloseCombobox=1]="CloseCombobox",t[t.GoToOption=2]="GoToOption",t[t.SetTyping=3]="SetTyping",t[t.RegisterOption=4]="RegisterOption",t[t.UnregisterOption=5]="UnregisterOption",t[t.DefaultToFirstOption=6]="DefaultToFirstOption",t[t.SetActivationTrigger=7]="SetActivationTrigger",t[t.UpdateVirtualConfiguration=8]="UpdateVirtualConfiguration",t[t.SetInputElement=9]="SetInputElement",t[t.SetButtonElement=10]="SetButtonElement",t[t.SetOptionsElement=11]="SetOptionsElement",t[t.MarkInputAsMoved=12]="MarkInputAsMoved",t))(ql||{});function jl(t,r=l=>l){let l=t.activeOptionIndex!==null?t.options[t.activeOptionIndex]:null,i=r(t.options.slice()),o=i.length>0&&i[0].dataRef.current.order!==null?i.sort((h,v)=>h.dataRef.current.order-v.dataRef.current.order):v5(i,h=>h.dataRef.current.domRef.current),n=l?o.indexOf(l):null;return n===-1&&(n=null),{options:o,activeOptionIndex:n}}var PM={1(t){var r;if((r=t.dataRef.current)!=null&&r.disabled||t.comboboxState===1)return t;let l=t.inputElement?w2.Tracked(x5(t.inputElement)):t.inputPositionState;return{...t,activeOptionIndex:null,comboboxState:1,isTyping:!1,activationTrigger:2,inputPositionState:l,__demoMode:!1}},0(t){var r,l;if((r=t.dataRef.current)!=null&&r.disabled||t.comboboxState===0)return t;if((l=t.dataRef.current)!=null&&l.value){let i=t.dataRef.current.calculateIndex(t.dataRef.current.value);if(i!==-1)return{...t,activeOptionIndex:i,comboboxState:0,__demoMode:!1,inputPositionState:w2.Idle}}return{...t,comboboxState:0,inputPositionState:w2.Idle,__demoMode:!1}},3(t,r){return t.isTyping===r.isTyping?t:{...t,isTyping:r.isTyping}},2(t,r){var l,i,o,n;if((l=t.dataRef.current)!=null&&l.disabled||t.optionsElement&&!((i=t.dataRef.current)!=null&&i.optionsPropsRef.current.static)&&t.comboboxState===1)return t;if(t.virtual){let{options:s,disabled:p}=t.virtual,A=r.focus===e1.Specific?r.idx:t6(r,{resolveItems:()=>s,resolveActiveIndex:()=>{var H,Z;return(Z=(H=t.activeOptionIndex)!=null?H:s.findIndex(L=>!p(L)))!=null?Z:null},resolveDisabled:p,resolveId(){throw new Error("Function not implemented.")}}),M=(o=r.trigger)!=null?o:2;return t.activeOptionIndex===A&&t.activationTrigger===M?t:{...t,activeOptionIndex:A,activationTrigger:M,isTyping:!1,__demoMode:!1}}let h=jl(t);if(h.activeOptionIndex===null){let s=h.options.findIndex(p=>!p.dataRef.current.disabled);s!==-1&&(h.activeOptionIndex=s)}let v=r.focus===e1.Specific?r.idx:t6(r,{resolveItems:()=>h.options,resolveActiveIndex:()=>h.activeOptionIndex,resolveId:s=>s.id,resolveDisabled:s=>s.dataRef.current.disabled}),u=(n=r.trigger)!=null?n:2;return t.activeOptionIndex===v&&t.activationTrigger===u?t:{...t,...h,isTyping:!1,activeOptionIndex:v,activationTrigger:u,__demoMode:!1}},4:(t,r)=>{var l,i,o,n;if((l=t.dataRef.current)!=null&&l.virtual)return{...t,options:[...t.options,r.payload]};let h=r.payload,v=jl(t,s=>(s.push(h),s));t.activeOptionIndex===null&&(o=(i=t.dataRef.current).isSelected)!=null&&o.call(i,r.payload.dataRef.current.value)&&(v.activeOptionIndex=v.options.indexOf(h));let u={...t,...v,activationTrigger:2};return(n=t.dataRef.current)!=null&&n.__demoMode&&t.dataRef.current.value===void 0&&(u.activeOptionIndex=0),u},5:(t,r)=>{var l;if((l=t.dataRef.current)!=null&&l.virtual)return{...t,options:t.options.filter(o=>o.id!==r.id)};let i=jl(t,o=>{let n=o.findIndex(h=>h.id===r.id);return n!==-1&&o.splice(n,1),o});return{...t,...i,activationTrigger:2}},6:(t,r)=>t.defaultToFirstOption===r.value?t:{...t,defaultToFirstOption:r.value},7:(t,r)=>t.activationTrigger===r.trigger?t:{...t,activationTrigger:r.trigger},8:(t,r)=>{var l,i;if(t.virtual===null)return{...t,virtual:{options:r.options,disabled:(l=r.disabled)!=null?l:()=>!1}};if(t.virtual.options===r.options&&t.virtual.disabled===r.disabled)return t;let o=t.activeOptionIndex;if(t.activeOptionIndex!==null){let n=r.options.indexOf(t.virtual.options[t.activeOptionIndex]);n!==-1?o=n:o=null}return{...t,activeOptionIndex:o,virtual:{options:r.options,disabled:(i=r.disabled)!=null?i:()=>!1}}},9:(t,r)=>t.inputElement===r.element?t:{...t,inputElement:r.element},10:(t,r)=>t.buttonElement===r.element?t:{...t,buttonElement:r.element},11:(t,r)=>t.optionsElement===r.element?t:{...t,optionsElement:r.element},12(t){return t.inputPositionState.kind!=="Tracked"?t:{...t,inputPositionState:w2.Moved}}},r7=class t extends j4{constructor(r){super(r),lv(this,"actions",{onChange:l=>{let{onChange:i,compare:o,mode:n,value:h}=this.state.dataRef.current;return Z1(n,{0:()=>i?.(l),1:()=>{let v=h.slice(),u=v.findIndex(s=>o(s,l));return u===-1?v.push(l):v.splice(u,1),i?.(v)}})},registerOption:(l,i)=>(this.send({type:4,payload:{id:l,dataRef:i}}),()=>{this.state.activeOptionIndex===this.state.dataRef.current.calculateIndex(i.current.value)&&this.send({type:6,value:!0}),this.send({type:5,id:l})}),goToOption:(l,i)=>(this.send({type:6,value:!1}),this.send({type:2,...l,trigger:i})),setIsTyping:l=>{this.send({type:3,isTyping:l})},closeCombobox:()=>{var l,i;this.send({type:1}),this.send({type:6,value:!1}),(i=(l=this.state.dataRef.current).onClose)==null||i.call(l)},openCombobox:()=>{this.send({type:0}),this.send({type:6,value:!0})},setActivationTrigger:l=>{this.send({type:7,trigger:l})},selectActiveOption:()=>{let l=this.selectors.activeOptionIndex(this.state);if(l!==null){if(this.actions.setIsTyping(!1),this.state.virtual)this.actions.onChange(this.state.virtual.options[l]);else{let{dataRef:i}=this.state.options[l];this.actions.onChange(i.current.value)}this.actions.goToOption({focus:e1.Specific,idx:l})}},setInputElement:l=>{this.send({type:9,element:l})},setButtonElement:l=>{this.send({type:10,element:l})},setOptionsElement:l=>{this.send({type:11,element:l})}}),lv(this,"selectors",{activeDescendantId:l=>{var i,o;let n=this.selectors.activeOptionIndex(l);if(n!==null)return l.virtual?(o=l.options.find(h=>!h.dataRef.current.disabled&&l.dataRef.current.compare(h.dataRef.current.value,l.virtual.options[n])))==null?void 0:o.id:(i=l.options[n])==null?void 0:i.id},activeOptionIndex:l=>{if(l.defaultToFirstOption&&l.activeOptionIndex===null&&(l.virtual?l.virtual.options.length>0:l.options.length>0)){if(l.virtual){let{options:o,disabled:n}=l.virtual,h=o.findIndex(v=>{var u;return!((u=n?.(v))!=null&&u)});if(h!==-1)return h}let i=l.options.findIndex(o=>!o.dataRef.current.disabled);if(i!==-1)return i}return l.activeOptionIndex},activeOption:l=>{var i,o;let n=this.selectors.activeOptionIndex(l);return n===null?null:l.virtual?l.virtual.options[n??0]:(o=(i=l.options[n])==null?void 0:i.dataRef.current.value)!=null?o:null},isActive:(l,i,o)=>{var n;let h=this.selectors.activeOptionIndex(l);return h===null?!1:l.virtual?h===l.dataRef.current.calculateIndex(i):((n=l.options[h])==null?void 0:n.id)===o},shouldScrollIntoView:(l,i,o)=>!(l.virtual||l.__demoMode||l.comboboxState!==0||l.activationTrigger===0||!this.selectors.isActive(l,i,o)),didInputMove(l){return l.inputPositionState.kind==="Moved"}});{let l=this.state.id,i=i2.get(null);this.disposables.add(i.on(o5.Push,o=>{!i.selectors.isTop(o,l)&&this.state.comboboxState===0&&this.actions.closeCombobox()})),this.on(0,()=>i.actions.push(l)),this.on(1,()=>i.actions.pop(l))}this.disposables.group(l=>{this.on(1,i=>{i.inputElement&&(l.dispose(),l.add(a7(i.inputElement,i.inputPositionState,()=>{this.send({type:12})})))})})}static new({id:r,virtual:l=null,__demoMode:i=!1}){var o;return new t({id:r,dataRef:{current:{}},comboboxState:i?0:1,isTyping:!1,options:[],virtual:l?{options:l.options,disabled:(o=l.disabled)!=null?o:()=>!1}:null,activeOptionIndex:null,activationTrigger:2,inputElement:null,buttonElement:null,optionsElement:null,__demoMode:i,inputPositionState:w2.Idle})}reduce(r,l){return Z1(l.type,PM,r,l)}};var N8=E(I(),1);var Kl=(0,N8.createContext)(null);function _8(t){let r=(0,N8.useContext)(Kl);if(r===null){let l=new Error(`<${t} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(l,Yl),l}return r}function Yl({id:t,virtual:r=null,__demoMode:l=!1}){let i=(0,N8.useMemo)(()=>r7.new({id:t,virtual:r,__demoMode:l}),[]);return a6(()=>i.dispose()),i}var L5=(0,Q.createContext)(null);L5.displayName="ComboboxDataContext";function R8(t){let r=(0,Q.useContext)(L5);if(r===null){let l=new Error(`<${t} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(l,R8),l}return r}var ev=(0,Q.createContext)(null);function SM(t){let r=_8("VirtualProvider"),l=R8("VirtualProvider"),{options:i}=l.virtual,o=A1(r,H=>H.optionsElement),[n,h]=(0,Q.useMemo)(()=>{let H=o;if(!H)return[0,0];let Z=window.getComputedStyle(H);return[parseFloat(Z.paddingBlockStart||Z.paddingTop),parseFloat(Z.paddingBlockEnd||Z.paddingBottom)]},[o]),v=dh({enabled:i.length!==0,scrollPaddingStart:n,scrollPaddingEnd:h,count:i.length,estimateSize(){return 40},getScrollElement(){return r.state.optionsElement},overscan:12}),[u,s]=(0,Q.useState)(0);J(()=>{s(H=>H+1)},[i]);let p=v.getVirtualItems(),A=A1(r,H=>H.activationTrigger===B2.Pointer),M=A1(r,r.selectors.activeOptionIndex);return p.length===0?null:Q.default.createElement(ev.Provider,{value:v},Q.default.createElement("div",{style:{position:"relative",width:"100%",height:`${v.getTotalSize()}px`},ref:H=>{H&&(A||M!==null&&i.length>M&&v.scrollToIndex(M))}},p.map(H=>{var Z;return Q.default.createElement(Q.Fragment,{key:H.key},Q.default.cloneElement((Z=t.children)==null?void 0:Z.call(t,{...t.slot,option:i[H.index]}),{key:`${u}-${H.key}`,"data-index":H.index,"aria-setsize":i.length,"aria-posinset":H.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${H.start}px)`,overflowAnchor:"none"}}))})))}var yM=Q.Fragment;function bM(t,r){let l=(0,O1.useId)(),i=t2(),{value:o,defaultValue:n,onChange:h,form:v,name:u,by:s,invalid:p=!1,disabled:A=i||!1,onClose:M,__demoMode:H=!1,multiple:Z=!1,immediate:L=!1,virtual:w=null,nullable:m,...V}=t,x=A8(n),[z=Z?[]:void 0,B]=f8(o,h,x),S=Yl({id:l,virtual:w,__demoMode:H}),$=(0,Q.useRef)({static:!1,hold:!1}),y=wa(s),O=_(n1=>w?s===null?w.options.indexOf(n1):w.options.findIndex(Y1=>y(Y1,n1)):S.state.options.findIndex(Y1=>y(Y1.dataRef.current.value,n1))),T=(0,Q.useCallback)(n1=>Z1(W.mode,{[$0.Multi]:()=>z.some(Y1=>y(Y1,n1)),[$0.Single]:()=>y(z,n1)}),[z]),D=A1(S,n1=>n1.virtual),k=_(()=>M?.()),W=(0,Q.useMemo)(()=>({__demoMode:H,immediate:L,optionsPropsRef:$,value:z,defaultValue:x,disabled:A,invalid:p,mode:Z?$0.Multi:$0.Single,virtual:w?D:null,onChange:B,isSelected:T,calculateIndex:O,compare:y,onClose:k}),[H,L,$,z,x,A,p,Z,w,D,B,T,O,y,k]);J(()=>{var n1;w&&S.send({type:ql.UpdateVirtualConfiguration,options:w.options,disabled:(n1=w.disabled)!=null?n1:null})},[w,w?.options,w?.disabled]),J(()=>{S.state.dataRef.current=W},[W]);let[G,R,Y,M1]=A1(S,n1=>[n1.comboboxState,n1.buttonElement,n1.inputElement,n1.optionsElement]),K=i2.get(null),a1=A1(K,(0,Q.useCallback)(n1=>K.selectors.isTop(n1,l),[K,l]));L8(a1,[R,Y,M1],()=>S.actions.closeCombobox());let d1=A1(S,S.selectors.activeOptionIndex),z1=A1(S,S.selectors.activeOption),P=P1({open:G===g1.Open,disabled:A,invalid:p,activeIndex:d1,activeOption:z1,value:z}),[F,q]=La(),X=r===null?{}:{ref:r},U=(0,Q.useCallback)(()=>{if(x!==void 0)return B?.(x)},[B,x]),V1=f1();return Q.default.createElement(q,{value:F,props:{htmlFor:Y?.id},slot:{open:G===g1.Open,disabled:A}},Q.default.createElement(Qa,null,Q.default.createElement(L5.Provider,{value:W},Q.default.createElement(Kl.Provider,{value:S},Q.default.createElement(F8,{value:Z1(G,{[g1.Open]:_1.Open,[g1.Closed]:_1.Closed})},u!=null&&Q.default.createElement(V8,{disabled:A,data:z!=null?{[u]:z}:{},form:v,onReset:U}),V1({ourProps:X,theirProps:V,slot:P,defaultTag:yM,name:"Combobox"}))))))}var TM="input";function $M(t,r){var l,i;let o=_8("Combobox.Input"),n=R8("Combobox.Input"),h=(0,O1.useId)(),v=_2(),{id:u=v||`headlessui-combobox-input-${h}`,onChange:s,displayValue:p,disabled:A=n.disabled||!1,autoFocus:M=!1,type:H="text",...Z}=t,L=(0,Q.useRef)(null),w=L1(L,r,Ka(),o.actions.setInputElement),[m,V]=A1(o,P=>[P.comboboxState,P.isTyping]),x=j1(),z=_(()=>{o.actions.onChange(null),o.state.optionsElement&&(o.state.optionsElement.scrollTop=0),o.actions.goToOption({focus:e1.Nothing})}),B=(0,Q.useMemo)(()=>{var P;return typeof p=="function"&&n.value!==void 0?(P=p(n.value))!=null?P:"":typeof n.value=="string"?n.value:""},[n.value,p]);C6(([P,F],[q,X])=>{if(o.state.isTyping)return;let U=L.current;U&&((X===g1.Open&&F===g1.Closed||P!==q)&&(U.value=P),requestAnimationFrame(()=>{if(o.state.isTyping||!U||I4(U))return;let{selectionStart:V1,selectionEnd:n1}=U;Math.abs((n1??0)-(V1??0))===0&&V1===0&&U.setSelectionRange(U.value.length,U.value.length)}))},[B,m,V]),C6(([P],[F])=>{if(P===g1.Open&&F===g1.Closed){if(o.state.isTyping)return;let q=L.current;if(!q)return;let X=q.value,{selectionStart:U,selectionEnd:V1,selectionDirection:n1}=q;q.value="",q.value=X,n1!==null?q.setSelectionRange(U,V1,n1):q.setSelectionRange(U,V1)}},[m]);let S=(0,Q.useRef)(!1),$=_(()=>{S.current=!0}),y=_(()=>{x.nextFrame(()=>{S.current=!1})}),O=_(P=>{switch(o.actions.setIsTyping(!0),P.key){case h1.Enter:if(o.state.comboboxState!==g1.Open||S.current)return;if(P.preventDefault(),P.stopPropagation(),o.selectors.activeOptionIndex(o.state)===null){o.actions.closeCombobox();return}o.actions.selectActiveOption(),n.mode===$0.Single&&o.actions.closeCombobox();break;case h1.ArrowDown:return P.preventDefault(),P.stopPropagation(),Z1(o.state.comboboxState,{[g1.Open]:()=>o.actions.goToOption({focus:e1.Next}),[g1.Closed]:()=>o.actions.openCombobox()});case h1.ArrowUp:return P.preventDefault(),P.stopPropagation(),Z1(o.state.comboboxState,{[g1.Open]:()=>o.actions.goToOption({focus:e1.Previous}),[g1.Closed]:()=>{(0,T6.flushSync)(()=>o.actions.openCombobox()),n.value||o.actions.goToOption({focus:e1.Last})}});case h1.Home:if(o.state.comboboxState===g1.Closed||P.shiftKey)break;return P.preventDefault(),P.stopPropagation(),o.actions.goToOption({focus:e1.First});case h1.PageUp:return P.preventDefault(),P.stopPropagation(),o.actions.goToOption({focus:e1.First});case h1.End:if(o.state.comboboxState===g1.Closed||P.shiftKey)break;return P.preventDefault(),P.stopPropagation(),o.actions.goToOption({focus:e1.Last});case h1.PageDown:return P.preventDefault(),P.stopPropagation(),o.actions.goToOption({focus:e1.Last});case h1.Escape:return o.state.comboboxState!==g1.Open?void 0:(P.preventDefault(),o.state.optionsElement&&!n.optionsPropsRef.current.static&&P.stopPropagation(),n.mode===$0.Single&&n.value===null&&z(),o.actions.closeCombobox());case h1.Tab:if(o.actions.setIsTyping(!1),o.state.comboboxState!==g1.Open)return;n.mode===$0.Single&&o.state.activationTrigger!==B2.Focus&&o.actions.selectActiveOption(),o.actions.closeCombobox();break}}),T=_(P=>{s?.(P),n.mode===$0.Single&&P.target.value===""&&z(),o.actions.openCombobox()}),D=_(P=>{var F,q,X;let U=(F=P.relatedTarget)!=null?F:n2.find(V1=>V1!==P.currentTarget);if(!((q=o.state.optionsElement)!=null&&q.contains(U))&&!((X=o.state.buttonElement)!=null&&X.contains(U))&&o.state.comboboxState===g1.Open)return P.preventDefault(),n.mode===$0.Single&&n.value===null&&z(),o.actions.closeCombobox()}),k=_(P=>{var F,q,X;let U=(F=P.relatedTarget)!=null?F:n2.find(V1=>V1!==P.currentTarget);(q=o.state.buttonElement)!=null&&q.contains(U)||(X=o.state.optionsElement)!=null&&X.contains(U)||n.disabled||n.immediate&&o.state.comboboxState!==g1.Open&&x.microTask(()=>{(0,T6.flushSync)(()=>o.actions.openCombobox()),o.actions.setActivationTrigger(B2.Focus)})}),W=Z2(),G=U4(),{isFocused:R,focusProps:Y}=E2({autoFocus:M}),{isHovered:M1,hoverProps:K}=D2({isDisabled:A}),a1=A1(o,P=>P.optionsElement),d1=P1({open:m===g1.Open,disabled:A,invalid:n.invalid,hover:M1,focus:R,autofocus:M}),z1=V2({ref:w,id:u,role:"combobox",type:H,"aria-controls":a1?.id,"aria-expanded":m===g1.Open,"aria-activedescendant":A1(o,o.selectors.activeDescendantId),"aria-labelledby":W,"aria-describedby":G,"aria-autocomplete":"list",defaultValue:(i=(l=t.defaultValue)!=null?l:n.defaultValue!==void 0?p?.(n.defaultValue):null)!=null?i:n.defaultValue,disabled:A||void 0,autoFocus:M,onCompositionStart:$,onCompositionEnd:y,onKeyDown:O,onChange:T,onFocus:k,onBlur:D},Y,K);return f1()({ourProps:z1,theirProps:Z,slot:d1,defaultTag:TM,name:"Combobox.Input"})}var OM="button";function FM(t,r){let l=_8("Combobox.Button"),i=R8("Combobox.Button"),[o,n]=(0,Q.useState)(null),h=L1(r,n,l.actions.setButtonElement),v=(0,O1.useId)(),{id:u=`headlessui-combobox-button-${v}`,disabled:s=i.disabled||!1,autoFocus:p=!1,...A}=t,[M,H,Z]=A1(l,k=>[k.comboboxState,k.inputElement,k.optionsElement]),L=zl(H),w=M===g1.Open;Oa(w,{trigger:o,action:(0,Q.useCallback)(k=>{if(o!=null&&o.contains(k.target))return x2.Ignore;if(H!=null&&H.contains(k.target))return x2.Ignore;let W=k.target.closest('[role="option"]:not([data-disabled])');return q1(W)?x2.Select(W):Z!=null&&Z.contains(k.target)?x2.Ignore:x2.Close},[o,H,Z]),close:l.actions.closeCombobox,select:l.actions.selectActiveOption});let m=_(k=>{switch(k.key){case h1.Space:case h1.Enter:k.preventDefault(),k.stopPropagation(),l.state.comboboxState===g1.Closed&&(0,T6.flushSync)(()=>l.actions.openCombobox()),L();return;case h1.ArrowDown:k.preventDefault(),k.stopPropagation(),l.state.comboboxState===g1.Closed&&((0,T6.flushSync)(()=>l.actions.openCombobox()),l.state.dataRef.current.value||l.actions.goToOption({focus:e1.First})),L();return;case h1.ArrowUp:k.preventDefault(),k.stopPropagation(),l.state.comboboxState===g1.Closed&&((0,T6.flushSync)(()=>l.actions.openCombobox()),l.state.dataRef.current.value||l.actions.goToOption({focus:e1.Last})),L();return;case h1.Escape:if(l.state.comboboxState!==g1.Open)return;k.preventDefault(),l.state.optionsElement&&!i.optionsPropsRef.current.static&&k.stopPropagation(),(0,T6.flushSync)(()=>l.actions.closeCombobox()),L();return;default:return}}),V=Ba(()=>{l.state.comboboxState===g1.Open?l.actions.closeCombobox():l.actions.openCombobox(),L()}),x=Z2([u]),{isFocusVisible:z,focusProps:B}=E2({autoFocus:p}),{isHovered:S,hoverProps:$}=D2({isDisabled:s}),{pressed:y,pressProps:O}=p8({disabled:s}),T=P1({open:M===g1.Open,active:y||M===g1.Open,disabled:s,invalid:i.invalid,value:i.value,hover:S,focus:z}),D=V2({ref:h,id:u,type:Fa(t,o),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":Z?.id,"aria-expanded":M===g1.Open,"aria-labelledby":x,disabled:s||void 0,autoFocus:p,onKeyDown:m},V,B,$,O);return f1()({ourProps:D,theirProps:A,slot:T,defaultTag:OM,name:"Combobox.Button"})}var DM="div",EM=a2.RenderStrategy|a2.Static;function NM(t,r){var l,i,o;let n=(0,O1.useId)(),{id:h=`headlessui-combobox-options-${n}`,hold:v=!1,anchor:u,portal:s=!1,modal:p=!0,transition:A=!1,...M}=t,H=_8("Combobox.Options"),Z=R8("Combobox.Options"),L=qa(u);L&&(s=!0);let[w,m]=Xa(L),[V,x]=(0,Q.useState)(null),z=Ya(),B=L1(r,L?w:null,H.actions.setOptionsElement,x),[S,$,y,O,T]=A1(H,X1=>[X1.comboboxState,X1.inputElement,X1.buttonElement,X1.optionsElement,X1.activationTrigger]),D=o2($||y),k=o2(O),W=j2(),[G,R]=B8(A,V,W!==null?(W&_1.Open)===_1.Open:S===g1.Open);x8(G,$,H.actions.closeCombobox);let Y=Z.__demoMode?!1:p&&S===g1.Open;C8(Y,k);let M1=Z.__demoMode?!1:p&&S===g1.Open;Z8(M1,{allowed:(0,Q.useCallback)(()=>[$,y,O],[$,y,O])});let K=A1(H,H.selectors.didInputMove)?!1:G;J(()=>{var X1;Z.optionsPropsRef.current.static=(X1=t.static)!=null?X1:!1},[Z.optionsPropsRef,t.static]),J(()=>{Z.optionsPropsRef.current.hold=v},[Z.optionsPropsRef,v]),Yh(S===g1.Open,{container:O,accept(X1){return X1.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:X1.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(X1){X1.setAttribute("role","none")}});let a1=Z2([y?.id]),d1=P1({open:S===g1.Open,option:void 0}),z1=_(()=>{H.actions.setActivationTrigger(B2.Pointer)}),P=_(X1=>{X1.preventDefault(),H.actions.setActivationTrigger(B2.Pointer)}),F=V2(L?z():{},{"aria-labelledby":a1,role:"listbox","aria-multiselectable":Z.mode===$0.Multi?!0:void 0,id:h,ref:B,style:{...M.style,...m,"--input-width":r5(G,$,!0).width,"--button-width":r5(G,y,!0).width},onWheel:T===B2.Pointer?void 0:z1,onMouseDown:P,...w8(R)}),q=G&&S===g1.Closed&&!t.static,X=O8(q,(l=Z.virtual)==null?void 0:l.options),U=O8(q,Z.value),V1=(0,Q.useCallback)(X1=>Z.compare(U,X1),[Z.compare,U]),n1=(0,Q.useMemo)(()=>{if(!Z.virtual)return Z;if(X===void 0)throw new Error("Missing `options` in virtual mode");return X!==Z.virtual.options?{...Z,virtual:{...Z.virtual,options:X}}:Z},[Z,X,(i=Z.virtual)==null?void 0:i.options]);Z.virtual&&Object.assign(M,{children:Q.default.createElement(L5.Provider,{value:n1},Q.default.createElement(SM,{slot:d1},M.children))});let Y1=f1(),G1=(0,Q.useMemo)(()=>Z.mode===$0.Multi?Z:{...Z,isSelected:V1},[Z,V1]);return Q.default.createElement(E8,{enabled:s?t.static||G:!1,ownerDocument:D},Q.default.createElement(L5.Provider,{value:G1},Y1({ourProps:F,theirProps:{...M,children:Q.default.createElement(qd,{freeze:q},typeof M.children=="function"?(o=M.children)==null?void 0:o.call(M,d1):M.children)},slot:d1,defaultTag:DM,features:EM,visible:K,name:"Combobox.Options"})))}var _M="div";function RM(t,r){var l,i,o;let n=R8("Combobox.Option"),h=_8("Combobox.Option"),v=(0,O1.useId)(),{id:u=`headlessui-combobox-option-${v}`,value:s,disabled:p=(o=(i=(l=n.virtual)==null?void 0:l.disabled)==null?void 0:i.call(l,s))!=null?o:!1,order:A=null,...M}=t,[H]=A1(h,R=>[R.inputElement]),Z=zl(H),L=A1(h,(0,Q.useCallback)(R=>h.selectors.isActive(R,s,u),[s,u])),w=n.isSelected(s),m=(0,Q.useRef)(null),V=l0({disabled:p,value:s,domRef:m,order:A}),x=(0,Q.useContext)(ev),z=L1(r,m,x?x.measureElement:null),B=_(()=>{h.actions.setIsTyping(!1),h.actions.onChange(s)});J(()=>h.actions.registerOption(u,V),[V,u]);let S=A1(h,(0,Q.useCallback)(R=>h.selectors.shouldScrollIntoView(R,s,u),[s,u]));J(()=>{if(S)return T1().requestAnimationFrame(()=>{var R,Y;(Y=(R=m.current)==null?void 0:R.scrollIntoView)==null||Y.call(R,{block:"nearest"})})},[S,m]);let $=_(R=>{R.preventDefault(),R.button===l5.Left&&(p||(B(),g5()||requestAnimationFrame(()=>Z()),n.mode===$0.Single&&h.actions.closeCombobox()))}),y=_(()=>{if(p)return h.actions.goToOption({focus:e1.Nothing});let R=n.calculateIndex(s);h.actions.goToOption({focus:e1.Specific,idx:R})}),O=Da(),T=_(R=>O.update(R)),D=_(R=>{if(!O.wasMoved(R)||p||L&&h.state.activationTrigger===B2.Pointer)return;let Y=n.calculateIndex(s);h.actions.goToOption({focus:e1.Specific,idx:Y},B2.Pointer)}),k=_(R=>{O.wasMoved(R)&&(p||L&&(n.optionsPropsRef.current.hold||h.state.activationTrigger===B2.Pointer&&h.actions.goToOption({focus:e1.Nothing})))}),W=P1({active:L,focus:L,selected:w,disabled:p}),G={id:u,ref:z,role:"option",tabIndex:p===!0?void 0:-1,"aria-disabled":p===!0?!0:void 0,"aria-selected":w,disabled:void 0,onMouseDown:$,onFocus:y,onPointerEnter:T,onMouseEnter:T,onPointerMove:D,onMouseMove:D,onPointerLeave:k,onMouseLeave:k};return f1()({ourProps:G,theirProps:M,slot:W,defaultTag:_M,name:"Combobox.Option"})}var IM=v1(bM),Xl=v1(FM),Ql=v1($M),kM=za,Jl=v1(NM),te=v1(RM),iv=Object.assign(IM,{Input:Ql,Button:Xl,Label:kM,Options:Jl,Option:te});var u1=E(I(),1);function ov(t,r=typeof document<"u"?document.defaultView:null,l){let i=v4(t,"escape");z8(r,"keydown",o=>{i&&(o.defaultPrevented||o.key===h1.Escape&&l(o))})}var ae=E(I(),1);function nv(){var t;let[r]=(0,ae.useState)(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[l,i]=(0,ae.useState)((t=r?.matches)!=null?t:!1);return J(()=>{if(!r)return;function o(n){i(n.matches)}return r.addEventListener("change",o),()=>r.removeEventListener("change",o)},[r]),l}var p4=E(I(),1);function cv({defaultContainers:t=[],portals:r,mainTreeNode:l}={}){let i=_(()=>{var o,n;let h=k0(l),v=[];for(let u of t)u!==null&&(m2(u)?v.push(u):"current"in u&&m2(u.current)&&v.push(u.current));if(r!=null&&r.current)for(let u of r.current)v.push(u);for(let u of(o=h?.querySelectorAll("html > *, body > *"))!=null?o:[])u!==document.body&&u!==document.head&&m2(u)&&u.id!=="headlessui-portal-root"&&(l&&(u.contains(l)||u.contains((n=l?.getRootNode())==null?void 0:n.host))||v.some(s=>u.contains(s))||v.push(u));return v});return{resolveContainers:i,contains:_(o=>i().some(n=>n.contains(o)))}}var hv=(0,p4.createContext)(null);function re({children:t,node:r}){let[l,i]=(0,p4.useState)(null),o=le(r??l);return p4.default.createElement(hv.Provider,{value:o},t,o===null&&p4.default.createElement(k4,{features:d4.Hidden,ref:n=>{var h,v;if(n){for(let u of(v=(h=k0(n))==null?void 0:h.querySelectorAll("html > *, body > *"))!=null?v:[])if(u!==document.body&&u!==document.head&&m2(u)&&u!=null&&u.contains(n)){i(u);break}}}}))}function le(t=null){var r;return(r=(0,p4.useContext)(hv))!=null?r:t}var q2=E(I(),1);var dv=E(I(),1);function z5(){let t=(0,dv.useRef)(!1);return J(()=>(t.current=!0,()=>{t.current=!1}),[]),t}var vv=E(I(),1);var I8=(t=>(t[t.Forwards=0]="Forwards",t[t.Backwards=1]="Backwards",t))(I8||{});function gv(){let t=(0,vv.useRef)(0);return Ta(!0,"keydown",r=>{r.key==="Tab"&&(t.current=r.shiftKey?1:0)},!0),t}function uv(t){if(!t)return new Set;if(typeof t=="function")return new Set(t());let r=new Set;for(let l of t.current)m2(l.current)&&r.add(l.current);return r}var UM="div",r6=(t=>(t[t.None=0]="None",t[t.InitialFocus=1]="InitialFocus",t[t.TabLock=2]="TabLock",t[t.FocusLock=4]="FocusLock",t[t.RestoreFocus=8]="RestoreFocus",t[t.AutoFocus=16]="AutoFocus",t))(r6||{});function GM(t,r){let l=(0,q2.useRef)(null),i=L1(l,r),{initialFocus:o,initialFocusFallback:n,containers:h,features:v=15,...u}=t;s4()||(v=0);let s=o2(l.current);qM(v,{ownerDocument:s});let p=KM(v,{ownerDocument:s,container:l,initialFocus:o,initialFocusFallback:n});YM(v,{ownerDocument:s,container:l,containers:h,previousActiveElement:p});let A=gv(),M=_(V=>{if(!q1(l.current))return;let x=l.current;(z=>z())(()=>{Z1(A.current,{[I8.Forwards]:()=>{z6(x,U0.First,{skipElements:[V.relatedTarget,n]})},[I8.Backwards]:()=>{z6(x,U0.Last,{skipElements:[V.relatedTarget,n]})}})})}),H=v4(!!(v&2),"focus-trap#tab-lock"),Z=j1(),L=(0,q2.useRef)(!1),w={ref:i,onKeyDown(V){V.key=="Tab"&&(L.current=!0,Z.requestAnimationFrame(()=>{L.current=!1}))},onBlur(V){if(!(v&4))return;let x=uv(h);q1(l.current)&&x.add(l.current);let z=V.relatedTarget;b0(z)&&z.dataset.headlessuiFocusGuard!=="true"&&(pv(x,z)||(L.current?z6(l.current,Z1(A.current,{[I8.Forwards]:()=>U0.Next,[I8.Backwards]:()=>U0.Previous})|U0.WrapAround,{relativeTo:V.target}):b0(V.target)&&I2(V.target)))}},m=f1();return q2.default.createElement(q2.default.Fragment,null,H&&q2.default.createElement(k4,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:M,features:d4.Focusable}),m({ourProps:w,theirProps:u,defaultTag:UM,name:"FocusTrap"}),H&&q2.default.createElement(k4,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:M,features:d4.Focusable}))}var WM=v1(GM),sv=Object.assign(WM,{features:r6});function jM(t=!0){let r=(0,q2.useRef)(n2.slice());return C6(([l],[i])=>{i===!0&&l===!1&&Z6(()=>{r.current.splice(0)}),i===!1&&l===!0&&(r.current=n2.slice())},[t,n2,r]),_(()=>{var l;return(l=r.current.find(i=>i!=null&&i.isConnected))!=null?l:null})}function qM(t,{ownerDocument:r}){let l=!!(t&8),i=jM(l);C6(()=>{l||I4(r?.body)&&I2(i())},[l]),a6(()=>{l&&I2(i())})}function KM(t,{ownerDocument:r,container:l,initialFocus:i,initialFocusFallback:o}){let n=(0,q2.useRef)(null),h=v4(!!(t&1),"focus-trap#initial-focus"),v=z5();return C6(()=>{if(t===0)return;if(!h){o!=null&&o.current&&I2(o.current);return}let u=l.current;u&&Z6(()=>{if(!v.current)return;let s=r?.activeElement;if(i!=null&&i.current){if(i?.current===s){n.current=s;return}}else if(u.contains(s)){n.current=s;return}if(i!=null&&i.current)I2(i.current);else{if(t&16){if(z6(u,U0.First|U0.AutoFocus)!==ya.Error)return}else if(z6(u,U0.First)!==ya.Error)return;if(o!=null&&o.current&&(I2(o.current),r?.activeElement===o.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}n.current=r?.activeElement})},[o,h,t]),n}function YM(t,{ownerDocument:r,container:l,containers:i,previousActiveElement:o}){let n=z5(),h=!!(t&4);z8(r?.defaultView,"focus",v=>{if(!h||!n.current)return;let u=uv(i);q1(l.current)&&u.add(l.current);let s=o.current;if(!s)return;let p=v.target;q1(p)?pv(u,p)?(o.current=p,I2(p)):(v.preventDefault(),v.stopPropagation(),I2(s)):I2(o.current)},!0)}function pv(t,r){for(let l of t)if(l.contains(r))return!0;return!1}var o1=E(I(),1);function Hv(t){var r;return!!(t.enter||t.enterFrom||t.enterTo||t.leave||t.leaveFrom||t.leaveTo)||!H8((r=t.as)!=null?r:fv)||o1.default.Children.count(t.children)===1}var l7=(0,o1.createContext)(null);l7.displayName="TransitionContext";var XM=(t=>(t.Visible="visible",t.Hidden="hidden",t))(XM||{});function QM(){let t=(0,o1.useContext)(l7);if(t===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}function JM(){let t=(0,o1.useContext)(e7);if(t===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}var e7=(0,o1.createContext)(null);e7.displayName="NestingContext";function i7(t){return"children"in t?i7(t.children):t.current.filter(({el:r})=>r.current!==null).filter(({state:r})=>r==="visible").length>0}function Mv(t,r){let l=l0(t),i=(0,o1.useRef)([]),o=z5(),n=j1(),h=_((H,Z=h4.Hidden)=>{let L=i.current.findIndex(({el:w})=>w===H);L!==-1&&(Z1(Z,{[h4.Unmount](){i.current.splice(L,1)},[h4.Hidden](){i.current[L].state="hidden"}}),n.microTask(()=>{var w;!i7(i)&&o.current&&((w=l.current)==null||w.call(l))}))}),v=_(H=>{let Z=i.current.find(({el:L})=>L===H);return Z?Z.state!=="visible"&&(Z.state="visible"):i.current.push({el:H,state:"visible"}),()=>h(H,h4.Unmount)}),u=(0,o1.useRef)([]),s=(0,o1.useRef)(Promise.resolve()),p=(0,o1.useRef)({enter:[],leave:[]}),A=_((H,Z,L)=>{u.current.splice(0),r&&(r.chains.current[Z]=r.chains.current[Z].filter(([w])=>w!==H)),r?.chains.current[Z].push([H,new Promise(w=>{u.current.push(w)})]),r?.chains.current[Z].push([H,new Promise(w=>{Promise.all(p.current[Z].map(([m,V])=>V)).then(()=>w())})]),Z==="enter"?s.current=s.current.then(()=>r?.wait.current).then(()=>L(Z)):L(Z)}),M=_((H,Z,L)=>{Promise.all(p.current[Z].splice(0).map(([w,m])=>m)).then(()=>{var w;(w=u.current.shift())==null||w()}).then(()=>L(Z))});return(0,o1.useMemo)(()=>({children:i,register:v,unregister:h,onStart:A,onStop:M,wait:s,chains:p}),[v,h,i,A,M,p,s])}var fv=o1.Fragment,Av=a2.RenderStrategy;function tf(t,r){var l,i;let{transition:o=!0,beforeEnter:n,afterEnter:h,beforeLeave:v,afterLeave:u,enter:s,enterFrom:p,enterTo:A,entered:M,leave:H,leaveFrom:Z,leaveTo:L,...w}=t,[m,V]=(0,o1.useState)(null),x=(0,o1.useRef)(null),z=Hv(t),B=L1(...z?[x,r,V]:r===null?[]:[r]),S=(l=w.unmount)==null||l?h4.Unmount:h4.Hidden,{show:$,appear:y,initial:O}=QM(),[T,D]=(0,o1.useState)($?"visible":"hidden"),k=JM(),{register:W,unregister:G}=k;J(()=>W(x),[W,x]),J(()=>{if(S===h4.Hidden&&x.current){if($&&T!=="visible"){D("visible");return}return Z1(T,{hidden:()=>G(x),visible:()=>W(x)})}},[T,x,W,G,$,S]);let R=s4();J(()=>{if(z&&R&&T==="visible"&&x.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[x,T,R,z]);let Y=O&&!y,M1=y&&$&&O,K=(0,o1.useRef)(!1),a1=Mv(()=>{K.current||(D("hidden"),G(x))},k),d1=_(V1=>{K.current=!0;let n1=V1?"enter":"leave";a1.onStart(x,n1,Y1=>{Y1==="enter"?n?.():Y1==="leave"&&v?.()})}),z1=_(V1=>{let n1=V1?"enter":"leave";K.current=!1,a1.onStop(x,n1,Y1=>{Y1==="enter"?h?.():Y1==="leave"&&u?.()}),n1==="leave"&&!i7(a1)&&(D("hidden"),G(x))});(0,o1.useEffect)(()=>{z&&o||(d1($),z1($))},[$,z,o]);let P=!(!o||!z||!R||Y),[,F]=B8(P,m,$,{start:d1,end:z1}),q=N2({ref:B,className:((i=Qt(w.className,M1&&s,M1&&p,F.enter&&s,F.enter&&F.closed&&p,F.enter&&!F.closed&&A,F.leave&&H,F.leave&&!F.closed&&Z,F.leave&&F.closed&&L,!F.transition&&$&&M))==null?void 0:i.trim())||void 0,...w8(F)}),X=0;T==="visible"&&(X|=_1.Open),T==="hidden"&&(X|=_1.Closed),$&&T==="hidden"&&(X|=_1.Opening),!$&&T==="visible"&&(X|=_1.Closing);let U=f1();return o1.default.createElement(e7.Provider,{value:a1},o1.default.createElement(F8,{value:X},U({ourProps:q,theirProps:w,defaultTag:fv,features:Av,visible:T==="visible",name:"Transition.Child"})))}function af(t,r){let{show:l,appear:i=!1,unmount:o=!0,...n}=t,h=(0,o1.useRef)(null),v=Hv(t),u=L1(...v?[h,r]:r===null?[]:[r]);s4();let s=j2();if(l===void 0&&s!==null&&(l=(s&_1.Open)===_1.Open),l===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[p,A]=(0,o1.useState)(l?"visible":"hidden"),M=Mv(()=>{l||A("hidden")}),[H,Z]=(0,o1.useState)(!0),L=(0,o1.useRef)([l]);J(()=>{H!==!1&&L.current[L.current.length-1]!==l&&(L.current.push(l),Z(!1))},[L,l]);let w=(0,o1.useMemo)(()=>({show:l,appear:i,initial:H}),[l,i,H]);J(()=>{l?A("visible"):!i7(M)&&h.current!==null&&A("hidden")},[l,M]);let m={unmount:o},V=_(()=>{var B;H&&Z(!1),(B=t.beforeEnter)==null||B.call(t)}),x=_(()=>{var B;H&&Z(!1),(B=t.beforeLeave)==null||B.call(t)}),z=f1();return o1.default.createElement(e7.Provider,{value:M},o1.default.createElement(l7.Provider,{value:w},z({ourProps:{...m,as:o1.Fragment,children:o1.default.createElement(Vv,{ref:u,...m,...n,beforeEnter:V,beforeLeave:x})},theirProps:{},defaultTag:o1.Fragment,features:Av,visible:p==="visible",name:"Transition"})))}function rf(t,r){let l=(0,o1.useContext)(l7)!==null,i=j2()!==null;return o1.default.createElement(o1.default.Fragment,null,!l&&i?o1.default.createElement(ee,{ref:r,...t}):o1.default.createElement(Vv,{ref:r,...t}))}var ee=v1(af),Vv=v1(tf),o7=v1(rf),mv=Object.assign(ee,{Child:o7,Root:ee});var lf=(t=>(t[t.Open=0]="Open",t[t.Closed=1]="Closed",t))(lf||{}),ef=(t=>(t[t.SetTitleId=0]="SetTitleId",t))(ef||{}),of={0(t,r){return t.titleId===r.id?t:{...t,titleId:r.id}}},ie=(0,u1.createContext)(null);ie.displayName="DialogContext";function n7(t){let r=(0,u1.useContext)(ie);if(r===null){let l=new Error(`<${t} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(l,n7),l}return r}function nf(t,r){return Z1(r.type,of,t,r)}var Zv=v1(function(t,r){let l=(0,O1.useId)(),{id:i=`headlessui-dialog-${l}`,open:o,onClose:n,initialFocus:h,role:v="dialog",autoFocus:u=!0,__demoMode:s=!1,unmount:p=!1,...A}=t,M=(0,u1.useRef)(!1);v=(function(){return v==="dialog"||v==="alertdialog"?v:(M.current||(M.current=!0,console.warn(`Invalid role [${v}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")})();let H=j2();o===void 0&&H!==null&&(o=(H&_1.Open)===_1.Open);let Z=(0,u1.useRef)(null),L=L1(Z,r),w=o2(Z.current),m=o?0:1,[V,x]=(0,u1.useReducer)(nf,{titleId:null,descriptionId:null,panelRef:(0,u1.createRef)()}),z=_(()=>n(!1)),B=_(F=>x({type:0,id:F})),S=s4()?m===0:!1,[$,y]=rv(),O={get current(){var F;return(F=V.panelRef.current)!=null?F:Z.current}},T=le(),{resolveContainers:D}=cv({mainTreeNode:T,portals:$,defaultContainers:[O]}),k=H!==null?(H&_1.Closing)===_1.Closing:!1;Z8(s||k?!1:S,{allowed:_(()=>{var F,q;return[(q=(F=Z.current)==null?void 0:F.closest("[data-headlessui-portal]"))!=null?q:null]}),disallowed:_(()=>{var F;return[(F=T?.closest("body > *:not(#headlessui-portal-root)"))!=null?F:null]})});let W=i2.get(null);J(()=>{if(S)return W.actions.push(i),()=>W.actions.pop(i)},[W,i,S]);let G=A1(W,(0,u1.useCallback)(F=>W.selectors.isTop(F,i),[W,i]));L8(G,D,F=>{F.preventDefault(),z()}),ov(G,w?.defaultView,F=>{F.preventDefault(),F.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),z()}),C8(s||k?!1:S,w,D),x8(S,Z,z);let[R,Y]=qc(),M1=(0,u1.useMemo)(()=>[{dialogState:m,close:z,setTitleId:B,unmount:p},V],[m,z,B,p,V]),K=P1({open:m===0}),a1={ref:L,id:i,role:v,tabIndex:-1,"aria-modal":s?void 0:m===0?!0:void 0,"aria-labelledby":V.titleId,"aria-describedby":R,unmount:p},d1=!nv(),z1=r6.None;S&&!s&&(z1|=r6.RestoreFocus,z1|=r6.TabLock,u&&(z1|=r6.AutoFocus),d1&&(z1|=r6.InitialFocus));let P=f1();return u1.default.createElement(Kd,null,u1.default.createElement(Ul,{force:!0},u1.default.createElement(E8,null,u1.default.createElement(ie.Provider,{value:M1},u1.default.createElement(Wl,{target:Z},u1.default.createElement(Ul,{force:!1},u1.default.createElement(Y,{slot:K},u1.default.createElement(y,null,u1.default.createElement(sv,{initialFocus:h,initialFocusFallback:Z,containers:D,features:z1},u1.default.createElement(Qc,{value:z},P({ourProps:a1,theirProps:A,slot:K,defaultTag:cf,features:hf,visible:m===0,name:"Dialog"})))))))))))}),cf="div",hf=a2.RenderStrategy|a2.Static;function df(t,r){let{transition:l=!1,open:i,...o}=t,n=j2(),h=t.hasOwnProperty("open")||n!==null,v=t.hasOwnProperty("onClose");if(!h&&!v)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!h)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!v)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!n&&typeof t.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${t.open}`);if(typeof t.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${t.onClose}`);return(i!==void 0||l)&&!o.static?u1.default.createElement(re,null,u1.default.createElement(mv,{show:i,transition:l,unmount:o.unmount},u1.default.createElement(Zv,{ref:r,...o}))):u1.default.createElement(re,null,u1.default.createElement(Zv,{ref:r,open:i,...o}))}var vf="div";function gf(t,r){let l=(0,O1.useId)(),{id:i=`headlessui-dialog-panel-${l}`,transition:o=!1,...n}=t,[{dialogState:h,unmount:v},u]=n7("Dialog.Panel"),s=L1(r,u.panelRef),p=P1({open:h===0}),A=_(w=>{w.stopPropagation()}),M={ref:s,id:i,onClick:A},H=o?o7:u1.Fragment,Z=o?{unmount:v}:{},L=f1();return u1.default.createElement(H,{...Z},L({ourProps:M,theirProps:n,slot:p,defaultTag:vf,name:"Dialog.Panel"}))}var uf="div";function sf(t,r){let{transition:l=!1,...i}=t,[{dialogState:o,unmount:n}]=n7("Dialog.Backdrop"),h=P1({open:o===0}),v={ref:r,"aria-hidden":!0},u=l?o7:u1.Fragment,s=l?{unmount:n}:{},p=f1();return u1.default.createElement(u,{...s},p({ourProps:v,theirProps:i,slot:h,defaultTag:uf,name:"Dialog.Backdrop"}))}var pf="h2";function Hf(t,r){let l=(0,O1.useId)(),{id:i=`headlessui-dialog-title-${l}`,...o}=t,[{dialogState:n,setTitleId:h}]=n7("Dialog.Title"),v=L1(r);(0,u1.useEffect)(()=>(h(i),()=>h(null)),[i,h]);let u=P1({open:n===0}),s={ref:v,id:i};return f1()({ourProps:s,theirProps:o,slot:u,defaultTag:pf,name:"Dialog.Title"})}var Mf=v1(df),C5=v1(gf),iB=v1(sf),w5=v1(Hf);var c7=Object.assign(Mf,{Panel:C5,Title:w5,Description:Kc});var ff="input";function Af(t,r){let l=(0,O1.useId)(),i=_2(),o=t2(),{id:n=i||`headlessui-input-${l}`,disabled:h=o||!1,autoFocus:v=!1,invalid:u=!1,...s}=t,p=Z2(),A=U4(),{isFocused:M,focusProps:H}=E2({autoFocus:v}),{isHovered:Z,hoverProps:L}=D2({isDisabled:h}),w=V2({ref:r,id:n,"aria-labelledby":p,"aria-describedby":A,"aria-invalid":u?"true":void 0,disabled:h||void 0,autoFocus:v},H,L),m=P1({disabled:h,invalid:u,hover:Z,focus:M,autofocus:v});return f1()({ourProps:w,theirProps:s,slot:m,defaultTag:ff,name:"Input"})}var oe=v1(Af);var s1=E(I(),1),v7=E(O2(),1);var ne=E(I(),1);var xv=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Lv(t){var r,l;let i=(r=t.innerText)!=null?r:"",o=t.cloneNode(!0);if(!q1(o))return i;let n=!1;for(let v of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))v.remove(),n=!0;let h=n?(l=o.innerText)!=null?l:"":i;return xv.test(h)&&(h=h.replace(xv,"")),h}function zv(t){let r=t.getAttribute("aria-label");if(typeof r=="string")return r.trim();let l=t.getAttribute("aria-labelledby");if(l){let i=l.split(" ").map(o=>{let n=document.getElementById(o);if(n){let h=n.getAttribute("aria-label");return typeof h=="string"?h.trim():Lv(n).trim()}return null}).filter(Boolean);if(i.length>0)return i.join(", ")}return Lv(t).trim()}function Cv(t){let r=(0,ne.useRef)(""),l=(0,ne.useRef)("");return _(()=>{let i=t.current;if(!i)return"";let o=i.innerText;if(r.current===o)return l.current;let n=zv(i).trim().toLowerCase();return r.current=o,l.current=n,n})}var Vf=Object.defineProperty,mf=(t,r,l)=>r in t?Vf(t,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):t[r]=l,wv=(t,r,l)=>(mf(t,typeof r!="symbol"?r+"":r,l),l),g0=(t=>(t[t.Open=0]="Open",t[t.Closed=1]="Closed",t))(g0||{}),H4=(t=>(t[t.Single=0]="Single",t[t.Multi=1]="Multi",t))(H4||{}),B5=(t=>(t[t.Pointer=0]="Pointer",t[t.Other=1]="Other",t))(B5||{}),ce=(t=>(t[t.OpenListbox=0]="OpenListbox",t[t.CloseListbox=1]="CloseListbox",t[t.GoToOption=2]="GoToOption",t[t.Search=3]="Search",t[t.ClearSearch=4]="ClearSearch",t[t.SelectOption=5]="SelectOption",t[t.RegisterOptions=6]="RegisterOptions",t[t.UnregisterOptions=7]="UnregisterOptions",t[t.SetButtonElement=8]="SetButtonElement",t[t.SetOptionsElement=9]="SetOptionsElement",t[t.SortOptions=10]="SortOptions",t[t.MarkButtonAsMoved=11]="MarkButtonAsMoved",t))(ce||{});function Bv(t,r=l=>l){let l=t.activeOptionIndex!==null?t.options[t.activeOptionIndex]:null,i=v5(r(t.options.slice()),n=>n.dataRef.current.domRef.current),o=l?i.indexOf(l):null;return o===-1&&(o=null),{options:i,activeOptionIndex:o}}var Zf={1(t){if(t.dataRef.current.disabled||t.listboxState===1)return t;let r=t.buttonElement?w2.Tracked(x5(t.buttonElement)):t.buttonPositionState;return{...t,activeOptionIndex:null,pendingFocus:{focus:e1.Nothing},listboxState:1,__demoMode:!1,buttonPositionState:r}},0(t,r){if(t.dataRef.current.disabled||t.listboxState===0)return t;let l=t.activeOptionIndex,{isSelected:i}=t.dataRef.current,o=t.options.findIndex(n=>i(n.dataRef.current.value));return o!==-1&&(l=o),{...t,frozenValue:!1,pendingFocus:r.focus,listboxState:0,activeOptionIndex:l,__demoMode:!1,buttonPositionState:w2.Idle}},2(t,r){var l,i,o,n,h;if(t.dataRef.current.disabled||t.listboxState===1)return t;let v={...t,searchQuery:"",activationTrigger:(l=r.trigger)!=null?l:1,__demoMode:!1};if(r.focus===e1.Nothing)return{...v,activeOptionIndex:null};if(r.focus===e1.Specific)return{...v,activeOptionIndex:t.options.findIndex(p=>p.id===r.id)};if(r.focus===e1.Previous){let p=t.activeOptionIndex;if(p!==null){let A=t.options[p].dataRef.current.domRef,M=t6(r,{resolveItems:()=>t.options,resolveActiveIndex:()=>t.activeOptionIndex,resolveId:H=>H.id,resolveDisabled:H=>H.dataRef.current.disabled});if(M!==null){let H=t.options[M].dataRef.current.domRef;if(((i=A.current)==null?void 0:i.previousElementSibling)===H.current||((o=H.current)==null?void 0:o.previousElementSibling)===null)return{...v,activeOptionIndex:M}}}}else if(r.focus===e1.Next){let p=t.activeOptionIndex;if(p!==null){let A=t.options[p].dataRef.current.domRef,M=t6(r,{resolveItems:()=>t.options,resolveActiveIndex:()=>t.activeOptionIndex,resolveId:H=>H.id,resolveDisabled:H=>H.dataRef.current.disabled});if(M!==null){let H=t.options[M].dataRef.current.domRef;if(((n=A.current)==null?void 0:n.nextElementSibling)===H.current||((h=H.current)==null?void 0:h.nextElementSibling)===null)return{...v,activeOptionIndex:M}}}}let u=Bv(t),s=t6(r,{resolveItems:()=>u.options,resolveActiveIndex:()=>u.activeOptionIndex,resolveId:p=>p.id,resolveDisabled:p=>p.dataRef.current.disabled});return{...v,...u,activeOptionIndex:s}},3:(t,r)=>{if(t.dataRef.current.disabled||t.listboxState===1)return t;let l=t.searchQuery!==""?0:1,i=t.searchQuery+r.value.toLowerCase(),o=(t.activeOptionIndex!==null?t.options.slice(t.activeOptionIndex+l).concat(t.options.slice(0,t.activeOptionIndex+l)):t.options).find(h=>{var v;return!h.dataRef.current.disabled&&((v=h.dataRef.current.textValue)==null?void 0:v.startsWith(i))}),n=o?t.options.indexOf(o):-1;return n===-1||n===t.activeOptionIndex?{...t,searchQuery:i}:{...t,searchQuery:i,activeOptionIndex:n,activationTrigger:1}},4(t){return t.dataRef.current.disabled||t.listboxState===1||t.searchQuery===""?t:{...t,searchQuery:""}},5(t){return t.dataRef.current.mode===0?{...t,frozenValue:!0}:{...t}},6:(t,r)=>{let l=t.options.concat(r.options),i=t.activeOptionIndex;if(t.pendingFocus.focus!==e1.Nothing&&(i=t6(t.pendingFocus,{resolveItems:()=>l,resolveActiveIndex:()=>t.activeOptionIndex,resolveId:o=>o.id,resolveDisabled:o=>o.dataRef.current.disabled})),t.activeOptionIndex===null){let{isSelected:o}=t.dataRef.current;if(o){let n=l.findIndex(h=>o?.(h.dataRef.current.value));n!==-1&&(i=n)}}return{...t,options:l,activeOptionIndex:i,pendingFocus:{focus:e1.Nothing},pendingShouldSort:!0}},7:(t,r)=>{let l=t.options,i=[],o=new Set(r.options);for(let[n,h]of l.entries())if(o.has(h.id)&&(i.push(n),o.delete(h.id),o.size===0))break;if(i.length>0){l=l.slice();for(let n of i.reverse())l.splice(n,1)}return{...t,options:l,activationTrigger:1}},8:(t,r)=>t.buttonElement===r.element?t:{...t,buttonElement:r.element},9:(t,r)=>t.optionsElement===r.element?t:{...t,optionsElement:r.element},10:t=>t.pendingShouldSort?{...t,...Bv(t),pendingShouldSort:!1}:t,11(t){return t.buttonPositionState.kind!=="Tracked"?t:{...t,buttonPositionState:w2.Moved}}},h7=class t extends j4{constructor(r){super(r),wv(this,"actions",{onChange:l=>{let{onChange:i,compare:o,mode:n,value:h}=this.state.dataRef.current;return Z1(n,{0:()=>i?.(l),1:()=>{let v=h.slice(),u=v.findIndex(s=>o(s,l));return u===-1?v.push(l):v.splice(u,1),i?.(v)}})},registerOption:Pa(()=>{let l=[],i=new Set;return[(o,n)=>{i.has(n)||(i.add(n),l.push({id:o,dataRef:n}))},()=>(i.clear(),this.send({type:6,options:l.splice(0)}))]}),unregisterOption:Pa(()=>{let l=[];return[i=>l.push(i),()=>{this.send({type:7,options:l.splice(0)})}]}),goToOption:Pa(()=>{let l=null;return[(i,o)=>{l={type:2,...i,trigger:o}},()=>l&&this.send(l)]}),closeListbox:()=>{this.send({type:1})},openListbox:l=>{this.send({type:0,focus:l})},selectActiveOption:()=>{var l;if(this.state.activeOptionIndex!==null){let{dataRef:i}=this.state.options[this.state.activeOptionIndex];this.actions.selectOption(i.current.value)}else this.state.dataRef.current.mode===0&&(this.actions.closeListbox(),(l=this.state.buttonElement)==null||l.focus({preventScroll:!0}))},selectOption:l=>{this.send({type:5,value:l})},search:l=>{this.send({type:3,value:l})},clearSearch:()=>{this.send({type:4})},setButtonElement:l=>{this.send({type:8,element:l})},setOptionsElement:l=>{this.send({type:9,element:l})}}),wv(this,"selectors",{activeDescendantId(l){var i;let o=l.activeOptionIndex,n=l.options;return o===null||(i=n[o])==null?void 0:i.id},isActive(l,i){var o;let n=l.activeOptionIndex,h=l.options;return n!==null?((o=h[n])==null?void 0:o.id)===i:!1},hasFrozenValue(l){return l.frozenValue},shouldScrollIntoView(l,i){return l.__demoMode||l.listboxState!==0||l.activationTrigger===0?!1:this.isActive(l,i)},didButtonMove(l){return l.buttonPositionState.kind==="Moved"}}),this.on(6,()=>{requestAnimationFrame(()=>{this.send({type:10})})});{let l=this.state.id,i=i2.get(null);this.disposables.add(i.on(o5.Push,o=>{!i.selectors.isTop(o,l)&&this.state.listboxState===0&&this.actions.closeListbox()})),this.on(0,()=>i.actions.push(l)),this.on(1,()=>i.actions.pop(l))}this.disposables.group(l=>{this.on(1,i=>{i.buttonElement&&(l.dispose(),l.add(a7(i.buttonElement,i.buttonPositionState,()=>{this.send({type:11})})))})}),this.on(5,(l,i)=>{var o;this.actions.onChange(i.value),this.state.dataRef.current.mode===0&&(this.actions.closeListbox(),(o=this.state.buttonElement)==null||o.focus({preventScroll:!0}))})}static new({id:r,__demoMode:l=!1}){return new t({id:r,dataRef:{current:{}},listboxState:l?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,buttonElement:null,optionsElement:null,pendingShouldSort:!1,pendingFocus:{focus:e1.Nothing},frozenValue:!1,__demoMode:l,buttonPositionState:w2.Idle})}reduce(r,l){return Z1(l.type,Zf,r,l)}};var k8=E(I(),1);var he=(0,k8.createContext)(null);function d7(t){let r=(0,k8.useContext)(he);if(r===null){let l=new Error(`<${t} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(l,de),l}return r}function de({id:t,__demoMode:r=!1}){let l=(0,k8.useMemo)(()=>h7.new({id:t,__demoMode:r}),[]);return a6(()=>l.dispose()),l}var g7=(0,s1.createContext)(null);g7.displayName="ListboxDataContext";function P5(t){let r=(0,s1.useContext)(g7);if(r===null){let l=new Error(`<${t} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(l,P5),l}return r}var xf=s1.Fragment;function Lf(t,r){let l=(0,O1.useId)(),i=t2(),{value:o,defaultValue:n,form:h,name:v,onChange:u,by:s,invalid:p=!1,disabled:A=i||!1,horizontal:M=!1,multiple:H=!1,__demoMode:Z=!1,...L}=t,w=M?"horizontal":"vertical",m=L1(r),V=A8(n),[x=H?[]:void 0,z]=f8(o,u,V),B=de({id:l,__demoMode:Z}),S=(0,s1.useRef)({static:!1,hold:!1}),$=(0,s1.useRef)(new Map),y=wa(s),O=(0,s1.useCallback)(P=>Z1(T.mode,{[H4.Multi]:()=>x.some(F=>y(F,P)),[H4.Single]:()=>y(x,P)}),[x]),T=P1({value:x,disabled:A,invalid:p,mode:H?H4.Multi:H4.Single,orientation:w,onChange:z,compare:y,isSelected:O,optionsPropsRef:S,listRef:$});J(()=>{B.state.dataRef.current=T},[T]);let D=A1(B,P=>P.listboxState),k=i2.get(null),W=A1(k,(0,s1.useCallback)(P=>k.selectors.isTop(P,l),[k,l])),[G,R]=A1(B,P=>[P.buttonElement,P.optionsElement]);L8(W,[G,R],(P,F)=>{B.send({type:ce.CloseListbox}),ba(F,d5.Loose)||(P.preventDefault(),G?.focus())});let Y=P1({open:D===g0.Open,disabled:A,invalid:p,value:x}),[M1,K]=La({inherit:!0}),a1={ref:m},d1=(0,s1.useCallback)(()=>{if(V!==void 0)return z?.(V)},[z,V]),z1=f1();return s1.default.createElement(K,{value:M1,props:{htmlFor:G?.id},slot:{open:D===g0.Open,disabled:A}},s1.default.createElement(Qa,null,s1.default.createElement(he.Provider,{value:B},s1.default.createElement(g7.Provider,{value:T},s1.default.createElement(F8,{value:Z1(D,{[g0.Open]:_1.Open,[g0.Closed]:_1.Closed})},v!=null&&x!=null&&s1.default.createElement(V8,{disabled:A,data:{[v]:x},form:h,onReset:d1}),z1({ourProps:a1,theirProps:L,slot:Y,defaultTag:xf,name:"Listbox"}))))))}var zf="button";function Cf(t,r){let l=(0,O1.useId)(),i=_2(),o=P5("Listbox.Button"),n=d7("Listbox.Button"),{id:h=i||`headlessui-listbox-button-${l}`,disabled:v=o.disabled||!1,autoFocus:u=!1,...s}=t,p=L1(r,Ka(),n.actions.setButtonElement),A=Wd(),[M,H,Z]=A1(n,R=>[R.listboxState,R.buttonElement,R.optionsElement]),L=M===g0.Open;Oa(L,{trigger:H,action:(0,s1.useCallback)(R=>{if(H!=null&&H.contains(R.target))return x2.Ignore;let Y=R.target.closest('[role="option"]:not([data-disabled])');return q1(Y)?x2.Select(Y):Z!=null&&Z.contains(R.target)?x2.Ignore:x2.Close},[H,Z]),close:n.actions.closeListbox,select:n.actions.selectActiveOption});let w=_(R=>{switch(R.key){case h1.Enter:Va(R.currentTarget);break;case h1.Space:case h1.ArrowDown:R.preventDefault(),n.actions.openListbox({focus:o.value?e1.Nothing:e1.First});break;case h1.ArrowUp:R.preventDefault(),n.actions.openListbox({focus:o.value?e1.Nothing:e1.Last});break}}),m=_(R=>{R.key===h1.Space&&R.preventDefault()}),V=Ba(R=>{var Y;n.state.listboxState===g0.Open?((0,v7.flushSync)(()=>n.actions.closeListbox()),(Y=n.state.buttonElement)==null||Y.focus({preventScroll:!0})):(R.preventDefault(),n.actions.openListbox({focus:e1.Nothing}))}),x=_(R=>R.preventDefault()),z=Z2([h]),B=U4(),{isFocusVisible:S,focusProps:$}=E2({autoFocus:u}),{isHovered:y,hoverProps:O}=D2({isDisabled:v}),{pressed:T,pressProps:D}=p8({disabled:v}),k=P1({open:M===g0.Open,active:T||M===g0.Open,disabled:v,invalid:o.invalid,value:o.value,hover:y,focus:S,autofocus:u}),W=A1(n,R=>R.listboxState===g0.Open),G=V2(A(),{ref:p,id:h,type:Fa(t,H),"aria-haspopup":"listbox","aria-controls":Z?.id,"aria-expanded":W,"aria-labelledby":z,"aria-describedby":B,disabled:v||void 0,autoFocus:u,onKeyDown:w,onKeyUp:m,onKeyPress:x},V,$,O,D);return f1()({ourProps:G,theirProps:s,slot:k,defaultTag:zf,name:"Listbox.Button"})}var Pv=(0,s1.createContext)(!1),wf="div",Bf=a2.RenderStrategy|a2.Static;function Pf(t,r){let l=(0,O1.useId)(),{id:i=`headlessui-listbox-options-${l}`,anchor:o,portal:n=!1,modal:h=!0,transition:v=!1,...u}=t,s=qa(o),[p,A]=(0,s1.useState)(null);s&&(n=!0);let M=P5("Listbox.Options"),H=d7("Listbox.Options"),[Z,L,w,m]=A1(H,U=>[U.listboxState,U.buttonElement,U.optionsElement,U.__demoMode]),V=o2(L),x=o2(w),z=j2(),[B,S]=B8(v,p,z!==null?(z&_1.Open)===_1.Open:Z===g0.Open);x8(B,L,H.actions.closeListbox);let $=m?!1:h&&Z===g0.Open;C8($,x);let y=m?!1:h&&Z===g0.Open;Z8(y,{allowed:(0,s1.useCallback)(()=>[L,w],[L,w])});let O=A1(H,H.selectors.didButtonMove)?!1:B,T=A1(H,H.selectors.hasFrozenValue)&&!t.static,D=O8(T,M.value),k=(0,s1.useCallback)(U=>M.compare(D,U),[M.compare,D]),W=A1(H,U=>{var V1;if(s==null||!((V1=s?.to)!=null&&V1.includes("selection")))return null;let n1=U.options.findIndex(Y1=>k(Y1.dataRef.current.value));return n1===-1&&(n1=0),n1}),G=(()=>{if(s==null)return;if(W===null)return{...s,inner:void 0};let U=Array.from(M.listRef.current.values());return{...s,inner:{listRef:{current:U},index:W}}})(),[R,Y]=Xa(G),M1=Ya(),K=L1(r,s?R:null,H.actions.setOptionsElement,A),a1=j1();(0,s1.useEffect)(()=>{let U=w;U&&Z===g0.Open&&(I4(U)||U==null||U.focus({preventScroll:!0}))},[Z,w]);let d1=_(U=>{var V1;switch(a1.dispose(),U.key){case h1.Space:if(H.state.searchQuery!=="")return U.preventDefault(),U.stopPropagation(),H.actions.search(U.key);case h1.Enter:U.preventDefault(),U.stopPropagation(),H.actions.selectActiveOption();break;case Z1(M.orientation,{vertical:h1.ArrowDown,horizontal:h1.ArrowRight}):return U.preventDefault(),U.stopPropagation(),H.actions.goToOption({focus:e1.Next});case Z1(M.orientation,{vertical:h1.ArrowUp,horizontal:h1.ArrowLeft}):return U.preventDefault(),U.stopPropagation(),H.actions.goToOption({focus:e1.Previous});case h1.Home:case h1.PageUp:return U.preventDefault(),U.stopPropagation(),H.actions.goToOption({focus:e1.First});case h1.End:case h1.PageDown:return U.preventDefault(),U.stopPropagation(),H.actions.goToOption({focus:e1.Last});case h1.Escape:U.preventDefault(),U.stopPropagation(),(0,v7.flushSync)(()=>H.actions.closeListbox()),(V1=H.state.buttonElement)==null||V1.focus({preventScroll:!0});return;case h1.Tab:U.preventDefault(),U.stopPropagation(),(0,v7.flushSync)(()=>H.actions.closeListbox()),Bh(H.state.buttonElement,U.shiftKey?U0.Previous:U0.Next);break;default:U.key.length===1&&(H.actions.search(U.key),a1.setTimeout(()=>H.actions.clearSearch(),350));break}}),z1=A1(H,U=>{var V1;return(V1=U.buttonElement)==null?void 0:V1.id}),P=P1({open:Z===g0.Open}),F=V2(s?M1():{},{id:i,ref:K,"aria-activedescendant":A1(H,H.selectors.activeDescendantId),"aria-multiselectable":M.mode===H4.Multi?!0:void 0,"aria-labelledby":z1,"aria-orientation":M.orientation,onKeyDown:d1,role:"listbox",tabIndex:Z===g0.Open?0:void 0,style:{...u.style,...Y,"--button-width":r5(B,L,!0).width},...w8(S)}),q=f1(),X=(0,s1.useMemo)(()=>M.mode===H4.Multi?M:{...M,isSelected:k},[M,k]);return s1.default.createElement(E8,{enabled:n?t.static||B:!1,ownerDocument:V},s1.default.createElement(g7.Provider,{value:X},q({ourProps:F,theirProps:u,slot:P,defaultTag:wf,features:Bf,visible:O,name:"Listbox.Options"})))}var Sf="div";function yf(t,r){let l=(0,O1.useId)(),{id:i=`headlessui-listbox-option-${l}`,disabled:o=!1,value:n,...h}=t,v=(0,s1.useContext)(Pv)===!0,u=P5("Listbox.Option"),s=d7("Listbox.Option"),p=A1(s,T=>s.selectors.isActive(T,i)),A=u.isSelected(n),M=(0,s1.useRef)(null),H=Cv(M),Z=l0({disabled:o,value:n,domRef:M,get textValue(){return H()}}),L=L1(r,M,T=>{T?u.listRef.current.set(i,T):u.listRef.current.delete(i)}),w=A1(s,T=>s.selectors.shouldScrollIntoView(T,i));J(()=>{if(w)return T1().requestAnimationFrame(()=>{var T,D;(D=(T=M.current)==null?void 0:T.scrollIntoView)==null||D.call(T,{block:"nearest"})})},[w,M]),J(()=>{if(!v)return s.actions.registerOption(i,Z),()=>s.actions.unregisterOption(i)},[Z,i,v]);let m=_(T=>{if(o)return T.preventDefault();s.actions.selectOption(n)}),V=_(()=>{if(o)return s.actions.goToOption({focus:e1.Nothing});s.actions.goToOption({focus:e1.Specific,id:i})}),x=Da(),z=_(T=>x.update(T)),B=_(T=>{x.wasMoved(T)&&(o||p&&s.state.activationTrigger===B5.Pointer||s.actions.goToOption({focus:e1.Specific,id:i},B5.Pointer))}),S=_(T=>{x.wasMoved(T)&&(o||p&&s.state.activationTrigger===B5.Pointer&&s.actions.goToOption({focus:e1.Nothing}))}),$=P1({active:p,focus:p,selected:A,disabled:o,selectedOption:A&&v}),y=v?{}:{id:i,ref:L,role:"option",tabIndex:o===!0?void 0:-1,"aria-disabled":o===!0?!0:void 0,"aria-selected":A,disabled:void 0,onClick:m,onFocus:V,onPointerEnter:z,onMouseEnter:z,onPointerMove:B,onMouseMove:B,onPointerLeave:S,onMouseLeave:S},O=f1();return!A&&v?null:O({ourProps:y,theirProps:h,slot:$,defaultTag:Sf,name:"Listbox.Option"})}var bf=s1.Fragment;function Tf(t,r){let{options:l,placeholder:i,...o}=t,n={ref:L1(r)},h=P5("ListboxSelectedOption"),v=P1({}),u=h.value===void 0||h.value===null||h.mode===H4.Multi&&Array.isArray(h.value)&&h.value.length===0,s=f1();return s1.default.createElement(Pv.Provider,{value:!0},s({ourProps:n,theirProps:{...o,children:s1.default.createElement(s1.default.Fragment,null,i&&u?i:l)},slot:v,defaultTag:bf,name:"ListboxSelectedOption"}))}var $f=v1(Lf),ve=v1(Cf),Of=za,ge=v1(Pf),ue=v1(yf),Ff=v1(Tf),Sv=Object.assign($f,{Button:ve,Label:Of,Options:ge,Option:ue,SelectedOption:Ff});var U8=E(I(),1);var se=E(I(),1),pe={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},He=se.default.createContext&&se.default.createContext(pe);var Df=["attr","size","title"];function Ef(t,r){if(t==null)return{};var l,i,o=Nf(t,r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);for(i=0;i<n.length;i++)l=n[i],r.indexOf(l)===-1&&{}.propertyIsEnumerable.call(t,l)&&(o[l]=t[l])}return o}function Nf(t,r){if(t==null)return{};var l={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(r.indexOf(i)!==-1)continue;l[i]=t[i]}return l}function u7(){return u7=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var l=arguments[r];for(var i in l)({}).hasOwnProperty.call(l,i)&&(t[i]=l[i])}return t},u7.apply(null,arguments)}function yv(t,r){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);r&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),l.push.apply(l,i)}return l}function s7(t){for(var r=1;r<arguments.length;r++){var l=arguments[r]!=null?arguments[r]:{};r%2?yv(Object(l),!0).forEach(function(i){_f(t,i,l[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):yv(Object(l)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(l,i))})}return t}function _f(t,r,l){return(r=Rf(r))in t?Object.defineProperty(t,r,{value:l,enumerable:!0,configurable:!0,writable:!0}):t[r]=l,t}function Rf(t){var r=If(t,"string");return typeof r=="symbol"?r:r+""}function If(t,r){if(typeof t!="object"||!t)return t;var l=t[Symbol.toPrimitive];if(l!==void 0){var i=l.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function bv(t){return t&&t.map((r,l)=>U8.default.createElement(r.tag,s7({key:l},r.attr),bv(r.child)))}function M4(t){return r=>U8.default.createElement(kf,u7({attr:s7({},t.attr)},r),bv(t.child))}function kf(t){var r=l=>{var{attr:i,size:o,title:n}=t,h=Ef(t,Df),v=o||l.size||"1em",u;return l.className&&(u=l.className),t.className&&(u=(u?u+" ":"")+t.className),U8.default.createElement("svg",u7({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},l.attr,i,h,{className:u,style:s7(s7({color:t.color||l.color},l.style),t.style),height:v,width:v,xmlns:"http://www.w3.org/2000/svg"}),n&&U8.default.createElement("title",null,n),t.children)};return He!==void 0?U8.default.createElement(He.Consumer,null,l=>r(l)):r(pe)}function Tv(t){return M4({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z"},child:[]}]})(t)}function $v(t){return M4({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5-5 5z"},child:[]}]})(t)}function Ov(t){return M4({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 10h11v2H3v-2zm0-2h11V6H3v2zm0 8h7v-2H3v2zm15.01-3.13.71-.71a.996.996 0 0 1 1.41 0l.71.71c.39.39.39 1.02 0 1.41l-.71.71-2.12-2.12zm-.71.71-5.3 5.3V21h2.12l5.3-5.3-2.12-2.12z"},child:[]}]})(t)}function Fv(t){return M4({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M4 19V8h16v3.29c.72.22 1.4.54 2 .97V8c0-1.11-.89-2-2-2h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h7.68c-.3-.62-.5-1.29-.6-2H4zm6-15h4v2h-4V4z"},child:[]},{tag:"path",attr:{d:"M18 13c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm1.65 7.35L17.5 18.2V15h1v2.79l1.85 1.85-.7.71z"},child:[]}]})(t)}function Dv(t){return M4({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z"},child:[]}]})(t)}var G8=[{name:"Afghanistan",iso2:"af",dialCode:"93"},{name:"Albania",iso2:"al",dialCode:"355"},{name:"Algeria",iso2:"dz",dialCode:"213"},{name:"American Samoa",iso2:"as",dialCode:"1",priority:5,areaCodes:["684"]},{name:"Andorra",iso2:"ad",dialCode:"376"},{name:"Angola",iso2:"ao",dialCode:"244"},{name:"Anguilla",iso2:"ai",dialCode:"1",priority:6,areaCodes:["264"]},{name:"Antigua & Barbuda",iso2:"ag",dialCode:"1",priority:7,areaCodes:["268"]},{name:"Argentina",iso2:"ar",dialCode:"54"},{name:"Armenia",iso2:"am",dialCode:"374"},{name:"Aruba",iso2:"aw",dialCode:"297"},{name:"Ascension Island",iso2:"ac",dialCode:"247"},{name:"Australia",iso2:"au",dialCode:"61",priority:0},{name:"Austria",iso2:"at",dialCode:"43"},{name:"Azerbaijan",iso2:"az",dialCode:"994"},{name:"Bahamas",iso2:"bs",dialCode:"1",priority:8,areaCodes:["242"]},{name:"Bahrain",iso2:"bh",dialCode:"973"},{name:"Bangladesh",iso2:"bd",dialCode:"880"},{name:"Barbados",iso2:"bb",dialCode:"1",priority:9,areaCodes:["246"]},{name:"Belarus",iso2:"by",dialCode:"375"},{name:"Belgium",iso2:"be",dialCode:"32"},{name:"Belize",iso2:"bz",dialCode:"501"},{name:"Benin",iso2:"bj",dialCode:"229"},{name:"Bermuda",iso2:"bm",dialCode:"1",priority:10,areaCodes:["441"]},{name:"Bhutan",iso2:"bt",dialCode:"975"},{name:"Bolivia",iso2:"bo",dialCode:"591"},{name:"Bosnia & Herzegovina",iso2:"ba",dialCode:"387"},{name:"Botswana",iso2:"bw",dialCode:"267"},{name:"Brazil",iso2:"br",dialCode:"55"},{name:"British Indian Ocean Territory",iso2:"io",dialCode:"246"},{name:"British Virgin Islands",iso2:"vg",dialCode:"1",priority:11,areaCodes:["284"]},{name:"Brunei",iso2:"bn",dialCode:"673"},{name:"Bulgaria",iso2:"bg",dialCode:"359"},{name:"Burkina Faso",iso2:"bf",dialCode:"226"},{name:"Burundi",iso2:"bi",dialCode:"257"},{name:"Cambodia",iso2:"kh",dialCode:"855"},{name:"Cameroon",iso2:"cm",dialCode:"237"},{name:"Canada",iso2:"ca",dialCode:"1",priority:1,areaCodes:["204","226","236","249","250","263","289","306","343","354","365","367","368","382","387","403","416","418","428","431","437","438","450","584","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","902","905"]},{name:"Cape Verde",iso2:"cv",dialCode:"238"},{name:"Caribbean Netherlands",iso2:"bq",dialCode:"599",priority:1,areaCodes:["3","4","7"]},{name:"Cayman Islands",iso2:"ky",dialCode:"1",priority:12,areaCodes:["345"]},{name:"Central African Republic",iso2:"cf",dialCode:"236"},{name:"Chad",iso2:"td",dialCode:"235"},{name:"Chile",iso2:"cl",dialCode:"56"},{name:"China",iso2:"cn",dialCode:"86"},{name:"Christmas Island",iso2:"cx",dialCode:"61",priority:2,areaCodes:["89164"]},{name:"Cocos (Keeling) Islands",iso2:"cc",dialCode:"61",priority:1,areaCodes:["89162"]},{name:"Colombia",iso2:"co",dialCode:"57"},{name:"Comoros",iso2:"km",dialCode:"269"},{name:"Congo - Brazzaville",iso2:"cg",dialCode:"242"},{name:"Congo - Kinshasa",iso2:"cd",dialCode:"243"},{name:"Cook Islands",iso2:"ck",dialCode:"682"},{name:"Costa Rica",iso2:"cr",dialCode:"506"},{name:"C\xF4te d\u2019Ivoire",iso2:"ci",dialCode:"225"},{name:"Croatia",iso2:"hr",dialCode:"385"},{name:"Cuba",iso2:"cu",dialCode:"53"},{name:"Cura\xE7ao",iso2:"cw",dialCode:"599",priority:0},{name:"Cyprus",iso2:"cy",dialCode:"357"},{name:"Czech Republic",iso2:"cz",dialCode:"420"},{name:"Denmark",iso2:"dk",dialCode:"45"},{name:"Djibouti",iso2:"dj",dialCode:"253"},{name:"Dominica",iso2:"dm",dialCode:"1",priority:13,areaCodes:["767"]},{name:"Dominican Republic",iso2:"do",dialCode:"1",priority:2,areaCodes:["809","829","849"]},{name:"Ecuador",iso2:"ec",dialCode:"593"},{name:"Egypt",iso2:"eg",dialCode:"20"},{name:"El Salvador",iso2:"sv",dialCode:"503"},{name:"Equatorial Guinea",iso2:"gq",dialCode:"240"},{name:"Eritrea",iso2:"er",dialCode:"291"},{name:"Estonia",iso2:"ee",dialCode:"372"},{name:"Eswatini",iso2:"sz",dialCode:"268"},{name:"Ethiopia",iso2:"et",dialCode:"251"},{name:"Falkland Islands",iso2:"fk",dialCode:"500"},{name:"Faroe Islands",iso2:"fo",dialCode:"298"},{name:"Fiji",iso2:"fj",dialCode:"679"},{name:"Finland",iso2:"fi",dialCode:"358",priority:0},{name:"France",iso2:"fr",dialCode:"33"},{name:"French Guiana",iso2:"gf",dialCode:"594"},{name:"French Polynesia",iso2:"pf",dialCode:"689"},{name:"Gabon",iso2:"ga",dialCode:"241"},{name:"Gambia",iso2:"gm",dialCode:"220"},{name:"Georgia",iso2:"ge",dialCode:"995"},{name:"Germany",iso2:"de",dialCode:"49"},{name:"Ghana",iso2:"gh",dialCode:"233"},{name:"Gibraltar",iso2:"gi",dialCode:"350"},{name:"Greece",iso2:"gr",dialCode:"30"},{name:"Greenland",iso2:"gl",dialCode:"299"},{name:"Grenada",iso2:"gd",dialCode:"1",priority:14,areaCodes:["473"]},{name:"Guadeloupe",iso2:"gp",dialCode:"590",priority:0},{name:"Guam",iso2:"gu",dialCode:"1",priority:15,areaCodes:["671"]},{name:"Guatemala",iso2:"gt",dialCode:"502"},{name:"Guernsey",iso2:"gg",dialCode:"44",priority:1,areaCodes:["1481","7781","7839","7911"]},{name:"Guinea",iso2:"gn",dialCode:"224"},{name:"Guinea-Bissau",iso2:"gw",dialCode:"245"},{name:"Guyana",iso2:"gy",dialCode:"592"},{name:"Haiti",iso2:"ht",dialCode:"509"},{name:"Honduras",iso2:"hn",dialCode:"504"},{name:"Hong Kong",iso2:"hk",dialCode:"852"},{name:"Hungary",iso2:"hu",dialCode:"36"},{name:"Iceland",iso2:"is",dialCode:"354"},{name:"India",iso2:"in",dialCode:"91"},{name:"Indonesia",iso2:"id",dialCode:"62"},{name:"Iran",iso2:"ir",dialCode:"98"},{name:"Iraq",iso2:"iq",dialCode:"964"},{name:"Ireland",iso2:"ie",dialCode:"353"},{name:"Isle of Man",iso2:"im",dialCode:"44",priority:2,areaCodes:["1624","74576","7524","7924","7624"]},{name:"Israel",iso2:"il",dialCode:"972"},{name:"Italy",iso2:"it",dialCode:"39",priority:0},{name:"Jamaica",iso2:"jm",dialCode:"1",priority:4,areaCodes:["876","658"]},{name:"Japan",iso2:"jp",dialCode:"81"},{name:"Jersey",iso2:"je",dialCode:"44",priority:3,areaCodes:["1534","7509","7700","7797","7829","7937"]},{name:"Jordan",iso2:"jo",dialCode:"962"},{name:"Kazakhstan",iso2:"kz",dialCode:"7",priority:1,areaCodes:["33","7"]},{name:"Kenya",iso2:"ke",dialCode:"254"},{name:"Kiribati",iso2:"ki",dialCode:"686"},{name:"Kosovo",iso2:"xk",dialCode:"383"},{name:"Kuwait",iso2:"kw",dialCode:"965"},{name:"Kyrgyzstan",iso2:"kg",dialCode:"996"},{name:"Laos",iso2:"la",dialCode:"856"},{name:"Latvia",iso2:"lv",dialCode:"371"},{name:"Lebanon",iso2:"lb",dialCode:"961"},{name:"Lesotho",iso2:"ls",dialCode:"266"},{name:"Liberia",iso2:"lr",dialCode:"231"},{name:"Libya",iso2:"ly",dialCode:"218"},{name:"Liechtenstein",iso2:"li",dialCode:"423"},{name:"Lithuania",iso2:"lt",dialCode:"370"},{name:"Luxembourg",iso2:"lu",dialCode:"352"},{name:"Macau",iso2:"mo",dialCode:"853"},{name:"Madagascar",iso2:"mg",dialCode:"261"},{name:"Malawi",iso2:"mw",dialCode:"265"},{name:"Malaysia",iso2:"my",dialCode:"60"},{name:"Maldives",iso2:"mv",dialCode:"960"},{name:"Mali",iso2:"ml",dialCode:"223"},{name:"Malta",iso2:"mt",dialCode:"356"},{name:"Marshall Islands",iso2:"mh",dialCode:"692"},{name:"Martinique",iso2:"mq",dialCode:"596"},{name:"Mauritania",iso2:"mr",dialCode:"222"},{name:"Mauritius",iso2:"mu",dialCode:"230"},{name:"Mayotte",iso2:"yt",dialCode:"262",priority:1,areaCodes:["269","639"]},{name:"Mexico",iso2:"mx",dialCode:"52"},{name:"Micronesia",iso2:"fm",dialCode:"691"},{name:"Moldova",iso2:"md",dialCode:"373"},{name:"Monaco",iso2:"mc",dialCode:"377"},{name:"Mongolia",iso2:"mn",dialCode:"976"},{name:"Montenegro",iso2:"me",dialCode:"382"},{name:"Montserrat",iso2:"ms",dialCode:"1",priority:16,areaCodes:["664"]},{name:"Morocco",iso2:"ma",dialCode:"212",priority:0},{name:"Mozambique",iso2:"mz",dialCode:"258"},{name:"Myanmar (Burma)",iso2:"mm",dialCode:"95"},{name:"Namibia",iso2:"na",dialCode:"264"},{name:"Nauru",iso2:"nr",dialCode:"674"},{name:"Nepal",iso2:"np",dialCode:"977"},{name:"Netherlands",iso2:"nl",dialCode:"31"},{name:"New Caledonia",iso2:"nc",dialCode:"687"},{name:"New Zealand",iso2:"nz",dialCode:"64"},{name:"Nicaragua",iso2:"ni",dialCode:"505"},{name:"Niger",iso2:"ne",dialCode:"227"},{name:"Nigeria",iso2:"ng",dialCode:"234"},{name:"Niue",iso2:"nu",dialCode:"683"},{name:"Norfolk Island",iso2:"nf",dialCode:"672"},{name:"North Korea",iso2:"kp",dialCode:"850"},{name:"North Macedonia",iso2:"mk",dialCode:"389"},{name:"Northern Mariana Islands",iso2:"mp",dialCode:"1",priority:17,areaCodes:["670"]},{name:"Norway",iso2:"no",dialCode:"47",priority:0},{name:"Oman",iso2:"om",dialCode:"968"},{name:"Pakistan",iso2:"pk",dialCode:"92"},{name:"Palau",iso2:"pw",dialCode:"680"},{name:"Palestine",iso2:"ps",dialCode:"970"},{name:"Panama",iso2:"pa",dialCode:"507"},{name:"Papua New Guinea",iso2:"pg",dialCode:"675"},{name:"Paraguay",iso2:"py",dialCode:"595"},{name:"Peru",iso2:"pe",dialCode:"51"},{name:"Philippines",iso2:"ph",dialCode:"63"},{name:"Poland",iso2:"pl",dialCode:"48"},{name:"Portugal",iso2:"pt",dialCode:"351"},{name:"Puerto Rico",iso2:"pr",dialCode:"1",priority:3,areaCodes:["787","939"]},{name:"Qatar",iso2:"qa",dialCode:"974"},{name:"R\xE9union",iso2:"re",dialCode:"262",priority:0},{name:"Romania",iso2:"ro",dialCode:"40"},{name:"Russia",iso2:"ru",dialCode:"7",priority:0},{name:"Rwanda",iso2:"rw",dialCode:"250"},{name:"Samoa",iso2:"ws",dialCode:"685"},{name:"San Marino",iso2:"sm",dialCode:"378"},{name:"S\xE3o Tom\xE9 & Pr\xEDncipe",iso2:"st",dialCode:"239"},{name:"Saudi Arabia",iso2:"sa",dialCode:"966"},{name:"Senegal",iso2:"sn",dialCode:"221"},{name:"Serbia",iso2:"rs",dialCode:"381"},{name:"Seychelles",iso2:"sc",dialCode:"248"},{name:"Sierra Leone",iso2:"sl",dialCode:"232"},{name:"Singapore",iso2:"sg",dialCode:"65"},{name:"Sint Maarten",iso2:"sx",dialCode:"1",priority:21,areaCodes:["721"]},{name:"Slovakia",iso2:"sk",dialCode:"421"},{name:"Slovenia",iso2:"si",dialCode:"386"},{name:"Solomon Islands",iso2:"sb",dialCode:"677"},{name:"Somalia",iso2:"so",dialCode:"252"},{name:"South Africa",iso2:"za",dialCode:"27"},{name:"South Korea",iso2:"kr",dialCode:"82"},{name:"South Sudan",iso2:"ss",dialCode:"211"},{name:"Spain",iso2:"es",dialCode:"34"},{name:"Sri Lanka",iso2:"lk",dialCode:"94"},{name:"St Barth\xE9lemy",iso2:"bl",dialCode:"590",priority:1},{name:"St Helena",iso2:"sh",dialCode:"290"},{name:"St Kitts & Nevis",iso2:"kn",dialCode:"1",priority:18,areaCodes:["869"]},{name:"St Lucia",iso2:"lc",dialCode:"1",priority:19,areaCodes:["758"]},{name:"St Martin",iso2:"mf",dialCode:"590",priority:2},{name:"St Pierre & Miquelon",iso2:"pm",dialCode:"508"},{name:"St Vincent & Grenadines",iso2:"vc",dialCode:"1",priority:20,areaCodes:["784"]},{name:"Sudan",iso2:"sd",dialCode:"249"},{name:"Suriname",iso2:"sr",dialCode:"597"},{name:"Svalbard & Jan Mayen",iso2:"sj",dialCode:"47",priority:1,areaCodes:["79"]},{name:"Sweden",iso2:"se",dialCode:"46"},{name:"Switzerland",iso2:"ch",dialCode:"41"},{name:"Syria",iso2:"sy",dialCode:"963"},{name:"Taiwan",iso2:"tw",dialCode:"886"},{name:"Tajikistan",iso2:"tj",dialCode:"992"},{name:"Tanzania",iso2:"tz",dialCode:"255"},{name:"Thailand",iso2:"th",dialCode:"66"},{name:"Timor-Leste",iso2:"tl",dialCode:"670"},{name:"Togo",iso2:"tg",dialCode:"228"},{name:"Tokelau",iso2:"tk",dialCode:"690"},{name:"Tonga",iso2:"to",dialCode:"676"},{name:"Trinidad & Tobago",iso2:"tt",dialCode:"1",priority:22,areaCodes:["868"]},{name:"Tunisia",iso2:"tn",dialCode:"216"},{name:"Turkey",iso2:"tr",dialCode:"90"},{name:"Turkmenistan",iso2:"tm",dialCode:"993"},{name:"Turks & Caicos Islands",iso2:"tc",dialCode:"1",priority:23,areaCodes:["649"]},{name:"Tuvalu",iso2:"tv",dialCode:"688"},{name:"Uganda",iso2:"ug",dialCode:"256"},{name:"Ukraine",iso2:"ua",dialCode:"380"},{name:"United Arab Emirates",iso2:"ae",dialCode:"971"},{name:"United Kingdom",iso2:"gb",dialCode:"44",priority:0},{name:"United States",iso2:"us",dialCode:"1",priority:0},{name:"Uruguay",iso2:"uy",dialCode:"598"},{name:"US Virgin Islands",iso2:"vi",dialCode:"1",priority:24,areaCodes:["340"]},{name:"Uzbekistan",iso2:"uz",dialCode:"998"},{name:"Vanuatu",iso2:"vu",dialCode:"678"},{name:"Vatican City",iso2:"va",dialCode:"39",priority:1,areaCodes:["06698"]},{name:"Venezuela",iso2:"ve",dialCode:"58"},{name:"Vietnam",iso2:"vn",dialCode:"84"},{name:"Wallis & Futuna",iso2:"wf",dialCode:"681"},{name:"Western Sahara",iso2:"eh",dialCode:"212",priority:1,areaCodes:["5288","5289"]},{name:"Yemen",iso2:"ye",dialCode:"967"},{name:"Zambia",iso2:"zm",dialCode:"260"},{name:"Zimbabwe",iso2:"zw",dialCode:"263"},{name:"\xC5land Islands",iso2:"ax",dialCode:"358",priority:1,areaCodes:["18"]}];function Me(t){return t?t.toUpperCase().split("").map(r=>String.fromCodePoint(127397+r.charCodeAt(0))).join(""):"\u{1F310}"}function $6(t){if(t)return G8.find(r=>r.iso2.toLowerCase()===t.toLowerCase())}function O6(t){if(!t)return;let r=String(t).replace(/[^0-9]/g,"");if(r)return G8.find(l=>l.dialCode===r||l.areaCodes?.includes(r))}function S5(t){return`+${t.dialCode}`}var Iv=E(Ev(),1);var Uf=/^([\w-.]+@([\w-]+\.)+[\w-]{2,25})?$/,fe=Iv.default.PhoneNumberUtil.getInstance();function kv(t){return t.formGroupName||t.masterApplyFields.fieldNameForApply}function Ae(t){return String(t?.phoneNumField?.nationalNumber||t?.phoneNumField?.number||"").trim()}function Gf(t){return y5(t?.phoneNumField?.dialCode)}function F6(t){return String(t||"").replace(/\D+/g,"")}function y5(t){let r=F6(t);return r?`+${r}`:""}function Ve(t,r){let l=F6(r);return l?`${y5(t)}${l}`:""}var Wf=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function jf(t){if(!t)return t;if(t instanceof Date&&!Number.isNaN(t.getTime())){let n=t.getFullYear(),h=String(t.getMonth()+1).padStart(2,"0"),v=String(t.getDate()).padStart(2,"0");return`${n}-${h}-${v}`}let r=String(t).trim(),l=r.match(/^(\d{4})-(\d{2})-(\d{2})/);if(l)return`${l[1]}-${l[2]}-${l[3]}`;let i=r.match(/^(\d{1,2})\s+([A-Za-z]{3,})\s+(\d{4})$/);if(i){let n=Wf.findIndex(h=>h.toLowerCase()===i[2].slice(0,3).toLowerCase());if(n>=0)return`${i[3]}-${String(n+1).padStart(2,"0")}-${String(Number(i[1])).padStart(2,"0")}`}let o=new Date(r);if(!Number.isNaN(o.getTime())){let n=o.getFullYear(),h=String(o.getMonth()+1).padStart(2,"0"),v=String(o.getDate()).padStart(2,"0");return`${n}-${h}-${v}`}return t}function K2(t){return t?t.split(",").map(r=>r.trim()).filter(Boolean):[]}function Uv(t,r=2){if(t===0)return"0 Bytes";let l=["Bytes","KB","MB","GB","TB"],i=1024,o=Math.floor(Math.log(t)/Math.log(i));return`${(t/Math.pow(i,o)).toFixed(r)} ${l[o]}`}function H7(t,r=4){let l=t==null?"":String(t);if(!l)return"";let i=Array.from(l),o=0;for(let n=i.length-1;n>=0;n-=1)if(!/\s/.test(i[n])){if(o<r){o+=1;continue}i[n]="\u2022"}return i.join("")}function M7(t){let r=t instanceof Date?t:new Date(t);if(Number.isNaN(r.getTime()))return null;let l=new Date,i=l.getFullYear()-r.getFullYear(),o=l.getMonth()-r.getMonth();return(o<0||o===0&&l.getDate()<r.getDate())&&(i-=1),i}function p7(t,r){let l=r?.reponseObject?.parsedResult?.profile,i=l?.PersonalDetails,o=r?.reponseObject?.jobApplication;return[i?.[t],l?.[t],o?.[t]].find(h=>h!=null&&h!=="null")??""}function Gv(t){return t.fieldOptions?Array.isArray(t.fieldOptions)?t.fieldOptions.map(r=>r.value):K2(t.fieldOptions):[]}function f7(t,r){let l=r.trim().toLowerCase();return l?t.filter(i=>i.toLowerCase().includes(l)):t}function qf(t){return t.recruiterUploads==="Mandatory"}function c2(t){return String(t.fieldType||"").toLowerCase()==="consent"}function h2(t,r,l){let i=r.find(v=>K2(v.dependentFieldsName).includes(t));if(!i)return!0;let o=K2(i.dependentFieldsName),n=K2(i.dependentFieldsValues),h=l[i.masterApplyFields.fieldNameForApply];return o.some((v,u)=>v===t&&n[u]===h)}function Nv(t,r,l){return qf(t)&&h2(t.masterApplyFields.fieldNameForApply,r,l)}function Wv(t){return t.recruiterUploadsLabel?.trim()||t.masterApplyFields.fieldNameForApply||"This field"}function _v(t){let r=Wv(t);return t.fieldType==="checkbox"||c2(t)?`Please select ${r}`:t.fieldType==="D"?`Please select ${r}`:`${r} is required`}function Rv(t){let r=Wv(t);return t.fieldType==="email"||t.masterApplyFields.fieldNameForApply==="emailId"?"Please enter a valid email address":t.fieldType==="D"?`Please select a valid ${r}`:t.fieldType==="date"?`Please enter a valid ${r}`:t.fieldType==="location"?`Please enter a valid ${r}`:`Please enter a valid ${r}`}function Kf(t){let r=String(t||"").trim();return r?new RegExp(`^(?:${r})$`):null}function Yf(t,r){let l=$6(t.selectedCountryCode);return(O6(Gf(r))||l)?.iso2?.toUpperCase()||void 0}function Xf(t,r){let l=F6(Ae(r));if(!l)return!0;let i=Yf(t,r);try{let o=fe.parseAndKeepRawInput(l,i);return i?fe.isValidNumberForRegion(o,i):fe.isValidNumber(o)}catch{return!1}}function W8(t,r,l,i){let o=t.masterApplyFields.fieldNameForApply;if(!o||o==="uploadResume")return null;let n=t.errorMessage&&t.errorMessage.toUpperCase()!=="NULL"?t.errorMessage:null;if(t.fieldType==="phone"){let h=Ae(r);return Nv(t,l,i)&&!h?_v(t):h?Xf(t,r)?null:n||"Provide a valid Phone number":null}if(Nv(t,l,i)&&(r==null||r===""||typeof r=="boolean"&&r===!1))return _v(t);if(typeof r!="string"||!r)return null;if(t.fieldType==="email"&&!Uf.test(r))return n||Rv(t);if(t.pattern)try{let h=Kf(t.pattern);if(!h)return null;if(!h.test(r))return n||Rv(t)}catch{return null}return null}function jv(t,r){if(!r)return{isValid:!0};let l=(r.fileFormat||[]).map(n=>String(n).trim().toLowerCase().replace(/^\./,"")),i=t.name.includes(".")&&t.name.split(".").pop()?.trim().toLowerCase()||"";if(!(l.length===0||l.includes(i)))return{isValid:!1,reason:r?.errorFormat||`Unsupported file type for: ${t.name}. Please upload a supported file.`};if(r.fileSize){let n=r.fileSize*1024*1024;if(t.size>n)return{isValid:!1,reason:r?.errorSize||`File size should be ${r.fileSize} MB or less.`}}return{isValid:!0}}function me(t){return{countryIsoCode:t?.countryIsoCode??"IN",whatsAppEnabled:t?.whatsAppEnabled??!1,maxCount:t?.maxCount??3}}function qv(t){return{phoneType:"Mobile",phoneNumField:null,whatsAppEnabled:me(t).whatsAppEnabled}}function Kv(t,r){let l=me(r),i=1;return t.map(o=>{if(o.fieldType!=="phone")return{...o};let n=`phoneField${i}`;return i+=1,{...o,formGroupName:n,selectedCountryCode:l.countryIsoCode,primaryPhoneNumber:n==="phoneField1"}})}function j8(t){let r={},l=me(t.phoneConfiguration);return t.fields.forEach(i=>{let o=i.masterApplyFields.fieldNameForApply;if(!o||o==="uploadResume")return;if(i.fieldType==="phone"){let h=p7("phoneNoWithoutCountryCode",t.parsedResume),v=p7("countryCode",t.parsedResume)||l.countryIsoCode;r[i.formGroupName||"phoneField1"]={phoneType:"Mobile",phoneNumField:h?{nationalNumber:F6(h),dialCode:y5(v),number:F6(h),e164Number:String(p7("phoneNo",t.parsedResume)||Ve(v,h))}:null,whatsAppEnabled:l.whatsAppEnabled};return}if(i.fieldType==="checkbox"||c2(i)){r[o]=!1;return}if(i.fieldType==="T"&&o==="subSource"&&!t.parsedResume){r[o]=t.userName;return}let n=p7(o,t.parsedResume);r[o]=n}),r}function Yv(t,r){let l=t.filter(i=>c2(i)).map(i=>{let o=kv(i);return[i.masterApplyFields.fieldNameForApply,!!r[o]]}).filter(([i])=>!!i);return Object.fromEntries(l)}function q8(t,r){let l=new Map,i={};return t.filter(o=>o.fieldType==="phone").forEach(o=>{let n=kv(o),h=r[n],v=Ae(h);if(!v)return;let u=Ve(h?.phoneNumField?.dialCode,v);if(l.has(u)){i[n]="Duplicate phone numbers are not allowed";let s=l.get(u);s&&!i[s]&&(i[s]="Duplicate phone numbers are not allowed");return}l.set(u,n)}),i}function Xv(t,r){let l={...t};return r.forEach(i=>{l[i]=jf(l[i])}),l}function Qv(t){let{profileSources:r,selectedSourceOfProfile:l,selectedProfileSource:i,freeTextSubSource:o}=t,n=o?.trim()||"";if(!l&&!i)return n;let h=r.find(u=>(u.sourceOfProfile||"")===(l||"")&&u.profileSource===i);if(!l)return i||n;let v=`${l}-${i||h?.profileSource||""}`;return n?`${v}-${n}`:v}function Jv(t,r){return t.filter(l=>l.fieldType==="phone").map(l=>({field:l,phoneValue:r[l.formGroupName||"phoneField1"]})).filter(l=>!!l.phoneValue?.phoneNumField).map(({field:l,phoneValue:i})=>{let o=y5(i.phoneNumField?.dialCode),n=F6(i.phoneNumField?.nationalNumber||i.phoneNumField?.number);return{phoneType:i.phoneType,associatedEntityType:"CANDIDATE",primary:!!l.primaryPhoneNumber,whatsappEnabled:i.whatsAppEnabled,countryCode:o,number:n}})}function tg(t){let r={...t.values},l=t.parsedResume?.reponseObject?.jobApplication||{};t.fields.filter(s=>s.fieldType==="phone").map(s=>s.formGroupName||"phoneField1").forEach(s=>{delete r[s]});let o=t.fields.find(s=>s.fieldType==="phone"&&s.primaryPhoneNumber),n=o?t.values[o.formGroupName||"phoneField1"]:void 0,h={...l,...r,subSource:t.subSourceValue,companyId:t.context.job.companyId,jobId:t.context.job.id,fileName:t.file?.name||""};n?.phoneNumField&&(h.phoneNo=n.phoneNumField.e164Number||Ve(n.phoneNumField.dialCode,n.phoneNumField.nationalNumber),h.phoneNoWithoutCountryCode=F6(n.phoneNumField.number??n.phoneNumField.nationalNumber),h.countryCode=y5(n.phoneNumField.dialCode));let v={data:JSON.stringify(h),referrerEmailId:t.context.user.email,referrerId:t.context.user.id,sendNotification:t.sendNotification?"Yes":"No",profile:"{}"},u=new FormData;return u.append("addProfileReqBody",JSON.stringify(v)),t.file&&u.append("file",t.file),u.append("parsedResultId",String(t.parsedResume?.reponseObject?.parsedObjectId||"")),u.append("isAsync","false"),t.contactInformation&&t.contactInformation.length>0&&u.append("contactInformation",JSON.stringify(t.contactInformation)),t.consent&&Object.keys(t.consent).length>0&&u.append("consent",JSON.stringify(t.consent)),u}async function ag(t,r){let l=await t.loadInitialData(r),i=Kv(l.applyFields,l.phoneConfiguration),o=j8({fields:i,userName:r.user.name,phoneConfiguration:l.phoneConfiguration});return{initialization:l,fields:i,values:o}}function rg(t){return j8({fields:t.fields,parsedResume:t.parsedResume,userName:t.context.user.name,phoneConfiguration:t.initialization.phoneConfiguration})}async function lg(t){let r=t.fields.filter(v=>v.fieldType==="date").map(v=>v.masterApplyFields.fieldNameForApply),l=Xv(t.values,r),i=Jv(t.fields,l),o=Yv(t.fields,l),n=Qv({profileSources:t.profileSources,selectedSourceOfProfile:t.selectedSourceOfProfile,selectedProfileSource:t.selectedProfileSource,freeTextSubSource:t.subSourceText}),h=tg({fields:t.fields,context:t.context,file:t.file,values:l,parsedResume:t.parsedResume,contactInformation:i,consent:Object.keys(o).length>0?o:t.consent,sendNotification:t.sendNotification,subSourceValue:n});return t.api.submitProfile(h,t.context)}var I1=E(I(),1);function K8(t){return t.formGroupName||t.masterApplyFields.fieldNameForApply}function eg(t,r){return t.find(l=>K8(l)===r||l.masterApplyFields.fieldNameForApply===r)}function A7(t,r,l){let i={};return t.forEach(o=>{let n=K8(o);if(!n)return;let h=W8(o,l[n],r,l);h&&(i[n]=h)}),Object.assign(i,q8(t,l)),i}function Qf(t,r,l,i){let o={...i},n=eg(r,t);if(!n?.dependentFieldsName)return o;let h=K2(n.dependentFieldsName);return[...new Set(h)].forEach(u=>{let s=r.find(M=>M.masterApplyFields.fieldNameForApply===u);if(!s)return;let p=K8(s);if(!h2(u,r,l)){delete o[p];return}let A=W8(s,l[p],r,l);A?o[p]=A:delete o[p]}),o}function ig(t){let[r,l]=(0,I1.useState)(null),[i,o]=(0,I1.useState)([]),[n,h]=(0,I1.useState)({}),[v,u]=(0,I1.useState)(null),[s,p]=(0,I1.useState)(null),[A,M]=(0,I1.useState)(null),[H,Z]=(0,I1.useState)(!1),[L,w]=(0,I1.useState)(!1),[m,V]=(0,I1.useState)(!1),[x,z]=(0,I1.useState)({}),[B,S]=(0,I1.useState)(!1),[$,y]=(0,I1.useState)(""),[O,T]=(0,I1.useState)(""),[D,k]=(0,I1.useState)(""),[W,G]=(0,I1.useState)(!0);(0,I1.useEffect)(()=>{if(!t.open)return;let i1=!1;return Z(!0),M(null),p(null),u(null),z({}),S(!1),ag(t.api,t.context).then(l1=>{i1||(l(l1.initialization),o(l1.fields),h(l1.values),k(l1.initialization.profileSources?.length?"":t.context.user.name))}).finally(()=>{i1||Z(!1)}),()=>{i1=!0}},[t.api,t.context,t.open]);let R=(0,I1.useMemo)(()=>i.filter(i1=>{let l1=i1.masterApplyFields.fieldNameForApply;return l1&&l1!=="uploadResume"&&!c2(i1)&&h2(l1,i,n)}),[i,n]),Y=(0,I1.useMemo)(()=>i.filter(i1=>i1.fieldType==="phone"),[i]),M1=!!(r&&Y.length<r.phoneConfiguration.maxCount),K=r?.resumeOptional===!0,d1=!!(!!(s||K&&A==="manual")&&!H&&!L&&!m);(0,I1.useEffect)(()=>{let i1=new Set(R.map(l1=>K8(l1)).filter(Boolean));z(l1=>{let r1={};return Object.entries(l1).forEach(([i0,o0])=>{(i0==="file"||i1.has(i0))&&(r1[i0]=o0)}),B?{...r1,...A7(R,i,n)}:r1})},[i,n,B,R]);function z1(i1,l1){let r1={...n,[i1]:l1};if(i1==="dateOfBirth"){let C1=M7(String(l1));C1!=null&&"agee"in r1&&(r1.agee=C1)}h(r1),z(C1=>{let i0={...C1};delete i0[i1];let o0=Qf(i1,i,r1,i0);if(!B)return o0;let A0=new Set(i.filter(V0=>{let Y2=V0.masterApplyFields.fieldNameForApply;return Y2&&Y2!=="uploadResume"&&!c2(V0)&&h2(Y2,i,r1)}).map(V0=>K8(V0)));return Object.keys(o0).forEach(V0=>{V0!=="file"&&!A0.has(V0)&&delete o0[V0]}),{...o0,...A7(i.filter(V0=>{let Y2=V0.masterApplyFields.fieldNameForApply;return Y2&&Y2!=="uploadResume"&&!c2(V0)&&h2(Y2,i,r1)}),i,r1)}})}function P(){S(!0);let i1=A7(R,i,n);return z(l1=>({...l1,...i1})),Object.keys(i1).length===0}function F(i1){let l1=eg(i,i1);if(!l1)return;let r1={...n},C1=K8(l1);if(!h2(l1.masterApplyFields.fieldNameForApply,i,r1)){z(o0=>{let A0={...o0};return delete A0[C1],A0});return}let i0=W8(l1,r1[C1],i,r1);z(o0=>{let A0={...o0};return i0?A0[C1]=i0:delete A0[C1],Object.assign(A0,q8(R,r1)),A0})}function q(){if(p(null),u(null),M(null),z(i1=>{let l1={...i1};return delete l1.file,l1}),!r){h({});return}h(j8({fields:i,userName:t.context.user.name,phoneConfiguration:r.phoneConfiguration}))}function X(){r?.resumeOptional===!0&&(M("manual"),p(null),u(null),S(!1),z(i1=>{let l1={...i1};return delete l1.file,l1}),r&&h(j8({fields:i,userName:t.context.user.name,phoneConfiguration:r.phoneConfiguration})))}async function U(i1){if(!r)return;let l1=jv(i1,r.supportedFiles.addProfile);if(!l1.isValid){z(r1=>({...r1,file:l1.reason||"Unsupported file"}));return}M("resume"),p(i1),w(!0),z(r1=>{let C1={...r1};return delete C1.file,C1});try{let r1=await t.api.parseResume(i1,t.context),C1=r1?.responseStatus,i0=r1?.responseCode;if(C1==="FAILURE"||typeof i0=="number"&&i0!==200){let V0=r1?.reponseObject?.errorMessage||"Failed to process the file. Please try again.";p(null),M(null),u(null),z(Y2=>({...Y2,file:V0}));return}let A0=rg({fields:i,context:t.context,parsedResume:r1,initialization:r});return u(r1),h(V0=>({...V0,...A0})),{isSuccess:!0}}catch{u(null),p(null),M(null),z(r1=>({...r1,file:"Failed to process the file. Please try again."}))}finally{w(!1)}}async function V1(){if(!r)return null;if(!(r.resumeOptional===!0&&A==="manual")&&!s)return z(r1=>({...r1,file:"Please upload a resume before submitting"})),null;S(!0);let l1=A7(R,i,n);if(Object.keys(l1).length>0)return z(r1=>({...r1,...l1})),null;V(!0);try{return await lg({api:t.api,context:t.context,fields:i,values:n,file:s,parsedResume:v,sendNotification:W,profileSources:r.profileSources,selectedSourceOfProfile:$||void 0,selectedProfileSource:O||void 0,subSourceText:D})}finally{V(!1)}}function n1(){return R}function Y1(i1,l1){let r1=Array.isArray(i1.fieldOptions)?i1.fieldOptions.map(C1=>C1.value):String(i1.fieldOptions||"").split(",").map(C1=>C1.trim()).filter(Boolean);return f7(r1,l1)}function G1(i1){if(!r||!M1)return;let l1=Y.reduce((C1,i0)=>{let o0=i0.formGroupName?.match(/^phoneField(\d+)$/),A0=o0?Number(o0[1]):1;return Math.max(C1,A0)},1)+1,r1={...i1,recruiterUploads:"Non Mandatory",primaryPhoneNumber:!1,formGroupName:`phoneField${l1}`,selectedCountryCode:r.phoneConfiguration.countryIsoCode};o(C1=>{let i0=C1.findIndex(A0=>A0.formGroupName===i1.formGroupName);if(i0===-1)return[...C1,r1];let o0=[...C1];return o0.splice(i0+1,0,r1),o0}),h(C1=>({...C1,[r1.formGroupName||`phoneField${l1}`]:qv(r.phoneConfiguration)}))}function X1(i1){i1.primaryPhoneNumber||!i1.formGroupName||(o(l1=>l1.filter(r1=>r1.formGroupName!==i1.formGroupName)),h(l1=>{let r1={...l1};return delete r1[i1.formGroupName],r1}))}return{initialization:r,fields:i,formValues:n,parsedResume:v,selectedFile:s,creationMode:A,isInitializing:H,isParsing:L,isSubmitting:m,errors:x,sourceOfProfile:$,profileSource:O,subSourceText:D,sendNotification:W,canSubmit:d1,setFieldValue:z1,validateAll:P,validateField:F,setSourceOfProfile:y,setProfileSource:T,setSubSourceText:k,setSendNotification:G,clearSelectedFile:q,startManualEntry:X,uploadFile:U,submit:V1,getVisibleFields:n1,getDropdownOptions:Y1,addPhoneField:G1,removePhoneField:X1,canAddMorePhoneFields:M1,phoneFieldCount:Y.length}}var Hg=E(ea(),1),og=["in","us"];function Y8(){return(0,C.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:(0,C.jsx)("path",{d:"M6 6l12 12M18 6L6 18",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}function ng(){return(0,C.jsx)($v,{"aria-hidden":"true"})}function Jf(){return(0,C.jsxs)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:[(0,C.jsx)("circle",{cx:"12",cy:"12",r:"9",fill:"none",stroke:"currentColor",strokeWidth:"1.8"}),(0,C.jsx)("path",{d:"M12 10.2v5.2",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),(0,C.jsx)("circle",{cx:"12",cy:"7.4",r:"1.1",fill:"currentColor"})]})}function tA(){return(0,C.jsxs)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:[(0,C.jsx)("path",{d:"M12 21s-6-5.1-6-11a6 6 0 1112 0c0 5.9-6 11-6 11z",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0,C.jsx)("circle",{cx:"12",cy:"10",r:"2.5",fill:"currentColor"})]})}function aA(){return(0,C.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:(0,C.jsx)("path",{d:"M7 3v3m10-3v3M4 9h16M6 5h12a1 1 0 011 1v13a1 1 0 01-1 1H6a1 1 0 01-1-1V6a1 1 0 011-1z",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})})}function dg(){return(0,C.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:(0,C.jsx)("path",{d:"M12 5v14M5 12h14",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}function rA(){return(0,C.jsxs)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:[(0,C.jsx)("path",{d:"M6 12h12",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round"}),(0,C.jsx)("circle",{cx:"12",cy:"12",r:"9",fill:"none",stroke:"currentColor",strokeWidth:"1.8"})]})}function lA({onAdd:t,onRemove:r}){let[l,i]=(0,c1.useState)(!1),o=(0,c1.useRef)(null);return(0,c1.useEffect)(()=>{if(!l)return;function n(h){o.current&&!o.current.contains(h.target)&&i(!1)}return document.addEventListener("pointerdown",n),()=>document.removeEventListener("pointerdown",n)},[l]),(0,C.jsxs)("div",{ref:o,className:"rae-phone-menu",children:[(0,C.jsx)("button",{type:"button",className:"rae-phone-action rae-phone-action--edit","aria-label":"Phone options",onClick:()=>i(n=>!n),children:(0,C.jsx)(Dv,{"aria-hidden":!0})}),l?(0,C.jsxs)("div",{className:"rae-phone-menu__dropdown",children:[(0,C.jsx)("button",{type:"button",className:"rae-phone-menu__item",onClick:()=>{t(),i(!1)},children:"Add another"}),(0,C.jsx)("button",{type:"button",className:"rae-phone-menu__item rae-phone-menu__item--remove",onClick:()=>{r(),i(!1)},children:"Remove"})]}):null]})}function Ce(){return(0,C.jsx)("svg",{viewBox:"0 0 20 20","aria-hidden":"true",children:(0,C.jsx)("path",{d:"M5 10.5l3 3 7-7",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function eA(){return(0,C.jsx)("svg",{viewBox:"0 0 20 20","aria-hidden":"true",children:(0,C.jsx)("path",{d:"M8.5 14a5.5 5.5 0 114.1-1.83L16 15.58 14.58 17l-3.4-3.4A5.47 5.47 0 018.5 14zm0-2a3.5 3.5 0 100-7 3.5 3.5 0 000 7z",fill:"currentColor"})})}function X8(){return(0,C.jsx)("span",{className:"rae-spinner","aria-hidden":"true"})}function vg(t,r=".rae-select-options",l=12){t instanceof HTMLElement&&window.requestAnimationFrame(()=>{let i=t.closest(".rae-modal__body--expanded")||t.closest(".rae-modal__body"),o=t.querySelector(r);if(!(i instanceof HTMLElement)||!(o instanceof HTMLElement))return;let n=i.getBoundingClientRect(),h=o.getBoundingClientRect(),v=h.bottom-(n.bottom-l),u=n.top+l-h.top;if(v>0){i.scrollTop+=v;return}u>0&&(i.scrollTop-=u)})}function iA(t){let r=t.minYearOfExperience,l=t.maxYearOfExperience;return!r&&!l?"Not Specified":r&&l?`${r} - ${l} Years`:r?`${r}+ Years`:`Up to ${l} Years`}var gg=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ug(t){if(!t)return"";if(t instanceof Date&&!Number.isNaN(t.getTime())){let n=t.getFullYear(),h=String(t.getMonth()+1).padStart(2,"0"),v=String(t.getDate()).padStart(2,"0");return`${n}-${h}-${v}`}let r=String(t).trim(),l=r.match(/^(\d{4})-(\d{2})-(\d{2})/);if(l)return`${l[1]}-${l[2]}-${l[3]}`;let i=r.match(/^(\d{1,2})\s+([A-Za-z]{3,})\s+(\d{4})$/);if(i){let n=gg.findIndex(h=>h.toLowerCase()===i[2].slice(0,3).toLowerCase());if(n>=0)return`${i[3]}-${String(n+1).padStart(2,"0")}-${String(Number(i[1])).padStart(2,"0")}`}let o=new Date(r);if(!Number.isNaN(o.getTime())){let n=o.getFullYear(),h=String(o.getMonth()+1).padStart(2,"0"),v=String(o.getDate()).padStart(2,"0");return`${n}-${h}-${v}`}return""}function oA(t){let r=ug(t);if(!r)return"";let[l,i,o]=r.split("-");return`${o} ${gg[Number(i)-1]} ${l}`}function $5(t){return t.formGroupName||t.masterApplyFields.fieldNameForApply}function Le(t){return String(t||"").replace(/\D+/g,"")}function V7(t){let r=Le(t);return r?`+${r}`:""}function nA(t){let r=t||{},l=r.code??r.responseCode,i=typeof l=="number"?l:void 0,o=typeof r.message=="string"&&r.message||typeof r.errorMessage=="string"&&r.errorMessage||"Something went wrong, Please try again!";return i===void 0||i===200?{isSuccess:!0,toast:{kind:"success",message:typeof r.message=="string"&&r.message?r.message:"Profile Added Successfully"}}:i===403||i===500?{isSuccess:!1,toast:{kind:"warning",message:o}}:{isSuccess:!1,toast:{kind:"error",message:o}}}function cg(t){t instanceof HTMLElement&&window.setTimeout(()=>{let r=t.querySelector(".rae-field-error");if(!(r instanceof HTMLElement))return;let l=r.closest(".rae-field")||r;if(!(l instanceof HTMLElement))return;let i=t.querySelector(".rae-modal__body--expanded")||t.querySelector(".rae-modal__body");if(i instanceof HTMLElement){let n=l.getBoundingClientRect(),h=i.getBoundingClientRect(),v=n.top-h.top+i.scrollTop-80;i.scrollTo({top:Math.max(0,v),behavior:"smooth"})}else l.scrollIntoView({behavior:"smooth",block:"center"});let o=l.querySelector("input, button, textarea, [role='combobox'], [role='button']");o instanceof HTMLElement&&o.focus({preventScroll:!0})},100)}function cA(t){let[r,l]=(0,c1.useState)(""),i=O6(t.selectedDialCode)||$6(t.selectedIso2)||$6("IN")||G8[0],o=c1.default.useMemo(()=>{let n=r.trim().toLowerCase(),h=s=>n?s.name.toLowerCase().includes(n)||s.iso2.toLowerCase().includes(n)||`+${s.dialCode}`.includes(n):!0,v=G8.filter(s=>og.includes(s.iso2.toLowerCase())&&h(s)),u=G8.filter(s=>!og.includes(s.iso2.toLowerCase())&&h(s));return[...v,...u]},[r]);return(0,C.jsxs)(iv,{value:i,onChange:n=>{n&&t.onSelect(n),l("")},immediate:!0,children:[(0,C.jsx)("input",{type:"hidden",name:t.name||"countryCode",value:i?.iso2||""}),(0,C.jsxs)("div",{className:"rae-country-select",children:[(0,C.jsxs)("div",{className:"rae-country-select__trigger-shell",children:[(0,C.jsx)("span",{className:"rae-country-select__flag","aria-hidden":"true",children:Me(i?.iso2)}),(0,C.jsx)(Ql,{className:"rae-country-select__trigger",displayValue:()=>i?S5(i):"+91",onChange:n=>l(n.target.value),autoComplete:"off",placeholder:"+91","aria-label":"Search country code"}),(0,C.jsx)(Xl,{className:"rae-country-select__button",children:(0,C.jsx)("span",{className:"rae-country-select__arrow","aria-hidden":"true",children:"\u25BE"})})]}),(0,C.jsx)(Jl,{className:"rae-country-select__menu",children:(0,C.jsx)("div",{className:"rae-country-select__list",role:"listbox","aria-label":"Country code options",children:o.map(n=>(0,C.jsxs)(te,{value:n,className:"rae-country-select__option",children:[(0,C.jsx)("span",{className:"rae-country-select__flag","aria-hidden":"true",children:Me(n.iso2)}),(0,C.jsx)("span",{className:"rae-country-select__option-code",children:S5(n)}),(0,C.jsx)("span",{className:"rae-country-select__name",children:n.name})]},`${n.iso2}-${n.dialCode}-${n.priority??0}`))})})]})]})}function l6(t){return(0,C.jsx)(oe,{id:t.id,name:t.name,className:`rae-field-input${t.className?` ${t.className}`:""}`,type:t.type||"text",value:t.value,placeholder:t.placeholder||"",onChange:t.onChange,onBlur:t.onBlur,onKeyDown:t.onKeyDown,"aria-invalid":t.invalid||void 0,autoComplete:t.autoComplete,inputMode:t.inputMode,readOnly:t.readOnly})}function sg(){return(0,C.jsx)("svg",{"aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,C.jsx)("polyline",{points:"6 9 12 15 18 9"})})}function T5(t){let r=t.options.find(n=>n.value===t.value),l=(0,c1.useRef)(null),i=t.id==="rae-source-of-profile"||t.id==="rae-profile-source"||t.id==="rae-sub-source-select"||t.id==="rae-profile-source-fallback",o=`rae-select-shell${t.shellClassName?` ${t.shellClassName}`:""}${i?" rae-footer-select":""}`;return(0,C.jsxs)(Sv,{value:t.value||"",onChange:n=>{t.onChange({target:{value:n}})},children:[(0,C.jsx)("input",{type:"hidden",id:t.id,name:t.name,value:t.value||""}),(0,C.jsxs)("div",{ref:l,className:o,children:[(0,C.jsxs)(ve,{className:`rae-field-input rae-field-input--button rae-select-button${t.invalid?" rae-field-input--invalid":""}`,onClick:()=>{vg(l.current)},onBlur:t.onBlur,children:[(0,C.jsx)("span",{className:`rae-select-button__text${r?"":" rae-select-button__text--placeholder"}`,children:r?.label||t.placeholder||"Select an option"}),(0,C.jsx)("span",{className:"rae-select-arrow","aria-hidden":"true",children:(0,C.jsx)(sg,{})})]}),(0,C.jsx)(ge,{className:"rae-select-options",children:t.options.map(n=>(0,C.jsxs)(ue,{value:n.value,className:"rae-select-option",children:[(0,C.jsx)("span",{className:"rae-select-option__label",children:n.label}),(0,C.jsx)("span",{className:"rae-select-option__check",children:(0,C.jsx)(Ce,{})})]},n.value))})]})]})}function hA(t){let[r,l]=(0,c1.useState)(""),[i,o]=(0,c1.useState)(!1),[n,h]=(0,c1.useState)(-1),v=(0,c1.useRef)(null),u=(0,c1.useRef)(null),s=H=>{H.stopPropagation()},p=t.options.find(H=>H.value===t.value)||null,A=c1.default.useMemo(()=>{let H=r.trim().toLowerCase();return H?t.options.filter(Z=>Z.label.toLowerCase().includes(H)):t.options},[t.options,r]);(0,c1.useEffect)(()=>{if(!i)return;let H=Z=>{v.current?.contains(Z.target)||(o(!1),l(""),t.onBlur?.())};return document.addEventListener("mousedown",H),()=>document.removeEventListener("mousedown",H)},[i]),(0,c1.useEffect)(()=>{i&&(window.requestAnimationFrame(()=>u.current?.focus()),vg(v.current))},[i]),(0,c1.useEffect)(()=>{if(!i||!A.length){h(-1);return}let H=A.findIndex(Z=>Z.value===t.value);h(H>=0?H:0)},[A,i,t.value]);let M=H=>{t.onChange({target:{value:H.value}}),o(!1),l("")};return(0,C.jsxs)("div",{ref:v,className:`rae-select-shell rae-searchable-select${i?" rae-select-shell--open":""}${t.shellClassName?` ${t.shellClassName}`:""}`,onBlur:H=>{H.currentTarget.contains(H.relatedTarget)||t.onBlur?.()},children:[(0,C.jsx)("input",{type:"hidden",id:t.id,name:t.name,value:t.value||""}),(0,C.jsxs)("button",{type:"button",className:`rae-field-input rae-field-input--button rae-select-button${t.invalid?" rae-field-input--invalid":""}`,onClick:()=>{o(H=>!H),i&&l("")},"aria-haspopup":"listbox","aria-expanded":i,children:[(0,C.jsx)("span",{className:`rae-select-button__text${p?"":" rae-select-button__text--placeholder"}`,children:p?.label||t.placeholder||"Select an option"}),(0,C.jsx)("span",{className:"rae-select-arrow","aria-hidden":"true",children:(0,C.jsx)(sg,{})})]}),i?(0,C.jsxs)("div",{className:"rae-select-options rae-searchable-options",role:"listbox",onMouseDown:s,onPointerDown:s,onClick:s,onWheel:s,children:[(0,C.jsx)("div",{className:"rae-searchable-options__search",children:(0,C.jsxs)("div",{className:"rae-searchable-options__search-box",children:[(0,C.jsx)(eA,{}),(0,C.jsx)("input",{ref:u,className:"rae-searchable-options__input",value:r,onChange:H=>l(H.target.value),placeholder:"Search...",autoComplete:"off","aria-label":`Search ${t.placeholder||"options"}`,onMouseDown:s,onPointerDown:s,onClick:s,onKeyDown:H=>{if(H.key==="ArrowDown"){H.preventDefault(),h(Z=>A.length?Math.min(Z+1,A.length-1):-1);return}if(H.key==="ArrowUp"){H.preventDefault(),h(Z=>A.length?Math.max(Z-1,0):-1);return}if(H.key==="Enter"&&n>=0&&A[n]){H.preventDefault(),M(A[n]);return}H.key==="Escape"&&(o(!1),l(""),t.onBlur?.())}})]})}),(0,C.jsx)("div",{className:"rae-searchable-options__list",children:A.length?A.map((H,Z)=>(0,C.jsxs)("button",{type:"button",role:"option","aria-selected":H.value===t.value,className:`rae-select-option${H.value===t.value?" rae-select-option--selected":""}${n===Z?" rae-select-option--active":""}`,onMouseEnter:()=>h(Z),onMouseDown:L=>{L.preventDefault(),L.stopPropagation()},onPointerDown:s,onClick:L=>{L.stopPropagation(),M(H)},children:[(0,C.jsx)("span",{className:"rae-select-option__label",children:H.label}),H.value===t.value?(0,C.jsx)("span",{className:"rae-select-option__check",children:(0,C.jsx)(Ce,{})}):null]},H.value)):(0,C.jsx)("div",{className:"rae-select-option rae-select-option--empty",children:"No results found."})})]}):null]})}function ze(t){return(0,C.jsxs)("label",{className:t.className||"rae-checkbox-field",children:[(0,C.jsx)("input",{type:"hidden",name:t.name,value:t.checked?"true":"false"}),(0,C.jsxs)(Xc,{checked:t.checked,onChange:r=>t.onChange({target:{checked:r}}),className:"rae-headless-checkbox",children:[(0,C.jsx)("span",{className:"rae-headless-checkbox__bg"}),(0,C.jsx)("span",{className:"rae-headless-checkbox__icon",children:(0,C.jsx)(Ce,{})})]}),(0,C.jsx)("span",{children:t.label})]})}function dA({field:t,value:r,error:l,inputId:i,inputName:o,onBlur:n,onLocationInput:h,onLocationSuggestionSelect:v,onLocationBlur:u,locationSuggestions:s,isLoadingLocationSuggestions:p,readOnly:A}){let M=(0,c1.useRef)(null),H=(0,c1.useRef)(null),[Z,L]=(0,c1.useState)(null);(0,c1.useEffect)(()=>{if(!s||s.length===0){L(null);return}let m=M.current?.querySelector("input");if(!m)return;let V=m.getBoundingClientRect();L({position:"fixed",top:`${V.bottom+4}px`,left:`${V.left}px`,width:`${V.width}px`,zIndex:99999})},[s]),(0,c1.useEffect)(()=>{M.current&&(M.current.__raeOnSuggestionSelect=v)});let w=m=>{if(m.key==="Tab"){m.preventDefault();let V=H.current||M.current?.querySelector(".rae-location-suggestions");V instanceof HTMLElement&&(V.style.display="none"),u?.()}else if(m.key==="ArrowDown"){m.preventDefault();let V=H.current||M.current?.querySelector(".rae-location-suggestions");if(V instanceof HTMLElement){let x=V.querySelector(".rae-location-suggestion");x instanceof HTMLElement&&x.focus()}}};return(0,C.jsxs)("div",{ref:M,className:"rae-location-field rae-location-shell",onBlur:m=>{m.currentTarget.contains(m.relatedTarget)||u?.()},children:[(0,C.jsx)(l6,{id:i,name:o,value:typeof r=="string"||typeof r=="number"?String(r):"",placeholder:t.placeholder||"",invalid:!!l,onChange:m=>h?.(m.target.value),onBlur:n,onKeyDown:w,autoComplete:"off",readOnly:A}),p?(0,C.jsx)("div",{className:"rae-location-status",children:"Fetching locations..."}):null,s&&s.length>0?(0,C.jsx)("div",{ref:H,className:"rae-location-suggestions",role:"listbox","aria-label":`${t.recruiterUploadsLabel} suggestions`,style:Z||{},children:s.map(m=>(0,C.jsx)("button",{type:"button",className:"rae-location-suggestion",tabIndex:-1,"data-suggestion":m,onMouseDown:V=>{V.preventDefault(),v?.(m)},children:m},m))}):null]})}function we(t){let{field:r,value:l,error:i,inputId:o,inputName:n,onChange:h,onBlur:v,getDropdownOptions:u,onAddPhoneField:s,onRemovePhoneField:p,canAddMorePhoneFields:A,phoneFieldCount:M,locationSuggestions:H,isLoadingLocationSuggestions:Z,onLocationInput:L,onLocationSuggestionSelect:w,onLocationBlur:m,readOnly:V}=t,x=r.fieldType;if(x==="checkbox")return(0,C.jsx)(ze,{id:o,name:n,checked:!!l,onChange:z=>h(z.target.checked),label:r.recruiterUploadsLabel});if(x==="D")return(0,C.jsx)(hA,{id:o,name:n,value:String(l??""),placeholder:r.placeholder||"Select an option",invalid:!!i,onChange:z=>h(z.target.value),onBlur:v,options:u(r,"").map(z=>({label:z,value:z}))});if(x==="date"){let z=ug(l);return(0,C.jsxs)("label",{className:"rae-date-shell",children:[(0,C.jsx)(oe,{id:o,name:`${n}-display`,className:"rae-field-input rae-field-input--date",type:"text",value:oA(l),placeholder:"",readOnly:!0,onBlur:v,onClick:B=>{let S=B.currentTarget.parentElement?.querySelector("input[type='date']");S instanceof HTMLInputElement&&(S.showPicker?.(),S.focus())},"aria-invalid":i||void 0}),(0,C.jsx)("input",{className:"rae-native-date-input",type:"date",value:z,onChange:B=>h(B.target.value),onBlur:v,"aria-label":`Select ${r.recruiterUploadsLabel}`,tabIndex:-1}),(0,C.jsx)("button",{type:"button",className:"rae-date-trigger",onClick:B=>{let S=B.currentTarget.parentElement?.querySelector("input[type='date']");S instanceof HTMLInputElement&&(S.showPicker?.(),S.focus())},"aria-label":`Select ${r.recruiterUploadsLabel}`,children:(0,C.jsx)(aA,{})})]})}if(x==="phone"){let z=l||{phoneType:"Mobile",phoneNumField:null,whatsAppEnabled:!1},B=O6(z.phoneNumField?.dialCode)||$6(r.selectedCountryCode)||$6("IN"),S=B?V7(S5(B)):"+91",$=Le(z.phoneNumField?.nationalNumber||"");return(0,C.jsxs)("div",{className:"rae-phone-stack",children:[(0,C.jsxs)("div",{className:"rae-phone-row",children:[(0,C.jsx)(T5,{id:`${o}-type`,name:`${n}-type`,shellClassName:"rae-phone-type",value:z.phoneType,onChange:y=>h({...z,phoneType:y.target.value}),options:[{label:"Mobile",value:"Mobile"},{label:"Home",value:"Home"},{label:"Work",value:"Work"},{label:"Other",value:"Other"}]}),(0,C.jsxs)("div",{className:"rae-phone-number-shell",children:[(0,C.jsx)(cA,{name:`${n}-country`,selectedIso2:r.selectedCountryCode,selectedDialCode:z.phoneNumField?.dialCode,onSelect:y=>{let O=V7(S5(y));h({...z,phoneNumField:{...z.phoneNumField,dialCode:O,nationalNumber:$,number:$,e164Number:`${O}${$}`}})}}),(0,C.jsx)(l6,{id:`${o}-number`,name:`${n}-number`,value:$,placeholder:"Phone number",inputMode:"tel",invalid:!!i,onChange:y=>{let O=Le(y.target.value);h({...z,phoneNumField:{...z.phoneNumField,nationalNumber:O,number:O,dialCode:V7(z.phoneNumField?.dialCode||S),e164Number:`${V7(z.phoneNumField?.dialCode||S)}${O}`}})}})]}),r.primaryPhoneNumber?M===1?(0,C.jsx)("button",{type:"button",className:"rae-phone-action rae-phone-action--add","aria-label":"Add phone field",onClick:()=>s?.(r),children:(0,C.jsx)(dg,{})}):null:A?(0,C.jsx)(lA,{onAdd:()=>s?.(r),onRemove:()=>p?.(r)}):(0,C.jsx)("button",{type:"button",className:"rae-phone-action rae-phone-action--remove","aria-label":"Remove phone field",onClick:()=>p?.(r),children:(0,C.jsx)(rA,{})})]}),(0,C.jsx)(ze,{id:`${o}-whatsapp`,name:`${n}-whatsapp`,className:"rae-checkbox-field rae-checkbox-field--inline",checked:!!z.whatsAppEnabled,onChange:y=>h({...z,whatsAppEnabled:y.target.checked}),label:"This number is WhatsApp enabled"})]})}return x==="location"?(0,C.jsx)(dA,{field:r,value:l,error:i,inputId:o,inputName:n,onBlur:v,onLocationInput:L,onLocationSuggestionSelect:w,onLocationBlur:m,locationSuggestions:H,isLoadingLocationSuggestions:Z,readOnly:V}):(0,C.jsx)(l6,{id:o,name:n,type:x==="email"?"email":"text",value:typeof l=="string"||typeof l=="number"?String(l):"",placeholder:r.placeholder||"",invalid:!!i,onChange:z=>h(z.target.value),onBlur:v,readOnly:V})}function pg(t){let r=ig({open:t.open,api:t.api,context:t.context}),l=(0,c1.useId)(),i=(0,c1.useRef)(null),[o,n]=(0,c1.useState)(null),[h,v]=(0,c1.useState)({}),[u,s]=(0,c1.useState)({}),[p,A]=(0,c1.useState)(""),[M,H]=(0,c1.useState)({}),[Z,L]=(0,c1.useState)({}),w=(0,c1.useRef)({}),m=(0,c1.useRef)({});if((0,c1.useEffect)(()=>{if(!o)return;let P=window.setTimeout(()=>{n(null)},4500);return()=>{window.clearTimeout(P)}},[o]),(0,c1.useEffect)(()=>()=>{Object.values(m.current).forEach(P=>{window.clearTimeout(P)})},[]),(0,c1.useEffect)(()=>{H(P=>{let F={...P};return r.fields.forEach(q=>{let X=$5(q);if(!X||!q.masterApplyFields.maskable)return;let U=r.formValues[X];if(!(U!=null&&String(U).trim()!=="")){F[X]=!1;return}(F[X]===void 0||r.parsedResume)&&(F[X]=!0)}),F})},[r.fields,r.formValues,r.parsedResume]),!t.open)return null;let V=[...r.getVisibleFields().filter(P=>P.fieldType!=="checkbox"),...r.getVisibleFields().filter(P=>P.fieldType==="checkbox")],x=r.initialization?.supportedFiles.addProfile,z=r.initialization?.resumeOptional===!0,B=!!((r.selectedFile||z&&r.creationMode==="manual")&&!r.isParsing),S=!!(z&&!r.selectedFile&&r.creationMode!=="manual"),$=!z&&!r.selectedFile,y=r.initialization?.profileSources||[],O=[...new Set(y.map(P=>P.sourceOfProfile).filter(Boolean))],T=!!O[0],D=T?r.sourceOfProfile?y.filter(P=>P.sourceOfProfile===r.sourceOfProfile):[]:y,k=T?y.find(P=>P.sourceOfProfile===r.sourceOfProfile&&P.profileSource===r.profileSource):y.find(P=>P.profileSource===r.profileSource),W=K2(k?.subSourceValues),G=!!(T&&k?.sourceOfProfile&&k?.subSourceValues),R=!!(T&&k?.sourceOfProfile&&!k?.subSourceValues);function Y(P){L({}),r.setSourceOfProfile(P),r.setProfileSource(""),r.setSubSourceText(""),A("")}function M1(P){L({}),r.setProfileSource(P),A("");let F=T?y.find(q=>q.sourceOfProfile===r.sourceOfProfile&&q.profileSource===P):y.find(q=>q.profileSource===P);if(!F){r.setSubSourceText("");return}if(!T){r.setSubSourceText(F.profileSource||"");return}if(F.subSourceValues){r.setSubSourceText(t.context.user.name?.trim()||"");return}r.setSubSourceText(t.context.user.name?.trim()||"")}function K(P){L({}),A(P),r.setSubSourceText(P)}async function a1(){n(null);let P={};O.length>0?(r.sourceOfProfile||(P.sourceOfProfile="Please select a Source Of Profile."),r.profileSource||(P.profileSource="Please select a Source Type."),G&&!p&&(P.subSource="Please select a Sub Source."),R&&!r.subSourceText.trim()&&(P.subSource="Please enter a Sub Source.")):y.length>0?r.profileSource||(P.profileSource="Please select a Source Type."):r.subSourceText.trim()||(P.subSource="Please enter a Sub Source.");let F=r.validateAll();if(!F||Object.keys(P).length>0){F||cg(i.current),Object.keys(P).length>0&&L(P);return}L({});try{let q=await r.submit();if(!q){cg(i.current);return}let X=nA(q);t.showSubmitToast!==!1&&n(X.toast),X.isSuccess&&t.onSuccess?.(q)}catch(q){let X=q instanceof Error&&q.message?q.message:"Something went wrong, Please try again!";t.showSubmitToast!==!1&&n({kind:"error",message:X})}}function d1(P,F){if(r.setFieldValue(P,F),!t.api.getLocationSuggestions){v(q=>({...q,[P]:[]}));return}if(m.current[P]&&window.clearTimeout(m.current[P]),!F.trim()){v(q=>({...q,[P]:[]})),s(q=>({...q,[P]:!1}));return}m.current[P]=window.setTimeout(async()=>{let q=(w.current[P]||0)+1;w.current[P]=q,s(X=>({...X,[P]:!0}));try{let X=await t.api.getLocationSuggestions?.(F,t.context);if(w.current[P]!==q)return;v(U=>({...U,[P]:X||[]}))}catch{if(w.current[P]!==q)return;v(X=>({...X,[P]:[]}))}finally{w.current[P]===q&&s(X=>({...X,[P]:!1}))}},250)}function z1(P,F){r.setFieldValue(P,F),v(q=>({...q,[P]:[]})),s(q=>({...q,[P]:!1}))}return(0,C.jsxs)(c7,{open:t.open,onClose:()=>{},className:"rae-overlay",children:[(0,C.jsx)("div",{className:"rae-overlay__backdrop","aria-hidden":"true"}),(0,C.jsx)("div",{className:"rae-overlay__viewport",children:(0,C.jsxs)(C5,{ref:i,className:`rae-modal ${B?"rae-modal--expanded":"rae-modal--compact"}`,children:[o?(0,C.jsxs)("div",{className:`rae-toast rae-toast--${o.kind}`,role:"status","aria-live":"polite",children:[(0,C.jsx)("span",{children:o.message}),(0,C.jsx)("button",{type:"button",className:"rae-toast__close",onClick:()=>n(null),"aria-label":"Dismiss notification",children:(0,C.jsx)(Y8,{})})]}):null,r.isInitializing?(0,C.jsx)("div",{className:"rae-loader-overlay","aria-live":"polite","aria-busy":"true",children:(0,C.jsx)(X8,{})}):null,r.isParsing?(0,C.jsxs)("div",{className:"rae-loader-overlay","aria-live":"polite","aria-busy":"true",children:[(0,C.jsx)(X8,{}),(0,C.jsx)("p",{className:"rae-loader-text",children:"Parsing resume and populating fields..."})]}):null,r.isSubmitting?(0,C.jsxs)("div",{className:"rae-loader-overlay","aria-live":"polite","aria-busy":"true",children:[(0,C.jsx)(X8,{}),(0,C.jsx)("p",{className:"rae-loader-text",children:"Submitting profile..."})]}):null,(0,C.jsxs)("div",{className:"rae-modal__header",children:[(0,C.jsx)(w5,{as:"div",className:"rae-modal__title",children:t.title||"Add Profile"}),(0,C.jsx)("button",{type:"button",className:"rae-icon-button",onClick:t.onClose,"aria-label":"Close add profile modal",children:(0,C.jsx)(Y8,{})})]}),(0,C.jsxs)("div",{className:`rae-modal__body ${B?"rae-modal__body--expanded":"rae-modal__body--compact"}`,children:[(0,C.jsxs)("section",{className:"rae-section rae-section--job",children:[(0,C.jsxs)("div",{className:"rae-job-title",children:[t.context.job.jobTitle," ",(0,C.jsx)("span",{children:"|"})," ",t.context.job.jobCode]}),(0,C.jsxs)("div",{className:"rae-job-meta",children:[(0,C.jsxs)("div",{className:"rae-meta-pill",children:[(0,C.jsx)(tA,{}),(0,C.jsx)("span",{children:t.context.job.location||"NA"})]}),(0,C.jsxs)("div",{className:"rae-meta-pill",children:[(0,C.jsx)(Fv,{"aria-hidden":"true"}),(0,C.jsx)("span",{children:iA(t.context.job)})]}),(0,C.jsxs)("div",{className:"rae-meta-pill",children:[(0,C.jsx)(Tv,{"aria-hidden":"true"}),(0,C.jsx)("span",{children:t.context.job.departmentName||"All Departments"})]})]})]}),(0,C.jsxs)("section",{className:"rae-section rae-section--upload",children:[S?(0,C.jsxs)(c1.default.Fragment,{children:[(0,C.jsx)("div",{className:"rae-profile-method-question",children:"How would you like to create this profile?"}),(0,C.jsxs)("div",{className:"rae-profile-method-grid",children:[(0,C.jsxs)("label",{htmlFor:l,className:"rae-profile-method-card",children:[(0,C.jsx)("span",{className:"rae-profile-method-card__icon",children:(0,C.jsx)(ng,{})}),(0,C.jsxs)("span",{className:"rae-profile-method-card__content",children:[(0,C.jsx)("span",{className:"rae-profile-method-card__title",children:"Upload resume"}),(0,C.jsx)("span",{className:"rae-profile-method-card__description",children:"Auto-extract candidate details from a resume"})]}),(0,C.jsx)("span",{className:"rae-profile-method-card__info",title:`Supported: ${x?.fileFormat.join(", ")||"Loading..."}${x?.fileSize?` | Max size: ${x.fileSize} MB`:""}`,"aria-label":`Supported file types: ${x?.fileFormat.join(", ")||"Loading"}${x?.fileSize?` and maximum file size ${x.fileSize} MB`:""}`,children:(0,C.jsx)(Jf,{})}),(0,C.jsx)("input",{id:l,type:"file",accept:x?.fileFormat?.map(P=>`.${String(P).trim().toLowerCase().replace(/^\./,"")}`).join(",")||void 0,hidden:!0,onChange:P=>{let F=P.target.files?.[0];F&&r.uploadFile(F)}})]}),(0,C.jsxs)("button",{type:"button",className:"rae-profile-method-card",onClick:r.startManualEntry,children:[(0,C.jsx)("span",{className:"rae-profile-method-card__icon",children:(0,C.jsx)(Ov,{"aria-hidden":"true"})}),(0,C.jsxs)("span",{className:"rae-profile-method-card__content",children:[(0,C.jsx)("span",{className:"rae-profile-method-card__title",children:"Manual entry"}),(0,C.jsx)("span",{className:"rae-profile-method-card__description",children:"Fill in candidate details step by step"})]})]})]})]}):$?(0,C.jsxs)("label",{htmlFor:l,className:"rae-upload-card",children:[(0,C.jsx)("div",{className:"rae-upload-card__icon",children:(0,C.jsx)(ng,{})}),(0,C.jsxs)("div",{className:"rae-upload-card__title",children:["Drag and Drop or ",(0,C.jsx)("span",{children:"Click Here"})," to upload resume."]}),(0,C.jsxs)("div",{className:"rae-upload-card__meta",children:["File Types Supported : ",x?.fileFormat.join(", ")||"Loading..."]}),(0,C.jsxs)("div",{className:"rae-upload-card__meta",children:["(File size should be ",x?.fileSize||2," MB or less)"]}),(0,C.jsx)("input",{id:l,type:"file",accept:x?.fileFormat?.map(P=>`.${String(P).trim().toLowerCase().replace(/^\./,"")}`).join(",")||void 0,hidden:!0,onChange:P=>{let F=P.target.files?.[0];F&&r.uploadFile(F)}})]}):r.selectedFile?(0,C.jsxs)("div",{className:"rae-file-card",children:[(0,C.jsxs)("div",{className:"rae-file-card__content",children:[(0,C.jsx)("div",{className:"rae-file-card__name",children:r.selectedFile.name}),(0,C.jsx)("div",{className:"rae-file-card__size",children:Uv(r.selectedFile.size)})]}),(0,C.jsx)("button",{type:"button",className:"rae-icon-button rae-file-card__remove",onClick:r.clearSelectedFile,"aria-label":"Remove uploaded resume",children:(0,C.jsx)(Y8,{})})]}):null,r.errors.file?(0,C.jsx)("div",{className:"rae-field-error",children:r.errors.file}):null]}),B?(0,C.jsxs)("section",{className:"rae-section",children:[r.isParsing?(0,C.jsx)("div",{className:"rae-state-text",children:"Parsing resume and populating fields..."}):null,(0,C.jsx)("div",{className:"rae-form-grid",children:V.map(P=>{let F=$5(P),q=r.formValues[F],X=r.errors[F],U=P.fieldType==="checkbox",V1=`rae-field-${F}`,n1=!!(P.masterApplyFields.maskable&&q&&P.fieldType!=="location"&&P.fieldType!=="date"&&P.fieldType!=="phone"&&P.fieldType!=="checkbox"&&P.fieldType!=="D"),Y1=!!(n1&&M[F]);return(0,C.jsxs)("div",{className:`rae-field ${U?"rae-field--checkbox":""}${X?" rae-field--invalid":""}`,onBlur:G1=>{G1.currentTarget.contains(G1.relatedTarget)||r.validateField(F)},children:[U?null:(0,C.jsxs)("label",{htmlFor:V1,className:"rae-field-label",children:[P.recruiterUploadsLabel,P.recruiterUploads==="Mandatory"?(0,C.jsx)("span",{children:"*"}):null,P.fieldType==="phone"&&P.primaryPhoneNumber?(0,C.jsx)("span",{className:"rae-phone-primary-badge",children:"Primary"}):null]}),Y1?(0,C.jsxs)("div",{className:"rae-mask-shell",children:[(0,C.jsx)(l6,{id:V1,name:F,value:H7(q),readOnly:!0,invalid:!!X}),(0,C.jsx)("button",{type:"button",className:"rae-mask-toggle",onClick:()=>H(G1=>({...G1,[F]:!1})),children:"Show"})]}):(0,C.jsxs)(c1.default.Fragment,{children:[we({field:P,value:q,error:X,inputId:V1,inputName:F,onChange:G1=>r.setFieldValue(F,G1),onBlur:()=>r.validateField(F),getDropdownOptions:r.getDropdownOptions,onAddPhoneField:r.addPhoneField,onRemovePhoneField:r.removePhoneField,canAddMorePhoneFields:r.canAddMorePhoneFields,phoneFieldCount:r.phoneFieldCount,locationSuggestions:h[F]||[],isLoadingLocationSuggestions:!!u[F],onLocationInput:G1=>d1(F,G1),onLocationSuggestionSelect:G1=>z1(F,G1),onLocationBlur:()=>{m.current[F]&&window.clearTimeout(m.current[F]),v(G1=>({...G1,[F]:[]})),s(G1=>({...G1,[F]:!1}))}}),n1?(0,C.jsx)("button",{type:"button",className:"rae-mask-toggle rae-mask-toggle--inline",onClick:()=>H(G1=>({...G1,[F]:!0})),children:"Hide"}):null]}),X?(0,C.jsx)("div",{className:"rae-field-error",children:X}):null]},F)})})]}):null]}),(0,C.jsxs)("div",{className:"rae-modal__footer",children:[(0,C.jsxs)("div",{className:"rae-footer__left",children:[(0,C.jsx)(ze,{id:"rae-send-notification",name:"sendNotification",className:"rae-checkbox-field rae-checkbox-field--footer",checked:r.sendNotification,onChange:P=>r.setSendNotification(P.target.checked),label:"Send notification to candidate"}),r.isInitializing?null:O.length>0?(0,C.jsxs)("div",{className:"rae-footer-fields",children:[(0,C.jsxs)("div",{className:"rae-footer-field rae-footer-field--required",children:[(0,C.jsx)(T5,{id:"rae-source-of-profile",name:"sourceOfProfile",value:r.sourceOfProfile,onChange:P=>Y(P.target.value),placeholder:"Source Of Profile",options:O.map(P=>({label:P,value:P}))}),Z.sourceOfProfile?(0,C.jsx)("div",{className:"rae-field-error",children:Z.sourceOfProfile}):null]}),r.sourceOfProfile?(0,C.jsxs)("div",{className:"rae-footer-field rae-footer-field--required",children:[(0,C.jsx)(T5,{id:"rae-profile-source",name:"profileSource",value:r.profileSource,onChange:P=>M1(P.target.value),placeholder:"Source Type",options:D.map(P=>({label:P.profileSource,value:P.profileSource}))}),Z.profileSource?(0,C.jsx)("div",{className:"rae-field-error",children:Z.profileSource}):null]}):null,r.profileSource&&G?(0,C.jsxs)("div",{className:"rae-footer-field rae-footer-field--required",children:[(0,C.jsx)(T5,{id:"rae-sub-source-select",name:"subSourceSelect",value:p,onChange:P=>K(P.target.value),placeholder:"Sub Source",options:W.map(P=>({label:P,value:P}))}),Z.subSource?(0,C.jsx)("div",{className:"rae-field-error",children:Z.subSource}):null]}):null,r.profileSource&&R?(0,C.jsxs)("div",{className:"rae-footer-field rae-footer-field--required",children:[(0,C.jsx)(l6,{id:"rae-sub-source-input",name:"subSourceText",value:r.subSourceText,placeholder:"Sub Source *",onChange:P=>{L(F=>({...F,subSource:""})),r.setSubSourceText(P.target.value)}}),Z.subSource?(0,C.jsx)("div",{className:"rae-field-error",children:Z.subSource}):null]}):null]}):(0,C.jsx)("div",{className:"rae-footer-fields",children:y.length?(0,C.jsxs)("div",{className:"rae-footer-field rae-footer-field--required",children:[(0,C.jsx)(T5,{id:"rae-profile-source-fallback",name:"profileSource",value:r.profileSource,onChange:P=>M1(P.target.value),placeholder:"Source Type",options:D.map(P=>({label:P.profileSource,value:P.profileSource}))}),Z.profileSource?(0,C.jsx)("div",{className:"rae-field-error",children:Z.profileSource}):null]}):(0,C.jsxs)("div",{className:"rae-footer-field rae-footer-field--required",children:[(0,C.jsx)(l6,{id:"rae-sub-source-fallback",name:"subSourceText",value:r.subSourceText,placeholder:"Sub Source *",onChange:P=>{L(F=>({...F,subSource:""})),r.setSubSourceText(P.target.value)}}),Z.subSource?(0,C.jsx)("div",{className:"rae-field-error",children:Z.subSource}):null]})})]}),(0,C.jsxs)("div",{className:"rae-footer__actions",children:[(0,C.jsx)("button",{type:"button",className:"rae-button rae-button--ghost",onClick:t.onClose,children:"Cancel"}),(0,C.jsx)("button",{type:"button",className:"rae-button rae-button--primary",onClick:()=>{a1()},disabled:!r.canSubmit||!B,"data-rae-force-submit-disabled":B?void 0:"true",children:r.isSubmitting?"Submitting...":"Submit"})]})]})]})})]})}function vA(t){let r=String(t??"").replace(/[^\d]/g,"");if(!r)return"";let l=r.slice(-3),i=r.slice(0,-3);return i?`${i.replace(/\B(?=(\d{2})+(?!\d))/g,",")},${l}`:l}function hg(){if(typeof document>"u")return;let t=[".rae-phone-add-button",".rae-phone-field__add",".rae-phone-action--add",".rae-phone-inline__add"].join(", "),r=new Set;document.querySelectorAll(t).forEach(l=>r.add(l)),document.querySelectorAll(".rae-modal *").forEach(l=>{if(!(l instanceof HTMLElement)||l.children.length>0||(l.textContent||"").trim()!=="+")return;let i=l.closest(".rae-field")||l.closest("[class*='phone']")||l.parentElement;String(i?.textContent||"").toLowerCase().includes("phone")&&r.add(l)}),r.forEach(l=>{if(!(l instanceof HTMLElement)||l.dataset.raePhoneIconMounted==="true")return;l.dataset.raePhoneIconMounted="true",l.classList.add("rae-phone-action","rae-phone-action--accent"),l.textContent="";let i=document.createElement("span");i.className="rae-phone-add-icon",l.appendChild(i),(0,Hg.createRoot)(i).render((0,C.jsx)(dg,{}))})}function m7(t){if(!(t instanceof HTMLElement))return;document.querySelectorAll('.rae-select[data-overlay-active="true"], .rae-searchable-select[data-overlay-active="true"]').forEach(m=>{m instanceof HTMLElement&&m!==t&&delete m.dataset.overlayActive});let r=t.querySelector('button[aria-expanded="true"]')||t.querySelector("button"),l=t.querySelector(".rae-select-options")||t.querySelector(".rae-searchable-select__options");if(!(r instanceof HTMLElement)||!(l instanceof HTMLElement))return;let i=r.getBoundingClientRect(),o=window.innerHeight||document.documentElement.clientHeight||0,n=window.innerWidth||document.documentElement.clientWidth||0,h=4,v=12,u=Math.min(l.scrollHeight||240,280),s=o-i.bottom-v,p=i.top-v,A=s<Math.min(u,180)&&p>s,M=Math.max(140,Math.min(u,A?p:s)),H=Math.min(i.width,n-v*2),Z=Math.min(Math.max(v,i.left),n-H-v),L=A?Math.max(v,i.top-M-h):Math.max(v,i.bottom+h),w=t.closest(".rae-field");document.querySelectorAll('.rae-field[data-overlay-active="true"]').forEach(m=>{m instanceof HTMLElement&&m!==w&&delete m.dataset.overlayActive}),t.dataset.overlayActive="true",w instanceof HTMLElement&&(w.dataset.overlayActive="true"),l.dataset.overlayOpen="true",l.style.setProperty("--rae-overlay-top",`${L}px`),l.style.setProperty("--rae-overlay-left",`${Z}px`),l.style.setProperty("--rae-overlay-width",`${H}px`),l.style.setProperty("--rae-overlay-max-height",`${M}px`)}function gA(t){if(!(t instanceof HTMLElement))return;delete t.dataset.overlayActive;let r=t.closest(".rae-field");r instanceof HTMLElement&&delete r.dataset.overlayActive;let l=t.querySelector(".rae-select-options")||t.querySelector(".rae-searchable-select__options");l instanceof HTMLElement&&(delete l.dataset.overlayOpen,l.style.removeProperty("--rae-overlay-top"),l.style.removeProperty("--rae-overlay-left"),l.style.removeProperty("--rae-overlay-width"),l.style.removeProperty("--rae-overlay-max-height"))}function b5(t){if(!(t instanceof HTMLElement))return;let r=t.querySelector("input"),l=t.__raePortaledLocationSuggestions||t.querySelector(".rae-location-suggestions");if(!(r instanceof HTMLElement)||!(l instanceof HTMLElement))return;let i=r.getBoundingClientRect(),o=window.innerHeight||document.documentElement.clientHeight||0,n=window.innerWidth||document.documentElement.clientWidth||0,h=4,v=12,u=Math.min(l.scrollHeight||240,280),s=o-i.bottom-v,p=i.top-v,A=s<Math.min(u,180)&&p>s,M=Math.max(120,Math.min(u,A?p:s)),H=Math.min(i.width,n-v*2),Z=Math.min(Math.max(v,i.left),n-H-v),L=A?Math.max(v,i.top-M-h):Math.max(v,i.bottom+h);l.dataset.overlayOpen="true",l.style.setProperty("--rae-location-overlay-top",`${L}px`),l.style.setProperty("--rae-location-overlay-left",`${Z}px`),l.style.setProperty("--rae-location-overlay-width",`${H}px`),l.style.setProperty("--rae-location-overlay-max-height",`${M}px`)}function Z7(t){if(!(t instanceof HTMLElement))return;let r=t.__raePortaledLocationSuggestions||t.querySelector(".rae-location-suggestions");if(r instanceof HTMLElement){if(delete r.dataset.overlayOpen,r.style.removeProperty("--rae-location-overlay-top"),r.style.removeProperty("--rae-location-overlay-left"),r.style.removeProperty("--rae-location-overlay-width"),r.style.removeProperty("--rae-location-overlay-max-height"),t.__raeLocationOriginalParent instanceof HTMLElement){let l=t.__raeLocationOriginalParent,i=t.__raeLocationOriginalNextSibling||null;i&&i.parentNode===l?l.insertBefore(r,i):l.appendChild(r)}delete t.__raePortaledLocationSuggestions,delete t.__raeLocationOriginalParent,delete t.__raeLocationOriginalNextSibling}}function Ze(t){if(!(t instanceof HTMLElement)||typeof document>"u")return;let r=t.__raePortaledLocationSuggestions;if(r instanceof HTMLElement&&r.isConnected&&r.parentElement===document.body)return r;let l=t.querySelector(".rae-location-suggestions");return l instanceof HTMLElement?(t.__raeLocationOriginalParent=l.parentElement,t.__raeLocationOriginalNextSibling=l.nextSibling,t.__raePortaledLocationSuggestions=l,document.body.appendChild(l),l):null}function xe(t){if(!(t instanceof HTMLElement))return;let r=t.closest(".rae-modal__body--expanded")||t.closest(".rae-modal__body"),l=t.closest(".rae-modal")?.querySelector?.(".rae-modal__footer"),i=t.__raePortaledLocationSuggestions||t.querySelector(".rae-location-suggestions"),o=t.querySelector("input");if(!(r instanceof HTMLElement)||!(i instanceof HTMLElement)||!(o instanceof HTMLElement))return;let n=o.getBoundingClientRect(),h=r.getBoundingClientRect(),v=l instanceof HTMLElement?l.getBoundingClientRect():null,u=v?Math.min(h.bottom,v.top):h.bottom,s=Math.min(Math.max(i.scrollHeight||0,180),280),M=n.bottom+8+s-u;M>0&&(r.scrollTop+=M+12)}typeof document<"u"&&!window.__raeCurrentCtcFormatterBound&&(window.__raeCurrentCtcFormatterBound=!0,document.addEventListener("input",t=>{let r=t.target;if(!(r instanceof HTMLInputElement))return;let i=r.closest(".rae-field")?.querySelector?.(".rae-field-label");if(!String(i?.textContent||"").toLowerCase().includes("current ctc"))return;let n=vA(r.value);if(n!==r.value){let h=r.selectionStart===r.value.length;if(r.value=n,h){let v=n.length;window.requestAnimationFrame(()=>{try{r.setSelectionRange(v,v)}catch{}})}}},!0));if(typeof document<"u"&&!window.__raeDropdownOverlayBound){window.__raeDropdownOverlayBound=!0;let t=r=>{let l=r?.closest?.(".rae-select, .rae-searchable-select");l instanceof HTMLElement&&window.requestAnimationFrame(()=>m7(l))};document.addEventListener("click",r=>{t(r.target),document.querySelectorAll(".rae-select, .rae-searchable-select").forEach(i=>{if(!(i instanceof HTMLElement))return;i.querySelector('button[aria-expanded="true"]')?m7(i):gA(i)})},!0),window.addEventListener("resize",()=>{document.querySelectorAll(".rae-select, .rae-searchable-select").forEach(r=>m7(r))},{passive:!0}),document.addEventListener("scroll",()=>{document.querySelectorAll(".rae-select, .rae-searchable-select").forEach(r=>m7(r))},!0)}typeof document<"u"&&!window.__raePhoneAddIconBound&&(window.__raePhoneAddIconBound=!0,new MutationObserver(()=>hg()).observe(document.body,{childList:!0,subtree:!0}),window.requestAnimationFrame(()=>hg()));if(typeof document<"u"&&!window.__raeSubmitButtonEnableBound){window.__raeSubmitButtonEnableBound=!0;let t=()=>{document.querySelectorAll("button").forEach(l=>{!(l instanceof HTMLButtonElement)||(l.textContent||"").trim().toLowerCase()!=="submit"||l.dataset.raeForceSubmitDisabled!=="true"&&l.disabled&&(l.disabled=!1,l.removeAttribute("disabled"),l.setAttribute("aria-disabled","false"))})};new MutationObserver(()=>t()).observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["disabled","aria-disabled"]}),window.requestAnimationFrame(()=>t())}if(typeof document<"u"&&!window.__raeLocationCloseBound){window.__raeLocationCloseBound=!0;let t=l=>{document.querySelectorAll(".rae-location-field").forEach(i=>{if(!(i instanceof HTMLElement))return;let o=l instanceof Node?i.contains(l):!1,n=i.__raePortaledLocationSuggestions||i.querySelector(".rae-location-suggestions");if(o){let v=Ze(i);i.dataset.locationOpen="true";let u=v||i.__raePortaledLocationSuggestions||n;u instanceof HTMLElement&&(u.style.display="block"),window.requestAnimationFrame(()=>{xe(i),b5(i)});return}delete i.dataset.locationOpen,n instanceof HTMLElement&&(n.style.display="none"),Z7(i);let h=i.querySelector("input");h instanceof HTMLInputElement&&document.activeElement===h&&h.blur()})};document.addEventListener("focusin",l=>{t(l.target)},!0),document.addEventListener("pointerdown",l=>{let i=l.target;if(i instanceof HTMLElement&&i.classList.contains("rae-location-suggestion")){let o=i.dataset.suggestion||i.textContent?.trim(),n=document.querySelectorAll(".rae-location-field[data-location-open='true']");for(let h of n){if(!(h instanceof HTMLElement)||!h.__raeOnSuggestionSelect||!o)continue;l.preventDefault(),h.__raeOnSuggestionSelect(o),delete h.dataset.locationOpen;let v=h.__raePortaledLocationSuggestions||h.querySelector(".rae-location-suggestions");v instanceof HTMLElement&&(v.style.display="none"),Z7(h);return}}t(l.target)},!0),document.addEventListener("keydown",l=>{let i=l.target;if(!(i instanceof HTMLElement)||!i.classList.contains("rae-location-suggestion"))return;let o=i.closest(".rae-location-suggestions"),n=o?Array.from(o.querySelectorAll(".rae-location-suggestion")):[],h=n.indexOf(i);if(l.key==="ArrowDown")l.preventDefault(),h<n.length-1&&n[h+1]instanceof HTMLElement&&n[h+1].focus();else if(l.key==="ArrowUp")if(l.preventDefault(),h>0&&n[h-1]instanceof HTMLElement)n[h-1].focus();else{let v=document.querySelector(".rae-location-field[data-location-open='true']");if(v instanceof HTMLElement){let u=v.querySelector("input");u instanceof HTMLInputElement&&u.focus()}}else if(l.key==="Enter"){l.preventDefault();let v=i.dataset.suggestion||i.textContent?.trim(),u=document.querySelectorAll(".rae-location-field[data-location-open='true']");for(let s of u){if(!(s instanceof HTMLElement)||!s.__raeOnSuggestionSelect||!v)continue;s.__raeOnSuggestionSelect(v),delete s.dataset.locationOpen;let p=s.__raePortaledLocationSuggestions||s.querySelector(".rae-location-suggestions");p instanceof HTMLElement&&(p.style.display="none"),Z7(s);let A=s.querySelector("input");A instanceof HTMLInputElement&&A.focus();return}}else if(l.key==="Escape"||l.key==="Tab"){l.preventDefault();let v=document.querySelectorAll(".rae-location-field[data-location-open='true']");for(let u of v){if(!(u instanceof HTMLElement))continue;delete u.dataset.locationOpen;let s=u.__raePortaledLocationSuggestions||u.querySelector(".rae-location-suggestions");s instanceof HTMLElement&&(s.style.display="none"),Z7(u);let p=u.querySelector("input");p instanceof HTMLInputElement&&p.focus();return}}},!0),document.addEventListener("input",l=>{let i=l.target;if(!(i instanceof HTMLElement))return;let o=i.closest(".rae-location-field");o instanceof HTMLElement&&o.dataset.locationOpen==="true"&&window.requestAnimationFrame(()=>{let n=Ze(o);n instanceof HTMLElement&&(n.style.display="block"),xe(o),b5(o)})},!0),new MutationObserver(()=>{document.querySelectorAll(".rae-location-field[data-location-open='true']").forEach(l=>{if(!(l instanceof HTMLElement))return;let i=Ze(l);i instanceof HTMLElement&&(i.style.display="block"),xe(l),b5(l)})}).observe(document.body,{childList:!0,subtree:!0}),window.addEventListener("resize",()=>{document.querySelectorAll(".rae-location-field[data-location-open='true']").forEach(l=>{b5(l)})},{passive:!0}),document.addEventListener("scroll",()=>{document.querySelectorAll(".rae-location-field[data-location-open='true']").forEach(l=>{b5(l)})},!0)}if(typeof document<"u"&&!window.__raeBusyOverlayBound){window.__raeBusyOverlayBound=!0;let t=[".rae-loading-overlay",".rae-loading-state",".rae-modal__loading",".rae-spinner-overlay",".rae-submit-overlay","[aria-busy='true']"].join(", "),r=()=>{document.querySelectorAll(".rae-modal").forEach(i=>{if(!(i instanceof HTMLElement))return;i.matches("[aria-busy='true']")||!!i.querySelector(t)||!!i.querySelector(".rae-modal__body [role='progressbar']")?i.dataset.busyOverlay="true":delete i.dataset.busyOverlay})};new MutationObserver(()=>r()).observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class","style","aria-busy"]}),window.requestAnimationFrame(()=>r())}typeof document<"u"&&!window.__raeValidationScrollBound&&(window.__raeValidationScrollBound=!0);if(typeof document<"u"&&!window.__raeLocationPortalBridgeBound){window.__raeLocationPortalBridgeBound=!0;let t=document.createElement("div");t.className="rae-location-portal-overlay",t.hidden=!0,document.body.appendChild(t);let r=null,l=null,i=A=>A instanceof HTMLElement?A.__raePortaledLocationSuggestions||A.querySelector(".rae-location-suggestions"):null,o=(A,M)=>{let H=i(A);H instanceof HTMLElement&&(H.style.visibility=M?"hidden":"",H.style.pointerEvents=M?"none":"")},n=()=>{r&&o(r,!1),r=null,t.hidden=!0,t.innerHTML=""},h=(A,M)=>{let H=A.querySelector("input");if(!(H instanceof HTMLElement)||!(M instanceof HTMLElement))return;let Z=H.getBoundingClientRect(),L=window.innerHeight||document.documentElement.clientHeight||0,w=window.innerWidth||document.documentElement.clientWidth||0,m=12,V=4,x=Math.min(M.scrollHeight||240,280),z=L-Z.bottom-m,B=Z.top-m,S=z<Math.min(x,180)&&B>z,$=Math.max(120,Math.min(x,S?B:z)),y=Math.min(Z.width,w-m*2),O=Math.min(Math.max(m,Z.left),w-y-m),T=S?Math.max(m,Z.top-$-V):Math.max(m,Z.bottom+V);t.style.left=`${O}px`,t.style.top=`${T}px`,t.style.width=`${y}px`,t.style.maxHeight=`${$}px`},v=()=>{if(!(r instanceof HTMLElement))return n();let A=i(r);if(!(A instanceof HTMLElement))return n();let M=Array.from(A.children).filter(H=>H instanceof HTMLElement);if(!M.length)return n();o(r,!0),t.innerHTML="",M.forEach((H,Z)=>{let L=H.cloneNode(!0);L instanceof HTMLElement&&(L.dataset.portalIndex=String(Z),t.appendChild(L))}),h(r,A),t.hidden=!1},u=()=>{l&&window.clearTimeout(l),l=window.setTimeout(()=>{l=null,v()},0)},s=A=>{A instanceof HTMLElement&&(r=A,u())};document.addEventListener("input",A=>{let M=A.target instanceof HTMLElement?A.target.closest(".rae-location-field"):null;M instanceof HTMLElement&&s(M)},!0),document.addEventListener("focusin",A=>{let M=A.target instanceof HTMLElement?A.target:null,H=M?.closest?.(".rae-location-field");if(H instanceof HTMLElement){s(H);return}t.contains(M)||n()},!0),document.addEventListener("pointerdown",A=>{let M=A.target instanceof HTMLElement?A.target:null;if(t.contains(M)){let Z=M?.closest?.("[data-portal-index]"),L=i(r);if(Z instanceof HTMLElement&&L instanceof HTMLElement){let w=Number(Z.dataset.portalIndex),m=L.children[w];m instanceof HTMLElement&&(m.dispatchEvent(new MouseEvent("mousedown",{bubbles:!0})),m.dispatchEvent(new MouseEvent("click",{bubbles:!0})))}n();return}let H=M?.closest?.(".rae-location-field");if(H instanceof HTMLElement){s(H);return}n()},!0),new MutationObserver(()=>{r&&u()}).observe(document.body,{childList:!0,subtree:!0}),window.addEventListener("resize",()=>u(),{passive:!0}),document.addEventListener("scroll",()=>u(),!0)}var p1=E(Gt(),1),u0=E(I(),1);var O0=E(I(),1);function e6(t){return t.formGroupName||t.masterApplyFields.fieldNameForApply}function Vg(t,r){return t.find(l=>e6(l)===r||l.masterApplyFields.fieldNameForApply===r)}function Pe(t){return String(t||"").replace(/\D+/g,"")}function mg(t){let r=Pe(t);return r?`+${r}`:""}function Mg(t){if(!t)return t;let r=t instanceof Date?t:new Date(t);if(Number.isNaN(r.getTime()))return t;let l=r.getFullYear(),i=String(r.getMonth()+1).padStart(2,"0"),o=String(r.getDate()).padStart(2,"0");return`${l}-${i}-${o}`}function uA(t,r){let l={...t};return r.forEach(i=>{let o=e6(i);i.fieldType==="date"&&l[o]&&(l[o]=Mg(l[o]))}),Object.entries(l).forEach(([i,o])=>{if(i!=="dateOfBirth"&&o){let n=new Date(o);!Number.isNaN(n.getTime())&&String(o).match(/\d{4}-\d{2}-\d{2}|T\d{2}:/)&&(l[i]=Mg(o))}}),l}function fg(t){return{...t,recruiterUploads:t.editProfile||t.recruiterUploads}}function Se(t,r,l,i){return c2(t)?null:W8(fg(t),r,l.map(fg),i)}function Be(t,r,l){let i={};return t.forEach(o=>{let n=e6(o);if(!n)return;let h=Se(o,l[n],r,l);h&&(i[n]=h)}),Object.assign(i,q8(t,l)),i}function sA(t,r,l,i){let o={...i},n=Vg(r,t);return n?.dependentFieldsName&&[...new Set(K2(n.dependentFieldsName))].forEach(v=>{let u=r.find(A=>A.masterApplyFields.fieldNameForApply===v);if(!u)return;let s=e6(u);if(!h2(v,r,l)){delete o[s];return}let p=Se(u,l[s],r,l);p?o[s]=p:delete o[s]}),o}function x7(t){return{countryIsoCode:t?.countryIsoCode||"IN",whatsAppEnabled:!!t?.whatsAppEnabled,maxCount:t?.maxCount||3}}function Ag(t,r){return O6(t)?.iso2||r||"IN"}function Zg(t,r,l=!1){let i=mg(t?.countryCode||r),o=Pe(t?.number||t?.phoneNoWithoutCountryCode||"");return{phoneType:t?.phoneType||"Home",phoneNumField:o?{nationalNumber:o,number:o,dialCode:i,e164Number:`${i}${o}`}:null,whatsAppEnabled:t?.whatsappEnabled??t?.whatsAppEnabled??l}}function pA(t,r,l,i){let o=x7(r),n=[],h=1;return t.forEach(v=>{if(v.fieldType!=="phone"){n.push({...v});return}let u=[...l||[]].sort((s,p)=>+!!p.primary-+!!s.primary);if(!u.length){let s=`phoneField${h}`;h+=1,n.push({...v,formGroupName:s,selectedCountryCode:Ag(i?.countryCode,o.countryIsoCode),primaryPhoneNumber:!0});return}u.forEach((s,p)=>{let A=`phoneField${h}`;h+=1,n.push({...v,editProfile:p===0?v.editProfile:"Non Mandatory",formGroupName:A,selectedCountryCode:Ag(s.countryCode,o.countryIsoCode),primaryPhoneNumber:!!s.primary})})}),n}function HA(t,r){let l={},i=r.applyFieldsObject||{},o=[...r.phoneNumbers||[]].sort((v,u)=>+!!u.primary-+!!v.primary),n=x7(r.phoneConfiguration),h=0;return t.forEach(v=>{let u=v.masterApplyFields.fieldNameForApply,s=e6(v);if(!(!u||u==="uploadResume")){if(v.fieldType==="phone"){let p=o[h];h+=1,l[s]=Zg(p||{number:i.phoneNoWithoutCountryCode||i.phoneNo,countryCode:i.countryCode,phoneType:"Home",whatsappEnabled:n.whatsAppEnabled},n.countryIsoCode,n.whatsAppEnabled);return}if(v.fieldType==="checkbox"||c2(v)){l[s]=!!i[u];return}l[s]=i[u]??""}}),l}function MA(t,r,l){return t.filter(i=>i.fieldType==="phone").map(i=>({field:i,phoneValue:r[i.formGroupName||"phoneField1"]})).filter(i=>!!i.phoneValue?.phoneNumField).map(({field:i,phoneValue:o})=>({phoneType:o.phoneType,associatedEntityType:"CANDIDATE",associatedEntityId:l,primary:!!i.primaryPhoneNumber,whatsappEnabled:!!o.whatsAppEnabled,countryCode:mg(o.phoneNumField?.dialCode),number:Pe(o.phoneNumField?.nationalNumber||o.phoneNumField?.number)}))}function fA(t){let r=uA(t.values,t.fields),l={...r};t.fields.filter(h=>h.fieldType==="phone").forEach(h=>{delete l[h.formGroupName||"phoneField1"]});let i=MA(t.fields,r,t.context.applyId),o=i.find(h=>h.primary),n={...t.initialization.jobApplication||{}};if(Object.keys(l).forEach(h=>{Object.prototype.hasOwnProperty.call(n,h)&&(n[h]=l[h])}),o){let h=`${o.countryCode||""}${o.number||""}`;n.phoneNo=h,n.primaryNumWithoutCC=o.number||"",n.countryCode=o.countryCode||"",l.phoneNo=h,l.phoneNoWithoutCountryCode=o.number||"",l.countryCode=o.countryCode||""}return{additionalFieldsMapObject:JSON.stringify({}),applyFieldsObject:JSON.stringify(l),fName:String(l.firstName||""),lName:String(l.lastName||""),jobApplication:n,contactInformation:i}}function xg(t){let[r,l]=(0,O0.useState)(null),[i,o]=(0,O0.useState)([]),[n,h]=(0,O0.useState)({}),[v,u]=(0,O0.useState)(!1),[s,p]=(0,O0.useState)(!1),[A,M]=(0,O0.useState)({}),[H,Z]=(0,O0.useState)(!1);(0,O0.useEffect)(()=>{if(!t.open)return;let y=!1;return u(!0),t.api.loadInitialData(t.context).then(O=>{if(y)return;let T=pA(O.applyFields||[],O.phoneConfiguration,O.phoneNumbers||[],O.applyFieldsObject||{});l(O),o(T),h(HA(T,O)),M({}),Z(!1)}).finally(()=>{y||u(!1)}),()=>{y=!0}},[t.api,t.context,t.open]);let L=(0,O0.useMemo)(()=>i.filter(y=>{let O=y.masterApplyFields.fieldNameForApply;return O&&O!=="uploadResume"&&!c2(y)&&h2(O,i,n)}),[i,n]),w=(0,O0.useMemo)(()=>i.filter(y=>y.fieldType==="phone"),[i]),m=!!(r&&w.length<x7(r.phoneConfiguration).maxCount),V=!v&&!s;(0,O0.useEffect)(()=>{let y=new Set(L.map(O=>e6(O)).filter(Boolean));M(O=>{let T={};return Object.entries(O).forEach(([D,k])=>{y.has(D)&&(T[D]=k)}),H?{...T,...Be(L,i,n)}:T})},[i,n,H,L]);function x(y,O){let T={...n,[y]:O};if(y==="dateOfBirth"){let D=M7(String(O));D!=null&&"agee"in T&&(T.agee=D)}h(T),M(D=>{let k={...D};delete k[y];let W=sA(y,i,T,k);return H?{...W,...Be(i.filter(G=>{let R=G.masterApplyFields.fieldNameForApply;return R&&R!=="uploadResume"&&!c2(G)&&h2(R,i,T)}),i,T)}:W})}function z(y){let O=Vg(i,y);if(!O)return;let T=e6(O),D={...n};if(!h2(O.masterApplyFields.fieldNameForApply,i,D)){M(W=>{let G={...W};return delete G[T],G});return}let k=Se(O,D[T],i,D);M(W=>{let G={...W};return k?G[T]=k:delete G[T],Object.assign(G,q8(L,D)),G})}function B(y){if(!r||!m)return;let T=`phoneField${w.length+1}`,D=x7(r.phoneConfiguration),k={...y,editProfile:"Non Mandatory",formGroupName:T,selectedCountryCode:D.countryIsoCode,primaryPhoneNumber:!1},W=i.indexOf(y);o(G=>[...G.slice(0,W+1),k,...G.slice(W+1)]),h(G=>({...G,[T]:Zg(null,D.countryIsoCode,D.whatsAppEnabled)}))}function S(y){if(y.primaryPhoneNumber)return;let O=e6(y);o(T=>T.filter(D=>D!==y)),h(T=>{let D={...T};return delete D[O],D})}async function $(){if(!r)return null;Z(!0);let y=Be(L,i,n);if(Object.keys(y).length>0)return M(O=>({...O,...y})),null;p(!0);try{let O=fA({fields:i,values:n,initialization:r,context:t.context});return await t.api.submitProfile(O,t.context)}finally{p(!1)}}return{initialization:r,fields:i,formValues:n,isInitializing:v,isSubmitting:s,errors:A,canSubmit:V,canAddMorePhoneFields:m,phoneFieldCount:w.length,setFieldValue:x,validateField:z,submit:$,getVisibleFields(){return L},getDropdownOptions(y,O){return f7(Gv(y),O)},addPhoneField:B,removePhoneField:S}}var wg=E(ea(),1);function Lg(t){return M4({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M363 277h-86v86h-42v-86h-86v-42h86v-86h42v86h86v42z"},child:[]},{tag:"path",attr:{d:"M256 90c44.3 0 86 17.3 117.4 48.6C404.7 170 422 211.7 422 256s-17.3 86-48.6 117.4C342 404.7 300.3 422 256 422c-44.3 0-86-17.3-117.4-48.6C107.3 342 90 300.3 90 256c0-44.3 17.3-86 48.6-117.4C170 107.3 211.7 90 256 90m0-42C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48z"},child:[]}]})(t)}var Bg=E(Gt(),1);function AA(t){let r=t||{},l=r.responseCode??r.code,i=typeof l=="number"?l:void 0,o=typeof r.reponseObject=="string"&&r.reponseObject||typeof r.message=="string"&&r.message||typeof r.errorMessage=="string"&&r.errorMessage||"Something went wrong, Please try again!";return i===void 0||i===200?{isSuccess:!0,toast:{kind:"success",message:o==="Something went wrong, Please try again!"?"Profile updated successfully":o}}:{isSuccess:!1,toast:{kind:i===403||i===500?"warning":"error",message:o}}}function VA(t){t instanceof HTMLElement&&window.setTimeout(()=>{let r=t.querySelector(".rae-field-error");if(!(r instanceof HTMLElement))return;let l=r.closest(".rae-field")||r;if(!(l instanceof HTMLElement))return;let i=t.querySelector(".rae-modal__body--expanded")||t.querySelector(".rae-modal__body");if(i instanceof HTMLElement){let n=l.getBoundingClientRect(),h=i.getBoundingClientRect(),v=n.top-h.top+i.scrollTop-80;i.scrollTo({top:Math.max(0,v),behavior:"smooth"})}else l.scrollIntoView({behavior:"smooth",block:"center"});let o=l.querySelector("input, button, textarea, [role='combobox'], [role='button']");o instanceof HTMLElement&&o.focus({preventScroll:!0})},100)}function Cg(t){let r=xg({open:t.open,api:t.api,context:t.context}),l=(0,u0.useRef)(null),[i,o]=(0,u0.useState)(null),[n,h]=(0,u0.useState)({}),[v,u]=(0,u0.useState)({}),[s,p]=(0,u0.useState)({}),A=(0,u0.useRef)({}),M=(0,u0.useRef)({}),H=(0,u0.useId)();if((0,u0.useEffect)(()=>{if(!i)return;let V=window.setTimeout(()=>o(null),4500);return()=>window.clearTimeout(V)},[i]),(0,u0.useEffect)(()=>()=>{Object.values(M.current).forEach(V=>window.clearTimeout(V))},[]),(0,u0.useEffect)(()=>{p(V=>{let x={...V};return r.fields.forEach(z=>{let B=$5(z);if(!B||!z.masterApplyFields.maskable)return;let S=r.formValues[B],$=S!=null&&String(S).trim()!=="";x[B]=$?x[B]??!0:!1}),x})},[r.fields,r.formValues]),!t.open)return null;function Z(V,x){if(r.setFieldValue(V,x),!t.api.getLocationSuggestions){h(z=>({...z,[V]:[]}));return}if(M.current[V]&&window.clearTimeout(M.current[V]),!x.trim()){h(z=>({...z,[V]:[]})),u(z=>({...z,[V]:!1}));return}M.current[V]=window.setTimeout(async()=>{let z=(A.current[V]||0)+1;A.current[V]=z,u(B=>({...B,[V]:!0}));try{let B=await t.api.getLocationSuggestions?.(x,t.context);if(A.current[V]!==z)return;h(S=>({...S,[V]:B||[]}))}catch{if(A.current[V]!==z)return;h(B=>({...B,[V]:[]}))}finally{A.current[V]===z&&u(B=>({...B,[V]:!1}))}},250)}function L(V,x){r.setFieldValue(V,x),h(z=>({...z,[V]:[]})),u(z=>({...z,[V]:!1}))}async function w(){o(null);try{let V=await r.submit();if(!V){VA(l.current);return}let x=AA(V);t.showSubmitToast!==!1&&o(x.toast),x.isSuccess&&t.onSuccess?.(V)}catch(V){t.showSubmitToast!==!1&&o({kind:"error",message:V instanceof Error&&V.message?V.message:"Something went wrong, Please try again!"})}}let m=[...r.getVisibleFields().filter(V=>V.fieldType!=="checkbox"),...r.getVisibleFields().filter(V=>V.fieldType==="checkbox")];return(0,p1.jsxs)(c7,{open:t.open,onClose:()=>{},className:"rae-overlay",children:[(0,p1.jsx)("div",{className:"rae-overlay__backdrop","aria-hidden":"true"}),(0,p1.jsx)("div",{className:"rae-overlay__viewport",children:(0,p1.jsxs)(C5,{ref:l,className:`rae-modal ${r.isInitializing?"rae-modal--edit-loading":"rae-modal--expanded"} rae-modal--edit-profile`,children:[i?(0,p1.jsxs)("div",{className:`rae-toast rae-toast--${i.kind}`,role:"status","aria-live":"polite",children:[(0,p1.jsx)("span",{children:i.message}),(0,p1.jsx)("button",{type:"button",className:"rae-toast__close",onClick:()=>o(null),"aria-label":"Dismiss notification",children:(0,p1.jsx)(Y8,{})})]}):null,r.isSubmitting?(0,p1.jsxs)("div",{className:"rae-loader-overlay","aria-live":"polite","aria-busy":"true",children:[(0,p1.jsx)(X8,{}),(0,p1.jsx)("p",{className:"rae-loader-text",children:"Saving profile changes..."})]}):null,(0,p1.jsxs)("div",{className:"rae-modal__header",children:[(0,p1.jsx)(w5,{as:"div",className:"rae-modal__title",children:t.title||"Edit Profile"}),(0,p1.jsx)("button",{type:"button",className:"rae-icon-button",onClick:t.onClose,"aria-label":"Close edit profile modal",children:(0,p1.jsx)(Y8,{})})]}),r.isInitializing?(0,p1.jsx)("div",{className:"rae-modal__body rae-modal__body--loading",children:(0,p1.jsx)("div",{className:"rae-inline-loader","aria-live":"polite","aria-busy":"true",children:(0,p1.jsx)(X8,{})})}):(0,p1.jsx)("div",{className:"rae-modal__body rae-modal__body--expanded",children:(0,p1.jsx)("section",{className:"rae-section rae-section--edit-profile",children:(0,p1.jsx)("div",{className:"rae-form-grid",children:m.map(V=>{let x=$5(V),z=r.formValues[x],B=r.errors[x],S=V.fieldType==="checkbox",$=V.editProfile==="Mandatory",y=`${H}-field-${x}`,O=!!(V.masterApplyFields.maskable&&z&&V.fieldType!=="location"&&V.fieldType!=="date"&&V.fieldType!=="phone"&&V.fieldType!=="checkbox"&&V.fieldType!=="D"),T=!!(O&&s[x]);return(0,p1.jsxs)("div",{className:`rae-field ${S?"rae-field--checkbox":""}${B?" rae-field--invalid":""}`,onBlur:D=>{D.currentTarget.contains(D.relatedTarget)||r.validateField(x)},children:[S?null:(0,p1.jsxs)("label",{htmlFor:y,className:"rae-field-label",children:[V.recruiterUploadsLabel,$?(0,p1.jsx)("span",{children:"*"}):null,V.fieldType==="phone"&&V.primaryPhoneNumber?(0,p1.jsx)("span",{className:"rae-phone-primary-badge",children:"Primary"}):null]}),T?(0,p1.jsxs)("div",{className:"rae-mask-shell",children:[(0,p1.jsx)(l6,{id:y,name:x,value:H7(z),readOnly:!0,invalid:!!B}),(0,p1.jsx)("button",{type:"button",className:"rae-mask-toggle",onClick:()=>p(D=>({...D,[x]:!1})),children:"Show"})]}):(0,p1.jsxs)(u0.default.Fragment,{children:[we({field:V,value:z,error:B,inputId:y,inputName:x,readOnly:V.masterApplyFields.fieldNameForApply==="emailId",onChange:D=>r.setFieldValue(x,D),onBlur:()=>r.validateField(x),getDropdownOptions:r.getDropdownOptions,onAddPhoneField:r.addPhoneField,onRemovePhoneField:r.removePhoneField,canAddMorePhoneFields:r.canAddMorePhoneFields,phoneFieldCount:r.phoneFieldCount,locationSuggestions:n[x]||[],isLoadingLocationSuggestions:!!v[x],onLocationInput:D=>Z(x,D),onLocationSuggestionSelect:D=>L(x,D)}),O?(0,p1.jsx)("button",{type:"button",className:"rae-mask-toggle rae-mask-toggle--inline",onClick:()=>p(D=>({...D,[x]:!0})),children:"Hide"}):null]}),B?(0,p1.jsx)("div",{className:"rae-field-error",children:B}):null]},x)})})})}),r.isInitializing?null:(0,p1.jsxs)("div",{className:"rae-modal__footer",children:[(0,p1.jsx)("div",{className:"rae-footer__left"}),(0,p1.jsxs)("div",{className:"rae-footer__actions",children:[(0,p1.jsx)("button",{type:"button",className:"rae-button rae-button--ghost",onClick:t.onClose,children:"Cancel"}),(0,p1.jsx)("button",{type:"button",className:"rae-button rae-button--primary",onClick:()=>{w()},disabled:!r.canSubmit,children:r.isSubmitting?"Saving...":"Save Changes"})]})]})]})})]})}function mA(t){let r=String(t??"").replace(/[^\d]/g,"");if(!r)return"";let l=r.slice(-3),i=r.slice(0,-3);return i?`${i.replace(/\B(?=(\d{2})+(?!\d))/g,",")},${l}`:l}function zg(){if(typeof document>"u")return;let t=[".rae-phone-add-button",".rae-phone-field__add",".rae-phone-action--add",".rae-phone-inline__add"].join(", "),r=new Set;document.querySelectorAll(t).forEach(l=>r.add(l)),document.querySelectorAll(".rae-modal *").forEach(l=>{if(!(l instanceof HTMLElement)||l.children.length>0||(l.textContent||"").trim()!=="+")return;let i=l.closest(".rae-field")||l.closest("[class*='phone']")||l.parentElement;String(i?.textContent||"").toLowerCase().includes("phone")&&r.add(l)}),r.forEach(l=>{if(!(l instanceof HTMLElement)||l.dataset.raePhoneIconMounted==="true")return;l.dataset.raePhoneIconMounted="true",l.classList.add("rae-phone-add-button"),l.textContent="";let i=document.createElement("span");i.className="rae-phone-add-icon",l.appendChild(i),(0,wg.createRoot)(i).render((0,Bg.jsx)(Lg,{"aria-hidden":"true",focusable:"false"}))})}function L7(t){if(!(t instanceof HTMLElement))return;document.querySelectorAll('.rae-select[data-overlay-active="true"], .rae-searchable-select[data-overlay-active="true"]').forEach(m=>{m instanceof HTMLElement&&m!==t&&delete m.dataset.overlayActive});let r=t.querySelector('button[aria-expanded="true"]')||t.querySelector("button"),l=t.querySelector(".rae-select-options")||t.querySelector(".rae-searchable-select__options");if(!(r instanceof HTMLElement)||!(l instanceof HTMLElement))return;let i=r.getBoundingClientRect(),o=window.innerHeight||document.documentElement.clientHeight||0,n=window.innerWidth||document.documentElement.clientWidth||0,h=4,v=12,u=Math.min(l.scrollHeight||240,280),s=o-i.bottom-v,p=i.top-v,A=s<Math.min(u,180)&&p>s,M=Math.max(140,Math.min(u,A?p:s)),H=Math.min(i.width,n-v*2),Z=Math.min(Math.max(v,i.left),n-H-v),L=A?Math.max(v,i.top-M-h):Math.max(v,i.bottom+h),w=t.closest(".rae-field");document.querySelectorAll('.rae-field[data-overlay-active="true"]').forEach(m=>{m instanceof HTMLElement&&m!==w&&delete m.dataset.overlayActive}),t.dataset.overlayActive="true",w instanceof HTMLElement&&(w.dataset.overlayActive="true"),l.dataset.overlayOpen="true",l.style.setProperty("--rae-overlay-top",`${L}px`),l.style.setProperty("--rae-overlay-left",`${Z}px`),l.style.setProperty("--rae-overlay-width",`${H}px`),l.style.setProperty("--rae-overlay-max-height",`${M}px`)}function ZA(t){if(!(t instanceof HTMLElement))return;delete t.dataset.overlayActive;let r=t.closest(".rae-field");r instanceof HTMLElement&&delete r.dataset.overlayActive;let l=t.querySelector(".rae-select-options")||t.querySelector(".rae-searchable-select__options");l instanceof HTMLElement&&(delete l.dataset.overlayOpen,l.style.removeProperty("--rae-overlay-top"),l.style.removeProperty("--rae-overlay-left"),l.style.removeProperty("--rae-overlay-width"),l.style.removeProperty("--rae-overlay-max-height"))}function O5(t){if(!(t instanceof HTMLElement))return;let r=t.querySelector("input"),l=t.__raePortaledLocationSuggestions||t.querySelector(".rae-location-suggestions");if(!(r instanceof HTMLElement)||!(l instanceof HTMLElement))return;let i=r.getBoundingClientRect(),o=window.innerHeight||document.documentElement.clientHeight||0,n=window.innerWidth||document.documentElement.clientWidth||0,h=4,v=12,u=Math.min(l.scrollHeight||240,280),s=o-i.bottom-v,p=i.top-v,A=s<Math.min(u,180)&&p>s,M=Math.max(120,Math.min(u,A?p:s)),H=Math.min(i.width,n-v*2),Z=Math.min(Math.max(v,i.left),n-H-v),L=A?Math.max(v,i.top-M-h):Math.max(v,i.bottom+h);l.dataset.overlayOpen="true",l.style.setProperty("--rae-location-overlay-top",`${L}px`),l.style.setProperty("--rae-location-overlay-left",`${Z}px`),l.style.setProperty("--rae-location-overlay-width",`${H}px`),l.style.setProperty("--rae-location-overlay-max-height",`${M}px`)}function xA(t){if(!(t instanceof HTMLElement))return;let r=t.__raePortaledLocationSuggestions||t.querySelector(".rae-location-suggestions");if(r instanceof HTMLElement){if(delete r.dataset.overlayOpen,r.style.removeProperty("--rae-location-overlay-top"),r.style.removeProperty("--rae-location-overlay-left"),r.style.removeProperty("--rae-location-overlay-width"),r.style.removeProperty("--rae-location-overlay-max-height"),t.__raeLocationOriginalParent instanceof HTMLElement){let l=t.__raeLocationOriginalParent,i=t.__raeLocationOriginalNextSibling||null;i&&i.parentNode===l?l.insertBefore(r,i):l.appendChild(r)}delete t.__raePortaledLocationSuggestions,delete t.__raeLocationOriginalParent,delete t.__raeLocationOriginalNextSibling}}function ye(t){if(!(t instanceof HTMLElement)||typeof document>"u")return;let r=t.__raePortaledLocationSuggestions;if(r instanceof HTMLElement&&r.isConnected&&r.parentElement===document.body)return r;let l=t.querySelector(".rae-location-suggestions");return l instanceof HTMLElement?(t.__raeLocationOriginalParent=l.parentElement,t.__raeLocationOriginalNextSibling=l.nextSibling,t.__raePortaledLocationSuggestions=l,document.body.appendChild(l),l):null}function be(t){if(!(t instanceof HTMLElement))return;let r=t.closest(".rae-modal__body--expanded")||t.closest(".rae-modal__body"),l=t.closest(".rae-modal")?.querySelector?.(".rae-modal__footer"),i=t.__raePortaledLocationSuggestions||t.querySelector(".rae-location-suggestions"),o=t.querySelector("input");if(!(r instanceof HTMLElement)||!(i instanceof HTMLElement)||!(o instanceof HTMLElement))return;let n=o.getBoundingClientRect(),h=r.getBoundingClientRect(),v=l instanceof HTMLElement?l.getBoundingClientRect():null,u=v?Math.min(h.bottom,v.top):h.bottom,s=Math.min(Math.max(i.scrollHeight||0,180),280),M=n.bottom+8+s-u;M>0&&(r.scrollTop+=M+12)}typeof document<"u"&&!window.__raeCurrentCtcFormatterBound&&(window.__raeCurrentCtcFormatterBound=!0,document.addEventListener("input",t=>{let r=t.target;if(!(r instanceof HTMLInputElement))return;let i=r.closest(".rae-field")?.querySelector?.(".rae-field-label");if(!String(i?.textContent||"").toLowerCase().includes("current ctc"))return;let n=mA(r.value);if(n!==r.value){let h=r.selectionStart===r.value.length;if(r.value=n,h){let v=n.length;window.requestAnimationFrame(()=>{try{r.setSelectionRange(v,v)}catch{}})}}},!0));if(typeof document<"u"&&!window.__raeDropdownOverlayBound){window.__raeDropdownOverlayBound=!0;let t=r=>{let l=r?.closest?.(".rae-select, .rae-searchable-select");l instanceof HTMLElement&&window.requestAnimationFrame(()=>L7(l))};document.addEventListener("click",r=>{t(r.target),document.querySelectorAll(".rae-select, .rae-searchable-select").forEach(i=>{if(!(i instanceof HTMLElement))return;i.querySelector('button[aria-expanded="true"]')?L7(i):ZA(i)})},!0),window.addEventListener("resize",()=>{document.querySelectorAll(".rae-select, .rae-searchable-select").forEach(r=>L7(r))},{passive:!0}),document.addEventListener("scroll",()=>{document.querySelectorAll(".rae-select, .rae-searchable-select").forEach(r=>L7(r))},!0)}typeof document<"u"&&!window.__raePhoneAddIconBound&&(window.__raePhoneAddIconBound=!0,new MutationObserver(()=>zg()).observe(document.body,{childList:!0,subtree:!0}),window.requestAnimationFrame(()=>zg()));if(typeof document<"u"&&!window.__raeLocationCloseBound){window.__raeLocationCloseBound=!0;let t=l=>{document.querySelectorAll(".rae-location-field").forEach(i=>{if(!(i instanceof HTMLElement))return;let o=l instanceof Node?i.contains(l):!1,n=i.__raePortaledLocationSuggestions||i.querySelector(".rae-location-suggestions");if(o){let v=ye(i);i.dataset.locationOpen="true";let u=v||i.__raePortaledLocationSuggestions||n;u instanceof HTMLElement&&(u.style.display="block"),window.requestAnimationFrame(()=>{be(i),O5(i)});return}delete i.dataset.locationOpen,n instanceof HTMLElement&&(n.style.display="none"),xA(i);let h=i.querySelector("input");h instanceof HTMLInputElement&&document.activeElement===h&&h.blur()})};document.addEventListener("focusin",l=>{t(l.target)},!0),document.addEventListener("pointerdown",l=>{t(l.target)},!0),document.addEventListener("input",l=>{let i=l.target;if(!(i instanceof HTMLElement))return;let o=i.closest(".rae-location-field");o instanceof HTMLElement&&o.dataset.locationOpen==="true"&&window.requestAnimationFrame(()=>{let n=ye(o);n instanceof HTMLElement&&(n.style.display="block"),be(o),O5(o)})},!0),new MutationObserver(()=>{document.querySelectorAll(".rae-location-field[data-location-open='true']").forEach(l=>{if(!(l instanceof HTMLElement))return;let i=ye(l);i instanceof HTMLElement&&(i.style.display="block"),be(l),O5(l)})}).observe(document.body,{childList:!0,subtree:!0}),window.addEventListener("resize",()=>{document.querySelectorAll(".rae-location-field[data-location-open='true']").forEach(l=>{O5(l)})},{passive:!0}),document.addEventListener("scroll",()=>{document.querySelectorAll(".rae-location-field[data-location-open='true']").forEach(l=>{O5(l)})},!0)}typeof document<"u"&&!window.__raeValidationScrollBound&&(window.__raeValidationScrollBound=!0);function Pg(t,r){t.render(Te.default.createElement(pg,{open:!0,api:r.api,context:r.context,onClose:r.onClose||(()=>{}),onSuccess:r.onSuccess,showSubmitToast:r.showSubmitToast,title:r.title}))}function LA(t){let r=(0,$e.createRoot)(t.container);return Pg(r,t),{update(l){Pg(r,l)},unmount(){r.unmount()}}}function ZS(t){let r=t.tagName||"apply-experience-add-profile";if(!customElements.get(r)){class l extends HTMLElement{connectedCallback(){this.__mountedWidget=LA({container:this,api:t.getApi(),context:t.getContext(),title:this.getAttribute("title")||void 0,onClose:t.onClose,onSuccess:t.onSuccess,showSubmitToast:t.showSubmitToast})}disconnectedCallback(){this.__mountedWidget?.unmount()}}customElements.define(r,l)}return r}function Sg(t,r){t.render(Te.default.createElement(Cg,{open:!0,api:r.api,context:r.context,onClose:r.onClose||(()=>{}),onSuccess:r.onSuccess,showSubmitToast:r.showSubmitToast,title:r.title}))}function zA(t){let r=(0,$e.createRoot)(t.container);return Sg(r,t),{update(l){Sg(r,l)},unmount(){r.unmount()}}}function xS(t){let r=t.tagName||"apply-experience-edit-profile";if(!customElements.get(r)){class l extends HTMLElement{connectedCallback(){this.__mountedWidget=zA({container:this,api:t.getApi(),context:t.getContext(),title:this.getAttribute("title")||void 0,onClose:t.onClose,onSuccess:t.onSuccess,showSubmitToast:t.showSubmitToast})}disconnectedCallback(){this.__mountedWidget?.unmount()}}customElements.define(r,l)}return r}export{LA as mountAddProfile,zA as mountEditProfile,ZS as registerAddProfileElement,xS as registerEditProfileElement};
30
+ `)),[]});var VH=(t=>(t[t.None=0]="None",t[t.Closed=1]="Closed",t[t.Enter=2]="Enter",t[t.Leave=4]="Leave",t))(VH||{});function w8(t){let r={};for(let l in t)t[l]===!0&&(r[`data-${l}`]="");return r}function B8(t,r,l,i){let[o,n]=(0,s5.useState)(l),{hasFlag:h,addFlag:v,removeFlag:u}=jh(t&&o?3:0),s=(0,s5.useRef)(!1),p=(0,s5.useRef)(!1),A=j1();return J(()=>{var M;if(t){if(l&&n(!0),!r){l&&v(3);return}return(M=i?.start)==null||M.call(i,l),mH(r,{inFlight:s,prepare(){p.current?p.current=!1:p.current=s.current,s.current=!0,!p.current&&(l?(v(3),u(4)):(v(4),u(2)))},run(){p.current?l?(u(3),v(4)):(u(4),v(3)):l?u(1):v(1)},done(){var H;p.current&&LH(r)||(s.current=!1,u(7),l||n(!1),(H=i?.end)==null||H.call(i,l))}})}},[t,l,r,A]),t?[o,{closed:h(1),enter:h(2),leave:h(4),transition:h(2)||h(4)}]:[l,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function mH(t,{prepare:r,run:l,done:i,inFlight:o}){let n=T1();return xH(t,{prepare:r,inFlight:o}),n.nextFrame(()=>{l(),n.requestAnimationFrame(()=>{n.add(ZH(t,i))})}),n.dispose}function ZH(t,r){var l,i;let o=T1();if(!t)return o.dispose;let n=!1;o.add(()=>{n=!0});let h=(i=(l=t.getAnimations)==null?void 0:l.call(t).filter(v=>v instanceof CSSTransition))!=null?i:[];return h.length===0?(r(),o.dispose):(Promise.allSettled(h.map(v=>v.finished)).then(()=>{n||r()}),o.dispose)}function xH(t,{inFlight:r,prepare:l}){if(r!=null&&r.current){l();return}let i=t.style.transition;t.style.transition="none",l(),t.offsetHeight,t.style.transition=i}function LH(t){var r,l;return((l=(r=t.getAnimations)==null?void 0:r.call(t))!=null?l:[]).some(i=>i instanceof CSSTransition&&i.playState!=="finished")}var p5=E(I(),1);function Yh(t,{container:r,accept:l,walk:i}){let o=(0,p5.useRef)(l),n=(0,p5.useRef)(i);(0,p5.useEffect)(()=>{o.current=l,n.current=i},[l,i]),J(()=>{if(!r||!t)return;let h=k0(r);if(!h)return;let v=o.current,u=n.current,s=Object.assign(A=>v(A),{acceptNode:v}),p=h.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,s,!1);for(;p.nextNode();)u(p.currentNode)},[r,t,o,n])}var Ea=E(I(),1);function C6(t,r){let l=(0,Ea.useRef)([]),i=_(t);(0,Ea.useEffect)(()=>{let o=[...l.current];for(let[n,h]of r.entries())if(l.current[n]!==h){let v=i(r,o);return l.current=r,v}},[i,...r])}var t1=E(I(),1),Z5=E(I(),1);function Na(){return typeof window<"u"}function X4(t){return Qh(t)?(t.nodeName||"").toLowerCase():"#document"}function C0(t){var r;return(t==null||(r=t.ownerDocument)==null?void 0:r.defaultView)||window}function L2(t){var r;return(r=(Qh(t)?t.ownerDocument:t.document)||window.document)==null?void 0:r.documentElement}function Qh(t){return Na()?t instanceof Node||t instanceof C0(t).Node:!1}function v0(t){return Na()?t instanceof Element||t instanceof C0(t).Element:!1}function z2(t){return Na()?t instanceof HTMLElement||t instanceof C0(t).HTMLElement:!1}function Xh(t){return!Na()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof C0(t).ShadowRoot}function P8(t){let{overflow:r,overflowX:l,overflowY:i,display:o}=G0(t);return/auto|scroll|overlay|hidden|clip/.test(r+i+l)&&o!=="inline"&&o!=="contents"}function Jh(t){return/^(table|td|th)$/.test(X4(t))}function H5(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var zH=/transform|translate|scale|rotate|perspective|filter/,CH=/paint|layout|strict|content/,w6=t=>!!t&&t!=="none",Cl;function _a(t){let r=v0(t)?G0(t):t;return w6(r.transform)||w6(r.translate)||w6(r.scale)||w6(r.rotate)||w6(r.perspective)||!M5()&&(w6(r.backdropFilter)||w6(r.filter))||zH.test(r.willChange||"")||CH.test(r.contain||"")}function td(t){let r=k2(t);for(;z2(r)&&!Q4(r);){if(_a(r))return r;if(H5(r))return null;r=k2(r)}return null}function M5(){return Cl==null&&(Cl=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Cl}function Q4(t){return/^(html|body|#document)$/.test(X4(t))}function G0(t){return C0(t).getComputedStyle(t)}function f5(t){return v0(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function k2(t){if(X4(t)==="html")return t;let r=t.assignedSlot||t.parentNode||Xh(t)&&t.host||L2(t);return Xh(r)?r.host:r}function ad(t){let r=k2(t);return Q4(r)?t.ownerDocument?t.ownerDocument.body:t.body:z2(r)&&P8(r)?r:ad(r)}function g4(t,r,l){var i;r===void 0&&(r=[]),l===void 0&&(l=!0);let o=ad(t),n=o===((i=t.ownerDocument)==null?void 0:i.body),h=C0(o);if(n){let v=Ra(h);return r.concat(h,h.visualViewport||[],P8(o)?o:[],v&&l?g4(v):[])}else return r.concat(o,g4(o,[],l))}function Ra(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function rd(){let t=navigator.userAgentData;return t&&Array.isArray(t.brands)?t.brands.map(r=>{let{brand:l,version:i}=r;return l+"/"+i}).join(" "):navigator.userAgent}var U2=Math.min,t0=Math.max,B6=Math.round,S8=Math.floor,C2=t=>({x:t,y:t}),wH={left:"right",right:"left",bottom:"top",top:"bottom"};function wl(t,r,l){return t0(t,U2(r,l))}function J4(t,r){return typeof t=="function"?t(r):t}function u4(t){return t.split("-")[0]}function y8(t){return t.split("-")[1]}function Bl(t){return t==="x"?"y":"x"}function Pl(t){return t==="y"?"height":"width"}function G2(t){let r=t[0];return r==="t"||r==="b"?"y":"x"}function Sl(t){return Bl(G2(t))}function id(t,r,l){l===void 0&&(l=!1);let i=y8(t),o=Sl(t),n=Pl(o),h=o==="x"?i===(l?"end":"start")?"right":"left":i==="start"?"bottom":"top";return r.reference[n]>r.floating[n]&&(h=A5(h)),[h,A5(h)]}function od(t){let r=A5(t);return[Ia(t),r,Ia(r)]}function Ia(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}var ld=["left","right"],ed=["right","left"],BH=["top","bottom"],PH=["bottom","top"];function SH(t,r,l){switch(t){case"top":case"bottom":return l?r?ed:ld:r?ld:ed;case"left":case"right":return r?BH:PH;default:return[]}}function nd(t,r,l,i){let o=y8(t),n=SH(u4(t),l==="start",i);return o&&(n=n.map(h=>h+"-"+o),r&&(n=n.concat(n.map(Ia)))),n}function A5(t){let r=u4(t);return wH[r]+t.slice(r.length)}function yH(t){return{top:0,right:0,bottom:0,left:0,...t}}function cd(t){return typeof t!="number"?yH(t):{top:t,right:t,bottom:t,left:t}}function P6(t){let{x:r,y:l,width:i,height:o}=t;return{width:i,height:o,top:l,left:r,right:r+i,bottom:l+o,x:r,y:l}}var m5=E(O2(),1);function hd(t,r,l){let{reference:i,floating:o}=t,n=G2(r),h=Sl(r),v=Pl(h),u=u4(r),s=n==="y",p=i.x+i.width/2-o.width/2,A=i.y+i.height/2-o.height/2,M=i[v]/2-o[v]/2,H;switch(u){case"top":H={x:p,y:i.y-o.height};break;case"bottom":H={x:p,y:i.y+i.height};break;case"right":H={x:i.x+i.width,y:A};break;case"left":H={x:i.x-o.width,y:A};break;default:H={x:i.x,y:i.y}}switch(y8(r)){case"start":H[h]-=M*(l&&s?-1:1);break;case"end":H[h]+=M*(l&&s?-1:1);break}return H}async function yl(t,r){var l;r===void 0&&(r={});let{x:i,y:o,platform:n,rects:h,elements:v,strategy:u}=t,{boundary:s="clippingAncestors",rootBoundary:p="viewport",elementContext:A="floating",altBoundary:M=!1,padding:H=0}=J4(r,t),Z=cd(H),w=v[M?A==="floating"?"reference":"floating":A],m=P6(await n.getClippingRect({element:(l=await(n.isElement==null?void 0:n.isElement(w)))==null||l?w:w.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(v.floating)),boundary:s,rootBoundary:p,strategy:u})),V=A==="floating"?{x:i,y:o,width:h.floating.width,height:h.floating.height}:h.reference,x=await(n.getOffsetParent==null?void 0:n.getOffsetParent(v.floating)),z=await(n.isElement==null?void 0:n.isElement(x))?await(n.getScale==null?void 0:n.getScale(x))||{x:1,y:1}:{x:1,y:1},B=P6(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:v,rect:V,offsetParent:x,strategy:u}):V);return{top:(m.top-B.top+Z.top)/z.y,bottom:(B.bottom-m.bottom+Z.bottom)/z.y,left:(m.left-B.left+Z.left)/z.x,right:(B.right-m.right+Z.right)/z.x}}var bH=50,dd=async(t,r,l)=>{let{placement:i="bottom",strategy:o="absolute",middleware:n=[],platform:h}=l,v=h.detectOverflow?h:{...h,detectOverflow:yl},u=await(h.isRTL==null?void 0:h.isRTL(r)),s=await h.getElementRects({reference:t,floating:r,strategy:o}),{x:p,y:A}=hd(s,i,u),M=i,H=0,Z={};for(let L=0;L<n.length;L++){let w=n[L];if(!w)continue;let{name:m,fn:V}=w,{x,y:z,data:B,reset:S}=await V({x:p,y:A,initialPlacement:i,placement:M,strategy:o,middlewareData:Z,rects:s,platform:v,elements:{reference:t,floating:r}});p=x??p,A=z??A,Z[m]={...Z[m],...B},S&&H<bH&&(H++,typeof S=="object"&&(S.placement&&(M=S.placement),S.rects&&(s=S.rects===!0?await h.getElementRects({reference:t,floating:r,strategy:o}):S.rects),{x:p,y:A}=hd(s,M,u)),L=-1)}return{x:p,y:A,placement:M,strategy:o,middlewareData:Z}};var vd=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(r){var l,i;let{placement:o,middlewareData:n,rects:h,initialPlacement:v,platform:u,elements:s}=r,{mainAxis:p=!0,crossAxis:A=!0,fallbackPlacements:M,fallbackStrategy:H="bestFit",fallbackAxisSideDirection:Z="none",flipAlignment:L=!0,...w}=J4(t,r);if((l=n.arrow)!=null&&l.alignmentOffset)return{};let m=u4(o),V=G2(v),x=u4(v)===v,z=await(u.isRTL==null?void 0:u.isRTL(s.floating)),B=M||(x||!L?[A5(v)]:od(v)),S=Z!=="none";!M&&S&&B.push(...nd(v,L,Z,z));let $=[v,...B],y=await u.detectOverflow(r,w),O=[],T=((i=n.flip)==null?void 0:i.overflows)||[];if(p&&O.push(y[m]),A){let G=id(o,h,z);O.push(y[G[0]],y[G[1]])}if(T=[...T,{placement:o,overflows:O}],!O.every(G=>G<=0)){var D,k;let G=(((D=n.flip)==null?void 0:D.index)||0)+1,R=$[G];if(R&&(!(A==="alignment"?V!==G2(R):!1)||T.every(K=>G2(K.placement)===V?K.overflows[0]>0:!0)))return{data:{index:G,overflows:T},reset:{placement:R}};let Y=(k=T.filter(M1=>M1.overflows[0]<=0).sort((M1,K)=>M1.overflows[1]-K.overflows[1])[0])==null?void 0:k.placement;if(!Y)switch(H){case"bestFit":{var W;let M1=(W=T.filter(K=>{if(S){let a1=G2(K.placement);return a1===V||a1==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(a1=>a1>0).reduce((a1,d1)=>a1+d1,0)]).sort((K,a1)=>K[1]-a1[1])[0])==null?void 0:W[0];M1&&(Y=M1);break}case"initialPlacement":Y=v;break}if(o!==Y)return{reset:{placement:Y}}}return{}}}};var TH=new Set(["left","top"]);async function $H(t,r){let{placement:l,platform:i,elements:o}=t,n=await(i.isRTL==null?void 0:i.isRTL(o.floating)),h=u4(l),v=y8(l),u=G2(l)==="y",s=TH.has(h)?-1:1,p=n&&u?-1:1,A=J4(r,t),{mainAxis:M,crossAxis:H,alignmentAxis:Z}=typeof A=="number"?{mainAxis:A,crossAxis:0,alignmentAxis:null}:{mainAxis:A.mainAxis||0,crossAxis:A.crossAxis||0,alignmentAxis:A.alignmentAxis};return v&&typeof Z=="number"&&(H=v==="end"?Z*-1:Z),u?{x:H*p,y:M*s}:{x:M*s,y:H*p}}var gd=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(r){var l,i;let{x:o,y:n,placement:h,middlewareData:v}=r,u=await $H(r,t);return h===((l=v.offset)==null?void 0:l.placement)&&(i=v.arrow)!=null&&i.alignmentOffset?{}:{x:o+u.x,y:n+u.y,data:{...u,placement:h}}}}},ud=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(r){let{x:l,y:i,placement:o,platform:n}=r,{mainAxis:h=!0,crossAxis:v=!1,limiter:u={fn:m=>{let{x:V,y:x}=m;return{x:V,y:x}}},...s}=J4(t,r),p={x:l,y:i},A=await n.detectOverflow(r,s),M=G2(u4(o)),H=Bl(M),Z=p[H],L=p[M];if(h){let m=H==="y"?"top":"left",V=H==="y"?"bottom":"right",x=Z+A[m],z=Z-A[V];Z=wl(x,Z,z)}if(v){let m=M==="y"?"top":"left",V=M==="y"?"bottom":"right",x=L+A[m],z=L-A[V];L=wl(x,L,z)}let w=u.fn({...r,[H]:Z,[M]:L});return{...w,data:{x:w.x-l,y:w.y-i,enabled:{[H]:h,[M]:v}}}}}};var sd=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(r){var l,i;let{placement:o,rects:n,platform:h,elements:v}=r,{apply:u=()=>{},...s}=J4(t,r),p=await h.detectOverflow(r,s),A=u4(o),M=y8(o),H=G2(o)==="y",{width:Z,height:L}=n.floating,w,m;A==="top"||A==="bottom"?(w=A,m=M===(await(h.isRTL==null?void 0:h.isRTL(v.floating))?"start":"end")?"left":"right"):(m=A,w=M==="end"?"top":"bottom");let V=L-p.top-p.bottom,x=Z-p.left-p.right,z=U2(L-p[w],V),B=U2(Z-p[m],x),S=!r.middlewareData.shift,$=z,y=B;if((l=r.middlewareData.shift)!=null&&l.enabled.x&&(y=x),(i=r.middlewareData.shift)!=null&&i.enabled.y&&($=V),S&&!M){let T=t0(p.left,0),D=t0(p.right,0),k=t0(p.top,0),W=t0(p.bottom,0);H?y=Z-2*(T!==0||D!==0?T+D:t0(p.left,p.right)):$=L-2*(k!==0||W!==0?k+W:t0(p.top,p.bottom))}await u({...r,availableWidth:y,availableHeight:$});let O=await h.getDimensions(v.floating);return Z!==O.width||L!==O.height?{reset:{rects:!0}}:{}}}};function fd(t){let r=G0(t),l=parseFloat(r.width)||0,i=parseFloat(r.height)||0,o=z2(t),n=o?t.offsetWidth:l,h=o?t.offsetHeight:i,v=B6(l)!==n||B6(i)!==h;return v&&(l=n,i=h),{width:l,height:i,$:v}}function Tl(t){return v0(t)?t:t.contextElement}function b8(t){let r=Tl(t);if(!z2(r))return C2(1);let l=r.getBoundingClientRect(),{width:i,height:o,$:n}=fd(r),h=(n?B6(l.width):l.width)/i,v=(n?B6(l.height):l.height)/o;return(!h||!Number.isFinite(h))&&(h=1),(!v||!Number.isFinite(v))&&(v=1),{x:h,y:v}}var OH=C2(0);function Ad(t){let r=C0(t);return!M5()||!r.visualViewport?OH:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function FH(t,r,l){return r===void 0&&(r=!1),!l||r&&l!==C0(t)?!1:r}function S6(t,r,l,i){r===void 0&&(r=!1),l===void 0&&(l=!1);let o=t.getBoundingClientRect(),n=Tl(t),h=C2(1);r&&(i?v0(i)&&(h=b8(i)):h=b8(t));let v=FH(n,l,i)?Ad(n):C2(0),u=(o.left+v.x)/h.x,s=(o.top+v.y)/h.y,p=o.width/h.x,A=o.height/h.y;if(n){let M=C0(n),H=i&&v0(i)?C0(i):i,Z=M,L=Ra(Z);for(;L&&i&&H!==Z;){let w=b8(L),m=L.getBoundingClientRect(),V=G0(L),x=m.left+(L.clientLeft+parseFloat(V.paddingLeft))*w.x,z=m.top+(L.clientTop+parseFloat(V.paddingTop))*w.y;u*=w.x,s*=w.y,p*=w.x,A*=w.y,u+=x,s+=z,Z=C0(L),L=Ra(Z)}}return P6({width:p,height:A,x:u,y:s})}function ka(t,r){let l=f5(t).scrollLeft;return r?r.left+l:S6(L2(t)).left+l}function Vd(t,r){let l=t.getBoundingClientRect(),i=l.left+r.scrollLeft-ka(t,l),o=l.top+r.scrollTop;return{x:i,y:o}}function DH(t){let{elements:r,rect:l,offsetParent:i,strategy:o}=t,n=o==="fixed",h=L2(i),v=r?H5(r.floating):!1;if(i===h||v&&n)return l;let u={scrollLeft:0,scrollTop:0},s=C2(1),p=C2(0),A=z2(i);if((A||!A&&!n)&&((X4(i)!=="body"||P8(h))&&(u=f5(i)),A)){let H=S6(i);s=b8(i),p.x=H.x+i.clientLeft,p.y=H.y+i.clientTop}let M=h&&!A&&!n?Vd(h,u):C2(0);return{width:l.width*s.x,height:l.height*s.y,x:l.x*s.x-u.scrollLeft*s.x+p.x+M.x,y:l.y*s.y-u.scrollTop*s.y+p.y+M.y}}function EH(t){return Array.from(t.getClientRects())}function NH(t){let r=L2(t),l=f5(t),i=t.ownerDocument.body,o=t0(r.scrollWidth,r.clientWidth,i.scrollWidth,i.clientWidth),n=t0(r.scrollHeight,r.clientHeight,i.scrollHeight,i.clientHeight),h=-l.scrollLeft+ka(t),v=-l.scrollTop;return G0(i).direction==="rtl"&&(h+=t0(r.clientWidth,i.clientWidth)-o),{width:o,height:n,x:h,y:v}}var pd=25;function _H(t,r){let l=C0(t),i=L2(t),o=l.visualViewport,n=i.clientWidth,h=i.clientHeight,v=0,u=0;if(o){n=o.width,h=o.height;let p=M5();(!p||p&&r==="fixed")&&(v=o.offsetLeft,u=o.offsetTop)}let s=ka(i);if(s<=0){let p=i.ownerDocument,A=p.body,M=getComputedStyle(A),H=p.compatMode==="CSS1Compat"&&parseFloat(M.marginLeft)+parseFloat(M.marginRight)||0,Z=Math.abs(i.clientWidth-A.clientWidth-H);Z<=pd&&(n-=Z)}else s<=pd&&(n+=s);return{width:n,height:h,x:v,y:u}}function RH(t,r){let l=S6(t,!0,r==="fixed"),i=l.top+t.clientTop,o=l.left+t.clientLeft,n=z2(t)?b8(t):C2(1),h=t.clientWidth*n.x,v=t.clientHeight*n.y,u=o*n.x,s=i*n.y;return{width:h,height:v,x:u,y:s}}function Hd(t,r,l){let i;if(r==="viewport")i=_H(t,l);else if(r==="document")i=NH(L2(t));else if(v0(r))i=RH(r,l);else{let o=Ad(t);i={x:r.x-o.x,y:r.y-o.y,width:r.width,height:r.height}}return P6(i)}function md(t,r){let l=k2(t);return l===r||!v0(l)||Q4(l)?!1:G0(l).position==="fixed"||md(l,r)}function IH(t,r){let l=r.get(t);if(l)return l;let i=g4(t,[],!1).filter(v=>v0(v)&&X4(v)!=="body"),o=null,n=G0(t).position==="fixed",h=n?k2(t):t;for(;v0(h)&&!Q4(h);){let v=G0(h),u=_a(h);!u&&v.position==="fixed"&&(o=null),(n?!u&&!o:!u&&v.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||P8(h)&&!u&&md(t,h))?i=i.filter(p=>p!==h):o=v,h=k2(h)}return r.set(t,i),i}function kH(t){let{element:r,boundary:l,rootBoundary:i,strategy:o}=t,h=[...l==="clippingAncestors"?H5(r)?[]:IH(r,this._c):[].concat(l),i],v=Hd(r,h[0],o),u=v.top,s=v.right,p=v.bottom,A=v.left;for(let M=1;M<h.length;M++){let H=Hd(r,h[M],o);u=t0(H.top,u),s=U2(H.right,s),p=U2(H.bottom,p),A=t0(H.left,A)}return{width:s-A,height:p-u,x:A,y:u}}function UH(t){let{width:r,height:l}=fd(t);return{width:r,height:l}}function GH(t,r,l){let i=z2(r),o=L2(r),n=l==="fixed",h=S6(t,!0,n,r),v={scrollLeft:0,scrollTop:0},u=C2(0);function s(){u.x=ka(o)}if(i||!i&&!n)if((X4(r)!=="body"||P8(o))&&(v=f5(r)),i){let H=S6(r,!0,n,r);u.x=H.x+r.clientLeft,u.y=H.y+r.clientTop}else o&&s();n&&!i&&o&&s();let p=o&&!i&&!n?Vd(o,v):C2(0),A=h.left+v.scrollLeft-u.x-p.x,M=h.top+v.scrollTop-u.y-p.y;return{x:A,y:M,width:h.width,height:h.height}}function bl(t){return G0(t).position==="static"}function Md(t,r){if(!z2(t)||G0(t).position==="fixed")return null;if(r)return r(t);let l=t.offsetParent;return L2(t)===l&&(l=l.ownerDocument.body),l}function Zd(t,r){let l=C0(t);if(H5(t))return l;if(!z2(t)){let o=k2(t);for(;o&&!Q4(o);){if(v0(o)&&!bl(o))return o;o=k2(o)}return l}let i=Md(t,r);for(;i&&Jh(i)&&bl(i);)i=Md(i,r);return i&&Q4(i)&&bl(i)&&!_a(i)?l:i||td(t)||l}var WH=async function(t){let r=this.getOffsetParent||Zd,l=this.getDimensions,i=await l(t.floating);return{reference:GH(t.reference,await r(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function jH(t){return G0(t).direction==="rtl"}var $l={convertOffsetParentRelativeRectToViewportRelativeRect:DH,getDocumentElement:L2,getClippingRect:kH,getOffsetParent:Zd,getElementRects:WH,getClientRects:EH,getDimensions:UH,getScale:b8,isElement:v0,isRTL:jH};function xd(t,r){return t.x===r.x&&t.y===r.y&&t.width===r.width&&t.height===r.height}function qH(t,r){let l=null,i,o=L2(t);function n(){var v;clearTimeout(i),(v=l)==null||v.disconnect(),l=null}function h(v,u){v===void 0&&(v=!1),u===void 0&&(u=1),n();let s=t.getBoundingClientRect(),{left:p,top:A,width:M,height:H}=s;if(v||r(),!M||!H)return;let Z=S8(A),L=S8(o.clientWidth-(p+M)),w=S8(o.clientHeight-(A+H)),m=S8(p),x={rootMargin:-Z+"px "+-L+"px "+-w+"px "+-m+"px",threshold:t0(0,U2(1,u))||1},z=!0;function B(S){let $=S[0].intersectionRatio;if($!==u){if(!z)return h();$?h(!1,$):i=setTimeout(()=>{h(!1,1e-7)},1e3)}$===1&&!xd(s,t.getBoundingClientRect())&&h(),z=!1}try{l=new IntersectionObserver(B,{...x,root:o.ownerDocument})}catch{l=new IntersectionObserver(B,x)}l.observe(t)}return h(!0),n}function Ua(t,r,l,i){i===void 0&&(i={});let{ancestorScroll:o=!0,ancestorResize:n=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:v=typeof IntersectionObserver=="function",animationFrame:u=!1}=i,s=Tl(t),p=o||n?[...s?g4(s):[],...r?g4(r):[]]:[];p.forEach(m=>{o&&m.addEventListener("scroll",l,{passive:!0}),n&&m.addEventListener("resize",l)});let A=s&&v?qH(s,l):null,M=-1,H=null;h&&(H=new ResizeObserver(m=>{let[V]=m;V&&V.target===s&&H&&r&&(H.unobserve(r),cancelAnimationFrame(M),M=requestAnimationFrame(()=>{var x;(x=H)==null||x.observe(r)})),l()}),s&&!u&&H.observe(s),r&&H.observe(r));let Z,L=u?S6(t):null;u&&w();function w(){let m=S6(t);L&&!xd(L,m)&&l(),L=m,Z=requestAnimationFrame(w)}return l(),()=>{var m;p.forEach(V=>{o&&V.removeEventListener("scroll",l),n&&V.removeEventListener("resize",l)}),A?.(),(m=H)==null||m.disconnect(),H=null,u&&cancelAnimationFrame(Z)}}var T8=yl,Ld=gd;var zd=ud,Cd=vd,wd=sd;var Ga=(t,r,l)=>{let i=new Map,o={platform:$l,...l},n={...o.platform,_c:i};return dd(t,r,{...o,platform:n})};var K1=E(I(),1),Pd=E(I(),1),Sd=E(O2(),1),KH=typeof document<"u",YH=function(){},Wa=KH?Pd.useLayoutEffect:YH;function ja(t,r){if(t===r)return!0;if(typeof t!=typeof r)return!1;if(typeof t=="function"&&t.toString()===r.toString())return!0;let l,i,o;if(t&&r&&typeof t=="object"){if(Array.isArray(t)){if(l=t.length,l!==r.length)return!1;for(i=l;i--!==0;)if(!ja(t[i],r[i]))return!1;return!0}if(o=Object.keys(t),l=o.length,l!==Object.keys(r).length)return!1;for(i=l;i--!==0;)if(!{}.hasOwnProperty.call(r,o[i]))return!1;for(i=l;i--!==0;){let n=o[i];if(!(n==="_owner"&&t.$$typeof)&&!ja(t[n],r[n]))return!1}return!0}return t!==t&&r!==r}function yd(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Bd(t,r){let l=yd(t);return Math.round(r*l)/l}function Ol(t){let r=K1.useRef(t);return Wa(()=>{r.current=t}),r}function bd(t){t===void 0&&(t={});let{placement:r="bottom",strategy:l="absolute",middleware:i=[],platform:o,elements:{reference:n,floating:h}={},transform:v=!0,whileElementsMounted:u,open:s}=t,[p,A]=K1.useState({x:0,y:0,strategy:l,placement:r,middlewareData:{},isPositioned:!1}),[M,H]=K1.useState(i);ja(M,i)||H(i);let[Z,L]=K1.useState(null),[w,m]=K1.useState(null),V=K1.useCallback(K=>{K!==S.current&&(S.current=K,L(K))},[]),x=K1.useCallback(K=>{K!==$.current&&($.current=K,m(K))},[]),z=n||Z,B=h||w,S=K1.useRef(null),$=K1.useRef(null),y=K1.useRef(p),O=u!=null,T=Ol(u),D=Ol(o),k=Ol(s),W=K1.useCallback(()=>{if(!S.current||!$.current)return;let K={placement:r,strategy:l,middleware:M};D.current&&(K.platform=D.current),Ga(S.current,$.current,K).then(a1=>{let d1={...a1,isPositioned:k.current!==!1};G.current&&!ja(y.current,d1)&&(y.current=d1,Sd.flushSync(()=>{A(d1)}))})},[M,r,l,D,k]);Wa(()=>{s===!1&&y.current.isPositioned&&(y.current.isPositioned=!1,A(K=>({...K,isPositioned:!1})))},[s]);let G=K1.useRef(!1);Wa(()=>(G.current=!0,()=>{G.current=!1}),[]),Wa(()=>{if(z&&(S.current=z),B&&($.current=B),z&&B){if(T.current)return T.current(z,B,W);W()}},[z,B,W,T,O]);let R=K1.useMemo(()=>({reference:S,floating:$,setReference:V,setFloating:x}),[V,x]),Y=K1.useMemo(()=>({reference:z,floating:B}),[z,B]),M1=K1.useMemo(()=>{let K={position:l,left:0,top:0};if(!Y.floating)return K;let a1=Bd(Y.floating,p.x),d1=Bd(Y.floating,p.y);return v?{...K,transform:"translate("+a1+"px, "+d1+"px)",...yd(Y.floating)>=1.5&&{willChange:"transform"}}:{position:l,left:a1,top:d1}},[l,v,Y.floating,p.x,p.y]);return K1.useMemo(()=>({...p,update:W,refs:R,elements:Y,floatingStyles:M1}),[p,W,R,Y,M1])}var V5=(t,r)=>{let l=Ld(t);return{name:l.name,fn:l.fn,options:[t,r]}},Fl=(t,r)=>{let l=zd(t);return{name:l.name,fn:l.fn,options:[t,r]}};var Dl=(t,r)=>{let l=Cd(t);return{name:l.name,fn:l.fn,options:[t,r]}},El=(t,r)=>{let l=wd(t);return{name:l.name,fn:l.fn,options:[t,r]}};var Ed={...t1},XH=Ed.useInsertionEffect,QH=XH||(t=>t());function Nd(t){let r=t1.useRef(()=>{});return QH(()=>{r.current=t}),t1.useCallback(function(){for(var l=arguments.length,i=new Array(l),o=0;o<l;o++)i[o]=arguments[o];return r.current==null?void 0:r.current(...i)},[])}var JH="ArrowUp",tM="ArrowDown",aM="ArrowLeft",rM="ArrowRight";var _l=typeof document<"u"?Z5.useLayoutEffect:Z5.useEffect;var lM=[aM,rM],eM=[JH,tM],az=[...lM,...eM];var Td=!1,iM=0,$d=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+iM++;function oM(){let[t,r]=t1.useState(()=>Td?$d():void 0);return _l(()=>{t==null&&r($d())},[]),t1.useEffect(()=>{Td=!0},[]),t}var nM=Ed.useId,cM=nM||oM;function hM(){let t=new Map;return{emit(r,l){var i;(i=t.get(r))==null||i.forEach(o=>o(l))},on(r,l){t.set(r,[...t.get(r)||[],l])},off(r,l){var i;t.set(r,((i=t.get(r))==null?void 0:i.filter(o=>o!==l))||[])}}}var dM=t1.createContext(null),vM=t1.createContext(null),gM=()=>{var t;return((t=t1.useContext(dM))==null?void 0:t.id)||null},uM=()=>t1.useContext(vM);var sM="data-floating-ui-focusable";function pM(t){let{open:r=!1,onOpenChange:l,elements:i}=t,o=cM(),n=t1.useRef({}),[h]=t1.useState(()=>hM()),v=gM()!=null,[u,s]=t1.useState(i.reference),p=Nd((H,Z,L)=>{n.current.openEvent=H?Z:void 0,h.emit("openchange",{open:H,event:Z,reason:L,nested:v}),l?.(H,Z,L)}),A=t1.useMemo(()=>({setPositionReference:s}),[]),M=t1.useMemo(()=>({reference:u||i.reference||null,floating:i.floating||null,domReference:i.reference}),[u,i.reference,i.floating]);return t1.useMemo(()=>({dataRef:n,open:r,onOpenChange:p,elements:M,events:h,floatingId:o,refs:A}),[r,p,M,h,o,A])}function _d(t){t===void 0&&(t={});let{nodeId:r}=t,l=pM({...t,elements:{reference:null,floating:null,...t.elements}}),i=t.rootContext||l,o=i.elements,[n,h]=t1.useState(null),[v,u]=t1.useState(null),p=o?.domReference||n,A=t1.useRef(null),M=uM();_l(()=>{p&&(A.current=p)},[p]);let H=bd({...t,elements:{...o,...v&&{reference:v}}}),Z=t1.useCallback(x=>{let z=v0(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),contextElement:x}:x;u(z),H.refs.setReference(z)},[H.refs]),L=t1.useCallback(x=>{(v0(x)||x===null)&&(A.current=x,h(x)),(v0(H.refs.reference.current)||H.refs.reference.current===null||x!==null&&!v0(x))&&H.refs.setReference(x)},[H.refs]),w=t1.useMemo(()=>({...H.refs,setReference:L,setPositionReference:Z,domReference:A}),[H.refs,L,Z]),m=t1.useMemo(()=>({...H.elements,domReference:p}),[H.elements,p]),V=t1.useMemo(()=>({...H,...i,refs:w,elements:m,nodeId:r}),[H,w,m,r,i]);return _l(()=>{i.dataRef.current.floatingContext=V;let x=M?.nodesRef.current.find(z=>z.id===r);x&&(x.context=V)}),t1.useMemo(()=>({...H,context:V,refs:w,elements:m}),[H,w,m,V])}var Od="active",Fd="selected";function Nl(t,r,l){let i=new Map,o=l==="item",n=t;if(o&&t){let{[Od]:h,[Fd]:v,...u}=t;n=u}return{...l==="floating"&&{tabIndex:-1,[sM]:""},...n,...r.map(h=>{let v=h?h[l]:null;return typeof v=="function"?t?v(t):null:v}).concat(t).reduce((h,v)=>(v&&Object.entries(v).forEach(u=>{let[s,p]=u;if(!(o&&[Od,Fd].includes(s)))if(s.indexOf("on")===0){if(i.has(s)||i.set(s,[]),typeof p=="function"){var A;(A=i.get(s))==null||A.push(p),h[s]=function(){for(var M,H=arguments.length,Z=new Array(H),L=0;L<H;L++)Z[L]=arguments[L];return(M=i.get(s))==null?void 0:M.map(w=>w(...Z)).find(w=>w!==void 0)}}}else h[s]=p}),h),{})}}function Rd(t){t===void 0&&(t=[]);let r=t.map(v=>v?.reference),l=t.map(v=>v?.floating),i=t.map(v=>v?.item),o=t1.useCallback(v=>Nl(v,t,"reference"),r),n=t1.useCallback(v=>Nl(v,t,"floating"),l),h=t1.useCallback(v=>Nl(v,t,"item"),i);return t1.useMemo(()=>({getReferenceProps:o,getFloatingProps:n,getItemProps:h}),[o,n,h])}function Dd(t,r){return{...t,rects:{...t.rects,floating:{...t.rects.floating,height:r}}}}var Id=t=>({name:"inner",options:t,async fn(r){let{listRef:l,overflowRef:i,onFallbackChange:o,offset:n=0,index:h=0,minItemsVisible:v=4,referenceOverflowThreshold:u=0,scrollRef:s,...p}=J4(t,r),{rects:A,elements:{floating:M}}=r,H=l.current[h],Z=s?.current||M,L=M.clientTop||Z.clientTop,w=M.clientTop!==0,m=Z.clientTop!==0,V=M===Z;if(!H)return{};let x={...r,...await V5(-H.offsetTop-M.clientTop-A.reference.height/2-H.offsetHeight/2-n).fn(r)},z=await T8(Dd(x,Z.scrollHeight+L+M.clientTop),p),B=await T8(x,{...p,elementContext:"reference"}),S=t0(0,z.top),$=x.y+S,T=(Z.scrollHeight>Z.clientHeight?D=>D:B6)(t0(0,Z.scrollHeight+(w&&V||m?L*2:0)-S-t0(0,z.bottom)));if(Z.style.maxHeight=T+"px",Z.scrollTop=S,o){let D=Z.offsetHeight<H.offsetHeight*U2(v,l.current.length)-1||B.top>=-u||B.bottom>=-u;m5.flushSync(()=>o(D))}return i&&(i.current=await T8(Dd({...x,y:$},Z.offsetHeight+L+M.clientTop),p)),{y:$}}});function kd(t,r){let{open:l,elements:i}=t,{enabled:o=!0,overflowRef:n,scrollRef:h,onChange:v}=r,u=Nd(v),s=t1.useRef(!1),p=t1.useRef(null),A=t1.useRef(null);t1.useEffect(()=>{if(!o)return;function H(L){if(L.ctrlKey||!Z||n.current==null)return;let w=L.deltaY,m=n.current.top>=-.5,V=n.current.bottom>=-.5,x=Z.scrollHeight-Z.clientHeight,z=w<0?-1:1,B=w<0?"max":"min";Z.scrollHeight<=Z.clientHeight||(!m&&w>0||!V&&w<0?(L.preventDefault(),m5.flushSync(()=>{u(S=>S+Math[B](w,x*z))})):/firefox/i.test(rd())&&(Z.scrollTop+=w))}let Z=h?.current||i.floating;if(l&&Z)return Z.addEventListener("wheel",H),requestAnimationFrame(()=>{p.current=Z.scrollTop,n.current!=null&&(A.current={...n.current})}),()=>{p.current=null,A.current=null,Z.removeEventListener("wheel",H)}},[o,l,i.floating,n,h,u]);let M=t1.useMemo(()=>({onKeyDown(){s.current=!0},onWheel(){s.current=!1},onPointerMove(){s.current=!1},onScroll(){let H=h?.current||i.floating;if(!(!n.current||!H||!s.current)){if(p.current!==null){let Z=H.scrollTop-p.current;(n.current.bottom<-.5&&Z<-1||n.current.top<-.5&&Z>1)&&m5.flushSync(()=>u(L=>L+Z))}requestAnimationFrame(()=>{p.current=H.scrollTop})}}}),[i.floating,u,n,h]);return t1.useMemo(()=>o?{floating:M}:{},[o,M])}var Il=E(I(),1),F1=E(I(),1);var $8=(0,F1.createContext)({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});$8.displayName="FloatingContext";var kl=(0,F1.createContext)(null);kl.displayName="PlacementContext";function qa(t){return(0,F1.useMemo)(()=>t?typeof t=="string"?{to:t}:t:null,[t])}function Ka(){return(0,F1.useContext)($8).setReference}function Wd(){return(0,F1.useContext)($8).getReferenceProps}function Ya(){let{getFloatingProps:t,slot:r}=(0,F1.useContext)($8);return(0,F1.useCallback)((...l)=>Object.assign({},t(...l),{"data-anchor":r.anchor}),[t,r])}function Xa(t=null){t===!1&&(t=null),typeof t=="string"&&(t={to:t});let r=(0,F1.useContext)(kl),l=(0,F1.useMemo)(()=>t,[JSON.stringify(t,(o,n)=>{var h;return(h=n?.outerHTML)!=null?h:n})]);J(()=>{r?.(l??null)},[r,l]);let i=(0,F1.useContext)($8);return(0,F1.useMemo)(()=>[i.setFloating,t?i.styles:{}],[i.setFloating,t,i.styles])}var Ud=4;function Qa({children:t,enabled:r=!0}){let[l,i]=(0,F1.useState)(null),[o,n]=(0,F1.useState)(0),h=(0,F1.useRef)(null),[v,u]=(0,F1.useState)(null);HM(v);let s=r&&l!==null&&v!==null,{to:p="bottom",gap:A=0,offset:M=0,padding:H=0,inner:Z}=MM(l,v),[L,w="center"]=p.split(" ");J(()=>{s&&n(0)},[s]);let{refs:m,floatingStyles:V,context:x}=_d({open:s,placement:L==="selection"?w==="center"?"bottom":`bottom-${w}`:w==="center"?`${L}`:`${L}-${w}`,strategy:"absolute",transform:!1,middleware:[V5({mainAxis:L==="selection"?0:A,crossAxis:M}),Fl({padding:H}),L!=="selection"&&Dl({padding:H}),L==="selection"&&Z?Id({...Z,padding:H,overflowRef:h,offset:o,minItemsVisible:Ud,referenceOverflowThreshold:H,onFallbackChange(D){var k,W;if(!D)return;let G=x.elements.floating;if(!G)return;let R=parseFloat(getComputedStyle(G).scrollPaddingBottom)||0,Y=Math.min(Ud,G.childElementCount),M1=0,K=0;for(let a1 of(W=(k=x.elements.floating)==null?void 0:k.childNodes)!=null?W:[])if(q1(a1)){let d1=a1.offsetTop,z1=d1+a1.clientHeight+R,P=G.scrollTop,F=P+G.clientHeight;if(d1>=P&&z1<=F)Y--;else{K=Math.max(0,Math.min(z1,F)-Math.max(d1,P)),M1=a1.clientHeight;break}}Y>=1&&n(a1=>{let d1=M1*Y-K+R;return a1>=d1?a1:d1})}}):null,El({padding:H,apply({availableWidth:D,availableHeight:k,elements:W}){Object.assign(W.floating.style,{overflow:"auto",maxWidth:`${D}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${k}px)`})}})].filter(Boolean),whileElementsMounted:Ua}),[z=L,B=w]=x.placement.split("-");L==="selection"&&(z="selection");let S=(0,F1.useMemo)(()=>({anchor:[z,B].filter(Boolean).join(" ")}),[z,B]),$=kd(x,{overflowRef:h,onChange:n}),{getReferenceProps:y,getFloatingProps:O}=Rd([$]),T=_(D=>{u(D),m.setFloating(D)});return Il.createElement(kl.Provider,{value:i},Il.createElement($8.Provider,{value:{setFloating:T,setReference:m.setReference,styles:V,getReferenceProps:y,getFloatingProps:O,slot:S}},t))}function HM(t){J(()=>{if(!t)return;let r=new MutationObserver(()=>{let l=window.getComputedStyle(t).maxHeight,i=parseFloat(l);if(isNaN(i))return;let o=parseInt(l);isNaN(o)||i!==o&&(t.style.maxHeight=`${Math.ceil(i)}px`)});return r.observe(t,{attributes:!0,attributeFilter:["style"]}),()=>{r.disconnect()}},[t])}function MM(t,r){var l,i,o;let n=Rl((l=t?.gap)!=null?l:"var(--anchor-gap, 0)",r),h=Rl((i=t?.offset)!=null?i:"var(--anchor-offset, 0)",r),v=Rl((o=t?.padding)!=null?o:"var(--anchor-padding, 0)",r);return{...t,gap:n,offset:h,padding:v}}function Rl(t,r,l=void 0){let i=j1(),o=_((u,s)=>{if(u==null)return[l,null];if(typeof u=="number")return[u,null];if(typeof u=="string"){if(!s)return[l,null];let p=Gd(u,s);return[p,A=>{let M=jd(u);{let H=M.map(Z=>window.getComputedStyle(s).getPropertyValue(Z));i.requestAnimationFrame(function Z(){i.nextFrame(Z);let L=!1;for(let[m,V]of M.entries()){let x=window.getComputedStyle(s).getPropertyValue(V);if(H[m]!==x){H[m]=x,L=!0;break}}if(!L)return;let w=Gd(u,s);p!==w&&(A(w),p=w)})}return i.dispose}]}return[l,null]}),n=(0,F1.useMemo)(()=>o(t,r)[0],[t,r]),[h=n,v]=(0,F1.useState)();return J(()=>{let[u,s]=o(t,r);if(v(u),!!s)return s(v)},[t,r]),h}function jd(t){let r=/var\((.*)\)/.exec(t);if(r){let l=r[1].indexOf(",");if(l===-1)return[r[1]];let i=r[1].slice(0,l).trim(),o=r[1].slice(l+1).trim();return o?[i,...jd(o)]:[i]}return[]}function Gd(t,r){let l=document.createElement("div");r.appendChild(l),l.style.setProperty("margin-top","0px","important"),l.style.setProperty("margin-top",t,"important");let i=parseFloat(window.getComputedStyle(l).marginTop)||0;return r.removeChild(l),i}var W2=E(I(),1);function fM({children:t,freeze:r},l){let i=O8(r,t);return(0,W2.isValidElement)(i)?(0,W2.cloneElement)(i,{ref:l}):W2.default.createElement(W2.default.Fragment,null,i)}var qd=W2.default.forwardRef(fM);function O8(t,r){let[l,i]=(0,W2.useState)(r);return!t&&l!==r&&i(r),t?l:r}var y6=E(I(),1),Ja=(0,y6.createContext)(null);Ja.displayName="OpenClosedContext";var _1=(t=>(t[t.Open=1]="Open",t[t.Closed=2]="Closed",t[t.Closing=4]="Closing",t[t.Opening=8]="Opening",t))(_1||{});function j2(){return(0,y6.useContext)(Ja)}function F8({value:t,children:r}){return y6.default.createElement(Ja.Provider,{value:t},r)}function Kd({children:t}){return y6.default.createElement(Ja.Provider,{value:null},t)}function Yd(t){function r(){document.readyState!=="loading"&&(t(),document.removeEventListener("DOMContentLoaded",r))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",r),r())}var n2=[];Yd(()=>{function t(r){if(!b0(r.target)||r.target===document.body||n2[0]===r.target)return;let l=r.target;l=l.closest(h5),n2.unshift(l??r.target),n2=n2.filter(i=>i!=null&&i.isConnected),n2.splice(10)}window.addEventListener("click",t,{capture:!0}),window.addEventListener("mousedown",t,{capture:!0}),window.addEventListener("focus",t,{capture:!0}),document.body.addEventListener("click",t,{capture:!0}),document.body.addEventListener("mousedown",t,{capture:!0}),document.body.addEventListener("focus",t,{capture:!0})});function AM(t){throw new Error("Unexpected object: "+t)}var e1=(t=>(t[t.First=0]="First",t[t.Previous=1]="Previous",t[t.Next=2]="Next",t[t.Last=3]="Last",t[t.Specific=4]="Specific",t[t.Nothing=5]="Nothing",t))(e1||{});function t6(t,r){let l=r.resolveItems();if(l.length<=0)return null;let i=r.resolveActiveIndex(),o=i??-1;switch(t.focus){case 0:{for(let n=0;n<l.length;++n)if(!r.resolveDisabled(l[n],n,l))return n;return i}case 1:{o===-1&&(o=l.length);for(let n=o-1;n>=0;--n)if(!r.resolveDisabled(l[n],n,l))return n;return i}case 2:{for(let n=o+1;n<l.length;++n)if(!r.resolveDisabled(l[n],n,l))return n;return i}case 3:{for(let n=l.length-1;n>=0;--n)if(!r.resolveDisabled(l[n],n,l))return n;return i}case 4:{for(let n=0;n<l.length;++n)if(r.resolveId(l[n],n,l)===t.id)return n;return i}case 5:return null;default:AM(t)}}var S1=E(I(),1),Jd=E(O2(),1);var t7=E(I(),1);function a6(t){let r=_(t),l=(0,t7.useRef)(!1);(0,t7.useEffect)(()=>(l.current=!1,()=>{l.current=!0,Z6(()=>{l.current&&r()})}),[r])}var b6=E(I(),1);function VM(){let t=typeof document>"u";return"useSyncExternalStore"in b6?(r=>r.useSyncExternalStore)(b6)(()=>()=>{},()=>!1,()=>!t):!1}function s4(){let t=VM(),[r,l]=b6.useState(z0.isHandoffComplete);return r&&z0.isHandoffComplete===!1&&l(!1),b6.useEffect(()=>{r!==!0&&l(!0)},[r]),b6.useEffect(()=>z0.handoff(),[]),t?!1:r}var D8=E(I(),1),Xd=(0,D8.createContext)(!1);function Qd(){return(0,D8.useContext)(Xd)}function Ul(t){return D8.default.createElement(Xd.Provider,{value:t.force},t.children)}function mM(t){let r=Qd(),l=(0,S1.useContext)(av),[i,o]=(0,S1.useState)(()=>{var n;if(!r&&l!==null)return(n=l.current)!=null?n:null;if(z0.isServer)return null;let h=t?.getElementById("headlessui-portal-root");if(h)return h;if(t===null)return null;let v=t.createElement("div");return v.setAttribute("id","headlessui-portal-root"),t.body.appendChild(v)});return(0,S1.useEffect)(()=>{i!==null&&(t!=null&&t.body.contains(i)||t==null||t.body.appendChild(i))},[i,t]),(0,S1.useEffect)(()=>{r||l!==null&&o(l.current)},[l,o,r]),i}var tv=S1.Fragment,ZM=v1(function(t,r){let{ownerDocument:l=null,...i}=t,o=(0,S1.useRef)(null),n=L1(Wc(H=>{o.current=H}),r),h=o2(o.current),v=l??h,u=mM(v),s=(0,S1.useContext)(Gl),p=j1(),A=s4(),M=f1();return a6(()=>{var H;u&&u.childNodes.length<=0&&((H=u.parentElement)==null||H.removeChild(u))}),!u||!A?null:(0,Jd.createPortal)(S1.default.createElement("div",{"data-headlessui-portal":"",ref:H=>{p.dispose(),s&&H&&p.add(s.register(H))}},M({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:tv,name:"Portal"})),u)});function xM(t,r){let l=L1(r),{enabled:i=!0,ownerDocument:o,...n}=t,h=f1();return i?S1.default.createElement(ZM,{...n,ownerDocument:o,ref:l}):h({ourProps:{ref:l},theirProps:n,slot:{},defaultTag:tv,name:"Portal"})}var LM=S1.Fragment,av=(0,S1.createContext)(null);function zM(t,r){let{target:l,...i}=t,o={ref:L1(r)},n=f1();return S1.default.createElement(av.Provider,{value:l},n({ourProps:o,theirProps:i,defaultTag:LM,name:"Popover.Group"}))}var Gl=(0,S1.createContext)(null);function rv(){let t=(0,S1.useContext)(Gl),r=(0,S1.useRef)([]),l=_(n=>(r.current.push(n),t&&t.register(n),()=>i(n))),i=_(n=>{let h=r.current.indexOf(n);h!==-1&&r.current.splice(h,1),t&&t.unregister(n)}),o=(0,S1.useMemo)(()=>({register:l,unregister:i,portals:r}),[l,i,r]);return[r,(0,S1.useMemo)(()=>function({children:n}){return S1.default.createElement(Gl.Provider,{value:o},n)},[o])]}var CM=v1(xM),Wl=v1(zM),E8=Object.assign(CM,{Group:Wl});var w2={Idle:{kind:"Idle"},Tracked:t=>({kind:"Tracked",position:t}),Moved:{kind:"Moved"}};function x5(t){let r=t.getBoundingClientRect();return`${r.x},${r.y}`}function a7(t,r,l){let i=T1();if(r.kind==="Tracked"){let n=function(){h!==x5(t)&&(i.dispose(),l())};var o=n;let{position:h}=r,v=new ResizeObserver(n);v.observe(t),i.add(()=>v.disconnect()),i.addEventListener(window,"scroll",n,{passive:!0}),i.addEventListener(window,"resize",n)}return()=>i.dispose()}var wM=Object.defineProperty,BM=(t,r,l)=>r in t?wM(t,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):t[r]=l,lv=(t,r,l)=>(BM(t,typeof r!="symbol"?r+"":r,l),l),g1=(t=>(t[t.Open=0]="Open",t[t.Closed=1]="Closed",t))(g1||{}),$0=(t=>(t[t.Single=0]="Single",t[t.Multi=1]="Multi",t))($0||{}),B2=(t=>(t[t.Pointer=0]="Pointer",t[t.Focus=1]="Focus",t[t.Other=2]="Other",t))(B2||{}),ql=(t=>(t[t.OpenCombobox=0]="OpenCombobox",t[t.CloseCombobox=1]="CloseCombobox",t[t.GoToOption=2]="GoToOption",t[t.SetTyping=3]="SetTyping",t[t.RegisterOption=4]="RegisterOption",t[t.UnregisterOption=5]="UnregisterOption",t[t.DefaultToFirstOption=6]="DefaultToFirstOption",t[t.SetActivationTrigger=7]="SetActivationTrigger",t[t.UpdateVirtualConfiguration=8]="UpdateVirtualConfiguration",t[t.SetInputElement=9]="SetInputElement",t[t.SetButtonElement=10]="SetButtonElement",t[t.SetOptionsElement=11]="SetOptionsElement",t[t.MarkInputAsMoved=12]="MarkInputAsMoved",t))(ql||{});function jl(t,r=l=>l){let l=t.activeOptionIndex!==null?t.options[t.activeOptionIndex]:null,i=r(t.options.slice()),o=i.length>0&&i[0].dataRef.current.order!==null?i.sort((h,v)=>h.dataRef.current.order-v.dataRef.current.order):v5(i,h=>h.dataRef.current.domRef.current),n=l?o.indexOf(l):null;return n===-1&&(n=null),{options:o,activeOptionIndex:n}}var PM={1(t){var r;if((r=t.dataRef.current)!=null&&r.disabled||t.comboboxState===1)return t;let l=t.inputElement?w2.Tracked(x5(t.inputElement)):t.inputPositionState;return{...t,activeOptionIndex:null,comboboxState:1,isTyping:!1,activationTrigger:2,inputPositionState:l,__demoMode:!1}},0(t){var r,l;if((r=t.dataRef.current)!=null&&r.disabled||t.comboboxState===0)return t;if((l=t.dataRef.current)!=null&&l.value){let i=t.dataRef.current.calculateIndex(t.dataRef.current.value);if(i!==-1)return{...t,activeOptionIndex:i,comboboxState:0,__demoMode:!1,inputPositionState:w2.Idle}}return{...t,comboboxState:0,inputPositionState:w2.Idle,__demoMode:!1}},3(t,r){return t.isTyping===r.isTyping?t:{...t,isTyping:r.isTyping}},2(t,r){var l,i,o,n;if((l=t.dataRef.current)!=null&&l.disabled||t.optionsElement&&!((i=t.dataRef.current)!=null&&i.optionsPropsRef.current.static)&&t.comboboxState===1)return t;if(t.virtual){let{options:s,disabled:p}=t.virtual,A=r.focus===e1.Specific?r.idx:t6(r,{resolveItems:()=>s,resolveActiveIndex:()=>{var H,Z;return(Z=(H=t.activeOptionIndex)!=null?H:s.findIndex(L=>!p(L)))!=null?Z:null},resolveDisabled:p,resolveId(){throw new Error("Function not implemented.")}}),M=(o=r.trigger)!=null?o:2;return t.activeOptionIndex===A&&t.activationTrigger===M?t:{...t,activeOptionIndex:A,activationTrigger:M,isTyping:!1,__demoMode:!1}}let h=jl(t);if(h.activeOptionIndex===null){let s=h.options.findIndex(p=>!p.dataRef.current.disabled);s!==-1&&(h.activeOptionIndex=s)}let v=r.focus===e1.Specific?r.idx:t6(r,{resolveItems:()=>h.options,resolveActiveIndex:()=>h.activeOptionIndex,resolveId:s=>s.id,resolveDisabled:s=>s.dataRef.current.disabled}),u=(n=r.trigger)!=null?n:2;return t.activeOptionIndex===v&&t.activationTrigger===u?t:{...t,...h,isTyping:!1,activeOptionIndex:v,activationTrigger:u,__demoMode:!1}},4:(t,r)=>{var l,i,o,n;if((l=t.dataRef.current)!=null&&l.virtual)return{...t,options:[...t.options,r.payload]};let h=r.payload,v=jl(t,s=>(s.push(h),s));t.activeOptionIndex===null&&(o=(i=t.dataRef.current).isSelected)!=null&&o.call(i,r.payload.dataRef.current.value)&&(v.activeOptionIndex=v.options.indexOf(h));let u={...t,...v,activationTrigger:2};return(n=t.dataRef.current)!=null&&n.__demoMode&&t.dataRef.current.value===void 0&&(u.activeOptionIndex=0),u},5:(t,r)=>{var l;if((l=t.dataRef.current)!=null&&l.virtual)return{...t,options:t.options.filter(o=>o.id!==r.id)};let i=jl(t,o=>{let n=o.findIndex(h=>h.id===r.id);return n!==-1&&o.splice(n,1),o});return{...t,...i,activationTrigger:2}},6:(t,r)=>t.defaultToFirstOption===r.value?t:{...t,defaultToFirstOption:r.value},7:(t,r)=>t.activationTrigger===r.trigger?t:{...t,activationTrigger:r.trigger},8:(t,r)=>{var l,i;if(t.virtual===null)return{...t,virtual:{options:r.options,disabled:(l=r.disabled)!=null?l:()=>!1}};if(t.virtual.options===r.options&&t.virtual.disabled===r.disabled)return t;let o=t.activeOptionIndex;if(t.activeOptionIndex!==null){let n=r.options.indexOf(t.virtual.options[t.activeOptionIndex]);n!==-1?o=n:o=null}return{...t,activeOptionIndex:o,virtual:{options:r.options,disabled:(i=r.disabled)!=null?i:()=>!1}}},9:(t,r)=>t.inputElement===r.element?t:{...t,inputElement:r.element},10:(t,r)=>t.buttonElement===r.element?t:{...t,buttonElement:r.element},11:(t,r)=>t.optionsElement===r.element?t:{...t,optionsElement:r.element},12(t){return t.inputPositionState.kind!=="Tracked"?t:{...t,inputPositionState:w2.Moved}}},r7=class t extends j4{constructor(r){super(r),lv(this,"actions",{onChange:l=>{let{onChange:i,compare:o,mode:n,value:h}=this.state.dataRef.current;return Z1(n,{0:()=>i?.(l),1:()=>{let v=h.slice(),u=v.findIndex(s=>o(s,l));return u===-1?v.push(l):v.splice(u,1),i?.(v)}})},registerOption:(l,i)=>(this.send({type:4,payload:{id:l,dataRef:i}}),()=>{this.state.activeOptionIndex===this.state.dataRef.current.calculateIndex(i.current.value)&&this.send({type:6,value:!0}),this.send({type:5,id:l})}),goToOption:(l,i)=>(this.send({type:6,value:!1}),this.send({type:2,...l,trigger:i})),setIsTyping:l=>{this.send({type:3,isTyping:l})},closeCombobox:()=>{var l,i;this.send({type:1}),this.send({type:6,value:!1}),(i=(l=this.state.dataRef.current).onClose)==null||i.call(l)},openCombobox:()=>{this.send({type:0}),this.send({type:6,value:!0})},setActivationTrigger:l=>{this.send({type:7,trigger:l})},selectActiveOption:()=>{let l=this.selectors.activeOptionIndex(this.state);if(l!==null){if(this.actions.setIsTyping(!1),this.state.virtual)this.actions.onChange(this.state.virtual.options[l]);else{let{dataRef:i}=this.state.options[l];this.actions.onChange(i.current.value)}this.actions.goToOption({focus:e1.Specific,idx:l})}},setInputElement:l=>{this.send({type:9,element:l})},setButtonElement:l=>{this.send({type:10,element:l})},setOptionsElement:l=>{this.send({type:11,element:l})}}),lv(this,"selectors",{activeDescendantId:l=>{var i,o;let n=this.selectors.activeOptionIndex(l);if(n!==null)return l.virtual?(o=l.options.find(h=>!h.dataRef.current.disabled&&l.dataRef.current.compare(h.dataRef.current.value,l.virtual.options[n])))==null?void 0:o.id:(i=l.options[n])==null?void 0:i.id},activeOptionIndex:l=>{if(l.defaultToFirstOption&&l.activeOptionIndex===null&&(l.virtual?l.virtual.options.length>0:l.options.length>0)){if(l.virtual){let{options:o,disabled:n}=l.virtual,h=o.findIndex(v=>{var u;return!((u=n?.(v))!=null&&u)});if(h!==-1)return h}let i=l.options.findIndex(o=>!o.dataRef.current.disabled);if(i!==-1)return i}return l.activeOptionIndex},activeOption:l=>{var i,o;let n=this.selectors.activeOptionIndex(l);return n===null?null:l.virtual?l.virtual.options[n??0]:(o=(i=l.options[n])==null?void 0:i.dataRef.current.value)!=null?o:null},isActive:(l,i,o)=>{var n;let h=this.selectors.activeOptionIndex(l);return h===null?!1:l.virtual?h===l.dataRef.current.calculateIndex(i):((n=l.options[h])==null?void 0:n.id)===o},shouldScrollIntoView:(l,i,o)=>!(l.virtual||l.__demoMode||l.comboboxState!==0||l.activationTrigger===0||!this.selectors.isActive(l,i,o)),didInputMove(l){return l.inputPositionState.kind==="Moved"}});{let l=this.state.id,i=i2.get(null);this.disposables.add(i.on(o5.Push,o=>{!i.selectors.isTop(o,l)&&this.state.comboboxState===0&&this.actions.closeCombobox()})),this.on(0,()=>i.actions.push(l)),this.on(1,()=>i.actions.pop(l))}this.disposables.group(l=>{this.on(1,i=>{i.inputElement&&(l.dispose(),l.add(a7(i.inputElement,i.inputPositionState,()=>{this.send({type:12})})))})})}static new({id:r,virtual:l=null,__demoMode:i=!1}){var o;return new t({id:r,dataRef:{current:{}},comboboxState:i?0:1,isTyping:!1,options:[],virtual:l?{options:l.options,disabled:(o=l.disabled)!=null?o:()=>!1}:null,activeOptionIndex:null,activationTrigger:2,inputElement:null,buttonElement:null,optionsElement:null,__demoMode:i,inputPositionState:w2.Idle})}reduce(r,l){return Z1(l.type,PM,r,l)}};var N8=E(I(),1);var Kl=(0,N8.createContext)(null);function _8(t){let r=(0,N8.useContext)(Kl);if(r===null){let l=new Error(`<${t} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(l,Yl),l}return r}function Yl({id:t,virtual:r=null,__demoMode:l=!1}){let i=(0,N8.useMemo)(()=>r7.new({id:t,virtual:r,__demoMode:l}),[]);return a6(()=>i.dispose()),i}var L5=(0,Q.createContext)(null);L5.displayName="ComboboxDataContext";function R8(t){let r=(0,Q.useContext)(L5);if(r===null){let l=new Error(`<${t} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(l,R8),l}return r}var ev=(0,Q.createContext)(null);function SM(t){let r=_8("VirtualProvider"),l=R8("VirtualProvider"),{options:i}=l.virtual,o=A1(r,H=>H.optionsElement),[n,h]=(0,Q.useMemo)(()=>{let H=o;if(!H)return[0,0];let Z=window.getComputedStyle(H);return[parseFloat(Z.paddingBlockStart||Z.paddingTop),parseFloat(Z.paddingBlockEnd||Z.paddingBottom)]},[o]),v=dh({enabled:i.length!==0,scrollPaddingStart:n,scrollPaddingEnd:h,count:i.length,estimateSize(){return 40},getScrollElement(){return r.state.optionsElement},overscan:12}),[u,s]=(0,Q.useState)(0);J(()=>{s(H=>H+1)},[i]);let p=v.getVirtualItems(),A=A1(r,H=>H.activationTrigger===B2.Pointer),M=A1(r,r.selectors.activeOptionIndex);return p.length===0?null:Q.default.createElement(ev.Provider,{value:v},Q.default.createElement("div",{style:{position:"relative",width:"100%",height:`${v.getTotalSize()}px`},ref:H=>{H&&(A||M!==null&&i.length>M&&v.scrollToIndex(M))}},p.map(H=>{var Z;return Q.default.createElement(Q.Fragment,{key:H.key},Q.default.cloneElement((Z=t.children)==null?void 0:Z.call(t,{...t.slot,option:i[H.index]}),{key:`${u}-${H.key}`,"data-index":H.index,"aria-setsize":i.length,"aria-posinset":H.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${H.start}px)`,overflowAnchor:"none"}}))})))}var yM=Q.Fragment;function bM(t,r){let l=(0,O1.useId)(),i=t2(),{value:o,defaultValue:n,onChange:h,form:v,name:u,by:s,invalid:p=!1,disabled:A=i||!1,onClose:M,__demoMode:H=!1,multiple:Z=!1,immediate:L=!1,virtual:w=null,nullable:m,...V}=t,x=A8(n),[z=Z?[]:void 0,B]=f8(o,h,x),S=Yl({id:l,virtual:w,__demoMode:H}),$=(0,Q.useRef)({static:!1,hold:!1}),y=wa(s),O=_(n1=>w?s===null?w.options.indexOf(n1):w.options.findIndex(Y1=>y(Y1,n1)):S.state.options.findIndex(Y1=>y(Y1.dataRef.current.value,n1))),T=(0,Q.useCallback)(n1=>Z1(W.mode,{[$0.Multi]:()=>z.some(Y1=>y(Y1,n1)),[$0.Single]:()=>y(z,n1)}),[z]),D=A1(S,n1=>n1.virtual),k=_(()=>M?.()),W=(0,Q.useMemo)(()=>({__demoMode:H,immediate:L,optionsPropsRef:$,value:z,defaultValue:x,disabled:A,invalid:p,mode:Z?$0.Multi:$0.Single,virtual:w?D:null,onChange:B,isSelected:T,calculateIndex:O,compare:y,onClose:k}),[H,L,$,z,x,A,p,Z,w,D,B,T,O,y,k]);J(()=>{var n1;w&&S.send({type:ql.UpdateVirtualConfiguration,options:w.options,disabled:(n1=w.disabled)!=null?n1:null})},[w,w?.options,w?.disabled]),J(()=>{S.state.dataRef.current=W},[W]);let[G,R,Y,M1]=A1(S,n1=>[n1.comboboxState,n1.buttonElement,n1.inputElement,n1.optionsElement]),K=i2.get(null),a1=A1(K,(0,Q.useCallback)(n1=>K.selectors.isTop(n1,l),[K,l]));L8(a1,[R,Y,M1],()=>S.actions.closeCombobox());let d1=A1(S,S.selectors.activeOptionIndex),z1=A1(S,S.selectors.activeOption),P=P1({open:G===g1.Open,disabled:A,invalid:p,activeIndex:d1,activeOption:z1,value:z}),[F,q]=La(),X=r===null?{}:{ref:r},U=(0,Q.useCallback)(()=>{if(x!==void 0)return B?.(x)},[B,x]),V1=f1();return Q.default.createElement(q,{value:F,props:{htmlFor:Y?.id},slot:{open:G===g1.Open,disabled:A}},Q.default.createElement(Qa,null,Q.default.createElement(L5.Provider,{value:W},Q.default.createElement(Kl.Provider,{value:S},Q.default.createElement(F8,{value:Z1(G,{[g1.Open]:_1.Open,[g1.Closed]:_1.Closed})},u!=null&&Q.default.createElement(V8,{disabled:A,data:z!=null?{[u]:z}:{},form:v,onReset:U}),V1({ourProps:X,theirProps:V,slot:P,defaultTag:yM,name:"Combobox"}))))))}var TM="input";function $M(t,r){var l,i;let o=_8("Combobox.Input"),n=R8("Combobox.Input"),h=(0,O1.useId)(),v=_2(),{id:u=v||`headlessui-combobox-input-${h}`,onChange:s,displayValue:p,disabled:A=n.disabled||!1,autoFocus:M=!1,type:H="text",...Z}=t,L=(0,Q.useRef)(null),w=L1(L,r,Ka(),o.actions.setInputElement),[m,V]=A1(o,P=>[P.comboboxState,P.isTyping]),x=j1(),z=_(()=>{o.actions.onChange(null),o.state.optionsElement&&(o.state.optionsElement.scrollTop=0),o.actions.goToOption({focus:e1.Nothing})}),B=(0,Q.useMemo)(()=>{var P;return typeof p=="function"&&n.value!==void 0?(P=p(n.value))!=null?P:"":typeof n.value=="string"?n.value:""},[n.value,p]);C6(([P,F],[q,X])=>{if(o.state.isTyping)return;let U=L.current;U&&((X===g1.Open&&F===g1.Closed||P!==q)&&(U.value=P),requestAnimationFrame(()=>{if(o.state.isTyping||!U||I4(U))return;let{selectionStart:V1,selectionEnd:n1}=U;Math.abs((n1??0)-(V1??0))===0&&V1===0&&U.setSelectionRange(U.value.length,U.value.length)}))},[B,m,V]),C6(([P],[F])=>{if(P===g1.Open&&F===g1.Closed){if(o.state.isTyping)return;let q=L.current;if(!q)return;let X=q.value,{selectionStart:U,selectionEnd:V1,selectionDirection:n1}=q;q.value="",q.value=X,n1!==null?q.setSelectionRange(U,V1,n1):q.setSelectionRange(U,V1)}},[m]);let S=(0,Q.useRef)(!1),$=_(()=>{S.current=!0}),y=_(()=>{x.nextFrame(()=>{S.current=!1})}),O=_(P=>{switch(o.actions.setIsTyping(!0),P.key){case h1.Enter:if(o.state.comboboxState!==g1.Open||S.current)return;if(P.preventDefault(),P.stopPropagation(),o.selectors.activeOptionIndex(o.state)===null){o.actions.closeCombobox();return}o.actions.selectActiveOption(),n.mode===$0.Single&&o.actions.closeCombobox();break;case h1.ArrowDown:return P.preventDefault(),P.stopPropagation(),Z1(o.state.comboboxState,{[g1.Open]:()=>o.actions.goToOption({focus:e1.Next}),[g1.Closed]:()=>o.actions.openCombobox()});case h1.ArrowUp:return P.preventDefault(),P.stopPropagation(),Z1(o.state.comboboxState,{[g1.Open]:()=>o.actions.goToOption({focus:e1.Previous}),[g1.Closed]:()=>{(0,T6.flushSync)(()=>o.actions.openCombobox()),n.value||o.actions.goToOption({focus:e1.Last})}});case h1.Home:if(o.state.comboboxState===g1.Closed||P.shiftKey)break;return P.preventDefault(),P.stopPropagation(),o.actions.goToOption({focus:e1.First});case h1.PageUp:return P.preventDefault(),P.stopPropagation(),o.actions.goToOption({focus:e1.First});case h1.End:if(o.state.comboboxState===g1.Closed||P.shiftKey)break;return P.preventDefault(),P.stopPropagation(),o.actions.goToOption({focus:e1.Last});case h1.PageDown:return P.preventDefault(),P.stopPropagation(),o.actions.goToOption({focus:e1.Last});case h1.Escape:return o.state.comboboxState!==g1.Open?void 0:(P.preventDefault(),o.state.optionsElement&&!n.optionsPropsRef.current.static&&P.stopPropagation(),n.mode===$0.Single&&n.value===null&&z(),o.actions.closeCombobox());case h1.Tab:if(o.actions.setIsTyping(!1),o.state.comboboxState!==g1.Open)return;n.mode===$0.Single&&o.state.activationTrigger!==B2.Focus&&o.actions.selectActiveOption(),o.actions.closeCombobox();break}}),T=_(P=>{s?.(P),n.mode===$0.Single&&P.target.value===""&&z(),o.actions.openCombobox()}),D=_(P=>{var F,q,X;let U=(F=P.relatedTarget)!=null?F:n2.find(V1=>V1!==P.currentTarget);if(!((q=o.state.optionsElement)!=null&&q.contains(U))&&!((X=o.state.buttonElement)!=null&&X.contains(U))&&o.state.comboboxState===g1.Open)return P.preventDefault(),n.mode===$0.Single&&n.value===null&&z(),o.actions.closeCombobox()}),k=_(P=>{var F,q,X;let U=(F=P.relatedTarget)!=null?F:n2.find(V1=>V1!==P.currentTarget);(q=o.state.buttonElement)!=null&&q.contains(U)||(X=o.state.optionsElement)!=null&&X.contains(U)||n.disabled||n.immediate&&o.state.comboboxState!==g1.Open&&x.microTask(()=>{(0,T6.flushSync)(()=>o.actions.openCombobox()),o.actions.setActivationTrigger(B2.Focus)})}),W=Z2(),G=U4(),{isFocused:R,focusProps:Y}=E2({autoFocus:M}),{isHovered:M1,hoverProps:K}=D2({isDisabled:A}),a1=A1(o,P=>P.optionsElement),d1=P1({open:m===g1.Open,disabled:A,invalid:n.invalid,hover:M1,focus:R,autofocus:M}),z1=V2({ref:w,id:u,role:"combobox",type:H,"aria-controls":a1?.id,"aria-expanded":m===g1.Open,"aria-activedescendant":A1(o,o.selectors.activeDescendantId),"aria-labelledby":W,"aria-describedby":G,"aria-autocomplete":"list",defaultValue:(i=(l=t.defaultValue)!=null?l:n.defaultValue!==void 0?p?.(n.defaultValue):null)!=null?i:n.defaultValue,disabled:A||void 0,autoFocus:M,onCompositionStart:$,onCompositionEnd:y,onKeyDown:O,onChange:T,onFocus:k,onBlur:D},Y,K);return f1()({ourProps:z1,theirProps:Z,slot:d1,defaultTag:TM,name:"Combobox.Input"})}var OM="button";function FM(t,r){let l=_8("Combobox.Button"),i=R8("Combobox.Button"),[o,n]=(0,Q.useState)(null),h=L1(r,n,l.actions.setButtonElement),v=(0,O1.useId)(),{id:u=`headlessui-combobox-button-${v}`,disabled:s=i.disabled||!1,autoFocus:p=!1,...A}=t,[M,H,Z]=A1(l,k=>[k.comboboxState,k.inputElement,k.optionsElement]),L=zl(H),w=M===g1.Open;Oa(w,{trigger:o,action:(0,Q.useCallback)(k=>{if(o!=null&&o.contains(k.target))return x2.Ignore;if(H!=null&&H.contains(k.target))return x2.Ignore;let W=k.target.closest('[role="option"]:not([data-disabled])');return q1(W)?x2.Select(W):Z!=null&&Z.contains(k.target)?x2.Ignore:x2.Close},[o,H,Z]),close:l.actions.closeCombobox,select:l.actions.selectActiveOption});let m=_(k=>{switch(k.key){case h1.Space:case h1.Enter:k.preventDefault(),k.stopPropagation(),l.state.comboboxState===g1.Closed&&(0,T6.flushSync)(()=>l.actions.openCombobox()),L();return;case h1.ArrowDown:k.preventDefault(),k.stopPropagation(),l.state.comboboxState===g1.Closed&&((0,T6.flushSync)(()=>l.actions.openCombobox()),l.state.dataRef.current.value||l.actions.goToOption({focus:e1.First})),L();return;case h1.ArrowUp:k.preventDefault(),k.stopPropagation(),l.state.comboboxState===g1.Closed&&((0,T6.flushSync)(()=>l.actions.openCombobox()),l.state.dataRef.current.value||l.actions.goToOption({focus:e1.Last})),L();return;case h1.Escape:if(l.state.comboboxState!==g1.Open)return;k.preventDefault(),l.state.optionsElement&&!i.optionsPropsRef.current.static&&k.stopPropagation(),(0,T6.flushSync)(()=>l.actions.closeCombobox()),L();return;default:return}}),V=Ba(()=>{l.state.comboboxState===g1.Open?l.actions.closeCombobox():l.actions.openCombobox(),L()}),x=Z2([u]),{isFocusVisible:z,focusProps:B}=E2({autoFocus:p}),{isHovered:S,hoverProps:$}=D2({isDisabled:s}),{pressed:y,pressProps:O}=p8({disabled:s}),T=P1({open:M===g1.Open,active:y||M===g1.Open,disabled:s,invalid:i.invalid,value:i.value,hover:S,focus:z}),D=V2({ref:h,id:u,type:Fa(t,o),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":Z?.id,"aria-expanded":M===g1.Open,"aria-labelledby":x,disabled:s||void 0,autoFocus:p,onKeyDown:m},V,B,$,O);return f1()({ourProps:D,theirProps:A,slot:T,defaultTag:OM,name:"Combobox.Button"})}var DM="div",EM=a2.RenderStrategy|a2.Static;function NM(t,r){var l,i,o;let n=(0,O1.useId)(),{id:h=`headlessui-combobox-options-${n}`,hold:v=!1,anchor:u,portal:s=!1,modal:p=!0,transition:A=!1,...M}=t,H=_8("Combobox.Options"),Z=R8("Combobox.Options"),L=qa(u);L&&(s=!0);let[w,m]=Xa(L),[V,x]=(0,Q.useState)(null),z=Ya(),B=L1(r,L?w:null,H.actions.setOptionsElement,x),[S,$,y,O,T]=A1(H,X1=>[X1.comboboxState,X1.inputElement,X1.buttonElement,X1.optionsElement,X1.activationTrigger]),D=o2($||y),k=o2(O),W=j2(),[G,R]=B8(A,V,W!==null?(W&_1.Open)===_1.Open:S===g1.Open);x8(G,$,H.actions.closeCombobox);let Y=Z.__demoMode?!1:p&&S===g1.Open;C8(Y,k);let M1=Z.__demoMode?!1:p&&S===g1.Open;Z8(M1,{allowed:(0,Q.useCallback)(()=>[$,y,O],[$,y,O])});let K=A1(H,H.selectors.didInputMove)?!1:G;J(()=>{var X1;Z.optionsPropsRef.current.static=(X1=t.static)!=null?X1:!1},[Z.optionsPropsRef,t.static]),J(()=>{Z.optionsPropsRef.current.hold=v},[Z.optionsPropsRef,v]),Yh(S===g1.Open,{container:O,accept(X1){return X1.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:X1.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(X1){X1.setAttribute("role","none")}});let a1=Z2([y?.id]),d1=P1({open:S===g1.Open,option:void 0}),z1=_(()=>{H.actions.setActivationTrigger(B2.Pointer)}),P=_(X1=>{X1.preventDefault(),H.actions.setActivationTrigger(B2.Pointer)}),F=V2(L?z():{},{"aria-labelledby":a1,role:"listbox","aria-multiselectable":Z.mode===$0.Multi?!0:void 0,id:h,ref:B,style:{...M.style,...m,"--input-width":r5(G,$,!0).width,"--button-width":r5(G,y,!0).width},onWheel:T===B2.Pointer?void 0:z1,onMouseDown:P,...w8(R)}),q=G&&S===g1.Closed&&!t.static,X=O8(q,(l=Z.virtual)==null?void 0:l.options),U=O8(q,Z.value),V1=(0,Q.useCallback)(X1=>Z.compare(U,X1),[Z.compare,U]),n1=(0,Q.useMemo)(()=>{if(!Z.virtual)return Z;if(X===void 0)throw new Error("Missing `options` in virtual mode");return X!==Z.virtual.options?{...Z,virtual:{...Z.virtual,options:X}}:Z},[Z,X,(i=Z.virtual)==null?void 0:i.options]);Z.virtual&&Object.assign(M,{children:Q.default.createElement(L5.Provider,{value:n1},Q.default.createElement(SM,{slot:d1},M.children))});let Y1=f1(),G1=(0,Q.useMemo)(()=>Z.mode===$0.Multi?Z:{...Z,isSelected:V1},[Z,V1]);return Q.default.createElement(E8,{enabled:s?t.static||G:!1,ownerDocument:D},Q.default.createElement(L5.Provider,{value:G1},Y1({ourProps:F,theirProps:{...M,children:Q.default.createElement(qd,{freeze:q},typeof M.children=="function"?(o=M.children)==null?void 0:o.call(M,d1):M.children)},slot:d1,defaultTag:DM,features:EM,visible:K,name:"Combobox.Options"})))}var _M="div";function RM(t,r){var l,i,o;let n=R8("Combobox.Option"),h=_8("Combobox.Option"),v=(0,O1.useId)(),{id:u=`headlessui-combobox-option-${v}`,value:s,disabled:p=(o=(i=(l=n.virtual)==null?void 0:l.disabled)==null?void 0:i.call(l,s))!=null?o:!1,order:A=null,...M}=t,[H]=A1(h,R=>[R.inputElement]),Z=zl(H),L=A1(h,(0,Q.useCallback)(R=>h.selectors.isActive(R,s,u),[s,u])),w=n.isSelected(s),m=(0,Q.useRef)(null),V=l0({disabled:p,value:s,domRef:m,order:A}),x=(0,Q.useContext)(ev),z=L1(r,m,x?x.measureElement:null),B=_(()=>{h.actions.setIsTyping(!1),h.actions.onChange(s)});J(()=>h.actions.registerOption(u,V),[V,u]);let S=A1(h,(0,Q.useCallback)(R=>h.selectors.shouldScrollIntoView(R,s,u),[s,u]));J(()=>{if(S)return T1().requestAnimationFrame(()=>{var R,Y;(Y=(R=m.current)==null?void 0:R.scrollIntoView)==null||Y.call(R,{block:"nearest"})})},[S,m]);let $=_(R=>{R.preventDefault(),R.button===l5.Left&&(p||(B(),g5()||requestAnimationFrame(()=>Z()),n.mode===$0.Single&&h.actions.closeCombobox()))}),y=_(()=>{if(p)return h.actions.goToOption({focus:e1.Nothing});let R=n.calculateIndex(s);h.actions.goToOption({focus:e1.Specific,idx:R})}),O=Da(),T=_(R=>O.update(R)),D=_(R=>{if(!O.wasMoved(R)||p||L&&h.state.activationTrigger===B2.Pointer)return;let Y=n.calculateIndex(s);h.actions.goToOption({focus:e1.Specific,idx:Y},B2.Pointer)}),k=_(R=>{O.wasMoved(R)&&(p||L&&(n.optionsPropsRef.current.hold||h.state.activationTrigger===B2.Pointer&&h.actions.goToOption({focus:e1.Nothing})))}),W=P1({active:L,focus:L,selected:w,disabled:p}),G={id:u,ref:z,role:"option",tabIndex:p===!0?void 0:-1,"aria-disabled":p===!0?!0:void 0,"aria-selected":w,disabled:void 0,onMouseDown:$,onFocus:y,onPointerEnter:T,onMouseEnter:T,onPointerMove:D,onMouseMove:D,onPointerLeave:k,onMouseLeave:k};return f1()({ourProps:G,theirProps:M,slot:W,defaultTag:_M,name:"Combobox.Option"})}var IM=v1(bM),Xl=v1(FM),Ql=v1($M),kM=za,Jl=v1(NM),te=v1(RM),iv=Object.assign(IM,{Input:Ql,Button:Xl,Label:kM,Options:Jl,Option:te});var u1=E(I(),1);function ov(t,r=typeof document<"u"?document.defaultView:null,l){let i=v4(t,"escape");z8(r,"keydown",o=>{i&&(o.defaultPrevented||o.key===h1.Escape&&l(o))})}var ae=E(I(),1);function nv(){var t;let[r]=(0,ae.useState)(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[l,i]=(0,ae.useState)((t=r?.matches)!=null?t:!1);return J(()=>{if(!r)return;function o(n){i(n.matches)}return r.addEventListener("change",o),()=>r.removeEventListener("change",o)},[r]),l}var p4=E(I(),1);function cv({defaultContainers:t=[],portals:r,mainTreeNode:l}={}){let i=_(()=>{var o,n;let h=k0(l),v=[];for(let u of t)u!==null&&(m2(u)?v.push(u):"current"in u&&m2(u.current)&&v.push(u.current));if(r!=null&&r.current)for(let u of r.current)v.push(u);for(let u of(o=h?.querySelectorAll("html > *, body > *"))!=null?o:[])u!==document.body&&u!==document.head&&m2(u)&&u.id!=="headlessui-portal-root"&&(l&&(u.contains(l)||u.contains((n=l?.getRootNode())==null?void 0:n.host))||v.some(s=>u.contains(s))||v.push(u));return v});return{resolveContainers:i,contains:_(o=>i().some(n=>n.contains(o)))}}var hv=(0,p4.createContext)(null);function re({children:t,node:r}){let[l,i]=(0,p4.useState)(null),o=le(r??l);return p4.default.createElement(hv.Provider,{value:o},t,o===null&&p4.default.createElement(k4,{features:d4.Hidden,ref:n=>{var h,v;if(n){for(let u of(v=(h=k0(n))==null?void 0:h.querySelectorAll("html > *, body > *"))!=null?v:[])if(u!==document.body&&u!==document.head&&m2(u)&&u!=null&&u.contains(n)){i(u);break}}}}))}function le(t=null){var r;return(r=(0,p4.useContext)(hv))!=null?r:t}var q2=E(I(),1);var dv=E(I(),1);function z5(){let t=(0,dv.useRef)(!1);return J(()=>(t.current=!0,()=>{t.current=!1}),[]),t}var vv=E(I(),1);var I8=(t=>(t[t.Forwards=0]="Forwards",t[t.Backwards=1]="Backwards",t))(I8||{});function gv(){let t=(0,vv.useRef)(0);return Ta(!0,"keydown",r=>{r.key==="Tab"&&(t.current=r.shiftKey?1:0)},!0),t}function uv(t){if(!t)return new Set;if(typeof t=="function")return new Set(t());let r=new Set;for(let l of t.current)m2(l.current)&&r.add(l.current);return r}var UM="div",r6=(t=>(t[t.None=0]="None",t[t.InitialFocus=1]="InitialFocus",t[t.TabLock=2]="TabLock",t[t.FocusLock=4]="FocusLock",t[t.RestoreFocus=8]="RestoreFocus",t[t.AutoFocus=16]="AutoFocus",t))(r6||{});function GM(t,r){let l=(0,q2.useRef)(null),i=L1(l,r),{initialFocus:o,initialFocusFallback:n,containers:h,features:v=15,...u}=t;s4()||(v=0);let s=o2(l.current);qM(v,{ownerDocument:s});let p=KM(v,{ownerDocument:s,container:l,initialFocus:o,initialFocusFallback:n});YM(v,{ownerDocument:s,container:l,containers:h,previousActiveElement:p});let A=gv(),M=_(V=>{if(!q1(l.current))return;let x=l.current;(z=>z())(()=>{Z1(A.current,{[I8.Forwards]:()=>{z6(x,U0.First,{skipElements:[V.relatedTarget,n]})},[I8.Backwards]:()=>{z6(x,U0.Last,{skipElements:[V.relatedTarget,n]})}})})}),H=v4(!!(v&2),"focus-trap#tab-lock"),Z=j1(),L=(0,q2.useRef)(!1),w={ref:i,onKeyDown(V){V.key=="Tab"&&(L.current=!0,Z.requestAnimationFrame(()=>{L.current=!1}))},onBlur(V){if(!(v&4))return;let x=uv(h);q1(l.current)&&x.add(l.current);let z=V.relatedTarget;b0(z)&&z.dataset.headlessuiFocusGuard!=="true"&&(pv(x,z)||(L.current?z6(l.current,Z1(A.current,{[I8.Forwards]:()=>U0.Next,[I8.Backwards]:()=>U0.Previous})|U0.WrapAround,{relativeTo:V.target}):b0(V.target)&&I2(V.target)))}},m=f1();return q2.default.createElement(q2.default.Fragment,null,H&&q2.default.createElement(k4,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:M,features:d4.Focusable}),m({ourProps:w,theirProps:u,defaultTag:UM,name:"FocusTrap"}),H&&q2.default.createElement(k4,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:M,features:d4.Focusable}))}var WM=v1(GM),sv=Object.assign(WM,{features:r6});function jM(t=!0){let r=(0,q2.useRef)(n2.slice());return C6(([l],[i])=>{i===!0&&l===!1&&Z6(()=>{r.current.splice(0)}),i===!1&&l===!0&&(r.current=n2.slice())},[t,n2,r]),_(()=>{var l;return(l=r.current.find(i=>i!=null&&i.isConnected))!=null?l:null})}function qM(t,{ownerDocument:r}){let l=!!(t&8),i=jM(l);C6(()=>{l||I4(r?.body)&&I2(i())},[l]),a6(()=>{l&&I2(i())})}function KM(t,{ownerDocument:r,container:l,initialFocus:i,initialFocusFallback:o}){let n=(0,q2.useRef)(null),h=v4(!!(t&1),"focus-trap#initial-focus"),v=z5();return C6(()=>{if(t===0)return;if(!h){o!=null&&o.current&&I2(o.current);return}let u=l.current;u&&Z6(()=>{if(!v.current)return;let s=r?.activeElement;if(i!=null&&i.current){if(i?.current===s){n.current=s;return}}else if(u.contains(s)){n.current=s;return}if(i!=null&&i.current)I2(i.current);else{if(t&16){if(z6(u,U0.First|U0.AutoFocus)!==ya.Error)return}else if(z6(u,U0.First)!==ya.Error)return;if(o!=null&&o.current&&(I2(o.current),r?.activeElement===o.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}n.current=r?.activeElement})},[o,h,t]),n}function YM(t,{ownerDocument:r,container:l,containers:i,previousActiveElement:o}){let n=z5(),h=!!(t&4);z8(r?.defaultView,"focus",v=>{if(!h||!n.current)return;let u=uv(i);q1(l.current)&&u.add(l.current);let s=o.current;if(!s)return;let p=v.target;q1(p)?pv(u,p)?(o.current=p,I2(p)):(v.preventDefault(),v.stopPropagation(),I2(s)):I2(o.current)},!0)}function pv(t,r){for(let l of t)if(l.contains(r))return!0;return!1}var o1=E(I(),1);function Hv(t){var r;return!!(t.enter||t.enterFrom||t.enterTo||t.leave||t.leaveFrom||t.leaveTo)||!H8((r=t.as)!=null?r:fv)||o1.default.Children.count(t.children)===1}var l7=(0,o1.createContext)(null);l7.displayName="TransitionContext";var XM=(t=>(t.Visible="visible",t.Hidden="hidden",t))(XM||{});function QM(){let t=(0,o1.useContext)(l7);if(t===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}function JM(){let t=(0,o1.useContext)(e7);if(t===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}var e7=(0,o1.createContext)(null);e7.displayName="NestingContext";function i7(t){return"children"in t?i7(t.children):t.current.filter(({el:r})=>r.current!==null).filter(({state:r})=>r==="visible").length>0}function Mv(t,r){let l=l0(t),i=(0,o1.useRef)([]),o=z5(),n=j1(),h=_((H,Z=h4.Hidden)=>{let L=i.current.findIndex(({el:w})=>w===H);L!==-1&&(Z1(Z,{[h4.Unmount](){i.current.splice(L,1)},[h4.Hidden](){i.current[L].state="hidden"}}),n.microTask(()=>{var w;!i7(i)&&o.current&&((w=l.current)==null||w.call(l))}))}),v=_(H=>{let Z=i.current.find(({el:L})=>L===H);return Z?Z.state!=="visible"&&(Z.state="visible"):i.current.push({el:H,state:"visible"}),()=>h(H,h4.Unmount)}),u=(0,o1.useRef)([]),s=(0,o1.useRef)(Promise.resolve()),p=(0,o1.useRef)({enter:[],leave:[]}),A=_((H,Z,L)=>{u.current.splice(0),r&&(r.chains.current[Z]=r.chains.current[Z].filter(([w])=>w!==H)),r?.chains.current[Z].push([H,new Promise(w=>{u.current.push(w)})]),r?.chains.current[Z].push([H,new Promise(w=>{Promise.all(p.current[Z].map(([m,V])=>V)).then(()=>w())})]),Z==="enter"?s.current=s.current.then(()=>r?.wait.current).then(()=>L(Z)):L(Z)}),M=_((H,Z,L)=>{Promise.all(p.current[Z].splice(0).map(([w,m])=>m)).then(()=>{var w;(w=u.current.shift())==null||w()}).then(()=>L(Z))});return(0,o1.useMemo)(()=>({children:i,register:v,unregister:h,onStart:A,onStop:M,wait:s,chains:p}),[v,h,i,A,M,p,s])}var fv=o1.Fragment,Av=a2.RenderStrategy;function tf(t,r){var l,i;let{transition:o=!0,beforeEnter:n,afterEnter:h,beforeLeave:v,afterLeave:u,enter:s,enterFrom:p,enterTo:A,entered:M,leave:H,leaveFrom:Z,leaveTo:L,...w}=t,[m,V]=(0,o1.useState)(null),x=(0,o1.useRef)(null),z=Hv(t),B=L1(...z?[x,r,V]:r===null?[]:[r]),S=(l=w.unmount)==null||l?h4.Unmount:h4.Hidden,{show:$,appear:y,initial:O}=QM(),[T,D]=(0,o1.useState)($?"visible":"hidden"),k=JM(),{register:W,unregister:G}=k;J(()=>W(x),[W,x]),J(()=>{if(S===h4.Hidden&&x.current){if($&&T!=="visible"){D("visible");return}return Z1(T,{hidden:()=>G(x),visible:()=>W(x)})}},[T,x,W,G,$,S]);let R=s4();J(()=>{if(z&&R&&T==="visible"&&x.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[x,T,R,z]);let Y=O&&!y,M1=y&&$&&O,K=(0,o1.useRef)(!1),a1=Mv(()=>{K.current||(D("hidden"),G(x))},k),d1=_(V1=>{K.current=!0;let n1=V1?"enter":"leave";a1.onStart(x,n1,Y1=>{Y1==="enter"?n?.():Y1==="leave"&&v?.()})}),z1=_(V1=>{let n1=V1?"enter":"leave";K.current=!1,a1.onStop(x,n1,Y1=>{Y1==="enter"?h?.():Y1==="leave"&&u?.()}),n1==="leave"&&!i7(a1)&&(D("hidden"),G(x))});(0,o1.useEffect)(()=>{z&&o||(d1($),z1($))},[$,z,o]);let P=!(!o||!z||!R||Y),[,F]=B8(P,m,$,{start:d1,end:z1}),q=N2({ref:B,className:((i=Qt(w.className,M1&&s,M1&&p,F.enter&&s,F.enter&&F.closed&&p,F.enter&&!F.closed&&A,F.leave&&H,F.leave&&!F.closed&&Z,F.leave&&F.closed&&L,!F.transition&&$&&M))==null?void 0:i.trim())||void 0,...w8(F)}),X=0;T==="visible"&&(X|=_1.Open),T==="hidden"&&(X|=_1.Closed),$&&T==="hidden"&&(X|=_1.Opening),!$&&T==="visible"&&(X|=_1.Closing);let U=f1();return o1.default.createElement(e7.Provider,{value:a1},o1.default.createElement(F8,{value:X},U({ourProps:q,theirProps:w,defaultTag:fv,features:Av,visible:T==="visible",name:"Transition.Child"})))}function af(t,r){let{show:l,appear:i=!1,unmount:o=!0,...n}=t,h=(0,o1.useRef)(null),v=Hv(t),u=L1(...v?[h,r]:r===null?[]:[r]);s4();let s=j2();if(l===void 0&&s!==null&&(l=(s&_1.Open)===_1.Open),l===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[p,A]=(0,o1.useState)(l?"visible":"hidden"),M=Mv(()=>{l||A("hidden")}),[H,Z]=(0,o1.useState)(!0),L=(0,o1.useRef)([l]);J(()=>{H!==!1&&L.current[L.current.length-1]!==l&&(L.current.push(l),Z(!1))},[L,l]);let w=(0,o1.useMemo)(()=>({show:l,appear:i,initial:H}),[l,i,H]);J(()=>{l?A("visible"):!i7(M)&&h.current!==null&&A("hidden")},[l,M]);let m={unmount:o},V=_(()=>{var B;H&&Z(!1),(B=t.beforeEnter)==null||B.call(t)}),x=_(()=>{var B;H&&Z(!1),(B=t.beforeLeave)==null||B.call(t)}),z=f1();return o1.default.createElement(e7.Provider,{value:M},o1.default.createElement(l7.Provider,{value:w},z({ourProps:{...m,as:o1.Fragment,children:o1.default.createElement(Vv,{ref:u,...m,...n,beforeEnter:V,beforeLeave:x})},theirProps:{},defaultTag:o1.Fragment,features:Av,visible:p==="visible",name:"Transition"})))}function rf(t,r){let l=(0,o1.useContext)(l7)!==null,i=j2()!==null;return o1.default.createElement(o1.default.Fragment,null,!l&&i?o1.default.createElement(ee,{ref:r,...t}):o1.default.createElement(Vv,{ref:r,...t}))}var ee=v1(af),Vv=v1(tf),o7=v1(rf),mv=Object.assign(ee,{Child:o7,Root:ee});var lf=(t=>(t[t.Open=0]="Open",t[t.Closed=1]="Closed",t))(lf||{}),ef=(t=>(t[t.SetTitleId=0]="SetTitleId",t))(ef||{}),of={0(t,r){return t.titleId===r.id?t:{...t,titleId:r.id}}},ie=(0,u1.createContext)(null);ie.displayName="DialogContext";function n7(t){let r=(0,u1.useContext)(ie);if(r===null){let l=new Error(`<${t} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(l,n7),l}return r}function nf(t,r){return Z1(r.type,of,t,r)}var Zv=v1(function(t,r){let l=(0,O1.useId)(),{id:i=`headlessui-dialog-${l}`,open:o,onClose:n,initialFocus:h,role:v="dialog",autoFocus:u=!0,__demoMode:s=!1,unmount:p=!1,...A}=t,M=(0,u1.useRef)(!1);v=(function(){return v==="dialog"||v==="alertdialog"?v:(M.current||(M.current=!0,console.warn(`Invalid role [${v}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")})();let H=j2();o===void 0&&H!==null&&(o=(H&_1.Open)===_1.Open);let Z=(0,u1.useRef)(null),L=L1(Z,r),w=o2(Z.current),m=o?0:1,[V,x]=(0,u1.useReducer)(nf,{titleId:null,descriptionId:null,panelRef:(0,u1.createRef)()}),z=_(()=>n(!1)),B=_(F=>x({type:0,id:F})),S=s4()?m===0:!1,[$,y]=rv(),O={get current(){var F;return(F=V.panelRef.current)!=null?F:Z.current}},T=le(),{resolveContainers:D}=cv({mainTreeNode:T,portals:$,defaultContainers:[O]}),k=H!==null?(H&_1.Closing)===_1.Closing:!1;Z8(s||k?!1:S,{allowed:_(()=>{var F,q;return[(q=(F=Z.current)==null?void 0:F.closest("[data-headlessui-portal]"))!=null?q:null]}),disallowed:_(()=>{var F;return[(F=T?.closest("body > *:not(#headlessui-portal-root)"))!=null?F:null]})});let W=i2.get(null);J(()=>{if(S)return W.actions.push(i),()=>W.actions.pop(i)},[W,i,S]);let G=A1(W,(0,u1.useCallback)(F=>W.selectors.isTop(F,i),[W,i]));L8(G,D,F=>{F.preventDefault(),z()}),ov(G,w?.defaultView,F=>{F.preventDefault(),F.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),z()}),C8(s||k?!1:S,w,D),x8(S,Z,z);let[R,Y]=qc(),M1=(0,u1.useMemo)(()=>[{dialogState:m,close:z,setTitleId:B,unmount:p},V],[m,z,B,p,V]),K=P1({open:m===0}),a1={ref:L,id:i,role:v,tabIndex:-1,"aria-modal":s?void 0:m===0?!0:void 0,"aria-labelledby":V.titleId,"aria-describedby":R,unmount:p},d1=!nv(),z1=r6.None;S&&!s&&(z1|=r6.RestoreFocus,z1|=r6.TabLock,u&&(z1|=r6.AutoFocus),d1&&(z1|=r6.InitialFocus));let P=f1();return u1.default.createElement(Kd,null,u1.default.createElement(Ul,{force:!0},u1.default.createElement(E8,null,u1.default.createElement(ie.Provider,{value:M1},u1.default.createElement(Wl,{target:Z},u1.default.createElement(Ul,{force:!1},u1.default.createElement(Y,{slot:K},u1.default.createElement(y,null,u1.default.createElement(sv,{initialFocus:h,initialFocusFallback:Z,containers:D,features:z1},u1.default.createElement(Qc,{value:z},P({ourProps:a1,theirProps:A,slot:K,defaultTag:cf,features:hf,visible:m===0,name:"Dialog"})))))))))))}),cf="div",hf=a2.RenderStrategy|a2.Static;function df(t,r){let{transition:l=!1,open:i,...o}=t,n=j2(),h=t.hasOwnProperty("open")||n!==null,v=t.hasOwnProperty("onClose");if(!h&&!v)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!h)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!v)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!n&&typeof t.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${t.open}`);if(typeof t.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${t.onClose}`);return(i!==void 0||l)&&!o.static?u1.default.createElement(re,null,u1.default.createElement(mv,{show:i,transition:l,unmount:o.unmount},u1.default.createElement(Zv,{ref:r,...o}))):u1.default.createElement(re,null,u1.default.createElement(Zv,{ref:r,open:i,...o}))}var vf="div";function gf(t,r){let l=(0,O1.useId)(),{id:i=`headlessui-dialog-panel-${l}`,transition:o=!1,...n}=t,[{dialogState:h,unmount:v},u]=n7("Dialog.Panel"),s=L1(r,u.panelRef),p=P1({open:h===0}),A=_(w=>{w.stopPropagation()}),M={ref:s,id:i,onClick:A},H=o?o7:u1.Fragment,Z=o?{unmount:v}:{},L=f1();return u1.default.createElement(H,{...Z},L({ourProps:M,theirProps:n,slot:p,defaultTag:vf,name:"Dialog.Panel"}))}var uf="div";function sf(t,r){let{transition:l=!1,...i}=t,[{dialogState:o,unmount:n}]=n7("Dialog.Backdrop"),h=P1({open:o===0}),v={ref:r,"aria-hidden":!0},u=l?o7:u1.Fragment,s=l?{unmount:n}:{},p=f1();return u1.default.createElement(u,{...s},p({ourProps:v,theirProps:i,slot:h,defaultTag:uf,name:"Dialog.Backdrop"}))}var pf="h2";function Hf(t,r){let l=(0,O1.useId)(),{id:i=`headlessui-dialog-title-${l}`,...o}=t,[{dialogState:n,setTitleId:h}]=n7("Dialog.Title"),v=L1(r);(0,u1.useEffect)(()=>(h(i),()=>h(null)),[i,h]);let u=P1({open:n===0}),s={ref:v,id:i};return f1()({ourProps:s,theirProps:o,slot:u,defaultTag:pf,name:"Dialog.Title"})}var Mf=v1(df),C5=v1(gf),eB=v1(sf),w5=v1(Hf);var c7=Object.assign(Mf,{Panel:C5,Title:w5,Description:Kc});var ff="input";function Af(t,r){let l=(0,O1.useId)(),i=_2(),o=t2(),{id:n=i||`headlessui-input-${l}`,disabled:h=o||!1,autoFocus:v=!1,invalid:u=!1,...s}=t,p=Z2(),A=U4(),{isFocused:M,focusProps:H}=E2({autoFocus:v}),{isHovered:Z,hoverProps:L}=D2({isDisabled:h}),w=V2({ref:r,id:n,"aria-labelledby":p,"aria-describedby":A,"aria-invalid":u?"true":void 0,disabled:h||void 0,autoFocus:v},H,L),m=P1({disabled:h,invalid:u,hover:Z,focus:M,autofocus:v});return f1()({ourProps:w,theirProps:s,slot:m,defaultTag:ff,name:"Input"})}var oe=v1(Af);var s1=E(I(),1),v7=E(O2(),1);var ne=E(I(),1);var xv=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Lv(t){var r,l;let i=(r=t.innerText)!=null?r:"",o=t.cloneNode(!0);if(!q1(o))return i;let n=!1;for(let v of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))v.remove(),n=!0;let h=n?(l=o.innerText)!=null?l:"":i;return xv.test(h)&&(h=h.replace(xv,"")),h}function zv(t){let r=t.getAttribute("aria-label");if(typeof r=="string")return r.trim();let l=t.getAttribute("aria-labelledby");if(l){let i=l.split(" ").map(o=>{let n=document.getElementById(o);if(n){let h=n.getAttribute("aria-label");return typeof h=="string"?h.trim():Lv(n).trim()}return null}).filter(Boolean);if(i.length>0)return i.join(", ")}return Lv(t).trim()}function Cv(t){let r=(0,ne.useRef)(""),l=(0,ne.useRef)("");return _(()=>{let i=t.current;if(!i)return"";let o=i.innerText;if(r.current===o)return l.current;let n=zv(i).trim().toLowerCase();return r.current=o,l.current=n,n})}var Vf=Object.defineProperty,mf=(t,r,l)=>r in t?Vf(t,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):t[r]=l,wv=(t,r,l)=>(mf(t,typeof r!="symbol"?r+"":r,l),l),g0=(t=>(t[t.Open=0]="Open",t[t.Closed=1]="Closed",t))(g0||{}),H4=(t=>(t[t.Single=0]="Single",t[t.Multi=1]="Multi",t))(H4||{}),B5=(t=>(t[t.Pointer=0]="Pointer",t[t.Other=1]="Other",t))(B5||{}),ce=(t=>(t[t.OpenListbox=0]="OpenListbox",t[t.CloseListbox=1]="CloseListbox",t[t.GoToOption=2]="GoToOption",t[t.Search=3]="Search",t[t.ClearSearch=4]="ClearSearch",t[t.SelectOption=5]="SelectOption",t[t.RegisterOptions=6]="RegisterOptions",t[t.UnregisterOptions=7]="UnregisterOptions",t[t.SetButtonElement=8]="SetButtonElement",t[t.SetOptionsElement=9]="SetOptionsElement",t[t.SortOptions=10]="SortOptions",t[t.MarkButtonAsMoved=11]="MarkButtonAsMoved",t))(ce||{});function Bv(t,r=l=>l){let l=t.activeOptionIndex!==null?t.options[t.activeOptionIndex]:null,i=v5(r(t.options.slice()),n=>n.dataRef.current.domRef.current),o=l?i.indexOf(l):null;return o===-1&&(o=null),{options:i,activeOptionIndex:o}}var Zf={1(t){if(t.dataRef.current.disabled||t.listboxState===1)return t;let r=t.buttonElement?w2.Tracked(x5(t.buttonElement)):t.buttonPositionState;return{...t,activeOptionIndex:null,pendingFocus:{focus:e1.Nothing},listboxState:1,__demoMode:!1,buttonPositionState:r}},0(t,r){if(t.dataRef.current.disabled||t.listboxState===0)return t;let l=t.activeOptionIndex,{isSelected:i}=t.dataRef.current,o=t.options.findIndex(n=>i(n.dataRef.current.value));return o!==-1&&(l=o),{...t,frozenValue:!1,pendingFocus:r.focus,listboxState:0,activeOptionIndex:l,__demoMode:!1,buttonPositionState:w2.Idle}},2(t,r){var l,i,o,n,h;if(t.dataRef.current.disabled||t.listboxState===1)return t;let v={...t,searchQuery:"",activationTrigger:(l=r.trigger)!=null?l:1,__demoMode:!1};if(r.focus===e1.Nothing)return{...v,activeOptionIndex:null};if(r.focus===e1.Specific)return{...v,activeOptionIndex:t.options.findIndex(p=>p.id===r.id)};if(r.focus===e1.Previous){let p=t.activeOptionIndex;if(p!==null){let A=t.options[p].dataRef.current.domRef,M=t6(r,{resolveItems:()=>t.options,resolveActiveIndex:()=>t.activeOptionIndex,resolveId:H=>H.id,resolveDisabled:H=>H.dataRef.current.disabled});if(M!==null){let H=t.options[M].dataRef.current.domRef;if(((i=A.current)==null?void 0:i.previousElementSibling)===H.current||((o=H.current)==null?void 0:o.previousElementSibling)===null)return{...v,activeOptionIndex:M}}}}else if(r.focus===e1.Next){let p=t.activeOptionIndex;if(p!==null){let A=t.options[p].dataRef.current.domRef,M=t6(r,{resolveItems:()=>t.options,resolveActiveIndex:()=>t.activeOptionIndex,resolveId:H=>H.id,resolveDisabled:H=>H.dataRef.current.disabled});if(M!==null){let H=t.options[M].dataRef.current.domRef;if(((n=A.current)==null?void 0:n.nextElementSibling)===H.current||((h=H.current)==null?void 0:h.nextElementSibling)===null)return{...v,activeOptionIndex:M}}}}let u=Bv(t),s=t6(r,{resolveItems:()=>u.options,resolveActiveIndex:()=>u.activeOptionIndex,resolveId:p=>p.id,resolveDisabled:p=>p.dataRef.current.disabled});return{...v,...u,activeOptionIndex:s}},3:(t,r)=>{if(t.dataRef.current.disabled||t.listboxState===1)return t;let l=t.searchQuery!==""?0:1,i=t.searchQuery+r.value.toLowerCase(),o=(t.activeOptionIndex!==null?t.options.slice(t.activeOptionIndex+l).concat(t.options.slice(0,t.activeOptionIndex+l)):t.options).find(h=>{var v;return!h.dataRef.current.disabled&&((v=h.dataRef.current.textValue)==null?void 0:v.startsWith(i))}),n=o?t.options.indexOf(o):-1;return n===-1||n===t.activeOptionIndex?{...t,searchQuery:i}:{...t,searchQuery:i,activeOptionIndex:n,activationTrigger:1}},4(t){return t.dataRef.current.disabled||t.listboxState===1||t.searchQuery===""?t:{...t,searchQuery:""}},5(t){return t.dataRef.current.mode===0?{...t,frozenValue:!0}:{...t}},6:(t,r)=>{let l=t.options.concat(r.options),i=t.activeOptionIndex;if(t.pendingFocus.focus!==e1.Nothing&&(i=t6(t.pendingFocus,{resolveItems:()=>l,resolveActiveIndex:()=>t.activeOptionIndex,resolveId:o=>o.id,resolveDisabled:o=>o.dataRef.current.disabled})),t.activeOptionIndex===null){let{isSelected:o}=t.dataRef.current;if(o){let n=l.findIndex(h=>o?.(h.dataRef.current.value));n!==-1&&(i=n)}}return{...t,options:l,activeOptionIndex:i,pendingFocus:{focus:e1.Nothing},pendingShouldSort:!0}},7:(t,r)=>{let l=t.options,i=[],o=new Set(r.options);for(let[n,h]of l.entries())if(o.has(h.id)&&(i.push(n),o.delete(h.id),o.size===0))break;if(i.length>0){l=l.slice();for(let n of i.reverse())l.splice(n,1)}return{...t,options:l,activationTrigger:1}},8:(t,r)=>t.buttonElement===r.element?t:{...t,buttonElement:r.element},9:(t,r)=>t.optionsElement===r.element?t:{...t,optionsElement:r.element},10:t=>t.pendingShouldSort?{...t,...Bv(t),pendingShouldSort:!1}:t,11(t){return t.buttonPositionState.kind!=="Tracked"?t:{...t,buttonPositionState:w2.Moved}}},h7=class t extends j4{constructor(r){super(r),wv(this,"actions",{onChange:l=>{let{onChange:i,compare:o,mode:n,value:h}=this.state.dataRef.current;return Z1(n,{0:()=>i?.(l),1:()=>{let v=h.slice(),u=v.findIndex(s=>o(s,l));return u===-1?v.push(l):v.splice(u,1),i?.(v)}})},registerOption:Pa(()=>{let l=[],i=new Set;return[(o,n)=>{i.has(n)||(i.add(n),l.push({id:o,dataRef:n}))},()=>(i.clear(),this.send({type:6,options:l.splice(0)}))]}),unregisterOption:Pa(()=>{let l=[];return[i=>l.push(i),()=>{this.send({type:7,options:l.splice(0)})}]}),goToOption:Pa(()=>{let l=null;return[(i,o)=>{l={type:2,...i,trigger:o}},()=>l&&this.send(l)]}),closeListbox:()=>{this.send({type:1})},openListbox:l=>{this.send({type:0,focus:l})},selectActiveOption:()=>{var l;if(this.state.activeOptionIndex!==null){let{dataRef:i}=this.state.options[this.state.activeOptionIndex];this.actions.selectOption(i.current.value)}else this.state.dataRef.current.mode===0&&(this.actions.closeListbox(),(l=this.state.buttonElement)==null||l.focus({preventScroll:!0}))},selectOption:l=>{this.send({type:5,value:l})},search:l=>{this.send({type:3,value:l})},clearSearch:()=>{this.send({type:4})},setButtonElement:l=>{this.send({type:8,element:l})},setOptionsElement:l=>{this.send({type:9,element:l})}}),wv(this,"selectors",{activeDescendantId(l){var i;let o=l.activeOptionIndex,n=l.options;return o===null||(i=n[o])==null?void 0:i.id},isActive(l,i){var o;let n=l.activeOptionIndex,h=l.options;return n!==null?((o=h[n])==null?void 0:o.id)===i:!1},hasFrozenValue(l){return l.frozenValue},shouldScrollIntoView(l,i){return l.__demoMode||l.listboxState!==0||l.activationTrigger===0?!1:this.isActive(l,i)},didButtonMove(l){return l.buttonPositionState.kind==="Moved"}}),this.on(6,()=>{requestAnimationFrame(()=>{this.send({type:10})})});{let l=this.state.id,i=i2.get(null);this.disposables.add(i.on(o5.Push,o=>{!i.selectors.isTop(o,l)&&this.state.listboxState===0&&this.actions.closeListbox()})),this.on(0,()=>i.actions.push(l)),this.on(1,()=>i.actions.pop(l))}this.disposables.group(l=>{this.on(1,i=>{i.buttonElement&&(l.dispose(),l.add(a7(i.buttonElement,i.buttonPositionState,()=>{this.send({type:11})})))})}),this.on(5,(l,i)=>{var o;this.actions.onChange(i.value),this.state.dataRef.current.mode===0&&(this.actions.closeListbox(),(o=this.state.buttonElement)==null||o.focus({preventScroll:!0}))})}static new({id:r,__demoMode:l=!1}){return new t({id:r,dataRef:{current:{}},listboxState:l?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,buttonElement:null,optionsElement:null,pendingShouldSort:!1,pendingFocus:{focus:e1.Nothing},frozenValue:!1,__demoMode:l,buttonPositionState:w2.Idle})}reduce(r,l){return Z1(l.type,Zf,r,l)}};var k8=E(I(),1);var he=(0,k8.createContext)(null);function d7(t){let r=(0,k8.useContext)(he);if(r===null){let l=new Error(`<${t} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(l,de),l}return r}function de({id:t,__demoMode:r=!1}){let l=(0,k8.useMemo)(()=>h7.new({id:t,__demoMode:r}),[]);return a6(()=>l.dispose()),l}var g7=(0,s1.createContext)(null);g7.displayName="ListboxDataContext";function P5(t){let r=(0,s1.useContext)(g7);if(r===null){let l=new Error(`<${t} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(l,P5),l}return r}var xf=s1.Fragment;function Lf(t,r){let l=(0,O1.useId)(),i=t2(),{value:o,defaultValue:n,form:h,name:v,onChange:u,by:s,invalid:p=!1,disabled:A=i||!1,horizontal:M=!1,multiple:H=!1,__demoMode:Z=!1,...L}=t,w=M?"horizontal":"vertical",m=L1(r),V=A8(n),[x=H?[]:void 0,z]=f8(o,u,V),B=de({id:l,__demoMode:Z}),S=(0,s1.useRef)({static:!1,hold:!1}),$=(0,s1.useRef)(new Map),y=wa(s),O=(0,s1.useCallback)(P=>Z1(T.mode,{[H4.Multi]:()=>x.some(F=>y(F,P)),[H4.Single]:()=>y(x,P)}),[x]),T=P1({value:x,disabled:A,invalid:p,mode:H?H4.Multi:H4.Single,orientation:w,onChange:z,compare:y,isSelected:O,optionsPropsRef:S,listRef:$});J(()=>{B.state.dataRef.current=T},[T]);let D=A1(B,P=>P.listboxState),k=i2.get(null),W=A1(k,(0,s1.useCallback)(P=>k.selectors.isTop(P,l),[k,l])),[G,R]=A1(B,P=>[P.buttonElement,P.optionsElement]);L8(W,[G,R],(P,F)=>{B.send({type:ce.CloseListbox}),ba(F,d5.Loose)||(P.preventDefault(),G?.focus())});let Y=P1({open:D===g0.Open,disabled:A,invalid:p,value:x}),[M1,K]=La({inherit:!0}),a1={ref:m},d1=(0,s1.useCallback)(()=>{if(V!==void 0)return z?.(V)},[z,V]),z1=f1();return s1.default.createElement(K,{value:M1,props:{htmlFor:G?.id},slot:{open:D===g0.Open,disabled:A}},s1.default.createElement(Qa,null,s1.default.createElement(he.Provider,{value:B},s1.default.createElement(g7.Provider,{value:T},s1.default.createElement(F8,{value:Z1(D,{[g0.Open]:_1.Open,[g0.Closed]:_1.Closed})},v!=null&&x!=null&&s1.default.createElement(V8,{disabled:A,data:{[v]:x},form:h,onReset:d1}),z1({ourProps:a1,theirProps:L,slot:Y,defaultTag:xf,name:"Listbox"}))))))}var zf="button";function Cf(t,r){let l=(0,O1.useId)(),i=_2(),o=P5("Listbox.Button"),n=d7("Listbox.Button"),{id:h=i||`headlessui-listbox-button-${l}`,disabled:v=o.disabled||!1,autoFocus:u=!1,...s}=t,p=L1(r,Ka(),n.actions.setButtonElement),A=Wd(),[M,H,Z]=A1(n,R=>[R.listboxState,R.buttonElement,R.optionsElement]),L=M===g0.Open;Oa(L,{trigger:H,action:(0,s1.useCallback)(R=>{if(H!=null&&H.contains(R.target))return x2.Ignore;let Y=R.target.closest('[role="option"]:not([data-disabled])');return q1(Y)?x2.Select(Y):Z!=null&&Z.contains(R.target)?x2.Ignore:x2.Close},[H,Z]),close:n.actions.closeListbox,select:n.actions.selectActiveOption});let w=_(R=>{switch(R.key){case h1.Enter:Va(R.currentTarget);break;case h1.Space:case h1.ArrowDown:R.preventDefault(),n.actions.openListbox({focus:o.value?e1.Nothing:e1.First});break;case h1.ArrowUp:R.preventDefault(),n.actions.openListbox({focus:o.value?e1.Nothing:e1.Last});break}}),m=_(R=>{R.key===h1.Space&&R.preventDefault()}),V=Ba(R=>{var Y;n.state.listboxState===g0.Open?((0,v7.flushSync)(()=>n.actions.closeListbox()),(Y=n.state.buttonElement)==null||Y.focus({preventScroll:!0})):(R.preventDefault(),n.actions.openListbox({focus:e1.Nothing}))}),x=_(R=>R.preventDefault()),z=Z2([h]),B=U4(),{isFocusVisible:S,focusProps:$}=E2({autoFocus:u}),{isHovered:y,hoverProps:O}=D2({isDisabled:v}),{pressed:T,pressProps:D}=p8({disabled:v}),k=P1({open:M===g0.Open,active:T||M===g0.Open,disabled:v,invalid:o.invalid,value:o.value,hover:y,focus:S,autofocus:u}),W=A1(n,R=>R.listboxState===g0.Open),G=V2(A(),{ref:p,id:h,type:Fa(t,H),"aria-haspopup":"listbox","aria-controls":Z?.id,"aria-expanded":W,"aria-labelledby":z,"aria-describedby":B,disabled:v||void 0,autoFocus:u,onKeyDown:w,onKeyUp:m,onKeyPress:x},V,$,O,D);return f1()({ourProps:G,theirProps:s,slot:k,defaultTag:zf,name:"Listbox.Button"})}var Pv=(0,s1.createContext)(!1),wf="div",Bf=a2.RenderStrategy|a2.Static;function Pf(t,r){let l=(0,O1.useId)(),{id:i=`headlessui-listbox-options-${l}`,anchor:o,portal:n=!1,modal:h=!0,transition:v=!1,...u}=t,s=qa(o),[p,A]=(0,s1.useState)(null);s&&(n=!0);let M=P5("Listbox.Options"),H=d7("Listbox.Options"),[Z,L,w,m]=A1(H,U=>[U.listboxState,U.buttonElement,U.optionsElement,U.__demoMode]),V=o2(L),x=o2(w),z=j2(),[B,S]=B8(v,p,z!==null?(z&_1.Open)===_1.Open:Z===g0.Open);x8(B,L,H.actions.closeListbox);let $=m?!1:h&&Z===g0.Open;C8($,x);let y=m?!1:h&&Z===g0.Open;Z8(y,{allowed:(0,s1.useCallback)(()=>[L,w],[L,w])});let O=A1(H,H.selectors.didButtonMove)?!1:B,T=A1(H,H.selectors.hasFrozenValue)&&!t.static,D=O8(T,M.value),k=(0,s1.useCallback)(U=>M.compare(D,U),[M.compare,D]),W=A1(H,U=>{var V1;if(s==null||!((V1=s?.to)!=null&&V1.includes("selection")))return null;let n1=U.options.findIndex(Y1=>k(Y1.dataRef.current.value));return n1===-1&&(n1=0),n1}),G=(()=>{if(s==null)return;if(W===null)return{...s,inner:void 0};let U=Array.from(M.listRef.current.values());return{...s,inner:{listRef:{current:U},index:W}}})(),[R,Y]=Xa(G),M1=Ya(),K=L1(r,s?R:null,H.actions.setOptionsElement,A),a1=j1();(0,s1.useEffect)(()=>{let U=w;U&&Z===g0.Open&&(I4(U)||U==null||U.focus({preventScroll:!0}))},[Z,w]);let d1=_(U=>{var V1;switch(a1.dispose(),U.key){case h1.Space:if(H.state.searchQuery!=="")return U.preventDefault(),U.stopPropagation(),H.actions.search(U.key);case h1.Enter:U.preventDefault(),U.stopPropagation(),H.actions.selectActiveOption();break;case Z1(M.orientation,{vertical:h1.ArrowDown,horizontal:h1.ArrowRight}):return U.preventDefault(),U.stopPropagation(),H.actions.goToOption({focus:e1.Next});case Z1(M.orientation,{vertical:h1.ArrowUp,horizontal:h1.ArrowLeft}):return U.preventDefault(),U.stopPropagation(),H.actions.goToOption({focus:e1.Previous});case h1.Home:case h1.PageUp:return U.preventDefault(),U.stopPropagation(),H.actions.goToOption({focus:e1.First});case h1.End:case h1.PageDown:return U.preventDefault(),U.stopPropagation(),H.actions.goToOption({focus:e1.Last});case h1.Escape:U.preventDefault(),U.stopPropagation(),(0,v7.flushSync)(()=>H.actions.closeListbox()),(V1=H.state.buttonElement)==null||V1.focus({preventScroll:!0});return;case h1.Tab:U.preventDefault(),U.stopPropagation(),(0,v7.flushSync)(()=>H.actions.closeListbox()),Bh(H.state.buttonElement,U.shiftKey?U0.Previous:U0.Next);break;default:U.key.length===1&&(H.actions.search(U.key),a1.setTimeout(()=>H.actions.clearSearch(),350));break}}),z1=A1(H,U=>{var V1;return(V1=U.buttonElement)==null?void 0:V1.id}),P=P1({open:Z===g0.Open}),F=V2(s?M1():{},{id:i,ref:K,"aria-activedescendant":A1(H,H.selectors.activeDescendantId),"aria-multiselectable":M.mode===H4.Multi?!0:void 0,"aria-labelledby":z1,"aria-orientation":M.orientation,onKeyDown:d1,role:"listbox",tabIndex:Z===g0.Open?0:void 0,style:{...u.style,...Y,"--button-width":r5(B,L,!0).width},...w8(S)}),q=f1(),X=(0,s1.useMemo)(()=>M.mode===H4.Multi?M:{...M,isSelected:k},[M,k]);return s1.default.createElement(E8,{enabled:n?t.static||B:!1,ownerDocument:V},s1.default.createElement(g7.Provider,{value:X},q({ourProps:F,theirProps:u,slot:P,defaultTag:wf,features:Bf,visible:O,name:"Listbox.Options"})))}var Sf="div";function yf(t,r){let l=(0,O1.useId)(),{id:i=`headlessui-listbox-option-${l}`,disabled:o=!1,value:n,...h}=t,v=(0,s1.useContext)(Pv)===!0,u=P5("Listbox.Option"),s=d7("Listbox.Option"),p=A1(s,T=>s.selectors.isActive(T,i)),A=u.isSelected(n),M=(0,s1.useRef)(null),H=Cv(M),Z=l0({disabled:o,value:n,domRef:M,get textValue(){return H()}}),L=L1(r,M,T=>{T?u.listRef.current.set(i,T):u.listRef.current.delete(i)}),w=A1(s,T=>s.selectors.shouldScrollIntoView(T,i));J(()=>{if(w)return T1().requestAnimationFrame(()=>{var T,D;(D=(T=M.current)==null?void 0:T.scrollIntoView)==null||D.call(T,{block:"nearest"})})},[w,M]),J(()=>{if(!v)return s.actions.registerOption(i,Z),()=>s.actions.unregisterOption(i)},[Z,i,v]);let m=_(T=>{if(o)return T.preventDefault();s.actions.selectOption(n)}),V=_(()=>{if(o)return s.actions.goToOption({focus:e1.Nothing});s.actions.goToOption({focus:e1.Specific,id:i})}),x=Da(),z=_(T=>x.update(T)),B=_(T=>{x.wasMoved(T)&&(o||p&&s.state.activationTrigger===B5.Pointer||s.actions.goToOption({focus:e1.Specific,id:i},B5.Pointer))}),S=_(T=>{x.wasMoved(T)&&(o||p&&s.state.activationTrigger===B5.Pointer&&s.actions.goToOption({focus:e1.Nothing}))}),$=P1({active:p,focus:p,selected:A,disabled:o,selectedOption:A&&v}),y=v?{}:{id:i,ref:L,role:"option",tabIndex:o===!0?void 0:-1,"aria-disabled":o===!0?!0:void 0,"aria-selected":A,disabled:void 0,onClick:m,onFocus:V,onPointerEnter:z,onMouseEnter:z,onPointerMove:B,onMouseMove:B,onPointerLeave:S,onMouseLeave:S},O=f1();return!A&&v?null:O({ourProps:y,theirProps:h,slot:$,defaultTag:Sf,name:"Listbox.Option"})}var bf=s1.Fragment;function Tf(t,r){let{options:l,placeholder:i,...o}=t,n={ref:L1(r)},h=P5("ListboxSelectedOption"),v=P1({}),u=h.value===void 0||h.value===null||h.mode===H4.Multi&&Array.isArray(h.value)&&h.value.length===0,s=f1();return s1.default.createElement(Pv.Provider,{value:!0},s({ourProps:n,theirProps:{...o,children:s1.default.createElement(s1.default.Fragment,null,i&&u?i:l)},slot:v,defaultTag:bf,name:"ListboxSelectedOption"}))}var $f=v1(Lf),ve=v1(Cf),Of=za,ge=v1(Pf),ue=v1(yf),Ff=v1(Tf),Sv=Object.assign($f,{Button:ve,Label:Of,Options:ge,Option:ue,SelectedOption:Ff});var U8=E(I(),1);var se=E(I(),1),pe={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},He=se.default.createContext&&se.default.createContext(pe);var Df=["attr","size","title"];function Ef(t,r){if(t==null)return{};var l,i,o=Nf(t,r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);for(i=0;i<n.length;i++)l=n[i],r.indexOf(l)===-1&&{}.propertyIsEnumerable.call(t,l)&&(o[l]=t[l])}return o}function Nf(t,r){if(t==null)return{};var l={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(r.indexOf(i)!==-1)continue;l[i]=t[i]}return l}function u7(){return u7=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var l=arguments[r];for(var i in l)({}).hasOwnProperty.call(l,i)&&(t[i]=l[i])}return t},u7.apply(null,arguments)}function yv(t,r){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);r&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),l.push.apply(l,i)}return l}function s7(t){for(var r=1;r<arguments.length;r++){var l=arguments[r]!=null?arguments[r]:{};r%2?yv(Object(l),!0).forEach(function(i){_f(t,i,l[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):yv(Object(l)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(l,i))})}return t}function _f(t,r,l){return(r=Rf(r))in t?Object.defineProperty(t,r,{value:l,enumerable:!0,configurable:!0,writable:!0}):t[r]=l,t}function Rf(t){var r=If(t,"string");return typeof r=="symbol"?r:r+""}function If(t,r){if(typeof t!="object"||!t)return t;var l=t[Symbol.toPrimitive];if(l!==void 0){var i=l.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function bv(t){return t&&t.map((r,l)=>U8.default.createElement(r.tag,s7({key:l},r.attr),bv(r.child)))}function M4(t){return r=>U8.default.createElement(kf,u7({attr:s7({},t.attr)},r),bv(t.child))}function kf(t){var r=l=>{var{attr:i,size:o,title:n}=t,h=Ef(t,Df),v=o||l.size||"1em",u;return l.className&&(u=l.className),t.className&&(u=(u?u+" ":"")+t.className),U8.default.createElement("svg",u7({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},l.attr,i,h,{className:u,style:s7(s7({color:t.color||l.color},l.style),t.style),height:v,width:v,xmlns:"http://www.w3.org/2000/svg"}),n&&U8.default.createElement("title",null,n),t.children)};return He!==void 0?U8.default.createElement(He.Consumer,null,l=>r(l)):r(pe)}function Tv(t){return M4({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z"},child:[]}]})(t)}function $v(t){return M4({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5-5 5z"},child:[]}]})(t)}function Ov(t){return M4({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 10h11v2H3v-2zm0-2h11V6H3v2zm0 8h7v-2H3v2zm15.01-3.13.71-.71a.996.996 0 0 1 1.41 0l.71.71c.39.39.39 1.02 0 1.41l-.71.71-2.12-2.12zm-.71.71-5.3 5.3V21h2.12l5.3-5.3-2.12-2.12z"},child:[]}]})(t)}function Fv(t){return M4({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M4 19V8h16v3.29c.72.22 1.4.54 2 .97V8c0-1.11-.89-2-2-2h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h7.68c-.3-.62-.5-1.29-.6-2H4zm6-15h4v2h-4V4z"},child:[]},{tag:"path",attr:{d:"M18 13c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm1.65 7.35L17.5 18.2V15h1v2.79l1.85 1.85-.7.71z"},child:[]}]})(t)}function Dv(t){return M4({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z"},child:[]}]})(t)}var G8=[{name:"Afghanistan",iso2:"af",dialCode:"93"},{name:"Albania",iso2:"al",dialCode:"355"},{name:"Algeria",iso2:"dz",dialCode:"213"},{name:"American Samoa",iso2:"as",dialCode:"1",priority:5,areaCodes:["684"]},{name:"Andorra",iso2:"ad",dialCode:"376"},{name:"Angola",iso2:"ao",dialCode:"244"},{name:"Anguilla",iso2:"ai",dialCode:"1",priority:6,areaCodes:["264"]},{name:"Antigua & Barbuda",iso2:"ag",dialCode:"1",priority:7,areaCodes:["268"]},{name:"Argentina",iso2:"ar",dialCode:"54"},{name:"Armenia",iso2:"am",dialCode:"374"},{name:"Aruba",iso2:"aw",dialCode:"297"},{name:"Ascension Island",iso2:"ac",dialCode:"247"},{name:"Australia",iso2:"au",dialCode:"61",priority:0},{name:"Austria",iso2:"at",dialCode:"43"},{name:"Azerbaijan",iso2:"az",dialCode:"994"},{name:"Bahamas",iso2:"bs",dialCode:"1",priority:8,areaCodes:["242"]},{name:"Bahrain",iso2:"bh",dialCode:"973"},{name:"Bangladesh",iso2:"bd",dialCode:"880"},{name:"Barbados",iso2:"bb",dialCode:"1",priority:9,areaCodes:["246"]},{name:"Belarus",iso2:"by",dialCode:"375"},{name:"Belgium",iso2:"be",dialCode:"32"},{name:"Belize",iso2:"bz",dialCode:"501"},{name:"Benin",iso2:"bj",dialCode:"229"},{name:"Bermuda",iso2:"bm",dialCode:"1",priority:10,areaCodes:["441"]},{name:"Bhutan",iso2:"bt",dialCode:"975"},{name:"Bolivia",iso2:"bo",dialCode:"591"},{name:"Bosnia & Herzegovina",iso2:"ba",dialCode:"387"},{name:"Botswana",iso2:"bw",dialCode:"267"},{name:"Brazil",iso2:"br",dialCode:"55"},{name:"British Indian Ocean Territory",iso2:"io",dialCode:"246"},{name:"British Virgin Islands",iso2:"vg",dialCode:"1",priority:11,areaCodes:["284"]},{name:"Brunei",iso2:"bn",dialCode:"673"},{name:"Bulgaria",iso2:"bg",dialCode:"359"},{name:"Burkina Faso",iso2:"bf",dialCode:"226"},{name:"Burundi",iso2:"bi",dialCode:"257"},{name:"Cambodia",iso2:"kh",dialCode:"855"},{name:"Cameroon",iso2:"cm",dialCode:"237"},{name:"Canada",iso2:"ca",dialCode:"1",priority:1,areaCodes:["204","226","236","249","250","263","289","306","343","354","365","367","368","382","387","403","416","418","428","431","437","438","450","584","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","902","905"]},{name:"Cape Verde",iso2:"cv",dialCode:"238"},{name:"Caribbean Netherlands",iso2:"bq",dialCode:"599",priority:1,areaCodes:["3","4","7"]},{name:"Cayman Islands",iso2:"ky",dialCode:"1",priority:12,areaCodes:["345"]},{name:"Central African Republic",iso2:"cf",dialCode:"236"},{name:"Chad",iso2:"td",dialCode:"235"},{name:"Chile",iso2:"cl",dialCode:"56"},{name:"China",iso2:"cn",dialCode:"86"},{name:"Christmas Island",iso2:"cx",dialCode:"61",priority:2,areaCodes:["89164"]},{name:"Cocos (Keeling) Islands",iso2:"cc",dialCode:"61",priority:1,areaCodes:["89162"]},{name:"Colombia",iso2:"co",dialCode:"57"},{name:"Comoros",iso2:"km",dialCode:"269"},{name:"Congo - Brazzaville",iso2:"cg",dialCode:"242"},{name:"Congo - Kinshasa",iso2:"cd",dialCode:"243"},{name:"Cook Islands",iso2:"ck",dialCode:"682"},{name:"Costa Rica",iso2:"cr",dialCode:"506"},{name:"C\xF4te d\u2019Ivoire",iso2:"ci",dialCode:"225"},{name:"Croatia",iso2:"hr",dialCode:"385"},{name:"Cuba",iso2:"cu",dialCode:"53"},{name:"Cura\xE7ao",iso2:"cw",dialCode:"599",priority:0},{name:"Cyprus",iso2:"cy",dialCode:"357"},{name:"Czech Republic",iso2:"cz",dialCode:"420"},{name:"Denmark",iso2:"dk",dialCode:"45"},{name:"Djibouti",iso2:"dj",dialCode:"253"},{name:"Dominica",iso2:"dm",dialCode:"1",priority:13,areaCodes:["767"]},{name:"Dominican Republic",iso2:"do",dialCode:"1",priority:2,areaCodes:["809","829","849"]},{name:"Ecuador",iso2:"ec",dialCode:"593"},{name:"Egypt",iso2:"eg",dialCode:"20"},{name:"El Salvador",iso2:"sv",dialCode:"503"},{name:"Equatorial Guinea",iso2:"gq",dialCode:"240"},{name:"Eritrea",iso2:"er",dialCode:"291"},{name:"Estonia",iso2:"ee",dialCode:"372"},{name:"Eswatini",iso2:"sz",dialCode:"268"},{name:"Ethiopia",iso2:"et",dialCode:"251"},{name:"Falkland Islands",iso2:"fk",dialCode:"500"},{name:"Faroe Islands",iso2:"fo",dialCode:"298"},{name:"Fiji",iso2:"fj",dialCode:"679"},{name:"Finland",iso2:"fi",dialCode:"358",priority:0},{name:"France",iso2:"fr",dialCode:"33"},{name:"French Guiana",iso2:"gf",dialCode:"594"},{name:"French Polynesia",iso2:"pf",dialCode:"689"},{name:"Gabon",iso2:"ga",dialCode:"241"},{name:"Gambia",iso2:"gm",dialCode:"220"},{name:"Georgia",iso2:"ge",dialCode:"995"},{name:"Germany",iso2:"de",dialCode:"49"},{name:"Ghana",iso2:"gh",dialCode:"233"},{name:"Gibraltar",iso2:"gi",dialCode:"350"},{name:"Greece",iso2:"gr",dialCode:"30"},{name:"Greenland",iso2:"gl",dialCode:"299"},{name:"Grenada",iso2:"gd",dialCode:"1",priority:14,areaCodes:["473"]},{name:"Guadeloupe",iso2:"gp",dialCode:"590",priority:0},{name:"Guam",iso2:"gu",dialCode:"1",priority:15,areaCodes:["671"]},{name:"Guatemala",iso2:"gt",dialCode:"502"},{name:"Guernsey",iso2:"gg",dialCode:"44",priority:1,areaCodes:["1481","7781","7839","7911"]},{name:"Guinea",iso2:"gn",dialCode:"224"},{name:"Guinea-Bissau",iso2:"gw",dialCode:"245"},{name:"Guyana",iso2:"gy",dialCode:"592"},{name:"Haiti",iso2:"ht",dialCode:"509"},{name:"Honduras",iso2:"hn",dialCode:"504"},{name:"Hong Kong",iso2:"hk",dialCode:"852"},{name:"Hungary",iso2:"hu",dialCode:"36"},{name:"Iceland",iso2:"is",dialCode:"354"},{name:"India",iso2:"in",dialCode:"91"},{name:"Indonesia",iso2:"id",dialCode:"62"},{name:"Iran",iso2:"ir",dialCode:"98"},{name:"Iraq",iso2:"iq",dialCode:"964"},{name:"Ireland",iso2:"ie",dialCode:"353"},{name:"Isle of Man",iso2:"im",dialCode:"44",priority:2,areaCodes:["1624","74576","7524","7924","7624"]},{name:"Israel",iso2:"il",dialCode:"972"},{name:"Italy",iso2:"it",dialCode:"39",priority:0},{name:"Jamaica",iso2:"jm",dialCode:"1",priority:4,areaCodes:["876","658"]},{name:"Japan",iso2:"jp",dialCode:"81"},{name:"Jersey",iso2:"je",dialCode:"44",priority:3,areaCodes:["1534","7509","7700","7797","7829","7937"]},{name:"Jordan",iso2:"jo",dialCode:"962"},{name:"Kazakhstan",iso2:"kz",dialCode:"7",priority:1,areaCodes:["33","7"]},{name:"Kenya",iso2:"ke",dialCode:"254"},{name:"Kiribati",iso2:"ki",dialCode:"686"},{name:"Kosovo",iso2:"xk",dialCode:"383"},{name:"Kuwait",iso2:"kw",dialCode:"965"},{name:"Kyrgyzstan",iso2:"kg",dialCode:"996"},{name:"Laos",iso2:"la",dialCode:"856"},{name:"Latvia",iso2:"lv",dialCode:"371"},{name:"Lebanon",iso2:"lb",dialCode:"961"},{name:"Lesotho",iso2:"ls",dialCode:"266"},{name:"Liberia",iso2:"lr",dialCode:"231"},{name:"Libya",iso2:"ly",dialCode:"218"},{name:"Liechtenstein",iso2:"li",dialCode:"423"},{name:"Lithuania",iso2:"lt",dialCode:"370"},{name:"Luxembourg",iso2:"lu",dialCode:"352"},{name:"Macau",iso2:"mo",dialCode:"853"},{name:"Madagascar",iso2:"mg",dialCode:"261"},{name:"Malawi",iso2:"mw",dialCode:"265"},{name:"Malaysia",iso2:"my",dialCode:"60"},{name:"Maldives",iso2:"mv",dialCode:"960"},{name:"Mali",iso2:"ml",dialCode:"223"},{name:"Malta",iso2:"mt",dialCode:"356"},{name:"Marshall Islands",iso2:"mh",dialCode:"692"},{name:"Martinique",iso2:"mq",dialCode:"596"},{name:"Mauritania",iso2:"mr",dialCode:"222"},{name:"Mauritius",iso2:"mu",dialCode:"230"},{name:"Mayotte",iso2:"yt",dialCode:"262",priority:1,areaCodes:["269","639"]},{name:"Mexico",iso2:"mx",dialCode:"52"},{name:"Micronesia",iso2:"fm",dialCode:"691"},{name:"Moldova",iso2:"md",dialCode:"373"},{name:"Monaco",iso2:"mc",dialCode:"377"},{name:"Mongolia",iso2:"mn",dialCode:"976"},{name:"Montenegro",iso2:"me",dialCode:"382"},{name:"Montserrat",iso2:"ms",dialCode:"1",priority:16,areaCodes:["664"]},{name:"Morocco",iso2:"ma",dialCode:"212",priority:0},{name:"Mozambique",iso2:"mz",dialCode:"258"},{name:"Myanmar (Burma)",iso2:"mm",dialCode:"95"},{name:"Namibia",iso2:"na",dialCode:"264"},{name:"Nauru",iso2:"nr",dialCode:"674"},{name:"Nepal",iso2:"np",dialCode:"977"},{name:"Netherlands",iso2:"nl",dialCode:"31"},{name:"New Caledonia",iso2:"nc",dialCode:"687"},{name:"New Zealand",iso2:"nz",dialCode:"64"},{name:"Nicaragua",iso2:"ni",dialCode:"505"},{name:"Niger",iso2:"ne",dialCode:"227"},{name:"Nigeria",iso2:"ng",dialCode:"234"},{name:"Niue",iso2:"nu",dialCode:"683"},{name:"Norfolk Island",iso2:"nf",dialCode:"672"},{name:"North Korea",iso2:"kp",dialCode:"850"},{name:"North Macedonia",iso2:"mk",dialCode:"389"},{name:"Northern Mariana Islands",iso2:"mp",dialCode:"1",priority:17,areaCodes:["670"]},{name:"Norway",iso2:"no",dialCode:"47",priority:0},{name:"Oman",iso2:"om",dialCode:"968"},{name:"Pakistan",iso2:"pk",dialCode:"92"},{name:"Palau",iso2:"pw",dialCode:"680"},{name:"Palestine",iso2:"ps",dialCode:"970"},{name:"Panama",iso2:"pa",dialCode:"507"},{name:"Papua New Guinea",iso2:"pg",dialCode:"675"},{name:"Paraguay",iso2:"py",dialCode:"595"},{name:"Peru",iso2:"pe",dialCode:"51"},{name:"Philippines",iso2:"ph",dialCode:"63"},{name:"Poland",iso2:"pl",dialCode:"48"},{name:"Portugal",iso2:"pt",dialCode:"351"},{name:"Puerto Rico",iso2:"pr",dialCode:"1",priority:3,areaCodes:["787","939"]},{name:"Qatar",iso2:"qa",dialCode:"974"},{name:"R\xE9union",iso2:"re",dialCode:"262",priority:0},{name:"Romania",iso2:"ro",dialCode:"40"},{name:"Russia",iso2:"ru",dialCode:"7",priority:0},{name:"Rwanda",iso2:"rw",dialCode:"250"},{name:"Samoa",iso2:"ws",dialCode:"685"},{name:"San Marino",iso2:"sm",dialCode:"378"},{name:"S\xE3o Tom\xE9 & Pr\xEDncipe",iso2:"st",dialCode:"239"},{name:"Saudi Arabia",iso2:"sa",dialCode:"966"},{name:"Senegal",iso2:"sn",dialCode:"221"},{name:"Serbia",iso2:"rs",dialCode:"381"},{name:"Seychelles",iso2:"sc",dialCode:"248"},{name:"Sierra Leone",iso2:"sl",dialCode:"232"},{name:"Singapore",iso2:"sg",dialCode:"65"},{name:"Sint Maarten",iso2:"sx",dialCode:"1",priority:21,areaCodes:["721"]},{name:"Slovakia",iso2:"sk",dialCode:"421"},{name:"Slovenia",iso2:"si",dialCode:"386"},{name:"Solomon Islands",iso2:"sb",dialCode:"677"},{name:"Somalia",iso2:"so",dialCode:"252"},{name:"South Africa",iso2:"za",dialCode:"27"},{name:"South Korea",iso2:"kr",dialCode:"82"},{name:"South Sudan",iso2:"ss",dialCode:"211"},{name:"Spain",iso2:"es",dialCode:"34"},{name:"Sri Lanka",iso2:"lk",dialCode:"94"},{name:"St Barth\xE9lemy",iso2:"bl",dialCode:"590",priority:1},{name:"St Helena",iso2:"sh",dialCode:"290"},{name:"St Kitts & Nevis",iso2:"kn",dialCode:"1",priority:18,areaCodes:["869"]},{name:"St Lucia",iso2:"lc",dialCode:"1",priority:19,areaCodes:["758"]},{name:"St Martin",iso2:"mf",dialCode:"590",priority:2},{name:"St Pierre & Miquelon",iso2:"pm",dialCode:"508"},{name:"St Vincent & Grenadines",iso2:"vc",dialCode:"1",priority:20,areaCodes:["784"]},{name:"Sudan",iso2:"sd",dialCode:"249"},{name:"Suriname",iso2:"sr",dialCode:"597"},{name:"Svalbard & Jan Mayen",iso2:"sj",dialCode:"47",priority:1,areaCodes:["79"]},{name:"Sweden",iso2:"se",dialCode:"46"},{name:"Switzerland",iso2:"ch",dialCode:"41"},{name:"Syria",iso2:"sy",dialCode:"963"},{name:"Taiwan",iso2:"tw",dialCode:"886"},{name:"Tajikistan",iso2:"tj",dialCode:"992"},{name:"Tanzania",iso2:"tz",dialCode:"255"},{name:"Thailand",iso2:"th",dialCode:"66"},{name:"Timor-Leste",iso2:"tl",dialCode:"670"},{name:"Togo",iso2:"tg",dialCode:"228"},{name:"Tokelau",iso2:"tk",dialCode:"690"},{name:"Tonga",iso2:"to",dialCode:"676"},{name:"Trinidad & Tobago",iso2:"tt",dialCode:"1",priority:22,areaCodes:["868"]},{name:"Tunisia",iso2:"tn",dialCode:"216"},{name:"Turkey",iso2:"tr",dialCode:"90"},{name:"Turkmenistan",iso2:"tm",dialCode:"993"},{name:"Turks & Caicos Islands",iso2:"tc",dialCode:"1",priority:23,areaCodes:["649"]},{name:"Tuvalu",iso2:"tv",dialCode:"688"},{name:"Uganda",iso2:"ug",dialCode:"256"},{name:"Ukraine",iso2:"ua",dialCode:"380"},{name:"United Arab Emirates",iso2:"ae",dialCode:"971"},{name:"United Kingdom",iso2:"gb",dialCode:"44",priority:0},{name:"United States",iso2:"us",dialCode:"1",priority:0},{name:"Uruguay",iso2:"uy",dialCode:"598"},{name:"US Virgin Islands",iso2:"vi",dialCode:"1",priority:24,areaCodes:["340"]},{name:"Uzbekistan",iso2:"uz",dialCode:"998"},{name:"Vanuatu",iso2:"vu",dialCode:"678"},{name:"Vatican City",iso2:"va",dialCode:"39",priority:1,areaCodes:["06698"]},{name:"Venezuela",iso2:"ve",dialCode:"58"},{name:"Vietnam",iso2:"vn",dialCode:"84"},{name:"Wallis & Futuna",iso2:"wf",dialCode:"681"},{name:"Western Sahara",iso2:"eh",dialCode:"212",priority:1,areaCodes:["5288","5289"]},{name:"Yemen",iso2:"ye",dialCode:"967"},{name:"Zambia",iso2:"zm",dialCode:"260"},{name:"Zimbabwe",iso2:"zw",dialCode:"263"},{name:"\xC5land Islands",iso2:"ax",dialCode:"358",priority:1,areaCodes:["18"]}];function Me(t){return t?t.toUpperCase().split("").map(r=>String.fromCodePoint(127397+r.charCodeAt(0))).join(""):"\u{1F310}"}function $6(t){if(t)return G8.find(r=>r.iso2.toLowerCase()===t.toLowerCase())}function O6(t){if(!t)return;let r=String(t).replace(/[^0-9]/g,"");if(r)return G8.find(l=>l.dialCode===r||l.areaCodes?.includes(r))}function S5(t){return`+${t.dialCode}`}var Iv=E(Ev(),1);var Uf=/^([\w-.]+@([\w-]+\.)+[\w-]{2,25})?$/,fe=Iv.default.PhoneNumberUtil.getInstance();function kv(t){return t.formGroupName||t.masterApplyFields.fieldNameForApply}function Ae(t){return String(t?.phoneNumField?.nationalNumber||t?.phoneNumField?.number||"").trim()}function Gf(t){return y5(t?.phoneNumField?.dialCode)}function F6(t){return String(t||"").replace(/\D+/g,"")}function y5(t){let r=F6(t);return r?`+${r}`:""}function Ve(t,r){let l=F6(r);return l?`${y5(t)}${l}`:""}var Wf=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function jf(t){if(!t)return t;if(t instanceof Date&&!Number.isNaN(t.getTime())){let n=t.getFullYear(),h=String(t.getMonth()+1).padStart(2,"0"),v=String(t.getDate()).padStart(2,"0");return`${n}-${h}-${v}`}let r=String(t).trim(),l=r.match(/^(\d{4})-(\d{2})-(\d{2})/);if(l)return`${l[1]}-${l[2]}-${l[3]}`;let i=r.match(/^(\d{1,2})\s+([A-Za-z]{3,})\s+(\d{4})$/);if(i){let n=Wf.findIndex(h=>h.toLowerCase()===i[2].slice(0,3).toLowerCase());if(n>=0)return`${i[3]}-${String(n+1).padStart(2,"0")}-${String(Number(i[1])).padStart(2,"0")}`}let o=new Date(r);if(!Number.isNaN(o.getTime())){let n=o.getFullYear(),h=String(o.getMonth()+1).padStart(2,"0"),v=String(o.getDate()).padStart(2,"0");return`${n}-${h}-${v}`}return t}function K2(t){return t?t.split(",").map(r=>r.trim()).filter(Boolean):[]}function Uv(t,r=2){if(t===0)return"0 Bytes";let l=["Bytes","KB","MB","GB","TB"],i=1024,o=Math.floor(Math.log(t)/Math.log(i));return`${(t/Math.pow(i,o)).toFixed(r)} ${l[o]}`}function H7(t,r=4){let l=t==null?"":String(t);if(!l)return"";let i=Array.from(l),o=0;for(let n=i.length-1;n>=0;n-=1)if(!/\s/.test(i[n])){if(o<r){o+=1;continue}i[n]="\u2022"}return i.join("")}function M7(t){let r=t instanceof Date?t:new Date(t);if(Number.isNaN(r.getTime()))return null;let l=new Date,i=l.getFullYear()-r.getFullYear(),o=l.getMonth()-r.getMonth();return(o<0||o===0&&l.getDate()<r.getDate())&&(i-=1),i}function p7(t,r){let l=r?.reponseObject?.parsedResult?.profile,i=l?.PersonalDetails,o=r?.reponseObject?.jobApplication;return[i?.[t],l?.[t],o?.[t]].find(h=>h!=null&&h!=="null")??""}function Gv(t){return t.fieldOptions?Array.isArray(t.fieldOptions)?t.fieldOptions.map(r=>r.value):K2(t.fieldOptions):[]}function f7(t,r){let l=r.trim().toLowerCase();return l?t.filter(i=>i.toLowerCase().includes(l)):t}function qf(t){return t.recruiterUploads==="Mandatory"}function c2(t){return String(t.fieldType||"").toLowerCase()==="consent"}function h2(t,r,l){let i=r.find(v=>K2(v.dependentFieldsName).includes(t));if(!i)return!0;let o=K2(i.dependentFieldsName),n=K2(i.dependentFieldsValues),h=l[i.masterApplyFields.fieldNameForApply];return o.some((v,u)=>v===t&&n[u]===h)}function Nv(t,r,l){return qf(t)&&h2(t.masterApplyFields.fieldNameForApply,r,l)}function Wv(t){return t.recruiterUploadsLabel?.trim()||t.masterApplyFields.fieldNameForApply||"This field"}function _v(t){let r=Wv(t);return t.fieldType==="checkbox"||c2(t)?`Please select ${r}`:t.fieldType==="D"?`Please select ${r}`:`${r} is required`}function Rv(t){let r=Wv(t);return t.fieldType==="email"||t.masterApplyFields.fieldNameForApply==="emailId"?"Please enter a valid email address":t.fieldType==="D"?`Please select a valid ${r}`:t.fieldType==="date"?`Please enter a valid ${r}`:t.fieldType==="location"?`Please enter a valid ${r}`:`Please enter a valid ${r}`}function Kf(t){let r=String(t||"").trim();return r?new RegExp(`^(?:${r})$`):null}function Yf(t,r){let l=$6(t.selectedCountryCode);return(O6(Gf(r))||l)?.iso2?.toUpperCase()||void 0}function Xf(t,r){let l=F6(Ae(r));if(!l)return!0;let i=Yf(t,r);try{let o=fe.parseAndKeepRawInput(l,i);return i?fe.isValidNumberForRegion(o,i):fe.isValidNumber(o)}catch{return!1}}function W8(t,r,l,i){let o=t.masterApplyFields.fieldNameForApply;if(!o||o==="uploadResume")return null;let n=t.errorMessage&&t.errorMessage.toUpperCase()!=="NULL"?t.errorMessage:null;if(t.fieldType==="phone"){let h=Ae(r);return Nv(t,l,i)&&!h?_v(t):h?Xf(t,r)?null:n||"Provide a valid Phone number":null}if(Nv(t,l,i)&&(r==null||r===""||typeof r=="boolean"&&r===!1))return _v(t);if(typeof r!="string"||!r)return null;if(t.fieldType==="email"&&!Uf.test(r))return n||Rv(t);if(t.pattern)try{let h=Kf(t.pattern);if(!h)return null;if(!h.test(r))return n||Rv(t)}catch{return null}return null}function jv(t,r){if(!r)return{isValid:!0};let l=(r.fileFormat||[]).map(n=>String(n).trim().toLowerCase().replace(/^\./,"")),i=t.name.includes(".")&&t.name.split(".").pop()?.trim().toLowerCase()||"";if(!(l.length===0||l.includes(i)))return{isValid:!1,reason:r?.errorFormat||`Unsupported file type for: ${t.name}. Please upload a supported file.`};if(r.fileSize){let n=r.fileSize*1024*1024;if(t.size>n)return{isValid:!1,reason:r?.errorSize||`File size should be ${r.fileSize} MB or less.`}}return{isValid:!0}}function me(t){return{countryIsoCode:t?.countryIsoCode??"IN",whatsAppEnabled:t?.whatsAppEnabled??!1,maxCount:t?.maxCount??3}}function qv(t){return{phoneType:"Mobile",phoneNumField:null,whatsAppEnabled:me(t).whatsAppEnabled}}function Kv(t,r){let l=me(r),i=1;return t.map(o=>{if(o.fieldType!=="phone")return{...o};let n=`phoneField${i}`;return i+=1,{...o,formGroupName:n,selectedCountryCode:l.countryIsoCode,primaryPhoneNumber:n==="phoneField1"}})}function j8(t){let r={},l=me(t.phoneConfiguration);return t.fields.forEach(i=>{let o=i.masterApplyFields.fieldNameForApply;if(!o||o==="uploadResume")return;if(i.fieldType==="phone"){let h=p7("phoneNoWithoutCountryCode",t.parsedResume),v=p7("countryCode",t.parsedResume)||l.countryIsoCode;r[i.formGroupName||"phoneField1"]={phoneType:"Mobile",phoneNumField:h?{nationalNumber:F6(h),dialCode:y5(v),number:F6(h),e164Number:String(p7("phoneNo",t.parsedResume)||Ve(v,h))}:null,whatsAppEnabled:l.whatsAppEnabled};return}if(i.fieldType==="checkbox"||c2(i)){r[o]=!1;return}if(i.fieldType==="T"&&o==="subSource"&&!t.parsedResume){r[o]=t.userName;return}let n=p7(o,t.parsedResume);r[o]=n}),r}function Yv(t,r){let l=t.filter(i=>c2(i)).map(i=>{let o=kv(i);return[i.masterApplyFields.fieldNameForApply,!!r[o]]}).filter(([i])=>!!i);return Object.fromEntries(l)}function q8(t,r){let l=new Map,i={};return t.filter(o=>o.fieldType==="phone").forEach(o=>{let n=kv(o),h=r[n],v=Ae(h);if(!v)return;let u=Ve(h?.phoneNumField?.dialCode,v);if(l.has(u)){i[n]="Duplicate phone numbers are not allowed";let s=l.get(u);s&&!i[s]&&(i[s]="Duplicate phone numbers are not allowed");return}l.set(u,n)}),i}function Xv(t,r){let l={...t};return r.forEach(i=>{l[i]=jf(l[i])}),l}function Qv(t){let{profileSources:r,selectedSourceOfProfile:l,selectedProfileSource:i,freeTextSubSource:o}=t,n=o?.trim()||"";if(!l&&!i)return n;let h=r.find(u=>(u.sourceOfProfile||"")===(l||"")&&u.profileSource===i);if(!l)return i||n;let v=`${l}-${i||h?.profileSource||""}`;return n?`${v}-${n}`:v}function Jv(t,r){return t.filter(l=>l.fieldType==="phone").map(l=>({field:l,phoneValue:r[l.formGroupName||"phoneField1"]})).filter(l=>!!l.phoneValue?.phoneNumField).map(({field:l,phoneValue:i})=>{let o=y5(i.phoneNumField?.dialCode),n=F6(i.phoneNumField?.nationalNumber||i.phoneNumField?.number);return{phoneType:i.phoneType,associatedEntityType:"CANDIDATE",primary:!!l.primaryPhoneNumber,whatsappEnabled:i.whatsAppEnabled,countryCode:o,number:n}})}function tg(t){let r={...t.values},l=t.parsedResume?.reponseObject?.jobApplication||{};t.fields.filter(s=>s.fieldType==="phone").map(s=>s.formGroupName||"phoneField1").forEach(s=>{delete r[s]});let o=t.fields.find(s=>s.fieldType==="phone"&&s.primaryPhoneNumber),n=o?t.values[o.formGroupName||"phoneField1"]:void 0,h={...l,...r,subSource:t.subSourceValue,companyId:t.context.job.companyId,jobId:t.context.job.id,fileName:t.file?.name||""};n?.phoneNumField&&(h.phoneNo=n.phoneNumField.e164Number||Ve(n.phoneNumField.dialCode,n.phoneNumField.nationalNumber),h.phoneNoWithoutCountryCode=F6(n.phoneNumField.number??n.phoneNumField.nationalNumber),h.countryCode=y5(n.phoneNumField.dialCode));let v={data:JSON.stringify(h),referrerEmailId:t.context.user.email,referrerId:t.context.user.id,sendNotification:t.sendNotification?"Yes":"No",profile:"{}"},u=new FormData;return u.append("addProfileReqBody",JSON.stringify(v)),t.file&&u.append("file",t.file),u.append("parsedResultId",String(t.parsedResume?.reponseObject?.parsedObjectId||"")),u.append("isAsync","false"),t.contactInformation&&t.contactInformation.length>0&&u.append("contactInformation",JSON.stringify(t.contactInformation)),t.consent&&Object.keys(t.consent).length>0&&u.append("consent",JSON.stringify(t.consent)),u}async function ag(t,r){let l=await t.loadInitialData(r),i=Kv(l.applyFields,l.phoneConfiguration),o=j8({fields:i,userName:r.user.name,phoneConfiguration:l.phoneConfiguration});return{initialization:l,fields:i,values:o}}function rg(t){return j8({fields:t.fields,parsedResume:t.parsedResume,userName:t.context.user.name,phoneConfiguration:t.initialization.phoneConfiguration})}async function lg(t){let r=t.fields.filter(v=>v.fieldType==="date").map(v=>v.masterApplyFields.fieldNameForApply),l=Xv(t.values,r),i=Jv(t.fields,l),o=Yv(t.fields,l),n=Qv({profileSources:t.profileSources,selectedSourceOfProfile:t.selectedSourceOfProfile,selectedProfileSource:t.selectedProfileSource,freeTextSubSource:t.subSourceText}),h=tg({fields:t.fields,context:t.context,file:t.file,values:l,parsedResume:t.parsedResume,contactInformation:i,consent:Object.keys(o).length>0?o:t.consent,sendNotification:t.sendNotification,subSourceValue:n});return t.api.submitProfile(h,t.context)}var I1=E(I(),1);function K8(t){return t.formGroupName||t.masterApplyFields.fieldNameForApply}function eg(t,r){return t.find(l=>K8(l)===r||l.masterApplyFields.fieldNameForApply===r)}function A7(t,r,l){let i={};return t.forEach(o=>{let n=K8(o);if(!n)return;let h=W8(o,l[n],r,l);h&&(i[n]=h)}),Object.assign(i,q8(t,l)),i}function Qf(t,r,l,i){let o={...i},n=eg(r,t);if(!n?.dependentFieldsName)return o;let h=K2(n.dependentFieldsName);return[...new Set(h)].forEach(u=>{let s=r.find(M=>M.masterApplyFields.fieldNameForApply===u);if(!s)return;let p=K8(s);if(!h2(u,r,l)){delete o[p];return}let A=W8(s,l[p],r,l);A?o[p]=A:delete o[p]}),o}function ig(t){let[r,l]=(0,I1.useState)(null),[i,o]=(0,I1.useState)([]),[n,h]=(0,I1.useState)({}),[v,u]=(0,I1.useState)(null),[s,p]=(0,I1.useState)(null),[A,M]=(0,I1.useState)(null),[H,Z]=(0,I1.useState)(!1),[L,w]=(0,I1.useState)(!1),[m,V]=(0,I1.useState)(!1),[x,z]=(0,I1.useState)({}),[B,S]=(0,I1.useState)(!1),[$,y]=(0,I1.useState)(""),[O,T]=(0,I1.useState)(""),[D,k]=(0,I1.useState)(""),[W,G]=(0,I1.useState)(!0);(0,I1.useEffect)(()=>{if(!t.open)return;let i1=!1;return Z(!0),M(null),p(null),u(null),z({}),S(!1),ag(t.api,t.context).then(l1=>{i1||(l(l1.initialization),o(l1.fields),h(l1.values),k(l1.initialization.profileSources?.length?"":t.context.user.name))}).finally(()=>{i1||Z(!1)}),()=>{i1=!0}},[t.api,t.context,t.open]);let R=(0,I1.useMemo)(()=>i.filter(i1=>{let l1=i1.masterApplyFields.fieldNameForApply;return l1&&l1!=="uploadResume"&&!c2(i1)&&h2(l1,i,n)}),[i,n]),Y=(0,I1.useMemo)(()=>i.filter(i1=>i1.fieldType==="phone"),[i]),M1=!!(r&&Y.length<r.phoneConfiguration.maxCount),K=r?.resumeOptional===!0,d1=!!(!!(s||K&&A==="manual")&&!H&&!L&&!m);(0,I1.useEffect)(()=>{let i1=new Set(R.map(l1=>K8(l1)).filter(Boolean));z(l1=>{let r1={};return Object.entries(l1).forEach(([i0,o0])=>{(i0==="file"||i1.has(i0))&&(r1[i0]=o0)}),B?{...r1,...A7(R,i,n)}:r1})},[i,n,B,R]);function z1(i1,l1){let r1={...n,[i1]:l1};if(i1==="dateOfBirth"){let C1=M7(String(l1));C1!=null&&"agee"in r1&&(r1.agee=C1)}h(r1),z(C1=>{let i0={...C1};delete i0[i1];let o0=Qf(i1,i,r1,i0);if(!B)return o0;let A0=new Set(i.filter(V0=>{let Y2=V0.masterApplyFields.fieldNameForApply;return Y2&&Y2!=="uploadResume"&&!c2(V0)&&h2(Y2,i,r1)}).map(V0=>K8(V0)));return Object.keys(o0).forEach(V0=>{V0!=="file"&&!A0.has(V0)&&delete o0[V0]}),{...o0,...A7(i.filter(V0=>{let Y2=V0.masterApplyFields.fieldNameForApply;return Y2&&Y2!=="uploadResume"&&!c2(V0)&&h2(Y2,i,r1)}),i,r1)}})}function P(){S(!0);let i1=A7(R,i,n);return z(l1=>({...l1,...i1})),Object.keys(i1).length===0}function F(i1){let l1=eg(i,i1);if(!l1)return;let r1={...n},C1=K8(l1);if(!h2(l1.masterApplyFields.fieldNameForApply,i,r1)){z(o0=>{let A0={...o0};return delete A0[C1],A0});return}let i0=W8(l1,r1[C1],i,r1);z(o0=>{let A0={...o0};return i0?A0[C1]=i0:delete A0[C1],Object.assign(A0,q8(R,r1)),A0})}function q(){if(p(null),u(null),M(null),z(i1=>{let l1={...i1};return delete l1.file,l1}),!r){h({});return}h(j8({fields:i,userName:t.context.user.name,phoneConfiguration:r.phoneConfiguration}))}function X(){r?.resumeOptional===!0&&(M("manual"),p(null),u(null),S(!1),z(i1=>{let l1={...i1};return delete l1.file,l1}),r&&h(j8({fields:i,userName:t.context.user.name,phoneConfiguration:r.phoneConfiguration})))}async function U(i1){if(!r)return;let l1=jv(i1,r.supportedFiles.addProfile);if(!l1.isValid){z(r1=>({...r1,file:l1.reason||"Unsupported file"}));return}M("resume"),p(i1),w(!0),z(r1=>{let C1={...r1};return delete C1.file,C1});try{let r1=await t.api.parseResume(i1,t.context),C1=r1?.responseStatus,i0=r1?.responseCode;if(C1==="FAILURE"||typeof i0=="number"&&i0!==200){let V0=r1?.reponseObject?.errorMessage||"Failed to process the file. Please try again.";p(null),M(null),u(null),z(Y2=>({...Y2,file:V0}));return}let A0=rg({fields:i,context:t.context,parsedResume:r1,initialization:r});return u(r1),h(V0=>({...V0,...A0})),{isSuccess:!0}}catch{u(null),p(null),M(null),z(r1=>({...r1,file:"Failed to process the file. Please try again."}))}finally{w(!1)}}async function V1(){if(!r)return null;if(!(r.resumeOptional===!0&&A==="manual")&&!s)return z(r1=>({...r1,file:"Please upload a resume before submitting"})),null;S(!0);let l1=A7(R,i,n);if(Object.keys(l1).length>0)return z(r1=>({...r1,...l1})),null;V(!0);try{return await lg({api:t.api,context:t.context,fields:i,values:n,file:s,parsedResume:v,sendNotification:W,profileSources:r.profileSources,selectedSourceOfProfile:$||void 0,selectedProfileSource:O||void 0,subSourceText:D})}finally{V(!1)}}function n1(){return R}function Y1(i1,l1){let r1=Array.isArray(i1.fieldOptions)?i1.fieldOptions.map(C1=>C1.value):String(i1.fieldOptions||"").split(",").map(C1=>C1.trim()).filter(Boolean);return f7(r1,l1)}function G1(i1){if(!r||!M1)return;let l1=Y.reduce((C1,i0)=>{let o0=i0.formGroupName?.match(/^phoneField(\d+)$/),A0=o0?Number(o0[1]):1;return Math.max(C1,A0)},1)+1,r1={...i1,recruiterUploads:"Non Mandatory",primaryPhoneNumber:!1,formGroupName:`phoneField${l1}`,selectedCountryCode:r.phoneConfiguration.countryIsoCode};o(C1=>{let i0=C1.findIndex(A0=>A0.formGroupName===i1.formGroupName);if(i0===-1)return[...C1,r1];let o0=[...C1];return o0.splice(i0+1,0,r1),o0}),h(C1=>({...C1,[r1.formGroupName||`phoneField${l1}`]:qv(r.phoneConfiguration)}))}function X1(i1){i1.primaryPhoneNumber||!i1.formGroupName||(o(l1=>l1.filter(r1=>r1.formGroupName!==i1.formGroupName)),h(l1=>{let r1={...l1};return delete r1[i1.formGroupName],r1}))}return{initialization:r,fields:i,formValues:n,parsedResume:v,selectedFile:s,creationMode:A,isInitializing:H,isParsing:L,isSubmitting:m,errors:x,sourceOfProfile:$,profileSource:O,subSourceText:D,sendNotification:W,canSubmit:d1,setFieldValue:z1,validateAll:P,validateField:F,setSourceOfProfile:y,setProfileSource:T,setSubSourceText:k,setSendNotification:G,clearSelectedFile:q,startManualEntry:X,uploadFile:U,submit:V1,getVisibleFields:n1,getDropdownOptions:Y1,addPhoneField:G1,removePhoneField:X1,canAddMorePhoneFields:M1,phoneFieldCount:Y.length}}var Hg=E(ea(),1),og=["in","us"];function Y8(){return(0,C.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:(0,C.jsx)("path",{d:"M6 6l12 12M18 6L6 18",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}function ng(){return(0,C.jsx)($v,{"aria-hidden":"true"})}function Jf(){return(0,C.jsxs)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:[(0,C.jsx)("circle",{cx:"12",cy:"12",r:"9",fill:"none",stroke:"currentColor",strokeWidth:"1.8"}),(0,C.jsx)("path",{d:"M12 10.2v5.2",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),(0,C.jsx)("circle",{cx:"12",cy:"7.4",r:"1.1",fill:"currentColor"})]})}function tA(){return(0,C.jsxs)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:[(0,C.jsx)("path",{d:"M12 21s-6-5.1-6-11a6 6 0 1112 0c0 5.9-6 11-6 11z",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0,C.jsx)("circle",{cx:"12",cy:"10",r:"2.5",fill:"currentColor"})]})}function aA(){return(0,C.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:(0,C.jsx)("path",{d:"M7 3v3m10-3v3M4 9h16M6 5h12a1 1 0 011 1v13a1 1 0 01-1 1H6a1 1 0 01-1-1V6a1 1 0 011-1z",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})})}function dg(){return(0,C.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:(0,C.jsx)("path",{d:"M12 5v14M5 12h14",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}function rA(){return(0,C.jsxs)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:[(0,C.jsx)("path",{d:"M6 12h12",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round"}),(0,C.jsx)("circle",{cx:"12",cy:"12",r:"9",fill:"none",stroke:"currentColor",strokeWidth:"1.8"})]})}function lA({onAdd:t,onRemove:r}){let[l,i]=(0,c1.useState)(!1),o=(0,c1.useRef)(null);return(0,c1.useEffect)(()=>{if(!l)return;function n(h){o.current&&!o.current.contains(h.target)&&i(!1)}return document.addEventListener("pointerdown",n),()=>document.removeEventListener("pointerdown",n)},[l]),(0,C.jsxs)("div",{ref:o,className:"rae-phone-menu",children:[(0,C.jsx)("button",{type:"button",className:"rae-phone-action rae-phone-action--edit","aria-label":"Phone options",onClick:()=>i(n=>!n),children:(0,C.jsx)(Dv,{"aria-hidden":!0})}),l?(0,C.jsxs)("div",{className:"rae-phone-menu__dropdown",children:[(0,C.jsx)("button",{type:"button",className:"rae-phone-menu__item",onClick:()=>{t(),i(!1)},children:"Add another"}),(0,C.jsx)("button",{type:"button",className:"rae-phone-menu__item rae-phone-menu__item--remove",onClick:()=>{r(),i(!1)},children:"Remove"})]}):null]})}function Ce(){return(0,C.jsx)("svg",{viewBox:"0 0 20 20","aria-hidden":"true",children:(0,C.jsx)("path",{d:"M5 10.5l3 3 7-7",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function eA(){return(0,C.jsx)("svg",{viewBox:"0 0 20 20","aria-hidden":"true",children:(0,C.jsx)("path",{d:"M8.5 14a5.5 5.5 0 114.1-1.83L16 15.58 14.58 17l-3.4-3.4A5.47 5.47 0 018.5 14zm0-2a3.5 3.5 0 100-7 3.5 3.5 0 000 7z",fill:"currentColor"})})}function X8(){return(0,C.jsx)("span",{className:"rae-spinner","aria-hidden":"true"})}function vg(t,r=".rae-select-options",l=12){t instanceof HTMLElement&&window.requestAnimationFrame(()=>{let i=t.closest(".rae-modal__body--expanded")||t.closest(".rae-modal__body"),o=t.querySelector(r);if(!(i instanceof HTMLElement)||!(o instanceof HTMLElement))return;let n=i.getBoundingClientRect(),h=o.getBoundingClientRect(),v=h.bottom-(n.bottom-l),u=n.top+l-h.top;if(v>0){i.scrollTop+=v;return}u>0&&(i.scrollTop-=u)})}function iA(t){let r=t.minYearOfExperience,l=t.maxYearOfExperience;return!r&&!l?"Not Specified":r&&l?`${r} - ${l} Years`:r?`${r}+ Years`:`Up to ${l} Years`}var gg=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ug(t){if(!t)return"";if(t instanceof Date&&!Number.isNaN(t.getTime())){let n=t.getFullYear(),h=String(t.getMonth()+1).padStart(2,"0"),v=String(t.getDate()).padStart(2,"0");return`${n}-${h}-${v}`}let r=String(t).trim(),l=r.match(/^(\d{4})-(\d{2})-(\d{2})/);if(l)return`${l[1]}-${l[2]}-${l[3]}`;let i=r.match(/^(\d{1,2})\s+([A-Za-z]{3,})\s+(\d{4})$/);if(i){let n=gg.findIndex(h=>h.toLowerCase()===i[2].slice(0,3).toLowerCase());if(n>=0)return`${i[3]}-${String(n+1).padStart(2,"0")}-${String(Number(i[1])).padStart(2,"0")}`}let o=new Date(r);if(!Number.isNaN(o.getTime())){let n=o.getFullYear(),h=String(o.getMonth()+1).padStart(2,"0"),v=String(o.getDate()).padStart(2,"0");return`${n}-${h}-${v}`}return""}function oA(t){let r=ug(t);if(!r)return"";let[l,i,o]=r.split("-");return`${o} ${gg[Number(i)-1]} ${l}`}function $5(t){return t.formGroupName||t.masterApplyFields.fieldNameForApply}function Le(t){return String(t||"").replace(/\D+/g,"")}function V7(t){let r=Le(t);return r?`+${r}`:""}function nA(t){let r=t||{},l=r.code??r.responseCode,i=typeof l=="number"?l:void 0,o=typeof r.message=="string"&&r.message||typeof r.errorMessage=="string"&&r.errorMessage||"Something went wrong, Please try again!";return i===void 0||i===200?{isSuccess:!0,toast:{kind:"success",message:typeof r.message=="string"&&r.message?r.message:"Profile Added Successfully"}}:i===403||i===500?{isSuccess:!1,toast:{kind:"warning",message:o}}:{isSuccess:!1,toast:{kind:"error",message:o}}}function cg(t){t instanceof HTMLElement&&window.setTimeout(()=>{let r=t.querySelector(".rae-field-error");if(!(r instanceof HTMLElement))return;let l=r.closest(".rae-field")||r;if(!(l instanceof HTMLElement))return;let i=t.querySelector(".rae-modal__body--expanded")||t.querySelector(".rae-modal__body");if(i instanceof HTMLElement){let n=l.getBoundingClientRect(),h=i.getBoundingClientRect(),v=n.top-h.top+i.scrollTop-80;i.scrollTo({top:Math.max(0,v),behavior:"smooth"})}else l.scrollIntoView({behavior:"smooth",block:"center"});let o=l.querySelector("input, button, textarea, [role='combobox'], [role='button']");o instanceof HTMLElement&&o.focus({preventScroll:!0})},100)}function cA(t){let[r,l]=(0,c1.useState)(""),i=O6(t.selectedDialCode)||$6(t.selectedIso2)||$6("IN")||G8[0],o=c1.default.useMemo(()=>{let n=r.trim().toLowerCase(),h=s=>n?s.name.toLowerCase().includes(n)||s.iso2.toLowerCase().includes(n)||`+${s.dialCode}`.includes(n):!0,v=G8.filter(s=>og.includes(s.iso2.toLowerCase())&&h(s)),u=G8.filter(s=>!og.includes(s.iso2.toLowerCase())&&h(s));return[...v,...u]},[r]);return(0,C.jsxs)(iv,{value:i,onChange:n=>{n&&t.onSelect(n),l("")},immediate:!0,children:[(0,C.jsx)("input",{type:"hidden",name:t.name||"countryCode",value:i?.iso2||""}),(0,C.jsxs)("div",{className:"rae-country-select",children:[(0,C.jsxs)("div",{className:"rae-country-select__trigger-shell",children:[(0,C.jsx)("span",{className:"rae-country-select__flag","aria-hidden":"true",children:Me(i?.iso2)}),(0,C.jsx)(Ql,{className:"rae-country-select__trigger",displayValue:()=>i?S5(i):"+91",onChange:n=>l(n.target.value),autoComplete:"off",placeholder:"+91","aria-label":"Search country code"}),(0,C.jsx)(Xl,{className:"rae-country-select__button",children:(0,C.jsx)("span",{className:"rae-country-select__arrow","aria-hidden":"true",children:"\u25BE"})})]}),(0,C.jsx)(Jl,{className:"rae-country-select__menu",children:(0,C.jsx)("div",{className:"rae-country-select__list",role:"listbox","aria-label":"Country code options",children:o.map(n=>(0,C.jsxs)(te,{value:n,className:"rae-country-select__option",children:[(0,C.jsx)("span",{className:"rae-country-select__flag","aria-hidden":"true",children:Me(n.iso2)}),(0,C.jsx)("span",{className:"rae-country-select__option-code",children:S5(n)}),(0,C.jsx)("span",{className:"rae-country-select__name",children:n.name})]},`${n.iso2}-${n.dialCode}-${n.priority??0}`))})})]})]})}function l6(t){return(0,C.jsx)(oe,{id:t.id,name:t.name,className:`rae-field-input${t.className?` ${t.className}`:""}`,type:t.type||"text",value:t.value,placeholder:t.placeholder||"",onChange:t.onChange,onBlur:t.onBlur,onKeyDown:t.onKeyDown,"aria-invalid":t.invalid||void 0,autoComplete:t.autoComplete,inputMode:t.inputMode,readOnly:t.readOnly})}function sg(){return(0,C.jsx)("svg",{"aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,C.jsx)("polyline",{points:"6 9 12 15 18 9"})})}function T5(t){let r=t.options.find(n=>n.value===t.value),l=(0,c1.useRef)(null),i=t.id==="rae-source-of-profile"||t.id==="rae-profile-source"||t.id==="rae-sub-source-select"||t.id==="rae-profile-source-fallback",o=`rae-select-shell${t.shellClassName?` ${t.shellClassName}`:""}${i?" rae-footer-select":""}`;return(0,C.jsxs)(Sv,{value:t.value||"",onChange:n=>{t.onChange({target:{value:n}})},children:[(0,C.jsx)("input",{type:"hidden",id:t.id,name:t.name,value:t.value||""}),(0,C.jsxs)("div",{ref:l,className:o,children:[(0,C.jsxs)(ve,{className:`rae-field-input rae-field-input--button rae-select-button${t.invalid?" rae-field-input--invalid":""}`,onClick:()=>{vg(l.current)},onBlur:t.onBlur,children:[(0,C.jsx)("span",{className:`rae-select-button__text${r?"":" rae-select-button__text--placeholder"}`,children:r?.label||t.placeholder||"Select an option"}),(0,C.jsx)("span",{className:"rae-select-arrow","aria-hidden":"true",children:(0,C.jsx)(sg,{})})]}),(0,C.jsx)(ge,{className:"rae-select-options",children:t.options.map(n=>(0,C.jsxs)(ue,{value:n.value,className:"rae-select-option",children:[(0,C.jsx)("span",{className:"rae-select-option__label",children:n.label}),(0,C.jsx)("span",{className:"rae-select-option__check",children:(0,C.jsx)(Ce,{})})]},n.value))})]})]})}function hA(t){let[r,l]=(0,c1.useState)(""),[i,o]=(0,c1.useState)(!1),[n,h]=(0,c1.useState)(-1),v=(0,c1.useRef)(null),u=(0,c1.useRef)(null),s=H=>{H.stopPropagation()},p=t.options.find(H=>H.value===t.value)||null,A=c1.default.useMemo(()=>{let H=r.trim().toLowerCase();return H?t.options.filter(Z=>Z.label.toLowerCase().includes(H)):t.options},[t.options,r]);(0,c1.useEffect)(()=>{if(!i)return;let H=Z=>{v.current?.contains(Z.target)||(o(!1),l(""),t.onBlur?.())};return document.addEventListener("mousedown",H),()=>document.removeEventListener("mousedown",H)},[i]),(0,c1.useEffect)(()=>{i&&(window.requestAnimationFrame(()=>u.current?.focus()),vg(v.current))},[i]),(0,c1.useEffect)(()=>{if(!i||!A.length){h(-1);return}let H=A.findIndex(Z=>Z.value===t.value);h(H>=0?H:0)},[A,i,t.value]);let M=H=>{t.onChange({target:{value:H.value}}),o(!1),l("")};return(0,C.jsxs)("div",{ref:v,className:`rae-select-shell rae-searchable-select${i?" rae-select-shell--open":""}${t.shellClassName?` ${t.shellClassName}`:""}`,onBlur:H=>{H.currentTarget.contains(H.relatedTarget)||t.onBlur?.()},children:[(0,C.jsx)("input",{type:"hidden",id:t.id,name:t.name,value:t.value||""}),(0,C.jsxs)("button",{type:"button",className:`rae-field-input rae-field-input--button rae-select-button${t.invalid?" rae-field-input--invalid":""}`,onClick:()=>{o(H=>!H),i&&l("")},"aria-haspopup":"listbox","aria-expanded":i,children:[(0,C.jsx)("span",{className:`rae-select-button__text${p?"":" rae-select-button__text--placeholder"}`,children:p?.label||t.placeholder||"Select an option"}),(0,C.jsx)("span",{className:"rae-select-arrow","aria-hidden":"true",children:(0,C.jsx)(sg,{})})]}),i?(0,C.jsxs)("div",{className:"rae-select-options rae-searchable-options",role:"listbox",onMouseDown:s,onPointerDown:s,onClick:s,onWheel:s,children:[(0,C.jsx)("div",{className:"rae-searchable-options__search",children:(0,C.jsxs)("div",{className:"rae-searchable-options__search-box",children:[(0,C.jsx)(eA,{}),(0,C.jsx)("input",{ref:u,className:"rae-searchable-options__input",value:r,onChange:H=>l(H.target.value),placeholder:"Search...",autoComplete:"off","aria-label":`Search ${t.placeholder||"options"}`,onMouseDown:s,onPointerDown:s,onClick:s,onKeyDown:H=>{if(H.key==="ArrowDown"){H.preventDefault(),h(Z=>A.length?Math.min(Z+1,A.length-1):-1);return}if(H.key==="ArrowUp"){H.preventDefault(),h(Z=>A.length?Math.max(Z-1,0):-1);return}if(H.key==="Enter"&&n>=0&&A[n]){H.preventDefault(),M(A[n]);return}H.key==="Escape"&&(o(!1),l(""),t.onBlur?.())}})]})}),(0,C.jsx)("div",{className:"rae-searchable-options__list",children:A.length?A.map((H,Z)=>(0,C.jsxs)("button",{type:"button",role:"option","aria-selected":H.value===t.value,className:`rae-select-option${H.value===t.value?" rae-select-option--selected":""}${n===Z?" rae-select-option--active":""}`,onMouseEnter:()=>h(Z),onMouseDown:L=>{L.preventDefault(),L.stopPropagation()},onPointerDown:s,onClick:L=>{L.stopPropagation(),M(H)},children:[(0,C.jsx)("span",{className:"rae-select-option__label",children:H.label}),H.value===t.value?(0,C.jsx)("span",{className:"rae-select-option__check",children:(0,C.jsx)(Ce,{})}):null]},H.value)):(0,C.jsx)("div",{className:"rae-select-option rae-select-option--empty",children:"No results found."})})]}):null]})}function ze(t){return(0,C.jsxs)("label",{className:t.className||"rae-checkbox-field",children:[(0,C.jsx)("input",{type:"hidden",name:t.name,value:t.checked?"true":"false"}),(0,C.jsxs)(Xc,{checked:t.checked,onChange:r=>t.onChange({target:{checked:r}}),className:"rae-headless-checkbox",children:[(0,C.jsx)("span",{className:"rae-headless-checkbox__bg"}),(0,C.jsx)("span",{className:"rae-headless-checkbox__icon",children:(0,C.jsx)(Ce,{})})]}),(0,C.jsx)("span",{children:t.label})]})}function dA({field:t,value:r,error:l,inputId:i,inputName:o,onBlur:n,onLocationInput:h,onLocationSuggestionSelect:v,onLocationBlur:u,locationSuggestions:s,isLoadingLocationSuggestions:p,readOnly:A}){let M=(0,c1.useRef)(null),H=(0,c1.useRef)(null),[Z,L]=(0,c1.useState)(null);(0,c1.useEffect)(()=>{if(!s||s.length===0){L(null);return}let m=M.current?.querySelector("input");if(!m)return;let V=m.getBoundingClientRect();L({position:"fixed",top:`${V.bottom+4}px`,left:`${V.left}px`,width:`${V.width}px`,zIndex:99999})},[s]),(0,c1.useEffect)(()=>{M.current&&(M.current.__raeOnSuggestionSelect=v)});let w=m=>{if(m.key==="Tab"){m.preventDefault();let V=H.current||M.current?.querySelector(".rae-location-suggestions");V instanceof HTMLElement&&(V.style.display="none"),u?.()}else if(m.key==="ArrowDown"){m.preventDefault();let V=H.current||M.current?.querySelector(".rae-location-suggestions");if(V instanceof HTMLElement){let x=V.querySelector(".rae-location-suggestion");x instanceof HTMLElement&&x.focus()}}};return(0,C.jsxs)("div",{ref:M,className:"rae-location-field rae-location-shell",onBlur:m=>{m.currentTarget.contains(m.relatedTarget)||u?.()},children:[(0,C.jsx)(l6,{id:i,name:o,value:typeof r=="string"||typeof r=="number"?String(r):"",placeholder:t.placeholder||"",invalid:!!l,onChange:m=>h?.(m.target.value),onBlur:n,onKeyDown:w,autoComplete:"off",readOnly:A}),p?(0,C.jsx)("div",{className:"rae-location-status",children:"Fetching locations..."}):null,s&&s.length>0?(0,C.jsx)("div",{ref:H,className:"rae-location-suggestions",role:"listbox","aria-label":`${t.recruiterUploadsLabel} suggestions`,style:Z||{},children:s.map(m=>(0,C.jsx)("button",{type:"button",className:"rae-location-suggestion",tabIndex:-1,"data-suggestion":m,onMouseDown:V=>{V.preventDefault(),v?.(m)},children:m},m))}):null]})}function we(t){let{field:r,value:l,error:i,inputId:o,inputName:n,onChange:h,onBlur:v,getDropdownOptions:u,onAddPhoneField:s,onRemovePhoneField:p,canAddMorePhoneFields:A,phoneFieldCount:M,locationSuggestions:H,isLoadingLocationSuggestions:Z,onLocationInput:L,onLocationSuggestionSelect:w,onLocationBlur:m,readOnly:V}=t,x=r.fieldType;if(x==="checkbox")return(0,C.jsx)(ze,{id:o,name:n,checked:!!l,onChange:B=>h(B.target.checked),label:r.recruiterUploadsLabel});if(x==="D")return(0,C.jsx)(hA,{id:o,name:n,value:String(l??""),placeholder:r.placeholder||"Select an option",invalid:!!i,onChange:B=>h(B.target.value),onBlur:v,options:u(r,"").map(B=>({label:B,value:B}))});if(x==="date"){let B=ug(l);return(0,C.jsxs)("label",{className:"rae-date-shell",children:[(0,C.jsx)(oe,{id:o,name:`${n}-display`,className:"rae-field-input rae-field-input--date",type:"text",value:oA(l),placeholder:"",readOnly:!0,onBlur:v,onClick:S=>{let $=S.currentTarget.parentElement?.querySelector("input[type='date']");$ instanceof HTMLInputElement&&($.showPicker?.(),$.focus())},"aria-invalid":i||void 0}),(0,C.jsx)("input",{className:"rae-native-date-input",type:"date",value:B,onChange:S=>h(S.target.value),onBlur:v,"aria-label":`Select ${r.recruiterUploadsLabel}`,tabIndex:-1}),(0,C.jsx)("button",{type:"button",className:"rae-date-trigger",onClick:S=>{let $=S.currentTarget.parentElement?.querySelector("input[type='date']");$ instanceof HTMLInputElement&&($.showPicker?.(),$.focus())},"aria-label":`Select ${r.recruiterUploadsLabel}`,children:(0,C.jsx)(aA,{})})]})}if(x==="phone"){let B=l||{phoneType:"Mobile",phoneNumField:null,whatsAppEnabled:!1},S=O6(B.phoneNumField?.dialCode)||$6(r.selectedCountryCode)||$6("IN"),$=S?V7(S5(S)):"+91",y=Le(B.phoneNumField?.nationalNumber||"");return(0,C.jsxs)("div",{className:"rae-phone-stack",children:[(0,C.jsxs)("div",{className:"rae-phone-row",children:[(0,C.jsx)(T5,{id:`${o}-type`,name:`${n}-type`,shellClassName:"rae-phone-type",value:B.phoneType,onChange:O=>h({...B,phoneType:O.target.value}),options:[{label:"Mobile",value:"Mobile"},{label:"Home",value:"Home"},{label:"Work",value:"Work"},{label:"Other",value:"Other"}]}),(0,C.jsxs)("div",{className:"rae-phone-number-shell",children:[(0,C.jsx)(cA,{name:`${n}-country`,selectedIso2:r.selectedCountryCode,selectedDialCode:B.phoneNumField?.dialCode,onSelect:O=>{let T=V7(S5(O));h({...B,phoneNumField:{...B.phoneNumField,dialCode:T,nationalNumber:y,number:y,e164Number:`${T}${y}`}})}}),(0,C.jsx)(l6,{id:`${o}-number`,name:`${n}-number`,value:y,placeholder:"Phone number",inputMode:"tel",invalid:!!i,onChange:O=>{let T=Le(O.target.value);h({...B,phoneNumField:{...B.phoneNumField,nationalNumber:T,number:T,dialCode:V7(B.phoneNumField?.dialCode||$),e164Number:`${V7(B.phoneNumField?.dialCode||$)}${T}`}})}})]}),r.primaryPhoneNumber?M===1?(0,C.jsx)("button",{type:"button",className:"rae-phone-action rae-phone-action--add","aria-label":"Add phone field",onClick:()=>s?.(r),children:(0,C.jsx)(dg,{})}):null:A?(0,C.jsx)(lA,{onAdd:()=>s?.(r),onRemove:()=>p?.(r)}):(0,C.jsx)("button",{type:"button",className:"rae-phone-action rae-phone-action--remove","aria-label":"Remove phone field",onClick:()=>p?.(r),children:(0,C.jsx)(rA,{})})]}),(0,C.jsx)(ze,{id:`${o}-whatsapp`,name:`${n}-whatsapp`,className:"rae-checkbox-field rae-checkbox-field--inline",checked:!!B.whatsAppEnabled,onChange:O=>h({...B,whatsAppEnabled:O.target.checked}),label:"This number is WhatsApp enabled"})]})}if(x==="location")return(0,C.jsx)(dA,{field:r,value:l,error:i,inputId:o,inputName:n,onBlur:v,onLocationInput:L,onLocationSuggestionSelect:w,onLocationBlur:m,locationSuggestions:H,isLoadingLocationSuggestions:Z,readOnly:V});let z=String(r.recruiterUploadsLabel||"").toLowerCase().includes("current ctc");return(0,C.jsx)(l6,{id:o,name:n,type:x==="email"?"email":"text",value:typeof l=="string"||typeof l=="number"?String(l):"",placeholder:r.placeholder||"",invalid:!!i,onChange:B=>h(z?vA(B.target.value):B.target.value),onBlur:v,readOnly:V})}function pg(t){let r=ig({open:t.open,api:t.api,context:t.context}),l=(0,c1.useId)(),i=(0,c1.useRef)(null),[o,n]=(0,c1.useState)(null),[h,v]=(0,c1.useState)({}),[u,s]=(0,c1.useState)({}),[p,A]=(0,c1.useState)(""),[M,H]=(0,c1.useState)({}),[Z,L]=(0,c1.useState)({}),w=(0,c1.useRef)({}),m=(0,c1.useRef)({});if((0,c1.useEffect)(()=>{if(!o)return;let P=window.setTimeout(()=>{n(null)},4500);return()=>{window.clearTimeout(P)}},[o]),(0,c1.useEffect)(()=>()=>{Object.values(m.current).forEach(P=>{window.clearTimeout(P)})},[]),(0,c1.useEffect)(()=>{H(P=>{let F={...P};return r.fields.forEach(q=>{let X=$5(q);if(!X||!q.masterApplyFields.maskable)return;let U=r.formValues[X];if(!(U!=null&&String(U).trim()!=="")){F[X]=!1;return}(F[X]===void 0||r.parsedResume)&&(F[X]=!0)}),F})},[r.fields,r.formValues,r.parsedResume]),!t.open)return null;let V=[...r.getVisibleFields().filter(P=>P.fieldType!=="checkbox"),...r.getVisibleFields().filter(P=>P.fieldType==="checkbox")],x=r.initialization?.supportedFiles.addProfile,z=r.initialization?.resumeOptional===!0,B=!!((r.selectedFile||z&&r.creationMode==="manual")&&!r.isParsing),S=!!(z&&!r.selectedFile&&r.creationMode!=="manual"),$=!z&&!r.selectedFile,y=r.initialization?.profileSources||[],O=[...new Set(y.map(P=>P.sourceOfProfile).filter(Boolean))],T=!!O[0],D=T?r.sourceOfProfile?y.filter(P=>P.sourceOfProfile===r.sourceOfProfile):[]:y,k=T?y.find(P=>P.sourceOfProfile===r.sourceOfProfile&&P.profileSource===r.profileSource):y.find(P=>P.profileSource===r.profileSource),W=K2(k?.subSourceValues),G=!!(T&&k?.sourceOfProfile&&k?.subSourceValues),R=!!(T&&k?.sourceOfProfile&&!k?.subSourceValues);function Y(P){L({}),r.setSourceOfProfile(P),r.setProfileSource(""),r.setSubSourceText(""),A("")}function M1(P){L({}),r.setProfileSource(P),A("");let F=T?y.find(q=>q.sourceOfProfile===r.sourceOfProfile&&q.profileSource===P):y.find(q=>q.profileSource===P);if(!F){r.setSubSourceText("");return}if(!T){r.setSubSourceText(F.profileSource||"");return}if(F.subSourceValues){r.setSubSourceText(t.context.user.name?.trim()||"");return}r.setSubSourceText(t.context.user.name?.trim()||"")}function K(P){L({}),A(P),r.setSubSourceText(P)}async function a1(){n(null);let P={};O.length>0?(r.sourceOfProfile||(P.sourceOfProfile="Please select a Source Of Profile."),r.profileSource||(P.profileSource="Please select a Source Type."),G&&!p&&(P.subSource="Please select a Sub Source."),R&&!r.subSourceText.trim()&&(P.subSource="Please enter a Sub Source.")):y.length>0?r.profileSource||(P.profileSource="Please select a Source Type."):r.subSourceText.trim()||(P.subSource="Please enter a Sub Source.");let F=r.validateAll();if(!F||Object.keys(P).length>0){F||cg(i.current),Object.keys(P).length>0&&L(P);return}L({});try{let q=await r.submit();if(!q){cg(i.current);return}let X=nA(q);t.showSubmitToast!==!1&&n(X.toast),X.isSuccess&&t.onSuccess?.(q)}catch(q){let X=q instanceof Error&&q.message?q.message:"Something went wrong, Please try again!";t.showSubmitToast!==!1&&n({kind:"error",message:X})}}function d1(P,F){if(r.setFieldValue(P,F),!t.api.getLocationSuggestions){v(q=>({...q,[P]:[]}));return}if(m.current[P]&&window.clearTimeout(m.current[P]),!F.trim()){v(q=>({...q,[P]:[]})),s(q=>({...q,[P]:!1}));return}m.current[P]=window.setTimeout(async()=>{let q=(w.current[P]||0)+1;w.current[P]=q,s(X=>({...X,[P]:!0}));try{let X=await t.api.getLocationSuggestions?.(F,t.context);if(w.current[P]!==q)return;v(U=>({...U,[P]:X||[]}))}catch{if(w.current[P]!==q)return;v(X=>({...X,[P]:[]}))}finally{w.current[P]===q&&s(X=>({...X,[P]:!1}))}},250)}function z1(P,F){r.setFieldValue(P,F),v(q=>({...q,[P]:[]})),s(q=>({...q,[P]:!1}))}return(0,C.jsxs)(c7,{open:t.open,onClose:()=>{},className:"rae-overlay",children:[(0,C.jsx)("div",{className:"rae-overlay__backdrop","aria-hidden":"true"}),(0,C.jsx)("div",{className:"rae-overlay__viewport",children:(0,C.jsxs)(C5,{ref:i,className:`rae-modal ${B?"rae-modal--expanded":"rae-modal--compact"}`,children:[o?(0,C.jsxs)("div",{className:`rae-toast rae-toast--${o.kind}`,role:"status","aria-live":"polite",children:[(0,C.jsx)("span",{children:o.message}),(0,C.jsx)("button",{type:"button",className:"rae-toast__close",onClick:()=>n(null),"aria-label":"Dismiss notification",children:(0,C.jsx)(Y8,{})})]}):null,r.isInitializing?(0,C.jsx)("div",{className:"rae-loader-overlay","aria-live":"polite","aria-busy":"true",children:(0,C.jsx)(X8,{})}):null,r.isParsing?(0,C.jsxs)("div",{className:"rae-loader-overlay","aria-live":"polite","aria-busy":"true",children:[(0,C.jsx)(X8,{}),(0,C.jsx)("p",{className:"rae-loader-text",children:"Parsing resume and populating fields..."})]}):null,r.isSubmitting?(0,C.jsxs)("div",{className:"rae-loader-overlay","aria-live":"polite","aria-busy":"true",children:[(0,C.jsx)(X8,{}),(0,C.jsx)("p",{className:"rae-loader-text",children:"Submitting profile..."})]}):null,(0,C.jsxs)("div",{className:"rae-modal__header",children:[(0,C.jsx)(w5,{as:"div",className:"rae-modal__title",children:t.title||"Add Profile"}),(0,C.jsx)("button",{type:"button",className:"rae-icon-button",onClick:t.onClose,"aria-label":"Close add profile modal",children:(0,C.jsx)(Y8,{})})]}),(0,C.jsxs)("div",{className:`rae-modal__body ${B?"rae-modal__body--expanded":"rae-modal__body--compact"}`,children:[(0,C.jsxs)("section",{className:"rae-section rae-section--job",children:[(0,C.jsxs)("div",{className:"rae-job-title",children:[t.context.job.jobTitle," ",(0,C.jsx)("span",{children:"|"})," ",t.context.job.jobCode]}),(0,C.jsxs)("div",{className:"rae-job-meta",children:[(0,C.jsxs)("div",{className:"rae-meta-pill",children:[(0,C.jsx)(tA,{}),(0,C.jsx)("span",{children:t.context.job.location||"NA"})]}),(0,C.jsxs)("div",{className:"rae-meta-pill",children:[(0,C.jsx)(Fv,{"aria-hidden":"true"}),(0,C.jsx)("span",{children:iA(t.context.job)})]}),(0,C.jsxs)("div",{className:"rae-meta-pill",children:[(0,C.jsx)(Tv,{"aria-hidden":"true"}),(0,C.jsx)("span",{children:t.context.job.departmentName||"All Departments"})]})]})]}),(0,C.jsxs)("section",{className:"rae-section rae-section--upload",children:[S?(0,C.jsxs)(c1.default.Fragment,{children:[(0,C.jsx)("div",{className:"rae-profile-method-question",children:"How would you like to create this profile?"}),(0,C.jsxs)("div",{className:"rae-profile-method-grid",children:[(0,C.jsxs)("label",{htmlFor:l,className:"rae-profile-method-card",children:[(0,C.jsx)("span",{className:"rae-profile-method-card__icon",children:(0,C.jsx)(ng,{})}),(0,C.jsxs)("span",{className:"rae-profile-method-card__content",children:[(0,C.jsx)("span",{className:"rae-profile-method-card__title",children:"Upload resume"}),(0,C.jsx)("span",{className:"rae-profile-method-card__description",children:"Auto-extract candidate details from a resume"})]}),(0,C.jsx)("span",{className:"rae-profile-method-card__info",title:`Supported: ${x?.fileFormat.join(", ")||"Loading..."}${x?.fileSize?` | Max size: ${x.fileSize} MB`:""}`,"aria-label":`Supported file types: ${x?.fileFormat.join(", ")||"Loading"}${x?.fileSize?` and maximum file size ${x.fileSize} MB`:""}`,children:(0,C.jsx)(Jf,{})}),(0,C.jsx)("input",{id:l,type:"file",accept:x?.fileFormat?.map(P=>`.${String(P).trim().toLowerCase().replace(/^\./,"")}`).join(",")||void 0,hidden:!0,onChange:P=>{let F=P.target.files?.[0];F&&r.uploadFile(F)}})]}),(0,C.jsxs)("button",{type:"button",className:"rae-profile-method-card",onClick:r.startManualEntry,children:[(0,C.jsx)("span",{className:"rae-profile-method-card__icon",children:(0,C.jsx)(Ov,{"aria-hidden":"true"})}),(0,C.jsxs)("span",{className:"rae-profile-method-card__content",children:[(0,C.jsx)("span",{className:"rae-profile-method-card__title",children:"Manual entry"}),(0,C.jsx)("span",{className:"rae-profile-method-card__description",children:"Fill in candidate details step by step"})]})]})]})]}):$?(0,C.jsxs)("label",{htmlFor:l,className:"rae-upload-card",children:[(0,C.jsx)("div",{className:"rae-upload-card__icon",children:(0,C.jsx)(ng,{})}),(0,C.jsxs)("div",{className:"rae-upload-card__title",children:["Drag and Drop or ",(0,C.jsx)("span",{children:"Click Here"})," to upload resume."]}),(0,C.jsxs)("div",{className:"rae-upload-card__meta",children:["File Types Supported : ",x?.fileFormat.join(", ")||"Loading..."]}),(0,C.jsxs)("div",{className:"rae-upload-card__meta",children:["(File size should be ",x?.fileSize||2," MB or less)"]}),(0,C.jsx)("input",{id:l,type:"file",accept:x?.fileFormat?.map(P=>`.${String(P).trim().toLowerCase().replace(/^\./,"")}`).join(",")||void 0,hidden:!0,onChange:P=>{let F=P.target.files?.[0];F&&r.uploadFile(F)}})]}):r.selectedFile?(0,C.jsxs)("div",{className:"rae-file-card",children:[(0,C.jsxs)("div",{className:"rae-file-card__content",children:[(0,C.jsx)("div",{className:"rae-file-card__name",children:r.selectedFile.name}),(0,C.jsx)("div",{className:"rae-file-card__size",children:Uv(r.selectedFile.size)})]}),(0,C.jsx)("button",{type:"button",className:"rae-icon-button rae-file-card__remove",onClick:r.clearSelectedFile,"aria-label":"Remove uploaded resume",children:(0,C.jsx)(Y8,{})})]}):null,r.errors.file?(0,C.jsx)("div",{className:"rae-field-error",children:r.errors.file}):null]}),B?(0,C.jsxs)("section",{className:"rae-section",children:[r.isParsing?(0,C.jsx)("div",{className:"rae-state-text",children:"Parsing resume and populating fields..."}):null,(0,C.jsx)("div",{className:"rae-form-grid",children:V.map(P=>{let F=$5(P),q=r.formValues[F],X=r.errors[F],U=P.fieldType==="checkbox",V1=`rae-field-${F}`,n1=!!(P.masterApplyFields.maskable&&q&&P.fieldType!=="location"&&P.fieldType!=="date"&&P.fieldType!=="phone"&&P.fieldType!=="checkbox"&&P.fieldType!=="D"),Y1=!!(n1&&M[F]);return(0,C.jsxs)("div",{className:`rae-field ${U?"rae-field--checkbox":""}${X?" rae-field--invalid":""}`,onBlur:G1=>{G1.currentTarget.contains(G1.relatedTarget)||r.validateField(F)},children:[U?null:(0,C.jsxs)("label",{htmlFor:V1,className:"rae-field-label",children:[P.recruiterUploadsLabel,P.recruiterUploads==="Mandatory"?(0,C.jsx)("span",{children:"*"}):null,P.fieldType==="phone"&&P.primaryPhoneNumber?(0,C.jsx)("span",{className:"rae-phone-primary-badge",children:"Primary"}):null]}),Y1?(0,C.jsxs)("div",{className:"rae-mask-shell",children:[(0,C.jsx)(l6,{id:V1,name:F,value:H7(q),readOnly:!0,invalid:!!X}),(0,C.jsx)("button",{type:"button",className:"rae-mask-toggle",onClick:()=>H(G1=>({...G1,[F]:!1})),children:"Show"})]}):(0,C.jsxs)(c1.default.Fragment,{children:[we({field:P,value:q,error:X,inputId:V1,inputName:F,onChange:G1=>r.setFieldValue(F,G1),onBlur:()=>r.validateField(F),getDropdownOptions:r.getDropdownOptions,onAddPhoneField:r.addPhoneField,onRemovePhoneField:r.removePhoneField,canAddMorePhoneFields:r.canAddMorePhoneFields,phoneFieldCount:r.phoneFieldCount,locationSuggestions:h[F]||[],isLoadingLocationSuggestions:!!u[F],onLocationInput:G1=>d1(F,G1),onLocationSuggestionSelect:G1=>z1(F,G1),onLocationBlur:()=>{m.current[F]&&window.clearTimeout(m.current[F]),v(G1=>({...G1,[F]:[]})),s(G1=>({...G1,[F]:!1}))}}),n1?(0,C.jsx)("button",{type:"button",className:"rae-mask-toggle rae-mask-toggle--inline",onClick:()=>H(G1=>({...G1,[F]:!0})),children:"Hide"}):null]}),X?(0,C.jsx)("div",{className:"rae-field-error",children:X}):null]},F)})})]}):null]}),(0,C.jsxs)("div",{className:"rae-modal__footer",children:[(0,C.jsxs)("div",{className:"rae-footer__left",children:[(0,C.jsx)(ze,{id:"rae-send-notification",name:"sendNotification",className:"rae-checkbox-field rae-checkbox-field--footer",checked:r.sendNotification,onChange:P=>r.setSendNotification(P.target.checked),label:"Send notification to candidate"}),r.isInitializing?null:O.length>0?(0,C.jsxs)("div",{className:"rae-footer-fields",children:[(0,C.jsxs)("div",{className:"rae-footer-field rae-footer-field--required",children:[(0,C.jsx)(T5,{id:"rae-source-of-profile",name:"sourceOfProfile",value:r.sourceOfProfile,onChange:P=>Y(P.target.value),placeholder:"Source Of Profile",options:O.map(P=>({label:P,value:P}))}),Z.sourceOfProfile?(0,C.jsx)("div",{className:"rae-field-error",children:Z.sourceOfProfile}):null]}),r.sourceOfProfile?(0,C.jsxs)("div",{className:"rae-footer-field rae-footer-field--required",children:[(0,C.jsx)(T5,{id:"rae-profile-source",name:"profileSource",value:r.profileSource,onChange:P=>M1(P.target.value),placeholder:"Source Type",options:D.map(P=>({label:P.profileSource,value:P.profileSource}))}),Z.profileSource?(0,C.jsx)("div",{className:"rae-field-error",children:Z.profileSource}):null]}):null,r.profileSource&&G?(0,C.jsxs)("div",{className:"rae-footer-field rae-footer-field--required",children:[(0,C.jsx)(T5,{id:"rae-sub-source-select",name:"subSourceSelect",value:p,onChange:P=>K(P.target.value),placeholder:"Sub Source",options:W.map(P=>({label:P,value:P}))}),Z.subSource?(0,C.jsx)("div",{className:"rae-field-error",children:Z.subSource}):null]}):null,r.profileSource&&R?(0,C.jsxs)("div",{className:"rae-footer-field rae-footer-field--required",children:[(0,C.jsx)(l6,{id:"rae-sub-source-input",name:"subSourceText",value:r.subSourceText,placeholder:"Sub Source *",onChange:P=>{L(F=>({...F,subSource:""})),r.setSubSourceText(P.target.value)}}),Z.subSource?(0,C.jsx)("div",{className:"rae-field-error",children:Z.subSource}):null]}):null]}):(0,C.jsx)("div",{className:"rae-footer-fields",children:y.length?(0,C.jsxs)("div",{className:"rae-footer-field rae-footer-field--required",children:[(0,C.jsx)(T5,{id:"rae-profile-source-fallback",name:"profileSource",value:r.profileSource,onChange:P=>M1(P.target.value),placeholder:"Source Type",options:D.map(P=>({label:P.profileSource,value:P.profileSource}))}),Z.profileSource?(0,C.jsx)("div",{className:"rae-field-error",children:Z.profileSource}):null]}):(0,C.jsxs)("div",{className:"rae-footer-field rae-footer-field--required",children:[(0,C.jsx)(l6,{id:"rae-sub-source-fallback",name:"subSourceText",value:r.subSourceText,placeholder:"Sub Source *",onChange:P=>{L(F=>({...F,subSource:""})),r.setSubSourceText(P.target.value)}}),Z.subSource?(0,C.jsx)("div",{className:"rae-field-error",children:Z.subSource}):null]})})]}),(0,C.jsxs)("div",{className:"rae-footer__actions",children:[(0,C.jsx)("button",{type:"button",className:"rae-button rae-button--ghost",onClick:t.onClose,children:"Cancel"}),(0,C.jsx)("button",{type:"button",className:"rae-button rae-button--primary",onClick:()=>{a1()},disabled:!r.canSubmit||!B,"data-rae-force-submit-disabled":B?void 0:"true",children:r.isSubmitting?"Submitting...":"Submit"})]})]})]})})]})}function vA(t){let r=String(t??"").replace(/[^\d]/g,"");if(!r)return"";let l=r.slice(-3),i=r.slice(0,-3);return i?`${i.replace(/\B(?=(\d{2})+(?!\d))/g,",")},${l}`:l}function hg(){if(typeof document>"u")return;let t=[".rae-phone-add-button",".rae-phone-field__add",".rae-phone-action--add",".rae-phone-inline__add"].join(", "),r=new Set;document.querySelectorAll(t).forEach(l=>r.add(l)),document.querySelectorAll(".rae-modal *").forEach(l=>{if(!(l instanceof HTMLElement)||l.children.length>0||(l.textContent||"").trim()!=="+")return;let i=l.closest(".rae-field")||l.closest("[class*='phone']")||l.parentElement;String(i?.textContent||"").toLowerCase().includes("phone")&&r.add(l)}),r.forEach(l=>{if(!(l instanceof HTMLElement)||l.dataset.raePhoneIconMounted==="true")return;l.dataset.raePhoneIconMounted="true",l.classList.add("rae-phone-action","rae-phone-action--accent"),l.textContent="";let i=document.createElement("span");i.className="rae-phone-add-icon",l.appendChild(i),(0,Hg.createRoot)(i).render((0,C.jsx)(dg,{}))})}function m7(t){if(!(t instanceof HTMLElement))return;document.querySelectorAll('.rae-select[data-overlay-active="true"], .rae-searchable-select[data-overlay-active="true"]').forEach(m=>{m instanceof HTMLElement&&m!==t&&delete m.dataset.overlayActive});let r=t.querySelector('button[aria-expanded="true"]')||t.querySelector("button"),l=t.querySelector(".rae-select-options")||t.querySelector(".rae-searchable-select__options");if(!(r instanceof HTMLElement)||!(l instanceof HTMLElement))return;let i=r.getBoundingClientRect(),o=window.innerHeight||document.documentElement.clientHeight||0,n=window.innerWidth||document.documentElement.clientWidth||0,h=4,v=12,u=Math.min(l.scrollHeight||240,280),s=o-i.bottom-v,p=i.top-v,A=s<Math.min(u,180)&&p>s,M=Math.max(140,Math.min(u,A?p:s)),H=Math.min(i.width,n-v*2),Z=Math.min(Math.max(v,i.left),n-H-v),L=A?Math.max(v,i.top-M-h):Math.max(v,i.bottom+h),w=t.closest(".rae-field");document.querySelectorAll('.rae-field[data-overlay-active="true"]').forEach(m=>{m instanceof HTMLElement&&m!==w&&delete m.dataset.overlayActive}),t.dataset.overlayActive="true",w instanceof HTMLElement&&(w.dataset.overlayActive="true"),l.dataset.overlayOpen="true",l.style.setProperty("--rae-overlay-top",`${L}px`),l.style.setProperty("--rae-overlay-left",`${Z}px`),l.style.setProperty("--rae-overlay-width",`${H}px`),l.style.setProperty("--rae-overlay-max-height",`${M}px`)}function gA(t){if(!(t instanceof HTMLElement))return;delete t.dataset.overlayActive;let r=t.closest(".rae-field");r instanceof HTMLElement&&delete r.dataset.overlayActive;let l=t.querySelector(".rae-select-options")||t.querySelector(".rae-searchable-select__options");l instanceof HTMLElement&&(delete l.dataset.overlayOpen,l.style.removeProperty("--rae-overlay-top"),l.style.removeProperty("--rae-overlay-left"),l.style.removeProperty("--rae-overlay-width"),l.style.removeProperty("--rae-overlay-max-height"))}function b5(t){if(!(t instanceof HTMLElement))return;let r=t.querySelector("input"),l=t.__raePortaledLocationSuggestions||t.querySelector(".rae-location-suggestions");if(!(r instanceof HTMLElement)||!(l instanceof HTMLElement))return;let i=r.getBoundingClientRect(),o=window.innerHeight||document.documentElement.clientHeight||0,n=window.innerWidth||document.documentElement.clientWidth||0,h=4,v=12,u=Math.min(l.scrollHeight||240,280),s=o-i.bottom-v,p=i.top-v,A=s<Math.min(u,180)&&p>s,M=Math.max(120,Math.min(u,A?p:s)),H=Math.min(i.width,n-v*2),Z=Math.min(Math.max(v,i.left),n-H-v),L=A?Math.max(v,i.top-M-h):Math.max(v,i.bottom+h);l.dataset.overlayOpen="true",l.style.setProperty("--rae-location-overlay-top",`${L}px`),l.style.setProperty("--rae-location-overlay-left",`${Z}px`),l.style.setProperty("--rae-location-overlay-width",`${H}px`),l.style.setProperty("--rae-location-overlay-max-height",`${M}px`)}function Z7(t){if(!(t instanceof HTMLElement))return;let r=t.__raePortaledLocationSuggestions||t.querySelector(".rae-location-suggestions");if(r instanceof HTMLElement){if(delete r.dataset.overlayOpen,r.style.removeProperty("--rae-location-overlay-top"),r.style.removeProperty("--rae-location-overlay-left"),r.style.removeProperty("--rae-location-overlay-width"),r.style.removeProperty("--rae-location-overlay-max-height"),t.__raeLocationOriginalParent instanceof HTMLElement){let l=t.__raeLocationOriginalParent,i=t.__raeLocationOriginalNextSibling||null;i&&i.parentNode===l?l.insertBefore(r,i):l.appendChild(r)}delete t.__raePortaledLocationSuggestions,delete t.__raeLocationOriginalParent,delete t.__raeLocationOriginalNextSibling}}function Ze(t){if(!(t instanceof HTMLElement)||typeof document>"u")return;let r=t.__raePortaledLocationSuggestions;if(r instanceof HTMLElement&&r.isConnected&&r.parentElement===document.body)return r;let l=t.querySelector(".rae-location-suggestions");return l instanceof HTMLElement?(t.__raeLocationOriginalParent=l.parentElement,t.__raeLocationOriginalNextSibling=l.nextSibling,t.__raePortaledLocationSuggestions=l,document.body.appendChild(l),l):null}function xe(t){if(!(t instanceof HTMLElement))return;let r=t.closest(".rae-modal__body--expanded")||t.closest(".rae-modal__body"),l=t.closest(".rae-modal")?.querySelector?.(".rae-modal__footer"),i=t.__raePortaledLocationSuggestions||t.querySelector(".rae-location-suggestions"),o=t.querySelector("input");if(!(r instanceof HTMLElement)||!(i instanceof HTMLElement)||!(o instanceof HTMLElement))return;let n=o.getBoundingClientRect(),h=r.getBoundingClientRect(),v=l instanceof HTMLElement?l.getBoundingClientRect():null,u=v?Math.min(h.bottom,v.top):h.bottom,s=Math.min(Math.max(i.scrollHeight||0,180),280),M=n.bottom+8+s-u;M>0&&(r.scrollTop+=M+12)}if(typeof document<"u"&&!window.__raeDropdownOverlayBound){window.__raeDropdownOverlayBound=!0;let t=r=>{let l=r?.closest?.(".rae-select, .rae-searchable-select");l instanceof HTMLElement&&window.requestAnimationFrame(()=>m7(l))};document.addEventListener("click",r=>{t(r.target),document.querySelectorAll(".rae-select, .rae-searchable-select").forEach(i=>{if(!(i instanceof HTMLElement))return;i.querySelector('button[aria-expanded="true"]')?m7(i):gA(i)})},!0),window.addEventListener("resize",()=>{document.querySelectorAll(".rae-select, .rae-searchable-select").forEach(r=>m7(r))},{passive:!0}),document.addEventListener("scroll",()=>{document.querySelectorAll(".rae-select, .rae-searchable-select").forEach(r=>m7(r))},!0)}typeof document<"u"&&!window.__raePhoneAddIconBound&&(window.__raePhoneAddIconBound=!0,new MutationObserver(()=>hg()).observe(document.body,{childList:!0,subtree:!0}),window.requestAnimationFrame(()=>hg()));if(typeof document<"u"&&!window.__raeSubmitButtonEnableBound){window.__raeSubmitButtonEnableBound=!0;let t=()=>{document.querySelectorAll("button").forEach(l=>{!(l instanceof HTMLButtonElement)||(l.textContent||"").trim().toLowerCase()!=="submit"||l.dataset.raeForceSubmitDisabled!=="true"&&l.disabled&&(l.disabled=!1,l.removeAttribute("disabled"),l.setAttribute("aria-disabled","false"))})};new MutationObserver(()=>t()).observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["disabled","aria-disabled"]}),window.requestAnimationFrame(()=>t())}if(typeof document<"u"&&!window.__raeLocationCloseBound){window.__raeLocationCloseBound=!0;let t=l=>{document.querySelectorAll(".rae-location-field").forEach(i=>{if(!(i instanceof HTMLElement))return;let o=l instanceof Node?i.contains(l):!1,n=i.__raePortaledLocationSuggestions||i.querySelector(".rae-location-suggestions");if(o){let v=Ze(i);i.dataset.locationOpen="true";let u=v||i.__raePortaledLocationSuggestions||n;u instanceof HTMLElement&&(u.style.display="block"),window.requestAnimationFrame(()=>{xe(i),b5(i)});return}delete i.dataset.locationOpen,n instanceof HTMLElement&&(n.style.display="none"),Z7(i);let h=i.querySelector("input");h instanceof HTMLInputElement&&document.activeElement===h&&h.blur()})};document.addEventListener("focusin",l=>{t(l.target)},!0),document.addEventListener("pointerdown",l=>{let i=l.target;if(i instanceof HTMLElement&&i.classList.contains("rae-location-suggestion")){let o=i.dataset.suggestion||i.textContent?.trim(),n=document.querySelectorAll(".rae-location-field[data-location-open='true']");for(let h of n){if(!(h instanceof HTMLElement)||!h.__raeOnSuggestionSelect||!o)continue;l.preventDefault(),h.__raeOnSuggestionSelect(o),delete h.dataset.locationOpen;let v=h.__raePortaledLocationSuggestions||h.querySelector(".rae-location-suggestions");v instanceof HTMLElement&&(v.style.display="none"),Z7(h);return}}t(l.target)},!0),document.addEventListener("keydown",l=>{let i=l.target;if(!(i instanceof HTMLElement)||!i.classList.contains("rae-location-suggestion"))return;let o=i.closest(".rae-location-suggestions"),n=o?Array.from(o.querySelectorAll(".rae-location-suggestion")):[],h=n.indexOf(i);if(l.key==="ArrowDown")l.preventDefault(),h<n.length-1&&n[h+1]instanceof HTMLElement&&n[h+1].focus();else if(l.key==="ArrowUp")if(l.preventDefault(),h>0&&n[h-1]instanceof HTMLElement)n[h-1].focus();else{let v=document.querySelector(".rae-location-field[data-location-open='true']");if(v instanceof HTMLElement){let u=v.querySelector("input");u instanceof HTMLInputElement&&u.focus()}}else if(l.key==="Enter"){l.preventDefault();let v=i.dataset.suggestion||i.textContent?.trim(),u=document.querySelectorAll(".rae-location-field[data-location-open='true']");for(let s of u){if(!(s instanceof HTMLElement)||!s.__raeOnSuggestionSelect||!v)continue;s.__raeOnSuggestionSelect(v),delete s.dataset.locationOpen;let p=s.__raePortaledLocationSuggestions||s.querySelector(".rae-location-suggestions");p instanceof HTMLElement&&(p.style.display="none"),Z7(s);let A=s.querySelector("input");A instanceof HTMLInputElement&&A.focus();return}}else if(l.key==="Escape"||l.key==="Tab"){l.preventDefault();let v=document.querySelectorAll(".rae-location-field[data-location-open='true']");for(let u of v){if(!(u instanceof HTMLElement))continue;delete u.dataset.locationOpen;let s=u.__raePortaledLocationSuggestions||u.querySelector(".rae-location-suggestions");s instanceof HTMLElement&&(s.style.display="none"),Z7(u);let p=u.querySelector("input");p instanceof HTMLInputElement&&p.focus();return}}},!0),document.addEventListener("input",l=>{let i=l.target;if(!(i instanceof HTMLElement))return;let o=i.closest(".rae-location-field");o instanceof HTMLElement&&o.dataset.locationOpen==="true"&&window.requestAnimationFrame(()=>{let n=Ze(o);n instanceof HTMLElement&&(n.style.display="block"),xe(o),b5(o)})},!0),new MutationObserver(()=>{document.querySelectorAll(".rae-location-field[data-location-open='true']").forEach(l=>{if(!(l instanceof HTMLElement))return;let i=Ze(l);i instanceof HTMLElement&&(i.style.display="block"),xe(l),b5(l)})}).observe(document.body,{childList:!0,subtree:!0}),window.addEventListener("resize",()=>{document.querySelectorAll(".rae-location-field[data-location-open='true']").forEach(l=>{b5(l)})},{passive:!0}),document.addEventListener("scroll",()=>{document.querySelectorAll(".rae-location-field[data-location-open='true']").forEach(l=>{b5(l)})},!0)}if(typeof document<"u"&&!window.__raeBusyOverlayBound){window.__raeBusyOverlayBound=!0;let t=[".rae-loading-overlay",".rae-loading-state",".rae-modal__loading",".rae-spinner-overlay",".rae-submit-overlay","[aria-busy='true']"].join(", "),r=()=>{document.querySelectorAll(".rae-modal").forEach(i=>{if(!(i instanceof HTMLElement))return;i.matches("[aria-busy='true']")||!!i.querySelector(t)||!!i.querySelector(".rae-modal__body [role='progressbar']")?i.dataset.busyOverlay="true":delete i.dataset.busyOverlay})};new MutationObserver(()=>r()).observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class","style","aria-busy"]}),window.requestAnimationFrame(()=>r())}typeof document<"u"&&!window.__raeValidationScrollBound&&(window.__raeValidationScrollBound=!0);if(typeof document<"u"&&!window.__raeLocationPortalBridgeBound){window.__raeLocationPortalBridgeBound=!0;let t=document.createElement("div");t.className="rae-location-portal-overlay",t.hidden=!0,document.body.appendChild(t);let r=null,l=null,i=A=>A instanceof HTMLElement?A.__raePortaledLocationSuggestions||A.querySelector(".rae-location-suggestions"):null,o=(A,M)=>{let H=i(A);H instanceof HTMLElement&&(H.style.visibility=M?"hidden":"",H.style.pointerEvents=M?"none":"")},n=()=>{r&&o(r,!1),r=null,t.hidden=!0,t.innerHTML=""},h=(A,M)=>{let H=A.querySelector("input");if(!(H instanceof HTMLElement)||!(M instanceof HTMLElement))return;let Z=H.getBoundingClientRect(),L=window.innerHeight||document.documentElement.clientHeight||0,w=window.innerWidth||document.documentElement.clientWidth||0,m=12,V=4,x=Math.min(M.scrollHeight||240,280),z=L-Z.bottom-m,B=Z.top-m,S=z<Math.min(x,180)&&B>z,$=Math.max(120,Math.min(x,S?B:z)),y=Math.min(Z.width,w-m*2),O=Math.min(Math.max(m,Z.left),w-y-m),T=S?Math.max(m,Z.top-$-V):Math.max(m,Z.bottom+V);t.style.left=`${O}px`,t.style.top=`${T}px`,t.style.width=`${y}px`,t.style.maxHeight=`${$}px`},v=()=>{if(!(r instanceof HTMLElement))return n();let A=i(r);if(!(A instanceof HTMLElement))return n();let M=Array.from(A.children).filter(H=>H instanceof HTMLElement);if(!M.length)return n();o(r,!0),t.innerHTML="",M.forEach((H,Z)=>{let L=H.cloneNode(!0);L instanceof HTMLElement&&(L.dataset.portalIndex=String(Z),t.appendChild(L))}),h(r,A),t.hidden=!1},u=()=>{l&&window.clearTimeout(l),l=window.setTimeout(()=>{l=null,v()},0)},s=A=>{A instanceof HTMLElement&&(r=A,u())};document.addEventListener("input",A=>{let M=A.target instanceof HTMLElement?A.target.closest(".rae-location-field"):null;M instanceof HTMLElement&&s(M)},!0),document.addEventListener("focusin",A=>{let M=A.target instanceof HTMLElement?A.target:null,H=M?.closest?.(".rae-location-field");if(H instanceof HTMLElement){s(H);return}t.contains(M)||n()},!0),document.addEventListener("pointerdown",A=>{let M=A.target instanceof HTMLElement?A.target:null;if(t.contains(M)){let Z=M?.closest?.("[data-portal-index]"),L=i(r);if(Z instanceof HTMLElement&&L instanceof HTMLElement){let w=Number(Z.dataset.portalIndex),m=L.children[w];m instanceof HTMLElement&&(m.dispatchEvent(new MouseEvent("mousedown",{bubbles:!0})),m.dispatchEvent(new MouseEvent("click",{bubbles:!0})))}n();return}let H=M?.closest?.(".rae-location-field");if(H instanceof HTMLElement){s(H);return}n()},!0),new MutationObserver(()=>{r&&u()}).observe(document.body,{childList:!0,subtree:!0}),window.addEventListener("resize",()=>u(),{passive:!0}),document.addEventListener("scroll",()=>u(),!0)}var p1=E(Gt(),1),u0=E(I(),1);var O0=E(I(),1);function e6(t){return t.formGroupName||t.masterApplyFields.fieldNameForApply}function Vg(t,r){return t.find(l=>e6(l)===r||l.masterApplyFields.fieldNameForApply===r)}function Pe(t){return String(t||"").replace(/\D+/g,"")}function mg(t){let r=Pe(t);return r?`+${r}`:""}function Mg(t){if(!t)return t;let r=t instanceof Date?t:new Date(t);if(Number.isNaN(r.getTime()))return t;let l=r.getFullYear(),i=String(r.getMonth()+1).padStart(2,"0"),o=String(r.getDate()).padStart(2,"0");return`${l}-${i}-${o}`}function uA(t,r){let l={...t};return r.forEach(i=>{let o=e6(i);i.fieldType==="date"&&l[o]&&(l[o]=Mg(l[o]))}),Object.entries(l).forEach(([i,o])=>{if(i!=="dateOfBirth"&&o){let n=new Date(o);!Number.isNaN(n.getTime())&&String(o).match(/\d{4}-\d{2}-\d{2}|T\d{2}:/)&&(l[i]=Mg(o))}}),l}function fg(t){return{...t,recruiterUploads:t.editProfile||t.recruiterUploads}}function Se(t,r,l,i){return c2(t)?null:W8(fg(t),r,l.map(fg),i)}function Be(t,r,l){let i={};return t.forEach(o=>{let n=e6(o);if(!n)return;let h=Se(o,l[n],r,l);h&&(i[n]=h)}),Object.assign(i,q8(t,l)),i}function sA(t,r,l,i){let o={...i},n=Vg(r,t);return n?.dependentFieldsName&&[...new Set(K2(n.dependentFieldsName))].forEach(v=>{let u=r.find(A=>A.masterApplyFields.fieldNameForApply===v);if(!u)return;let s=e6(u);if(!h2(v,r,l)){delete o[s];return}let p=Se(u,l[s],r,l);p?o[s]=p:delete o[s]}),o}function x7(t){return{countryIsoCode:t?.countryIsoCode||"IN",whatsAppEnabled:!!t?.whatsAppEnabled,maxCount:t?.maxCount||3}}function Ag(t,r){return O6(t)?.iso2||r||"IN"}function Zg(t,r,l=!1){let i=mg(t?.countryCode||r),o=Pe(t?.number||t?.phoneNoWithoutCountryCode||"");return{phoneType:t?.phoneType||"Home",phoneNumField:o?{nationalNumber:o,number:o,dialCode:i,e164Number:`${i}${o}`}:null,whatsAppEnabled:t?.whatsappEnabled??t?.whatsAppEnabled??l}}function pA(t,r,l,i){let o=x7(r),n=[],h=1;return t.forEach(v=>{if(v.fieldType!=="phone"){n.push({...v});return}let u=[...l||[]].sort((s,p)=>+!!p.primary-+!!s.primary);if(!u.length){let s=`phoneField${h}`;h+=1,n.push({...v,formGroupName:s,selectedCountryCode:Ag(i?.countryCode,o.countryIsoCode),primaryPhoneNumber:!0});return}u.forEach((s,p)=>{let A=`phoneField${h}`;h+=1,n.push({...v,editProfile:p===0?v.editProfile:"Non Mandatory",formGroupName:A,selectedCountryCode:Ag(s.countryCode,o.countryIsoCode),primaryPhoneNumber:!!s.primary})})}),n}function HA(t,r){let l={},i=r.applyFieldsObject||{},o=[...r.phoneNumbers||[]].sort((v,u)=>+!!u.primary-+!!v.primary),n=x7(r.phoneConfiguration),h=0;return t.forEach(v=>{let u=v.masterApplyFields.fieldNameForApply,s=e6(v);if(!(!u||u==="uploadResume")){if(v.fieldType==="phone"){let p=o[h];h+=1,l[s]=Zg(p||{number:i.phoneNoWithoutCountryCode||i.phoneNo,countryCode:i.countryCode,phoneType:"Home",whatsappEnabled:n.whatsAppEnabled},n.countryIsoCode,n.whatsAppEnabled);return}if(v.fieldType==="checkbox"||c2(v)){l[s]=!!i[u];return}l[s]=i[u]??""}}),l}function MA(t,r,l){return t.filter(i=>i.fieldType==="phone").map(i=>({field:i,phoneValue:r[i.formGroupName||"phoneField1"]})).filter(i=>!!i.phoneValue?.phoneNumField).map(({field:i,phoneValue:o})=>({phoneType:o.phoneType,associatedEntityType:"CANDIDATE",associatedEntityId:l,primary:!!i.primaryPhoneNumber,whatsappEnabled:!!o.whatsAppEnabled,countryCode:mg(o.phoneNumField?.dialCode),number:Pe(o.phoneNumField?.nationalNumber||o.phoneNumField?.number)}))}function fA(t){let r=uA(t.values,t.fields),l={...r};t.fields.filter(h=>h.fieldType==="phone").forEach(h=>{delete l[h.formGroupName||"phoneField1"]});let i=MA(t.fields,r,t.context.applyId),o=i.find(h=>h.primary),n={...t.initialization.jobApplication||{}};if(Object.keys(l).forEach(h=>{Object.prototype.hasOwnProperty.call(n,h)&&(n[h]=l[h])}),o){let h=`${o.countryCode||""}${o.number||""}`;n.phoneNo=h,n.primaryNumWithoutCC=o.number||"",n.countryCode=o.countryCode||"",l.phoneNo=h,l.phoneNoWithoutCountryCode=o.number||"",l.countryCode=o.countryCode||""}return{additionalFieldsMapObject:JSON.stringify({}),applyFieldsObject:JSON.stringify(l),fName:String(l.firstName||""),lName:String(l.lastName||""),jobApplication:n,contactInformation:i}}function xg(t){let[r,l]=(0,O0.useState)(null),[i,o]=(0,O0.useState)([]),[n,h]=(0,O0.useState)({}),[v,u]=(0,O0.useState)(!1),[s,p]=(0,O0.useState)(!1),[A,M]=(0,O0.useState)({}),[H,Z]=(0,O0.useState)(!1);(0,O0.useEffect)(()=>{if(!t.open)return;let y=!1;return u(!0),t.api.loadInitialData(t.context).then(O=>{if(y)return;let T=pA(O.applyFields||[],O.phoneConfiguration,O.phoneNumbers||[],O.applyFieldsObject||{});l(O),o(T),h(HA(T,O)),M({}),Z(!1)}).finally(()=>{y||u(!1)}),()=>{y=!0}},[t.api,t.context,t.open]);let L=(0,O0.useMemo)(()=>i.filter(y=>{let O=y.masterApplyFields.fieldNameForApply;return O&&O!=="uploadResume"&&!c2(y)&&h2(O,i,n)}),[i,n]),w=(0,O0.useMemo)(()=>i.filter(y=>y.fieldType==="phone"),[i]),m=!!(r&&w.length<x7(r.phoneConfiguration).maxCount),V=!v&&!s;(0,O0.useEffect)(()=>{let y=new Set(L.map(O=>e6(O)).filter(Boolean));M(O=>{let T={};return Object.entries(O).forEach(([D,k])=>{y.has(D)&&(T[D]=k)}),H?{...T,...Be(L,i,n)}:T})},[i,n,H,L]);function x(y,O){let T={...n,[y]:O};if(y==="dateOfBirth"){let D=M7(String(O));D!=null&&"agee"in T&&(T.agee=D)}h(T),M(D=>{let k={...D};delete k[y];let W=sA(y,i,T,k);return H?{...W,...Be(i.filter(G=>{let R=G.masterApplyFields.fieldNameForApply;return R&&R!=="uploadResume"&&!c2(G)&&h2(R,i,T)}),i,T)}:W})}function z(y){let O=Vg(i,y);if(!O)return;let T=e6(O),D={...n};if(!h2(O.masterApplyFields.fieldNameForApply,i,D)){M(W=>{let G={...W};return delete G[T],G});return}let k=Se(O,D[T],i,D);M(W=>{let G={...W};return k?G[T]=k:delete G[T],Object.assign(G,q8(L,D)),G})}function B(y){if(!r||!m)return;let T=`phoneField${w.length+1}`,D=x7(r.phoneConfiguration),k={...y,editProfile:"Non Mandatory",formGroupName:T,selectedCountryCode:D.countryIsoCode,primaryPhoneNumber:!1},W=i.indexOf(y);o(G=>[...G.slice(0,W+1),k,...G.slice(W+1)]),h(G=>({...G,[T]:Zg(null,D.countryIsoCode,D.whatsAppEnabled)}))}function S(y){if(y.primaryPhoneNumber)return;let O=e6(y);o(T=>T.filter(D=>D!==y)),h(T=>{let D={...T};return delete D[O],D})}async function $(){if(!r)return null;Z(!0);let y=Be(L,i,n);if(Object.keys(y).length>0)return M(O=>({...O,...y})),null;p(!0);try{let O=fA({fields:i,values:n,initialization:r,context:t.context});return await t.api.submitProfile(O,t.context)}finally{p(!1)}}return{initialization:r,fields:i,formValues:n,isInitializing:v,isSubmitting:s,errors:A,canSubmit:V,canAddMorePhoneFields:m,phoneFieldCount:w.length,setFieldValue:x,validateField:z,submit:$,getVisibleFields(){return L},getDropdownOptions(y,O){return f7(Gv(y),O)},addPhoneField:B,removePhoneField:S}}var wg=E(ea(),1);function Lg(t){return M4({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M363 277h-86v86h-42v-86h-86v-42h86v-86h42v86h86v42z"},child:[]},{tag:"path",attr:{d:"M256 90c44.3 0 86 17.3 117.4 48.6C404.7 170 422 211.7 422 256s-17.3 86-48.6 117.4C342 404.7 300.3 422 256 422c-44.3 0-86-17.3-117.4-48.6C107.3 342 90 300.3 90 256c0-44.3 17.3-86 48.6-117.4C170 107.3 211.7 90 256 90m0-42C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48z"},child:[]}]})(t)}var Bg=E(Gt(),1);function AA(t){let r=t||{},l=r.responseCode??r.code,i=typeof l=="number"?l:void 0,o=typeof r.reponseObject=="string"&&r.reponseObject||typeof r.message=="string"&&r.message||typeof r.errorMessage=="string"&&r.errorMessage||"Something went wrong, Please try again!";return i===void 0||i===200?{isSuccess:!0,toast:{kind:"success",message:o==="Something went wrong, Please try again!"?"Profile updated successfully":o}}:{isSuccess:!1,toast:{kind:i===403||i===500?"warning":"error",message:o}}}function VA(t){t instanceof HTMLElement&&window.setTimeout(()=>{let r=t.querySelector(".rae-field-error");if(!(r instanceof HTMLElement))return;let l=r.closest(".rae-field")||r;if(!(l instanceof HTMLElement))return;let i=t.querySelector(".rae-modal__body--expanded")||t.querySelector(".rae-modal__body");if(i instanceof HTMLElement){let n=l.getBoundingClientRect(),h=i.getBoundingClientRect(),v=n.top-h.top+i.scrollTop-80;i.scrollTo({top:Math.max(0,v),behavior:"smooth"})}else l.scrollIntoView({behavior:"smooth",block:"center"});let o=l.querySelector("input, button, textarea, [role='combobox'], [role='button']");o instanceof HTMLElement&&o.focus({preventScroll:!0})},100)}function Cg(t){let r=xg({open:t.open,api:t.api,context:t.context}),l=(0,u0.useRef)(null),[i,o]=(0,u0.useState)(null),[n,h]=(0,u0.useState)({}),[v,u]=(0,u0.useState)({}),[s,p]=(0,u0.useState)({}),A=(0,u0.useRef)({}),M=(0,u0.useRef)({}),H=(0,u0.useId)();if((0,u0.useEffect)(()=>{if(!i)return;let V=window.setTimeout(()=>o(null),4500);return()=>window.clearTimeout(V)},[i]),(0,u0.useEffect)(()=>()=>{Object.values(M.current).forEach(V=>window.clearTimeout(V))},[]),(0,u0.useEffect)(()=>{p(V=>{let x={...V};return r.fields.forEach(z=>{let B=$5(z);if(!B||!z.masterApplyFields.maskable)return;let S=r.formValues[B],$=S!=null&&String(S).trim()!=="";x[B]=$?x[B]??!0:!1}),x})},[r.fields,r.formValues]),!t.open)return null;function Z(V,x){if(r.setFieldValue(V,x),!t.api.getLocationSuggestions){h(z=>({...z,[V]:[]}));return}if(M.current[V]&&window.clearTimeout(M.current[V]),!x.trim()){h(z=>({...z,[V]:[]})),u(z=>({...z,[V]:!1}));return}M.current[V]=window.setTimeout(async()=>{let z=(A.current[V]||0)+1;A.current[V]=z,u(B=>({...B,[V]:!0}));try{let B=await t.api.getLocationSuggestions?.(x,t.context);if(A.current[V]!==z)return;h(S=>({...S,[V]:B||[]}))}catch{if(A.current[V]!==z)return;h(B=>({...B,[V]:[]}))}finally{A.current[V]===z&&u(B=>({...B,[V]:!1}))}},250)}function L(V,x){r.setFieldValue(V,x),h(z=>({...z,[V]:[]})),u(z=>({...z,[V]:!1}))}async function w(){o(null);try{let V=await r.submit();if(!V){VA(l.current);return}let x=AA(V);t.showSubmitToast!==!1&&o(x.toast),x.isSuccess&&t.onSuccess?.(V)}catch(V){t.showSubmitToast!==!1&&o({kind:"error",message:V instanceof Error&&V.message?V.message:"Something went wrong, Please try again!"})}}let m=[...r.getVisibleFields().filter(V=>V.fieldType!=="checkbox"),...r.getVisibleFields().filter(V=>V.fieldType==="checkbox")];return(0,p1.jsxs)(c7,{open:t.open,onClose:()=>{},className:"rae-overlay",children:[(0,p1.jsx)("div",{className:"rae-overlay__backdrop","aria-hidden":"true"}),(0,p1.jsx)("div",{className:"rae-overlay__viewport",children:(0,p1.jsxs)(C5,{ref:l,className:`rae-modal ${r.isInitializing?"rae-modal--edit-loading":"rae-modal--expanded"} rae-modal--edit-profile`,children:[i?(0,p1.jsxs)("div",{className:`rae-toast rae-toast--${i.kind}`,role:"status","aria-live":"polite",children:[(0,p1.jsx)("span",{children:i.message}),(0,p1.jsx)("button",{type:"button",className:"rae-toast__close",onClick:()=>o(null),"aria-label":"Dismiss notification",children:(0,p1.jsx)(Y8,{})})]}):null,r.isSubmitting?(0,p1.jsxs)("div",{className:"rae-loader-overlay","aria-live":"polite","aria-busy":"true",children:[(0,p1.jsx)(X8,{}),(0,p1.jsx)("p",{className:"rae-loader-text",children:"Saving profile changes..."})]}):null,(0,p1.jsxs)("div",{className:"rae-modal__header",children:[(0,p1.jsx)(w5,{as:"div",className:"rae-modal__title",children:t.title||"Edit Profile"}),(0,p1.jsx)("button",{type:"button",className:"rae-icon-button",onClick:t.onClose,"aria-label":"Close edit profile modal",children:(0,p1.jsx)(Y8,{})})]}),r.isInitializing?(0,p1.jsx)("div",{className:"rae-modal__body rae-modal__body--loading",children:(0,p1.jsx)("div",{className:"rae-inline-loader","aria-live":"polite","aria-busy":"true",children:(0,p1.jsx)(X8,{})})}):(0,p1.jsx)("div",{className:"rae-modal__body rae-modal__body--expanded",children:(0,p1.jsx)("section",{className:"rae-section rae-section--edit-profile",children:(0,p1.jsx)("div",{className:"rae-form-grid",children:m.map(V=>{let x=$5(V),z=r.formValues[x],B=r.errors[x],S=V.fieldType==="checkbox",$=V.editProfile==="Mandatory",y=`${H}-field-${x}`,O=!!(V.masterApplyFields.maskable&&z&&V.fieldType!=="location"&&V.fieldType!=="date"&&V.fieldType!=="phone"&&V.fieldType!=="checkbox"&&V.fieldType!=="D"),T=!!(O&&s[x]);return(0,p1.jsxs)("div",{className:`rae-field ${S?"rae-field--checkbox":""}${B?" rae-field--invalid":""}`,onBlur:D=>{D.currentTarget.contains(D.relatedTarget)||r.validateField(x)},children:[S?null:(0,p1.jsxs)("label",{htmlFor:y,className:"rae-field-label",children:[V.recruiterUploadsLabel,$?(0,p1.jsx)("span",{children:"*"}):null,V.fieldType==="phone"&&V.primaryPhoneNumber?(0,p1.jsx)("span",{className:"rae-phone-primary-badge",children:"Primary"}):null]}),T?(0,p1.jsxs)("div",{className:"rae-mask-shell",children:[(0,p1.jsx)(l6,{id:y,name:x,value:H7(z),readOnly:!0,invalid:!!B}),(0,p1.jsx)("button",{type:"button",className:"rae-mask-toggle",onClick:()=>p(D=>({...D,[x]:!1})),children:"Show"})]}):(0,p1.jsxs)(u0.default.Fragment,{children:[we({field:V,value:z,error:B,inputId:y,inputName:x,readOnly:V.masterApplyFields.fieldNameForApply==="emailId",onChange:D=>r.setFieldValue(x,D),onBlur:()=>r.validateField(x),getDropdownOptions:r.getDropdownOptions,onAddPhoneField:r.addPhoneField,onRemovePhoneField:r.removePhoneField,canAddMorePhoneFields:r.canAddMorePhoneFields,phoneFieldCount:r.phoneFieldCount,locationSuggestions:n[x]||[],isLoadingLocationSuggestions:!!v[x],onLocationInput:D=>Z(x,D),onLocationSuggestionSelect:D=>L(x,D)}),O?(0,p1.jsx)("button",{type:"button",className:"rae-mask-toggle rae-mask-toggle--inline",onClick:()=>p(D=>({...D,[x]:!0})),children:"Hide"}):null]}),B?(0,p1.jsx)("div",{className:"rae-field-error",children:B}):null]},x)})})})}),r.isInitializing?null:(0,p1.jsxs)("div",{className:"rae-modal__footer",children:[(0,p1.jsx)("div",{className:"rae-footer__left"}),(0,p1.jsxs)("div",{className:"rae-footer__actions",children:[(0,p1.jsx)("button",{type:"button",className:"rae-button rae-button--ghost",onClick:t.onClose,children:"Cancel"}),(0,p1.jsx)("button",{type:"button",className:"rae-button rae-button--primary",onClick:()=>{w()},disabled:!r.canSubmit,children:r.isSubmitting?"Saving...":"Save Changes"})]})]})]})})]})}function zg(){if(typeof document>"u")return;let t=[".rae-phone-add-button",".rae-phone-field__add",".rae-phone-action--add",".rae-phone-inline__add"].join(", "),r=new Set;document.querySelectorAll(t).forEach(l=>r.add(l)),document.querySelectorAll(".rae-modal *").forEach(l=>{if(!(l instanceof HTMLElement)||l.children.length>0||(l.textContent||"").trim()!=="+")return;let i=l.closest(".rae-field")||l.closest("[class*='phone']")||l.parentElement;String(i?.textContent||"").toLowerCase().includes("phone")&&r.add(l)}),r.forEach(l=>{if(!(l instanceof HTMLElement)||l.dataset.raePhoneIconMounted==="true")return;l.dataset.raePhoneIconMounted="true",l.classList.add("rae-phone-add-button"),l.textContent="";let i=document.createElement("span");i.className="rae-phone-add-icon",l.appendChild(i),(0,wg.createRoot)(i).render((0,Bg.jsx)(Lg,{"aria-hidden":"true",focusable:"false"}))})}function L7(t){if(!(t instanceof HTMLElement))return;document.querySelectorAll('.rae-select[data-overlay-active="true"], .rae-searchable-select[data-overlay-active="true"]').forEach(m=>{m instanceof HTMLElement&&m!==t&&delete m.dataset.overlayActive});let r=t.querySelector('button[aria-expanded="true"]')||t.querySelector("button"),l=t.querySelector(".rae-select-options")||t.querySelector(".rae-searchable-select__options");if(!(r instanceof HTMLElement)||!(l instanceof HTMLElement))return;let i=r.getBoundingClientRect(),o=window.innerHeight||document.documentElement.clientHeight||0,n=window.innerWidth||document.documentElement.clientWidth||0,h=4,v=12,u=Math.min(l.scrollHeight||240,280),s=o-i.bottom-v,p=i.top-v,A=s<Math.min(u,180)&&p>s,M=Math.max(140,Math.min(u,A?p:s)),H=Math.min(i.width,n-v*2),Z=Math.min(Math.max(v,i.left),n-H-v),L=A?Math.max(v,i.top-M-h):Math.max(v,i.bottom+h),w=t.closest(".rae-field");document.querySelectorAll('.rae-field[data-overlay-active="true"]').forEach(m=>{m instanceof HTMLElement&&m!==w&&delete m.dataset.overlayActive}),t.dataset.overlayActive="true",w instanceof HTMLElement&&(w.dataset.overlayActive="true"),l.dataset.overlayOpen="true",l.style.setProperty("--rae-overlay-top",`${L}px`),l.style.setProperty("--rae-overlay-left",`${Z}px`),l.style.setProperty("--rae-overlay-width",`${H}px`),l.style.setProperty("--rae-overlay-max-height",`${M}px`)}function mA(t){if(!(t instanceof HTMLElement))return;delete t.dataset.overlayActive;let r=t.closest(".rae-field");r instanceof HTMLElement&&delete r.dataset.overlayActive;let l=t.querySelector(".rae-select-options")||t.querySelector(".rae-searchable-select__options");l instanceof HTMLElement&&(delete l.dataset.overlayOpen,l.style.removeProperty("--rae-overlay-top"),l.style.removeProperty("--rae-overlay-left"),l.style.removeProperty("--rae-overlay-width"),l.style.removeProperty("--rae-overlay-max-height"))}function O5(t){if(!(t instanceof HTMLElement))return;let r=t.querySelector("input"),l=t.__raePortaledLocationSuggestions||t.querySelector(".rae-location-suggestions");if(!(r instanceof HTMLElement)||!(l instanceof HTMLElement))return;let i=r.getBoundingClientRect(),o=window.innerHeight||document.documentElement.clientHeight||0,n=window.innerWidth||document.documentElement.clientWidth||0,h=4,v=12,u=Math.min(l.scrollHeight||240,280),s=o-i.bottom-v,p=i.top-v,A=s<Math.min(u,180)&&p>s,M=Math.max(120,Math.min(u,A?p:s)),H=Math.min(i.width,n-v*2),Z=Math.min(Math.max(v,i.left),n-H-v),L=A?Math.max(v,i.top-M-h):Math.max(v,i.bottom+h);l.dataset.overlayOpen="true",l.style.setProperty("--rae-location-overlay-top",`${L}px`),l.style.setProperty("--rae-location-overlay-left",`${Z}px`),l.style.setProperty("--rae-location-overlay-width",`${H}px`),l.style.setProperty("--rae-location-overlay-max-height",`${M}px`)}function ZA(t){if(!(t instanceof HTMLElement))return;let r=t.__raePortaledLocationSuggestions||t.querySelector(".rae-location-suggestions");if(r instanceof HTMLElement){if(delete r.dataset.overlayOpen,r.style.removeProperty("--rae-location-overlay-top"),r.style.removeProperty("--rae-location-overlay-left"),r.style.removeProperty("--rae-location-overlay-width"),r.style.removeProperty("--rae-location-overlay-max-height"),t.__raeLocationOriginalParent instanceof HTMLElement){let l=t.__raeLocationOriginalParent,i=t.__raeLocationOriginalNextSibling||null;i&&i.parentNode===l?l.insertBefore(r,i):l.appendChild(r)}delete t.__raePortaledLocationSuggestions,delete t.__raeLocationOriginalParent,delete t.__raeLocationOriginalNextSibling}}function ye(t){if(!(t instanceof HTMLElement)||typeof document>"u")return;let r=t.__raePortaledLocationSuggestions;if(r instanceof HTMLElement&&r.isConnected&&r.parentElement===document.body)return r;let l=t.querySelector(".rae-location-suggestions");return l instanceof HTMLElement?(t.__raeLocationOriginalParent=l.parentElement,t.__raeLocationOriginalNextSibling=l.nextSibling,t.__raePortaledLocationSuggestions=l,document.body.appendChild(l),l):null}function be(t){if(!(t instanceof HTMLElement))return;let r=t.closest(".rae-modal__body--expanded")||t.closest(".rae-modal__body"),l=t.closest(".rae-modal")?.querySelector?.(".rae-modal__footer"),i=t.__raePortaledLocationSuggestions||t.querySelector(".rae-location-suggestions"),o=t.querySelector("input");if(!(r instanceof HTMLElement)||!(i instanceof HTMLElement)||!(o instanceof HTMLElement))return;let n=o.getBoundingClientRect(),h=r.getBoundingClientRect(),v=l instanceof HTMLElement?l.getBoundingClientRect():null,u=v?Math.min(h.bottom,v.top):h.bottom,s=Math.min(Math.max(i.scrollHeight||0,180),280),M=n.bottom+8+s-u;M>0&&(r.scrollTop+=M+12)}if(typeof document<"u"&&!window.__raeDropdownOverlayBound){window.__raeDropdownOverlayBound=!0;let t=r=>{let l=r?.closest?.(".rae-select, .rae-searchable-select");l instanceof HTMLElement&&window.requestAnimationFrame(()=>L7(l))};document.addEventListener("click",r=>{t(r.target),document.querySelectorAll(".rae-select, .rae-searchable-select").forEach(i=>{if(!(i instanceof HTMLElement))return;i.querySelector('button[aria-expanded="true"]')?L7(i):mA(i)})},!0),window.addEventListener("resize",()=>{document.querySelectorAll(".rae-select, .rae-searchable-select").forEach(r=>L7(r))},{passive:!0}),document.addEventListener("scroll",()=>{document.querySelectorAll(".rae-select, .rae-searchable-select").forEach(r=>L7(r))},!0)}typeof document<"u"&&!window.__raePhoneAddIconBound&&(window.__raePhoneAddIconBound=!0,new MutationObserver(()=>zg()).observe(document.body,{childList:!0,subtree:!0}),window.requestAnimationFrame(()=>zg()));if(typeof document<"u"&&!window.__raeLocationCloseBound){window.__raeLocationCloseBound=!0;let t=l=>{document.querySelectorAll(".rae-location-field").forEach(i=>{if(!(i instanceof HTMLElement))return;let o=l instanceof Node?i.contains(l):!1,n=i.__raePortaledLocationSuggestions||i.querySelector(".rae-location-suggestions");if(o){let v=ye(i);i.dataset.locationOpen="true";let u=v||i.__raePortaledLocationSuggestions||n;u instanceof HTMLElement&&(u.style.display="block"),window.requestAnimationFrame(()=>{be(i),O5(i)});return}delete i.dataset.locationOpen,n instanceof HTMLElement&&(n.style.display="none"),ZA(i);let h=i.querySelector("input");h instanceof HTMLInputElement&&document.activeElement===h&&h.blur()})};document.addEventListener("focusin",l=>{t(l.target)},!0),document.addEventListener("pointerdown",l=>{t(l.target)},!0),document.addEventListener("input",l=>{let i=l.target;if(!(i instanceof HTMLElement))return;let o=i.closest(".rae-location-field");o instanceof HTMLElement&&o.dataset.locationOpen==="true"&&window.requestAnimationFrame(()=>{let n=ye(o);n instanceof HTMLElement&&(n.style.display="block"),be(o),O5(o)})},!0),new MutationObserver(()=>{document.querySelectorAll(".rae-location-field[data-location-open='true']").forEach(l=>{if(!(l instanceof HTMLElement))return;let i=ye(l);i instanceof HTMLElement&&(i.style.display="block"),be(l),O5(l)})}).observe(document.body,{childList:!0,subtree:!0}),window.addEventListener("resize",()=>{document.querySelectorAll(".rae-location-field[data-location-open='true']").forEach(l=>{O5(l)})},{passive:!0}),document.addEventListener("scroll",()=>{document.querySelectorAll(".rae-location-field[data-location-open='true']").forEach(l=>{O5(l)})},!0)}typeof document<"u"&&!window.__raeValidationScrollBound&&(window.__raeValidationScrollBound=!0);function Pg(t,r){t.render(Te.default.createElement(pg,{open:!0,api:r.api,context:r.context,onClose:r.onClose||(()=>{}),onSuccess:r.onSuccess,showSubmitToast:r.showSubmitToast,title:r.title}))}function xA(t){let r=(0,$e.createRoot)(t.container);return Pg(r,t),{update(l){Pg(r,l)},unmount(){r.unmount()}}}function mS(t){let r=t.tagName||"apply-experience-add-profile";if(!customElements.get(r)){class l extends HTMLElement{connectedCallback(){this.__mountedWidget=xA({container:this,api:t.getApi(),context:t.getContext(),title:this.getAttribute("title")||void 0,onClose:t.onClose,onSuccess:t.onSuccess,showSubmitToast:t.showSubmitToast})}disconnectedCallback(){this.__mountedWidget?.unmount()}}customElements.define(r,l)}return r}function Sg(t,r){t.render(Te.default.createElement(Cg,{open:!0,api:r.api,context:r.context,onClose:r.onClose||(()=>{}),onSuccess:r.onSuccess,showSubmitToast:r.showSubmitToast,title:r.title}))}function LA(t){let r=(0,$e.createRoot)(t.container);return Sg(r,t),{update(l){Sg(r,l)},unmount(){r.unmount()}}}function ZS(t){let r=t.tagName||"apply-experience-edit-profile";if(!customElements.get(r)){class l extends HTMLElement{connectedCallback(){this.__mountedWidget=LA({container:this,api:t.getApi(),context:t.getContext(),title:this.getAttribute("title")||void 0,onClose:t.onClose,onSuccess:t.onSuccess,showSubmitToast:t.showSubmitToast})}disconnectedCallback(){this.__mountedWidget?.unmount()}}customElements.define(r,l)}return r}export{xA as mountAddProfile,LA as mountEditProfile,mS as registerAddProfileElement,ZS as registerEditProfileElement};