PageSourceSearch

https://chatfuel.com/docs/_next/static/immutable/chunks/27i_v_6ks-4si.js

js chatfuel.com collected 2026-09-24 08:26:54 UTC 80,641 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,497561,912899,e=>{"use strict";var t=e.i(210312);e.s(["useControlled",0,function({controlled:e,default:n,name:r,state:i="value"}){let{current:o}=t.useRef(void 0!==e),[l,s]=t.useState(n),a=t.useCallback(e=>{o||s(e)},[]);return[o&&void 0!==e?e:l,a]}],497561);var n=e.i(168862);e.s(["TransitionStatusDataAttributes",0,n],912899)},210242,14472,e=>{"use strict";let t=["top","right","bottom","left"],n=t.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),r=Math.min,i=Math.max,o=Math.round,l=Math.floor,s={left:"right",right:"left",bottom:"top",top:"bottom"};function a(e){return e.split("-")[0]}function u(e){return e.split("-")[1]}function c(e){return"x"===e?"y":"x"}function f(e){return"y"===e?"height":"width"}function d(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function p(e){return c(d(e))}function g(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let m=["left","right"],h=["right","left"],v=["top","bottom"],y=["bottom","top"];function x(e){let t=a(e);return s[t]+e.slice(t.length)}e.s(["clamp",0,function(e,t,n){return i(e,r(t,n))},"createCoords",0,e=>({x:e,y:e}),"evaluate",0,function(e,t){return"function"==typeof e?e(t):e},"floor",0,l,"getAlignment",0,u,"getAlignmentAxis",0,p,"getAlignmentSides",0,function(e,t,n){void 0===n&&(n=!1);let r=u(e),i=p(e),o=f(i),l="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=x(l)),[l,x(l)]},"getAxisLength",0,f,"getExpandedPlacements",0,function(e){let t=x(e);return[g(e),t,g(t)]},"getOppositeAlignmentPlacement",0,g,"getOppositeAxis",0,c,"getOppositeAxisPlacements",0,function(e,t,n,r){let i=u(e),o=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?h:m;return t?m:h;case"left":case"right":return t?v:y;default:return[]}}(a(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(g)))),o},"getOppositePlacement",0,x,"getPaddingObject",0,function(e){var t,n,r,i;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(i=e.left)?i:0}:{top:e,right:e,bottom:e,left:e}},"getSide",0,a,"getSideAxis",0,d,"max",0,i,"min",0,r,"placements",0,n,"rectToClientRect",0,function(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}},"round",0,o,"sides",0,t],210242);var b=e.i(880269);e.s(["getCssDimensions",0,function(e){let t=(0,b.getComputedStyle)(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=(0,b.isHTMLElement)(e),l=i?e.offsetWidth:n,s=i?e.offsetHeight:r;return(o(n)!==l||o(r)!==s)&&(n=l,r=s),{width:n,height:r}}],14472)},763294,e=>{"use strict";var t=e.i(78829),n=e.i(483830);e.s([],365495),e.i(365495);var r=e.i(210312),i=e.i(941637),o=e.i(91871),l=e.i(497561),s=e.i(446045),a=e.i(886437),u=e.i(660530),c=e.i(809622),f=e.i(49465);let d=r.createContext(void 0);function p(){let e=r.useContext(d);if(void 0===e)throw Error((0,f.default)(15));return e}var g=e.i(912899);let m=g.TransitionStatusDataAttributes.startingStyle;g.TransitionStatusDataAttributes.endingStyle;let h={"data-open":""},v={"data-closed":""};var y=e.i(497394);let x={open:e=>e?h:v,...y.transitionStatusMapping},b=r.forwardRef(function(e,t){let{render:f,className:p,defaultOpen:g=!1,disabled:m=!1,onOpenChange:h,open:v,style:y,...b}=e,E=(0,i.useStableCallback)(h),S=function(e){let{open:t,defaultOpen:n=!1,onOpenChange:o,disabled:f}=e,[d,p]=(0,l.useControlled)({controlled:t,default:n,name:"Collapsible",state:"open"}),{mounted:g,setMounted:m,transitionStatus:h}=(0,c.useTransitionStatus)(d,!0,!0),v=(0,s.useBaseUiId)(),[y,x]=r.useState(),b=null===y?void 0:y??v,E=(0,i.useStableCallback)(e=>{let t=!d,n=(0,a.createChangeEventDetails)(u.REASONS.triggerPress,e.nativeEvent);o(t,n),n.isCanceled||p(t)});return r.useMemo(()=>({defaultPanelId:v,disabled:f,handleTrigger:E,mounted:g,open:d,panelId:b,setMounted:m,setOpen:p,setPanelIdState:x,transitionStatus:h}),[v,f,E,g,d,b,m,p,x,h])}({open:v,defaultOpen:g,onOpenChange:E,disabled:m}),w=r.useMemo(()=>({open:S.open,disabled:S.disabled,transitionStatus:S.transitionStatus}),[S.open,S.disabled,S.transitionStatus]),C=r.useMemo(()=>({...S,onOpenChange:E,state:w}),[S,E,w]),R=(0,o.useRenderElement)("div",e,{state:w,ref:t,props:b,stateAttributesMapping:x});return(0,n.jsx)(d.Provider,{value:C,children:R})});var E=e.i(202787);let S={open:e=>e?{"data-panel-open":""}:null,...y.transitionStatusMapping},w=r.forwardRef(function(e,t){let{panelId:n,open:r,handleTrigger:i,state:l,disabled:s}=p(),{className:a,disabled:u=s,render:c,nativeButton:f=!0,style:d,...g}=e,{getButtonProps:m,buttonRef:h}=(0,E.useButton)({disabled:u,focusableWhenDisabled:!0,native:f});return(0,o.useRenderElement)("button",e,{state:l,ref:[t,h],props:[{"aria-controls":r?n:void 0,"aria-expanded":r,onClick:i},g,m],stateAttributesMapping:S})});var C=e.i(645900),R=e.i(358291),T=e.i(953329),O=e.i(167088),P=e.i(117440),A=e.i(517571),M=e.i(479995),k=e.i(67323),I=e.i(954567);let L={height:void 0,width:void 0};function N(e){return{height:e.scrollHeight,width:e.scrollWidth}}function D(e){return e.split(",").map(e=>e.trim()).some(e=>""!==e&&Number.parseFloat(e)>0)}function F(e,t,n){let r=e.style.getPropertyValue(t),i=e.style.getPropertyPriority(t);return e.style.setProperty(t,n),()=>{""===r?e.style.removeProperty(t):e.style.setProperty(t,r,i)}}let j=r.forwardRef(function(e,t){let{className:n,hiddenUntilFound:l,keepMounted:s,render:c,id:f,style:d,...g}
1=e,{defaultPanelId:h,mounted:v,onOpenChange:y,open:b,setMounted:E,setPanelIdState:S,setOpen:w,state:j,transitionStatus:H}=p(),W=f||void 0,V=W??h;(0,C.useIsoLayoutEffect)(()=>(S(e=>W??(null===e?void 0:e)),()=>{S(e=>e===W?null:e)}),[W,S]);let{height:B,props:$,ref:z,shouldPreventOpenAnimation:_,shouldRender:U,transitionStatus:G,width:Y}=function(e){let{externalRef:t,hiddenUntilFound:n,id:o,keepMounted:l,mounted:s,onOpenChange:c,open:f,setMounted:d,setOpen:p,transitionStatus:g}=e,h=r.useRef(null),v=r.useRef(null),[y,x]=r.useState(L),b=r.useRef(L),E=r.useRef(!1),S=r.useRef(f),w=r.useRef(!1),[R,j]=r.useState(!1),H=r.useRef(null),W=(0,O.useMergedRefs)(t,h),V=(0,A.useValueAsRef)(f),B=(0,I.useAnimationsFinished)(h),$=!f&&!s,z=R?"idle":g,_=f&&(S.current||w.current),U=!f&&s&&"css-animation"===v.current&&void 0===y.height&&void 0===y.width?b.current:y,G=n&&$&&"css-animation"!==v.current,Y=(0,i.useStableCallback)((e,t=!0)=>{t&&(b.current=e),x(e)}),q=(0,i.useStableCallback)(()=>{H.current?.(),H.current=null}),K=(0,i.useStableCallback)(e=>{q(),H.current=()=>{H.current=null,e()}}),X=(0,i.useStableCallback)(()=>{f&&s&&"css-animation"===v.current&&(w.current=!0)});(0,C.useIsoLayoutEffect)(()=>{R&&"starting"!==g&&j(!1)},[R,g]),r.useEffect(()=>()=>{X(),q()},[X,q]),(0,C.useIsoLayoutEffect)(()=>{var e,t;let n,r,i,o=h.current;if(!o)return;!f&&H.current&&q();let l=(e=o,t=_,r=((n=(0,M.ownerWindow)(e).getComputedStyle(e)).animationName.split(",").map(e=>e.trim()).some(e=>""!==e&&"none"!==e)||t)&&D(n.animationDuration),i=D(n.transitionDuration),r&&i||i?"css-transition":r?"css-animation":"none");if(v.current=l,f&&"idle"===g&&S.current&&"css-animation"===l){b.current=N(o);return}if(f&&"starting"===g){let e=E.current;if(E.current=!1,"none"===l){Y(N(o)),j(!0);return}if("css-transition"===l){let t=function(e){let t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};function n(){Object.entries(t).forEach(([t,n])=>{""===n?e.style.removeProperty(t):e.style.setProperty(t,n)})}Object.keys(t).forEach(t=>{e.style.setProperty(t,"initial","important")});let r=P.AnimationFrame.request(n);return()=>{P.AnimationFrame.cancel(r),n()}}(o);return Y(N(o)),e&&(K(F(o,"transition-duration","0s")),j(!0)),t}Y(N(o));let t=F(o,"animation-name","none");if(!e)return void t();let n=F(o,"animation-duration","0s");return t(),K(n),void j(!0)}if(!f&&s&&("idle"===g||"starting"===g)){if(S.current=!1,w.current=!1,"none"===l){Y(L,!1),d(!1);return}Y(N(o));return}if("ending"!==g)return;if("none"===l)return void d(!1);let a=N(o);a.height>0||a.width>0?(Y(a),"css-animation"===l&&F(o,"animation-name","none")()):d(!1)},[s,f,q,Y,d,K,_,g]),(0,k.useOpenChangeComplete)({enabled:f&&s&&"idle"===z,open:!0,ref:h,onComplete(){f&&Y(L,!1)}}),r.useEffect(()=>{if(f||!s||"ending"!==z||!h.current)return;let e=new AbortController,t=-1;function n(){V.current||(d(!1),Y(L,!1))}return t=P.AnimationFrame.request(()=>{B(n,e.signal)}),()=>{P.AnimationFrame.cancel(t),e.abort()}},[V,s,f,z,B,Y,d]),(0,C.useIsoLayoutEffect)(()=>{let e=h.current;e&&n&&$&&e.setAttribute("hidden","until-found")},[$,n]),r.useEffect(function(){let e=h.current;if(e)return(0,T.addEventListener)(e,"beforematch",function(e){let t=(0,a.createChangeEventDetails)(u.REASONS.none,e);c(!0,t),t.isCanceled||(E.current=!0,p(!0))})},[c,p]);let J=l||n||s||f;return{height:U.height,props:{...G?{[m]:""}:void 0,hidden:$,id:o},ref:W,shouldPreventOpenAnimation:_,shouldRender:J,transitionStatus:z,width:U.width}}({externalRef:t,hiddenUntilFound:l??!1,id:V,keepMounted:s??!1,mounted:v,onOpenChange:y,open:b,setMounted:E,setOpen:w,transitionStatus:H}),q={...j,transitionStatus:G},K=(0,R.resolveStyle)(d,q),X=(0,o.useRenderElement)("div",{...e,style:void 0},{state:q,ref:z,props:[$,{style:{"--collapsible-panel-height":void 0===B?"auto":`${B}px`,"--collapsible-panel-width":void 0===Y?"auto":`${Y}px`}},g,K?{style:K}:void 0,_?{style:{animationName:"none"}}:void 0],stateAttributesMapping:x});return U?X:null});e.s(["Panel",0,j,"Root",0,b,"Trigger",0,w],303009);var H=e.i(303009),H=H;let W=H.Root,V=H.Trigger;e.s(["Collapsible",0,W,"CollapsibleContent",0,function({children:e,className:r,...i}){return(0,n.jsx)(H.Panel,{...i,className:e=>(0,t.cn)("overflow-hidden [&[hidden]:not([hidden='until-found'])]:hidden h-(--collapsible-panel-height) transition-[height,opacity] data-starting-style:opacity-0 data-starting-style:h-0 data-ending-style:h-0 data-ending-style:opacity-0","function"==typeof r?r(e):r),children:e})},"CollapsibleTrigger",0,V],763294)},996392,805126,652424,628284,268949,964439,25073,302795,492229,704470,548242,4584,96679,600539,652848,e=>{"use strict";e.s(["LinkItem",()=>t7,"baseSlots",()=>ne],996392),e.s(["getLayoutTabs",()=>t5,"isLayoutTabActive",()=>t4,"isLinkItemActive",()=>t9,"useLinkItems",()=>t6],652848);var t=e.i(691981),n=e.i(78829),r=e.i(258159),i=e.i(483830),o=e.i(210312);e.s([],559767),e.i(559767);var l=e.i(977311),s=e.i(407647),a=e.i(144757),u=e.i(49465);let c=o.createContext(void 0);function f(e){let t=o.useContext(c);if(void 0===t&&!e)throw Error((0,u.default)(47));return t}var d=e.i(731735),p=e.i(912769),g=e.i(550804),m=e.i(258188),h=e.i(660530),v=e.i(940491),y=e.i(778045),x=e.i(885309),b=e.i(586390),E=e.i(266341);let S={...x.popupStoreSelectors,disabled:e=>e.disabled,instantType:e=>e.instantType,openMethod:e=>e.openMethod,openChangeReason:e=>e.openChangeReason,modal:e=>e.modal,focusManagerModal:e=>
1e.focusManagerModal,stickIfOpen:e=>e.stickIfOpen,titleElementId:e=>e.titleElementId,descriptionElementId:e=>e.descriptionElementId,openOnHover:e=>e.openOnHover,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin};class w extends p.ReactStore{constructor(e,t,n){const r=new b.PopupTriggerMap;super(C(e,r,t,n),R(r),S)}setOpen=(e,t)=>{let n,r=t.reason===h.REASONS.triggerHover,i=t.reason===h.REASONS.triggerPress&&0===t.event.detail,o=!e&&(t.reason===h.REASONS.escapeKey||null==t.reason),l=(0,y.attachPreventUnmountOnClose)(t),s=this.select("activeTriggerId");if(e||t.reason!==h.REASONS.closePress||null!=t.trigger||null==s||(t.trigger=this.context.triggerElements.getById(s)??this.select("activeTriggerElement")??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let a=()=>{let n=(0,y.createPopupOpenState)(this.state,e,t.trigger,l());n.openChangeReason=t.reason,this.update(n)};r?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(E.PATIENT_CLICK_THRESHOLD,()=>{this.set("stickIfOpen",!1)}
1),d.flushSync(a)):a(),i?n="click":o?n="dismiss":t.reason===h.REASONS.focusOut&&(n="focus"),this.set("instantType",n)}}function C(e,t,n,r=!1){let i={...(0,x.createInitialPopupStoreState)(t,n,r),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,openOnHover:!1,closeDelay:0,adaptiveOrigin:void 0,...e};return i.open&&e?.mounted===void 0&&(i.mounted=!0),i}function R(e){return{popupRef:o.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:o.createRef(),beforeContentFocusGuardRef:o.createRef(),stickIfOpenTimeout:new g.Timeout,triggerElements:e}}var T=e.i(886437);let O=(0,l.fastComponent)(function({props:e}){var t;let n,{children:r,open:l,defaultOpen:s=!1,onOpenChange:a,onOpenChangeComplete:u,modal:f=!1,handle:d,triggerId:p,defaultTriggerId:g=null}=e,m=(t={modal:f,open:s,openProp:l,activeTriggerId:g,triggerIdProp:p},n=(0,y.usePopupRootStore)((e,n)=>new w(t,e,n)),o.useEffect(()=>n.context.stickIfOpenTimeout.disposeEffect(),[n]),n);m.useControlledProp("openProp",l),m.useControlledProp("triggerIdProp",p);let v=m.useState("open"),x=m.useState("mounted"),b=m.useState("payload");m.useContextCallback("onOpenChange",a),m.useContextCallback("onOpenChangeComplete",u),(0,y.usePopupRootSync)(m,v),(0,y.useImplicitActiveTrigger)(m);let{forceUnmount:E}=(0,y.useOpenStateTransitions)(v,m,()=>{m.update({stickIfOpen:!0,openChangeReason:null})});m.useSyncedValues({modal:f}),o.useEffect(()=>{v||m.context.stickIfOpenTimeout.clear()},[m,v]),o.useImperativeHandle(e.actionsRef,()=>({unmount:E,close:()=>m.setOpen(!1,(0,T.createChangeEventDetails)(h.REASONS.imperativeAction))}),[E,m]);let S=v||x;return(0,i.jsxs)(c.Provider,{value:m,children:[d&&(0,i.jsx)(y.PopupHandleAttachment,{handle:d,store:m}),S&&(0,i.jsx)(P,{store:m,modal:f}),"function"==typeof r?r({payload:b}):r]})});function P({store:e,modal:t}){let n=e.useState("floatingRootContext"),r=(0,s.useDismiss)(n,{outsidePressEvent:{mouse:"trap-focus"===t?"sloppy":"intentional",touch:"sloppy"}}),i=r.reference,o=r.floating;return(0,y.usePopupInteractionProps)(e,{activeTriggerProps:i,inactiveTriggerProps:i,popupProps:o}),null}var A=e.i(202787),M=e.i(488515),k=e.i(91871),I=e.i(880269),L=e.i(288430),N=e.i(352915);let D=.1*.1;function F(e,t,n,r,i,o){return r>=t!=o>=t&&e<=(i-n)*(t-r)/(o-r)+n}function j(e,t,n,r,i,o,l,s,a,u){let c=!1;return F(e,t,n,r,i,o)&&(c=!c),F(e,t,i,o,l,s)&&(c=!c),F(e,t,l,s,a,u)&&(c=!c),F(e,t,a,u,n,r)&&(c=!c),c}function H(e,t,n,r,i,o){let l=Math.min(n,i),s=Math.max(n,i),a=Math.min(r,o),u=Math.max(r,o);return e>=l&&e<=s&&t>=a&&t<=u}function W(e={}){let{blockPointerEvents:t=!1}=e,n=new g.Timeout,r=({x:e,y:t,placement:r,elements:i,onClose:o,nodeId:l,tree:s})=>{let a=r?.split("-")[0],u=!1,c=null,f=null,d="u">typeof performance?performance.now():0;return function(r){n.clear();let p=i.domReference,g=i.floating;if(!p||!g||null==a||null==e||null==t)return;let{clientX:m,clientY:h}=r,v=(0,L.getTarget)(r),y="mouseleave"===r.type,x=(0,L.contains)(g,v),b=(0,L.contains)(p,v);if(x&&(u=!0,!y))return;if(b&&(u=!1,!y)){u=!0;return}if(y&&(0,I.isElement)(r.relatedTarget)&&(0,L.contains)(g,r.relatedTarget))return;function E(){return!!(s&&(0,N.getNodeChildren)(s.nodesRef.current,l).length>0)}function S(){E()||(n.clear(),o())}if(E())return;let w=p.getBoundingClientRect(),C=g.getBoundingClientRect(),R=e>C.right-C.width/2,T=t>C.bottom-C.height/2,O=C.width>w.width,P=C.height>w.height,A=(O?w:C).left,M=(O?w:C).right,k=(P?w:C).top,F=(P?w:C).bottom;if("top"===a&&t>=w.bottom-1||"bottom"===a&&t<=w.top+1||"left"===a&&e>=w.right-1||"right"===a&&e<=w.left+1)return void S();let W=!1;switch(a){case"top":W=H(m,h,A,w.top+1,M,C.bottom-1);break;case"bottom":W=H(m,h,A,C.top+1,M,w.bottom-1);break;case"left":W=H(m,h,C.right-1,F,w.left+1,k);break;case"right":W=H(m,h,w.right-1,F,C.left+1,k)}if(W)return;if(u&&(!(m>=w.x)||!(m<=w.x+w.width)||!(h>=w.y)||!(h<=w.y+w.height))||!y&&function(e,t){let n=performance.now(),r=n-d;if(null===c||null===f||0===r)return c=e,f=t,d=n,!1;let i=e-c,o=t-f;return c=e,f=t,d=n,i*i+o*o<r*r*D}(m,h))return void S();let V=!1;switch(a){case"top":{let n=O?.25:2,r=t+.5+1,i=R||O?C.bottom-.5:C.top,o=R?O?C.bottom-.5:C.top:C.bottom-.5;V=j(m,h,O||R?e+n:e-n,r,O?e-n:R?e+n:e-n,r,C.left,i,C.right,o);break}case"bottom":{let n=O?.25:2,r=t-.5,i=R||O?C.top+.5:C.bottom,o=R?O?C.top+.5:C.bottom:C.top+.5;V=j(m,h,O||R?e+n:e-n,r,O?e-n:R?e+n:e-n,r,C.left,i,C.right,o);break}case"left":{let n=P?.25:2,r=e+.5+1,i=T||P?C.right-.5:C.left,o=T?P?C.right-.5:C.left:C.right-.5;V=j(m,h,i,C.top,o,C.bottom,r,P||T?t+n:t-n,r,P?t-n:T?t+n:t-n);break}case"right":{let n=P?.25:2,r=e-.5,i=T||P?C.left+.5:C.right,o=T?P?C.left+.5:C.right:C.left+.5;V=j(m,h,r,P||T?t+n:t-n,r,P?t-n:T?t+n:t-n,i,C.top,o,C.bottom)}}V?u||n.start(40,S):S()}};return r.__options={...e,blockPointerEvents:t},r}e.s(["safePolygon",0,W],805126);var V=e.i(180135),B=e.i(953329),$=e.i(339697),z=e.i(138273),_=e.i(941637),U=e.i(517571),G=e.i(13411),Y=e.i(142649),q=e.i(690435),K=e.i(415967);class X{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new g.Timeout,this.restTimeout=new g.Timeout,this.handleCloseOptions=void 0}static create(){return new X}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose}let J=new WeakMap;function Z(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&J.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),J.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Q(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,o=J.get(n);o&&o!==e&&Z(o),Z(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,J.set(n,e),n.style.pointerEvents="none",r.style.pointerEvents="auto",i.style.pointerEvents="auto"}function ee(e){let t=e.context.dataRef.current,n=(0,q.useRefWithInit)(()=>t.hoverInteractionState??X.create()).current;return t.hoverInteractionState||(t.hoverInteractionState=n),(0,Y.useOnMount)(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function et(e,t,n){let r=null==n||(0,G.isMouseLikePointerType)(n)?"function"==typeof e?e():e:0;return"number"==typeof r?r:r?.[t]}function en(e){return"function"==typeof e?e():e}function er(e,t){return t||"click"===e||"mousedown"===e}e.s(["applySafePolygonPointerEventsMutation",0,Q,"clearSafePolygonPointerEventsMutation",0,Z,"useHoverInteractionSharedState",0,ee],652424);var ei=K;let eo={current:null};function el(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:l=!1,restMs:s=0,move:u=!0,triggerElementRef:c=eo,externalTree:f,isActiveTrigger:p=!0,getHandleCloseContext:g,isClosing:m,shouldOpen:v,guardStaleOpen:y=!1}=t,x="rootStore"in e?e.rootStore:e,{dataRef:b,events:E}=x.context,S=(0,a.useFloatingTree)(f),w=ee(x),C=o.useRef(!1),R=(0,U.useValueAsRef)(i),O=(0,U.useValueAsRef)(r),P=(0,U.useValueAsRef)(s),A=(0,U.useValueAsRef)(n),M=(0,U.useValueAsRef)(v),k=(0,U.useValueAsRef)(m),N=(0,_.useStableCallback)(()=>er(b.current.openEvent?.type,w.interactedInside)),D=(0,_.useStableCallback)(()=>M.current?.()!==!1),F=(0,_.useStableCallback)((e,t,n)=>{let r=x.context.triggerElements;return r.hasElement(t)?!e||!(0,L.contains)(e,t):!!(0,I.isElement)(n)&&r.hasMatchingElement(e=>
1(0,L.contains)(e,n))&&(!e||!(0,L.contains)(e,n))}),j=(0,_.useStableCallback)(()=>{w.handler&&((0,z.ownerDocument)(x.select("domReferenceElement")).removeEventListener("mousemove",w.handler),w.handler=void 0)}),H=(0,_.useStableCallback)(()=>{Z(w)});return p&&(w.handleCloseOptions=i?.__options),o.useEffect(()=>j,[j]),o.useEffect(()=>{if(n)return E.on("openchange",e),()=>{E.off("openchange",e)};function e(e){e.open?C.current=!1:(C.current=e.reason===h.REASONS.triggerHover,j(),w.openChangeTimeout.clear(),w.restTimeout.clear(),w.blockMouseMove=!0,w.restTimeoutPending=!1)}},[n,E,w,j]),o.useEffect(()=>{if(!n)return;function e(t,n=!0){let r=et(O.current,"close",w.pointerType);r?w.openChangeTimeout.start(r,()=>{x.setOpen(!1,(0,T.createChangeEventDetails)(h.REASONS.triggerHover,t)),S?.events.emit("floating.closed",t)}):n&&(w.openChangeTimeout.clear(),x.setOpen(!1,(0,T.createChangeEventDetails)(h.REASONS.triggerHover,t)),S?.events.emit("floating.closed",t))}let t=c.current??(p?x.select("domReferenceElement"):null);if(!(0,I.isElement)(t))return;function r(e){if(w.openChangeTimeout.clear(),w.blockMouseMove=!1,l&&!(0,G.isMouseLikePointerType)(w.pointerType))return;let t=en(P.current),n=et(O.current,"open",w.pointerType),r=(0,L.getTarget)(e),i=e.currentTarget??null,o=x.select("domReferenceElement"),s=i;if((0,I.isElement)(r)&&!x.context.triggerElements.hasElement(r)){for(let e of x.context.triggerElements.elements())if((0,L.contains)(e,r)){s=e;break}}(0,I.isElement)(i)&&(0,I.isElement)(o)&&!x.context.triggerElements.hasElement(i)&&(0,L.contains)(i,o)&&(s=o);let a=null!=s&&F(o,s,r),u=x.select("open"),c=k.current?.()??"ending"===x.select("transitionStatus"),f=!u&&c&&C.current,d=!a&&(0,I.isElement)(s)&&(0,I.isElement)(o)&&(0,L.contains)(o,s)&&f,p=t>0&&!n,g=!u||a;if(a&&(u||f)||d){D()&&x.setOpen(!0,(0,T.createChangeEventDetails)(h.REASONS.triggerHover,e,s));return}!p&&(n?w.openChangeTimeout.start(n,()=>{g&&D()&&x.setOpen(!0,(0,T.createChangeEventDetails)(h.REASONS.triggerHover,e,s))}):g&&D()&&x.setOpen(!0,(0,T.createChangeEventDetails)(h.REASONS.triggerHover,e,s)))}function i(t){if(N())return void H();j();let n=x.select("domReferenceElement"),r=(0,z.ownerDocument)(n);w.restTimeout.clear(),w.restTimeoutPending=!1;let i=b.current.floatingContext??g?.();if(!(0,ei.isTargetInsideEnabledTrigger)(t.relatedTarget,x.context.triggerElements)){if(R.current&&i){x.select("open")||w.openChangeTimeout.clear();let n=c.current;w.handler=R.current({...i,tree:S,x:t.clientX,y:t.clientY,onClose(){H(),j(),A.current&&!N()&&n===x.select("domReferenceElement")&&e(t,!0)}}),r.addEventListener("mousemove",w.handler),w.handler(t);return}"touch"===w.pointerType&&(0,L.contains)(x.select("floatingElement"),t.relatedTarget)||e(t)}}let o=y?(0,B.addEventListener)(t,"mouseout",function(e){(0,L.contains)(t,e.relatedTarget)||(w.openChangeTimeout.clear(),w.restTimeout.clear(),w.restTimeoutPending=!1)}):void 0;return u?(0,$.mergeCleanups)((0,B.addEventListener)(t,"mousemove",r,{once:!0}),(0,B.addEventListener)(t,"mouseenter",r),(0,B.addEventListener)(t,"mouseleave",i),o):(0,$.mergeCleanups)((0,B.addEventListener)(t,"mouseenter",r),(0,B.addEventListener)(t,"mouseleave",i),o)},[j,H,b,O,x,n,R,w,p,F,N,l,u,P,c,S,A,g,k,D,y]),o.useMemo(()=>{if(n)return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,n=e.currentTarget,r=x.select("domReferenceElement"),i=x.select("open"),o=F(r,n,e.target);if(l&&!(0,G.isMouseLikePointerType)(w.pointerType))return;if(i&&o&&w.handleCloseOptions?.blockPointerEvents){let e=x.select("floatingElement");if(e){let t=w.handleCloseOptions?.getScope?.()??n.ownerDocument.body;Q(w,{scopeElement:t,referenceElement:n,floatingElement:e})}}let s=en(P.current);function a(){if(w.restTimeoutPending=!1,N())return;let e=x.select("open");!w.blockMouseMove&&(!e||o)&&D()&&x.setOpen(!0,(0,T.createChangeEventDetails)(h.REASONS.triggerHover,t,n))}(!i||o)&&0!==s&&(!o&&w.restTimeoutPending&&e.movementX**2+e.movementY**2<2||(w.restTimeout.clear(),"touch"===w.pointerType?d.flushSync(()=>{a()}):o&&i?a():(w.restTimeoutPending=!0,w.restTimeout.start(s,a))))}};function e(e){w.pointerType=e.pointerType}},[n,w,N,F,l,x,P,D])}e.s(["useHoverReferenceInteraction",0,el],628284);var es=e.i(446045),ea=e.i(895600),eu=e.i(294684),ec=e.i(836274),ef=e.i(950444);let ed=(0,l.fastComponentRef)(function(e,t){let n,{render:r,className:l,style:s,disabled:a=!1,nativeButton:c=!0,handle:p,payload:g,openOnHover:m=!1,delay:v=300,closeDelay:x=0,id:b,...S}
1=e,w=f(!0),C=(0,eu.usePopupHandleStore)(p)??w;if(!C)throw Error((0,u.default)(74));let R=(0,es.useBaseUiId)(b),O=C.useState("isTriggerActive",R),P=C.useState("floatingRootContext"),I=C.useState("isOpenedByTrigger",R),N=C.useState("triggerPopupId",R),D=o.useRef(null),{registerTrigger:F,isMountedByThisTrigger:j}=(0,y.useTriggerDataForwarding)(R,D,C,{payload:g,disabled:a,openOnHover:m,closeDelay:x}),H=C.useState("openChangeReason"),B=C.useState("stickIfOpen"),$=C.useState("openMethod"),z=C.useState("focusManagerModal"),_=el(P,{enabled:!a&&m&&("touch"!==$||H!==h.REASONS.triggerPress),mouseOnly:!0,move:!1,handleClose:W(),restMs:v,delay:{close:x},triggerElementRef:D,isActiveTrigger:O,isClosing:()=>"ending"===C.select("transitionStatus")}),U=(0,V.useClick)(P,{stickIfOpen:B}),G=(0,ef.useOpenMethodTriggerProps)(()=>C.select("open"),e=>{C.set("openMethod",e)}),Y=C.useState("triggerProps",j),{getButtonProps:q,buttonRef:K}=(0,A.useButton)({disabled:a,native:c}),{preFocusGuardRef:X,handlePreFocusGuardFocus:J,handleFocusTargetFocus:Z}={preFocusGuardRef:n=o.useRef(null),handlePreFocusGuardFocus:function(e){d.flushSync(()=>{C.setOpen(!1,(0,T.createChangeEventDetails)(h.REASONS.focusOut,e.nativeEvent,e.currentTarget))});let t=(0,ec.getTabbableBeforeElement)(n.current);t?.focus()},handleFocusTargetFocus:function(e){let t=C.select("positionerElement");if(t&&(0,ec.isOutsideEvent)(e,t))C.context.beforeContentFocusGuardRef.current?.focus();else{d.flushSync(()=>{C.setOpen(!1,(0,T.createChangeEventDetails)(h.REASONS.focusOut,e.nativeEvent,e.currentTarget))});let n=(0,ec.getTabbableAfterElement)(C.context.triggerFocusTargetRef.current||D.current);for(;null!==n&&(0,L.contains)(t,n);){let e=n;if((n=(0,ec.getNextTabbable)(n))===e)break}n?.focus()}}},Q=(0,k.useRenderElement)("button",e,{state:{disabled:a,open:I},ref:[K,t,F,D],props:[U.reference,_,Y,G,{[E.CLICK_TRIGGER_IDENTIFIER]:"",id:R,"aria-haspopup":"dialog","aria-expanded":I,"aria-controls":N},S,q],stateAttributesMapping:{open:e=>e&&H===h.REASONS.triggerPress?M.pressableTriggerOpenStateMapping.open(e):M.triggerOpenStateMapping.open(e)}}),ee=(0,i.jsx)(o.Fragment,{children:Q},R);return j&&!z?(0,i.jsxs)(o.Fragment,{children:[(0,i.jsx)(ea.FocusGuard,{ref:X,onFocus:J}),ee,(0,i.jsx)(ea.FocusGuard,{ref:C.context.triggerFocusTargetRef,onFocus:Z})]}):ee});var ep=e.i(356555);let eg=o.createContext(void 0),em=o.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return f().useState("mounted")||n?(0,i.jsx)(eg.Provider,{value:n,children:(0,i.jsx)(ep.FloatingPortal,{ref:t,...r})}):null});var eh=e.i(872919),ev=e.i(645900);let ey=o.createContext(void 0);function ex(){let e=o.useContext(ey);if(!e)throw Error((0,u.default)(46));return e}var eb=e.i(210242),eE=e.i(479995);function eS(e,t,n){let r,{reference:i,floating:o}=e,l=(0,eb.getSideAxis)(t),s=(0,eb.getAlignmentAxis)(t),a=(0,eb.getAxisLength)(s),u=(0,eb.getSide)(t),c=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,d=i[a]/2-o[a]/2;switch(u){case"top":r={x:c,y:i.y-o.height};break;case"bottom":r={x:c,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:f};break;case"left":r={x:i.x-o.width,y:f};break;default:r={x:i.x,y:i.y}}let p=(0,eb.getAlignment)(t);return p&&(r[s]+=d*("end"===p?1:-1)*(n&&"y"===l?-1:1)),r}async function ew(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:l,elements:s,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=(0,eb.evaluate)(t,e),g=(0,eb.getPaddingObject)(p),m=s[d?"floating"===f?"reference":"floating":f],h=(0,eb.rectToClientRect)(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:a})),v="floating"===f?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,y=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),x=await (null==o.isElement?void 0:o.isElement(y))&&await (null==o.getScale?void 0:o.getScale(y))||{x:1,y:1}
vendor: 6,716 bytes, line 1
1,b=(0,eb.rectToClientRect)(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:a}):v);return{top:(h.top-b.top+g.top)/x.y,bottom:(b.bottom-h.bottom+g.bottom)/x.y,left:(h.left-b.left+g.left)/x.x,right:(b.right-h.right+g.right)/x.x}}let eC=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,s=l.detectOverflow?l:{...l,detectOverflow:ew},a=await (null==l.isRTL?void 0:l.isRTL(t)),u=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=eS(u,r,a),d=r,p=0,g={};for(let n=0;n<o.length;n++){let m=o[n];if(!m)continue;let{name:h,fn:v}=m,{x:y,y:x,data:b,reset:E}=await v({x:c,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:g,rects:u,platform:s,elements:{reference:e,floating:t}});c=null!=y?y:c,f=null!=x?x:f,g[h]={...g[h],...b},E&&p<50&&(p++,"object"==typeof E&&(E.placement&&(d=E.placement),E.rects&&(u=!0===E.rects?await l.getElementRects({reference:e,floating:t,strategy:i}):E.rects),{x:c,y:f}=eS(u,d,a)),n=-1)}return{x:c,y:f,placement:d,strategy:i,middlewareData:g}},eR=new Set(["left","top"]);async function eT(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),l=(0,eb.getSide)(n),s=(0,eb.getAlignment)(n),a="y"===(0,eb.getSideAxis)(n),u=eR.has(l)?-1:1,c=o&&a?-1:1,f=(0,eb.evaluate)(t,e),{mainAxis:d,crossAxis:p,alignmentAxis:g}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&"number"==typeof g&&(p="end"===s?-1*g:g),a?{x:p*c,y:d*u}:{x:d*u,y:p*c}}function eO(e){let t=(0,I.getComputedStyle)(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=(0,I.isHTMLElement)(e),o=i?e.offsetWidth:n,l=i?e.offsetHeight:r,s=(0,eb.round)(n)!==o||(0,eb.round)(r)!==l;return s&&(n=o,r=l),{width:n,height:r,$:s}}function eP(e){return(0,I.isElement)(e)?e:e.contextElement}function eA(e){let t=eP(e);if(!(0,I.isHTMLElement)(t))return(0,eb.createCoords)(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=eO(t),l=(o?(0,eb.round)(n.width):n.width)/r,s=(o?(0,eb.round)(n.height):n.height)/i;return l&&Number.isFinite(l)||(l=1),s&&Number.isFinite(s)||(s=1),{x:l,y:s}}let eM=(0,eb.createCoords)(0);function ek(e){let t=(0,I.getWindow)(e);return(0,I.isWebKit)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eM}function eI(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),l=eP(e),s=(0,eb.createCoords)(1);t&&(r?(0,I.isElement)(r)&&(s=eA(r)):s=eA(e));let a=(void 0===(i=n)&&(i=!1),r&&i&&r===(0,I.getWindow)(l))?ek(l):(0,eb.createCoords)(0),u=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,f=o.width/s.x,d=o.height/s.y;if(l&&r){let e=(0,I.getWindow)(l),t=(0,I.isElement)(r)?(0,I.getWindow)(r):r,n=e,i=(0,I.getFrameElement)(n);for(;i&&t!==n;){let e=eA(i),t=i.getBoundingClientRect(),r=(0,I.getComputedStyle)(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,f*=e.x,d*=e.y,u+=o,c+=l,n=(0,I.getWindow)(i),i=(0,I.getFrameElement)(n)}}return(0,eb.rectToClientRect)({width:f,height:d,x:u,y:c})}function eL(e,t){let n=(0,I.getNodeScroll)(e).scrollLeft;return t?t.left+n:eI((0,I.getDocumentElement)(e)).left+n}function eN(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-eL(e,n),y:n.top+t.scrollTop}}function eD(e,t,n){var r;let i;if("viewport"===t||"layoutViewport"===t)i=function(e,t,n){void 0===n&&(n="viewport");let r="layoutViewport"===n,i=(0,I.getWindow)(e),o=(0,I.getDocumentElement)(e),l=i.visualViewport,s=o.clientWidth,a=o.clientHeight,u=0,c=0;if(l){let e=!(0,I.isWebKit)()||"fixed"===t;r?e||(u=-l.offsetLeft,c=-l.offsetTop):(s=l.width,a=l.height,e&&(u=l.offsetLeft,c=l.offsetTop))}if(0>=eL(o)){let e=o.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(o.clientWidth-t.clientWidth-r),l="stable both-edges"===getComputedStyle(o).scrollbarGutter?i/2:i;l<=25&&(s-=l)}return{width:s,height:a,x:u,y:c}}(e,n,t);else if("document"===t){let t,n,o,l,s,a;r=(0,I.getDocumentElement)(e),t=(0,I.getNodeScroll)(r),n=r.ownerDocument.body,o=(0,eb.max)(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),l=(0,eb.max)(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight),s=-t.scrollLeft+eL(r),a=-t.scrollTop,"rtl"===(0,I.getComputedStyle)(n).direction&&(s+=(0,eb.max)(r.clientWidth,n.clientWidth)-o),i={width:o,height:l,x:s,y:a}}else if((0,I.isElement)(t)){let e,r,o,l,s,a;r=(e=eI(t,!0,"fixed"===n)).top+t.clientTop,o=e.left+t.clientLeft,l=eA(t),s=t.clientWidth*l.x,a=t.clientHeight*l.y,i={width:s,height:a,x:o*l.x,y:r*l.y}}else{let n=ek(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return(0,eb.rectToClientRect)(i)}function eF(e){return"static"===(0,I.getComputedStyle)(e).position}function ej(e,t){if(!(0,I.isHTMLElement)(e)||"fixed"===(0,I.getComputedStyle)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,I.getDocumentElement)(e)===n&&(n=n.ownerDocument.body),n}function eH(e,t){let n=(0,I.getWindow)(e);if((0,I.isTopLayer)(e))return n;if(!(0,I.isHTMLElement)(e)){let t=(0,I.getParentNode)(e);for(;t&&!(0,I.isLastTraversableNode)(t);){if((0,I.isElement)(t)&&!eF(t))return t;t=(0,I.getParentNode)(t)}return n}let r=ej(e,t);for(;r&&(0,I.isTableElement)(r)&&eF(r);)r=ej(r,t);return r&&(0,I.isLastTraversableNode)(r)&&eF(r)&&!(0,I.isContainingBlock)(r)?n:r||(0,I.getContainingBlock)(e)||n}let eW=async function(e){let t=this.getOffsetParent||eH,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=(0,I.isHTMLElement)(t),i=(0,I.getDocumentElement)(t),o="fixed"===n,l=eI(e,!0,o,t),s={scrollLeft:0,scrollTop:0},a=(0,eb.createCoords)(0);if((r||!o)&&(("body"!==(0,I.getNodeName)(t)||(0,I.isOverflowElement)(i))&&(s=(0,I.getNodeScroll)(t)),r)){let e=eI(t,!0,o,t);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}!r&&i&&(a.x=eL(i));let u=!i||r||o?(0,eb.createCoords)(0):eN(i,s);return{x:l.left+s.scrollLeft-a.x-u.x,y:l.top+s.scrollTop-a.y-u.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eV={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,l=(0,I.getDocumentElement)(r),s=!!t&&(0,I.isTopLayer)(t.floating);if(r===l||s&&o)return n;let a={scrollLeft:0,scrollTop:0},u=(0,eb.createCoords)(1),c=(0,eb.createCoords)(0),f=(0,I.isHTMLElement)(r);if((f||!o)&&(("body"!==(0,I.getNodeName)(r)||(0,I.isOverflowElement)(l))&&(a=(0,I.getNodeScroll)(r)),f)){let e=eI(r);
1u=eA(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let d=!l||f||o?(0,eb.createCoords)(0):eN(l,a);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+c.x+d.x,y:n.y*u.y-a.scrollTop*u.y+c.y+d.y}},getDocumentElement:I.getDocumentElement,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o=[..."clippingAncestors"===n?(0,I.isTopLayer)(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=(0,I.getOverflowAncestors)(e,[],!1).filter(e=>(0,I.isElement)(e)&&"body"!==(0,I.getNodeName)(e)),i=null,o="fixed"===(0,I.getComputedStyle)(e).position,l=o?(0,I.getParentNode)(e):e;for(;(0,I.isElement)(l)&&!(0,I.isLastTraversableNode)(l);){let e=(0,I.getComputedStyle)(l),t=(0,I.isContainingBlock)(l),n=i?i.position:o?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?i=e:r=r.filter(e=>e!==l),l=(0,I.getParentNode)(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=eD(t,o[0],i),s=l.top,a=l.right,u=l.bottom,c=l.left;for(let e=1;e<o.length;e++){let n=eD(t,o[e],i);s=(0,eb.max)(n.top,s),a=(0,eb.min)(n.right,a),u=(0,eb.min)(n.bottom,u),c=(0,eb.max)(n.left,c)}return{width:a-c,height:u-s,x:c,y:s}},getOffsetParent:eH,getElementRects:eW,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:n}=eO(e);return{width:t,height:n}},getScale:eA,isElement:I.isElement,isRTL:function(e){return"rtl"===(0,I.getComputedStyle)(e).direction}};function eB(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function e$(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,c=eP(e),f=o||l?[...c?(0,I.getOverflowAncestors)(c):[],...t?(0,I.getOverflowAncestors)(t):[]]:[];f.forEach(e=>{o&&e.addEventListener("scroll",n),l&&e.addEventListener("resize",n)});let d=c&&a?function(e,t,n){let r,i=null,o=(0,I.getDocumentElement)(e);function l(){var e;clearTimeout(r),null==(e=i)||e.disconnect(),i=null}function s(n,a){void 0===n&&(n=!1),void 0===a&&(a=1),l();let u=e.getBoundingClientRect(),{left:c,top:f,width:d,height:p}=u;if(n||t(),!d||!p)return;let g={rootMargin:-(0,eb.floor)(f)+"px "+-(0,eb.floor)(o.clientWidth-(c+d))+"px "+-(0,eb.floor)(o.clientHeight-(f+p))+"px "+-(0,eb.floor)(c)+"px",threshold:(0,eb.max)(0,(0,eb.min)(1,a))||1},m=!0;function h(t){let n=t[0].intersectionRatio;if(!eB(u,e.getBoundingClientRect()))return s();if(n!==a){if(!m)return s();n?s(!1,n):r=setTimeout(()=>{s(!1,1e-7)},1e3)}m=!1}try{i=new IntersectionObserver(h,{...g,root:o.ownerDocument})}catch(e){i=new IntersectionObserver(h,g)}i.observe(e)}let a=(0,I.getWindow)(e),u=()=>s(n);return a.addEventListener("resize",u),s(!0),()=>{a.removeEventListener("resize",u),l()}}(c,n,l):null,p=-1,g=null;s&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&g&&t&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),c&&!u&&g.observe(c),t&&g.observe(t));let m=u?eI(e):null;return u&&function t(){let r=eI(e);m&&!eB(m,r)&&n(),m=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;f.forEach(e=>{o&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=g)||e.disconnect(),g=null,u&&cancelAnimationFrame(i)}}var ez="u">typeof document?o.useLayoutEffect:function(){};function e_(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!e_(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!e_(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eU(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eG(e,t){let n=eU(e);return Math.round(t*n)/n}function eY(e){let t=o.useRef(e);return ez(()=>{t.current=e}),t}var eq=e.i(466494),eK=e.i(983170);function eX(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=(0,eq.useId)(),o=null!=(0,a.useFloatingParentNodeId)(),l=(0,q.useRefWithInit)(()=>new eK.FloatingRootStore({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new b.PopupTriggerMap,floatingId:i,syncOnly:!1,nested:o})).current;return(0,ev.useIsoLayoutEffect)(()=>{let e={open:t,floatingId:i};void 0!==r.reference&&(e.referenceElement=r.reference,e.domReferenceElement=(0,I.isElement)(r.reference)?r.reference:null),void 0!==r.floating&&(e.floatingElement=r.floating),l.update(e)},[t,i,r.reference,r.floating,l]),l.context.onOpenChange=n,l.context.nested=o,l}function eJ(e){return eZ(e,e.rootContext)}function eZ(e,t){let{nodeId:n,externalTree:r}=e,i=t.useState("referenceElement"),l=t.useState("floatingElement"),s=t.useState("domReferenceElement"),u=t.useState("open"),c=t.useState("floatingId"),[f,p]=o.use
1State(null),[g,m]=o.useState(void 0),[h,v]=o.useState(void 0),y=o.useRef(null),x=(0,a.useFloatingTree)(r),b=o.useMemo(()=>({reference:i,floating:l,domReference:s}),[i,l,s]),E=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:l,floating:s}={},transform:a=!0,whileElementsMounted:u,open:c}=e,[f,p]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,m]=o.useState(r);e_(g,r)||m(r);let[h,v]=o.useState(null),[y,x]=o.useState(null),b=o.useCallback(e=>{e!==C.current&&(C.current=e,v(e))},[]),E=o.useCallback(e=>{e!==R.current&&(R.current=e,x(e))},[]),S=l||h,w=s||y,C=o.useRef(null),R=o.useRef(null),T=o.useRef(f),O=null!=u,P=eY(u),A=eY(i),M=eY(c),k=o.useCallback(()=>{var e,r;let i,o,l;if(!C.current||!R.current)return;let s={placement:t,strategy:n,middleware:g};A.current&&(s.platform=A.current),(e=C.current,r=R.current,i=new Map,o=null!=s?s:{},l={...eV,...o.platform,_c:i},eC(e,r,{...o,platform:l})).then(e=>{let t={...e,isPositioned:!1!==M.current};I.current&&!e_(T.current,t)&&(T.current=t,d.flushSync(()=>{p(t)}))})},[g,t,n,A,M]);ez(()=>{!1===c&&T.current.isPositioned&&(T.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[c]);let I=o.useRef(!1);ez(()=>(I.current=!0,()=>{I.current=!1}),[]),ez(()=>
1{if(S&&(C.current=S),w&&(R.current=w),S&&w){if(P.current)return P.current(S,w,k);k()}},[S,w,k,P,O]);let L=o.useMemo(()=>({reference:C,floating:R,setReference:b,setFloating:E}),[b,E]),N=o.useMemo(()=>({reference:S,floating:w}),[S,w]),D=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=eG(N.floating,f.x),r=eG(N.floating,f.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...eU(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,a,N.floating,f.x,f.y]);return o.useMemo(()=>({...f,update:k,refs:L,elements:N,floatingStyles:D}),[f,k,L,N,D])}({...e,elements:{...b,...f&&{reference:f}}}),S=(0,I.isElement)(g)?g:null,w=void 0===h?t.state.floatingElement:h;t.useSyncedValue("referenceElement",g??null),t.useSyncedValue("domReferenceElement",void 0===g?s:S),t.useSyncedValue("floatingElement",w);let C=o.useCallback(e=>{let t=(0,I.isElement)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;p(t),E.refs.setReference(t)},[E.refs]),R=o.useCallback(e=>{((0,I.isElement)(e)||null===e)&&(y.current=e,m(e)),((0,I.isElement)(E.refs.reference.current)||null===E.refs.reference.current||null!==e&&!(0,I.isElement)(e))&&E.refs.setReference(e)},[E.refs,m]),T=o.useCallback(e=>{v(e),E.refs.setFloating(e)},[E.refs]),O=o.useMemo(()=>({...E.refs,setReference:R,setFloating:T,setPositionReference:C,domReference:y}),[E.refs,R,T,C]),P=o.useMemo(()=>({...E.elements,domReference:s}),[E.elements,s]),A=o.useMemo(()=>({...E,dataRef:t.context.dataRef,open:u,onOpenChange:t.setOpen,events:t.context.events,floatingId:c,refs:O,elements:P,nodeId:n,rootStore:t}),[E,O,P,n,t,u,c]);return(0,ev.useIsoLayoutEffect)(()=>{s&&(y.current=s)},[s]),(0,ev.useIsoLayoutEffect)(()=>{t.context.dataRef.current.floatingContext=A;let e=x?.nodesRef.current.find(e=>e.id===n);e&&(e.context=A)}),o.useMemo(()=>({...E,context:A,refs:O,elements:P,rootStore:t}),[E,O,P,A,t])}e.s(["useFloatingRootContext",0,eX],268949),e.s(["useBaseUIFloating",0,eJ,"useFloating",0,function(e={}){let t=eX(e),n=e.rootContext||t;return eZ(e,n)}],964439);var eQ=e.i(791514);let e0={name:"hide",async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,o=await e.platform.detectOverflow(e,{elementContext:"reference"});return{data:{referenceHidden:o.top-n>=0||o.right-t>=0||o.bottom-n>=0||o.left-t>=0||0===t&&0===n&&0===r&&0===i}}}},e1={sideX:"left",sideY:"top"},e2="--available-width",e5="--available-height";function e4(e,t,n){let r="inline-start"===e||"inline-end"===e;return({top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"})[t]}function e6(e,t,n){let{rects:r,placement:i}=e;return{side:e4(t,(0,eb.getSide)(i),n),align:(0,eb.getAlignment)(i)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function e9(e){return e3(e,eJ)}function e3(e,t){var n,r,i,l,s,a,u,c,f,d,p,g;let m,h,v,y,{anchor:x,positionMethod:b="absolute",side:E="bottom",sideOffset:S=0,align:w="center",alignOffset:C=0,collisionBoundary:R,collisionPadding:T=5,sticky:O=!1,arrowPadding:P=5,disableAnchorTracking:A=!1,inline:M,keepMounted:k=!1,floatingRootContext:I,mounted:L,collisionAvoidance:N,shift:D,nodeId:F,adaptiveOrigin:j,lazyFlip:H=!1,externalTree:W}=e,[V,B]=o.useState(null);L||null===V||B(null);let $=N.side||"flip",G=N.align||"flip",Y=N.fallbackAxisSide||"end",q=D?.crossAxis??!1,K=D?.rootBoundary,X="function"==typeof x?x:void 0,J=(0,_.useStableCallback)(X),Z=X?J:x,Q=(0,U.useValueAsRef)(x),ee=(0,U.useValueAsRef)(L),et="rtl"===(0,eQ.useDirection)(),en=V||({top:"top",right:"right",bottom:"bottom",left:"left","inline-end":et?"left"
1:"right","inline-start":et?"right":"left"})[E],er="center"===w?en:`${en}-${w}`,ei=T;"number"==typeof ei?ei={top:ei,right:ei,bottom:ei,left:ei}:ei&&(ei={top:ei.top||0,right:ei.right||0,bottom:ei.bottom||0,left:ei.left||0});let eo=+("bottom"===E),el=+("top"===E),es=+("right"===E),ea=+("left"===E),eu={boundary:"clipping-ancestors"===R?"clippingAncestors":R,padding:ei},ec=o.useRef(null),ef=(0,U.useValueAsRef)(S),ed=(0,U.useValueAsRef)(C),ep=[];M&&ep.push(M),ep.push((n=e=>{let t=e6(e,E,et),n="function"==typeof ef.current?ef.current(t):ef.current,r="function"==typeof ed.current?ed.current(t):ed.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},r=["function"!=typeof S?S:0,"function"!=typeof C?C:0,et,E],void 0===(i=n)&&(i=0),{name:(m={name:"offset",options:i,async fn(e){var t,n;let{x:r,y:o,placement:l,middlewareData:s}=e,a=await eT(e,i);return l===(null==(t=s.offset)?void 0:t.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:r+a.x,y:o+a.y,data:{...a,placement:l}}}}).name,fn:m.fn,options:[n,r]}));let eg="none"===G&&"shift"!==$,em=!eg&&(O||q||"shift"===$),eh="none"===$?null:{name:(h={name:"flip",options:s=l={...eu,padding:{top:ei.top+1+eo,right:ei.right+1+ea,bottom:ei.bottom+1+el,left:ei.left+1+es},mainAxis:!q&&"flip"===$,crossAxis:"flip"===G&&"alignment",fallbackAxisSideDirection:Y},async fn(e){var t,n,r,i,o;let{placement:l,middlewareData:a,rects:u,initialPlacement:c,platform:f,elements:d}=e,{mainAxis:p=!0,crossAxis:g=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:y=!0,...x}=(0,eb.evaluate)(s,e);if(null!=(t=a.arrow)&&t.alignmentOffset)return{};let b=(0,eb.getSide)(l),E=(0,eb.getSideAxis)(c),S=(0,eb.getSide)(c)===c,w=await (null==f.isRTL?void 0:f.isRTL(d.floating)),C=m||(S||!y?[(0,eb.getOppositePlacement)(c)]:(0,eb.getExpandedPlacements)(c)),R="none"!==v;!m&&R&&C.push(...(0,eb.getOppositeAxisPlacements)(c,y,v,w));let T=[c,...C],O=await f.detectOverflow(e,x),P=[],A=(null==(n=a.flip)?void 0:n.overflows)||[];if(p&&P.push(O[b]),g){let e=(0,eb.getAlignmentSides)(l,u,w);P.push(O[e[0]],O[e[1]])}if(A=[...A,{placement:l,overflows:P}],!P.every(e=>e<=0)){let e=((null==(r=a.flip)?void 0:r.index)||0)+1,t=T[e];if(t&&("alignment"!==g||E===(0,eb.getSideAxis)(t)||A.every(e=>(0,eb.getSideAxis)(e.placement)!==E||e.overflows[0]>0)))return{data:{index:e,overflows:A},reset:{placement:t}};let n=null==(i=A.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(h){case"bestFit":{let e=null==(o=A.filter(e=>{if(R){let t=(0,eb.getSideAxis)(e.placement);return t===E||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(n=e);break}case"initialPlacement":n=c}if(l!==n)return{reset:{placement:n}}}return{}}}).name,fn:h.fn,options:[l,void 0]},ey=eg?null:(c={...eu,rootBoundary:K,mainAxis:"none"!==G,crossAxis:em,limiter:O||q?void 0:{fn:(void 0===(u=a=e=>{if(!ec.current)return{};let{width:t,height:n}=ec.current.getBoundingClientRect(),r=(0,eb.getSideAxis)((0,eb.getSide)(e.placement)),i="y"===r?ei.left+ei.right:ei.top+ei.bottom;return{offset:("y"===r?t:n)/2+i/2}})&&(u={}),{options:u,fn(e){var t,n,r,i;let{x:o,y:l,placement:s,rects:a,middlewareData:c}=e,{offset:f=0,mainAxis:d=!0,crossAxis:p=!0}=(0,eb.evaluate)(u,e),g={x:o,y:l},m=(0,eb.getSideAxis)(s),h=(0,eb.getOppositeAxis)(m),v=g[h],y=g[m],x=(0,eb.evaluate)(f,e),b="number"==typeof x?{mainAxis:x,crossAxis:0}:{mainAxis:null!=(t=x.mainAxis)?t:0,crossAxis:null!=(n=x.crossAxis)?n:0};if(d){let e="y"===h?"height":"width",t=a.reference[h]-a.floating[e]+b.mainAxis,n=a.reference[h]+a.reference[e]-b.mainAxis;v<t?v=t:v>n&&(v=n)}if(p){let e="y"===h?"width":"height",t=eR.has((0,eb.getSide)(s)),n=a.reference[m]-a.floating[e]+(t&&(null==(r=c.offset)?void 0:r[m])||0)+(t?0:b.crossAxis),o=a.reference[m]+a.reference[e]+(t?0:(null==(i=c.offset)?void 0:i[m])||0)-(t?b.crossAxis:0);y<n?y=n:y>o&&(y=o)}return{[h]:v,[m]:y}}}).fn,options:[a,void 0]}},f=[eu,O,q,K,ei,G],void 0===(d=c)&&(d={}),{name:(v={name:"shift",options:d,async fn(e){let{x:t,y:n,placement:r,platform:i}=e,{mainAxis:o=!0,crossAxis:l=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...a}=(0,eb.evaluate)(d,e),u={x:t,y:n},c=await i.detectOverflow(e,a),f=(0,eb.getSideAxis)(r),p=(0,eb.getOppositeAxis)(f),g=u[p],m=u[f],h=(e,t)=>(0,eb.clamp)(t+c["y"===e?"top":"left"],t,t-c["y"===e?"bottom":"right"]);o&&(g=h(p,g)),l&&(m=h(f,m));let v=s.fn({...e,[p]:g,[f]:m});return{...v,data:{x:v.x-t,y:v.y-n,enabled:{[p]:o,[f]:l}}}}}).name,fn:v.fn,options:[c,f]});"shift"===$||"shift"===G||"center"===w?ep.push(ey,eh):ep.push(eh,ey),ep.push({name:(y={name:"size",options:g=p={...eu,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!ee.current)return;let i=e.style;i.setProperty(e2,`${t}px`),i.setProperty(e5,`${n}px`);let o=(0,eE.ownerWindow)(e).devicePixelRatio||1,{x:l,y:s,width:a,height:u}=r.reference,c=(Math.round((l+a)*o)-Math.round(l*o))/o,f=(Math.round((s+u)*o)-Math.round(s*o))/o;i.setProperty("--anchor-width",`${c}px`),i.setProperty("--anchor-height",`${f}px`)}},async fn(e){let t,n,{placement:r,rects:i,platform:o,elements:l}=e,{apply:s=()=>{},...a}=(0,eb.evaluate)(g,e),u=await o.detectOverflow(e,a),c=(0,eb.getSide)(r),f=(0,eb.getAlignment)(r),d="y"===(0,eb.getSideAxis)(r),{width:p,height:m}=i.floating;"top"===c||"bottom"===c?(t=c,n=f===(await (null==o.isRTL?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(n=c,t="end"===f?"top":"bottom");let h=m-u.top-u.bottom,v=p-u.left-u.right,y=(0,eb.min)(m-u[t],h),x=(0,eb.min)(p-u[n],v),b=e.middlewareData.shift,E=!b,S=y,w=x;null!=b&&b.enabled.x&&(w=v),null!=b&&b.enabled.y&&(S=h),E&&!f&&(d?w=p-2*(0,eb.max)(u.left,u.right):S=m-2*(0,eb.max)(u.top,u.bottom)),await s({...e,availableWidth:w,availableHeight:S});let C=await o.getDimensions(l.floating);return p!==C.width||m!==C.height?{reset:{rects:!0}}:{}}}).name,fn:y.fn,options:[p,void 0]},((e,t)=>{let{name:n,fn:r}={name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:o,platform:l,elements:s,middlewareData:a}=t,{element:u,padding:c=0,offsetParent:f="real"}=(0,eb.evaluate)(e,t)||{};if(null==u)return{};
1let d=(0,eb.getPaddingObject)(c),p={x:n,y:r},g=(0,eb.getAlignmentAxis)(i),m=(0,eb.getAxisLength)(g),h=await l.getDimensions(u),v="y"===g,y=v?"clientHeight":"clientWidth",x=o.reference[m]+o.reference[g]-p[g]-o.floating[m],b=p[g]-o.reference[g],E="real"===f?await l.getOffsetParent?.(u):s.floating,S=s.floating[y]||o.floating[m];S&&await l.isElement?.(E)||(S=s.floating[y]||o.floating[m]);let w=S/2-h[m]/2-1,C=Math.min(d[v?"top":"left"],w),R=Math.min(d[v?"bottom":"right"],w),T=S-h[m]-R,O=S/2-h[m]/2+(x/2-b/2),P=(0,eb.clamp)(C,O,T),A=!a.arrow&&null!=(0,eb.getAlignment)(i)&&O!==P&&o.reference[m]/2-(O<C?C:R)-h[m]/2<0,M=A?O<C?O-C:O-T:0;return{[g]:p[g]+M,data:{[g]:P,centerOffset:O-P-M,...A&&{alignmentOffset:M}},reset:A}}};return{name:n,fn:r,options:[e,t]}})(e=>({element:ec.current||(0,z.ownerDocument)(e.elements.floating).createElement("div"),padding:ec.current?P:0,offsetParent:"floating"}),[P]),{name:"transformOrigin",fn(e){let t,{elements:{floating:n},middlewareData:r,placement:i,platform:o,rects:l,y:s}=e,a=(0,eb.getSide)(i),u=(0,eb.getAlignment)(i),c="y"===(0,eb.getSideAxis)(a),f=ec.current,d="function"==typeof S?S(e6(e,E,et)):S;if(!f&&u&&1>=Math.abs(c?r.shift?.x||0:r.shift?.y||0))t="start"===u===(c&&o.isRTL?.(n)===!0)?"100%":"0%";else{let e=c?r.arrow?.x||0:r.arrow?.y||0,n=c?f?.clientWidth||0:f?.clientHeight||0;t=`${e+n/2}px`}let p="top"===a||"left"===a?`calc(100% + ${d}px)`:`${-d}px`;return em&&c&&Math.abs(r.shift?.y||0)>d&&(p=`${l.reference.y+l.reference.height/2-s}px`),n.style.setProperty("--transform-origin",c?`${t} ${p}`:`${p} ${t}`),{}}},e0,j),(0,ev.useIsoLayoutEffect)(()=>{!L&&I&&I.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[L,I]);let ex=o.useMemo(()=>({ancestorScroll:!A,elementResize:!A&&"u">typeof ResizeObserver,layoutShift:!A&&"u">typeof IntersectionObserver}),[A]),{refs:eS,elements:ew,x:eC,y:eO,middlewareData:eP,update:eA,placement:eM,context:ek,isPositioned:eI,floatingStyles:eL}=t({rootContext:I,open:k?L:void 0,placement:er,middleware:ep,strategy:b,whileElementsMounted:k?void 0:(...e)=>e$(...e,ex),nodeId:F,externalTree:W}),{sideX:eN,sideY:eD}
1=eP.adaptiveOrigin||e1,eF=eI?b:"fixed",ej=o.useMemo(()=>{let e;return(e=eI?j?{position:eF,[eN]:eC,[eD]:eO}:{...eL,position:eF}:{position:eF,top:0,left:0})[e2]="100vw",e[e5]="100vh",eI||(e.opacity=0),e},[j,eF,eN,eC,eD,eO,eL,eI]),eH=o.useRef(null);(0,ev.useIsoLayoutEffect)(()=>{if(!L)return;let e=Q.current,t="function"==typeof e?e():e,n=(e8(t)?t.current:t)||null;n!==eH.current&&(eS.setPositionReference(n),eH.current=n)},[L,eS,Z,Q]),o.useEffect(()=>{if(!L)return;let e=Q.current;"function"!=typeof e&&e8(e)&&e.current!==eH.current&&(eS.setPositionReference(e.current),eH.current=e.current)},[L,eS,Z,Q]),o.useEffect(()=>{if(k&&L&&ew.reference&&ew.floating)return e$(ew.reference,ew.floating,eA,ex)},[k,L,ew,eA,ex]);let eW=(0,eb.getSide)(eM),eV=e4(E,eW,et),eB=(0,eb.getAlignment)(eM)||"center",ez=!!eP.hide?.referenceHidden;(0,ev.useIsoLayoutEffect)(()=>{H&&L&&eI&&eW!==en&&B(eW)},[H,L,eI,eW,en]);let e_=o.useMemo(()=>({position:"absolute",top:eP.arrow?.y,left:eP.arrow?.x}),[eP.arrow]),eU=eP.arrow?.centerOffset!==0;return o.useMemo(()=>({positionerStyles:ej,arrowStyles:e_,arrowRef:ec,arrowUncentered:eU,side:eV,align:eB,physicalSide:eW,anchorHidden:ez,refs:eS,context:ek,isPositioned:eI,update:eA}),[ej,e_,ec,eU,eV,eB,eW,ez,eS,ek,eI,eA])}function e8(e){return null!=e&&"current"in e}e.s(["useAnchorPositioning",0,e9,"useAnchorPositioningWithHook",0,e3],25073);var e7=e.i(293592),te=e.i(954567);function tt(e){return"starting"===e?E.DISABLED_TRANSITIONS_STYLE:m.EMPTY_OBJECT}function tn(e,t,{styles:n,transitionStatus:r,props:i,refs:o,hidden:l,inert:s=!1}){let a={...n};return s&&(a.pointerEvents="none"),(0,k.useRenderElement)("div",e,{state:t,ref:o,props:[{role:"presentation",hidden:l,style:a},tt(r),i],stateAttributesMapping:M.popupStateMapping})}e.s(["getDisabledMountTransitionStyles",0,tt],302795),e.s(["usePositioner",0,tn],492229);var tr=e.i(602298);let ti=o.forwardRef(function(e,t){let{render:n,className:r,style:l,anchor:s,positionMethod:c,side:d,align:p,sideOffset:g,alignOffset:m,collisionBoundary:v="clipping-ancestors",collisionPadding:y,arrowPadding:x,sticky:b,disableAnchorTracking:S=!1,collisionAvoidance:w=E.POPUP_COLLISION_AVOIDANCE,...C}=e,R=f(),T=function(){let e=o.useContext(eg);if(void 0===e)throw Error((0,u.default)(45));return e}(),O=(0,a.useFloatingNodeId)(),P=R.useState("floatingRootContext"),A=R.useState("mounted"),M=R.useState("open"),k=R.useState("openChangeReason"),I=R.useState("activeTriggerElement"),L=R.useState("modal"),N=R.useState("openMethod"),D=R.useState("positionerElement"),F=R.useState("instantType"),j=R.useState("transitionStatus"),H=R.useState("adaptiveOrigin"),W=o.useRef(null),V=(0,te.useAnimationsFinished)(D),B=e9({anchor:s,floatingRootContext:P,positionMethod:c,mounted:A,side:d,sideOffset:g,align:p,alignOffset:m,arrowPadding:x,collisionBoundary:v,collisionPadding:y,sticky:b,disableAnchorTracking:S,keepMounted:T,nodeId:O,collisionAvoidance:w,adaptiveOrigin:H}),$=P.useState("domReferenceElement");(0,ev.useIsoLayoutEffect)(()=>{let e=W.current;if($&&(W.current=$),e&&$&&$!==e){R.set("instantType",void 0);let e=new AbortController;return V(()=>{R.set("instantType","trigger-change")},e.signal),()=>{e.abort()}}},[$,V,R]);let _=!0===L&&k!==h.REASONS.triggerHover;!function(e,t,n,r){let[i,l]=o.useState(!1);(0,ev.useIsoLayoutEffect)(()=>{if(!e||!t||null==n)return void l(!1);let r=(0,z.ownerDocument)(n).documentElement.clientWidth,i=n.offsetWidth;l(r>0&&i>0&&i>=r-20)},[e,t,n]),(0,tr.useScrollLock)(e&&(!t||i),r)}(M&&_,"touch"===N,D,I);let U=R.useStateSetter("positionerElement"),G=tn(e,{open:M,side:B.side,align:B.align,anchorHidden:B.anchorHidden,instant:F},{styles:B.positionerStyles,transitionStatus:j,props:C,refs:[t,U],hidden:!A,inert:!M});return(0,i.jsxs)(ey.Provider,{value:B,children:[A&&_&&(0,i.jsx)(e7.InternalBackdrop,{inert:(0,eh.inertValue)(!M),cutout:I}),(0,i.jsx)(a.FloatingNode,{id:O,children:G})]})});var to=e.i(438622),ei=K;function tl(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:i}=t,l="rootStore"in e?e.rootStore:e,s=l.useState("open"),u=l.useState("floatingElement"),c=l.useState("domReferenceElement"),{dataRef:f}=l.context,d=(0,a.useFloatingTree)(),p=(0,a.useFloatingParentNodeId)(),m=ee(l),v=(0,g.useTimeout)(),y=(0,_.useStableCallback)(()=>er(f.current.openEvent?.type,m.interactedInside)),x=(0,_.useStableCallback)(()=>{var e;return e=f.current.openEvent?.type,e?.includes("mouse")&&"mousedown"!==e}),b=(0,_.useStableCallback)(()=>{Z(m)});(0,ev.useIsoLayoutEffect)(()=>{s||(m.pointerType=void 0,m.restTimeoutPending=!1,m.interactedInside=!1,b())},[s,m,b]),o.useEffect(()=>b,[b]),(0,ev.useIsoLayoutEffect)(()=>
1{if(n&&s&&m.handleCloseOptions?.blockPointerEvents&&x()&&(0,I.isElement)(c)&&u){let e=(0,z.ownerDocument)(u),t=d?.nodesRef.current.find(e=>e.id===p)?.context?.elements.floating;t&&(t.style.pointerEvents="");let n=m.pointerEventsScopeElement!==u?m.pointerEventsScopeElement:null,r=t!==u?t:null,i=m.handleCloseOptions?.getScope?.()??n??r??c.closest("[data-rootownerid]")??e.body;return Q(m,{scopeElement:i,referenceElement:c,floatingElement:u}),()=>{b()}}},[n,s,c,u,m,x,d,p,b]),o.useEffect(()=>{if(n)return(0,$.mergeCleanups)(u&&(0,B.addEventListener)(u,"mouseenter",function(){m.openChangeTimeout.clear(),v.clear(),d?.events.off("floating.closed",t),b()}),u&&(0,B.addEventListener)(u,"mouseleave",function(n){if(e()&&d)return void d.events.on("floating.closed",t);if((0,ei.isTargetInsideEnabledTrigger)(n.relatedTarget,l.context.triggerElements))return;let o=f.current.floatingContext?.nodeId??i,s=n.relatedTarget;if(!(d&&o&&(0,I.isElement)(s)&&(0,N.getNodeChildren)(d.nodesRef.current,o,!1).some(e=>(0,L.contains)(e.context?.elements.floating,s)))){let e,t;if(m.handler)return void m.handler(n);b(),x()&&!y()&&(e=et(r,"close",m.pointerType),t=()=>{l.setOpen(!1,(0,T.createChangeEventDetails)(h.REASONS.triggerHover,n)),d?.events.emit("floating.closed",n)},e?m.openChangeTimeout.start(e,t):(m.openChangeTimeout.clear(),t()))}}),u&&(0,B.addEventListener)(u,"pointerdown",function(e){let t=(0,L.getTarget)(e);if(!(0,K.isInteractiveElement)(t)){m.interactedInside=!1;return}m.interactedInside=t?.closest("[aria-haspopup]")!=null},!0),()=>{d?.events.off("floating.closed",t)});function e(){return!!(d&&p&&(0,N.getNodeChildren)(d.nodesRef.current,p).length>0)}function t(n){!d||!p||e()||v.start(0,()=>{d.events.off("floating.closed",t),l.setOpen(!1,(0,T.createChangeEventDetails)(h.REASONS.triggerHover,n)),d.events.emit("floating.closed",n)})}},[n,u,l,f,r,i,x,y,b,m,d,p,v])}e.s(["useHoverFloatingInteraction",0,tl],704470);var ts=e.i(67323),ta=e.i(271289);let tu=o.createContext(void 0),tc=o.createContext(void 0),tf=o.forwardRef(function(e,t){let{render:n,className:r,style:l,initialFocus:s,finalFocus:a,...c}=e,d=f(),p=ex(),g=null!=function(e){let t=o.useContext(tu);if(void 0===t&&!e)throw Error((0,u.default)(69));return t}(!0),{context:m,hasClosePart:v}=function(){let[e,t]=o.useState(0),n=(0,_.useStableCallback)(()=>(t(e=>e+1),()=>{t(e=>Math.max(0,e-1))}));return{context:o.useMemo(()=>({register:n}),[n]),hasClosePart:e>0}}(),x=d.useState("open"),b=d.useState("openMethod"),E=d.useState("instantType"),S=d.useState("transitionStatus"),w=d.useState("popupProps"),C=d.useState("titleElementId"),R=d.useState("descriptionElementId"),T=d.useState("modal"),O=d.useState("mounted"),P=d.useState("openChangeReason"),A=d.useState("activeTriggerElement"),L=d.useState("floatingRootContext"),N=L.useState("floatingId"),D=d.useState("disabled"),F=d.useState("openOnHover"),j=d.useState("closeDelay");(0,ts.useOpenChangeComplete)({open:x,ref:d.context.popupRef,onComplete(){x&&d.context.onOpenChangeComplete?.(!0)}}),tl(L,{enabled:F&&!D,closeDelay:j});let H=void 0===s?(0,y.createDefaultInitialFocus)(d.context.popupRef):s,W=!1!==T&&v;d.useSyncedValue("focusManagerModal",W);let V=d.useStateSetter("popupElement"),B={open:x,side:p.side,align:p.align,instant:E,transitionStatus:S},$=(0,k.useRenderElement)("div",e,{state:B,ref:[t,d.context.popupRef,V],props:[w,{id:N,role:"dialog",...y.FOCUSABLE_POPUP_PROPS,"aria-labelledby":C,"aria-describedby":R,onKeyDown(e){g&&ta.COMPOSITE_KEYS.has(e.key)&&e.stopPropagation()}},tt(S),c],stateAttributesMapping:M.popupTransitionStateMapping});return(0,i.jsx)(to.FloatingFocusManager,{context:L,openInteractionType:b,modal:W,disabled:!O||P===h.REASONS.triggerHover,initialFocus:H,returnFocus:a,restoreFocus:"popup",previousFocusableElement:(0,I.isHTMLElement)(A)?A:void 0,nextFocusableElement:d.context.triggerFocusTargetRef,beforeContentFocusGuardRef:d.context.beforeContentFocusGuardRef,children:(0,i.jsx)(tc.Provider,{value:m,children:$})})}),td=o.forwardRef(function(e,t){let{render:n,className:r,style:i,...o}=e,l=f().useState("open"),{arrowRef:s,side:a,align:u,arrowUncentered:c,arrowStyles:d}=ex();return(0,k.useRenderElement)("div",e,{state:{open:l,side:a,align:u,uncentered:c},ref:[t,s],props:[{style:d,"aria-hidden":!0},o],stateAttributesMapping:M.popupStateMapping})}),tp=o.forwardRef(function(e,t){let{render:n,className:r,style:i,...o}=e,l=f(),s=l.useState("open"),a=l.useState("mounted"),u=l.useState("transitionStatus"),c=l.useState("openChangeReason");return(0,k.useRenderElement)("div",e,{state:{open:s,transitionStatus:u},ref:t,props:[{role:"presentation",hidden:!a,style:{pointerEvents:c===h.REASONS.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},o],stateAttributesMapping:M.popupTransitionStateMapping})}),tg=o.forwardRef(function(e,t){let{render:n,className:r,style:i,...o}=e,l=f(),s=(0,es.useBaseUiId)(o.id);return l.useSyncedValueWithCleanup("titleElementId",s),(0,k.useRenderElement)("h2",e,{ref:t,props:[{id:s},o]})}),tm=o.forwardRef(function(e,t){let{render:n,className:r,style:i,...o}=e,l=f(),s=(0,es.useBaseUiId)(o.id);return l.useSyncedValueWithCleanup("descriptionElementId",s),(0,k.useRenderElement)("p",e,{ref:t,props:[{id:s},o]})}),th=o.forwardRef(function(e,t){let n,{render:r,className:i,style:l,disabled:s=!1,nativeButton:a=!0,...u}=e,{buttonRef:c,getButtonProps:d}=(0,A.useButton)({disabled:s,focusableWhenDisabled:!1,native:a}),p=f();return n=o.useContext(tc),(0,ev.useIsoLayoutEffect)(()=>n?.register(),[n]),(0,k.useRenderElement)("button",e,{ref:[t,c],props:[{onClick(e){p.setOpen(!1,(0,T.createChangeEventDetails)(
1h.REASONS.closePress,e.nativeEvent))}},u,d]})});var tv=e.i(117440),ty=e.i(14472);let tx="--popup-width",tb="--popup-height";function tE(e,t,n){let r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r)}}function tS(e,t){let n=[];for(let[r,i]of Object.entries(t))n.push(tE(e,r,i));return n.length?()=>{n.forEach(e=>e())}:m.NOOP}function tw(e,t){let n="auto"===t?"auto":`${t.width}px`,r="auto"===t?"auto":`${t.height}px`;e.style.setProperty(tx,n),e.style.setProperty(tb,r)}function tC(e,t){let n="max-content"===t?"max-content":`${t.width}px`,r="max-content"===t?"max-content":`${t.height}px`;e.style.setProperty("--positioner-width",n),e.style.setProperty("--positioner-height",r)}let tR={name:"adaptiveOrigin",async fn(e){let{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:o,strategy:l,placement:s}=e,a=(0,eE.ownerWindow)(i),u=a.getComputedStyle(i);if("0s"===u.transitionDuration||""===u.transitionDuration)return{x:t,y:n,data:e1};let c=await o.getOffsetParent?.(i),f={width:0,height:0};
1if("fixed"===l&&a?.visualViewport)f={width:a.visualViewport.width,height:a.visualViewport.height};else if(c===a){let e=(0,z.ownerDocument)(i);f={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await o.isElement?.(c)&&(f=await o.getDimensions(c));let d=(0,eb.getSide)(s),p=t,g=n;return"left"===d&&(p=f.width-(t+r.width)),"top"===d&&(g=f.height-(n+r.height)),{x:p,y:g,data:{sideX:"left"===d?"right":e1.sideX,sideY:"top"===d?"bottom":e1.sideY}}}};e.s(["adaptiveOrigin",0,tR],548242);let tT={activationDirection:e=>e?{"data-activation-direction":e}:null},tO=o.forwardRef(function(e,t){let{render:n,className:r,style:l,children:s,...a}=e,u=f(),{side:c}=ex(),p=u.useState("instantType"),{children:g,state:h}=function(e){let t,{store:n,side:r,children:l}=e,s=(0,eQ.useDirection)(),a=n.useState("activeTriggerElement"),u=n.useState("activeTriggerId"),c=n.useState("open"),f=n.useState("payload"),p=n.useState("mounted"),g=n.useState("popupElement"),h=n.useState("positionerElement"),v=function(e){let[t,n]=o.useState({current:e,previous:null});return Object.is(e,t.current)||n({current:e,previous:t.current}),t.previous}(c?a:null),y=function(e,t){let[n,r]=o.useState(0),i=o.useRef(e),l=o.useRef(t),s=o.useRef(!1);return(0,ev.useIsoLayoutEffect)(()=>{let n=i.current,o=t!==l.current;e!==n?(r(e=>e+1),s.current=!o):s.current&&o&&(r(e=>e+1),s.current=!1),i.current=e,l.current=t},[e,t]),`${e??"current"}-${n}`}(u,f),x=o.useRef(null),[b,E]=o.useState(null),[S,w]=o.useState(null),C=o.useRef(null),R=o.useRef(null),T=(0,te.useAnimationsFinished)(C,!0),O=(0,tv.useAnimationFrame)(),P=o.useRef(null),[A,M]=o.useState(null),[k,I]=o.useState(!1);(0,ev.useIsoLayoutEffect)(()=>(n.set("adaptiveOrigin",tR),()=>{n.set("adaptiveOrigin",void 0)}),[n]);let L=(0,_.useStableCallback)(()=>{C.current?.style.setProperty("animation","none"),C.current?.style.setProperty("transition","none"),R.current?.style.setProperty("display","none")}),N=(0,_.useStableCallback)(e=>{C.current?.style.removeProperty("animation"),C.current?.style.removeProperty("transition"),R.current?.style.removeProperty("display"),e&&M(e)}),D=(0,_.useStableCallback)(()=>{P.current?.abort();let e=new AbortController;P.current=e,T(()=>{E(null),M(null),x.current=null},e.signal)}),F=o.useRef(null);(0,ev.useIsoLayoutEffect)(()=>{c&&p||(F.current=null)},[c,p]),(0,ev.useIsoLayoutEffect)(()=>{var e,t;let n,r,i,o;a&&v&&a!==v&&F.current!==a&&x.current&&(E(x.current),I(!0),w((e=v,t=a,n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i={x:n.left+n.width/2,y:n.top+n.height/2},{horizontal:(o={x:r.left+r.width/2,y:r.top+r.height/2}).x-i.x,vertical:o.y-i.y})),F.current=a)},[a,v]),(0,ev.useIsoLayoutEffect)(()=>{null!=b&&(P.current?.abort(),I(!0),O.request(()=>{d.flushSync(()=>{I(!1)}),D()}))},[y,b,D,O]),(0,ev.useIsoLayoutEffect)(()=>{let e=C.current;if(!e)return;let t=(0,z.ownerDocument)(e).createElement("div");for(let n of Array.from(e.childNodes))t.appendChild(n.cloneNode(!0));x.current=t});let j=null!=b;return t=j?(0,i.jsxs)(o.Fragment,{children:[(0,i.jsx)("div",{"data-previous":!0,inert:(0,eh.inertValue)(!0),ref:R,style:{...A?{[tx]:`${A.width}px`,[tb]:`${A.height}px`}:null,position:"absolute"},"data-ending-style":k?void 0:""},"previous"),(0,i.jsx)("div",{"data-current":!0,ref:C,"data-starting-style":k?"":void 0,children:l},y)]}):(0,i.jsx)("div",{"data-current":!0,ref:C,children:l},y),(0,ev.useIsoLayoutEffect)(()=>{let e=R.current;e&&b&&e.replaceChildren(...Array.from(b.childNodes))},[b]),!function(e){let{popupElement:t,positionerElement:n,content:r,mounted:i,onMeasureLayout:l,onMeasureLayoutComplete:s,side:a,direction:u}=e,c=(0,te.useAnimationsFinished)(t,!0),f=(0,tv.useAnimationFrame)(),d=o.useRef(null),p=o.useRef(!0),g=o.useRef(m.NOOP),h=(0,_.useStableCallback)(l),v=(0,_.useStableCallback)(s),y=o.useMemo(()=>{var e,t;let n,r;return e=a,t=u,n="top"===e,r="left"===e||e===("rtl"===t?"inline-end":"inline-start"),n||r?{position:"absolute",[n?"bottom":"top"]:"0",[r?"right":"left"]:"0"}:m.EMPTY_OBJECT},[a,u]);(0,ev.useIsoLayoutEffect)(()=>{if(!i){g.current=m.NOOP,p.current=!0,d.current=null;return}if(!t||!n)return;g.current=tS(t,y),tw(t,"auto");let e=tE(t,"position","static"),r=tE(t,"transform","none"),o=tE(t,"scale","1"),l=tS(n,{[e2]:"max-content",[e5]:"max-content"});function s(){e(),r(),l(),o()}if(h?.(),p.current||null===d.current){tC(n,"max-content");let e=(0,ty.getCssDimensions)(t);return d.current=e,tC(n,e),s(),v?.(null,e),p.current=!1,()=>{g.current(),g.current=m.NOOP}}tC(n,"max-content");let a=d.current,u=(0,ty.getCssDimensions)(t);d.current=u,tw(t,a),s(),v?.(a,u),tC(n,u);let x=new AbortController;return f.request(()=>{tw(t,u),c(()=>{t.style.setProperty(tx,"auto"),t.style.setProperty(tb,"auto")},x.signal)}
1),()=>{x.abort(),f.cancel(),g.current(),g.current=m.NOOP}},[r,t,n,c,f,i,h,v,y])}({popupElement:g,positionerElement:h,mounted:p,content:f,onMeasureLayout:L,onMeasureLayoutComplete:N,side:r,direction:s}),{children:t,state:{activationDirection:function(e){if(e){var t,n;return`${(t=e.horizontal)>5?"right":t<-5?"left":""} ${(n=e.vertical)>5?"down":n<-5?"up":""}`}}(S),transitioning:j}}}({store:u,side:c,children:s}),v={activationDirection:h.activationDirection,transitioning:h.transitioning,instant:p};return(0,k.useRenderElement)("div",e,{state:v,ref:t,props:[a,{children:g}],stateAttributesMapping:tT})});var tP=e.i(4303);class tA extends tP.BasePopupHandle{constructor(){super(function(){let e=new b.PopupTriggerMap;return Object.assign(new v.NullStore(Object.freeze(C(void 0,e)),Object.freeze(R(e)),S),{setOpen:m.NOOP})}(),"Popover")}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}}e.s(["Arrow",0,td,"Backdrop",0,tp,"Close",0,th,"Description",0,tm,"Handle",0,tA,"Popup",0,tf,"Portal",0,em,"Positioner",0,ti,"Root",0,function(e){return f(!0)?(0,i.jsx)(O,{props:e}):(0,i.jsx)(a.FloatingTree,{children:(0,i.jsx)(O,{props:e})})},"Title",0,tg,"Trigger",0,ed,"Viewport",0,tO,"createHandle",0,function(){return new tA}],436368);var tM=e.i(436368),tM=tM;let tk=tM.Root,tI=tM.Trigger;function tL({className:e,align:t="center",sideOffset:r=4,...o}){return(0,i.jsx)(tM.Portal,{children:(0,i.jsx)(tM.Positioner,{align:t,side:"bottom",sideOffset:r,className:"z-50",children:(0,i.jsx)(tM.Popup,{className:t=>(0,n.cn)("z-50 origin-(--transform-origin) overflow-y-auto max-h-(--available-height) min-w-[240px] w-(--anchor-width) max-w-[98vw] rounded-xl border bg-fd-popover/60 backdrop-blur-lg p-2 text-sm text-fd-popover-foreground shadow-lg focus-visible:outline-none data-closed:animate-fd-popover-out data-open:animate-fd-popover-in","function"==typeof e?e(t):e),...o})})})}tM.Close,e.s(["Popover",0,tk,"PopoverContent",0,tL,"PopoverTrigger",0,tI],4584);var tN=e.i(391954);function tD({className:e,variant:o="ghost",children:l,...s}){let a=(0,t.useI18n)(),u=(0,tN.useTranslations)({note:"language switcher"});if(!a.locales)throw Error("Missing `<I18nProvider />`");let c=u("Choose a language");return(0,i.jsxs)(tk,{children:[(0,i.jsx)(tI,{"aria-label":u("Choose a language",{note:"aria-label"}),className:t=>(0,n.cn)((0,r.buttonVariants)({variant:o}),"gap-1.5 p-1.5",t.open&&"bg-fd-accent",e),...s,children:l}),(0,i.jsxs)(tL,{className:"flex flex-col gap-0.5 p-1",children:[(0,i.jsx)("p",{className:"p-2 text-xs font-medium text-fd-muted-foreground",children:c}),a.locales.map(e=>(0,i.jsx)("button",{type:"button",className:(0,n.cn)("px-2 py-1.5 text-start text-sm rounded-lg transition-colors",e.locale===a.locale?"bg-fd-primary/10 text-fd-primary":"text-fd-muted-foreground hover:bg-fd-accent hover:text-fd-accent-foreground"),onClick:()=>{a.onChange?.(e.locale)},children:e.name},e.locale))]})]})}function tF(e){let{locales:n,locale:r}=(0,t.useI18n)(),o=n?.find(e=>e.locale===r)?.name;return(0,i.jsx)("span",{...e,children:o})}var tj=e.i(998621),tH=e.i(748628),tH=tH,tW=e.i(247831);function tV({hideIfDisabled:e,size:t="icon-sm",color:o="ghost",...l}){let{enabled:s,dialogHandle:a}=(0,tj.useSearchContext)(),u=(0,tN.useTranslations)({note:"search trigger"});return e&&!s?null:(0,i.jsx)(tW.Dialog.Trigger,{handle:a,type:"button",className:(0,n.cn)((0,r.buttonVariants)({size:t,color:o}),l.className),"data-search":"","aria-label":u("Open Search",{note:"aria-label"}),children:(0,i.jsx)(tH.default,{})})}function tB({hideIfDisabled:e,...t}){let{enabled:r,hotKey:o,dialogHandle:l}=(0,tj.useSearchContext)(),s=(0,tN.useTranslations)({note:"search trigger"});return e&&!r?null:(0,i.jsxs)(tW.Dialog.Trigger,{handle:l,type:"button","data-search-full":"",...t,className:(0,n.cn)("inline-flex items-center gap-2 rounded-lg border bg-fd-secondary/50 p-1.5 ps-2 text-sm text-fd-muted-foreground transition-colors hover:bg-fd-accent hover:text-fd-accent-foreground",t.className),children:[(0,i.jsx)(tH.default,{className:"size-4"}),s("Search"),(0,i.jsx)("div",{className:"ms-auto inline-flex gap-0.5",children:o.map((e,t)=>(0,i.jsx)("kbd",{className:"rounded-md border bg-fd-background px-1.5",children:e.display},t))})]})}e.s(["FullSearchTrigger",0,tB,"SearchTrigger",0,tV],96679);var t$=e.i(856928);let tz={name:"airplay",size:24,node:[["path",{d:"M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1",key:"ns4c3b"}],["path",{d:"m12 15 5 6H7Z",key:"14qnn2"}]]};tz.node;let t_=(0,t$.default)(tz),tU={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]};tU.node;let tG=(0,t$.default)(tU),tY={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]};tY.node;let tq=(0,t$.default)(tY);var tK=e.i(294237),tX=e.i(848317);let tJ=(0,tK.cva)("size-6.5 p-1.5 text-fd-muted-foreground",{variants:{active:{true:"bg-fd-accent text-fd-accent-foreground",false:"text-fd-muted-foreground"}}}),tZ=[["light",tq],["dark",tG],["system",t_]];function tQ({className:e,mode:t="light-dark",...r}){let{setTheme:l,theme:s,resolvedTheme:a}=(0,tX.useTheme)(),[u,c]=(0,o.useState)(!1),f=(0,tN.useTranslations)({note:"theme switcher"}),p={light:f("Light",{note:"aria-label"}),dark:f("Dark",{note:"aria-label"}),system:f("System",{note:"aria-label"})},g=e=>{document?.startViewTransition?document.startViewTransition(()=>(0,d.flushSync)(()=>l(e))):l(e)};(0,o.useEffect)(()=>{c(!0)},[]);let m=(0,n.cn)("inline-flex items-center rounded-full border p-1 overflow-hidden *:rounded-full",e);if("light-dark"===t){let e=u?a:null;return(0,i.jsx)("button",{className:m,"aria-label":f("Toggle Theme",{note:"aria-label"}),onClick:()=>g("light"===e?"dark":"light"),"data-theme-toggle":"",children:tZ.map(([t,r])=>
1{if("system"!==t)return(0,i.jsx)(r,{fill:"currentColor",className:(0,n.cn)(tJ({active:e===t}))},t)})})}let h=u?s:null;return(0,i.jsxs)("div",{className:m,"data-theme-toggle":"",...r,children:[(0,i.jsx)("button",{"aria-label":p.light,className:(0,n.cn)(tJ({active:"light"===h})),onClick:()=>g("light"),children:(0,i.jsx)(tq,{className:"size-full",fill:"currentColor"})}),(0,i.jsx)("button",{"aria-label":p.dark,className:(0,n.cn)(tJ({active:"dark"===h})),onClick:()=>g("dark"),children:(0,i.jsx)(tG,{className:"size-full",fill:"currentColor"})}),(0,i.jsx)("button",{"aria-label":p.system,className:(0,n.cn)(tJ({active:"system"===h})),onClick:()=>g("system"),children:(0,i.jsx)(t_,{className:"size-full",fill:"currentColor"})})]})}function t0(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}function t1(e,t,n=!1){return(e=t0(e))===(t=t0(t))||n&&t.startsWith(`${e}/`)}e.s(["isActive",0,t1,"normalize",0,t0],600539);let t2=(e,t)=>t.icon?{...e,icon:(0,i.jsx)("div",{className:"size-full [&_svg]:size-full max-md:p-1.5 max-md:rounded-md max-md:border max-md:bg-fd-secondary",children:t.icon})}:e;function t5(e,{transform:t=t2}={}){let n=[];function r(e,i){if("root"in e&&e.root){let r=e.index?.url??e.children.find(e=>"page"===e.type)?.url;if(r){let o={title:e.name,icon:e.icon,description:e.description,url:r,unlisted:i,$folder:e},l=t?t(o,e):o;l&&n.push(l)}}for(let t of e.children)"folder"===t.type&&r(t,i)}return r(e),e.fallback&&r(e.fallback,!0),n}function t4(e,t,n){if(e.$folder){let n=e.$folder;return t.some(e=>"folder"===e.type&&(e.$id===n.$id||e===n))}return e.urls?e.urls.has(t0(n)):t1(e.url,n,!0)}function t6({githubUrl:e,links:t}){return(0,o.useMemo)(()=>{let n=function({links:e=[],githubUrl:t}){let n=[...e];return t&&n.push({type:"icon",url:t,text:"Github",label:"GitHub",icon:(0,i.jsx)("svg",{role:"img",viewBox:"0 0 24 24",fill:"currentColor",children:(0,i.jsx)("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})}),external:!0}),n}({links:t,githubUrl:e}),r=[],o=[];for(let e of n)switch(e.on){case"menu":o.push(e);break;case"nav":r.push(e);break;default:r.push(e),o.push(e)}return{navItems:r,menuItems:o,all:n}},[t,e])}function t9(e,t){return"custom"!==e.type&&!!e.url&&"none"!==e.active&&t1(e.url,t,"nested-url"===e.active)}var t3=e.i(52827),t8=e.i(264124);function t7({ref:e,item:t,...n}){let r=t9(t,(0,t8.usePathname)());return(0,i.jsx)(t3.default,{ref:e,href:t.url,external:t.external,...n,"data-active":r,children:n.children})}function ne({useProps:e}){function n(t){let{themeSwitch:n}=e();return n.component?n.component:(0,i.jsx)(tQ,{...t,...n})}function r(t){let{searchToggle:n}=e();return n.components?.sm?n.components.sm:(0,i.jsx)(tV,{...t,...n.sm})}function o(t){let{searchToggle:n}=e();return n.components?.lg?n.components.lg:(0,i.jsx)(tB,{...t,...n.full})}function l({href:t="/",...n}){let{url:r=t,title:o}=e().nav??{};return"function"==typeof o?o({href:r,...n}):(0,i.jsx)(t3.default,{href:r,...n,children:o})}return{useBaseSlots(e){let{locales:i=[]}=(0,t.useI18n)(),{nav:s,slots:a={},i18n:u=i.length>1,searchToggle:{enabled:c=!0,...f}={},themeSwitch:{enabled:d=!0,...p}={}}=e;return{baseSlots:{navTitle:a.navTitle??l,themeSwitch:d&&(a.themeSwitch??n),languageSelect:!!u&&(a.languageSelect??{root:tD,text:tF}),searchTrigger:c&&(a.searchTrigger??{sm:r,full:o})},baseProps:{nav:s,searchToggle:f,themeSwitch:p}}}}}},515995,e=>{"use strict";var t=e.i(210312);e.s(["useIsScrollTop",0,function({enabled:e=!0}
1){let[n,r]=(0,t.useState)();return(0,t.useEffect)(()=>{if(!e)return;let t=()=>{r(window.scrollY<10)};return t(),window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t)}},[e]),n}])},472786,558959,e=>{"use strict";var t=e.i(856928);let n={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};n.node;let r=(0,t.default)(n);e.s(["ChevronDown",0,r],472786);let i={name:"languages",size:24,node:[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]};i.node;let o=(0,t.default)(i);e.s(["Languages",0,o],558959)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.