(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,909005,e=>{"use strict";var t=e.i(16043),r=e.i(807257),n=e.i(976987),l=e.i(643668),o=e.i(82153),u=e.i(195845),i=e.i(815922),c=e.i(533124),s=e.i(221271),f=e.i(906793),a=e.i(792343),d=e.i(997932),g=e.i(223732),h=e.i(984876),p=e.i(393298),v=e.i(227012),m=e.i(189351),b=e.i(610465),y=e.i(516358),w=e.i(969424),k=e.i(132887),R=e.i(843753),x=e.i(227091),E=e.i(16739),T=e.i(591099),M=e.i(134574);let C="data-base-ui-inert",S=new WeakMap,I=new WeakSet,P=new WeakMap,A=0,O=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=function e(t){return t?(0,r.R)(t)?t.host:e(t.parentNode):null}(t);return e.contains(n)?n:null}).filter(e=>null!=e),W=e=>{let t=new Set;return e.forEach(e=>{let r=e;for(;r&&!t.has(r);)t.add(r),r=r.parentNode}),t},L=(e,t,n)=>{let l=[],o=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{"script"!==(0,r.A)(e)&&(t.has(e)?o(e):l.push(e))})};return o(e),l};function Y(e,t={}){let{ariaHidden:r=!1,mark:n=!0}=t,l=(0,d.f)(e[0]).body;return function(e,t,r,{mark:n=!0}){let l=O(t,e),o=n?L(t,W(l),new Set(l)):[],u=[],i=[];if(r){let e=O(t,Array.from(t.querySelectorAll("[aria-live]"))),r=l.concat(e);L(t,W(r),new Set(r)).forEach(e=>{let t=e.getAttribute("aria-hidden"),r=null!==t&&"false"!==t,n=(S.get(e)||0)+1;S.set(e,n),u.push(e),1===n&&r&&I.add(e),r||e.setAttribute("aria-hidden","true")})}return n&&o.forEach(e=>{let t=(P.get(e)||0)+1;P.set(e,t),i.push(e),1===t&&e.setAttribute(C,"")}),A+=1,()=>{u.forEach(e=>{let t=(S.get(e)||0)-1;S.set(e,t),t||(I.has(e)||e.removeAttribute("aria-hidden"),I.delete(e))}),n&&i.forEach(e=>{let t=(P.get(e)||0)-1;P.set(e,t),t||e.removeAttribute(C)}),(A-=1)||(S=new WeakMap,I=new WeakSet,P=new WeakMap)}}(e,l,r,{mark:n})}var F=e.i(432897),B=e.i(779766),D=e.i(510043),K=e.i(639662),N=e.i(659350);let $=[];function U(){$=$.filter(e=>e.deref()?.isConnected)}function q(e){U(),e&&"body"!==(0,r.A)(e)&&($.push(new WeakRef(e)),$.length>20&&($=$.slice(-20)))}function j(){return U(),$[$.length-1]?.deref()}function H(e){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!e.getAttribute("role")?.includes("dialog"))return;let t=(0,b.J)(e).filter(e=>{let t=e.getAttribute("data-tabindex")||"";return(0,b.m)(e)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),r=e.getAttribute("tabindex");0===t.length?"0"!==r&&(e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")):("-1"!==r||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}e.s(["f",0,function(e){let{context:C,children:S,disabled:I=!1,initialFocus:P=!0,returnFocus:A=!0,explicitReturnFocus:O,restoreFocus:W=!1,modal:L=!0,closeOnFocusOut:$=!0,openInteractionType:X="",nextFocusableElement:G,previousFocusableElement:z,beforeContentFocusGuardRef:J,externalTree:V,getInsideElements:Z}=e,Q=C.useState("open"),_=C.useState("domReferenceElement"),ee=C.useState("floatingElement"),{events:et,dataRef:er}=C.context,en=(0,i.f)(()=>er.current.floatingContext?.nodeId),el=(0,v.J)(_)&&!1===P,eo=(0,u.f)(P),eu=(0,u.f)(A),ei=(0,u.f)(O),ec=(0,u.f)(X),es=(0,u.f)(Q),ef=(0,B.$)(V),ea=(0,F.M)(),ed=t.useRef(!1),eg=t.useRef(!1),eh=t.useRef(!1),ep=t.useRef(null),ev=t.useRef(""),em=t.useRef(""),eb=t.useRef(null),ey=t.useRef(null),ew=(0,o.A)(eb,J,ea?.beforeInsideRef),ek=(0,o.A)(ey,ea?.afterInsideRef),eR=(0,s.e)(),ex=(0,s.e)(),eE=(0,a.z)(),eT=null!=ea,eM=(0,v.G)(ee),eC=(0,i.f)((e=eM)=>e?(0,b.T)(e):[]),eS=(0,i.f)(()=>Z?.().filter(e=>null!=e)??[]);t.useEffect(()=>{if(I||!L)return;let e=(0,d.f)(eM);return(0,n.f)(e,"keydown",function(e){"Tab"===e.key&&(0,p.I)(eM,(0,p.T)((0,d.f)(eM)))&&0===eC().length&&!el&&(0,m.Y)(e)})},[I,eM,L,el,eC]),t.useEffect(()=>{if(I||!Q)return;let e=(0,d.f)(eM);function t(){eh.current=!1}return(0,l.f)((0,n.f)(e,"pointerdown",function(e){let t=(0,p.Z)(e),r=eS();eh.current=!((0,p.I)(ee,t)||(0,p.I)(_,t)||(0,p.I)(ea?.portalNode,t)||r.some(e=>e===t||(0,p.I)(e,t))),em.current=e.pointerType||"keyboard",(0,p.h)(t,`[${D.j}]`)&&(eg.current=!0,ex.start(0,()=>{eg.current=!1}))},!0),(0,n.f)(e,"pointerup",t,!0),(0,n.f)(e,"pointercancel",t,!0),(0,n.f)(e,"keydown",function(){em.current="keyboard"},!0),t)},[I,ee,_,eM,Q,ea,ex,eS]),t.useEffect(()=>{if(I||!$)return;let e=(0,d.f)(eM);function t(t){let n=t.relatedTarget,l=t.currentTarget,o=(0,p.Z)(t);L&&null==n&&null!=o&&(0,p.I)(ee,o)&&q(o),queueMicrotask(()=>{let u=en(),i=C.context.triggerElements,c=eS(),s=n?.hasAttribute((0,T.f)("focus-guard"))&&[eb.current,ey.current,ea?.beforeInsideRef.current,ea?.afterInsideRef.current,ea?.beforeOutsideRef.current,ea?.afterOutsideRef.current,(0,K.f)(z),(0,K.f)(G)].includes(n),f=!((0,p.I)(_,n)||(0,p.I)(ee,n)||(0,p.I)(n,ee)||(0,p.I)(ea?.portalNode,n)||c.some(e=>e===n||(0,p.I)(e,n))||i.hasMatchingElement(e=>(0,p.I)(e,n))||s||ef&&((0,y.Q)(ef.nodesRef.current,u).find(e=>(0,p.I)(e.context?.elements.floating,n)||(0,p.I)(e.context?.elements.domReference,n))||(0,y.V)(ef.nodesRef.current,u).find(e=>[e.context?.elements.floating,(0,v.G)(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(l===_&&eM&&H(eM),W&&l!==_&&!(0,w.v)(o)&&(0,p.T)(e)===e.body){if((0,r.E)(eM)&&(eM.focus(),"popup"===W))return void eE.request(()=>{eM.focus()});let e=eC(),t=ep.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||eM;(0,r.E)(n)&&n.focus()}if(er.current.insideReactTree){er.current.insideReactTree=!1;return}(el||!L)&&n&&f&&!eg.current&&(el||n!==j())&&(ed.current=!0,C.setOpen(!1,(0,k.j)(R.f.focusOut,t)))})}let o=(0,r.E)(_)?_:null;if(ee||o)return(0,l.f)(o&&(0,n.f)(o,"focusout",t),o&&(0,n.f)(o,"pointerdown",function(){eg.current=!0,ex.start(0,()=>{eg.current=!1})}),ee&&(0,n.f)(ee,"focusin",function(e){let t=(0,p.Z)(e);(0,b.m)(t)&&(ep.current=t)}),ee&&(0,n.f)(ee,"focusout",t),ee&&ea&&(0,n.f)(ee,"focusout",function(){eh.current||(er.current.insideReactTree=!0,eR.start(0,()=>{er.current.insideReactTree=!1}))},!0))},[I,_,ee,eM,L,ef,ea,C,$,W,eC,el,en,er,eR,ex,eE,G,z,eS]),t.useEffect(()=>{if(I||!ee||!Q)return;let e=Array.from(ea?.portalNode?.querySelectorAll(`[${(0,T.f)("portal")}]`)||[]),t=ef?(0,y.V)(ef.nodesRef.current,en()):[],r=t.find(e=>(0,v.J)(e.context?.elements.domReference||null))?.context?.elements.domReference,n=Y([ee,...e,eb.current,ey.current,ea?.beforeOutsideRef.current,ea?.afterOutsideRef.current,...eS(),r,(0,K.f)(z),(0,K.f)(G),el?_:null].filter(e=>null!=e),{ariaHidden:L||el,mark:!1}),l=Y([ee,...e].filter(e=>null!=e));return()=>{l(),n()}},[Q,I,_,ee,L,ea,el,ef,en,G,z,eS]),(0,c.f)(()=>{if(!Q||I||!(0,r.E)(eM))return;ev.current="",em.current="";let e=(0,d.f)(eM),t=(0,p.T)(e);queueMicrotask(()=>{let r,n=eo.current,l="function"==typeof n?n(ec.current||""):n;if(void 0===l||!1===l||(0,p.I)(eM,t))return;let o=null,u=()=>(null==o&&(o=eC(eM)),o[0]||eM);r=(r=!0===l||null===l?u():(0,K.f)(l))||u();let i=(0,p.I)(eM,(0,p.T)(e)),c=er.current.openEvent,s=c?.type==="mousedown"&&(0,m.E)(c);(0,M.f)(r,{sync:s,preventScroll:r===eM,shouldFocus(){if(!es.current)return!1;if(i)return!0;let t=(0,p.T)(e);return!(t!==r&&(0,p.I)(eM,t))}})})},[I,Q,eM,eC,eo,ec,es,er]);let eI=t.useRef(null);(0,c.f)(()=>{if(I||!eM){eI.current=null;return}eI.current&&(eI.current.cancelled=!0,eI.current=null);let e=(0,d.f)(eM),t=(0,p.T)(e),n=null==ec.current;function l(e){var t,r;let n;if(e.open||(t=e.nativeEvent,r=em.current,n=(0,g.f)((0,p.Z)(t)),ev.current=t instanceof n.KeyboardEvent?"keyboard":t instanceof n.FocusEvent?r||"keyboard":"pointerType"in t?t.pointerType||((0,m.E)(t)?"keyboard":r||"mouse"):"touches"in t?"touch":t instanceof n.MouseEvent?r||(0===t.detail?"keyboard":"mouse"):""),(e.reason===R.f.focusOut&&e.triggerElement?.hasAttribute((0,T.f)("focus-guard"))||e.reason===x.f.triggerHover&&"mouseleave"===e.nativeEvent.type)&&(ed.current=!0),e.reason===E.f.outsidePress)if(e.nested)ed.current=!1;else if((0,m.E)(e.nativeEvent)||(0,m.$)(e.nativeEvent))ed.current=!1;else{let e=!1;(0,d.f)(eM).createElement("div").focus({get preventScroll(){return e=!0,!1}}),e?ed.current=!1:ed.current=!0}}return q(t),et.on("openchange",l),()=>{et.off("openchange",l);let o=(0,p.T)(e),u=eS(),i=(0,p.I)(ee,o)||u.some(e=>e===o||(0,p.I)(e,o))||ef&&(0,y.Q)(ef.nodesRef.current,en(),!1).some(e=>(0,p.I)(e.context?.elements.floating,o)),c=eu.current,s=ev.current,f=function(e){let l=eu.current,o="function"==typeof l?l(e):l;if(void 0===o||!1===o)return null;null===o&&(o=!0);let u=_?.isConnected?_:null,i=t?.isConnected&&"body"!==(0,r.A)(t)?t:null,c=n?i||u:u||i;return(c||(c=j()||null),"boolean"==typeof o)?c:(0,K.f)(o)||c||null}(s),a={cancelled:!1};eI.current=a,queueMicrotask(()=>{eI.current===a&&(eI.current=null);let t=f?(0,b.m)(f)?f:(0,b.T)(f)[0]||f:null,n=ei.current??"boolean"!=typeof c;if(!a.cancelled&&c&&!ed.current&&(0,r.E)(t)&&(n||t===o||o===e.body||i)){let e={preventScroll:!0};"keyboard"===s&&(e.focusVisible=!0),t.focus(e)}ed.current=!1})}},[I,ee,eM,eu,ei,ec,et,ef,_,en,eS]),(0,c.f)(()=>{if(!f.f.engine.webkit||Q||!ee)return;let e=(0,p.T)((0,d.f)(ee));(0,r.E)(e)&&(0,v.Q)(e)&&(0,p.I)(ee,e)&&e.blur()},[Q,ee]),(0,c.f)(()=>{if(!I&&ea)return ea.setFocusManagerState({modal:L,closeOnFocusOut:$,open:Q,onOpenChange:C.setOpen,domReference:_}),()=>{ea.setFocusManagerState(null)}},[I,ea,L,Q,C,$,_]),(0,c.f)(()=>{if(!I&&eM)return H(eM),()=>{queueMicrotask(U)}},[I,eM]);let eP=!I&&(!L||!el)&&(eT||L);return(0,N.jsxs)(t.Fragment,{children:[eP&&(0,N.jsx)(h.f,{"data-type":"inside",ref:ew,onFocus:e=>{if(L){let e=eC();(0,M.f)(e[e.length-1])}else if(ea?.portalNode)if(ed.current=!1,(0,b.A)(e,ea.portalNode)){let e=(0,b.O)(_);e?.focus()}else(0,K.f)(z??ea.beforeOutsideRef)?.focus()}}),S,eP&&(0,N.jsx)(h.f,{"data-type":"inside",ref:ek,onFocus:e=>{if(L)(0,M.f)(eC()[0]);else if(ea?.portalNode)if($&&(ed.current=!0),(0,b.A)(e,ea.portalNode)){let e=(0,b.B)(_);e?.focus()}else(0,K.f)(G??ea.afterOutsideRef)?.focus()}})]})}],909005)},403598,e=>{"use strict";var t=e.i(16043),r=e.i(792343),n=e.i(221271),l=e.i(115370),o=e.i(393298),u=e.i(227012),i=e.i(189351),c=e.i(132887),s=e.i(70110);e.s(["f",0,function(e,f={}){let{enabled:a=!0,event:d="click",toggle:g=!0,ignoreMouse:h=!1,stickIfOpen:p=!0,touchOpenDelay:v=0,reason:m=s.f.triggerPress}=f,b=e.context.dataRef,y=t.useRef(void 0),w=(0,r.z)(),k=(0,n.e)(),R=t.useMemo(()=>{function t(t,r,n,l){let o=(0,c.j)(m,r,n);t&&"touch"===l&&v>0?k.start(v,()=>{e.setOpen(!0,o)}):e.setOpen(t,o)}function r(t,r,n){let l=b.current.openEvent,o=e.select("domReferenceElement")!==r;return!!t&&!!o||!t||!g||!!(l&&("function"==typeof p?p():p))&&!n(l.type)}return{onPointerDown(e){y.current=(0,i.J)(e.pointerType,!0)&&(0,i.$)(e.nativeEvent)?"virtual":e.pointerType},onMouseDown(n){let l=y.current,c=n.nativeEvent,s=e.select("open");if(0!==n.button||"click"===d||(0,i.J)(l,!0)&&h)return;let f=r(s,n.currentTarget,e=>"click"===e||"mousedown"===e),a=(0,o.Z)(c),g=(0,u.Q)(a);if(g||"virtual"===l)return void t(f,c,g?a:n.currentTarget,l);let p=n.currentTarget;w.request(()=>{t(f,c,p,l)})},onClick(n){if("mousedown-only"===d)return;let l=y.current;if("mousedown"===d&&l){y.current=void 0;return}(0,i.J)(l,!0)&&h||t(r(e.select("open"),n.currentTarget,e=>"click"===e||"mousedown"===e||"keydown"===e||"keyup"===e),n.nativeEvent,n.currentTarget,l)},onKeyDown(){y.current=void 0}}},[b,d,h,m,e,p,g,w,k,v]);return t.useMemo(()=>a?{reference:R}:l.w,[a,R])}])},378530,499299,658048,100985,e=>{"use strict";var t=e.i(16043),r=e.i(792343),n=e.i(533124),l=e.i(997932),o=e.i(815922),u=e.i(195845),i=e.i(906793),c=e.i(807257),s=e.i(132887),f=e.i(739306),a=e.i(843753),d=e.i(779766),g=e.i(969424),h=e.i(523742),p=e.i(393298),v=e.i(227012),m=e.i(134574),b=e.i(189351);function y(e){return i.f.engine.webkit&&0===e.movementX&&0===e.movementY}function w(e,t,r){switch(e){case"vertical":return t;case"horizontal":return r;default:return t||r}}function k(e,t){return w(t,e===h.V||e===h.e,e===h.b||e===h.q)}function R(e,t,r){return w(t,e===h.e,r?e===h.b:e===h.q)||"Enter"===e||" "===e||""===e}e.s(["f",0,function(e,i){let{listRef:x,activeIndex:E,onNavigate:T=()=>{},enabled:M=!0,selectedIndex:C=null,allowEscape:S=!1,loopFocus:I=!1,nested:P=!1,rtl:A=!1,virtual:O=!1,focusItemOnOpen:W="auto",focusItemOnHover:L=!0,openOnArrowKeyDown:Y=!0,disabledIndices:F,orientation:B="vertical",triggerOrientation:D=B,parentOrientation:K,id:N,resetOnPointerLeave:$=!0,externalTree:U,nestedReturnFocusRef:q,grid:j}=i,H=null!=j,X=e.useState("open"),G=e.useState("floatingElement"),z=e.useState("domReferenceElement"),J=e.context.dataRef,V=(0,v.G)(G),Z=(0,v.J)(z),Q=(0,u.f)(V),_=(0,d.G)(),ee=(0,d.$)(U),et=t.useRef(W),er=t.useRef(C??-1),en=t.useRef(null),el=t.useRef(!0),eo=(0,o.f)(e=>{T(-1===er.current?null:er.current,e)}),eu=t.useRef(!!G),ei=t.useRef(X),ec=t.useRef(!1),es=t.useRef(!1),ef=t.useRef(null),ea=(0,u.f)(F),ed=(0,u.f)(X),eg=(0,u.f)(C),eh=(0,u.f)($),ep=(0,r.z)(),ev=(0,r.z)(),em=(0,o.f)(()=>{function e(e){O||(ef.current=(0,m.f)(e,{sync:ec.current,preventScroll:!0}))}ep.cancel();let t=x.current[er.current],r=es.current;t&&e(t),(ec.current?e=>e():e=>ep.request(e))(()=>{let n=x.current[er.current]||t;!n||(t||e(n),ex&&(r||!el.current)&&n.scrollIntoView?.({block:"nearest",inline:"nearest"}))})});(0,n.f)(()=>{J.current.orientation=B},[J,B]),(0,n.f)(()=>{X||(en.current=null),X&&"auto"===W||(et.current=W)},[X,W]),(0,n.f)(()=>{M&&(X&&G?(er.current=C??-1,et.current&&null!=C&&(es.current=!0,eo())):eu.current&&(er.current=-1,eo()))},[M,X,G,C,eo]),(0,n.f)(()=>{if(M){if(!X){ec.current=!1;return}if(G)if(null==E){if(ec.current=!1,null!=eg.current)return;if(eu.current&&(er.current=-1,em()),(!ei.current||!eu.current)&&et.current&&(null!=en.current||!0===et.current&&null==en.current)){let e=0,t=()=>{null==x.current[0]?(e<2&&(e?e=>ev.request(e):queueMicrotask)(t),e+=1):(er.current=null==en.current||R(en.current,D,A)||P?(0,g.J)(x):(0,g._)(x),en.current=null,eo())};t()}}else(0,g.c)(x.current,E)||(er.current=E,em(),es.current=!1)}},[M,X,G,E,eg,P,x,D,A,eo,em,ev]),(0,n.f)(()=>{if(!M||G||!ee||O||!eu.current)return;let e=ee.nodesRef.current,t=e.find(e=>e.id===_)?.context?.elements.floating,r=(0,p.T)((0,l.f)(z??t??null)),n=e.some(e=>e.context&&(0,p.I)(e.context.elements.floating,r));t&&!n&&el.current&&t.focus({preventScroll:!0})},[M,G,z,ee,_,O]),(0,n.f)(()=>{ei.current=X,eu.current=!!G});let eb=null!=E,ey=(0,o.f)(e=>{if(!ed.current)return;let t=x.current.indexOf(e.currentTarget);-1!==t&&(er.current!==t||E!==t)&&(er.current=t,eo(e))}),ew=(0,o.f)(()=>K??ee?.nodesRef.current.find(e=>e.id===_)?.context?.dataRef?.current.orientation),ek=(0,o.f)(()=>(0,g.J)(x,ea.current)),eR=(0,o.f)(t=>{var r;let n,l;if(el.current=!1,ec.current=!0,229===t.which||!ed.current&&t.currentTarget===Q.current)return;if(P&&(r=t.key,n=A?r===h.q:r===h.b,l=r===h.V,"both"===B||"horizontal"===B&&H?"Escape"===r:w(B,n,l))){k(t.key,ew())||(0,b.Y)(t),e.setOpen(!1,(0,s.j)(f.f.listNavigation,t.nativeEvent));let r=q?.current??z;(0,c.E)(r)&&r.focus();return}null==E||E===er.current||(0,g.c)(x.current,E)||(er.current=E);let o=er.current,u=(0,g.J)(x,F),i=(0,g._)(x,F);if(Z||("Home"===t.key&&((0,b.Y)(t),er.current=u,eo(t)),"End"===t.key&&((0,b.Y)(t),er.current=i,eo(t))),null!=j){let e=j(t,er.current,x,B,I,A,F,u,i);if(null!=e&&e!==er.current&&(er.current=e,eo(t)),"both"===B)return}if(k(t.key,B)){(0,b.Y)(t);let e=(0,p.T)(t.currentTarget.ownerDocument);if(X&&!O&&(0,p.I)(t.currentTarget,e)&&!x.current.some(t=>null!=t&&(0,p.I)(t,e))){er.current=R(t.key,B,A)?u:i,eo(t),E===er.current&&em();return}let{index:r,wrapped:n}=(0,g.Z)(x.current,o,{decrement:!R(t.key,B,A),loopFocus:I,allowEscape:S,disabledIndices:F,minIndex:u,maxIndex:i});n&&(ec.current=!1),er.current=r,eo(t)}}),ex=t.useMemo(()=>({onFocus(e){ec.current=!0,ey(e)},onClick({currentTarget:e}){O||e.focus({preventScroll:!0})},onMouseMove(e){!y(e)&&(ec.current=!0,es.current=!1,L&&ey(e))},onPointerLeave(e){if(!ed.current||!el.current||"touch"===e.pointerType)return;ec.current=!0;let t=e.relatedTarget;if(!(!L||x.current.includes(t))&&eh.current&&(ef.current?.(),ef.current=null,er.current=-1,eo(e),!O)){let e=Q.current,t=(0,p.T)((0,l.f)(e));e&&(0,p.I)(e,t)&&e.focus({preventScroll:!0})}}}),[ey,ed,Q,L,x,eo,eh,O]),eE=t.useMemo(()=>O&&X&&eb&&{"aria-activedescendant":`${N}-${E}`},[O,X,eb,N,E]),eT=t.useMemo(()=>({...!Z?eE:{},onKeyDown(t){if("Tab"===t.key&&t.shiftKey&&X&&!O){let r=(0,p.Z)(t.nativeEvent);if(r&&!(0,p.I)(Q.current,r))return;(0,b.Y)(t);let n=(0,s.j)(a.f.focusOut,t.nativeEvent);e.setOpen(!1,n);let l=q?.current??z;!n.isCanceled&&(0,c.E)(l)&&l.focus();return}eR(t)},onPointerMove(e){y(e)||(el.current=!0)}}),[eE,eR,Q,Z,e,X,O,z,q]),eM=t.useMemo(()=>{function t(t){e.setOpen(!0,(0,s.j)(f.f.listNavigation,t.nativeEvent,t.currentTarget))}function r(e){"auto"===W&&(0,b.E)(e.nativeEvent)&&(et.current=!O)}function n(e){et.current=W,"auto"===W&&(0,b.$)(e.nativeEvent)&&(et.current=!0)}return{onKeyDown(r){var n,l;let o=e.select("open");el.current=!1;let u=r.key.startsWith("Arrow"),i=(n=r.key,l=ew(),w(l,A?n===h.b:n===h.q,n===h.e)),c=k(r.key,o?B:D),s=(P?i:c)||"Enter"===r.key||""===r.key.trim();if(O&&o&&(!P||(0,v.Q)(r.currentTarget)))return eR(r);if(o||Y||!u){if(s){let e=k(r.key,ew());en.current=P&&e?null:r.key}if(P){i&&((0,b.Y)(r),o?(er.current=ek(),eo(r),O&&Q.current?.focus()):t(r));return}c&&(null!=eg.current&&(er.current=eg.current),(0,b.Y)(r),!o&&Y?t(r):eR(r),o&&eo(r))}},onFocus(t){t.target===t.currentTarget&&e.select("open")&&!O&&(er.current=-1,eo(t))},onPointerDown:n,onPointerEnter:n,onMouseDown:r,onClick:r}},[eR,W,ek,P,eo,e,Y,B,D,ew,A,eg,O,Q]),eC=t.useMemo(()=>({...eE,...eM}),[eE,eM]);return t.useMemo(()=>M?{reference:eC,floating:eT,item:ex,trigger:eM}:{},[M,eC,eT,eM,ex])}],378530);var x=e.i(221271),E=e.i(115370);e.s(["f",0,function(e,r){let{listRef:l,elementsRef:u,activeIndex:i,onMatch:c,disabledIndices:s,onTyping:f,enabled:a=!0,resetMs:d=750,selectedIndex:h=null}=r,v=(0,o.f)(f),m=e.useState("open"),y=(0,x.e)(),w=t.useRef(""),k=t.useRef(h??i??-1),R=t.useRef(null),T=(0,o.f)(e=>{function t(e){let t=u?.current[e];return!(t&&!(0,g.v)(t)||t?.matches(":disabled"))&&(null==s||!(0,g.K)(E.v,e,s))}function r(e,n,l=0){if(0===e.length)return -1;let o=(l%e.length+e.length)%e.length,u=n.toLowerCase();for(let r=0;r0&&" "===e.key&&((0,b.Y)(e),v?.(!0)),w.current.length>0&&" "!==w.current[0]&&-1===r(n,w.current)&&" "!==e.key&&v?.(!1),null==n||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;m&&" "!==e.key&&((0,b.Y)(e),v?.(!0));let o=""===w.current;o&&(k.current=h??i??-1),n.every((e,r)=>!(e&&t(r))||e[0]?.toLowerCase()!==e[1]?.toLowerCase())&&w.current===e.key&&(w.current="",k.current=R.current),w.current+=e.key,y.start(d,()=>{w.current="",k.current=R.current,v?.(!1)});let f=o?h??i??-1:k.current,a=r(n,w.current,(f??0)+1);-1!==a?(c?.(a,e),R.current=a):" "!==e.key&&(w.current="",v?.(!1))}),M=(0,o.f)(t=>{let r=t.relatedTarget,n=e.select("domReferenceElement"),l=e.select("floatingElement");(0,p.I)(n,r)||(0,p.I)(l,r)||(y.clear(),w.current="",k.current=R.current,v?.(!1))});(0,n.f)(()=>{(m||null===h)&&(y.clear(),R.current=null,""!==w.current&&(w.current="",v?.(!1)))},[m,h,y,v]);let C=t.useMemo(()=>({onKeyDown:T,onBlur:M}),[T,M]);return t.useMemo(()=>a?{reference:C,floating:C}:{},[a,C])}],499299);var T=e.i(223732),M=e.i(183970);e.s(["f",0,function(e,t){let r=function(e){let t=e.getBoundingClientRect(),r=(0,T.f)(e);if(M.f.env.jsdom)return t;let n=r.getComputedStyle(e,"::before"),l=r.getComputedStyle(e,"::after");if("none"===n.content&&"none"===l.content)return t;let o=parseFloat(n.width)||0,u=parseFloat(n.height)||0,i=parseFloat(l.width)||0,c=parseFloat(l.height)||0,s=Math.max(t.width,o,i),f=Math.max(t.height,u,c),a=s-t.width,d=f-t.height;return{left:t.left-a/2,right:t.right+a/2,top:t.top-d/2,bottom:t.bottom+d/2}}(t);return e.clientX>=r.left-5&&e.clientX<=r.right+5&&e.clientY>=r.top-5&&e.clientY<=r.bottom+5}],658048);var C=e.i(24220);e.s(["f",0,C],100985)},134574,e=>{"use strict";var t=e.i(115370);let r=0;e.s(["f",0,function(e,n={}){let{preventScroll:l=!1,sync:o=!1,shouldFocus:u}=n;function i(){(!u||u())&&e?.focus({preventScroll:l})}if(cancelAnimationFrame(r),o)return i(),t.x;let c=requestAnimationFrame(i);return r=c,()=>{r===c&&(cancelAnimationFrame(c),r=0)}}])},597233,e=>{"use strict";var t=e.i(807257);let r="ArrowUp",n="ArrowDown",l="ArrowLeft",o="ArrowRight",u="Home",i=new Set([r,n,l,o,u,"End"]),c="Shift",s=[c,"Control","Alt","Meta"];function f(e,t,r){let n="left"===r?"offsetLeft":"offsetTop",l=0;for(;t.offsetParent&&(l+=t[n],t.offsetParent!==e);)t=t.offsetParent;return l}function a(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}e.s(["e",0,n,"b",0,l,"q",0,o,"V",0,r,"J",0,i,"C",0,"End","Z",0,u,"a",0,s,"I",0,"PageDown","v",0,"PageUp","B",0,c,"X",0,function(e){return!!((0,t.E)(e)&&"INPUT"===e.tagName&&null!=e.selectionStart||(0,t.E)(e)&&"TEXTAREA"===e.tagName)},"l",0,function(e,t,r,n){if(!e||!t||!t.scrollTo)return;let l=e.scrollLeft,o=e.scrollTop,u=e.clientWidthe.scrollLeft+e.clientWidth-o.scrollPaddingRight?l=n+t.offsetWidth+u.scrollMarginRight-e.clientWidth+o.scrollPaddingRight:n-u.scrollMarginLefte.scrollLeft+e.clientWidth-o.scrollPaddingRight&&(l=n+t.offsetWidth+u.scrollMarginRight-e.clientWidth+o.scrollPaddingRight))}if(i&&"horizontal"!==n){let r=f(e,t,"top"),n=a(e),l=a(t);r-l.scrollMarginTope.scrollTop+e.clientHeight-n.scrollPaddingBottom&&(o=r+t.offsetHeight+l.scrollMarginBottom-e.clientHeight+n.scrollPaddingBottom)}e.scrollTo({left:l,top:o,behavior:"auto"})}])},700788,e=>{"use strict";var t=e.i(16043),r=e.i(480758),n=e.i(815922),l=e.i(533124),o=e.i(863847),u=e.i(659350);function i(){return new Map}function c(){return new Set}function s(e,t){return e.nextElementSibling===t?-1:t.nextElementSibling===e?1:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}e.s(["f",0,function(e){let{children:f,elementsRef:a,labelsRef:d,onMapChange:g}=e,h=(0,n.f)(g),[,p]=t.useState(0),v=(0,r.useRefWithInit)(c).current,m=(0,r.useRefWithInit)(i).current,b=t.useRef(0),y=t.useRef(!0),w=t.useRef(null),k=t.useRef(null),R=(0,n.f)(()=>{y.current||(y.current=!0,p(e=>e+1))}),x=(0,n.f)((e,t)=>{m.set(e,t),R()}),E=(0,n.f)(e=>{m.delete(e),R()}),T=(0,n.f)(e=>{let t=new Map;return a.current.length=0,d&&(d.current.length=0),e.forEach(e=>{t.set(e.element,{...e.registration.metadata??{},index:e.index}),a.current[e.index]=e.element,d&&(d.current[e.index]=void 0!==e.registration.label?e.registration.label:e.registration.textRef?.current?.textContent??e.element.textContent)}),b.current=a.current.length,t}),M=(0,n.f)(()=>{var e;let t,r,n,l,[o,u]=(e=m,t=new Set,r=[],n=[],e.forEach((e,l)=>{if(!l.isConnected)return;let o=e.index,u={index:o??-1,element:l,registration:e};null===o?n.push(u):o>=0&&(t.add(o),r.push(u))}),l=0,n.sort((e,t)=>s(e.element,t.element)),n.forEach(e=>{for(;t.has(l);)l+=1;e.index=l,r.push(e),l+=1}),t.size>0&&r.sort((e,t)=>e.index-t.index),[r,n.map(e=>e.element)]),i=T(o),c=w.current,f=!c||c.length!==o.length||o.some((e,t)=>{let r=c[t];return e.index!==r.index||e.element!==r.element||e.registration.index!==r.registration.index||e.registration.metadata!==r.registration.metadata});!function(e){if(k.current?.disconnect(),k.current=null,"function"!=typeof MutationObserver||e.length<2)return;let t=new MutationObserver(r=>{if(!function(e){for(let t of e)for(let e=0;e0){t.disconnect(),R();return}n=r}});k.current=t;let r=new Set;for(let t=1;tt.observe(e,{childList:!0}))}(u),w.current=o,y.current=!1,f&&(v.forEach(e=>e(i)),h(i))});(0,l.f)(()=>(!y.current&&w.current&&T(w.current),()=>{a.current=[],d&&(d.current=[])}),[a,d,T]),(0,l.f)(()=>{y.current&&M()}),(0,l.f)(()=>()=>{k.current?.disconnect(),y.current=!0},[]);let C=(0,n.f)(e=>(v.add(e),()=>{v.delete(e)})),S=t.useMemo(()=>({register:x,unregister:E,subscribeMapChange:C,nextIndexRef:b}),[x,E,C,b]);return(0,u.jsx)(o.i.Provider,{value:S,children:f})}])},863847,e=>{"use strict";var t=e.i(16043);let r=t.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});e.s(["i",0,r,"Q",0,function(){return t.useContext(r)}])},485997,e=>{"use strict";var t=e.i(16043),r=e.i(533124),n=e.i(863847);e.s(["f",0,function(e={}){let{guess:l,label:o,metadata:u,textRef:i,index:c}=e,{register:s,unregister:f,subscribeMapChange:a,nextIndexRef:d}=(0,n.Q)(),g=t.useRef(-1),[h,p]=t.useState(null==c&&l?()=>{if(-1===g.current){let e=d.current;d.current+=1,g.current=e}return g.current}:-1),v=c??h,m=t.useRef(null),b=t.useCallback(e=>{let t=m.current;t&&f(t),m.current=e,e&&s(e,{metadata:u??null,index:c??null,label:o,textRef:i})},[c,s,f,u,o,i]);return(0,r.f)(()=>{if(null==c)return a(e=>{let t=m.current?e.get(m.current)?.index:null;null!=t&&p(t)})},[c,a]),{ref:b,index:v}}])},57140,204864,e=>{"use strict";var t=e.i(107397),r=e.i(16043);let n=r.createContext(void 0);e.s(["e",0,n,"o",0,function(e=!1){let l=r.useContext(n);if(void 0===l&&!e)throw Error((0,t.f)(16));return l}],57140),e.s(["f",0,function(e){let{focusableWhenDisabled:t,disabled:n,composite:l=!1,tabIndex:o=0,isNativeButton:u}=e,i=l&&!1!==t,c=l&&!1===t;return{props:r.useMemo(()=>{let e={onKeyDown(e){n&&t&&"Tab"!==e.key&&e.preventDefault()}};return l||(e.tabIndex=o,!u&&n&&(e.tabIndex=t?o:-1)),(u&&(t||i)||!u&&n)&&(e["aria-disabled"]=n),u&&(!t||c)&&(e.disabled=n),e},[l,n,t,i,c,u,o])}}],204864)},376120,e=>{"use strict";var t=e.i(24220);e.s(["f",0,t])},739306,e=>{"use strict";var t=e.i(24220);e.s(["f",0,t])},225421,e=>{"use strict";var t=e.i(16043),r=e.i(807257),n=e.i(815922),l=e.i(533124),o=e.i(195618),u=e.i(57140),i=e.i(204864),c=e.i(729253);function s(e){return(0,r.E)(e)&&"BUTTON"===e.tagName}e.s(["f",0,function(e={}){let{disabled:f=!1,focusableWhenDisabled:a,tabIndex:d=0,native:g=!0,composite:h}=e,p=t.useRef(null),v=(0,u.o)(!0),m=h??void 0!==v,{props:b}=(0,i.f)({focusableWhenDisabled:a,disabled:f,composite:m,tabIndex:d,isNativeButton:g}),y=t.useCallback(()=>{let e=p.current;s(e)&&m&&f&&void 0===b.disabled&&e.disabled&&(e.disabled=!1)},[f,b.disabled,m]);return(0,l.f)(y,[y]),{getButtonProps:t.useCallback((e={})=>{let{onClick:t,onMouseDown:n,onKeyUp:l,onKeyDown:u,onPointerDown:i,...a}=e;return(0,o.w)({onClick(e){f?e.preventDefault():t?.(e)},onMouseDown(e){f||n?.(e)},onKeyDown(e){var t;if(f||((0,o.U)(e),u?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,l=e.currentTarget,i=s(l),a=!g&&(t=l,(0,r.E)(t)&&"A"===t.tagName&&!!t.href),d=n&&(g?i:!a),h="Enter"===e.key,p=" "===e.key,v=l.getAttribute("role"),b=v?.startsWith("menuitem")||"option"===v||"gridcell"===v;if(n&&m&&p){if(e.defaultPrevented&&b)return;e.preventDefault(),(!g||i)&&(e.preventBaseUIHandler(),(0,c.f)(l,e));return}if(!d||g||!p&&!h){n&&a&&p&&e.preventDefault();return}!e.defaultPrevented&&(e.preventDefault(),h&&(e.preventBaseUIHandler(),(0,c.f)(l,e)))},onKeyUp(e){f||(((0,o.U)(e),l?.(e),e.target===e.currentTarget&&g&&m&&s(e.currentTarget)&&" "===e.key)?e.preventDefault():!e.baseUIHandlerPrevented&&(e.target!==e.currentTarget||g||m||e.defaultPrevented||" "!==e.key||(e.preventBaseUIHandler(),(0,c.f)(e.currentTarget,e))))},onPointerDown(e){f?e.preventDefault():i?.(e)}},g?{type:"button"}:{role:"button"},b,a)},[f,b,m,g]),buttonRef:(0,n.f)(e=>{p.current=e,y()})}}])},957854,e=>{"use strict";var t=e.i(16043),r=e.i(533124),n=e.i(815922);e.s(["f",0,function(e,l){let o=t.useRef(e),u=(0,n.f)(l);(0,r.f)(()=>{o.current!==e&&u(o.current),o.current=e},[e,u])}])},737876,e=>{"use strict";var t=e.i(107397),r=e.i(16043);let n=r.createContext(void 0);e.s(["f",0,function(e){let l=r.useContext(n);if(void 0===l&&!e)throw Error((0,t.f)(69));return l}])},262589,e=>{"use strict";var t=e.i(16043),r=e.i(659350);let n=t.forwardRef(function(e,t){let n,{cutout:l,...o}=e;if(l){let e=l.getBoundingClientRect();n=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,r.jsx)("div",{ref:t,role:"presentation","data-base-ui-inert":"",...o,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:n}})});e.s(["f",0,n])},729253,e=>{"use strict";var t=e.i(223732);e.s(["f",0,function(e,r,{detail:n=0,pointerType:l=""}={}){e.dispatchEvent(new((0,t.f)(e)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:n,pointerType:l,shiftKey:r.shiftKey,ctrlKey:r.ctrlKey,altKey:r.altKey,metaKey:r.metaKey}))}])},502067,e=>{"use strict";var t=e.i(16043),r=e.i(997932),n=e.i(721002),l=e.i(533124);e.s(["f",0,function(e,o,u,i){let[c,s]=t.useState(!1);(0,l.f)(()=>{if(!e||!o||null==u)return void s(!1);let t=(0,r.f)(u).documentElement.clientWidth,n=u.offsetWidth;s(t>0&&n>0&&n>=t-20)},[e,o,u]),(0,n.f)(e&&(!o||c),i)}])},866702,e=>{"use strict";var t=e.i(16043),r=e.i(815922),n=e.i(195155),l=e.i(957854);function o(e,l){var o;let u,i,{onClick:c,onPointerDown:s}=(o=(0,r.f)((t,r)=>{("function"==typeof e?e():e)||l(r||(n.f.os.ios?"touch":""))}),u=t.useRef(""),i=t.useCallback(e=>{e.defaultPrevented||(u.current=e.pointerType,o(e,e.pointerType))},[o]),{onClick:t.useCallback(e=>{0===e.detail?o(e,"keyboard"):("pointerType"in e?o(e,e.pointerType):o(e,u.current),u.current="")},[o]),onPointerDown:i});return t.useMemo(()=>({onClick:c,onPointerDown:s}),[c,s])}e.s(["$",0,function(e){let[r,n]=t.useState(null),u=o(e,n);return(0,l.f)(e,t=>{t&&!e&&n(null)}),t.useMemo(()=>({openMethod:r,triggerProps:u}),[r,u])},"p",0,o],866702)},245966,e=>{"use strict";var t=e.i(531893);e.s(["f",0,function(e){return(0,t.f)(19)?e:e?"true":void 0}])},389475,e=>{"use strict";var t=e.i(16043);e.s(["f",0,function({controlled:e,default:r,name:n,state:l="value"}){let{current:o}=t.useRef(void 0!==e),[u,i]=t.useState(()=>r),c=t.useCallback(e=>{o||i(e)},[]);return[o&&void 0!==e?e:u,c]}])},721002,e=>{"use strict";var t=e.i(807257),r=e.i(976987),n=e.i(906793),l=e.i(195155),o=e.i(997932),u=e.i(223732),i=e.i(533124),c=e.i(221271),s=e.i(792343);let f={},a={},d="";function g(e,r){return(0,t.B)(e)?e:r}function h(e,t,r){return/hidden|clip/.test(e.getComputedStyle(g(t,r)).overflowY)}let p=new class{lockCount=0;restore=null;timeoutLock=c.U.create();timeoutUnlock=c.U.create();acquire(e){return this.lockCount+=1,1===this.lockCount&&null===this.restore&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{this.lockCount-=1,0===this.lockCount&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{0===this.lockCount&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){let t,i,c;if(0===this.lockCount||null!==this.restore)return;let p=(0,o.f)(e),v=p.documentElement,m=p.body,b=(0,u.f)(v);if(h(b,v,m)){let t=new b.MutationObserver(()=>{h(b,v,m)||(t.disconnect(),this.restore=null,this.lock(e))}),r={attributes:!0};t.observe(v,r),t.observe(m,r),this.restore=()=>t.disconnect();return}let y=l.f.os.ios||!function(e){if("u"0}(e);this.restore=y?(c={overflowY:(i=g((t=(0,o.f)(e)).documentElement,t.body)).style.overflowY,overflowX:i.style.overflowX},Object.assign(i.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(i.style,c)}):function(e){let t=(0,o.f)(e),l=t.documentElement,i=t.body,c=(0,u.f)(l),h=0,p=0,v=!1,m=s.$.create();if(n.f.engine.webkit&&(c.visualViewport?.scale??1)!==1)return()=>{};function b(){let t=c.getComputedStyle(l),r=c.getComputedStyle(i),n=(t.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";h=l.scrollTop,p=l.scrollLeft,f={scrollbarGutter:l.style.scrollbarGutter,overflowY:l.style.overflowY,overflowX:l.style.overflowX},d=l.style.scrollBehavior,a={position:i.style.position,height:i.style.height,width:i.style.width,boxSizing:i.style.boxSizing,overflowY:i.style.overflowY,overflowX:i.style.overflowX,scrollBehavior:i.style.scrollBehavior};let u=l.scrollHeight>l.clientHeight,s=l.scrollWidth>l.clientWidth,m="scroll"===t.overflowY||"scroll"===r.overflowY,b="scroll"===t.overflowX||"scroll"===r.overflowX,y=Math.max(0,c.innerWidth-i.clientWidth),w=Math.max(0,c.innerHeight-i.clientHeight),k=parseFloat(r.marginTop)+parseFloat(r.marginBottom),R=parseFloat(r.marginLeft)+parseFloat(r.marginRight),x=g(l,i);if(v=function(e){if(!("u">typeof CSS&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||"u"{m.cancel(),y(),"function"==typeof c.removeEventListener&&w()}}(e)}};e.s(["f",0,function(e=!0,t=null){(0,i.f)(()=>{if(e)return p.acquire(t)},[e,t])}])}]); //# sourceMappingURL=1lpaud0g86kvb.js.map