1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,159495,e=>{e.v({delay0:"TutorialNavTooltip-module__bQx7FG__delay0",delay1:"TutorialNavTooltip-module__bQx7FG__delay1",delay2:"TutorialNavTooltip-module__bQx7FG__delay2",delay3:"TutorialNavTooltip-module__bQx7FG__delay3",enter:"TutorialNavTooltip-module__bQx7FG__enter",tooltip:"TutorialNavTooltip-module__bQx7FG__tooltip"})},65593,268046,e=>{"use strict";var t=e.i(843476),r=e.i(500932),n=e.i(271645),o=e.i(768834),a=e.i(186336),l=e.i(979944),i=e.i(885718),s=e.i(970827);let c=e=>{let n,o,c,d,u,p=(0,r.c)(20),f=e.delayDuration??600,m=e.skipDelayDuration??300;p[0]!==e.asChild||p[1]!==e.disabled||p[2]!==e.trigger?(n=(0,t.jsx)(a.Trigger,{disabled:e.disabled,asChild:e.asChild,children:e.trigger}),p[0]=e.asChild,p[1]=e.disabled,p[2]=e.trigger,p[3]=n):n=p[3];let h=` 2 portalStyles 3 z-20 bg-bg-page 4 px-3 py-2 5 max-w-(--radix-popover-content-available-width) 6 max-h-(--radix-popover-content-available-height) 7 light-container 8 border border-border rounded-md shadow-md 9 overflow-y-scroll no-scrollbar 10 ${e.className} 11 `,v=e.align?e.align:"center";return p[4]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(a.Arrow,{asChild:!0,width:16,height:8,viewBox:"0 0 16 8",children:(0,t.jsx)(l.PopoverArrow,{arrowFill:i.theme.colors.border,arrowStroke:"transparent"})}),p[4]=o):o=p[4],p[5]!==e.children||p[6]!==e.side||p[7]!==e.style||p[8]!==h||p[9]!==v?(c=(0,t.jsx)(a.Portal,{children:(0,t.jsx)(s.NestedCardThemeProvider,{children:(0,t.jsxs)(a.Content,{className:h,style:e.style,side:e.side,align:v,sideOffset:4,collisionPadding:16,children:[e.children,o]})})}),p[5]=e.children,p[6]=e.side,p[7]=e.style,p[8]=h,p[9]=v,p[10]=c):c=p[10],p[11]!==e.onOpenChange||p[12]!==e.open||p[13]!==n||p[14]!==c?(d=(0,t.jsxs)(a.Root,{open:e.open,onOpenChange:e.onOpenChange,children:[n,c]}),p[11]=e.onOpenChange,p[12]=e.open,p[13]=n,p[14]=c,p[15]=d):d=p[15],p[16]!==f||p[17]!==m||p[18]!==d?(u=(0,t.jsx)(a.Provider,{delayDuration:f,skipDelayDuration:m,children:d}),p[16]=f,p[17]=m,p[18]=d,p[19]=u):u=p[19],u};e.s(["Tooltip",0,c],268046);var d=e.i(227086),u=e.i(159495);let p=(0,o.create)(e=>({active:!1,setActive:t=>e({active:t}),blurred:!1,setBlurred:t=>e({blurred:t})}));function f(e){return e.setActive}function m(e){return e.setBlurred}let h={"new-doc":{title:"Create documents",description:"Add them to publications, or use them as notes.",showOn:"desktop",side:"right",align:"end"},publications:{title:"Your publications",description:"Create and manage a blog, newsletter, comic, novel, zine, etc!",showOn:"desktop",side:"right",align:"start"},banner:{title:"Explore the Network",description:"Discover and subscribe to other writers on the Atmosphere!",showOn:"desktop",side:"right",align:"center"},"sidebar-trigger":{title:"Everything's in here!",description:"Tap to open the sidebar. You'll be able to make new docs, find your publications, and manage your settings",showOn:"mobile",side:"top",align:"start"}},v=["new-doc","publications","banner"],x=[u.default.delay0,u.default.delay1,u.default.delay2];function g(e){return e.active}e.s(["TutorialNavTooltip",0,function(e){let n,o,a,l,i=(0,r.c)(14),s=p(g),f=(0,d.useIsMobile)(),{title:m,description:w,showOn:b,side:C,align:y}=h[e.target];i[0]!==e.children||i[1]!==e.className?(n=(0,t.jsx)("div",{className:e.className,children:e.children}),i[0]=e.children,i[1]=e.className,i[2]=n):n=i[2];let j=n;if(!s||"mobile"===b!==f)return j;let R=Math.max(v.indexOf(e.target),0),M=`${u.default.tooltip} ${x[R]} w-56 text-center`;return i[3]!==m?(o=(0,t.jsx)("div",{className:"font-bold",children:m}),i[3]=m,i[4]=o):o=i[4],i[5]!==w?(a=(0,t.jsx)("div",{className:"text-secondary text-sm leading-snug",children:w}),i[5]=w,i[6]=a):a=i[6],i[7]!==y||i[8]!==j||i[9]!==C||i[10]!==M||i[11]!==o||i[12]!==a?(l=(0,t.jsxs)(c,{asChild:!0,open:!0,side:C,align:y,className:M,trigger:j,children:[o,a]}),i[7]=y,i[8]=j,i[9]=C,i[10]=M,i[11]=o,i[12]=a,i[13]=l):l=i[13],l},"useActivateTutorialNavTour",0,function(){let e,t,o=(0,r.c)(3),a=p(f);o[0]!==a?(e=()=>(a(!0),()=>a(!1)),t=[a],o[0]=a,o[1]=e,o[2]=t):(e=o[1],t=o[2]),(0,n.useEffect)(e,t)},"useBlurTutorialNav",0,function(e){let t,o,a=(0,r.c)(4),l=p(m);a[0]!==e||a[1]!==l?(t=()=>(l(e),()=>l(!1)),o=[e,l],a[0]=e,a[1]=l,a[2]=t,a[3]=o):(t=a[2],o=a[3]),(0,n.useEffect)(t,o)},"useTutorialNavTour",0,p],65593)},727378,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(274210),o=e.i(696659);let a=(0,r.forwardRef)((e,a)=>{let{id:l,icon:i,label:s,primary:c,secondary:d,active:u,labelOnMobile:p,subtext:f,className:m,...h}=e,v=(0,r.useContext)(n.SidebarContext),x=(0,r.useContext)(o.PopoverOpenContext);return(0,r.useEffect)(()=>
11{if(x)return v.setChildForceOpen(!0),()=>{v.setChildForceOpen(!1)}},[v,x]),(0,t.jsxs)("button",{...h,ref:a,className:` 12 actionButton relative shrink-0 13 h-fit 14 rounded-md border 15 py-0.5 px-1 16 flex gap-2 items-start justify-start 17 sm:w-full sm:max-w-full ${p?"w-full":"w-fit"} 18 outline-2 outline-transparent outline-offset-1 19 20 ${c?"bg-accent-1 border-accent-1 text-accent-2 sm:hover:outline-accent-contrast focus:outline-accent-1 font-bold":d?"border-accent-contrast sm:hover:outline-accent-contrast focus:outline-accent-1 text-accent-contrast hover:border-accent-contrast focus:border-accent-contrast font-bold":"border-transparent text-secondary sm:hover:border-border justify-start! max-w-full"} 21 ${u?"bg-bg-page! border-border-light!":""} 22 ${m} 23 `,children:[(0,t.jsx)("div",{className:`shrink-0 flex flex-row gap-0.5 ${!c&&!d&&"text-secondary sm:text-tertiary"}`,children:i}),(0,t.jsxs)("div",{className:`w-fill flex flex-col ${f&&"leading-snug"} sm:max-w-full min-w-0 mr-1 ${v.open?"block":p?"sm:hidden block":"hidden"}`,children:[(0,t.jsx)("div",{className:"truncate text-left",children:s}),f&&(0,t.jsx)("div",{className:`text-xs ${d?"text-accent-contrast":"text-tertiary"} font-normal text-left`,children:f})]})]})});a.displayName="ActionButton",e.s(["ActionButton",0,a])},274210,e=>{"use strict";var t=e.i(843476),r=e.i(500932),n=e.i(427550),o=e.i(960622),a=e.i(271645),l=e.i(768834);let i=(0,a.createContext)({open:!1,setChildForceOpen:e=>{}}),s=(0,l.create)(e=>({open:!1,setOpen:t=>e({open:t})}));e.s(["Sidebar",0,function(e){let l,s,c,d,u,p,f=(0,r.c)(16),[m,h]=(0,a.useState)(!1),[v,x]=(0,a.useState)(!1),g=(0,o.useCardBorderHidden)(),w=e.mobile??!1,b=`pwa-padding pwa-padding-bottom sm:h-auto h-[calc(100dvh-16px)] ${e.alwaysOpen?"flex items-stretch sm:flex sm:items-stretch":"h-fit"}`,C=!!e.alwaysOpen||m||v;f[0]!==C?(l={open:C,setChildForceOpen:x},f[0]=C,f[1]=l):l=f[1];let y=` 24 actionSidebar 25 ${e.alwaysOpen?`sm:my-6 sm:h-auto h-full my-2 sm:ml-0 ml-2 w-56 ${g?"light-container":"frosted-container"}`:"w-max absolute top-0 left-0 z-10 opaque-container"} 26 p-[6px] 27 flex flex-col gap-0.5 justify-start border 28 rounded-md 29 ${e.className} 30 `;return f[2]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{h(!0)},f[2]=s):s=f[2],f[3]!==e.alwaysOpen?(c=()=>{e.alwaysOpen||h(!1)},f[3]=e.alwaysOpen,f[4]=c):c=f[4],f[5]!==e.children||f[6]!==y||f[7]!==c?(d=(0,t.jsx)("div",{className:y,onMouseOver:s,onMouseLeave:c,children:e.children}),f[5]=e.children,f[6]=y,f[7]=c,f[8]=d):d=f[8],f[9]!==l||f[10]!==d?(u=(0,t.jsx)(i,{value:l,children:d}),f[9]=l,f[10]=d,f[11]=u):u=f[11],f[12]!==w||f[13]!==b||f[14]!==u?(p=(0,t.jsx)(n.Media,{mobile:w,className:b,children:u}),f[12]=w,f[13]=b,f[14]=u,f[15]=p):p=f[15],p},"SidebarContext",0,i,"useSidebarStore",0,s])},503820,997779,669234,e=>{"use strict";var t=e.i(843476),r=e.i(500932);e.s(["CheckboxChecked",0,e=>{let n,o,a=(0,r.c)(3);return a[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 0C0.895431 0 0 0.89543 0 2V10C0 11.1046 0.89543 12 2 12H10C11.1046 12 12 11.1046 12 10V2C12 0.895431 11.1046 0 10 0H2ZM10.4554 3.95353C10.7769 3.59277 10.7451 3.03966 10.3843 2.71813C10.0236 2.3966 9.47046 2.4284 9.14893 2.78916L5.03209 7.40828L3.28982 5.92642C2.92171 5.61333 2.36949 5.65793 2.0564 6.02604C1.74331 6.39415 1.78791 6.94637 2.15602 7.25946L4.54955 9.29524C4.91165 9.60322 5.45339 9.56577 5.76966 9.21091L10.4554 3.95353Z",fill:"currentColor"}),a[0]=n):n=a[0],a[1]!==e?(o=(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:n}),a[1]=e,a[2]=o):o=a[2],o}],503820),e.s(["CheckboxEmpty",0,e=>{let n,o,a=(0,r.c)(3);return a[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1.875C0 0.839466 0.839466 0 1.875 0H10.125C11.1605 0 12 0.839466 12 1.875V10.125C12 11.1605 11.1605 12 10.125 12H1.875C0.839466 12 0 11.1605 0 10.125V1.875ZM1.875 1.25C1.52982 1.25 1.25 1.52982 1.25 1.875V10.125C1.25 10.4702 1.52982 10.75 1.875 10.75H10.125C10.4702 10.75 10.75 10.4702 10.75 10.
30125V1.875C10.75 1.52982 10.4702 1.25 10.125 1.25H1.875Z",fill:"currentColor"}),a[0]=n):n=a[0],a[1]!==e?(o=(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:n}),a[1]=e,a[2]=o):o=a[2],o}],997779),e.s(["CheckboxIndeterminate",0,e=>{let n,o,a=(0,r.c)(3);return a[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)("path",{d:"M10.125 0C11.1605 0 12 0.839466 12 1.875V10.125C12 11.1605 11.1605 12 10.125 12H1.875C0.839634 11.9998 0 11.1604 0 10.125V1.875C0 0.839588 0.839634 0.000197887 1.875 0H10.125ZM3.73145 5.10059C3.23452 5.10059 2.83127 5.50312 2.83105 6C2.83132 6.49683 3.23455 6.90039 3.73145 6.90039H8.27051C8.7672 6.90015 9.16966 6.49668 9.16992 6C9.16971 5.50327 8.76723 5.10083 8.27051 5.10059H3.73145Z",fill:"currentColor"}),a[0]=n):n=a[0],a[1]!==e?(o=(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:n}),a[1]=e,a[2]=o):o=a[2],o}],669234)},427550,e=>{"use strict";var t=e.i(843476),r=e.i(500932),n=e.i(227086);e.s(["Media",0,function(e){let o=(0,r.c)(6),a=(0,n.useIsInitialRender)(),l=(0,n.useIsMobile)();if(a){let r,n=`${e.mobile?"sm:hidden":"hidden sm:block"} ${e.className}`;return o[0]!==e.children||o[1]!==n?(r=(0,t.jsx)("div",{className:n,children:e.children}),o[0]=e.children,o[1]=n,o[2]=r):r=o[2],r}if(l&&e.mobile||!l&&!e.mobile){let r;return o[3]!==e.children||o[4]!==e.className?(r=(0,t.jsx)("div",{className:e.className,children:e.children}),o[3]=e.children,o[4]=e.className,o[5]=r):r=o[5],r}return null},"MediaContents",0,function(e){let o=(0,r.c)(7),a=(0,n.useIsInitialRender)(),l=(0,n.useIsMobile)();if(a){let r,n=`mediaContentContainer ${e.mobile?"sm:hidden contents":"hidden sm:contents"} ${e.className}`;return o[0]!==e.children||o[1]!==e.style||o[2]!==n?(r=(0,t.jsx)("div",{className:n,style:e.style,children:e.children}),o[0]=e.children,o[1]=e.style,o[2]=n,o[3]=r):r=o[3],r}if(l&&e.mobile||!l&&!e.mobile){let r;return o[4]!==e.children||o[5]!==e.className?(r=(0,t.jsx)("div",{className:e.className,children:e.children}),o[4]=e.children,o[5]=e.className,o[6]=r):r=o[6],r}return null}])},416504,e=>{"use strict";var t=e.i(843476),r=e.i(500932),n=e.i(271645),o=e.i(981140),a=e.i(820783),l=e.i(30030),i=e.i(369340),s=e.i(248425),c=e.i(75830),d=e.i(586318),u=e.i(726330),p=e.i(303536),f=e.i(765491),m=e.i(610772),h=e.i(853660),v=e.i(774606),x=e.i(296626),g=e.i(30207),w="rovingFocusGroup.onEntryFocus",b={bubbles:!1,cancelable:!0},C="RovingFocusGroup",[y,j,R]=(0,c.createCollection)(C),[M,N]=(0,l.createContextScope)(C,[R]),[_,k]=M(C),S=n.forwardRef((e,r)=>(0,t.jsx)(y.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,t.jsx)(y.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,t.jsx)(E,{...e,ref:r})})}));S.displayName=C;var E=n.forwardRef((e,r)=>{let{__scopeRovingFocusGroup:l,orientation:c,loop:u=!1,dir:p,currentTabStopId:f,defaultCurrentTabStopId:m,onCurrentTabStopIdChange:h,onEntryFocus:v,preventScrollOnEntryFocus:x=!1,...y}=e,R=n.useRef(null),M=(0,a.useComposedRefs)(r,R),N=(0,d.useDirection)(p),[k,S]=(0,i.useControllableState)({prop:f,defaultProp:m??null,onChange:h,caller:C}),[E,D]=n.useState(!1),P=(0,g.useCallbackRef)(v),I=j(l),O=n.useRef(!1),[F,A]=n.useState(0);return n.useEffect(()=>{let e=R.current;if(e)return e.addEventListener(w,P),()=>e.removeEventListener(w,P)},[P]),(0,t.jsx)(_,{scope:l,orientation:c,dir:N,loop:u,currentTabStopId:k,onItemFocus:n.useCallback(e=>S(e),[S]),onItemShiftTab:n.useCallback(()=>D(!0),[]),onFocusableItemAdd:n.useCallback(()=>A(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>A(e=>e-1),[]),children:(0,t.jsx)(s.Primitive.div,{tabIndex:E||0===F?-1:0,"data-orientation":c,...y,ref:M,style:{outline:"none",...e.style},onMouseDown:(0,o.composeEventHandlers)(e.onMouseDown,()=>{O.current=!0}),onFocus:(0,o.composeEventHandlers)(e.onFocus,e=>{let t=!O.current;if(e.target===e.currentTarget&&t&&!E){let t=new CustomEvent(w,b);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=I().filter(e=>e.focusable);T([e.find(e=>e.active),e.find(e=>e.id===k),...e].filter(Boolean).map(e=>e.ref.current),x)}}O.current=!1}),onBlur:(0,o.composeEventHandlers)(e.onBlur,()=>D(!1))})})}),D="RovingFocusGroupItem",P=n.forwardRef((e,r)=>{let{__scopeRovingFocusGroup:a,focusable:l=!0,active:i=!1,tabStopId:c,children:d,...u}=e,p=(0,m.useId)(),f=c||p,h=k(D,a),v=h.currentTabStopId===f,x=j(a),{onFocusableItemAdd:g,onFocusableItemRemove:w,currentTabStopId:b}=h;return n.useEffect(()=>{if(l)return g(),()=>w()},[l,g,w]),(0,t.jsx)(y.ItemSlot,{scope:a,id:f,focusable:l,active:i,children:(0,t.jsx)(s.Primitive.span,{tabIndex:v?0:-1,"data-orientation":h.orientation,...u,ref:r,onMouseDown:(0,o.composeEventHandlers)(e.onMouseDown,e=>{l?h.onItemFocus(f):e.preventDefault()}),onFocus:(0,o.composeEventHandlers)(e.onFocus,()=>h.onItemFocus(f)),onKeyDown:(0,o.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void h.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let o=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return I[o]}(e,h.orientation,h.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=x().filter(e=>
30e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&o.reverse();let a=o.indexOf(e.currentTarget);o=h.loop?(r=o,n=a+1,r.map((e,t)=>r[(n+t)%r.length])):o.slice(a+1)}setTimeout(()=>T(o))}}),children:"function"==typeof d?d({isCurrentTabStop:v,hasTabStop:null!=b}):d})})});P.displayName=D;var I={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function T(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var O=e.i(991918),F=e.i(186312),A=e.i(985369),H=["Enter"," "],L=["ArrowUp","PageDown","End"],$=["ArrowDown","PageUp","Home",...L],K={ltr:[...H,"ArrowRight"],rtl:[...H,"ArrowLeft"]},B={ltr:["ArrowLeft"],rtl:["ArrowRight"]},G="Menu",[V,U,Z]=(0,c.createCollection)(G),[z,Q]=(0,l.createContextScope)(G,[Z,h.createPopperScope,N]),X=(0,h.createPopperScope)(),Y=N(),[q,W]=z(G),[J,ee]=z(G),et=e=>{let{__scopeMenu:r,open:o=!1,children:a,dir:l,onOpenChange:i,modal:s=!0}=e,c=X(r),[u,p]=n.useState(null),f=n.useRef(!1),m=(0,g.useCallbackRef)(i),v=(0,d.useDirection)(l);return n.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,t.jsx)(h.Root,{...c,children:(0,t.jsx)(q,{scope:r,open:o,onOpenChange:m,content:u,onContentChange:p,children:(0,t.jsx)(J,{scope:r,onClose:n.useCallback(()=>m(!1),[m]),isUsingKeyboardRef:f,dir:v,modal:s,children:a})})})};et.displayName=G;var er=n.forwardRef((e,r)=>{let{__scopeMenu:n,...o}=e,a=X(n);return(0,t.jsx)(h.Anchor,{...a,...o,ref:r})});er.displayName="MenuAnchor";var en="MenuPortal",[eo,ea]=z(en,{forceMount:void 0}),el=e=>{let{__scopeMenu:r,forceMount:n,children:o,container:a}=e,l=W(en,r);return(0,t.jsx)(eo,{scope:r,forceMount:n,children:(0,t.jsx)(x.Presence,{present:n||l.open,children:(0,t.jsx)(v.Portal,{asChild:!0,container:a,children:o})})})};el.displayName=en;var ei="MenuContent",[es,ec]=z(ei),ed=n.forwardRef((e,r)=>{let n=ea(ei,e.__scopeMenu),{forceMount:o=n.forceMount,...a}=e,l=W(ei,e.__scopeMenu),i=ee(ei,e.__scopeMenu);return(0,t.jsx)(V.Provider,{scope:e.__scopeMenu,children:(0,t.jsx)(x.Presence,{present:o||l.open,children:(0,t.jsx)(V.Slot,{scope:e.__scopeMenu,children:i.modal?(0,t.jsx)(eu,{...a,ref:r}):(0,t.jsx)(ep,{...a,ref:r})})})})}),eu=n.forwardRef((e,r)=>{let l=W(ei,e.__scopeMenu),i=n.useRef(null),s=(0,a.useComposedRefs)(r,i);return n.useEffect(()=>{let e=i.current;if(e)return(0,F.hideOthers)(e)},[]),(0,t.jsx)(em,{...e,ref:s,trapFocus:l.open,disableOutsidePointerEvents:l.open,disableOutsideScroll:!0,onFocusOutside:(0,o.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>l.onOpenChange(!1)})}),ep=n.forwardRef((e,r)=>{let n=W(ei,e.__scopeMenu);return(0,t.jsx)(em,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),ef=(0,O.createSlot)("MenuContent.ScrollLock"),em=n.forwardRef((e,r)=>{let{__scopeMenu:l,loop:i=!1,trapFocus:s,onOpenAutoFocus:c,onCloseAutoFocus:d,disableOutsidePointerEvents:m,onEntryFocus:v,onEscapeKeyDown:x,onPointerDownOutside:g,onFocusOutside:w,onInteractOutside:b,onDismiss:C,disableOutsideScroll:y,...j}=e,R=W(ei,l),M=ee(ei,l),N=X(l),_=Y(l),k=U(l),[E,D]=n.useState(null),P=n.useRef(null),I=(0,a.useComposedRefs)(r,P,R.onContentChange),T=n.useRef(0),O=n.useRef(""),F=n.useRef(0),H=n.useRef(null),K=n.useRef("right"),B=n.useRef(0),G=y?A.RemoveScroll:n.Fragment;n.useEffect(()=>()=>window.clearTimeout(T.current),[]),(0,p.useFocusGuards)();let V=n.useCallback(e=>{var t,r;return K.current===H.current?.side&&(t=e,!!(r=H.current?.area)&&function(e,t){let{x:r,y:n}=e,o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let l=t[e],i=t[a],s=l.x,c=l.y,d=i.x,u=i.y;c>n!=u>n&&r<(d-s)*(n-c)/(u-c)+s&&(o=!o)}return o}({x:t.clientX,y:t.clientY},r))},[]);return(0,t.jsx)(es,{scope:l,searchRef:O,onItemEnter:n.useCallback(e=>{V(e)&&e.preventDefault()},[V]),onItemLeave:n.useCallback(e=>{V(e)||(P.current?.focus(),D(null))},[V]),onTriggerLeave:n.useCallback(e=>{V(e)&&e.preventDefault()},[V]),pointerGraceTimerRef:F,onPointerGraceIntentChange:n.useCallback(e=>{H.current=e},[]),children:(0,t.jsx)(G,{...y?{as:ef,allowPinchZoom:!0}:void 0,children:(0,t.jsx)(f.FocusScope,{asChild:!0,trapped:s,onMountAutoFocus:(0,o.composeEventHandlers)(c,e=>{e.preventDefault(),P.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:d,children:(0,t.jsx)(u.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:x,onPointerDownOutside:g,onFocusOutside:w,onInteractOutside:b,onDismiss:C,children:(0,t.jsx)(S,{asChild:!0,..._,dir:M.dir,orientation:"vertical",loop:i,currentTabStopId:E,onCurrentTabStopIdChange:D,onEntryFocus:(0,o.composeEventHandlers)(v,e=>{M.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,t.jsx)(h.Content,{role:"menu","aria-orientation":"vertical","data-state":e$(R.open),"data-radix-menu-content":"",dir:M.dir,...N,...j,ref:I,style:{outline:"none",...j.style},onKeyDown:(0,o.composeEventHandlers)(j.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.ke
30y.length;if(t){var o;let t,a,l,i,s,c;"Tab"===e.key&&e.preventDefault(),!r&&n&&(o=e.key,t=O.current+o,a=k().filter(e=>!e.disabled),l=document.activeElement,i=a.find(e=>e.ref.current===l)?.textValue,s=function(e,t,r){var n;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=r?e.indexOf(r):-1,l=(n=Math.max(a,0),e.map((t,r)=>e[(n+r)%e.length]));1===o.length&&(l=l.filter(e=>e!==r));let i=l.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return i!==r?i:void 0}(a.map(e=>e.textValue),t,i),c=a.find(e=>e.textValue===s)?.ref.current,function e(t){O.current=t,window.clearTimeout(T.current),""!==t&&(T.current=window.setTimeout(()=>e(""),1e3))}(t),c&&setTimeout(()=>c.focus()))}let a=P.current;if(e.target!==a||!$.includes(e.key))return;e.preventDefault();let l=k().filter(e=>!e.disabled).map(e=>e.ref.current);L.includes(e.key)&&l.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(l)}),onBlur:(0,o.composeEventHandlers)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(T.current),O.current="")}),onPointerMove:(0,o.composeEventHandlers)(e.onPointerMove,eG(e=>{let t=e.target,r=B.current!==e.clientX;e.currentTarget.contains(t)&&r&&(K.current=e.clientX>B.current?"right":"left",B.current=e.clientX)}))})})})})})})});ed.displayName=ei;var eh=n.forwardRef((e,r)=>{let{__scopeMenu:n,...o}=e;return(0,t.jsx)(s.Primitive.div,{role:"group",...o,ref:r})});eh.displayName="MenuGroup";var ev=n.forwardRef((e,r)=>{let{__scopeMenu:n,...o}=e;return(0,t.jsx)(s.Primitive.div,{...o,ref:r})});ev.displayName="MenuLabel";var ex="MenuItem",eg="menu.itemSelect",ew=n.forwardRef((e,r)=>{let{disabled:l=!1,onSelect:i,...c}=e,d=n.useRef(null),u=ee(ex,e.__scopeMenu),p=ec(ex,e.__scopeMenu),f=(0,a.useComposedRefs)(r,d),m=n.useRef(!1);return(0,t.jsx)(eb,{...c,ref:f,disabled:l,onClick:(0,o.composeEventHandlers)(e.onClick,()=>{let e=d.current;if(!l&&e){let t=new CustomEvent(eg,{bubbles:!0,cancelable:!0});e.addEventListener(eg,e=>i?.(e),{once:!0}),(0,s.dispatchDiscreteCustomEvent)(e,t),t.defaultPrevented?m.current=!1:u.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),m.current=!0},onPointerUp:(0,o.composeEventHandlers)(e.onPointerUp,e=>{m.current||e.currentTarget?.click()}),onKeyDown:(0,o.composeEventHandlers)(e.onKeyDown,e=>{let t=""!==p.searchRef.current;l||t&&" "===e.key||H.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});ew.displayName=ex;var eb=n.forwardRef((e,r)=>{let{__scopeMenu:l,disabled:i=!1,textValue:c,...d}=e,u=ec(ex,l),p=Y(l),f=n.useRef(null),m=(0,a.useComposedRefs)(r,f),[h,v]=n.useState(!1),[x,g]=n.useState("");return n.useEffect(()=>{let e=f.current;e&&g((e.textContent??"").trim())},[d.children]),(0,t.jsx)(V.ItemSlot,{scope:l,disabled:i,textValue:c??x,children:(0,t.jsx)(P,{asChild:!0,...p,focusable:!i,children:(0,t.jsx)(s.Primitive.div,{role:"menuitem","data-highlighted":h?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...d,ref:m,onPointerMove:(0,o.composeEventHandlers)(e.onPointerMove,eG(e=>{i?u.onItemLeave(e):(u.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,o.composeEventHandlers)(e.onPointerLeave,eG(e=>u.onItemLeave(e))),onFocus:(0,o.composeEventHandlers)(e.onFocus,()=>v(!0)),onBlur:(0,o.composeEventHandlers)(e.onBlur,()=>v(!1))})})})}),eC=n.forwardRef((e,r)=>{let{checked:n=!1,onCheckedChange:a,...l}=e;return(0,t.jsx)(eS,{scope:e.__scopeMenu,checked:n,children:(0,t.jsx)(ew,{role:"menuitemcheckbox","aria-checked":eK(n)?"mixed":n,...l,ref:r,"data-state":eB(n),onSelect:(0,o.composeEventHandlers)(l.onSelect,()=>a?.(!!eK(n)||!n),{checkForDefaultPrevented:!1})})})});eC.displayName="MenuCheckboxItem";var ey="MenuRadioGroup",[ej,eR]=z(ey,{value:void 0,onValueChange:()=>{}}),eM=n.forwardRef((e,r)=>{let{value:n,onValueChange:o,...a}=e,l=(0,g.useCallbackRef)(o);return(0,t.jsx)(ej,{scope:e.__scopeMenu,value:n,onValueChange:l,children:(0,t.jsx)(eh,{...a,ref:r})})});eM.displayName=ey;var eN="MenuRadioItem",e_=n.forwardRef((e,r)=>{let{value:n,...a}=e,l=eR(eN,e.__scopeMenu),i=n===l.value;return(0,t.jsx)(eS,{scope:e.__scopeMenu,checked:i,children:(0,t.jsx)(ew,{role:"menuitemradio","aria-checked":i,...a,ref:r,"data-state":eB(i),onSelect:(0,o.composeEventHandlers)(a.onSelect,()=>l.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});e_.displayName=eN;var ek="MenuItemIndicator",[eS,eE]=z(ek,{checked:!1}
30),eD=n.forwardRef((e,r)=>{let{__scopeMenu:n,forceMount:o,...a}=e,l=eE(ek,n);return(0,t.jsx)(x.Presence,{present:o||eK(l.checked)||!0===l.checked,children:(0,t.jsx)(s.Primitive.span,{...a,ref:r,"data-state":eB(l.checked)})})});eD.displayName=ek;var eP=n.forwardRef((e,r)=>{let{__scopeMenu:n,...o}=e;return(0,t.jsx)(s.Primitive.div,{role:"separator","aria-orientation":"horizontal",...o,ref:r})});eP.displayName="MenuSeparator";var eI=n.forwardRef((e,r)=>{let{__scopeMenu:n,...o}=e,a=X(n);return(0,t.jsx)(h.Arrow,{...a,...o,ref:r})});eI.displayName="MenuArrow";var[eT,eO]=z("MenuSub"),eF="MenuSubTrigger",eA=n.forwardRef((e,r)=>{let l=W(eF,e.__scopeMenu),i=ee(eF,e.__scopeMenu),s=eO(eF,e.__scopeMenu),c=ec(eF,e.__scopeMenu),d=n.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:p}=c,f={__scopeMenu:e.__scopeMenu},m=n.useCallback(()=>{d.current&&window.clearTimeout(d.current),d.current=null},[]);return n.useEffect(()=>m,[m]),n.useEffect(()=>{let e=u.current;return()=>{window.clearTimeout(e),p(null)}},[u,p]),(0,t.jsx)(er,{asChild:!0,...f,children:(0,t.jsx)(eb,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":s.contentId,"data-state":e$(l.open),...e,ref:(0,a.composeRefs)(r,s.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),l.open||l.onOpenChange(!0))},onPointerMove:(0,o.composeEventHandlers)(e.onPointerMove,eG(t=>{c.onItemEnter(t),!t.defaultPrevented&&(e.disabled||l.open||d.current||(c.onPointerGraceIntentChange(null),d.current=window.setTimeout(()=>{l.onOpenChange(!0),m()},100)))})),onPointerLeave:(0,o.composeEventHandlers)(e.onPointerLeave,eG(e=>{m();let t=l.content?.getBoundingClientRect();if(t){let r=l.content?.dataset.side,n="right"===r,o=t[n?"left":"right"],a=t[n?"right":"left"];c.onPointerGraceIntentChange({area:[{x:e.clientX+(n?-5:5),y:e.clientY},{x:o,y:t.top},{x:a,y:t.top},{x:a,y:t.bottom},{x:o,y:t.bottom}],side:r}),window.clearTimeout(u.current),u.current=window.setTimeout(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(e),e.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:(0,o.composeEventHandlers)(e.onKeyDown,t=>{let r=""!==c.searchRef.current;e.disabled||r&&" "===t.key||K[i.dir].includes(t.key)&&(l.onOpenChange(!0),l.content?.focus(),t.preventDefault())})})})});eA.displayName=eF;var eH="MenuSubContent",eL=n.forwardRef((e,r)=>{let l=ea(ei,e.__scopeMenu),{forceMount:i=l.forceMount,...s}=e,c=W(ei,e.__scopeMenu),d=ee(ei,e.__scopeMenu),u=eO(eH,e.__scopeMenu),p=n.useRef(null),f=(0,a.useComposedRefs)(r,p);return(0,t.jsx)(V.Provider,{scope:e.__scopeMenu,children:(0,t.jsx)(x.Presence,{present:i||c.open,children:(0,t.jsx)(V.Slot,{scope:e.__scopeMenu,children:(0,t.jsx)(em,{id:u.contentId,"aria-labelledby":u.triggerId,...s,ref:f,align:"start",side:"rtl"===d.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{d.isUsingKeyboardRef.current&&p.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,o.composeEventHandlers)(e.onFocusOutside,e=>{e.target!==u.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:(0,o.composeEventHandlers)(e.onEscapeKeyDown,e=>{d.onClose(),e.preventDefault()}),onKeyDown:(0,o.composeEventHandlers)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=B[d.dir].includes(e.key);t&&r&&(c.onOpenChange(!1),u.trigger?.focus(),e.preventDefault())})})})})})});function e$(e){return e?"open":"closed"}function eK(e){return"indeterminate"===e}function eB(e){return eK(e)?"indeterminate":e?"checked":"unchecked"}function eG(e){return t=>"mouse"===t.pointerType?e(t):void 0}eL.displayName=eH;var eV="DropdownMenu",[eU,eZ]=(0,l.createContextScope)(eV,[Q]),ez=Q(),[eQ,eX]=eU(eV),eY=e=>{let{__scopeDropdownMenu:r,children:o,dir:a,open:l,defaultOpen:s,onOpenChange:c,modal:d=!0}=e,u=ez(r),p=n.useRef(null),[f,h]=(0,i.useControllableState)({prop:l,defaultProp:s??!1,onChange:c,caller:eV});return(0,t.jsx)(eQ,{scope:r,triggerId:(0,m.useId)(),triggerRef:p,contentId:(0,m.useId)(),open:f,onOpenChange:h,onOpenToggle:n.useCallback(()=>h(e=>
30!e),[h]),modal:d,children:(0,t.jsx)(et,{...u,open:f,onOpenChange:h,dir:a,modal:d,children:o})})};eY.displayName=eV;var eq="DropdownMenuTrigger",eW=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,disabled:l=!1,...i}=e,c=eX(eq,n),d=ez(n);return(0,t.jsx)(er,{asChild:!0,...d,children:(0,t.jsx)(s.Primitive.button,{type:"button",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":c.open?"open":"closed","data-disabled":l?"":void 0,disabled:l,...i,ref:(0,a.composeRefs)(r,c.triggerRef),onPointerDown:(0,o.composeEventHandlers)(e.onPointerDown,e=>{!l&&0===e.button&&!1===e.ctrlKey&&(c.onOpenToggle(),c.open||e.preventDefault())}),onKeyDown:(0,o.composeEventHandlers)(e.onKeyDown,e=>{!l&&(["Enter"," "].includes(e.key)&&c.onOpenToggle(),"ArrowDown"===e.key&&c.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});eW.displayName=eq;var eJ=e=>{let{__scopeDropdownMenu:r,...n}=e,o=ez(r);return(0,t.jsx)(el,{...o,...n})};eJ.displayName="DropdownMenuPortal";var e0="DropdownMenuContent",e1=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:a,...l}=e,i=eX(e0,a),s=ez(a),c=n.useRef(!1);return(0,t.jsx)(ed,{id:i.contentId,"aria-labelledby":i.triggerId,...s,...l,ref:r,onCloseAutoFocus:(0,o.composeEventHandlers)(e.onCloseAutoFocus,e=>{c.current||i.triggerRef.current?.focus(),c.current=!1,e.preventDefault()}),onInteractOutside:(0,o.composeEventHandlers)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!i.modal||n)&&(c.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});e1.displayName=e0,n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,a=ez(n);return(0,t.jsx)(eh,{...a,...o,ref:r})}).displayName="DropdownMenuGroup",n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,a=ez(n);return(0,t.jsx)(ev,{...a,...o,ref:r})}).displayName="DropdownMenuLabel";var e2=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,a=ez(n);return(0,t.jsx)(ew,{...a,...o,ref:r})});e2.displayName="DropdownMenuItem";var e5=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,a=ez(n);return(0,t.jsx)(eC,{...a,...o,ref:r})});e5.displayName="DropdownMenuCheckboxItem";var e6=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,a=ez(n);return(0,t.jsx)(eM,{...a,...o,ref:r})});e6.displayName="DropdownMenuRadioGroup";var e3=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,a=ez(n);return(0,t.jsx)(e_,{...a,...o,ref:r})});e3.displayName="DropdownMenuRadioItem",n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,a=ez(n);return(0,t.jsx)(eD,{...a,...o,ref:r})}).displayName="DropdownMenuItemIndicator";var e7=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,a=ez(n);return(0,t.jsx)(eP,{...a,...o,ref:r})});e7.displayName="DropdownMenuSeparator";var e9=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,a=ez(n);return(0,t.jsx)(eI,{...a,...o,ref:r})});e9.displayName="DropdownMenuArrow",n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,a=ez(n);return(0,t.jsx)(eA,{...a,...o,ref:r})}).displayName="DropdownMenuSubTrigger",n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,a=ez(n);return(0,t.jsx)(eL,{...a,...o,ref:r,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}).displayName="DropdownMenuSubContent";var e4=e.i(885718),e8=e.i(970827),te=e.i(979944),tt=e.i(503820),tr=e.i(997779),tn=e.i(669234),to=e.i(696659),ta=e.i(960622);e.s(["CheckboxMenuItem",0,e=>{let n,o,a=(0,r.c)(11),l=!e.checked&&!!e.indeterminate,i=e.checked||l,s=`shrink-0 mt-1 ${i?"text-accent-contrast":"text-tertiary"}`,c=l?"indeterminate":!!e.checked,d=e.compact?`menuItem items-start text-sm py-0! 31 ${i?"text-primary! font-bold!":"text-tertiary! font-normal!"} 32 ${e.className}`:`menuItem 33 ${e.checked&&"bg-[var(--accent-light)]! border-accent-contrast! text-accent-contrast!"} 34 ${e.className}`;return a[0]!==s||a[1]!==l||a[2]!==e.checked||a[3]!==e.compact?(n=e.compact&&(l?(0,t.jsx)(tn.CheckboxIndeterminate,{className:s}):e.checked?(0,t.jsx)(tt.CheckboxChecked,{className:s}):(0,t.jsx)(tr.CheckboxEmpty,{className:s})),a[0]=s,a[1]=l,a[2]=e.checked,a[3]=e.compact,a[4]=n):n=a[4],a[5]!==e.children||a[6]!==e.onSelect||a[7]!==c||a[8]!==d||a[9]!==n?(o=(0,t.jsxs)(e5,{checked:c,onSelect:e.onSelect,className:d,children:[n,e.children]}),a[5]=e.children,a[6]=e.onSelect,a[7]=c,a[8]=d,a[9]=n,a[10]=o):o=a[10],o},"Menu",0,e=>
34{let o,a,l,i,s,c,d=(0,r.c)(23),[u,p]=(0,n.useState)(e.open||!1),f=(0,ta.useCardBorderHidden)();d[0]!==e?(o=t=>{p(t),e.onOpenChange?.(t)},d[0]=e,d[1]=o):o=d[1],d[2]!==e.asChild||d[3]!==e.trigger?(a=(0,t.jsx)(eW,{asChild:e.asChild,children:e.trigger}),d[2]=e.asChild,d[3]=e.trigger,d[4]=a):a=d[4];let m=e.side?e.side:"bottom",h=e.align?e.align:"center",v=e.alignOffset?e.alignOffset:void 0,x=` 35 dropdownMenu portalStyles z-20 p-1 36 flex flex-col gap-0.5 37 border border-border rounded-md shadow-md 38 ${e.className} 39 ${f?"light-container":"bg-bg-page"}`,g=e.background?e.background:f?"color-mix(in oklab, rgb(var(--primary)), rgb(var(--bg-page)) 95%)":e4.theme.colors["bg-page"],w=e.border?e.border:e4.theme.colors.border;return d[5]!==g||d[6]!==w?(l=(0,t.jsx)(e9,{asChild:!0,width:16,height:8,viewBox:"0 0 16 8",children:(0,t.jsx)(te.PopoverArrow,{arrowFill:g,arrowStroke:w})}),d[5]=g,d[6]=w,d[7]=l):l=d[7],d[8]!==e.children||d[9]!==m||d[10]!==h||d[11]!==v||d[12]!==x||d[13]!==l?(i=(0,t.jsx)(eJ,{children:(0,t.jsx)(e8.NestedCardThemeProvider,{children:(0,t.jsxs)(e1,{side:m,align:h,alignOffset:v,sideOffset:4,collisionPadding:16,className:x,children:[e.children,l]})})}),d[8]=e.children,d[9]=m,d[10]=h,d[11]=v,d[12]=x,d[13]=l,d[14]=i):i=d[14],d[15]!==u||d[16]!==a||d[17]!==i?(s=(0,t.jsxs)(to.PopoverOpenContext,{value:u,children:[a,i]}),d[15]=u,d[16]=a,d[17]=i,d[18]=s):s=d[18],d[19]!==e.open||d[20]!==o||d[21]!==s?(c=(0,t.jsx)(eY,{onOpenChange:o,open:e.open,children:s}),d[19]=e.open,d[20]=o,d[21]=s,d[22]=c):c=d[22],c},"MenuItem",0,e=>{let n,o,a=(0,r.c)(7);a[0]!==e?(n=t=>{e.onSelect(t)},a[0]=e,a[1]=n):n=a[1];let l=` 40 menuItem 41 ${e.className} 42 `;return a[2]!==e.children||a[3]!==e.id||a[4]!==n||a[5]!==l?(o=(0,t.jsx)(e2,{id:e.id,onSelect:n,className:l,children:e.children}),a[2]=e.children,a[3]=e.id,a[4]=n,a[5]=l,a[6]=o):o=a[6],o},"MenuSeparator",0,()=>{let e,n=(0,r.c)(1);return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(e7,{className:"border-border-light w-full border-b my-0.5"}),n[0]=e):e=n[0],e},"RadioMenuGroup",0,e=>{let n,o=(0,r.c)(4);return o[0]!==e.children||o[1]!==e.onValueChange||o[2]!==e.value?(n=(0,t.jsx)(e6,{className:"flex flex-col gap-0.5",value:e.value,onValueChange:e.onValueChange,children:e.children}),o[0]=e.children,o[1]=e.onValueChange,o[2]=e.value,o[3]=n):n=o[3],n},"RadioMenuItem",0,e=>{let n,o=(0,r.c)(5),a=` menuItem 43 ${e.selected&&"bg-[var(--accent-light)]! text-accent-contrast! "} 44 ${e.className} 45 `;return o[0]!==e.children||o[1]!==e.onSelect||o[2]!==e.value||o[3]!==a?(n=(0,t.jsx)(e3,{value:e.value,onSelect:e.onSelect,className:a,children:e.children}),o[0]=e.children,o[1]=e.onSelect,o[2]=e.value,o[3]=a,o[4]=n):n=o[4],n}],416504)},75830,e=>{"use strict";var t=e.i(271645),r=e.i(30030),n=e.i(820783),o=e.i(991918),a=e.i(843476);e.s(["createCollection",0,function(e){let l=e+"CollectionProvider",[i,s]=(0,r.createContextScope)(l),[c,d]=i(l,{collectionRef:{current:null},itemMap:new Map}),u=e=>{let{scope:r,children:n}=e,o=t.default.useRef(null),l=t.default.useRef(new Map).current;return(0,a.jsx)(c,{scope:r,itemMap:l,collectionRef:o,children:n})};u.displayName=l;let p=e+"CollectionSlot",f=(0,o.createSlot)(p),m=t.default.forwardRef((e,t)=>{let{scope:r,children:o}=e,l=d(p,r),i=(0,n.useComposedRefs)(t,l.collectionRef);return(0,a.jsx)(f,{ref:i,children:o})});m.displayName=p;let h=e+"CollectionItemSlot",v="data-radix-collection-item",x=(0,o.createSlot)(h),g=t.default.forwardRef((e,r)=>{let{scope:o,children:l,...i}=e,s=t.default.useRef(null),c=(0,n.useComposedRefs)(r,s),u=d(h,o);return t.default.useEffect(()=>(u.itemMap.set(s,{ref:s,...i}),()=>void u.itemMap.delete(s))),(0,a.jsx)(x,{...{[v]:""},ref:c,children:l})});return g.displayName=h,[{Provider:u,Slot:m,ItemSlot:g},function(r){let n=d(e+"CollectionConsumer",r);return t.default.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${v}]`));return Array.from(n.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[n.collectionRef,n.itemMap])},s]}])},586318,e=>{"use strict";var t=e.i(271645);e.i(843476);var r=t.createContext(void 0);e.s(["useDirection",0,function(e){let n=t.useContext(r);return e||n||"ltr"}])}]);
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.