;/*FB_PKG_DELIM*/ __d("CometNotificationsBadgeCountFragment_viewer.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[{kind:"RootArgument",name:"environment"}],kind:"Fragment",metadata:null,name:"CometNotificationsBadgeCountFragment_viewer",selections:[{alias:null,args:[{kind:"Variable",name:"environment",variableName:"environment"}],kind:"ScalarField",name:"notifications_unseen_count",storageKey:null}],type:"Viewer",abstractKey:null};e.exports=a}),null); __d("CometNotificationsBadgeCountQuery.graphql",["relay-runtime"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"environment"}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"CometNotificationsBadgeCountQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"CometNotificationsBadgeCountFragment_viewer"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"CometNotificationsBadgeCountQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:[{kind:"Variable",name:"environment",variableName:"environment"}],kind:"ScalarField",name:"notifications_unseen_count",storageKey:null}],storageKey:null}]},params:{id:"4886725694759503",metadata:{},name:"CometNotificationsBadgeCountQuery",operationKind:"query",text:null}}}();b("relay-runtime").PreloadableQueryRegistry.set(a.params.id,a);e.exports=a}),null); __d("MWXACIntroViewQuery.graphql",["relay-runtime"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"xacIntroNuxId"}],b=[{kind:"Variable",name:"nux_id",variableName:"xacIntroNuxId"},{kind:"Literal",name:"supported",value:["MessengerXacIntroViewRenderer"]}],c={kind:"InlineFragment",selections:[{args:null,documentName:"MWXACIntroViewQuery_xacIntroCometNux",fragmentName:"MWXACIntroFlow_introRenderer",fragmentPropName:"introRenderer",kind:"ModuleImport"}],type:"MessengerXacIntroViewRenderer",abstractKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MWXACIntroViewQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:b,concreteType:null,kind:"LinkedField",name:"messenger_xac_intro_renderer",plural:!1,selections:[c],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MWXACIntroViewQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:b,concreteType:null,kind:"LinkedField",name:"messenger_xac_intro_renderer",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},c],storageKey:null}],storageKey:null}]},params:{id:"7403839336352965",metadata:{},name:"MWXACIntroViewQuery",operationKind:"query",text:null}}}();b("relay-runtime").PreloadableQueryRegistry.set(a.params.id,a);e.exports=a}),null); __d("MWChatBadgeCountQuery.graphql",["relay-runtime"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"suppress_xac_groups"}],b=[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:"ViewerMessageThreadsConnection",kind:"LinkedField",name:"message_threads",plural:!1,selections:[{alias:null,args:[{kind:"Variable",name:"suppress_xac_groups",variableName:"suppress_xac_groups"}],kind:"ScalarField",name:"unseen_count",storageKey:null},{kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"is_loading_client_threads",storageKey:null}]}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MWChatBadgeCountQuery",selections:b,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MWChatBadgeCountQuery",selections:b},params:{id:"5218522061549416",metadata:{},name:"MWChatBadgeCountQuery",operationKind:"query",text:null}}}();b("relay-runtime").PreloadableQueryRegistry.set(a.params.id,a);e.exports=a}),null); __d("useSearchCometTypeaheadBootstrapValidationQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5837572036269296"}),null); __d("useSearchCometTypeaheadBootstrapValidationQuery.graphql",["useSearchCometTypeaheadBootstrapValidationQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{alias:null,args:[{kind:"Variable",name:"params",variableName:"input"}],concreteType:"SearchClientCachePolicyCheckResult",kind:"LinkedField",name:"search_client_cache_policy_check",plural:!1,selections:[{alias:null,args:null,concreteType:"SearchClientCachePolicyDecision",kind:"LinkedField",name:"policy_decision",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"cache_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ids_to_remove",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"force_cache_refresh",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"useSearchCometTypeaheadBootstrapValidationQuery",selections:c,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"useSearchCometTypeaheadBootstrapValidationQuery",selections:c},params:{id:b("useSearchCometTypeaheadBootstrapValidationQuery_facebookRelayOperation"),metadata:{},name:"useSearchCometTypeaheadBootstrapValidationQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("CometCalloutEdgeArrow.svg.react",["react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.xstyle;a=babelHelpers.objectWithoutPropertiesLoose(a,["xstyle"]);return h.jsxs("svg",babelHelpers["extends"]({className:c("stylex")(b),height:"12px",viewBox:"0 0 21 12",width:"21px"},a,{children:[a.title!=null&&h.jsx("title",{children:a.title}),a.children!=null&&h.jsx("defs",{children:a.children}),h.jsx("path",{d:"M20.685.12c-2.229.424-4.278 1.914-6.181 3.403L5.4 10.94c-2.026 2.291-5.434.62-5.4-2.648V.12h20.684z"})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;g["default"]=a}),98); __d("CometCalloutEdge.react",["BaseContextualLayerContextSizeContext","BaseContextualLayerLayerAdjustmentContext","BaseContextualLayerOrientationContext","BaseRow.react","BaseView.react","CometCalloutEdgeArrow.svg.react","Locale","react","useOnOutsideClick"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useContext,j={arrow:{position:"x10l6tqk",$$css:!0},container:{display:"x78zum5",$$css:!0},content:{backgroundColor:"x1h0vfkc",borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",borderTopWidth:"x178xt8z",borderEndWidth:"xm81vs4",borderBottomWidth:"xso031l",borderStartWidth:"xy80clv",boxShadow:"xofhs1l",paddingStart:"x1ye3gou",paddingEnd:"xn6708d",paddingTop:"xyamay9",paddingBottom:"x1l90r2v",$$css:!0}},k={accent:{backgroundColor:"xwnonoy",$$css:!0},"default":{backgroundColor:"x9bbmet",$$css:!0}},l={end:{borderBottomEndRadius:"x5pf9jr",marginBottom:"xieb3on",$$css:!0},middle:{marginBottom:"x12nagc",$$css:!0},start:{borderBottomStartRadius:"xo71vjh",marginBottom:"xieb3on",$$css:!0}},m={end:{borderTopEndRadius:"x13lgxp2",marginTop:"x1sy10c2",$$css:!0},middle:{marginTop:"x1gslohp",$$css:!0},start:{borderTopStartRadius:"x168nmei",marginTop:"x1sy10c2",$$css:!0}},n={end:{bottom:"x7ofzsv",end:"xds687c",transform:"xpk2tj9",$$css:!0},middle:{bottom:"x7ofzsv",end:"xds687c",$$css:!0},start:{bottom:"x7ofzsv",start:"x17qophe",$$css:!0}},o={end:{$$css:!0},middle:{$$css:!0},start:{$$css:!0}},p={end:{bottom:"x7ofzsv",end:"xds687c",transform:"xpk2tj9",$$css:!0},middle:{bottom:"x7ofzsv",end:"xds687c",$$css:!0},start:{bottom:"x7ofzsv",start:"x17qophe",$$css:!0}},q={end:{$$css:!0},middle:{$$css:!0},start:{$$css:!0}},r={end:{end:"xds687c",top:"x1nl0pjx",transform:"x19jd1h0",$$css:!0},middle:{end:"xds687c",top:"x1nl0pjx",transform:"x1oihik5",$$css:!0},start:{start:"x17qophe",top:"x1nl0pjx",transform:"x1oihik5",$$css:!0}},s={end:{transform:"x19jd1h0",$$css:!0},middle:{transform:"x1oihik5",$$css:!0},start:{transform:"x1oihik5",$$css:!0}},t={end:{end:"xds687c",top:"x1nl0pjx",transform:"x19jd1h0",$$css:!0},middle:{end:"xds687c",top:"x1nl0pjx",transform:"x1oihik5",$$css:!0},start:{start:"x17qophe",top:"x1nl0pjx",transform:"x1oihik5",$$css:!0}},u={end:{transform:"x19jd1h0",$$css:!0},middle:{transform:"x1oihik5",$$css:!0},start:{transform:"x1oihik5",$$css:!0}},v={end:"start",start:"end"};function a(a){var b,d=a.children,e=a.onOutsideClick,f=a.type;f=f===void 0?"default":f;a=a.xstyle;var g=i(c("BaseContextualLayerOrientationContext")),n=g.align;g=g.position;n=n==="stretch"?"start":n;g=g==="start"?"above":g==="end"?"below":g;var o=i(c("BaseContextualLayerContextSizeContext"));b=(b=i(c("BaseContextualLayerLayerAdjustmentContext")))!=null?b:0;n=b!==0?v[n]:n;o=y(n,(o=o==null?void 0:o.width)!=null?o:0,b);b=c("useOnOutsideClick")(e);return h.jsxs(c("BaseView.react"),{style:o,xstyle:j.container,children:[h.jsx(c("BaseRow.react"),{ref:b,xstyle:[j.content,k[f],g==="above"&&l[n],g==="below"&&m[n],a],children:d}),h.jsx(x,{align:n,position:g,type:f})]})}a.displayName=a.name+" [from "+f.id+"]";var w=c("Locale").isRTL();function x(a){var b=a.align,d=a.position;a=a.type;return h.jsx(c("CometCalloutEdgeArrow.svg.react"),{fill:a==="default"?"var(--popover-background)":"var(--accent)",xstyle:[j.arrow,d==="above"&&a==="default"&&(w?o[b]:n[b]),d==="above"&&a==="accent"&&(w?q[b]:p[b]),d==="below"&&a==="default"&&(w?s[b]:r[b]),d==="below"&&a==="accent"&&(w?u[b]:t[b])]})}x.displayName=x.name+" [from "+f.id+"]";function y(a,b,c){c=c===0?b/2:0;if(c===0)return void 0;if(a==="start")return{transform:"translateX("+(w?-1*c:c)+"px)"};return a==="end"?{transform:"translateX("+(w?c:-1*c)+"px)"}:void 0}g["default"]=a}),98); __d("CometCalloutInsetArrow.svg.react",["react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.xstyle;a=babelHelpers.objectWithoutPropertiesLoose(a,["xstyle"]);return h.jsxs("svg",babelHelpers["extends"]({className:c("stylex")(b),height:"12px",viewBox:"0 0 21 12",width:"21px"},a,{children:[a.title!=null&&h.jsx("title",{children:a.title}),a.children!=null&&h.jsx("defs",{children:a.children}),h.jsx("path",{d:"M20.685.12c-2.229.424-4.278 1.914-6.181 3.403L5.4 10.94c-2.026 2.291-5.434.62-5.4-2.648V.12h20.684z"})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;g["default"]=a}),98); __d("CometCalloutInset.react",["BaseContextualLayerContextSizeContext","BaseContextualLayerLayerAdjustmentContext","BaseContextualLayerOrientationContext","BaseRow.react","BaseView.react","CometCalloutInsetArrow.svg.react","Locale","react","useOnOutsideClick"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useContext,j={arrow:{position:"x10l6tqk",$$css:!0},container:{display:"x78zum5",$$css:!0},content:{backgroundColor:"x1h0vfkc",borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",borderTopWidth:"x178xt8z",borderEndWidth:"xm81vs4",borderBottomWidth:"xso031l",borderStartWidth:"xy80clv",boxShadow:"xofhs1l",paddingStart:"x1ye3gou",paddingEnd:"xn6708d",paddingTop:"xyamay9",paddingBottom:"x1l90r2v",$$css:!0}},k={accent:{backgroundColor:"xwnonoy",$$css:!0},"default":{backgroundColor:"x9bbmet",$$css:!0}},l={above:{marginBottom:"x1yztbdb",$$css:!0},below:{marginTop:"xw7yly9",$$css:!0},end:{marginStart:"x1d52u69",$$css:!0}},m={above:{bottom:"x1wa3icf",$$css:!0},below:{top:"x1jzctok",transform:"x1oihik5",$$css:!0},end:{$$css:!0}},n={above:{bottom:"x1wa3icf",$$css:!0},below:{top:"x1jzctok",transform:"x1oihik5",$$css:!0},end:{$$css:!0}};function a(a){var b,d=a.children,e=a.onOutsideClick,f=a.type;f=f===void 0?"default":f;a=a.xstyle;var g=i(c("BaseContextualLayerOrientationContext")),m=g.align;g=g.position;m=m==="stretch"?"start":m;g=g==="start"?"above":g==="end"?"below":g;var n=i(c("BaseContextualLayerContextSizeContext"));b=(b=i(c("BaseContextualLayerLayerAdjustmentContext")))!=null?b:0;n=q(m,g,(m=n==null?void 0:n.width)!=null?m:0,b);m=n[0];b=n[1];n=c("useOnOutsideClick")(e);return h.jsxs(c("BaseView.react"),{style:m,xstyle:j.container,children:[h.jsx(c("BaseRow.react"),{ref:n,xstyle:[j.content,k[f],l[g],a],children:d}),h.jsx(o,{arrowStyles:b,position:g,type:f})]})}a.displayName=a.name+" [from "+f.id+"]";function o(a){var b=a.arrowStyles,d=a.position;a=a.type;return h.jsx(c("CometCalloutInsetArrow.svg.react"),{fill:a==="default"?"var(--popover-background)":"var(--accent)",style:b,xstyle:[j.arrow,m[d],a==="accent"&&n[d]]})}o.displayName=o.name+" [from "+f.id+"]";var p=c("Locale").isRTL();function q(a,b,c,d){var e=Math.max(c/2-8,16)+Math.abs(d),f=c/2-8<16;c=24-c/2;if(b==="above")if(a==="start"){var g;b=p?"right":"left";return[f?{transform:"translateX("+(p?c:-c)+"px)"}:void 0,(g={},g[b]="min(calc(100% - 32px), "+e+"px)",g)]}else if(a==="end"){b=p?"left":"right";return[f?{transform:"translateX("+(p?-c:c)+"px)"}:void 0,(g={},g[b]="min(calc(100% - 32px), "+e+"px)",g)]}else{var h;b=p?"left":"right";g=(p?-d:d)-8;return[void 0,(h={},h[b]="calc(50% + "+g+"px)",h)]}else if(a==="start"){b=p?"right":"left";return[f?{transform:"translateX("+(p?c:-c)+"px)"}:void 0,(g={},g[b]="min(calc(100% - 32px), "+e+"px)",g)]}else if(a==="end"){h=p?"left":"right";return[f?{transform:"translateX("+(p?-c:c)+"px)"}:void 0,(b={},b[h]="min(calc(100% - 32px), "+e+"px)",b)]}else{g=p?"left":"right";a=(p?-d:d)-8;return[void 0,(f={},f[g]="calc(50% + "+a+"px)",f)]}}g["default"]=a}),98); __d("CometCallout.react",["fbt","ix","BaseContextualLayerOrientationContext","BaseRow.react","BaseRowItem.react","BaseView.react","CometCalloutEdge.react","CometCalloutInset.react","CometColumn.react","CometColumnItem.react","CometErrorBoundary.react","CometIcon.react","CometNUXInlineSurvey.react","CometPressable.react","TetraTextPairing.react","fbicon","react","unrecoverableViolation","useOnOutsideClick","useVisibilityObserver"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");b=d("react");var k=b.useContext,l=b.useRef,m={container:{display:"x78zum5",$$css:!0},content:{backgroundColor:"x1h0vfkc",borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",borderTopWidth:"x178xt8z",borderEndWidth:"xm81vs4",borderBottomWidth:"xso031l",borderStartWidth:"xy80clv",boxShadow:"xofhs1l",paddingStart:"x1ye3gou",paddingEnd:"xn6708d",paddingTop:"xyamay9",paddingBottom:"x1l90r2v",$$css:!0},crossoutButton:{marginEnd:"xcud41i",marginTop:"x9otpla",$$css:!0},item:{paddingStart:"x16hj40l",paddingEnd:"xsyo7zv",paddingTop:"x1yrsyyn",paddingBottom:"x10b6aqq",$$css:!0}},n={accent:{backgroundColor:"xwnonoy",$$css:!0},"default":{backgroundColor:"x9bbmet",$$css:!0}},o={above:{marginBottom:"x12nagc",$$css:!0},below:{marginTop:"x1gslohp",$$css:!0},end:{marginStart:"xsgj6o6",$$css:!0},start:{$$css:!0}};function a(a){var b=a.arrowStyle;b=b===void 0?"none":b;var e=a.hasCloseButton;e=e===void 0?!1:e;var f=a.headline,g=a.inlineSurvey,p=a.label,q=a.onClose,r=a.onHelpful,s=a.onHide,t=a.onNotHelpful,u=a.onOutsideClick,v=a.onPressCallout_experimentalDONOTUSE,w=a.onShow,x=a.profilePhoto_experimentalDONOTUSE,y=a.type;y=y===void 0?"default":y;a=a.xstyle;var z=k(c("BaseContextualLayerOrientationContext"));z=z.position;var A=l(null),B=function(){if(A.current==null){var a;A.current=(a=g==null?void 0:g.getShouldShowInlineSurvey==null?void 0:g.getShouldShowInlineSurvey())!=null?a:!1}return A.current}(),C=c("useOnOutsideClick")(u);s=c("useVisibilityObserver")({onHidden:s,onVisible:w});w=y==="default"?"primary":"white";if(z==="end"&&(b==="inset"||b==="edge"))throw c("unrecoverableViolation")('"end" position with arrow is not supported yet',"comet_ui");x=j.jsxs(c("CometColumn.react"),{children:[j.jsx(c("CometColumnItem.react"),{children:j.jsxs(c("BaseRow.react"),{children:[x!=null&&j.jsx(c("BaseRowItem.react"),{verticalAlign:"top",children:x}),j.jsx(c("BaseRowItem.react"),{expanding:!0,ref:s,verticalAlign:"center",xstyle:m.item,children:j.jsx(c("TetraTextPairing.react"),{body:p,bodyColor:w,headline:f,headlineColor:w,level:3})}),e&&j.jsx(c("BaseRowItem.react"),{xstyle:[m.crossoutButton,m.item],children:j.jsx(c("CometIcon.react"),{"aria-label":h._("__JHASH__cCrSTii9yXy__JHASH__"),color:y==="default"?"secondary":"white",icon:d("fbicon")._(i("478232"),16),onPress:q,size:16})})]})}),g==null||B!==!0?null:j.jsx(c("CometColumnItem.react"),{paddingTop:12,children:j.jsx(c("BaseRow.react"),{children:j.jsx(c("BaseRowItem.react"),{expanding:!0,verticalAlign:"center",xstyle:m.item,children:j.jsx(c("CometNUXInlineSurvey.react"),{bodyColor:y==="default"?void 0:"white",initialHasAnsweredSurvey:g.initialHasAnsweredSurvey,linkColor:y==="default"?void 0:"white",onAnswer:g.onAnswer,onHelpful:r,onNotHelpful:t})})})})]});p=v?j.jsx(c("BaseRowItem.react"),{ref:s,children:j.jsx(c("CometPressable.react"),{onPress:v,overlayDisabled:!0,children:x})}):x;if(b==="inset")return j.jsx(c("CometCalloutInset.react"),{onOutsideClick:u,type:y,xstyle:a,children:p});return b==="edge"?j.jsx(c("CometCalloutEdge.react"),{onOutsideClick:u,type:y,xstyle:a,children:p}):j.jsx(c("CometErrorBoundary.react"),{fallback:function(){return j.jsx("div",{})},children:j.jsx(c("BaseView.react"),{xstyle:m.container,children:j.jsx(c("BaseRow.react"),{ref:C,xstyle:[m.content,n[y],b==="none"&&o[z],a],children:p})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometCalloutImpl.react",["BaseContextualLayer.react","BaseContextualLayerAnchorRootContext","CometCallout.react","CometCalloutContext","LayoutAnimationBoundaryContext","react","useCometDisplayTimingTrackerForInteraction"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useContext,j=b.useEffect;function a(a){var b=a.anchorRootRefContext,d=a.animationContext,e=a.calloutID,f=a.calloutProps,g=a.contextRef,k=a.imperativeRef,l=a.scrollableAreaContext;a=c("useCometDisplayTimingTrackerForInteraction")("CometCalloutManager");var m=i(c("CometCalloutContext"));j(function(){var a=l.map(function(a){return a.getDOMNode()}).filter(Boolean),b=function(){var a;return(a=k.current)==null?void 0:a.reposition()};if(a.length>0){a.forEach(function(a){return a.addEventListener("scroll",b,{passive:!0})});return function(){a.forEach(function(a){return a.removeEventListener("scroll",b,{passive:!0})})}}},[k,l]);return m==null||f==null||g==null?null:h.jsx(c("LayoutAnimationBoundaryContext").Provider,{value:d,children:h.jsx(c("BaseContextualLayerAnchorRootContext").Provider,{value:b,children:h.jsx(c("BaseContextualLayer.react"),{align:f.align,contextRef:g,disableAutoAlign:f.disableAutoAlign,disableAutoFlip:f.disableAutoFlip,imperativeRef:k,position:f.position,ref:a,children:h.jsx(c("CometCallout.react"),{arrowStyle:f.arrowStyle,hasCloseButton:f.hasCloseButton,headline:f.headline,inlineSurvey:f.inlineSurvey,label:f.label,onClose:f.hasCloseButton===!0?function(){m.removeCallout(e),f.onClose==null?void 0:f.onClose()}:void 0,onHelpful:f.onHelpful,onHide:f.onHide,onNotHelpful:f.onNotHelpful,onOutsideClick:function(){f.disableOutsideClick!==!0&&m.removeCallout(e)},onPressCallout_experimentalDONOTUSE:f.onPressCallout_experimentalDONOTUSE,onShow:f.onShow,profilePhoto_experimentalDONOTUSE:f.profilePhoto_experimentalDONOTUSE,type:f.type,xstyle:f.xstyle})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometTopNavTabBadge.react",["CometNumberedBadge.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useEffect;function a(a){var b=a.isBadgeHidden,d=a.isTab,e=a.overflow,f=a.setBadgeCount,g=a.testid,j=a.value;g=babelHelpers.objectWithoutPropertiesLoose(a,["isBadgeHidden","isTab","overflow","setBadgeCount","testid","value"]);i(function(){f&&f(j)},[j,f]);if(b===!0||j===0)return null;a=d===!0?"red":void 0;return h.jsx(c("CometNumberedBadge.react"),babelHelpers["extends"]({},g,{color:a,overflow:e,testid:void 0,value:j}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useCometPageletVCTracker",["InteractionTracingMetrics","cr:683059","performanceNow","react"],(function(a,b,c,d,e,f,g){"use strict";e=d("react");var h=e.useCallback,i=e.useRef;function a(a){var d=i(null);return h(function(e){if(d.current!==e){d.current=e;var f;if(e){if(a.interactionUUID!=null){var g=c("InteractionTracingMetrics").get(a.interactionUUID);g&&g.vcTracker&&(f=g.vcTracker)}else b("cr:683059")&&a.excludeFromMainVC===!0&&(f=b("cr:683059").getCurrentNavigationTrace());if(f!=null){g=c("performanceNow")();a.isMutationRoot===!0&&a.interactionUUID!=null&&f.addMutationRoot(e);f.addMountPoint(e,g,a.pageletName);f.trackPagelet(e,a.pageletName,g,a.vcCallback,a.pageletType,a.excludeFromMainVC)}}}},[a])}g["default"]=a}),98); __d("CometNotificationsBadgeCount.react",["CometHeroInteractionIDContext","CometNotificationsBadgeCountFragment_viewer.graphql","CometNotificationsBadgeCountQuery.graphql","CometNumberedBadge.react","CometPlaceholder.react","CometRelay","react","setupNotificationsLiveQuery","unrecoverableViolation","useCometPageletVCTracker"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=d("react");e=d("react");var k=e.useContext,l=e.useEffect;function a(a){var e=d("CometRelay").useLazyLoadQuery(h!==void 0?h:h=b("CometNotificationsBadgeCountQuery.graphql"),{environment:"MAIN_SURFACE"});e=e.viewer;if(e==null)throw c("unrecoverableViolation")("The viewer recieving these notifications cannot be null","comet_feed");e=d("CometRelay").useFragment(i!==void 0?i:i=b("CometNotificationsBadgeCountFragment_viewer.graphql"),e);var f=(e=e==null?void 0:e.notifications_unseen_count)!=null?e:0;e=a.isBadgeHidden;var g=a.overflow,m=a.setBadgeCount,n=d("CometRelay").useRelayEnvironment();l(function(){var a=c("setupNotificationsLiveQuery")(n);return function(){return a.dispose()}},[n]);l(function(){m&&m(f)},[f,m]);a=k(c("CometHeroInteractionIDContext"));a=c("useCometPageletVCTracker")({interactionUUID:a,pageletName:"NotificationsBadge"});return j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx("span",{}),children:e!==!0&&f>0?j.jsx(c("CometNumberedBadge.react"),{overflow:g,ref:a,testid:void 0,value:f}):null})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWChatHeadError.react",["fbt","ix","CometPressable.react","MWIcon.react","MWTooltip.react","fbicon","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k={compose:{alignItems:"x6s0dn4",backgroundColor:"xcrg951",borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",display:"x78zum5",height:"xsdox4t",justifyContent:"xl56j7k",position:"x1n2onr6",width:"x1useyqa",$$css:!0},dropShadow:{boxShadow:"x1qeybcx",":hover_boxShadow":"x19xcq9t",$$css:!0}},l=h._("__JHASH__1kKkUA_eanI__JHASH__");function a(a){var b=a.contextRef;a=a.onPress;return j.jsx(c("MWTooltip.react"),{align:"end",position:"above",tooltip:l,children:j.jsx(c("CometPressable.react"),{"aria-label":l,disabled:a==null,display:"inline",onPress:a,ref:b,xstyle:function(a){return[k.compose,k.dropShadow]},children:j.jsx(c("MWIcon.react"),{icon:d("fbicon")._(i("502063"),24)})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWChatDisabled.react",["MWChatHeadError.react","react","useShouldShowMessagingEntrypointInCometRoot"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.contextRef;a=a.onPress;var d=c("useShouldShowMessagingEntrypointInCometRoot")("CHAT");return d?h.jsx("div",{className:"x1ey2m1c xds687c xixxii4",children:h.jsx("div",{className:"x191j7n5 x92rtbv x10l6tqk",children:h.jsx(c("MWChatHeadError.react"),{contextRef:b,onPress:a})})}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2Chat.react",["CometErrorBoundary.react","CometLazyPopoverTrigger.react","FBLogger","JSResourceForInteraction","MWChatDisabled.react","cr:11569","gkx","killswitch","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function i(a){var b=c("FBLogger")("messenger_browser_clients");a!=null&&(b=b.catching(a));b.warn("Error loading MWV2Chat")}var j=c("JSResourceForInteraction")("MWChatErrorStatePopover.react").__setRef("MWV2Chat.react"),k=function(a){return h.jsx(c("CometLazyPopoverTrigger.react"),{align:"end",popoverProps:{error:a},popoverResource:j,position:"above",visibleOnLoad:!1,children:function(a,b){return h.jsx(c("MWChatDisabled.react"),{contextRef:a,onPress:b})}})};function a(a){return h.jsx(c("CometErrorBoundary.react"),{fallback:k,onError:i,children:!c("gkx")("1673554")||c("killswitch")("COMET_CHAT")||!c("gkx")("1812744")?h.jsx(c("MWChatDisabled.react"),{}):b("cr:11569")&&h.jsx(b("cr:11569"),{})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWChatStateV2CompareTabs.bs",[],(function(a,b,c,d,e,f){"use strict";function a(a,b){a=a.openWatermark-b.openWatermark;if(a<0)return 1;else if(a>0)return-1;else return 0}function b(a,b){a=Math.max(a.minimizeWatermark,a.clientForcedMinimizeWatermark)-Math.max(b.minimizeWatermark,b.clientForcedMinimizeWatermark);if(a<0)return 1;else if(a>0)return-1;else return 0}f.byMostRecentOpened=a;f.byMostRecentMinimized=b}),66); __d("MWChatStateV2IsComposeTab.bs",[],(function(a,b,c,d,e,f){"use strict";function a(a){a=a.tabType;if(a.TAG===0)return!0;else return!1}f.isComposeTab=a}),66); __d("MWChatStateV2HeadGroups.bs",["MWChatStateV2CompareTabs.bs","MWChatStateV2IsComposeTab.bs","MWChatStateV2IsMinimized.bs","bs_caml_option"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,e,f){var g=a!==void 0?c("bs_caml_option").valFromOption(a):void 0;a=Array.from(e.values()).filter(function(a){return d("MWChatStateV2IsMinimized.bs").isMinimized(c("bs_caml_option").some(g),a)}).sort(function(a,b){var c=d("MWChatStateV2CompareTabs.bs").byMostRecentMinimized(a,b);if(c===0)return d("MWChatStateV2CompareTabs.bs").byMostRecentOpened(a,b);else return c});e=b.filter(function(a){return!d("MWChatStateV2IsComposeTab.bs").isComposeTab(a)}).concat(a);return[e.slice(0,f),e.slice(f,e.length)]}g.getHeadGroups=a}),98); __d("MWChatStateV2TabGroups.bs",["MWChatStateV2CompareTabs.bs","MWChatStateV2IsOpen.bs","bs_caml_option"],(function(a,b,c,d,e,f,g){"use strict";function h(a,b,c){var d=a.length;if(d>b&&b>0&&c!==void 0){var e=a.findIndex(function(a){return a.tabId===c});if(e!==-1&&e>=b&&e0?a[a.length-1]:b;return d("MWChatVisibileRoutes").ROUTES.has((a=(b=a.route)==null?void 0:b.tracePolicy)!=null?a:"")}g["default"]=a}),98); __d("MWV2ChatHeads.bs",["BootloaderResource","CometErrorBoundary.react","CometPlaceholder.react","JSResource","MWChatStateV2.bs","MWChatStateV2HeadGroups.bs","MWChatStateV2TabGroups.bs","MWV2ChatHeadsLayout.bs","MWV2ComposeHead.bs","bs_caml_option","bs_curry","bs_int64","cr:1134","react","useMWChatStateV2MaxTabCount"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=c("JSResource")("MWV2ChatOverflowHead.bs").__setRef("MWV2ChatHeads.bs");function j(a,b,c,d){return{excessHeads:b,onHoverChange:c,style:a}}function k(a){return h.createElement(d("BootloaderResource").read(i).make,a)}e={make:k,makeProps:j,reasonResource:i};var l=c("JSResource")("MWV2ChatHead.bs").__setRef("MWV2ChatHeads.bs");function m(a,b,c,d,e,f){return{onFocusChange:e,onHoverChange:d,style:c,tab:b,threadKeyDescriptor:a}}function n(a){return h.createElement(d("BootloaderResource").read(l).make,a)}var o={make:n,makeProps:m,reasonResource:l};function p(a){return{transform:"translateY(-"+String(Math.imul(a,58))+"px)"}}function q(a){return{transform:"translateY(-"+String(Math.imul(a,58)-12|0)+"px)"}}function a(a){a=a.isMediaViewer;var e=d("MWChatStateV2.bs").useState(function(a){return a.tabs});e=e.tabs;var f=d("MWChatStateV2.bs").useState(function(a){return a.focusedTabId}),g=d("MWChatStateV2.bs").useState(function(a){return a.mediaViewerOpenWatermark}),i=c("useMWChatStateV2MaxTabCount")(a);a=a?g.mediaViewerOpenWatermark:void 0;g=d("MWChatStateV2TabGroups.bs").getTabGroups(c("bs_caml_option").some(a),e,f.focusedTabId,i);f=d("MWChatStateV2HeadGroups.bs").getHeadGroups(c("bs_caml_option").some(a),g[1],e,5);i=f[1];a=f[0];e=g[0].length;f=a.length;var l=i.length>0?1:0;g=h.useState(function(){return!1});var o=g[1],r=i.length;if(r!==1)r=r!==0?h.jsx(c("CometPlaceholder.react"),{fallback:null,children:h.jsx(k,j(p(1),i,function(a){return c("bs_curry")._1(o,function(b){return a})}))}):null;else{i=i[0];var s=i.tabType;if(s.TAG===0)r=null;else{s=s._0;r=h.jsx(c("CometErrorBoundary.react"),{fallback:function(a){return null},children:h.jsx(c("CometPlaceholder.react"),{fallback:null,children:h.jsx(n,m(s,i,p(1),function(a){return c("bs_curry")._1(o,function(b){return a})},function(a){return c("bs_curry")._1(o,function(b){return a})}))})},c("bs_int64").to_string(s.threadKey))}}return h.jsxs(d("MWV2ChatHeadsLayout.bs").make,{children:[!(b("cr:1134")==null)&&(e>0||f>0)?h.jsx(b("cr:1134").make,{isVisible:g[0],openTabCount:e,style:q((f+l|0)+1|0)}):null,a.reverse().map(function(b,d){var a=b.tabType;if(a.TAG===0)return null;a=a._0;d=(d+l|0)+1|0;return h.jsx(c("CometErrorBoundary.react"),{fallback:function(a){return null},children:h.jsx(c("CometPlaceholder.react"),{fallback:null,children:h.jsx(n,m(a,b,p(d),function(a){return c("bs_curry")._1(o,function(b){return a})},function(a){return c("bs_curry")._1(o,function(b){return a})}))})},c("bs_int64").to_string(a.threadKey))}),r,h.jsx(d("MWV2ComposeHead.bs").make,{onFocusChange:function(a){return c("bs_curry")._1(o,function(b){return a})},onHoverChange:function(a){return c("bs_curry")._1(o,function(b){return a})}})]})}a.displayName=a.name+" [from "+f.id+"]";f=a;g.$MWV2ChatOptionsHead$requireCond=b("cr:1134");g.LazyMWV2ChatOverflowHead=e;g.LazyMWV2ChatHead=o;g.make=f}),98); __d("MWV2ChatTabLoading.bs",["cssVar","fbt","MWChatStateActions.bs","MWChatStateV2.bs","MWPThreadTheme.bs","MWV2HeaderCloseButton.bs","MWV2HeaderContainer.bs","MWV2IsTabFocusedContext.bs","MWV2TabContainer.bs","bs_curry","react","useCometLoadingStateTracker"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");function a(a){var b=a.tab;a=c("useCometLoadingStateTracker")();var e=a[1],f=d("MWChatStateV2.bs").useDispatch();a=d("MWPThreadTheme.bs").useTop();var g=d("MWV2IsTabFocusedContext.bs").useContext();a=g?a:"#C9CCD1";j.useEffect(function(){if(g){var a=e.current;a==null||a.focus()}},[g]);return j.jsx(d("MWV2TabContainer.bs").make,{ariaBusy:!0,ariaLabel:i._("__JHASH__SxkfHU6fYt9__JHASH__"),domRef:e,tab:b,tabIndex:0,children:j.jsx(d("MWV2HeaderContainer.bs").make,{endContent:j.jsx(d("MWV2HeaderCloseButton.bs").make,{color:a,onPress:function(a){return c("bs_curry")._1(f,d("MWChatStateActions.bs").closeTab(Date.now(),b.tabId))}})})})}a.displayName=a.name+" [from "+f.id+"]";b=a;g.make=b}),98); __d("MWV2ChatTabsLayout.bs",["react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){a=a.children;return h.jsx("div",{className:"x1ey2m1c x78zum5 x164qtfw xixxii4 x1vjfegm","data-testid":void 0,children:a})}a.displayName=a.name+" [from "+f.id+"]";b=a;g.make=b}),98); __d("MWV2ChatTabs.bs",["BootloaderResource","CometErrorBoundary.react","CometHeroInteractionWithDiv.react","CometPlaceholder.react","JSResource","MWChatInteraction.bs","MWChatStateV2.bs","MWChatStateV2TabGroups.bs","MWPReplyContext.bs","MWV2ChatTabLoading.bs","MWV2ChatTabsLayout.bs","MWV2IsTabFocusedContext.bs","bs_caml_obj","bs_caml_option","bs_curry","bs_int64","cr:356","react","useCometDisplayTimingTrackerForInteraction","useMWChatStateV2MaxTabCount"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=c("JSResource")("MWV2ComposeTab.bs").__setRef("MWV2ChatTabs.bs");function a(a,b,c){return{initialTokens:b,tab:a}}function j(a){return h.createElement(d("BootloaderResource").read(i).make,a)}a={make:j,makeProps:a,reasonResource:i};var k=c("JSResource")("MWV2ChatTab.bs").__setRef("MWV2ChatTabs.bs");function e(a,b,c){return{tab:a,threadKeyDescriptor:b}}function l(a){return h.createElement(d("BootloaderResource").read(k).make,a)}e={make:l,makeProps:e,reasonResource:k};var m=b("cr:356")==null?void 0:c("bs_caml_option").some(b("cr:356"));function n(a){a=a.isMediaViewer;var e=d("MWChatStateV2.bs").useState(function(a){return a.tabs}),f=d("MWChatStateV2.bs").useState(function(a){return a.focusedTabId}),g=f.focusedTabId;f=d("MWChatStateV2.bs").useState(function(a){return a.mediaViewerOpenWatermark});var i=c("useMWChatStateV2MaxTabCount")(a);a=d("MWChatStateV2TabGroups.bs").getTabGroups(c("bs_caml_option").some(a?f.mediaViewerOpenWatermark:void 0),e.tabs,g,i);var k=h.useCallback(function(a){if(a.TAG===0)return null;else return d("MWChatInteraction.bs").get(c("bs_int64").to_string(a._0.threadKey))},[]),n=c("useCometDisplayTimingTrackerForInteraction")("ChatMain",!0);f=a[0].map(function(a,e){var f=c("bs_caml_obj").caml_equal(g,a.tabId),i=a.tabType;i=i.TAG===0?h.jsx(j,{initialTokens:i._0,tab:a}):h.jsx(l,{tab:a,threadKeyDescriptor:i._0});f=h.jsx(d("MWV2IsTabFocusedContext.bs").make,{isFocused:f,children:h.jsx(d("MWPReplyContext.bs").make,{children:h.jsx(c("CometPlaceholder.react"),{fallback:h.jsx(d("MWV2ChatTabLoading.bs").make,{tab:a}),children:h.jsx(c("CometHeroInteractionWithDiv.react"),{excludeFromMainVC:!0,interactionDesc:"MWV2_CHAT_TAB",interactionUUID:c("bs_curry")._1(k,a.tabType),pageletName:"ChatTab",ref:n,children:i})})})});return h.jsx(c("CometErrorBoundary.react"),{fallback:function(a){return null},children:b("cr:356")==null?f:h.jsx(m.TabIndex.make,{children:f,value:e})},String(a.tabId))});return h.jsx(d("MWV2ChatTabsLayout.bs").make,{children:b("cr:356")==null?f:h.jsx(m.make,{children:f})})}n.displayName=n.name+" [from "+f.id+"]";f=n;g.$MWComposerKeyCommandFocusManager$OR$null$requireCond=b("cr:356");g.LazyMWV2ComposeTab=a;g.LazyMWV2ChatTab=e;g.make=f}),98); __d("MWV2CookieWriter.bs",["DeferredCookie","MWCMThreadTypes.bs","MessagingThreadType.bs","Promise","ReQL.bs","bs_belt_Option","bs_caml","bs_caml_option","bs_int64","gkx","promiseDone","recoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";function h(a){if(c("bs_caml").i64_eq(a,d("MessagingThreadType.bs").group))return"g.";else if(c("bs_caml").i64_eq(a,d("MessagingThreadType.bs").secureMessageOverWaOneToOne))return"sc.";else if(c("bs_caml").i64_eq(a,d("MessagingThreadType.bs").secureMessageOverWaGroup))return"sg.";else return"u."}function a(a,e,f){var g=function(a){if(e===void 0)return!1;var b=e.tabType;if(b.TAG===0)return!1;else return c("bs_caml").i64_eq(b._0.threadKey,a)},i=function(a){return d("ReQL.bs").first(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(f.table("threads")),{hd:a,tl:0}))},j={contents:void 0};a=a.map(function(a){var e=a.threadType,f=a.threadKey,k={};return i(f).then(function(a){if(a!==void 0)if(g(f)){c("gkx")("1747")&&d("MWCMThreadTypes.bs").isJoinedCMThread(e)&&(j.contents=c("bs_int64").to_string(a.parentThreadKey));return b("Promise").resolve()}else{k.i=h(e)+c("bs_int64").to_string(f);c("gkx")("1747")&&d("MWCMThreadTypes.bs").isJoinedCMThread(e)&&(k.p=c("bs_int64").to_string(a.parentThreadKey));return b("Promise").resolve(c("bs_caml_option").some(k))}else{k.i=h(e)+c("bs_int64").to_string(f);return b("Promise").resolve(c("bs_caml_option").some(k))}})});a=b("Promise").all(a).then(function(a){var d;if(e!==void 0){var f=e.tabType;if(f.TAG===0)d=void 0;else{f=f._0;d=h(f.threadType)+c("bs_int64").to_string(f.threadKey)}}else d=void 0;f=a.filter(c("bs_belt_Option").isSome);a=j.contents;a=a!==void 0?JSON.stringify({lm3:d,lm3p:a,t3:f,utc3:Date.now(),v:1}):JSON.stringify({lm3:d,t3:f,utc3:Date.now(),v:1});a!==void 0?c("DeferredCookie").addToQueue("presence","C"+a,0,c("gkx")("1747")?"/":"",!1,!1,!0):c("recoverableViolation")("Failed to serialize cookie","messenger_comet");return b("Promise").resolve()});c("promiseDone")(a)}e=1;g.write=a;g.version=e}),98); __d("UseMWV2CookieWriter.bs",["MWChatStateV2.bs","MWChatStateV2CompareTabs.bs","MWChatStateV2IsOpen.bs","MWV2CookieWriter.bs","bs_belt_Array","bs_caml","gkx","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=d("MWChatStateV2.bs").useState(function(a){return a.tabs}),e=c("useReStore")();h.useEffect(function(){var a=c("bs_belt_Array").get(Array.from(b.tabs.values()).filter(function(a){return d("MWChatStateV2IsOpen.bs").isOpen(void 0,a)}).sort(d("MWChatStateV2CompareTabs.bs").byMostRecentOpened),0),f=function(b){b=b.tabType;if(a===void 0)return!1;var d=a.tabType;if(d.TAG===0||b.TAG===0)return!1;else return c("bs_caml").i64_eq(d._0.threadKey,b._0.threadKey)},g=[];Array.from(b.tabs.values()).filter(function(a){if(a.openWatermark>a.closeWatermark)return!0;else return a.minimizeWatermark>a.closeWatermark}).filter(function(a){if(c("gkx")("1747"))return!0;else return!f(a)}).sort(function(a,b){var c=d("MWChatStateV2CompareTabs.bs").byMostRecentMinimized(a,b);if(c===0)return d("MWChatStateV2CompareTabs.bs").byMostRecentOpened(a,b);else return c}).forEach(function(a){a=a.tabType;if(a.TAG===0)return;g.push(a._0)});d("MWV2CookieWriter.bs").write(g,a,e)},[e,b])}b=c("gkx")("1812641")?a:function(a){};g.useHook=b}),98); __d("useMWChatInit",["LSErrorHandlerDeferred.bs","MWLSChatPopperUpper.bs","MWPGetThreadTitle.bs","ReQL","ReQLSuspense","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useEffect;function a(){var a=c("useReStore")();h(function(){d("ReQL").toArrayAsync(d("ReQL").fromTableAscending(a.table("threads")).map(function(b){return[b,d("ReQLSuspense").toArray(d("ReQL").leftJoin(d("ReQL").fromTableAscending(a.table("participants")).getKeyRange(b.threadKey),d("ReQL").fromTableAscending(a.table("contacts"))).take(d("MWPGetThreadTitle.bs").amountToFetchForTitle))]}).take(30));return d("LSErrorHandlerDeferred.bs").subscribeToErrors(a)},[a]);d("MWLSChatPopperUpper.bs").useHook(a)}g["default"]=a}),98); __d("useMWV2ChatUpdateMediaViewerOpenWatermark",["MWChatStateActions.bs","MWChatStateV2.bs","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useCallback;function a(){var a=d("MWChatStateV2.bs").useDispatch();return h(function(){var b=Date.now();a(d("MWChatStateActions.bs").updateMediaViewerOpenWatermark(b))},[a])}g["default"]=a}),98); __d("MWV2ChatTabsRoot.react",["CometContextualLayerAnchorRoot.react","CometPlaceholder.react","MWChatEncryptedBackupsUpsellChatTabs.bs","MWChatVisibilityOverrideContext","MWLSThreadDisplayContext.bs","MWSetupPresenceReportingDeferred.react","MWV2ChatHeads.bs","MWV2ChatTabs.bs","UseMWV2CookieWriter.bs","gkx","react","stylex","useMWChatInit","useMWIsOnPushView","useMWIsTopLevelRouteMediaViewerExperiment","useMWV2ChatUpdateMediaViewerOpenWatermark","useShouldShowMessagingEntrypointInCometRoot"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useEffect;e=b.useMemo;var j=c("gkx")("2640")?e:function(a,b){return a()},k={chatAbovePushView:{zIndex:"x1vjfegm",$$css:!0},container:{alignItems:"xuk3077",display:"x78zum5",isolation:"xc8icb0",$$css:!0},root:{bottom:"x1ey2m1c",end:"xds687c",position:"xixxii4",$$css:!0}};function l(a){var b=a.isMediaViewer;a=a.showChatAbovePushView;var e=d("MWChatEncryptedBackupsUpsellChatTabs.bs").useHook();return h.jsx(d("MWLSThreadDisplayContext.bs").Provider.make,{value:"ChatTab",children:h.jsx("div",{className:c("stylex")(k.root,a?k.chatAbovePushView:!1),children:h.jsx(c("CometContextualLayerAnchorRoot.react"),{children:h.jsx("div",{className:"xuk3077 x78zum5 xc8icb0",children:e==null?h.jsxs(h.Fragment,{children:[h.jsx(d("MWV2ChatTabs.bs").make,{isMediaViewer:b}),h.jsx(d("MWV2ChatHeads.bs").make,{isMediaViewer:b})]}):e})})})})}l.displayName=l.name+" [from "+f.id+"]";function m(a){a=a.children;d("UseMWV2CookieWriter.bs").useHook();c("useMWChatInit")();return a}m.displayName=m.name+" [from "+f.id+"]";function a(){var a=c("useMWIsOnPushView")(),b=c("useMWIsTopLevelRouteMediaViewerExperiment")(),e=d("MWChatVisibilityOverrideContext").useMWChatVisibilityOverride(b),f=c("useMWV2ChatUpdateMediaViewerOpenWatermark")(),g=c("useShouldShowMessagingEntrypointInCometRoot")("CHAT")&&e;i(function(){b&&f()},[b,f]);return j(function(){return h.jsxs(c("CometPlaceholder.react"),{fallback:null,children:[h.jsx(c("MWSetupPresenceReportingDeferred.react"),{}),h.jsx(m,{children:g?h.jsx(l,{isMediaViewer:b,showChatAbovePushView:a}):null})]})},[g,a,b])}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ChatContainer.react",["LSPlatformClientProviderWithDeferredLoadingStrategy.bs","LSPlatformConfig.re","LSPlatformMessengerConfig.bs","MWV2ChatTabsRoot.react","cr:1847792","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){return h.jsx(d("LSPlatformConfig.re").Provider_make,{config:d("LSPlatformMessengerConfig.bs").configEagerlyLoaded,children:h.jsxs(d("LSPlatformClientProviderWithDeferredLoadingStrategy.bs").make,{children:[h.jsx(c("MWV2ChatTabsRoot.react"),{}),b("cr:1847792")&&h.jsx(b("cr:1847792"),{entrypoint:"fbdotcom"})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWXACIntroView.react",["CometPlaceholder.react","CometRelay","MWXACIntroViewQuery.graphql","RelayHooks","emptyFunction","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e="8626";var j="8634",k="8635",l=h!==void 0?h:h=b("MWXACIntroViewQuery.graphql"),m={fbdotcom:e,inbox:j,mdotcom:k};function a(a){var b=m[a.entrypoint],e=d("RelayHooks").useLazyLoadQuery(l,{xacIntroNuxId:b});e=e==null?void 0:(e=e.viewer)==null?void 0:e.messenger_xac_intro_renderer;return i.jsx(c("CometPlaceholder.react"),{fallback:null,children:e?i.jsx(d("CometRelay").MatchContainer,{match:e,props:{entrypoint:a.entrypoint,nuxId:b,onClose:c("emptyFunction")}}):null})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWCometXACIntroView.react",["MWXACIntroView.react","react","useCometRouterState"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function i(){var a=c("useCometRouterState")(),b=a==null?void 0:a.main;a=a==null?void 0:a.pushViewStack;a=a&&a.length>0?a[a.length-1]:b;return(a==null?void 0:a.route.tracePolicy)==="comet.messenger.inbox"}function a(a){var b=i();return b&&a.entrypoint==="fbdotcom"?null:h.jsx(c("MWXACIntroView.react"),{entrypoint:a.entrypoint})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MAWChatBadgeInitSyncCompleteUpdates.bs",["LSSyncStatus.bs","MAWInitSyncComplete.bs","ReQL.bs","ReQLSubscription.bs","bs_belt_Option","bs_caml","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=c("useReStore")();return c("bs_belt_Option").mapWithDefault(d("ReQLSubscription.bs").useFirst(h.useMemo(function(){return d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(b.table("sync_groups")),{hd:d("MAWInitSyncComplete.bs").id,tl:0})},[b])),!1,function(a){return c("bs_caml").i64_eq(a.syncStatus,d("LSSyncStatus.bs").complete)})}g.useHook=a}),98); __d("MWChatBadgeCount.react",["CometNumberedBadge.react","CometPlaceholder.react","CometRelay","CometVisualCompletionAttributes","MAWGating","MWChatBadgeCountQuery.graphql","MWChatBadgeCountUpdates.bs","MWXacGating.bs","qex","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useEffect,k=e.useRef;function l(a){var e,f=a.overflow,g=a.setBadgeCount;a=d("CometRelay").useLazyLoadQuery(h!==void 0?h:h=b("MWChatBadgeCountQuery.graphql"),{suppress_xac_groups:!d("MWXacGating.bs").isGroupsEnabled()},{fetchPolicy:"store-or-network"});a=(a=a.viewer)==null?void 0:a.message_threads;var l=a!=null&&!m((e=a.is_loading_client_threads)!=null?e:d("MAWGating").isArmadillo()===!0)&&a.unseen_count!=null&&a.unseen_count>0?Math.min(d("MWChatBadgeCountUpdates.bs").minSyncedThreads,a.unseen_count):0,n=k(null);j(function(){g&&n.current!==l&&(n.current=l,g(l))},[l,g]);return i.jsx(i.Fragment,{children:l>0?i.jsx(c("CometNumberedBadge.react"),{overflow:f,testid:void 0,value:l}):null})}l.displayName=l.name+" [from "+f.id+"]";function a(a){var b=a.overflow;a=a.setBadgeCount;return i.jsx("div",babelHelpers["extends"]({},c("CometVisualCompletionAttributes").IGNORE_DYNAMIC,{children:i.jsx(c("CometPlaceholder.react"),{fallback:i.jsx("span",{}),children:i.jsx(l,{overflow:b,setBadgeCount:a})})}))}a.displayName=a.name+" [from "+f.id+"]";function m(a){return a&&!((a=c("qex")._("343"))!=null?a:!1)&&((a=c("qex")._("15"))!=null?a:!1)}g["default"]=a}),98); __d("MWChatBadgeCountUpdater.react",["CometRelay","LsSystemFolder.re","MAWChatBadgeInitSyncCompleteUpdates.bs","MWChatBadgeCountUpdates.bs","MWXacGating.bs","react","recoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useEffect;function a(){var a=d("CometRelay").useRelayEnvironment(),b=d("MWChatBadgeCountUpdates.bs").useHook(d("LsSystemFolder.re").inbox),e=d("MAWChatBadgeInitSyncCompleteUpdates.bs").useHook();h(function(){var f={suppress_xac_groups:!d("MWXacGating.bs").isGroupsEnabled()};a.commitUpdate(function(a){var d=a.getRoot();if(d==null){c("recoverableViolation")("A store root must be present to move forward.","messenger_comet");return}d=d.getLinkedRecord("viewer");if(d==null){c("recoverableViolation")("A viewer record does not exist.","messenger_comet");return}var g=d.getLinkedRecord("message_threads");if(g==null){var h="client:root:viewer:message_threads";g=a.create(h,"ViewerMessageThreadsConnection");d.setLinkedRecord(g,"message_threads")}if(b!=null){a=g.getValue("unseen_count",f);(a===null||a!==b)&&g.setValue(b,"unseen_count",f)}h=g.getValue("is_loading_client_threads");(h==null||h===e)&&g.setValue(!e,"is_loading_client_threads")})},[a,e,b]);return null}g["default"]=a}),98); __d("MWChatBadgeUpdaterImpl.react",["CometErrorBoundary.react","ExecutionEnvironment","FBLogger","cr:4562","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function i(a){var b=c("FBLogger")("messenger_browser_clients");a!=null&&(b=b.catching(a));b.debug("Error loading MWChatBadgeCountUpdater")}function a(){return c("ExecutionEnvironment").canUseDOM?h.jsx(c("CometErrorBoundary.react"),{onError:i,children:b("cr:4562")&&h.jsx(b("cr:4562"),{})}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ChatOptionsHead.bs",["fbt","ix","CometDeferredPopoverTrigger.react","CometPressable.react","MWIcon.react","MWTooltip.react","bs_curry","fbicon","react","requireDeferred"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k={head:{alignItems:"x6s0dn4",backgroundColor:"x1l31dnx",borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",boxShadow:"x1qeybcx",display:"x78zum5",height:"xc9qbxq",justifyContent:"xl56j7k",opacity:"xg01cxk",transform:"x1f85oc2",transitionDuration:"x19bguh7",transitionProperty:"x6o7n8i",width:"x14qfxbe",":hover_boxShadow":"x19xcq9t",$$css:!0},headArea:{borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",height:"xc9qbxq",position:"x10l6tqk",start:"xi8xln7",width:"x14qfxbe",$$css:!0},headVisible:{opacity:"x1hc1fzr",transform:"x3oybdh",$$css:!0},hoverTarget:{alignItems:"x6s0dn4",backgroundColor:"xjbqb8w",display:"x78zum5",height:"xnnlda6",justifyContent:"xl56j7k",marginStart:"x1tl9596",marginTop:"xhsvlbd",width:"x1dmp6jm",$$css:!0}},l=h._("__JHASH__GqqnGnZcXBj__JHASH__");function a(a){var b=a.isVisible,e=a.openTabCount,f=a.style;a=j.useState(function(){return!1});var g=a[0],h=a[1];a=j.useState(function(){return!1});var m=a[0],n=a[1];a=j.useState(function(){return!1});var o=a[0],p=a[1];return j.jsx(c("CometDeferredPopoverTrigger.react"),{align:"end",onVisibilityChange:function(a){return c("bs_curry")._1(p,function(b){return a})},popoverProps:{hasOpenTabs:e>0},popoverResource:c("requireDeferred")("MWV2ChatOptionsHeadPopover.react").__setRef("MWV2ChatOptionsHead.bs"),position:"above",children:function(a,e){return j.jsx("div",{className:"x14yjl9h xudhj91 x18nykt9 xww2gxu xc9qbxq x10l6tqk xi8xln7 x14qfxbe",style:f,children:j.jsx("div",{className:"x6s0dn4 xjbqb8w x78zum5 xnnlda6 xl56j7k x1tl9596 xhsvlbd x1dmp6jm","data-testid":void 0,onMouseEnter:function(a){return c("bs_curry")._1(h,function(a){return!0})},onMouseLeave:function(a){return c("bs_curry")._1(h,function(a){return!1})},children:j.jsx(c("CometPressable.react"),{label:l,onFocusChange:function(a){return c("bs_curry")._1(n,function(b){return a})},onPress:function(a){return c("bs_curry")._1(e)},ref:a,testid:void 0,xstyle:function(a){return[k.head,b||g||m||o?k.headVisible:!1]},children:j.jsx(c("MWTooltip.react"),{align:"middle",position:"start",tooltip:l,children:j.jsx(c("MWIcon.react"),{icon:d("fbicon")._(i("484387"),20)})})})})})}})}a.displayName=a.name+" [from "+f.id+"]";b=36;e=10;h=a;g.width=b;g.marginBottom=e;g.make=h}),98); __d("CometTypeaheadTraceProvider",["CometHeroLogging","performanceNow"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a){var b=a.loggingProvider,c=a.trace;a=a.vcTrackerRef;this.$5=!1;this.$7=null;this.$1=c;this.$2=b;this.$6=a;this.$3="unknown"}var b=a.prototype;b.getInteractionUUID=function(){return this.$4};b.getVCTrackerRef=function(){return this.$6};b.isResolved=function(){return this.$5};b.resolve=function(){this.$5=!0,this.$7=null};b.setEventStartTime=function(a){this.$7=a};b.setEndReason=function(a){this.$3=a};b.getEndReason=function(){return this.$3};b.getEntriesCountForVisualComplete=function(){return 8};b.trace=function(a,b){var d=this;this.setEndReason("continued_typing");this.$5=!1;var e=void 0,f=void 0;this.$7!=null&&(f=this.$7,e=c("performanceNow")()-f);return this.$1(function(e){var f=c("CometHeroLogging").genHeroInteractionUUIDAndMarkStart(e.getTraceId());d.$4=f;e.addMetadata("entry_point_surface",d.$2.getContext());e.addMetadata("current_text_length",b.length);f=d.$2.getSessionID();f!=null&&e.addMetadata("typeahead_sid",f);e.onComplete(function(){e.addMetadata("end_reason",d.getEndReason())});a(e)},f,e)};return a}();g["default"]=a}),98); __d("CometTypeaheadEntityViewItem.react",["CometProfilePhoto.react","CometTypeaheadViewItem.react","TetraTextPairing.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.entry,d=a.meta,e=a.pictureUrl;a.queryString;var f=a.size;f=f===void 0?36:f;var g=a.style;g=g===void 0?"circle":g;a=babelHelpers.objectWithoutPropertiesLoose(a,["entry","meta","pictureUrl","queryString","size","style"]);return h.jsx(c("CometTypeaheadViewItem.react"),babelHelpers["extends"]({},a,{entry:b,itemStartContent:e!=null?h.jsx(c("CometProfilePhoto.react"),{shape:g,size:f,source:{uri:e}}):null,children:h.jsx(c("TetraTextPairing.react"),{body:b.label,bodyLineLimit:2,level:3,meta:d,metaLineLimit:1,reduceEmphasis:!0})}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useCometInternalTypeaheadHeroTracing",["react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useMemo;function a(a,b){var c=a?a.getInteractionUUID():null,d=a?a.getVCTrackerRef():null,e=c!=null&&a!=null&&!a.isResolved();return h(function(){var f=function(c,d){a&&d!=null&&a.setEventStartTime(d.timeStamp),b(c,d)};return{interactionUUID:c,onTracedChange:f,shouldHoldHeroTracing:e,vcTrackerRef:d}},[c,b,e,a,d])}g["default"]=a}),98); __d("searchCometTypeaheadODSLogFocusEvent",["requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h=c("requireDeferred")("ODS").__setRef("searchCometTypeaheadODSLogFocusEvent");function a(a,b){b===void 0&&(b=1),h.onReady(function(c){c.bumpEntityKey(354,a,"focused",b)})}g["default"]=a}),98); __d("withSearchCometTypeaheadTraceEndReasonDecorator",["react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useCallback;function a(a){return function(b){var c=b.inputRef,d=b.onPressEntry,e=b.traceProvider;b=babelHelpers.objectWithoutPropertiesLoose(b,["inputRef","onPressEntry","traceProvider"]);var f=i(function(a){e&&e.setEndReason("successful_user_action"),d&&d(a)},[d,e]);return h.jsx(a,babelHelpers["extends"]({},b,{inputRef:c,onPressEntry:f,traceProvider:e}))}}g["default"]=a}),98); __d("useSearchCometTypeaheadBootstrapValidation",["CometRelay","CometRelayErrorHandling","filterNulls","react","recoverableViolation","useSearchCometTypeaheadBootstrapValidationQuery.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react").useMemo;function a(a){var e=a.bootstrapDatasource,f=d("CometRelay").useRelayEnvironment();return i(function(){return{validate:function(a){a=c("filterNulls")(a.map(function(a){if(a.subtype!=="bootstrap")return null;a=(a=a.rawData.structuredInfo)!=null?a:{};a=a.direct_nav_result;if(a==null)return null;var b=a.ent_id;a=a.title;if(b==null||a==null){c("recoverableViolation")("Unexpected missing ent_id or title on direct_nav_result","search");return null}return{id:b,keyword:a}}));d("CometRelay").fetchQuery(f,h!==void 0?h:h=b("useSearchCometTypeaheadBootstrapValidationQuery.graphql"),{input:{cache_types:["KEYWORD_BOOTSTRAP"],shown_suggestions:a}}).subscribe({error:function(a){d("CometRelayErrorHandling").markErrorAsHandled(a)},next:function(a){a=a.search_client_cache_policy_check;for(var a=(a=a==null?void 0:a.policy_decision)!=null?a:[],b=Array.isArray(a),c=0,a=b?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var d;if(b){if(c>=a.length)break;d=a[c++]}else{c=a.next();if(c.done)break;d=c.value}d=d;var f=d.cache_type,g=d.force_cache_refresh;d=d.ids_to_remove;if(f==="KEYWORD_BOOTSTRAP"){for(var f=d,d=Array.isArray(f),h=0,f=d?f:f[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var i;if(d){if(h>=f.length)break;i=f[h++]}else{h=f.next();if(h.done)break;i=h.value}i=i;e.removeEntriesByEntID(i)}g===!0&&(e.clear(),e.bootstrap())}}}})}}},[e,f])}g["default"]=a}),98); __d("useCometSearchTypeaheadTraceProvider",["CometTypeaheadTraceProvider","qpl","react","useCometDisplayTimingTrackerForInteraction","useCometInteractionTracing"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useMemo;function a(a){var b=c("useCometInteractionTracing")(c("qpl")._(30605354,"2310"),"contingent","INTERACTION"),d=c("useCometDisplayTimingTrackerForInteraction")("SearchTypeaheadLayout");return h(function(){return new(c("CometTypeaheadTraceProvider"))({loggingProvider:a,trace:b,vcTrackerRef:d})},[a,b,d])}g["default"]=a}),98); __d("useSearchCometShouldRenderBadgeWithExposure",["QE2Logger","qex","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useMemo;function a(a){return h(function(){var b;if(a==null)return!1;if(!c("qex")._("578"))return!0;d("QE2Logger").logExposureForUser("search_nullstate_desktop");return(b=c("qex")._("580"))!=null?b:!1},[a])}g["default"]=a}),98); __d("CometSearchTypeaheadRecentEntityViewItem.react",["CometBadge.react","CometTypeaheadEntityViewItem.react","react","recoverableViolation","useSearchCometShouldRenderBadgeWithExposure"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.entry;a=babelHelpers.objectWithoutPropertiesLoose(a,["entry"]);var d=b.rawData,e=d.badgeSnippet;d=d.profile;d=(d=d)!=null?d:{};var f=d.id,g=d.profilePictureURL;d=d.url;if(g==null){c("recoverableViolation")("Missing profile picture for fbid "+((f=f)!=null?f:"null"),"search")}f=c("useSearchCometShouldRenderBadgeWithExposure")(e);f=f?h.jsxs(h.Fragment,{children:[h.jsx(c("CometBadge.react"),{color:"blue"}),e]}):void 0;return h.jsx(c("CometTypeaheadEntityViewItem.react"),babelHelpers["extends"]({},a,{entry:b,linkProps:{preventLocalNavigation:!0,url:d},meta:f,pictureUrl:g,size:36}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("cometSearchTypeaheadRecentEntityViewItem.resolver",[],(function(a,b,c,d,e,f){"use strict";function a(a){var b=a.metaData.markers;return b.has("entity")&&a.subtype==="recent"?a:null}f["default"]=a}),66); __d("CometSearchTypeaheadBaseStructuredDirectNavKeywordViewItem.react",["CometImage.react","CometProfilePhoto.react","CometTypeaheadHighlight.react","CometTypeaheadViewItem.react","TetraTextPairing.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useMemo,j=36,k={imageIcon:{display:"x1lliihq",$$css:!0}};function a(a){var b,d=a.entry,e=a.isActive,f=a.queryString;a=babelHelpers.objectWithoutPropertiesLoose(a,["entry","isActive","queryString"]);b=(b=(b=d.rawData.structuredInfo)==null?void 0:b.direct_nav_result)!=null?b:{};var g=b.img_url,l=b.link_url,m=b.snippet;b=b.type;var n=i(function(){return{preloadCodeOnMount:!0,preventLocalNavigation:!0,url:l}},[l]),o=null;g!=null&&(o=b==="SHORTCUT"?h.jsx(c("CometImage.react"),{height:j,src:g,width:j,xstyle:k.imageIcon}):h.jsx(c("CometProfilePhoto.react"),{shape:b==="SHORTCUT"?"square":"circle",size:j,source:{uri:g}}));return h.jsx(c("CometTypeaheadViewItem.react"),babelHelpers["extends"]({},a,{entry:d,isActive:e,itemStartContent:o,linkProps:n,children:h.jsx(c("CometTypeaheadHighlight.react"),{content:d.label,query:f,strategy:"non-match",children:function(a){return h.jsx(c("TetraTextPairing.react"),{body:a,bodyLineLimit:2,level:3,meta:m,metaLineLimit:1})}})}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometSearchTypeaheadBaseStructuredDisambiguationKeywordViewItem.react",["CometTypeaheadHighlight.react","CometTypeaheadViewItem.react","CometTypeaheadViewItemIcon.react","TetraTextPairing.react","react","recoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b,e=a.entry,f=a.isActive,g=a.linkProps,i=a.queryString;a=babelHelpers.objectWithoutPropertiesLoose(a,["entry","isActive","linkProps","queryString"]);b=(b=e.rawData.structuredInfo)!=null?b:{};b=b.disambiguation_result;if(b==null){c("recoverableViolation")("We were trying to show disambiguation result, but had missing data","search");return null}b=b.disambiguation_info_list;var j=b[0].snippet;return h.jsx(c("CometTypeaheadViewItem.react"),babelHelpers["extends"]({},a,{entry:e,isActive:f,itemStartContent:h.jsx(d("CometTypeaheadViewItemIcon.react").CometTypeaheadViewTypedIcon,{isActive:f}),linkProps:g,children:h.jsx(c("CometTypeaheadHighlight.react"),{content:e.label,query:i,strategy:"non-match",children:function(a){return h.jsx(c("TetraTextPairing.react"),{body:a,bodyLineLimit:2,level:3,meta:j,metaLineLimit:1})}})}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometSearchTypeaheadBaseStructuredHighConfidenceKeywordViewItem.react",["CometProfilePhoto.react","CometTypeaheadHighlight.react","CometTypeaheadViewItem.react","CometTypeaheadViewItemIcon.react","TetraTextPairing.react","react","recoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b,e=a.entry,f=a.isActive,g=a.linkProps,i=a.queryString;a=babelHelpers.objectWithoutPropertiesLoose(a,["entry","isActive","linkProps","queryString"]);b=(b=(b=e.rawData.structuredInfo)==null?void 0:b.high_confidence_result)!=null?b:{};var j=b.hcm_id,k=b.picture_url,l=b.snippet;if(k==null){c("recoverableViolation")("Missing HC keyword item picture url for hcm_id "+((b=j)!=null?b:"null"),"search")}return h.jsx(c("CometTypeaheadViewItem.react"),babelHelpers["extends"]({},a,{entry:e,isActive:f,itemEndContent:k!=null?h.jsx(c("CometProfilePhoto.react"),{shape:"roundedRect",size:36,source:{uri:k}}):null,itemStartContent:h.jsx(d("CometTypeaheadViewItemIcon.react").CometTypeaheadViewTypedIcon,{isActive:f}),linkProps:g,children:h.jsx(c("CometTypeaheadHighlight.react"),{content:e.label,query:i,strategy:"non-match",children:function(a){return h.jsx(c("TetraTextPairing.react"),{body:a,bodyLineLimit:2,level:3,meta:l,metaLineLimit:1})}})}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometSearchTypeaheadBaseSurfaceRecentEntityViewItem.react",["CometSearchTypeaheadBaseSurfaceRecentViewItemRemoveButton.react","CometSearchTypeaheadRecentEntityViewItem.react","CometTypeaheadFocusLockRegion.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.entry;a=babelHelpers.objectWithoutPropertiesLoose(a,["entry"]);return h.jsx(c("CometSearchTypeaheadRecentEntityViewItem.react"),babelHelpers["extends"]({},a,{entry:b,itemEndContent:h.jsx(c("CometTypeaheadFocusLockRegion.react"),{children:h.jsx(c("CometSearchTypeaheadBaseSurfaceRecentViewItemRemoveButton.react"),{entry:b})}),testid:void 0}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometSearchTypeaheadStructuredDirectNavKeywordRecentViewItem.react",["CometBadge.react","CometProfilePhoto.react","CometSearchTypeaheadBaseSurfaceRecentViewItemRemoveButton.react","CometTypeaheadFocusLockRegion.react","CometTypeaheadViewItem.react","TetraTextPairing.react","react","useSearchCometShouldRenderBadgeWithExposure"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useMemo;function a(a){var b=a.entry,d=a.isActive;a.queryString;a=babelHelpers.objectWithoutPropertiesLoose(a,["entry","isActive","queryString"]);var e=b.rawData,f=e.badgeSnippet;e=e.structuredInfo;e=(e=e==null?void 0:e.direct_nav_result)!=null?e:{};var g=e.img_url,j=e.link_url,k=e.snippet,l=e.title;e=e.type;var m=i(function(){return{preloadCodeOnMount:!0,preventLocalNavigation:!0,url:j}},[j]),n=c("useSearchCometShouldRenderBadgeWithExposure")(f);n=n?h.jsxs(h.Fragment,{children:[h.jsx(c("CometBadge.react"),{color:"blue"}),f]}):k;return h.jsx(c("CometTypeaheadViewItem.react"),babelHelpers["extends"]({},a,{entry:b,isActive:d,itemEndContent:h.jsx(c("CometTypeaheadFocusLockRegion.react"),{children:h.jsx(c("CometSearchTypeaheadBaseSurfaceRecentViewItemRemoveButton.react"),{entry:b})}),itemStartContent:g!=null?h.jsx(c("CometProfilePhoto.react"),{shape:e==="SHORTCUT"?"square":"circle",size:36,source:{uri:g}}):null,linkProps:m,testid:void 0,children:h.jsx(c("TetraTextPairing.react"),{body:l,bodyLineLimit:2,level:3,meta:n,metaLineLimit:1})}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometSearchTypeaheadStructuredDisambiguationKeywordRecentViewItem.react",["CometSearchTypeaheadBaseSurfaceRecentViewItemRemoveButton.react","CometTypeaheadFocusLockRegion.react","CometTypeaheadViewItem.react","CometTypeaheadViewItemIcon.react","TetraTextPairing.react","react","recoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b,e=a.entry,f=a.isActive,g=a.linkProps;a.queryString;a=babelHelpers.objectWithoutPropertiesLoose(a,["entry","isActive","linkProps","queryString"]);b=(b=e.rawData.structuredInfo)!=null?b:{};b=b.disambiguation_result;if(b==null){c("recoverableViolation")("Missing disambiguation result STS info","search");return null}b=b.disambiguation_info_list;b=b[0].snippet;return h.jsx(c("CometTypeaheadViewItem.react"),babelHelpers["extends"]({},a,{entry:e,isActive:f,itemEndContent:h.jsx(c("CometTypeaheadFocusLockRegion.react"),{children:h.jsx(c("CometSearchTypeaheadBaseSurfaceRecentViewItemRemoveButton.react"),{entry:e})}),itemStartContent:h.jsx(d("CometTypeaheadViewItemIcon.react").CometTypeaheadViewRecentIcon,{isActive:f}),linkProps:g,children:h.jsx(c("TetraTextPairing.react"),{body:e.label,bodyLineLimit:2,level:2,meta:b,metaLineLimit:1})}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometSearchTypeaheadStructuredHighConfidenceKeywordRecentViewItem.react",["CometProfilePhoto.react","CometRow.react","CometRowItem.react","CometSearchTypeaheadBaseSurfaceRecentViewItemRemoveButton.react","CometTypeaheadFocusLockRegion.react","CometTypeaheadViewItem.react","CometTypeaheadViewItemIcon.react","TetraTextPairing.react","react","recoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.entry,e=a.isActive,f=a.linkProps;a.queryString;a=babelHelpers.objectWithoutPropertiesLoose(a,["entry","isActive","linkProps","queryString"]);var g=b.rawData;g=(g=(g=g.structuredInfo)==null?void 0:g.high_confidence_result)!=null?g:{};var i=g.hcm_id,j=g.picture_url;g=g.snippet;if(j==null){c("recoverableViolation")("Missing HC keyword item picture url for hcm_id "+((i=i)!=null?i:"null"),"search")}return h.jsx(c("CometTypeaheadViewItem.react"),babelHelpers["extends"]({},a,{entry:b,isActive:e,itemEndContent:h.jsxs(c("CometRow.react"),{paddingHorizontal:0,paddingVertical:0,verticalAlign:"center",children:[j!=null?h.jsx(c("CometRowItem.react"),{children:h.jsx(c("CometProfilePhoto.react"),{shape:"roundedRect",size:36,source:{uri:j}})}):null,h.jsx(c("CometRowItem.react"),{children:h.jsx(c("CometTypeaheadFocusLockRegion.react"),{children:h.jsx(c("CometSearchTypeaheadBaseSurfaceRecentViewItemRemoveButton.react"),{entry:b})})})]}),itemStartContent:h.jsx(d("CometTypeaheadViewItemIcon.react").CometTypeaheadViewRecentIcon,{isActive:e}),linkProps:f,children:h.jsx(c("TetraTextPairing.react"),{body:b.label,bodyLineLimit:2,level:3,meta:g,metaLineLimit:1})}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("cometSearchTypeaheadStructuredDirectNavKeywordRecentViewItem.resolver",[],(function(a,b,c,d,e,f){"use strict";function a(a){var b=a.metaData.markers;return b.has("direct_nav")&&a.subtype==="recent"?a:null}f["default"]=a}),66); __d("cometSearchTypeaheadStructuredDirectNavKeywordViewItem.resolver",[],(function(a,b,c,d,e,f){"use strict";function a(a){var b=a.metaData.markers;return b.has("keyword")&&b.has("direct_nav")?a:null}f["default"]=a}),66); __d("cometSearchTypeaheadStructuredDisambiguationKeywordRecentViewItem.resolver",[],(function(a,b,c,d,e,f){"use strict";function a(a){var b=a.metaData.markers;return b.has("disambiguation")&&a.subtype==="recent"?a:null}f["default"]=a}),66); __d("cometSearchTypeaheadStructuredDisambiguationKeywordViewItem.resolver",[],(function(a,b,c,d,e,f){"use strict";function a(a){var b=a.metaData.markers;return b.has("disambiguation")&&a.subtype==="keyword"?a:null}f["default"]=a}),66); __d("cometSearchTypeaheadStructuredHighConfidenceKeywordRecentViewItem.resolver",[],(function(a,b,c,d,e,f){"use strict";function a(a){var b=a.metaData.markers;return b.has("high_confidence")&&a.subtype==="recent"?a:null}f["default"]=a}),66); __d("cometSearchTypeaheadStructuredHighConfidenceKeywordViewItem.resolver",[],(function(a,b,c,d,e,f){"use strict";function a(a){var b=a.metaData.markers;return b.has("high_confidence")&&a.subtype==="keyword"?a:null}f["default"]=a}),66); __d("searchCometTypeaheadSTSMappings",["CometSearchTypeaheadBaseStructuredDirectNavKeywordViewItem.react","CometSearchTypeaheadBaseStructuredDisambiguationKeywordViewItem.react","CometSearchTypeaheadBaseStructuredHighConfidenceKeywordViewItem.react","CometSearchTypeaheadBaseSurfaceRecentEntityViewItem.react","CometSearchTypeaheadStructuredDirectNavKeywordRecentViewItem.react","CometSearchTypeaheadStructuredDisambiguationKeywordRecentViewItem.react","CometSearchTypeaheadStructuredHighConfidenceKeywordRecentViewItem.react","cometSearchTypeaheadRecentEntityViewItem.resolver","cometSearchTypeaheadStructuredDirectNavKeywordRecentViewItem.resolver","cometSearchTypeaheadStructuredDirectNavKeywordViewItem.resolver","cometSearchTypeaheadStructuredDisambiguationKeywordRecentViewItem.resolver","cometSearchTypeaheadStructuredDisambiguationKeywordViewItem.resolver","cometSearchTypeaheadStructuredHighConfidenceKeywordRecentViewItem.resolver","cometSearchTypeaheadStructuredHighConfidenceKeywordViewItem.resolver"],(function(a,b,c,d,e,f,g){"use strict";a=[{resolver:c("cometSearchTypeaheadStructuredDirectNavKeywordViewItem.resolver"),viewItem:c("CometSearchTypeaheadBaseStructuredDirectNavKeywordViewItem.react")},{resolver:c("cometSearchTypeaheadStructuredHighConfidenceKeywordViewItem.resolver"),viewItem:c("CometSearchTypeaheadBaseStructuredHighConfidenceKeywordViewItem.react")},{resolver:c("cometSearchTypeaheadStructuredDisambiguationKeywordViewItem.resolver"),viewItem:c("CometSearchTypeaheadBaseStructuredDisambiguationKeywordViewItem.react")},{resolver:c("cometSearchTypeaheadStructuredDirectNavKeywordRecentViewItem.resolver"),viewItem:c("CometSearchTypeaheadStructuredDirectNavKeywordRecentViewItem.react")},{resolver:c("cometSearchTypeaheadStructuredHighConfidenceKeywordRecentViewItem.resolver"),viewItem:c("CometSearchTypeaheadStructuredHighConfidenceKeywordRecentViewItem.react")},{resolver:c("cometSearchTypeaheadStructuredDisambiguationKeywordRecentViewItem.resolver"),viewItem:c("CometSearchTypeaheadStructuredDisambiguationKeywordRecentViewItem.react")},{resolver:c("cometSearchTypeaheadRecentEntityViewItem.resolver"),viewItem:c("CometSearchTypeaheadBaseSurfaceRecentEntityViewItem.react")}].filter(Boolean);g["default"]=a}),98); __d("SearchCometGlobalTypeaheadInputStrategy.react",["CometTypeaheadInputRoundedStrategy.react","SearchCometTypeaheadEventEmitterContext","cr:2012305","react","useMergeRefs","useRefEffect","useSearchCometEventEmitterContext"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");e=d("react");var i=e.useEffect,j=e.useRef;function a(a,d){var e,f=a.onChange;a=babelHelpers.objectWithoutPropertiesLoose(a,["onChange"]);e=(e=c("useSearchCometEventEmitterContext")(c("SearchCometTypeaheadEventEmitterContext")))!=null?e:{};var g=e.subscribeToGlobalTypeaheadFocus;e=c("useRefEffect")(function(a){return g==null?void 0:g(function(){if(a==null)return;a.value="";a.focus();f("")})},[f,g]);var k=j(null),l=j(!1);i(function(){var a=k.current;if(b("cr:2012305")!=null&&a!=null&&l.current===!1){b("cr:2012305").trackTypingPerf(a,"top_tab_serp_typeahead");l.current=!0;return function(){b("cr:2012305").unregisterTypingPerf(a),l.current=!1}}},[]);e=c("useMergeRefs")(e,k);e=c("useMergeRefs")(e,d);return h.jsx(c("CometTypeaheadInputRoundedStrategy.react"),babelHelpers["extends"]({},a,{onChange:f,ref:e}))}a.displayName=a.name+" [from "+f.id+"]";d=h.forwardRef(a);g["default"]=d}),98); __d("SearchCometGlobalTypeaheadLayoutContextualStrategy.react",["CometHeroHoldTrigger.react","CometHeroInteractionWithDiv.react","CometTypeaheadInternalLayoutInlineStrategy.react","react","useBaseTypeaheadLayoutContextualStrategyStateContext","useCometInternalTypeaheadFetch","useCometInternalTypeaheadHeroTracing","useCometInternalTypeaheadState","useCometTypeaheadInputRefs","useCometTypeaheadInternalLayoutContextualStrategyHandlers","useCometTypeaheadLayoutContextualStrategyARIAProps","useSearchCometGlobalTypeaheadStyles"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.extraLayoutProps;b=b===void 0?{}:b;var d=b.afterViewContent;b=b.beforeViewContent;var e=a.helperText,f=a.label,g=a.onAbandonTypeahead_DO_NOT_USE,i=a.onBlur,j=a.onChange,k=a.onClick,l=a.onDownArrow,m=a.onEnter,n=a.onEscape,o=a.onHighlightEntry,p=a.onOutsideClick,q=a.onPressEntry,r=a.onShiftTab,s=a.onTab,t=a.onUpArrow,u=a.traceProvider,v=a.viewRole,w=a.inputRef,x=a.xstyles;a=babelHelpers.objectWithoutPropertiesLoose(a,["extraLayoutProps","helperText","label","onAbandonTypeahead_DO_NOT_USE","onBlur","onChange","onClick","onDownArrow","onEnter","onEscape","onHighlightEntry","onOutsideClick","onPressEntry","onShiftTab","onTab","onUpArrow","traceProvider","viewRole","inputRef","xstyles"]);var y=c("useBaseTypeaheadLayoutContextualStrategyStateContext")();y=y.isOpened;var z=c("useCometInternalTypeaheadState")(),A=z.activeEntries;z=z.highlightedEntry;var B=c("useCometInternalTypeaheadFetch")();B=B.isLoading;w=c("useCometTypeaheadInputRefs")(w);var C=w.composedRef;w=w.inputRef;var D=c("useSearchCometGlobalTypeaheadStyles")();x=(x=x)!=null?x:D;D=c("useCometInternalTypeaheadHeroTracing")(u,j);u=D.interactionUUID;j=D.onTracedChange;var E=D.shouldHoldHeroTracing;D=D.vcTrackerRef;g=c("useCometTypeaheadInternalLayoutContextualStrategyHandlers")({handlers:{onAbandonTypeahead_DO_NOT_USE:g,onBlur:i,onChange:j,onClick:k,onDownArrow:l,onEnter:m,onEscape:n,onHighlightEntry:o,onOutsideClick:p,onPressEntry:q,onShiftTab:r,onTab:s,onUpArrow:t},inputRef:w});i=c("useCometTypeaheadLayoutContextualStrategyARIAProps")({activeEntries:A,helperText:e,highlightedEntry:z,inputLabel:f,isOpened:y,viewRole:v});return h.jsxs(c("CometHeroInteractionWithDiv.react"),{interactionDesc:"Search_Typeahead",interactionUUID:u,ref:D,children:[h.jsx(c("CometHeroHoldTrigger.react"),{description:"SearchInternalTypeahead",hold:E}),h.jsx(c("CometTypeaheadInternalLayoutInlineStrategy.react"),babelHelpers["extends"]({},a,g,{extraLayoutProps:{afterViewContent:d,ariaProps:i,beforeViewContent:b,helperTextComponent:null,isLoading:B,isOpened:y},inputRef:C,label:f,viewRole:v,xstyles:x}))]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("SearchCometInterestsDeepDiveExperiments",["gkx"],(function(a,b,c,d,e,f,g){"use strict";function a(){return c("gkx")("1570865")}g.hasTypeaheadRedirection=a}),98); __d("searchCometGlobalTypeahead.config",["qex"],(function(a,b,c,d,e,f,g){"use strict";a=8;d={dataSources:{bootstrapKeywordsDataSourceParams:{queryVariables:{first:(b=c("qex")._("156"))!=null?b:2e3}},keywordDataSourceParams:{queryVariables:{fetch_count:a,fetch_mode:"blended"}}},logging:{sessionContext:"SEARCH_GLOBAL"},view:{renderLimit:a,sectionLimits:new Map([["RECENT_SEARCHES",a]])}};g["default"]=d}),98); __d("useSearchCometGlobalTypeaheadCompositeDataSource",["useSearchCometTypeaheadCompositeDataSource"],(function(a,b,c,d,e,f,g){"use strict";var h={instance:null};function a(a){a=c("useSearchCometTypeaheadCompositeDataSource")(a);h.instance==null&&(h.instance=a);return h.instance}g["default"]=a}),98); __d("useSearchCometGlobalTypeaheadURLBuilderForKeywordEntry",["Base64","ConstUriUtils","SearchCometInterestsDeepDiveExperiments","SearchCometInterestsDeepDiveUtil","searchCometTypeaheadGetHighConfidenceResult","searchCometTypeaheadGetStsDisambiguation","useSearchCometGlobalSERPRouteUrlBuilder","useSearchCometHashtagRouteUrlBuilder","useSearchCometResultsEntryPointSurface"],(function(a,b,c,d,e,f,g){"use strict";function a(){var a=c("useSearchCometGlobalSERPRouteUrlBuilder")(),b=c("useSearchCometHashtagRouteUrlBuilder")(),e=c("useSearchCometResultsEntryPointSurface")();return function(f){var g=f.entry,h=f.queryString;f=f.typeaheadSessionID;var i=g.label.toLowerCase(),j=g.metaData;j=j==null?void 0:j.markers;var k=d("SearchCometInterestsDeepDiveUtil").getHashtagTag(i);if(d("SearchCometInterestsDeepDiveExperiments").hasTypeaheadRedirection()&&k!=null&&!j.has("see_all"))return b({entryPointAction:"SEARCH_BOX",exploreEntryPoint:h===""?3:4,hashtag:k,typeaheadSessionID:f});else{h=g.rawData;k=(k=c("searchCometTypeaheadGetStsDisambiguation")(g))!=null?k:void 0;if(g.subtype==="keyword"&&j.has("disambiguation")){h=(j=(j=h.structuredInfo)==null?void 0:(h=j.disambiguation_result)==null?void 0:h.disambiguation_info_list[0])!=null?j:{};j=h.link_url;if(j!=null){h=d("ConstUriUtils").getUri(j);if(h!=null){j=new Map();e!=null&&j.set("__eps__",e);k!==void 0&&j.set("__stsd__",c("Base64").encode(JSON.stringify(k)));var l=new Map();for(var j=j,m=Array.isArray(j),n=0,j=m?j:j[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var o;if(m){if(n>=j.length)break;o=j[n++]}else{n=j.next();if(n.done)break;o=n.value}o=o;var p=o[0];o=o[1];l.set(p,o)}p=h.addQueryParams(l);if(p!=null)return p.toString()}}}return a({entryPointAction:"SEARCH_BOX",highConfidenceResult:c("searchCometTypeaheadGetHighConfidenceResult")(g),query:i,stsDisambiguation:k,typeaheadSessionID:f})}}}g["default"]=a}),98); __d("useSearchCometGlobalTypeaheadKeywordViewItemLinkProps",["gkx","react","useCometRouterDispatcher","useSearchCometGlobalTypeaheadURLBuilderForKeywordEntry"],(function(a,b,c,d,e,f,g){"use strict";b=d("react");var h=b.useEffect,i=b.useMemo;function a(a){var b=a.entry,d=a.queryString,e=c("useCometRouterDispatcher")(),f=c("useSearchCometGlobalTypeaheadURLBuilderForKeywordEntry")(),g=i(function(){return f({entry:b,queryString:d})},[f,b,d]);h(function(){e!=null&&c("gkx")("1990285")&&e.preloadRouteCode(g)},[e,g]);return i(function(){return{preloadCodeOnMount:!0,preventLocalNavigation:!0,url:g}},[g])}g["default"]=a}),98); __d("useSearchCometGlobalTypeaheadViewStrategy",["fbt","CometGlobalPanelGating","CometSearchTypeaheadBaseViewRecentEmptyState.react","react","searchCometTypeaheadSTSMappings","useSearchCometGlobalTypeaheadKeywordViewItemLinkProps","useSearchCometTypeaheadViewListStrategy"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=d("react").useMemo,k={view:{backgroundColor:"x1jx94hy",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",boxSizing:"x9f619",display:"x78zum5",flexDirection:"xdt5ytf",flexGrow:"x1iyjqo2",maxHeight:"x1iofjn4",paddingTop:"x1y1aw1k",paddingEnd:"x1sxyh0",paddingBottom:"xwib8y2",paddingStart:"xurb0ha",$$css:!0},viewGlobalPanel:{borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",boxShadow:"x10h3on",$$css:!0}};function a(a){a=a.onHeaderActionPress;var b=j(function(){return[k.view,d("CometGlobalPanelGating").isGlobalPanelVisible()&&k.viewGlobalPanel]},[]),e=j(function(){return i.jsx(c("CometSearchTypeaheadBaseViewRecentEmptyState.react"),{})},[]);return c("useSearchCometTypeaheadViewListStrategy")({additionalEntryMappings:c("searchCometTypeaheadSTSMappings"),emptyStateContent:e,getLinkProps:c("useSearchCometGlobalTypeaheadKeywordViewItemLinkProps"),isScrollable:!0,onHeaderActionPress:a,seeAllLabelBuilder:l,xstyle:b})}function l(a){return h._("__JHASH__LChIaXBIwAT__JHASH__",[h._implicitParam("=m1",i.jsx("strong",{children:h._("__JHASH__BFbyaDXF_eS__JHASH__",[h._param("query",a)])}))])}l.displayName=l.name+" [from "+f.id+"]";g["default"]=a}),98); __d("withSearchCometGlobalTypeaheadCleanStateOnEntrySelection",["react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useCallback;function a(a){return function(b){var c=b.inputRef,d=b.onChange,e=b.onPressEntry,f=b.shouldQueryStringUpdateFromSelectedEntryOnClick;f=f===void 0?!1:f;b=babelHelpers.objectWithoutPropertiesLoose(b,["inputRef","onChange","onPressEntry","shouldQueryStringUpdateFromSelectedEntryOnClick"]);var g=i(function(a){var b=a.metaData.markers,c=a.subtype;c=c==="recent"&&b.has("entity")||b.has("direct_nav");d(c?"":a.label);e&&e(a)},[d,e]);return h.jsx(a,babelHelpers["extends"]({},b,{inputRef:c,onChange:d,onPressEntry:g,shouldQueryStringUpdateFromSelectedEntryOnClick:f}))}}g["default"]=a}),98); __d("withSearchCometGlobalTypeaheadFocusKeyboardShortcut",["cometGetKeyCommandConfig","react","useBaseTypeaheadLayoutContextualStrategyStateContext","useCometTypeaheadInputRefs","useGlobalKeyCommands"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useCallback,j=b.useMemo;function a(a){return function(b){var e=b.inputRef;b=babelHelpers.objectWithoutPropertiesLoose(b,["inputRef"]);e=c("useCometTypeaheadInputRefs")(e);var f=e.composedRef,g=e.inputRef;e=c("useBaseTypeaheadLayoutContextualStrategyStateContext")();var k=e.dispatchIsOpened,l=i(function(){g.current!=null&&(g.current.focus(),k(!0))},[g,k]);e=j(function(){return[d("cometGetKeyCommandConfig").getCometKeyCommandConfig("global","search",l)]},[l]);c("useGlobalKeyCommands")(e);return h.jsx(a,babelHelpers["extends"]({},b,{inputRef:f}))}}g["default"]=a}),98); __d("SearchCometGlobalTypeahead.react",["fbt","BaseTypeahead.react","CometErrorBoundary.react","CometGlobalPanelGating","CometTypeaheadErrorFallback.react","QPLUserFlow","QPLUtils","Random","SearchCometGlobalTypeaheadInputStrategy.react","SearchCometGlobalTypeaheadLayoutContextualStrategy.react","SearchCometInterestsDeepDiveExperiments","SearchCometInterestsDeepDiveUtil","emptyFunction","qex","qpl","react","searchCometGlobalTypeahead.config","searchCometTypeaheadODSLogFocusEvent","unrecoverableViolation","useCometSearchTypeaheadTraceProvider","useCometTypeaheadNavigate","useCometTypeaheadStateQueryString","useSearchCometGlobalSERPRouteUrlBuilder","useSearchCometGlobalTypeaheadCompositeDataSource","useSearchCometGlobalTypeaheadURLBuilderForKeywordEntry","useSearchCometGlobalTypeaheadViewStrategy","useSearchCometHashtagRouteUrlBuilder","useSearchCometRecentSearchDataSource","useSearchCometTypeaheadBootstrapValidation","useSearchCometTypeaheadLoggingProvider","useSearchCometTypeaheadRecentDataSourceContextDecorator","useStable","withSearchCometGlobalTypeaheadCleanStateOnEntrySelection","withSearchCometGlobalTypeaheadFocusKeyboardShortcut","withSearchCometTypeaheadBaseNavigationDecorator","withSearchCometTypeaheadSERPWarmCallDecorator","withSearchCometTypeaheadTraceEndReasonDecorator"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useCallback,k=b.useEffect,l=b.useMemo,m=b.useRef;function a(a){var b=a.autoOpen;b=b===void 0?!1:b;var e=a.inputXStyle,f=a.onClose,g=a.onEscape,o=a.onFocus,p=a.onHeaderActionPress,q=a.onPressEntry,r=a.onSelectFreeformQuery,s=a.queryString;a=babelHelpers.objectWithoutPropertiesLoose(a,["autoOpen","inputXStyle","onClose","onEscape","onFocus","onHeaderActionPress","onPressEntry","onSelectFreeformQuery","queryString"]);s=c("useCometTypeaheadStateQueryString")(s);var t=s[0];s=s[1];var u=c("useSearchCometGlobalTypeaheadURLBuilderForKeywordEntry")(),v=c("useSearchCometGlobalSERPRouteUrlBuilder")(),w=c("useSearchCometHashtagRouteUrlBuilder")(),x=c("useCometTypeaheadNavigate")({tapPoint:"tap_search_bar"}),y=m(!1),z=c("useSearchCometRecentSearchDataSource")({fetchNullstate:Boolean(c("qex")._("88")),fetchSearchBadge:Boolean(c("qex")._("1272")),filter:"all"}),A=c("useSearchCometGlobalTypeaheadCompositeDataSource")({config:c("searchCometGlobalTypeahead.config"),recentDataSource:z}),B=A.getBootstrapKeywordsDataSource();if(B==null)throw c("unrecoverableViolation")("Bootstrap datasource is missing","search");z=c("useSearchCometTypeaheadBootstrapValidation")({bootstrapDatasource:B});var C=z.validate;z=j(function(a){var b=a.reason,e=a.sessionID;a=a.shownEntries;C(a);b==="success"?c("QPLUserFlow").endSuccess(c("qpl")._(195636649,"5429"),{instanceKey:d("QPLUtils").deriveInstanceKey(e)}):b==="abandon"&&c("QPLUserFlow").endCancel(c("qpl")._(195636649,"5429"),{instanceKey:d("QPLUtils").deriveInstanceKey(e)})},[C]);var D=c("useSearchCometTypeaheadLoggingProvider")({context:"search_global",onSessionEnd:z});z=c("useCometSearchTypeaheadTraceProvider")(D);var E=c("useSearchCometTypeaheadRecentDataSourceContextDecorator")(A,!1),F=l(function(){return[E,{decorate:c("withSearchCometGlobalTypeaheadFocusKeyboardShortcut")}].filter(Boolean)},[E]);k(function(){A.bootstrap()},[A]);var G=j(function(){var a;a=(a=c("qex")._("869"))!=null?a:!1;a&&!y.current&&B.bootstrap();y.current=!0;a=2;d("Random").coinflip(a)&&c("searchCometTypeaheadODSLogFocusEvent")("comet.ta_global_event_focus",a);c("QPLUserFlow").start(c("qpl")._(195636649,"5429"),{instanceKey:d("QPLUtils").deriveInstanceKey(D.getSessionID())});o&&o()},[B,D,o]),H=j(function(a){var b=a.metaData;b=b==null?void 0:b.markers;var c=b!=null&&b.has("entity");b=b!=null&&b.has("direct_nav");var d=u({entry:a,queryString:t,typeaheadSessionID:D.getSessionID()});d=n(a,d,c,b);x(d);q==null?void 0:q(a)},[D,x,q,t,u]),I=j(function(a){var b=d("SearchCometInterestsDeepDiveUtil").getHashtagTag(a);d("SearchCometInterestsDeepDiveExperiments").hasTypeaheadRedirection()&&b!=null?b=w({entryPointAction:"SEARCH_BOX",exploreEntryPoint:t===""?3:4,hashtag:b,typeaheadSessionID:D.getSessionID()}):b=v({entryPointAction:"SEARCH_BOX",query:a,typeaheadSessionID:D.getSessionID()});x(b);r==null?void 0:r(a)},[w,D,x,r,t,v]),J=j(function(){A.clearQueryCache(),f&&f()},[A,f]),K=c("useStable")(function(){var a;return((a=c("withSearchCometTypeaheadSERPWarmCallDecorator"))!=null?a:c("emptyFunction").thatReturnsArgument)(c("withSearchCometTypeaheadTraceEndReasonDecorator")(c("withSearchCometGlobalTypeaheadCleanStateOnEntrySelection")(c("withSearchCometTypeaheadBaseNavigationDecorator")(c("BaseTypeahead.react")))))}),L=h._("__JHASH___9EIWdQL4U5__JHASH__"),M=t==="";M=M?"grid":"listbox";return i.jsx(c("CometErrorBoundary.react"),{fallback:function(){return i.jsx(c("CometTypeaheadErrorFallback.react"),{})},children:i.jsx(K,babelHelpers["extends"]({},a,{autoOpen:b,dataSource:A,decorators:F,inputEndContent:a.inputEndContent,inputExtraProps:{hideIconOnFocus:!d("CometGlobalPanelGating").isGlobalPanelVisible(),size:"large",xstyle:e},inputStartContent:a.inputStartContent,inputStrategyRenderer:c("SearchCometGlobalTypeaheadInputStrategy.react"),label:h._("__JHASH__oTSOcwn1bTU__JHASH__"),layoutStrategyRenderer:c("SearchCometGlobalTypeaheadLayoutContextualStrategy.react"),loggingProvider:D,onChange:s,onClose:J,onEscape:g,onFocus:G,onPressEntry:H,onSelectFreeformQuery:I,placeholder:L,queryString:t,testid:void 0,traceProvider:z,viewRole:M,viewStrategyRenderer:c("useSearchCometGlobalTypeaheadViewStrategy")({onHeaderActionPress:p})}))})}a.displayName=a.name+" [from "+f.id+"]";function n(a,b,c,d){var e=a.rawData,f;if(e!=null&&a.subtype==="recent"&&c){f=e==null?void 0:(c=e.profile)==null?void 0:c.url}if(e!=null&&(a.subtype==="keyword"||a.subtype==="bootstrap"||a.subtype==="recent")&&d){f=e==null?void 0:(c=e.structuredInfo)==null?void 0:(a=c.direct_nav_result)==null?void 0:a.link_url}return(d=f)!=null?d:b}g["default"]=a}),98); __d("GlobalVideoPortsManager",["addToMap","emptyFunction","gkx","removeFromMap"],(function(a,b,c,d,e,f,g){"use strict";a=c("emptyFunction");function h(a){return a.unlinkedAtTimestampMs!==null}var i=1e4;b=function(){function a(a){var b=this;this.$1=function(c){var d=function(a){return c(b.$2(a))};a(d)}}var b=a.prototype;b.addOrUpdatePlace=function(a){var b=this,d=a.coreVideoPlayerMetaData,e=a.fullscreenController,f=a.implementations,g=a.injectCoreVideoStatesRef,i=a.isFullscreen,j=a.portablePlaceContainer,k=a.portablePlaceID,l=a.portablePlaceMetaData,m=a.portableVideoID,n=a.renderComponents,o=a.renderPlaceholder,p=a.trackingDataEncrypted,q=a.trackingNodes,r=a.viewportMarginsForViewability;this.$1(function(a){var s,t=b.getPortableVideoState(a,m),u=(s=a.places.get(k))!=null?s:null;s=u!=null&&!h(u)?u.sequenceNumber:a.placesSequenceNumberNext;var v=s===a.placesSequenceNumberNext?a.placesSequenceNumberNext+1:a.placesSequenceNumberNext,w=l||{},x=a.places;if(m!=null){var y=b.getPlacesBorrowingThisVideo(x,m);y.forEach(function(a){h(a)&&a.portablePlaceID!==(u==null?void 0:u.portablePlaceID)&&(x=c("removeFromMap")(x,a.portablePlaceID))})}x=c("addToMap")(x,k,babelHelpers["extends"]({},u,{coreVideoPlayerMetaData:d,currentVideoID:m,fullscreenController:e,implementations:f,injectCoreVideoStatesRef:g,isFullscreen:i,portablePlaceContainer:j,portablePlaceID:k,portablePlaceMetaData:w,renderComponents:n,renderPlaceholder:(y=o)!=null?y:null,sequenceNumber:s,trackingDataEncrypted:p,trackingNodes:q,unlinkedAtTimestampMs:null,viewportMarginsForViewability:r}));w=u!==null&&m===null?u.currentVideoID:null;y=a.videos;if(w!==null){s=b.getPlacesBorrowingThisVideo(x,w);s=0===s.length;s&&(y=c("removeFromMap")(a.videos,w))}if(m!==null){s=b.updatePreviousPlaceMetaDataInfoForVideo({existingVideoState:t,places:a.places,setPreferredPlaceForVideo:!1,updatedPlaces:x,videoID:m});w=s.nextPreviousPlaceMetaData;y=c("addToMap")(y,m,t?babelHelpers["extends"]({},t,{portableVideoID:m,previousPlaceMetaData:w}):{portableVideoID:m,preferredPlaceID:null,previousPlaceMetaData:w})}return x===a.places&&v===a.placesSequenceNumberNext&&y===a.videos?a:babelHelpers["extends"]({},a,{places:x,placesSequenceNumberNext:v,videos:y})})};b.removePlace=function(a){var b=this,d=a.portablePlaceID,e=Date.now();this.$1(function(a){var f;f=(f=a.places.get(d))!=null?f:null;var g=f!==null?f.currentVideoID:null;if(f===null)return a;var h=a.places,i=g!==null?b.skipUnlinkedPlaces(b.getPlacesBorrowingThisVideo(h,g)).filter(function(a){return a.portablePlaceID!==d}):[];g!==null&&i.length===0?h=c("addToMap")(h,d,babelHelpers["extends"]({},f,{unlinkedAtTimestampMs:e})):h=c("removeFromMap")(h,d);i=a.videos;if(g!==null){f=b.getPlacesBorrowingThisVideo(h,g);f=0===f.length;if(f)i=c("removeFromMap")(i,g);else{f=b.getPortableVideoState(a,g);var j=b.updatePreviousPlaceMetaDataInfoForVideo({existingVideoState:f,places:a.places,setPreferredPlaceForVideo:!1,updatedPlaces:h,videoID:g}),k=j.nextPreviousPlaceMetaData;j=j.shouldUpdatePreviousPlaceMetaDataForVideo;f!=null&&j&&(i=c("addToMap")(i,g,babelHelpers["extends"]({},f,{portableVideoID:g,previousPlaceMetaData:k})))}}return h===a.places&&i===a.videos?a:babelHelpers["extends"]({},a,{places:h,videos:i})})};b.setPreferredPlaceForVideo=function(a){var b=this,d=a.portablePlaceID,e=a.portableVideoID;this.$1(function(a){var f=b.getPortableVideoState(a,e),g=d!=null?a.places.get(d):null,h=b.updatePreviousPlaceMetaDataInfoForVideo({existingPlaceStateForSetPreferredPlaceForVideo:g,existingVideoState:f,places:a.places,preferredPlaceID:d,setPreferredPlaceForVideo:!0,updatedPlaces:a.places,videoID:e});h=h.nextPreviousPlaceMetaData;f=f!=null?c("addToMap")(a.videos,e,babelHelpers["extends"]({},f,{preferredPlaceID:g!=null&&d!=null?d:null,previousPlaceMetaData:h})):a.videos;return f===a.videos?a:babelHelpers["extends"]({},a,{videos:f})})};b.getPlacesBorrowingThisVideo=function(a,b){var c=[];a.forEach(function(a){a.currentVideoID===b&&c.push(a)});return c};b.skipUnlinkedPlaces=function(a){return a.filter(function(a){return!h(a)})};b.selectCurrentPlaceFromThesePlaces=function(a,b){var c;a=a.slice().sort(function(a,b){return a.sequenceNumber-b.sequenceNumber});c=(c=a.find(function(a){return a.portablePlaceID===b}))!=null?c:null;a=a.length>0?a[a.length-1]:null;return(c=(c=c)!=null?c:a)!=null?c:null};b.getCurrentPlaceStateForVideo=function(a,b){var c=this.getPortableVideoState(a,b);if(c!=null&&b!=null){a=this.selectCurrentPlaceFromThesePlaces(this.skipUnlinkedPlaces(this.getPlacesBorrowingThisVideo(a.places,b)),c.preferredPlaceID);return(b=a)!=null?b:null}else return null};b.getPortableVideoState=function(a,b){if(b!=null){a=a.videos.get(b);return(b=a)!=null?b:null}return null};b.updatePreviousPlaceMetaDataInfoForVideo=function(a){var b=this,c=a.existingPlaceStateForSetPreferredPlaceForVideo,d=a.existingVideoState,e=a.places,f=a.preferredPlaceID,g=a.setPreferredPlaceForVideo,h=a.updatedPlaces,i=a.videoID;a=function(a,c){return b.selectCurrentPlaceFromThesePlaces(b.skipUnlinkedPlaces(b.getPlacesBorrowingThisVideo(a,i)),(a=c)!=null?a:null)};var j=a(e,d==null?void 0:d.preferredPlaceID);g?g=c!=null?a(e,f):null:g=a(h,d==null?void 0:d.preferredPlaceID);e=j!=null&&(j==null?void 0:j.portablePlaceID)!==((c=g)==null?void 0:c.portablePlaceID);return{nextPreviousPlaceMetaData:e&&j!=null?j.portablePlaceMetaData:(f=d==null?void 0:d.previousPlaceMetaData)!=null?f:null,shouldUpdatePreviousPlaceMetaDataForVideo:e}};b.collectGarbage=function(){this.$1(function(a){return a})};b.$2=function(a){var b=Date.now(),d=new Set(),e=a.places;a.places.forEach(function(a){a.unlinkedAtTimestampMs!==null&&b-a.unlinkedAtTimestampMs>=i?e=c("removeFromMap")(e,a.portablePlaceID):a.currentVideoID!==null&&d.add(a.currentVideoID)});var f=a.videos;a.videos.forEach(function(a){d.has(a.portableVideoID)||(f=c("removeFromMap")(f,a.portableVideoID))});return e===a.places&&f===a.videos?a:babelHelpers["extends"]({},a,{places:e,videos:f})};return a}();g.isUnlinkedGlobalVideoPortsPlace=h;g.UNLINKED_PLACE_TIMEOUT_MS=i;g.GlobalVideoPortsManager=b}),98); __d("GlobalVideoPortsPortalerErrorBoundary.react",["react"],(function(a,b,c,d,e,f,g){"use strict";a=d("react");b=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f