;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="cff573fc-9085-20dc-c277-88d2bd949063")}catch(e){}}(); (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,435621,e=>{"use strict";var t=e.i(733783),n=e.i(267989),l=e.i(908464),i=e.i(365895),a=e.i(726756),o=e.i(473381),r=e.i(8038),c=e.i(899272);e.s(["EctoFloppyDogfoodingBanner",0,function(){let e,s,d,u,m,f,h,g,p,b,_,k,x=(0,l.c)(25),y=(0,i.useMcBool)("caed903e",!1),{openDeveloperDialog:S}=(0,a.useBugnubDialog)(),{viewerDeveloperOverrides:v}=(0,o.useDGWConnectionContext)();if(!y)return null;let C=v?.floppyMigrated===!0,j=v?.floppyMode??"default";if(!C&&"default"===j)return null;C?(e=!0,s="HARDCORE"):"on"===j?(e=!0,s="AUTHORITATIVE"):"authoritative_and_rendering"===j?(e=!0,s="AUTHORITATIVE_AND_RENDERING"):"cp_authoritative"===j?(e=!0,s="CP_AUTHORITATIVE"):(e=!1,s="NO_FLOPPY"),x[0]!==S?(d=()=>S(),x[0]=S,x[1]=d):d=x[1];let E=e?"bg-violet-500/10 text-violet-600 hover:bg-violet-500/20 dark:text-violet-400":"bg-gray-500/10 text-gray-600 hover:bg-gray-500/20 dark:text-gray-400";return x[2]!==E?(u=(0,c.cn)("text-caption-1 rounded-6 mx-3 mb-2 flex w-[calc(100%-1.5rem)] cursor-pointer items-center justify-between px-2 py-1.5 text-start transition-colors",E),x[2]=E,x[3]=u):u=x[3],x[4]!==s?(m="HARDCORE"===s&&n.fbt._("馃捑 Floppy Hardcore",null,{hk:"4luBq0"}),x[4]=s,x[5]=m):m=x[5],x[6]!==s?(f="AUTHORITATIVE"===s&&n.fbt._("馃捑 Floppy Authoritative",null,{hk:"IItMI"}),x[6]=s,x[7]=f):f=x[7],x[8]!==s?(h="AUTHORITATIVE_AND_RENDERING"===s&&n.fbt._("馃捑 Floppy Authoritative + Rendering",null,{hk:"1IqUIg"}),x[8]=s,x[9]=h):h=x[9],x[10]!==s?(g="CP_AUTHORITATIVE"===s&&n.fbt._("馃捑 CP Authoritative",null,{hk:"28QJv4"}),x[10]=s,x[11]=g):g=x[11],x[12]!==s?(p="NO_FLOPPY"===s&&n.fbt._("馃捑 No Floppy",null,{hk:"VQONr"}),x[12]=s,x[13]=p):p=x[13],x[14]!==m||x[15]!==f||x[16]!==h||x[17]!==g||x[18]!==p?(b=(0,t.jsxs)("div",{className:"truncate font-mono",children:[m,f,h,g,p]}),x[14]=m,x[15]=f,x[16]=h,x[17]=g,x[18]=p,x[19]=b):b=x[19],x[20]===Symbol.for("react.memo_cache_sentinel")?(_=(0,t.jsx)(r.default,{size:14,className:"shrink-0 opacity-60"}),x[20]=_):_=x[20],x[21]!==d||x[22]!==u||x[23]!==b?(k=(0,t.jsxs)("button",{type:"button",onClick:d,className:u,children:[b,_]}),x[21]=d,x[22]=u,x[23]=b,x[24]=k):k=x[24],k}])},42525,e=>{"use strict";var t,n,l,i;let a={fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"EctoDevOverrideBannerQuery",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"viewer",plural:!1,selections:[t={alias:null,args:null,kind:"ScalarField",name:"odNumber",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"clippyIp",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"atodToken",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"developerOverrides",storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"EctoDevOverrideBannerQuery",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},t,n,l,i,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:"2ea8eae41da80768752f0dec27b746cc",metadata:{},name:"EctoDevOverrideBannerQuery",operationKind:"query",text:null}};a.hash="7db4acddb68a0a07ce1152eaa8f2e502",e.s(["default",0,a])},662607,e=>{"use strict";var t=e.i(733783),n=e.i(267989),l=e.i(908464),i=e.i(726756),a=e.i(422371),o=e.i(8038),r=e.i(764169),c=e.i(526796),s=e.i(498337),d=e.i(992941),u=e.i(75736);let m={devOverrides:{query:e.i(42525).default,getVariables:()=>({})}};function f(e){return e.name.trim()&&e.skillContent.trim()}Object.values(m),e.s(["EctoDevOverrideBanner",0,function(){let h,g,p,b,_,k,x,y,S,v,C,j,E,T,I,N,M,L=(0,l.c)(48),{openDeveloperDialog:D}=(0,i.useBugnubDialog)(),{isAuthenticated:R}=(0,c.useAuth)(),{requestDeveloperOverrides:w}=(0,s.useEctoRequestDeveloperOverrides)();L[0]===Symbol.for("react.memo_cache_sentinel")?(h=e.r(42525),L[0]=h):h=L[0];let A=(0,u.useEctoPreloadedQuery)(h,m.devOverrides);if(L[1]!==A.viewer||L[2]!==R||L[3]!==w?.systemPrompt){let e=R?null:(0,d.getLocalDeveloperSettings)(),t=A.viewer;_=e?.odNumber??t?.odNumber??null,p=e?.clippyIp??t?.clippyIp??null,g=e?.atodToken??t?.atodToken??null,b=!!((k=e??(0,a.parseOverrides)(t?.developerOverrides)).systemPrompt||w?.systemPrompt),x=(k.skillOverrides??[]).filter(f),L[1]=A.viewer,L[2]=R,L[3]=w?.systemPrompt,L[4]=g,L[5]=p,L[6]=b,L[7]=_,L[8]=k,L[9]=x}else g=L[4],p=L[5],b=L[6],_=L[7],k=L[8],x=L[9];let O=x.length;if(!(_||p||g||k.dgwEndpoint||k.model||b||O>0||null!=k.integrityDisableCsamCheck||null!=k.integrityDisableCseCheck||null!=k.integrityDisablePromptCheck||null!=k.integrityDisableResponseCheck))return null;L[10]!==D?(y=()=>D(),L[10]=D,L[11]=y):y=L[11];let F=y;return L[12]!==F||L[13]!==_?(S=_&&(0,t.jsxs)("button",{type:"button",onClick:F,className:"text-caption-1 mx-3 mb-2 flex w-[calc(100%-1.5rem)] cursor-pointer items-center justify-between rounded-6 bg-orange-500/10 px-2 py-1.5 text-start text-orange-600 transition-colors hover:bg-orange-500/20 dark:text-orange-400",children:[(0,t.jsx)("div",{className:"truncate font-mono",children:n.fbt._("OD: {odNumber}",[n.fbt._param("odNumber",_)],{hk:"2vsK7g"})}),(0,t.jsx)(o.default,{size:14,className:"shrink-0 opacity-60"})]}),L[12]=F,L[13]=_,L[14]=S):S=L[14],L[15]!==p||L[16]!==F?(v=p&&(0,t.jsxs)(r.Tooltip,{children:[(0,t.jsx)(r.TooltipTrigger,{asChild:!0,children:(0,t.jsxs)("button",{type:"button",onClick:F,className:"text-caption-1 mx-3 mb-2 flex w-[calc(100%-1.5rem)] cursor-pointer items-center justify-between rounded-6 bg-orange-500/10 px-2 py-1.5 text-start text-orange-600 transition-colors hover:bg-orange-500/20 dark:text-orange-400",children:[(0,t.jsx)("div",{className:"truncate font-mono",children:n.fbt._("Clippy: {clippyIp}",[n.fbt._param("clippyIp",p)],{hk:"1PQbVv"})}),(0,t.jsx)(o.default,{size:14,className:"shrink-0 opacity-60"})]})}),(0,t.jsx)(r.TooltipContent,{children:p})]}),L[15]=p,L[16]=F,L[17]=v):v=L[17],L[18]!==g||L[19]!==F?(C=g&&(0,t.jsxs)("button",{type:"button",onClick:F,className:"text-caption-1 mx-3 mb-2 flex w-[calc(100%-1.5rem)] cursor-pointer items-center justify-between rounded-6 bg-orange-500/10 px-2 py-1.5 text-start text-orange-600 transition-colors hover:bg-orange-500/20 dark:text-orange-400",children:[(0,t.jsx)("div",{className:"truncate font-mono",children:n.fbt._("AT-OD: Active",null,{hk:"2zowhB"})}),(0,t.jsx)(o.default,{size:14,className:"shrink-0 opacity-60"})]}),L[18]=g,L[19]=F,L[20]=C):C=L[20],L[21]!==F||L[22]!==k.dgwEndpoint?(j=k.dgwEndpoint&&(0,t.jsxs)(r.Tooltip,{children:[(0,t.jsx)(r.TooltipTrigger,{asChild:!0,children:(0,t.jsxs)("button",{type:"button",onClick:F,className:"text-caption-1 mx-3 mb-2 flex w-[calc(100%-1.5rem)] cursor-pointer items-center justify-between rounded-6 bg-orange-500/10 px-2 py-1.5 text-start text-orange-600 transition-colors hover:bg-orange-500/20 dark:text-orange-400",children:[(0,t.jsx)("div",{className:"truncate font-mono",children:n.fbt._("DGW: {dgwEndpoint}",[n.fbt._param("dgwEndpoint",k.dgwEndpoint)],{hk:"1cLkKu"})}),(0,t.jsx)(o.default,{size:14,className:"shrink-0 opacity-60"})]})}),(0,t.jsx)(r.TooltipContent,{children:k.dgwEndpoint})]}),L[21]=F,L[22]=k.dgwEndpoint,L[23]=j):j=L[23],L[24]!==F||L[25]!==k.model?(E=k.model&&(0,t.jsxs)("button",{type:"button",onClick:F,className:"text-caption-1 mx-3 mb-2 flex w-[calc(100%-1.5rem)] cursor-pointer items-center justify-between rounded-6 bg-orange-500/10 px-2 py-1.5 text-start text-orange-600 transition-colors hover:bg-orange-500/20 dark:text-orange-400",children:[(0,t.jsx)("div",{className:"truncate font-mono",children:n.fbt._("Model: {model}",[n.fbt._param("model",k.model)],{hk:"295deL"})}),(0,t.jsx)(o.default,{size:14,className:"shrink-0 opacity-60"})]}),L[24]=F,L[25]=k.model,L[26]=E):E=L[26],L[27]!==F||L[28]!==b?(T=b&&(0,t.jsxs)("button",{type:"button",onClick:F,className:"text-caption-1 mx-3 mb-2 flex w-[calc(100%-1.5rem)] cursor-pointer items-center justify-between rounded-6 bg-orange-500/10 px-2 py-1.5 text-start text-orange-600 transition-colors hover:bg-orange-500/20 dark:text-orange-400",children:[(0,t.jsx)("div",{className:"truncate font-mono",children:n.fbt._("System Prompt Overridden",null,{hk:"1kqXsf"})}),(0,t.jsx)(o.default,{size:14,className:"shrink-0 opacity-60"})]}),L[27]=F,L[28]=b,L[29]=T):T=L[29],L[30]!==F||L[31]!==O?(I=O>0&&(0,t.jsxs)("button",{type:"button",onClick:F,className:"text-caption-1 mx-3 mb-2 flex w-[calc(100%-1.5rem)] cursor-pointer items-center justify-between rounded-6 bg-orange-500/10 px-2 py-1.5 text-start text-orange-600 transition-colors hover:bg-orange-500/20 dark:text-orange-400",children:[(0,t.jsx)("div",{className:"truncate font-mono",children:n.fbt._("Skill Overrides: {count}",[n.fbt._param("count",O)],{hk:"4qqn5j"})}),(0,t.jsx)(o.default,{size:14,className:"shrink-0 opacity-60"})]}),L[30]=F,L[31]=O,L[32]=I):I=L[32],L[33]!==F||L[34]!==k.integrityDisableCsamCheck||L[35]!==k.integrityDisableCseCheck||L[36]!==k.integrityDisablePromptCheck||L[37]!==k.integrityDisableResponseCheck?(N=(null!=k.integrityDisableCsamCheck||null!=k.integrityDisableCseCheck||null!=k.integrityDisablePromptCheck||null!=k.integrityDisableResponseCheck)&&(0,t.jsxs)("button",{type:"button",onClick:F,className:"text-caption-1 mx-3 mb-2 flex w-[calc(100%-1.5rem)] cursor-pointer items-center justify-between rounded-6 bg-orange-500/10 px-2 py-1.5 text-start text-orange-600 transition-colors hover:bg-orange-500/20 dark:text-orange-400",children:[(0,t.jsx)("div",{className:"truncate font-mono",children:n.fbt._("Integrity overrides",null,{hk:"3He5fo"})}),(0,t.jsx)(o.default,{size:14,className:"shrink-0 opacity-60"})]}),L[33]=F,L[34]=k.integrityDisableCsamCheck,L[35]=k.integrityDisableCseCheck,L[36]=k.integrityDisablePromptCheck,L[37]=k.integrityDisableResponseCheck,L[38]=N):N=L[38],L[39]!==N||L[40]!==S||L[41]!==v||L[42]!==C||L[43]!==j||L[44]!==E||L[45]!==T||L[46]!==I?(M=(0,t.jsxs)(t.Fragment,{children:[S,v,C,j,E,T,I,N]}),L[39]=N,L[40]=S,L[41]=v,L[42]=C,L[43]=j,L[44]=E,L[45]=T,L[46]=I,L[47]=M):M=L[47],M}],662607)},802608,336317,219747,e=>{"use strict";var t=e.i(908464),n=e.i(954405);e.s(["useNavigationClickLogger",0,function(e,l,i){let a,o=(0,t.c)(4);return o[0]!==l||o[1]!==e||o[2]!==i?(a=()=>{let t={nav_trigger_event:e,nav_trigger_target:l,...i};n.navigationSingleton.setPendingNavigationMetadata(t)},o[0]=l,o[1]=e,o[2]=i,o[3]=a):a=o[3],a}],802608);var l=e.i(733783),i=e.i(737778),a=e.i(609440);e.s(["default",0,function(e){let n,o=(0,t.c)(2);return o[0]!==e?(n=(0,l.jsx)(a.EctoAnimatedIconBase,{...e,fallbackIcon:i.default,lightSource:"/animations/lottie/nav-icons/Compose_Icon.json",darkSource:"/animations/lottie/nav-icons/Compose_Icon_DM.json"}),o[0]=e,o[1]=n):n=o[1],n}],336317);var o=e.i(153485);e.s(["default",0,function(e){let n,i=(0,t.c)(2);return i[0]!==e?(n=(0,l.jsx)(a.EctoAnimatedIconBase,{...e,fallbackIcon:o.default,lightSource:"/animations/lottie/nav-icons/Vibes_Icon.json",darkSource:"/animations/lottie/nav-icons/Vibes_Icon_DM.json"}),i[0]=e,i[1]=n):n=i[1],n}],219747)},684321,e=>{"use strict";let t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"EctoConversationItem_conversation",selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"conversationId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"displayTitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"pinned",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"updatedAt",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isUnread",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"wearableSurface",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"matchingSnippet",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"matchingSnippets",storageKey:null},{kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"clientCreated",storageKey:null}]}],type:"Conversation",abstractKey:null};t.hash="50ae609ea4dedd702304870dbde6cc0f",e.s(["default",0,t])},526384,e=>{"use strict";var t,n,l;let i={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"id"}],kind:"Fragment",metadata:null,name:"EctoPendingConversationItems_titleQuery",selections:[{kind:"ClientExtension",selections:[{alias:null,args:n=[{kind:"Variable",name:"id",variableName:"id"}],concreteType:"Conversation",kind:"LinkedField",name:"client_conversation",plural:!1,selections:[l={alias:null,args:null,kind:"ScalarField",name:"displayTitle",storageKey:null}],storageKey:null}]}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"EctoPendingConversationItems_titleQuery",selections:[{kind:"ClientExtension",selections:[{alias:null,args:n,concreteType:"Conversation",kind:"LinkedField",name:"client_conversation",plural:!1,selections:[l,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]}]},params:{cacheID:"3d58cf02c0eb9e797e487b068ccccae2",id:null,metadata:{},name:"EctoPendingConversationItems_titleQuery",operationKind:"query",text:null}};i.hash="92295acec0250b36c0e63039d2065439",e.s(["default",0,i])},389020,e=>{"use strict";let t={argumentDefinitions:[],kind:"Fragment",metadata:{plural:!0,throwOnFieldError:!0},name:"EctoGroupedConversationList_conversations",selections:[{alias:null,args:null,concreteType:"Conversation",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"updatedAt",storageKey:null},{args:null,kind:"FragmentSpread",name:"EctoConversationItem_conversation"}],storageKey:null}],type:"ConversationEdge",abstractKey:null};t.hash="61ca3e0eca2fdb99b736a872ce7fef09",e.s(["default",0,t])},604308,e=>{"use strict";var t;let n={fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"EctoMacOSDownloadMenuItemQuery",selections:t=[{alias:null,args:null,kind:"ScalarField",name:"macOSDownloadUrl",storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"EctoMacOSDownloadMenuItemQuery",selections:t},params:{id:"b27e7084e5487e468670d932e2462fbe",metadata:{},name:"EctoMacOSDownloadMenuItemQuery",operationKind:"query",text:null}};n.hash="0b2f47db6088aac3322324a0618a0195",e.s(["default",0,n])},198695,e=>{"use strict";let t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"EctoUserButton_viewer",selections:[{alias:null,args:null,kind:"ScalarField",name:"tosRegion",storageKey:null},{alias:null,args:null,concreteType:"SocialProfile",kind:"LinkedField",name:"socialProfile",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"profile_picture",storageKey:null}],storageKey:null}],type:"IViewerContext",abstractKey:"__isIViewerContext"};t.hash="ab7c3cb917038ee75b4a608594f9e107",e.s(["default",0,t])},794455,e=>{"use strict";var t,n;let l={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"first"},{defaultValue:null,kind:"LocalArgument",name:"seenStateFilter"}],kind:"Fragment",metadata:null,name:"useNotificationsDataQuery",selections:n=[{alias:null,args:[{kind:"Variable",name:"first",variableName:"first"},{kind:"Variable",name:"seenStateFilter",variableName:"seenStateFilter"}],concreteType:"UserNotification",kind:"LinkedField",name:"notifications",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"seen_state",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"target_url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"sent_timestamp",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"notif_title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"notif_subtitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"notif_body",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"notif_category",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"notif_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"actor_image_uri",storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"useNotificationsDataQuery",selections:n},params:{id:"75f1c7054e2da96d93b453dc97c87dc5",metadata:{},name:"useNotificationsDataQuery",operationKind:"query",text:null}};l.hash="51c7dcc492af4af117f511b0e3ca7810",e.s(["default",0,l])},770463,e=>{"use strict";var t,n;let l={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"input"}],kind:"Fragment",metadata:null,name:"useCommitNotificationsSeenMutation",selections:n=[{alias:null,args:[{kind:"Variable",name:"input",variableName:"input"}],concreteType:"MarkNotificationsSeenPayload",kind:"LinkedField",name:"markNotificationsSeen",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"success",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"notifications_count",storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"useCommitNotificationsSeenMutation",selections:n},params:{id:"82cc35a506a9ae02f881e91ce48c495e",metadata:{},name:"useCommitNotificationsSeenMutation",operationKind:"mutation",text:null}};l.hash="dfccfd4b5c27029db92919da74cc39b8",e.s(["default",0,l])},731639,e=>{"use strict";var t=e.i(733783),n=e.i(267989),l=e.i(908464),i=e.i(472361),a=e.i(579657),o=e.i(40339);e.i(178414);var r=e.i(919111),c=e.i(482708),s=e.i(907921),d=e.i(802608),u=e.i(272600),m=e.i(369835),f=e.i(365895),h=e.i(527357),g=e.i(237334),p=e.i(511038),b=e.i(614377);function _(e){let n,i,a,o,r,c,s,d=(0,l.c)(12);return d[0]!==e.title?(n=null!=e.title&&(0,t.jsx)("title",{children:e.title}),d[0]=e.title,d[1]=n):n=d[1],d[2]!==e.children?(i=null!=e.children&&(0,t.jsx)("defs",{children:e.children}),d[2]=e.children,d[3]=i):i=d[3],d[4]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.25 12.88C8.94 12.88 11.13 15.06 11.13 17.75C11.13 20.44 8.94 22.62 6.25 22.63C3.56 22.63 1.38 20.44 1.38 17.75C1.38 15.06 3.56 12.88 6.25 12.88ZM6.25 14.63C4.52 14.63 3.13 16.02 3.13 17.75C3.13 19.48 4.52 20.88 6.25 20.88C7.98 20.87 9.37 19.48 9.38 17.75C9.38 16.02 7.98 14.63 6.25 14.63Z"}),o=(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.1 13.13C19.51 13.13 19.86 13.12 20.16 13.15C20.46 13.17 20.77 13.23 21.08 13.38C21.52 13.61 21.89 13.98 22.12 14.42C22.27 14.73 22.33 15.04 22.35 15.34C22.38 15.64 22.38 15.99 22.38 16.4V19.1C22.38 19.51 22.38 19.86 22.35 20.16C22.33 20.46 22.27 20.77 22.12 21.08C21.89 21.52 21.52 21.89 21.08 22.12C20.77 22.27 20.46 22.33 20.16 22.35C19.86 22.38 19.51 22.38 19.1 22.38H16.4C15.99 22.38 15.64 22.38 15.34 22.35C15.04 22.33 14.73 22.27 14.42 22.12C13.98 21.89 13.61 21.52 13.38 21.08C13.23 20.77 13.17 20.46 13.15 20.16C13.12 19.86 13.13 19.51 13.13 19.1V16.4C13.13 15.99 13.12 15.64 13.15 15.34C13.17 15.04 13.23 14.73 13.38 14.42C13.61 13.97 13.97 13.61 14.42 13.38C14.73 13.23 15.04 13.17 15.34 13.15C15.64 13.12 15.99 13.13 16.4 13.13H19.1ZM16.4 14.88C15.97 14.88 15.69 14.88 15.49 14.89C15.29 14.91 15.23 14.93 15.22 14.94C15.1 15 15 15.1 14.94 15.22C14.94 15.23 14.91 15.29 14.89 15.49C14.88 15.69 14.88 15.97 14.88 16.4V19.1C14.88 19.53 14.88 19.81 14.89 20.01C14.91 20.21 14.94 20.27 14.94 20.28C15 20.4 15.1 20.5 15.22 20.56C15.23 20.57 15.29 20.59 15.49 20.61C15.69 20.62 15.97 20.63 16.4 20.63H19.1C19.53 20.63 19.81 20.62 20.01 20.61C20.21 20.59 20.27 20.57 20.28 20.56C20.4 20.5 20.5 20.4 20.56 20.28C20.57 20.27 20.59 20.21 20.61 20.01C20.62 19.81 20.63 19.53 20.63 19.1V16.4C20.63 15.97 20.62 15.69 20.61 15.49C20.59 15.29 20.57 15.23 20.56 15.22C20.5 15.1 20.4 15 20.28 14.94C20.27 14.94 20.21 14.91 20.01 14.89C19.81 14.88 19.53 14.88 19.1 14.88H16.4Z"}),r=(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.52 1.11C5.99 0.96 6.51 0.96 6.98 1.11C7.31 1.22 7.57 1.4 7.8 1.6C8.03 1.79 8.28 2.04 8.57 2.33L10.17 3.93C10.46 4.22 10.71 4.47 10.9 4.7C11.1 4.93 11.28 5.19 11.39 5.52C11.54 5.99 11.54 6.51 11.39 6.98C11.28 7.31 11.1 7.57 10.9 7.8C10.71 8.03 10.46 8.28 10.17 8.57L8.57 10.17C8.28 10.46 8.03 10.71 7.8 10.9C7.57 11.1 7.31 11.28 6.98 11.39C6.51 11.54 5.99 11.54 5.52 11.39C5.19 11.28 4.93 11.1 4.7 10.9C4.47 10.71 4.22 10.46 3.93 10.17L2.33 8.57C2.04 8.28 1.79 8.03 1.6 7.8C1.4 7.57 1.22 7.31 1.11 6.98C0.96 6.51 0.96 5.99 1.11 5.52C1.22 5.19 1.4 4.93 1.6 4.7C1.79 4.47 2.04 4.22 2.33 3.93L3.93 2.33C4.22 2.04 4.47 1.79 4.7 1.6C4.93 1.4 5.19 1.22 5.52 1.11ZM6.44 2.78C6.32 2.74 6.18 2.74 6.06 2.78C6.04 2.78 5.98 2.81 5.83 2.93C5.67 3.07 5.48 3.26 5.17 3.57L3.57 5.17C3.26 5.48 3.07 5.67 2.93 5.83C2.8 5.98 2.78 6.04 2.78 6.06C2.74 6.18 2.74 6.32 2.78 6.44C2.78 6.46 2.8 6.52 2.93 6.67C3.07 6.83 3.26 7.02 3.57 7.33L5.17 8.93C5.48 9.24 5.67 9.43 5.83 9.57C5.98 9.69 6.04 9.72 6.06 9.72C6.18 9.76 6.32 9.76 6.44 9.72C6.46 9.72 6.52 9.7 6.67 9.57C6.83 9.43 7.02 9.24 7.33 8.93L8.93 7.33C9.24 7.02 9.43 6.83 9.57 6.67C9.69 6.52 9.72 6.46 9.72 6.44C9.76 6.32 9.76 6.18 9.72 6.06C9.72 6.04 9.69 5.98 9.57 5.83C9.43 5.67 9.24 5.48 8.93 5.17L7.33 3.57C7.02 3.26 6.83 3.07 6.67 2.93C6.52 2.8 6.46 2.78 6.44 2.78Z"}),c=(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.33 1.67C17.65 1.57 17.99 1.59 18.3 1.72C18.59 1.85 18.77 2.07 18.87 2.21C18.98 2.35 19.09 2.54 19.19 2.71L22.54 8.34C22.64 8.53 22.76 8.72 22.84 8.88C22.91 9.04 23.02 9.31 22.99 9.63C22.95 10.02 22.75 10.38 22.43 10.61C22.17 10.8 21.88 10.84 21.71 10.86C21.53 10.88 21.31 10.88 21.09 10.88H14.41C14.19 10.88 13.97 10.88 13.79 10.86C13.62 10.84 13.33 10.8 13.07 10.61C12.75 10.38 12.55 10.02 12.51 9.63C12.48 9.31 12.59 9.04 12.67 8.88C12.74 8.72 12.86 8.53 12.96 8.34L16.31 2.71C16.41 2.54 16.52 2.35 16.63 2.21C16.73 2.07 16.91 1.85 17.2 1.72L17.33 1.67ZM14.54 9.13H20.96L17.75 3.71L14.54 9.13Z"}),d[4]=a,d[5]=o,d[6]=r,d[7]=c):(a=d[4],o=d[5],r=d[6],c=d[7]),d[8]!==e||d[9]!==n||d[10]!==i?(s=(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em",...e,children:[n,i,a,o,r,c]}),d[8]=e,d[9]=n,d[10]=i,d[11]=s):s=d[11],s}_._isSVG=!0;var k=e.i(609440);let x=e=>{let n,i,a,o=(0,l.c)(6);o[0]!==e?({size:i,...n}=e,o[0]=e,o[1]=n,o[2]=i):(n=o[1],i=o[2]);let r=void 0===i?24:i;return o[3]!==n||o[4]!==r?(a=(0,t.jsx)(_,{width:r,height:r,viewBox:"-4.5 -4.5 33 33",...n}),o[3]=n,o[4]=r,o[5]=a):a=o[5],a};function y(e){let n,i=(0,l.c)(2);return i[0]!==e?(n=(0,t.jsx)(k.EctoAnimatedIconBase,{...e,fallbackIcon:x,lightSource:"/animations/lottie/nav-icons/Library_Icon.json",darkSource:"/animations/lottie/nav-icons/Library_Icon_DM.json"}),i[0]=e,i[1]=n):n=i[1],n}var S=e.i(336317),v=e.i(88448);let C=e=>{let n,i,a,o=(0,l.c)(6);o[0]!==e?({size:i,...n}=e,o[0]=e,o[1]=n,o[2]=i):(n=o[1],i=o[2]);let r=void 0===i?24:i;return o[3]!==n||o[4]!==r?(a=(0,t.jsx)(v.default,{size:r,viewBox:"-2 -2 36 36",...n}),o[3]=n,o[4]=r,o[5]=a):a=o[5],a};function j(e){let n,i=(0,l.c)(2);return i[0]!==e?(n=(0,t.jsx)(k.EctoAnimatedIconBase,{...e,fallbackIcon:C,lightSource:"/animations/lottie/nav-icons/Media_Icon_Medium.json",darkSource:"/animations/lottie/nav-icons/Media_Icon_Medium_DM.json"}),i[0]=e,i[1]=n):n=i[1],n}var E=e.i(495357);let T=e=>{let n,i,a,o=(0,l.c)(6);o[0]!==e?({size:i,...n}=e,o[0]=e,o[1]=n,o[2]=i):(n=o[1],i=o[2]);let r=void 0===i?24:i;return o[3]!==n||o[4]!==r?(a=(0,t.jsx)(E.default,{size:r,viewBox:"-2 -2 36 36",...n}),o[3]=n,o[4]=r,o[5]=a):a=o[5],a};function I(e){let n,i=(0,l.c)(2);return i[0]!==e?(n=(0,t.jsx)(k.EctoAnimatedIconBase,{...e,fallbackIcon:T,lightSource:"/animations/lottie/nav-icons/Scheduled_Icon.json",darkSource:"/animations/lottie/nav-icons/Scheduled_Icon_DM.json"}),i[0]=e,i[1]=n):n=i[1],n}var N=e.i(441428);function M(e){let n,i=(0,l.c)(2);return i[0]!==e?(n=(0,t.jsx)(k.EctoAnimatedIconBase,{...e,fallbackIcon:N.default,lightSource:"/animations/lottie/nav-icons/Search_Icon.json",darkSource:"/animations/lottie/nav-icons/Search_Icon_DM.json"}),i[0]=e,i[1]=n):n=i[1],n}var L=e.i(219747);function D(){let e,o,_,k,x,v,C,E,T,N,D,O,F,P,B,K,z,V,U,G,H,Q,q,W,Y,X,$,Z,J,ee,et,en,el,ei,ea,eo,er,ec,es=(0,l.c)(142),[ed,eu]=(0,i.useState)(!1),em=(0,g.usePathname)(),{navigate:ef}=(0,h.useNavigate)(),{openSearchOrCompose:eh}=(0,s.useCommandPalette)(),{isMobile:eg,setOpenMobile:ep}=(0,r.useEctoSidebar)(),eb=(0,f.useMcBool)("caed903e",!1),e_=(0,f.useMcBool)("5145b6e6",!1),ek=(0,f.useMcBool)("67783c78",!1),ex=eb||!1,ey=(0,p.useVibesFeedUrl)(),eS=(0,d.useNavigationClickLogger)("nav_item_chat_click","EctoSidebarActions"),ev=(0,d.useNavigationClickLogger)("nav_item_search","EctoSidebarActions"),eC=(0,d.useNavigationClickLogger)("nav_item_feed_click","EctoSidebarActions"),ej=(0,d.useNavigationClickLogger)("nav_item_scheduled_click","EctoSidebarActions"),eE=(0,d.useNavigationClickLogger)("nav_item_imagine_create_click","EctoSidebarActions"),eT=(0,d.useNavigationClickLogger)("nav_item_library_click","EctoSidebarActions");es[0]===Symbol.for("react.memo_cache_sentinel")?(e={eventName:m.EctoClickEvent.NEW_CHAT_BUTTON,actionTarget:"EctoSidebarActions",actionType:"click"},es[0]=e):e=es[0];let{ref:eI,onClick:eN}=(0,u.useTrackedClickRef)(e);es[1]===Symbol.for("react.memo_cache_sentinel")?(o={eventName:m.EctoClickEvent.SEARCH_BUTTON,actionTarget:"EctoSidebarActions",actionType:"click"},es[1]=o):o=es[1];let{ref:eM,onClick:eL}=(0,u.useTrackedClickRef)(o);es[2]===Symbol.for("react.memo_cache_sentinel")?(_={eventName:m.EctoClickEvent.VIBES_BUTTON,actionTarget:"EctoSidebarActions",actionType:"click"},es[2]=_):_=es[2];let{ref:eD,onClick:eR}=(0,u.useTrackedClickRef)(_);es[3]===Symbol.for("react.memo_cache_sentinel")?(k={eventName:m.EctoClickEvent.SCHEDULED_BUTTON,actionTarget:"EctoSidebarActions",actionType:"click"},es[3]=k):k=es[3];let{ref:ew,onClick:eA}=(0,u.useTrackedClickRef)(k);es[4]===Symbol.for("react.memo_cache_sentinel")?(x={eventName:m.EctoClickEvent.CREATE_BUTTON,actionTarget:"EctoSidebarActions",actionType:"click"},es[4]=x):x=es[4];let{ref:eO,onClick:eF}=(0,u.useTrackedClickRef)(x);es[5]===Symbol.for("react.memo_cache_sentinel")?(v={eventName:m.EctoClickEvent.LIBRARY_BUTTON,actionTarget:"EctoSidebarActions",actionType:"click"},es[5]=v):v=es[5];let{ref:eP,onClick:eB}=(0,u.useTrackedClickRef)(v);es[6]===Symbol.for("react.memo_cache_sentinel")?(C={eventName:m.EctoClickEvent.SIDEBAR_MORE_BUTTON,actionTarget:"EctoSidebarActions",actionType:"click"},es[6]=C):C=es[6];let{ref:eK,onClick:ez}=(0,u.useTrackedClickRef)(C);es[7]===Symbol.for("react.memo_cache_sentinel")?(E={eventName:m.EctoClickEvent.NAV_ITEM_PROACTIVE_FEED_TOOLING_CLICK,actionTarget:"EctoSidebarActions",actionType:"click"},es[7]=E):E=es[7];let{ref:eV,onClick:eU}=(0,u.useTrackedClickRef)(E);es[8]!==eg||es[9]!==ep?(T=()=>{eg&&ep(!1)},es[8]=eg,es[9]=ep,es[10]=T):T=es[10];let eG=T;es[11]!==eG||es[12]!==eS||es[13]!==eN?(N=()=>{eS(),eN(),eG()},es[11]=eG,es[12]=eS,es[13]=eN,es[14]=N):N=es[14];let eH=N;es[15]!==eG||es[16]!==eg||es[17]!==ev||es[18]!==eL||es[19]!==eh?(D=()=>{ev(),eL(),eg?(eG(),setTimeout(eh,300)):eh()},es[15]=eG,es[16]=eg,es[17]=ev,es[18]=eL,es[19]=eh,es[20]=D):D=es[20];let eQ=D;es[21]!==eG||es[22]!==eC||es[23]!==eR?(O=()=>{eC(),eR(),eG()},es[21]=eG,es[22]=eC,es[23]=eR,es[24]=O):O=es[24];let eq=O;es[25]!==eG||es[26]!==ej||es[27]!==eA?(F=()=>{ej(),eA(),eG()},es[25]=eG,es[26]=ej,es[27]=eA,es[28]=F):F=es[28];let eW=F;es[29]!==eG||es[30]!==eE||es[31]!==eF||es[32]!==ef?(P=()=>{eE(),eF(),eG(),ef("/create")},es[29]=eG,es[30]=eE,es[31]=eF,es[32]=ef,es[33]=P):P=es[33];let eY=P;es[34]!==eG||es[35]!==eT||es[36]!==eB?(B=()=>{eT(),eB(),eG()},es[34]=eG,es[35]=eT,es[36]=eB,es[37]=B):B=es[37];let eX=B;es[38]!==ez?(K=()=>{ez(),eu(A)},es[38]=ez,es[39]=K):K=es[39];let e$=K;es[40]!==eG||es[41]!==eU||es[42]!==ef?(z=()=>{eU(),ef("/proactive_feed_tooling"),eG()},es[40]=eG,es[41]=eU,es[42]=ef,es[43]=z):z=es[43];let eZ=z;es[44]===Symbol.for("react.memo_cache_sentinel")?(V=n.fbs._("New chat",null,{hk:"3IB0DT"}),U={href:"/",prefetch:"initial_viewport_or_hover"},es[44]=V,es[45]=U):(V=es[44],U=es[45]),es[46]===Symbol.for("react.memo_cache_sentinel")?(G={key:"O",modifiers:{meta:!0,shift:!0}},es[46]=G):G=es[46],es[47]!==eH?(H=(0,t.jsx)(a.SidebarMenuButton,{animatedIcon:S.default,label:V,linkProps:U,onClick:eH,shortcut:G,"data-testid":"new-chat-button"}),es[47]=eH,es[48]=H):H=es[48],es[49]!==eI||es[50]!==H?(Q={key:"new-chat",node:(0,t.jsx)(a.SidebarMenuItem,{children:(0,t.jsx)("div",{ref:eI,children:H})})},es[49]=eI,es[50]=H,es[51]=Q):Q=es[51],es[52]===Symbol.for("react.memo_cache_sentinel")?(q=n.fbs._("Search",null,{hk:"4vRMaY"}),es[52]=q):q=es[52],es[53]===Symbol.for("react.memo_cache_sentinel")?(W={key:"K",modifiers:{meta:!0}},es[53]=W):W=es[53],es[54]!==eQ?(Y=(0,t.jsx)(a.SidebarMenuButton,{animatedIcon:M,label:q,onClick:eQ,shortcut:W}),es[54]=eQ,es[55]=Y):Y=es[55],es[56]!==eM||es[57]!==Y?(X={key:"search",node:(0,t.jsx)(a.SidebarMenuItem,{children:(0,t.jsx)("div",{ref:eM,children:Y})})},es[56]=eM,es[57]=Y,es[58]=X):X=es[58],es[59]===Symbol.for("react.memo_cache_sentinel")?($=n.fbs._("Media",null,{hk:"1ZnAfz"}),Z={href:"/create",prefetch:"initial_viewport_or_hover"},es[59]=$,es[60]=Z):($=es[59],Z=es[60]);let eJ="/create"===em;if(es[61]!==eY||es[62]!==eJ?(J=(0,t.jsx)(a.SidebarMenuButton,{animatedIcon:j,label:$,linkProps:Z,onClick:eY,isActive:eJ}),es[61]=eY,es[62]=eJ,es[63]=J):J=es[63],es[64]!==eO||es[65]!==J?(ee={key:"create",node:(0,t.jsx)(a.SidebarMenuItem,{children:(0,t.jsx)("div",{ref:eO,children:J})})},es[64]=eO,es[65]=J,es[66]=ee):ee=es[66],es[67]!==eX||es[68]!==eZ||es[69]!==eW||es[70]!==eq||es[71]!==ek||es[72]!==e_||es[73]!==eP||es[74]!==em||es[75]!==eV||es[76]!==ew||es[77]!==ex||es[78]!==Q||es[79]!==X||es[80]!==ee||es[81]!==ey||es[82]!==eD){let e,l,i;if(et=[Q,X,ee],ek){let e,l,i,o;es[84]===Symbol.for("react.memo_cache_sentinel")?(e=n.fbs._("Artifacts",null,{hk:"1xXbj0"}),l={href:"/artifacts",prefetch:"initial_viewport_or_hover"},es[84]=e,es[85]=l):(e=es[84],l=es[85]);let r="/artifacts"===em;es[86]!==eX||es[87]!==r?(i=(0,t.jsx)(a.SidebarMenuButton,{animatedIcon:y,label:e,linkProps:l,onClick:eX,isActive:r}),es[86]=eX,es[87]=r,es[88]=i):i=es[88],es[89]!==eP||es[90]!==i?(o={key:"artifacts",node:(0,t.jsx)(a.SidebarMenuItem,{children:(0,t.jsx)("div",{ref:eP,children:i})})},es[89]=eP,es[90]=i,es[91]=o):o=es[91],et.push(o)}if(e_){let e,l,i,o;es[92]===Symbol.for("react.memo_cache_sentinel")?(e=n.fbs._("Scheduled",null,{hk:"2nWcay"}),l={href:"/scheduled",prefetch:"initial_viewport_or_hover"},es[92]=e,es[93]=l):(e=es[92],l=es[93]);let r="/scheduled"===em;es[94]!==eW||es[95]!==r?(i=(0,t.jsx)(a.SidebarMenuButton,{animatedIcon:I,label:e,linkProps:l,onClick:eW,isActive:r}),es[94]=eW,es[95]=r,es[96]=i):i=es[96],es[97]!==ew||es[98]!==i?(o={key:"scheduled",node:(0,t.jsx)(a.SidebarMenuItem,{children:(0,t.jsx)("div",{ref:ew,children:i})})},es[97]=ew,es[98]=i,es[99]=o):o=es[99],et.push(o)}es[100]!==ey?(e={href:ey,prefetch:"initial_viewport_or_hover"},es[100]=ey,es[101]=e):e=es[101];let o="/vibes"===em;es[102]!==eq||es[103]!==e||es[104]!==o?(l=(0,t.jsx)(a.SidebarMenuButton,{animatedIcon:L.default,label:"Vibes",linkProps:e,onClick:eq,isActive:o}),es[102]=eq,es[103]=e,es[104]=o,es[105]=l):l=es[105],es[106]!==l||es[107]!==eD?(i={key:"vibes",node:(0,t.jsx)(a.SidebarMenuItem,{children:(0,t.jsx)("div",{ref:eD,children:l})})},es[106]=l,es[107]=eD,es[108]=i):i=es[108],et.push(i),es[67]=eX,es[68]=eZ,es[69]=eW,es[70]=eq,es[71]=ek,es[72]=e_,es[73]=eP,es[74]=em,es[75]=eV,es[76]=ew,es[77]=ex,es[78]=Q,es[79]=X,es[80]=ee,es[81]=ey,es[82]=eD,es[83]=et}else et=es[83];es[118]!==eg?(en=function({isMobile:e}){return e?5:null}({isMobile:eg}),es[118]=eg,es[119]=en):en=es[119];let e1=en,e0=null!=e1&&et.length>e1;es[120]!==et||es[121]!==e0||es[122]!==e1?(el=e0?et.slice(0,e1):et,es[120]=et,es[121]=e0,es[122]=e1,es[123]=el):el=es[123];let e2=el;es[124]!==et||es[125]!==e0||es[126]!==e1?(ei=e0?et.slice(e1):[],es[124]=et,es[125]=e0,es[126]=e1,es[127]=ei):ei=es[127];let e3=ei;return es[128]!==e2?(ea=e2.map(w),es[128]=e2,es[129]=ea):ea=es[129],es[130]!==e$||es[131]!==ed||es[132]!==eK||es[133]!==e0?(eo=e0&&!ed&&(0,t.jsx)(a.SidebarMenuItem,{children:(0,t.jsx)("div",{ref:eK,children:(0,t.jsx)(a.SidebarMenuButton,{icon:b.default,label:n.fbs._("More",null,{hk:"3PlMpk"}),onClick:e$,"aria-expanded":ed})})}),es[130]=e$,es[131]=ed,es[132]=eK,es[133]=e0,es[134]=eo):eo=es[134],es[135]!==e3||es[136]!==ed?(er=ed&&e3.map(R),es[135]=e3,es[136]=ed,es[137]=er):er=es[137],es[138]!==ea||es[139]!==eo||es[140]!==er?(ec=(0,t.jsx)(c.InteractionAreaProvider,{targetArea:"nav_button",children:(0,t.jsx)(a.SidebarGroup,{className:"bg-bg-sidebar relative z-10 shrink-0 pe-2",children:(0,t.jsx)(a.SidebarGroupContent,{children:(0,t.jsxs)(a.SidebarMenu,{children:[ea,eo,er]})})})}),es[138]=ea,es[139]=eo,es[140]=er,es[141]=ec):ec=es[141],ec}function R(e){return(0,t.jsx)(i.Suspense,{fallback:null,children:e.node},e.key)}function w(e){return(0,t.jsx)(i.Suspense,{fallback:null,children:e.node},e.key)}function A(e){return!e}var O=e.i(235338),F=e.i(899272),P=e.i(20474),B=e.i(761588),K=e.i(831825),z=e.i(211141),V=e.i(39491),U=e.i(742572),G=e.i(877519),H=e.i(673715),Q=e.i(588473);function q(e){let n,i,a,o,r,c=(0,l.c)(10);c[0]!==e?({size:i,...n}=e,c[0]=e,c[1]=n,c[2]=i):(n=c[1],i=c[2]);let s=void 0===i?32:i;return c[3]!==n.title?(a=null!=n.title&&(0,t.jsx)("title",{children:n.title}),c[3]=n.title,c[4]=a):a=c[4],c[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.041 11c.993-.03 1.988.027 2.973.173a50.1 50.1 0 0 1 3.174.523 1 1 0 0 1 .812.981v1.05a1 1 0 0 1-.758.97l-.201.05a3.404 3.404 0 0 1-.094.609l-.718 2.868a5 5 0 0 1-4.85 3.784h-.44a5 5 0 0 1-4.771-3.507l-.376-1.2-.002.001-.117-.38-.342-1.094a3.548 3.548 0 0 1-.06-.216l-.168-.548a1.153 1.153 0 0 0-2.203-.002l-.202.652c-.01.038-.02.077-.032.114l-.217.69-.242.786h-.003L13.83 18.5a5 5 0 0 1-4.771 3.507h-.44a5 5 0 0 1-4.85-3.784l-.718-2.868a3.407 3.407 0 0 1-.095-.61l-.197-.048a1 1 0 0 1-.758-.97v-1.05a1 1 0 0 1 .813-.982 50.282 50.282 0 0 1 3.156-.52 16.82 16.82 0 0 1 2.983-.177L9 11h.019c.11.004.22.01.33.016.147.007.294.016.44.027l.112.01c.19.016.38.036.569.059l.068.008c.347.043.692.096 1.037.157l.317.053c.108.017.215.04.319.068.535.107 1.07.228 1.601.353.72.17 1.455.25 2.188.245a9.289 9.289 0 0 0 2.188-.245 51.932 51.932 0 0 1 1.586-.35c.108-.029.219-.053.331-.072l.345-.056a20.866 20.866 0 0 1 1.095-.163 16.52 16.52 0 0 1 1.437-.11h.059zm-12.19 2.186a14.844 14.844 0 0 0-4.744-.01A1.377 1.377 0 0 0 4.99 14.87l.719 2.868a3.001 3.001 0 0 0 2.91 2.27h.44a3 3 0 0 0 2.863-2.103l.709-2.268.135-.437a1.498 1.498 0 0 0-1.197-1.897l-.716-.117zm15.039-.01a14.843 14.843 0 0 0-4.745.01l-.716.117a1.498 1.498 0 0 0-1.22 1.809l.387 1.255.48 1.538a3 3 0 0 0 2.863 2.103h.44a3 3 0 0 0 2.91-2.27l.719-2.868a1.377 1.377 0 0 0-1.118-1.695z",fill:"currentColor"}),c[5]=o):o=c[5],c[6]!==n||c[7]!==s||c[8]!==a?(r=(0,t.jsxs)("svg",{viewBox:"0 0 32 32",fill:"none",width:s,height:s,...n,children:[a,o]}),c[6]=n,c[7]=s,c[8]=a,c[9]=r):r=c[9],r}q._isSVG=!0;var W=e.i(813156),Y=e.i(571613),X=e.i(96006),$=e.i(764169),Z=e.i(148061),J=e.i(837150),ee=e.i(387558),et=e.i(714099),en=e.i(457327),el=e.i(180181),ei=e.i(828943);let ea=new Set(["STELLA","HAMMERHEAD","GREATWHITE","CASE50","WEARABLE"]);function eo(e){let n,i,o,r,c,s,d=(0,l.c)(11);d[0]!==e?({dateTooltip:i,hasTaskIndicator:o,className:n,...r}=e,d[0]=e,d[1]=n,d[2]=i,d[3]=o,d[4]=r):(n=d[1],i=d[2],o=d[3],r=d[4]);let u=o?n?`${n} pe-6`:"pe-6":n;return d[5]!==i?(c=i?{children:i,hidden:!1}:void 0,d[5]=i,d[6]=c):c=d[6],d[7]!==u||d[8]!==r||d[9]!==c?(s=(0,t.jsx)(a.SidebarMenuButton,{className:u,tooltip:c,...r}),d[7]=u,d[8]=r,d[9]=c,d[10]=s):s=d[10],s}function er(e){let n,i,a=(0,l.c)(9),{value:o,onChange:r,onKeyDown:c,placeholder:s,disabled:d,className:u}=e;return a[0]!==r?(n=e=>r(e.target.value),a[0]=r,a[1]=n):n=a[1],a[2]!==u||a[3]!==d||a[4]!==c||a[5]!==s||a[6]!==n||a[7]!==o?(i=(0,t.jsx)("input",{autoFocus:!0,type:"text",value:o,onChange:n,onKeyDown:c,onFocus:ec,placeholder:s,disabled:d,className:u}),a[2]=u,a[3]=d,a[4]=c,a[5]=s,a[6]=n,a[7]=o,a[8]=i):i=a[8],i}function ec(e){return e.currentTarget.select()}function es(e){let n,i=(0,l.c)(3),{size:a,className:o}=e;return i[0]!==o||i[1]!==a?(n=(0,t.jsx)("img",{src:"/images/cot_logo_static/orbit.png",alt:"",width:a,height:a,className:o}),i[0]=o,i[1]=a,i[2]=n):n=i[2],n}function ed(e){let n,i,a=(0,l.c)(5),{size:o,className:r}=e,c=void 0===o?12:o;return a[0]!==r?(n=(0,F.cn)("text-text-tertiary [&_ellipse]:!fill-current [&_path]:!fill-current",r),a[0]=r,a[1]=n):n=a[1],a[2]!==c||a[3]!==n?(i=(0,t.jsx)(k.EctoAnimatedIconBase,{fallbackIcon:es,lightSource:"/animations/lottie/sidebar/meta-ai-orbit-anim-thinking-solid_light.json",darkSource:"/animations/lottie/sidebar/meta-ai-orbit-anim-thinking-solid_dark.json",size:c,className:n}),a[2]=c,a[3]=n,a[4]=i):i=a[4],i}var eu=e.i(152347),em=e.i(124538);let ef=(0,i.lazy)(()=>e.A(361071).then(e=>({default:e.EctoConversationInfoDialog})));function eh(o){let c,s,h,g,p,b,_,k,x,y,S,v,C,j,E,T,I,N,M,L,D,R,w,A,U,ec,es,eh,ep,eb=(0,l.c)(99),{conversationRef:e_,prefetch:ek,index:ex,group:ey,indexInGroup:eS}=o;eb[0]===Symbol.for("react.memo_cache_sentinel")?(c=e.r(684321),eb[0]=c):c=eb[0];let ev=(0,O.useFragment)(c,e_),[eC,ej]=(0,i.useState)(!1),[eE,eT]=(0,i.useState)(!1),[eI,eN]=(0,i.useState)(null),[eM,eL]=(0,i.useState)(!1),[eD,eR]=(0,i.useState)(""),[ew,eA]=(0,i.useState)(null),eO=(0,i.useRef)(null),eF=(0,i.useRef)(!1),eP=(0,P.useParams)(),eB=eP?.id,{deleteConversation:eK,isDeleting:ez}=(0,B.useEctoDeleteConversation)(),{renameConversation:eV,isRenaming:eU}=(0,K.useEctoRenameConversation)(),{pinConversation:eG,isPinning:eH}=(0,z.useEctoPinConversation)(),eQ=(0,J.useIsMobileBreakpoint)(),{setOpenMobile:eq}=(0,r.useEctoSidebar)(),eW=(0,en.useInteractionLoggerWithLazyData)(),eY=ex??0,eX=ev.pinned??!1;eb[1]!==ey?(s=null!=ey?{group:ey}:{},eb[1]=ey,eb[2]=s):s=eb[2],eb[3]!==eS?(h=null!=eS?{index_in_group:eS}:{},eb[3]=eS,eb[4]=h):h=eb[4],eb[5]!==eY||eb[6]!==eX||eb[7]!==s||eb[8]!==h?(g={index:eY,is_pinned:eX,...s,...h},eb[5]=eY,eb[6]=eX,eb[7]=s,eb[8]=h,eb[9]=g):g=eb[9];let e$=g,eZ=(0,d.useNavigationClickLogger)("nav_item_chat_click","EctoConversationItem",e$);eb[10]===Symbol.for("react.memo_cache_sentinel")?(p={eventName:m.EctoClickEvent.RENAME_POST_CLICK,actionTarget:"EctoConversationItem",actionType:"click"},eb[10]=p):p=eb[10];let{onClick:eJ}=(0,u.useTrackedClickRef)(p);eb[11]===Symbol.for("react.memo_cache_sentinel")?(b={eventName:m.EctoClickEvent.DELETE_POST_BUTTON_CLICK,actionTarget:"EctoConversationItem",actionType:"click"},eb[11]=b):b=eb[11];let{onClick:e1}=(0,u.useTrackedClickRef)(b);eb[12]===Symbol.for("react.memo_cache_sentinel")?(_={eventName:m.EctoClickEvent.DELETE_POST,actionTarget:"EctoConversationItem",actionType:"click"},eb[12]=_):_=eb[12];let{onClick:e0}=(0,u.useTrackedClickRef)(_),e2=ev.pinned?m.EctoClickEvent.UNPIN_POST:m.EctoClickEvent.PIN_POST;eb[13]!==e2?(k={eventName:e2,actionTarget:"EctoConversationItem",actionType:"click"},eb[13]=e2,eb[14]=k):k=eb[14];let{onClick:e3}=(0,u.useTrackedClickRef)(k);eb[15]===Symbol.for("react.memo_cache_sentinel")?(x={eventName:m.EctoClickEvent.PROMPT_LIST_ITEM_CLICK,actionTarget:"EctoConversationItem",actionType:"click"},eb[15]=x):x=eb[15];let{ref:e4}=(0,u.useTrackedClickRef)(x),e5=ev.id??"",e8=!!ev.title,e6=eB===e5,e7=!!ev.conversationId||!!ev.clientCreated,e9=(0,f.useMcBool)("caed903e",!1),te=ev.isUnread;if(eb[16]!==ev.wearableSurface){var tt;y=null!=(tt=ev.wearableSurface)&&ea.has(tt),eb[16]=ev.wearableSurface,eb[17]=y}else y=eb[17];let tn=y,tl=(0,ee.useEctoStreamingState)(e5),ti="STREAMING"===tl||"INIT"===tl,ta=(0,eu.useDateTooltip)(ev.updatedAt);eb[18]!==e1?(S=()=>{e1(),ej(!0)},eb[18]=e1,eb[19]=S):S=eb[19];let to=S;eb[20]!==e5||eb[21]!==eK||eb[22]!==e0?(v=()=>{e0(),eK({conversationId:e5,onCompleted:()=>{ej(!1)}})},eb[20]=e5,eb[21]=eK,eb[22]=e0,eb[23]=v):v=eb[23];let tr=v;eb[24]===Symbol.for("react.memo_cache_sentinel")?(C=e=>{eF.current=!1,eR(e),eL(!0)},eb[24]=C):C=eb[24];let tc=C;eb[25]!==ev.displayTitle||eb[26]!==e5||eb[27]!==eD||eb[28]!==eJ||eb[29]!==eV?(j=()=>{if(eF.current)return;eF.current=!0;let e=eD.trim();e&&e!==ev.displayTitle?(eJ(),eA(e),eL(!1),eV({conversationId:e5,newTitle:e,onCompleted:()=>eA(null),onError:()=>eA(null)})):eL(!1)},eb[25]=ev.displayTitle,eb[26]=e5,eb[27]=eD,eb[28]=eJ,eb[29]=eV,eb[30]=j):j=eb[30];let ts=j;eb[31]===Symbol.for("react.memo_cache_sentinel")?(E=()=>{eF.current||(eF.current=!0,eL(!1))},eb[31]=E):E=eb[31];let td=E;eb[32]!==ts?(T=e=>{"touch"===e.pointerType&&(e.preventDefault(),ts())},eb[32]=ts,eb[33]=T):T=eb[33];let tu=T;eb[34]===Symbol.for("react.memo_cache_sentinel")?(I=e=>{"touch"===e.pointerType&&(e.preventDefault(),td())},eb[34]=I):I=eb[34];let tm=I;eb[35]!==ts?(N=e=>{"Enter"===e.key?(e.preventDefault(),ts()):"Escape"===e.key&&(e.preventDefault(),td())},eb[35]=ts,eb[36]=N):N=eb[36];let tf=N;eb[37]!==e6?(M=()=>{eO.current&&e6&&(0,el.scrollElementIntoViewIfNeeded)(eO.current,"all",{block:"nearest",inline:"nearest"})},L=[e6],eb[37]=e6,eb[38]=M,eb[39]=L):(M=eb[38],L=eb[39]),(0,i.useEffect)(M,L),eb[40]!==ev.pinned||eb[41]!==e5||eb[42]!==e3||eb[43]!==eG?(D=()=>{e3(),eG({conversationId:e5,pinned:!ev.pinned})},eb[40]=ev.pinned,eb[41]=e5,eb[42]=e3,eb[43]=eG,eb[44]=D):D=eb[44];let th=D;eb[45]!==ev.conversationId||eb[46]!==ev.id||eb[47]!==ev.pinned||eb[48]!==ev.title||eb[49]!==tl?(R=()=>{eN({relayId:ev.id,conversationId:ev.conversationId,snapshotId:null,title:ev.title,pinned:ev.pinned,streamingState:tl,viewerActions:[],viewerActionsLive:[],computed:{canPin:!0,canDelete:!0,canCreateSnapshotLink:!1,canDeleteSnapshotLink:!1}}),eT(!0)},eb[45]=ev.conversationId,eb[46]=ev.id,eb[47]=ev.pinned,eb[48]=ev.title,eb[49]=tl,eb[50]=R):R=eb[50];let tg=R;eb[51]===Symbol.for("react.memo_cache_sentinel")?(w=e=>{eT(e),e||eN(null)},eb[51]=w):w=eb[51];let tp=w;eb[52]!==e5?(A=(0,ei.conversationUrl)(e5),eb[52]=e5,eb[53]=A):A=eb[53];let tb=A;return eb[54]!==ev.pinned||eb[55]!==e5||eb[56]!==ta||eb[57]!==eD||eb[58]!==tg||eb[59]!==tf||eb[60]!==th||eb[61]!==ts||eb[62]!==tu||eb[63]!==e8||eb[64]!==tb||eb[65]!==e7||eb[66]!==ez||eb[67]!==eM||eb[68]!==e9||eb[69]!==tn||eb[70]!==eQ||eb[71]!==eH||eb[72]!==eU||eb[73]!==e6||eb[74]!==ti||eb[75]!==e4||eb[76]!==eW||eb[77]!==eZ||eb[78]!==to||eb[79]!==ew||eb[80]!==ek||eb[81]!==eq||eb[82]!==te||eb[83]!==tl?(U=e=>{let l=eM?(0,t.jsxs)("div",{className:"flex w-full items-center gap-1",onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||ts()},children:[(0,t.jsx)(er,{value:eD,onChange:eR,onKeyDown:tf,placeholder:n.fbs._("Conversation title",null,{hk:"tSe1i"}),disabled:eU,className:"text-subheadline rounded-12 h-8 min-w-0 flex-1 bg-transparent px-3 py-1.5 -outline-offset-1 focus-visible:outline disabled:opacity-50"}),(0,t.jsxs)("div",{className:"-ms-1 flex items-center",children:[(0,t.jsxs)($.Tooltip,{children:[(0,t.jsx)($.TooltipTrigger,{asChild:!0,children:(0,t.jsx)(V.IconButton,{icon:Y.default,size:"28",variant:"borderless",className:"text-text-secondary -outline-offset-2",label:n.fbs._("Cancel",null,{hk:"3yNH3X"}),onPointerDown:tm,onClick:td})}),(0,t.jsx)($.TooltipContent,{side:"top",children:n.fbt._("Cancel",null,{hk:"46Em7G"})})]}),(0,t.jsxs)($.Tooltip,{children:[(0,t.jsx)($.TooltipTrigger,{asChild:!0,children:(0,t.jsx)(V.IconButton,{icon:W.default,size:"28",variant:"borderless",className:"text-text-primary-link -outline-offset-2",label:n.fbs._("Rename",null,{hk:"1U6M6T"}),onPointerDown:tu,onClick:ts})}),(0,t.jsx)($.TooltipContent,{side:"top",children:n.fbt._("Rename",null,{hk:"25KLeR"})})]})]})]}):(0,t.jsx)("div",{ref:e4,children:(0,t.jsx)(eo,{ref:eO,isActive:e6,label:ew??e,dateTooltip:ta,className:(0,F.cn)(te&&"text-subheadline-emphasized",ew&&"opacity-50"),trailing:ti||te||tn?(0,t.jsx)("div",{className:"touch:me-0 -me-2 flex size-6 shrink-0 items-center justify-center group-hover/menu-item:hidden group-focus-visible/menu-item:hidden group-has-data-[opened=true]/menu-item:hidden",children:ti?(0,t.jsx)(ed,{}):te?(0,t.jsx)("span",{className:"bg-fill-blue size-2 rounded-full"}):(0,t.jsx)(q,{size:16,className:"text-text-tertiary",title:n.fbs._("From glasses",null,{hk:"21W3ks"})})}):void 0,linkProps:{href:tb,prefetch:ek??"hover"},onClick:()=>{eZ(),eW({eventName:m.EctoClickEvent.PROMPT_LIST_ITEM_CLICK,actionTarget:"EctoConversationItem",actionType:"click",threadId:e5}),eQ&&eq(!1)}})});return(0,t.jsx)(a.SidebarMenuItem,{"data-testid":"conversation-item",moreMenuItems:eM||!e7?void 0:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Z.DropdownMenuItem,{label:ev.pinned?n.fbs._("Unpin",null,{hk:"3IFTLy"}):n.fbs._("Pin",null,{hk:"30QWIM"}),leadingIcon:ev.pinned?X.default:H.default,disabled:eH||ez,onSelect:th}),(0,t.jsx)(eg,{hasTitle:e8,streamingState:tl,disabled:ez,onSelect:()=>tc(e)}),e9&&(0,t.jsx)(Z.DropdownMenuItem,{label:n.fbs._("[INTERNAL] Debug info",null,{hk:"2ztSkV"}),leadingIcon:Q.default,onSelect:tg}),(0,t.jsx)(Z.DropdownMenuSeparator,{}),(0,t.jsx)(Z.DropdownMenuItem,{label:n.fbs._("Delete",null,{hk:"2iKwSO"}),leadingIcon:G.default,variant:"destructive",disabled:ez,onSelect:to})]}),children:l})},eb[54]=ev.pinned,eb[55]=e5,eb[56]=ta,eb[57]=eD,eb[58]=tg,eb[59]=tf,eb[60]=th,eb[61]=ts,eb[62]=tu,eb[63]=e8,eb[64]=tb,eb[65]=e7,eb[66]=ez,eb[67]=eM,eb[68]=e9,eb[69]=tn,eb[70]=eQ,eb[71]=eH,eb[72]=eU,eb[73]=e6,eb[74]=ti,eb[75]=e4,eb[76]=eW,eb[77]=eZ,eb[78]=to,eb[79]=ew,eb[80]=ek,eb[81]=eq,eb[82]=te,eb[83]=tl,eb[84]=U):U=eb[84],eb[85]!==ev||eb[86]!==U?(ec=(0,t.jsx)(et.NeverEmptyTitle,{conversation:ev,render:U}),eb[85]=ev,eb[86]=U,eb[87]=ec):ec=eb[87],eb[88]!==tr||eb[89]!==eC||eb[90]!==ez?(es=eC&&(0,t.jsx)(em.EctoDeleteConfirmationDialog,{isOpen:eC,onClose:()=>ej(!1),onConfirm:tr,isLoading:ez,title:n.fbs._("Delete chat?",null,{hk:"3j1Hyz"}),description:n.fbs._("This only deletes the chat. Any media you've posted to the feed is still visible and can be managed on your profile.",null,{hk:"hjl6e"}),confirmButtonLabel:n.fbs._("Delete",null,{hk:"Usxlr"})}),eb[88]=tr,eb[89]=eC,eb[90]=ez,eb[91]=es):es=eb[91],eb[92]!==eI||eb[93]!==eE?(eh=eE&&eI&&(0,t.jsx)(i.Suspense,{fallback:null,children:(0,t.jsx)(ef,{conversationInfoData:eI,isOpen:eE,onOpenChange:tp})}),eb[92]=eI,eb[93]=eE,eb[94]=eh):eh=eb[94],eb[95]!==ec||eb[96]!==es||eb[97]!==eh?(ep=(0,t.jsxs)(t.Fragment,{children:[ec,es,eh]}),eb[95]=ec,eb[96]=es,eb[97]=eh,eb[98]=ep):ep=eb[98],ep}function eg(e){let i,a,o=(0,l.c)(4),{hasTitle:r,streamingState:c,disabled:s,onSelect:d}=e;o[0]===Symbol.for("react.memo_cache_sentinel")?(i=n.fbs._("Rename",null,{hk:"2qMHgN"}),o[0]=i):i=o[0];let u=s||("STREAMING"===c||"INIT"===c)&&!r;return o[1]!==d||o[2]!==u?(a=(0,t.jsx)(Z.DropdownMenuItem,{label:i,leadingIcon:U.default,disabled:u,onSelect:d}),o[1]=d,o[2]=u,o[3]=a):a=o[3],a}var ep=e.i(712793),eb=e.i(8038),e_=e.i(93398);let ek="EctoConversationItem";function ex(n){let i,o,c,s,f,h,g,p,b,_,k=(0,l.c)(28),{conversationId:x,fallbackTitle:y,index:S,group:v,indexInGroup:C}=n,j=(0,P.useParams)(),E=j?.id===x,T=(0,J.useIsMobileBreakpoint)(),{setOpenMobile:I}=(0,r.useEctoSidebar)(),N=(0,ee.useEctoStreamingState)(x),M="STREAMING"===N||"INIT"===N;k[0]===Symbol.for("react.memo_cache_sentinel")?(i=e.r(526384),k[0]=i):i=k[0],k[1]!==x?(o={id:x},k[1]=x,k[2]=o):o=k[2];let L=(0,O.useClientQuery)(i,o),D=L.client_conversation?.displayTitle||y,R=(0,en.useInteractionLoggerWithLazyData)(),w=S??0;k[3]!==v?(c=null!=v?{group:v}:{},k[3]=v,k[4]=c):c=k[4],k[5]!==C?(s=null!=C?{index_in_group:C}:{},k[5]=C,k[6]=s):s=k[6],k[7]!==w||k[8]!==c||k[9]!==s?(f={index:w,is_pinned:!1,...c,...s},k[7]=w,k[8]=c,k[9]=s,k[10]=f):f=k[10];let A=f,F=(0,d.useNavigationClickLogger)("nav_item_chat_click",ek,A);k[11]===Symbol.for("react.memo_cache_sentinel")?(h={eventName:m.EctoClickEvent.PROMPT_LIST_ITEM_CLICK,actionTarget:ek,actionType:"click"},k[11]=h):h=k[11];let{ref:B}=(0,u.useTrackedClickRef)(h);return k[12]!==D?(g={displayTitle:D},k[12]=D,k[13]=g):g=k[13],k[14]!==x||k[15]!==E||k[16]!==T||k[17]!==M||k[18]!==R||k[19]!==F||k[20]!==I?(p=e=>(0,t.jsx)(eo,{isActive:E,label:e,linkProps:{href:(0,ei.conversationUrl)(x),prefetch:"hover"},trailing:M?(0,t.jsx)("div",{className:"touch:me-0 -me-2 flex size-6 shrink-0 items-center justify-center",children:(0,t.jsx)(ed,{})}):void 0,onClick:()=>{F(),R({eventName:m.EctoClickEvent.PROMPT_LIST_ITEM_CLICK,actionTarget:ek,actionType:"click",threadId:x}),T&&I(!1)}}),k[14]=x,k[15]=E,k[16]=T,k[17]=M,k[18]=R,k[19]=F,k[20]=I,k[21]=p):p=k[21],k[22]!==g||k[23]!==p?(b=(0,t.jsx)(et.NeverEmptyTitle,{conversation:g,render:p}),k[22]=g,k[23]=p,k[24]=b):b=k[24],k[25]!==B||k[26]!==b?(_=(0,t.jsx)(a.SidebarMenuItem,{children:(0,t.jsx)("div",{ref:B,children:b})}),k[25]=B,k[26]=b,k[27]=_):_=k[27],_}var ey=e.i(277162);function eS(n){let i,o,r,s,d,u,m,f,h=(0,l.c)(22),{conversations:g,groupBy:p,footer:b,className:_,prependItems:k,pendingConversations:x,preloadCount:y}=n;h[0]!==x?(i=void 0===x?[]:x,h[0]=x,h[1]=i):i=h[1];let S=i;h[2]===Symbol.for("react.memo_cache_sentinel")?(o=e.r(389020),h[2]=o):o=h[2];let v=(0,O.useFragment)(o,g),{locale:C}=(0,e_.useEctoLocale)();h[3]!==v||h[4]!==p||h[5]!==C||h[6]!==S?(r=function(e,t,n,l){let i=new Map,a=e=>{let t=function(e,t){let n=e.getFullYear(),l=e.getMonth(),i=e.getDate();switch(t){case"day":return`${n}-${String(l+1).padStart(2,"0")}-${String(i).padStart(2,"0")}`;case"week":{var a;let t,l,i,o=(t=new Date((a=e).valueOf()),l=(a.getDay()+6)%7,t.setDate(t.getDate()-l+3),i=t.valueOf(),t.setMonth(0,1),4!==t.getDay()&&t.setMonth(0,1+(4-t.getDay()+7)%7),1+Math.ceil((i-t.valueOf())/6048e5));return`${n}-W${String(o).padStart(2,"0")}`}case"month":return`${n}-${String(l+1).padStart(2,"0")}`}}(new Date(e.time),l),n=i.get(t);n||(n=[],i.set(t,n)),n.push(e)};for(let e=0;et.time-e.time);return Array.from(i.keys()).sort((e,t)=>t.localeCompare(e)).map(t=>({key:t,label:function(e,t,n){switch(n){case"day":return new Date(t+"T00:00:00").toLocaleDateString(e,{weekday:"long",month:"short",day:"numeric"});case"week":{let e=t.split("-W");if(2!==e.length)return t;let n=parseInt(e[0]??"0",10),l=parseInt(e[1]??"0",10);return`Week ${l}, ${n}`}case"month":{let n=t.split("-");if(2!==n.length)return t;return new Date(parseInt(n[0]??"0",10),parseInt(n[1]??"1",10)-1,1).toLocaleDateString(e,{month:"long",year:"numeric"})}}}(e,t,l),items:i.get(t)}))}(C,v,S,p),h[3]=v,h[4]=p,h[5]=C,h[6]=S,h[7]=r):r=h[7];let j=r;h[8]===Symbol.for("react.memo_cache_sentinel")?(s=(0,ey.conversationPrefetchLimitForDevice)(),h[8]=s):s=h[8];let E=Math.min(void 0===y?1/0:y,s);return 0!==j.length||k?(h[9]!==v||h[10]!==E||h[11]!==j?(d=j.map((e,n)=>{let l=0;for(let e=0;ey(!x),h[0]=x,h[1]=n):n=h[1],h[2]===Symbol.for("react.memo_cache_sentinel")?(o=(0,F.cn)("group/trigger hover:bg-fill-secondary-elevated rounded-12 -my-1.5 -ms-2 -me-3 flex w-[calc(100%+1.25rem)] cursor-pointer items-center gap-0.5 py-1.5 ps-2 pe-3 -outline-offset-2 transition-colors"),h[2]=o):o=h[2],h[3]!==g.label?(r=(0,t.jsx)("span",{className:"text-caption-1-emphasized text-text-secondary",children:g.label}),h[3]=g.label,h[4]=r):r=h[4];let S=x?"touch:opacity-100 rotate-90 opacity-0 group-hover/trigger:opacity-100 group-focus-visible/trigger:opacity-100":"opacity-100";if(h[5]!==S?(c=(0,F.cn)("text-text-tertiary size-3 shrink-0 transition-all duration-150 ease-out",S),h[5]=S,h[6]=c):c=h[6],h[7]!==c?(s=(0,t.jsx)(eb.default,{className:c}),h[7]=c,h[8]=s):s=h[8],h[9]!==n||h[10]!==r||h[11]!==s?(d=(0,t.jsx)(a.SidebarGroupLabel,{className:"py-0",children:(0,t.jsxs)("button",{onClick:n,className:o,children:[r,s]})}),h[9]=n,h[10]=r,h[11]=s,h[12]=d):d=h[12],h[13]!==p||h[14]!==g.items||h[15]!==g.label||h[16]!==k||h[17]!==_){let e;h[19]!==p||h[20]!==g.label||h[21]!==k||h[22]!==_?(e=(e,n)=>{let l=_+n;if("pending"===e.kind)return(0,t.jsx)(ex,{conversationId:e.data.conversationId,fallbackTitle:e.data.prompt,index:l,group:g.label,indexInGroup:n},`pending-${e.data.conversationId}`);let i=p[e.arrayIndex]?.node;return i?(0,t.jsx)(eh,{conversationRef:i,prefetch:l!e.has(t.conversationId),p[8]=e,p[9]=n):n=p[9],t=D.filter(n),p[5]=D,p[6]=e,p[7]=t}else t=p[7];s=t}let R=s;if(p[10]!==L||p[11]!==R){let e;for(let e of(d=[],L))e.node&&d.push({kind:"conversation",edge:e});for(let e of R)d.push({kind:"pending",data:e});let t=eT;p[13]===Symbol.for("react.memo_cache_sentinel")?(e=(e,n)=>t(n)-t(e),p[13]=e):e=p[13],d.sort(e),p[10]=L,p[11]=R,p[12]=d}else d=p[12];let w=d;if(0===L.length&&!y&&!j)return null;if(void 0!==S&&S&&"grouped"===I){let e;return p[14]!==x||p[15]!==L||p[16]!==M||p[17]!==k||p[18]!==N||p[19]!==R||p[20]!==y?(e=(0,t.jsx)(eS,{conversations:L,groupBy:N,footer:k,className:x,prependItems:y,pendingConversations:R,preloadCount:M}),p[14]=x,p[15]=L,p[16]=M,p[17]=k,p[18]=N,p[19]=R,p[20]=y,p[21]=e):e=p[21],e}return p[22]!==E||p[23]!==_?(u=(0,t.jsx)(a.SidebarGroupLabel,{children:(0,t.jsx)(a.SidebarCollapsibleTrigger,{label:_,isOpen:E})}),p[22]=E,p[23]=_,p[24]=u):u=p[24],p[25]!==M||p[26]!==w||p[27]!==_?(m=(0,t.jsx)(c.InteractionAreaProvider,{targetArea:"prompt_list_item",children:w.map((e,n)=>"pending"===e.kind?(0,t.jsx)(ex,{conversationId:e.data.conversationId,fallbackTitle:e.data.prompt,index:n,group:_,indexInGroup:n},`pending-${e.data.conversationId}`):(0,t.jsx)(eh,{conversationRef:e.edge.node,prefetch:n_?.(e),p[1]=_,p[2]=c):c=p[2];let v=(0,i.useEffectEvent)(c),C=k.pinnedConversations.edges.length;p[3]!==C||p[4]!==v?(s=()=>{v(C)},p[3]=C,p[4]=v,p[5]=s):s=p[5],p[6]!==C?(d=[C],p[6]=C,p[7]=d):d=p[7],(0,i.useEffect)(s,d),p[8]!==S?(u=S&&(0,t.jsx)("div",{className:"flex justify-center py-2",children:(0,t.jsx)(eI.Spinner,{size:16})}),p[8]=S,p[9]=u):u=p[9],p[10]!==x||p[11]!==y||p[12]!==S?(m=x&&!S&&(0,t.jsx)(a.SidebarMenuItem,{children:(0,t.jsx)(a.SidebarMenuButton,{label:n.fbs._("...",null,{hk:"4daZxf"}),onClick:()=>y(20),className:"text-text-secondary"})}),p[10]=x,p[11]=y,p[12]=S,p[13]=m):m=p[13],p[14]!==u||p[15]!==m?(f=(0,t.jsxs)(t.Fragment,{children:[u,m]}),p[14]=u,p[15]=m,p[16]=f):f=p[16];let j=f,E=k.pinnedConversations.edges;return p[17]===Symbol.for("react.memo_cache_sentinel")?(h=n.fbs._("Pinned",null,{hk:"2I8PBW"}),p[17]=h):h=p[17],p[18]!==j||p[19]!==k.pinnedConversations.edges?(g=(0,t.jsx)(eE,{conversations:E,title:h,footer:j,className:"pb-4"}),p[18]=j,p[19]=k.pinnedConversations.edges,p[20]=g):g=p[20],g}var eM=e.i(974735),eL=e.i(792674);function eD(e){let o,r,c,s=(0,l.c)(11),{hasMore:d,isLoading:u,loadNext:m,rootMargin:f}=e,[h,g]=(0,i.useState)(!1);if(!d)return null;if(h&&!u){let e,l;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.fbs._("Load more",null,{hk:"4osgOG"}),s[0]=e):e=s[0],s[1]!==m?(l=(0,t.jsx)(a.SidebarMenuItem,{children:(0,t.jsx)(a.SidebarMenuButton,{className:"py-2 text-center",label:e,onClick:()=>m?.(20,{onComplete:e=>{null==e&&g(!1)}})})}),s[1]=m,s[2]=l):l=s[2],l}return s[3]!==m?(o=()=>{m?.(20,{onComplete:e=>{null!=e&&g(!0)}})},s[3]=m,s[4]=o):o=s[4],s[5]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)("div",{className:"mx-auto flex justify-center py-2",children:(0,t.jsx)(eI.Spinner,{size:16,color:"secondary"})}),s[5]=r):r=s[5],s[6]!==d||s[7]!==u||s[8]!==f||s[9]!==o?(c=(0,t.jsx)(eL.default,{hasMore:d,isLoading:u,onLoadMore:o,rootMargin:f,children:r}),s[6]=d,s[7]=u,s[8]=f,s[9]=o,s[10]=c):c=s[10],c}function eR(a){let o,r,c,s,d,u,m,f=(0,l.c)(16),{queryRef:h,onEdgeCount:g}=a,p=(0,eM.useConversationsConnectionContext)();f[0]===Symbol.for("react.memo_cache_sentinel")?(o=e.r(384923),f[0]=o):o=f[0];let{data:b,hasNext:_,loadNext:k,isLoadingNext:x}=(0,O.usePaginationFragment)(o,h);f[1]!==g?(r=e=>g?.(e),f[1]=g,f[2]=r):r=f[2];let y=(0,i.useEffectEvent)(r),S=b.unpinnedConversations.edges.length;f[3]!==S||f[4]!==y?(c=()=>{y(S)},f[3]=S,f[4]=y,f[5]=c):c=f[5],f[6]!==S?(s=[S],f[6]=S,f[7]=s):s=f[7],(0,i.useEffect)(c,s);let v=b.unpinnedConversations.__id;p.setUnpinnedConversationsConnectionId(v);let C=b.unpinnedConversations.edges;return f[8]===Symbol.for("react.memo_cache_sentinel")?(d=n.fbs._("History",null,{hk:"dMY3A"}),f[8]=d):d=f[8],f[9]!==_||f[10]!==x||f[11]!==k?(u=(0,t.jsx)(eD,{hasMore:_,isLoading:x,loadNext:k}),f[9]=_,f[10]=x,f[11]=k,f[12]=u):u=f[12],f[13]!==u||f[14]!==b.unpinnedConversations.edges?(m=(0,t.jsx)(eE,{conversations:C,title:d,supportsGroupedMode:!0,showPendingConversations:!0,preloadCount:6,footer:u}),f[13]=u,f[14]=b.unpinnedConversations.edges,f[15]=m):m=f[15],m}var ew=e.i(213750),eA=e.i(932281);function eO(){let e,i,a,o,r,c,s=(0,l.c)(8),{navigate:d}=(0,h.useNavigate)();return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("div",{className:"bg-fill-secondary flex h-16 w-16 items-center justify-center rounded-full",children:(0,t.jsx)(ew.default,{className:"text-icon-secondary",size:24})}),s[0]=e):e=s[0],s[1]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)("p",{className:"text-subheadline-emphasized text-text-primary",children:n.fbt._("No conversations yet",null,{hk:"3niufK"})}),s[1]=i):i=s[1],s[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[i,(0,t.jsx)("p",{className:"text-footnote text-text-secondary",children:n.fbt._("Start a conversation with Meta AI",null,{hk:"3pHVqF"})})]}),s[2]=a):a=s[2],s[3]!==d?(o=()=>d("/"),s[3]=d,s[4]=o):o=s[4],s[5]===Symbol.for("react.memo_cache_sentinel")?(r=n.fbt._("New chat",null,{hk:"3IB0DT"}),s[5]=r):r=s[5],s[6]!==o?(c=(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4 px-6 py-10 text-center",children:[e,a,(0,t.jsx)(eA.Button,{variant:"flat",size:"32",onClick:o,label:r})]}),s[6]=o,s[7]=c):c=s[7],c}var eF=e.i(75736),eP=e.i(935595);function eB(e){let n,a,o,r,c,s,d=(0,l.c)(11),{queryRef:u}=e,[m,f]=(0,i.useState)(null),[h,g]=(0,i.useState)(null);d[0]===Symbol.for("react.memo_cache_sentinel")?(n=e=>{f(e)},d[0]=n):n=d[0];let p=n;d[1]===Symbol.for("react.memo_cache_sentinel")?(a=e=>{g(e)},d[1]=a):a=d[1];let b=a,_=0===m&&0===h;return d[2]!==u?(o=(0,t.jsx)(eN,{queryRef:u,onEdgeCount:p}),r=(0,t.jsx)(eR,{queryRef:u,onEdgeCount:b}),d[2]=u,d[3]=o,d[4]=r):(o=d[3],r=d[4]),d[5]!==_?(c=_&&(0,t.jsx)(eO,{}),d[5]=_,d[6]=c):c=d[6],d[7]!==o||d[8]!==r||d[9]!==c?(s=(0,t.jsxs)(t.Fragment,{children:[o,r,c]}),d[7]=o,d[8]=r,d[9]=c,d[10]=s):s=d[10],s}function eK(){let n,i,a=(0,l.c)(3);a[0]===Symbol.for("react.memo_cache_sentinel")?(n=e.r(44422),a[0]=n):n=a[0];let o=(0,eF.useEctoPreloadedQuery)(n,eP.queryLoader.conversationList);return a[1]!==o?(i=(0,t.jsx)(eB,{queryRef:o}),a[1]=o,a[2]=i):i=a[2],i}var ez=e.i(839003),eV=e.i(314516),eU=e.i(587374),eG=e.i(54530),eH=e.i(180156),eQ=e.i(530275),eq=e.i(336326),eW=e.i(25244);function eY(e){let n,a,o,r,c,s,d,u=(0,l.c)(16),m=(0,i.useId)();u[0]!==e.title?(n=null!=e.title&&(0,t.jsx)("title",{children:e.title}),u[0]=e.title,u[1]=n):n=u[1];let f=`url(#${m})`;return u[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.854 6h16.292c.185 0 .3.055.347.09a.132.132 0 0 1 .035.033c.003.004.01.016.016.045.141.712.29 1.738.378 3.146a5.995 5.995 0 0 1 2.056 1.194c-.065-2.168-.268-3.699-.472-4.729C22.285 4.665 21.282 4 20.146 4H3.854c-1.136 0-2.139.665-2.36 1.78C1.246 7.03 1 9.022 1 12s.246 4.969.494 6.22C1.715 19.336 2.718 20 3.854 20h9.229A6.036 6.036 0 0 1 13 19v-1H3.854a.603.603 0 0 1-.347-.09.134.134 0 0 1-.035-.033.12.12 0 0 1-.016-.045C3.237 16.728 3 14.868 3 12s.237-4.728.456-5.832a.12.12 0 0 1 .016-.045.134.134 0 0 1 .035-.034A.603.603 0 0 1 3.854 6zM18 8a1 1 0 0 1 1 1c-.681 0-1.336.114-1.947.323A1 1 0 0 1 18 8zm-9 6h4.083c-.055.325-.083.66-.083 1v1H9a1 1 0 1 1 0-2zm-3-4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm1 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-1 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm4-7a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-1 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm4-4a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-1 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm4-4a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm5 6a2 2 0 1 0-4 0v4a2 2 0 1 0 4 0v-4zm-2-4a4 4 0 0 0-4 4v4a4 4 0 0 0 8 0v-4a4 4 0 0 0-4-4zm0 3a1 1 0 0 1 1 1v1a1 1 0 1 1-2 0v-1a1 1 0 0 1 1-1z"}),u[2]=a):a=u[2],u[3]!==f?(o=(0,t.jsx)("g",{clipPath:f,children:a}),u[3]=f,u[4]=o):o=u[4],u[5]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)("path",{d:"M0 0H24V24H0z"}),u[5]=r):r=u[5],u[6]!==m?(c=(0,t.jsx)("clipPath",{id:m,children:r}),u[6]=m,u[7]=c):c=u[7],u[8]!==e.children||u[9]!==c?(s=(0,t.jsxs)("defs",{children:[c,e.children]}),u[8]=e.children,u[9]=c,u[10]=s):s=u[10],u[11]!==e||u[12]!==n||u[13]!==o||u[14]!==s?(d=(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em",...e,children:[n,o,s]}),u[11]=e,u[12]=n,u[13]=o,u[14]=s,u[15]=d):d=u[15],d}eY._isSVG=!0;var eX=e.i(438217),e$=e.i(198093);function eZ(e){let n,i,a,o,r,c=(0,l.c)(10);c[0]!==e?({size:i,...n}=e,c[0]=e,c[1]=n,c[2]=i):(n=c[1],i=c[2]);let s=void 0===i?32:i;return c[3]!==n.title?(a=null!=n.title&&(0,t.jsx)("title",{children:n.title}),c[3]=n.title,c[4]=a):a=c[4],c[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)("path",{d:"M15.375 4.382a4.883 4.883 0 0 1 1.252 0c.487.063.955.224 1.674.463l4.788 1.596c.716.238 1.308.42 1.756.796.37.308.655.706.831 1.153.214.545.2 1.163.2 1.917v4.515c0 2.561.01 4.033-.415 5.37a8.878 8.878 0 0 1-1.762 3.144c-.921 1.06-2.182 1.819-4.367 3.155l-.373.226c-.855.523-1.453.902-2.115 1.05a3.88 3.88 0 0 1-1.687 0c-.662-.148-1.26-.527-2.115-1.05l-.373-.226c-2.185-1.336-3.446-2.096-4.367-3.155a8.88 8.88 0 0 1-1.762-3.143c-.424-1.338-.414-2.81-.414-5.371v-4.515c0-.754-.015-1.372.199-1.917.176-.448.462-.844.83-1.153.45-.376 1.04-.557 1.757-.796L13.7 4.845c.719-.24 1.187-.4 1.675-.463zm1.027 1.736a3.132 3.132 0 0 0-.803 0c-.28.036-.564.127-1.345.387L9.465 8.101c-.857.286-1.053.367-1.186.478-.144.12-.256.276-.325.45-.064.162-.078.375-.078 1.278v4.515c0 2.675.009 3.823.332 4.843a7.13 7.13 0 0 0 1.416 2.523c.701.807 1.676 1.414 3.959 2.81l.37.226c.963.588 1.274.766 1.585.835.304.068.621.068.925 0 .31-.07.622-.247 1.584-.835l.372-.226c2.283-1.396 3.257-2.003 3.959-2.81a7.128 7.128 0 0 0 1.416-2.523c.322-1.02.331-2.168.331-4.843v-4.515c0-.903-.014-1.116-.078-1.277a1.129 1.129 0 0 0-.325-.451c-.133-.111-.33-.192-1.186-.478l-4.788-1.596c-.782-.26-1.066-.35-1.346-.387zm3.102 5.128a.876.876 0 0 1 1.43 1.01l-5.625 7.968a.876.876 0 0 1-1.415.02l-2.812-3.75a.876.876 0 0 1 1.4-1.05l2.09 2.787 4.933-6.985z",fill:"currentColor"}),c[5]=o):o=c[5],c[6]!==n||c[7]!==s||c[8]!==a?(r=(0,t.jsxs)("svg",{viewBox:"0 0 32 32",fill:"none",width:s,height:s,...n,children:[a,o]}),c[6]=n,c[7]=s,c[8]=a,c[9]=r):r=c[9],r}eZ._isSVG=!0;var eJ=e.i(397903),e1=e.i(410241),e0=e.i(261205),e2=e.i(488820),e3=e.i(282321),e4=e.i(689092);function e5(e){let n,i,a,o,r,c=(0,l.c)(10);return c[0]!==e.title?(n=null!=e.title&&(0,t.jsx)("title",{children:e.title}),c[0]=e.title,c[1]=n):n=c[1],c[2]!==e.children?(i=null!=e.children&&(0,t.jsx)("defs",{children:e.children}),c[2]=e.children,c[3]=i):i=c[3],c[4]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)("path",{d:"M7 6a1 1 0 0 1 1 1v2a1 1 0 0 1-2 0V7a1 1 0 0 1 1-1zM18 7a1 1 0 1 0-2 0v2a1 1 0 1 0 2 0V7z"}),o=(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 2a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h16a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3H4zm6.799 2H4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h9.236a28.905 28.905 0 0 1-.2-1.317c-3.546.243-6.36-1.217-7.709-2.443a1 1 0 1 1 1.346-1.48c.993.904 3.242 2.117 6.175 1.928A26.267 26.267 0 0 1 12.874 13H10.5a1 1 0 0 1-1-1c0-1.347.295-4.351 1.299-8zm2.078 0c-.855 2.948-1.218 5.473-1.333 7H14a1 1 0 0 1 .986 1.164c-.138.831-.25 2.331-.153 4.19 1.141-.311 2.354-.847 3.612-1.686a1 1 0 0 1 1.11 1.664c-1.574 1.05-3.102 1.695-4.542 2.044.067.527.15 1.07.256 1.624H20a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1h-7.123z"}),c[4]=a,c[5]=o):(a=c[4],o=c[5]),c[6]!==e||c[7]!==n||c[8]!==i?(r=(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em",...e,children:[n,i,a,o]}),c[6]=e,c[7]=n,c[8]=i,c[9]=r):r=c[9],r}function e8(){let t,n,i=(0,l.c)(2);return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.r(604308),n={},i[0]=t,i[1]=n):(t=i[0],n=i[1]),(0,O.useLazyLoadQuery)(t,n).macOSDownloadUrl??null}function e6(){let e,n=(0,l.c)(1);return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(i.Suspense,{fallback:null,children:(0,t.jsx)(e7,{})}),n[0]=e):e=n[0],e}function e7(){return e8(),null}function e9(e){let n,a=(0,l.c)(2);return a[0]!==e?(n=(0,t.jsx)(i.Suspense,{fallback:null,children:(0,t.jsx)(te,{...e})}),a[0]=e,a[1]=n):n=a[1],n}function te(e){let i,a,o,r,c,s=(0,l.c)(9),{onSelected:d}=e;s[0]===Symbol.for("react.memo_cache_sentinel")?(i={eventName:e4.MACOS_DOWNLOAD_CLICK_EVENT,actionTarget:"EctoUserButton",actionType:"click"},s[0]=i):i=s[0];let{onClick:m}=(0,u.useTrackedClickRef)(i),f=e8();if(null==f)return null;s[1]!==f||s[2]!==m||s[3]!==d?(a=()=>{m(),d(),window.location.href=f},s[1]=f,s[2]=m,s[3]=d,s[4]=a):a=s[4];let h=a;return s[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(Z.DropdownMenuSeparator,{}),s[5]=o):o=s[5],s[6]===Symbol.for("react.memo_cache_sentinel")?(r=n.fbs._("Download Meta AI",null,{hk:"xao5f"}),s[6]=r):r=s[6],s[7]!==h?(c=(0,t.jsxs)(t.Fragment,{children:[o,(0,t.jsx)(Z.DropdownMenuItem,{leadingIcon:e5,label:r,onSelect:h})]}),s[7]=h,s[8]=c):c=s[8],c}e5._isSVG=!0;let tt=(0,i.lazy)(()=>e.A(209510).then(e=>({default:e.EctoSettingsDialog})));function tn(o){let c,s,g,p,b,_,k,x,y,S,v,C,j,E,T,I,N,M,L,D,R,w,A,F,P,B,K,z,V,U,G,H,Q,q,W,Y,X,$,J,ee,et,en,el,ei,ea,eo,er,ec,es,ed,eu,em,ef,eh,eg,ep,eb,e_,ek,ex,ey,eS,ev,eC,ej,eE,eT,eI,eN=(0,l.c)(140),{logout:eM}=(0,eU.useEctoLogout)(),{navigate:eL}=(0,h.useNavigate)(),{openDialog:eD}=(0,eG.useKeyboardShortcutRegistry)(),[eR,ew]=(0,i.useState)(!1),[eA,eO]=(0,i.useState)(null),eF=(0,e2.useIsTouchDevice)(),eP=(0,e3.useIsMacOS)(),{isMobile:eB,setOpenMobile:eK}=(0,r.useEctoSidebar)(),e4=(0,f.useMcBool)("caed903e",!1),e5=(0,f.useMcBool)("e65465d1",!1)&&eP,e8=(0,f.useMcBool)("9eb431e4",!1),e7=(e4||!1)&&!e8,{links:te,getCookieLink:tn}=(0,e1.useLocalizedSettingsLinks)();eN[0]===Symbol.for("react.memo_cache_sentinel")?(c=e.r(198695),eN[0]=c):c=eN[0];let ti=(0,O.useFragment)(c,o.viewerRef??null);if(eN[1]!==tn||eN[2]!==o.userData||eN[3]!==ti){let{username:e,profilePicture:t,tosRegion:n}=ti?{username:ti.socialProfile?.username??null,profilePicture:ti.socialProfile?.profile_picture??null,tosRegion:ti.tosRegion??"ROW"}:{username:o.userData.username,profilePicture:o.userData.profilePicture,tosRegion:o.userData.tosRegion};_=e,p=t,s=tn(n),b=(g=_??"User").charAt(0).toUpperCase(),eN[1]=tn,eN[2]=o.userData,eN[3]=ti,eN[4]=s,eN[5]=g,eN[6]=p,eN[7]=b,eN[8]=_}else s=eN[4],g=eN[5],p=eN[6],b=eN[7],_=eN[8];let ta=b,to=(0,d.useNavigationClickLogger)("nav_item_profile_click","EctoUserButton");eN[9]===Symbol.for("react.memo_cache_sentinel")?(k={eventName:m.EctoClickEvent.NAV_ITEM_SETTINGS_CLICK,actionTarget:"EctoUserButton",actionType:"click"},eN[9]=k):k=eN[9];let{onClick:tr}=(0,u.useTrackedClickRef)(k);eN[10]===Symbol.for("react.memo_cache_sentinel")?(x={eventName:"settings_apps_tab_button",actionTarget:"EctoUserButton",actionType:"click"},eN[10]=x):x=eN[10];let{onClick:tc}=(0,u.useTrackedClickRef)(x);eN[11]===Symbol.for("react.memo_cache_sentinel")?(y={eventName:m.EctoClickEvent.NAV_ITEM_MENU_CLICK,actionTarget:"EctoUserButton",actionType:"click"},eN[11]=y):y=eN[11];let{onClick:ts}=(0,u.useTrackedClickRef)(y);eN[12]===Symbol.for("react.memo_cache_sentinel")?(S={eventName:m.EctoClickEvent.EXTERNAL_ENTRYPOINT_SIDENAV_AI_DEMOS_CLICK,actionTarget:"EctoUserButton",actionType:"click"},eN[12]=S):S=eN[12];let{onClick:td}=(0,u.useTrackedClickRef)(S);eN[13]===Symbol.for("react.memo_cache_sentinel")?(v={eventName:m.EctoClickEvent.EXTERNAL_ENTRYPOINT_SIDENAV_AI_IDENTIFICATION_CLICK,actionTarget:"EctoUserButton",actionType:"click"},eN[13]=v):v=eN[13];let{onClick:tu}=(0,u.useTrackedClickRef)(v);eN[14]===Symbol.for("react.memo_cache_sentinel")?(C={eventName:m.EctoClickEvent.EXTERNAL_ENTRYPOINT_SIDENAV_MIDJEN_CLICK,actionTarget:"EctoUserButton",actionType:"click"},eN[14]=C):C=eN[14];let{onClick:tm}=(0,u.useTrackedClickRef)(C);eN[15]===Symbol.for("react.memo_cache_sentinel")?(j={eventName:m.EctoClickEvent.LOG_OUT,actionTarget:"EctoUserButton",actionType:"click"},eN[15]=j):j=eN[15];let{onClick:tf}=(0,u.useTrackedClickRef)(j);eN[16]===Symbol.for("react.memo_cache_sentinel")?(E={eventName:m.EctoClickEvent.NUX_CLICK,actionTarget:"EctoUserButton",actionType:"click",clickItem:"privacy_policy"},eN[16]=E):E=eN[16];let{onClick:th}=(0,u.useTrackedClickRef)(E);eN[17]===Symbol.for("react.memo_cache_sentinel")?(T={eventName:m.EctoClickEvent.NUX_CLICK,actionTarget:"EctoUserButton",actionType:"click",clickItem:"terms"},eN[17]=T):T=eN[17];let{onClick:tg}=(0,u.useTrackedClickRef)(T);eN[18]===Symbol.for("react.memo_cache_sentinel")?(I={eventName:m.EctoClickEvent.NUX_CLICK,actionTarget:"EctoUserButton",actionType:"click",clickItem:"ai_terms"},eN[18]=I):I=eN[18];let{onClick:tp}=(0,u.useTrackedClickRef)(I);eN[19]===Symbol.for("react.memo_cache_sentinel")?(N={eventName:m.EctoClickEvent.NAV_ITEM_MENU_CLICK,actionTarget:"EctoUserButton",actionType:"click"},eN[19]=N):N=eN[19];let{onClick:tb}=(0,u.useTrackedClickRef)(N);eN[20]===Symbol.for("react.memo_cache_sentinel")?(M={eventName:"ai_detector_entrypoint_click",actionTarget:"EctoUserButton",actionType:"click"},eN[20]=M):M=eN[20];let{onClick:t_}=(0,u.useTrackedClickRef)(M);eN[21]!==eB||eN[22]!==to||eN[23]!==eL||eN[24]!==eK||eN[25]!==_?(L=()=>{to(),ew(!1),_&&(eL(`/@${_}`),eB&&eK(!1))},eN[21]=eB,eN[22]=to,eN[23]=eL,eN[24]=eK,eN[25]=_,eN[26]=L):L=eN[26];let tk=L;eN[27]!==tr?(D=()=>{tr(),ew(!1),eO("general")},eN[27]=tr,eN[28]=D):D=eN[28];let tx=D;eN[29]!==tc?(R=()=>{tc(),ew(!1),eO("apps")},eN[29]=tc,eN[30]=R):R=eN[30];let ty=R;eN[31]!==ts||eN[32]!==eD?(w=()=>{ts(),ew(!1),eD()},eN[31]=ts,eN[32]=eD,eN[33]=w):w=eN[33];let tS=w;eN[34]!==td?(A=()=>{td()},eN[34]=td,eN[35]=A):A=eN[35];let tv=A;eN[36]!==tu?(F=()=>{tu()},eN[36]=tu,eN[37]=F):F=eN[37];let tC=F;eN[38]!==tm?(P=()=>{tm()},eN[38]=tm,eN[39]=P):P=eN[39];let tj=P;eN[40]!==eB||eN[41]!==t_||eN[42]!==eK?(B=()=>{t_(),ew(!1),eB&&eK(!1)},eN[40]=eB,eN[41]=t_,eN[42]=eK,eN[43]=B):B=eN[43];let tE=B;eN[44]===Symbol.for("react.memo_cache_sentinel")?(K=()=>{ew(!1)},eN[44]=K):K=eN[44];let tT=K;eN[45]!==tb?(z=e=>{e&&tb(),ew(e)},eN[45]=tb,eN[46]=z):z=eN[46];let tI=z;eN[47]!==tf||eN[48]!==eM?(V=()=>{tf(),ew(!1),eM(tl,!0)},eN[47]=tf,eN[48]=eM,eN[49]=V):V=eN[49];let tN=V;return eN[50]!==e5?(U=e5&&(0,t.jsx)(e6,{}),eN[50]=e5,eN[51]=U):U=eN[51],eN[52]!==ta||eN[53]!==p?(G=(0,t.jsx)(eV.Flexbox,{alignItems:"center",justifyContent:"center",shrink:0,className:"size-9",children:(0,t.jsx)(ez.default,{label:ta,imageUrl:p,variant:"user",size:"28"})}),eN[52]=ta,eN[53]=p,eN[54]=G):G=eN[54],eN[55]!==g?(H=(0,t.jsx)(a.SidebarExpandedContent,{asChild:!0,children:(0,t.jsx)("span",{className:"text-subheadline truncate",children:g})}),eN[55]=g,eN[56]=H):H=eN[56],eN[57]!==G||eN[58]!==H?(Q=(0,t.jsx)(Z.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)(eV.Flexbox,{alignItems:"center",gap:1.5,"data-testid":"user-menu-button",shrink:0,className:"hover:bg-fill-secondary-elevated group-data-[state=collapsed]:rounded-12 h-9 cursor-pointer overflow-hidden rounded-full pe-3 transition-colors select-none group-data-[state=collapsed]:-me-1 group-data-[state=collapsed]:w-9 group-data-[state=collapsed]:pe-0 group-data-[state=collapsed]:-outline-offset-4 active:filter-[brightness(0.965)] dark:active:filter-[brightness(0.9)]",tabIndex:0,children:[G,H]})}),eN[57]=G,eN[58]=H,eN[59]=Q):Q=eN[59],eN[60]!==tk||eN[61]!==_?(q=_&&(0,t.jsx)(Z.DropdownMenuItem,{leadingIcon:eH.default,label:n.fbs._("View profile",null,{hk:"1iXkAk"}),onSelect:tk}),eN[60]=tk,eN[61]=_,eN[62]=q):q=eN[62],eN[63]===Symbol.for("react.memo_cache_sentinel")?(W=n.fbs._("Apps",null,{hk:"2ZOEZo"}),eN[63]=W):W=eN[63],eN[64]!==ty?(Y=(0,t.jsx)(Z.DropdownMenuItem,{leadingIcon:eQ.default,label:W,onSelect:ty}),eN[64]=ty,eN[65]=Y):Y=eN[65],eN[66]===Symbol.for("react.memo_cache_sentinel")?(X=n.fbs._("Settings",null,{hk:"1ado1j"}),eN[66]=X):X=eN[66],eN[67]!==tx?($=(0,t.jsx)(Z.DropdownMenuItem,{leadingIcon:eq.default,label:X,onSelect:tx}),eN[67]=tx,eN[68]=$):$=eN[68],eN[69]!==tS||eN[70]!==eF?(J=!eF&&(0,t.jsx)(Z.DropdownMenuItem,{leadingIcon:eY,label:n.fbs._("Keyboard shortcuts",null,{hk:"3WeeJJ"}),shortcut:{key:"/",modifiers:{meta:!0}},onSelect:tS}),eN[69]=tS,eN[70]=eF,eN[71]=J):J=eN[71],eN[72]===Symbol.for("react.memo_cache_sentinel")?(ee=(0,t.jsx)(Z.DropdownMenuSeparator,{}),eN[72]=ee):ee=eN[72],eN[73]===Symbol.for("react.memo_cache_sentinel")?(et=n.fbs._("Vibes.ai",null,{hk:"28t2HY"}),eN[73]=et):et=eN[73],eN[74]!==tj||eN[75]!==te.MIDJEN?(en=(0,t.jsx)(Z.DropdownMenuItem,{leadingIcon:e$.default,label:et,trailingIcon:"arrow-up-right",href:te.MIDJEN,target:"_blank",onSelect:tj}),eN[74]=tj,eN[75]=te.MIDJEN,eN[76]=en):en=eN[76],eN[77]===Symbol.for("react.memo_cache_sentinel")?(el=n.fbs._("AI Demos",null,{hk:"1adbkh"}),eN[77]=el):el=eN[77],eN[78]!==tv||eN[79]!==te.AI_DEMOS?(ei=(0,t.jsx)(Z.DropdownMenuItem,{leadingIcon:eX.default,label:el,trailingIcon:"arrow-up-right",href:te.AI_DEMOS,target:"_blank",onSelect:tv}),eN[78]=tv,eN[79]=te.AI_DEMOS,eN[80]=ei):ei=eN[80],eN[81]===Symbol.for("react.memo_cache_sentinel")?(ea=n.fbs._("AI identification",null,{hk:"4lNQ7N"}),eN[81]=ea):ea=eN[81],eN[82]!==tC?(eo=(0,t.jsx)(Z.DropdownMenuItem,{leadingIcon:eJ.default,label:ea,href:"/identification",onClick:tC}),eN[82]=tC,eN[83]=eo):eo=eN[83],eN[84]!==tE||eN[85]!==e7?(er=e7&&(0,t.jsx)(Z.DropdownMenuItem,{leadingIcon:eZ,label:n.fbs._("Detection Tool",null,{hk:"46Rqjj"}),href:"/ai-detector",onSelect:tE}),eN[84]=tE,eN[85]=e7,eN[86]=er):er=eN[86],eN[87]!==e5?(ec=e5&&(0,t.jsx)(e9,{onSelected:tT}),eN[87]=e5,eN[88]=ec):ec=eN[88],eN[89]===Symbol.for("react.memo_cache_sentinel")?(es=(0,t.jsx)(Z.DropdownMenuSeparator,{}),eN[89]=es):es=eN[89],eN[90]===Symbol.for("react.memo_cache_sentinel")?(ed=n.fbs._("Sign Out",null,{hk:"4o8cb1"}),eN[90]=ed):ed=eN[90],eN[91]!==tN?(eu=(0,t.jsx)(Z.DropdownMenuItem,{"data-testid":"sign-out-button",leadingIcon:eW.default,label:ed,onSelect:tN}),eN[91]=tN,eN[92]=eu):eu=eN[92],eN[93]===Symbol.for("react.memo_cache_sentinel")?(em=(0,t.jsx)("span",{className:"text-text-secondary text-caption-1",children:n.fbt._("Meta 漏 2026",null,{hk:"3Rjeaw"})}),eN[93]=em):em=eN[93],eN[94]===Symbol.for("react.memo_cache_sentinel")?(ef=n.fbt._("Privacy",null,{hk:"1ESTXl"}),eN[94]=ef):ef=eN[94],eN[95]!==te.PRIVACY_POLICY||eN[96]!==th?(eh=(0,t.jsx)(e0.EctoAnchor,{href:te.PRIVACY_POLICY,className:"hover:underline",onClick:th,children:ef}),eN[95]=te.PRIVACY_POLICY,eN[96]=th,eN[97]=eh):eh=eN[97],eN[98]===Symbol.for("react.memo_cache_sentinel")?(eg=(0,t.jsx)("span",{"aria-hidden":"true",children:"路"}),eN[98]=eg):eg=eN[98],eN[99]===Symbol.for("react.memo_cache_sentinel")?(ep=n.fbt._("Terms",null,{hk:"2lXgDt"}),eN[99]=ep):ep=eN[99],eN[100]!==te.TERMS_OF_SERVICE||eN[101]!==tg?(eb=(0,t.jsx)(e0.EctoAnchor,{href:te.TERMS_OF_SERVICE,className:"hover:underline",onClick:tg,children:ep}),eN[100]=te.TERMS_OF_SERVICE,eN[101]=tg,eN[102]=eb):eb=eN[102],eN[103]===Symbol.for("react.memo_cache_sentinel")?(e_=(0,t.jsx)("span",{"aria-hidden":"true",children:"路"}),eN[103]=e_):e_=eN[103],eN[104]===Symbol.for("react.memo_cache_sentinel")?(ek=n.fbt._("AI Terms",null,{hk:"3T7aNY"}),eN[104]=ek):ek=eN[104],eN[105]!==te.AI_TERMS||eN[106]!==tp?(ex=(0,t.jsx)(e0.EctoAnchor,{href:te.AI_TERMS,className:"hover:underline",onClick:tp,children:ek}),eN[105]=te.AI_TERMS,eN[106]=tp,eN[107]=ex):ex=eN[107],eN[108]===Symbol.for("react.memo_cache_sentinel")?(ey=(0,t.jsx)("span",{"aria-hidden":"true",children:"路"}),eN[108]=ey):ey=eN[108],eN[109]===Symbol.for("react.memo_cache_sentinel")?(eS=n.fbt._("Cookies",null,{hk:"1c2ZHQ"}),eN[109]=eS):eS=eN[109],eN[110]!==s?(ev=(0,t.jsx)(e0.EctoAnchor,{href:s,className:"hover:underline",children:eS}),eN[110]=s,eN[111]=ev):ev=eN[111],eN[112]!==eh||eN[113]!==eb||eN[114]!==ex||eN[115]!==ev?(eC=(0,t.jsxs)("div",{className:"mt-1 mb-2 px-2",children:[em,(0,t.jsxs)("div",{className:"text-text-secondary text-caption-1 mt-1 flex gap-1",children:[eh,eg,eb,e_,ex,ey,ev]})]}),eN[112]=eh,eN[113]=eb,eN[114]=ex,eN[115]=ev,eN[116]=eC):eC=eN[116],eN[117]!==q||eN[118]!==Y||eN[119]!==$||eN[120]!==J||eN[121]!==en||eN[122]!==ei||eN[123]!==eo||eN[124]!==er||eN[125]!==ec||eN[126]!==eu||eN[127]!==eC?(ej=(0,t.jsxs)(Z.DropdownMenuContent,{align:"start",children:[q,Y,$,J,ee,en,ei,eo,er,ec,es,eu,eC]}),eN[117]=q,eN[118]=Y,eN[119]=$,eN[120]=J,eN[121]=en,eN[122]=ei,eN[123]=eo,eN[124]=er,eN[125]=ec,eN[126]=eu,eN[127]=eC,eN[128]=ej):ej=eN[128],eN[129]!==tI||eN[130]!==eR||eN[131]!==Q||eN[132]!==ej?(eE=(0,t.jsxs)(Z.DropdownMenu,{open:eR,onOpenChange:tI,children:[Q,ej]}),eN[129]=tI,eN[130]=eR,eN[131]=Q,eN[132]=ej,eN[133]=eE):eE=eN[133],eN[134]!==eA?(eT=eA&&(0,t.jsx)(i.Suspense,{fallback:null,children:(0,t.jsx)(tt,{isOpen:!0,onClose:()=>eO(null),defaultTab:eA})}),eN[134]=eA,eN[135]=eT):eT=eN[135],eN[136]!==U||eN[137]!==eE||eN[138]!==eT?(eI=(0,t.jsxs)(t.Fragment,{children:[U,eE,eT]}),eN[136]=U,eN[137]=eE,eN[138]=eT,eN[139]=eI):eI=eN[139],eI}function tl(){window.location.href="/"}var ti=e.i(181430);function ta(){let e,n=(0,l.c)(1);return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("div",{className:"flex items-center justify-center px-6 py-12",children:(0,t.jsx)(eI.Spinner,{size:24})}),n[0]=e):e=n[0],e}var to=e.i(903482),tr=e.i(854004);let tc=new Set;function ts(e){for(let t of e)tc.delete(t)}let td=e.r(794455);function tu(e){let t=e.notif_category===tr.NotificationCategory.Video;return{id:e.id??"",title:e.notif_title??"",subtitle:e.notif_subtitle??"",body:e.notif_body??null,timestamp:e.sent_timestamp??0,category:e.notif_category??tr.NotificationCategory.Alert,type:e.notif_type??"",imageUri:t?null:e.actor_image_uri??null,seenState:e.seen_state??tr.NotificationSeenState.Unseen,targetUrl:e.target_url??""}}function tm(e){return"SEEN"!==e.seen_state&&!tc.has(e.id??"")}let tf="ecto_notifications_count";function th(e){if("function"==typeof BroadcastChannel)try{let t=new BroadcastChannel(tf);t.postMessage({count:e}),t.close()}catch{}}let tg=(0,e.i(840387).createClientLogger)("useCommitNotificationsSeen");function tp(n){let a,o,r,c,s,d,u,m,f,h=(0,l.c)(12),{children:g,fetchCount:p}=n,b=function(t){let n,i,a=(0,l.c)(4);a[0]===Symbol.for("react.memo_cache_sentinel")?(n=e.r(770463),a[0]=n):n=a[0];let[o]=(0,O.useMutation)(n);return a[1]!==o||a[2]!==t?(i=e=>{if(0===e.length)return;let n=e.length,l=new Set(e);for(let t of e)tc.add(t);o({variables:{input:{notificationIds:e}},onError:t=>{tg.error({error:t,notificationCount:e.length},"Mark notifications seen mutation failed"),ts(e)},updater:(t,n)=>{n?.markNotificationsSeen?.success!==!0&&tg.error({notificationCount:e.length},"Mark notifications seen mutation returned unsuccessful");let l=n?.markNotificationsSeen?.notifications_count;null!=l&&(t.getRoot().setValue(l,"notifications_count"),th(l)),ts(e)},optimisticUpdater:e=>{let i=e.getRoot(),a=i.getValue("notifications_count");"number"==typeof a&&i.setValue(Math.max(0,a-n),"notifications_count");let o=i.getLinkedRecords("notifications",{first:t,seenStateFilter:"UNSEEN"});if(o){for(let e of o)if(e){let t=e.getValue("id");"string"==typeof t&&l.has(t)&&e.setValue(tr.NotificationSeenState.Seen,"seen_state")}}let r=i.getLinkedRecords("notifications",{first:t,seenStateFilter:"SEEN"});if(r){for(let e of r)if(e){let t=e.getValue("id");"string"==typeof t&&l.has(t)&&e.setValue(tr.NotificationSeenState.Seen,"seen_state")}}}})},a[1]=o,a[2]=t,a[3]=i):i=a[3],i}(void 0===p?100:p);h[0]===Symbol.for("react.memo_cache_sentinel")?(a=new Set,h[0]=a):a=h[0];let _=(0,i.useRef)(a);h[1]===Symbol.for("react.memo_cache_sentinel")?(o=new Map,h[1]=o):o=h[1];let k=(0,i.useRef)(o);h[2]===Symbol.for("react.memo_cache_sentinel")?(r=new Set,h[2]=r):r=h[2];let x=(0,i.useRef)(r),y=(0,i.useRef)(null);h[3]!==b?(c=()=>{if(0===x.current.size)return;let e=Array.from(x.current);x.current.clear(),b(e)},h[3]=b,h[4]=c):c=h[4];let S=c;h[5]===Symbol.for("react.memo_cache_sentinel")?(s=e=>{_.current.has(e)||(_.current.add(e),x.current.add(e))},h[5]=s):s=h[5];let v=s;h[6]!==S?(d=()=>{y.current=new IntersectionObserver(e=>{for(let t of e){let e=t.target,n=k.current.get(e);t.isIntersecting&&t.intersectionRatio>=.5&&n&&v(n)}},{threshold:.5});let e=k.current;return()=>{y.current?.disconnect(),y.current=null,e.clear(),S()}},u=[v,S],h[6]=S,h[7]=d,h[8]=u):(d=h[7],u=h[8]),(0,i.useEffect)(d,u),h[9]===Symbol.for("react.memo_cache_sentinel")?(m=(e,t)=>_.current.has(t)?tb:(k.current.set(e,t),y.current?.observe(e),()=>{k.current.delete(e),y.current?.unobserve(e)}),h[9]=m):m=h[9];let C=m;return h[10]!==g?(f=(0,t.jsx)(to.NotificationSeenContext.Provider,{value:C,children:g}),h[10]=g,h[11]=f):f=h[11],f}function tb(){}var t_=e.i(264747),tk=e.i(846689),tx=e.i(41610),ty=e.i(262387);function tS(e){let n,i,a,o,r,c=(0,l.c)(10);c[0]!==e?({size:i,...n}=e,c[0]=e,c[1]=n,c[2]=i):(n=c[1],i=c[2]);let s=void 0===i?32:i;return c[3]!==n.title?(a=null!=n.title&&(0,t.jsx)("title",{children:n.title}),c[3]=n.title,c[4]=a):a=c[4],c[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 5.125c4.086 0 7.314 3.313 7.425 7.352.142 5.168.698 7.355 2.598 9.308a1.228 1.228 0 0 1-.877 2.09h-5.275c.001.041.004.083.004.125a3.875 3.875 0 0 1-7.75 0c0-.042.003-.084.004-.125H6.854a1.23 1.23 0 0 1-1.223-1.102l-.006-.127.006-.123a1.24 1.24 0 0 1 .346-.738l.34-.37c1.628-1.868 2.125-4.093 2.258-8.938.111-4.039 3.339-7.352 7.425-7.352zm-2.121 18.75a2.125 2.125 0 1 0 4.242 0H13.88zm2.121-17c-3.093 0-5.588 2.513-5.675 5.65-.127 4.614-.574 7.33-2.329 9.6h16.008c-1.755-2.27-2.202-4.986-2.33-9.6-.086-3.137-2.58-5.65-5.674-5.65z",fill:"currentColor"}),c[5]=o):o=c[5],c[6]!==n||c[7]!==s||c[8]!==a?(r=(0,t.jsxs)("svg",{viewBox:"0 0 32 32",fill:"none",width:s,height:s,...n,children:[a,o]}),c[6]=n,c[7]=s,c[8]=a,c[9]=r):r=c[9],r}tS._isSVG=!0;var tv=e.i(823886),tC=e.i(633903);let tj=e.r(945291);function tE(){let e,a,o,c,s,d,u,m,f,g,p=(0,l.c)(24),[b,_]=(0,i.useState)(!1),{isMobile:k,setOpenMobile:x}=(0,r.useEctoSidebar)(),{navigate:y}=(0,h.useNavigate)();p[0]===Symbol.for("react.memo_cache_sentinel")?(e=e=>{_(e)},p[0]=e):e=p[0];let S=e;p[1]===Symbol.for("react.memo_cache_sentinel")?(a=()=>_(!1),p[1]=a):a=p[1];let v=a;p[2]!==k||p[3]!==y||p[4]!==x?(o=()=>{_(!1),k&&setTimeout(()=>{x(!1)},300),y("/notifications")},p[2]=k,p[3]=y,p[4]=x,p[5]=o):o=p[5];let C=o;p[6]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)(V.IconButton,{variant:"borderless",size:"32-24",icon:tS,label:n.fbs._("Notifications",null,{hk:"3g2Yth"}),className:"text-text-secondary"}),p[6]=c):c=p[6],p[7]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsxs)("div",{className:"relative ms-auto",children:[c,(0,t.jsx)(tv.EctoErrorBoundary,{fallback:null,children:(0,t.jsx)(i.Suspense,{fallback:null,children:(0,t.jsx)(tL,{})})})]}),p[7]=s):s=p[7];let j=s;if(k){let e,l,a,o,r;return p[8]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("div",{onClick:()=>_(!0),children:j}),p[8]=e):e=p[8],p[9]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)(tx.SheetTitle,{className:"px-6",children:n.fbs._("Notifications",null,{hk:"1sTuW4"})}),p[9]=l):l=p[9],p[10]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)(ta,{}),p[10]=a):a=p[10],p[11]!==C?(o=(0,t.jsxs)(tk.SheetContent,{side:"bottom",className:"max-h-[80dvh]",showCloseButton:!1,children:[l,(0,t.jsx)("div",{className:"flex flex-col gap-3",children:(0,t.jsx)(tp,{fetchCount:50,children:(0,t.jsx)(i.Suspense,{fallback:a,children:(0,t.jsx)(tT,{onClose:v,onSeeAll:C})})})})]}),p[11]=C,p[12]=o):o=p[12],p[13]!==b||p[14]!==o?(r=(0,t.jsxs)(tx.Sheet,{open:b,onOpenChange:S,children:[e,o]}),p[13]=b,p[14]=o,p[15]=r):r=p[15],r}return p[16]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)(t_.PopoverTrigger,{asChild:!0,children:j}),p[16]=d):d=p[16],p[17]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(tI,{onClose:v}),p[17]=u):u=p[17],p[18]===Symbol.for("react.memo_cache_sentinel")?(m=(0,t.jsx)(ta,{}),p[18]=m):m=p[18],p[19]!==C?(f=(0,t.jsxs)(t_.PopoverContent,{side:"top",align:"start",sideOffset:12,alignOffset:-18,collisionPadding:16,children:[u,(0,t.jsx)(tp,{fetchCount:50,children:(0,t.jsx)(tv.EctoErrorBoundary,{fallback:null,children:(0,t.jsx)(i.Suspense,{fallback:m,children:(0,t.jsx)(tT,{onClose:v,onSeeAll:C})})})})]}),p[19]=C,p[20]=f):f=p[20],p[21]!==b||p[22]!==f?(g=(0,t.jsxs)(t_.Popover,{open:b,onOpenChange:S,children:[d,f]}),p[21]=b,p[22]=f,p[23]=g):g=p[23],g}function tT(e){let n,a,o,r,c,s,d,u=(0,l.c)(11),{onClose:m,onSeeAll:f}=e,{notifications:h,unseen:g,seen:p,hasMore:b,totalUnseen:_}=function(){let e,t,n,i,a,o,r,c,s,d,u,m,f=(0,l.c)(31);50!==f[0]?(e={first:50,seenStateFilter:"UNSEEN"},f[0]=50,f[1]=e):e=f[1],f[2]===Symbol.for("react.memo_cache_sentinel")?(t={fetchPolicy:"store-and-network"},f[2]=t):t=f[2];let h=(0,O.useLazyLoadQuery)(td,e,t);50!==f[3]?(n={first:50,seenStateFilter:"SEEN"},f[3]=50,f[4]=n):n=f[4],f[5]===Symbol.for("react.memo_cache_sentinel")?(i={fetchPolicy:"store-and-network"},f[5]=i):i=f[5];let g=(0,O.useLazyLoadQuery)(td,n,i);h?.notifications,f[6]!==h?.notifications?(a=(h?.notifications??[]).filter(tm).map(tu),f[6]=h?.notifications,f[7]=a):a=f[7];let p=a;f[8]!==g?.notifications?(o=()=>(g?.notifications??[]).map(tu),f[8]=g?.notifications,f[9]=o):o=f[9],g?.notifications,f[10]!==o?(r=o(),f[10]=o,f[11]=r):r=f[11];let b=r;f[12]!==p||5!==f[13]?(c=p.slice(0,5),f[12]=p,f[13]=5,f[14]=c):c=f[14];let _=c,k=5-_.length;f[15]!==b||f[16]!==k?(s=k>0?b.slice(0,k):[],f[15]=b,f[16]=k,f[17]=s):s=f[17];let x=s,y=p.length+b.length>5;f[18]!==x||f[19]!==_||f[20]!==y?(d={unseen:_,seen:x,hasMore:y},f[18]=x,f[19]=_,f[20]=y,f[21]=d):d=f[21];let{unseen:S,seen:v,hasMore:C}=d;f[22]!==b||f[23]!==p?(u=[...p,...b],f[22]=b,f[23]=p,f[24]=u):u=f[24];let j=u;return f[25]!==p.length||f[26]!==C||f[27]!==j||f[28]!==v||f[29]!==S?(m={notifications:j,unseen:S,seen:v,hasMore:C,totalUnseen:p.length},f[25]=p.length,f[26]=C,f[27]=j,f[28]=v,f[29]=S,f[30]=m):m=f[30],m}();if(s=(0,l.c)(5),d=(0,O.useRelayEnvironment)(),s[0]!==d||50!==s[1]||s[2]!==_?(r=()=>{if(_>=50)return;let e=d.getStore().getSource().get("client:root");if(null==e)return;let t=e.notifications_count;"number"==typeof t&&t!==_&&((0,O.commitLocalUpdate)(d,e=>{e.getRoot().setValue(_,"notifications_count")}),th(_))},c=[_,50,d],s[0]=d,s[1]=50,s[2]=_,s[3]=r,s[4]=c):(r=s[3],c=s[4]),(0,i.useEffect)(r,c),0===h.length){let e;return u[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(ti.EctoNotificationsEmptyState,{}),u[0]=e):e=u[0],e}return u[1]!==m||u[2]!==p||u[3]!==g?(n=(0,t.jsx)(tM,{unseen:g,seen:p,onNavigate:m}),u[1]=m,u[2]=p,u[3]=g,u[4]=n):n=u[4],u[5]!==b||u[6]!==f?(a=(0,t.jsx)(tN,{hasMore:b,onSeeAll:f}),u[5]=b,u[6]=f,u[7]=a):a=u[7],u[8]!==n||u[9]!==a?(o=(0,t.jsxs)(t.Fragment,{children:[n,a]}),u[8]=n,u[9]=a,u[10]=o):o=u[10],o}function tI(e){let i,a,o=(0,l.c)(3),{onClose:r}=e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)(t_.PopoverTitle,{children:n.fbt._("Notifications",null,{hk:"3wy8Qa"})}),o[0]=i):i=o[0],o[1]!==r?(a=(0,t.jsxs)(t_.PopoverHeader,{children:[i,(0,t.jsx)(t_.PopoverClose,{onClose:r})]}),o[1]=r,o[2]=a):a=o[2],a}function tN(e){let i,a,o=(0,l.c)(6),{hasMore:r,onSeeAll:c}=e,s=r?"p-3 pt-3":"pt-3";return o[0]!==r||o[1]!==c?(i=r&&(0,t.jsx)(eA.Button,{variant:"flat",label:n.fbt._("See all",null,{hk:"3l1lBd"}),onClick:c,className:"rounded-20 min-h-10 w-full"}),o[0]=r,o[1]=c,o[2]=i):i=o[2],o[3]!==s||o[4]!==i?(a=(0,t.jsx)(t_.PopoverFooter,{className:s,children:i}),o[3]=s,o[4]=i,o[5]=a):a=o[5],a}function tM(e){let i,a,o,r=(0,l.c)(10),{unseen:c,seen:s,onNavigate:d}=e;return r[0]!==d||r[1]!==s.length||r[2]!==c?(i=c.length>0&&(0,t.jsx)(ty.EctoNotificationsListSection,{title:n.fbt._("New",null,{hk:"4u3WRo"}),notifications:c,onNavigate:d,isLastChild:0===s.length}),r[0]=d,r[1]=s.length,r[2]=c,r[3]=i):i=r[3],r[4]!==d||r[5]!==s?(a=s.length>0&&(0,t.jsx)(ty.EctoNotificationsListSection,{title:n.fbt._("Earlier",null,{hk:"jozpe"}),notifications:s,onNavigate:d,isLastChild:!0}),r[4]=d,r[5]=s,r[6]=a):a=r[6],r[7]!==i||r[8]!==a?(o=(0,t.jsxs)("div",{className:"flex flex-col gap-3 px-3",children:[i,a]}),r[7]=i,r[8]=a,r[9]=o):o=r[9],o}function tL(){let e,n=(0,l.c)(1);return 0===function(){var e,t,n;let a,o,r,c,s,d,u,m,f,h,g,p,b=(0,l.c)(3),{notifications_count:_}=(0,eF.useEctoPreloadedQuery)(tj,eP.queryLoader.notificationBadgeCount),k=(0,O.useRelayEnvironment)();return e=_,(r=(0,l.c)(3))[0]!==e?(a=()=>{var t;t=Math.min(e,100),window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches&&navigator.setAppBadge?.(t)},o=[e],r[0]=e,r[1]=a,r[2]=o):(a=r[1],o=r[2]),(0,i.useEffect)(a,o),t=_>0,d=(0,l.c)(3),u=(0,i.useRef)(null),d[0]!==t?(c=()=>{null==u.current&&(u.current=document.querySelector('link[rel*=icon][href*=".ico"]'));let e=u.current;if(null!=e&&e instanceof HTMLLinkElement){let{badgedIcon:n,defaultIcon:l}=e.dataset,i=t&&null!=n?n:l;e.href!==i&&null!=i&&(e.href=i)}},s=[t],d[0]=t,d[1]=c,d[2]=s):(c=d[1],s=d[2]),(0,i.useEffect)(c,s),n=_,(h=(0,l.c)(3))[0]!==n?(m=()=>{if(0===n)return;let e=document.title,t=function({badgeCount:e,badgeCountLimit:t,title:n}){let l=e>t?`(${t}+) `:e>0?`(${e}) `:"";return`${l}${n}`}({badgeCount:n,badgeCountLimit:9,title:e});return document.title=t,()=>{document.title=e}},f=[n],h[0]=n,h[1]=m,h[2]=f):(m=h[1],f=h[2]),(0,i.useEffect)(m,f),b[0]!==k?(g=()=>(function(e){if("function"!=typeof BroadcastChannel)return()=>{};try{let n=new BroadcastChannel(tf);function t(t){let{count:n}=t.data;"number"==typeof n&&n>=0&&e(n)}return n.addEventListener("message",t),()=>{n.removeEventListener("message",t),n.close()}}catch{return()=>{}}})(e=>{(0,tC.commitLocalUpdate)(k,t=>{t.getRoot().setValue(e,"notifications_count")})}),p=[k],b[0]=k,b[1]=g,b[2]=p):(g=b[1],p=b[2]),(0,i.useEffect)(g,p),_}()?null:(n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("div",{className:"border-primary bg-fill-blue absolute end-1 top-1.5 h-1.5 w-1.5 rounded-full border-2"}),n[0]=e):e=n[0],e)}function tD(){let i,o,r,s,d=(0,l.c)(6);d[0]===Symbol.for("react.memo_cache_sentinel")?(i=e.r(877347),d[0]=i):i=d[0];let u=(0,eF.useEctoPreloadedQuery)(i,eP.queryLoader.userSection).viewer;return d[1]!==u?(o=u?(0,t.jsx)(tn,{viewerRef:u}):(0,t.jsxs)(eV.Flexbox,{grow:1,alignItems:"center",gap:1.5,children:[(0,t.jsx)(eV.Flexbox,{alignItems:"center",justifyContent:"center",className:"size-9",children:(0,t.jsx)("div",{className:"bg-fill-tertiary size-7 animate-pulse rounded-full"})}),(0,t.jsx)(a.SidebarExpandedContent,{asChild:!0,children:(0,t.jsx)("span",{className:"text-subheadline flex-1 truncate",children:n.fbs._("User",null,{hk:"O5ium"})})})]}),d[1]=u,d[2]=o):o=d[2],d[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)(a.SidebarExpandedContent,{className:"shrink-0",children:(0,t.jsx)(tE,{})}),d[3]=r):r=d[3],d[4]!==o?(s=(0,t.jsx)(c.InteractionAreaProvider,{targetArea:"nav_button",children:(0,t.jsxs)(a.SidebarFooter,{className:"justify-between before:hidden",children:[o,r]})}),d[4]=o,d[5]=s):s=d[5],s}var tR=e.i(44949);function tw(){let e,i,o,r,c=(0,l.c)(4);return c[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(a.SidebarGroupLabel,{children:n.fbt._("Pinned",null,{hk:"2CUTtb"})}),c[0]=e):e=c[0],c[1]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsxs)(a.SidebarGroup,{className:"gap-2 pt-2 pb-6",children:[e,(0,t.jsx)(a.SidebarGroupContent,{children:(0,t.jsx)(a.SidebarMenu,{children:[void 0,void 0].map(tO)})})]}),c[1]=i):i=c[1],c[2]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(a.SidebarGroupLabel,{children:n.fbt._("History",null,{hk:"1khMmO"})}),c[2]=o):o=c[2],c[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsxs)(a.SidebarContent,{children:[i,(0,t.jsxs)(a.SidebarGroup,{className:"gap-2 pb-6",children:[o,(0,t.jsx)(a.SidebarGroupContent,{children:(0,t.jsx)(a.SidebarMenu,{children:[...Array(15)].map(tA)})})]})]}),c[3]=r):r=c[3],r}function tA(e,n){return(0,t.jsx)(a.SidebarMenuItem,{children:(0,t.jsx)(a.SidebarMenuSkeleton,{index:n})},n)}function tO(e,n){return(0,t.jsx)(a.SidebarMenuItem,{children:(0,t.jsx)(a.SidebarMenuSkeleton,{index:n})},n)}function tF(){let e,n,i,r=(0,l.c)(3);return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(eV.Flexbox,{alignItems:"center",justifyContent:"center",className:"size-9",children:(0,t.jsx)(o.Skeleton,{className:"size-7 rounded-full"})}),r[0]=e):e=r[0],r[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsxs)(eV.Flexbox,{grow:1,alignItems:"center",gap:1.5,children:[e,(0,t.jsx)(a.SidebarExpandedContent,{asChild:!0,children:(0,t.jsx)(o.Skeleton,{className:"h-4 w-24"})})]}),r[1]=n):n=r[1],r[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsxs)(a.SidebarFooter,{className:"before:hidden",children:[n,(0,t.jsx)(a.SidebarExpandedContent,{asChild:!0,children:(0,t.jsx)(o.Skeleton,{className:"rounded-6 size-6"})})]}),r[2]=i):i=r[2],i}e.s(["default",0,function(e){let n,o,c,s,d,u,m,f,h=(0,l.c)(9),{banners:g}=e,{state:p,isMobile:b}=(0,r.useEctoSidebar)();h[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)(a.SidebarHeader,{}),h[0]=n):n=h[0];let _=!("collapsed"===p&&!b)&&g;return h[1]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(D,{}),h[1]=o):o=h[1],h[2]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)(t.Fragment,{}),h[2]=c):c=h[2],h[3]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(tw,{}),h[3]=s):s=h[3],h[4]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsxs)(eV.Flexbox,{gap:4,className:"ps-3 pe-1",direction:"column",grow:1,children:[o,(0,t.jsx)(tR.EctoErrorBoundary,{fallback:c,children:(0,t.jsx)(i.Suspense,{fallback:s,children:(0,t.jsx)(a.SidebarContent,{children:(0,t.jsx)(eK,{})})})})]}),h[4]=d):d=h[4],h[5]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(t.Fragment,{}),h[5]=u):u=h[5],h[6]===Symbol.for("react.memo_cache_sentinel")?(m=(0,t.jsx)(tR.EctoErrorBoundary,{fallback:u,children:(0,t.jsx)(i.Suspense,{fallback:(0,t.jsx)(tF,{}),children:(0,t.jsx)(tD,{})})}),h[6]=m):m=h[6],h[7]!==_?(f=(0,t.jsxs)(a.Sidebar,{children:[n,_,d,m]}),h[7]=_,h[8]=f):f=h[8],f}],731639)},570251,e=>{"use strict";var t=e.i(733783),n=e.i(908464),l=e.i(579657);function i(){let e,i=(0,n.c)(1);return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("div",{className:"animate-in fade-in fixed start-4 top-2.5 z-20 duration-200 md:hidden",children:(0,t.jsx)(l.SidebarTrigger,{})}),i[0]=e):e=i[0],e}var a=e.i(237334);e.s(["SidebarFloatingTriggerWrapper",0,function(){let e,l=(0,n.c)(1),o=(0,a.usePathname)(),r=o.startsWith("/prompt/"),c=o.startsWith("/share/"),s=/^\/@[^/]+\/post\/[^/]+(\/[^/]+)?$/.test(o);return r||c||s?null:(l[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(i,{}),l[0]=e):e=l[0],e)}],570251)},372709,e=>{"use strict";var t;let n={fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"EctoLoggedOutSettingsMenuQuery",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"viewer",plural:!1,selections:[t={alias:null,args:null,kind:"ScalarField",name:"tosRegion",storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"EctoLoggedOutSettingsMenuQuery",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},t,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:"d5ff0463f8b75bb1fef52160099fcd8c",metadata:{},name:"EctoLoggedOutSettingsMenuQuery",operationKind:"query",text:null}};n.hash="883dc7c37551d925bfe286e01b348fd1",e.s(["default",0,n])},996703,e=>{"use strict";var t=e.i(733783),n=e.i(908464),l=e.i(579657),i=e.i(267989),a=e.i(472361),o=e.i(899272),r=e.i(314516),c=e.i(764169),s=e.i(919111),d=e.i(527357),u=e.i(74049),m=e.i(312951),f=e.i(272600),h=e.i(369835);function g(e){let g,p,b,_,k,x,y,S,v,C,j,E,T,I,N,M,L,D,R,w,A=(0,n.c)(47);A[0]!==e?({className:g,...p}=e,A[0]=e,A[1]=g,A[2]=p):(g=A[1],p=A[2]);let{state:O,isMobile:F,toggleSidebar:P}=(0,s.useEctoSidebar)(),{navigate:B}=(0,d.useNavigate)(),K="collapsed"===O&&!F,[z,V]=a.useState(!1),U=a.useRef(K);A[3]===Symbol.for("react.memo_cache_sentinel")?(b={eventName:h.EctoClickEvent.META_AI_LOGO_CLICK,actionTarget:"EctoLoggedOutSidebarHeader",actionType:"click"},A[3]=b):b=A[3];let{ref:G,onClick:H}=(0,f.useTrackedClickRef)(b);A[4]===Symbol.for("react.memo_cache_sentinel")?(_={eventName:h.EctoClickEvent.OPEN_NAV,actionTarget:"EctoLoggedOutSidebarHeader",actionType:"click"},A[4]=_):_=A[4];let{onClick:Q}=(0,f.useTrackedClickRef)(_);A[5]!==K?(k=()=>{if(K&&!U.current){V(!0);let e=setTimeout(()=>V(!1),300);return()=>clearTimeout(e)}U.current=K},x=[K],A[5]=K,A[6]=k,A[7]=x):(k=A[6],x=A[7]),a.useLayoutEffect(k,x);let q=K&&!z;A[8]!==K||A[9]!==H||A[10]!==Q||A[11]!==B||A[12]!==P?(y=()=>{K?(Q(),P()):(H(),B("/",{state:{timestamp:Date.now()}}))},A[8]=K,A[9]=H,A[10]=Q,A[11]=B,A[12]=P,A[13]=y):y=A[13];let W=y;A[14]!==g?(S=(0,o.cn)("group/header relative px-3 py-3",g),A[14]=g,A[15]=S):S=A[15];let Y=K&&"hover:bg-fill-secondary-elevated transition-transform duration-150 ease-in-out active:scale-98",X=K&&"before:absolute before:inset-0 before:rounded-12 before:bg-primary before:opacity-0 before:transition-opacity before:duration-100 active:before:opacity-8 before:pointer-events-none";A[16]!==Y||A[17]!==X?(v=(0,o.cn)("group/button rounded-12 bg-bg-primary relative z-10 flex size-8 cursor-pointer items-center justify-center select-none",Y,X),A[16]=Y,A[17]=X,A[18]=v):v=A[18],A[19]!==K?(C=K?i.fbs._("Open sidebar",null,{hk:"3mNDs4"}):i.fbs._("Home",null,{hk:"VDKCg"}),A[19]=K,A[20]=C):C=A[20];let $=q&&"group-hover/sidebar:opacity-0 group-focus-visible/button:opacity-0";A[21]!==$?(j=(0,o.cn)("absolute transition-opacity duration-300",$),A[21]=$,A[22]=j):j=A[22],A[23]!==j?(E=(0,t.jsx)("img",{src:"/images/cot_logo_static/orbit.png",alt:"",width:30,height:30,className:j}),A[23]=j,A[24]=E):E=A[24];let Z=q&&"group-hover/sidebar:text-text-primary group-hover/sidebar:opacity-100 group-focus-visible/button:opacity-100";A[25]!==Z?(T=(0,o.cn)("text-text-secondary absolute opacity-0 transition-all duration-150 rtl:-scale-x-100",Z),A[25]=Z,A[26]=T):T=A[26],A[27]!==T?(I=(0,t.jsx)(u.default,{size:24,className:T}),A[27]=T,A[28]=I):I=A[28],A[29]!==W||A[30]!==G||A[31]!==C||A[32]!==E||A[33]!==I||A[34]!==v?(N=(0,t.jsx)(c.TooltipTrigger,{asChild:!0,children:(0,t.jsxs)("button",{ref:G,onClick:W,className:v,"aria-label":C,children:[E,I]})}),A[29]=W,A[30]=G,A[31]=C,A[32]=E,A[33]=I,A[34]=v,A[35]=N):N=A[35];let J=!K;return A[36]===Symbol.for("react.memo_cache_sentinel")?(M=i.fbt._("Open sidebar",null,{hk:"vKujI"}),A[36]=M):M=A[36],A[37]!==J?(L=(0,t.jsx)(c.TooltipContent,{side:"right",align:"center",sideOffset:4,hidden:J,children:M}),A[37]=J,A[38]=L):L=A[38],A[39]!==N||A[40]!==L?(D=(0,t.jsxs)(c.Tooltip,{children:[N,L]}),A[39]=N,A[40]=L,A[41]=D):D=A[41],A[42]===Symbol.for("react.memo_cache_sentinel")?(R=(0,t.jsx)(l.SidebarTrigger,{icon:m.default,className:"text-text-secondary absolute end-4 transition-[visibility] duration-[230ms] group-data-[state=collapsed]:invisible"}),A[42]=R):R=A[42],A[43]!==p||A[44]!==D||A[45]!==S?(w=(0,t.jsxs)(r.Flexbox,{"data-slot":"sidebar-header","data-sidebar":"header",alignItems:"center",defaultMinSize:"auto",className:S,...p,children:[D,R]}),A[43]=p,A[44]=D,A[45]=S,A[46]=w):w=A[46],w}var p=e.i(482708),b=e.i(802608),_=e.i(336317),k=e.i(219747),x=e.i(511038),y=e.i(237334);function S(){let e,a,o,r,c,d,u,m,g,S,v,C,j,E=(0,n.c)(32),{isMobile:T,setOpenMobile:I}=(0,s.useEctoSidebar)(),N=(0,y.usePathname)(),M=(0,x.useVibesFeedUrl)(),L=(0,b.useNavigationClickLogger)("nav_item_chat_click","EctoLoggedOutSidebarActions"),D=(0,b.useNavigationClickLogger)("nav_item_feed_click","EctoLoggedOutSidebarActions");E[0]===Symbol.for("react.memo_cache_sentinel")?(e={eventName:h.EctoClickEvent.NEW_CHAT_BUTTON,actionTarget:"EctoLoggedOutSidebarActions",actionType:"click"},E[0]=e):e=E[0];let{ref:R,onClick:w}=(0,f.useTrackedClickRef)(e);E[1]===Symbol.for("react.memo_cache_sentinel")?(a={eventName:h.EctoClickEvent.VIBES_BUTTON,actionTarget:"EctoLoggedOutSidebarActions",actionType:"click"},E[1]=a):a=E[1];let{ref:A,onClick:O}=(0,f.useTrackedClickRef)(a);E[2]!==T||E[3]!==I?(o=()=>{T&&I(!1)},E[2]=T,E[3]=I,E[4]=o):o=E[4];let F=o;E[5]!==F||E[6]!==w||E[7]!==L?(r=()=>{L(),w(),F()},E[5]=F,E[6]=w,E[7]=L,E[8]=r):r=E[8];let P=r;E[9]!==F||E[10]!==O||E[11]!==D?(c=()=>{D(),O(),F()},E[9]=F,E[10]=O,E[11]=D,E[12]=c):c=E[12];let B=c;E[13]===Symbol.for("react.memo_cache_sentinel")?(d=i.fbs._("New chat",null,{hk:"3IB0DT"}),u={href:"/",prefetch:"hover"},E[13]=d,E[14]=u):(d=E[13],u=E[14]),E[15]!==P?(m=(0,t.jsx)(l.SidebarMenuButton,{animatedIcon:_.default,label:d,linkProps:u,onClick:P,"data-testid":"new-chat-button"}),E[15]=P,E[16]=m):m=E[16],E[17]!==R||E[18]!==m?(g=(0,t.jsx)(l.SidebarMenuItem,{children:(0,t.jsx)("div",{ref:R,children:m})}),E[17]=R,E[18]=m,E[19]=g):g=E[19],E[20]!==M?(S={href:M,prefetch:"hover"},E[20]=M,E[21]=S):S=E[21];let K="/vibes"===N;return E[22]!==B||E[23]!==K||E[24]!==S?(v=(0,t.jsx)(l.SidebarMenuButton,{animatedIcon:k.default,label:"Vibes",linkProps:S,onClick:B,isActive:K}),E[22]=B,E[23]=K,E[24]=S,E[25]=v):v=E[25],E[26]!==v||E[27]!==A?(C=(0,t.jsx)(l.SidebarMenuItem,{children:(0,t.jsx)("div",{ref:A,children:v})}),E[26]=v,E[27]=A,E[28]=C):C=E[28],E[29]!==C||E[30]!==g?(j=(0,t.jsx)(p.InteractionAreaProvider,{targetArea:"nav_button",children:(0,t.jsx)(l.SidebarGroup,{className:"bg-bg-sidebar relative z-10 shrink-0 pe-2",children:(0,t.jsx)(l.SidebarGroupContent,{children:(0,t.jsxs)(l.SidebarMenu,{children:[g,C]})})})}),E[29]=C,E[30]=g,E[31]=j):j=E[31],j}var v=e.i(39491),C=e.i(261205),j=e.i(823886),E=e.i(410241),T=e.i(148061),I=e.i(108811),N=e.i(816454),M=e.i(698859),L=e.i(75736);let D={loggedOutSettingsMenu:{query:e.i(372709).default,getVariables:()=>({})}};Object.values(D);var R=e.i(336326),w=e.i(438217),A=e.i(530275),O=e.i(397903),F=e.i(211376);let P=(0,a.lazy)(()=>e.A(751301).then(e=>({default:e.EctoBugReportDialog}))),B=e.r(372709);function K(e){let l,o,r,c,s,d,u,m,g,p,b,_,k,x,y,S,C,L,D,B,K,U,G,H,Q,q,W,Y,X,$,Z,J,ee,et,en,el,ei,ea,eo,er,ec,es,ed=(0,n.c)(88),{className:eu}=e,{themePreference:em,setTheme:ef}=(0,I.useTheme)(),{links:eh,getAITermsLink:eg,getCookieLink:ep}=(0,E.useLocalizedSettingsLinks)(),[eb,e_]=(0,a.useState)(!1),[ek,ex]=(0,a.useState)(!1),[ey]=(0,M.useEctoLoginCallback)();ed[0]===Symbol.for("react.memo_cache_sentinel")?(l={eventName:h.EctoClickEvent.NAV_ITEM_MENU_CLICK,actionTarget:"EctoLoggedOutSettingsMenu",actionType:"click"},ed[0]=l):l=ed[0];let{onClick:eS}=(0,f.useTrackedClickRef)(l);ed[1]===Symbol.for("react.memo_cache_sentinel")?(o={eventName:h.EctoClickEvent.LOGGED_OUT_LOGIN_CLICK,actionTarget:"EctoLoggedOutSettingsMenu",actionType:"click"},ed[1]=o):o=ed[1];let{onClick:ev}=(0,f.useTrackedClickRef)(o);ed[2]===Symbol.for("react.memo_cache_sentinel")?(r={eventName:h.EctoClickEvent.LOGGED_OUT_THEME_CHANGE,actionTarget:"EctoLoggedOutSettingsMenu",actionType:"click"},ed[2]=r):r=ed[2];let{onClick:eC}=(0,f.useTrackedClickRef)(r);ed[3]===Symbol.for("react.memo_cache_sentinel")?(c={eventName:h.EctoClickEvent.EXTERNAL_ENTRYPOINT_SIDENAV_AI_DEMOS_CLICK,actionTarget:"EctoLoggedOutSettingsMenu",actionType:"click"},ed[3]=c):c=ed[3];let{onClick:ej}=(0,f.useTrackedClickRef)(c);ed[4]===Symbol.for("react.memo_cache_sentinel")?(s={eventName:h.EctoClickEvent.EXTERNAL_ENTRYPOINT_SIDENAV_AI_IDENTIFICATION_CLICK,actionTarget:"EctoLoggedOutSettingsMenu",actionType:"click"},ed[4]=s):s=ed[4];let{onClick:eE}=(0,f.useTrackedClickRef)(s);ed[5]===Symbol.for("react.memo_cache_sentinel")?(d={eventName:h.EctoClickEvent.LOGGED_OUT_REPORT_ISSUE_CLICK,actionTarget:"EctoLoggedOutSettingsMenu",actionType:"click"},ed[5]=d):d=ed[5];let{onClick:eT}=(0,f.useTrackedClickRef)(d);ed[6]!==ev||ed[7]!==ey?(u=()=>{ev(),e_(!1),ey()},ed[6]=ev,ed[7]=ey,ed[8]=u):u=ed[8];let eI=u;ed[9]!==eC||ed[10]!==ef?(m=e=>{eC(),ef(e)},ed[9]=eC,ed[10]=ef,ed[11]=m):m=ed[11];let eN=m;ed[12]!==ej?(g=()=>{ej()},ed[12]=ej,ed[13]=g):g=ed[13];let eM=g;ed[14]!==eE?(p=()=>{eE()},ed[14]=eE,ed[15]=p):p=ed[15];let eL=p;ed[16]!==eT?(b=()=>{eT(),e_(!1),ex(!0)},ed[16]=eT,ed[17]=b):b=ed[17];let eD=b;ed[18]!==eS?(_=e=>{e&&eS(),e_(e)},ed[18]=eS,ed[19]=_):_=ed[19];let eR=_;return ed[20]===Symbol.for("react.memo_cache_sentinel")?(k=i.fbs._("Settings",null,{hk:"1ado1j"}),ed[20]=k):k=ed[20],ed[21]!==eu?(x=(0,t.jsx)(T.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsx)(v.IconButton,{icon:R.default,label:k,variant:"borderless",size:"32-24",className:eu})}),ed[21]=eu,ed[22]=x):x=ed[22],ed[23]===Symbol.for("react.memo_cache_sentinel")?(y=i.fbs._("Log in",null,{hk:"255hA6"}),ed[23]=y):y=ed[23],ed[24]!==eI?(S=(0,t.jsx)(T.DropdownMenuItem,{label:y,onSelect:eI,className:"ring-primary ring-2 ring-inset"}),ed[24]=eI,ed[25]=S):S=ed[25],ed[26]===Symbol.for("react.memo_cache_sentinel")?(C=(0,t.jsx)(T.DropdownMenuSubTrigger,{label:i.fbs._("Appearance",null,{hk:"3Zm4s9"}),leadingIcon:A.default}),ed[26]=C):C=ed[26],ed[27]===Symbol.for("react.memo_cache_sentinel")?(L=(0,t.jsx)(T.DropdownMenuRadioItem,{value:"system",label:i.fbs._("System",null,{hk:"30L2PC"})}),ed[27]=L):L=ed[27],ed[28]===Symbol.for("react.memo_cache_sentinel")?(D=(0,t.jsx)(T.DropdownMenuRadioItem,{value:"light",label:i.fbs._("Light",null,{hk:"2EcNH1"})}),ed[28]=D):D=ed[28],ed[29]===Symbol.for("react.memo_cache_sentinel")?(B=(0,t.jsx)(T.DropdownMenuRadioItem,{value:"dark",label:i.fbs._("Dark",null,{hk:"2GGBbH"})}),ed[29]=B):B=ed[29],ed[30]!==eN||ed[31]!==em?(K=(0,t.jsxs)(T.DropdownMenuSub,{children:[C,(0,t.jsx)(T.DropdownMenuSubContent,{children:(0,t.jsxs)(T.DropdownMenuRadioGroup,{value:em,onValueChange:eN,children:[L,D,B]})})]}),ed[30]=eN,ed[31]=em,ed[32]=K):K=ed[32],ed[33]===Symbol.for("react.memo_cache_sentinel")?(U=(0,t.jsx)(T.DropdownMenuSeparator,{}),ed[33]=U):U=ed[33],ed[34]===Symbol.for("react.memo_cache_sentinel")?(G=i.fbs._("AI Demos",null,{hk:"1adbkh"}),ed[34]=G):G=ed[34],ed[35]!==eM||ed[36]!==eh.AI_DEMOS?(H=(0,t.jsx)(T.DropdownMenuItem,{leadingIcon:w.default,label:G,trailingIcon:"arrow-up-right",href:eh.AI_DEMOS,target:"_blank",onSelect:eM}),ed[35]=eM,ed[36]=eh.AI_DEMOS,ed[37]=H):H=ed[37],ed[38]===Symbol.for("react.memo_cache_sentinel")?(Q=i.fbs._("AI identification",null,{hk:"4lNQ7N"}),ed[38]=Q):Q=ed[38],ed[39]!==eL?(q=(0,t.jsx)(T.DropdownMenuItem,{leadingIcon:O.default,label:Q,href:"/identification",onClick:eL}),ed[39]=eL,ed[40]=q):q=ed[40],ed[41]===Symbol.for("react.memo_cache_sentinel")?(W=i.fbs._("Report an issue",null,{hk:"3a2wwh"}),ed[41]=W):W=ed[41],ed[42]!==eD?(Y=(0,t.jsx)(T.DropdownMenuItem,{leadingIcon:F.default,label:W,onSelect:eD}),ed[42]=eD,ed[43]=Y):Y=ed[43],ed[44]===Symbol.for("react.memo_cache_sentinel")?(X=(0,t.jsx)("span",{className:"text-text-secondary text-caption-1",children:i.fbt._("Meta 漏 2026",null,{hk:"3Rjeaw"})}),ed[44]=X):X=ed[44],ed[45]!==eg?($=eg("ROW"),ed[45]=eg,ed[46]=$):$=ed[46],ed[47]!==ep?(Z=ep("ROW"),ed[47]=ep,ed[48]=Z):Z=ed[48],ed[49]!==eh||ed[50]!==$||ed[51]!==Z?(J=(0,t.jsx)(z,{links:eh,aiTermsLink:$,cookieLink:Z}),ed[49]=eh,ed[50]=$,ed[51]=Z,ed[52]=J):J=ed[52],ed[53]!==eg?(ee=eg("ROW"),ed[53]=eg,ed[54]=ee):ee=ed[54],ed[55]!==ep?(et=ep("ROW"),ed[55]=ep,ed[56]=et):et=ed[56],ed[57]!==eh||ed[58]!==ee||ed[59]!==et?(en=(0,t.jsx)(z,{links:eh,aiTermsLink:ee,cookieLink:et}),ed[57]=eh,ed[58]=ee,ed[59]=et,ed[60]=en):en=ed[60],ed[61]!==eg||ed[62]!==ep||ed[63]!==eh?(el=(0,t.jsx)(V,{links:eh,getAITermsLink:eg,getCookieLink:ep}),ed[61]=eg,ed[62]=ep,ed[63]=eh,ed[64]=el):el=ed[64],ed[65]!==en||ed[66]!==el?(ei=(0,t.jsx)(a.Suspense,{fallback:en,children:el}),ed[65]=en,ed[66]=el,ed[67]=ei):ei=ed[67],ed[68]!==J||ed[69]!==ei?(ea=(0,t.jsxs)("div",{className:"mt-1 mb-2 px-2",children:[X,(0,t.jsx)(j.EctoErrorBoundary,{fallback:J,children:ei})]}),ed[68]=J,ed[69]=ei,ed[70]=ea):ea=ed[70],ed[71]!==S||ed[72]!==K||ed[73]!==H||ed[74]!==q||ed[75]!==Y||ed[76]!==ea?(eo=(0,t.jsxs)(T.DropdownMenuContent,{align:"start",children:[S,K,U,H,q,Y,ea]}),ed[71]=S,ed[72]=K,ed[73]=H,ed[74]=q,ed[75]=Y,ed[76]=ea,ed[77]=eo):eo=ed[77],ed[78]!==eR||ed[79]!==eb||ed[80]!==x||ed[81]!==eo?(er=(0,t.jsxs)(T.DropdownMenu,{open:eb,onOpenChange:eR,children:[x,eo]}),ed[78]=eR,ed[79]=eb,ed[80]=x,ed[81]=eo,ed[82]=er):er=ed[82],ed[83]!==ek?(ec=ek&&(0,t.jsx)(a.Suspense,{fallback:null,children:(0,t.jsx)(P,{isOpen:ek,onClose:()=>ex(!1),reportSource:N.BugReportSource.LOGGED_OUT_SETTINGS_MENU,title:i.fbs._("Report an issue",null,{hk:"3GMa9S"})})}),ed[83]=ek,ed[84]=ec):ec=ed[84],ed[85]!==er||ed[86]!==ec?(es=(0,t.jsxs)(t.Fragment,{children:[er,ec]}),ed[85]=er,ed[86]=ec,ed[87]=es):es=ed[87],es}function z(e){let l,a,o,r,c,s,d,u,m,g,p,b,_,k,x,y=(0,n.c)(29),{links:S,aiTermsLink:v,cookieLink:j}=e;y[0]===Symbol.for("react.memo_cache_sentinel")?(l={eventName:h.EctoClickEvent.NUX_CLICK,actionTarget:"EctoLoggedOutSettingsMenu",actionType:"click",clickItem:"privacy_policy"},y[0]=l):l=y[0];let{ref:E,onClick:T}=(0,f.useTrackedClickRef)(l);y[1]===Symbol.for("react.memo_cache_sentinel")?(a={eventName:h.EctoClickEvent.NUX_CLICK,actionTarget:"EctoLoggedOutSettingsMenu",actionType:"click",clickItem:"terms"},y[1]=a):a=y[1];let{ref:I,onClick:N}=(0,f.useTrackedClickRef)(a);y[2]===Symbol.for("react.memo_cache_sentinel")?(o={eventName:h.EctoClickEvent.NUX_CLICK,actionTarget:"EctoLoggedOutSettingsMenu",actionType:"click",clickItem:"ai_terms"},y[2]=o):o=y[2];let{ref:M,onClick:L}=(0,f.useTrackedClickRef)(o);return y[3]===Symbol.for("react.memo_cache_sentinel")?(r=i.fbt._("Privacy",null,{hk:"1ESTXl"}),y[3]=r):r=y[3],y[4]!==S.PRIVACY_POLICY||y[5]!==T||y[6]!==E?(c=(0,t.jsx)(C.EctoAnchor,{ref:E,href:S.PRIVACY_POLICY,className:"hover:underline",onClick:T,children:r}),y[4]=S.PRIVACY_POLICY,y[5]=T,y[6]=E,y[7]=c):c=y[7],y[8]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)("span",{"aria-hidden":"true",children:"路"}),y[8]=s):s=y[8],y[9]===Symbol.for("react.memo_cache_sentinel")?(d=i.fbt._("Terms",null,{hk:"2lXgDt"}),y[9]=d):d=y[9],y[10]!==S.TERMS_OF_SERVICE||y[11]!==N||y[12]!==I?(u=(0,t.jsx)(C.EctoAnchor,{ref:I,href:S.TERMS_OF_SERVICE,className:"hover:underline",onClick:N,children:d}),y[10]=S.TERMS_OF_SERVICE,y[11]=N,y[12]=I,y[13]=u):u=y[13],y[14]===Symbol.for("react.memo_cache_sentinel")?(m=(0,t.jsx)("span",{"aria-hidden":"true",children:"路"}),y[14]=m):m=y[14],y[15]===Symbol.for("react.memo_cache_sentinel")?(g=i.fbt._("AI Terms",null,{hk:"3T7aNY"}),y[15]=g):g=y[15],y[16]!==v||y[17]!==M||y[18]!==L?(p=(0,t.jsx)(C.EctoAnchor,{ref:M,href:v,className:"hover:underline",onClick:L,children:g}),y[16]=v,y[17]=M,y[18]=L,y[19]=p):p=y[19],y[20]===Symbol.for("react.memo_cache_sentinel")?(b=(0,t.jsx)("span",{"aria-hidden":"true",children:"路"}),y[20]=b):b=y[20],y[21]===Symbol.for("react.memo_cache_sentinel")?(_=i.fbt._("Cookies",null,{hk:"1c2ZHQ"}),y[21]=_):_=y[21],y[22]!==j?(k=(0,t.jsx)(C.EctoAnchor,{href:j,className:"hover:underline",children:_}),y[22]=j,y[23]=k):k=y[23],y[24]!==p||y[25]!==k||y[26]!==c||y[27]!==u?(x=(0,t.jsxs)("div",{className:"text-text-secondary text-caption-1 mt-1 flex gap-1",children:[c,s,u,m,p,b,k]}),y[24]=p,y[25]=k,y[26]=c,y[27]=u,y[28]=x):x=y[28],x}function V(e){let l,i,a,o=(0,n.c)(10),{links:r,getAITermsLink:c,getCookieLink:s}=e,d=(0,L.useEctoPreloadedQuery)(B,D.loggedOutSettingsMenu),u=d.viewer?.tosRegion??"ROW";return o[0]!==c||o[1]!==u?(l=c(u),o[0]=c,o[1]=u,o[2]=l):l=o[2],o[3]!==s||o[4]!==u?(i=s(u),o[3]=s,o[4]=u,o[5]=i):i=o[5],o[6]!==r||o[7]!==l||o[8]!==i?(a=(0,t.jsx)(z,{links:r,aiTermsLink:l,cookieLink:i}),o[6]=r,o[7]=l,o[8]=i,o[9]=a):a=o[9],a}var U=e.i(528132),G=e.i(515299);function H(){let e,i=(0,n.c)(1);return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(p.InteractionAreaProvider,{targetArea:"nav_button",children:(0,t.jsx)(l.SidebarExpandedContent,{asChild:!0,children:(0,t.jsxs)(l.SidebarFooter,{className:"before:hidden",children:[(0,t.jsxs)(r.Flexbox,{alignItems:"center",gap:2,children:[(0,t.jsx)(U.EctoLoginButton,{actionTarget:"EctoLoggedOutUserSection",size:"32"}),(0,t.jsx)(G.EctoSignupButton,{actionTarget:"EctoLoggedOutUserSection",size:"32"})]}),(0,t.jsx)(K,{className:"text-text-secondary ms-auto"})]})})}),i[0]=e):e=i[0],e}e.s(["EctoLoggedOutSidebar",0,function(e){let i,a,o,c,d,u=(0,n.c)(8),{banners:m}=e,{state:f,isMobile:h}=(0,s.useEctoSidebar)(),p="collapsed"===f&&!h;u[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)(g,{}),u[0]=i):i=u[0];let b=!p&&m;u[1]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)(S,{}),u[1]=a):a=u[1];let _=p?"hidden":void 0;return u[2]!==_?(o=(0,t.jsxs)(r.Flexbox,{gap:6,className:"ps-3 pe-1",direction:"column",grow:1,children:[a,(0,t.jsx)(l.SidebarContent,{className:_})]}),u[2]=_,u[3]=o):o=u[3],u[4]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)(H,{}),u[4]=c):c=u[4],u[5]!==b||u[6]!==o?(d=(0,t.jsxs)(l.Sidebar,{children:[i,b,o,c]}),u[5]=b,u[6]=o,u[7]=d):d=u[7],d}],996703)}]); //# debugId=cff573fc-9085-20dc-c277-88d2bd949063