if (self.CavalryLogger) { CavalryLogger.start_js(["BdOeh"]); } __d("MessengerWebDriverTestIDs",[],(function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ANIMATED_IMAGE:"animated_image",ATTACHMENT_ROOT:"attachment_root",CHAT_SIDEBAR:"chat_sidebar",INFO_PANEL:"info_panel",INFO_PANEL_BUTTON:"info_panel_button",STICKER:"sticker"};}),null); __d('AsyncLoader',['AsyncRequest','BaseAsyncLoader'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(i,j){this._endpoint=i;this._type=j;}Object.assign(h.prototype,c('BaseAsyncLoader').prototype);h.prototype.send=function(i,j,k,l,m){new (c('AsyncRequest'))(i).setData({ids:j}).setHandler(l).setErrorHandler(m).setAllowCrossPageTransition(true).setMethod('GET').setReadOnly(true).send();};f.exports=h;}),null); __d('ChatHovercard',['Arbiter','AsyncLoader','Bootloader','JSLogger','debounce','setTimeoutAcrossTransitions'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=5,i=new (c('AsyncLoader'))('/ajax/chat/hovercard/sidebar.php','hover'),j=c('JSLogger').create('chat_hovercard');c('Arbiter').subscribe('Hovercard/dirty',i.reset.bind(i));function k(o,p){if(!o)return;i.get(o,function(q){c('setTimeoutAcrossTransitions')(function(){if(!q){j.error('fetch_failure',{id:o});return;}c('Bootloader').loadModules(["Hovercard"],function(r){var s=r.getDialog(q);if(!s){j.error('no_hovercard',{id:o,endpoint:q});return;}if(o==p.getActiveID())p.showHovercard(o,s);},'ChatHovercard');},0);});}function l(o,p){var q=[];function r(u){if(u>=0&&u-1){r(s);for(var t=1;tp?' '+"_51lr":'')+(o===0?' '+"hidden_elem":'');return (c('React').createElement('span',babelHelpers['extends']({},this.props,{className:c('joinClasses')(this.props.className,q)}),o>p?p+'+':o));};function n(){'use strict';j.apply(this,arguments);}n.propTypes={count:l.number.isRequired,maxcount:l.number};n.defaultProps={maxcount:20};f.exports=n;}),null); __d('XUIBadge.react',['cx','React','AbstractBadge.react','joinClasses'],(function a(b,c,d,e,f,g,h){var i,j;if(c.__markCompiled)c.__markCompiled();var k=c('React').PropTypes;i=babelHelpers.inherits(l,c('React').Component);j=i&&i.prototype;l.prototype.render=function(){'use strict';var m=this.props.type,n="_5ugh"+(m==='regular'?' '+"_5ugf":'')+(m==='special'?' '+"_5ugg":'');return (c('React').createElement(c('AbstractBadge.react'),babelHelpers['extends']({},this.props,{className:c('joinClasses')(this.props.className,n),type:null})));};function l(){'use strict';i.apply(this,arguments);}l.propTypes={type:k.oneOf(['regular','special'])};l.defaultProps={type:'regular'};f.exports=l;}),null); __d('ChatSidebarItem.react',['cssVar','cx','ix','xuiglyph','AvailableListConstants','XUIBadge.react','ChatConfig','ChatSidebarConstants','Image.react','Link.react','MercuryConfig','MessengerTextWithEmoticons.react','React','SplitImage.react','TextWithEmoticons.react'],(function a(b,c,d,e,f,g,h,i,j,k){'use strict';var l,m;if(c.__markCompiled)c.__markCompiled();var n=c('React').PropTypes,o=c('ChatConfig').get('divebar_rounded_profile',false),p=9;l=babelHelpers.inherits(q,c('React').PureComponent);m=l&&l.prototype;function q(){var x,y;for(var z=arguments.length,aa=Array(z),ba=0;ba0){ca=this.props.statusTime?null:ca;da=false;}return (c('React').createElement('div',{className:"_568z"},da?this.renderLastActiveTime():null,ca));}.bind(this),this.renderLastActiveTime=function(){return (c('React').createElement('div',{className:"_568-"},this.props.statusTime));}.bind(this),this.renderBirthday=function(){if(!this.props.birthday)return null;return (c('React').createElement(c('Image.react'),{className:"_5dv3",src:u()}));}.bind(this),this.renderPlayingGame=function(){if(this.props.statusTime||this.props.birthday||!this.props.isPlayingGame)return null;return (c('React').createElement('div',{className:"_46b2"},c('React').createElement(c('Image.react'),{className:"_46b3",src:w()})));}.bind(this),this.$ChatSidebarItem1=function(){if(this.props.isMessengerOnlyContact){return (c('React').createElement(c('Image.react'),{className:"_568_",src:v()}));}else if(this.props.status===c('AvailableListConstants').ACTIVE)return (c('React').createElement('span',{style:{background:"#42b72a",borderRadius:'50%',display:'inline-block',height:'6px',marginLeft:'4px',veritcalAlign:'middle',width:'6px'}}));return null;}.bind(this),y;}q.prototype.render=function(){var x="_55ln"+(this.props.context?' '+"_55lo":'')+(o?' '+"_qhr":'');return c('React').createElement(c('Link.react'),{className:x,href:{url:this.props.href},onClick:this.props.onClick,rel:'ignore'},c('React').createElement('div',{className:"_55lp"},c('React').createElement('div',{className:"_55lq"},c('React').createElement(c('SplitImage.react'),{size:this.props.imageSize||c('ChatSidebarConstants').IMAGE_SIZE,srcs:this.props.image||this.props.images})),c('React').createElement('div',{className:"_5bon"},this.renderPlayingGame(),this.renderBirthday(),this.renderUnreadCount(),this.renderStatus()),c('React').createElement('div',{className:"_55lr"},this.renderName()),c('React').createElement('div',{className:"_55ls"},this.props.context)));};q.propTypes={image:n.string,images:n.array,isPlayingGame:n.bool,birthday:n.bool,context:n.node,href:n.string,imageSize:n.number,name:n.node.isRequired,nameCanHaveEmoji:n.bool,onClick:n.func,status:n.number,statusTime:n.string,unreadCount:n.number,isMessengerOnlyContact:n.bool};var r=void 0,s=void 0,t=void 0;function u(){if(!r)r=j('/images/gifts/icons/cake_icon.png');return r;}function v(){if(!t)t=j('/images/chat/sidebar/buddylist_nub/phone.png');return t;}function w(){if(!s)s=k({name:'games',size:'small'});return s;}f.exports=q;}),null); __d('ChatSidebarThread.react',['fbt','ChatOpenTab','ChatOpenTabEventLogger','ChatSidebarItem.react','FantaTabActions','MercuryConfig','MercuryIDs','MercuryParticipantListRenderer','WebMessengerPermalinkConstants','React','TooltipData'],(function a(b,c,d,e,f,g,h){'use strict';var i,j;if(c.__markCompiled)c.__markCompiled();var k=c('React').PropTypes,l=10,m='\n';i=babelHelpers.inherits(n,c('React').PureComponent);j=i&&i.prototype;function n(){var q,r;for(var s=arguments.length,t=Array(s),u=0;u=q.length)break;t=q[s++];}else{s=q.next();if(s.done)break;t=s.value;}var u=t;if(p.unreadCounts[u]!==this.state.unreadCounts[u])return true;}for(var v=Object.keys(this.state.statusMap),w=Array.isArray(v),x=0,v=w?v:v[typeof Symbol==='function'?Symbol.iterator:'@@iterator']();;){var y;if(w){if(x>=v.length)break;y=v[x++];}else{x=v.next();if(x.done)break;y=x.value;}var z=y;if(p.statusMap[z]!==this.state.statusMap[z])return true;}for(var aa=Object.keys(p.statusMap),ba=Array.isArray(aa),ca=0,aa=ba?aa:aa[typeof Symbol==='function'?Symbol.iterator:'@@iterator']();;){var da;if(ba){if(ca>=aa.length)break;da=aa[ca++];}else{ca=aa.next();if(ca.done)break;da=ca.value;}var ea=da;if(p.statusMap[ea]!==this.state.statusMap[ea])return true;}for(var fa=0;fa0)c('ShortProfilesStore').getMulti(q);return p;};};f.exports=l;}),null); __d('ChatSidebarOrderedList.react',['cx','fbt','Bootloader','ChatConfig','ChatQuietLinks','ChatReliabilityInstrumentation','ChatSidebarConstants','ChatSidebarGroupThreadsGroup.react','ChatSidebarHeader.react','ChatSidebarSections','ChatSidebarUserGroupContainer.react','MessengerWebDriverTestIDs','PresencePrivacy','React','ReactDOM','Run','Scroll','SubscriptionsHandler','WorkModeConfig','ifRequired'],(function a(b,c,d,e,f,g,h,i){'use strict';var j,k;if(c.__markCompiled)c.__markCompiled();var l=c('React').PropTypes;j=babelHelpers.inherits(m,c('React').PureComponent);k=j&&j.prototype;function m(){var n,o;for(var p=arguments.length,q=Array(p),r=0;r=l)return;if(c('PresencePrivacy').getFriendVisibility(o)==c('PresencePrivacy').BLACKLISTED)return;if(p==c('PresenceStatus').get(o))m.push(o);});return m;}function j(){'use strict';this.$PresenceOrderedList1=null;}j.prototype.getSorted=function(k,l){'use strict';if(this.$PresenceOrderedList1){l(i(this.$PresenceOrderedList1,k));return;}c('ChatSidebarPreloadStore').onLoaded(function(m){var n=m.buddies;this.$PresenceOrderedList1=h(n);l(i(this.$PresenceOrderedList1,k));}.bind(this));};j.prototype.getAvailableSorted=function(k){'use strict';var l=c('PresenceStatus').getOnlineIDs();if(k)l=l.filter(function(m){return k&&k.indexOf(m)===-1;});return l.sort(c('ChatSortUsers').sortAlphabetical);};j.prototype.getAllSorted=function(k){'use strict';var l=[],m=this.$PresenceOrderedList1||[];c('PresenceStatus').getAllIDs().concat(m.map(function(n){return n[0];})).forEach(function(n){return l.indexOf(n)===-1&&l.push(n);});if(k)l=l.filter(function(n){return k&&k.indexOf(n)===-1;});return l.sort(c('ChatSortUsers').sortAlphabetical);};f.exports=new j();}),null); __d('ChatOrderedList',['csx','Arbiter','ArbiterMixin','AvailableList','AvailableListConstants','CSS','ChatConfig','ChatHovercard','ChatOptions','ChatOrderedListHover','ChatSidebarConstants','ChatSidebarOrderedList.react','ChatSidebarPreloadStore','DOM','DataStore','Event','JSLogger','Parent','PresenceOrderedList','PresencePrivacy','React','ReactDOM','WorkModeConfig','debounceAcrossTransitions','mixin','shield'],(function a(b,c,d,e,f,g,h){var i,j;if(c.__markCompiled)c.__markCompiled();i=babelHelpers.inherits(k,c('mixin')(c('ArbiterMixin')));j=i&&i.prototype;function k(l,m){'use strict';j.constructor.call(this);this._root=m;this._isVisible=false;this._excludedIds={};this._numTopFriends=5;this._groups=[];this._hoverController=null;this._isHovering=false;this._orderedList=c('DOM').find(this._root,'.fbChatOrderedList');c('Event').listen(this._orderedList,'mouseover',function(){this._isHovering=true;}.bind(this));c('Event').listen(this._orderedList,'mouseout',function(){this._isHovering=false;this._render();}.bind(this));this._scrollableOrderedList=c('Parent').byClass(this._root,'scrollableOrderedList');this._scrollableArea=c('Parent').byClass(this._root,'scrollable');if(l)new (c('ChatHovercard'))(this);c('Arbiter').subscribe(c('JSLogger').DUMP_EVENT,function(n,o){this.getSortedList(function(p){o.chat_lists=o.chat_lists||{sorted_list:p,available_list:c('PresenceOrderedList').getAvailableSorted(),excluded_list:this._excludedIds};}.bind(this));}.bind(this));c('PresencePrivacy').subscribe('privacy-user-presence-changed',c('shield')(this._render,this));c('AvailableList').subscribe(c('AvailableListConstants').ON_AVAILABILITY_CHANGED,c('shield')(this._render,this));}k.prototype.getShowingUsers=function(){'use strict';return c('DOM').scry(this._root,"li._42fz,li._5a58").map(this.getUserForNode);};k.prototype.getUserForNode=function(l){'use strict';return c('DataStore').get(l,'id')||c('DataStore').get(l,'serverthreadid');};k.prototype.getHoverController=function(){'use strict';if(!this._hoverController)this._hoverController=new (c('ChatOrderedListHover'))(this);return this._hoverController;};k.prototype.getItemHeight=function(){'use strict';return c('ChatSidebarConstants').getItemHeight();};k.prototype.getRoot=function(){'use strict';return this._root;};k.prototype.getSortedList=function(l){'use strict';c('PresenceOrderedList').getSorted(this._numTopFriends,function(m){return l(m);});};k.prototype.hide=function(){'use strict';if(!this._isVisible)return;this._isVisible=false;c('CSS').hide(this._scrollableOrderedList||this._root);this.inform('hide');};k.prototype.setNumTopFriends=function(l,m){'use strict';c('ChatSidebarPreloadStore').onLoaded(function(n){var o=n.groups,p=!c('ChatOptions').getSetting('hide_groups')?o:[],q=l-p.length;if(q>c('ChatConfig').get('min_top_friends'))l=q;l--;if(c('ChatConfig').get('show_header'))l--;if(l!==this._numTopFriends||p.length!==this._groups.length){this._groups=p;this._numTopFriends=l;if(m){this._renderOrderedList();}else this._render();}}.bind(this));};k.prototype._renderOrderedList=function(){'use strict';if(!this._isVisible||this._isHovering)return;c('PresenceOrderedList').getSorted(this._numTopFriends,function(l){var m=c('WorkModeConfig').is_work_user?c('PresenceOrderedList').getAllSorted(l):c('PresenceOrderedList').getAvailableSorted(l);c('ReactDOM').render(c('React').createElement(c('ChatSidebarOrderedList.react'),{availableUsers:m,scrollContainer:this._scrollContainer,topUsers:l,groups:this._groups}),this._orderedList);this.inform('render');}.bind(this));};k.prototype._render=function(){'use strict';this._render=c('debounceAcrossTransitions')(this._renderOrderedList.bind(this),300);this._render();};k.prototype.show=function(){'use strict';if(this._isVisible)return;this._isVisible=true;c('CSS').show(this._scrollableOrderedList||this._root);this._render();this.inform('show');};k.prototype.isVisible=function(){'use strict';return this._isVisible;};k.prototype.setScrollContainer=function(l){'use strict';if(c('DOM').contains(l,this._root))this._scrollContainer=l;};f.exports=k;}),null); __d('ErrorSignal',['AsyncRequest','AsyncSignal','BanzaiODS','ErrorSignalConfig','SessionName','ScriptPath','SiteData','emptyFunction'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=true;function i(m,n){if(m&&m==='beacon_error'){c('BanzaiODS').bumpEntityKey('js_error_reporting','beacon_error_signal.sent');new (c('AsyncSignal'))(c('ErrorSignalConfig').uri,{c:m,m:n}).send();return;}else if(m&&m==='async_error'){var o=JSON.parse(n),p=o.err_code,q=o.path;if(p in {'1004':1,'12029':1,'12031':1,'12152':1}&&q.indexOf('scribe_endpoint.php')==-1){new (c('AsyncRequest'))().setURI(c('ErrorSignalConfig').uri).setData({c:'async_error',m:n}).setMethod('GET').setReadOnly(true).setOption('suppressEvaluation',true).setOption('suppressErrorAlerts',true).setHandler(c('emptyFunction')).setErrorHandler(c('emptyFunction')).send(true);return;}}if(m==='javascript_error')c('BanzaiODS').bumpEntityKey('js_error_reporting','error_signal.sent');new (c('AsyncSignal'))(c('ErrorSignalConfig').uri,{c:m,m:n}).send();}function j(m,n){n=n||{};n.svn_rev=c('SiteData').revision;n.push_phase=c('SiteData').push_phase;n.script_path=c('ScriptPath').getScriptPath();n.extra=n.extra||{};n.extra.hrm=c('SiteData').be_mode;if(h&&m==='onerror'){n.extra.extra.push('first_error');h=false;}var o=(c('SessionName').getName()||'-')+'/-';i('javascript_error',JSON.stringify({c:m,a:o,m:n}));}function k(){var m='beacon_error',n=(c('SessionName').getName()||'-')+'/-',o={};o.error=m;o.svn_rev=c('SiteData').revision;o.push_phase=c('SiteData').push_phase;o.script_path=c('ScriptPath').getScriptPath();o.extra={message:m,type:'info'};i(m,JSON.stringify({c:m,a:n,m:o}));}var l={sendBeaconErrorSignal:k,sendErrorSignal:i,logJSError:j};f.exports=l;b.ErrorSignal=l;}),null); __d('FeedLoadEventWWWLogger',['Arbiter','BanzaiLogger','ErrorSignal','ErrorUtils','LitestandMessages','PageletEventConstsJS','URI'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=['substream_','more_pager_pagelet_','pagelet_composer','pagelet_navigation','pagelet_rhc_footer'],i=[c('PageletEventConstsJS').ARRIVE_END,c('PageletEventConstsJS').DISPLAY_END,c('PageletEventConstsJS').ONLOAD_END],j=['pre_page_transition','page_transition'],k=[c('LitestandMessages').NEWSFEED_LOAD,c('LitestandMessages').STORIES_REQUESTED,c('LitestandMessages').STORIES_INSERTED,c('LitestandMessages').NEWER_STORIES_REQUESTED,c('LitestandMessages').NEWER_STORIES_INSERTED,c('LitestandMessages').STREAM_LOAD_ERROR,c('LitestandMessages').STREAM_LOAD_RETRY,c('LitestandMessages').DUPLICATE_CURSOR_ERROR],l=false;function m(q){return q&&(q.getPath()==='/'||q.getPath()==='/home.php');}function n(q){c('BanzaiLogger').log('WebFeedLoadLoggerConfig',q);}function o(q){if(!q)return null;if(q.indexOf('more_pager_pagelet_')===0)return 'more_pager_pagelet_n';if(q.indexOf('substream_')===0&&q!=='substream_0'&&q!=='substream_1')return 'substream_n';return q;}var p={init:function q(){if(l)return;c('Arbiter').subscribe('BigPipe/init',function(r,s){if(!s||!s.arbiter)return;s.arbiter.subscribe('pagelet_event',function(t,u){if(u&&m(c('URI').getNextURI())&&i.indexOf(u.event)>=0&&h.some(function(v){return u.id.indexOf(v)===0;}))n({event:'pagelet',pagelet_id:o(u.id),pagelet_event_type:u.event,pagelet_phase:u.phase.toString()});});});c('Arbiter').subscribe(j,function(r,s){if(s){var t=s.to||s.uri;if(m(t))n({event:'page_transition',transition_event_type:r});}});c('Arbiter').subscribe(k,function(r,s){var t=null,u=null;if(r===c('LitestandMessages').STREAM_LOAD_ERROR){t=s;}else if(r===c('LitestandMessages').DUPLICATE_CURSOR_ERROR)u=s;n({event:'stream_load',stream_event_type:r,stream_cursor:u,stream_substream_id:o(s&&s.substream_id),error_name:t&&t.name,error_message:t&&t.message,error_stack:t&&t.stack});});c('ErrorUtils').addListener(function(r){if(r&&m(c('URI').getNextURI())){c('ErrorSignal').logJSError('feedloaderror',{error:r.name||r.message,extra:r});n({event:'js_error',error_name:r.name,error_message:r.message,error_stack:r.stack});}});l=true;}};f.exports=p;}),null); __d("Redux",[],(function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();(function h(i,j){if(typeof g==='object'&&typeof f==='object'){f.exports=j();}else if(typeof define==='function'&&define.amd){define([],j);}else if(typeof g==='object'){g.Redux=j();}else i.Redux=j();})(this,function(){return (function(h){var i={};function j(k){if(i[k])return i[k].exports;var l=i[k]={exports:{},id:k,loaded:false};h[k].call(l.exports,l,l.exports,j);l.loaded=true;return l.exports;}j.m=h;j.c=i;j.p="";return j(0);})([function(h,i,j){'use strict';i.__esModule=true;i.compose=i.applyMiddleware=i.bindActionCreators=i.combineReducers=i.createStore=undefined;var k=j(2),l=w(k),m=j(7),n=w(m),o=j(6),p=w(o),q=j(5),r=w(q),s=j(1),t=w(s),u=j(3),v=w(u);function w(y){return y&&y.__esModule?y:{'default':y};}function x(){}if(("development")!=='production'&&typeof x.name==='string'&&x.name!=='isCrushed')(v['default'])('You are currently using minified code outside of NODE_ENV === \'production\'. '+'This means that you are running a slower development build of Redux. '+'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify '+'or DefinePlugin for webpack (http://stackoverflow.com/questions/30030031) '+'to ensure you have the correct code for your production build.');i.createStore=l['default'];i.combineReducers=n['default'];i.bindActionCreators=p['default'];i.applyMiddleware=r['default'];i.compose=t['default'];},function(h,i){"use strict";i.__esModule=true;i["default"]=j;function j(){for(var k=arguments.length,l=Array(k),m=0;m0)return 'Unexpected '+(aa.length>1?'keys':'key')+' '+('"'+aa.join('", "')+'" found in '+z+'. ')+'Expected to find one of the known reducer keys instead: '+('"'+y.join('", "')+'". Unexpected keys will be ignored.');}function s(u){Object.keys(u).forEach(function(v){var w=u[v],x=w(undefined,{type:k.ActionTypes.INIT});if(typeof x==='undefined')throw new Error('Reducer "'+v+'" returned undefined during initialization. '+'If the state passed to the reducer is undefined, you must '+'explicitly return the initial state. The initial state may '+'not be undefined.');var y='@@redux/PROBE_UNKNOWN_ACTION_'+Math.random().toString(36).substring(7).split('').join('.');if(typeof w(undefined,{type:y})==='undefined')throw new Error('Reducer "'+v+'" returned undefined when probed with a random type. '+('Don\'t try to handle '+k.ActionTypes.INIT+' or other actions in "redux/*" ')+'namespace. They are considered private. Instead, you must return the '+'current state for any unknown actions, unless it is undefined, '+'in which case you must return the initial state, regardless of the '+'action type. The initial state may not be undefined.');});}function t(u){var v=Object.keys(u),w={};for(var x=0;x