(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,61487,e=>{var t=e.i(271645),n=e.i(229315),r=e.i(574735),i=e.i(365420),o=e.i(828918),l=e.i(446265),s=e.i(667865),u=e.i(146376),a=e.i(439957),c=e.i(818663),f=e.i(708445),d=e.i(108868),p=e.i(333848),h=e.i(152535),g=e.i(647554),m=e.i(596296),v=e.i(157940),b=e.i(383976),y=e.i(958408),x=e.i(621082),E=e.i(675606),w=e.i(6304),S=e.i(422428),R=e.i(790098),T=e.i(451321),k=e.i(503596);let C={inert:new WeakMap,"aria-hidden":new WeakMap},I="data-base-ui-inert",A={inert:new WeakSet,"aria-hidden":new WeakSet},O=new WeakMap,M=0,j=(e,t)=>t.map(t=>{if(e.contains(t))return t;let r=function e(t){return t?(0,n.R)(t)?t.host:e(t.parentNode):null}(t);return e.contains(r)?r:null}).filter(e=>null!=e),W=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},P=(e,t,r)=>{let i=[],o=e=>{!e||r.has(e)||Array.from(e.children).forEach(e=>{"script"!==(0,n.A)(e)&&(t.has(e)?o(e):i.push(e))})};return o(e),i};function Y(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0}=t,o=(0,d.f)(e[0]).body;return function(e,t,n,r,{mark:i=!0}){let o=null;r?o="inert":n&&(o="aria-hidden");let l=null,s=null,u=j(t,e),a=i?P(t,W(u),new Set(u)):[],c=[],f=[];if(o){let e=C[o],n=A[o];s=n,l=e;let r=j(t,Array.from(t.querySelectorAll("[aria-live]"))),i=u.concat(r);P(t,W(i),new Set(i)).forEach(t=>{let r=t.getAttribute(o),i=null!==r&&"false"!==r,l=(e.get(t)||0)+1;e.set(t,l),c.push(t),1===l&&i&&n.add(t),i||t.setAttribute(o,"inert"===o?"":"true")})}return i&&a.forEach(e=>{let t=(O.get(e)||0)+1;O.set(e,t),f.push(e),1===t&&e.setAttribute(I,"")}),M+=1,()=>{l&&c.forEach(e=>{let t=(l.get(e)||0)-1;l.set(e,t),t||(!s?.has(e)&&o&&e.removeAttribute(o),s?.delete(e))}),i&&f.forEach(e=>{let t=(O.get(e)||0)-1;O.set(e,t),t||e.removeAttribute(I)}),(M-=1)||(C.inert=new WeakMap,C["aria-hidden"]=new WeakMap,A.inert=new WeakSet,A["aria-hidden"]=new WeakSet,O=new WeakMap)}}(e,o,n,r,{mark:i})}var B=e.i(726674),X=e.i(46420),$=e.i(638396),V=e.i(594603),D=e.i(843476);let F=[];function H(){F=F.filter(e=>e.deref()?.isConnected)}function U(e){H(),e&&"body"!==(0,n.A)(e)&&(F.push(new WeakRef(e)),F.length>20&&(F=F.slice(-20)))}function N(){return H(),F[F.length-1]?.deref()}function q(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("-")}),n=e.getAttribute("tabindex");0===t.length?"0"!==n&&(e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")):("-1"!==n||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:I,disabled:A=!1,initialFocus:O=!0,returnFocus:M=!0,restoreFocus:j=!1,modal:W=!0,closeOnFocusOut:P=!0,openInteractionType:F="",nextFocusableElement:z,previousFocusableElement:G,beforeContentFocusGuardRef:K,externalTree:L,getInsideElements:Z}=e,_="rootStore"in C?C.rootStore:C,Q=_.useState("open"),J=_.useState("domReferenceElement"),ee=_.useState("floatingElement"),{events:et,dataRef:en}=_.context,er=(0,s.f)(()=>en.current.floatingContext?.nodeId),ei=(0,m.J)(J)&&!1===O,eo=(0,l.f)(O),el=(0,l.f)(M),es=(0,l.f)(F),eu=(0,l.f)(Q),ea=(0,X.$)(L),ec=(0,B.M)(),ef=t.useRef(!1),ed=t.useRef(!1),ep=t.useRef(!1),eh=t.useRef(null),eg=t.useRef(""),em=t.useRef(""),ev=t.useRef(null),eb=t.useRef(null),ey=(0,o.A)(ev,K,ec?.beforeInsideRef),ex=(0,o.A)(eb,ec?.afterInsideRef),eE=(0,a.e)(),ew=(0,a.e)(),eS=(0,f.z)(),eR=null!=ec,eT=(0,m.G)(ee),ek=(0,s.f)((e=eT)=>e?(0,b.T)(e):[]),eC=(0,s.f)(()=>Z?.().filter(e=>null!=e)??[]);t.useEffect(()=>{if(A||!W)return;let e=(0,d.f)(eT);return(0,r.f)(e,"keydown",function(e){"Tab"===e.key&&(0,g.I)(eT,(0,g.T)((0,d.f)(eT)))&&0===ek().length&&!ei&&(0,v.Y)(e)})},[A,eT,W,ei,ek]),t.useEffect(()=>{if(A||!Q)return;let e=(0,d.f)(eT);function t(){ep.current=!1}return(0,i.f)((0,r.f)(e,"pointerdown",function(e){let t=(0,g.Z)(e),n=eC();ep.current=!((0,g.I)(ee,t)||(0,g.I)(J,t)||(0,g.I)(ec?.portalNode,t)||n.some(e=>e===t||(0,g.I)(e,t))),em.current=e.pointerType||"keyboard",t?.closest(`[${$.j}]`)&&(ed.current=!0,ew.start(0,()=>{ed.current=!1}))},!0),(0,r.f)(e,"pointerup",t,!0),(0,r.f)(e,"pointercancel",t,!0),(0,r.f)(e,"keydown",function(){em.current="keyboard"},!0),t)},[A,ee,J,eT,Q,ec,ew,eC]),t.useEffect(()=>{if(A||!P)return;let e=(0,d.f)(eT);function t(t){let r=t.relatedTarget,i=t.currentTarget,o=(0,g.Z)(t);W&&null==r&&null!=o&&(0,g.I)(ee,o)&&U(o),queueMicrotask(()=>{let l=er(),s=_.context.triggerElements,u=eC(),a=r?.hasAttribute((0,T.f)("focus-guard"))&&[ev.current,eb.current,ec?.beforeInsideRef.current,ec?.afterInsideRef.current,ec?.beforeOutsideRef.current,ec?.afterOutsideRef.current,(0,V.f)(G),(0,V.f)(z)].includes(r),c=!((0,g.I)(J,r)||(0,g.I)(ee,r)||(0,g.I)(r,ee)||(0,g.I)(ec?.portalNode,r)||u.some(e=>e===r||(0,g.I)(e,r))||s.hasMatchingElement(e=>(0,g.I)(e,r))||a||ea&&((0,y.Q)(ea.nodesRef.current,l).find(e=>(0,g.I)(e.context?.elements.floating,r)||(0,g.I)(e.context?.elements.domReference,r))||(0,y.V)(ea.nodesRef.current,l).find(e=>[e.context?.elements.floating,(0,m.G)(e.context?.elements.floating)].includes(r)||e.context?.elements.domReference===r)));if(i===J&&eT&&q(eT),j&&i!==J&&!(0,x.v)(o)&&(0,g.T)(e)===e.body){if((0,n.E)(eT)&&(eT.focus(),"popup"===j))return void eS.request(()=>{eT.focus()});let e=ek(),t=eh.current,r=(t&&e.includes(t)?t:null)||e[e.length-1]||eT;(0,n.E)(r)&&r.focus()}if(en.current.insideReactTree){en.current.insideReactTree=!1;return}(ei||!W)&&r&&c&&!ed.current&&(ei||r!==N())&&(ef.current=!0,_.setOpen(!1,(0,E.j)(w.f.focusOut,t)))})}let o=(0,n.E)(J)?J:null;if(ee||o)return(0,i.f)(o&&(0,r.f)(o,"focusout",t),o&&(0,r.f)(o,"pointerdown",function(){ed.current=!0,ew.start(0,()=>{ed.current=!1})}),ee&&(0,r.f)(ee,"focusin",function(e){let t=(0,g.Z)(e);(0,b.m)(t)&&(eh.current=t)}),ee&&(0,r.f)(ee,"focusout",t),ee&&ec&&(0,r.f)(ee,"focusout",function(){ep.current||(en.current.insideReactTree=!0,eE.start(0,()=>{en.current.insideReactTree=!1}))},!0))},[A,J,ee,eT,W,ea,ec,_,P,j,ek,ei,er,en,eE,ew,eS,z,G,eC]),t.useEffect(()=>{if(A||!ee||!Q)return;let e=Array.from(ec?.portalNode?.querySelectorAll(`[${(0,T.f)("portal")}]`)||[]),t=ea?(0,y.V)(ea.nodesRef.current,er()):[],n=t.find(e=>(0,m.J)(e.context?.elements.domReference||null))?.context?.elements.domReference,r=Y([ee,...e,ev.current,eb.current,ec?.beforeOutsideRef.current,ec?.afterOutsideRef.current,...eC(),n,(0,V.f)(G),(0,V.f)(z),ei?J:null].filter(e=>null!=e),{ariaHidden:W||ei,mark:!1}),i=Y([ee,...e].filter(e=>null!=e));return()=>{i(),r()}},[Q,A,J,ee,W,ec,ei,ea,er,z,G,eC]),(0,u.f)(()=>{if(!Q||A||!(0,n.E)(eT))return;eg.current="",em.current="";let e=(0,d.f)(eT),t=(0,g.T)(e);queueMicrotask(()=>{let n,r=eo.current,i="function"==typeof r?r(es.current||""):r;if(void 0===i||!1===i||(0,g.I)(eT,t))return;let o=null,l=()=>(null==o&&(o=ek(eT)),o[0]||eT);n=(n=!0===i||null===i?l():(0,V.f)(i))||l();let s=(0,g.I)(eT,(0,g.T)(e));(0,k.f)(n,{preventScroll:n===eT,shouldFocus(){if(!eu.current)return!1;if(s)return!0;let t=(0,g.T)(e);return!(t!==n&&(0,g.I)(eT,t))}})})},[A,Q,eT,ek,eo,es,eu]),(0,u.f)(()=>{if(A||!eT)return;let e=(0,d.f)(eT),t=(0,g.T)(e),r=null==es.current;function i(e){var t,n;let r;if(e.open||(t=e.nativeEvent,n=em.current,r=(0,p.f)((0,g.Z)(t)),eg.current=t instanceof r.KeyboardEvent?"keyboard":t instanceof r.FocusEvent?n||"keyboard":"pointerType"in t?t.pointerType||"keyboard":"touches"in t?"touch":t instanceof r.MouseEvent?n||(0===t.detail?"keyboard":"mouse"):""),e.reason===S.f.triggerHover&&"mouseleave"===e.nativeEvent.type&&(ef.current=!0),e.reason===R.f.outsidePress)if(e.nested)ef.current=!1;else if((0,v.E)(e.nativeEvent)||(0,v.$)(e.nativeEvent))ef.current=!1;else{let e=!1;(0,d.f)(eT).createElement("div").focus({get preventScroll(){return e=!0,!1}}),e?ef.current=!1:ef.current=!0}}return U(t),et.on("openchange",i),()=>{et.off("openchange",i);let o=(0,g.T)(e),l=eC(),s=(0,g.I)(ee,o)||l.some(e=>e===o||(0,g.I)(e,o))||ea&&(0,y.Q)(ea.nodesRef.current,er(),!1).some(e=>(0,g.I)(e.context?.elements.floating,o)),u=el.current,a=eg.current,c=function(e){let i=el.current,o="function"==typeof i?i(e):i;if(void 0===o||!1===o)return null;null===o&&(o=!0);let l=J?.isConnected?J:null,s=t?.isConnected&&"body"!==(0,n.A)(t)?t:null,u=r?s||l:l||s;return(u||(u=N()||null),"boolean"==typeof o)?u:(0,V.f)(o)||u||null}(a);queueMicrotask(()=>{let t=c?(0,b.m)(c)?c:(0,b.T)(c)[0]||c:null;if(u&&!ef.current&&(0,n.E)(t)&&("boolean"!=typeof u||t===o||o===e.body||s)){let e={preventScroll:!0};"keyboard"===a&&(e.focusVisible=!0),t.focus(e)}ef.current=!1})}},[A,ee,eT,el,es,et,ea,J,er,eC]),(0,u.f)(()=>{if(!c.f.engine.webkit||Q||!ee)return;let e=(0,g.T)((0,d.f)(ee));(0,n.E)(e)&&(0,m.Q)(e)&&(0,g.I)(ee,e)&&e.blur()},[Q,ee]),(0,u.f)(()=>{if(!A&&ec)return ec.setFocusManagerState({modal:W,closeOnFocusOut:P,open:Q,onOpenChange:_.setOpen,domReference:J}),()=>{ec.setFocusManagerState(null)}},[A,ec,W,Q,_,P,J]),(0,u.f)(()=>{if(!A&&eT)return q(eT),()=>{queueMicrotask(H)}},[A,eT]);let eI=!A&&(!W||!ei)&&(eR||W);return(0,D.jsxs)(t.Fragment,{children:[eI&&(0,D.jsx)(h.f,{"data-type":"inside",ref:ey,onFocus:e=>{if(W){let e=ek();(0,k.f)(e[e.length-1])}else if(ec?.portalNode)if(ef.current=!1,(0,b.A)(e,ec.portalNode)){let e=(0,b.O)(J);e?.focus()}else(0,V.f)(G??ec.beforeOutsideRef)?.focus()}}),I,eI&&(0,D.jsx)(h.f,{"data-type":"inside",ref:ex,onFocus:e=>{if(W)(0,k.f)(ek()[0]);else if(ec?.portalNode)if(P&&(ef.current=!0),(0,b.A)(e,ec.portalNode)){let e=(0,b.B)(J);e?.focus()}else(0,V.f)(z??ec.afterOutsideRef)?.focus()}})]})}],61487)},726674,e=>{e.i(247167);var t=e.i(271645),n=e.i(174080),r=e.i(229315),i=e.i(574735),o=e.i(365420),l=e.i(883977),s=e.i(146376),u=e.i(667865),a=e.i(956789),c=e.i(152535),f=e.i(383976),d=e.i(675606),p=e.i(6304),h=e.i(451321),g=e.i(552245),m=e.i(638396),v=e.i(843476);let b=t.createContext(null),y=()=>t.useContext(b),x=(0,h.f)("portal");function E(e={}){let{ref:i,container:o,componentProps:c=a.w,elementProps:f}=e,d=(0,l.f)(),p=y(),h=p?.portalNode,[m,v]=t.useState(null),[b,w]=t.useState(null),S=(0,u.f)(e=>{null!==e&&w(e)}),R=t.useRef(null);(0,s.f)(()=>{if(null===o){R.current&&(R.current=null,w(null),v(null));return}let e=(o&&((0,r.t)(o)?o:o.current))??h??document.body;if(null==e){R.current&&(R.current=null,w(null),v(null));return}R.current!==e&&(R.current=e,w(null),v(e))},[o,h]);let T=(0,g.f)("div",c,{ref:[i,S],props:[{id:d,[x]:""},f]}),k=m&&T?n.createPortal(T,m):null;return{node:b,nodeId:t.isValidElement(T)?T.props.id:void 0,subtree:k}}let w=t.forwardRef(function(e,r){let{render:l,className:u,style:a,children:h,container:g,...y}=e,{node:x,nodeId:w,subtree:S}=E({container:g,ref:r,componentProps:e,elementProps:y}),R=t.useRef(null),T=t.useRef(null),k=t.useRef(null),C=t.useRef(null),[I,A]=t.useState(null),O=t.useRef(!1),M=I?.modal,j=I?.open,W=!!I&&!I.modal&&I.open&&!!x;t.useEffect(()=>{if(x&&!M)return(0,o.f)((0,i.f)(x,"focusin",e,!0),(0,i.f)(x,"focusout",e,!0));function e(e){x&&e.relatedTarget&&(0,f.A)(e)&&("focusin"===e.type?O.current&&((0,f.d)(x),O.current=!1):((0,f.r)(x),O.current=!0))}},[x,M]),(0,s.f)(()=>{x&&!0===j&&O.current&&((0,f.d)(x),O.current=!1)},[j,x]);let P=t.useMemo(()=>({beforeOutsideRef:R,afterOutsideRef:T,beforeInsideRef:k,afterInsideRef:C,portalNode:x,setFocusManagerState:A}),[x]);return(0,v.jsxs)(t.Fragment,{children:[S,(0,v.jsxs)(b.Provider,{value:P,children:[W&&x&&(0,v.jsx)(c.f,{"data-type":"outside",ref:R,onFocus:e=>{if((0,f.A)(e,x))k.current?.focus();else{let e=I?I.domReference:null,t=(0,f.B)(e);t?.focus()}}}),W&&x&&(0,v.jsx)("span",{"aria-owns":w,style:m.Z}),x&&n.createPortal(h,x),W&&x&&(0,v.jsx)(c.f,{"data-type":"outside",ref:T,onFocus:e=>{if((0,f.A)(e,x))C.current?.focus();else{let t=I?I.domReference:null,n=(0,f.O)(t);n?.focus(),I?.closeOnFocusOut&&I?.onOpenChange(!1,(0,d.j)(p.f.focusOut,e.nativeEvent))}}})]})]})});e.s(["r",0,w,"o",0,E,"M",0,y])},156341,e=>{var t=e.i(301252),n=e.i(661286),r=e.i(157940);let i={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId};class o extends t.f{constructor(e){let{syncOnly:t,nested:r,onOpenChange:o,triggerElements:l,...s}=e;super({...s,positionReference:s.referenceElement,domReferenceElement:s.referenceElement},{onOpenChange:o,dataRef:{current:{}},events:(0,n.f)(),nested:r,triggerElements:l},i),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||null!=t&&(0,r.D)(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit("openchange",n)};setOpen=(e,t)=>{this.syncOnly||this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}}e.s(["f",0,o])},46420,661286,379248,e=>{var t=e.i(271645),n=e.i(883977),r=e.i(146376),i=e.i(388940);function o(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}e.s(["f",0,o],661286);class l{nodesRef={current:[]};events=o();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let t=this.nodesRef.current.findIndex(t=>t===e);-1!==t&&this.nodesRef.current.splice(t,1)}}e.s(["f",0,l],379248);var s=e.i(843476);let u=t.createContext(null),a=t.createContext(null),c=()=>t.useContext(u)?.id||null,f=e=>{let n=t.useContext(a);return e??n};e.s(["s",0,function(e){let{children:n,id:r}=e,i=c();return(0,s.jsx)(u.Provider,{value:t.useMemo(()=>({id:r,parentId:i}),[r,i]),children:n})},"V",0,function(e){let{children:t,externalTree:n}=e,r=(0,i.useRefWithInit)(()=>n??new l).current;return(0,s.jsx)(a.Provider,{value:r,children:t})},"T",0,function(e){let t=(0,n.f)(),i=f(e),o=c();return(0,r.f)(()=>{if(!t)return;let e={id:t,parentId:o};return i?.addNode(e),()=>{i?.removeNode(e)}},[i,t,o]),t},"G",0,c,"$",0,f],46420)},17989,e=>{var t=e.i(271645),n=e.i(574735),r=e.i(365420),i=e.i(108868),o=e.i(667865),l=e.i(439957),s=e.i(229315),u=e.i(818663),a=e.i(46420),c=e.i(675606),f=e.i(641530),d=e.i(250446),p=e.i(790098),h=e.i(451321),g=e.i(647554),m=e.i(596296),v=e.i(157940),b=e.i(958408);function y(){return!1}e.s(["f",0,function(e,x={}){let{enabled:E=!0,escapeKey:w=!0,outsidePress:S=!0,outsidePressEvent:R="sloppy",referencePress:T=y,bubbles:k,externalTree:C}=x,I="rootStore"in e?e.rootStore:e,A=I.useState("open"),O=I.useState("floatingElement"),{dataRef:M}=I.context,j=(0,a.$)(C),W=(0,o.f)("function"==typeof S?S:()=>!1),P="function"==typeof S?W:S,Y=!1!==P,B=(0,o.f)(()=>R),{escapeKey:X,outsidePress:$}={escapeKey:"boolean"==typeof k?k:k?.escapeKey??!1,outsidePress:"boolean"==typeof k?k:k?.outsidePress??!0},V=t.useRef(!1),D=t.useRef(!1),F=t.useRef(!1),H=t.useRef(!1),U=t.useRef(""),N=t.useRef(null),q=(0,l.e)(),z=(0,l.e)(),G=(0,o.f)(()=>{z.clear(),M.current.insideReactTree=!1}),K=(0,o.f)(e=>{let t=M.current.floatingContext?.nodeId;return(j?(0,b.Q)(j.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),L=(0,o.f)(e=>(0,m.V)(e,I.select("floatingElement"))||(0,m.V)(e,I.select("domReferenceElement"))),Z=(0,o.f)(e=>{T()&&I.setOpen(!1,(0,c.j)(f.f.triggerPress,e.nativeEvent))}),_=(0,o.f)(e=>{if(!A||!E||!w||"Escape"!==e.key||H.current||!X&&K("__escapeKeyBubbles"))return;let t=(0,v.M)(e)?e.nativeEvent:e,n=(0,c.j)(d.f.escapeKey,t);I.setOpen(!1,n),n.isCanceled||e.preventDefault(),X||n.isPropagationAllowed||e.stopPropagation()}),Q=(0,o.f)(()=>{M.current.insideReactTree=!0,z.start(0,G)}),J=(0,o.f)(e=>{if(!A||!E||0!==e.button)return;let t=(0,g.Z)(e.nativeEvent);(0,g.I)(I.select("floatingElement"),t)&&(V.current||(V.current=!0,D.current=!1))}),ee=(0,o.f)(e=>{!A||!E||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&V.current&&(D.current=!0)});t.useEffect(()=>{if(!A||!E)return G;M.current.__escapeKeyBubbles=X,M.current.__outsidePressBubbles=$;let e=new l.U,t=new l.U;function o(){F.current=!0,t.start(0,()=>{F.current=!1})}function a(){V.current=!1,D.current=!1}function f(){let e=U.current,t=B(),n="function"==typeof t?t():t;return"string"==typeof n?n:n["pen"!==e&&e?e:"mouse"]}function d(e){let t=M.current.floatingContext?.nodeId,n=j&&(0,b.Q)(j.nodesRef.current,t).some(t=>(0,m.V)(e,t.context?.elements.floating));return L(e)||n}function v(e){let n;if("intentional"===(n=f())&&"click"!==e.type||"sloppy"===n&&"click"===e.type){"click"===e.type||L(e)||(t.clear(),F.current=!1),G();return}if(M.current.insideReactTree)return void G();let r=(0,g.Z)(e),o=`[${(0,h.f)("inert")}]`,l=(0,s.m)(r)?r.getRootNode():null,u=Array.from(((0,s.R)(l)?l:(0,i.f)(I.select("floatingElement"))).querySelectorAll(o)),a=I.context.triggerElements;if(r&&(a.hasElement(r)||a.hasMatchingElement(e=>(0,g.I)(e,r))))return;let v=(0,s.m)(r)?r:null;for(;v&&!(0,s.Z)(v);){let e=(0,s.J)(v);if((0,s.Z)(e)||!(0,s.m)(e))break;v=e}if(!(u.length&&(0,s.m)(r)&&!(0,m.X)(r)&&!(0,g.I)(r,I.select("floatingElement"))&&u.every(e=>!(0,g.I)(v,e)))){if((0,s.E)(r)&&!("touches"in e)){let t=(0,s.Z)(r),n=(0,s.X)(r),i=/auto|scroll/,o=t||i.test(n.overflowX),l=t||i.test(n.overflowY),u=o&&r.clientWidth>0&&r.scrollWidth>r.clientWidth,a=l&&r.clientHeight>0&&r.scrollHeight>r.clientHeight,c="rtl"===n.direction,f=a&&(c?e.offsetX<=r.offsetWidth-r.clientWidth:e.offsetX>r.clientWidth),d=u&&e.offsetY>r.clientHeight;if(f||d)return}if(!d(e)){if("intentional"===f()&&F.current){t.clear(),F.current=!1;return}"function"==typeof P&&!P(e)||K("__outsidePressBubbles")||(I.setOpen(!1,(0,c.j)(p.f.outsidePress,e)),G())}}}function y(e){if("sloppy"!==f()||!I.select("open")||!E||L(e))return;let t=e.touches[0];t&&(N.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},q.start(1e3,()=>{N.current&&(N.current.dismissOnTouchEnd=!1,N.current.dismissOnMouseDown=!1)}))}function x(e,t){let r=(0,g.Z)(e);if(!r)return;let i=(0,n.f)(r,e.type,()=>{t(e),i()})}function S(e){q.clear(),"pointerdown"===e.type&&(U.current=e.pointerType),("mousedown"!==e.type||!N.current||N.current.dismissOnMouseDown)&&x(e,e=>{if("pointerdown"===e.type)"sloppy"!==f()||"touch"===e.pointerType||!I.select("open")||!E||L(e)||v(e);else v(e)})}function R(e){if(!V.current)return;let n=D.current;if(a(),"intentional"===f()){if("pointercancel"===e.type){n&&o();return}d(e)||(n?o():("function"!=typeof P||P(e))&&(t.clear(),F.current=!0,G()))}}function T(e){if("sloppy"!==f()||!N.current||L(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-N.current.startX),r=Math.abs(t.clientY-N.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(N.current.dismissOnTouchEnd=!0),i>10&&(v(e),q.clear(),N.current=null)}function k(e){"sloppy"!==f()||!N.current||L(e)||(N.current.dismissOnTouchEnd&&v(e),q.clear(),N.current=null)}let C=(0,i.f)(O),W=(0,r.f)(w&&(0,r.f)((0,n.f)(C,"keydown",_),(0,n.f)(C,"compositionstart",function(){e.clear(),H.current=!0}),(0,n.f)(C,"compositionend",function(){e.start(5*!!u.f.engine.webkit,()=>{H.current=!1})})),Y&&(0,r.f)((0,n.f)(C,"click",S,!0),(0,n.f)(C,"pointerdown",S,!0),(0,n.f)(C,"pointerup",R,!0),(0,n.f)(C,"pointercancel",R,!0),(0,n.f)(C,"mousedown",S,!0),(0,n.f)(C,"mouseup",R,!0),(0,n.f)(C,"touchstart",function(e){U.current="touch",x(e,y)},!0),(0,n.f)(C,"touchmove",function(e){x(e,T)},!0),(0,n.f)(C,"touchend",function(e){x(e,k)},!0)));return()=>{W(),e.clear(),t.clear(),a(),F.current=!1,G()}},[M,O,w,Y,P,A,E,X,$,_,G,B,K,L,j,I,q]);let et=t.useMemo(()=>({onKeyDown:_,onPointerDown:Z,onClick:Z}),[_,Z]),en=t.useMemo(()=>({onKeyDown:_,onPointerDown:ee,onMouseDown:ee,onClickCapture:Q,onMouseDownCapture(e){Q(),J(e)},onPointerDownCapture(e){Q(),J(e)},onMouseUpCapture:Q,onTouchEndCapture:Q,onTouchMoveCapture:Q}),[_,Q,J,ee]);return t.useMemo(()=>E?{reference:et,floating:en,trigger:et}:{},[E,et,en])}])},350527,e=>{var t=e.i(271645),n=e.i(146376),r=e.i(229315),i=e.i(156341);e.s(["f",0,function(e){let{popupStore:o,treatPopupAsFloatingElement:l=!1,floatingRootContext:s,floatingId:u,nested:a,onOpenChange:c}=e,f=o.useState("open"),d=o.useState("activeTriggerElement"),p=o.useState(l?"popupElement":"positionerElement"),h=o.context.triggerElements,g=t.useRef(null);void 0===s&&null===g.current&&(g.current=new i.f({open:f,transitionStatus:void 0,referenceElement:d,floatingElement:p,triggerElements:h,onOpenChange:c,floatingId:u,syncOnly:!0,nested:a}));let m=s??g.current;return o.useSyncedValue("floatingId",u),(0,n.f)(()=>{let e={open:f,floatingId:u,referenceElement:d,floatingElement:p};(0,r.m)(d)&&(e.domReferenceElement=d),m.state.positionReference===m.state.referenceElement&&(e.positionReference=d),m.update(e)},[f,u,d,p,m]),m.context.onOpenChange=c,m.context.nested=a,m}])},596296,870189,449055,e=>{var t=e.i(229315),n=e.i(179214);e.s(["f",0,n],870189);var n=n;let r="data-base-ui-focusable",i="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";e.s(["e",0,"ArrowDown","b",0,"ArrowLeft","q",0,"ArrowRight","V",0,"ArrowUp","Q",0,r,"n",0,i],449055);var o=e.i(647554);function l(e){return(0,t.E)(e)&&e.matches(i)}e.s(["G",0,function(e){return e?e.hasAttribute(r)?e:e.querySelector(`[${r}]`)||e:null},"V",0,function(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))},"W",0,function(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${i}`)!=null},"X",0,function(e){return e.matches("html,body")},"x",0,function(e,n){if(!(0,t.m)(e))return!1;if(n.hasElement(e))return!e.hasAttribute("data-trigger-disabled");for(let[,t]of n.entries())if((0,o.I)(t,e))return!t.hasAttribute("data-trigger-disabled");return!1},"J",0,function(e){return!!e&&"combobox"===e.getAttribute("role")&&l(e)},"Q",0,l,"F",0,function(e){if(!e||n.env.jsdom)return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}],596296)},503596,e=>{var t=e.i(956789);let n=0;e.s(["f",0,function(e,r={}){let{preventScroll:i=!1,sync:o=!1,shouldFocus:l}=r;function s(){(!l||l())&&e?.focus({preventScroll:i})}if(cancelAnimationFrame(n),o)return s(),t.x;let u=requestAnimationFrame(s);return n=u,()=>{n===u&&(cancelAnimationFrame(u),n=0)}}])},157940,e=>{var t=e.i(522162),n=e.i(870189);e.s(["D",0,function(e){let t=e.type;return"click"===t||"mousedown"===t||"keydown"===t||"keyup"===t},"J",0,function(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)},"M",0,function(e){return"nativeEvent"in e},"E",0,function(e){return""===e.pointerType&&!!e.isTrusted||(t.f.os.android&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)},"$",0,function(e){return!n.f.env.jsdom&&(!t.f.os.android&&0===e.width&&0===e.height||t.f.os.android&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)},"Y",0,function(e){e.preventDefault(),e.stopPropagation()}])},958408,e=>{e.s(["V",0,function(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n},"Q",0,function e(t,n,r=!0){return t.filter(e=>e.parentId===n).flatMap(n=>[...!r||n.context?.open?[n]:[],...e(t,n.id,r)])}])},383976,e=>{var t=e.i(229315),n=e.i(108868),r=e.i(647554),i=e.i(621082);function o(e){for(let n of Array.from(e.children))if("summary"===(0,t.A)(n))return n;return null}function l(e){let n=e?(0,t.A)(e):"";return null!=e&&e.matches('a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]')&&("summary"!==n||null!=e.parentElement&&"details"===(0,t.A)(e.parentElement)&&o(e.parentElement)===e)&&("details"!==n||null==o(e))&&("input"!==n||"hidden"!==e.type)}function s(e){if(!l(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let n=e;n;n=function(e){let n=e.assignedSlot;if(n)return n;if(e.parentElement)return e.parentElement;let r=e.getRootNode();return(0,t.R)(r)?r.host:null}(n)){let l=n!==e,s="slot"===(0,t.A)(n);if(n.hasAttribute("inert")||l&&"details"===(0,t.A)(n)&&!n.open&&!function(e,t){let n=o(t);return!!n&&(e===n||(0,r.I)(n,e))}(e,n)||n.hasAttribute("hidden")||!s&&!function(e,n){let r=(0,t.X)(e);return n?"none"!==r.display:(0,i.v)(e,r)}(n,l))return!1}return!0}function u(e){let n=e.tabIndex;if(n<0){let n=(0,t.A)(e);if("details"===n||"audio"===n||"video"===n||(0,t.E)(e)&&e.isContentEditable)return 0}return n}function a(e){return"input"!==(0,t.A)(e)?null:"radio"===e.type&&""!==e.name?e:null}function c(e){if((0,t.E)(e)&&"slot"===(0,t.A)(e)){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return(0,t.E)(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function f(e){let t=[];return!function e(t,n){c(t).forEach(t=>{l(t)&&n.push(t),e(t,n)})}(e,t),t.filter(s)}function d(e){let t=f(e);return t.filter(e=>u(e)>=0&&function(e,t){let n=a(e);if(!n)return!0;let r=t.find(e=>{let t=a(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=a(e);return t?.name===n.name&&t.form===n.form})===n}(e,t))}function p(e,t){let i=d(e),o=i.length;if(0===o)return;let l=(0,r.T)((0,n.f)(e)),s=i.indexOf(l);return i[-1===s?1===t?0:o-1:s+t]}function h(e,t){if(!e)return null;let r=d((0,n.f)(e).body),i=r.length;if(0===i)return null;let o=r.indexOf(e);return -1===o?null:r[(o+t+i)%i]}e.s(["r",0,function(e){d(e).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})},"d",0,function(e){let n=[];!function e(n,r,i){c(n).forEach(n=>{(0,t.E)(n)&&n.matches(r)&&i.push(n),e(n,r,i)})}(e,"[data-tabindex]",n),n.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})},"J",0,f,"O",0,function(e){return p((0,n.f)(e).body,1)||e},"B",0,function(e){return p((0,n.f)(e).body,-1)||e},"W",0,function(e){return h(e,1)},"E",0,function(e){return h(e,-1)},"A",0,function(e,t){let n=t||e.currentTarget,i=e.relatedTarget;return!i||!(0,r.I)(n,i)},"m",0,function(e){return s(e)&&u(e)>=0},"T",0,d])},638396,e=>{e.s(["j",0,"data-base-ui-click-trigger","e",0,{style:{transition:"none"}},"B",0,{fallbackAxisSide:"none"},"K",0,500,"n",0,{fallbackAxisSide:"end"},"g",0,500,"Z",0,{clipPath:"inset(50%)",position:"fixed",top:0,left:0}])},250446,e=>{var t=e.i(216856);e.s(["f",0,t])},6304,e=>{var t=e.i(216856);e.s(["f",0,t])},790098,451321,e=>{var t=e.i(216856);e.s(["f",0,t],790098),e.s(["f",0,function(e){return`data-base-ui-${e}`}],451321)},236512,e=>{var t=e.i(216856);e.s(["f",0,t])},422428,e=>{var t=e.i(216856);e.s(["f",0,t])},152535,e=>{e.i(247167);var t=e.i(271645),n=e.i(146376),r=e.i(431773),i=e.i(818663),o=e.i(502077),l=e.i(843476);let s=t.forwardRef(function(e,s){let[u,a]=t.useState();return(0,n.f)(()=>{r.f.screenReader.voiceOver&&i.f.engine.webkit&&a("button")},[]),(0,l.jsx)("span",{...e,ref:s,style:o.p,"aria-hidden":!u||void 0,...{tabIndex:0,role:u},"data-base-ui-focus-guard":""})});e.s(["f",0,s])},426,e=>{e.i(247167);var t=e.i(271645),n=e.i(843476);let r=t.forwardRef(function(e,t){let r,{cutout:i,...o}=e;if(i){let e=i.getBoundingClientRect();r=`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,n.jsx)("div",{ref:t,role:"presentation","data-base-ui-inert":"",...o,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:r}})});e.s(["f",0,r])},405005,e=>{var t,n=e.i(209407);(t={}).open="data-open",t.closed="data-closed",t[t.startingStyle=n.S.startingStyle]="startingStyle",t[t.endingStyle=n.S.endingStyle]="endingStyle",t.anchorHidden="data-anchor-hidden",t.side="data-side",t.align="data-align";let r={"data-popup-open":""},i={"data-popup-open":"","data-pressed":""},o={"data-open":""},l={"data-closed":""},s={"data-anchor-hidden":""},u={open:e=>e?o:l,anchorHidden:e=>e?s:null},a={...u,...n.T};e.s(["E",0,u,"M",0,a,"f",0,{open:e=>e?i:null},"J",0,{open:e=>e?r:null}])},264111,e=>{var t=e.i(271645),n=e.i(174080),r=e.i(956789),i=e.i(883977),o=e.i(667865),l=e.i(146376),s=e.i(388940),u=e.i(449055),a=e.i(46420),c=e.i(350527),f=e.i(223910),d=e.i(137584),p=e.i(675606),h=e.i(422428),g=e.i(236512),m=e.i(641530),v=e.i(250446),b=e.i(380025);let y={tabIndex:-1,[u.Q]:""};function x(e,t,n,r=!1){t?e.preventUnmountingOnClose=!1:r&&(e.preventUnmountingOnClose=!0);let i=n?.id??null;(i||t)&&(e.activeTriggerId=i,e.activeTriggerElement=n??null)}function E(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}e.s(["X",0,y,"d",0,function({handle:e,store:t}){return(0,l.f)(()=>e.attachStore(t),[e,t]),null},"c",0,function(e,t,r,i={}){let o=r.reason,l=o===h.f.triggerHover,s=t&&o===g.f.triggerFocus,u=!t&&(o===m.f.triggerPress||o===v.f.escapeKey),a=E(r);if(e.context.onOpenChange?.(t,r),r.isCanceled)return;i.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,r);let c=()=>{let n={...i.extraState,open:t};s?n.instantType="focus":u?n.instantType="dismiss":l&&(n.instantType=void 0),x(n,t,r.trigger,a()),e.update(n)};l?n.flushSync(c):c()},"x",0,E,"H",0,function(e){return t=>"touch"!==t||e.current},"s",0,x,"z",0,function(e,n={}){let{closeOnActiveTriggerUnmount:r=!1}=n,i=t.useRef(null),o=e.useState("open"),s=e.useState("triggerCount"),u=e.useState("activeTriggerId"),a=e.useState("activeTriggerElement");(0,l.f)(()=>{if(!o){i.current=null,0!==e.state.triggerCount&&e.set("triggerCount",0);return}let t=e.context.triggerElements.size,n={};e.state.triggerCount!==t&&(n.triggerCount=t);let l=e.select("activeTriggerId"),s=null;if(l){let t=e.context.triggerElements.getById(l);if(t)i.current=l,t!==e.state.activeTriggerElement&&(n.activeTriggerElement=t);else{for(let[t,r]of e.context.triggerElements.entries())if(r===e.state.activeTriggerElement){n.activeTriggerId=t,n.activeTriggerElement=r,i.current=t;break}void 0===n.activeTriggerId&&(i.current===l?s=l:i.current=null)}}else i.current=null;if(!s&&!l&&1===t){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,r]=t.value;n.activeTriggerId=e,n.activeTriggerElement=r,i.current=e}}(void 0!==n.triggerCount||void 0!==n.activeTriggerId||void 0!==n.activeTriggerElement)&&e.update(n),s&&r&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===s&&!e.context.triggerElements.getById(s)){let t=(0,p.j)(b.f.none);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[o,e,s,u,a,r])},"L",0,function(e,t,n){let{mounted:r,setMounted:i,transitionStatus:l}=(0,f.f)(e),s=t.useState("preventUnmountingOnClose"),u=!e&&s;t.useSyncedValues({mounted:r,transitionStatus:l,preventUnmountingOnClose:u});let a=(0,o.f)(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return(0,d.f)({enabled:r&&!e&&!u,open:e,ref:t.context.popupRef,onComplete(){e||a()}}),{forceUnmount:a,transitionStatus:l}},"y",0,function(e,t){e.useSyncedValues(t),(0,l.f)(()=>()=>{e.update({activeTriggerProps:r.w,inactiveTriggerProps:r.w,popupProps:r.w})},[e])},"_",0,function(e,t=!1){let n=(0,i.f)(),r=null!=(0,a.G)(),o=(0,s.useRefWithInit)(()=>e(n,r)).current;return(0,c.f)({popupStore:o,treatPopupAsFloatingElement:t,floatingRootContext:o.state.floatingRootContext,floatingId:n,nested:r,onOpenChange:o.setOpen}),o},"e",0,function(e,t){(0,l.f)(()=>{t||null===e.state.openMethod||e.set("openMethod",null)},[t,e]),(0,l.f)(()=>()=>{null!==e.state.openMethod&&e.set("openMethod",null)},[e])},"F",0,function(e,n,r,i){let s,u,a=r.useState("isMountedByTrigger",e),c=(s=t.useRef(null),u=t.useRef(null),t.useCallback(t=>{if(void 0===e)return;let n=!1;if(null!==s.current){let e=s.current,t=u.current,i=r.context.triggerElements.getById(e);t&&i===t&&(r.context.triggerElements.delete(e),n=!0),s.current=null,u.current=null}if(null!==t&&(s.current=e,u.current=t,r.context.triggerElements.add(e,t),n=!0),n){let e=r.context.triggerElements.size;r.select("open")&&r.state.triggerCount!==e&&r.set("triggerCount",e)}},[r,e])),f=(0,o.f)(t=>{let n=r.select("open"),o=r.select("activeTriggerId");o===e?r.update({activeTriggerElement:t,...n?i:null}):null==o&&n&&r.update({activeTriggerId:e,activeTriggerElement:t,...i})}),d=t.useCallback(e=>{c(e),e&&f(e)},[c,f]);return(0,l.f)(()=>{a&&r.update({activeTriggerElement:n.current,...i})},[a,r,n,...Object.values(i)]),{registerTrigger:d,isMountedByThisTrigger:a}}])},990627,e=>{e.i(247167),e.s(["f",0,class{constructor(){this.idMap=new Map}add(e,t){this.idMap.set(e,t)}delete(e){this.idMap.delete(e)}hasElement(e){for(let t of this.idMap.values())if(t===e)return!0;return!1}hasMatchingElement(e){for(let t of this.idMap.values())if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}}])},896499,e=>{let t;var n=e.i(271645),r=e.i(388940);let i=[];function o(e){let n=(n,o)=>{let s,u=(0,r.useRefWithInit)(l).current;try{for(let e of(t=u,i))e.before(u);for(let t of(s=e(n,o),i))t.after(u);u.didInitialize=!0}finally{t=void 0}return s};return n.displayName=e.displayName||e.name,n}function l(){return{didInitialize:!1}}e.s(["U",0,o,"u",0,function(e){return n.forwardRef(o(e))},"_",0,function(){return t},"V",0,function(e){i.push(e)}])},365420,e=>{e.s(["f",0,function(...e){return()=>{for(let t=0;t{let{userAgent:t,platform:n,maxTouchPoints:r}="u"1,s="android",u=o===s||i.includes(s),a=!l&&o.startsWith("mac"),c=o.startsWith("win"),f=!u&&/^(linux|chrome os)/.test(o),d=a||l;e.s(["android",0,u,"apple",0,d,"ios",0,l,"linux",0,f,"mac",0,a,"windows",0,c],503720);var p=e.i(503720);let h="u">typeof CSS&&!!CSS.supports?.("-webkit-backdrop-filter:none"),g=!h&&i.includes("firefox"),m=!h&&i.includes("chrom");e.s(["blink",0,m,"gecko",0,g,"webkit",0,h],879850);var v=e.i(879850);e.s(["voiceOver",0,d],999170);var b=e.i(999170);let y=https://www.cbtnuggets.com/jsdom|happydom/.test(i);e.s(["jsdom",0,y],736174);var x=e.i(736174);e.s(["engine",0,v,"env",0,x,"os",0,p,"screenReader",0,b],179214)},818663,e=>{var t=e.i(179214);e.s(["f",0,t])},522162,e=>{var t=e.i(179214);e.s(["f",0,t])},431773,e=>{var t=e.i(179214);e.s(["f",0,t])},301252,334346,e=>{var t=e.i(271645),n=e.i(802239),r=e.i(430224),i=e.i(958321),o=e.i(896499);let l=(0,i.f)(19)?function(e,r,i,l,s){let u,a=(0,o._)();if(!a){let o;return o=t.useCallback(()=>r(e.getSnapshot(),i,l,s),[e,r,i,l,s]),(0,n.useSyncExternalStore)(e.subscribe,o,o)}let c=a.syncIndex;return a.syncIndex+=1,a.didInitialize?(u=a.syncHooks[c]).store===e&&u.selector===r&&Object.is(u.a1,i)&&Object.is(u.a2,l)&&Object.is(u.a3,s)||(u.store!==e&&(a.didChangeStore=!0),u.store=e,u.selector=r,u.a1=i,u.a2=l,u.a3=s,u.value=r(e.getSnapshot(),i,l,s)):(u={store:e,selector:r,a1:i,a2:l,a3:s,value:r(e.getSnapshot(),i,l,s)},a.syncHooks.push(u)),u.value}:function(e,t,n,i,o){return(0,r.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,i,o))};function s(e,t,n,r,i){return l(e,t,n,r,i)}(0,o.V)({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,n.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}}),e.s(["f",0,s],334346);class u{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t]))return void this.setState({...this.state,...e})}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return s(this,e,t,n,r)}}var a=e.i(667865),c=e.i(146376),f=e.i(956789);e.s(["f",0,class extends u{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,n){t.useDebugValue(e);let r=this;(0,c.f)(()=>{r.state[e]!==n&&r.set(e,n)},[r,e,n])}useSyncedValueWithCleanup(e,t){let n=this;(0,c.f)(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this,n=Object.values(e);(0,c.f)(()=>{t.update(e)},[t,...n])}useControlledProp(e,n){t.useDebugValue(e);let r=this,i=void 0!==n;(0,c.f)(()=>{i&&!Object.is(r.state[e],n)&&r.setState({...r.state,[e]:n})},[r,e,n,i])}select(e,t,n,r){return(0,this.selectors[e])(this.state,t,n,r)}useState(e,n,r,i){return t.useDebugValue(e),s(this,this.selectors[e],n,r,i)}useContextCallback(e,n){t.useDebugValue(e);let r=(0,a.f)(n??f.x);this.context[e]=r}useStateSetter(e){let n=t.useRef(void 0);return void 0===n.current&&(n.current=t=>{this.set(e,t)}),n.current}observe(e,t){let n,r=(n="function"==typeof e?e:this.selectors[e])(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}}],301252)},145484,e=>{var t=e.i(229315),n=e.i(574735),r=e.i(818663),i=e.i(522162),o=e.i(108868),l=e.i(333848),s=e.i(146376),u=e.i(439957),a=e.i(708445);let c={},f={},d="";function p(e,n){return(0,t.B)(e)?e:n}function h(e,t,n){return/hidden|clip/.test(e.getComputedStyle(p(t,n)).overflowY)}let g=new class{lockCount=0;restore=null;timeoutLock=u.U.create();timeoutUnlock=u.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,s,u;if(0===this.lockCount||null!==this.restore)return;let g=(0,o.f)(e),m=g.documentElement,v=g.body,b=(0,l.f)(m);if(h(b,m,v)){let t=new b.MutationObserver(()=>{h(b,m,v)||(t.disconnect(),this.restore=null,this.lock(e))}),n={attributes:!0};t.observe(m,n),t.observe(v,n),this.restore=()=>t.disconnect();return}let y=i.f.os.ios||!function(e){if("u"0}(e);this.restore=y?(u={overflowY:(s=p((t=(0,o.f)(e)).documentElement,t.body)).style.overflowY,overflowX:s.style.overflowX},Object.assign(s.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(s.style,u)}):function(e){let t=(0,o.f)(e),i=t.documentElement,s=t.body,u=(0,l.f)(i),h=0,g=0,m=!1,v=a.$.create();if(r.f.engine.webkit&&(u.visualViewport?.scale??1)!==1)return()=>{};function b(){let t=u.getComputedStyle(i),n=u.getComputedStyle(s),r=(t.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";h=i.scrollTop,g=i.scrollLeft,c={scrollbarGutter:i.style.scrollbarGutter,overflowY:i.style.overflowY,overflowX:i.style.overflowX},d=i.style.scrollBehavior,f={position:s.style.position,height:s.style.height,width:s.style.width,boxSizing:s.style.boxSizing,overflowY:s.style.overflowY,overflowX:s.style.overflowX,scrollBehavior:s.style.scrollBehavior};let l=i.scrollHeight>i.clientHeight,a=i.scrollWidth>i.clientWidth,v="scroll"===t.overflowY||"scroll"===n.overflowY,b="scroll"===t.overflowX||"scroll"===n.overflowX,y=Math.max(0,u.innerWidth-s.clientWidth),x=Math.max(0,u.innerHeight-s.clientHeight),E=parseFloat(n.marginTop)+parseFloat(n.marginBottom),w=parseFloat(n.marginLeft)+parseFloat(n.marginRight),S=p(i,s);if(m=function(e){if(!("u">typeof CSS&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||"u"{v.cancel(),y(),"function"==typeof u.removeEventListener&&x()}}(e)}};e.s(["f",0,function(e=!0,t=null){(0,s.f)(()=>{if(e)return g.acquire(t)},[e,t])}])},439957,e=>{var t=e.i(388940),n=e.i(626300);class r{static create(){return new r}currentId=0;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)};disposeEffect=()=>this.clear}e.s(["U",0,r,"e",0,function(){let e=(0,t.useRefWithInit)(r.create).current;return(0,n.f)(e.disposeEffect),e}])},502077,e=>{let t={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},n={...t,position:"fixed",top:0,left:0},r={...t,position:"absolute"};e.s(["p",0,n,"L",0,r])}])})();