if (self.CavalryLogger) { CavalryLogger.start_js(["L0Xaz5L"]); } __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:"3762400843858666",metadata:{},name:"CometNotificationsBadgeCountQuery",operationKind:"query",text:null}}}();b("relay-runtime").PreloadableQueryRegistry.set(a.params.id,a);e.exports=a}),null); __d("MWChatSettingsQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="2624335320919327"}),null); __d("MWChatSettingsQuery.graphql",["MWChatSettingsQuery_facebookRelayOperation","relay-runtime"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"chat_tabs_turned_off",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"chat_sounds_on",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MWChatSettingsQuery",selections:a,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"MWChatSettingsQuery",selections:a},params:{id:b("MWChatSettingsQuery_facebookRelayOperation"),metadata:{},name:"MWChatSettingsQuery",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:"4353534258048205",metadata:{},name:"MWChatBadgeCountQuery",operationKind:"query",text:null}}}();b("relay-runtime").PreloadableQueryRegistry.set(a.params.id,a);e.exports=a}),null); __d("CometSearchBootstrapKeywordsDataSourceQuery.graphql",["relay-runtime"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"first"}],b=[{kind:"Variable",name:"first",variableName:"first"}],c={alias:null,args:null,kind:"ScalarField",name:"keyword_text",storageKey:null},d={alias:null,args:null,kind:"ScalarField",name:"item_logging_id",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"item_logging_info",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"link_url",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"snippet",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null};g=[{alias:null,args:null,concreteType:"STSDirectNavResult",kind:"LinkedField",name:"direct_nav_result",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"ent_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"img_url",storageKey:null},f,{alias:null,args:null,kind:"ScalarField",name:"entity_type",storageKey:null},g,h,i],storageKey:null},{alias:null,args:null,concreteType:"STSHighConfidenceResult",kind:"LinkedField",name:"high_confidence_result",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"hcm_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"picture_url",storageKey:null},g,{alias:null,args:null,kind:"ScalarField",name:"source_as_enum",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"STSDisambiguationResult",kind:"LinkedField",name:"disambiguation_result",plural:!1,selections:[h,{alias:null,args:null,concreteType:"STSDisambiguationInfo",kind:"LinkedField",name:"disambiguation_info_list",plural:!0,selections:[{alias:"snippet",args:null,kind:"ScalarField",name:"text",storageKey:null},f,i],storageKey:null}],storageKey:null}];h={alias:null,args:null,concreteType:"SearchTypeaheadSuggestionKeys",kind:"LinkedField",name:"suggestion_keys",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"tier",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"keys",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"default_key",storageKey:null}],storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"CometSearchBootstrapKeywordsDataSourceQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:b,concreteType:"BootstrapKeywordsConnection",kind:"LinkedField",name:"bootstrap_keywords",plural:!1,selections:[{alias:null,args:null,concreteType:"BootstrapKeywordsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"BootstrapResult",kind:"LinkedField",name:"node",plural:!1,selections:[c,d,e,{alias:null,args:null,concreteType:"StructuredTypeaheadInfo",kind:"LinkedField",name:"sts_info",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"getSearchCometKeywordDataSourceStructuredInfoForEntry_structuredTypeaheadInfo",selections:g}],storageKey:null},h],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"CometSearchBootstrapKeywordsDataSourceQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:b,concreteType:"BootstrapKeywordsConnection",kind:"LinkedField",name:"bootstrap_keywords",plural:!1,selections:[{alias:null,args:null,concreteType:"BootstrapKeywordsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"BootstrapResult",kind:"LinkedField",name:"node",plural:!1,selections:[c,d,e,{alias:null,args:null,concreteType:"StructuredTypeaheadInfo",kind:"LinkedField",name:"sts_info",plural:!1,selections:g,storageKey:null},h],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:"4255077087859078",metadata:{},name:"CometSearchBootstrapKeywordsDataSourceQuery",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="4863818706977972"}),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("CometUsabilityMidTaskDialogQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="3725149887565113"}),null); __d("CometUsabilityMidTaskDialogQuery$Parameters",["CometUsabilityMidTaskDialogQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("CometUsabilityMidTaskDialogQuery_facebookRelayOperation"),metadata:{},name:"CometUsabilityMidTaskDialogQuery",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:"pmk7jnqg"},container:{display:"j83agx80"},content:{backgroundColor:"ms7hmo2b",borderTopStartRadius:"ue3kfks5",borderTopEndRadius:"pw54ja7n",borderBottomEndRadius:"uo3d90p7",borderBottomStartRadius:"l82x9zwi",borderTopWidth:"frvqaej8",borderEndWidth:"ed0hlay0",borderBottomWidth:"afxsp9o4",borderStartWidth:"jcgfde61",boxShadow:"rdkkywzo",paddingEnd:"d1544ag0",paddingStart:"tw6a2znq",paddingTop:"discj3wi",paddingBottom:"ihqw7lf3"}},k={accent:{backgroundColor:"is6700om"},"default":{backgroundColor:"hn33210v"}},l={end:{borderBottomEndRadius:"jinzq4gt",marginBottom:"sej5wr8e"},middle:{marginBottom:"tvmbv18p"},start:{borderBottomStartRadius:"mrjvor2e",marginBottom:"sej5wr8e"}},m={end:{borderTopEndRadius:"h905i5nu",marginTop:"jei6r52m"},middle:{marginTop:"aahdfvyu"},start:{borderTopStartRadius:"monazrh9",marginTop:"jei6r52m"}},n={end:{bottom:"bv1bx3ta",end:"n7fi1qx3",transform:"c3knoul3"},middle:{bottom:"bv1bx3ta",end:"n7fi1qx3"},start:{bottom:"bv1bx3ta",start:"j9ispegn"}},o={end:{},middle:{},start:{}},p={end:{bottom:"bv1bx3ta",end:"n7fi1qx3",transform:"c3knoul3"},middle:{bottom:"bv1bx3ta",end:"n7fi1qx3"},start:{bottom:"bv1bx3ta",start:"j9ispegn"}},q={end:{},middle:{},start:{}},r={end:{end:"n7fi1qx3",top:"k91nt6a8",transform:"j9x3uwb8"},middle:{end:"n7fi1qx3",top:"k91nt6a8",transform:"lpj2ewlf"},start:{start:"j9ispegn",top:"k91nt6a8",transform:"lpj2ewlf"}},s={end:{transform:"j9x3uwb8"},middle:{transform:"lpj2ewlf"},start:{transform:"lpj2ewlf"}},t={end:{end:"n7fi1qx3",top:"k91nt6a8",transform:"j9x3uwb8"},middle:{end:"n7fi1qx3",top:"k91nt6a8",transform:"lpj2ewlf"},start:{start:"j9ispegn",top:"k91nt6a8",transform:"lpj2ewlf"}},u={end:{transform:"j9x3uwb8"},middle:{transform:"lpj2ewlf"},start:{transform:"lpj2ewlf"}},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:"pmk7jnqg"},container:{display:"j83agx80"},content:{backgroundColor:"ms7hmo2b",borderTopStartRadius:"ue3kfks5",borderTopEndRadius:"pw54ja7n",borderBottomEndRadius:"uo3d90p7",borderBottomStartRadius:"l82x9zwi",borderTopWidth:"frvqaej8",borderEndWidth:"ed0hlay0",borderBottomWidth:"afxsp9o4",borderStartWidth:"jcgfde61",boxShadow:"rdkkywzo",paddingEnd:"d1544ag0",paddingStart:"tw6a2znq",paddingTop:"discj3wi",paddingBottom:"ihqw7lf3"}},k={accent:{backgroundColor:"is6700om"},"default":{backgroundColor:"hn33210v"}},l={above:{marginBottom:"sjgh65i0"},below:{marginTop:"tr9rh885"},end:{marginStart:"dhix69tm"}},m={above:{bottom:"l2l2r6co"},below:{top:"ntk8zc1u",transform:"lpj2ewlf"},end:{}},n={above:{bottom:"l2l2r6co"},below:{top:"ntk8zc1u",transform:"lpj2ewlf"},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")),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:"j83agx80"},content:{backgroundColor:"ms7hmo2b",borderTopStartRadius:"ue3kfks5",borderTopEndRadius:"pw54ja7n",borderBottomEndRadius:"uo3d90p7",borderBottomStartRadius:"l82x9zwi",borderTopWidth:"frvqaej8",borderEndWidth:"ed0hlay0",borderBottomWidth:"afxsp9o4",borderStartWidth:"jcgfde61",boxShadow:"rdkkywzo",paddingEnd:"d1544ag0",paddingStart:"tw6a2znq",paddingTop:"discj3wi",paddingBottom:"ihqw7lf3"},crossoutButton:{marginEnd:"dlv3wnog",marginTop:"sv5sfqaa"},item:{paddingEnd:"p8fzw8mz",paddingStart:"pcp91wgn",paddingTop:"ipjc6fyt",paddingBottom:"iuny7tx3"}},n={accent:{backgroundColor:"is6700om"},"default":{backgroundColor:"hn33210v"}},o={above:{marginBottom:"tvmbv18p"},below:{marginTop:"aahdfvyu"},end:{marginStart:"kkf49tns"},start:{}};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._(/*FBT_CALL*/"Close"/*FBT_CALL*/),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","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,k=b.useRef;function a(a){var b=a.anchorRootRefContext,d=a.calloutID,e=a.calloutProps,f=a.contextRef,g=a.scrollableAreaContext;a=c("useCometDisplayTimingTrackerForInteraction")("CometCalloutManager");var l=k(null),m=i(c("CometCalloutContext"));j(function(){var a=g.map(function(a){return a.getDOMNode()}).filter(Boolean),b=function(){var a;return(a=l.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})})}}},[g]);return m==null||e==null||f==null?null:h.jsx(c("BaseContextualLayerAnchorRootContext").Provider,{value:b,children:h.jsx(c("BaseContextualLayer.react"),{align:e.align,contextRef:f,disableAutoAlign:e.disableAutoAlign,disableAutoFlip:e.disableAutoFlip,imperativeRef:l,position:e.position,ref:a,children:h.jsx(c("CometCallout.react"),{arrowStyle:e.arrowStyle,hasCloseButton:e.hasCloseButton,headline:e.headline,inlineSurvey:e.inlineSurvey,label:e.label,onClose:e.hasCloseButton===!0?function(){m.removeCallout(d),e.onClose==null?void 0:e.onClose()}:void 0,onHelpful:e.onHelpful,onHide:e.onHide,onNotHelpful:e.onNotHelpful,onOutsideClick:function(){e.disableOutsideClick!==!0&&m.removeCallout(d)},onPressCallout_experimentalDONOTUSE:e.onPressCallout_experimentalDONOTUSE,onShow:e.onShow,profilePhoto_experimentalDONOTUSE:e.profilePhoto_experimentalDONOTUSE,type:e.type,xstyle:e.xstyle})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometDraggableRoot.react",["UserAgent","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=c("UserAgent").isBrowser("Firefox")||c("UserAgent").isBrowser("Safari");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f0?j.jsx(c("CometNumberedBadge.react"),{ref:a,testid:void 0,value:f}):null})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("LSPlatformConfig.bs",["LSSuspense.bs","bs_caml_exceptions","react","unrecoverableViolation"],(function(a,b,c,d,e,f){"use strict";var g,h=g||b("react");d=b("bs_caml_exceptions").create("LSPlatformConfig.NoLSPlatformProviderFound");e=b("LSSuspense.bs").make(void 0);e.contents={TAG:1,_0:{RE_EXN_ID:d}};var i=h.createContext(e);function a(a){var b=a.children;a=a.config;return h.createElement(i.Provider,{value:a,children:b})}a={make:a};function c(a){a=h.useContext(i);a=a.contents;if(typeof a==="number")return b("unrecoverableViolation")("Tried to get an instance of LSPlatformConfig but got a config that was uninitialised","messenger_web_product");switch(a.TAG|0){case 0:return b("LSSuspense.bs").$$throw(a._0);case 1:return b("LSSuspense.bs").throwError(a._0);case 2:return a._0}}f.NoLSPlatformProviderFound=d;f.$$default=e;f["default"]=e;f.__esModule=!0;f.Provider=a;f.useOrSuspend=c}),null); __d("LSPlatformClientProvider.bs",["CometPlaceholder.react","LSClearEpochBeforeResumeSync.bs","LSPlatformClientInstances.bs","LSPlatformConfig.bs","LSPlatformConnectionStatusContext.bs","LSPlatformLogout.bs","LSSuspense.bs","Promise","Promise.bs","ReStore.bs","WeakMap.bs","bs_caml_option","bs_curry","cr:2073","gkx","killswitch","promiseDone","react","requireDeferred","unrecoverableViolation"],(function(a,b,c,d,e,f){"use strict";var g,h=g||b("react"),i=b("requireDeferred")("LSPlatformClient.bs").__setRef("LSPlatformClientProvider.bs");function j(a){var c=b("LSPlatformConfig.bs").useOrSuspend(void 0);a=b("WeakMap.bs").getOrMake(b("LSPlatformClientInstances.bs").instances,c,function(a){return{TAG:0,_0:i.load().then(function(a){return b("Promise.bs").$$catch(b("bs_curry")._1(a.make,c).then(function(a){b("bs_curry")._1(a.start,void 0),b("LSPlatformClientInstances.bs").instances.set(c,{TAG:2,_0:a})}),function(a){b("LSPlatformClientInstances.bs").instances.set(c,{TAG:1,_0:a});return b("Promise").resolve(void 0)})})}});if(typeof a==="number")return b("unrecoverableViolation")("Did not expect a LSPlatformClient that has not started initialising","messenger_web_product");switch(a.TAG|0){case 0:return b("LSSuspense.bs").$$throw(a._0);case 1:return b("LSSuspense.bs").throwError(a._0);case 2:return a._0}}c=b("cr:2073")==null?void 0:b("bs_caml_option").some(b("cr:2073"));function k(a){var c=a.children,d=a.cleanup;h.useEffect(function(){var a=b("cr:2073")==null?function(a){}:b("bs_curry")._1(b("cr:2073").onTabVisibilityChange,void 0);return function(c){return b("bs_curry")._1(a,void 0)}},[]);var e=j(void 0),f=b("LSPlatformConnectionStatusContext.bs").useStatusChangeHandler(void 0);h.useEffect(function(){e.onConnectionStatusChange(f);var a;if(b("killswitch")("MESSENGER_WEB_PERSISTED_DB"))a=[function(a){},function(a){},function(a){}];else if(b("cr:2073")==null)a=[function(a){},function(a){},function(a){}];else{var c=e.db,g=b("bs_curry")._2(b("cr:2073").onLocksLose,function(a){return b("bs_curry")._1(e.cleanup,void 0)},function(a){return c.isTransactionActive()}),h=b("bs_curry")._1(b("cr:2073").onLocksSetup,function(a){b("promiseDone")(b("LSClearEpochBeforeResumeSync.bs").call(e.db).then(function(a){return b("bs_curry")._1(e.start,void 0)}),void 0,void 0)}),i=b("bs_curry")._1(b("cr:2073").onClosingTab,function(a){return b("bs_curry")._1(e.cleanup,void 0)});a=[g,h,i]}var j=a[2],k=a[1],l=a[0];return function(a){b("bs_curry")._1(l,void 0);b("bs_curry")._1(k,void 0);b("bs_curry")._1(j,void 0);if(d)return b("bs_curry")._1(e.cleanup,void 0)}},[d,e]);return h.jsx(b("ReStore.bs").Provider.make,{db:e.db,children:h.jsx(b("LSPlatformLogout.bs").Provider.make,{client:e,children:h.jsx(b("CometPlaceholder.react"),{children:c,fallback:b("gkx")("678680")?"LSPlatformClientProvider suspended":null})})})}d={setupLock:c,make:k};function a(a){var c=a.children;a=a.cleanup;a=a!==void 0?a:!1;return h.jsx(b("CometPlaceholder.react"),{children:h.jsx(b("LSPlatformConnectionStatusContext.bs").make,{children:h.jsx(k,{children:c,cleanup:a})}),fallback:null})}e=a;f.$LSPlatformClient$Deferred=i;f.$MWSetupLock$requireCond=b("cr:2073");f.Inner=d;f.make=e}),null); __d("LSPlatformClientProvider.re",["LSPlatformClientProvider.bs"],(function(a,b,c,d,e,f){a=b("LSPlatformClientProvider.bs").make;f.make=a}),null); __d("LSPlatformConfig.re",["LSPlatformConfig.bs","bs_curry"],(function(a,b,c,d,e,f){a=b("LSPlatformConfig.bs").Provider.make;f.Provider_make=a;c=function(){var a=b("LSPlatformConfig.bs").useOrSuspend();return{region:a.region,deviceId:a.deviceId,appId:a.appId,schemaVersion:a.schemaVersion,numThreads:a.numThreads,getDb:a.getDb,realtimeUnderylingTransport:function(){var c=a.realtimeUnderylingTransport();return{subscribe:c.subscribe,onConnectionStatusChange:c.onConnectionStatusChange,onReconnect:c.onReconnect,publish:function(a,d,e){a=b("bs_curry")._3(c.publish,a,d,e);return a},cleanup:c.cleanup}},getEval:a.getEval}};f.useOrSuspend=c;d=b("LSPlatformConfig.bs").Provider;f.Provider=d}),null); __d("LSDataScriptDirectProvider.bs",["cr:1942625"],(function(a,b,c,d,e,f){"use strict";a=b("cr:1942625").get;f.$GetLSDataScriptDirect$OR$GetLSDataScriptDirectForComet$requireCond=b("cr:1942625");f.get=a}),null); __d("LSDedicatedMqttChannel.bs",["cr:11792"],(function(a,b,c,d,e,f){"use strict";a=b("cr:11792").getInstance;c=b("cr:11792").shutdownAndClear;f.$LSMqttChannel$OR$FBMqttChannel$requireCond=b("cr:11792");f.getInstance=a;f.shutdownAndClear=c}),null); __d("LSPlatformDeviceId.bs",["ChannelClientID","LSCookie.bs","MqttWebDeviceID","gkx","killswitch"],(function(a,b,c,d,e,f){"use strict";function a(a){if(!b("killswitch")("MESSENGER_WEB_PERSISTED_DB")&&b("gkx")("3174"))return b("LSCookie.bs").get(void 0).d;else if(b("gkx")("3400"))return b("MqttWebDeviceID").clientID;else return b("ChannelClientID").getID()}c=a(void 0);f.deviceId=c}),null); __d("LSPlatformDefaultUnderlyingApi.bs",["Promise"],(function(a,b,c,d,e,f){"use strict";function a(a){return function(a){}}function c(a){}function d(a){return function(a){}}function e(a,c,d){return b("Promise").resolve(void 0)}function g(){}a={subscribe:a,onConnectionStatusChange:c,onReconnect:d,publish:e,cleanup:g};f.defaultUnderlyingApi=a}),null); __d("LSPlatformMqttRealtimeTransport.bs",["ExecutionEnvironment","LSDedicatedMqttChannel.bs","LSPlatformDefaultUnderlyingApi.bs","MqttState.bs","Promise","QPLUserFlow","bs_curry","gkx","killswitch","qpl"],(function(a,b,c,d,e,f){"use strict";function g(a){b("QPLUserFlow").addPoint(b("qpl")._(25305590,"1127"),"create_connect_payload",void 0);return[{topic:"/ls_app_settings",payload:JSON.stringify({ls_sv:a,ls_fdid:""}),qos:1}]}function h(a){var c=a.getConnectionState();if(c===b("MqttState.bs").connected)return[function(a){},function(b,c,d){return a.publish(b,c,d)}];var d={contents:function(a){}},e=new(b("Promise"))(function(a,b){d.contents=a}),f={onMQTTStateChanged:function(a){if(a===b("MqttState.bs").connected)return d.contents(void 0)}};a.subscribeChannelEvents(f);return[function(b){a.unsubscribeChannelEvents(f)},function(b,c,d){return e.then(function(e){return a.publish(b,c,d)})}]}var i={contents:void 0};function a(a,c){if(!b("ExecutionEnvironment").canUseDOM)return b("LSPlatformDefaultUnderlyingApi.bs").defaultUnderlyingApi;var d=b("bs_curry")._1(c,void 0),e={getPublishMessages:function(b){return g(a)}};d.registerExtraConnectPayloadProvider(e);var f={onMQTTStateChanged:function(a){var b=i.contents;if(b!==void 0)return b(a)}};d.subscribeChannelEvents(f);var j=d.subscribe("/ls_foreground_state",function(a){});c=h(d);var k=c[0];return{subscribe:function(a){return d.subscribe("/ls_resp",function(b){return a(b)})},onConnectionStatusChange:function(a){if(i.contents===void 0){i.contents=a;return}},onReconnect:function(a){var c={contents:d.getConnectionState()},e={contents:c.contents===b("MqttState.bs").connected},f={onMQTTStateChanged:function(d){d===b("MqttState.bs").connected&&(e.contents&&c.contents!==b("MqttState.bs").connected&&a(),e.contents=!0),c.contents=d}};d.subscribeChannelEvents(f);return function(a){d.unsubscribeChannelEvents(f)}},publish:c[1],cleanup:function(){d.unregisterExtraConnectPayloadProvider(e);!b("killswitch")("MESSENGER_WEB_PERSISTED_DB")&&b("gkx")("3174")&&b("bs_curry")._1(b("LSDedicatedMqttChannel.bs").shutdownAndClear,void 0);d.unsubscribeChannelEvents(f);b("bs_curry")._1(j,void 0);return b("bs_curry")._1(k,void 0)}}}f.sendSchemaVersion=g;f.makePublish=h;f.connectionHandler=i;f.make=a}),null); __d("MessengerWebRegion.bs",["MessengerWebRegion","gkx","unrecoverableViolation"],(function(a,b,c,d,e,f){"use strict";function a(a){a=b("MessengerWebRegion").regionNullable;if(a==null)if(b("gkx")("1993339"))return b("unrecoverableViolation")("Tried to load mailbox for a user that does not have a mailbox","messenger_web_product");else return"";else return a}f.getRegion=a}),null); __d("LSPlatformMessengerConfig.bs",["LSDataScriptDirectProvider.bs","LSDatabaseDeferred.bs","LSDedicatedMqttChannel.bs","LSPlatformDeviceId.bs","LSPlatformMqttRealtimeTransport.bs","LSVersion.bs","MessengerWebRegion.bs","ServerAppID"],(function(a,b,c,d,e,f){"use strict";d=b("MessengerWebRegion.bs").getRegion(void 0);function a(){return b("LSDatabaseDeferred.bs").db}function c(a){return b("LSPlatformMqttRealtimeTransport.bs").make(b("LSVersion.bs").version,b("LSDedicatedMqttChannel.bs").getInstance)}e={region:d,deviceId:b("LSPlatformDeviceId.bs").deviceId,appId:b("ServerAppID").app_id,schemaVersion:b("LSVersion.bs").version,numThreads:15,getDb:a,realtimeUnderylingTransport:c,getEval:b("LSDataScriptDirectProvider.bs").get};d={contents:{TAG:2,_0:e}};f.config=e;f.configEagerlyLoaded=d}),null); __d("LSPlatformMessengerConfig.re",["LSPlatformMessengerConfig.bs"],(function(a,b,c,d,e,f){a=b("LSPlatformMessengerConfig.bs").configEagerlyLoaded;f.configEagerlyLoaded=a}),null); __d("MWChatHeadError.bs",["fbt","ix","CometPressable.react","MWTooltip.react","TetraIcon.react","fbicon","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||b("react"),k={compose:{alignItems:"bp9cbjyn",backgroundColor:"nred35xi",borderTopStartRadius:"s45kfl79",borderTopEndRadius:"emlxlaya",borderBottomEndRadius:"bkmhp75w",borderBottomStartRadius:"spb7xbtv",display:"j83agx80",height:"m7zwrmfr",justifyContent:"taijpn5t",position:"l9j0dhe7",width:"tmrshh9y"},dropShadow:{boxShadow:"akv41dx8",":hover":{boxShadow:"eb3gnj61"}}};function a(a){return j.jsx(b("MWTooltip.react"),{tooltip:g._(/*FBT_CALL*/"Something went wrong while loading chat"/*FBT_CALL*/),align:"end",position:"above",children:j.jsx(b("CometPressable.react"),{"aria-label":g._(/*FBT_CALL*/"Something went wrong while loading chat"/*FBT_CALL*/),disabled:!0,display:"inline",xstyle:function(a){return[k.compose,k.dropShadow]},children:j.jsx(b("TetraIcon.react"),{icon:b("fbicon")._(h("502063"),24)})})})}c=a;f.styles=k;f.make=c}),null); __d("MWChatDisabled.bs",["MWChatHeadError.bs","react","stylex","useShouldShowMessagingEntrypointInCometRoot"],(function(a,b,c,d,e,f){"use strict";var g,h,i=g||b("react"),j={dockedToBottomRight:{bottom:"lfi1tu6t",end:"cypi58rs",position:"pmk7jnqg"},root:{position:"poy2od1o",bottom:"i09qtzwb",end:"n7fi1qx3"}};function a(a){a=b("useShouldShowMessagingEntrypointInCometRoot")("CHAT");if(a)return i.jsx("div",{className:(h||(h=b("stylex")))(j.root),children:i.jsx("div",{className:h(j.dockedToBottomRight),children:i.jsx(b("MWChatHeadError.bs").make,{})})});else return null}c=a;f.styles=j;f.make=c}),null); __d("MWChatDisabled.re",["MWChatDisabled.bs"],(function(a,b,c,d,e,f){a=b("MWChatDisabled.bs").make;f.make=a}),null); __d("MWChatHeadComposeIcon.bs",["ix","CometPressable.react","MWChatHeadsShared.bs","TetraIcon.react","fbicon","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||b("react");function a(a){var c=a.label,d=a.onHoverIn,e=a.onHoverOut,f=a.onPress;a=a.xstyle;return j.jsx(b("CometPressable.react"),{"aria-label":c,testid:"chat_compose_button",onHoverIn:d,onHoverOut:e,onPress:f,overlayOffset:0,overlayRadius:"50%",xstyle:a,children:j.jsx("div",{className:(i||(i=b("stylex")))(b("MWChatHeadsShared.bs").styles.chatHeadTarget),children:j.jsx(b("TetraIcon.react"),{icon:b("fbicon")._(g("507172"),20)})})})}c=b("MWChatHeadsShared.bs").styles;d=a;f.headStyles=c;f.make=d}),null); __d("MWChatMultitabHeadsCompose_DEPRECATED.bs",["fbt","MWChatCloseNewTab.bs","MWChatHeadComposeIcon.bs","MWChatMultitabStateHook.bs","MWChatOpenNewTab.bs","MWNewChatTabContainerPreload.bs","MWTooltip.react","MessengerWebEntryPoint","bs_curry","gkx","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||b("react"),j={compose:{backgroundColor:"ovq5dppa",borderTopStartRadius:"s45kfl79",borderTopEndRadius:"emlxlaya",borderBottomEndRadius:"bkmhp75w",borderBottomStartRadius:"spb7xbtv",display:"q9uorilb",height:"m7zwrmfr",position:"l9j0dhe7",width:"tmrshh9y"},dropShadow:{boxShadow:"akv41dx8",":hover":{boxShadow:"eb3gnj61"}}};function k(a){return[j.compose,j.dropShadow]}function a(a){var c=a.setIsSomeHeadHovered,d=b("MWChatOpenNewTab.bs").useHook("chatheadsNewMessage"),e=b("MWChatCloseNewTab.bs").useHook(b("MessengerWebEntryPoint").NEW_MESSAGE_BUTTON);a=b("MWChatMultitabStateHook.bs").useHook_DEPRECATED(void 0);var f=a.openTabsState.map(function(a){return a.threadID});a=a.openTabsState;var h=a.length!==0?a.some(function(a){return a.isSearchView}):!1,j=f.length!==0?f.some(function(a){if(a)return!1;else return!0}):!1;a=b("MWNewChatTabContainerPreload.bs").useHookV2(void 0);var l=a[0];f=b("MWNewChatTabContainerPreload.bs").useHook(void 0);var m=f[1],n=f[0];a=i.useCallback(function(a){if(j&&!h)return b("bs_curry")._1(e,void 0);else return b("bs_curry")._1(d,void 0)},[d,e,j,h]);f=g._(/*FBT_CALL*/"New message"/*FBT_CALL*/);var o=b("gkx")("1871")?function(a){b("bs_curry")._2(l,a,void 0);return b("bs_curry")._1(c,function(a){return!0})}:function(a){b("bs_curry")._1(n,void 0);return b("bs_curry")._1(c,function(a){return!1})};return i.jsx(b("MWTooltip.react"),{tooltip:f.toString(),align:"middle",position:"start",children:i.jsx(b("MWChatHeadComposeIcon.bs").make,{label:f,onHoverIn:o,onHoverOut:function(a){b("bs_curry")._1(m,void 0);return b("bs_curry")._1(c,function(a){return!1})},onPress:a,xstyle:k})})}c=a;f.styles=j;f.xstyle=k;f.make=c}),null); __d("MWChatMultitabHeadsContainer.bs",["BootloaderResource","CometPlaceholder.react","JSResource","MWChatMultitabHeadsCompose_DEPRECATED.bs","MWChatMultitabStateHook.bs","MWChatMultitabVisibleChatHeads.bs","cr:1816163","react","stylex","useCometDisplayTimingTrackerForInteraction"],(function(a,b,c,d,e,f){"use strict";var g,h,i=g||b("react"),j={chatHeads:{alignItems:"bp9cbjyn",bottom:"cij46092",display:"j83agx80",flexDirection:"cbu4d94t",position:"l9j0dhe7"},dockedToBottomRight:{bottom:"lfi1tu6t",end:"cypi58rs",position:"pmk7jnqg",width:"tmrshh9y",height:"m7zwrmfr"}},k=b("JSResource")("MWChatMultitabHeads.bs").__setRef("MWChatMultitabHeadsContainer.bs");function a(a,b){return{setIsSomeHeadHovered:a}}function l(a){return i.createElement(b("BootloaderResource").read(k).make,a)}d={reasonResource:k,makeProps:a,make:l};function c(a){a=b("MWChatMultitabStateHook.bs").useHook_DEPRECATED(void 0);a=a.chatHeads.length;var c=b("MWChatMultitabVisibleChatHeads.bs").useHook(void 0),d=b("useCometDisplayTimingTrackerForInteraction")("ChatHead",!1,void 0),e=i.useState(function(){return!1}),f=e[1];a=a>0;return i.jsxs("div",{className:(h||(h=b("stylex")))(j.dockedToBottomRight),ref:d,children:[i.jsxs("ul",{className:h(j.chatHeads),children:[!(b("cr:1816163")==null)&&a?i.jsx(b("cr:1816163").make,{isSomeHeadHovered:e[0]}):null,c.length!==0?i.jsx(b("CometPlaceholder.react"),{children:i.jsx(l,{setIsSomeHeadHovered:f}),fallback:null}):null]}),i.jsx(b("MWChatMultitabHeadsCompose_DEPRECATED.bs").make,{setIsSomeHeadHovered:f})]})}e=b("cr:1816163");a=c;f.styles=j;f.LazyMWChatMultitabHeads=d;f.$MWChatSettingsHead$requireCond=b("cr:1816163");f.mWChatSettingsHead=e;f.make=a}),null); __d("MWChatMultitabResize.bs",["MWChatMultitabContext.bs","MWChatMultitabDispatcher.bs","react","useIsCurrentRouteMediaViewer","useWindowSize"],(function(a,b,c,d,e,f){"use strict";var g,h=g||b("react");function a(a){a=b("useWindowSize")();var c=h.useContext(b("MWChatMultitabContext.bs").context),d=b("useIsCurrentRouteMediaViewer")();h.useEffect(function(){c!==void 0&&!d&&b("MWChatMultitabDispatcher.bs").dispatch(void 0,c,6)},[c,a.innerWidth,d])}f.useHook=a}),null); __d("MWChatMultitabSync.bs",["MWChatMultitabContext.bs","MWChatMultitabDispatcher.bs","react"],(function(a,b,c,d,e,f){"use strict";var g,h=g||b("react");function a(a){var c=h.useContext(b("MWChatMultitabContext.bs").context);h.useEffect(function(){if(c!==void 0)return b("MWChatMultitabDispatcher.bs").subscribe(c)},[c])}f.useHook=a}),null); __d("MWChatMultitabHeadsArrow.bs",[],(function(a,b,c,d,e,f){"use strict";function a(a){return null}b=a;f.make=b}),null); __d("MWChatTabContainerLoading.bs",["fbt","CometPressable.react","MWChatCloseNewTab.bs","MWChatCollapseTab.bs","MWChatMultitabHeadsArrow.bs","MWChatTabContainerShared.bs","MessengerWebEntryPoint","bs_curry","qex","react","stylex","useCometLoadingStateTracker"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||b("react"),k={chatTabContainer:{position:"pmk7jnqg",bottom:"lfi1tu6t",end:"esma6hys",display:"j83agx80"}};function a(a){var c=a.isMultitab,d=a.threadID;a=a.useSidebarChatStyles;c=c!==void 0?c:!1;a=a!==void 0?a:!1;var e=b("MWChatCollapseTab.bs").useHook(b("MessengerWebEntryPoint").UNKNOWN),f=b("MWChatCloseNewTab.bs").useHook(b("MessengerWebEntryPoint").UNKNOWN),h=b("useCometLoadingStateTracker")();return j.jsxs("div",{className:(i||(i=b("stylex")))(a?!1:k.chatTabContainer,c?b("MWChatTabContainerShared.bs").styles.chatTabContainerBottom:!1),"aria-busy":!0,ref:h[1],children:[j.jsx("div",{children:j.jsx("div",{className:i(b("MWChatTabContainerShared.bs").styles.chatTab,a?b("MWChatTabContainerShared.bs").styles.sidebarChatOverrides:!1,c?b("MWChatTabContainerShared.bs").styles.chatTabNoBottomRadius:!1,b("qex")._("1499")===!0?b("MWChatTabContainerShared.bs").styles.chatTabThin:!1),children:j.jsx(b("CometPressable.react"),{"aria-label":g._(/*FBT_CALL*/"Minimize tab"/*FBT_CALL*/),onPress:function(a){if(d!==void 0)return b("bs_curry")._1(e,d);else return b("bs_curry")._1(f,void 0)},xstyle:function(a){return[b("MWChatTabContainerShared.bs").styles.header]}})})}),c?null:j.jsx(b("MWChatMultitabHeadsArrow.bs").make,{})]})}c=b("MWChatTabContainerShared.bs").styles;d=a;f.shareStyles=c;f.styles=k;f.make=d}),null); __d("MWChatTabContainerWithEarlierLoading.bs",["BootloaderResource","JSResource","react"],(function(a,b,c,d,e,f){"use strict";var g,h=g||b("react"),i=b("JSResource")("MWChatTabContainer.bs").__setRef("MWChatTabContainerWithEarlierLoading.bs");function j(a,b,c,d,e,f,g,h){h={isTabFocused:a,hasContent:b,useSidebarChatStyles:d,searchResults:e,mid:f};c!==void 0&&(h.isMultitab=c);g!==void 0&&(h.isMainRegion=g);return h}function k(a){return h.createElement(b("BootloaderResource").read(i).make,a)}c={reasonResource:i,makeProps:j,make:k};function a(a){var b=a.isTabFocused,c=a.hasContent,d=a.isMultitab;a=a.useSidebarChatStyles;return h.jsx(k,j(b,c,d,a,void 0,null,void 0,void 0))}d=a;f.LazyMWChatTabContainer=c;f.make=d}),null); __d("MWChatMultitabTabsContainer.bs",["BootloaderResource","CometContextualLayerAnchorRoot.re","CometErrorBoundary.re","CometHeroInteractionWithDiv.react","CometPlaceholder.react","CometTransientDialogProvider.react","JSResource","MWChatInteraction.bs","MWChatMultitabStateHook.bs","MWChatStateThread.bs","MWChatTabContainerLoading.bs","MWChatTabContainerShared.bs","MWChatTabContainerWithEarlierLoading.bs","MWChatThreadId.bs","MWThreadKey.bs","MWThread_DEPRECATED.bs","MWUIChatTabState.bs","react","stylex","useCometDisplayTimingTrackerForInteraction"],(function(a,b,c,d,e,f){"use strict";var g,h,i=g||b("react"),j={tray:{display:"j83agx80",position:"l9j0dhe7",zIndex:"du4w35lb",alignItems:"aovydwv3",height:"do00u71z"},aboveChatHeads:{position:"l9j0dhe7",zIndex:"tkr6xdv7"}},k=b("JSResource")("MWNewChatTabContainer.bs").__setRef("MWChatMultitabTabsContainer.bs");function l(a,b,c,d,e,f,g){g={hasContent:a,isSearchView:c,isTabFocused:d,searchInitialParticipant:f};b!==void 0&&(g.isMultitab=b);e!==void 0&&(g.useSidebarChatStyles=e);return g}function m(a){return i.createElement(b("BootloaderResource").read(k).make,a)}c={reasonResource:k,makeProps:l,make:m};function a(a){a=b("MWChatMultitabStateHook.bs").useHook_DEPRECATED(void 0);var c=b("useCometDisplayTimingTrackerForInteraction")("ChatMain",!0,void 0);return i.jsx("div",{className:(h||(h=b("stylex")))(j.aboveChatHeads),children:i.jsx(b("CometContextualLayerAnchorRoot.re").make,{children:i.jsx("div",{className:h(j.tray),children:a.openTabsState.map(function(a){var d=a.hasContent,e=a.isTabFocused,f=a.threadID;if(f){var g=f._0;g={children:i.jsx(b("MWThread_DEPRECATED.bs").make,{id:g,children:i.jsx(b("MWThreadKey.bs").make,{id:b("MWThread_DEPRECATED.bs").toThreadKey(g),children:i.jsx(b("MWUIChatTabState.bs").Provider.make,{tab:{_0:g},children:i.jsx(b("CometTransientDialogProvider.react"),{children:i.jsx(b("CometErrorBoundary.re").make,{fallback:function(a){return null},children:i.jsx(b("MWChatTabContainerWithEarlierLoading.bs").make,{isTabFocused:e,hasContent:d,isMultitab:!0,useSidebarChatStyles:!1},b("MWChatThreadId.bs").getMercuryID(g))})})})})},b("MWThread_DEPRECATED.bs").key(g))};g=i.jsx("div",g)}else g=i.jsx(m,l(d,!0,a.isSearchView,e,void 0,a.searchInitialParticipant,void 0),"local");return i.jsx(b("CometPlaceholder.react"),{children:i.jsx(b("CometHeroInteractionWithDiv.react"),{children:g,interactionUUID:b("MWChatInteraction.bs").get(b("MWChatStateThread.bs").toString(f)),interactionDesc:"MULTI_CHAT_TAB",pageletName:"ChatTab",excludeFromMainVC:!0,ref:c,xstyle:[b("MWChatTabContainerShared.bs").styles.chatTabContainer,b("MWChatTabContainerShared.bs").styles.chatTabContainerBottom]}),fallback:i.jsx(b("MWChatTabContainerLoading.bs").make,{isMultitab:!0,threadID:f?f._0:void 0})},f?b("MWChatThreadId.bs").serializeFuture(f._0):"search")})})})})}d=b("MWChatTabContainerShared.bs").styles;e=a;f.shareStyles=d;f.styles=j;f.LazyMWNewChatTabContainer=c;f.make=e}),null); __d("LSErrorHandlerDeferred.bs",["LSDatabaseDeferred.bs","Promise","bs_curry","promiseDone","requireDeferred"],(function(a,b,c,d,e,f){"use strict";var g=b("requireDeferred")("LSErrorHandler.bs").__setRef("LSErrorHandlerDeferred.bs");function a(){var a=b("LSDatabaseDeferred.bs").db.then(function(a){return g.load().then(function(c){return b("Promise").resolve(b("bs_curry")._1(c.subscribeToErrorTableAndShowToast,a))})});return function(c){c=a.then(function(a){a!==void 0&&b("bs_curry")._1(a,void 0);return b("Promise").resolve(void 0)});b("promiseDone")(c,void 0,void 0)}}f.$LSErrorHandler$Deferred=g;f.subscribeToErrors=a}),null); __d("MWChatConfig.bs",["CurrentEnvironment","bx"],(function(a,b,c,d,e,f){"use strict";a=b("CurrentEnvironment").messengerdotcom?b("bx").getURL(b("bx")("273041")):b("bx").getURL(b("bx")("273022"));c=b("CurrentEnvironment").messengerdotcom?b("bx").getURL(b("bx")("273042")):b("bx").getURL(b("bx")("273023"));f.soundNotifMp3Url=a;f.soundNotifOggUrl=c}),null); __d("MWChatOpenTabFromNewMessageGKed.bs",["cr:12119"],(function(a,b,c,d,e,f){"use strict";a=b("cr:12119").useHook;f.$MWV2ChatOpenTabFromNewMessage$OR$MWChatOpenTabFromNewMessage$requireCond=b("cr:12119");f.useHook=a}),null); __d("MWChatSettingsQuery",["CometRelay","CometRelayEnvironment","MWChatSettingsQuery.graphql","gkx","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h,i=function(a){var b=d("CometRelay").fetchQuery(c("CometRelayEnvironment"),j,{},c("gkx")("1820749")?{fetchPolicy:"store-or-network"}:void 0).toPromise().then(function(b){var c;c=b==null?void 0:(c=b.viewer)==null?void 0:c.chat_tabs_turned_off;b=b==null?void 0:(b=b.viewer)==null?void 0:b.chat_sounds_on;a(c,b);return});c("promiseDone")(b)},j=h!==void 0?h:h=b("MWChatSettingsQuery.graphql");a=function(a){i(function(b,c){return a(b)})};e=function(a){i(function(b,c){return a(c!=null&&c)})};g.areChatTabsTurnedOff=a;g.areChatTabsSoundsOn=e}),98); __d("MWChatThreadPingCounter.bs",[],(function(a,b,c,d,e,f){"use strict";var g=new Map();function h(a){a=g.get(a);if(!(a==null))return a;else return 0}function a(a){var b=h(a);g.set(a,b+1|0)}function b(a){g.clear()}f.getCount=h;f.incrementCount=a;f.clear=b}),null); __d("MWGetCurrentThreadIDForLSThread.bs",["FBID.bs","MWCMThreadTypes.bs","MessagingThreadType.bs","bs_caml","bs_int64","unrecoverableViolation"],(function(a,b,c,d,e,f){"use strict";function a(a,c,d){if(d)return{NAME:"Page",VAL:b("FBID.bs").ofStringExn(b("bs_int64").to_string(a))};else if(b("bs_caml").i64_eq(c,b("MessagingThreadType.bs").tincanOneToOne)||b("bs_caml").i64_eq(c,b("MessagingThreadType.bs").secureMessageOverWaOneToOne)||b("bs_caml").i64_eq(c,b("MessagingThreadType.bs").secureMessageOverWaGroup))return{NAME:"UserSecret",VAL:b("FBID.bs").ofStringExn(b("bs_int64").to_string(a))};else if(b("bs_caml").i64_eq(c,b("MessagingThreadType.bs").oneToOne)||b("bs_caml").i64_eq(c,b("MessagingThreadType.bs").tincanOneToOneDisappearing))return{NAME:"User",VAL:b("FBID.bs").ofStringExn(b("bs_int64").to_string(a))};else if(b("bs_caml").i64_eq(c,b("MessagingThreadType.bs").group)||b("bs_caml").i64_eq(c,b("MessagingThreadType.bs").marketplace)||b("MWCMThreadTypes.bs").isAnyCMThread(c))return{NAME:"Group",VAL:b("FBID.bs").ofStringExn(b("bs_int64").to_string(a))};else return b("unrecoverableViolation")("Unsupported MWMessagingThreadType "+b("bs_int64").to_string(c),"messenger_web_product")}f.get=a}),null); __d("MWLSChatTabPolicy.bs",["CurrentUser","LSContactBlockedByViewerStatus.bs","MWCMThreadTypes.bs","MWChatSettingsQuery","MWCount.bs","MessengerWebEvent","MessengerWebEventsFalcoEvent.bs","bs_caml","bs_caml_int64","bs_curry","bs_int64","gkx","killswitch"],(function(a,b,c,d,e,f){"use strict";function g(a,c,d){if(d===0)return b("bs_curry")._1(a,c)}function a(a,c,d,e){var f=function(a){return b("MessengerWebEventsFalcoEvent.bs").log(function(){return{event_name:b("MessengerWebEvent").SUPPRESS_NEW_MESSAGE,extra_data:{reason:a}}})},h=function(a){if(b("killswitch")("MESSENGER_WEB_STOP_AUTOMATIC_CHAT_TAB_RAISING")||!b("gkx")("1812191")){b("bs_curry")._1(b("MWCount.bs").Comet.NewMessage.reject,void 0);return b("bs_curry")._1(a,1)}else return b("bs_curry")._1(a,0)},i=function(c){if(b("bs_int64").to_string(a.h)===b("CurrentUser").getID()){f("message_outgoing");b("bs_curry")._1(b("MWCount.bs").Comet.NewMessage.reject,void 0);return b("bs_curry")._1(c,1)}else return b("bs_curry")._1(c,0)},j=function(a){if(b("gkx")("1968579"))return b("bs_curry")._1(a,0);else{b("MWChatSettingsQuery").areChatTabsTurnedOff(function(c){if(!(c==null)&&c){f("turn_off_chat_tab");b("bs_curry")._1(b("MWCount.bs").Comet.NewMessage.reject,void 0);return b("bs_curry")._1(a,1)}else return b("bs_curry")._1(a,0)});return}},k=function(a){var d=b("bs_caml_int64").to_float(c.l);if(d>Date.now()||d<0){f("mention_muted");b("bs_curry")._1(b("MWCount.bs").Comet.NewMessage.reject,void 0);return b("bs_curry")._1(a,1)}else return b("bs_curry")._1(a,0)},l=function(c){if(a.j){f("message_non_user_generated");b("bs_curry")._1(b("MWCount.bs").Comet.NewMessage.reject,void 0);return b("bs_curry")._1(c,1)}else return b("bs_curry")._1(c,0)},m=function(a){if(c.e==="inbox")return b("bs_curry")._1(a,0);else{f("message_no_inbox");b("bs_curry")._1(b("MWCount.bs").Comet.NewMessage.reject,void 0);return b("bs_curry")._1(a,1)}},n=function(a){if(b("bs_caml").i64_neq(d.n,b("LSContactBlockedByViewerStatus.bs").unblocked)){f("message_blocked_participants");b("bs_curry")._1(b("MWCount.bs").Comet.NewMessage.reject,void 0);return b("bs_curry")._1(a,1)}else return b("bs_curry")._1(a,0)},o=function(a){if(b("MWCMThreadTypes.bs").isJoinedCMThread(c.c)){f("community_messaging_group_blocked");return b("bs_curry")._1(a,1)}else return b("bs_curry")._1(a,0)};h={hd:h,tl:{hd:i,tl:{hd:j,tl:{hd:k,tl:{hd:l,tl:{hd:m,tl:{hd:n,tl:{hd:o,tl:0}}}}}}}};if(!h)return;i=function a(c){if(!c)return function(a){return g(function(a){return b("bs_curry")._1(e,void 0)},function(a){},a)};var d=c.hd,f=a(c.tl);return function(a){return g(d,f,a)}};return b("bs_curry")._1(h.hd,i(h.tl))}f.proceedIfAllow=g;f.shouldMessageBeAllowed=a}),null); __d("MWNotificationRenderer.bs",["fbt","MessagingThreadType.bs","bs_caml","bs_curry"],(function(a,b,c,d,e,f,g){"use strict";function a(a,c,d,e,f,h){if(!b("bs_caml").i64_neq(a.h,c))return b("bs_curry")._1(h,g._(/*FBT_CALL*/"New message"/*FBT_CALL*/));a=f.e;if(a!==void 0)c=a;else{f=e.p;c=f!==void 0?f:e.h}a=d.d;if(a!==void 0)return b("bs_curry")._1(h,g._(/*FBT_CALL*/"{senderName} messaged {groupName}"/*FBT_CALL*/,[g._param("senderName",c),g._param("groupName",a)]));else if(b("bs_caml").i64_eq(d.c,b("MessagingThreadType.bs").group))return b("bs_curry")._1(h,g._(/*FBT_CALL*/"{name} messaged your group"/*FBT_CALL*/,[g._param("name",c)]));else return b("bs_curry")._1(h,g._(/*FBT_CALL*/"{name} messaged you"/*FBT_CALL*/,[g._param("name",c)]))}f.renderDocumentTitle=a}),null); __d("MWLSChatPopperUpper.bs",["ClearInterval.re","CometSetBlinkingTitleMessageContext","CurrentUser","FBID.bs","LSContactType.bs","MWChatConfig.bs","MWChatOpenTabFromNewMessageGKed.bs","MWChatSettingsQuery","MWChatThreadPingCounter.bs","MWCount.bs","MWGetCurrentThreadIDForLSThread.bs","MWIsXacGroupThread.bs","MWLSActor.bs","MWLSChatTabPolicy.bs","MWNotificationRenderer.bs","MWXacGating.bs","MercuryIDs","ReQL.bs","ReQLTable","ServerTime","SortedAsyncIterable.bs","bs_belt_Option","bs_caml","bs_caml_int64","bs_caml_option","bs_curry","bs_int64","promiseDone","react","requireDeferred","setInterval","useGlobalEventListener"],(function(a,b,c,d,e,f){"use strict";var g,h=g||b("react"),i=b("CometSetBlinkingTitleMessageContext"),j=b("requireDeferred")("Sound").__setRef("MWLSChatPopperUpper.bs");function k(a){var c=b("bs_int64").to_string(a.h)!==b("CurrentUser").getID();if(c)return j.onReady(function(c){c.play([b("MWChatConfig.bs").soundNotifOggUrl,b("MWChatConfig.bs").soundNotifMp3Url],b("bs_caml_int64").to_float(a.b),!1)})}var l={contents:void 0};function m(a,c,d,e,f,g,h,i){var j=b("MWGetCurrentThreadIDForLSThread.bs").get(d.a,d.c,b("bs_caml").i64_eq(e.q,b("LSContactType.bs").page)||b("bs_caml").i64_eq(e.q,b("LSContactType.bs").pagePersona));return b("MWLSChatTabPolicy.bs").shouldMessageBeAllowed(c,d,e,function(m){var n=b("MercuryIDs").getThreadIDFromThreadFBID(b("FBID.bs").ofStringExn(b("bs_int64").to_string(d.a)));b("bs_curry")._1(b("MWCount.bs").Comet.NewMessage.lift,void 0);return b("bs_curry")._3(a,j,d,function(a){b("MWNotificationRenderer.bs").renderDocumentTitle(c,h,d,e,f,function(a){var e=l.contents;e!==void 0&&b("bs_curry")._1(e,void 0);l.contents=b("SortedAsyncIterable.bs").subscribe(b("ReQL.bs").getKeyRange(b("ReQLTable").table(i,"threads").asc,{hd:d.a,tl:0}),function(a,c){if(typeof c==="number")return;a=c._0;if(!b("bs_caml").i64_ge(a.j,a.i))return;c=l.contents;c!==void 0&&b("bs_curry")._1(c,void 0);l.contents=void 0;return b("bs_curry")._2(g,void 0,b("bs_caml_int64").to_float(a.j))});return b("bs_curry")._2(g,a,b("bs_caml_int64").to_float(c.b))});if(b("MWChatThreadPingCounter.bs").getCount(n)<3){b("MWChatThreadPingCounter.bs").incrementCount(n);b("MWChatSettingsQuery").areChatTabsSoundsOn(function(a){if(!(a==null)&&a)return k(c)});return}})})}function n(a,c,d,e,f){b("bs_curry")._1(b("MWCount.bs").Comet.NewMessage.$$process,void 0),b("promiseDone")(window.Promise.all([b("ReQLTable").table(c,"threads").get({hd:a.a,tl:0}),b("ReQLTable").table(c,"contacts").get({hd:a.h,tl:0}),b("ReQLTable").table(c,"participants").get({hd:a.a,tl:{hd:a.h,tl:0}})]),function(g){var h=g[2],i=g[1];if(i!==void 0&&h!==void 0)return m(d,a,b("bs_belt_Option").getExn(g[0]),i,h,e,f,c)})}function o(a,c,d,e,f){b("promiseDone")(window.Promise.all([b("ReQLTable").table(c,"threads").get({hd:a.a,tl:0}),b("ReQLTable").table(c,"contacts").get({hd:a.h,tl:0}),b("ReQLTable").table(c,"participants").get({hd:a.a,tl:{hd:a.h,tl:0}})]),function(g){var h=g[2],i=g[1];g=g[0];if(g!==void 0&&i!==void 0&&h!==void 0&&!b("MWIsXacGroupThread.bs").check(g)){b("bs_curry")._1(b("MWCount.bs").Comet.NewMessage.$$process,void 0);return m(d,a,g,i,h,e,f,c)}})}function a(a){var c=h.useContext(i),d=b("bs_curry")._1(b("MWChatOpenTabFromNewMessageGKed.bs").useHook,"notificationInThreadReply"),e=b("MWLSActor.bs").useActor(void 0),f=h.useRef(b("ServerTime").getMillis());h.useEffect(function(){return b("SortedAsyncIterable.bs").subscribe(b("ReQLTable").table(a,"messages").asc,function(g,h){if(typeof h==="number")return;if(h.TAG!==0)return;g=h._0;if(b("bs_caml_int64").to_float(g.b)<=f.current)return;f.current=b("bs_caml_int64").to_float(g.b);h=b("MWXacGating.bs").isGroupsEnabled(void 0)?n:o;return b("bs_curry")._5(h,g,a,d,c,e)})},[c,d,a]);var g=h.useRef(void 0),j=function(a){a=g.current;if(a!==void 0){b("ClearInterval.re").clearInterval(b("bs_caml_option").valFromOption(a));return}},k=function(a){j(void 0),g.current=b("bs_caml_option").some(b("setInterval")(function(a){return b("MWChatThreadPingCounter.bs").clear(void 0)},6e5))},l=function(a){b("MWChatThreadPingCounter.bs").clear(void 0);return j(void 0)};b("useGlobalEventListener")("blur",k,{});b("useGlobalEventListener")("focus",l,{});h.useEffect(function(){return function(a){return j(void 0)}},[])}c=6e5;d=3;f.cometSetBlinkingTitleMessageContext=i;f.pingCounterResetTime=c;f.pingsMaxCount=d;f.soundDeferred=j;f.playSound=k;f.threadSubscription=l;f.dispatchOpenTab=m;f.useHook=a}),null); __d("MWSetupPresenceReportingDeferred.react",["CometPlaceholder.react","deferredLoadComponent","react","requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=c("deferredLoadComponent")(c("requireDeferred")("MWSetupPresenceReporting.react").__setRef("MWSetupPresenceReportingDeferred.react"));function a(){return h.jsx(c("CometPlaceholder.react"),{fallback:null,children:h.jsx(i,{})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWSetupPresenceReportingDeferred.bs",["MWSetupPresenceReportingDeferred.react"],(function(a,b,c,d,e,f){"use strict";a=b("MWSetupPresenceReportingDeferred.react");f.make=a}),null); __d("MWChatMultitabMain.bs",["CometContextualLayerAnchorRoot.re","MWChatMultitabHeadsContainer.bs","MWChatMultitabResize.bs","MWChatMultitabSync.bs","MWChatMultitabTabsContainer.bs","MWChatOnMediaVisibilityOverrideContext","MWChatTabContainerShared.bs","MWLSChatInit.bs","MWLSThreadDisplayContext.bs","MWSetupPresenceReportingDeferred.bs","cr:1162","react","stylex","useMWIsOnPushView","useMWIsTopLevelRouteMediaViewerExperiment","useShouldShowMessagingEntrypointInCometRoot"],(function(a,b,c,d,e,f){"use strict";var g,h,i=g||b("react"),j={root:{position:"poy2od1o",bottom:"i09qtzwb",end:"n7fi1qx3"},chatAbovePushView:{zIndex:"tkr6xdv7"},hidden:{display:"mkhogb32"},container:{position:"l9j0dhe7",transform:"fh5enmmv"}};function a(a){b("MWLSChatInit.bs").useHook(void 0);b("MWChatMultitabSync.bs").useHook(void 0);b("MWChatMultitabResize.bs").useHook(void 0);a=b("useMWIsTopLevelRouteMediaViewerExperiment")();a=b("MWChatOnMediaVisibilityOverrideContext").useMWChatOnMediaVisibilityOverride(a);a=b("useShouldShowMessagingEntrypointInCometRoot")("CHAT")&&a;var c=b("useMWIsOnPushView")();c=a?i.jsxs("div",{className:(h||(h=b("stylex")))(j.root,c?j.chatAbovePushView:!1,a?!1:j.hidden),children:[i.jsx(b("MWSetupPresenceReportingDeferred.bs").make,{}),i.jsx(b("CometContextualLayerAnchorRoot.re").make,{children:i.jsx(b("MWLSThreadDisplayContext.bs").Provider.make,{children:i.jsxs("div",{className:(h||(h=b("stylex")))(j.container),children:[i.jsx(b("MWChatMultitabTabsContainer.bs").make,{}),i.jsx(b("MWChatMultitabHeadsContainer.bs").make,{})]}),value:0})})]}):null;if(b("cr:1162")==null)return c;else return i.jsx(b("cr:1162").make,{children:c})}c=b("MWChatTabContainerShared.bs").styles;d=a;f.styles=j;f.shareStyles=c;f.$MAWSetup$requireCond=b("cr:1162");f.make=d}),null); __d("MWChatMultitabMain.re",["MWChatMultitabMain.bs"],(function(a,b,c,d,e,f){a=b("MWChatMultitabMain.bs").make;f.make=a}),null); __d("MWChatContainer.react",["CometErrorBoundary.react","LSPlatformClientProvider.re","LSPlatformConfig.re","LSPlatformMessengerConfig.re","MWChatDisabled.re","MWChatMultitabMain.re","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(){return h.jsx(c("CometErrorBoundary.react"),{fallback:function(a){return h.jsx(d("MWChatDisabled.re").make,{})},children:h.jsx(d("LSPlatformConfig.re").Provider_make,{config:d("LSPlatformMessengerConfig.re").configEagerlyLoaded,children:h.jsx(d("LSPlatformClientProvider.re").make,{children:h.jsx(d("MWChatMultitabMain.re").make,{})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWChatOpenTabFromNewMessage.bs",["LSThreadAttributionStore.bs","MWChatMultitabContext.bs","MWChatMultitabDispatcher.bs","MWChatThreadId.bs","ODS","bs_curry","react","useCometFeedNoRoutingNavigationEventLogger"],(function(a,b,c,d,e,f){"use strict";var g,h=g||b("react");function a(a){var c=b("useCometFeedNoRoutingNavigationEventLogger")(),d=h.useContext(b("MWChatMultitabContext.bs").context);return h.useCallback(function(e){return function(f,g){c(Date.now(),"","messenger");b("ODS").bumpEntityKey(3185,"mwchat_tab","open_incoming");b("LSThreadAttributionStore.bs").setSource(b("MWChatThreadId.bs").getFBID(e),a);d!==void 0&&b("MWChatMultitabDispatcher.bs").dispatch(!1,d,{TAG:2,_0:e});return b("bs_curry")._1(g,void 0)}},[d,c,a])}f.useHook=a}),null); __d("MWChatSettingsHead.bs",["fbt","ix","CometDeferredPopoverTrigger.react","CometPressable.react","MWChatHeadConstants.bs","MWChatHeadsShared.bs","MWChatMultitabHiddenChatHeads.bs","MWChatMultitabVisibleChatHeads.bs","MWTooltip.react","TetraIcon.react","bs_curry","fbicon","react","requireDeferred","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=i||b("react"),l={headArea:{height:"tv7at329",width:"thwo4zme",borderTopStartRadius:"s45kfl79",borderTopEndRadius:"emlxlaya",borderBottomEndRadius:"bkmhp75w",borderBottomStartRadius:"spb7xbtv"},hoverTarget:{alignItems:"bp9cbjyn",backgroundColor:"g5ia77u1",display:"j83agx80",height:"lr7z0d6d",justifyContent:"taijpn5t",marginStart:"kb7jmfru",marginTop:"irj2b8pg",width:"etr7akla"},head:{alignItems:"bp9cbjyn",display:"j83agx80",justifyContent:"taijpn5t",height:"tv7at329",width:"thwo4zme",borderTopStartRadius:"s45kfl79",borderTopEndRadius:"emlxlaya",borderBottomEndRadius:"bkmhp75w",borderBottomStartRadius:"spb7xbtv",opacity:"b5wmifdl",backgroundColor:"ovq5dppa",boxShadow:"akv41dx8",":hover":{boxShadow:"eb3gnj61"},transform:"qpbg1qsm",transitionDuration:"bybyf9sm",transitionProperty:"pnx7fd3z"},headVisible:{opacity:"pedkr2u6",transform:"g3zh7qmp"}},m=g._(/*FBT_CALL*/"Options"/*FBT_CALL*/);function a(a){var c=a.isSomeHeadHovered;a=k.useState(function(){return!1});var d=a[1],e=a[0];a=k.useState(function(){return!1});var f=a[1],g=a[0];a=k.useState(function(){return!1});var i=a[1],n=a[0];a=b("MWChatMultitabVisibleChatHeads.bs").useHook(void 0);var o=b("MWChatMultitabHiddenChatHeads.bs").useHook(void 0);o=o.length>0;a="translate3d(0,"+(String(Math.imul(Math.imul(-1,a.length+(o?1:0)|0),b("MWChatHeadConstants.bs").pixels_between_chat_heads)+12|0)+"px,0)");return k.jsx("li",{className:(j||(j=b("stylex")))(b("MWChatHeadsShared.bs").styles.chatHead),style:{transform:a},children:k.jsx(b("CometDeferredPopoverTrigger.react"),{onVisibilityChange:function(a){return b("bs_curry")._1(f,function(b){return a})},popoverResource:b("requireDeferred")("MWChatSettingsHeadPopover.react").__setRef("MWChatSettingsHead.bs"),popoverProps:{},align:"end",position:"above",children:function(a,f){return k.jsx("div",{className:(j||(j=b("stylex")))(l.headArea),children:k.jsx("div",{className:j(l.hoverTarget),onMouseEnter:function(a){return b("bs_curry")._1(d,function(a){return!0})},onMouseLeave:function(a){return b("bs_curry")._1(d,function(a){return!1})},children:k.jsx(b("CometPressable.react"),{label:m,ref:a,onFocusChange:function(a){return b("bs_curry")._1(i,function(b){return a})},onPress:function(a){return b("bs_curry")._1(f,void 0)},xstyle:function(a){return[l.head,g||n||c||e?l.headVisible:!1]},children:k.jsx(b("MWTooltip.react"),{tooltip:m,align:"middle",position:"start",children:k.jsx(b("TetraIcon.react"),{icon:b("fbicon")._(h("484387"),20)})})})})})}})},"close_all")}c=b("MWChatHeadsShared.bs").styles;d=a;f.styles=l;f.headStyles=c;f.label=m;f.make=d}),null); __d("MWChatBadgeCount.react",["CometNumberedBadge.react","CometPlaceholder.react","CometRelay","MAWGating.re","MWChatBadgeCountQuery.graphql","MWChatBadgeCountUpdates.re","MWXacGating.re","gkx","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,l=h!==void 0?h:h=b("MWChatBadgeCountQuery.graphql");function m(a){var b,e=a.setBadgeCount;a=d("CometRelay").useLazyLoadQuery(l,{suppress_xac_groups:!c("MWXacGating.re").isGroupsEnabled()},{fetchPolicy:"store-or-network"});a=(a=a.viewer)==null?void 0:a.message_threads;var f=a!=null&&!n((b=a.is_loading_client_threads)!=null?b:d("MAWGating.re").isArmadillo()===!0)&&a.unseen_count!=null&&a.unseen_count>0?Math.min(d("MWChatBadgeCountUpdates.re").minSyncedThreads,a.unseen_count):0,g=k(null);j(function(){e&&g.current!==f&&(g.current=f,e(f))},[f,e]);return i.jsx(i.Fragment,{children:f>0?i.jsx(c("CometNumberedBadge.react"),{testid:void 0,value:f}):null})}m.displayName=m.name+" [from "+f.id+"]";function a(a){a=a.setBadgeCount;return i.jsx(c("CometPlaceholder.react"),{fallback:i.jsx("span",{}),children:i.jsx(m,{setBadgeCount:a})})}a.displayName=a.name+" [from "+f.id+"]";function n(a){return a&&c("gkx")("257")}g["default"]=a}),98); __d("GetLSDataScriptDirectForComet.bs",["requireDeferred"],(function(a,b,c,d,e,f){"use strict";var g=b("requireDeferred")("LSDataScriptDirect.bs").__setRef("GetLSDataScriptDirectForComet.bs");function a(a){return g.load()}f.$LSDataScriptDirect$Deferred=g;f.get=a}),null); __d("LSVersion",[],(function(a,b,c,d,e,f){e.exports="4641216599332997"}),null); __d("LSOpenVersion.bs",["LSVersion"],(function(a,b,c,d,e,f){"use strict";a=b("LSVersion");f.version=a}),null); __d("FBMqttChannel.bs",["FBMqttChannel"],(function(a,b,c,d,e,f){"use strict";var g=b("FBMqttChannel");function a(a){}function c(a){return g}f.instance=g;f.shutdownAndClear=a;f.getInstance=c}),null); __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("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("CometSearchBootstrapKeywordsDataSource.query",["CometSearchBootstrapKeywordsDataSourceQuery.graphql","filterNulls","getSearchCometKeywordDataSourceStructuredInfoForEntry","recoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h;d=h!==void 0?h:h=b("CometSearchBootstrapKeywordsDataSourceQuery.graphql");function a(a){if(!a)return[];a=a.viewer;a=((a=a==null?void 0:(a=a.bootstrap_keywords)==null?void 0:a.edges)!=null?a:[]).map(function(a){return a.node}).filter(Boolean);a=c("filterNulls")(a.map(function(a){var b,d=a.item_logging_id,e=a.item_logging_info,f=a.keyword_text,g=a.sts_info;a=a.suggestion_keys;if(f==null){c("recoverableViolation")("Cannot have TA bootstrap entry without keyword_text","search");return null}g=c("getSearchCometKeywordDataSourceStructuredInfoForEntry")({structuredTypeaheadInfo:g});var h=g.entryKey,i=g.extraLoggingInfo,j=g.label,k=g.markers;g=g.structuredInfo;b=(b=a)!=null?b:{};var l=b.default_key,m=b.keys;b=b.tier;return{key:(h=(h=h)!=null?h:g&&(a==null?void 0:a.default_key))!=null?h:f,label:(a=j)!=null?a:f,metaData:{logging:babelHelpers["extends"]({},i,{loggingID:(h=d)!=null?h:"",loggingInfo:e}),markers:new Set(["bootstrap","keyword"].concat(k))},rawData:{structuredInfo:g,suggestion_keys:b!=null?{default_key:l,keys:m,tier:b}:null,type:"bootstrap"}}}));return a}g.query=d;g.normalize=a}),98); __d("CometSearchBootstrapKeywordsDataSource",["CometSearchBootstrapKeywordsDataSource.query","CometTypeaheadBootstrapDataProvider","CometTypeaheadBootstrapDataProviderStorageKey","CometTypeaheadDataCacheProvider","CometTypeaheadDataProviderQueryVariablesBuilder","CometTypeaheadInMemoryMapDataCache","cometSearchTypeaheadPayloadDecoratorAddLimit","cometTypeaheadStartsWithMatchBuilder","gkx","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a){var b=a.limit,e=a.queryVariables;a=a.relayEnvironment;this.$2=new(c("CometTypeaheadDataCacheProvider"))({cache:new(c("CometTypeaheadInMemoryMapDataCache"))(),matchBuilder:c("cometTypeaheadStartsWithMatchBuilder")});this.$3=b;b=new(c("CometTypeaheadDataProviderQueryVariablesBuilder"))(function(){return function(){return e}});this.$1=new(c("CometTypeaheadBootstrapDataProvider"))({query:d("CometSearchBootstrapKeywordsDataSource.query").query,queryVariablesBuilder:b,relayEnvironment:a,storageKey:c("gkx")("1821232")?d("CometTypeaheadBootstrapDataProviderStorageKey").StorageKey.GlobalTypeaheadBootstrapKeywords:null})}var b=a.prototype;b.bootstrap=function(){var a=this;c("promiseDone")(this.$1.fetch({query:""}).then(function(a){a=a.response;return d("CometSearchBootstrapKeywordsDataSource.query").normalize(a)}).then(function(b){a.$2.clear(),a.$2.add(b,null)}))};b.fetchCache=function(a){var b=a.query;b=this.$2.match(b);var d=c("cometSearchTypeaheadPayloadDecoratorAddLimit")(this.$3);return d({entries:b,params:a})};b.clear=function(){this.$1.clearLocalStorage(),this.$2.clear()};b.removeEntriesByEntID=function(a){this.$1.clearLocalStorage();var b=this.$2.values();for(var b=b,c=Array.isArray(b),d=0,b=c?b:b[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e,f;if(c){if(d>=b.length)break;f=b[d++]}else{d=b.next();if(d.done)break;f=d.value}f=f;a===((e=f.rawData.structuredInfo)==null?void 0:(e=e.direct_nav_result)==null?void 0:e.ent_id)&&this.$2.remove(f)}};return a}();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 h.forwardRef(function(b,c){var d=b.onPressEntry,e=b.traceProvider;b=babelHelpers.objectWithoutPropertiesLoose(b,["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,{onPressEntry:f,ref:c,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){a=a.rawData;if(a.type!=="bootstrap")return null;a=(a=a.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"),e=h(function(){return new(c("CometTypeaheadTraceProvider"))({loggingProvider:a,trace:b,vcTrackerRef:d})},[a,b,d]);return e}g["default"]=a}),98); __d("CometSearchTypeaheadRecentEntityViewItem.react",["CometTypeaheadEntityViewItem.react","react","recoverableViolation"],(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.profile;d=(d=d)!=null?d:{};var e=d.id,f=d.profilePictureURL;d=d.url;f==null&&c("recoverableViolation")("Missing profile picture for fbid "+e,"search");return h.jsx(c("CometTypeaheadEntityViewItem.react"),babelHelpers["extends"]({},a,{entry:b,linkProps:{preventLocalNavigation:!0,url:d},pictureUrl:f,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){a=a.metaData.markers;return a.has("entity")&&a.has("recent")}f["default"]=a}),66); __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})})}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("getCometSearchTypeaheadStructuredInfoKey",["getSearchCometKeywordDataSourceStructuredSuggestionKey"],(function(a,b,c,d,e,f,g){"use strict";function a(a){a=a.rawData.structuredInfo;return a==null?null:c("getSearchCometKeywordDataSourceStructuredSuggestionKey")(a)}g["default"]=a}),98); __d("CometSearchTypeaheadDefaultEntryComparator",["cometDataEntryLabelKeyBuilder","getCometSearchTypeaheadStructuredInfoKey","recoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";function h(a,b){var d=c("getCometSearchTypeaheadStructuredInfoKey")(a),e=c("getCometSearchTypeaheadStructuredInfoKey")(b);return d!=null&&e!=null?d===e:c("cometDataEntryLabelKeyBuilder")(a)===c("cometDataEntryLabelKeyBuilder")(b)}function a(a,b){if(!h(a,b)){c("recoverableViolation")("The suggestions are not dupes: "+a.key+" compared to "+b.key,"search");return a}var d=c("getCometSearchTypeaheadStructuredInfoKey")(a),e=c("getCometSearchTypeaheadStructuredInfoKey")(b);return d!=null&&e!=null?b:e!=null?b:a}g.areEntriesDupes=h;g.pickEntryToKeep=a}),98); __d("CometSearchTypeaheadServerDrivenEntryComparator",["getCometSearchTypeaheadStructuredInfoKey","recoverableViolation","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";function h(a){a=(a=a.rawData)!=null?a:{};a=a.suggestion_keys;if(a==null)throw c("unrecoverableViolation")("Unexpected missing keys","search");return a}function a(a,b){var d=h(a),e=d.default_key;d=d.keys;var f=h(b),g=f.default_key,i=f.keys;if(d.some(function(a){return i.includes(a)}))return!0;f=c("getCometSearchTypeaheadStructuredInfoKey")(a);var k=c("getCometSearchTypeaheadStructuredInfoKey")(b);f!=null&&f===k&&j("STS dupe: same STS UI key but no keys overlap",a,b);if(d.length>0&&i.length>0)return!1;if(e==null||g==null)return!1;e===g&&a.label.toLowerCase()!==b.label.toLowerCase()&&j("STS dupe: same default key but different label",a,b);return e.toLowerCase()===g.toLowerCase()}function b(a,b){var c=h(a);c=c.tier;var d=h(b);d=d.tier;return c<=d?b:a}function i(a){var b=h(a),c=b.default_key;b=b.keys;return"ui key: "+a.key+", keys: "+(b.join(",")||"empty")+", default key: "+((b=c)!=null?b:"null")+", label: "+a.label}function j(a,b,d){c("recoverableViolation")(a+": ("+i(b)+") vs ("+i(d)+")","search")}g.areEntriesDupes=a;g.pickEntryToKeep=b}),98); __d("cometSearchTypeaheadDedupeAndLog",["killswitch","recoverableViolation","requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h=c("requireDeferred")("ODS").__setRef("cometSearchTypeaheadDedupeAndLog");function a(a,b,d){if(c("killswitch")("SEARCH_COMET_DISABLE_STS_DUPE_LOGGING"))return b;var e=new Map(),f=[];for(var b=b,g=Array.isArray(b),h=0,b=g?b:b[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var j;if(g){if(h>=b.length)break;j=b[h++]}else{h=b.next();if(h.done)break;j=h.value}j=j;var k=e.get(j.key);k!=null?i({caller:d,dupeEntry:j,existingEntry:k,strategy:a}):(e.set(j.key,j),f.push(j))}return f}function i(a){var b=a.caller,d=a.dupeEntry,e=a.existingEntry;a=a.strategy;var f=e.metaData.markers,g=d.metaData.markers;c("recoverableViolation")("STS Dupe encountered: "+e.key+" ("+Array.from(f).join("_")+", label: "+e.label+") compared to "+d.key+"\n ("+Array.from(g).join("_")+", label: "+d.label+")\n ","search");var i="comet_ta_sts_dupe_v4."+a,j=["react_key_"+(Array.from(f).join("_")||"plain_keyword"),b,"existing_kind_"+Array.from(f).join("_"),"dupe_kind_"+Array.from(g).join("_")].join(".");h.onReady(function(a){a.bumpEntityKey(354,i,j,1)})}g["default"]=a}),98); __d("cometSearchTypeaheadSTSDedupeEntries",["CometSearchTypeaheadDefaultEntryComparator","CometSearchTypeaheadServerDrivenEntryComparator","cometSearchTypeaheadDedupeAndLog","filterNulls"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,c){c===void 0&&(c="bootstrap_and_backend_merge");var e=a.concat(b).every(function(a){return a.rawData.suggestion_keys!=null});return h.apply(void 0,[a,b,c].concat(e?[d("CometSearchTypeaheadServerDrivenEntryComparator").areEntriesDupes,d("CometSearchTypeaheadServerDrivenEntryComparator").pickEntryToKeep]:[d("CometSearchTypeaheadDefaultEntryComparator").areEntriesDupes,d("CometSearchTypeaheadDefaultEntryComparator").pickEntryToKeep]))}function h(a,b,e,f,g){var h=d("CometSearchTypeaheadServerDrivenEntryComparator").areEntriesDupes,i=[],j=new Set(b);for(var a=a,k=Array.isArray(a),l=0,a=k?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var m;if(k){if(l>=a.length)break;m=a[l++]}else{l=a.next();if(l.done)break;m=l.value}m=m;i.push(m)}for(var m=b,l=Array.isArray(m),k=0,m=l?m:m[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){if(l){if(k>=m.length)break;a=m[k++]}else{k=m.next();if(k.done)break;a=k.value}b=a;a=[];for(var n=0;n=this.$5)return this.$6(b);b=this.$2.fetchCache(a);a=b.entries;b=b.params;d=h(d,a);return this.$6({entries:d,params:b})};b.fetchNetwork=function(a){var b=this,d=a.query;return d===""?this.$3.fetchNetwork(a).then(function(a){return c("cometSearchTypeaheadDecorateRecentPayload")(a,{limit:b.$5})}):this.$2.fetchNetwork(a).then(function(c){var d=b.$1.fetchCache(a);d=d.entries;var e=c.entries;c=c.params;d=h(d,e);return b.$6({entries:d,params:c})})};b.removeRecentEntry=function(a,b){this.$3.remove(a,b)};b.$6=function(a){var b=a.entries;a=a.params;return c("cometSearchTypeaheadDecorateMixedPayload")({entries:b,params:a},{keyBuilder:c("cometDataEntryLabelKeyBuilder"),limit:this.$5})};b.clearRecentSearches=function(){this.$3.clear()};b.clearQueryCache=function(){this.$2.clearQueryCache()};b.getBootstrapKeywordsDataSource=function(){return this.$1};return a}();function h(a,b){return c("cometSearchTypeaheadSTSDedupeEntries")(a,b,"bootstrap_and_backend_merge")}g["default"]=a}),98); __d("SearchCometGlobalTypeaheadInputStrategy.react",["CometSearchEventEmitterContext","CometTypeaheadInputRoundedStrategy.react","react","useMergeRefs","useRefEffect"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useContext;function a(a,b){var d=a.onChange;a=babelHelpers.objectWithoutPropertiesLoose(a,["onChange"]);var e=i(c("CometSearchEventEmitterContext")),f=e.subscribeToGlobalTypeaheadFocus;e=c("useRefEffect")(function(a){var b=f(function(){if(a==null)return;a.value="";a.focus();d("")});return b},[d,f]);e=c("useMergeRefs")(e,b);return h.jsx(c("CometTypeaheadInputRoundedStrategy.react"),babelHelpers["extends"]({},a,{onChange:d,ref:e}))}a.displayName=a.name+" [from "+f.id+"]";b=h.forwardRef(a);g["default"]=b}),98); __d("SearchCometGlobalTypeaheadLayoutContextualStrategy.react",["CometHeroHoldTrigger.react","CometHeroInteractionWithDiv.react","CometTypeaheadInternalLayoutInlineStrategy.react","react","useCometInternalTypeaheadFetch","useCometInternalTypeaheadHeroTracing","useCometInternalTypeaheadState","useCometTypeaheadInputRefs","useCometTypeaheadInternalLayoutContextualStrategyHandlers","useCometTypeaheadLayoutContextualStrategyARIAProps","useSearchCometGlobalTypeaheadStyles"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a,b){var d=a.extraLayoutProps;d=d===void 0?{}:d;var e=d.afterViewContent;d=d.beforeViewContent;var f=a.helperText,g=a.label,i=a.onAbandonTypeahead_DO_NOT_USE,j=a.onBlur,k=a.onChange,l=a.onClick,m=a.onDownArrow,n=a.onEnter,o=a.onEscape,p=a.onHighlightEntry,q=a.onOutsideClick,r=a.onPressEntry,s=a.onShiftTab,t=a.onTab,u=a.onUpArrow,v=a.traceProvider,w=a.viewRole,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","xstyles"]);var y=c("useCometInternalTypeaheadState")(),z=y.activeEntries,A=y.highlightedEntry;y=y.isOpened;var B=c("useCometInternalTypeaheadFetch")();B=B.isLoading;b=c("useCometTypeaheadInputRefs")(b);var C=b.composedRef;b=b.inputRef;x=(x=x)!=null?x:c("useSearchCometGlobalTypeaheadStyles")();v=c("useCometInternalTypeaheadHeroTracing")(v,k);k=v.interactionUUID;var D=v.onTracedChange,E=v.shouldHoldHeroTracing;v=v.vcTrackerRef;b=c("useCometTypeaheadInternalLayoutContextualStrategyHandlers")({inputRef:b,onAbandonTypeahead_DO_NOT_USE:i,onBlur:j,onChange:D,onClick:l,onDownArrow:m,onEnter:n,onEscape:o,onHighlightEntry:p,onOutsideClick:q,onPressEntry:r,onShiftTab:s,onTab:t,onUpArrow:u});i=c("useCometTypeaheadLayoutContextualStrategyARIAProps")({activeEntries:z,helperText:f,highlightedEntry:A,inputLabel:g,isOpened:y,viewRole:w});return h.jsxs(c("CometHeroInteractionWithDiv.react"),{interactionDesc:"Search_Typeahead",interactionUUID:k,ref:v,children:[h.jsx(c("CometHeroHoldTrigger.react"),{description:"SearchInternalTypeahead",hold:E}),h.jsx(c("CometTypeaheadInternalLayoutInlineStrategy.react"),babelHelpers["extends"]({},a,b,{extraLayoutProps:{afterViewContent:e,ariaProps:i,beforeViewContent:d,helperTextComponent:null,isLoading:B,isOpened:y},label:g,ref:C,viewRole:w,xstyles:x}))]})}a.displayName=a.name+" [from "+f.id+"]";b=h.forwardRef(a);g["default"]=b}),98); __d("CometSearchTypeaheadBaseStructuredDirectNavKeywordViewItem.react",["CometImageIcon_DEPRECATED.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;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,j=b.link_url,k=b.snippet;b=b.type;var l=i(function(){return{preloadCodeOnMount:!0,preventLocalNavigation:!0,url:j}},[j]);return h.jsx(c("CometTypeaheadViewItem.react"),babelHelpers["extends"]({},a,{entry:d,isActive:e,itemStartContent:g!=null?h.jsx(c("CometImageIcon_DEPRECATED.react"),{size:36,src:g,style:b==="SHORTCUT"?"square":"circle"}):null,linkProps:l,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:k,metaLineLimit:1})}})}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useSearchCometGlobalTypeaheadURLBuilderForKeywordEntry",["Base64","ConstUriUtils","SearchCometInterestsDeepDiveExperiments","SearchCometInterestsDeepDiveUtil","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{var l;h=g.rawData;if((h.type==="keyword"||h.type==="recent")&&j.has("high_confidence")){k=(g=(k=h.structuredInfo)==null?void 0:k.high_confidence_result)!=null?g:{};g=k.hcm_id;k=k.source_as_enum;g!=null&&k!=null&&(l={id:g,source:k})}var m;if(h.type==="keyword"&&j.has("disambiguation")){h=(j=(g=h.structuredInfo)==null?void 0:(k=g.disambiguation_result)==null?void 0:k.disambiguation_info_list[0])!=null?j:{};g=h.link_url;k=h.type;if(g!=null){j=d("ConstUriUtils").getUri(g);if(j!=null){h=new Map();e!=null&&h.set("__eps__",e);k!=null&&h.set("__stsd__",c("Base64").encode(JSON.stringify({primary:{type:k}})));g=new Map();for(var h=h,n=Array.isArray(h),o=0,h=n?h:h[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var p;if(n){if(o>=h.length)break;p=h[o++]}else{o=h.next();if(o.done)break;p=o.value}p=p;var q=p[0];p=p[1];g.set(q,p)}q=j.addQueryParams(g);if(q!=null)return q.toString()}}k!=null&&(m={primary:{type:k}})}return a({entryPointAction:"SEARCH_BOX",highConfidenceResult:l,query:i,stsDisambiguation:m,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("CometSearchTypeaheadBaseStructuredDisambiguationKeywordViewItem.react",["CometTypeaheadHighlight.react","CometTypeaheadViewItem.react","CometTypeaheadViewItemIcon.react","TetraTextPairing.react","react","recoverableViolation","useSearchCometGlobalTypeaheadKeywordViewItemLinkProps"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b,d=a.entry,e=a.isActive,f=a.queryString;a=babelHelpers.objectWithoutPropertiesLoose(a,["entry","isActive","queryString"]);var g=c("useSearchCometGlobalTypeaheadKeywordViewItemLinkProps")({entry:d,queryString:f});b=(b=d.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 i=b[0].snippet;return h.jsx(c("CometTypeaheadViewItem.react"),babelHelpers["extends"]({},a,{entry:d,isActive:e,itemStartContent:h.jsx(c("CometTypeaheadViewItemIcon.react"),{isActive:e,type:"typed"}),linkProps:g,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:i,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","useSearchCometGlobalTypeaheadKeywordViewItemLinkProps"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");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.high_confidence_result)!=null?b:{};var g=b.hcm_id,i=b.picture_url,j=b.snippet;if(i==null){c("recoverableViolation")("Missing HC keyword item picture url for hcm_id "+((b=g)!=null?b:"null"),"search")}g=c("useSearchCometGlobalTypeaheadKeywordViewItemLinkProps")({entry:d,queryString:f});return h.jsx(c("CometTypeaheadViewItem.react"),babelHelpers["extends"]({},a,{entry:d,isActive:e,itemEndContent:i!=null?h.jsx(c("CometProfilePhoto.react"),{shape:"roundedRect",size:36,source:{uri:i}}):null,itemStartContent:h.jsx(c("CometTypeaheadViewItemIcon.react"),{isActive:e,type:"typed"}),linkProps:g,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:j,metaLineLimit:1})}})}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometSearchTypeaheadStructuredDirectNavKeywordRecentViewItem.react",["CometImageIcon_DEPRECATED.react","CometSearchTypeaheadBaseSurfaceRecentViewItemRemoveButton.react","CometTypeaheadFocusLockRegion.react","CometTypeaheadViewItem.react","TetraTextPairing.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useMemo;function a(a){var b,d=a.entry,e=a.isActive;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 f=b.img_url,g=b.link_url,j=b.snippet,k=b.title;b=b.type;var l=i(function(){return{preloadCodeOnMount:!0,preventLocalNavigation:!0,url:g}},[g]);return h.jsx(c("CometTypeaheadViewItem.react"),babelHelpers["extends"]({},a,{entry:d,isActive:e,itemEndContent:h.jsx(c("CometTypeaheadFocusLockRegion.react"),{children:h.jsx(c("CometSearchTypeaheadBaseSurfaceRecentViewItemRemoveButton.react"),{entry:d})}),itemStartContent:f!=null?h.jsx(c("CometImageIcon_DEPRECATED.react"),{size:36,src:f,style:b==="SHORTCUT"?"square":"circle"}):null,linkProps:l,children:h.jsx(c("TetraTextPairing.react"),{body:k,bodyLineLimit:2,level:3,meta:j,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","useSearchCometGlobalTypeaheadKeywordViewItemLinkProps"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b,d=a.entry,e=a.isActive,f=a.queryString;a=babelHelpers.objectWithoutPropertiesLoose(a,["entry","isActive","queryString"]);f=c("useSearchCometGlobalTypeaheadKeywordViewItemLinkProps")({entry:d,queryString:f});b=(b=d.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:d,isActive:e,itemEndContent:h.jsx(c("CometTypeaheadFocusLockRegion.react"),{children:h.jsx(c("CometSearchTypeaheadBaseSurfaceRecentViewItemRemoveButton.react"),{entry:d})}),itemStartContent:h.jsx(c("CometTypeaheadViewItemIcon.react"),{isActive:e,type:"recent"}),linkProps:f,children:h.jsx(c("TetraTextPairing.react"),{body:d.label,bodyLineLimit:2,level:2,meta:b,metaLineLimit:1})}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometSearchTypeaheadStructuredHighConfidenceKeywordRecentViewItem.react",["CometImageIcon_DEPRECATED.react","CometRow.react","CometRowItem.react","CometSearchTypeaheadBaseSurfaceRecentViewItemRemoveButton.react","CometTypeaheadFocusLockRegion.react","CometTypeaheadViewItem.react","CometTypeaheadViewItemIcon.react","TetraTextPairing.react","react","recoverableViolation","useSearchCometGlobalTypeaheadKeywordViewItemLinkProps"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");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.high_confidence_result)!=null?b:{};var g=b.hcm_id,i=b.picture_url;b=b.snippet;if(i==null){c("recoverableViolation")("Missing HC keyword item picture url for hcm_id "+((g=g)!=null?g:"null"),"search")}g=c("useSearchCometGlobalTypeaheadKeywordViewItemLinkProps")({entry:d,queryString:f});return h.jsx(c("CometTypeaheadViewItem.react"),babelHelpers["extends"]({},a,{entry:d,isActive:e,itemEndContent:h.jsxs(c("CometRow.react"),{paddingHorizontal:0,paddingVertical:0,verticalAlign:"center",children:[i!=null?h.jsx(c("CometRowItem.react"),{children:h.jsx(c("CometImageIcon_DEPRECATED.react"),{size:36,src:i,style:"roundedRect"})}):null,h.jsx(c("CometRowItem.react"),{children:h.jsx(c("CometTypeaheadFocusLockRegion.react"),{children:h.jsx(c("CometSearchTypeaheadBaseSurfaceRecentViewItemRemoveButton.react"),{entry:d})})})]}),itemStartContent:h.jsx(c("CometTypeaheadViewItemIcon.react"),{isActive:e,type:"recent"}),linkProps:g,children:h.jsx(c("TetraTextPairing.react"),{body:d.label,bodyLineLimit:2,level:3,meta:b,metaLineLimit:1})}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("SearchCometGlobalTypeaheadEchoViewItem.react",["CometTypeaheadEchoViewItem.react","react","useSearchCometGlobalTypeaheadKeywordViewItemLinkProps"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.entry,d=a.queryString;a=babelHelpers.objectWithoutPropertiesLoose(a,["entry","queryString"]);var e=c("useSearchCometGlobalTypeaheadKeywordViewItemLinkProps")({entry:b,queryString:d});return h.jsx(c("CometTypeaheadEchoViewItem.react"),babelHelpers["extends"]({},a,{entry:b,linkProps:e,queryString:d}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("SearchCometGlobalTypeaheadNullstateKeywordViewItem.react",["CometSearchTypeaheadBaseSurfaceRecentViewItem.react","react","useSearchCometGlobalTypeaheadKeywordViewItemLinkProps"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.entry,d=a.queryString;a=babelHelpers.objectWithoutPropertiesLoose(a,["entry","queryString"]);var e=c("useSearchCometGlobalTypeaheadKeywordViewItemLinkProps")({entry:b,queryString:d});return h.jsx(c("CometSearchTypeaheadBaseSurfaceRecentViewItem.react"),babelHelpers["extends"]({},a,{entry:b,linkProps:e,queryString:d}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("SearchCometGlobalTypeaheadSeeAllViewItem.react",["CometTypeaheadSeeAllViewItem.react","react","useSearchCometGlobalTypeaheadKeywordViewItemLinkProps"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.entry,d=a.queryString;a=babelHelpers.objectWithoutPropertiesLoose(a,["entry","queryString"]);var e=c("useSearchCometGlobalTypeaheadKeywordViewItemLinkProps")({entry:b,queryString:d});return h.jsx(c("CometTypeaheadSeeAllViewItem.react"),babelHelpers["extends"]({},a,{entry:b,linkProps:e,queryString:d}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("SearchCometGlobalTypeaheadTypedKeywordViewItem.react",["CometTypeaheadKeywordViewItem.react","react","useSearchCometGlobalTypeaheadKeywordViewItemLinkProps"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.entry,d=a.queryString;a=babelHelpers.objectWithoutPropertiesLoose(a,["entry","queryString"]);var e=c("useSearchCometGlobalTypeaheadKeywordViewItemLinkProps")({entry:b,queryString:d});return h.jsx(c("CometTypeaheadKeywordViewItem.react"),babelHelpers["extends"]({},a,{entry:b,linkProps:e,queryString:d}))}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){a=a.metaData.markers;return a.has("direct_nav")&&a.has("recent")}f["default"]=a}),66); __d("cometSearchTypeaheadStructuredDirectNavKeywordViewItem.resolver",[],(function(a,b,c,d,e,f){"use strict";function a(a){a=a.metaData.markers;return a.has("keyword")&&a.has("direct_nav")}f["default"]=a}),66); __d("cometSearchTypeaheadStructuredDisambiguationKeywordRecentViewItem.resolver",[],(function(a,b,c,d,e,f){"use strict";function a(a){a=a.metaData.markers;return a.has("recent")&&a.has("disambiguation")}f["default"]=a}),66); __d("cometSearchTypeaheadStructuredDisambiguationKeywordViewItem.resolver",[],(function(a,b,c,d,e,f){"use strict";function a(a){a=a.metaData.markers;return a.has("keyword")&&a.has("disambiguation")}f["default"]=a}),66); __d("cometSearchTypeaheadStructuredHighConfidenceKeywordRecentViewItem.resolver",[],(function(a,b,c,d,e,f){"use strict";function a(a){a=a.metaData.markers;return a.has("recent")&&a.has("high_confidence")}f["default"]=a}),66); __d("cometSearchTypeaheadStructuredHighConfidenceKeywordViewItem.resolver",[],(function(a,b,c,d,e,f){"use strict";function a(a){a=a.metaData.markers;return a.has("keyword")&&a.has("high_confidence")}f["default"]=a}),66); __d("SearchCometGlobalTypeaheadViewItemResolver.react",["fbt","CometSearchTypeaheadBaseStructuredDirectNavKeywordViewItem.react","CometSearchTypeaheadBaseStructuredDisambiguationKeywordViewItem.react","CometSearchTypeaheadBaseStructuredHighConfidenceKeywordViewItem.react","CometSearchTypeaheadBaseSurfaceRecentEntityViewItem.react","CometSearchTypeaheadStructuredDirectNavKeywordRecentViewItem.react","CometSearchTypeaheadStructuredDisambiguationKeywordRecentViewItem.react","CometSearchTypeaheadStructuredHighConfidenceKeywordRecentViewItem.react","CometTypeaheadViewItemResolver.react","QE2Logger","SearchCometGlobalTypeaheadEchoViewItem.react","SearchCometGlobalTypeaheadNullstateKeywordViewItem.react","SearchCometGlobalTypeaheadSeeAllViewItem.react","SearchCometGlobalTypeaheadTypedKeywordViewItem.react","cometSearchTypeaheadEchoViewItem.resolver","cometSearchTypeaheadKeywordViewItem.resolver","cometSearchTypeaheadRecentEntityViewItem.resolver","cometSearchTypeaheadRecentViewItem.resolver","cometSearchTypeaheadSeeAllViewItem.resolver","cometSearchTypeaheadStructuredDirectNavKeywordRecentViewItem.resolver","cometSearchTypeaheadStructuredDirectNavKeywordViewItem.resolver","cometSearchTypeaheadStructuredDisambiguationKeywordRecentViewItem.resolver","cometSearchTypeaheadStructuredDisambiguationKeywordViewItem.resolver","cometSearchTypeaheadStructuredHighConfidenceKeywordRecentViewItem.resolver","cometSearchTypeaheadStructuredHighConfidenceKeywordViewItem.resolver","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=d("react").useMemo;function a(a){var b=a.children;a=babelHelpers.objectWithoutPropertiesLoose(a,["children"]);var d=j(function(){return k()},[]);return i.jsx(c("CometTypeaheadViewItemResolver.react"),babelHelpers["extends"]({},a,{entryMappings:d,children:b}))}a.displayName=a.name+" [from "+f.id+"]";function k(){d("QE2Logger").logExposureForUser("comet_structured_typeahead_universe");d("QE2Logger").logExposureForUser("comet_search_apollo_redesign");return[{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("cometSearchTypeaheadEchoViewItem.resolver"),viewItem:c("SearchCometGlobalTypeaheadEchoViewItem.react")},{resolver:c("cometSearchTypeaheadSeeAllViewItem.resolver"),viewItem:c("SearchCometGlobalTypeaheadSeeAllViewItem.react"),viewItemProps:{placeholderBuilder:l}},{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")},{resolver:c("cometSearchTypeaheadRecentViewItem.resolver"),viewItem:c("SearchCometGlobalTypeaheadNullstateKeywordViewItem.react")},{resolver:c("cometSearchTypeaheadKeywordViewItem.resolver"),viewItem:c("SearchCometGlobalTypeaheadTypedKeywordViewItem.react")}].filter(Boolean)}function l(a){return h._(/*FBT_CALL*/"Search for {=[query]}"/*FBT_CALL*/,[h._param("=[query]",i.jsx("strong",{children:h._(/*FBT_CALL*/"{query}"/*FBT_CALL*/,[h._param("query",a)])}))])}l.displayName=l.name+" [from "+f.id+"]";g["default"]=a}),98); __d("SearchCometGlobalTypeaheadViewItem.react",["SearchCometGlobalTypeaheadViewItemResolver.react","cr:1888367","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var d=a.entry,e=a.queryString,f=babelHelpers.objectWithoutPropertiesLoose(a,["entry","queryString"]);return h.jsx(c("SearchCometGlobalTypeaheadViewItemResolver.react"),{entry:d,children:function(a){return h.jsx(a,babelHelpers["extends"]({},f,{debugElement:b("cr:1888367")?h.jsx(b("cr:1888367"),{entry:d,queryString:e}):null,entry:d,queryString:e}))}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("SearchCometGlobalTypeaheadViewStrategy.react",["fbt","Actor","CometSearchTypeaheadBaseViewRecentEmptyState.react","CometTypeaheadProgressGlimmer.react","CometTypeaheadViewList.react","CometUnitHeader.react","FocusInertRegion.react","SearchCometGlobalTypeaheadViewItem.react","XCometActivityLogControllerRouteBuilder","focusScopeQueries","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function a(a){var e=a.ariaProps,f=a.entries;a.extraViewProps;var g=a.highlightedEntry,j=a.isLoading,k=a.onAbandonTypeahead_DO_NOT_USE,l=a.queryString,m=babelHelpers.objectWithoutPropertiesLoose(a,["ariaProps","entries","extraViewProps","highlightedEntry","isLoading","onAbandonTypeahead_DO_NOT_USE","queryString"]);a=b("XCometActivityLogControllerRouteBuilder");var n=d("Actor").useActor();n=n[0];a=a.buildURL({category_key:"SEARCH",entry_point:"edit_search_history",log_filter:"search",vanity:n});n=l==="";n=n&&f.length>0;return i.jsx(c("FocusInertRegion.react"),{focusQuery:d("focusScopeQueries").tabbableScopeQuery,children:i.jsxs("div",{className:"scb9dxdr dflh9lhu sj5x9vvc buofh1pr cbu4d94t j83agx80 rq0escxv l82x9zwi uo3d90p7 cwj9ozl2",children:[n?i.jsx("div",{className:"h676nmdw oi9244e8 bi6gxh9e",children:i.jsx(c("CometUnitHeader.react"),{action:h._(/*FBT_CALL*/"Edit"/*FBT_CALL*/),actionLinkProps:{url:a},headline:h._(/*FBT_CALL*/"Recent searches"/*FBT_CALL*/),level:3,onActionPress:k,paddingHorizontal:0})}):null,i.jsx(c("CometTypeaheadViewList.react"),{ariaProps:e,entries:f,highlightedEntry:g,children:function(a){var b=a.entry,d=a.isActive;a=a.itemRole;return i.createElement(c("SearchCometGlobalTypeaheadViewItem.react"),babelHelpers["extends"]({},m,{entry:b,isActive:d,key:b.key,queryString:l,role:a}))}}),j&&i.jsx(c("CometTypeaheadProgressGlimmer.react"),{}),f.length===0&&i.jsx(c("CometSearchTypeaheadBaseViewRecentEmptyState.react"),{})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("searchCometGlobalTypeahead.config",[],(function(a,b,c,d,e,f){"use strict";a=8;b={dataSources:{bootstrapKeywordsDataSourceParams:{queryVariables:{first:2e3}},keywordDataSourceParams:{queryVariables:{fetch_count:a,fetch_mode:"blended"}}},logging:{sessionContext:"SEARCH_GLOBAL"},view:{renderLimit:a}};f["default"]=b}),66); __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 h.forwardRef(function(b,c){var d=b.onChange,e=b.onPressEntry,f=b.shouldQueryStringUpdateFromSelectedEntryOnClick;f=f===void 0?!1:f;b=babelHelpers.objectWithoutPropertiesLoose(b,["onChange","onPressEntry","shouldQueryStringUpdateFromSelectedEntryOnClick"]);var g=i(function(a){var b=a.metaData.markers,c=a.rawData.type;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,{onChange:d,onPressEntry:g,ref:c,shouldQueryStringUpdateFromSelectedEntryOnClick:f}))})}g["default"]=a}),98); __d("withSearchCometGlobalTypeaheadFocusKeyboardShortcut",["cometGetKeyCommandConfig","react","useCometInternalTypeaheadStateDispatcher","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 h.forwardRef(function(b,e){b=babelHelpers["extends"]({},b);e=c("useCometTypeaheadInputRefs")(e);var f=e.composedRef,g=e.inputRef;e=c("useCometInternalTypeaheadStateDispatcher")();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,{ref:f}))})}g["default"]=a}),98); __d("SearchCometGlobalTypeahead.react",["fbt","BaseTypeahead.react","CometErrorBoundary.react","CometRelay","CometSearchEventEmitterContext","CometTypeaheadErrorFallback.react","QPLUserFlow","QPLUtils","Random","SearchCometGlobalTypeaheadDataSource","SearchCometGlobalTypeaheadInputStrategy.react","SearchCometGlobalTypeaheadLayoutContextualStrategy.react","SearchCometGlobalTypeaheadViewStrategy.react","SearchCometInterestsDeepDiveExperiments","SearchCometInterestsDeepDiveUtil","cr:1788640","qex","qpl","react","searchCometGlobalTypeahead.config","searchCometTypeaheadODSLogFocusEvent","useCometSearchRecentDataSourceContextDecorator","useCometSearchTypeaheadLoggingProvider","useCometSearchTypeaheadTraceProvider","useCometTypeaheadNavigate","useCometTypeaheadStateQueryString","useSearchCometGlobalSERPRouteUrlBuilder","useSearchCometGlobalTypeaheadURLBuilderForKeywordEntry","useSearchCometHashtagRouteUrlBuilder","useSearchCometRecentSearchDataSource","useSearchCometTypeaheadBootstrapValidation","useStable","withSearchCometGlobalTypeaheadCleanStateOnEntrySelection","withSearchCometGlobalTypeaheadFocusKeyboardShortcut","withSearchCometTypeaheadBaseNavigationDecorator","withSearchCometTypeaheadTraceEndReasonDecorator"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");e=d("react");var j=e.useCallback,k=e.useContext,l=e.useEffect,m=e.useMemo,n=(e=b("cr:1788640"))!=null?e:function(){return null};function a(a){var b,e=a.inputXStyle,f=a.onClose,g=a.onFocus,p=a.queryString;a=babelHelpers.objectWithoutPropertiesLoose(a,["inputXStyle","onClose","onFocus","queryString"]);p=c("useCometTypeaheadStateQueryString")(p);var q=p[0];p=p[1];var r=c("useSearchCometGlobalTypeaheadURLBuilderForKeywordEntry")(),s=c("useSearchCometGlobalSERPRouteUrlBuilder")(),t=c("useSearchCometHashtagRouteUrlBuilder")(),u=c("useCometTypeaheadNavigate")({tapPoint:"tap_search_bar"}),v=d("CometRelay").useRelayEnvironment(),w=c("useSearchCometRecentSearchDataSource")({fetchSTS:Boolean(c("qex")._("1563")),filter:"all"}),x=m(function(){return new(c("SearchCometGlobalTypeaheadDataSource"))({config:c("searchCometGlobalTypeahead.config"),recentDataSource:w,relayEnvironment:v})},[w,v]),y=c("useSearchCometTypeaheadBootstrapValidation")({bootstrapDatasource:x.getBootstrapKeywordsDataSource()}),z=y.validate;y=j(function(a){var b=a.reason,e=a.sessionID;a=a.shownEntries;z(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)})},[z]);var A=c("useCometSearchTypeaheadLoggingProvider")({context:"search_global",onSessionEnd:y});y=c("useCometSearchTypeaheadTraceProvider")(A);var B=c("useCometSearchRecentDataSourceContextDecorator")(x),C=m(function(){return[B,{decorate:c("withSearchCometGlobalTypeaheadFocusKeyboardShortcut")}]},[B]);l(function(){x.bootstrap()},[x]);var D=j(function(){var 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(A.getSessionID())});g&&g()},[A,g]),E=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=r({entry:a,queryString:q,typeaheadSessionID:A.getSessionID()});a=o(a,d,c,b);u(a)},[A,u,q,r]),F=j(function(a){var b=d("SearchCometInterestsDeepDiveUtil").getHashtagTag(a);d("SearchCometInterestsDeepDiveExperiments").hasTypeaheadRedirection()&&b!=null?b=t({entryPointAction:"SEARCH_BOX",exploreEntryPoint:q===""?3:4,hashtag:b,typeaheadSessionID:A.getSessionID()}):b=s({entryPointAction:"SEARCH_BOX",query:a,typeaheadSessionID:A.getSessionID()});u(b)},[t,A,u,q,s]),G=j(function(){x.clearQueryCache(),f&&f()},[x,f]),H=k(c("CometSearchEventEmitterContext")),I=H.subscribeToClearGlobalRecentSearches;l(function(){return I(function(){x.clearRecentSearches()})},[x,I]);H=c("useStable")(function(){return c("withSearchCometTypeaheadTraceEndReasonDecorator")(c("withSearchCometGlobalTypeaheadCleanStateOnEntrySelection")(c("withSearchCometTypeaheadBaseNavigationDecorator")(c("BaseTypeahead.react"))))});b=(b=n())!=null?b:h._(/*FBT_CALL*/"Search Facebook"/*FBT_CALL*/);var J=q==="";J=J?"grid":"listbox";return i.jsx(c("CometErrorBoundary.react"),{fallback:function(){return i.jsx(c("CometTypeaheadErrorFallback.react"),{})},children:i.jsx(H,babelHelpers["extends"]({},a,{dataSource:x,decorators:C,inputExtraProps:{hideIconOnFocus:!0,size:"large",xstyle:e},inputStartContent:a.inputStartContent,inputStrategyRenderer:c("SearchCometGlobalTypeaheadInputStrategy.react"),label:h._(/*FBT_CALL*/"Search Facebook"/*FBT_CALL*/),layoutStrategyRenderer:c("SearchCometGlobalTypeaheadLayoutContextualStrategy.react"),loggingProvider:A,onChange:p,onClose:G,onFocus:D,onPressEntry:E,onSelectFreeformQuery:F,placeholder:b,queryString:q,testid:void 0,traceProvider:y,viewRole:J,viewStrategyRenderer:c("SearchCometGlobalTypeaheadViewStrategy.react")}))})}a.displayName=a.name+" [from "+f.id+"]";function o(a,b,c,d){a=a.rawData;var e;if(a!=null&&a.type==="recent"&&c){e=a==null?void 0:(c=a.profile)==null?void 0:c.url}if(a!=null&&(a.type==="keyword"||a.type==="bootstrap"||a.type==="recent")&&d){e=a==null?void 0:(c=a.structuredInfo)==null?void 0:(d=c.direct_nav_result)==null?void 0:d.link_url}return(a=e)!=null?a:b}g["default"]=a}),98); __d("CometUsabilityMidTaskDialog.entrypoint",["CometUsabilityMidTaskDialogQuery$Parameters","JSResourceForInteraction","WebPixelRatio"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){var b=a.taskKey;a=a.taskRunID;return{queries:{root:{parameters:c("CometUsabilityMidTaskDialogQuery$Parameters"),variables:{scale:d("WebPixelRatio").get(),taskKey:b,taskRunID:a}}}}},root:c("JSResourceForInteraction")("CometUsabilityMidTaskDialog.react").__setRef("CometUsabilityMidTaskDialog.entrypoint")};g["default"]=a}),98); __d("CometUBTBorder.react",["fbt","react","useCometCallout"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function a(a){a=a.shouldShowTooltip;var b=c("useCometCallout")({arrowStyle:"inset",hasCloseButton:!1,label:h._(/*FBT_CALL*/"This border shows that the activity is in progress."/*FBT_CALL*/),type:"accent"},a);return i.jsxs(i.Fragment,{children:[a&&i.jsx("div",{className:"ehxjyohh gwi2wbwd kr520xx4 poy2od1o hock3oax",ref:b}),i.jsx("div",{className:"kavbgo14 kr520xx4 j9ispegn poy2od1o hzruof5a n7fi1qx3 rq0escxv i09qtzwb tadbi7ff e7uy4mr1 ci01ok7o hn2ycvuj"})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("handleCometUBTEndTask",["requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h=c("requireDeferred")("CometUBTLogger").__setRef("handleCometUBTEndTask");function a(a,b){return function(c,d){a({type:"SET_TASK_STATE",value:"ENDED"}),a({type:"SET_USER_RESULT",value:d}),a({type:"STOP_TIMER"}),h.onReady(function(a){return a.updateUserFlowOnEndTask(b,c,d)})}}g["default"]=a}),98); __d("CometUBTPulse.react",["fbt","ix","CometContextualLayerAnchorRoot.react","CometDraggableRoot.react","CometPressable.react","CometPulseEffect.react","CometSkittleIcon.react","CometUBTContext","CometUsabilityMidTaskDialog.entrypoint","fbicon","gkx","handleCometUBTEndTask","react","recoverableViolation","requireDeferred","useCometCallout","useCometEntryPointDialog"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=d("react").useContext,l=c("requireDeferred")("CometUBTLogger").__setRef("CometUBTPulse.react");function a(a){var b,e=a.setHideTooltip;a=a.tooltip;var f=k(c("CometUBTContext")),g=f==null?void 0:f.state;b=f==null?void 0:(b=f.state)==null?void 0:b.lightbulbText;b=c("useCometCallout")({arrowStyle:"inset",hasCloseButton:!1,label:a==="success"&&b!=null?b:h._(/*FBT_CALL*/"Tap this button when you're done, or if you want to leave or see the activity instructions."/*FBT_CALL*/),type:"accent"},a==="success"&&b!=null&&b!==""||a==="pulse");a=c("useCometEntryPointDialog")(c("CometUsabilityMidTaskDialog.entrypoint"),{taskKey:g==null?void 0:(a=g.taskInfo)==null?void 0:a.taskKey,taskRunID:g==null?void 0:(a=g.taskInfo)==null?void 0:a.taskRunID});var m=a[0],n=g==null?void 0:g.taskInfo;if(f==null||n==null)return c("recoverableViolation")("Context, task info or result is null when task state is active","quality_programs");var o=c("handleCometUBTEndTask")(f.dispatch,n);a=f.state.taskResult==="SUCCESS";var p=a&&c("gkx")("678680");return j.jsx("div",{className:"kavbgo14 e51yjl96 t30iovll poy2od1o",children:j.jsx(c("CometContextualLayerAnchorRoot.react"),{children:j.jsx(c("CometDraggableRoot.react"),{children:j.jsx("div",{className:"l9j0dhe7",ref:b,children:j.jsx(c("CometPulseEffect.react"),{pulseColor:p?"positive":"primary",children:function(a){return j.jsx(c("CometPressable.react"),{"aria-label":h._(/*FBT_CALL*/"Button to finish or leave an activity."/*FBT_CALL*/),onPress:function(){l.onReady(function(a){a.addPulseTapped()}),m({onEndTask:function(a){return o(f.state.taskResult,a)},taskInfo:n,taskResult:f.state.taskResult})},onPressIn:e,overlayDisabled:!0,children:j.jsx(c("CometSkittleIcon.react"),{color:p?"green":"blue",icon:p?d("fbicon")._(i("477814"),20):d("fbicon")._(i("499772"),20),ref:a,size:36})})}})})})})})}a.displayName=a.name+" [from "+f.id+"]";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