if (self.CavalryLogger) { CavalryLogger.start_js(["GXNwt"]); } __d("SearchPivotType",[],(function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={PHOTO:"photo",PHOTO_EXPERIMENTAL:"photo_experimental",VIDEO:"video",FEED_SEARCH_KEYWORDS:"feed_search_keywords",SEARCH_AWARENESS_KEYWORDS:"search_awareness_keywords",ARTICLE_CLICK_ACTION:"ARTICLE_CLICK_ACTION",STORY_CLICK_ACTION:"STORY_CLICK_ACTION",STORY_LIKE_ACTION:"STORY_LIKE_ACTION",STORY_UNLIKE_ACTION:"STORY_UNLIKE_ACTION",STORY_COMMENT_DELETE_ACTION:"STORY_COMMENT_DELETE_ACTION",COMPOSER_PUBLISH_ACTION:"COMPOSER_PUBLISH_ACTION",FAN_PAGE_ACTION:"FAN_PAGE_ACTION",TRENDING_SERP_LOAD:"TRENDING_SERP_LOAD",PHOTOS_SERP_LOAD:"PHOTOS_SERP_LOAD",STORY_COMMENT_ACTION:"STORY_COMMENT_ACTION",SCROLL_ACTION:"SCROLL_ACTION",NEWS_FEED:"NEWS_FEED",PAGE:"PAGE",GROUP:"GROUP",NEWS_FEED_SECONDARY:"NEWS_FEED_SECONDARY",POST_SEARCH_SERP:"POST_SEARCH_SERP",LEARNING_NUX:"LEARNING_NUX",LEARNING_NUX_SECOND_STEP:"LEARNING_NUX_SECOND_STEP",MOBILE_STORY_LIKE_ACTION:"MOBILE_STORY_LIKE_ACTION",MOBILE_STORY_COMMENT_ACTION:"MOBILE_STORY_COMMENT_ACTION",MOBILE_COMMENT_LIKE_ACTION:"MOBILE_COMMENT_LIKE_ACTION",TIMELINE:"TIMELINE",NEXT_TRENDING:"NEXT_TRENDING",LEARNING_NUX_STANDALONE:"LEARNING_NUX_STANDALONE",TUTORIAL_NUX:"TUTORIAL_NUX",FEED_READ_ACTION:"FEED_READ_ACTION",NON_TRIGGERED_LEARNING_NUX:"NON_TRIGGERED_LEARNING_NUX",TYPEAHEAD_TOOLTIP:"TYPEAHEAD_TOOLTIP",TRIGGERED_LEARNING_NUX:"TRIGGERED_LEARNING_NUX"};}),null); __d('PlatformDialogClient',['Arbiter','AsyncDialog','AsyncRequest','DOMEventListener','guid','PlatformBaseVersioning','PlatformDialog','PopupWindow','QueryString','URI','UserAgent_DEPRECATED'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=575,i='FB_DIALOG_RESPONSE';c('AsyncDialog').getLoadingDialog().setWidth(h);c('DOMEventListener').add(window,'message',function(event){if(/\.facebook\.com$/.test(event.origin)&&new RegExp('^'+i+':').test(event.data))c('Arbiter').inform(c('PlatformDialog').RESPONSE,JSON.parse(event.data.substr(i.length+1)));});var j={};c('Arbiter').subscribe(c('PlatformDialog').RESPONSE,function(event,m){var n=m.state;if(j[n]){j[n].callback(m);m.state=j[n].state;delete j[n];}},c('Arbiter').SUBSCRIBE_NEW);function k(m){return function(){c('Arbiter').inform(c('PlatformDialog').RESPONSE,babelHelpers['extends']({state:m},l.REQUEST_ABORTED_ERROR));};}var l={REQUEST_ABORTED_ERROR:{error_code:-200,error_message:'Request aborted.'},async:function m(n,o,p){var q=c('guid')(),r=o.state;o.state=q;o.redirect_uri=new (c('URI'))('/dialog/return/arbiter').setSubdomain('www').setFragment(c('QueryString').encode({origin:o.redirect_uri})).getQualifiedURI().toString();o.display='async';j[q]={callback:p||function(){},state:r};c('AsyncDialog').send(new (c('AsyncRequest'))(this.getURI(n,o)).setMethod('GET').setReadOnly(true).setAbortHandler(k(q)));},popup:function m(n,o,p,q,r){var s=c('guid')(),t=p.state;p.state=s;p.client_id=p.app_id=o;p.redirect_uri=new (c('URI'))('/dialog/return/arbiter').setSecure(c('URI').getRequestURI().isSecure()).setSubdomain('www').setFragment(c('QueryString').encode({origin:p.redirect_uri})).addQueryData(q||{}).addQueryData({relation:'opener',close:true}).toString();p.display=c('UserAgent_DEPRECATED').mobile()?'touch':'popup';j[s]={callback:r||function(){},state:t};var u=c('URI').getRequestURI(),v=u.getDomain(),w=v.replace('developers','www');c('PopupWindow').open(new (c('URI'))(this.getURI(n,p)).setDomain(w).setProtocol('https').toString(),210,h);},getURI:function m(n,o){if(o.version){var p=new (c('URI'))('/'+o.version+'/dialog/'+n);delete o.version;return p.addQueryData(o);}return c('PlatformBaseVersioning').versionAwareURI(new (c('URI'))('/dialog/'+n).addQueryData(o));}};f.exports=l;}),null); __d('XdArbiter',['Arbiter','Log','QueryString','Queue'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=/^apps\./.test(location.hostname)?'canvas':'tab',i={},j=[],k=new (c('Queue'))(),l={setRpcHandler:function n(o){k.start(o);},handleMessage:function n(o,p,q){try{if(typeof o=='string'){if(/^FB_RPC:/.test(o)){k.enqueue([o.substring(7),{origin:p,source:q||i[h]}]);return;}o=JSON.parse(o);}if(!o.method)return;if(typeof o.params=='string')o.params=JSON.parse(o.params);c('Arbiter').inform('Connect.Unsafe.'+o.method,o.params,c('Arbiter').BEHAVIOR_PERSISTENT);}catch(r){}},register:function n(o,p,q){var r=p||h;c('Arbiter').inform("XdArbiter/register",{origin:q});i[r]=o;i[q]=o;c('Arbiter').inform('XdArbiter.register',r,c('Arbiter').BEHAVIOR_PERSISTENT);this.scheduleDispatch();return r;},scheduleDispatch:function n(){var o=this,p=42;function q(){var r=j.shift();if(r)o.send.apply(o,r);if(j.length)setTimeout(q,p);}setTimeout(q,p);},hasProxy:function n(o){var p=o||h;return !!i[p];},send:function n(o,p,q){var r=q in i?q:h;p=p||i[r];if(typeof o!=='string')o=c('QueryString').encode(o);try{p.proxyMessage(o,q);}catch(s){c('Log').debug('XdArbiter: Proxy for %s not available, '+'page might have been navigated: %s',r,s.message);delete i[r];}return true;}},m=b.XdArbiter;b.XdArbiter=l;if(m){if(m._p.length)while(m._p.length)l.register.apply(l,m._p.shift());if(m._m.length)while(m._m.length)l.handleMessage.apply(l,m._m.shift());}f.exports=l;}),null); __d('ReactBlueBarJewelsDataPreloader',['Base64','ClientChromeStore','WebGraphQL'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={load:function j(){c('WebGraphQL').preload('ReactBlueBarJewelsDataPreloader').onLoaded(function(k){var l=k.result;return c('ClientChromeStore').dispatch({type:'ADD_INITIAL_DATA',data:i(l)});});}};function i(j){var k=j.viewer;return {messagesJewel:{count:k.message_threads.unseen_count,unread:{inbox:k.inbox.unread_count,pending:k.pending.unread_count}},notificationsJewel:{controllerArgs:{startTime:Date.now(),unseenNotifs:k.notifications.nodes.map(function(l){var m=l.id;return (c('Base64').decode(m).split(':').slice(1,3).join(':'));})},count:k.notifications.unseen_count},requestsJewel:{count:k.friending_possibilities.unseen_count+k.friending_possibilities.unseen_accept_notification_count}};}f.exports=h;}),null); __d('ReactBlueBarLink.react',['Link.react','React','ReactBlueBarDataGT'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=function i(j){var k=j.dataGT,l=babelHelpers.objectWithoutProperties(j,['dataGT']);return (c('React').createElement(c('Link.react'),babelHelpers['extends']({},l,{'data-gt':k?c('ReactBlueBarDataGT')[k]:null})));};f.exports=h;}),null); __d('ReactBlueBarNavLink.react',['cx','React','ReactBlueBarLink.react','joinClasses'],(function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=function j(k){var l=k.className,m=babelHelpers.objectWithoutProperties(k,['className']);return (c('React').createElement(c('ReactBlueBarLink.react'),babelHelpers['extends']({},m,{className:c('joinClasses')("_5yf",l)})));};f.exports=i;}),null); __d('ReactBlueBarNavFindFriendsLink.react',['cx','fbt','ReactBlueBarNavLink.react','React'],(function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j=function k(l){var m=l.href;return (c('React').createElement('div',{className:"_398f _398g"},c('React').createElement(c('ReactBlueBarNavLink.react'),{href:m,className:"_2-do"},i._("Find Friends"))));};f.exports=j;}),null); __d('NodeHighlighter',['DOM','TokenizeUtil','concatMap','escapeRegex','getElementText','isTextNode'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={};function i(l,m){var n=c('getElementText')(l).split(m),o=n.map(function(p){if(m.test(p))return j(p);return p||'';});return n.length>1?o:null;}function j(l){var m=c('DOM').create('span',{'class':'highlightNode',className:'highlightNode'},l);return m;}var k={getTextNodes:function l(m){if(this.isLeafNode(m)||this.isStopNode(m)){return m;}else if(this.isDiscardNode(m))return [];return c('concatMap')(this.getTextNodes.bind(this),Array.from(m.childNodes));},getHighlightCandidates:function l(){return [];},isLeafNode:function l(m){return c('isTextNode')(m);},isStopNode:function l(m){return false;},isDiscardNode:function l(m){return false;},createSegmentedRegex:function l(m){var n=c('TokenizeUtil').getPunctuation();m=this.escapeAndAddBidirectionalCharsToTokens(m);m=m.map(function(o){o=o.split(/\s+/).join('(?:'+n+'|\\s)+');return o;});return '(^|\\s|'+n+')('+m.join('|')+')(?=(?:$|\\s|'+n+'))';},createNonSegmentedRegex:function l(m){return '('+m.map(c('escapeRegex')).join('|')+')';},escapeAndAddBidirectionalCharsToTokens:function l(m){var n='[\\u200E\\u200F\\u202A\\u202B\\u202C\\u202D\\u202E]*';return m.map(function(o){return n+String(o).split('').map(c('escapeRegex')).join(n)+n;});},createRegex:function l(m){m=m.filter(function(t){return t;});if(!m||m.length===0)return new RegExp(null);var n=m.join('|');if(h[n])return h[n];var o=/[\u0E00-\u109F\u2000-\uFFFF]/,p=[],q=[];m.forEach(function(t){if(o.test(t)){q.push(t);}else p.push(t);});var r='';if(p.length){r+=this.createSegmentedRegex(p);r+=q.length?'|':'';}if(q.length)r+=this.createNonSegmentedRegex(q);var s=new RegExp(r,'i');h[n]=s;return s;},searchNodes:function l(m,n){return c('DOM').scry(m,n);},highlight:function l(m,n){n=n.filter(function(q){return q;});if(!n||n.length===0||!m)return;var o=c('concatMap')(function(q){return c('concatMap')(this.getTextNodes.bind(this),this.searchNodes(m,q));}.bind(this),this.getHighlightCandidates()),p=this.createRegex(n);o.forEach(function(q){var r=i(q,p);if(r)if(this.isStopNode(q)){c('DOM').setContent(q,r);}else c('DOM').replace(q,r);}.bind(this));}};f.exports=k;}),null);