;/*FB_PKG_DELIM*/ __d("SearchResultPageLoggingInlineActionFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("1744351");b=d("FalcoLoggerInternal").create("search_result_page_logging_inline_action",a);e=b;g["default"]=e}),98); __d("SearchResultPageLoggingItemClickedFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("1744352");b=d("FalcoLoggerInternal").create("search_result_page_logging_item_clicked",a);e=b;g["default"]=e}),98); __d("SearchCometResultsLoggerUtil",["SearchResultPageLoggingInlineActionFalcoEvent","SearchResultPageLoggingItemClickedFalcoEvent","gkx"],(function(a,b,c,d,e,f,g){"use strict";a=function(a,b,d){c("SearchResultPageLoggingItemClickedFalcoEvent").logImmediately(function(){return{click_type:"graph_search_results_module_tapped",common:{logging_unit_id:a,module_role:d,session_id:b,timestamp:Date.now().toString()}}})};b=function(a,b,d){c("SearchResultPageLoggingInlineActionFalcoEvent").logImmediately(function(){return{common:{logging_unit_id:a,session_id:b,timestamp:Date.now().toString()},inline_action_name:d}})};d=function(a,b,d,e){c("SearchResultPageLoggingItemClickedFalcoEvent").logImmediately(function(){return{click_type:"graph_search_results_item_in_module_tapped",common:{logging_unit_id:a,module_role:e,session_id:b,timestamp:Date.now().toString()},unit_id_result_id:d}})};e=function(a,b,d){c("SearchResultPageLoggingInlineActionFalcoEvent").logImmediately(function(){return{common:{logging_unit_id:a,session_id:b,timestamp:Date.now().toString()},inline_action_name:d}})};f=function(a,b){c("SearchResultPageLoggingItemClickedFalcoEvent").logImmediately(function(){return{click_type:"graph_search_results_see_more_on_module_tapped",common:{logging_unit_id:a,session_id:b,timestamp:Date.now().toString()}}})};g.logModuleClick=a;g.logModuleInlineAction=b;g.logResultClick=d;g.logResultInlineAction=e;g.logSeeMoreClick=f}),98); __d("BrowseClientEventLogger",["csx","DOMQuery","SearchCometResultsLoggerUtil","ge","ifRequired"],(function(a,b,c,d,e,f,g,h){"use strict";var i="21.",j;function k(a,b,c,e){e===void 0&&(e={});if(!a||!b)return;e.event=a;e.client_time=Math.floor(Date.now());e.client_time_2=Date.now()/1e3;e.session_id=b;e.vertical=c;j=j||[];if(j.indexOf(b)!==-1)return;if(e.event==="click")switch(e.click_type){case"see_more":d("SearchCometResultsLoggerUtil").logSeeMoreClick(e.unit_id,e.session_id);break;case"result":d("SearchCometResultsLoggerUtil").logResultClick(e.unit_id,e.session_id,e.unit_id_result_id);break}return}function a(a){a.gt.event="click",l(a,!0),c("ifRequired")("FacebarTypeaheadRefreshNullstate",function(a){a.setIsNullstateStale(!0)})}function b(a){a.event="client_view",l(a)}function l(a,b){b===void 0&&(b=!1);var c=null;b&&(c=a,a=a.gt);if(!a||!a.xt||a.xt.indexOf(i)!==0)return;var d=JSON.parse(a.xt.substring(3));b&&(d.click_type=a.click_type,d.tn=a.tn,d.clicked_href=a.clicked_href,c&&c.bt&&c.bt.ct&&(c.bt.ct==="feedback"&&(d.feedback_score=c.bt.feedback_score,d.feedback_type=c.bt.feedback_type)));b=a.event;c=m(d.unit_id);d.position=c;if(d.display_style==="context_hscroll"&&(b==="client_view"||b==="vpvd"||b==="visible"||b==="hidden"))return;if(b==="vpvd"){if(!a.ft)return;d.vpvd_time=a.ft.vpvd_time_delta}k(b,d.session_id,d.vertical,d)}function m(a){if(a==null||a===void 0)return null;var b=0,e=c("ge")("browse_result_area");if(e==null||e===void 0)return null;e=d("DOMQuery").scry(e,"._401d");for(var f=0;f0?Math.max(0,a.y+a.height):0}return 0}catch(a){return 0}}function j(){try{var a=document.getElementById("bluebarRoot");if(a==null)return 0;a=a.firstChild;if(a==null)return 0;a=c("getElementPosition")(a);return Math.max(0,a.y+a.height)}catch(a){return 0}}function a(a){h=a}function b(){var a=j(),b=i();return Math.max(a,b)}g.setActionBar=a;g.getTopMargin=b}),98); __d("FBImpressionValidationUtils",["DataAttributeUtils"],(function(a,b,c,d,e,f){"use strict";a={getFBFeedLocation:function(a){try{a=JSON.parse(b("DataAttributeUtils").getDataFt(a));return a?a.fbfeed_location:null}catch(a){return null}}};e.exports=a}),null); __d("FeedAdXoutEventTracker",[],(function(a,b,c,d,e,f){"use strict";var g=new Set();function a(a){g.add(a)}function b(a){g["delete"](a)}function c(a){return g.has(a)}f.markHidden=a;f.undoHidden=b;f.checkIfHidden=c}),66); __d("MsiteFullViewFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("1962677");b=d("FalcoLoggerInternal").create("msite_full_view",a);e=b;g["default"]=e}),98); __d("FullViewLogger",["Banzai","MsiteFullViewFalcoEvent","ScriptPath","SubscriptionsHandler","URI","uuidv4"],(function(a,b,c,d,e,f,g){var h;a=function(){function a(){}a.logFromViewableImpressionTracker=function(b){var c=new a();c.subscribeToTrackerEvents(b)};var b=a.prototype;b.subscribeToTrackerEvents=function(a){this.$1=new(c("SubscriptionsHandler"))(),this.$1.addSubscriptions(a.addListener("full_view",this.onFullView.bind(this)))};b.onFullView=function(a){this.$2()&&this.$3(a);var b=c("uuidv4")(),d={token:a.token,fullViewType:a.fullViewType,scriptPath:c("ScriptPath").getTopViewEndpoint(),eventTraceID:b};c("Banzai").post("xtrackable:full_view",d);c("MsiteFullViewFalcoEvent").log(function(){return d});this.$2()&&this.$4(d)};b.$2=function(){return 0};b.$3=function(a){};b.$4=function(a){};return a}();g["default"]=a}),98); __d("GHLBox",["FBLogger","GhlTennisKnobsConfig","Promise","WebStorage","gkx","requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=c("requireDeferred")("json-bigint").__setRef("GHLBox"),k=atob("YXJlc19sYXN0X3NpZ25hbF9mbHVzaA=="),l=atob("YmR6X3BsYXliYWNrX3N0YXRl"),m=36,n=c("gkx")("20995"),o=c("GhlTennisKnobsConfig").ghlbox_log_validity_in_mins*60*1e3,p=c("GhlTennisKnobsConfig").ghlbox_initialize_in_mins*60*1e3;a=3;d=function(){return new(i||(i=b("Promise")))(function(a){j.onReady(function(b){var c=q(b,!0);b=q(b);if(c===0&&b===0)return a(!1);if(c!==b){r(Date.now());return a(!0)}return Date.now()-b<=o?a(!0):a(!1)})})};var q=function(a,b){b===void 0&&(b=!1);var d=(h||(h=c("WebStorage"))).getLocalStorageForRead();if(!d||!n)return 0;var e;if(!b){b=(b=d.getItem(k))!=null?b:"";e=Number.parseInt(b,10)}else{b=(d=(a=a.parse(d.getItem(l)))==null?void 0:a.session_key)!=null?d:"";e=Number.parseInt(b,m)}return!Number.isFinite(e)?0:e};e=function(){var a=(h||(h=c("WebStorage"))).getLocalStorage();if(!a||!n)return;if(a.getItem(k)!==null)return;if(a.getItem(l)!==null)return;r(Date.now()-p)};var r=function(a){j.onReady(function(b){var d=(h||(h=c("WebStorage"))).getLocalStorage();if(d&&n){var e=a.toString();try{d.setItem(k,e)}catch(a){c("FBLogger")("GHLBox").warn("Exception while writing to local storage exception: %s, tss: %s, tss.length: (%d)",a,e,e.length)}e={session_key:a.toString(m),buffer_length:60};d.setItem(l,b.stringify(e))}})};f=r;d=d;e=e;g.MinimumHiddenAdsToUpdateLocalStorage=a;g.s=f;g.r=d;g.i=e}),98); __d("GHLDelay",["AdImpressionLoggingConfig"],(function(a,b,c,d,e,f){var g=null;a={getEnabled:function(){return g===null?b("AdImpressionLoggingConfig").enableDelayedHiddenCheck:g},setEnabled:function(a){g=a}};e.exports=a}),null); __d("GHLTestElement",["csx","invariant","ODS","Parent","URI","containsNode","getElementPosition","gkx"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j;a=function(a,c){var d=Array.from(a.querySelectorAll("img"));if(b("gkx")("20996")){var e=(i||(i=b("URI"))).getRequestURI();e=e!=null?e.getPath():"";var f="images"+c,g="length_"+String(d.length);n(f+"."+g);n(f+".path_"+e+"."+g)}d.length>0||h(0,13937);f=d.filter(k);if(f.length===0){b("gkx")("20996")&&k(a)&&n("images_removed_but_element_exists");n("skipping_check_for_incompatible_element"+c);return!1}e=f.filter(function(a){a=b("getElementPosition")(a);return a.width>0||a.height>0});g=e.length===0;return g&&!l(a)};var k=function(a){var c;return b("containsNode")(a==null?void 0:(c=a.ownerDocument)==null?void 0:c.documentElement,a)},l=function(a){return!!b("Parent").bySelector(a,m)},m=[".hidden_elem","._5ds2","._i6m"].join(","),n=function(a){return(j||(j=b("ODS"))).bumpEntityKey(2966,"feed_ads","GHLTestElement.testElementI."+a)};e.exports={testElementI:a}}),null); __d("LitestandMessages",[],(function(a,b,c,d,e,f){a=Object.freeze({NEWSFEED_LOAD:"LitestandMessages/NewsFeedLoad",LEAVE_HOME:"LitestandMessages/LeaveHome",STORIES_REQUESTED:"LitestandMessages/StoriesRequested",STORIES_INSERTED:"LitestandMessages/StoriesInserted",NEWER_STORIES_REQUESTED:"LitestandMessages/NewerStoriesRequested",NEWER_STORIES_INSERTED:"LitestandMessages/NewerStoriesInserted",NEW_STORIES_CONTAINER_CREATED:"LitestandMessages/NewStoriesContainer",RHC_RELOADED:"LitestandMessages/RHCReloaded",STREAM_LOAD_ERROR:"LitestandMessages/StreamLoadError",DUPLICATE_CURSOR_ERROR:"LitestandMessages/DuplicateCursorError",STREAM_LOAD_RETRY:"LitestandMessages/StreamLoadRetry"});f["default"]=a}),66); __d("MsiteViewabilityFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("1958033");b=d("FalcoLoggerInternal").create("msite_viewability",a);e=b;g["default"]=e}),98); __d("MsiteViewableImpressionFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("1953926");b=d("FalcoLoggerInternal").create("msite_viewable_impression",a);e=b;g["default"]=e}),98); __d("NonBlockingIFrame",["Promise","TimeSlice","cr:6114"],(function(a,b,c,d,e,f){var g,h={},i,j;function k(a,c){a===void 0&&(a=h);c===void 0&&(c=document.body);var d={className:"nonBlockingIframe",width:0,height:0,frameborder:0,scrolling:"no","aria-hidden":"true"};a!==h&&(d.src=a);d=b("cr:6114").create("iframe",d);d.style.left="-1000px";d.style.position="absolute";b("cr:6114").appendContent(c,d);a===h&&(d.contentDocument.open(),d.contentDocument.close());return d}function l(){return new(g||(g=b("Promise")))(function(a){i||(i=k()),i.contentDocument.readyState==="complete"?a(i):(j||(j=new(g||(g=b("Promise")))(function(a){i.contentWindow.onload=b("TimeSlice").guard(function(){a(i)},"NonBlockingIFrame window.onload")})),a(j))})}a={loadImage:function(a){return l().then(function(c){return new(g||(g=b("Promise")))(function(d,e){var f=c.contentWindow.Image,g=new f();g.onload=b("TimeSlice").guard(function(){d(g)},"NonBlockingIFrame image.onload");g.onerror=b("TimeSlice").guard(function(){e(g)},"NonBlockingIFrame image.onerror");g.onabort=b("TimeSlice").guard(function(){e(g)},"NonBlockingIFrame image.onabort");g.src=a})})},loadIFrame:function(a){a===void 0&&(a=h);return l().then(function(b){b=b.contentDocument.body;return k(a,b)})}};e.exports=a}),null); __d("PercentVisible",[],(function(a,b,c,d,e,f){a=-1;b=0;c=50;d=100;f.NO_VISIBLE=a;f.VISIBLE_0_PCT=b;f.VISIBLE_50_PCT=c;f.VISIBLE_100_PCT=d}),66); __d("PluginTabLoadMore",["CSS","Event"],(function(a,b,c,d,e,f,g){"use strict";function a(){c("Event").fire(this.root,"noMoreContent"),d("CSS").hide(this.spinner)}function b(a){c("Event").fire(this.root,"setCursor",a)}function e(a,b){this.root=a,this.spinner=b}g.noMoreContent=a;g.setCursor=b;g.init=e}),98); __d("ViewabilityDurationSegmentLogger",["Banzai","MsiteViewabilityFalcoEvent","PercentVisible","uuidv4"],(function(a,b,c,d,e,f,g){"use strict";var h=8e3;a=function(){a.logFromViewableImpressionTracker=function(b){var c=new a();c.subscribeToTrackerEvents(b)};function a(){this.$1=new Map(),this.$2=new Map(),this.$3=new Map(),this.$4=new Map(),this.$5=new Map()}var b=a.prototype;b.subscribeToTrackerEvents=function(a){a.addListener("viewability",this.onViewable.bind(this)),a.addListener("viewport_viewability",this.onViewport.bind(this)),a.addListener("hidden",this.onHidden.bind(this))};b.onViewable=function(a){var b=a.id,c=a.percentVisible,e=Date.now(),f;switch(c){case d("PercentVisible").VISIBLE_0_PCT:c=this.$1.get(b);!c?this.$6(a,d("PercentVisible").VISIBLE_0_PCT,e,"feed_unit"):this.$7(c,b,e);c=this.$2.get(b);c&&(f=this.$8(c,b,e,!0),this.$9(f,b));c=this.$4.get(b);c&&(f=this.$8(c,b,e,!0),this.$9(f,b));break;case d("PercentVisible").VISIBLE_50_PCT:c=this.$1.get(b);!c?this.$6(a,d("PercentVisible").VISIBLE_0_PCT,e,"feed_unit"):this.$7(c,b,e);c=this.$2.get(b);!c?this.$6(a,d("PercentVisible").VISIBLE_50_PCT,e,"feed_unit"):this.$7(c,b,e);c=this.$4.get(b);c&&(f=this.$8(c,b,e,!0),this.$9(f,b));break;case d("PercentVisible").VISIBLE_100_PCT:c=this.$1.get(b);!c?this.$6(a,d("PercentVisible").VISIBLE_0_PCT,e,"feed_unit"):this.$7(c,b,e);c=this.$2.get(b);!c?this.$6(a,d("PercentVisible").VISIBLE_50_PCT,e,"feed_unit"):this.$7(c,b,e);c=this.$4.get(b);!c?this.$6(a,d("PercentVisible").VISIBLE_100_PCT,e,"feed_unit"):this.$7(c,b,e);break}};b.onViewport=function(a){var b=a.id,c=a.percentVisible,e=Date.now(),f;switch(c){case d("PercentVisible").VISIBLE_0_PCT:c=this.$3.get(b);c&&(f=this.$8(c,b,e,!0),this.$9(f,b));c=this.$5.get(b);c&&(f=this.$8(c,b,e,!0),this.$9(f,b));break;case d("PercentVisible").VISIBLE_50_PCT:c=this.$3.get(b);!c?this.$6(a,d("PercentVisible").VISIBLE_50_PCT,e,"viewport"):this.$7(c,b,e);c=this.$5.get(b);c&&(f=this.$8(c,b,e,!0),this.$9(f,b));break;case d("PercentVisible").VISIBLE_100_PCT:c=this.$3.get(b);!c?this.$6(a,d("PercentVisible").VISIBLE_50_PCT,e,"viewport"):this.$7(c,b,e);c=this.$5.get(b);!c?this.$6(a,d("PercentVisible").VISIBLE_100_PCT,e,"viewport"):this.$7(c,b,e);break}};b.onHidden=function(a){a=a.id;var b=Date.now(),c=this.$1.get(a),d=this.$2.get(a),e=this.$3.get(a),f=this.$4.get(a),g=this.$5.get(a);c&&this.$9(this.$8(c,a,b,!0),a);d&&this.$9(this.$8(d,a,b,!0),a);e&&this.$9(this.$8(e,a,b,!0),a);f&&this.$9(this.$8(f,a,b,!0),a);g&&this.$9(this.$8(g,a,b,!0),a)};b.$6=function(a,b,c,e){c={token:a.token,startedTrackingTS:c,percentVisible:b,visibilityUnit:e,intervalMs:0,cumulativeMs:0,segmentIdx:0,eventTraceID:""};switch(b){case d("PercentVisible").VISIBLE_0_PCT:this.$1.set(a.id,c);break;case d("PercentVisible").VISIBLE_50_PCT:e==="feed_unit"?this.$2.set(a.id,c):this.$3.set(a.id,c);break;case d("PercentVisible").VISIBLE_100_PCT:e==="feed_unit"?this.$4.set(a.id,c):this.$5.set(a.id,c);break}};b.$8=function(a,b,c,e){c=c-a.startedTrackingTS;var f=c-a.cumulativeMs,g=a.percentVisible;f={token:a.token,startedTrackingTS:a.startedTrackingTS,percentVisible:g,visibilityUnit:a.visibilityUnit,intervalMs:f,cumulativeMs:c,segmentIdx:++a.segmentIdx,eventTraceID:""};e&&(f.duration=c);switch(g){case d("PercentVisible").VISIBLE_0_PCT:this.$1.set(b,f);break;case d("PercentVisible").VISIBLE_50_PCT:a.visibilityUnit==="feed_unit"?this.$2.set(b,f):this.$3.set(b,f);break;case d("PercentVisible").VISIBLE_100_PCT:a.visibilityUnit==="feed_unit"?this.$4.set(b,f):this.$5.set(b,f);break}return f};b.$7=function(a,b,d){var e=this,f=a.intervalMs,g=d-a.startedTrackingTS-a.cumulativeMs;if(this.$10(f,g)){var h=this.$8(a,b,d,!1);f=c("uuidv4")();h.eventTraceID=f;c("Banzai").post("xtrackable:viewability",h,c("Banzai").VITAL);c("MsiteViewabilityFalcoEvent").logImmediately(function(){return e.$11(h)})}};b.$10=function(a,b){if(a>=h)return!1;if(a==0)return!0;if(a<1e3)return b>=1e3;a=a/1e3;b=b/1e3;return b>=2*a};b.$9=function(a,b){var e=this,f=a.percentVisible;switch(f){case d("PercentVisible").VISIBLE_0_PCT:this.$1["delete"](b);break;case d("PercentVisible").VISIBLE_50_PCT:a.visibilityUnit==="feed_unit"?this.$2["delete"](b):this.$3["delete"](b);break;case d("PercentVisible").VISIBLE_100_PCT:a.visibilityUnit==="feed_unit"?this.$4["delete"](b):this.$5["delete"](b);break}f=c("uuidv4")();a.eventTraceID=f;c("Banzai").post("xtrackable:viewability",a,c("Banzai").VITAL);c("MsiteViewabilityFalcoEvent").logImmediately(function(){return e.$11(a)})};b.$11=function(a){return{token:a.token,startedTrackingTS:a.startedTrackingTS.toString(),segmentIdx:a.segmentIdx.toString(),percentVisible:a.percentVisible.toString(),visibilityUnit:a.visibilityUnit,intervalMs:a.intervalMs.toString(),cumulativeMs:a.cumulativeMs.toString(),eventTraceID:a.eventTraceID,duration:(a=a.duration)==null?void 0:a.toString()}};return a}();g["default"]=a}),98); __d("ViewabilityFramework",[],(function(a,b,c,d,e,f){a=Object.freeze({VIEWABLE_TRACKER_BLUE:"current_blue",VIEWABLE_TRACKER_BLUE_RHC:"current_blue_rhc",VIEWABLE_TRACKER_BLUE_EXIT:"current_blue_exit",VIEWABLE_TRACKER_BLUE_AFTER_DEDUP:"current_blue_after_dedup",IMPRESSION_API_COMET_ENTER:"impression_api_comet_enter",IMPRESSION_API_COMET_EXIT:"impression_api_comet_exit",IMPRESSION_API_COMET_AFTER_DEDUP:"impression_api_comet_after_dedup",IMPRESSION_API_COMET_AFTER_DEDUP_ORIGINAL:"impression_api_comet_after_dedup_original",INTERSECTION_OBSERVER_BLUE:"intersection_observer_blue",INTERSECTION_OBSERVER_BLUE_RHC:"intersection_observer_blue_rhc",INTERSECTION_OBSERVER_BLUE_EXIT:"intersection_observer_blue_exit",INTERSECTION_OBSERVER_BLUE_AFTER_DEDUP:"intersection_observer_blue_after_dedup",SCROLL_BASED_BLUE:"scroll_based_blue",SCROLL_BASED_BLUE_RHC:"scroll_based_blue_rhc",SCROLL_COMET:"scroll_comet",SCROLL_COMET_AFTER_DEDUP:"scroll_comet_after_dedup",SCROLL_COMET_EXIT:"scroll_comet_exit",AD_UNIT_GENERIC_API_COMET:"ad_unit_generic_api_comet",AD_UNIT_GENERIC_API_COMET_EXIT:"ad_unit_generic_api_comet_exit",AD_UNIT_GENERIC_API_COMET_AFTER_DEDUP:"ad_unit_generic_api_comet_after_dedup",AD_UNIT_SCROLL_COMET:"ad_unit_scroll_comet",AD_UNIT_SCROLL_COMET_EXIT:"ad_unit_scroll_comet_exit",AD_UNIT_SCROLL_COMET_AFTER_DEDUP:"ad_unit_scroll_comet_after_dedup",COMET_FULL_VIEW:"comet_full_view"});f["default"]=a}),66); __d("ViewableImpressionDurationLogger",["Banzai"],(function(a,b,c,d,e,f,g){"use strict";a=function(){a.logFromViewableImpressionTracker=function(b){var c=new a();c.subscribeToTrackerEvents(b)};function a(){this.$1=new Map()}var b=a.prototype;b.subscribeToTrackerEvents=function(a){a.addListener("visible",this.onElementVisible.bind(this)),a.addListener("hidden",this.onElementHidden.bind(this))};b.onElementVisible=function(a){if(this.$1.get(a.id))return null;var b={token:a.token,startedTrackingTS:this.getTimeNow()};this.$1.set(a.id,b);return b};b.onElementHidden=function(a){var b=this.$1.get(a.id);if(!b)return!1;b.trackingDuration=this.getTimeNow()-b.startedTrackingTS;return this.sendLog(a.id)};b.sendLog=function(a){var b=this.$1.get(a);if(!b||!b.trackingDuration)return!1;c("Banzai").post("xtrackable:duration",b);this.$1["delete"](a);return!0};b.getTimeNow=function(){return parseFloat((Date.now()/1e3).toFixed(2))};return a}();g["default"]=a}),98); __d("ViewableImpressionHeatmapLogger",["Banzai"],(function(a,b,c,d,e,f,g){a=function(){a.logFromViewableImpressionTracker=function(b,c){c=new a(c);c.subscribeToTrackerEvents(b)};function a(a){this.$1=a,this.$2=new Map()}var b=a.prototype;b.subscribeToTrackerEvents=function(a){a.addListener("visible",this.onElementVisible.bind(this)),a.addListener("hidden",this.onElementHidden.bind(this))};b.onElementVisible=function(a){var b=this.getCurrentTimestamp(),c=this.$2[a.id];c||(c=this.createTrackingEntry(a),this.beginTracking(a.id,c),b=c.startedTrackingTS);c.viewportProgressEvents.push({timestamp:b,percentInViewport:a.percentInViewport.toFixed(2)})};b.onElementHidden=function(a){var b=this.getCurrentTimestamp();a=this.$2[a.id];if(!a)return;a.viewportProgressEvents.push({timestamp:b,percentInViewport:0})};b.onTrackingCompleted=function(a){var b=this.$2.get(a);if(!b)return;b.viewportProgressEvents.push({timestamp:this.getCurrentTimestamp(),percentInViewport:b.tracker.getPercentInViewport().toFixed(2)});this.$3()&&this.$4(a,b);this.logToServer(b);this.$2["delete"](a)};b.logToServer=function(a){a=a;delete a.tracker;c("Banzai").post("xtrackable:heatmap",a)};b.beginTracking=function(a,b){var c=this;this.$2.set(a,b);setTimeout(function(){return c.onTrackingCompleted(a)},this.$1)};b.createTrackingEntry=function(a){return{tracker:a.tracker,token:a.token,startedTrackingTS:this.getCurrentTimestamp(),viewportProgressEvents:[]}};b.getCurrentTimestamp=function(){return(Date.now()/1e3).toFixed(2)};b.$3=function(){return 0};b.$4=function(a,b){var c="Completed tracking for id "+a+" token="+b.token+" startedTrackingTS="+b.startedTrackingTS+"\n";b.viewportProgressEvents.forEach(function(a){c+="% in view: "+a.percentInViewport+" timestamp="+a.timestamp+"\n"})};return a}();g["default"]=a}),98); __d("getCentralImpressionTimeAfterRefresh",[],(function(a,b,c,d,e,f){"use strict";var g=null;window.addEventListener("load",function(){g=Date.now()},{passive:!0});function a(){return g!=null?Date.now()-g:0}f["default"]=a}),66); __d("ghlTestUBT",["cr:1543261","cr:334"],(function(a,b,c,d,e,f,g){"use strict";b("cr:1543261")&&b("cr:1543261")(),g["default"]=b("cr:334")}),98); __d("isImpressionTargetOccluded",["containsNode","getViewportDimensions"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,d){d===void 0&&(d={bottom:0,left:0,right:0,top:0});try{if(!a||!b||!document.elementFromPoint)return!1;var e=c("getViewportDimensions")();if(e.height===0||e.width===0)return!1;var f=b.x,g=b.y,h=b.width;b=b.height;h=Math.min(f+h,e.width-1);b=Math.min(g+b,e.height-1);e=[{x:f,y:g},{x:f,y:b},{x:h,y:g},{x:h,y:b},{x:(f+h)/2,y:(g+b)/2}];d.top!==0&&d.top>g&&d.top0&&b.yd&&!g&&!h){var i=Math.max(b.x,0),j=Math.min(b.x+b.width,a.width);d=Math.max(b.y,d);a=Math.min(b.y+b.height,a.height);if(b.height*b.width===0)return{rects:f,percentage:100,invisibleReason:null};b=100*(j-i)*(a-d)/(b.height*b.width);var k=!1;if(b>0&&(e||this.config.should_not_log_on_occlusion)){k=c("isImpressionTargetOccluded")(this.element,{x:i,y:d,width:j-i,height:a-d});if(this.config.should_not_log_on_occlusion&&k)return{rects:f,percentage:0,invisibleReason:"IS_OCCLUDED"}}return{rects:f,percentage:b,invisibleReason:b>0?null:"NOT_IN_VIEWPORT",isOccluded:k}}return{rects:f,percentage:0,invisibleReason:g?"TARGET_HIDDEN":h?"TARGET_TRANSPARENT":"NOT_IN_VIEWPORT"}};e.$3=function(a,b,c){c===void 0&&(c=0);return this.$2(a,b,c).percentage};e.$4=function(a,c,d,e){d===void 0&&(d=0);e===void 0&&(e=!1);return this.config.require_horizontally_onscreen&&b("cr:4095").isHorizontallyOffscreen(this.element,c,a)?{rects:{target_rect:c},percentage:0,invisibleReason:"NOT_IN_VIEWPORT"}:this.$2(a,c,d,e)};e.$1=function(a,b,c){c===void 0&&(c=0);return this.$4(a,b,c).percentage};e.$5=function(a,b,c){a=this.$3(a,b,c);if(a===0)return d("PercentVisible").NO_VISIBLE;else if(a<50)return d("PercentVisible").VISIBLE_0_PCT;else if(a<100)return d("PercentVisible").VISIBLE_50_PCT;else return d("PercentVisible").VISIBLE_100_PCT};e.$6=function(a,b,c){c===void 0&&(c=0);var e=Math.max(b.y,c);b=Math.min(b.y+b.height,a.height);b=100*(b-e)/(a.height-c);if(b<50)return d("PercentVisible").VISIBLE_0_PCT;else if(b<100)return d("PercentVisible").VISIBLE_50_PCT;else return d("PercentVisible").VISIBLE_100_PCT};e.$7=function(a,b){var e=0,f=c("ge")("pagelet_bluebar");f&&f.offsetHeight&&(e=f.offsetHeight+f.offsetTop);if(this.config.should_log_viewport_duration){f=this.$6(a,b,e);switch(f){case d("PercentVisible").VISIBLE_0_PCT:case d("PercentVisible").VISIBLE_50_PCT:case d("PercentVisible").VISIBLE_100_PCT:this.emit("viewport_viewability",{tracker:this,id:this.getID(),token:this.getToken(),percentVisible:f});break;default:break}}f=this.$5(a,b,e);switch(f){case d("PercentVisible").VISIBLE_0_PCT:case d("PercentVisible").VISIBLE_50_PCT:case d("PercentVisible").VISIBLE_100_PCT:this.emit("viewability",{tracker:this,id:this.getID(),token:this.getToken(),percentVisible:f});break;default:this.emit("hidden",{id:this.getID(),token:this.getToken()});break}};e.$8=function(a,b){if(c("Style").get(this.element,"visibility")==="hidden"||c("Style").get(this.element,"opacity")==="0")return!1;var d=b.x,e=b.y,f=b.x+b.width;b=b.y+b.height;this.topLeftInViewport=this.topLeftInViewport||d>=0&&d<=a.width&&e>=0&&e<=a.height;this.bottomRightInViewport=this.bottomRightInViewport||f>=0&&f<=a.width&&b>=0&&b<=a.height;return this.topLeftInViewport&&this.bottomRightInViewport};e.$9=function(a,b){if(this.hasEmittedFullViewEvent)return;this.$8(a,b)&&(this.emit("full_view",{tracker:this,id:this.getID(),token:this.getToken(),fullViewType:1}),this.hasEmittedFullViewEvent=!0)};e.$10=function(a,d,e,f,g){g===void 0&&(g=!1);a=a>0;e=e;a&&c("Visibility").isHidden()&&(a=!1,e="PAGE_VISIBILITY_HIDDEN");a&&this.isHidden?(this.lastImpressedAt=Date.now(),this.lastEnterWithPercent=d,this.logViewabilityEventsForAudit(d,this.lastInvisibleReason,f,g),this.isHidden=!1,b("cr:1095627")&&b("cr:1095627").onItemEnterViewport(c("ViewabilityFramework").VIEWABLE_TRACKER_BLUE,this.element)):!a&&!this.isHidden&&(this.isHidden=!0,this.lastInvisibleReason=e,this.lastHiddenCause="none",b("cr:1095627")&&b("cr:1095627").onItemExitViewport(c("ViewabilityFramework").VIEWABLE_TRACKER_BLUE,this.element))};e.onVisible=function(a){var b=this;a=this.isVisible;var e=c("getViewportDimensions")(),f=c("getElementPosition")(this.element),g=this.config.count_blue_bar_height?d("FBFeedImpressionTopMarginGetter").getTopMargin():0;g=this.$4(e,f,g,this.config.detect_occlusion||!1);var h=g.percentage,i=g.invisibleReason,j=g.rects;g=g.isOccluded;var l=h>this.config.pixel_in_percentage;this.config.log_viewability_events_for_infra_validation&&this.$10(l,h,i,j,g);var m=[];i=[];(this.config.skip_imp_if_no_images||this.config.check_images_before_log)&&(m=Array.from(this.element.querySelectorAll("img")),i=Array.from(this.element.getElementsByClassName("_7cqq")),(k||(k=d("ODS"))).bumpEntityKey(2966,"feed_ads","ViewableImpressionTracker.delayLogImpression.isFeedLoadedCheck."+(m.length===0)+"."+(i.length===0)));if(this.config.skip_imp_if_no_images&&m.length===0){this.handleLogNonViewableOnInvisible(a);this.isVisible=!1;return}this.emit("visible",{tracker:this,id:this.getID(),token:this.getToken(),percentInViewport:h});this.config.should_log_viewability_duration&&this.$7(e,f);this.$9(e,f);if(!l){this.$11();this.handleLogNonViewableOnInvisible(a);this.isVisible=!1;return}this.isLogged()?this.$12():this.$13();j=this.config.fam_delivery_integrity_enable_user_hide_ads_check_and_is_feed?d("FeedAdXoutEventTracker").checkIfHidden(this.element):!1;this.isVisible=!(c("AdImpressionLoggingConfig").blockInvisible&&c("Visibility").isHidden())&&!j;g=this.isVisible&&!a;this.isVisible||this.handleLogNonViewableOnInvisible(a);if((this.config.client_no_dedup?g:this.isVisible)&&!this.waitForLogged&&!this.waitForDelayLogged&&!this.isLogged()){i=function(){b.waitForLogged=!1;if(c("AdImpressionLoggingConfig").blockInvisible&&c("Visibility").isHidden())return;var a=b.getPercentInViewport();a=a>b.config.pixel_in_percentage;if(!a){b.$14();return}b.config.check_images_before_log&&(m.length===0&&(k||(k=d("ODS"))).bumpEntityKey(2966,"feed_ads","ViewableImpressionTracker.log_without_load."+b.config.trackable_identifier));if(c("GHLDelay").getEnabled()&&b.config.can_delay_log_impression===!0){b.waitForDelayLogged=!0;a=c("AdImpressionLoggingConfig").maxHiddenCheckDelay;a=a-b.config.duration_in_ms;a<0&&(a=0);b.delayedLoggingTimeout=window.setTimeout(b.delayLogImpression,a)}else b.logImpression(1,!1,{}),b.$12()};this.waitForLogged=!0;this.viewableTimeout=window.setTimeout(i,this.config.duration_in_ms)}};e.handleLogNonViewableOnInvisible=function(a){this.config.log_initial_nonviewable&&!this.isLogged()&&!this.isNonViewableLogged?this.logNonViewableImpression():!this.config.log_initial_nonviewable&&!this.isLogged()&&a&&this.logNonViewableImpression()};e.onHidden=function(a){var d=this;this.lastHiddenCause=a;this.isHidden||(this.isHidden=!0,this.lastInvisibleReason="NOT_IN_VIEWPORT",b("cr:1095627")&&b("cr:1095627").onItemExitViewport(c("ViewabilityFramework").VIEWABLE_TRACKER_BLUE,this.element));this.emit("hidden",{id:this.getID(),token:this.getToken()});a=this.isVisible;this.handleLogNonViewableOnInvisible(a);this.isVisible=!1;this.waitForLogged&&(this.waitForLogged=!1,window.clearTimeout(this.viewableTimeout));this.config.client_no_dedup&&this.config.subsequent_gap_in_ms===0&&this.config.client_track_subsequent_impression?this.reset():this.isLogged()&&!this.waitForSubsequent&&this.config.subsequent_gap_in_ms>=0&&this.config.client_track_subsequent_impression&&(this.waitForSubsequent=!0,this.clearSubsequentTimeout=window.setTimeout(function(){d.waitForSubsequent=!1,d.reset(),d.isVisible&&d.onVisible()},this.config.subsequent_gap_in_ms));this.$14()};e.onRemoved=function(){this.isVisible=!1};e.getToken=function(){return c("DataAttributeUtils").getDataAttribute(this.element,"data-xt")};e.logViewabilityEventsForAudit=function(a,e,f,g){var h=this,i=this.getToken(),j=Math.floor(Date.now()/1e3),k=this.$15(),m=c("FBImpressionValidationUtils").getFBFeedLocation(this.element),n=b("ScriptPath").getTopViewEndpoint(),o=l?l():null,p=c("getCentralImpressionTimeAfterRefresh")(),q=d("WebSession").getId(),r=c("uuidv4")(),s=this.config.is_rhc?c("ViewabilityFramework").VIEWABLE_TRACKER_BLUE_RHC:c("ViewabilityFramework").VIEWABLE_TRACKER_BLUE;c("CometMetricsChannel2ViewabilityFalcoEvent").logImmediately(function(){return{framework:s,event_trace_id:r,xt:i,cts:String(j),csp:String(k),me:n,vp:String(a),fbfeed_location:String(m),scroll_speed:String(o),time_from_load:String(p),sk:q,pre_rs:e,sub_imp:h.isSubsequentImp,last_hidden_cause:h.lastHiddenCause,rects:f,behind_popout:g}});this.isSubsequentImp=!0};e.logImpression=function(a,e,f){if(this.isLogged())return;var g=this.getToken(),h=Math.floor(Date.now()/1e3),i=this.$15(),j=Date.now()+"_"+(c("randomInt")(0,4294967295)+1);g={xt:g,isv:a,cts:h,csp:i,hba:e,etid:j,sender:"ViewableImpressionTracker"};this.config.should_log_endpoint_info&&(g.me=b("ScriptPath").getTopViewEndpoint());if(this.config.should_batch||this.config.vital_mode_for_ss||this.config.signal_mode_for_ss){g.transmission_channel="banzai";a=this.config.vital_mode_for_ss?babelHelpers["extends"]({},c("Banzai").VITAL):{};a.signal=this.config.signal_mode_for_ss;g.event_trace_id=c("uuidv4")();this.logWithBanzai(g,a);this.logWithFalco(g)}else g.transmission_channel="iframe",this.logWithIFrame(Object.assign(g,f));if(c("gkx")("21109"))try{h=JSON.parse(c("DataAttributeUtils").getDataFt(this.element));i=h.page_id;e=h.top_level_post_id;j=h.fbfeed_location;i&&e&&b("cr:4394").onEventLogged("page_post_impression",e,j)}catch(a){(k||(k=d("ODS"))).bumpEntityKey(2966,"impression_logging_debug","viewable_session_validation_exception."+a.message)}};e.logNonViewableImpression=function(){if(this.config.nonviewableEnabled){var a=this.getToken();c("Banzai").post("xtrackable:nonviewable",{xt:a})}this.isNonViewableLogged=!0};e.isLogged=function(){return this.iframeLogged||this.banzaiLogged||this.falcoLogged};e.reset=function(){this.iframeLogged&&(this.iframeLogged=!1),this.iframe&&(b("cr:6114").remove(this.iframe),this.iframe=null),this.banzaiLogged&&(this.banzaiLogged=!1),this.falcoLogged&&(this.falcoLogged=!1),this.isNonViewableLogged=!1,this.isVisible=!1,this.waitForLogged=!1,this.waitForDelayLogged=!1,this.waitForSubsequent=!1};e.logWithFalco=function(a){var b=this;this.falcoLogged=!0;c("MsiteViewableImpressionFalcoEvent").logImmediately(function(){return a});this.config.log_viewability_events_for_infra_validation&&c("CometMetricsChannel2ViewabilityFalcoEvent").logImmediately(function(){return{framework:c("ViewabilityFramework").VIEWABLE_TRACKER_BLUE_AFTER_DEDUP,xt:String(a.xt),isv:String(a.isv),cts:String(a.cts),csp:String(a.csp),hba:a.hba,etid:String(a.etid),sender:a.sender,event_count:String(a.eventCount),transmission_channel:a.transmission_channel,event_trace_id:a.event_trace_id,me:a.me,fbfeed_location:String(c("FBImpressionValidationUtils").getFBFeedLocation(b.element)),scroll_speed:l?String(l()):null,time_from_load:String(c("getCentralImpressionTimeAfterRefresh")()),sk:d("WebSession").getId()}})};e.logWithBanzai=function(a,d){this.banzaiLogged=!0,b("cr:7058").maybeLogClientViewEvent(a),c("Banzai").post("xtrackable:clientview_batch",a,d)};e.logWithIFrame=function(a){this.iframeLogged=!0,this.config.is_instream_story?c("NonBlockingIFrame").loadIFrame(new(j||(j=c("URI")))(this.config.impressionURL).addQueryData(a).toString()):(this.iframe=b("cr:6114").create("iframe",{src:new(j||(j=c("URI")))(this.config.impressionURL).addQueryData(a).toString(),width:0,height:0,frameborder:0,scrolling:"no",className:"fbEmuTracking"}),this.iframe.setAttribute("aria-hidden","true"),b("cr:6114").appendContent(this.element,this.iframe))};e.$15=function(){var a=c("DataAttributeUtils").getDataAttribute(this.element,"data-dedupekey");if(a===null)return null;var b=this.$16();if(b===null||b.length===0)return null;var d=b.length;while(--d>=0){var e=c("DataAttributeUtils").getDataAttribute(b[d],"data-dedupekey");if(e!==null&&a===e)break}return d+1};e.$16=function(){var a=c("ge")("contentArea");if(a){var d="._5jmm";a=b("cr:6114").scry(a,d);return a.filter(function(a){return c("DataAttributeUtils").getDataAttribute(a,"data-dedupekey")})}else{c("gkx")("21110")?d=c("ge")("m_news_feed_stream"):d=c("ge")("m_newsfeed_stream");return d===null?null:d.getElementsByTagName("article")}};e.$17=function(){return 0};e.$11=function(){this.$17()&&(c("Style").set(this.element,"background-color","#abab9a"),c("Style").set(this.element,"outline","3px solid #abab9a"))};e.$13=function(){this.$17()&&(c("Style").set(this.element,"background-color","#e4f70a"),c("Style").set(this.element,"outline","3px solid #e4f70a"))};e.$14=function(){this.$17()&&(c("Style").set(this.element,"background-color",null),c("Style").set(this.element,"outline",null))};e.$12=function(){this.$17()&&(c("Style").set(this.element,"background-color","#047515"),c("Style").set(this.element,"outline","3px solid #047515"))};return a}();c("mixInEventEmitter")(a,{visible:!0,hidden:!0,full_view:!0,viewability:!0,viewport_viewability:!0,viewability_debug:!0});e=a;g["default"]=e}),98); __d("VisibilityTracking",["Banzai","DataAttributeUtils","ErrorUtils","ScriptPath","SubscriptionsHandler","Visibility","collectDataAttributes","cr:4867","cr:7058","getElementPosition","gkx","pageID","throttle"],(function(a,b,c,d,e,f,g){var h,i="visibility_tracking",j="[data-vistracking]",k=500,l=50,m=50,n=50,o=50,p=0;a=function(){function a(a){var d=this;a=a||{};this.visibleElementInfo={};this.doNotForceExitOnUpdateVisible=!1;this.getDataFromConfig(a);c("Visibility").addListener(c("Visibility").VISIBLE,(h||(h=c("ErrorUtils"))).guard(function(){return d.fireEvent("browser")},"VisibilityTracking:visible",this));c("Visibility").addListener(c("Visibility").HIDDEN,h.guard(function(){return d.clearAllVisibleElements("browser")},"VisibilityTracking:hidden",this));c("ScriptPath").subscribe(h.guard(function(){return d.updateVisibleElements()},"VisibilityTracking:scriptPath",this));c("Banzai").subscribe(c("Banzai").SHUTDOWN,h.guard(function(){return d.onUnload()},"VisibilityTracking:banzaiShutdown",this));this.fireEventCallback=c("throttle").acrossTransitions(h.guard(function(a){return d.fireEvent(a)},"VisibilityTracking:fireEventCallback",this),this.timeout,this);this.listeners=new(c("SubscriptionsHandler"))();b("cr:4867").getEventListeners(function(){return d.fireEventCallback()},a).forEach(function(a){d.listeners.addSubscriptions(a)});this.extraInit&&(h||(h=c("ErrorUtils"))).applyWithGuard(this.extraInit.bind(this))}var d=a.prototype;d.getDataFromConfig=function(a){this.config=a,this.root=a.root||document.documentElement,this.selector=a.selector||j,this.visibleEventCallBack=a.visibleEventCallBack||function(){},this.timeout=a.timeout!==void 0?a.timeout:k,this.minOffsetVisibleFromBottom=a.minOffsetVisibleFromBottom!==void 0?a.minOffsetVisibleFromBottom:l,this.minOffsetVisibleFromTop=a.minOffsetVisibleFromTop!==void 0?a.minOffsetVisibleFromTop:m,this.minOffsetVisibleFromLeft=a.minOffsetVisibleFromLeft!==void 0?a.minOffsetVisibleFromLeft:n,this.minOffsetVisibleFromRight=a.minOffsetVisibleFromRight!==void 0?a.minOffsetVisibleFromRight:o,this.handleAllHiddenEvents=a.handleAllHiddenEvents!==void 0?a.handleAllHiddenEvents:!1,this.handleAllVisibleEvents=a.handleAllVisibleEvents!==void 0?a.handleAllVisibleEvents:!1,this.cacheTrackedElements=a.cacheTrackedElements!==void 0?a.cacheTrackedElements:!1,this.addCauseToAllHiddenEvents=a.addCauseToAllHiddenEvents!=void 0?a.addCauseToAllHiddenEvents:!1,this.doNotForceExitOnUpdateVisible=a.doNotForceExitOnUpdateVisible!=void 0?a.doNotForceExitOnUpdateVisible:!1};d.getAllTrackedElements=function(){if(!this.allTrackedElements){this.allTrackedElements={};var a=[];this.config.is_xtrackable?a=c("DataAttributeUtils").getXTrackableElements():this.root&&this.root.querySelectorAll&&(a=this.root.querySelectorAll(this.selector));for(var b=0;b=this.minOffsetVisibleFromTop&&a.y<=d.height-this.minOffsetVisibleFromBottom&&a.x+a.width>=this.minOffsetVisibleFromLeft&&a.x<=d.width-this.minOffsetVisibleFromRight};d.handleEvent=function(a,b){var d=this.getElementID(a).toString(),e=this.getDataToLog(a),f;if(b.name==="visible"){var g=Math.floor(Date.now()/1e3);f=c("pageID").concat(":",g.toString(),":",this.getElementID(a).toString());this.visibleElementInfo[d]={visibility_id:f,elem:a}}else if(b.name==="hidden"){d in this.visibleElementInfo&&(f=this.visibleElementInfo[d].visibility_id,delete this.visibleElementInfo[d]);if(b.cause==="browser"||this.doNotForceExitOnUpdateVisible&&b.cause==="updateVisible")return}this.sendDataToLog(Object.assign(e,{event:b.name,visibility_id:f}))};d.clearUntrackedVisibleElements=function(){var a=this.getAllTrackedElements();for(var b in this.visibleElementInfo)if(!(b in a)){var c=this.visibleElementInfo[b];c.elem&&this.handleEvent(c.elem,{name:"hidden",cause:"removed"})}};d.clearAllVisibleElements=function(a){a===void 0&&(a="default");var b=this.getAllTrackedElements();for(var c in b)c in this.visibleElementInfo&&this.handleEvent(b[c],{name:"hidden",cause:a});this.clearUntrackedVisibleElements()};d.updateVisibleElements=function(){this.addCauseToAllHiddenEvents?this.clearAllVisibleElements("updateVisible"):this.clearAllVisibleElements(),this.fireEvent()};d.refreshAndFireEvent=function(a){this.refreshAllTrackedElements(),this.fireEventCallback(a)};d.onUnload=function(){this.addCauseToAllHiddenEvents?this.clearAllVisibleElements("unload"):this.clearAllVisibleElements(),this.listeners&&(this.listeners.release(),this.listeners=null),this.extraCleanup&&(h||(h=c("ErrorUtils"))).applyWithGuard(this.extraCleanup.bind(this))};a.init=function(b){return new a(b)};return a}();g["default"]=a}),98); __d("ViewableImpressionEventHandler",["DataAttributeUtils","FullViewLogger","ViewabilityDurationSegmentLogger","ViewableImpressionDurationLogger","ViewableImpressionHeatmapLogger","ViewableImpressionTracker","VisibilityTracking","pageID"],(function(a,b,c,d,e,f,g){"use strict";var h=1;a=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var d=b.prototype;d.extraInit=function(){this.$ViewableImpressionEventHandler1=new Map()};d.getDataFromConfig=function(b){a.prototype.getDataFromConfig.call(this,b),this.$ViewableImpressionEventHandler2=b.$ViewableImpressionEventHandler2,this.$ViewableImpressionEventHandler3=b.heatmapLoggingDurationMS,b.impressionURL=b.impressionURL!==void 0?b.impressionURL:"/xti.php",b.nonviewableEnabled=b.nonviewableEnabled!==void 0?b.nonviewableEnabled:!1};d.getImpressionTracking=function(a){var b=this.getElementID(a),d=this.$ViewableImpressionEventHandler1.get(b);if(!d){var e=babelHelpers["extends"]({},this.getConfigFromElement(a),this.config);d=new(c("ViewableImpressionTracker"))(b,a,e);this.$ViewableImpressionEventHandler1.set(b,d);e.log_impression_duration&&c("ViewableImpressionDurationLogger").logFromViewableImpressionTracker(d);this.$ViewableImpressionEventHandler2&&c("ViewableImpressionHeatmapLogger").logFromViewableImpressionTracker(d,this.$ViewableImpressionEventHandler3);e.should_log_full_views&&c("FullViewLogger").logFromViewableImpressionTracker(d);e.should_log_viewability_duration&&c("ViewabilityDurationSegmentLogger").logFromViewableImpressionTracker(d)}return d};d.handleEvent=function(a,b){var d=this.getImpressionTracking(a);if(!d)return;if(b.name==="visible"){var e=Math.floor(Date.now()/1e3);e=c("pageID").concat(":",e.toString(),":",this.getElementID(a).toString());d.onVisible(b);this.visibleElementInfo[d.getID()]||(this.visibleElementInfo[d.getID()]={visibility_id:e,elem:a})}else if(b.name==="hidden"){e=d.getConfig();b.cause==="default"||e.log_visibility_hidden_when_browser_inactive&&b.cause==="browser"||e.addCauseToAllHiddenEvents&&(b.cause==="updateVisible"||b.cause==="unload")?(d.onHidden(b.cause),delete this.visibleElementInfo[d.getID()]):b.cause==="removed"&&(d.onRemoved(),delete this.visibleElementInfo[d.getID()],this.$ViewableImpressionEventHandler1["delete"](d.getID()))}};d.isInstreamAdStoryElement=function(a){a=babelHelpers["extends"]({},this.getConfigFromElement(a),this.config);return!!a.is_instream_story};d.getConfigFromElement=function(a){return JSON.parse(c("DataAttributeUtils").getDataAttribute(a,"data-xt-vimp"))};d.getElementID=function(a){a.getAttribute("id")||a.setAttribute("id","xt_uniq_"+h++);return a.getAttribute("id")};return b}(c("VisibilityTracking"));g["default"]=a}),98); __d("ViewableImpressionTracking",["Arbiter","DesktopHscrollUnitEventConstants","ErrorUtils","LitestandMessages","Run","ViewableImpressionConfig","ViewableImpressionEventHandler"],(function(a,b,c,d,e,f,g){var h;function a(){c("ViewableImpressionEventHandler").instance===void 0&&(c("ViewableImpressionEventHandler").instance=new(c("ViewableImpressionEventHandler"))(c("ViewableImpressionConfig")),c("ViewableImpressionEventHandler").instance.listeners!=null&&c("ViewableImpressionEventHandler").instance.listeners.addSubscriptions(c("Arbiter").subscribe([c("LitestandMessages").STORIES_INSERTED,"MPPInsights/ChartView","PhotoSnowliftAds/displayUnits","WebMessengerAdsControl/adjustAds",d("DesktopHscrollUnitEventConstants").HSCROLL_ITEM_INSERTED_EVENT,"WebVideoChannelAds/AdsLoaded","Stories/cardChanged"],(h||(h=c("ErrorUtils"))).guard(function(a){c("ViewableImpressionEventHandler").instance.refreshAndFireEvent(a)},"ViewableImpressionTracking")))),d("Run").onLoad(function(){c("ViewableImpressionEventHandler").instance.refreshAndFireEvent()})}g.init=a}),98); __d("ViewableImpressionUtils",["csx","CSS"],(function(a,b,c,d,e,f,g){a={isHorizontallyOffscreen:function(a,c,d){var e=Math.max(c.x,0);d=Math.min(c.x+c.width,d.width);return d-ef&&a.left0}function n(a){return a.postId}function o(a){var b=k[a];if(b==null)return!1;var c=b.exitTime;return b.isValid===!0||c!=null&&Date.now()-c<1e3||m(a)}function p(a,b,e,f){f===void 0&&(f=1);try{var g,j=c("getCentralImpressionScrollSpeed")(),l=c("getCentralImpressionTimeAfterRefresh")(),m="event_logged."+a+"."+e.toString()+".";g=new(c("ViewableSessionValidationWebResultTypedLogger"))().setVerificationTime(Date.now()).setExtras(JSON.stringify({pageId:k[b].context.pageId,boundaryDimension:JSON.stringify((g=k[b].boundaryDimensions)!=null?g:"null"),viewportDimension:JSON.stringify(c("getViewportDimensions")())})).setFbFeedLocation(e).setSessionStartTime(k[b].enterTime).setSessionEndTime(k[b].exitTime).setPrimaryImpressionChannel("viewable_impression_tracker").setSecondaryImpressionChannel("two_div_boundary").setSessionKey(b).setScrollSpeed(j).setTimeFromLoad(l);if(o(b))g.setVerifyResult(1),(h||(h=d("ODS"))).bumpEntityKey(2966,i,m+"pass");else{if(f>0){c("setTimeout")(function(){p(a,b,e,f-1)},500);return}g.setVerifyResult(0).setFailureReason("over-logging");(h||(h=d("ODS"))).bumpEntityKey(2966,i,m+"overlogging")}g.log()}catch(a){(h||(h=d("ODS"))).bumpEntityKey(2966,i,"error.onEventLogged."+a.message)}}function b(a){j.push(a)}g.ViewableSessionStore=k;g.onViewUpdate=a;g.onEventLogged=p;g.setupTopRef=b}),98); __d("VisibilityTrackingHelper",["Arbiter","DesktopHscrollUnitEventConstants","Event","getViewportDimensions"],(function(a,b,c,d,e,f,g){function a(a,b){var e=[c("Event").listen(document,"DOMContentLoaded",a),c("Event").listen(window,"scroll",a),c("Event").listen(window,"resize",a),c("Arbiter").subscribe(d("DesktopHscrollUnitEventConstants").HSCROLL_ITEM_SHOWN_EVENT,a)];b.considerSubtreeModification===!0&&e.push(c("Event").listen(document,"DOMSubtreeModified",a));return e}function b(){return c("getViewportDimensions")()}function e(){return!1}g.getEventListeners=a;g.getViewportInfo=b;g.isSnippetFlyoutVisible=e}),98); __d("ghlInternalBumpODSKey",["ODS"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a,b){return(h||(h=d("ODS"))).bumpEntityKey(2966,"feed_ads",a+"."+b)}g["default"]=a}),98); __d("ghlTestUBTFacebook",["ConstUriUtils","GHLBox","Promise","cr:1088657","ghlInternalBumpODSKey","promiseDone","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h,i=function(a){a=d("ConstUriUtils").getUri(a);if(a==null)throw c("unrecoverableViolation")("URI cannot be null in ghlTestUBTFacebook.","ad_blocker_defense_ghost_owl");return a},j=function(a){return new(h||(h=b("Promise")))(function(b){var c=window.atob,d=document.body;if(c==null||d==null){b(!1);return}var e=document.createElement("div");e.className=a.map(c).join(" ");d.appendChild(e);c=m(e);if(c&&c.MozBinding&&c.MozBinding.startsWith("url")){setTimeout(function(){return b(e.clientWidth===0)},5e3);return}b((c==null?void 0:c.display)==="none")})},k=function(){return new(h||(h=b("Promise")))(function(a){var b=document.body;if(b==null){a(!1);return}var c=document.createElement("img");c.setAttribute("alt","");b.appendChild(c);c.onload=function(){var b=m(c);a((b==null?void 0:b.display)==="none");c.parentNode&&c.parentNode.removeChild(c)};c.onerror=function(){a(!0),c.parentNode&&c.parentNode.removeChild(c)};c.src=i("/fb.php?q=//scontent.xx.fbcdn.net/hads-ak-prn2/1487645_6012475414660_1439393861_n.png").toString()})},l=null;a=function(a){l==null&&(q("init"),l=new(h||(h=b("Promise")))(function(a){return c("promiseDone")((h||(h=b("Promise"))).all([j(n),k(),j([o(p)]),d("GHLBox").r()]),function(b){var c=b[0],e=b[1],f=b[2];b=b[3];q("done",c,e,f);c=c||e||f;c?d("GHLBox").s(Date.now()):d("GHLBox").i();a([c,b])})})),c("promiseDone")(l,function(b){return a(b[0],b[1])}),b("cr:1088657")&&b("cr:1088657").i()};var m=function(a){return window.getComputedStyle(a)},n=["QWRCb3g=","QWQ=","YWR2ZXJ0","cG9zdC1hZHM="],o=function(a){return a[Math.floor(Math.random()*a.length)]},p=["UmVjdGFuZ2xlQWQ=","YWR2ZXJ0aXNpbmdfd2lkZ2V0","ZG93bmxvYWRfbGlua19zcG9uc29yZWQ=","c3BvbnNvclBvc3Q=","d2lkZ2V0U3BvbnNvcnM=","b2ItaG92ZXI=","ZGZwX3VuaXQ="],q=function(){for(var a=arguments.length,b=new Array(a),d=0;d