mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
59 lines
56 KiB
JavaScript
59 lines
56 KiB
JavaScript
|
if (self.CavalryLogger) { CavalryLogger.start_js(["zq4gG"]); }
|
||
|
|
||
|
__d("AsyncSignal",["URI","ZeroRewrites","eventsMixinDeprecated","memoize","setTimeout"],(function(a,b,c,d,e,f){__p&&__p();a=function(){"use strict";__p&&__p();function a(a,b){this.data=b||{},this.uri=a}var c=a.prototype;c.send=function(){__p&&__p();var a=new Image(),c=b("ZeroRewrites").rewriteURI(new(b("URI"))(this.uri));for(var d in this.data)c.addQueryData(d,this.data[d]);a.src=c.toString();if(this.handler){var e=b("memoize")(this.handler);this.timeout&&b("setTimeout")(e,this.timeout);a.onload=a.onerror=function(){e()}}else a.onload=this.invoke.bind(this,"load"),a.onerror=this.invoke.bind(this,"fail"),this.timeout&&b("setTimeout")(this.invoke.bind(this,"timeout"),this.timeout);return this};c.setHandler=function(a){this.handler=a;return this};c.setTimeout=function(a){this.timeout=a;return this};return a}();b("eventsMixinDeprecated")(a,["load","fail","timeout"]);Object.assign(a.prototype,{uri:null});e.exports=a}),null);
|
||
|
__d("MAjaxifyFormTypes",[],(function(a,b,c,d,e,f){e.exports={PAGELOAD:"pageload",NOCACHE:"nocache",CACHE:"cache"}}),null);
|
||
|
__d("MAjaxify",["CSS","DOM","ErrorUtils","LoadingIndicator","MAjaxifyFormTypes","MHistory","MLegacyDataStore","MPageCache","MPageControllerPath","MRequest","MRequestTypes","Stratcom","URI"],(function(a,b,c,d,e,f){__p&&__p();var g={postprocess:function(a){b("MPageCache").addCachedIUIResponse(b("MPageControllerPath").getRequestPath(),a.response)}};function h(a,b){return(" "+a.className+" ").indexOf(" "+b+" ")>-1}function i(a,b){while(a&&!h(a,b))a=a.parentNode;return a}function j(a,c,d,e,f){__p&&__p();e=e||"async_elem";a&&(a.preventDefault(),a.stopPropagation());if(c){var g=i(c,e)||c,j=e+"_saving";if(h(g,j))return!1;b("CSS").conditionClass(g,e+"_preprocess",!0);a=function(a){b("CSS").conditionClass(g,e,!a),b("CSS").conditionClass(g,j,a),b("Stratcom").invoke(a?"m:ajax:saving:start":"m:ajax:saving:complete",null,g)};d.listen("start",a.bind(null,!0));d.listen("finally",a.bind(null,!1))}d.setType(b("MRequestTypes").INDEPENDENT);for(var c=0,a=f.length;c<a;c++){var k=f[c];for(var l in k)d.listen(l,k[l])}d.send();return!1}var k=["input","textarea","select","button","object"];function l(a,c){for(var d=0;d<k.length;d++){var e=b("DOM").scry(a,k[d]);for(var f=0;f<e.length;f++){var g=b("MLegacyDataStore").get(e[f]);c?(g.wasDisabled=e[f].disabled,e[f].disabled=!0):e[f].disabled=g.wasDisabled}}}function m(a,c,d){__p&&__p();this.start=function(){if(d)return;l(a,!0)},this.process=function(b){if(d)return;l(a,!1);a.reset();if(document.createEvent&&a.dispatchEvent){b=document.createEvent("HTMLEvents");b.initEvent("reset",!0,!0);a.dispatchEvent(b)}},this.error=this.fail=function(d){l(a,!1),c==b("MAjaxifyFormTypes").PAGELOAD&&b("LoadingIndicator").hide()},this.postprocess=function(a){c==b("MAjaxifyFormTypes").PAGELOAD&&b("LoadingIndicator").hide(),c==b("MAjaxifyFormTypes").CACHE&&g.postprocess(a),b("Stratcom").invoke("m:ajax:complete")}}var n=null;document.addEventListener("click",function(a){a=a.target;(a.tagName==="INPUT"||a.tagName==="BUTTON")&&a.type=="submit"&&(n=a)},!0);function o(a,b,c,d,e){return j(a,b,c,d,e?[g].concat(e):[g])}function a(a,c,d,e){return!c||(a.which||a.button)>=2?!0:o(a,a.target,new(b("MRequest"))(c),d,e)}function c(a,c,d,e,f,g,h,i,k){__p&&__p();k===void 0&&(k=!1);return b("ErrorUtils").guard(function(){__p&&__p();if(!c||!c.action)return!0;var i=b("DOM").convertFormToDictionary(c);n&&(i[n.name]=n.value,n=null);var l=new(b("MRequest"))(c.action);l.processResponseAfterPageTransitions=k;l.addData(i);l.setMethod(c.method||"POST");var o=null;if(e===b("MAjaxifyFormTypes").PAGELOAD){if(c.method.toUpperCase()==="GET"){i=new(b("URI"))(c.action).addQueryData(i);b("MHistory").pushState(i)}b("LoadingIndicator").show()}else o=g?null:f||c;h||(h=[]);h.push(new m(c,e,g));b("Stratcom").invoke("MAjaxify.form.ajax.start","",l);return j(a,o,l,d,h)},"MAjaxify.form")()}f.ajaxify=o;f.form=c;f.link=a}),null);
|
||
|
__d("MLinkHack",["CurrentUser","DOM","MJSEnvironment","MViewport","Stratcom","URI","Vector","$"],(function(a,b,c,d,e,f){__p&&__p();var g={PREFIX:"#!",add:function(a){if(!b("CurrentUser").isLoggedIn())return!1;var c=a.getAttribute("href")||"";if(c.indexOf(g.PREFIX)!==0){a.setAttribute("href",g.PREFIX+c);return!0}return!1},remove:function(a){var b=a.getAttribute("href")||"";if(b.indexOf(g.PREFIX)===0){a.setAttribute("href",b.substr(2));return!0}return!1},preventFromPoint:function(a){__p&&__p();if(!b("MJSEnvironment").IS_APPLE_WEBKIT_IOS)return;a=b("Vector").getPos(a);a=document.elementFromPoint(a.x,a.y-b("MViewport").getScrollTop());var c=b("$")("root");while(a&&a!==c){if(a.tagName==="A"){g.add(a);break}a=a.parentElement}},safe:function(a,b){var c=g.remove(a);b(a);c&&g.add(a)},getHref:function(a){a=a.getAttribute("href");if(!a)return null;return a.indexOf(g.PREFIX)===0?a.substr(2):a}};(function(){__p&&__p();if(window.APP_ENABLED||!("ontouchstart"in window))return;function a(a,b){return(" "+a.className+" ").indexOf(" "+b+" ")>-1}function c(b,c){b=b;while(b&&!a(b,c))b=b.parentNode;return b}b("Stratcom").listen("touchend","tag:a",function(a){__p&&__p();a=a.getNode("tag:a");if(a.getAttribute("target"))return;var d=a.getAttribute("href");if(!d||d.indexOf("#")===0)return;d=new(b("URI"))(d).getProtocol();if(d&&d!=="http"&&d!=="https")return;d=[a];if(b("Stratcom").hasSigil(a,"ajaxify")){var e=a.getAttribute("data-ajaxify-class")||"async_elem",f=c(a,e);f||(f=c(a,e+"_saving"));f&&(d=b("DOM").scry(f,"a","ajaxify"))}d.forEach(function(a){g.add(a)})})})();e.exports=g}),null);
|
||
|
__d("legacy:m-ajaxify-js",["MAjaxify"],(function(a,b,c,d,e,f){a.MAjaxify=b("MAjaxify")}),3);
|
||
|
__d("BanzaiConsts",[],(function(a,b,c,d,e,f){a={SEND:"Banzai:SEND",OK:"Banzai:OK",ERROR:"Banzai:ERROR",SHUTDOWN:"Banzai:SHUTDOWN",VITAL_WAIT:1e3,BASIC_WAIT:6e4,EXPIRY:30*6e4,LAST_STORAGE_FLUSH:"banzai:last_storage_flush",STORAGE_FLUSH_INTERVAL:12*60*6e4};e.exports=a}),null);
|
||
|
/**
|
||
|
* License: https://www.facebook.com/legal/license/qZmK4zWM8-v/
|
||
|
*/
|
||
|
__d("SnappyCompress",[],(function(a,b,c,d,e,f){__p&&__p();(function a(b,c,d){__p&&__p();function e(g,h){__p&&__p();if(!c[g]){if(!b[g]){var i=typeof requireSnappy=="function"&&requireSnappy;if(!h&&i)return i(g,!0);if(f)return f(g,!0);h=new Error("Cannot find module '"+g+"'");throw h.code="MODULE_NOT_FOUND",h}i=c[g]={exports:{}};b[g][0].call(i.exports,function(a){var c=b[g][1][a];return e(c?c:a)},i,i.exports,a,b,c,d)}return c[g].exports}var f=typeof requireSnappy=="function"&&requireSnappy;for(var g=0;g<d.length;g++)e(d[g]);return e})({1:[function(c,a,b){a=window.SnappyJS||{};a.uncompress=c("./index").uncompress,a.compress=c("./index").compress,window.SnappyJS=a},{"./index":2}],2:[function(c,a,b){"use strict";__p&&__p();function a(){return"object"==typeof process&&"object"==typeof process.versions&&"undefined"!=typeof process.versions.node?!0:!1}function d(a){return a instanceof Uint8Array&&(!k||!Buffer.isBuffer(a))}function g(a){return a instanceof ArrayBuffer}function h(a){return k?Buffer.isBuffer(a):!1}function i(a){__p&&__p();if(!d(a)&&!g(a)&&!h(a))throw new TypeError(n);var b=!1,c=!1;d(a)?b=!0:g(a)&&(c=!0,a=new Uint8Array(a));a=new l(a);var e=a.readUncompressedLength();if(-1===e)throw new Error("Invalid Snappy bitstream");if(b){if(b=new Uint8Array(e),!a.uncompressToBuffer(b))throw new Error("Invalid Snappy bitstream")}else if(c){if(b=new ArrayBuffer(e),c=new Uint8Array(b),!a.uncompressToBuffer(c))throw new Error("Invalid Snappy bitstream")}else if(b=new Buffer(e),!a.uncompressToBuffer(b))throw new Error("Invalid Snappy bitstream");return b}function j(a){if(!d(a)&&!g(a)&&!h(a))throw new TypeError(n);var b=!1,c=!1;d(a)?b=!0:g(a)&&(c=!0,a=new Uint8Array(a));var e;a=new m(a);var f=a.maxCompressedLength();return b?(b=new Uint8Array(f),e=a.compressToBuffer(b)):c?(b=new ArrayBuffer(f),c=new Uint8Array(b),e=a.compressToBuffer(c)):(b=new Buffer(f),e=a.compressToBuffer(b)),b.slice(0,e)}var k=a(),l=c("./snappy_decompressor").SnappyDecompressor,m=c("./snappy_compressor").SnappyCompressor,n="Argument compressed must be type of ArrayBuffer, Buffer, or Uint8Array";b.uncompress=i,b.compress=j},{"./snappy_compressor":3,"./snappy_decompressor":4}],3:[function(c,a,b){"use strict";__p&&__p();function d(a,b){return 506832829*a>>>b}function g(a,b){return a[b]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)}function h(a,b,c){return a[b]===a[c]&&a[b+1]===a[c+1]&&a[b+2]===a[c+2]&&a[b+3]===a[c+3]}function i(a,b,c,d,e){var f;for(f=0;e>f;f++)c[d+f]=a[b+f]}function j(a,b,c,d,e){return 60>=c?(d[e]=c-1<<2,e+=1):256>c?(d[e]=240,d[e+1]=c-1,e+=2):(d[e]=244,d[e+1]=c-1&255,d[e+2]=c-1>>>8,e+=3),i(a,b,d,e,c),e+c}function k(a,b,c,d){return 12>d&&2048>c?(a[b]=1+(d-4<<2)+(c>>>8<<5),a[b+1]=255&c,b+2):(a[b]=2+(d-1<<2),a[b+1]=255&c,a[b+2]=c>>>8,b+3)}function l(a,b,c,d){for(;d>=68;)b=k(a,b,c,64),d-=64;return d>64&&(b=k(a,b,c,60),d-=60),k(a,b,c,d)}function m(a,b,c,e,f){__p&&__p();for(var i=1;c>=1<<i&&p>=i;)i+=1;i-=1;var k=32-i;"undefined"==typeof q[i]&&(q[i]=new Uint16Array(1<<i));var m;i=q[i];for(m=0;m<i.length;m++)i[m]=0;var n,o,r,s,t;m=b+c;var u=b,v=b,w=!0,x=15;if(c>=x)for(c=m-x,b+=1,x=d(g(a,b),k);w;){s=32,o=b;do{if(b=o,n=x,t=s>>>5,s+=1,o=b+t,b>c){w=!1;break}x=d(g(a,o),k),r=u+i[n],i[n]=b-u}while(!h(a,b,r));if(!w)break;f=j(a,v,b-v,e,f);do{for(t=b,n=4;m>b+n&&a[b+n]===a[r+n];)n+=1;if(b+=n,o=t-r,f=l(e,f,o,n),v=b,b>=c){w=!1;break}s=d(g(a,b-1),k),i[s]=b-1-u,t=d(g(a,b),k),r=u+i[t],i[t]=b-u}while(h(a,b,r));if(!w)break;b+=1,x=d(g(a,b),k)}return m>v&&(f=j(a,v,m-v,e,f)),f}function n(a,b,c){do b[c]=127&a,a>>>=7,a>0&&(b[c]+=128),c+=1;while(a>0);return c}function c(a){this.array=a}a=16;var o=1<<a,p=14,q=new Array(p+1);c.prototype.maxCompressedLength=function(){var a=this.array.length;return 32+a+Math.floor(a/6)},c.prototype.compressToBuffer=function(a){var b,c=this.array,d=c.length,e=0,f=0;for(f=n(d,a,f);d>e;)b=Math.min(d-e,o),f=m(c,e,b,a,f),e+=b;return f},b.SnappyCompressor=c},{}],4:[function(c,a,b){"use strict";__p&&__p();function d(a,b,c,d,e){var f;for(f=0;e>f;f++)c[d+f]=a[b+f]}function g(a,b,c,d){var e;for(e=0;d>e;e++)a[b+e]=a[b-c+e]}function c(a){this.array=a,this.pos=0}var h=[
|
||
|
__d("SnappyCompressUtil",["SnappyCompress"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g={compressUint8ArrayToSnappy:function(a){__p&&__p();if(a==null)return null;var c=null;try{c=b("SnappyCompress").compress(a)}catch(a){return null}a="";for(var d=0;d<c.length;d++)a+=String.fromCharCode(c[d]);return window.btoa(a)},compressStringToSnappy:function(a){__p&&__p();if(window.Uint8Array===void 0||window.btoa===void 0)return null;var b=new window.Uint8Array(a.length);for(var c=0;c<a.length;c++){var d=a.charCodeAt(c);if(d>127)return null;b[c]=d}return g.compressUint8ArrayToSnappy(b)}};e.exports=g}),null);
|
||
|
__d("BanzaiAdapter",["BanzaiConsts","CurrentUser","DTSG","DTSGUtils","MBanzaiConfig","MRequest","MRequestConfig","MRequestDataSerializer","MSession","Run","SnappyCompressUtil","SprinkleConfig","Stratcom","Visibility","ZeroCategoryHeader"],(function(a,b,c,d,e,f){__p&&__p();var g="/a/bz",h=[],i={config:b("MBanzaiConfig"),endpoint:g,useBeacon:Boolean(b("MBanzaiConfig").gks&&b("MBanzaiConfig").gks.mtouch_use_beacon),inform:function(a){b("Stratcom").invoke(a)},subscribe:function(a,c){return b("Stratcom").listen(a,null,c)},cleanup:function(){var a=h;h=[];a.forEach(function(a){a.abort()})},send:function(a,c,d,e){__p&&__p();var f=new(b("MRequest"))(g);f.setAutoProcess(!1);f.setData(i.prepForTransit(a));f.setRequestHeader("X_FB_BACKGROUND_STATE",1);c&&f.listen("done",c);e||f.listen("done",function(a){i.inform(b("BanzaiConsts").OK)});f.listen("error",function(a){a.isHandled=!0;a=f.getTransport().status;d&&d(a);e||i.inform(b("BanzaiConsts").ERROR)});b("MRequestConfig").cleanFinishedRequest&&f.listen("finally",function(){var a=h.indexOf(f);a>=0&&h.splice(a,1)});h.push(f);f.send()},readyToSend:function(){return navigator.onLine},setHooks:function(a){b("Visibility").addListener("hidden",a._store),b("Visibility").addListener("visible",a._restore),window.addEventListener("pagehide",a._store),window.addEventListener("pageshow",a._restore),window.addEventListener("blur",a._store),window.addEventListener("focus",a._restore)},setUnloadHook:function(a){b("Run").onUnload(a._unload)},onUnload:function(a){b("Run").onUnload(a)},addRequestAuthData:function(a){var c=b("DTSG").getCachedToken(),d=[["fb_dtsg",c],["__ajax__",b("MRequestConfig").ajaxResponseToken.encrypted],["__user",b("CurrentUser").getID()],["__fbbk","1"]];b("MRequestConfig").lsd&&d.push(["lsd",b("MRequestConfig").lsd]);b("SprinkleConfig").param_name&&(c?d.push([b("SprinkleConfig").param_name,b("DTSGUtils").getNumericValue(c)]):b("MRequestConfig").lsd&&d.push([b("SprinkleConfig").param_name,b("DTSGUtils").getNumericValue(b("MRequestConfig").lsd)]));for(var e in a)d.push([e,a[e]]);return b("MRequestDataSerializer").defaultDataSerializer(d)},prepForTransit:function(a){a=JSON.stringify(a);return{data:a,ts:Date.now(),ph:b("MSession").push_phase}},prepWadForTransit:function(a){if(a.snappy==null||a.snappy===!0){var c=Date.now(),d=JSON.stringify(a.posts),e=b("SnappyCompressUtil").compressStringToSnappy(d);e!=null&&e.length<d.length?(a.posts=e,a.snappy_ms=Date.now()-c):delete a.snappy}},isOkToSendViaBeacon:function(){return Boolean(!b("ZeroCategoryHeader").value&&b("DTSG").getCachedToken())}};e.exports=i}),null);
|
||
|
__d("Clock",["EventEmitter"],(function(a,b,c,d,e,f){__p&&__p();var g=new(b("EventEmitter"))();g.ANOMALY="anomaly";var h=30,i=Date.now(),j=[],k=0,l=1e3;function m(){var a=Date.now()-i;return a<0||a>l*10}function a(){var a=Date.now()-i;j[k]=a;k=(k+1)%h;m()&&g.emit(g.ANOMALY,a);i=Date.now()}g.getSamples=function(){return j.slice(k).concat(j.slice(0,k))};g.isAnomalous=m;setInterval(a,l);e.exports=g}),null);
|
||
|
__d("MLogState",["FBLogger","MLinkHack","URI"],(function(a,b,c,d,e,f){__p&&__p();var g={CLICK_POSITION_BOOKMARK:1,CLICK_POSITION_REQUESTS_FLYOUT:2,CLICK_POSITION_MESSAGES_FLYOUT:3,CLICK_POSITION_NOTIFICATIONS_FLYOUT:4,_refid:null,getRefid:function(){return g._refid},setRefid:function(a){g._refid=a},updateLink:function(a,c){__p&&__p();var d=g.getRefid();if(!d)return;var e=a.getNode("tag:a");if(!e||e.getAttribute("href")==="#")return;b("MLinkHack").safe(e,function(){var a=new(b("URI"))(e.getAttribute("href"));a.addQueryData("refid",d);a.addQueryData("pos",c);e.setAttribute("href",a.toString())})}};e.exports=g}),null);
|
||
|
__d("MLogging",["MLogState"],(function(a,b,c,d,e,f){a=function(a){b("MLogState").setRefid(a.refid)};f.main=a}),null);
|
||
|
__d("MPopoverVisiblityTracker",["MHistory"],(function(a,b,c,d,e,f){"use strict";function a(){}e.exports={init:a,isPopoverOpen:function(){return b("MHistory").hasSoftState()}}}),null);
|
||
|
__d("VisibilityTrackingHelper",["MPopoverVisiblityTracker","MViewport","Stratcom","StratcomManager","gkx"],(function(a,b,c,d,e,f){__p&&__p();a={getEventListeners:function(a,c){b("StratcomManager").enableDispatch(document,"scroll");return[b("Stratcom").listen("m:root:render",null,a),b("Stratcom").listen("scroll",null,a),b("Stratcom").listen("MScrollArea:scrollend",null,a)]},getViewportInfo:function(){return{width:b("MViewport").getWidth(),height:b("MViewport").getHeight()}},isSnippetFlyoutVisible:function(){var a=b("gkx")("820050");if(a&&b("MPopoverVisiblityTracker").isPopoverOpen())return!0;a=document.getElementById("MPopupControl");return!!a}};e.exports=a}),null);
|
||
|
__d("requestIdleCallback",["requireCond","cr:694370"],(function(a,b,c,d,e,f){e.exports=b("cr:694370")}),null);
|
||
|
__d("onAfterTTI",["NavigationMetrics","TimeSlice","requestIdleCallback"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=[],h=!1;function a(a,c){c===void 0&&(c=!0);a=b("TimeSlice").guard(a,"onAfterTTI invocation",{propagationType:b("TimeSlice").PropagationType.ORPHAN});h?a():g.push(c?b("requestIdleCallback").bind(null,a):a)}b("NavigationMetrics").addRetroactiveListener(b("NavigationMetrics").Events.EVENT_OCCURRED,function(a,c){c.event==="tti"&&!h&&(h=!0,g.forEach(function(a){a()}),b("NavigationMetrics").removeCurrentListener())});e.exports=a}),null);
|
||
|
__d("InitMAjaxify",["MAjaxify","MLegacyDataStore","MLinkHack","MRequest","Stratcom"],(function(a,b,c,d,e,f){__p&&__p();var g={};function h(a){g[a]=g[a]||new RegExp("(^|\\s+)"+a+"(\\s+|$)");return g[a]}function a(a,b){a=a.className||"";return a.match(h(b))}b("Stratcom").listen("click","ajaxify",function(a){__p&&__p();a.prevent();var c=a.getNode("ajaxify"),d=c.getAttribute("data-ajaxify-class"),e=c.getAttribute("data-confirm-text");if(e&&!confirm(e))return;var f=b("MLegacyDataStore").get(c);if(f.loading)return;f.loading=!0;e=function(){f&&(f.loading=f.request=null),f=null};var g=function(){b("Stratcom").invoke("m:ajax:complete")};e={"finally":e,postprocess:g};g=b("MLinkHack").remove(c);var h=c.getAttribute("data-ajaxify-href")||c.getAttribute("href");if(c.getAttribute("data-method")==="post"){var i=new(b("MRequest"))(h);i.setAutoRetry(!0);f.request=i;b("MAjaxify").ajaxify(a.getRawEvent(),c,i,d,null)}else b("MAjaxify").link(a.getRawEvent(),h,d,e);g&&b("MLinkHack").add(c)})}),null);
|
||
|
__d("MTouchClick",["MCache","Stratcom","Vector"],(function(a,b,c,d,e,f){__p&&__p();var g="MTouchClick.RECENT_CLICKS",h=20,i=2e3,j=["click"],k=null,l=null,m=navigator.userAgent.indexOf("Android")===-1&&navigator.userAgent.match(/^Mozilla\/.*Mobile;.*Gecko\/.*Firefox/g),n=null,o=0,p=200;function q(a){n=a.target,o=a.timeStamp}function r(){n=null,o=0}function s(){var a=u(),c=Date.now();a=a.filter(function(a){return c-a.time<i});b("MCache").setItem(g,a);return a.map(function(a){return a.click})}function t(a){var c=Date.now();a=a.map(function(a){return{click:a,time:c}});a=a.concat(u());b("MCache").setItem(g,a)}function u(){var a=b("MCache").getItem(g);return Array.isArray(a)?a:[]}function v(a,b,c){var d=document.createEvent("MouseEvents"),e=c?c.getTouch():{};c=c?c.getRawEvent():{};d.initMouseEvent(b,!0,!0,window,0,c.screenX||0,c.screenY||0,e.clientX||0,e.clientY||0,!1,!1,!1,!1,0,null);a.dispatchEvent(d);return d}var w={hasTouchEvents:function(){return"ontouchstart"in window},click:function(a,b){__p&&__p();if(b){if(b._processed)return;b._processed=!0}if(m&&a.tagName==="INPUT"&&a.getAttribute("type")==="file"){a.click();return}j.forEach(function(c){v(a,c,b)});var c=b?b.getRawEvent():{target:a,timeStamp:Date.now()};q(c);w.killGhostClicksNearTouch()},killGhostClicksNearTouch:function(){t([k,l])}};(function(){__p&&__p();if(!w.hasTouchEvents())return;function a(a,b){return Math.abs(a.x-b.x)<=h&&Math.abs(a.y-b.y)<=h}function c(b){__p&&__p();var c=s();if(b.detail>0&&c.length>0){b=f(b);for(var d=0;d<c.length;d++){var e=c[d];if(a(b.client,e.client)||a(b.screen,e.screen))return!0}}return!1}function d(a){var b=s();b=b.length>0&&a.target===n&&Math.abs(a.timeStamp-o)<p;b&&r();return b}function e(a){(c(a)||d(a))&&(a.preventDefault(),a.stopPropagation())}j.forEach(function(a){document.addEventListener(a,e,!0)});function f(a){return{client:new(b("Vector"))(a.clientX,a.clientY),screen:new(b("Vector"))(a.screenX,a.screenY)}}b("Stratcom").listen("touchstart",null,function(a){a=a.getRawEvent().touches[0];k=f(a);l=f(a)});b("Stratcom").listen("touchmove",null,function(a){a=a.getRawEvent().touches[0];w._touchEndPosition=f(a)})})();e.exports=w}),null);
|
||
|
__d("MTouchable",["CSS","MLegacyDataStore","MTouchableSyntheticClickGK","MTouchClick","Stratcom","gkx","setTimeoutAcrossTransitions"],(function(a,b,c,d,e,f){__p&&__p();var g=b("MTouchableSyntheticClickGK").USE_SYNTHETIC_CLICK,h="touchable",i=3,j=160,k,l,m,n,o,p;function a(a){__p&&__p();l&&w(!1);l=a.getNode(h);if(l.getAttribute("disabled")!==null){a.prevent();l=null;return}a=a.getRawEvent().targetTouches[0];m=a.target;u();k=[b("Stratcom").listen("touchmove",h,q),b("Stratcom").listen("touchend",h,r),b("Stratcom").listen("touchcancel",h,s)];n={x:a.screenX,y:a.screenY};o=b("setTimeoutAcrossTransitions")(function(){l&&w(!0)},j)}function q(a){l&&x(a)&&(w(!1),t())}function r(a){if(l){var c=!p;w(!0);g&&!b("MLegacyDataStore").get(l).nativeClick&&m.getAttribute("target")!="_blank"&&b("MTouchClick").click(m,a);v(c)}else b("MTouchClick").killGhostClicksNearTouch(),v()}function s(){l&&w(!1),v()}function t(a){clearTimeout(o),l&&b("setTimeoutAcrossTransitions")(w.bind(null,!1,l),a?j:0),p=!1,m=l=n=null}function u(){k&&(k.forEach(function(a){a.remove()}),k=[])}function v(a){t(a),u()}function w(a,c){c||(p=a),b("CSS").conditionClass(c||l,"touched",a)}function x(a){var b=a.getRawEvent().targetTouches[0];a=a.getNode("moving-box")||document.documentElement.scrollWidth>window.innerWidth;return Math.abs(n.y-b.screenY)>=i||a&&Math.abs(n.x-b.screenX)>=i}b("MTouchClick").hasTouchEvents()&&(b("gkx")("676826")||b("Stratcom").listen("touchstart",h,a))}),null);
|
||
|
__d("MLiveData",["MDeepCopy","Stratcom","eventsMixinDeprecated"],(function(a,b,c,d,e,f){__p&&__p();var g={},h={},i,j={},k,l,m=function(){"use strict";function a(a){this.$1=a}var c=a.prototype;c.getData=function(){return b("MDeepCopy")(g[this.$1]||{})};return a}();b("eventsMixinDeprecated")(m,["change"]);a={_set:function(a,b,c){var d=g[a],e=d&&d.timestamp&&b.timestamp&&d.timestamp>b.timestamp;if(l||e)return;!d||c?g[a]=b:Object.assign(g[a]||{},b);h[a]||(h[a]=new m(a));h[a].invoke("change")},update:function(a,b){this._set(a,b,!1)},set:function(a,b){this._set(a,b,!0)},get:function(a){__p&&__p();i||(i=b("Stratcom").listen("m:page:render:cache:start",null,function(){l=!0,b("Stratcom").listen("m:page:iui:response:complete",null,function(){l=!1,b("Stratcom").removeCurrentListener(),Object.keys(j).forEach(function(a){var b=g[a];b&&Object.keys(b).length&&h[a].invoke("change")})})}));j[a]||(j[a]=!0);k||(k=b("Stratcom").listen("m:page:unload",null,function(){j={}}));h[a]||(h[a]=new m(a));return h[a]}};e.exports=a}),null);
|
||
|
__d("destroyOnUnload",["Stratcom"],(function(a,b,c,d,e,f){function a(a){b("Stratcom").listen("m:page:unload",null,function(){b("Stratcom").removeCurrentListener(),a&&a()})}e.exports=a}),null);
|
||
|
__d("MAsyncThrobber",["DOM","MLoadingIndicator","Stratcom","destroyOnUnload"],(function(a,b,c,d,e,f){__p&&__p();var g="async-throbber";a=function(){"use strict";__p&&__p();function a(a){this.$1=b("MLoadingIndicator").init(a);if(!this.$1)return;this.$2=[b("Stratcom").listen("m:ajax:saving:start",null,this.$3.bind(this)),b("Stratcom").listen("m:ajax:saving:complete",null,this.$4.bind(this))];b("destroyOnUnload")(this.$5.bind(this))}var c=a.prototype;c.$3=function(a){a=a&&a.getData();a&&b("DOM").scry(a,"*",g)&&this.$1.willStartAnimation()};c.$4=function(a){a=a&&a.getData();a&&b("DOM").scry(a,"*",g)&&this.$1.willPauseAnimation()};c.$5=function(){while(this.$2&&this.$2.length)this.$2.pop().remove();this.$1=null};return a}();e.exports=a}),null);
|
||
|
__d("MScrollAreaHelper",["MLegacyDataStore"],(function(a,b,c,d,e,f){__p&&__p();function a(a,c){__p&&__p();c=c||10;var d;while(c>0&&a&&a.nodeType===1){d=b("MLegacyDataStore").get(a);if(d&&d.scrollArea)return d.scrollArea;a=a.parentNode;c--}return null}f.findScrollArea=a}),null);
|
||
|
__d("MTimestamp",["fbt","DOM","MLegacyDataStore","Stratcom","setTimeoutAcrossTransitions"],(function(a,b,c,d,e,f,g){__p&&__p();var h=2e4,i=60,j=3600,k;function l(){var a=Math.floor(Date.now()/1e3),c=b("DOM").scry(document,"abbr","timestamp");for(var d=0,e=c.length;d<e;++d){var f=b("MLegacyDataStore").get(c[d]);f=m(a-f.time||0,f["short"],f.forceseconds);f&&(c[d].innerText=f)}clearTimeout(k);k=b("setTimeoutAcrossTransitions")(l,h)}function m(a,b,c){__p&&__p();if(a>12*j)return null;if(a<2*i&&c)return g._({"*":"{number} seconds ago"},[g._param("number",a,[0])]);if(a<2*i)return g._("Just now");if(a<j){c=Math.floor(a/i);return b?g._({"*":"{number} min"},[g._param("number",c,[0])]):g._({"*":"{number} minutes ago"},[g._param("number",c,[0])])}c=Math.floor(a/j);if(b)return g._("{number} hr",[g._param("number",c)]);else if(c==1)return g._("1 hour ago");return g._({"*":"{number} hours ago"},[g._param("number",c,[0])])}l();b("Stratcom").listen("m:update-timestamps",null,function(){l()});f.renderTimestamp=m}),null);
|
||
|
__d("ChannelClientID",["uuid"],(function(a,b,c,d,e,f){"use strict";var g=b("uuid")();a={getID:function(){return g}};e.exports=a}),null);
|
||
|
__d("randomInt",["invariant"],(function(a,b,c,d,e,f,g){function a(a,b){var c=arguments.length;c>0&&c<=2||g(0,1179,c);c===1&&(b=a,a=0);b=b;b>a||g(0,1180,b,a);var d=this.random||Math.random;return Math.floor(a+d()*(b-a))}e.exports=a}),null);
|
||
|
__d("ClientIDs",["randomInt"],(function(a,b,c,d,e,f){var g={};a={getNewClientID:function(){var a=Date.now();a=a+":"+(b("randomInt")(0,4294967295)+1);g[a]=!0;return a},isExistingClientID:function(a){return!!g[a]}};e.exports=a}),null);
|
||
|
__d("MUFIRequest",["ChannelClientID","ClientIDs","MLiveData","MRequest","MURI","Stratcom"],(function(a,b,c,d,e,f){__p&&__p();var g=b("MURI").getHashPrefixRegex(),h={};function a(a){a=new(b("MURI"))(a);var c=a.getFragment();g.test(c)&&(a=new(b("MURI"))(c.replace(g,"/")));return a.setProtocol(null).setDomain(null).setFragment(null)}function c(a,c,d,e,f){__p&&__p();c&&(c.request_id=null,b("MLiveData").update(a,c));h[a]&&h[a].abort();d.addQueryData("client_id",b("ClientIDs").getNewClientID());d.addQueryData("session_id",b("ChannelClientID").getID());c=new(b("MRequest"))(d.toString());c.listen("finally",function(){h[a]=null});c.listen("postprocess",function(){b("Stratcom").invoke("m:ajax:complete")});c.setAutoRetry(!0);f&&c.setBackgroundRetry(f);e&&c.setData(e);h[a]=c;c.send()}e.exports={getURI:a,send:c}}),null);
|
||
|
__d("MParent",["Stratcom"],(function(a,b,c,d,e,f){a={bySigil:function(a,c){a=a;while(a&&a!==document&&!(a instanceof DocumentFragment)&&!b("Stratcom").hasSigil(a,c))a=a.parentNode;return a instanceof HTMLElement?a:null}};e.exports=a}),null);
|
||
|
__d("isNodeWithinRect",[],(function(a,b,c,d,e,f){function a(a,b){if(!a.getBoundingClientRect)return!1;a=a.getBoundingClientRect();return a.bottom>=b.top&&a.top<=b.bottom&&a.right>=b.left&&a.left<=b.right}e.exports=a}),null);
|
||
|
__d("BanzaiBase",["BanzaiAdapter","BanzaiConsts","BanzaiLazyQueue","ErrorUtils","FBLogger"],(function(a,b,c,d,e,f){__p&&__p();var g="ods:banzai",h="send_via_beacon_failure",i=0,j=1,k=2,l=null,m,n=[],o=null,p=[];function q(a,b){a.__meta.status=i,a[3]=(a[3]||0)+1,!a.__meta.retry&&b>=400&&b<600&&n.push(a)}var r={adapter:b("BanzaiAdapter"),SEND:b("BanzaiConsts").SEND,OK:b("BanzaiConsts").OK,ERROR:b("BanzaiConsts").ERROR,SHUTDOWN:b("BanzaiConsts").SHUTDOWN,VITAL_WAIT:b("BanzaiConsts").VITAL_WAIT,BASIC_WAIT:b("BanzaiConsts").BASIC_WAIT,VITAL:{delay:b("BanzaiAdapter").config.MIN_WAIT||b("BanzaiConsts").VITAL_WAIT},BASIC:{delay:b("BanzaiAdapter").config.MAX_WAIT||b("BanzaiConsts").BASIC_WAIT},isEnabled:function(a){return Boolean(b("BanzaiAdapter").config.gks&&b("BanzaiAdapter").config.gks[a])},post:function(a,c,d){__p&&__p();a||b("FBLogger")("banzai").mustfix("Banzai.post called without specifying a route");var e=d==null?void 0:d.retry;if(b("BanzaiAdapter").config.disabled)return;var f=b("BanzaiAdapter").config.blacklist;if(f&&(f.indexOf&&(typeof f.indexOf=="function"&&f.indexOf(a)!=-1)))return;var g=r._wrapData(a,c,r._getEventTime(),e);(d==null?void 0:d.callback)&&(g.__meta.callback=d==null?void 0:d.callback);(d==null?void 0:d.compress)!=null&&(g.__meta.compress=d==null?void 0:d.compress);f=d==null?void 0:d.delay;f==null&&(f=b("BanzaiConsts").BASIC_WAIT);if(d==null?void 0:d.signal){g.__meta.status=j;c=[{user:r._getUserId(),page_id:r._getPageId(),posts:[g],trigger:a}];b("BanzaiAdapter").send(c,function(){g.__meta.status=k,g.__meta.callback&&g.__meta.callback()},function(a){q(g,a)},!0);if(!e)return}n.push(g);(r._schedule(f)||!o)&&(o=a);d=b("BanzaiLazyQueue").flushQueue();d.forEach(function(a){return r.post.apply(r,a)})},registerToSendWithBeacon:function(a,c,d,e){if(!(navigator&&navigator.sendBeacon&&b("BanzaiAdapter").isOkToSendViaBeacon()))return!1;if(!a){b("FBLogger")("banzai").mustfix("Banzai.registerToSendWithBeacon called without specifying a route");return!1}p.push({cb:c,route:a,onSuccess:d,onFailure:e});return!0},flush:function(b,c){a.clearTimeout(l),l=null,r._sendWithCallbacks(b,c)},subscribe:b("BanzaiAdapter").subscribe,canUseNavigatorBeacon:function(){return Boolean(navigator&&navigator.sendBeacon&&b("BanzaiAdapter").isOkToSendViaBeacon())},_canSend:function(a){return a[2]>=r._getEventTime()-(b("BanzaiAdapter").config.EXPIRY||b("BanzaiConsts").EXPIRY)},_getPostBuffer:function(){return n},_clearPostBuffer:function(){n=[]},_schedule:function(b){var c=r._getEventTime()+b;if(!m||c<m){m=c;l&&a.clearTimeout(l);l=a.setTimeout(function(){r._sendWithCallbacks()},b);return!0}return!1},_sendWithCallbacks:function(a,c,d){__p&&__p();m=null;r._schedule(r.BASIC.delay);if(!b("BanzaiAdapter").readyToSend()){c&&c();return}if(r.isEnabled("flush_storage_periodically")||r.isEnabled("error_impact_test")){var e=r._getStorage();b("ErrorUtils").applyWithGuard(e.flush,e)}b("BanzaiAdapter").inform(b("BanzaiConsts").SEND);e=[];var f=[];n=r._gatherWadsAndPostsFromBuffer(e,f,!0,n,d);if(e.length<=0){b("BanzaiAdapter").inform(b("BanzaiConsts").OK);a&&a();return}e[0].trigger=o;o=null;e[0].send_method="ajax";e.map(b("BanzaiAdapter").prepWadForTransit);b("BanzaiAdapter").send(e,function(){f.forEach(function(a){a.__meta.status=k,a.__meta.callback&&a.__meta.callback()}),a&&a()},function(a){f.forEach(function(b){q(b,a)}),c&&c()})},_gatherWadsAndPostsFromBuffer:function(a,b,c,d,e){__p&&__p();e===void 0&&(e=null);var f={},g=d.length,h=!1;return d.filter(function(d,i){__p&&__p();if(h)return!0;var l=d.__meta;if(l.status>=k||!r._canSend(d))return!1;if(l.status>=j)return!0;var m=l.compress!=null?l.compress:!0,n=l.pageID+l.userID+(m?"compress":""),o=f[n];o||(o={user:l.userID,page_id:l.pageID,posts:[],snappy:m},f[n]=o,a.push(o));l.status=j;o.posts.push(d);b.push(d);e!=null&&e>0&&(e--,e==0&&(h=!0,i<g-1&&r._schedule(0)));return c&&l.retry})},_resetPostStatus:function(a){a.__meta.status=i},_store:function(a){a=r._getStorage();b("ErrorUtils").applyWithGuard(a.store,a)},_restore:function(a){a=r._getStorage();b("ErrorUtils").applyWithGuard(a.restore,a);r._schedule(b("Ba
|
||
|
__d("BanzaiStreamPayloads",[],(function(a,b,c,d,e,f){"use strict";var g={};a={addPayload:function(a,b){g[a]=b},removePayload:function(a){delete g[a]},unload:function(a){Object.keys(g).forEach(function(b){b=g[b];a(b.route,b.payload)})}};e.exports=a}),null);
|
||
|
__d("SetIdleTimeoutAcrossTransitions",["NavigationMetrics","cancelIdleCallback","clearTimeout","nullthrows","requestIdleCallbackAcrossTransitions","setTimeoutAcrossTransitions"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=!1,h=new Map();c={start:function(a,c){if(g){var d=b("setTimeoutAcrossTransitions")(function(){var c=b("requestIdleCallbackAcrossTransitions")(function(){a(),h["delete"](c)});h.set(d,c)},c);return d}else return b("setTimeoutAcrossTransitions")(a,c)},clear:function(a){b("clearTimeout")(a),h.has(a)&&(b("cancelIdleCallback")(b("nullthrows")(h.get(a))),h["delete"](a))}};b("NavigationMetrics").addRetroactiveListener(b("NavigationMetrics").Events.EVENT_OCCURRED,function(b,c){c.event==="all_pagelets_loaded"&&(g=!!a.requestIdleCallback)});e.exports=c}),null);
|
||
|
__d("WebStorageMutex",["WebStorage","clearTimeout","pageID","setTimeoutAcrossTransitions"],(function(a,b,c,d,e,f){__p&&__p();var g=null,h=!1,i=b("pageID");function j(){h||(h=!0,g=b("WebStorage").getLocalStorage());return g}a=function(){"use strict";__p&&__p();function a(a){this.name=a}a.testSetPageID=function(a){i=a};var c=a.prototype;c.$1=function(){if(!j())return i;var a=j().getItem("mutex_"+this.name);a=a?a.split(":"):null;return a&&a[1]>=Date.now()?a[0]:null};c.$2=function(a){if(!j())return;a=Date.now()+(a||1e4);b("WebStorage").setItemGuarded(j(),"mutex_"+this.name,i+":"+a)};c.hasLock=function(){return this.$1()==i};c.lock=function(a,c,d){var e=this;this.$3&&b("clearTimeout")(this.$3);i==(this.$1()||i)&&this.$2(d);this.$3=b("setTimeoutAcrossTransitions")(function(){e.$3=null;var b=e.hasLock()?a:c;b&&b(e)},0)};c.unlock=function(){this.$3&&b("clearTimeout")(this.$3),j()&&this.hasLock()&&j().removeItem("mutex_"+this.name)};return a}();e.exports=a}),null);
|
||
|
__d("lowerFacebookDomain",[],(function(a,b,c,d,e,f){b=window.location.hostname.match(/\.(facebook\.sg|facebookcorewwwi\.onion|workplace\.com)$/);var g=b?b[1]:"facebook.com";a.setDomain=function(a){g=a};a.isValidDocumentDomain=function(){return document.domain==g?!0:!1};function a(){document.domain=g}e.exports=a}),null);
|
||
|
__d("BanzaiNew",["BanzaiBase","BanzaiConsts","BanzaiStreamPayloads","CurrentUser","ExecutionEnvironment","FBJSON","NavigationMetrics","SetIdleTimeoutAcrossTransitions","TimeSlice","Visibility","WebStorage","emptyFunction","isInIframe","lowerFacebookDomain","pageID","performanceAbsoluteNow","WebStorageMutex"],(function(a,b,c,d,e,f){__p&&__p();var g="bz:",h={_getStorage:b("BanzaiBase")._getStorage,_getPageId:b("BanzaiBase")._getPageId,_getUserId:b("BanzaiBase")._getUserId,_initialize:b("BanzaiBase")._initialize,_schedule:b("BanzaiBase")._schedule,flush:b("BanzaiBase").flush,_unload:b("BanzaiBase")._unload,post:b("BanzaiBase").post},i=b("isInIframe")(),j=null,k,l,m,n,o=!1;function p(){o||(o=!0,n=b("WebStorage").getLocalStorage());return n}function q(){var a="check_quota";try{var b=p();if(!b)return!1;b.setItem(a,a);b.removeItem(a);return!0}catch(a){return!1}}b("BanzaiBase")._getStorage=function(){__p&&__p();m||(!i?m={store:function(){var a=p();if(!a||b("BanzaiBase")._getPostBuffer().length<=0)return;var c=b("BanzaiBase")._getPostBuffer().map(function(a){return[a[0],a[1],a[2],a[3]||0,a.__meta]});b("BanzaiBase")._clearPostBuffer();b("WebStorage").setItemGuarded(a,g+b("pageID")+"."+b("BanzaiBase")._getEventTime(),b("FBJSON").stringify(c))},restore:function(){__p&&__p();var a=p();if(!a)return;var c=b("WebStorageMutex"),d=function(c){__p&&__p();var d=[];for(var e=0;e<a.length;e++){var f=a.key(e);f.indexOf(g)===0&&f.indexOf("bz:__")!==0&&d.push(f)}d.forEach(function(c){__p&&__p();var d=a.getItem(c);a.removeItem(c);if(!d)return;c=b("FBJSON").parse(d);c.forEach(function(a){if(!a)return;var c=a.__meta=a.pop(),d=b("BanzaiBase")._canSend(a);if(!d)return;d=b("CurrentUser").getID();(c.userID===d||d==="0")&&(b("BanzaiBase")._resetPostStatus(a),b("BanzaiBase")._getPostBuffer().push(a))})});c&&c.unlock()};q()?new c("banzai").lock(d):b("SetIdleTimeoutAcrossTransitions").start(d,0)},flush:function(){var a=p();if(a){j===null&&(j=parseInt(a.getItem(b("BanzaiConsts").LAST_STORAGE_FLUSH),10));var c=j&&b("performanceAbsoluteNow")()-j>=b("BanzaiConsts").STORAGE_FLUSH_INTERVAL;c&&b("BanzaiBase")._restore(!1);(c||!j)&&(j=b("performanceAbsoluteNow")(),b("WebStorage").setItemGuarded(a,b("BanzaiConsts").LAST_STORAGE_FLUSH,j.toString()))}}}:m={store:b("emptyFunction"),restore:b("emptyFunction"),flush:b("emptyFunction")});return m};b("BanzaiBase")._getPageId=function(){return b("pageID")};b("BanzaiBase")._getUserId=function(){return b("CurrentUser").getID()};b("BanzaiBase")._initialize=function(){b("ExecutionEnvironment").canUseDOM&&(b("BanzaiBase").adapter.useBeacon&&b("Visibility").isSupported()?(b("Visibility").addListener(b("Visibility").HIDDEN,function(){b("BanzaiBase")._getPostBuffer().length>0&&(b("BanzaiBase")._tryToSendViaBeacon()||b("BanzaiBase")._store(!1))}),(b("BanzaiBase").isEnabled("enable_client_logging_clear_on_visible")||b("BanzaiBase").isEnabled("error_impact_test"))&&b("Visibility").addListener(b("Visibility").VISIBLE,function(){b("BanzaiBase")._tryToSendViaBeacon()||b("BanzaiBase")._restore(!1)})):b("BanzaiBase").adapter.setHooks(b("BanzaiBase")),b("BanzaiBase").adapter.setUnloadHook(b("BanzaiBase")),b("NavigationMetrics").addListener(b("NavigationMetrics").Events.NAVIGATION_DONE,function(a,c){if(c.pageType!=="normal")return;b("BanzaiBase")._restore(!1);b("NavigationMetrics").removeCurrentListener()}))};b("BanzaiBase")._getEventTime=function(){return b("performanceAbsoluteNow")()};var r=b("TimeSlice").guard(function(){k=null,b("BanzaiBase")._sendWithCallbacks()},"Banzai.send",{propagationType:b("TimeSlice").PropagationType.ORPHAN});b("BanzaiBase")._schedule=function(a){__p&&__p();var c=b("BanzaiBase")._getEventTime()+a;if(!k||c<k){k=c;b("SetIdleTimeoutAcrossTransitions").clear(l);c=function(){l=b("SetIdleTimeoutAcrossTransitions").start(r,a)};c();return!0}return!1};b("BanzaiBase").flush=function(a,c){b("SetIdleTimeoutAcrossTransitions").clear(l),k=null,b("BanzaiBase")._sendWithCallbacks(a,c)};b("BanzaiBase")._unload=function(){b("BanzaiStreamPayloads").unload(b("BanzaiBase").post),h._unload()};b("BanzaiBase").post=function(c,d,e){__p
|
||
|
__d("BanzaiODS",["invariant","Banzai","Random"],(function(a,b,c,d,e,f,g){__p&&__p();a=function(){"use strict";__p&&__p();function a(){this.$1={},this.$2={}}var c=a.prototype;c.setEntitySample=function(a,c){this.$2[a]=b("Random").random()<c?c:0};c.bumpEntityKey=function(a,b,c){c===void 0&&(c=1),this.$3(a,b,c)};c.bumpFraction=function(a,b,c,d){c===void 0&&(c=1),d===void 0&&(d=1),this.$3(a,b,c,d)};c.flush=function(a){for(var c in this.$1)b("Banzai").post("ods:"+c,this.$1[c],a);this.$1={}};c.create=function(){return new a()};c.$3=function(a,b,c,d){__p&&__p();c===void 0&&(c=1);d===void 0&&(d=1);if(a in this.$2){if(this.$2[a]<=0)return;c/=this.$2[a]}var e=this.$1[a]||(this.$1[a]={}),f=e[b]||(e[b]=[0]);c=Number(c);d=Number(d);if(!isFinite(c)||!isFinite(d))return;f[0]+=c;arguments.length>=4&&(f[1]||(f[1]=0),f[1]+=d)};return a}();var h=new a();b("Banzai").subscribe(b("Banzai").SEND,function(){return h.flush()});e.exports=h}),null);
|
||
|
__d("BanzaiOriginal",["requireCond","cr:682174"],(function(a,b,c,d,e,f){e.exports=b("cr:682174")}),null);
|
||
|
__d("BanzaiScuba",["Banzai","FBLogger"],(function(a,b,c,d,e,f){__p&&__p();var g="scuba_sample";a=function(){"use strict";__p&&__p();function a(a,c,d){this.posted=!1,a||b("FBLogger")("BanzaiScuba").warn("Can't post a sample without a dataset"),this.dataset=a,this.$1=c,this.options=d}var c=a.prototype;c.$2=function(a,c,d){if(this.posted){b("FBLogger")("BanzaiScuba").warn("Trying to add to an already posted sample");return a}a=a||{};a[c]=d;return a};c.addNormal=function(a,b){this.normal=this.$2(this.normal,a,b);return this};c.addInteger=function(a,b){this["int"]=this.$2(this["int"],a,b);return this};c.addDenorm=function(a,b){this.denorm=this.$2(this.denorm,a,b);return this};c.addTagSet=function(a,b){this.tags=this.$2(this.tags,a,b);return this};c.addNormVector=function(a,b){this.normvector=this.$2(this.normvector,a,b);return this};c.post=function(a){__p&&__p();if(this.posted){b("FBLogger")("BanzaiScuba").warn("Trying to re-post");return}if(!this.dataset)return;var c={};c._ds=this.dataset;c._options=this.options;this.normal&&(c.normal=this.normal);this["int"]&&(c["int"]=this["int"]);this.denorm&&(c.denorm=this.denorm);this.tags&&(c.tags=this.tags);this.normvector&&(c.normvector=this.normvector);this.$1!==null&&this.$1!==""&&this.$1!==void 0&&(c._lid=this.$1);b("Banzai").post(g,c,a);this.posted=!0};return a}();e.exports=a}),null);
|
||
|
__d("GeneratedLoggerUtils",["invariant","Banzai"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=b("Banzai").post;window.location.search.indexOf("showlog")>-1&&(a=function(a,c,d){b("Banzai").post(a,c,d)});c={log:a,serializeVector:function(a){__p&&__p();if(!a)return a;if(Array.isArray(a))return a;if(a.toArray){var b=a;return b.toArray()}if(typeof a==="object"&&a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"])return Array.from(a);g(0,3874,a)},serializeMap:function(a){__p&&__p();if(!a)return a;if(a.toJS){var b=a;return b.toJS()}if(typeof a==="object"&&a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]){b=a;var c={};for(var b=b,d=Array.isArray(b),e=0,b=d?b:b[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var f;if(d){if(e>=b.length)break;f=b[e++]}else{e=b.next();if(e.done)break;f=e.value}f=f;c[f[0]]=f[1]}return c}if(Object.prototype.toString.call(a)==="[object Object]")return a;g(0,3875,a)},checkExtraDataFieldNames:function(a,b){Object.keys(a).forEach(function(a){Object.prototype.hasOwnProperty.call(b,a)&&g(0,3876,a)})},warnForInvalidFieldNames:function(a,b,c,d){},throwIfNull:function(a,b){a||g(0,3877,b);return a}};e.exports=c}),null);
|
||
|
__d("VisualCompletionGating",["requireCond","cr:729414"],(function(a,b,c,d,e,f){"use strict";e.exports=b("cr:729414")}),null);
|
||
|
__d("joinClasses",[],(function(a,b,c,d,e,f){"use strict";function a(a){var b=a||"",c=arguments.length<=1?0:arguments.length-1;for(var d=0;d<c;d++){var e=d+1<1||arguments.length<=d+1?void 0:arguments[d+1];e!=null&&e!==""&&(b=(b?b+" ":"")+e)}return b}e.exports=a}),null);
|
||
|
__d("mixin",[],(function(a,b,c,d,e,f){__p&&__p();function a(){var a=function(){},b=0,c;while(b<0||arguments.length<=b?void 0:arguments[b]){c=b<0||arguments.length<=b?void 0:arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a.prototype[d]=c[d]);b+=1}return a}e.exports=a}),null);
|
||
|
__d("CurrentLocale",["LocaleInitialData"],(function(a,b,c,d,e,f){a={};a.get=function(){return b("LocaleInitialData").locale};e.exports=a}),null);
|
||
|
__d("isLinkshimURI",["isFacebookURI","isMessengerDotComURI"],(function(a,b,c,d,e,f){"use strict";function a(a){var c=a.getPath();return(c==="/l.php"||c.indexOf("/si/ajax/l/")===0||c.indexOf("/l/")===0||c.indexOf("l/")===0)&&(b("isFacebookURI")(a)||b("isMessengerDotComURI")(a))?!0:!1}e.exports=a}),null);
|
||
|
__d("forEachObject",[],(function(a,b,c,d,e,f){"use strict";var g=Object.prototype.hasOwnProperty;function a(a,b,c){for(var d in a){var e=d;g.call(a,e)&&b.call(c,a[e],e,a)}}e.exports=a}),null);
|
||
|
__d("generateLiteTypedLogger",["Banzai"],(function(a,b,c,d,e,f){"use strict";function a(a){return{log:function(c){b("Banzai").post(a,c,b("Banzai").BASIC)},logVital:function(c){b("Banzai").post(a,c,b("Banzai").VITAL)},logImmediately:function(c){b("Banzai").post(a,c,{signal:!0})}}}e.exports=a}),null);
|
||
|
__d("requestIdleCallbackBlue",["TimerStorage","TimeSlice","requestIdleCallbackAcrossTransitions"],(function(a,b,c,d,e,f){e.exports=function(c,d){var e;function f(a){b("TimerStorage").unset(b("TimerStorage").IDLE_CALLBACK,e),c(a)}b("TimeSlice").copyGuardForWrapper(c,f);e=b("requestIdleCallbackAcrossTransitions").call(a,f,d);b("TimerStorage").set(b("TimerStorage").IDLE_CALLBACK,e);return e}}),null);
|
||
|
__d("PerfXSharedFields",[],(function(a,b,c,d,e,f){var g={addCommonValues:function(a){navigator&&navigator.hardwareConcurrency!==void 0&&(a.num_cores=navigator.hardwareConcurrency);navigator&&navigator.deviceMemory&&(a.ram_gb=navigator.deviceMemory);navigator&&navigator.connection&&(typeof navigator.connection.downlink==="number"&&(a.downlink_megabits=navigator.connection.downlink),typeof navigator.connection.effectiveType==="string"&&(a.effective_connection_type=navigator.connection.effectiveType),typeof navigator.connection.rtt==="number"&&(a.rtt_ms=navigator.connection.rtt));return a},getCommonData:function(){var a={};g.addCommonValues(a);return a}};e.exports=g}),null);
|
||
|
__d("XHRHttpError",[],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g="HTTP_CLIENT_ERROR",h="HTTP_PROXY_ERROR",i="HTTP_SERVER_ERROR",j="HTTP_TRANSPORT_ERROR",k="HTTP_UNKNOWN_ERROR";a={HTTP_CLIENT_ERROR:g,HTTP_PROXY_ERROR:h,HTTP_SERVER_ERROR:i,HTTP_TRANSPORT_ERROR:j,HTTP_UNKNOWN_ERROR:k,getErrorCode:function(a,b){__p&&__p();if(b===0){a=a.getProtocol();return a==="file"||a==="ftp"?null:j}else if(b>=100&&b<200)return h;else if(b>=200&&b<300)return null;else if(b>=400&&b<500)return g;else if(b>=500&&b<600)return i;else if(b>=12001&&b<12156)return j;else return k}};e.exports=a}),null);
|
||
|
__d("xhrSimpleDataSerializer",[],(function(a,b,c,d,e,f){"use strict";function a(a){var b=[];for(var c in a)b.push(encodeURIComponent(c)+"="+encodeURIComponent(a[c]));return b.join("&")}e.exports=a}),null);
|
||
|
__d("XHRRequest",["invariant","DTSG_ASYNC","DTSGUtils","Env","ErrorUtils","FBLogger","ResourceTimingsStore","ResourceTypes","SprinkleConfig","TimeSlice","URI","XHRHttpError","ZeroRewrites","getAsyncHeaders","xhrSimpleDataSerializer"],(function(a,b,c,d,e,f,g){__p&&__p();var h={loadedBytes:null,totalBytes:null};a=function(){"use strict";__p&&__p();function a(a){this.setURI(a),this.setResponseType(null),this.setMethod("POST"),this.setTransportBuilder(b("ZeroRewrites").getTransportBuilderForURI(this.getURI())),this.setDataSerializer(b("xhrSimpleDataSerializer")),this.$1=b("ResourceTimingsStore").getUID(b("ResourceTypes").XHR,a!=null?a.toString():"")}var c=a.prototype;c.setURI=function(a){this.$2=b("ZeroRewrites").rewriteURI(new(b("URI"))(a));return this};c.getURI=function(){return this.$2};c.setResponseType=function(a){this.$3=a;return this};c.setMethod=function(a){this.$4=a;return this};c.getMethod=function(){return this.$4};c.setData=function(a){this.$5=a;return this};c.getData=function(){return this.$5};c.setRawData=function(a){this.$6=a;return this};c.setRequestHeader=function(a,b){this.$7||(this.$7={});this.$7[a]=b;return this};c.setTimeout=function(a){this.$8=a;return this};c.getTimeout=function(){return this.$8};c.setResponseHandler=function(a){this.$9=a;return this};c.getResponseHandler=function(){return this.$9};c.setErrorHandler=function(a){this.$10=a;return this};c.getErrorHandler=function(){return this.$10};c.setNetworkFailureHandler=function(a){this.$11=a;return this};c.getNetworkFailureHandler=function(){return this.$11};c.getResponseHeader=function(a){return this.$12.getResponseHeader(a)};c.setAbortHandler=function(a){this.$13=a;return this};c.getAbortHandler=function(){return this.$13};c.setTimeoutHandler=function(a){this.$14=a;return this};c.getTimeoutHandler=function(){return this.$14};c.setUploadProgressHandler=function(a){this.$15=a;return this};c.setDownloadProgressHandler=function(a){this.$16=a;return this};c.setTransportBuilder=function(a){!this.$17||!b("ZeroRewrites").isRewritten(this.$2)?this.$17=a:b("FBLogger")("iorg-FOS").blameToPreviousFile().mustfix("can not set new TransportBuilder for the request %s",this.getURI());return this};c.setDataSerializer=function(a){this.$18=a;return this};c.send=function(){__p&&__p();var a=this.$8,c=this.$17(),d=this.getURI(),e=new(b("URI"))(d).getQualifiedURI().toString(),f=this.$1;b("ResourceTimingsStore").updateURI(b("ResourceTypes").XHR,f,e);b("ResourceTimingsStore").measureRequestSent(b("ResourceTypes").XHR,f);this.$12=c;this.$4==="POST"||!this.$6||g(0,2346,this.$6,d);b("Env").force_param&&(this.$5=babelHelpers["extends"]({},this.getData()||{},b("Env").force_param));if(this.$4==="GET"&&b("DTSGUtils").shouldAppendToken(d)){e=b("DTSG_ASYNC").getCachedToken?b("DTSG_ASYNC").getCachedToken():b("DTSG_ASYNC").getToken();e&&(this.$5?this.$5.fb_dtsg_ag=e:this.$5={fb_dtsg_ag:e},b("SprinkleConfig").param_name&&(this.$5[b("SprinkleConfig").param_name]=b("DTSGUtils").getNumericValue(e)))}this.$4==="GET"||this.$6?(d.addQueryData(this.$5),e=this.$6):e=this.$18(this.$5);function h(a){b("ResourceTimingsStore").measureResponseReceived(b("ResourceTypes").XHR,f);for(var c=arguments.length,d=new Array(c>1?c-1:0),e=1;e<c;e++)d[e-1]=arguments[e];a.apply(this,d)}h=b("TimeSlice").guard(h,"XHRRequest response received",{propagationType:b("TimeSlice").PropagationType.CONTINUATION});c.onreadystatechange=this.$19(h);c.onerror=this.$20(h);c.upload&&this.$15&&(c.upload.onprogress=this.$21.bind(this));this.$16&&(c.onprogress=this.$22.bind(this));a&&(this.$23=setTimeout(this.$24.bind(this),a));this.$25!==null&&this.$25!==void 0&&(c.withCredentials=this.$25);c.open(this.$4,d.toString(),!0);h=!1;if(this.$7)for(var i in this.$7)i.toLowerCase()==="content-type"&&(h=!0),c.setRequestHeader(i,this.$7[i]);this.$4=="POST"&&!this.$6&&!h&&c.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var j=b("getAsyncHeaders")(d);Object.keys(j).forEach(function(a){c.setRequestHeader(a,j[a])});this.$3==="arraybuffer"&&("responseType"in c?c.responseType="arraybuffer":"overrideMimeType"in c?c.overri
|
||
|
__d("DataAttributeUtils",["DataStore","Parent"],(function(a,b,c,d,e,f){__p&&__p();var g=[],h={LEGACY_CLICK_TRACKING_ATTRIBUTE:"data-ft",CLICK_TRACKING_DATASTORE_KEY:"data-ft",ENABLE_STORE_CLICK_TRACKING:"data-fte",IMPRESSION_TRACKING_CONFIG_ATTRIBUTE:"data-xt-vimp",IMPRESSION_TRACKING_CONFIG_DATASTORE_KEY:"data-xt-vimp",REMOVE_LEGACY_TRACKING:"data-ftr",getDataAttribute:function(a,b){return i[b]?i[b](a):a.getAttribute(b)},setDataAttribute:function(a,b,c){return j[b]?j[b](a,c):a.setAttribute(b,c)},getDataFt:function(a){if(a.getAttribute(h.ENABLE_STORE_CLICK_TRACKING)){var c=b("DataStore").get(a,h.CLICK_TRACKING_DATASTORE_KEY);c||(c=h.moveClickTrackingToDataStore(a,a.getAttribute(h.REMOVE_LEGACY_TRACKING)));return c}return a.getAttribute(h.LEGACY_CLICK_TRACKING_ATTRIBUTE)},setDataFt:function(a,c){if(a.getAttribute(h.ENABLE_STORE_CLICK_TRACKING)){b("DataStore").set(a,h.CLICK_TRACKING_DATASTORE_KEY,c);return}a.setAttribute(h.LEGACY_CLICK_TRACKING_ATTRIBUTE,c)},moveXTVimp:function(a){h.moveAttributeToDataStore(a,h.IMPRESSION_TRACKING_CONFIG_ATTRIBUTE,h.IMPRESSION_TRACKING_CONFIG_DATASTORE_KEY),g.push(a.id)},getXTrackableElements:function(){var a=g.map(function(a){return document.getElementById(a)}).filter(function(a){return!!a}),b=document.querySelectorAll("[data-xt-vimp]");for(var c=0;c<b.length;c++)a.push(b[c]);return a},getDataAttributeGeneric:function(a,c,d){d=b("DataStore").get(a,d);return d!==void 0?d:a.getAttribute(c)},moveAttributeToDataStore:function(a,c,d){var e=a.getAttribute(c);e&&(b("DataStore").set(a,d,e),a.removeAttribute(c))},moveClickTrackingToDataStore:function(a,c){var d=a.getAttribute(h.LEGACY_CLICK_TRACKING_ATTRIBUTE);d&&(b("DataStore").set(a,h.CLICK_TRACKING_DATASTORE_KEY,d),c&&a.removeAttribute(h.LEGACY_CLICK_TRACKING_ATTRIBUTE));return d},getClickTrackingParent:function(a){a=b("Parent").byAttribute(a,h.LEGACY_CLICK_TRACKING_ATTRIBUTE)||b("Parent").byAttribute(a,h.ENABLE_STORE_CLICK_TRACKING);return a},getClickTrackingElements:function(a){return a.querySelectorAll("["+h.LEGACY_CLICK_TRACKING_ATTRIBUTE+"], ["+h.ENABLE_STORE_CLICK_TRACKING+"]")},getParentByAttributeOrDataStoreKey:function(a,c,d){while(a&&(!a.getAttribute||!a.getAttribute(c))&&b("DataStore").get(a,d)===void 0)a=a.parentNode;return a}},i={"data-ft":h.getDataFt,"data-xt-vimp":function(a){return h.getDataAttributeGeneric(a,"data-xt-vimp","data-xt-vimp")},"data-ad":function(a){return h.getDataAttributeGeneric(a,"data-ad","data-ad")},"data-xt":function(a){return h.getDataAttributeGeneric(a,"data-xt","data-xt")}},j={"data-ft":h.setDataFt,"data-xt":function(a,c){b("DataStore").set(a,"data-xt",c)}};e.exports=h}),null);
|
||
|
__d("WebFunnelLogger",["invariant","Banzai"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=function(){__p&&__p();function a(a){this.$2={},this.$3={},this.$4="web_funnel_logging",this.$5(),this.$1.funnel_definition=a}var c=a.prototype;c.log=function(){this.$1.funnel_payload=JSON.stringify(this.$2),this.$1.action_payload=JSON.stringify(this.$3),b("Banzai").post(this.$4,this.$1,b("Banzai").BASIC),this.$5()};c.logWithEventTime=function(a){this.$1.event_time=a/1e3,this.$6(),b("Banzai").post(this.$4,this.$1,b("Banzai").BASIC),this.$5()};c.logVital=function(){this.$6(),b("Banzai").post(this.$4,this.$1,b("Banzai").VITAL),this.$5()};c.logVitalWithEventTime=function(a){this.$1.event_time=a/1e3,this.$6(),b("Banzai").post(this.$4,this.$1,b("Banzai").VITAL),this.$5()};c.$6=function(){this.$1.funnel_payload=JSON.stringify(this.$2),this.$1.action_payload=JSON.stringify(this.$3),this.$1.action!==null||g(0,5829),this.$1.session_key!==null||g(0,5830)};c.$5=function(){this.$1={};this.$2={};this.$3={};return this};c.setAction=function(a){this.$1.action=a;return this};c.addActionPayload=function(a,b){this.$3[a]=b;return this};c.setActionTag=function(a){this.$1.action_tag=a;return this};c.addFunnelPayload=function(a,b){this.$2[a]=b;return this};c.setFunnelTags=function(a){this.$1.funnel_tags=a;return this};c.setSecondaryOrder=function(a){this.$1.secondary_order_value=a;return this};c.setSessionKey=function(a){this.$1.session_key=a;return this};c.markStart=function(){this.$1.session_marker="start";return this};c.markEnd=function(){this.$1.session_marker="end";return this};c.setUserId=function(a){this.$1.user_id=a;return this};c.setIsEmployee=function(a){this.$1.is_employee=a;return this};return a}();e.exports=a}),null);
|