/* JS */ gapi.loaded_1(function(_){var window=this; _.kf=function(a){if("function"==typeof a.Oc)return a.Oc();if(_.t(a))return a.split("");if(_.Uc(a)){for(var b=[],c=a.length,d=0;d2*this.K&&rf(this),!0):!1}; var rf=function(a){if(a.K!=a.G.length){for(var b=0,c=0;b=d.G.length)throw _.of;var e=d.G[b++];return a?e:d.I[e]};return e};_.tf=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)}; var vf,wf;_.qf.prototype.$h=_.N(7,function(a){for(var b=0;bc)return!1;!("undefined"!=typeof _.xf&&b instanceof _.xf)&&5=e&&(e+=32);65<=f&&90>=f&&(f+=32);if(e!=f)return!1}return!0};Bk=null; _.Ck=function(a){if(null===Bk){var b=_.I("client/headers/response");b||(b=_.I("googleapis/headers/response"));Bk=_.zk(b)}if(null!=Bk){if(Bk.hasOwnProperty(a))return!0;for(var c in Bk)if(Bk.hasOwnProperty(c)&&_.Ak(c,a))return!0}return!1}; _.Dk=function(a){a=String(a||"").split("\x00").join("");for(var b=[],c=!0,d=0,e=a.length;d=g&&d+1=l&&(f+=k,g=65536+(g-55296<<10)+(l-56320),++d)}if(!(0<=g&&1114109>=g)||55296<=g&&57343>=g||64976<=g&&65007>=g||65534==(g&65534))g=65533,f=String.fromCharCode(g);k=!(32<=g&&126>=g)||" "==f||c&&":"==f||"\\"==f;!c||"/"!=f&&"?"!=f||(c=!1);"%"==f&&(d+2>=e?k=!0:(l=16*(0,window.parseInt)(a.charAt(d+ 1),16)+(0,window.parseInt)(a.charAt(d+2),16),0<=l&&255>=l?(g=l,f=0==g?"":"%"+(256+l).toString(16).toUpperCase().substr(1),d+=2):k=!0));k&&(f=(0,window.encodeURIComponent)(f),1>=f.length&&(0<=g&&127>=g?f="%"+(256+g).toString(16).toUpperCase().substr(1):(g=65533,f=(0,window.encodeURIComponent)(String.fromCharCode(g)))));b.push(f)}a=b.join("");a=a.split("#")[0];a=a.split("?");b=a[0].split("/");c=[];d=0;for(e=b.length;de)b[d++]=String.fromCharCode(e);else if(191e){var f=a[c++];b[d++]=String.fromCharCode((e&31)<<6|f&63)}else{var f=a[c++],g=a[c++];b[d++]=String.fromCharCode((e&15)<<12|(f&63)<<6|g&63)}}return b.join("")};_.Av=null;Bv=null;Cv=null;Dv=null;_.Ev=_.Nd||_.Od||_.Ld||"function"==typeof _.r.atob; _.Gv=function(a,b){var c;if(_.Ev&&!b)c=_.r.atob(a);else if(c=_.Fv(a,b),8192>=c.length)c=String.fromCharCode.apply(null,c);else{for(var d="",e=0;e>4);64!=k&&(d.push(g<<4&240|k>>2),64!=l&&d.push(k<<6&192|l))}return d}; _.Hv=function(){if(!_.Av){_.Av={};Bv={};Cv={};Dv={};for(var a=0;65>a;a++)_.Av[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a),Bv[_.Av[a]]=a,Cv[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a),Dv[Cv[a]]=a,62<=a&&(Bv["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a)]=a,Dv["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a)]=a)}}; _.Iv=function(a){this.G=a};_.Iv.prototype.toString=function(){return this.G};_.Jv=function(){_.pe.call(this);this.M=1;this.J=[];this.K=0;this.G=[];this.I={}};_.A(_.Jv,_.pe);_.h=_.Jv.prototype;_.h.subscribe=_.q(34);_.h.Uf=function(a){if(0!=this.K)return this.J.push(a),!1;var b=this.G[a];if(b){var c=this.I[b];c&&_.oe(c,a);delete this.G[a];delete this.G[a+1];delete this.G[a+2]}return!!b}; _.h.fn=function(a,b){var c=this.I[a];if(c){this.K++;for(var d=Array(arguments.length-1),e=1,f=arguments.length;ea.Md)a=e,b=d}});return{YF:a,Yh:b}}; mw=function(a){a=a.split(":");return{Aw:a[0].split("=")[1],DM:iw(a[1]),cX:iw(a[2]),uW:iw(a[3])}};nw=function(a){a=_.Pj(a);if(!a||a.Pb&&!_.Bj)return null;var b=["G_AUTHUSER_",_.Bj&&a.Pb?"S":"H",a.Md].join(""),c=_.Jj[b];c||(c=new _.Cj(b,_.Rj(a)),_.Jj[b]=c);return c};ow=function(a){var b=jw(a);b?(a=hw(a.cookie_policy),b="0"==a[b]||"X"==a[b]):b=!1;return b}; pw=function(a){var b=_.I("oauth-flow/toast/position");"top"!==b&&(b="bottom");var c=window.document.createElement("div");$v=c;c.style.cssText="position:fixed;left:0px;z-index:1000;width:100%;";var d;_.S(c,"visibility","hidden");_.S(c,b,"-40px");_.S(c,"height","128px");d=c;if("desktop"==_.I("deviceType")){d=window.document.createElement("div");d.style.cssText="float:left;position:relative;left:50%;";c.appendChild(d);var e=window.document.createElement("div");e.style.cssText="float:left;position:relative;left:-50%"; d.appendChild(e);d=e}e="top"==b?"-":"";bw=(0,window.parseInt)(e+88,10);$v.style.webkitTransform="translate3d(0px,"+e+88+"px,0px)";$v.style.transform="translate3d(0px,"+e+88+"px,0px)";e=window;try{for(;e.parent!=e&&e.parent.document;)e=e.parent}catch(f){}e=e.document.body;try{e.insertBefore(c,e.firstChild)}catch(g){}_.Sm.sf({url:":socialhost:/:session_prefix:_/widget/oauthflow/toast",queryParams:{clientId:a.client_id,idToken:a.id_token},where:d,onRestyle:function(){"top"===b?kw(!0):kw(!1)}})};qw=!1; rw=!1;_.sw=function(a){_.Db(a)&&_.Ib(a)};uw=function(a){var b=lw(),c=b.YF,b=b.Yh,d=a&&_.Fj(a);if(null!==b){var e;_.Cj.iterate(function(a,b){var f=_.Gj(a);f&&f.Sc&&(d&&f.Bw!=d||f.Pb==c.Pb&&f.Md==c.Md&&(e=b))});if(e){var f=mw(e);a=f&&f.DM[Number(b)];f=f&&f.Aw;if(a)return{Yh:b,JX:a,Aw:f}}}return null};vw=function(a){a=nw(a.g_user_cookie_policy);_.hb("googleapis.config/sessionIndex",null);a.clear()};ww=function(a){return"true"===String(a.immediate)}; xw=function(a,b){var c=null;if(a&&b){c=b.client_id=b.client_id||a.client_id;b.scope=b.scope||a.scope;b.g_user_cookie_policy=a.cookie_policy;b.cookie_policy=b.cookie_policy||a.cookie_policy;b.response_type=b.response_type||a.response_type;var d=_.I("iframes/signin/iframeType");!qw&&b.error&&ww(a)&&(_.sw("gapi.signin.impression."+d+"."+c),qw=!0)}b&&(b.issued_at||(b.issued_at=String(_.rj())),d=(0,window.parseInt)(b.expires_in,10)||86400,b.error&&(d=_.I("oauth-flow/errorMaxAge")||86400),b.expires_in= String(d),b.expires_at||(b.expires_at=String(_.rj()+d)),a&&ww(a)||(b["g-oauth-window"]=(tw||{}).popup),b._aa||b.error||null!=uw(c)||!ww(a)||(b._aa="1"),c=b.status={},c.google_logged_in=!!b.session_state,d=c.signed_in=!!b.access_token,c.method=d?b["g-oauth-window"]?"PROMPT":"AUTO":null);return b};yw={}; _.zw=function(a,b){var c,d;"string"==typeof a?(c=b,d=a):(c=a,d="token");if(c){var e=_.Tj(c,!0);if(e){var f;if((f=c)&&f.session_state){var g=[],k=[],l=[],m=(0,window.parseInt)(f.authuser,10)||0;g[m]=f.session_state;k[m]=f.issued_at;l[m]=f.expires_at;f=["C="+f.client_id,"S="+g.join("|"),"I="+k.join("|"),"X="+l.join("|")].join(":")}else f=null;f&&e.ye.write(f);"token"==d&&(e=nw(c.g_user_cookie_policy))&&(c.error?vw(c):c.session_state&&e.write(c.authuser||"0"))}}if(d="token"!==d?_.Sj(d):_.Tj(c))if(c){if(d.ye.write(c), !_.Lj||d.sH&&"token"!==_.Lj)_.Lj=d.key}else d.ye.clear(),_.Lj=null;_.Uj(void 0,void 0)};Aw=function(a,b){var c=b&&b.key||"token",d=a=xw(b&&b.params,a);!ow(d)&&0<=(" "+(d.scope||"")+" ").indexOf(" https://www.googleapis.com/auth/plus.login ")&&_.I("isLoggedIn")&&"1"===d._aa&&(d._aa="0",rw||(rw=!0,pw(d)));_.zw(c,a);a=_.Uj(c,void 0);if(b){c=b.popup;d=b.after_redirect;if(c&&"keep_open"!=d)try{c.close()}catch(e){}b.callback&&(b.callback(a),b.callback=null)}};Bw={};Cw=function(){return!!_.I("oauth-flow/usegapi")}; Dw=function(a){var b=_.Qv;return function(c){if(this.f==b&&this.t==_.L.Xg(this.f)&&this.origin==_.L.hg(this.f))return a.apply(this,arguments)}};Ew=null;Fw=[];Gw=function(a,b,c){Cw()?Ew.register(a,c,_.cn):_.L.register(a+":"+b,Dw(c))};Hw={};Iw=0; Jw=function(a){a&&Fw.push(a);a=_.Qv;var b=window.document.getElementById(a),c=(new Date).getTime();if(b){if(Iw&&6E4>c-Iw)return;b.parentNode.removeChild(b);if(/Firefox/.test(window.navigator.userAgent))try{window.frames[a]=void 0}catch(d){}_.Rv();a=_.Qv}Iw=c;var e=String(2147483647*(0,_.hk)()|0),b=_.I("oauth-flow/proxyUrl")||_.I("oauth-flow/relayUrl");if(Cw())Ew=_.Sm.sf({where:_.K.Nm(),url:b,id:a,attributes:{style:{width:"1px",height:"1px",position:"absolute",top:"-100px"}},dontclear:!0});else{var b= [b,"?parent=",(0,window.encodeURIComponent)(_.cj.Ra(window.location.href)),"#rpctoken=",e,"&forcesecure=1"].join(""),c=_.K.Nm(),f=_.K.kq({name:a,id:a});f.src=b;f.style.width="1px";f.style.height="1px";f.style.position="absolute";f.style.top="-100px";f.tabIndex="-1";c.appendChild(f);_.L.ol(a)}Gw("oauth2relayReady",e,function(){Cw()?Ew.unregister("oauth2relayReady"):_.L.unregister("oauth2relayReady:"+e);var a=Fw;if(null!==a){Fw=null;for(var b=0,c=a.length;bb.Md)&&(b=f,c=a)});return c}; Sw=function(a){if(Cw()){var b=_.Sm.sf({where:_.K.Nm(),url:a.uri,attributes:{style:{width:"1px",height:"1px",position:"absolute",top:"-100px"}},dontclear:!0});window.setTimeout(function(){b.close()},3E5)}else{var c=_.K.Nm(),b=_.K.kq();b.src=a.uri;b.style.width="1px";b.style.height="1px";b.style.position="absolute";b.style.top="-100px";window.setTimeout(function(){b.parentNode&&b.parentNode.removeChild(b)},3E5);c.appendChild(b)}}; Tw=function(a,b){if(tw){var c=tw.popup,d=tw.after_redirect;if(c&&"keep_open"!=d&&!ww(a))try{c.close()}catch(e){}}c=tw={};"key"in a&&(c.key=a.key,delete a.key);a=Nw(a);c.params=Mw(a);c.callback=function(c){ww(a)||!c||c.error||Pw(jw(c),!1,c.cookie_policy);ow(c)&&ww(a)&&(c=Kw(c));(b||function(){})(xw(a,c))};c.uri=Lw(a,c);return c}; Uw=function(a,b){_.Ow(function(){Cw()?Ew.send("check_session_state",{session_state:a.session_state,client_id:a.client_id},function(a){b.call(null,a[0])},_.cn):_.L.call(_.Qv,"check_session_state",Dw(function(a){b.call(null,a)}),a.session_state,a.client_id)})};Vw=function(a){a=_.K.Nb("#"+_.Oj(a));if(!ww(a))return null;var b=a.key||Rw(a.client_id);return(b=_.Uj(b,!0,!0))&&b.client_id===a.client_id&&Qw(a.scope,b.scope)&&Qw(a.response_type,b.response_type)?b:null}; Ww=function(a,b){var c=_.K.Nb();a.hl=c.lang||c.hl||_.I("lang");var d=Tw(a,b);a.after_redirect&&(d.after_redirect=a.after_redirect);if(null!=a.scope&&null!=a.client_id){var e=function(){_.Ow(function(){if(d.popup)d.popup.focus();else if(ww(a))Sw(d);else{var b=Math.min(_.I("oauth-flow/authWindowWidth",650),window.screen.width-20),c=Math.min(_.I("oauth-flow/authWindowHeight",600),window.screen.height-30);tw.popup=window.open(d.uri,"_blank",["toolbar=no","location="+(window.opera?"no":"yes"),"directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no", "width="+b,"height="+c,"top="+(window.screen.height-c)/2,"left="+(window.screen.width-b)/2].join())}})},f=Vw(a);!_.I("oauth-flow/disableOpt")&&f?Uw(f,function(a){a?Aw(f,tw):e()}):e()}else Aw(null,tw),_.Sb("Unable to perform authorization: scope and/or client_idparameters missing.")}; Xw=function(a){a||(a=_.Uj(void 0,!0));a&&"object"===typeof a||(a={error:"invalid_request",error_description:"no callback data"});var b=a.error_description;b&&window.console&&(window.console.error(a.error),window.console.error(b));a.error||(_.$a.drw=null);_.zw(a);if(b=a.authuser)_.I("googleapis.config/sessionIndex"),_.hb("googleapis.config/sessionIndex",b);_.Sv.G.fn(_.Tv.toString(),a);return a}; Yw=function(a,b){var c=a||{},d=b||function(){};if(_.I("oauth-flow/disableOpt")||_.I("isLoggedIn")||!ww(c))Ww(c,d);else{var e=_.Ka();e.client_id=c.client_id;e.session_state=null;Uw(e,function(a){a?(a=_.Ka(),a.error="immediate_failed_user_logged_out",d(xw(c,a))):(_.hb("isLoggedIn",!0),Ww(c,d))})}};Zw=function(a,b){var c=jw(a);c&&(vw(a),Pw(c,!0,b,function(){Xw&&Xw(Kw(a))}))}; _.$w=function(a,b){var c=new _.Yf(function(b,c){var f=function(a){null==a||a.error?c(a):b(a)};try{Yw(a,f)}catch(g){c(g)}});b&&c.then(b,function(a){b(Xw(a))});return c};_.ax=function(a){_.Rb&&(_.Rb.error?_.Rb.error(a):_.Rb.log&&_.Rb.log(a))};bx=_.fk.Mm;cx=null; _.fx=function(a,b){if("force"!==a.approvalprompt){var c=_.dx(a);c.immediate=!0;delete c.redirect_uri;delete c.approval_prompt;var d;if(d=!b)cx?(c.client_id!==cx.client_id&&window.console&&window.console.log&&window.console.log("Ignoring mismatched page-level auth param client_id="+c.client_id),d=!0):(cx=c,d=!1);d||ex(c)}}; _.dx=function(a){var b=a.redirecturi||"postmessage",c=(0,_.ad)((a.scope||"").replace(/[\s\xa0]+/g," ")),b={client_id:a.clientid,redirect_uri:b,response_type:"code token id_token gsession",scope:c};a.approvalprompt&&(b.approval_prompt=a.approvalprompt);a.state&&(b.state=a.state);a.openidrealm&&(b["openid.realm"]=a.openidrealm);c="offline"==a.accesstype?!0:(c=a.redirecturi)&&"postmessage"!=c;c&&(b.access_type="offline");a.requestvisibleactions&&(b.request_visible_actions=(0,_.ad)(a.requestvisibleactions.replace(/[\s\xa0]+/g, " ")));a.after_redirect&&(b.after_redirect=a.after_redirect);a.cookiepolicy&&"none"!==a.cookiepolicy&&(b.cookie_policy=a.cookiepolicy);"none"===a.cookiepolicy&&_.sw("gapi.signin.cpnone");"undefined"!=typeof a.includegrantedscopes&&(b.include_granted_scopes=a.includegrantedscopes);a.e&&(b.e=a.e);(a=a.authuser||_.I("googleapis.config/sessionIndex"))&&(b.authuser=a);(a=_.I("useoriginassocialhost"))&&(b.use_origin_as_socialhost=a);return b}; ex=function(a){_.dp("waaf0","signin","0");_.$w(a,function(a){_.dp("waaf1","signin","0");Xw(a)})};_.gx=function(a){a=_.dx(a);_.hb("oauth-flow/authWindowWidth",445);_.hb("oauth-flow/authWindowHeight",615);ex(a)};_.hx=function(a){_.Zv(_.Sv.G,_.Tv.toString(),a,void 0);_.Sv.subscribe(_.Tv,a)}; var ox,rx;_.jx=function(a){return a.cookiepolicy?!0:(_.ix("cookiepolicy is a required field. See https://developers.google.com/+/web/signin/#button_attr_cookiepolicy for more information."),!1)};_.ix=function(a){window.console&&(window.console.error?window.console.error(a):window.console.log&&window.console.log(a))};_.nx=function(a,b){var c=_.jo();_.Oa(a,c);c=Mw(c);if(_.jx(c)){var d=_.kx(c);_.lx(c);b?_.Ya(b,"click",function(){_.mx(c,d)}):_.mx(c,d)}}; _.kx=function(a){var b=new ox;_.hx(function(c){if(b.G&&c&&(c.access_token&&_.hb("isPlusUser",!0),c["g-oauth-window"]))if(b.G=!1,c.access_token&&"consent"==c.prompt){var d=c["g-oauth-window"];c=c.id_token;var e=a.apppackagename;if(e&&d){var f=!0;try{f=d.closed}catch(g){}f||(c=_.I("iframes/:socialhost:")+"/_/history/otaappinstall?clientId="+(0,window.encodeURIComponent)(a.clientid)+"&appId="+(0,window.encodeURIComponent)(e)+"&idToken="+(0,window.encodeURIComponent)(c),c=_.mj(c),d.location.href=c)}}else if(d= c["g-oauth-window"],a.apppackagename&&d)try{d.close()}catch(k){}});return b};ox=function(){this.G=!1};_.lx=function(a){a=_.px(a);_.qx(a.callback);_.Ow(function(){_.fx(a)})};_.px=function(a){rx(a);a.apppackagename&&(a.after_redirect="keep_open");a.redirecturi&&delete a.redirecturi;_.lj(function(b){return a[b]})||(a.authuser=0);a.apppackagename&&(a.apppackagename=a.apppackagename.replace(/^[\s\xa0]+|[\s\xa0]+$/g,""));return a};rx=function(a){/^\s*$/.test(a.scope||"")&&(a.scope="https://www.googleapis.com/auth/plus.login")}; _.qx=function(a){if("string"===typeof a)if(window[a])a=window[a];else{_.ix('Callback function named "'+a+'" not found');return}a&&_.hx(a)};_.mx=function(a,b){b.G=!0;var c;c=_.px(a);_.gx(c)}; _.E("gapi.auth.authorize",_.$w);_.E("gapi.auth.checkSessionState",Uw);_.E("gapi.auth.getAuthHeaderValueForFirstParty",bx);_.E("gapi.auth.getToken",function(a,b){return _.Uj(a,b)});_.E("gapi.auth.getVersionInfo",function(a,b){_.Ow(function(){var c=_.fk.Mm()||"",d=null,e=null;c&&(e=c.split(" "),2==e.length&&(d=e[1]));d?Cw()?Ew.send("get_versioninfo",{xapisidHash:d,sessionIndex:b},function(b){a(b[0])},_.cn):_.L.call(_.Qv,"get_versioninfo",Dw(function(b){a(b)}),d,b):a()})});_.E("gapi.auth.init",_.Ow); _.E("gapi.auth.setToken",_.zw);_.E("gapi.auth.signIn",function(a){_.nx(a)});_.E("gapi.auth.signOut",function(){var a=_.Uj(void 0,void 0);a&&Zw(a,a.cookie_policy)});_.E("gapi.auth.unsafeUnpackIdToken",dw);_.E("gapi.auth._pimf",_.fx);_.E("gapi.auth._oart",pw);_.E("gapi.auth._guss",function(a){return cw(a).read()}); var sx=_.jo();sx.clientid&&sx.scope&&sx.cookiepolicy&&_.sw("gapi.auth.pageLevelConfig("+_.qb(sx).sort().join("-")+")");sx.clientid&&sx.scope&&sx.callback&&!_.I("disableRealtimeCallback")?_.lx(sx):_.Ow(); /* Portions of this code are from MochiKit, received by The Closure Authors under the MIT license. All other code is Copyright 2005-2009 The Closure Authors. All Rights Reserved. */ _.ng=function(a,b){this.O=[];this.W=a;this.wa=b||null;this.K=this.I=!1;this.J=void 0;this.S=this.ma=this.U=!1;this.N=0;this.G=null;this.M=0};_.ng.prototype.cancel=function(a){if(this.I)this.J instanceof _.ng&&this.J.cancel();else{if(this.G){var b=this.G;delete this.G;a?b.cancel(a):(b.M--,0>=b.M&&b.cancel())}this.W?this.W.call(this.wa,this):this.S=!0;this.I||this.Em(new _.og)}};_.ng.prototype.T=function(a,b){this.U=!1;pg(this,a,b)}; var pg=function(a,b,c){a.I=!0;a.J=c;a.K=!b;qg(a)},sg=function(a){if(a.I){if(!a.S)throw new rg;a.S=!1}};_.h=_.ng.prototype;_.h.nc=function(a){sg(this);pg(this,!0,a)};_.h.Em=function(a){sg(this);pg(this,!1,a)};_.h.mc=function(a,b){return this.Wf(a,null,b)};_.h.Wf=function(a,b,c){this.O.push([a,b,c]);this.I&&qg(this);return this};_.h.then=function(a,b,c){var d,e,f=new _.Yf(function(a,b){d=a;e=b});this.Wf(d,function(a){a instanceof _.og?f.cancel():e(a)});return f.then(a,b,c)};_.Vf(_.ng); _.ng.prototype.Y=_.q(8); var tg=function(a){return(0,_.ld)(a.O,function(a){return _.Yc(a[1])})},qg=function(a){if(a.N&&a.I&&tg(a)){var b=a.N,c=ug[b];c&&(_.r.clearTimeout(c.Ga),delete ug[b]);a.N=0}a.G&&(a.G.M--,delete a.G);for(var b=a.J,d=c=!1;a.O.length&&!a.U;){var e=a.O.shift(),f=e[0],g=e[1],e=e[2];if(f=a.K?g:f)try{var k=f.call(e||a.wa,b);_.ia(k)&&(a.K=a.K&&(k==b||k instanceof Error),a.J=b=k);if(_.Wf(b)||"function"===typeof _.r.Promise&&b instanceof _.r.Promise)d=!0,a.U=!0}catch(l){b=l,a.K=!0,tg(a)||(c=!0)}}a.J=b;d&&(k= (0,_.u)(a.T,a,!0),d=(0,_.u)(a.T,a,!1),b instanceof _.ng?(b.Wf(k,d),b.ma=!0):b.then(k,d));c&&(b=new vg(b),ug[b.Ga]=b,a.N=b.Ga)},rg=function(){_.Bf.call(this)};_.A(rg,_.Bf);rg.prototype.message="Deferred has already fired";rg.prototype.name="AlreadyCalledError";_.og=function(){_.Bf.call(this)};_.A(_.og,_.Bf);_.og.prototype.message="Deferred was canceled";_.og.prototype.name="CanceledError";var vg=function(a){this.Ga=_.r.setTimeout((0,_.u)(this.I,this),0);this.G=a}; vg.prototype.I=function(){delete ug[this.Ga];throw this.G;};var ug={}; var Cu,Eu,Fu,Su,Nu,Yu,Ou,Qu,Pu,Vu,Ru,Zu;Cu=/#|$/;_.Du=function(a,b){var c=a.search(Cu),d;a:{d=0;for(var e=b.length;0<=(d=a.indexOf(b,d))&&dd)return null;e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return(0,window.decodeURIComponent)(a.substr(d,e-d).replace(/\+/g," "))}; Eu=function(a,b){if(a)for(var c=a.split("&"),d=0;db)throw Error("N`"+b);a.K=b}else a.K=null;return a};_.Gu.prototype.getPath=function(){return this.U};_.Gu.prototype.setPath=function(a,b){_.Tu(this);this.U=b?Su(a,!0):a;return this};_.Lu=function(a,b,c){_.Tu(a);b instanceof _.Mu?(a.G=b,Uu(a.G,a.M)):(c||(b=Nu(b,Vu)),a.G=new _.Mu(b,0,a.M));return a};_.Gu.prototype.$a=function(a,b){return _.Lu(this,a,b)};_.Gu.prototype.jf=function(){return this.G.toString()}; _.Wu=function(a,b,c){_.Tu(a);a.G.set(b,c);return a};_.Gu.prototype.Qd=function(a){return this.G.get(a)};_.Gu.prototype.S=function(){return this.Y};_.Gu.prototype.N=function(a,b){_.Tu(this);this.Y=b?Su(a):a;return this};_.Tu=function(a){if(a.T)throw Error("O");};_.Xu=function(a){return a instanceof _.Gu?a.clone():new _.Gu(a,void 0)};Su=function(a,b){return a?b?(0,window.decodeURI)(a.replace(/%25/g,"%2525")):(0,window.decodeURIComponent)(a):""}; Nu=function(a,b,c){return _.t(a)?(a=(0,window.encodeURI)(a).replace(b,Yu),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};Yu=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};Ou=/[#\/\?@]/g;Qu=/[\#\?:]/g;Pu=/[\#\?]/g;Vu=/[\#\?@]/g;Ru=/#/g;_.Mu=function(a,b,c){this.I=this.G=null;this.J=a||null;this.K=!!c};Zu=function(a){a.G||(a.G=new _.qf,a.I=0,a.J&&Eu(a.J,function(b,c){a.add((0,window.decodeURIComponent)(b.replace(/\+/g," ")),c)}))};_.h=_.Mu.prototype; _.h.xb=function(){Zu(this);return this.I};_.h.add=function(a,b){Zu(this);this.J=null;a=$u(this,a);var c=this.G.get(a);c||this.G.set(a,c=[]);c.push(b);this.I++;return this};_.h.remove=function(a){Zu(this);a=$u(this,a);return _.tf(this.G.I,a)?(this.J=null,this.I-=this.G.get(a).length,this.G.remove(a)):!1};_.h.clear=function(){this.G=this.J=null;this.I=0};_.h.isEmpty=function(){Zu(this);return 0==this.I};var av=function(a,b){Zu(a);b=$u(a,b);return _.tf(a.G.I,b)};_.h=_.Mu.prototype; _.h.$h=function(a){var b=this.Oc();return _.nd(b,a)};_.h.Fd=function(){Zu(this);for(var a=this.G.Oc(),b=this.G.Fd(),c=[],d=0;d=c?a:a=-1a?"-":0<=b.indexOf("+")?"+":0<=b.indexOf(" ")?" ":"";0<=a&&(d=f+d);if((0,window.isNaN)(c)||d.length>=c)return d;d=(0,window.isNaN)(e)?Math.abs(a).toString():Math.abs(a).toFixed(e);a=c-d.length-f.length;return d=0<=b.indexOf("-",0)?f+d+_.bd(" ",a): f+_.bd(0<=b.indexOf("0",0)?"0":" ",a)+d},d:function(a,b,c,d,e,f,g,k){return _.qM.f((0,window.parseInt)(a,10),b,c,d,0,f,g,k)}};_.qM.i=_.qM.d;_.qM.u=_.qM.d; var rM=function(a){a=_.Df(a);_.Hd(a,function(b,c){_.Ck(c)&&(a[c]=b)});return a},sM=function(a,b){if(null==b)return b;var c=String(b);c.match(/^\/\/.*/)&&(c=("http:"==window.location.protocol?"http:":"https:")+c);c.match(/^\/([^\/].*)?$/)&&window.location.host&&String(window.location.protocol).match(/^https?:$/)&&(c=window.location.protocol+"//"+window.location.host+c);var d=c.match(/^(https?:)(\/\/)?(\/([^\/].*)?)?$/i);d&&window.location.host&&String(window.location.protocol).match(/^https?:$/)&& (c=d[1]+"//"+window.location.host+(d[3]||""));c=c.replace(/^(https?:\/\/[^\/?#@]*)\/$/i,"$1");c=c.replace(/^(http:\/\/[-_a-z0-9.]+):0*80([\/?#].*)?$/i,"$1$2");c=c.replace(/^(https:\/\/[-_a-z0-9.]+):0*443([\/?#].*)?$/i,"$1$2");c.match(/^https?:\/\/[-_a-z0-9.]*[-_a-z][-_a-z0-9.]*$/i)&&(c=c.toLowerCase());d=_.I("client/rewrite");_.Xc(d)&&Object.prototype.hasOwnProperty.call(d,c)?c=String(d[c]||c):(c=c.replace(/^(https?):\/\/www\.googleapis\.com$/,"$1://content.googleapis.com"),c=c.replace(/^(https?):\/\/www-(googleapis-[-_a-z0-9]+\.[-_a-z0-9]+\.google\.com)$/, "$1://content-$2"),c.match(/^https?:\/\/content(-[-_a-z0-9.]+)?\.googleapis\.com$/)||(c=c.replace(/^(https?):\/\/([-_a-z0-9]+(\.[-_a-z0-9]+)?\.googleapis\.com)$/,"$1://content-$2")));a&&(d=_.I("client/firstPartyRewrite"),_.Xc(d)&&Object.prototype.hasOwnProperty.call(d,c)?c=String(d[c]||c):(c=c.replace(/^(https?):\/\/content\.googleapis\.com$/,"$1://clients6.google.com"),c=c.replace(/^(https?):\/\/content-([-a-z0-9]+)\.([-a-z0-9]+)\.googleapis\.com$/,"$1://$2-googleapis.$3.google.com"),c=c.replace(/^(https?):\/\/content-([-a-z0-9]+)\.googleapis\.com$/, "$1://$2.clients6.google.com"),c=c.replace(/^(https?):\/\/([-a-z0-9]+)-www-googleapis\.([-a-z0-9]+).google.com$/,"$1://content-googleapis-$2.$3.google.com")));return c},tM={error:{code:-1,message:"A network error occurred and the request could not be completed."}},uM=function(a){return new _.Yf(function(b,c){c(a)})},vM=function(a){a=_.Df(a);_.nb(a,function(b,c){_.ka(b)&&(a[c]=b.join(", "))});return a},wM=function(a,b,c){c||((c=_.I("googleapis.config/proxy"))&&(c=String(c).replace(/\/static\/proxy\.html$/, "")||"/"),c=String(c||""));c||(c=_.I("googleapis.config/root"),b&&(c=_.I("googleapis.config/root-1p")||c),c=String(c||""));c=String(sM(b,c)||c);return a=_.Ch(c,a)},xM=function(a,b,c,d){_.Mh.call(this);this.wb=a;this.Sb=b;this.Wa=c;this.rb=d;this.N=null};_.A(xM,_.Mh); xM.prototype.then=function(a){this.N||(this.N=(new _.Yf(function(a,c){this.V("error",(0,_.u)(function(){c(yM(this))},this));this.V("success",(0,_.u)(function(){a(yM(this))},this));this.send(this.wb,this.Sb,this.Wa,this.rb)},this)).then(function(a){a.headers=rM(a.headers);return a},function(a){return a.status?(a.headers=rM(a.headers),uM(a)):uM({result:tM,body:'{"error":{"code":-1,"message":"A network error occurred and the request could not be completed."}}',headers:null,status:null,statusText:null})})); return this.N.then.apply(this.N,arguments)}; var yM=function(a){var b,c=a.getStatus(),d=_.$h(a);204==c?b=!1:b=""==a.xr()?(0,_.dc)(d):_.ai(a);for(var e={},f=a.getAllResponseHeaders().split("\r\n"),g=0;ge))if(d in CM)d=CM[d];else if(d in DM)d=CM[d]=DM[d];else{e=d;k=d.charCodeAt(0);if(31k)e=d;else{if(256>k){if(e="\\x",16>k||256k&&(e+="0");e+=k.toString(16).toUpperCase()}d= CM[d]=e}k=d}f[g]=k}b.push('"');return b.join("")}; var MM=function(a){this.G={};for(var b=0;b=b.length)this.O.push("|"+c);else for(var d=b.length,e=Math.ceil(d/3800),f=0,g=1;fa-pN?10:100)},oN),EN=function(){pN=(0,_.wa)();qN&&window.clearTimeout(qN);qN=window.setTimeout(DN,10)},yN=function(a,b){if(!/^https?:\/\//.test(a))throw Error("lb`"+a);this.J=a;this.I=b;this.G=0}; yN.prototype.send=function(a){this.G=++this.G%2;a=this.J+"#"+this.G+(0,window.encodeURIComponent)(a);try{_.Od?this.I.location.href=a:this.I.location.replace(a)}catch(b){}EN()};var wN=function(a,b,c){this.K=a;this.I=b;this.J=c;this.G=this.I.location.href.split("#")[0]+"#INITIAL";CN.push(this);EN()};wN.prototype.xo=function(){var a=this.I.location.href;if(a!=this.G){this.G=a;if(a=a.split("#")[1])a=a.substr(1),this.J((0,window.decodeURIComponent)(a));return!0}return!1}; var FN=function(a){this.J=a;this.K=!1;this.promise={then:(0,_.u)(function(a,c,d){this.K||(this.K=!0);this.I&&!this.G?this.J.resolve(this.I):this.G&&!this.I&&this.J.reject(this.G);return this.J.promise.then(a,c,d)},this)}};FN.prototype.resolve=function(a){this.K?this.J.resolve(a):this.I||this.G||(this.I=a)};FN.prototype.reject=function(a){this.K?this.J.reject(a):this.I||this.G||(this.G=a)}; var GN=function(a){JM.call(this,GN.prototype.M);if(!a||"object"!=typeof a&&"string"!=typeof a)throw new HM("Invalid request parameters");var b;_.t(a)?b={path:a}:b=a;if(!b.path)throw new HM('Missing required parameter: "path"');this.G={path:b.path,method:b.method||"GET",params:b.params||{},headers:b.headers||{},body:b.body,root:b.root,responseType:b.responseType};this.I=b.authType||"auto"};_.A(GN,JM);GN.prototype.Di=function(){return this.G}; GN.prototype.Zk=function(){var a=this.G,b=a.headers||{},c=b,d=a.applicationName||null,e=a.clientName||null,f=a.clientVersion||null,f=f||"0.1",e=e||"google-api-javascript-client",g=[];d&&(g.push(d),g.push(" "));g.push(e);f&&(g.push("/"),g.push(f));c["X-JavaScript-User-Agent"]=g.join("");c=b["Content-Type"];a.body&&!c&&(c="application/json",b["Content-Type"]=c);"application/json"!=c||a.params.alt||(a.params.alt="json");(c=a.body||null)&&_.Xc(c)&&(a.body=(0,_.ac)(c));a.key=a.id;b=_.kk.Sl(b,void 0,this.I); c=_.bk(b);HN(b);(b=_.nk.key)&&!_.ia(a.params.key)&&(a.params.key=b);(b=String(a.path||"").match(/^(https?:\/\/[^\/?#]+)([\/?#].*)?$/i))&&!a.root&&(a.root=String(b[1]),a.path=String(b[2]||"/"),a.path.match(/^\/_ah\/api(\/.*)?$/)&&(a.root+="/_ah/api",a.path=a.path.substr(8)));b=a.params;d=_.Dk(a.path);e=String(_.I("googleapis.config/xd3")||"");18<=e.length&&"/static/proxy.html"==e.substring(e.length-18)&&(e=e.substring(0,e.length-18));e||(e="/");f=_.Dk(e);if(e!=f)throw Error("G");"/"!=e.charAt(e.length- 1)&&(e+="/");d=_.Ch(e,d);_.pd(d,"/")&&(d=d.substring(0,d.length-1));d=_.zh(_.Bh([d],b));a.path=d;a.root=sM(c,a.root);a.url=wM(a.path,c,a.root)};var KN=function(a){a.Zk();a=a.G;return{key:"gapiRequest",params:{id:a.id,key:a.key,url:a.url,path:a.path,httpMethod:a.method,body:a.body||"",headers:a.headers||{},urlParams:{},root:a.root,clientName:IN(),clientVersion:JN()}}}; GN.prototype.execute=function(a){this.G.headers.Authorization||_.Uj(void 0,void 0);var b=KN(this);IM(b,function(b,d){var e=b;b.gapiRequest&&(e=b.gapiRequest);e&&e.data&&(e=e.data);var e=e instanceof Array?e[0]:e,f;if(204!=e.status&&e.body)try{f=(0,_.dc)(e.body)}catch(g){}_.I("client/jsonpOverride")&&(f=e);a&&a(f,d)})};GN.prototype.M=function(){var a=KN(this);return _.I("client/cors")&&GM(a)?AM(a):FM(a)}; var LN=//,MN=/^application\/http(;.+$|$)/,NN=function(a,b){if(!a||!b||!_.La(a,b=b.toLowerCase()))throw new HM("Unable to retrieve header.");return a[b]},QN=function(a,b){for(var c="batch"+String(Math.round(2147483647*(0,_.hk)()))+String(Math.round(2147483647*(0,_.hk)())),d={path:"/batch",headers:{"Content-Type":"multipart/mixed; boundary="+c},method:"POST"},c="--"+c,e=[],f=0;f"},c);c.push("");c.push(d.method+" "+d.path);e(d.headers,c);c.push("");d.body&&c.push(d.body);return c.join("\r\n")},SN=function(a,b){var c=RN(a,b),d={};_.Hd(c,function(a,b){d[b]={result:a.result||a.body,rawResult:(0,_.ac)({id:b,result:a.result||a.body}),id:b}});return d},RN=function(a, b){a=(0,_.ad)(a);_.pd(a,"--")&&(a=a.substring(0,a.length-2));for(var c=a.split(b),d=_.Ka(),e=0;ethis.G.length||(_.lb(this.G,function(a){a.request.Zk()}),a=XN(this,a),QN(this.G,this.I).execute(a))}; VN.prototype.M=function(){if(1>this.G.length)return new _.Yf(function(a){a({})});_.lb(this.G,function(a){a.request.Zk()});var a=QN(this.G,this.I),b=(0,_.u)(function(a){YN(a);if(0!=NN(a.headers,"Content-Type").indexOf("multipart/mixed"))throw new HM("The response's Content-Type is not multipart/mixed.");var b=NN(a.headers,"Content-Type").split("boundary=")[1];if(!b)throw new HM("Boundary not indicated in response.");b=RN(a.body,"--"+b);a.result=b||{};for(var c=0;c=e.status){var g=NN(e.headers,"Content-Type").split("boundary=")[1];if(!g)throw new HM("Boundary not indicated in response.");g=SN(e.body,"--"+g);for(e=0;e