/*!CK:2286354491!*//*1403751475,*/ if (self.CavalryLogger) { CavalryLogger.start_js(["Wc6QC"]); } __d("AdsPagerConstants",["keyMirror"],function(a,b,c,d,e,f,g){var h=g({ADD_PAGE:null,PAGE_TRANSITION:null,REQUEST_PAGE:null}),i=g({VIEW_ACTION:null,SERVER_ACTION:null});e.exports={ActionTypes:h,PayloadSources:i};},null); __d("AdsPagerDispatcher",["AdsPagerConstants","Dispatcher","copyProperties"],function(a,b,c,d,e,f,g,h,i){'use strict';var j=g.PayloadSources;function k(m){return function(n){this.dispatch({payloadSource:m,action:n});};}var l=i(new h(),{handleUpdateFromViewAction:k(j.VIEW_ACTION),handleUpdateFromServerAction:k(j.SERVER_ACTION)});e.exports=l;},null); __d("AdsRefreshHandler",["AdsMouseStateStore","AdsPagerDispatcher","AdsPagerConstants","Arbiter","Animation","DOM","Event","SubscriptionsHandler","UIPagelet","csx","debounceAcrossTransitions","mergeObjects"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){var s=g.STATES,t=600;function u(v,w,x){"use strict";if(!x.data||!x.pid)return;this.$AdsRefreshHandler0=v;this.$AdsRefreshHandler1=Date.now();this.$AdsRefreshHandler2=w;this.$AdsRefreshHandler3=x;this.$AdsRefreshHandler4=0;this.$AdsRefreshHandler5=false;this.$AdsRefreshHandler6=q(this.reloadAdsIfNeeded.bind(this),this.$AdsRefreshHandler2.delay);this.$AdsRefreshHandler7=new n();this.$AdsRefreshHandler7.addSubscriptions(m.listen(this.$AdsRefreshHandler0,'mouseenter',this.setMouseOver.bind(this,true)),m.listen(this.$AdsRefreshHandler0,'mouseleave',this.setMouseOver.bind(this,false)),g.subscribe('change',this.onMouseStateStoreChange.bind(this)));h.register(this.handlePageDispatch.bind(this));}u.prototype.handlePageDispatch=function(v){"use strict";var w=v.action||{};if(w.actionType===i.ActionTypes.REQUEST_PAGE)this.reloadAds();};u.prototype.setMouseOver=function(v){"use strict";this.$AdsRefreshHandler8=v;};u.prototype.subscribeDefaultEventsForRefresh=function(){"use strict";this.$AdsRefreshHandler7.addSubscriptions(m.listen(window,'scroll',this.$AdsRefreshHandler6),m.listen(window,'resize',this.$AdsRefreshHandler6));return this;};u.prototype.reloadWithDebounce=function(){"use strict";this.$AdsRefreshHandler6();};u.prototype.reloadWithoutDebounce=function(){"use strict";this.reloadAdsIfNeeded();};u.prototype.forceLoadIfEnoughTimePassed=function(v){"use strict";if(Date.now()-this.$AdsRefreshHandler1>v)this.reloadAds();};u.prototype.containsPremium=function(){"use strict";var v=l.scry(this.$AdsRefreshHandler0,"div._4u8");return !!v.filter(function(w){return JSON.parse(w.getAttribute('data-ad')).segment==='premium';}).length;};u.prototype.reloadAdsIfNeeded=function(){"use strict";if(!this.$AdsRefreshHandler0)return;j.inform('AdsRefreshHandler/CheckingReload');if(this.$AdsRefreshHandler2.stateRefresh){this.reloadAdsIfNeededStateBased();return;}if(this.containsPremium()||this.$AdsRefreshHandler8||!this.$AdsRefreshHandler2.interval)return;if(Date.now()-this.$AdsRefreshHandler1>=this.$AdsRefreshHandler2.interval)this.reloadAds();};u.prototype.reloadAdsIfNeededStateBased=function(){"use strict";if(Date.now()-this.$AdsRefreshHandler10){ya._fetchTickerForPlaceholder(za,ab);}else i.subscribe('Ticker/resized',function(){if(db.status==ta)ya._fetchTickerForPlaceholder(za,ab);});}else{var fb=p.scry(za,'.fbFeedTicker')[0],gb=fb&&ya.getInstance(fb);ya._activeInstance=gb;gb&&gb._poll();ya._placeholders[za.id]={status:wa,callback:ab};ab();}i.inform('ticker/show',{node:za,callback:ab});},_doPositionChange:function(za){if(!ya._logPositionChange||o.shown(za))return;new k('/common/ods_endpoint.php',{k:'ticker.render.switch.'+za.id}).send();},hide:function(za){var ab=p.scry(za,'.fbFeedTicker')[0],bb=ab&&ya.getInstance(ab);bb&&bb.hideActiveStory();o.hide(za);},hideStoriesByClass:function(za){for(var ab in ya._instances)p.scry(ka(ab),za).forEach(o.hide);},hideStory:function(za){var ab=za&&ya.getInstance(za);ab&&ab.hideStory(za);},undoHideStory:function(za){var ab=za&&ya.getInstance(za);ab&&ab.undoHideStory(za);},insertStoriesAtBottom:function(za){ya._activeInstance.insertStoriesAtBottom(za);},_fetchTickerForPlaceholder:function(za,ab){var bb={handler:function(){ya._placeholders[za.id].status=va;ab();}};ea.loadFromEndpoint('TickerEntStoryPagelet',za.id,ya._placeholders[za.id].pageletData,bb);ya._placeholders[za.id].status=ua;},registerStoryDialog:function(za,ab){i.subscribe('ticker/init',function(){var bb=pa(za),cb=bb&&ya.getInstance(bb);cb&&cb.registerStoryDialog(bb,ab);},i.SUBSCRIBE_ALL);},registerPlaceholder:function(za,ab){var bb=ya._placeholders[za];ya._placeholders[za]={status:ta,pageletData:ab};if(bb&&bb.status==wa){ya.show(ka(za));bb.callback();}}});na(ya.prototype,{ADS_IDLE_MS:300000,FLYOUT_MAX_HEIGHT:450,FLYOUT_OFFSET_THRESHOLD:20,FLYOUT_COMMENT_OFFSET:15,FLYOUT_VIEWPORT_PADDING:75,FLYOUT_TARGET_HEIGHT_OFFSET:25,init:function(za,ab,bb){ya._instances[za.id]=this;ya._activeInstance=this;this._root=za;this._content=p.find(za,'.ticker_stream');this._stories=p.find(this._root,'.tickerActivityStories');this._scrollableArea=ab;this._container=p.find(za,'div.uiScrollableAreaWrap');this._newestStory={};this._storyIDs=[];this._objectIDs=[];this._fetchedStories={};this._fetchedStoriesDialog={};this._storyDialogResources={};this._removedStoryIDs=[];this._storiesToRemove=[];var cb=Date.now();this._initTime=cb;this._lastUpdate=cb;this._lastPull=cb;this._lastInsert=cb;this._lastCustomStory=0;this._pollOnly=false;this._needNonCustomStoryNum=0;this._doCustomUpdate=true;this._autoloadStoryIndex=1;this._scrollTopThreshold=100;this._scrollTopPrompt=p.find(this._root,'.scrollTopPrompt');this._scrollTopPromptVisible=false;this._maxStoriesToKeep=50;this._minStoriesToKeep=25;this._tickerInSidebarMode=!!w.byClass(this._root,'fbChatSidebar');this._loadStoriesWithActions();la('ticker_flyout');la('ticker_flyout_prefetch');la('ticker_flyout_loadtime');la('ticker_stream');this._ua={flyout:sa('ticker').uai('flyout','flyout',false),flyout_prefetch:sa('ticker').uai('flyout_prefetch','flyout_prefetch',false),flyout_loadtime:sa('ticker').uai('ticker_flyout_loadtime','flyout_loadtime',false),stream:sa('ticker').uai('ticker_stream','stream',false)};this._uaCurStoryIDFetch=null;this._uaCurStoryIDPrefetch=null;var db=p.create('div',{className:'storyQueue hidden_elem'});this._storyQueue=db;p.appendContent(this._root,db);this._initObjectIDs();this._initConfig(bb);this._resetMorePager();this._initListeners();this._initSubscriptions(bb);i.inform('ticker/init',this,i.BEHAVIOR_PERSISTENT);this._poll();},_loadStoriesWithActions:function(){var za=pa('rightCol');if(!za)return;this._toggleWrapper=p.scry(za,'.tickerToggleWrapper')[0];if(this._toggleWrapper){var ab=p.scry(this._stories,'.tickerStoryWithButton');this._storiesWithActions={};for(var bb=0;bb=za&&fb0){if(this._isInsertingStory)return this._schedulePoll();var za=this._storiesToRemove.pop();this.removeStory(za);}var ab=!this._isScrolledToTop()&&this._getQueuedStories().length;this._setScrollTopPromptVisible(ab);var bb=Date.now(),cb=bb-this._lastInsert;if(cb0,hb=eb.length>0&&!fb&&(bb-this._initTime>this._firstCustomStoryDelay)&&(this._needNonCustomStoryNum===0||(!gb&&(bb-this._lastCustomStory)>this._customStoryInsertTimeout));if(hb){this.insertStory(eb.shift());this._lastCustomStory=bb;this._needNonCustomStoryNum=this._nonCustomToCustomStoryRatio;return this._schedulePoll();}if(gb){this.insertStory(db.shift());this._needNonCustomStoryNum--;if(this._needNonCustomStoryNum<0)this._needNonCustomStoryNum=0;return this._schedulePoll();}if(fb)return ga.subscribeOnce(this._poll.bind(this));var ib=eb.length===0&&this._needNonCustomStoryNum===0&&this._nonCustomToCustomStoryRatio>0&&ga.isActive(this.ADS_IDLE_MS)&&((bb-this._lastUpdate)>this._minForceUpdateInterval),jb=false,kb=false;if(this._pollOnly){kb=bb-this._lastUpdate>this._heartbeatTimeout;}else jb=(bb-this._lastPull>this._pullTimeout);var lb=(ib&&this._doCustomUpdate)||jb||kb;if(!lb)return this._schedulePoll();if(ib)this._doCustomUpdate=false;this.update({pull:jb,fullpoll:kb,needcustomstory:ib});},_updatePollOnlyHeartbeatTimeout:function(){if(this._pollOnly&&this._heartbeatTimeout0};na(ab,za);new j().setURI(this._heartbeatEndpoint).setReadOnly(true).setOption('retries',0).setData(ab).setHandler(this._handleResponse.bind(this)).setFinallyHandler(this._poll.bind(this)).setAllowCrossPageTransition(true).send();this._lastUpdate=Date.now();if(ab.pull)this._lastPull=this._lastUpdate;this._storyIDs=[];},insertStory:function(za,ab,bb){this._lastInsert=Date.now();window.LiveTimer&&u.addTimeStamps(za);o.removeClass(za,'queuedStory');o.removeClass(za,'customStory');if(ab!==false){var cb=bb?this._fadeStoryIn:this._flyStoryIn;if(this._isUserScrolling()){var db=function(){this._container.scrollTop=this._container.scrollTop+this._stories.firstChild.offsetHeight;this._scheduleScrollToTop();}.bind(this);this._fadeStoryIn(za,db);}else this._scrollToTop(cb.bind(this,za));}else p.prependContent(this._stories,za);if(this._storiesWithActions&&o.hasClass(za,'tickerStoryWithButton'))this._storiesWithActions[za.getAttribute('data-story-key')]=za;this._removeOldStories();},_removeOldStories:function(){var za=this._getInsertedStories();if(za.length<=this._maxStoriesToKeep)return;var ab=this._minStoriesToKeep,bb=za.slice(ab);bb.forEach(p.remove);if(this._storiesWithActions)for(var cb=0;cbeb;},_focusStory:function(za){if(this._focusStoryWillTriggerScroll(za))this._preventScrollDismiss=true;var ab=new x(za),bb=w.byClass(za,'scrollable'),cb=ab.boundWithin(new x(bb)).getPositionVector();ab.getPositionVector().sub(cb).scrollElementBy(bb);za.focus();},_selectStory:function(za){this._selectedStory=za;o.addClass(za,'tickerStorySelected');o.addClass(this._root,'tickerChildSelected');},_activateStory:function(za,ab){this._clearHoverTimeouts();if(za==this._activeStory||!this._storyCanOpenDialog(za))return;this._deactivateStory();this._focusStory(za);this._activeStory=za;o.addClass(za,'tickerStoryActive');window.Toggler&&da.hide();if(this._logFlyouts){ab=ab||'unknown';new k('/ajax/feed/ticker/flyout.php',{src:ab}).send();}ca.log(za);var bb=this._getStoryDialog(za);if(bb){this._logUserEvent('flyout_loadtime','show_prefetched');this._logUserEvent('flyout','show');if(this._storyDialogResources[za.id])l.loadResources(this._storyDialogResources[za.id]);this._openDialog(bb);return;}if(!(za.id in this._fetchedStories)){this._uaCurStoryIDFetch=za.id;this._logUserEvent('flyout','fetch');}this._fetchStory(za);},_deactivateStory:function(za){if(this._activeStory===this._deactivatingStory)return;this._deactivatingStory=this._activeStory;if(this._dialog){if(za===true){this._dialog.enableBehavior(t);}else this._dialog.disableBehavior(t);this._dialog.hide();this._logUserEvent('flyout','close');}if(this._activeStory){o.removeClass(this._activeStory,'tickerStoryActive');o.removeClass(this._activeStory,'tickerStorySelected');o.removeClass(this._root,'tickerChildSelected');}this._dialog=this._selectedStory=this._activeStory=null;this._cleanupInputFocusListener();this._cleanupContentResizeListener();this._deactivatingStory=null;},_logUserAction:function(za,ab,event){la(ab,za,event,'FORCE');sa('ticker',za,event).uai(ab);},_logUserEvent:function(za,event){if(this._ua[za])this._ua[za].add_event(event);},_fetchStory:function(za){clearTimeout(this._fetchToken);var ab=[],bb=this._getInsertedStories(),cb=bb.indexOf(za);[-1,0,1].forEach(function(db){var eb=bb[cb+db];eb&&ab.push(eb);},this);this._fetchToken=setTimeout(this._fetchStories.bind(this,ab),100);},_fetchStories:function(za){var ab=[],bb,cb=function(db){clearTimeout(bb);za.forEach(function(eb){o.conditionClass(eb,'tickerStoryFetching',db);});};za=za.filter(function(db){if(db.id in this._fetchedStories)return false;this._fetchedStories[db.id]=true;var eb=this._getStoryDialogParams(db);if(!eb)return false;eb.uniq_id=db.getAttribute('id');eb.referrer=this._tickerSource;ab.push(eb);return true;},this);if(!ab.length)return;bb=this._setTimeout(cb.bind(null,true),500);new j('/ajax/feed/ticker/multi_story').setInitialHandler(this._handleDialogResponse.bind(this,ab)).setFinallyHandler(cb.bind(null,false)).setErrorHandler(oa).setData({stories:ab}).setAllowCrossPageTransition(this._tickerInSidebarMode).send();},_handleDialogResponse:function(za,ab){if(ab&&ab.resource_map){var bb=[];for(var cb in ab.resource_map){var db=ab.resource_map[cb];if(db.type==='css'&&!db.permanent)bb.push(cb);}if(bb.length>0)for(var eb=0;eb=gb){ba.set(ab,'height',gb+'px');ba.set(ab,'max-height',null);}else{ba.set(ab,'max-height',fb+'px');ba.set(ab,'height',null);}},_initObjectIDs:function(){var za=this._getAllStories();for(var ab=0;abva?x:w;}function ib(){var ob=q.getViewportDimensions().y-ua-ia,pb=q.getElementDimensions(ta).y;if(pb<=ob){fa=0-ha-y;return;}var qb;if(ea){var rb=q.getElementPosition(na).y,sb=ta.children[0].children,tb=pb-y;for(qb=0;qbob){if(qb>0)zb=wb[qb-1];break;}if(qb==yb-1)zb=ac;}if(zb==null){fa=null;}else fa=q.getElementPosition(zb,'viewport').y-q.getElementPosition(na,'viewport').y;}}function jb(ob,pb){aa=ob;pb=pb||wa;var qb=ob?pb+'px':'';m.set(ta,'top',qb);o.conditionClass(ta,'fixed_elem',ob);var rb=p.scry(ta,'div.displayedTickerToggleWrapper')[0];rb&&o.conditionClass(rb,'toggleWrapperWithoutMargin',ob&&!ra);if(ca){var sb=ob?'Ticker/fixed':'Ticker/unfixed';k.inform(sb);}}function kb(){if(!ca||!ra||o.hasClass(document.documentElement,'tinyViewport')){gb();return;}eb();var ob=q.getViewportDimensions().y,pb=61,qb=q.getElementDimensions(ta).y-q.getElementDimensions(qa).y,rb=q.getElementDimensions(ra).y,sb=ob-qb-w-wa-pb,tb=v.tickerAbsMinHeight||120,ub=v.tickerMinHeight||225;ba=false;if(sb(ub-pb)){sb=ub;}else sb+=pb;var vb=Math.min(sb,rb,v.tickerMaxHeight||425);m.set(qa,'height',vb+'px');}function lb(){ca=true;bb();var ob=function(){if(bb()){ba=false;eb();kb();}};pa&&t.show(pa,ob);}function mb(){ca=false;bb();gb();pa&&t.hide(pa);}var nb={init:function(ob,pb){v=ob;la=g('contentCol');ma=g('blueBar');da=0;ea=v.areAllSectionsFixable;ja.push(u.listen(window,'resize',i(kb)));ua=q.getElementDimensions(ma).y;bb();ya=new j(na,v.adsRefreshConfig,pb).subscribeDefaultEventsForRefresh();if(v._adsRefreshConfigDebug)window.refreshHandler=ya;ab();r.onLeave(cb);ja.push(u.listen(window,'scroll',i(eb)));if(!o.hasClass(document.documentElement,'sidebarMode')){lb();}else if(v.enableSidebar)mb();za();}};e.exports=nb;},null); __d("TickerRightHideController",["CSS","DOM","ge"],function(a,b,c,d,e,f,g,h,i){function j(){}j._markAsClosedHelper=function(k){var l=i('pagelet_reminders');if(l){var m=h.scry(l,'div.tickerToggleWrapper')[0];if(m)g.conditionClass(m,'displayedTickerToggleWrapper',k);}var n=i('pagelet_moments');if(n){var o=h.scry(n,'div.tickerToggleWrapper')[0];if(o)g.conditionClass(o,'displayedTickerToggleWrapper',k);}var p=i('pagelet_rhc_ticker');if(p){var q=h.scry(p,'div.tickerToggleWrapper')[0];if(q)g.conditionClass(q,"displayedTickerToggleWrapper",!k);g.conditionClass(p,"hidden_rhc_ticker",k);}};j.markAsClosed=function(){j._markAsClosedHelper(true);};j.markAsUnclosed=function(){j._markAsClosedHelper(false);};e.exports=j;},null); __d("legacy:TickerRightHideController",["TickerRightHideController"],function(a,b,c,d){a.TickerRightHideController=b('TickerRightHideController');},3); __d("legacy:TickerController",["TickerController"],function(a,b,c,d){a.TickerController=b('TickerController');},3); __d("AsyncLayout",["AjaxPipeRequest","Arbiter","AsyncRequest","AsyncResponse","CSS","DOM","HTML","NavigationMessage","PageTransitions","URI","$","emptyFunction","ge","goURI"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){function u(v){"use strict";this.canvasID=v;if(s('rightCol'))this.auxiliaryID='rightCol';if(s('headerArea'))this.headerID='headerArea';if(s('toolbarContainer'))this.toolbarID='toolbarContainer';this.waitingForAux=false;o.registerHandler(this.catchPageTransition.bind(this));this.subscription=h.subscribe(n.NAVIGATION_BEGIN,this.onNavigate.bind(this));}u.prototype.catchPageTransition=function(v){"use strict";this.subscription.unsubscribe();return false;};u.prototype.getCanvasID=function(v){"use strict";return v.sidecol?'contentCol':'contentArea';};u.prototype.onNavigate=function(v,w){"use strict";var x=w.useAjaxPipe;w=w.params;if(w.endpoint){if(this.request){this.request.setFinallyHandler(r);this.request.abort();}if(this.sideRequest)this.sideRequest.abort();if(x){this.request=new g().setURI(w.endpoint).setData(w).setCanvasId(this.getCanvasID(w)).setFinallyHandler(this.finallyHandler.bind(this)).setErrorHandler(this.errorHandler.bind(this)).setFirstResponseCallback(this.firstResponseCallback.bind(this)).send();}else{w.handled=true;this.waitingForAux=w.sidecol;var y=!!w.iframe,z=new i().setOption('useIframeTransport',y).setURI(new p(w.endpoint)).setReadOnly(true).setMethod('GET').setData(w).setHandler(this.onResponse.bind(this)).setErrorHandler(this.errorHandler.bind(this)).setFinallyHandler(this.finallyHandler.bind(this));this.request=z;z.send();}}};u.prototype.onSideResponse=function(v){"use strict";var w=v.getPayload();if(w&&this.auxiliaryID)this.receivedAux(w);};u.prototype.receivedAux=function(v){"use strict";!this.waitingForAux;this.waitingForAux=false;l.setContent(q(this.auxiliaryID),m(v));};u.prototype.onResponse=function(v){"use strict";var w=v.getPayload();if(w.redirect){t(w.redirect);}else{var x=w.html||w;l.setContent(q(this.canvasID),m(x));if(w.side_html&&this.auxiliaryID)this.receivedAux(w.side_html);if(this.headerID&&!w.keep_header){var y=q(this.headerID);l.setContent(y,m(w.header_html||''));k.conditionShow(y,w.header_html);}if(w.toolbar_html&&this.toolbarID)l.setContent(q(this.toolbarID),m(w.toolbar_html));if(w.js)(new Function(w.js))();k.conditionClass('contentCol','hasRightCol',this.auxiliaryID&&!w.noRightSide);var z=s('rightCol');if(z&&w.noRightSide)l.empty(z);}var aa=v.getRequest().getData();h.inform(n.NAVIGATION_COMPLETED,aa.key);};u.prototype.errorHandler=function(v){"use strict";j.verboseErrorHandler(v);h.inform(n.NAVIGATION_FAILED);this.request=null;};u.prototype.firstResponseCallback=function(v){"use strict";window.scrollTo(0,0);h.inform(n.NAVIGATION_FIRST_RESPONSE);};u.prototype.finallyHandler=function(v){"use strict";this.request=null;o.transitionComplete(true);h.inform(n.NAVIGATION_COMPLETED);};e.exports=u;},null); __d("legacy:adware-scanner",["AdwareScaner"],function(a,b,c,d){a.AdwareScaner=b('AdwareScaner');},3);