;!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]="1b654603-f7e6-9313-518c-180810bb1d2b")}catch(e){}}(); (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,895610,e=>{"use strict";var t=e.i(733783),n=e.i(908464),a=e.i(601461),i=e.i(237334),r=e.i(840387),l=e.i(405359);(0,r.createClientLogger)("useRouteTracePolicy"),e.s(["default",0,function(e){var r;let o,s,c,u=(0,n.c)(7),{children:d}=e,m=(0,i.useCurrentPathname)();u[0]!==m?(r=m,o=function(e){for(let t=e.length-1;t>=0;t--){let n=e[t],a=n?.route.tracePolicy;if(a)return a}return null}((0,l.matchRoutes)(r)??[]),u[0]=m,u[1]=o):o=u[1];let g=o;u[2]!==g?(s={tracePolicy:g},u[2]=g,u[3]=s):s=u[3];let f=s;return u[4]!==d||u[5]!==f?(c=(0,t.jsx)(a.default.Provider,{value:f,children:d}),u[4]=d,u[5]=f,u[6]=c):c=u[6],c}])},595497,e=>{"use strict";var t=e.i(733783),n=e.i(908464),a=e.i(330843),i=e.i(405359),r=e.i(127750),l=e.i(116156),o=e.i(772477),s=e.i(472361),c=e.i(111525);let u={isIntercepted:!1};e.s(["NavigationRouteContextProvider",0,function(e){let d,m,g,f,p,h,_=(0,n.c)(29),{children:y}=e,S=(0,c.useIsRouteIntercepted)(),v=(0,r.useWindowPathname)(),b=(0,l.useWindowSearch)(),k=(0,o.usePathname)(),E=(0,s.useRef)(k),C=(0,o.useParams)(),x=(0,s.useRef)(C),I=(0,o.useSearchParams)(),P=(0,s.useRef)(I);_[0]!==C||_[1]!==k||_[2]!==I?(d=()=>{E.current=k,x.current=C,P.current=I},_[0]=C,_[1]=k,_[2]=I,_[3]=d):d=_[3],(0,s.useEffect)(d),_[4]!==C||_[5]!==k||_[6]!==I||_[7]!==v||_[8]!==b?(m={pathname:v,search:b,nextPathname:k,nextParams:C,nextSearchParams:I},_[4]=C,_[5]=k,_[6]=I,_[7]=v,_[8]=b,_[9]=m):m=_[9];let[A,T]=(0,s.useState)(m);_[10]!==S||_[11]!==v||_[12]!==b?(g=()=>{S||T({pathname:v,search:b,nextPathname:E.current,nextParams:x.current,nextSearchParams:P.current})},f=[S,v,b],_[10]=S,_[11]=v,_[12]=b,_[13]=g,_[14]=f):(g=_[13],f=_[14]),(0,s.useEffect)(g,f);e:{let e,t,n;if(!S){p=u;break e}let{pathname:a,search:r,nextPathname:l,nextParams:s,nextSearchParams:c}=A;_[15]!==a?(e=function(e){let t=(0,i.matchRoutes)(e);if(!t)return{};let n=t.reduce((e,t)=>({...e,...t.params}),{});return n.username&&(n.username=n.username.replace(/^@/,"")),n}(a),_[15]=a,_[16]=e):e=_[16];let d=e;_[17]!==r?(t=new o.ReadonlyURLSearchParams(r),_[17]=r,_[18]=t):t=_[18];let m=t;_[19]!==s||_[20]!==l||_[21]!==c||_[22]!==d||_[23]!==a||_[24]!==m?(n={isIntercepted:!0,pathname:a,nextPathname:l,params:d,nextParams:s,searchParams:m,nextSearchParams:c},_[19]=s,_[20]=l,_[21]=c,_[22]=d,_[23]=a,_[24]=m,_[25]=n):n=_[25],p=n}let R=p;return _[26]!==y||_[27]!==R?(h=(0,t.jsx)(a.NavigationRouteContext.Provider,{value:R,children:y}),_[26]=y,_[27]=R,_[28]=h):h=_[28],h}])},692498,e=>{"use strict";var t=e.i(908464),n=e.i(472361),a=e.i(615537),i=e.i(377423),r=e.i(857311);e.s(["EctoMinimalLayoutAnalyticsBootstrap",0,function(e){let l,o,s,c=(0,t.c)(5),{disabled:u}=e,d=void 0!==u&&u;c[0]!==d?(l=()=>{if(d){(0,i.disableAnalyticsLogging)(),(0,r.disableSnaplLogging)();return}(0,i.initLoggingInterval)(),(0,a.initAppSession)()},c[0]=d,c[1]=l):l=c[1];let m=(0,n.useEffectEvent)(l);return c[2]!==m?(o=()=>{m()},c[2]=m,c[3]=o):o=c[3],c[4]===Symbol.for("react.memo_cache_sentinel")?(s=[],c[4]=s):s=c[4],(0,n.useEffect)(o,s),null}])},384270,e=>{"use strict";var t=e.i(733783),n=e.i(472361),a=e.i(8864),i=e.i(451347),r=e.i(816643),l=e.i(900893);e.s(["MotionConfig",0,function({children:e,isValidProp:o,...s}){o&&(0,r.loadExternalIsValidProp)(o);let c=(0,n.useContext)(i.MotionConfigContext);(s={...c,...s}).transition=(0,a.resolveTransition)(s.transition,c.transition),s.isStatic=(0,l.useConstant)(()=>s.isStatic);let u=(0,n.useMemo)(()=>s,[JSON.stringify(s.transition),s.transformPagePoint,s.reducedMotion,s.skipAnimations]);return(0,t.jsx)(i.MotionConfigContext.Provider,{value:u,children:e})}])},866039,e=>{"use strict";var t=e.i(908464),n=e.i(472361),a=e.i(27292),i=e.i(365895),r=e.i(534883);e.s(["SentryEmployeeTag",0,function(){let e,l,o=(0,t.c)(3),s=(0,i.useMcBool)("caed903e",!1);return o[0]!==s?(e=()=>{a.setTag(r.IS_EMPLOYEE_TAG,s?"true":"false")},l=[s],o[0]=s,o[1]=e,o[2]=l):(e=o[1],l=o[2]),(0,n.useEffect)(e,l),null}])},374476,e=>{"use strict";var t=e.i(733783),n=e.i(908464),a=e.i(482281);e.s(["DeviceMemoryProvider",0,function(e){let i,r=(0,n.c)(3),{children:l,deviceMemoryGiB:o}=e;return r[0]!==l||r[1]!==o?(i=(0,t.jsx)(a.DeviceMemoryContext.Provider,{value:o,children:l}),r[0]=l,r[1]=o,r[2]=i):i=r[2],i}])},75238,e=>{"use strict";var t=e.i(733783),n=e.i(908464),a=e.i(425280),i=e.i(954405);e.s(["default",0,function(e){let r,l=(0,n.c)(2),{children:o}=e;return l[0]!==o?(r=(0,t.jsx)(a.default.Provider,{value:i.default,children:o}),l[0]=o,l[1]=r):r=l[1],r}])},19974,e=>{"use strict";var t=e.i(733783),n=e.i(908464),a=e.i(365895);e.s(["MetaConfigProvider",0,function(e){let i,r=(0,n.c)(3),{children:l,flagsPromise:o}=e;return r[0]!==l||r[1]!==o?(i=(0,t.jsx)(a.MetaConfigContext.Provider,{value:o,children:l}),r[0]=l,r[1]=o,r[2]=i):i=r[2],i}])},468039,e=>{"use strict";var t=e.i(733783),n=e.i(908464),a=e.i(472361);let i=(0,a.createContext)({consentStatus:null,setConsentStatus:()=>{}});e.s(["ConsentStatusClientProvider",0,function(e){let r,l,o,s=(0,n.c)(6),{children:c,consentStatus:u}=e,[d,m]=(0,a.useState)(u);s[0]===Symbol.for("react.memo_cache_sentinel")?(r=e=>{m(e)},s[0]=r):r=s[0];let g=r;return s[1]!==d?(l={consentStatus:d,setConsentStatus:g},s[1]=d,s[2]=l):l=s[2],s[3]!==c||s[4]!==l?(o=(0,t.jsx)(i.Provider,{value:l,children:c}),s[3]=c,s[4]=l,s[5]=o):o=s[5],o},"useConsentStatus",0,function(){return(0,a.useContext)(i)}])},617826,e=>{"use strict";var t,n;let a={fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"usePendingConversationReconcileQuery",selections:[{alias:null,args:t=[{kind:"Literal",name:"first",value:40},{kind:"Literal",name:"pinned",value:!1}],concreteType:"ConversationConnection",kind:"LinkedField",name:"conversations",plural:!1,selections:[{alias:null,args:null,concreteType:"ConversationEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"Conversation",kind:"LinkedField",name:"node",plural:!1,selections:[n={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"EctoConversationListRouter_conversations"}],storageKey:null}],storageKey:"conversations(first:40,pinned:false)"}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"usePendingConversationReconcileQuery",selections:[{alias:null,args:t,concreteType:"ConversationConnection",kind:"LinkedField",name:"conversations",plural:!1,selections:[{alias:null,args:null,concreteType:"ConversationEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"Conversation",kind:"LinkedField",name:"node",plural:!1,selections:[n,{alias:null,args:null,kind:"ScalarField",name:"updatedAt",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:"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}]},{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:"conversations(first:40,pinned:false)"}]},params:{id:"c13e802a2d789707dc35a950b6ffad00",metadata:{},name:"usePendingConversationReconcileQuery",operationKind:"query",text:null}};a.hash="f73fedb48ef5e5a076e34a92847097a0",e.s(["default",0,a])},200076,e=>{"use strict";var t,n;let a={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"id"}],kind:"Fragment",metadata:null,name:"usePendingConversationReconcileViewerActionsQuery",selections:n=[{alias:null,args:[{kind:"Variable",name:"id",variableName:"id"}],concreteType:"Conversation",kind:"LinkedField",name:"conversation",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"viewerActions",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"viewerActionsLive",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"snapshotId",storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"usePendingConversationReconcileViewerActionsQuery",selections:n},params:{id:"526f609db8dcba75dabaaeb170268907",metadata:{},name:"usePendingConversationReconcileViewerActionsQuery",operationKind:"query",text:null}};a.hash="2b40efb3bcf3a3f17e91c4f60b648dc0",e.s(["default",0,a])},857805,729075,968626,559928,305307,606143,908817,183222,389246,30752,e=>{"use strict";var t=e.i(908464),n=e.i(472361),a=e.i(377423),i=e.i(954405),r=e.i(857311),l=e.i(840387),o=e.i(527357),s=e.i(237334),c=e.i(772477),u=e.i(111525),d=e.i(1128),m=e.i(299168),g=e.i(551349),f=e.i(615537),p=e.i(66879);function h(e){e.setAnnotation("uri",window.location.href);let t=(0,d.getReferrer)();t&&e.setAnnotation("referrer",t),e.setAnnotation("user_agent",navigator.userAgent),e.setAnnotationInt("viewport_width",window.innerWidth),e.setAnnotationInt("viewport_height",window.innerHeight)}(0,l.createClientLogger)("useNavigationLogger"),e.s(["useNavigationLogger",0,function(){let e,l,d,_,y,S=(0,t.c)(15),v=(0,s.useCurrentPathname)(),b=(0,c.usePathname)(),k=(0,m.usePageTracePolicy)(),{isPending:E}=(0,o.useNavigate)(),{addEvent:C}=(0,g.useLoggingDebug)(),x=(0,u.useIsRouteIntercepted)(),I=(0,n.useRef)(b);S[0]!==x||S[1]!==b?(e=()=>({nextJsPathname:b,isIntercepted:x}),S[0]=x,S[1]=b,S[2]=e):e=S[2];let P=(0,n.useEffectEvent)(e),A=(0,n.useRef)(null),T=(0,n.useRef)(!0),R=(0,n.useRef)(null);S[3]!==E?(l=()=>{E&&null===R.current&&(R.current=performance.now())},d=[E],S[3]=E,S[4]=l,S[5]=d):(l=S[4],d=S[5]),(0,n.useEffect)(l,d),S[6]!==C||S[7]!==v||S[8]!==P||S[9]!==k?(_=()=>{if(!k)return;let{nextJsPathname:e,isIntercepted:t}=P(),n=Date.now();if(T.current){if((0,a.initLoggingInterval)(),(0,r.initSnaplBuffer)(),(0,f.initAppSession)(),T.current=!1,i.initialLoadSingleton.hasInitialLoadStarted()){i.initialLoadSingleton.setAnnotation("pathname",v),i.initialLoadSingleton.setTracePolicy(k),i.initialLoadSingleton.setAnnotationInt("timestamp",n),i.initialLoadSingleton.setAnnotation("navigation_type","initial");let e=Math.round(performance.now());i.initialLoadSingleton.setAnnotationInt("duration_ms",e),h(i.initialLoadSingleton),i.initialLoadSingleton.markReadyToComplete()}i.initialLoadSingleton.addPoint("REACT_MOUNT"),C({type:"navigation",eventName:"initial_load",actionTarget:v,targetArea:k}),A.current={pathname:v,tracePolicy:k,timestamp:n},R.current=null}else if(A.current&&A.current.pathname!==v){(0,p.onNavigationChange)(v);let a=0;null!==R.current&&(a=Math.round(performance.now()-R.current)),i.navigationSingleton.startNavigation(k,A.current.pathname,v),i.navigationSingleton.setAnnotation("pathname",v),i.navigationSingleton.setAnnotationInt("timestamp",n),i.navigationSingleton.setAnnotation("navigation_type","client"),i.navigationSingleton.setAnnotation("is_intercepted",t?"true":"false"),i.navigationSingleton.setAnnotationInt("duration_ms",a),A.current.tracePolicy&&i.navigationSingleton.setAnnotation("previous_trace_policy",A.current.tracePolicy),h(i.navigationSingleton),i.navigationSingleton.addPoint("REACT_RENDER"),i.navigationSingleton.setAnnotationInt("react_render_ms",a),C({type:"navigation",eventName:I.current===e?"soft":"hard",actionTarget:v,targetArea:k,duration:a,metadata:{from:A.current.pathname,to:v}}),I.current=e,A.current={pathname:v,tracePolicy:k,timestamp:n},R.current=null}else A.current&&(A.current.tracePolicy=k)},S[6]=C,S[7]=v,S[8]=P,S[9]=k,S[10]=_):_=S[10],S[11]!==C||S[12]!==v||S[13]!==k?(y=[v,k,C],S[11]=C,S[12]=v,S[13]=k,S[14]=y):y=S[14],(0,n.useLayoutEffect)(_,y)}],857805);var _=e.i(865057),y=e.i(855367),S=e.i(127654);let v='[data-slot="skeleton"]';function b(e){try{e.disconnect()}catch{}}e.s(["useWebVitals",0,function(){(0,_.useInitialLoadVitals)(),function(){let e,r,l,o,c,u,d,m,f,p=(0,t.c)(15),h=(0,s.useCurrentPathname)(),{addEvent:_}=(0,g.useLoggingDebug)(),k=(0,n.useRef)(_),{startNavigationTracking:E,captureNavigationCacheStats:C}=(0,S.useJSCacheStats)(),x=(0,n.useRef)(C);p[0]!==_||p[1]!==C?(e=()=>{k.current=_,x.current=C},p[0]=_,p[1]=C,p[2]=e):e=p[2],(0,n.useEffect)(e),p[3]!==E?(r=()=>E(),p[3]=E,p[4]=r):r=p[4];let I=(0,n.useEffectEvent)(r),P=(0,n.useRef)(!1),A=(0,n.useRef)(null),T=(0,n.useRef)(null),R=(0,n.useRef)(null);p[5]===Symbol.for("react.memo_cache_sentinel")?(l=[],p[5]=l):l=p[5];let L=(0,n.useRef)(l),w=(0,n.useRef)(null),O=(0,n.useRef)(null),j=(0,n.useRef)(0),N=(0,n.useRef)(!1),F=(0,n.useRef)(0),D=(0,n.useRef)(0),K=(0,n.useRef)(0),M=(0,n.useRef)(!1),B=(0,n.useRef)(null),U=(0,n.useRef)(null),V=(0,n.useRef)(0);p[6]===Symbol.for("react.memo_cache_sentinel")?(o=e=>{if(!i.navigationSingleton.hasActiveNavigation()||M.current)return;M.current=!0;let t=i.navigationSingleton.getCurrentNavigation();if(!t)return;let n=Date.now()-t.startTime;if(i.navigationSingleton.addPoint("CONTENT_READY"),i.navigationSingleton.setAnnotationInt("content_ready_ms",n),i.navigationSingleton.setAnnotation("completion_source",e),i.navigationSingleton.setAnnotationInt("mutation_count",F.current),null!==B.current){let e=B.current-V.current;i.navigationSingleton.setAnnotationInt("first_mutation_ms",Math.round(e))}if(null!==B.current&&null!==U.current){let e=U.current-B.current;i.navigationSingleton.setAnnotationInt("mutations_duration_ms",Math.round(e))}j.current>0&&i.navigationSingleton.setAnnotationDouble("cls",j.current),D.current>0&&(i.navigationSingleton.setAnnotationInt("long_task_count",D.current),i.navigationSingleton.setAnnotationInt("long_task_total_ms",Math.round(K.current)));let a=x.current();a&&(i.navigationSingleton.setAnnotationInt("js_cache_total_bytes",a.totalBytes),i.navigationSingleton.setAnnotationInt("js_cache_cached_bytes",a.cachedBytes),i.navigationSingleton.setAnnotationInt("js_cache_network_bytes",a.networkBytes),i.navigationSingleton.setAnnotationDouble("js_cache_rate",a.cacheRate),i.navigationSingleton.setAnnotationInt("js_cache_resource_count",a.resourceCount),i.navigationSingleton.setAnnotationInt("js_cache_cached_count",a.cachedCount)),k.current({type:"navigation",eventName:"dom_settled",actionTarget:t.getAnnotation("pathname"),targetArea:e,duration:n,metadata:{content_ready_ms:n,mutation_count:F.current,...null!==B.current&&{first_mutation_ms:Math.round(B.current-V.current)},...null!==B.current&&null!==U.current&&{mutations_duration_ms:Math.round(U.current-B.current)},...D.current>0&&{long_task_count:D.current,long_task_total_ms:Math.round(K.current)},...j.current>0&&{cls:j.current},has_lcp:N.current}}),i.navigationSingleton.completeNavigation()},p[6]=o):o=p[6];let Y=o;p[7]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{null!==w.current&&(clearTimeout(w.current),w.current=null),T.current&&(T.current(),T.current=null),R.current=null,O.current&&(O.current(),O.current=null),L.current.forEach(b),L.current=[],j.current=0,N.current=!1,F.current=0,D.current=0,K.current=0,M.current=!1,B.current=null,U.current=null,V.current=0},p[7]=c):c=p[7];let W=c;p[8]===Symbol.for("react.memo_cache_sentinel")?(u=()=>{null!==w.current&&clearTimeout(w.current),w.current=setTimeout(()=>{let e=R.current?.getMatchInViewport(v)??null;if(e){if(i.navigationSingleton.hasActiveNavigation()&&!M.current){i.navigationSingleton.setAnnotationInt("skeleton_blocked_settle",1);let t=e.closest("[data-skeleton-region]")?.getAttribute("data-skeleton-region")??"unknown";if(i.navigationSingleton.setAnnotation("skeleton_blocker",t),"unknown"===t){let t=e.getAttribute("class")??"";t&&i.navigationSingleton.setAnnotation("skeleton_blocker_class",t.slice(0,100))}}return}i.navigationSingleton.hasActiveNavigation()&&!M.current&&(Y(N.current?"dom_settle_with_lcp":"dom_settle"),W())},150)},p[8]=u):u=p[8];let z=u;p[9]===Symbol.for("react.memo_cache_sentinel")?(d=(e,t,n)=>{let a=PerformanceObserver.supportedEntryTypes;if(!a||!a.includes(t))return null;try{let a=new PerformanceObserver(e);return a.observe({type:t,buffered:void 0!==n&&n}),L.current.push(a),a}catch{return null}},p[9]=d):d=p[9];let G=d;p[10]!==h||p[11]!==I?(m=()=>{P.current||(P.current=!0,A.current=h);let e=(0,a.registerPreFlushCallback)(()=>{i.navigationSingleton.hasActiveNavigation()&&!M.current&&(j.current>0&&i.navigationSingleton.setAnnotationDouble("cls",j.current),i.navigationSingleton.setAnnotationInt("mutation_count",F.current),i.navigationSingleton.cancelNavigation())});if(A.current!==h){W(),V.current=Date.now(),I(),i.navigationSingleton.hasActiveNavigation()&&i.navigationSingleton.setAnnotationInt("was_backgrounded",+("hidden"===document.visibilityState));let e=()=>{"hidden"===document.visibilityState&&i.navigationSingleton.hasActiveNavigation()&&!M.current&&i.navigationSingleton.setAnnotationInt("was_backgrounded",1)};document.addEventListener("visibilitychange",e,{passive:!0}),O.current=()=>document.removeEventListener("visibilitychange",e);let{disconnect:t,tracker:n}=(0,y.createViewportMutationObserver)(()=>{let e=Date.now();F.current=F.current+1,null===B.current&&(B.current=e),U.current=e,i.navigationSingleton.hasActiveNavigation()&&!M.current&&(B.current===e&&i.navigationSingleton.setAnnotationInt("first_mutation_ms",Math.round(e-V.current)),i.navigationSingleton.setAnnotationInt("mutation_count",F.current)),z()});for(let e of(T.current=t,R.current=n,document.querySelectorAll(v)))n.observe(e,"skeleton");z(),G(e=>{for(let t of e.getEntries())!t.hadRecentInput&&t.value&&(j.current=j.current+t.value)},"layout-shift",!1),G(e=>{let t=e.getEntries(),n=t[t.length-1];if(n&&i.navigationSingleton.hasActiveNavigation()&&!M.current){let e=i.navigationSingleton.getCurrentNavigation();if(e){N.current=!0;let t=Date.now()-e.startTime;i.navigationSingleton.addPoint("LCP"),i.navigationSingleton.setAnnotationInt("lcp_ms",Math.round(t)),n.size&&i.navigationSingleton.setAnnotationInt("lcp_size",n.size),n.element?.tagName&&i.navigationSingleton.setAnnotation("lcp_element",n.element.tagName.toLowerCase()),z()}}},"largest-contentful-paint",!1),G(e=>{for(let t of e.getEntries())D.current=D.current+1,K.current=K.current+t.duration,z()},"longtask",!1),A.current=h}return()=>{W(),e()}},p[10]=h,p[11]=I,p[12]=m):m=p[12],p[13]!==h?(f=[h,W,G,z],p[13]=h,p[14]=f):f=p[14],(0,n.useLayoutEffect)(m,f)}()}],729075);var k=e.i(526796),E=e.i(408696),C=e.i(277162);let x=[],I=null,P=null,A=null;function T(e){1!==e.nodeType||null==I||I.has(e)||(x.push(new WeakRef(e)),I.add(e))}function R(){x=x.filter(e=>null!=e.deref())}var L=e.i(529146);let w={usedJSHeapSize:0,domElementCount:0,decodedImagePixels:0},O=null;function j(){let e=window.crashReport;return null!=e&&"function"==typeof e.initialize&&"function"==typeof e.set?e:null}async function N(e,t){if(await (!O&&(O=Promise.resolve().then(()=>e.initialize(1024)).then(()=>!0).catch(()=>!1)),O))for(let[n,a]of t)e.set(n,a)}e.s(["useWebMemoryLogging",0,function(){let e,a,i,r,l,o=(0,t.c)(10),s=(0,m.usePageTracePolicy)(),{isLoggedIn:c}=(0,k.useAuth)();o[0]!==c||o[1]!==s?(e=e=>{let t=j();if(!t)return;let n=function(e){if("u"{let e;if(!j())return;"u">typeof document&&"function"==typeof WeakRef&&"function"==typeof WeakSet&&"function"==typeof MutationObserver&&null==P&&(I=new WeakSet,(P=new MutationObserver(e=>{for(let t of e)t.removedNodes.forEach(T)})).observe(document.body,{childList:!0,subtree:!0}),A=setInterval(R,6e4));let t=setInterval(()=>u("interval"),null!=(e=(0,C.deviceMemoryGiB)())&&e<=4?1e4:3e4),n=()=>{"hidden"===document.visibilityState&&u("hidden")},a=()=>u("pagehide");return document.addEventListener("visibilitychange",n),window.addEventListener("pagehide",a),()=>{clearInterval(t),document.removeEventListener("visibilitychange",n),window.removeEventListener("pagehide",a),P?.disconnect(),P=null,null!=A&&(clearInterval(A),A=null),x=[],I=null,w={usedJSHeapSize:0,domElementCount:0,decodedImagePixels:0}}},o[3]=u,o[4]=a):a=o[4],o[5]===Symbol.for("react.memo_cache_sentinel")?(i=[],o[5]=i):i=o[5],(0,n.useEffect)(a,i),o[6]!==u?(r=()=>{u("navigation")},o[6]=u,o[7]=r):r=o[7],o[8]!==s?(l=[s],o[8]=s,o[9]=l):l=o[9],(0,n.useEffect)(r,l)}],968626);var F=e.i(733783),D=e.i(267989);e.s(["EctoNavigationProgressBar",0,function(){let e,n,a,i,r=(0,t.c)(7),{isPending:l}=(0,o.useNavigate)(),s=l?"ectoNavigationFadeIn":"none",c=l?"block":"none";return r[0]!==s||r[1]!==c?(e={backgroundColor:"var(--fill-blue)",opacity:0,animationDelay:"0.25s",animationDuration:"0.5s",animationFillMode:"both",animationName:s,animationTimingFunction:"ease-out",display:c},r[0]=s,r[1]=c,r[2]=e):e=r[2],r[3]===Symbol.for("react.memo_cache_sentinel")?(n=D.fbs._("Loading page",null,{hk:"1IHHHF"}),r[3]=n):n=r[3],r[4]===Symbol.for("react.memo_cache_sentinel")?(a=(0,F.jsx)("div",{className:"h-full w-full",style:{backgroundColor:"var(--fill-outline)",animationDuration:"2s",animationIterationCount:"infinite",animationName:"ectoNavigationPulse",animationTimingFunction:"ease-out"}}),r[4]=a):a=r[4],r[5]!==e?(i=(0,F.jsx)(F.Fragment,{children:(0,F.jsx)("div",{className:"fixed start-0 end-0 top-0 z-[999] h-1 w-full",style:e,role:"progressbar","aria-label":n,"aria-live":"polite",children:a})}),r[5]=e,r[6]=i):i=r[6],i}],559928);var K=e.i(481928),M=e.i(835917);e.s(["LoginLoadingProvider",0,function(e){let a,i,r,l=(0,t.c)(6),{children:o}=e,[s,c]=(0,n.useState)(null);l[0]===Symbol.for("react.memo_cache_sentinel")?(a=(0,M.v4)(),l[0]=a):a=l[0];let u=a;return l[1]!==s?(i={isLoading:s,setIsLoading:c,waterfallId:u},l[1]=s,l[2]=i):i=l[2],l[3]!==o||l[4]!==i?(r=(0,F.jsx)(K.LoginLoadingContext.Provider,{value:i,children:o}),l[3]=o,l[4]=i,l[5]=r):r=l[5],r}],305307);var B=e.i(235338),U=e.i(468039),V=e.i(392839),Y=e.i(326496);let W=e.r(893833);function z(){window.__REACT_INITIAL_RENDER_COMPLETE__=!0,window.dispatchEvent(new Event("react_initial_render_complete"))}e.s(["EctoConsentChecker",0,function(){let e,a,i=(0,t.c)(6),r=(0,B.useRelayEnvironment)(),{consentStatus:l,setConsentStatus:o}=(0,U.useConsentStatus)(),s=(0,V.useCookieMonster)(),c=(0,n.useRef)(!1);return i[0]!==l||i[1]!==s||i[2]!==r||i[3]!==o?(e=()=>{if(void 0!==s.readCookie(Y.DATR_COOKIE))return void s.assertConsent_ONLY_CALL_AFTER_VERIFYING_USER_CONSENT();if(null!==l){l.needs_cookie_consent||s.assertConsent_ONLY_CALL_AFTER_VERIFYING_USER_CONSENT();return}c.current||(c.current=!0,(0,B.fetchQuery)(r,W,{}).toPromise().then(async e=>{e&&(o({needs_cookie_consent:e.consentStatus.needsConsent,datr:e.consentStatus.datr}),e.consentStatus.needsConsent||await s.assertConsent_ONLY_CALL_AFTER_VERIFYING_USER_CONSENT())}))},a=[r,l,o,s],i[0]=l,i[1]=s,i[2]=r,i[3]=o,i[4]=e,i[5]=a):(e=i[4],a=i[5]),(0,n.useEffect)(e,a),null}],606143),e.s(["ReactInitialRenderProvider",0,function(e){let a,i=(0,t.c)(1),{children:r}=e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(a=[],i[0]=a):a=i[0],(0,n.useEffect)(z,a),r}],908817);let G=null,H=new Set;function Q(){for(let e of H)e()}function q(e){return H.add(e),()=>H.delete(e)}function $(){return G}function J(){return null}function X(){G=null,Q()}window.addEventListener("beforeinstallprompt",e=>{e.preventDefault(),G=e,Q()});var Z=e.i(457327);let ee=(0,n.createContext)({});e.s(["EctoPWAContextProvider",0,function(e){let a,i,r=(0,t.c)(5),{children:l}=e,o=(0,Z.useInteractionLoggerWithLazyData)();r[0]!==o?(a=e=>{o({actionTarget:"EctoPWAContextProvider",actionType:"click",eventName:"accepted"===e?"pwa_install":"pwa_dismiss"})},r[0]=o,r[1]=a):a=r[1];let s=function(e){var a;let i,r,l,o,s,c,u,d=(0,t.c)(16),m=(0,n.useSyncExternalStore)(q,$,J),[g,f]=(0,n.useState)(),{notify:p,subscribe:h}=(a="pwa_install_prompt",i="function"==typeof BroadcastChannel?new BroadcastChannel(a):null,{notify:e=>i?.postMessage(e),subscribe:e=>{function t({data:n}){e(n)}return i?.addEventListener("message",t),()=>{i?.removeEventListener("message",t),i?.close()}}});d[0]!==m||d[1]!==e?(r=()=>{m&&"prompt"in m&&(m.prompt(),m.userChoice.then(t=>{f(t.outcome),e?.(t.outcome)}))},d[0]=m,d[1]=e,d[2]=r):r=d[2];let _=r;d[3]!==p||d[4]!==e?(l=()=>{let t=function(){X(),f("accepted"),e?.("accepted"),p("accepted")};return window.addEventListener("appinstalled",t),()=>{window.removeEventListener("appinstalled",t)}},d[3]=p,d[4]=e,d[5]=l):l=d[5],d[6]!==p||d[7]!==e||d[8]!==h?(o=[e,p,h],d[6]=p,d[7]=e,d[8]=h,d[9]=o):o=d[9],(0,n.useEffect)(l,o),d[10]!==h?(s=()=>h(function(e){("accepted"===e||"dismissed"===e)&&(f(e),X())}),c=[h],d[10]=h,d[11]=s,d[12]=c):(s=d[11],c=d[12]),(0,n.useEffect)(s,c);let y=m&&"prompt"in m?_:null;return d[13]!==g||d[14]!==y?(u={outcome:g,showInstallPrompt:y},d[13]=g,d[14]=y,d[15]=u):u=d[15],u}(a);return r[2]!==l||r[3]!==s?(i=(0,F.jsx)(ee.Provider,{value:s,children:l}),r[2]=l,r[3]=s,r[4]=i):i=r[4],i}],183222);var et=e.i(620359),en=e.i(831213);e.s(["EctoAccessInterstitial",0,function(){let e,n=(0,t.c)(3),{isAccessAllowed:a,blockReason:i,tosRegion:r}=(0,et.useAccessGate)();return a||null===i?null:(n[0]!==i||n[1]!==r?(e=(0,F.jsx)(en.EctoErrorPageContent,{blockReason:i,tosRegion:r,containerClassName:"bg-bg-primary fixed inset-0 z-[9999] p-8 text-center"}),n[0]=i,n[1]=r,n[2]=e):e=n[2],e)}],389246);var ea=n,ei=e.i(590004),er=e.i(543655);function el(e){let n,r,l=(0,t.c)(3),{error:o}=e;return l[0]!==o?(n=()=>{let e=(0,ei.classifyFailureCause)(o);i.initialLoadSingleton.isInitialLoadCompleted()||(i.initialLoadSingleton.getInitialLoad()?.noteFailureCause(e),i.initialLoadSingleton.setAnnotation("error_message",o.message),i.initialLoadSingleton.setAnnotation("error_name",o.name),i.initialLoadSingleton.failInitialLoad()),i.navigationSingleton.hasActiveNavigation()&&(i.navigationSingleton.getCurrentNavigation()?.noteFailureCause(e),i.navigationSingleton.setAnnotation("error_message",o.message),i.navigationSingleton.setAnnotation("error_name",o.name),i.navigationSingleton.failNavigation()),(0,a.flushLogEvents)()},r=[o],l[0]=o,l[1]=n,l[2]=r):(n=l[1],r=l[2]),(0,ea.useEffect)(n,r),null}class eo extends ea.default.Component{state={hasError:!1,error:null};static getDerivedStateFromError(e){return{hasError:!0,error:e}}resetErrorBoundary=()=>{this.setState({hasError:!1,error:null})};render(){return this.state.hasError&&this.state.error?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(el,{error:this.state.error}),(0,F.jsx)(er.EctoErrorFallback,{error:this.state.error,reset:this.resetErrorBoundary})]}):this.props.children}}e.s(["MainContentErrorBoundary",0,eo],30752)},970106,e=>{"use strict";e.i(178414);var t=e.i(733783),n=e.i(908464),a=e.i(472361),i=e.i(823886),r=e.i(527357),l=e.i(907921),o=e.i(268261),s=e.i(59709),c=e.i(80241),u=e.i(267989);let d=(0,s.lazyPreloaded)(()=>e.A(703188).then(e=>({default:e.EctoCommandPalette})));function m(e){let i,s,m,f,p,h,_,y,S,v,b=(0,n.c)(17),{children:k}=e,[E,C]=(0,a.useState)(!1),{navigate:x}=(0,r.useNavigate)();b[0]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{C(!0)},b[0]=i):i=b[0];let I=i;return b[1]===Symbol.for("react.memo_cache_sentinel")?(s={key:"k",modifiers:{meta:!0}},m=()=>{C(g)},f={label:u.fbs._("Search",null,{hk:"4jqJ9Y"}),category:"navigation"},b[1]=s,b[2]=m,b[3]=f):(s=b[1],m=b[2],f=b[3]),(0,o.useKeyboardShortcut)("search",s,m,f),b[4]===Symbol.for("react.memo_cache_sentinel")?(p={key:"o",modifiers:{meta:!0,shift:!0}},b[4]=p):p=b[4],b[5]!==x?(h=()=>{C(!1),x("/")},b[5]=x,b[6]=h):h=b[6],b[7]===Symbol.for("react.memo_cache_sentinel")?(_={label:u.fbs._("New chat",null,{hk:"3RGL53"}),category:"navigation"},b[7]=_):_=b[7],(0,o.useKeyboardShortcut)("new-chat",p,h,_),b[8]!==E?(y={openSearchOrCompose:I,isOpen:E},b[8]=E,b[9]=y):y=b[9],b[10]!==E||b[11]!==x?(S=(0,t.jsx)(c.SSRSafe,{children:(0,t.jsx)(a.Suspense,{fallback:null,children:(0,t.jsx)(d,{open:E,onOpenChange:C,navigate:x})})}),b[10]=E,b[11]=x,b[12]=S):S=b[12],b[13]!==k||b[14]!==y||b[15]!==S?(v=(0,t.jsxs)(l.CommandPaletteContext.Provider,{value:y,children:[k,S]}),b[13]=k,b[14]=y,b[15]=S,b[16]=v):v=b[16],v}function g(e){return!e}var f=e.i(42961),p=e.i(824566),h=e.i(54530);let _=(0,a.lazy)(()=>e.A(586436).then(e=>({default:e.EctoKeyboardShortcutsDialog})));function y(e){let i,r,l,o,s,c,u,d,m,g,h,y,b,k,E,C,x=(0,n.c)(22),{children:I}=e;x[0]===Symbol.for("react.memo_cache_sentinel")?(i=new Map,x[0]=i):i=x[0];let P=(0,a.useRef)(i);x[1]===Symbol.for("react.memo_cache_sentinel")?(r=new Set,x[1]=r):r=x[1];let A=(0,a.useRef)(r),[T,R]=(0,a.useState)(!1);x[2]===Symbol.for("react.memo_cache_sentinel")?(l=()=>P.current,x[2]=l):l=x[2];let L=l;x[3]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{for(let e of A.current)e()},x[3]=o):o=x[3];let w=o;x[4]===Symbol.for("react.memo_cache_sentinel")?(s=e=>{P.current.set(e.id,e),w()},x[4]=s):s=x[4];let O=s;x[5]===Symbol.for("react.memo_cache_sentinel")?(c=e=>{P.current.delete(e),w()},x[5]=c):c=x[5];let j=c;x[6]===Symbol.for("react.memo_cache_sentinel")?(u=e=>(A.current.add(e),()=>{A.current.delete(e)}),x[6]=u):u=x[6];let N=u;x[7]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{R(!0)},x[7]=d):d=x[7];let F=d;x[8]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{R(!1)},x[8]=m):m=x[8];let D=m;x[9]===Symbol.for("react.memo_cache_sentinel")?(g=()=>{let e=e=>{if(e.defaultPrevented)return;let t=P.current,n=[];for(let a of t.values())!1!==a.enabled&&(0,p.matchesShortcut)(e,a.shortcut)&&n.push(a);if(0===n.length)return;n.sort(S);let a=(0,p.isEditableElement)(e.target);for(let t of n){let n=t.shortcut.modifiers.meta||t.shortcut.modifiers.ctrl||t.shortcut.modifiers.alt,i="escape"===t.shortcut.key.toLowerCase();if((!a||n||i)&&!1!==t.handler()){e.preventDefault(),e.stopPropagation();return}}};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},h=[],x[9]=g,x[10]=h):(g=x[9],h=x[10]),(0,a.useEffect)(g,h),x[11]!==T?(y={getShortcuts:L,register:O,unregister:j,subscribe:N,openDialog:F,closeDialog:D,isDialogOpen:T},x[11]=T,x[12]=y):y=x[12];let K=y;return x[13]===Symbol.for("react.memo_cache_sentinel")?(b=(0,t.jsx)(v,{}),x[13]=b):b=x[13],x[14]!==T?(k=T&&(0,t.jsx)(_,{isOpen:T,onClose:D}),x[14]=T,x[15]=k):k=x[15],x[16]!==k?(E=(0,t.jsx)(a.Suspense,{fallback:null,children:k}),x[16]=k,x[17]=E):E=x[17],x[18]!==I||x[19]!==K||x[20]!==E?(C=(0,t.jsxs)(f.KeyboardShortcutsContext.Provider,{value:K,children:[I,b,E]}),x[18]=I,x[19]=K,x[20]=E,x[21]=C):C=x[21],C}function S(e,t){return(0,p.getPriorityOrder)(e.priority)-(0,p.getPriorityOrder)(t.priority)}function v(){let e,t,i,r,l,s=(0,n.c)(8),{openDialog:c,register:d,unregister:m}=(0,h.useKeyboardShortcutRegistry)();return s[0]===Symbol.for("react.memo_cache_sentinel")?(e={key:"/",modifiers:{meta:!0}},s[0]=e):e=s[0],s[1]!==c?(t=()=>{c()},s[1]=c,s[2]=t):t=s[2],s[3]===Symbol.for("react.memo_cache_sentinel")?(i={label:u.fbs._("Keyboard shortcuts",null,{hk:"47j8YM"}),category:"general",priority:"high"},s[3]=i):i=s[3],(0,o.useKeyboardShortcut)("keyboard-shortcuts-dialog",e,t,i),s[4]!==d||s[5]!==m?(r=()=>(d({id:"slash-commands",shortcut:{key:"/",modifiers:{}},label:u.fbs._("Slash commands",null,{hk:"3cPhB"}),category:"composer",priority:"normal",handler:b,showInDialog:!0}),()=>m("slash-commands")),l=[d,m],s[4]=d,s[5]=m,s[6]=r,s[7]=l):(r=s[6],l=s[7]),(0,a.useEffect)(r,l),null}function b(){return!1}var k=e.i(365895),E=e.i(997478),C=e.i(314516),x=e.i(857805),I=e.i(729075),P=e.i(968626),A=e.i(559928),T=e.i(385790),R=e.i(595497),L=e.i(726756),w=e.i(93557),O=e.i(886449),j=e.i(369306),N=e.i(551349);function F(e){let i,r,l,o,s=(0,n.c)(11),{children:c}=e,{isEnabled:u,showClickOverlays:d,showImpressionOverlays:m}=(0,N.useLoggingDebug)(),[g,f]=(0,a.useState)(D),p=(0,a.useRef)(0);s[0]!==u||s[1]!==d||s[2]!==m?(i=e=>{let t="click"===e.type&&d,n="impression"===e.type&&m;if(!u||!t&&!n)return"";let a=`tracked-${p.current=p.current+1}`,i={...e,id:a};return f(e=>{let t=new Map(e);return t.set(a,i),t}),a},s[0]=u,s[1]=d,s[2]=m,s[3]=i):i=s[3];let h=i;s[4]===Symbol.for("react.memo_cache_sentinel")?(r=e=>{e&&f(t=>{let n=new Map(t);return n.delete(e),n})},s[4]=r):r=s[4];let _=r;s[5]!==h||s[6]!==g?(l={registerElement:h,unregisterElement:_,trackedElements:g},s[5]=h,s[6]=g,s[7]=l):l=s[7];let y=l;return s[8]!==c||s[9]!==y?(o=(0,t.jsx)(j.ClickTrackingRegistryContext.Provider,{value:y,children:c}),s[8]=c,s[9]=y,s[10]=o):o=s[10],o}function D(){return new Map}function K(e){let i,r,l,o,s,c,u=(0,n.c)(17),{children:d,isEnabled:m}=e,[g,f]=(0,a.useState)(!1),p=void 0!==m&&m||g,[h,_]=(0,a.useState)(!0);u[0]===Symbol.for("react.memo_cache_sentinel")?(i=[],u[0]=i):i=u[0];let[y,S]=(0,a.useState)(i),[v,b]=(0,a.useState)(!1),[k,E]=(0,a.useState)(!1),[C,x]=(0,a.useState)(!1),I=(0,a.useRef)(0);u[1]!==p?(r=e=>{if(!p)return;let t={...e,id:`evt-${I.current=I.current+1}`,timestamp:Date.now()};S(e=>[t,...e].slice(0,O.MAX_EVENTS))},u[1]=p,u[2]=r):r=u[2];let P=r;u[3]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{S([])},u[3]=l):l=u[3];let A=l;u[4]!==P||u[5]!==y||u[6]!==p||u[7]!==h||u[8]!==v||u[9]!==k||u[10]!==C?(o={isEnabled:p,setIsEnabled:f,isVisible:h,setIsVisible:_,events:y,addEvent:P,clearEvents:A,showClickOverlays:v,setShowClickOverlays:b,showImpressionOverlays:k,setShowImpressionOverlays:E,showVpvdOverlays:C,setShowVpvdOverlays:x},u[4]=P,u[5]=y,u[6]=p,u[7]=h,u[8]=v,u[9]=k,u[10]=C,u[11]=o):o=u[11];let T=o;return u[12]!==d?(s=(0,t.jsx)(F,{children:d}),u[12]=d,u[13]=s):s=u[13],u[14]!==T||u[15]!==s?(c=(0,t.jsx)(O.LoggingDebugContext.Provider,{value:T,children:s}),u[14]=T,u[15]=s,u[16]=c):c=u[16],c}var M=e.i(473381),B=e.i(235338),U=e.i(633903),V=e.i(851200),Y=e.i(887657);let W="EctoUnpinnedConversationsRouter_unpinnedConversations";var z=e.i(614536),G=e.i(945461),H=e.i(774789),Q=e.i(405359),q=e.i(188197),$=e.i(840387),J=e.i(79414);let X=(0,$.createClientLogger)("usePendingConversationReconcile"),Z=[1e3,1e3,2e3,3e3,5e3,8e3],ee=Z.length-1,et=e.r(617826),en=e.r(200076);function ea(){V.pendingStore.syncFromStorage(),(0,Y.reconcilePendingConversation)()}function ei(e){return"streaming"===e.status}function er(e){return"streamEnded"===e.status}function el(e){return"streaming"===e.status}function eo(e){return e.conversationId}function es(){return 0}function ec(){return!function(){let e,t,i,r,l,o,s,c=(0,n.c)(17),u=(0,B.useRelayEnvironment)(),{getActiveStream:d,reconnect:m,connectionState:g,unregisterConversationRequest:f}=(0,M.useDGWConnectionContext)(),p=(0,a.useSyncExternalStore)(Y.subscribeReconcile,Y.getReconcileEpoch,es),h=(0,a.useRef)(!1),_=(0,a.useRef)(!1),y=(0,a.useRef)(0);c[0]!==u?(e=async e=>{let t,n=V.pendingStore.getSnapshot().map(eo);if(0===n.length&&!h.current)return!1;let a=function(e,t){let n=new Set(t),a=[],i=new Set,r=e.getStore().getSource(),l=U.ConnectionHandler.getConnectionID(U.ROOT_ID,W,{pinned:!1}),o=r.get(l);if(null==o)return a;let s=o.edges?.__refs;if(null==s)return a;for(let e of s){let t=r.get(e)?.node?.__ref;null==t||!n.has(t)||i.has(t)||(i.add(t),a.push(t))}return a}(u,n);await V.pendingStore.confirmConversations(a,"connection");let i=new Set(a),r=n.filter(e=>!i.has(e));if(0===r.length&&!h.current)return!1;try{t=await (0,U.fetchQuery)(u,et,{},{fetchPolicy:"network-only"}).toPromise()}catch(e){return!0}if(e())return!1;let l=new Set;for(let e of t?.conversations?.edges??[]){let t=e?.node?.id;null!=t&&l.add(t)}let o=[...new Set(r.filter(e=>{var t;return l.has(e)&&(t=e,"cancelled"!==V.pendingStore.getStatus(t))}))],s=[];o.length>0&&(0,U.commitLocalUpdate)(u,e=>{let t=U.ConnectionHandler.getConnectionID(e.getRoot().getDataID(),W,{pinned:!1});if(e.get(t))for(let n of o){let a=e.get(n);null!=a&&function({store:e,conversationRecord:t,unpinnedConnectionId:n}){if(null==n)return!1;let a=e.get(n);if(null==a)return!1;let i=t.getDataID();if((a.getLinkedRecords("edges")??[]).some(e=>e?.getLinkedRecord("node")?.getDataID()===i))return!0;let r=U.ConnectionHandler.createEdge(e,a,t,"ConversationEdge");return U.ConnectionHandler.insertEdgeBefore(a,r),!0}({store:e,conversationRecord:a,unpinnedConnectionId:t})&&s.push(n)}}),h.current&&(h.current=!1,V.pendingStore.syncFromStorage()),await V.pendingStore.confirmConversations(s,"listing");for(let e of s)(0,U.fetchQuery)(u,en,{id:e},{fetchPolicy:"network-only"}).subscribe({error:t=>X.warn({error:t,conversationId:e},"Failed to refresh confirmed viewer actions")});return V.pendingStore.getSnapshot().length>0},c[0]=u,c[1]=e):e=c[1];let S=(0,a.useEffectEvent)(e);c[2]!==g||c[3]!==u||c[4]!==d||c[5]!==m||c[6]!==f?(t=async e=>{var t;let n,a,i=(t=window.location.pathname,n=(0,Q.matchRoutes)(t),a=n?.[n.length-1]??null,a?.route.id!==H.EctoRouteId.PROMPT?null:a.params.id??null);if(null==i)return!1;(0,G.applyFoldsFromExtraPrompts)(u,i,f);let r=V.pendingStore.getPendingMessages(i);if(0===r.length)return!1;let l=V.pendingStore.getPendingMessages(i).filter(el),o=r.filter(er);if(o.length>0&&!_.current){_.current=!0;try{await (0,z.reconcilePendingTurnsAgainstServer)(u,i,o,"conv_poll",f)}catch{}if(_.current=!1,e())return!1}if(0===l.length)return V.pendingStore.getPendingMessages(i).length>0;let s=d(i),c=null==s?1/0:Date.now()-s.lastChunkTimestamp;if(c<=q.CLIPPY_RECONCILE_TIMEOUT_MS)return!0;if(!_.current){_.current=!0;try{await (0,z.reconcilePendingTurnsAgainstServer)(u,i,l,"conv_poll",f)}catch{}if(_.current=!1,e())return!1}return!!V.pendingStore.getPendingMessages(i).some(ei)&&(null!=s&&c>q.CLIPPY_RECONNECT_TIMEOUT_MS&&"connected"===g&&Date.now()-y.current>q.RECONNECT_COOLDOWN_MS&&(y.current=Date.now(),(0,J.recordSessionLog)({cat:"recovery",event:"conv_poll_reconnect",level:"warn",conversationId:i,msg:"forcing DGW reconnect — turn still streaming after server reconcile",meta:{idleForMs:c}}),m()),!0)},c[2]=g,c[3]=u,c[4]=d,c[5]=m,c[6]=f,c[7]=t):t=c[7];let v=(0,a.useEffectEvent)(t);c[8]===Symbol.for("react.memo_cache_sentinel")?(i=[],c[8]=i):i=c[8],(0,a.useEffect)(ea,i),c[9]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{let e=()=>{h.current=!0,(0,Y.forceReconcile)()};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},l=[],c[9]=r,c[10]=l):(r=c[9],l=c[10]),(0,a.useEffect)(r,l),c[11]!==p||c[12]!==v||c[13]!==S?(o=()=>{if(0===p)return;let e=!1,t=0,n=null,a=async()=>{if(e||(await V.pendingStore.sweep(),e))return;let i=await S(()=>e);if(e)return;let r=await v(()=>e);!e&&(i||r)&&(n=setTimeout(()=>void a(),Z[t=Math.min(t+1,ee)]??8e3))};return n=setTimeout(()=>void a(),Z[t]??8e3),()=>{e=!0,null!=n&&clearTimeout(n)}},c[11]=p,c[12]=v,c[13]=S,c[14]=o):o=c[14],c[15]!==p?(s=[p],c[15]=p,c[16]=s):s=c[16],(0,a.useEffect)(o,s)}(),null}var eu=e.i(880689),ed=e.i(188258),em=e.i(305307),eg=e.i(774883),ef=e.i(799515),ep=e.i(606143),eh=e.i(908817),e_=e.i(183222),ey=e.i(992941),eS=e.i(147237),ev=e.i(895610),eb=e.i(389246),ek=e.i(620359),eE=e.i(30752),eC=e.i(529712);let ex=e.r(844600).LinkShimInfoProvider,eI=(0,a.lazy)(()=>e.A(778810).then(e=>({default:e.EctoOAuthSuccessOverlay})));function eP(e){let i,r,l,o,s,c,u,d,g=(0,n.c)(14),{children:f,sidebar:p,devtools:h}=e;return(0,x.useNavigationLogger)(),(0,I.useWebVitals)(),(0,P.useWebMemoryLogging)(),g[0]===Symbol.for("react.memo_cache_sentinel")?(i=[],g[0]=i):i=g[0],(0,a.useEffect)(eT,i),g[1]===Symbol.for("react.memo_cache_sentinel")?(r=[],g[1]=r):r=g[1],(0,a.useEffect)(eA,r),g[2]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)(A.EctoNavigationProgressBar,{}),g[2]=l):l=g[2],g[3]!==f?(o=(0,t.jsx)(eE.MainContentErrorBoundary,{children:(0,t.jsx)(a.Suspense,{fallback:null,children:f})}),g[3]=f,g[4]=o):o=g[4],g[5]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(eh.ReactInitialRenderProvider,{}),g[5]=s):s=g[5],g[6]!==o?(c=(0,t.jsxs)(C.Flexbox,{as:"main",direction:"column",grow:1,className:"relative overflow-hidden",children:[o,s]}),g[6]=o,g[7]=c):c=g[7],g[8]!==h?(u=(0,t.jsx)("div",{children:h}),g[8]=h,g[9]=u):u=g[9],g[10]!==p||g[11]!==c||g[12]!==u?(d=(0,t.jsx)(y,{children:(0,t.jsxs)(m,{children:[l,(0,t.jsxs)(C.Flexbox,{className:"h-dvh w-dvw overflow-hidden",children:[p,c,u]})]})}),g[10]=p,g[11]=c,g[12]=u,g[13]=d):d=g[13],d}function eA(){(0,E.primePreciseLocation)()}function eT(){(0,k.initExposureLogging)()}function eR(){(0,ey.initializeRelayDevSettings)()}e.s(["EctoRootLayout",0,function(e){let r,l,o,s,u,d,m,g,f,p,h=(0,n.c)(19),{children:_,sidebar:y,devtools:S,noCacheBypass:v}=e,b=(0,O.useIsLoggingDebugEnabled)();return h[0]===Symbol.for("react.memo_cache_sentinel")?(r=[],h[0]=r):r=h[0],(0,a.useEffect)(eR,r),h[1]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)(ec,{}),h[1]=l):l=h[1],h[2]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(c.SSRSafe,{children:(0,t.jsx)(i.EctoErrorBoundary,{fallback:null,children:(0,t.jsx)(a.Suspense,{fallback:null,children:(0,t.jsx)(ep.EctoConsentChecker,{})})})}),h[2]=o):o=h[2],h[3]!==_||h[4]!==S||h[5]!==y?(s=(0,t.jsx)(a.Suspense,{fallback:null,children:(0,t.jsx)(ef.BranchingProvider,{children:(0,t.jsx)(eg.VideoPollingProvider,{children:(0,t.jsx)(eP,{sidebar:y,devtools:S,children:_})})})}),h[3]=_,h[4]=S,h[5]=y,h[6]=s):s=h[6],h[7]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(c.SSRSafe,{children:(0,t.jsx)(i.EctoErrorBoundary,{fallback:null,children:(0,t.jsx)(a.Suspense,{fallback:null,children:(0,t.jsx)(eI,{})})})}),h[7]=u):u=h[7],h[8]!==s?(d=(0,t.jsxs)(ek.AccessGatedContent,{children:[o,s,u]}),h[8]=s,h[9]=d):d=h[9],h[10]===Symbol.for("react.memo_cache_sentinel")?(m=(0,t.jsx)(c.SSRSafe,{children:(0,t.jsx)(i.EctoErrorBoundary,{fallback:null,children:(0,t.jsx)(a.Suspense,{fallback:null,children:(0,t.jsx)(eb.EctoAccessInterstitial,{})})})}),h[10]=m):m=h[10],h[11]!==d?(g=(0,t.jsx)(e_.EctoPWAContextProvider,{children:(0,t.jsx)(L.BugnubDialogProvider,{children:(0,t.jsx)(w.StreamingMetricsProvider,{children:(0,t.jsx)(ex,{children:(0,t.jsxs)(M.DGWConnectionProvider,{children:[l,(0,t.jsx)(eu.EctoAskUserQuestionProvider,{children:(0,t.jsx)(em.LoginLoadingProvider,{children:(0,t.jsx)(ed.ConversationListDisplayProvider,{children:(0,t.jsxs)(eC.EctoConnectorStatusProvider,{children:[d,m]})})})})]})})})})}),h[11]=d,h[12]=g):g=h[12],h[13]!==v||h[14]!==g?(f=(0,t.jsx)(T.NavigationLoadingProvider,{children:(0,t.jsx)(R.NavigationRouteContextProvider,{children:(0,t.jsx)(ev.default,{children:(0,t.jsx)(eS.EctoPrefetchContextProvider,{prefetchDisabled:v,children:g})})})}),h[13]=v,h[14]=g,h[15]=f):f=h[15],h[16]!==b||h[17]!==f?(p=(0,t.jsx)(i.EctoErrorBoundary,{children:(0,t.jsx)(K,{isEnabled:b,children:f})}),h[16]=b,h[17]=f,h[18]=p):p=h[18],p}],970106)},14581,e=>{"use strict";var t,n,a;let i=(t={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},a=[n={alias:null,args:null,kind:"ScalarField",name:"tosRegion",storageKey:null}],{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"EctoBlockingDialogContextQuery",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"viewer",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"EctoBlockingDialogContext_viewer"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"EctoBlockingDialogContextQuery",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"viewer",plural:!1,selections:[t,{kind:"TypeDiscriminator",abstractKey:"__isIViewerContext"},n,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"blockingDialog",plural:!1,selections:[t,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"SocialProfilePrefilledInfo",kind:"LinkedField",name:"prefilledInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"profilePictureUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"source",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"ThreadMigrationInfo",kind:"LinkedField",name:"threadsToMigrate",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"threadCount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"savedCount",storageKey:null}],storageKey:null}],type:"NewUserCreateProfileDialog",abstractKey:null},{kind:"InlineFragment",selections:a,type:"NewUserTOSDialog",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"welcomeMessage",storageKey:null}],type:"NewUserWelcomeDialog",abstractKey:null},{kind:"InlineFragment",selections:a,type:"LoggedOutTOSDialog",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"_placeholder",storageKey:null}],type:"KRTOSLogoutRedirectDialog",abstractKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:"4029c9d068e0c10ae717a4cc4d9d157d",metadata:{},name:"EctoBlockingDialogContextQuery",operationKind:"query",text:null}});i.hash="1926ebeec38af974674e5cfebbf50d86",e.s(["default",0,i])},820745,e=>{"use strict";var t,n;let a=(n=[t={alias:null,args:null,kind:"ScalarField",name:"tosRegion",storageKey:null}],{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"EctoBlockingDialogContext_viewer",selections:[t,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"blockingDialog",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"SocialProfilePrefilledInfo",kind:"LinkedField",name:"prefilledInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"profilePictureUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"source",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"ThreadMigrationInfo",kind:"LinkedField",name:"threadsToMigrate",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"threadCount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"savedCount",storageKey:null}],storageKey:null}],type:"NewUserCreateProfileDialog",abstractKey:null},{kind:"InlineFragment",selections:n,type:"NewUserTOSDialog",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"welcomeMessage",storageKey:null}],type:"NewUserWelcomeDialog",abstractKey:null},{kind:"InlineFragment",selections:n,type:"LoggedOutTOSDialog",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"_placeholder",storageKey:null}],type:"KRTOSLogoutRedirectDialog",abstractKey:null}],storageKey:null}],type:"IViewerContext",abstractKey:"__isIViewerContext"});a.hash="6eb7591914a5fe891a6364a7d805189a",e.s(["default",0,a])},22645,e=>{"use strict";var t,n,a,i,r;let l={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"input"}],kind:"Fragment",metadata:null,name:"useCreateSocialProfileMutation",selections:[{alias:null,args:n=[{kind:"Variable",name:"input",variableName:"input"}],concreteType:null,kind:"LinkedField",name:"createSocialProfile",plural:!1,selections:[i={kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"MetaAIProfile",kind:"LinkedField",name:"socialProfile",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"socialProfileId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"biography",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"profilePictureUrl",storageKey:null}],storageKey:null},a={alias:null,args:null,concreteType:"CreateProfileValidationError",kind:"LinkedField",name:"validationErrors",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"field",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"code",storageKey:null}],storageKey:null}],type:"CreateSocialProfilePayload",abstractKey:null},r={kind:"InlineFragment",selections:[a],type:"CreateSocialProfileError",abstractKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"useCreateSocialProfileMutation",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"createSocialProfile",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},i,r],storageKey:null}]},params:{id:"2bda8ef5db9739242daa4830d6dde049",metadata:{},name:"useCreateSocialProfileMutation",operationKind:"mutation",text:null}};l.hash="02548c4265aeb3c1298aac4d9245ed4e",e.s(["default",0,l])},573795,895530,71013,296712,934949,463331,535703,e=>{"use strict";let t={blockingDialog:{query:e.i(14581).default,getVariables:()=>({})}};Object.values(t),e.s(["queryLoader",0,t],573795);let n=e.r(820745),a=e.r(14581);e.s(["BlockingDialogFragment",0,n,"BlockingDialogQuery",0,a],895530);var i,r=e.i(733783),l=e.i(267989),o=e.i(908464),s=e.i(448),c=e.i(898097),u=e.i(410241),d=e.i(632327);e.s(["EctoTOSDisclaimerROW",0,function(){let e,t=(0,o.c)(5),{links:n}=(0,u.useLocalizedSettingsLinks)(),{logNuxAITermsClick:a,logNuxAIAtMetaPrivacyClick:i}=(0,d.useTOSLinkClickLoggers)("EctoTOSDisclaimer_ROW");return t[0]!==n.AI_AT_META_PRIVACY||t[1]!==n.AI_TERMS||t[2]!==i||t[3]!==a?(e=(0,r.jsx)(c.Text,{as:"p",variant:"caption-1",color:"secondary",className:"text-pretty",children:l.fbt._("By tapping continue, you agree to these {=m2}. Your interactions with AIs will be used to improve {=m5}.",[l.fbt._implicitParam("=m2",(0,r.jsx)(s.EctoLink,{href:n.AI_TERMS,variant:"primary",textStyle:"caption-1",onClick:a,children:l.fbt._("terms and policies",null,{hk:"4kHE1b"})})),l.fbt._implicitParam("=m5",(0,r.jsx)(s.EctoLink,{href:n.AI_AT_META_PRIVACY,variant:"primary",textStyle:"caption-1",onClick:i,children:l.fbt._("AI at Meta",null,{hk:"qUgxC"})}))],{hk:"3icQym"})}),t[0]=n.AI_AT_META_PRIVACY,t[1]=n.AI_TERMS,t[2]=i,t[3]=a,t[4]=e):e=t[4],e}],71013),e.s(["EctoTOSDisclaimerEU",0,function(){let e,t,n,a,i=(0,o.c)(21),{links:m}=(0,u.useLocalizedSettingsLinks)(),{logNuxAITermsClick:g,logNuxPrivacyPolicyClick:f,logNuxPrivacyPolicyAIPartnersClick:p,logNuxLearnMoreAboutPrivacyPolicyClick:h,logNuxCookiesNoticeClick:_,logNuxObjectTOSLinkClick:y}=(0,d.useTOSLinkClickLoggers)("EctoTOSDisclaimer_EU");return i[0]!==m.LEARN_MORE_ABOUT_PRIVACY_POLICY||i[1]!==m.PRIVACY_POLICY_AI_PARTNERS||i[2]!==h||i[3]!==p?(e=(0,r.jsx)(c.Text,{as:"p",variant:"caption-1",color:"secondary",children:l.fbt._("Meta AI is an optional service from Meta that uses AI models to provide responses. Don't share information, including sensitive topics, about others or yourself that you don't want the AI to retain and use. We share information with select {=m2} so Meta AI can offer relevant responses. Messages are generated by AI. Some may be inaccurate or inappropriate. {=m6}",[l.fbt._implicitParam("=m2",(0,r.jsx)(s.EctoLink,{href:m.PRIVACY_POLICY_AI_PARTNERS,variant:"primary",textStyle:"caption-1",onClick:p,children:l.fbt._("partners",null,{hk:"3Mh1Vu"})})),l.fbt._implicitParam("=m6",(0,r.jsx)(s.EctoLink,{href:m.LEARN_MORE_ABOUT_PRIVACY_POLICY,variant:"primary",textStyle:"caption-1",onClick:h,children:l.fbt._("Learn more",null,{hk:"imx07"})}))],{hk:"30SenW"})}),i[0]=m.LEARN_MORE_ABOUT_PRIVACY_POLICY,i[1]=m.PRIVACY_POLICY_AI_PARTNERS,i[2]=h,i[3]=p,i[4]=e):e=i[4],i[5]!==m.COOKIES_NOTICE||i[6]!==_?(t=(0,r.jsx)(c.Text,{as:"p",variant:"caption-1",color:"secondary",children:l.fbt._("We use cookies that are essential to operate and provide our services. Learn more about our {=m2}.",[l.fbt._implicitParam("=m2",(0,r.jsx)(s.EctoLink,{href:m.COOKIES_NOTICE,variant:"primary",textStyle:"caption-1",onClick:_,children:l.fbt._("Cookies Notice",null,{hk:"SvSkL"})}))],{hk:"2R3u8A"})}),i[5]=m.COOKIES_NOTICE,i[6]=_,i[7]=t):t=i[7],i[8]!==m.AI_TERMS_EU||i[9]!==m.LEARN_MORE_ABOUT_PRIVACY_POLICY||i[10]!==m.OBJECT_TOS_LINK||i[11]!==m.PRIVACY_POLICY||i[12]!==g||i[13]!==h||i[14]!==y||i[15]!==f?(n=(0,r.jsx)(c.Text,{as:"p",variant:"caption-1",color:"secondary",children:l.fbt._("By using Meta AI, you agree to Meta's {=m2}. Your interactions with AIs will be used to improve {=m5}. Learn more about our {=m8} and your {=m12} to object.",[l.fbt._implicitParam("=m2",(0,r.jsx)(s.EctoLink,{href:m.AI_TERMS_EU,variant:"primary",textStyle:"caption-1",onClick:g,children:l.fbt._("AI terms",null,{hk:"3PBnnH"})})),l.fbt._implicitParam("=m5",(0,r.jsx)(s.EctoLink,{href:m.LEARN_MORE_ABOUT_PRIVACY_POLICY,variant:"primary",textStyle:"caption-1",onClick:h,children:l.fbt._("AI at Meta",null,{hk:"2TRphg"})})),l.fbt._implicitParam("=m8",(0,r.jsx)(s.EctoLink,{href:m.PRIVACY_POLICY,variant:"primary",textStyle:"caption-1",onClick:f,children:l.fbt._("Privacy Policy",null,{hk:"1pxtmM"})})),l.fbt._implicitParam("=m12",(0,r.jsx)(s.EctoLink,{href:m.OBJECT_TOS_LINK,variant:"primary",textStyle:"caption-1",onClick:y,children:l.fbt._("right",null,{hk:"1n9hll"})}))],{hk:"3lcNGv"})}),i[8]=m.AI_TERMS_EU,i[9]=m.LEARN_MORE_ABOUT_PRIVACY_POLICY,i[10]=m.OBJECT_TOS_LINK,i[11]=m.PRIVACY_POLICY,i[12]=g,i[13]=h,i[14]=y,i[15]=f,i[16]=n):n=i[16],i[17]!==e||i[18]!==t||i[19]!==n?(a=(0,r.jsxs)("div",{className:"space-y-4 text-pretty",children:[e,t,n]}),i[17]=e,i[18]=t,i[19]=n,i[20]=a):a=i[20],a}],296712),e.s(["EctoTOSDisclaimerUK",0,function(){let e,t,n,a,i=(0,o.c)(17),{links:m}=(0,u.useLocalizedSettingsLinks)(),{logNuxAITermsClick:g,logNuxAIAtMetaPrivacyClick:f,logNuxPrivacyPolicyClick:p,logNuxPrivacyPolicyAIPartnersClick:h,logNuxCookiesNoticeClick:_}=(0,d.useTOSLinkClickLoggers)("EctoTOSDisclaimer_UK");return i[0]!==m.AI_AT_META_PRIVACY||i[1]!==m.PRIVACY_POLICY||i[2]!==m.PRIVACY_POLICY_AI_PARTNERS||i[3]!==f||i[4]!==h||i[5]!==p?(e=(0,r.jsx)(c.Text,{as:"p",variant:"caption-1",color:"secondary",children:l.fbt._("Your messages with AIs will be used to improve AI at Meta. Don't share information, including sensitive topics, about others or yourself that you don't want the AI to retain and use. We {=m2} information with select partners so Meta AI can offer relevant responses. Learn more about our {=m6} and your {=m10}.",[l.fbt._implicitParam("=m2",(0,r.jsx)(s.EctoLink,{href:m.PRIVACY_POLICY_AI_PARTNERS,variant:"primary",textStyle:"caption-1",onClick:h,children:l.fbt._("share",null,{hk:"1UsRYQ"})})),l.fbt._implicitParam("=m6",(0,r.jsx)(s.EctoLink,{href:m.PRIVACY_POLICY,variant:"primary",textStyle:"caption-1",onClick:p,children:l.fbt._("Privacy Policy",null,{hk:"3S12hA"})})),l.fbt._implicitParam("=m10",(0,r.jsx)(s.EctoLink,{href:m.AI_AT_META_PRIVACY,variant:"primary",textStyle:"caption-1",onClick:f,children:l.fbt._("rights",null,{hk:"3petg1"})}))],{hk:"1APMTj"})}),i[0]=m.AI_AT_META_PRIVACY,i[1]=m.PRIVACY_POLICY,i[2]=m.PRIVACY_POLICY_AI_PARTNERS,i[3]=f,i[4]=h,i[5]=p,i[6]=e):e=i[6],i[7]!==m.COOKIES_NOTICE||i[8]!==_?(t=(0,r.jsx)(c.Text,{as:"p",variant:"caption-1",color:"secondary",children:l.fbt._("We use cookies that are essential to operate and provide our services. Learn more about our {=m2}.",[l.fbt._implicitParam("=m2",(0,r.jsx)(s.EctoLink,{href:m.COOKIES_NOTICE,variant:"primary",textStyle:"caption-1",onClick:_,children:l.fbt._("Cookies Notice",null,{hk:"SvSkL"})}))],{hk:"2R3u8A"})}),i[7]=m.COOKIES_NOTICE,i[8]=_,i[9]=t):t=i[9],i[10]!==m.AI_TERMS_UK||i[11]!==g?(n=(0,r.jsx)(c.Text,{as:"p",variant:"caption-1",color:"secondary",children:l.fbt._("By using Meta AI, you agree to Meta's {=m2}.",[l.fbt._implicitParam("=m2",(0,r.jsx)(s.EctoLink,{href:m.AI_TERMS_UK,variant:"primary",textStyle:"caption-1",onClick:g,children:l.fbt._("AI terms",null,{hk:"1x1ywt"})}))],{hk:"24dHbZ"})}),i[10]=m.AI_TERMS_UK,i[11]=g,i[12]=n):n=i[12],i[13]!==e||i[14]!==t||i[15]!==n?(a=(0,r.jsxs)("div",{className:"space-y-4 text-pretty",children:[e,t,n]}),i[13]=e,i[14]=t,i[15]=n,i[16]=a):a=i[16],a}],934949),e.s(["EctoTOSDisclaimerBR",0,function(){let e,t,n,a=(0,o.c)(15),{links:i}=(0,u.useLocalizedSettingsLinks)(),{logNuxAITermsClick:m,logNuxAIAtMetaPrivacyClick:g,logNuxPrivacyPolicyClick:f,logNuxPrivacyPolicyAIPartnersClick:p,logNuxObjectTOSLinkClick:h}=(0,d.useTOSLinkClickLoggers)("EctoTOSDisclaimer_BR");return a[0]!==i.AI_AT_META_PRIVACY||a[1]!==i.OBJECT_TOS_LINK||a[2]!==i.PRIVACY_POLICY||a[3]!==i.PRIVACY_POLICY_AI_PARTNERS||a[4]!==g||a[5]!==h||a[6]!==p||a[7]!==f?(e=(0,r.jsx)(c.Text,{as:"p",variant:"caption-1",color:"secondary",children:l.fbt._("Your messages with AIs will be used to improve AI at Meta. Don't share information, including sensitive topics, about others or yourself that you don't want the AI to retain and use. We {=m2} information with select partners so Meta AI can offer relevant responses. Learn more about our {=m6}, your {=m9} and how to {=m13}.",[l.fbt._implicitParam("=m2",(0,r.jsx)(s.EctoLink,{href:i.PRIVACY_POLICY_AI_PARTNERS,variant:"primary",textStyle:"caption-1",onClick:p,children:l.fbt._("share",null,{hk:"4aPTDW"})})),l.fbt._implicitParam("=m6",(0,r.jsx)(s.EctoLink,{href:i.PRIVACY_POLICY,variant:"primary",textStyle:"caption-1",onClick:f,children:l.fbt._("Privacy Policy",null,{hk:"1E6ewU"})})),l.fbt._implicitParam("=m9",(0,r.jsx)(s.EctoLink,{href:i.AI_AT_META_PRIVACY,variant:"primary",textStyle:"caption-1",onClick:g,children:l.fbt._("rights",null,{hk:"3AbsLu"})})),l.fbt._implicitParam("=m13",(0,r.jsx)(s.EctoLink,{href:i.OBJECT_TOS_LINK,variant:"primary",textStyle:"caption-1",onClick:h,children:l.fbt._("object",null,{hk:"31OYwS"})}))],{hk:"4AntYD"})}),a[0]=i.AI_AT_META_PRIVACY,a[1]=i.OBJECT_TOS_LINK,a[2]=i.PRIVACY_POLICY,a[3]=i.PRIVACY_POLICY_AI_PARTNERS,a[4]=g,a[5]=h,a[6]=p,a[7]=f,a[8]=e):e=a[8],a[9]!==i.AI_TERMS_BR||a[10]!==m?(t=(0,r.jsx)(c.Text,{as:"p",variant:"caption-1",color:"secondary",children:l.fbt._("By using Meta AI, you agree to Meta's {=m2}.",[l.fbt._implicitParam("=m2",(0,r.jsx)(s.EctoLink,{href:i.AI_TERMS_BR,variant:"primary",textStyle:"caption-1",onClick:m,children:l.fbt._("AI terms",null,{hk:"1x1ywt"})}))],{hk:"24dHbZ"})}),a[9]=i.AI_TERMS_BR,a[10]=m,a[11]=t):t=a[11],a[12]!==e||a[13]!==t?(n=(0,r.jsxs)("div",{className:"space-y-4 text-pretty",children:[e,t]}),a[12]=e,a[13]=t,a[14]=n):n=a[14],n}],463331);var m=((i={}).EU="EU",i.UK="UK",i.BR="BR",i.KR="KR",i.ROW="ROW",i);e.s(["TOSRegion",()=>m],535703)},716590,e=>{"use strict";var t,n,a,i,r,l,o;let s=(t=[{defaultValue:null,kind:"LocalArgument",name:"input"}],n=[{kind:"Variable",name:"input",variableName:"input"}],a={alias:null,args:null,kind:"ScalarField",name:"success",storageKey:null},i={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"reason",storageKey:null}],type:"MarkTOSAsAcceptedError",abstractKey:null},r={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},o=[l={alias:null,args:null,kind:"ScalarField",name:"tosRegion",storageKey:null}],{fragment:{argumentDefinitions:t,kind:"Fragment",metadata:null,name:"useAcceptTOSMutation",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"markTOSAsAccepted",plural:!1,selections:[{kind:"InlineFragment",selections:[a,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"viewer",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"EctoBlockingDialogContext_viewer"}],storageKey:null}],type:"MarkTOSAsAcceptedPayload",abstractKey:null},i],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"useAcceptTOSMutation",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"markTOSAsAccepted",plural:!1,selections:[r,{kind:"InlineFragment",selections:[a,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"viewer",plural:!1,selections:[r,{kind:"TypeDiscriminator",abstractKey:"__isIViewerContext"},l,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"blockingDialog",plural:!1,selections:[r,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"SocialProfilePrefilledInfo",kind:"LinkedField",name:"prefilledInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"profilePictureUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"source",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"ThreadMigrationInfo",kind:"LinkedField",name:"threadsToMigrate",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"threadCount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"savedCount",storageKey:null}],storageKey:null}],type:"NewUserCreateProfileDialog",abstractKey:null},{kind:"InlineFragment",selections:o,type:"NewUserTOSDialog",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"welcomeMessage",storageKey:null}],type:"NewUserWelcomeDialog",abstractKey:null},{kind:"InlineFragment",selections:o,type:"LoggedOutTOSDialog",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"_placeholder",storageKey:null}],type:"KRTOSLogoutRedirectDialog",abstractKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],type:"MarkTOSAsAcceptedPayload",abstractKey:null},i],storageKey:null}]},params:{id:"d23d76b0aabd36269d370dacabccd810",metadata:{},name:"useAcceptTOSMutation",operationKind:"mutation",text:null}});s.hash="0bb9c26c8779d66ca7139407a065ebf8",e.s(["default",0,s])},861825,e=>{"use strict";var t=e.i(733783),n=e.i(908464),a=e.i(235338),i=e.i(75736),r=e.i(573795),l=e.i(895530),o=e.i(267989),s=e.i(472361),c=e.i(516266),u=e.i(213434);e.i(935054);var d=e.i(461885),m=e.i(932281),g=e.i(314516),f=e.i(648570),p=e.i(839003),h=e.i(261205),_=e.i(986691),y=e.i(840387);let S=(0,y.createClientLogger)("useCreateSocialProfile");function v(e){return{field:e.field??"",message:e.message??"",code:e.code??null}}function b(e){return{field:e.field??"",message:e.message??"",code:e.code??null}}var k=e.i(940990),E=e.i(410241),C=e.i(457327),x=e.i(32772),I=e.i(27292);let P=(0,y.createClientLogger)("EctoCreateProfileDialog"),A=new Set(["FACEBOOK","INSTAGRAM"]);function T(i){let r,l,y,T,L,O,K,M,B,U,V,Y,W,z,G,H,Q,q,$,J,X,Z,ee,et,en,ea,ei,er,el,eo,es,ec,eu,ed,em=(0,n.c)(87),{prefilledInfo:eg,tosRegion:ef}=i,[ep,eh]=(0,s.useState)(eg?.username??""),[e_,ey]=(0,s.useState)(eg?.displayName??""),[eS,ev]=(0,s.useState)(eg?.profilePictureUrl??null),[eb,ek]=(0,s.useState)(null),eE=(0,s.useRef)(null);em[0]===Symbol.for("react.memo_cache_sentinel")?(r=[],em[0]=r):r=em[0];let[eC,ex]=(0,s.useState)(r);em[1]===Symbol.for("react.memo_cache_sentinel")?(l=new Set,em[1]=l):l=em[1];let[eI,eP]=(0,s.useState)(l),{links:eA,getAITermsLink:eT}=(0,E.useLocalizedSettingsLinks)(),{createSocialProfile:eR,validateProfileInput:eL,isLoading:ew}=function(){let t,i,r,l,o,c=(0,n.c)(10),[u,d]=(0,s.useState)(!1);c[0]===Symbol.for("react.memo_cache_sentinel")?(t=new Map,c[0]=t):t=c[0];let m=(0,s.useRef)(t);c[1]===Symbol.for("react.memo_cache_sentinel")?(i=e.r(22645),c[1]=i):i=c[1];let[g]=(0,a.useMutation)(i);c[2]!==g?(r=async e=>{let t=JSON.stringify({username:e.username,displayName:e.displayName??null,biography:e.biography??null,pictureSource:e.pictureSource??null}),n=m.current.get(t);return null!=n?n:new Promise(n=>{g({variables:{input:{username:e.username,displayName:e.displayName??null,biography:e.biography??null,pictureSource:e.pictureSource??null,socialProfileCreationSource:e.socialProfileCreationSource??null,validationOnly:!0}},onCompleted:e=>{let a=e.createSocialProfile,i=a?.validationErrors?.map(b)??[];m.current.set(t,i),n(i)},onError:t=>{S.error({error:t,input:e},"Validation error"),n([{field:"unknown",message:"Failed to validate. Please try again.",code:null}])}})})},c[2]=g,c[3]=r):r=c[3];let f=r;c[4]!==g?(l=(e,t,n)=>{d(!0),g({variables:{input:{username:e.username,displayName:e.displayName??null,biography:e.biography??null,pictureSource:e.pictureSource??null,socialProfileCreationSource:e.socialProfileCreationSource??"ECTO1",validationOnly:!1}},onCompleted:e=>{d(!1);let n=e.createSocialProfile;if(n?.validationErrors&&n.validationErrors.length>0){let e=n.validationErrors.map(v);t?.({socialProfileId:void 0,username:void 0,validationErrors:e})}else n?.socialProfile&&t?.({socialProfileId:n.socialProfile.socialProfileId??void 0,username:n.socialProfile.username??void 0,validationErrors:[]})},onError:t=>{d(!1),S.error({error:t,input:e},"Create profile error"),n?.(t)}})},c[4]=g,c[5]=l):l=c[5];let p=l;return c[6]!==p||c[7]!==u||c[8]!==f?(o={validateProfileInput:f,createSocialProfile:p,isLoading:u},c[6]=p,c[7]=u,c[8]=f,c[9]=o):o=c[9],o}(),{uploadFile:eO,isUploading:ej}=(0,k.useUploadProfilePicture)(),eN=(0,C.useInteractionLoggerWithLazyData)();em[2]!==eN||em[3]!==eg?(y=()=>{x.addBreadcrumb({category:"onboarding",message:"Profile creation dialog shown",data:{hasPrefilledInfo:!!eg,hasPrefilledUsername:!!eg?.username,hasPrefilledPicture:!!eg?.profilePictureUrl,source:eg?.source??null},level:"info"}),eN({eventName:"profile_creation_dialog_impression",actionTarget:"EctoCreateProfileDialog",actionType:"one_px_impression",metadata:{hasPrefilledInfo:!!eg,hasPrefilledUsername:!!eg?.username,hasPrefilledPicture:!!eg?.profilePictureUrl,source:eg?.source??null}})},T=[eg,eN],em[2]=eN,em[3]=eg,em[4]=y,em[5]=T):(y=em[4],T=em[5]),(0,s.useEffect)(y,T),em[6]===Symbol.for("react.memo_cache_sentinel")?(L=()=>{eE.current?.click()},em[6]=L):L=em[6];let eF=L;em[7]!==eO?(O=e=>{let t=e.target.files?.[0];if(!t)return;let n=URL.createObjectURL(t);ev(n),eO(t,e=>{ek(`FILEID:${e}`)},e=>{P.error({error:e},"Profile picture upload failed"),c.toast.error(e),ev(null),URL.revokeObjectURL(n)})},em[7]=eO,em[8]=O):O=em[8];let eD=O;if(em[9]!==eC){for(let e of(K={},eC))K[e.field]||(K[e.field]=e.message);em[9]=eC,em[10]=K}else K=em[10];let eK=K;em[11]!==ep||em[12]!==eL?(M=async()=>{if(eP(D),""===ep.trim())return;let e=await eL({username:ep.trim()});ex(t=>[...t.filter(F),...e.filter(N)])},em[11]=ep,em[12]=eL,em[13]=M):M=em[13];let eM=M,eB=eg?.profilePictureUrl,eU=eg?.source;em[14]!==eB||em[15]!==eU||em[16]!==eb?(B=()=>eb||(eB&&eU&&A.has(eU)?`IMPORT:${eU}`:void 0),em[14]=eB,em[15]=eU,em[16]=eb,em[17]=B):B=em[17];let eV=B;em[18]!==eR||em[19]!==e_||em[20]!==eV||em[21]!==eN||em[22]!==eg?.profilePictureUrl||em[23]!==eb||em[24]!==ep?(U=()=>{""===ep.trim()?ex([{field:"username",message:o.fbs._("Username is required",null,{hk:"3EGga7"}),code:null}]):(x.addBreadcrumb({category:"onboarding",message:"Profile creation attempted",data:{hasDisplayName:!!e_.trim(),hasPictureSource:!!eV(),pictureSourceType:eb?"upload":eg?.profilePictureUrl?"import":"none"},level:"info"}),eN({eventName:"profile_creation",actionTarget:"EctoCreateProfileDialog",actionType:"click",metadata:{hasDisplayName:!!e_.trim(),hasPictureSource:!!eV(),pictureSourceType:eb?"upload":eg?.profilePictureUrl?"import":"none"}}),eR({username:ep.trim(),displayName:e_.trim()||void 0,pictureSource:eV(),socialProfileCreationSource:"ECTO1"},e=>{if(e.validationErrors.length>0){x.addBreadcrumb({category:"onboarding",message:"Profile creation validation failed",data:{errorCount:e.validationErrors.length,fields:e.validationErrors.map(j)},level:"warning"}),ex(e.validationErrors);return}x.addBreadcrumb({category:"onboarding",message:"Profile created successfully",data:{username:e.username},level:"info"}),eN({eventName:"profile_creation_success",actionTarget:"EctoCreateProfileDialog",actionType:"click"}),c.toast.success(o.fbs._("Profile created successfully!",null,{hk:"1IYINH"})),window.location.reload()},e=>{x.addBreadcrumb({category:"onboarding",message:"Profile creation failed",level:"error"}),I.captureException(e,{tags:{feature:"onboarding",action:"profile_creation"},extra:{username:ep.trim()}}),P.error({error:e},"Failed to create profile"),c.toast.error(o.fbs._("Failed to create profile. Please try again.",null,{hk:"3ErqR8"}))}))},em[18]=eR,em[19]=e_,em[20]=eV,em[21]=eN,em[22]=eg?.profilePictureUrl,em[23]=eb,em[24]=ep,em[25]=U):U=em[25],eg?.profilePictureUrl;let eY=U;em[26]===Symbol.for("react.memo_cache_sentinel")?(V=e=>{eh(e.target.value),ex(w)},em[26]=V):V=em[26];let eW=V;em[27]===Symbol.for("react.memo_cache_sentinel")?(Y=e=>{ey(e.target.value),ex(R)},em[27]=Y):Y=em[27];let ez=Y;em[28]!==ej||em[29]!==ep||em[30]!==eC?(W=""===ep.trim()||eC.length>0||ej,em[28]=ej,em[29]=ep,em[30]=eC,em[31]=W):W=em[31];let eG=W;em[32]===Symbol.for("react.memo_cache_sentinel")?(z=(0,t.jsx)(u.DialogTitle,{children:o.fbt._("Review your Meta AI details",null,{hk:"23a588"})}),em[32]=z):z=em[32],em[33]===Symbol.for("react.memo_cache_sentinel")?(G=(0,t.jsxs)(u.DialogHeader,{children:[z,(0,t.jsx)(u.DialogDescription,{children:o.fbt._("Edit your username to get started.",null,{hk:"2OoiBR"})})]}),em[33]=G):G=em[33],em[34]!==eD?(H=(0,t.jsx)("input",{type:"file",ref:eE,onChange:eD,accept:"image/jpeg,image/png,image/gif,image/webp",className:"hidden","aria-hidden":"true"}),em[34]=eD,em[35]=H):H=em[35],em[36]===Symbol.for("react.memo_cache_sentinel")?(Q=o.fbs._("Upload profile picture",null,{hk:"6RCQt"}),em[36]=Q):Q=em[36];let eH=eS??void 0;em[37]!==ep?(q=ep||o.fbs._("User",null,{hk:"41nMHV"}),em[37]=ep,em[38]=q):q=em[38],em[39]!==eH||em[40]!==q?($=(0,t.jsx)(p.default,{imageUrl:eH,label:q,className:"text-title-2 h-[88px] w-[88px]"}),em[39]=eH,em[40]=q,em[41]=$):$=em[41],em[42]!==ej?(J=(0,t.jsx)("div",{className:"bg-bg-primary absolute end-0 bottom-0 flex h-7 w-7 items-center justify-center rounded-full shadow-md",children:ej?(0,t.jsx)(f.Spinner,{size:16}):(0,t.jsx)(_.default,{className:"text-text-primary h-4 w-4"})}),em[42]=ej,em[43]=J):J=em[43],em[44]!==ej||em[45]!==$||em[46]!==J?(X=(0,t.jsx)(g.Flexbox,{justifyContent:"center",children:(0,t.jsxs)("button",{type:"button",onClick:eF,className:"group relative cursor-pointer rounded-full",disabled:ej,"aria-label":Q,children:[$,J]})}),em[44]=ej,em[45]=$,em[46]=J,em[47]=X):X=em[47],em[48]===Symbol.for("react.memo_cache_sentinel")?(Z=o.fbs._("Username (Required)",null,{hk:"2cDbLA"}),em[48]=Z):Z=em[48],em[49]!==eK.username||em[50]!==eI?(ee=eI.has("username")&&!!eK.username,em[49]=eK.username,em[50]=eI,em[51]=ee):ee=em[51],em[52]!==eK.username||em[53]!==eI?(et=eI.has("username")&&eK.username?eK.username:void 0,em[52]=eK.username,em[53]=eI,em[54]=et):et=em[54],em[55]!==eM||em[56]!==ee||em[57]!==et||em[58]!==ep?(en=(0,t.jsx)(d.InputField,{label:Z,value:ep,onChange:eW,onBlur:eM,error:ee,caption:et,maxLength:30,minLength:3,autoFocus:!0,className:"dark:bg-fill-primary"}),em[55]=eM,em[56]=ee,em[57]=et,em[58]=ep,em[59]=en):en=em[59],em[60]===Symbol.for("react.memo_cache_sentinel")?(ea=o.fbs._("Name (Optional)",null,{hk:"1hgZRB"}),em[60]=ea):ea=em[60],em[61]===Symbol.for("react.memo_cache_sentinel")?(ei=o.fbs._("Add name",null,{hk:"41QTel"}),em[61]=ei):ei=em[61];let eQ=!!eK.display_name;em[62]!==e_||em[63]!==eK.display_name||em[64]!==eQ?(er=(0,t.jsx)(d.InputField,{label:ea,value:e_,onChange:ez,placeholder:ei,error:eQ,caption:eK.display_name,className:"dark:bg-fill-primary"}),em[62]=e_,em[63]=eK.display_name,em[64]=eQ,em[65]=er):er=em[65],em[66]!==en||em[67]!==er?(el=(0,t.jsxs)(g.Flexbox,{direction:"column",gap:4,children:[en,er]}),em[66]=en,em[67]=er,em[68]=el):el=em[68],em[69]!==X||em[70]!==el?(eo=(0,t.jsxs)(g.Flexbox,{direction:"column",gap:6,className:"py-4",children:[X,el]}),em[69]=X,em[70]=el,em[71]=eo):eo=em[71],em[72]!==eT||em[73]!==eA.AI_AT_META_PRIVACY||em[74]!==ef?(es=(0,t.jsx)("p",{className:"text-caption-1 text-text-secondary text-pretty",children:o.fbt._("By clicking Save, you agree to the {=m2}. Your interactions with AIs may be used to improve {=m5}.",[o.fbt._implicitParam("=m2",(0,t.jsx)(h.EctoAnchor,{href:eT(ef),className:"text-text-primary-link font-semibold hover:underline",children:o.fbt._("AI terms",null,{hk:"4Cig78"})})),o.fbt._implicitParam("=m5",(0,t.jsx)(h.EctoAnchor,{href:eA.AI_AT_META_PRIVACY,className:"text-text-primary-link font-semibold hover:underline",children:o.fbt._("AI at Meta",null,{hk:"vJFvM"})}))],{hk:"26urtE"})}),em[72]=eT,em[73]=eA.AI_AT_META_PRIVACY,em[74]=ef,em[75]=es):es=em[75],em[76]!==ew?(ec=ew?o.fbs._("Saving...",null,{hk:"2AGV8O"}):o.fbs._("Save",null,{hk:"1aRiIm"}),em[76]=ew,em[77]=ec):ec=em[77];let eq=eG||ew;return em[78]!==eY||em[79]!==ec||em[80]!==eq?(eu=(0,t.jsx)(g.Flexbox,{className:"pt-4",children:(0,t.jsx)(m.Button,{label:ec,variant:"primary",size:"36",onClick:eY,disabled:eq,className:"flex-1"})}),em[78]=eY,em[79]=ec,em[80]=eq,em[81]=eu):eu=em[81],em[82]!==H||em[83]!==eo||em[84]!==es||em[85]!==eu?(ed=(0,t.jsx)(u.Dialog,{open:!0,modal:!0,children:(0,t.jsxs)(u.DialogContent,{showCloseButton:!1,className:"sm:max-w-[480px]",header:G,children:[H,eo,es,eu]})}),em[82]=H,em[83]=eo,em[84]=es,em[85]=eu,em[86]=ed):ed=em[86],ed}function R(e){return e.filter(L)}function L(e){return"display_name"!==e.field}function w(e){return e.filter(O)}function O(e){return"username"!==e.field}function j(e){return e.field}function N(e){return"username"===e.field}function F(e){return"username"!==e.field}function D(e){return new Set(e).add("username")}var K=e.i(491864),M=e.i(71013),B=e.i(296712),U=e.i(934949),V=e.i(463331),Y=e.i(535703);let W=(0,y.createClientLogger)("useAcceptTOS");var z=e.i(369846),G=e.i(898251),H=e.i(272600),Q=e.i(422770),q=e.i(369835);function $(e){let a=(0,n.c)(4),{region:i}=e;switch(i){case Y.TOSRegion.EU:{let e;return a[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(B.EctoTOSDisclaimerEU,{}),a[0]=e):e=a[0],e}case Y.TOSRegion.UK:{let e;return a[1]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(U.EctoTOSDisclaimerUK,{}),a[1]=e):e=a[1],e}case Y.TOSRegion.BR:{let e;return a[2]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(V.EctoTOSDisclaimerBR,{}),a[2]=e):e=a[2],e}default:{let e;return a[3]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(M.EctoTOSDisclaimerROW,{}),a[3]=e):e=a[3],e}}}function J(i){let r,l,s,c,d,f,p,h,_,y,S=(0,n.c)(24),{tosRegion:v}=i,[b,k]=function(){let t,i,r,l=(0,n.c)(7);l[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.r(716590),l[0]=t):t=l[0];let[o,s]=(0,a.useMutation)(t),c=(0,C.useInteractionLoggerWithLazyData)();l[1]!==o||l[2]!==c?(i=(e,t,n)=>{o({variables:{input:{tosRegion:e}},onCompleted:a=>{let i=a.markTOSAsAccepted;if(i?.success)c({eventName:"nux_click",actionTarget:"useAcceptTOS",actionType:"click",clickItem:"accept_terms_only"}),t?.();else{let t=i?.reason??"Unknown error";W.error({reason:t,tosRegion:e},"Failed to accept TOS"),c({eventName:"nux_click",actionTarget:"useAcceptTOS",actionType:"click",clickItem:"accept_terms_only",metadata:{clickResult:"error"}}),n?.(Error(t))}},onError:t=>{W.error({error:t,tosRegion:e},"Error accepting TOS"),c({eventName:"nux_click",actionTarget:"useAcceptTOS",actionType:"click",clickItem:"accept_terms_only",metadata:{clickResult:"error"}}),n?.(t)}})},l[1]=o,l[2]=c,l[3]=i):i=l[3];let u=i;return l[4]!==u||l[5]!==s?(r=[u,s],l[4]=u,l[5]=s,l[6]=r):r=l[6],r}(),E=v||Y.TOSRegion.ROW;S[0]!==E?(r={eventName:Q.EctoImpressionEvent.TOS_DIALOG_IMPRESSION,actionTarget:"EctoNewUserTOSDialog",metadata:{tosType:E}},S[0]=E,S[1]=r):r=S[1];let{ref:x}=(0,G.useTrackedImpressionRef)(r);S[2]!==E?(l={eventName:q.EctoClickEvent.NUX_TOS_ACCEPT_BUTTON_CLICK,actionTarget:"EctoNewUserTOSDialog",actionType:"click",metadata:{tosType:E}},S[2]=E,S[3]=l):l=S[3];let{ref:I,onClick:P}=(0,H.useTrackedClickRef)(l);S[4]!==b||S[5]!==P||S[6]!==E?(s=()=>{P(),b(E,ee,Z)},S[4]=b,S[5]=P,S[6]=E,S[7]=s):s=S[7];let A=s;S[8]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)(K.default,{src:"/images/cot_logo_static/orbit.png",width:48,height:48,alt:""}),S[8]=c):c=S[8],S[9]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)(u.DialogHeader,{children:(0,t.jsxs)(g.Flexbox,{direction:"column",alignItems:"center",gap:3,children:[c,(0,t.jsx)(u.DialogTitle,{children:o.fbt._("Welcome to Meta AI",null,{hk:"1M2kUC"})})]})}),S[9]=d):d=S[9],S[10]!==E?(f=(0,t.jsx)($,{region:E}),S[10]=E,S[11]=f):f=S[11],S[12]!==x||S[13]!==f?(p=(0,t.jsx)(g.Flexbox,{ref:x,direction:"column",gap:4,className:"pt-2 pb-4",children:f}),S[12]=x,S[13]=f,S[14]=p):p=S[14],S[15]===Symbol.for("react.memo_cache_sentinel")?(h=o.fbs._("Continue",null,{hk:"19iH4W"}),S[15]=h):h=S[15];let T=k?X:void 0;return S[16]!==I||S[17]!==A||S[18]!==k||S[19]!==T?(_=(0,t.jsx)(g.Flexbox,{className:"pt-4",children:(0,t.jsx)(m.Button,{ref:I,label:h,variant:"primary",size:"36",onClick:A,disabled:k,leadingIcon:T,className:"flex-1"})}),S[16]=I,S[17]=A,S[18]=k,S[19]=T,S[20]=_):_=S[20],S[21]!==_||S[22]!==p?(y=(0,t.jsx)(u.Dialog,{open:!0,modal:!0,children:(0,t.jsxs)(u.DialogContent,{showCloseButton:!1,className:"sm:max-w-[480px]",header:d,children:[p,_]})}),S[21]=_,S[22]=p,S[23]=y):y=S[23],y}function X(e){return(0,t.jsx)(z.default,{...e,className:"animate-spin"})}function Z(){c.toast.error(o.fbs._("Failed to accept terms. Please try again.",null,{hk:"2BQO1W"}))}function ee(){}var et=e.i(587374);function en(){let e,t,a=(0,n.c)(3),{logout:i}=(0,et.useEctoLogout)(),r=(0,s.useRef)(!1);return a[0]!==i?(e=()=>{r.current||(r.current=!0,i(ea))},t=[i],a[0]=i,a[1]=e,a[2]=t):(e=a[1],t=a[2]),(0,s.useEffect)(e,t),null}function ea(){window.location.href="/"}(0,y.createClientLogger)("EctoKRTOSLogoutRedirect"),e.s(["BlockingDialogLoggedInRenderer",0,function(){let e=(0,n.c)(7),o=(0,i.useEctoPreloadedQuery)(l.BlockingDialogQuery,r.queryLoader.blockingDialog).viewer,s=(0,a.useFragment)(l.BlockingDialogFragment,o),c=s?.blockingDialog;if(!c)return null;switch(c.__typename){case"NewUserCreateProfileDialog":{let n,a=c.prefilledInfo??null,i=c.threadsToMigrate??null,r=s?.tosRegion??"ROW";return e[0]!==a||e[1]!==i||e[2]!==r?(n=(0,t.jsx)(T,{prefilledInfo:a,threadsToMigrate:i,tosRegion:r}),e[0]=a,e[1]=i,e[2]=r,e[3]=n):n=e[3],n}case"NewUserTOSDialog":{let n,a=c.tosRegion??"ROW";return e[4]!==a?(n=(0,t.jsx)(J,{tosRegion:a}),e[4]=a,e[5]=n):n=e[5],n}case"KRTOSLogoutRedirectDialog":{let n;return e[6]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)(en,{}),e[6]=n):n=e[6],n}default:return null}}],861825)},797527,e=>{"use strict";e.i(178414);var t=e.i(733783),n=e.i(908464),a=e.i(472361),i=e.i(823886),r=e.i(314516),l=e.i(559928),o=e.i(385790),s=e.i(595497),c=e.i(482708),u=e.i(898251),d=e.i(919111),m=e.i(422770),g=e.i(528132),f=e.i(515299);function p(e){let a,i,l,o,s=(0,n.c)(7),{onMedia:p}=e,{state:h,isMobile:_}=(0,d.useEctoSidebar)();s[0]===Symbol.for("react.memo_cache_sentinel")?(a={eventName:m.EctoImpressionEvent.LOGIN_IMPRESSION,actionTarget:"EctoLoggedOutHeader"},s[0]=a):a=s[0];let{ref:y}=(0,u.useTrackedImpressionRef)(a);return _||"expanded"!==h?(s[1]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)(g.EctoLoginButton,{actionTarget:"EctoLoggedOutHeader",size:"36"}),s[1]=i):i=s[1],s[2]!==p?(l=(0,t.jsx)(f.EctoSignupButton,{actionTarget:"EctoLoggedOutHeader",size:"36",onMedia:p}),s[2]=p,s[3]=l):l=s[3],s[4]!==y||s[5]!==l?(o=(0,t.jsx)(c.InteractionAreaProvider,{targetArea:"nav_button",children:(0,t.jsxs)(r.Flexbox,{ref:y,alignItems:"center",gap:2,className:"absolute end-4 top-4 z-10",children:[i,l]})}),s[4]=y,s[5]=l,s[6]=o):o=s[6],o):null}var h=e.i(305307),_=e.i(80241),y=e.i(606143),S=e.i(908817),v=e.i(183222),b=e.i(992941),k=e.i(997478),E=e.i(147237),C=e.i(237334),x=e.i(30752),I=e.i(389246),P=e.i(620359),A=e.i(895610),T=e.i(729075),R=e.i(968626),L=e.i(857805);let w=a.Fragment,O=a.Fragment,j=e.r(844600).LinkShimInfoProvider;function N(){(0,k.primePreciseLocation)()}function F(){(0,b.initializeRelayDevSettings)()}function D(e){let i,o,s,c,u,d,m,g,f=(0,n.c)(18),{children:h,sidebar:_,devtools:y}=e;(0,L.useNavigationLogger)(),(0,T.useWebVitals)(),(0,R.useWebMemoryLogging)();let v=(0,C.usePathname)();f[0]!==v?(i=v.startsWith("/@"),f[0]=v,f[1]=i):i=f[1];let b=i;f[2]!==v?(o=v.startsWith("/share/"),f[2]=v,f[3]=o):o=f[3];let k=o;return f[4]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(l.EctoNavigationProgressBar,{}),f[4]=s):s=f[4],f[5]!==b||f[6]!==k?(c=!b&&!k&&(0,t.jsx)(p,{}),f[5]=b,f[6]=k,f[7]=c):c=f[7],f[8]!==h?(u=(0,t.jsx)(x.MainContentErrorBoundary,{children:(0,t.jsx)(a.Suspense,{fallback:null,children:h})}),f[8]=h,f[9]=u):u=f[9],f[10]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)(S.ReactInitialRenderProvider,{}),f[10]=d):d=f[10],f[11]!==c||f[12]!==u?(m=(0,t.jsxs)(r.Flexbox,{as:"main",direction:"column",grow:1,className:"relative overflow-hidden",children:[c,u,d]}),f[11]=c,f[12]=u,f[13]=m):m=f[13],f[14]!==y||f[15]!==_||f[16]!==m?(g=(0,t.jsxs)(t.Fragment,{children:[s,(0,t.jsxs)(r.Flexbox,{className:"h-dvh w-dvw overflow-hidden",children:[_,m,y]})]}),f[14]=y,f[15]=_,f[16]=m,f[17]=g):g=f[17],g}e.s(["EctoRootLayoutLoggedOut",0,function(e){let r,l,c,u,d,m,g,f=(0,n.c)(13),{children:p,sidebar:S,devtools:b,noCacheBypass:k}=e;return f[0]===Symbol.for("react.memo_cache_sentinel")?(r=[],f[0]=r):r=f[0],(0,a.useEffect)(F,r),f[1]===Symbol.for("react.memo_cache_sentinel")?(l=[],f[1]=l):l=f[1],(0,a.useEffect)(N,l),f[2]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)(_.SSRSafe,{children:(0,t.jsx)(i.EctoErrorBoundary,{fallback:null,children:(0,t.jsx)(a.Suspense,{fallback:null,children:(0,t.jsx)(y.EctoConsentChecker,{})})})}),f[2]=c):c=f[2],f[3]!==p||f[4]!==b||f[5]!==S?(u=(0,t.jsxs)(P.AccessGatedContent,{children:[c,(0,t.jsx)(a.Suspense,{fallback:null,children:(0,t.jsx)(D,{sidebar:S,devtools:b,children:p})})]}),f[3]=p,f[4]=b,f[5]=S,f[6]=u):u=f[6],f[7]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)(_.SSRSafe,{children:(0,t.jsx)(i.EctoErrorBoundary,{fallback:null,children:(0,t.jsx)(a.Suspense,{fallback:null,children:(0,t.jsx)(I.EctoAccessInterstitial,{})})})}),f[7]=d):d=f[7],f[8]!==u?(m=(0,t.jsx)(v.EctoPWAContextProvider,{children:(0,t.jsx)(h.LoginLoadingProvider,{children:(0,t.jsx)(w,{children:(0,t.jsxs)(j,{children:[u,d]})})})}),f[8]=u,f[9]=m):m=f[9],f[10]!==k||f[11]!==m?(g=(0,t.jsx)(i.EctoErrorBoundary,{children:(0,t.jsx)(O,{children:(0,t.jsx)(o.NavigationLoadingProvider,{children:(0,t.jsx)(s.NavigationRouteContextProvider,{children:(0,t.jsx)(A.default,{children:(0,t.jsx)(E.EctoPrefetchContextProvider,{prefetchDisabled:k,children:m})})})})})}),f[10]=k,f[11]=m,f[12]=g):g=f[12],g}],797527)},673423,e=>{"use strict";var t;let n={fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useRecordCookieConsentDATRConsentQuery",selections:t=[{alias:null,args:null,concreteType:"ConsentStatus",kind:"LinkedField",name:"consentStatus",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"needsConsent",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"datr",storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"useRecordCookieConsentDATRConsentQuery",selections:t},params:{id:"b8f8bb94a55b25587fa4bc2a8513f728",metadata:{},name:"useRecordCookieConsentDATRConsentQuery",operationKind:"query",text:null}};n.hash="53c03d95e7f5a1fbac6cf56cf64207cb",e.s(["default",0,n])},652917,e=>{"use strict";var t,n;let a={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"input"}],kind:"Fragment",metadata:null,name:"useRecordCookieConsentDATRMutation",selections:n=[{alias:null,args:[{kind:"Variable",name:"input",variableName:"input"}],concreteType:"RecordCookieConsentResult",kind:"LinkedField",name:"recordCookieConsent",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"success",storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"useRecordCookieConsentDATRMutation",selections:n},params:{id:"f141562778a60554bf329cce59941949",metadata:{},name:"useRecordCookieConsentDATRMutation",operationKind:"mutation",text:null}};a.hash="f679946051644b0b97ee5a457d8b2388",e.s(["default",0,a])},682227,e=>{"use strict";var t=e.i(733783),n=e.i(908464),a=e.i(235338),i=e.i(75736),r=e.i(573795),l=e.i(895530),o=e.i(267989),s=e.i(472361),c=e.i(392839),u=e.i(468039),d=e.i(326496);let m=(0,e.i(840387).createClientLogger)("useRecordCookieConsentDATR"),g=e.r(673423),f=e.r(652917);var p=e.i(213434),h=e.i(932281),_=e.i(39491),y=e.i(314516),S=e.i(898097),v=e.i(491864),b=e.i(71013),k=e.i(296712),E=e.i(934949),C=e.i(463331),x=e.i(472427),I=e.i(535703),P=e.i(76690),A=e.i(541655),T=e.i(369846),R=e.i(272600),L=e.i(898251),w=e.i(422770),O=e.i(369835);function j(e){let a=(0,n.c)(4),{region:i}=e;switch(i){case I.TOSRegion.EU:{let e;return a[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(k.EctoTOSDisclaimerEU,{}),a[0]=e):e=a[0],e}case I.TOSRegion.UK:{let e;return a[1]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(E.EctoTOSDisclaimerUK,{}),a[1]=e):e=a[1],e}case I.TOSRegion.BR:{let e;return a[2]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(C.EctoTOSDisclaimerBR,{}),a[2]=e):e=a[2],e}default:{let e;return a[3]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(b.EctoTOSDisclaimerROW,{}),a[3]=e):e=a[3],e}}}function N(e){let i,r,l,b,k,E,C,T,N,D,K,M,B,U,V,Y,W,z,G,H,Q,q=(0,n.c)(66),{tosRegion:$}=e,[J,X]=(0,s.useState)("welcome"),[Z,ee]=(0,s.useState)(""),[et,en]=(0,s.useState)(null),[ea,ei]=(0,s.useState)(!1),{isLoading:er,acceptTOSForLoggedOut:el}=(0,P.useAcceptTOSForLoggedOut)($);q[0]===Symbol.for("react.memo_cache_sentinel")?(i={eventName:w.EctoImpressionEvent.TOS_BLOCKING_DIALOG_WELCOME_IMPRESSION,actionTarget:"EctoLoggedOutTOSBlockingDialog"},q[0]=i):i=q[0];let{ref:eo}=(0,L.useTrackedImpressionRef)(i);q[1]===Symbol.for("react.memo_cache_sentinel")?(r={eventName:w.EctoImpressionEvent.TOS_BLOCKING_DIALOG_AGE_VERIFICATION_IMPRESSION,actionTarget:"EctoLoggedOutTOSBlockingDialog"},q[1]=r):r=q[1];let{ref:es}=(0,L.useTrackedImpressionRef)(r);q[2]===Symbol.for("react.memo_cache_sentinel")?(l={eventName:O.EctoClickEvent.LOGGED_OUT_TOS_BLOCKING_DIALOG_CONTINUE_CLICK,actionTarget:"EctoLoggedOutTOSBlockingDialog",actionType:"click"},q[2]=l):l=q[2];let{ref:ec,onClick:eu}=(0,R.useTrackedClickRef)(l);q[3]===Symbol.for("react.memo_cache_sentinel")?(b={eventName:O.EctoClickEvent.LOGGED_OUT_TOS_BLOCKING_DIALOG_ACCEPT_CLICK,actionTarget:"EctoLoggedOutTOSBlockingDialog",actionType:"click"},q[3]=b):b=q[3];let{ref:ed,onClick:em}=(0,R.useTrackedClickRef)(b);q[4]===Symbol.for("react.memo_cache_sentinel")?(k={eventName:O.EctoClickEvent.LOGGED_OUT_TOS_BLOCKING_DIALOG_BACK_CLICK,actionTarget:"EctoLoggedOutTOSBlockingDialog",actionType:"click"},q[4]=k):k=q[4];let{ref:eg,onClick:ef}=(0,R.useTrackedClickRef)(k),{recordConsentAndWriteDATR:ep}=function(){let e,t,i=(0,n.c)(8),r=(0,c.useCookieMonster)(),{consentStatus:l,setConsentStatus:o}=(0,u.useConsentStatus)(),s=(0,a.useRelayEnvironment)(),[p]=(0,a.useMutation)(f);i[0]!==p||i[1]!==l||i[2]!==r||i[3]!==s||i[4]!==o?(e=async()=>{let e=l??await (async()=>{let e=await (0,a.fetchQuery)(s,g,{}).toPromise(),t=e?.consentStatus?.needsConsent,n=e?.consentStatus?.datr;if(null==t||!n)throw Error("Failed to fetch consent status");let i={needs_cookie_consent:t,datr:n};return o(i),i})();return r.writeCookie(d.DATR_COOKIE,e.datr),r.assertConsent_ONLY_CALL_AFTER_VERIFYING_USER_CONSENT(),new Promise((e,t)=>{p({variables:{input:{acceptOnlyEssential:!0,consentToEverything:!1}},onCompleted:n=>{if(n.recordCookieConsent?.success)e();else{let e=Error("Failed to record cookie consent");m.error({},"Failed to record cookie consent"),t(e)}},onError:e=>{m.error({error:e},"Error recording cookie consent"),t(e)}})})},i[0]=p,i[1]=l,i[2]=r,i[3]=s,i[4]=o,i[5]=e):e=i[5];let h=e;return i[6]!==h?(t={recordConsentAndWriteDATR:h},i[6]=h,i[7]=t):t=i[7],t}();q[5]!==el||q[6]!==Z||q[7]!==em?(E=async()=>{em(),en(null);let e=await el(Z);e.success||"underage"===e.error||en(e.error??"Failed to accept Terms of Service")},q[5]=el,q[6]=Z,q[7]=em,q[8]=E):E=q[8];let eh=E;q[9]!==eu||q[10]!==ep||q[11]!==$?(C=async()=>{if(eu(),en(null),$===I.TOSRegion.EU||$===I.TOSRegion.UK){ei(!0);try{await ep()}catch(e){ei(!1),en("Failed to record cookie consent. Please try again.");return}ei(!1)}X("age-verification")},q[9]=eu,q[10]=ep,q[11]=$,q[12]=C):C=q[12];let e_=C;q[13]!==ef?(T=()=>{ef(),X("welcome")},q[13]=ef,q[14]=T):T=q[14];let ey=T;if("welcome"===J){let e,n,a,i,r,l,s,c,u;q[15]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(v.default,{src:"/images/cot_logo_static/orbit.png",width:48,height:48,alt:""}),q[15]=e):e=q[15],q[16]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)(p.DialogHeader,{children:(0,t.jsxs)(y.Flexbox,{direction:"column",alignItems:"center",gap:3,children:[e,(0,t.jsx)(p.DialogTitle,{children:o.fbt._("Welcome to Meta AI",null,{hk:"14KPwq"})})]})}),q[16]=n):n=q[16],q[17]!==$?(a=(0,t.jsx)(j,{region:$}),q[17]=$,q[18]=a):a=q[18],q[19]!==a||q[20]!==eo?(i=(0,t.jsx)(y.Flexbox,{ref:eo,direction:"column",gap:4,className:"pt-2 pb-4",children:a}),q[19]=a,q[20]=eo,q[21]=i):i=q[21],q[22]===Symbol.for("react.memo_cache_sentinel")?(r=o.fbs._("Continue",null,{hk:"1VZ05R"}),q[22]=r):r=q[22];let d=ea?F:void 0;return q[23]!==ec||q[24]!==e_||q[25]!==ea||q[26]!==d?(l=(0,t.jsx)(y.Flexbox,{children:(0,t.jsx)(h.Button,{ref:ec,label:r,variant:"primary",size:"36",onClick:e_,disabled:ea,leadingIcon:d,className:"flex-1"})}),q[23]=ec,q[24]=e_,q[25]=ea,q[26]=d,q[27]=l):l=q[27],q[28]!==et?(s=et&&(0,t.jsx)(S.Text,{variant:"caption-1",color:"destructive",className:"text-center",children:et}),q[28]=et,q[29]=s):s=q[29],q[30]!==l||q[31]!==s?(c=(0,t.jsxs)(y.Flexbox,{direction:"column",className:"pt-4",gap:2,children:[l,s]}),q[30]=l,q[31]=s,q[32]=c):c=q[32],q[33]!==i||q[34]!==c?(u=(0,t.jsx)(p.Dialog,{open:!0,modal:!0,children:(0,t.jsxs)(p.DialogContent,{showCloseButton:!1,className:"sm:max-w-[480px]",header:n,children:[i,c]})}),q[33]=i,q[34]=c,q[35]=u):u=q[35],u}q[36]===Symbol.for("react.memo_cache_sentinel")?(N=o.fbs._("Back",null,{hk:"4tmbIF"}),q[36]=N):N=q[36],q[37]!==eg||q[38]!==ey?(D=(0,t.jsx)("div",{className:"absolute start-0 top-0",children:(0,t.jsx)(_.IconButton,{ref:eg,icon:A.default,label:N,onClick:ey,variant:"flat",size:"28"})}),q[37]=eg,q[38]=ey,q[39]=D):D=q[39],q[40]===Symbol.for("react.memo_cache_sentinel")?(K=(0,t.jsx)(v.default,{src:"/images/cot_logo_static/orbit.png",width:48,height:48,alt:""}),q[40]=K):K=q[40],q[41]===Symbol.for("react.memo_cache_sentinel")?(M=(0,t.jsxs)(y.Flexbox,{direction:"column",alignItems:"center",gap:3,className:"w-full",children:[K,(0,t.jsx)(p.DialogTitle,{children:o.fbt._("Continue to Meta AI",null,{hk:"1Uc0hO"})})]}),q[41]=M):M=q[41],q[42]!==D?(B=(0,t.jsx)(p.DialogHeader,{children:(0,t.jsxs)(y.Flexbox,{direction:"row",alignItems:"start",className:"relative w-full",children:[D,M]})}),q[42]=D,q[43]=B):B=q[43],q[44]===Symbol.for("react.memo_cache_sentinel")?(U=(0,t.jsx)(S.Text,{as:"p",variant:"body",color:"secondary",className:"text-center text-pretty",children:o.fbt._("Select when you were born to confirm you're able to use Meta AI.",null,{hk:"4AilU"})}),q[44]=U):U=q[44],q[45]!==Z||q[46]!==er?(V=(0,t.jsx)(x.EctoDateSelect,{value:Z,onChange:ee,disabled:er}),q[45]=Z,q[46]=er,q[47]=V):V=q[47],q[48]!==et?(Y=et&&(0,t.jsx)(S.Text,{variant:"caption-1",color:"destructive",className:"mt-2",children:et}),q[48]=et,q[49]=Y):Y=q[49],q[50]!==V||q[51]!==Y?(W=(0,t.jsxs)("div",{className:"mt-2 w-full",children:[V,Y]}),q[50]=V,q[51]=Y,q[52]=W):W=q[52],q[53]!==es||q[54]!==W?(z=(0,t.jsxs)(y.Flexbox,{ref:es,direction:"column",gap:4,className:"pt-2 pb-4",children:[U,W]}),q[53]=es,q[54]=W,q[55]=z):z=q[55],q[56]===Symbol.for("react.memo_cache_sentinel")?(G=o.fbs._("Continue",null,{hk:"1Q2GGn"}),q[56]=G):G=q[56];let eS=er||!Z,ev=er?F:void 0;return q[57]!==ed||q[58]!==eh||q[59]!==eS||q[60]!==ev?(H=(0,t.jsx)(y.Flexbox,{className:"pt-4",children:(0,t.jsx)(h.Button,{ref:ed,label:G,variant:"primary",size:"36",onClick:eh,disabled:eS,leadingIcon:ev,className:"flex-1"})}),q[57]=ed,q[58]=eh,q[59]=eS,q[60]=ev,q[61]=H):H=q[61],q[62]!==B||q[63]!==z||q[64]!==H?(Q=(0,t.jsx)(p.Dialog,{open:!0,modal:!0,children:(0,t.jsxs)(p.DialogContent,{showCloseButton:!1,className:"sm:max-w-[480px]",header:B,children:[z,H]})}),q[62]=B,q[63]=z,q[64]=H,q[65]=Q):Q=q[65],Q}function F(e){return(0,t.jsx)(T.default,{...e,className:"animate-spin"})}e.s(["BlockingDialogLoggedOutRenderer",0,function(){let e=(0,n.c)(2),o=(0,i.useEctoPreloadedQuery)(l.BlockingDialogQuery,r.queryLoader.blockingDialog).viewer,s=(0,a.useFragment)(l.BlockingDialogFragment,o),c=s?.blockingDialog;if(!c)return null;if("LoggedOutTOSDialog"===c.__typename){let n,a=c.tosRegion??"ROW";return e[0]!==a?(n=(0,t.jsx)(N,{tosRegion:a}),e[0]=a,e[1]=n):n=e[1],n}return null}],682227)},633017,e=>{"use strict";var t=e.i(178414),n=e.i(472361),a=e.i(772477);function i(){return"u">typeof window}function r(){return"production"}function l(){return"development"===((i()?window.vam:r())||"production")}function o(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function s(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")?e:`/${e}`}function c(e){return(0,n.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]),(0,n.useEffect)(()=>{!function(e={debug:!0},t){var n;if(!i())return;let{beforeSend:a,src:o,dataset:c}=function(e,t){var n,a;let i=e;if(t)try{i={...null==(n=JSON.parse(t))?void 0:n.analytics,...e}}catch{}!function(e="auto"){if("auto"===e){window.vam=r();return}window.vam=e}(i.mode);let o={sdkn:"@vercel/analytics"+(i.framework?`/${i.framework}`:""),sdkv:"2.0.1"};return i.disableAutoTrack&&(o.disableAutoTrack="1"),i.viewEndpoint&&(o.viewEndpoint=s(i.viewEndpoint)),i.eventEndpoint&&(o.eventEndpoint=s(i.eventEndpoint)),i.sessionEndpoint&&(o.sessionEndpoint=s(i.sessionEndpoint)),l()&&!1===i.debug&&(o.debug="false"),i.dsn&&(o.dsn=i.dsn),i.endpoint?o.endpoint=i.endpoint:i.basePath&&(o.endpoint=s(`${i.basePath}/insights`)),{beforeSend:i.beforeSend,src:(a=i).scriptSrc?s(a.scriptSrc):l()?"https://va.vercel-scripts.com/v1/script.debug.js":a.basePath?s(`${a.basePath}/insights/script.js`):"/_vercel/insights/script.js",dataset:o}}(e,t);if(window.va||(window.va=function(...e){window.vaq||(window.vaq=[]),window.vaq.push(e)}),a&&(null==(n=window.va)||n.call(window,"beforeSend",a)),document.head.querySelector(`script[src*="${o}"]`))return;let u=document.createElement("script");for(let[e,t]of(u.src=o,Object.entries(c)))u.dataset[e]=t;u.defer=!0,u.onerror=()=>{let e=l()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log(`[Vercel Web Analytics] Failed to load script from ${o}. ${e}`)},document.head.appendChild(u)}({framework:e.framework||"react",basePath:e.basePath??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...void 0!==e.route&&{disableAutoTrack:!0},...e},e.configString??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_CLIENT_CONFIG}())},[]),(0,n.useEffect)(()=>{e.route&&e.path&&function({route:e,path:t}){var n;null==(n=window.va)||n.call(window,"pageview",{route:e,path:t})}({route:e.route,path:e.path})},[e.route,e.path]),null}function u(e){let i,r,l,{route:s,path:u}=(i=(0,a.useParams)(),r=(0,a.useSearchParams)(),l=(0,a.usePathname)(),i?{route:function(e,t){if(!e||!t)return e;let n=e;try{let e=Object.entries(t);for(let[t,a]of e)if(!Array.isArray(a)){let e=o(a);e.test(n)&&(n=n.replace(e,`/[${t}]`))}for(let[t,a]of e)if(Array.isArray(a)){let e=o(a.join("/"));e.test(n)&&(n=n.replace(e,`/[...${t}]`))}return n}catch{return e}}(l,Object.keys(i).length?i:Object.fromEntries(r.entries())),path:l}:{route:null,path:l});return n.default.createElement(c,{path:u,route:s,...e,basePath:function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}(),configString:function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_CLIENT_CONFIG}(),framework:"next"})}e.s(["Analytics",0,function(e){return n.default.createElement(n.Suspense,{fallback:null},n.default.createElement(u,{...e}))}])},527206,e=>{"use strict";var t=e.i(178414),n=e.i(472361),a=e.i(772477);function i(){return false}function r(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function l(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")?e:`/${e}`}function o(e){(0,n.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let a=(0,n.useRef)(null);return(0,n.useEffect)(()=>{if(!a.current){let n=function(e={},t){var n;if(!("u">typeof window)||null===e.route)return null;window.si||(window.si=function(...e){window.siq=window.siq||[],window.siq.push(e)});let{beforeSend:a,src:r,dataset:o}=function(e,t){var n,a;let r=e;if(t)try{r={...null==(n=JSON.parse(t))?void 0:n.speedInsights,...e}}catch{}let o={sdkn:"@vercel/speed-insights"+(r.framework?`/${r.framework}`:""),sdkv:"2.0.0"};return r.sampleRate&&(o.sampleRate=r.sampleRate.toString()),r.route&&(o.route=r.route),i()&&!1===r.debug&&(o.debug="false"),r.dsn&&(o.dsn=r.dsn),r.endpoint?o.endpoint=l(r.endpoint):r.basePath&&(o.endpoint=l(`${r.basePath}/speed-insights/vitals`)),{src:(a=r).scriptSrc?l(a.scriptSrc):i()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":a.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":a.basePath?l(`${a.basePath}/speed-insights/script.js`):"/_vercel/speed-insights/script.js",beforeSend:r.beforeSend,dataset:o}}(e,t);if(document.head.querySelector(`script[src*="${r}"]`))return null;a&&(null==(n=window.si)||n.call(window,"beforeSend",a));let s=document.createElement("script");for(let[e,t]of(s.src=r,s.defer=!0,Object.entries(o)))s.dataset[e]=t;return s.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${r}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(s),{setRoute:e=>{s.dataset.route=e??void 0}}}({framework:e.framework??"react",basePath:e.basePath??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...e},e.configString??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_CLIENT_CONFIG}());n&&(a.current=n.setRoute)}},[e]),(0,n.useEffect)(()=>{a.current&&e.route&&a.current(e.route)},[e.route]),null}function s(e){let i=(()=>{let e=(0,a.useParams)(),t=(0,a.useSearchParams)()||new URLSearchParams,n=(0,a.usePathname)();if(!e)return null;let i=Object.keys(e).length?e:Object.fromEntries(t.entries());if(!n||!i)return n;let l=n;try{let e=Object.entries(i);for(let[t,n]of e)if(!Array.isArray(n)){let e=r(n);e.test(l)&&(l=l.replace(e,`/[${t}]`))}for(let[t,n]of e)if(Array.isArray(n)){let e=r(n.join("/"));e.test(l)&&(l=l.replace(e,`/[...${t}]`))}return l}catch{return n}})();return n.default.createElement(o,{route:i,...e,framework:"next",basePath:function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}(),configString:function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_CLIENT_CONFIG}()})}e.s(["SpeedInsights",0,function(e){return n.default.createElement(n.Suspense,{fallback:null},n.default.createElement(s,{...e}))}])}]); //# debugId=1b654603-f7e6-9313-518c-180810bb1d2b