Advertisement
Guest User

??

a guest
Jun 22nd, 2012
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.48 KB | None | 0 0
  1. <html><head></head><body><script>var ES5 = function(){
  2. __d("ES5ArrayPrototype",[],function(a,b,c,d,e,f){var g={};g.map=function(h,i){if(typeof h!='function')throw new TypeError();var j,k=this.length,l=new Array(k);for(j=0;j<k;++j)if(j in this)l[j]=h.call(i,this[j],j,this);return l;};g.forEach=function(h,i){g.map.call(this,h,i);};g.filter=function(h,i){if(typeof h!='function')throw new TypeError();var j,k,l=this.length,m=[];for(j=0;j<l;++j)if(j in this){k=this[j];if(h.call(i,k,j,this))m.push(k);}return m;};g.every=function(h,i){if(typeof h!='function')throw new TypeError();var j=new Object(this),k=j.length;for(var l=0;l<k;l++)if(l in j)if(!h.call(i,j[l],l,j))return false;return true;};g.some=function(h,i){if(typeof h!='function')throw new TypeError();var j=new Object(this),k=j.length;for(var l=0;l<k;l++)if(l in j)if(h.call(i,j[l],l,j))return true;return false;};g.indexOf=function(h,i){var j=this.length;i|=0;if(i<0)i+=j;for(;i<j;i++)if(i in this&&this[i]===h)return i;return -1;};e.exports=g;});
  3. __d("ES5FunctionPrototype",[],function(a,b,c,d,e,f){var g={};g.bind=function(h){if(typeof this!='function')throw new TypeError('Bind must be called on a function');var i=this,j=Array.prototype.slice.call(arguments,1);function k(){return i.apply(h,j.concat(Array.prototype.slice.call(arguments)));}k.displayName='bound:'+(i.displayName||i.name||'(?)');k.toString=function l(){return 'bound: '+i;};return k;};e.exports=g;});
  4. __d("ES5StringPrototype",[],function(a,b,c,d,e,f){var g={};g.trim=function(){if(this==null)throw new TypeError('String.prototype.trim called on null or undefined');return String.prototype.replace.call(this,/^\s+|\s+$/g,'');};e.exports=g;});
  5. __d("ES5Array",[],function(a,b,c,d,e,f){var g={};g.isArray=function(h){return Object.prototype.toString.call(h)=='[object Array]';};e.exports=g;});
  6. __d("ES5Object",[],function(a,b,c,d,e,f){var g={};g.create=function(h){var i=typeof h;if(i!='object'&&i!='function')throw new TypeError('Object prototype may only be a Object or null');var j=new Function();j.prototype=h;return new j();};g.keys=function(h){var i=typeof h;if(i!='object'&&i!='function'||h===null)throw new TypeError('Object.keys called on non-object');var j=[];for(var k in h)if(Object.prototype.hasOwnProperty.call(h,k))j.push(k);var l=!({toString:true}).propertyIsEnumerable('toString'),m=['toString','toLocaleString','valueOf','hasOwnProperty','isPrototypeOf','prototypeIsEnumerable','constructor'];if(l)for(var n=0;n<m.length;n++){var o=m[n];if(Object.prototype.hasOwnProperty.call(h,o))j.push(o);}return j;};e.exports=g;});
  7. __d("ES5Date",[],function(a,b,c,d,e,f){var g={};g.now=function(){return new Date().getTime();};e.exports=g;});
  8. /**
  9. * @providesModule JSON3
  10. * @option preserve-header
  11. *
  12. *! JSON v3.1 | http://bestiejs.github.com/json3 | Copyright 2012, Kit Cambridge | http://kit.mit-license.org
  13. */__d("JSON3",[],function(a,b,c,d,e,f){var g={}.toString,h={}.hasOwnProperty,i,j,k;j=typeof f.stringify=="function";k=typeof f.parse=="function";(function(){var l='{"result":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}',m,n,o;if(j){m=function q(){return 1;};m.toJSON=m;try{switch(false){case f.stringify(0)==="0":case f.stringify(new (0).constructor())==="0":case f.stringify(new "".constructor())=='""':case f.stringify(g)===void 0:case f.stringify(void 0)===void 0:case f.stringify()===void 0:case f.stringify(m)==="1":case f.stringify([m])=="[1]":case f.stringify([void 0])=="[null]":case f.stringify(null)=="null":case f.stringify([void 0,g,null])=="[null,null,null]":case f.stringify({result:[m,true,false,null,"\0\b\n\f\r\t"]})==l:case f.stringify(null,m)==="1":case f.stringify([1,2],null,1)=="[\n 1,\n 2\n]":case (m=new Date(-8.64e+15)).getUTCFullYear()!=-271821||f.stringify(m)=='"-271821-04-20T00:00:00.000Z"':case (m=new Date(8.64e+15)).getUTCFullYear()!=275760||f.stringify(m)=='"+275760-09-13T00:00:00.000Z"':j=false;}}catch(p){j=false;}}if(k)try{if(f.parse("0")===0&&!f.parse(false)){o=f.parse(l);if((k=o.result.length==5&&o.result[0]==1)){try{k=!f.parse('"\t"');}catch(p){}if(k)try{k=f.parse("+1")!=1&&f.parse("01")!=1;}catch(p){}}}}catch(p){k=false;}})();if(typeof h!="function")h=(function(){var l,m={},n=m.constructor;if((m.__proto__=null,m.__proto__={toString:1},m).toString!=g){l=function o(p){var q=this.__proto__,r=p in (this.__proto__=null,this);this.__proto__=q;return r;};}else l=function o(p){var q=(this.constructor||n).prototype;return p in this&&!(p in q&&this[p]===q[p]);};m=null;return l;})();i=(function(){var l,m,n,o=0;function p(){this.valueOf=0;}p.prototype.valueOf=0;l=new p();for(m in l)if(h.call(l,m))o+=1;l=null;if(!o){l=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"];n=function q(r,s){var t=g.call(r)=="[object Function]",u,v;for(u in r)if(!(t&&u=="prototype")&&h.call(r,u))s(u);for(v=l.length;v--;){u=l[v];if(h.call(r,u))s(u);}};}else if(o==2){n=function q(r,s){var t={},u=g.call(r)=="[object Function]",v;for(v in r)if(!(u&&v=="prototype")&&!h.call(t,v)&&(t[v]=1)&&h.call(r,v))s(v);};}else n=function q(r,s){var t=g.call(r)=="[object Function]",u,v;for(u in r)if(!(t&&u=="prototype")&&h.call(r,u)&&!(v=u==="constructor"))s(u);if(v||h.call(r,"constructor"))s("constructor");};return n;})();if(!j)f.stringify=(function(){var l={"\\":"\\\\",'"':'\\"',"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"};function m(q,r){r="000000"+(r||0);return r.slice(r.length-q);}function n(q){var r='"',s=0,t;for(;t=q.charAt(s);s+=1)r+='\\"\b\f\n\r\t'.indexOf(t)>-1?l[t]:t<" "?"\\u00"+m(2,t.charCodeAt(0).toString(16)):t;return r+'"';}function o(q,r,s,t,u,v,w){var x=r[q],y,z,aa,ba,ca,da,ea,fa;if(typeof x=="object"&&x)if(g.call(x)=="[object Date]"&&!h.call(x,"toJSON")){if(x>-1/0&&x<1/0){z=x.getUTCFullYear();x=(z<=0||z>=10000?(z<0?"-":"+")+m(6,z<0?-z:z):m(4,z))+"-"+m(2,x.getUTCMonth()+1)+"-"+m(2,x.getUTCDate())+"T"+m(2,x.getUTCHours())+":"+m(2,x.getUTCMinutes())+":"+m(2,x.getUTCSeconds())+"."+m(3,x.getUTCMilliseconds())+"Z";}else x=null;}else if(typeof x.toJSON=="function")x=x.toJSON(q);if(s)x=s.call(r,q,x);if(x===null)return "null";y=g.call(x);switch(y){case "[object Boolean]":return ""+x;case "[object Number]":return x>-1/0&&x<1/0?""+x:"null";case "[object String]":return n(x);}if(typeof x=="object"){for(da=w.length;da--;)if(w[da]==x)throw TypeError("Cyclic structures cannot be serialized.");w.push(x);aa=[];ea=v;v+=u;if(y=="[object Array]"){for(ca=0,da=x.length;ca<da;fa||(fa=true),ca++){ba=o(ca,x,s,t,u,v,w);aa.push(ba===void 0?"null":ba);}return fa?(u?"[\n"+v+aa.join(",\n"+v)+"\n"+ea+"]":("["+aa.join(",")+"]")):"[]";}else{i(t||x,function(ga){var ha=o(ga,x,s,t,u,v,w);if(ha!==void 0)aa.push(n(ga)+":"+(u?" ":"")+ha);fa||(fa=true);});return fa?(u?"{\n"+v+aa.join(",\n"+v)+"\n"+ea+"}":("{"+aa.join(",")+"}")):"{}";}w.pop();}}function p(q,r,s){var t="",u,v,w,x;if(typeof r=="function"||typeof r=="object"&&r)if(g.call(r)=="[object Function]"){u=r;}else if(g.call(r)=="[object Array]"){v={};for(w=r.length;w--;){x=r[w];if(x&&(g.call(x)=="[object String]"||g.call(x)=="[object Number]"))v[x]=1;}}if(s!=null&&s!=="")if(g.call(s)=="[object Number]"){if((s-=s%1)>0)for(t="",s>10&&(s=10);t.length<s;)t+=" ";}else if(g.call(s)=="[object String]")t=s.length<=10?s:s.slice(0,10);return o("$",{$:q},u,v,t,"",[]);}return p;})();if(!k)f.parse=(function(){var l={"\\":"\\",'"':'"',"/":"/",b:"\b",t:"\t",n:"\n",f:"\f",r:"\r"},m="".constructor.fromCharCode;function n(s){this.source=s;this.index=0;}n.prototype.lex=o;function o(){for(var s=this.source,t=this.source.length,u,v,w,x,y;this.index<t;){u=s.charAt(this.index);switch(u){case "\t":case "\r":case "\n":case " ":this.index+=1;break;case "{":case "}":case "[":case "]":case ":":case ",":this.index+=1;return u;case '"':v="@";this.index+=1;while(this.index<t){u=s.charAt(this.index);if(u<" "){throw SyntaxError("Unescaped control character in string.");}else if(u=="\\"){this.index+=1;u=s.charAt(this.index);if('\\"/btnfr'.indexOf(u)>-1){v+=l[u];this.index+=1;}else if(u=="u"){w=this.index+=1;for(x=this.index+4;this.index<x;this.index+=1){u=s.charAt(this.index);if(!(u>="0"&&u<="9"||u>="a"&&u<="f"||u>="A"&&u<="F"))throw SyntaxError("Invalid Unicode escape sequence in string.");}v+=m("0x"+s.slice(w,this.index));}else throw SyntaxError("Invalid escape sequence in string.");}else{if(u=='"')break;v+=u;this.index+=1;}}if(s.charAt(this.index)=='"'){this.index+=1;return v;}throw SyntaxError("Unterminated string.");default:w=this.index;if(u=="-"){y=true;u=s.charAt(this.index+=1);}if(u>="0"&&u<="9"){if(u=="0"&&(u=s.charAt(this.index+1),u>="0"&&u<="9"))throw SyntaxError("Illegal octal literal.");y=false;for(;this.index<t&&(u=s.charAt(this.index),u>="0"&&u<="9");this.index+=1);if(s.charAt(this.index)=="."){x=this.index+=1;for(;x<t&&(u=s.charAt(x),u>="0"&&u<="9");x+=1);if(x==this.index)throw SyntaxError("Illegal trailing decimal.");this.index=x;}u=s.charAt(this.index);if(u=="e"||u=="E"){u=s.charAt(this.index+=1);if(u=="+"||u=="-")this.index+=1;for(x=this.index;x<t&&(u=s.charAt(x),u>="0"&&u<="9");x+=1);if(x==this.index)throw SyntaxError("Illegal empty exponent.");this.index=x;}return +s.slice(w,this.index);}if(y)throw SyntaxError("Unexpected `-`.");if(u=="t"&&s.slice(this.index,this.index+4)=="true"){this.index+=4;return true;}else if(u=="f"&&s.slice(this.index,this.index+5)=="false"){this.index+=5;return false;}else if(u=="n"&&s.slice(this.index,this.index+4)=="null"){this.index+=4;return null;}throw SyntaxError("Unrecognized token.");}}return "$";}n.prototype.get=p;function p(s){var t,u,v;if(s=="$")throw SyntaxError("Unexpected end-of-file.");if(typeof s=="string"){if(s.charAt(0)=="@")return s.slice(1);switch(s){case "[":t=[];for(;;u||(u=true)){s=this.lex();if(s=="]")break;if(u)if(s==","){s=this.lex();if(s=="]")throw SyntaxError("Unexpected trailing `,` in array literal.");}else throw SyntaxError("A comma (`,`) must separate the previous array element from the next.");if(s==",")throw SyntaxError("Unexpected `,` in array literal.");t.push(this.get(s));}return t;case "{":t={};for(;;u||(u=true)){s=this.lex();if(s=="}")break;if(u)if(s==","){s=this.lex();if(s=="}")throw SyntaxError("Unexpected trailing `,`. in object literal.");}else throw SyntaxError("A comma (`,`) must separate the previous object member from the next.");if(s==",")throw SyntaxError("Unexpected `,` in object literal.");if(typeof s!="string"||s.charAt(0)!="@")throw SyntaxError("Object property names must be double-quoted strings.");if(this.lex()!=":")throw SyntaxError("A single colon (`:`) must separate each object property name from the value.");t[s.slice(1)]=this.get(this.lex());}return t;}throw SyntaxError("Expected `[` or `{`.");}return s;}function q(s,t,u){var v=s[t],w,x;if(typeof v=="object"&&v)if(g.call(v)=="[object Array]"){for(w=v.length;w--;){x=q(v,w,u);if(x===void 0){v.splice(w,1);}else v[w]=x;}}else i(v,function(y){var z=q(v,y,u);if(z===void 0){delete v[y];}else v[y]=z;});return u.call(s,t,v);}function r(s,t){var u=new n(""+s),v=u.get(u.lex());if(u.lex()!="$")throw SyntaxError("Expected end-of-file.");return t&&g.call(t)=="[object Function]"?q({$:v},"$",t):v;}return r;})();e.exports=f;});
  14. __d("ES5",["ES5ArrayPrototype","ES5FunctionPrototype","ES5StringPrototype","ES5Array","ES5Object","ES5Date","JSON3"],function(a,b,c,d,e,f){var g=b('ES5ArrayPrototype'),h=b('ES5FunctionPrototype'),i=b('ES5StringPrototype'),j=b('ES5Array'),k=b('ES5Object'),l=b('ES5Date'),m=b('JSON3'),n=Array.prototype.slice,o=Object.prototype.toString,p={},q={array:g,'function':h,string:i,Object:k,Array:j,Date:l,JSON:m};for(var r in q){if(!q.hasOwnProperty(r))continue;var s=q[r],t=r===r.toLowerCase()?window[r.replace(/^\w/,function(x){return x.toUpperCase();})].prototype:window[r];for(var u in s){if(!s.hasOwnProperty(u))continue;if(!t){p[r+'.'+u]=s[u];continue;}var v=t[u];p[r+'.'+u]=v&&/\{\s+\[native code\]\s\}/.test(v)?v:s[u];}}function w(x,y,z){var aa=n.call(arguments,3),ba=z?/\s(.*)\]/.exec(o.call(x).toLowerCase())[1]:x,ca=p[ba+'.'+y]||x[y];if(typeof ca==='function')return ca.apply(x,aa);}e.exports=w;});
  15. ES5 = require('ES5');
  16. return ES5.apply(null, arguments);
  17. };
  18. function bagofholding() {};(function(a){if(a.require)return;var b={},c={},d={},e=0,f=1,g=2,h=Object.prototype.hasOwnProperty;function i(t){var u=b[t],v,w,x;if(!b[t]){x='Requiring unknown module "'+t+'"';throw new Error(x);}if(u.waiting&&u.special&g)l();if(u.waiting){x='Requiring module "'+t+'" with unresolved dependencies';throw new Error(x);}if(!u.exports){var y=u.exports={},z=u.factory;if(Object.prototype.toString.call(z)==='[object Function]'){var aa=[],ba=u.dependencies,ca=ba.length;if(u.special&g)ca=Math.min(ca,z.length);for(w=0;w<ca;w++){v=ba[w];aa.push(v==='module'?u:(v==='exports'?y:i(v)));}var da=z.apply(u.context||a,aa);if(da)u.exports=da;}else u.exports=z;}if(u.refcount--===1)delete b[t];return u.exports;}function j(t,u,v,w,x,y){if(u===undefined){u=[];v=t;t=n();}else if(v===undefined){v=u;u=t;t=n();}var z=b[t];if(z){if(y)z.refcount+=y;return;}else if(!u&&!v&&y){d[t]=(d[t]||0)+y;return;}else{z={id:t};z.refcount=(d[t]||0)+(y||0);delete d[t];}z.factory=v;z.dependencies=u;z.context=x;z.special=w;b[t]=z;o(t);}function k(t,u,v){j(t,u,undefined,f,v,1);}function l(){var t={},u;for(u in c)if(h.call(c,u))if(b[u]&&!t[u]&&b[u].special&g)m({},u,t);}function m(t,u,v){v[u]=1;var w=c[u],x;if(!w)return;t[u]=1;for(x in w)if(h.call(w,x)){if(!b[x].special&g)continue;if(t[x]){delete w[x];b[x].waiting--;if(!b[x].waiting)p(x);}else m(t,x,v);}t[u]=0;}function n(){return '__mod__'+e++;}function o(t){var u=b[t],v=0;for(var w=0;w<u.dependencies.length;w++){var x=u.dependencies[w];if(!b[x]||b[x].waiting){c[x]||(c[x]={});if(!c[x][t])v++;c[x][t]=1;}}u.waiting=v;if(!v)p(t);}function p(t){var u=b[t];if(u.special&f)i(t);var v=c[t];if(v){delete c[t];for(var w in v)if(h.call(v,w))if(!--b[w].waiting)p(w);}}function q(t,u){b[t]={id:t};b[t].exports=u;}q('module',0);q('exports',0);q('define',j);q('global',a);q('require',i);q('requireDynamic',i);q('requireLazy',k);j.amd={};a.define=j;a.require=i;a.requireDynamic=i;a.requireLazy=k;i.__debug={modules:b,deps:c};var r=false,s=function(t,u,v,w){j(t,u,v,w||g);if(b[t].waiting&&!r)r=setTimeout(function(){l();r=false;},9);};a.__d=function(t,u,v,w){u=['global','require','requireDynamic','requireLazy','module','exports'].concat(u);s(t,u,v,w);};a.__e=a.__d;})(this);
  19. __d("XDMConfig",[],{"Flash":{"path":"https:\/\/s-static.ak.fbcdn.net\/rsrc.php\/v1\/ys\/r\/WON-TVLCpDP.swf"}});__d("initXdArbiter",["QueryString","resolveWindow","Log","XDM","XDMConfig"],function(a,b,c,d,e,f){var g=b('QueryString'),h=b('resolveWindow'),i=b('Log'),j=b('XDM'),k=c('XDMConfig'),l=location.protocol.replace(':',''),m=/#(.*)|$/.exec(location.href)[1];if(!m){i.error('xd_arbiter.php loaded without a valid hash, referrer: %s',document.referrer);return;}var n=g.decode(m);function o(z){return z?z.replace(/["'<>\(\)\\]/g,''):z;}function p(z){if(window!=parent&&window.parent!=window.parent.parent)try{return parent.parent.XdArbiter.register(window,z);}catch(aa){i.error('Could not register with XdArbiter in parent.parent');}return '';}function q(z,aa){if(!z||z.length===0)return true;var ba='.'+(/https?:\/\/(.*)$/).exec(aa)[1],ca=z.length;while(ca--){var da='.'+z[ca];if(da==ba.substring(ba.length-da.length))return true;}i.error('Failed proxying to %s, expected %s',ba,z.toString());return false;}function r(z,aa){var ba=z?h(z):parent.parent;try{ba.XdArbiter.handleMessage(aa);}catch(ca){i.error('Could not reach www.facebook.com using %s',z);return;}}function s(){try{h(n.relation).frames['fb_xdm_frame_'+l].proxyMessage(m);}catch(z){setTimeout(s,50);}}function t(){var z=/^(.*)\/(.*)$/.exec(n.origin)[1];if(window.__fbNative&&window.__fbNative.postMessage){__fbNative.postMessage(m,z);}else{var aa=function(ba){window.removeEventListener('fbNativeReady',aa);__fbNative.postMessage(m,z);};window.addEventListener('fbNativeReady',aa);}}document.domain='facebook.com';if(n.xd_rel){r(n.xd_rel,n);return;}else if(n.relation){if(window===top&&/FBAN\/\w+;/i.test(navigator.userAgent)){i.info('Native proxy');t();}else{i.info('Legacy proxy to %s',n.relation);s();}return;}if(l!=/https?/.exec(window.name)[0]){i.info('Redirection to %s detected, aborting',l);return;}var u=o(n.transport),v=o(n.channel),w=o(n.channel_path),x=o(n.origin),y=o(n.xd_name);if(!/^https?/.test(x)){i.error('Invalid origin presented, aborting.');return;}j.create({root:document.body,transport:u,channel:v+'_'+l,channelPath:w,flashUrl:k.Flash.path,onMessage:function(z,aa){z=g.decode(z);r(z.relation,z);},whenReady:function(z){window.proxyMessage=function(da,ea){if(q(ea,x))z.send(da,x,parent,v);};var aa=null,ba={xd_action:'proxy_ready',data:aa},ca=p(y);if(ca)ba.registered=ca;z.send(g.encode(ba),x,parent,v);}});});
  20. __d("QueryString",[],function(a,b,c,d,e,f){var g={encode:function(h){var i=[];ES5(ES5('Object','keys',false,h),'forEach',true,function(j){var k=h[j];if(typeof k==='undefined')return;if(k===null){i.push(j);return;}i.push(encodeURIComponent(j)+'='+encodeURIComponent(k));});return i.join('&');},decode:function(h){var i={};if(h==='')return i;var j=h.split('&'),k=j.length;while(k--){var l=j[k].split('=',2);i[decodeURIComponent(l[0])]=l.length===2?decodeURIComponent(l[1]):null;}return i;},appendToUrl:function(h,i){return h+(~ES5(h,'indexOf',true,'?')?'&':'?')+(typeof i==='string'?i:g.encode(i));}};e.exports=g;});
  21. __d("resolveWindow",[],function(a,b,c,d,e,f){function g(h){var i=window,j=h.split('.');try{for(var l=0;l<j.length;l++){var m=j[l],n=/^frames\[['"]?([a-zA-Z0-9\-_]+)['"]?\]$/.exec(m);if(n){i=i.frames[n[1]];}else if(m==='opener'||m==='parent'||m==='top'){i=i[m];}else return null;}}catch(k){return null;}return i;}e.exports=g;});
  22. __d("Log",["sprintf"],function(a,b,c,d,e,f){var g=b('sprintf'),h={DEBUG:3,INFO:2,WARNING:1,ERROR:0};function i(k,l){var m=Array.prototype.slice.call(arguments,2),n=g.apply(null,m);if(j.level>=k&&window.console)console[l in console?l:'log'](n);}var j={level:-1,Level:h,debug:ES5(i,'bind',true,null,h.DEBUG,'debug'),info:ES5(i,'bind',true,null,h.INFO,'debug'),warn:ES5(i,'bind',true,null,h.WARNING,'debug'),error:ES5(i,'bind',true,null,h.ERROR,'debug')};e.exports=j;});
  23. __d("sprintf",[],function(a,b,c,d,e,f){function g(h,i){i=Array.prototype.slice.call(arguments,1);var j=0;return h.replace(/%s/g,function(k){return i[j++];});}e.exports=g;});
  24. __d("XDM",["copyProperties","guid","DOMEventListener","DOMWrapper","Flash","Log","UserAgent"],function(a,b,c,d,e,f){var g=b('copyProperties'),h=b('guid'),i=b('DOMEventListener'),j=b('DOMWrapper'),k=b('Flash'),l=b('Log'),m=b('UserAgent'),n={},o={transports:[]},p=j.getWindow();function q(s){var t={},u=s.length,v=o.transports;while(u--)t[s[u]]=1;u=v.length;while(u--){var w=v[u],x=n[w];if(!t[w]&&x.isAvailable())return w;}}var r={register:function(s,t){l.debug('Registering %s as XDM provider',s);o.transports.push(s);n[s]=t;},create:function(s){if(!s.whenReady&&!s.onMessage){l.error('An instance without whenReady or onMessage makes no sense');throw new Error('An instance without whenReady or '+'onMessage makes no sense');}if(!s.channel){l.warn('Missing channel name, selecting at random');s.channel=h();}if(!s.whenReady)s.whenReady=bagofholding;if(!s.onMessage)s.onMessage=bagofholding;var t=s.transport||q(s.blacklist||[]),u=n[t];if(u&&u.isAvailable()){l.debug('%s is available',t);u.init(s);return t;}}};r.register('fragment',(function(){var s=false,t,u=location.protocol+'//'+location.host;function v(w){var x=document.createElement('iframe');x.src='javascript:false';var y=i.add(x,'load',function(){y.remove();setTimeout(function(){x.parentNode.removeChild(x);},5000);});t.appendChild(x);x.src=w;}return {isAvailable:function(){return true;},init:function(w){l.debug('init fragment');var x={send:function(y,z,aa,ba){l.debug('sending to: %s (%s)',z+w.channelPath,ba);v(z+w.channelPath+y+'&xd_rel=parent.parent&relation=parent.parent&xd_origin='+encodeURIComponent(u));}};if(s){w.whenReady(x);return;}t=w.root;s=true;w.whenReady(x);}};})());r.register('flash',(function(){var s=false,t,u={},v=false,w=15000,x;return {isAvailable:function(){return k.checkMinVersion('8.0.24');},init:function(y){l.debug('init flash: '+y.channel);var z={send:function(ca,da,ea,fa){l.debug('sending to: %s (%s)',da,fa);t.postMessage(ca,da,fa);}};if(s){y.whenReady(z);return;}var aa=y.root.appendChild(p.document.createElement('div')),ba=h();u[ba]=function(){clearTimeout(x);l.info('xdm.swf called the callback');delete u[ba];ba=h();u[ba]=function(ca,da){ca=decodeURIComponent(ca);l.debug('received message %s from %s',ca,da);y.onMessage(ca,da);};t.init(y.channel,'FB_XDM_CALLBACKS.'+ba);y.whenReady(z);};p.FB_XDM_CALLBACKS=u;t=k.embed(y.flashUrl,aa,null,{protocol:location.protocol.replace(':',''),host:location.host,callback:'FB_XDM_CALLBACKS.'+ba,log:v});x=setTimeout(function(){l.warn('The Flash component did not load within %s ms - '+'verify that the container is not set to hidden or invisible '+'using CSS as this will cause some browsers to not load '+'the components',w);},w);s=true;}};})());r.register('postmessage',(function(){var s=false;return {isAvailable:function(){return !!p.postMessage;},init:function(t){l.debug('init postMessage: '+t.channel);var u='_FB_'+t.channel,v={send:function(w,x,y,z){if(p===y){l.error('Invalid windowref, equal to window (self)');throw new Error();}l.debug('sending to: %s (%s)',x,z);var aa=function(){y.postMessage('_FB_'+z+w,x);};if(m.ie()==8){setTimeout(aa,0);}else aa();}};if(s){t.whenReady(v);return;}i.add(p,'message',function(event){var w=event.data,x=event.origin||'native';if(typeof w!='string'){l.warn('Received message of type %s from %s, expected a string',typeof w,x);return;}l.debug('received message %s from %s',w,x);if(x!='native')if(w.substring(0,u.length)==u){w=w.substring(u.length);}else return;t.onMessage(w,x);});t.whenReady(v);s=true;}};})());e.exports=r;});
  25. __d("copyProperties",[],function(a,b,c,d,e,f){function g(h,i,j,k,l,m,n){h=h||{};var o=[i,j,k,l,m],p=0,q;while(o[p]){q=o[p++];for(var r in q)h[r]=q[r];if(q.hasOwnProperty&&q.hasOwnProperty('toString')&&(typeof q.toString!='undefined')&&(h.toString!==q.toString))h.toString=q.toString;}return h;}e.exports=g;});
  26. __d("guid",[],function(a,b,c,d,e,f){function g(){return 'f'+(Math.random()*(1<<30)).toString(16).replace('.','');}e.exports=g;});
  27. __d("DOMEventListener",[],function(a,b,c,d,e,f){var g,h;if(window.addEventListener){g=function(j,k,l){j.addEventListener(k,l,false);};h=function(j,k,l){j.removeEventListener(k,l,false);};}else if(window.attachEvent){g=function(j,k,l){j.attachEvent('on'+k,l);};h=function(j,k,l){j.detachEvent('on'+k,l);};}var i={add:function(j,k,l){g(j,k,l);return {remove:function(){h(j,k,l);j=null;}};},remove:h};e.exports=i;});
  28. __d("DOMWrapper",[],function(a,b,c,d,e,f){var g,h,i={setRoot:function(j){g=j;},getRoot:function(){return g||document.body;},setWindow:function(j){h=j;},getWindow:function(){return h||window;}};e.exports=i;});
  29. __d("Flash",["DOMWrapper","QueryString","UserAgent","copyProperties","guid"],function(a,b,c,d,e,f){var g=b('DOMWrapper'),h=b('QueryString'),i=b('UserAgent'),j=b('copyProperties'),k=b('guid'),l={},m,n=g.getWindow().document;function o(t){var u=n.getElementById(t);if(u)u.parentNode.removeChild(u);delete l[t];}function p(){for(var t in l)if(l.hasOwnProperty(t))o(t);}function q(t){return t.replace(/\d+/g,function(u){return '000'.substring(u.length)+u;});}function r(t){if(!m){if(i.ie()>=9)window.attachEvent('onunload',p);m=true;}l[t]=t;}var s={embed:function(t,u,v,w){var x=k();t=encodeURI(t);v=j({allowscriptaccess:'always',flashvars:w,movie:t},v||{});if(typeof v.flashvars=='object')v.flashvars=h.encode(v.flashvars);var y=[];for(var z in v)if(v.hasOwnProperty(z)&&v[z])y.push('<param name="'+encodeURI(z)+'" value="'+encodeURI(v[z])+'">');var aa=n.createElement('div'),ba='<object '+(i.ie()?'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ':'type="application/x-shockwave-flash"')+'data="'+t+'" '+'id="'+x+'">'+y.join('')+'</object>';aa.innerHTML=ba;var ca=u.appendChild(aa.firstChild);r(x);return ca;},remove:o,getVersion:function(){var t='Shockwave Flash',u='application/x-shockwave-flash',v='ShockwaveFlash.ShockwaveFlash',w;if(navigator.plugins&&typeof navigator.plugins[t]=='object'){var x=navigator.plugins[t].description;if(x&&navigator.mimeTypes&&navigator.mimeTypes[u]&&navigator.mimeTypes[u].enabledPlugin)w=x.match(/\d+/g);}if(!w)try{w=(new ActiveXObject(v)).GetVariable('$version').match(/(\d+),(\d+),(\d+),(\d+)/);w=Array.prototype.slice.call(w,1);}catch(y){}return w;},checkMinVersion:function(t){var u=s.getVersion();if(!u)return false;return q(u.join('.'))>=q(t);},isAvailable:function(){return !!s.getVersion();}};e.exports=s;});
  30. __d("UserAgent",[],function(a,b,c,d,e,f){var g=false,h,i,j,k,l,m,n,o,p,q,r,s,t,u;function v(){if(g)return;g=true;var x=navigator.userAgent,y=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))/.exec(x),z=/(Mac OS X)|(Windows)|(Linux)/.exec(x);r=/\b(iPhone|iP[ao]d)/.exec(x);s=/\b(iP[ao]d)/.exec(x);p=/Android/i.exec(x);t=/FBAN\/\w+;/i.exec(x);u=/Mobile/i.exec(x);q=!!(/Win64/.exec(x));if(y){h=y[1]?parseFloat(y[1]):NaN;if(h&&document.documentMode)h=document.documentMode;i=y[2]?parseFloat(y[2]):NaN;j=y[3]?parseFloat(y[3]):NaN;k=y[4]?parseFloat(y[4]):NaN;if(k){y=/(?:Chrome\/(\d+\.\d+))/.exec(x);l=y&&y[1]?parseFloat(y[1]):NaN;}else l=NaN;}else h=i=j=l=k=NaN;if(z){if(z[1]){var aa=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(x);m=aa?parseFloat(aa[1].replace('_','.')):true;}else m=false;n=!!z[2];o=!!z[3];}else m=n=o=false;}var w={ie:function(){return v()||h;},ie64:function(){return w.ie()&&q;},firefox:function(){return v()||i;},opera:function(){return v()||j;},safari:function(){return v()||k;},chrome:function(){return v()||l;},windows:function(){return v()||n;},osx:function(){return v()||m;},linux:function(){return v()||o;},iphone:function(){return v()||r;},mobile:function(){return v()||(r||s||p||u);},nativeApp:function(){return v()||t;},android:function(){return v()||p;},ipad:function(){return v()||s;}};e.exports=w;});
  31. require("initXdArbiter");</script></body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement