mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
32 lines
34 KiB
JavaScript
32 lines
34 KiB
JavaScript
|
if (self.CavalryLogger) { CavalryLogger.start_js(["xPvR6"]); }
|
||
|
|
||
|
__d("XAsyncRequest",["MRequest"],(function(a,b,c,d,e,f){__p&&__p();a=function(){"use strict";__p&&__p();function a(a){this.$1=new(b("MRequest"))(a)}var c=a.prototype;c.setURI=function(a){this.$1.setURI(a);return this};c.setMethod=function(a){this.$1.setMethod(a);return this};c.setType=function(a){this.$1.setType(a);return this};c.setAutoProcess=function(a){this.$1.setAutoProcess(a);return this};c.setData=function(a,b){if(b!==void 0&&b){b={};for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&a[c]!==void 0&&(b[c]=a[c]);this.$1.setData(b)}else this.$1.setData(a);return this};c.setRawData=function(a){this.$1.setRawData(a);return this};c.setHandler=function(a){this.$1.listen("done",a);return this};c.setPayloadHandler=function(a){this.setHandler(function(b){return a(b.payload)});return this};c.setErrorHandler=function(a){this.$1.listen("error",a);return this};c.setResponseHandler=function(a){this.$1.listen("response",a);return this};c.setReadOnly=function(a){this.$1.setReadOnly(a);return this};c.send=function(){this.$1.send();return this};c.abort=function(){this.$1.abort()};c.setAllowCrossOrigin=function(a){this.$1.setCORS(a);return this};c.setAllowCredentials=function(a){this.$1.setAllowCredentials(a);return this};c.setAllowCrossPageTransition=function(a){return this};return a}();e.exports=a}),null);
|
||
|
__d("XTaggingCounterController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/composer/tagging/counter/",{event:{type:"Enum",required:!0,enumType:1}})}),null);
|
||
|
__d("MTaggingCounter",["AsyncSignal","XTaggingCounterController"],(function(a,b,c,d,e,f){a={logEvent:function(a,c){c=b("XTaggingCounterController").getURIBuilder().setEnum("event",a).getURI();new(b("AsyncSignal"))(c).send()}};e.exports=a}),null);
|
||
|
__d("MFeedAdsGapRuleViolationDetection",["Banzai","BanzaiODS","CSS","DataAttributeUtils","DOM","ge","isEmpty","runMaybeOnAfterTTI"],(function(a,b,c,d,e,f){__p&&__p();var g="ei",h="qid",i="gap rule violation",j="non violating ads gap",k="non violating ego gap",l="first position violation",m="feed load",n="spacing invalidation",o="ego_pymk",p="ego_other",q=[],r=[],s=[],t=[],u={},v={},w={},x=[];a={registerFeedStories:function(a){__p&&__p();var c=this;b("runMaybeOnAfterTTI")(function(){__p&&__p();var d=b("ge")(a.containerID);if(d==null||d.childNodes==null)return;u=babelHelpers["extends"]({},a.demoAdChecks,u);w=a.egoGapRule;x=a.invalidateEgo?a.egoStories:{};var e=c._getStoriesFromContainer(d);a.isLoggingEnabled&&e.length!==0&&c._logFeedLoad();q=q.concat(e);for(var f in a.minGaps)Object.prototype.hasOwnProperty.call(a.minGaps,f)&&(v[f]=a.minGaps[f]);b("isEmpty")(u)&&(a.isLoggingEnabled&&c._checkFirstPosViolation(a,d),(a.invalidateEgo||a.isLoggingEnabled||a.isGapRuleInvalidationEnabled)&&c._checkGapRuleViolation(a))})},_getStoriesFromContainer:function(a){var b=[];for(var c=0;c<a.childNodes.length;c++){var d=this._convertStoryNodeToObject(a.childNodes[c]);d!==null&&b.push(d)}return b},_convertStoryNodeToObject:function(a){var c=a.getAttribute("data-dedupekey"),d=[b("DataAttributeUtils").getDataFt(a)];if(d[0]==null)return null;var e=JSON.parse(d[0]);return{dataFTArray:d,dedupKey:c,isSponsored:!!e[g],isEgoPymk:x[c]===o,isEgoOther:x[c]===p,height:a.offsetHeight,qid:parseInt(e[h],10),nodeID:a.id}},_checkFirstPosViolation:function(a,b){if(q.length>0&&q[0].isSponsored){b={ftArray:q[0].dataFTArray,qid:q[0].qid,nodeid:q[0].nodeID};a.isLoggingEnabled&&!(q[0].dedupKey in t)&&(this._logFirstPosViolation(b),t[q[0].dedupKey]=b)}},_getMinGap:function(a,b,c){a=Math.min(a?a:Number.MAX_VALUE,b?b:Number.MAX_VALUE);return a!==Number.MAX_VALUE?a:c},_getStoryDedupKeysJSONString:function(a,b){var c=[];for(var a=a;a<=b;a++)c.push(q[a].dedupKey);return JSON.stringify(c)},_getStoryDedupKeys:function(){return q.map(function(a){return a.dedupKey})},_checkGapRuleViolation:function(a){__p&&__p();var b=null,c=null,d=null;for(var e=0;e<q.length;e++){var f=q[e];if(f.isSponsored){var g=!1,h=!1;if(b!==null){var l=e-c,m=null,n;b===c?n=this._getMinGap(v[d.dedupKey],v[f.dedupKey],a.defaultMinGap):n=this._getMinGapBetweenStories(d,f);var o;l<n?(m=i,o=c):(m=j,o=b);a.isLoggingEnabled&&((!(f.dedupKey in r)||r[f.dedupKey].event_type!==m)&&(this._logGapEvent(m,o,e),r[f.dedupKey]={event_type:m}));a.isGapRuleInvalidationEnabled&&m==i&&(this._invalidateGapRuleViolatedAd(d,f),g=!0,q.splice(e--,1))}!g&&!h&&(b=e,c=e,d=f)}if(a.invalidateEgo&&(f.isEgoPymk||f.isEgoOther)){o=!1;if(c!==null){l=e-c;n=this._getMinGapBetweenStories(d,q[e]);if(l<n){o=!0;m=n-l;g=-1;for(var h=e+1;h<q.length;h++){if(q[h].isSponsored||q[h].isEgoPymk||q[h].isEgoOther)break;else m--;if(m===0){g=h;break}}g>0?this._swapAndLogEgo(e,h):(this._invalidateAndLogEgo(e),e--)}else a.shouldLogEgo&&!s[f.dedupKey]&&(s[f.dedupKey]=!0,this._logGapEvent(k,c,e))}o||(c=e,d=f)}}},_getMinGapBetweenStories:function(a,b){__p&&__p();var c;if(a.isSponsored||a.isEgoOther)c="ad";else if(a.isEgoPymk)c="pymk";else return 0;if(b.isSponsored||b.isEgoOther)a="ad";else if(b.isEgoPymk)a="pymk";else return 0;return w[c+"_"+a]},_swapAndLogEgo:function(a,c){this._shiftEgoBelowOrganicStory(q[a].nodeID,q[c].nodeID);var d=q[a];q.splice(a,1);q.splice(c,0,d);b("BanzaiODS").bumpEntityKey("m_feed_ego_invalidation","swap")},_shiftEgoBelowOrganicStory:function(a,c){a=b("ge")(a);c=b("ge")(c);a&&c&&b("DOM").insertAfter(c,a)},_invalidateAndLogEgo:function(a){var c=b("ge")(q[a].nodeID);c&&b("CSS").hide(c);q.splice(a,1);b("BanzaiODS").bumpEntityKey("m_feed_ego_invalidation","invalidate")},_logFirstPosViolation:function(a){var c={ft:a.ftArray[0],event_type:l,intValues:{qid:a.qid}};a.error_msg&&(c.error_msg=a.error_msg);b("Banzai").post("feed_ads_gap_rule_violation",c)},_logGapEvent:function(a,c,d){if(c===null)return;var e=q[c],f=q[d],g=0;for(var h=c+1;h<d;h++)g+=q[h].height;h={ft_A:e.dataFTArray[0],ft_B:f.dataFTArray[0],event_type:a,intValues:{dist:d-c,pdi
|
||
|
__d("MFeedErrorDetection",["Banzai","DataAttributeUtils"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g={};function h(a,c,d,e){a={event:a,shouldLogDetail:c,site:"mtouch"};c&&(a.intValues=d,a.normalValues=e);b("Banzai").post("feed_error_detection",a,{delay:0})}a={registerFeedStory:function(a){__p&&__p();var c=a.feedObjectElement;a=a.shouldLogDetail;if(!c)return;var d=b("DataAttributeUtils").getDataFt(c);c=c.getAttribute("data-dedupekey");if(!c||!d)return;if(g[c]){var e;a&&(e={dedupKey:c,ft_A:d,ft_B:g[c]});h("mtouch_duplicate_stories",a,{},{dup_field:e||{}})}else g[c]=d}};e.exports=a}),null);
|
||
|
__d("FBEngagementWhiteopsFraudSensorTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(){__p&&__p();function a(){this.$1={}}var c=a.prototype;c.log=function(){b("GeneratedLoggerUtils").log("logger:FBEngagementWhiteopsFraudSensorLoggerConfig",this.$1,b("Banzai").BASIC)};c.logVital=function(){b("GeneratedLoggerUtils").log("logger:FBEngagementWhiteopsFraudSensorLoggerConfig",this.$1,b("Banzai").VITAL)};c.logImmediately=function(){b("GeneratedLoggerUtils").log("logger:FBEngagementWhiteopsFraudSensorLoggerConfig",this.$1,{signal:!0})};c.clear=function(){this.$1={};return this};c.getData=function(){return babelHelpers["extends"]({},this.$1)};c.updateData=function(a){this.$1=babelHelpers["extends"]({},this.$1,a);return this};c.setInstanceID=function(a){this.$1.instance_id=a;return this};c.setPageID=function(a){this.$1.page_id=a;return this};c.setPostID=function(a){this.$1.post_id=a;return this};c.setTime=function(a){this.$1.time=a;return this};c.setTqBotDetectionProductEnum=function(a){this.$1.tq_bot_detection_product_enum=a;return this};c.setVC=function(a){this.$1.vc=a;return this};c.setWeight=function(a){this.$1.weight=a;return this};return a}();c={instance_id:!0,page_id:!0,post_id:!0,time:!0,tq_bot_detection_product_enum:!0,vc:!0,weight:!0};e.exports=a}),null);
|
||
|
__d("XLynxAsyncCallbackController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/si/linkclick/ajax_callback/",{lynx_uri:{type:"String"}})}),null);
|
||
|
__d("FBLynxLogging",["BanzaiODS","MRequest","XLynxAsyncCallbackController"],(function(a,b,c,d,e,f){"use strict";a={log:function(a){var c=b("XLynxAsyncCallbackController").getURIBuilder().getURI();c=new(b("MRequest"))(c).setData({lynx_uri:a});c.listen("error",function(a){a.code?(a.isHandled=!0,b("BanzaiODS").bumpEntityKey("linkshim","click_log.post.fail."+a)):b("BanzaiODS").bumpEntityKey("linkshim","click_log.post.fail.unknown")});c.send()}};e.exports=a}),null);
|
||
|
__d("FBLynxBase",["FBLynxLogging","LinkshimHandlerConfig","URI","$","isLinkshimURI"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function g(a){if(!b("isLinkshimURI")(a))return null;a=a.getQueryData().u;return!a?null:a}var h={logAsyncClick:function(a){h.swapLinkWithUnshimmedLink(a);a=a.getAttribute("data-lynx-uri");if(!a)return;b("FBLynxLogging").log(a)},originReferrerPolicyClick:function(a){var c=b("$")("meta_referrer");c.content=b("LinkshimHandlerConfig").switched_meta_referrer_policy;h.logAsyncClick(a);setTimeout(function(){c.content=b("LinkshimHandlerConfig").default_meta_referrer_policy},100)},swapLinkWithUnshimmedLink:function(a){var c=a.href,d=g(new(b("URI"))(c));if(!d)return;a.setAttribute("data-lynx-uri",c);a.href=d},revertSwapIfLynxURIPresent:function(a){var b=a.getAttribute("data-lynx-uri");if(!b)return;a.removeAttribute("data-lynx-uri");a.href=b}};e.exports=h}),null);
|
||
|
__d("LynxMsiteJSMode",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({ORIGINLAZY:"MLynx_originlazy",ASYNCLAZY:"MLynx_asynclazy"})}),null);
|
||
|
__d("MLynx",["FBLynxBase","LynxMsiteJSMode","Stratcom","URI","isLinkshimURI"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g={alreadySetup:!1,setupDelegation:function(a){__p&&__p();a===void 0;if(g.alreadySetup)return;g.alreadySetup=!0;b("Stratcom").listen("click",b("LynxMsiteJSMode").ORIGINLAZY,function(a){a=a.getNode(b("LynxMsiteJSMode").ORIGINLAZY);a instanceof HTMLAnchorElement&&b("FBLynxBase").originReferrerPolicyClick(a)});b("Stratcom").listen("click",b("LynxMsiteJSMode").ASYNCLAZY,function(a){a=a.getNode(b("LynxMsiteJSMode").ASYNCLAZY);a instanceof HTMLAnchorElement&&b("FBLynxBase").logAsyncClick(a)})},isShimmedLink:function(a){var c=a.getAttribute("href");c=c?b("isLinkshimURI")(new(b("URI"))(c)):!1;return c||a.hasAttribute("data-lynx-uri")}};e.exports=g}),null);
|
||
|
__d("SaveState",[],(function(a,b,c,d,e,f){a={SAVING:"saving",SAVED:"saved",UNSAVING:"unsaving",UNSAVED:"unsaved"};e.exports=a}),null);
|
||
|
__d("SaveStateHandler",["SaveState"],(function(a,b,c,d,e,f){__p&&__p();var g=null;a=function(){"use strict";__p&&__p();function a(){this.$1={},this.$2={}}var c=a.prototype;c.addListener=function(a,b){this.$1[a]||(this.$1[a]=[]),this.$1[a].push(b)};c.setState=function(a,b){a.forEach(function(a){this.$2[a]=b;if(!this.$1[a])return;a=this.$1[a];a.forEach(function(a){try{a.call(window,b)}catch(a){}})},this)};c.getState=function(a){return this.$2[a]};a.$3=function(){g||(g=new a());return g};a.listen=function(a,b){this.$3().addListener(a,b)};a.getState=function(a){return this.$3().getState(a)};a.saving=function(a){this.$3().setState(a,b("SaveState").SAVING)};a.saved=function(a){this.$3().setState(a,b("SaveState").SAVED)};a.unsaving=function(a){this.$3().setState(a,b("SaveState").UNSAVING)};a.unsaved=function(a){this.$3().setState(a,b("SaveState").UNSAVED)};a.isSaveAction=function(a){a=this.$3().getState(a);return a==b("SaveState").UNSAVED||a==b("SaveState").UNSAVING};a.isInTransition=function(a){a=this.$3().getState(a);return a==b("SaveState").SAVING||a==b("SaveState").UNSAVING};return a}();e.exports=a}),null);
|
||
|
__d("XStoryChevronController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/story_chevron_menu/",{feedobjects_identifiers:{type:"String"},feed_context:{type:"String"},chevron_button_id:{type:"String"},story_node_id:{type:"String"},zombie_story:{type:"String"},is_menu_registered:{type:"Bool",defaultValue:!1},outer_story_token:{type:"String"},show_report_ad_only:{type:"Bool",defaultValue:!1}})}),null);
|
||
|
__d("MAsyncChevronMenu",["cx","BanzaiODS","CSS","DOM","MLegacyDataStore","MParent","MRequest","MTouchClick","Stratcom","SubscriptionsHandler","XStoryChevronController","$","requireWeak"],(function(a,b,c,d,e,f,g){__p&&__p();var h=null;b("requireWeak")("MHideStoryActions",function(a){return h=a});var i,j,k,l,m,n,o;function p(a){a=b("MParent").bySigil(a,"story-popup-metadata");return a}function q(){__p&&__p();b("BanzaiODS").bumpEntityKey("mtouch_async_chevron","chevron_clicked");var a=this.getCausalElement(),c=b("MLegacyDataStore").get(a),d=p(a),e=b("XStoryChevronController").getURIBuilder().setBool("is_menu_registered",!!(h&&h.getActionBubble())).getURI();e=new(b("MRequest"))(e);l&&b("CSS").show(l);m&&b("CSS").hide(m);n&&b("CSS").hide(n);i=d;e.setMethod("POST");e.setData({feedobjects_identifiers:c.feedobjectsIdentifiers,feed_context:c.feedContext,zombie_story:c.zombieStoryURI?c.zombieStoryURI:"",story_node_id:d&&d.id,chevron_button_id:a.id,outer_story_token:c.outerStoryToken?c.outerStoryToken:"",show_report_ad_only:o});e.listen("error",function(a){b("BanzaiODS").bumpEntityKey("mtouch_async_chevron","request_failed"),l&&b("CSS").hide(l),a=="status=0"?(b("BanzaiODS").bumpEntityKey("mtouch_async_chevron","request_failed_no_internet_connection"),m&&b("CSS").show(m),n&&b("CSS").hide(n)):(b("BanzaiODS").bumpEntityKey("mtouch_async_chevron","request_failed_server_side_error"),n&&b("CSS").show(n),m&&b("CSS").hide(m))});e.listen("done",function(){b("BanzaiODS").bumpEntityKey("mtouch_async_chevron","request_done")});e.send()}function r(){k&&(k.release(),k=null),j=null,l=null,m=null,n=null}function s(){if(j){var a=j.getContentRoot();l=b("DOM").find(a,"div","loadingWrapper");m=b("DOM").find(a,"div","noConnectionWrapper");n=b("DOM").find(a,"div","requestErrorWrapper")}}function a(a,c){j&&(j.destroy(),r()),j=a,o=c,s(),k=new(b("SubscriptionsHandler"))(),k.addSubscriptions(j.addListener("beforeshow",q,j),b("Stratcom").listen("m:page:unload",null,r),b("Stratcom").listen("m:story:action-bubble-initialized",null,function(a){a=a.getData();a.menuNubID&&t(b("$")(a.menuNubID),a.wasOpen)}))}function t(a,c){__p&&__p();if(!j||!(j.isShown()||c))return;if(!h||!h.getActionBubble())return;j.hide();c=p(a);if(i==c){c=a.getElementsByClassName("_4s19")[0];b("MTouchClick").click(c)}}function c(a,c,d,e,f){b("DOM").replace(b("$")(c),a),f||t(a,!1)}function d(a){(!i||i.id==a)&&(j&&j.hide(),i=null)}e.exports={init:a,replaceChevronTrigger:c,closeLoadingFlyout:d}}),null);
|
||
|
__d("MExposeMore",["CSS","DOM","Stratcom"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=[];function h(){while(g.length)g.pop().remove()}var i="expose",j=!1,k=!0,l=!1;b("Stratcom").listen("click",[i,"more"],function(a){var c=a.getNode(i);b("CSS").conditionClass(c,"text_exposed",k);l?(k&&a.prevent(),k=!k):a.prevent()});a={init:function(a){if(j)return;l=a.seeMoreSwitchExpandOnly;j=!0},showMessageSuffixOnClick:function(a,c){if(c.children.length!==0){g.length||g.push(b("Stratcom").listen("m:page:unload",null,h));a=b("DOM").scry(a,"*","more")[0];a&&g.push(b("DOM").listen(a,"click",null,function(a){b("CSS").show(c),a.prevent()}))}}};e.exports=a}),null);
|
||
|
__d("MTaggingCounterEvent",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({GEO_PANEL_LOAD:"geo_panel_load",GEO_PANEL_ACCEPT:"geo_panel_accept",GEO_PANEL_DENY:"geo_panel_deny",GEO_PANEL_FAIL:"geo_panel_fail",GEO_PANEL_SUCCESS:"geo_panel_success",GEO_POPUP_LOAD:"geo_popup_load",GEO_POPUP_FAIL:"geo_popup_fail",GEO_POPUP_SUCCESS:"geo_popup_success"})}),null);
|
||
|
__d("ViewerLocationSource",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({AURA:"aura",GET_PARAM:"get_param",INTERN_TOOL:"intern_tool",LAST_LOCATION:"last_location",LOGIN:"login",PLACEBOOK:"placebook",PLACES_FQL:"places_fql",TEST:"test",MSITE_LOCATION_PROMPT:"msite_location_prompt",MSITE_PERSISTENT_LOCATION:"msite_persistent_location",MSITE_PLACES:"msite_places",MSITE_UNKNOWN:"msite_unknown",CORE_GQL_MUTATION:"core_graphql_mutation",MULTIFEED_PARAM:"multifeed_param",LOCATION_PROFILE_FRAMES:"location_profile_frames",PR_LOCATION_EFFECTS:"pr_location_effects",MESSENGER_LIVE_LOCATION:"messenger_live_location",VISIT_STATE:"visit_state",WIFI_FINGERPRINT:"wifi_fingerprint",INFERRED_WIFI:"inferred_wifi",INSTA_GEO_IMPLICIT:"insta_geo_implicit",AURA_TOO_FAST:"aura_too_fast",AURA_TOO_OLD:"aura_old",AURA_FAILED_MGI:"aura_failed_mgi",SEARCH:"search"})}),null);
|
||
|
__d("XPlacesUpdateLocationController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/places/location_update/",{json_location:{type:"String"},source:{type:"Enum",defaultValue:"msite_unknown",enumType:1}})}),null);
|
||
|
__d("MLocationPrompt",["DOM","MRequest","MTaggingCounter","MTaggingCounterEvent","Stratcom","ViewerLocationSource","WebStorage","XPlacesUpdateLocationController"],(function(a,b,c,d,e,f){__p&&__p();var g=["latitude","longitude","accuracy","altitude","altitudeAccuracy","heading","speed"],h={enableHighAccuracy:!0,timeout:6e4,maximumAge:3e5},i=6e4;a=function(){"use strict";__p&&__p();a.init=function(b,c,d,e){return new a(b,c,d,e)};a.getCoords=function(){return a.coords};a.isLocationAvailable=function(){return a.locationAvailable};function a(c,d,e,f){this.lastUpdateTime=0;this.container=c;this.question=d;this.loading=e;this.errored=f;c=b("WebStorage").getLocalStorage();c&&c.getItem(a.GEOLOCATION_KEY)==="1"?this.$1():(a.locationAvailable=!1,b("DOM").show(this.question),b("DOM").hide(this.loading),b("DOM").hide(this.errored),b("DOM").show(this.container),b("Stratcom").invoke("m:jewel-set:notifications-jewel:refresh-flyout"),b("MTaggingCounter").logEvent(b("MTaggingCounterEvent").GEO_PANEL_LOAD));this.listeners=[b("Stratcom").listen("click","accept-location",this.$2.bind(this)),b("Stratcom").listen("click","deny-location",this.$3.bind(this)),b("Stratcom").listen("m:page:unload",null,this.$4.bind(this))]}var c=a.prototype;c.clearWatch=function(){if(!this.watchID)return;navigator.geolocation.clearWatch(this.watchID);this.watchID=null};c.$2=function(){b("MTaggingCounter").logEvent(b("MTaggingCounterEvent").GEO_PANEL_ACCEPT),this.$1(!0)};c.$1=function(c){__p&&__p();a.locationAvailable=!0;var d=b("WebStorage").getLocalStorage();d&&d.setItem(a.GEOLOCATION_KEY,"1");b("DOM").show(this.container);b("DOM").hide(this.question);b("DOM").show(this.loading);b("DOM").hide(this.errored);b("Stratcom").invoke("m:jewel-set:notifications-jewel:refresh-flyout");var e=setTimeout(this.$5,h.timeout);this.watchID=navigator.geolocation.watchPosition(function(a){c&&b("MTaggingCounter").logEvent(b("MTaggingCounterEvent").GEO_PANEL_SUCCESS),clearTimeout(e),this.$6(a)}.bind(this),function(a){c&&b("MTaggingCounter").logEvent(b("MTaggingCounterEvent").GEO_PANEL_FAIL),clearTimeout(e),this.$5(a)}.bind(this),h);b("Stratcom").invoke(a.STRATCOM_ACCEPT)};c.$3=function(){a.locationAvailable=!1,b("MTaggingCounter").logEvent(b("MTaggingCounterEvent").GEO_PANEL_DENY),b("DOM").hide(this.container),b("Stratcom").invoke("m:jewel-set:notifications-jewel:refresh-flyout"),b("Stratcom").invoke(a.STRATCOM_DENY)};c.$6=function(c){__p&&__p();a.locationAvailable=!0;if(c){var d={},e;for(var f=0;f<g.length;f++)e=g[f],c.coords[e]&&(d[e]=c.coords[e]);c.timestamp&&(d.timestamp=c.timestamp/1e3);this.$7(JSON.stringify(d));b("DOM").hide(this.container);a.coords=d;b("Stratcom").invoke("m:jewel-set:notifications-jewel:refresh-flyout");b("Stratcom").invoke(a.STRATCOM_UPDATE,null,{position:c})}};c.$5=function(c){__p&&__p();a.locationAvailable=!1;this.clearWatch();var d=b("WebStorage").getLocalStorage();d&&d.setItem(a.GEOLOCATION_KEY,"0");b("DOM").show(this.container);b("DOM").hide(this.question);b("DOM").hide(this.loading);b("DOM").show(this.errored);b("Stratcom").invoke("m:jewel-set:notifications-jewel:refresh-flyout");b("Stratcom").invoke(a.STRATCOM_FAIL,null,{error:c});b("MTaggingCounter").logEvent(b("MTaggingCounterEvent").GEO_PANEL_FAIL)};c.$7=function(a){var c=Date.now();if(c-this.lastUpdateTime>i){this.lastUpdateTime=c;c=b("XPlacesUpdateLocationController").getURIBuilder().setString("json_location",a).setEnum("source",b("ViewerLocationSource").MSITE_LOCATION_PROMPT).getURI();new(b("MRequest"))(c).setMethod("POST").send()}};c.$4=function(){if(!this.listeners)return;for(var a=0;a<this.listeners.length;a++)this.listeners[a].remove();this.listeners=[]};return a}();Object.assign(a,{STRATCOM_ACCEPT:"MLocationPrompt/accept",STRATCOM_DENY:"MLocationPrompt/deny",STRATCOM_UPDATE:"MLocationPrompt/update",STRATCOM_FAIL:"MLocationPrompt/fail",GEOLOCATION_KEY:"authorizeGeolocation",locationAvailable:void 0});e.exports=a}),null);
|
||
|
__d("MMoreItemAutomatic",["MLocationPrompt","MPageCache","MPageControllerPath","MRequest","MRequestGateway","MRequestTypes","MResponseData","MStopNGo","MURI","MViewport","Stratcom","Vector","setTimeout","throttle"],(function(a,b,c,d,e,f){__p&&__p();a=function(){"use strict";__p&&__p();function a(a){__p&&__p();var c=this;this.$25=function(){c.$4?c.$26():!c.$5&&!c.$17&&c.$27()};this.$3=a.href;this.$20=a.sendGeolocation;this.$15=a.proximity_pages||7;this.$8=a.logger_id;this.$9=a.logger_name;this.$7=a.load_first_immediately;this.$18=a.retryOnError;this.$1=a.addToCache;this.$2=a.alwaysProcess;this.$19=a.scrollPrefetchThrottleFreq||0;this.$4=a.insertWhileScrolling;this.$17=!1;this.$16=!0;this.$12=0;this.$11=!1;this.$5=!1;this.$21=0;this.$6=null;this.$10=null;this.$13=!1;this.$14=null;var d=document.getElementById(a.id);d?(this.$21=b("Vector").getPos(d).y,this.$10=d,this.$13=a.persist_on_reload,this.$22()):this.uninstall()}var c=a.prototype;c.isElementVisible=function(){__p&&__p();if(!this.$23())return!1;var a=this.$10;if(a&&"getBoundingClientRect"in a){var c=a.getBoundingClientRect(),d=c.width/10,e=c.height/10,f=c.left,g=c.right,h=c.top;c=c.bottom;var i=!1;while(!i&&f<=g&&h<=c){f=Math.round(f+d);h=Math.round(h+e);var j=document.elementFromPoint(f,h);i=a.contains(j)}j=i}else{d=b("Vector").getPos(a).y;e=d+b("Vector").getDim(a).y;f=b("MViewport").getScrollTop();g=f+b("MViewport").getUseableHeight();j=d<=g&&e>=f}return j};c.$24=function(){var a=this.$10;a&&(this.$21-b("MViewport").getScrollTop()<0&&(b("Stratcom").invoke("m:more_item_automatic:items_visible",this.$8),this.uninstall()))};c.$26=function(){!this.$5?(this.$16=!0,this.isElementVisible()&&b("Stratcom").invoke("m:more_item_automatic:spinner_visible",this.$8,this.$9),!this.$17?this.$27():this.$28()):this.$24()};c.$29=function(){this.$5||(this.$16=!1)};c.$30=function(){!this.$17&&(this.$7||this.isElementVisible())&&(this.$31(),this.$7=!1)};c.$22=function(){!this.$17&&(this.$7||this.isElementVisible())&&(this.$31(),this.$7=!1),this.$6=[],this.$19>0&&this.$6.push(b("Stratcom").listen(["m:page:render:complete","scroll"],null,b("throttle").withBlocking(this.$25,this.$19,this))),this.$4||this.$6.push(b("MStopNGo").listen("go",this.$26.bind(this)),b("MStopNGo").listen("stop",this.$29.bind(this))),this.$6.push(b("Stratcom").listen("m:ajax:complete",null,this.$30.bind(this)))};c.$32=function(){var a=this.$10;if(a){var b=document;b=b.documentElement;if(b)return b.contains(a)}return!1};c.uninstall=function(){while(this.$6&&this.$6.length)this.$6.pop().remove();this.$17=!1;this.$14=null;this.$10=null;this.$13=!1};c.withinProximity=function(){var a=this.$10;return!!a&&b("Vector").getPos(a).y-b("MViewport").getScrollTop()<b("MViewport").getUseableHeight()*(1+this.$15)};c.$28=function(){var a=this.$14;a&&(this.$32()&&(a.process(),this.$1&&b("MPageCache").addCachedIUIResponse(b("MPageControllerPath").getRequestPath(),a)),b("Stratcom").invoke("m:more_item_automatic:items_loaded",this.$8,this.$9),this.$5=!0)};c.$23=function(){var a=this.$10;return!a||!a.offsetHeight?!1:!0};c.$27=function(){(this.isElementVisible()||this.$23()&&b("MViewport").getScrollTop()>100&&this.withinProximity())&&this.$31()};c.$31=function(){__p&&__p();var c=b("MLocationPrompt").getCoords();this.$20&&c&&(this.$3=new(b("MURI"))(this.$3).addQueryData("lat",c.latitude).addQueryData("long",c.longitude).toString());c=new(b("MRequest"))(new(b("MURI"))(this.$3).toString());this.$2?c.setType(b("MRequestTypes").INDEPENDENT):c.setType(b("MRequestTypes").DEPENDENT);c.setAutoProcess(!1);var d=[],e=!1,f=function(){!e&&d.length&&(e=!0,d.shift().process())};this.$18&&(c.setTimeout(b("MRequestGateway").ERROR_TIMEOUT),c.setFinalizeUponError(!1),c.listen("error",function(c,d){b("setTimeout")(function(){navigator.onLine&&(d.reset(),d.addData({is_retry:1}),d.sendAfterProcessing())},a.TRY_AGAIN_DELAY)}));c.listen("response",function(a){__p&&__p();a=new(b("MResponseData"))(a);a.listen("complete",function(){e=!1,f()});if(a.isPagelet()){d.push(a);f();return}e=!0;this.$14=a;this.$16&&this.$28()}.bind(this));c.send();this.$17=!0};c.getPersist
|
||
|
__d("InitMMoreItemAutomatic",["MMoreItemAutomatic","Stratcom"],(function(a,b,c,d,e,f){var g;a=function(a){g||(g={},b("Stratcom").listen("m:page:loading",null,function(a){for(var b in g)g[b].getPersistOnReload()||(g[b].uninstall(),delete g[b])}));var c=a.id;g[c]&&g[c].uninstall();g[c]=new(b("MMoreItemAutomatic"))(a)};f.main=a}),null);
|
||
|
__d("XConsentCookieController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/cookie/consent/",{})}),null);
|
||
|
__d("XRefererFrameController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/common/referer_frame.php",{})}),null);
|
||
|
__d("CookieBannerComponent",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({BANNER:"banner",CLOSE_BUTTON:"close_button"})}),null);
|
||
|
__d("CookieConsentBlacklist",["CookieBannerComponent","Parent"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a={isBlacklisted:function(a){__p&&__p();a=a;if(!this.hasCookieBanner())return!0;var c=b("Parent").byAttribute(a,"data-cookiebanner");if(c){c=c.getAttribute("data-cookiebanner");switch(c){case b("CookieBannerComponent").CLOSE_BUTTON:return!1;case b("CookieBannerComponent").BANNER:return!0}}c=b("Parent").byAttribute(a,"data-nocookies");if(c)return!0;a.tagName.toLowerCase()!=="a"&&(a=b("Parent").byTag(a,"a"));if(a instanceof HTMLAnchorElement&&typeof a.href==="string"){c=a.href;for(var a=0;a<this.blacklistedHrefs.length;a++)if(c.indexOf(this.blacklistedHrefs[a])>-1)return!0}return!1},blacklistedHrefs:["/about/basics","/ads/settings","/help/111814505650678","/help/1561485474074139","/help/568137493302217","/help/769828729705201","/help/cookies","/policies/cookies","/policy/cookies","/privacy/explanation"],hasCookieBanner:function(){var a=document.querySelectorAll('[data-cookiebanner="'+b("CookieBannerComponent").BANNER+'"]');return a.length>0}};e.exports=a}),null);
|
||
|
__d("DeferredCookie",["Cookie","CookieConsent","CookieConsentBlacklist","SubscriptionList","XAsyncRequest","XConsentCookieController"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=new Map();a={shouldAddDefaultListener:!0,defaultHandler:null,sentConsentToServer:!1,callbacks:new(b("SubscriptionList"))(),addToQueue:function(a,c,d,e,f,h,i){if(!b("CookieConsent").isDeferCookies()){f?b("Cookie").setWithoutChecksIfFirstPartyContext(a,c,d,e,i):b("Cookie").setWithoutChecks(a,c,d,e,i);return}if(g.has(a))return;g.set(a,{name:a,value:c,nMilliSecs:d,path:e,firstPartyOnly:f,secure:i});h&&this.addDefaultInteractionListener()},flushAllCookiesWithoutRequestingConsentSeePrivacyXFNBeforeUsing:function(){g.forEach(function(a,c){a.firstPartyOnly?b("Cookie").setWithoutChecksIfFirstPartyContext(a.name,a.value,a.nMilliSecs,a.path,a.secure):b("Cookie").setWithoutChecks(a.name,a.value,a.nMilliSecs,a.path,a.secure)}),b("CookieConsent").setConsented(),this.callbacks.fireCallbacks(),g=new Map(),this.removeDefaultInteractionListener()},flushAllCookies:function(){this.flushAllCookiesWithoutRequestingConsentSeePrivacyXFNBeforeUsing();if(!this.sentConsentToServer){this.sentConsentToServer=!0;var a=b("XConsentCookieController").getURIBuilder().getURI();new(b("XAsyncRequest"))(a).send()}},removeDefaultInteractionListener:function(){this.shouldAddDefaultListener=!1,this.defaultHandler&&(window.removeEventListener?window.removeEventListener("click",this.defaultHandler,!0):document.detachEvent&&document.detachEvent("onclick",this.defaultHandler),this.defaultHandler=null)},addDefaultInteractionListener:function(){this.shouldAddDefaultListener&&(this.shouldAddDefaultListener=!1,this.defaultHandler=this.baseInteractionHandler.bind(this),window.addEventListener?window.addEventListener("click",this.defaultHandler,!0):document.attachEvent&&document.attachEvent("onclick",this.defaultHandler))},registerCallbackOnCookieFlush:function(a){!b("CookieConsent").isDeferCookies()?a():this.callbacks.add(a)},baseInteractionHandler:function(a){var c=a.target;if(!(c instanceof HTMLElement))return;if(a instanceof MouseEvent&&!this.isValidClick(a))return;b("CookieConsentBlacklist").isBlacklisted(c)||this.flushAllCookies()},isValidClick:function(a){return a.which===void 0?!0:a.which==1},canEmbedThirdPartyPixel:function(){return b("CookieConsent").isCookiesBlocked()||b("CookieConsent").isDeferCookies()?!1:g.size===0}};e.exports=a}),null);
|
||
|
__d("ControlledReferer",["Bootloader","DeferredCookie","URI","XRefererFrameController","isMessengerDotComURI","isOculusDotComURI","isWorkplaceDotComURI","lowerFacebookDomain"],(function(a,b,c,d,e,f){__p&&__p();var g={useFacebookReferer:function(a,c,d){__p&&__p();if(!b("DeferredCookie").canEmbedThirdPartyPixel()){b("Bootloader").loadModules(["BanzaiODS"],function(a){a.bumpEntityKey("defer_cookies","block_controlled_referer_iframe")},"ControlledReferer");return}var e=!1;function f(){if(e)return;var b=a.contentWindow.location.pathname;if(b!=="/intern/common/referer_frame.php"&&b!=="/common/referer_frame.php")return;e=!0;a.contentWindow.document.body.style.margin=0;c()}var g;b("isMessengerDotComURI")(b("URI").getRequestURI())?g=b("XRefererFrameController").getURIBuilder().getURI().toString():b("isOculusDotComURI")(b("URI").getRequestURI())?g="/common/referer_frame.php":!b("lowerFacebookDomain").isValidDocumentDomain()?g="/intern/common/referer_frame.php":g=b("XRefererFrameController").getURIBuilder().getURI().toString();d==null&&b("isWorkplaceDotComURI")(b("URI").getRequestURI())&&(d="workplace");d&&(g+="?fb_source="+d);a.onload=f;a.src=g},useFacebookRefererHtml:function(a,b,c){g.useFacebookReferer(a,function(){a.contentWindow.document.body.innerHTML=b},c)}};e.exports=g}),null);
|
||
|
__d("FBSiteWhiteOps",["ControlledReferer","FBEngagementWhiteopsFraudSensorTypedLogger","Style","URI","UserAgent"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a={appendToWindow:function(a,c,d,e,f){__p&&__p();e===void 0&&(e=null);f===void 0&&(f=null);var g=window.document.body;try{var h="fbsbx-sig-iframe-detection";if(g.getElementsByClassName(h).length!==0)return;var i=window.document.createElement("iframe");b("Style").apply(i,{height:"1px",width:"1px",opacity:"0",position:"relative",zIndex:"-9999999"});i.id="fbsbx-sig-iframe-"+a;i.className=h;i.referrerPolicy="no-referrer";b("ControlledReferer").useFacebookReferer(i,function(){__p&&__p();i.sandbox="allow-scripts allow-same-origin";var g="https://s.update.fbsbx.com/2/843748/utils.html?ti="+a+"&di=facebook.com&bt="+c+"&dt=8437481520966594402012";d&&(g+="&sn="+d);e!=null&&e!==""&&(g+="&c1="+e);f!=null&&f!==""&&(g+="&c3="+f);g=new(b("URI"))(g);var h=i.contentWindow.document,j="fbsbx-sig-iframe-form-"+a,k=g.toString();g=g.getQueryData();if(b("UserAgent").isBrowser("IE")||b("UserAgent").isBrowser("Edge")||b("UserAgent").isBrowser("IE Mobile")){var l="";for(var m in g)Object.prototype.hasOwnProperty.call(g,m)&&(l+="<input "+('name="'+m+'" ')+'type="hidden" autocomplete="off" '+('value="'+g[m]+'" />'));h.body.innerHTML='<form method="GET" id='+j+">"+l+"</form>";l=h.getElementById(j);l.action=k}else{h.body.innerHTML='<form method="GET" id='+j+"></form>";l=h.getElementById(j);l.action=k;for(var n in g)if(Object.prototype.hasOwnProperty.call(g,n)){k=h.createElement("input");k.name=n;k.value=g[n];k.autocomplete="off";k.type="hidden";l.appendChild(k)}}h.body.innerHTML+='<iframe height="100%" width="100%" onload=\'document.getElementById("'+j+"\").submit()'/>;"});g.appendChild(i)}catch(a){}},log:function(a,c,d){new(b("FBEngagementWhiteopsFraudSensorTypedLogger"))().setInstanceID(a).setTqBotDetectionProductEnum(c).log()}};e.exports=a}),null);
|
||
|
__d("MarauderLogger",["Banzai","CacheStorage","MarauderConfig"],(function(a,b,c,d,e,f){__p&&__p();var g="client_event",h="navigation",i=18e4,j="marauder",k="marauder_last_event_time",l="marauder_last_session_id",m={},n=[],o=!1,p=null,q=null,r=null,s=0,t,u,v=!1,w=null,x=!1;function a(){G().set(k,y())}b("Banzai").subscribe(b("Banzai").SHUTDOWN,a);function y(){t=t||G().get(k)||0;return t}function z(){v||(u=G().get(l),v=!0);var a=Date.now();(!u||a-i>y())&&(u=a.toString(16)+"-"+(~~(Math.random()*16777215)).toString(16),G().set(l,u));return u}function A(){return{user_agent:window.navigator.userAgent,screen_height:window.screen.availHeight,screen_width:window.screen.availWidth,density:window.screen.devicePixelRatio||null,platform:window.navigator.platform||null,locale:window.navigator.language||null}}function B(){return{locale:navigator.language}}function C(b,a,c,d,f,g,h){var i=h||Date.now();t=h?Date.now():i;a=a||p;return{name:b,time:i/1e3,module:a,obj_type:d,obj_id:f,uuid:g,extra:c}}function D(a,b,c){return C("content",null,{flags:b},null,null,a,c)}function E(a){__p&&__p();var b=window.__mrdr;if(b)for(var c in b){var d=b[c];if(d[3]!==0){delete b[c];if(c==="1")if(r!==null)c=r;else continue;a.push(D(c,1,d[1]));a.push(D(c,2,d[2]));a.push(D(c,3,d[3]))}}}function F(a){__p&&__p();E(a);if(a.length===0)return;o&&a.push(C("counters",null,m));var c=b("Banzai").BASIC,d=b("MarauderConfig").gk_enabled;s===0&&d&&(a.push(C("device_status",null,B())),c={delay:5e3});d&&Math.random()<.01&&a.push(C("device_info",null,A()));if(r!==null)for(var d=0;d<a.length;d++){var e=a[d];(e.uuid===null||e.uuid===void 0)&&(e.uuid=r)}e={app_ver:b("MarauderConfig").app_version,data:a,log_type:g,seq:s++,session_id:z()};d=G().get("device_id");d&&(e.device_id=d);m={};o=!1;b("Banzai").post(j,e,c)}function G(){x||(x=!0,w=new(b("CacheStorage"))("localstorage",""));return w}function c(a){m[a]||(m[a]=0),m[a]++,o=!0}function H(b,a,c,d,f,g,h){F([C(b,a,c,d,f,g,h)])}function I(a,b){p!==b&&(n.push(C(h,p,{dest_module:b,source_url:q,destination_url:a})),p=b,q=a)}function d(a,b){p!==b&&(r=null,I(a,b))}function f(a,b,c){H(b?"show_module":"hide_module",a,c)}function J(a){p=a}function K(){return p}function L(a){r===null&&(r=a,a!==null&&(F(n),n=[]))}e.exports={count:c,log:H,navigateTo:d,navigateWithinSession:I,toggleModule:f,setUUID:L,setNavigationModule:J,getNavigationModule:K}}),null);
|