/* JS */ gapi.loaded_1(function(_){var window=this; _.Xj=window.googleapis&&window.googleapis.server||{}; _.Yj=function(){var a=/\s*;\s*/;return{get:function(c,f){for(var g=c+"=",h=(window.document.cookie||"").split(a),l=0,n;n=h[l];++l)if(0==n.indexOf(g))return n.substr(g.length);return f}}}(); _.Qj=function(){function a(){var a=window.__OVERRIDE_SID;null==a&&(a=_.Yj.get("SID"));return!!a}function c(a,c,l){if(1==((0,_.ea)(l)?2:1))return f([c,a].join(" "));var n=[],q=[];(0,_.Be)(l,function(a){q.push(a.key);n.push(a.value)});l=(new Date).getTime();var t=[],t=(0,_.Kt)(n)?[l,c,a]:[n.join(":"),l,c,a];a=f(t.join(" "));a=[l,a];(0,_.Kt)(q)||a.push(q.join(""));return a.join("_")}function f(a){var c=(0,_.Tb)();c.update(a);return c.Of().toLowerCase()}return{Nq:function(a){var c={SAPISIDHASH:!0,APISIDHASH:!0}; return a&&(a.OriginToken||a.Authorization&&c[String(a.Authorization).split(" ")[0]])?!0:!1},er:a,bq:function(){var c=null;a()&&(c=window.__PVT,null==c&&(c=_.Yj.get("BEAT")));return c},Qe:function(f){var h=_.Rb.Pq(String(window.location.href));if(a()){var l=0==h.indexOf("https:")||0==h.indexOf("chrome-extension:"),n=l?"SAPISID":"APISID",q=l?window.__SAPISID:window.__APISID;null==q&&(q=_.Yj.get(n));if(q)return[l?"SAPISIDHASH":"APISIDHASH",c(h,q,f)].join(" ")}return null}}}(); _.Fn=function(){return Math.floor((new Date).getTime()/1E3)};var MC;var LC;_.Vj=function(a,c){this.B=a;var f=c||{};this.M=f.Fr;this.G=f.domain;this.ha=f.path;this.qa=f.wD};LC=/^[-+/_=.:|%&a-zA-Z0-9@]*$/;MC=/^[A-Z_][A-Z0-9_]{0,63}$/;_.Vj.prototype.Hd=function(){for(var a=this.B+"=",c=window.document.cookie.split(/;\s*/),f=0;fQt;++Qt);var Iv;_.Ak={};Iv=[".APPS.GOOGLEUSERCONTENT.COM","@DEVELOPER.GSERVICEACCOUNT.COM"];_.Gt="https:"===window.location.protocol;_.Lv=_.Gt||"http:"===window.location.protocol?_.Vj:_.dk;_.$t=function(a){a=a.toUpperCase();for(var c=0,f=Iv.length;cf.expires_at&&(a.Kc.clear(),f=null);f&&f.error&&!c&&(f=null);return f}; _.Zj=function(a,c){var f="";if(!a)return f;var g=c||"&",h;for(h in a)if({}.hasOwnProperty.call(a,h)){var l;l=a[h];if(null!=l){var n=[(0,window.encodeURIComponent)(h),"="];if(l instanceof Array){for(var q=[],t=0;t");var n=_.R.createElement(g.join(""));n&&(!f||n.tagName==f.tagName&&n.namespaceURI==f.namespaceURI)&&(f=n)}catch(q){}g=f;a=a||{};for(var t in a)a.hasOwnProperty(t)&&(g[t]=a[t]);return f};_.R.Jk=function(){if(window.document.body)return window.document.body;try{var a=window.document.getElementsByTagNameNS("http://www.w3.org/1999/xhtml", "body");if(a&&1==a.length)return a[0]}catch(f){}return window.document.documentElement||window.document};_.R.Qt=function(c){return a(c)}})(); _.R=_.R||{};(function(){function a(a){c=a["core.util"]||{}}var c={},f={};_.Pb&&_.Pb.register("core.util",null,a);_.R.Nt=function(a){return"undefined"===typeof c[a]?null:c[a]};_.R.hasFeature=function(a){return"undefined"!==typeof c[a]};_.R.Rt=function(){return f}})(); var dv;var Zk;var Xu;var Pe;var yn;var Uu;var Oe;var Ze;var Ye;var Xe;var We;var Ve;var Ie;var Je;var Ke;var Le;var Lu;var Me;var Fu;Fu=function(a,c){return ac?1:0};_.Ku=function(a,c){return-1!=a.indexOf(c)};Me=/[&<>"']/;Lu=/'/g;Le=/"/g;Ke=/>/g;Je=/")&&(a=a.replace(Ke,">"));-1!=a.indexOf('"')&&(a=a.replace(Le,"""));-1!=a.indexOf("'")&&(a=a.replace(Lu,"'"));return a};_.Ne=function(){return _.D.navigator?_.D.navigator.userAgent:null};Oe=function(){return _.D.navigator}; Ze=Ye=Xe=We=Ve=!1;var Su;if(Su=(0,_.Ne)()){var Tu=Oe();Ve=(0,_.Tl)(Su,"Opera");We=!Ve&&((0,_.Ku)(Su,"MSIE")||(0,_.Ku)(Su,"Trident"));Ye=(Xe=!Ve&&(0,_.Ku)(Su,"WebKit"))&&(0,_.Ku)(Su,"Mobile");Ze=!Ve&&!Xe&&!We&&"Gecko"==Tu.product}_.cf=Ve;_.W=We;_.df=Ze;_.ef=Xe;_.ff=Ye;Uu=Oe();yn=Uu&&Uu.platform||"";_.$e=(0,_.Ku)(yn,"Mac");_.Eh=(0,_.Ku)(yn,"Win");_.tk=(0,_.Ku)(yn,"Linux");_.Pu=!!Oe()&&(0,_.Ku)(Oe().appVersion||"","X11");var Vu=(0,_.Ne)();_.Qu=!!Vu&&(0,_.Ku)(Vu,"Android");_.Ru=!!Vu&&(0,_.Ku)(Vu,"iPhone"); _.Wu=!!Vu&&(0,_.Ku)(Vu,"iPad");Pe=function(){var a=_.D.document;return a?a.documentMode:void 0};t:{var Yu="",Zu;if(_.cf&&_.D.opera)var $u=_.D.opera.version,Yu="function"==typeof $u?$u():$u;else if(_.df?Zu=/rv\:([^\);]+)(\)|;)/:_.W?Zu=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:_.ef&&(Zu=/WebKit\/(\S+)/),Zu)var av=Zu.exec((0,_.Ne)()),Yu=av?av[1]:"";if(_.W){var bv=Pe();if(bv>(0,window.parseFloat)(Yu)){Xu=String(bv);break t}}Xu=Yu}_.Se=Xu;Zk={};_.cv=function(a){return Zk[a]||(Zk[a]=0<=(0,_.Nu)(_.Se,a))}; _.Te=function(a){return _.W&&_.Ue>=a};dv=_.D.document;_.Ue=dv&&_.W?Pe()||("CSS1Compat"==dv.compatMode?(0,window.parseInt)(_.Se,10):5):void 0; _.qe=function(a){return"number"==typeof a};_.ev=function(a){return"function"==(0,_.da)(a)};_.ye=Array.prototype;_.we=_.ye.indexOf?function(a,c,f){return _.ye.indexOf.call(a,c,f)}:function(a,c,f){f=null==f?0:0>f?Math.max(0,a.length+f):f;if((0,_.fa)(a))return(0,_.fa)(c)&&1==c.length?a.indexOf(c,f):-1;for(;f=arguments.length?_.ye.slice.call(a,c):_.ye.slice.call(a,c,f)}; var Cp;var Sn;var Dp;var Bp;var zp;var fv;fv=function(a){return/^\s*$/.test(a)?!1:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,""))};_.Qn=function(a){a=String(a);if(fv(a))try{return eval("("+a+")")}catch(c){}throw Error("G`"+a);};_.PC=function(a,c){var f=[];Bp(new zp(c),a,f);return f.join("")};zp=function(a){this.B=a}; Bp=function(a,c,f){switch(typeof c){case "string":Cp(a,c,f);break;case "number":f.push((0,window.isFinite)(c)&&!(0,window.isNaN)(c)?c:"null");break;case "boolean":f.push(c);break;case "undefined":f.push("null");break;case "object":if(null==c){f.push("null");break}if((0,_.ea)(c)){var g=c.length;f.push("[");for(var h="",l=0;lc?f+="000":256>c?f+="00":4096>c&&(f+="0");return Dp[a]=f+c.toString(16)}),'"')}; var tf;_.qf=function(a,c,f){for(var g in a)c.call(f,a[g],g,a)};_.Li=function(a){var c=[],f=0,g;for(g in a)c[f++]=a[g];return c};_.Ki=function(a){var c=[],f=0,g;for(g in a)c[f++]=g;return c};tf="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.sf=function(a,c){for(var f,g,h=1;hc?null:(0,_.fa)(a)?a.charAt(c):a[c]}; _.dh=function(){};_.dh.prototype.Sj=!1;_.dh.prototype.Ma=function(){return this.Sj};_.dh.prototype.ca=function(){this.Sj||(this.Sj=!0,this.C())};_.pD=function(a,c){var f=(0,_.ma)(_.eh,c);a.po||(a.po=[]);a.po.push((0,_.H)(f,void 0))};_.dh.prototype.C=function(){if(this.po)for(;this.po.length;)this.po.shift()()};_.eh=function(a){a&&"function"==typeof a.ca&&a.ca()}; _.mh=function(a,c){this.type=a;this.currentTarget=this.target=c;this.defaultPrevented=this.Ad=!1;this.Tg=!0};_.mh.prototype.C=function(){};_.mh.prototype.ca=function(){};_.mh.prototype.stopPropagation=function(){this.Ad=!0};_.mh.prototype.preventDefault=function(){this.defaultPrevented=!0;this.Tg=!1}; var lh=function(a){lh[" "](a);return a};lh[" "]=_.gh;var Jh;var yh;_.Ih=!_.W||(0,_.Te)(9);yh=!_.W||(0,_.Te)(9);Jh=_.W&&!(0,_.cv)("9");!_.ef||(0,_.cv)("528");_.df&&(0,_.cv)("1.9b")||_.W&&(0,_.cv)("8")||_.cf&&(0,_.cv)("9.5")||_.ef&&(0,_.cv)("528");_.df&&!(0,_.cv)("8")||_.W&&(0,_.cv)("9");_.gv=_.W?"focusin":"DOMFocusIn";_.hv=_.W?"focusout":"DOMFocusOut";_.iv=_.ef?"webkitTransitionEnd":_.cf?"otransitionend":"transitionend";_.nh=function(a,c){_.mh.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.charCode=this.keyCode=this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.fj=!1;this.B=null;a&&this.$c(a,c)};(0,_.J)(_.nh,_.mh);_.k=_.nh.prototype; _.k.$c=function(a,c){var f=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=c;var g=a.relatedTarget;if(g){if(_.df){var h;t:{try{lh(g.nodeName);h=!0;break t}catch(l){}h=!1}h||(g=null)}}else"mouseover"==f?g=a.fromElement:"mouseout"==f&&(g=a.toElement);this.relatedTarget=g;this.offsetX=_.ef||void 0!==a.offsetX?a.offsetX:a.layerX;this.offsetY=_.ef||void 0!==a.offsetY?a.offsetY:a.layerY;this.clientX=void 0!==a.clientX?a.clientX:a.pageX;this.clientY=void 0!==a.clientY?a.clientY:a.pageY; this.screenX=a.screenX||0;this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||("keypress"==f?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.fj=_.$e?a.metaKey:a.ctrlKey;this.state=a.state;this.B=a;a.defaultPrevented&&this.preventDefault()};_.k.stopPropagation=function(){_.nh.T.stopPropagation.call(this);this.B.stopPropagation?this.B.stopPropagation():this.B.cancelBubble=!0}; _.k.preventDefault=function(){_.nh.T.preventDefault.call(this);var a=this.B;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Jh)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(c){}};_.k.Op=function(){return this.B};_.k.C=function(){}; var Lh;var cC;cC="closure_listenable_"+(1E6*Math.random()|0);_.wB=function(a){try{return!(!a||!a[cC])}catch(c){return!1}};Lh=0;var oh=function(a,c,f,g,h,l){this.lb=a;this.B=c;this.src=f;this.type=g;this.capture=!!h;this.Tc=l;this.key=++Lh;this.Zc=this.If=!1},jv=function(a){a.Zc=!0;a.lb=null;a.B=null;a.src=null;a.Tc=null};var lv;_.kv=function(a){this.src=a;this.B={};this.G=0};_.kv.prototype.add=function(a,c,f,g,h){var l=this.B[a];l||(l=this.B[a]=[],this.G++);var n=lv(l,c,g,h);-1f.keyCode||void 0!=f.returnValue)){t:{var l=!1;if(0==f.keyCode)try{f.keyCode=-1;break t}catch(n){l=!0}if(l||void 0==f.returnValue)f.returnValue=!0}f=[];for(l=g.currentTarget;l;l=l.parentNode)f.push(l);for(var l=a.type,q=f.length-1;!g.Ad&&0<=q;q--)g.currentTarget=f[q],h&=Fh(f[q],l,!0,g);for(q=0;!g.Ad&&q>>0);_.dC=function(a){return(0,_.ev)(a)?a:a[lC]||(a[lC]=function(c){return a.handleEvent(c)})};(0,_.hh)(function(a){xh=a(xh)}); _.Hh=function(){this.Zi=new _.kv(this);this.zh=this};(0,_.J)(_.Hh,_.dh);_.Hh.prototype[cC]=!0;_.k=_.Hh.prototype;_.k.Lg=null;_.k.tj=(0,_.ba)(27);_.k.addEventListener=function(a,c,f,g){(0,_.ph)(this,a,c,f,g)};_.k.removeEventListener=function(a,c,f,g){(0,_.Ah)(this,a,c,f,g)}; _.k.dispatchEvent=function(a){var c,f=this.Lg;if(f){c=[];for(var g=1;f;f=f.Lg)c.push(f),++g}f=this.zh;g=a.type||a;if((0,_.fa)(a))a=new _.mh(a,f);else if(a instanceof _.mh)a.target=a.target||f;else{var h=a;a=new _.mh(g,f);(0,_.sf)(a,h)}var h=!0,l;if(c)for(var n=c.length-1;!a.Ad&&0<=n;n--)l=a.currentTarget=c[n],h=pC(l,g,!0,a)&&h;a.Ad||(l=a.currentTarget=f,h=pC(l,g,!0,a)&&h,a.Ad||(h=pC(l,g,!1,a)&&h));if(c)for(n=0;!a.Ad&&n");f=f.join("")}f=a.createElement(f);g&&((0,_.fa)(g)?f.className=g:(0,_.ea)(g)?_.wf.apply(null,[f].concat(g)):(0,_.Ef)(f,g));2a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==f||"absolute"==f||"relative"==f))return a;return null}; _.sg=function(a){var c,f=(0,_.zf)(a),g=(0,_.ng)(a,"position"),h=_.df&&f.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==g&&(c=f.getBoxObjectFor(a))&&(0>c.screenX||0>c.screenY),l=new _.X(0,0),n=(0,_.pg)(f);if(a==n)return l;if(a.getBoundingClientRect)c=qg(a),a=(0,_.Hf)((0,_.xf)(f)),l.x=c.left+a.x,l.y=c.top+a.y;else if(f.getBoxObjectFor&&!h)c=f.getBoxObjectFor(a),a=f.getBoxObjectFor(n),l.x=c.screenX-a.screenX,l.y=c.screenY-a.screenY;else{c=a;do{l.x+=c.offsetLeft;l.y+=c.offsetTop;c!=a&&(l.x+=c.clientLeft|| 0,l.y+=c.clientTop||0);if(_.ef&&"fixed"==(0,_.og)(c)){l.x+=f.body.scrollLeft;l.y+=f.body.scrollTop;break}c=c.offsetParent}while(c&&c!=a);if(_.cf||_.ef&&"absolute"==g)l.y-=f.body.offsetTop;for(c=a;(c=(0,_.rg)(c))&&c!=f.body&&c!=n;)l.x-=c.scrollLeft,_.cf&&"TR"==c.tagName||(l.y-=c.scrollTop)}return l};_.tg=function(a,c){var f=new _.X(0,0),g=(0,_.jg)((0,_.zf)(a)),h=a;do{var l=g==c?(0,_.sg)(h):(0,_.Hv)(h);f.x+=l.x;f.y+=l.y}while(g&&g!=c&&(h=g.frameElement)&&(g=g.parent));return f}; _.Hv=function(a){var c;if(a.getBoundingClientRect)c=qg(a),c=new _.X(c.left,c.top);else{c=(0,_.Hf)((0,_.xf)(a));var f=(0,_.sg)(a);c=new _.X(f.x-c.x,f.y-c.y)}if(_.df&&!(0,_.cv)(12)){var g;_.W?g="-ms-transform":_.ef?g="-webkit-transform":_.cf?g="-o-transform":_.df&&(g="-moz-transform");var h;g&&(h=(0,_.ng)(a,g));h||(h=(0,_.ng)(a,"transform"));a=h?(a=h.match(vg))?new _.X((0,window.parseFloat)(a[1]),(0,window.parseFloat)(a[2])):new _.X(0,0):new _.X(0,0);a=new _.X(c.x+a.x,c.y+a.y)}else a=c;return a}; _.wg=function(a,c,f){if(c instanceof _.fg)f=c.height,c=c.width;else if(void 0==f)throw Error("r");a.style.width=(0,_.xg)(c,!0);a.style.height=(0,_.xg)(f,!0)};_.xg=function(a,c){"number"==typeof a&&(a=(c?Math.round(a):a)+"px");return a};_.yg=function(a){var c;var f=zg;if("none"!=(0,_.ng)(a,"display"))c=f(a);else{c=a.style;var g=c.display,h=c.visibility,l=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=f(a);c.display=g;c.position=l;c.visibility=h;c=a}return c}; zg=function(a){var c=a.offsetWidth,f=a.offsetHeight,g=_.ef&&!c&&!f;return(0,_.kf)(c)&&!g||!a.getBoundingClientRect?new _.fg(c,f):(a=qg(a),new _.fg(a.right-a.left,a.bottom-a.top))};_.Ag=function(a,c){var f=a.style;"opacity"in f?f.opacity=c:"MozOpacity"in f?f.MozOpacity=c:"filter"in f&&(f.filter=""===c?"":"alpha(opacity="+100*c+")")};_.Bg=_.df?"MozUserSelect":_.ef?"WebkitUserSelect":null;vg=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/; var Qk;_.Nk=function(a,c){(0,_.ea)(c)||(c=[c]);var f=(0,_.De)(c,function(a){return(0,_.fa)(a)?a:a.Rr+" "+a.duration+"s "+a.timing+" "+a.Le+"s"});(0,_.Mg)(a,"transition",f.join(","))}; _.Pk=function(){if(!(0,_.kf)(Qk))if(_.W)Qk=(0,_.cv)("10.0");else{var a=window.document.createElement("div"),c=_.ef?"-webkit":_.df?"-moz":_.W?"-ms":_.cf?"-o":null;a.innerHTML='
';a=a.firstChild;c=a.style[(0,_.Cg)("transition")];Qk=""!=("undefined"!==typeof c?c:a.style[(0,_.Fg)(a,"transition")]||"")}return Qk}; _.Rn=function(a,c,f){if((0,_.ev)(a))f&&(a=(0,_.H)(a,f));else if(a&&"function"==typeof a.handleEvent)a=(0,_.H)(a.handleEvent,a);else throw Error("t");return 2147483647f;f++)tv[f]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(f),sv[f]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(f),rv[sv[f]]=f}for(var f=rv,g=[],h=0;h>4);64!=q&&(g.push(n<<4&240|q>>2),64!=t&&g.push(q<<6&192|t))}return c(String.fromCharCode.apply(null,g))};vw=function(){Zv.parentNode.removeChild(Zv)};ww=function(){var a=Yv+88;Xv(Zv,a,_.Pv);Yv=a};yw=function(){var a=Yv-88;Xv(Zv,a,_.Nv);Yv=a};Iw=function(a){var c=hw(a).Hd();a=(0,_.d)();if(c)for(var c=c.split(":"),f;f=c.shift();)f=f.split("="),a[f[0]]=f[1];return a}; Jw=function(a){if(!a)return[];a=a.split("=");return a[1]?a[1].split("|"):[]};Kw=function(a){return(a=uw(a))?a.sub:null};Lw=function(a){var c=a?ww:yw,f=a?yw:ww;a=a?"-":"";Yv=(0,window.parseInt)(a+88);Zv.style.webkitTransform="translate3d(0px,"+a+88+"px,0px)";Zv.style.transform="translate3d(0px,"+a+88+"px,0px)";Zv.style.display="";Zv.style.visibility="visible";c();(0,_.Rn)(f,_.Nv+_.Ov);(0,_.Rn)(vw,_.Nv+_.Ov+_.Pv)};Nw=function(a){a=a.split(":");return{OB:a[0].split("=")[1],iJ:Jw(a[1]),aN:Jw(a[2]),FM:Jw(a[3])}}; Ow=function(a){var c=Kw(a),f;if(f=c)f="X"==Iw(a.cookie_policy)[c];return f}; Pw=function(a){var c=(0,_.P)("oauth-flow/toast/position");"top"!==c&&(c="bottom");var f=window.document.createElement("div");Zv=f;f.style.cssText="position:fixed;left:0px;z-index:1000;width:100%;";var g;if((0,_.P)("oauth-flow/improveToastUi")){(0,_.Mg)(f,"visibility","hidden");(0,_.Mg)(f,c,"-40px");(0,_.Mg)(f,"height","128px");g=f;if("desktop"==(0,_.P)("deviceType")){g=window.document.createElement("div");g.style.cssText="float:left;position:relative;left:50%;";f.appendChild(g);var h=window.document.createElement("div"); h.style.cssText="float:left;position:relative;left:-50%";g.appendChild(h);g=h}h="top"==c?"-":"";Yv=(0,window.parseInt)(h+88);Zv.style.webkitTransform="translate3d(0px,"+h+88+"px,0px)";Zv.style.transform="translate3d(0px,"+h+88+"px,0px)"}else(0,_.Mg)(f,"display","none"),(0,_.Mg)(f,c,"20px"),g=window.document.createElement("div"),g.style.cssText="float:left;position:relative;left:50%;",f.appendChild(g),h=window.document.createElement("div"),h.style.cssText="float:left;position:relative;left:-50%",g.appendChild(h), g=h;h=window;try{for(;h.parent!=h&&h.parent.document;)h=h.parent}catch(l){}h=h.document.body;try{h.insertBefore(f,h.firstChild)}catch(n){}_.Sm.cj({url:":socialhost:/:session_prefix:_/widget/oauthflow/toast",queryParams:{clientId:a.client_id,idToken:a.id_token},where:g,onRestyle:function(){(0,_.P)("oauth-flow/improveToastUi")?"top"===c?Lw(!0):Lw(!1):f.style.display=""}})};Qw=!1; Rw=function(a){var c,f=null;_.Lv.iterate(function(a,g){if(0===a.indexOf("G_AUTHUSER_")){var h=(0,_.du)(a.substring(11));if(!c||h.Gb&&!c.Gb||h.Gb==c.Gb&&h.Ke>c.Ke)c=h,f=g}});var g=a&&(0,_.$t)(a);if(null!==f){var h;_.Lv.iterate(function(a,f){var l=(0,_.wu)(a);l&&l.uf&&(g&&l.ep!=g||l.Gb==c.Gb&&l.Ke==c.Ke&&(h=f))});if(h){var l=Nw(h);a=l&&l.iJ[Number(f)];l=l&&l.OB;if(a)return{lw:f,vN:a,OB:l}}}return null};Sw=function(a){return"true"===String(a.immediate)}; pw=function(a,c){var f=null;a&&c&&(f=c.client_id=c.client_id||a.client_id,c.scope=c.scope||a.scope,c.g_user_cookie_policy=a.cookie_policy,c.cookie_policy=c.cookie_policy||a.cookie_policy,c.response_type=c.response_type||a.response_type);if(c){c.issued_at||(c.issued_at=String((0,_.Fn)()));var g=(0,window.parseInt)(c.expires_in,10)||86400;c.error&&(g=(0,_.P)("oauth-flow/errorMaxAge")||86400);c.expires_in=String(g);c.expires_at||(c.expires_at=String((0,_.Fn)()+g));a&&Sw(a)||(c["g-oauth-window"]=(qk|| {}).popup);c._aa||c.error||null!=Rw(f)||!Sw(a)||(c._aa="1");f=c.status={};f.google_logged_in=!!c.session_state;g=f.signed_in=!!c.access_token;f.method=g?c["g-oauth-window"]?"PROMPT":"AUTO":null}return c};jk={}; ck=function(a,c){var f,g;"string"==typeof a?(f=c,g=a):(f=a,g="token");if(f){var h=(0,_.Ev)(f,!0);if(h){var l;if((l=f)&&l.session_state){var n=[],q=[],t=[],v=(0,window.parseInt)(l.authuser,10)||0;n[v]=l.session_state;q[v]=l.issued_at;t[v]=l.expires_at;l=["C="+l.client_id,"S="+n.join("|"),"I="+q.join("|"),"X="+t.join("|")].join(":")}else l=null;l&&h.Kc.write(l);"token"==g&&(h=(0,_.st)(f.g_user_cookie_policy),!h||h.Gb&&!_.Gt?h=null:(l="G_AUTHUSER_"+(_.Gt&&h.Gb?"S":"H")+h.Ke,n=_.Mv[l],n||(n=new _.Lv(l, (0,_.vv)(h)),_.Mv[l]=n),h=n),h&&(f.error?h.clear():f.session_state&&h.write(f.authuser||"0")))}}if(g="token"!==g?(0,_.Cv)(g):(0,_.Ev)(f))if(f){if(g.Kc.write(f),!_.Jv||g.Fj&&"token"!==_.Jv)_.Jv=g.key}else g.Kc.clear(),_.Jv=null;(0,_.Hx)(void 0,void 0)}; lk=function(a,c){var f=c&&c.key||"token",g=a=pw(c&&c.params,a);(0,_.P)("oauth-flow/toastCfg")&&!Ow(g)&&0<=(" "+(g.scope||"")+" ").indexOf(" https://www.googleapis.com/auth/plus.login ")&&"1"===g._aa&&(g._aa="0",Qw||(Qw=!0,Pw(g)));ck(f,a);a=(0,_.Hx)(f,void 0);if(c){(f=c.iframe)&&f.parentNode.removeChild(f);f=c.popup;g=c.after_redirect;if(f&&"keep_open"!=g)try{f.close()}catch(h){}c.timeout&&(window.clearTimeout(c.timeout),c.timeout=null);c.callback&&(c.callback(a),c.callback=null)}};kk={};xk={}; hk=[];ik=function(){var a=hk;if(null!==a){hk=null;for(var c=0,f=a.length;cf-nw)return;c.parentNode.removeChild(c);if(/Firefox/.test(window.navigator.userAgent))try{window.frames[a]=void 0}catch(g){}(0,_.ow)();a=_.mw}nw=f;var h=String(2147483647*(0,_.Vb)()|0);_.T.register("oauth2relayReady:"+h,ek(function(){_.T.Jd("oauth2relayReady:"+h);ik()}));_.T.register("oauth2relayReady",ek(function(){ik()}));c=ek(function(a){var c=_.R.Qc;a= c(a);var f=c=a.state,f=f.replace(/\|.*$/,"");a.state={}.hasOwnProperty.call(jk,f)?jk[f]:null;null!=a.state&&(f=kk[c],delete kk[c],lk(a,f))});_.T.register("oauth2callback:"+h,c);_.T.register("oauth2callback",c);var c=[(0,_.P)("oauth-flow/proxyUrl")||(0,_.P)("oauth-flow/relayUrl"),"?parent=",(0,window.encodeURIComponent)(_.Rb.Pq(window.location.href)),"#rpctoken=",h,"&forcesecure=1"].join(""),f=_.R.Jk(),l=_.R.Fh({name:a,id:a});l.src=c;l.style.width="1px";l.style.height="1px";l.style.position="absolute"; l.style.top="-100px";f.appendChild(l);_.T.tf(a)}};Ww=function(a,c,f,g){var h=Iw(f),l=h[a];c?h[a]="X":delete h[a];var n=[];(0,_.of)(h,function(a,c){n.push(c+"="+a)});c=n.join(":");f=hw(f);c?f.write(n.join(":")):f.clear();h[a]!==l&&g&&g()};Ix=function(a,c){for(var f=a.split(" "),g=c.split(" "),h=(0,_.d)(),l=0,n=g.length;lc.Ke)&&(c=l,f=a)});return f};Vx=function(a){var c=_.R.Jk(),f=_.R.Fh();f.src=a.uri;f.style.width="1px";f.style.height="1px";f.style.position="absolute";f.style.top="-100px";a.timeout=window.setTimeout(function(){f.parentNode&&f.parentNode.removeChild(f)},3E5);c.appendChild(f)}; mk=function(a,c){if(qk){var f=qk.popup,g=qk.after_redirect;if(f&&"keep_open"!=g&&!Sw(a))try{f.close()}catch(h){}}f=qk={};"key"in a&&(f.key=a.key,delete a.key);a=Vw(a);qk.params=Uw(a);qk.callback=function(f){Ow(f)&&(Sw(a)?f=Tw(f):f.error||Ww(Kw(f),!1,f.cookie_policy));(c||function(){})(pw(a,f))};f.uri=rk(a,f);return f};rA=function(a,c){(0,_.gk)(function(){_.T.call(_.mw,"check_session_state",function(a){c.call(null,a)},a.session_state,a.client_id)})}; fz=function(a){a=_.R.Qc("#"+(0,_.Zj)(a));if(!Sw(a))return null;var c=a.key||Jx(a.client_id);return(c=(0,_.Hx)(c,!0,!0))&&c.client_id===a.client_id&&Ix(a.scope,c.scope)&&Ix(a.response_type,c.response_type)?c:null}; qA=function(a,c){var f=_.R.Qc();a.hl=f.lang||f.hl||(0,_.P)("lang");var g=mk(a,c);a.after_redirect&&(g.after_redirect=a.after_redirect);if(null!=a.scope){var h=function(){(0,_.gk)(function(){if(g.popup)g.popup.focus();else if(Sw(a))Vx(g);else{var c=Math.min((0,_.P)("oauth-flow/authWindowWidth",650),window.screen.width-20),f=Math.min((0,_.P)("oauth-flow/authWindowHeight",600),window.screen.height-30);qk.popup=window.open(g.uri,"_blank",["toolbar=no","location="+(window.opera?"no":"yes"),"directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no", "width="+c,"height="+f,"top="+(window.screen.height-f)/2,"left="+(window.screen.width-c)/2].join())}})},l=fz(a);!(0,_.P)("oauth-flow/disableOpt")&&l?rA(l,function(a){a?lk(l,qk):h()}):h()}else lk(null,qk)}; _.sk=function(a,c){var f=a||{},g=c||function(){};if((0,_.P)("oauth-flow/disableOpt")||(0,_.P)("isLoggedIn")||!Sw(f))qA(f,g);else{var h=(0,_.d)();h.client_id=f.client_id;h.session_state=null;rA(h,function(a){a?(a=(0,_.d)(),a.error="immediate_failed_user_logged_out",g(pw(f,a))):((0,_.Fa)("isLoggedIn",!0),qA(f,g))})}}; Xw=function(a){a||(a=(0,_.Hx)(void 0,!0));a&&"object"===typeof a||(a={error:"invalid_request",error_description:"no callback data"});var c=a.error_description;c&&window.console&&(window.console.error(a.error),window.console.error(c));a.error||(_.Nd.drw=null);ck(a);if(c=a.authuser)(0,_.P)("googleapis.config/sessionIndex"),(0,_.Fa)("googleapis.config/sessionIndex",c);_.Qv.jj("oauth",a)};Zw=function(a,c,f){var g=Kw(a);g&&Ww(g,!0,c,function(){f&&f(Tw(a))})};_.$w=_.Qj.Qe;ax=null; bx=["request_visible_actions","client_id","scope"];_.ex=function(a,c){if("force"!==a.approvalprompt){var f=cx(a);f.immediate=!0;delete f.redirect_uri;delete f.approval_prompt;var g;if(g=!c)if(ax){for(g=0;gf.indexOf(c)&&(f+=" "+c);a.scope=f}; _.rx=function(a){if("string"===typeof a)if(window[a])a=window[a];else{(0,_.hx)('Callback function named "'+a+'" not found');return}a&&(0,_.gx)(a)};_.lx=function(a,c){c.B=!0;var f=a,f=(0,_.qx)(f);(0,_.fx)(f)}; (0,_.b)("gapi.auth.authorize",_.sk);(0,_.b)("gapi.auth.checkSessionState",rA);(0,_.b)("gapi.auth.getAuthHeaderValueForFirstParty",_.$w);(0,_.b)("gapi.auth.getToken",function(a,c){return(0,_.Hx)(a,c)});(0,_.b)("gapi.auth.getVersionInfo",function(a,c){(0,_.gk)(function(){var f=_.mw,g=_.Qj.Qe()||"",h=null,l=null;g&&(l=g.split(" "),2==l.length&&(h=l[1]));h?_.T.call(f,"get_versioninfo",function(c){a(c)},h,c):a()})});(0,_.b)("gapi.auth.init",_.gk);(0,_.b)("gapi.auth.setToken",ck); (0,_.b)("gapi.auth.signIn",function(a){(0,_.mx)(a)});(0,_.b)("gapi.auth.signOut",function(){var a=(0,_.Hx)(void 0,void 0);a&&Zw(a,a.cookie_policy,Xw)});(0,_.b)("gapi.auth.unsafeUnpackIdToken",uw);(0,_.b)("gapi.auth._pimf",_.ex);(0,_.b)("gapi.auth._oart",Pw); var Ax=(0,_.wn)();if(Ax.clientid&&Ax.scope&&Ax.cookiepolicy){var Gx="gapi.auth.pageLevelConfig("+(0,_.$g)(Ax).sort().join("-")+")";(0,_.La)(Gx)&&(0,_.Yi)(Gx)}Ax.clientid&&Ax.scope&&Ax.callback&&!(0,_.P)("disableRealtimeCallback")?(0,_.kx)(Ax):(0,_.gk)(); _.sx=function(a,c){""==(a.scope||"").replace(" ","")&&(a.scope=c)}; }); // Copyright 2002-2013 Google Inc.