/*!CK:3573703390!*//*1403495340,*/ if (self.CavalryLogger) { CavalryLogger.start_js(["mzuWM"]); } __d("ItunesPluginLogging",["Run","Bootloader"],function(a,b,c,d,e,f,g){var h={logPluginData:function(){g.onAfterLoad(function(){var i=b('Bootloader');i.loadModules(["ItunesDetector","AsyncRequest"],function(j,k){new k().setURI('/ajax/ads/media/log').setData({status:j.hasItunes()}).send();});});}};e.exports=h;},null); __d("AppsDivebarDisplayController",["AppsDivebarConfigData","AsyncRequest","Arbiter","CSS","UIPagelet","cx"],function(a,b,c,d,e,f,g,h,i,j,k,l){var m='173',n={isVisible:function(){if(typeof(this._visible)!='undefined')return this._visible;this._visible=!g.hidden;return this._visible;},showApps:function(){this._visible=true;var o={fb_source_category:'sidebar'};k.loadFromEndpoint('CanvasNavigationPagelet','pagelet_canvas_nav_content',o);j.show('apps_gripper');j.show('pagelet_canvas_nav_content');j.addClass('pagelet_canvas_nav_content',"_4woj");i.inform('AppsDivebar/show-apps');new h('/ajax/feed/apps/resize').setData({height:''+m,menu:true}).setMethod('POST').send();},hideApps:function(){this._visible=false;i.inform('AppsDivebar/hide-apps');j.hide('pagelet_canvas_nav_content');j.hide('apps_gripper');new h('/ajax/feed/apps/resize').setData({height:'1',menu:true}).setMethod('POST').send();}};e.exports=n;},null); __d("AsyncLoader",["copyProperties","AsyncRequest","BaseAsyncLoader"],function(a,b,c,d,e,f,g,h,i){function j(k,l){this._endpoint=k;this._type=l;}g(j.prototype,i.prototype);j.prototype.send=function(k,l,m,n,o){new h(k).setData({ids:l}).setHandler(n).setErrorHandler(o).setAllowCrossPageTransition(true).setMethod('GET').setReadOnly(true).send();};e.exports=j;},null); __d("CanvasBookmarkUpdateController",["Arbiter","CSS","ChannelConstants","DOM","csx","AsyncSignal"],function(a,b,c,d,e,f,g,h,i,j,k,l){function m(n,o,p){"use strict";this.$CanvasBookmarkUpdateController0=n;this.$CanvasBookmarkUpdateController1=o;this.$CanvasBookmarkUpdateController2=p;g.subscribe(i.getArbiterType('app_request_create'),function(q,r){var s=j.scry(this.$CanvasBookmarkUpdateController1,".item_"+r.obj.appid)[0],t=s&&j.scry(s,"._1k71")[0];t&&j.appendContent(t,r.obj.request);s&&this.$CanvasBookmarkUpdateController3(s,1);}.bind(this));g.subscribe(i.getArbiterType('app_request_delete'),function(q,r){var s=j.scry(this.$CanvasBookmarkUpdateController1,".item_"+r.obj.appid)[0],t=s&&j.scry(s,"[data-requestid='"+r.obj.requestid+"']")[0];t&&j.remove(t.parentNode);s&&this.$CanvasBookmarkUpdateController3(s,-1);}.bind(this));this.$CanvasBookmarkUpdateController0.subscribe('page_start',function(q,r){this.$CanvasBookmarkUpdateController4(this.$CanvasBookmarkUpdateController2,r);}.bind(this));this.$CanvasBookmarkUpdateController4(this.$CanvasBookmarkUpdateController2,0);}m.prototype.$CanvasBookmarkUpdateController3=function(n,o){"use strict";var p=j.find(n,'.countValue'),q=parseInt(j.getText(p),10),r=Math.max(0,q+o);j.setContent(p,r);if(r<1){h.hide(p.parentNode);}else h.show(p.parentNode);};m.prototype.$CanvasBookmarkUpdateController4=function(n,o){"use strict";if(ol.get('warning_countdown_threshold_msec')){var na=q.create('a',{href:'#',className:'fbChatReconnectLink'},"Try again"),oa=q.create('div',null,na),pa=oa.innerHTML;ma=s(fa._("Unable to connect to chat. {try-again-link}",{'try-again-link':pa}));}else if(la>1000){ma=fa._("Unable to connect to chat. Reconnecting in {seconds}...",{seconds:Math.floor(la/1000)});}else ma="Unable to connect to chat. Reconnecting...";return ma;};ka.prototype._resetShowWarningTimeout=function(){"use strict";if(this.showWarningTimeout){clearTimeout(this.showWarningTimeout);this.showWarningTimeout=null;}};ka.prototype._handleChannelConnected=function(la){"use strict";this._resetShowWarningTimeout();this.orderedListPromise.then(function(ma){if(ma.isVisible())n.goOnline();});this.warningMsgText=null;this._updateView();};ka.prototype._handleChannelShutdown=function(la,ma){"use strict";this._resetShowWarningTimeout();this.warningMsgText=this._getShutdownReason(ma);this._updateView();};ka.prototype._handleChannelReconnecting=function(la,ma){"use strict";this._resetShowWarningTimeout();this.warningMsgText=this._getReconnectMsg(ma);if(ma>1000){if(ma>l.get('warning_countdown_threshold_msec')){if(this.warningMsgEventListener){this.warningMsgEventListener.remove();this.warningMsgEventListener=null;}this.warningMsgEventListener=r.listen(this.message,'click',function(event){if(o.hasClass(event.getTarget(),'fbChatReconnectLink')){this._tryReconnect();event.kill();}}.bind(this));}this.showWarningTimeout=ea(this._handleChannelReconnecting.bind(this,la,ma-1000),1000);}this._updateView();};ka.prototype._tryReconnect=function(){"use strict";if(j.disconnected())j.reconnect();};ka.prototype._handleVisibilityChange=function(){"use strict";this._updateView();if(i.shouldShow()){if(n.hasBlackbirdEnabled()){i.showBlackbirdDialog(this.getButton(),z.getVisibility());}else if(!n.isOnline())i.showOfflineDialog(this.getButton());}else i.hide();if(!n.isOnline())this.hide();};ka.prototype._updateView=function(la){"use strict";var ma=this.container;if(ma){o.conditionClass(ma,'offline',!n.isOnline());o.conditionClass(ma,'error',j.disconnected());}if(j.disconnected())q.setContent(this.message,this.warningMsgText);var na,oa;if(!n.isOnline()){na=fa._("{Chat} (Off)",{Chat:"Chat"});}else if(j.disconnected()){na=fa._("{Chat} (Disconnected)",{Chat:"Chat"});}else{var pa=h.getOnlineCount();if(pa){na=fa._("{Chat} {number-available}",{Chat:"Chat",'number-available':t.span({className:"count"},"(",pa,")")});}else{na="Chat";oa=true;}}this._setUnread(this._unreadMessageCount);this._setLabel(na,oa);this.buttonContentChanged();};ka.prototype.onButtonClick=function(){"use strict";this._conditionallyShowTypeahead();this.typeaheadPromise.then(function(la){if(o.shown(la.getElement())){var ma=function(){la.getCore().getElement().focus();i.dismiss();};if(this._isOpen){ma();}else{var na=this.subscribe('show',ma.bind(this));setTimeout(this.unsubscribe.bind(this,na),0);}}}.bind(this));};ka.prototype.onHide=function(){"use strict";this._isOpen=false;this.orderedListPromise.then(function(la){if(this._buddyListRenderSubscription){la.unsubscribe(this._buddyListRenderSubscription);this._buddyListRenderSubscription=null;}la.hide();}.bind(this));this.typeaheadPromise.then(function(la){la.getCore().reset();});};ka.prototype._onKeyDown=function(event){"use strict";var la=r.getKeyCode(event);if(la===v.ESC&&!o.hasClass(this.root,'menuOpened')){this.hide();return false;}else if(la==v.RETURN)m.enable();};ka.prototype._onSidebarHide=function(event){"use strict";this.getButton().focus();};ka.prototype.onResize=function(){"use strict";var la=p.getMaxFlyoutHeight(this.root)-60,ma=Math.max(250,la);this.orderedListPromise.then(function(na){na.setNumTopFriends(Math.floor(ma/ga));});};ka.prototype._showBuddyList=function(){"use strict";this.orderedListPromise.then(function(la){if(!this._buddyListRenderSubscription)this._buddyListRenderSubscription=la.subscribe('render',p.setUseMaxHeight.bind(p,this.root,false));la.show();}.bind(this));};ka.prototype.onShow=function(){"use strict";this._isOpen=true;if(j.disconnected()){this._tryReconnect();this._showBuddyList();}else n.goOnline(this._showBuddyList.bind(this));};ka.prototype._setLabel=function(la,ma){"use strict";var na=this.label.cloneNode(true);q.setContent(na,la);q.replace(this.label,na);this.label=na;this.throbber&&o.conditionShow(this.throbber,!!ma);};ka.prototype._setUnread=function(la){"use strict";o.conditionShow(this.unreadCount,!!la);if(la){la=t.span({className:"_51jx _5ayw"},la);q.setContent(this.unreadCount,la);}};ka.prototype._conditionallyShowTypeahead=function(){"use strict";this.typeaheadPromise.then(function(la){o.conditionShow(la.getElement(),this._orderedListCount>=ha);}.bind(this));};ka.prototype._updateCount=function(){"use strict";this._updateView();this._conditionallyShowTypeahead();};e.exports=ka;},null); __d("BuddyListNubInitializer",["BuddyListNub"],function(a,b,c,d,e,f,g){var h,i={init:function(j){if(!h)h=new g(j,null,null);},initOrderedList:function(j,k){i.init(j);h.initOrderedList(k);},initTypeahead:function(j,k){i.init(j);h.initTypeahead(k);}};e.exports=i;},null); __d("ChatHovercard",["Arbiter","AsyncLoader","Hovercard","JSLogger","debounce"],function(a,b,c,d,e,f,g,h,i,j,k){var l=5,m=new h('/ajax/chat/hovercard/sidebar.php','hover'),n=j.create('chat_hovercard');g.subscribe('Hovercard/dirty',m.reset.bind(m));function o(s,t){m.get(s,function(u){setTimeout(function(){if(!u){n.error('fetch_failure',{id:s});return;}var v=i.getDialog(u);if(!v){n.error('no_hovercard',{id:s,endpoint:u});return;}if(s==t.getActiveID())t.showHovercard(s,v);},0);});}function p(s,t){var u=[];function v(y){if(y>=0&&y-1){v(w);for(var x=1;xp?' '+"_5bop":''));if(r>p)r=p+'+';return (l.DOM.div({className:s},r));},renderStatus:function(){var r=this.getStatusSrc();if(!r&&!this.props.statusTime)return null;var s=r?j({className:"_568_",src:r}):null;return (l.DOM.div({className:"_568z"},l.DOM.div({className:"_568-"},this.props.statusTime),this.renderDetailedPresence(),s));},renderDetailedPresence:function(){if(this.props.unreadCount)return null;return (l.DOM.div({className:"_5t35"},this.props.detailedStatus));},renderBirthday:function(){if(!this.props.birthday)return null;var r=o('/images/gifts/icons/cake_icon.png');if(h.get('gray_cake'))r=o('/images/chat/sidebar/livebar/divebar_cake.png');return (j({className:"_5dv3",src:r}));},getStatusSrc:function(){switch(this.props.status){case g.ACTIVE:case g.IDLE:return o('/images/litestand_classic/sidebar/online.png');case g.MOBILE:if(h.get('sidebar_remove_mobile_icon'))return null;return o('/images/litestand_classic/sidebar/pushable.png');}return null;}});e.exports=q;},null); __d("ChatSidebarUser.react",["ChatOpenTab","ChatSidebarItem.react","WebMessengerPermalinkConstants","React"],function(a,b,c,d,e,f,g,h,i,j){var k=j.createClass({displayName:'ChatSidebarUser',propTypes:{birthday:j.PropTypes.bool,detailedStatus:j.PropTypes.string,image:j.PropTypes.string,imageSize:j.PropTypes.number,name:j.PropTypes.string,sectionName:j.PropTypes.string.isRequired,slot:j.PropTypes.number,status:j.PropTypes.number,statusTime:j.PropTypes.string,unreadCount:j.PropTypes.number,userID:j.PropTypes.string.isRequired},_openTab:function(event){g.openUserTab(this.props.userID,this.props.sectionName,{global_slot:this.props.slot});return event.preventDefault();},render:function(){var l=i.getURIPathForIDOrVanity(this.props.userID);return (h({onClick:this._openTab,href:{url:l},imageSize:this.props.imageSize,images:this.props.image,name:this.props.name,status:this.props.status,birthday:this.props.birthday,statusTime:this.props.statusTime,detailedStatus:this.props.detailedStatus,context:this.props.context,unreadCount:this.props.unreadCount}));}});e.exports=k;},null); __d("ChatUnreadCount",["ArbiterMixin","copyProperties","MercuryThreadInformer","MercuryThreads"],function(a,b,c,d,e,f,g,h){var i=b('MercuryThreadInformer').get(),j=b('MercuryThreads').get(),k={};i.subscribe('threads-updated',function(l,m){for(var n in m){var o=j.getCanonicalUserInThread(n);k.inform('unread-changed',o);}});h(k,g,{getUnreadCountForUID:function(l,m){j.getThreadMeta(j.getThreadIdForUser(l),function(n){m(n.unread_count);});}});e.exports=k;},null); __d("ChatSidebarUserGroup.react",["AvailableList","AvailableListConstants","ChannelConnection","ChatContexts","ChatSidebarSections","ChatSidebarUser.react","ChatUnreadCount","LastMobileActiveTimes","PresencePrivacy","PresenceStatus","React","ShortProfiles","SubscriptionsHandler","cx","shield"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u){var v=Object.keys(k).map(function(x){return k[x];}),w=q.createClass({displayName:'ChatSidebarUserGroup',propTypes:{ids:q.PropTypes.array.isRequired,sectionName:q.PropTypes.oneOf(v).isRequired},getInitialState:function(){return {userData:[],unreadCounts:{}};},_updateUnreadCount:function(x){m.getUnreadCountForUID(x,function(y){this.state.unreadCounts[x]=y;this.setState({unreadCounts:this.state.unreadCounts});}.bind(this));},componentWillMount:function(){this.componentWillReceiveProps(this.props);this._subscriptions=new s();this._subscriptions.addSubscriptions(g.subscribe(h.ON_AVAILABILITY_CHANGED,u(this.forceUpdate,this)),o.subscribe('privacy-changed',u(this.forceUpdate,this)),i.subscribe([i.CONNECTED,i.RECONNECTING,i.SHUTDOWN,i.MUTE_WARNING,i.UNMUTE_WARNING],u(this.forceUpdate,this)));},componentWillUnmount:function(){this._subscriptions.release();},componentWillReceiveProps:function(x){r.getMulti(x.ids,function(y){var z=x.ids.map(function(aa){return y[aa];});this.setState({userData:z});}.bind(this));},_renderProfile:function(x,y){if(x.id===0)return null;var z=p.get(x.id),aa=(z!==h.ACTIVE)?n.getShortDisplay(x.id):null,ba=(z===h.ACTIVE)?p.getDetailedActivePresence(x.id):null,ca=i.disconnected()||!o.allows(x.id),da=j.getShortDisplay(x.id);return (q.DOM.li({className:(("_42fz")+(da?' '+"_52zj":'')+(ca?' '+"_570-":'')),'data-id':x.id,key:x.id},l({birthday:p.isBirthday(x.id),context:da,detailedStatus:ba,image:x.thumbSrc,imageSize:this.props.imageSize,name:x.name,sectionName:this.props.sectionName,slot:y,status:z,statusTime:aa,unreadCount:this.state.unreadCounts[x.id],userID:x.id})));},render:function(){return this.transferPropsTo(q.DOM.ul(null,this.state.userData.map(this._renderProfile)));}});e.exports=w;},null); __d("ChatSidebarOrderedList.react",["Animation","AsyncDialog","AsyncRequest","ChatQuietLinks","ChatSidebarConstants","ChatSidebarSections","ChatSidebarUserGroup.react","PresencePrivacy","React","URI","cx","shield","tx"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){var t=o.createClass({displayName:'ChatSidebarOrderedList',propTypes:{topUsers:o.PropTypes.array.isRequired,availableUsers:o.PropTypes.array.isRequired,isSidebar:o.PropTypes.bool.isRequired,scrollContainer:o.PropTypes.object},getInitialState:function(){return {mouseOver:true,pauseRendering:false};},shouldComponentUpdate:function(u,v){return !v.mouseOver&&!v.pauseRendering;},componentDidMount:function(){j.nukeLinks(this.getDOMNode());},_scrollToSeparator:function(){if(!this.props.scrollContainer)return;var u=this.refs.usersSeparator.getDOMNode(),v=this.props.scrollContainer.scrollHeight,w=this.props.scrollContainer.clientHeight,x=this.props.scrollContainer.scrollTop,y=Math.min(u.offsetTop,v-w);if(x!==y){var z=Math.abs(y-x)/this.props.scrollContainer.clientHeight*500;new g(this.props.scrollContainer).to('scrollTop',y).ease(g.ease.end).duration(z).go();}},_openBlackbirdSettings:function(){var u=new p('/ajax/chat/privacy/settings_dialog.php').addQueryData({ref:'whitelist_separator'});h.send(new i(u));},_renderOfflineSection:function(){var u=k.getImageSize(this.props.isSidebar),v=this.props.topUsers.filter(function(x){return !n.allows(x);});v.splice(-2);var w=(o.DOM.a({href:"#",onClick:this._openBlackbirdSettings},"Edit"));return [o.DOM.div({key:"users_separator1",className:"_554m"},o.DOM.div({className:"_554o"},o.DOM.div({className:"_554n"},o.DOM.span({className:"_554p"},"MORE FRIENDS"),o.DOM.div({className:"_554q"},o.DOM.span({className:"_554r"}))))),o.DOM.div({key:"users_separator2",className:"_554m blackbirdWhitelist"},o.DOM.div({className:"_554o"},o.DOM.div({className:"_554n"},o.DOM.div({className:"_5v-d"},o.DOM.span({className:"_554t"},s._("These friends can't see you on chat. {=link}",{'=link':w})))))),m({key:l.OFFLINE_USERS,sectionName:l.OFFLINE_USERS,ids:v,imageSize:u})];},_renderOnlineSection:function(){if(this.props.availableUsers.length===0)return null;var u=k.getImageSize(this.props.isSidebar);return [o.DOM.div({key:"users_separator",ref:"usersSeparator",onClick:this._scrollToSeparator,className:"_554m moreOnlineFriends"},o.DOM.div({className:"_554o"},o.DOM.div({className:"_554n"},o.DOM.span({className:"_554p"},s._("{MORE ONLINE FRIENDS} ({=count})",{'MORE ONLINE FRIENDS':"MORE FRIENDS",'=count':this.props.availableUsers.length})),o.DOM.div({className:"_554q"},o.DOM.span({className:"_554r"}))))),m({key:l.MORE_ONLINE_FRIENDS,sectionName:l.MORE_ONLINE_FRIENDS,ids:this.props.availableUsers,imageSize:u})];},render:function(){var u=k.getImageSize(this.props.isSidebar),v=this.props.topUsers;if(n.getVisibility()==n.ONLINE)v=this.props.topUsers.filter(function(x){return n.allows(x);});var w=(n.getOnlinePolicy()==n.ONLINE_TO_WHITELIST&&n.getVisibility())?this._renderOfflineSection():this._renderOnlineSection();return this.transferPropsTo(o.DOM.li({onMouseEnter:r(this.setState,this,{mouseOver:true}),onMouseLeave:r(this.setState,this,{mouseOver:false})},m({key:l.ORDERED_LIST,sectionName:l.ORDERED_LIST,ids:v,imageSize:u}),w));}});e.exports=t;},null); __d("ChatSortUsers",["AvailableListConstants","OrderedFriendsList","PresencePrivacy","PresenceStatus","ShortProfiles","TokenizeUtil"],function(a,b,c,d,e,f,g,h,i,j,k,l){function m(q,r){var s=i.allows(q),t=i.allows(r);if(s!==t)return s?-1:1;return 0;}var n={};function o(q){if(n[q])return n[q];var r=(k.getNowUnsafe(q)||{}).name;if(r)return n[q]=l.flatten(r);return '~';}var p={sortAlphabetical:function(q,r){var s=o(q),t=o(r);if(s!==t)return s0;ta++){var ua=la[ta],va=y.get(ua),wa=va===j.ACTIVE;if(wa||(va===j.MOBILE&&tafa)return ea[fa];return null;}function aa(ea){if(ea.name=='SyntaxError'||/syntaxerror/i.test(ea.message))x=true;}function ba(){if(!w)w=i.create(q({retry:true},h.VITAL));return w;}function ca(ea){setTimeout(function(){var fa=n.getMissing('ChatSidebar'),ga=j.getErrorUrls(),ha=j.getLoadingUrls(),ia=[];for(var ja in ha)ia.push({url:ja,time:ha[ja]});ia.sort(function(qa,ra){return ra.time-qa.time;});var ka={};for(var la=0,ma=ia.length;la=0)r--;return r;};e.exports=p;},null); __d("NotificationImpressions",["AsyncSignal","NotificationTokens","URI"],function(a,b,c,d,e,f,g,h,i){var j='/ajax/notifications/impression.php';function k(l,m){var n={ref:m};h.untokenizeIDs(l).forEach(function(o,p){n['alert_ids['+p+']']=o;});new g(i(j).getQualifiedURI().toString(),n).send();}e.exports={log:k};},null); __d("NotificationBeeperItemContents.react",["Animation","CloseButton.react","ImageBlock.react","NotificationURI","NotificationUserActions","React","TextWithEntities.react","Timestamp.react","cx"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){function p(r,s){return l.DOM.span({className:"fwb"},r);}var q=l.createClass({displayName:'NotificationBeeperItemContents',_markAsRead:function(){k.markNotificationsAsRead([this.props.beep.notificationID]);this.props.onHide();},_onClose:function(){this._markAsRead();this.props.onHide();},_doFlash:function(){new g(this.refs.inner.getDOMNode()).from('opacity','0').to('opacity','1').duration(200).go();},componentDidMount:function(){this.props.onReadyToHide(this.props.beep.notificationID);},componentDidUpdate:function(r){if(r.beep.beepID!==this.props.beep.beepID){this._doFlash();this.props.onReadyToHide(this.props.beep.notificationID);}},render:function(){var r=this.props.beep,s=r.icon.uri,t=r.link?j.localize(r.link):'#',u=r.photo&&j.snowliftable(t),v=u?t:r.ajaxifyLink,w=u?'theater':(v?'dialog':null);return (l.DOM.div({ref:"inner"},h({className:"_3soc",onClick:this._onClose,size:"medium"}),l.DOM.a({href:t,ajaxify:v,onClick:this._markAsRead,rel:w,className:"_3soi"},i({className:"_3soj",spacing:"medium"},l.DOM.img({src:r.actors[0].profile_picture.uri,className:"_3sok"}),l.DOM.div({className:"_3sol"},m({renderEmoticons:true,renderEmoji:true,interpolator:p,ranges:r.text.ranges,aggregatedranges:r.text.aggregated_ranges,text:r.text.text}),i({className:"_3som"},l.DOM.img({className:"_1x8t",src:s}),n({time:r.timestamp.time,text:r.timestamp.text,verbose:r.timestamp.verbose})))))));}});e.exports=q;},null); __d("NotificationBeeperConst",["keyMirror"],function(a,b,c,d,e,f,g){var h={IDLE_DELAY:10000,ACTIVE_DELAY_LONG:4000,FADE_OUT_LENGTH:1500,BeepStates:g({PENDING:true,RENDERED:true,READY_TO_HIDE:true,FADING_OUT:true})};e.exports=h;},null); __d("NotificationBeeperItem.react",["Animation","BrowserSupport","NotificationBeeperItemContents.react","React","NotificationBeeperItemRenderersList","Style","NotificationBeeperConst","cx","setTimeoutAcrossTransitions"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){var p=j.createClass({displayName:'NotificationBeeperItem',getInitialState:function(){return {fadedIn:false,hidden:false};},componentDidMount:function(){var q;if(h.hasCSSAnimations()){q=this.setState.bind(this,{fadedIn:true},null);}else q=function(){new g(this.refs.item.getDOMNode()).from('top','-30px').from('opacity','0').to('top','0px').to('opacity','1').duration(200).ondone(this.setState.bind(this,{fadedIn:true},null)).go();}.bind(this);o(q,50);this.props.onInserted(this.props.beep);},componentWillUnmount:function(){if(this._fadeOutAnimation){this._fadeOutAnimation.stop();this._fadeOutAnimation=null;}},_onHide:function(){this.setState({hidden:true});},render:function(){var q=this.props.beep,r=(("_3sod")+(this.state.fadedIn?' '+"_3soe":'')+(this.state.hidden?' '+"_3sof":'')),s=this._getRenderer(q.beepRenderer);return (j.DOM.li({className:r,ref:"item",'data-gt':q.tracking},s({beep:q,onHide:this._onHide,onReadyToHide:this.props.onReadyToHide,ref:"itemContents"})));},componentDidUpdate:function(q,r,s){if(this.props.fadingOut){if(!this._fadeOutAnimation)this._fadeOutAnimation=new g(this.refs.item.getDOMNode()).from('opacity','1').to('opacity','0').duration(m.FADE_OUT_LENGTH).ondone(this._onHide).go();this.refs.item.getDOMNode().style.transitionDuration='0ms';}else if(this._fadeOutAnimation){this._fadeOutAnimation.stop();this._fadeOutAnimation=null;l.set(this.refs.item.getDOMNode(),'opacity','1');}},_getRenderer:function(q){if(q in k)return k[q];return i;}});e.exports=p;},null); __d("NotificationSound",["Sound","copyProperties"],function(a,b,c,d,e,f,g,h){var i=5000;g.init(['audio/mpeg']);function j(k){this._soundPath=k;this._lastPlayed=0;}h(j.prototype,{play:function(k){if(!this._soundPath)return;var l=Date.now();if((l-this._lastPlayed)Math.round(this.$SidebarAppTickerResizer9())||this.$SidebarAppTickerResizera&&this.$SidebarAppTickerResizera>s){var ca=(this.$SidebarAppTickerResizera/this.$SidebarAppTickerResizerb)*100,da=this.$SidebarAppTickerResizerc(0,this.$SidebarAppTickerResizer9()-ca);if(!(aa&&aa.type==='resize'))this.$SidebarAppTickerResizerd(da);j.resize();}};z.prototype.$SidebarAppTickerResizer9=function(){"use strict";if(!j.isVisible())return x;return Math.min(x,(this.$SidebarAppTickerResizerb-this.$SidebarAppTickerResizere-y)*100/this.$SidebarAppTickerResizerb);};z.prototype.$SidebarAppTickerResizer3=function(aa,ba){"use strict";var ca=new p(aa);ca.subscribe('start',this.$SidebarAppTickerResizerf.bind(this));ca.subscribe(['update','end'],this.$SidebarAppTickerResizerg.bind(this));var da=new p(ba);da.subscribe('start',this.$SidebarAppTickerResizerf.bind(this));da.subscribe('update',this.$SidebarAppTickerResizerh.bind(this));da.subscribe('end',this.$SidebarAppTickerResizeri.bind(this));};z.prototype.$SidebarAppTickerResizerf=function(aa,event){"use strict";this.$SidebarAppTickerResizerj=event.clientY;this.$SidebarAppTickerResizer8();this.$SidebarAppTickerResizerk();};z.prototype.$SidebarAppTickerResizer8=function(){"use strict";this.$SidebarAppTickerResizere=this.$SidebarAppTickerResizer1.offsetTop;this.$SidebarAppTickerResizerl=this.$SidebarAppTickerResizer0.offsetHeight;this.$SidebarAppTickerResizerb=this.$SidebarAppTickerResizer2.offsetHeight;this.$SidebarAppTickerResizera=this.$SidebarAppTickerResizer1.offsetHeight;this.$SidebarAppTickerResizerm=this.$SidebarAppTickerResizera;};z.prototype.$SidebarAppTickerResizerk=function(){"use strict";k.addClass(this.$SidebarAppTickerResizer2,"_4vfq");};z.prototype.$SidebarAppTickerResizern=function(){"use strict";k.removeClass(this.$SidebarAppTickerResizer2,"_4vfq");};z.prototype.$SidebarAppTickerResizerg=function(aa,event){"use strict";var ba=(this.$SidebarAppTickerResizera/this.$SidebarAppTickerResizerb)*100,ca=this.$SidebarAppTickerResizerc(event.clientY-this.$SidebarAppTickerResizerj,this.$SidebarAppTickerResizer9()-ba);if(aa=='end'){this.$SidebarAppTickerResizern();this.$SidebarAppTickerResizerd(ca);}j.resize();};z.prototype.$SidebarAppTickerResizerh=function(aa,event){"use strict";var ba=-this.$SidebarAppTickerResizera,ca=this.$SidebarAppTickerResizer6()-this.$SidebarAppTickerResizera,da=this.$SidebarAppTickerResizero(event.clientY-this.$SidebarAppTickerResizerj,ba,ca);this.$SidebarAppTickerResizerc(-da,this.$SidebarAppTickerResizer9());this.$SidebarAppTickerResizerm=this.$SidebarAppTickerResizera+da;this.$SidebarAppTickerResizerm=Math.max(s,this.$SidebarAppTickerResizerm);this.$SidebarAppTickerResizer1.style.height=this.$SidebarAppTickerResizerm+'px';};z.prototype.$SidebarAppTickerResizeri=function(aa,event){"use strict";var ba=this.$SidebarAppTickerResizerm,ca=this.$SidebarAppTickerResizerq(this.$SidebarAppTickerResizerm),da=this.$SidebarAppTickerResizerc(this.$SidebarAppTickerResizera-ca,this.$SidebarAppTickerResizer9());if(this.$SidebarAppTickerResizera!=ca){this.$SidebarAppTickerResizer5(ca);this.$SidebarAppTickerResizerd(da);}new g(this.$SidebarAppTickerResizer1).from('height',ba).to('height',ca).duration(v).go();};z.prototype.$SidebarAppTickerResizerc=function(aa,ba){"use strict";var ca=this.$SidebarAppTickerResizerl+aa,da=(ca/this.$SidebarAppTickerResizerb)*100;da=Math.max(r,Math.min(ba,da));this.$SidebarAppTickerResizer0.style.height=da+'%';return da;};z.prototype.$SidebarAppTickerResizerq=function(aa){"use strict";var ba=this.$SidebarAppTickerResizerr(),ca=this.$SidebarAppTickerResizer6();return (aa<(ca-w))?((aa<(ba-w))?s:ba):ca;};z.prototype.$SidebarAppTickerResizerr=function(){"use strict";return t;};z.prototype.$SidebarAppTickerResizer6=function(){"use strict";return u;};z.prototype.$SidebarAppTickerResizers=function(aa){"use strict";var ba=this.$SidebarAppTickerResizer6();return (aa<0)?s:(aa>ba?ba:aa);};z.prototype.$SidebarAppTickerResizero=function(aa,ba,ca){"use strict";return (aaca)?ca:aa);};z.prototype.$SidebarAppTickerResizerd=function(aa){"use strict";new i('/ajax/feed/ticker/resize').setData({height:''+aa}).setMethod('POST').send();h.inform('Ticker/resized');};z.prototype.$SidebarAppTickerResizer5=function(aa){"use strict";new i('/ajax/feed/apps/resize').setData({height:''+aa}).setMethod('POST').send();};e.exports=z;},null); __d("SidebarTicker",["Arbiter","ChatSidebar","CSS","DOM","Run","TickerController","$","copyProperties"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){function o(){this._ticker=m('pagelet_ticker');this._initSubscriptions();if(i.hasClass(document.documentElement,'sidebarMode'))this._onSidebarShow();}o.hide=function(){k.onAfterLoad(function(){j.remove(m('pagelet_ticker'));j.remove(j.find(document.body,'div.fbSidebarGripper'));h.resize();});};n(o.prototype,{_initSubscriptions:function(){this._subscriptions=[g.subscribe('sidebar/show',this._onSidebarShow.bind(this))];},_onSidebarShow:function(){l.show(this._ticker);}});e.exports=o;},null); __d("SyncRequestNotificationBeeperItemContents.react",["Animation","CloseButton.react","ImageBlock.react","NotificationUserActions","React","SyncRequest.react","SyncRequestStatusEnum","cx"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){var o=k.createClass({displayName:'SyncRequestNotificationBeeperItemContents',_markAsRead:function(){j.markNotificationsAsRead([this.props.beep.notificationID]);this.props.onHide();},_onClose:function(){this._markAsRead();this.props.onHide();},_doFlash:function(){new g(this.refs.inner.getDOMNode()).from('opacity','0').to('opacity','1').duration(200).go();},componentDidMount:function(){if(this.props.beep.rendererData.status!=m.PENDING)this.props.onReadyToHide(this.props.beep.notificationID);},componentDidUpdate:function(p){if(this.props.beep.rendererData.status!=m.PENDING&&p.beep.rendererData.status==m.PENDING)this.props.onReadyToHide(this.props.beep.notificationID);},onRequestStatusUpdate:function(p,q){if(p!=m.PENDING&&q==m.PENDING)this.props.onReadyToHide(this.props.beep.notificationID);},render:function(){var p=this.props.beep,q=p.rendererData;return (k.DOM.div({ref:"inner"},h({className:"_3soc",onClick:this._onClose,size:"medium"}),i({className:"_3soj"},k.DOM.img({src:p.actors[0].profile_picture.uri,className:"_3sok"}),k.DOM.div({className:"_3sol"},l({app:q.app,creationTime:q.creation_time,requestId:q.id.toString(),receiver:q.receiver,sender:q.sender,status:q.status,timeout:q.timeout,timeRemaining:q.time_remaining,viewerId:q.receiver.id,onStatusUpdate:this.onRequestStatusUpdate})))));}});e.exports=o;},null); __d("LiveMessageReceiver",["Arbiter","ChannelConstants","copyProperties","emptyFunction","shield"],function(a,b,c,d,e,f,g,h,i,j,k){function l(m){this.eventName=m;this.subs=null;this.handler=j;this.shutdownHandler=null;this.registered=false;this.appId=1;}i(l,{getAppMessageType:function(m,n){return 'live_message/'+m+':'+n;},route:function(m){var n=function(o){var p=l.getAppMessageType(m.app_id,m.event_name);g.inform(p,o,g.BEHAVIOR_PERSISTENT);};n(m.response);}});i(l.prototype,{setAppId:function(m){this.appId=m;return this;},setHandler:function(m){this.handler=m;this._dirty();return this;},setRestartHandler:j,setShutdownHandler:function(m){this.shutdownHandler=k(m);this._dirty();return this;},_dirty:function(){if(this.registered){this.unregister();this.register();}},register:function(){var m=function(o,p){return this.handler(p);}.bind(this),n=l.getAppMessageType(this.appId,this.eventName);this.subs={};this.subs.main=g.subscribe(n,m);if(this.shutdownHandler)this.subs.shut=g.subscribe(h.ON_SHUTDOWN,this.shutdownHandler);this.registered=true;return this;},unregister:function(){if(!this.subs)return this;for(var m in this.subs)if(this.subs[m])this.subs[m].unsubscribe();this.subs=null;this.registered=false;return this;}});e.exports=l;},null); __d("initLiveMessageReceiver",["Arbiter","ChannelConstants","LiveMessageReceiver"],function(a,b,c,d,e,f,g,h,i){g.subscribe(h.getArbiterType('app_msg'),function(j,k){i.route(k.obj);});},null); __d("Slideshow",["ArbiterMixin","CSS","DOM","Event","Locale","Parent","csx","cx","getActiveElement","mixin","shield"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){var r=p(g);for(var s in r)if(r.hasOwnProperty(s))u[s]=r[s];var t=r===null?null:r.prototype;u.prototype=Object.create(t);u.prototype.constructor=u;u.__superConstructor__=r;function u(v,w){"use strict";this._root=v;this._config=w;this._currentIndex=0;this._animating=false;this._autoplayTimer=null;this._init();}u.prototype.getIndex=function(){"use strict";return this._currentIndex;};u.prototype.getNumItems=function(){"use strict";return this._items.length;};u.prototype.page=function(v){"use strict";if(typeof v==='undefined')v='next';if(v==='next'){if(this._config.wrap||this.getIndex()0){var w=(this.getNumItems()+this.getIndex()-1)%this.getNumItems();this._animateTo(w);}};u.prototype.pageTo=function(v){"use strict";this._animateTo(v,q(this._setCurrent,this,v));};u.prototype.insert=function(v,w){"use strict";if(v>this._currentIndex){i.insertAfter(this._items[v-1],w);}else{i.insertBefore(this._items[v],w);this._currentIndex++;}this._items.splice(v,0,w);this._updateArrowState(this._currentIndex);this.inform('items_updated');};u.prototype.push=function(v){"use strict";this.insert(this._items.length,v);};u.prototype._init=function(){"use strict";this._container=i.find(this._root,"ul._2xq");this._items=i.scry(this._container,"li._2xr");if(this._config.arrows){j.listen(this._root,'click',this._clickListener.bind(this));var v=i.find(this._root,"a._2xw"),w=i.find(this._root,"a._2xx");this._arrowLeft=k.isRTL()?v:w;this._arrowRight=k.isRTL()?w:v;}if(this._config.autoplay){j.listen(this._root,'mouseenter',this.stopAutoplay.bind(this));j.listen(this._root,'mouseleave',this.resetAutoplay.bind(this));this.resetAutoplay();}this.subscribe(['page_start','page_end'],function(x,y){h.conditionClass(this._root,"_2xm",x==='page_start');}.bind(this));};u.prototype._clickListener=function(event){"use strict";var v=event.getTarget(),w=l.byTag(v,'a');if(w&&!h.hasClass(w,"_2xo"))if(h.hasClass(w,"_2xw")){this.page('next');}else if(h.hasClass(w,"_2xx"))this.page('prev');};u.prototype._updateArrowState=function(v){"use strict";if(!this._config.arrows)return;h.conditionClass(this._arrowRight,"_2xo",this._items.length===1);h.conditionClass(this._arrowLeft,"_2xo",this._items.length===1);};u.prototype._animateTo=function(v){"use strict";};u.prototype._setCurrent=function(v){"use strict";h.removeClass(this._items[this._currentIndex],"_2xn");h.addClass(this._items[v],"_2xn");h.removeClass(this._root,"_2xm");var w=i.scry(this._items[this._currentIndex],'a').some(function(y){return y==o();});if(w){var x=i.scry(this._items[v],'a');if(x[0])x[0].focus();}this._currentIndex=v;this._animating=false;this.inform('page_end',v);};u.prototype.resetAutoplay=function(){"use strict";if(this._config.autoplay){clearTimeout(this._autoplayTimer);this._autoplayTimer=setTimeout(this._autoplay.bind(this),this._config.autoplayTimeout);}};u.prototype.stopAutoplay=function(){"use strict";clearTimeout(this._autoplayTimer);this._autoplayTimer=null;};u.prototype._autoplay=function(){"use strict";this.resetAutoplay();if(this._items.length>1)this.page();};e.exports=u;},null); __d("Carousel",["Animation","CSS","Ease","Locale","Slideshow","Style","cx","shield"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){var o=j.isRTL()?'right':'left',p=i.sineInOut;for(var q in k)if(k.hasOwnProperty(q))s[q]=k[q];var r=k===null?null:k.prototype;s.prototype=Object.create(r);s.prototype.constructor=s;s.__superConstructor__=k;function s(t,u){"use strict";k.call(this,t,u);this.subscribe('items_updated',this._updateItemState.bind(this));}s.prototype._updateItemState=function(t,u){"use strict";this._setContainerPos(t);l.set(this._container,'width',(this._items.length*this._config.width)+'px');};s.prototype._updateArrowState=function(t){"use strict";if(!this._config.arrows)return;var u=this._config.wrap,v=this._items.length,w=Math.floor(v/this._config.photosperframe);h.conditionClass(this._arrowRight,"_2xo",w===1||(!u&&t===w-1));h.conditionClass(this._arrowLeft,"_2xo",w===1||(!u&&t===0));};s.prototype._animate=function(t,u){"use strict";var v=(t===-1)?this._items.length-1:t;this._animating=true;this.inform('page_start',v);new g(this._container).to(o,-t*this._config.width).duration(this._config.animationDuration).ease(p).ondone(u).go();};s.prototype._setContainerPos=function(t){"use strict";l.set(this._container,o,-t*this._config.width+'px');};s.prototype._animateTo=function(t){"use strict";if(this._animating)return;var u=this._items.length;if((0<=t&&t