gapi.loaded_2(function(_){var window=this;
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var zx=function(){};zx.prototype.yJ=null;zx.prototype.getOptions=function(){var a;(a=this.yJ)||(a={},_.Ax(this)&&(a[0]=!0,a[1]=!0),a=this.yJ=a);return a};
var Cx;Cx=function(){};_.bb(Cx,zx);_.Ax=function(a){if(!a.NM&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.NM=d}catch(e){}}throw Error("sa");}return a.NM};_.Bx=new Cx;

_.og=window.googleapis&&window.googleapis.server||{};

var ug=function(a){return{execute:function(b){var c={method:a.httpMethod||"GET",root:a.root,path:a.url,params:a.urlParams,headers:a.headers,body:a.body},d=window.gapi,e=function(){var f=d.config.get("client/apiKey"),h=d.config.get("client/version");try{var k=d.config.get("googleapis.config/developerKey"),l=d.config.get("client/apiKey",k);d.config.update("client/apiKey",l);d.config.update("client/version","1.0.0-alpha");var m=d.client;m.request.call(m,c).then(b,b)}finally{d.config.update("client/apiKey",
f),d.config.update("client/version",h)}};d.client?e():d.load.call(d,"client",e)}}},vg=function(a,b){return function(c){var d={};c=c.body;var e=_.uf(c),f={};if(e&&e.length)for(var h=0,k=e.length;h<k;++h){var l=e[h];f[l.id]=l}h=0;for(k=b.length;h<k;++h)l=b[h].id,d[l]=e&&e.length?f[l]:e;a(d,c)}},wg=function(a){a.transport={name:"googleapis",execute:function(b,c){for(var d=[],e=0,f=b.length;e<f;++e){var h=b[e],k=h.method,l=String(k).split(".")[0];l=_.He("googleapis.config/versions/"+k)||_.He("googleapis.config/versions/"+
l)||"v1";d.push({jsonrpc:"2.0",id:h.id,method:k,apiVersion:String(l),params:h.params})}b=ug({httpMethod:"POST",root:a.transport.root,url:"/rpc?pp=0",headers:{"Content-Type":"application/json"},body:d});b.execute.call(b,vg(c,d))},root:void 0}},xg=function(a){var b=this.method,c=this.transport;c.execute.call(c,[{method:b,id:b,params:this.rpc}],function(d){d=d[b];d.error||(d=d.data||d.result);a(d)})},zg=function(){for(var a=yg,b=a.split("."),c=function(k){k=k||{};k.groupId=k.groupId||"@self";k.userId=
k.userId||"@viewer";k={method:a,rpc:k||{}};wg(k);k.execute=xg;return k},d=_.u,e=0,f=b.length;e<f;++e){var h=d[b[e]]||{};e+1==f&&(h=c);d=d[b[e]]=h}if(1<b.length&&"googleapis"!=b[0])for(b[0]="googleapis","delete"==b[b.length-1]&&(b[b.length-1]="remove"),d=_.u,e=0,f=b.length;e<f;++e)h=d[b[e]]||{},e+1==f&&(h=c),d=d[b[e]]=h},yg;for(yg in _.He("googleapis.config/methods"))zg();
_.E("googleapis.newHttpRequest",function(a){return ug(a)});_.E("googleapis.setUrlParameter",function(a,b){if("trace"!==a)throw Error("w");_.Ie("client/trace",b)});

var ei=function(a,b){a=_.Ke.XJ({id:a,name:a});a.style.width="1px";a.style.height="1px";a.style.position="absolute";a.style.top="-100px";a.style.display="none";if(window.navigator){var c=window.navigator.userAgent||"";var d=window.navigator.product||"";c=0!=c.indexOf("Opera")&&-1==c.indexOf("WebKit")&&"Gecko"==d&&0<c.indexOf("rv:1.")}else c=!1;a.src=c?"about:blank":b;a.tabIndex=-1;"function"===typeof a.setAttribute?a.setAttribute("aria-hidden","true"):a["aria-hidden"]="true";document.body.appendChild(a);
c&&(a.src=b);return a};_.Sh={tM:_.Rh,UZ:_.Oh,KL:function(){var a=null;_.Oh()&&(a=window.__PVT,null==a&&(a=(new _.Gh(document)).get("BEAT")));return a},lL:_.Qh};
var gi,fi;gi=function(){return!!fi("auth/useFirstPartyAuthV2")};fi=function(a){return _.He("googleapis.config/"+a)};
_.hi=function(a,b,c){a=void 0===a?{}:a;b=void 0===b?window.location.href:b;c=void 0===c?"auto":c;if("none"==c)return a;var d=a.Authorization,e=a.OriginToken;if(!d&&!e){(e=_.Uh())&&e.access_token&&("oauth2"==c||"auto"==c)&&(d=String(e.token_type||"Bearer")+" "+e.access_token);if(e=!d)e=(!!fi("auth/useFirstPartyAuth")||"1p"==c)&&"oauth2"!=c;if(e&&_.Oh()){if(gi()){d=fi("primaryEmail");c=fi("appDomain");e=fi("fogId");var f=[];d&&f.push({key:"e",value:d});c&&f.push({key:"a",value:c});e&&f.push({key:"u",
value:e});d=_.Qh(f)}else d=_.Qh();d&&(b=_.Eh(b),b=a["X-Goog-AuthUser"]||b,_.mc(_.mh(b))&&(!gi()||gi()&&_.mc(_.mh(fi("primaryEmail")))&&_.mc(_.mh(fi("appDomain")))&&_.mc(_.mh(fi("fogId"))))&&(b="0"),_.mc(_.mh(b))||(a["X-Goog-AuthUser"]=b))}d?a.Authorization=d:!1!==fi("auth/useOriginToken")&&(e=_.Sh.KL())&&(a.OriginToken=e)}return a};
_.ii=function(){function a(n,q,p,r,v){var t=f("proxy");if(r||!t){t=f("root");var w=f("root-1p")||t;t=t||"https://content.googleapis.com";w=w||"https://clients6.google.com";var B=f("xd3")||"/static/proxy.html";t=(r||String(q?w:t))+B}t=String(t);p&&(t+=(0<=t.indexOf("?")?"&":"?")+"usegapi=1");(q=_.Ke.mg().jsh||_.ye.h)&&(t+=(0<=t.indexOf("?")?"&":"?")+"jsh="+encodeURIComponent(q));t+="#parent="+encodeURIComponent(null!=v?String(v):_.kg.getOrigin(document.location.href));return t+("&rpctoken="+n)}function b(n,
q,p,r,v){var t=d(p,r,v);k[t]||(p=ei(t,q),_.Ff.register("ready:"+n,function(){_.Ff.unregister("ready:"+n);if(!l[t]){l[t]=!0;var w=m[t];m[t]=[];for(var B=0,D=w.length;B<D;++B){var F=w[B];e(F.Ym,F.t1,F.callback)}}}),_.Ff.jt(t,q),k[t]=p)}function c(n,q,p){var r=String(2147483647*_.ai()|0),v=a(r,n,q,p);_.Bf(function(){b(r,v,n,q,p)})}function d(n,q,p){n=a("",n,q,p,"");p=h[n+q];if(!p){p=new _.sg;p.Mt(n);p=p.Mh().toLowerCase();var r=_.ai();p+=r;h[n+q]=p}return"apiproxy"+p}function e(n,q,p){var r=void 0,v=
!1;if("makeHttpRequests"!==n)throw'only "makeHttpRequests" RPCs are implemented';var t=function(y){if(y){if("undefined"!=typeof r&&"undefined"!=typeof y.root&&r!=y.root)throw"all requests in a batch must have the same root URL";r=y.root||r;v=_.Sh.tM(y.headers)}};if(q)for(var w=0,B=q.length;w<B;++w){var D=q[w];D&&t(D.params)}t=!!f("useGapiForXd3");var F=d(v,t,r);k[F]||c(v,t,r);l[F]?_.Ff.call(F,n,function(y){if(this.f==F&&this.t==_.Ff.Tl(this.f)&&this.origin==_.Ff.jm(this.f)){var H=_.uf(y);p(H,y)}},
q):(m[F]||(m[F]=[]),m[F].push({Ym:n,t1:q,callback:p}))}function f(n){return _.He("googleapis.config/"+n)}var h={},k={},l={},m={};return{jba:function(n,q,p){return _.hi(n,q,p)},Ap:e}}();

var Ag={I4:"Authorization",TR:"Content-ID",g5:"Content-Transfer-Encoding",h5:"Content-Type",N5:"Date",O8:"OriginToken",g7:"hotrod-board-name",h7:"hotrod-chrome-cpu-model",i7:"hotrod-chrome-processors",xaa:"WWW-Authenticate",yaa:"X-ClientDetails",zaa:"X-Compass-Routing-Destination",Aaa:"X-Goog-AuthUser",Daa:"X-Goog-Encode-Response-If-Executable",Eaa:"X-Goog-Meeting-ABR",Faa:"X-Goog-Meeting-Botguardid",Gaa:"X-Goog-Meeting-ClientInfo",Haa:"X-Goog-Meeting-ClientVersion",Iaa:"X-Goog-Meeting-Debugid",Jaa:"X-Goog-Meeting-Identifier",
Kaa:"X-Goog-Meeting-RtcClient",Laa:"X-Goog-Meeting-StartSource",Maa:"X-Goog-Meeting-Token",Naa:"X-Goog-Meeting-ViewerInfo",Oaa:"X-Goog-PageId",Paa:"X-Goog-Safety-Content-Type",Qaa:"X-Goog-Safety-Encoding",Baa:"X-Goog-Drive-Client-Version",Caa:"X-Goog-Drive-Resource-Keys",Raa:"X-HTTP-Method-Override",Saa:"X-JavaScript-User-Agent",Taa:"X-Origin",Uaa:"X-Referer",Vaa:"X-Requested-With",Xaa:"X-Use-HTTP-Status-Code-Override",Waa:"X-Server-Timeout"},Bg="Accept Accept-Language Authorization Cache-Control cast-device-capabilities Content-Disposition Content-Encoding Content-Language Content-Length Content-MD5 Content-Range Content-Transfer-Encoding Content-Type Date developer-token EES-S7E-MODE financial-institution-id GData-Version google-cloud-resource-prefix hotrod-board-name hotrod-chrome-cpu-model hotrod-chrome-processors Host If-Match If-Modified-Since If-None-Match If-Unmodified-Since linked-customer-id login-customer-id MIME-Version Origin OriginToken Pragma Range request-id Slug Transfer-Encoding Want-Digest x-alkali-account-key x-alkali-application-key x-alkali-auth-apps-namespace x-alkali-auth-entities-namespace x-alkali-auth-entity x-alkali-client-locale x-chrome-connected x-framework-xsrf-token X-Client-Data X-ClientDetails X-Client-Version X-Firebase-Locale X-GData-Client X-GData-Key X-Goog-AuthUser X-Goog-PageId X-Goog-Encode-Response-If-Executable X-GoogApps-Allowed-Domains X-Goog-AdX-Buyer-Impersonation X-Goog-Api-Client X-Goog-Api-Key X-Goog-Visibilities X-Goog-Correlation-Id X-Goog-Request-Info X-Goog-Request-Reason X-Goog-Experiments x-goog-ext-124712974-jspb x-goog-ext-251363160-jspb x-goog-ext-259736195-jspb x-goog-ext-275505673-bin X-Goog-Firebase-Installations-Auth X-Firebase-Client X-Firebase-Client-Log-Type X-Firebase-GMPID X-Firebase-Auth-Token X-Firebase-AppCheck X-Goog-Drive-Client-Version X-Goog-Drive-Resource-Keys x-goog-iam-authority-selector x-goog-iam-authorization-token x-goog-request-params X-Goog-Sn-Metadata X-Goog-Sn-PatientId X-Goog-Spatula X-Goog-Travel-Bgr X-Goog-Travel-Settings X-Goog-Upload-Command X-Goog-Upload-Content-Disposition X-Goog-Upload-Content-Length X-Goog-Upload-Content-Type X-Goog-Upload-File-Name X-Goog-Upload-Header-Content-Encoding X-Goog-Upload-Header-Content-Length X-Goog-Upload-Header-Content-Type X-Goog-Upload-Header-Transfer-Encoding X-Goog-Upload-Offset X-Goog-Upload-Protocol X-Goog-User-Project X-Goog-Visitor-Id X-Goog-FieldMask X-Google-Project-Override X-HTTP-Method-Override X-JavaScript-User-Agent X-Pan-Versionid X-Proxied-User-IP X-Origin X-Referer X-Requested-With X-Stadia-Client-Context X-Upload-Content-Length X-Upload-Content-Type X-Use-Alt-Service X-Use-HTTP-Status-Code-Override X-Ios-Bundle-Identifier X-Android-Package X-Ariane-Xsrf-Token X-Earth-Engine-App-ID-Token X-Earth-Engine-Computation-Profile X-Earth-Engine-Computation-Profiling X-Play-Console-Experiments-Override X-Play-Console-Session-Id X-YouTube-VVT X-YouTube-Page-CL X-YouTube-Page-Timestamp X-Compass-Routing-Destination X-Goog-Meeting-ABR X-Goog-Meeting-Botguardid X-Goog-Meeting-ClientInfo X-Goog-Meeting-ClientVersion X-Goog-Meeting-Debugid X-Goog-Meeting-Identifier X-Goog-Meeting-RtcClient X-Goog-Meeting-StartSource X-Goog-Meeting-Token X-Goog-Meeting-ViewerInfo x-sdm-id-token X-Sfdc-Authorization X-Server-Timeout x-foyer-client-environment".split(" "),
Cg="Digest Cache-Control Content-Disposition Content-Encoding Content-Language Content-Length Content-MD5 Content-Range Content-Transfer-Encoding Content-Type Date ETag Expires Last-Modified Location Pragma Range Server Transfer-Encoding WWW-Authenticate Vary Unzipped-Content-MD5 X-Correlation-ID X-Debug-Tracking-Id X-Goog-Generation X-Goog-Metageneration X-Goog-Safety-Content-Type X-Goog-Safety-Encoding X-Google-Trace X-Goog-Upload-Chunk-Granularity X-Goog-Upload-Control-URL X-Goog-Upload-Size-Received X-Goog-Upload-Status X-Goog-Upload-URL X-Goog-Diff-Download-Range X-Goog-Hash X-Goog-Updated-Authorization X-Server-Object-Version X-Guploader-Customer X-Guploader-Upload-Result X-Guploader-Uploadid X-Google-Gfe-Backend-Request-Cost X-Earth-Engine-Computation-Profile X-Goog-Meeting-ABR X-Goog-Meeting-Botguardid X-Goog-Meeting-ClientInfo X-Goog-Meeting-ClientVersion X-Goog-Meeting-Debugid X-Goog-Meeting-RtcClient X-Goog-Meeting-Token X-Compass-Routing-Destination".split(" ");
var Dg,Eg,Fg,Gg,Ig,Jg,Kg,Lg,Mg,Ng,Og,Pg;Dg=null;Eg=null;Fg=null;Gg=function(a,b){var c=a.length;if(c!=b.length)return!1;for(var d=0;d<c;++d){var e=a.charCodeAt(d),f=b.charCodeAt(d);65<=e&&90>=e&&(e+=32);65<=f&&90>=f&&(f+=32);if(e!=f)return!1}return!0};
_.Hg=function(a){a=String(a||"").split("\x00").join("");for(var b=[],c=!0,d=0,e=a.length;d<e;++d){var f=a.charAt(d),h=a.charCodeAt(d);if(55296<=h&&56319>=h&&d+1<e){var k=a.charAt(d+1),l=a.charCodeAt(d+1);56320<=l&&57343>=l&&(f+=k,h=65536+(h-55296<<10)+(l-56320),++d)}if(!(0<=h&&1114109>=h)||55296<=h&&57343>=h||64976<=h&&65007>=h||65534==(h&65534))h=65533,f=String.fromCharCode(h);k=!(32<=h&&126>=h)||" "==f||c&&":"==f||"\\"==f;!c||"/"!=f&&"?"!=f||(c=!1);"%"==f&&(d+2>=e?k=!0:(l=16*parseInt(a.charAt(d+
1),16)+parseInt(a.charAt(d+2),16),0<=l&&255>=l?(h=l,f=0==h?"":"%"+(256+l).toString(16).toUpperCase().substr(1),d+=2):k=!0));k&&(f=encodeURIComponent(f),1>=f.length&&(0<=h&&127>=h?f="%"+(256+h).toString(16).toUpperCase().substr(1):(h=65533,f=encodeURIComponent(String.fromCharCode(h)))));b.push(f)}a=b.join("");a=a.split("#")[0];a=a.split("?");b=a[0].split("/");c=[];d=0;for(e=b.length;d<e;++d)f=b[d],h=f.split("%2E").join("."),h=h.split(encodeURIComponent("\uff0e")).join("."),"."==h?d+1==e&&c.push(""):
".."==h?(0<c.length&&c.pop(),d+1==e&&c.push("")):c.push(f);a[0]=c.join("/");for(a=a.join("?");a&&"/"==a.charAt(0);)a=a.substr(1);return"/"+a};Ig={"access-control-allow-origin":!0,"access-control-allow-credentials":!0,"access-control-expose-headers":!0,"access-control-max-age":!0,"access-control-allow-headers":!0,"access-control-allow-methods":!0,p3p:!0,"proxy-authenticate":!0,"set-cookie":!0,"set-cookie2":!0,status:!0,tsv:!0,"":!0};
Jg={"accept-charset":!0,"accept-encoding":!0,"access-control-request-headers":!0,"access-control-request-method":!0,"client-ip":!0,clientip:!0,connection:!0,"content-length":!0,cookie:!0,cookie2:!0,date:!0,dnt:!0,expect:!0,forwarded:!0,"forwarded-for":!0,"front-end-https":!0,host:!0,"keep-alive":!0,"max-forwards":!0,method:!0,origin:!0,"raw-post-data":!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,url:!0,"user-agent":!0,version:!0,via:!0,"x-att-deviceid":!0,"x-chrome-connected":!0,
"x-client-data":!0,"x-client-ip":!0,"x-do-not-track":!0,"x-forwarded-by":!0,"x-forwarded-for":!0,"x-forwarded-host":!0,"x-forwarded-proto":!0,"x-geo":!0,"x-googapps-allowed-domains":!0,"x-origin":!0,"x-proxyuser-ip":!0,"x-real-ip":!0,"x-referer":!0,"x-uidh":!0,"x-user-ip":!0,"x-wap-profile":!0,"":!0};
Kg=function(a){if(!_.Eb(a))return null;for(var b={},c=0;c<a.length;c++){var d=a[c];if("string"===typeof d&&d){var e=d.toLowerCase();Gg(d,e)&&(b[e]=d)}}for(var f in Ag)Object.prototype.hasOwnProperty.call(Ag,f)&&(d=Ag[f],e=d.toLowerCase(),Gg(d,e)&&Object.prototype.hasOwnProperty.call(b,e)&&(b[e]=d));return b};Lg=new RegExp("("+/[\t -~\u00A0-\u2027\u202A-\uD7FF\uE000-\uFFFF]/.source+"|"+/[\uD800-\uDBFF][\uDC00-\uDFFF]/.source+"){1,100}","g");Mg=/[ \t]*(\r?\n[ \t]+)+/g;Ng=/^[ \t]+|[ \t]+$/g;
Og=function(a,b){if(!b&&"object"===typeof a&&a&&"number"===typeof a.length){b=a;a="";for(var c=0,d=b.length;c<d;++c){var e=Og(b[c],!0);e&&(a&&(e=a+", "+e),a=e)}}if("string"===typeof a&&(a=a.replace(Mg," "),a=a.replace(Ng,""),""==a.replace(Lg,"")&&a))return a};Pg=/^[-0-9A-Za-z!#\$%&'\*\+\.\^_`\|~]+$/g;
_.Qg=function(a){if("string"!==typeof a||!a||!a.match(Pg))return null;a=a.toLowerCase();if(null==Fg){var b=[],c=_.He("googleapis/headers/response");c&&"object"===typeof c&&"number"===typeof c.length||(c=null);null!=c&&(b=b.concat(c));(c=_.He("client/headers/response"))&&"object"===typeof c&&"number"===typeof c.length||(c=null);null!=c&&(b=b.concat(c));b=b.concat(Cg);(c=_.He("googleapis/headers/request"))&&"object"===typeof c&&"number"===typeof c.length||(c=null);null!=c&&(b=b.concat(c));(c=_.He("client/headers/request"))&&
"object"===typeof c&&"number"===typeof c.length||(c=null);null!=c&&(b=b.concat(c));b=b.concat(Bg);for(var d in Ag)Object.prototype.hasOwnProperty.call(Ag,d)&&b.push(Ag[d]);Fg=Kg(b)}return null!=Fg&&Fg.hasOwnProperty(a)?Fg[a]:a};
_.Rg=function(a,b){if(!_.Qg(a)||!Og(b))return null;a=a.toLowerCase();if(a.match(/^x-google|^x-gfe|^proxy-|^sec-/i)||Jg[a])return null;if(null==Dg){b=[];var c=_.He("googleapis/headers/request");c&&"object"===typeof c&&"number"===typeof c.length||(c=null);null!=c&&(b=b.concat(c));(c=_.He("client/headers/request"))&&"object"===typeof c&&"number"===typeof c.length||(c=null);null!=c&&(b=b.concat(c));b=b.concat(Bg);Dg=Kg(b)}return null!=Dg&&Dg.hasOwnProperty(a)?Dg[a]:null};
_.Sg=function(a,b){if(!_.Qg(a)||!Og(b))return null;a=a.toLowerCase();if(Ig[a])return null;if(null==Eg){b=[];var c=_.He("googleapis/headers/response");c&&"object"===typeof c&&"number"===typeof c.length||(c=null);null!=c&&(b=b.concat(c));(c=_.He("client/headers/response"))&&"object"===typeof c&&"number"===typeof c.length||(c=null);null!=c&&(b=b.concat(c));b=b.concat(Cg);Eg=Kg(b)}return null!=Eg&&Eg.hasOwnProperty(a)?a:null};
_.Tg=function(a,b){if(_.Qg(b)&&null!=a&&"object"===typeof a){var c=void 0,d;for(d in a)if(Object.prototype.hasOwnProperty.call(a,d)&&Gg(d,b)){var e=Og(a[d]);e&&(void 0!==c&&(e=c+", "+e),c=e)}return c}};_.Ug=function(a,b,c,d){var e=_.Qg(b);if(e){c&&(c=Og(c));b=b.toLowerCase();for(var f in a)Object.prototype.hasOwnProperty.call(a,f)&&Gg(f,b)&&delete a[f];c&&(d||(b=e),a[b]=c)}};
_.Vg=function(a,b){var c={};if(!a)return c;a=a.split("\r\n");for(var d=0,e=a.length;d<e;++d){var f=a[d];if(!f)break;var h=f.indexOf(":");if(!(0>=h)){var k=f.substring(0,h);if(k=_.Qg(k)){for(f=f.substring(h+1);d+1<e&&a[d+1].match(/^[ \t]/);)f+="\r\n"+a[d+1],++d;if(f=Og(f))if(k=_.Sg(k,f)||(b?void 0:k))k=k.toLowerCase(),h=_.Tg(c,k),void 0!==h&&(f=h+", "+f),_.Ug(c,k,f,!0)}}}return c};

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var Qx,Rx,Ux,Yx,$x;_.Nx=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};_.Ox=function(a,b){var c=_.Eb(b),d=c?b:arguments;for(c=c?0:1;c<d.length;c++){if(null==a)return;a=a[d[c]]}return a};
_.Px=function(a){if(!a||"object"!==typeof a)return a;if("function"===typeof a.clone)return a.clone();if("undefined"!==typeof Map&&a instanceof Map)return new Map(a);if("undefined"!==typeof Set&&a instanceof Set)return new Set(a);var b=Array.isArray(a)?[]:"function"!==typeof ArrayBuffer||"function"!==typeof ArrayBuffer.isView||!ArrayBuffer.isView(a)||a instanceof DataView?{}:new a.constructor(a.length),c;for(c in a)b[c]=_.Px(a[c]);return b};
Qx=function(a){var b={};a.forEach(function(c){b[c[0]]=c[1]});return function(c){return b[c.find(function(d){return d in b})]||""}};
Rx=function(){var a=_.qb();if(_.ub()){var b=/rv: *([\d\.]*)/.exec(a);if(b&&b[1])a=b[1];else{b="";var c=/MSIE +([\d\.]+)/.exec(a);if(c&&c[1])if(a=/Trident\/(\d.\d)/.exec(a),"7.0"==c[1])if(a&&a[1])switch(a[1]){case "4.0":b="8.0";break;case "5.0":b="9.0";break;case "6.0":b="10.0";break;case "7.0":b="11.0"}else b="7.0";else b=c[1];a=b}return a}c=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");b=[];for(var d;d=c.exec(a);)b.push([d[1],d[2],d[3]||void 0]);a=Qx(b);return _.tb()?a(["Version","Opera"]):
_.sb("Edge")?a(["Edge"]):_.sb("Edg/")?a(["Edg"]):_.sb("Silk")?a(["Silk"]):_.xb()?a(["Chrome","CriOS","HeadlessChrome"]):(a=b[2])&&a[1]||""};_.Sx=function(a){return 0<=_.zc(Rx(),a)};_.Tx=function(a){return(a=_.Ax(a))?new ActiveXObject(a):new XMLHttpRequest};Ux=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)_.ph(a[b],a[b+1],c);return c.join("&")};_.Vx=function(a,b){var c=2==arguments.length?Ux(arguments[1],0):Ux(arguments,1);return _.oh(a,c)};
_.Wx=function(a,b,c){c=null!=c?"="+encodeURIComponent(String(c)):"";return _.oh(a,b+c)};_.Xx=function(a,b){_.Ai(a,"/")&&(a=a.substr(0,a.length-1));_.lc(b,"/")&&(b=b.substr(1));return a+"/"+b};Yx={};_.Zx=function(a){if(Yx[a])return Yx[a];a=String(a);if(!Yx[a]){var b=/function\s+([^\(]+)/m.exec(a);Yx[a]=b?b[1]:"[Anonymous]"}return Yx[a]};
$x=function(a,b){var c=[];if(_.nb(b,a))c.push("[...circular reference...]");else if(a&&50>b.length){c.push(_.Zx(a)+"(");for(var d=a.arguments,e=0;d&&e<d.length;e++){0<e&&c.push(", ");var f=d[e];switch(typeof f){case "object":f=f?"object":"null";break;case "string":break;case "number":f=String(f);break;case "boolean":f=f?"true":"false";break;case "function":f=(f=_.Zx(f))?f:"[fn]";break;default:f=typeof f}40<f.length&&(f=f.substr(0,40)+"...");c.push(f)}b.push(a);c.push(")\n");try{c.push($x(a.caller,
b))}catch(h){c.push("[exception trying to get caller]\n")}}else a?c.push("[...long stack...]"):c.push("[end]");return c.join("")};_.ay=function(a){var b=Error();if(Error.captureStackTrace)Error.captureStackTrace(b,a||_.ay),b=String(b.stack);else{try{throw b;}catch(c){b=c}b=(b=b.stack)?String(b):null}b||(b=$x(a||arguments.callee.caller,[]));return b};_.by=function(a){switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};
_.cy=function(a,b){_.dj.call(this);this.Mk=a||1;this.Bt=b||_.u;this.uJ=(0,_.P)(this.M3,this);this.IN=_.Pt()};_.bb(_.cy,_.dj);_.g=_.cy.prototype;_.g.enabled=!1;_.g.tc=null;_.g.setInterval=function(a){this.Mk=a;this.tc&&this.enabled?(this.stop(),this.start()):this.tc&&this.stop()};
_.g.M3=function(){if(this.enabled){var a=_.Pt()-this.IN;0<a&&a<.8*this.Mk?this.tc=this.Bt.setTimeout(this.uJ,this.Mk-a):(this.tc&&(this.Bt.clearTimeout(this.tc),this.tc=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};_.g.start=function(){this.enabled=!0;this.tc||(this.tc=this.Bt.setTimeout(this.uJ,this.Mk),this.IN=_.Pt())};_.g.stop=function(){this.enabled=!1;this.tc&&(this.Bt.clearTimeout(this.tc),this.tc=null)};_.g.na=function(){_.cy.H.na.call(this);this.stop();delete this.Bt};
var ey,fy,gy;_.dy=function(a){_.dj.call(this);this.headers=new Map;this.Qz=a||null;this.Af=!1;this.Pz=this.La=null;this.ex="";this.Qo=0;this.Am=this.iD=this.Bw=this.tB=!1;this.vn=0;this.Zc=null;this.dl="";this.UH=this.Gg=!1;this.FH=null};_.bb(_.dy,_.dj);_.dy.prototype.ob=null;ey=/^https?$/i;fy=["POST","PUT"];gy=[];_.hy=function(a,b,c,d,e,f,h){var k=new _.dy;gy.push(k);b&&k.V("complete",b);k.Vo("ready",k.UU);f&&k.UG(f);h&&(k.Gg=h);k.send(a,c,d,e)};_.dy.prototype.UU=function(){this.Ga();_.wi(gy,this)};
_.dy.prototype.UG=function(a){this.vn=Math.max(0,a)};_.dy.prototype.setTrustToken=function(a){this.FH=a};
_.dy.prototype.send=function(a,b,c,d){if(this.La)throw Error("xa`"+this.ex+"`"+a);b=b?b.toUpperCase():"GET";this.ex=a;this.Qo=0;this.tB=!1;this.Af=!0;this.La=this.Qz?_.Tx(this.Qz):_.Tx(_.Bx);this.Pz=this.Qz?this.Qz.getOptions():_.Bx.getOptions();this.La.onreadystatechange=(0,_.P)(this.zO,this);try{this.iD=!0,this.La.open(b,String(a),!0),this.iD=!1}catch(h){this.jv(5,h);return}a=c||"";c=new Map(this.headers);if(d)if(Object.getPrototypeOf(d)===Object.prototype)for(var e in d)c.set(e,d[e]);else if("function"===
typeof d.keys&&"function"===typeof d.get){e=_.ra(d.keys());for(var f=e.next();!f.done;f=e.next())f=f.value,c.set(f,d.get(f))}else throw Error("ya`"+String(d));d=Array.from(c.keys()).find(function(h){return"content-type"==h.toLowerCase()});e=_.u.FormData&&a instanceof _.u.FormData;!_.nb(fy,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=_.ra(c);for(d=b.next();!d.done;d=b.next())c=_.ra(d.value),d=c.next().value,c=c.next().value,this.La.setRequestHeader(d,c);this.dl&&
(this.La.responseType=this.dl);"withCredentials"in this.La&&this.La.withCredentials!==this.Gg&&(this.La.withCredentials=this.Gg);if("setTrustToken"in this.La&&this.FH)try{this.La.setTrustToken(this.FH)}catch(h){}try{iy(this),0<this.vn&&((this.UH=jy(this.La))?(this.La.timeout=this.vn,this.La.ontimeout=(0,_.P)(this.Dg,this)):this.Zc=_.Jx(this.Dg,this.vn,this)),this.Bw=!0,this.La.send(a),this.Bw=!1}catch(h){this.jv(5,h)}};
var jy=function(a){return _.fd&&_.Ad(9)&&"number"===typeof a.timeout&&void 0!==a.ontimeout};_.dy.prototype.Dg=function(){"undefined"!=typeof _.Za&&this.La&&(this.Qo=8,this.dispatchEvent("timeout"),this.abort(8))};_.dy.prototype.jv=function(a){this.Af=!1;this.La&&(this.Am=!0,this.La.abort(),this.Am=!1);this.Qo=a;ky(this);ly(this)};var ky=function(a){a.tB||(a.tB=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
_.dy.prototype.abort=function(a){this.La&&this.Af&&(this.Af=!1,this.Am=!0,this.La.abort(),this.Am=!1,this.Qo=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),ly(this))};_.dy.prototype.na=function(){this.La&&(this.Af&&(this.Af=!1,this.Am=!0,this.La.abort(),this.Am=!1),ly(this,!0));_.dy.H.na.call(this)};_.dy.prototype.zO=function(){this.isDisposed()||(this.iD||this.Bw||this.Am?my(this):this.mE())};_.dy.prototype.mE=function(){my(this)};
var my=function(a){if(a.Af&&"undefined"!=typeof _.Za&&(!a.Pz[1]||4!=_.ny(a)||2!=a.getStatus()))if(a.Bw&&4==_.ny(a))_.Jx(a.zO,0,a);else if(a.dispatchEvent("readystatechange"),4==_.ny(a)){a.Af=!1;try{_.oy(a)?(a.dispatchEvent("complete"),a.dispatchEvent("success")):(a.Qo=6,ky(a))}finally{ly(a)}}},ly=function(a,b){if(a.La){iy(a);var c=a.La,d=a.Pz[0]?_.Cb:null;a.La=null;a.Pz=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}},iy=function(a){a.La&&a.UH&&(a.La.ontimeout=null);a.Zc&&
(_.Kx(a.Zc),a.Zc=null)};_.dy.prototype.Uc=function(){return!!this.La};_.oy=function(a){var b=a.getStatus(),c;if(!(c=_.by(b))){if(b=0===b)a=String(a.ex).match(_.nh)[1]||null,!a&&_.u.self&&_.u.self.location&&(a=_.u.self.location.protocol,a=a.substr(0,a.length-1)),b=!ey.test(a?a.toLowerCase():"");c=b}return c};_.ny=function(a){return a.La?a.La.readyState:0};_.dy.prototype.getStatus=function(){try{return 2<_.ny(this)?this.La.status:-1}catch(a){return-1}};
_.py=function(a){try{return a.La?a.La.responseText:""}catch(b){return""}};_.qy=function(a){try{if(!a.La)return null;if("response"in a.La)return a.La.response;switch(a.dl){case "":case "text":return a.La.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.La)return a.La.mozResponseArrayBuffer}return null}catch(b){return null}};_.dy.prototype.getResponseHeader=function(a){if(this.La&&4==_.ny(this))return a=this.La.getResponseHeader(a),null===a?void 0:a};
_.dy.prototype.getAllResponseHeaders=function(){return this.La&&4==_.ny(this)?this.La.getAllResponseHeaders()||"":""};_.vi(function(a){_.dy.prototype.mE=a(_.dy.prototype.mE)});

var MA=function(a){if(!a||"function"!==typeof a)throw new LA("Must provide a function.");this.Uf=null;this.QV=a},NA=!1;NA=!1;
var OA=function(a){return new _.Lj(function(b){var c=a.length,d=[];if(c)for(var e=function(k,l,m){c--;d[k]=l?{tv:!0,value:m}:{tv:!1,reason:m};0==c&&b(d)},f=0,h;f<a.length;f++)h=a[f],_.Sj(h,_.ri(e,f,!0),_.ri(e,f,!1));else b(d)})},PA,QA,RA,SA={rJ:function(a){PA=a;try{delete SA.rJ}catch(b){}},sJ:function(a){QA=a;try{delete SA.sJ}catch(b){}},tJ:function(a){RA=a;try{delete SA.tJ}catch(b){}}},TA=function(a){return _.by(a.status)},UA=function(){var a=!0,b=_.Tx(_.Bx);b&&void 0!==b.withCredentials||(a=!1);
return a},VA=function(a,b){if(null==b)return b;b=String(b);b.match(/^\/\/.*/)&&(b=("http:"==window.location.protocol?"http:":"https:")+b);b.match(/^\/([^\/].*)?$/)&&window.location.host&&String(window.location.protocol).match(/^https?:$/)&&(b=window.location.protocol+"//"+window.location.host+b);var c=b.match(/^(https?:)(\/\/)?(\/([^\/].*)?)?$/i);c&&window.location.host&&String(window.location.protocol).match(/^https?:$/)&&(b=c[1]+"//"+window.location.host+(c[3]||""));b=b.replace(/^(https?:\/\/[^\/?#@]*)\/$/i,
"$1");b=b.replace(/^(http:\/\/[-_a-z0-9.]+):0*80([\/?#].*)?$/i,"$1$2");b=b.replace(/^(https:\/\/[-_a-z0-9.]+):0*443([\/?#].*)?$/i,"$1$2");b.match(/^https?:\/\/[-_a-z0-9.]*[-_a-z][-_a-z0-9.]*$/i)&&(b=b.toLowerCase());c=_.He("client/rewrite");_.Bb(c)&&Object.prototype.hasOwnProperty.call(c,b)?b=String(c[b]||b):(b=b.replace(/^(https?):\/\/www\.googleapis\.com$/,"$1://content.googleapis.com"),b=b.replace(/^(https?):\/\/www-(googleapis-[-_a-z0-9]+\.[-_a-z0-9]+\.google\.com)$/,"$1://content-$2"),b.match(/^https?:\/\/content(-[-_a-z0-9.]+)?\.googleapis\.com$/)||
(b=b.replace(/^(https?):\/\/([-_a-z0-9]+(\.[-_a-z0-9]+)?\.googleapis\.com)$/,"$1://content-$2")));a&&(a=_.He("client/firstPartyRewrite"),_.Bb(a)&&Object.prototype.hasOwnProperty.call(a,b)?b=String(a[b]||b):(b=b.replace(/^(https?):\/\/content\.googleapis\.com$/,"$1://clients6.google.com"),b=b.replace(/^(https?):\/\/content-([-a-z0-9]+)\.([-a-z0-9]+)\.googleapis\.com$/,"$1://$2-googleapis.$3.google.com"),b=b.replace(/^(https?):\/\/content-([-a-z0-9]+)\.googleapis\.com$/,"$1://$2.clients6.google.com"),
b=b.replace(/^(https?):\/\/([-a-z0-9]+)-www-googleapis\.([-a-z0-9]+).google.com$/,"$1://content-googleapis-$2.$3.google.com")));return b},LA=function(a){_.lb.call(this,a)};_.I(LA,_.lb);LA.prototype.name="gapix.client.GapiClientError";MA.prototype.then=function(a,b,c){this.Uf||(this.Uf=this.QV());return this.Uf.then(a,b,c)};MA.prototype.dz=function(a){this.Uf||(this.Uf=a)};
var WA=function(a){var b={},c;for(c in a)if(Object.prototype.hasOwnProperty.call(a,c)){var d=_.Tg(a,c);d&&(c=_.Sg(c,d))&&_.Ug(b,c,d,!0)}return b},XA={error:{code:-1,message:"A network error occurred and the request could not be completed."}},YA=function(a,b,c,d){_.dy.call(this);this.$c=a;this.SD=b;this.od=c;a={};if(d)for(var e in d)Object.prototype.hasOwnProperty.call(d,e)&&(b=_.Tg(d,e),void 0!==b&&(e=_.Rg(e,b))&&_.Ug(a,e,b));d={};for(e in a)Object.prototype.hasOwnProperty.call(a,e)&&(d[unescape(encodeURIComponent(e))]=
unescape(encodeURIComponent(a[e])));this.Jr=d;this.Uf=null};_.I(YA,_.dy);
YA.prototype.then=function(a){this.Uf||(this.Uf=(new _.Lj(function(b,c){this.V("error",(0,_.P)(function(){c(ZA(this))},this));this.V("success",(0,_.P)(function(){b(ZA(this))},this));this.send(this.$c,this.SD,this.od,this.Jr)},this)).then(function(b){b.headers=WA(b.headers);return b},function(b){return b.status?(b.headers=WA(b.headers),_.Qj(b)):_.Qj({result:XA,body:'{"error":{"code":-1,"message":"A network error occurred and the request could not be completed."}}',headers:null,status:null,statusText:null})}));
return this.Uf.then.apply(this.Uf,arguments)};
var ZA=function(a){var b=a.getStatus(),c=_.py(a);var d=204==b?!1:""==a.dl?_.uf(c):_.qy(a);var e=a.getAllResponseHeaders();e=_.Vg(e,!1);try{var f=2<_.ny(a)?a.La.statusText:""}catch(h){f=""}return{result:d,body:c,headers:e,status:b,statusText:f}},$A=/;\s*charset\s*=\s*("utf-?8"|utf-?8)\s*(;|$)/i,aB=/^(text\/[^\s;\/""]+|application\/(json(\+[^\s;\/""]*)?|([^\s;\/""]*\+)?xml))\s*(;|$)/i,bB=/;\s*charset\s*=/i,cB=/(([\r\n]{0,2}[A-Za-z0-9+\/]){4,4}){0,1024}([\r\n]{0,2}[A-Za-z0-9+\/][\r\n]{0,2}[AQgw]([\r\n]{0,2}=){2,2}|([\r\n]{0,2}[A-Za-z0-9+\/]){2,2}[\r\n]{0,2}[AEIMQUYcgkosw048][\r\n]{0,2}=|([\r\n]{0,2}[A-Za-z0-9+\/]){4,4})[\r\n]{0,2}/g,dB=
function(a){var b=[];a=a.replace(cB,function(c){b.push(_.Xy(c));return""});if(a.length)throw Error("za");return b.join("")},eB=function(a){var b=a.headers;if(b&&"base64"===_.Tg(b,"X-Goog-Safety-Encoding")){var c=dB(a.body),d=_.Tg(b,"X-Goog-Safety-Content-Type");b["Content-Type"]=d;if(d.match($A)||d.match(aB)&&!d.match(bB))c=_.Xv(_.ch(c));_.Ug(b,"X-Goog-Safety-Encoding");_.Ug(b,"X-Goog-Safety-Content-Type");a.body=c}},fB=function(a,b,c){c||((c=_.He("googleapis.config/proxy"))&&(c=String(c).replace(/\/static\/proxy\.html$/,
"")||"/"),c=String(c||""));c||(c=_.He("googleapis.config/root"),b&&(c=_.He("googleapis.config/root-1p")||c),c=String(c||""));c=String(VA(b,c)||c);return a=_.Xx(c,a)},gB=function(a,b){var c=a.params||_.ne();c.url=c.path;var d=c.root;d=fB("/",_.Rh(c.headers),d);d.match(/^(.*[^\/])?\/$/)&&(d=d.substr(0,d.length-1));c.root=d;a.params=c;_.ii.Ap("makeHttpRequests",[a],function(e,f){e&&e.gapiRequest?(e.gapiRequest.data?eB(e.gapiRequest.data):eB(e),b(e,_.vf(e))):b(e,f)})},hB=function(a){var b=_.Ox(a,"params",
"headers");b&&"object"===typeof b||(b={});a={};for(var c in b)if(Object.prototype.hasOwnProperty.call(b,c)){var d=_.Tg(b,c);d&&(_.Rg(c,d),_.Ug(a,c,d))}c="chrome-extension"==(window.location.href.match(_.nh)[1]||null);a=_.Rh(a);return!(c&&a)&&UA()},iB=function(a){return new _.Lj(function(b,c){var d=function(e){e&&e.gapiRequest?e=e.gapiRequest.data||e:c(e);e={result:204!=e.status&&_.uf(e.body),body:e.body,headers:e.headers||null,status:e.status||null,statusText:e.statusText||null};TA(e)?b(e):c(e)};
try{gB(a,d)}catch(e){c(e)}})},jB=function(a){var b=!_.He("client/cors")||!!_.He("client/xd4"),c={};_.am(a,function(d,e){(d=_.Rg(e,d))||b||(d=_.Qg(e));d&&(e=_.Tg(a,d))&&_.Ug(c,d,e)});return c},kB=function(a){var b=a.params||_.ne();a=_.mj(b.headers||{});var c=b.httpMethod||"GET",d=String(b.url||""),e=encodeURIComponent("$unique");if(!("POST"===c||0<=_.Zt(d,0,"$unique",d.search(_.$t))||0<=_.Zt(d,0,e,d.search(_.$t)))){var f=[];for(h in a)Object.prototype.hasOwnProperty.call(a,h)&&f.push(h.toLowerCase());
f.sort();f.push(_.mg(location.href));var h=f.join(":");f=_.Jh();f.update(h);h=f.Mh().toLowerCase().substr(0,7);h=String(parseInt(h,16)%1E3+1E3).substr(1);d=_.Vx(d,e,"gc"+h)}e=b.body||null;h=b.responseType||null;b=_.Rh(a)||"1p"==b.authType;f=!!_.He("googleapis.config/auth/useUberProxyAuth");_.Ug(a,"X-Referer",void 0);a=jB(a);var k=new YA(d,c,e,a);k.Gg=b||f;h&&(k.dl=h);return new _.Lj(function(l,m){k.then(function(n){eB(n);l(n)},function(n){m(n)})})},lB=function(a,b){var c=function(d){d=_.mj(d);delete d.result;
d={gapiRequest:{data:d}};b&&b(d,_.vf(d))};kB(a).then(c,c)},mB=function(a,b){(_.He("client/cors")||_.He("client/xd4"))&&hB(a)?lB(a,b):gB(a,b)},nB=function(a){this.Os=a;this.Af=!1;this.promise={then:(0,_.P)(function(b,c,d){this.Af||(this.Af=!0);this.Ns&&!this.Ls?this.Os.resolve(this.Ns):this.Ls&&!this.Ns&&this.Os.reject(this.Ls);return this.Os.promise.then(b,c,d)},this)}};nB.prototype.resolve=function(a){this.Af?this.Os.resolve(a):this.Ns||this.Ls||(this.Ns=a)};
nB.prototype.reject=function(a){this.Af?this.Os.reject(a):this.Ns||this.Ls||(this.Ls=a)};
var oB=function(a){a=_.Px(a.error);return{code:a.code,data:a.errors,message:a.message}},pB=function(a){throw Error("Ca`"+a);};
var qB=function(a){MA.call(this,qB.prototype.Sm);if(!a||"object"!=typeof a&&"string"!=typeof a)throw new LA("Missing required parameters");if("string"===typeof a){var b={};b.path=a}else b=a;if(!b.path)throw new LA('Missing required parameter: "path"');this.Ah={};this.Ah.path=b.path;this.Ah.method=b.method||"GET";this.Ah.params=b.params||{};this.Ah.headers=b.headers||{};this.Ah.body=b.body;this.Ah.root=b.root;this.Ah.responseType=b.responseType;this.Ah.apiId=b.apiId;this.zl=b.authType||"auto";this.d_=
!!b.isXd4;this.nN=!1;this.Di(this.zl);this.sP=!1};_.I(qB,MA);qB.prototype.De=function(){return this.Ah};qB.prototype.Di=function(a){this.zl=a;this.nN="1p"===this.zl};qB.prototype.yr=function(){return this.nN};
qB.prototype.wj=function(){if(!this.sP){this.sP=!0;var a=this.Ah,b=a.headers=a.headers||{},c=[],d=[];for(h in b)if(Object.prototype.hasOwnProperty.call(b,h)){c.push(h);var e=h,f=_.Tg(b,e);f&&(e=_.Rg(e,f)||_.Qg(e))&&d.push([e,f])}var h=0;for(e=c.length;h<e;++h)delete b[c[h]];c=0;for(h=d.length;c<h;++c)_.Ug(b,d[c][0],d[c][1]);if(this.d_)d="1p"==this.zl;else{d=b;c=String(_.He("client/version","1.1.0"));h=String(_.He("client/name","google-api-javascript-client"));h=!0===rB[h]?h:"google-api-javascript-client";
e=String(_.He("client/appName",""));f=[];e&&(f.push(e),f.push(" "));f.push(h);c&&(f.push("/"),f.push(c));_.Ug(d,"X-JavaScript-User-Agent",f.join(""));_.Ug(b,"X-Requested-With","XMLHttpRequest");d=_.Tg(b,"Content-Type");a.body&&!d&&_.Ug(b,"Content-Type","application/json");_.He("client/allowExecutableResponse")||_.Ug(b,"X-Goog-Encode-Response-If-Executable","base64");(d=_.Tg(b,"Content-Type"))&&"application/json"==d.toLowerCase()&&!a.params.alt&&(a.params.alt="json");(d=a.body||null)&&_.Bb(d)&&(a.body=
_.vf(d));a.key=a.id;b=_.hi(b,void 0,this.zl);d=_.Rh(b);if((c=b)&&window.navigator){h=[];for(e=0;e<sB.length;e++)(f=window.navigator[sB[e]])&&h.push(encodeURIComponent(sB[e])+"="+encodeURIComponent(f));_.Ug(c,"X-ClientDetails",h.join("&"))}(c=_.He("client/apiKey"))&&void 0===a.params.key&&(a.params.key=c);(c=_.He("client/trace"))&&!a.params.trace&&(a.params.trace=c)}"auto"==this.zl&&(d?this.Di("1p"):(b=_.Tg(b,"Authorization"))&&String(b).match(/^(Bearer|MAC)[ \t]/i)?this.Di("oauth2"):this.Di("none"));
if((b=String(a.path||"").match(/^(https?:\/\/[^\/?#]+)([\/?#].*)?$/i))&&!a.root)if(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);else{b=_.He("googleapis.config/root");d&&(b=_.He("googleapis.config/root-1p")||b);b=String(b||"");c=a.root+a.path;if(h=b&&c.substr(0,b.length)===b)h=_.ru(b),e=_.ru(c),h=(!h.Yd&&!e.Yd||h.jg()==e.jg())&&(null==h.Tf&&null==e.Tf||h.Tf==e.Tf);h&&(a.path=c.substr(b.length),a.root=b)}b=a.params;c=_.Hg(a.path);
h=String(_.He("googleapis.config/xd3")||"");18<=h.length&&"/static/proxy.html"==h.substring(h.length-18)&&(h=h.substring(0,h.length-18));h||(h="/");e=_.Hg(h);if(h!=e)throw Error("y");"/"!=h.charAt(h.length-1)&&(h+="/");c=_.Xx(h,c);_.Ai(c,"/")&&(c=c.substring(0,c.length-1));h=_.ne();for(var k in b)Object.prototype.hasOwnProperty.call(b,k)&&(e=encodeURIComponent(k),h[e]=b[k]);c=_.rh(c,h);a.path=c;a.root=VA(!!d,a.root);a.url=fB(a.path,!!d,a.root)}};
var tB=function(a){a.wj();var b=a.Ah;return{key:"gapiRequest",params:{id:b.id,key:b.key,url:b.url,path:b.path,httpMethod:b.method,body:b.body||"",headers:b.headers||{},urlParams:{},root:b.root,authType:a.zl}}};qB.prototype.execute=function(a){var b=tB(this);mB(b,function(c,d){var e=c;c.gapiRequest&&(e=c.gapiRequest);e&&e.data&&(e=e.data);c=e instanceof Array?e[0]:e;if(204!=c.status&&c.body)try{var f=_.uf(c.body)}catch(h){}a&&a(f,d)})};
qB.prototype.Sm=function(){var a=tB(this);return(_.He("client/cors")||_.He("client/xd4"))&&hB(a)?kB(a):iB(a)};qB.prototype.Xh=function(){return this.Sm()};var sB=["appVersion","platform","userAgent"],rB={"google-api-gwt-client":!0,"google-api-javascript-client":!0};qB.prototype.execute=qB.prototype.execute;qB.prototype.then=qB.prototype.then;qB.prototype.getPromise=qB.prototype.Xh;
var uB=function(a){if(!a||"object"!=typeof a)throw new LA("Missing rpc parameters");if(!a.method)throw new LA("Missing rpc method");this.wy=a};uB.prototype.em=function(){var a=this.wy.transport;return a?a.root||null:null};uB.prototype.execute=function(a){var b=QA();b.add(this,{id:"gapiRpc",callback:this.hs(a)});b.execute()};
uB.prototype.px=function(a){var b=this.wy.method,c=String,d;(d=this.wy.apiVersion)||(d=String(b).split(".")[0],d=_.He("googleapis.config/versions/"+b)||_.He("googleapis.config/versions/"+d)||"v1",d=String(d));a={jsonrpc:"2.0",id:a,method:b,apiVersion:c(d)};(b=this.wy.rpcParams)&&(a.params=b);return a};
uB.prototype.hs=function(a){return function(b,c){if(b)if(b.error){var d=b.error;null==d.error&&(d.error=_.mj(b.error))}else d=b.result||b.data,_.Bb(d)&&null==d.result&&(d.result=_.mj(b.result||b.data));else d=!1;a(d,c)}};uB.prototype.execute=uB.prototype.execute;
var wB=function(a,b){this.Zd=b||0;2==this.Zd?(b=null,null!=a&&_.Bb(a)&&(b={},b.method=a.method,b.rpcParams=a.rpcParams,b.transport=a.transport,b.root=a.root,b.apiVersion=a.apiVersion,b.authType=a.authType),this.lb=new uB(b)):(0==this.Zd&&(b=a&&a.callback)&&(a.callback=vB(b)),b=null,null!=a&&(_.Bb(a)?(b={},b.path=a.path,b.method=a.method,b.params=a.params,b.headers=a.headers,b.body=a.body,b.root=a.root,b.responseType=a.responseType,b.authType=a.authType,b.apiId=a.apiId):"string"===typeof a&&(b=a)),
this.lb=new qB(b))},vB=function(a){return function(b){if(null!=b&&_.Bb(b)&&b.error){var c=oB(b);b=_.vf([{id:"gapiRpc",error:c}]);c.error=_.Px(c)}else null==b&&(b={}),c=_.Px(b),c.result=_.Px(b),b=_.vf([{id:"gapiRpc",result:b}]);a(c,b)}};_.g=wB.prototype;_.g.getFormat=function(){return this.Zd};_.g.execute=function(a){this.lb.execute(a&&1==this.Zd?vB(a):a)};_.g.then=function(a,b,c){2==this.Zd&&pB('The "then" method is not available on this object.');return this.lb.then(a,b,c)};
_.g.dz=function(a){this.lb.dz&&this.lb.dz(a)};_.g.De=function(){if(this.lb.De)return this.lb.De()};_.g.wj=function(){this.lb.De&&this.lb.wj()};_.g.em=function(){if(this.lb.em)return this.lb.em()};_.g.px=function(a){if(this.lb.px)return this.lb.px(a)};_.g.Di=function(a){this.lb.Di&&this.lb.Di(a)};_.g.yr=function(){return this.lb.yr()};_.g.Xh=function(){if(this.lb.Xh)return this.lb.Xh()};wB.prototype.execute=wB.prototype.execute;wB.prototype.then=wB.prototype.then;wB.prototype.getPromise=wB.prototype.Xh;
var xB=/<response-(.*)>/,yB=/^application\/http(;.+$|$)/,zB=["clients6.google.com","content.googleapis.com","www.googleapis.com"],AB=function(a,b){a=_.Tg(a,b);if(!a)throw new LA("Unable to retrieve header.");return a},BB=function(a){var b=void 0;a=_.ra(a);for(var c=a.next();!c.done;c=a.next()){c=c.value.De().apiId;if("string"!==typeof c)return"batch";if(void 0===b)b=c;else if(b!=c)return"batch"}b=_.He("client/batchPath/"+b)||"batch/"+b.split(":").join("/");return String(b)},CB=function(a){a=a.map(function(b){return b.request});
return BB(a)},DB=function(a,b){var c=[];a=a.De();var d=function(f,h){_.am(f,function(k,l){h.push(l+": "+k)})},e={"Content-Type":"application/http","Content-Transfer-Encoding":"binary"};e["Content-ID"]="<"+b+">";d(e,c);c.push("");c.push(a.method+" "+a.path);d(a.headers,c);c.push("");a.body&&c.push(a.body);return c.join("\r\n")},GB=function(a,b){a=EB(a,b);var c={};_.pb(a,function(d,e){c[e]=FB(d,e)});return c},FB=function(a,b){return{result:a.result||a.body,rawResult:_.vf({id:b,result:a.result||a.body}),
id:b}},EB=function(a,b){a=(0,_.nc)(a);_.Ai(a,"--")&&(a=a.substring(0,a.length-2));a=a.split(b);b=_.ne();for(var c=0;c<a.length;c++)if(a[c]){var d;if(d=a[c]){_.Ai(d,"\r\n")&&(d=d.substring(0,d.length-2));if(d){d=d.split("\r\n");for(var e=0,f={headers:{},body:""};e<d.length&&""==d[e];)e++;for(f.outerHeaders=HB(d,e);e<d.length&&""!=d[e];)e++;e++;var h=d[e++].split(" ");f.status=Number(h[1]);f.statusText=h.slice(2).join(" ");for(f.headers=HB(d,e);e<d.length&&""!=d[e];)e++;e++;f.body=d.slice(e).join("\r\n");
eB(f);d=f}else d=null;e=_.ne();f=AB(d.outerHeaders,"Content-Type");if(null==yB.exec(f))throw new LA("Unexpected Content-Type <"+f+">");f=AB(d.outerHeaders,"Content-ID");f=xB.exec(f);if(!f)throw new LA("Unable to recognize Content-Id.");e.id=decodeURIComponent(f[1].split("@")[0].replace(/^.*[+]/,""));e.response={status:d.status,statusText:d.statusText,headers:d.headers};204!=d.status&&(e.response.body=d.body,e.response.result=_.uf(d.body));d=e}else d=null;d&&d.id&&(b[d.id]=d.response)}return b},HB=
function(a,b){for(var c=[];b<a.length&&a[b];b++)c.push(a[b]);return _.Vg(c.join("\r\n"),!1)},IB=function(a,b,c){a=a||b;if(!a||"https"!==_.ru(a).Vf)if(a=c?_.He("googleapis.config/root-1p"):_.He("googleapis.config/root"),!a)return!1;a=VA(c,String(a))||a;return zB.includes(_.ru(a).jg())};
var JB=function(a){MA.call(this,JB.prototype.Sm);this.dj={};this.tu={};this.$k=[];this.Oe=a;this.A_=!!a;this.vM=this.sw=!1};_.I(JB,MA);var KB=function(a,b){a=_.ra(Object.values(a.dj));for(var c=a.next();!c.done;c=a.next())if(c.value.map(function(d){return d.id}).includes(b))return!0;return!1},LB=function(a){(function(b){setTimeout(function(){throw b;})})(a)};
JB.prototype.add=function(a,b){var c=b||_.ne();b=_.ne();if(!a)throw new LA("Batch entry "+(_.oe(c,"id")?'"'+c.id+'" ':"")+"is missing a request method");a.wj();b.request=a;var d=_.Vj();d=new nB(d);b.ty=d;a.dz(b.ty.promise);d=a.De().headers;_.Rh(d)&&(this.sw=!0);(d=String((d||{}).Authorization||"")||null)&&d.match(/^Bearer|MAC[ \t]/i)&&(this.vM=!0);d=a.De().root;if(!this.A_){if(d&&this.Oe&&d!=this.Oe)throw new LA('The "root" provided in this request is not consistent with that of existing requests in the batch.');
this.Oe=d||this.Oe}if(_.oe(c,"id")){d=c.id;if(KB(this,d))throw new LA('Batch ID "'+d+'" already in use, please use another.');b.id=d}else{do b.id=String(Math.round(2147483647*_.ai()));while(KB(this,b.id))}b.callback=c.callback;c="batch";IB(this.Oe,a.De().path,this.sw)&&(c=CB([b]));this.dj[c]=this.dj[c]||[];this.dj[c].push(b);this.tu[b.id]=b;return b.id};
var MB=function(a){var b=[],c=IB(a.Oe,void 0,a.sw);1<Object.entries(a.dj).length&&_.zf.warn("Heterogeneous batch requests are deprecated. See https://developers.googleblog.com/2018/03/discontinuing-support-for-json-rpc-and.html");for(var d=_.ra(Object.entries(a.dj)),e=d.next();!e.done;e=d.next()){e=_.ra(e.value);var f=e.next().value;e=e.next().value;for(var h=!0,k=_.ra(e),l=k.next();!l.done;l=k.next())l=l.value,l.request.wj(),"batch"===f&&c&&(h=!1,l.VZ=!0,l.request.De.root=a.Oe,b.push(l.request),
a.$k.push([l]));if(h){f=a.Oe;h=a.sw;k=a.vM;l="batch"+String(Math.round(2147483647*_.ai()))+String(Math.round(2147483647*_.ai()));var m="--"+l;l="multipart/mixed; boundary="+l;for(var n={path:CB(e),method:"POST"},q=[],p=0;p<e.length;p++)q.push(DB(e[p].request,[m.substr(m.indexOf("--")+2),"+",encodeURIComponent(e[p].id).split("(").join("%28").split(")").join("%29").split(".").join("%2E"),"@googleapis.com"].join("")));n.body=[m,q.join("\r\n"+m+"\r\n"),m+"--"].join("\r\n")+"\r\n";n.root=f||null;_.He("client/xd4")&&
UA()?(n.isXd4=!0,n.params={$ct:l},n.headers={},_.Ug(n.headers,"Content-Type","text/plain; charset=UTF-8"),h?n.authType="1p":k&&(n.authType="oauth2"),f=new qB(n)):(n.headers={},_.Ug(n.headers,"Content-Type",l),f=RA(n));b.push(f);a.$k.push(e)}}return b};
JB.prototype.execute=function(a){if(!(1>Object.keys(this.dj).length)){var b=this.hs(a);a=MB(this);var c=[],d=a.map(function(e){return new _.Lj(function(f){try{e.execute(function(h,k){return f({pJ:h,X0:k})})}catch(h){c.push(h),f({pJ:{tv:!1,reason:h}})}})});if(0<c.length&&c.length===a.length)throw c[0];_.Tj(d).then(function(e){var f=e.map(function(h){return h.X0});e=e.map(function(h){return h.pJ});b(e,f)})}};
JB.prototype.Sm=function(){var a=this;if(1>Object.keys(this.dj).length)return _.Pj({});var b=MB(this).map(function(c){return new _.Lj(function(d,e){return c.Xh().then(d,e)})});return OA(b).then(function(c){c=c.map(function(d){return d.tv?d.value:d});return NB(a,c,!0)})};
var NB=function(a,b,c,d,e){for(var f=!1,h={},k,l=0,m=0;m<b.length;m++){var n=b[m];if(!1===n.tv){l++;b[m]=n.reason;for(var q=OB([b[m]]),p=_.ra(a.$k[m]),r=p.next();!r.done;r=p.next())h[r.value.id]=q}else{if(1>a.$k[m].length)throw new LA("Error processing batch responses.");try{var v=!(1===a.$k[m].length&&a.$k[m][0].VZ),t=a.$k[m][0].id;if(!c){r=n;var w=d[m];q=r;if(w&&(!q||!v)){var B=_.uf(w);B&&(q=B.gapiRequest?B.gapiRequest.data:B,!v&&r&&(q.body=r))}if(!q)throw new LA("The batch response is missing.");
n=q}r=void 0;if(q=n){var D=q.headers;if(D){var F=_.ne();for(r in D)if(Object.prototype.hasOwnProperty.call(D,r)){var y=_.Tg(D,r);_.Ug(F,r,y,!0)}q.headers=F}}if(v&&0!=AB(n.headers,"Content-Type").indexOf("multipart/mixed"))throw new LA("The response's Content-Type is not multipart/mixed.");k=k||_.Px(n);var H=TA(n);H&&!TA(k)&&(k.status=n.status,k.statusText=n.statusText);if(H||c||!v){f=!0;r=Object;var N=r.assign;q=h;p=a;var Z=n,M=c;n={};if(v){M=M?EB:GB;var G=AB(Z.headers,"Content-Type").split("boundary=")[1];
if(!G)throw new LA("Boundary not indicated in response.");n=M(Z.body,"--"+G)}else M?(Z.result=_.uf(Z.body),n[t]=Z):n[t]=FB(Z,t);Z={};for(var V=_.ra(Object.entries(n)),ka=V.next();!ka.done;ka=V.next()){var sa=_.ra(ka.value),ma=sa.next().value,Ca=sa.next().value;Z[ma]=Ca;if(!p.tu[ma])throw new LA("Could not find batch entry for id "+ma+".");}h=N.call(r,q,Z)}}catch(Ea){for(l++,b[m]=Ea,q=OB([Ea]),p=_.ra(a.$k[m]),r=p.next();!r.done;r=p.next())h[r.value.id]=q}}}if(l===b.length){d=OB(b);h=_.vf(d);k=0;a=
Array.from(Object.values(a.dj)).flat();f=_.ra(a);for(l=f.next();!l.done;l=f.next())if(l=l.value,c)l.ty.reject(d);else if(l.callback)try{k++,l.callback(d,h)}catch(Ea){LB(Ea)}if(e)try{e(d,h)}catch(Ea){LB(Ea)}else if(k!==a.length)throw 1===b.length?b[0]:d;}else{if(f)for(f=_.ra(Object.entries(h)),l=f.next();!l.done;l=f.next())if(l=_.ra(l.value),m=l.next().value,l=l.next().value,c)m=a.tu[m],l&&TA(l)?m.ty.resolve(l):m.ty.reject(l);else if(m=a.tu[m],m.callback){if(l&&l.rawResult)try{delete l.rawResult}catch(Ea){}try{m.callback(l||
!1,_.vf(l))}catch(Ea){LB(Ea)}}k.result=h||{};k.body=1===b.length?k.body:"";if(e)try{e(h||null,1===d.length?d[0]:null)}catch(Ea){LB(Ea)}return k}},OB=function(a){var b={error:{code:0,message:"The batch request could not be fulfilled.  "}};a=_.ra(a);for(var c=a.next();!c.done;c=a.next())(c=c.value)&&c.message||c instanceof Error&&c.message?b.error.message+=(c.message||c instanceof Error&&c.message)+"  ":c&&c.error&&c.error.message&&(b.error.message+=c.error.message+"  ",b.error.code=c.error.code||b.error.code||
0);b.error.message=b.error.message.trim();return{result:b,body:_.vf(b),headers:null,status:null,statusText:null}};JB.prototype.hs=function(a){var b=this;return function(c,d){b.xA(c,d,a)}};JB.prototype.xA=function(a,b,c){NB(this,a,!1,b,c)};JB.prototype.add=JB.prototype.add;JB.prototype.execute=JB.prototype.execute;JB.prototype.then=JB.prototype.then;
var PB=function(){this.kk=[];this.Oe=this.Me=null};
PB.prototype.add=function(a,b){b=b||{};var c={},d=Object.prototype.hasOwnProperty;if(a)c.Ym=a;else throw new LA("Batch entry "+(d.call(b,"id")?'"'+b.id+'" ':"")+"is missing a request method");if(d.call(b,"id")){a=b.id;for(d=0;d<this.kk.length;d++)if(this.kk[d].id==a)throw new LA('Batch ID "'+a+'" already in use, please use another.');c.id=a}else{do c.id=String(2147483647*_.ai()|0);while(d.call(this.kk,c.id))}c.callback=b.callback;this.kk.push(c);return c.id};
var QB=function(a){return function(b){var c=b.body;if(b=b.result){for(var d={},e=0,f=b.length;e<f;++e)d[b[e].id]=b[e];a(d,c)}else a(b,c)}};
PB.prototype.execute=function(a){this.Me=[];for(var b,c,d=0;d<this.kk.length;d++)b=this.kk[d],c=b.Ym,this.Me.push(c.px(b.id)),this.Oe=c.em()||this.Oe;c=this.hs(a);a={requests:this.Me,root:this.Oe};b={};d=a.headers||{};for(var e in d){var f=e;if(Object.prototype.hasOwnProperty.call(d,f)){var h=_.Tg(d,f);h&&(f=_.Rg(f,h)||_.Qg(f))&&_.Ug(b,f,h)}}_.Ug(b,"Content-Type","application/json");e=QB(c);RA({method:"POST",root:a.root||void 0,path:"/rpc",params:a.urlParams,headers:b,body:a.requests||[]}).then(e,
e)};PB.prototype.hs=function(a){var b=this;return function(c,d){b.xA(c,d,a)}};PB.prototype.xA=function(a,b,c){a||(a={});for(var d=0;d<this.kk.length;d++){var e=this.kk[d];e.callback&&e.callback(a[e.id]||!1,b)}c&&c(a,b)};SA.sJ(function(){return new PB});PB.prototype.add=PB.prototype.add;PB.prototype.execute=PB.prototype.execute;
var RB=function(a,b){this.z0=a;this.Zd=b||null;this.xq=null};RB.prototype.nD=function(a){this.Zd=a;this.xq=2==this.Zd?new PB:new JB(this.z0)};RB.prototype.add=function(a,b){if(!a)throw a=b||_.ne(),new LA("Batch entry "+(_.oe(a,"id")?'"'+a.id+'" ':"")+"is missing a request method");null===this.Zd&&this.nD(a.getFormat());this.Zd!==a.getFormat()&&pB("Unable to add item to batch.");var c=b&&b.callback;1==this.Zd&&c&&(b.callback=function(d){d=SB(d);var e=_.vf([d]);c(d,e)});return this.xq.add(a,b)};
RB.prototype.execute=function(a){var b=a&&1==this.Zd?function(c){var d=[];_.am(c,function(f,h){f=SB(f);c[h]=f;d.push(f)});var e=_.vf(d);a(c,e)}:a;this.xq&&this.xq.execute(b)};var SB=function(a){var b=a?_.Ox(a,"result"):null;_.Bb(b)&&null!=b.error&&(b=oB(b),a={id:a.id,error:b});return a};RB.prototype.then=function(a,b,c){2==this.Zd&&pB('The "then" method is not available on this object.');return this.xq.then(a,b,c)};RB.prototype.add=RB.prototype.add;RB.prototype.execute=RB.prototype.execute;
RB.prototype.then=RB.prototype.then;
var TB=function(a){MA.call(this,TB.prototype.Sm);this.lb=a};_.I(TB,MA);var UB=function(a){a.lb.wj();var b=a.lb,c=b.De();return!(IB(c.root,c.path,a.lb.yr())?"batch"!==BB([b]):1)};_.g=TB.prototype;
_.g.execute=function(a){var b=this;if(UB(this))this.lb.execute(a);else{var c=function(d){if("function"===typeof a){var e={gapiRequest:{data:{status:d&&d.status,statusText:d&&d.statusText,headers:d&&d.headers,body:d&&d.body}}};if(1===b.getFormat()){a=vB(a);var f={}}var h=d?d.result:!1;d&&204==d.status&&(h=f,delete e.gapiRequest.data.body);a(h,_.vf(e))}};this.Xh().then(c,c)}};
_.g.Sm=function(){return UB(this)?this.lb.Xh():new _.Lj(function(a,b){var c=PA(),d=c.add(this.lb,{id:"gapiRequest"});c.then(function(e){var f=e.result;if(f&&(f=f[d])){Object.prototype.hasOwnProperty.call(f,"result")||(f.result=!1);Object.prototype.hasOwnProperty.call(f,"body")||(f.body="");TA(f)?a(f):b(f);return}b(e)},b)},this)};_.g.De=function(){if(this.lb.De)return this.lb.De()};_.g.wj=function(){this.lb.wj&&this.lb.wj()};_.g.em=function(){if(this.lb.em)return this.lb.em()};
_.g.Di=function(a){this.lb.Di&&this.lb.Di(a)};_.g.yr=function(){return this.lb.yr()};_.g.getFormat=function(){return this.lb.getFormat?this.lb.getFormat():0};_.g.Xh=function(){return this.Sm()};TB.prototype.execute=TB.prototype.execute;TB.prototype.then=TB.prototype.then;TB.prototype.getPromise=TB.prototype.Xh;
var VB="/rest?fields="+encodeURIComponent("kind,name,version,rootUrl,servicePath,resources,parameters,methods,batchPath,id")+"&pp=0",WB=function(a,b){return"/discovery/v1/apis/"+(encodeURIComponent(a)+"/"+encodeURIComponent(b)+VB)},YB=function(a,b,c,d){if(_.Bb(a)){var e=a;var f=a.name;a=a.version||"v1"}else f=a,a=b;if(!f||!a)throw new LA("Missing required parameters.");var h=c||function(){},k=_.Bb(d)?d:{};c=function(l){var m=l&&l.result;if(!m||m.error||!m.name||!l||l.error||l.message||l.message)h(m&&
m.error?m:l&&(l.error||l.message||l.message)?l:new LA("API discovery response missing required fields."));else{l=k.root;l=null!=m.rootUrl?String(m.rootUrl):l;l="string"===typeof l?l.replace(/([^\/])\/$/,"$1"):void 0;k.root=l;m.name&&m.version&&!m.id&&(m.id=[m.name,m.version].join(":"));m.id&&(k.apiId=m.id,l="client/batchPath/"+m.id,m.batchPath&&!_.He(l)&&_.Ie(l,m.batchPath));var n=m.servicePath,q=m.parameters,p=function(v){_.am(v,function(t){if(!(t&&t.id&&t.path&&t.httpMethod))throw new LA("Missing required parameters");
var w=t.id.split("."),B=window.gapi.client,D;for(D=0;D<w.length-1;D++){var F=w[D];B[F]=B[F]||{};B=B[F]}var y,H;k&&(k.hasOwnProperty("root")&&(y=k.root),k.hasOwnProperty("apiId")&&(H=k.apiId));F=window.gapi.client[w[0]];F.gI||(F.gI={servicePath:n||"",parameters:q,apiId:H});w=w[D];B[w]||(B[w]=_.ri(XB,{path:"string"===typeof t.path?t.path:null,httpMethod:"string"===typeof t.httpMethod?t.httpMethod:null,parameters:t.parameters,parameterName:(t.request||{}).parameterName||"",request:t.request,root:y},
F.gI))})},r=function(v){_.am(v,function(t){p(t.methods);r(t.resources)})};r(m.resources);p(m.methods);h.call()}};e?c({result:e}):0<f.indexOf("://")?RA({path:f,params:{pp:0,fields:0<=("/"+f).indexOf("/discovery/v1/apis/")?"kind,name,version,rootUrl,servicePath,resources,parameters,methods,batchPath,id":'fields["kind"],fields["name"],fields["version"],fields["rootUrl"],fields["servicePath"],fields["resources"],fields["parameters"],fields["methods"],fields["batchPath"],fields["id"]'}}).then(c,c):RA({path:WB(f,
a),root:d&&d.root}).then(c,c)},XB=function(a,b,c,d,e){e=void 0===e?{}:e;var f=b.servicePath||"";_.lc(f,"/")||(f="/"+f);var h=ZB(a.path,[a.parameters,b.parameters],c||{});c=h.Wk;var k=h.Y3;f=_.Xx(f,h.path);h=k.root;delete k.root;var l=a.parameterName;!l&&1==_.Qt(k)&&k.hasOwnProperty("resource")&&(l="resource");if(l){var m=k[l];delete k[l]}null==m&&(m=d);null==m&&a.request&&(_.yi(k)&&(k=void 0),m=k);e=e||{};l=a.httpMethod;"GET"==l&&void 0!==m&&""!=String(m)&&(_.Ug(e,"X-HTTP-Method-Override",l),l="POST");
if((null==m||null!=d)&&k)for(var n in k)"string"===typeof k[n]&&(c[n]=k[n]);return RA({path:f,method:l,params:c,headers:e,body:m,root:h||a.root,apiId:b.apiId},1)},ZB=function(a,b,c){c=_.mj(c);var d={};_.$l(b,function(e){_.am(e,function(f,h){var k=f.required;if("path"==f.location)if(Object.prototype.hasOwnProperty.call(c,h))_.rb(a,"{"+h+"}")?(f=encodeURIComponent(String(c[h])),a=a.replace("{"+h+"}",f)):_.rb(a,"{+"+h+"}")&&(f=encodeURI(String(c[h])),a=a.replace("{+"+h+"}",f)),delete c[h];else{if(k)throw new LA("Required path parameter "+
h+" is missing.");}else"query"==f.location&&Object.prototype.hasOwnProperty.call(c,h)&&(d[h]=c[h],delete c[h])})});if(b=c.trace)d.trace=b,delete c.trace;return{path:a,Wk:d,Y3:c}};
var $B=function(a,b,c,d){var e=b||"v1",f=_.Bb(d)?d:{root:d};if(c)YB(a,e,function(h){if(h)if(h.error)c(h);else{var k="API discovery was unsuccessful.";if(h.message||h.message)k=h.message||h.message;c({error:k,code:0})}else c()},f);else return new _.Lj(function(h,k){var l=function(m){m?k(m):h()};try{YB(a,e,l,f)}catch(m){k(m)}})},aC=new RegExp(/^((([Hh][Tt][Tt][Pp][Ss]?:)?\/\/[^\/?#]*)?\/)?/.source+/(_ah\/api\/)?(batch|rpc)(\/|\?|#|$)/.source),bC=function(a,b){if(!a)throw new LA("Missing required parameters");
var c="object"===typeof a?a:{path:a};a=c.callback;delete c.callback;b=new wB(c,b);if(c=!!_.He("client/xd4")&&UA()){var d=b.De();c=d.path;(d=d.root)&&"/"!==d.charAt(d.length-1)&&(d+="/");d&&c&&c.substr(0,d.length)===d&&(c=c.substr(d.length));c=!c.match(aC)}c&&(b=new TB(b));return a?(b.execute(a),null):b};SA.tJ(function(a){return bC.apply(null,arguments)});
var cC=function(a,b){if(!a)throw new LA("Missing required parameters");for(var c=a.split("."),d=window.gapi.client,e=0;e<c.length-1;e++){var f=c[e];d[f]=d[f]||{};d=d[f]}c=c[c.length-1];if(!d[c]){var h=b||{};d[c]=function(k){var l="string"==typeof h?h:h.root;k&&k.root&&(l=k.root);return new wB({method:a,apiVersion:h.apiVersion,rpcParams:k,transport:{name:"googleapis",root:l}},2)}}},dC=function(a){return new RB(a)};SA.rJ(function(a){return dC.apply(null,arguments)});
var eC=function(a){if(_.Fh.JSONRPC_ERROR_MOD)throw new LA(a+" is discontinued. See https://developers.googleblog.com/2018/03/discontinuing-support-for-json-rpc-and.html");_.zf.log(a+" is deprecated. See https://developers.google.com/api-client-library/javascript/reference/referencedocs")};
_.E("gapi.client.init",function(a){a.apiKey&&_.Ie("client/apiKey",a.apiKey);var b=_.Sb(a.discoveryDocs||[],function(d){return $B(d)});if((a.clientId||a.client_id)&&a.scope){var c=new _.Lj(function(d,e){var f=function(){_.u.gapi.auth2.init.call(_.u.gapi.auth2,a).then(function(){d()},e)};NA?f():_.u.gapi.load("auth2",{callback:function(){f()},onerror:function(h){e(h||Error("Da"))}})});b.push(c)}else(a.clientId||a.client_id||a.scope)&&_.zf.log("client_id and scope must both be provided to initialize OAuth.");
return _.Tj(b).then(function(){})});_.E("gapi.client.load",$B);_.E("gapi.client.newBatch",dC);_.E("gapi.client.newRpcBatch",function(){eC("gapi.client.newRpcBatch");return dC()});_.E("gapi.client.newHttpBatch",function(a){eC("gapi.client.newHttpBatch");return new RB(a,0)});_.E("gapi.client.register",function(a,b){eC("gapi.client.register");var c;b&&(c={apiVersion:b.apiVersion,root:b.root});cC(a,c)});_.E("gapi.client.request",bC);
_.E("gapi.client.rpcRequest",function(a,b,c){eC("gapi.client.rpcRequest");if(!a)throw new LA('Missing required parameter "method".');return new wB({method:a,apiVersion:b,rpcParams:c,transport:{name:"googleapis",root:c&&c.root||""}},2)});_.E("gapi.client.setApiKey",function(a){_.Ie("client/apiKey",a);_.Ie("googleapis.config/developerKey",a)});_.E("gapi.client.setApiVersions",function(a){eC("gapi.client.setApiVersions");_.Ie("googleapis.config/versions",a)});_.E("gapi.client.getToken",function(a){return _.Uh(a)});
_.E("gapi.client.setToken",function(a,b){a?_.Zv(a,b):_.$v(b)});_.E("gapi.client.AuthType",{J4:"auto",NONE:"none",H8:"oauth2",L6:"1p"});_.E("gapi.client.AuthType.AUTO","auto");_.E("gapi.client.AuthType.NONE","none");_.E("gapi.client.AuthType.OAUTH2","oauth2");_.E("gapi.client.AuthType.FIRST_PARTY","1p");

});
// Google Inc.
