1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9803],{11856:(e,r,n)=>{n.d(r,{A:()=>t});let t=(0,n(87985).A)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},34904:(e,r,n)=>{n.d(r,{G5:()=>eZ,H_:()=>eN,JU:()=>eF,Mz:()=>eP,Pb:()=>eq,UC:()=>eT,UE:()=>I,VF:()=>eU,YJ:()=>eL,ZL:()=>eI,ZP:()=>eH,bL:()=>eE,hN:()=>eG,i3:()=>eV,q7:()=>eS,wv:()=>eB,z6:()=>eO});var t=n(32110),o=n(23773),a=n(40799),l=n(12569),u=n(5565),i=n(53856),s=n(37643),c=n(45740),d=n(29054),f=n(19970),p=n(87036),v=n(45674),m=n(41940),h=n(99302),g=n(98477),w=n(54681),y=n(7374),x=n(4969),b=n(45589),C=n(3070),j=["Enter"," "],R=["ArrowUp","PageDown","End"],D=["ArrowDown","PageUp","Home",...R],M={ltr:[...j,"ArrowRight"],rtl:[...j,"ArrowLeft"]},_={ltr:["ArrowLeft"],rtl:["ArrowRight"]},k="Menu",[K,A,E]=(0,a.N)(k),[P,I]=(0,u.A)(k,[E,p.Bk,g.RG]),T=(0,p.Bk)(),L=(0,g.RG)(),[F,S]=P(k),[N,O]=P(k),G=e=>{let{__scopeMenu:r,open:n=!1,children:o,dir:a,onOpenChange:l,modal:u=!0}=e,s=T(r),[c,d]=t.useState(null),f=t.useRef(!1),v=(0,y.c)(l),m=(0,i.jH)(a);return t.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener("pointerdown",r,{capture:!0,once:!0}),document.addEventListener("pointermove",r,{capture:!0,once:!0})},r=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",r,{capture:!0}),document.removeEventListener("pointermove",r,{capture:!0})}},[]),(0,C.jsx)(p.bL,{...s,children:(0,C.jsx)(F,{scope:r,open:n,onOpenChange:v,content:c,onContentChange:d,children:(0,C.jsx)(N,{scope:r,onClose:t.useCallback(()=>v(!1),[v]),isUsingKeyboardRef:f,dir:m,modal:u,children:o})})})};G.displayName=k;var U=t.forwardRef((e,r)=>{let{__scopeMenu:n,...t}=e,o=T(n);return(0,C.jsx)(p.Mz,{...o,...t,ref:r})});U.displayName="MenuAnchor";var B="MenuPortal",[V,q]=P(B,{forceMount:void 0}),H=e=>{let{__scopeMenu:r,forceMount:n,children:t,container:o}=e,a=S(B,r);return(0,C.jsx)(V,{scope:r,forceMount:n,children:(0,C.jsx)(m.C,{present:n||a.open,children:(0,C.jsx)(v.Z,{asChild:!0,container:o,children:t})})})};H.displayName=B;var Z="MenuContent",[Y,z]=P(Z),X=t.forwardRef((e,r)=>{let n=q(Z,e.__scopeMenu),{forceMount:t=n.forceMount,...o}=e,a=S(Z,e.__scopeMenu),l=O(Z,e.__scopeMenu);return(0,C.jsx)(K.Provider,{scope:e.__scopeMenu,children:(0,C.jsx)(m.C,{present:t||a.open,children:(0,C.jsx)(K.Slot,{scope:e.__scopeMenu,children:l.modal?(0,C.jsx)(J,{...o,ref:r}):(0,C.jsx)(W,{...o,ref:r})})})})}),J=t.forwardRef((e,r)=>{let n=S(Z,e.__scopeMenu),a=t.useRef(null),u=(0,l.s)(r,a);return t.useEffect(()=>{let e=a.current;if(e)return(0,x.Eq)(e)},[]),(0,C.jsx)(Q,{...e,ref:u,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,o.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),W=t.forwardRef((e,r)=>{let n=S(Z,e.__scopeMenu);return(0,C.jsx)(Q,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),$=(0,w.TL)("MenuContent.ScrollLock"),Q=t.forwardRef((e,r)=>{let{__scopeMenu:n,loop:a=!1,trapFocus:u,onOpenAutoFocus:i,onCloseAutoFocus:f,disableOutsidePointerEvents:v,onEntryFocus:m,onEscapeKeyDown:h,onPointerDownOutside:w,onFocusOutside:y,onInteractOutside:x,onDismiss:j,disableOutsideScroll:M,..._}=e,k=S(Z,n),K=O(Z,n),E=T(n),P=L(n),I=A(n),[F,N]=t.useState(null),G=t.useRef(null),U=(0,l.s)(r,G,k.onContentChange),B=t.useRef(0),V=t.useRef(""),q=t.useRef(0),H=t.useRef(null),z=t.useRef("right"),X=t.useRef(0),J=M?b.A:t.Fragment;t.useEffect(()=>()=>window.clearTimeout(B.current),[]),(0,c.Oh)();let W=t.useCallback(e=>{var r,n;return z.current===(null==(r=H.current)?void 0:r.side)&&function(e,r){return!!r&&function(e,r){let{x:n,y:t}=e,o=!1;for(let e=0,a=r.length-1;e<r.length;a=e++){let l=r[e],u=r[a],i=l.x,s=l.y,c=u.x,d=u.y;s>t!=d>t&&n<(c-i)*(t-s)/(d-s)+i&&(o=!o)}return o}({x:e.clientX,y:e.clientY},r)}(e,null==(n=H.current)?void 0:n.area)},[]);return(0,C.jsx)(Y,{scope:n,searchRef:V,onItemEnter:t.useCallback(e=>{W(e)&&e.preventDefault()},[W]),onItemLeave:t.useCallback(e=>{var r;W(e)||(null==(r=G.current)||r.focus(),N(null))},[W]),onTriggerLeave:t.useCallback(e=>{W(e)&&e.preventDefault()},[W]),pointerGraceTimerRef:q,onPointerGraceIntentChange:t.useCallback(e=>{H.current=e},[]),children:(0,C.jsx)(J,{...M?{as:$,allowPinchZoom:!0}:void 0,children:(0,C.jsx)(d.n,{asChild:!0,trapped:u,onMountAutoFocus:(0,o.mK)(i,e=>{var r;e.preventDefault(),null==(r=G.current)||r.focus({preventScroll:!0})}),onUnmountAutoFocus:f,children:(0,C.jsx)(s.qW,{asChild:!0,disableOutsidePointerEvents:v,onEscapeKeyDown:h,onPointerDownOutside:w,onFocusOutside:y,onInteractOutside:x,onDismiss:j,children:(0,C.jsx)(g.bL,{asChild:!0,...P,dir:K.dir,orientation:"vertical",loop:a,currentTabStopId:F,onCurrentTabStopIdChange:N,onEntryFocus:(0,o.mK)(m,e=>{K.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,C.jsx)(p.UC,{role:"menu","aria-orientation":"vertical","data-state":e_(k.open),"data-radix-menu-content":"",dir:K.dir,...E,..._,ref:U,style:{outline:"none",..._.style},onKeyDown:(0,o.mK)(_.onKeyDown,e=>{let r=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,t=1===e.ke
1y.length;r&&("Tab"===e.key&&e.preventDefault(),!n&&t&&(e=>{var r,n;let t=V.current+e,o=I().filter(e=>!e.disabled),a=document.activeElement,l=null==(r=o.find(e=>e.ref.current===a))?void 0:r.textValue,u=function(e,r,n){var t;let o=r.length>1&&Array.from(r).every(e=>e===r[0])?r[0]:r,a=n?e.indexOf(n):-1,l=(t=Math.max(a,0),e.map((r,n)=>e[(t+n)%e.length]));1===o.length&&(l=l.filter(e=>e!==n));let u=l.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}(o.map(e=>e.textValue),t,l),i=null==(n=o.find(e=>e.textValue===u))?void 0:n.ref.current;!function e(r){V.current=r,window.clearTimeout(B.current),""!==r&&(B.current=window.setTimeout(()=>e(""),1e3))}(t),i&&setTimeout(()=>i.focus())})(e.key));let o=G.current;if(e.target!==o||!D.includes(e.key))return;e.preventDefault();let a=I().filter(e=>!e.disabled).map(e=>e.ref.current);R.includes(e.key)&&a.reverse(),function(e){let r=document.activeElement;for(let n of e)if(n===r||(n.focus(),document.activeElement!==r))return}(a)}),onBlur:(0,o.mK)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(B.current),V.current="")}),onPointerMove:(0,o.mK)(e.onPointerMove,eA(e=>{let r=e.target,n=X.current!==e.clientX;e.currentTarget.contains(r)&&n&&(z.current=e.clientX>X.current?"right":"left",X.current=e.clientX)}))})})})})})})});X.displayName=Z;var ee=t.forwardRef((e,r)=>{let{__scopeMenu:n,...t}=e;return(0,C.jsx)(h.sG.div,{role:"group",...t,ref:r})});ee.displayName="MenuGroup";var er=t.forwardRef((e,r)=>{let{__scopeMenu:n,...t}=e;return(0,C.jsx)(h.sG.div,{...t,ref:r})});er.displayName="MenuLabel";var en="MenuItem",et="menu.itemSelect",eo=t.forwardRef((e,r)=>{let{disabled:n=!1,onSelect:a,...u}=e,i=t.useRef(null),s=O(en,e.__scopeMenu),c=z(en,e.__scopeMenu),d=(0,l.s)(r,i),f=t.useRef(!1);return(0,C.jsx)(ea,{...u,ref:d,disabled:n,onClick:(0,o.mK)(e.onClick,()=>{let e=i.current;if(!n&&e){let r=new CustomEvent(et,{bubbles:!0,cancelable:!0});e.addEventListener(et,e=>null==a?void 0:a(e),{once:!0}),(0,h.hO)(e,r),r.defaultPrevented?f.current=!1:s.onClose()}}),onPointerDown:r=>{var n;null==(n=e.onPointerDown)||n.call(e,r),f.current=!0},onPointerUp:(0,o.mK)(e.onPointerUp,e=>{var r;f.current||null==(r=e.currentTarget)||r.click()}),onKeyDown:(0,o.mK)(e.onKeyDown,e=>{let r=""!==c.searchRef.current;n||r&&" "===e.key||j.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});eo.displayName=en;var ea=t.forwardRef((e,r)=>{let{__scopeMenu:n,disabled:a=!1,textValue:u,...i}=e,s=z(en,n),c=L(n),d=t.useRef(null),f=(0,l.s)(r,d),[p,v]=t.useState(!1),[m,w]=t.useState("");return t.useEffect(()=>{let e=d.current;if(e){var r;w((null!=(r=e.textContent)?r:"").trim())}},[i.children]),(0,C.jsx)(K.ItemSlot,{scope:n,disabled:a,textValue:null!=u?u:m,children:(0,C.jsx)(g.q7,{asChild:!0,...c,focusable:!a,children:(0,C.jsx)(h.sG.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...i,ref:f,onPointerMove:(0,o.mK)(e.onPointerMove,eA(e=>{a?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,o.mK)(e.onPointerLeave,eA(e=>s.onItemLeave(e))),onFocus:(0,o.mK)(e.onFocus,()=>v(!0)),onBlur:(0,o.mK)(e.onBlur,()=>v(!1))})})})}),el=t.forwardRef((e,r)=>{let{checked:n=!1,onCheckedChange:t,...a}=e;return(0,C.jsx)(ev,{scope:e.__scopeMenu,checked:n,children:(0,C.jsx)(eo,{role:"menuitemcheckbox","aria-checked":ek(n)?"mixed":n,...a,ref:r,"data-state":eK(n),onSelect:(0,o.mK)(a.onSelect,()=>null==t?void 0:t(!!ek(n)||!n),{checkForDefaultPrevented:!1})})})});el.displayName="MenuCheckboxItem";var eu="MenuRadioGroup",[ei,es]=P(eu,{value:void 0,onValueChange:()=>{}}),ec=t.forwardRef((e,r)=>{let{value:n,onValueChange:t,...o}=e,a=(0,y.c)(t);return(0,C.jsx)(ei,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,C.jsx)(ee,{...o,ref:r})})});ec.displayName=eu;var ed="MenuRadioItem",ef=t.forwardRef((e,r)=>{let{value:n,...t}=e,a=es(ed,e.__scopeMenu),l=n===a.value;return(0,C.jsx)(ev,{scope:e.__scopeMenu,checked:l,children:(0,C.jsx)(eo,{role:"menuitemradio","aria-checked":l,...t,ref:r,"data-state":eK(l),onSelect:(0,o.mK)(t.onSelect,()=>{var e;return null==(e=a.onValueChange)?void 0:e.call(a,n)},{checkForDefaultPrevented:!1})})})});
1ef.displayName=ed;var ep="MenuItemIndicator",[ev,em]=P(ep,{checked:!1}),eh=t.forwardRef((e,r)=>{let{__scopeMenu:n,forceMount:t,...o}=e,a=em(ep,n);return(0,C.jsx)(m.C,{present:t||ek(a.checked)||!0===a.checked,children:(0,C.jsx)(h.sG.span,{...o,ref:r,"data-state":eK(a.checked)})})});eh.displayName=ep;var eg=t.forwardRef((e,r)=>{let{__scopeMenu:n,...t}=e;return(0,C.jsx)(h.sG.div,{role:"separator","aria-orientation":"horizontal",...t,ref:r})});eg.displayName="MenuSeparator";var ew=t.forwardRef((e,r)=>{let{__scopeMenu:n,...t}=e,o=T(n);return(0,C.jsx)(p.i3,{...o,...t,ref:r})});ew.displayName="MenuArrow";var ey="MenuSub",[ex,eb]=P(ey),eC=e=>{let{__scopeMenu:r,children:n,open:o=!1,onOpenChange:a}=e,l=S(ey,r),u=T(r),[i,s]=t.useState(null),[c,d]=t.useState(null),v=(0,y.c)(a);return t.useEffect(()=>(!1===l.open&&v(!1),()=>v(!1)),[l.open,v]),(0,C.jsx)(p.bL,{...u,children:(0,C.jsx)(F,{scope:r,open:o,onOpenChange:v,content:c,onContentChange:d,children:(0,C.jsx)(ex,{scope:r,contentId:(0,f.B)(),triggerId:(0,f.B)(),trigger:i,onTriggerChange:s,children:n})})})};eC.displayName=ey;var ej="MenuSubTrigger",eR=t.forwardRef((e,r)=>{let n=S(ej,e.__scopeMenu),a=O(ej,e.__scopeMenu),u=eb(ej,e.__scopeMenu),i=z(ej,e.__scopeMenu),s=t.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=i,f={__scopeMenu:e.__scopeMenu},p=t.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return t.useEffect(()=>p,[p]),t.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),d(null)}},[c,d]),(0,C.jsx)(U,{asChild:!0,...f,children:(0,C.jsx)(ea,{id:u.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":u.contentId,"data-state":e_(n.open),...e,ref:(0,l.t)(r,u.onTriggerChange),onClick:r=>{var t;null==(t=e.onClick)||t.call(e,r),e.disabled||r.defaultPrevented||(r.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,o.mK)(e.onPointerMove,eA(r=>{i.onItemEnter(r),!r.defaultPrevented&&(e.disabled||n.open||s.current||(i.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100)))})),onPointerLeave:(0,o.mK)(e.onPointerLeave,eA(e=>{var r,t;p();let o=null==(r=n.content)?void 0:r.getBoundingClientRect();if(o){let r=null==(t=n.content)?void 0:t.dataset.side,a="right"===r,l=o[a?"left":"right"],u=o[a?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:l,y:o.top},{x:u,y:o.top},{x:u,y:o.bottom},{x:l,y:o.bottom}],side:r}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:(0,o.mK)(e.onKeyDown,r=>{let t=""!==i.searchRef.current;if(!e.disabled&&(!t||" "!==r.key)&&M[a.dir].includes(r.key)){var o;n.onOpenChange(!0),null==(o=n.content)||o.focus(),r.preventDefault()}})})})});eR.displayName=ej;var eD="MenuSubContent",eM=t.forwardRef((e,r)=>{let n=q(Z,e.__scopeMenu),{forceMount:a=n.forceMount,...u}=e,i=S(Z,e.__scopeMenu),s=O(Z,e.__scopeMenu),c=eb(eD,e.__scopeMenu),d=t.useRef(null),f=(0,l.s)(r,d);return(0,C.jsx)(K.Provider,{scope:e.__scopeMenu,children:(0,C.jsx)(m.C,{present:a||i.open,children:(0,C.jsx)(K.Slot,{scope:e.__scopeMenu,children:(0,C.jsx)(Q,{id:c.contentId,"aria-labelledby":c.triggerId,...u,ref:f,align:"start",side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var r;s.isUsingKeyboardRef.current&&(null==(r=d.current)||r.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,o.mK)(e.onFocusOutside,e=>{e.target!==c.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:(0,o.mK)(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:(0,o.mK)(e.onKeyDown,e=>{let r=e.currentTarget.contains(e.target),n=_[s.dir].includes(e.key);if(r&&n){var t;i.onOpenChange(!1),null==(t=c.trigger)||t.focus(),e.preventDefault()}})})})})})});function e_(e){return e?"open":"closed"}function ek(e){return"indeterminate"===e}function eK(e){return ek(e)?"indeterminate":e?"checked":"unchecked"}function eA(e){return r=>"mouse"===r.pointerType?e(r):void 0}eM.displayName=eD;var eE=G,eP=U,eI=H,eT=X,eL=ee,eF=er,eS=eo,eN=el,eO=ec,eG=ef,eU=eh,eB=eg,eV=ew,eq=eC,eH=eR,eZ=eM},57384:(e,r,n)=>{n.d(r,{A:()=>t});let t=(0,n(87985).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},93042:(e,r,n)=>{n.d(r,{UC:()=>L,VY:()=>O,ZD:()=>S,ZL:()=>I,bL:()=>E,hE:()=>N,hJ:()=>T,l9:()=>P,rc:()=>F});var t=n(32110),o=n(5565),a=n(12569),l=n(32002),u=n(23773),i=n(54681),s=n(3070),c="AlertDialog",[d,f]=(0,o.A)(c,[l.Hs]),p=(0,l.Hs)(),v=e=>{let{__scopeAlertDialog:r,...n}=e,t=p(r);return(0,s.jsx)(l.bL,{...t,...n,modal:!0})};v.displayName=c;var m=t.forwardRef((e,r)=>{let{__scopeAlertDialog:n,...t}=e,o=p(n);return(0,s.jsx)(l.l9,{...o,...t,ref:r})});m.displayName="AlertDialogTrigger";var h=e=>{let{__scopeAlertDialog:r,...n}=e,t=p(r);return(0,s.jsx)(l.ZL,{...t,...n})};h.displayName="AlertDialogPortal";var g=t.forwardRef((e,r)=>{let{__scopeAlertDialog:n,...t}=e,o=p(n);return(0,s.jsx)(l.hJ,{...o,...t,ref:r})});g.displayName="AlertDialogOverlay";var w="AlertDialogContent",[y,x]=d(w),b=(0,i.Dc)("AlertDialogContent"),C=t.forwardRef((e,r)=>{let{__scopeAlertDialog:n,children:o,...i}=e,c=p(n),d=t.useRef(null),f=(0,a.s)(r,d),v=t.useRef(null);return(0,s.jsx)(l.G$,{contentName:w,titleName:j,docsSlug:"alert-dialog",children:(0,s.jsx)(y,{scope:n,cancelRef:v,children:(0,s.jsxs)(l.UC,{role:"alertdialog",...c,...i,ref:f,onOpenAutoFocus:(0,u.mK)(i.onOpenAutoFocus,e=>{var r;e.preventDefault(),null==(r=v.current)||r.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,s.jsx)(b,{children:o}),(0,s.jsx)(A,{contentRef:d})]})})})});C.displayName=w;var j="AlertDialogTitle",R=t.forwardRef((e,r)=>{let{__scopeAlertDialog:n,...t}=e,o=p(n);return(0,s.jsx)(l.hE,{...o,...t,ref:r})});R.displayName=j;var D="AlertDialogDescription",M=t.forwardRef((e,r)=>{let{__scopeAlertDialog:n,...t}=e,o=p(n);return(0,s.jsx)(l.VY,{...o,...t,ref:r})});M.displayName=D;var _=t.forwardRef((e,r)=>{let{__scopeAlertDialog:n,...t}=e,o=p(n);return(0,s.jsx)(l.bm,{...o,...t,ref:r})});_.displayName="AlertDialogAction";var k="AlertDialogCancel",K=t.forwardRef((e,r)=>{let{__scopeAlertDialog:n,...t}=e,{cancelRef:o}=x(k,n),u=p(n),i=(0,a.s)(r,o);return(0,s.jsx)(l.bm,{...u,...t,ref:i})});K.displayName=k;var A=e=>{let{contentRef:r}=e,n="`".concat(w,"` requires a description for the component to be accessible for screen reader users.\n\nYou can add a de
1scription to the `").concat(w,"` by passing a `").concat(D,"` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an `id` and passing the same value to the `aria-describedby` prop in `").concat(w,"`. If the description is confusing or duplicative for sighted users, you can use the `@radix-ui/react-visually-hidden` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog");return t.useEffect(()=>{var e;document.getElementById(null==(e=r.current)?void 0:e.getAttribute("aria-describedby"))||console.warn(n)},[n,r]),null},E=v,P=m,I=h,T=g,L=C,F=_,S=K,N=R,O=M},98477:(e,r,n)=>{n.d(r,{RG:()=>b,bL:()=>A,q7:()=>E});var t=n(32110),o=n(23773),a=n(40799),l=n(12569),u=n(5565),i=n(19970),s=n(99302),c=n(7374),d=n(34090),f=n(53856),p=n(3070),v="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},h="RovingFocusGroup",[g,w,y]=(0,a.N)(h),[x,b]=(0,u.A)(h,[y]),[C,j]=x(h),R=t.forwardRef((e,r)=>(0,p.jsx)(g.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(g.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(D,{...e,ref:r})})}));R.displayName=h;var D=t.forwardRef((e,r)=>{let{__scopeRovingFocusGroup:n,orientation:a,loop:u=!1,dir:i,currentTabStopId:g,defaultCurrentTabStopId:y,onCurrentTabStopIdChange:x,onEntryFocus:b,preventScrollOnEntryFocus:j=!1,...R}=e,D=t.useRef(null),M=(0,l.s)(r,D),_=(0,f.jH)(i),[k,A]=(0,d.i)({prop:g,defaultProp:null!=y?y:null,onChange:x,caller:h}),[E,P]=t.useState(!1),I=(0,c.c)(b),T=w(n),L=t.useRef(!1),[F,S]=t.useState(0);return t.useEffect(()=>{let e=D.current;if(e)return e.addEventListener(v,I),()=>e.removeEventListener(v,I)},[I]),(0,p.jsx)(C,{scope:n,orientation:a,dir:_,loop:u,currentTabStopId:k,onItemFocus:t.useCallback(e=>A(e),[A]),onItemShiftTab:t.useCallback(()=>P(!0),[]),onFocusableItemAdd:t.useCallback(()=>S(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>S(e=>e-1),[]),children:(0,p.jsx)(s.sG.div,{tabIndex:E||0===F?-1:0,"data-orientation":a,...R,ref:M,style:{outline:"none",...e.style},onMouseDown:(0,o.mK)(e.onMouseDown,()=>{L.current=!0}),onFocus:(0,o.mK)(e.onFocus,e=>{let r=!L.current;if(e.target===e.currentTarget&&r&&!E){let r=new CustomEvent(v,m);if(e.currentTarget.dispatchEvent(r),!r.defaultPrevented){let e=T().filter(e=>e.focusable);K([e.find(e=>e.active),e.find(e=>e.id===k),...e].filter(Boolean).map(e=>e.ref.current),j)}}L.current=!1}),onBlur:(0,o.mK)(e.onBlur,()=>P(!1))})})}),M="RovingFocusGroupItem",_=t.forwardRef((e,r)=>{let{__scopeRovingFocusGroup:n,focusable:a=!0,active:l=!1,tabStopId:u,children:c,...d}=e,f=(0,i.B)(),v=u||f,m=j(M,n),h=m.currentTabStopId===v,y=w(n),{onFocusableItemAdd:x,onFocusableItemRemove:b,currentTabStopId:C}=m;return t.useEffect(()=>{if(a)return x(),()=>b()},[a,x,b]),(0,p.jsx)(g.ItemSlot,{scope:n,id:v,focusable:a,active:l,children:(0,p.jsx)(s.sG.span,{tabIndex:h?0:-1,"data-orientation":m.orientation,...d,ref:r,onMouseDown:(0,o.mK)(e.onMouseDown,e=>{a?m.onItemFocus(v):e.preventDefault()}),onFocus:(0,o.mK)(e.onFocus,()=>m.onItemFocus(v)),onKeyDown:(0,o.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;let r=function(e,r,n){var t;let o=(t=e.key,"rtl"!==n?t:"ArrowLeft"===t?"ArrowRight":"ArrowRight"===t?"ArrowLeft":t);if(!("vertical"===r&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===r&&["ArrowUp","ArrowDown"].includes(o)))return k[o]}(e,m.orientation,m.dir);if(void 0!==r){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=y().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===r)n.reverse();else if("prev"===r||"next"===r){"prev"===r&&n.reverse();let t=n.indexOf(e.currentTarget);n=m.loop?function(e,r){return e.map((n,t)=>e[(r+t)%e.length])}(n,t+1):n.slice(t+1)}setTimeout(()=>K(n))}}),children:"function"==typeof c?c({isCurrentTabStop:h,hasTabStop:null!=C}):c})})});_.displayName=M;var k={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function K(e){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let t of e)if(t===n||(t.focus({preventScroll:r}),document.activeElement!==n))return}var A=R,E=_}}]);
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.