if (self.CavalryLogger) { CavalryLogger.start_js(["k7yOd"]); }

__d("AdsTransparencyReportAdEntity",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({HIDE_AD:"hide_ad",HIDE_ADVERTISER:"hide_advertiser",HIDE_PRODUCT:"hide_product",WAIST_DIALOG:"waist_dialog",AD_USEFUL:"ad_useful",REPORT_AD:"report_ad",REPORT_AD_REASON:"report_ad_reason",XOUT_MENU:"xout_menu"})}),null);
__d("AdsTransparencyReportAdEvent",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({CLICK_ACTION:"click_action",CLICK_VIEW:"click_view",BACKEND_UPDATE:"backend_update",IMPRESSION:"impression",INVALIDATION:"invalidation"})}),null);
__d("AdsTransparencyReportAdTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(){this.clear()}h.prototype.log=function(){c("GeneratedLoggerUtils").log("logger:AdsTransparencyReportAdLoggerConfig",this.$AdsTransparencyReportAdTypedLogger1,c("Banzai").BASIC)};h.prototype.logVital=function(){c("GeneratedLoggerUtils").log("logger:AdsTransparencyReportAdLoggerConfig",this.$AdsTransparencyReportAdTypedLogger1,c("Banzai").VITAL)};h.prototype.clear=function(){this.$AdsTransparencyReportAdTypedLogger1={};return this};h.prototype.updateData=function(j){this.$AdsTransparencyReportAdTypedLogger1=babelHelpers["extends"]({},this.$AdsTransparencyReportAdTypedLogger1,j);return this};h.prototype.setAdID=function(j){this.$AdsTransparencyReportAdTypedLogger1.ad_id=j;return this};h.prototype.setAdsPageType=function(j){this.$AdsTransparencyReportAdTypedLogger1.ads_page_type=j;return this};h.prototype.setEntity=function(j){this.$AdsTransparencyReportAdTypedLogger1.entity=j;return this};h.prototype.setEvent=function(j){this.$AdsTransparencyReportAdTypedLogger1.event=j;return this};h.prototype.setProductLocation=function(j){this.$AdsTransparencyReportAdTypedLogger1.product_location=j;return this};h.prototype.setSessionID=function(j){this.$AdsTransparencyReportAdTypedLogger1.session_id=j;return this};h.prototype.setVC=function(j){this.$AdsTransparencyReportAdTypedLogger1.vc=j;return this};var i={ad_id:true,ads_page_type:true,entity:true,event:true,product_location:true,session_id:true,vc:true};f.exports=h}),null);
__d("ReportAdLoggingEvents",["AdsTransparencyReportAdEntity","AdsTransparencyReportAdEvent","AdsTransparencyReportAdTypedLogger","EventListener"],(function a(b,c,d,e,f,g){"use strict";var h={registerMenuItemClick:function i(j,k,l,m,n,o){c("EventListener").listen(j,"click",function(){new(c("AdsTransparencyReportAdTypedLogger"))().setEvent(c("AdsTransparencyReportAdEvent").CLICK_VIEW).setAdID(k).setEntity(l).setSessionID(m).setProductLocation(o).setAdsPageType(n).log()})}};f.exports=h}),null);
__d("XEventReminderImpressionLoggerAsyncController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/events/ajax/reminder/impression/",{acontext:{type:"StringToStringMap",required:true},data:{type:"StringToStringMap"}})}),null);
__d("EventReminderController",["Arbiter","AsyncRequest","DOM","DOMQuery","Event","Scroll","ScrollableArea","XEventReminderImpressionLoggerAsyncController"],(function a(b,c,d,e,f,g){__p&&__p();var h={registerReminder:function i(j,k){__p&&__p();this._firstOpen=true;var l=j.getDialog(),m=c("ScrollableArea").getInstance(c("DOMQuery").scry(l.getRoot(),".uiScrollableArea")[0]),n=null;if(m){n=c("DOM").find(m.getElement(),"div.uiScrollableAreaWrap");m.subscribe("scroll",function(){return c("Arbiter").inform("EventReminderDialog/scroll",{rect:n.getBoundingClientRect(),scrollTop:c("Scroll").getTop(n)})})}c("Event").listen(j.getRoot(),"click",function(event){event.preventDefault()});l.subscribe("show",function(){var o=c("XEventReminderImpressionLoggerAsyncController").getURIBuilder().setStringToStringMap("acontext",k).setStringToStringMap("data",{first_open:this._firstOpen}).getURI();new(c("AsyncRequest"))(o).send();this._firstOpen=false;var p={};if(n)p={rect:n.getBoundingClientRect()};c("Arbiter").inform("EventReminderDialog/show",p)}.bind(this));l.subscribe("hide",function(){return c("Arbiter").inform("EventReminderDialog/hide")})}};f.exports=h}),null);
__d("ConditionClassOnVisible",["IntersectionObserver","Run"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=function h(j,k,l){var m=arguments.length<=3||arguments[3]===undefined?true:arguments[3],n=j[0],o=m?n.intersectionRatio>0:!(n.intersectionRatio>0);n.target.classList.toggle(l,o)},i={track:function j(k,l,m){var n=new(c("IntersectionObserver"))(function(o,n){h(o,n,l,m)},{});n.observe(k);c("Run").onLeave(function(){n.disconnect()})}};f.exports=i}),null);
__d("XGamesReplaceableXOutAsyncController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/games/async/xout/replace/",{unit_type:{type:"String"},fbs:{type:"Int"},app_id:{type:"Int"},extra_data:{type:"String"},query_type:{type:"String"},query_params:{type:"String"},excluded_app_ids:{type:"StringVector",defaultValue:[]},attributes:{type:"String"}})}),null);
__d("GamesReplaceableXOutHelper",["invariant","Parent","XGamesReplaceableXOutAsyncController"],(function a(b,c,d,e,f,g,h){__p&&__p();var i="data-games-xout-container",j=0,k={},l={};function m(w){__p&&__p();var x=c("Parent").byAttribute(w,i);if(x){var y=parseInt(x.getAttribute(i),10);if(y===0){j+=1;y=j.toString();x.setAttribute(i,y)}return y}}function n(w){var x=m(w);x||h(0);return x}function o(w){var x=k[n(w)];return x?Object.keys(x):[]}function p(w,x){return q(w,[x])}function q(w,x){var y=m(w);if(y){var z=k[y]=k[y]||{};for(var A=0;A<x.length;A+=1)z[x[A]]=true}}function r(w){var x=n(w);if(x){delete k[x];delete l[x]}}function s(w,x){return c("XGamesReplaceableXOutAsyncController").getURIBuilder().setInt("app_id",x.appID).setString("extra_data",x.extraData).setString("attributes",x.attributes).setString("query_type",w.getAttribute("data-games-xout-query-type")).setString("query_params",w.getAttribute("data-games-xout-query-params")).setString("unit_type",x.unitType).setInt("fbs",w.getAttribute("data-games-xout-fbs")).setStringVector("excluded_app_ids",o(w)).getURI()}function t(w,x){var y=m(w);if(!y)return;var z=l[y]=l[y]||[];if(z.length===0)x();z.push(x)}function u(w){var x=n(w),y=l[x];if(y){y.shift();if(y.length>0)y[0]()}}var v={getBoundAppIDs:o,registerAppID:p,registerAppIDs:q,deleteContainer:r,queueRequest:t,processQueuedRequests:u,createURI:s};f.exports=v}),null);
__d("GamesReplaceableXOutListener",["csx","cx","AsyncRequest","CSS","DOM","Event","GamesReplaceableXOutHelper","Parent"],(function a(b,c,d,e,f,g,h,i){__p&&__p();var j={};function k(n,o,p){var q=p.payload;if(!q)return;c("GamesReplaceableXOutHelper").registerAppID(n,q.app_id);c("GamesReplaceableXOutHelper").processQueuedRequests(o);j[q.app_id]=q.item_data;c("DOM").replace(o,q.el)}function l(n){__p&&__p();return c("Event").listen(n,"click",function(o){var p=o.target;if(!c("CSS").matchesSelector(p,"._1m6e"))return;var q=c("Parent").bySelector(p,"._2b2u"),r=p.getAttribute("data-appid"),s=j[r];c("CSS").addClass(q,"_4ksu");c("GamesReplaceableXOutHelper").queueRequest(q,function(){new(c("AsyncRequest"))(c("GamesReplaceableXOutHelper").createURI(n,s)).setHandler(function(t){return k(n,q,t)}).setMethod("POST").send();delete j[r]})})}var m={registerContainerItems:function n(o,p,q){c("GamesReplaceableXOutHelper").registerAppIDs(o,p);q.forEach(function(r){var s=r.appID;j[s]=r;c("GamesReplaceableXOutHelper").registerAppID(o,s)});l(o,p)}};f.exports=m}),null);
__d("GamesTabMenu",["AsyncRequest","XPlatformXOutableElementController"],(function a(b,c,d,e,f,g){__p&&__p();function h(i,j){"use strict";this.$GamesTabMenu2=j.xoutType;this.$GamesTabMenu3=j.fbid;this.$GamesTabMenu4=j.closeid;i.subscribe("itemclick",function(k,l){switch(l.item.getValue()){case"xout":this.$GamesTabMenu5();break}}.bind(this))}h.prototype.setContainer=function(i){"use strict";this.$GamesTabMenu1=i};h.prototype.$GamesTabMenu5=function(){"use strict";if(this.$GamesTabMenu1)this.$GamesTabMenu1.getRoot().remove();else document.getElementById(this.$GamesTabMenu4).remove();var i=c("XPlatformXOutableElementController").getURIBuilder().setEnum("type",this.$GamesTabMenu2).setInt("fbid",this.$GamesTabMenu3).getURI();new(c("AsyncRequest"))(i).setMethod("POST").send()};f.exports=h}),null);
__d("GamesTabPanel",["CSS","getStyleProperty"],(function a(b,c,d,e,f,g){__p&&__p();function h(i,j){"use strict";this.$GamesTabPanel1=i}h.prototype.showPanel=function(){"use strict";c("CSS").show(this.$GamesTabPanel1)};h.prototype.hidePanel=function(){"use strict";c("CSS").hide(this.$GamesTabPanel1)};h.prototype.getHeight=function(){"use strict";return c("getStyleProperty")(this.$GamesTabPanel1,"height")};f.exports=h}),null);
__d("XGroupsRHCSuggestionXoutController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/groups/xout_suggested_group/",{id:{type:"Int",required:true}})}),null);
__d("GroupSuggestionXoutHandler",["csx","AsyncRequest","CSS","DOM","Event","XGroupsRHCSuggestionXoutController","XRapidReportingDialogController"],(function a(b,c,d,e,f,g,h){__p&&__p();var i={onclick:function j(k,l,m){c("Event").listen(k,"click",function(){i.hideItem(l,m)})},hideItem:function j(k,l){__p&&__p();var m=c("XGroupsRHCSuggestionXoutController").getURIBuilder().setInt("id",k).getURI();new(c("AsyncRequest"))().setURI(m).send();var n=c("DOM").find(document,"#"+l);c("DOM").remove(n);var o=c("DOM").scry(document,"div._1spx");if(o.length===0){var p=c("DOM").find(document,"#GroupsRHCSuggestionSection");if(p!==null)c("DOM").remove(p)}},initMenu:function j(k,l,m){k.subscribe("itemclick",function(n,o){if(o.item.getValue()=="hide"){i.hideItem(l,m);return}var p=JSON.stringify({reportable_ent_token:l.toString(),entry_point:"group_mall_rhc"}),q=c("XRapidReportingDialogController").getURIBuilder().setString("context",p).getURI();new(c("AsyncRequest"))().setURI(q).send();i.hideItem(l,m)})},hide:function j(k,l){c("Event").listen(l,"mouseover",function(){c("CSS").show(k)});c("Event").listen(l,"mouseleave",function(){c("CSS").hide(k)})}};f.exports=i}),null);
__d("AppRequestReminders",["AsyncRequest","CSS","DOM","ge","$"],(function a(b,c,d,e,f,g){__p&&__p();var h=0,i={},j=1,k=c("ge")("OtherAppReqReminder"),l=function l(r,s,t){i[s]={node:r,seq:j++,reqCount:t}},m=function m(r){h=r},n=function n(r){return r.id.split("_")[1]},o=function o(r){var s=c("ge")(r),t=s.nextSibling;if(t!==k){c("CSS").show(t);h-=i[n(t)].reqCount}p(h)},p=function p(r){new(c("AsyncRequest"))().setURI("/ajax/reminders/update_count.php").setData({new_count:r}).setMethod("POST").send()},q=function q(r,s){if(k&&s&&r>0)c("DOM").setContent(c("ge")("OtherAppReqLabel"),s);else if(k)c("CSS").hide(k);else c("CSS").hide(c("$")("OtherAppReqReminder"))};g.initNode=l;g.handleRemove=o;g.updateCount=q;g.setTotalOtherCount=m}),null);
__d("ListestandStreamTailStoryPlaceholderVisbilityTracker",["PageletEventConstsJS","PageletEventsHelper","onRectIsWithinViewport","performanceAbsoluteNow"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=null,i=null,j=null,k=false,l={},m={setPlaceholderElement:function o(p){__p&&__p();if(!k){c("PageletEventsHelper").subscribeToPageletEvents(n);k=true}h=p;i&&i.remove();i=c("onRectIsWithinViewport")(function(){return p.getBoundingClientRect()},function(q){if(!j&&q)j=c("performanceAbsoluteNow")()})},getStoryPlaceholderVisibleDuration:function o(p){return l[p]||0}};function n(o,p){if(o.startsWith("hyperfeed_story")&&p===c("PageletEventConstsJS").DISPLAY_END){var q=c("performanceAbsoluteNow")();l[o]=j?q-j:0;if(h){var r=h.getBoundingClientRect().top,s=r-window.scrollTop;j=s<window.innerHeight&&s>0?q:null}else j=null}}f.exports=m}),null);
__d("FlexibleScrollableArea",["DataStore","DOM","DOMDimensions","Event","Parent","Run","Style","Vector","throttle"],(function a(b,c,d,e,f,g){__p&&__p();var h=30,i=100;function j(k,l,m,n,o){"use strict";__p&&__p();this._element=k;this._tight=l;this._measureFrom=m;this._minHeight=n;this._margin=o;c("DataStore").set(this._element,"FlexibleScrollableArea",this);c("Run").onLeave(this.cleanup.bind(this));this._listener=c("Event").listen(window,"resize",c("throttle")(this.poke,i,this));this.poke()}j.prototype.poke=function(){"use strict";__p&&__p();var k=c("DOM").find(this._element,".uiScrollableAreaBody"),l=c("Vector").getElementDimensions(k).y+c("DOMDimensions").measureElementBox(k,"height",true,true,true),m;if(this._tight){var n=this.getMaxHeight();if(l<n+h)n+=h;m=Math.max(Math.min(l,n),this._minHeight)}else m=Math.max(this.getMaxHeight(),this._minHeight);c("Style").set(this._element,"height",m+"px")};j.prototype.getMaxHeight=function(){"use strict";if(this._measureFrom==="bottom"){var k=c("Vector").getViewportDimensions().y,l=c("Vector").getElementPosition(this._element,"viewport").y,m=k-l;return m-this._margin}var n=c("Vector").getElementPosition(this._element,"viewport").y+c("Vector").getElementDimensions(this._element).y;return n-this._margin};j.prototype.cleanup=function(){"use strict";this._listener&&this._listener.remove()};j.getInstance=function(k){"use strict";var l=c("Parent").byClass(k,"flexibleScrollableArea");return l?c("DataStore").get(l,"FlexibleScrollableArea"):null};f.exports=j}),null);
__d("EgoUnitSlideInsert",["csx","cx","Animation","CSS","DataStore","DOM","Ease","Event","Parent","TidyArbiterMixin","tidyEvent"],(function a(b,c,d,e,f,g,h,i){__p&&__p();var j="sliding",k="EgoSlider/End",l=babelHelpers["extends"]({isSliding:function m(n){return c("DataStore").get(n,j)},runAfterSlide:function m(n,o){var p=c("tidyEvent")(l.subscribe(k,function(q,r){if(r===n){p&&p.unsubscribe();o()}}))},registerSlide:function m(n,o){__p&&__p();c("Event").listen(n,"click",function(p){__p&&__p();var q=c("Parent").bySelector(p.getTarget(),"._5cl_");if(!q)return;var r=c("Parent").byClass(n,"ego_unit"),s=0,t=c("Parent").byClass(r,"ego_unit_container"),u=c("DOM").scry(t,".ego_unit")[0];if(u===r)if(r.nextSibling){r.nextSibling.style.paddingTop="0px";r.nextSibling.style.borderTop="0px"}c("CSS").addClass(r,"_5cl-");c("DataStore").set(r,j,true);new(c("Animation"))(r).to("height",0).to("padding-top",s).to("padding-bottom",0).to("margin",0).from("opacity",1).to("opacity",0).ease(c("Ease").circOut).duration(300).checkpoint(1,function(){c("DOM").appendContent(t,r);c("DOM").prependContent(r,o);c("DataStore").remove(r,j)}).to("height",12).to("opacity",1).to("margin-bottom",10).duration(0).checkpoint(2,function(){l.inform(k,r)}).go()})}},c("TidyArbiterMixin"));f.exports=l}),null);
__d("NetEgo",["csx","Animation","Arbiter","CSS","DOM","EgoUnitSlideInsert","PageLikeConstants","Parent","URI","ge"],(function a(b,c,d,e,f,g,h){__p&&__p();var i={setup:function j(k){__p&&__p();c("Arbiter").subscribe([c("PageLikeConstants").LIKED,"FriendRequest/sending"],function(l,m){__p&&__p();if(k==m.profile_id&&m.origin=="hovercard"||k==m.uid){var n=c("ge")(document.body,".ego_unit_container");if(n){var o=c("DOM").scry(n,".ego_unit"),p=o.length;for(var q=0;q<p;q++){var r=o[q].getAttribute("data-ego-fbid");if(r==k){var s=c("DOM").scry(o[q],".ego_action a")[0];if(s)s.click();break}}}}})},updateXids:function j(k,l){__p&&__p();if(k.length==0&&l.length==0)return;var m=function m(w){return function(x){var o=x.getAttribute(w);if(!o)return false;var p=new(c("URI"))(o).getQueryData();return!!p.xids}},n=c("DOM").scry(document.body,".ego_section a");n=n.filter(m("ajaxify"));if(n.length==0)return;var o=new(c("URI"))(n[0].getAttribute("ajaxify")),p=o.getQueryData();if(!p.xids)return;var q=null;try{q=JSON.parse(p.xids)}catch(r){return}for(var s=0;s<l.length;++s)q[l[s]]=1;var t=JSON.stringify(q),u=function u(w,x){o=new(c("URI"))(w.getAttribute(x));p=o.getQueryData();p.xids=t;o.setQueryData(p);w.setAttribute(x,o.toString())};for(s=0;s<n.length;++s)u(n[s],"ajaxify");var v=c("DOM").scry(document.body,".ego_unit form");v=v.filter(m("action"));for(s=0;s<v.length;++s)u(v[s],"action")},replaceUnit:function j(k,l,m,n){i.replaceUnitCheckParent(k,l,m,n,"")},replaceUnitCheckParent:function j(k,l,m,n,o){var p=c("Parent").byClass(k,"ego_unit_container");if(p&&c("EgoUnitSlideInsert").isSliding(k)){var q=c("DOM").appendContent(p,l);q.forEach(c("CSS").hide);c("EgoUnitSlideInsert").runAfterSlide(k,i._replaceUnitElement.bind(null,k,q,o))}else i._replaceUnit(k,l,m,n,o)},_replaceUnit:function j(k,l,m,n,o){var p=c("DOM").insertAfter(k,l);p.forEach(c("CSS").hide);if(n!==undefined&&n!==null)setTimeout(function(){i._replaceUnitFadeout(k,p,m,o)},n);else i._replaceUnitFadeout(k,p,m,o)},_replaceUnitFadeout:function j(k,l,m,n){if(m)new(c("Animation"))(k).from("opacity",1).to("opacity",0).duration(m).checkpoint(1,function(){i._replaceUnitElement(k,l,n)}).go();else i._replaceUnitElement(k,l,n)},_replaceUnitElement:function j(k,l,m){var n=c("CSS").hasClass(k,"ego_unit")?k.parentNode:null;if(n&&n.tagName==="LI")n=c("DOM").scry(k.parentNode,"^ul")[0];c("DOM").remove(k);if(l.length)l.forEach(c("CSS").show);c("Arbiter").inform("netego_replacedUnit",{serializedData:m,numUnitsRemained:n.childNodes.length});i.clearHeader()},clearHeader:function j(){__p&&__p();var k=c("DOM").scry(document.body,".ego_column"),l=[];for(var m=0;m<k.length;++m)l=l.concat(c("DOM").scry(k[m],".uiHeader"));for(m=0;m<l.length;++m){var n=l[m].nextSibling,o=c("DOM").find(n,"._2xq");if(!o)o=n;if(!o||o.childNodes.length===0)c("DOM").remove(l[m]);else if(o.childNodes.length===1){var p=o.childNodes[0];if(c("CSS").hasClass(p,"ego_appended_units")&&p.childNodes.length===0)c("DOM").remove(l[m])}}}};f.exports=i}),null);
__d("NetEgoLogger",["AsyncSignal"],(function a(b,c,d,e,f,g){f.exports={log:function h(i){var j=i.uri,k=i.sid,l=i.fbid,m=i.element;new(c("AsyncSignal"))(j,{sid:k,fbid:l,height:m.offsetHeight}).send()}}}),null);
__d("NewsFeedDedupeStoryController",["CSS","DOMQuery","queryThenMutateDOM"],(function a(b,c,d,e,f,g){__p&&__p();var h={dedupe:function i(j,k){__p&&__p();c("queryThenMutateDOM")(function(){var l={};return c("DOMQuery").scry(j,k).filter(function(m){var n=m.getAttribute("data-dedupekey");if(n&&c("CSS").shown(m)){if(l[n])return true;l[n]=true}return false})},function(l){l.forEach(function(m){c("CSS").hide(m);m.removeAttribute("style")})},"NewsFeedDedupeStoryControllerDedupe")}};f.exports=h}),null);
__d("NewsFeedOffscreenController",["Arbiter","CSS","DOMQuery","IntersectionObserver","NavigationMessage","Run","Style","SubscriptionsHandler","debounce","getOrCreateDOMID","queryThenMutateDOM"],(function a(b,c,d,e,f,g){__p&&__p();var h=400,i=10,j={},k=null,l={rootMargin:h+"px 0px "+h+"px 0px"},m=null,n={};function o(){for(var w in n)if(c("DOMQuery").scry(n[w],"div[data-fullscreen]").length)delete n[w];else j[w]=n[w].offsetHeight}function p(){__p&&__p();var w=void 0,x=void 0;for(var y in n){x=j[y];if(x!==undefined&&x>0){c("Style").apply(n[y],{height:x+"px",marginBottom:i+"px"});w=n[y].firstElementChild;if(w)c("CSS").hide(w);delete j[y]}delete n[y]}}var q=c("debounce")(function(){c("queryThenMutateDOM")(o,p,"NewsFeedOffscreenController")});function r(w){delete n[c("getOrCreateDOMID")(w)];c("Style").apply(w,{height:"",marginBottom:""});var x=w.firstElementChild;if(x)c("CSS").show(x)}function s(w){var x=[];w.forEach(function(y){if(y.isIntersecting||y.intersectionRatio>0)x.push(y.target);else n[c("getOrCreateDOMID")(y.target)]=y.target});q();x.forEach(r)}function t(){k&&k.disconnect();k=null;m&&m.release();m=null}function u(){if(k)return k;k=new(c("IntersectionObserver"))(s,l);var m=new(c("SubscriptionsHandler"))();m.addSubscriptions(c("Arbiter").subscribe(c("NavigationMessage").NAVIGATION_BEGIN,t),c("Run").onLeave(t));return k}var v={attachSubstream:function w(x){u().observe(x)}};f.exports=v}),null);
__d("NewsFeedTailLoadController",["Arbiter","Bootloader","CSS","DOM","Event","IntersectionObserver","ListestandStreamTailStoryPlaceholderVisbilityTracker","LitestandMessages","LitestandStream","NavigationMessage","NewsFeedDedupeStoryController","NewsFeedOffscreenController","Run","SubscriptionsHandler","FunnelLogger","AsyncResponse","ge","getElementPosition","getOrCreateDOMID","getViewportDimensions"],(function a(b,c,d,e,f,g){__p&&__p();var h=100,i=3e4,j={"streamload.tail.commence":true,"streamload.tail.success":true,"streamload_error.tail":true,"streamload_error.tail.transport":true,"streamload_error.tail.final":true,"streamload.tail.retry":true,"streamload_error.tail.retry":true,"streamload.tail.retry.success":true,"streamload_timeout.tail":true},k=void 0,l=void 0,m={},n="WWW_NEWSFEED_TAILLOAD_FUNNEL",o=2,p=null,q=void 0,r=null,s=void 0,t=null,u=0,v=0,w=null,x=function x(G){G.forEach(function(H){if(j[H])c("FunnelLogger").appendActionWithTag(n,v,H,"try_"+u)});c("Bootloader").loadModules(["BanzaiODS"],function(H){G.forEach(function(I){H.bumpEntityKey("feed_load",I)})},"NewsFeedTailLoadController")},y=function y(G,H){__p&&__p();c("Arbiter").inform(c("LitestandMessages").STREAM_LOAD_ERROR,H);var I=["streamload_error.tail"];if(u>0)I.push("streamload_error.tail.retry");if(G&&u<o){u++;B(G);I.push("streamload.tail.retry");c("Arbiter").inform(c("LitestandMessages").STREAM_LOAD_RETRY)}else t&&c("CSS").removeClass(t,"async_saving");x(I)},z=function z(){A();q=setTimeout(function(){x(["streamload_timeout.tail"])},i)},A=function A(){q&&clearTimeout(q)},B=function B(G){__p&&__p();if(u<1){c("FunnelLogger").startFunnel(n,v);c("FunnelLogger").addFunnelTag(n,v,"NewsFeedTailLoadController")}x(["streamload.tail.commence"]);if(m[G]){x(["duplicate_cursor"]);c("Arbiter").inform(c("LitestandMessages").DUPLICATE_CURSOR_ERROR,G)}m[G]=true;var H={client_stories_count:c("DOM").scry(c("LitestandStream").getStreamRoot(),c("LitestandStream").getStoriesSelector()).length,cursor:G,feed_stream_id:c("LitestandStream").getFeedStreamID(),pager_config:s,scroll_count:v+1,story_id:c("LitestandStream").getStoryID()},I=function I(L){y(G,L)},J=function J(L){x(["streamload_error.tail.transport"]);y(G,L)},K=function K(L){if(L.error)x(["streamload_error.tail.final"]);else{x(["streamload.tail.success"]);v++}};if(!r)c("Bootloader").loadModules(["UIPagelet"],function(L){r=L.loadFromEndpoint("LitestandTailLoadPagelet",c("getOrCreateDOMID")(k),H,{append:true,automatic:true,constHeight:true,crossPage:true,errorHandler:I,finallyHandler:K,transportErrorHandler:J,usePipe:true});c("Arbiter").inform(c("LitestandMessages").STORIES_REQUESTED)},"NewsFeedTailLoadController");else{r.setErrorHandler(I).setTransportErrorHandler(J).go(H);c("Arbiter").inform(c("LitestandMessages").STORIES_REQUESTED)}};function C(){p&&p.disconnect();p=null;w&&w.release();w=null;m={};r=null;v=0;A()}function D(event){B(l);t&&c("CSS").addClass(t,"async_saving");event.preventDefault()}function E(G){__p&&__p();var H=false;G.forEach(function(I){if(I.target===t){var J=I.isIntersecting||I.intersectionRatio>0;if(J){H=true;t&&c("CSS").addClass(t,"async_saving");B(l);p&&t&&p.unobserve(t)}}});return H}var F={init:function G(H,I,J,K,L){__p&&__p();k=J;l=H;t=I;s=K;var M=L.firstPagerScrollBuffer||h,N=c("getElementPosition")(I),O=c("getViewportDimensions")(),P=Math.max(N.y-M-O.height,0);p=new(c("IntersectionObserver"))(function(Q){if(E(Q)){p&&p.disconnect();p=new(c("IntersectionObserver"))(function(Q){E(Q)},{rootMargin:"0px 0px "+L.bufferPixels+"px 0px"})}},{rootMargin:"0px 0px "+P+"px 0px"});p.observe(t);c("ListestandStreamTailStoryPlaceholderVisbilityTracker").setPlaceholderElement(t);w=new(c("SubscriptionsHandler"))();w.addSubscriptions(c("Arbiter").subscribe(c("LitestandMessages").STORIES_REQUESTED,z),c("Arbiter").subscribe([c("LitestandMessages").STORIES_INSERTED,c("LitestandMessages").STREAM_LOAD_ERROR],A),c("Arbiter").subscribe(c("NavigationMessage").NAVIGATION_BEGIN,C),c("Event").listen(t,"click",D),c("Run").onLeave(C))},destroy:function G(){C();t&&c("CSS").hide(t)},setCursor:function G(H){var I=c("LitestandStream").getStreamRoot();if(I)c("NewsFeedDedupeStoryController").dedupe(I,c("LitestandStream").getStoriesSelector());t&&c("CSS").removeClass(t,"async_saving");l=H;p&&t&&p.observe(t);u=0},moreStoriesInserted:function G(H){c("Arbiter").inform(c("LitestandMessages").STORIES_INSERTED,{substream_id:H});var I=c("ge")(H);if(I){c("NewsFeedOffscreenController").attachSubstream(I);if(u>0){u=0;x(["streamload.tail.retry.success"])}}},handleError:function G(H){y(H)},handleErrorV2:function G(H){y(H)}};f.exports=F}),null);
__d("PubcontentSuggestionsUtil",["csx","cx","DOM","DOMDimensions","LitestandEllipsis","Parent","Style"],(function a(b,c,d,e,f,g,h,i){__p&&__p();var j={truncateName:function k(l,m){__p&&__p();var n=c("DOM").scry(l,".nameText")[0];if(n){var o=(c("Style").getFloat(l,"lineHeight")+c("Style").getFloat(l,"marginBottom"))*m;if(isNaN(o))return;c("LitestandEllipsis").add(n,o,l);var p=c("DOM").scry(l.parentNode,".socialContext")[0];if(p){o-=c("DOMDimensions").getElementDimensions(l).height;c("LitestandEllipsis").add(p,o,p)}}},truncateText:function k(l,m){if(l){var n=c("Style").getFloat(l,"lineHeight")*m;c("LitestandEllipsis").add(l,n,l)}},truncateAllText:function k(l,m){var n,o=c("DOM").scry(l,".ego_title");for(n=0;n<o.length;n++)j.truncateName(o[n],2);var p=c("DOM").scry(l,".descriptionText");for(n=0;n<p.length;n++)j.truncateText(p[n],2);var q=c("DOM").scry(l,".ego_like");for(n=0;n<q.length;n++)j.cutLikeButtonText(q[n],m)},cutButtonText:function k(l){var m=c("Parent").bySelector(l,"._5ry0");if(m&&c("DOMDimensions").getElementDimensions(l).width>c("DOMDimensions").getElementDimensions(m).width){var n=c("DOM").scry(l,"input")[0];n.value=""}},cutLikeButtonText:function k(l,m){__p&&__p();var n=m?c("Parent").byClass(l,"ego_unit"):c("Parent").byClass(l,"likeButton");if(n&&c("DOMDimensions").getElementDimensions(l).width>c("DOMDimensions").getElementDimensions(n).width){var o=c("DOM").scry(l,"img");if(o.length){var p=o[0].nextSibling.textContent;o[0].parentNode.setAttribute("aria-label",p);o[0].parentNode.removeChild(o[0].nextSibling)}else{o=c("DOM").scry(l,"i");if(o.length){var q=o[0].nextSibling.textContent;o[0].parentNode.setAttribute("aria-label",q);o[0].parentNode.removeChild(o[0].nextSibling)}}}}};f.exports=j}),null);
__d("ReminderStory",["AsyncRequest","Arbiter","Bootloader","DOMQuery","Event","FlexibleScrollableArea","LayerAutoFocus","ScrollableArea","SubscriptionsHandler","getActiveElement"],(function a(b,c,d,e,f,g){__p&&__p();function h(i,j,k,l,m,n){"use strict";__p&&__p();this.$ReminderStory1=false;this.$ReminderStory2=j;this.$ReminderStory3=i;c("Event").listen(i,"click",function(event){if(k&&c("DOMQuery").contains(k,event.target))return;j.show();if(l)new(c("AsyncRequest"))("/growth/reminder/logging.php").setData({context_data:l,first_click:!this.$ReminderStory1}).send();this.$ReminderStory1=true}.bind(this));if(m)j.subscribeOnce("show",function(){c("Bootloader").loadModules(["UIPagelet"],function(o){return o.loadFromEndpoint(m,j.getContent(),n)},"ReminderStory")});j.disableBehavior(c("LayerAutoFocus"));j.subscribe("aftershow",function(){__p&&__p();var o=j.getRoot(),p=j.hide.bind(j);this.$ReminderStory4=new(c("SubscriptionsHandler"))();this.$ReminderStory4.addSubscriptions(c("Event").listen(window,"resize",p),c("Event").listen(window,"scroll",p));var q=c("DOMQuery").scry(o,".inlineReplyTextArea");q[0]&&q[0].focus();var r=c("DOMQuery").scry(o,".jewelItemNew"),s=[];r.forEach(function(w){var x=r[w].getAttribute("id");if(x&&x.endsWith("_1_req"))s=s.concat(x.replace("_1_req",""))});if(s.length>0)new(c("AsyncRequest"))("/friends/requests/log_impressions").setData({ids:s.join(","),ref:"reminder_box"}).send();var t=c("ScrollableArea").getInstance(c("DOMQuery").scry(j.getRoot(),".uiScrollableArea")[0]),u=c("FlexibleScrollableArea").getInstance(c("DOMQuery").scry(j.getRoot(),".flexibleScrollableArea")[0]),v=function v(){if(u)u.poke();if(t){t.poke();c("Event").fire(c("DOMQuery").scry(j.getRoot(),".scrollable")[0],"scroll")}};v();c("Arbiter").subscribe("reflow",function(){var w=c("DOMQuery").scry(o,".fbRemindersBirthdayList");if(q&&w)for(var x=0;x<q.length;++x)if(q[x]==c("getActiveElement")()&&c("DOMQuery").contains(w[0],q[x]))v()})}.bind(this));j.subscribe("beforehide",function(){if(this.$ReminderStory4){this.$ReminderStory4.release();this.$ReminderStory4=null}}.bind(this))}h.prototype.getDialog=function(){"use strict";return this.$ReminderStory2};h.prototype.getRoot=function(){"use strict";return this.$ReminderStory3};f.exports=h}),null);
__d("FBRHCTabsManager",["AsyncRequest","KeyedCallbackManager"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=new(c("KeyedCallbackManager"))(),i={},j={get:function k(l,m){var n=!h.executeOrEnqueue(l,m);if(n)return true;if(i[l])return false;new(c("AsyncRequest"))(l).send();i[l]=true;return false},set:function k(l,m){var n;h.addResourcesAndExecute((n={},n[l]=m,n))}};f.exports=j}),null);
__d("FBRHCTabs",["cx","CSS","Event","FBRHCTabsManager","Focus","RTLKeys","Style","tidyEvent"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();function i(j,k,l,m,n){__p&&__p();this.$FBRHCTabs7=function(o){var p=o.getAttribute("data-key");if(p){c("tidyEvent")(c("Event").listen(o,"click",this.$FBRHCTabs8.bind(this,p)));c("tidyEvent")(c("Event").listen(o,"keydown",this.$FBRHCTabs9.bind(this,p)))}}.bind(this);this.$FBRHCTabs1=k;this.$FBRHCTabs3=l;this.$FBRHCTabs4=m;this.$FBRHCTabs5=j.reduce(function(j,o){j[o.key]=o.href;return j},{});this.$FBRHCTabs6=Array.from(this.$FBRHCTabs1.children).map(function(o){return o.children[0]});this.$FBRHCTabs2=j[0].key;c("FBRHCTabsManager").set(this.$FBRHCTabs5[this.$FBRHCTabs2],n);this.$FBRHCTabs6.forEach(this.$FBRHCTabs7)}i.prototype.$FBRHCTabs10=function(j){__p&&__p();this.$FBRHCTabs6.forEach(function(k){__p&&__p();if(k.getAttribute("data-key")===j){c("CSS").addClass(k,"_4dfg");c("Style").set(this.$FBRHCTabs3,"left",k.offsetLeft+"px");k.setAttribute("aria-selected","true");k.setAttribute("tabindex","0")}else{c("CSS").removeClass(k,"_4dfg");k.setAttribute("aria-selected","false");k.setAttribute("tabindex","-1")}}.bind(this))};i.prototype.$FBRHCTabs9=function(j,event){__p&&__p();var k=c("Event").getKeyCode(event),l=this.$FBRHCTabs6.findIndex(function(o){return o.getAttribute("data-key")===j});switch(k){case c("RTLKeys").SPACE:case c("RTLKeys").RETURN:this.$FBRHCTabs6[l].click();c("Event").prevent(event);break;case c("RTLKeys").getLeft():case c("RTLKeys").UP:var m=l>0?l-1:this.$FBRHCTabs6.length-1;c("Focus").set(this.$FBRHCTabs6[m]);break;case c("RTLKeys").getRight():case c("RTLKeys").DOWN:var n=l<this.$FBRHCTabs6.length-1?l+1:0;c("Focus").set(this.$FBRHCTabs6[n]);break}};i.prototype.$FBRHCTabs8=function(j){__p&&__p();this.$FBRHCTabs10(j);c("FBRHCTabsManager").get(this.$FBRHCTabs5[this.$FBRHCTabs2],function(k){__p&&__p();var l=k.offsetHeight;c("CSS").hide(k);var m=c("FBRHCTabsManager").get(this.$FBRHCTabs5[j],function(k){c("CSS").hide(this.$FBRHCTabs4);c("CSS").show(k)}.bind(this));if(!m){c("Style").set(this.$FBRHCTabs4,"height",l+"px");c("CSS").show(this.$FBRHCTabs4)}this.$FBRHCTabs2=j}.bind(this))};f.exports=i}),null);
__d("Slideshow",["csx","cx","ArbiterMixin","CSS","DOM","Event","Parent","getActiveElement","mixin","shield"],(function a(b,c,d,e,f,g,h,i){__p&&__p();var j,k;j=babelHelpers.inherits(l,c("mixin")(c("ArbiterMixin")));k=j&&j.prototype;function l(m,n){"use strict";__p&&__p();k.constructor.call(this);this._setCurrent=function(o){__p&&__p();var p=this._items[this._currentIndex];p&&c("CSS").removeClass(p,"_2xn");c("CSS").addClass(this._items[o],"_2xn");c("CSS").removeClass(this._root,"_2xm");var q=p&&c("DOM").scry(p,"a").some(function(s){return s==c("getActiveElement")()});if(q){var r=c("DOM").scry(this._items[o],"a");if(r[0])r[0].focus()}this._currentIndex=o;this._animating=false;this.inform("page_end",o)}.bind(this);this.informAndResetAutoPlay=function(){this.resetAutoplay();if(this._config.autoplay)this.inform("reset_autoplay")}.bind(this);this.informAndStopAutoplay=function(){this.stopAutoplay();this.inform("stop_autoplay")}.bind(this);this._root=m;this._config=n;this._currentIndex=0;this._animating=false;this._autoplayTimer=null;this._autoplayTimeout=n.autoplayTimeout;this._init()}l.prototype.getNode=function(){"use strict";return this._root};l.prototype.getIndex=function(){"use strict";return this._currentIndex};l.prototype.getNumItems=function(){"use strict";return this._items.length};l.prototype.getNextArrow=function(){"use strict";if(this._config.arrows)return c("DOM").find(this._root,"a._2xw");return null};l.prototype.getPrevArrow=function(){"use strict";if(this._config.arrows)return c("DOM").find(this._root,"a._2xx");return null};l.prototype.page=function(m){"use strict";__p&&__p();if(typeof m===undefined)m="next";if(m==="next"){if(this._config.wrap||this.getIndex()<this.getNumItems()-1)this._animateTo((this.getIndex()+1)%this.getNumItems(),this.getIndex())}else if(m==="prev"){if(this._config.wrap||this.getIndex()>0){var n=(this.getNumItems()+this.getIndex()-1)%this.getNumItems();this._animateTo(n,this.getIndex())}}};l.prototype.pageTo=function(m){"use strict";this._animateTo(m,this.getIndex(),c("shield")(this._setCurrent,this,m))};l.prototype.insert=function(m,n){"use strict";if(m>this._currentIndex)c("DOM").insertAfter(this._items[m-1],n);else{c("DOM").insertBefore(this._items[m],n);this._currentIndex++}this._items.splice(m,0,n);this._updateArrowState();this.inform("items_updated")};l.prototype.push=function(m){"use strict";this.insert(this._items.length,m)};l.prototype.remove=function(m){"use strict";__p&&__p();if(m<0||m>=this._items.length)return;c("DOM").remove(this._items[m]);this._items=c("DOM").scry(this._container,"li._2xr");if(m===this._currentIndex&&this._items.length){var n=m%this._items.length;this._conditionFade(this._items[n],true,null);this._setCurrent(n)}this.inform("items_updated")};l.prototype._init=function(){"use strict";__p&&__p();this._container=c("DOM").find(this._root,"ul._2xq");this._items=c("DOM").scry(this._container,"li._2xr");if(this._config.arrows){c("Event").listen(this._root,"click",this._clickListener.bind(this));this._arrowNext=c("DOM").find(this._root,"a._2xw");this._arrowPrev=c("DOM").find(this._root,"a._2xx")}if(this._config.autoplay){if(this._config.autoplaycontrol){c("Event").listen(this._root,"mouseenter",this.informAndStopAutoplay);c("Event").listen(this._root,"mouseleave",this.informAndResetAutoPlay)}this.resetAutoplay()}this.subscribe(["page_start","page_end"],function(m,n){c("CSS").conditionClass(this._root,"_2xm",m==="page_start")}.bind(this))};l.prototype._clickListener=function(event){"use strict";__p&&__p();var m=event.getTarget(),n=c("Parent").byTag(m,"a");if(n&&!c("CSS").matchesSelector(n,"._2xo"))if(c("CSS").matchesSelector(n,"._2xw")){this.page("next");event.preventDefault()}else if(c("CSS").matchesSelector(n,"._2xx")){this.page("prev");event.preventDefault()}};l.prototype._updateArrowState=function(){"use strict";if(!this._config.arrows)return;c("CSS").conditionClass(this._arrowNext,"_2xo",this._items.length===1);c("CSS").conditionClass(this._arrowPrev,"_2xo",this._items.length===1)};l.prototype._animateTo=function(m){var n=arguments.length<=1||arguments[1]===undefined?null:arguments[1];"use strict"};l.prototype.startAutoplay=function(m){"use strict";this._config.autoplay=true;this._autoplayTimeout=m;this.resetAutoplay()};l.prototype.resetAutoplay=function(){"use strict";if(this._config.autoplay){clearTimeout(this._autoplayTimer);this._autoplayTimer=setTimeout(this._autoplay.bind(this),this._autoplayTimeout)}};l.prototype.stopAutoplay=function(){"use strict";clearTimeout(this._autoplayTimer);this._autoplayTimer=null};l.prototype._autoplay=function(){"use strict";this.resetAutoplay();if(this._items.length>1)this.page()};l.prototype.setAutoplayTimeout=function(m){"use strict";this._autoplayTimeout=m};f.exports=l}),null);
__d("VideoCTAEndscreen",["cx","Arbiter","AttachmentRelatedShareConstants","CSS","Event","Focus","SubscriptionsHandler","VideoCTALoggingConfig","VideoPlayerReason","VideoPlayerLoggerEvent","logVideosClickTracking"],(function a(b,c,d,e,f,g,h){__p&&__p();function i(j,k){"use strict";__p&&__p();this.$VideoCTAEndscreen1=j;this.$VideoCTAEndscreen2=k.endscreenElement;this.$VideoCTAEndscreen3=k.replayElement;this.$VideoCTAEndscreen4=k.ctaElement;this.$VideoCTAEndscreen5=k.isPausescreen;this.$VideoCTAEndscreen6=new(c("SubscriptionsHandler"))();this.$VideoCTAEndscreen6.addSubscriptions(c("Event").listen(this.$VideoCTAEndscreen3,"click",function(){return this.$VideoCTAEndscreen7()}.bind(this)),j.addListener("beginPlayback",function(){return this.$VideoCTAEndscreen8()}.bind(this)),j.addListener("VideoChannelController/exitChannel",function(){if(j.isState("finished"))this.$VideoCTAEndscreen9()}.bind(this)));if(this.$VideoCTAEndscreen4)this.$VideoCTAEndscreen6.addSubscriptions(c("Event").listen(this.$VideoCTAEndscreen4,"click",function(){return this.$VideoCTAEndscreen10()}.bind(this)));if(this.$VideoCTAEndscreen5)this.$VideoCTAEndscreen6.addSubscriptions(j.addListener("pausePlayback",function(){return this.$VideoCTAEndscreen11()}.bind(this)));else this.$VideoCTAEndscreen6.addSubscriptions(j.addListener("finishPlayback",function(){return this.$VideoCTAEndscreen9()}.bind(this)))}i.prototype.$VideoCTAEndscreen7=function(){"use strict";__p&&__p();var j={reason:c("VideoPlayerReason").USER};this.$VideoCTAEndscreen1.clickVideo();if(this.$VideoCTAEndscreen1.isState("paused")){if(c("VideoCTALoggingConfig").shouldLogUnpausedEvent)this.$VideoCTAEndscreen1.logEvent(c("VideoPlayerLoggerEvent").UNPAUSED,j)}else if(this.$VideoCTAEndscreen1.isState("finished"))this.$VideoCTAEndscreen1.logEvent(c("VideoPlayerLoggerEvent").REPLAYED,j);var k=this.$VideoCTAEndscreen1.getVideoNode();c("logVideosClickTracking")(k);c("Focus").set(k)};i.prototype.$VideoCTAEndscreen10=function(){"use strict";c("Arbiter").inform(c("AttachmentRelatedShareConstants").FBVIDEO_CLICK,{attachment:this.$VideoCTAEndscreen1.getRootNode(),fbvideo_id:this.$VideoCTAEndscreen1.getVideoID()})};i.prototype.$VideoCTAEndscreen9=function(){"use strict";if(!this.$VideoCTAEndscreen1.getIsInChannel())this.$VideoCTAEndscreen11()};i.prototype.$VideoCTAEndscreen11=function(){"use strict";c("CSS").addClass(this.$VideoCTAEndscreen2,"_1qbf")};i.prototype.$VideoCTAEndscreen8=function(){"use strict";c("CSS").removeClass(this.$VideoCTAEndscreen2,"_1qbf")};f.exports=i}),null);