text: if (self.CavalryLogger) { CavalryLogger.start_js(["DnYJr"]); }
  
  __d("TypeaheadFacepileX.react",["React","joinClasses"],(function(a,b,c,d,e,f){var g=b("React");a=function(a){"use strict";babelHelpers.inheritsLoose(c,a);function c(){var c,d;for(var e=arguments.length,f=new Array(e),h=0;h<e;h++)f[h]=arguments[h];return(c=d=a.call.apply(a,[this].concat(f))||this,d.renderPic=function(a,c){var e="url("+d.props.photos[a]+")";return g.jsx("span",{className:b("joinClasses")("splitpic",c),style:{backgroundImage:e}},a)},d.renderPics=function(){var a=d.props.size;if(a>=3)return[d.renderPic(0,"leftpic"),d.renderPic(1,"toppic"),d.renderPic(2,"bottompic")];else return[d.renderPic(0,"leftpic"),d.renderPic(1)]},c)||babelHelpers.assertThisInitialized(d)}var d=c.prototype;d.render=function(){return g.jsx("span",babelHelpers["extends"]({},this.props,{className:b("joinClasses")(this.props.className,"splitpics clearfix"),children:this.renderPics()}))};return c}(g.Component);e.exports=a}),null);
  __d("SearchClientFunnelTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function(a,b,c,d,e,f){"use strict";a=function(){function a(){this.$1={}}var c=a.prototype;c.log=function(){b("GeneratedLoggerUtils").log("search_client_funnel:SearchClientFunnelLoggerConfig",this.$1,b("Banzai").BASIC)};c.logVital=function(){b("GeneratedLoggerUtils").log("search_client_funnel:SearchClientFunnelLoggerConfig",this.$1,b("Banzai").VITAL)};c.logImmediately=function(){b("GeneratedLoggerUtils").log("search_client_funnel:SearchClientFunnelLoggerConfig",this.$1,{signal:!0})};c.clear=function(){this.$1={};return this};c.getData=function(){return babelHelpers["extends"]({},this.$1)};c.updateData=function(a){this.$1=babelHelpers["extends"]({},this.$1,a);return this};c.setActionName=function(a){this.$1.action_name=a;return this};c.setLastState=function(a){this.$1.last_state=a;return this};c.setSelectedID=function(a){this.$1.selected_id=a;return this};c.setSelectedText=function(a){this.$1.selected_text=a;return this};c.setSelectedType=function(a){this.$1.selected_type=a;return this};c.setTypeaheadSid=function(a){this.$1.typeahead_sid=a;return this};c.setTypedQuery=function(a){this.$1.typed_query=a;return this};return a}();c={action_name:!0,last_state:!0,selected_id:!0,selected_text:!0,selected_type:!0,typeahead_sid:!0,typed_query:!0};e.exports=a}),null);
  __d("WorkAdminIntroductionNuxGating",["SimpleNUXMessage","SimpleNUXMessageTypes","WorkPermissions","gkx"],(function(a,b,c,d,e,f){"use strict";function a(){var a=b("WorkPermissions").permissions.includes("manage_users");if(!a)return!1;if(!b("gkx")("1165364"))return!1;if(b("gkx")("997564"))return!1;a=b("SimpleNUXMessage").hasUserSeenMessage(b("SimpleNUXMessageTypes").WORK_ACTIVATION_ADMIN_INTRODUCTION);return!a}e.exports={shouldShowAdminIntroductionNux:a}}),null);
  __d("WorkGalahadBadgingDispatcher",["ExplicitRegistrationDispatcher"],(function(a,b,c,d,e,f){"use strict";a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f<d;f++)e[f]=arguments[f];return(b=c=a.call.apply(a,[this].concat(e))||this,c.dispatch=c.dispatch.bind(babelHelpers.assertThisInitialized(c)),b)||babelHelpers.assertThisInitialized(c)}return b}(b("ExplicitRegistrationDispatcher"));e.exports=new a({strict:!0})}),null);
  __d("WorkGalahadBadgingActions",["WorkGalahadBadgingDispatcher","setImmediateAcrossTransitions"],(function(a,b,c,d,e,f){"use strict";a=function(a,c){b("setImmediateAcrossTransitions")(function(){b("WorkGalahadBadgingDispatcher").dispatch({type:"update_badge_count",section:a,count:c})})};e.exports={updateCount:a}}),null);
  __d("WorkGalahadDirectDispatcher",["ExplicitRegistrationDispatcher"],(function(a,b,c,d,e,f){"use strict";a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f<d;f++)e[f]=arguments[f];return(b=c=a.call.apply(a,[this].concat(e))||this,c.dispatch=c.dispatch.bind(babelHelpers.assertThisInitialized(c)),b)||babelHelpers.assertThisInitialized(c)}return b}(b("ExplicitRegistrationDispatcher"));e.exports=new a({strict:!0})}),null);
  __d("WorkGalahadDirectActions",["WorkGalahadDirectDispatcher"],(function(a,b,c,d,e,f){"use strict";a=function(a){b("WorkGalahadDirectDispatcher").dispatch({type:"initialise",unreadDirectStories:a})};c=function(a,c){b("WorkGalahadDirectDispatcher").dispatch({type:"updateStory",storyID:a,isUnread:c})};e.exports={initialise:a,updateStory:c}}),null);
  __d("WorkGalahadDirectStore",["FluxReduceStore","WorkGalahadDirectDispatcher"],(function(a,b,c,d,e,f){"use strict";a=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var c=b.prototype;c.getInitialState=function(){return{unreadDirectStories:new Set()}};c.reduce=function(a,b){switch(b.type){case"initialise":return babelHelpers["extends"]({},a,{unreadDirectStories:new Set(b.unreadDirectStories)});case"updateStory":if(b.isUnread)return babelHelpers["extends"]({},a,{unreadDirectStories:a.unreadDirectStories.add(b.storyID)});else{var c=new Set(a.unreadDirectStories);c["delete"](b.storyID);return babelHelpers["extends"]({},a,{unreadDirectStories:c})}default:return a}};c.getUnreadCount=function(){return this.getState().unreadDirectStories.size};return b}(b("FluxReduceStore"));a.__moduleID=e.id;e.exports=new a(b("WorkGalahadDirectDispatcher"))}),null);
  __d("WorkGalahadNavStore",["FluxReduceStore","WorkGalahadDispatcher"],(function(a,b,c,d,e,f){"use strict";var g=function(){return{lastNavigationIntentTimestamp:Date.now()}};a=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var c=b.prototype;c.getInitialState=function(){return{activeEntityKeys:[],loading:!1,selectedAppTabID:"home",lastNavigationIntentTimestamp:0,publicContentBanner:void 0,stackedChannelData:[],pendingTransitionState:void 0}};c.reduce=function(a,b){var c;switch(b.type){case"nav/markPendingTransition":return babelHelpers["extends"]({},a,g(),{pendingTransitionState:{appTabID:b.appTabID,entityKeys:b.entityKeys,uri:b.uri}});case"nav/setActiveEntityKeys":return this.$WorkGalahadNavStore1(a,b.entityKeys);case"nav/selectAppTabID":return this.$WorkGalahadNavStore2(a,b.appTabID);case"nav/pushStackedChannel":return babelHelpers["extends"]({},a,g(),{stackedChannelData:[].concat(a.stackedChannelData,[b.stackedChannelData])});case"nav/replaceStackedChannel":return babelHelpers["extends"]({},a,{stackedChannelData:[].concat(a.stackedChannelData.slice(0,-1),[b.stackedChannelData])});case"nav/dismissStackedChannel":return babelHelpers["extends"]({},a,g(),{stackedChannelData:a.stackedChannelData.slice(0,-1)});case"nav/dismissAllStackedChannels":return babelHelpers["extends"]({},a,g(),{stackedChannelData:[]});case"nav/startLoading":var d=babelHelpers["extends"]({},a,{loading:!0});if(b.uri===((c=d)==null?void 0:(c=c.pendingTransitionState)==null?void 0:c.uri)){d=this.$WorkGalahadNavStore1(d,((c=d.pendingTransitionState)==null?void 0:c.entityKeys)||d.activeEntityKeys);d=this.$WorkGalahadNavStore2(d,((c=d.pendingTransitionState)==null?void 0:c.appTabID)||d.selectedAppTabID)}return babelHelpers["extends"]({},d,{pendingTransitionState:void 0});case"nav/stopLoading":return babelHelpers["extends"]({},a,{loading:!1});case"nav/showPublicContentBanner":return babelHelpers["extends"]({},a,{publicContentBanner:b.html});case"nav/hidePublicContentBanner":return babelHelpers["extends"]({},a,{publicContentBanner:void 0});default:return a}};c.getActiveEntityKeys=function(){return[].concat(this.getState().activeEntityKeys)};c.getSelectedAppTabID=function(){return this.getState().selectedAppTabID};c.getNavigationKey=function(){return"navigation-key-"+this.getState().lastNavigationIntentTimestamp};c.getStackedChannelData=function(){var a=this.getState().stackedChannelData;return a[a.length-1]};c.isLoading=function(){return this.getState().loading};c.getPublicContentBanner=function(){return this.getState().publicContentBanner};c.$WorkGalahadNavStore1=function(a,b){return a.activeEntityKeys.length===b.length&&a.activeEntityKeys.every(function(a,c){return a===b[c]})?a:babelHelpers["extends"]({},a,{activeEntityKeys:[].concat(b)})};c.$WorkGalahadNavStore2=function(a,b){return a.selectedAppTabID!==b?babelHelpers["extends"]({},a,g(),{selectedAppTabID:b,stackedChannelData:[]}):babelHelpers["extends"]({},a,g())};return b}(b("FluxReduceStore"));a.__moduleID=e.id;e.exports=new a(b("WorkGalahadDispatcher"))}),null);
  __d("WorkGalahadBadging",["SubscriptionsHandler","WorkAdminIntroductionNuxGating","WorkGalahadBadgingActions","WorkGalahadDirectActions","WorkGalahadDirectStore","WorkGalahadNavStore"],(function(a,b,c,d,e,f){"use strict";var g=new(b("SubscriptionsHandler"))();function a(a){b("WorkGalahadDirectActions").initialise(a);a=function(){if(b("WorkGalahadNavStore").getSelectedAppTabID()=="direct")return;b("WorkGalahadBadgingActions").updateCount("direct",b("WorkGalahadDirectStore").getUnreadCount())};a();g.addSubscriptions(b("WorkGalahadDirectStore").addListener(a))}function c(){b("WorkAdminIntroductionNuxGating").shouldShowAdminIntroductionNux()&&b("WorkGalahadBadgingActions").updateCount("admin_panel",1)}e.exports={initDirect:a,initAdminPanel:c}}),null);
  __d("WIGBaseGlimmer.react",["BaseGlimmer.react"],(function(a,b,c,d,e,f){"use strict";e.exports=b("BaseGlimmer.react")}),null);
  __d("WIGBaseLoadingStateElement.react",["BaseLoadingStateElement.react"],(function(a,b,c,d,e,f){"use strict";e.exports=b("BaseLoadingStateElement.react")}),null);
  __d("WorkGalahadBadgingStore",["FluxReduceStore","WorkGalahadBadgingDispatcher","getObjectValues"],(function(a,b,c,d,e,f){"use strict";function g(a){return b("getObjectValues")(a.badgeCounts).reduce(function(a,b){return a+b},0)}a=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var c=b.prototype;c.getInitialState=function(){return{badgeCounts:{}}};c.reduce=function(a,b){var c;switch(b.type){case"update_badge_count":return babelHelpers["extends"]({},a,{badgeCounts:babelHelpers["extends"]({},a.badgeCounts,(c={},c[b.section]=b.count,c))});default:return a}};c.getTotalBadgeCount=function(){return g(this.getState())};c.getBadgeCount=function(a){return(a=this.getState().badgeCounts[a])!=null?a:0};c.getBadgeCounts=function(){return babelHelpers["extends"]({},this.getState().badgeCounts)};return b}(b("FluxReduceStore"));a.__moduleID=e.id;e.exports=new a(b("WorkGalahadBadgingDispatcher"))}),null);
  __d("WorkGalahadLocalUISettingsDispatcher",["ExplicitRegistrationDispatcher"],(function(a,b,c,d,e,f){"use strict";a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f<d;f++)e[f]=arguments[f];return(b=c=a.call.apply(a,[this].concat(e))||this,c.dispatch=c.dispatch.bind(babelHelpers.assertThisInitialized(c)),b)||babelHelpers.assertThisInitialized(c)}return b}(b("ExplicitRegistrationDispatcher"));e.exports=new a({strict:!0})}),null);
  __d("WorkGalahadNotificationsFilters",["keyMirror"],(function(a,b,c,d,e,f){a=b("keyMirror")({ALL:null,UNREAD:null,PRIORITY:null,CONVERSATIONS:null,PINNED_GROUPS:null,MULTI_COMPANY_GROUPS:null});e.exports=a}),null);
  __d("WorkGalahadLocalUISettingsStore",["FluxReduceStore","WorkGalahadLocalUISettingsDispatcher","WorkGalahadLocalUISettingsHelper","WorkGalahadNotificationsFilters","objectKeys"],(function(a,b,c,d,e,f){"use strict";a=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.getInitialState=function(){return{notifications:{filter:b("WorkGalahadLocalUISettingsHelper").getNotificationsFilterFromStorage()}}};d.reduce=function(a,c){switch(c.type){case"notifications/set_filter":b("WorkGalahadLocalUISettingsHelper").saveNotificationsFilterToStorage(c.filter);return babelHelpers["extends"]({},a,{notifications:babelHelpers["extends"]({},a.notifications,{filter:c.filter})});default:return a}};d.getNotificationsFilter=function(){var a=this.getState().notifications.filter;return!b("objectKeys")(b("WorkGalahadNotificationsFilters")).includes(a)?b("WorkGalahadNotificationsFilters").ALL:a};return c}(b("FluxReduceStore"));a.__moduleID=e.id;e.exports=new a(b("WorkGalahadLocalUISettingsDispatcher"))}),null);
  __d("WorkGalahadLocalUISettingsActions",["WorkGalahadLocalUISettingsDispatcher"],(function(a,b,c,d,e,f){"use strict";function a(a){b("WorkGalahadLocalUISettingsDispatcher").dispatch({type:"notifications/set_filter",filter:a})}e.exports={setNotificationsFilter:a}}),null);
  __d("WorkGalahadLocalUISettingsHelper",["FluxHooks","MercuryFilters.re","WebStorage","WorkGalahadLocalUISettingsActions","WorkGalahadLocalUISettingsStore","WorkGalahadNotificationsFilters"],(function(a,b,c,d,e,f){"use strict";var g,h=b("FluxHooks").useFluxStore,i="galahadNotificationFilter",j="galahadChatsFilter",k="geminiComposerMarkdownSprout";function l(){return b("WorkGalahadLocalUISettingsStore").getNotificationsFilter()}a={useNotificationFilterState:function(){var a=h(b("WorkGalahadLocalUISettingsStore"),l);return[a,function(a){b("WorkGalahadLocalUISettingsActions").setNotificationsFilter(a)}]},getNotificationsFilterFromStorage:function(){var a=(g||(g=b("WebStorage"))).getLocalStorageForRead();if(a){a=a.getItem(i);if(a!=null&&b("WorkGalahadNotificationsFilters")[a]!=null)return b("WorkGalahadNotificationsFilters")[a]}return b("WorkGalahadNotificationsFilters").ALL},saveNotificationsFilterToStorage:function(a){(g||(g=b("WebStorage"))).setItemGuarded(g.getLocalStorage(),i,a)},getChatsFilterFromStorage:function(){var a=(g||(g=b("WebStorage"))).getLocalStorageForRead();if(a){a=a.getItem(j);if(a!=null&&b("MercuryFilters.re").isSupportedFilter(a))return a}return b("MercuryFilters.re").all},saveChatsFilterToStorage:function(a){(g||(g=b("WebStorage"))).setItemGuarded(g.getLocalStorage(),j,a)},getComposerMarkdownSettingFromStorage:function(){var a=(g||(g=b("WebStorage"))).getLocalStorageForRead();if(a){a=a.getItem(k);if(a!=null)return a==="true"}return!1},saveComposerMarkdownSettingToStorage:function(a){(g||(g=b("WebStorage"))).setItemGuarded(g.getLocalStorage(),k,a?"true":"false")}};e.exports=a}),null);
  __d("WorkGalahadChatChannelStore",["FluxReduceStore","MercuryFilters.re","MessagingTag","WorkGalahadDispatcher","WorkGalahadLocalUISettingsHelper"],(function(a,b,c,d,e,f){"use strict";a=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.getInitialState=function(){return{filter:b("WorkGalahadLocalUISettingsHelper").getChatsFilterFromStorage(),folder:b("MessagingTag").INBOX}};d.getFolder=function(){return this.getState().folder};d.getFilter=function(){return this.getState().filter};d.reduce=function(a,c){switch(c.type){case"galahad/chat_change_folder":return babelHelpers["extends"]({},a,{folder:c.folder});case"galahad/chat_change_filter":b("WorkGalahadLocalUISettingsHelper").saveChatsFilterToStorage(String(c.filter));return babelHelpers["extends"]({},a,{filter:c.filter});default:return a}};return c}(b("FluxReduceStore"));a.__moduleID=e.id;e.exports=new a(b("WorkGalahadDispatcher"))}),null);
  __d("WorkGalahadNavActions",["URI","WorkGalahadBeeperActions","WorkGalahadDispatcher"],(function(a,b,c,d,e,f){"use strict";var g;function a(a){var c=a.appTabID,d=a.entityKeys;a=a.uri;b("WorkGalahadDispatcher").dispatch({type:"nav/markPendingTransition",appTabID:c,entityKeys:d,uri:new(g||(g=b("URI")))(a).getPath()})}function c(a){b("WorkGalahadDispatcher").dispatch({type:"nav/setActiveEntityKeys",entityKeys:a})}function d(a){b("WorkGalahadDispatcher").dispatch({type:"nav/selectAppTabID",appTabID:a}),b("WorkGalahadBeeperActions").clearBeepsForTabID(a)}function f(a){b("WorkGalahadDispatcher").dispatch({type:"nav/pushStackedChannel",stackedChannelData:a})}function h(a){b("WorkGalahadDispatcher").dispatch({type:"nav/replaceStackedChannel",stackedChannelData:a})}function i(){b("WorkGalahadDispatcher").dispatch({type:"nav/dismissStackedChannel"})}function j(){b("WorkGalahadDispatcher").dispatch({type:"nav/dismissAllStackedChannels"})}function k(a){b("WorkGalahadDispatcher").dispatch({type:"nav/startLoading",uri:new(g||(g=b("URI")))(a).getPath()})}function l(){b("WorkGalahadDispatcher").dispatch({type:"nav/stopLoading"})}function m(a){b("WorkGalahadDispatcher").dispatch({type:"nav/showPublicContentBanner",html:a})}function n(){b("WorkGalahadDispatcher").dispatch({type:"nav/hidePublicContentBanner"})}e.exports={markPendingTransition:a,setActiveEntityKeys:c,selectAppTabID:d,pushStackedChannel:f,replaceStackedChannel:h,dismissStackedChannel:i,dismissAllStackedChannels:j,startLoading:k,stopLoading:l,showPublicContentBanner:m,hidePublicContentBanner:n}}),null);
  __d("WorkGalahadQuickChatStore",["FluxReduceStore","WorkGalahadDispatcher"],(function(a,b,c,d,e,f){"use strict";a=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var c=b.prototype;c.getInitialState=function(){return{threadID:null,composing:!1,showInbox:!1}};c.reduce=function(a,b){switch(b.type){case"quickChat/hide":return babelHelpers["extends"]({},a,{composing:!1,showInbox:!1,threadID:null});case"quickChat/showCompose":return babelHelpers["extends"]({},a,{composing:!0});case"quickChat/showInbox":return babelHelpers["extends"]({},a,{showInbox:!0,composing:!1,threadID:null});case"quickChat/hideInbox":return babelHelpers["extends"]({},a,{showInbox:!1});case"quickChat/close":return babelHelpers["extends"]({},a,{threadID:null});case"quickChat/openThreadID":return babelHelpers["extends"]({},a,{threadID:b.threadID,showInbox:!1});default:return a}};c.getActiveThreadID=function(){return this.getState().threadID};c.isShowingConversation=function(){return this.getState().threadID!=null};c.isComposing=function(){return this.getState().composing};c.isShowingInbox=function(){return this.getState().showInbox};return b}(b("FluxReduceStore"));a.__moduleID=e.id;e.exports=new a(b("WorkGalahadDispatcher"))}),null);
  __d("WorkGalahadSearchStore",["FluxReduceStore","WorkGalahadDispatcher"],(function(a,b,c,d,e,f){"use strict";a=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var c=b.prototype;c.getInitialState=function(){return{typeaheadListProps:null,query:null}};c.reduce=function(a,b){switch(b.type){case"galahad/setTypeaheadListProps":return babelHelpers["extends"]({},a,{typeaheadListProps:b.listProps});case"galahad/setQuery":return babelHelpers["extends"]({},a,{query:b.query});default:return a}};c.getTypeaheadListProps=function(){return this.getState().typeaheadListProps};c.getQuery=function(){return this.getState().query};return b}(b("FluxReduceStore"));a.__moduleID=e.id;e.exports=new a(b("WorkGalahadDispatcher"))}),null);
  __d("WorkKnowledgeDispatcher",["ExplicitRegistrationDispatcher"],(function(a,b,c,d,e,f){"use strict";a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f<d;f++)e[f]=arguments[f];return(b=c=a.call.apply(a,[this].concat(e))||this,c.dispatch=c.dispatch.bind(babelHelpers.assertThisInitialized(c)),b)||babelHelpers.assertThisInitialized(c)}return b}(b("ExplicitRegistrationDispatcher"));e.exports=new a({strict:!0})}),null);
  __d("WorkKnowledgeStore",["FluxReduceStore","ImmutableRecordWithV4Types","WorkKnowledgeDispatcher","addToSet","removeFromSet"],(function(a,b,c,d,e,f){"use strict";a=b("ImmutableRecordWithV4Types").Record;c={isEditingHomePage:!1,expandedItemKeys:new Set(),leftNavLoaded:!1};var g=a(c);d=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.getInitialState=function(){return g()};d.$WorkKnowledgeStore1=function(a,c){return a.get("expandedItemKeys").has(c)?a.update("expandedItemKeys",function(a){return b("removeFromSet")(a,c)}):this.$WorkKnowledgeStore2(a,c)};d.$WorkKnowledgeStore2=function(a,c){return a.update("expandedItemKeys",function(a){return b("addToSet")(a,c)})};d.hasExpandedItemsKey=function(a){return this.getState().expandedItemKeys.has(a)};d.reduce=function(a,b){switch(b.type){case"knowledge/setIsEditingHomePage":return a.set("isEditingHomePage",b.isEditing);case"knowledge/toggleExpanded":return this.$WorkKnowledgeStore1(a,b.id);case"knowledge/setExpanded":return this.$WorkKnowledgeStore2(a,b.id);default:return a}};return c}(b("FluxReduceStore"));d.__moduleID=e.id;e.exports=new d(b("WorkKnowledgeDispatcher"))}),null);
  __d("WorkGalahadFluxEnv",["invariant","requireCond","WorkGalahadBadging","WorkGalahadBadgingDispatcher","WorkGalahadBadgingStore","WorkGalahadBeeperActions","WorkGalahadBeeperDispatcher","WorkGalahadBeeperStore","WorkGalahadChatChannelStore","WorkGalahadDirectDispatcher","WorkGalahadDirectStore","WorkGalahadDispatcher","WorkGalahadLocalUISettingsDispatcher","WorkGalahadLocalUISettingsStore","WorkGalahadNavActions","WorkGalahadNavStore","WorkGalahadQuickChatStore","WorkGalahadSearchStore","WorkKnowledgeDispatcher","WorkKnowledgeStore","cr:1327167"],(function(a,b,c,d,e,f,g){"use strict";function h(a){a.defaultAppTabID;a=[b("WorkGalahadChatChannelStore"),b("WorkGalahadNavStore"),b("WorkGalahadSearchStore"),b("WorkGalahadQuickChatStore"),b("cr:1327167")].filter(Boolean);b("WorkGalahadDispatcher").explicitlyRegisterStores(a);b("WorkGalahadBeeperDispatcher").explicitlyRegisterStores([b("WorkGalahadBeeperStore")]);b("WorkGalahadBadgingDispatcher").explicitlyRegisterStores([b("WorkGalahadBadgingStore")]);b("WorkGalahadLocalUISettingsDispatcher").explicitlyRegisterStores([b("WorkGalahadLocalUISettingsStore")]);b("WorkGalahadDirectDispatcher").explicitlyRegisterStores([b("WorkGalahadDirectStore")]);b("WorkKnowledgeDispatcher").explicitlyRegisterStores([b("WorkKnowledgeStore")])}function i(a){var c=a.beeperConfig,d=a.defaultAppTabID,e=a.entityKeys;a=a.unreadDirectStories;b("WorkGalahadNavActions").setActiveEntityKeys(e);b("WorkGalahadNavActions").selectAppTabID(d);b("WorkGalahadBadging").initAdminPanel();a!=null&&b("WorkGalahadBadging").initDirect(a);c!=null&&(b("WorkGalahadBeeperActions").setSoundEnabled(c.soundEnabled),b("WorkGalahadBeeperActions").setSoundPath(c.soundPath))}var j=[],k=!1;function l(){while(j.length>0){var a=j.shift();a()}}a={init:function(a){k&&g(0,11757),k=!0,h(a),i(a),l()},queueEvent:function(a){!k?j.push(a):a()}};e.exports=a}),null);
  __d("WorkGalahadSearchActions",["WorkGalahadDispatcher","WorkGalahadFluxEnv"],(function(a,b,c,d,e,f){"use strict";function a(a){b("WorkGalahadDispatcher").dispatch({type:"galahad/setTypeaheadListProps",listProps:a})}function c(a){b("WorkGalahadFluxEnv").queueEvent(function(){b("WorkGalahadDispatcher").dispatch({type:"galahad/setQuery",query:a})})}e.exports={setTypeaheadListProps:a,setQuery:c}}),null);
  __d("WorkAboutOrgSection",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({ADMINISTRATORS:"administrators",OVERVIEW:"overview"})}),null);
  __d("WorkAdminSection",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({ACCESS_REQUESTS:"access_requests",ADMINISTRATORS:"administrators",APPROVALS:"approvals",APPS:"apps",BULK_DEACTIVATE:"bulk_deactivate",BULK_TASKS:"bulk_tasks",BUSINESS_DETAILS:"business_details",CAMPAIGNS:"campaigns",COMMUNITIES_MANAGER:"communities_manager",CONTENT_MANAGER:"content_manager",DEVICES:"devices",DIRECT_SUPPORT:"direct_support",DOMAINS:"domains",DOWNLOAD_APPS:"download_apps",EMPLOYEES_BULK_ACTION:"employees_bulk_action",EMPLOYEES_MANAGER:"employees_manager",FRONTLINE:"frontline",FRONTLINE_MANAGERS:"frontline_managers",FRONTLINE_MEMBERSHIP:"frontline_membership",GROUPS_MANAGER:"groups_manager",IMPORT_GROUPS:"import_groups",INSIGHTS:"insights",INTEGRATIONS_DATA:"integrations_data",INVESTIGATIONS:"investigations",M10N_STAND:"m10n_stand",MARK_AS_IMPORTANT:"mark_as_important",PAYMENT_INFORMATION:"payment_information",PERMISSIONING:"permissioning",POST_INSIGHTS:"post_insights",PROFILE_BADGES:"profile_badges",PROFILE_SETTINGS:"profile_settings",RESELLER:"reseller",RESELLER_PAYMENTS:"reseller_payments",REVIEW_PLANS:"review_plans",SAFETY_CHECK:"safety_check",SAFETY_CHECK_SETTINGS:"safety_check_settings",SECURITY_CENTER:"security_center",SETTINGS:"settings",SETUP_GROUPS:"setup_groups",SETUP_INTRODUCTION:"setup_introduction",SETUP_INVITES:"setup_invites",SETUP_USERS:"setup_users",SPACES:"spaces",SURVEYS:"surveys",USER_SETS:"user_sets",WHATS_NEW:"whats_new"})}),null);
  __d("WorkResellerConsoleSection",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({CUSTOMERS:"customers",CUSTOMER_DETAILS:"customer",PAYMENTS:"payments",BILLING:"billing"})}),null);
  __d("WorkGalahadEntityKey",["invariant","WorkAboutOrgSection","WorkAdminSection","WorkResellerConsoleSection","enumUtils","gkx"],(function(a,b,c,d,e,f,g){"use strict";var h={DIFFERENT:0,EQUAL:1,SUBKEY:2};function i(a,b){a=a.toLowerCase();b=b.toLowerCase();return a===b?h.EQUAL:a.indexOf(b)===0&&a[b.length]==="/"?h.SUBKEY:h.DIFFERENT}function j(a,b){var c=!1;for(var d=0;d<a.length;d++){var e=i(a[d],b);if(e===h.EQUAL)return h.EQUAL;else e===h.SUBKEY&&(c=!0)}return c?h.SUBKEY:h.DIFFERENT}var k=(a={},a.integrations_data="apps",a.profile_settings="settings",a.domains="settings",a.frontline="frontline_membership",a.frontline_managers="frontline_membership",a.user_sets="employees_manager",a.business_details="payment_information",a.review_plans="payment_information",a),l={forFeed:function(a){return m("feed",[a])},forCall:function(){return"call"},forVC:function(){return"vc"},forMeeting:function(){return"meeting"},forHashtag:function(a){return a==null?"hashtag":m("hashtag",[a])},forGroupsExplorer:function(a){return m("groups_explorer",[a])},forDirectPosts:function(){return"direct_posts"},forPeopleDirectory:function(){return"org_search"},forTimelinePermalink:function(){return"permalink"},forDirectory:function(a){return m("directory",[a])},forActivityLog:function(){return"activity_log"},forTeamFeed:function(){return"team_feed"},forUser:function(a,b,c){return m("user",[a,b,c])},forPage:function(a,b){return m("page",[a,b])},forGroup:function(a,b,c){return m("groups",[a,b,c])},forGroupPost:function(a,b){return m("groups",[a,"permalink",b])},forEntity:function(a,b){switch(a){case"event":return l.forEvent(b);case"group":return l.forGroup(b);case"page":return l.forPage(b);case"user":return l.forUser(b);default:return l.forFeed()}},forNotif:function(){return"notifications"},forNotifID:function(a){return"notifications/"+a},forApprovals:function(a){return m("approvals",[a])},forApprovalsTab:function(a){return m("approvals",[a])},forAdminPanelSection:function(a,b){if(a!=null&&k[a]){var c=k[a];return m("admin_panel",[c,a,b])}return m("admin_panel",[a,b])},forAboutOrganization:function(a){return m("organization",[a])},forChat:function(a){return m("chat",[a])},forChatFilesTab:function(a){return a==null?m("chat",[]):m("chat",[a,"files"])},forFiles:function(a){return a==null?"files":m("files",[a])},forGroupFolder:function(a,b){return m("groups",[a,"FILES",b])},forSearch:function(a){return m("search",[a])},forEvent:function(a,c){return b("gkx")("1121001")?m("event",[a,c]):m("events",[a])},forEventTab:function(a){return b("gkx")("1121001")?m("event_dashboard",[a]):m("events",[a])},forSaved:function(a){return m("saved",[a])},forCommunityResources:function(){return"community_resources"},forKnowledge:function(){return"knowledge"},forKnowledgeID:function(a){return m("knowledge",[a])},forTeam:function(a){return m("teams",[a])},forTeamDirectory:function(){return"team_directory"},forTrending:function(){return"trending"},forTasks:function(){return"personalTasks"},forMigration:function(){return"migration"},forNext:function(){return"next"},forOrgNavigator:function(){return"org"},forNotes:function(a){return m("notes",[a])},forIntegrations:function(){return"integrations"},forPYSF:function(){return"follow_coworkers"},forForms:function(a){return m("forms",[a])},forFormsTab:function(a){return m("forms",[a])},forSettings:function(){return"settings"},forResellerConsole:function(a,b){return m("reseller_console",[a,b])},forHelpdesk:function(){return"helpdesk"},forHelpdeskTab:function(a){return m("helpdesk",[a])},forDeviceLogin:function(){return"device_login"},forDataInterchange:function(a){return m("data_interchange",[a])},forAppSwitcher:function(){return"app_switcher"},containsKey:function(a,b){return j(a,b)===h.EQUAL},containsSubkey:function(a,b){return j(a,b)===h.SUBKEY},containsKeyOrSubkey:function(a,b){return j(a,b)!==h.DIFFERENT},getProfileID:function(a){var b=null;for(var c=0;c<a.length;c++){var d=a[c].split("/");(d[0]==="page"||d[0]==="user")&&(b=d[1])}return b},getPageID:function(a){var b=null;for(var c=0;c<a.length;c++){var d=a[c].split("/");d[0]==="page"&&(b=d[1])}return b},getUserID:function(a){var b=null;for(var c=0;c<a.length;c++){var d=a[c].split("/");d[0]==="user"&&(b=d[1])}return b},getGroupID:function(a){var b=null;for(var c=0;c<a.length;c++){var d=a[c].split("/");d[0]==="groups"&&(b=d[1])}return b},getThreadID:function(a){var b=a.find(function(a){return a.startsWith("chat")});if(b!=null)return b.split("/")[1];b=a.find(function(a){return(a.startsWith("groups/")||a.startsWith("user/"))&&a.split("/")[2]==="WORK_CHAT"});return b!=null?b.split("/")[3]:null},getKnowledgeID:function(a){var b=null;for(var c=0;c<a.length;c++){var d=a[c].split("/");d[0]==="knowledge"&&d.length>1&&(b=d[1])}return b},getEventID:function(a){var b=null;for(var c=0;c<a.length;c++){var d=a[c].split("/");d[0]==="event"&&(b=d[1])}return b},getHashtagData:function(a){var b=null,c=null;for(var d=0;d<a.length;d++){var e=a[d].split("/");e[0]==="hashtag"&&(b=e[1],c=parseInt(e[2],10))}return[(e=b)!=null?e:"??",(a=c)!=null?a:0]},getGroupView:function(a){var b=null;for(var c=0;c<a.length;c++){var d=a[c].split("/");d[0]==="groups"&&(b=d[2])}return b},getProfileView:function(a){var b=null;for(var c=0;c<a.length;c++){var d=a[c].split("/");(d[0]==="user"||d[0]==="page")&&(b=d[2])}return b},getAdminPanelSection:function(a){for(var c=0;c<a.length;c++){var d=a[c].split("/");if(d[0]==="admin_panel")return b("enumUtils").assert(d[1],b("WorkAdminSection"))}return null},getResellerConsoleSection:function(a){for(var c=0;c<a.length;c++){var d=a[c].split("/");if(d[0]==="reseller_console"&&d.length>1)return b("enumUtils").assert(d[1],b("WorkResellerConsoleSection"))}return null},getResellerCustomerId:function(a){for(var b=0;b<a.length;b++){var c=a[b].split("/");if(c[0]==="reseller_console"&&c.length>2)return c[2]}return null},getPermalinkID:function(a){var b=null;for(var c=0;c<a.length;c++){var d=a[c].split("/");d.length>=4&&d[0]==="groups"&&d[2]==="permalink"&&(b=d[3])}return b},getTeamID:function(a){for(var b=0;b<a.length;b++){var c=a[b].split("/");if(c[0]==="teams"&&c.length>1)return c[1]}return null},getSearchEdgeType:function(a){for(var b=0;b<a.length;b++){var c=a[b].split("/");if(c[0]==="search"&&c.length>1)return c[1]}return null},getAboutOrgSection:function(a){for(var c=0;c<a.length;c++){var d=a[c].split("/");if(d[0]==="organization"&&d.length>1)return b("enumUtils").assert(d[1],b("WorkAboutOrgSection"))}return null},serialize:function(a){return a},fromCometEntityKey:function(a){var b=a.entity_type;if(b==null)return null;a=[a.entity_id,a.section,a.secondary_entity_id].filter(Boolean);return m(b,a)},fromString_DO_NOT_USE:function(a){return a}};function m(a,b){a=a;var c=!1;for(var b=b,d=Array.isArray(b),e=0,b=d?b:b[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var f;if(d){if(e>=b.length)break;f=b[e++]}else{e=b.next();if(e.done)break;f=e.value}f=f;f!==void 0?(c&&g(0,832),a+="/"+f):c=!0}return a}e.exports=l}),null);
  __d("WorkGalahadSearchOverlayEventEmitter",["EventEmitter"],(function(a,b,c,d,e,f){"use strict";a=new(b("EventEmitter"))();e.exports=a}),null);
  __d("GroupView",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({ADMINS:"admins",ADMINIFCAN:"_admin_if_can_",ADMIN_ACTIVITIES:"admin_activities",ANNOUNCEMENTS:"announcements",BESTOF:"bestof",AUTO_APPROVE_REQUESTS:"auto_approve_requests",BADGE_MEMBER_LIST:"badge_member_list",BLOCKED:"blocked",BROWSE_CATEGORIES:"browsecategories",WORK_CHAT:"work_chat",CREATEDOC:"createdoc",DRAFT_POSTS:"draft_posts",DRAFTED_FOR:"drafted_for",DRAFTED_FOR_OTHERS:"drafted_for_others",FIND_PLAYERS:"find_players",FRIENDS:"friends",FOLLOWEES:"followees",INSIGHTS:"insights",MULTI_COMPANY_COMPANIES:"companies",BROWSE_MEMBER_BADGES:"browse_member_badges",MANAGE_MEMBER_BADGES:"manage_member_badges",MEMBER_BADGE:"member_badge",SETUP_RULES:"setup_rules",MEMBERSHIP_QUESTIONS:"membership_questions",MEMBERS:"members",MEMBERS_WITH_THINGS_IN_COMMON:"members_with_things_in_common",MEMBERSHIP_CRITERIA_ANSWER:"membership_criteria_answer",DOC:"doc",EDIT:"edit",EVENTS:"events",FILES:"files",INTEGRATIONS:"integrations",FOR_SALE_SEARCH:"for_sale_search",GAMES:"games",GROUP:"group",JOIN:"_join_",SUBGROUPS:"groups",MY_GROUPS:"my_groups",CHATS:"chats",INFO:"info",LEARNING_CONTENT:"learning_content",LEAVE:"leave",LINKED_GROUP_REQUESTS:"linked_group_requests",LIVING_ROOM:"living_room",LOCAL_MEMBERS:"local_members",NOTIFICATIONS:"notifications",PENDING:"pending",PERMALINK:"permalink",PHOTOS:"photos",PINNED:"pinned",PROMOTION_HOME:"promotion_home",RECENTLY_JOINED:"recently_joined",RECOMMENDED:"suggestions",RECOMMENDATIONS:"recommendations",REPORTED:"reported",REPORTED_FACEBOOK:"reported_facebook",REQUESTS:"requests",REQUIRE_POST_APPROVAL_MEMBERS:"require_post_approval_members",SAVED:"saved",SEARCH:"search",SCHEDULED:"scheduled",SPORTS_TEAM_SCHEDULE:"sports_team_schedule",SUPPORT:"support",TASKS:"tasks",TOPICS:"topics",TRUSTED_MEMBERS:"trusted_members",POST_TAGS:"post_tags",POST_TAGS_LIST:"post_tags_list",INVITED:"invited",YOUR_POSTS:"yourposts",FORSALE_POSTS:"forsaleposts",VIDEOS:"videos",WALL:"",FEED:"feed",COMMUNITY_TRENDING:"community_trending",ABOUT:"about",RULES:"rules",PAGE_MEMBERS:"page_members",MENTORSHIP_APPLICATION:"mentorship_application",ACTIVE_MEMBERS:"active_members",UNAVAILABLE_ACCOUNTS:"unavailable_accounts",MOST_ACTIVE:"most_active",GROUPVERSARY:"groupversary",GROUPVERSARIES:"groupversaries",MEETUPS:"meetups",APP_INSTALLS:"app_installs",FLAGGED:"flagged",ALERTED:"alerted",SAFETY_HUB:"safety_hub",BUY_SELL_GROUP_DISCUSSIONS:"buy_sell_group_discussions",JOBS:"jobs",GROUP_QUALITY:"group_quality",WORK_RECENTLY_DEACTIVATED:"work_recently_deactivated",BUY_SELL_GROUP_INVENTORY:"buy_sell_group_inventory",WATCH_PARTIES:"watch_parties",COLLECTIONS:"collections",FUNDRAISERS:"fundraisers",FILES_SEARCH:"files_search",SUPPORTERS:"supporters",ALL_SUPPORTERS:"all_supporters",LONGEST_SUPPORTERS:"longest_supporters",NEW_SUPPORTERS:"new_supporters",CANDIDATES:"candidates",WORK_LEARNING:"work_learning",WORK_SHIFT_SWAPPING:"work_shift_swapping",SEARCH_NAV:"search_nav",VR_EVENTS:"vr_events",PENDING_ADMINSHIP:"pending_adminship",ALL_MEMBERS:"all_members",FOLLOWERS:"followers",JOINABLE_VIDEO_CHATS:"joinable_video_chats"})}),null);
  __d("TimelineAppSectionType",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({APP:0,ABOUT:1,FRIENDS:2,PHOTOS:3,LIKES:4,MAP:5,SUBSCRIPTIONS:6,SUBSCRIBERS:7,PAGE_LIKES:8,NOTES:9,EVENTS:10,BOOKS:11,MUSIC:12,TV_SHOWS:13,MOVIES:14,FITNESS:15,CONTACT:16,GROUPS:17,SPORTS:18,GAMES:19,SAVED_FOR_LATER:20,REVIEWS:21,AT_WORK:22,VIDEOS:23,SAVE_LISTS:24,TASKS:25,FUN_FACT_ANSWERS:26,SPACES:27,STORIES_ARCHIVE:28,WORK_CHAT:29,TIMELINE:30,WORK_FILES:31,SHOP:32})}),null);
  __d("WorkGalahadLayoutUtils",["GroupView","TimelineAppSectionType","WorkGalahadEntityKey","gkx","keyMirror"],(function(a,b,c,d,e,f){"use strict";var g=b("keyMirror")(b("TimelineAppSectionType")),h=b("keyMirror")({FEED:null,RESELLER_CONSOLE:null,EVENT:null,EVENTS:null,EVENTS_DASHBOARD:null,SAVED:null,GROUP:null,USER:null,PAGE:null,GROUP_CHAT:null,ADMIN_PANEL:null,COMMUNITY_RESOURCES:null,SEARCH:null,GROUPS_BROWSE:null,TEAMS:null,TEAM_DIRECTORY:null,PEOPLE_DIRECTORY:null,DIRECT_POSTS:null,MIGRATION:null,NEXT:null,INTEGRATIONS:null,APPROVALS:null,ABOUT_ORGANIZATION:null,NOTES:null,FORMS:null,ACTIVITY_LOG:null,ORG_CHART:null,SETTINGS:null,FOLLOW_COWORKERS:null,TRENDING:null,TASKS:null,KNOWLEDGE:null,DIRECTORY:null,HELPDESK:null,DEVICE_LOGIN:null,DATA_INTERCHANGE:null,HASHTAG:null}),i=b("keyMirror")({FEED:null,USER:null,GROUP:null,CHAT:null,NEXT:null,KNOWLEDGE:null,EVENT:null,HELPDESK:null,WHATS_NEW:null,DEVICE_LOGIN:null,HASHTAG:null}),j=b("gkx")("1361277");function k(a){if(j)return!0;var c=["EVENTS","PHOTOS","VIDEOS","RECOMMENDATIONS","ADMIN","INSIGHTS","MENTORSHIP","MENTORSHIP_APPLICATION",b("GroupView").PENDING,b("GroupView").POST_TAGS_LIST,b("GroupView").TOPICS,b("GroupView").SCHEDULED,b("GroupView").DRAFT_POSTS,b("GroupView").DRAFTED_FOR,b("GroupView").DRAFTED_FOR_OTHERS,b("GroupView").REQUESTS,b("GroupView").REPORTED];b("gkx")("809398")||c.push("FILES");return!c.map(function(a){return a.toLowerCase()}).includes(a.toLowerCase())}function l(a){if(j)return!0;var b=[g.WORK_CHAT,g.ABOUT,g.FRIENDS,g.GROUPS,g.PHOTOS,g.MAP,g.NOTES,g.SUBSCRIBERS,g.SUBSCRIPTIONS,g.EVENTS];return!b.map(function(a){return a.toLowerCase()}).includes(a.toLowerCase())}var m=new Map([[(a=b("WorkGalahadEntityKey")).forFeed(),function(){return h.FEED}],[a.forResellerConsole(),function(){return h.RESELLER_CONSOLE}],[a.forGroup(),function(){return h.GROUP}],[a.forUser(),function(){return h.USER}],[a.forPage(),function(){return h.PAGE}],[a.forChat(),function(a){return b("WorkGalahadEntityKey").getThreadID(a)!=null?h.GROUP_CHAT:null}],[a.forSearch(),function(){return h.SEARCH}],[a.forSaved(),function(){return h.SAVED}],[a.forEvent(),function(){return h.EVENTS}],[a.forEventTab(),function(){return h.EVENTS_DASHBOARD}],[a.forAdminPanelSection(),function(){return h.ADMIN_PANEL}],[a.forGroupsExplorer(),function(){return h.GROUPS_BROWSE}],[a.forTeam(),function(){return h.TEAMS}],[a.forTeamDirectory(),function(){return h.TEAM_DIRECTORY}],[a.forDirectory(),function(){return h.DIRECTORY}],[a.forPeopleDirectory(),function(){return h.PEOPLE_DIRECTORY}],[a.forDirectPosts(),function(){return h.DIRECT_POSTS}],[a.forCommunityResources(),function(){return h.COMMUNITY_RESOURCES}],[a.forKnowledge(),function(){return h.KNOWLEDGE}],[a.forMigration(),function(){return h.MIGRATION}],[a.forNext(),function(){return h.NEXT}],[a.forIntegrations(),function(){return h.INTEGRATIONS}],[a.forApprovals(),function(){return h.APPROVALS}],[a.forForms(),function(){return h.FORMS}],[a.forAboutOrganization(),function(){return h.ABOUT_ORGANIZATION}],[a.forNotes(),function(){return h.NOTES}],[a.forActivityLog(),function(){return h.ACTIVITY_LOG}],[a.forOrgNavigator(),function(){return h.ORG_CHART}],[a.forSettings(),function(){return h.SETTINGS}],[a.forPYSF(),function(){return h.FOLLOW_COWORKERS}],[a.forTrending(),function(){return h.TRENDING}],[a.forTasks(),function(){return h.TASKS}],[a.forHelpdesk(),function(){return h.HELPDESK}],[a.forDeviceLogin(),function(){return h.DEVICE_LOGIN}],[a.forDataInterchange(),function(){return h.DATA_INTERCHANGE}],[a.forHashtag(),function(){return h.HASHTAG}]]);b("gkx")("1121001")&&m.set(b("WorkGalahadEntityKey").forEvent(),function(){return h.EVENT});e.exports={HeaderType:h,SidebarType:i,getHeaderType:function(a){for(var c=m,d=Array.isArray(c),e=0,c=d?c:c[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var f;if(d){if(e>=c.length)break;f=c[e++]}else{e=c.next();if(e.done)break;f=e.value}f=f;var g=f[0];f=f[1];if(b("WorkGalahadEntityKey").containsKeyOrSubkey(a,g)){g=f(a);if(g)return g}}return null},getSidebarType:function(a){var c=this.getHeaderType(a),d=b("WorkGalahadEntityKey").getUserID(a),e=b("WorkGalahadEntityKey").getProfileView(a),f=b("WorkGalahadEntityKey").getThreadID(a);switch(c){case h.FEED:return i.FEED;case h.KNOWLEDGE:return i.KNOWLEDGE;case h.USER:if(g.WORK_CHAT===e&&f!=null)return i.CHAT;if(d!=null&&e!=null&&!l(e))return null;else return i.USER;case h.PAGE:return g.WORK_CHAT===e&&f!=null?i.CHAT:null;case h.GROUP_CHAT:return i.CHAT;case h.GROUP:c=b("WorkGalahadEntityKey").getGroupView(a);if(c==null||k(c))return i.GROUP;else return null;case h.NEXT:return i.NEXT;case h.EVENT:return b("gkx")("1121001")?i.EVENT:null;case h.HELPDESK:return i.HELPDESK;case h.HASHTAG:return i.HASHTAG;case h.ADMIN_PANEL:return b("WorkGalahadEntityKey").containsKeyOrSubkey(a,b("WorkGalahadEntityKey").forAdminPanelSection("whats_new"))?i.WHATS_NEW:null;case h.DEVICE_LOGIN:return i.DEVICE_LOGIN;default:if(b("WorkGalahadEntityKey").containsKeyOrSubkey(a,b("WorkGalahadEntityKey").forTimelinePermalink()))return i.FEED;return b("WorkGalahadEntityKey").containsKeyOrSubkey(a,b("WorkGalahadEntityKey").forTeamFeed())?i.FEED:null}}}}),null);
  __d("WorkGalahadChannelItemChromeList.react",["React","WIGBaseGlimmer.react","WIGBaseLoadingStateElement.react","WorkGalahadUIChannelItem.react","stylex"],(function(a,b,c,d,e,f){"use strict";var g,h=b("React");function i(a){var c=a.index,d=a.isBig,e=a.isIndented,f=a.isNested,i=a.isSmall,j=a.roundIcon;a=a.textType;return h.jsx("div",{children:h.jsx(b("WorkGalahadUIChannelItem.react"),{isSemanticListItem:!1,headline:h.jsxs(h.Fragment,{children:[h.jsx("div",{style:{width:"100%"},className:"tv52aht6 foph6o47 oitujibm mu99tzkh",children:h.jsx(b("WIGBaseGlimmer.react"),{className:(g||(g=b("stylex"))).dedupe({"border-top-start-radius-1":"lf6jz1fy","border-top-end-radius-1":"oz48ar1p","border-bottom-end-radius-1":"d1e651vp","border-bottom-start-radius-1":"y0l0x72j","display-1":"nfce3akt","height-1":"h2bzcsm2","margin-top-1":"prqhm3cj","margin-end-1":"ouhd256r","margin-bottom-1":"pc5scjqj","margin-start-1":"mq32vg4l"},{"width-1":"tc9e0ywr"},i?{"height-1":"qxlu86f3"}:null),index:c})}),a==="multi"?h.jsxs(h.Fragment,{children:[h.jsx(b("WIGBaseGlimmer.react"),{className:(g||(g=b("stylex"))).dedupe({"border-top-start-radius-1":"lf6jz1fy","border-top-end-radius-1":"oz48ar1p","border-bottom-end-radius-1":"d1e651vp","border-bottom-start-radius-1":"y0l0x72j","display-1":"nfce3akt","height-1":"h2bzcsm2","margin-top-1":"prqhm3cj","margin-end-1":"ouhd256r","margin-bottom-1":"pc5scjqj","margin-start-1":"mq32vg4l"},{"width-1":"byl60bsq"},i?{"height-1":"qxlu86f3"}:null),index:c}),h.jsx(b("WIGBaseGlimmer.react"),{className:(g||(g=b("stylex"))).dedupe({"border-top-start-radius-1":"lf6jz1fy","border-top-end-radius-1":"oz48ar1p","border-bottom-end-radius-1":"d1e651vp","border-bottom-start-radius-1":"y0l0x72j","display-1":"nfce3akt","height-1":"h2bzcsm2","margin-top-1":"prqhm3cj","margin-end-1":"ouhd256r","margin-bottom-1":"pc5scjqj","margin-start-1":"mq32vg4l"},{"width-1":"pbwg1s8d"},i?{"height-1":"qxlu86f3"}:null),index:c})]}):null]}),meta:a==="subtitled"?h.jsx(b("WIGBaseGlimmer.react"),{className:(g||(g=b("stylex"))).dedupe({"border-top-start-radius-1":"lf6jz1fy","border-top-end-radius-1":"oz48ar1p","border-bottom-end-radius-1":"d1e651vp","border-bottom-start-radius-1":"y0l0x72j","display-1":"nfce3akt","height-1":"h2bzcsm2","margin-top-1":"prqhm3cj","margin-end-1":"ouhd256r","margin-bottom-1":"pc5scjqj","margin-start-1":"mq32vg4l"},{"width-1":"byl60bsq"},i?{"height-1":"qxlu86f3"}:null),index:c}):void 0,addOnPrimary:f?void 0:h.jsx(b("WIGBaseGlimmer.react"),{className:(g||(g=b("stylex"))).dedupe(!d&&!i?{"height-1":"ddmrlm6u","width-1":"oyfvlk2a"}:{},i?{"height-1":"mhmrsd19","width-1":"ez34a2ks"}:null,d?{"height-1":"gxaa0u11","width-1":"runnr3yg"}:null,j?{"border-top-start-radius-1":"fviam4sw","border-top-end-radius-1":"e3xoa9gt","border-bottom-end-radius-1":"c6boxllp","border-bottom-start-radius-1":"mukvf3dn"}:null,j?null:{"border-top-start-radius-1":"qcplsvq8","border-top-end-radius-1":"lbj7a7zq","border-bottom-end-radius-1":"qd9vfp32","border-bottom-start-radius-1":"ex16komz"}),index:c}),indentationLevel:e?2:1})})}function j(a){a=a.initialIndex;a=a===void 0?0:a;return h.jsx("div",{className:"t36ehdhz akl1aaa0 mu99tzkh kykouyfj p8o7x76n bv6y7xb9 tgxds0u3",children:h.jsx(b("WIGBaseGlimmer.react"),{className:"mq32vg4l pc5scjqj ouhd256r prqhm3cj h2bzcsm2 nfce3akt y0l0x72j d1e651vp oz48ar1p lf6jz1fy byl60bsq",index:a})})}function a(a){var c=a.amount,d=a.type,e=a.withHeader;e=e===void 0?!1:e;a=a.initialIndex;a=a===void 0?0:a;var f;switch(d){case"groups":case"teams":f={centered:!0,textType:"single",roundIcon:!1,isNested:!1,isBig:!1,spacing:"narrow",isIndented:!0};break;case"people":f={centered:!0,textType:"single",roundIcon:!0,isNested:!1,isBig:!1,spacing:"narrow",isIndented:!0};break;case"notifications":f={centered:!1,textType:"multi",roundIcon:!0,isNested:!1,isBig:!0,spacing:"narrow",isIndented:!0};break;case"minimall":f={centered:!1,textType:"multi",roundIcon:!0,isNested:!1,isBig:!1,spacing:"narrow",isIndented:!0};break;case"inlineMinimall":f={centered:!1,textType:"multi",roundIcon:!0,isNested:!0,isBig:!1,spacing:"narrow",isIndented:!0};break;case"search":f={centered:!1,textType:"subtitled",roundIcon:!1,isNested:!1,isBig:!1,spacing:"medium",isIndented:!1};break;case"chats":f={centered:!0,textType:"single",roundIcon:!0,isNested:!1,isBig:!0,spacing:"narrow",isIndented:!0};break;case"quick-chat":f={roundIcon:!0,isSmall:!0,spacing:"narrow",isIndented:!1};break;case"message-search":f={centered:!1,textType:"subtitled",roundIcon:!0,isNested:!1,isBig:!1,spacing:"medium",isIndented:!1};break;default:d}d=[];for(var g=0;g<c;g++)d.push(h.jsx(i,babelHelpers["extends"]({index:g+a},f),g));return h.jsxs(b("WIGBaseLoadingStateElement.react"),{children:[e?h.jsx(j,{initialIndex:a}):null,d]})}e.exports=a}),null);
  __d("WorkGalahadImage.react",["Image.react","React","WIGBackgroundImage.react","stylex"],(function(a,b,c,d,e,f){"use strict";var g,h=b("React"),i={wrapper:{position:"hal92y33",zIndex:"rpt3ley2"},root:{position:"hal92y33",overflowX:"ib0kwflm",overflowY:"qbbcxcfp"},border:{bottom:"qf3vbteg",boxSizing:"tdgv6ycz",end:"s000wco0",position:"i8ovu4tj",start:"akkqc5af",top:"xdo5vwd7",borderTop:"nkzg8k6n",borderEnd:"sf1ngpnb",borderBottom:"ph71f2of",borderStart:"eqxa6x9z",zIndex:"rk5zydmx"},backgroundImageContainer:{bottom:"qf3vbteg",boxSizing:"tdgv6ycz",end:"s000wco0",position:"i8ovu4tj",start:"akkqc5af",top:"xdo5vwd7"},rounded:{borderTopStartRadius:"qcplsvq8",borderTopEndRadius:"lbj7a7zq",borderBottomEndRadius:"qd9vfp32",borderBottomStartRadius:"ex16komz"},circle:{borderTopStartRadius:"fviam4sw",borderTopEndRadius:"e3xoa9gt",borderBottomEndRadius:"c6boxllp",borderBottomStartRadius:"mukvf3dn"},greyedOut:{backgroundColor:"ba23nu16"},image:{backgroundSize:"f0pa513o"},squareImageSpacer:{display:"nfce3akt",paddingBottom:"nw4knjib"},content:{bottom:"qf3vbteg",boxSizing:"tdgv6ycz",end:"s000wco0",position:"i8ovu4tj",start:"akkqc5af",top:"xdo5vwd7",zIndex:"b5n1fmi2"}};function a(a){var c=a.alt,d=a.children,e=a.greyedOut;e=e===void 0?!1:e;var f=a.height,j=a.src,k=a.type,l=a.width;a=a.xstyle;var m;typeof j==="string"?m=h.jsx(b("WIGBackgroundImage.react"),{alt:c!=null?c:void 0,src:j}):m=h.jsx(b("Image.react"),{alt:c,className:(g||(g=b("stylex")))(i.image),height:f,src:j,width:l});return h.jsxs("div",{className:(g||(g=b("stylex")))(i.wrapper,k==="rounded"&&i.rounded,k==="circle"&&i.circle,a),children:[h.jsxs("div",{className:g(i.root,k==="rounded"?i.rounded:null,k==="circle"?i.circle:null,e?i.greyedOut:null),style:{height:f,width:l},children:[h.jsx("div",{className:g(i.border,k==="rounded"?i.rounded:null,k==="circle"?i.circle:null)}),h.jsx("div",{className:g(i.backgroundImageContainer),children:m}),f==null&&h.jsx("div",{className:(g||(g=b("stylex")))(i.squareImageSpacer)})]}),d!=null?h.jsx("div",{className:(g||(g=b("stylex")))(i.content),children:d}):null]})}e.exports=a}),null);
  __d("WorkGalahadChatSearchAddThreadID",["MercuryThreadIDMap"],(function(a,b,c,d,e,f){"use strict";function a(a,c){var d=b("MercuryThreadIDMap").get();a=[a,c];d.setServerIDToClientID.apply(d,a);d.setDeprecatedServerIDToClientID.apply(d,a)}e.exports={addThreadID:a}}),null);
  __d("FacebarGSv2Echo",["cx","fbt","FacebarGlobalOptions","FacebarJSConstants","FacebarKeywordSearchUtils","FacebarStructuredText"],(function(a,b,c,d,e,f,g,h){"use strict";var i={insertInto:function(a,b,c,d,e,f){var g=this,h=i.normalizeValue(a);if(!this._shouldInsert(a,b))return;var j=b.findIndex(function(a){return a.isSpecialIntent&&g._isKeywordSuggestion(a)&&h===i.normalizeValue(a.text)},this);j=j<0;if(!j)return;j=this._removeExactMatchAndReturnSubtext(a,b);a=this._createEchoResult(a,c,j,d,e,f);d?a!=null&&b.unshift(a):a!=null&&b.push(a)},_shouldInsert:function(a,c){a=i.normalizeValue(a);if(!a)return!1;for(var d=0;d<c.length;d++){var e=c[d];e=b("FacebarStructuredText").fromStruct(e.structure).toString().toLowerCase();if(a.toLowerCase()===e)return!1}return!0},_isKeywordSuggestion:function(a){return a.type===b("FacebarJSConstants").keywordType||a.type===b("FacebarJSConstants").grammarType},_removeExactMatchAndReturnSubtext:function(a,b){var c="";a=i.normalizeValue(a);for(var d=0;d<b.length;d++){var e=b[d];if(this._isKeywordSuggestion(e)&&a===i.normalizeValue(e.text)){e.subtext&&(c=e.subtext);b.splice(d,1);return c}}return c},normalizeValue:function(a){return String(a).trim().replace(/\s+/g," ").replace(/[\u200E|\u200F|\u202a|\u202b|\u202c]/g,"").toLowerCase()},_createEchoResult:function(a,c,d,e,f,g){var j=i.normalizeValue(a);f=e&&f&&b("FacebarGlobalOptions").showLocalPinkKwsSingleState&&a instanceof b("FacebarStructuredText")&&a.getFragment(0)&&a.getFragment(0).isLocal();var k=f?b("FacebarKeywordSearchUtils").makeFacebarEntryForLocalPage(a):b("FacebarKeywordSearchUtils").makeFacebarEntry(j),l=f?b("FacebarJSConstants").keywordTypes.local:b("FacebarJSConstants").keywordTypes.keyword,m={};f&&(m.subtext=d||h._("\u0e14\u0e39\u0e23\u0e39\u0e1b\u0e20\u0e32\u0e1e \u0e42\u0e1e\u0e2a\u0e15\u0e4c \u0e41\u0e25\u0e30\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e01\u0e31\u0e1a\u0e2a\u0e16\u0e32\u0e19\u0e17\u0e35\u0e48\u0e19\u0e35\u0e49"),g!==null&&(m.boldedSubtext=h._("{categoryName}",[h._param("categoryName",g)])));return babelHelpers["extends"]({type:b("FacebarJSConstants").keywordType,results_set_type:b("FacebarJSConstants").browseTypes.keyword,text:a,id:j,uid:j,query_string:j,icon_class:"_5b1w",isSingleState:e,isLocal:f,exactMatchKeyword:!0,structure:b("FacebarStructuredText").fromString(String(a)),semantic:k.semantic,uri:k.uri,keywordType:l,keywordSource:b("FacebarJSConstants").keywordTypes.echo,fromCache:c,tags:{}},m)}};e.exports=i}),null);
  __d("FacebarInviteCoworkers",["cx","fbt","FacebarGlobalOptions","FacebarStructuredText","XWorkInviteCoworkersDialogController"],(function(a,b,c,d,e,f,g,h){"use strict";a={insertInto:function(a,b,c){a=this._cleanQuery(a);var d=this._getInsertionIndex(a,b);if(d>-1){a=this._createInviteCoworkersResult(a,c);b.splice(d,0,a)}},_getInsertionIndex:function(a,c){return!a||!b("FacebarGlobalOptions").inviteCoworkers?-1:c.length},_cleanQuery:function(a){return String(a).trim().replace(/\s+/g," ").replace(/[\u200E|\u200F|\u202a|\u202b|\u202c]/g,"")},_createInviteCoworkersResult:function(a,c){var d=h._("\u0e40\u0e0a\u0e34\u0e0d \"{query}\" \u0e43\u0e2b\u0e49\u0e40\u0e02\u0e49\u0e32\u0e23\u0e48\u0e27\u0e21 Workplace",[h._param("query",a)]),e=b("XWorkInviteCoworkersDialogController").getURIBuilder().setEnum("source","search_typeahead").getURI();return{uid:a,icon_class:"_5yiv",isAsync:!1,isInviteCoworkers:!0,structure:b("FacebarStructuredText").fromString(d),semantic:d.toString(),text:d,asyncURI:e,fromCache:c}}};e.exports=a}),null);
  __d("FacebarResultStore",["CurrentUser","FacebarGlobalOptions","FacebarJSConstants","FacebarResultStoreUtils","FacebarStructuredText","KeywordsSearchResultConfig","SearchI18nMatch","TokenizeUtil","concatMap"],(function(a,b,c,d,e,f){"use strict";var g=b("CurrentUser").isWorkUser(),h=13,i=function(){function a(a,c,d,e){var f=this;this._extractStructure=function(a){function c(a,b,c,d,e){return{type:a==="ent:extend_string"?"text":a,text:b,uid:c||null,isLocal:d?d:!1,categoryName:e?e:null}}function d(b,d){b.split(" ").forEach(function(b){b!==""&&(d&&a.chunks.push(a.structure.length),a.structure.push(c("text",b))),a.structure.push(c("text"," "))}),a.structure.pop()}function e(c){return a.structure.length!==0||b("FacebarJSConstants").nonGrammarTypes[a.type]?c:c.charAt(0).toUpperCase()+c.substr(1)}a.structure=[];a.chunks=[];a.parse.display.forEach(function(b){if(typeof b==="string")d(e(b),!0);else if(b.type==="ent:extend_string")d(b.text,!0);else if(b.uid){var f=this.getEntry(b.uid,b.fetchType);a.chunks.push(a.structure.length);if(f==null)throw new Error('No entry found for uid "'+b.uid+'", type "'+b.fetchType+'" and piece text "'+b.text+'"');if(f.grammar_like)d(e(f.text),!1);else{var g=b.type;b.fetchType&&(g+=":"+b.fetchType);a.structure.push(c(g,f.text,b.uid,a.isLocal,a.categoryName))}}else b.type=="blank"&&(a.chunks.push(a.structure.length),a.structure.push(c(b.type,"...")))},f);return a};this._processBackendResult=function(a){if(a.semantic==null)throw new Error("Facebar can't process empty semantic "+JSON.stringify(a));a.semantic=a.semantic.toString();a.backendCost=a.cost;f._extractStructure(a);a.type.match(/^\{.*\}$/)&&(a.useExtendedIndex=!0);a.alternateSemantic&&(a.alternateSemantic=a.alternateSemantic.toLowerCase().replace(/\[(\d*)\]/g,"$1"));if(a.semantic.match(/\[\d*\]/)){var b=a.parse,c=b.pos;if(c===void 0)a.semantic=a.semantic.replace(/\[(\d*)\]/g,"$1");else{var d=b.remTokens[b.remTokens.length-1];b.remTokens.length&&a.structure[a.chunks[d]]&&a.structure[a.chunks[d]].uid&&(c=b.remTokens[b.remTokens.length-1],a.completed=!0);var e=a.structure[a.chunks[c]].uid;if(e===null)a.semantic=a.semantic.replace(/\[(\d*)\]/g,"$1");else{var g=new RegExp("\\["+e+"\\]","g");a.unsubstituted_semantic=a.semantic;a.semantic=a.semantic.replace(g,e);b&&b.disambiguation&&b.disambiguation.length>0&&(b.disambiguation=b.disambiguation.filter(function(a){return a.indexOf("["+e+"]")!==-1}),b.unsubstituted_disambiguation=b.disambiguation.splice(0),b.disambiguation=b.disambiguation.map(function(a){return a.replace(g,e)}))}}}a.semantic=a.semantic.replace(/\[(.*)\]/g,"$1");a.tuid=JSON.stringify({semantic:a.semantic,structure:a.structure});return a};this.facebarConfig=a;this.facebarConfig.grammar_stop_words_penalty=this.facebarConfig.grammar_stop_words_penalty||2;this.facebarConfig.grammar_stop_words=this.facebarConfig.grammar_stop_words||{};this.facebarConfig.options=e;this.injectedSuggestionCount=0;this.tokenize=c;this.getEntry=d;this.typeaheadTypeMap=this.facebarConfig.mapped_types;this.facebarConfig.typeahead_types.forEach(function(a){this.typeaheadTypeMap[a]=a},this);this.unicodeMatch=new(b("SearchI18nMatch"))({prefix_hangul_conjoining_jamo:!0});this.resetCaches()}var c=a.prototype;c.transformStructured=function(a){var b=[],c=[],d="",e="";a.forEach(function(a,f){if(a.isType("text"))d+=a.getText(),e=e==null?null:e+a.getText();else{f=d.match(/\"/g);f&&f.length%2&&(d=d.replace(/\s+$/,"")+'"');d.length&&(Array.prototype.push.apply(b,this.tokenize(d)),c.push(d),d="");b.push(a.toStruct());c.push({uid:String(a.getUID()),type:this._getFBObjectType(a.getTypePart(1)),text:a.getText()});e=null}},this);a=!1;var f=d;d.length&&(d[d.length-1]=="'"&&(d=d.substr(0,d.length-1)),d.length>0&&d[0]==="#"?Array.prototype.push.call(b,d):d.length>0&&d[0]==="@"?(a=!0,f=this._convertToAliasKey(d.substring(1)),Array.prototype.push.call(b,f)):(f=this._convertToAliasKey(d),Array.prototype.push.apply(b,this.tokenize(d))),c.push(d),d[d.length-1]==" "&&b.push(""));var g=JSON.stringify(c),h=g.replace(/\]$/,"").replace(/\"$/,"");h=h.replace(/\s{2,}/g," ");return{tokens:b,text_form:g,is_empty:!!g.match(/^\[(\"\s*\")?\]$/),raw_text:e,cache_id:h,is_alias_search:a,potential_alias_term:f}};c.resetCaches=function(){this.resetBootstrapCache(),this.resetQueryCache()};c.resetBootstrapCache=function(){this.bootstrapCache={}};c.resetQueryCache=function(){this.queryCache={"":{tokens:[],results:[]}}};c.setNullState=function(a){this.facebarConfig.null_state=a.map(this._extractStructure,this)};c.clearRecentSearches=function(){if(!this.facebarConfig.null_state)return;this.facebarConfig.null_state=this.facebarConfig.null_state.filter(function(a){return!a.isRecent})};c.setSortFunction=function(a){this._sortFunction=a};c.addBootstrap=function(a){var b=this.bootstrapCache;a.forEach(function(a){var c=this.getEntry(a);c.bootstrapped=!0;var d=this.tokenize(c.textToIndex,!0);c.tokens&&Array.prototype.push.apply(d,c.tokens.split(" "));d.forEach(function(c){Object.prototype.hasOwnProperty.call(b,c)||(b[c]={}),b[c][a]=!0})},this)};c._convertToAliasKey=function(a){return a.replace(/\./g,"").toLowerCase()};c.addNullStateToQueryCache=function(a){this.saveResults(this.facebarConfig.null_state,a,!0)};c.getResults=function(a,c){var d=this;if(a.tokens.length===0||a.tokens.length==1&&a.tokens[0]==="")return{results:this.facebarConfig.null_state||[],null_state:!0};c=this._getBestQueryCache(a.cache_id);c=c.results.filter(function(a){return!a.isRecent});var e={},f=this._getBootstrapMatchByType(a,e),i=this._addMatchingBootstrapResults(a,f[0]||{},e,[]);b("FacebarGlobalOptions").limitBootstrapResult&&(i=i.slice(0,b("FacebarGlobalOptions").limitBootstrapResultNum));var k=[],m=[],n=a.tokens.map(function(a){return a.text!=null?a.text:a}).join(" ").toLowerCase();b("FacebarGlobalOptions").hasKeywordBootstrap&&(k=i.filter(function(a){return a.type===b("FacebarJSConstants").keywordType&&d.unicodeMatch.prefixMatch(a.structure[0].text.toLowerCase(),n)}),k.sort(this._sortFunction(a.raw_text)),m=i.filter(function(a){return a.type!==b("FacebarJSConstants").keywordType&&d.unicodeMatch.prefixMatch(a.structure[0].text.toLowerCase(),n)}),m.sort(this._sortFunction(a.raw_text)),i=m.concat(k));Array.prototype.push.apply(i,b("concatMap")(this._getResultsFromCache.bind(this,f,a),c));b("FacebarGlobalOptions").hasKeywordBootstrap||i.sort(this._sortFunction(a.raw_text));var o={},p=[],q=!1,r=0;i.forEach(function(a){var c=b("FacebarStructuredText").fromStruct(a.structure);if(c.hasType("blank")){p.push(a);return}a.semantic=a.semantic.toLowerCase();a.termMatches||(a.termMatches=e[a.semantic]);c=l(a,a.semantic);var d=l(a,a.alternateSemantic);if(!c)return;var f=o[c]||d!=null&&o[d];if(f){a.isJSBootstrapMatch?(f.isJSBootstrapMatch=!0,f.bootstrapCost=a.bootstrapCost):f.isJSBootstrapMatch&&a.backendCost!==void 0&&f.backendCost===void 0&&(f.backendCost=a.backendCost);a.tags!=null&&Object.assign(f.tags||{},a.tags);j(a)&&f.keyword_type==="keyword"&&Object.assign(f,a);return}if(q&&a.blankFilled)return;if(a.type.indexOf("browse_type")>=0){r+=1;if(this.facebarConfig.maxGrammarResults!==void 0&&r>this.facebarConfig.maxGrammarResults)return}q=q||!!a.blankFilled;o[c]=a;d&&(o[d]=a);(!g||a.isJSBootstrapMatch||a.position<h||a.type==="post")&&p.push(a)},this);return{results:p}};c.saveResults=function(a,c,d,e){a=a.map(this._processBackendResult,this);var f=[],i={},j={};a.forEach(function(a){j[a.semantic]=!0});var k=new Set(),l=this._getBestQueryCache(c.cache_id);l.results.forEach(function(a){if(a.type==="websuggestion")return;if(a.exactMatchKeyword)return;if(a.isRecent)return;if(a.semantic in i)return;var b=this._getDifferenceArrayTokens(a.tokens,c.tokens),d=this._getNumTokensMatching(b,a);d=this._tryMatchingFinalInsertedEntity(b,d,a);(d>0&&d==b.length||a.type==="shortcut"&&a.termMatches.indexOf(c.tokens[c.tokens.length-1])>=0)&&(a.cacheOnlyResult=!j[a.semantic],(!g||a.position<h||a.type==="post")&&(f.push(a),k.add(a.semantic)))},this);b("FacebarGlobalOptions").limitCacheResult&&(f=f.slice(0,b("FacebarGlobalOptions").limitCacheResultNum));a.forEach(function(a){a.tokens=c.tokens,a.cache_id_length=c.cache_id.length,a.isTypeNamedXBootstrap&&++a.cache_id_length,(!g||!k.has(a.semantic)||a.type==="post")&&f.push(a)},this);f.forEach(function(a,b){a.position=b});this.queryCache[c.cache_id]===void 0&&(this.queryCache[c.cache_id]={});Object.assign(this.queryCache[c.cache_id],{tokens:c.tokens,results:f,incomplete:d},e)};c.alreadyKnown=function(a){return!!this.queryCache[a]&&!this.queryCache[a].incomplete};c.stripBrackets=function(a){return a.replace(/^[\[\{]/,"").replace(/[\]\}]$/,"")};c._getDifferenceArrayTokens=function(a,b){if(!a.length)return[""].concat(b);var c=a.length-1,d=a[c];d===""&&(d=a[--c]);a="";typeof d==="string"&&c<b.length&&(a=b[c].substr(d.length));return[a].concat(b.slice(c+1))};c._sortFunction=function(a){return function(a,b){return(a.cost||0)-(b.cost||0)}};c._getResultsFromCache=function(a,c,d){a=c.tokens;var e=this._getDifferenceArrayTokens(d.tokens,a),f=[],g=this._getNumTokensMatching(e,d);g=this._tryMatchingFinalInsertedEntity(e,g,d);g>0&&g==e.length&&!(d.type===b("KeywordsSearchResultConfig").result_type&&e.length===1&&e[0]==='"')&&f.push(d);d.type==="shortcut"&&d.termMatches.indexOf(c.tokens[a-1])>=0&&f.push(d);return f};c._addMatchingBootstrapResults=function(a,c,d,e){var f=a.tokens;return b("concatMap")(function(g){var h=c[g];if(h===void 0)return[];var i=[],j=b("FacebarResultStoreUtils").getQueryFeatures(a);h.forEach(function(c){var h=this.getEntry(c,g);if(a.is_alias_search){if(!this._isAliasMatch(a,h,!1))return}else if(!this._isTitleTermMatch(f,h)&&!this._isAliasMatch(a,h,!1)&&!e.includes(c))return;var k=this._isOriginalNameMatch(f,h)||this._isAliasMatch(a,h,!0),l=k?0:this.facebarConfig.non_title_term_match_penalty,m=0;if(this.facebarConfig.enableExactQueryMatchCost){var n=this._isExactNameMatch(a.raw_text,h);m=n?0:this.facebarConfig.non_exact_query_match_penalty}n=this._isNonGrammarTermMatch(f,h);var o=h.grammar_costs?h.grammar_costs["{"+g+"}"]:0,p=g===b("FacebarJSConstants").keywordType?h.cost:0;p=p+o+l+m+this.facebarConfig.entity_cost+this.facebarConfig.grammar_stop_words_penalty*!n;o=b("FacebarResultStoreUtils").processEntityResult(g,c,h.text,p,a,j,d,k,!n);o.bootstrapCost=p;o.isJSBootstrapMatch=!0;o.item_logging_id=h.itemLoggingId;g===b("FacebarJSConstants").keywordType&&(o.iconClass=h.iconClass,o.keywordBootstrapType=h.keywordBootstrapType,o.parse=h.parse,o.subtext=h.subtext,o.boldedSubtext=h.boldedSubtext,o.semantic=h.semantic,o.popularSearchScore=h.popularSearchScore,o.trendingTopicID=h.trendingTopicID,o.photo=h.photo,o.keyword_type=h.keyword_type,o.keywordSource=h.keywordSource);i.push(o)},this);return i}.bind(this),this.facebarConfig.bootstrap_types)};c._isTitleTermMatch=function(a,c){var d=a[0]||{};if(typeof d==="object")return!1;c=c.titleToIndex;return a.length===1?this._isTokenizePrefixMatch(d,c):b("TokenizeUtil").isExactMatch(d,c)};c._isOriginalNameMatch=function(a,c){var d=a[0]||{};if(typeof d==="object")return!1;d=c.text;for(var c=0;c<a.length-1;++c)if(a[c]!==""&&!b("TokenizeUtil").isExactMatch(a[c],d))return!1;return a.length>0&&this._isTokenizePrefixMatch(a[a.length-1],d)};c._getNormalizedName=function(a){return a.split(/\W+/).join(",").toLowerCase()};c._isExactNameMatch=function(a,b){return this._getNormalizedName(b.text)===this._getNormalizedName(a)};c._isAliasMatch=function(a,c,d){if(c.alias==null||a.potential_alias_term==null)return!1;c=this._convertToAliasKey(c.alias);if(d||!a.is_alias_search)return b("TokenizeUtil").isExactMatch(a.potential_alias_term,c);else return b("TokenizeUtil").isPrefixMatch(a.potential_alias_term,c)};c._isNonGrammarTermMatch=function(a,c){c=b("TokenizeUtil").parse(c.titleToIndex.toLowerCase());c=c.tokens.filter(function(a){return a!==""&&!this.facebarConfig.grammar_stop_words[a]},this);c=c.join(" ");for(var d=0;d<a.length;++d){if(typeof a[d]==="object")return!0;var e=d===a.length-1?this._isTokenizePrefixMatch(a[d],c):b("TokenizeUtil").isQueryMatch(a[d],c);if(e)return!0}return!1};c._getBootstrapMatchByType=function(a,b,c){c===void 0&&(c=[]);var d=a.tokens.slice();if(d.length===0)return[];var e=d.map(function(){return{}}),f=d[d.length-1]==="",g={},h,i=f?d.length-1:d.length,j=d[i-1];if(i&&j.uid){this._pushBootstrapEntryAtPosition(e,i-1,j.uid,a.is_alias_search);return e}for(var k in this.bootstrapCache)if(i&&this.unicodeMatch.prefixMatch(k,j)&&(!f||k===j))for(h in this.bootstrapCache[k])this._addMatchedTerm(h,k,b),g[h]||(g[h]=1,this._pushBootstrapEntryAtPosition(e,i-1,h,a.is_alias_search));for(var f=i-2;f>=0;f--){if(typeof d[f]==="object")break;if(d[f].length&&d[f][0]=='"')break;for(h in this.bootstrapCache[d[f]])g[h]||(g[h]=0),g[h]+f==i-1&&(++g[h],this._addMatchedTerm(h,d[f],b),this._pushBootstrapEntryAtPosition(e,f,h,a.is_alias_search))}if(!a.is_alias_search&&a.potential_alias_term)for(h in this.bootstrapCache[a.potential_alias_term])this._addMatchedTerm(h,a.potential_alias_term,b),g[h]||(g[h]=1,this._pushBootstrapEntryAtPosition(e,0,h,a.is_alias_search));for(var j=c,f=Array.isArray(j),i=0,j=f?j:j[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){if(f){if(i>=j.length)break;d=j[i++]}else{i=j.next();if(i.done)break;d=i.value}b=d;this.getEntry(b)&&!g[b]&&(g[b]=1,this._pushBootstrapEntryAtPosition(e,0,b,a.is_alias_search))}return e};c._addMatchedTerm=function(a,b,c){(c[a]=c[a]||[]).push(b);return c};c._pushBootstrapEntryAtPosition=function(a,b,c,d){var e=this.getEntry(c);if(!e)return;var f=[];f=[e.type];for(var e=0;e<f.length;e++){var g=f[e];if(d&&g!=="user"&&g!=="page")continue;a[b][g]===void 0&&(a[b][g]=[]);a[b][g].push(c)}};c._getNumTokensMatching=function(a,b){var c=0,d=b.parse,e=a.length,f=null,g=null;if(d.pos!==void 0){var h=b.structure[b.chunks[d.pos]];h&&(f=h.uid,g=h.type.split(":")[2])}b.outputTokensUsed=[];b.termMatches=[];if(f){c=this._prefixMatchEntity(a,d,f,b.outputTokensUsed,g,!!b.useExtendedIndex,b.termMatches);if(c===0||c===e)return c}else if(d.suffix&&e==1&&d.suffix.indexOf(a[0])===0)return e;else if(d.suffix==a[0])++c;else return 0;h=[];d.remTokens=d.remTokens||[];for(var f=0;f<d.remTokens.length;f++){if(typeof a[c]!=="string"||b.chunks.length<=d.remTokens[f]||b.structure.length<=b.chunks[d.remTokens[f]]||b.structure[b.chunks[d.remTokens[f]]].uid)break;g=b.structure[b.chunks[d.remTokens[f]]].text;h.push(g.toLowerCase())}c=this._greedyMatchText(h,a,c,d.remTokens,b.outputTokensUsed,b.isNullState);return c==e-1&&a[c]===""?e:c};c._prefixMatchEntity=function(a,b,c,d,e,f,g){b.entTokens=b.entTokens||[];if(b.entTokens.length===0){if(a[0]!=="")return 0;if(b.possessive&&a.length>1&&a[1]=="'s"){d.push([b.pos+1]);return 2}else return 1}var h=!1;c=this.getEntry(c,e);if(e!==void 0&&e!==c.fetchType)return 0;e=this.tokenize(f?c.textToIndex:c.text,!0);f=[];for(var c=0;c<a.length+b.entTokens.length-1;c++)c<b.entTokens.length-1?f.push(b.entTokens[c]):c==b.entTokens.length-1?f.push(b.entTokens[c]+a[0]):f.push(a[c-b.entTokens.length+1]);c=-b.entTokens.length+1;for(var i=0;i<f.length;++i){var j=f[i];if(typeof j!=="string")break;if(j===""){c++;continue}var k=!1;for(var l=0;l<e.length;l++)if(e[l]==j||i===f.length-1&&e[l].indexOf(j)===0){g&&g.push(e[l]);e[l]="";k=!0;++c;break}if(k)continue;if(!b.possessive||j.length<=2||j.substr(j.length-2)!="'s")break;k=j.substr(0,j.length-2);for(l=0;l<e.length;l++)if(e[l]==k){++c;d&&(h=!0);break}break}if(c>0){h&&d.push([b.pos+1]);return c}if(d===void 0)return 0;j=a[0];l=j;b.possessive&&j.length>=2&&j.substr(j.length-2)=="'s"&&(l=j.substr(0,j.length-2));b.suffix=b.suffix||"";if(a.length==1&&b.suffix.indexOf(j)===0||b.suffix==l||b.suffix==j){l!=j&&b.suffix==l&&d.push([b.pos+1]);return 1}return 0};c._tryMatchingFinalInsertedEntity=function(a,b,c){if(!c.completed||b<0)return b;var d=c.parse;d=d.remTokens[d.remTokens.length-1];c=c.structure[c.chunks[d]];d=this.getEntry(c.uid,c.type);c=this.tokenize(d.text,!0);b=this._greedyMatchText(c,a,b);return b==a.length-1&&a[b]===""?a.length:b};c._greedyMatchText=function(a,b,c,d,e,f){for(var g=0;g<a.length;g++){var h=a[g];if(h==b[c]){e!==void 0&&e.push(d[g]);++c;continue}if(c===b.length-1&&h.indexOf(b[c])===0){e!==void 0&&(h==b[c]?e.push([d[g]]):e.push([d[g],b[c].length]));return b.length}if(f)break}return c};c._getBestQueryCache=function(a){for(var b=a.length;b>=0;b--){var c=this.queryCache[a.slice(0,b)];if(c)return c}};c._getFBObjectType=function(a){if(this.typeaheadTypeMap[a])return this.typeaheadTypeMap[a];else return"page"};c._isTokenizePrefixMatch=function(a,c){return b("TokenizeUtil").isPrefixMatch(this.unicodeMatch.prefixMatchPrepare(a),this.unicodeMatch.prefixMatchPrepare(c))};c.getBootstrapMatches=function(a,b){b===void 0&&(b=[]);var c={},d=this._getBootstrapMatchByType(a,c,b?b:[]);return this._addMatchingBootstrapResults(a,d[0]||{},c,b?b:[])};return a}();i.EPSILON=1e-5;i.getUniqueSemantic=function(a){if(!a)return;var b=[],c=[],d=[];a="("+a+")";var e=a,f=!1;a.replace(/[\(\),]/g,function(g,h){var i;switch(g){case",":var j=d.length-1;i=e.substr(d[j],h-d[j]);b[j].push(i);d[j]=h+1;break;case"(":d.push(h+1);b.push([]);c.push(h+1);break;case")":if(d.length===0)throw new Error(a+" is not a valid semantic string");j=d.pop();i=e.substr(j,h-j);i=decodeURI(i.replace(/%/g,"%25").replace(/\s/g,"+").trim());j=b.pop();j.push(i);i=j.sort();for(var j=1;j<i.length;j++)i[j]==i[j-1]&&(f=!0);j=i.join(",");e=e.substr(0,c.pop())+j+e.substr(h);break}return g});return f?"":e.replace(/\((.*)\)/,"$1")};var j=function(a){return a.keyword_type==="local"&&a.semantic.match(/[0-9]+\/local/)!=null},k=function(a){if(!j(a))return null;a=encodeURIComponent(a.name.replace(/\s+/g,"+"));return"str/"+a+"/keywords_search"},l=function(a,c){if(!b("CurrentUser").isWorkUser())return b("FacebarStructuredText").fromStruct(a.structure).toString().toLowerCase();a=k(a);a=a!=null?a:i.getUniqueSemantic(c);return a!=null?a.toLowerCase():null};e.exports=i}),null);
  __d("FacebarSearchAllMessages",["fbt","FacebarGSv2Echo","FacebarStructuredText","URI","WorkGalahadEntityKey","WorkGalahadNavStore","WorkplaceSearchTypeaheadConfigs","WWWBase"],(function(a,b,c,d,e,f,g){"use strict";var h;a={insertInto:function(a,c,d){a=b("FacebarGSv2Echo").normalizeValue(a);var e=this._getInsertionIndex(a,c);if(e>-1){a=this._createSearchMessagesResult(a,d);c.splice(e,0,a)}},_getInsertionIndex:function(a,c){return a.length>0&&b("WorkplaceSearchTypeaheadConfigs").unifySearchBox&&b("WorkGalahadNavStore").getSelectedAppTabID()==="chats"?0:-1},_createSearchMessagesResult:function(a,c){var d=g._("\u0e04\u0e49\u0e19\u0e2b\u0e32\u0e02\u0e49\u0e2d\u0e04\u0e27\u0e32\u0e21 \"{queryString}\"",[g._param("queryString",a)]),e=b("WorkGalahadNavStore").getActiveEntityKeys();e=b("WorkGalahadEntityKey").getThreadID(e);var f=new(h||(h=b("URI")))(b("WWWBase").uri);e!=null?f.setPath("/chat/t/"+e):f.setPath("/chat");f.addQueryData("qa",a);return{uid:a,isAsync:!1,structure:b("FacebarStructuredText").fromString(d),semantic:a,text:a,uri:f,fromCache:c,type:"keyword",isSeeMessages:!0}}};e.exports=a}),null);
  __d("FacebarTimerUtils",[],(function(a,b,c,d,e,f){"use strict";a={getTimestamp:function(){return Date.now()}};e.exports=a}),null);
  __d("FacebarTokenizer",["TokenizeUtil"],(function(a,b,c,d,e,f){"use strict";a='[^"]';var g=["\\s's","'s",'"'+a+'*"?'],h=[[/\s+$/,""],[/\"\s+/,'"'],[/\s+\"/,'"'],[/\"\"/,""],[/^\"$/,""],[/\s+/," "]];c={tokenize:function(a,c){var d=[],e=0;a=a.replace(/\s/g," ").toLowerCase();a.replace(new RegExp(g.join("|"),"g"),function(f,g){if(g>e){var i=a.substr(e,g-e);Array.prototype.push.apply(d,b("TokenizeUtil").parse(i).tokens.slice(0))}i=f;for(var j=0;j<h.length;j++){var k=h[j];i=i.replace(k[0],k[1])}d.length&&i=="'s"?d[d.length-1]+=i:i!==""&&d.push(i);c&&Array.prototype.push.apply(d,b("TokenizeUtil").parse(f).tokens);e=g+f.length});if(e<a.length){var f=a.substr(e,a.length-e);Array.prototype.push.apply(d,b("TokenizeUtil").parse(f).tokens.slice(0))}return d}};e.exports=c}),null);
  __d("ResultsBucketizer",["FacebarGlobalOptions","FacebarJSConstants"],(function(a,b,c,d,e,f){"use strict";a=function(){function a(a,b){this.$1=a,this.$2=b}a.trimResults=function(a,b,c){var d=[];a.forEach(function(a,c){a.indexBeforeBuckets>b&&d.push({index:c,originalIndex:a.indexBeforeBuckets})});d.sort(function(a,b){return a.originalIndex-b.originalIndex}).slice(c).sort(function(a,b){return b.index-a.index}).forEach(function(b){a.splice(b.index,1)})};a.mergeBuckets=function(b,c){var d=[];for(var e in c)!c[e].rule.hidden&&(!c[e].rule.xor||!c[c[e].rule.xor])&&d.push(c[e]);d.sort(function(a,b){var c=(a.rule.position||0)-(b.rule.position||0);return c!==0?c:a.results[0].indexBeforeBuckets-b.results[0].indexBeforeBuckets});b.length=0;d.forEach(function(c,e){c.rule.maxPromotions!=null&&e<d.length-1&&a.trimResults(c.results,d[e+1].results[0].indexBeforeBuckets,c.rule.maxPromotions),Array.prototype.push.apply(b,c.results)}.bind(this))};var c=a.prototype;c.$3=function(a,b){if(b.propertyName==null)return b.bucketName||"default";a=this.$2(a,b.propertyName);return a==null||b.propertyValue!=null&&""+a!==b.propertyValue?!1:b.bucketName||b.propertyName+"."+a};c.$4=function(a,c,d){var e={};d==null&&(d=b("FacebarGlobalOptions").default_num_top_results_to_show);a.forEach(function(a,f){c.some(function(c){var f=this.$3(a,c);if(f===!1)return!1;e[f]==null&&(e[f]={results:[],rule:c});if(f===b("FacebarJSConstants").keywordType&&e[f].results.length>=d)return!0;if(!!c.maxResults&&e[f].results.length>=c.maxResults)return!0;a.bucketLineage.push({bucketName:f,bucketIndex:e[f].results.length});e[f].results.push(a);return!0}.bind(this))}.bind(this));return e};c.$5=function(b,c,d){c=this.$1[c];if(!c)return{};c=this.$4(b,c,d);for(var e in c){var f=c[e].rule.subBucketRules;f&&this.$5(c[e].results,f,d)}a.mergeBuckets(b,c);return c};c.$6=function(a,b,c){if(b.length<=c)return b.slice();a=b.map(function(a){return a.indexBeforeBuckets});var d=a.sort(function(a,b){return a-b})[c];return d==null?b:b.filter(function(a){return a.indexBeforeBuckets<d})};c.bucketize=function(a,b,c,d){a.forEach(function(a,b){a.bucketLineage=[],a.indexBeforeBuckets=b});c=c||{};Object.assign(c,this.$5(a,"main",d));d=this.$6(c,a,b);return d};return a}();e.exports=a}),null);
  __d("FacebarDataSource",["invariant","Arbiter","AsyncRequest","CurrentUser","FacebarGlobalOptions","FacebarGSv2Echo","FacebarInviteCoworkers","FacebarJSConstants","FacebarKeywordSearchUtils","FacebarResultStore","FacebarResultStoreUtils","FacebarSearchAllMessages","FacebarStructuredText","FacebarTimerUtils","FacebarTokenizer","FacebarURI","ResultsBucketizer","ResultsBucketizerConfig","SearchDataSource","URI","Vector","ViewportBounds","WorkGalahadNavStore","WorkplaceSearchTypeaheadConfigs","XFacebookWorkChatInboxController","emptyFunction","gkx","queryThenMutateDOM","throttle"],(function(a,b,c,d,e,f,g){"use strict";var h,i=50,j=b("gkx")("1195440"),k=13,l={};a=function(a){babelHelpers.inheritsLoose(c,a);function c(c){var d;d=a.call(this,c)||this;d.executeQuery=function(a,c,e){d._useCustomQueryId!==!0&&d._curQueryId++;e!=null&&(e.queryId=d._curQueryId,e.startCacheQuery=b("FacebarTimerUtils").getTimestamp());var f=d.getMaxResults(),g=b("CurrentUser").isWorkUser()&&b("WorkGalahadNavStore").getSelectedAppTabID()==="chats";d.setQueryData({qid:d._curQueryId,max_results:f,galahad_chat_tab:g});d.inform("beforeQuery",{value:a,queryId:d._curQueryId});d.value=a;f=d.buildUids(a,[]);e!=null&&(e.endCacheQuery=b("FacebarTimerUtils").getTimestamp());c&&f.length===0&&f.push(c);d.inform("query",{value:a,results:f,queryId:d._curQueryId});d.resultStore&&d.respond(a,f,!1,!1,e)};d.sendRemoteQuery=function(a,c,e){var f=d.getQueryData(a.text_form),g=e!=null?e.queryId:0;f=new(b("AsyncRequest"))().setURI(d.queryEndpoint).setData(f).setMethod("GET").setReadOnly(!0).setAllowCrossPageTransition(!0).setHandler(function(b,d){this.handleQueryResponse(d,b,a,c,e)}.bind(babelHelpers.assertThisInitialized(d),g)).setFinallyHandler(function(){d.activityEnd()});for(var h=d._headerflags,i=Array.isArray(h),j=0,h=i?h:h[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var k;if(i){if(j>=h.length)break;k=h[j++]}else{j=h.next();if(j.done)break;k=j.value}k=k;var l=k[0];k=k[1];f.setRequestHeader(l,k)}d.inform("sending_request",f);d._maxRemoteQueryId=g;e!=null&&(e.waitingQueries=d._waitingQueries,e.inflightRequests=b("AsyncRequest").getInflightCount(),e.startRemoteQuery=b("FacebarTimerUtils").getTimestamp());f.send();d.activityStart()};d.renderResults=function(a,c,e,f,g){g!=null?l[String(a)]=g:g=l[String(a)],b("FacebarGSv2Echo").insertInto(a,c,!e,d._single_state,d._is_local,d._categoryName),!!a&&a instanceof b("FacebarStructuredText")&&!a.isEmptyOrWhitespace()&&!d._bypassBucketizer&&(c=d._bucketizeResults(a,c,g)),c.length=Math.min(c.length,d.getMaxResults()),d.injectExtraResults(a,c),f=e&&c.length===0,d.inform("respond",{value:a,results:c,isAsync:!!e,isEmptyResults:f})};d._fetched_null_state=null;d._initialQueryData=null;d._curQueryId=-1;d._maxRemoteQueryId=-1;d._single_state=!1;d._is_local=!1;d._categoryName=null;d._waitingQueries=0;d.mixGrammarAndEntity=c.mixGrammarAndEntity!==void 0?c.mixGrammarAndEntity:!0;d._isInjectedSuggestionFlow=!1;d._useCustomQueryId=!1;d.grammarVersion=c.grammarVersion||"";c.grammarOptions||(c.grammarOptions={});d._headerflags=c.headerflags||new Map();d.recordingRoute="banzai_vital";d._maxGrammarResults=c.grammarOptions.maxGrammarResults;d.nullStateEndpoint=c.nullStateEndpoint||"/ajax/browse/null_state.php";d.setNullStateData(c.nullStateData||{},!0);d._minQueryLength=c.minQueryLength||-1;d._performShortQuery=c.performShortQuery||!1;d._fixProcessLean=c.grammarOptions.fixProcessLean||!1;d.throttleExecuteQuery();d.throttleSendRemoteQuery();d.throttleRenderResults();d.resultStoreOptions=c.grammarOptions||{};d.resultStoreOptions.useNewExactNameMatch=c.grammarOptions.useNewExactNameMatch==="true";d.defaultQuery=null;d._bypassBucketizer=!1;d._resultsBucketizer=new(b("ResultsBucketizer"))(b("ResultsBucketizerConfig").rules,function(a,b){switch(b){case"isSeeMore":return a.isSeeMore;case"objectType":return a.type;case"resultSetType":return a.isWorkplacePost?"workpost":null;case"renderType":return a.render_type||a.type;case"cacheOnlyResult":return a.cacheOnlyResult;case"closeEntity":return a.bootstrapped||(a.tags?a.tags[b]:void 0);default:return a.tags?a.tags[b]:void 0}});d.fetchNullState();d.initWithConfig(b("FacebarGlobalOptions").grammarConfig);d.subscribe("bootstrapped",function(){b("Arbiter").subscribe("FacebarDataSource.getBootstrapMatches",function(b,a){a.callback.call(null,d.getBootstrapMatches(a.query,a.whitelistedEntIds))})});return d}var d=c.prototype;d.initWithConfig=function(a){this.facebarConfig=a,this.createResultStore(),this._fetched_null_state&&(this.setNullState(this._fetched_null_state),this._fetched_null_state=null)};d.throttleExecuteQuery=function(){var a=b("FacebarGlobalOptions").executeQueryThrottleTime;this.executeQueryThrottled=b("throttle").withBlocking(this.executeQuery,a,this)};d.throttleSendRemoteQuery=function(){var a=b("FacebarGlobalOptions").sendRemoteQueryThrottleTime;a===0?this.sendRemoteQueryThrottled=this.sendRemoteQuery:this.sendRemoteQueryThrottled=b("throttle").withBlocking(this.sendRemoteQuery,a,this)};d.throttleRenderResults=function(){var a=this,c=b("FacebarGlobalOptions").renderThrottleTime;if(c===0){this.renderResultsThrottled=this.renderResults;return}var d=Date.now();this.renderResultsThrottled=function(b,e,f,g,h){var i=Date.now();(f||d+c<i)&&(d=i,a.renderResults(b,e,f,g,h))}};d.createResultStore=function(){this.facebarConfig.maxGrammarResults=this._maxGrammarResults,b("CurrentUser").isWorkUser()?(this.facebarConfig.enableExactQueryMatchCost=!0,this.facebarConfig.non_exact_query_match_penalty=.5):(this.facebarConfig.enableExactQueryMatchCost=!1,this.facebarConfig.non_exact_query_match_penalty=0),this.resultStore=new(b("FacebarResultStore"))(this.facebarConfig,b("FacebarTokenizer").tokenize,this.getEntry.bind(this),this.resultStoreOptions),this._fixProcessLean&&this._processLean(),this.subscribe("setSortFunction",function(a,b){this.resultStore.setSortFunction(b)}.bind(this))};d.dirty=function(){this._nullStateFetched=!1,this.resultStore.resetCaches(),a.prototype.dirty.call(this)};d.refreshNullstate=function(a,c){a===void 0&&(a=b("emptyFunction")),c===void 0&&(c=b("emptyFunction")),this._nullStateFetched=!1,this.fetchNullState(a,c)};d.addEntries=function(a){this.resultStore.addBootstrap(this.processEntries(a))};d._processLean=function(){if(this._fixProcessLean){if(this._leanPayload&&this.resultStore){var b,c=this._leanPayload.entries;for(var d in c){b=this.getEntry(d);if(!b)continue;for(var e in c[d])b.grammar_costs||(b.grammar_costs={}),b.grammar_costs["{"+e+"}"]=c[d][e]}this.setExclusions(this._leanPayload.blocked);this._leanPayload=null}}else a.prototype._processLean.call(this)};d.setNullStateData=function(a,b){b&&(this.nullStateData={grammar_version:this.grammarVersion});Object.assign(this.nullStateData,a);return this};d.setNullState=function(a){var c={};a.queries=a.queries.filter(function(a){if(a.isWorkplacePost)return!0;a=a.parse.display.join(" ").toLowerCase();if(!c[a]){c[a]=!0;return!0}return!1});this._null_state=a;this.processEntries(this._null_state.entities);this.resultStore.setNullState(this._null_state.queries);this.resultStore.addNullStateToQueryCache(this.getRawStructure(b("FacebarStructuredText").fromString("")))};d.getNullStateTrending=function(){return this._null_state.trending};d.setSingleState=function(a){this._single_state=a};d.getSingleState=function(){return this._single_state};d.setLocal=function(a){this._is_local=a};d.setCategoryName=function(a){this._categoryName=a};d.overrideNullState=function(a){this._null_state!=null||g(0,5553),this._original_null_state=this._original_null_state||this._null_state,this.setNullState(a)};d.restoreNullState=function(){this._original_null_state&&this.setNullState(this._original_null_state)};d.fetchNullState=function(a,c){a===void 0&&(a=b("emptyFunction"));c===void 0&&(c=b("emptyFunction"));if(this._nullStateFetched){this.activityStart();setTimeout(this.activityEnd.bind(this),0);a();return}var d=new(b("AsyncRequest"))().setURI(this.nullStateEndpoint).setData(this.nullStateData).setMethod("GET").setReadOnly(!0).setAllowCrossPageTransition(!0).setHandler(function(b){this.resultStore?(this.setNullState(b.payload),this.inform("nullstateReady",!0)):this._fetched_null_state=b.payload,this._nullStateFetched=!0,a()}.bind(this)).setErrorHandler(function(){c()}).setFinallyHandler(this.activityEnd.bind(this));this.activityStart();d.send()};d.toTypeaheadEntryUid=function(a,c){var d,e=b("FacebarStructuredText").fromStruct(c.structure),f=e.getFragment(0);if(e.getCount()==1&&f.isType("ent")){var g=f.getType().split(":")[2];d=this.getEntry(f.getUID(),g);d.type=this.resultStore.stripBrackets(c.type)}else d=this.getEntry(c.tuid),d||(d={dynamic_cost:c.dynamic_cost,extra_uri_params:c.extra_uri_params,memcache:c.fromMemcache,photo:c.photo,results_set_type:c.resultsSetType,tuid:c.tuid,type:c.type,uid:c.tuid,tags:c.tags},this.processEntries([d]),d=this.getEntry(c.tuid)),d.icon_class=c.iconClass,d.unseen_posts=c.unseen_posts,d.category=c.category,d.subtext=c.subtext,d.boldedSubtext=c.boldedSubtext,d.is_work_foreign_entity=c.is_work_foreign_entity,d.official_status=c.official_status;d.error_info=c.errorInfo;d.logInfo=c.logInfo;d.itemLoggingInfo=c.item_logging_info;d.itemLoggingId=c.item_logging_id;d.structure=e;d.text=d.structure.toString();d.queryTypeText=c.queryTypeText;d.semantic=!!c.isSingleState&&c.singleStateSemantic?c.singleStateSemantic:c.semantic;d.alternateSemantic=c.alternateSemantic;d.tree=c.tree;d.cost=c.cost;d.isSeeMore=!!c.isSeeMore;d.isNullState=!!c.isNullState;d.isSingleState=!!c.isSingleState;d.keywordSource=c.keywordSource;d.keyword=c.keyword;f=c.keyword_type;d.keywordType=f;d.isTrending=!!c.isTrending||c.keywordBootstrapType===b("FacebarJSConstants").keywordBootstrapTypes.trending||f===b("FacebarJSConstants").keywordTypes.trending;d.isCelebrity=f===b("FacebarJSConstants").keywordTypes.celebrity;d.isFootball=f===b("FacebarJSConstants").keywordTypes.football;d.isPhotos=f===b("FacebarJSConstants").keywordTypes.photos;d.isVideos=f===b("FacebarJSConstants").keywordTypes.videos;d.isHashtag=f===b("FacebarJSConstants").keywordTypes.hashtag;d.isLocal=f===b("FacebarJSConstants").keywordTypes.local||f===b("FacebarJSConstants").keywordTypes.local_category;d.isCompany=f===b("FacebarJSConstants").keywordTypes.company;d.isMovie=f===b("FacebarJSConstants").keywordTypes.movie;d.isHappeningNow=f===b("FacebarJSConstants").keywordTypes.happeningNow;d.isSpecialIntentGeneric=f===b("FacebarJSConstants").keywordTypes.specialIntentGeneric;d.isLink=f===b("FacebarJSConstants").keywordTypes.link;b("FacebarJSConstants").intentKeys.map(function(a){d.isSpecialIntent=d.isSpecialIntent||d[a]});d.isRecent=!!c.isRecent;d.isNullState&&(d.isWorkplacePost=!!c.isWorkplacePost,d.postUri=c.postUri,d.attachedPhoto=c.attachedPhoto);d.isWorkplacePost&&(d.uri=new(h||(h=b("URI")))(d.postUri));d.isPrefetched=!!c.isPrefetched;d.isSuggestion=!!c.isSuggestion;d.isInjectedSuggestion=!!c.isInjectedSuggestion;d.isFromGSEF=!!c.isFromGSEF;d.isGloballyCachedKeyword=!!c.isGloballyCachedKeyword;d.entityInfo=c.entityInfo;d.cacheOnlyResult=c.cacheOnlyResult||!1;if(!b("CurrentUser").isWorkUser()&&(!b("FacebarGlobalOptions").logSERPClickAsRecentSearch||!c.isNullState)){g=b("FacebarStructuredText").fromStruct(c.structure).toString().toLowerCase();e=b("FacebarKeywordSearchUtils").makeFacebarEntry(g);d.uri=e.uri;d.semantic=e.semantic;d.structure=e.structure}else d.uri=d.uri||b("FacebarURI").getURI(this.facebarConfig,d);b("WorkplaceSearchTypeaheadConfigs").unifySearchBox&&b("WorkGalahadNavStore").getSelectedAppTabID()==="chats"&&d.type==="user"&&(d.uri=b("XFacebookWorkChatInboxController").getURIBuilder().setString("thread_key",d.semantic).getURI());d.parse=c.parse;d.tags=c.tags||{};d.isKeywordL2=c.isKeywordL2||!1;d.exactMatchKeyword=c.exactMatchKeyword||!1;d.qid=c.qid;d.templateID=c.templateID;c.isJSBootstrapMatch&&(d.isJSBootstrapMatch=c.isJSBootstrapMatch,d.backendCost=c.backendCost,d.bootstrapCost=c.bootstrapCost,d.keywordBootstrapType=c.keywordBootstrapType);this._replaceCategoryWithTermMatches(a,d,c);return d.tuid};d._replaceCategoryWithTermMatches=function(a,b,c){if(b.type!=="user"&&b.type!=="page")return;if(!b.term_to_subtitle||!c.termMatches)return;var d=b.alias,e=d==null?"":this.resultStore._convertToAliasKey(d),f=[];c.termMatches.forEach(function(c){var d=b.term_to_subtitle[c];!a.is_alias_search&&c===e&&c!==a.potential_alias_term&&(d=null);d&&f.push(d)},this);b.category===void 0&&(b.category="");b.original_category!==void 0&&(b.category=b.original_category);if(!f||f.length===0)return;b.original_category===void 0&&(b.original_category=b.category);if(!b.original_category)return;d=b.original_category.length>0?b.original_category.split(" \xb7 "):[];d.unshift.apply(d,f);d=d.filter(function(a,b,c){return b==c.indexOf(a)});b.category=d.splice(0,2).join(" \xb7 ")};d.getRawStructure=function(a){typeof a==="string"&&(a=b("FacebarStructuredText").fromString(a));if(this.resultStore)return this.resultStore.transformStructured(a.toArray())};d.saveResult=function(a){this._initialQueryData=this.getUID(a.uid,a.fetchType)};d.isDefaultKeywordQuery=function(a){return a.type===b("FacebarJSConstants").keywordType&&b("FacebarResultStoreUtils").getTextFromResult(a).toLowerCase()===this.value.getHash().trim().toLowerCase()};d.buildUids=function(a){var c=this;if(!a||!this.resultStore)return[];typeof a==="string"&&(a=b("FacebarStructuredText").fromString(a));var d=this.getRawStructure(a);a=this.resultStore.getResults(d,this.getMaxResults());var e=a.results;if(e===void 0)return[];a=a.null_state===!0;var f=0;e=e.filter(function(a,c){return!b("FacebarGlobalOptions").allowGrammar&&a.type=="grammar"?!1:a.semantic!="<blank>"&&(a.type!="unimplemented"||f++===0)},this);var g=[],h=[],i=[];e.forEach(function(a){a.forcedPosition>0?i.push(a):a.isSeeMore?g.push(a):h.push(a)});a?e=this.orderNullState(e,this.getMaxResults()):e=h;i.length>0&&(i.sort(function(a,b){return a.forcedPosition-b.forcedPosition}),i.forEach(function(a){e.splice(a.forcedPosition,0,a)}));g.length>0&&e.push.apply(e,g);return e.map(function(a){return c.toTypeaheadEntryUid(d,a)})};d.orderNullState=function(a,b){var c={top:[],bottom:[],middle:[]},d=function(a){a=a.null_state_position;return Object.prototype.hasOwnProperty.call(c,a)?a:"middle"},e=function(a,b){return a.original_cost-b.original_cost};a&&a.forEach(function(a){c[d(a)].push(a)},this);for(var f in c)c[f]=c[f].sort(e).slice(0,b),b-=c[f].length;return[].concat(c.top,c.middle,c.bottom)};d.isEntity=function(a){return!a?!1:/^\d+$/.test(a)};d.handleResponse=function(a,b){var c=this;a.payload.errors||(this.processEntries(a.payload.entities),a.payload.results.forEach(function(d){d.qid=a.queryId,d.parse||(d.parse={}),d.parse.entTokens=d.parse.entTokens||[],d.parse.remTokens=d.parse.remTokens||[],d.parse.suffix=d.parse.suffix||"",c.isEntity(d.semantic)&&(d=c._buildCommonEntityFields(d,b.tokens))}),this.saveResults(a,b))};d.saveResults=function(a,b){a.payload.prefetched&&this.processPrefetched(a.payload.prefetched),this.resultStore.saveResults(a.payload.results,b,a.payload.incomplete,{},[])};d.processPrefetched=function(a){var c=this,d=function(d){var e=b("FacebarStructuredText").fromString(d),f=c.getRawStructure(e);e=a[d];c.processEntries(e.entities);e.results.forEach(function(a){c.isEntity(a.semantic)&&(a=c._buildCommonEntityFields(a,f.tokens))});c.resultStore.saveResults(e.results,f,e.incomplete)};for(var e in a)d(e)};d.processEntries=function(a){return a.map(function(a,b){var c=a.uid+="";a.textToIndex=this.getTitleTerms(a);a.titleToIndex=this.getTitleTerms(a);c=this.getUID(c,a.fetchType);var d=this.getEntry(c);!d?(this.setEntry(c,{}),d=this.getEntry(c)):delete a.photo;Object.assign(d,a);d.tuid=c;d.index===void 0&&(d.index=b);return c},this)};d.getUID=function(a,b){a+="";if(b!==void 0){b=/([^:]+:)?([^:]+)(:.*)?/.exec(b)[2];return JSON.stringify([a,b])}return a};d.getEntry=function(b,c){b=""+b;c=c!=null?a.prototype.getEntry.call(this,this.getUID(b,c))||a.prototype.getEntry.call(this,b):a.prototype.getEntry.call(this,b);return c};d.getEntryForFragment=function(a){return this.getEntry(a.getUID(),a.getTypePart(2))};d.getMaxResults=function(){if(j)return k;return b("gkx")("1370455")?this._numResults.max+1:this._numResults.max};d.query=function(a,c,d){this.executeQueryThrottled(a,this._initialQueryData,{keyPress:b("FacebarTimerUtils").getTimestamp()}),this._initialQueryData=null};d.setCustomQueryID=function(a){this._customQueryID=a};d.shouldFetchMore=function(a,c){if(!a.is_empty&&!b("CurrentUser").isWorkUser()){var d=c.filter(function(a){return a.type===b("FacebarJSConstants").keywordType}).length;if(d<b("FacebarGlobalOptions").default_num_top_results_to_show)return!0}if(a.is_empty)return!1;if(this.resultStore.alreadyKnown(a.cache_id))return!1;if(a.raw_text&&this._isQueryTooShort(a.raw_text))return!1;if(j)return!0;return c.length<this.getMaxResults()||this._performShortQuery?!0:this.countValidResults(c)<this.getMaxResults()||this._performShortQuery};d.countValidResults=function(a){var b=0;a.forEach(function(a){a&&!a.isNullState&&!a.isSeeMore&&b++},this);return b};d.handleQueryResponse=function(a,c,d,e,f){var g=this,h=a.payload;a.queryId=c;a.inputQuery=d.text_form;h.results!=null&&h.results.forEach(function(a){a.isSingleState=g._single_state});f!=null&&(f.endRemoteQuery=b("FacebarTimerUtils").getTimestamp());this.inform("response_received",a);this.handleResponse(a,d);c=[];h.abandon_cache&&(c=h.results.map(function(a){return g.toTypeaheadEntryUid(d,a)}));var i=h.num_topresults_to_show;(i==null||i<3)&&(i=3);this.respond(e,c,!0,h&&(!h.results||h.results.length===0),f,i);this.inform("backend_response",a)};d.activityStart=function(){this._waitingQueries||this.inform("activity",{activity:!0},"state"),this._waitingQueries++};d.activityEnd=function(){this._waitingQueries--,this._waitingQueries||this.inform("activity",{activity:!1},"state")};d._bucketizeResults=function(a,b,c){b=this._tagKeywordsSuggestions(b);return this._resultsBucketizer.bucketize(b,i,null,c)};d._tagKeywordsSuggestions=function(a){if(!a||a.length===0)return a;var c=a[0];if(c.bootstrapped)return a;return c.type==="grammar"||c.cost<b("FacebarGlobalOptions").closeEntityThreshold&&c.type==="user"?a:a.map(function(a){if(a.type!==b("FacebarJSConstants").keywordType)return a;a=babelHelpers["extends"]({},a);a.tags.topBucket=!0;return a})};d._buildCommonEntityFields=function(a,c){if(a.queryTypeText)return a;a.parse.display=[{type:"ent:"+a.type,uid:a.semantic}];a.parse.fetchType&&(a.parse.display[0].fetchType=a.parse.fetchType);a.parse.entTokens=c;a.parse.pos=0;a.resultsSetType="{"+a.type+"}";a.queryTypeText=b("FacebarJSConstants").defaultQueryTypeText;return a};d.setBypassBucketizer=function(a){this._bypassBucketizer=a};d.respond=function(a,c,d,e,f,g){d&&this.value&&(typeof this.value==="string"&&(this.value=b("FacebarStructuredText").fromString(this.value)),this.inform("remote_query_match",{isMatch:this.value.matches(a),queryId:f!=null?f.queryId:0}),a=this.value,(!c||c.length===0)&&(c=this.buildUids(a)));this.inform("reorderResults",c);this.inform("respondValidUids",c);c=c.map(this.getEntry,this);c.forEach(function(a,b){a.fromCache=!d,a.isSingleState=this._single_state},this);if(!d&&(a.getHash().length<512||a.getHash().startsWith("http://")||a.getHash().startsWith("https://"))){var h=this.getRawStructure(a);this.shouldFetchMore(h,c)&&(f!=null&&(f.dispatchRemoteQuery=b("FacebarTimerUtils").getTimestamp()),this.sendRemoteQueryThrottled(h,a,f))}(!d||f==null||f.queryId===this._maxRemoteQueryId)&&this.renderResultsThrottled(a,c,d,e,g);f!=null&&this.logLatencies(d,f)};d.injectExtraResults=function(a,c,d){b("FacebarInviteCoworkers").insertInto(a,c,!d,this._single_state),b("FacebarSearchAllMessages").insertInto(a,c,!d)};d.logLatencies=function(a,c){var d=b("FacebarTimerUtils").getTimestamp();a?this.inform("remote_query_latency",{queryId:c.queryId,latencies:{queryStart:Math.max(c.startRemoteQuery-c.dispatchRemoteQuery,0),queryEnd:Math.max(c.endRemoteQuery-c.startRemoteQuery,0),keyPressToQueryDispatch:Math.max(c.dispatchRemoteQuery-c.keyPress,0),keyPressToQueryStart:Math.max(c.startRemoteQuery-c.keyPress,0),keyPressToQueryEnd:Math.max(c.endRemoteQuery-c.keyPress,0),render:Math.max(d-c.endRemoteQuery,0),inflightRequests:c.inflightRequests,waitingQueries:c.waitingQueries,keyPressToRender:Math.max(d-c.keyPress,0)}}):this.inform("cache_query_latency",{queryId:c.queryId,latencies:{queryStart:Math.max(c.startCacheQuery-c.keyPress,0),queryEnd:Math.max(c.endCacheQuery-c.startCacheQuery,0),keyPressToQueryEnd:Math.max(c.endCacheQuery-c.keyPress,0),render:Math.max(d-c.endCacheQuery,0),keyPressToRender:Math.max(d-c.keyPress,0)}})};d._updateMaxResults=function(){var a=this;b("queryThenMutateDOM")(function(){var c=b("Vector").getViewportDimensions().y,d=b("ViewportBounds").getTop()||42,e=56,f=48;c=c-d-f-25;a._maxResults=Math.max(a._numResults.min,Math.min(a._numResults.max,Math.floor(c/e)-1));a.value&&a.query(a.value)})};d.setUseCustomQueryId=function(a){this._useCustomQueryId=a};d.setCurQueryId=function(a){this._curQueryId=a};d.getCurQueryId=function(){return this._curQueryId};d.setMinQueryLength=function(a){this._minQueryLength=a};d.setGrammarOption=function(a){b("FacebarGlobalOptions").allowGrammar=a};d.getBootstrapMatches=function(a,c){var d=this;c===void 0&&(c=[]);var e=this.getRawStructure(b("FacebarStructuredText").fromString(a));a=this.resultStore.getBootstrapMatches(e,c);return a.map(function(a){return d.getEntry(d.toTypeaheadEntryUid(e,a))})};return c}(b("SearchDataSource"));Object.assign(a.prototype,{events:["query","respond","bootstrapped","activity","ready"]});e.exports=a}),null);
  __d("XTypeaheadDeleteRecentSearchController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/ajax/typeahead/delete_recent_search/",{recent_search:{type:"String",required:!0}})}),null);
  __d("FacebarRemoveRecentSearchDialog.react",["cx","fbt","AsyncRequest","BanzaiODS","FacebarTypeaheadRefreshNullstate","React","XTypeaheadDeleteRecentSearchController","XUIDialogBody.react","XUIDialogButton.react","XUIDialogFooter.react","XUIDialogTitle.react","XUINotice.react","cxMargin"],(function(a,b,c,d,e,f,g,h){"use strict";var i=b("React");a=function(a){babelHelpers.inheritsLoose(c,a);function c(){var c,d;for(var e=arguments.length,f=new Array(e),g=0;g<e;g++)f[g]=arguments[g];return(c=d=a.call.apply(a,[this].concat(f))||this,d.state={isDisabled:!1,showError:!1},d.$1=function(){b("BanzaiODS").bumpEntityKey(2966,"search.www.remove_recent_search.dialog","error"),d.setState({isDisabled:!1,showError:!0})},d.$2=function(){b("BanzaiODS").bumpEntityKey(2966,"search.www.remove_recent_search.dialog","remove");var a=b("XTypeaheadDeleteRecentSearchController").getURIBuilder().setString("recent_search",d.props.recentSearch).getURI();d.setState({isDisabled:!0});new(b("AsyncRequest"))().setURI(a).setMethod("POST").setHandler(function(){d.setState({isDisabled:!1}),b("FacebarTypeaheadRefreshNullstate").forceNullstateRefresh(d.props.onNullstateReadyAfterRemoval,d.$1)}).setErrorHandler(d.$1).send()},c)||babelHelpers.assertThisInitialized(d)}var d=c.prototype;d.render=function(){return i.jsxs("div",{children:[i.jsx(b("XUIDialogTitle.react"),{children:h._("\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e25\u0e1a\u0e01\u0e32\u0e23\u0e04\u0e49\u0e19\u0e2b\u0e32\u0e19\u0e35\u0e49\u0e2d\u0e2d\u0e01\u0e08\u0e32\u0e01\u0e1b\u0e23\u0e30\u0e27\u0e31\u0e15\u0e34\u0e01\u0e32\u0e23\u0e04\u0e49\u0e19\u0e2b\u0e32\u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13\u0e2b\u0e23\u0e37\u0e2d\u0e44\u0e21\u0e48")}),i.jsxs(b("XUIDialogBody.react"),{children:[h._("\u0e04\u0e38\u0e13\u0e44\u0e14\u0e49\u0e04\u0e49\u0e19\u0e2b\u0e32\u0e2a\u0e34\u0e48\u0e07\u0e19\u0e35\u0e49\u0e21\u0e32\u0e01\u0e48\u0e2d\u0e19 \u0e01\u0e32\u0e23\u0e25\u0e1a{=[query]}\u0e2d\u0e2d\u0e01\u0e08\u0e32\u0e01\u0e1b\u0e23\u0e30\u0e27\u0e31\u0e15\u0e34\u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13\u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e25\u0e1a\u0e2a\u0e34\u0e48\u0e07\u0e19\u0e35\u0e49\u0e2d\u0e2d\u0e01\u0e08\u0e32\u0e01\u0e1b\u0e23\u0e30\u0e27\u0e31\u0e15\u0e34\u0e01\u0e32\u0e23\u0e04\u0e49\u0e19\u0e2b\u0e32\u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13\u0e43\u0e19\u0e17\u0e38\u0e01\u0e2d\u0e38\u0e1b\u0e01\u0e23\u0e13\u0e4c",[h._param("=[query]",i.jsx("strong",{children:h._("{query}",[h._param("query",this.props.recentSearch)])}))]),this.state.showError?i.jsx(b("XUINotice.react"),{use:"warn",className:"_3-8x",children:h._("\u0e02\u0e2d\u0e2d\u0e20\u0e31\u0e22 \u0e21\u0e35\u0e1a\u0e32\u0e07\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e1c\u0e34\u0e14\u0e1e\u0e25\u0e32\u0e14 \u0e42\u0e1b\u0e23\u0e14\u0e25\u0e2d\u0e07\u0e2d\u0e35\u0e01\u0e04\u0e23\u0e31\u0e49\u0e07")}):null]}),i.jsxs(b("XUIDialogFooter.react"),{children:[i.jsx(b("XUIDialogButton.react"),{label:h._("\u0e22\u0e01\u0e40\u0e25\u0e34\u0e01"),action:"cancel",disabled:this.state.isDisabled}),i.jsx(b("XUIDialogButton.react"),{label:h._("\u0e25\u0e1a"),className:"autofocus",use:"confirm",onClick:this.$2,disabled:this.state.isDisabled})]})]})};return c}(i.Component);e.exports=a}),null);
  __d("StructuredInputDOM",["cx","CSS","DOM","FacebarGlobalOptions","createArrayFromMixed","getElementText","isElementNode","isTextNode"],(function(a,b,c,d,e,f,g){a=function(){return"_4v1s"};var h={ENTITY_CLASS:a(),encodeText:function(a){return a.replace(/ /g,"\xa0")},decodeText:function(a){return a.replace(/\u00a0/g," ")},createIconNode:function(a){if(a&&typeof a==="object"){a=b("DOM").create("i",{className:a.className,style:a.uri&&{backgroundImage:'url("'+a.uri+'")'}});a.setAttribute("data-select","ignore");return a}},createTextNode:function(a){return b("DOM").create("span",{"data-si":!0},h.encodeText(a||""))},createEntityNode:function(a,c){var d=h.encodeText(a.text),e=h.createIconNode(c.icon);e=b("DOM").create("span",{},e?[e,d]:d);var f=(c.className||"").split(/\s+/);f.push(h.ENTITY_CLASS);f.forEach(b("CSS").addClass.bind(b("CSS"),e));f={si:!0,uid:a.uid,type:a.type,text:d,"is-local":a.isLocal,"category-name":a.categoryName,fulltext:d,group:c.group,select:c.select,icon:JSON.stringify(c.icon||null)};for(var g in f)f[g]!=null&&e.setAttribute("data-"+g,f[g]);return e},convertToTextNode:function(a){a.className="";a.setAttribute("data-type","text");a.removeAttribute("data-group");a.removeAttribute("data-select");a.removeAttribute("data-icon");a.removeAttribute("data-uid");a.removeAttribute("data-is-local");a.removeAttribute("data-category-name");for(var a=a.firstChild;a;a=a.nextSibling)b("isTextNode")(a)||b("DOM").remove(a)},isEntityNode:function(a){return b("isElementNode")(a)&&b("CSS").hasClass(a,h.ENTITY_CLASS)},containsOnlyText:function(a,c){c=b("createArrayFromMixed")(c);for(var d=a.firstChild;d;d=d.nextSibling)if(!(b("isTextNode")(d)||a.nodeName in c))return!1;return!0},getText:function(a){return b("getElementText")(a).replace(/ /g,"\xa0")},getDecodedText:function(a){return h.decodeText(b("getElementText")(a))},getLength:function(a){return b("getElementText")(a).length},getMarker:function(a,c,d){a=a.firstChild;while(a){var e=h.getLength(a);if(e>c||!a.nextSibling)if(b("isTextNode")(a)||!d)return{node:a,offset:Math.min(c,e)};else return h.getMarker(a,c);else c-=e;a=a.nextSibling}}};e.exports=h}),null);
  __d("StructuredInputUtil",["StructuredInputDOM"],(function(a,b,c,d,e,f){function g(a,b,c){a=a.substr(0,b).lastIndexOf(c);return a!==-1?a+1:0}function h(a,b,c){c=a.indexOf(c,b);return c!==-1?c:a.length}function i(a,b,c){return b===0||b===a.length||a.substr(b,c.length)==c}function j(a,b,c,d){switch(b){case"none":return c;case"all":return d?a.length:0;case"word":if(i(a,c,"\xa0"))return c;else if(d)return h(a,c,"\xa0");else return g(a,c,"\xa0")}}function k(a,c){return c&&b("StructuredInputDOM").isEntityNode(a)&&!b("StructuredInputDOM").isEntityNode(c)}var l={getMarkerAtOffset:function(a,c){var d=a.firstChild,e=0,f=0;while(d){e+=f;f=b("StructuredInputDOM").getLength(d);if(e+f>c)break;else d=d.nextSibling}return{node:d||a.lastChild,offset:c-e}},validateEntityText:function(a){var c=b("StructuredInputDOM").getText(a),d=a.getAttribute("data-fulltext");a=a.getAttribute("data-group");if(a=="hashtag"){var e=c.match(/#[^\s]+/);d=e&&e[0]}e=c.indexOf(d);var f={prefix:null,entity:null,suffix:null};switch(a){case"none":f.entity=c;break;case"hashtag":case"all":e!=-1?(f.prefix=c.substr(0,e),f.entity=c.substr(e,d.length),f.suffix=c.substr(e+d.length)):f.suffix=c;break;case"word":e!=-1&&(f.prefix=c.substr(0,e),c=c.substr(e));a=0;e=0;while(a<d.length){e=h(d,a+1,"\xa0");if(c.substr(0,e)!=d.substr(0,e))break;else a=e}f.entity=c.substr(0,a)||null;f.suffix=c.substr(a)||null}return f},getGrouping:function(a,b){var c=a.getAttribute("data-group");a=a.getAttribute("data-select");if(b=="select")return a=="group"?c:"none";else return c},snapMarkerToText:function(a,c){var d=a.node;if(b("StructuredInputDOM").isEntityNode(d)){var e=a.offset;c=l.getGrouping(d,c);if(c!="none")if(e===0){c=d.previousSibling;if(k(d,c))return{node:c,offset:b("StructuredInputDOM").getLength(c)}}else if(e==b("StructuredInputDOM").getLength(d)){c=d.nextSibling;if(k(d,c))return{node:c,offset:0}}}return a},nextMarkerBoundary:function(a,c,d){var e=a.node;if(b("StructuredInputDOM").isEntityNode(e)&&(!c||a.offset!==0)){d=l.getGrouping(e,d);if(d!="none")return{node:a.node,offset:j(b("StructuredInputDOM").getText(e),d,a.offset,c)}}return a}};e.exports=l}),null);
  __d("StructuredInputCleaner",["DOM","StructuredInputDOM","StructuredInputUtil","UserAgent_DEPRECATED","createArrayFromMixed","getElementText","isTextNode"],(function(a,b,c,d,e,f){a=function(){"use strict";function a(a,b,c){this._node=a,this._selection=b,this._wrapText=c}var c=a.prototype;c._cleanEntityNode=function(a){var c=a.getAttribute("data-text"),d=b("StructuredInputDOM").getText(a);a.style.cssText="";if(c==d&&b("StructuredInputDOM").containsOnlyText(a,{I:!0}))return null;c=[];var e=b("StructuredInputUtil").validateEntityText(a),f=b("StructuredInputDOM").createIconNode(JSON.parse(a.getAttribute("data-icon")));if(!e.entity&&(e.suffix&&!e.prefix||e.prefix&&!e.suffix)){b("StructuredInputDOM").convertToTextNode(a);a.setAttribute("data-text",d);return null}e.prefix&&c.push(this._createTextNode(e.prefix));e.entity&&(this._selection&&b("getElementText")(a)!==e.entity&&this._selection.markDirty(a),b("DOM").setContent(a,f?[f,e.entity]:e.entity),a.setAttribute("data-text",e.entity),c.push(a));e.suffix&&c.push(this._createTextNode(e.suffix));return c};c._removeSpecialNodes=function(){var a=b("createArrayFromMixed")(this._node.getElementsByTagName("script")),c=b("createArrayFromMixed")(this._node.getElementsByTagName("style"));a.forEach(b("DOM").remove);c.forEach(b("DOM").remove)};c._collapseNodes=function(){for(var a,c=this._node.firstChild;c;c=a){a=c.nextSibling;if(!b("isTextNode")(c)&&!b("StructuredInputDOM").isEntityNode(c)&&!b("StructuredInputDOM").containsOnlyText(c))for(var d=c.lastChild;d;d=c.lastChild)this._node.insertBefore(d,a),a=d}};c._createTextNode=function(a){if(this._wrapText)return b("StructuredInputDOM").createTextNode(a);else return document.createTextNode(a)};c.replaceNodes=function(a,c){if(c==null)return;var d=a.length?a[a.length-1].nextSibling:null;a.forEach(function(a){c.indexOf(a)===-1&&b("DOM").remove(a)},this);c.reverse().forEach(function(b){a.indexOf(b)===-1&&this._node.insertBefore(b,d),d=b},this)};c.clean=function(){var a=this;this._removeSpecialNodes();this._collapseNodes();var c=[],d=function(){c.length&&(this.replaceNodes(c,this._cleanTextNodes(c)),c.length=0)}.bind(this);Array.from(this._node.childNodes).forEach(function(e){b("StructuredInputDOM").isEntityNode(e)?(a.replaceNodes([e],a._cleanEntityNode(e)),d(c)):c.push(e)});d();!this._node.firstChild&&b("UserAgent_DEPRECATED").firefox()&&this._node.appendChild(this._createTextNode())};c.endOnText=function(){var a=function(a,c){b("StructuredInputDOM").isEntityNode(a)&&this._node.insertBefore(this._createTextNode(),c?a:null)}.bind(this);a(this._node.firstChild,!0);a(this._node.lastChild,!1)};return a}();Object.assign(a.prototype,{_cleanTextNodes:function(){var a=function(a){return a.nodeName==="BR"||a.nodeName==="SPAN"&&c(a)},c=function(a){return a.getAttribute("data-si")&&b("StructuredInputDOM").containsOnlyText(a)&&b("StructuredInputDOM").getLength(a)>0};return function(c){if(c.length!=1||!a(c[0])){var d=c.map(b("StructuredInputDOM").getText).join("").replace(/\s+/g," ");return d?[this._createTextNode(d)]:[]}else{c[0].style.cssText="";return}}}()});e.exports=a}),null);
  __d("DOMSelection",[],(function(a,b,c,d,e,f){(function(){var a=this,b={isPreceding:function(a,b){return b.compareDocumentPosition(a)&2},contains:function(a,b){if(a.compareDocumentPosition!=null)return a.compareDocumentPosition(b)&16;else return a.contains(b)},isCursorPreceding:function(a,c,d,e){if(a===d)return c<=e;if(b.isText(a)&&b.isText(d))return b.isPreceding(a,d);if(b.isText(a)&&!b.isText(d))return!b.isCursorPreceding(d,e,a,c);if(!b.contains(a,d))return b.isPreceding(a,d);if(a.childNodes.length<=c)return!1;return a.childNodes[c]===d?0<=e:b.isPreceding(a.childNodes[c],d)},isText:function(a){return a!=null?a.nodeType==3:!1},getChildIndex:function(a){var b=0;while(a=a.previousSibling)b++;return b}},c=a.Selection=function(){function a(a){this.win=a}a.prototype.hasSelection=function(){return a.hasSelection(this.win)};a.prototype.isBidirectional=function(){return a.isBidirectional(this.win)};a.prototype.getOrigin=function(){return a.getOrigin(this.win)};a.prototype.getFocus=function(){return a.getFocus(this.win)};a.prototype.getStart=function(){return a.getStart(this.win)};a.prototype.getEnd=function(){return a.getEnd(this.win)};a.prototype.trySelection=function(b,c,d,e){return a.trySelection(this.win,b,c,d,e)};a.prototype.setSelection=function(b,c,d,e){return a.setSelection(this.win,b,c,d,e)};a.prototype.clearSelection=function(){return a.clearSelection(this.win)};return a}();function d(){if(a.document.selection&&/MSIE 9\./.test(navigator.userAgent))return!1;else return!!a.getSelection}if(d()){c.supported=!0;c.hasSelection=function(a){return(a=a.getSelection())&&a.focusNode!=null&&a.anchorNode!=null};c.isBidirectional=function(a){return!0};c.getOrigin=function(a){return!((a=a.getSelection())&&a.anchorNode!=null)?null:[a.anchorNode,a.anchorOffset]};c.getFocus=function(a){return!((a=a.getSelection())&&a.focusNode!=null)?null:[a.focusNode,a.focusOffset]};c.getStart=function(a){var d,e,f;if(!c.hasSelection(a))return null;f=c.getOrigin(a),d=f[0],f=f[1];a=c.getFocus(a),e=a[0],a=a[1];return b.isCursorPreceding(d,f,e,a)?[d,f]:[e,a]};c.getEnd=function(a){var d,e,f;if(!c.hasSelection(a))return null;f=c.getOrigin(a),d=f[0],f=f[1];a=c.getFocus(a),e=a[0],a=a[1];return b.isCursorPreceding(d,f,e,a)?[e,a]:[d,f]};d=function(a,b,d,e,f,g){var h=b.getSelection();if(!h)return;f==null&&(f=d);g==null&&(g=e);if(h.collapse&&h.extend)h.collapse(d,e),h.extend(f,g);else{r=b.document.createRange();r.setStart(d,e);r.setEnd(f,g);if(a||!c.hasSelection(b)||r.endContainer===f&&r.endOffset===g&&r.startContainer===d&&r.startOffset===e){try{h.removeAllRanges()}catch(a){}h.addRange(r)}}};c.setSelection=d.bind(c,!0);c.trySelection=d.bind(c,!1);c.clearSelection=function(a){try{a=a.getSelection();if(!a)return;a.removeAllRanges()}catch(a){}};c.getText=function(a){a=a.getSelection();if(!a)return;return a.toString()}}else if(a.document.selection){var e=function(a,c,d){var e,f;a=a.createElement("a");e=c.duplicate();e.collapse(d);f=e.parentElement();while(!0){f.insertBefore(a,a.previousSibling);e.moveToElementText(a);if(!(e.compareEndPoints(d?"StartToStart":"StartToEnd",c)>0&&a.previousSibling!=null))break}e.compareEndPoints(d?"StartToStart":"StartToEnd",c)===-1&&a.nextSibling?(e.setEndPoint(d?"EndToStart":"EndToEnd",c),f=a.nextSibling,d=e.text.length):(f=a.parentNode,d=b.getChildIndex(a));a.parentNode.removeChild(a);return[f,d]},f=function(a,c,d,e,f){var g,h,i;i=0;g=b.isText(e)?e:e.childNodes[f];h=b.isText(e)?e.parentNode:e;b.isText(e)&&(i=f);e=a.createElement("a");h.insertBefore(e,g||null);f=a.body.createTextRange();f.moveToElementText(e);e.parentNode.removeChild(e);c.setEndPoint(d?"StartToStart":"EndToEnd",f);return c[d?"moveStart":"moveEnd"]("character",i)};c.supported=!0;c.hasSelection=function(a){var b;if(!a.document.selection)return!1;b=a.document.selection.createRange();return b&&b.parentElement().document===a.document};c.getStart=function(a){var b;if(!c.hasSelection(a))return null;b=a.document.selection.createRange();return e(a.document,b,!0)};c.getEnd=function(a){var b;if(!c.hasSelection(a))return null;b=a.document.selection.createRange();return e(a.document,b,!1)};c.isBidirectional=function(a){return!1};c.getOrigin=function(a){return c.getStart(a)};c.getFocus=function(a){return c.getEnd(a)};d=function(a,b,c,d,e,g){e==null&&(e=c);g==null&&(g=d);a=b.document.body.createTextRange();f(b.document,a,!1,e,g);f(b.document,a,!0,c,d);return a.select()};c.setSelection=d.bind(c,!0);c.trySelection=d.bind(c,!1);c.clearSelection=function(a){return a.document.selection.empty()};c.getText=function(a){if(!c.hasSelection(a))return null;a=a.document.selection.createRange();return a&&a.text}}else c.supported=!1}).call(this),e.exports=Selection}),null);
  __d("StructuredInputSelection",["DOM","DOMSelection","Scroll","StructuredInputDOM","StructuredInputUtil","Vector"],(function(a,b,c,d,e,f){a=function(){"use strict";function a(a){var b=a.ownerDocument;this.window=b.defaultView||b.parentWindow;this.root=a;this.selection=!1;this.start=new g(this,[]);this.end=new g(this,[]);this.update()}var c=a.prototype;c.isSupported=function(){return!!(b("DOMSelection")&&b("DOMSelection").hasSelection)};c.update=function(){this.selection=!1;if(this.isSupported()&&this.root==document.activeElement&&b("DOMSelection").hasSelection(this.window)){var a=b("DOMSelection").getStart(this.window),c=b("DOMSelection").getEnd(this.window),d=b("DOMSelection").getFocus(this.window);this.start=this.makeMarker(a);this.end=this.makeMarker(c);this.backward=a[0]==d[0]&&a[1]==d[1];this.selection=this.start.node&&this.end.node}};c.makeMarker=function(a){if(a[0]===this.root)return new g(this,[this.root.childNodes[a[1]],0]);else return new g(this,a)};c.getFocus=function(){return this.backward?this.start:this.end};c.getOrigin=function(){return this.backward?this.end:this.start};c.move=function(a){if(this.selection){this.start.move(a);this.start.snap();this.end.setPosition(this.start);return this.apply()}};c.expand=function(a){if(this.selection){b("DOMSelection").isBidirectional()&&(this.start.move(!a),this.start.snap(),this.end.move(a),this.end.snap());return this.apply()}};c.getText=function(){if(this.selection&&this.isSupported()){var a=b("DOMSelection").getText(this.window);return a}};c.getOffset=function(){if(this.selection)return this.start.rootOffset};c.getLength=function(){return(this.getText()||"").length};c.setPosition=function(a,c){this.backward=!1;this.selection=!0;this.start.setPosition(b("StructuredInputUtil").getMarkerAtOffset(this.root,a));this.start.snap();c>0?(this.end.setPosition(b("StructuredInputUtil").getMarkerAtOffset(this.root,a+c)),this.end.snap()):this.end.setPosition(this.start);return this.apply()};c.hasRange=function(){return this.selection&&(this.start.node!=this.end.node||this.start.offset!=this.end.offset)};c.scrollToFocus=function(){var a=5,c=this.getFocus();if(c.node){var d=b("Vector").getElementDimensions(this.root).x,e=b("Scroll").getLeft(this.root);c=c.node.offsetLeft+c.node.offsetWidth;c-e<a?b("Scroll").setLeft(this.root,c-a):c-e>d-a&&b("Scroll").setLeft(this.root,c-d+a)}};c.apply=function(){if(this.start.hasChanged()||this.end.hasChanged()){var a=this.getOrigin().getMarker(!0),c=this.getFocus().getMarker(!0);this.selection=this.selection&&a&&a.node&&c&&c.node;if(this.selection&&this.isSupported()){this.start.changed=!1;this.end.changed=!1;b("DOMSelection").trySelection(this.window,a.node,a.offset,c.node,c.offset);return!0}}};c.markDirty=function(a){b("DOM").contains(a,this.start.node,a)&&(this.start.changed=!0),b("DOM").contains(a,this.end.node,a)&&(this.end.changed=!0)};return a}();var g=function(){"use strict";function a(a,b){this.selection=a,this.node=b[0],this.offset=b[1],this.rootOffset=this.getRootOffset(b[0],b[1]),this.sibling=this.node&&this.node.previousSibling,this.changed=!1}var c=a.prototype;c.hasChanged=function(){return this.changed||!this.isNodeValid()};c.isNodeValid=function(){if(b("StructuredInputDOM").getLength(this.node)>this.offset){var a=this.node;while(a=a.parentNode)if(a==this.selection.root)return!0}};c.getMarker=function(a){if(this.isNodeValid()&&(a&&!this.node.firstChild||!a&&this.node.parentNode==this.selection.root))return this;else return b("StructuredInputDOM").getMarker(this.selection.root,this.rootOffset,a)};c.move=function(a){this.node&&this.setPosition(b("StructuredInputUtil").nextMarkerBoundary(this.getMarker(!1),a,"select"))};c.snap=function(){this.node&&this.setPosition(b("StructuredInputUtil").snapMarkerToText(this.getMarker(!1),"select"))};c.setPosition=function(a){(a.offset!=this.offset||a.node!=this.node)&&(this.changed=!0,this.node=a.node,this.offset=a.offset,this.rootOffset=this.getRootOffset(this.node,this.offset))};c.getRootOffset=function(a,c){var d=0,e=5;while(a&&d++<e)if(a===this.selection.root)return c;else{var f=a;while(f=f.previousSibling)c+=b("StructuredInputDOM").getLength(f);a=a.parentNode}};return a}();e.exports=a}),null);
  __d("StructuredInput",["csx","cx","fbt","Arbiter","ArbiterMixin","CSS","DataStore","DOM","Event","Input","InputSelection","JSLogger","Keys","Locale","Parent","Scroll","StructuredInputCleaner","StructuredInputDOM","StructuredInputSelection","StructuredInputUtil","Style","UserAgent_DEPRECATED","createArrayFromMixed","createObjectFrom","emptyFunction","getActiveElement","isElementNode","isTextNode","mixin","setTimeoutAcrossTransitions"],(function(a,b,c,d,e,f,g,h,i){var j=229,k=(a=b("createObjectFrom"))([(c=b("Keys")).UP,c.DOWN,c.LEFT,c.RIGHT,c.HOME,c.END]),l=a([c.BACKSPACE,c.DELETE]),m=a([c.SPACE,c.RETURN]),n=a("IUB".split("").map(function(a){return a.charCodeAt(0)})),o=b("UserAgent_DEPRECATED").firefox(),p=b("UserAgent_DEPRECATED").ie(),q=b("UserAgent_DEPRECATED").webkit(),r=function(c){"use strict";babelHelpers.inheritsLoose(a,c);function a(a){var d;d=c.call(this)||this;b("DataStore").set(a,"StructuredInput",babelHelpers.assertThisInitialized(d));d._root=a;d._richInput=b("DOM").find(a,"._586i");d._textInput=b("DOM").find(a,"._586f");d._placeholderText=b("DOM").scry(a,"._586j")[0];d._hintText=b("DOM").find(a,"._586k");d._contentWidth=null;d._richWidth=null;d._hintNodes=[];b("Arbiter").subscribe(b("JSLogger").DUMP_EVENT,function(a,b){b.structuredInputState={initInputsFinished:!!d._initInputsFinished,initEventsFinished:!!d._initEventsFinished,cleanInputPreTogglesFinished:!!d._cleanInputPreTogglesFinished,cleanInputFinished:!!d._cleanInputFinished,elements:{richInput:!!d._richInput,textInput:!!d._textInput,placeholderText:!!d._placeholderText,hintText:!!d._hintText}}});d.init();return d}var d=a.prototype;d.init=function(){this.init=b("emptyFunction"),this._initSelection(),this._initCleaner(),this._initInputs(),this._initInputsFinished=!0,this._initEvents(),this._initEventsFinished=!0,this._scheduledCleanInput=!1,this._richChanged=!1,this._textChanged=!1,this._selectionChanged=!1,this._selectionIgnore=!1,this._imeMode=!1,this.cleanInput(),this.inform("init",null,"persistent")};d._initInputs=function(){this._richInput.contentEditable=!0;this._richInput.spellcheck=!1;this._richInput.tabIndex=0;this._richInput.setAttribute("aria-label",i._("\u0e04\u0e49\u0e19\u0e2b\u0e32\u0e43\u0e19 Facebook"));this._textInput.tabIndex=-1;this._multiline=this._textInput.nodeName=="TEXTAREA";if(!b("CSS").shown(this._richInput)){var a=b("InputSelection").get(this._textInput),c=b("getActiveElement")()===this._textInput;b("DOM").setContent(this._richInput,b("StructuredInputDOM").encodeText(b("Input").getValue(this._textInput)));b("CSS").hide(this._textInput);b("CSS").show(this._richInput);this.cleanInput();c&&(this._richInput.focus(),this.setSelection({offset:a.start,length:a.end-a.start}))}this.togglePlaceholder();this._toggleHint()};d._initEvents=function(){var a=null,c=!1,d=function(){this._richChanged=!0,c||this.scheduleCleanInput(!0)}.bind(this),e=function(){this._textChanged=!0,c||this.scheduleCleanInput(!1)}.bind(this),f=function(){this._selectionChanged=!0,this.scheduleCleanInput(!1)}.bind(this),g=function(){this._imeMode=!0,this._placeholderText&&b("CSS").hide(this._placeholderText),b("CSS").hide(this._hintText)}.bind(this),h=function(){this._imeMode=!1,this._richChanged=!0,this.cleanInput()}.bind(this);b("Event").listen(this._richInput,"keydown",function(c){a=c.keyCode;if(c.ctrlKey&&c.keyCode in n)return c.kill();else if(c.keyCode in k)f();else if(c.keyCode===b("Keys").BACKSPACE&&this._deleteTrailingChunk()){this._richChanged=!0;this.cleanInput();return c.kill()}else c.keyCode in l?d():c.keyCode==j&&g()}.bind(this));b("Event").listen(this._richInput,"keypress",function(a){if(a.keyCode==b("Keys").RETURN){this._multiline&&this._insertText("\n");return a.kill()}else!this._selectionChanged&&this._selectionIsText()?e():d()}.bind(this));!c?(b("Event").listen(this._richInput,"keyup",function(b){if((this._imeMode||b.keyCode!=a)&&b.keyCode in m){h();return b.kill()}else this._imeMode&&(this._textChanged=!0,this.cleanInput())}.bind(this)),o&&b("Event").listen(this._richInput,"input",function(){this._textChanged=!0,this.cleanInput()}.bind(this))):(b("Event").listen(this._richInput,"compositionstart",g),b("Event").listen(this._richInput,"compositionend",function(){setTimeout(h,0)}),b("Event").listen(this._richInput,"input",function(){this._textChanged=!0,this._imeMode||(!this._richChanged?this.cleanInput():this.scheduleCleanInput())}.bind(this)));b("Event").listen(document,"selectionchange",function(){this._selectionIgnore?this._selectionIgnore=!1:this._selectionChanged=!0}.bind(this));b("Event").listen(this._richInput,"mousedown",function(){this._selectionChanged=!0,this._selectionLength=0,this._selectionOffset=0}.bind(this));b("Event").listen(this._richInput,"mouseup",function(){this._selectionChanged=!0,this.scheduleCleanInput()}.bind(this));b("Event").listen(this._richInput,"cut",function(){this._richChanged=!0,this.scheduleCleanInput(!1)}.bind(this));b("Event").listen(this._richInput,"paste",function(a){this._richChanged=!0,this.scheduleCleanInput(!0)}.bind(this));b("Event").listen(this._richInput,"drop",function(a){this.focus();this.selectAll();this._insertClipboard(a&&a.dataTransfer);return a.kill()}.bind(this));b("Event").listen(this._richInput,"dragover",function(a){a.dataTransfer.dropEffect="move";a.dataTransfer.effectAllowed="move";return a.kill()});b("Event").listen(this._richInput,"focus",function(a){this._toggleHint(),this.inform("focus")}.bind(this));b("Event").listen(this._richInput,"blur",function(a){b("CSS").hide(this._hintText),this._imeMode=!1,this._richChanged=!0,this.scheduleCleanInput(!1),this.inform("blur")}.bind(this))};d._initCleaner=function(){this._cleaner=new(b("StructuredInputCleaner"))(this._richInput,this._selection,!0)};d._initSelection=function(){this._selection=new(b("StructuredInputSelection"))(this._richInput),this._selectionLength=0,this._selectionOffset=0};d._insertClipboard=function(a){if(a&&typeof a.getData==="function"){a=a.getData("Text");this._insertText(a)}};d._deleteTrailingChunk=function(a){a=this.getSelection();if(a.length>0||a.offset===0)return!1;a=this.getSelection().offset-1;a=b("StructuredInputUtil").getMarkerAtOffset(this._richInput,a);if(a&&b("StructuredInputDOM").isEntityNode(a.node)&&b("StructuredInputUtil").getGrouping(a.node,"select")!=="none"){b("DOM").remove(a.node);return!0}return!1};d._selectionIsText=function(){var a=this._selection.start.node,c=this._selection.end.node;return a&&a===c&&!b("StructuredInputDOM").isEntityNode(a)&&!b("StructuredInputDOM").isEntityNode(a.parentNode)};d._insertText=function(a){if(a){a=b("DOM").create("div",{},a);return this._insertNodes(a)}};d._insertHTML=function(a){if(a){var c=b("DOM").create("div"),d=new(b("StructuredInputCleaner"))(c,null,!1);c.innerHTML=a;d.clean();return this._insertNodes(c)}};d._insertNodes=function(a){document.selection?document.selection.createRange().pasteHTML(a.innerHTML):document.execCommand("insertHTML",!1,a.innerHTML),this._richChanged=!0,this.cleanInput()};d.togglePlaceholder=function(a){if(!this._placeholderText)return;var c=b("StructuredInputDOM").getLength(this._richInput)===0;a&&c?b("CSS").show(this._placeholderText):b("CSS").conditionShow(this._placeholderText,c&&!this._imeMode)};d._toggleHint=function(){var a=b("createArrayFromMixed")(this._hintNodes),c=null,d="",e=b("StructuredInputDOM").getText(this._richInput).toLowerCase();if(!this.hasFocus())return;if(this._contentOverflows()){b("CSS").hide(this._hintText);return}while(a.length&&d.length<e.length)c=a.shift(),d+=b("StructuredInputDOM").getText(c);if(e.length&&d.substr(0,e.length).toLowerCase()==e.toLowerCase()){b("DOM").setContent(this._hintText,Array.from(this._richInput.cloneNode(!0).childNodes).filter(function(a){return a.tagName!=="BR"}));c=b("StructuredInputDOM").createTextNode(d.substr(e.length));a.unshift(c);b("DOM").appendContent(this._hintText,b("DOM").create("span",{className:"_586h"},a));b("CSS").show(this._hintText);b("CSS").hide(this._placeholderText)}else b("CSS").hide(this._hintText)};d._contentOverflows=function(){this._richWidth===null&&(this._richWidth=this._richInput.clientWidth);if(this._contentWidth===null){var a=this._richInput.lastChild;this._contentWidth=b("isElementNode")(a)?a.offsetLeft+a.offsetWidth:0}return this._contentWidth>this._richWidth};d._forceTop=function(){this._multiline||b("Scroll").setTop(this._richInput,0),b("Scroll").setTop(this._root,0)};d._createStructureNodes=function(a){return a.map(function(a){return a.uid||a.type&&a.type!="text"?b("StructuredInputDOM").createEntityNode(a,a.display||{}):b("StructuredInputDOM").createTextNode(a.text)}.bind(this))};d._suppressInput=function(){if(o||p){if(this._richClean)return;this._richClean=this._richInput.cloneNode(!0);this._richClean.contentEditable=!1;this._root.insertBefore(this._richClean,this._richInput.nextSibling);b("Scroll").setLeft(this._richClean,b("Scroll").getLeft(this._richInput));b("Style").set(this._richInput,"padding",0);b("Style").set(this._richInput,"height",0)}};d._revealInput=function(){if(!this._richClean)return;b("Style").set(this._richInput,"height","");b("Style").set(this._richInput,"padding","");this._root.removeChild(this._richClean);this.focus();this._richClean=null};d._cleanInput=function(){var a;this._textChanged&&!this._richChanged?(this._selection.update(),a="change"):(this._richChanged||this._selectionChanged)&&(this._selection.update(),this._richChanged&&(this._contentWidth=null,this._cleaner.clean(),this._cleaner.endOnText(),this._selection.apply(),a="change"),this._selectionChanged&&(this._cleanSelection(),(this._selectionLength||!this._richChanged)&&(a="select")));this._revealInput();this._forceTop();this._cleanInputPreTogglesFinished=!0;(this._richChanged||this._textChanged)&&(this.togglePlaceholder(),this._toggleHint());this._selectionIgnore=!0;this._selectionChanged=!1;this._richChanged=!1;this._textChanged=!1;this._cleanInputFinished=!0;a&&this.inform(a)};d._cleanSelection=function(){var a=this._selection.getLength(),b=this._selection.getOffset();a&&(this._selection.expand(a>=this._selectionLength),a=this._selection.getLength(),b=this._selection.getOffset());this._selectionLength=a;this._selectionOffset=b};d.cleanInput=function(){this._scheduledCleanInput||this._cleanInput()};d.scheduleCleanInput=function(a){var c=this;a&&this._suppressInput();this._scheduledCleanInput||(this._scheduledCleanInput=!0,b("setTimeoutAcrossTransitions")(function(){c._cleanInput(),c._scheduledCleanInput=!1},0))};d.setEnabled=function(a){this._textInput.disabled=!a,this._richInput.contentEditable=a};d.getRoot=function(){return this._root};d.getRichInput=function(){return this._richInput};d.getEnabled=function(){return!this._textInput.disabled};d.getText=function(){return b("StructuredInputDOM").getDecodedText(this._richInput)};d.setText=function(a){b("DOM").setContent(this._richInput,b("StructuredInputDOM").createTextNode(a)),this._richChanged=!1,this._selectionChanged=!1,this.inform("change")};d.setHint=function(a){this._hintNodes=this._createStructureNodes(a),this._toggleHint()};d.getStructure=function(){var a=[];Array.from(this._richInput.childNodes).forEach(function(c){var d=!b("isTextNode")(c),e=b("StructuredInputDOM").getDecodedText(c);e.length&&a.push({text:e,uid:d?c.getAttribute("data-uid"):null,type:d&&c.getAttribute("data-type")||"text",isLocal:d&&c.getAttribute("data-is-local"),categoryName:d?c.getAttribute("data-category-name"):null})});return a};d.setStructure=function(a){b("DOM").setContent(this._richInput,this._createStructureNodes(a)),this._cleaner.clean(),this._cleaner.endOnText(),this.togglePlaceholder(),this._toggleHint(),this._richChanged=!1,this._selectionChanged=!1,this.inform("change")};d.getContentDimensions=function(){var a=this._richInput.lastChild;return{width:a?a.offsetLeft+a.offsetWidth:0,height:a?a.offsetTop+a.offsetHeight:0}};d.getSelection=function(){if(this._selection)return{offset:this._selection.getOffset(),length:this._selection.getLength()}};d.setSelection=function(a){this.hasFocus()&&this._selection&&(this._selection.update(),this._selection.setPosition(a.offset,a.length),this._selection.scrollToFocus(),this._selectionChanged=!1,this.inform("select"))};d.moveSelectionToEnd=function(){this.setSelection({length:0,offset:b("StructuredInputDOM").getLength(this._richInput)})};d.isSelectionAtEnd=function(){var a=this.getSelection().offset,c=b("StructuredInputDOM").getLength(this._richInput);return a>=c};d.selectAll=function(){this.setSelection({offset:0,length:b("StructuredInputDOM").getLength(this._richInput)})};d.hasFocus=function(){return b("DOM").contains(this._root,document.activeElement)};d.focus=function(){this._richInput.focus()};d.blur=function(){var a={position:"absolute",top:0,width:"1px",height:"1px"};b("Locale").isRTL()?a.right="-100px":a.left="-100px";var c=b("DOM").create("input",{type:"text",tabIndex:-1,style:a});b("DOM").appendContent(this._root,c);a=function(){(this.hasFocus()||q&&document.activeElement===document.body)&&(c.focus(),c.blur())};this.blur=a;this.blur()};return a}(b("mixin")(b("ArbiterMixin")));r.getInstance=function(a){var c=b("Parent").bySelector(a,"._586g");if(!c)throw new Error("No DOMElement structured input found using "+a);return b("DataStore").get(c,"StructuredInput")||new r(c)};e.exports=r}),null);
  __d("FacebarTypeaheadInput",["csx","ArbiterMixin","DOM","FacebarStructuredText","Locale","SimpleStructuredInput","StructuredInput","mixin"],(function(a,b,c,d,e,f,g){"use strict";var h={text:{className:"text",group:"all",select:"none"},ent:{className:"entity",group:"all",select:"group"},"ent:hashtag_exact":{className:"entity",group:"hashtag",select:"none"}};function i(a){return Object.assign(a.toStruct(),{display:h[a.getType()]||h[a.getTypePart(0)]})}a=function(a){babelHelpers.inheritsLoose(c,a);function c(c){var d;d=a.call(this)||this;d.root=c;var e=b("DOM").scry(d.root,"._586i")[0];e?d.input=b("StructuredInput").getInstance(c):d.input=b("SimpleStructuredInput").getInstance(c);d.value=null;d.selection={offset:0,length:0};d.resetOnChange=!0;d.initEvents();return d}var d=c.prototype;d.initEvents=function(){var a=function(a,b){this.inform(a,b)}.bind(this);this.input.subscribe("blur",a);this.input.subscribe("focus",a);this.input.subscribe("change",function(a,b){this.resetOnChange&&(this.value=null),this.inform("change",b)}.bind(this))};d.togglePlaceholder=function(a){return this.input instanceof b("StructuredInput")?this.input.togglePlaceholder(a):null};d.focus=function(){this.input.focus()};d.blur=function(){this.input.blur()};d.getElement=function(){return this.root};d.getRawInputElement=function(){var a=b("DOM").scry(this.root,"._586i")[0];return a==null?b("DOM").scry(this.root,"._1frb")[0]:a};d.getValue=function(){this.value==null&&(this.value=b("FacebarStructuredText").fromStruct(this.input.getStructure()));return this.value};d.getLength=function(){return this.getValue().getLength()};d.resetPlaceholder=function(){this.input.resetPlaceholder()};d.setValue=function(a,b){this.value=a;this.resetOnChange=!!b;b=a.toArray().map(i);this.input.setStructure(b);this.input.setSelection({offset:a.getLength(),length:0});this.resetOnChange=!0};d.storeSelection=function(){this.selection=this.input.getSelection()};d.restoreSelection=function(){this.selection&&this.input.setSelection(this.selection)};d.clearSelection=function(){this.input.setSelection({offset:this.getLength(),length:0})};d.setHint=function(a){a=a&&!a.hasRTL()&&!b("Locale").isRTL()?a.toArray().map(i):[];this.input.setHint(a)};d.isSelectionAtEnd=function(){return this.input.isSelectionAtEnd()};d.selectInput=function(a){this.input.setSelection({offset:a||0,length:this.getLength()})};return c}(b("mixin")(b("ArbiterMixin")));Object.assign(a.prototype,{events:["change","focus","blur"]});e.exports=a}),null);
  __d("FacebarTypeaheadCore",["csx","cx","invariant","Arbiter","ArbiterMixin","BanzaiODS","Base64","CSS","DOM","Event","FacebarGlobalOptions","FacebarJSConstants","FacebarKeywordSearchUtils","FacebarResultStoreUtils","FacebarStructuredText","FacebarTypeaheadInput","Keys","KeywordsSearchResultConfig","Parent","ScriptPath","SearchCometHashtagUtil","URI","WorkGalahadEntityKey","WorkGalahadLayoutUtils","WorkGalahadNavActions","WorkGalahadNavStore","WorkGalahadSearchActions","XCometSearchHashtagControllerRouteBuilder","generateBrowseSessionID","getActiveElement","gkx","goURI","immutable","mixin","nullthrows"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=b("WorkGalahadLayoutUtils").HeaderType,l;a=function(a){babelHelpers.inheritsLoose(c,a);function c(c){var d;d=a.call(this)||this;d.events=["session","focus","select","change","execute","blur","focusStartTime","open"];d._squashedEntityIDsByQuery=b("immutable").Map();d._ignoreNextBlur=!1;Object.assign(babelHelpers.assertThisInitialized(d),c);l=babelHelpers.assertThisInitialized(d);return d}var d=c.prototype;d.init=function(a,c,d){if(window.getSelection===null)throw new Error("Facebar: window.getSelection is null!");this.init=function(){};this.data=a;this.view=c;this.root=d;this.facebarRoot=b("Parent").bySelector(d,"._585-");this.button=b("DOM").find(this.facebarRoot,"._4w98");this.windowFocused=!0;this.isFocused=!1;this.hoverAnimation=null;this.stickyQuery=null;this.settedQuery=null;this.selectedQuery=null;this.currentQuery=null;this.isSuggestionBagdeVisible=!1;this.initSubcomponents();this.initEvents();this.checkValue();this.checkSingleState();this.checkLocal();this.checkCategoryName()};d.initSubcomponents=function(){var a=b("DOM").find(this.root,"._5861");this.input=new(b("FacebarTypeaheadInput"))(a);this.view.setInputElement(this.input.getRawInputElement())};d.initEvents=function(){var a=this,c;(c=b("Event")).listen(this.root,"keydown",this.keydown.bind(this));c.listen(this.root,"keyup",this.keyup.bind(this));c.listen(this.root.parentNode,"mousedown",this.mousedown.bind(this));this.view.onMousedown(this.viewMousedown.bind(this));c.listen(window,"focus",this.focusWindow.bind(this));c.listen(window,"blur",this.blurWindow.bind(this));this.view.subscribe("select",this.selectView.bind(this));this.view.subscribe("highlight",this.highlightView.bind(this));this.view.subscribe("render",this.highlightView.bind(this));this.input.subscribe("focus",this.focusInput.bind(this));this.input.subscribe("blur",this.blurInput.bind(this));this.input.subscribe("change",this.changeInput.bind(this));this.data.subscribe("activity",this.typeaheadActivity.bind(this));this.data.subscribe("respond",this.completeData.bind(this));this.data.subscribe("nullstateReady",this.performQueryIfVisible.bind(this));b("Arbiter").subscribe("FacebarTypeahead.clearRecentSearches",function(){return a.clearRecentSearches()});c.listen(this.button,"click",this.buttonDownOrClick.bind(this));c.listen(this.button,"mousedown",this.buttonDownOrClick.bind(this));c.listen(this.button,"mouseup",this.buttonUp.bind(this));setTimeout(this.initFocus.bind(this),0)};d.ignoreNextBlur=function(){this._ignoreNextBlur=!0};d.focus=function(){this.input.focus()};d.initFocus=function(){!this.lazyFocused&&b("DOM").contains(this.input.root,b("getActiveElement")())&&(this.lazyFocused=!0,this.isFocused=!0,this._newSession(),this.inform("focus",{catchup:!0}),this.open(!0))};d.setStartTime=function(a){this.inform("focusStartTime",{time:a})};d.cleanQuery=function(a){a=babelHelpers["extends"]({},a)||{};a.structure||(a.structure=new(b("FacebarStructuredText"))());(!b("FacebarGlobalOptions").allowGrammar||b("FacebarJSConstants").nonGrammarTypes[a.type])&&(a.structure=b("FacebarStructuredText").fromString(a.structure.toString()));a.structure instanceof b("FacebarStructuredText")||i(0,3869);return a};d._unlockQuery=function(){var a=this.input.getValue();a.hasType("ent")&&a.trim().getCount()===1&&(this.input.storeSelection(),this.input.setValue(b("FacebarStructuredText").fromString(a.toString())),this.input.restoreSelection())};d.setPageQuery=function(a){a=this.cleanQuery(a);var b=this.input.getValue(),c=a.structure;b=!c.isEmptyOrWhitespace()&&(b.isEmptyOrWhitespace()||!b.matches(c));return this.selectQuery(a,b)};d.selectQuery=function(a,b){b=b!==!1;a=this.cleanQuery(a);(b||!this.selectedQuery)&&((b||this.getValue().isEmptyOrWhitespace())&&this.setQuery(a),this.selectedQuery=a);return a};d.completeSelection=function(){var a=this.view.getSelection();if(a&&!a.search){this.data.saveResult(a);a.structure=a.structure.pad();this.setQuery(a);return!0}return!1};d.setQuery=function(a,c){c===void 0&&(c=!0),a=this.cleanQuery(a),a.structure.hasType("blank")&&(a.structure=new(b("FacebarStructuredText"))(a.structure.toArray().filter(function(a){return a.getType()!="blank"}))),this.input.setValue(a.structure),this.settedQuery=a,this.stickyQuery=c===!1?this.stickyQuery:a,this.checkValue(),this.checkSingleState(),this.checkLocal(),this.checkCategoryName()};d.checkValue=function(a){a===void 0&&(a=!1);if(!a&&this.value&&this.value.getHash()===this.input.getValue().getHash())return;this.performQueryIfVisible();this.showSearchSuggestionBadgeIfPossible()};d.showSearchSuggestionBadgeIfPossible=function(){this.isNullState()?!this.isSuggestionBagdeVisible&&this.data.resultStore.injectedSuggestionCount&&(b("Arbiter").inform("FacebarTypeahead.showSuggestionBadge"),this.isSuggestionBagdeVisible=!0):this.isSuggestionBagdeVisible&&(b("Arbiter").inform("FacebarTypeahead.hideSuggestionBadge"),this.isSuggestionBagdeVisible=!1)};d.checkSingleState=function(){var a=this.input.getValue();this.data.setSingleState(a.getCount()===1&&a.hasType("ent"))};d.checkLocal=function(){var a=this.input.getValue();this.data.setLocal(a.getCount()===1&&a.isLocal())};d.checkCategoryName=function(){var a=this.input.getValue();a.getCategoryName()!==null&&this.data.setCategoryName(a.getCategoryName())};d.isNullState=function(){return this.input.getValue().getHash()===""};d.performQueryIfVisible=function(){if(!this.view.visible)return;this.performQuery()};d.performQuery=function(){this.value=this.nextQuery=this.getValue(),this.view.resetIndex(),this.data.query(this.nextQuery),this.currentQuery=this.nextQuery};d.executeQuery=function(a){this._browseSessionID=b("generateBrowseSessionID")({appName:"www",edge:"keywords_search"});var c=this.isNullState();a=this.cleanQuery(a);this._setSquashedEntityIDsFromQuery(a);var d=this.inform("execute",a),e=this.getSessionID();this.close();b("FacebarGlobalOptions").allowGrammar?this.selectQuery(a):this.selectQuery();a.type!=="shortcut"&&(!c||a.isInjectedSuggestion)&&(a.isInjectedSuggestion&&(b("Arbiter").inform("FacebarTypeahead.removeInjectedSuggestion"),--this.data.resultStore.injectedSuggestionCount,this.performQuery()));d||this._navigateToQuery(a,e,a.csid)};d.getSearchType=function(){return"facebar"};d._newSession=function(){if(this._sessionID!=null)return;this._sessionID=Math.random().toString();this.inform("session",this._sessionID,"state")};d._closeSession=function(){this._sessionID=null,this.inform("session",null,"state")};d.getSessionID=function(){return this._sessionID};d.getBrowseSessionID=function(){return this._browseSessionID};d._navigateToQuery=function(a,c,d){var e=this.data.facebarConfig;if(a.uri){a.uri.addQueryData(a.extra_uri_params);a.uri.addQueryData({ref:"br_tf"});var f=a.uid!=null&&a.uid.match(/^[0-9]+$/)!=null;if(a.structure&&(a.type=="websuggestion"||a.type==b("KeywordsSearchResultConfig").result_type||a.type=="grammar"&&(!e||String(a.uri.getPath()).startsWith(e.search_path))||f)){e=this.data.getRawStructure(a.structure).text_form;if(b("SearchCometHashtagUtil").hasTypeaheadRedirection()){f=b("SearchCometHashtagUtil").getHashtagTag(a.text.toString());if(f!=null&&a.keywordSource!=="escape"){b("goURI")(b("XCometSearchHashtagControllerRouteBuilder").buildURL({__epa__:"SEARCH_BOX",hashtag:f,__tsid__:c,__eps__:b("gkx")("1329644")?b("ScriptPath").getScriptPath():null}));return}}f=b("Base64").encode(encodeURIComponent(e)).replace(/\=+$/,"");e={sid:c,qs:f,gv:this.data.getQueryData().grammar_version,ent_ids:this.getSquashedEntityIDsFromQueryString(String(a)),bsid:this._browseSessionID,preloaded_entity_ids:null,preloaded_entity_type:null,ref:"br_tf",csid:null,high_confidence_argument:null,client_time_ms:Date.now(),eps:b("gkx")("1329644")?b("ScriptPath").getScriptPath():null};d&&(e.csid=d);a.uri.addQueryData({ref:b("FacebarKeywordSearchUtils").encodeFacebarURIParams(e),bs:a.alternateSemantic})}a.uri.addQueryData({epa:"SEARCH_BOX"});if(a.type==="keyword"&&!a.isSeeMessages){c=b("WorkGalahadNavStore").getActiveEntityKeys();f=b("WorkGalahadLayoutUtils").getHeaderType(c);b("WorkGalahadNavActions").markPendingTransition({appTabID:"home",entityKeys:f!==k.SEARCH?[b("WorkGalahadEntityKey").forSearch("keywords_search")]:c,uri:b("nullthrows")(a.uri)})}b("WorkGalahadSearchActions").setQuery(a.text.toString());a.uri.go();return}};d.reset=function(){this.selectQuery(),this.inform("reset"),this.showSearchSuggestionBadgeIfPossible(),b("FacebarKeywordSearchUtils").clearSelectedTabInfo()};d.open=function(a){this.view.show(this.facebarRoot.offsetWidth),this.input.focus({catchup:a}),this.checkValue(!0),this.checkSingleState(),this.checkLocal(),this.checkCategoryName(),this.highlightButton(),this.isFocused||(this.isFocused=!0,this._newSession(),this.inform("focus")),this.inform("open",{catchup:a,sessionID:this._sessionID})};d.close=function(){this._closeSession();if(this.inform("close")===!1)return;(!this.value||this.value.isEmptyOrWhitespace())&&this.selectedQuery?this.input.setValue(this.selectedQuery.structure):this.stickyQuery&&this.input.setValue(this.stickyQuery.structure);this.input.setHint(null);this.view.hide();this.view.setAutoSelect(!1);this.inform("session",null,"state");this.isFocused=!1;this.unlightButton()};d.getElement=function(){return this.root};d.getValue=function(){return this.input.getValue()};d.getText=function(){return this.getValue().toString()};d.submitQuery=function(a){if(this.view.index<0){var c=this.input.getValue(),d=this.data.getRawStructure(c);if(d&&!d.is_empty){d=d.raw_text?d.raw_text:b("FacebarResultStoreUtils").getRawTextFromStructured(c.toArray());c=b("FacebarKeywordSearchUtils").makeFacebarEntry(d);c.position=a;this.inform("magSearch",c);this.executeQuery(c)}}else this.view.select()};d.keydown=function(a){var c=!0,d=b("Event").getKeyCode(a);a.metaKey===!0&&(this.metaOnKeyDown=!0);this.isFocused||this.open();switch(d){case b("Keys").ESC:this.selectQuery();this.view.highlight(-1);break;case b("Keys").UP:this.view.prev();break;case b("Keys").DOWN:this.view.next();break;case b("Keys").RETURN:var e=-2;this.submitQuery(e);break;case b("Keys").PAGE_UP:this.view.first();break;case 222:e=this.input.value.trim();!a.getModifierState("shift")&&e.endsOnType("ent")&&this.input.setValue(e);c=!1;break;default:if(this.input.value!=null&&this.input.value.toString()===""){if(d===b("Keys").LEFT||d===b("Keys").RIGHT){this.view.getSelection()==null?c=!1:d===b("Keys").LEFT?this.view.prevColumn():this.view.nextColumn();break}}else if(d===b("Keys").RIGHT){c=this.input.isSelectionAtEnd()&&this.completeSelection();break}e=d<=46&&d!==8&&d!==32;var f=d>=112&&d<=126,g=d===144||d===145;d=d===91||d===92||d===93||d===224;!e&&!f&&!g&&!a.metaKey&&!d&&(this.data.setSingleState(!1),this.data.setLocal(!1));this.stickyQuery=null;c=!1;break}this.input.storeSelection();c?(a.preventDefault(),a.stopPropagation()):this.view.highlight(-1)};d.keyup=function(a){var c=b("Event").getKeyCode(a),d=c<=46&&c!==8&&c!==32,e=c>=112&&c<=126,f=c===144||c===145;c=c===91||c===92||c===93||c===224;!d&&!e&&!f&&!a.metaKey&&!c&&!this.metaOnKeyDown&&this._unlockQuery();c||(this.metaOnKeyDown=!1)};d.mousedown=function(a){this.input.storeSelection()};d.viewMousedown=function(a){this.mousedown(a),a.preventDefault()};d.focusWindow=function(){this.windowFocused=!0};d.blurWindow=function(){this.windowFocused=!1};d.selectView=function(a,c){if(!c||!c.selected)return;a=this.cleanQuery(c.selected);if(this.view.getCurrentColumnIndex()>0){var d=b("DOM").scry(c.element,'[role="gridcell"]')[this.view.getCurrentColumnIndex()];d=b("DOM").find(d,"a");d.click();return}this.inform("select",c);Boolean(c.skipExecuteQuery)||this.executeQuery(a)};d.highlightView=function(){var a=this.view.getSelection();this.input.setHint(a?a.structure:null)};d.blurInput=function(){var a=this;if(this._ignoreNextBlur){this._ignoreNextBlur=!1;return}setTimeout(function(){(a.windowFocused||(j||(j=b("URI"))).getRequestURI().getSubdomain()==="apps")&&(a.input.togglePlaceholder(),a.close())},0)};d.changeInput=function(){this.inform("change"),this.checkValue(),this.checkLocal(),this.inform("change_end")};d.focusInput=function(){b("BanzaiODS").bumpEntityKey(354,"www_global_ta","focused"),this.open(),this.input.togglePlaceholder(!1)};d.updateData=function(){this.view.setLoading(this.loading)};d.completeData=function(a,b){if(b.forceDisplay||this.value&&this.value.matches(b.value)){a=!b.results.length;this.view.render(b.value,b.results,b.isAsync,a);this.tabQueued&&this.completeSelection()&&delete this.tabQueued}};d.typeaheadActivity=function(a,b){this.fetching=b.activity,this.loading!==this.fetching&&(this.loading=this.fetching,this.updateData())};d.getNameTextFromSelected=function(){var a=this.settedQuery&&this.settedQuery.semantic,b=this.data.facebarConfig&&this.data.facebarConfig.name_functions;a=a&&b&&a.match(/[a-z-]+\([^()]+\)/g);if(a)for(var c=0;c<a.length;c++){var d=a[c].match(/([a-z-]+)\(([^()]+)\)/);if(d&&b.includes(d[1]))return d[2]}return this.value.toString()};d.clearRecentSearches=function(){this.data.resultStore.clearRecentSearches()};d.highlightButton=function(){b("CSS").addClass(this.button,"_4w97")};d.unlightButton=function(){b("CSS").matchesSelector(this.button,"._4w97")&&b("CSS").removeClass(this.button,"_4w97")};d.buttonDownOrClick=function(a){a.preventDefault()};d.buttonUp=function(){!this.isFocused?this.focusInput():this.submitQuery(-1)};d._setSquashedEntityIDsFromQuery=function(a){var b=[];a.itemLoggingInfo?a.itemLoggingInfo.kwEntIds?b=a.itemLoggingInfo.kwEntIds:a.itemLoggingInfo.kwEntId&&(b=[a.itemLoggingInfo.kwEntId]):a.entity_ids&&(b=a.entity_ids);this._squashedEntityIDsByQuery=this._squashedEntityIDsByQuery.set(a.text,b)};d.getSquashedEntityIDsFromQueryString=function(a){a=this._squashedEntityIDsByQuery.get(a);return a==null?[]:a};c.clearRecentSearches=function(){b("Arbiter").inform("FacebarTypeahead.clearRecentSearches")};c.getInstance=function(){return l};return c}(b("mixin")(b("ArbiterMixin")));e.exports=a}),null);
  __d("LayerStopMouseDown",["Event"],(function(a,b,c,d,e,f){a=function(){"use strict";function a(a){this._layer=a}var c=a.prototype;c.enable=function(){this._listener=b("Event").listen(this._layer.getContentRoot(),"mousedown",function(a){a.kill()})};c.disable=function(){this._listener&&this._listener.remove()};return a}();e.exports=a}),null);
  __d("FacebarRemoveRecentSearchButton.react",["ix","cx","fbt","AbstractButton.react","AsyncRequest","BanzaiODS","DialogX","FacebarRemoveRecentSearchDialog.react","FacebarTypeaheadCore","FacebarTypeaheadRefreshNullstate","Image.react","LayerAutoFocusReact","LayerHideOnBlur","LayerStopMouseDown","React","XTypeaheadDeleteRecentSearchController","XUISpinner.react","asset"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=b("React");c=b("React");var k=c.useCallback,l=c.useRef,m=c.useState;function a(a){var c=a.recentSearch,d=l(null);a=m(!1);var e=a[0],f=a[1],h=k(function(){d.current&&d.current.hide()},[]),n=k(function(){b("BanzaiODS").bumpEntityKey(2966,"search.www.remove_recent_search.dialog","hide");var a=b("FacebarTypeaheadCore").getInstance();a!=null&&a.focus()},[]);k(function(){b("BanzaiODS").bumpEntityKey(2966,"search.www.remove_recent_search.dialog","show");var a=new(b("DialogX"))({xui:!0,addedBehaviors:[b("LayerHideOnBlur"),b("LayerStopMouseDown"),b("LayerAutoFocusReact")],width:400},j.jsx(b("FacebarRemoveRecentSearchDialog.react"),{recentSearch:c,onNullstateReadyAfterRemoval:h}));a.subscribe("hide",function(){return n()});a.show();d.current=a},[n,h,c]);var o=k(function(){b("BanzaiODS").bumpEntityKey(2966,"search.www.remove_recent_search.non_dialog","remove");f(!0);var a=b("XTypeaheadDeleteRecentSearchController").getURIBuilder().setString("recent_search",c).getURI();new(b("AsyncRequest"))().setURI(a).setMethod("POST").setHandler(function(){b("FacebarTypeaheadRefreshNullstate").forceNullstateRefresh(h)}).setErrorHandler(function(){b("BanzaiODS").bumpEntityKey(2966,"search.www.remove_recent_search.non_dialog","error"),f(!1)}).send()},[h,c]);a=k(function(){o()},[o]);a=j.jsx(b("AbstractButton.react"),{className:"_7u-1",href:"#",image:j.jsx(b("Image.react"),{src:g("499669")}),label:i._("\u0e25\u0e1a\u0e2d\u0e2d\u0e01"),role:"link",onClick:a,labelIsHidden:!0});return j.jsx("div",{children:e?j.jsx(b("XUISpinner.react"),{className:"_7u-2",size:"small"}):a})}e.exports=a}),null);
  __d("FacebarTypeahead",["Arbiter","Keys","Typeahead","WorkGalahadSearchOverlayEventEmitter","emptyFunction"],(function(a,b,c,d,e,f){"use strict";a=function(a){babelHelpers.inheritsLoose(c,a);function c(c,d,e,f,g,h){c=a.call(this,c,d,e,f)||this;c.getCore();c.proxyEvents();c.initBehaviors(g||[]);var i=c.core.subscribe("focus",function(){h&&h.init(this),this.core.unsubscribe(i),this.data.bootstrap(!1),this.core.input.focus()}.bind(babelHelpers.assertThisInitialized(c)));(d==null?void 0:(e=d.options)==null?void 0:e.isGalahadEnabled)&&Event.listen(f,"keydown",function(a){a.keyCode===b("Keys").TAB&&b("WorkGalahadSearchOverlayEventEmitter").emit("hide")});c.data.bootstrap(!0);c.inform("init",babelHelpers.assertThisInitialized(c),"persistent");b("Arbiter").inform("Facebar/init",babelHelpers.assertThisInitialized(c),"persistent");return c}var d=c.prototype;d.proxyEvents=function(){var a,b=[],c=null,d=function(){while(a=b.shift())this.inform(a[0],a[1]);c=null}.bind(this);[this.data,this.view,this.core].forEach(function(a){a.subscribe(a.events,function(a,e){b.push([a,e]),c=c||setTimeout(d,0)}.bind(this))},this)};return c}(b("Typeahead"));Object.assign(a.prototype,{init:b("emptyFunction")});e.exports=a}),null);
  __d("SearchFunnelLogger",["SearchClientFunnelTypedLogger","SearchFunnelLoggerConfig"],(function(a,b,c,d,e,f){"use strict";a={logSearchOpen:function(a){if(!b("SearchFunnelLoggerConfig").isEnabled)return;new(b("SearchClientFunnelTypedLogger"))().setActionName("search_box_tapped").setTypeaheadSid(a).log()}};e.exports=a}),null);
  __d("FacebarTypeaheadRecorder",["Arbiter","CurrentUser","Event","FacebarGlobalOptions","FacebarJSConstants","FacebarTimerUtils","Keys","SearchFunnelLogger","SearchTypeaheadRecorder","URI","clickRefAction"],(function(a,b,c,d,e,f){"use strict";var g;a=function(a){babelHelpers.inheritsLoose(c,a);function c(b){b=a.call(this,b)||this;b.userText="";b.nullStateCandidates=null;b.singleStateCandidates=null;b.queryTimes={};b._sessionDisabled=!1;b.type="facebar";b._maxQueryID=0;b._isQueryMatch=!0;b._bootstrapSize=null;return b}var d=c.prototype;d.initEvents=function(a){var c=this;a.getCore().subscribe("session",function(a,b){b===null?this.sessionEnd():this.sessionStart(b)}.bind(this));a.getCore().subscribe("select",function(a,b){this.recordStat("time_between_select_and_last_render",Date.now()-this._lastRenderTime),this._firstKeypressTime!=null&&this.recordStat("keypress_to_select_time",Date.now()-this._firstKeypressTime),this.recordSelectInfo(b)}.bind(this));a.getCore().subscribe("magSearch",function(a,b){this.recordMagSearch(b)}.bind(this));a.getCore().input.subscribe("shortcut",function(a,b){this.recordShortcut(b)}.bind(this));a.getCore().subscribe("quickSelectRedirect",function(a,b){this.recordQuickSelectInfo(b)}.bind(this));a.getView().subscribe("render",function(a,b){if(this.data._isInjectedSuggestionFlow)return;this.recordRender(b);this.allFromNullState?this.nullStateCandidates=this.buildListTypeaheadRecords():this.allFromSingleState&&(this.singleStateCandidates=this.buildListTypeaheadRecords());this._lastRenderTime=Date.now()}.bind(this));a.getView().subscribe("show",function(a,b){if(!this.data.lastNullOrSingleStateFetchStartTime)return;this.recordStat("time_render_null_state",Date.now()-this.data.lastNullOrSingleStateFetchStartTime);this.data.lastNullOrSingleStateFetchStartTime=null}.bind(this));a.getView().subscribe("logPerformanceTiming",function(a,b){c.performanceTimings[b.field]=b.value});a.data.subscribe("query",function(a,c){c.value.isEmpty()||this.recordCountStat("num_queries"),this.recordAvgStat("num_results_from_cache",c.results.length),this.queryTimes[c.queryId]={send:b("FacebarTimerUtils").getTimestamp()}}.bind(this));a.data.subscribe("sending_request",function(a,b){a=b.data.value;if(!a)return;this.backendQueries.push(a)}.bind(this));a.subscribe("navigation",function(a,b){b&&b.structure&&(this.recordStat("navigation_input",JSON.stringify(b.structure.toStruct())),this.recordStat("navigation_text",b.structure.toString()))}.bind(this));a.data.subscribe("response_received",function(a,c,d){if(this.queryTimes[c.queryId]){a=this.queryTimes[c.queryId];a.recv=b("FacebarTimerUtils").getTimestamp()-a.send;c&&c.payload&&(a.payload_size=JSON.stringify(c.payload).length)}}.bind(this));a.data.subscribe("remote_query_latency",function(a,b){if(this.queryTimes[b.queryId]){a=this.queryTimes[b.queryId];a.remoteQueryLatencies=b.latencies}}.bind(this));a.data.subscribe("cache_query_latency",function(a,b){if(this.queryTimes[b.queryId]){a=this.queryTimes[b.queryId];a.cacheQueryLatencies=b.latencies}}.bind(this));a.data.subscribe("backend_response",function(a,c){if(this.queryTimes[c.queryId]){a=this.queryTimes[c.queryId];a.render=b("FacebarTimerUtils").getTimestamp()-a.send;c.payload.incomplete&&(a.incomplete=!0);a.backendInfo=c.payload.info;this.core.scubaInfo&&this.logToScuba(c,a,this.core.scubaInfo,c.inputQuery,this.type)}}.bind(this));a.getCore().subscribe("change",function(a,b){this.userInput(this.core.getText())}.bind(this));a.data.subscribe("remote_query_match",function(a,b){this._maxQueryID<b.queryId&&(this._maxQueryID=b.queryId,this._isQueryMatch=b.isMatch)}.bind(this));b("Arbiter").subscribe("BrowseNUX/typing",this.disableThisSession.bind(this));b("Arbiter").subscribe("TestConsole/typing",this.disableThisSession.bind(this));a.subscribe("clear",function(){this.recordAppendStat("before_clear_queries",this.userText)}.bind(this));b("Event").listen(this.element,"keydown",function(a){this.recordStat("keypressed",1),this.recordCountStat("count_keys_pressed"),b("Event").getKeyCode(a)==b("Keys").BACKSPACE?this._backspacing||(this._backspacing=!0,this.recordAppendStat("before_backspace_queries",this.core.getText())):this._backspacing=!1,this._firstKeypressTime==null&&(this._firstKeypressTime=Date.now())}.bind(this));this.core.subscribe("open",function(a,c){c&&c.sessionID&&b("SearchFunnelLogger").logSearchOpen(c.sessionID);if(c&&c.catchup)return;this.data.lastNullOrSingleStateFetchStartTime=Date.now()}.bind(this));this.core.subscribe("focusStartTime",function(a,b){this.data.lastNullOrSingleStateFetchStartTime=b.time}.bind(this));this.data.subscribe("beforeQuery",function(a,b){this.queryStartTime||(this.queryStartTime=[]);a=b.value;this.query=a!=null?a.toString():a;!this.query&&!this.data.lastNullOrSingleStateFetchStartTime&&(this.data.lastNullOrSingleStateFetchStartTime=Date.now());this.queryStartTime[this.query]=Date.now()}.bind(this));a.subscribe("filter",function(a,b){this._unsupportedGrammarInfo=this.buildUnsupportedGrammarInfo(b)}.bind(this));a.getCore().subscribe("recordFunction",function(a,b){this._extraRecorder.push(b)}.bind(this));this.data.subscribe("bootstrapped",function(a,b){this._bootstrapSize=b.size}.bind(this))};d._reset=function(a){this.stats={},this.avgStats={},this.appendStats={},this._backspacing=!1,this.backendQueries=[],this._topreplace=!1,this._inflightRequests={}};d.sessionStart=function(a){this._sessionEnded=!1;this.data.setQueryData({sid:a});this.recordStat("sid",a);this.recordStat("bootstrap_size",this._bootstrapSize);if(!this.stats.session_start_time){this.recordStat("session_start_time",b("FacebarTimerUtils").getTimestamp());a=new Date();a=a.getTimezoneOffset();a=Date.now()-a*60*1e3;this.recordStat("session_start_time_user_timezone",a)}this.recordStat("keypressed",0);this.queryTimes={};this._lastRenderTime=0;this._firstKeypressTime=null};d.sessionEnd=function(){if(this._sessionEnded||this._sessionDisabled){this._sessionDisabled&&(this.reset(),this._sessionDisabled=!1,this._sessionEnded=!0);return}this._sessionEnded=!0;var a="typed";this.allFromNullState?a="nullstate":this.allFromSingleState&&(a="singlestate");this.recordStat("last_state",a);this.recordStat("session_end_time",b("FacebarTimerUtils").getTimestamp());this.recordStat("grammar_version",this.data.getQueryData().grammar_version);this.submit();this.nullStateCandidates=null;this.singleStateCandidates=null};d.disableThisSession=function(){this._sessionDisabled=!0};d.userInput=function(a){this.userText=a};d.buildUnsupportedGrammarInfo=function(a){a=a.results?a.results[0]:null;return!a||a.results_set_type!=="unimplemented"?null:{unsupported_grammar:{category:a.error_info.category||"unknown",edge:a.error_info.blamed_edge}}};d.buildTypeaheadRecord=function(a,c){var d=a.rankType||a.render_type||a.type,e=a.keywordType,f=a.keywordSource;!a.isNullState&&d!==b("FacebarJSConstants").keywordType&&(e=d,b("CurrentUser").isWorkUser()||(d=b("FacebarJSConstants").keywordType),a.isJSBootstrapMatch&&(f=b("FacebarJSConstants").keywordTypes.entityBootstrap));a.isNullState&&d===b("FacebarJSConstants").keywordType&&(f=b("FacebarJSConstants").keywordTypes.recentSearch);var g=0;c=c;typeof a.groupIndex==="number"&&(g=a.groupIndex,c=a.indexInGroup);g={group_index:g,index_in_group:c,cost:a.cost,s_value:a.s_value||0,semantic:a.semantic,text:a.structure.toString(),cache_only:a.cacheOnlyResult?1:0,prefetched:a.isPrefetched?1:0,parse:a.parse,category:a.category,type:d,source:a.bootstrapped,grammar_results_type:(a.results_set_type||"").replace(/[\[\{](.*)[\]\}]/,"$1"),result_from_memcache:a.memcache,dynamic_cost:a.dynamic_cost,is_js_bootstrap_match:a.isJSBootstrapMatch,backend_cost:a.backendCost,bootstrap_cost:a.bootstrapCost,match_type:a.match_type,l_type:a.l_type,vertical_type:a.vertical_type,prefix_match:a.prefix_match,prefix_length:a.prefix_length,index_before_buckets:a.indexBeforeBuckets,bucket_lineage:a.bucketLineage,nullstate:a.isNullState,singlestate:a.isSingleState,query_id:a.qid,template_id:a.templateID,coeff_cost:typeof a.grammar_costs==="undefined"?-1:a.grammar_costs["{"+a.type+"}"],suggestion:a.isSuggestion,keyword_source:f,keyword_bootstrap_type:a.keywordBootstrapType,exact_match_suggestion:a.exactMatchKeyword?1:0,keyword_type:e};a.logInfo&&(g.backend_log_info=a.logInfo);a.s_token&&(g.s_token=a.s_token);a.s_categories&&(g.s_categories=a.s_categories);return g};d.buildListTypeaheadRecords=function(){var a=[];this.results&&this.results.forEach(function(b,c){b.uid!=="search"&&a.push(this.buildTypeaheadRecord(b,c))}.bind(this));return a};d.recordShortcut=function(a){this.recordStat("shortcut",1),this.recordStat("shortcut_with_shift",a.shift)};d.recordStats=function(a,b){for(var c in b)this.recordStat(a+"_"+c,b[c])};d.getTypeaheadIndex=function(a,b){a=typeof a.groupIndex==="number"?a.groupIndex+1:0;return b-a};d.recordQuickSelectInfo=function(a){a={input_query:a.input_query,semantic:a.semantic,type:a.type,position:a.position,with_mouse:a.with_mouse,text:a.text,quick_select:1};this.recordStats("selected",a);this.recordStat("quick_select",1)};d.recordMagSearch=function(a){var b={};b.text=a.text;b.semantic=a.semantic;b.type=a.type;b.input_query=a.text;b.position=a.position;this.recordStats("selected",b)};d.recordSelectInfo=function(a){var c=a.selected,d=this.getTypeaheadIndex(c,a.index),e={};if(c.uid=="search")e.selected_search=1;else{e=this.buildTypeaheadRecord(c);var f=e.type=="friend"?"user":e.type;e.position=d;e[f]=1}e.with_mouse=a.clicked?1:0;e.quick_select=0;e.input_query=this.userText;e.input_fragments=JSON.stringify(this.core.currentQuery.toStruct());d=c.dataGT?{gt:JSON.parse(c.dataGT)}:{};f={href:c.path};b("clickRefAction")("click",f,null,null,d);this.recordStats("selected",e);this.recordAppendStat("selection_history",{selected:e,candidate_results:this.buildListTypeaheadRecords(),timestamp:b("FacebarTimerUtils").getTimestamp()});var g={};this._extraRecorder.forEach(function(b){b(a,this.results,g)}.bind(this));this.recordStat("extra_select_info",JSON.stringify(g));this.recordStat("selected_with_mouse",a.clicked?1:0)};d._dataToSubmit=function(){this.recordStat("max_results",this.data._maxResults);this.stats&&this.stats.selected_input_query?this.recordStat("input_query",this.stats.selected_input_query):this.recordStat("input_query",this.userText);this.recordStat("uri",new(g||(g=b("URI")))(window.location.href).toString());this.stats.shortcut||(this.recordStat("shortcut",0),this.recordStat("shortcut_with_shift",!1));var a=this.stats;for(var c in this.avgStats){var d=this.avgStats[c];a[c]=d[0]/d[1]}d={candidate_results:this.buildListTypeaheadRecords(),timestamp:b("FacebarTimerUtils").getTimestamp(),input_query:this.userText,remote_query_match:this._isQueryMatch};this._unsupportedGrammarInfo&&Object.assign(d,this._unsupportedGrammarInfo);this.recordAppendStat("suggestions_at_end_of_session",d);this.nullStateCandidates&&this.recordAppendStat("suggestions_at_nullstate_session",{candidate_results:this.nullStateCandidates});this.singleStateCandidates&&this.recordAppendStat("suggestions_at_singlestate_session",{candidate_results:this.singleStateCandidates});this.recordAppendStat("query_times",this.queryTimes);this.backendQueries.length>0&&(this.backendQueries.length>this.data.logBackendQueriesWindow&&(this.backendQueries=this.backendQueries.slice(this.backendQueries.length-this.data.logBackendQueriesWindow)),this.recordStat("backend_queries",this.backendQueries));if(b("FacebarGlobalOptions").taSessionLoggingSample){var e=[];this.results.forEach(function(a){e.push([a.text||"",a.category||"",a.subtext||""])});this.recordStat("raw_suggestions_text",e)}this.recordStat("experience_type","gsv2");for(var f in this.appendStats)a[f]=JSON.stringify(this.appendStats[f]);return a};d.getDataToSubmit=function(){return this._dataToSubmit()};d.reset=function(){return this._reset()};d.submit=function(){this._sessionDisabled||a.prototype.submit.call(this),this.view.inform("feedback"),this._reset()};return c}(b("SearchTypeaheadRecorder"));Object.assign(a.prototype,{_sessionEnded:!0,_extraRecorder:[],_banzaiRoute:"facebar"});e.exports=a}),null);
  __d("FacebarTypeaheadDebugPane.react",["React"],(function(a,b,c,d,e,f){"use strict";var g=b("React");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var c=b.prototype;c.renderDebugText=function(a){return g.jsx("div",{children:a},a)};c.render=function(){return g.jsx("div",{className:"fsm pam",children:this.props.result.debug.map(this.renderDebugText)})};return b}(g.Component);e.exports=a}),null);
  __d("FacebarTypeaheadDiffText.react",["cx","React","TextWithEmoticons.react"],(function(a,b,c,d,e,f,g){"use strict";var h=b("React");a=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.renderDiff=function(a,c){return h.jsx("span",{className:"diffNode _5td3",children:h.jsx(b("TextWithEmoticons.react"),{text:a})},c)};d.renderParts=function(){var a=this.props.prefix,c=this.props.text;if(a==null)return[this.renderDiff(c,0)];var d=c.toLowerCase().indexOf(a.toLowerCase());a=a.trim();d===0&&(c=c.slice(a.length));c=c.split(/\b/).map(this.renderDiff);d===0&&c.unshift(h.jsx(b("TextWithEmoticons.react"),{text:a},"prefix"));return c};d.render=function(){return h.jsx("span",babelHelpers["extends"]({},this.props,{children:this.renderParts()}))};c.generatePrefixes=function(a,b){var c=[],d,e;for(var f=0,g=b.length;f<g;f++){e=b[f].getText();d=a.slice(0,Math.min(a.length,e.length));if(d==="")return c;e.toLowerCase().indexOf(d.toLowerCase())===0?(c.push(d),a=a.slice(d.length)):c.push("")}return c};return c}(h.Component);e.exports=a}),null);
  __d("FacebarTypeaheadHighlightedText.react",["BrowseFacebarHighlighter","React","TextWithEmoticons.react"],(function(a,b,c,d,e,f){"use strict";var g=b("React");a=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.renderHighlight=function(a,c){if((c+1)%3===0)return g.jsx("span",{className:"highlightNode",children:g.jsx(b("TextWithEmoticons.react"),{text:a})},c);else return g.jsx(b("TextWithEmoticons.react"),{text:a})};d.renderParts=function(){var a=this.props.text,c=this.props.tokens;if(c!=null&&a!==""){c=b("BrowseFacebarHighlighter").createRegex(c);c=a.split(c);return c.map(this.renderHighlight)}else return g.jsx(b("TextWithEmoticons.react"),{text:a})};d.render=function(){return g.jsx("span",babelHelpers["extends"]({},this.props,{children:this.renderParts()}))};return c}(g.Component);e.exports=a}),null);
  __d("FacebarTypeaheadItem.react",["cx","Badge.react","DOM","DOMContainer.react","FacebarJSConstants","FacebarTypeaheadDebugPane.react","FacebarTypeaheadDiffText.react","FacebarTypeaheadHighlightedText.react","Image.react","React","TypeaheadCanvasConfig","URI","XUICloseButton.react","joinClasses"],(function(a,b,c,d,e,f,g){"use strict";var h,i=b("React");function j(a){a=a.getTypePart(0);return a?"fragment"+a.charAt(0).toUpperCase()+a.substr(1):"fragment"}a=function(a){babelHelpers.inheritsLoose(c,a);function c(){var c,d;for(var e=arguments.length,f=new Array(e),g=0;g<e;g++)f[g]=arguments[g];return(c=d=a.call.apply(a,[this].concat(f))||this,d.renderHighlightedFragment=function(a,c){return i.jsx(b("FacebarTypeaheadHighlightedText.react"),{className:j(a),text:a.getText(),tokens:d.props.highlight},c)},c)||babelHelpers.assertThisInitialized(d)}var d=c.prototype;d.renderDiffedFragment=function(a,c,d){return i.jsx(b("FacebarTypeaheadDiffText.react"),{className:j(a),prefix:c,text:a.getText()},d)};d.renderText=function(){var a=this,c=this.props.result,d=c.isLocal,e=c.displayStructure!=null?c.displayStructure:c.structure;e=e.toArray();var f=this.props.prefix;if(!c.isSeeMore&&f!=null&&f.trim()!==""){var g=b("FacebarTypeaheadDiffText.react").generatePrefixes(f,e);d&&(g=[]);return e.map(function(b,c){g[c]||(g[c]="");return a.renderDiffedFragment(b,g[c],c)})}else return e.map(this.renderHighlightedFragment)};d.renderBadge=function(){var a=this.props.result;if(a.category&&a.category.toString().toLowerCase()===b("TypeaheadCanvasConfig").category_games.toLowerCase()&&b("TypeaheadCanvasConfig").in_games_v1)return i.jsx(b("Badge.react"),{type:"game_blue",size:"medium"});else if(a.is_verified)return i.jsx(b("Badge.react"),{type:"verified",size:"medium"});else if(a.is_work_bot)return i.jsx(b("Badge.react"),{type:"bot",size:"medium"});else if(a.is_work_foreign_entity)return i.jsx(b("Badge.react"),{type:"work_non_coworker"});else if(a.pages_verified_badge===1)return i.jsx(b("Badge.react"),{type:"page_gray_check",size:"medium"});else if(a.is_interest_community)return i.jsx(b("Badge.react"),{type:"interest_community",size:"medium"});return null};d.renderIcon=function(){var a=this.props.result,c=a.icon_class;if(c)return i.jsx("span",{className:"_k83",children:i.jsx("span",{className:c})});else if(a.photo)return i.jsx(b("Image.react"),{className:"_20h",alt:"",src:a.photo});return null};d.renderSecondaryIcon=function(){var a=this.props.result;return!a.isRecent&&a.isInjectedSuggestion?i.jsx("span",{className:"_3kxl"}):null};d.renderUnseenPosts=function(){if(this.props.recentSearchItem&&this.props.result.unseen_posts){var a=i.jsx(b("DOMContainer.react"),{children:b("DOM").create("span",{className:""}," \xb7 ")}),c=i.jsx(b("DOMContainer.react"),{children:b("DOM").create("span",{className:""},this.props.result.unseen_posts.markup)});return i.jsxs("span",{className:"_2tb-",children:[a,c]})}return null};d.renderLabel=function(){var a=" \xb7 ",b=this.props.result;b="_53ad"+(this.props.valign&&this.props.token&&this.props.token.props&&this.props.token.props.text.length>0?" _55y-":"")+(!b.category&&!b.subtext?" _2vzo":"")+(!b.category&&!!b.subtext||b.category&&b.category.toString().indexOf(a)<0&&!b.subtext?" _2vzp":"")+(b.category&&!!b.subtext||b.category&&b.category.toString().indexOf(a)>0?" _2vzq":"");a=this.renderUnseenPosts();b=i.jsxs("span",{className:b,children:[this.renderText(),this.props.hideBadge?null:this.renderBadge(),a,this.props.token]});a="_7gk"+(this.props.message?" _5byz":"");return i.jsxs("span",{className:a,children:[b,this.props.message]})};d.renderMain=function(){var a=i.jsx("a",{className:"_6i1",href:this.props.result.uri,children:i.jsxs("span",{children:[this.props.icon||this.renderIcon(),this.renderLabel(),this.renderSecondaryIcon()]})});this.props.result.isAsync&&(a=i.jsx("a",{className:"_6i1",href:"#",ajaxify:this.props.result.asyncURI,rel:"async",children:i.jsxs("span",{children:[this.props.icon||this.renderIcon(),this.renderLabel(),this.renderSecondaryIcon()]})}));return i.jsxs("span",{className:"_205",rel:"ignore",children:[this.renderActivityLogXButton(),a]})};d.renderActivityLogXButton=function(){if(this.props.result.keywordBootstrapType!==b("FacebarJSConstants").keywordBootstrapTypes.recent)return null;var a=new(h||(h=b("URI")))("/me/allactivity");a.setQueryData({privacy_source:"activity_log",log_filter:"search"});return i.jsx(b("XUICloseButton.react"),{size:"medium",className:"_2d9t",href:a})};d.renderDebug=function(){return this.props.result.debug?i.jsx(b("FacebarTypeaheadDebugPane.react"),{result:this.props.result}):null};d.render=function(){var a=this.props.result;a="_202 _5bl2 _6_k _1et7 _28vg"+(a.isCelebrity?" _5g-n":"")+(a.isSeeMore?" _qbs":"")+(a.isInjectedSuggestion?" _3kxm":"")+(a.isTrending||a.isHappeningNow?" _5g-o":"")+(a.isRecent?" _jsd":"")+(a.isLocal?" _1821":"")+(a.isFootball?" _1822":"")+(a.isHashtag?" _4z1b":"")+(a.isPhotos?" _4z1c":"")+(a.isVideos?" _4z1d":"")+(a.isInvalidated||a.is_inactive?" _44vm":"");return i.jsx("li",{className:b("joinClasses")(a,this.props.className),onClick:this.props.onClick,onMouseDown:this.props.onMouseDown,onMouseEnter:this.props.onMouseEnter,role:"row",children:i.jsxs("div",{role:"gridcell",children:[this.renderMain(),this.renderDebug()]})})};return c}(i.Component);a.defaultProps={valign:!0};e.exports=a}),null);
  __d("FacebarTypeaheadToken.react",["cx","FacebarTypeaheadHighlightedText.react","React"],(function(a,b,c,d,e,f,g){"use strict";var h=b("React"),i=" \xb7 ";a=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){var a=this,c=this.props.text.map(function(a){return String(a)});this.props.limit&&c.splice(this.props.limit);c.forEach(function(b,d){(d!==0||a.props.leadingMiddot)&&(c[d]=i+b)});var d=c.shift(),e;d!=null&&(e=h.jsx(b("FacebarTypeaheadHighlightedText.react"),{className:this.props.mainClass,tokens:this.props.highlight,text:d}));var f;c.length>0&&(f=h.jsx(b("FacebarTypeaheadHighlightedText.react"),{tokens:this.props.highlight,className:"_53ab",text:c.join("")}));d=this.props.innerClass||"_53aa";return h.jsx("span",{className:"_53a9",children:h.jsxs("span",{className:d,children:[e,f]})})};return c}(h.Component);e.exports=a}),null);
  __d("FacebarTypeaheadTokenText",["FbtResultBase","HTML","getElementText"],(function(a,b,c,d,e,f){"use strict";var g="\xb7";function h(a){if(a instanceof b("FbtResultBase"))return a.toString();else if(typeof a==="object")return b("getElementText")(b("HTML")(a).getRootNode());else return String(a)}function i(a){return h(a).split(g).map(function(a){return a.trim()})}function j(a){var b={};return a.filter(function(a){var c=String(a),d=!b[c];b[c]=!0;return a!=null&&a!==""&&d})}a={textForEntity:function(a,b){b=a.category||b[a.type]||"";var c=a.subtext||"";a=a.boldedSubtext||"";b=i(b).concat(i(a)).concat(i(c));return j(b)},text:function(a){return j(i(a))}};e.exports=a}),null);
  __d("FacebarTypeaheadEntityItem.react",["ix","cx","CurrentUser","FacebarTypeaheadItem.react","FacebarTypeaheadToken.react","FacebarTypeaheadTokenText","Image.react","React","RoundImage.react","TypeaheadFacepileX.react","asset"],(function(a,b,c,d,e,f,g,h){"use strict";var i=b("React");a=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.renderToken=function(){return i.jsx(b("FacebarTypeaheadToken.react"),{highlight:this.getHighlightTokens(),text:b("FacebarTypeaheadTokenText").textForEntity(this.props.result,{}),category:this.props.result.category})};d.renderIcon=function(){var a=this.props.result;if(a.isNullState){var c=a.icon_class?i.jsx("span",{className:a.icon_class}):i.jsx(b("Image.react"),{className:"_20h",src:a.photo});return i.jsx("span",{children:c})}if((a.type==="user"||a.type==="page")&&a.photo)return i.jsx(b("RoundImage.react"),{className:"_20h",src:a.photo});if((a.type==="group"||a.type==="event")&&a.photo)return i.jsx(b("Image.react"),{className:"_20h _7a55",src:a.photo});if(a.size>1&&a.photos)return i.jsx(b("TypeaheadFacepileX.react"),{className:"_51l_",photos:a.photos,size:a.size});else if(a.photo)return i.jsx(b("Image.react"),{className:"_20h",alt:"",src:a.photo});else if(b("CurrentUser").isWorkUser()&&!a.isInviteCoworkers)return i.jsx(j,{result:a});return null};d.getHighlightTokens=function(){if(this.props.result.original_query==null)return null;var a=this.props.result.original_query.toString().trim(),b=a.split(" ");b=b.length>1?[a].concat(b):[a];return b.filter(function(a){return a!==""})};d.render=function(){var a=babelHelpers["extends"]({},this.props,{icon:this.renderIcon(),token:this.renderToken(),highlight:this.getHighlightTokens(),valign:!0});return i.jsx(b("FacebarTypeaheadItem.react"),babelHelpers["extends"]({},a))};return c}(i.Component);function j(a){a=a.result;var c="_20h",d=null;switch(a.type){case"user":d=g("489501");break;case"page":a.category_type==="MEETING_ROOM"?d=g("794183"):d=g("669566");break;case"group":d=g("542240");break;case"event":d=g("534788");break}return d==null?null:i.jsx("div",{className:c,children:i.jsx(b("Image.react"),{className:"_7g-z",src:d})})}e.exports=a}),null);
  __d("FacebarTypeaheadKeywordItem.react",["cx","fbt","CurrentUser","FacebarTypeaheadItem.react","FacebarTypeaheadToken.react","FacebarTypeaheadTokenText","React","joinClasses"],(function(a,b,c,d,e,f,g,h){"use strict";var i=b("React");a=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){var a="";b("CurrentUser").isWorkUser()?a=[h._("\u0e04\u0e49\u0e19\u0e2b\u0e32 Workplace")]:a=[h._("\u0e04\u0e49\u0e19\u0e2b\u0e32\u0e43\u0e19 Facebook")];this.props.result.isTrending?a.push(h._("\u0e01\u0e33\u0e25\u0e31\u0e07\u0e2e\u0e34\u0e15")):this.props.result.type=="related"&&(a=[h._("\u0e01\u0e32\u0e23\u0e04\u0e49\u0e19\u0e2b\u0e32\u0e17\u0e35\u0e48\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e02\u0e49\u0e2d\u0e07")]);var c=b("FacebarTypeaheadTokenText").textForEntity(this.props.result,{});c!=null&&c.length&&(a=c);c=c!=null&&(c.length>1||this.props.result.boldedSubtext!=null);var d=this.props.result.isSeeMore;d=d?null:i.jsx(b("FacebarTypeaheadToken.react"),{text:a,mainClass:(c?"_4jt7":"")+(c&&this.props.result.isSpecialIntent&&!this.props.result.isLocal?" _21z1":"")+(c&&this.props.result.isLocal?" _2xfl":"")+(c&&this.props.result.isPhotos?" _21z2":"")+(c&&this.props.result.isVideos?" _21z4":"")+(c&&this.props.result.isSingleState&&this.props.result.exactMatchKeyword&&!this.props.result.isLocal?" _21z5":""),innerClass:"_53ab"});return i.jsx(b("FacebarTypeaheadItem.react"),babelHelpers["extends"]({},this.props,{className:b("joinClasses")(this.props.className,"_5d77"),token:d,prefix:this.props.result.query_string.toLowerCase(),showSecondaryIcon:!1}))};return c}(i.Component);e.exports=a}),null);
  __d("FacebarTypeaheadMessengerThreadIcon.react",["cx","React","WorkGalahadImage.react"],(function(a,b,c,d,e,f,g){"use strict";var h=b("React");function a(a){a.className;a=a.result;a=a.participantImgs;if(!Array.isArray(a))return null;if(a.length===1)return i(a[0],0,32);a=a.slice(0,2);return h.jsx("div",{className:"_7ev9",children:a.map(function(a,b){return i(a,b,23)})})}function i(a,c,d){return h.jsx("div",{className:"_7eva",children:h.jsx(b("WorkGalahadImage.react"),{src:a,height:d,type:"circle",width:d})},c)}e.exports=a}),null);
  __d("FacebarTypeaheadMessengerThreadItem.react",["cx","fbt","FacebarTypeaheadItem.react","FacebarTypeaheadMessengerThreadIcon.react","FacebarTypeaheadToken.react","React"],(function(a,b,c,d,e,f,g,h){"use strict";var i=b("React");a=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){var a=babelHelpers["extends"]({},this.props,{icon:i.jsx(b("FacebarTypeaheadMessengerThreadIcon.react"),{result:this.props.result,className:"_20h",size:36}),token:this.renderToken(),valign:!0});return i.jsx(b("FacebarTypeaheadItem.react"),babelHelpers["extends"]({},a))};d.renderToken=function(){var a=[h._("\u0e41\u0e0a\u0e17")];return i.jsx(b("FacebarTypeaheadToken.react"),{text:a,category:this.props.result.category})};return c}(i.Component);e.exports=a}),null);
  __d("FacebarTypeaheadNodeItem.react",["DOM","React","ReactDOM","isElementNode"],(function(a,b,c,d,e,f){"use strict";var g=b("React");a=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){var a=this.props.result.node;return g.jsx("li",babelHelpers["extends"]({},this.props,{children:b("isElementNode")(a)?null:a}))};d.attachNode=function(){var a=b("ReactDOM").findDOMNode(this);if(a==null)return;var c=this.props.result.node;b("isElementNode")(c)&&b("DOM").setContent(a,c)};d.componentDidMount=function(){this.attachNode()};d.componentDidUpdate=function(){this.attachNode()};d.shouldComponentUpdate=function(a){return this.props.result.node!==a.result.node};return c}(g.Component);e.exports=a}),null);
  __d("FacebarTypeaheadRecentItem.react",["cx","FacebarGlobalOptions","FacebarTypeaheadItem.react","FacebarTypeaheadToken.react","Image.react","React","RoundImage.react"],(function(a,b,c,d,e,f,g){"use strict";var h=b("React");a=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){return h.jsx(b("FacebarTypeaheadItem.react"),babelHelpers["extends"]({},this.props,{token:this.renderToken(),icon:this.renderIcon(),recentSearchItem:!0}))};d.renderToken=function(){return this.props.result.subtext?h.jsx(b("FacebarTypeaheadToken.react"),{text:[this.props.result.subtext]}):null};d.renderIcon=function(){var a=this.props.result;if((a.type==="user"||a.type==="page")&&a.photo)return h.jsx(b("RoundImage.react"),{className:"_20h",src:a.photo});if((a.type==="group"||a.type==="event")&&a.photo)return h.jsx(b("Image.react"),{className:"_20h _7a55",src:a.photo});if(!b("FacebarGlobalOptions").allowGrammar)return h.jsx(b("Image.react"),{className:"_20h",src:a.photo});var c=a.icon_class?h.jsx("span",{className:a.icon_class}):h.jsx(b("Image.react"),{className:"_20h",src:a.photo});return h.jsx("span",{className:a.icon_class?"_k83":"",children:c})};return c}(h.Component);e.exports=a}),null);
  __d("XTypeaheadReportController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/ajax/typeahead/search_suggestion_report/",{search_suggestion:{type:"String",required:!0},typed_query:{type:"String",required:!0},__asyncDialog:{type:"Int"}})}),null);
  __d("FacebarTypeaheadSimpleItem.react",["ix","cx","fbt","AbstractButton.react","FacebarGlobalOptions","FacebarJSConstants","FacebarRemoveRecentSearchButton.react","FBLogger","Image.react","Locale","React","RoundImage.react","SearchSuggestionsHighlighter","XTypeaheadReportController","fbglyph","gkx","joinClasses","killswitch","mayHaveConnectedCharacters"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=b("React");function k(a){a=a.result;var c=a.displayStructure!=null?a.displayStructure:a.structure;c=c!=null?c.toString():"";var d=c;a.keywordType!==b("FacebarJSConstants").keywordTypes.escape&&!a.isNullState&&(c=c.toLowerCase());var e=a.query_string?a.query_string.toLowerCase():null;if(!b("killswitch")("SEARCH_WWW_DISABLE_TYPEAHEAD_HIGHLIGHTING")&&!b("mayHaveConnectedCharacters")(c)&&e!=null&&!a.isSeeMore)try{c=b("SearchSuggestionsHighlighter").highlightNonMatch(e,c)}catch(a){b("FBLogger")("search").catching(a).mustfix("Error highlighting search suggestion (%s) for query (%s)",d,e)}return b("Locale").isRTL()?j.jsxs("div",{className:"_19bk",children:[c,"\u200e"]}):j.jsx("div",{className:"_19bk",children:c})}function l(a){a=a.result;if(!a.isNullState||!b("FacebarGlobalOptions").logSERPClickAsRecentSearch)return null;var c="_19bl",d;a.photo!=null&&(d=j.jsx(b("RoundImage.react"),{className:b("joinClasses")(c,"_19bm"),src:a.photo,width:"24",height:"24"}));d==null&&(d=j.jsx(b("Image.react"),{className:c,src:g("126434"),width:"16",height:"16"}));return d!=null?j.jsx("div",{className:"_19bp",children:d}):null}function a(a){var c=a.onClick,d=a.onMouseEnter,e=a.onMouseDown;a=a.result;var f;if(b("gkx")("678803")&&!a.isNullState&&!a.isSeeMore){var g=b("XTypeaheadReportController").getURIBuilder().setString("search_suggestion",String(a.text)).setString("typed_query",a.query_string).getURI();f=j.jsx("div",{role:"gridcell",children:j.jsx(b("AbstractButton.react"),{className:"_6auy",href:"#",ajaxify:g,image:j.jsx("div",{className:"_7h01"}),label:i._("\u0e43\u0e2b\u0e49\u0e02\u0e49\u0e2d\u0e40\u0e2a\u0e19\u0e2d\u0e41\u0e19\u0e30\u0e23\u0e32\u0e22\u0e01\u0e32\u0e23\u0e41\u0e19\u0e30\u0e19\u0e33\u0e43\u0e19 Typeahead"),role:"link",labelIsHidden:!0,rel:"dialog"})})}g=a.isNullState&&a.isRecent?j.jsx("div",{role:"gridcell",children:j.jsx(b("FacebarRemoveRecentSearchButton.react"),{recentSearch:String(a.text)})}):null;return j.jsx("div",{children:j.jsxs("li",{className:"_202 _19bq"+(a.isSeeMore?" _19br":""),onMouseDown:e,onMouseEnter:d,role:"row",children:[j.jsx("div",{role:"gridcell",className:"_7g_o",children:j.jsxs("a",{onClick:c,href:a.uri,className:"_19bs",children:[j.jsx(l,{result:a}),j.jsx(k,{result:a})]})}),f,g]})})}e.exports=a}),null);
  __d("FacebarTypeaheadList.react",["csx","cx","fbt","invariant","CSS","CurrentUser","FacebarGlobalOptions","FacebarJSConstants","FacebarTypeaheadEntityItem.react","FacebarTypeaheadKeywordItem.react","FacebarTypeaheadMessengerThreadItem.react","FacebarTypeaheadNodeItem.react","FacebarTypeaheadRecentItem.react","FacebarTypeaheadSimpleItem.react","JSResource","LoadingIndicator.react","React","ReactFlareEventUtils","StaticContainer.react","WorkGalahadChatSearchAddThreadID","lazyLoadComponent"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";var k=b("React"),l=b("ReactFlareEventUtils").createFromReactFlareEvent,m=(a=b("lazyLoadComponent"))((c=b("JSResource"))("WorkGalahadSearchTypeaheadEntityItem.react").__setRef("FacebarTypeaheadList.react")),n=a(c("WorkGalahadSearchTypeaheadKeywordItem.react").__setRef("FacebarTypeaheadList.react")),o=a(c("WorkGalahadSearchTypeaheadMessengerItem.react").__setRef("FacebarTypeaheadList.react")),p=a(c("WorkGalahadSearchTypeaheadPostItem.react").__setRef("FacebarTypeaheadList.react")),q={related:b("FacebarTypeaheadKeywordItem.react")};q[b("FacebarJSConstants").browseTypes.keyword]=b("FacebarTypeaheadKeywordItem.react");q[b("FacebarJSConstants").keywordType]=b("FacebarTypeaheadKeywordItem.react");q[b("FacebarJSConstants").messengerThreadsType]=b("FacebarTypeaheadMessengerThreadItem.react");d=function(a){babelHelpers.inheritsLoose(c,a);function c(){var c,d;for(var e=arguments.length,f=new Array(e),g=0;g<e;g++)f[g]=arguments[g];return(c=d=a.call.apply(a,[this].concat(f))||this,d.handleMouseLeave=function(){b("FacebarGlobalOptions").facebarTypeaheadMouseoutHighlight&&d.props.onClearHighlight()},c)||babelHelpers.assertThisInitialized(d)}var d=c.prototype;d.getItemComponentConstructor=function(a){if(this.props.isGalahadSearch||this.props.isNewClassicSearch)if(a.type==="keyword")return n;else if(a.type===b("FacebarJSConstants").messengerThreadsType)return o;else if(a.isWorkplacePost)return p;else return m;if(!b("CurrentUser").isWorkUser())return b("FacebarTypeaheadSimpleItem.react");if(a.node)return b("FacebarTypeaheadNodeItem.react");if(a.isRecent)return b("FacebarTypeaheadRecentItem.react");if(a.results_set_type===b("FacebarJSConstants").browseTypes.keyword)return b("FacebarTypeaheadKeywordItem.react");return a.type!=null&&q[a.type]?q[a.type]:b("FacebarTypeaheadEntityItem.react")};d.renderItem=function(a){var c=this,d=this.getItemComponentConstructor(a),e;a.type===b("FacebarJSConstants").keywordType?e=a.query_string+a.semantic+a.boldedSubtext+a.subtext+a.fromCache+(a.isSeeMore?"see_more":"")+(a.keywordBootstrapType?a.keywordBootstrapType:"")+(a.uid!=null?a.uid:"")+a.isInvalidated:(e=a.semantic||a.uid||a.tuid,e+=a.isNullState+a.category+a.subtext,e+=a.query_string);b("FacebarGlobalOptions").dymOnEchoOnly&&(a.query_string!==a.text?a.uri.addQueryData({em:"1"}):a.uri.removeQueryData("em"));b("FacebarGlobalOptions").noDymOnSingleState&&(a.isSingleState&&a.uri.addQueryData({em:"1"}));b("FacebarGlobalOptions").noDymOnNullState&&(a.isNullState&&a.uri.addQueryData({em:"1"}));d=k.jsx(k.Suspense,{fallback:null,children:k.jsx(d,{highlighted:a===this.props.highlightedResult,result:a,onClick:function(b){return c.handleClick(b,a)},onMouseEnter:function(){return c.handleMouseEnter(a)},isNewClassicSearch:this.props.isNewClassicSearch})},e);if(this.props.controlledHighlight)return d;else return k.jsx(b("StaticContainer.react"),{children:d},e)};d.renderFooter=function(){var a="_3su"+(this.props.loading?"":" hidden_elem");return k.jsx("li",{className:a,children:k.jsxs("div",{className:"_21f",children:[i._("\u0e01\u0e33\u0e25\u0e31\u0e07\u0e04\u0e49\u0e19\u0e2b\u0e32\u0e1c\u0e25\u0e25\u0e31\u0e1e\u0e18\u0e4c"),k.jsx(b("LoadingIndicator.react"),{size:"medium",color:"white"})]})})};d.render=function(){var a=this.props.results,b=[];a&&a.forEach(function(a){b.push(this.renderItem(a))},this);return k.jsx("div",{children:k.jsxs("ul",{id:"facebar_typeahead_view_list",className:"_21c"+(this.props.isKeywordList?" _2yob":""),"data-click":"Search",onMouseLeave:this.handleMouseLeave,children:[b,this.renderFooter()]})})};d.handleClick=function(a,c){a.target instanceof HTMLElement||j(0,531);if(b("CSS").matchesSelector(a.target,"._2d9t"))return;var d=a.type==="press"?l(a):a.nativeEvent;!d.isMiddleClick()&&!d.getModifiers().any&&(c.type===b("FacebarJSConstants").messengerThreadsType&&b("WorkGalahadChatSearchAddThreadID").addThreadID(c.serverThreadID,c.clientThreadID),this.props.onSelect(c),a.type!=="press"&&a.preventDefault())};d.handleMouseEnter=function(a){this.props.onHighlight(a)};d.componentDidUpdate=function(a){this.props.onRender()};d.shouldComponentUpdate=function(a){return this.props.loading!==a.loading||this.props.results!==a.results||this.props.highlightedResult!==a.highlightedResult};return c}(k.Component);e.exports=d}),null);
  __d("FacebarTypeaheadGSV2List.react",["cx","fbt","BanzaiODS","FacebarTypeaheadList.react","LeftRight.react","Link.react","React","SearchCoronavirusGlobalTypeaheadStrings","URI","WorkGalahadChannelItemChromeList.react","WorkGalahadNavHeaderPressableAction.react","WorkGalahadNavTextHeader.react","filterNulls","gkx"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=b("React");a=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.copyProps=function(a){return babelHelpers["extends"]({accessibilityElement:this.props.accessibilityElement,onClearHighlight:this.props.onClearHighlight,onHighlight:this.props.onHighlight,onRender:this.props.onRender,onSelect:this.props.onSelect,isGalahadSearch:this.props.isGalahadSearch,isNewClassicSearch:this.props.isNewClassicSearch},a,{loading:this.props.isGalahadSearch?!1:a.loading})};d.render=function(){var a=this.props.listProps,c=this.copyProps(Object.assign({},a,{isKeywordList:!0})),d=this.copyProps(a),e=this.copyProps(Object.assign({},a,{isKeywordList:!0}));c.results=this.props.isNullState?this.props.keywordResults.filter(function(a){return!a.isRecent}):this.props.keywordResults;e.results=this.props.isNullState?[]:this.props.results.filter(function(a){return a.isSeeMore});d.results=this.props.entityResults.filter(function(a){return!a.isRecent&&!a.isWorkplacePost&&!a.isTrending});e.results.length>0||this.props.isNullState?(c.loading=!1,d.loading=!1):d.results.length===0?d.loading=!1:c.loading=!1;var f=!!d.results.length,g=!!c.results.length,k=!1,l=!1,m=this.copyProps(d);this.props.isNullState&&(m.results=this.props.entityResults.filter(function(a){return!!a.isRecent}),k=!!m.results.length);var n=this.copyProps(d);n.results=this.props.entityResults.filter(function(a){return!!a.isWorkplacePost});l=!!n.results.length;if(l){var o=d.results.reduce(function(a,b){return Math.max(a,b.indexBeforeBuckets)},0);n.results=n.results.map(function(a){var b,c;a.bucketLineage!=null&&!!a.bucketLineage.length&&(c=a.bucketLineage[0].bucketIndex);c=(b=c)!=null?b:a.indexBeforeBuckets;a.indexBeforeBuckets=o+c;return a})}var p="edit_search_history";p=new(i||(i=b("URI")))("/me/allactivity").addQueryData({privacy_source:"activity_log",log_filter:"search",entry_point:p});var q=h._("\u0e01\u0e32\u0e23\u0e04\u0e49\u0e19\u0e2b\u0e32\u0e25\u0e48\u0e32\u0e2a\u0e38\u0e14"),r=h._("\u0e40\u0e02\u0e49\u0e32\u0e16\u0e36\u0e07\u0e42\u0e1e\u0e2a\u0e15\u0e4c\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e23\u0e27\u0e14\u0e40\u0e23\u0e47\u0e27"),s=function(){b("BanzaiODS").bumpEntityKey(354,"www_global_ta","activity_log_clicked")},t;if(b("gkx")("1370455")){a=this.copyProps(a);a.results=this.props.entityResults.filter(function(a){return a.isTrending===!0});t=a.results.length>0?j.jsxs("div",{children:[j.jsx(b("LeftRight.react"),{className:"_3zsi _1ejo",children:b("SearchCoronavirusGlobalTypeaheadStrings").GLOBAL_TYPEAHEAD_SECTION_HEADER}),j.jsx(b("FacebarTypeaheadList.react"),babelHelpers["extends"]({},a))]},"covid"):null}a=j.jsxs("div",{className:k?"":"hidden_elem",children:[this.props.isGalahadSearch?j.jsx(b("WorkGalahadNavTextHeader.react"),{title:q,indented:!1,action:b("gkx")("997564")?void 0:j.jsx(b("WorkGalahadNavHeaderPressableAction.react"),{href:p,title:h._("\u0e41\u0e01\u0e49\u0e44\u0e02"),showOnHover:!1,onClick:s})}):j.jsxs(b("LeftRight.react"),{className:"_3zsi _1ejo",children:[q,j.jsx(b("Link.react"),{href:p,onClick:s,"data-testid":void 0,children:h._("\u0e41\u0e01\u0e49\u0e44\u0e02")})]}),k?j.jsx(b("FacebarTypeaheadList.react"),babelHelpers["extends"]({},m)):null]},"recent");q=j.jsxs("div",{className:(!l||!this.props.isGalahadSearch?"hidden_elem":"")+(l?" _3-8z":""),children:[j.jsx(b("WorkGalahadNavTextHeader.react"),{title:r,indented:!1}),l?j.jsx(b("FacebarTypeaheadList.react"),babelHelpers["extends"]({},n)):null]},"post");p=j.jsx("div",{className:this.props.isNullState||!g?"hidden_elem":"",children:this.props.isNullState?null:j.jsx(b("FacebarTypeaheadList.react"),babelHelpers["extends"]({},c))},"keyword");s=j.jsx("div",{className:f?"":"hidden_elem",children:j.jsx(b("FacebarTypeaheadList.react"),babelHelpers["extends"]({},d))},"entity");k=[];this.props.isNullState?k=b("filterNulls")([p,t,a,s]):k=[p,s];l&&k.push(q);m=j.jsx("div",{className:"_3-xd"+(this.props.seeMoreResult==null||this.props.isNullState?" hidden_elem":""),children:j.jsx(b("FacebarTypeaheadList.react"),babelHelpers["extends"]({},e))});return j.jsxs("div",{className:"_21r",children:[this.props.isGalahadSearch?m:null,k,j.jsx("div",{className:!this.props.isNullState||!g?"hidden_elem":"",children:this.props.isNullState?j.jsx(b("FacebarTypeaheadList.react"),babelHelpers["extends"]({},c)):null}),this.props.isGalahadSearch?null:m,this.props.isGalahadSearch&&this.props.listProps.loading?j.jsx(b("WorkGalahadChannelItemChromeList.react"),{type:"search",amount:1}):null]})};return c}(j.Component);e.exports=a}),null);
  __d("FacebarTypeaheadView",["csx","cx","fbt","Arbiter","ContextualLayer","ContextualLayerUpdateOnScroll","CSS","DOM","FacebarGlobalOptions","FacebarJSConstants","FacebarStructuredText","FacebarTypeaheadGSV2List.react","Parent","React","ReactDOM","ScriptPath","Style","SubscriptionList","TypeaheadView","performanceNow"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=b("React"),l="unimplemented";a=function(a){babelHelpers.inheritsLoose(c,a);function c(c,d){var e;e=a.call(this,c,d)||this;e.handleClearHighlight=function(){e.highlight(e.getDefaultIndex(),!1)};e.handleHighlight=function(a){e.highlight(e.getIndexOf(a,e.results),!1),e.resetColumn()};e.handleSelect=function(a){e.handleHighlight(a),e.select(!0)};e.handleRender=function(){e.items=e.getItems()};e.isGalahadEnabled=Boolean(d.isGalahadEnabled);e.isNewClassicSearch=Boolean(d.isNewClassicSearch);e.element=c;e.sid="";e.index=-1;e.warningShown=!1;e.autoSelect=!1;e.flipCount=0;e.loading=!1;e.events=["highlight","render","filter","show"];e.mousedownSubscriptions=new(b("SubscriptionList"))();return e}var d=c.prototype;d.init=function(){this.initializeElements()};d.onMousedown=function(a){this.mousedownSubscriptions.add(a)};d.initGSV2Elements=function(){this.element,this.results=[],this.keywordResults=[],this.entityResults=[]};d.initializeElements=function(){var a=this,c=this.element;Event.listen(this.element,"mousedown",function(b){return a.mousedownSubscriptions.fireCallbacks(b)});this.content=b("DOM").find(c,"._21r");this.warningNode=b("DOM").find(c,"._553e");this.resultsContainer=b("DOM").create("div");this.initGSV2Elements()};d.initializeList=function(){this.renderTypeaheadList(),this.content.appendChild(this.resultsContainer)};d.initializeLayer=function(){this.layer=new(b("ContextualLayer"))({context:b("Parent").bySelector(this.causalElement,"._585-"),position:"below",causalElement:this.causalElement,shouldSetARIAProperties:!1,"data-testid":"search_typeahead_view"},this.element).enableBehavior(b("ContextualLayerUpdateOnScroll"));var a=this.layer.getRoot();a.setAttribute("role","grid");a=this.layer.getContentRoot();this.root=b("DOM").find(a,"._50c9");b("CSS").addClass(a,"_5tlx");b("CSS").addClass(a,"_5xzd");this.wrapper=a};d.setInputElement=function(a){this.setAccessibilityControlElement(a),this.causalElement=a,this.isGalahadEnabled||this.initializeLayer(),this.initializeList()};d.setAutoSelect=function(a){this.autoSelect=a,this.index===-1&&a&&this.first()};d.getIndexOf=function(a,b){for(var c=0;c<b.length;c++)if(a.semantic===b[c].semantic&&a.isSeeMore===b[c].isSeeMore&&a.text===b[c].text)return c;return-1};d.getDefaultIndex=function(){return-1};d.show=function(c){if(!this.visible){this.isGalahadEnabled||(this.inform("beforeShow",this.layer),b("Style").set(this.wrapper,"minWidth",c+"px"));c=a.prototype.show.call(this);this.first();this.isGalahadEnabled||(this.layer.show(),this.layer.updatePosition());this.inform("show");b("Arbiter").inform("layer_shown",{type:"FacebarTypeahead"});return c}};d.hide=function(){this.visible&&(this.isGalahadEnabled||this.layer.hide(),a.prototype.hide.call(this),this.inform("hide"),b("Arbiter").inform("layer_hidden",{type:"FacebarTypeahead"}),this.flipCount=0);return this};d.select=function(c){var d=this.results&&this.results[this.index];if(!d){this.inform("quickSelect");return}d=this.inform("beforeSelect",{index:this.index,selected:d});d!==!1&&(b("ScriptPath").setClickPointInfo({click:"Search"}),a.prototype.select.call(this,c))};d.processGSV2Results=function(a){var b=this;this.keywordResults=[];this.entityResults=[];var c=[],d=[],e=[],f=a.some(function(a){return a.isSingleState});a.forEach(function(a){b.entityResults.push(a)});f&&(this.keywordResults=e.concat(d.concat(c)));return this.keywordResults.concat(this.entityResults)};d.buildResultsData=function(a,b){var c=String(this.value);a.forEach(function(a){a.query_string=c});this.results=a;this.results=this.processGSV2Results(a);if(this.seeMoreResult){a=this.results.indexOf(this.seeMoreResult);a>-1&&this.results.splice(a,1);this.seeMoreResult=null}!this.isNullState()&&!b&&(this.seeMoreResult=this.inform("seeMore",{value:c,results:this.results}),this.seeMoreResult&&(this.isGalahadEnabled?this.results.unshift(this.seeMoreResult):this.results.push(this.seeMoreResult),this.inform("afterSeeMore",{results:this.results})))};d.buildResultsNoRegeneration=function(a,c){this.buildResultsData(a,c);a=(j||(j=b("performanceNow")))();this.renderTypeaheadList({results:this.results,loading:this.loading});this.inform("logPerformanceTiming",{field:"build_results_set_props_duration",value:j()-a})};d.buildResults=function(a){var b=a.some(function(a){return a.isSingleState});this.buildResultsNoRegeneration(a,b);return this.resultsContainer};d.getGSV2Items=function(){return a.prototype.getItems.call(this).filter(function(a){return!b("CSS").matchesSelector(a,"._3su")})};d.getItems=function(){return this.getGSV2Items()};d.render=function(c,d,e,f){this.inform("filter",{results:d,value:c});var g=!c||c instanceof b("FacebarStructuredText")&&c.isEmptyOrWhitespace();this.isGalahadEnabled||b("CSS").conditionClass(this.wrapper,"_5qz2",!d.length&&g);var h=d[0];f&&!g||(h&&h.results_set_type===l?h.error_info.suppress||this.showWarning(h.error_info.errorMessage||i._("\u0e44\u0e21\u0e48\u0e23\u0e2d\u0e07\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e04\u0e49\u0e19\u0e2b\u0e32\u0e19\u0e35\u0e49\u0e43\u0e19\u0e02\u0e13\u0e30\u0e19\u0e35\u0e49")):this.hideWarning());d=d.filter(function(a){return a.results_set_type!==l});a.prototype.render.call(this,c,d,e)};d.reset=function(){this.index=-1;this.items=[];this.results=[];this.value="";this.buildResults([]);this.inform("reset");return this};d.resetIndex=function(){this.index=this.getDefaultIndex()};d.showWarning=function(a){b("CSS").show(this.warningNode),b("DOM").setContent(this.warningNode,a),this.warningShown=!0,this.highlight(-1,!1)};d.hideWarning=function(){b("CSS").hide(this.warningNode),this.warningShown=!1,this.highlight(this.index,!1)};d.setLoading=function(a){this.loading!=a&&(this.loading=a,this.renderTypeaheadList({results:this.results,loading:a}))};d.first=function(){this.index=this.autoSelect?0:-1,this.highlight(this.index)};d.prev=function(){(this.index<0||this.index===0&&this.autoSelect)&&(this.index=this.items.length),this.ignoreMouseover=!0,a.prototype.prev.call(this)};d.next=function(){this.autoSelect&&this.index>=this.items.length-1&&(this.index=-1),this.ignoreMouseover=!0,a.prototype.next.call(this)};d.$FacebarTypeaheadView1=function(a,b){var c=this.results.length-1;a>c?a=-1:a<-1&&(a=c);this.index=a;c={controlledHighlight:!0,highlightedResult:this.results[this.index],loading:this.loading,results:this.results};b&&this.inform("highlight",{index:a,selected:this.results[a]});this.visible&&this.renderTypeaheadList(c)};d.highlight=function(b,c){if(this.isNewClassicSearch)this.$FacebarTypeaheadView1(b,c!==!1);else{c=c!==!1&&this.index!==b;var d=this.warningShown||!this.autoSelect?-1:0;a.prototype.highlight.call(this,Math.max(d,b),c)}};d.isNullState=function(){return!String(this.value).trim()};d.copyProps=function(a){return babelHelpers["extends"]({accessibilityElement:this.accessibilityElement,onClearHighlight:this.handleClearHighlight,onHighlight:this.handleHighlight,onRender:this.handleRender,onSelect:this.handleSelect},a)};d.renderGSV2TypeaheadList=function(a,c){b("ReactDOM").render(k.jsx(b("FacebarTypeaheadGSV2List.react"),{results:this.results,listProps:a,keywordResults:this.keywordResults,entityResults:this.entityResults,seeMoreResult:this.seeMoreResult,isNewClassicSearch:this.isNewClassicSearch,isNullState:this.isNullState(),accessibilityElement:this.accessibilityElement,onClearHighlight:this.handleClearHighlight,onHighlight:this.handleHighlight,onRender:this.handleRender,onSelect:this.handleSelect}),c)};d.renderTypeaheadList=function(a){a=a||{},this.renderGSV2TypeaheadList(a,this.resultsContainer)};return c}(b("TypeaheadView"));e.exports=a}),null);
  __d("XWarmUserRequestArgsController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/search/browse/warm/requestargs/",{query:{type:"String"},csid:{type:"String"}})}),null);
  __d("FacebarTypeaheadBrowsePreload",["AsyncRequest","XWarmUserRequestArgsController","emptyFunction"],(function(a,b,c,d,e,f){"use strict";a=function(){function a(a){this._core=a.core,this._typeahead=a}var c=a.prototype;c.enable=function(){this._core.subscribe("execute",this.preloadOnNavigate.bind(this))};c.preloadOnNavigate=function(a,c){if(c.type==="keyword"){a=b("XWarmUserRequestArgsController").getURIBuilder().setString("query",String(c.text));c.csid&&a.setString("csid",String(c.csid));new(b("AsyncRequest"))().setURI(a.getURI()).setAllowCrossPageTransition(!0).setOption("suppressErrorAlerts",!0).send()}};c.disable=function(){b("emptyFunction")()};return a}();e.exports=a}),null);
  __d("FacebarTypeaheadInjectedSuggestion",["csx","cx","fbt","Arbiter","DOM"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=3,k=0,l;a=function(){function a(a){this.core=a.getCore(),this.$1=this.core.view}var c=a.prototype;c.enable=function(){var a=this,c;(c=b("Arbiter")).subscribe("FacebarTypeahead.injectedSuggestion",function(){return a.addSuggestionTextToSearchBox()});c.subscribe("FacebarTypeahead.removeInjectedSuggestion",function(){return a.removeSuggestionTextToSearchBox()});c.subscribe("FacebarTypeahead.showSuggestionBadge",function(){return a.showSuggestionBadge(!0)});c.subscribe("FacebarTypeahead.hideSuggestionBadge",function(){return a.showSuggestionBadge(!1)})};c.disable=function(){this.$2.unsubscribe()};c.showSuggestionBadge=function(a){var c=b("DOM").scry(this.core.getElement(),"._5861")[0];if(c){c=c.getElementsByClassName("injectedSearchSuggestion")[0];if(!c)return;a?c.style.visibility="visible":c.style.visibility="hidden"}};c.removeSuggestionTextToSearchBox=function(){if(!k)return;--k;if(!k){var a=b("DOM").scry(this.core.getElement(),"._5861")[0],c=a.getElementsByClassName("injectedSearchSuggestion")[0];a.removeChild(c)}else if(l){a=i._({"suggestion":"{suggestionCount} new suggestion","suggestions":"{suggestionCount} new suggestions"},[i._param("suggestionCount",k),i._enum(k===1?"suggestion":"suggestions",{suggestion:"suggestion",suggestions:"suggestions"})]);l.innerText=a}};c.addSuggestionTextToSearchBox=function(){if(k)l&&k<j&&(l.innerText=k+1+" new suggestions");else{var a=b("DOM").scry(this.core.getElement(),"._5861")[0];if(a){l=document.createElement("DIV");var c=document.createTextNode("1 new suggestion");l.style.cssFloat="right";l.appendChild(c);c=document.createElement("DIV");c.className="_586j injectedSearchSuggestion";c.appendChild(l);a.appendChild(c)}}k+=1};return a}();e.exports=a}),null);
  __d("XNeedleSearchSurveyAfterEntityNavController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/search/async/serp/survey/",{})}),null);
  __d("SurveyAfterTANav",["AsyncRequest","PageTransitions","Run","WPSerpSurveyOnNavConfigSV","XNeedleSearchSurveyAfterEntityNavController","setTimeoutAcrossTransitions"],(function(a,b,c,d,e,f){function g(){var a=b("WPSerpSurveyOnNavConfigSV").delay;b("setTimeoutAcrossTransitions")(function(){var a=b("XNeedleSearchSurveyAfterEntityNavController").getURIBuilder().getURI();new(b("AsyncRequest"))().setURI(a).setMethod("POST").setAllowCrossPageTransition(!0).send()},a)}function a(){b("Run").onLeave(function(){b("PageTransitions").registerCompletionCallback(g)})}e.exports={init:g,register:a}}),null);
  __d("FacebarTypeaheadLoggingRecorder",["CometSearchTypeaheadBaseLoggingProvider","CometTypeaheadDataEntryWithMetaData","SurveyAfterTANav","cometSearchTypeaheadFalcoLoggingSessionLogBuilder","cometUniqueID"],(function(a,b,c,d,e,f){"use strict";function g(a){var c=a.semantic.match(/^[0-9]+$/)==null,d=c?a.text.toString().toLowerCase():a.text.toString(),e=new Set();Boolean(a.isJSBootstrapMatch)&&e.add("bootstrap");Boolean(a.exactMatchKeyword)&&e.add("echo");Boolean(a.isRecent)&&e.add("recent");Boolean(a.isSeeMore)&&e.add("see_all");e.add(c?"keyword":"entity");return new(b("CometTypeaheadDataEntryWithMetaData"))({key:b("cometUniqueID")(),label:d,metaData:{logging:{loggingID:(d=a.itemLoggingId)!=null?d:"",entityID:c?null:a.semantic,entityType:c?null:a.type,sequenceID:a.qid},markers:e},rawData:{type:"temp"}})}a=function(){function a(a){this._hasActiveSession=!1,this._previousQuery="",this._selectedSuggestionOrEnter=!1,this._currentSequenceID=null,this._lastSequenceID=null,this._typeahead=a,this._core=a.getCore(),this._loggingProvider=new(b("CometSearchTypeaheadBaseLoggingProvider"))({context:"search_global",log:b("cometSearchTypeaheadFalcoLoggingSessionLogBuilder")("search_global")})}var c=a.prototype;c.enable=function(){var a=this;this._core.data.setUseCustomQueryId(!0);this._core.subscribe("open",function(b,c){b=c==null?void 0:c.sessionID;c!=null&&b!=null&&(a._loggingProvider.startSession(b),a._hasActiveSession=!0);a._currentSequenceID=String(Date.now());a._core.data.setCurQueryId(a._currentSequenceID);a._lastSequenceID=a._currentSequenceID;a._previousQuery=a._core.input.getValue().toString()});this._core.subscribe("close",function(){if(!a._hasActiveSession)return;a._selectedSuggestionOrEnter||(a._logSessionEndAction("abandon"),a._previousQuery!==""&&b("SurveyAfterTANav").init());a._loggingProvider.endSession();a._previousResults=null;a._previousQuery="";a._hasActiveSession=!1;a._selectedSuggestionOrEnter=!1;a._lastAction=null;a._currentSequenceID=null;a._lastSequenceID=null});this._core.subscribe("select",function(b,c){b=c.index;a._logSessionEndAction("click",b);a._selectedSuggestionOrEnter=!0});this._core.subscribe("magSearch",function(b,c){a._logSessionEndAction("enter"),a._selectedSuggestionOrEnter=!0});this._core.subscribe("change",function(){var b=a._core.input.getValue().toString();if(!a._hasActiveSession||b===a._previousQuery)return;a._currentSequenceID=String(Date.now());a._core.data.setCurQueryId(a._currentSequenceID);a._addEvent(a._lastAction==null?"typeahead_appeared":"keystroke");a._lastSequenceID=a._currentSequenceID;a._previousQuery=b});this._core.view.subscribe("filter",function(b,c){a._previousResults=c.results});this._core.view.subscribe("afterSeeMore",function(b,c){a._previousResults=c.results})};c.disable=function(){};c._addEvent=function(a,b){var c,d;c=((c=this._previousResults)!=null?c:[]).map(function(a,c){a=g(a);c===b&&(d=a);return a});this._loggingProvider.addEvent({action:a,entries:c,queryString:this._previousQuery,sequenceID:this._lastSequenceID,entry:d});this._lastAction=a};c._logSessionEndAction=function(a,b){this._addEvent(this._lastAction==null?"typeahead_appeared":"keystroke"),this._addEvent(a,b)};return a}();e.exports=a}),null);
  __d("FacebarTypeaheadNavigation",["Arbiter","FacebarNavigation","emptyFunction"],(function(a,b,c,d,e,f){"use strict";a=function(){function a(a){this._core=a.core,this._preserveQuery=!1,this._typeahead=a}var c=a.prototype;c.enable=function(){b("FacebarNavigation").registerBehavior(this),this._core.subscribe("execute",this.executedUserQuery.bind(this))};c.executedUserQuery=function(a,b){this._preserveQuery=!0};c.pageTransition=function(){!this._preserveQuery?(this._core.close(),this._core.reset()):this._preserveQuery=!1};c.setPageQuery=function(a){a=this._core.setPageQuery(a),this._typeahead.inform("navigation",a,"persistent")};return a}();Object.assign(a.prototype,{disable:b("emptyFunction")});e.exports=a}),null);
  __d("FacebarTypeaheadPrefixLengthOrderedCache",["Arbiter","emptyFunction"],(function(a,b,c,d,e,f){"use strict";a=function(){function a(a){this._typeahead=a}var b=a.prototype;b.enable=function(){this._typeahead.data.inform("setSortFunction",function(a){return function(b,c){if((b.keyword_type==="local"||b.keyword_type==="local_category")&&(c.keyword_type==="local"||c.keyword_type==="local_category"))return 0;if(b.cache_id_length!==c.cache_id_length)return b.cache_id_length-c.cache_id_length;var d=this.getCost(b,a)-this.getCost(c,a);return d!==0?d:(b.semantic||"").localeCompare(c.semantic||"")}.bind(this)}.bind(this),"state")};b.getCost=function(a,b){return a.cost||0};return a}();Object.assign(a.prototype,{disable:b("emptyFunction")});e.exports=a}),null);
  __d("FacebarTypeaheadQuickSelect",["FacebarStructuredText","URI","XBrowseQueryController"],(function(a,b,c,d,e,f){"use strict";a=function(){function a(a){this._core=a.getCore(),this._view=a.getView(),this._input=this._core.input,this._beforeSelectListener=null,this._quickSelectListener=null}var c=a.prototype;c.enable=function(){this._beforeSelectListener=this._view.subscribe("beforeSelect",this._quickSelect.bind(this)),this._quickSelectListener=this._view.subscribe("quickSelect",this._quickSelect.bind(this))};c._quickSelect=function(a,c){if(c&&c.selected)return!0;a=this._input.getValue().toArray();c=new(b("FacebarStructuredText"))(a);a=c.toString();if(!a)return!0;c=b("XBrowseQueryController").getURIBuilder().setEnum("searchtype","top").setString("q",a).getURI();a={input_query:a,type:"quickselect",text:a,position:0,with_mouse:0,semantic:"quickselect("+c.toString()+")",extra_uri_params:{source:"quickselect",sid:this._core.getSessionID()},uri:c};this._core.inform("quickSelectRedirect",a);this._core.executeQuery(a);return!1};c.disable=function(){this._beforeSelectListener&&this._view.unsubscribe(this._beforeSelectListener),this._quickSelectListener&&this._view.unsubscribe(this._quickSelectListener)};return a}();e.exports=a}),null);
  __d("FacebarTypeaheadRecorderBasic",["FacebarTypeaheadRecorder"],(function(a,b,c,d,e,f){"use strict";a=function(){function a(a){this._typeahead=a}var c=a.prototype;c.enable=function(){var a=this._typeahead;this._recorder=new(b("FacebarTypeaheadRecorder"))(a)};c.disable=function(){this._typeahead.unsubscribe(this._subscription),this._recorder=null,this._subscription=null};return a}();Object.assign(a.prototype,{_subscription:null});e.exports=a}),null);
  __d("FacebarTypeaheadSeeMore",["cx","fbt","FacebarGSv2Echo","FacebarJSConstants","FacebarKeywordSearchUtils","FacebarStructuredText"],(function(a,b,c,d,e,f,g,h){"use strict";a=function(){function a(a){this.$1=a.getCore(),this.$2=this.$1.view}var c=a.prototype;c.enable=function(){this.$3=this.$2.subscribe("seeMore",this.$4.bind(this))};c.disable=function(){this.$3.unsubscribe()};c.$4=function(a,c){a=c.value.toString().trim();a=b("FacebarGSv2Echo").normalizeValue(a);c=b("FacebarKeywordSearchUtils").makeFacebarEntry(a);var d=h._("\u0e14\u0e39\u0e1c\u0e25\u0e25\u0e31\u0e1e\u0e18\u0e4c\u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a \"{query}\"",[h._param("query",a)]);return babelHelpers["extends"]({},c,{query_string:a,icon_class:"_5b1w",isSeeMore:!0,structure:b("FacebarStructuredText").fromString(a),displayStructure:b("FacebarStructuredText").fromString(String(d)),uri:c.uri,tags:{},isSingleState:this.$1.data.getSingleState(),keywordType:b("FacebarJSConstants").keywordTypes.escape,keywordSource:b("FacebarJSConstants").keywordTypes.escape})};return a}();e.exports=a}),null);
  __d("FacebarTypeaheadSelectAll",["requestAnimationFrame"],(function(a,b,c,d,e,f){"use strict";a=function(){function a(a){this._core=a.getCore(),this._listener=null}var c=a.prototype;c.enable=function(){var a=this._core.input;this._listener=this._core.subscribe("focus",function(c,d){c=d&&d.catchup;c||b("requestAnimationFrame")(function(){a.selectInput()})})};c.disable=function(){this._listener&&this._core.unsubscribe(this._listener)};return a}();e.exports=a}),null);
  __d("FacebarTypeaheadShortcut",["fbt","CurrentUser","KeyboardShortcuts","URI","UserAgent","XFacebookWorkChatInboxController","gkx","translateKey"],(function(a,b,c,d,e,f,g){"use strict";var h;a=function(){function a(a){this._input=a.core.input,this._view=a.view,this._listener=null}var c=a.prototype;c.enable=function(){this._registerListener()};c.disable=function(){};c._registerListener=function(){this._listener&&this._listener.remove();var a=b("UserAgent").isPlatform("Mac OS X"),c=(h||(h=b("URI"))).getRequestURI().getPath().startsWith(b("XFacebookWorkChatInboxController").getURIBuilder().getURI().getPath()),d=a?b("translateKey")("cmd"):b("translateKey")("ctrl");this._listener=b("CurrentUser").isWorkUser()&&b("gkx")("792924")&&!c?b("KeyboardShortcuts").register("k",this._selectInput.bind(this),{baseFilters:[function(b){return!a&&b.ctrlKey||a&&b.metaKey}],persistOnTransition:!0,shortcutInfo:{displayKeys:[d,b("translateKey")("k")],description:g._("\u0e04\u0e49\u0e19\u0e2b\u0e32")}}):b("KeyboardShortcuts").register("SLASH",this._selectInput.bind(this),{filter:function(a,b){return!a.getModifiers().shift},persistOnTransition:!0,shortcutInfo:{displayKeys:[b("translateKey")("/")],description:g._("\u0e04\u0e49\u0e19\u0e2b\u0e32")}})};c._selectInput=function(){this._view.setAutoSelect(!0),this._input.focus(),this._input.selectInput(),this._input.inform("shortcut",{shift:!1})};return a}();e.exports=a}),null);
  __d("FacebarTypeaheadStickyFilters",["Arbiter","NavigationMessage","Run","SubscriptionsHandler","enumerate","setTimeoutAcrossTransitions"],(function(a,b,c,d,e,f){"use strict";var g=!1,h=5e3,i="/search/top";a=function(){function a(a){this.core=a.getCore(),this.filters={},this.subscriptionsHandler=new(b("SubscriptionsHandler"))(),this.view=this.core.view}var c=a.prototype;c.enable=function(){var a=this;this.subscriptionsHandler.addSubscriptions(b("Arbiter").subscribe("SearchLHCFilters.initStickyFilters",function(c,d){for(var c=b("enumerate")(a.filters),e=Array.isArray(c),f=0,c=e?c:c[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(e){if(f>=c.length)break;g=c[f++]}else{f=c.next();if(f.done)break;g=f.value}g=g;var h=g[0];g=g[1];h in d||(g.active=!1)}for(var h=b("enumerate")(d),g=Array.isArray(h),f=0,h=g?h:h[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){if(g){if(f>=h.length)break;e=h[f++]}else{f=h.next();if(f.done)break;e=f.value}c=e;d=c[0];e=c[1];c={value:e,active:!0};a.filters[d]=c}}),b("Arbiter").subscribe(b("NavigationMessage").NAVIGATION_BEGIN,function(b,c){a.resetFiltersIfNotSearching()}),this.view.subscribe("filter",this.handleFilter.bind(this)),this.core.subscribe("magSearch",this.handleSearch.bind(this)),this.view.subscribe("afterSeeMore",this.handleSeeMore.bind(this)));b("Run").onLeave(function(){a.resetFiltersIfNotSearching()})};c.disable=function(){this.teardown()};c.teardown=function(){this.subscriptionsHandler.release()};c.handleFilter=function(a,b){a=b.results.filter(function(a){return!a.isNullState&&!a.isTrending});this.updateResultData(a)};c.handleSearch=function(a,b){this.updateResultData([b])};c.handleSeeMore=function(a,b){a=b.results.filter(function(a){return a.isSeeMore});this.updateResultData(a)};c.resetFiltersIfNotSearching=function(){var a=this;if(g)return;g=!0;b("setTimeoutAcrossTransitions")(function(){var c=window.location.pathname;if(c.indexOf(i)===-1)for(var c=b("enumerate")(a.filters),d=Array.isArray(c),e=0,c=d?c:c[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var f;if(d){if(e>=c.length)break;f=c[e++]}else{e=c.next();if(e.done)break;f=e.value}f=f;f=f[1];f.active=!1}g=!1;b("Run").onLeave(function(){a.resetFiltersIfNotSearching()})},h)};c.updateResultData=function(a){for(var c=0;c<a.length;c++){var d=a[c];if(d.type==="keyword"){var e=d.uri.getQueryData();for(var f=b("enumerate")(this.filters),g=Array.isArray(f),h=0,f=g?f:f[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var i;if(g){if(h>=f.length)break;i=f[h++]}else{h=f.next();if(h.done)break;i=h.value}i=i;var j=i[0];i=i[1];i.active?e[j]=i.value:d.uri.removeQueryData(j)}}}};return a}();e.exports=a}),null);
  __d("TypeaheadEarlyUserRequest",["AsyncRequest","XWarmUserRequestArgsController"],(function(a,b,c,d,e,f){"use strict";a=function(){function a(a){this._core=a.getCore(),this._listener=null}var c=a.prototype;c.enable=function(){this._listener=this._core.subscribe("focus",function(a,c){new(b("AsyncRequest"))().setURI(b("XWarmUserRequestArgsController").getURIBuilder().getURI()).send(),this.disable()}.bind(this))};c.disable=function(){this._listener&&this._core.unsubscribe(this._listener)};return a}();e.exports=a}),null);