Documentos de Académico
Documentos de Profesional
Documentos de Cultura
;this.d=null};
ka.prototype.evaluate=function(){var a={},b="";try{b=String(document.cookie||"")
}catch(c){}for(var b=b.split("; ").join(";").split(";"),d=0,e=b.length;d<e;++d){
var g=b[d],k=g.indexOf("=");-1!=k?a[g.substr(0,k)]=g.substr(k+1):a[g]=null}this.
c=a;if(this.c.SID)if(this.e=this.e.split(".")[0].split("@")[0],a="",a=0==this.h.
indexOf("https://")?"SAPISID":"APISID",this.f=String(this.c[a]||""))if(a="",a=0=
=gadgets.rpc.getOrigin(String(window.location.href)).indexOf("https://")?"SAPISI
D":"APISID",this.g=String(this.c[a]||
"")){b=String(this.c.LSOLH||"").split(":");d=b.length;if(1==d||4==d)this.k=b[0];
if(3==d||4==d)a=String(b[d-3]||""),b=String(b[d-1]||""),(d=R([a,this.g]).substr(
0,4))&&d==b&&(this.j=a);this.a&&(a=this.a.indexOf("."),-1!=a&&(a=this.a.substr(0
,a)||"",this.a=a+"."+R([this.f,this.h,this.e,this.k,this.j,a]).substr(0,4)));a=R
([this.f,this.h,this.e,this.a]);this.a&&(a=a+"."+this.a);this.d=a}else this.d=""
;else this.d=""};
var la=function(a,b,c){a=new ka(a,b,c);a.evaluate();return a},S=function(a,b,c){
c=c||ma(this);var d=null;if(a){a=String(a);var e=a.indexOf(".");-1!=e&&(d=a.subs
tr(e+1))}b=la(c,b,d).d;if(null==a||""==a)a=b==a;else if(null==b||b.length!=a.len
gth)a=!1;else{d=c=0;for(e=a.length;d<e;++d)c|=a.charCodeAt(d)^b.charCodeAt(d);a=
0==c}return a},T=function(a,b,c){c=c||ma(this);c=la(c);if(String(a)!=c.d)throw E
rror("Unauthorized request");b=String(b);a=parseInt(b,10);String(a)==b&&0<=a?(b=
c.j)?(b=b.split("|"),
a=b.length<=a?null:b[a]||null):a=null:a=null;return a},ma=function(a){a=String(a
.origin||"");if(!a)throw Error("RPC has no origin.");return a};l("checkSessionSt
ate",S);l("getVersionInfo",T);var U,V,W,X,Y,Z,na=window,oa=(window.location.href
||na.location.href).match(/.*(\?|#|&)usegapi=([^&#]+)/)||[];
"1"===decodeURIComponent(oa[oa.length-1]||"")?(W=function(a,b,c,d,e,g){U.send(b,
e,d,g||gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)},X=function(a,b){U.register(a,b
,gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)},Y=function(a){var b=/^(?:https?:\/\/
)?[0-9.\-A-Za-z]+(?::\d+)?/.exec(a),b=gapi.iframes.makeWhiteListIframesFilter([b
?b[0]:null]);W("..","oauth2callback",gadgets.rpc.getAuthToken(".."),void 0,a,b)}
,V=function(){pa()},Z=function(){W("..","oauth2relayReady",gadgets.rpc.getAuthTo
ken(".."));X("check_session_state",
qa);X("get_versioninfo",ra)}):(W=function(a,b,c,d,e){gadgets.rpc.call(a,b+":"+c,
d,e)},X=function(a,b){gadgets.rpc.register(a,b)},Y=function(a){gadgets.rpc.getTa
rgetOrigin("..")==gadgets.rpc.getOrigin(a)&&W("..","oauth2callback",gadgets.rpc.
getAuthToken(".."),void 0,a)},V=function(){Z()},Z=function(){W("..","oauth2relay
Ready",gadgets.rpc.getAuthToken(".."));X("check_session_state",S);X("get_version
info",T)});
var pa=function(){var a=Z;window.gapi.load("gapi.iframes",function(){U=gapi.ifra
mes.getContext().getParentIframe();a()})},sa=function(a){window.setTimeout(funct
ion(){Y(a)},1)},qa=function(a){var b,c;a&&(b=a.session_state,c=a.client_id);retu
rn S(b,c,U.getOrigin())},ra=function(a){return T(a.xapisidHash,a.sessionIndex,U.
getOrigin())};l("oauth2callback",sa);
l("oauth2verify",function(a,b){var c=window.open("javascript:void(0);",a),d;if(c
&&!c.closed&&(d=c.oauth2callbackUrl))return window.b=window.b||{},window.i=windo
w.i||window.setTimeout,window.setTimeout=function(a,b){try{var d=a,h=!1,p;a=func
tion(){if(!h){h=!0;try{window.b[String(p)]=void 0,delete window.b[String(p)]}cat
ch(a){}return d.call(this)}};var H=c.setTimeout(a,b);p=window.i(a,b);window.b[St
ring(p)]=H;return p}catch(t){}return window.i(a,b)},window.l=window.l||window.cl
earTimeout,window.clearTimeout=
function(a){try{var b=window.b[String(a)];b&&c.clearTimeout(b)}catch(d){}try{win
dow.b[String(a)]=void 0,delete window.b[String(a)]}catch(h){}window.l(a)},sa(Str
ing(d)),"keep_open"!=b&&ja(c),!0;c&&!c.closed&&ja(c);return!1});window.addEventL
istener?window.addEventListener("load",V,!1):window.attachEvent("onload",V);