mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
18 lines
19 KiB
JavaScript
18 lines
19 KiB
JavaScript
|
if (self.CavalryLogger) { CavalryLogger.start_js(["AuOuY"]); }
|
||
|
|
||
|
__d("XInstagramLoginSyncUpdateController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/instagram/login_sync/update/",{})}),null);
|
||
|
__d("InstagramLoginSync",["Event","XAsyncRequest","XInstagramLoginSyncUpdateController"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g="https://www.instagram.com",h={ready:"ig_iframe_ready",success:"ig_iframe_success",error:"ig_iframe_error"};a={init:function(){__p&&__p();window.parent.postMessage({eventName:h.ready},g+"/'"),b("Event").listen(window,"message",function(a){__p&&__p();if(a.origin!==g)return;var c=b("XInstagramLoginSyncUpdateController").getURIBuilder().getURI(),d=a.data.data;if(d!=null){var e=function(a,b,c){b=b.errorDescription;c={eventName:h[c],errorDescription:b};a.source.postMessage(c,a.origin)};new(b("XAsyncRequest"))().setURI(c).setMethod("POST").setData({encrypted_data:d}).setHandler(function(b){return e(a,b,"success")}).setErrorHandler(function(b){return e(a,b,"error")}).send()}})}};e.exports=a}),null);
|
||
|
__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);
|
||
|
__d("BanzaiAdapter",["Arbiter","BanzaiConsts","CurrentUser","QueryString","Run","SiteData","URI","UserAgent","ZeroRewrites","getAsyncParams","BanzaiConfig","requireCond","cr:695720"],(function(a,b,c,d,e,f){__p&&__p();var g=[],h=new(b("Arbiter"))(),i="/ajax/bz",j="POST",k={config:b("BanzaiConfig"),endpoint:i,useBeacon:!0,getUserID:function(){return b("CurrentUser").getID()},inform:function(a){h.inform(a)},subscribe:function(a,b){return h.subscribe(a,b)},cleanup:function(){var a=g;g=[];a.forEach(function(a){a.readyState<4&&a.abort()})},readyToSend:function(){return b("UserAgent").isBrowser("IE <= 8")||navigator.onLine},send:function(a,c,d,e){__p&&__p();var f=b("ZeroRewrites").rewriteURI(new(b("URI"))(i)),h=b("ZeroRewrites").getTransportBuilderForURI(f)();h.open(j,f.toString(),!0);h.setRequestHeader("Content-Type","application/x-www-form-urlencoded");h.onreadystatechange=function(){if(h.readyState>=4){var a=g.indexOf(h);a>=0&&g.splice(a,1);try{a=h.status}catch(b){a=0}a==200?(c&&c(),e||k.inform(b("BanzaiConsts").OK)):(d&&d(a),e||k.inform(b("BanzaiConsts").ERROR))}};g.push(h);h.send(k.prepForTransit(a))},addRequestAuthData:function(a){return a},prepForTransit:function(a){var c=b("getAsyncParams")(j);c.q=JSON.stringify(a);c.ts=Date.now();c.ph=b("SiteData").push_phase;return b("QueryString").encode(c)},prepWadForTransit:function(a){if(a.snappy==null||a.snappy===!0){var c=Date.now(),d=JSON.stringify(a.posts),e=b("cr:695720").compressStringToSnappy(d);e!=null&&e.length<d.length?(a.posts=e,a.snappy_ms=Date.now()-c):delete a.snappy}},setHooks:function(a){},setUnloadHook:function(a){b("Run").onAfterUnload(a._unload)},onUnload:function(a){b("Run").onAfterUnload(a)},isOkToSendViaBeacon:function(){return!0}};e.exports=k}),null);
|
||
|
__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("BanzaiOld",["BanzaiAdapter","NavigationMetrics","BanzaiConsts","BanzaiLazyQueue","BanzaiStreamPayloads","CurrentUser","ErrorUtils","ExecutionEnvironment","FBJSON","FBLogger","SetIdleTimeoutAcrossTransitions","TimeSlice","Visibility","WebStorage","emptyFunction","isInIframe","lowerFacebookDomain","pageID","performanceAbsoluteNow","WebStorageMutex"],(function(a,b,c,d,e,f){__p&&__p();var g=6e4,h=1e3,i=b("BanzaiAdapter"),j=b("isInIframe")(),k="bz:",l="ods:banzai",m="send_via_beacon_failure",n=0,o=1,p=2,q=null,r,s,t=[],u=null,v=[];function w(a){return a[2]>=b("performanceAbsoluteNow")()-((a=i.config.EXPIRY)!=null?a:K.EXPIRY)}function x(a,b){var c=a.__meta;c.status=n;a[3]=(a[3]||0)+1;c.retry===!1&&b>=400&&b<600&&t.push(a)}function y(a,c,d,e){a=[a,c,d,0];a.__meta={retry:e===!0,pageID:b("pageID"),userID:b("CurrentUser").getID(),status:n};return a}function z(){__p&&__p();var a=[];v.forEach(function(c){var d=c.cb();d.forEach(function(d){var e=c.route;if(e!=null||e!=""){e=y(e,d,b("performanceAbsoluteNow")());e.__meta.onSuccess=c.onSuccess;e.__meta.onFailure=c.onFailure;a.push(e)}})});v=[];var c=[],d=[];E(c,d,!0,a);if(c.length>0){c[0].send_method="beacon";c.map(i.prepWadForTransit);c=new Blob([i.addRequestAuthData(i.prepForTransit(c))],{type:"application/x-www-form-urlencoded"});c=navigator.sendBeacon(K.adapter.endpoint,c);c?d.forEach(function(a){a=a.__meta;a!=null&&a.onSuccess!=null&&a.onSuccess()}):d.forEach(function(a){a=a.__meta;a!=null&&a.onFailure!=null&&a.onFailure()})}}function A(a){__p&&__p();var c=b("performanceAbsoluteNow")()+a;if(s==null||c<s){s=c;b("SetIdleTimeoutAcrossTransitions").clear(r);c=function(){r=b("SetIdleTimeoutAcrossTransitions").start(B,a)};c();return!0}return!1}var B=b("TimeSlice").guard(function(){C(null,null)},"Banzai.send",{propagationType:b("TimeSlice").PropagationType.ORPHAN});function C(a,c){__p&&__p();s=null;A(K.BASIC.delay);if(!i.readyToSend()){c&&c();return}(K.isEnabled("flush_storage_periodically")||K.isEnabled("error_impact_test"))&&(J(),b("ErrorUtils").applyWithGuard(F.flush,F));i.inform(K.SEND);var d=[],e=[];t=E(d,e,!0,t);if(d.length<=0){i.inform(K.OK);a&&a();return}d[0].trigger=u;u=null;d[0].send_method="ajax";d.map(i.prepWadForTransit);i.send(d,function(){e.forEach(function(a){a=a.__meta;a.status=p;a.callback!=null&&a.callback()}),a&&a()},function(a){e.forEach(function(b){x(b,a)}),c&&c()})}function D(){__p&&__p();if(!(navigator&&navigator.sendBeacon&&i.isOkToSendViaBeacon()))return!1;var a=[],c=[];t=E(a,c,!1,t);if(a.length<=0)return!1;a[0].send_method="beacon";a.map(i.prepWadForTransit);a=new Blob([i.addRequestAuthData(i.prepForTransit(a))],{type:"application/x-www-form-urlencoded"});a=navigator.sendBeacon(K.adapter.endpoint,a);if(!a){c.forEach(function(a){t.push(a)});t.push(y(l,(a={},a[m]=[1],a),b("performanceAbsoluteNow")()));return!1}return!0}function E(a,b,c,d){__p&&__p();var e={};return d.filter(function(d){__p&&__p();var f=d.__meta;if(f.status>=p||!w(d))return!1;if(f.status>=o)return!0;var g=f.compress!=null?f.compress:!0,h=f.pageID+f.userID+(g?"compress":""),i=e[h];i||(i={user:f.userID,page_id:f.pageID,posts:[],snappy:g},e[h]=i,a.push(i));f.status=o;i.posts.push(d);b.push(d);return c&&!!f.retry})}var F,G,H=!1;function I(){H||(H=!0,G=b("WebStorage").getLocalStorage());return G}function J(){__p&&__p();F||(!j?F={store:function(){var a=I();if(a==null||t.length<=0)return;var c=t.map(function(a){return[a[0],a[1],a[2],a[3]||0,a.__meta]});t=[];b("WebStorage").setItemGuarded(a,k+b("pageID")+"."+b("performanceAbsoluteNow")(),b("FBJSON").stringify(c))},restore:function(){__p&&__p();var a=I();if(!a)return;var c=b("WebStorageMutex");new c("banzai").lock(function(c){__p&&__p();var d=[];for(var e=0;e<a.length;e++){var f=a.key(e);if(f==null||f==="")continue;f.indexOf(k)===0&&f.indexOf("bz:__")!==0&&d.push(f)}d.forEach(function(c){__p&&__p();var d=a.getItem(c);a.removeItem(c);if(d==null)return;c=b("FBJSON").parse(d);c.forEach(function(a){if(!a)return;var c=a.__meta=a.pop(),d=w(a);if(!d)return;d=b("CurrentUser").getID();(c.userID===d||d==="0")&&(c.status=n,t.push(a))})});c.unlock()})},flush:func
|
||
|
__d("BanzaiOriginal",["requireCond","cr:682174"],(function(a,b,c,d,e,f){e.exports=b("cr:682174")}),null);
|
||
|
__d("RecaptchaV2IFrameContainer",["RecaptchaV2Constants"],(function(a,b,c,d,e,f){__p&&__p();var g=b("RecaptchaV2Constants").RecaptchaV2IFrameMessageTypes,h=["facebook.com","messenger.com","workplace.com"],i=16;e.exports={init:function(){__p&&__p();var a=0,b=null;window.successCallback=c;window.parent.postMessage({type:g.GET_ORIGIN},"*");window.setInterval(d,250);function c(a){j({type:g.CAPTCHA_SOLVED,token:a})}function d(){__p&&__p();var b=document.getElementsByTagName("iframe"),c=0,d=0;for(var e=0;e<b.length;e++){var f=b[e],h=window.getComputedStyle(f);if(h.visibility==="hidden"||h.opacity===0)continue;h=f.getBoundingClientRect();c=Math.min(c,h.top);d=Math.max(d,h.bottom)}f=d-c+i;f!==0&&a!==f&&(a=f,j({type:g.RESIZE_IFRAME,size:{height:a}}))}function e(a,b){a=new URL(a).hostname;return new RegExp(b+"$").test(a)}function f(a){for(var b=0;b<h.length;b++)if(e(a,h[b]))return!0;return!1}function j(a,c){var d=(c=c)!=null?c:1;if(b==null){d<=3&&window.setTimeout(function(){j(a,d+1)},250*Math.pow(2,d*d));return}window.parent.postMessage(a,b)}window.addEventListener("message",function(a){f(a.origin)&&(b=a.origin)})}}}),null);
|
||
|
__d("cancelIdleCallbackBlue",["IdleCallbackImplementation","TimerStorage","TimeSlice"],(function(a,b,c,d,e,f){var g=b("TimerStorage").IDLE_CALLBACK;function a(a){b("TimerStorage").unset(g,a);var c=g+String(a);b("TimeSlice").cancelWithToken(c);b("IdleCallbackImplementation").cancelIdleCallback(a)}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);
|