;!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]="4f863b18-2048-92c7-5793-4b7a785b0054")}catch(e){}}(); (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,839003,5776,e=>{"use strict";var t=e.i(733783),n=e.i(267989),i=e.i(908464),r=e.i(472361),l=e.i(899272);let a={16:8,20:10,24:10,28:12,32:12,36:12},o={16:"size-2.5",20:"size-3",24:"size-3.5",28:"size-3.75",32:"size-3.75",36:"size-4"},s={blue:"bg-fill-blue",red:"bg-gradient-to-br from-[var(--red-400)] to-[var(--red-500)]",green:"bg-gradient-to-br from-[var(--green-400)] to-[var(--green-500)]",purple:"bg-gradient-to-br from-[var(--purple-450)] to-[var(--purple-600)]"};function c(e){let n,r,c,u,d=(0,i.c)(13),{icon:m,size:h,color:f,offset:g}=e,p=o[h],_=s[void 0===f?"blue":f];d[0]!==p||d[1]!==_?(n=(0,l.cn)("text-text-white shadow-blur-elevation-01 absolute flex items-center justify-center rounded-full",p,_),d[0]=p,d[1]=_,d[2]=n):n=d[2];let y=-g,x=-g;d[3]!==y||d[4]!==x?(r={bottom:y,right:x},d[3]=y,d[4]=x,d[5]=r):r=d[5];let v=a[h];return d[6]!==m||d[7]!==v?(c=(0,t.jsx)(m,{size:v}),d[6]=m,d[7]=v,d[8]=c):c=d[8],d[9]!==n||d[10]!==r||d[11]!==c?(u=(0,t.jsx)("div",{className:n,style:r,children:c}),d[9]=n,d[10]=r,d[11]=c,d[12]=u):u=d[12],u}e.s(["AvatarBadgeColor",0,{Blue:"blue",Red:"red",Green:"green",Purple:"purple"},"default",0,c],5776);let u={16:16,20:20,24:24,28:28,32:32,36:36},d={16:10,20:12,24:14,28:15,32:15,36:16},m={16:1,20:1,24:1,28:2,32:2,36:2},h={16:(0,l.cn)("size-4 text-caption-2-emphasized"),20:(0,l.cn)("size-5 text-caption-2-emphasized"),24:(0,l.cn)("size-6 text-caption-1-emphasized"),28:(0,l.cn)("size-7 text-subheadline-emphasized"),32:(0,l.cn)("size-8 text-body-emphasized"),36:(0,l.cn)("size-9 text-body-emphasized")},f={user:"bg-fill-blue",assistant:"bg-fill-secondary",custom:"bg-fill-tertiary"},g={16:12,20:14,24:16,28:18,32:20,36:24};function p(e){let n,r,l,a=(0,i.c)(8),{clipPathId:o,pathData:s,viewBox:c}=e;return a[0]!==s?(n=(0,t.jsx)("path",{d:s,fillRule:"evenodd"}),a[0]=s,a[1]=n):n=a[1],a[2]!==o||a[3]!==n?(r=(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:o,children:n})}),a[2]=o,a[3]=n,a[4]=r):r=a[4],a[5]!==r||a[6]!==c?(l=(0,t.jsx)("svg",{width:"0",height:"0",viewBox:c,className:"pointer-events-none absolute","aria-hidden":"true",children:r}),a[5]=r,a[6]=c,a[7]=l):l=a[7],l}e.s(["default",0,function(e){let a,o,s,_,y,x,v,S,b,k,I,w,C,j,T,E,L,A,O,N,B,P,F,M,R,U,z,D=(0,i.c)(61),{variant:V,label:G,icon:K,imageUrl:$,className:Y,size:W,badgeIcon:q,badgeColor:H,badgeOffset:J}=e,Q=void 0===W?"32":W,Z=void 0===J?2:J,[X,ee]=(0,r.useState)(!1),{clipPathId:et,clipPathUrl:en,pathData:ei,viewBox:er}=(I=(0,i.c)(11),w=(0,r.useId)(),C=u[Q],j=d[Q],T=m[Q],E=C-j/2+Z,L=C-j/2+Z,A=j/2+T,O=`H ${C}`,N=`V ${C}`,B=`M ${E+A},${L}`,P=`A ${A},${A} 0 1,0 ${E-A},${L}`,F=`A ${A},${A} 0 1,0 ${E+A},${L}`,I[0]!==O||I[1]!==N||I[2]!==B||I[3]!==P||I[4]!==F?(b=["M 0,0",O,N,"H 0","Z",B,P,F,"Z"],I[0]=O,I[1]=N,I[2]=B,I[3]=P,I[4]=F,I[5]=b):b=I[5],M=b.join(" "),R=`avatar-badge-clip-${w}`,U=`url(#${R})`,z=`0 0 ${C} ${C}`,I[6]!==R||I[7]!==M||I[8]!==U||I[9]!==z?(k={clipPathId:R,clipPathUrl:U,pathData:M,viewBox:z},I[6]=R,I[7]=M,I[8]=U,I[9]=z,I[10]=k):k=I[10],k);if($&&!X){let e,i,r,a,o,s,u,d,m;D[0]!==q||D[1]!==en?(e=q?{clipPath:en}:void 0,D[0]=q,D[1]=en,D[2]=e):e=D[2];let f=e,g=h[Q];return D[3]!==Y||D[4]!==g?(i=(0,l.cn)("relative shrink-0",g,Y),D[3]=Y,D[4]=g,D[5]=i):i=D[5],D[6]!==q||D[7]!==et||D[8]!==ei||D[9]!==er?(r=q&&(0,t.jsx)(p,{clipPathId:et,pathData:ei,viewBox:er}),D[6]=q,D[7]=et,D[8]=ei,D[9]=er,D[10]=r):r=D[10],D[11]!==G?(a=G||n.fbs._("User avatar",null,{hk:"4g5BxD"}),D[11]=G,D[12]=a):a=D[12],D[13]===Symbol.for("react.memo_cache_sentinel")?(o=()=>ee(!0),D[13]=o):o=D[13],D[14]!==$||D[15]!==a?(s=(0,t.jsx)("img",{src:$,alt:a,className:"h-full w-full object-cover",onError:o}),D[14]=$,D[15]=a,D[16]=s):s=D[16],D[17]!==f||D[18]!==s?(u=(0,t.jsx)("div",{className:"flex h-full w-full items-center justify-center overflow-hidden rounded-full",style:f,children:s}),D[17]=f,D[18]=s,D[19]=u):u=D[19],D[20]!==q||D[21]!==H||D[22]!==Z||D[23]!==Q?(d=q&&(0,t.jsx)(c,{icon:q,size:Q,color:H,offset:Z}),D[20]=q,D[21]=H,D[22]=Z,D[23]=Q,D[24]=d):d=D[24],D[25]!==u||D[26]!==d||D[27]!==i||D[28]!==r?(m=(0,t.jsxs)("div",{className:i,children:[r,u,d]}),D[25]=u,D[26]=d,D[27]=i,D[28]=r,D[29]=m):m=D[29],m}let el=h[Q];D[30]!==Y||D[31]!==el?(a=(0,l.cn)("relative shrink-0",el,Y),D[30]=Y,D[31]=el,D[32]=a):a=D[32],D[33]!==q||D[34]!==et||D[35]!==ei||D[36]!==er?(o=q&&(0,t.jsx)(p,{clipPathId:et,pathData:ei,viewBox:er}),D[33]=q,D[34]=et,D[35]=ei,D[36]=er,D[37]=o):o=D[37];let ea=f[void 0===V?"custom":V];return D[38]!==ea?(s=(0,l.cn)("text-primary group-hover:bg-fill-secondary-elevated-hover flex h-full w-full items-center justify-center rounded-full transition-colors",ea),D[38]=ea,D[39]=s):s=D[39],D[40]!==q||D[41]!==en?(_=q?{clipPath:en}:void 0,D[40]=q,D[41]=en,D[42]=_):_=D[42],D[43]!==K||D[44]!==G?.[0]||D[45]!==Q?(y=K?(0,t.jsx)(K,{size:g[Q]}):G?.[0]?.toUpperCase()??n.fbt._("?",null,{hk:"1UUhsp"}),D[43]=K,D[44]=G?.[0],D[45]=Q,D[46]=y):y=D[46],D[47]!==y||D[48]!==s||D[49]!==_?(x=(0,t.jsx)("div",{className:s,style:_,children:y}),D[47]=y,D[48]=s,D[49]=_,D[50]=x):x=D[50],D[51]!==q||D[52]!==H||D[53]!==Z||D[54]!==Q?(v=q&&(0,t.jsx)(c,{icon:q,size:Q,color:H,offset:Z}),D[51]=q,D[52]=H,D[53]=Z,D[54]=Q,D[55]=v):v=D[55],D[56]!==x||D[57]!==v||D[58]!==a||D[59]!==o?(S=(0,t.jsxs)("div",{className:a,children:[o,x,v]}),D[56]=x,D[57]=v,D[58]=a,D[59]=o,D[60]=S):S=D[60],S}],839003)},211376,e=>{"use strict";var t=e.i(733783),n=e.i(908464);function i(e){let i,r,l,a,o,s,c=(0,n.c)(11);c[0]!==e?({size:r,...i}=e,c[0]=e,c[1]=i,c[2]=r):(i=c[1],r=c[2]);let u=void 0===r?32:r;return c[3]!==i.title?(l=null!=i.title&&(0,t.jsx)("title",{children:i.title}),c[3]=i.title,c[4]=l):l=c[4],c[5]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)("path",{d:"M15.998 19.47c.415 0 .749.117 1.002.348.259.232.388.539.388.921 0 .377-.13.682-.388.913-.253.232-.587.348-1.002.348-.41 0-.743-.116-1.002-.348-.253-.231-.38-.536-.38-.913 0-.382.127-.689.38-.92.259-.232.593-.348 1.002-.348zm.004-9.47a1.14 1.14 0 0 1 1.139 1.175l-.193 6.102a.947.947 0 0 1-1.892 0l-.193-6.102A1.14 1.14 0 0 1 16.002 10z",fill:"currentColor"}),o=(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 5.125c6.006 0 10.875 4.869 10.875 10.875S22.006 26.875 16 26.875 5.125 22.006 5.125 16 9.994 5.125 16 5.125zm0 1.75a9.125 9.125 0 1 0 0 18.25 9.125 9.125 0 0 0 0-18.25z",fill:"currentColor"}),c[5]=a,c[6]=o):(a=c[5],o=c[6]),c[7]!==i||c[8]!==u||c[9]!==l?(s=(0,t.jsxs)("svg",{viewBox:"0 0 32 32",fill:"none",width:u,height:u,...i,children:[l,a,o]}),c[7]=i,c[8]=u,c[9]=l,c[10]=s):s=c[10],s}i._isSVG=!0,e.s(["default",0,i])},442869,e=>{"use strict";var t=e.i(733783),n=e.i(908464);function i(e){let i,r,l,a,o,s=(0,n.c)(10);s[0]!==e?({size:r,...i}=e,s[0]=e,s[1]=i,s[2]=r):(i=s[1],r=s[2]);let c=void 0===r?32:r;return s[3]!==i.title?(l=null!=i.title&&(0,t.jsx)("title",{children:i.title}),s[3]=i.title,s[4]=l):l=s[4],s[5]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)("path",{d:"M15.852 6.96a.876.876 0 0 1 .943-.804 9.84 9.84 0 0 1 6.187 2.861c3.403 3.403 3.802 8.67 1.2 12.512l.965.966a1 1 0 0 1-.444 1.672l-4.008 1.093a1 1 0 0 1-1.228-1.227l1.093-4.009a1 1 0 0 1 1.672-.444l.683.683a8.125 8.125 0 0 0-6.26-12.362.875.875 0 0 1-.803-.942zM6.851 9.503a1 1 0 0 1 .444-1.672l4.008-1.093a1 1 0 0 1 1.228 1.228l-1.093 4.008a1 1 0 0 1-1.672.444l-.683-.683a8.127 8.127 0 0 0 6.265 12.362.875.875 0 0 1-.14 1.745 9.84 9.84 0 0 1-6.19-2.86c-3.404-3.403-3.802-8.67-1.2-12.512l-.967-.967z",fill:"currentColor"}),s[5]=a):a=s[5],s[6]!==i||s[7]!==c||s[8]!==l?(o=(0,t.jsxs)("svg",{viewBox:"0 0 32 32",fill:"none",width:c,height:c,...i,children:[l,a]}),s[6]=i,s[7]=c,s[8]=l,s[9]=o):o=s[9],o}i._isSVG=!0,e.s(["default",0,i])},698859,e=>{"use strict";var t=e.i(908464),n=e.i(472361),i=e.i(20474),r=e.i(354887),l=e.i(389090),a=e.i(930509),o=e.i(835917);e.s(["useEctoLoginCallback",0,function(e){let s,c,u,d,m=(0,t.c)(12),h=e?.includeRouteConversation??!0,f=e?.finalRedirect,[g,p]=(0,n.useState)(!1),{accessToken:_}=(0,l.useLoggedOutViewerContext)(),{waterfallId:y}=(0,a.useLoginLoading)(),x=(0,i.useParams)(),v=h?x.conversationId??x.id:void 0,S=(0,r.useSearchParams)();m[0]!==S?(s=S.get("mtl"),m[0]=S,m[1]=s):s=m[1];let b=s;m[2]===Symbol.for("react.memo_cache_sentinel")?(c=(0,o.v4)(),m[2]=c):c=m[2];let k=c;m[3]!==_||m[4]!==f||m[5]!==b||m[6]!==v||m[7]!==y?(u=()=>{p(!0);let e=new URLSearchParams;_&&e.set("temp_user_auth_token",_),v&&(e.set("promptID",v),e.set("new_external_conversation_id",k)),y&&e.set("waterfall_id",y),b&&e.set("mtl",b),f&&e.set("final_redirect",f);let t=e.toString();window.location.assign(`/api/oidc/start${t?`?${t}`:""}`)},m[3]=_,m[4]=f,m[5]=b,m[6]=v,m[7]=y,m[8]=u):u=m[8];let I=u;return m[9]!==g||m[10]!==I?(d=[I,g],m[9]=g,m[10]=I,m[11]=d):d=m[11],d}])},528132,e=>{"use strict";var t=e.i(733783),n=e.i(908464),i=e.i(932281),r=e.i(314516),l=e.i(648570),a=e.i(267989),o=e.i(272600),s=e.i(369835),c=e.i(930509),u=e.i(698859);e.s(["EctoLoginButton",0,function(e){let d,m,h,f,g,p=(0,n.c)(17),{actionTarget:_,size:y,finalRedirect:x,fullWidth:v}=e,S=void 0===y?"32":y,b=void 0!==v&&v,{isLoading:k,setIsLoading:I,isAnyLoading:w}=(0,c.useLoginLoading)();p[0]!==x?(d={finalRedirect:x},p[0]=x,p[1]=d):d=p[1];let[C]=(0,u.useEctoLoginCallback)(d);p[2]!==_?(m={eventName:s.EctoClickEvent.LOGGED_OUT_LOGIN_CLICK,actionTarget:_,actionType:"click"},p[2]=_,p[3]=m):m=p[3];let{ref:j,onClick:T}=(0,o.useTrackedClickRef)(m);p[4]!==T||p[5]!==C||p[6]!==I?(h=()=>{T(),I("login"),C()},p[4]=T,p[5]=C,p[6]=I,p[7]=h):h=p[7];let E=h,L="login"===k;return p[8]!==L?(f=L?(0,t.jsxs)(r.Flexbox,{alignItems:"center",gap:2,children:[(0,t.jsx)(l.Spinner,{size:16,color:"currentColor",isDecorative:!0}),a.fbs._("Log in",null,{hk:"255hA6"})]}):a.fbs._("Log in",null,{hk:"255hA6"}),p[8]=L,p[9]=f):f=p[9],p[10]!==b||p[11]!==E||p[12]!==w||p[13]!==j||p[14]!==S||p[15]!==f?(g=(0,t.jsx)(i.Button,{ref:j,"data-testid":"login-button",variant:"primary",label:f,onClick:E,disabled:w,size:S,fullWidth:b}),p[10]=b,p[11]=E,p[12]=w,p[13]=j,p[14]=S,p[15]=f,p[16]=g):g=p[16],g}])},515299,e=>{"use strict";var t=e.i(733783),n=e.i(908464),i=e.i(932281),r=e.i(314516),l=e.i(648570),a=e.i(267989),o=e.i(272600),s=e.i(369835),c=e.i(930509),u=e.i(698859);e.s(["EctoSignupButton",0,function(e){let d,m,h,f,g=(0,n.c)(15),{actionTarget:p,size:_,onMedia:y}=e,x=void 0===_?"32":_,{isLoading:v,setIsLoading:S,isAnyLoading:b}=(0,c.useLoginLoading)(),[k]=(0,u.useEctoLoginCallback)();g[0]!==p?(d={eventName:s.EctoClickEvent.LOGGED_OUT_SIGNUP_CLICK,actionTarget:p,actionType:"click"},g[0]=p,g[1]=d):d=g[1];let{ref:I,onClick:w}=(0,o.useTrackedClickRef)(d);g[2]!==w||g[3]!==k||g[4]!==S?(m=()=>{w(),S("signup"),k()},g[2]=w,g[3]=k,g[4]=S,g[5]=m):m=g[5];let C=m,j="signup"===v,T=y?"on-media":"flat";return g[6]!==j?(h=j?(0,t.jsxs)(r.Flexbox,{alignItems:"center",gap:2,children:[(0,t.jsx)(l.Spinner,{size:16,color:"currentColor",isDecorative:!0}),a.fbs._("Sign up",null,{hk:"3vV5aN"})]}):a.fbs._("Sign up",null,{hk:"3vV5aN"}),g[6]=j,g[7]=h):h=g[7],g[8]!==C||g[9]!==b||g[10]!==I||g[11]!==x||g[12]!==T||g[13]!==h?(f=(0,t.jsx)(i.Button,{ref:I,variant:T,label:h,onClick:C,disabled:b,size:x}),g[8]=C,g[9]=b,g[10]=I,g[11]=x,g[12]=T,g[13]=h,g[14]=f):f=g[14],f}])},933912,e=>{"use strict";let t=new Set(["organic_interjection","clarification_card_answer"]);e.s(["isFoldedInterjectionPromptType",0,function(e){return null!=e&&t.has(e)}])},369846,e=>{"use strict";var t=e.i(733783),n=e.i(908464);function i(e){let i,r,l,a,o=(0,n.c)(9);return o[0]!==e.title?(i=null!=e.title&&(0,t.jsx)("title",{children:e.title}),o[0]=e.title,o[1]=i):i=o[1],o[2]!==e.children?(r=null!=e.children&&(0,t.jsx)("defs",{children:e.children}),o[2]=e.children,o[3]=r):r=o[3],o[4]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)("path",{d:"M15.89 19.12a1 1 0 0 1 .968 1.75 10.17 10.17 0 0 1-7.133 1.02l-.305-.075-.098-.03a1 1 0 0 1 .496-1.927l.101.02.244.06a8.18 8.18 0 0 0 5.727-.818M2.856 13.315a1 1 0 0 1 1.218.72 8.15 8.15 0 0 0 2.997 4.473 1 1 0 0 1-1.116 1.656l-.085-.057-.334-.261a10.14 10.14 0 0 1-3.398-5.313 1 1 0 0 1 .718-1.218m9.096-11.45c5.597 0 10.135 4.538 10.135 10.135a10.1 10.1 0 0 1-2.027 6.082l-.066.078a1 1 0 0 1-1.533-1.28l.187-.258a8.135 8.135 0 0 0-6.695-12.756 1 1 0 0 1 0-2m-9.291 6.08a1 1 0 1 1 1.832.801 8.1 8.1 0 0 0-.636 2.438 1 1 0 0 1-1.99-.197 10 10 0 0 1 .794-3.042m4.314-4.77a1 1 0 0 1 .91 1.778l-.238.143a8.2 8.2 0 0 0-1.504 1.21 1 1 0 0 1-1.43-1.4 10.2 10.2 0 0 1 2.17-1.684z"}),o[4]=l):l=o[4],o[5]!==e||o[6]!==i||o[7]!==r?(a=(0,t.jsxs)("svg",{fill:"currentColor",viewBox:"0 0 24 24",width:"1em",height:"1em",...e,children:[i,r,l]}),o[5]=e,o[6]=i,o[7]=r,o[8]=a):a=o[8],a}i._isSVG=!0,e.s(["default",0,i])},410241,e=>{"use strict";var t=e.i(908464),n=e.i(93398),i=e.i(489653);let r={META_TERMS:"https://www.facebook.com/legal/terms",AI_TERMS:"https://www.facebook.com/legal/ai-terms",AI_TERMS_UK:"https://www.facebook.com/legal/uk-ai-terms",AI_TERMS_EU:"https://www.facebook.com/legal/eu-ai-terms",AI_TERMS_BR:"https://www.facebook.com/legal/br-ai-terms",PRIVACY_POLICY_AI_PARTNERS:"https://www.facebook.com/privacy/dialog/ai-partners",AI_AT_META_PRIVACY:"https://www.facebook.com/privacy/genai/",PRIVACY_POLICY:"https://www.facebook.com/privacy/policy",COOKIES_NOTICE:"https://www.facebook.com/legal/ai-cookies",OBJECT_TOS_LINK:"https://auth.meta.com/form/?form_id=1195697011444585",LEARN_MORE_ABOUT_PRIVACY_POLICY:"https://www.facebook.com/privacy/guide/genai"};e.s(["useLocalizedSettingsLinks",0,function(){let e,l,a,o,s=(0,t.c)(10),{locale:c}=(0,n.useEctoLocale)();if(s[0]!==c){for(let[t,n]of(e={},Object.entries(i.SettingsLinks)))e[t]=(0,i.localizeSettingsLink)(n,c);for(let[t,n]of Object.entries(r))e[t]=(0,i.localizeSettingsLink)(n,c);s[0]=c,s[1]=e}else e=s[1];let u=e;s[2]!==c?(l=e=>(0,i.localizeSettingsLink)(function(e){switch(e){case"EU":return r.AI_TERMS_EU;case"UK":return r.AI_TERMS_UK;case"BR":return r.AI_TERMS_BR;default:return r.AI_TERMS}}(e),c),s[2]=c,s[3]=l):l=s[3];let d=l;s[4]!==c?(a=e=>(0,i.localizeSettingsLink)(r.COOKIES_NOTICE,c),s[4]=c,s[5]=a):a=s[5];let m=a;return s[6]!==d||s[7]!==m||s[8]!==u?(o={links:u,getAITermsLink:d,getCookieLink:m},s[6]=d,s[7]=m,s[8]=u,s[9]=o):o=s[9],o}],410241)},213618,e=>{"use strict";var t=e.i(733783),n=e.i(908464),i=e.i(472361);e.i(675809);var r=e.i(333427);e.s(["ClientLocaleContext",0,function(e){let l,a=(0,n.c)(6),{children:o,localePromise:s,translationsPromise:c,translationPathPromise:u,nonce:d}=e,m=(0,i.use)(s),h=(0,i.use)(c),f=(0,i.use)(u);return a[0]!==o||a[1]!==d||a[2]!==m||a[3]!==h||a[4]!==f?(l=(0,t.jsx)(r.LocaleContextView,{locale:m,translations:h,translationPath:f,cacheKey:"__ECTO_I18N__",nonce:d,children:o}),a[0]=o,a[1]=d,a[2]=m,a[3]=h,a[4]=f,a[5]=l):l=a[5],l}])},848873,e=>{"use strict";var t=e.i(733783),n=e.i(908464);e.s(["EctoMetaRingIcon",0,function(e){let i,r,l,a,o,s,c,u,d,m,h,f,g,p,_,y,x,v,S,b,k,I,w,C,j,T,E=(0,n.c)(31);E[0]!==e?({width:l,height:a,className:i,...r}=e,E[0]=e,E[1]=i,E[2]=r,E[3]=l,E[4]=a):(i=E[1],r=E[2],l=E[3],a=E[4]);let L=void 0===l?22:l,A=void 0===a?22:a;return E[5]===Symbol.for("react.memo_cache_sentinel")?(o={maskType:"alpha"},E[5]=o):o=E[5],E[6]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)("mask",{id:"mask0_1_53",style:o,maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22",children:(0,t.jsx)("circle",{cx:"11",cy:"11",r:"9.24",stroke:"black",strokeWidth:"3.52"})}),E[6]=s):s=E[6],E[7]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)("rect",{width:"22",height:"22",fill:"#0033FF"}),u={mixBlendMode:"screen"},E[7]=c,E[8]=u):(c=E[7],u=E[8]),E[9]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)("g",{style:u,filter:"url(#filter0_f_1_53)",children:(0,t.jsx)("circle",{cx:"2.2",cy:"19.8",r:"13.2",fill:"#006FFF"})}),E[9]=d):d=E[9],E[10]===Symbol.for("react.memo_cache_sentinel")?(m=(0,t.jsx)("g",{filter:"url(#filter1_f_1_53)",children:(0,t.jsx)("circle",{cx:"-0.000153542",cy:"22",r:"8.8",fill:"#00D1AE"})}),h={mixBlendMode:"screen"},E[10]=m,E[11]=h):(m=E[10],h=E[11]),E[12]===Symbol.for("react.memo_cache_sentinel")?(f=(0,t.jsx)("g",{style:h,filter:"url(#filter2_f_1_53)",children:(0,t.jsx)("circle",{cx:"19.7999",cy:"2.2",r:"13.2",fill:"#931EFA"})}),E[12]=f):f=E[12],E[13]===Symbol.for("react.memo_cache_sentinel")?(g=(0,t.jsx)("g",{filter:"url(#filter3_f_1_53)",children:(0,t.jsx)("circle",{cx:"21.9998",cy:"3.91006e-05",r:"8.8",fill:"#F24EED"})}),p={mixBlendMode:"soft-light"},E[13]=g,E[14]=p):(g=E[13],p=E[14]),E[15]===Symbol.for("react.memo_cache_sentinel")?(_=(0,t.jsx)("g",{style:p,filter:"url(#filter4_f_1_53)",children:(0,t.jsx)("circle",{cx:"11",cy:"11",r:"7.48",stroke:"white",strokeOpacity:"0.24",strokeWidth:"1.1"})}),y={mixBlendMode:"soft-light"},E[15]=_,E[16]=y):(_=E[15],y=E[16]),E[17]===Symbol.for("react.memo_cache_sentinel")?(x=(0,t.jsx)("g",{clipPath:"url(#clip0_1_53)",children:(0,t.jsxs)("g",{clipPath:"url(#clip1_1_53)",children:[s,(0,t.jsxs)("g",{mask:"url(#mask0_1_53)",children:[c,d,m,f,g,_,(0,t.jsx)("g",{style:y,filter:"url(#filter5_f_1_53)",children:(0,t.jsx)("ellipse",{cx:"11",cy:"11",rx:"11",ry:"11",stroke:"white",strokeOpacity:"0.2",strokeWidth:"0.88"})})]})]})}),E[17]=x):x=E[17],E[18]===Symbol.for("react.memo_cache_sentinel")?(v=(0,t.jsxs)("filter",{id:"filter0_f_1_53",x:"-24.2",y:"-6.59998",width:"52.8",height:"52.8",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,t.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,t.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,t.jsx)("feGaussianBlur",{stdDeviation:"6.6",result:"effect1_foregroundBlur_1_53"})]}),E[18]=v):v=E[18],E[19]===Symbol.for("react.memo_cache_sentinel")?(S=(0,t.jsxs)("filter",{id:"filter1_f_1_53",x:"-17.6002",y:"4.40004",width:"35.2",height:"35.2",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,t.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,t.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,t.jsx)("feGaussianBlur",{stdDeviation:"4.4",result:"effect1_foregroundBlur_1_53"})]}),E[19]=S):S=E[19],E[20]===Symbol.for("react.memo_cache_sentinel")?(b=(0,t.jsxs)("filter",{id:"filter2_f_1_53",x:"-6.60008",y:"-24.2",width:"52.8",height:"52.8",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,t.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,t.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,t.jsx)("feGaussianBlur",{stdDeviation:"6.6",result:"effect1_foregroundBlur_1_53"})]}),E[20]=b):b=E[20],E[21]===Symbol.for("react.memo_cache_sentinel")?(k=(0,t.jsxs)("filter",{id:"filter3_f_1_53",x:"4.39985",y:"-17.6",width:"35.2",height:"35.2",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,t.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,t.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,t.jsx)("feGaussianBlur",{stdDeviation:"4.4",result:"effect1_foregroundBlur_1_53"})]}),E[21]=k):k=E[21],E[22]===Symbol.for("react.memo_cache_sentinel")?(I=(0,t.jsxs)("filter",{id:"filter4_f_1_53",x:"1.86998",y:"1.86999",width:"18.26",height:"18.26",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,t.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,t.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,t.jsx)("feGaussianBlur",{stdDeviation:"0.55",result:"effect1_foregroundBlur_1_53"})]}),E[22]=I):I=E[22],E[23]===Symbol.for("react.memo_cache_sentinel")?(w=(0,t.jsxs)("filter",{id:"filter5_f_1_53",x:"-1.54",y:"-1.54",width:"25.08",height:"25.08",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,t.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,t.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,t.jsx)("feGaussianBlur",{stdDeviation:"0.55",result:"effect1_foregroundBlur_1_53"})]}),E[23]=w):w=E[23],E[24]===Symbol.for("react.memo_cache_sentinel")?(C=(0,t.jsx)("clipPath",{id:"clip0_1_53",children:(0,t.jsx)("rect",{width:"22",height:"22",fill:"white"})}),E[24]=C):C=E[24],E[25]===Symbol.for("react.memo_cache_sentinel")?(j=(0,t.jsxs)("defs",{children:[v,S,b,k,I,w,C,(0,t.jsx)("clipPath",{id:"clip1_1_53",children:(0,t.jsx)("rect",{width:"22",height:"22",fill:"white"})})]}),E[25]=j):j=E[25],E[26]!==i||E[27]!==A||E[28]!==r||E[29]!==L?(T=(0,t.jsxs)("svg",{width:L,height:A,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:i,...r,children:[x,j]}),E[26]=i,E[27]=A,E[28]=r,E[29]=L,E[30]=T):T=E[30],T}])},525175,e=>{"use strict";e.s(["generateAssetManagerCdnUrl",0,function(e,t,n="1x",i){return`https://static.xx.fbcdn.net/assets/?set=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}&density=${n}${null==i?"":"&mode="+i}`}])},529712,273828,e=>{"use strict";var t=e.i(733783),n=e.i(908464),i=e.i(472361),r=e.i(235338),l=e.i(526796),a=e.i(840387),o=e.i(525175);let s={"gmail-inset-settings":"connectorGoogleGmail","google-calendar-rounded":"connectorGoogleCal","google-contacts":"connectorGoogleContatcs","google-drive":"connectorGoogleDrive","outlook-contacts":"connectorMicrosoftContacts","microsoft-outlook":"connectorMicrosoftOutlook","microsoft-outlook-cal":"connectorMicrosoftCal"},c={google_drive:"gdrive"};function u(e){let t=e?.trim().toLowerCase();return t?c[t]??t:null}function d(e){return e?.trim()||null}function m(e,t){let n=d(t);return null==n?null:e.localOverrideByIntegrationId.get(n)??e.serverStatusByIntegrationId.get(n)??null}e.s(["getConnectorIconUrl",0,function(e){let t=e?.trim()||"connectorGeneric",n=s[t]??t;return(0,o.generateAssetManagerCdnUrl)("hatch_connector_logos",n,"3")},"normalizeConnectorCatalogSlug",0,u],273828);let h=(0,a.createClientLogger)("EctoConnectorStatusContext"),f=e.r(724199);function g(){let e={serverStatusByIntegrationId:new Map,localOverrideByIntegrationId:new Map,iconAssetByIntegrationId:new Map,iconAssetBySlug:new Map,slugByIntegrationId:new Map},t=new Set,n=n=>{n!==e&&(e=n,t.forEach(e=>e()))};return{getSnapshot:()=>e,subscribe:e=>(t.add(e),()=>{t.delete(e)}),populateConnectorStatuses:t=>{n(function(e,t){let n=new Map(e.serverStatusByIntegrationId),i=new Map(e.localOverrideByIntegrationId),r=new Map(e.iconAssetByIntegrationId),l=new Map(e.iconAssetBySlug),a=new Map(e.slugByIntegrationId);for(let e of t){let t=e.iconAsset?.trim()||null,o=u(e.slug);null!=o&&l.set(o,t);let s=d(e.integrationId);null!=s&&(r.set(s,t),null!=o&&a.set(s,o)),null!=e.status&&(null!=s&&(n.set(s,e.status),i.delete(s)),null!=o&&(n.set(o,e.status),i.delete(o)))}return{serverStatusByIntegrationId:n,localOverrideByIntegrationId:i,iconAssetByIntegrationId:r,iconAssetBySlug:l,slugByIntegrationId:a}}(e,t))},markConnectorStatus:(t,i)=>{n(function(e,t,n){let i=d(t);if(null==i)return e;let r=new Map(e.localOverrideByIntegrationId);return r.set(i,n),{serverStatusByIntegrationId:e.serverStatusByIntegrationId,localOverrideByIntegrationId:r,iconAssetByIntegrationId:e.iconAssetByIntegrationId,iconAssetBySlug:e.iconAssetBySlug,slugByIntegrationId:e.slugByIntegrationId}}(e,t,i))}}}let p=g(),_=(0,i.createContext)(null),y=(0,i.createContext)({populateConnectorStatuses:()=>{},refreshConnectorStatuses:()=>Promise.resolve(),markConnectorLinked:()=>{},markConnectorUnlinked:()=>{}});function x(e){h.error({error:e},"Failed to refresh connector statuses")}e.s(["EctoConnectorStatusProvider",0,function(e){let a,o,s,c,u,d,m,h,p,v,S,b=(0,n.c)(26),{children:k}=e,[I]=(0,i.useState)(g),w=(0,r.useRelayEnvironment)(),C=(0,l.useOptionalAuth)(),j=(0,i.useRef)(null),T=(0,i.useRef)(0);b[0]!==I?(a=e=>{I.populateConnectorStatuses(e)},b[0]=I,b[1]=a):a=b[1];let E=a;b[2]!==C?.isAuthenticated||b[3]!==w||b[4]!==I?(o=async e=>{let{respectTtl:t,forceNetwork:n}=void 0===e?{}:e;if(C?.isAuthenticated!==!0)return;let i=Date.now();if(void 0!==t&&t&&i-T.current<3e5)return;if(null!=j.current)return j.current;let l=(0,r.fetchQuery)(w,f,{},{fetchPolicy:"network-only",...void 0!==n&&n?{networkCacheConfig:{metadata:{bypassPreloadStore:!0}}}:{}}).toPromise().then(e=>{T.current=Date.now(),I.populateConnectorStatuses(e?.viewer?.connectorStatuses?.map(e=>({integrationId:e.integrationId,status:e.status,slug:e.slug,iconAsset:e.iconAsset}))??[])}).catch(x).finally(()=>{j.current===l&&(j.current=null)});return j.current=l,l},b[2]=C?.isAuthenticated,b[3]=w,b[4]=I,b[5]=o):o=b[5],C?.isAuthenticated;let L=o;b[6]!==L?(s=()=>{L()},c=[L],b[6]=L,b[7]=s,b[8]=c):(s=b[7],c=b[8]),(0,i.useEffect)(s,c),b[9]!==L?(u=()=>{let e=()=>{"hidden"!==document.visibilityState&&L({respectTtl:!0,forceNetwork:!0})};return window.addEventListener("focus",e),document.addEventListener("visibilitychange",e),()=>{window.removeEventListener("focus",e),document.removeEventListener("visibilitychange",e)}},d=[L],b[9]=L,b[10]=u,b[11]=d):(u=b[10],d=b[11]),(0,i.useEffect)(u,d),b[12]!==I?(m=e=>{I.markConnectorStatus(e,"CONNECTED")},h=e=>{I.markConnectorStatus(e,"DISCONNECTED")},b[12]=I,b[13]=m,b[14]=h):(m=b[13],h=b[14]),b[15]!==E||b[16]!==L||b[17]!==m||b[18]!==h?(p={populateConnectorStatuses:E,refreshConnectorStatuses:L,markConnectorLinked:m,markConnectorUnlinked:h},b[15]=E,b[16]=L,b[17]=m,b[18]=h,b[19]=p):p=b[19];let A=p;return b[20]!==A||b[21]!==k?(v=(0,t.jsx)(y.Provider,{value:A,children:k}),b[20]=A,b[21]=k,b[22]=v):v=b[22],b[23]!==I||b[24]!==v?(S=(0,t.jsx)(_.Provider,{value:I,children:v}),b[23]=I,b[24]=v,b[25]=S):S=b[25],S},"useConnectorAnalyticsIdentity",0,function(){let e,t=(0,n.c)(2),r=(0,i.useContext)(_)??p,l=(0,i.useSyncExternalStore)(r.subscribe,r.getSnapshot,r.getSnapshot);return t[0]!==l?(e=e=>{let t;return t=d(e)??"",{connector_slug:l.slugByIntegrationId.get(t)??t,connector_app_id:t}},t[0]=l,t[1]=e):e=t[1],e},"useConnectorIconAssets",0,function(e){let t,r=(0,n.c)(3),l=(0,i.useContext)(_)??p,a=(0,i.useSyncExternalStore)(l.subscribe,l.getSnapshot,l.getSnapshot);if(r[0]!==e||r[1]!==a)t=e.map(e=>{let t=u(e);if(null!=t&&a.iconAssetBySlug.has(t))return a.iconAssetBySlug.get(t)??null;let n=d(e);if(null!=n&&a.iconAssetByIntegrationId.has(n))return a.iconAssetByIntegrationId.get(n)??null}),r[0]=e,r[1]=a,r[2]=t;else t=r[2];return t},"useConnectorStatus",0,function(e){let t,r=(0,n.c)(3),l=(0,i.useContext)(_)??p,a=(0,i.useSyncExternalStore)(l.subscribe,l.getSnapshot,l.getSnapshot);return r[0]!==e||r[1]!==a?(t=m(a,e),r[0]=e,r[1]=a,r[2]=t):t=r[2],t},"useConnectorStatusActions",0,function(){return(0,i.useContext)(y)},"useConnectorStatuses",0,function(e){let t,r=(0,n.c)(5),l=(0,i.useContext)(_)??p,a=(0,i.useSyncExternalStore)(l.subscribe,l.getSnapshot,l.getSnapshot);if(r[0]!==e||r[1]!==a){let n;r[3]!==a?(n=e=>m(a,e),r[3]=a,r[4]=n):n=r[4],t=e.map(n),r[0]=e,r[1]=a,r[2]=t}else t=r[2];return t}],529712)},683610,e=>{"use strict";var t=e.i(594582);e.s(["getTempUserAuth",0,function(){return(0,t.getTempUserAuth)()},"setTempUserAuth",0,function(e,n,i,r){(0,t.setTempUserAuth)(e,n,i,r)}])},224123,e=>{"use strict";var t=e.i(683610);(0,e.i(840387).createClientLogger)("updateTempUserCredentials"),e.s(["updateTempUserCredentials",0,function(e,n,i,r){(0,t.setTempUserAuth)(e,void 0,n,r),i(e,n,r)}])},726756,e=>{"use strict";var t=e.i(733783),n=e.i(908464),i=e.i(472361);let r=(0,i.createContext)(null);e.s(["BugnubDialogProvider",0,function(e){let l,a,o,s=(0,n.c)(6),{children:c}=e,[u,d]=(0,i.useState)(!1);s[0]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{d(!0)},s[0]=l):l=s[0];let m=l;return s[1]!==u?(a={openDeveloperDialog:m,isOpen:u,setIsOpen:d},s[1]=u,s[2]=a):a=s[2],s[3]!==c||s[4]!==a?(o=(0,t.jsx)(r.Provider,{value:a,children:c}),s[3]=c,s[4]=a,s[5]=o):o=s[5],o},"useBugnubDialog",0,function(){let e=(0,i.useContext)(r);if(!e)throw Error("useBugnubDialog must be used within BugnubDialogProvider");return e}])},511038,e=>{"use strict";var t=e.i(733783),n=e.i(908464),i=e.i(472361);let r=(0,i.createContext)({rankingSessionId:""});function l(){return(0,i.useContext)(r)}e.s(["RequestParamsProvider",0,function(e){let i,l,a=(0,n.c)(5),{children:o,rankingSessionId:s}=e;a[0]!==s?(i={rankingSessionId:s},a[0]=s,a[1]=i):i=a[1];let c=i;return a[2]!==o||a[3]!==c?(l=(0,t.jsx)(r.Provider,{value:c,children:o}),a[2]=o,a[3]=c,a[4]=l):l=a[4],l},"useRequestParams",0,l,"useVibesFeedUrl",0,function(e){let t,i,r=(0,n.c)(5),{rankingSessionId:a}=l();r[0]!==e?(t=e?JSON.stringify(e):"",r[0]=e,r[1]=t):t=r[1];let o=t;if(r[2]!==a||r[3]!==o){let e=new URLSearchParams(o?JSON.parse(o):void 0);a&&e.set("rsid",a),i=e.toString(),r[2]=a,r[3]=o,r[4]=i}else i=r[4];let s=i;return s?`/vibes?${s}`:"/vibes"}])},523691,e=>{"use strict";var t=e.i(733783),n=e.i(908464),i=e.i(472361);let r=(0,i.createContext)(void 0);e.s(["NonceProvider",0,function(e){let i,l=(0,n.c)(3),{children:a,nonce:o}=e;return l[0]!==a||l[1]!==o?(i=(0,t.jsx)(r.Provider,{value:o,children:a}),l[0]=a,l[1]=o,l[2]=i):i=l[2],i},"useNonce",0,function(){return(0,i.useContext)(r)}])},75208,e=>{"use strict";var t=e.i(733783),n=e.i(908464),i=e.i(516266);e.s(["Toaster",0,function(){let e,r,l,a=(0,n.c)(3);return a[0]===Symbol.for("react.memo_cache_sentinel")?(e={left:0,right:0},a[0]=e):e=a[0],a[1]===Symbol.for("react.memo_cache_sentinel")?(r={success:void 0,error:void 0,warning:void 0,info:void 0,loading:void 0},a[1]=r):r=a[1],a[2]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)(i.Toaster,{position:"top-center",mobileOffset:e,className:"isolate z-[10000]",icons:r,toastOptions:{unstyled:!0,style:{width:"fit-content",maxWidth:"min(320px, calc(100vw - 32px))"},classNames:{toast:"pointer-events-auto left-0 right-0 mx-auto w-fit flex items-center bg-fill-blur-thick backdrop-blur-elevation-03 text-text-primary text-subheadline-medium shadow-blur-elevation-02 rounded-32 max-w-[min(320px,calc(100vw-32px))] sm:max-w-[400px] min-h-[60px] py-3 px-5 gap-2",title:"text-text-primary",description:"text-text-secondary",icon:"text-icon-primary p-0.5",actionButton:"pointer-events-auto bg-fill-tertiary text-text-primary whitespace-nowrap px-3 py-1.5 rounded-full text-subheadline-medium",cancelButton:"pointer-events-auto bg-fill-secondary text-text-secondary"}}}),a[2]=l):l=a[2],l}])},541655,e=>{"use strict";var t=e.i(733783),n=e.i(908464);function i(e){let i,r,l,a,o,s=(0,n.c)(10);s[0]!==e?({size:r,...i}=e,s[0]=e,s[1]=i,s[2]=r):(i=s[1],r=s[2]);let c=void 0===r?32:r;return s[3]!==i.title?(l=null!=i.title&&(0,t.jsx)("title",{children:i.title}),s[3]=i.title,s[4]=l):l=s[4],s[5]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)("path",{d:"M6.125 16a.884.884 0 0 0 .038.255l.013.038a.87.87 0 0 0 .145.26l.06.066 7.5 7.5a.876.876 0 0 0 1.238-1.239l-6.006-6.005H25a.875.875 0 1 0 0-1.75H9.113l6.006-6.006A.876.876 0 0 0 13.88 7.88l-7.5 7.5a.91.91 0 0 0-.187.278.87.87 0 0 0-.066.284l-.002.03-.001.028z",fill:"currentColor"}),s[5]=a):a=s[5],s[6]!==i||s[7]!==c||s[8]!==l?(o=(0,t.jsxs)("svg",{viewBox:"0 0 32 32",fill:"none",width:c,height:c,...i,children:[l,a]}),s[6]=i,s[7]=c,s[8]=l,s[9]=o):o=s[9],o}i._isSVG=!0,e.s(["default",0,i])},478624,e=>{"use strict";var t;let n={fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useFetchTempUserCredentialsMutation",selections:t=[{alias:null,args:null,concreteType:"FetchTempUserCredentialsPayload",kind:"LinkedField",name:"fetchTempUserCredentials",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"success",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"tosIsAccepted",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"errorType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"errorMessage",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"accessToken",storageKey:null},{alias:null,args:null,concreteType:"TempUserViewerContext",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isAuthenticated",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"abraUserId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isTOSAccepted",storageKey:null}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"useFetchTempUserCredentialsMutation",selections:t},params:{id:"2943394199ee6545d1f0c69d5b6e577f",metadata:{},name:"useFetchTempUserCredentialsMutation",operationKind:"mutation",text:null}};n.hash="811a0fb69d5df41d52c2fc28cce1d37e",e.s(["default",0,n])},932410,e=>{"use strict";var t=e.i(908464),n=e.i(235338);let i=(0,e.i(840387).createClientLogger)("useFetchTempUserCredentials"),r=e.r(478624);function l(e){let t=e.getRoot().getLinkedRecord("viewer");t&&(t.setValue(!0,"isTOSAccepted"),t.setValue(!0,"isUserTemporary"))}e.s(["useFetchTempUserCredentials",0,function(){let e,a,o=(0,t.c)(6),s=(0,n.useRelayEnvironment)(),[c,u]=(0,n.useMutation)(r);o[0]!==c||o[1]!==s?(e=e=>{let{onSuccess:t,onNoCredentials:r,onError:a}=void 0===e?{}:e;c({variables:{},onCompleted:e=>{let o=e.fetchTempUserCredentials;if(!o){i.error({},"No response from fetchTempUserCredentials mutation"),a?.({type:"UNKNOWN",message:"No response from mutation"});return}if(!o.success)return void("STEFI_ERROR"===o.errorType?r?.():a?.({type:o.errorType??"UNKNOWN",message:o.errorMessage??"Unknown error"}));if(!o.accessToken||!o.viewer?.abraUserId)return void r?.();let c=o.accessToken,u=o.viewer.abraUserId,d=o.tosIsAccepted??!1;d&&(0,n.commitLocalUpdate)(s,l),t?.({accessToken:c,abraUserId:u,tosIsAccepted:d})},onError:e=>{i.error({error:e},"Failed to fetch temp user credentials"),a?.({type:"NETWORK_ERROR",message:e.message})}})},o[0]=c,o[1]=s,o[2]=e):e=o[2];let d=e;return o[3]!==d||o[4]!==u?(a={fetchCredentials:d,isInFlight:u},o[3]=d,o[4]=u,o[5]=a):a=o[5],a}])},831213,e=>{"use strict";var t=e.i(733783),n=e.i(908464),i=e.i(267989),r=e.i(314516),l=e.i(898097),a=e.i(932281),o=e.i(448),s=e.i(526796),c=e.i(848873),u=e.i(698859),d=e.i(898251),m=e.i(272600),h=e.i(369835),f=e.i(422770);function g(e){let g,p,_,y,x,v,S,b=(0,n.c)(15),{containerClassName:k}=e,{isLoggedIn:I,logout:w}=(0,s.useAuth)(),[C]=(0,u.useEctoLoginCallback)();b[0]===Symbol.for("react.memo_cache_sentinel")?(g={eventName:h.EctoClickEvent.LOGGED_OUT_LOGIN_CLICK,actionTarget:"EctoGeoGatedPage",actionType:"click"},b[0]=g):g=b[0];let{ref:j,onClick:T}=(0,m.useTrackedClickRef)(g);b[1]===Symbol.for("react.memo_cache_sentinel")?(p={eventName:f.EctoImpressionEvent.ACCESS_INTERSTITIAL_GEO_IMPRESSION,actionTarget:"EctoAccessInterstitial"},b[1]=p):p=b[1];let{ref:E}=(0,d.useTrackedImpressionRef)(p);return b[2]===Symbol.for("react.memo_cache_sentinel")?(_=(0,t.jsx)(c.EctoMetaRingIcon,{width:48,height:48}),b[2]=_):_=b[2],b[3]===Symbol.for("react.memo_cache_sentinel")?(y=(0,t.jsx)(l.Text,{variant:"title-1",color:"primary",isPrimaryHeading:!0,textAlign:"center",children:i.fbt._("Meta AI isn't available yet in your country",null,{hk:"WqIxK"})}),b[3]=y):y=b[3],b[4]===Symbol.for("react.memo_cache_sentinel")?(x=(0,t.jsx)(l.Text,{variant:"subheadline",color:"secondary",as:"p",textAlign:"center",children:i.fbt._("In the meantime, you can learn more about AI at Meta. {learnMoreLink}",[i.fbt._param("learnMoreLink",(0,t.jsx)(o.EctoLink,{href:"https://ai.meta.com/",target:"_blank",textStyle:"subheadline",variant:"secondary",color:"link",children:i.fbt._("Learn more",null,{hk:"3WIPcW"})}))],{hk:"C0KFG"})}),b[4]=x):x=b[4],b[5]!==C||b[6]!==I||b[7]!==T||b[8]!==j||b[9]!==w?(v=I?(0,t.jsx)(a.Button,{variant:"flat",onClick:w,label:i.fbs._("Log out of Meta AI",null,{hk:"1UzaN"})}):(0,t.jsxs)(r.Flexbox,{direction:"column",gap:2,alignItems:"center",children:[(0,t.jsx)(l.Text,{variant:"subheadline",color:"secondary",as:"p",textAlign:"center",children:i.fbt._("Accessing Meta AI while traveling?",null,{hk:"2mOJD0"})}),(0,t.jsx)(a.Button,{variant:"primary",ref:j,onClick:()=>{T(),C()},label:i.fbs._("Log in to Meta AI",null,{hk:"3oWTjg"})})]}),b[5]=C,b[6]=I,b[7]=T,b[8]=j,b[9]=w,b[10]=v):v=b[10],b[11]!==k||b[12]!==E||b[13]!==v?(S=(0,t.jsxs)(r.Flexbox,{ref:E,direction:"column",alignItems:"center",justifyContent:"center",gap:4,className:k,children:[_,y,x,v]}),b[11]=k,b[12]=E,b[13]=v,b[14]=S):S=b[14],S}var p=e.i(410241);function _(e){let a,s,u,m,h,g,_=(0,n.c)(13),{tosRegion:y,containerClassName:x}=e,{links:v,getAITermsLink:S}=(0,p.useLocalizedSettingsLinks)(),b=y??"ROW";_[0]!==S||_[1]!==b?(a=S(b),_[0]=S,_[1]=b,_[2]=a):a=_[2];let k=a;_[3]===Symbol.for("react.memo_cache_sentinel")?(s={eventName:f.EctoImpressionEvent.ACCESS_INTERSTITIAL_AGE_IMPRESSION,actionTarget:"EctoAccessInterstitial"},_[3]=s):s=_[3];let{ref:I}=(0,d.useTrackedImpressionRef)(s);return _[4]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(c.EctoMetaRingIcon,{width:48,height:48}),_[4]=u):u=_[4],_[5]===Symbol.for("react.memo_cache_sentinel")?(m=(0,t.jsx)(l.Text,{variant:"title-1",color:"primary",isPrimaryHeading:!0,textAlign:"center",children:i.fbt._("Based on the information you provided, you're unable to use Meta AI",null,{hk:"3A2okd"})}),_[5]=m):m=_[5],_[6]!==k||_[7]!==v.META_TERMS?(h=(0,t.jsx)(l.Text,{variant:"subheadline",color:"secondary",as:"p",textAlign:"center",className:"max-w-150",children:i.fbt._("Learn more about Meta's {termsLink} and {aiTermsLink}.",[i.fbt._param("termsLink",(0,t.jsx)(o.EctoLink,{href:v.META_TERMS,target:"_blank",textStyle:"subheadline",variant:"secondary",color:"link",children:i.fbt._("Terms",null,{hk:"2lXgDt"})})),i.fbt._param("aiTermsLink",(0,t.jsx)(o.EctoLink,{href:k,target:"_blank",textStyle:"subheadline",variant:"secondary",color:"link",children:i.fbt._("AI Terms",null,{hk:"3T7aNY"})}))],{hk:"M4cme"})}),_[6]=k,_[7]=v.META_TERMS,_[8]=h):h=_[8],_[9]!==x||_[10]!==I||_[11]!==h?(g=(0,t.jsxs)(r.Flexbox,{ref:I,direction:"column",alignItems:"center",justifyContent:"center",gap:4,className:x,children:[u,m,h]}),_[9]=x,_[10]=I,_[11]=h,_[12]=g):g=_[12],g}function y(e){let a,o,s,u,m,h=(0,n.c)(7),{containerClassName:g}=e;h[0]===Symbol.for("react.memo_cache_sentinel")?(a={eventName:f.EctoImpressionEvent.ACCESS_INTERSTITIAL_INTEGRITY_IMPRESSION,actionTarget:"EctoAccessInterstitial"},h[0]=a):a=h[0];let{ref:p}=(0,d.useTrackedImpressionRef)(a);return h[1]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(c.EctoMetaRingIcon,{width:48,height:48}),h[1]=o):o=h[1],h[2]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(l.Text,{variant:"title-1",color:"primary",isPrimaryHeading:!0,textAlign:"center",children:i.fbt._("You can't use Meta AI right now",null,{hk:"3zoLMm"})}),h[2]=s):s=h[2],h[3]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(l.Text,{variant:"subheadline",color:"secondary",as:"p",textAlign:"center",children:i.fbt._("Please try again later.",null,{hk:"4oHjx4"})}),h[3]=u):u=h[3],h[4]!==g||h[5]!==p?(m=(0,t.jsxs)(r.Flexbox,{ref:p,direction:"column",alignItems:"center",justifyContent:"center",gap:4,className:g,children:[o,s,u]}),h[4]=g,h[5]=p,h[6]=m):m=h[6],m}function x(e){let a,o,s,u,m,h=(0,n.c)(7),{containerClassName:g}=e;h[0]===Symbol.for("react.memo_cache_sentinel")?(a={eventName:f.EctoImpressionEvent.ACCESS_INTERSTITIAL_RATE_LIMIT_IMPRESSION,actionTarget:"EctoAccessInterstitial"},h[0]=a):a=h[0];let{ref:p}=(0,d.useTrackedImpressionRef)(a);return h[1]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(c.EctoMetaRingIcon,{width:48,height:48}),h[1]=o):o=h[1],h[2]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(l.Text,{variant:"title-1",color:"primary",isPrimaryHeading:!0,textAlign:"center",children:i.fbt._("You're sending too many requests.",null,{hk:"3zquSJ"})}),h[2]=s):s=h[2],h[3]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(l.Text,{variant:"subheadline",color:"secondary",as:"p",textAlign:"center",children:i.fbt._("Please try again later.",null,{hk:"4sgP6B"})}),h[3]=u):u=h[3],h[4]!==g||h[5]!==p?(m=(0,t.jsxs)(r.Flexbox,{ref:p,direction:"column",alignItems:"center",justifyContent:"center",gap:4,className:g,children:[o,s,u]}),h[4]=g,h[5]=p,h[6]=m):m=h[6],m}e.s(["EctoErrorPageContent",0,function(e){let i=(0,n.c)(9),{blockReason:r,tosRegion:l,containerClassName:a}=e;switch(r){case"geo":{let e;return i[0]!==a?(e=(0,t.jsx)(g,{containerClassName:a}),i[0]=a,i[1]=e):e=i[1],e}case"age":{let e;return i[2]!==a||i[3]!==l?(e=(0,t.jsx)(_,{tosRegion:l,containerClassName:a}),i[2]=a,i[3]=l,i[4]=e):e=i[4],e}case"integrity":{let e;return i[5]!==a?(e=(0,t.jsx)(y,{containerClassName:a}),i[5]=a,i[6]=e):e=i[6],e}case"rate_limit":case"user_rate_limit":{let e;return i[7]!==a?(e=(0,t.jsx)(x,{containerClassName:a}),i[7]=a,i[8]=e):e=i[8],e}default:return null}}],831213)},644241,e=>{"use strict";var t=e.i(733783),n=e.i(908464),i=e.i(472361);let r=(0,i.createContext)(null);function l(){return window.self!==window.top}e.s(["EmbedProvider",0,function(e){let i,l,a=(0,n.c)(6),{children:o,isFramed:s,isEmbedded:c}=e;return a[0]!==c||a[1]!==s?(i={isFramed:s,isEmbedded:c},a[0]=c,a[1]=s,a[2]=i):i=a[2],a[3]!==o||a[4]!==i?(l=(0,t.jsx)(r.Provider,{value:i,children:o}),a[3]=o,a[4]=i,a[5]=l):l=a[5],l},"useIsEmbedded",0,function(){return(0,i.useContext)(r)?.isEmbedded??l()},"useIsFramed",0,function(){return(0,i.useContext)(r)?.isFramed??l()}])},857311,e=>{"use strict";(0,e.i(840387).createClientLogger)("snaplBuffer");let t="/api/snapl",n=["started_playing","completed","error"],i=[],r=!1,l=!1,a=!1;async function o(e){if(a||l||0===i.length)return;let n={events:[...i],timestamp:Date.now()};i=[];let r=JSON.stringify(n);l=!0;try{if(e&&navigator.sendBeacon){let e=new Blob([r],{type:"application/json"});if(navigator.sendBeacon(t,e))return}(await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:r,credentials:"same-origin",keepalive:!0})).ok}catch{}finally{l=!1}}e.s(["addSnaplEvent",0,function(e){!a&&(i.length>=50&&i.shift(),i.push(e),n.includes(e.event_name)&&o(!1))},"disableSnaplLogging",0,function(){a=!0},"initSnaplBuffer",0,function(){a||r||(r=!0,window.setInterval(()=>{o(!1)},1e4),window.addEventListener("beforeunload",()=>{o(!0)}))}])},543655,e=>{"use strict";var t=e.i(733783),n=e.i(908464),i=e.i(211376),r=e.i(442869),l=e.i(932281),a=e.i(314516),o=e.i(267989);e.s(["EctoErrorFallback",0,function(e){let s,c,u,d,m,h,f,g,p=(0,n.c)(17),{error:_,reset:y,title:x,description:v}=e,S=void 0===x?"Something went wrong":x;return p[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(i.default,{className:"text-text-destructive h-12 w-12"}),p[0]=s):s=p[0],p[1]!==S?(c=(0,t.jsx)("h3",{className:"text-title-3-emphasized",children:S}),p[1]=S,p[2]=c):c=p[2],p[3]!==v?(u=v&&(0,t.jsx)("p",{className:"text-text-secondary text-subheadline",children:v}),p[3]=v,p[4]=u):u=p[4],p[5]!==_.message?(d=(0,t.jsx)("p",{className:"text-text-secondary text-subheadline max-w-md",children:_.message}),p[5]=_.message,p[6]=d):d=p[6],p[7]!==c||p[8]!==u||p[9]!==d?(m=(0,t.jsxs)(a.Flexbox,{direction:"column",alignItems:"center",gap:2,className:"text-center",children:[c,u,d]}),p[7]=c,p[8]=u,p[9]=d,p[10]=m):m=p[10],p[11]===Symbol.for("react.memo_cache_sentinel")?(h=o.fbs._("Try again",null,{hk:"3G8Mqr"}),p[11]=h):h=p[11],p[12]!==y?(f=(0,t.jsx)(l.Button,{onClick:y,variant:"flat",size:"36",label:h,leadingIcon:r.default}),p[12]=y,p[13]=f):f=p[13],p[14]!==m||p[15]!==f?(g=(0,t.jsxs)(a.Flexbox,{direction:"column",grow:1,alignItems:"center",justifyContent:"center",gap:4,className:"p-8",children:[s,m,f]}),p[14]=m,p[15]=f,p[16]=g):g=p[16],g}])},986691,940990,e=>{"use strict";var t=e.i(733783),n=e.i(908464);function i(e){let i,r,l,a,o,s=(0,n.c)(10);return s[0]!==e.title?(i=null!=e.title&&(0,t.jsx)("title",{children:e.title}),s[0]=e.title,s[1]=i):i=s[1],s[2]!==e.children?(r=null!=e.children&&(0,t.jsx)("defs",{children:e.children}),s[2]=e.children,s[3]=r):r=s[3],s[4]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)("path",{d:"M15 13a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"}),a=(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.662 2h4.676a3 3 0 0 1 2.846 2.051L17.5 5h2.237c1.34 0 2.508.89 2.735 2.21.26 1.508.528 3.697.528 6.29s-.269 4.782-.528 6.29c-.227 1.32-1.396 2.21-2.735 2.21H4.263c-1.34 0-2.508-.89-2.735-2.21A37.532 37.532 0 0 1 1 13.5c0-2.593.269-4.782.528-6.29C1.755 5.89 2.923 5 4.263 5H6.5l.316-.949A3 3 0 0 1 9.662 2zM17 13a5 5 0 1 1-10 0 5 5 0 0 1 10 0z"}),s[4]=l,s[5]=a):(l=s[4],a=s[5]),s[6]!==e||s[7]!==i||s[8]!==r?(o=(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em",...e,children:[i,r,l,a]}),s[6]=e,s[7]=i,s[8]=r,s[9]=o):o=s[9],o}i._isSVG=!0,e.s(["default",0,i],986691);var r=e.i(472361),l=e.i(375055),a=e.i(267989),o=e.i(840387),s=e.i(196769),c=e.i(526796);let u=(0,o.createClientLogger)("useUploadProfilePicture"),d={maxFileSize:0xa00000,maxFilesPerUpload:1,supportedMimeTypes:[{mimeType:"image/jpeg",extensions:[".jpg",".jpeg"],category:"image"},{mimeType:"image/png",extensions:[".png"],category:"image"},{mimeType:"image/gif",extensions:[".gif"],category:"image"},{mimeType:"image/webp",extensions:[".webp"],category:"image"}]};e.s(["useUploadProfilePicture",0,function(){let e,t,i,o,m=(0,n.c)(6),[h,f]=(0,r.useState)(!1),{accessToken:g}=(0,c.useAuth)(),p=(0,r.useRef)(g);m[0]!==g?(e=()=>{p.current=g},m[0]=g,m[1]=e):e=m[1],(0,r.useEffect)(e),m[2]===Symbol.for("react.memo_cache_sentinel")?(t=async(e,t,n)=>{if(!p.current){u.error({fileName:e.name},"Authentication required for profile picture uploads"),n?.(a.fbs._("Something went wrong. Please try again.",null,{hk:"2tCAPz"}));return}f(!0);try{let n=await (0,s.uploadFileDirectToRupload)(e,p.current);t&&t(n)}catch(t){u.error({error:t,fileName:e.name},"Failed to upload profile picture"),n?.(a.fbs._("Something went wrong. Please try again.",null,{hk:"2tCAPz"}))}f(!1)},m[2]=t):t=m[2];let _=t;m[3]===Symbol.for("react.memo_cache_sentinel")?(i=async(e,t,n)=>{try{try{(0,l.validateFile)(e.size,e.type,e.name,d)}catch(e){if(e instanceof Error){if(e.message.includes("File too large"))throw Error(`File too large. Maximum size is ${d.maxFileSize/1048576} MB`,{cause:e});else if(e.message.includes("Unsupported file type"))throw Error(`Unsupported file type. Supported types: ${(0,l.getSupportedFileTypesDisplay)(["image"],d)}`,{cause:e})}throw e}}catch(t){let e=t instanceof Error?t.message:"Validation failed";u.error({error:e},"Profile picture validation failed"),n?.(e);return}_(e,t,n)},m[3]=i):i=m[3];let y=i;return m[4]!==h?(o={uploadFile:y,isUploading:h},m[4]=h,m[5]=o):o=m[5],o}],940990)},871779,e=>{"use strict";var t=e.i(733783),n=e.i(908464),i=e.i(472361),r=e.i(81926),l=e.i(549186),a=e.i(392839),o=e.i(321013),s=e.i(326496);let c=["light","dark"],u=["system","light","dark"],d=["default","dense","airy"],m=["blue","green","red","purple","pink","orange","monochrome"];async function h(e,t){let n=function({preference:e,style:t,accentColor:n,connectorsDismissed:i}){if("system"===e&&"default"===t&&"blue"===n&&!i)return null;let r={};return"system"!==e&&(r.mode=e),"default"!==t&&(r.style=t),"blue"!==n&&(r.accent=n),i&&(r.connectorsDismissed=!0),JSON.stringify(r)}(t);null===n?await e.deleteCookie(s.SETTINGS_COOKIES.THEME):await e.writeCookie(s.SETTINGS_COOKIES.THEME,n)}e.s(["ThemeProvider",0,function(e){var s,f,g,p;let _,y,x,v,S,b,k,I,w,C,j,T,E,L,A,O,N,B,P,F,M,R,U,z,D,V,G,K=(0,n.c)(53);(K[0]!==e?({children:_,serverTheme:k,serverPreference:S,serverStyle:b,serverAccentColor:x,serverConnectorsDismissed:v,...y}=e,K[0]=e,K[1]=_,K[2]=y,K[3]=x,K[4]=v,K[5]=S,K[6]=b,K[7]=k):(_=K[1],y=K[2],x=K[3],v=K[4],S=K[5],b=K[6],k=K[7]),K[8]!==k)?(I="dark"===(s=k)?s:"light",K[8]=k,K[9]=I):I=K[9];let $=I;K[10]!==S?(f=S,w=u.includes(f)?f:"system",K[10]=S,K[11]=w):w=K[11];let Y=w;K[12]!==b?(C=(g=b)&&d.includes(g)?g:"normal"===g?"default":"nova"===g?"dense":"maia"===g?"airy":"default",K[12]=b,K[13]=C):C=K[13];let W=C;K[14]!==x?(j=(p=x)&&m.includes(p)?p:"blue",K[14]=x,K[15]=j):j=K[15];let q=j,[H,J]=(0,i.useState)(Y),Q=(0,r.useMediaQuery)("(prefers-color-scheme: dark)"),Z=(0,l.useIsClient)();e:{if("system"!==H){T=H;break e}if(!Z){T=$;break e}T=Q?"dark":"light"}let X=T,[ee,et]=(0,i.useState)(W),[en,ei]=(0,i.useState)(q),[er,el]=(0,i.useState)(v??!1),[ea,eo]=(0,i.useState)(!1),es=(0,a.useCookieMonster)(),ec=(0,i.useRef)(!0);K[16]!==X?(E=()=>{if(ec.current){ec.current=!1;return}let e=window.document.documentElement;e.classList.remove(...c),e.classList.add(X)},L=[X],K[16]=X,K[17]=E,K[18]=L):(E=K[17],L=K[18]),(0,i.useEffect)(E,L),K[19]!==ee?(A=()=>{window.document.documentElement.setAttribute("data-style",ee)},O=[ee],K[19]=ee,K[20]=A,K[21]=O):(A=K[20],O=K[21]),(0,i.useEffect)(A,O),K[22]!==en?(N=()=>{window.document.documentElement.setAttribute("data-accent-color",en)},B=[en],K[22]=en,K[23]=N,K[24]=B):(N=K[23],B=K[24]),(0,i.useEffect)(N,B),K[25]!==en||K[26]!==er||K[27]!==es||K[28]!==ee||K[29]!==H?(P={cookieMonster:es,preference:H,style:ee,accentColor:en,connectorsDismissed:er},K[25]=en,K[26]=er,K[27]=es,K[28]=ee,K[29]=H,K[30]=P):P=K[30];let eu=(0,i.useRef)(P);K[31]!==en||K[32]!==er||K[33]!==es||K[34]!==ee||K[35]!==H?(F=()=>{eu.current={cookieMonster:es,preference:H,style:ee,accentColor:en,connectorsDismissed:er}},K[31]=en,K[32]=er,K[33]=es,K[34]=ee,K[35]=H,K[36]=F):F=K[36],(0,i.useEffect)(F),K[37]===Symbol.for("react.memo_cache_sentinel")?(M=e=>{let{cookieMonster:t,...n}=eu.current;h(t,{...n,preference:e}),J(e)},K[37]=M):M=K[37];let ed=M;K[38]===Symbol.for("react.memo_cache_sentinel")?(R=e=>{let{cookieMonster:t,...n}=eu.current;h(t,{...n,style:e}),et(e)},K[38]=R):R=K[38];let em=R;K[39]===Symbol.for("react.memo_cache_sentinel")?(U=e=>{let{cookieMonster:t,...n}=eu.current;h(t,{...n,accentColor:e}),ei(e)},K[39]=U):U=K[39];let eh=U;K[40]===Symbol.for("react.memo_cache_sentinel")?(z=e=>{let{cookieMonster:t,...n}=eu.current;h(t,{...n,connectorsDismissed:e}),el(e)},K[40]=z):z=K[40];let ef=z;K[41]===Symbol.for("react.memo_cache_sentinel")?(D=e=>{eo(e)},K[41]=D):D=K[41];let eg=D;K[42]!==en||K[43]!==er||K[44]!==ea||K[45]!==X||K[46]!==ee||K[47]!==H?(V={theme:X,themePreference:H,setTheme:ed,styleTheme:ee,setStyleTheme:em,accentColor:en,setAccentColor:eh,connectorsDismissed:er,setConnectorsDismissed:ef,homePromoDismissed:ea,setHomePromoDismissed:eg},K[42]=en,K[43]=er,K[44]=ea,K[45]=X,K[46]=ee,K[47]=H,K[48]=V):V=K[48];let ep=V;return K[49]!==_||K[50]!==y||K[51]!==ep?(G=(0,t.jsx)(o.ThemeProviderContext.Provider,{...y,value:ep,children:_}),K[49]=_,K[50]=y,K[51]=ep,K[52]=G):G=K[52],G}])},188258,e=>{"use strict";var t=e.i(733783),n=e.i(908464),i=e.i(472361),r=e.i(262252);let l=(0,i.createContext)(null),a=e=>e;function o(){}function s(){}e.s(["ConversationListDisplayProvider",0,function(e){let i,o,s=(0,n.c)(8),{children:c}=e,[u,d]=(0,r.useLocalStorageState)("ecto_conversation_display_mode","default",a,a),[m,h]=(0,r.useLocalStorageState)("ecto_conversation_group_by","day",a,a);return s[0]!==u||s[1]!==m||s[2]!==d||s[3]!==h?(i={displayMode:u,groupBy:m,setDisplayMode:d,setGroupBy:h},s[0]=u,s[1]=m,s[2]=d,s[3]=h,s[4]=i):i=s[4],s[5]!==c||s[6]!==i?(o=(0,t.jsx)(l.Provider,{value:i,children:c}),s[5]=c,s[6]=i,s[7]=o):o=s[7],o},"useConversationListDisplay",0,function(){let e=(0,n.c)(1),t=(0,i.useContext)(l);if(!t){let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={displayMode:"default",groupBy:"day",setDisplayMode:s,setGroupBy:o},e[0]=t):t=e[0],t}return t}])},992941,e=>{"use strict";var t=e.i(594582),n=e.i(826158);let i="ecto_developer_overrides";function r(){return(0,n.readJsonFromStorage)("local",i,null)}function l(e){window[t.RELAY_API_CONFIG_KEY]||(window[t.RELAY_API_CONFIG_KEY]={viewerId:null}),e?window[t.RELAY_API_CONFIG_KEY].devSettings=e:delete window[t.RELAY_API_CONFIG_KEY].devSettings}e.s(["clearLocalDeveloperSettings",0,function(){try{localStorage.removeItem(i),l(null)}catch{}},"getLocalDeveloperSettings",0,r,"initializeRelayDevSettings",0,function(){let e=r();e&&l(e)},"saveLocalDeveloperSettings",0,function(e){try{localStorage.setItem(i,JSON.stringify(e)),l(e)}catch{}}])},54530,e=>{"use strict";var t=e.i(908464),n=e.i(472361),i=e.i(42961);e.s(["useKeyboardShortcutRegistry",0,function(){let e=(0,n.useContext)(i.KeyboardShortcutsContext);if(!e)throw Error("useKeyboardShortcutRegistry must be used within EctoKeyboardShortcutsProvider");return e},"useShortcuts",0,function(){let e,r,l=(0,t.c)(3),a=(0,n.useContext)(i.KeyboardShortcutsContext);if(!a)throw Error("useShortcuts must be used within EctoKeyboardShortcutsProvider");return l[0]!==a?(e=()=>a.getShortcuts(),r=()=>a.getShortcuts(),l[0]=a,l[1]=e,l[2]=r):(e=l[1],r=l[2]),(0,n.useSyncExternalStore)(a.subscribe,e,r)}])},907921,e=>{"use strict";var t=e.i(472361);let n=(0,t.createContext)(null);e.s(["CommandPaletteContext",0,n,"useCommandPalette",0,function(){let e=(0,t.useContext)(n);if(!e)throw Error("useCommandPalette must be used within EctoCommandPaletteProvider");return e}])},974735,e=>{"use strict";var t=e.i(733783),n=e.i(908464),i=e.i(472361);let r=(0,i.createContext)({setUnpinnedConversationsConnectionId:()=>{},getUnpinnedConversationsConnectionId:()=>void 0});e.s(["ConversationsConnectionProvider",0,function(e){let l,a,o=(0,n.c)(3),{children:s}=e,c=(0,i.useRef)(void 0);o[0]===Symbol.for("react.memo_cache_sentinel")?(l={setUnpinnedConversationsConnectionId(e){c.current=e},getUnpinnedConversationsConnectionId:()=>c.current},o[0]=l):l=o[0];let u=l;return o[1]!==s?(a=(0,t.jsx)(r.Provider,{value:u,children:s}),o[1]=s,o[2]=a):a=o[2],a},"useConversationsConnectionContext",0,function(){return(0,i.useContext)(r)}])},865057,127654,855367,e=>{"use strict";var t=e.i(908464),n=e.i(840387),i=e.i(299168),r=e.i(377423),l=e.i(954405),a=e.i(472361);function o(e,t=5e3){let n=null,i=()=>{n=setTimeout(()=>{n=null,e()},t)};return i(),{reset:()=>{null!=n&&clearTimeout(n),i()},cancel:()=>{null!=n&&(clearTimeout(n),n=null)}}}function s(e){let t=0,n=0,i=0,r=0;for(let l of e)l.name.includes("/_next/")&&l.name.endsWith(".js")&&(0!==l.transferSize||0!==l.encodedBodySize)&&(i++,t+=l.encodedBodySize,0===l.transferSize&&l.encodedBodySize>0&&(r++,n+=l.encodedBodySize));let l=t-n,a=t>0?n/t:0;return{totalBytes:t,cachedBytes:n,networkBytes:l,cacheRate:a,resourceCount:i,cachedCount:r}}function c(){let e,n,i,r,l=(0,t.c)(4),o=(0,a.useRef)(null);l[0]===Symbol.for("react.memo_cache_sentinel")?(e=[],l[0]=e):e=l[0];let c=(0,a.useRef)(e);l[1]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{if(o.current&&(o.current.disconnect(),o.current=null),c.current=[],"u"{c.current.push(...e.getEntries())});e.observe({type:"resource",buffered:!1}),o.current=e}catch{}},l[1]=n):n=l[1];let d=n;l[2]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{o.current&&(o.current.disconnect(),o.current=null);let e=c.current;return(c.current=[],0===e.length)?null:s(e)},l[2]=i):i=l[2];let m=i;return l[3]===Symbol.for("react.memo_cache_sentinel")?(r={captureInitialLoadCacheStats:u,startNavigationTracking:d,captureNavigationCacheStats:m},l[3]=r):r=l[3],r}function u(){if("u"f,"shouldIgnoreElement",()=>h],855367);class d{io;inViewport=new WeakSet;pendingTypes=new WeakMap;onVisible;constructor(e){this.onVisible=e,this.io=new IntersectionObserver(e=>{for(let t of e){if(this.io.unobserve(t.target),t.isIntersecting){this.inViewport.add(t.target);let e=this.pendingTypes.get(t.target)??"domMutation";this.onVisible(t.target,e)}this.pendingTypes.delete(t.target)}})}observe(e,t){if(!h(e)){if(this.inViewport.has(e))return void this.onVisible(e,t);this.pendingTypes.set(e,t),this.io.observe(e)}}has(e){return this.inViewport.has(e)}hasMatchInViewport(e){return null!==this.getMatchInViewport(e)}getMatchInViewport(e){for(let t of document.querySelectorAll(e))if(this.inViewport.has(t))return t;return null}disconnect(){this.io.disconnect()}}let m=["class","style","src","srcset","width","height","hidden"];function h(e){return!e.isConnected||!("function"!=typeof e.checkVisibility||e.checkVisibility({checkVisibilityCSS:!0,contentVisibilityAuto:!0}))||!!e.closest("[data-radix-portal], [data-ignore-initial-load]")}function f(e,t){let n=new d(e),i=t?.shouldFilterByViewport,r=(t,r)=>{i&&!i()?h(t)||e(t,r):n.observe(t,r)},l=new MutationObserver(t=>{let l=null!=i&&!i();for(let i of t)if("childList"===i.type)if(l)i.target instanceof Element&&r(i.target,"domMutation");else{for(let e of i.addedNodes)e.nodeType===Node.ELEMENT_NODE&&r(e,"domMutation");for(let t of i.removedNodes)t.nodeType===Node.ELEMENT_NODE&&n.has(t)&&e(i.target,"domRemoval")}else"attributes"===i.type&&i.target instanceof Element&&r(i.target,"attribute")});return l.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:m}),{observer:l,tracker:n,disconnect:()=>{l.disconnect(),n.disconnect()}}}(0,n.createClientLogger)("useInitialLoadVitals");let g={},p=[],_={addVitalData(e){let t={...g};switch(e.name){case"CLS":case"INP":case"FCP":case"TTFB":t[e.name.toLocaleLowerCase()]=Math.round(e.value);break;case"LCP":{let n={value:Math.round(e.value)},i=e.entries[0]?.element;if(i){let e=(i.getAttribute("class")??"").replaceAll(" ",".");n.lcpElement=`${i.tagName.toLowerCase()}.${e}`}t.lcp=n;break}default:return}for(let e of(g=t,p))e()},subscribe:e=>(p=[...p,e],()=>{p=p.filter(t=>t!==e)}),getSnapshot:()=>g};function y(){let e=v;"hidden"===document.visibilityState&&e();let t=[],n=x;for(let i of(document.addEventListener("visibilitychange",e),["click","keydown","scroll","pointerdown"])){let e=()=>n(i);t.push({type:i,handler:e}),addEventListener(i,e,{once:!0,capture:!0,passive:!0})}return()=>{for(let{type:n,handler:i}of(document.removeEventListener("visibilitychange",e),t))removeEventListener(n,i,{capture:!0})}}function x(e){l.initialLoadSingleton.setAnnotationBool("contaminated_by_interaction",!0),l.initialLoadSingleton.setAnnotation("contaminated_type",e)}function v(){"hidden"===document.visibilityState&&l.initialLoadSingleton.setAnnotationBool("is_hidden",!0)}function S(){l.initialLoadSingleton.isInitialLoadCompleted()||l.initialLoadSingleton.timeoutInitialLoad()}function b(){l.initialLoadSingleton.setAnnotationBool("lcp_timeout",!0),l.initialLoadSingleton.completeInitialLoad()}e.A(844558).then(({onCLS:e,onINP:t,onLCP:n,onFCP:i,onTTFB:r})=>{e(_.addVitalData),t(_.addVitalData),n(_.addVitalData,{reportAllChanges:!0}),i(_.addVitalData),r(_.addVitalData)}),e.s(["useInitialLoadVitals",0,function(){let e,n,s,u,d,m,h,g=(0,t.c)(10),p=(0,i.usePageTracePolicy)(),x=(0,a.useRef)(null),v=(0,a.useRef)(!1),k=(0,a.useRef)(!1),I=(0,a.useRef)(null),{captureInitialLoadCacheStats:w}=c(),C=(0,a.useRef)(w);g[0]!==w?(e=()=>{C.current=w},g[0]=w,g[1]=e):e=g[1],(0,a.useEffect)(e),g[2]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{if(v.current&&k.current){var e;let t=C.current();t&&(e=l.initialLoadSingleton,e.setAnnotationInt("js_cache_total_bytes",t.totalBytes),e.setAnnotationInt("js_cache_cached_bytes",t.cachedBytes),e.setAnnotationInt("js_cache_network_bytes",t.networkBytes),e.setAnnotationDouble("js_cache_rate",t.cacheRate),e.setAnnotationInt("js_cache_resource_count",t.resourceCount),e.setAnnotationInt("js_cache_cached_count",t.cachedCount)),l.initialLoadSingleton.completeInitialLoad()}k.current&&setTimeout(b,3e4)},g[2]=n):n=g[2];let j=n;g[3]!==p?(s=()=>{let e=null,t=null;return null!=p&&null==x.current&&(x.current=p,l.initialLoadSingleton.hasInitialLoadStarted()||((0,r.initLoggingInterval)(),I.current=e=function(e,t){let n=!1,{disconnect:i}=f((e,t)=>{m(e,t)},{shouldFilterByViewport:t}),r=()=>{n||(n=!0,e(c,u,d),i())},l=!1,a=o(r,5e3),s=()=>{n||l||(l=!0,a.cancel(),a=o(r,1e3))},c=Date.now(),u="",d="",m=(e,i)=>{c=Date.now();let r=(e.getAttribute("class")??"").replaceAll(" ","."),o=e.tagName.toLowerCase();d=`${o}.${r}`,u=i,n||(!l&&t()?s():a.reset())};return{cleanup:()=>{n=!0,a.cancel(),i()},onLCP:s}}((e,t,n)=>{l.initialLoadSingleton.addPoint("lastMutationMs",void 0,e-performance.timeOrigin),l.initialLoadSingleton.setAnnotation("lastMutationType",t),l.initialLoadSingleton.setAnnotation("lastMutationNode",n),k.current=!0,j()},()=>v.current),l.initialLoadSingleton.startInitialLoad(x.current),t=setTimeout(S,6e4))),()=>{e?.cleanup(),I.current=null,null!=t&&clearTimeout(t)}},u=[p,x,j],g[3]=p,g[4]=s,g[5]=u):(s=g[4],u=g[5]),(0,a.useEffect)(s,u);let T=(0,a.useSyncExternalStore)(_.subscribe,_.getSnapshot,_.getSnapshot);g[6]!==T?(d=()=>{for(let e in T)if(!l.initialLoadSingleton.hasPoint(e)){let t=T[e];"lcp"==e&&(v.current=!0,I.current?.onLCP(),j()),null!=t&&Number.isInteger(t)?l.initialLoadSingleton.addPoint(e,void 0,t):"object"==typeof t&&Object.hasOwn(t,"lcpElement")&&null!=t.lcpElement&&null!=t.value&&Number.isInteger(t.value)&&(l.initialLoadSingleton.addPoint(e,{string:{element:t.lcpElement}},t.value),l.initialLoadSingleton.setAnnotation("lcpElement",t.lcpElement))}},m=[T,x,v,j],g[6]=T,g[7]=d,g[8]=m):(d=g[7],m=g[8]),(0,a.useEffect)(d,m),g[9]===Symbol.for("react.memo_cache_sentinel")?(h=[],g[9]=h):h=g[9],(0,a.useEffect)(y,h)},"webVitalsStore",0,_],865057)},620359,e=>{"use strict";var t=e.i(733783),n=e.i(908464),i=e.i(472361),r=e.i(823886);let l=(0,i.createContext)({isAccessAllowed:!0,blockReason:null,tosRegion:null,blockAccess:()=>{},blockAccessWithReason:()=>{}});function a(e){let t,r,l=(0,n.c)(6),{accessCheckPromise:a,blockAccessWithReason:o}=e,{isAllowed:s,blockReason:c,tosRegion:u}=(0,i.use)(a);return l[0]!==o||l[1]!==c||l[2]!==s||l[3]!==u?(t=()=>{s||null===c||o(c,u??"ROW")},r=[s,c,u,o],l[0]=o,l[1]=c,l[2]=s,l[3]=u,l[4]=t,l[5]=r):(t=l[4],r=l[5]),(0,i.useLayoutEffect)(t,r),null}function o(){return(0,i.useContext)(l)}e.s(["AccessGateProvider",0,function(e){let o,s,c,u,d,m=(0,n.c)(12),{children:h,accessCheckPromise:f}=e,[g,p]=(0,i.useState)(!0),[_,y]=(0,i.useState)(null),[x,v]=(0,i.useState)(null);m[0]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{p(!1)},m[0]=o):o=m[0];let S=o;m[1]===Symbol.for("react.memo_cache_sentinel")?(s=(e,t)=>{y(e),v(t),p(!1)},m[1]=s):s=m[1];let b=s;m[2]!==_||m[3]!==g||m[4]!==x?(c={isAccessAllowed:g,blockReason:_,tosRegion:x,blockAccess:S,blockAccessWithReason:b},m[2]=_,m[3]=g,m[4]=x,m[5]=c):c=m[5];let k=c;return m[6]!==f?(u=f&&(0,t.jsx)(r.EctoErrorBoundary,{fallback:null,children:(0,t.jsx)(i.Suspense,{fallback:null,children:(0,t.jsx)(a,{accessCheckPromise:f,blockAccessWithReason:b})})}),m[6]=f,m[7]=u):u=m[7],m[8]!==h||m[9]!==u||m[10]!==k?(d=(0,t.jsxs)(l.Provider,{value:k,children:[u,h]}),m[8]=h,m[9]=u,m[10]=k,m[11]=d):d=m[11],d},"AccessGatedContent",0,function(e){let i,r=(0,n.c)(3),{children:l}=e,{isAccessAllowed:a}=o();return r[0]!==l||r[1]!==a?(i=a?(0,t.jsx)(t.Fragment,{children:l}):null,r[0]=l,r[1]=a,r[2]=i):i=r[2],i},"useAccessGate",0,o])},632327,e=>{"use strict";var t=e.i(908464),n=e.i(457327);e.s(["useTOSLinkClickLoggers",0,function(e){let i,r,l,a,o,s,c,u,d,m=(0,t.c)(33),h=(0,n.useInteractionLoggerWithLazyData)();m[0]!==e||m[1]!==h?(i=()=>{h({eventName:"nux_click",actionTarget:e,actionType:"click",clickItem:"ai_terms",metadata:{clickItem:"ai_terms"}})},m[0]=e,m[1]=h,m[2]=i):i=m[2];let f=i;m[3]!==e||m[4]!==h?(r=()=>{h({eventName:"nux_click",actionTarget:e,actionType:"click",clickItem:"ai_at_meta_privacy",metadata:{clickItem:"ai_at_meta_privacy"}})},m[3]=e,m[4]=h,m[5]=r):r=m[5];let g=r;m[6]!==e||m[7]!==h?(l=()=>{h({eventName:"nux_click",actionTarget:e,actionType:"click",clickItem:"privacy_policy",metadata:{clickItem:"privacy_policy"}})},m[6]=e,m[7]=h,m[8]=l):l=m[8];let p=l;m[9]!==e||m[10]!==h?(a=()=>{h({eventName:"nux_click",actionTarget:e,actionType:"click",clickItem:"privacy_policy_ai_partners",metadata:{clickItem:"privacy_policy_ai_partners"}})},m[9]=e,m[10]=h,m[11]=a):a=m[11];let _=a;m[12]!==e||m[13]!==h?(o=()=>{h({eventName:"nux_click",actionTarget:e,actionType:"click",clickItem:"learn_more_about_privacy_policy",metadata:{clickItem:"learn_more_about_privacy_policy"}})},m[12]=e,m[13]=h,m[14]=o):o=m[14];let y=o;m[15]!==e||m[16]!==h?(s=()=>{h({eventName:"nux_click",actionTarget:e,actionType:"click",clickItem:"cookies_notice",metadata:{clickItem:"cookies_notice"}})},m[15]=e,m[16]=h,m[17]=s):s=m[17];let x=s;m[18]!==e||m[19]!==h?(c=()=>{h({eventName:"nux_click",actionTarget:e,actionType:"click",clickItem:"object_tos_link",metadata:{clickItem:"object_tos_link"}})},m[18]=e,m[19]=h,m[20]=c):c=m[20];let v=c;m[21]!==e||m[22]!==h?(u=()=>{h({eventName:"nux_click",actionTarget:e,actionType:"click",clickItem:"terms",metadata:{clickItem:"terms"}})},m[21]=e,m[22]=h,m[23]=u):u=m[23];let S=u;return m[24]!==g||m[25]!==f||m[26]!==x||m[27]!==y||m[28]!==v||m[29]!==_||m[30]!==p||m[31]!==S?(d={logNuxAITermsClick:f,logNuxAIAtMetaPrivacyClick:g,logNuxPrivacyPolicyClick:p,logNuxPrivacyPolicyAIPartnersClick:_,logNuxLearnMoreAboutPrivacyPolicyClick:y,logNuxCookiesNoticeClick:x,logNuxObjectTOSLinkClick:v,logNuxTermsClick:S},m[24]=g,m[25]=f,m[26]=x,m[27]=y,m[28]=v,m[29]=_,m[30]=p,m[31]=S,m[32]=d):d=m[32],d}])},366484,e=>{"use strict";var t,n,i,r,l,a,o;let s={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"input"}],kind:"Fragment",metadata:null,name:"useAcceptTOSForLoggedOutMutation",selections:[{alias:null,args:n=[{kind:"Variable",name:"input",variableName:"input"}],concreteType:"AcceptTOSForLoggedOutPayload",kind:"LinkedField",name:"acceptTOSForLoggedOut",plural:!1,selections:[i={alias:null,args:null,kind:"ScalarField",name:"success",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"isUnderage",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"error",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"accessToken",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"viewer",plural:!1,selections:[o={alias:null,args:null,kind:"ScalarField",name:"abraUserId",storageKey:null}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"useAcceptTOSForLoggedOutMutation",selections:[{alias:null,args:n,concreteType:"AcceptTOSForLoggedOutPayload",kind:"LinkedField",name:"acceptTOSForLoggedOut",plural:!1,selections:[i,r,l,a,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},o,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:"b261ab6e1703affc238a2dc3fafb3b1f",metadata:{},name:"useAcceptTOSForLoggedOutMutation",operationKind:"mutation",text:null}};s.hash="77ff52ded974575ed9d42d85a3ce3792",e.s(["default",0,s])},472427,76690,e=>{"use strict";var t=e.i(733783),n=e.i(908464),i=e.i(472361),r=e.i(267989),l=e.i(314516),a=e.i(349968);function o(e){return null!=e&&new Date().getFullYear()-e==13}function s(e,t){return new Date(e,t,0).getDate()}function c(e){return(0,t.jsx)(a.SelectItem,{value:String(e),children:e},e)}function u(e){return(0,t.jsx)(a.SelectItem,{value:String(e.value),children:e.label},e.value)}function d(e){return(0,t.jsx)(a.SelectItem,{value:String(e),children:e},e)}function m(e,t){return t+1}e.s(["EctoDateSelect",0,function(e){let h,f,g,p,_,y,x,v,S,b,k,I,w,C,j,T,E,L=(0,n.c)(46),{value:A,onChange:O,disabled:N}=e;L[0]===Symbol.for("react.memo_cache_sentinel")?(h=function(){let e=new Date().getFullYear(),t=[];for(let n=e;n>=1900;n--)t.push(n);return t}(),L[0]=h):h=L[0];let B=h;if(L[1]===Symbol.for("react.memo_cache_sentinel")){let e;e=new Date().getFullYear(),f=Array.from({length:12},(t,n)=>{let i=new Date(e,n,1);return{value:n+1,label:i.toLocaleDateString(void 0,{month:"long"})}}),L[1]=f}else f=L[1];let P=f;L[2]===Symbol.for("react.memo_cache_sentinel")?(g={year:null,month:null,day:null},L[2]=g):g=L[2];let[F,M]=(0,i.useState)(g),[R,U]=(0,i.useState)("");if(A&&A!==R){U(A);let e=A.split("-"),t=parseInt(e[0]??"",10),n=parseInt(e[1]??"",10),i=parseInt(e[2]??"",10);(F.year!==t||F.month!==n||F.day!==i)&&M({year:isNaN(t)?null:t,month:isNaN(n)?null:n,day:isNaN(i)?null:i})}e:{if(null!=F.month){let e,t=F.year??2020;L[3]!==F.month||L[4]!==t?(e=s(t,F.month),L[3]=F.month,L[4]=t,L[5]=e):e=L[5],p=e;break e}p=31}let z=p;L[6]!==z?(_=Array.from({length:z},m),L[6]=z,L[7]=_):_=L[7];let D=_;L[8]!==F.year?(y=o(F.year),L[8]=F.year,L[9]=y):y=L[9];let V=y;L[10]!==O?(x=(e,t,n)=>{let i=t.toString().padStart(2,"0"),r=n.toString().padStart(2,"0");O(`${e}-${i}-${r}`)},L[10]=O,L[11]=x):x=L[11];let G=x;L[12]!==G||L[13]!==F.day||L[14]!==F.month?(v=e=>{let t=parseInt(e,10);if(isNaN(t))return;let n=F.day,i=F.month;null!=n&&null!=i&&(n=Math.min(s(t,i),n)),M(e=>({...e,year:t,day:n})),o(t)?null!=i&&null!=n&&G(t,i,n):G(t,1,1)},L[12]=G,L[13]=F.day,L[14]=F.month,L[15]=v):v=L[15];let K=v;L[16]!==G||L[17]!==F.day||L[18]!==F.year?(S=e=>{let t=parseInt(e,10);if(isNaN(t))return;let n=s(F.year??2020,t),i=null!=F.day?Math.min(n,F.day):F.day;M(e=>({...e,month:t,day:i})),null!=F.year&&null!=i&&G(F.year,t,i)},L[16]=G,L[17]=F.day,L[18]=F.year,L[19]=S):S=L[19];let $=S;L[20]!==G||L[21]!==F.month||L[22]!==F.year?(b=e=>{let t=parseInt(e,10);isNaN(t)||(M(e=>({...e,day:t})),null!=F.year&&null!=F.month&&G(F.year,F.month,t))},L[20]=G,L[21]=F.month,L[22]=F.year,L[23]=b):b=L[23];let Y=b,W=null!=F.year?String(F.year):void 0;return L[24]===Symbol.for("react.memo_cache_sentinel")?(k=r.fbs._("Year",null,{hk:"1watcC"}),L[24]=k):k=L[24],L[25]===Symbol.for("react.memo_cache_sentinel")?(I=(0,t.jsx)(a.SelectTrigger,{className:"rounded-8 flex-1",size:"regular","aria-label":k,children:(0,t.jsx)(a.SelectValue,{placeholder:r.fbs._("Year",null,{hk:"3d40U"})})}),L[25]=I):I=L[25],L[26]===Symbol.for("react.memo_cache_sentinel")?(w=(0,t.jsx)(a.SelectContent,{position:"popper",children:B.map(d)}),L[26]=w):w=L[26],L[27]!==N||L[28]!==K||L[29]!==W?(C=(0,t.jsxs)(a.Select,{value:W,onValueChange:K,disabled:N,children:[I,w]}),L[27]=N,L[28]=K,L[29]=W,L[30]=C):C=L[30],L[31]!==N||L[32]!==$||L[33]!==F.month||L[34]!==V?(j=V&&(0,t.jsxs)(a.Select,{value:null!=F.month?String(F.month):void 0,onValueChange:$,disabled:N,children:[(0,t.jsx)(a.SelectTrigger,{className:"rounded-8 flex-1",size:"regular","aria-label":r.fbs._("Month",null,{hk:"1sTRoL"}),children:(0,t.jsx)(a.SelectValue,{placeholder:r.fbs._("Month",null,{hk:"1MMAhP"})})}),(0,t.jsx)(a.SelectContent,{position:"popper",children:P.map(u)})]}),L[31]=N,L[32]=$,L[33]=F.month,L[34]=V,L[35]=j):j=L[35],L[36]!==D||L[37]!==N||L[38]!==Y||L[39]!==F.day||L[40]!==V?(T=V&&(0,t.jsxs)(a.Select,{value:null!=F.day?String(F.day):void 0,onValueChange:Y,disabled:N,children:[(0,t.jsx)(a.SelectTrigger,{className:"rounded-8 flex-1",size:"regular","aria-label":r.fbs._("Day",null,{hk:"hFy11"}),children:(0,t.jsx)(a.SelectValue,{placeholder:r.fbs._("Day",null,{hk:"3eOzqS"})})}),(0,t.jsx)(a.SelectContent,{position:"popper",children:D.map(c)})]}),L[36]=D,L[37]=N,L[38]=Y,L[39]=F.day,L[40]=V,L[41]=T):T=L[41],L[42]!==C||L[43]!==j||L[44]!==T?(E=(0,t.jsxs)(l.Flexbox,{gap:2,className:"w-full",children:[C,j,T]}),L[42]=C,L[43]=j,L[44]=T,L[45]=E):E=L[45],E}],472427);var h=e.i(235338),f=e.i(633903),g=e.i(620359),p=e.i(389090),_=e.i(224123),y=e.i(840387),x=e.i(457327);let v=(0,y.createClientLogger)("useAcceptTOSForLoggedOut");function S(e){let t=e.getRoot().getLinkedRecord("viewer");t&&(t.setValue(null,"blockingDialog"),t.setValue(!0,"isTOSAccepted"),t.setValue(!0,"isUserTemporary"))}e.s(["useAcceptTOSForLoggedOut",0,function(t){let r,l,a,o=(0,n.c)(11),[s,c]=(0,i.useState)(!1),{blockAccessWithReason:u}=(0,g.useAccessGate)(),{setTempUserCredentials:d}=(0,p.useLoggedOutViewerContext)(),m=(0,x.useInteractionLoggerWithLazyData)(),y=(0,h.useRelayEnvironment)();o[0]===Symbol.for("react.memo_cache_sentinel")?(r=e.r(366484),o[0]=r):r=o[0];let[b]=(0,h.useMutation)(r);o[1]!==u||o[2]!==b||o[3]!==y||o[4]!==m||o[5]!==d||o[6]!==t?(l=async e=>(c(!0),new Promise(n=>{b({variables:{input:{dateOfBirth:e}},onCompleted:e=>{c(!1);let i=e.acceptTOSForLoggedOut;if(i?.isUnderage){m({eventName:"nux_click",actionTarget:"useAcceptTOSForLoggedOut",actionType:"click",clickItem:"accept_logged_out_tos",metadata:{clickItem:"accept_logged_out_tos",clickResult:"error",reason:"underage"}}),u("age",t),n({success:!1,error:"underage"});return}if(i?.error){m({eventName:"nux_click",actionTarget:"useAcceptTOSForLoggedOut",actionType:"click",clickItem:"accept_logged_out_tos",metadata:{clickItem:"accept_logged_out_tos",clickResult:"error"}}),n({success:!1,error:i.error});return}if(!i?.success){m({eventName:"nux_click",actionTarget:"useAcceptTOSForLoggedOut",actionType:"click",clickItem:"accept_logged_out_tos",metadata:{clickItem:"accept_logged_out_tos",clickResult:"error"}}),n({success:!1,error:"Failed to accept Terms of Service"});return}i.accessToken&&i.viewer?.abraUserId&&(0,_.updateTempUserCredentials)(i.accessToken,i.viewer.abraUserId,d,!0),(0,f.commitLocalUpdate)(y,S),m({eventName:"nux_click",actionTarget:"useAcceptTOSForLoggedOut",actionType:"click",clickItem:"accept_logged_out_tos",metadata:{clickItem:"accept_logged_out_tos",clickResult:"success"}}),n({success:!0})},onError:e=>{c(!1),v.error({error:e},"Unexpected error accepting TOS"),m({eventName:"nux_click",actionTarget:"useAcceptTOSForLoggedOut",actionType:"click",clickItem:"accept_logged_out_tos",metadata:{clickItem:"accept_logged_out_tos",clickResult:"error"}}),n({success:!1,error:e instanceof Error?e.message:"An unexpected error occurred"})}})})),o[1]=u,o[2]=b,o[3]=y,o[4]=m,o[5]=d,o[6]=t,o[7]=l):l=o[7];let k=l;return o[8]!==k||o[9]!==s?(a={isLoading:s,acceptTOSForLoggedOut:k},o[8]=k,o[9]=s,o[10]=a):a=o[10],a}],76690)},574590,e=>{"use strict";var t=e.i(733783),n=e.i(908464),i=e.i(472361),r=e.i(526796),l=e.i(683610),a=e.i(224123),o=e.i(932410);(0,e.i(840387).createClientLogger)("useInitializeTempUser");var s=e.i(389090);function c(e){let c,u,d,m,h=(0,n.c)(12),{children:f}=e,{isAuthenticated:g,accessToken:p,userId:_}=(0,r.useAuth)(),[y,x]=(0,i.useState)(p),[v,S]=(0,i.useState)(_),[b,k]=(0,i.useState)(!1),[I,w]=(0,i.useState)(!1),[C,j]=(0,i.useState)(!g);h[0]===Symbol.for("react.memo_cache_sentinel")?(c=(e,t,n)=>{x(e),S(t),k(!0),w(n)},h[0]=c):c=h[0];let T=c;h[1]!==g?(u={isAuthenticated:g,setCredentialsLoading:j,setTempUserCredentials:T},h[1]=g,h[2]=u):u=h[2],function(e){let t,r,s,c=(0,n.c)(9),{isAuthenticated:u,setCredentialsLoading:d,setTempUserCredentials:m}=e,{fetchCredentials:h}=(0,o.useFetchTempUserCredentials)(),f=(0,i.useRef)(!1);c[0]!==h||c[1]!==u||c[2]!==d||c[3]!==m?(t=()=>{if(u)return void d(!1);if(f.current)return;f.current=!0;let e=(0,l.getTempUserAuth)();if(e?.accessToken&&e?.abraUserId){(0,a.updateTempUserCredentials)(e.accessToken,e.abraUserId,m,e.tosAccepted),d(!1);return}h({onSuccess:e=>{let{accessToken:t,abraUserId:n,tosIsAccepted:i}=e;(0,a.updateTempUserCredentials)(t,n,m,i),d(!1)},onNoCredentials:()=>{d(!1)},onError:e=>{d(!1)}})},c[0]=h,c[1]=u,c[2]=d,c[3]=m,c[4]=t):t=c[4];let g=(0,i.useEffectEvent)(t);c[5]!==g?(r=()=>g(),c[5]=g,c[6]=r):r=c[6],c[7]!==u?(s=[u],c[7]=u,c[8]=s):s=c[8],(0,i.useEffect)(r,s)}(u),h[3]!==v||h[4]!==y||h[5]!==C||h[6]!==I||h[7]!==b?(d={accessToken:y,abraUserId:v,isTempUser:b,setTempUserCredentials:T,hasTOSAccepted:I,credentialsLoading:C},h[3]=v,h[4]=y,h[5]=C,h[6]=I,h[7]=b,h[8]=d):d=h[8];let E=d;return h[9]!==f||h[10]!==E?(m=(0,t.jsx)(s.LoggedOutViewerContext.Provider,{value:E,children:f}),h[9]=f,h[10]=E,h[11]=m):m=h[11],m}e.s(["LoggedOutViewerContextProvider",0,c],722971),e.i(722971),e.s(["LoggedOutViewerContext",()=>s.LoggedOutViewerContext,"LoggedOutViewerContextProvider",0,c,"LoggedOutViewerContextStaticProvider",()=>s.LoggedOutViewerContextStaticProvider,"useLoggedOutViewerContext",()=>s.useLoggedOutViewerContext],574590)},997531,e=>{e.v(e=>Promise.resolve().then(()=>e(377423)))},703188,e=>{e.v(t=>Promise.all(["static/chunks/07-ji-bk3bndc.js","static/chunks/3fsyh2h8w9a3m.js","static/chunks/0hpmsmuisik70.js","static/chunks/1had3g2z7hh5a.js","static/chunks/0za-x40j9k7xf.js","static/chunks/23lgtb2cwcgew.js","static/chunks/2k7-8ogy15og_.js","static/chunks/10on0inok_5hk.js","static/chunks/35ynn-wonk43b.js","static/chunks/0hl7fe6m_75kt.js","static/chunks/2p39dt77_-_ts.js","static/chunks/0dm2x2sd22ria.js","static/chunks/0oemwv3a3uizk.js","static/chunks/20pm1bute57p8.js","static/chunks/0ziupq62lhth0.js","static/chunks/107niqxwocwd-.js","static/chunks/03_nzpwkf4vz_.js","static/chunks/3lv9jmb7h6wfb.js","static/chunks/1h6jin8w4wrv_.js","static/chunks/44hgjagc7s814.js","static/chunks/00k37yinj-3hg.js","static/chunks/3pdfo7pkdpo21.js","static/chunks/3q9k020sd-12b.js","static/chunks/2dy_ohdprkay5.js","static/chunks/3c0ats5vdyu15.css","static/chunks/2b9lro_phzy7q.css","static/chunks/122z_5wx6m-l7.css","static/chunks/0mdmh-4-a_bn6.css","static/chunks/2m610u4p2t8ov.css","static/chunks/0mrxc77jy7fjg.css","static/chunks/1pnjz1hpehwbu.css","static/chunks/09a2ka4rxl8n6.css"].map(t=>e.l(t))).then(()=>t(512797)))},586436,e=>{e.v(t=>Promise.all(["static/chunks/373sjmm4iiqs9.js"].map(t=>e.l(t))).then(()=>t(108904)))},844558,e=>{e.v(t=>Promise.all(["static/chunks/3t8iwzjd5xim6.js"].map(t=>e.l(t))).then(()=>t(705772)))},9658,e=>{e.v(t=>Promise.all(["static/chunks/2svnllodll6pn.js"].map(t=>e.l(t))).then(()=>t(66134)))},778810,e=>{e.v(t=>Promise.all(["static/chunks/25wjl8zceidi7.js"].map(t=>e.l(t))).then(()=>t(961792)))}]); //# debugId=4f863b18-2048-92c7-5793-4b7a785b0054