6193289acd92b8c45ababddbe9bbf404147c9db0b4bedd5d8f3106566ea77144

Source Code:

if(ytcsi){ytcsi.tick("rses_dpj")}
(function(){
/* HTML content inlined from HTML import */
const d=document.createElement("div");
d.setAttribute("inlined-html","");
d.innerHTML="<!--\n@license\nCopyright (c) 2016 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n--><!--\n@license\nCopyright (c) 2015 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n--><!--\n@license\nCopyright (c) 2017 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n--><meta charset=\"UTF-8\"><div hidden=\"\" by-vulcanize=\"\">\n\n\n\n.\n\n</div>\n";
document.head.appendChild(d);
})();(function(){/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/'use strict';var e,aaa=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}},aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a},baa=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object")},h=baa(this),ba=function(a,b){if(b)a:{var c=h;a=a.split(".");for(var d=0;d<a.length-1;d++){var f=a[d];if(!(f in c))break a;c=c[f]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&aa(c,a,{configurable:!0,writable:!0,value:b})}};ba("Symbol",function(a){if(a)return a;var b=function(f,g){this.$jscomp$symbol$id_=f;aa(this,"description",{configurable:!0,writable:!0,value:g})};
b.prototype.toString=function(){return this.$jscomp$symbol$id_};
var c=0,d=function(f){if(this instanceof d)throw new TypeError("Symbol is not a constructor");return new b("jscomp_symbol_"+(f||"")+"_"+c++,f)};
return d});
ba("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=h[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&aa(d.prototype,a,{configurable:!0,writable:!0,value:function(){return caa(aaa(this))}})}return a});
var caa=function(a){a={next:a};a[Symbol.iterator]=function(){return this};
return a},ca=function(a){return a.raw=a},da=function(a,b){a.raw=b;
return a},k=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];
return b?b.call(a):{next:aaa(a)}},ea=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);
return c},fa=function(a){return a instanceof Array?a:ea(k(a))},daa="function"==typeof Object.create?Object.create:function(a){var b=function(){};
b.prototype=a;return new b},eaa=function(){function a(){function c(){}
new c;Reflect.construct(c,[],function(){});
return new c instanceof c}
if("undefined"!=typeof Reflect&&Reflect.construct){if(a())return Reflect.construct;var b=Reflect.construct;return function(c,d,f){c=b(c,d);f&&Reflect.setPrototypeOf(c,f.prototype);return c}}return function(c,d,f){void 0===f&&(f=c);
f=daa(f.prototype||Object.prototype);return Function.prototype.apply.call(c,f,d)||f}}(),ha;
if("function"==typeof Object.setPrototypeOf)ha=Object.setPrototypeOf;else{var ia;a:{var faa={a:!0},gaa={};try{gaa.__proto__=faa;ia=gaa.a;break a}catch(a){}ia=!1}ha=ia?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ja=ha,p=function(a,b){a.prototype=daa(b.prototype);
a.prototype.constructor=a;if(ja)ja(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.superClass_=b.prototype},haa=function(a){if(!(a instanceof Object))throw new TypeError("Iterator result "+a+" is not an object");
},ka=function(){this.isRunning_=!1;
this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};
e=ka.prototype;e.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};
e.next_=function(a){this.yieldResult=a};
e.throw_=function(a){this.abruptCompletion_={exception:a,isException:!0};this.nextAddress=this.catchAddress_||this.finallyAddress_};
e.return=function(a){this.abruptCompletion_={return:a};this.nextAddress=this.finallyAddress_};
e.jumpThroughFinallyBlocks=function(a){this.abruptCompletion_={jumpTo:a};this.nextAddress=this.finallyAddress_};
var q=function(a,b,c){a.nextAddress=c;return{value:b}};
ka.prototype.yieldAll=function(a,b){a=k(a);var c=a.next();haa(c);if(c.done)this.yieldResult=c.value,this.nextAddress=b;else return this.yieldAllIterator_=a,q(this,c.value,b)};
ka.prototype.jumpTo=function(a){this.nextAddress=a};
var oa=function(a){a.nextAddress=0},ra=function(a,b,c){a.catchAddress_=b;
void 0!=c&&(a.finallyAddress_=c)},ta=function(a,b){a.nextAddress=b;
a.catchAddress_=0},ua=function(a){a.catchAddress_=0;
var b=a.abruptCompletion_.exception;a.abruptCompletion_=null;return b},iaa=function(a,b,c){c=a.finallyContexts_.splice(c||0)[0];
(c=a.abruptCompletion_=a.abruptCompletion_||c)?c.isException?a.nextAddress=a.catchAddress_||a.finallyAddress_:void 0!=c.jumpTo&&a.finallyAddress_<c.jumpTo?(a.nextAddress=c.jumpTo,a.abruptCompletion_=null):a.nextAddress=a.finallyAddress_:a.nextAddress=b};
ka.prototype.forIn=function(a){return new jaa(a)};
var jaa=function(a){this.object_=a;this.properties_=[];for(var b in a)this.properties_.push(b);this.properties_.reverse()};
jaa.prototype.getNext=function(){for(;0<this.properties_.length;){var a=this.properties_.pop();if(a in this.object_)return a}return null};
var va=function(a){this.context_=new ka;this.program_=a};
va.prototype.next_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return wa(this,this.context_.yieldAllIterator_.next,a,this.context_.next_);this.context_.next_(a);return xa(this)};
var kaa=function(a,b){a.context_.start_();var c=a.context_.yieldAllIterator_;if(c)return wa(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.context_.return);
a.context_.return(b);return xa(a)};
va.prototype.throw_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return wa(this,this.context_.yieldAllIterator_["throw"],a,this.context_.next_);this.context_.throw_(a);return xa(this)};
var wa=function(a,b,c,d){try{var f=b.call(a.context_.yieldAllIterator_,c);haa(f);if(!f.done)return a.context_.isRunning_=!1,f;var g=f.value}catch(l){return a.context_.yieldAllIterator_=null,a.context_.throw_(l),xa(a)}a.context_.yieldAllIterator_=null;d.call(a.context_,g);return xa(a)},xa=function(a){for(;a.context_.nextAddress;)try{var b=a.program_(a.context_);
if(b)return a.context_.isRunning_=!1,{value:b.value,done:!1}}catch(c){a.context_.yieldResult=void 0,a.context_.throw_(c)}a.context_.isRunning_=!1;if(a.context_.abruptCompletion_){b=a.context_.abruptCompletion_;a.context_.abruptCompletion_=null;if(b.isException)throw b.exception;return{value:b.return,done:!0}}return{value:void 0,done:!0}},laa=function(a){this.next=function(b){return a.next_(b)};
this.throw=function(b){return a.throw_(b)};
this.return=function(b){return kaa(a,b)};
this[Symbol.iterator]=function(){return this}},ya=function(a,b){b=new laa(new va(b));
ja&&a.prototype&&ja(b,a.prototype);return b},maa=function(a){function b(d){return a.next(d)}
function c(d){return a.throw(d)}
return new Promise(function(d,f){function g(l){l.done?d(l.value):Promise.resolve(l.value).then(b,c).then(g,f)}
g(a.next())})},za=function(a){return maa(new laa(new va(a)))};
ba("Reflect",function(a){return a?a:{}});
ba("Reflect.construct",function(){return eaa});
ba("Reflect.setPrototypeOf",function(a){return a?a:ja?function(b,c){try{return ja(b,c),!0}catch(d){return!1}}:null});
ba("Promise",function(a){function b(){this.batch_=null}
function c(l){return l instanceof f?l:new f(function(m){m(l)})}
if(a&&("undefined"!==typeof h.PromiseRejectionEvent||!h.Promise||-1===h.Promise.toString().indexOf("[native code]")))return a;b.prototype.asyncExecute=function(l){if(null==this.batch_){this.batch_=[];var m=this;this.asyncExecuteFunction(function(){m.executeBatch_()})}this.batch_.push(l)};
var d=h.setTimeout;b.prototype.asyncExecuteFunction=function(l){d(l,0)};
b.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var l=this.batch_;this.batch_=[];for(var m=0;m<l.length;++m){var n=l[m];l[m]=null;try{n()}catch(r){this.asyncThrow_(r)}}}this.batch_=null};
b.prototype.asyncThrow_=function(l){this.asyncExecuteFunction(function(){throw l})};
var f=function(l){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var m=this.createResolveAndReject_();try{l(m.resolve,m.reject)}catch(n){m.reject(n)}};
f.prototype.createResolveAndReject_=function(){function l(r){return function(v){n||(n=!0,r.call(m,v))}}
var m=this,n=!1;return{resolve:l(this.resolveTo_),reject:l(this.reject_)}};
f.prototype.resolveTo_=function(l){if(l===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(l instanceof f)this.settleSameAsPromise_(l);else{a:switch(typeof l){case"object":var m=null!=l;break a;case"function":m=!0;break a;default:m=!1;}m?this.resolveToNonPromiseObj_(l):this.fulfill_(l)}};
f.prototype.resolveToNonPromiseObj_=function(l){var m=void 0;try{m=l.then}catch(n){this.reject_(n);return}"function"==typeof m?this.settleSameAsThenable_(m,l):this.fulfill_(l)};
f.prototype.reject_=function(l){this.settle_(2,l)};
f.prototype.fulfill_=function(l){this.settle_(1,l)};
f.prototype.settle_=function(l,m){if(0!=this.state_)throw Error("Cannot settle("+l+", "+m+"): Promise already settled in state"+this.state_);this.state_=l;this.result_=m;2===this.state_&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
f.prototype.scheduleUnhandledRejectionCheck_=function(){var l=this;d(function(){if(l.notifyUnhandledRejection_()){var m=h.console;"undefined"!==typeof m&&m.error(l.result_)}},1)};
f.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var l=h.CustomEvent,m=h.Event,n=h.dispatchEvent;if("undefined"===typeof n)return!0;"function"===typeof l?l=new l("unhandledrejection",{cancelable:!0}):"function"===typeof m?l=new m("unhandledrejection",{cancelable:!0}):(l=h.document.createEvent("CustomEvent"),l.initCustomEvent("unhandledrejection",!1,!0,l));l.promise=this;l.reason=this.result_;return n(l)};
f.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var l=0;l<this.onSettledCallbacks_.length;++l)g.asyncExecute(this.onSettledCallbacks_[l]);this.onSettledCallbacks_=null}};
var g=new b;f.prototype.settleSameAsPromise_=function(l){var m=this.createResolveAndReject_();l.callWhenSettled_(m.resolve,m.reject)};
f.prototype.settleSameAsThenable_=function(l,m){var n=this.createResolveAndReject_();try{l.call(m,n.resolve,n.reject)}catch(r){n.reject(r)}};
f.prototype.then=function(l,m){function n(C,J){return"function"==typeof C?function(E){try{r(C(E))}catch(S){v(S)}}:J}
var r,v,z=new f(function(C,J){r=C;v=J});
this.callWhenSettled_(n(l,r),n(m,v));return z};
f.prototype.catch=function(l){return this.then(void 0,l)};
f.prototype.callWhenSettled_=function(l,m){function n(){switch(r.state_){case 1:l(r.result_);break;case 2:m(r.result_);break;default:throw Error("Unexpected state: "+r.state_);}}
var r=this;null==this.onSettledCallbacks_?g.asyncExecute(n):this.onSettledCallbacks_.push(n);this.isRejectionHandled_=!0};
f.resolve=c;f.reject=function(l){return new f(function(m,n){n(l)})};
f.race=function(l){return new f(function(m,n){for(var r=k(l),v=r.next();!v.done;v=r.next())c(v.value).callWhenSettled_(m,n)})};
f.all=function(l){var m=k(l),n=m.next();return n.done?c([]):new f(function(r,v){function z(E){return function(S){C[E]=S;J--;0==J&&r(C)}}
var C=[],J=0;do C.push(void 0),J++,c(n.value).callWhenSettled_(z(C.length-1),v),n=m.next();while(!n.done)})};
return f});
ba("Object.setPrototypeOf",function(a){return a||ja});
var Aa=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},naa="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];
if(d)for(var f in d)Aa(d,f)&&(a[f]=d[f])}return a};
ba("Object.assign",function(a){return a||naa});
var Ba=function(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};
ba("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Ba(this,b,"endsWith");b+="";void 0===c&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var f=b.length;0<f&&0<c;)if(d[--c]!=b[--f])return!1;return 0>=f}});
var oaa=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,f=0;f<d;f++){var g=a[f];if(b.call(c,g,f,a))return{i:f,v:g}}return{i:-1,v:void 0}};
ba("Array.prototype.find",function(a){return a?a:function(b,c){return oaa(this,b,c).v}});
ba("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ba(this,b,"startsWith");b+="";var f=d.length,g=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var l=0;l<g&&c<f;)if(d[c++]!=b[l++])return!1;return l>=g}});
ba("String.prototype.repeat",function(a){return a?a:function(b){var c=Ba(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});
ba("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(m){return m};
var f=[],g="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof g){b=g.call(b);for(var l=0;!(g=b.next()).done;)f.push(c.call(d,g.value,l++))}else for(g=b.length,l=0;l<g;l++)f.push(c.call(d,b[l],l));return f}});
ba("Array.prototype.findIndex",function(a){return a?a:function(b,c){return oaa(this,b,c).i}});
ba("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
ba("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var f=d.length;c=c||0;for(0>c&&(c=Math.max(c+f,0));c<f;c++){var g=d[c];if(g===b||Object.is(g,b))return!0}return!1}});
ba("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Ba(this,b,"includes").indexOf(b,c||0)}});
ba("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Aa(b,d)&&c.push([d,b[d]]);return c}});
var Ca=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,f={next:function(){if(!d&&c<a.length){var g=c++;return{value:b(g,a[g]),done:!1}}d=!0;return{done:!0,value:void 0}}};
f[Symbol.iterator]=function(){return f};
return f};
ba("Array.prototype.entries",function(a){return a?a:function(){return Ca(this,function(b,c){return[b,c]})}});
ba("Array.prototype.keys",function(a){return a?a:function(){return Ca(this,function(b){return b})}});
ba("Array.prototype.values",function(a){return a?a:function(){return Ca(this,function(b,c){return c})}});
ba("WeakMap",function(a){function b(){}
function c(n){var r=typeof n;return"object"===r&&null!==n||"function"===r}
function d(n){if(!Aa(n,g)){var r=new b;aa(n,g,{value:r})}}
function f(n){var r=Object[n];r&&(Object[n]=function(v){if(v instanceof b)return v;Object.isExtensible(v)&&d(v);return r(v)})}
if(function(){if(!a||!Object.seal)return!1;try{var n=Object.seal({}),r=Object.seal({}),v=new a([[n,2],[r,3]]);if(2!=v.get(n)||3!=v.get(r))return!1;v.delete(n);v.set(r,4);return!v.has(n)&&4==v.get(r)}catch(z){return!1}}())return a;
var g="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var l=0,m=function(n){this.id_=(l+=Math.random()+1).toString();if(n){n=k(n);for(var r;!(r=n.next()).done;)r=r.value,this.set(r[0],r[1])}};
m.prototype.set=function(n,r){if(!c(n))throw Error("Invalid WeakMap key");d(n);if(!Aa(n,g))throw Error("WeakMap key fail: "+n);n[g][this.id_]=r;return this};
m.prototype.get=function(n){return c(n)&&Aa(n,g)?n[g][this.id_]:void 0};
m.prototype.has=function(n){return c(n)&&Aa(n,g)&&Aa(n[g],this.id_)};
m.prototype.delete=function(n){return c(n)&&Aa(n,g)&&Aa(n[g],this.id_)?delete n[g][this.id_]:!1};
return m});
ba("Map",function(a){if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var m=Object.seal({x:4}),n=new a(k([[m,"s"]]));if("s"!=n.get(m)||1!=n.size||n.get({x:4})||n.set({x:4},"t")!=n||2!=n.size)return!1;var r=n.entries(),v=r.next();if(v.done||v.value[0]!=m||"s"!=v.value[1])return!1;v=r.next();return v.done||4!=v.value[0].x||"t"!=v.value[1]||!r.next().done?!1:!0}catch(z){return!1}}())return a;
var b=new WeakMap,c=function(m){this.data_={};this.head_=g();this.size=0;if(m){m=k(m);for(var n;!(n=m.next()).done;)n=n.value,this.set(n[0],n[1])}};
c.prototype.set=function(m,n){m=0===m?0:m;var r=d(this,m);r.list||(r.list=this.data_[r.id]=[]);r.entry?r.entry.value=n:(r.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:m,value:n},r.list.push(r.entry),this.head_.previous.next=r.entry,this.head_.previous=r.entry,this.size++);return this};
c.prototype.delete=function(m){m=d(this,m);return m.entry&&m.list?(m.list.splice(m.index,1),m.list.length||delete this.data_[m.id],m.entry.previous.next=m.entry.next,m.entry.next.previous=m.entry.previous,m.entry.head=null,this.size--,!0):!1};
c.prototype.clear=function(){this.data_={};this.head_=this.head_.previous=g();this.size=0};
c.prototype.has=function(m){return!!d(this,m).entry};
c.prototype.get=function(m){return(m=d(this,m).entry)&&m.value};
c.prototype.entries=function(){return f(this,function(m){return[m.key,m.value]})};
c.prototype.keys=function(){return f(this,function(m){return m.key})};
c.prototype.values=function(){return f(this,function(m){return m.value})};
c.prototype.forEach=function(m,n){for(var r=this.entries(),v;!(v=r.next()).done;)v=v.value,m.call(n,v[1],v[0],this)};
c.prototype[Symbol.iterator]=c.prototype.entries;var d=function(m,n){var r=n&&typeof n;"object"==r||"function"==r?b.has(n)?r=b.get(n):(r=""+ ++l,b.set(n,r)):r="p_"+n;var v=m.data_[r];if(v&&Aa(m.data_,r))for(m=0;m<v.length;m++){var z=v[m];if(n!==n&&z.key!==z.key||n===z.key)return{id:r,list:v,index:m,entry:z}}return{id:r,list:v,index:-1,entry:void 0}},f=function(m,n){var r=m.head_;
return caa(function(){if(r){for(;r.head!=m.head_;)r=r.previous;for(;r.next!=r.head;)return r=r.next,{done:!1,value:n(r)};r=null}return{done:!0,value:void 0}})},g=function(){var m={};
return m.previous=m.next=m.head=m},l=0;
return c});
ba("Set",function(a){if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(k([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var f=d.entries(),g=f.next();if(g.done||g.value[0]!=c||g.value[1]!=c)return!1;g=f.next();return g.done||g.value[0]==c||4!=g.value[0].x||g.value[1]!=g.value[0]?!1:f.next().done}catch(l){return!1}}())return a;
var b=function(c){this.map_=new Map;if(c){c=k(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.map_.size};
b.prototype.add=function(c){c=0===c?0:c;this.map_.set(c,c);this.size=this.map_.size;return this};
b.prototype.delete=function(c){c=this.map_.delete(c);this.size=this.map_.size;return c};
b.prototype.clear=function(){this.map_.clear();this.size=0};
b.prototype.has=function(c){return this.map_.has(c)};
b.prototype.entries=function(){return this.map_.entries()};
b.prototype.values=function(){return this.map_.values()};
b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var f=this;this.map_.forEach(function(g){return c.call(d,g,g,f)})};
return b});
ba("Array.prototype.fill",function(a){return a?a:function(b,c,d){var f=this.length||0;0>c&&(c=Math.max(0,f+c));if(null==d||d>f)d=f;d=Number(d);0>d&&(d=Math.max(0,f+d));for(c=Number(c||0);c<d;c++)this[c]=b;return this}});
var Da=function(a){return a?a:Array.prototype.fill};
ba("Int8Array.prototype.fill",Da);ba("Uint8Array.prototype.fill",Da);ba("Uint8ClampedArray.prototype.fill",Da);ba("Int16Array.prototype.fill",Da);ba("Uint16Array.prototype.fill",Da);ba("Int32Array.prototype.fill",Da);ba("Uint32Array.prototype.fill",Da);ba("Float32Array.prototype.fill",Da);ba("Float64Array.prototype.fill",Da);ba("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});
ba("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Aa(b,d)&&c.push(b[d]);return c}});
ba("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}});
ba("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
ba("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});
ba("Object.getOwnPropertySymbols",function(a){return a?a:function(){return[]}});
ba("Reflect.ownKeys",function(a){return a?a:function(b){var c=[],d=Object.getOwnPropertyNames(b);b=Object.getOwnPropertySymbols(b);for(var f=0;f<d.length;f++)("jscomp_symbol_"==d[f].substring(0,14)?b:c).push(d[f]);return c.concat(b)}});
ba("Object.getOwnPropertyDescriptors",function(a){return a?a:function(b){for(var c={},d=Reflect.ownKeys(b),f=0;f<d.length;f++)c[d[f]]=Object.getOwnPropertyDescriptor(b,d[f]);return c}});
ba("WeakSet",function(a){if(function(){if(!a||!Object.seal)return!1;try{var c=Object.seal({}),d=Object.seal({}),f=new a([c]);if(!f.has(c)||f.has(d))return!1;f.delete(c);f.add(d);return!f.has(c)&&f.has(d)}catch(g){return!1}}())return a;
var b=function(c){this.map_=new WeakMap;if(c){c=k(c);for(var d;!(d=c.next()).done;)this.add(d.value)}};
b.prototype.add=function(c){this.map_.set(c,!0);return this};
b.prototype.has=function(c){return this.map_.has(c)};
b.prototype.delete=function(c){return this.map_.delete(c)};
return b});
ba("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;
})})}});
var Ea=Ea||{},t=this||self,Fa=function(a,b,c){a=a.split(".");c=c||t;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}:c[d]=b},Ha=function(a){if(a&&a!=t)return paa(a.document);
null===Ga&&(Ga=paa(t.document));return Ga},qaa=/^[\w+/_-]+[=]{0,2}$/,Ga=null,paa=function(a){return(a=a.querySelector&&a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&qaa.test(a)?a:""},Ja=function(a,b){a=a.split(".");
b=b||t;for(var c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b},Ka=function(){},La=function(a){a.instance_=void 0;
a.getInstance=function(){return a.instance_?a.instance_:a.instance_=new a}},Ma=function(a){var b=typeof a;
return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"},Oa=function(a){var b=Ma(a);
return"array"==b||"object"==b&&"number"==typeof a.length},Pa=function(a){var b=typeof a;
return"object"==b&&null!=a||"function"==b},Ra=function(a){return Object.prototype.hasOwnProperty.call(a,Qa)&&a[Qa]||(a[Qa]=++raa)},Qa="closure_uid_"+(1E9*Math.random()>>>0),raa=0,Sa=function(a){var b=Ma(a);
if("object"==b||"array"==b){if("function"===typeof a.clone)return a.clone();b="array"==b?[]:{};for(var c in a)b[c]=Sa(a[c]);return b}return a},saa=function(a,b,c){return a.call.apply(a.bind,arguments)},taa=function(a,b,c){if(!a)throw Error();
if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var f=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(f,d);return a.apply(b,f)}}return function(){return a.apply(b,arguments)}},u=function(a,b,c){u=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?saa:taa;
return u.apply(null,arguments)},Ta=function(a,b){var c=Array.prototype.slice.call(arguments,1);
return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}},Ua=function(a,b){for(var c in b)a[c]=b[c]},Va=function(){return Date.now()},w=function(a,b){function c(){}
c.prototype=b.prototype;a.superClass_=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(d,f,g){for(var l=Array(arguments.length-2),m=2;m<arguments.length;m++)l[m-2]=arguments[m];return b.prototype[f].apply(d,l)}},Wa=function(a){return a},uaa=function(a){var b=null,c=t.trustedTypes;
if(!c||!c.createPolicy)return b;try{b=c.createPolicy(a,{createHTML:Wa,createScript:Wa,createScriptURL:Wa})}catch(d){t.console&&t.console.error(d.message)}return b};var vaa=function(a){var b=["element"],c={},d;for(d in a)Object.prototype.hasOwnProperty.call(a,d)&&0>b.indexOf(d)&&(c[d]=a[d]);if(null!=a&&"function"===typeof Object.getOwnPropertySymbols){var f=0;for(d=Object.getOwnPropertySymbols(a);f<d.length;f++)0>b.indexOf(d[f])&&(c[d[f]]=a[d[f]])}return c},x=function(a,b,c,d){var f=arguments.length,g=3>f?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d,l;
if("object"===typeof Reflect&&Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(a,b,c,d);else for(var m=a.length-1;0<=m;m--)if(l=a[m])g=(3>f?l(g):3<f?l(b,c,g):l(b,c))||g;return 3<f&&g&&Object.defineProperty(b,c,g),g},y=function(a,b){if("object"===typeof Reflect&&Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(a,b)},Xa=function(a,b){var c=void 0;
return new(c||(c=Promise))(function(d,f){function g(n){try{m(b.next(n))}catch(r){f(r)}}
function l(n){try{m(b["throw"](n))}catch(r){f(r)}}
function m(n){n.done?d(n.value):new c(function(r){r(n.value)}).then(g,l)}
m((b=b.apply(a,void 0)).next())})};function Ya(a,b){throw Error(void 0===b?"unexpected value "+a+"!":b)}
;function Za(a){if(Error.captureStackTrace)Error.captureStackTrace(this,Za);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a));this.reportErrorToServer=!0}
w(Za,Error);Za.prototype.name="CustomError";var waa;var $a=function(a,b){for(var c=Za.call,d=a.split("%s"),f="",g=d.length-1,l=0;l<g;l++)f+=d[l]+(l<b.length?b[l]:"%s");c.call(Za,this,f+d[g]);this.messagePattern=a};
w($a,Za);$a.prototype.name="AssertionError";function ab(a){return a[a.length-1]}
var bb=function(a,b){return Array.prototype.indexOf.call(a,b,void 0)},cb=function(a,b,c){Array.prototype.forEach.call(a,b,c)},db=function(a,b,c){return Array.prototype.filter.call(a,b,c)},eb=function(a,b,c){return Array.prototype.map.call(a,b,c)},fb=function(a,b,c){return Array.prototype.reduce.call(a,b,c)},gb=function(a,b,c){return Array.prototype.some.call(a,b,c)},hb=function(a,b,c){return Array.prototype.every.call(a,b,c)};
function xaa(a,b){var c=0;cb(a,function(d,f,g){b.call(void 0,d,f,g)&&++c},void 0);
return c}
function ib(a,b,c){b=kb(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]}
function kb(a,b,c){for(var d=a.length,f="string"===typeof a?a.split(""):a,g=0;g<d;g++)if(g in f&&b.call(c,f[g],g,a))return g;return-1}
function yaa(a,b){var c=a.length,d="string"===typeof a?a.split(""):a;for(--c;0<=c;c--)if(c in d&&b.call(void 0,d[c],c,a))return c;return-1}
function lb(a,b){return 0<=bb(a,b)}
function zaa(a,b){lb(a,b)||a.push(b)}
function mb(a,b){b=bb(a,b);var c;(c=0<=b)&&nb(a,b);return c}
function nb(a,b){Array.prototype.splice.call(a,b,1)}
function Aaa(a,b){b=kb(a,b,void 0);0<=b&&nb(a,b)}
function ob(a){return Array.prototype.concat.apply([],arguments)}
function pb(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}
function Baa(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(Oa(d)){var f=a.length||0,g=d.length||0;a.length=f+g;for(var l=0;l<g;l++)a[f+l]=d[l]}else a.push(d)}}
function qb(a,b,c,d){Array.prototype.splice.apply(a,rb(arguments,1))}
function rb(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)}
function Caa(a,b,c){c=c||Daa;for(var d=0,f=a.length,g;d<f;){var l=d+(f-d>>>1);var m=c(b,a[l]);0<m?d=l+1:(f=l,g=!m)}return g?d:-d-1}
function sb(a,b){a.sort(b||Daa)}
function Daa(a,b){return a>b?1:a<b?-1:0}
function Eaa(a){for(var b=[],c=0;c<a;c++)b[c]="";return b}
function tb(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];if(Array.isArray(d))for(var f=0;f<d.length;f+=8192)for(var g=tb.apply(null,rb(d,f,f+8192)),l=0;l<g.length;l++)b.push(g[l]);else b.push(d)}return b}
function Faa(a,b,c){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,c,0,b[0])}
function Gaa(a){if(!arguments.length)return[];for(var b=[],c=arguments[0].length,d=1;d<arguments.length;d++)arguments[d].length<c&&(c=arguments[d].length);for(d=0;d<c;d++){for(var f=[],g=0;g<arguments.length;g++)f.push(arguments[g][d]);b.push(f)}return b}
function Haa(a,b,c){return ob.apply([],eb(a,b,c))}
;var ub=function(a){return a},Iaa=function(a){var b=b||0;
return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}},vb=function(a){var b=!1,c;
return function(){b||(c=a(),b=!0);return c}};var A={forEach:function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},
filter:function(a,b,c){var d={},f;for(f in a)b.call(c,a[f],f,a)&&(d[f]=a[f]);return d},
map:function(a,b,c){var d={},f;for(f in a)d[f]=b.call(c,a[f],f,a);return d},
some:function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1},
every:function(a,b,c){for(var d in a)if(!b.call(c,a[d],d,a))return!1;return!0},
getCount:function(a){var b=0,c;for(c in a)b++;return b},
getAnyKey:function(a){for(var b in a)return b},
getAnyValue:function(a){for(var b in a)return a[b]},
contains:function(a,b){return A.containsValue(a,b)},
getValues:function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},
getKeys:function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b},
getValueByKeys:function(a,b){var c=Oa(b),d=c?b:arguments;for(c=c?0:1;c<d.length;c++){if(null==a)return;a=a[d[c]]}return a},
containsKey:function(a,b){return null!==a&&b in a},
containsValue:function(a,b){for(var c in a)if(a[c]==b)return!0;return!1},
findKey:function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d},
findValue:function(a,b,c){return(b=A.findKey(a,b,c))&&a[b]},
isEmpty:function(a){for(var b in a)return!1;return!0},
clear:function(a){for(var b in a)delete a[b]},
remove:function(a,b){var c;(c=b in a)&&delete a[b];return c},
add:function(a,b,c){if(null!==a&&b in a)throw Error("The object already contains the key \""+b+"\"");A.set(a,b,c)},
get:function(a,b,c){return null!==a&&b in a?a[b]:c},
set:function(a,b,c){a[b]=c},
setIfUndefined:function(a,b,c){return b in a?a[b]:a[b]=c},
setWithReturnValueIfNotSet:function(a,b,c){if(b in a)return a[b];c=c();return a[b]=c},
equals:function(a,b){for(var c in a)if(!(c in b)||a[c]!==b[c])return!1;for(var d in b)if(!(d in a))return!1;return!0},
clone:function(a){var b={},c;for(c in a)b[c]=a[c];return b},
unsafeClone:function(a){if(!a||"object"!==typeof a)return a;if("function"===typeof a.clone)return a.clone();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]=A.unsafeClone(a[c]);return b},
transpose:function(a){var b={},c;for(c in a)b[a[c]]=c;return b},
PROTOTYPE_FIELDS_:"constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),extend:function(a,b){for(var c,d,f=1;f<arguments.length;f++){d=arguments[f];for(c in d)a[c]=d[c];for(var g=0;g<A.PROTOTYPE_FIELDS_.length;g++)c=A.PROTOTYPE_FIELDS_[g],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}},
create:function(a){var b=arguments.length;if(1==b&&Array.isArray(arguments[0]))return A.create.apply(null,arguments[0]);if(b%2)throw Error("Uneven number of arguments");for(var c={},d=0;d<b;d+=2)c[arguments[d]]=arguments[d+1];return c},
createSet:function(a){var b=arguments.length;if(1==b&&Array.isArray(arguments[0]))return A.createSet.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c},
createImmutableView:function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b},
isImmutableView:function(a){return!!Object.isFrozen&&Object.isFrozen(a)},
getAllPropertyNames:function(a,b,c){if(!a)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return A.getKeys(a);for(var d={};a&&(a!==Object.prototype||b)&&(a!==Function.prototype||c);){for(var f=Object.getOwnPropertyNames(a),g=0;g<f.length;g++)d[f[g]]=!0;a=Object.getPrototypeOf(a)}return A.getKeys(d)},
getSuperClass:function(a){return(a=Object.getPrototypeOf(a.prototype))&&a.constructor}};var wb,zb=function(){void 0===wb&&(wb=uaa("goog#html"));return wb};var Ab=function(a,b){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=a===Jaa&&b||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=Kaa};
Ab.prototype.implementsGoogStringTypedString=!0;Ab.prototype.getTypedStringValue=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var Bb=function(a){return a instanceof Ab&&a.constructor===Ab&&a.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===Kaa?a.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},Cb=function(a){return new Ab(Jaa,a)},Kaa={},Jaa={};var Laa={},Db=function(a,b){this.privateDoNotAccessOrElseSafeScriptWrappedValue_=b===Laa?a:"";this.implementsGoogStringTypedString=!0};
Db.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeScriptWrappedValue_.toString()};
var Eb=function(a){return a instanceof Db&&a.constructor===Db?a.privateDoNotAccessOrElseSafeScriptWrappedValue_:"type_error:SafeScript"};var Fb=function(a,b){this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_=b===Maa?a:""};
e=Fb.prototype;e.implementsGoogStringTypedString=!0;e.getTypedStringValue=function(){return this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_.toString()};
e.implementsGoogI18nBidiDirectionalString=!0;e.getDirection=function(){return 1};
e.cloneWithParams=function(a,b){var c=Gb(this);c=Naa.exec(c);var d=c[3]||"";return Hb(c[1]+Oaa("?",c[2]||"",a)+Oaa("#",d,b))};
var Gb=function(a){return Ib(a).toString()},Ib=function(a){return a instanceof Fb&&a.constructor===Fb?a.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_:"type_error:TrustedResourceUrl"},Jb=function(a,b){var c=Bb(a);
if(!Paa.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);a=c.replace(Qaa,function(d,f){if(!Object.prototype.hasOwnProperty.call(b,f))throw Error("Found marker, \""+f+"\", in format string, \""+c+"\", but no valid label mapping found in args: "+JSON.stringify(b));d=b[f];return d instanceof Ab?Bb(d):encodeURIComponent(String(d))});
return Hb(a)},Qaa=/%{(\w+)}/g,Paa=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,Naa=/^([^?#]*)(\?[^#]*)?(#[\s\S]*)?/,Kb=function(a){return Hb(Bb(a))},Maa={},Hb=function(a){var b=zb();
a=b?b.createScriptURL(a):a;return new Fb(a,Maa)},Oaa=function(a,b,c){if(null==c)return b;
if("string"===typeof c)return c?a+encodeURIComponent(c):"";for(var d in c)if(Object.prototype.hasOwnProperty.call(c,d)){var f=c[d];f=Array.isArray(f)?f:[f];for(var g=0;g<f.length;g++){var l=f[g];null!=l&&(b||(b=a),b+=(b.length>a.length?"&":"")+encodeURIComponent(d)+"="+encodeURIComponent(String(l)))}}return b};var Lb=function(a,b){return 0==a.lastIndexOf(b,0)},Mb=function(a,b){var c=a.length-b.length;
return 0<=c&&a.indexOf(b,c)==c},Nb=function(a){return /^[\s\xa0]*$/.test(a)},Ob=String.prototype.trim?function(a){return a.trim()}:function(a){return /^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},Yaa=function(a,b){if(b)a=a.replace(Raa,"&").replace(Saa,"<").replace(Taa,">").replace(Uaa,""").replace(Vaa,"'").replace(Waa,"�");else
{if(!Xaa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Raa,"&"));-1!=a.indexOf("<")&&(a=a.replace(Saa,"<"));-1!=a.indexOf(">")&&(a=a.replace(Taa,">"));-1!=a.indexOf("\"")&&(a=a.replace(Uaa,"""));-1!=a.indexOf("'")&&(a=a.replace(Vaa,"'"));-1!=a.indexOf("\0")&&(a=a.replace(Waa,"�"))}return a},Raa=/&/g,Saa=/</g,Taa=/>/g,Uaa=/"/g,Vaa=/'/g,Waa=/\x00/g,Xaa=/[\x00&<>"']/,Pb=function(a,b){return-1!=a.indexOf(b)},Qb=function(a,b){return Pb(a.toLowerCase(),b.toLowerCase())},Sb=
function(a,b){var c=0;
a=Ob(String(a)).split(".");b=Ob(String(b)).split(".");for(var d=Math.max(a.length,b.length),f=0;0==c&&f<d;f++){var g=a[f]||"",l=b[f]||"";do{g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];l=/(\d*)(\D*)(.*)/.exec(l)||["","","",""];if(0==g[0].length&&0==l[0].length)break;c=Rb(0==g[1].length?0:parseInt(g[1],10),0==l[1].length?0:parseInt(l[1],10))||Rb(0==g[2].length,0==l[2].length)||Rb(g[2],l[2]);g=g[3];l=l[3]}while(0==c)}return c},Rb=function(a,b){return a<b?-1:a>b?1:0};var Tb=function(a,b){this.privateDoNotAccessOrElseSafeUrlWrappedValue_=b===Zaa?a:""};
Tb.prototype.implementsGoogStringTypedString=!0;Tb.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString()};
Tb.prototype.implementsGoogI18nBidiDirectionalString=!0;Tb.prototype.getDirection=function(){return 1};
var Ub=function(a){return a instanceof Tb&&a.constructor===Tb?a.privateDoNotAccessOrElseSafeUrlWrappedValue_:"type_error:SafeUrl"},$aa=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|font\/\w+|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|video\/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i,aba=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,Wb=function(a){a=String(a);
a=a.replace(/(%0A|%0D)/g,"");var b=a.match(aba);return b&&$aa.test(b[1])?Vb(a):null},bba=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Zb=function(a){a instanceof Tb||(a="object"==typeof a&&a.implementsGoogStringTypedString?a.getTypedStringValue():String(a),a=bba.test(a)?Vb(a):Wb(a));
return a||Xb},$b=function(a,b){if(a instanceof Tb)return a;
a="object"==typeof a&&a.implementsGoogStringTypedString?a.getTypedStringValue():String(a);if(b&&/^data:/i.test(a)&&(b=Wb(a)||Xb,b.getTypedStringValue()==a))return b;bba.test(a)||(a="about:invalid#zClosurez");return Vb(a)},Zaa={},Vb=function(a){return new Tb(a,Zaa)},Xb=Vb("about:invalid#zClosurez");var bc=function(a,b){this.privateDoNotAccessOrElseSafeStyleWrappedValue_=b===ac?a:""};
bc.prototype.implementsGoogStringTypedString=!0;bc.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_};
var cba=function(a){return a instanceof bc&&a.constructor===bc?a.privateDoNotAccessOrElseSafeStyleWrappedValue_:"type_error:SafeStyle"},ac={},dba=new bc("",ac),cc=function(a){var b="",c;
for(c in a)if(Object.prototype.hasOwnProperty.call(a,c)){if(!/^[-_a-zA-Z0-9]+$/.test(c))throw Error("Name allows only [-_a-zA-Z0-9], got: "+c);var d=a[c];null!=d&&(d=Array.isArray(d)?eb(d,eba).join(" "):eba(d),b+=c+":"+d+";")}return b?new bc(b,ac):dba},eba=function(a){if(a instanceof Tb)return"url(\""+Ub(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+"\")";
a=a instanceof Ab?Bb(a):fba(String(a));if(/[{;}]/.test(a))throw new $a("Value does not allow [{;}], got: %s.",[a]);return a},fba=function(a){var b=a.replace(gba,"$1").replace(gba,"$1").replace(hba,"url");
if(iba.test(b)){if(jba.test(a))return"zClosurez";for(var c=b=!0,d=0;d<a.length;d++){var f=a.charAt(d);"'"==f&&c?b=!b:"\""==f&&b&&(c=!c)}if(!b||!c||!kba(a))return"zClosurez"}else return"zClosurez";return lba(a)},kba=function(a){for(var b=!0,c=/^[-_a-zA-Z0-9]$/,d=0;d<a.length;d++){var f=a.charAt(d);
if("]"==f){if(b)return!1;b=!0}else if("["==f){if(!b)return!1;b=!1}else if(!b&&!c.test(f))return!1}return b},iba=/^[-,."'%_!# a-zA-Z0-9\[\]]+$/,hba=/\b(url\([ \t\n]*)('[ -&(-\[\]-~]*'|"[ !#-\[\]-~]*"|[!#-&*-\[\]-~]*)([ \t\n]*\))/g,gba=/\b(calc|cubic-bezier|fit-content|hsl|hsla|linear-gradient|matrix|minmax|repeat|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?)\([-+*/0-9a-z.%\[\], ]+\)/g,jba=/\/\*/,lba=function(a){return a.replace(hba,function(b,c,d,f){var g="";
d=d.replace(/^(['"])(.*)\1$/,function(l,m,n){g=m;return n});
b=Zb(d).getTypedStringValue();return c+g+b+g+f})},mba=function(a){var b="",c=function(d){Array.isArray(d)?cb(d,c):b+=cba(d)};
cb(arguments,c);return b?new bc(b,ac):dba};var ec;a:{var nba=t.navigator;if(nba){var oba=nba.userAgent;if(oba){ec=oba;break a}}ec=""}var fc=function(a){return Pb(ec,a)};var gc=function(){return fc("Trident")||fc("MSIE")},hc=function(){return fc("Firefox")||fc("FxiOS")},jc=function(){return fc("Safari")&&!(ic()||fc("Coast")||fc("Opera")||fc("Edge")||fc("Edg/")||fc("OPR")||hc()||fc("Silk")||fc("Android"))},ic=function(){return(fc("Chrome")||fc("CriOS"))&&!fc("Edge")},pba=function(){return fc("Android")&&!(ic()||hc()||fc("Opera")||fc("Silk"))};var lc=function(a,b,c){this.privateDoNotAccessOrElseSafeHtmlWrappedValue_=c===kc?a:"";this.dir_=b};
lc.prototype.implementsGoogI18nBidiDirectionalString=!0;lc.prototype.getDirection=function(){return this.dir_};
lc.prototype.implementsGoogStringTypedString=!0;lc.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_.toString()};
var nc=function(a){return mc(a).toString()},mc=function(a){return a instanceof lc&&a.constructor===lc?a.privateDoNotAccessOrElseSafeHtmlWrappedValue_:"type_error:SafeHtml"},pc=function(a){if(a instanceof lc)return a;
var b="object"==typeof a,c=null;b&&a.implementsGoogI18nBidiDirectionalString&&(c=a.getDirection());a=b&&a.implementsGoogStringTypedString?a.getTypedStringValue():String(a);return oc(Yaa(a),c)},qba=function(a){var b=pc(qc),c=b.getDirection(),d=[],f=function(g){Array.isArray(g)?cb(g,f):(g=pc(g),d.push(nc(g)),g=g.getDirection(),0==c?c=g:0!=g&&c!=g&&(c=null))};
cb(a,f);return oc(d.join(nc(b)),c)},rba=function(a){return qba(Array.prototype.slice.call(arguments))},kc={},oc=function(a,b){var c=zb();
a=c?c.createHTML(a):a;return new lc(a,b,kc)},qc=new lc(t.trustedTypes&&t.trustedTypes.emptyHTML||"",0,kc),sba=oc("<br>",0);var tba=vb(function(){var a=document.createElement("div"),b=document.createElement("div");b.appendChild(document.createElement("div"));a.appendChild(b);b=a.firstChild.firstChild;a.innerHTML=mc(qc);return!b.parentElement}),rc=function(a,b){if(tba())for(;a.lastChild;)a.removeChild(a.lastChild);
a.innerHTML=mc(b)},sc=function(a,b){b=b instanceof Tb?b:$b(b);
a.action=Ub(b)},tc=function(a,b){b=b instanceof Tb?b:$b(b);
a.href=Ub(b)},uc=function(a,b){b=b instanceof Tb?b:$b(b,/^data:image\//i.test(b));
a.src=Ub(b)},vc=function(a,b){a.src=Gb(b)},wc=function(a,b){a.src=Ib(b);
uba(a)},uba=function(a){var b=Ha(a.ownerDocument&&a.ownerDocument.defaultView);
b&&a.setAttribute("nonce",b)},xc=function(a,b){b=b instanceof Tb?b:$b(b);
a.href=Ub(b)},yc=function(a,b,c,d){a=a instanceof Tb?a:$b(a);
b=b||t;c=c instanceof Ab?Bb(c):c||"";return void 0!==d?b.open(Ub(a),c,d,void 0):b.open(Ub(a),c)};var vba=function(a,b){for(var c=a.split("%s"),d="",f=Array.prototype.slice.call(arguments,1);f.length&&1<c.length;)d+=c.shift()+f.shift();return d+c.join("%s")},zc=function(a){return encodeURIComponent(String(a))},Ac=function(a){return decodeURIComponent(a.replace(/\+/g," "))},Bc=function(a){return a=Yaa(a,void 0)},xba=function(a){var b={"&":"&",
"<":"<",">":">",""":"\""};var c=t.document.createElement("div");return a.replace(wba,function(d,f){var g=b[d];if(g)return g;"#"==f.charAt(0)&&(f=Number("0"+f.substr(1)),isNaN(f)||(g=String.fromCharCode(f)));g||(g=oc(d+" ",null),rc(c,g),g=c.firstChild.nodeValue.slice(0,-1));return b[d]=g})},yba=function(a){return a.replace(/&([^;]+);/g,function(b,c){switch(c){case"amp":return"&";
case"lt":return"<";case"gt":return">";case"quot":return"\"";default:return"#"!=c.charAt(0)||(c=Number("0"+c.substr(1)),isNaN(c))?b:String.fromCharCode(c);}})},wba=/&([^;\s<&]+);?/g,Cc={"\0":"\\0",
"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B","\"":"\\\"","\\":"\\\\","<":"\\u003C"},Dc={"'":"\\'"},Aba=function(a){a=String(a);for(var b=["\""],c=0;c<a.length;c++){var d=a.charAt(c),f=d.charCodeAt(0);b[c+1]=Cc[d]||(31<f&&127>f?d:zba(d))}b.push("\"");return b.join("")},zba=function(a){if(a in Dc)return Dc[a];
if(a in Cc)return Dc[a]=Cc[a];var b=a.charCodeAt(0);if(31<b&&127>b)var c=a;else{if(256>b){if(c="\\x",16>b||256<b)c+="0"}else c="\\u",4096>b&&(c+="0");c+=b.toString(16).toUpperCase()}return Dc[a]=c},Bba=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Ec=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)},Fc=function(a,b){a=String(a);
var c=a.indexOf(".");-1==c&&(c=a.length);return Ec("0",Math.max(0,b-c))+a},Gc=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Va()).toString(36)},Cba=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;
return b},Hc=2147483648*Math.random()|0,Jc=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})},Kc=function(a){return String(a).replace(/([A-Z])/g,"-$1").toLowerCase()},Dba=function(a){return a.replace(/(^|[\s]+)([a-z])/g,function(b,c,d){return c+d.toUpperCase()})},Eba=function(a){isFinite(a)&&(a=String(a));
return"string"===typeof a?/^\s*-?0x/i.test(a)?parseInt(a,16):parseInt(a,10):NaN},Fba=function(a){var b=1;
a=a.split(":");for(var c=[];0<b&&a.length;)c.push(a.shift()),b--;a.length&&c.push(a.join(":"));return c};/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
window.JSCompiler_renameProperty=function(a){return a};var Gba=/(url\()([^)]*)(\))/g,Hba=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Lc,Mc;
function Nc(a,b){if(a&&Hba.test(a)||"//"===a)return a;if(void 0===Lc){Lc=!1;try{var c=new URL("b","http://a");c.pathname="c%20d";Lc="http://a/c%20d"===c.href}catch(d){}}b||(b=document.baseURI||window.location.href);if(Lc)try{return new URL(a,b).href}catch(d){return a}Mc||(Mc=document.implementation.createHTMLDocument("temp"),Mc.base=Mc.createElement("base"),Mc.head.appendChild(Mc.base),Mc.anchor=Mc.createElement("a"),Mc.body.appendChild(Mc.anchor));Mc.base.href=b;Mc.anchor.href=a;return Mc.anchor.href||
a}
function Oc(a,b){return a.replace(Gba,function(c,d,f,g){return d+"'"+Nc(f.replace(/["']/g,""),b)+"'"+g})}
function Pc(a){return a.substring(0,a.lastIndexOf("/")+1)}
;var Qc=!window.ShadyDOM||!window.ShadyDOM.inUse,Iba=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),Jba=!window.customElements.polyfillWrapFlushCallback,Rc;if(Rc=Qc&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var Sc=new CSSStyleSheet;Sc.replaceSync("");var Tc=document.createElement("div");Tc.attachShadow({mode:"open"});Tc.shadowRoot.adoptedStyleSheets=[Sc];Rc=Tc.shadowRoot.adoptedStyleSheets[0]===Sc}catch(a){Rc=!1}
var Kba=Rc,Uc=window.Polymer&&window.Polymer.rootPath||Pc(document.baseURI||window.location.href),Vc=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,Wc=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,Xc=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Yc=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Zc=window.Polymer&&window.Polymer.legacyOptimizations||!1,$c=window.Polymer&&window.Polymer.legacyWarnings||!1,ad=window.Polymer&&window.Polymer.syncInitialRender||
!1,bd=window.Polymer&&window.Polymer.legacyUndefined||!1,cd=window.Polymer&&window.Polymer.orderedComputed||!1,dd=window.Polymer&&window.Polymer.removeNestedTemplates||!1,ed=window.Polymer&&window.Polymer.fastDomIf||!1,fd=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,gd=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,Lba=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
/*

 Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 This code may only be used under the BSD style license found at
 http://polymer.github.io/LICENSE.txt
 The complete set of authors may be found at
 http://polymer.github.io/AUTHORS.txt
 The complete set of contributors may be found at
 http://polymer.github.io/CONTRIBUTORS.txt
 Code distributed by Google as part of the polymer project is also
 subject to an additional IP rights grant found at
 http://polymer.github.io/PATENTS.txt
*/
function Mba(a,b,c){if(Object.hasOwnProperty.call(Nba,a)&&(a=Nba[a],Object.hasOwnProperty.call(a,b)&&(a=a[b],a instanceof Array))){for(var d=null,f=!1,g=0,l=a.length;g<l;++g){var m=a[g],n=m.contingentAttribute;if(!n)return m.contract;null===d&&(d={});n=Object.hasOwnProperty.call(d,n)?d[n]:d[n]=c(n);if(n===m.requiredValue)return m.contract;null==n&&(f=!0)}if(f)return null}b=Oba[b];return"number"===typeof b?b:null}
var Oba={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,
"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,bgcolor:1,border:1,checked:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,dir:8,disabled:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,id:10,ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loop:1,max:1,maxlength:1,min:1,minlength:1,multiple:1,muted:1,name:10,placeholder:1,preload:1,
rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,span:1,spellcheck:1,src:4,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,valign:1,value:1,width:1,wrap:1},Nba={a:{download:[{contract:1}],href:[{contract:3}]},area:{href:[{contract:3}]},audio:{src:[{contract:3}]},blockquote:{cite:[{contract:3}]},button:{formaction:[{contract:3}],formmethod:[{contract:1}],type:[{contract:1}]},command:{type:[{contract:1}]},del:{cite:[{contract:3}]},details:{open:[{contract:1}]},
form:{action:[{contract:3}],method:[{contract:1}]},iframe:{loading:[{contract:8}],srcdoc:[{contract:2}]},img:{loading:[{contract:8}],src:[{contract:3}],srcset:[{contract:11}]},input:{accept:[{contract:1}],formaction:[{contract:3}],formmethod:[{contract:1}],pattern:[{contract:1}],readonly:[{contract:1}],src:[{contract:3}],type:[{contract:1}]},ins:{cite:[{contract:3}]},li:{type:[{contract:1}]},link:{href:[{contract:3,contingentAttribute:"rel",requiredValue:"alternate"},{contract:3,contingentAttribute:"rel",
requiredValue:"author"},{contract:3,contingentAttribute:"rel",requiredValue:"bookmark"},{contract:3,contingentAttribute:"rel",requiredValue:"canonical"},{contract:3,contingentAttribute:"rel",requiredValue:"cite"},{contract:3,contingentAttribute:"rel",requiredValue:"help"},{contract:3,contingentAttribute:"rel",requiredValue:"icon"},{contract:3,contingentAttribute:"rel",requiredValue:"license"},{contract:3,contingentAttribute:"rel",requiredValue:"next"},{contract:3,contingentAttribute:"rel",requiredValue:"prefetch"},
{contract:3,contingentAttribute:"rel",requiredValue:"dns-prefetch"},{contract:3,contingentAttribute:"rel",requiredValue:"prerender"},{contract:3,contingentAttribute:"rel",requiredValue:"preconnect"},{contract:3,contingentAttribute:"rel",requiredValue:"preload"},{contract:3,contingentAttribute:"rel",requiredValue:"prev"},{contract:3,contingentAttribute:"rel",requiredValue:"search"},{contract:3,contingentAttribute:"rel",requiredValue:"subresource"}],media:[{contract:1}],nonce:[{contract:1}],type:[{contract:1}]},
menuitem:{icon:[{contract:3}]},ol:{type:[{contract:1}]},q:{cite:[{contract:3}]},script:{defer:[{contract:1}],nonce:[{contract:1}],type:[{contract:1}]},source:{media:[{contract:1}],src:[{contract:3}],srcset:[{contract:11}]},style:{media:[{contract:1}],nonce:[{contract:1}]},table:{cellpadding:[{contract:1}],cellspacing:[{contract:1}]},textarea:{readonly:[{contract:1}]},time:{datetime:[{contract:1}]},video:{autoplay:[{contract:1}],controls:[{contract:1}],poster:[{contract:3}],src:[{contract:3}]}},hd=
{a:1,abbr:1,address:1,applet:4,area:5,article:1,aside:1,audio:1,b:1,base:4,bdi:1,bdo:1,blockquote:1,body:1,br:5,button:1,canvas:1,caption:1,center:1,cite:1,code:1,col:5,colgroup:1,command:1,data:1,datalist:1,dd:1,del:1,details:1,dfn:1,dialog:1,div:1,dl:1,dt:1,em:1,embed:4,fieldset:1,figcaption:1,figure:1,font:1,footer:1,form:1,frame:1,frameset:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,head:1,header:1,hr:5,html:1,i:1,iframe:1,img:5,input:5,ins:1,kbd:1,keygen:5,label:1,legend:1,li:1,link:5,main:1,map:1,mark:1,
math:4,menu:1,menuitem:1,meta:4,meter:1,nav:1,noscript:1,object:4,ol:1,optgroup:1,option:1,output:1,p:1,param:5,picture:1,pre:1,progress:1,q:1,rb:1,rp:1,rt:1,rtc:1,ruby:1,s:1,samp:1,script:3,section:1,select:1,slot:1,small:1,source:5,span:1,strong:1,style:2,sub:1,summary:1,sup:1,svg:4,table:1,tbody:1,td:1,template:4,textarea:6,tfoot:1,th:1,thead:1,time:1,title:6,tr:1,track:5,u:1,ul:1,"var":1,video:1,wbr:5},Pba=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{_self:!0,_blank:!0},{eager:!0,lazy:!0}],Qba={"*":{async:1,
dir:0,target:2},iframe:{loading:3},img:{loading:3}};function Rba(a){var b=Sba;b||(b=id(),b=Sba=A.transpose(b));b=b[a];return"string"===typeof b?b:Kc(a)}
function Tba(a){a=String(a).toLowerCase();var b=id()[a];return"string"===typeof b?b:Jc(a)}
function Uba(a){a=a.toLowerCase();a=id()[a];return"string"===typeof a?a:null}
function id(){if(!jd){for(var a=Object.assign({},Vba),b=k(Wba),c=b.next();!c.done;c=b.next())c=c.value,a[c.toLowerCase()]=c;jd=a}return jd}
var Wba="aLink accessKey allowFullscreen bgColor cellPadding cellSpacing codeBase codeType contentEditable crossOrigin dateTime dirName formAction formEnctype formMethod formNoValidate formTarget frameBorder innerHTML innerText inputMode isMap longDesc marginHeight marginWidth maxLength mediaGroup minLength noHref noResize noShade noValidate noWrap nodeValue outerHTML outerText readOnly tabIndex textContent trueSpeed useMap vAlign vLink valueAsDate valueAsNumber valueType".split(" "),Vba={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},jd=null,Sba=null;/*

 Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 This code may only be used under the BSD style license found at
 http://polymer.github.io/LICENSE.txt
 The complete set of authors may be found at
 http://polymer.github.io/AUTHORS.txt
 The complete set of contributors may be found at
 http://polymer.github.io/CONTRIBUTORS.txt
 Code distributed by Google as part of the polymer project is also
 subject to an additional IP rights grant found at
 http://polymer.github.io/PATENTS.txt

*/
var Xba={},Yba=/^(?!(?:annotation-xml|color-profile|font-face|font-face(?:-(?:src|uri|format|name))?|missing-glyph)$)[a-z][a-z.0-9_\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u200c\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\udfff\uf900-\ufdcf\ufdf0-\ufffd]*-[\-a-z.0-9_\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u200c\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\udfff\uf900-\ufdcf\ufdf0-\ufffd]*$/;
function kd(a,b){var c=window.customElements;return c&&c.get(a)||!0===Xba[a]?2:"HTMLUnknownElement"===b.name?1:"HTMLElement"===b.name&&Yba.test(a)?3:0}
;/*

 Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
 This code may only be used under the BSD style license found at
 http://polymer.github.io/LICENSE.txt
 The complete set of authors may be found at
 http://polymer.github.io/AUTHORS.txt
 The complete set of contributors may be found at
 http://polymer.github.io/CONTRIBUTORS.txt
 Code distributed by Google as part of the polymer project is also
 subject to an additional IP rights grant found at
 http://polymer.github.io/PATENTS.txt
*/
function Zba(a,b){var c,d;switch(b){case"innerHTML":return 1===$ba(a)?2:null;case"textContent":return a=$ba(a),1===a||6===a?1:null;default:return null!==(d=null===(c=aca[a.localName])||void 0===c?void 0:c[b])&&void 0!==d?d:null;}}
function $ba(a){var b=a.localName;a=kd(b,a.constructor);switch(a){case 0:case 1:return Object.hasOwnProperty.call(hd,b)?hd[b]:null;case 3:case 2:return 1;default:Ya(a,"got an unknown element classification");}}
var aca={audio:{currentTime:1},video:{currentTime:1}};/*

 Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
 This code may only be used under the BSD style license found at
 http://polymer.github.io/LICENSE.txt
 The complete set of authors may be found at
 http://polymer.github.io/AUTHORS.txt
 The complete set of contributors may be found at
 http://polymer.github.io/CONTRIBUTORS.txt
 Code distributed by Google as part of the polymer project is also
 subject to an additional IP rights grant found at
 http://polymer.github.io/PATENTS.txt
*/
function bca(a){return a&&a.implementsGoogStringTypedString?a.getTypedStringValue():a}
var cca={CONSTANT:{typeToUnwrap:Ab,unwrap:Bb},JAVASCRIPT:{typeToUnwrap:Db,unwrap:function(a){return Eb(a).toString()}},
HTML:{typeToUnwrap:lc,unwrap:nc},RESOURCE_URL:{typeToUnwrap:Fb,unwrap:Gb},STRING:{typeToUnwrap:Object,unwrap:bca},STYLE:{typeToUnwrap:bc,unwrap:cba},URL:{typeToUnwrap:Tb,unwrap:Ub}};function ld(a,b){return b}
var dca={CONSTANT:ld,JAVASCRIPT:ld,HTML:function(a){return Bc(a)},
RESOURCE_URL:ld,STRING:String,STYLE:ld,URL:function(a,b){a=Zb(a).getTypedStringValue();return"about:invalid#zClosurez"===a?b:a}};var eca=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,fca=/[\t\n\f\r ]+/,md=/[\t\n\f\r ,]+/g;function gca(a){return(a=a.split(fca,2))?{url:a[0],metadata:a[1]}:null}
function hca(a){var b=String(a.url).replace(md,encodeURIComponent);if(a=a.metadata){md.lastIndex=0;if(md.test(a))return null;b+=" "+a}return b}
var ica=function(a,b,c){return c},nd={};
function jca(a){function b(r){var v=r.localName;if(!r.getAttribute("is")&&2===kd(v,r.constructor))return n;(r=m[v])||(r=m[v]=document.createElement(v));return r}
var c=a.reportHandler||void 0,d=a.safeTypesBridge||ica,f=/^$/;if(a=a.allowedIdentifierPrefixes){a=k(a);for(var g=a.next();!g.done;g=a.next())f=new RegExp(f.source+"|^"+Bba(g.value))}c&&c(!1,"initResin",null);var l=kca(f,d,c),m={},n=document.createElement("polyresinuncustomized");return function(r,v,z){var C=r.nodeType;if(C!==Node.ELEMENT_NODE){if(C===Node.TEXT_NODE){C=r.parentElement;v=!C;if(C&&C.nodeType===Node.ELEMENT_NODE)switch(z=C.localName,C=kd(z,C.constructor),C){case 0:case 1:v=Object.hasOwnProperty.call(hd,
z)?hd[z]:null;v=1===v||6===v;break;case 3:case 2:v=!0;break;default:Ya(C,"got an unknown element classification");}if(v)return function(qa){return""+d(qa,"STRING",qa)}}return function(qa){if(!qa&&qa!==document.all)return qa;
c&&c(!0,"Failed to sanitize "+(r.parentElement&&r.parentElement.nodeName)+" #text node to value "+qa,r.parentElement);return"zClosurez"}}var J=r.localName;
C=b(r);var E=null;switch(z){case"attribute":if(Tba(v)in C)break;return function(qa){return qa};
case"property":if(v in C){E=Zba(C,v);break}var S=Uba(v);if(S&&S in C)break;return function(qa){return qa};
default:Ya(z,"got an unknown resin type, expected either 'property' or 'attribute'");}var la="attribute"===z?v.toLowerCase():Rba(v);E||(E=Mba(J,la,function(qa){var Ia=r.getAttribute(qa);return!Ia||/[\[\{]/.test(qa)?null:Ia}));
return function(qa){var Ia=nd,yb=null;if(!qa&&qa!==document.all)return qa;if(null!=E){var ma=l[E],sa=ma.safeType;yb=ma.safeReplacement;sa&&(Ia=d(qa,sa,nd));Ia===nd&&(ma.filterString?(Ia=String(d(qa,"STRING",qa)),Ia=ma.filterString(J,la,Ia)):ma.filterRaw&&(Ia=ma.filterRaw(J,la,qa,r)),Ia===yb&&(Ia=nd))}Ia===nd&&(Ia=yb||"zClosurez",c&&(qa=void 0!==qa.getTypedStringValue?qa.getTypedStringValue():qa,c(!0,"Failed to sanitize attribute of <"+J+">: <"+J+" "+la+"=\""+qa+"\">",r)));return Ia}}}
function kca(a,b,c){return[,{filterRaw:void 0,filterString:function(d,f,g){return g},
safeReplacement:void 0,safeType:void 0},{filterRaw:void 0,filterString:void 0,safeReplacement:void 0,safeType:"HTML"},{filterRaw:void 0,filterString:void 0,safeReplacement:"about:invalid#zClosurez",safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:"about:invalid#zClosurez",safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:"zClosurez",safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:" /*zClosurez*/ ",safeType:"JAVASCRIPT"},{filterRaw:void 0,
filterString:function(d,f,g){g=String(g).toLowerCase();a:{var l=null;(d=Qba[d])&&(l=d[f]);if("number"!==typeof l&&((d=Qba["*"])&&(l=d[f]),"number"!==typeof l)){f=!1;break a}f=!0===Pba[l][String(g).toLowerCase()]}return f?g:"zClosurez"},
safeReplacement:"zClosurez",safeType:void 0},{filterRaw:void 0,filterString:void 0,safeReplacement:"zClosurez",safeType:"CONSTANT"},{filterRaw:void 0,filterString:function(d,f,g){return a.test(g)?g:"zClosurez"},
safeReplacement:"zClosurez",safeType:"CONSTANT"},{filterRaw:function(d,f,g,l){if("string"===typeof g)var m=(m=g.match(eca))?m.map(gca).filter(Boolean):[];else if(Array.isArray(g))m=g;else return"about:invalid#zClosurez";var n=m;m=[];var r=[],v={};if(Array.isArray(n))for(var z=0,C=n.length;z<C;++z){var J=n[z],E=J&&J.url;if(E){var S=b(E,"URL",v);if(S){var la=S!==v;(la?m:r).push({url:la?S:E,metadata:J.metadata})}}}else r.push(n);n=r.length?JSON.stringify(r):null;r=nd;if(m.length){if(!Array.isArray(m))throw Error();
r=m.map(hca).filter(Boolean).join(" , ")||nd}n&&c&&c(!0,"Failed to sanitize attribute value of <"+d+">: <"+d+" "+f+"=\""+g+"\">: "+n,l);return r===nd?"about:invalid#zClosurez":r},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]}
function lca(a){var b=jca(a);return function(c,d,f,g){return g||g===document.all?b(c,d,f)(g):g}}
;var od=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{};Fa("yt.config_",od,void 0);function pd(a){var b=arguments;1<b.length?od[b[0]]=b[1]:1===b.length&&Object.assign(od,b[0])}
function B(a,b){return a in od?od[a]:b}
function qd(a,b){return!!B(a,b)}
;var mca={},nca=[];function oca(a){nca.forEach(function(b){return b(a)})}
function rd(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){sd(b),oca(b)}}:a}
function sd(a){var b=Ja("yt.logging.errors.log");b?b(a,"ERROR",void 0,void 0,void 0):(b=B("ERRORS",[]),b.push([a,"ERROR",void 0,void 0,void 0]),pd("ERRORS",b))}
function td(a,b){var c=Ja("yt.logging.errors.log");c?c(a,"WARNING",b,void 0,void 0):(c=B("ERRORS",[]),c.push([a,"WARNING",b,void 0,void 0]),pd("ERRORS",c))}
;var pca=function(a){var b=lca(a);return function(c,d,f,g){return g?b(g,d,f,c):"zClosurez"}}({reportHandler:function(a,b){if(a)try{throw Error(b);
}catch(c){sd(c)}},
safeTypesBridge:function(a,b,c){var d=cca[b];return a instanceof d.typeToUnwrap&&(d=d.unwrap(a,c),d!==c)?d:(0,dca[b])(String(bca(a)),c)},
allowedIdentifierPrefixes:[""]});if(void 0!==Vc)throw Error("Attempted to install Polymer Resin on top of an existing policy.");Vc=pca;if(Vc!==pca)throw Error("Cannot install sanitizeDOMValue.  Is Polymer frozen?");var ud=function(a){this.url_=a=a.url;var b=/[?&]dsh=1(&|$)/.test(a);this.isSonicV2OrV3_=!b&&/[?&]ae=1(&|$)/.test(a);this.isSonicV4_=!b&&/[?&]ae=2(&|$)/.test(a);if((this.adurlMatches_=/[?&]adurl=([^&]*)/.exec(a))&&this.adurlMatches_[1]){try{var c=decodeURIComponent(this.adurlMatches_[1])}catch(d){c=null}this.adurl_=c}};
ud.prototype.getUrlForAsyncTracking=function(){return vd(this,"&act=1&ri=1")};
ud.prototype.getUrlForXhrTracking=function(){return vd(this,"&act=1&ri=5")};
ud.prototype.getUrlForNavigation=function(a){return this.isSonicV2OrV3_&&this.adurl_||this.isSonicV4_?1==a?this.isSonicV2OrV3_?this.adurl_:vd(this,"&dct=1"):2==a?vd(this,"&ri=2"):vd(this,"&ri=16"):this.url_};
var vd=function(a,b){return a.adurlMatches_?a.url_.slice(0,a.adurlMatches_.index)+b+a.url_.slice(a.adurlMatches_.index):a.url_+b};var wd=function(a,b,c,d,f,g,l){var m="";a&&(m+=a+":");c&&(m+="//",b&&(m+=b+"@"),m+=c,d&&(m+=":"+d));f&&(m+=f);g&&(m+="?"+g);l&&(m+="#"+l);return m},qca=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,xd=function(a){return a.match(qca)},rca=function(a){return a?decodeURI(a):a},yd=function(a){return rca(xd(a)[3]||null)},zd=function(a){return rca(xd(a)[5]||null)},Ad=function(a){a=xd(a);
return wd(a[1],a[2],a[3],a[4])},Bd=function(a){a=xd(a);
return wd(null,null,null,null,a[5],a[6],a[7])},Cd=function(a){var b=a.indexOf("#");
return 0>b?a:a.substr(0,b)},Dd=function(a,b){a=xd(a);
b=xd(b);return a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]},Ed=function(a,b){if(a){a=a.split("&");
for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),f=null;if(0<=d){var g=a[c].substring(0,d);f=a[c].substring(d+1)}else g=a[c];b(g,f?Ac(f):"")}}},sca=function(a){var b=a.indexOf("#");
0>b&&(b=a.length);var c=a.indexOf("?");if(0>c||c>b){c=b;var d=""}else d=a.substring(c+1,b);return[a.substr(0,c),d,a.substr(b)]},tca=function(a,b){return b?a?a+"&"+b:b:a},Fd=function(a,b){if(!b)return a;
a=sca(a);a[1]=tca(a[1],b);return a[0]+(a[1]?"?"+a[1]:"")+a[2]},Gd=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)Gd(a,String(b[d]),c);else
null!=b&&c.push(a+(""===b?"":"="+zc(b)))},uca=function(a,b){var c=[];
for(b=b||0;b<a.length;b+=2)Gd(a[b],a[b+1],c);return c.join("&")},Hd=function(a){var b=[],c;
for(c in a)Gd(c,a[c],b);return b.join("&")},vca=function(a,b){var c=2==arguments.length?uca(arguments[1],0):uca(arguments,1);
return Fd(a,c)},Id=function(a,b){b=Hd(b);
return Fd(a,b)},Jd=function(a,b,c){c=null!=c?"="+zc(c):"";
return Fd(a,b+c)},wca=function(a,b,c,d){for(var f=c.length;0<=(b=a.indexOf(c,b))&&b<d;){var g=a.charCodeAt(b-1);
if(38==g||63==g)if(g=a.charCodeAt(b+f),!g||61==g||38==g||35==g)return b;b+=f+1}return-1},xca=/#|$/,Kd=function(a,b){var c=a.search(xca),d=wca(a,0,b,c);
if(0>d)return null;var f=a.indexOf("&",d);if(0>f||f>c)f=c;d+=b.length+1;return Ac(a.substr(d,f-d))},yca=/[?&]($|#)/,Ld=function(a,b){for(var c=a.search(xca),d=0,f,g=[];0<=(f=wca(a,d,b,c));)g.push(a.substring(d,f)),d=Math.min(a.indexOf("&",f)+1||c,c);
g.push(a.substr(d));return g.join("").replace(yca,"$1")},Md=function(a,b,c){return Jd(Ld(a,b),b,c)},Nd=function(a){var b=sca(window.location.href),c=b[1],d=[];
c&&c.split("&").forEach(function(f){var g=f.indexOf("=");a.hasOwnProperty(0<=g?f.substr(0,g):f)||d.push(f)});
b[1]=tca(d.join("&"),Hd(a));return b[0]+(b[1]?"?"+b[1]:"")+b[2]},zca=function(a,b){Mb(a,"/")&&(a=a.substr(0,a.length-1));
Lb(b,"/")&&(b=b.substr(1));return""+a+"/"+b};function Aca(a){switch(a){case 5:case 3:case 13:case 4:case 17:case 18:case 8:case 14:return 0;case 1:case 6:case 16:return 1;case 9:case 11:case 12:return 2;case 2:case 7:case 15:return 5;default:return-1;}}
;var Bca=function(a){if(8192>=a.length)return String.fromCharCode.apply(null,a);for(var b="",c=0;c<a.length;c+=8192)b+=String.fromCharCode.apply(null,rb(a,c,c+8192));return b},Od=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var f=a.charCodeAt(d);
128>f?b[c++]=f:(2048>f?b[c++]=f>>6|192:(55296==(f&64512)&&d+1<a.length&&56320==(a.charCodeAt(d+1)&64512)?(f=65536+((f&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=f>>18|240,b[c++]=f>>12&63|128):b[c++]=f>>12|224,b[c++]=f>>6&63|128),b[c++]=f&63|128)}return b},Cca=function(a){for(var b=[],c=0,d=0;c<a.length;){var f=a[c++];
if(128>f)b[d++]=String.fromCharCode(f);else if(191<f&&224>f){var g=a[c++];b[d++]=String.fromCharCode((f&31)<<6|g&63)}else if(239<f&&365>f){g=a[c++];var l=a[c++],m=a[c++];f=((f&7)<<18|(g&63)<<12|(l&63)<<6|m&63)-65536;b[d++]=String.fromCharCode(55296+(f>>10));b[d++]=String.fromCharCode(56320+(f&1023))}else g=a[c++],l=a[c++],b[d++]=String.fromCharCode((f&15)<<12|(g&63)<<6|l&63)}return b.join("")};var Pd=0,Qd=0;function Dca(a){var b=a>>>0;a=Math.floor((a-b)/4294967296)>>>0;Pd=b;Qd=a}
function Rd(a){var b=0>a;a=Math.abs(a);var c=a>>>0;a=Math.floor((a-c)/4294967296);a>>>=0;b&&(a=~a>>>0,c=(~c>>>0)+1,4294967295<c&&(c=0,a++,4294967295<a&&(a=0)));Pd=c;Qd=a}
function Sd(a){var b=0>a;a=2*Math.abs(a);Dca(a);a=Pd;var c=Qd;b&&(0==a?0==c?c=a=4294967295:(c--,a=4294967295):a--);Pd=a;Qd=c}
function Eca(a){var b=a.charCodeAt(4),c=a.charCodeAt(5),d=a.charCodeAt(6),f=a.charCodeAt(7);Pd=a.charCodeAt(0)+(a.charCodeAt(1)<<8)+(a.charCodeAt(2)<<16)+(a.charCodeAt(3)<<24)>>>0;Qd=b+(c<<8)+(d<<16)+(f<<24)>>>0}
function Td(a,b){return 4294967296*b+(a>>>0)}
function Ud(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,0==a&&(b=b+1>>>0));a=Td(a,b);return c?-a:a}
function Fca(a,b,c){var d=b>>31;c(a<<1^d,(b<<1|a>>>31)^d)}
function Gca(a,b){return Vd(a,b,Ud)}
function Vd(a,b,c){var d=-(a&1);return c((a>>>1|b<<31)^d,b>>>1^d)}
function Wd(a,b){function c(f,g){f=f?String(f):"";return g?"0000000".slice(f.length)+f:f}
if(2097151>=b)return""+(4294967296*b+a);var d=(a>>>24|b<<8)>>>0&16777215;b=b>>16&65535;a=(a&16777215)+6777216*d+6710656*b;d+=8147497*b;b*=2;1E7<=a&&(d+=Math.floor(a/1E7),a%=1E7);1E7<=d&&(b+=Math.floor(d/1E7),d%=1E7);return c(b,0)+c(d,b)+c(a,1)}
function Xd(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b+(0==a?1:0)>>>0);a=Wd(a,b);return c?"-"+a:a}
function Hca(a){function b(l,m){for(var n=0;8>n&&(1!==l||0<m);n++)m=l*f[n]+m,f[n]=m&255,m>>>=8}
function c(){for(var l=0;8>l;l++)f[l]=~f[l]&255}
var d=!1;"-"===a[0]&&(d=!0,a=a.slice(1));for(var f=[0,0,0,0,0,0,0,0],g=0;g<a.length;g++)b(10,a.charCodeAt(g)-48);d&&(c(),b(1,1));return Bca(f)}
function Ica(a){return a.constructor===Uint8Array?a:a.constructor===ArrayBuffer?new Uint8Array(a):a.constructor===Array?new Uint8Array(a):a.constructor===String?Yd(a):new Uint8Array(0)}
;var Zd=function(a,b,c){this.bytes_=null;this.cursor_=this.end_=this.start_=0;this.error_=!1;a&&this.setBlock(a,b,c)},ae=function(a,b,c){if($d.length){var d=$d.pop();
a&&d.setBlock(a,b,c);return d}return new Zd(a,b,c)};
e=Zd.prototype;e.free=function(){this.clear();100>$d.length&&$d.push(this)};
e.clone=function(){return ae(this.bytes_,this.start_,this.end_-this.start_)};
e.clear=function(){this.bytes_=null;this.cursor_=this.end_=this.start_=0;this.error_=!1};
e.getBuffer=function(){return this.bytes_};
e.setBlock=function(a,b,c){this.bytes_=Ica(a);this.start_=void 0!==b?b:0;this.end_=void 0!==c?this.start_+c:this.bytes_.length;this.cursor_=this.start_};
e.setEnd=function(a){this.end_=a};
e.reset=function(){this.cursor_=this.start_};
e.getCursor=function(){return this.cursor_};
e.advance=function(a){this.cursor_+=a};
e.atEnd=function(){return this.cursor_==this.end_};
e.pastEnd=function(){return this.cursor_>this.end_};
e.getError=function(){return this.error_||0>this.cursor_||this.cursor_>this.end_};
e.readSplitVarint64=function(a){for(var b=128,c=0,d=0,f=0;4>f&&128<=b;f++)b=this.bytes_[this.cursor_++],c|=(b&127)<<7*f;128<=b&&(b=this.bytes_[this.cursor_++],c|=(b&127)<<28,d|=(b&127)>>4);if(128<=b)for(f=0;5>f&&128<=b;f++)b=this.bytes_[this.cursor_++],d|=(b&127)<<7*f+3;if(128>b)return a(c>>>0,d>>>0);this.error_=!0};
e.readSplitZigzagVarint64=function(a){return this.readSplitVarint64(function(b,c){return Vd(b,c,a)})};
e.readSplitFixed64=function(a){var b=this.bytes_,c=this.cursor_;this.cursor_+=8;for(var d=0,f=0,g=c+7;g>=c;g--)d=d<<8|b[g],f=f<<8|b[g+4];return a(d,f)};
var Jca=function(a,b){for(;128<b;)a.cursor_--,b>>>=7;a.cursor_--};
e=Zd.prototype;
e.readUnsignedVarint32=function(){var a=this.bytes_;var b=a[this.cursor_+0];var c=b&127;if(128>b)return this.cursor_+=1,c;b=a[this.cursor_+1];c|=(b&127)<<7;if(128>b)return this.cursor_+=2,c;b=a[this.cursor_+2];c|=(b&127)<<14;if(128>b)return this.cursor_+=3,c;b=a[this.cursor_+3];c|=(b&127)<<21;if(128>b)return this.cursor_+=4,c;b=a[this.cursor_+4];c|=(b&15)<<28;if(128>b)return this.cursor_+=5,c>>>0;this.cursor_+=5;128<=a[this.cursor_++]&&128<=a[this.cursor_++]&&128<=a[this.cursor_++]&&128<=a[this.cursor_++]&&
this.cursor_++;return c};
e.readSignedVarint32=function(){return this.readUnsignedVarint32()};
e.readUnsignedVarint32String=function(){return this.readUnsignedVarint32().toString()};
e.readSignedVarint32String=function(){return this.readSignedVarint32().toString()};
e.readZigzagVarint32=function(){var a=this.readUnsignedVarint32();return a>>>1^-(a&1)};
e.readUnsignedVarint64=function(){return this.readSplitVarint64(Td)};
e.readUnsignedVarint64String=function(){return this.readSplitVarint64(Wd)};
e.readSignedVarint64=function(){return this.readSplitVarint64(Ud)};
e.readSignedVarint64String=function(){return this.readSplitVarint64(Xd)};
e.readZigzagVarint64=function(){return this.readSplitVarint64(Gca)};
e.readZigzagVarint64String=function(){return this.readSplitZigzagVarint64(Xd)};
e.readUint8=function(){var a=this.bytes_[this.cursor_+0];this.cursor_+=1;return a};
e.readUint16=function(){var a=this.bytes_[this.cursor_+0],b=this.bytes_[this.cursor_+1];this.cursor_+=2;return a<<0|b<<8};
e.readUint32=function(){var a=this.bytes_[this.cursor_+0],b=this.bytes_[this.cursor_+1],c=this.bytes_[this.cursor_+2],d=this.bytes_[this.cursor_+3];this.cursor_+=4;return(a<<0|b<<8|c<<16|d<<24)>>>0};
e.readUint64=function(){var a=this.readUint32(),b=this.readUint32();return Td(a,b)};
e.readUint64String=function(){var a=this.readUint32(),b=this.readUint32();return Wd(a,b)};
e.readInt8=function(){var a=this.bytes_[this.cursor_+0];this.cursor_+=1;return a<<24>>24};
e.readInt16=function(){var a=this.bytes_[this.cursor_+0],b=this.bytes_[this.cursor_+1];this.cursor_+=2;return(a<<0|b<<8)<<16>>16};
e.readInt32=function(){var a=this.bytes_[this.cursor_+0],b=this.bytes_[this.cursor_+1],c=this.bytes_[this.cursor_+2],d=this.bytes_[this.cursor_+3];this.cursor_+=4;return a<<0|b<<8|c<<16|d<<24};
e.readInt64=function(){var a=this.readUint32(),b=this.readUint32();return Ud(a,b)};
e.readInt64String=function(){var a=this.readUint32(),b=this.readUint32();return Xd(a,b)};
e.readFloat=function(){var a=this.readUint32(),b=2*(a>>31)+1,c=a>>>23&255;a&=8388607;return 255==c?a?NaN:Infinity*b:0==c?b*Math.pow(2,-149)*a:b*Math.pow(2,c-150)*(a+Math.pow(2,23))};
e.readDouble=function(){var a=this.readUint32(),b=this.readUint32(),c=2*(b>>31)+1,d=b>>>20&2047;a=4294967296*(b&1048575)+a;return 2047==d?a?NaN:Infinity*c:0==d?c*Math.pow(2,-1074)*a:c*Math.pow(2,d-1075)*(a+4503599627370496)};
e.readBool=function(){return!!this.bytes_[this.cursor_++]};
e.readEnum=function(){return this.readSignedVarint32()};
e.readString=function(a){var b=this.bytes_,c=this.cursor_;a=c+a;for(var d=[],f="";c<a;){var g=b[c++];if(128>g)d.push(g);else if(192>g)continue;else if(224>g){var l=b[c++];d.push((g&31)<<6|l&63)}else if(240>g){l=b[c++];var m=b[c++];d.push((g&15)<<12|(l&63)<<6|m&63)}else if(248>g){l=b[c++];m=b[c++];var n=b[c++];g=(g&7)<<18|(l&63)<<12|(m&63)<<6|n&63;g-=65536;d.push((g>>10&1023)+55296,(g&1023)+56320)}8192<=d.length&&(f+=String.fromCharCode.apply(null,d),d.length=0)}f+=Bca(d);this.cursor_=c;return f};
e.readStringWithLength=function(){var a=this.readUnsignedVarint32();return this.readString(a)};
e.readBytes=function(a){if(0>a||this.cursor_+a>this.bytes_.length)return this.error_=!0,new Uint8Array(0);var b=this.bytes_.subarray(this.cursor_,this.cursor_+a);this.cursor_+=a;return b};
var $d=[];var be=function(a){this.decoder_=ae(a,void 0,void 0);this.fieldCursor_=this.decoder_.getCursor();this.nextWireType_=this.nextField_=-1;this.error_=!1;this.readCallbacks_=null};
e=be.prototype;e.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;this.error_=!1;this.readCallbacks_=null;100>Kca.length&&Kca.push(this)};
e.getFieldCursor=function(){return this.fieldCursor_};
e.getCursor=function(){return this.decoder_.getCursor()};
e.getBuffer=function(){return this.decoder_.getBuffer()};
e.isDelimited=function(){return 2==this.nextWireType_};
e.getError=function(){return this.error_||this.decoder_.getError()};
e.setBlock=function(a,b,c){this.decoder_.setBlock(a,b,c);this.nextWireType_=this.nextField_=-1};
e.reset=function(){this.decoder_.reset();this.nextWireType_=this.nextField_=-1};
e.advance=function(a){this.decoder_.advance(a)};
var ce=function(a){if(a.decoder_.atEnd()||a.getError())return!1;a.fieldCursor_=a.decoder_.getCursor();var b=a.decoder_.readUnsignedVarint32(),c=b&7;if(0!=c&&5!=c&&1!=c&&2!=c&&3!=c&&4!=c)return a.error_=!0,!1;a.nextField_=b>>>3;a.nextWireType_=c;return!0};
be.prototype.skipMatchingFields=function(){var a=this.nextField_;for(Jca(this.decoder_,this.nextField_<<3|this.nextWireType_);ce(this)&&this.nextField_==a;)de(this);this.decoder_.atEnd()||Jca(this.decoder_,this.nextField_<<3|this.nextWireType_)};
var de=function(a){switch(a.nextWireType_){case 0:if(0!=a.nextWireType_)de(a);else{for(a=a.decoder_;a.bytes_[a.cursor_]&128;)a.cursor_++;a.cursor_++}break;case 1:1!=a.nextWireType_?de(a):a.decoder_.advance(8);break;case 2:if(2!=a.nextWireType_)de(a);else{var b=a.decoder_.readUnsignedVarint32();a.decoder_.advance(b)}break;case 5:5!=a.nextWireType_?de(a):a.decoder_.advance(4);break;case 3:b=a.nextField_;do{if(!ce(a)){a.error_=!0;break}if(4==a.nextWireType_){a.nextField_!=b&&(a.error_=!0);break}de(a)}while(1);
break;default:a.error_=!0;}};
e=be.prototype;e.registerReadCallback=function(a,b){null===this.readCallbacks_&&(this.readCallbacks_={});this.readCallbacks_[a]=b};
e.runReadCallback=function(a){return(0,this.readCallbacks_[a])(this)};
e.readAny=function(a){this.nextWireType_=Aca(a);switch(a){case 1:return this.readDouble();case 2:return this.readFloat();case 3:return this.readInt64();case 4:return this.readUint64();case 5:return this.readInt32();case 6:return this.decoder_.readUint64();case 7:return this.decoder_.readUint32();case 8:return this.readBool();case 9:return this.readString();case 10:case 11:case 12:return this.readBytes();case 13:return this.readUint32();case 14:return this.readEnum();case 15:return this.decoder_.readInt32();
case 16:return this.decoder_.readInt64();case 17:return this.decoder_.readZigzagVarint32();case 18:return this.decoder_.readZigzagVarint64();}return 0};
e.readMessage=function(a,b){var c=this.decoder_.end_,d=this.decoder_.readUnsignedVarint32();d=this.decoder_.getCursor()+d;this.decoder_.setEnd(d);b(a,this);this.decoder_.cursor_=d;this.decoder_.setEnd(c)};
e.readGroup=function(a,b,c){c(b,this);this.error_||4==this.nextWireType_||(this.error_=!0)};
e.getFieldDecoder=function(){var a=this.decoder_.readUnsignedVarint32(),b=this.decoder_.getCursor(),c=b+a;a=ae(this.decoder_.getBuffer(),b,a);this.decoder_.cursor_=c;return a};
e.readInt32=function(){return this.decoder_.readSignedVarint32()};
e.readInt32String=function(){return this.decoder_.readSignedVarint32String()};
e.readInt64=function(){return this.decoder_.readSignedVarint64()};
e.readInt64String=function(){return this.decoder_.readSignedVarint64String()};
e.readUint32=function(){return this.decoder_.readUnsignedVarint32()};
e.readUint32String=function(){return this.decoder_.readUnsignedVarint32String()};
e.readUint64=function(){return this.decoder_.readUnsignedVarint64()};
e.readUint64String=function(){return this.decoder_.readUnsignedVarint64String()};
e.readSint64String=function(){return this.decoder_.readZigzagVarint64String()};
e.readFixed64String=function(){return this.decoder_.readUint64String()};
e.readSfixed32String=function(){return this.decoder_.readInt32().toString()};
e.readSfixed64String=function(){return this.decoder_.readInt64String()};
e.readFloat=function(){return this.decoder_.readFloat()};
e.readDouble=function(){return this.decoder_.readDouble()};
e.readBool=function(){return!!this.decoder_.readUnsignedVarint32()};
e.readEnum=function(){return this.decoder_.readSignedVarint64()};
e.readString=function(){var a=this.decoder_.readUnsignedVarint32();return this.decoder_.readString(a)};
e.readBytes=function(){var a=this.decoder_.readUnsignedVarint32();return this.decoder_.readBytes(a)};
e.readSplitVarint64=function(a){return this.decoder_.readSplitVarint64(a)};
e.readSplitZigzagVarint64=function(a){return this.decoder_.readSplitVarint64(function(b,c){return Vd(b,c,a)})};
e.readSplitFixed64=function(a){return this.decoder_.readSplitFixed64(a)};
var ee=function(a,b){var c=a.decoder_.readUnsignedVarint32();c=a.decoder_.getCursor()+c;for(var d=[];a.decoder_.getCursor()<c;)d.push(b.call(a.decoder_));return d};
e=be.prototype;e.readPackedInt32=function(){return ee(this,this.decoder_.readSignedVarint32)};
e.readPackedInt32String=function(){return ee(this,this.decoder_.readSignedVarint32String)};
e.readPackedInt64=function(){return ee(this,this.decoder_.readSignedVarint64)};
e.readPackedInt64String=function(){return ee(this,this.decoder_.readSignedVarint64String)};
e.readPackedUint32=function(){return ee(this,this.decoder_.readUnsignedVarint32)};
e.readPackedUint32String=function(){return ee(this,this.decoder_.readUnsignedVarint32String)};
e.readPackedUint64=function(){return ee(this,this.decoder_.readUnsignedVarint64)};
e.readPackedUint64String=function(){return ee(this,this.decoder_.readUnsignedVarint64String)};
e.readPackedSint32=function(){return ee(this,this.decoder_.readZigzagVarint32)};
e.readPackedSint64=function(){return ee(this,this.decoder_.readZigzagVarint64)};
e.readPackedSint64String=function(){return ee(this,this.decoder_.readZigzagVarint64String)};
e.readPackedFixed32=function(){return ee(this,this.decoder_.readUint32)};
e.readPackedFixed64=function(){return ee(this,this.decoder_.readUint64)};
e.readPackedFixed64String=function(){return ee(this,this.decoder_.readUint64String)};
e.readPackedSfixed32=function(){return ee(this,this.decoder_.readInt32)};
e.readPackedSfixed64=function(){return ee(this,this.decoder_.readInt64)};
e.readPackedSfixed64String=function(){return ee(this,this.decoder_.readInt64String)};
e.readPackedFloat=function(){return ee(this,this.decoder_.readFloat)};
e.readPackedDouble=function(){return ee(this,this.decoder_.readDouble)};
e.readPackedBool=function(){return ee(this,this.decoder_.readBool)};
e.readPackedEnum=function(){return ee(this,this.decoder_.readEnum)};
var Kca=[];var fe=function(a,b){this.lo=a;this.hi=b};
fe.prototype.cmp=function(a){return this.hi<a.hi||this.hi==a.hi&&this.lo<a.lo?-1:this.hi==a.hi&&this.lo==a.lo?0:1};
var Lca=function(a){return new fe((a.lo>>>1|(a.hi&1)<<31)>>>0,a.hi>>>1>>>0)},Mca=function(a){return new fe(a.lo<<1>>>0,(a.hi<<1|a.lo>>>31)>>>0)};
fe.prototype.lsb=function(){return!!(this.lo&1)};
fe.prototype.add=function(a){return new fe((this.lo+a.lo&4294967295)>>>0>>>0,((this.hi+a.hi&4294967295)>>>0)+(4294967296<=this.lo+a.lo?1:0)>>>0)};
fe.prototype.sub=function(a){return new fe((this.lo-a.lo&4294967295)>>>0>>>0,((this.hi-a.hi&4294967295)>>>0)-(0>this.lo-a.lo?1:0)>>>0)};
var Nca=function(a){var b=a&65535,c=a>>>16;a=10*b+65536*(0*b&65535)+65536*(10*c&65535);for(b=0*c+(0*b>>>16)+(10*c>>>16);4294967296<=a;)a-=4294967296,b+=1;return new fe(a>>>0,b>>>0)};
fe.prototype.div=function(a){if(0==a)return[];for(var b=new fe(0,0),c=new fe(this.lo,this.hi),d=new fe(a,0),f=new fe(1,0);!(d.hi&2147483648);)d=Mca(d),f=Mca(f);for(;0!=f.lo||0!=f.hi;)0>=d.cmp(c)&&(b=b.add(f),c=c.sub(d)),d=Lca(d),f=Lca(f);return[b,c]};
fe.prototype.toString=function(){for(var a="",b=this;0!=b.lo||0!=b.hi;){b=b.div(10);var c=b[0];a=b[1].lo+a;b=c}""==a&&(a="0");return a};
var ge=function(a){for(var b=new fe(0,0),c=new fe(0,0),d=0;d<a.length;d++){if("0">a[d]||"9"<a[d])return null;c.lo=parseInt(a[d],10);var f=Nca(b.lo);b=Nca(b.hi);b.hi=b.lo;b.lo=0;b=f.add(b).add(c)}return b};
fe.prototype.clone=function(){return new fe(this.lo,this.hi)};
var he=function(a,b){this.lo=a;this.hi=b};
he.prototype.add=function(a){return new he((this.lo+a.lo&4294967295)>>>0>>>0,((this.hi+a.hi&4294967295)>>>0)+(4294967296<=this.lo+a.lo?1:0)>>>0)};
he.prototype.sub=function(a){return new he((this.lo-a.lo&4294967295)>>>0>>>0,((this.hi-a.hi&4294967295)>>>0)-(0>this.lo-a.lo?1:0)>>>0)};
he.prototype.clone=function(){return new he(this.lo,this.hi)};
he.prototype.toString=function(){var a=0!=(this.hi&2147483648),b=new fe(this.lo,this.hi);a&&(b=new fe(0,0).sub(b));return(a?"-":"")+b.toString()};
var ie=function(a){var b=0<a.length&&"-"==a[0];b&&(a=a.substring(1));a=ge(a);if(null===a)return null;b&&(a=new fe(0,0).sub(a));return new he(a.lo,a.hi)};var je=function(){this.buffer_=[]};
e=je.prototype;e.length=function(){return this.buffer_.length};
e.end=function(){var a=this.buffer_;this.buffer_=[];return a};
e.writeSplitVarint64=function(a,b){for(;0<b||127<a;)this.buffer_.push(a&127|128),a=(a>>>7|b<<25)>>>0,b>>>=7;this.buffer_.push(a)};
e.writeSplitFixed64=function(a,b){this.writeUint32(a);this.writeUint32(b)};
e.writeSplitZigzagVarint64=function(a,b){var c=this;Fca(a,b,function(d,f){c.writeSplitVarint64(d>>>0,f>>>0)})};
var ke=function(a,b){for(;127<b;)a.buffer_.push(b&127|128),b>>>=7;a.buffer_.push(b)},le=function(a,b){if(0<=b)ke(a,b);else
{for(var c=0;9>c;c++)a.buffer_.push(b&127|128),b>>=7;a.buffer_.push(1)}},me=function(a,b){ke(a,(b<<1^b>>31)>>>0)},ne=function(a,b){Eca(Hca(b));
Fca(Pd,Qd,function(c,d){a.writeSplitVarint64(c>>>0,d>>>0)})};
e=je.prototype;e.writeUint8=function(a){this.buffer_.push(a>>>0&255)};
e.writeUint16=function(a){this.buffer_.push(a>>>0&255);this.buffer_.push(a>>>8&255)};
e.writeUint32=function(a){this.buffer_.push(a>>>0&255);this.buffer_.push(a>>>8&255);this.buffer_.push(a>>>16&255);this.buffer_.push(a>>>24&255)};
e.writeUint64=function(a){Dca(a);this.writeUint32(Pd);this.writeUint32(Qd)};
e.writeInt8=function(a){this.buffer_.push(a>>>0&255)};
e.writeInt16=function(a){this.buffer_.push(a>>>0&255);this.buffer_.push(a>>>8&255)};
e.writeInt32=function(a){this.buffer_.push(a>>>0&255);this.buffer_.push(a>>>8&255);this.buffer_.push(a>>>16&255);this.buffer_.push(a>>>24&255)};
e.writeInt64=function(a){Rd(a);this.writeSplitFixed64(Pd,Qd)};
e.writeInt64String=function(a){Eca(Hca(a));this.writeSplitFixed64(Pd,Qd)};
e.writeFloat=function(a){var b=a;b=(a=0>b?1:0)?-b:b;if(0===b)0<1/b?Pd=Qd=0:(Qd=0,Pd=2147483648);else if(isNaN(b))Qd=0,Pd=2147483647;else if(3.4028234663852886E38<b)Qd=0,Pd=(a<<31|2139095040)>>>0;else if(1.1754943508222875e-38>b)b=Math.round(b/Math.pow(2,-149)),Qd=0,Pd=(a<<31|b)>>>0;else{var c=Math.floor(Math.log(b)/Math.LN2);b*=Math.pow(2,-c);b=Math.round(8388608*b)&8388607;Qd=0;Pd=(a<<31|c+127<<23|b)>>>0}this.writeUint32(Pd)};
e.writeDouble=function(a){var b=a;b=(a=0>b?1:0)?-b:b;if(0===b)Qd=0<1/b?0:2147483648,Pd=0;else if(isNaN(b))Qd=2147483647,Pd=4294967295;else if(1.7976931348623157E308<b)Qd=(a<<31|2146435072)>>>0,Pd=0;else if(2.2250738585072014e-308>b)b/=Math.pow(2,-1074),Qd=(a<<31|b/4294967296)>>>0,Pd=b>>>0;else{var c=b,d=0;if(2<=c)for(;2<=c&&1023>d;)d++,c/=2;else for(;1>c&&-1022<d;)c*=2,d--;b*=Math.pow(2,-d);Qd=(a<<31|d+1023<<20|1048576*b&1048575)>>>0;Pd=4503599627370496*b>>>0}this.writeUint32(Pd);this.writeUint32(Qd)};
e.writeBool=function(a){this.buffer_.push(a?1:0)};
e.writeEnum=function(a){le(this,a)};
e.writeBytes=function(a){this.buffer_.push.apply(this.buffer_,a)};
e.writeString=function(a){for(var b=this.buffer_.length,c=0;c<a.length;c++){var d=a.charCodeAt(c);if(128>d)this.buffer_.push(d);else if(2048>d)this.buffer_.push(d>>6|192),this.buffer_.push(d&63|128);else if(65536>d)if(55296<=d&&56319>=d&&c+1<a.length){var f=a.charCodeAt(c+1);56320<=f&&57343>=f&&(d=1024*(d-55296)+f-56320+65536,this.buffer_.push(d>>18|240),this.buffer_.push(d>>12&63|128),this.buffer_.push(d>>6&63|128),this.buffer_.push(d&63|128),c++)}else this.buffer_.push(d>>12|224),this.buffer_.push(d>>
6&63|128),this.buffer_.push(d&63|128)}return this.buffer_.length-b};var oe=function(){return fc("iPhone")&&!fc("iPod")&&!fc("iPad")},pe=function(){return oe()||fc("iPad")||fc("iPod")};var qe=function(a){qe[" "](a);return a};
qe[" "]=Ka;var re=function(a,b){try{return qe(a[b]),!0}catch(c){}return!1},Oca=function(a,b,c,d){d=d?d(b):b;
return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};var se=fc("Opera"),te=gc(),ue=fc("Edge"),ve=ue||te,we=fc("Gecko")&&!(Qb(ec,"WebKit")&&!fc("Edge"))&&!(fc("Trident")||fc("MSIE"))&&!fc("Edge"),ye=Qb(ec,"WebKit")&&!fc("Edge"),Pca=ye&&fc("Mobile"),ze=fc("Macintosh"),Qca=fc("Windows"),Rca=fc("Linux")||fc("CrOS"),Sca=t.navigator||null;Sca&&Pb(Sca.appVersion||"","X11");var Tca=fc("Android"),Uca=oe(),Vca=fc("iPad"),Wca=fc("iPod"),Xca=pe();Qb(ec,"KaiOS");var Yca=function(){var a=t.document;return a?a.documentMode:void 0},Ae;
a:{var Be="",Ce=function(){var a=ec;if(we)return /rv:([^\);]+)(\)|;)/.exec(a);if(ue)return /Edge\/([\d\.]+)/.exec(a);if(te)return /\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(ye)return /WebKit\/(\S+)/.exec(a);if(se)return /(?:Version)[ \/]?(\S+)/.exec(a)}();
Ce&&(Be=Ce?Ce[1]:"");if(te){var De=Yca();if(null!=De&&De>parseFloat(Be)){Ae=String(De);break a}}Ae=Be}var Ee=Ae,Zca={},Fe=function(a){return Oca(Zca,a,function(){return 0<=Sb(Ee,a)})},Ge=function(a){return Number($ca)>=a},He;
if(t.document&&te){var ada=Yca();He=ada?ada:parseInt(Ee,10)||void 0}else He=void 0;var $ca=He;var Ie=hc(),bda=oe()||fc("iPod"),cda=fc("iPad"),dda=pba(),Je=ic(),Ke=jc()&&!pe();var eda={},Le=null,Me=function(a,b){void 0===b&&(b=0);fda();b=eda[b];for(var c=[],d=0;d<a.length;d+=3){var f=a[d],g=d+1<a.length,l=g?a[d+1]:0,m=d+2<a.length,n=m?a[d+2]:0,r=f>>2;f=(f&3)<<4|l>>4;l=(l&15)<<2|n>>6;n&=63;m||(n=64,g||(l=64));c.push(b[r],b[f],b[l]||"",b[n]||"")}return c.join("")},hda=function(a){var b=[];
gda(a,function(c){b.push(c)});
return b},Yd=function(a){var b=a.length,c=3*b/4;
c%3?c=Math.floor(c):Pb("=.",a[b-1])&&(c=Pb("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),f=0;gda(a,function(g){d[f++]=g});
return d.subarray(0,f)},gda=function(a,b){function c(n){for(;d<a.length;){var r=a.charAt(d++),v=Le[r];
if(null!=v)return v;if(!Nb(r))throw Error("Unknown base64 encoding at char: "+r)}return n}
fda();for(var d=0;;){var f=c(-1),g=c(0),l=c(64),m=c(64);if(64===m&&-1===f)break;b(f<<2|g>>4);64!=l&&(b(g<<4&240|l>>2),64!=m&&b(l<<6&192|m))}},fda=function(){if(!Le){Le={};
for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));eda[c]=d;for(var f=0;f<d.length;f++){var g=d[f];void 0===Le[g]&&(Le[g]=f)}}}};var D=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new je;this.bookmarks_=[]},ida=function(a,b){var c=a.encoder_.end();
a.blocks_.push(c);a.blocks_.push(b);a.totalLength_+=c.length+b.length},Oe=function(a,b){Ne(a,b,2);
b=a.encoder_.end();a.blocks_.push(b);a.totalLength_+=b.length;b.push(a.totalLength_);return b},Pe=function(a,b){var c=b.pop();
for(c=a.totalLength_+a.encoder_.length()-c;127<c;)b.push(c&127|128),c>>>=7,a.totalLength_++;b.push(c);a.totalLength_++};
D.prototype.maybeWriteSerializedMessage=function(a,b,c){null!=a&&null!=b&&null!=c&&ida(this,a.subarray(b,c))};
D.prototype.reset=function(){this.blocks_=[];this.encoder_.end();this.totalLength_=0;this.bookmarks_=[]};
var F=function(a){for(var b=new Uint8Array(a.totalLength_+a.encoder_.length()),c=a.blocks_,d=c.length,f=0,g=0;g<d;g++){var l=c[g];b.set(l,f);f+=l.length}c=a.encoder_.end();b.set(c,f);a.blocks_=[b];return b};
D.prototype.getResultBase64String=function(a){return Me(F(this),a)};
var Ne=function(a,b,c){ke(a.encoder_,8*b+c)};
D.prototype.writeAny=function(a,b,c){switch(a){case 1:this.writeDouble(b,c);break;case 2:this.writeFloat(b,c);break;case 3:this.writeInt64(b,c);break;case 4:this.writeUint64(b,c);break;case 5:this.writeInt32(b,c);break;case 6:Qe(this,b,c);break;case 7:null!=c&&(Ne(this,b,5),this.encoder_.writeUint32(c));break;case 8:this.writeBool(b,c);break;case 9:this.writeString(b,c);break;case 12:this.writeBytes(b,c);break;case 13:this.writeUint32(b,c);break;case 14:this.writeEnum(b,c);break;case 15:null!=c&&(
Ne(this,b,5),this.encoder_.writeInt32(c));break;case 16:null!=c&&(Ne(this,b,1),this.encoder_.writeInt64(c));break;case 17:null!=c&&null!=c&&(Ne(this,b,0),me(this.encoder_,c));break;case 18:null!=c&&null!=c&&(Ne(this,b,0),a=this.encoder_,Sd(c),a.writeSplitVarint64(Pd,Qd));}};
var Re=function(a,b,c){null!=c&&(Ne(a,b,0),ke(a.encoder_,c))},Se=function(a,b,c){null!=c&&(Ne(a,b,0),le(a.encoder_,c))};
e=D.prototype;e.writeInt32=function(a,b){null!=b&&Se(this,a,b)};
e.writeInt64=function(a,b){null!=b&&null!=b&&(Ne(this,a,0),a=this.encoder_,Rd(b),a.writeSplitVarint64(Pd,Qd))};
e.writeInt64String=function(a,b){null!=b&&(b=ie(b),Ne(this,a,0),this.encoder_.writeSplitVarint64(b.lo,b.hi))};
e.writeUint32=function(a,b){null!=b&&Re(this,a,b)};
e.writeUint64=function(a,b){null!=b&&null!=b&&(Ne(this,a,0),a=this.encoder_,Rd(b),a.writeSplitVarint64(Pd,Qd))};
var Te=function(a,b,c){null!=c&&(c=ge(c),Ne(a,b,0),a.encoder_.writeSplitVarint64(c.lo,c.hi))};
D.prototype.writeSint64String=function(a,b){null!=b&&null!=b&&(Ne(this,a,0),ne(this.encoder_,b))};
var Qe=function(a,b,c){null!=c&&(Ne(a,b,1),a.encoder_.writeUint64(c))},Ue=function(a,b,c){null!=c&&(c=ie(c),Ne(a,b,1),a.encoder_.writeSplitFixed64(c.lo,c.hi))};
e=D.prototype;e.writeFloat=function(a,b){null!=b&&(Ne(this,a,5),this.encoder_.writeFloat(b))};
e.writeDouble=function(a,b){null!=b&&(Ne(this,a,1),this.encoder_.writeDouble(b))};
e.writeBool=function(a,b){null!=b&&(Ne(this,a,0),this.encoder_.writeBool(b))};
e.writeEnum=function(a,b){null!=b&&(b=parseInt(b,10),Ne(this,a,0),le(this.encoder_,b))};
e.writeString=function(a,b){null!=b&&(a=Oe(this,a),this.encoder_.writeString(b),Pe(this,a))};
e.writeBytes=function(a,b){null!=b&&(b=Ica(b),Ne(this,a,2),ke(this.encoder_,b.length),ida(this,b))};
e.writeMessage=function(a,b,c){null!=b&&(a=Oe(this,a),c(b,this),Pe(this,a))};
e.writeMessageSet=function(a,b,c){null!=b&&(Ne(this,1,3),Ne(this,2,0),le(this.encoder_,a),a=Oe(this,3),c(b,this),Pe(this,a),Ne(this,1,4))};
e.writeGroup=function(a,b,c){null!=b&&(Ne(this,a,3),c(b,this),Ne(this,a,4))};
e.writeSplitFixed64=function(a,b,c){Ne(this,a,1);this.encoder_.writeSplitFixed64(b,c)};
e.writeSplitVarint64=function(a,b,c){Ne(this,a,0);this.encoder_.writeSplitVarint64(b,c)};
e.writeSplitZigzagVarint64=function(a,b,c){Ne(this,a,0);this.encoder_.writeSplitZigzagVarint64(b>>>0,c>>>0)};
e.writeRepeatedInt32=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)Se(this,a,b[c])};
e.writeRepeatedInt32String=function(a,b){if(null!=b)for(var c=0;c<b.length;c++){var d=a,f=b[c];null!=f&&Se(this,d,parseInt(f,10))}};
e.writeRepeatedInt64=function(a,b){if(null!=b)for(var c=0;c<b.length;c++){var d=b[c];if(null!=d){Ne(this,a,0);var f=this.encoder_;Rd(d);f.writeSplitVarint64(Pd,Qd)}}};
e.writeRepeatedSplitFixed64=function(a,b,c,d){if(null!=b)for(var f=0;f<b.length;f++)this.writeSplitFixed64(a,c(b[f]),d(b[f]))};
e.writeRepeatedSplitVarint64=function(a,b,c,d){if(null!=b)for(var f=0;f<b.length;f++)this.writeSplitVarint64(a,c(b[f]),d(b[f]))};
e.writeRepeatedSplitZigzagVarint64=function(a,b,c,d){if(null!=b)for(var f=0;f<b.length;f++)this.writeSplitZigzagVarint64(a,c(b[f]),d(b[f]))};
e.writeRepeatedInt64String=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.writeInt64String(a,b[c])};
e.writeRepeatedUint32=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)Re(this,a,b[c])};
e.writeRepeatedUint32String=function(a,b){if(null!=b)for(var c=0;c<b.length;c++){var d=a,f=b[c];null!=f&&Re(this,d,parseInt(f,10))}};
e.writeRepeatedUint64=function(a,b){if(null!=b)for(var c=0;c<b.length;c++){var d=b[c];if(null!=d){Ne(this,a,0);var f=this.encoder_;Rd(d);f.writeSplitVarint64(Pd,Qd)}}};
e.writeRepeatedUint64String=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)Te(this,a,b[c])};
e.writeRepeatedSint32=function(a,b){if(null!=b)for(var c=0;c<b.length;c++){var d=b[c];null!=d&&(Ne(this,a,0),me(this.encoder_,d))}};
e.writeRepeatedSint64=function(a,b){if(null!=b)for(var c=0;c<b.length;c++){var d=b[c];if(null!=d){Ne(this,a,0);var f=this.encoder_;Sd(d);f.writeSplitVarint64(Pd,Qd)}}};
e.writeRepeatedSint64String=function(a,b){if(null!=b)for(var c=0;c<b.length;c++){var d=b[c];null!=d&&(Ne(this,a,0),ne(this.encoder_,d))}};
e.writeRepeatedFixed32=function(a,b){if(null!=b)for(var c=0;c<b.length;c++){var d=b[c];null!=d&&(Ne(this,a,5),this.encoder_.writeUint32(d))}};
e.writeRepeatedFixed64String=function(a,b){if(null!=b)for(var c=0;c<b.length;c++){var d=a,f=b[c];null!=f&&(f=ge(f),Ne(this,d,1),this.encoder_.writeSplitFixed64(f.lo,f.hi))}};
e.writeRepeatedSfixed32=function(a,b){if(null!=b)for(var c=0;c<b.length;c++){var d=b[c];null!=d&&(Ne(this,a,5),this.encoder_.writeInt32(d))}};
e.writeRepeatedSfixed64=function(a,b){if(null!=b)for(var c=0;c<b.length;c++){var d=b[c];null!=d&&(Ne(this,a,1),this.encoder_.writeInt64(d))}};
e.writeRepeatedSfixed64String=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)Ue(this,a,b[c])};
e.writeRepeatedFloat=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.writeFloat(a,b[c])};
e.writeRepeatedDouble=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.writeDouble(a,b[c])};
e.writeRepeatedBool=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.writeBool(a,b[c])};
e.writeRepeatedEnum=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.writeEnum(a,b[c])};
var Ve=function(a,b,c){if(null!=c)for(var d=0;d<c.length;d++)a.writeString(b,c[d])};
D.prototype.writeRepeatedBytes=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.writeBytes(a,b[c])};
var We=function(a,b,c,d){if(null!=c)for(var f=0;f<c.length;f++){var g=Oe(a,b);d(c[f],a);Pe(a,g)}};
e=D.prototype;e.writeRepeatedGroup=function(a,b,c){if(null!=b)for(var d=0;d<b.length;d++)Ne(this,a,3),c(b[d],this),Ne(this,a,4)};
e.writePackedInt32=function(a,b){if(null!=b&&b.length){a=Oe(this,a);for(var c=0;c<b.length;c++)le(this.encoder_,b[c]);Pe(this,a)}};
e.writePackedInt32String=function(a,b){if(null!=b&&b.length){a=Oe(this,a);for(var c=0;c<b.length;c++)le(this.encoder_,parseInt(b[c],10));Pe(this,a)}};
e.writePackedInt64=function(a,b){if(null!=b&&b.length){a=Oe(this,a);for(var c=0;c<b.length;c++){var d=this.encoder_;Rd(b[c]);d.writeSplitVarint64(Pd,Qd)}Pe(this,a)}};
e.writePackedSplitFixed64=function(a,b,c,d){if(null!=b){a=Oe(this,a);for(var f=0;f<b.length;f++)this.encoder_.writeSplitFixed64(c(b[f]),d(b[f]));Pe(this,a)}};
e.writePackedSplitVarint64=function(a,b,c,d){if(null!=b){a=Oe(this,a);for(var f=0;f<b.length;f++)this.encoder_.writeSplitVarint64(c(b[f]),d(b[f]));Pe(this,a)}};
e.writePackedSplitZigzagVarint64=function(a,b,c,d){if(null!=b){a=Oe(this,a);for(var f=this.encoder_,g=0;g<b.length;g++)f.writeSplitZigzagVarint64(c(b[g]),d(b[g]));Pe(this,a)}};
e.writePackedInt64String=function(a,b){if(null!=b&&b.length){a=Oe(this,a);for(var c=0;c<b.length;c++){var d=ie(b[c]);this.encoder_.writeSplitVarint64(d.lo,d.hi)}Pe(this,a)}};
e.writePackedUint32=function(a,b){if(null!=b&&b.length){a=Oe(this,a);for(var c=0;c<b.length;c++)ke(this.encoder_,b[c]);Pe(this,a)}};
e.writePackedUint32String=function(a,b){if(null!=b&&b.length){a=Oe(this,a);for(var c=0;c<b.length;c++)ke(this.encoder_,parseInt(b[c],10));Pe(this,a)}};
e.writePackedUint64=function(a,b){if(null!=b&&b.length){a=Oe(this,a);for(var c=0;c<b.length;c++){var d=this.encoder_;Rd(b[c]);d.writeSplitVarint64(Pd,Qd)}Pe(this,a)}};
e.writePackedUint64String=function(a,b){if(null!=b&&b.length){a=Oe(this,a);for(var c=0;c<b.length;c++){var d=ge(b[c]);this.encoder_.writeSplitVarint64(d.lo,d.hi)}Pe(this,a)}};
e.writePackedSint32=function(a,b){if(null!=b&&b.length){a=Oe(this,a);for(var c=0;c<b.length;c++)me(this.encoder_,b[c]);Pe(this,a)}};
e.writePackedSint64=function(a,b){if(null!=b&&b.length){a=Oe(this,a);for(var c=0;c<b.length;c++){var d=this.encoder_;Sd(b[c]);d.writeSplitVarint64(Pd,Qd)}Pe(this,a)}};
e.writePackedSint64String=function(a,b){if(null!=b&&b.length){a=Oe(this,a);for(var c=0;c<b.length;c++)ne(this.encoder_,b[c]);Pe(this,a)}};
e.writePackedFixed32=function(a,b){if(null!=b&&b.length)for(Ne(this,a,2),ke(this.encoder_,4*b.length),a=0;a<b.length;a++)this.encoder_.writeUint32(b[a])};
e.writePackedFixed64=function(a,b){if(null!=b&&b.length)for(Ne(this,a,2),ke(this.encoder_,8*b.length),a=0;a<b.length;a++)this.encoder_.writeUint64(b[a])};
e.writePackedFixed64String=function(a,b){if(null!=b&&b.length)for(Ne(this,a,2),ke(this.encoder_,8*b.length),a=0;a<b.length;a++){var c=ge(b[a]);this.encoder_.writeSplitFixed64(c.lo,c.hi)}};
e.writePackedSfixed32=function(a,b){if(null!=b&&b.length)for(Ne(this,a,2),ke(this.encoder_,4*b.length),a=0;a<b.length;a++)this.encoder_.writeInt32(b[a])};
e.writePackedSfixed64=function(a,b){if(null!=b&&b.length)for(Ne(this,a,2),ke(this.encoder_,8*b.length),a=0;a<b.length;a++)this.encoder_.writeInt64(b[a])};
e.writePackedSfixed64String=function(a,b){if(null!=b&&b.length)for(Ne(this,a,2),ke(this.encoder_,8*b.length),a=0;a<b.length;a++)this.encoder_.writeInt64String(b[a])};
e.writePackedFloat=function(a,b){if(null!=b&&b.length)for(Ne(this,a,2),ke(this.encoder_,4*b.length),a=0;a<b.length;a++)this.encoder_.writeFloat(b[a])};
e.writePackedDouble=function(a,b){if(null!=b&&b.length)for(Ne(this,a,2),ke(this.encoder_,8*b.length),a=0;a<b.length;a++)this.encoder_.writeDouble(b[a])};
e.writePackedBool=function(a,b){if(null!=b&&b.length)for(Ne(this,a,2),ke(this.encoder_,b.length),a=0;a<b.length;a++)this.encoder_.writeBool(b[a])};
var Xe=function(a,b,c){if(null!=c&&c.length){b=Oe(a,b);for(var d=0;d<c.length;d++)a.encoder_.writeEnum(c[d]);Pe(a,b)}};var Ze=function(a,b){this.arr_=a;this.valueCtor=b;this.map={};this.arrClean=!0;this.markMessageFrozenFn_=null;if(0<this.arr_.length){for(a=0;a<this.arr_.length;a++){b=this.arr_[a];var c=b[0];this.map[c.toString()]=new Ye(c,b[1])}this.arrClean=!0}};
Ze.prototype.isFrozen=function(){return!1};
Ze.prototype.checkNotFrozen_=function(){};
Ze.prototype.toArray=function(){return jda(this)};
Ze.prototype.toArrayInternal=function(){return jda(this)};
var jda=function(a){if(a.arrClean){if(a.valueCtor){var b=a.map,c;for(c in b)if(Object.prototype.hasOwnProperty.call(b,c)){var d=b[c].valueWrapper;d&&d.toArray()}}}else{a.arr_.length=0;b=$e(a);b.sort();for(c=0;c<b.length;c++){var f=a.map[b[c]];(d=f.valueWrapper)&&d.toArray();a.arr_.push([f.key,f.value])}a.arrClean=!0}return a.arr_};
e=Ze.prototype;e.toObject=function(a,b){for(var c=this.toArrayInternal(),d=[],f=0;f<c.length;f++){var g=this.map[c[f][0].toString()];af(this,g);var l=g.valueWrapper;l?d.push([g.key,b(a,l)]):d.push([g.key,g.value])}return d};
e.getLength=function(){return $e(this).length};
e.clear=function(){this.map={};this.arrClean=!1};
e.del=function(a){a=a.toString();var b=this.map.hasOwnProperty(a);delete this.map[a];this.arrClean=!1;return b};
e.getEntryList=function(){var a=[],b=$e(this);b.sort();for(var c=0;c<b.length;c++){var d=this.map[b[c]];a.push([d.key,d.value])}return a};
e.entries=function(){var a=[],b=$e(this);b.sort();for(var c=0;c<b.length;c++){var d=this.map[b[c]];a.push([d.key,af(this,d)])}return new cf(a)};
e.keys=function(){var a=[],b=$e(this);b.sort();for(var c=0;c<b.length;c++)a.push(this.map[b[c]].key);return new cf(a)};
e.values=function(){var a=[],b=$e(this);b.sort();for(var c=0;c<b.length;c++)a.push(af(this,this.map[b[c]]));return new cf(a)};
e.forEach=function(a,b){var c=$e(this);c.sort();for(var d=0;d<c.length;d++){var f=this.map[c[d]];a.call(b,af(this,f),f.key,this)}};
e.set=function(a,b){var c=new Ye(a);this.valueCtor?(c.valueWrapper=b,c.value=b.toArrayInternal()):c.value=b;this.map[a.toString()]=c;this.arrClean=!1;return this};
e.setRawData=function(a,b){this.map[a.toString()]=new Ye(a,b);this.arrClean=!1};
var af=function(a,b){return a.valueCtor?(b.valueWrapper||(b.valueWrapper=new a.valueCtor(b.value),a.isFrozen()&&a.markMessageFrozenFn_(b.valueWrapper)),b.valueWrapper):b.value};
Ze.prototype.get=function(a){if(a=this.map[a.toString()])return af(this,a)};
Ze.prototype.has=function(a){return a.toString()in this.map};
Ze.prototype.serializeBinary=function(a,b,c,d,f){var g=$e(this);g.sort();for(var l=0;l<g.length;l++){var m=this.map[g[l]];b.bookmarks_.push(Oe(b,a));c.call(b,1,m.key);this.valueCtor?d.call(b,2,af(this,m),f):d.call(b,2,m.value);Pe(b,b.bookmarks_.pop())}};
var $e=function(a){a=a.map;var b=[],c;for(c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.push(c);return b},Ye=function(a,b){this.key=a;
this.value=b;this.valueWrapper=void 0},cf=function(a){this.idx_=0;
this.arr_=a};
cf.prototype.next=function(){return this.idx_<this.arr_.length?{done:!1,value:this.arr_[this.idx_++]}:{done:!0,value:void 0}};
"undefined"!=typeof Symbol&&"undefined"!=typeof Symbol.iterator&&(cf.prototype[Symbol.iterator]=function(){return this});var G=function(){},df="function"==typeof Uint8Array;
G.prototype.getJsPbMessageId=function(){return this.messageId_};
var hf=function(a,b,c,d,f,g){a.wrappers_=null;b||(b=c?[c]:[]);a.messageId_=c?String(c):void 0;a.arrayIndexOffset_=0===c?-1:0;a.array=b;a:{c=a.array.length;b=-1;if(c&&(b=c-1,c=a.array[b],!(null===c||"object"!=typeof c||Array.isArray(c)||df&&c instanceof Uint8Array))){a.pivot_=b-a.arrayIndexOffset_;a.extensionObject_=c;break a}-1<d?(a.pivot_=Math.max(d,b+1-a.arrayIndexOffset_),a.extensionObject_=null):a.pivot_=Number.MAX_VALUE}a.convertedPrimitiveFields_={};if(f)for(d=0;d<f.length;d++)b=f[d],b<a.pivot_?(
b+=a.arrayIndexOffset_,a.array[b]=a.array[b]||ef):(ff(a),a.extensionObject_[b]=a.extensionObject_[b]||ef);if(g&&g.length)for(d=0;d<g.length;d++)gf(a,g[d])},ef=[],ff=function(a){var b=a.pivot_+a.arrayIndexOffset_;
a.array[b]||(a.extensionObject_=a.array[b]={})},jf=function(a,b,c){for(var d=[],f=0;f<a.length;f++)d[f]=b.call(a[f],c,a[f]);
return d},kda=function(a,b){var c=kf,d=lf.prototype.getExtension,f;
for(f in c){var g=c[f],l=g.fieldInfo;if(!g.binaryWriterFn)throw Error("Message extension present that was generated without binary serialization support");var m=d.call(a,l);if(null!=m)if(l.ctor){if(g.binaryMessageSerializeFn)g.binaryWriterFn.call(b,l.fieldIndex,m,g.binaryMessageSerializeFn);else throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");}else g.binaryWriterFn.call(b,l.fieldIndex,m)}},I=function(a,b){if(b<
a.pivot_){b+=a.arrayIndexOffset_;
var c=a.array[b];return c!==ef?c:a.array[b]=[]}if(a.extensionObject_)return c=a.extensionObject_[b],c===ef?a.extensionObject_[b]=[]:c},K=function(a,b){return null!=I(a,b)},mf=function(a,b){a=I(a,b);
return null==a?a:+a},nf=function(a,b){a=I(a,b);
return null==a?a:!!a},of=function(a){return null==a||"string"===typeof a?a:df&&a instanceof Uint8Array?Me(a):null},pf=function(a){return null==a||a instanceof Uint8Array?a:"string"===typeof a?Yd(a):null},qf=function(a,b,c){a=I(a,b);
return null==a?c:a},rf=function(a,b){return qf(a,b,0)},L=function(a,b){return qf(a,b,"")},sf=function(a,b){var c=void 0===c?!1:c;
a=nf(a,b);return null==a?c:a},tf=function(a,b){var c=void 0===c?0:c;
a=mf(a,b);return null==a?c:a},vf=function(a,b,c,d){a.wrappers_||(a.wrappers_={});
if(b in a.wrappers_)return a.wrappers_[b];var f=I(a,b);if(!f){if(c)return;f=[];uf(a,b,f)}c=new Ze(f,d);return a.wrappers_[b]=c},uf=function(a,b,c){b<a.pivot_?a.array[b+a.arrayIndexOffset_]=c:(ff(a),a.extensionObject_[b]=c);
return a},wf=function(a,b){return uf(a,b,void 0)},xf=function(a,b){return uf(a,b,[])},zf=function(a,b){return yf(a,b,void 0)},Bf=function(a,b){return Af(a,b,[])},Df=function(a,b,c){return Cf(a,b,c,void 0)},Ff=function(a,b,c){return Ef(a,b,c,void 0)},Hf=function(a,b,c){return Gf(a,b,c,0)},If=function(a,b,c){return Gf(a,b,c,!1)},Jf=function(a,b,c){return Gf(a,b,c,"")},Kf=function(a,b,c){return Gf(a,b,c,0)},Gf=function(a,b,c,d){c!==d?uf(a,b,c):b<a.pivot_?a.array[b+a.arrayIndexOffset_]=null:(ff(a),delete a.extensionObject_[b]);
return a},Lf=function(a,b,c,d){b=I(a,b);
void 0!=d?b.splice(d,0,c):b.push(c);return a},Cf=function(a,b,c,d){(c=gf(a,c))&&c!==b&&void 0!==d&&(a.wrappers_&&c in a.wrappers_&&(a.wrappers_[c]=void 0),uf(a,c,void 0));
return uf(a,b,d)},gf=function(a,b){for(var c,d,f=0;f<b.length;f++){var g=b[f],l=I(a,g);
null!=l&&(c=g,d=l,uf(a,g,void 0))}return c?(uf(a,c,d),c):0},M=function(a,b,c){a.wrappers_||(a.wrappers_={});
if(!a.wrappers_[c]){var d=I(a,c);d&&(a.wrappers_[c]=new b(d))}return a.wrappers_[c]},Mf=function(a,b,c){a.wrappers_||(a.wrappers_={});
if(!a.wrappers_[c]){for(var d=I(a,c),f=[],g=0;g<d.length;g++)f[g]=new b(d[g]);a.wrappers_[c]=f}b=a.wrappers_[c];b==ef&&(b=a.wrappers_[c]=[]);return b},yf=function(a,b,c){a.wrappers_||(a.wrappers_={});
var d=c?c.toArray():c;a.wrappers_[b]=c;return uf(a,b,d)},Ef=function(a,b,c,d){a.wrappers_||(a.wrappers_={});
var f=d?d.toArray():d;a.wrappers_[b]=d;return Cf(a,b,c,f)},Af=function(a,b,c){a.wrappers_||(a.wrappers_={});
c=c||[];for(var d=[],f=0;f<c.length;f++)d[f]=c[f].toArray();a.wrappers_[b]=c;return uf(a,b,d)},Nf=function(a,b,c,d,f){var g=Mf(a,d,b);
c=c?c:new d;a=I(a,b);void 0!=f?(g.splice(f,0,c),a.splice(f,0,c.toArray())):(g.push(c),a.push(c.toArray()));return c},lda=function(a){if(a.wrappers_)for(var b in a.wrappers_){var c=a.wrappers_[b];
if(Array.isArray(c))for(var d=0;d<c.length;d++)c[d]&&c[d].toArray();else c&&c.toArray()}};
G.prototype.toArray=function(){lda(this);return this.array};
G.prototype.toArrayInternal=function(){lda(this);return this.array};
G.prototype.serialize=df?function(){var a=Uint8Array.prototype.toJSON;Uint8Array.prototype.toJSON=function(){return Me(this)};
try{return JSON.stringify(this.array&&this.toArray(),mda)}finally{Uint8Array.prototype.toJSON=a}}:function(){return JSON.stringify(this.array&&this.toArray(),mda)};
var mda=function(a,b){return"number"!==typeof b||!isNaN(b)&&Infinity!==b&&-Infinity!==b?b:String(b)},Of=function(a,b){return new a(b?JSON.parse(b):null)};
e=G.prototype;e.toString=function(){return this.toArray().toString()};
e.getExtension=function(a){ff(this);this.wrappers_||(this.wrappers_={});var b=a.fieldIndex;return a.isRepeated?a.ctor?(this.wrappers_[b]||(this.wrappers_[b]=eb(this.extensionObject_[b]||[],function(c){return new a.ctor(c)})),this.wrappers_[b]):this.extensionObject_[b]=this.extensionObject_[b]||[]:a.ctor?(!this.wrappers_[b]&&this.extensionObject_[b]&&(this.wrappers_[b]=new a.ctor(this.extensionObject_[b])),this.wrappers_[b]):this.extensionObject_[b]};
e.setExtension=function(a,b){this.wrappers_||(this.wrappers_={});ff(this);var c=a.fieldIndex;a.isRepeated?(b=b||[],a.ctor?(this.wrappers_[c]=b,this.extensionObject_[c]=eb(b,function(d){return d.toArray()})):this.extensionObject_[c]=b):a.ctor?(this.wrappers_[c]=b,this.extensionObject_[c]=b?b.toArray():b):this.extensionObject_[c]=b;
return this};
e.cloneMessage=function(){return new this.constructor(Pf(this.toArray()))};
e.clone=function(){return new this.constructor(Pf(this.toArray()))};
var Pf=function(a){if(Array.isArray(a)){for(var b=Array(a.length),c=0;c<a.length;c++){var d=a[c];null!=d&&(b[c]="object"==typeof d?Pf(d):d)}return b}if(df&&a instanceof Uint8Array)return new Uint8Array(a);b={};for(c in a)d=a[c],null!=d&&(b[c]="object"==typeof d?Pf(d):d);return b},Qf={},kf={};var Rf=document,Sf=window;var nda=function(a,b,c){c=void 0===c?{}:c;this.error=a;this.context=b.context;this.msg=b.message||"";this.id=b.id||"jserror";this.meta=c};var oda=vb(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
t.addEventListener("test",null,b)}catch(c){}return a});
function pda(a){return a?a.passive&&oda()?a:a.capture||!1:!1}
var Tf=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,pda(d)),!0):!1},Uf=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,pda(void 0))};try{new self.OffscreenCanvas(0,0).getContext("2d")}catch(a){}var qda=!te||Ge(9),rda=!we&&!te||te&&Ge(9)||we&&Fe("1.9.1"),sda=te&&!Fe("9"),tda=te||se||ye,uda=te&&!Ge(9);var Vf=function(a,b,c){return Math.min(Math.max(a,b),c)},Wf=function(a,b,c){return a+c*(b-a)};var Xf=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};
Xf.prototype.clone=function(){return new Xf(this.x,this.y)};
Xf.prototype.equals=function(a){return a instanceof Xf&&(this==a?!0:this&&a?this.x==a.x&&this.y==a.y:!1)};
var Yf=function(a,b){return new Xf(a.x-b.x,a.y-b.y)};
e=Xf.prototype;e.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
e.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
e.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
e.translate=function(a,b){a instanceof Xf?(this.x+=a.x,this.y+=a.y):(this.x+=Number(a),"number"===typeof b&&(this.y+=b));return this};
e.scale=function(a,b){this.x*=a;this.y*="number"===typeof b?b:a;return this};
e.rotateDegrees=function(a,b){a=a*Math.PI/180;b=b||new Xf(0,0);var c=this.x,d=this.y,f=Math.cos(a);a=Math.sin(a);this.x=(c-b.x)*f-(d-b.y)*a+b.x;this.y=(c-b.x)*a+(d-b.y)*f+b.y};var Zf=function(a,b){this.width=a;this.height=b};
e=Zf.prototype;e.clone=function(){return new Zf(this.width,this.height)};
e.getLongest=function(){return Math.max(this.width,this.height)};
e.getShortest=function(){return Math.min(this.width,this.height)};
e.perimeter=function(){return 2*(this.width+this.height)};
e.aspectRatio=function(){return this.width/this.height};
e.isEmpty=function(){return!(this.width*this.height)};
e.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
e.fitsInside=function(a){return this.width<=a.width&&this.height<=a.height};
e.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
e.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
e.scale=function(a,b){this.width*=a;this.height*="number"===typeof b?b:a;return this};
e.scaleToCover=function(a){a=this.aspectRatio()<=a.aspectRatio()?a.width/this.width:a.height/this.height;return this.scale(a)};
e.scaleToFit=function(a){a=this.aspectRatio()>a.aspectRatio()?a.width/this.width:a.height/this.height;return this.scale(a)};var bg=function(a){return a?new $f(ag(a)):waa||(waa=new $f)},cg=function(a,b){return"string"===typeof b?a.getElementById(b):b},dg=function(a,b){return(b||document).getElementsByTagName(String(a))},vda=function(a,b){var c=b||document;
return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):eg(document,"*",a,b)},gg=function(a,b){var c=b||document;
return(c.getElementsByClassName?c.getElementsByClassName(a)[0]:fg(document,"*",a,b))||null},eg=function(a,b,c,d){a=d||a;
b=b&&"*"!=b?String(b).toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){d={};for(var f=0,g=0,l;l=a[g];g++)b==l.nodeName&&(d[f++]=l);d.length=f;return d}return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(g=f=0;l=a[g];g++)b=l.className,"function"==typeof b.split&&lb(b.split(/\s+/),c)&&(d[f++]=l);d.length=f;return d}return a},fg=function(a,b,c,d){var f=d||a,g=b&&"*"!=b?String(b).toUpperCase():
"";
return f.querySelectorAll&&f.querySelector&&(g||c)?f.querySelector(g+(c?"."+c:"")):eg(a,b,c,d)[0]||null},hg=function(a,b){A.forEach(b,function(c,d){c&&"object"==typeof c&&c.implementsGoogStringTypedString&&(c=c.getTypedStringValue());
"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:wda.hasOwnProperty(d)?a.setAttribute(wda[d],c):Lb(d,"aria-")||Lb(d,"data-")?a.setAttribute(d,c):a[d]=c})},wda={cellpadding:"cellPadding",
cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"},ig=function(a){return xda(a||window)},xda=function(a){a=a.document;
a=jg(a)?a.documentElement:a.body;return new Zf(a.clientWidth,a.clientHeight)},lg=function(a){var b=kg(a);
a=a.parentWindow||a.defaultView;return te&&Fe("10")&&a.pageYOffset!=b.scrollTop?new Xf(b.scrollLeft,b.scrollTop):new Xf(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)},kg=function(a){return a.scrollingElement?a.scrollingElement:!ye&&jg(a)?a.documentElement:a.body||a.documentElement},mg=function(a){return a?a.parentWindow||a.defaultView:window},ng=function(a,b,c){return yda(document,arguments)},yda=function(a,b){var c=String(b[0]),d=b[1];
if(!qda&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(" name=\"",Bc(d.name),"\"");if(d.type){c.push(" type=\"",Bc(d.type),"\"");var f={};A.extend(f,d);delete f.type;d=f}c.push(">");c=c.join("")}c=og(a,c);d&&("string"===typeof d?c.className=d:Array.isArray(d)?c.className=d.join(" "):hg(c,d));2<b.length&&zda(a,c,b,2);return c},zda=function(a,b,c,d){function f(l){l&&b.appendChild("string"===typeof l?a.createTextNode(l):l)}
for(;d<c.length;d++){var g=c[d];Oa(g)&&!Ada(g)?cb(Bda(g)?pb(g):g,f):f(g)}},pg=function(a){return og(document,a)},og=function(a,b){b=String(b);
"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)},jg=function(a){return"CSS1Compat"==a.compatMode},qg=function(a){if(1!=a.nodeType)return!1;
switch(a.tagName){case"APPLET":case"AREA":case"BASE":case"BR":case"COL":case"COMMAND":case"EMBED":case"FRAME":case"HR":case"IMG":case"INPUT":case"IFRAME":case"ISINDEX":case"KEYGEN":case"LINK":case"NOFRAMES":case"NOSCRIPT":case"META":case"OBJECT":case"PARAM":case"SCRIPT":case"SOURCE":case"STYLE":case"TRACK":case"WBR":return!1;}return!0},Cda=function(a,b){zda(ag(a),a,arguments,1)},rg=function(a){for(var b;b=a.firstChild;)a.removeChild(b)},sg=function(a,b){b.parentNode&&b.parentNode.insertBefore(a,
b)},tg=function(a,b){b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling)},Dda=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)},ug=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null},Eda=function(a,b){var c=b.parentNode;
c&&c.replaceChild(a,b)},Fda=function(a){var b,c=a.parentNode;
if(c&&11!=c.nodeType){if(a.removeNode)return a.removeNode(!1);for(;b=a.firstChild;)c.insertBefore(b,a);return ug(a)}},vg=function(a){return rda&&void 0!=a.children?a.children:db(a.childNodes,function(b){return 1==b.nodeType})},xg=function(a){return void 0!==a.nextElementSibling?a.nextElementSibling:wg(a.nextSibling,!0)},wg=function(a,b){for(;a&&1!=a.nodeType;)a=b?a.nextSibling:a.previousSibling;
return a},Ada=function(a){return Pa(a)&&0<a.nodeType},yg=function(a){return Pa(a)&&1==a.nodeType},zg=function(a){var b;
if(tda&&!(te&&Fe("9")&&!Fe("10")&&t.SVGElement&&a instanceof t.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return yg(b)?b:null},Ag=function(a,b){if(!a||!b)return!1;
if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a},Ida=function(a,b){if(a==b)return 0;
if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-1;if(te&&!Ge(9)){if(9==a.nodeType)return-1;if(9==b.nodeType)return 1}if("sourceIndex"in a||a.parentNode&&"sourceIndex"in a.parentNode){var c=1==a.nodeType,d=1==b.nodeType;if(c&&d)return a.sourceIndex-b.sourceIndex;var f=a.parentNode,g=b.parentNode;return f==g?Gda(a,b):!c&&Ag(f,b)?-1*Hda(a,b):!d&&Ag(g,a)?Hda(b,a):(c?a.sourceIndex:f.sourceIndex)-(d?b.sourceIndex:g.sourceIndex)}d=ag(a);c=d.createRange();c.selectNode(a);c.collapse(!0);
a=d.createRange();a.selectNode(b);a.collapse(!0);return c.compareBoundaryPoints(t.Range.START_TO_END,a)},Hda=function(a,b){var c=a.parentNode;
if(c==b)return-1;for(;b.parentNode!=c;)b=b.parentNode;return Gda(b,a)},Gda=function(a,b){for(;b=b.previousSibling;)if(b==a)return-1;
return 1},Bg=function(a){var b,c=arguments.length;
if(!c)return null;if(1==c)return arguments[0];var d=[],f=Infinity;for(b=0;b<c;b++){for(var g=[],l=arguments[b];l;)g.unshift(l),l=l.parentNode;d.push(g);f=Math.min(f,g.length)}g=null;for(b=0;b<f;b++){l=d[0][b];for(var m=1;m<c;m++)if(l!=d[m][b])return g;g=l}return g},ag=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document},Cg=function(a){return a.contentDocument||a.contentWindow.document},Dg=function(a){try{return a.contentWindow||(a.contentDocument?mg(a.contentDocument):null)}catch(b){}return null},
Eg=function(a,b){if("textContent"in a)a.textContent=b;else
if(3==a.nodeType)a.data=String(b);else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=String(b)}else rg(a),a.appendChild(ag(a).createTextNode(String(b)))},Fg=function(a){if("outerHTML"in a)return a.outerHTML;
var b=og(ag(a),"DIV");b.appendChild(a.cloneNode(!0));return b.innerHTML},Jda=function(a,b){var c=[];
return Gg(a,b,c,!0)?c[0]:void 0},Gg=function(a,b,c,d){if(null!=a)for(a=a.firstChild;a;){if(b(a)&&(c.push(a),d)||Gg(a,b,c,d))return!0;
a=a.nextSibling}return!1},Kda={SCRIPT:1,
STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Hg={IMG:" ",BR:"\n"},Nda=function(a){return Lda(a)&&Mda(a)},Ig=function(a,b){b?a.tabIndex=0:(a.tabIndex=-1,a.removeAttribute("tabIndex"))},Oda=function(a){var b;
(b="A"==a.tagName&&a.hasAttribute("href")||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!Lda(a)||Mda(a)):Nda(a))&&te?(a="function"!==typeof a.getBoundingClientRect||te&&null==a.parentElement?{height:a.offsetHeight,width:a.offsetWidth}:a.getBoundingClientRect(),a=null!=a&&0<a.height&&0<a.width):a=b;return a},Lda=function(a){return te&&!Fe("9")?(a=a.getAttributeNode("tabindex"),null!=a&&a.specified):a.hasAttribute("tabindex")},Mda=function(a){a=a.tabIndex;
return"number"===typeof a&&0<=a&&32768>a},Kg=function(a){if(sda&&null!==a&&"innerText"in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else
{var b=[];Jg(a,b,!0);a=b.join("")}a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");sda||(a=a.replace(/ +/g," "));" "!=a&&(a=a.replace(/^\s*/,""));return a},Lg=function(a){var b=[];
Jg(a,b,!1);return b.join("")},Jg=function(a,b,c){if(!(a.nodeName in Kda))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else
if(a.nodeName in Hg)b.push(Hg[a.nodeName]);else for(a=a.firstChild;a;)Jg(a,b,c),a=a.nextSibling},Bda=function(a){if(a&&"number"==typeof a.length){if(Pa(a))return"function"==typeof a.item||"string"==typeof a.item;
if("function"===typeof a)return"function"==typeof a.item}return!1},Ng=function(a,b,c,d){if(!b&&!c)return null;
var f=b?String(b).toUpperCase():null;return Mg(a,function(g){return(!f||g.nodeName==f)&&(!c||"string"===typeof g.className&&lb(g.className.split(/\s+/),c))},!0,d)},Og=function(a,b,c){return Ng(a,null,b,c)},Mg=function(a,b,c,d){a&&!c&&(a=a.parentNode);
for(c=0;a&&(null==d||c<=d);){if(b(a))return a;a=a.parentNode;c++}return null},Pg=function(a){try{var b=a&&a.activeElement;
return b&&b.nodeName?b:null}catch(c){return null}},$f=function(a){this.document_=a||t.document||document};
e=$f.prototype;e.getDomHelper=bg;e.setDocument=function(a){this.document_=a};
e.getDocument=function(){return this.document_};
e.getElement=function(a){return cg(this.document_,a)};
e.getRequiredElement=function(a){return cg(this.document_,a)};
e.$=$f.prototype.getElement;e.getElementsByTagName=function(a,b){return(b||this.document_).getElementsByTagName(String(a))};
e.getElementsByTagNameAndClass=function(a,b,c){return eg(this.document_,a,b,c)};
e.getElementByTagNameAndClass=function(a,b,c){return fg(this.document_,a,b,c)};
e.getElementsByClass=function(a,b){return vda(a,b||this.document_)};
e.getElementByClass=function(a,b){return gg(a,b||this.document_)};
e.getRequiredElementByClass=function(a,b){return gg(a,b||this.document_)};
e.$$=$f.prototype.getElementsByTagNameAndClass;e.setProperties=hg;e.getDocumentHeight=function(){var a=this.getWindow(),b=a.document;var c=0;if(b){c=b.body;var d=b.documentElement;if(d&&c){if(a=xda(a).height,jg(b)&&d.scrollHeight)c=d.scrollHeight!=a?d.scrollHeight:d.offsetHeight;else{b=d.scrollHeight;var f=d.offsetHeight;d.clientHeight!=f&&(b=c.scrollHeight,f=c.offsetHeight);c=b>a?b>f?b:f:b<f?b:f}}else c=0}return c};
e.createDom=function(a,b,c){return yda(this.document_,arguments)};
e.$dom=$f.prototype.createDom;e.createElement=function(a){return og(this.document_,a)};
e.createTextNode=function(a){return this.document_.createTextNode(String(a))};
e.createTable=function(a,b,c){var d=this.document_;c=!!c;for(var f=og(d,"TABLE"),g=f.appendChild(og(d,"TBODY")),l=0;l<a;l++){for(var m=og(d,"TR"),n=0;n<b;n++){var r=og(d,"TD");c&&Eg(r,"\xA0");m.appendChild(r)}g.appendChild(m)}return f};
e.safeHtmlToNode=function(a){var b=this.document_;var c=og(b,"DIV");te?(a=rba(sba,a),rc(c,a),c.removeChild(c.firstChild)):rc(c,a);if(1==c.childNodes.length)c=c.removeChild(c.firstChild);else{for(b=b.createDocumentFragment();c.firstChild;)b.appendChild(c.firstChild);c=b}return c};
e.getWindow=function(){var a=this.document_;return a.parentWindow||a.defaultView};
e.getActiveElement=function(a){return Pg(a||this.document_)};
e.appendChild=function(a,b){a.appendChild(b)};
e.append=Cda;e.canHaveChildren=qg;e.removeChildren=rg;e.insertSiblingBefore=sg;e.insertSiblingAfter=tg;e.insertChildAt=Dda;e.removeNode=ug;e.replaceNode=Eda;e.copyContents=function(a,b){b=b.cloneNode(!0).childNodes;for(rg(a);b.length;)a.appendChild(b[0])};
e.flattenElement=Fda;e.getChildren=vg;e.getFirstElementChild=function(a){return void 0!==a.firstElementChild?a.firstElementChild:wg(a.firstChild,!0)};
e.getLastElementChild=function(a){return void 0!==a.lastElementChild?a.lastElementChild:wg(a.lastChild,!1)};
e.getNextElementSibling=xg;e.getPreviousElementSibling=function(a){return void 0!==a.previousElementSibling?a.previousElementSibling:wg(a.previousSibling,!1)};
e.getNextNode=function(a){if(!a)return null;if(a.firstChild)return a.firstChild;for(;a&&!a.nextSibling;)a=a.parentNode;return a?a.nextSibling:null};
e.getPreviousNode=function(a){if(!a)return null;if(!a.previousSibling)return a.parentNode;for(a=a.previousSibling;a&&a.lastChild;)a=a.lastChild;return a};
e.isNodeLike=Ada;e.isElement=yg;e.isWindow=function(a){return Pa(a)&&a.window==a};
e.getParentElement=zg;e.contains=Ag;e.compareNodeOrder=Ida;e.findCommonAncestor=Bg;e.getOwnerDocument=ag;e.getFrameContentDocument=Cg;e.getFrameContentWindow=Dg;e.setTextContent=Eg;e.getOuterHtml=Fg;e.findNode=Jda;e.findNodes=function(a,b){var c=[];Gg(a,b,c,!1);return c};
e.isFocusableTabIndex=Nda;e.setFocusableTabIndex=Ig;e.isFocusable=Oda;e.getTextContent=Kg;e.getNodeTextLength=function(a){return Kg(a).length};
e.getNodeTextOffset=function(a,b){b=b||ag(a).body;for(var c=[];a&&a!=b;){for(var d=a;d=d.previousSibling;)c.unshift(Kg(d));a=a.parentNode}return c.join("").replace(/^[\s\xa0]+/,"").replace(/ +/g," ").length};
e.getNodeAtOffset=function(a,b,c){a=[a];for(var d=0,f=null;0<a.length&&d<b;)if(f=a.pop(),!(f.nodeName in Kda))if(3==f.nodeType){var g=f.nodeValue.replace(/(\r\n|\r|\n)/g,"").replace(/ +/g," ");d+=g.length}else if(f.nodeName in Hg)d+=Hg[f.nodeName].length;else for(g=f.childNodes.length-1;0<=g;g--)a.push(f.childNodes[g]);Pa(c)&&(c.remainder=f?f.nodeValue.length+b-d-1:0,c.node=f);return f};
e.isNodeList=Bda;e.getAncestorByTagNameAndClass=Ng;e.getAncestorByClass=Og;e.getAncestor=Mg;e.getCanvasContext2D=function(a){return a.getContext("2d")};var Pda=function(){return fc("iPad")||fc("Android")&&!fc("Mobile")||fc("Silk")};var Qg=function(a){try{return!!a&&null!=a.location.href&&re(a,"foo")}catch(b){return!1}},Rg=function(a,b,c){if(a)for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&b.call(c,a[d],d,a)},Rda=function(){var a=[];
Rg(Qda,function(b){a.push(b)});
return a},Sda=/https?:\/\/[^\/]+/,Tda=function(a){return(a=Sda.exec(a))&&a[0]||""},Vda=function(){var a=Uda;
if(!a)return"";var b=/.*[&#?]google_debug(=[^&]*)?(&.*)?$/;try{var c=b.exec(decodeURIComponent(a));if(c)return c[1]&&1<c[1].length?c[1].substring(1):"true"}catch(d){}return""},Qda={ALLOW_FORMS:"allow-forms",
ALLOW_MODALS:"allow-modals",ALLOW_ORIENTATION_LOCK:"allow-orientation-lock",ALLOW_POINTER_LOCK:"allow-pointer-lock",ALLOW_POPUPS:"allow-popups",ALLOW_POPUPS_TO_ESCAPE_SANDBOX:"allow-popups-to-escape-sandbox",ALLOW_PRESENTATION:"allow-presentation",ALLOW_SAME_ORIGIN:"allow-same-origin",ALLOW_SCRIPTS:"allow-scripts",ALLOW_TOP_NAVIGATION:"allow-top-navigation",ALLOW_TOP_NAVIGATION_BY_USER_ACTIVATION:"allow-top-navigation-by-user-activation"},Wda=vb(function(){return Rda()}),Xda=function(){var a=pg("IFRAME"),
b={};
cb(Wda(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b};function Sg(a){a&&"function"==typeof a.dispose&&a.dispose()}
;var Tg=function(){this.disposed_=this.disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
Tg.prototype.disposed_=!1;Tg.prototype.isDisposed=function(){return this.disposed_};
Tg.prototype.getDisposed=Tg.prototype.isDisposed;Tg.prototype.dispose=function(){this.disposed_||(this.disposed_=!0,this.disposeInternal())};
var Ug=function(a,b){Yda(a,Ta(Sg,b))},Yda=function(a,b){a.disposed_?b():(a.onDisposeCallbacks_||(a.onDisposeCallbacks_=[]),a.onDisposeCallbacks_.push(b))};
Tg.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var Zda=function(){this.nextPtr_=0;this.maxSize_=5;this.buff_=[]};
e=Zda.prototype;e.add=function(a){var b=this.buff_[this.nextPtr_];this.buff_[this.nextPtr_]=a;this.nextPtr_=(this.nextPtr_+1)%this.maxSize_;return b};
e.get=function(a){a=$da(this,a);return this.buff_[a]};
e.set=function(a,b){a=$da(this,a);this.buff_[a]=b};
e.getCount=function(){return this.buff_.length};
e.isEmpty=function(){return 0==this.buff_.length};
e.clear=function(){this.nextPtr_=this.buff_.length=0};
e.getValues=function(){var a=this.getCount(),b=this.getCount(),c=[];for(a=this.getCount()-a;a<b;a++)c.push(this.get(a));return c};
e.getKeys=function(){for(var a=[],b=this.getCount(),c=0;c<b;c++)a[c]=c;return a};
e.containsKey=function(a){return a<this.getCount()};
e.containsValue=function(a){for(var b=this.getCount(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};
e.getLast=function(){return 0==this.getCount()?null:this.get(this.getCount()-1)};
var $da=function(a,b){if(b>=a.buff_.length)throw Error("Out of bounds exception");return a.buff_.length<a.maxSize_?b:(a.nextPtr_+Number(b))%a.maxSize_};var Vg=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
e=Vg.prototype;e.getWidth=function(){return this.right-this.left};
e.getHeight=function(){return this.bottom-this.top};
e.clone=function(){return new Vg(this.top,this.right,this.bottom,this.left)};
e.contains=function(a){return this&&a?a instanceof Vg?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
e.expand=function(a,b,c,d){Pa(a)?(this.top-=a.top,this.right+=a.right,this.bottom+=a.bottom,this.left-=a.left):(this.top-=a,this.right+=Number(b),this.bottom+=Number(c),this.left-=Number(d));return this};
e.expandToInclude=function(a){this.left=Math.min(this.left,a.left);this.top=Math.min(this.top,a.top);this.right=Math.max(this.right,a.right);this.bottom=Math.max(this.bottom,a.bottom)};
e.expandToIncludeCoordinate=function(a){this.top=Math.min(this.top,a.y);this.right=Math.max(this.right,a.x);this.bottom=Math.max(this.bottom,a.y);this.left=Math.min(this.left,a.x)};
var Wg=function(a,b){return a==b?!0:a&&b?a.top==b.top&&a.right==b.right&&a.bottom==b.bottom&&a.left==b.left:!1};
e=Vg.prototype;e.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
e.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
e.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
e.translate=function(a,b){a instanceof Xf?(this.left+=a.x,this.right+=a.x,this.top+=a.y,this.bottom+=a.y):(this.left+=a,this.right+=a,"number"===typeof b&&(this.top+=b,this.bottom+=b));return this};
e.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};var Xg=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
Xg.prototype.clone=function(){return new Xg(this.left,this.top,this.width,this.height)};
Xg.prototype.toBox=function(){return new Vg(this.top,this.left+this.width,this.top+this.height,this.left)};
Xg.prototype.intersection=function(a){var b=Math.max(this.left,a.left),c=Math.min(this.left+this.width,a.left+a.width);if(b<=c){var d=Math.max(this.top,a.top);a=Math.min(this.top+this.height,a.top+a.height);d<=a&&(this.left=b,this.top=d,this.width=c-b,this.height=a-d)}};
var Yg=function(a,b){var c=Math.max(a.left,b.left),d=Math.min(a.left+a.width,b.left+b.width);if(c<=d){var f=Math.max(a.top,b.top);a=Math.min(a.top+a.height,b.top+b.height);if(f<=a)return new Xg(c,f,d-c,a-f)}return null},aea=function(a,b){return a.left<=b.left+b.width&&b.left<=a.left+a.width&&a.top<=b.top+b.height&&b.top<=a.top+a.height};
e=Xg.prototype;e.intersects=function(a){return aea(this,a)};
e.difference=function(a){var b=Yg(this,a);if(b&&b.height&&b.width){b=[];var c=this.top,d=this.height,f=this.left+this.width,g=this.top+this.height,l=a.left+a.width,m=a.top+a.height;a.top>this.top&&(b.push(new Xg(this.left,this.top,this.width,a.top-this.top)),c=a.top,d-=a.top-this.top);m<g&&(b.push(new Xg(this.left,m,this.width,g-m)),d=m-c);a.left>this.left&&b.push(new Xg(this.left,c,a.left-this.left,d));l<f&&b.push(new Xg(l,c,f-l,d));a=b}else a=[this.clone()];return a};
e.boundingRect=function(a){var b=Math.max(this.left+this.width,a.left+a.width),c=Math.max(this.top+this.height,a.top+a.height);this.left=Math.min(this.left,a.left);this.top=Math.min(this.top,a.top);this.width=b-this.left;this.height=c-this.top};
e.contains=function(a){return a instanceof Xf?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};
e.distance=function(a){var b=a.x<this.left?this.left-a.x:Math.max(a.x-(this.left+this.width),0);a=a.y<this.top?this.top-a.y:Math.max(a.y-(this.top+this.height),0);return Math.sqrt(b*b+a*a)};
e.getCenter=function(){return new Xf(this.left+this.width/2,this.top+this.height/2)};
e.getBottomRight=function(){return new Xf(this.left+this.width,this.top+this.height)};
e.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
e.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
e.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
e.translate=function(a,b){a instanceof Xf?(this.left+=a.x,this.top+=a.y):(this.left+=a,"number"===typeof b&&(this.top+=b));return this};
e.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var Zg=function(a,b,c){a.google_image_requests||(a.google_image_requests=[]);var d=a.document.createElement("img");c&&(d.referrerPolicy="no-referrer");d.src=b;a.google_image_requests.push(d)},cea=function(a){if(bea())Zg(window,a,!0);else
{var b=t.document;if(b.body){var c=b.getElementById("goog-srcless-iframe");c||(c=new $f(b).createElement("IFRAME"),c.style.display="none",c.id="goog-srcless-iframe",b.body.appendChild(c));b=c}else b=null;b&&b.contentWindow&&Zg(b.contentWindow,a,!0)}},bea=vb(function(){return"referrerPolicy"in t.document.createElement("img")});var $g={};function ah(a){if(a!==$g)throw Error("Bad secret")}
;function bh(){var a="undefined"!==typeof window?window.trustedTypes:void 0;return null!==a&&void 0!==a?a:null}
var ch;function dh(){var a,b;void 0===ch&&(ch=null!==(b=null===(a=bh())||void 0===a?void 0:a.createPolicy("google#safe",{createHTML:function(c){return c},
createScript:function(c){return c},
createScriptURL:function(c){return c}}))&&void 0!==b?b:null);
return ch}
;var eh,dea=function(){},fh=function(a,b){ah(b);
this.privateDoNotAccessOrElseWrappedHtml=a};
p(fh,dea);fh.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml.toString()};
function eea(a,b){return new fh(null!==b&&void 0!==b?b:a,$g)}
eea("",null===(eh=bh())||void 0===eh?void 0:eh.emptyHTML);var gh,fea=function(){},hh=function(a,b){ah(b);
this.privateDoNotAccessOrElseWrappedScript=a};
p(hh,fea);hh.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript.toString()};
function gea(a,b){return new hh(null!==b&&void 0!==b?b:a,$g)}
gea("",null===(gh=bh())||void 0===gh?void 0:gh.emptyScript);var hea=function(){},ih=function(a,b){ah(b);
this.privateDoNotAccessOrElseWrappedUrl=a};
p(ih,hea);ih.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};var jh=function(){},kh=function(a,b){ah(b);
this.privateDoNotAccessOrElseWrappedResourceUrl=a};
p(kh,jh);kh.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl.toString()};
function lh(a){var b,c=null===(b=dh())||void 0===b?void 0:b.createScriptURL(a);return new kh(null!==c&&void 0!==c?c:a,$g)}
function iea(a){var b;if(null===(b=bh())||void 0===b?0:b.isScriptURL(a))return a;if(a instanceof kh)return a.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("wrong type")}
;var jea=new ih("about:blank",$g),kea=new ih("about:invalid#zTSz",$g);function lea(a,b,c){if(!Array.isArray(a)||!Array.isArray(a.raw)||!b&&1!==a.length)throw new TypeError(c)}
;function mea(a){a=a.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i);return 2===(null===a||void 0===a?void 0:a.length)&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)$/i.test(a[1])||/^video\/(?:mpeg|mp4|ogg|webm|x-matroska)$/i.test(a[1])||/^audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(a[1]))}
var nea="DATA HTTP HTTPS MAILTO FTP RELATIVE".split(" "),oea={scheme:"RELATIVE",isValid:function(a){return /^[^:/?#]*(?:[/?#]|$)/i.test(a)}},pea={tel:{scheme:"TEL",
isValid:mh("tel:")},callto:{scheme:"CALLTO",isValid:function(a){return /^callto:\+?\d*$/i.test(a)}},
ssh:{scheme:"SSH",isValid:mh("ssh://")},rtsp:{scheme:"RTSP",isValid:mh("rtsp://")},data:{scheme:"DATA",isValid:function(a){a=a.match(/^data:(.*);base64,[a-z0-9+\/]+=*$/i);return 2===(null===a||void 0===a?void 0:a.length)&&mea(a[1])}},
http:{scheme:"HTTP",isValid:mh("http:")},https:{scheme:"HTTPS",isValid:mh("https:")},ftp:{scheme:"FTP",isValid:mh("ftp:")},mailto:{scheme:"MAILTO",isValid:mh("mailto:")},intent:{scheme:"INTENT",isValid:mh("intent:")},market:{scheme:"MARKET",isValid:mh("market:")},itms:{scheme:"ITMS",isValid:mh("itms:")},"itms-appss":{scheme:"ITMS_APPSS",isValid:mh("itms-appss:")},"itms-services":{scheme:"ITMS_SERVICES",isValid:mh("itms-services:")}};
function mh(a){return function(b){return b.substr(0,a.length).toLowerCase()===a}}
;var nh=function(a){qea();return Hb(a)},qea=Ka;var ph=function(a,b,c){if("string"===typeof b)(b=oh(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var f=b[d],g=oh(c,d);g&&(c.style[g]=f)}},rea={},oh=function(a,b){var c=rea[b];
if(!c){var d=Jc(b);c=d;void 0===a.style[d]&&(d=(ye?"Webkit":we?"Moz":te?"ms":se?"O":null)+Dba(d),void 0!==a.style[d]&&(c=d));rea[b]=c}return c},qh=function(a,b){var c=ag(a);
return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""},rh=function(a,b){return qh(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]},sh=function(a){return rh(a,"position")},vh=function(a,b,c){if(b instanceof Xf){var d=b.x;
b=b.y}else d=b,b=c;a.style.left=th(d,!1);a.style.top=th(b,!1)},wh=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,
top:0,right:0,bottom:0}}},sea=function(a){if(te&&!Ge(8))return a.offsetParent;
var b=ag(a),c=rh(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(11==a.nodeType&&a.host&&(a=a.host),c=rh(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null},tea=function(a){for(var b=new Vg(0,Infinity,Infinity,0),c=bg(a),d=c.getDocument().body,f=c.getDocument().documentElement,g=kg(c.document_);a=sea(a);)if(!(te&&0==a.clientWidth||
ye&&0==a.clientHeight&&a==d)&&a!=d&&a!=f&&"visible"!=rh(a,"overflow")){var l=xh(a),m=new Xf(a.clientLeft,a.clientTop);
l.x+=m.x;l.y+=m.y;b.top=Math.max(b.top,l.y);b.right=Math.min(b.right,l.x+a.clientWidth);b.bottom=Math.min(b.bottom,l.y+a.clientHeight);b.left=Math.max(b.left,l.x)}d=g.scrollLeft;g=g.scrollTop;b.left=Math.max(b.left,d);b.top=Math.max(b.top,g);c=ig(c.getWindow());b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,g+c.height);return 0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null},xh=function(a){var b=ag(a),c=new Xf(0,0);
var d=b?ag(b):document;d=!te||Ge(9)||jg(bg(d).document_)?d.documentElement:d.body;if(a==d)return c;a=wh(a);b=lg(bg(b).document_);c.x=a.left+b.x;c.y=a.top+b.y;return c},yh=function(a,b){var c=new Xf(0,0),d=mg(ag(a));
if(!re(d,"parent"))return c;do{var f=d==b?xh(a):uea(a);c.x+=f.x;c.y+=f.y}while(d&&d!=b&&d!=d.parent&&(a=d.frameElement)&&(d=d.parent));return c},uea=function(a){a=wh(a);
return new Xf(a.left,a.top)},vea=function(a){if(1==a.nodeType)return uea(a);
a=a.changedTouches?a.changedTouches[0]:a;return new Xf(a.clientX,a.clientY)},zh=function(a,b,c){if(b instanceof Zf)c=b.height,b=b.width;else
if(void 0==c)throw Error("missing height argument");a.style.width=th(b,!0);a.style.height=th(c,!0)},th=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");
return a},Ah=function(a){var b=wea;
if("none"!=rh(a,"display"))return b(a);var c=a.style,d=c.display,f=c.visibility,g=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=g;c.visibility=f;return a},wea=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=ye&&!b&&!c;
return(void 0===b||d)&&a.getBoundingClientRect?(a=wh(a),new Zf(a.right-a.left,a.bottom-a.top)):new Zf(b,c)},Bh=function(a){var b=xh(a);
a=Ah(a);return new Xg(b.x,b.y,a.width,a.height)},xea=function(a,b){a=a.style;
"opacity"in a?a.opacity=b:"MozOpacity"in a?a.MozOpacity=b:"filter"in a&&(a.filter=""===b?"":"alpha(opacity="+100*Number(b)+")")},Ch=function(a,b){a.style.display=b?"":"none"},Dh=function(a){return"rtl"==rh(a,"direction")},yea=function(a,b){if(/^\d+px?$/.test(b))return parseInt(b,10);
var c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;b=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return+b},Eh=function(a,b){return(b=a.currentStyle?a.currentStyle[b]:null)?yea(a,b):0},Fh=function(a,b){if(te){var c=Eh(a,b+"Left"),d=Eh(a,b+"Right"),f=Eh(a,b+"Top");
a=Eh(a,b+"Bottom");return new Vg(f,d,a,c)}c=qh(a,b+"Left");d=qh(a,b+"Right");f=qh(a,b+"Top");a=qh(a,b+"Bottom");return new Vg(parseFloat(f),parseFloat(d),parseFloat(a),parseFloat(c))},zea={thin:2,
medium:4,thick:6},Gh=function(a,b){if("none"==(a.currentStyle?a.currentStyle[b+"Style"]:null))return 0;b=a.currentStyle?a.currentStyle[b+"Width"]:null;return b in zea?zea[b]:yea(a,b)},Hh=function(a){if(te&&!Ge(9)){var b=Gh(a,"borderLeft"),c=Gh(a,"borderRight"),d=Gh(a,"borderTop");
a=Gh(a,"borderBottom");return new Vg(d,c,a,b)}b=qh(a,"borderLeftWidth");c=qh(a,"borderRightWidth");d=qh(a,"borderTopWidth");a=qh(a,"borderBottomWidth");return new Vg(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))};var Aea=!!window.google_async_iframe_id,Ih=Aea&&window.parent||window,Jh=function(){if(Aea&&!Qg(Ih)){var a="."+Rf.domain;try{for(;2<a.split(".").length&&!Qg(Ih);)Rf.domain=a=a.substr(a.indexOf(".")+1),Ih=window.parent}catch(b){}Qg(Ih)||(Ih=window)}return Ih};var Kh=function(a){hf(this,a,0,-1,null,null)};
w(Kh,G);Kh.prototype.toObject=function(a){return Lh(a,this)};
var Lh=function(a,b){var c={seconds:rf(b,1),nanos:rf(b,2)};a&&(c.$jspbMessageInstance=b);return c};
Kh.prototype.serializeBinary=function(){var a=new D;Mh(this,a);return F(a)};
var Mh=function(a,b){var c=a.getSeconds();0!==c&&b.writeInt64(1,c);c=rf(a,2);0!==c&&b.writeInt32(2,c)};
e=Kh.prototype;e.getSeconds=function(){return rf(this,1)};
e.setSeconds=function(a){return Hf(this,1,a)};
e.setNanos=function(a){Hf(this,2,a)};
e.toDate=function(){var a=this.getSeconds(),b=rf(this,2);return new Date(1E3*a+b/1E6)};
e.fromDate=function(a){this.setSeconds(Math.floor(a.getTime()/1E3));this.setNanos(1E6*a.getMilliseconds())};var Cea=function(a){var b=Ja("window.location.href");null==a&&(a="Unknown Error of type \"null/undefined\"");if("string"===typeof a)return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(l){d="Not available",c=!0}try{var f=a.fileName||a.filename||a.sourceURL||t.$googDebugFname||b}catch(l){f="Not available",c=!0}b=Bea(a);if(!(!c&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name)){c=a.message;
if(null==c){if(a.constructor&&a.constructor instanceof Function){if(a.constructor.name)c=a.constructor.name;else if(c=a.constructor,Nh[c])c=Nh[c];else{c=String(c);if(!Nh[c]){var g=/function\s+([^\(]+)/m.exec(c);Nh[c]=g?g[1]:"[Anonymous]"}c=Nh[c]}c="Unknown Error of type \""+c+"\""}else c="Unknown Error of unknown type";"function"===typeof a.toString&&Object.prototype.toString!==a.toString&&(c+=": "+a.toString())}return{message:c,name:a.name||"UnknownError",lineNumber:d,fileName:f,stack:b||"Not available"}}a.stack=
b;return a},Bea=function(a,b){b||(b={});
b[Dea(a)]=!0;var c=a.stack||"";(a=a.cause)&&!b[Dea(a)]&&(c+="\nCaused by: ",a.stack&&0==a.stack.indexOf(a.toString())||(c+="string"===typeof a?a:a.message+"\n"),c+=Bea(a,b));return c},Dea=function(a){var b="";
"function"===typeof a.toString&&(b=""+a);return b+a.stack},Nh={};var Oh=function(a){this.document_=a||{cookie:""}};
e=Oh.prototype;e.isEnabled=function(){return navigator.cookieEnabled};
e.set=function(a,b,c){var d=!1;if("object"===typeof c){var f=c.sameSite;d=c.secure||!1;var g=c.domain||void 0;var l=c.path||void 0;var m=c.maxAge}if(/[;=\s]/.test(a))throw Error("Invalid cookie name \""+a+"\"");if(/[;\r\n]/.test(b))throw Error("Invalid cookie value \""+b+"\"");void 0===m&&(m=-1);c=g?";domain="+g:"";l=l?";path="+l:"";d=d?";secure":"";m=0>m?"":0==m?";expires="+new Date(1970,1,1).toUTCString():";expires="+new Date(Date.now()+1E3*m).toUTCString();this.document_.cookie=a+"="+b+c+l+m+d+(
null!=f?";samesite="+f:"")};
e.get=function(a,b){for(var c=a+"=",d=(this.document_.cookie||"").split(";"),f=0,g;f<d.length;f++){g=Ob(d[f]);if(0==g.lastIndexOf(c,0))return g.substr(c.length);if(g==a)return""}return b};
e.remove=function(a,b,c){var d=this.containsKey(a);this.set(a,"",{maxAge:0,path:b,domain:c});return d};
e.getKeys=function(){return Ph(this).keys};
e.getValues=function(){return Ph(this).values};
e.isEmpty=function(){return!this.document_.cookie};
e.getCount=function(){return this.document_.cookie?(this.document_.cookie||"").split(";").length:0};
e.containsKey=function(a){return void 0!==this.get(a)};
e.containsValue=function(a){for(var b=Ph(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};
e.clear=function(){for(var a=Ph(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var Ph=function(a){a=(a.document_.cookie||"").split(";");for(var b=[],c=[],d,f,g=0;g<a.length;g++)f=Ob(a[g]),d=f.indexOf("="),-1==d?(b.push(""),c.push(f)):(b.push(f.substring(0,d)),c.push(f.substring(d+1)));return{keys:b,values:c}},Qh=new Oh("undefined"==typeof document?null:document);var Eea=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?new Zf(b.innerWidth,b.innerHeight).round():ig(b).round()}catch(d){return new Zf(-12245933,-12245933)}},Fea=function(a,b,c){try{a&&(b=b.top);
var d=Eea(a,b,void 0===c?!1:c),f=lg(bg(b.document).document_);if(-12245933==d.width){var g=d.width;var l=new Vg(g,g,g,g)}else l=new Vg(f.y,f.x+d.width,f.y+d.height,f.x);return l}catch(m){return new Vg(-12245933,-12245933,-12245933,-12245933)}};var Gea=new Date().getTime();var Hea=function(a){if(!a)return"";a=a.split("#")[0].split("?")[0];a=a.toLowerCase();0==a.indexOf("//")&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");-1!=c&&(b=b.substring(0,c));c=a.substring(0,a.indexOf("://"));if(!c)throw Error("URI is missing protocol: "+a);if("http"!==c&&"https"!==c&&"chrome-extension"!==c&&"moz-extension"!==c&&"file"!==c&&"android-app"!==c&&"chrome-search"!==c&&"chrome-untrusted"!==c&&
"chrome"!==c&&"app"!==c&&"devtools"!==c)throw Error("Invalid URI scheme in origin: "+c);a="";var d=b.indexOf(":");if(-1!=d){var f=b.substring(d+1);b=b.substring(0,d);if("http"===c&&"80"!==f||"https"===c&&"443"!==f)a=":"+f}return c+"://"+b+a};var Iea=function(){function a(){f[0]=1732584193;f[1]=4023233417;f[2]=2562383102;f[3]=271733878;f[4]=3285377520;v=r=0}
function b(z){for(var C=l,J=0;64>J;J+=4)C[J/4]=z[J]<<24|z[J+1]<<16|z[J+2]<<8|z[J+3];for(J=16;80>J;J++)z=C[J-3]^C[J-8]^C[J-14]^C[J-16],C[J]=(z<<1|z>>>31)&4294967295;z=f[0];var E=f[1],S=f[2],la=f[3],qa=f[4];for(J=0;80>J;J++){if(40>J){if(20>J){var Ia=la^E&(S^la);var yb=1518500249}else Ia=E^S^la,yb=1859775393;}else 60>J?(Ia=E&S|la&(E|S),yb=2400959708):(Ia=E^S^la,yb=3395469782);Ia=((z<<5|z>>>27)&4294967295)+Ia+qa+yb+C[J]&4294967295;qa=la;la=S;S=(E<<30|E>>>2)&4294967295;E=z;z=Ia}f[0]=f[0]+z&4294967295;f[1]=
f[1]+E&4294967295;f[2]=f[2]+S&4294967295;f[3]=f[3]+la&4294967295;f[4]=f[4]+qa&4294967295}
function c(z,C){if("string"===typeof z){z=unescape(encodeURIComponent(z));for(var J=[],E=0,S=z.length;E<S;++E)J.push(z.charCodeAt(E));z=J}C||(C=z.length);J=0;if(0==r)for(;J+64<C;)b(z.slice(J,J+64)),J+=64,v+=64;for(;J<C;)if(g[r++]=z[J++],v++,64==r)for(r=0,b(g);J+64<C;)b(z.slice(J,J+64)),J+=64,v+=64}
function d(){var z=[],C=8*v;56>r?c(m,56-r):c(m,64-(r-56));for(var J=63;56<=J;J--)g[J]=C&255,C>>>=8;b(g);for(J=C=0;5>J;J++)for(var E=24;0<=E;E-=8)z[C++]=f[J]>>E&255;return z}
for(var f=[],g=[],l=[],m=[128],n=1;64>n;++n)m[n]=0;var r,v;a();return{reset:a,update:c,digest:d,digestString:function(){for(var z=d(),C="",J=0;J<z.length;J++)C+="0123456789ABCDEF".charAt(Math.floor(z[J]/16))+"0123456789ABCDEF".charAt(z[J]%16);return C}}};var Kea=function(a,b,c){var d=[],f=[];if(1==(Array.isArray(c)?2:1))return f=[b,a],cb(d,function(m){f.push(m)}),Jea(f.join(" "));
var g=[],l=[];cb(c,function(m){l.push(m.key);g.push(m.value)});
c=Math.floor(new Date().getTime()/1E3);f=0==g.length?[c,b,a]:[g.join(":"),c,b,a];cb(d,function(m){f.push(m)});
a=Jea(f.join(" "));a=[c,a];0==l.length||a.push(l.join(""));return a.join("_")},Jea=function(a){var b=Iea();
b.update(a);return b.digestString().toLowerCase()};var Rh=function(a){var b=Hea(String(t.location.href)),c;(c=t.__SAPISID||t.__APISID||t.__OVERRIDE_SID)?c=!0:(c=new Oh(document),c=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID"),c=!!c);if(c&&(c=(b=0==b.indexOf("https:")||0==b.indexOf("chrome-extension:")||0==b.indexOf("moz-extension:"))?t.__SAPISID:t.__APISID,c||(c=new Oh(document),c=c.get(b?"SAPISID":"APISID")||c.get("__Secure-3PAPISID")),c)){b=b?"SAPISIDHASH":"APISIDHASH";var d=String(t.location.href);return d&&c&&b?[b,
Kea(Hea(d),c,a||null)].join(" "):null}return null};var Sh=function(a){this.cellValue_=a};
Sh.prototype.setCellValue=function(a){this.cellValue_=a};var Th=function(a,b,c){this.metricName_=a;this.cellType_=b;this.fields_=c||[];this.cellMap_=new Map};
e=Th.prototype;e.getFields=function(){return this.fields_};
e.addCell=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];(d=this.getCells(c))?d.push(new Sh(a)):this.setCell(a,c)};
e.setCell=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];c=this.getKey_(c);this.cellMap_.set(c,[new Sh(a)])};
e.getCells=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];b=this.getKey_(b);return this.cellMap_.has(b)?this.cellMap_.get(b):void 0};
e.getCell=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return(b=this.getCells(b))&&b.length?b[0]:void 0};
e.hasCell=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];b=this.getKey_(b);return this.cellMap_.has(b)};
e.clear=function(){this.cellMap_.clear()};
e.getKey_=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return b?b.join(","):"key"};var Uh=function(a){hf(this,a,0,-1,Lea,null)};
w(Uh,G);var Vh=function(a){hf(this,a,0,-1,null,null)};
w(Vh,G);var Lea=[1];Uh.prototype.toObject=function(a){return Mea(a,this)};
var Mea=function(a,b){var c={entryList:jf(b.getEntryList(),Nea,a)};a&&(c.$jspbMessageInstance=b);return c};
Uh.prototype.serializeBinary=function(){var a=new D;Oea(this,a);return F(a)};
var Oea=function(a,b){a=a.getEntryList();0<a.length&&We(b,1,a,Pea)};
Vh.prototype.toObject=function(a){return Nea(a,this)};
var Nea=function(a,b){var c,d={valueOrBucket:null==(c=mf(b,1))?void 0:c,count:null==(c=I(b,2))?void 0:c};a&&(d.$jspbMessageInstance=b);return d};
Vh.prototype.serializeBinary=function(){var a=new D;Pea(this,a);return F(a)};
var Pea=function(a,b){var c=I(a,1);null!=c&&b.writeDouble(1,c);c=I(a,2);null!=c&&b.writeInt64(2,c)};
e=Vh.prototype;e.getValueOrBucket=function(){return mf(this,1)};
e.setValueOrBucket=function(a){return uf(this,1,a)};
e.clearValueOrBucket=function(){return wf(this,1)};
e.hasValueOrBucket=function(){return K(this,1)};
e.getCount=function(){return I(this,2)};
e.setCount=function(a){return uf(this,2,a)};
e.clearCount=function(){return wf(this,2)};
e.hasCount=function(){return K(this,2)};
Uh.prototype.getEntryList=function(){return Mf(this,Vh,1)};
Uh.prototype.setEntryList=function(a){return Af(this,1,a)};
Uh.prototype.addEntry=function(a,b){return Nf(this,1,a,Vh,b)};
Uh.prototype.clearEntryList=function(){return Bf(this,1)};var Wh=function(a){hf(this,a,0,-1,Qea,null)};
w(Wh,G);var Yh=function(a){hf(this,a,0,-1,null,Xh)};
w(Yh,G);var Zh=function(a){hf(this,a,0,-1,null,null)};
w(Zh,G);var $h=function(a){hf(this,a,0,-1,null,null)};
w($h,G);var ai=function(a){hf(this,a,0,-1,Rea,null)};
w(ai,G);var ci=function(a){hf(this,a,0,-1,null,bi)};
w(ci,G);var ei=function(a){hf(this,a,0,-1,null,di)};
w(ei,G);var Qea=[3,6,4];Wh.prototype.toObject=function(a){var b,c={streamzName:null==(b=I(this,1))?void 0:b,hashedStreamzName:null==(b=I(this,5))?void 0:b,rootSpec:(b=M(this,Yh,2))&&Sea(a,b),fieldNameList:null==(b=I(this,3))?void 0:b,hashedFieldNameList:null==(b=I(this,6))?void 0:b,incList:jf(Mf(this,ai,4),Tea,a)};a&&(c.$jspbMessageInstance=this);return c};
Wh.prototype.serializeBinary=function(){var a=new D;var b=I(this,1);null!=b&&a.writeString(1,b);b=I(this,5);null!=b&&Qe(a,5,b);b=M(this,Yh,2);null!=b&&a.writeMessage(2,b,Uea);b=I(this,3);0<b.length&&Ve(a,3,b);b=I(this,6);if(0<b.length&&null!=b)for(var c=0;c<b.length;c++)Qe(a,6,b[c]);b=Mf(this,ai,4);0<b.length&&We(a,4,b,Vea);return F(a)};
var Xh=[[1,2]];Yh.prototype.getSpecCase=function(){return gf(this,Xh[0])};
Yh.prototype.toObject=function(a){return Sea(a,this)};
var Sea=function(a,b){var c,d={mobile:(c=M(b,Zh,1))&&Wea(a,c),mobileExp:(c=M(b,$h,2))&&Xea(a,c)};a&&(d.$jspbMessageInstance=b);return d};
Yh.prototype.serializeBinary=function(){var a=new D;Uea(this,a);return F(a)};
var Uea=function(a,b){var c=M(a,Zh,1);null!=c&&b.writeMessage(1,c,Yea);c=M(a,$h,2);null!=c&&b.writeMessage(2,c,Zea)};
Zh.prototype.toObject=function(a){return Wea(a,this)};
var Wea=function(a,b){var c,d={appName:null==(c=I(b,1))?void 0:c,appVersion:null==(c=I(b,2))?void 0:c,useMobilespec:null==(c=nf(b,3))?void 0:c};a&&(d.$jspbMessageInstance=b);return d};
Zh.prototype.serializeBinary=function(){var a=new D;Yea(this,a);return F(a)};
var Yea=function(a,b){var c=I(a,1);null!=c&&b.writeString(1,c);c=I(a,2);null!=c&&b.writeString(2,c);c=I(a,3);null!=c&&b.writeBool(3,c)};
e=Zh.prototype;e.getAppName=function(){return I(this,1)};
e.setAppName=function(a){return uf(this,1,a)};
e.clearAppName=function(){return wf(this,1)};
e.hasAppName=function(){return K(this,1)};
e.getAppVersion=function(){return I(this,2)};
e.setAppVersion=function(a){return uf(this,2,a)};
e.clearAppVersion=function(){return wf(this,2)};
e.hasAppVersion=function(){return K(this,2)};
e.getUseMobilespec=function(){return nf(this,3)};
e.setUseMobilespec=function(a){return uf(this,3,a)};
e.clearUseMobilespec=function(){return wf(this,3)};
e.hasUseMobilespec=function(){return K(this,3)};
$h.prototype.toObject=function(a){return Xea(a,this)};
var Xea=function(a,b){var c,d={appName:null==(c=I(b,1))?void 0:c,appVersion:null==(c=I(b,2))?void 0:c,experimentId:null==(c=I(b,3))?void 0:c,useMobilespec:null==(c=nf(b,4))?void 0:c};a&&(d.$jspbMessageInstance=b);return d};
$h.prototype.serializeBinary=function(){var a=new D;Zea(this,a);return F(a)};
var Zea=function(a,b){var c=I(a,1);null!=c&&b.writeString(1,c);c=I(a,2);null!=c&&b.writeString(2,c);c=I(a,3);null!=c&&b.writeInt32(3,c);c=I(a,4);null!=c&&b.writeBool(4,c)};
e=$h.prototype;e.getAppName=function(){return I(this,1)};
e.setAppName=function(a){return uf(this,1,a)};
e.clearAppName=function(){return wf(this,1)};
e.hasAppName=function(){return K(this,1)};
e.getAppVersion=function(){return I(this,2)};
e.setAppVersion=function(a){return uf(this,2,a)};
e.clearAppVersion=function(){return wf(this,2)};
e.hasAppVersion=function(){return K(this,2)};
e.getExperimentId=function(){return I(this,3)};
e.setExperimentId=function(a){return uf(this,3,a)};
e.clearExperimentId=function(){return wf(this,3)};
e.hasExperimentId=function(){return K(this,3)};
e.getUseMobilespec=function(){return nf(this,4)};
e.setUseMobilespec=function(a){return uf(this,4,a)};
e.clearUseMobilespec=function(){return wf(this,4)};
e.hasUseMobilespec=function(){return K(this,4)};
e=Yh.prototype;e.setMobile=function(a){return Ef(this,1,Xh[0],a)};
e.clearMobile=function(){return Ff(this,1,Xh[0])};
e.hasMobile=function(){return K(this,1)};
e.setMobileExp=function(a){return Ef(this,2,Xh[0],a)};
e.clearMobileExp=function(){return Ff(this,2,Xh[0])};
e.hasMobileExp=function(){return K(this,2)};
var Rea=[1];ai.prototype.toObject=function(a){return Tea(a,this)};
var Tea=function(a,b){var c,d={fieldList:jf(Mf(b,ci,1),$ea,a),incBy:(c=M(b,ei,2))&&afa(a,c)};a&&(d.$jspbMessageInstance=b);return d};
ai.prototype.serializeBinary=function(){var a=new D;Vea(this,a);return F(a)};
var Vea=function(a,b){var c=Mf(a,ci,1);0<c.length&&We(b,1,c,bfa);c=M(a,ei,2);null!=c&&b.writeMessage(2,c,cfa)},bi=[[1,
2,3]];ci.prototype.getValueCase=function(){return gf(this,bi[0])};
ci.prototype.toObject=function(a){return $ea(a,this)};
var $ea=function(a,b){var c,d={strVal:null==(c=I(b,1))?void 0:c,intVal:null==(c=I(b,2))?void 0:c,boolVal:null==(c=nf(b,3))?void 0:c};a&&(d.$jspbMessageInstance=b);return d};
ci.prototype.serializeBinary=function(){var a=new D;bfa(this,a);return F(a)};
var bfa=function(a,b){var c=I(a,1);null!=c&&b.writeString(1,c);c=I(a,2);null!=c&&b.writeInt32(2,c);c=I(a,3);null!=c&&b.writeBool(3,c)};
e=ci.prototype;e.getStrVal=function(){return I(this,1)};
e.clearStrVal=function(){return Df(this,1,bi[0])};
e.hasStrVal=function(){return K(this,1)};
e.getIntVal=function(){return I(this,2)};
e.clearIntVal=function(){return Df(this,2,bi[0])};
e.hasIntVal=function(){return K(this,2)};
e.getBoolVal=function(){return nf(this,3)};
e.clearBoolVal=function(){return Df(this,3,bi[0])};
e.hasBoolVal=function(){return K(this,3)};
var di=[[1,2,3]];ei.prototype.getValueCase=function(){return gf(this,di[0])};
ei.prototype.toObject=function(a){return afa(a,this)};
var afa=function(a,b){var c,d={int64Val:null==(c=I(b,1))?void 0:c,doubleVal:null==(c=mf(b,2))?void 0:c,histogramVal:(c=M(b,Uh,3))&&Mea(a,c)};a&&(d.$jspbMessageInstance=b);return d};
ei.prototype.serializeBinary=function(){var a=new D;cfa(this,a);return F(a)};
var cfa=function(a,b){var c=I(a,1);null!=c&&b.writeInt64(1,c);c=I(a,2);null!=c&&b.writeDouble(2,c);c=M(a,Uh,3);null!=c&&b.writeMessage(3,c,Oea)};
e=ei.prototype;e.getInt64Val=function(){return I(this,1)};
e.clearInt64Val=function(){return Df(this,1,di[0])};
e.hasInt64Val=function(){return K(this,1)};
e.getDoubleVal=function(){return mf(this,2)};
e.clearDoubleVal=function(){return Df(this,2,di[0])};
e.hasDoubleVal=function(){return K(this,2)};
e.setHistogramVal=function(a){return Ef(this,3,di[0],a)};
e.clearHistogramVal=function(){return Ff(this,3,di[0])};
e.hasHistogramVal=function(){return K(this,3)};
ai.prototype.addField=function(a,b){return Nf(this,1,a,ci,b)};
ai.prototype.clearFieldList=function(){return Bf(this,1)};
ai.prototype.clearIncBy=function(){return zf(this,2)};
ai.prototype.hasIncBy=function(){return K(this,2)};
e=Wh.prototype;e.getStreamzName=function(){return I(this,1)};
e.clearStreamzName=function(){return wf(this,1)};
e.hasStreamzName=function(){return K(this,1)};
e.getHashedStreamzName=function(){return I(this,5)};
e.setHashedStreamzName=function(a){return uf(this,5,a)};
e.clearHashedStreamzName=function(){return wf(this,5)};
e.hasHashedStreamzName=function(){return K(this,5)};
e.setRootSpec=function(a){return yf(this,2,a)};
e.clearRootSpec=function(){return zf(this,2)};
e.hasRootSpec=function(){return K(this,2)};
e.addFieldName=function(a,b){return Lf(this,3,a,b)};
e.clearFieldNameList=function(){return xf(this,3)};
e.setHashedFieldNameList=function(a){return uf(this,6,a||[])};
e.addHashedFieldName=function(a,b){return Lf(this,6,a,b)};
e.clearHashedFieldNameList=function(){return xf(this,6)};
e.addInc=function(a,b){return Nf(this,4,a,ai,b)};
e.clearIncList=function(){return Bf(this,4)};var fi=function(a,b){Th.call(this,a,3,b)};
p(fi,Th);fi.prototype.incrementCounter=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];this.incrementCounterBy(1,b)};
fi.prototype.incrementCounterBy=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];d=0;var f=this.getCell(c);f&&(d=f.cellValue_);this.setCell(d+a,c)};var gi=function(a,b){Th.call(this,a,2,b)};
p(gi,Th);gi.prototype.record=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.addCell(a,c)};var hi=function(a){this.id=a};
hi.prototype.toString=function(){return this.id};var ii=function(a,b){this.type=a instanceof hi?String(a):a;this.currentTarget=this.target=b;this.defaultPrevented=this.propagationStopped_=!1};
ii.prototype.stopPropagation=function(){this.propagationStopped_=!0};
ii.prototype.preventDefault=function(){this.defaultPrevented=!0};
var dfa=function(a){a.preventDefault()};var efa=!te||Ge(9),ffa=!te||Ge(9),gfa=te&&!Fe("9"),hfa=!ye||Fe("528"),ifa=we&&Fe("1.9b")||te&&Fe("8")||se&&Fe("9.5")||ye&&Fe("528"),jfa=we&&!Fe("8")||te&&!Fe("9"),kfa=function(){if(!t.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});
try{t.addEventListener("test",Ka,b),t.removeEventListener("test",Ka,b)}catch(c){}return a}();var ji=function(a,b){ii.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.platformModifierKey=!1;this.pointerId=0;this.pointerType="";this.event_=null;a&&this.init(a,b)};
w(ji,ii);var lfa=[1,4,2],mfa={2:"touch",3:"pen",4:"mouse"};
ji.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;(b=a.relatedTarget)?we&&(re(b,"nodeName")||(b=null)):"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.offsetX=ye||void 0!==a.offsetX?
a.offsetX:a.layerX,this.offsetY=ye||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.key=a.key||"";this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.platformModifierKey=ze?a.metaKey:a.ctrlKey;this.pointerId=
a.pointerId||0;this.pointerType="string"===typeof a.pointerType?a.pointerType:mfa[a.pointerType]||"";this.state=a.state;this.event_=a;a.defaultPrevented&&this.preventDefault()};
ji.prototype.stopPropagation=function(){ji.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
ji.prototype.preventDefault=function(){ji.superClass_.preventDefault.call(this);var a=this.event_;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,gfa)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var nfa="closure_listenable_"+(1E6*Math.random()|0),li=function(a){return!(!a||!a[nfa])},ofa=0;var pfa=function(a,b,c,d,f){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.handler=f;this.key=++ofa;this.removed=this.callOnce=!1},mi=function(a){a.removed=!0;
a.listener=null;a.proxy=null;a.src=null;a.handler=null};var ni=function(a){this.src=a;this.listeners={};this.typeCount_=0};
ni.prototype.getListenerCount=function(){var a=0,b;for(b in this.listeners)a+=this.listeners[b].length;return a};
ni.prototype.add=function(a,b,c,d,f){var g=a.toString();a=this.listeners[g];a||(a=this.listeners[g]=[],this.typeCount_++);var l=oi(a,b,d,f);-1<l?(b=a[l],c||(b.callOnce=!1)):(b=new pfa(b,this.src,g,!!d,f),b.callOnce=c,a.push(b));return b};
ni.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var f=this.listeners[a];b=oi(f,b,c,d);return-1<b?(mi(f[b]),nb(f,b),0==f.length&&(delete this.listeners[a],this.typeCount_--),!0):!1};
var pi=function(a,b){var c=b.type;if(!(c in a.listeners))return!1;var d=mb(a.listeners[c],b);d&&(mi(b),0==a.listeners[c].length&&(delete a.listeners[c],a.typeCount_--));return d};
ni.prototype.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.listeners)if(!a||c==a){for(var d=this.listeners[c],f=0;f<d.length;f++)++b,mi(d[f]);delete this.listeners[c];this.typeCount_--}return b};
ni.prototype.getListeners=function(a,b){a=this.listeners[a.toString()];var c=[];if(a)for(var d=0;d<a.length;++d){var f=a[d];f.capture==b&&c.push(f)}return c};
ni.prototype.getListener=function(a,b,c,d){a=this.listeners[a.toString()];var f=-1;a&&(f=oi(a,b,c,d));return-1<f?a[f]:null};
ni.prototype.hasListener=function(a,b){var c=void 0!==a,d=c?a.toString():"",f=void 0!==b;return A.some(this.listeners,function(g){for(var l=0;l<g.length;++l)if(!(c&&g[l].type!=d||f&&g[l].capture!=b))return!0;return!1})};
var oi=function(a,b,c,d){for(var f=0;f<a.length;++f){var g=a[f];if(!g.removed&&g.listener==b&&g.capture==!!c&&g.handler==d)return f}return-1};var qi="closure_lm_"+(1E6*Math.random()|0),ri={},qfa=0,ti=function(a,b,c,d,f){if(d&&d.once)return si(a,b,c,d,f);if(Array.isArray(b)){for(var g=0;g<b.length;g++)ti(a,b[g],c,d,f);return null}c=ui(c);return li(a)?a.listen(b,c,Pa(d)?!!d.capture:!!d,f):rfa(a,b,c,!1,d,f)},rfa=function(a,b,c,d,f,g){if(!b)throw Error("Invalid event type");
var l=Pa(f)?!!f.capture:!!f,m=vi(a);m||(a[qi]=m=new ni(a));c=m.add(b,c,d,l,g);if(c.proxy)return c;d=sfa();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)kfa||(f=l),void 0===f&&(f=!1),a.addEventListener(b.toString(),d,f);else if(a.attachEvent)a.attachEvent(tfa(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");qfa++;return c},sfa=function(){var a=ufa,b=ffa?function(c){return a.call(b.src,b.listener,c)}:
function(c){c=a.call(b.src,b.listener,c);
if(!c)return c};
return b},si=function(a,b,c,d,f){if(Array.isArray(b)){for(var g=0;g<b.length;g++)si(a,b[g],c,d,f);
return null}c=ui(c);return li(a)?a.listenOnce(b,c,Pa(d)?!!d.capture:!!d,f):rfa(a,b,c,!0,d,f)},wi=function(a,b,c,d,f){if(Array.isArray(b))for(var g=0;g<b.length;g++)wi(a,b[g],c,d,f);else
d=Pa(d)?!!d.capture:!!d,c=ui(c),li(a)?a.unlisten(b,c,d,f):a&&(a=vi(a))&&(b=a.getListener(b,c,d,f))&&xi(b)},xi=function(a){if("number"===typeof a||!a||a.removed)return!1;
var b=a.src;if(li(b))return pi(b.eventTargetListeners_,a);var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(tfa(c),d):b.addListener&&b.removeListener&&b.removeListener(d);qfa--;(c=vi(b))?(pi(c,a),0==c.typeCount_&&(c.src=null,b[qi]=null)):mi(a);return!0},vfa=function(a,b,c,d,f){c=ui(c);
d=!!d;return li(a)?a.getListener(b,c,d,f):a?(a=vi(a))?a.getListener(b,c,d,f):null:null},tfa=function(a){return a in ri?ri[a]:ri[a]="on"+a},xfa=function(a,b,c,d){var f=!0;
if(a=vi(a))if(b=a.listeners[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var g=b[a];g&&g.capture==c&&!g.removed&&(g=wfa(g,d),f=f&&!1!==g)}return f},wfa=function(a,b){var c=a.listener,d=a.handler||a.src;
a.callOnce&&xi(a);return c.call(d,b)},ufa=function(a,b){if(a.removed)return!0;
if(!ffa){var c=b||Ja("window.event");b=new ji(c,this);var d=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){a:{var f=!1;if(0==c.keyCode)try{c.keyCode=-1;break a}catch(l){f=!0}if(f||void 0==c.returnValue)c.returnValue=!0}c=[];for(f=b.currentTarget;f;f=f.parentNode)c.push(f);a=a.type;for(f=c.length-1;!b.propagationStopped_&&0<=f;f--){b.currentTarget=c[f];var g=xfa(c[f],a,!0,b);d=d&&g}for(f=0;!b.propagationStopped_&&f<c.length;f++)b.currentTarget=c[f],g=xfa(c[f],a,!1,b),d=d&&g}return d}return wfa(a,new ji(b,
this))},vi=function(a){a=a[qi];
return a instanceof ni?a:null},yi="__closure_events_fn_"+(1E9*Math.random()>>>0),ui=function(a){if("function"===typeof a)return a;
a[yi]||(a[yi]=function(b){return a.handleEvent(b)});
return a[yi]};var zi=function(){Tg.call(this);this.eventTargetListeners_=new ni(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
w(zi,Tg);zi.prototype[nfa]=!0;e=zi.prototype;e.setParentEventTarget=function(a){this.parentEventTarget_=a};
e.addEventListener=function(a,b,c,d){ti(this,a,b,c,d)};
e.removeEventListener=function(a,b,c,d){wi(this,a,b,c,d)};
e.dispatchEvent=function(a){var b,c=this.parentEventTarget_;if(c)for(b=[];c;c=c.parentEventTarget_)b.push(c);c=this.actualEventTarget_;var d=a.type||a;if("string"===typeof a)a=new ii(a,c);else if(a instanceof ii)a.target=a.target||c;else{var f=a;a=new ii(d,c);A.extend(a,f)}f=!0;if(b)for(var g=b.length-1;!a.propagationStopped_&&0<=g;g--){var l=a.currentTarget=b[g];f=Ai(l,d,!0,a)&&f}a.propagationStopped_||(l=a.currentTarget=c,f=Ai(l,d,!0,a)&&f,a.propagationStopped_||(f=Ai(l,d,!1,a)&&f));if(b)for(g=
0;!a.propagationStopped_&&g<b.length;g++)l=a.currentTarget=b[g],f=Ai(l,d,!1,a)&&f;return f};
e.disposeInternal=function(){zi.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
e.listen=function(a,b,c,d){return this.eventTargetListeners_.add(String(a),b,!1,c,d)};
e.listenOnce=function(a,b,c,d){return this.eventTargetListeners_.add(String(a),b,!0,c,d)};
e.unlisten=function(a,b,c,d){return this.eventTargetListeners_.remove(String(a),b,c,d)};
e.removeAllListeners=function(a){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(a):0};
var Ai=function(a,b,c,d){b=a.eventTargetListeners_.listeners[String(b)];if(!b)return!0;b=b.concat();for(var f=!0,g=0;g<b.length;++g){var l=b[g];if(l&&!l.removed&&l.capture==c){var m=l.listener,n=l.handler||l.src;l.callOnce&&pi(a.eventTargetListeners_,l);f=!1!==m.call(n,d)&&f}}return f&&!d.defaultPrevented};
e=zi.prototype;e.getListeners=function(a,b){return this.eventTargetListeners_.getListeners(String(a),b)};
e.getListener=function(a,b,c,d){return this.eventTargetListeners_.getListener(String(a),b,c,d)};
e.hasListener=function(a,b){return this.eventTargetListeners_.hasListener(void 0!==a?String(a):void 0,b)};
e.setTargetForTesting=function(a){this.actualEventTarget_=a};
e.assertInitialized_=function(){};var Bi=function(a,b){this.limit_=100;this.create_=a;this.reset_=b;this.occupants_=0;this.head_=null};
Bi.prototype.get=function(){if(0<this.occupants_){this.occupants_--;var a=this.head_;this.head_=a.next;a.next=null}else a=this.create_();return a};
Bi.prototype.put=function(a){this.reset_(a);this.occupants_<this.limit_&&(this.occupants_++,a.next=this.head_,this.head_=a)};
Bi.prototype.occupants=function(){return this.occupants_};var Di=function(a){a=yfa(a);"function"!==typeof t.setImmediate||t.Window&&t.Window.prototype&&!fc("Edge")&&t.Window.prototype.setImmediate==t.setImmediate?(Ci||(Ci=zfa()),Ci(a)):t.setImmediate(a)},Ci,zfa=function(){var a=t.MessageChannel;
"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!fc("Presto")&&(a=function(){var f=pg("IFRAME");f.style.display="none";document.documentElement.appendChild(f);var g=f.contentWindow;f=g.document;f.open();f.close();var l="callImmediate"+Math.random(),m="file:"==g.location.protocol?"*":g.location.protocol+"//"+g.location.host;f=u(function(n){if(("*"==m||n.origin==m)&&n.data==l)this.port1.onmessage()},this);
g.addEventListener("message",f,!1);this.port1={};this.port2={postMessage:function(){g.postMessage(l,m)}}});
if("undefined"!==typeof a&&!gc()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var f=c.cb;c.cb=null;f()}};
return function(f){d.next={cb:f};d=d.next;b.port2.postMessage(0)}}return function(f){t.setTimeout(f,0)}},yfa=ub;function Afa(a){t.setTimeout(function(){throw a},0)}
;var Ei=function(){this.workTail_=this.workHead_=null};
Ei.prototype.add=function(a,b){var c=Bfa.get();c.set(a,b);this.workTail_?this.workTail_.next=c:this.workHead_=c;this.workTail_=c};
Ei.prototype.remove=function(){var a=null;this.workHead_&&(a=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),a.next=null);return a};
var Bfa=new Bi(function(){return new Fi},function(a){return a.reset()}),Fi=function(){this.next=this.scope=this.fn=null};
Fi.prototype.set=function(a,b){this.fn=a;this.scope=b;this.next=null};
Fi.prototype.reset=function(){this.next=this.scope=this.fn=null};var Ii=function(a,b){Gi||Cfa();Hi||(Gi(),Hi=!0);Dfa.add(a,b)},Gi,Cfa=function(){if(t.Promise&&t.Promise.resolve){var a=t.Promise.resolve(void 0);
Gi=function(){a.then(Efa)}}else Gi=function(){Di(Efa)}},Hi=!1,Dfa=new Ei,Efa=function(){for(var a;a=Dfa.remove();){try{a.fn.call(a.scope)}catch(b){Afa(b)}Bfa.put(a)}Hi=!1};var Ji=function(a){a.prototype.$goog_Thenable=!0},Ki=function(a){if(!a)return!1;
try{return!!a.$goog_Thenable}catch(b){return!1}};var Li=function(a,b){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(a!=Ka)try{var c=this;a.call(b,function(d){c.resolve_(2,d)},function(d){c.resolve_(3,d)})}catch(d){this.resolve_(3,d)}},Ffa=function(){this.next=this.context=this.onRejected=this.onFulfilled=this.child=null;
this.always=!1};
Ffa.prototype.reset=function(){this.context=this.onRejected=this.onFulfilled=this.child=null;this.always=!1};
var Gfa=new Bi(function(){return new Ffa},function(a){a.reset()}),Mi=function(a,b,c){var d=Gfa.get();
d.onFulfilled=a;d.onRejected=b;d.context=c;return d},Ni=function(a){if(a instanceof Li)return a;
var b=new Li(Ka);b.resolve_(2,a);return b},Oi=function(a){return new Li(function(b,c){c(a)})},Pi=function(a,b,c){Hfa(a,b,c,null)||Ii(Ta(b,a))},Qi=function(a){return new Li(function(b,c){var d=a.length,f=[];
if(d)for(var g=function(r,v){d--;f[r]=v;0==d&&b(f)},l=function(r){c(r)},m=0,n;m<a.length;m++)n=a[m],Pi(n,Ta(g,m),l);else
b(f)})},Ifa=function(a){return new Li(function(b){var c=a.length,d=[];
if(c)for(var f=function(m,n,r){c--;d[m]=n?{fulfilled:!0,value:r}:{fulfilled:!1,reason:r};0==c&&b(d)},g=0,l;g<a.length;g++)l=a[g],Pi(l,Ta(f,g,!0),Ta(f,g,!1));else
b(d)})},Jfa=function(a){return new Li(function(b,c){var d=a.length,f=[];
if(d)for(var g=function(r){b(r)},l=function(r,v){d--;
f[r]=v;0==d&&c(f)},m=0,n;m<a.length;m++)n=a[m],Pi(n,g,Ta(l,m));else
b(void 0)})},Ri=function(){var a,b,c=new Li(function(d,f){a=d;
b=f});
return new Kfa(c,a,b)};
Li.prototype.then=function(a,b,c){return Lfa(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};
Ji(Li);var Ti=function(a,b){b=Mi(b,b,void 0);b.always=!0;Si(a,b);return a},Ui=function(a,b,c){return Lfa(a,null,b,c)};
Li.prototype.cancel=function(a){if(0==this.state_){var b=new Vi(a);Ii(function(){Mfa(this,b)},this)}};
var Mfa=function(a,b){if(0==a.state_)if(a.parent_){var c=a.parent_;if(c.callbackEntries_){for(var d=0,f=null,g=null,l=c.callbackEntries_;l&&(l.always||(d++,l.child==a&&(f=l),!(f&&1<d)));l=l.next)f||(g=l);f&&(0==c.state_&&1==d?Mfa(c,b):(g?(d=g,d.next==c.callbackEntriesTail_&&(c.callbackEntriesTail_=d),d.next=d.next.next):Nfa(c),Ofa(c,f,3,b)))}a.parent_=null}else a.resolve_(3,b)},Si=function(a,b){a.callbackEntries_||2!=a.state_&&3!=a.state_||Pfa(a);
a.callbackEntriesTail_?a.callbackEntriesTail_.next=b:a.callbackEntries_=b;a.callbackEntriesTail_=b},Lfa=function(a,b,c,d){var f=Mi(null,null,null);
f.child=new Li(function(g,l){f.onFulfilled=b?function(m){try{var n=b.call(d,m);g(n)}catch(r){l(r)}}:g;
f.onRejected=c?function(m){try{var n=c.call(d,m);void 0===n&&m instanceof Vi?l(m):g(n)}catch(r){l(r)}}:l});
f.child.parent_=a;Si(a,f);return f.child};
Li.prototype.unblockAndFulfill_=function(a){this.state_=0;this.resolve_(2,a)};
Li.prototype.unblockAndReject_=function(a){this.state_=0;this.resolve_(3,a)};
Li.prototype.resolve_=function(a,b){0==this.state_&&(this===b&&(a=3,b=new TypeError("Promise cannot resolve to itself")),this.state_=1,Hfa(b,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=b,this.state_=a,this.parent_=null,Pfa(this),3!=a||b instanceof Vi||Qfa(this,b)))};
var Hfa=function(a,b,c,d){if(a instanceof Li)return Si(a,Mi(b||Ka,c||null,d)),!0;if(Ki(a))return a.then(b,c,d),!0;if(Pa(a))try{var f=a.then;if("function"===typeof f)return Rfa(a,f,b,c,d),!0}catch(g){return c.call(d,g),!0}return!1},Rfa=function(a,b,c,d,f){var g=!1,l=function(n){g||(g=!0,c.call(f,n))},m=function(n){g||(g=!0,d.call(f,n))};
try{b.call(a,l,m)}catch(n){m(n)}},Pfa=function(a){a.executing_||(a.executing_=!0,Ii(a.executeCallbacks_,a))},Nfa=function(a){var b=null;
a.callbackEntries_&&(b=a.callbackEntries_,a.callbackEntries_=b.next,b.next=null);a.callbackEntries_||(a.callbackEntriesTail_=null);return b};
Li.prototype.executeCallbacks_=function(){for(var a;a=Nfa(this);)Ofa(this,a,this.state_,this.result_);this.executing_=!1};
var Ofa=function(a,b,c,d){if(3==c&&b.onRejected&&!b.always)for(;a&&a.hadUnhandledRejection_;a=a.parent_)a.hadUnhandledRejection_=!1;if(b.child)b.child.parent_=null,Sfa(b,c,d);else try{b.always?b.onFulfilled.call(b.context):Sfa(b,c,d)}catch(f){Wi.call(null,f)}Gfa.put(b)},Sfa=function(a,b,c){2==b?a.onFulfilled.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)};
Li.prototype.addStackTrace_=function(){};
Li.prototype.appendLongStack_=function(){};
var Qfa=function(a,b){a.hadUnhandledRejection_=!0;Ii(function(){a.hadUnhandledRejection_&&Wi.call(null,b)})},Wi=Afa,Vi=function(a){Za.call(this,a);
this.reportErrorToServer=!1};
w(Vi,Za);Vi.prototype.name="cancel";var Kfa=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c};var Xi=function(a,b){zi.call(this);this.interval_=a||1;this.timerObject_=b||t;this.boundTick_=u(this.tick_,this);this.last_=Va()};
w(Xi,zi);e=Xi.prototype;e.enabled=!1;e.timer_=null;e.getInterval=function(){return this.interval_};
e.setInterval=function(a){this.interval_=a;this.timer_&&this.enabled?(this.stop(),this.start()):this.timer_&&this.stop()};
e.tick_=function(){if(this.enabled){var a=Va()-this.last_;0<a&&a<.8*this.interval_?this.timer_=this.timerObject_.setTimeout(this.boundTick_,this.interval_-a):(this.timer_&&(this.timerObject_.clearTimeout(this.timer_),this.timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
e.start=function(){this.enabled=!0;this.timer_||(this.timer_=this.timerObject_.setTimeout(this.boundTick_,this.interval_),this.last_=Va())};
e.stop=function(){this.enabled=!1;this.timer_&&(this.timerObject_.clearTimeout(this.timer_),this.timer_=null)};
e.disposeInternal=function(){Xi.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
var Yi=function(a,b,c){if("function"===typeof a)c&&(a=u(a,c));else if(a&&"function"==typeof a.handleEvent)a=u(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:t.setTimeout(a,b||0)},Zi=function(a){t.clearTimeout(a)},$i=function(a){var b=null;
return Ui(new Li(function(c,d){b=Yi(function(){c(void 0)},a);
-1==b&&d(Error("Failed to schedule timer."))}),function(c){Zi(b);
throw c})};var aj=function(){this.streamzLogger_=new Tfa;this.metricMap=new Map;this.disabledMetrics_=new Set;this.invocationCount=0;this.invocationLimit=100;this.flushInterval=3E4;this.flushTimer=new Xi(this.flushInterval);this.flushTimer.listen("tick",this.snapshotAndFlush,!1,this)};
aj.prototype.setFlushInterval=function(a){this.flushInterval=a;this.flushTimer.setInterval(a)};
var Ufa=function(a){a.flushTimer.enabled||a.flushTimer.start();a.invocationCount++;a.invocationCount>=a.invocationLimit&&a.snapshotAndFlush()};
e=aj.prototype;e.snapshotAndFlush=function(){var a=this.metricMap.values();a=[].concat(fa(a)).filter(function(b){return b.cellMap_.size});
a.length&&this.streamzLogger_.flush(a);Vfa(a);this.invocationCount=0;this.flushTimer.enabled&&this.flushTimer.stop()};
e.setDisabledMetrics=function(a){this.disabledMetrics_=new Set(a)};
e.addNewCounter=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.metricMap.has(a)||this.metricMap.set(a,new fi(a,c))};
e.addNewEventMetric=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.metricMap.has(a)||this.metricMap.set(a,new gi(a,c))};
e.getMetric=function(a){return this.disabledMetrics_.has(a)?void 0:this.metricMap.get(a)};
e.incrementCounter=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.incrementCounterBy.apply(this,[a,1].concat(fa(c)))};
e.incrementCounterBy=function(a,b,c){for(var d=[],f=2;f<arguments.length;++f)d[f-2]=arguments[f];(f=this.getMetric(a))&&f instanceof fi&&(f.incrementCounterBy(b,d),Ufa(this))};
e.record=function(a,b,c){for(var d=[],f=2;f<arguments.length;++f)d[f-2]=arguments[f];(f=this.getMetric(a))&&f instanceof gi&&(f.record(b,d),Ufa(this))};
var Vfa=function(a){for(var b=0;b<a.length;b++)a[b].clear()};/*
 *****************************************************************************
Copyright (C) Microsoft. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

See the License for the specific language governing permissions and
limitations under the License.
*****************************************************************************/
var Wfa=Wfa||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},Xfa;(function(a){function b(ma,sa,pa){var jb=yb.get(ma);if(!jb){if(!pa)return;jb=new qa;yb.set(ma,jb)}ma=jb.get(sa);if(!ma){if(!pa)return;ma=new qa;jb.set(sa,ma)}return ma}
function c(ma,sa,pa){if(d(ma,sa,pa))return!0;sa=C(sa);return null!==sa?c(ma,sa,pa):!1}
function d(ma,sa,pa){sa=b(sa,pa,!1);return void 0===sa?!1:!!sa.has(ma)}
function f(ma,sa,pa){if(d(ma,sa,pa))return g(ma,sa,pa);sa=C(sa);if(null!==sa)return f(ma,sa,pa)}
function g(ma,sa,pa){sa=b(sa,pa,!1);if(void 0!==sa)return sa.get(ma)}
function l(ma,sa){var pa=m(ma,sa);ma=C(ma);if(null===ma)return pa;var jb=l(ma,sa);if(0>=jb.length)return pa;if(0>=pa.length)return jb;sa=new Ia;ma=[];pa=k(pa);for(var Ic=pa.next();!Ic.done;Ic=pa.next())Ic=Ic.value,sa.has(Ic)||(sa.add(Ic),ma.push(Ic));pa=k(jb);for(Ic=pa.next();!Ic.done;Ic=pa.next())jb=Ic.value,sa.has(jb)||(sa.add(jb),ma.push(jb));return ma}
function m(ma,sa){ma=b(ma,sa,!1);var pa=[];ma&&ma.forEach(function(jb,Ic){return pa.push(Ic)});
return pa}
function n(ma){return void 0===ma}
function r(ma){return"object"===typeof ma?null!==ma:"function"===typeof ma}
function v(ma){return"function"===typeof ma}
function z(ma){return"symbol"===typeof ma?ma:String(ma)}
function C(ma){var sa=Object.getPrototypeOf(ma);if("function"!==typeof ma||ma===la||sa!==la)return sa;var pa=Object.getPrototypeOf(ma.prototype);if(null==pa||pa===Object.prototype)return sa;pa=pa.constructor;return"function"!==typeof pa||pa===ma?sa:pa}
function J(){function ma(){this._keys=[];this._values=[];this._cache=sa}
var sa={};ma.prototype={get size(){return this._keys.length},has:function(pa){return pa===this._cache?!0:0<=this._find(pa)?(this._cache=pa,!0):!1},
get:function(pa){var jb=this._find(pa);if(0<=jb)return this._cache=pa,this._values[jb]},
set:function(pa,jb){this.delete(pa);this._keys.push(pa);this._values.push(jb);this._cache=pa;return this},
delete:function(pa){pa=this._find(pa);return 0<=pa?(this._keys.splice(pa,1),this._values.splice(pa,1),this._cache=sa,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=sa},
forEach:function(pa){for(var jb=this.size,Ic=0;Ic<jb;++Ic){var bf=this._keys[Ic],Pp=this._values[Ic];this._cache=bf;pa.call(this,Pp,bf,this)}},
_find:function(pa){for(var jb=this._keys,Ic=jb.length,bf=0;bf<Ic;++bf)if(jb[bf]===pa)return bf;return-1}};
return ma}
function E(){function ma(){this._map=new qa}
ma.prototype={get size(){return this._map.length},has:function(sa){return this._map.has(sa)},
add:function(sa){this._map.set(sa,sa);return this},
delete:function(sa){return this._map.delete(sa)},
clear:function(){this._map.clear()},
forEach:function(sa,pa){this._map.forEach(sa,pa)}};
return ma}
function S(){function ma(){this._key=pa()}
function sa(Yb,uh){for(var ki=0;ki<uh;++ki)Yb[ki]=255*Math.random()|0}
function pa(){do{if(Ic)var Yb=Ic.randomBytes(16);else"function"===typeof Uint8Array?(Yb=new Uint8Array(16),"undefined"!==typeof crypto?crypto.getRandomValues(Yb):sa(Yb,16)):(Yb=Array(16),sa(Yb,16));Yb[6]=Yb[6]&79|64;Yb[8]=Yb[8]&191|128;for(var uh="",ki=0;16>ki;++ki){var Jx=Yb[ki];if(4===ki||6===ki||8===ki)uh+="-";16>Jx&&(uh+="0");uh+=Jx.toString(16).toLowerCase()}Yb="@@WeakMap@@"+uh}while(bf.call(Pp,Yb));Pp[Yb]=!0;return Yb}
function jb(Yb,uh){if(!bf.call(Yb,Zs)){if(!uh)return;Object.defineProperty(Yb,Zs,{value:Object.create(null)})}return Yb[Zs]}
var Ic="undefined"!==typeof global&&"object"===typeof Wfa&&"function"===typeof require&&require("crypto"),bf=Object.prototype.hasOwnProperty,Pp={},Zs=pa();ma.prototype={has:function(Yb){return(Yb=jb(Yb,!1))?this._key in Yb:!1},
get:function(Yb){if(Yb=jb(Yb,!1))return Yb[this._key]},
set:function(Yb,uh){jb(Yb,!0)[this._key]=uh;return this},
delete:function(Yb){return(Yb=jb(Yb,!1))&&this._key in Yb?delete Yb[this._key]:!1},
clear:function(){this._key=pa()}};
return ma}
var la=Object.getPrototypeOf(Function),qa="function"===typeof Map?Map:J(),Ia="function"===typeof Set?Set:E(),yb=new("function"===typeof WeakMap?WeakMap:S());a.decorate=function(ma,sa,pa,jb){if(n(jb)){if(n(pa)){if(!Array.isArray(ma))throw new TypeError;if(!v(sa))throw new TypeError;for(pa=ma.length-1;0<=pa;--pa)if(jb=(0,ma[pa])(sa),!n(jb)){if(!v(jb))throw new TypeError;sa=jb}return sa}if(!Array.isArray(ma))throw new TypeError;if(!r(sa))throw new TypeError;pa=z(pa);for(jb=ma.length-1;0<=jb;--jb)(0,ma[jb])(sa,
pa)}else{if(Array.isArray(ma)){if(r(sa)){if(n(pa))throw new TypeError;if(!r(jb))throw new TypeError}else throw new TypeError;}else throw new TypeError;pa=z(pa);for(var Ic=ma.length-1;0<=Ic;--Ic){var bf=(0,ma[Ic])(sa,pa,jb);if(!n(bf)){if(!r(bf))throw new TypeError;jb=bf}}return jb}};
a.metadata=function(ma,sa){return function(pa,jb){if(n(jb)){if(!v(pa))throw new TypeError;b(pa,void 0,!0).set(ma,sa)}else{if(!r(pa))throw new TypeError;jb=z(jb);b(pa,jb,!0).set(ma,sa)}}};
a.defineMetadata=function(ma,sa){var pa;if(r(sa))n(pa)||(pa=z(pa));else throw new TypeError;b(sa,pa,!0).set("parameters",ma)};
a.hasMetadata=function(ma,sa,pa){if(r(sa))n(pa)||(pa=z(pa));else throw new TypeError;return c(ma,sa,pa)};
a.hasOwnMetadata=function(ma,sa,pa){if(r(sa))n(pa)||(pa=z(pa));else throw new TypeError;return d(ma,sa,pa)};
a.getMetadata=function(ma,sa,pa){if(r(sa))n(pa)||(pa=z(pa));else throw new TypeError;return f(ma,sa,pa)};
a.getOwnMetadata=function(ma,sa,pa){if(r(sa))n(pa)||(pa=z(pa));else throw new TypeError;return g(ma,sa,pa)};
a.getMetadataKeys=function(ma,sa){if(r(ma))n(sa)||(sa=z(sa));else throw new TypeError;return l(ma,sa)};
a.getOwnMetadataKeys=function(ma,sa){if(r(ma))n(sa)||(sa=z(sa));else throw new TypeError;return m(ma,sa)};
a.deleteMetadata=function(ma,sa,pa){if(r(sa))n(pa)||(pa=z(pa));else throw new TypeError;var jb=b(sa,pa,!1);if(!n(jb)){if(!jb.delete(ma))return!1;if(0<jb.size)return!0;ma=yb.get(sa);ma.delete(pa);if(0<ma.size)return!0;yb.delete(sa);return!0}};
(function(ma){if("undefined"!==typeof ma.Reflect){if(ma.Reflect!==a)for(var sa in a)ma.Reflect[sa]=a[sa]}else ma.Reflect=a})("undefined"!==typeof window?window:"undefined"!==typeof WorkerGlobalScope?self:"undefined"!==typeof global?global:Function("return this;")())})(Xfa||(Xfa={}));var bj=function(){this.data_=[];this.cachedPackedInt52_=-1};
bj.prototype.set=function(a,b){b=void 0===b?!0:b;0<=a&&52>a&&0===a%1&&this.data_[a]!=b&&(this.data_[a]=b,this.cachedPackedInt52_=-1)};
bj.prototype.get=function(a){return!!this.data_[a]};
var Yfa=function(a){-1==a.cachedPackedInt52_&&(a.cachedPackedInt52_=fb(a.data_,function(b,c,d){return c?b+Math.pow(2,d):b},0));
return a.cachedPackedInt52_};var cj=function(a){return{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0},Zfa=function(){var a;
Rf.visibilityState?a="visibilitychange":Rf.mozVisibilityState?a="mozvisibilitychange":Rf.webkitVisibilityState&&(a="webkitvisibilitychange");return a};var $fa=function(){this.blockSize=-1};var dj=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var a=1;a<this.blockSize;++a)this.pad_[a]=0;this.total_=this.inbuf_=0;this.reset()};
w(dj,$fa);dj.prototype.reset=function(){this.chain_[0]=1732584193;this.chain_[1]=4023233417;this.chain_[2]=2562383102;this.chain_[3]=271733878;this.chain_[4]=3285377520;this.total_=this.inbuf_=0};
var ej=function(a,b,c){c||(c=0);var d=a.W_;if("string"===typeof b)for(var f=0;16>f;f++)d[f]=b.charCodeAt(c)<<24|b.charCodeAt(c+1)<<16|b.charCodeAt(c+2)<<8|b.charCodeAt(c+3),c+=4;else for(f=0;16>f;f++)d[f]=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4;for(f=16;80>f;f++){var g=d[f-3]^d[f-8]^d[f-14]^d[f-16];d[f]=(g<<1|g>>>31)&4294967295}b=a.chain_[0];c=a.chain_[1];var l=a.chain_[2],m=a.chain_[3],n=a.chain_[4];for(f=0;80>f;f++){if(40>f){if(20>f){g=m^c&(l^m);var r=1518500249}else g=c^l^m,r=1859775393;}else 60>
f?(g=c&l|m&(c|l),r=2400959708):(g=c^l^m,r=3395469782);g=(b<<5|b>>>27)+g+n+r+d[f]&4294967295;n=m;m=l;l=(c<<30|c>>>2)&4294967295;c=b;b=g}a.chain_[0]=a.chain_[0]+b&4294967295;a.chain_[1]=a.chain_[1]+c&4294967295;a.chain_[2]=a.chain_[2]+l&4294967295;a.chain_[3]=a.chain_[3]+m&4294967295;a.chain_[4]=a.chain_[4]+n&4294967295};
dj.prototype.update=function(a,b){if(null!=a){void 0===b&&(b=a.length);for(var c=b-this.blockSize,d=0,f=this.buf_,g=this.inbuf_;d<b;){if(0==g)for(;d<=c;)ej(this,a,d),d+=this.blockSize;if("string"===typeof a)for(;d<b;){if(f[g]=a.charCodeAt(d),++g,++d,g==this.blockSize){ej(this,f);g=0;break}}else for(;d<b;)if(f[g]=a[d],++g,++d,g==this.blockSize){ej(this,f);g=0;break}}this.inbuf_=g;this.total_+=b}};
dj.prototype.digest=function(){var a=[],b=8*this.total_;56>this.inbuf_?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var c=this.blockSize-1;56<=c;c--)this.buf_[c]=b&255,b/=256;ej(this,this.buf_);for(c=b=0;5>c;c++)for(var d=24;0<=d;d-=8)a[b]=this.chain_[c]>>d&255,++b;return a};var fj="StopIteration"in t?t.StopIteration:{message:"StopIteration",stack:""},gj=function(){};
gj.prototype.next=function(){throw fj};
gj.prototype.__iterator__=function(){return this};
var hj=function(a){if(a instanceof gj)return a;if("function"==typeof a.__iterator__)return a.__iterator__(!1);if(Oa(a)){var b=0,c=new gj;c.next=function(){for(;;){if(b>=a.length)throw fj;if(b in a)return a[b++];b++}};
return c}throw Error("Not implemented")},ij=function(a,b,c){if(Oa(a))try{cb(a,b,c)}catch(d){if(d!==fj)throw d;
}else{a=hj(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==fj)throw d}}},aga=function(a,b){var c=1;
ij(a,function(d){c=b.call(void 0,c,d)});
return c},bga=function(a,b){var c=hj(a);
a=new gj;a.next=function(){var d=c.next();if(b.call(void 0,d,void 0,c))return d;throw fj};
return a},cga=function(a){if(Oa(a))return pb(a);
a=hj(a);var b=[];ij(a,function(c){b.push(c)});
return b},dga=function(a){var b=hj(a);
a=new gj;var c=100;a.next=function(){if(0<c--)return b.next();throw fj};
return a};var jj=function(a,b){this.map_={};this.keys_=[];this.version_=this.count_=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a&&this.addAll(a)};
e=jj.prototype;e.getCount=function(){return this.count_};
e.getValues=function(){kj(this);for(var a=[],b=0;b<this.keys_.length;b++)a.push(this.map_[this.keys_[b]]);return a};
e.getKeys=function(){kj(this);return this.keys_.concat()};
e.containsKey=function(a){return lj(this.map_,a)};
e.containsValue=function(a){for(var b=0;b<this.keys_.length;b++){var c=this.keys_[b];if(lj(this.map_,c)&&this.map_[c]==a)return!0}return!1};
e.equals=function(a,b){if(this===a)return!0;if(this.count_!=a.getCount())return!1;b=b||ega;kj(this);for(var c,d=0;c=this.keys_[d];d++)if(!b(this.get(c),a.get(c)))return!1;return!0};
var ega=function(a,b){return a===b};
jj.prototype.isEmpty=function(){return 0==this.count_};
jj.prototype.clear=function(){this.map_={};this.version_=this.count_=this.keys_.length=0};
jj.prototype.remove=function(a){return lj(this.map_,a)?(delete this.map_[a],this.count_--,this.version_++,this.keys_.length>2*this.count_&&kj(this),!0):!1};
var kj=function(a){if(a.count_!=a.keys_.length){for(var b=0,c=0;b<a.keys_.length;){var d=a.keys_[b];lj(a.map_,d)&&(a.keys_[c++]=d);b++}a.keys_.length=c}if(a.count_!=a.keys_.length){var f={};for(c=b=0;b<a.keys_.length;)d=a.keys_[b],lj(f,d)||(a.keys_[c++]=d,f[d]=1),b++;a.keys_.length=c}};
e=jj.prototype;e.get=function(a,b){return lj(this.map_,a)?this.map_[a]:b};
e.set=function(a,b){lj(this.map_,a)||(this.count_++,this.keys_.push(a),this.version_++);this.map_[a]=b};
e.addAll=function(a){if(a instanceof jj)for(var b=a.getKeys(),c=0;c<b.length;c++)this.set(b[c],a.get(b[c]));else for(b in a)this.set(b,a[b])};
e.forEach=function(a,b){for(var c=this.getKeys(),d=0;d<c.length;d++){var f=c[d],g=this.get(f);a.call(b,g,f,this)}};
e.clone=function(){return new jj(this)};
e.transpose=function(){for(var a=new jj,b=0;b<this.keys_.length;b++){var c=this.keys_[b];a.set(this.map_[c],c)}return a};
e.toObject=function(){kj(this);for(var a={},b=0;b<this.keys_.length;b++){var c=this.keys_[b];a[c]=this.map_[c]}return a};
e.getKeyIterator=function(){return this.__iterator__(!0)};
e.getValueIterator=function(){return this.__iterator__(!1)};
e.__iterator__=function(a){kj(this);var b=0,c=this.version_,d=this,f=new gj;f.next=function(){if(c!=d.version_)throw Error("The map has changed since the iterator was created");if(b>=d.keys_.length)throw fj;var g=d.keys_[b++];return a?g:d.map_[g]};
return f};
var lj=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var fga=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""},mj=function(a){return a.classList?a.classList:fga(a).match(/\S+/g)||[]},nj=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)},oj=function(a,b){return a.classList?a.classList.contains(b):lb(mj(a),b)},pj=function(a,b){if(a.classList)a.classList.add(b);else
if(!oj(a,b)){var c=fga(a);nj(a,c+(0<c.length?" "+b:b))}},qj=function(a,b){if(a.classList)cb(b,function(f){pj(a,f)});else
{var c={};cb(mj(a),function(f){c[f]=!0});
cb(b,function(f){c[f]=!0});
b="";for(var d in c)b+=0<b.length?" "+d:d;nj(a,b)}},rj=function(a,b){a.classList?a.classList.remove(b):oj(a,b)&&nj(a,db(mj(a),function(c){return c!=b}).join(" "))},sj=function(a,b){a.classList?cb(b,function(c){rj(a,c)}):nj(a,db(mj(a),function(c){return!lb(b,c)}).join(" "))};var gga=function(a,b){b||(b={});var c=window;var d=a instanceof Tb?a:Zb("undefined"!=typeof a.href?a.href:String(a));a=b.target||a.target;var f=[];for(g in b)switch(g){case"width":case"height":case"top":case"left":f.push(g+"="+b[g]);break;case"target":case"noopener":case"noreferrer":break;default:f.push(g+"="+(b[g]?1:0));}var g=f.join(",");pe()&&c.navigator&&c.navigator.standalone&&a&&"_self"!=a?(g=pg("A"),tc(g,d),g.setAttribute("target",a),b.noreferrer&&g.setAttribute("rel","noreferrer"),b=
document.createEvent("MouseEvent"),b.initMouseEvent("click",!0,!0,c,1),g.dispatchEvent(b),c={}):b.noreferrer?(c=yc("",c,a,g),b=Ub(d),c&&(ve&&Pb(b,";")&&(b="'"+b.replace(/'/g,"%27")+"'"),c.opener=null,b=oc("<meta name=\"referrer\" content=\"no-referrer\"><meta http-equiv=\"refresh\" content=\"0; url="+Bc(b)+"\">",null),(d=c.document)&&d.write&&(d.write(mc(b)),d.close()))):(c=yc(d,c,a,g))&&b.noopener&&(c.opener=null);return c};var tj=function(a){a=String(a);if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a)},uj=function(a){return new hga().serialize(a)},hga=function(){this.replacer_=void 0};
hga.prototype.serialize=function(a){var b=[];vj(this,a,b);return b.join("")};
var vj=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(Array.isArray(b)){var d=b;b=d.length;c.push("[");for(var f="",g=0;g<b;g++)c.push(f),f=d[g],vj(a,a.replacer_?a.replacer_.call(d,String(g),f):f,c),f=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");g="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(f=b[d],"function"!=typeof f&&(c.push(g),iga(d,c),c.push(":"),vj(a,a.replacer_?a.replacer_.call(b,
d,f):f,c),g=","));c.push("}");return}}switch(typeof b){case"string":iga(b,c);break;case"number":c.push(isFinite(b)&&!isNaN(b)?String(b):"null");break;case"boolean":c.push(String(b));break;case"function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}},jga={"\"":"\\\"",
"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},kga=/\uffff/.test("\uFFFF")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g,iga=function(a,b){b.push("\"",a.replace(kga,function(c){var d=jga[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).substr(1),jga[c]=d);return d}),"\"")};var wj=function(a){Tg.call(this);this.key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!a};
w(wj,Tg);wj.prototype.subscribe=function(a,b,c){var d=this.topics_[a];d||(d=this.topics_[a]=[]);var f=this.key_;this.subscriptions_[f]=a;this.subscriptions_[f+1]=b;this.subscriptions_[f+2]=c;this.key_=f+3;d.push(f);return f};
var lga=function(a){var b=xj,c=!1,d=b.subscribe("handleError",function(f){c||(c=!0,this.unsubscribeByKey(d),a.apply(void 0,arguments))},b)};
wj.prototype.unsubscribe=function(a,b,c){if(a=this.topics_[a]){var d=this.subscriptions_;if(a=ib(a,function(f){return d[f+1]==b&&d[f+2]==c}))return this.unsubscribeByKey(a)}return!1};
wj.prototype.unsubscribeByKey=function(a){var b=this.subscriptions_[a];if(b){var c=this.topics_[b];0!=this.publishDepth_?(this.pendingKeys_.push(a),this.subscriptions_[a+1]=Ka):(c&&mb(c,a),delete this.subscriptions_[a],delete this.subscriptions_[a+1],delete this.subscriptions_[a+2])}return!!b};
wj.prototype.publish=function(a,b){var c=this.topics_[a];if(c){for(var d=Array(arguments.length-1),f=1,g=arguments.length;f<g;f++)d[f-1]=arguments[f];if(this.async_)for(f=0;f<c.length;f++){var l=c[f];mga(this.subscriptions_[l+1],this.subscriptions_[l+2],d)}else{this.publishDepth_++;try{for(f=0,g=c.length;f<g;f++)l=c[f],this.subscriptions_[l+1].apply(this.subscriptions_[l+2],d)}finally{if(this.publishDepth_--,0<this.pendingKeys_.length&&0==this.publishDepth_)for(;c=this.pendingKeys_.pop();)this.unsubscribeByKey(c)}}return 0!=
f}return!1};
var mga=function(a,b,c){Ii(function(){a.apply(b,c)})};
wj.prototype.clear=function(a){if(a){var b=this.topics_[a];b&&(cb(b,this.unsubscribeByKey,this),delete this.topics_[a])}else this.subscriptions_.length=0,this.topics_={}};
wj.prototype.getCount=function(a){if(a){var b=this.topics_[a];return b?b.length:0}a=0;for(b in this.topics_)a+=this.getCount(b);return a};
wj.prototype.disposeInternal=function(){wj.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var yj=function(a){this.mechanism=a};
yj.prototype.set=function(a,b){void 0===b?this.mechanism.remove(a):this.mechanism.set(a,uj(b))};
yj.prototype.get=function(a){try{var b=this.mechanism.get(a)}catch(c){return}if(null!==b)try{return JSON.parse(b)}catch(c){throw"Storage: Invalid value was encountered"}};
yj.prototype.remove=function(a){this.mechanism.remove(a)};var zj=function(a){this.mechanism=a};
w(zj,yj);var nga=function(a){this.data=a},oga=function(a){return void 0===a||a instanceof nga?a:new nga(a)};
zj.prototype.set=function(a,b){zj.superClass_.set.call(this,a,oga(b))};
zj.prototype.getWrapper=function(a){a=zj.superClass_.get.call(this,a);if(void 0===a||a instanceof Object)return a;throw"Storage: Invalid value was encountered"};
zj.prototype.get=function(a){if(a=this.getWrapper(a)){if(a=a.data,void 0===a)throw"Storage: Invalid value was encountered"}else a=void 0;return a};var Aj=function(a){this.mechanism=a};
w(Aj,zj);var pga=function(a){var b=a.creation;a=a.expiration;return!!a&&a<Va()||!!b&&b>Va()};
Aj.prototype.set=function(a,b,c){if(b=oga(b)){if(c){if(c<Va()){Aj.prototype.remove.call(this,a);return}b.expiration=c}b.creation=Va()}Aj.superClass_.set.call(this,a,b)};
Aj.prototype.getWrapper=function(a,b){var c=Aj.superClass_.getWrapper.call(this,a);if(c)if(!b&&pga(c))Aj.prototype.remove.call(this,a);else return c};var qga=function(){};var Bj=function(){};
w(Bj,qga);Bj.prototype.getCount=function(){var a=0;ij(this.__iterator__(!0),function(){a++});
return a};
Bj.prototype.clear=function(){var a=cga(this.__iterator__(!0)),b=this;cb(a,function(c){b.remove(c)})};var Cj=function(a){this.storage_=a};
w(Cj,Bj);e=Cj.prototype;e.isAvailable=function(){if(!this.storage_)return!1;try{return this.storage_.setItem("__sak","1"),this.storage_.removeItem("__sak"),!0}catch(a){return!1}};
e.set=function(a,b){try{this.storage_.setItem(a,b)}catch(c){if(0==this.storage_.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded"}};
e.get=function(a){a=this.storage_.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
e.remove=function(a){this.storage_.removeItem(a)};
e.getCount=function(){return this.storage_.length};
e.__iterator__=function(a){var b=0,c=this.storage_,d=new gj;d.next=function(){if(b>=c.length)throw fj;var f=c.key(b++);if(a)return f;f=c.getItem(f);if("string"!==typeof f)throw"Storage mechanism: Invalid value was encountered";return f};
return d};
e.clear=function(){this.storage_.clear()};
e.key=function(a){return this.storage_.key(a)};var Dj=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.storage_=a};
w(Dj,Cj);var Ej=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.storage_=a};
w(Ej,Cj);var Gj=function(a,b){this.storageKey_=a;this.storageNode_=null;if(te&&!Ge(9)){Fj||(Fj=new jj);this.storageNode_=Fj.get(a);this.storageNode_||(b?this.storageNode_=document.getElementById(b):(this.storageNode_=document.createElement("userdata"),this.storageNode_.addBehavior("#default#userData"),document.body.appendChild(this.storageNode_)),Fj.set(a,this.storageNode_));try{this.storageNode_.load(this.storageKey_)}catch(c){this.storageNode_=null}}};
w(Gj,Bj);var rga={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},Fj=null,Hj=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return rga[b]})};
e=Gj.prototype;e.isAvailable=function(){return!!this.storageNode_};
e.set=function(a,b){this.storageNode_.setAttribute(Hj(a),b);Ij(this)};
e.get=function(a){a=this.storageNode_.getAttribute(Hj(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
e.remove=function(a){this.storageNode_.removeAttribute(Hj(a));Ij(this)};
e.getCount=function(){return Jj(this).attributes.length};
e.__iterator__=function(a){var b=0,c=Jj(this).attributes,d=new gj;d.next=function(){if(b>=c.length)throw fj;var f=c[b++];if(a)return decodeURIComponent(f.nodeName.replace(/\./g,"%")).substr(1);f=f.nodeValue;if("string"!==typeof f)throw"Storage mechanism: Invalid value was encountered";return f};
return d};
e.clear=function(){for(var a=Jj(this),b=a.attributes.length;0<b;b--)a.removeAttribute(a.attributes[b-1].nodeName);Ij(this)};
var Ij=function(a){try{a.storageNode_.save(a.storageKey_)}catch(b){throw"Storage mechanism: Quota exceeded"}},Jj=function(a){return a.storageNode_.XMLDocument.documentElement};var Kj=function(a,b){this.mechanism_=a;this.prefix_=b+"::"};
w(Kj,Bj);Kj.prototype.set=function(a,b){this.mechanism_.set(this.prefix_+a,b)};
Kj.prototype.get=function(a){return this.mechanism_.get(this.prefix_+a)};
Kj.prototype.remove=function(a){this.mechanism_.remove(this.prefix_+a)};
Kj.prototype.__iterator__=function(a){var b=this.mechanism_.__iterator__(!0),c=this,d=new gj;d.next=function(){for(var f=b.next();f.substr(0,c.prefix_.length)!=c.prefix_;)f=b.next();return a?f.substr(c.prefix_.length):c.mechanism_.get(f)};
return d};var sga=function(a){var b=new Dj;return b.isAvailable()?a?new Kj(b,a):b:null};/*

 Copyright Google Inc. All Rights Reserved.

 Use of this source code is governed by an MIT-style license that can be
 found in the LICENSE file at https://angular.io/license
*/
function Lj(a,b){function c(f){for(var g=[],l=0;l<arguments.length;++l)g[l-0]=arguments[l];l=function(n,r,v){for(r=Reflect.getMetadata("parameters",n)||[];r.length<=v;)r.push(null);r[v]=r[v]||[];r[v].push(m);Reflect.defineMetadata(r,n);return n};
if(this instanceof c)return d.apply(this,g),this;var m=new(Function.prototype.bind.apply(c,[null].concat(fa(g))));l.annotation=m;return l}
var d=tga(b);c.prototype.toString=function(){return"@"+a};
return c.annotationCls=c}
function tga(a){return function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];var f=this;a.forEach(function(g,l){l=c[l];if(Array.isArray(g))f[g[0]]=l&&void 0!==l?l:g[1];else for(var m in g)f[m]=l&&void 0!==l[m]?l[m]:g[m]})}}
;function Mj(a){return void 0!==a&&null!==a}
function Nj(a){if("string"===typeof a)return a;if(void 0===a||null===a)return""+a;if(a.overriddenName)return a.overriddenName;if(a.name)return a.name;a=a.toString();var b=a.indexOf("\n");return-1===b?a:a.substring(0,b)}
;function uga(a){a.__forward_ref__=uga;a.toString=function(){return Nj(this())};
return a}
function Oj(a){return"function"===typeof a&&a.hasOwnProperty("__forward_ref__")&&a.__forward_ref__===uga?a():a}
;Lj("Injectable",[]);var vga=Lj("Inject",[["token",void 0]]),wga=Lj("Optional",[]);Lj("Injectable",[]);var xga=Lj("Self",[]),yga=Lj("SkipSelf",[]);Lj("Host",[]);var Pj={},zga=function(){};
zga.prototype.get=function(){throw Error("unimplemented")};var Qj=Function;var Aga=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,Bga=function(){this._reflect=window.Reflect};
e=Bga.prototype;e.isReflectionEnabled=function(){return!0};
e.factory=function(a){return function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];return new(Function.prototype.bind.apply(a,[null].concat(fa(c))))}};
e._zipTypesAndAnnotations=function(a,b){var c="undefined"===typeof a?Array(b.length):Array(a.length);for(var d=0;d<c.length;d++)c[d]="undefined"===typeof a?[]:a[d]!=Object?[a[d]]:[],b&&Mj(b[d])&&(c[d]=c[d].concat(b[d]));return c};
e._ownParameters=function(a,b){if(Aga.exec(a.toString()))return null;if(a.parameters&&a.parameters!==b.parameters)return a.parameters;var c=a.ctorParameters;return c&&c!==b.ctorParameters?(b="function"===typeof c?c():c,a=b.map(function(d){return d&&d.type}),b=b.map(function(d){return d&&Rj(d.decorators)}),this._zipTypesAndAnnotations(a,b)):Mj(this._reflect)&&Mj(this._reflect.getOwnMetadata)&&(b=this._reflect.getOwnMetadata("parameters",a),(c=this._reflect.getOwnMetadata("design:paramtypes",a))||b)?
this._zipTypesAndAnnotations(c,b):Array(a.length).fill(void 0)};
e.parameters=function(a){if(!a.prototype)return[];var b=Object.getPrototypeOf(a.prototype).constructor;(a=this._ownParameters(a,b))||b===Object||(a=this.parameters(b));return a||[]};
e._ownAnnotations=function(a,b){if(a.annotations&&a.annotations!==b.annotations)return a=a.annotations,"function"===typeof a&&a.annotations&&(a=a.annotations),a;if(a.decorators&&a.decorators!==b.decorators)return Rj(a.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",a)};
e.annotations=function(a){var b=Object.getPrototypeOf(a.prototype).constructor;a=this._ownAnnotations(a,b)||[];return(b!==Object?this.annotations(b):[]).concat(a)};
e._ownPropMetadata=function(a,b){if(a.propMetadata&&a.propMetadata!==b.propMetadata)return a=a.propMetadata,"function"===typeof a&&a.propMetadata&&(a=a.propMetadata),a;if(a.propDecorators&&a.propDecorators!==b.propDecorators){var c=a.propDecorators,d={};Object.keys(c).forEach(function(f){d[f]=Rj(c[f])});
return d}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",a)};
e.propMetadata=function(a){var b=Object.getPrototypeOf(a.prototype).constructor,c={};if(b!==Object){var d=this.propMetadata(b);Object.keys(d).forEach(function(g){c[g]=d[g]})}var f=this._ownPropMetadata(a,b);
f&&Object.keys(f).forEach(function(g){var l=[];c.hasOwnProperty(g)&&l.push.apply(l,fa(c[g]));l.push.apply(l,fa(f[g]));c[g]=l});
return c};
e.hasLifecycleHook=function(a,b){return a instanceof Qj&&b in a.prototype};
e.getter=function(a){return new Function("o","return o."+a+";")};
e.setter=function(a){return new Function("o","v","return o."+a+" = v;")};
e.method=function(a){return new Function("o","args","if (!o."+a+") throw new Error('\""+a+"\" is undefined');\n        return o."+a+".apply(o, args);")};
e.importUri=function(a){return"object"===typeof a&&a.filePath?a.filePath:"./"+Nj(a)};
e.resolveIdentifier=function(a,b,c){return c};
e.resolveEnum=function(a,b){return a[b]};
function Rj(a){return a?a.map(function(b){return new(Function.prototype.bind.apply(b.type.annotationCls,[null].concat(fa(b.args?b.args:[]))))}):[]}
;var Cga=function(){};var Sj=function(a){this.reflectionCapabilities=a};
p(Sj,Cga);e=Sj.prototype;e.updateCapabilities=function(a){this.reflectionCapabilities=a};
e.factory=function(a){return this.reflectionCapabilities.factory(a)};
e.parameters=function(a){return this.reflectionCapabilities.parameters(a)};
e.annotations=function(a){return this.reflectionCapabilities.annotations(a)};
e.propMetadata=function(a){return this.reflectionCapabilities.propMetadata(a)};
e.hasLifecycleHook=function(a,b){return this.reflectionCapabilities.hasLifecycleHook(a,b)};
e.getter=function(a){return this.reflectionCapabilities.getter(a)};
e.setter=function(a){return this.reflectionCapabilities.setter(a)};
e.method=function(a){return this.reflectionCapabilities.method(a)};
e.importUri=function(a){return this.reflectionCapabilities.importUri(a)};
e.resolveIdentifier=function(a,b,c){return this.reflectionCapabilities.resolveIdentifier(a,b,c)};
e.resolveEnum=function(a,b){return this.reflectionCapabilities.resolveEnum(a,b)};var Tj=new Sj(new Bga());function Dga(a){for(var b=[],c=0;c<a.length;++c){if(-1<b.indexOf(a[c])){b.push(a[c]);break}b.push(a[c])}return b}
function Uj(a){return 1<a.length?" ("+Dga(a.slice().reverse()).map(function(b){return Nj(b.token)}).join(" -> ")+")":""}
function Vj(a,b,c,d){if(d){var f=Error(" caused by: "+(d instanceof Error?d.message:d));f.ngOriginalError=d}else f=Error();f.addKey=Ega;f.keys=[b];f.injectors=[a];f.constructResolvingMessage=c;f.message=f.constructResolvingMessage();f.ngOriginalError=d;return f}
function Ega(a,b){this.injectors.push(a);this.keys.push(b);this.message=this.constructResolvingMessage()}
function Fga(a,b){return Vj(a,b,function(){return"No provider for "+Nj(this.keys[0].token)+"!"+Uj(this.keys)})}
function Gga(a,b){return Vj(a,b,function(){return"Cannot instantiate cyclic dependency!"+Uj(this.keys)})}
function Hga(a,b,c){return Vj(a,c,function(){var d=Nj(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+d+"!"+Uj(this.keys)+"."},b)}
function Iga(a,b){for(var c=[],d=0,f=b.length;d<f;d++){var g=b[d];g&&0!=g.length?c.push(g.map(Nj).join(" ")):c.push("?")}return Error("Cannot resolve all parameters for '"+Nj(a)+"'("+c.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+Nj(a)+"' is decorated with Injectable.")}
;var Wj=function(a,b){this.token=a;this.id=b;if(void 0===a||null===a)throw Error("Token must be defined!")};
h.Object.defineProperties(Wj.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return Nj(this.token)}}});
h.Object.defineProperties(Wj,{numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return Xj.numberOfKeys}}});
var Yj=function(){this._allKeys=new Map};
Yj.prototype.get=function(a){if(a instanceof Wj)return a;if(this._allKeys.has(a))return this._allKeys.get(a);var b=new Wj(a,Wj.numberOfKeys);this._allKeys.set(a,b);return b};
h.Object.defineProperties(Yj.prototype,{numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var Xj=new Yj;var Jga=function(a,b,c){this.key=a;this.optional=b;this.visibility=c},Kga=[],Zj=function(a,b,c){this.key=a;
this.resolvedFactories=b;this.multiProvider=c};
h.Object.defineProperties(Zj.prototype,{resolvedFactory:{configurable:!0,enumerable:!0,get:function(){return this.resolvedFactories[0]}}});
var Lga=function(a,b){this.factory=a;this.dependencies=b};
function Mga(a){if(a&&void 0!==a.useClass){var b=Oj(a.useClass);var c=Tj.factory(b);b=Nga(b)}else a&&void 0!==a.useExisting?(c=function(d){return d},b=[new Jga(Xj.get(Oj(a.useExisting)),!1,null)]):a&&void 0!==a.useFactory?(c=a.useFactory,b=Oga(a.useFactory,a.deps)):(c=function(){return a.useValue},b=Kga);
return new Lga(c,b)}
function Pga(a){return new Zj(Xj.get(Oj(a.provide)),[Mga(a)],a.multi)}
function ak(a){a=Qga(a,[]).map(Pga);for(var b=new Map,c=0;c<a.length;c++){var d=a[c],f=b.get(d.key.id);if(f){if(d.multiProvider!==f.multiProvider)throw Error("Cannot mix multi providers and regular providers, got: "+f+" "+d);if(d.multiProvider)for(var g=0;g<d.resolvedFactories.length;g++)f.resolvedFactories.push(d.resolvedFactories[g]);else b.set(d.key.id,d)}else b.set(d.key.id,d.multiProvider?new Zj(d.key,d.resolvedFactories.slice(),d.multiProvider):d)}return Array.from(b.values())}
function Qga(a,b){a.forEach(function(c){if(c instanceof Qj)b.push({provide:c,useClass:c});else if(c&&"object"==typeof c&&void 0!==c.provide)b.push(c);else if(c instanceof Array)Qga(c,b);else throw Error("Invalid provider - only instances of Provider and Type are allowed, got: "+c)});
return b}
function Oga(a,b){if(b){var c=b.map(function(d){return[d]});
return b.map(function(d){return Rga(a,d,c)})}return Nga(a)}
function Nga(a){var b=Tj.parameters(a);if(!b)return[];if(b.some(function(c){return null==c}))throw Iga(a,b);
return b.map(function(c){return Rga(a,c,b)})}
function Rga(a,b,c){var d=null,f=!1;if(!Array.isArray(b))return b instanceof vga?bk(b.token,f,null):bk(b,f,null);for(var g=null,l=0;l<b.length;++l){var m=b[l];if(m instanceof Qj)d=m;else if(m instanceof vga)d=m.token;else if(m instanceof wga)f=!0;else if(m instanceof xga||m instanceof yga)g=m}d=Oj(d);if(null!=d)return bk(d,f,g);throw Iga(a,c)}
function bk(a,b,c){return new Jga(Xj.get(Oj(a)),b,c)}
;var ck={},dk=function(a,b){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.parent=void 0===b?null:b;a=k(a);for(b=a.next();!b.done;b=a.next())Sga(this,b.value)},Sga=function(a,b){a.providers.push(b);
a.keyIds.push(b.key.id);a.objs.push(ck)};
e=dk.prototype;e.get=function(a,b){b=void 0===b?Pj:b;return this._getByKey(Xj.get(Oj(a)),null,b)};
e.resolveAndCreateChild=function(a){a=ak(a);a=new dk(a);a.parent=this;return a};
e.resolveAndInstantiate=function(a){a=ak([a])[0];return this._instantiateProvider(a)};
e._new=function(a){if(this.constructedKeyIds[a.key.id])throw Gga(this,a.key);this.constructedKeyIds[a.key.id]=!0;return this._instantiateProvider(a)};
e._instantiateProvider=function(a){if(a.multiProvider){for(var b=Array(a.resolvedFactories.length),c=0;c<a.resolvedFactories.length;++c)b[c]=this._instantiate(a,a.resolvedFactories[c]);return b}return this._instantiate(a,a.resolvedFactories[0])};
e._instantiate=function(a,b){var c=this,d=b.factory;try{var f=b.dependencies.map(function(l){return c._getByReflectiveDependency(l)})}catch(l){throw l.addKey&&l.addKey(this,a.key),l;
}try{var g=d.apply(null,fa(f))}catch(l){throw Hga(this,l,a.key)}return g};
e._getByReflectiveDependency=function(a){return this._getByKey(a.key,a.visibility,a.optional?null:Pj)};
e._getByKey=function(a,b,c){return a===Tga?this:b instanceof xga?this._getByKeySelf(a,c):this._getByKeyDefault(a,c,b)};
e._getObjByKeyId=function(a){for(var b=0;b<this.keyIds.length;b++)if(this.keyIds[b]===a)return this.objs[b]===ck&&(this.objs[b]=this._new(this.providers[b])),this.objs[b];return ck};
e._throwOrNull=function(a,b){if(b!==Pj)return b;throw Fga(this,a)};
e._getByKeySelf=function(a,b){var c=this._getObjByKeyId(a.id);return c!==ck?c:this._throwOrNull(a,b)};
e._getByKeyDefault=function(a,b,c){for(var d=c=c instanceof yga?this.parent:this;c instanceof dk;){var f=c._getObjByKeyId(a.id);if(f!==ck)return f;c=c.parent}f=void 0;if(null!==c)try{var g=c.get(a.token,b);if(g!==ck)return g}catch(l){f=l}if(!(d instanceof dk&&Uga(a.token))){if(f)throw f;return this._throwOrNull(a,b)}for(g=d;g.parent instanceof dk;)g=g.parent;Sga(g,Pga({provide:a.token,useClass:a.token}));return g.get(a.token,b)};
e.toString=function(){return this.displayName};
h.Object.defineProperties(dk.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+Vga(this,function(a){return" \""+a.key.displayName+"\" "}).join(", ")+"])"}}});
var Tga=Xj.get(Oj(zga));function Vga(a,b){for(var c=Array(a.providers.length),d=0;d<a.providers.length;++d){var f=d;if(0>d||d>=a.providers.length)throw Error("Index "+d+" is out-of-bounds.");c[f]=b(a.providers[d])}return c}
function Uga(a){return"function"===typeof a&&Tj.parameters(a).every(function(b){return!!b})}
;function N(a){a=ek(a);return"string"===typeof a&&"false"===a?!1:!!a}
function fk(a,b){a=ek(a);return void 0===a&&void 0!==b?b:Number(a||0)}
function gk(a){a=ek(a);return void 0!==a?String(a):""}
function hk(a){a=ek(a);return Array.isArray(a)?eb(a,function(b){return String(b||"")}):[String(a||"")]}
function ek(a){var b=B("EXPERIMENTS_FORCED_FLAGS",{});return void 0!==b[a]?b[a]:B("EXPERIMENT_FLAGS",{})[a]}
function Wga(){var a=[],b=B("EXPERIMENTS_FORCED_FLAGS",{});for(c in b)a.push({key:c,value:String(b[c])});var c=B("EXPERIMENT_FLAGS",{});for(var d in c)d.startsWith("force_")&&void 0===b[d]&&a.push({key:d,value:String(c[d])});return a}
;var Xga=0,Yga=ye?"webkit":we?"moz":te?"ms":se?"o":"";function ik(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=Yga+"VisibilityState";if(b in a)return a[b]}
function jk(a,b){var c;gb(a,function(d){c=b[d];return!!c});
return c}
function kk(a){var b=lk(a);b?b.focus():mk(a)}
function lk(a){return(a=Jda(a,function(b){return yg(b)?Oda(b)&&!!b.offsetParent:!1}))?a:null}
function mk(a){a.hasAttribute("tabindex")||a.setAttribute("tabindex","-1");a.focus()}
var Zga=Ja("ytDomDomGetNextId")||function(){return++Xga};
Fa("ytDomDomGetNextId",Zga,void 0);var $ga={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,screenX:1,screenY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1},nk=function(a){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(a=
a||window.event){this.event=a;for(var b in a)b in $ga||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;var c=a.target||a.srcElement;c&&3==c.nodeType&&(c=c.parentNode);this.target=c;var d=a.relatedTarget;if(d)try{d=d.nodeName?d:null}catch(f){d=null}else"mouseover"==this.type?d=a.fromElement:"mouseout"==this.type&&(d=a.toElement);this.relatedTarget=d;this.clientX=void 0!=a.clientX?a.clientX:a.pageX;this.clientY=void 0!=a.clientY?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;
this.charCode=a.charCode||("keypress"==this.type?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pageX_=a.pageX;this.pageY_=a.pageY}}catch(f){}},aha=function(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;
a.pageX_=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.pageY_=a.clientY+b}};
e=nk.prototype;e.getScreenX=function(){return this.event?this.event.screenX:0};
e.getScreenY=function(){return this.event?this.event.screenY:0};
e.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
e.isDefaultPrevented=function(){return this.event?!1===this.event.returnValue:!1};
e.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
e.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};
e.hasModifierKey=function(){return this.altKey||this.ctrlKey||this.shiftKey||this.metaKey};var ok=t.ytEventsEventsListeners||{};Fa("ytEventsEventsListeners",ok,void 0);var bha=t.ytEventsEventsCounter||{count:0};Fa("ytEventsEventsCounter",bha,void 0);
function cha(a,b,c,d){d=void 0===d?{}:d;a.addEventListener&&("mouseenter"!=b||"onmouseenter"in document?"mouseleave"!=b||"onmouseenter"in document?"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");return A.findKey(ok,function(f){var g="boolean"===typeof f[4]&&f[4]==!!d,l=Pa(f[4])&&Pa(d)&&A.equals(f[4],d);return!!f.length&&f[0]==a&&f[1]==b&&f[2]==c&&(g||l)})}
function pk(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var f=cha(a,b,c,d);if(f)return f;f=++bha.count+"";var g=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var l=g?function(m){m=new nk(m);if(!Mg(m.relatedTarget,function(n){return n==a},!0))return m.currentTarget=a,m.type=b,c.call(a,m)}:function(m){m=new nk(m);
m.currentTarget=a;return c.call(a,m)};
l=rd(l);a.addEventListener?("mouseenter"==b&&g?b="mouseover":"mouseleave"==b&&g?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),dha()||"boolean"===typeof d?a.addEventListener(b,l,d):a.addEventListener(b,l,!!d.capture)):a.attachEvent("on"+b,l);ok[f]=[a,b,c,l,d];return f}
function qk(a){a&&("string"==typeof a&&(a=[a]),cb(a,function(b){if(b in ok){var c=ok[b],d=c[0],f=c[1],g=c[3];c=c[4];d.removeEventListener?dha()||"boolean"===typeof c?d.removeEventListener(f,g,c):d.removeEventListener(f,g,!!c.capture):d.detachEvent&&d.detachEvent("on"+f,g);delete ok[b]}}))}
var dha=vb(function(){var a=!1;try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a}),rk=function(a,b,c){var d=void 0===d?{}:d;
var f;return f=pk(a,b,function(){qk(f);c.apply(a,arguments)},d)};var sk=window.ytcsi&&window.ytcsi.now?window.ytcsi.now:window.performance&&window.performance.timing&&window.performance.now&&window.performance.timing.navigationStart?function(){return window.performance.timing.navigationStart+window.performance.now()}:function(){return new Date().getTime()};function tk(a,b){"function"===typeof a&&(a=rd(a));return window.setTimeout(a,b)}
function uk(a,b){"function"===typeof a&&(a=rd(a));return window.setInterval(a,b)}
function vk(a){window.clearTimeout(a)}
;var wk=function(a){this.callback_=a;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(a=0;4>a;a++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=pk(window,"mousemove",u(this.onMouseMove_,this));this.timerId_=uk(u(this.checkPosition_,this),25)};
w(wk,Tg);wk.prototype.onMouseMove_=function(a){void 0===a.pageX_&&aha(a);var b=a.pageX_;void 0===a.pageY_&&aha(a);this.position_=new Xf(b,a.pageY_)};
wk.prototype.getPosition=function(){return this.position_||new Xf};
wk.prototype.checkPosition_=function(){if(this.position_){var a=sk();if(0!=this.previousTime_){var b=this.previousPosition_,c=this.position_,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.previousTime_);this.cycles_[this.index_]=.5<Math.abs((d-this.previousVelocity_)/this.previousVelocity_)?1:0;for(c=b=0;4>c;c++)b+=this.cycles_[c]||0;3<=b&&this.callback_();this.previousVelocity_=d}this.previousTime_=a;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
wk.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);qk(this.mouseListenerKey_)};var xk=function(){this.cancelDebouncedJobMap_=new WeakMap;this.cancelThrottledJobMap_=new WeakMap},yk=function(a,b,c){return a.addJob(b,0,c)},zk=function(a,b,c){return a.addJob(b,1,c)},Ak=function(a,b,c){return a.addJob(b,2,c)},Bk=function(a,b,c){return a.addJob(b,3,c)},Ek=function(a,b){return Ck.addJob(a,4,b)},Fk=function(a){var b=Ja("yt.scheduler.instance.addImmediateJob");
b?b(a):a()};
xk.prototype.cancelJobList=function(a){for(var b=0,c=a.length;b<c;b++)this.cancelJob(a[b])};
xk.prototype.debounce=function(a,b,c){var d=this,f=0,g=function(){f&&d.cancelJob(f);f=d.addJob(a,b,c);d.cancelDebouncedJobMap_.set(g,f)};
return g};
xk.prototype.throttle=function(a){var b=this,c=0,d=function(){a();c=0};
this.cancelThrottledJobMap_.set(function(){c||(c=b.addJob(d,void 0,void 0))},function(){c&&(b.cancelJob(c),c=0)})};
xk.prototype.cancelThrottle=function(a){(a=this.cancelThrottledJobMap_.get(a))&&a()};var Gk=function(){xk.apply(this,arguments)};
p(Gk,xk);e=Gk.prototype;e.addJob=function(a,b,c){void 0!==c&&Number.isNaN(Number(c))&&(c=void 0);var d=Ja("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):tk(a,c||0)};
e.cancelJob=function(a){if(void 0===a||!Number.isNaN(Number(a))){var b=Ja("yt.scheduler.instance.cancelJob");b?b(a):vk(a)}};
e.cancelAllJobs=function(){Ja("yt.scheduler.instance.cancelAllJobs")()};
e.start=function(){var a=Ja("yt.scheduler.instance.start");a&&a()};
e.pause=function(){var a=Ja("yt.scheduler.instance.pause");a&&a()};
var Hk=function(a){var b=Ja("yt.scheduler.instance.setPriorityThreshold");b&&b(a)},Ik=function(a){var b=Ja("yt.scheduler.instance.enablePriorityThreshold");
b&&b(a)};
e=Gk.prototype;e.enableInputPriorityThreshold=function(){Ik(4)};
e.enableHighPriorityThreshold=function(){Ik(3)};
e.enableMediumPriorityThreshold=function(){Ik(2)};
e.enableLowPriorityThreshold=function(){Ik(1)};
e.enableIdlePriorityThreshold=function(){Ik(0)};
e.setInputPriorityThreshold=function(){Hk(4)};
e.setHighPriorityThreshold=function(){Hk(3)};
e.setMediumPriorityThreshold=function(){Hk(2)};
e.setLowPriorityThreshold=function(){Hk(1)};
e.clearPriorityThreshold=function(){var a=Ja("yt.scheduler.instance.clearPriorityThreshold");a?a():Hk(0)};
La(Gk);var Ck=Gk.getInstance();var Jk={};
function Kk(a){var b=void 0===a?{}:a;a=void 0===b.inferFromNonUserEvents?!0:b.inferFromNonUserEvents;b=void 0===b.preferMobileEvents?!1:b.preferMobileEvents;if(null==Ja("_lact",window)){var c=parseInt(B("LACT"),10);c=isFinite(c)?Va()-Math.max(c,0):-1;Fa("_lact",c,window);Fa("_fact",c,window);-1==c&&Lk();pk(document,"keydown",Lk);pk(document,"keyup",Lk);pk(document,"mousedown",Lk);pk(document,"mouseup",Lk);a&&(b?pk(window,"touchmove",function(){Mk("touchmove",200)},{passive:!0}):(pk(window,"resize",
function(){Mk("resize",200)}),pk(window,"scroll",function(){Mk("scroll",200)})));
new wk(function(){Mk("mouse",100)});
pk(document,"touchstart",Lk,{passive:!0});pk(document,"touchend",Lk,{passive:!0})}}
function Mk(a,b){Jk[a]||(Jk[a]=!0,zk(Ck,function(){Lk();Jk[a]=!1},b))}
function Lk(){null==Ja("_lact",window)&&(Kk(),Ja("_lact",window));var a=Va();Fa("_lact",a,window);-1==Ja("_fact",window)&&Fa("_fact",a,window);(a=Ja("ytglobal.ytUtilActivityCallback_"))&&a()}
function Nk(){var a=Ja("_lact",window);return null==a?-1:Math.max(Va()-a,0)}
;var eha=t.ytPubsubPubsubInstance||new wj,Ok=t.ytPubsubPubsubSubscribedKeys||{},Pk=t.ytPubsubPubsubTopicToKeys||{},Qk=t.ytPubsubPubsubIsSynchronous||{};function Rk(a,b,c){var d=Sk();if(d&&b){var f=d.subscribe(a,function(){var g=arguments;var l=function(){Ok[f]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,g)};
try{Qk[a]?l():tk(l,0)}catch(m){sd(m)}},c);
Ok[f]=!0;Pk[a]||(Pk[a]=[]);Pk[a].push(f);return f}return 0}
function fha(){var a=gha,b=Sk();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),cb(a,function(c){b.unsubscribeByKey(c);delete Ok[c]}))}
function Tk(a,b){var c=Sk();c&&c.publish.apply(c,arguments)}
function Uk(a,b){Qk[a]=!0;var c=Sk();c&&c.publish.apply(c,arguments);Qk[a]=!1}
function Sk(){return t.ytPubsubPubsubInstance}
wj.prototype.subscribe=wj.prototype.subscribe;wj.prototype.unsubscribeByKey=wj.prototype.unsubscribeByKey;wj.prototype.publish=wj.prototype.publish;wj.prototype.clear=wj.prototype.clear;Fa("ytPubsubPubsubInstance",eha,void 0);Fa("ytPubsubPubsubTopicToKeys",Pk,void 0);Fa("ytPubsubPubsubIsSynchronous",Qk,void 0);Fa("ytPubsubPubsubSubscribedKeys",Ok,void 0);var Vk=window,Wk=Vk.ytcsi&&Vk.ytcsi.now?Vk.ytcsi.now:Vk.performance&&Vk.performance.timing&&Vk.performance.now&&Vk.performance.timing.navigationStart?function(){return Vk.performance.timing.navigationStart+Vk.performance.now()}:function(){return new Date().getTime()};var hha=fk("initial_gel_batch_timeout",1E3),iha=Math.pow(2,16)-1,Xk=null,Yk=0,Zk=void 0,$k=0,al=0,jha=0,kha=!0,bl=t.ytLoggingTransportGELQueue_||new Map;Fa("ytLoggingTransportGELQueue_",bl,void 0);var cl=t.ytLoggingTransportTokensToCttTargetIds_||{};Fa("ytLoggingTransportTokensToCttTargetIds_",cl,void 0);function dl(a){a=void 0===a?!1:a;return new Li(function(b){vk($k);vk(al);al=0;Zk&&Zk.isReady()?(lha(b,a),bl.clear()):(mha(),b())})}
function mha(){N("web_gel_timeout_cap")&&!al&&(al=tk(dl,6E4));vk($k);var a=B("LOGGING_BATCH_TIMEOUT",fk("web_gel_debounce_ms",1E4));N("shorten_initial_gel_batch_timeout")&&kha&&(a=hha);$k=tk(dl,a)}
function lha(a,b){var c=Zk;b=void 0===b?!1:b;for(var d=Math.round(Wk()),f=bl.size,g=k(bl),l=g.next();!l.done;l=g.next()){var m=k(l.value);l=m.next().value;var n=m.next().value;m=A.unsafeClone({context:nha(c.config_||el())});m.events=n;(n=cl[l])&&oha(m,l,n);delete cl[l];pha(m,d);qha(c,"log_event",m,{retry:!0,onSuccess:function(){f--;f||a();Yk=Math.round(Wk()-d)},
onError:function(){f--;f||a()},
writeThenSend:b});kha=!1}}
function pha(a,b){a.requestTimeMs=String(b);N("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);if(b=B("EVENT_ID",void 0)){var c=B("BATCH_CLIENT_COUNTER",void 0)||0;!c&&N("web_client_counter_random_seed")&&(c=Math.floor(Math.random()*iha/2));c++;c>iha&&(c=1);pd("BATCH_CLIENT_COUNTER",c);b={serializedEventId:b,clientCounter:String(c)};a.serializedClientEventId=b;Xk&&Yk&&N("log_gel_rtt_web")&&(a.previousBatchInfo={serializedClientEventId:Xk,roundtripMs:String(Yk)});Xk=b;Yk=0}}
function oha(a,b,c){if(c.videoId)var d="VIDEO";else if(c.playlistId)d="PLAYLIST";else return;a.credentialTransferTokenTargetId=c;a.context=a.context||{};a.context.user=a.context.user||{};a.context.user.credentialTransferTokens=[{token:b,scope:d}]}
;var fl=t.ytLoggingGelSequenceIdObj_||{};Fa("ytLoggingGelSequenceIdObj_",fl,void 0);
function gl(a,b,c,d){d=void 0===d?{}:d;var f={};f.eventTimeMs=Math.round(d.timestamp||Wk());f[a]=b;a=Nk();f.context={lastActivityMs:String(d.timestamp||!isFinite(a)?-1:a)};N("log_sequence_info_on_gel_web")&&d.sequenceGroup&&(a=f.context,b=d.sequenceGroup,fl[b]=b in fl?fl[b]+1:0,a.sequence={index:fl[b],groupKey:b},d.endOfSequence&&delete fl[d.sequenceGroup]);d=d.cttAuthInfo;a="";d&&(a={},d.videoId?a.videoId=d.videoId:d.playlistId&&(a.playlistId=d.playlistId),cl[d.token]=a,a=d.token);d=bl.get(a)||[];
bl.set(a,d);d.push(f);c&&(Zk=new c);c=fk("web_logging_max_batch")||100;f=Wk();d.length>=c?dl(!0):10<=f-jha&&(mha(),jha=f)}
;function rha(){var a=sha;Ja("yt.ads.biscotti.getId_")||Fa("yt.ads.biscotti.getId_",a,void 0)}
function tha(a){Fa("yt.ads.biscotti.lastId_",a,void 0)}
;var uha=/^[\w.]*$/,vha={q:!0,search_query:!0};function hl(a,b){b=a.split(b);for(var c={},d=0,f=b.length;d<f;d++){var g=b[d].split("=");if(1==g.length&&g[0]||2==g.length)try{var l=wha(g[0]||""),m=wha(g[1]||"");l in c?Array.isArray(c[l])?Baa(c[l],m):c[l]=[c[l],m]:c[l]=m}catch(z){var n=z,r=g[0],v=String(hl);n.args=[{key:r,value:g[1],query:a,method:xha==v?"unchanged":v}];vha.hasOwnProperty(r)||("ReferenceError"===n.name?td(n):sd(n))}}return c}
var xha=String(hl);function il(a){var b=[];A.forEach(a,function(c,d){var f=zc(d);cb(Array.isArray(c)?c:[c],function(g){""==g?b.push(f):b.push(f+"="+zc(g))})});
return b.join("&")}
function jl(a){"?"==a.charAt(0)&&(a=a.substr(1));return hl(a,"&")}
function yha(a){a=a.split(",");return a=a.map(function(b){return jl(b)})}
function kl(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),jl(1<a.length?a[1]:a[0])):{}}
function ll(a,b){return ml(a,b||{},!0)}
function ml(a,b,c){var d=a.split("#",2);a=d[0];d=1<d.length?"#"+d[1]:"";var f=a.split("?",2);a=f[0];f=jl(f[1]||"");for(var g in b)if(c||!A.containsKey(f,g))f[g]=b[g];return Id(a,f)+d}
function nl(a){if(!b)var b=window.location.href;var c=xd(a)[1]||null,d=yd(a);return c&&d?Dd(a,b):d?yd(b)==d&&(Number(xd(b)[4]||null)||null)==(Number(xd(a)[4]||null)||null):!0}
function wha(a){return a&&a.match(uha)?a:Ac(a)}
;var ol=function(a){var b=zha;a=void 0===a?Ja("yt.ads.biscotti.lastId_")||"":a;var c=Object,d=c.assign,f={};f.dt=Gea;f.flash="0";a:{try{var g=b.win_.top.location.href}catch(E){g=2;break a}g=g?g===b.doc_.location.href?0:1:2}f=(f.frm=g,f);f.u_tz=-new Date().getTimezoneOffset();var l=void 0===l?Sf:l;try{var m=l.history.length}catch(E){m=0}f.u_his=m;f.u_java=!!Sf.navigator&&"unknown"!==typeof Sf.navigator.javaEnabled&&!!Sf.navigator.javaEnabled&&Sf.navigator.javaEnabled();Sf.screen&&(f.u_h=Sf.screen.height,
f.u_w=Sf.screen.width,f.u_ah=Sf.screen.availHeight,f.u_aw=Sf.screen.availWidth,f.u_cd=Sf.screen.colorDepth);Sf.navigator&&Sf.navigator.plugins&&(f.u_nplug=Sf.navigator.plugins.length);Sf.navigator&&Sf.navigator.mimeTypes&&(f.u_nmime=Sf.navigator.mimeTypes.length);m=b.win_;try{var n=m.screenX;var r=m.screenY}catch(E){}try{var v=m.outerWidth;var z=m.outerHeight}catch(E){}try{var C=m.innerWidth;var J=m.innerHeight}catch(E){}n=[m.screenLeft,m.screenTop,n,r,m.screen?m.screen.availWidth:void 0,m.screen?
m.screen.availTop:void 0,v,z,C,J];r=Eea(!1,b.win_.top);v={};z=new bj;t.SVGElement&&t.document.createElementNS&&z.set(0);C=Xda();C["allow-top-navigation-by-user-activation"]&&z.set(1);C["allow-popups-to-escape-sandbox"]&&z.set(2);t.crypto&&t.crypto.subtle&&z.set(3);t.TextDecoder&&t.TextEncoder&&z.set(4);z=Yfa(z);b=(v.bc=z,v.bih=r.height,v.biw=r.width,v.brdim=n.join(),v.vis=cj(b.doc_),v.wgl=!!Sf.WebGLRenderingContext,v);c=d.call(c,f,b);c.ca_type="image";a&&(c.bid=a);return c},zha=new function(){var a=
window.document;
this.win_=window;this.doc_=a};
Fa("yt.ads_.signals_.getAdSignalsString",function(a){return il(ol(a))},void 0);Va();navigator.userAgent.indexOf(" (CrKey ");var Aha="XMLHttpRequest"in t?function(){return new XMLHttpRequest}:null;
function Bha(){if(!Aha)return null;var a=Aha();return"open"in a?a:null}
function Cha(a){switch(pl(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1;}}
function pl(a){return a&&"status"in a?a.status:-1}
;var Dha={Authorization:"AUTHORIZATION","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-YouTube-Delegation-Context":"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT","X-YouTube-Device":"DEVICE","X-Youtube-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL","X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM"},Eha="app debugcss debugjs expflag force_ad_params force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address client_dev_root_url".split(" "),
Fha=!1;function Gha(a,b){b=void 0===b?{}:b;var c=nl(a),d=N("web_ajax_ignore_global_headers_if_set"),f;for(f in Dha){var g=B(Dha[f]);!g||!c&&yd(a)||d&&void 0!==b[f]||(b[f]=g)}if(c||!yd(a))b["X-YouTube-Utc-Offset"]=String(-new Date().getTimezoneOffset());(c||!yd(a))&&(d="undefined"!=typeof Intl?new Intl.DateTimeFormat().resolvedOptions().timeZone:null)&&(b["X-YouTube-Time-Zone"]=d);if(c||!yd(a))b["X-YouTube-Ad-Signals"]=il(ol(void 0));return b}
function ql(a){var b=window.location.search,c=yd(a),d=zd(a);d=(c=c&&(c.endsWith("youtube.com")||c.endsWith("youtube-nocookie.com")))&&d&&d.startsWith("/api/");if(!c||d)return a;var f=jl(b),g={};cb(Eha,function(l){f[l]&&(g[l]=f[l])});
return ml(a,g||{},!1)}
function Hha(a,b){if(window.fetch&&"XML"!=b.format){var c={method:b.method||"GET",credentials:"same-origin"};b.headers&&(c.headers=b.headers);a=Iha(a,b);var d=Jha(a,b);d&&(c.body=d);b.withCredentials&&(c.credentials="include");var f=!1,g;fetch(a,c).then(function(l){if(!f){f=!0;g&&vk(g);var m=l.ok,n=function(r){r=r||{};var v=b.context||t;m?b.onSuccess&&b.onSuccess.call(v,r,l):b.onError&&b.onError.call(v,r,l);b.onFinish&&b.onFinish.call(v,r,l)};
"JSON"==(b.format||"JSON")&&(m||400<=l.status&&500>l.status)?l.json().then(n,function(){n(null)}):n(null)}});
b.onFetchTimeout&&0<b.timeout&&(g=tk(function(){f||(f=!0,vk(g),b.onFetchTimeout.call(b.context||t))},b.timeout))}else rl(a,b)}
function Kha(a,b){var c=B("XSRF_FIELD_NAME",void 0),d;b.headers&&(d=b.headers["Content-Type"]);return!b.excludeXsrf&&(!yd(a)||b.withCredentials||yd(a)==document.location.hostname)&&"POST"==b.method&&(!d||"application/x-www-form-urlencoded"==d)&&!(b.postParams&&b.postParams[c])}
function rl(a,b){var c=b.format||"JSON";a=Iha(a,b);var d=Jha(a,b),f=!1,g=sl(a,function(n){if(!f){f=!0;m&&vk(m);var r=Cha(n),v=null,z=400<=n.status&&500>n.status,C=500<=n.status&&600>n.status;if(r||z||C)v=Lha(a,c,n,b.convertToSafeHtml);if(r)a:if(n&&204==n.status)r=!0;else{switch(c){case"XML":r=0==parseInt(v&&v.return_code,10);break a;case"RAW":r=!0;break a;}r=!!v}v=v||{};z=b.context||t;r?b.onSuccess&&b.onSuccess.call(z,n,v):b.onError&&b.onError.call(z,n,v);b.onFinish&&b.onFinish.call(z,n,v)}},b.method,
d,b.headers,b.responseType,b.withCredentials);
if(b.onTimeout&&0<b.timeout){var l=b.onTimeout;var m=tk(function(){f||(f=!0,g.abort(),vk(m),l.call(b.context||t,g))},b.timeout)}return g}
function Iha(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=B("XSRF_FIELD_NAME",void 0);if(b=b.urlParams)b[c]&&delete b[c],a=ll(a,b);return a}
function Jha(a,b){var c=B("XSRF_FIELD_NAME",void 0),d=B("XSRF_TOKEN",void 0),f=b.postBody||"",g=b.postParams;Kha(a,b)&&(g||(g={}),g[c]=d);g&&"string"===typeof f&&(f=jl(f),A.extend(f,g),f=b.postBodyFormat&&"JSON"==b.postBodyFormat?JSON.stringify(f):Hd(f));g=f||g&&!A.isEmpty(g);!Fha&&g&&"POST"!=b.method&&(Fha=!0,sd(Error("AJAX request with postData should use POST")));return f}
function Lha(a,b,c,d){var f=null;switch(b){case"JSON":try{var g=c.responseText}catch(l){throw d=Error("Error reading responseText"),d.params=a,td(d),l}a=c.getResponseHeader("Content-Type")||"";g&&0<=a.indexOf("json")&&(")]}'\n"===g.substring(0,5)&&(g=g.substring(5)),f=JSON.parse(g));break;case"XML":if(a=(a=c.responseXML)?Mha(a):null)f={},cb(a.getElementsByTagName("*"),function(l){f[l.tagName]=Nha(l)});}d&&Oha(f);
return f}
function Oha(a){if(Pa(a))for(var b in a)"html_content"==b||Mb(b,"_html")?a[b]=oc(a[b],null):Oha(a[b])}
function Mha(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null}
function Nha(a){var b="";cb(a.childNodes,function(c){b+=c.nodeValue});
return b}
var sl=function(a,b,c,d,f,g,l){c=void 0===c?"GET":c;d=void 0===d?"":d;var m=Bha();if(!m)return null;var n=function(){4==(m&&"readyState"in m?m.readyState:0)&&b&&rd(b)(m)};
"onloadend"in m?m.addEventListener("loadend",n,!1):m.onreadystatechange=n;N("debug_forward_web_query_parameters")&&(a=ql(a));m.open(c,a,!0);g&&(m.responseType=g);l&&(m.withCredentials=!0);c="POST"==c&&(void 0===window.FormData||!(d instanceof FormData));if(f=Gha(a,f))for(var r in f)m.setRequestHeader(r,f[r]),"content-type"==r.toLowerCase()&&(c=!1);c&&m.setRequestHeader("Content-Type","application/x-www-form-urlencoded");m.send(d);return m},Pha=Kha;function Qha(){return"INNERTUBE_API_KEY"in od&&"INNERTUBE_API_VERSION"in od}
function el(){return{innertubeApiKey:B("INNERTUBE_API_KEY",void 0),innertubeApiVersion:B("INNERTUBE_API_VERSION",void 0),innertubeContextClientConfigInfo:B("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:B("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientVersion:B("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0),innertubeContextHostLanguage:B("INNERTUBE_CONTEXT_HL",void 0),innertubeContextGeoLocation:B("INNERTUBE_CONTEXT_GL",void 0),innertubeHostOverride:B("INNERTUBE_HOST_OVERRIDE",
void 0)||"",innertubeUseThirdPartyAuth:qd("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:qd("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:B("SERIALIZED_CLIENT_CONFIG_DATA",void 0)}}
function nha(a){var b={client:{hl:a.innertubeContextHostLanguage,gl:a.innertubeContextGeoLocation,clientName:a.innertubeContextClientName,clientVersion:a.innertubeContextClientVersion,configInfo:a.innertubeContextClientConfigInfo}},c=window.devicePixelRatio;c&&1!=c&&(b.client.screenDensityFloat=String(c));c=B("EXPERIMENTS_TOKEN","");""!==c&&(b.client.experimentsToken=c);c=Wga();0<c.length&&(b.request={internalExperimentFlags:c});a.appInstallData&&N("web_log_app_install_experiments")&&(b.client.configInfo=
b.client.configInfo||{},b.client.configInfo.appInstallData=a.appInstallData);B("DELEGATED_SESSION_ID")&&!N("pageid_as_header_web")&&(b.user={onBehalfOfUser:B("DELEGATED_SESSION_ID")});a=Object;c=a.assign;for(var d=b.client,f={},g=k(Object.entries(jl(B("DEVICE","")))),l=g.next();!l.done;l=g.next()){var m=k(l.value);l=m.next().value;m=m.next().value;"cbrand"===l?f.deviceMake=m:"cmodel"===l?f.deviceModel=m:"cbr"===l?f.browserName=m:"cbrver"===l?f.browserVersion=m:"cos"===l?f.osName=m:"cosver"===l?f.osVersion=
m:"cplatform"===l&&(f.platform=m)}b.client=c.call(a,d,f);return b}
function tl(a,b,c){c=void 0===c?{}:c;var d={"X-Goog-Visitor-Id":c.visitorData||B("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;(b=c.authorization||B("AUTHORIZATION"))||(b=a?"Bearer "+Ja("gapi.auth.getToken")().access_token:Rh([]));b&&(d.Authorization=b,d["X-Goog-AuthUser"]=B("SESSION_INDEX",0),N("pageid_as_header_web")&&(d["X-Goog-PageId"]=B("DELEGATED_SESSION_ID")));return d}
;function ul(a){a=Object.assign({},a);delete a.Authorization;var b=Rh();if(b){var c=new dj;c.update(B("INNERTUBE_API_KEY",void 0));c.update(b);a.hash=Me(c.digest(),3)}return a}
;function vl(a,b,c,d,f){Qh.set(""+a,b,{maxAge:c,path:"/",domain:void 0===d?"youtube.com":d,secure:void 0===f?!1:f})}
function wl(a,b){return Qh.get(""+a,b)}
function xl(a,b,c){Qh.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)}
function Rha(){if(!Qh.isEnabled())return!1;if(!Qh.isEmpty())return!0;Qh.set("TESTCOOKIESENABLED","1",{maxAge:60});if("1"!==Qh.get("TESTCOOKIESENABLED"))return!1;Qh.remove("TESTCOOKIESENABLED");return!0}
;var yl=function(a){var b;(b=sga(a))||(a=new Gj(a||"UserDataSharedStore"),b=a.isAvailable()?a:null);this.expiringStorage_=(a=b)?new Aj(a):null;this.domain_=document.domain||window.location.hostname};
e=yl.prototype;e.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.expiringStorage_)try{this.expiringStorage_.set(a,b,Va()+1E3*c);return}catch(g){}var f="";if(d)try{f=escape(uj(b))}catch(g){return}else f=escape(b);vl(a,f,c,this.domain_)};
e.get=function(a,b){var c=void 0,d=!this.expiringStorage_;if(!d)try{c=this.expiringStorage_.get(a)}catch(f){d=!0}if(d&&(c=wl(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(f){this.remove(a),c=void 0}return c};
e.remove=function(a){this.expiringStorage_&&this.expiringStorage_.remove(a);xl(a,"/",this.domain_)};
e.getCreationTime=function(a){return this.expiringStorage_&&(a=(this.expiringStorage_.getWrapper(a)||{}).creation,"number"===typeof a)?a:null};
e.getExpirationTime=function(a){return this.expiringStorage_&&(a=(this.expiringStorage_.getWrapper(a)||{}).expiration,"number"===typeof a)?a:null};var zl;function Al(){zl||(zl=new yl("yt.innertube"));return zl}
function Sha(a,b,c,d){if(d)return null;d=Al().get("nextId",!0)||1;var f=Al().get("requests",!0)||{};f[d]={method:a,request:b,authState:ul(c),requestTime:Math.round(Wk())};Al().set("nextId",d+1,86400,!0);Al().set("requests",f,86400,!0);return d}
function Bl(a){var b=Al().get("requests",!0)||{};delete b[a];Al().set("requests",b,86400,!0)}
function Tha(a){var b=Al().get("requests",!0);if(b){for(var c in b){var d=b[c];if(!(6E4>Math.round(Wk())-d.requestTime)){var f=d.authState,g=ul(tl(!1));A.equals(f,g)&&(f=d.request,"requestTimeMs"in f&&(f.requestTimeMs=Math.round(Wk())),qha(a,d.method,f,{}));delete b[c]}}Al().set("requests",b,86400,!0)}}
;var Cl=function(a,b){this.version=a;this.args=b};
Cl.prototype.serialize=function(){return{version:this.version,args:this.args}};var Dl=function(a,b){this.topic=a;this.dataClass=b};
Dl.prototype.toString=function(){return this.topic};var Uha=Ja("ytPubsub2Pubsub2Instance")||new wj;wj.prototype.subscribe=wj.prototype.subscribe;wj.prototype.unsubscribeByKey=wj.prototype.unsubscribeByKey;wj.prototype.publish=wj.prototype.publish;wj.prototype.clear=wj.prototype.clear;Fa("ytPubsub2Pubsub2Instance",Uha,void 0);var El=Ja("ytPubsub2Pubsub2SubscribedKeys")||{};Fa("ytPubsub2Pubsub2SubscribedKeys",El,void 0);var Fl=Ja("ytPubsub2Pubsub2TopicToKeys")||{};Fa("ytPubsub2Pubsub2TopicToKeys",Fl,void 0);var Vha=Ja("ytPubsub2Pubsub2IsAsync")||{};
Fa("ytPubsub2Pubsub2IsAsync",Vha,void 0);Fa("ytPubsub2Pubsub2SkipSubKey",null,void 0);function Gl(a,b){var c=Hl();c&&c.publish.call(c,a.toString(),a,b)}
function Wha(a,b,c){var d=Hl();if(!d)return 0;var f=d.subscribe(a.toString(),function(g,l){var m=Ja("ytPubsub2Pubsub2SkipSubKey");m&&m==f||(m=function(){if(El[f])try{if(l&&a instanceof Dl&&a!=g)try{var n=a.dataClass,r=l;if(!r.args||!r.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!n.version_){var v=new n;n.version_=v.version}var z=n.version_}catch(C){}if(!z||r.version!=z)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");
try{l=Reflect.construct(n,pb(r.args))}catch(C){throw C.message="yt.pubsub2.Data.deserialize(): "+C.message,C}}catch(C){throw C.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+C.message,C}b.call(c||window,l)}catch(C){sd(C)}},Vha[a.toString()]?Ja("yt.scheduler.instance")?zk(Ck,m):tk(m,0):m())});
El[f]=!0;Fl[a.toString()]||(Fl[a.toString()]=[]);Fl[a.toString()].push(f);return f}
function Xha(){var a=Yha,b=Wha(Zha,function(c){a.apply(void 0,arguments);$ha(b)},void 0);
return b}
function $ha(a){var b=Hl();b&&("number"===typeof a&&(a=[a]),cb(a,function(c){b.unsubscribeByKey(c);delete El[c]}))}
function Hl(){return Ja("ytPubsub2Pubsub2Instance")}
;var Il=function(){this.syncHeaders=!0},aia=function(){Il.instance||(Il.instance=new Il);
return Il.instance},cia=function(a,b){return Ni(bia(b))},bia=function(a){var b={},c=Rh([]);
c&&(b.Authorization=c,c=a=null===a||void 0===a?void 0:a.sessionIndex,void 0===c&&(c=Number(B("SESSION_INDEX",0)),c=isNaN(c)?0:c),b["X-Goog-AuthUser"]=c,"INNERTUBE_HOST_OVERRIDE"in od||(b["X-Origin"]=window.location.origin),N("pageid_as_header_web")&&void 0===a&&"DELEGATED_SESSION_ID"in od&&(b["X-Goog-PageId"]=B("DELEGATED_SESSION_ID")));return b};var Jl={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var dia=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"];function eia(){for(var a=k(dia),b=a.next();!b.done;b=a.next())if(b=Qh.get(b.value))return b;return"LOGGED_OUT"}
var Kl=function(){zi.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];this.isMonitoring=!1;fia(this)};
p(Kl,zi);var gia=function(){Kl.instance||(Kl.instance=new Kl);return Kl.instance};
Kl.prototype.startMonitoring=function(){this.isMonitoring=!0;this.verifyUser();this.poll()};
Kl.prototype.stopMonitoring=function(){this.isMonitoring=!1;this.clearTimeout()};
Kl.prototype.setPollingInterval=function(a){this.pollingInterval=a};
Kl.prototype.verifyUser=function(){var a=fia(this),b=a.logout;if(!a.sessionChange)return this.poll(),!0;this.dispatchEvent("ytsessionchange");b&&this.dispatchEvent("ytuserinvalid");this.poll();return!1};
var fia=function(a){var b=dia.map(function(f){var g;return null!==(g=Qh.get(f))&&void 0!==g?g:""}),c=b.some(function(f,g){return a.sessionCookies&&""!==a.sessionCookies[g]&&""===f}),d=b.some(function(f,g){return a.sessionCookies&&a.sessionCookies[g]!==f});
a.sessionCookies=b;return{logout:c,sessionChange:d}};
Kl.prototype.poll=function(){var a=this;this.isMonitoring&&(this.clearTimeout(),this.scheduledJobId=yk(Ck,function(){a.verifyUser()},this.pollingInterval))};
Kl.prototype.clearTimeout=function(){this.scheduledJobId&&(Ck.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var Ll;function hia(){var a=B("DATASYNC_ID");Ll=null!==a&&void 0!==a?a:"LOGGED_OUT"}
function iia(){if(void 0===Ll)throw Error("Datasync ID not set");return Ll}
;var jia=bda||cda;function kia(a){var b=ec;return b?0<=b.toLowerCase().indexOf(a):!1}
;var Ml=[],Nl,Ol=!1;function lia(a){Ol||(Nl?Nl.logError(a):(Ml.push({type:"ERROR",payload:a}),10<Ml.length&&Ml.shift()))}
function Pl(a,b){Ol||(Nl?Nl.logEvent(a,b):(Ml.push({type:"EVENT",eventType:a,payload:b}),10<Ml.length&&Ml.shift()))}
;var Ql=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];d=Error.call(this,a);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.args=[].concat(fa(c))};
p(Ql,Error);var Rl={},mia=(Rl.AUTH_INVALID="No user identifier specified.",Rl.EXPLICIT_ABORT="Transaction was explicitly aborted.",Rl.IDB_NOT_SUPPORTED="IndexedDB is not supported.",Rl.MISSING_OBJECT_STORE="Object store not created.",Rl.UNKNOWN_ABORT="Transaction was aborted for unknown reasons.",Rl.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",Rl.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",Rl),Sl=function(a,b,c){b=void 0===
b?{}:b;c=void 0===c?mia[a]:c;Ql.call(this,c,Object.assign({name:"YtIdbKnownError",isSw:void 0===self.document,isIframe:self!==self.top,type:a},b));this.type=a;this.message=c;Object.setPrototypeOf(this,Sl.prototype);lia(this)};
p(Sl,Ql);var Tl=function(a){Sl.call(this,"MISSING_OBJECT_STORE",{missingObjectStore:a},mia.MISSING_OBJECT_STORE);Object.setPrototypeOf(this,Tl.prototype)};
p(Tl,Sl);function nia(a){if(!a)throw Error();throw a}
function oia(a){return a}
var Ul=function(a){var b=this;this.executor=a;this.state={status:"PENDING"};this.onFulfilled=[];this.onRejected=[];this.executor(function(c){if("PENDING"===b.state.status){b.state={status:"FULFILLED",value:c};c=k(b.onFulfilled);for(var d=c.next();!d.done;d=c.next())d=d.value,d()}},function(c){if("PENDING"===b.state.status){b.state={status:"REJECTED",
reason:c};c=k(b.onRejected);for(var d=c.next();!d.done;d=c.next())d=d.value,d()}})};
Ul.all=function(a){return new Ul(function(b,c){var d=[],f=a.length;0===f&&b(d);for(var g={$jscomp$loop$prop$i$2351:0};g.$jscomp$loop$prop$i$2351<a.length;g={$jscomp$loop$prop$i$2351:g.$jscomp$loop$prop$i$2351},++g.$jscomp$loop$prop$i$2351)Ul.resolve(a[g.$jscomp$loop$prop$i$2351]).then(function(l){return function(m){d[l.$jscomp$loop$prop$i$2351]=m;f--;0===f&&b(d)}}(g)).catch(function(l){c(l)})})};
Ul.resolve=function(a){return new Ul(function(b,c){a instanceof Ul?a.then(b,c):b(a)})};
Ul.reject=function(a){return new Ul(function(b,c){c(a)})};
Ul.prototype.then=function(a,b){var c=this,d=null!==a&&void 0!==a?a:oia,f=null!==b&&void 0!==b?b:nia;return new Ul(function(g,l){"PENDING"===c.state.status?(c.onFulfilled.push(function(){pia(c,c,d,g,l)}),c.onRejected.push(function(){qia(c,c,f,g,l)})):"FULFILLED"===c.state.status?pia(c,c,d,g,l):"REJECTED"===c.state.status&&qia(c,c,f,g,l)})};
Ul.prototype.catch=function(a){return this.then(void 0,a)};
var pia=function(a,b,c,d,f){try{if("FULFILLED"!==a.state.status)throw Error("calling handleResolve before the promise is fulfilled.");var g=c(a.state.value);g instanceof Ul?Vl(a,b,g,d,f):d(g)}catch(l){f(l)}},qia=function(a,b,c,d,f){try{if("REJECTED"!==a.state.status)throw Error("calling handleReject before the promise is rejected.");
var g=c(a.state.reason);g instanceof Ul?Vl(a,b,g,d,f):d(g)}catch(l){f(l)}},Vl=function(a,b,c,d,f){b===c?f(new TypeError("Circular promise chain detected.")):c.then(function(g){g instanceof Ul?Vl(a,b,g,d,f):d(g)},function(g){f(g)})};function ria(a,b,c){var d=function(){try{a.removeEventListener("success",f),a.removeEventListener("error",g)}catch(l){}},f=function(){b(a.result);
d()},g=function(){c(a.error);
d()};
a.addEventListener("success",f);a.addEventListener("error",g)}
function sia(a){return new Promise(function(b,c){ria(a,b,c)})}
function Wl(a){return new Ul(function(b,c){ria(a,b,c)})}
;function Xl(a,b){return new Ul(function(c,d){var f=function(){var g=a?b(a):null;g?g.then(function(l){a=l;f()},d):c()};
f()})}
var tia=function(a,b){this.request=a;this.cursor=b},Yl=function(a){return Wl(a).then(function(b){return null===b?null:new tia(a,b)})};
e=tia.prototype;e.advance=function(a){this.cursor.advance(a);return Yl(this.request)};
e.continue=function(a){this.cursor.continue(a);return Yl(this.request)};
e.continuePrimaryKey=function(a,b){this.cursor.continuePrimaryKey(a,b);return Yl(this.request)};
e.getKey=function(){return this.cursor.key};
e.getPrimaryKey=function(){return this.cursor.primaryKey};var Zl=function(a,b){this.wrapped=a;this.options=b;this.transactionCount=0;this.startedMs=Math.round(Wk());this.hasUnknownAbortedTransaction=!1};
e=Zl.prototype;e.add=function(a,b,c){return $l(this,[a],"readwrite",function(d){return d.objectStore(a).add(b,c)})};
e.clear=function(a){return $l(this,[a],"readwrite",function(b){return b.objectStore(a).clear()})};
e.close=function(){var a;this.wrapped.close();(null===(a=this.options)||void 0===a?0:a.closed)&&this.options.closed()};
e.count=function(a,b){return $l(this,[a],"readonly",function(c){return c.objectStore(a).count(b)})};
e.countFromIndex=function(a,b,c){return $l(this,[a],"readonly",function(d){return d.objectStore(a).index(b).count(c)})};
e.createObjectStore=function(a,b){a=this.wrapped.createObjectStore(a,b);return new am(a)};
e.delete=function(a,b){return $l(this,[a],"readwrite",function(c){return c.objectStore(a).delete(b)})};
var uia=function(a,b,c){return $l(a,["ResponseStore"],"readwrite",function(d){return d.objectStore("ResponseStore").index(b).delete(c)})};
e=Zl.prototype;e.deleteObjectStore=function(a){this.wrapped.deleteObjectStore(a)};
e.get=function(a,b){return $l(this,[a],"readwrite",function(c){return c.objectStore(a).get(b)})};
e.getAll=function(a,b,c){return $l(this,[a],"readwrite",function(d){return d.objectStore(a).getAll(b,c)})};
e.getFromIndex=function(a,b,c){return $l(this,[a],"readonly",function(d){return d.objectStore(a).index(b).get(c)})};
e.getKeyFromIndex=function(a,b,c){return $l(this,[a],"readonly",function(d){return d.objectStore(a).index(b).getKey(c)})};
e.put=function(a,b,c){return $l(this,[a],"readwrite",function(d){return d.objectStore(a).put(b,c)})};
e.hasObjectStore=function(a){return this.wrapped.objectStoreNames.contains(a)};
var $l=function(a,b,c,d){c=void 0===c?"readonly":c;a.transactionCount++;var f=a.wrapped.transaction(b,c);d=via(f,d).catch(function(g){var l=a.wrapped.name,m=b.join();g instanceof Sl||g instanceof Ql||("QuotaExceededError"===g.name?g=new Sl("QUOTA_EXCEEDED",{objectStoreNames:m,dbName:l}):Ke&&"UnknownError"===g.name?g=new Sl("QUOTA_MAYBE_EXCEEDED",{objectStoreNames:m,dbName:l}):(Object.setPrototypeOf(g,Ql.prototype),g.args=[{name:"IdbError",originalName:g.name,dbName:l,objectStoreNames:m}]));throw g;
});
wia(a,d,b.join(),c);return d},wia=function(a,b,c,d){Xa(a,function g(){var l,m,n=this,r,v,z;
return ya(g,function(C){if(1==C.nextAddress)return l=Math.round(Wk()),ra(C,2),q(C,b,4);if(2!=C.nextAddress)return m=Math.round(Wk()),xia(n,!0,c,m-l),ta(C,0);r=ua(C);v=Math.round(Wk());z=v-l;r instanceof Sl&&("QUOTA_EXCEEDED"===r.type||"QUOTA_MAYBE_EXCEEDED"===r.type)&&Pl("QUOTA_EXCEEDED",{dbName:n.wrapped.name,objectStoreNames:c,transactionCount:n.transactionCount,transactionMode:d});r instanceof Sl&&"UNKNOWN_ABORT"===r.type&&(Pl("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:c,transactionDuration:z,
transactionCount:n.transactionCount,dbDuration:v-n.startedMs}),n.hasUnknownAbortedTransaction=!0);xia(n,!1,c,z);oa(C)})})},xia=function(a,b,c,d){Pl("TRANSACTION_ENDED",{objectStoreNames:c,
connectionHasUnknownAbortedTransaction:a.hasUnknownAbortedTransaction,duration:d,isSuccessful:b})};
Zl.prototype.getVersion=function(){return this.wrapped.version};
var am=function(a){this.wrapped=a};
am.prototype.add=function(a,b){return Wl(this.wrapped.add(a,b))};
am.prototype.clear=function(){return Wl(this.wrapped.clear()).then(function(){})};
am.prototype.createIndex=function(a,b,c){this.wrapped.createIndex(a,b,c)};
am.prototype.count=function(a){return Wl(this.wrapped.count(a))};
var yia=function(a,b){return a.withCursor({query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})};
am.prototype.delete=function(a){return a instanceof IDBKeyRange?yia(this,a):Wl(this.wrapped.delete(a))};
am.prototype.get=function(a){return Wl(this.wrapped.get(a))};
am.prototype.getAll=function(a,b){return"getAll"in IDBObjectStore.prototype&&!bm.forcePolyfills()?Wl(this.wrapped.getAll(a,b)):zia(this,a,b)};
var zia=function(a,b,c){var d=[];return a.withCursor({query:b},function(f){if(!(void 0!==c&&d.length>=c))return d.push(f.getValue()),f.continue()}).then(function(){return d})};
e=am.prototype;e.index=function(a){return new cm(this.wrapped.index(a))};
e.getName=function(){return this.wrapped.name};
e.put=function(a,b){return Wl(this.wrapped.put(a,b))};
e.withCursor=function(a,b){a=this.wrapped.openCursor(a.query,a.direction);return dm(a).then(function(c){return Xl(c,b)})};
e.withKeyCursor=function(a,b){var c=a.query;a=a.direction;c="openKeyCursor"in IDBObjectStore.prototype&&!bm.forcePolyfills()?this.wrapped.openKeyCursor(c,a):this.wrapped.openCursor(c,a);return Yl(c).then(function(d){return Xl(d,b)})};
var em=function(a){var b=this;this.wrapped=a;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(c,d){b.wrapped.addEventListener("complete",function(){c()});
b.wrapped.addEventListener("error",function(f){f.currentTarget===f.target&&d(b.wrapped.error)});
b.wrapped.addEventListener("abort",function(){var f=b.wrapped.error;if(f)d(f);else if(!b.aborted){f=Sl;for(var g=b.wrapped.objectStoreNames,l=[],m=0;m<g.length;m++){var n=g.item(m);if(null===n)throw Error("Invariant: item in DOMStringList is null");l.push(n)}f=new f("UNKNOWN_ABORT",{objectStoreNames:l.join(),dbName:b.wrapped.db.name,mode:b.wrapped.mode});d(f)}})})},via=function(a,b){a=new em(a);
return Aia(a,b)},Aia=function(a,b){var c=new Promise(function(d,f){b(a).then(function(g){a.commit();
d(g)}).catch(f)});
return Promise.all([c,a.done]).then(function(d){return k(d).next().value})};
e=em.prototype;e.abort=function(){this.wrapped.abort();this.aborted=!0;throw new Sl("EXPLICIT_ABORT")};
e.commit=function(){var a=this.wrapped;a.commit&&!this.aborted&&a.commit()};
e.getMode=function(){return this.wrapped.mode};
e.hasObjectStore=function(a){return this.wrapped.objectStoreNames.contains(a)};
e.objectStore=function(a){a=this.wrapped.objectStore(a);var b=this.objectStoreCache.get(a);b||(b=new am(a),this.objectStoreCache.set(a,b));return b};
var cm=function(a){this.wrapped=a};
e=cm.prototype;e.count=function(a){return Wl(this.wrapped.count(a))};
e.delete=function(a){return this.withCursor({query:a},function(b){return b.delete().then(function(){return b.continue()})})};
e.get=function(a){return Wl(this.wrapped.get(a))};
e.getKey=function(a){return Wl(this.wrapped.getKey(a))};
e.openCursor=function(a,b){a=this.wrapped.openCursor(void 0===a?null:a,void 0===b?"next":b);return dm(a)};
e.withCursor=function(a,b){a=this.wrapped.openCursor(void 0===a.query?null:a.query,void 0===a.direction?"next":a.direction);return dm(a).then(function(c){return Xl(c,b)})};
var fm=function(a,b){this.request=a;this.cursor=b},dm=function(a){return Wl(a).then(function(b){return null===b?null:new fm(a,b)})};
e=fm.prototype;e.advance=function(a){this.cursor.advance(a);return dm(this.request)};
e.continue=function(a){this.cursor.continue(a);return dm(this.request)};
e.delete=function(){return Wl(this.cursor.delete()).then(function(){})};
e.getKey=function(){return this.cursor.key};
e.getPrimaryKey=function(){return this.cursor.primaryKey};
e.getValue=function(){return this.cursor.value};
e.update=function(a){return Wl(this.cursor.update(a))};
var bm={forcePolyfills:function(){return!1}};function Bia(a,b,c){return Xa(this,function f(){var g,l,m,n,r,v,z,C,J,E;return ya(f,function(S){if(1==S.nextAddress)return g=self.indexedDB.open(a,b),l=c,m=l.blocked,n=l.blocking,r=l.terminated,v=l.upgrade,z=l.closed,J=function(){C||(C=new Zl(g.result,{closed:z}));return C},g.addEventListener("upgradeneeded",function(la){if(null===la.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");
if(null===g.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");la.dataLoss&&"none"!==la.dataLoss&&Pl("IDB_DATA_CORRUPTED",{reason:la.dataLossMessage||"unknown reason",dbName:a});var qa=J(),Ia=new em(g.transaction);v&&v(qa,la.oldVersion,la.newVersion,Ia)}),m&&g.addEventListener("blocked",function(){m()}),q(S,sia(g),2);
E=S.yieldResult;n&&E.addEventListener("versionchange",function(){n(J())});
E.addEventListener("close",function(){Pl("IDB_UNEXPECTEDLY_CLOSED",{dbName:a,dbVersion:E.version});r&&r()});
return S.return(J())})})}
function Cia(a,b,c){c=void 0===c?{}:c;return Bia(a,b,c)}
function gm(a,b){b=void 0===b?{}:b;return Xa(this,function d(){var f,g,l;return ya(d,function(m){f=self.indexedDB.deleteDatabase(a);g=b;(l=g.blocked)&&f.addEventListener("blocked",function(){l()});
return q(m,sia(f),0)})})}
;var hm=function(a,b){this.name=a;this.options=b;this.deletedToFixMissingObjectStore=!1};
e=hm.prototype;e.openDb=function(a,b,c){c=void 0===c?{}:c;return Cia(a,b,c)};
e.delete=function(a){a=void 0===a?{}:a;return gm(this.name,a)};
e.connectionCreated=function(){};
e.connectionRemoved=function(){};
e.open=function(){var a=this;if(!this.connectionPromise){var b,c=function(){a.connectionPromise===b&&(a.connectionPromise=void 0)},d={blocking:function(g){g.close()},
closed:c,terminated:c,upgrade:this.options.upgrade},f=function(){return Xa(a,function l(){var m=this,n,r,v;return ya(l,function(z){switch(z.nextAddress){case 1:return ra(z,2),q(z,m.openDb(m.name,m.options.version,d),4);case 4:n=z.yieldResult;if(!Ie){z.jumpTo(5);break}a:{var C=k(Object.keys(m.options.objectStores));for(var J=C.next();!J.done;J=C.next())if(J=J.value,!n.hasObjectStore(J)){C=J;break a}C=void 0}r=C;if(void 0===r){z.jumpTo(5);break}if(!Ie||m.deletedToFixMissingObjectStore){z.jumpTo(7);
break}m.deletedToFixMissingObjectStore=!0;return q(z,m.delete(),8);case 8:return z.return(f());case 7:throw new Tl(r);case 5:return z.return(n);case 2:v=ua(z);if(v instanceof DOMException?"VersionError"===v.name:"DOMError"in self&&v instanceof DOMError?"VersionError"===v.name:v instanceof Object&&"message"in v&&"An attempt was made to open a database using a lower version than the existing version."===v.message)return z.return(m.openDb(m.name,void 0,Object.assign(Object.assign({},d),{upgrade:void 0})));
c();throw v;}})})};
this.connectionPromise=b=f()}return this.connectionPromise};var im=new hm("YtIdbMeta",{objectStores:{databases:!0},upgrade:function(a,b){1>b&&a.createObjectStore("databases",{keyPath:"actualName"})}});
function Dia(a){return Xa(this,function c(){var d;return ya(c,function(f){if(1==f.nextAddress)return q(f,im.open(),2);d=f.yieldResult;return f.return($l(d,["databases"],"readwrite",function(g){var l=g.objectStore("databases");return l.get(a.actualName).then(function(m){if(m?a.actualName!==m.actualName||a.publicName!==m.publicName||a.userIdentifier!==m.userIdentifier||a.signedIn!==m.signedIn||a.clearDataOnAuthChange!==m.clearDataOnAuthChange:1)return l.put(a).then(function(){})})}))})})}
function jm(a){return Xa(this,function c(){var d;return ya(c,function(f){if(1==f.nextAddress)return q(f,im.open(),2);d=f.yieldResult;return f.return(d.delete("databases",a))})})}
function km(a){return Xa(this,function c(){var d,f;return ya(c,function(g){return 1==g.nextAddress?(d=[],q(g,im.open(),2)):3!=g.nextAddress?(f=g.yieldResult,q(g,$l(f,["databases"],"readonly",function(l){return l.objectStore("databases").withCursor({},function(m){a(m.getValue())&&d.push(m.getValue());return m.continue()})}),3)):g.return(d)})})}
function Eia(a){return km(function(b){return b.publicName===a})}
function Fia(a){return km(function(b){return b.userIdentifier===a})}
function Gia(a,b){return km(function(c){return!!c.clearDataOnAuthChange&&(c.userIdentifier!==a||c.signedIn!==b)})}
;var lm,mm,Hia=["getAll","getAllKeys","getKey","openKeyCursor"],Iia=["getAll","getAllKeys","getKey","openKeyCursor"],Jia=!1;
function Kia(){return Xa(this,function b(){var c,d;return ya(b,function(f){switch(f.nextAddress){case 1:var g;if(g=Jia||jia)g=/WebKit\/([0-9]+)/.exec(ec),g=!!(g&&600<=parseInt(g[1],10));g&&(g=/WebKit\/([0-9]+)/.exec(ec),g=!(g&&602<=parseInt(g[1],10)));if(g&&!N("ytidb_allow_on_ios_safari_v8_and_v9")||ue)return f.return(!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return f.return(!1)}catch(l){return f.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return f.return(!1);
ra(f,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0,signedIn:!1};return q(f,Dia(d),4);case 4:return q(f,jm("yt-idb-test-do-not-use"),5);case 5:return f.return(!0);case 2:return ua(f),f.return(!1);}})})}
function nm(){if(void 0!==lm)return lm;Ol=!0;return lm=Kia().then(function(a){Ol=!1;return a})}
;var om=0;
function Lia(){var a=this;om||(om=zk(Ck,function(){return Xa(a,function c(){var d,f,g,l,m,n,r;return ya(c,function(v){switch(v.nextAddress){case 1:return q(v,nm(),2);case 2:return(d=v.yieldResult)&&void 0!==Ll?q(v,iia(),3):v.return();case 3:return f=v.yieldResult,g="LOGGED_OUT"!==f,l=!0,ra(v,4),q(v,Gia(f,g),6);case 6:m=v.yieldResult;if(!m.length){l=!1;v.jumpTo(7);break}n=m[0];return q(v,gm(n.actualName),8);case 8:return q(v,jm(n.actualName),7);case 7:ta(v,5);break;case 4:r=ua(v),lia(r),l=!1;case 5:Ck.cancelJob(om),
om=0,l&&Lia(),oa(v);}})})}))}
;function pm(a){if(0<=a.indexOf(":"))throw Error("Database name cannot contain ':'")}
;function Mia(a){if(void 0===Ll)throw new Sl("AUTH_INVALID");var b=iia();return{actualName:a+":"+b,publicName:a,userIdentifier:b,signedIn:"LOGGED_OUT"!==b}}
function Nia(a,b,c,d){var f;return Xa(this,function l(){var m,n;return ya(l,function(r){switch(r.nextAddress){case 1:return q(r,qm(),2);case 2:return pm(a),m=c?{actualName:a,publicName:a,userIdentifier:void 0,signedIn:!1}:Mia(a),m.clearDataOnAuthChange=null!==(f=d.clearDataOnAuthChange)&&void 0!==f?f:!1,ra(r,3),q(r,Dia(m),5);case 5:return q(r,Cia(m.actualName,b,d),6);case 6:return r.return(r.yieldResult);case 3:return n=ua(r),ra(r,7),q(r,jm(m.actualName),9);case 9:ta(r,8);break;case 7:ua(r);case 8:throw n;}
})})}
function qm(){return Xa(this,function b(){var c;return ya(b,function(d){if(1==d.nextAddress)return q(d,nm(),2);c=d.yieldResult;if(!c)throw new Sl("IDB_NOT_SUPPORTED");oa(d)})})}
function Oia(a,b,c){c=void 0===c?{}:c;return Nia(a,b,!1,c)}
function Pia(a,b,c){c=void 0===c?{}:c;return Nia(a,b,!0,c)}
function Qia(a,b){b=void 0===b?{}:b;return Xa(this,function d(){var f;return ya(d,function(g){return 1==g.nextAddress?(pm(a),q(g,qm(),2)):3!=g.nextAddress?(f=Mia(a),q(g,gm(f.actualName,b),3)):q(g,jm(f.actualName),0)})})}
function Ria(a,b){var c=this;a=a.map(function(d){return Xa(c,function g(){return ya(g,function(l){return 1==l.nextAddress?q(l,gm(d.actualName,b),2):q(l,jm(d.actualName),0)})})});
return Promise.all(a).then(function(){})}
function Sia(a,b){b=void 0===b?{}:b;return Xa(this,function d(){var f;return ya(d,function(g){if(1==g.nextAddress)return pm(a),q(g,qm(),2);if(3!=g.nextAddress)return q(g,Eia(a),3);f=g.yieldResult;return q(g,Ria(f,b),0)})})}
function Tia(a,b){b=void 0===b?{}:b;return Xa(this,function d(){return ya(d,function(f){return 1==f.nextAddress?(pm(a),q(f,qm(),2)):3!=f.nextAddress?q(f,gm(a,b),3):q(f,jm(a),0)})})}
;var rm=function(a,b){hm.call(this,a,b);this.options=b;pm(a)};
p(rm,hm);rm.prototype.openDb=function(a,b,c){c=void 0===c?{}:c;return(this.options.shared?Pia:Oia)(a,b,Object.assign(Object.assign({},c),{clearDataOnAuthChange:this.options.clearDataOnAuthChange}))};
rm.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.shared?Tia:Qia)(this.name,a)};
rm.prototype.deleteForAllUsers=function(a){a=void 0===a?{}:a;return Sia(this.name,a)};var sm=function(){Ul.call(this,function(){});
throw Error("Not allowed to instantiate the thennable outside of the core library.")};
p(sm,Ul);sm.reject=Ul.reject;sm.resolve=Ul.resolve;sm.all=Ul.all;var tm={};tm.isV1Supported=nm;tm.isV2Supported=function(){return void 0!==mm?mm:mm=nm().then(function(a){Ol=!0;if(!a)return!1;var b=k(Hia);for(a=b.next();!a.done;a=b.next())if(!IDBObjectStore.prototype[a.value])return!1;b=k(Iia);for(a=b.next();!a.done;a=b.next())if(!IDBIndex.prototype[a.value])return!1;return IDBObjectStore.prototype.getKey?!0:!1}).then(function(a){Ol=!1;
return a})};
tm.TEST_DB_NAME="yt-idb-test-do-not-use";tm.ASSUME_IDB_V1_SUPPORTED=!1;tm.TEST_ONLY={setForceIos:function(a){Jia=a},
resetCache:function(){mm=lm=void 0}};
tm.Connection=Zl;tm.IndexCursorOptions=function(){};
tm.ObjectStore=am;tm.Transaction=em;tm.Index=cm;tm.CursorWithValue=fm;tm.OBJECTS_TEST_ONLY=bm;tm.openDb=Oia;tm.openSharedDb=Pia;tm.deleteUserDb=Qia;tm.deleteDbForAllUsers=Sia;tm.deleteAllDbsForUser=function(a,b){b=void 0===b?{}:b;return Xa(this,function d(){var f;return ya(d,function(g){if(1==g.nextAddress)return q(g,qm(),2);if(3!=g.nextAddress)return q(g,Fia(a),3);f=g.yieldResult;return q(g,Ria(f,b),0)})})};
tm.deleteSharedDb=Tia;tm.Thennable=sm;tm.Database=rm;tm.getDbFactory=function(a,b){var c;return function(){c||(c=new rm(a,b));return c}};
tm.YtIdbError=Sl;tm.ErrorType={AUTH_INVALID:"AUTH_INVALID",EXPLICIT_ABORT:"EXPLICIT_ABORT",IDB_NOT_SUPPORTED:"IDB_NOT_SUPPORTED",MISSING_OBJECT_STORE:"MISSING_OBJECT_STORE",UNKNOWN_ABORT:"UNKNOWN_ABORT",QUOTA_EXCEEDED:"QUOTA_EXCEEDED",QUOTA_MAYBE_EXCEEDED:"QUOTA_MAYBE_EXCEEDED"};
tm.EventType={IDB_DATA_CORRUPTED:"IDB_DATA_CORRUPTED",IDB_UNEXPECTEDLY_CLOSED:"IDB_UNEXPECTEDLY_CLOSED",IS_SUPPORTED_COMPLETED:"IS_SUPPORTED_COMPLETED",QUOTA_EXCEEDED:"QUOTA_EXCEEDED",TRANSACTION_ENDED:"TRANSACTION_ENDED",TRANSACTION_UNEXPECTEDLY_ABORTED:"TRANSACTION_UNEXPECTEDLY_ABORTED"};
tm.registerLogger=function(){var a={};for(Nl=new um(void 0===a.handleWarning?vm:a.handleWarning,void 0===a.handleError?Uia:a.handleError,void 0===a.logEvent?wm:a.logEvent);0<Ml.length;)switch(a=Ml.shift(),a.type){case"ERROR":Nl.logError(a.payload);break;case"EVENT":Nl.logEvent(a.eventType,a.payload);}};
tm.clearDataForOtherUsers=Lia;var xm={},Via=(0,tm.getDbFactory)("LogsDatabaseV2",{objectStores:(xm.LogsRequestsStore=!0,xm.sapisid=!0,xm),shared:!0,upgrade:function(a,b){2>b&&(a.createObjectStore("LogsRequestsStore",{keyPath:"id",autoIncrement:!0}).createIndex("newRequest",["status","authHash","interface","timestamp"],{unique:!1}),a.createObjectStore("sapisid"))},
version:2});function ym(){return Via().open()}
function Wia(a){return Xa(this,function c(){var d,f,g,l,m;return ya(c,function(n){switch(n.nextAddress){case 1:return d={startTime:Wk(),transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},q(n,Xia(),2);case 2:return f=n.yieldResult,q(n,ym(),3);case 3:return g=n.yieldResult,l=Object.assign(Object.assign({},a),{options:JSON.parse(JSON.stringify(a.options)),authHash:f,interface:B("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),q(n,g.put("LogsRequestsStore",l),4);case 4:return m=n.yieldResult,d.transactionCompleteTime=
Wk(),Yia(d),n.return(m);}})})}
function Zia(a){return Xa(this,function c(){var d,f,g,l,m,n,r,v;return ya(c,function(z){switch(z.nextAddress){case 1:return d={startTime:Wk(),transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},q(z,Xia(),2);case 2:return f=z.yieldResult,g=B("INNERTUBE_CONTEXT_CLIENT_NAME",0),l=[a,f,g,0],m=[a,f,g,Wk()],n=IDBKeyRange.bound(l,m),q(z,ym(),3);case 3:return r=z.yieldResult,v=void 0,q(z,$l(r,["LogsRequestsStore"],"readwrite",function(C){return C.objectStore("LogsRequestsStore").index("newRequest").withCursor({query:n,
direction:"prev"},function(J){J.getValue()&&(v=J.getValue(),"NEW"===a&&(v.status="QUEUED",J.update(v)))})}),4);
case 4:return d.transactionCompleteTime=Wk(),Yia(d),z.return(v);}})})}
function $ia(a){return Xa(this,function c(){var d;return ya(c,function(f){if(1==f.nextAddress)return q(f,ym(),2);d=f.yieldResult;return f.return($l(d,["LogsRequestsStore"],"readwrite",function(g){var l=g.objectStore("LogsRequestsStore");return l.get(a).then(function(m){if(m)return m.status="QUEUED",l.put(m).then(function(){return m})})}))})})}
function aja(a){return Xa(this,function c(){var d;return ya(c,function(f){if(1==f.nextAddress)return q(f,ym(),2);d=f.yieldResult;return f.return($l(d,["LogsRequestsStore"],"readwrite",function(g){var l=g.objectStore("LogsRequestsStore");return l.get(a).then(function(m){return m?(m.status="NEW",m.sendCount+=1,l.put(m).then(function(){return m})):tm.Thennable.resolve(void 0)})}))})})}
function zm(a){return Xa(this,function c(){var d;return ya(c,function(f){if(1==f.nextAddress)return q(f,ym(),2);d=f.yieldResult;return f.return(d.delete("LogsRequestsStore",a))})})}
function bja(){return Xa(this,function b(){var c;return ya(b,function(d){if(1==d.nextAddress)return q(d,ym(),2);c=d.yieldResult;return d.return(c.clear("LogsRequestsStore"))})})}
function cja(){return Xa(this,function b(){var c,d;return ya(b,function(f){if(1==f.nextAddress)return q(f,ym(),2);c=f.yieldResult;d=Wk()-2592E6;return q(f,$l(c,["LogsRequestsStore"],"readwrite",function(g){return g.objectStore("LogsRequestsStore").withCursor({},function(l){if(l.getValue().timestamp<=d)return l.delete().then(function(){return l.continue()})})}),0)})})}
function dja(){return Xa(this,function b(){return ya(b,function(c){return q(c,(0,tm.deleteSharedDb)("LogsDatabaseV2"),0)})})}
function Xia(){return Xa(this,function b(){var c;return ya(b,function(d){if(1==d.nextAddress)return q(d,cia(aia()),2);c=d.yieldResult;var f=d.return,g=ul(c),l=new dj;l.update(JSON.stringify(g,Object.keys(g).sort()));g=l.digest();l="";for(var m=0;m<g.length;m++)l+="0123456789ABCDEF".charAt(Math.floor(g[m]/16))+"0123456789ABCDEF".charAt(g[m]%16);return f.call(d,l)})})}
function eja(a){return Xa(this,function c(){var d;return ya(c,function(f){if(1==f.nextAddress)return q(f,ym(),2);d=f.yieldResult;return q(f,d.put("sapisid",a,"sapisid"),0)})})}
function fja(){return Xa(this,function b(){var c,d;return ya(b,function(f){if(1==f.nextAddress)return q(f,ym(),2);if(3!=f.nextAddress)return c=f.yieldResult,q(f,c.get("sapisid","sapisid"),3);d=f.yieldResult;return f.return(d||"")})})}
function Yia(a){var b=fk("nwl_latency_sampling_rate",.01);.02<b||Math.random()<=b&&Gl("nwl_transaction_latency_payload",a)}
;var Am;function Bm(){Am||(Am=new yl("yt.offline"));return Am}
function gja(a){if(N("offline_error_handling")){var b=Bm().get("errors",!0);b||(b={});b[a.message]={name:a.name,stack:a.stack};Bm().set("errors",b,2592E3,!0)}}
function hja(){if(N("offline_error_handling")){var a=Bm().get("errors",!0);if(a){for(var b in a)if(a[b]){var c=new Ql(b,"sent via offline_errors");c.name=a[b].name;c.stack=a[b].stack;sd(c)}Bm().set("errors",{},2592E3,!0)}}}
;var ija=fk("network_polling_interval",3E4),Dm=function(){zi.call(this);this.pollingJob=0;this.shouldLogWarning=this.isMonitoring=!1;this.lastPollTime=0;this.shouldFlushErrors=!1;this.isOnline=Cm();jja(this);kja(this)};
p(Dm,zi);var Em=function(){Dm.instance||(Dm.instance=new Dm);return Dm.instance};
Dm.prototype.isNetworkAvailable=function(){this.isOnline!==Cm()&&td(new Ql("NetworkStatusManager isOnline does not match window status"));return this.isOnline};
var Cm=function(){var a=window.navigator.onLine;return void 0===a?!0:a},kja=function(a){window.addEventListener("online",function(){a.isOnline=!0;
a.isMonitoring&&a.dispatchEvent("ytnetworkstatus-online");lja(a);a.shouldFlushErrors&&hja()})},jja=function(a){window.addEventListener("offline",function(){a.isOnline=!1;
a.isMonitoring&&a.dispatchEvent("ytnetworkstatus-offline");lja(a)})};
Dm.prototype.poll=function(){var a=this;this.pollingJob=yk(Ck,function(){Cm()?(!1===a.isOnline&&(a.shouldLogWarning=!0,a.lastPollTime=Wk(),a.isMonitoring&&a.dispatchEvent("ytnetworkstatus-online"),a.shouldFlushErrors&&hja()),a.isOnline=!0):(!0===a.isOnline&&(a.shouldLogWarning=!0,a.lastPollTime=Wk(),a.isMonitoring&&a.dispatchEvent("ytnetworkstatus-offline")),a.isOnline=!1);a.poll()},ija)};
var lja=function(a){a.shouldLogWarning&&(td(new Ql("NetworkStatusManager state did not match poll",Wk()-a.lastPollTime)),a.shouldLogWarning=!1)};var Fm=function(a){a=void 0===a?{}:a;zi.call(this);var b=this;this.lastJobTime=this.schedulerJob=0;this.resetInstanceForTesting=function(){Ck.cancelJob(b.schedulerJob);b.schedulerJob=0;b.lastJobTime=0;b.lastPublicSignalSent=void 0};
this.nsm=Em();this.nsm.isMonitoring=!0;a.logOfflineErrors&&(this.nsm.shouldFlushErrors=!0);a.rateLimit?(this.rateLimit=a.rateLimit,this.nsm.listen("ytnetworkstatus-online",function(){b.throttle("publicytnetworkstatus-online")}),this.nsm.listen("ytnetworkstatus-offline",function(){b.throttle("publicytnetworkstatus-offline")})):(this.nsm.listen("ytnetworkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),this.nsm.listen("ytnetworkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")}))};
p(Fm,zi);Fm.prototype.isNetworkAvailable=function(){return this.nsm.isNetworkAvailable()};
Fm.prototype.throttle=function(a){var b=this;this.rateLimit?this.lastJobTime?(Ck.cancelJob(this.schedulerJob),this.schedulerJob=zk(Ck,function(){b.lastPublicSignalSent!==a&&(b.dispatchEvent(a),b.lastPublicSignalSent=a,b.lastJobTime=Wk())},this.rateLimit-(Wk()-this.lastJobTime))):(this.dispatchEvent(a),this.lastPublicSignalSent=a,this.lastJobTime=Wk()):this.dispatchEvent(a)};var mja=fk("networkless_throttle_timeout")||100,nja=fk("networkless_retry_attempts")||1,Gm=!1,Hm=0,Im;function oja(){Xa(this,function b(){var c,d,f,g;return ya(b,function(l){switch(l.nextAddress){case 1:return q(l,(0,tm.isV1Supported)(),2);case 2:c=l.yieldResult;d=N("networkless_logging");if(c&&d)return gia().startMonitoring(),document.addEventListener("ytsessionchange",function(){pja()}),q(l,fja(),7);
if(!c){l.jumpTo(0);break}return q(l,dja(),0);case 7:f=l.yieldResult;g=eia();if(f===g){l.jumpTo(8);break}pja();return q(l,eja(g),8);case 8:if(!(N("enable_nwl_cleaning_logic")&&Math.random()<=fk("nwl_cleaning_rate",.1))){l.jumpTo(10);break}return q(l,cja(),10);case 10:Gm=!0;qja();Jm().isNetworkAvailable()&&Km();Jm().listen("publicytnetworkstatus-online",Km);Jm().listen("publicytnetworkstatus-offline",rja);if(N("networkless_immediately_drop_all_requests"))return q(l,dja(),0);l.jumpTo(0);}})})}
function sja(a,b){b=void 0===b?{}:b;(0,tm.isV1Supported)().then(function(c){var d=Jm().isNetworkAvailable();if(!Gm||!c||N("networkless_bypass_write")||d&&N("vss_networkless_bypass_write"))rl(a,b);else{var f={url:a,options:b,timestamp:Wk(),status:"NEW",sendCount:0};Wia(f).then(function(g){f.id=g;(Jm().isNetworkAvailable()||N("networkless_always_online"))&&Lm(f)}).catch(function(g){Lm(f);
Jm().isNetworkAvailable()?sd(g):gja(g)})}})}
function tja(a,b){b=void 0===b?{}:b;(0,tm.isV1Supported)().then(function(c){if(Gm&&c){var d={url:a,options:b,timestamp:Wk(),status:"NEW",sendCount:0},f=!1;Wia(d).then(function(l){d.id=l;f&&zm(d.id)}).catch(function(l){Jm().isNetworkAvailable()?sd(l):gja(l)});
var g=b.onSuccess?b.onSuccess:function(){};
d.options.onSuccess=function(l,m){void 0!==d.id?zm(d.id):f=!0;g(l,m)};
rl(d.url,d.options)}else rl(a,b)})}
function Km(){var a=this;Hm||(Hm=zk(Ck,function(){return Xa(a,function c(){var d;return ya(c,function(f){if(1==f.nextAddress)return q(f,Zia("NEW"),2);if(3!=f.nextAddress)return d=f.yieldResult,d?q(f,Lm(d),3):(rja(),f.return());Hm=0;Km();oa(f)})})},mja))}
function rja(){Ck.cancelJob(Hm);Hm=0}
function Lm(a){return Xa(this,function c(){var d;return ya(c,function(f){switch(f.nextAddress){case 1:if(void 0===a.id){f.jumpTo(2);break}return q(f,$ia(a.id),3);case 3:(d=f.yieldResult)?a=d:td(Error("The request cannot be found in the database."));case 2:if(uja(a,2592E6)){f.jumpTo(4);break}td(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===a.id){f.jumpTo(5);break}return q(f,zm(a.id),5);case 5:return f.return();case 4:var g=a=vja(a),l,m;if(null===(m=null===(l=null===
g||void 0===g?void 0:g.options)||void 0===l?void 0:l.postParams)||void 0===m?0:m.requestTimeMs)g.options.postParams.requestTimeMs=Math.round(Wk());(a=g)&&rl(a.url,a.options);oa(f);}})})}
function vja(a){var b=this,c=a.options.onError?a.options.onError:function(){};
a.options.onError=function(f,g){return Xa(b,function m(){return ya(m,function(n){if(1==n.nextAddress)return void 0===(null===a||void 0===a?void 0:a.id)?n.jumpTo(2):a.sendCount<nja?q(n,aja(a.id),6):q(n,zm(a.id),2);2!=n.nextAddress&&zk(Ck,function(){Jm().isNetworkAvailable()&&Km()},5E3);
c(f,g);oa(n)})})};
var d=a.options.onSuccess?a.options.onSuccess:function(){};
a.options.onSuccess=function(f,g){return Xa(b,function m(){return ya(m,function(n){if(1==n.nextAddress)return void 0===(null===a||void 0===a?void 0:a.id)?n.jumpTo(2):q(n,zm(a.id),2);d(f,g);oa(n)})})};
return a}
function uja(a,b){a=a.timestamp;return Wk()-a>=b?!1:!0}
function qja(){var a=this;Zia("QUEUED").then(function(b){b&&!uja(b,12E4)&&zk(Ck,function(){return Xa(a,function d(){return ya(d,function(f){if(1==f.nextAddress)return void 0===b.id?f.jumpTo(2):q(f,aja(b.id),2);qja();oa(f)})})})})}
function pja(){bja().catch(function(a){sd(a)})}
function Jm(){Im||(Im=new Fm({logOfflineErrors:!0}));return Im}
;var Mm=function(a){var b=this;this.config_=null;a?this.config_=a:Qha()&&(this.config_=el());yk(Ck,function(){Tha(b)},5E3)};
Mm.prototype.isReady=function(){!this.config_&&Qha()&&(this.config_=el());return!!this.config_};
var qha=function(a,b,c,d){!B("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&td(new Ql("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady()){var f=new Ql("innertube xhrclient not ready",b,c,d);sd(f);throw f}var g={headers:{"Content-Type":"application/json"},method:"POST",postParams:c,postBodyFormat:"JSON",onTimeout:function(){d.onTimeout()},
onFetchTimeout:d.onTimeout,onSuccess:function(z,C){if(d.onSuccess)d.onSuccess(C)},
onFetchSuccess:function(z){if(d.onSuccess)d.onSuccess(z)},
onError:function(z,C){if(d.onError)d.onError(C)},
onFetchError:function(z){if(d.onError)d.onError(z)},
timeout:d.timeout,withCredentials:!0},l="";(f=a.config_.innertubeHostOverride)&&(l=f);var m=a.config_.innertubeUseThirdPartyAuth||!1,n=tl(m,l,d);Object.assign(g.headers,n);g.headers.Authorization&&!l&&(g.headers["x-origin"]=window.location.origin);f="/youtubei/"+a.config_.innertubeApiVersion+"/"+b;var r={alt:"json"};a.config_.innertubeOmitApiKeyWhenAuthHeaderIsPresent&&g.headers.Authorization||(r.key=a.config_.innertubeApiKey);var v=ll(""+l+f,r);(0,tm.isV1Supported)().then(function(z){if(d.retry&&
N("retry_web_logging_batches")&&"www.youtube-nocookie.com"!=l){if(N("networkless_gel")&&!z||!N("networkless_gel"))var C=Sha(b,c,n,m);if(C){var J=g.onSuccess,E=g.onFetchSuccess;g.onSuccess=function(S,la){Bl(C);J(S,la)};
c.onFetchSuccess=function(S,la){Bl(C);E(S,la)}}}try{N("use_fetch_for_op_xhr")?Hha(v,g):N("networkless_gel")&&d.retry?(g.method="POST",!d.writeThenSend&&N("nwl_send_fast_on_unload")?tja(v,g):sja(v,g)):(g.method="POST",g.postParams||(g.postParams={}),rl(v,g))}catch(S){if("InvalidAccessError"==S.name)C&&(Bl(C),C=0),td(Error("An extension is blocking network request."));else
throw S}C&&yk(Ck,function(){Tha(a)},5E3)})};function wm(a,b,c){c=void 0===c?{}:c;var d=Mm;qd("ytLoggingEventsDefaultDisabled",!1)&&Mm==Mm&&(d=null);gl(a,b,d,c)}
function wja(){dl()}
;var xja=[{messageFn:function(a){return"Cannot read property '"+a.key+"'"},
patternsForType:{TypeError:[{regexp:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{regexp:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{regexp:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./,groups:["value","key"]},{regexp:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,
groups:["key"]},{regexp:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]}],Error:[{regexp:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}]}},{messageFn:function(a){return"Cannot call '"+a.key+"'"},
patternsForType:{TypeError:[{regexp:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{regexp:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{regexp:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{regexp:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{regexp:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,
groups:["key"]},{regexp:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}}];
function yja(a){for(var b=k(xja),c=b.next();!c.done;c=b.next())if(c=c.value,c.patternsForType[a.name])for(var d=k(c.patternsForType[a.name]),f=d.next();!f.done;f=d.next()){var g=f.value;if(f=a.message.match(g.regexp)){a.params["params.error.original"]=f[0];d=g.groups;g={};for(var l=0;l<d.length;l++)g[d[l]]=f[l+1],a.params["params.error."+d[l]]=f[l+1];a.message=c.messageFn(g);break}}return a}
;var zja=function(){this.callbackWeights=[];this.messageWeights=[]},Nm,Om=function(){Nm||(Nm=new zja);
return Nm};
zja.prototype.clearWeights=function(){this.messageWeights=[];this.callbackWeights=[]};
var Aja=function(a){return"msg="+a.messageWeights.length+"&cb="+a.callbackWeights.length};var xj=new wj;function Pm(a){return atob(a.replace(/-/g,"+").replace(/_/g,"/"))}
function Qm(a,b){var c=a.length,d=0,f=function(){return a.charCodeAt(d++)};
do{var g=Rm(f);if(Infinity===g)break;var l=g>>3;switch(g&7){case 0:g=Rm(f);if(l===b)return g;break;case 1:if(l===b)return;d+=8;break;case 2:g=Rm(f);if(l===b)return a.substr(d,g);d+=g;break;case 5:if(l===b)return;d+=4;break;default:return;}}while(d<c)}
function Rm(a){var b=a(),c=b&127;if(128>b)return c;b=a();c|=(b&127)<<7;if(128>b)return c;b=a();c|=(b&127)<<14;if(128>b)return c;b=a();return 128>b?c|(b&127)<<21:Infinity}
;function Sm(a,b,c,d){c+="."+a;a=Tm(b);d[c]=a;return c.length+a.length}
function Tm(a){return("string"===typeof a?a:String(JSON.stringify(a))).substr(0,500)}
function Bja(a,b){var c=Cea(a),d=c.message||"Unknown Error",f=c.name||"UnknownError",g=c.stack||a.stacktrace||"Not available";if(g.startsWith(f+": "+d)){var l=g.split("\n");l.shift();g=l.join("\n")}l=c.lineNumber||"Not available";c=c.fileName||"Not available";if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var m=0,n=0;n<a.args.length;n++){var r=a.args[n],v="params."+n;m+=v.length;if(r){if(Array.isArray(r)){var z=b,C=m;for(m=0;m<r.length&&!(r[m]&&(C+=Sm(m,r[m],v,z),500<C));m++);m=C}else if("object"===
typeof r)for(z in z=void 0,C=b,r){if(r[z]){var J=z;var E=r[z],S=C;J="string"!==typeof E||"clickTrackingParams"!==J&&"trackingParams"!==J?0:(E=Qm(Pm(E),2))?Sm(J+".ve",E,v,S):0;m+=J;m+=Sm(z,r[z],v,C);if(500<m)break}}else b[v]=Tm(r),m+=b[v].length;}else b[v]=Tm(r),m+=b[v].length;if(500<=m)break}else if(a.hasOwnProperty("params")&&a.params)if(r=a.params,"object"===typeof a.params)for(n in v=0,r){if(r[n]&&(z="params."+n,C=Tm(r[n]),b[z]=C,v+=z.length+C.length,500<v))break}else b.params=Tm(r);navigator.vendor&&
!b.hasOwnProperty("vendor")&&(b["device.vendor"]=navigator.vendor);b={message:d,name:f,lineNumber:l,fileName:c,stack:g,params:b,sampleWeight:1};d=Number(a.columnNumber);isNaN(d)||(b.lineNumber=b.lineNumber+":"+d);if(void 0!==a.sampleWeight)a=a.sampleWeight;else a:{a=Om();d=k(a.messageWeights);for(f=d.next();!f.done;f=d.next())if(f=f.value,b.message&&b.message.match(f.messageRegExp)){a=f.weight;break a}a=k(a.callbackWeights);for(d=a.next();!d.done;d=a.next())if(d=d.value,d.callback(b)){a=d.weight;
break a}a=1}b.sampleWeight=a;return b}
;var Cja=new Set,Dja=0,Eja=0,Fja=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];function Uia(a){Um(a)}
function vm(a){Um(a,"WARNING")}
function Gja(a){a instanceof Error?Um(a):(a=Pa(a)?JSON.stringify(a):String(a),a=new Ql(a),a.name="RejectedPromiseError",vm(a))}
function Um(a,b,c,d,f,g){g=void 0===g?{}:g;g.name=c||B("INNERTUBE_CONTEXT_CLIENT_NAME",1);g.version=d||B("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0);c=g||{};b=void 0===b?"ERROR":b;b=void 0===b?"ERROR":b;if(a&&(N("console_log_js_exceptions")&&(d=[],d.push("Name: "+a.name),d.push("Message: "+a.message),a.hasOwnProperty("params")&&d.push("Error Params: "+JSON.stringify(a.params)),d.push("File name: "+a.fileName),d.push("Stacktrace: "+a.stack),d=d.join("\n"),window.console.log(d,a)),!(5<=Dja||(N("kevlar_js_fixes")?(
a=yja(Bja(a,c)),a.params||(a.params={}),c=Om(),a.params["params.errorServiceSignature"]=Aja(c),a.params["params.serviceWorker"]="false",a.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length)):a=yja(Bja(a,c)),window.yterr&&"function"===typeof window.yterr&&window.yterr(a),c=0===a.sampleWeight,Cja.has(a.message)||c)))){"ERROR"===b?(xj.publish("handleError",a),N("record_app_crashed_web")&&0===Eja&&wm("appCrashed",{appCrashType:"APP_CRASH_TYPE_BREAKPAD"}),Eja++):
"WARNING"===b&&xj.publish("handleWarning",a);if(N("kevlar_gel_error_routing")){d=b;a:{c=k(Fja);for(f=c.next();!f.done;f=c.next())if(kia(f.value.toLowerCase())){c=!0;break a}c=!1}if(!c){f={stackTrace:a.stack};a.fileName&&(f.filename=a.fileName);c=a.lineNumber&&a.lineNumber.split?a.lineNumber.split(":"):[];0!==c.length&&(1!==c.length||isNaN(Number(c[0]))?2!==c.length||isNaN(Number(c[0]))||isNaN(Number(c[1]))||(f.lineNumber=Number(c[0]),f.columnNumber=Number(c[1])):f.lineNumber=Number(c[0]));c={level:"ERROR_LEVEL_UNKNOWN",
message:a.message,errorClassName:a.name,sampleWeight:a.sampleWeight};"ERROR"===d?c.level="ERROR_LEVEL_ERROR":"WARNING"===d&&(c.level="ERROR_LEVEL_WARNNING");d={isObfuscated:!0,browserStackInfo:f};f={pageUrl:window.location.href};B("FEXP_EXPERIMENTS")&&(f.experimentIds=B("FEXP_EXPERIMENTS"));f.kvPairs=N("kevlar_js_fixes")?[]:[{key:"client.params.errorServiceSignature",value:Aja(Om())},{key:"client.params.serviceWorker",value:"false"}];if(g=a.params)for(var l=k(Object.keys(g)),m=l.next();!m.done;m=
l.next())m=m.value,f.kvPairs.push({key:"client."+m,value:String(g[m])});g=B("SERVER_NAME",void 0);l=B("SERVER_VERSION",void 0);g&&l&&(f.kvPairs.push({key:"server.name",value:g}),f.kvPairs.push({key:"server.version",value:l}));wm("clientError",{errorMetadata:f,stackTrace:d,logMessage:c});dl()}}if(!N("suppress_error_204_logging")){c=a.params||{};b={urlParams:{a:"logerror",t:"jserror",type:a.name,msg:a.message.substr(0,250),line:a.lineNumber,level:b,"client.name":c.name},postParams:{url:B("PAGE_NAME",
window.location.href),file:a.fileName},method:"POST"};c.version&&(b["client.version"]=c.version);if(b.postParams){a.stack&&(b.postParams.stack=a.stack);d=k(Object.keys(c));for(f=d.next();!f.done;f=d.next())f=f.value,b.postParams["client."+f]=c[f];if(c=B("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",void 0))for(d=k(Object.keys(c)),f=d.next();!f.done;f=d.next())f=f.value,b.postParams[f]=c[f];c=B("SERVER_NAME",void 0);d=B("SERVER_VERSION",void 0);c&&d&&(b.postParams["server.name"]=c,b.postParams["server.version"]=
d)}rl(B("ECATCHER_REPORT_HOST","")+"/error_204",b)}Cja.add(a.message);Dja++}}
function Vm(a,b){b=void 0===b?"ERROR":b;var c=void 0===c?{}:c;var d=Ja("ytbin.polymer.shared.lib.tampering.info");d&&(d=d())&&(c["params.tamperingInfo"]=d.sort().join(","));Um(a,b,void 0,void 0,!0,c)}
function Wm(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];a.args||(a.args=[]);a.args.push.apply(a.args,fa(c))}
;function Xm(){if("CLIENT_CANARY_STATE"in od)return Hja();if("INNERTUBE_CONTEXT_CLIENT_VERSION"in od){var a=B("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0).split("-"),b="";1<a.length&&(b=a[a.length-1]);return"canary_experiment"===b?"canary":"canary_control"===b?"control":"none"}Um(Error("The configuration settings CLIENT_CANARY_STATE and INNERTUBE_CONTEXT_CLIENT_VERSION are missing."),"ERROR",void 0,void 0,void 0);return"unknown"}
function Hja(){switch(B("CLIENT_CANARY_STATE")){case"canary":return"canary";case"holdback":return"control";case"none":return"none";default:return"unknown";}}
;var Zm=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web_client_sli/youtube_web/session_partition";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"browser"},{field_type:1,field_name:"is_shell_load"},{field_type:3,field_name:"survival_status"},{field_type:2,field_name:"partition_min"},{field_type:3,field_name:"session_type"},{field_type:3,field_name:"canary_state"},{field_type:3,field_name:"status"})};
Zm.prototype.increment=function(a,b,c,d,f,g,l){this.streamzService_.incrementCounter(this.metricName_,a,b,c,d,f,g,l)};
Zm.prototype.incrementBy=function(a,b,c,d,f,g,l,m){this.streamzService_.incrementCounterBy(this.metricName_,a,b,c,d,f,g,l,m)};
Zm.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var $m=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web_client_sli/youtube_web/app_boots_start";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"browser"},{field_type:1,field_name:"is_shell_load"},{field_type:3,field_name:"canary_state"})};
$m.prototype.increment=function(a,b,c){this.streamzService_.incrementCounter(this.metricName_,a,b,c)};
$m.prototype.incrementBy=function(a,b,c,d){this.streamzService_.incrementCounterBy(this.metricName_,a,b,c,d)};
$m.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var an=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web_client_sli/youtube_web/app_boots";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"browser"},{field_type:1,field_name:"is_shell_load"},{field_type:3,field_name:"canary_state"},{field_type:3,field_name:"status"})};
an.prototype.increment=function(a,b,c,d){this.streamzService_.incrementCounter(this.metricName_,a,b,c,d)};
an.prototype.incrementBy=function(a,b,c,d,f){this.streamzService_.incrementCounterBy(this.metricName_,a,b,c,d,f)};
an.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var bn=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web_client_sli/youtube_web/component_registration_start";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"browser"},{field_type:1,field_name:"is_shell_load"})};
bn.prototype.increment=function(a,b){this.streamzService_.incrementCounter(this.metricName_,a,b)};
bn.prototype.incrementBy=function(a,b,c){this.streamzService_.incrementCounterBy(this.metricName_,a,b,c)};
bn.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var cn=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web_client_sli/youtube_web/component_registration";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"browser"},{field_type:1,field_name:"is_shell_load"},{field_type:3,field_name:"status"})};
cn.prototype.increment=function(a,b,c){this.streamzService_.incrementCounter(this.metricName_,a,b,c)};
cn.prototype.incrementBy=function(a,b,c,d){this.streamzService_.incrementCounterBy(this.metricName_,a,b,c,d)};
cn.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var dn=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web_client_sli/youtube_web/network_request_start";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"browser"},{field_type:1,field_name:"is_shell_load"},{field_type:3,field_name:"path"},{field_type:3,field_name:"canary_state"})};
dn.prototype.increment=function(a,b,c,d){this.streamzService_.incrementCounter(this.metricName_,a,b,c,d)};
dn.prototype.incrementBy=function(a,b,c,d,f){this.streamzService_.incrementCounterBy(this.metricName_,a,b,c,d,f)};
dn.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var en=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web_client_sli/youtube_web/network_request";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"browser"},{field_type:1,field_name:"is_shell_load"},{field_type:3,field_name:"path"},{field_type:3,field_name:"canary_state"},{field_type:3,field_name:"status"})};
en.prototype.increment=function(a,b,c,d,f){this.streamzService_.incrementCounter(this.metricName_,a,b,c,d,f)};
en.prototype.incrementBy=function(a,b,c,d,f,g){this.streamzService_.incrementCounterBy(this.metricName_,a,b,c,d,f,g)};
en.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var fn=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web_client_sli/youtube_web/warm_page_navigation_start";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"browser"},{field_type:1,field_name:"is_shell_load"},{field_type:3,field_name:"page_type"},{field_type:3,field_name:"request_type"},{field_type:3,field_name:"canary_state"})};
fn.prototype.increment=function(a,b,c,d,f){this.streamzService_.incrementCounter(this.metricName_,a,b,c,d,f)};
fn.prototype.incrementBy=function(a,b,c,d,f,g){this.streamzService_.incrementCounterBy(this.metricName_,a,b,c,d,f,g)};
fn.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var gn=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web_client_sli/youtube_web/warm_page_navigation";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"browser"},{field_type:1,field_name:"is_shell_load"},{field_type:3,field_name:"page_type"},{field_type:3,field_name:"request_type"},{field_type:3,field_name:"canary_state"},{field_type:3,field_name:"status"})};
gn.prototype.increment=function(a,b,c,d,f,g){this.streamzService_.incrementCounter(this.metricName_,a,b,c,d,f,g)};
gn.prototype.incrementBy=function(a,b,c,d,f,g,l){this.streamzService_.incrementCounterBy(this.metricName_,a,b,c,d,f,g,l)};
gn.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var hn=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web_client_sli/youtube_web/service_worker_registration_start";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"browser"},{field_type:1,field_name:"is_shell_load"},{field_type:3,field_name:"canary_state"})};
hn.prototype.increment=function(a,b,c){this.streamzService_.incrementCounter(this.metricName_,a,b,c)};
hn.prototype.incrementBy=function(a,b,c,d){this.streamzService_.incrementCounterBy(this.metricName_,a,b,c,d)};
hn.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var jn=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web_client_sli/youtube_web/service_worker_registration";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"browser"},{field_type:1,field_name:"is_shell_load"},{field_type:3,field_name:"canary_state"},{field_type:3,field_name:"status"})};
jn.prototype.increment=function(a,b,c,d){this.streamzService_.incrementCounter(this.metricName_,a,b,c,d)};
jn.prototype.incrementBy=function(a,b,c,d,f){this.streamzService_.incrementCounterBy(this.metricName_,a,b,c,d,f)};
jn.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var kn=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web_client_sli/youtube_web/yt_initial_data_present_start";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"browser"},{field_type:1,field_name:"is_shell_load"},{field_type:3,field_name:"canary_state"})};
kn.prototype.increment=function(a,b,c){this.streamzService_.incrementCounter(this.metricName_,a,b,c)};
kn.prototype.incrementBy=function(a,b,c,d){this.streamzService_.incrementCounterBy(this.metricName_,a,b,c,d)};
kn.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var ln=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web_client_sli/youtube_web/yt_initial_data_present";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"browser"},{field_type:1,field_name:"is_shell_load"},{field_type:3,field_name:"canary_state"},{field_type:3,field_name:"status"})};
ln.prototype.increment=function(a,b,c,d){this.streamzService_.incrementCounter(this.metricName_,a,b,c,d)};
ln.prototype.incrementBy=function(a,b,c,d,f){this.streamzService_.incrementCounterBy(this.metricName_,a,b,c,d,f)};
ln.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var mn=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web_client_sli/youtube_web/yt_guide_data_present_start";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"browser"},{field_type:1,field_name:"is_shell_load"},{field_type:3,field_name:"canary_state"})};
mn.prototype.increment=function(a,b,c){this.streamzService_.incrementCounter(this.metricName_,a,b,c)};
mn.prototype.incrementBy=function(a,b,c,d){this.streamzService_.incrementCounterBy(this.metricName_,a,b,c,d)};
mn.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var nn=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web_client_sli/youtube_web/yt_guide_data_present";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"browser"},{field_type:1,field_name:"is_shell_load"},{field_type:3,field_name:"canary_state"},{field_type:3,field_name:"status"})};
nn.prototype.increment=function(a,b,c,d){this.streamzService_.incrementCounter(this.metricName_,a,b,c,d)};
nn.prototype.incrementBy=function(a,b,c,d,f){this.streamzService_.incrementCounterBy(this.metricName_,a,b,c,d,f)};
nn.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var on=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web_client_sli/youtube_web/stfe_greater_than_one_minute_start";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"browser"},{field_type:1,field_name:"is_shell_load"},{field_type:3,field_name:"canary_state"})};
on.prototype.increment=function(a,b,c){this.streamzService_.incrementCounter(this.metricName_,a,b,c)};
on.prototype.incrementBy=function(a,b,c,d){this.streamzService_.incrementCounterBy(this.metricName_,a,b,c,d)};
on.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var pn=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web_client_sli/youtube_web/stfe_greater_than_one_minute";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"browser"},{field_type:1,field_name:"is_shell_load"},{field_type:3,field_name:"canary_state"},{field_type:3,field_name:"status"})};
pn.prototype.increment=function(a,b,c,d){this.streamzService_.incrementCounter(this.metricName_,a,b,c,d)};
pn.prototype.incrementBy=function(a,b,c,d,f){this.streamzService_.incrementCounterBy(this.metricName_,a,b,c,d,f)};
pn.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var qn=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web_client_sli/youtube_web/stfe_greater_than_ten_minutes_start";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"browser"},{field_type:1,field_name:"is_shell_load"},{field_type:3,field_name:"canary_state"})};
qn.prototype.increment=function(a,b,c){this.streamzService_.incrementCounter(this.metricName_,a,b,c)};
qn.prototype.incrementBy=function(a,b,c,d){this.streamzService_.incrementCounterBy(this.metricName_,a,b,c,d)};
qn.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var rn=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web_client_sli/youtube_web/stfe_greater_than_ten_minutes";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"browser"},{field_type:1,field_name:"is_shell_load"},{field_type:3,field_name:"canary_state"},{field_type:3,field_name:"status"})};
rn.prototype.increment=function(a,b,c,d){this.streamzService_.incrementCounter(this.metricName_,a,b,c,d)};
rn.prototype.incrementBy=function(a,b,c,d,f){this.streamzService_.incrementCounterBy(this.metricName_,a,b,c,d,f)};
rn.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var sn=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web_client_sli/youtube_web/one_minute_success_start";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"browser"},{field_type:1,field_name:"is_shell_load"})};
sn.prototype.increment=function(a,b){this.streamzService_.incrementCounter(this.metricName_,a,b)};
sn.prototype.incrementBy=function(a,b,c){this.streamzService_.incrementCounterBy(this.metricName_,a,b,c)};
sn.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var tn=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web_client_sli/youtube_web/one_minute_success";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"browser"},{field_type:1,field_name:"is_shell_load"},{field_type:3,field_name:"status"})};
tn.prototype.increment=function(a,b,c){this.streamzService_.incrementCounter(this.metricName_,a,b,c)};
tn.prototype.incrementBy=function(a,b,c,d){this.streamzService_.incrementCounterBy(this.metricName_,a,b,c,d)};
tn.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var un=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web_client_sli/youtube_web/ten_minute_success_start";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"browser"},{field_type:1,field_name:"is_shell_load"})};
un.prototype.increment=function(a,b){this.streamzService_.incrementCounter(this.metricName_,a,b)};
un.prototype.incrementBy=function(a,b,c){this.streamzService_.incrementCounterBy(this.metricName_,a,b,c)};
un.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var vn=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web_client_sli/youtube_web/ten_minute_success";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"browser"},{field_type:1,field_name:"is_shell_load"},{field_type:3,field_name:"status"})};
vn.prototype.increment=function(a,b,c){this.streamzService_.incrementCounter(this.metricName_,a,b,c)};
vn.prototype.incrementBy=function(a,b,c,d){this.streamzService_.incrementCounterBy(this.metricName_,a,b,c,d)};
vn.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};var wn=function(){this.register=new Map},Ija=function(a,b,c){return a.register.has(b)?a.register.get(b):(c=c(),a.register.set(b,c),c)};
wn.prototype.getInteractionSli=function(a,b,c){return Ija(this,a+"_"+b,c)};
var yn=function(a,b,c){return Ija(xn,"DEPRECATED_YOUTUBE_WEB_"+a.toUpperCase()+"_"+b,c)};
wn.prototype.deleteInteractionSli=function(a,b){this.register.delete(a+"_"+b)};
var zn=function(a,b){xn.register.delete("DEPRECATED_YOUTUBE_WEB_"+a.toUpperCase()+"_"+b)},Jja=function(a){a=k(a.register.values());
for(var b=a.next();!b.done;b=a.next())b.value.recordEnd("ABORTED")};
wn.prototype.clear=function(){Jja(this);this.register.clear()};
var xn=new wn;var Tfa=function(){};
Tfa.prototype.flush=function(a){a=void 0===a?[]:a;if(N("enable_client_streamz_web")){a=k(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=new Wh;c=uf(c,1,b.metricName_);for(var d=b,f=[],g=0;g<d.fields_.length;g++)f.push(d.fields_[g].field_name);c=uf(c,3,f||[]);d=[];f=[];g=k(b.cellMap_.keys());for(var l=g.next();!l.done;l=g.next())f.push(l.value.split(","));for(g=0;g<f.length;g++){l=f[g];var m=b.cellType_;for(var n=b.getCells(l)||[],r=[],v=0;v<n.length;v++){var z=n[v];z=z&&z.cellValue_;var C=
new ei;switch(m){case 3:Cf(C,1,di[0],Number(z));break;case 2:Cf(C,2,di[0],Number(z));}r.push(C)}m=r;for(n=0;n<m.length;n++){r=m[n];v=new ai;r=yf(v,2,r);v=l;z=[];C=b;for(var J=[],E=0;E<C.fields_.length;E++)J.push(C.fields_[E].field_type);C=J;for(J=0;J<C.length;J++){E=C[J];var S=v[J],la=new ci;switch(E){case 3:Cf(la,1,bi[0],String(S));break;case 2:Cf(la,2,bi[0],Number(S));break;case 1:Cf(la,3,bi[0],"true"==S);}z.push(la)}Af(r,1,z);d.push(r)}}Af(c,4,d);b={serializedIncrementBatch:Me(c.serializeBinary())};
wm("streamzIncremented",b)}}};var An;function Ym(){if(!An){An=new aj;var a=fk("client_streamz_web_flush_count",-1);-1!==a&&(An.invocationLimit=a)}return An}
;function Bn(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if(!Cn(a)||c.some(function(f){return!Cn(f)}))throw Error("Only objects may be merged.");
c=k(c);for(d=c.next();!d.done;d=c.next())Dn(a,d.value);return a}
function Dn(a,b){for(var c in b)if(Cn(b[c])){if(c in a&&!Cn(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});Dn(a[c],b[c])}else if(En(b[c])){if(c in a&&!En(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);Kja(a[c],b[c])}else a[c]=b[c];return a}
function Kja(a,b){b=k(b);for(var c=b.next();!c.done;c=b.next())c=c.value,Cn(c)?a.push(Dn({},c)):En(c)?a.push(Kja([],c)):a.push(c);return a}
function Cn(a){return"object"===typeof a&&!Array.isArray(a)}
function En(a){return"object"===typeof a&&Array.isArray(a)}
;var Lja=function(){this.streamz_=new Zm},Fn=function(a){Mja.streamz_.increment(String(a.browser),!!a.is_shell_load,String(a.survival_status),Number(a.partition_min),String(a.session_type),String(Xm()),"SUCCESS")};
Lja.prototype.incrementFailure=function(a){this.streamz_.increment(String(a.browser),!!a.is_shell_load,String(a.survival_status),Number(a.partition_min),String(a.session_type),String(Xm()),"FAILURE")};
var Mja=new Lja,Nja=new an,Oja=new $m,Pja=function(){this.sliFields_={};this.statusOnTimeout_="TIMEOUT";this.timeoutMs_=12E4;this.timeoutHandle_=void 0;this.result_streamz_=Nja;this.start_streamz_=Oja;this.ongoing_=!1;this.id_="APP_BOOTS"};
e=Pja.prototype;e.getId=function(){return this.id_};
e.isOngoing=function(){return this.ongoing_};
e.recordStart=function(a){a=void 0===a?{}:a;this.ongoing_||(this.sliFields_=a,this.timeoutMs_&&(this.timeoutHandle_=window.setTimeout(u(function(){this.recordEnd(this.statusOnTimeout_)},this),this.timeoutMs_)),this.start_streamz_.increment(String(this.sliFields_.browser),!!this.sliFields_.is_shell_load,String(Xm())),this.ongoing_=!0)};
e.extendDuration=function(a){!this.ongoing_||0>=a||!this.timeoutMs_||(window.clearTimeout(this.timeoutHandle_),this.timeoutMs_=a,this.timeoutHandle_=window.setTimeout(u(function(){this.recordEnd(this.statusOnTimeout_)},this),a))};
e.recordEnd=function(a){if(this.ongoing_){this.timeoutMs_&&window.clearTimeout(this.timeoutHandle_);var b=this.sliFields_;this.result_streamz_.increment(String(b.browser),!!b.is_shell_load,String(Xm()),a);this.ongoing_=!1;zn("app_boots",this.id_);this.id_=""}};
function Qja(){return yn("app_boots","APP_BOOTS",function(){return new Pja})}
var Rja=new cn,Sja=new bn,Tja=function(){this.sliFields_={};this.statusOnTimeout_="TIMEOUT";this.timeoutMs_=12E4;this.timeoutHandle_=void 0;this.result_streamz_=Rja;this.start_streamz_=Sja;this.ongoing_=!1;this.id_=""};
e=Tja.prototype;e.getId=function(){return this.id_};
e.isOngoing=function(){return this.ongoing_};
e.recordStart=function(a){a=void 0===a?{}:a;this.ongoing_||(this.sliFields_=a,this.timeoutMs_&&(this.timeoutHandle_=window.setTimeout(u(function(){this.recordEnd(this.statusOnTimeout_)},this),this.timeoutMs_)),this.start_streamz_.increment(String(this.sliFields_.browser),!!this.sliFields_.is_shell_load),this.ongoing_=!0)};
e.extendDuration=function(a){!this.ongoing_||0>=a||!this.timeoutMs_||(window.clearTimeout(this.timeoutHandle_),this.timeoutMs_=a,this.timeoutHandle_=window.setTimeout(u(function(){this.recordEnd(this.statusOnTimeout_)},this),a))};
e.recordEnd=function(a){if(this.ongoing_){this.timeoutMs_&&window.clearTimeout(this.timeoutHandle_);var b=this.sliFields_;this.result_streamz_.increment(String(b.browser),!!b.is_shell_load,a);this.ongoing_=!1;zn("component_registration",this.id_);this.id_=""}};
var Uja=new en,Vja=new dn,Wja=function(){this.sliFields_={};this.statusOnTimeout_="TIMEOUT";this.timeoutMs_=12E4;this.timeoutHandle_=void 0;this.result_streamz_=Uja;this.start_streamz_=Vja;this.ongoing_=!1;this.id_="NETWORK_REQUEST"};
e=Wja.prototype;e.getId=function(){return this.id_};
e.isOngoing=function(){return this.ongoing_};
e.recordStart=function(a){a=void 0===a?{}:a;this.ongoing_||(this.sliFields_=a,this.timeoutMs_&&(this.timeoutHandle_=window.setTimeout(u(function(){this.recordEnd(this.statusOnTimeout_)},this),this.timeoutMs_)),this.start_streamz_.increment(String(this.sliFields_.browser),!!this.sliFields_.is_shell_load,String(this.sliFields_.path),String(Xm())),this.ongoing_=!0)};
e.extendDuration=function(a){!this.ongoing_||0>=a||!this.timeoutMs_||(window.clearTimeout(this.timeoutHandle_),this.timeoutMs_=a,this.timeoutHandle_=window.setTimeout(u(function(){this.recordEnd(this.statusOnTimeout_)},this),a))};
e.recordEnd=function(a){if(this.ongoing_){this.timeoutMs_&&window.clearTimeout(this.timeoutHandle_);var b=this.sliFields_;this.result_streamz_.increment(String(b.browser),!!b.is_shell_load,String(b.path),String(Xm()),a);this.ongoing_=!1;zn("network_request",this.id_);this.id_=""}};
function Gn(){return yn("network_request","NETWORK_REQUEST",function(){return new Wja})}
var Xja=new gn,Yja=new fn,Zja=function(){this.sliFields_={};this.statusOnTimeout_="TIMEOUT";this.timeoutMs_=12E4;this.timeoutHandle_=void 0;this.result_streamz_=Xja;this.start_streamz_=Yja;this.ongoing_=!1;this.id_="WARM_PAGE_NAVIGATION"};
e=Zja.prototype;e.getId=function(){return this.id_};
e.isOngoing=function(){return this.ongoing_};
e.recordStart=function(a){a=void 0===a?{}:a;this.ongoing_||(this.sliFields_=a,this.timeoutMs_&&(this.timeoutHandle_=window.setTimeout(u(function(){this.recordEnd(this.statusOnTimeout_)},this),this.timeoutMs_)),this.start_streamz_.increment(String(this.sliFields_.browser),!!this.sliFields_.is_shell_load,String(this.sliFields_.page_type),String(this.sliFields_.request_type),String(Xm())),this.ongoing_=!0)};
e.extendDuration=function(a){!this.ongoing_||0>=a||!this.timeoutMs_||(window.clearTimeout(this.timeoutHandle_),this.timeoutMs_=a,this.timeoutHandle_=window.setTimeout(u(function(){this.recordEnd(this.statusOnTimeout_)},this),a))};
e.recordEnd=function(a){if(this.ongoing_){this.timeoutMs_&&window.clearTimeout(this.timeoutHandle_);var b=this.sliFields_;this.result_streamz_.increment(String(b.browser),!!b.is_shell_load,String(b.page_type),String(b.request_type),String(Xm()),a);this.ongoing_=!1;zn("warm_page_navigation",this.id_);this.id_=""}};
function Hn(){return yn("warm_page_navigation","WARM_PAGE_NAVIGATION",function(){return new Zja})}
var $ja=new jn,aka=new hn,bka=function(){this.sliFields_={};this.statusOnTimeout_="TIMEOUT";this.timeoutMs_=12E4;this.timeoutHandle_=void 0;this.result_streamz_=$ja;this.start_streamz_=aka;this.ongoing_=!1;this.id_=""};
e=bka.prototype;e.getId=function(){return this.id_};
e.isOngoing=function(){return this.ongoing_};
e.recordStart=function(a){a=void 0===a?{}:a;this.ongoing_||(this.sliFields_=a,this.timeoutMs_&&(this.timeoutHandle_=window.setTimeout(u(function(){this.recordEnd(this.statusOnTimeout_)},this),this.timeoutMs_)),this.start_streamz_.increment(String(this.sliFields_.browser),!!this.sliFields_.is_shell_load,String(Xm())),this.ongoing_=!0)};
e.extendDuration=function(a){!this.ongoing_||0>=a||!this.timeoutMs_||(window.clearTimeout(this.timeoutHandle_),this.timeoutMs_=a,this.timeoutHandle_=window.setTimeout(u(function(){this.recordEnd(this.statusOnTimeout_)},this),a))};
e.recordEnd=function(a){if(this.ongoing_){this.timeoutMs_&&window.clearTimeout(this.timeoutHandle_);var b=this.sliFields_;this.result_streamz_.increment(String(b.browser),!!b.is_shell_load,String(Xm()),a);this.ongoing_=!1;zn("service_worker_registration",this.id_);this.id_=""}};
var cka=new ln,dka=new kn,eka=function(){this.sliFields_={};this.statusOnTimeout_="FAILURE";this.timeoutMs_=6E4;this.timeoutHandle_=void 0;this.result_streamz_=cka;this.start_streamz_=dka;this.ongoing_=!1;this.id_="YT_INITIAL_DATA_LOADED"};
e=eka.prototype;e.getId=function(){return this.id_};
e.isOngoing=function(){return this.ongoing_};
e.recordStart=function(a){a=void 0===a?{}:a;this.ongoing_||(this.sliFields_=a,this.timeoutMs_&&(this.timeoutHandle_=window.setTimeout(u(function(){this.recordEnd(this.statusOnTimeout_)},this),this.timeoutMs_)),this.start_streamz_.increment(String(this.sliFields_.browser),!!this.sliFields_.is_shell_load,String(Xm())),this.ongoing_=!0)};
e.extendDuration=function(a){!this.ongoing_||0>=a||!this.timeoutMs_||(window.clearTimeout(this.timeoutHandle_),this.timeoutMs_=a,this.timeoutHandle_=window.setTimeout(u(function(){this.recordEnd(this.statusOnTimeout_)},this),a))};
e.recordEnd=function(a){if(this.ongoing_){this.timeoutMs_&&window.clearTimeout(this.timeoutHandle_);var b=this.sliFields_;this.result_streamz_.increment(String(b.browser),!!b.is_shell_load,String(Xm()),a);this.ongoing_=!1;zn("yt_initial_data_present",this.id_);this.id_=""}};
function fka(){return yn("yt_initial_data_present","YT_INITIAL_DATA_LOADED",function(){return new eka})}
var gka=new nn,hka=new mn,ika=function(){this.sliFields_={};this.statusOnTimeout_="FAILURE";this.timeoutMs_=6E4;this.timeoutHandle_=void 0;this.result_streamz_=gka;this.start_streamz_=hka;this.ongoing_=!1;this.id_=""};
e=ika.prototype;e.getId=function(){return this.id_};
e.isOngoing=function(){return this.ongoing_};
e.recordStart=function(a){a=void 0===a?{}:a;this.ongoing_||(this.sliFields_=a,this.timeoutMs_&&(this.timeoutHandle_=window.setTimeout(u(function(){this.recordEnd(this.statusOnTimeout_)},this),this.timeoutMs_)),this.start_streamz_.increment(String(this.sliFields_.browser),!!this.sliFields_.is_shell_load,String(Xm())),this.ongoing_=!0)};
e.extendDuration=function(a){!this.ongoing_||0>=a||!this.timeoutMs_||(window.clearTimeout(this.timeoutHandle_),this.timeoutMs_=a,this.timeoutHandle_=window.setTimeout(u(function(){this.recordEnd(this.statusOnTimeout_)},this),a))};
e.recordEnd=function(a){if(this.ongoing_){this.timeoutMs_&&window.clearTimeout(this.timeoutHandle_);var b=this.sliFields_;this.result_streamz_.increment(String(b.browser),!!b.is_shell_load,String(Xm()),a);this.ongoing_=!1;zn("yt_guide_data_present",this.id_);this.id_=""}};
var jka=new pn,kka=new on,lka=function(){this.sliFields_={};this.statusOnTimeout_="SUCCESS";this.timeoutMs_=6E4;this.timeoutHandle_=void 0;this.result_streamz_=jka;this.start_streamz_=kka;this.ongoing_=!1;this.id_="STFE_GREATER_THAN_ONE_MINUTE"};
e=lka.prototype;e.getId=function(){return this.id_};
e.isOngoing=function(){return this.ongoing_};
e.recordStart=function(a){a=void 0===a?{}:a;this.ongoing_||(this.sliFields_=a,this.timeoutMs_&&(this.timeoutHandle_=window.setTimeout(u(function(){this.recordEnd(this.statusOnTimeout_)},this),this.timeoutMs_)),this.start_streamz_.increment(String(this.sliFields_.browser),!!this.sliFields_.is_shell_load,String(Xm())),this.ongoing_=!0)};
e.extendDuration=function(a){!this.ongoing_||0>=a||!this.timeoutMs_||(window.clearTimeout(this.timeoutHandle_),this.timeoutMs_=a,this.timeoutHandle_=window.setTimeout(u(function(){this.recordEnd(this.statusOnTimeout_)},this),a))};
e.recordEnd=function(a){if(this.ongoing_){this.timeoutMs_&&window.clearTimeout(this.timeoutHandle_);var b=this.sliFields_;this.result_streamz_.increment(String(b.browser),!!b.is_shell_load,String(Xm()),a);this.ongoing_=!1;zn("stfe_greater_than_one_minute",this.id_);this.id_=""}};
function mka(){return yn("stfe_greater_than_one_minute","STFE_GREATER_THAN_ONE_MINUTE",function(){return new lka})}
var nka=new rn,oka=new qn,pka=function(){this.sliFields_={};this.statusOnTimeout_="SUCCESS";this.timeoutMs_=6E5;this.timeoutHandle_=void 0;this.result_streamz_=nka;this.start_streamz_=oka;this.ongoing_=!1;this.id_="STFE_GREATER_THAN_TEN_MINUTES"};
e=pka.prototype;e.getId=function(){return this.id_};
e.isOngoing=function(){return this.ongoing_};
e.recordStart=function(a){a=void 0===a?{}:a;this.ongoing_||(this.sliFields_=a,this.timeoutMs_&&(this.timeoutHandle_=window.setTimeout(u(function(){this.recordEnd(this.statusOnTimeout_)},this),this.timeoutMs_)),this.start_streamz_.increment(String(this.sliFields_.browser),!!this.sliFields_.is_shell_load,String(Xm())),this.ongoing_=!0)};
e.extendDuration=function(a){!this.ongoing_||0>=a||!this.timeoutMs_||(window.clearTimeout(this.timeoutHandle_),this.timeoutMs_=a,this.timeoutHandle_=window.setTimeout(u(function(){this.recordEnd(this.statusOnTimeout_)},this),a))};
e.recordEnd=function(a){if(this.ongoing_){this.timeoutMs_&&window.clearTimeout(this.timeoutHandle_);var b=this.sliFields_;this.result_streamz_.increment(String(b.browser),!!b.is_shell_load,String(Xm()),a);this.ongoing_=!1;zn("stfe_greater_than_ten_minutes",this.id_);this.id_=""}};
function qka(){return yn("stfe_greater_than_ten_minutes","STFE_GREATER_THAN_TEN_MINUTES",function(){return new pka})}
new tn;new sn;new vn;new un;var In=Va().toString();
function Jn(){a:{if(window.crypto&&window.crypto.getRandomValues)try{var a=Array(16),b=new Uint8Array(16);window.crypto.getRandomValues(b);for(var c=0;c<a.length;c++)a[c]=b[c];var d=a;break a}catch(f){}d=Array(16);for(a=0;16>a;a++){b=Va();for(c=0;c<b%23;c++)d[a]=Math.random();d[a]=Math.floor(256*Math.random())}if(In)for(a=1,b=0;b<In.length;b++)d[a%16]=d[a%16]^d[(a-1)%16]/4^In.charCodeAt(b),a++}a=[];for(b=0;b<d.length;b++)a.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(d[b]&63));
return a.join("")}
;var Kn=t.ytLoggingDocDocumentNonce_||Jn();Fa("ytLoggingDocDocumentNonce_",Kn,void 0);var rka=Mm;function ska(a){a&&gl("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:Kn,clientScreenNonce:a},rka)}
;var tka={DEFAULT:0,CHAT:1,CONVERSATIONS:2,MINIPLAYER:3,DIALOG:4,VOZ:5,MUSIC_WATCH_TABS:6,0:"DEFAULT",1:"CHAT",2:"CONVERSATIONS",3:"MINIPLAYER",4:"DIALOG",5:"VOZ",6:"MUSIC_WATCH_TABS"};var uka=1,Ln=function(a){this.veData=a},Mn=function(a){return new Ln({trackingParams:a})},Nn=function(a,b,c,d){var f=uka++;
return new Ln({veType:a,veCounter:f,elementIndex:c,dataElement:b,youtubeData:d})};
Ln.prototype.getAsJson=function(){var a={};void 0!==this.veData.trackingParams?a.trackingParams=this.veData.trackingParams:(a.veType=this.veData.veType,void 0!==this.veData.veCounter&&(a.veCounter=this.veData.veCounter),void 0!==this.veData.elementIndex&&(a.elementIndex=this.veData.elementIndex));void 0!==this.veData.dataElement&&(a.dataElement=this.veData.dataElement.getAsJson());void 0!==this.veData.youtubeData&&(a.youtubeData=this.veData.youtubeData);return a};
Ln.prototype.toString=function(){return JSON.stringify(this.getAsJson())};
Ln.prototype.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};function On(a){a=void 0===a?0:a;return 0==a?"client-screen-nonce":"client-screen-nonce."+a}
function Pn(a){a=void 0===a?0:a;return 0==a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a}
function Qn(a){return B(Pn(void 0===a?0:a),void 0)}
Fa("yt_logging_screen.getRootVeType",Qn,void 0);function Rn(a){return(a=Qn(void 0===a?0:a))?new Ln({veType:a,youtubeData:void 0}):null}
function vka(){var a=B("csn-to-ctt-auth-info");a||(a={},pd("csn-to-ctt-auth-info",a));return a}
function Sn(a){a=void 0===a?0:a;var b=B(On(a));if(!b&&!qd("USE_CSN_FALLBACK",!0))return null;b||0!=a||(b="UNDEFINED_CSN");return b?b:null}
Fa("yt_logging_screen.getCurrentCsn",Sn,void 0);function wka(a,b,c){var d=vka();(c=Sn(c))&&delete d[c];b&&(d[a]=b)}
function Tn(a){return vka()[a]}
Fa("yt_logging_screen.getCttAuthInfo",Tn,void 0);function Un(a,b,c,d){c=void 0===c?0:c;if(a!==B(On(c))||b!==B(Pn(c)))if(wka(a,d,c),pd(On(c),a),pd(Pn(c),b),0==c||N("web_screen_associated_all_layers"))b=function(){setTimeout(function(){ska(a)},0)},"requestAnimationFrame"in window?window.requestAnimationFrame(b):b()}
Fa("yt_logging_screen.setCurrentScreen",Un,void 0);var Vn={},xka=0;
function Wn(a,b,c,d,f){f=void 0===f?"":f;if(a)if(c&&!kia("cobalt"))a&&(a=Ub(Zb(a)),"about:invalid#zClosurez"===a||a.startsWith("data")?a="":(a=nc(pc(a)),a=zc(uj(a))),Nb(a)||(a=ng("IFRAME",{src:"javascript:\"<body><img src=\\\"\"+"+a+"+\"\\\"></body>\"",style:"display:none"}),ag(a).body.appendChild(a)));else if(f)sl(a,b,"POST",f,d);else if(B("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)sl(a,b,"GET","",d);else{b:{try{var g=new ud({url:a});if(g.isSonicV2OrV3_&&g.adurl_||g.isSonicV4_){var l=zd(a);var m=!(!l||!l.endsWith("/aclk")||
"1"!==Kd(a,"ri"));break b}}catch(n){}m=!1}m?yka(a)?(b&&b(),c=!0):c=!1:c=!1;c||zka(a,b)}}
function Xn(a){if(a)for(var b=0;b<a.length;b++)Wn(a[b],void 0,void 0)}
function yka(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1}
function zka(a,b){var c=new Image,d=""+xka++;Vn[d]=c;c.onload=c.onerror=function(){b&&Vn[d]&&b();delete Vn[d]};
c.src=a}
;var Aka=!1;function Bka(){if(!Aka){if(Polymer.Base){var a=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{a.apply(this,arguments)}catch(z){sd(z)}};
var b=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{b.apply(this,arguments)}catch(z){sd(z)}};
var c=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{c.apply(this,arguments)}catch(z){sd(z)}};
var d=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{d.apply(this,arguments)}catch(z){sd(z)}};
var f=Polymer.Base._listen,g=new WeakMap;Polymer.Base._listen=function(z,C,J){var E=function(){try{J.apply(this,arguments)}catch(S){sd(S)}};
g.set(J,E);f.call(this,z,C,E)};
var l=Polymer.Base._unlisten;Polymer.Base._unlisten=function(z,C,J){l.call(this,z,C,g.get(J))}}if(Polymer.Async){var m=Polymer.Async,n=m._atEndOfMicrotask;
m._atEndOfMicrotask=function(){try{n.apply(m,arguments)}catch(z){sd(z)}}}if(Polymer.RenderStatus){var r=Polymer.RenderStatus,v=r.afterNextRender;
r.afterNextRender=function(z,C,J){v.call(r,z,function(){try{C.apply(this,arguments)}catch(E){sd(E)}},J)}}Aka=!0}}
;var Yn=function(){this.isEnabled_=N("enable_signals");this.softSignals_=Object.create(null);this.signals_=Object.create(null);this.compoundSignals_=Object.create(null);this.inProgressSignals_=Object.create(null);this.parkedJobs_=Object.create(null);this.parkedProcessors_=Object.create(null)};
Yn.prototype.onAny=function(a){return Cka(this,a,2)};
var Zn=function(a,b){return Cka(a,b,1)};
Yn.prototype.parkOrScheduleJob=function(a,b,c,d,f){$n(this,c)?Ck.addJob(a,b,d):(f&&(a=ao(a),bo(this,a,b,c,f)),(f=this.parkedJobs_[c])||(f=this.parkedJobs_[c]=[]),f.push({job:a,priority:b,delay:d}))};
Yn.prototype.parkOrScheduleConditionalPriorityJob=function(a,b,c,d,f){var g=A.getKeys(b);1==g.length?(f=g[0],g=b.get(f),this.parkOrScheduleJob(a,g,f,c,d)):1<g.length&&(g=this.onAny(g),d&&(a=ao(a),bo(this,a,void 0===f?0:f,g,d)),d=function(){var l=0,m;for(m in b)(Dka(this)||$n(this,m)||this.inProgressSignals_[m])&&(l=Math.max(l,b[m]));Ck.addJob(a,l,c)}.bind(this),this.parkOrScheduleJob(d,10,g))};
Yn.prototype.addListener=function(a,b,c){this.isEnabled_&&(c&&(b=ao(b),bo(this,b,0,a,c)),(c=this.parkedProcessors_[a])||(c=this.parkedProcessors_[a]=[]),c.push(b))};
Yn.prototype.processSignal=function(a){if(!$n(this,a)){this.inProgressSignals_[a]=!0;var b=this.parkedJobs_[a];if(b){for(var c=0,d;d=b[c++];)Ck.addJob(d.job,d.priority,d.delay);b.length=0}if(b=this.parkedProcessors_[a]){for(c=0;d=b[c++];)d();b.length=0}this.signals_[a]=!0;this.inProgressSignals_[a]=!1}};
var $n=function(a,b){return Dka(a)?!0:void 0!==a.signals_[b]},Eka=function(a,b,c){a.parkOrScheduleJob(b,c,"ytd-miniplayer")};
Yn.prototype.onComponents=function(a,b,c){a=Zn(this,a);this.parkOrScheduleJob(b,c,a)};
var Dka=function(a){return a.isEnabled_&&(qd("IS_HOMEPAGE_COLD")||qd("IS_RESULTS_PAGE_COLD")||qd("IS_WATCH_PAGE_COLD"))?!1:!0},ao=function(a){var b=!1;
return function(){b||(b=!0,a())}},bo=function(a,b,c,d,f){if(Fka(a,d))Ck.addJob(b,c,f);else
{var g=a.compoundSignals_[d];g&&(a=function(){$n(this,d)||(g.isTimeoutConditionSatisfied?Ck.addJob(b,c):g.timeoutConditionObservers.push(function(){Ck.addJob(b,c)}))}.bind(a),Ck.addJob(a,c,f))}},Cka=function(a,b,c){if(!a.isEnabled_)return"n/a";
if(1<b.length){for(var d=[],f=Object.create(null),g=0,l;l=b[g++];)f[l]||(d.push(l),f[l]=!0);b=d}if(1==b.length)return b[0];d=b;f="";g=2===c?"|":"&";d.sort();l=0;for(var m;m=d[l++];)f+=m+g;d=f;if(!a.compoundSignals_[d]){f=0;g=[];for(l=0;m=b[l++];)f++,$n(a,m)||g.push(m);(c=2==c)&&f>g.length||!c&&!g.length?a.signals_[d]=!0:Gka(a,d,c,b,g)}return d},Gka=function(a,b,c,d,f){for(var g=f.length,l=function(){c||0==--g?this.processSignal(b):this.evaluateTimeoutCondition_(b)}.bind(a),m=0,n=void 0;n=f[m++];)a.addListener(n,
l);
a.compoundSignals_[b]={signals:d,isOnAny:c,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]};a.evaluateTimeoutCondition_(b)};
Yn.prototype.evaluateTimeoutCondition_=function(a){if(!$n(this,a)){var b=this.compoundSignals_[a];if(!b.isTimeoutConditionSatisfied){for(var c=!1,d=0,f=0,g=0,l;l=b.signals[g++];){var m=!$n(this,l);Fka(this,l)?c=!0:(l=this.compoundSignals_[l])?m&&!l.isTimeoutConditionSatisfied&&(f++,b.isInitialized||(m=this.evaluateTimeoutCondition_.bind(this,a),l.timeoutConditionObservers.push(m))):m&&d++}b.isInitialized=!0;b.isOnAny?c&&(b.isTimeoutConditionSatisfied=!0):0==d&&0==f&&(b.isTimeoutConditionSatisfied=
!0);if(b.isTimeoutConditionSatisfied)for(a=0;c=b.timeoutConditionObservers[a++];)c()}}};
var Fka=function(a,b){if(A.isEmpty(a.softSignals_))for(var c=0,d;d=Hka[c++];)a.softSignals_[d]=!0;return a.softSignals_[b]};
Yn.prototype.processSignal=Yn.prototype.processSignal;Yn.prototype.parkOrScheduleJob=Yn.prototype.parkOrScheduleJob;Yn.prototype.onAny=Yn.prototype.onAny;La(Yn);Fa("ytsignals.getInstance",Yn.getInstance,void 0);Yn.prototype.onAny=Yn.prototype.onAny;Yn.prototype.parkOrScheduleJob=Yn.prototype.parkOrScheduleJob;Yn.prototype.processSignal=Yn.prototype.processSignal;var Hka=["eop","eocs","dl","pcl"];function co(){return{browser:Ika(),is_shell_load:qd("IS_SHELL_LOAD",!1)}}
function Jka(){return{start:function(a){var b=Gn(),c=b.recordStart;a=Object.assign(Object.assign({},co()),{path:a});c.call(b,a)},
success:function(){Gn().recordEnd("SUCCESS")},
failure:function(){Gn().recordEnd("FAILURE")},
cancelled:function(){Gn().recordEnd("CANCELLED")}}}
function Ika(){return ic()?"CHROME":hc()?"FIREFOX":jc()?"SAFARI":fc("Edge")?"EDGE":gc()?"IE":"OTHER"}
;var eo=function(){this.componentConstructors_=new Map;this.signals_=Yn.getInstance()};
eo.prototype.hasConstructor=function(a){return void 0!==this.componentConstructors_.get(a)};
eo.prototype.onConstructor=function(a,b,c){var d=this.componentConstructors_.get(a);d?b(d):(d=function(){b(this.componentConstructors_.get(a))}.bind(this),this.signals_.parkOrScheduleJob(d,c,a))};
La(eo);function fo(a,b){a=k(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.constructor===Array)fo(c,b);else{var d=b;d.has(c)||(c.inject&&d.add(c),c.behaviors&&fo(c.behaviors,d))}}
;var Kka=!1;function Lka(){function a(g,l,m,n){var r=g[l];g[l]=function(){this._host=c.currentHost();this.initializeInjection&&this.initializeInjection();if(r)return r.apply(this,arguments)};
var v=g[m];g[m]=function(){c.push(n?this._host:this);var z=v.apply(this,arguments);c.pop();return z}}
var b=Polymer,c={stack:[],push:function(g){this.stack.push(g)},
pop:function(){this.stack.pop()},
currentHost:function(){if(this.stack.length)return this.stack[this.stack.length-1]}},d=b._polymerFn.Class?b._polymerFn:b,f=d.Class;
d.Class=function(g){g=f(g);a(g.prototype,"created","_stampTemplate",!1);return g};
a(b.DomRepeat.prototype,"_initializeProperties","__stampInstance",!0);a(b.DomIf.prototype,"_initializeProperties","__ensureInstance",!0);b.legacyOptimizations?a(b.Templatizer,"created","stamp",!0):customElements.get("iron-list")&&a(customElements.get("iron-list").prototype,"_initializeProperties","stamp",!0);b.dedupingMixin(function(g){var l=function(){return g.apply(this,arguments)||this};
p(l,g);l.prototype._initializeProperties=function(){this._host=c.currentHost();this.initializeInjection&&this.initializeInjection();g.prototype._initializeProperties.call(this)};
l.prototype._stampTemplate=function(m){for(var n=[],r=0;r<arguments.length;++r)n[r-0]=arguments[r];c.push(this);n=g.prototype._stampTemplate.call.apply(g.prototype._stampTemplate,[this].concat(fa(n)));c.pop();return n};
return l})}
;var go,Mka=[];function Nka(a){for(;a=a._host;)if(a.injector)return a.injector}
function Oka(){var a=window;return a.Polymer&&a.Polymer.Base&&a.Polymer.Base._hostStack?0===a.Polymer.Base._hostStack.length?"empty":a.Polymer.Base._hostStack.map(function(b){try{return b.localName}catch(c){if(b._rootDataHost)return b._rootDataHost.localName}return"unknown"}).join(" > "):"unknown"}
function Pka(a){var b=a._host;return b?Pka(b)+" > "+a.localName+":"+!!a.injector:a.localName+":"+!!a.injector}
function Qka(a){var b=a.tagName.toLowerCase();return a.parentElement?Qka(a.parentElement)+" > "+b:b}
;var ho={},io;if(window.hasOwnProperty("Polymer")){var Rka=Polymer;io=Rka&&Rka.Base}else io=!1;io&&!Kka&&(Lka(),Kka=!0);
ho.InjectBehavior={initializeInjection:function(){var a=this.isInjectionRoot,b=this.provide,c=go||Nka(this)||Mka[Mka.length-1];go=void 0;if(c||a){if(!c||b&&0<b.length)a=b||[],c=void 0===c?null:c,a=ak(a),c=new dk(a,void 0===c?null:c);this.injector=c;a=new Set;fo(this.behaviors||[],a);c={};a=k(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.inject&&Object.assign(c,b.inject);this.inject&&Object.assign(c,this.inject);a=k(Object.keys(c));for(b=a.next();!b.done;b=a.next()){b=b.value;var d=c[b];try{this[b]=
this.injector.get(d)}catch(f){throw f}}this.tempInjectionInitialized&&this.tempInjectionInitialized()}else throw c=Qka(this),a=Oka(),Error("Inject failed on "+c+", global hostStack "+a+", local hostStack "+Pka(this))}};function Ska(a,b){if(!(b instanceof HTMLElement))return go=b,document.createElement(a);go=b.injector||Nka(b);a=document.createElement(a);if(go)throw go=void 0,Error("Element "+a.tagName.toLowerCase()+" was created with createElementWithInjectionParent but did not use adopting injector. Most likely the element does not include InjectBehavior");return a}
function jo(a){if("string"===typeof a){var b=Polymer.telemetry.registrations.find(function(c){return c.is===a});
return b?Tka(b.behaviors||[]):(b=customElements&&customElements.get(a))?!!b.prototype.initializeInjection:!1}return!!a.injector}
function Tka(a){return a.some(function(b){return Array.isArray(b)?Tka(b):!!b.initializeInjection})}
;var Uka={};Uka.InjectBehavior=[ho.InjectBehavior];var lo=function(a,b){var c=ko.get(a);if(c&&(c=c.pop())){if(b&&jo(b)&&jo(c)){if(!c.injector)throw Error("");if(!b.injector)throw Error("");c.injector!==b.injector&&c.initializeInjection&&(go=b.injector,c.initializeInjection())}Vka++;return c}Wka++;try{var d=b&&jo(b)?Ska(a,b):document.createElement(a)}catch(f){throw new Ql("ElementPool failed to create element",a,f.message)}return d},mo=function(a){var b=a.is;
if(!b)return vm(new Ql("Element pool should only handle custom elements:",a.nodeName)),!1;var c=ko.get(b);c||(c=[],ko.set(b,c));var d=B("ELEMENT_POOL_CONFIG")||{};if(c.length>=(void 0!==d[b]?d[b]:B("ELEMENT_POOL_DEFAULT_CAP",0)))return!1;c.push(a);return!0},ko=new Map,Wka=0,Vka=0;var Xka={home:{"ytd-thumbnail":1,"ytd-topbar-menu-button-renderer":1,"ytd-item-section-renderer":5,"ytd-shelf-renderer":5,"yt-horizontal-list-renderer":5,"ytd-grid-video-renderer":30,"ytd-button-renderer":11,"paper-icon-button":7,"paper-button":5,"yt-formatted-string":5,"paper-tooltip":2,"yt-next-continuation":1,"~ytd-guide-entry-renderer":17,"~ytd-guide-signin-promo-renderer":1,"~ytd-browse":{count:1,signals:["yt-app-context","aa"]}},search:{"yt-next-continuation":1,"ytd-button-renderer":2,"ytd-channel-renderer":2,
"ytd-item-section-renderer":1,"ytd-video-renderer":20,"ytd-promoted-video-renderer":1,"ytd-search-pyv-renderer":1,"ytd-thumbnail":1,"ytd-thumbnail-overlay-time-status-renderer":20,"ytd-thumbnail-overlay-toggle-button-renderer":N("kevlar_thumbnail_overlay_new_elementpool_schedule")?0:20,"ytd-shelf-renderer":1,"ytd-vertical-list-renderer":1,"ytd-thumbnail-overlay-hover-text-renderer":2,"ytd-thumbnail-overlay-side-panel-renderer":2,"yt-formatted-string":3,"iron-icon":1,"paper-button":3,"paper-tooltip":33,
"yt-icon":1,"ytd-playlist-renderer":1,"ytd-playlist-video-thumbnail-renderer":1,"ytd-subscribe-button-renderer":1,"~ytd-artist-watch-card-renderer":1,"~ytd-search":{count:1,signals:["yt-app-context","aa"]}},watch:{"yt-next-continuation":2,"yt-view-count-renderer":1,"ytd-button-renderer":3,"ytd-toggle-button-renderer":2,"ytd-menu-renderer":1,"ytd-compact-autoplay-renderer":1,"ytd-compact-video-renderer":19,"ytd-compact-promoted-video-renderer":1,"ytd-compact-playlist-renderer":1,"ytd-compact-radio-renderer":1,
"ytd-thumbnail":1,"ytd-thumbnail-overlay-time-status-renderer":20,"ytd-thumbnail-overlay-toggle-button-renderer":N("kevlar_thumbnail_overlay_new_elementpool_schedule")?0:20,"ytd-player-legacy-desktop-watch-ads-renderer":1,"paper-button":20,"paper-icon-button":20,"paper-tooltip":30,"yt-formatted-string":5}},Yka={home:"eohps",search:"eosps",watch:"eowps"},no=["watch","search","home"],oo=function(){this.SKIP_INITIAL_PASS_="~";this.PREFERRED_FRAGMENT_PERIOD_=B("PRECONSTRUCTION_PERIOD",16);this.WEIGHTED_DECREASE_COEFFICIENT_=
B("PRECONSTRUCTION_COEF",.45);this.DEFAULT_DELAY_=B("PRECONSTRUCTION_DELAY",0);this.FILLABLE_COMPONENTS_={"ytd-browse":!0,"ytd-search":!0,"ytd-watch-flexy":!0};this.isInitialized_=!1;this.signals_=Yn.getInstance();this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.queue_=[];this.index_=0;this.pendingPages_=[];this.blockedTypes_={};this.averageCreationPeriod_={};this.targetPage_="";this.pagePreparerJobId_=this.fragmentJobId_=0;this.diParent_=null};
oo.prototype.init=function(a,b){if(this.isInitialized_)this.abort();else if(this.isInitialized_=!0,a&&po(this,a),b){var c=$n(this.signals_,"pcl")?0:10,d=function(){for(var f=0,g;g=no[f++];)g!=a&&g!=b&&this.pendingPages_.push(g);qo(this)}.bind(this);
this.signals_.parkOrScheduleJob(d,c,"pcl")}};
oo.prototype.abort=function(){this.fragmentJobId_&&(Ck.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);this.cleanup_()};
var $ka=function(a,b){var c=no.indexOf(b);-1<c&&no.splice(c,1);a.targetPage_==b?(a.abort(),qo(a)):Zka(a,b)},po=function(a,b){a.isInitialized_&&!a.targetPage_&&(a.targetPage_=b,ala(a,b),a.isInitialPass_=!1,ala(a,b),bla(a))},qo=function(a){a.pendingPages_.length&&!a.pagePreparerJobId_&&(a.pagePreparerJobId_=yk(Ck,function(){this.pagePreparerJobId_=0;
this.pendingPages_.length&&!this.targetPage_&&po(this,this.pendingPages_.shift())}.bind(a),a.DEFAULT_DELAY_))},Zka=function(a,b){b=a.pendingPages_.indexOf(b);
-1<b&&a.pendingPages_.splice(b,1)},ala=function(a,b){if(b=Xka[b])for(var c in b){var d=!1,f=c;
c.charAt(0)==a.SKIP_INITIAL_PASS_&&(d=!0,f=c.substring(1));var g=b[c];g="object"==typeof g?g:{count:g};b[c]=g;g.componentName=f;0<g.count&&(a.isInitialPass_?d||a.isSeenDuringInitialPass_[f]||(a.queue_.push({componentName:f,count:1,signals:g.signals}),a.isSeenDuringInitialPass_[f]=!0,g.count--):a.queue_.push(g))}},bla=function(a){for(var b=Wk(),c=!0;a.index_<a.queue_.length;){var d=a.queue_[a.index_],f=d.componentName,g=d.count,l=d.signals;
if(f&&g&&!a.blockedTypes_[f])if(!$n(a.signals_,f)||l){var m=[f,Yka[a.targetPage_]];l&&(m=m.concat(l));cla(a,f,g,m);d.count=0}else for(l=0;l<g;l++){if(!c&&(c=a.averageCreationPeriod_[f]||0,m=Wk()-b,dla(a,m,c)))return;c=!1;d.count--;if(!ela(a,f))break}a.index_++}a.signals_.processSignal(Yka[a.targetPage_]);a.cleanup_();qo(a)};
oo.prototype.getDiParent_=function(){this.diParent_||(this.diParent_=document.querySelector("ytd-app"));return this.diParent_};
var ela=function(a,b){if(a.blockedTypes_[b])return!1;var c=Wk(),d=null;try{d=document.createElement(b)}catch(g){return Wm(g,{reason:"Failed to create component",component:b}),Um(g),!1}if(!N("polymer2_element_pool_properties"))try{d._enableProperties()}catch(g){return Wm(g,{reason:"Failed to enable properties on component",component:b}),Um(g),!1}if(N("kevlar_polymer2_filler_data"))try{fla(a,d,b)}catch(g){return Wm(g,{reason:"Failed to setFillerData on component",component:b}),Um(g),!1}c=Wk()-c;var f=
!1;d.is&&mo(d)&&(f=!0);if(!f)return a.blockedTypes_[b]=!0,!1;d=a.WEIGHTED_DECREASE_COEFFICIENT_;f=a.averageCreationPeriod_[b];a.averageCreationPeriod_[b]=f?d*c+(1-d)*f:c;return!0},dla=function(a,b,c){return a.PREFERRED_FRAGMENT_PERIOD_-b<c?(a.fragmentJobId_=yk(Ck,function(){this.fragmentJobId_=0;
bla(this)}.bind(a),a.DEFAULT_DELAY_),!0):!1};
oo.prototype.cleanup_=function(){this.queue_.length=0;this.targetPage_="";this.isInitialPass_=!0;this.blockedTypes_={};this.index_=0;this.signals_.processSignal("eop")};
var fla=function(a,b,c){if(a.FILLABLE_COMPONENTS_[c]){var d;"ytd-watch-flexy"==c||"ytd-watch-fixie"==c?d="watch":"ytd-search"==c?d="search":"ytd-browse"==c&&"home"==a.targetPage_&&(d="home");var f=B("FILLER_DATA",{})[d];f&&f.response&&(a=b._readied,d="",b.is?b._template?b.$||(d="Component has not stamped template"):d="Component has no _template":d="Component is not upgrading during prepopulation",d&&"ytd-search"!==c&&Um(new Ql(d,c+", state: "+a)),b.getReady?b.getReady().then(function(){b.data||(b.data=
f.response)}):(b.data=f.response,vm(new Ql("Component has no getReady function.",c))))}},cla=function(a,b,c,d){d=Zn(a.signals_,d);
a.signals_.parkOrScheduleJob(function(){for(var f=0;f<c&&ela(a,b);f++);},1,d)};
La(oo);var ro=function(a,b){Cl.call(this,1,arguments);this.aft=a;this.timer=b};
p(ro,Cl);var so=function(a,b){Cl.call(this,1,arguments);this.aft=a;this.timer=b};
p(so,Cl);var gla=new Dl("aft-recorded",ro),hla=new Dl("timing-sent",so);var to=window,ila=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}},uo=to.performance||to.mozPerformance||to.msPerformance||to.webkitPerformance||new ila;var jla=!1,xo={"script[name=\"scheduler/scheduler\"]":"sj","script[name=\"player/base\"]":"pj","link[rel=\"stylesheet\"][name=\"www-player\"]":"pc","link[rel=\"stylesheet\"][name=\"player/www-player\"]":"pc","script[name=\"desktop_polymer/desktop_polymer\"]":"dpj","link[rel=\"import\"][name=\"desktop_polymer\"]":"dph","script[name=\"mobile-c3/mobile-c3\"]":"mcj","link[rel=\"stylesheet\"][name=\"mobile-c3\"]":"mcc","script[name=\"player-plasma-ias-phone/base\"]":"mcppj","script[name=\"player-plasma-ias-tablet/base\"]":"mcptj",
"link[rel=\"stylesheet\"][name=\"mobile-polymer-player-ias\"]":"mcpc","link[rel=\"stylesheet\"][name=\"mobile-polymer-player-svg-ias\"]":"mcpsc","script[name=\"mobile_blazer_core_mod\"]":"mbcj","link[rel=\"stylesheet\"][name=\"mobile_blazer_css\"]":"mbc","script[name=\"mobile_blazer_logged_in_users_mod\"]":"mbliuj","script[name=\"mobile_blazer_logged_out_users_mod\"]":"mblouj","script[name=\"mobile_blazer_noncore_mod\"]":"mbnj","#player_css":"mbpc","script[name=\"mobile_blazer_desktopplayer_mod\"]":"mbpj","link[rel=\"stylesheet\"][name=\"mobile_blazer_tablet_css\"]":"mbtc",
"script[name=\"mobile_blazer_watch_mod\"]":"mbwj"},kla=u(uo.clearResourceTimings||uo.webkitClearResourceTimings||uo.mozClearResourceTimings||uo.msClearResourceTimings||uo.oClearResourceTimings||Ka,uo);function yo(a){var b=zo(a);if(b.aft)return b.aft;a=B((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=a.length,d=0;d<c;d++){var f=b[a[d]];if(f)return f}return NaN}
function lla(){var a;if(N("csi_use_performance_navigation_timing")){var b,c,d,f=null===(d=null===(c=null===(b=null===(a=null===uo||void 0===uo?void 0:uo.getEntriesByType)||void 0===a?void 0:a.call(uo,"navigation"))||void 0===b?void 0:b[0])||void 0===c?void 0:c.toJSON)||void 0===d?void 0:d.call(c);f?(f.requestStart=Ao(f.requestStart),f.responseEnd=Ao(f.responseEnd),f.redirectStart=Ao(f.redirectStart),f.redirectEnd=Ao(f.redirectEnd),f.domainLookupEnd=Ao(f.domainLookupEnd),f.connectStart=Ao(f.connectStart),
f.connectEnd=Ao(f.connectEnd),f.responseStart=Ao(f.responseStart),f.secureConnectionStart=Ao(f.secureConnectionStart),f.domainLookupStart=Ao(f.domainLookupStart),f.isPerformanceNavigationTiming=!0,a=f):a=uo.timing}else a=uo.timing;return a}
function Bo(){return N("csi_use_time_origin")&&uo.timeOrigin?Math.floor(uo.timeOrigin):uo.timing.navigationStart}
function Ao(a){return Math.round(Bo()+a)}
function Co(a,b){Fa("ytglobal.timing"+(b||"")+"ready_",a,void 0)}
function mla(a){return!!Ja("yt.timing."+(a||"")+"pingSent_")}
function nla(a,b){Fa("yt.timing."+(b||"")+"pingSent_",a,void 0)}
function Do(a){return Ja("ytcsi."+(a||"")+"data_")||ola(a)}
function Eo(a){a=Do(a);a.info||(a.info={});return a.info}
function zo(a){a=Do(a);a.tick||(a.tick={});return a.tick}
function Fo(a){var b=Do(a).nonce;b||(b=Jn(),Do(a).nonce=b);return b}
function ola(a){var b={tick:{},info:{}};Fa("ytcsi."+(a||"")+"data_",b,void 0);return b}
function pla(a){var b=zo(a||""),c=yo(a);c&&!jla&&(Gl(gla,new ro(Math.round(c-b._start),a)),jla=!0)}
;function qla(){if(uo.getEntriesByType){var a=uo.getEntriesByType("paint");if(a=ib(a,function(b){return"first-paint"===b.name}))return Ao(a.startTime)}a=uo.timing;
return a.msFirstPaint?Math.max(0,a.msFirstPaint):0}
;function Go(){var a=Ja("ytcsi.debug");a||(a=[],Fa("ytcsi.debug",a,void 0),Fa("ytcsi.reference",{},void 0));return a}
function Ho(a){a=a||"";var b=rla();if(b[a])return b[a];var c=Go(),d={timerName:a,info:{},tick:{},span:{}};c.push(d);return b[a]=d}
function sla(a){a=a||"";var b=rla();b[a]&&delete b[a];var c=Go(),d={timerName:a,info:{},tick:{},span:{}};c.push(d);b[a]=d}
function rla(){var a=Ja("ytcsi.reference");if(a)return a;Go();return Ja("ytcsi.reference")}
;var Io=t.ytLoggingLatencyUsageStats_||{};Fa("ytLoggingLatencyUsageStats_",Io,void 0);var Jo=function(){this.cleanupJob=0},Ko=function(){Jo.instance||(Jo.instance=new Jo);
return Jo.instance};
Jo.prototype.tick=function(a,b,c){Lo(this,"tick_"+a+"_"+b)||wm("latencyActionTicked",{tickName:a,clientActionNonce:b},{timestamp:c})};
Jo.prototype.info=function(a,b){var c=Object.keys(a).join("");Lo(this,"info_"+c+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,wm("latencyActionInfo",a))};
Jo.prototype.span=function(a,b){var c=Object.keys(a).join("");Lo(this,"span_"+c+"_"+b)||(a.clientActionNonce=b,wm("latencyActionSpan",a))};
var Lo=function(a,b){Io[b]=Io[b]||{count:0};var c=Io[b];c.count++;c.time=Wk();a.cleanupJob||(a.cleanupJob=yk(Ck,function(){var d=Wk(),f;for(f in Io)Io[f]&&6E4<d-Io[f].time&&delete Io[f];a&&(a.cleanupJob=0)},5E3));
return 5<c.count?(6===c.count&&1>1E5*Math.random()&&(c=new Ql("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||vm(c)),!0):!1};var Mo={},tla=(Mo.ad_to_ad="LATENCY_ACTION_AD_TO_AD",Mo.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",Mo.app_startup="LATENCY_ACTION_APP_STARTUP",Mo["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",Mo["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",Mo["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",Mo.browse="LATENCY_ACTION_BROWSE",Mo.channels="LATENCY_ACTION_CHANNELS",Mo.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",Mo["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",
Mo["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",Mo["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",Mo["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",Mo["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",Mo["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",Mo["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",Mo["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",Mo["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",
Mo["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",Mo.chips="LATENCY_ACTION_CHIPS",Mo["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",Mo["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",Mo.embed="LATENCY_ACTION_EMBED",Mo.home="LATENCY_ACTION_HOME",Mo.library="LATENCY_ACTION_LIBRARY",Mo.live="LATENCY_ACTION_LIVE",Mo.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",Mo.onboarding="LATENCY_ACTION_KIDS_ONBOARDING",Mo.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
Mo.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",Mo.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",Mo.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",Mo["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",Mo["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",Mo.prebuffer="LATENCY_ACTION_PREBUFFER",Mo.prefetch="LATENCY_ACTION_PREFETCH",Mo.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",Mo.profile_switcher="LATENCY_ACTION_KIDS_PROFILE_SWITCHER",Mo.results=
"LATENCY_ACTION_RESULTS",Mo.search_ui="LATENCY_ACTION_SEARCH_UI",Mo.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",Mo.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",Mo.settings="LATENCY_ACTION_SETTINGS",Mo.tenx="LATENCY_ACTION_TENX",Mo.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",Mo.watch="LATENCY_ACTION_WATCH",Mo.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",Mo["watch,watch7"]="LATENCY_ACTION_WATCH",Mo["watch,watch7_html5"]="LATENCY_ACTION_WATCH",Mo["watch,watch7ad"]="LATENCY_ACTION_WATCH",
Mo["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",Mo.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",Mo.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",Mo["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",Mo["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",Mo["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",Mo["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",Mo["video.video_editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",Mo["video.video_editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",
Mo["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",Mo.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",Mo.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",Mo.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",Mo),No={},ula=(No.ad_allowed="adTypesAllowed",No.yt_abt="adBreakType",No.ad_cpn="adClientPlaybackNonce",No.ad_docid="adVideoId",No.yt_ad_an="adNetworks",No.ad_at="adType",No.aida="appInstallDataAgeMs",No.browse_id="browseId",No.p="httpProtocol",
No.t="transportProtocol",No.cpn="clientPlaybackNonce",No.ccs="creatorInfo.creatorCanaryState",No.csn="clientScreenNonce",No.docid="videoId",No.GetHome_rid="requestIds",No.GetSearch_rid="requestIds",No.GetPlayer_rid="requestIds",No.GetWatchNext_rid="requestIds",No.GetBrowse_rid="requestIds",No.GetLibrary_rid="requestIds",No.is_continuation="isContinuation",No.is_nav="isNavigation",No.b_p="kabukiInfo.browseParams",No.is_prefetch="kabukiInfo.isPrefetch",No.is_secondary_nav="kabukiInfo.isSecondaryNav",
No.prev_browse_id="kabukiInfo.prevBrowseId",No.query_source="kabukiInfo.querySource",No.voz_type="kabukiInfo.vozType",No.yt_lt="loadType",No.mver="creatorInfo.measurementVersion",No.yt_ad="isMonetized",No.nr="webInfo.navigationReason",No.nrsu="navigationRequestedSameUrl",No.ncnp="webInfo.nonPreloadedNodeCount",No.pnt="performanceNavigationTiming",No.prt="playbackRequiresTap",No.plt="playerInfo.playbackType",No.pis="playerInfo.playerInitializedState",No.paused="playerInfo.isPausedOnLoad",No.yt_pt=
"playerType",No.fmt="playerInfo.itag",No.yt_pl="watchInfo.isPlaylist",No.yt_pre="playerInfo.preloadType",No.yt_ad_pr="prerollAllowed",No.pa="previousAction",No.yt_red="isRedSubscriber",No.rce="mwebInfo.responseContentEncoding",No.scrh="screenHeight",No.scrw="screenWidth",No.st="serverTimeMs",No.ssdm="shellStartupDurationMs",No.br_trs="tvInfo.bedrockTriggerState",No.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",No.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",No.label="tvInfo.label",
No.is_mdx="tvInfo.isMdx",No.preloaded="tvInfo.isPreloaded",No.upg_player_vis="playerInfo.visibilityState",No.query="unpluggedInfo.query",No.upg_chip_ids_string="unpluggedInfo.upgChipIdsString",No.yt_vst="videoStreamType",No.vph="viewportHeight",No.vpw="viewportWidth",No.yt_vis="isVisible",No.rcl="mwebInfo.responseContentLength",No.GetSettings_rid="requestIds",No.GetTrending_rid="requestIds",No.GetMusicSearchSuggestions_rid="requestIds",No.REQUEST_ID="requestIds",No),vla="isContinuation isNavigation kabukiInfo.earlyBrowseRequestInfo.adopted kabukiInfo.isPrefetch kabukiInfo.isSecondaryNav isMonetized navigationRequestedSameUrl performanceNavigationTiming playerInfo.isPausedOnLoad prerollAllowed isRedSubscriber tvInfo.isMdx tvInfo.isPreloaded isVisible watchInfo.isPlaylist playbackRequiresTap".split(" "),
Oo={},wla=(Oo.ccs="CANARY_STATE_",Oo.mver="MEASUREMENT_VERSION_",Oo.pis="PLAYER_INITIALIZED_STATE_",Oo.yt_pt="LATENCY_PLAYER_",Oo.pa="LATENCY_ACTION_",Oo.yt_vst="VIDEO_STREAM_TYPE_",Oo),xla="all_vc ap aq c cver cbrand cmodel cplatform ctheme ei l_an l_mm plid srt yt_fss yt_li vpst vpni2 vpil2 icrc icrt pa GetAccountOverview_rid GetHistory_rid cmt d_vpct d_vpnfi d_vpni nsru pc pfa pfeh pftr pnc prerender psc rc start tcrt tcrc ssr vpr vps yt_abt yt_fn yt_fs yt_pft yt_pre yt_pt yt_pvis ytu_pvis yt_ref yt_sts tds".split(" ");
function Po(a){return qd("FORCE_CSI_ON_GEL",!1)||N("csi_on_gel")||!!Do(a).useGel}
function yla(a,b,c){var d=Qo(c);d.gelTicks&&(d.gelTicks["tick_"+a]=!0);c||b||Wk();return Po(c)?(Ho(c||"").tick[a]=b||Wk(),d=Fo(c),"_start"===a?(a=Ko(),Lo(a,"baseline_"+d)||wm("latencyActionBaselined",{clientActionNonce:d},{timestamp:b})):Ko().tick(a,d,b),pla(c),!0):!1}
function zla(a,b,c){c=Qo(c);if(c.gelInfos)c.gelInfos["info_"+a]=!0;else{var d={};c.gelInfos=(d["info_"+a]=!0,d)}if(a.match("_rid")){var f=a.split("_rid")[0];a="REQUEST_ID"}if(a in ula){c=ula[a];lb(vla,c)&&(b=!!b);a in wla&&"string"===typeof b&&(b=wla[a]+b.toUpperCase());a=b;b=c.split(".");for(var g=d={},l=0;l<b.length-1;l++){var m=b[l];g[m]={};g=g[m]}g[b[b.length-1]]="requestIds"===c?[{id:a,endpoint:f}]:a;return Bn({},d)}lb(xla,a)||vm(new Ql("Unknown label logged with GEL CSI",a))}
function Qo(a){a=Do(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel}
function Ro(a){a=Qo(a);a.gelInfos||(a.gelInfos={});return a.gelInfos}
function Ala(a){if(Po(a)){var b={actionType:tla[B((a||"")+"TIMING_ACTION",void 0)]||"LATENCY_ACTION_UNKNOWN",previousAction:tla[B("PREVIOUS_ACTION",void 0)]||"LATENCY_ACTION_UNKNOWN"},c=Sn();c&&(b.clientScreenNonce=c);a=Fo(a);Ko().info(b,a)}}
;function Bla(a){ola(a);kla();nla(!1,a);a||(B("TIMING_ACTION")&&pd("PREVIOUS_ACTION",B("TIMING_ACTION")),pd("TIMING_ACTION",""))}
function So(a,b){Ho("").info.actionType=a;b&&pd("TIMING_AFT_KEYS",b);pd("TIMING_ACTION",a);a=B("TIMING_INFO",{});for(var c in a)a.hasOwnProperty(c)&&To(c,a[c]);To("is_nav",1);(c=Sn())&&To("csn",c);(c=B("PREVIOUS_ACTION",void 0))&&!Po()&&To("pa",c);c=Eo();a=B("CLIENT_PROTOCOL");b=B("CLIENT_TRANSPORT");a&&To("p",a);b&&To("t",b);To("yt_vis",Uo());if("cold"===c.yt_lt){To("yt_lt","cold");a=lla();if(b=Bo())Vo("srt",a.responseStart),1!==c.prerender&&Wo("n",b);c=qla();0<c&&Vo("fpt",c);if(!N("log_deltas_killswitch")){var d,
f,g,l;uo&&uo.timing&&(uo.timeOrigin&&uo.timing.navigationStart&&Cla("startTimeDelta",Math.floor(uo.timeOrigin)-uo.timing.navigationStart),(c=null===(l=null===(g=null===(f=null===(d=uo.getEntriesByType)||void 0===d?void 0:d.call(uo,"navigation"))||void 0===f?void 0:f[0])||void 0===g?void 0:g.toJSON)||void 0===l?void 0:l.call(g))&&c.responseEnd&&uo.timing.responseEnd&&Cla("responseEndDelta",Ao(c.responseEnd)-uo.timing.responseEnd))}d=lla();d.isPerformanceNavigationTiming&&To("pnt",1,void 0);Vo("nreqs",
d.requestStart,void 0);Vo("nress",d.responseStart,void 0);Vo("nrese",d.responseEnd,void 0);0<d.redirectEnd-d.redirectStart&&(Vo("nrs",d.redirectStart,void 0),Vo("nre",d.redirectEnd,void 0));0<d.domainLookupEnd-d.domainLookupStart&&(Vo("ndnss",d.domainLookupStart,void 0),Vo("ndnse",d.domainLookupEnd,void 0));0<d.connectEnd-d.connectStart&&(Vo("ntcps",d.connectStart,void 0),Vo("ntcpe",d.connectEnd,void 0));d.secureConnectionStart>=Bo()&&0<d.connectEnd-d.secureConnectionStart&&(Vo("nstcps",d.secureConnectionStart,
void 0),Vo("ntcpe",d.connectEnd,void 0));uo&&uo.getEntriesByType&&Dla();d=[];if(document.querySelector&&uo&&uo.getEntriesByName)for(var m in xo)xo.hasOwnProperty(m)&&(f=xo[m],Ela(m,f)&&d.push(f));d.length&&To("rc",d.join(","))}Ala();m=Eo();f=zo();if("cold"===m.yt_lt&&(d=Qo(),g=d.gelTicks?d.gelTicks:d.gelTicks={},d=d.gelInfos?d.gelInfos:d.gelInfos={},Po())){for(var n in f)"tick_"+n in g||yla(n,f[n]);n=Ro();f=Fo();g={};for(var r in m)"info_"+r in d||!(l=zla(r,m[r]))||(Bn(n,l),Bn(g,l));Ko().info(g,f)}Co(!0);
Xo()}
function Fla(a){Yo(a);sla();Bla();Co(!1);pd("TIMING_AFT_KEYS",[]);To("yt_lt","warm");pd("TIMING_ACTION","");pd("TIMING_WAIT",[]);delete B("TIMING_INFO",{}).yt_lt;Wo(a,void 0)}
function Gla(a,b){Yo("c",a);sla(a);Ho(a||"").info.actionType=a;Bla(a);Do(a).useGel=!0;pd(a+"TIMING_AFT_KEYS",b);pd(a+"TIMING_ACTION",a);Wo("c",void 0,a);Ala(a);Co(!0,a);Xo(a)}
function Wo(a,b,c){To("yt_sts",a,c);Vo("_start",b,c)}
function To(a,b,c){null!==b&&(Eo(c)[a]=b,Po(c)?(a=zla(a,b,c))&&Po(c)&&(b=Ho(c||""),Bn(b.info,a),Bn(Ro(c),a),c=Fo(c),Ko().info(a,c)):Ho(c||"").info[a]=b)}
function Vo(a,b,c){var d=zo(c);if(N("use_first_tick")&&Zo(a,c))return d[a];b||"_"===a[0]||Hla(a,c);var f=b||Wk();d[a]=f;yla(a,b,c)||(Xo(c),Ho(c||"").tick[a]=b||Wk());return d[a]}
function Cla(a,b){if(Po(void 0)){var c=Qo(void 0);if(c.gelSpans)c.gelSpans[a]=!0;else{var d={};c.gelSpans=(d[a]=!0,d)}a={spanName:a,spanLengthUsec:String(Math.round(1E3*b))};Ho("").span[String(a.spanName)]=a;b=Qo(void 0);b.gelSpans||(b.gelSpans={});Bn(b.gelSpans,a);b=Fo(void 0);Ko().span(a,b)}}
function $o(a){var b=B("TIMING_WAIT");b&&a in b||((b=B("TIMING_WAIT",void 0))?b.push(a):pd("TIMING_WAIT",[a]))}
function Hla(a,b){uo.mark&&(Lb(a,"mark_")||(a="mark_"+a),b&&(a+=" ("+b+")"),uo.mark(a))}
function Ila(a){var b=Eo(void 0),c=Ro(void 0);return!!(a in b||a in c)}
function Zo(a,b){b=zo(b);return a in b}
function ap(a,b,c){Zo(a,c)||Vo(a,b,c)}
function Xo(a){if(!mla(a)){var b=B((a||"")+"TIMING_ACTION",void 0),c=zo(a);if(Ja("ytglobal.timing"+(a||"")+"ready_")&&b&&Zo("_start")&&yo(a))if(pla(a),a)bp(a);else{b=!0;var d=B("TIMING_WAIT",[]);if(d.length)for(var f=0,g=d.length;f<g;++f)if(!(d[f]in c)){b=!1;break}b&&bp(a)}}}
function Uo(){switch(ik()){case"hidden":return 0;case"visible":return 1;case"prerender":return 2;case"unloaded":return 3;default:return-1;}}
function bp(a){if(!Po(a)){var b=zo(a),c=Eo(a),d=b._start,f=B("CSI_SERVICE_NAME","youtube"),g={v:2,s:f,action:B((a||"")+"TIMING_ACTION",void 0)},l=c.srt;void 0!==b.srt&&delete c.srt;b.aft=yo(a);var m=zo(a),n=m.pbr,r=m.vc;m=m.pbs;n&&r&&m&&n<r&&r<m&&Eo(a).yt_pvis&&"youtube"===f&&(To("yt_lt","hot_bg",a),f=b.vc,n=b.pbs,delete b.aft,c.aft=Math.round(n-f));for(var v in c)"_"!==v.charAt(0)&&(g[v]=c[v]);b.ps=Wk();v={};f=[];for(var z in b)"_"!==z.charAt(0)&&(n=Math.round(b[z]-d),v[z]=n,f.push(z+"."+n));g.rt=
f.join(",");b=!!c.ap;N("debug_csi_data")&&(c=Ja("yt.timing.csiData"),c||(c=[],Fa("yt.timing.csiData",c,void 0)),c.push({page:location.href,time:new Date,args:g}));c="";for(var C in g)g.hasOwnProperty(C)&&(c+="&"+C+"="+g[C]);g="/csi_204?"+c.substring(1);if(window.navigator&&window.navigator.sendBeacon&&(b||N("always_send_csi_204_with_beacon"))){var J=void 0===J?"":J;yka(g,J)||Wn(g,void 0,void 0,void 0,J)}else Wn(g);nla(!0,a);Gl(hla,new so(v.aft+(Number(l)||0),a))}}
function Yo(a,b){if(Po(b))Zo("_start",b)&&Vo("aa",void 0,b);else if(!mla(b)){var c=B("CSI_SERVICE_NAME","youtube");B((b||"")+"TIMING_ACTION",void 0)&&c&&(Vo("aa",void 0,b),To("ap",1,b),To("yt_fss",a,b),bp(b))}}
function Ela(a,b){a=document.querySelector(a);if(!a)return!1;var c="",d=a.nodeName;"SCRIPT"===d?(c=a.src,c||(c=a.getAttribute("data-timing-href"))&&(c=window.location.protocol+c)):"LINK"===d&&(c=a.href);Ha()&&a.setAttribute("nonce",Ha());return c?(a=uo.getEntriesByName(c))&&a[0]&&(a=a[0],c=Bo(),Vo("rsf_"+b,c+Math.round(a.fetchStart)),Vo("rse_"+b,c+Math.round(a.responseEnd)),void 0!==a.transferSize&&(Ila("rc")||To("rc",""),0===a.transferSize))?!0:!1:!1}
function Dla(){var a=window.location.protocol,b=uo.getEntriesByType("resource");b=db(b,function(c){return 0===c.name.indexOf(a+"//fonts.gstatic.com/s/")});
(b=fb(b,function(c,d){return d.duration>c.duration?d:c},{duration:0}))&&0<b.startTime&&0<b.responseEnd&&(Vo("wffs",Ao(b.startTime)),Vo("wffe",Ao(b.responseEnd)))}
var cp=window;cp.ytcsi&&(cp.ytcsi.info=To,cp.ytcsi.tick=Vo);var dp=function(){var a=window.Polymer;this.elapsedRegistrationTime_=0;this.flushCallback_=null;this.signals_=Yn.getInstance();this.components_=eo.getInstance();this.rawPolymer_=a;this.polymerWrapper_=this.applyNaiveRegistration_;N("kevlar_enable_slis")&&(this.sliFields_=co(),Qja().recordStart(this.sliFields_),fka().recordStart(this.sliFields_),mka().recordStart(this.sliFields_),qka().recordStart(this.sliFields_),lga(function(){mka().recordEnd("FAILURE");qka().recordEnd("FAILURE")}));
Jla(this)};
dp.prototype.applyNaiveRegistration_=function(a){a:{if(N("kevlar_enable_slis")&&N("kevlar_enable_component_registration_sli")){var b=new Tja;b.recordStart(this.sliFields_);try{var c=Kla(this,a);b.recordEnd("SUCCESS");var d=c;break a}catch(f){sd(f),b.recordEnd("FAILURE")}}else try{d=Kla(this,a);break a}catch(f){sd(f)}d=void 0}"ytd-app"===a.is&&(this.flushCallback_&&(this.flushCallback_(),this.flushCallback_=null),To("tcrc",this.components_.componentConstructors_.size),To("tcrt",this.elapsedRegistrationTime_),
Vo("cr_c"),this.signals_.processSignal("eor"));return d};
var Kla=function(a,b){ap("cr_s");var c=b.is,d=sk();b=a.rawPolymer_(b);d=sk()-d;a.elapsedRegistrationTime_+=d;a.components_.componentConstructors_.set(c,b);a.signals_.processSignal(c);return b};
dp.prototype.startPreconstruction_=function(){oo.getInstance().init(qd("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
var Jla=function(a){Lla(a);window.Polymer&&mca&&Bka();window.customElements&&window.customElements.polyfillWrapFlushCallback&&window.customElements.polyfillWrapFlushCallback(function(b){$n(Yn.getInstance(),"eor")?b():a.flushCallback_=b});
window.Polymer=function(b){return a.polymerWrapper_(b)};
Object.assign(window.Polymer,a.rawPolymer_);a.signals_.parkOrScheduleJob(a.startPreconstruction_,10,"eor");Mla(a)},Lla=function(a){var b=function(){a.signals_.processSignal("dl")};
"complete"===document.readyState?(td(Error("AppInitializer encountered loaded document"),"WARNING"),b()):rk(window,"load",b)},Mla=function(a){var b=t.ytcsi;
if(b&&b.gt&&(b=b.gt())&&b.tick&&(0<b.tick.aft||0<b.tick.pbs)&&(qd("IS_HOMEPAGE_COLD")||qd("IS_RESULTS_PAGE_COLD")||qd("IS_WATCH_PAGE_COLD"))){Nla(a);return}Wha(gla,a.onNotifications_,a)};
dp.prototype.onNotifications_=function(a){a.timer||(qd("IS_HOMEPAGE_COLD")||qd("IS_RESULTS_PAGE_COLD")||qd("IS_WATCH_PAGE_COLD"))&&Nla(this)};
var Nla=function(a){a.signals_.parkOrScheduleJob(function(){a.signals_.processSignal("eocs")},10,"eor")};
"function"===typeof window.Polymer?new dp:window.onLegacyPolymerFunctionDefinedCallback=function(){new dp};var ep=function(a){hf(this,a,0,-1,null,null)};
w(ep,G);ep.prototype.toObject=function(a){return Ola(a,this)};
var Ola=function(a,b){var c={gmailDelegatorId:L(b,1)};a&&(c.$jspbMessageInstance=b);return c};
ep.prototype.serializeBinary=function(){var a=new D;Pla(this,a);return F(a)};
var Pla=function(a,b){a=L(a,1);0<a.length&&b.writeString(1,a)};
ep.prototype.setGmailDelegatorId=function(a){return Jf(this,1,a)};var fp=function(a){hf(this,a,0,-1,null,null)};
w(fp,G);fp.prototype.toObject=function(a){return Qla(a,this)};
var Qla=function(a,b){var c,d={origin:L(b,1),instanceId:L(b,2),widgetType:qf(b,3,0),containerType:qf(b,4,0),iframeLoadStartTime:(c=M(b,Kh,5))&&Lh(a,c),gapiLoadStartTimestamp:(c=M(b,Kh,6))&&Lh(a,c),gapiLoadEndTimestamp:(c=M(b,Kh,7))&&Lh(a,c)};a&&(d.$jspbMessageInstance=b);return d};
fp.prototype.serializeBinary=function(){var a=new D;Rla(this,a);return F(a)};
var Rla=function(a,b){var c=a.getOrigin();0<c.length&&b.writeString(1,c);c=L(a,2);0<c.length&&b.writeString(2,c);c=qf(a,3,0);0!==c&&b.writeEnum(3,c);c=qf(a,4,0);0!==c&&b.writeEnum(4,c);c=M(a,Kh,5);null!=c&&b.writeMessage(5,c,Mh);c=M(a,Kh,6);null!=c&&b.writeMessage(6,c,Mh);c=M(a,Kh,7);null!=c&&b.writeMessage(7,c,Mh)};
e=fp.prototype;e.getOrigin=function(){return L(this,1)};
e.setOrigin=function(a){return Jf(this,1,a)};
e.setInstanceId=function(a){return Jf(this,2,a)};
e.setContainerType=function(a){return Kf(this,4,a)};
e.setIframeLoadStartTime=function(a){return yf(this,5,a)};
e.clearIframeLoadStartTime=function(){return zf(this,5)};
e.hasIframeLoadStartTime=function(){return K(this,5)};
e.setGapiLoadStartTimestamp=function(a){return yf(this,6,a)};
e.clearGapiLoadStartTimestamp=function(){return zf(this,6)};
e.hasGapiLoadStartTimestamp=function(){return K(this,6)};
e.setGapiLoadEndTimestamp=function(a){return yf(this,7,a)};
e.clearGapiLoadEndTimestamp=function(){return zf(this,7)};
e.hasGapiLoadEndTimestamp=function(){return K(this,7)};var gp=function(a){hf(this,a,0,-1,null,null)};
w(gp,G);gp.prototype.toObject=function(a){return Sla(a,this)};
var Sla=function(a,b){var c={authUser:rf(b,1),email:L(b,2),gaiaId:L(b,3)};a&&(c.$jspbMessageInstance=b);return c};
gp.prototype.serializeBinary=function(){var a=new D;Tla(this,a);return F(a)};
var Tla=function(a,b){var c=a.getAuthUser();0!==c&&b.writeUint32(1,c);c=a.getEmail();0<c.length&&b.writeString(2,c);c=a.getGaiaId();0<c.length&&b.writeString(3,c)};
e=gp.prototype;e.getAuthUser=function(){return rf(this,1)};
e.setAuthUser=function(a){return Hf(this,1,a)};
e.getEmail=function(){return L(this,2)};
e.setEmail=function(a){return Jf(this,2,a)};
e.getGaiaId=function(){return L(this,3)};
e.setGaiaId=function(a){return Jf(this,3,a)};var hp=function(a){hf(this,a,0,-1,null,null)};
w(hp,G);hp.prototype.toObject=function(a){return Ula(a,this)};
var Ula=function(a,b){var c={top:tf(b,1),right:tf(b,2),bottom:tf(b,3),left:tf(b,4)};a&&(c.$jspbMessageInstance=b);return c};
hp.prototype.serializeBinary=function(){var a=new D;Vla(this,a);return F(a)};
var Vla=function(a,b){var c=tf(a,1);0!==c&&b.writeFloat(1,c);c=tf(a,2);0!==c&&b.writeFloat(2,c);c=tf(a,3);0!==c&&b.writeFloat(3,c);c=tf(a,4);0!==c&&b.writeFloat(4,c)};
hp.prototype.setTop=function(a){return Gf(this,1,a,0)};
hp.prototype.setRight=function(a){return Gf(this,2,a,0)};
hp.prototype.setBottom=function(a){return Gf(this,3,a,0)};
hp.prototype.setLeft=function(a){return Gf(this,4,a,0)};var ip=function(a){hf(this,a,0,-1,null,null)};
w(ip,G);ip.prototype.toObject=function(a){return Wla(a,this)};
var Wla=function(a,b){var c,d={contentPadding:(c=M(b,hp,1))&&Ula(a,c),gridElementHeight:tf(b,2)};a&&(d.$jspbMessageInstance=b);return d};
ip.prototype.serializeBinary=function(){var a=new D;Xla(this,a);return F(a)};
var Xla=function(a,b){var c=M(a,hp,1);null!=c&&b.writeMessage(1,c,Vla);c=tf(a,2);0!==c&&b.writeFloat(2,c)};
ip.prototype.setContentPadding=function(a){return yf(this,1,a)};
ip.prototype.clearContentPadding=function(){return zf(this,1)};
ip.prototype.hasContentPadding=function(){return K(this,1)};
ip.prototype.setGridElementHeight=function(a){return Gf(this,2,a,0)};var jp=function(a){hf(this,a,0,-1,null,null)};
w(jp,G);jp.prototype.toObject=function(a){return Yla(a,this)};
var Yla=function(a,b){var c,d={chromeMode:qf(b,1,0),modeSettings:(c=M(b,ip,4))&&Wla(a,c),deprecatedWidgetType:qf(b,2,0),deprecatedContainerType:qf(b,3,0)};a&&(d.$jspbMessageInstance=b);return d};
jp.prototype.serializeBinary=function(){var a=new D;Zla(this,a);return F(a)};
var Zla=function(a,b){var c=qf(a,1,0);0!==c&&b.writeEnum(1,c);c=M(a,ip,4);null!=c&&b.writeMessage(4,c,Xla);c=qf(a,2,0);0!==c&&b.writeEnum(2,c);c=qf(a,3,0);0!==c&&b.writeEnum(3,c)};
e=jp.prototype;e.setChromeMode=function(a){return Kf(this,1,a)};
e.setModeSettings=function(a){return yf(this,4,a)};
e.clearModeSettings=function(){return zf(this,4)};
e.hasModeSettings=function(){return K(this,4)};
e.setDeprecatedWidgetType=function(a){return Kf(this,2,a)};
e.setDeprecatedContainerType=function(a){return Kf(this,3,a)};var kp=function(a){hf(this,a,0,-1,null,null)};
w(kp,G);kp.prototype.toObject=function(a){return $la(a,this)};
var $la=function(a,b){var c={jsDebug:L(b,1),forceDisableDriveIvdp:sf(b,2),enableLiveImpressions:sf(b,3)};a&&(c.$jspbMessageInstance=b);return c};
kp.prototype.serializeBinary=function(){var a=new D;ama(this,a);return F(a)};
var ama=function(a,b){var c=L(a,1);0<c.length&&b.writeString(1,c);(c=sf(a,2))&&b.writeBool(2,c);(c=sf(a,3))&&b.writeBool(3,c)};
kp.prototype.setJsDebug=function(a){return Jf(this,1,a)};
kp.prototype.setForceDisableDriveIvdp=function(a){return If(this,2,a)};
kp.prototype.setEnableLiveImpressions=function(a){return If(this,3,a)};var lp=function(a){hf(this,a,0,-1,null,null)};
w(lp,G);lp.prototype.toObject=function(a){return bma(a,this)};
var bma=function(a,b){var c={index:rf(b,1)};a&&(c.$jspbMessageInstance=b);return c};
lp.prototype.serializeBinary=function(){var a=new D;cma(this,a);return F(a)};
var cma=function(a,b){a=a.getIndex();0!==a&&b.writeUint32(1,a)};
lp.prototype.getIndex=function(){return rf(this,1)};
lp.prototype.setIndex=function(a){return Hf(this,1,a)};var mp=function(a){hf(this,a,0,-1,null,null)};
w(mp,G);mp.prototype.toObject=function(a){return np(a,this)};
var np=function(a,b){var c={id:L(b,1),sourceId:qf(b,2,0)};a&&(c.$jspbMessageInstance=b);return c};
mp.prototype.serializeBinary=function(){var a=new D;op(this,a);return F(a)};
var op=function(a,b){var c=a.getId();0<c.length&&b.writeString(1,c);c=a.getSourceId();0!==c&&b.writeEnum(2,c)};
mp.prototype.getId=function(){return L(this,1)};
mp.prototype.setId=function(a){return Jf(this,1,a)};
mp.prototype.getSourceId=function(){return qf(this,2,0)};
mp.prototype.setSourceId=function(a){return Kf(this,2,a)};var pp=function(a){hf(this,a,0,-1,null,null)};
w(pp,G);pp.prototype.toObject=function(a){return qp(a,this)};
var qp=function(a,b){var c={url:L(b,1),height:rf(b,2),width:rf(b,3),rotation:rf(b,4)};a&&(c.$jspbMessageInstance=b);return c};
pp.prototype.serializeBinary=function(){var a=new D;rp(this,a);return F(a)};
var rp=function(a,b){var c=a.getUrl();0<c.length&&b.writeString(1,c);c=a.getHeight();0!==c&&b.writeInt32(2,c);c=a.getWidth();0!==c&&b.writeInt32(3,c);c=rf(a,4);0!==c&&b.writeUint32(4,c)};
e=pp.prototype;e.getUrl=function(){return L(this,1)};
e.setUrl=function(a){return Jf(this,1,a)};
e.getHeight=function(){return rf(this,2)};
e.setHeight=function(a){return Hf(this,2,a)};
e.getWidth=function(){return rf(this,3)};
e.setWidth=function(a){return Hf(this,3,a)};
e.setRotation=function(a){return Hf(this,4,a)};var sp=function(a){hf(this,a,0,-1,null,null)};
w(sp,G);sp.prototype.toObject=function(a){return tp(a,this)};
var tp=function(a,b){var c={seconds:rf(b,1),nanos:rf(b,2)};a&&(c.$jspbMessageInstance=b);return c};
sp.prototype.serializeBinary=function(){var a=new D;up(this,a);return F(a)};
var up=function(a,b){var c=a.getSeconds();0!==c&&b.writeInt64(1,c);c=rf(a,2);0!==c&&b.writeInt32(2,c)};
sp.prototype.getSeconds=function(){return rf(this,1)};
sp.prototype.setSeconds=function(a){return Hf(this,1,a)};
sp.prototype.getNanos=function(){return rf(this,2)};
sp.prototype.setNanos=function(a){Hf(this,2,a)};var vp=function(a){hf(this,a,0,-1,null,null)};
w(vp,G);vp.prototype.toObject=function(a){return wp(a,this)};
var wp=function(a,b){var c,d={aspectRatio:tf(b,1),duration:(c=b.getDuration())&&tp(a,c)};a&&(d.$jspbMessageInstance=b);return d};
vp.prototype.serializeBinary=function(){var a=new D;xp(this,a);return F(a)};
var xp=function(a,b){var c=tf(a,1);0!==c&&b.writeDouble(1,c);c=a.getDuration();null!=c&&b.writeMessage(2,c,up)};
e=vp.prototype;e.setAspectRatio=function(a){return Gf(this,1,a,0)};
e.getDuration=function(){return M(this,sp,2)};
e.setDuration=function(a){yf(this,2,a)};
e.clearDuration=function(){return zf(this,2)};
e.hasDuration=function(){return K(this,2)};var yp=function(a){hf(this,a,0,-1,null,null)};
w(yp,G);yp.prototype.toObject=function(a){return dma(a,this)};
var dma=function(a,b){var c,d={email:L(b,1),name:L(b,2),displayName:L(b,3),templateProfilePhotoUrl:L(b,4),profilePhoto:(c=M(b,pp,5))&&qp(a,c)};a&&(d.$jspbMessageInstance=b);return d};
yp.prototype.serializeBinary=function(){var a=new D;ema(this,a);return F(a)};
var ema=function(a,b){var c=a.getEmail();0<c.length&&b.writeString(1,c);c=a.getName();0<c.length&&b.writeString(2,c);c=a.getDisplayName();0<c.length&&b.writeString(3,c);c=L(a,4);0<c.length&&b.writeString(4,c);c=M(a,pp,5);null!=c&&b.writeMessage(5,c,rp)};
e=yp.prototype;e.getEmail=function(){return L(this,1)};
e.setEmail=function(a){return Jf(this,1,a)};
e.getName=function(){return L(this,2)};
e.setName=function(a){return Jf(this,2,a)};
e.getDisplayName=function(){return L(this,3)};
e.setDisplayName=function(a){return Jf(this,3,a)};
e.setTemplateProfilePhotoUrl=function(a){return Jf(this,4,a)};
e.setProfilePhoto=function(a){return yf(this,5,a)};
e.clearProfilePhoto=function(){return zf(this,5)};
e.hasProfilePhoto=function(){return K(this,5)};var zp=function(a){hf(this,a,0,-1,null,null)};
w(zp,G);zp.prototype.toObject=function(a){return fma(a,this)};
var fma=function(a,b){var c,d={accessRole:qf(b,1,0),backgroundColor:L(b,2),foregroundColor:L(b,3),hidden:sf(b,4),selected:sf(b,5),profileMetadata:(c=M(b,yp,6))&&dma(a,c)};a&&(d.$jspbMessageInstance=b);return d};
zp.prototype.serializeBinary=function(){var a=new D;gma(this,a);return F(a)};
var gma=function(a,b){var c=qf(a,1,0);0!==c&&b.writeEnum(1,c);c=L(a,2);0<c.length&&b.writeString(2,c);c=L(a,3);0<c.length&&b.writeString(3,c);(c=sf(a,4))&&b.writeBool(4,c);(c=sf(a,5))&&b.writeBool(5,c);c=M(a,yp,6);null!=c&&b.writeMessage(6,c,ema)};
e=zp.prototype;e.setAccessRole=function(a){return Kf(this,1,a)};
e.setBackgroundColor=function(a){return Jf(this,2,a)};
e.setForegroundColor=function(a){return Jf(this,3,a)};
e.setHidden=function(a){return If(this,4,a)};
e.setSelected=function(a){return If(this,5,a)};
e.setProfileMetadata=function(a){return yf(this,6,a)};
e.clearProfileMetadata=function(){return zf(this,6)};
e.hasProfileMetadata=function(){return K(this,6)};var Ap=function(a){hf(this,a,0,-1,null,null)};
w(Ap,G);Ap.prototype.toObject=function(a){return hma(a,this)};
var hma=function(a,b){var c={rawBytes:of(L(b,1))};a&&(c.$jspbMessageInstance=b);return c};
Ap.prototype.serializeBinary=function(){var a=new D;ima(this,a);return F(a)};
var ima=function(a,b){a=pf(L(a,1));0<a.length&&b.writeBytes(1,a)};
Ap.prototype.setRawBytes=function(a){return Gf(this,1,a,"")};var Bp=function(a){hf(this,a,0,-1,jma,null)};
w(Bp,G);var jma=[1,2];Bp.prototype.toObject=function(a){return kma(a,this)};
var kma=function(a,b){var c,d={emailList:null==(c=I(b,1))?void 0:c,groupIdList:null==(c=I(b,2))?void 0:c};a&&(d.$jspbMessageInstance=b);return d};
Bp.prototype.serializeBinary=function(){var a=new D;lma(this,a);return F(a)};
var lma=function(a,b){var c=I(a,1);0<c.length&&Ve(b,1,c);c=I(a,2);0<c.length&&Ve(b,2,c)};
e=Bp.prototype;e.setEmailList=function(a){return uf(this,1,a||[])};
e.clearEmailList=function(){return xf(this,1)};
e.setGroupIdList=function(a){return uf(this,2,a||[])};
e.addGroupId=function(a,b){return Lf(this,2,a,b)};
e.clearGroupIdList=function(){return xf(this,2)};var Cp=function(a){hf(this,a,0,-1,null,null)};
w(Cp,G);Cp.prototype.toObject=function(a){return mma(a,this)};
var mma=function(a,b){var c={category:qf(b,1,0),categoryLabel:L(b,2)};a&&(c.$jspbMessageInstance=b);return c};
Cp.prototype.serializeBinary=function(){var a=new D;nma(this,a);return F(a)};
var nma=function(a,b){var c=a.getCategory();0!==c&&b.writeEnum(1,c);c=L(a,2);0<c.length&&b.writeString(2,c)};
Cp.prototype.getCategory=function(){return qf(this,1,0)};
Cp.prototype.setCategory=function(a){Kf(this,1,a)};
Cp.prototype.setCategoryLabel=function(a){return Jf(this,2,a)};var Dp=function(a){hf(this,a,0,-1,null,null)};
w(Dp,G);Dp.prototype.toObject=function(a){return oma(a,this)};
var oma=function(a,b){var c,d={totalItems:rf(b,1),startTimestamp:(c=M(b,Kh,2))&&Lh(a,c),endTimestamp:(c=M(b,Kh,3))&&Lh(a,c)};a&&(d.$jspbMessageInstance=b);return d};
Dp.prototype.serializeBinary=function(){var a=new D;pma(this,a);return F(a)};
var pma=function(a,b){var c=rf(a,1);0!==c&&b.writeUint32(1,c);c=M(a,Kh,2);null!=c&&b.writeMessage(2,c,Mh);c=M(a,Kh,3);null!=c&&b.writeMessage(3,c,Mh)};
e=Dp.prototype;e.setTotalItems=function(a){return Hf(this,1,a)};
e.setStartTimestamp=function(a){return yf(this,2,a)};
e.clearStartTimestamp=function(){return zf(this,2)};
e.hasStartTimestamp=function(){return K(this,2)};
e.setEndTimestamp=function(a){return yf(this,3,a)};
e.clearEndTimestamp=function(){return zf(this,3)};
e.hasEndTimestamp=function(){return K(this,3)};var Ep=function(a){hf(this,a,0,-1,null,null)};
w(Ep,G);Ep.prototype.toObject=function(a){return qma(a,this)};
var qma=function(a,b){var c,d={albumMetadata:(c=M(b,Dp,1))&&oma(a,c),dedupKey:L(b,2)};a&&(d.$jspbMessageInstance=b);return d};
Ep.prototype.serializeBinary=function(){var a=new D;rma(this,a);return F(a)};
var rma=function(a,b){var c=M(a,Dp,1);null!=c&&b.writeMessage(1,c,pma);c=L(a,2);0<c.length&&b.writeString(2,c)};
Ep.prototype.setAlbumMetadata=function(a){return yf(this,1,a)};
Ep.prototype.clearAlbumMetadata=function(){return zf(this,1)};
Ep.prototype.hasAlbumMetadata=function(){return K(this,1)};
Ep.prototype.setDedupKey=function(a){return Jf(this,2,a)};var Fp=function(a){hf(this,a,0,-1,null,null)};
w(Fp,G);Fp.prototype.toObject=function(a){return sma(a,this)};
var sma=function(a,b){var c={dataUrl:L(b,1)};a&&(c.$jspbMessageInstance=b);return c};
Fp.prototype.serializeBinary=function(){var a=new D;tma(this,a);return F(a)};
var tma=function(a,b){a=L(a,1);0<a.length&&b.writeString(1,a)};
Fp.prototype.setDataUrl=function(a){return Jf(this,1,a)};var Gp=function(a){hf(this,a,0,-1,null,null)};
w(Gp,G);Gp.prototype.toObject=function(a){return uma(a,this)};
var uma=function(a,b){var c={category:L(b,1)};a&&(c.$jspbMessageInstance=b);return c};
Gp.prototype.serializeBinary=function(){var a=new D;vma(this,a);return F(a)};
var vma=function(a,b){a=a.getCategory();0<a.length&&b.writeString(1,a)};
Gp.prototype.getCategory=function(){return L(this,1)};
Gp.prototype.setCategory=function(a){Jf(this,1,a)};var Hp=function(a){hf(this,a,0,-1,null,null)};
w(Hp,G);Hp.prototype.toObject=function(a){return Ip(a,this)};
var Ip=function(a,b){var c={width:rf(b,1),height:rf(b,2)};a&&(c.$jspbMessageInstance=b);return c};
Hp.prototype.serializeBinary=function(){var a=new D;Jp(this,a);return F(a)};
var Jp=function(a,b){var c=a.getWidth();0!==c&&b.writeUint32(1,c);c=a.getHeight();0!==c&&b.writeUint32(2,c)};
Hp.prototype.getWidth=function(){return rf(this,1)};
Hp.prototype.setWidth=function(a){return Hf(this,1,a)};
Hp.prototype.getHeight=function(){return rf(this,2)};
Hp.prototype.setHeight=function(a){return Hf(this,2,a)};var Kp=function(a){hf(this,a,0,-1,null,null)};
w(Kp,G);Kp.prototype.toObject=function(a){return wma(a,this)};
var wma=function(a,b){var c,d={imageSize:(c=M(b,Hp,1))&&Ip(a,c)};a&&(d.$jspbMessageInstance=b);return d};
Kp.prototype.serializeBinary=function(){var a=new D;xma(this,a);return F(a)};
var xma=function(a,b){a=M(a,Hp,1);null!=a&&b.writeMessage(1,a,Jp)};
Kp.prototype.setImageSize=function(a){return yf(this,1,a)};
Kp.prototype.clearImageSize=function(){return zf(this,1)};
Kp.prototype.hasImageSize=function(){return K(this,1)};var Lp=function(a){hf(this,a,0,-1,null,null)};
w(Lp,G);Lp.prototype.toObject=function(a){return yma(a,this)};
var yma=function(a,b){var c,d={originalImage:(c=M(b,pp,1))&&qp(a,c),referrerUrl:L(b,2)};a&&(d.$jspbMessageInstance=b);return d};
Lp.prototype.serializeBinary=function(){var a=new D;zma(this,a);return F(a)};
var zma=function(a,b){var c=M(a,pp,1);null!=c&&b.writeMessage(1,c,rp);c=L(a,2);0<c.length&&b.writeString(2,c)};
Lp.prototype.setOriginalImage=function(a){return yf(this,1,a)};
Lp.prototype.clearOriginalImage=function(){return zf(this,1)};
Lp.prototype.hasOriginalImage=function(){return K(this,1)};
Lp.prototype.setReferrerUrl=function(a){return Jf(this,2,a)};var Mp=function(a){hf(this,a,0,-1,null,null)};
w(Mp,G);Mp.prototype.toObject=function(a){return Ama(a,this)};
var Ama=function(a,b){var c,d={videoMetadata:(c=b.getVideoMetadata())&&wp(a,c),channelName:L(b,2),channelId:L(b,3),viewCount:rf(b,4)};a&&(d.$jspbMessageInstance=b);return d};
Mp.prototype.serializeBinary=function(){var a=new D;Bma(this,a);return F(a)};
var Bma=function(a,b){var c=a.getVideoMetadata();null!=c&&b.writeMessage(1,c,xp);c=L(a,2);0<c.length&&b.writeString(2,c);c=L(a,3);0<c.length&&b.writeString(3,c);c=rf(a,4);0!==c&&b.writeUint64(4,c)};
e=Mp.prototype;e.getVideoMetadata=function(){return M(this,vp,1)};
e.setVideoMetadata=function(a){return yf(this,1,a)};
e.clearVideoMetadata=function(){return zf(this,1)};
e.hasVideoMetadata=function(){return K(this,1)};
e.setChannelName=function(a){return Jf(this,2,a)};
e.setChannelId=function(a){return Jf(this,3,a)};
e.setViewCount=function(a){return Hf(this,4,a)};var Np=function(a){hf(this,a,0,-1,null,null)};
w(Np,G);Np.prototype.toObject=function(a){return Cma(a,this)};
var Cma=function(a,b){var c,d={youtubeVideoMetadata:(c=M(b,Mp,1))&&Ama(a,c)};a&&(d.$jspbMessageInstance=b);return d};
Np.prototype.serializeBinary=function(){var a=new D;Dma(this,a);return F(a)};
var Dma=function(a,b){a=M(a,Mp,1);null!=a&&b.writeMessage(1,a,Bma)};
Np.prototype.setYoutubeVideoMetadata=function(a){return yf(this,1,a)};
Np.prototype.clearYoutubeVideoMetadata=function(){return zf(this,1)};
Np.prototype.hasYoutubeVideoMetadata=function(){return K(this,1)};var Op=function(a){hf(this,a,0,-1,null,null)};
w(Op,G);var Qp=function(a){hf(this,a,0,-1,Ema,null)};
w(Qp,G);var Rp=function(a){hf(this,a,0,-1,null,null)};
w(Rp,G);Op.prototype.toObject=function(a){return Fma(a,this)};
var Fma=function(a,b){var c,d={shared:sf(b,1),hasPrimarySyncParent:sf(b,2),videoMetadata:(c=b.getVideoMetadata())&&wp(a,c),recencyTimestamp:(c=M(b,Kh,4))&&Lh(a,c),recencyReason:rf(b,5),sharedDriveId:L(b,6),hasOwnPermissions:sf(b,7),shortcutDetails:(c=M(b,Rp,8))&&Gma(a,c),copyable:sf(b,9),downloadUrl:L(b,10),resourceKey:L(b,11),isRecentUpload:sf(b,12)};a&&(d.$jspbMessageInstance=b);return d};
Op.prototype.serializeBinary=function(){var a=new D;Hma(this,a);return F(a)};
var Hma=function(a,b){var c;(c=sf(a,1))&&b.writeBool(1,c);(c=sf(a,2))&&b.writeBool(2,c);c=a.getVideoMetadata();null!=c&&b.writeMessage(3,c,xp);c=M(a,Kh,4);null!=c&&b.writeMessage(4,c,Mh);c=rf(a,5);0!==c&&b.writeInt64(5,c);c=L(a,6);0<c.length&&b.writeString(6,c);(c=sf(a,7))&&b.writeBool(7,c);c=M(a,Rp,8);null!=c&&b.writeMessage(8,c,Ima);(c=sf(a,9))&&b.writeBool(9,c);c=L(a,10);0<c.length&&b.writeString(10,c);c=L(a,11);0<c.length&&b.writeString(11,c);(c=sf(a,12))&&b.writeBool(12,c)};
e=Op.prototype;e.setShared=function(a){return If(this,1,a)};
e.setHasPrimarySyncParent=function(a){return If(this,2,a)};
e.getVideoMetadata=function(){return M(this,vp,3)};
e.setVideoMetadata=function(a){return yf(this,3,a)};
e.clearVideoMetadata=function(){return zf(this,3)};
e.hasVideoMetadata=function(){return K(this,3)};
e.setRecencyTimestamp=function(a){return yf(this,4,a)};
e.clearRecencyTimestamp=function(){return zf(this,4)};
e.hasRecencyTimestamp=function(){return K(this,4)};
e.setRecencyReason=function(a){return Hf(this,5,a)};
e.setSharedDriveId=function(a){return Jf(this,6,a)};
e.setHasOwnPermissions=function(a){return If(this,7,a)};
e.setShortcutDetails=function(a){return yf(this,8,a)};
e.clearShortcutDetails=function(){return zf(this,8)};
e.hasShortcutDetails=function(){return K(this,8)};
e.setCopyable=function(a){return If(this,9,a)};
e.setDownloadUrl=function(a){return Jf(this,10,a)};
e.setResourceKey=function(a){return Jf(this,11,a)};
e.setIsRecentUpload=function(a){return If(this,12,a)};
var Ema=[5,10,22];Qp.prototype.toObject=function(a){return Sp(a,this)};
var Sp=function(a,b){var c,d={id:(c=b.getId())&&np(a,c),name:L(b,2),description:L(b,3),parentId:L(b,4),allParentIdList:null==(c=I(b,5))?void 0:c,type:qf(b,6,0),mimeType:L(b,7),url:L(b,8),templateThumbUrl:L(b,9),iconUrl:L(b,11),embedUrl:L(b,13),previewUrl:L(b,20),thumbnailList:jf(Tp(b),qp,a),internalThumbnailList:jf(Mf(b,pp,22),qp,a),lastModifiedTimestamp:(c=M(b,Kh,12))&&Lh(a,c),creationTimestampMs:(c=M(b,Kh,16))&&Lh(a,c),calendarMetadata:(c=M(b,zp,14))&&fma(a,c),webMetadata:(c=M(b,Lp,15))&&yma(a,
c),photosMetadata:(c=M(b,Ep,18))&&qma(a,c),themesMetadata:(c=M(b,Gp,19))&&uma(a,c),driveMetadata:(c=M(b,Op,21))&&Fma(a,c),youtubeMetadata:(c=M(b,Np,24))&&Cma(a,c),cameraMetadata:(c=M(b,Ap,26))&&hma(a,c),contactsMetadata:(c=M(b,Bp,27))&&kma(a,c),partyMetadata:(c=M(b,Cp,28))&&mma(a,c),urlMetadata:(c=M(b,Kp,29))&&wma(a,c),uploadMetadata:(c=M(b,Fp,30))&&sma(a,c),bucketId:L(b,17),sizeBytes:rf(b,23),itemDiagnosticsInfo:(c=M(b,lp,25))&&bma(a,c),isAttachment:sf(b,31)};a&&(d.$jspbMessageInstance=b);return d};
Qp.prototype.serializeBinary=function(){var a=new D;Up(this,a);return F(a)};
var Up=function(a,b){var c=a.getId();null!=c&&b.writeMessage(1,c,op);c=a.getName();0<c.length&&b.writeString(2,c);c=a.getDescription();0<c.length&&b.writeString(3,c);c=a.getParentId();0<c.length&&b.writeString(4,c);c=I(a,5);0<c.length&&Ve(b,5,c);c=a.getType();0!==c&&b.writeEnum(6,c);c=L(a,7);0<c.length&&b.writeString(7,c);c=a.getUrl();0<c.length&&b.writeString(8,c);c=L(a,9);0<c.length&&b.writeString(9,c);c=L(a,11);0<c.length&&b.writeString(11,c);c=L(a,13);0<c.length&&b.writeString(13,c);c=L(a,20);
0<c.length&&b.writeString(20,c);c=Tp(a);0<c.length&&We(b,10,c,rp);c=Mf(a,pp,22);0<c.length&&We(b,22,c,rp);c=M(a,Kh,12);null!=c&&b.writeMessage(12,c,Mh);c=M(a,Kh,16);null!=c&&b.writeMessage(16,c,Mh);c=M(a,zp,14);null!=c&&b.writeMessage(14,c,gma);c=M(a,Lp,15);null!=c&&b.writeMessage(15,c,zma);c=M(a,Ep,18);null!=c&&b.writeMessage(18,c,rma);c=M(a,Gp,19);null!=c&&b.writeMessage(19,c,vma);c=M(a,Op,21);null!=c&&b.writeMessage(21,c,Hma);c=M(a,Np,24);null!=c&&b.writeMessage(24,c,Dma);c=M(a,Ap,26);null!=c&&
b.writeMessage(26,c,ima);c=M(a,Bp,27);null!=c&&b.writeMessage(27,c,lma);c=M(a,Cp,28);null!=c&&b.writeMessage(28,c,nma);c=M(a,Kp,29);null!=c&&b.writeMessage(29,c,xma);c=M(a,Fp,30);null!=c&&b.writeMessage(30,c,tma);c=L(a,17);0<c.length&&b.writeString(17,c);c=rf(a,23);0!==c&&b.writeUint64(23,c);c=M(a,lp,25);null!=c&&b.writeMessage(25,c,cma);(c=sf(a,31))&&b.writeBool(31,c)};
e=Qp.prototype;e.getId=function(){return M(this,mp,1)};
e.setId=function(a){return yf(this,1,a)};
e.clearId=function(){return zf(this,1)};
e.hasId=function(){return K(this,1)};
e.getName=function(){return L(this,2)};
e.setName=function(a){return Jf(this,2,a)};
e.getDescription=function(){return L(this,3)};
e.setDescription=function(a){return Jf(this,3,a)};
e.getParentId=function(){return L(this,4)};
e.setParentId=function(a){Jf(this,4,a)};
e.setAllParentIdList=function(a){return uf(this,5,a||[])};
e.addAllParentId=function(a,b){return Lf(this,5,a,b)};
e.clearAllParentIdList=function(){return xf(this,5)};
e.getType=function(){return qf(this,6,0)};
e.setType=function(a){return Kf(this,6,a)};
e.setMimeType=function(a){return Jf(this,7,a)};
e.getUrl=function(){return L(this,8)};
e.setUrl=function(a){return Jf(this,8,a)};
e.setTemplateThumbUrl=function(a){return Jf(this,9,a)};
e.setIconUrl=function(a){return Jf(this,11,a)};
e.setEmbedUrl=function(a){return Jf(this,13,a)};
e.setPreviewUrl=function(a){return Jf(this,20,a)};
var Tp=function(a){return Mf(a,pp,10)};
e=Qp.prototype;e.setThumbnailList=function(a){return Af(this,10,a)};
e.clearThumbnailList=function(){return Bf(this,10)};
e.setInternalThumbnailList=function(a){return Af(this,22,a)};
e.addInternalThumbnail=function(a,b){return Nf(this,22,a,pp,b)};
e.clearInternalThumbnailList=function(){return Bf(this,22)};
e.setLastModifiedTimestamp=function(a){return yf(this,12,a)};
e.clearLastModifiedTimestamp=function(){return zf(this,12)};
e.hasLastModifiedTimestamp=function(){return K(this,12)};
e.setCreationTimestampMs=function(a){return yf(this,16,a)};
e.clearCreationTimestampMs=function(){return zf(this,16)};
e.hasCreationTimestampMs=function(){return K(this,16)};
e.setCalendarMetadata=function(a){return yf(this,14,a)};
e.clearCalendarMetadata=function(){return zf(this,14)};
e.hasCalendarMetadata=function(){return K(this,14)};
e.setWebMetadata=function(a){return yf(this,15,a)};
e.clearWebMetadata=function(){return zf(this,15)};
e.hasWebMetadata=function(){return K(this,15)};
e.setPhotosMetadata=function(a){return yf(this,18,a)};
e.clearPhotosMetadata=function(){return zf(this,18)};
e.hasPhotosMetadata=function(){return K(this,18)};
e.setThemesMetadata=function(a){return yf(this,19,a)};
e.clearThemesMetadata=function(){return zf(this,19)};
e.hasThemesMetadata=function(){return K(this,19)};
e.setDriveMetadata=function(a){return yf(this,21,a)};
e.clearDriveMetadata=function(){return zf(this,21)};
e.hasDriveMetadata=function(){return K(this,21)};
e.setYoutubeMetadata=function(a){return yf(this,24,a)};
e.clearYoutubeMetadata=function(){return zf(this,24)};
e.hasYoutubeMetadata=function(){return K(this,24)};
e.setCameraMetadata=function(a){return yf(this,26,a)};
e.clearCameraMetadata=function(){return zf(this,26)};
e.hasCameraMetadata=function(){return K(this,26)};
e.clearContactsMetadata=function(){return zf(this,27)};
e.hasContactsMetadata=function(){return K(this,27)};
e.setPartyMetadata=function(a){return yf(this,28,a)};
e.clearPartyMetadata=function(){return zf(this,28)};
e.hasPartyMetadata=function(){return K(this,28)};
e.setUrlMetadata=function(a){return yf(this,29,a)};
e.clearUrlMetadata=function(){return zf(this,29)};
e.hasUrlMetadata=function(){return K(this,29)};
e.setUploadMetadata=function(a){return yf(this,30,a)};
e.clearUploadMetadata=function(){return zf(this,30)};
e.hasUploadMetadata=function(){return K(this,30)};
e.setBucketId=function(a){return Jf(this,17,a)};
e.setSizeBytes=function(a){return Hf(this,23,a)};
e.setItemDiagnosticsInfo=function(a){return yf(this,25,a)};
e.clearItemDiagnosticsInfo=function(){return zf(this,25)};
e.hasItemDiagnosticsInfo=function(){return K(this,25)};
e.setIsAttachment=function(a){return If(this,31,a)};
Rp.prototype.toObject=function(a){return Gma(a,this)};
var Gma=function(a,b){var c,d={targetId:L(b,1),targetMimeType:L(b,2),targetItem:(c=M(b,Qp,3))&&Sp(a,c),targetLookupStatus:qf(b,4,0)};a&&(d.$jspbMessageInstance=b);return d};
Rp.prototype.serializeBinary=function(){var a=new D;Ima(this,a);return F(a)};
var Ima=function(a,b){var c=L(a,1);0<c.length&&b.writeString(1,c);c=L(a,2);0<c.length&&b.writeString(2,c);c=M(a,Qp,3);null!=c&&b.writeMessage(3,c,Up);c=qf(a,4,0);0!==c&&b.writeEnum(4,c)};
e=Rp.prototype;e.setTargetId=function(a){return Jf(this,1,a)};
e.setTargetMimeType=function(a){return Jf(this,2,a)};
e.setTargetItem=function(a){return yf(this,3,a)};
e.clearTargetItem=function(){return zf(this,3)};
e.hasTargetItem=function(){return K(this,3)};
e.setTargetLookupStatus=function(a){return Kf(this,4,a)};var Vp=function(a){hf(this,a,0,-1,null,null)};
w(Vp,G);Vp.prototype.toObject=function(a){return Wp(a,this)};
var Wp=function(a,b){var c={width:rf(b,1),height:rf(b,2)};a&&(c.$jspbMessageInstance=b);return c};
Vp.prototype.serializeBinary=function(){var a=new D;Xp(this,a);return F(a)};
var Xp=function(a,b){var c=a.getWidth();0!==c&&b.writeInt64(1,c);c=a.getHeight();0!==c&&b.writeInt64(2,c)};
Vp.prototype.getWidth=function(){return rf(this,1)};
Vp.prototype.setWidth=function(a){return Hf(this,1,a)};
Vp.prototype.getHeight=function(){return rf(this,2)};
Vp.prototype.setHeight=function(a){return Hf(this,2,a)};var Yp=function(a){hf(this,a,0,-1,Jma,null)};
w(Yp,G);var Jma=[1,2,3,4];Yp.prototype.toObject=function(a){return Kma(a,this)};
var Kma=function(a,b){var c,d={typeList:null==(c=I(b,1))?void 0:c,mimetypeList:null==(c=I(b,2))?void 0:c,excludeTypeList:null==(c=I(b,3))?void 0:c,excludeMimetypeList:null==(c=I(b,4))?void 0:c,maxSize:(c=b.getMaxSize())&&Ip(a,c),maxSizeBytes:rf(b,6)};a&&(d.$jspbMessageInstance=b);return d};
Yp.prototype.serializeBinary=function(){var a=new D;Lma(this,a);return F(a)};
var Lma=function(a,b){var c=I(a,1);0<c.length&&Xe(b,1,c);c=I(a,2);0<c.length&&Ve(b,2,c);c=I(a,3);0<c.length&&Xe(b,3,c);c=I(a,4);0<c.length&&Ve(b,4,c);c=a.getMaxSize();null!=c&&b.writeMessage(5,c,Jp);c=rf(a,6);0!==c&&b.writeUint32(6,c)},Mma=function(a,b){return uf(a,1,b||[])},Zp=function(a,b){Lf(a,1,b,void 0)};
e=Yp.prototype;e.clearTypeList=function(){return xf(this,1)};
e.setMimetypeList=function(a){return uf(this,2,a||[])};
e.addMimetype=function(a,b){return Lf(this,2,a,b)};
e.clearMimetypeList=function(){return xf(this,2)};
e.setExcludeTypeList=function(a){return uf(this,3,a||[])};
e.addExcludeType=function(a,b){return Lf(this,3,a,b)};
e.clearExcludeTypeList=function(){return xf(this,3)};
e.setExcludeMimetypeList=function(a){return uf(this,4,a||[])};
e.addExcludeMimetype=function(a,b){return Lf(this,4,a,b)};
e.clearExcludeMimetypeList=function(){return xf(this,4)};
e.getMaxSize=function(){return M(this,Hp,5)};
e.setMaxSize=function(a){yf(this,5,a)};
e.clearMaxSize=function(){return zf(this,5)};
e.hasMaxSize=function(){return K(this,5)};
e.setMaxSizeBytes=function(a){return Hf(this,6,a)};var $p=function(a){hf(this,a,0,-1,null,null)};
w($p,G);$p.prototype.toObject=function(a){return Nma(a,this)};
var Nma=function(a,b){var c={noDataFoundLabel:L(b,1),noDataFoundDescription:L(b,2)};a&&(c.$jspbMessageInstance=b);return c};
$p.prototype.serializeBinary=function(){var a=new D;Oma(this,a);return F(a)};
var Oma=function(a,b){var c=L(a,1);0<c.length&&b.writeString(1,c);c=L(a,2);0<c.length&&b.writeString(2,c)};
$p.prototype.setNoDataFoundLabel=function(a){return Jf(this,1,a)};
$p.prototype.setNoDataFoundDescription=function(a){return Jf(this,2,a)};var aq=function(a){hf(this,a,0,-1,null,null)};
w(aq,G);aq.prototype.toObject=function(a){return Pma(a,this)};
var Pma=function(a,b){var c={copyToTemporaryAlbum:sf(b,1),hasCaption:sf(b,2)};a&&(c.$jspbMessageInstance=b);return c};
aq.prototype.serializeBinary=function(){var a=new D;Qma(this,a);return F(a)};
var Qma=function(a,b){var c;(c=sf(a,1))&&b.writeBool(1,c);(c=sf(a,2))&&b.writeBool(2,c)};
aq.prototype.setCopyToTemporaryAlbum=function(a){return If(this,1,a)};var bq=function(a){hf(this,a,0,-1,null,null)};
w(bq,G);bq.prototype.toObject=function(a){return Rma(a,this)};
var Rma=function(a,b){var c={};a&&(c.$jspbMessageInstance=b);return c};
bq.prototype.serializeBinary=function(){return F(new D)};
var Sma=function(){};var cq=function(a){hf(this,a,0,-1,null,null)};
w(cq,G);cq.prototype.toObject=function(a){return Tma(a,this)};
var Tma=function(a,b){var c={};a&&(c.$jspbMessageInstance=b);return c};
cq.prototype.serializeBinary=function(){return F(new D)};
var Uma=function(){};var eq=function(a){hf(this,a,0,-1,null,dq)};
w(eq,G);var dq=[[2,3,4]];eq.prototype.getOptionsOneofCase=function(){return gf(this,dq[0])};
eq.prototype.toObject=function(a){return Vma(a,this)};
var Vma=function(a,b){var c,d={id:qf(b,1,0),profilePhotoOptions:(c=M(b,cq,2))&&Tma(a,c),cropPhotoOptions:(c=M(b,aq,3))&&Pma(a,c),photoSharingOptions:(c=M(b,bq,4))&&Rma(a,c)};a&&(d.$jspbMessageInstance=b);return d};
eq.prototype.serializeBinary=function(){var a=new D;Wma(this,a);return F(a)};
var Wma=function(a,b){var c=a.getId();0!==c&&b.writeEnum(1,c);c=M(a,cq,2);null!=c&&b.writeMessage(2,c,Uma);c=M(a,aq,3);null!=c&&b.writeMessage(3,c,Qma);c=M(a,bq,4);null!=c&&b.writeMessage(4,c,Sma)};
e=eq.prototype;e.getId=function(){return qf(this,1,0)};
e.setId=function(a){return Kf(this,1,a)};
e.setProfilePhotoOptions=function(a){return Ef(this,2,dq[0],a)};
e.clearProfilePhotoOptions=function(){return Ff(this,2,dq[0])};
e.hasProfilePhotoOptions=function(){return K(this,2)};
e.clearCropPhotoOptions=function(){return Ff(this,3,dq[0])};
e.hasCropPhotoOptions=function(){return K(this,3)};
e.setPhotoSharingOptions=function(a){return Ef(this,4,dq[0],a)};
e.clearPhotoSharingOptions=function(){return Ff(this,4,dq[0])};
e.hasPhotoSharingOptions=function(){return K(this,4)};var fq=function(a){hf(this,a,0,-1,null,null)};
w(fq,G);fq.prototype.toObject=function(a){return Xma(a,this)};
var Xma=function(a,b){var c={previewMode:qf(b,1,0)};a&&(c.$jspbMessageInstance=b);return c};
fq.prototype.serializeBinary=function(){var a=new D;Yma(this,a);return F(a)};
var Yma=function(a,b){a=qf(a,1,0);0!==a&&b.writeEnum(1,a)};
fq.prototype.setPreviewMode=function(a){return Kf(this,1,a)};var gq=function(a){hf(this,a,0,-1,null,null)};
w(gq,G);gq.prototype.toObject=function(a){return Zma(a,this)};
var Zma=function(a,b){var c={selectionMode:qf(b,1,0),allowCollectionSelection:sf(b,2)};a&&(c.$jspbMessageInstance=b);return c};
gq.prototype.serializeBinary=function(){var a=new D;$ma(this,a);return F(a)};
var $ma=function(a,b){var c=qf(a,1,0);0!==c&&b.writeEnum(1,c);(c=sf(a,2))&&b.writeBool(2,c)};
gq.prototype.setAllowCollectionSelection=function(a){return If(this,2,a)};var hq=function(a){hf(this,a,0,-1,ana,null)};
w(hq,G);var ana=[18,28];hq.prototype.toObject=function(a){return bna(a,this)};
var bna=function(a,b){var c,d={host:qf(b,23,0),hostUsecase:L(b,24),itemType:(c=M(b,Yp,2))&&Kma(a,c),selectionStrategy:(c=M(b,gq,3))&&Zma(a,c),maxItemsToSelect:rf(b,5),previewStrategy:(c=M(b,fq,21))&&Xma(a,c),authUser:(c=b.getAuthUser())&&Sla(a,c),oauth:L(b,7),baseUrl:L(b,8),topOrigin:L(b,27),title:L(b,9),locale:L(b,10),containerSpec:(c=M(b,jp,11))&&Yla(a,c),secretToken:L(b,12),debugSpec:(c=M(b,kp,14))&&$la(a,c),clientEnabledExperimentsList:null==(c=I(b,18))?void 0:c,selectButtonLabel:L(b,19),additionalInfo:(c=
M(b,fp,20))&&Qla(a,c),messageTextOverrides:(c=M(b,$p,22))&&Nma(a,c),enableDragDrop:sf(b,25),preloaded:sf(b,26),postProcessorList:jf(Mf(b,eq,28),Vma,a),accountDelegation:(c=M(b,ep,29))&&Ola(a,c),initialViewLayout:qf(b,30,0),buildLabel:L(b,31),minSize:(c=M(b,Vp,32))&&Wp(a,c),maxSize:(c=b.getMaxSize())&&Wp(a,c),enableInsertAttachment:sf(b,34),initialView:qf(b,35,0),deprecatedIsMultiselectAllowed:sf(b,4),deprecatedOrigin:L(b,13),deprecatedInstanceId:L(b,15),deprecatedEnablePreview:sf(b,17),deprecatedUseRefreshedUi:sf(b,
16)};a&&(d.$jspbMessageInstance=b);return d};
hq.prototype.serializeBinary=function(){var a=new D;cna(this,a);return F(a)};
var cna=function(a,b){var c=qf(a,23,0);0!==c&&b.writeEnum(23,c);c=L(a,24);0<c.length&&b.writeString(24,c);c=M(a,Yp,2);null!=c&&b.writeMessage(2,c,Lma);c=M(a,gq,3);null!=c&&b.writeMessage(3,c,$ma);c=rf(a,5);0!==c&&b.writeInt64(5,c);c=M(a,fq,21);null!=c&&b.writeMessage(21,c,Yma);c=a.getAuthUser();null!=c&&b.writeMessage(6,c,Tla);c=L(a,7);0<c.length&&b.writeString(7,c);c=a.getBaseUrl();0<c.length&&b.writeString(8,c);c=L(a,27);0<c.length&&b.writeString(27,c);c=a.getTitle();0<c.length&&b.writeString(9,
c);c=a.getLocale();0<c.length&&b.writeString(10,c);c=M(a,jp,11);null!=c&&b.writeMessage(11,c,Zla);c=L(a,12);0<c.length&&b.writeString(12,c);c=M(a,kp,14);null!=c&&b.writeMessage(14,c,ama);c=I(a,18);0<c.length&&Xe(b,18,c);c=a.getSelectButtonLabel();0<c.length&&b.writeString(19,c);c=M(a,fp,20);null!=c&&b.writeMessage(20,c,Rla);c=M(a,$p,22);null!=c&&b.writeMessage(22,c,Oma);(c=sf(a,25))&&b.writeBool(25,c);(c=sf(a,26))&&b.writeBool(26,c);c=Mf(a,eq,28);0<c.length&&We(b,28,c,Wma);c=M(a,ep,29);null!=c&&b.writeMessage(29,
c,Pla);c=qf(a,30,0);0!==c&&b.writeEnum(30,c);c=L(a,31);0<c.length&&b.writeString(31,c);c=M(a,Vp,32);null!=c&&b.writeMessage(32,c,Xp);c=a.getMaxSize();null!=c&&b.writeMessage(33,c,Xp);(c=sf(a,34))&&b.writeBool(34,c);c=qf(a,35,0);0!==c&&b.writeEnum(35,c);(c=sf(a,4))&&b.writeBool(4,c);c=L(a,13);0<c.length&&b.writeString(13,c);c=L(a,15);0<c.length&&b.writeString(15,c);(c=sf(a,17))&&b.writeBool(17,c);(c=sf(a,16))&&b.writeBool(16,c)},dna=function(){var a=new hq;
return Kf(a,23,20)},ena=function(a,b){yf(a,2,b)};
e=hq.prototype;e.clearItemType=function(){return zf(this,2)};
e.hasItemType=function(){return K(this,2)};
e.clearSelectionStrategy=function(){return zf(this,3)};
e.hasSelectionStrategy=function(){return K(this,3)};
e.setPreviewStrategy=function(a){return yf(this,21,a)};
e.clearPreviewStrategy=function(){return zf(this,21)};
e.hasPreviewStrategy=function(){return K(this,21)};
e.getAuthUser=function(){return M(this,gp,6)};
e.setAuthUser=function(a){return yf(this,6,a)};
e.clearAuthUser=function(){return zf(this,6)};
e.hasAuthUser=function(){return K(this,6)};
e.setOauth=function(a){return Jf(this,7,a)};
e.getBaseUrl=function(){return L(this,8)};
var fna=function(a,b){return Jf(a,8,b)};
e=hq.prototype;e.getTitle=function(){return L(this,9)};
e.setTitle=function(a){return Jf(this,9,a)};
e.getLocale=function(){return L(this,10)};
e.setLocale=function(a){Jf(this,10,a)};
e.setContainerSpec=function(a){return yf(this,11,a)};
e.clearContainerSpec=function(){return zf(this,11)};
e.hasContainerSpec=function(){return K(this,11)};
e.setSecretToken=function(a){return Jf(this,12,a)};
e.setDebugSpec=function(a){return yf(this,14,a)};
e.clearDebugSpec=function(){return zf(this,14)};
e.hasDebugSpec=function(){return K(this,14)};
e.setClientEnabledExperimentsList=function(a){return uf(this,18,a||[])};
e.addClientEnabledExperiments=function(a,b){return Lf(this,18,a,b)};
e.clearClientEnabledExperimentsList=function(){return xf(this,18)};
e.getSelectButtonLabel=function(){return L(this,19)};
e.setSelectButtonLabel=function(a){return Jf(this,19,a)};
var gna=function(a){var b=new fp;var c=b.setOrigin,d=window.location.origin;d||(d=iq(new jq().setScheme(window.location.protocol),window.location.host).toString());b=c.call(b,d);b=Kf(b,3,2);return yf(a,20,b)};
e=hq.prototype;e.clearAdditionalInfo=function(){return zf(this,20)};
e.hasAdditionalInfo=function(){return K(this,20)};
e.setMessageTextOverrides=function(a){return yf(this,22,a)};
e.clearMessageTextOverrides=function(){return zf(this,22)};
e.hasMessageTextOverrides=function(){return K(this,22)};
e.setEnableDragDrop=function(a){return If(this,25,a)};
e.setPreloaded=function(a){return If(this,26,a)};
e.setPostProcessorList=function(a){return Af(this,28,a)};
e.addPostProcessor=function(a,b){return Nf(this,28,a,eq,b)};
e.clearPostProcessorList=function(){return Bf(this,28)};
e.clearAccountDelegation=function(){return zf(this,29)};
e.hasAccountDelegation=function(){return K(this,29)};
e.setInitialViewLayout=function(a){return Kf(this,30,a)};
e.setBuildLabel=function(a){return Jf(this,31,a)};
e.setMinSize=function(a){return yf(this,32,a)};
e.clearMinSize=function(){return zf(this,32)};
e.hasMinSize=function(){return K(this,32)};
e.getMaxSize=function(){return M(this,Vp,33)};
e.setMaxSize=function(a){yf(this,33,a)};
e.clearMaxSize=function(){return zf(this,33)};
e.hasMaxSize=function(){return K(this,33)};
e.setEnableInsertAttachment=function(a){return If(this,34,a)};
e.setInitialView=function(a){Kf(this,35,a)};
e.setDeprecatedIsMultiselectAllowed=function(a){return If(this,4,a)};
e.setDeprecatedOrigin=function(a){return Jf(this,13,a)};
e.setDeprecatedInstanceId=function(a){return Jf(this,15,a)};
e.setDeprecatedEnablePreview=function(a){return If(this,17,a)};
e.setDeprecatedUseRefreshedUi=function(a){return If(this,16,a)};var kq=function(a){hf(this,a,0,-1,null,null)};
w(kq,G);kq.prototype.toObject=function(a){return hna(a,this)};
var hna=function(a,b){var c={eventType:qf(b,1,0)};a&&(c.$jspbMessageInstance=b);return c};
kq.prototype.serializeBinary=function(){var a=new D;ina(this,a);return F(a)};
var ina=function(a,b){a=qf(a,1,0);0!==a&&b.writeEnum(1,a)};
kq.prototype.setEventType=function(a){return Kf(this,1,a)};var lq=function(a){hf(this,a,0,-1,jna,null)};
w(lq,G);var jna=[1];lq.prototype.toObject=function(a){return kna(a,this)};
var kna=function(a,b){var c,d={itemList:jf(b.getItemList(),Sp,a),currentItem:(c=M(b,Qp,2))&&Sp(a,c),currentItemIndex:rf(b,3)};a&&(d.$jspbMessageInstance=b);return d};
lq.prototype.serializeBinary=function(){var a=new D;lna(this,a);return F(a)};
var lna=function(a,b){var c=a.getItemList();0<c.length&&We(b,1,c,Up);c=M(a,Qp,2);null!=c&&b.writeMessage(2,c,Up);c=rf(a,3);0!==c&&b.writeUint32(3,c)};
e=lq.prototype;e.getItemList=function(){return Mf(this,Qp,1)};
e.setItemList=function(a){return Af(this,1,a)};
e.addItem=function(a){Nf(this,1,a,Qp,void 0)};
e.clearItemList=function(){return Bf(this,1)};
e.setCurrentItem=function(a){return yf(this,2,a)};
e.clearCurrentItem=function(){return zf(this,2)};
e.hasCurrentItem=function(){return K(this,2)};
e.setCurrentItemIndex=function(a){return Hf(this,3,a)};var mq=function(a){hf(this,a,0,-1,mna,null)};
w(mq,G);var mna=[2];mq.prototype.toObject=function(a){return nna(a,this)};
var nna=function(a,b){var c={status:qf(b,1,0),itemList:jf(b.getItemList(),Sp,a),action:qf(b,3,0),errorCode:qf(b,4,0)};a&&(c.$jspbMessageInstance=b);return c};
mq.prototype.serializeBinary=function(){var a=new D;ona(this,a);return F(a)};
var ona=function(a,b){var c=a.getStatus();0!==c&&b.writeEnum(1,c);c=a.getItemList();0<c.length&&We(b,2,c,Up);c=qf(a,3,0);0!==c&&b.writeEnum(3,c);c=a.getErrorCode();0!==c&&b.writeEnum(4,c)};
e=mq.prototype;e.getStatus=function(){return qf(this,1,0)};
e.setStatus=function(a){return Kf(this,1,a)};
e.getItemList=function(){return Mf(this,Qp,2)};
e.setItemList=function(a){return Af(this,2,a)};
e.addItem=function(a){Nf(this,2,a,Qp,void 0)};
e.clearItemList=function(){return Bf(this,2)};
e.setAction=function(a){return Kf(this,3,a)};
e.getErrorCode=function(){return qf(this,4,0)};
e.setErrorCode=function(a){return Kf(this,4,a)};var nq=function(a){hf(this,a,0,-1,null,null)};
w(nq,G);nq.prototype.toObject=function(a){return pna(a,this)};
var pna=function(a,b){var c={query:L(b,1),minAccessRole:qf(b,2,0),showHidden:sf(b,3),fetchProfile:sf(b,4)};a&&(c.$jspbMessageInstance=b);return c};
nq.prototype.serializeBinary=function(){var a=new D;qna(this,a);return F(a)};
var qna=function(a,b){var c=a.getQuery();0<c.length&&b.writeString(1,c);c=qf(a,2,0);0!==c&&b.writeEnum(2,c);(c=sf(a,3))&&b.writeBool(3,c);(c=sf(a,4))&&b.writeBool(4,c)};
e=nq.prototype;e.getQuery=function(){return L(this,1)};
e.setQuery=function(a){return Jf(this,1,a)};
e.setMinAccessRole=function(a){return Kf(this,2,a)};
e.setShowHidden=function(a){return If(this,3,a)};
e.setFetchProfile=function(a){return If(this,4,a)};var oq=function(a){hf(this,a,0,-1,null,null)};
w(oq,G);oq.prototype.toObject=function(a){return pq(a,this)};
var pq=function(a,b){var c,d={uploadUrl:L(b,1),metadataMap:(c=vf(b,2,void 0,null))?c.toObject(a,void 0):[],agentId:qf(b,3,0),configurationId:qf(b,4,0),sendDataUrl:sf(b,5)};a&&(d.$jspbMessageInstance=b);return d};
oq.prototype.serializeBinary=function(){var a=new D;qq(this,a);return F(a)};
var qq=function(a,b){var c=a.getUploadUrl();0<c.length&&b.writeString(1,c);(c=vf(a,2,!0,null))&&0<c.getLength()&&c.serializeBinary(2,b,D.prototype.writeString,D.prototype.writeString);c=qf(a,3,0);0!==c&&b.writeEnum(3,c);c=qf(a,4,0);0!==c&&b.writeEnum(4,c);(c=sf(a,5))&&b.writeBool(5,c)};
e=oq.prototype;e.getUploadUrl=function(){return L(this,1)};
e.setUploadUrl=function(a){return Jf(this,1,a)};
e.clearMetadataMap=function(){vf(this,2,void 0,null).clear();return this};
e.setAgentId=function(a){return Kf(this,3,a)};
e.setSendDataUrl=function(a){return If(this,5,a)};var rq=function(a){hf(this,a,0,-1,null,null)};
w(rq,G);rq.prototype.toObject=function(a){return rna(a,this)};
var rna=function(a,b){var c,d={uploadMode:qf(b,1,0),uploadSourceOptions:(c=b.getUploadSourceOptions())&&pq(a,c)};a&&(d.$jspbMessageInstance=b);return d};
rq.prototype.serializeBinary=function(){var a=new D;sna(this,a);return F(a)};
var sna=function(a,b){var c=qf(a,1,0);0!==c&&b.writeEnum(1,c);c=a.getUploadSourceOptions();null!=c&&b.writeMessage(2,c,qq)};
rq.prototype.getUploadSourceOptions=function(){return M(this,oq,2)};
rq.prototype.setUploadSourceOptions=function(a){return yf(this,2,a)};
rq.prototype.clearUploadSourceOptions=function(){return zf(this,2)};
rq.prototype.hasUploadSourceOptions=function(){return K(this,2)};var sq=function(a){hf(this,a,0,-1,null,null)};
w(sq,G);sq.prototype.toObject=function(a){return tna(a,this)};
var tna=function(a,b){var c={query:L(b,1)};a&&(c.$jspbMessageInstance=b);return c};
sq.prototype.serializeBinary=function(){var a=new D;una(this,a);return F(a)};
var una=function(a,b){a=a.getQuery();0<a.length&&b.writeString(1,a)};
sq.prototype.getQuery=function(){return L(this,1)};
sq.prototype.setQuery=function(a){return Jf(this,1,a)};var tq=function(a){hf(this,a,0,-1,vna,null)};
w(tq,G);var vna=[1,3];tq.prototype.toObject=function(a){return wna(a,this)};
var wna=function(a,b){var c,d={parentList:null==(c=I(b,1))?void 0:c,embeddingParent:L(b,2),fileExtensionsList:null==(c=I(b,3))?void 0:c};a&&(d.$jspbMessageInstance=b);return d};
tq.prototype.serializeBinary=function(){var a=new D;xna(this,a);return F(a)};
var xna=function(a,b){var c=I(a,1);0<c.length&&Ve(b,1,c);c=L(a,2);0<c.length&&b.writeString(2,c);c=I(a,3);0<c.length&&Ve(b,3,c)};
e=tq.prototype;e.addParent=function(a,b){return Lf(this,1,a,b)};
e.clearParentList=function(){return xf(this,1)};
e.setEmbeddingParent=function(a){return Jf(this,2,a)};
e.addFileExtensions=function(a,b){return Lf(this,3,a,b)};
e.clearFileExtensionsList=function(){return xf(this,3)};var uq=function(a){hf(this,a,0,-1,null,null)};
w(uq,G);uq.prototype.toObject=function(a){return yna(a,this)};
var yna=function(a,b){var c={type:qf(b,1,0),direction:qf(b,2,0),foldersFirst:sf(b,3)};a&&(c.$jspbMessageInstance=b);return c};
uq.prototype.serializeBinary=function(){var a=new D;zna(this,a);return F(a)};
var zna=function(a,b){var c=a.getType();0!==c&&b.writeEnum(1,c);c=a.getDirection();0!==c&&b.writeEnum(2,c);(c=sf(a,3))&&b.writeBool(3,c)};
e=uq.prototype;e.getType=function(){return qf(this,1,0)};
e.setType=function(a){return Kf(this,1,a)};
e.getDirection=function(){return qf(this,2,0)};
e.setDirection=function(a){return Kf(this,2,a)};
e.setFoldersFirst=function(a){return If(this,3,a)};var vq=function(a){hf(this,a,0,-1,null,null)};
w(vq,G);vq.prototype.toObject=function(a){return Ana(a,this)};
var Ana=function(a,b){var c,d={parentId:L(b,1),query:L(b,2),sortBy:(c=M(b,uq,3))&&yna(a,c),ownedBy:qf(b,4,0),sharedWithMe:sf(b,5),starred:sf(b,7),viewMode:qf(b,8,0),lastModified:(c=M(b,Kh,9))&&Lh(a,c),disableInstantUpdates:sf(b,10),inSharedDrive:sf(b,11),inComputers:sf(b,12),permissions:qf(b,13,0),itemSuggest:sf(b,14),driveUploadOptions:(c=M(b,tq,15))&&wna(a,c)};a&&(d.$jspbMessageInstance=b);return d};
vq.prototype.serializeBinary=function(){var a=new D;Bna(this,a);return F(a)};
var Bna=function(a,b){var c=a.getParentId();0<c.length&&b.writeString(1,c);c=a.getQuery();0<c.length&&b.writeString(2,c);c=M(a,uq,3);null!=c&&b.writeMessage(3,c,zna);c=qf(a,4,0);0!==c&&b.writeEnum(4,c);(c=sf(a,5))&&b.writeBool(5,c);(c=sf(a,7))&&b.writeBool(7,c);c=a.getViewMode();0!==c&&b.writeEnum(8,c);c=M(a,Kh,9);null!=c&&b.writeMessage(9,c,Mh);(c=sf(a,10))&&b.writeBool(10,c);(c=sf(a,11))&&b.writeBool(11,c);(c=sf(a,12))&&b.writeBool(12,c);c=qf(a,13,0);0!==c&&b.writeEnum(13,c);(c=sf(a,14))&&b.writeBool(14,
c);c=M(a,tq,15);null!=c&&b.writeMessage(15,c,xna)};
e=vq.prototype;e.getParentId=function(){return L(this,1)};
e.setParentId=function(a){Jf(this,1,a)};
e.getQuery=function(){return L(this,2)};
e.setQuery=function(a){return Jf(this,2,a)};
e.clearSortBy=function(){return zf(this,3)};
e.hasSortBy=function(){return K(this,3)};
e.getViewMode=function(){return qf(this,8,0)};
e.setViewMode=function(a){Kf(this,8,a)};
e.setLastModified=function(a){return yf(this,9,a)};
e.clearLastModified=function(){return zf(this,9)};
e.hasLastModified=function(){return K(this,9)};
e.setDisableInstantUpdates=function(a){return If(this,10,a)};
e.setPermissions=function(a){return Kf(this,13,a)};
e.clearDriveUploadOptions=function(){return zf(this,15)};
e.hasDriveUploadOptions=function(){return K(this,15)};var wq=function(a){hf(this,a,0,-1,null,null)};
w(wq,G);wq.prototype.toObject=function(a){return Cna(a,this)};
var Cna=function(a,b){var c={category:qf(b,2,0),deprecatedCategory:L(b,1)};a&&(c.$jspbMessageInstance=b);return c};
wq.prototype.serializeBinary=function(){var a=new D;Dna(this,a);return F(a)};
var Dna=function(a,b){var c=a.getCategory();0!==c&&b.writeEnum(2,c);c=L(a,1);0<c.length&&b.writeString(1,c)};
wq.prototype.getCategory=function(){return qf(this,2,0)};
wq.prototype.setCategory=function(a){Kf(this,2,a)};
wq.prototype.setDeprecatedCategory=function(a){return Jf(this,1,a)};var xq=function(a){hf(this,a,0,-1,Ena,null)};
w(xq,G);var Ena=[8];xq.prototype.toObject=function(a){return Fna(a,this)};
var Fna=function(a,b){var c,d={parentAlbumKey:L(b,1),bucketBy:qf(b,2,0),viewMode:qf(b,3,0),queryText:L(b,4),includePhotos:sf(b,5),includeVideos:sf(b,6),viewType:qf(b,7,0),associationOriginList:null==(c=I(b,8))?void 0:c};a&&(d.$jspbMessageInstance=b);return d};
xq.prototype.serializeBinary=function(){var a=new D;Gna(this,a);return F(a)};
var Gna=function(a,b){var c=L(a,1);0<c.length&&b.writeString(1,c);c=qf(a,2,0);0!==c&&b.writeEnum(2,c);c=a.getViewMode();0!==c&&b.writeEnum(3,c);c=L(a,4);0<c.length&&b.writeString(4,c);(c=sf(a,5))&&b.writeBool(5,c);(c=sf(a,6))&&b.writeBool(6,c);c=qf(a,7,0);0!==c&&b.writeEnum(7,c);c=I(a,8);0<c.length&&Xe(b,8,c)};
e=xq.prototype;e.setParentAlbumKey=function(a){return Jf(this,1,a)};
e.getViewMode=function(){return qf(this,3,0)};
e.setViewMode=function(a){Kf(this,3,a)};
e.setQueryText=function(a){return Jf(this,4,a)};
e.setViewType=function(a){return Kf(this,7,a)};
e.setAssociationOriginList=function(a){return uf(this,8,a||[])};
e.addAssociationOrigin=function(a,b){return Lf(this,8,a,b)};
e.clearAssociationOriginList=function(){return xf(this,8)};var yq=function(a){hf(this,a,0,-1,null,null)};
w(yq,G);yq.prototype.toObject=function(a){return Hna(a,this)};
var Hna=function(a,b){var c={themeSourceId:qf(b,1,0)};a&&(c.$jspbMessageInstance=b);return c};
yq.prototype.serializeBinary=function(){var a=new D;Ina(this,a);return F(a)};
var Ina=function(a,b){a=qf(a,1,0);0!==a&&b.writeEnum(1,a)};
yq.prototype.setThemeSourceId=function(a){return Kf(this,1,a)};var zq=function(a){hf(this,a,0,-1,null,null)};
w(zq,G);zq.prototype.toObject=function(a){return Jna(a,this)};
var Jna=function(a,b){var c={mode:qf(b,1,0)};a&&(c.$jspbMessageInstance=b);return c};
zq.prototype.serializeBinary=function(){var a=new D;Kna(this,a);return F(a)};
var Kna=function(a,b){a=a.getMode();0!==a&&b.writeEnum(1,a)};
zq.prototype.getMode=function(){return qf(this,1,0)};
zq.prototype.setMode=function(a){return Kf(this,1,a)};var Aq=function(a){hf(this,a,0,-1,null,null)};
w(Aq,G);Aq.prototype.toObject=function(a){return Lna(a,this)};
var Lna=function(a,b){var c={query:L(b,1),usageRights:qf(b,2,0),disableSafeSearchMode:sf(b,3),viewMode:qf(b,4,0)};a&&(c.$jspbMessageInstance=b);return c};
Aq.prototype.serializeBinary=function(){var a=new D;Mna(this,a);return F(a)};
var Mna=function(a,b){var c=a.getQuery();0<c.length&&b.writeString(1,c);c=qf(a,2,0);0!==c&&b.writeEnum(2,c);(c=sf(a,3))&&b.writeBool(3,c);c=a.getViewMode();0!==c&&b.writeEnum(4,c)};
e=Aq.prototype;e.getQuery=function(){return L(this,1)};
e.setQuery=function(a){return Jf(this,1,a)};
e.setUsageRights=function(a){return Kf(this,2,a)};
e.setDisableSafeSearchMode=function(a){return If(this,3,a)};
e.getViewMode=function(){return qf(this,4,0)};
e.setViewMode=function(a){Kf(this,4,a)};var Bq=function(a){hf(this,a,0,-1,null,null)};
w(Bq,G);Bq.prototype.toObject=function(a){return Nna(a,this)};
var Nna=function(a,b){var c={viewMode:qf(b,1,0),query:L(b,2)};a&&(c.$jspbMessageInstance=b);return c};
Bq.prototype.serializeBinary=function(){var a=new D;Ona(this,a);return F(a)};
var Ona=function(a,b){var c=a.getViewMode();0!==c&&b.writeEnum(1,c);c=a.getQuery();0<c.length&&b.writeString(2,c)};
Bq.prototype.getViewMode=function(){return qf(this,1,0)};
Bq.prototype.setViewMode=function(a){Kf(this,1,a)};
Bq.prototype.getQuery=function(){return L(this,2)};
Bq.prototype.setQuery=function(a){return Jf(this,2,a)};var Cq=function(a){hf(this,a,0,-1,Pna,null)};
w(Cq,G);var Pna=[14];Cq.prototype.toObject=function(a){return Dq(a,this)};
var Dq=function(a,b){var c,d={sourceId:qf(b,1,0),name:L(b,8),driveSourceOptions:(c=M(b,vq,3))&&Ana(a,c),calendarSourceOptions:(c=M(b,nq,4))&&pna(a,c),webSourceOptions:(c=M(b,Aq,5))&&Lna(a,c),photosSourceOptions:(c=M(b,xq,6))&&Fna(a,c),themesSourceOptions:(c=M(b,yq,7))&&Hna(a,c),youtubeSourceOptions:(c=M(b,Bq,9))&&Nna(a,c),uploadSourceOptions:(c=b.getUploadSourceOptions())&&pq(a,c),contactsSourceOptions:(c=M(b,sq,12))&&tna(a,c),partySourceOptions:(c=M(b,wq,13))&&Cna(a,c),urlSourceOptions:(c=M(b,zq,
15))&&Jna(a,c),cameraSourceOptions:(c=M(b,rq,16))&&rna(a,c),childSourceList:jf(Mf(b,Cq,14),Dq,a)};a&&(d.$jspbMessageInstance=b);return d};
Cq.prototype.serializeBinary=function(){var a=new D;Eq(this,a);return F(a)};
var Eq=function(a,b){var c=a.getSourceId();0!==c&&b.writeEnum(1,c);c=a.getName();0<c.length&&b.writeString(8,c);c=M(a,vq,3);null!=c&&b.writeMessage(3,c,Bna);c=M(a,nq,4);null!=c&&b.writeMessage(4,c,qna);c=M(a,Aq,5);null!=c&&b.writeMessage(5,c,Mna);c=M(a,xq,6);null!=c&&b.writeMessage(6,c,Gna);c=M(a,yq,7);null!=c&&b.writeMessage(7,c,Ina);c=M(a,Bq,9);null!=c&&b.writeMessage(9,c,Ona);c=a.getUploadSourceOptions();null!=c&&b.writeMessage(10,c,qq);c=M(a,sq,12);null!=c&&b.writeMessage(12,c,una);c=M(a,wq,13);
null!=c&&b.writeMessage(13,c,Dna);c=M(a,zq,15);null!=c&&b.writeMessage(15,c,Kna);c=M(a,rq,16);null!=c&&b.writeMessage(16,c,sna);c=Mf(a,Cq,14);0<c.length&&We(b,14,c,Eq)};
e=Cq.prototype;e.getSourceId=function(){return qf(this,1,0)};
e.setSourceId=function(a){return Kf(this,1,a)};
e.getName=function(){return L(this,8)};
e.setName=function(a){return Jf(this,8,a)};
e.clearDriveSourceOptions=function(){return zf(this,3)};
e.hasDriveSourceOptions=function(){return K(this,3)};
e.setCalendarSourceOptions=function(a){return yf(this,4,a)};
e.clearCalendarSourceOptions=function(){return zf(this,4)};
e.hasCalendarSourceOptions=function(){return K(this,4)};
e.setWebSourceOptions=function(a){return yf(this,5,a)};
e.clearWebSourceOptions=function(){return zf(this,5)};
e.hasWebSourceOptions=function(){return K(this,5)};
e.clearPhotosSourceOptions=function(){return zf(this,6)};
e.hasPhotosSourceOptions=function(){return K(this,6)};
e.setThemesSourceOptions=function(a){return yf(this,7,a)};
e.clearThemesSourceOptions=function(){return zf(this,7)};
e.hasThemesSourceOptions=function(){return K(this,7)};
e.setYoutubeSourceOptions=function(a){return yf(this,9,a)};
e.clearYoutubeSourceOptions=function(){return zf(this,9)};
e.hasYoutubeSourceOptions=function(){return K(this,9)};
e.getUploadSourceOptions=function(){return M(this,oq,10)};
e.setUploadSourceOptions=function(a){return yf(this,10,a)};
e.clearUploadSourceOptions=function(){return zf(this,10)};
e.hasUploadSourceOptions=function(){return K(this,10)};
e.setContactsSourceOptions=function(a){return yf(this,12,a)};
e.clearContactsSourceOptions=function(){return zf(this,12)};
e.hasContactsSourceOptions=function(){return K(this,12)};
e.clearPartySourceOptions=function(){return zf(this,13)};
e.hasPartySourceOptions=function(){return K(this,13)};
e.setUrlSourceOptions=function(a){return yf(this,15,a)};
e.clearUrlSourceOptions=function(){return zf(this,15)};
e.hasUrlSourceOptions=function(){return K(this,15)};
e.clearCameraSourceOptions=function(){return zf(this,16)};
e.hasCameraSourceOptions=function(){return K(this,16)};
e.setChildSourceList=function(a){return Af(this,14,a)};
e.addChildSource=function(a,b){return Nf(this,14,a,Cq,b)};
e.clearChildSourceList=function(){return Bf(this,14)};var Fq=function(a){hf(this,a,0,-1,Qna,null)};
w(Fq,G);var Qna=[1];e=Fq.prototype;e.toObject=function(a){var b={sourceList:jf(this.getSourceList(),Dq,a)};a&&(b.$jspbMessageInstance=this);return b};
e.serializeBinary=function(){var a=new D;var b=this.getSourceList();0<b.length&&We(a,1,b,Eq);return F(a)};
e.getSourceList=function(){return Mf(this,Cq,1)};
e.setSourceList=function(a){return Af(this,1,a)};
e.addSource=function(a){Nf(this,1,a,Cq,void 0)};
e.clearSourceList=function(){return Bf(this,1)};var Gq=function(a){hf(this,a,0,-1,Rna,null)};
w(Gq,G);var Rna=[3,7];e=Gq.prototype;e.toObject=function(a){var b,c={command:qf(this,1,0),source:(b=this.getSource())&&Dq(a,b),itemIdList:jf(Mf(this,mp,3),np,a),correlationId:L(this,4),visible:sf(this,5),cssVisibilityChanged:sf(this,6),itemList:jf(this.getItemList(),Sp,a)};a&&(c.$jspbMessageInstance=this);return c};
e.serializeBinary=function(){var a=new D;var b=qf(this,1,0);0!==b&&a.writeEnum(1,b);b=this.getSource();null!=b&&a.writeMessage(2,b,Eq);b=Mf(this,mp,3);0<b.length&&We(a,3,b,op);b=this.getCorrelationId();0<b.length&&a.writeString(4,b);(b=sf(this,5))&&a.writeBool(5,b);(b=sf(this,6))&&a.writeBool(6,b);b=this.getItemList();0<b.length&&We(a,7,b,Up);return F(a)};
e.setCommand=function(a){return Kf(this,1,a)};
e.getSource=function(){return M(this,Cq,2)};
e.setSource=function(a){return yf(this,2,a)};
e.clearSource=function(){return zf(this,2)};
e.hasSource=function(){return K(this,2)};
e.setItemIdList=function(a){return Af(this,3,a)};
e.addItemId=function(a,b){return Nf(this,3,a,mp,b)};
e.clearItemIdList=function(){return Bf(this,3)};
e.getCorrelationId=function(){return L(this,4)};
e.setCorrelationId=function(a){return Jf(this,4,a)};
e.setVisible=function(a){return If(this,5,a)};
e.setCssVisibilityChanged=function(a){return If(this,6,a)};
e.getItemList=function(){return Mf(this,Qp,7)};
e.setItemList=function(a){return Af(this,7,a)};
e.addItem=function(a){Nf(this,7,a,Qp,void 0)};
e.clearItemList=function(){return Bf(this,7)};var Hq=function(a){hf(this,a,0,-1,Sna,null)};
w(Hq,G);var Sna=[4];e=Hq.prototype;e.toObject=function(a){var b,c={command:qf(this,1,0),pickerResult:(b=M(this,mq,2))&&nna(a,b),correlationId:L(this,3),itemList:jf(this.getItemList(),Sp,a),previewData:(b=M(this,lq,5))&&kna(a,b),latencyData:(b=M(this,kq,6))&&hna(a,b)};a&&(c.$jspbMessageInstance=this);return c};
e.serializeBinary=function(){var a=new D;var b=qf(this,1,0);0!==b&&a.writeEnum(1,b);b=M(this,mq,2);null!=b&&a.writeMessage(2,b,ona);b=this.getCorrelationId();0<b.length&&a.writeString(3,b);b=this.getItemList();0<b.length&&We(a,4,b,Up);b=M(this,lq,5);null!=b&&a.writeMessage(5,b,lna);b=M(this,kq,6);null!=b&&a.writeMessage(6,b,ina);return F(a)};
e.getCommand=function(){return qf(this,1,0)};
e.setCommand=function(a){return Kf(this,1,a)};
e.setPickerResult=function(a){return yf(this,2,a)};
e.clearPickerResult=function(){return zf(this,2)};
e.hasPickerResult=function(){return K(this,2)};
e.getCorrelationId=function(){return L(this,3)};
e.setCorrelationId=function(a){return Jf(this,3,a)};
e.getItemList=function(){return Mf(this,Qp,4)};
e.setItemList=function(a){return Af(this,4,a)};
e.addItem=function(a){Nf(this,4,a,Qp,void 0)};
e.clearItemList=function(){return Bf(this,4)};
e.setPreviewData=function(a){return yf(this,5,a)};
e.clearPreviewData=function(){return zf(this,5)};
e.hasPreviewData=function(){return K(this,5)};
e.setLatencyData=function(a){return yf(this,6,a)};
e.clearLatencyData=function(){return zf(this,6)};
e.hasLatencyData=function(){return K(this,6)};var Iq=function(a){hf(this,a,"ireq",-1,Tna,null)};
w(Iq,G);var Tna=[2];Iq.prototype.toObject=function(a){var b,c={config:(b=this.getConfig())&&bna(a,b),sourceList:jf(this.getSourceList(),Dq,a)};a&&(c.$jspbMessageInstance=this);return c};
Iq.prototype.serializeBinary=function(){var a=new D;var b=this.getConfig();null!=b&&a.writeMessage(1,b,cna);b=this.getSourceList();0<b.length&&We(a,2,b,Eq);return F(a)};
Iq.messageId="ireq";e=Iq.prototype;e.getConfig=function(){return M(this,hq,1)};
e.setConfig=function(a){return yf(this,1,a)};
e.clearConfig=function(){return zf(this,1)};
e.hasConfig=function(){return K(this,1)};
e.getSourceList=function(){return Mf(this,Cq,2)};
e.setSourceList=function(a){return Af(this,2,a)};
e.addSource=function(a){Nf(this,2,a,Cq,void 0)};
e.clearSourceList=function(){return Bf(this,2)};var Jq=function(){this.reviver_=this.replacer_=void 0};
Jq.prototype.stringify=function(a){return t.JSON.stringify(a,this.replacer_)};
Jq.prototype.parse=function(a){return t.JSON.parse(a,this.reviver_)};function Kq(a,b){if("function"!==typeof a)throw Error("Fn must not be null and must be a function");return t.setTimeout(function(){a()},b)}
;var Mq=function(a){Lq.dispatchEvent(new Una(Lq,a))},Lq=new zi,Una=function(a,b){ii.call(this,"statevent",a);
this.stat=b};
p(Una,ii);var Nq=function(a,b,c){Tg.call(this);this.listener_=null!=c?a.bind(c):a;this.interval_=b;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.timer_=null};
p(Nq,Tg);e=Nq.prototype;e.fire=function(a){this.args_=arguments;this.timer_||this.pauseCount_?this.shouldFire_=!0:this.doAction_()};
e.stop=function(){this.timer_&&(Zi(this.timer_),this.timer_=null,this.shouldFire_=!1,this.args_=null)};
e.pause=function(){this.pauseCount_++};
e.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.timer_||(this.shouldFire_=!1,this.doAction_())};
e.disposeInternal=function(){Tg.prototype.disposeInternal.call(this);this.stop()};
e.doAction_=function(){var a=this;this.timer_=Yi(function(){a.timer_=null;a.shouldFire_&&!a.pauseCount_&&(a.shouldFire_=!1,a.doAction_())},this.interval_);
var b=this.args_;this.args_=null;this.listener_.apply(null,b)};var Oq=function(a){Tg.call(this);this.handler_=a;this.keys_={}};
w(Oq,Tg);var Vna=[];Oq.prototype.listen=function(a,b,c,d){return Wna(this,a,b,c,d)};
Oq.prototype.listenWithScope=function(a,b,c,d,f){return Wna(this,a,b,c,d,f)};
var Wna=function(a,b,c,d,f,g){Array.isArray(c)||(c&&(Vna[0]=c.toString()),c=Vna);for(var l=0;l<c.length;l++){var m=ti(b,c[l],d||a.handleEvent,f||!1,g||a.handler_||a);if(!m)break;a.keys_[m.key]=m}return a};
Oq.prototype.listenOnce=function(a,b,c,d){return Pq(this,a,b,c,d)};
var Pq=function(a,b,c,d,f,g){if(Array.isArray(c))for(var l=0;l<c.length;l++)Pq(a,b,c[l],d,f,g);else{b=si(b,c,d||a.handleEvent,f,g||a.handler_||a);if(!b)return a;a.keys_[b.key]=b}return a};
e=Oq.prototype;e.listenWithWrapper=function(a,b,c,d){b.listen(a,c,d,this.handler_||this,this);return this};
e.listenWithWrapperAndScope=function(a,b,c,d,f){b.listen(a,c,d,f||this.handler_||this,this);return this};
e.getListenerCount=function(){var a=0,b;for(b in this.keys_)Object.prototype.hasOwnProperty.call(this.keys_,b)&&a++;return a};
e.unlisten=function(a,b,c,d,f){if(Array.isArray(b))for(var g=0;g<b.length;g++)this.unlisten(a,b[g],c,d,f);else if(a=vfa(a,b,c||this.handleEvent,Pa(d)?!!d.capture:!!d,f||this.handler_||this))xi(a),delete this.keys_[a.key];return this};
e.unlistenWithWrapper=function(a,b,c,d,f){b.unlisten(a,c,d,f||this.handler_||this,this);return this};
e.removeAll=function(){A.forEach(this.keys_,function(a,b){this.keys_.hasOwnProperty(b)&&xi(a)},this);
this.keys_={}};
e.disposeInternal=function(){Oq.superClass_.disposeInternal.call(this);this.removeAll()};
e.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var Xna=function(a){switch(a){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code";}};var Qq=function(){};
Qq.prototype.cachedOptions_=null;Qq.prototype.getOptions=function(){var a;(a=this.cachedOptions_)||(a={},Yna(this)&&(a[0]=!0,a[1]=!0),a=this.cachedOptions_=a);return a};var Rq,Sq=function(){};
w(Sq,Qq);Sq.prototype.createInstance=function(){var a=Yna(this);return a?new ActiveXObject(a):new XMLHttpRequest};
var Yna=function(a){if(!a.ieProgId_&&"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.ieProgId_=d}catch(f){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return a.ieProgId_};
Rq=new Sq;var Tq=function(a,b,c,d,f){this.channel_=a;this.channelDebug_=b;this.sid_=c;this.rid_=d;this.retryId_=f||1;this.timeout_=45E3;this.eventHandler_=new Oq(this);this.pollingTimer_=new Xi;this.pollingTimer_.setInterval(250)};
e=Tq.prototype;e.extraHeaders_=null;e.successful_=!1;e.watchDogTimerId_=null;e.watchDogTimeoutTime_=null;e.requestStartTime_=null;e.type_=null;e.baseUri_=null;e.requestUri_=null;e.postData_=null;e.xmlHttp_=null;e.xmlHttpChunkStart_=0;e.trident_=null;e.verb_=null;e.lastError_=null;e.lastStatusCode_=-1;e.sendClose_=!0;e.cancelled_=!1;e.readyStateChangeThrottleMs_=0;e.readyStateChangeThrottle_=null;
var Zna=function(a,b){switch(a){case 0:return"Non-200 return code ("+b+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error";}},$na={},Uq={};
e=Tq.prototype;e.setExtraHeaders=function(a){this.extraHeaders_=a};
e.setTimeout=function(a){this.timeout_=a};
e.setReadyStateChangeThrottle=function(a){this.readyStateChangeThrottleMs_=a};
e.xmlHttpPost=function(a,b,c){this.type_=1;this.baseUri_=Vq(a.clone());this.postData_=b;this.decodeChunks_=c;this.sendXmlHttp_(null)};
e.xmlHttpGet=function(a,b,c,d){this.type_=1;this.baseUri_=Vq(a.clone());this.postData_=null;this.decodeChunks_=b;d&&(this.sendClose_=!1);this.sendXmlHttp_(c)};
e.sendXmlHttp_=function(a){this.requestStartTime_=Va();Wq(this);this.requestUri_=this.baseUri_.clone();Xq(this.requestUri_,"t",this.retryId_);this.xmlHttpChunkStart_=0;this.xmlHttp_=this.channel_.createXhrIo(this.channel_.shouldUseSecondaryDomains()?a:null);0<this.readyStateChangeThrottleMs_&&(this.readyStateChangeThrottle_=new Nq(u(this.xmlHttpHandler_,this,this.xmlHttp_),this.readyStateChangeThrottleMs_));this.eventHandler_.listen(this.xmlHttp_,"readystatechange",this.readyStateChangeHandler_);
a=this.extraHeaders_?A.clone(this.extraHeaders_):{};this.postData_?(this.verb_="POST",a["Content-Type"]="application/x-www-form-urlencoded",this.xmlHttp_.send(this.requestUri_,this.verb_,this.postData_,a)):(this.verb_="GET",this.sendClose_&&!ye&&(a.Connection="close"),this.xmlHttp_.send(this.requestUri_,this.verb_,null,a));this.channel_.notifyServerReachabilityEvent(1);this.channelDebug_.xmlHttpChannelRequest(this.verb_,this.requestUri_,this.rid_,this.retryId_,this.postData_)};
e.readyStateChangeHandler_=function(a){a=a.target;var b=this.readyStateChangeThrottle_;b&&3==a.getReadyState()?(this.channelDebug_.debug("Throttling readystatechange."),b.fire()):this.xmlHttpHandler_(a)};
e.xmlHttpHandler_=function(a){try{if(a==this.xmlHttp_)this.onXmlHttpReadyStateChanged_();else this.channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(b){this.channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
e.onXmlHttpReadyStateChanged_=function(){var a=this.xmlHttp_.getReadyState(),b=this.xmlHttp_.lastErrorCode_,c=this.xmlHttp_.getStatus();if(te&&!Ge(10)||ye&&!Fe("420+")){if(4>a)return}else if(3>a||3==a&&!se&&!this.xmlHttp_.getResponseText())return;this.cancelled_||4!=a||7==b||(8==b||0>=c?this.channel_.notifyServerReachabilityEvent(3):this.channel_.notifyServerReachabilityEvent(2));Yq(this);this.lastStatusCode_=b=this.xmlHttp_.getStatus();(c=this.xmlHttp_.getResponseText())||this.channelDebug_.debug("No response text for uri "+
this.requestUri_+" status "+b);this.successful_=200==b;this.channelDebug_.xmlHttpChannelResponseMetaData(this.verb_,this.requestUri_,this.rid_,this.retryId_,a,b);if(this.successful_){if(4==a&&this.cleanup_(),this.decodeChunks_?(this.decodeNextChunks_(a,c),se&&this.successful_&&3==a&&aoa(this)):(this.channelDebug_.xmlHttpChannelResponseText(this.rid_,c,null),this.safeOnRequestData_(c)),this.successful_&&!this.cancelled_)if(4==a)this.channel_.onRequestComplete(this);else this.successful_=!1,Wq(this)}else 400==
b&&0<c.indexOf("Unknown SID")?(this.lastError_=3,Mq(13),this.channelDebug_.warning("XMLHTTP Unknown SID ("+this.rid_+")")):(this.lastError_=0,Mq(14),this.channelDebug_.warning("XMLHTTP Bad status "+b+" ("+this.rid_+")")),this.cleanup_(),Zq(this)};
e.decodeNextChunks_=function(a,b){for(var c=!0;!this.cancelled_&&this.xmlHttpChunkStart_<b.length;){var d=this.getNextChunk_(b);if(d==Uq){4==a&&(this.lastError_=4,Mq(15),c=!1);this.channelDebug_.xmlHttpChannelResponseText(this.rid_,null,"[Incomplete Response]");break}else if(d==$na){this.lastError_=4;Mq(16);this.channelDebug_.xmlHttpChannelResponseText(this.rid_,b,"[Invalid Chunk]");c=!1;break}else this.channelDebug_.xmlHttpChannelResponseText(this.rid_,d,null),this.safeOnRequestData_(d)}4==a&&0==
b.length&&(this.lastError_=1,Mq(17),c=!1);this.successful_=this.successful_&&c;c||(this.channelDebug_.xmlHttpChannelResponseText(this.rid_,b,"[Invalid Chunked Response]"),this.cleanup_(),Zq(this))};
e.pollResponse_=function(){var a=this.xmlHttp_.getReadyState(),b=this.xmlHttp_.getResponseText();this.xmlHttpChunkStart_<b.length&&(Yq(this),this.decodeNextChunks_(a,b),this.successful_&&4!=a&&Wq(this))};
var aoa=function(a){a.eventHandler_.listen(a.pollingTimer_,"tick",a.pollResponse_);a.pollingTimer_.start()};
Tq.prototype.getNextChunk_=function(a){var b=this.xmlHttpChunkStart_,c=a.indexOf("\n",b);if(-1==c)return Uq;b=Number(a.substring(b,c));if(isNaN(b))return $na;c+=1;if(c+b>a.length)return Uq;a=a.substr(c,b);this.xmlHttpChunkStart_=c+b;return a};
var boa=function(a,b){a.requestStartTime_=Va();Wq(a);var c=b?window.location.hostname:"";a.requestUri_=a.baseUri_.clone();$q(a.requestUri_,"DOMAIN",c);$q(a.requestUri_,"t",a.retryId_);try{a.trident_=new ActiveXObject("htmlfile")}catch(l){a.cleanup_();a.lastError_=7;Mq(22);Zq(a);return}var d="<html><body>";if(b){b="";for(var f=0;f<c.length;f++){var g=c.charAt(f);b="<"==g?b+"\\x3c":">"==g?b+"\\x3e":b+zba(g)}d+="<script>document.domain=\""+b+"\"</script>"}c=oc(d+"</body></html>",null);a.trident_.open();
a.trident_.write(mc(c));a.trident_.close();a.trident_.parentWindow.m=u(a.onTridentRpcMessage_,a);a.trident_.parentWindow.d=u(a.onTridentDone_,a,!0);a.trident_.parentWindow.rpcClose=u(a.onTridentDone_,a,!1);c=a.trident_.createElement("DIV");a.trident_.parentWindow.document.body.appendChild(c);d=Zb(a.requestUri_.toString());d=Bc(Ub(d));d=oc("<iframe src=\""+d+"\"></iframe>",null);rc(c,d);a.channelDebug_.info("TRIDENT REQ ("+a.rid_+") [ attempt "+a.retryId_+"]: GET\n"+a.requestUri_);a.channel_.notifyServerReachabilityEvent(1)};
e=Tq.prototype;e.onTridentRpcMessage_=function(a){Kq(u(this.onTridentRpcMessageAsync_,this,a),0)};
e.onTridentRpcMessageAsync_=function(a){if(!this.cancelled_){var b=this.channelDebug_;b.info("TRIDENT TEXT ("+this.rid_+"): "+b.redactResponse_(a));Yq(this);this.safeOnRequestData_(a);Wq(this)}};
e.onTridentDone_=function(a){Kq(u(this.onTridentDoneAsync_,this,a),0)};
e.onTridentDoneAsync_=function(a){this.cancelled_||(this.channelDebug_.info("TRIDENT TEXT ("+this.rid_+"): "+a?"success":"failure"),this.cleanup_(),this.successful_=a,this.channel_.onRequestComplete(this),this.channel_.notifyServerReachabilityEvent(4))};
e.cancel=function(){this.cancelled_=!0;this.cleanup_()};
var Wq=function(a){a.watchDogTimeoutTime_=Va()+a.timeout_;a.startWatchDogTimer_(a.timeout_)};
Tq.prototype.startWatchDogTimer_=function(a){if(null!=this.watchDogTimerId_)throw Error("WatchDog timer not null");this.watchDogTimerId_=Kq(u(this.onWatchDogTimeout_,this),a)};
var Yq=function(a){a.watchDogTimerId_&&(t.clearTimeout(a.watchDogTimerId_),a.watchDogTimerId_=null)};
Tq.prototype.onWatchDogTimeout_=function(){this.watchDogTimerId_=null;var a=Va();0<=a-this.watchDogTimeoutTime_?this.handleTimeout_():(this.channelDebug_.warning("WatchDog timer called too early"),this.startWatchDogTimer_(this.watchDogTimeoutTime_-a))};
Tq.prototype.handleTimeout_=function(){this.channelDebug_.timeoutResponse(this.requestUri_);2!=this.type_&&this.channel_.notifyServerReachabilityEvent(3);this.cleanup_();this.lastError_=2;Mq(18);Zq(this)};
var Zq=function(a){if(!a.channel_.isClosed()&&!a.cancelled_)a.channel_.onRequestComplete(a)};
e=Tq.prototype;e.cleanup_=function(){Yq(this);Sg(this.readyStateChangeThrottle_);this.readyStateChangeThrottle_=null;this.pollingTimer_.stop();this.eventHandler_.removeAll();if(this.xmlHttp_){var a=this.xmlHttp_;this.xmlHttp_=null;a.abort();a.dispose()}this.trident_&&(this.trident_=null)};
e.getLastError=function(){return this.lastError_};
e.getLastStatusCode=function(){return this.lastStatusCode_};
e.getSessionId=function(){return this.sid_};
e.safeOnRequestData_=function(a){try{this.channel_.onRequestData(this,a),this.channel_.notifyServerReachabilityEvent(4)}catch(b){}};var ar=function(){this.logger_=null};
e=ar.prototype;e.getLogger=function(){return this.logger_};
e.browserOfflineResponse=function(a){this.info("BROWSER_OFFLINE: "+a)};
e.xmlHttpChannelRequest=function(a,b,c,d,f){this.info("XMLHTTP REQ ("+c+") [attempt "+d+"]: "+a+"\n"+b+"\n"+this.maybeRedactPostData_(f))};
e.xmlHttpChannelResponseMetaData=function(a,b,c,d,f,g){this.info("XMLHTTP RESP ("+c+") [ attempt "+d+"]: "+a+"\n"+b+"\n"+f+" "+g)};
e.xmlHttpChannelResponseText=function(a,b,c){this.info("XMLHTTP TEXT ("+a+"): "+this.redactResponse_(b)+(c?" "+c:""))};
e.timeoutResponse=function(a){this.info("TIMEOUT: "+a)};
e.debug=function(a){this.info(a)};
e.dumpException=function(){};
e.info=function(){};
e.warning=function(){};
e.severe=function(){};
e.redactResponse_=function(a){if(!a||"y2f%"==a)return a;try{var b=JSON.parse(a);if(b)for(var c=0;c<b.length;c++)Array.isArray(b[c])&&this.maybeRedactArray_(b[c]);return uj(b)}catch(d){return this.debug("Exception parsing expected JS array - probably was not JS"),a}};
e.maybeRedactArray_=function(a){if(!(2>a.length||(a=a[1],!Array.isArray(a)||1>a.length))){var b=a[0];if("noop"!=b&&"stop"!=b)for(b=1;b<a.length;b++)a[b]=""}};
e.maybeRedactPostData_=function(a){if(!a)return null;var b="";a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].split("=");if(1<d.length){var f=d[0];d=d[1];var g=f.split("_");b=2<=g.length&&"type"==g[1]?b+(f+"="+d+"&"):b+(f+"=redacted&")}}return b};var coa=function(a){return a.getCount&&"function"==typeof a.getCount?a.getCount():Oa(a)||"string"===typeof a?a.length:A.getCount(a)},br=function(a){if(a.getValues&&"function"==typeof a.getValues)return a.getValues();
if("string"===typeof a)return a.split("");if(Oa(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return A.getValues(a)},doa=function(a){if(a.getKeys&&"function"==typeof a.getKeys)return a.getKeys();
if(!a.getValues||"function"!=typeof a.getValues){if(Oa(a)||"string"===typeof a){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return A.getKeys(a)}},cr=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else
if(Oa(a)||"string"===typeof a)cb(a,b,c);else for(var d=doa(a),f=br(a),g=f.length,l=0;l<g;l++)b.call(c,f[l],d&&d[l],a)},eoa=function(a,b,c){if("function"==typeof a.every)return a.every(b,c);
if(Oa(a)||"string"===typeof a)return hb(a,b,c);for(var d=doa(a),f=br(a),g=f.length,l=0;l<g;l++)if(!b.call(c,f[l],d&&d[l],a))return!1;return!0};var jq=function(a,b){this.domain_=this.userInfo_=this.scheme_="";this.port_=null;this.fragment_=this.path_="";this.ignoreCase_=this.isReadOnly_=!1;if(a instanceof jq){this.ignoreCase_=void 0!==b?b:a.ignoreCase_;this.setScheme(a.getScheme());var c=a.userInfo_;dr(this);this.userInfo_=c;iq(this,a.domain_);er(this,a.port_);this.setPath(a.getPath());fr(this,a.queryData_.clone());gr(this,a.fragment_)}else a&&(c=xd(String(a)))?(this.ignoreCase_=!!b,this.setScheme(c[1]||"",!0),a=c[2]||"",dr(this),this.userInfo_=
hr(a),iq(this,c[3]||"",!0),er(this,c[4]),this.setPath(c[5]||"",!0),fr(this,c[6]||"",!0),gr(this,c[7]||"",!0)):(this.ignoreCase_=!!b,this.queryData_=new ir(null,this.ignoreCase_))};
e=jq.prototype;e.toString=function(){var a=[],b=this.getScheme();b&&a.push(jr(b,foa,!0),":");var c=this.domain_;if(c||"file"==b)a.push("//"),(b=this.userInfo_)&&a.push(jr(b,foa,!0),"@"),a.push(zc(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.port_,null!=c&&a.push(":",String(c));if(c=this.getPath())this.domain_&&"/"!=c.charAt(0)&&a.push("/"),a.push(jr(c,"/"==c.charAt(0)?goa:hoa,!0));(c=this.queryData_.toString())&&a.push("?",c);(c=this.fragment_)&&a.push("#",jr(c,ioa));return a.join("")};
e.resolve=function(a){var b=this.clone(),c=a.hasScheme();c?b.setScheme(a.getScheme()):c=!!a.userInfo_;if(c){var d=a.userInfo_;dr(b);b.userInfo_=d}else c=!!a.domain_;c?iq(b,a.domain_):c=null!=a.port_;d=a.getPath();if(c)er(b,a.port_);else if(c=a.hasPath()){if("/"!=d.charAt(0))if(this.domain_&&!this.hasPath())d="/"+d;else{var f=b.getPath().lastIndexOf("/");-1!=f&&(d=b.getPath().substr(0,f+1)+d)}f=d;if(".."==f||"."==f)d="";else if(Pb(f,"./")||Pb(f,"/.")){d=Lb(f,"/");f=f.split("/");for(var g=[],l=0;l<
f.length;){var m=f[l++];"."==m?d&&l==f.length&&g.push(""):".."==m?((1<g.length||1==g.length&&""!=g[0])&&g.pop(),d&&l==f.length&&g.push("")):(g.push(m),d=!0)}d=g.join("/")}else d=f}c?b.setPath(d):c=a.hasQuery();c?fr(b,a.queryData_.clone()):c=!!a.fragment_;c&&gr(b,a.fragment_);return b};
e.clone=function(){return new jq(this)};
e.getScheme=function(){return this.scheme_};
e.setScheme=function(a,b){dr(this);if(this.scheme_=b?hr(a,!0):a)this.scheme_=this.scheme_.replace(/:$/,"");return this};
e.hasScheme=function(){return!!this.scheme_};
var iq=function(a,b,c){dr(a);a.domain_=c?hr(b,!0):b;return a},er=function(a,b){dr(a);
if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.port_=b}else a.port_=null;return a};
jq.prototype.getPath=function(){return this.path_};
jq.prototype.setPath=function(a,b){dr(this);this.path_=b?hr(a,!0):a;return this};
jq.prototype.hasPath=function(){return!!this.path_};
jq.prototype.hasQuery=function(){return""!==this.queryData_.toString()};
var fr=function(a,b,c){dr(a);b instanceof ir?(a.queryData_=b,a.queryData_.setIgnoreCase(a.ignoreCase_)):(c||(b=jr(b,joa)),a.queryData_=new ir(b,a.ignoreCase_));return a};
jq.prototype.setQuery=function(a,b){return fr(this,a,b)};
jq.prototype.getDecodedQuery=function(){return hr(this.queryData_.toString())};
jq.prototype.getQuery=function(){return this.queryData_.toString()};
var $q=function(a,b,c){dr(a);a.queryData_.set(b,c);return a},Xq=function(a,b,c){dr(a);
Array.isArray(c)||(c=[String(c)]);koa(a.queryData_,b,c)};
jq.prototype.getParameterValues=function(a){return this.queryData_.getValues(a)};
var kr=function(a,b){return a.queryData_.get(b)},gr=function(a,b,c){dr(a);
a.fragment_=c?hr(b):b;return a};
jq.prototype.hasSameDomainAs=function(a){return(!this.domain_&&!a.domain_||this.domain_==a.domain_)&&(null==this.port_&&null==a.port_||this.port_==a.port_)};
var Vq=function(a){dr(a);$q(a,"zx",Gc());return a};
jq.prototype.removeParameter=function(a){dr(this);this.queryData_.remove(a);return this};
jq.prototype.setReadOnly=function(a){this.isReadOnly_=a;return this};
jq.prototype.isReadOnly=function(){return this.isReadOnly_};
var dr=function(a){if(a.isReadOnly_)throw Error("Tried to modify a read-only Uri")};
jq.prototype.setIgnoreCase=function(a){this.ignoreCase_=a;this.queryData_&&this.queryData_.setIgnoreCase(a)};
var lr=function(a){return a instanceof jq?a.clone():new jq(a,void 0)},loa=function(a,b,c,d){var f=new jq(null,void 0);
a&&f.setScheme(a);b&&iq(f,b);c&&er(f,c);d&&f.setPath(d);return f},hr=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},jr=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,moa),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},moa=function(a){a=a.charCodeAt(0);
return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},foa=/[#\/\?@]/g,hoa=/[#\?:]/g,goa=/[#\?]/g,joa=/[#\?@]/g,ioa=/#/g,ir=function(a,b){this.count_=this.keyMap_=null;
this.encodedQuery_=a||null;this.ignoreCase_=!!b},mr=function(a){a.keyMap_||(a.keyMap_=new jj,a.count_=0,a.encodedQuery_&&Ed(a.encodedQuery_,function(b,c){a.add(Ac(b),c)}))};
e=ir.prototype;e.getCount=function(){mr(this);return this.count_};
e.add=function(a,b){mr(this);this.encodedQuery_=null;a=nr(this,a);var c=this.keyMap_.get(a);c||this.keyMap_.set(a,c=[]);c.push(b);this.count_+=1;return this};
e.remove=function(a){mr(this);a=nr(this,a);return this.keyMap_.containsKey(a)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(a).length,this.keyMap_.remove(a)):!1};
e.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
e.isEmpty=function(){mr(this);return 0==this.count_};
e.containsKey=function(a){mr(this);a=nr(this,a);return this.keyMap_.containsKey(a)};
e.containsValue=function(a){var b=this.getValues();return lb(b,a)};
e.forEach=function(a,b){mr(this);this.keyMap_.forEach(function(c,d){cb(c,function(f){a.call(b,f,d,this)},this)},this)};
e.getKeys=function(){mr(this);for(var a=this.keyMap_.getValues(),b=this.keyMap_.getKeys(),c=[],d=0;d<b.length;d++)for(var f=a[d],g=0;g<f.length;g++)c.push(b[d]);return c};
e.getValues=function(a){mr(this);var b=[];if("string"===typeof a)this.containsKey(a)&&(b=ob(b,this.keyMap_.get(nr(this,a))));else{a=this.keyMap_.getValues();for(var c=0;c<a.length;c++)b=ob(b,a[c])}return b};
e.set=function(a,b){mr(this);this.encodedQuery_=null;a=nr(this,a);this.containsKey(a)&&(this.count_-=this.keyMap_.get(a).length);this.keyMap_.set(a,[b]);this.count_+=1;return this};
e.get=function(a,b){if(!a)return b;a=this.getValues(a);return 0<a.length?String(a[0]):b};
var koa=function(a,b,c){a.remove(b);0<c.length&&(a.encodedQuery_=null,a.keyMap_.set(nr(a,b),pb(c)),a.count_+=c.length)};
ir.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var a=[],b=this.keyMap_.getKeys(),c=0;c<b.length;c++){var d=b[c],f=zc(d);d=this.getValues(d);for(var g=0;g<d.length;g++){var l=f;""!==d[g]&&(l+="="+zc(d[g]));a.push(l)}}return this.encodedQuery_=a.join("&")};
var noa=function(a){var b=["expflag","internalcountrycode"];mr(a);a.keyMap_.forEach(function(c,d){lb(b,d)||this.remove(d)},a)};
ir.prototype.clone=function(){var a=new ir;a.encodedQuery_=this.encodedQuery_;this.keyMap_&&(a.keyMap_=this.keyMap_.clone(),a.count_=this.count_);return a};
var nr=function(a,b){b=String(b);a.ignoreCase_&&(b=b.toLowerCase());return b};
ir.prototype.setIgnoreCase=function(a){a&&!this.ignoreCase_&&(mr(this),this.encodedQuery_=null,this.keyMap_.forEach(function(b,c){var d=c.toLowerCase();c!=d&&(this.remove(c),koa(this,d,b))},this));
this.ignoreCase_=a};
ir.prototype.extend=function(a){for(var b=0;b<arguments.length;b++)cr(arguments[b],function(c,d){this.add(d,c)},this)};var poa=function(a,b,c,d,f){new ar().debug("TestLoadImageWithRetries: "+f);if(0==d)c(!1);else{var g=f||0;d--;ooa(a,b,function(l){l?c(!0):t.setTimeout(function(){poa(a,b,c,d,g)},g)})}},ooa=function(a,b,c){var d=new ar;
d.debug("TestLoadImage: loading "+a);var f=new Image;f.onload=function(){try{d.debug("TestLoadImage: loaded"),or(f),c(!0)}catch(g){}};
f.onerror=function(){try{d.debug("TestLoadImage: error"),or(f),c(!1)}catch(g){}};
f.onabort=function(){try{d.debug("TestLoadImage: abort"),or(f),c(!1)}catch(g){}};
f.ontimeout=function(){try{d.debug("TestLoadImage: timeout"),or(f),c(!1)}catch(g){}};
t.setTimeout(function(){if(f.ontimeout)f.ontimeout()},b);
uc(f,a)},or=function(a){a.onload=null;
a.onerror=null;a.onabort=null;a.ontimeout=null};var pr=function(a){if(t.JSON)try{return t.JSON.parse(a)}catch(b){}return tj(a)};var qr=function(a){zi.call(this);this.headers=new jj;this.xmlHttpFactory_=a||null;this.active_=!1;this.xhrOptions_=this.xhr_=null;this.lastMethod_=this.lastUri_="";this.lastErrorCode_=0;this.lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.timeoutId_=null;this.responseType_="";this.useXhr2Timeout_=this.progressEventsEnabled_=this.withCredentials_=!1};
w(qr,zi);qr.prototype.logger_=null;var qoa=/^https?$/i,roa=["POST","PUT"],soa=[],toa=function(a,b,c,d,f,g,l){var m=new qr;soa.push(m);b&&m.listen("complete",b);m.listenOnce("ready",m.cleanupSend_);g&&(m.timeoutInterval_=Math.max(0,g));l&&(m.withCredentials_=l);m.send(a,c,d,f)};
e=qr.prototype;e.cleanupSend_=function(){this.dispose();mb(soa,this)};
e.getTimeoutInterval=function(){return this.timeoutInterval_};
e.setResponseType=function(a){this.responseType_=a};
e.getResponseType=function(){return this.responseType_};
e.getWithCredentials=function(){return this.withCredentials_};
e.setProgressEventsEnabled=function(a){this.progressEventsEnabled_=a};
e.send=function(a,b,c,d){if(this.xhr_)throw Error("[goog.net.XhrIo] Object is active with another request="+this.lastUri_+"; newUri="+a);b=b?b.toUpperCase():"GET";this.lastUri_=a;this.lastError_="";this.lastErrorCode_=0;this.lastMethod_=b;this.errorDispatched_=!1;this.active_=!0;this.xhr_=this.createXhr();this.xhrOptions_=this.xmlHttpFactory_?this.xmlHttpFactory_.getOptions():Rq.getOptions();this.xhr_.onreadystatechange=u(this.onReadyStateChange_,this);this.progressEventsEnabled_&&"onprogress"in this.xhr_&&(
this.xhr_.onprogress=u(function(g){this.onProgressHandler_(g,!0)},this),this.xhr_.upload&&(this.xhr_.upload.onprogress=u(this.onProgressHandler_,this)));
try{this.inOpen_=!0,this.xhr_.open(b,String(a),!0),this.inOpen_=!1}catch(g){this.error_(5,g);return}a=c||"";var f=this.headers.clone();d&&cr(d,function(g,l){f.set(l,g)});
d=ib(f.getKeys(),uoa);c=t.FormData&&a instanceof t.FormData;!lb(roa,b)||d||c||f.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");f.forEach(function(g,l){this.xhr_.setRequestHeader(l,g)},this);
this.responseType_&&(this.xhr_.responseType=this.responseType_);"withCredentials"in this.xhr_&&this.xhr_.withCredentials!==this.withCredentials_&&(this.xhr_.withCredentials=this.withCredentials_);try{voa(this),0<this.timeoutInterval_&&((this.useXhr2Timeout_=woa(this.xhr_))?(this.xhr_.timeout=this.timeoutInterval_,this.xhr_.ontimeout=u(this.timeout_,this)):this.timeoutId_=Yi(this.timeout_,this.timeoutInterval_,this)),this.inSend_=!0,this.xhr_.send(a),this.inSend_=!1}catch(g){this.error_(5,g)}};
var woa=function(a){return te&&Fe(9)&&"number"===typeof a.timeout&&void 0!==a.ontimeout},uoa=function(a){return"content-type"==a.toLowerCase()};
qr.prototype.createXhr=function(){return this.xmlHttpFactory_?this.xmlHttpFactory_.createInstance():Rq.createInstance()};
qr.prototype.timeout_=function(){"undefined"!=typeof Ea&&this.xhr_&&(this.lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
qr.prototype.error_=function(a,b){this.active_=!1;this.xhr_&&(this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1);this.lastError_=b;this.lastErrorCode_=a;xoa(this);rr(this)};
var xoa=function(a){a.errorDispatched_||(a.errorDispatched_=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
qr.prototype.abort=function(a){this.xhr_&&this.active_&&(this.active_=!1,this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1,this.lastErrorCode_=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),rr(this))};
qr.prototype.disposeInternal=function(){this.xhr_&&(this.active_&&(this.active_=!1,this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1),rr(this,!0));qr.superClass_.disposeInternal.call(this)};
qr.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)yoa(this);else this.onReadyStateChangeEntryPoint_()};
qr.prototype.onReadyStateChangeEntryPoint_=function(){yoa(this)};
var yoa=function(a){if(a.active_&&"undefined"!=typeof Ea&&(!a.xhrOptions_[1]||4!=a.getReadyState()||2!=a.getStatus()))if(a.inSend_&&4==a.getReadyState())Yi(a.onReadyStateChange_,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){a.active_=!1;try{if(a.isSuccess())a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.lastErrorCode_=6;try{var b=2<a.getReadyState()?a.xhr_.statusText:""}catch(c){b=""}a.lastError_=b+" ["+a.getStatus()+"]";xoa(a)}}finally{rr(a)}}};
qr.prototype.onProgressHandler_=function(a,b){this.dispatchEvent(zoa(a,"progress"));this.dispatchEvent(zoa(a,b?"downloadprogress":"uploadprogress"))};
var zoa=function(a,b){return{type:b,lengthComputable:a.lengthComputable,loaded:a.loaded,total:a.total}},rr=function(a,b){if(a.xhr_){voa(a);
var c=a.xhr_,d=a.xhrOptions_[0]?Ka:null;a.xhr_=null;a.xhrOptions_=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(f){}}},voa=function(a){a.xhr_&&a.useXhr2Timeout_&&(a.xhr_.ontimeout=null);
a.timeoutId_&&(Zi(a.timeoutId_),a.timeoutId_=null)};
e=qr.prototype;e.isActive=function(){return!!this.xhr_};
e.isComplete=function(){return 4==this.getReadyState()};
e.isSuccess=function(){var a=this.getStatus();a:switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var b=!0;break a;default:b=!1;}if(!b){if(a=0===a)a=xd(String(this.lastUri_))[1]||null,!a&&t.self&&t.self.location&&(a=t.self.location.protocol,a=a.substr(0,a.length-1)),a=!qoa.test(a?a.toLowerCase():"");b=a}return b};
e.getReadyState=function(){return this.xhr_?this.xhr_.readyState:0};
e.getStatus=function(){try{return 2<this.getReadyState()?this.xhr_.status:-1}catch(a){return-1}};
e.getLastUri=function(){return String(this.lastUri_)};
e.getResponseText=function(){try{return this.xhr_?this.xhr_.responseText:""}catch(a){return""}};
e.getResponseBody=function(){try{if(this.xhr_&&"responseBody"in this.xhr_)return this.xhr_.responseBody}catch(a){}return null};
e.getResponseXml=function(){try{return this.xhr_?this.xhr_.responseXML:null}catch(a){return null}};
e.getResponseJson=function(a){if(this.xhr_){var b=this.xhr_.responseText;a&&0==b.indexOf(a)&&(b=b.substring(a.length));return pr(b)}};
e.getResponse=function(){try{if(!this.xhr_)return null;if("response"in this.xhr_)return this.xhr_.response;switch(this.responseType_){case"":case"text":return this.xhr_.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in this.xhr_)return this.xhr_.mozResponseArrayBuffer;}return null}catch(a){return null}};
e.getResponseHeader=function(a){if(this.xhr_&&this.isComplete())return a=this.xhr_.getResponseHeader(a),null===a?void 0:a};
e.getAllResponseHeaders=function(){return this.xhr_&&this.isComplete()?this.xhr_.getAllResponseHeaders()||"":""};
e.getResponseHeaders=function(){for(var a={},b=this.getAllResponseHeaders().split("\r\n"),c=0;c<b.length;c++)if(!Nb(b[c])){var d=Fba(b[c]),f=d[0];d=d[1];if("string"===typeof d){d=d.trim();var g=a[f]||[];a[f]=g;g.push(d)}}return A.map(a,function(l){return l.join(", ")})};
var sr=function(a,b){return a.xhr_?a.xhr_.getResponseHeader(b):null};
qr.prototype.getAllStreamingResponseHeaders=function(){return this.xhr_?this.xhr_.getAllResponseHeaders():""};
qr.prototype.getLastError=function(){return"string"===typeof this.lastError_?this.lastError_:String(this.lastError_)};
qr.prototype.formatMsg_=function(a){return a+" ["+this.lastMethod_+" "+this.lastUri_+" "+this.getStatus()+"]"};var tr=function(a,b){this.channel_=a;this.channelDebug_=b;this.parser_=new Jq};
e=tr.prototype;e.extraHeaders_=null;e.request_=null;e.receivedIntermediateResult_=!1;e.startTime_=null;e.firstTime_=null;e.lastTime_=null;e.path_=null;e.state_=null;e.lastStatusCode_=-1;e.hostPrefix_=null;e.blockedPrefix_=null;e.setExtraHeaders=function(a){this.extraHeaders_=a};
e.setParser=function(a){this.parser_=a};
e.connect=function(a){this.path_=a;a=this.channel_.getForwardChannelUri(this.path_);Mq(3);this.startTime_=Va();var b=this.channel_.firstTestResults_;null!=b?(this.hostPrefix_=this.channel_.correctHostPrefix(b[0]),(this.blockedPrefix_=b[1])?(this.state_=1,Aoa(this)):(this.state_=2,ur(this))):(Xq(a,"MODE","init"),this.request_=new Tq(this,this.channelDebug_,void 0,void 0,void 0),this.request_.setExtraHeaders(this.extraHeaders_),this.request_.xmlHttpGet(a,!1,null,!0),this.state_=0)};
var Aoa=function(a){var b=a.channel_.createDataUri(a.blockedPrefix_,"/mail/images/cleardot.gif");Vq(b);poa(b.toString(),5E3,u(a.checkBlockedCallback_,a),3,2E3);a.notifyServerReachabilityEvent(1)};
tr.prototype.checkBlockedCallback_=function(a){if(a)this.state_=2,ur(this);else{Mq(4);var b=this.channel_;b.channelDebug_.debug("Test Connection Blocked");b.lastStatusCode_=b.connectionTest_.getLastStatusCode();b.signalError_(9)}a&&this.notifyServerReachabilityEvent(2)};
var ur=function(a){a.channelDebug_.debug("TestConnection: starting stage 2");var b=a.channel_.secondTestResults_;if(null!=b)a.channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+b?"Buffered":"Unbuffered"),Mq(5),b?(Mq(11),vr(a.channel_,a,!1)):(Mq(12),vr(a.channel_,a,!0));else if(a.request_=new Tq(a,a.channelDebug_,void 0,void 0,void 0),a.request_.setExtraHeaders(a.extraHeaders_),b=a.channel_.getBackChannelUri(a.hostPrefix_,a.path_),Mq(5),!te||Ge(10))Xq(b,"TYPE","xmlhttp"),
a.request_.xmlHttpGet(b,!1,a.hostPrefix_,!1);else{Xq(b,"TYPE","html");var c=a.request_;a=!!a.hostPrefix_;c.type_=3;c.baseUri_=Vq(b.clone());boa(c,a)}};
e=tr.prototype;e.createXhrIo=function(a){return this.channel_.createXhrIo(a)};
e.abort=function(){this.request_&&(this.request_.cancel(),this.request_=null);this.lastStatusCode_=-1};
e.isClosed=function(){return!1};
e.onRequestData=function(a,b){this.lastStatusCode_=a.getLastStatusCode();if(0==this.state_){if(this.channelDebug_.debug("TestConnection: Got data for stage 1"),b){try{var c=this.parser_.parse(b)}catch(d){wr(this.channel_,this);return}this.hostPrefix_=this.channel_.correctHostPrefix(c[0]);this.blockedPrefix_=c[1]}else this.channelDebug_.debug("TestConnection: Null responseText"),wr(this.channel_,this);}else if(2==this.state_)if(this.receivedIntermediateResult_)Mq(7),this.lastTime_=Va();else if("11111"==
b){if(Mq(6),this.receivedIntermediateResult_=!0,this.firstTime_=Va(),a=this.firstTime_-this.startTime_,!te||Ge(10)||500>a)this.lastStatusCode_=200,this.request_.cancel(),this.channelDebug_.debug("Test connection succeeded; using streaming connection"),Mq(12),vr(this.channel_,this,!0)}else Mq(8),this.firstTime_=this.lastTime_=Va(),this.receivedIntermediateResult_=!1};
e.onRequestComplete=function(){this.lastStatusCode_=this.request_.getLastStatusCode();this.request_.successful_?0==this.state_?(this.channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,Aoa(this)):(this.state_=2,ur(this))):2==this.state_&&(this.channelDebug_.debug("TestConnection: request complete for stage 2"),(!te||Ge(10)?!this.receivedIntermediateResult_:200>this.lastTime_-this.firstTime_)?(this.channelDebug_.debug("Test connection failed; not using streaming"),
Mq(11),vr(this.channel_,this,!1)):(this.channelDebug_.debug("Test connection succeeded; using streaming connection"),Mq(12),vr(this.channel_,this,!0))):(this.channelDebug_.debug("TestConnection: request failed, in state "+this.state_),0==this.state_?Mq(9):2==this.state_&&Mq(10),wr(this.channel_,this,this.request_.getLastError()))};
e.getLastStatusCode=function(){return this.lastStatusCode_};
e.shouldUseSecondaryDomains=function(){return this.channel_.shouldUseSecondaryDomains()};
e.isActive=function(){return this.channel_.isActive()};
e.notifyServerReachabilityEvent=function(a){this.channel_.notifyServerReachabilityEvent(a)};var xr=function(a,b,c,d){this.clientVersion_=a||null;this.state_=1;this.outgoingMaps_=[];this.pendingMaps_=[];this.channelDebug_=new ar;this.parser_=new Jq;this.firstTestResults_=b||null;this.secondTestResults_=null!=c?c:null;this.asyncTest_=d||!1},Boa=function(a,b){this.mapId=a;
this.map=b;this.context=null};
e=xr.prototype;e.extraHeaders_=null;e.extraParams_=null;e.forwardChannelRequest_=null;e.backChannelRequest_=null;e.path_=null;e.forwardChannelUri_=null;e.backChannelUri_=null;e.hostPrefix_=null;e.allowHostPrefix_=!0;e.nextRid_=0;e.nextMapId_=0;e.failFast_=!1;e.handler_=null;e.forwardChannelTimerId_=null;e.backChannelTimerId_=null;e.deadBackChannelTimerId_=null;e.connectionTest_=null;e.useChunked_=null;e.allowChunkedMode_=!0;e.lastArrayId_=-1;e.lastPostResponseArrayId_=-1;e.lastStatusCode_=-1;
e.forwardChannelRetryCount_=0;e.backChannelRetryCount_=0;e.baseRetryDelayMs_=5E3;e.retryDelaySeedMs_=1E4;e.forwardChannelMaxRetries_=2;e.forwardChannelRequestTimeoutMs_=2E4;e.readyStateChangeThrottleMs_=0;e.supportsCrossDomainXhrs_=!1;e.channelVersion_=8;var Coa=function(a,b,c,d){ii.call(this,"timingevent",a);this.size=b;this.rtt=c;this.retries=d};
w(Coa,ii);var Doa=function(a,b){ii.call(this,"serverreachability",a);this.reachabilityType=b};
w(Doa,ii);e=xr.prototype;e.getChannelDebug=function(){return this.channelDebug_};
e.setChannelDebug=function(a){null!=a&&(this.channelDebug_=a)};
e.connect=function(a,b,c,d,f){this.channelDebug_.debug("connect()");Mq(0);this.path_=b;this.extraParams_=c||{};d&&void 0!==f&&(this.extraParams_.OSID=d,this.extraParams_.OAID=f);this.asyncTest_?(Kq(u(this.connectTest_,this,a),100),yr(this)):this.connectTest_(a)};
e.disconnect=function(){this.channelDebug_.debug("disconnect()");this.cancelRequests_();if(3==this.state_){var a=this.nextRid_++,b=this.forwardChannelUri_.clone();$q(b,"SID",this.sid_);$q(b,"RID",a);$q(b,"TYPE","terminate");this.addAdditionalParams_(b);a=new Tq(this,this.channelDebug_,this.sid_,a,void 0);a.type_=2;a.baseUri_=Vq(b.clone());uc(new Image,a.baseUri_.toString());a.requestStartTime_=Va();Wq(a)}this.onClose_()};
e.getSessionId=function(){return this.sid_};
e.connectTest_=function(a){this.channelDebug_.debug("connectTest_()");this.okToMakeRequest_()&&(this.connectionTest_=new tr(this,this.channelDebug_),this.connectionTest_.setExtraHeaders(this.extraHeaders_),this.connectionTest_.setParser(this.parser_),this.connectionTest_.connect(a))};
var yr=function(a){a.channelDebug_.debug("connectChannel_()");a.ensureInState_(1,0);a.forwardChannelUri_=a.getForwardChannelUri(a.path_);a.ensureForwardChannel_()};
e=xr.prototype;
e.cancelRequests_=function(){this.connectionTest_&&(this.connectionTest_.abort(),this.connectionTest_=null);this.backChannelRequest_&&(this.backChannelRequest_.cancel(),this.backChannelRequest_=null);this.backChannelTimerId_&&(t.clearTimeout(this.backChannelTimerId_),this.backChannelTimerId_=null);zr(this);this.forwardChannelRequest_&&(this.forwardChannelRequest_.cancel(),this.forwardChannelRequest_=null);this.forwardChannelTimerId_&&(t.clearTimeout(this.forwardChannelTimerId_),this.forwardChannelTimerId_=null)};
e.setExtraHeaders=function(a){this.extraHeaders_=a};
e.setReadyStateChangeThrottle=function(a){this.readyStateChangeThrottleMs_=a};
e.setSupportsCrossDomainXhrs=function(a){this.supportsCrossDomainXhrs_=a};
e.getHandler=function(){return this.handler_};
e.setHandler=function(a){this.handler_=a};
e.getAllowHostPrefix=function(){return this.allowHostPrefix_};
e.setAllowHostPrefix=function(a){this.allowHostPrefix_=a};
e.isBuffered=function(){return!this.useChunked_};
e.getAllowChunkedMode=function(){return this.allowChunkedMode_};
e.setAllowChunkedMode=function(a){this.allowChunkedMode_=a};
e.sendMap=function(a){if(0==this.state_)throw Error("Invalid operation: sending map when state is closed");1E3==this.outgoingMaps_.length&&this.parser_.stringify(a);this.outgoingMaps_.push(new Boa(this.nextMapId_++,a));2!=this.state_&&3!=this.state_||this.ensureForwardChannel_()};
e.setFailFast=function(a){this.failFast_=a;this.channelDebug_.info("setFailFast: "+a);(this.forwardChannelRequest_||this.forwardChannelTimerId_)&&this.forwardChannelRetryCount_>Ar(this)&&(this.channelDebug_.info("Retry count "+this.forwardChannelRetryCount_+" > new maxRetries "+Ar(this)+". Fail immediately!"),this.forwardChannelRequest_?(this.forwardChannelRequest_.cancel(),this.onRequestComplete(this.forwardChannelRequest_)):(t.clearTimeout(this.forwardChannelTimerId_),this.forwardChannelTimerId_=
null,this.signalError_(2)))};
var Ar=function(a){return a.failFast_?0:a.forwardChannelMaxRetries_};
e=xr.prototype;e.setForwardChannelMaxRetries=function(a){this.forwardChannelMaxRetries_=a};
e.setForwardChannelRequestTimeout=function(a){this.forwardChannelRequestTimeoutMs_=a};
e.isClosed=function(){return 0==this.state_};
e.getState=function(){return this.state_};
e.getLastStatusCode=function(){return this.lastStatusCode_};
e.hasOutstandingRequests=function(){var a=0;this.backChannelRequest_&&a++;this.forwardChannelRequest_&&a++;return 0!=a};
e.setParser=function(a){this.parser_=a};
e.ensureForwardChannel_=function(){this.forwardChannelRequest_||this.forwardChannelTimerId_||(this.forwardChannelTimerId_=Kq(u(this.onStartForwardChannelTimer_,this),0),this.forwardChannelRetryCount_=0)};
e.maybeRetryForwardChannel_=function(a){if(this.forwardChannelRequest_||this.forwardChannelTimerId_||1==this.state_||this.forwardChannelRetryCount_>=Ar(this))return!1;this.channelDebug_.debug("Going to retry POST");this.forwardChannelTimerId_=Kq(u(this.onStartForwardChannelTimer_,this,a),this.getRetryTime_(this.forwardChannelRetryCount_));this.forwardChannelRetryCount_++;return!0};
e.onStartForwardChannelTimer_=function(a){this.forwardChannelTimerId_=null;this.startForwardChannel_(a)};
e.startForwardChannel_=function(a){this.channelDebug_.debug("startForwardChannel_");this.okToMakeRequest_()&&(1==this.state_?a||(this.open_(),this.state_=2):3==this.state_&&(a?this.makeForwardChannelRequest_(a):0==this.outgoingMaps_.length?this.channelDebug_.debug("startForwardChannel_ returned: nothing to send"):this.forwardChannelRequest_||(this.makeForwardChannelRequest_(),this.channelDebug_.debug("startForwardChannel_ finished, sent request"))))};
e.open_=function(){this.channelDebug_.debug("open_()");this.nextRid_=Math.floor(1E5*Math.random());var a=this.nextRid_++,b=new Tq(this,this.channelDebug_,"",a,void 0);b.setExtraHeaders(this.extraHeaders_);var c=this.dequeueOutgoingMaps_(),d=this.forwardChannelUri_.clone();$q(d,"RID",a);this.clientVersion_&&$q(d,"CVER",this.clientVersion_);this.addAdditionalParams_(d);b.xmlHttpPost(d,c,!0);this.forwardChannelRequest_=b};
e.makeForwardChannelRequest_=function(a){if(a){if(6<this.channelVersion_){this.requeuePendingMaps_();var b=this.nextRid_-1;a=this.dequeueOutgoingMaps_()}else b=a.rid_,a=a.postData_;}else b=this.nextRid_++,a=this.dequeueOutgoingMaps_();var c=this.forwardChannelUri_.clone();$q(c,"SID",this.sid_);$q(c,"RID",b);$q(c,"AID",this.lastArrayId_);this.addAdditionalParams_(c);b=new Tq(this,this.channelDebug_,this.sid_,b,this.forwardChannelRetryCount_+1);b.setExtraHeaders(this.extraHeaders_);b.setTimeout(Math.round(.5*
this.forwardChannelRequestTimeoutMs_)+Math.round(.5*this.forwardChannelRequestTimeoutMs_*Math.random()));this.forwardChannelRequest_=b;b.xmlHttpPost(c,a,!0)};
e.addAdditionalParams_=function(a){if(this.handler_){var b=this.handler_.getAdditionalParams();b&&A.forEach(b,function(c,d){$q(a,d,c)})}};
e.dequeueOutgoingMaps_=function(){var a=Math.min(this.outgoingMaps_.length,1E3),b=["count="+a];if(6<this.channelVersion_&&0<a){var c=this.outgoingMaps_[0].mapId;b.push("ofs="+c)}else c=0;for(var d={},f=0;f<a;d={$jscomp$loop$prop$mapId$2353:d.$jscomp$loop$prop$mapId$2353},f++){d.$jscomp$loop$prop$mapId$2353=this.outgoingMaps_[f].mapId;var g=this.outgoingMaps_[f].map;d.$jscomp$loop$prop$mapId$2353=6>=this.channelVersion_?f:d.$jscomp$loop$prop$mapId$2353-c;try{A.forEach(g,function(l){return function(m,
n){b.push("req"+l.$jscomp$loop$prop$mapId$2353+"_"+n+"="+encodeURIComponent(m))}}(d))}catch(l){b.push("req"+d.$jscomp$loop$prop$mapId$2353+"_type="+encodeURIComponent("_badmap"))}}this.pendingMaps_=this.pendingMaps_.concat(this.outgoingMaps_.splice(0,a));
return b.join("&")};
e.requeuePendingMaps_=function(){this.outgoingMaps_=this.pendingMaps_.concat(this.outgoingMaps_);this.pendingMaps_.length=0};
e.ensureBackChannel_=function(){this.backChannelRequest_||this.backChannelTimerId_||(this.backChannelAttemptId_=1,this.backChannelTimerId_=Kq(u(this.onStartBackChannelTimer_,this),0),this.backChannelRetryCount_=0)};
e.maybeRetryBackChannel_=function(){if(this.backChannelRequest_||this.backChannelTimerId_||3<=this.backChannelRetryCount_)return!1;this.channelDebug_.debug("Going to retry GET");this.backChannelAttemptId_++;this.backChannelTimerId_=Kq(u(this.onStartBackChannelTimer_,this),this.getRetryTime_(this.backChannelRetryCount_));this.backChannelRetryCount_++;return!0};
e.onStartBackChannelTimer_=function(){this.backChannelTimerId_=null;this.startBackChannel_()};
e.startBackChannel_=function(){if(this.okToMakeRequest_()){this.channelDebug_.debug("Creating new HttpRequest");this.backChannelRequest_=new Tq(this,this.channelDebug_,this.sid_,"rpc",this.backChannelAttemptId_);this.backChannelRequest_.setExtraHeaders(this.extraHeaders_);this.backChannelRequest_.setReadyStateChangeThrottle(this.readyStateChangeThrottleMs_);var a=this.backChannelUri_.clone();$q(a,"RID","rpc");$q(a,"SID",this.sid_);$q(a,"CI",this.useChunked_?"0":"1");$q(a,"AID",this.lastArrayId_);
this.addAdditionalParams_(a);if(!te||Ge(10))$q(a,"TYPE","xmlhttp"),this.backChannelRequest_.xmlHttpGet(a,!0,this.hostPrefix_,!1);else{$q(a,"TYPE","html");var b=this.backChannelRequest_,c=!!this.hostPrefix_;b.type_=3;b.baseUri_=Vq(a.clone());boa(b,c)}this.channelDebug_.debug("New Request created")}};
e.okToMakeRequest_=function(){return!0};
var vr=function(a,b,c){a.channelDebug_.debug("Test Connection Finished");a.useChunked_=a.allowChunkedMode_&&c;a.lastStatusCode_=b.getLastStatusCode();a.asyncTest_||yr(a)},wr=function(a,b){a.channelDebug_.debug("Test Connection Failed");
a.lastStatusCode_=b.getLastStatusCode();a.signalError_(2)};
e=xr.prototype;
e.onRequestData=function(a,b){if(0!=this.state_&&(this.backChannelRequest_==a||this.forwardChannelRequest_==a))if(this.lastStatusCode_=a.getLastStatusCode(),this.forwardChannelRequest_==a&&3==this.state_){if(7<this.channelVersion_){try{var c=this.parser_.parse(b)}catch(d){c=null}Array.isArray(c)&&3==c.length?this.handlePostResponse_(c):(this.channelDebug_.debug("Bad POST response data returned"),this.signalError_(11))}else"y2f%"!=b&&(this.channelDebug_.debug("Bad data returned - missing/invald magic cookie"),this.signalError_(11));}else
this.backChannelRequest_==a&&zr(this),Nb(b)||(a=this.parser_.parse(b),this.onInput_(a))};
e.handlePostResponse_=function(a){if(0==a[0])this.handleBackchannelMissing_();else{this.lastPostResponseArrayId_=a[1];var b=this.lastPostResponseArrayId_-this.lastArrayId_;0<b&&(a=a[2],this.channelDebug_.debug(a+" bytes (in "+b+" arrays) are outstanding on the BackChannel"),this.shouldRetryBackChannel_(a)&&!this.deadBackChannelTimerId_&&(this.deadBackChannelTimerId_=Kq(u(this.onBackChannelDead_,this),6E3)))}};
e.handleBackchannelMissing_=function(){this.channelDebug_.debug("Server claims our backchannel is missing.");if(this.backChannelTimerId_)this.channelDebug_.debug("But we are currently starting the request.");else{if(this.backChannelRequest_){if(this.backChannelRequest_.requestStartTime_+3E3<this.forwardChannelRequest_.requestStartTime_)zr(this),this.backChannelRequest_.cancel(),this.backChannelRequest_=null;else return;}else this.channelDebug_.warning("We do not have a BackChannel established");this.maybeRetryBackChannel_();
Mq(19)}};
e.shouldRetryBackChannel_=function(a){return 37500>a&&!this.isBuffered()&&0==this.backChannelRetryCount_};
e.correctHostPrefix=function(a){return this.allowHostPrefix_?this.handler_?this.handler_.correctHostPrefix(a):a:null};
e.onBackChannelDead_=function(){null!=this.deadBackChannelTimerId_&&(this.deadBackChannelTimerId_=null,this.backChannelRequest_.cancel(),this.backChannelRequest_=null,this.maybeRetryBackChannel_(),Mq(20))};
var zr=function(a){null!=a.deadBackChannelTimerId_&&(t.clearTimeout(a.deadBackChannelTimerId_),a.deadBackChannelTimerId_=null)};
e=xr.prototype;
e.onRequestComplete=function(a){this.channelDebug_.debug("Request complete");if(this.backChannelRequest_==a){zr(this);this.backChannelRequest_=null;var b=2}else if(this.forwardChannelRequest_==a)this.forwardChannelRequest_=null,b=1;else return;this.lastStatusCode_=a.getLastStatusCode();if(0!=this.state_)if(a.successful_){if(1==b){b=Va()-a.requestStartTime_;var c=Lq;c.dispatchEvent(new Coa(c,a.postData_?a.postData_.length:0,b,this.forwardChannelRetryCount_));this.ensureForwardChannel_();this.onSuccess_();
this.pendingMaps_.length=0}else this.ensureBackChannel_();}else{c=a.getLastError();if(3==c||7==c||0==c&&0<this.lastStatusCode_)this.channelDebug_.debug("Not retrying due to error type");else{this.channelDebug_.debug("Maybe retrying, last error: "+Zna(c,this.lastStatusCode_));if(1==b&&this.maybeRetryForwardChannel_(a)||2==b&&this.maybeRetryBackChannel_())return;this.channelDebug_.debug("Exceeded max number of retries")}this.channelDebug_.debug("Error: HTTP request failed");switch(c){case 1:this.signalError_(5);
break;case 4:this.signalError_(10);break;case 3:this.signalError_(6);break;case 7:this.signalError_(12);break;default:this.signalError_(2);}}};
e.getRetryTime_=function(a){var b=this.baseRetryDelayMs_+Math.floor(Math.random()*this.retryDelaySeedMs_);this.isActive()||(this.channelDebug_.debug("Inactive channel"),b*=2);return b*a};
e.setRetryDelay=function(a,b){this.baseRetryDelayMs_=a;this.retryDelaySeedMs_=b};
e.onInput_=function(a){for(var b=this.handler_&&this.handler_.channelHandleMultipleArrays?[]:null,c=0;c<a.length;c++){var d=a[c];this.lastArrayId_=d[0];d=d[1];2==this.state_?"c"==d[0]?(this.sid_=d[1],this.hostPrefix_=this.correctHostPrefix(d[2]),d=d[3],this.channelVersion_=null!=d?d:6,this.state_=3,this.handler_&&this.handler_.channelOpened(this),this.backChannelUri_=this.getBackChannelUri(this.hostPrefix_,this.path_),this.ensureBackChannel_()):"stop"==d[0]&&this.signalError_(7):3==this.state_&&("stop"==
d[0]?(b&&0!=b.length&&(this.handler_.channelHandleMultipleArrays(this,b),b.length=0),this.signalError_(7)):"noop"!=d[0]&&(b?b.push(d):this.handler_&&this.handler_.channelHandleArray(this,d)),this.backChannelRetryCount_=0)}b&&0!=b.length&&this.handler_.channelHandleMultipleArrays(this,b)};
e.ensureInState_=function(a){if(!lb(arguments,this.state_))throw Error("Unexpected channel state: "+this.state_)};
e.signalError_=function(a){this.channelDebug_.info("Error code "+a);if(2==a||9==a){var b=null;this.handler_&&(b=null);var c=u(this.testGoogleComCallback_,this);b||(b=new jq("//www.google.com/images/cleardot.gif"),Vq(b));ooa(b.toString(),1E4,c)}else Mq(2);this.onError_(a)};
e.testGoogleComCallback_=function(a){a?(this.channelDebug_.info("Successfully pinged google.com"),Mq(2)):(this.channelDebug_.info("Failed to ping google.com"),Mq(1),this.onError_(8))};
e.onSuccess_=function(){};
e.onError_=function(a){this.channelDebug_.debug("HttpChannel: error - "+a);this.state_=0;this.handler_&&this.handler_.channelError(this,a);this.onClose_();this.cancelRequests_()};
e.onClose_=function(){this.state_=0;this.lastStatusCode_=-1;if(this.handler_)if(0==this.pendingMaps_.length&&0==this.outgoingMaps_.length)this.handler_.channelClosed(this);else{this.channelDebug_.debug("Number of undelivered maps, pending: "+this.pendingMaps_.length+", outgoing: "+this.outgoingMaps_.length);var a=pb(this.pendingMaps_),b=pb(this.outgoingMaps_);this.pendingMaps_.length=0;this.outgoingMaps_.length=0;this.handler_.channelClosed(this,a,b)}};
e.getForwardChannelUri=function(a){a=this.createDataUri(null,a);this.channelDebug_.debug("GetForwardChannelUri: "+a);return a};
e.getBackChannelUri=function(a,b){a=this.createDataUri(this.shouldUseSecondaryDomains()?a:null,b);this.channelDebug_.debug("GetBackChannelUri: "+a);return a};
e.createDataUri=function(a,b){var c=lr(b);if(""!=c.domain_)a&&iq(c,a+"."+c.domain_),er(c,c.port_);else{var d=window.location;c=loa(d.protocol,a?a+"."+d.hostname:d.hostname,+d.port,b)}this.extraParams_&&A.forEach(this.extraParams_,function(f,g){$q(c,g,f)});
$q(c,"VER",this.channelVersion_);this.addAdditionalParams_(c);return c};
e.createXhrIo=function(a){if(a&&!this.supportsCrossDomainXhrs_)throw Error("Can't create secondary domain capable XhrIo object.");a=new qr;a.withCredentials_=this.supportsCrossDomainXhrs_;return a};
e.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
e.notifyServerReachabilityEvent=function(a){var b=Lq;b.dispatchEvent(new Doa(b,a))};
e.shouldUseSecondaryDomains=function(){return this.supportsCrossDomainXhrs_||!(!te||Ge(10))};
var Br=function(){};
e=Br.prototype;e.channelHandleMultipleArrays=null;e.channelOpened=function(){};
e.channelHandleArray=function(){};
e.channelSuccess=function(){};
e.channelError=function(){};
e.channelClosed=function(){};
e.getAdditionalParams=function(){return{}};
e.isActive=function(){return!0};
e.badMapError=function(){};
e.correctHostPrefix=function(a){return a};function Cr(a,b){this.bcError_=a;this.lastHttpStatusCode_=b}
Cr.prototype.getBrowserChannelErrorCode=function(){return this.bcError_};
Cr.prototype.getLastHttpStatusCode=function(){return this.lastHttpStatusCode_};var Dr=function(a,b,c){this.messageType_=a;this.name_=b.name||null;this.fullName_=b.fullName||null;this.containingType_=b.containingType;this.fields_={};for(a=0;a<c.length;a++)b=c[a],this.fields_[b.tag_]=b};
Dr.prototype.getName=function(){return this.name_};
Dr.prototype.getFullName=function(){return this.fullName_};
Dr.prototype.getContainingType=function(){return this.containingType_?this.containingType_.getDescriptor():null};
Dr.prototype.getFields=function(){var a=A.getValues(this.fields_);sb(a,function(b,c){return b.tag_-c.tag_});
return a};
var Er=function(a,b){return A.findValue(a.fields_,function(c){return c.getName()==b})||null};var Fr=function(a,b,c){this.parent_=a;this.tag_=b;this.name_=c.name;this.isPacked_=!!c.packed;this.isRepeated_=!!c.repeated;this.isRequired_=!!c.required;this.fieldType_=c.fieldType;this.nativeType_=c.type;this.deserializationConversionPermitted_=!1;switch(this.fieldType_){case 3:case 4:case 6:case 16:case 18:case 2:case 1:this.deserializationConversionPermitted_=!0;}this.defaultValue_=c.defaultValue};
Fr.prototype.getContainingType=function(){return this.parent_.prototype.getDescriptor()};
Fr.prototype.getName=function(){return this.name_};
var Gr=function(a){return 11==a.fieldType_||10==a.fieldType_};
Fr.prototype.isPacked=function(){return this.isPacked_};
Fr.prototype.isRepeated=function(){return this.isRepeated_};
Fr.prototype.isRequired=function(){return this.isRequired_};
Fr.prototype.isOptional=function(){return!this.isRepeated_&&!this.isRequired_};var Hr=function(){this.values_={};this.fields_=this.getDescriptor().fields_;this.deserializedFields_=this.lazyDeserializer_=null};
Hr.prototype.initializeForLazyDeserializer=function(a,b){this.lazyDeserializer_=a;this.values_=b;this.deserializedFields_={}};
var Eoa=function(a,b,c){c=c||a;for(var d in a.values_){var f=Number(d);a.fields_[f]||b.call(c,f,a.values_[d])}};
e=Hr.prototype;e.has=function(a){return Ir(this,a.tag_)};
e.arrayOf=function(a){return Jr(this,a.tag_)||[]};
e.get=function(a,b){return Kr(this,a.tag_,b)};
e.getOrDefault=function(a,b){return Lr(this,a.tag_,b)};
e.set=function(a,b){Mr(this,a.tag_,b)};
e.add=function(a,b){Foa(this,a.tag_,b)};
e.clear=function(a){Nr(this,a.tag_)};
e.equals=function(a){if(!a||this.constructor!=a.constructor)return!1;for(var b=this.getDescriptor().getFields(),c=0;c<b.length;c++){var d=b[c],f=d.tag_;if(Ir(this,f)!=Ir(a,f))return!1;if(Ir(this,f)){var g=Gr(d),l=Jr(this,f);f=Jr(a,f);if(d.isRepeated()){if(l.length!=f.length)return!1;for(d=0;d<l.length;d++){var m=l[d],n=f[d];if(g?!m.equals(n):m!=n)return!1}}else if(g?!l.equals(f):l!=f)return!1}}return!0};
e.copyFrom=function(a){this!=a&&(this.values_={},this.deserializedFields_&&(this.deserializedFields_={}),Goa(this,a))};
var Goa=function(a,b){for(var c=a.getDescriptor().getFields(),d=0;d<c.length;d++){var f=c[d],g=f.tag_;if(Ir(b,g)){a.deserializedFields_&&delete a.deserializedFields_[f.tag_];var l=Gr(f);if(f.isRepeated()){f=Jr(b,g)||[];for(var m=0;m<f.length;m++)Foa(a,g,l?f[m].clone():f[m])}else f=Jr(b,g),l?(l=Jr(a,g))?Goa(l,f):Mr(a,g,f.clone()):Mr(a,g,f)}}};
Hr.prototype.clone=function(){var a=new this.constructor;a.copyFrom(this);return a};
var Ir=function(a,b){return null!=a.values_[b]},Jr=function(a,b){var c=a.values_[b];
return null==c?null:a.lazyDeserializer_?b in a.deserializedFields_?a.deserializedFields_[b]:(c=a.lazyDeserializer_.deserializeField(a,a.fields_[b],c),a.deserializedFields_[b]=c):c},Kr=function(a,b,c){var d=Jr(a,b);
return a.fields_[b].isRepeated()?d[c||0]:d},Lr=function(a,b,c){if(Ir(a,b))a=Kr(a,b,c);else
a:{a=a.fields_[b];if(void 0===a.defaultValue_)if(b=a.nativeType_,b===Boolean)a.defaultValue_=!1;else if(b===Number)a.defaultValue_=0;else if(b===String)a.defaultValue_=a.deserializationConversionPermitted_?"0":"";else{a=new b;break a}a=a.defaultValue_}return a},Or=function(a,b){return a.fields_[b].isRepeated()?Ir(a,b)?a.values_[b].length:0:Ir(a,b)?1:0},Mr=function(a,b,c){a.values_[b]=c;
a.deserializedFields_&&(a.deserializedFields_[b]=c)},Foa=function(a,b,c){a.values_[b]||(a.values_[b]=[]);
a.values_[b].push(c);a.deserializedFields_&&delete a.deserializedFields_[b]};
Hr.prototype.checkFieldType_=function(){};
var Nr=function(a,b){delete a.values_[b];a.deserializedFields_&&delete a.deserializedFields_[b]},Pr=function(a,b){var c=[],d=b[0],f;
for(f in b)0!=f&&c.push(new Fr(a,f,b[f]));return new Dr(a,d,c)};var Qr=function(){Hr.call(this)};
w(Qr,Hr);var Hoa=null;e=Qr.prototype;e.getAuthuser=function(){return Kr(this,1)};
e.getAuthuserOrDefault=function(){return Lr(this,1)};
e.setAuthuser=function(a){Mr(this,1,a)};
e.hasAuthuser=function(){return Ir(this,1)};
e.authuserCount=function(){return Or(this,1)};
e.clearAuthuser=function(){Nr(this,1)};
e.getClientType=function(){return Kr(this,2)};
e.getClientTypeOrDefault=function(){return Lr(this,2)};
e.hasClientType=function(){return Ir(this,2)};
e.clientTypeCount=function(){return Or(this,2)};
e.clearClientType=function(){Nr(this,2)};
e.getInitDelayMs=function(){return Kr(this,3)};
e.hasInitDelayMs=function(){return Ir(this,3)};
e.initDelayMsCount=function(){return Or(this,3)};
e.clearInitDelayMs=function(){Nr(this,3)};
e.getServiceOverrideOrDefault=function(){return Lr(this,4)};
e.serviceOverrideCount=function(){return Or(this,4)};
e.clearServiceOverride=function(){Nr(this,4)};
e.getGapiSrcOrDefault=function(){return Lr(this,5)};
e.setGapiSrc=function(a){Mr(this,5,a)};
e.hasGapiSrc=function(){return Ir(this,5)};
e.gapiSrcCount=function(){return Or(this,5)};
e.clearGapiSrc=function(){Nr(this,5)};
e.getPropertyIdOrDefault=function(){return Lr(this,6)};
e.setPropertyId=function(a){Mr(this,6,a)};
e.propertyIdCount=function(){return Or(this,6)};
e.clearPropertyId=function(){Nr(this,6)};
e.getApplicationVersionOrDefault=function(){return Lr(this,7)};
e.setApplicationVersion=function(a){Mr(this,7,a)};
e.applicationVersionCount=function(){return Or(this,7)};
e.clearApplicationVersion=function(){Nr(this,7)};
e.getRetryOnAuthErrorOrDefault=function(){return Lr(this,8)};
e.setRetryOnAuthError=function(a){Mr(this,8,a)};
e.hasRetryOnAuthError=function(){return Ir(this,8)};
e.retryOnAuthErrorCount=function(){return Or(this,8)};
e.clearRetryOnAuthError=function(){Nr(this,8)};
e.getGsidServletPathOrDefault=function(){return Lr(this,9)};
e.setGsidServletPath=function(a){Mr(this,9,a)};
e.hasGsidServletPath=function(){return Ir(this,9)};
e.gsidServletPathCount=function(){return Or(this,9)};
e.clearGsidServletPath=function(){Nr(this,9)};
e.getPageId=function(){return Kr(this,10)};
e.getPageIdOrDefault=function(){return Lr(this,10)};
e.setPageId=function(a){Mr(this,10,a)};
e.pageIdCount=function(){return Or(this,10)};
e.clearPageId=function(){Nr(this,10)};
e.getInitialRetryDelayMs=function(){return Kr(this,11)};
e.setInitialRetryDelayMs=function(a){Mr(this,11,a)};
e.hasInitialRetryDelayMs=function(){return Ir(this,11)};
e.initialRetryDelayMsCount=function(){return Or(this,11)};
e.clearInitialRetryDelayMs=function(){Nr(this,11)};
e.getMaxBackoffFactor=function(){return Kr(this,12)};
e.setMaxBackoffFactor=function(a){Mr(this,12,a)};
e.hasMaxBackoffFactor=function(){return Ir(this,12)};
e.maxBackoffFactorCount=function(){return Or(this,12)};
e.clearMaxBackoffFactor=function(){Nr(this,12)};
e.getUseSharedChannelOrDefault=function(){return Lr(this,13)};
e.setUseSharedChannel=function(a){Mr(this,13,a)};
e.hasUseSharedChannel=function(){return Ir(this,13)};
e.useSharedChannelCount=function(){return Or(this,13)};
e.clearUseSharedChannel=function(){Nr(this,13)};
e.getStableConnectionThresholdMs=function(){return Kr(this,14)};
e.setStableConnectionThresholdMs=function(a){Mr(this,14,a)};
e.hasStableConnectionThresholdMs=function(){return Ir(this,14)};
e.stableConnectionThresholdMsCount=function(){return Or(this,14)};
e.clearStableConnectionThresholdMs=function(){Nr(this,14)};
var Rr=function(){Hr.call(this)};
w(Rr,Hr);var Ioa=null;e=Rr.prototype;e.getOrigin=function(){return Kr(this,1)};
e.getOriginOrDefault=function(){return Lr(this,1)};
e.setOrigin=function(a){Mr(this,1,a)};
e.hasOrigin=function(){return Ir(this,1)};
e.originCount=function(){return Or(this,1)};
e.clearOrigin=function(){Nr(this,1)};
e.getScheme=function(){return Kr(this,2)};
e.getSchemeOrDefault=function(){return Lr(this,2)};
e.setScheme=function(a){Mr(this,2,a)};
e.hasScheme=function(){return Ir(this,2)};
e.schemeCount=function(){return Or(this,2)};
e.clearScheme=function(){Nr(this,2)};
e.getToken=function(){return Kr(this,3)};
e.getTokenOrDefault=function(){return Lr(this,3)};
e.setToken=function(a){Mr(this,3,a)};
e.hasToken=function(){return Ir(this,3)};
e.tokenCount=function(){return Or(this,3)};
e.clearToken=function(){Nr(this,3)};
e.getAuthuser=function(){return Kr(this,4)};
e.getAuthuserOrDefault=function(){return Lr(this,4)};
e.setAuthuser=function(a){Mr(this,4,a)};
e.hasAuthuser=function(){return Ir(this,4)};
e.authuserCount=function(){return Or(this,4)};
e.clearAuthuser=function(){Nr(this,4)};
Qr.prototype.getDescriptor=function(){var a=Hoa;a||(Hoa=a=Pr(Qr,{0:{name:"BrowserChannelConfig",fullName:"buzz.channel.proto.BrowserChannelConfig"},1:{name:"authuser",fieldType:4,type:Number},2:{name:"client_type",fieldType:9,type:String},3:{name:"init_delay_ms",fieldType:5,type:Number},4:{name:"service_override",fieldType:9,type:String},5:{name:"gapi_src",fieldType:9,type:String},6:{name:"property_id",fieldType:9,type:String},7:{name:"application_version",fieldType:9,type:String},8:{name:"retry_on_auth_error",
fieldType:8,type:Boolean},9:{name:"gsid_servlet_path",fieldType:9,type:String},10:{name:"page_id",fieldType:9,type:String},11:{name:"initial_retry_delay_ms",fieldType:5,defaultValue:1E4,type:Number},12:{name:"max_backoff_factor",fieldType:5,defaultValue:180,type:Number},13:{name:"use_shared_channel",fieldType:8,type:Boolean},14:{name:"stable_connection_threshold_ms",fieldType:5,defaultValue:3E5,type:Number}}));return a};
Qr.getDescriptor=Qr.prototype.getDescriptor;Rr.prototype.getDescriptor=function(){var a=Ioa;a||(Ioa=a=Pr(Rr,{0:{name:"AuthenticationParameters",fullName:"buzz.channel.proto.AuthenticationParameters"},1:{name:"origin",fieldType:9,type:String},2:{name:"scheme",fieldType:5,type:Number},3:{name:"token",fieldType:9,type:String},4:{name:"authuser",fieldType:13,type:Number}}));return a};
Rr.getDescriptor=Rr.prototype.getDescriptor;var Joa={APISIDHASH:1,SAPISIDHASH:2,OAuth:3},Koa={1:"APISIDHASH",2:"SAPISIDHASH",3:"OAuth"};var Sr=function(a){this.map_=new jj;a&&this.addAll(a)},Tr=function(a){var b=typeof a;
return"object"==b&&a||"function"==b?"o"+Ra(a):b.substr(0,1)+a};
e=Sr.prototype;e.getCount=function(){return this.map_.getCount()};
e.add=function(a){this.map_.set(Tr(a),a)};
e.addAll=function(a){a=br(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c])};
e.removeAll=function(a){a=br(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};
e.remove=function(a){return this.map_.remove(Tr(a))};
e.clear=function(){this.map_.clear()};
e.isEmpty=function(){return this.map_.isEmpty()};
e.contains=function(a){return this.map_.containsKey(Tr(a))};
e.containsAll=function(a){return eoa(a,this.contains,this)};
e.intersection=function(a){var b=new Sr;a=br(a);for(var c=0;c<a.length;c++){var d=a[c];this.contains(d)&&b.add(d)}};
e.difference=function(a){var b=this.clone();b.removeAll(a);return b};
e.getValues=function(){return this.map_.getValues()};
e.clone=function(){return new Sr(this)};
e.equals=function(a){return this.getCount()==coa(a)&&Loa(this,a)};
var Loa=function(a,b){var c=coa(b);if(a.getCount()>c)return!1;!(b instanceof Sr)&&5<c&&(b=new Sr(b));return eoa(a,function(d){var f=b;return f.contains&&"function"==typeof f.contains?f.contains(d):f.containsValue&&"function"==typeof f.containsValue?f.containsValue(d):Oa(f)||"string"===typeof f?lb(f,d):A.containsValue(f,d)})};
Sr.prototype.__iterator__=function(){return this.map_.__iterator__(!1)};function Moa(a){var b={},c=a.getScheme();a.hasToken()&&Noa.contains(c)&&(b.Authorization=Koa[c]+" "+a.getToken(),Ooa.contains(c)&&(b["X-Origin"]=a.getOrigin(),b["X-Goog-AuthUser"]=a.getAuthuserOrDefault()));return b}
var Noa=new Sr([1,2,3]),Ooa=new Sr([1,2]);var Poa=function(){var a=8;a=void 0===a?1:a;this.periodMs=3E5;this.max=8;this.lastAddedTimestampMs=Date.now();this.tokens=a};
Poa.prototype.update=function(){var a=Date.now();a=Math.floor((a-this.lastAddedTimestampMs)/this.periodMs);this.tokens=Math.min(this.tokens+a,this.max);this.lastAddedTimestampMs+=a*this.periodMs};var Ur=function(a,b){var c=Math.random;this.initialMaxDelayMs_=a;this.maxBackoffMultiplier_=b;this.random_=c;this.reset()};
Ur.prototype.reset=function(){this.currentMaxDelayMs_=this.initialMaxDelayMs_;this.inRetryMode_=!1};
var Vr=function(a){var b=0;if(a.inRetryMode_){b=Math.ceil(a.random_()*a.currentMaxDelayMs_);var c=a.initialMaxDelayMs_*a.maxBackoffMultiplier_;a.currentMaxDelayMs_<=c&&(a.currentMaxDelayMs_*=2,a.currentMaxDelayMs_>c&&(a.currentMaxDelayMs_=c))}a.inRetryMode_=!0;return b};var Wr=function(){this.logger_=null};
e=Wr.prototype;e.severe=function(){};
e.warning=function(){};
e.info=function(){};
e.fine=function(){};
e.isLoggable=function(){return null!=this.logger_&&Ea.log.ENABLED&&null};
e.setLevel=function(){};
e.logInternalLevel_=function(){};var Xr=function(){};
Xr.prototype.getSerializedValue=function(a,b){return Gr(a)?this.serialize(b):"number"!==typeof b||isFinite(b)?b:b.toString()};
Xr.prototype.deserialize=function(a,b){a=new a.messageType_;this.deserializeTo(a,b);return a};
Xr.prototype.getDeserializedValue=function(a,b){if(Gr(a))return b instanceof Hr?b:this.deserialize(a.nativeType_.prototype.getDescriptor(),b);if(14==a.fieldType_)return"string"===typeof b&&Qoa.test(b)&&(a=Number(b),0<a)?a:b;if(!a.deserializationConversionPermitted_)return b;a=a.nativeType_;if(a===String){if("number"===typeof b)return String(b)}else if(a===Number&&"string"===typeof b&&("Infinity"===b||"-Infinity"===b||"NaN"===b||Qoa.test(b)))return Number(b);return b};
var Qoa=/^-?[0-9]+$/;var Yr=function(a,b,c){this.keyOption_=a;this.serializeBooleanAsNumber_=b;this.ignoreUnknownFields_=c};
w(Yr,Xr);Yr.prototype.serialize=function(a){for(var b=a.getDescriptor().getFields(),c={},d=0;d<b.length;d++){var f=b[d],g=f.tag_;switch(this.keyOption_){case 1:g=f.getName();break;case 2:g=Jc(f.getName().replace(/_/g,"-"));}if(a.has(f))if(f.isRepeated()){var l=[];c[g]=l;for(g=0;g<Or(a,f.tag_);g++)l.push(this.getSerializedValue(f,a.get(f,g)))}else c[g]=this.getSerializedValue(f,a.get(f))}Eoa(a,function(m,n){c[m]=n});
return c};
Yr.prototype.getSerializedValue=function(a,b){return this.serializeBooleanAsNumber_&&8==a.fieldType_&&"boolean"===typeof b?b?1:0:Yr.superClass_.getSerializedValue.call(this,a,b)};
Yr.prototype.getDeserializedValue=function(a,b){return 8==a.fieldType_&&"number"===typeof b?!!b:Yr.superClass_.getDeserializedValue.call(this,a,b)};
Yr.prototype.deserializeTo=function(a,b){var c=a.getDescriptor(),d;for(d in b){var f=b[d],g=!/[^0-9]/.test(d);if(g)var l=c.fields_[parseInt(d,10)]||null;else 2==this.keyOption_&&(d=Kc(d).replace(/\-/g,"_")),l=Er(c,d);if(l){if(l.isRepeated())for(g=0;g<f.length;g++)a.add(l,this.getDeserializedValue(l,f[g]));else a.set(l,this.getDeserializedValue(l,f));}else g&&(l=a,g=Number(d),l.values_[g]=f,l.deserializedFields_&&delete l.deserializedFields_[g])}};var Zr=function(a,b){this.ignoreMissingFields_=!!a;this.useEnumValues_=!!b};
w(Zr,Xr);Zr.prototype.deserializeTo=function(a,b){var c=new $r;c.parse(a,b.toString(),this.ignoreMissingFields_)||c.getError()};
Zr.prototype.serialize=function(a){var b=new as;bs(this,a,b);return b.toString()};
var bs=function(a,b,c){var d=b.getDescriptor().getFields();cb(d,function(f){if(b.has(f))for(var g=Or(b,f.tag_),l=0;l<g;++l){c.append(f.getName());11==f.fieldType_||10==f.fieldType_?(c.append(" {"),cs(c),c.indentation_+=2):c.append(": ");Roa(this,b.get(f,l),f,c);if(11==f.fieldType_||10==f.fieldType_)c.indentation_-=2,c.append("}");cs(c)}},a);
Eoa(b,function(f,g){ds(this,f,g,c)},a)},ds=function(a,b,c,d){if(null!=c)if(Array.isArray(c))cb(c,function(g){ds(this,b,g,d)},a);else
{if(Pa(c)){d.append(b);d.append(" {");cs(d);d.indentation_+=2;if(c instanceof Hr)bs(a,c,d);else for(var f in c)ds(a,Eba(f),c[f],d);d.indentation_-=2;d.append("}")}else"string"===typeof c&&(c=Aba(c)),d.append(b),d.append(": "),d.append(c);cs(d)}},Roa=function(a,b,c,d){switch(c.fieldType_){case 1:case 2:case 3:case 4:case 5:case 13:case 6:case 7:case 8:case 15:case 16:case 17:case 18:d.append(b);
break;case 12:case 9:b=Aba(b.toString());d.append(b);break;case 14:if(!a.useEnumValues_){var f=!1;A.forEach(c.nativeType_,function(g,l){f||g!=b||(d.append(l),f=!0)})}f&&!a.useEnumValues_||d.append(b.toString());
break;case 10:case 11:bs(a,b,d);}},as=function(){this.indentation_=0;
this.buffer_=[];this.requiresIndentation_=!0};
as.prototype.toString=function(){return this.buffer_.join("")};
as.prototype.append=function(a){if(this.requiresIndentation_){for(var b=0;b<this.indentation_;++b)this.buffer_.push(" ");this.requiresIndentation_=!1}this.buffer_.push(String(a))};
var cs=function(a){a.buffer_.push("\n");a.requiresIndentation_=!0},Soa=function(a){this.ignoreComments_=this.ignoreWhitespace_=!0;
this.data_=a;this.index_=0;this.currentData_=a;this.current_={type:es,value:null}},es=/---end---/,fs=/^-?[a-zA-Z][a-zA-Z0-9_]*/,gs=/^(0x[0-9a-f]+)|(([-])?[0-9][0-9]*(\.?[0-9]+)?(e[+-]?[0-9]+|[f])?)/,hs=/^#.*/,is=/^"([^"\\]|\\.)*"/,js=/^\s/,Toa={END:es,
IDENTIFIER:fs,NUMBER:gs,COMMENT:hs,OPEN_BRACE:/^{/,CLOSE_BRACE:/^}/,OPEN_TAG:/^</,CLOSE_TAG:/^>/,OPEN_LIST:/^\[/,CLOSE_LIST:/^\]/,STRING:is,COLON:/^:/,COMMA:/^,/,SEMI:/^;/,WHITESPACE:js};Soa.prototype.next=function(){for(;Uoa(this);){var a=this.current_.type;if(a!=js&&a!=hs||a==js&&!this.ignoreWhitespace_||a==hs&&!this.ignoreComments_)return!0}this.current_={type:es,value:null};return!1};
var Uoa=function(a){if(a.index_>=a.data_.length)return!1;var b=a.currentData_,c=null;A.some(Toa,function(d){if(c||d==es)return!1;var f=d.exec(b);f&&0==f.index&&(c={type:d,value:f[0]});return!!c});
c&&(a.current_=c,a.index_+=c.value.length,a.currentData_=a.currentData_.substring(c.value.length));return!!c},$r=function(){this.tokenizer_=this.error_=null;
this.ignoreMissingFields_=!1};
$r.prototype.parse=function(a,b,c){this.error_=null;this.ignoreMissingFields_=!!c;this.tokenizer_=new Soa(b);this.tokenizer_.next();return ks(this,a,"")};
$r.prototype.getError=function(){return this.error_};
var ks=function(a,b,c){for(;">"!=a.tokenizer_.current_.value&&"}"!=a.tokenizer_.current_.value&&a.tokenizer_.current_.type!=es;)if(!Voa(a,b))return!1;if(c){if(!ls(a,c))return!1}else a.tokenizer_.current_.type!=es&&(a.error_="Expected END token");return!0},Xoa=function(a,b,c){a=Woa(a,c);
if(null===a)return!1;c.isRepeated()?b.add(c,a):b.set(c,a);return!0},ms=function(a){return Pb(a,".")?parseFloat(a):Eba(a)},Woa=function(a,b){switch(b.fieldType_){case 1:case 2:if(b=ns(a,fs))if(b=/^-?inf(?:inity)?f?$/i.test(b)?Infinity*(Lb(b,"-")?-1:1):/^nanf?$/i.test(b)?NaN:null,null!=b)return b;
case 5:case 13:case 7:case 15:case 17:return(a=ns(a,gs))?ms(a):null;case 3:case 4:case 6:case 16:case 18:return(a=ns(a,gs))?b.nativeType_==Number?ms(a):a:null;case 8:b=ns(a,fs);if(!b)return null;switch(b){case"true":return!0;case"false":return!1;default:return a.error_="Unknown type for bool: "+b,null;}case 14:if(a.tokenizer_.current_.type==gs)return(a=ns(a,gs))?ms(a):null;var c=ns(a,fs);if(!c)return null;b=b.nativeType_[c];return null==b?(a.error_="Unknown enum value: "+c,null):b;case 12:case 9:if(b=
ns(a,is)){for(c=JSON.parse(b).toString();a.tokenizer_.current_.type==is;)b=ns(a,is),c+=JSON.parse(b).toString();a=c}else a=null;return a;}},Yoa=function(a){os(a,":");
if(os(a,"[")){for(;;){a.tokenizer_.next();if(os(a,"]"))break;if(!ls(a,","))return!1}return!0}if(os(a,"<"))return ks(a,null,">");if(os(a,"{"))return ks(a,null,"}");a.tokenizer_.next();return!0},Voa=function(a,b){var c=ns(a,fs);
if(!c)return a.error_="Missing field name",!1;var d=null;b&&(d=Er(b.getDescriptor(),c.toString()));if(null==d){if(a.ignoreMissingFields_)return Yoa(a);a.error_="Unknown field: "+c;return!1}if(11==d.fieldType_||10==d.fieldType_){os(a,":");a:{c=d;if(os(a,"<"))d=">";else{if(!ls(a,"{")){b=!1;break a}d="}"}var f=new(c.nativeType_.prototype.getDescriptor().messageType_);ks(a,f,d)?(c.isRepeated()?b.add(c,f):b.set(c,f),b=!0):b=!1}if(!b)return!1}else{if(!ls(a,":"))return!1;if(d.isRepeated()&&os(a,"["))for(;;){if(!Xoa(a,
b,d))return!1;if(os(a,"]"))break;if(!ls(a,","))return!1}else if(!Xoa(a,b,d))return!1}os(a,",")||os(a,";");return!0},os=function(a,b){return a.tokenizer_.current_.value==b?(a.tokenizer_.next(),!0):!1},ns=function(a,b){if(a.tokenizer_.current_.type!=b)return a.error_="Expected token type: "+b,null;
b=a.tokenizer_.current_.value;a.tokenizer_.next();return b},ls=function(a,b){return os(a,b)?!0:(a.error_="Expected token \""+b+"\"",!1)};var Zoa=new Yr(0),$oa=new Yr(2),apa=new Zr,ps=function(a){a=Zoa.serialize(a);return uj(a)},bpa=JSON.parse,cpa=function(a,b){try{var c=bpa(b)}catch(f){return null}try{var d=$oa.deserialize(a,c)}catch(f){return null}return null==d?null:d};
Hr.prototype.toString=function(){return apa.serialize(this)};
var dpa=function(a){var b=cg(document,a);null==b&&(b=ng("DIV",{id:a,style:"display:none"}),eg(document,"body",void 0,void 0)[0].appendChild(b));return b};var qs=function(){zi.call(this);this.eventHandler_=new Oq(this);hfa&&(ifa?this.eventHandler_.listen(jfa?document.body:window,["online","offline"],this.handleChange_):(this.online_=this.isOnline(),this.timer_=new Xi(250),this.eventHandler_.listen(this.timer_,"tick",this.handleTick_),this.timer_.start()))};
w(qs,zi);qs.prototype.isOnline=function(){return hfa?navigator.onLine:!0};
qs.prototype.handleTick_=function(){var a=this.isOnline();a!=this.online_&&(this.online_=a,this.handleChange_())};
qs.prototype.handleChange_=function(){var a=this.isOnline()?"online":"offline";this.dispatchEvent(a)};
qs.prototype.disposeInternal=function(){qs.superClass_.disposeInternal.call(this);this.eventHandler_.dispose();this.eventHandler_=null;this.timer_&&(this.timer_.dispose(),this.timer_=null)};var epa=function(a,b,c){return new rs(a,b,c)},ss=function(a,b,c,d){d=void 0===d?epa:d;
this.baseUri=a;this.handler=b;this.config=c;this.browserChannelProvider=d;this.hasBeenDisposed=!1;this.protocolVersion="5";this.stateVersionNumber=this.state=0;this.logger=new Wr;this.eventHandler=new Oq;this.delayGeneratorOnQuota=new Ur(3E5,12);this.delayGeneratorOnNotFound=new Ur(250,7200);this.authParams=new Rr;this.immediateConnectionRateLimiter=new Poa;this.lastStatusCode=-1;this.authState=0;this.eventHandler.listen(Lq,"statevent",this.onStatEvent.bind(this));this.delayGenerator=new Ur(Lr(c,
11),Lr(c,12));Vr(this.delayGeneratorOnQuota);Vr(this.delayGeneratorOnNotFound)};
p(ss,Br);ss.prototype.getStateForTest=function(){return this.state};
ss.prototype.getImmediateConnectBudgetForTest=function(){var a=this.immediateConnectionRateLimiter;a.update();return a.tokens};
var ts=function(a,b){b!==a.state&&(a.state=b,a.stateVersionNumber++);return a.stateVersionNumber};
e=ss.prototype;e.updateAuthParams=function(a){var b=!this.authParams||this.authParams.getToken()!==a.getToken();this.authParams=a.clone();this.browserChannel&&(a=Moa(this.authParams),this.browserChannel.setExtraHeaders(a));b&&(b=this.authState,this.authState=1,2===b&&this.tryImmediateReconnectByUserRequest())};
e.start=function(){ts(this,1);this.open(this.delayGenerator)};
e.startHandoff=function(){};
e.open=function(a){var b=this;if(1===this.state){ts(this,2);a=Vr(a)+Lr(this.config,3);Mr(this.config,3,0);var c=this.stateVersionNumber;Yi(function(){fpa(b,c)},a)}};
e.tryImmediateReconnectByUserRequest=function(){switch(this.state){case 1:case 2:var a=this.immediateConnectionRateLimiter;a.update();0<a.tokens?(a.tokens--,a=!0):a=!1;a&&(2===this.authState&&(this.authState=0),fpa(this,this.stateVersionNumber));}};
e.handleStuckChannel=function(a){switch(a.getState()){case 1:case 2:a.disconnect();this.handler.channelStatEvent(1001,this);a.getId();break;case 3:a.disconnect(),this.handler.channelStatEvent(1002,this),a.getId();}};
var fpa=function(a,b){if(a.stateVersionNumber===b){var c=ts(a,3);a.browserChannel=a.browserChannelProvider(a.protocolVersion,a.handleStuckChannel.bind(a),c);a.browserChannel.setHandler(a);5===a.authParams.getScheme()?a.browserChannel.setSupportsCrossDomainXhrs(!0):(b=Moa(a.authParams),a.browserChannel.setExtraHeaders(b));2===a.authState?(a.handler.channelError(new Cr(2,401),a),a.browserChannel.disconnect()):(a.authState=0,Kr(a.config,9)?gpa(Kr(a.config,9),function(d){a.stateVersionNumber===c&&(d&&(
a.gsessionid=d),hpa(a))}):hpa(a))}},hpa=function(a){var b=a.baseUri+"/cbp",c=a.baseUri+"/bind",d={};
ipa(a,d);a.browserChannel.connect(b,c,d)},ipa=function(a,b){a.authParams.hasAuthuser()&&(b.authuser=a.authParams.getAuthuser());
4===a.authParams.getScheme()&&(b.app_auth=a.authParams.getToken());b.ctype=a.config.getClientType();Ir(a.config,4)&&(b.service=Kr(a.config,4));Ir(a.config,6)&&(b.prop=Kr(a.config,6));Ir(a.config,7)&&(b.appver=Kr(a.config,7));a.gsessionid&&(b.gsessionid=a.gsessionid);Ir(a.config,10)&&(b.pageId=a.config.getPageId());Kr(a.config,13)&&(b.sw=!0)};
e=ss.prototype;e.getAdditionalParams=function(){var a={};ipa(this,a);return a};
e.close=function(){ts(this,1);this.browserChannel&&this.browserChannel.disconnect()};
e.sendMap=function(a){this.browserChannel&&this.browserChannel.sendMap(a)};
e.channelOpened=function(a){var b=this;if(a===this.browserChannel){ts(this,4);this.delayGeneratorOnQuota.reset();Vr(this.delayGeneratorOnQuota);var c=this.stateVersionNumber;Yi(function(){b.stateVersionNumber!==c||b.delayGenerator.reset()},Lr(this.config,14));
this.handler.channelOpened(this)}};
e.channelHandleArray=function(a,b){if(a===this.browserChannel){a=[];b=k(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.gsid;d?this.gsessionid=d:(d=c.osc)?400<=d&&499>=d&&(this.lastStatusCode=d,this.handler.channelError(new Cr(2,d),this),void 0!==this.browserChannel&&this.browserChannel.disconnect()):a.push(c)}0<a.length&&this.handler.channelHandleArray(a,this)}};
e.channelError=function(a,b){a===this.browserChannel&&(this.lastStatusCode=a.getLastStatusCode(),this.handler.channelError(new Cr(b,this.lastStatusCode),this))};
e.channelClosed=function(a){if(a===this.browserChannel){a=this.state;ts(this,1);if(4===a||3===a){a=this.delayGenerator;switch(this.lastStatusCode){case 401:0!==this.authState||Kr(this.config,8)||(this.authState=2);break;case 403:case 429:a=this.delayGeneratorOnQuota;break;case 404:a=this.delayGeneratorOnNotFound;}this.open(a)}this.lastStatusCode=-1;this.browserChannel=void 0;this.handler.channelClosed(this)}};
e.onStatEvent=function(a){this.handler.channelStatEvent(a.stat,this)};
e.dispose=function(){Sg(this.eventHandler);this.hasBeenDisposed=!0};
e.isDisposed=function(){return this.hasBeenDisposed};
var jpa=function(a,b){toa(a,function(c){var d=null;try{var f=c.target;if(f.isSuccess()){var g=bpa(f.getResponseText());d={count:Number(g[0]),gsid:g[1].toString()}}}catch(l){}b(d)},"GET",void 0,void 0,500)},gpa=function(a,b){jpa(a,function(c){c?jpa(a,function(d){d?b(c.count<d.count?c.gsid:d.gsid):b(void 0)}):b(void 0)})};
ss.prototype.installOnlineHandler=function(){var a=new qs;this.eventHandler.listen(a,"online",this.onBrowserOnline.bind(this))};
ss.prototype.onBrowserOnline=function(){2!==this.authState&&this.tryImmediateReconnectByUserRequest()};
var us=function(a,b){this.browserChannel=a;this.onStuck=b;this.checksSinceLastActivity=0;this.logger=new Wr};
us.prototype.checkActivity=function(){this.checksSinceLastActivity++;switch(this.browserChannel.getState()){case 1:case 2:if(3===this.checksSinceLastActivity){this.onStuck(this.browserChannel);return}break;case 3:if(5===this.checksSinceLastActivity){this.onStuck(this.browserChannel);return}break;case 0:return;}this.schedule();this.browserChannel.getId()};
us.prototype.schedule=function(){Yi(this.checkActivity,2E4,this)};
var rs=function(a,b,c){xr.call(this,a);this.id=c;this.watchdog=new us(this,b);this.watchdog.schedule()};
p(rs,xr);rs.prototype.getId=function(){return this.id};
rs.prototype.onRequestData=function(a,b){var c=this.watchdog;3===c.browserChannel.getState()&&(c.checksSinceLastActivity=0);xr.prototype.onRequestData.call(this,a,b)};var kpa=function(a,b,c){return new ss(a,b,c)};var lpa=/Cobalt\/(\d+)/,vs=null;function mpa(){if(!vs){var a;if(!(a=npa()))try{var b=lpa.exec(ec);a=!!b&&20<=Number(b[1])}catch(c){a=!1}vs=a?"0":Math.floor(30*Math.random()).toString()}return vs}
function npa(){try{if(t.PerformanceNavigationTiming){var a=performance.getEntriesByType("navigation")[0];return"hq"===a.nextHopProtocol||"h2"===a.nextHopProtocol}return!!t.chrome.loadTimes().wasFetchedViaSpdy}catch(b){return!1}}
;var ws=function(){Hr.call(this)};
w(ws,Hr);var opa=null;e=ws.prototype;e.getMajorVersion=function(){return Kr(this,1)};
e.getMajorVersionOrDefault=function(){return Lr(this,1)};
e.hasMajorVersion=function(){return Ir(this,1)};
e.majorVersionCount=function(){return Or(this,1)};
e.clearMajorVersion=function(){Nr(this,1)};
e.getMinorVersion=function(){return Kr(this,2)};
e.getMinorVersionOrDefault=function(){return Lr(this,2)};
e.hasMinorVersion=function(){return Ir(this,2)};
e.minorVersionCount=function(){return Or(this,2)};
e.clearMinorVersion=function(){Nr(this,2)};
var xs=function(){Hr.call(this)};
w(xs,Hr);var ppa=null;e=xs.prototype;e.getVersion=function(){return Kr(this,1)};
e.getVersionOrDefault=function(){return Lr(this,1)};
e.setVersion=function(a){Mr(this,1,a)};
e.hasVersion=function(){return Ir(this,1)};
e.versionCount=function(){return Or(this,1)};
e.clearVersion=function(){Nr(this,1)};
var ys=function(){Hr.call(this)};
w(ys,Hr);var qpa=null;e=ys.prototype;e.getVersion=function(){return Kr(this,1)};
e.getVersionOrDefault=function(){return Lr(this,1)};
e.setVersion=function(a){Mr(this,1,a)};
e.hasVersion=function(){return Ir(this,1)};
e.versionCount=function(){return Or(this,1)};
e.clearVersion=function(){Nr(this,1)};
e.getPlatform=function(){return Kr(this,2)};
e.getPlatformOrDefault=function(){return Lr(this,2)};
e.hasPlatform=function(){return Ir(this,2)};
e.platformCount=function(){return Or(this,2)};
e.clearPlatform=function(){Nr(this,2)};
e.getLanguage=function(){return Kr(this,3)};
e.getLanguageOrDefault=function(){return Lr(this,3)};
e.hasLanguage=function(){return Ir(this,3)};
e.languageCount=function(){return Or(this,3)};
e.clearLanguage=function(){Nr(this,3)};
e.getApplicationInfo=function(){return Kr(this,4)};
e.getApplicationInfoOrDefault=function(){return Lr(this,4)};
e.hasApplicationInfo=function(){return Ir(this,4)};
e.applicationInfoCount=function(){return Or(this,4)};
e.clearApplicationInfo=function(){Nr(this,4)};
var zs=function(){Hr.call(this)};
w(zs,Hr);var rpa=null;e=zs.prototype;e.getServiceName=function(){return Kr(this,1)};
e.getServiceNameOrDefault=function(){return Lr(this,1)};
e.hasServiceName=function(){return Ir(this,1)};
e.serviceNameCount=function(){return Or(this,1)};
e.clearServiceName=function(){Nr(this,1)};
e.getSessionName=function(){return Kr(this,2)};
e.getSessionNameOrDefault=function(){return Lr(this,2)};
e.hasSessionName=function(){return Ir(this,2)};
e.sessionNameCount=function(){return Or(this,2)};
e.clearSessionName=function(){Nr(this,2)};
var As=function(){Hr.call(this)};
w(As,Hr);var spa=null;e=As.prototype;e.getHeader=function(){return Kr(this,1)};
e.getHeaderOrDefault=function(){return Lr(this,1)};
e.setHeader=function(a){Mr(this,1,a)};
e.hasHeader=function(){return Ir(this,1)};
e.headerCount=function(){return Or(this,1)};
e.clearHeader=function(){Nr(this,1)};
e.getInitEndpointMessage=function(){return Kr(this,2)};
e.getInitEndpointMessageOrDefault=function(){return Lr(this,2)};
e.hasInitEndpointMessage=function(){return Ir(this,2)};
e.initEndpointMessageCount=function(){return Or(this,2)};
e.clearInitEndpointMessage=function(){Nr(this,2)};
e.getInitSessionMessage=function(){return Kr(this,3)};
e.getInitSessionMessageOrDefault=function(){return Lr(this,3)};
e.setInitSessionMessage=function(a){Mr(this,3,a)};
e.hasInitSessionMessage=function(){return Ir(this,3)};
e.initSessionMessageCount=function(){return Or(this,3)};
e.clearInitSessionMessage=function(){Nr(this,3)};
e.getClientDataMessageDeprecated=function(){return Kr(this,4)};
e.getClientDataMessageDeprecatedOrDefault=function(){return Lr(this,4)};
e.setClientDataMessageDeprecated=function(a){Mr(this,4,a)};
e.hasClientDataMessageDeprecated=function(){return Ir(this,4)};
e.clientDataMessageDeprecatedCount=function(){return Or(this,4)};
e.clearClientDataMessageDeprecated=function(){Nr(this,4)};
e.getSendOnDisconnectMessage=function(){return Kr(this,5)};
e.getSendOnDisconnectMessageOrDefault=function(){return Lr(this,5)};
e.setSendOnDisconnectMessage=function(a){Mr(this,5,a)};
e.hasSendOnDisconnectMessage=function(){return Ir(this,5)};
e.sendOnDisconnectMessageCount=function(){return Or(this,5)};
e.clearSendOnDisconnectMessage=function(){Nr(this,5)};
e.getCloseSessionMessage=function(){return Kr(this,6)};
e.getCloseSessionMessageOrDefault=function(){return Lr(this,6)};
e.hasCloseSessionMessage=function(){return Ir(this,6)};
e.closeSessionMessageCount=function(){return Or(this,6)};
e.clearCloseSessionMessage=function(){Nr(this,6)};
var Bs=function(){Hr.call(this)};
w(Bs,Hr);var tpa=null;e=Bs.prototype;e.getProtocolVersion=function(){return Kr(this,1)};
e.getProtocolVersionOrDefault=function(){return Lr(this,1)};
e.setProtocolVersion=function(a){Mr(this,1,a)};
e.hasProtocolVersion=function(){return Ir(this,1)};
e.protocolVersionCount=function(){return Or(this,1)};
e.clearProtocolVersion=function(){Nr(this,1)};
e.getClientVersion=function(){return Kr(this,2)};
e.getClientVersionOrDefault=function(){return Lr(this,2)};
e.hasClientVersion=function(){return Ir(this,2)};
e.clientVersionCount=function(){return Or(this,2)};
e.clearClientVersion=function(){Nr(this,2)};
e.getClientTimeMs=function(){return Kr(this,3)};
e.getClientTimeMsOrDefault=function(){return Lr(this,3)};
e.hasClientTimeMs=function(){return Ir(this,3)};
e.clientTimeMsCount=function(){return Or(this,3)};
e.clearClientTimeMs=function(){Nr(this,3)};
e.getMaxKnownServerTimeMs=function(){return Kr(this,4)};
e.getMaxKnownServerTimeMsOrDefault=function(){return Lr(this,4)};
e.hasMaxKnownServerTimeMs=function(){return Ir(this,4)};
e.maxKnownServerTimeMsCount=function(){return Or(this,4)};
e.clearMaxKnownServerTimeMs=function(){Nr(this,4)};
e.getMessageId=function(){return Kr(this,5)};
e.getMessageIdOrDefault=function(){return Lr(this,5)};
e.setMessageId=function(a){Mr(this,5,a)};
e.hasMessageId=function(){return Ir(this,5)};
e.messageIdCount=function(){return Or(this,5)};
e.clearMessageId=function(){Nr(this,5)};
var Cs=function(){Hr.call(this)};
w(Cs,Hr);var upa=null,Ds=function(){Hr.call(this)};
w(Ds,Hr);var vpa=null;e=Ds.prototype;e.getSessionId=function(){return Kr(this,1)};
e.getSessionIdOrDefault=function(){return Lr(this,1)};
e.setSessionId=function(a){Mr(this,1,a)};
e.hasSessionId=function(){return Ir(this,1)};
e.sessionIdCount=function(){return Or(this,1)};
e.clearSessionId=function(){Nr(this,1)};
e.getSubscriberInfo=function(){return Kr(this,2)};
e.getSubscriberInfoOrDefault=function(){return Lr(this,2)};
e.setSubscriberInfo=function(a){Mr(this,2,a)};
e.hasSubscriberInfo=function(){return Ir(this,2)};
e.subscriberInfoCount=function(){return Or(this,2)};
e.clearSubscriberInfo=function(){Nr(this,2)};
var Es=function(){Hr.call(this)};
w(Es,Hr);var wpa=null;e=Es.prototype;e.getSessionId=function(){return Kr(this,1)};
e.getSessionIdOrDefault=function(){return Lr(this,1)};
e.setSessionId=function(a){Mr(this,1,a)};
e.hasSessionId=function(){return Ir(this,1)};
e.sessionIdCount=function(){return Or(this,1)};
e.clearSessionId=function(){Nr(this,1)};
var Fs=function(){Hr.call(this)};
w(Fs,Hr);var xpa=null;e=Fs.prototype;e.getSessionId=function(){return Kr(this,1)};
e.getSessionIdOrDefault=function(){return Lr(this,1)};
e.setSessionId=function(a){Mr(this,1,a)};
e.hasSessionId=function(){return Ir(this,1)};
e.sessionIdCount=function(){return Or(this,1)};
e.clearSessionId=function(){Nr(this,1)};
e.getMessage=function(){return Kr(this,2)};
e.getMessageOrDefault=function(){return Lr(this,2)};
e.setMessage=function(a){Mr(this,2,a)};
e.hasMessage=function(){return Ir(this,2)};
e.messageCount=function(){return Or(this,2)};
e.clearMessage=function(){Nr(this,2)};
var Gs=function(){Hr.call(this)};
w(Gs,Hr);var ypa=null;e=Gs.prototype;e.getSessionId=function(){return Kr(this,1)};
e.getSessionIdOrDefault=function(){return Lr(this,1)};
e.setSessionId=function(a){Mr(this,1,a)};
e.hasSessionId=function(){return Ir(this,1)};
e.sessionIdCount=function(){return Or(this,1)};
e.clearSessionId=function(){Nr(this,1)};
e.getAddressOrDefault=function(){return Lr(this,2)};
e.setAddress=function(a){Mr(this,2,a)};
e.hasAddress=function(){return Ir(this,2)};
e.addressCount=function(){return Or(this,2)};
e.clearAddress=function(){Nr(this,2)};
e.getIsBroadcastToUser=function(){return Kr(this,3)};
e.setIsBroadcastToUser=function(a){Mr(this,3,a)};
e.hasIsBroadcastToUser=function(){return Ir(this,3)};
e.isBroadcastToUserCount=function(){return Or(this,3)};
e.clearIsBroadcastToUser=function(){Nr(this,3)};
e.getStatus=function(){return Kr(this,4)};
e.getStatusOrDefault=function(){return Lr(this,4)};
e.setStatus=function(a){Mr(this,4,a)};
e.hasStatus=function(){return Ir(this,4)};
e.statusCount=function(){return Or(this,4)};
e.clearStatus=function(){Nr(this,4)};
e.getSubscriberInfo=function(){return Kr(this,5)};
e.getSubscriberInfoOrDefault=function(){return Lr(this,5)};
e.setSubscriberInfo=function(a){Mr(this,5,a)};
e.hasSubscriberInfo=function(){return Ir(this,5)};
e.subscriberInfoCount=function(){return Or(this,5)};
e.clearSubscriberInfo=function(){Nr(this,5)};
var Hs=function(){Hr.call(this)};
w(Hs,Hr);var zpa=null;e=Hs.prototype;e.getHeader=function(){return Kr(this,1)};
e.getHeaderOrDefault=function(){return Lr(this,1)};
e.setHeader=function(a){Mr(this,1,a)};
e.hasHeader=function(){return Ir(this,1)};
e.headerCount=function(){return Or(this,1)};
e.clearHeader=function(){Nr(this,1)};
e.getServerDataMessageOrDefault=function(){return Lr(this,2)};
e.setServerDataMessage=function(a){Mr(this,2,a)};
e.serverDataMessageCount=function(){return Or(this,2)};
e.clearServerDataMessage=function(){Nr(this,2)};
e.getPostmanInvalidation=function(){return Kr(this,5)};
e.getPostmanInvalidationOrDefault=function(){return Lr(this,5)};
e.setPostmanInvalidation=function(a){Mr(this,5,a)};
e.hasPostmanInvalidation=function(){return Ir(this,5)};
e.postmanInvalidationCount=function(){return Or(this,5)};
e.clearPostmanInvalidation=function(){Nr(this,5)};
e.getChannelStatusMessageOrDefault=function(){return Lr(this,3)};
e.setChannelStatusMessage=function(a){Mr(this,3,a)};
e.channelStatusMessageCount=function(){return Or(this,3)};
e.clearChannelStatusMessage=function(){Nr(this,3)};
e.getSessionStatusMessage=function(){return Kr(this,4)};
e.getSessionStatusMessageOrDefault=function(){return Lr(this,4)};
e.setSessionStatusMessage=function(a){Mr(this,4,a)};
e.hasSessionStatusMessage=function(){return Ir(this,4)};
e.sessionStatusMessageCount=function(){return Or(this,4)};
e.clearSessionStatusMessage=function(){Nr(this,4)};
var Is=function(){Hr.call(this)};
w(Is,Hr);var Apa=null;e=Is.prototype;e.getProtocolVersion=function(){return Kr(this,1)};
e.getProtocolVersionOrDefault=function(){return Lr(this,1)};
e.setProtocolVersion=function(a){Mr(this,1,a)};
e.hasProtocolVersion=function(){return Ir(this,1)};
e.protocolVersionCount=function(){return Or(this,1)};
e.clearProtocolVersion=function(){Nr(this,1)};
e.getServerTimeMsOrDefault=function(){return Lr(this,4)};
e.setServerTimeMs=function(a){Mr(this,4,a)};
e.hasServerTimeMs=function(){return Ir(this,4)};
e.serverTimeMsCount=function(){return Or(this,4)};
e.clearServerTimeMs=function(){Nr(this,4)};
e.getMessageId=function(){return Kr(this,5)};
e.getMessageIdOrDefault=function(){return Lr(this,5)};
e.setMessageId=function(a){Mr(this,5,a)};
e.hasMessageId=function(){return Ir(this,5)};
e.messageIdCount=function(){return Or(this,5)};
e.clearMessageId=function(){Nr(this,5)};
var Js=function(){Hr.call(this)};
w(Js,Hr);var Bpa=null;e=Js.prototype;e.getCode=function(){return Kr(this,1)};
e.getCodeOrDefault=function(){return Lr(this,1)};
e.setCode=function(a){Mr(this,1,a)};
e.hasCode=function(){return Ir(this,1)};
e.codeCount=function(){return Or(this,1)};
e.clearCode=function(){Nr(this,1)};
e.getDescription=function(){return Kr(this,2)};
e.getDescriptionOrDefault=function(){return Lr(this,2)};
e.setDescription=function(a){Mr(this,2,a)};
e.hasDescription=function(){return Ir(this,2)};
e.descriptionCount=function(){return Or(this,2)};
e.clearDescription=function(){Nr(this,2)};
var Ks=function(){Hr.call(this)};
w(Ks,Hr);var Cpa=null;e=Ks.prototype;e.getStatus=function(){return Kr(this,1)};
e.getStatusOrDefault=function(){return Lr(this,1)};
e.setStatus=function(a){Mr(this,1,a)};
e.hasStatus=function(){return Ir(this,1)};
e.statusCount=function(){return Or(this,1)};
e.clearStatus=function(){Nr(this,1)};
e.getJidResourceOrDefault=function(){return Lr(this,2)};
e.setJidResource=function(a){Mr(this,2,a)};
e.jidResourceCount=function(){return Or(this,2)};
e.clearJidResource=function(){Nr(this,2)};
var Ls=function(){Hr.call(this)};
w(Ls,Hr);var Dpa=null;e=Ls.prototype;e.getSignalOrDefault=function(){return Lr(this,1)};
e.setSignal=function(a){Mr(this,1,a)};
e.hasSignal=function(){return Ir(this,1)};
e.signalCount=function(){return Or(this,1)};
e.clearSignal=function(){Nr(this,1)};
e.getSessionId=function(){return Kr(this,2)};
e.getSessionIdOrDefault=function(){return Lr(this,2)};
e.setSessionId=function(a){Mr(this,2,a)};
e.hasSessionId=function(){return Ir(this,2)};
e.sessionIdCount=function(){return Or(this,2)};
e.clearSessionId=function(){Nr(this,2)};
e.getAckIdOrDefault=function(){return Lr(this,3)};
e.setAckId=function(a){Mr(this,3,a)};
e.hasAckId=function(){return Ir(this,3)};
e.ackIdCount=function(){return Or(this,3)};
e.clearAckId=function(){Nr(this,3)};
var Ms=function(){Hr.call(this)};
w(Ms,Hr);var Epa=null;e=Ms.prototype;e.getSubscriptionKeyOrDefault=function(){return Lr(this,1)};
e.setSubscriptionKey=function(a){Mr(this,1,a)};
e.hasSubscriptionKey=function(){return Ir(this,1)};
e.subscriptionKeyCount=function(){return Or(this,1)};
e.clearSubscriptionKey=function(){Nr(this,1)};
e.getMessage=function(){return Kr(this,2)};
e.getMessageOrDefault=function(){return Lr(this,2)};
e.setMessage=function(a){Mr(this,2,a)};
e.hasMessage=function(){return Ir(this,2)};
e.messageCount=function(){return Or(this,2)};
e.clearMessage=function(){Nr(this,2)};
var Ns=function(){Hr.call(this)};
w(Ns,Hr);var Fpa=null;e=Ns.prototype;e.getName=function(){return Kr(this,1)};
e.getNameOrDefault=function(){return Lr(this,1)};
e.setName=function(a){Mr(this,1,a)};
e.hasName=function(){return Ir(this,1)};
e.nameCount=function(){return Or(this,1)};
e.clearName=function(){Nr(this,1)};
e.getTopicName=function(){return Kr(this,2)};
e.getTopicNameOrDefault=function(){return Lr(this,2)};
e.setTopicName=function(a){Mr(this,2,a)};
e.hasTopicName=function(){return Ir(this,2)};
e.topicNameCount=function(){return Or(this,2)};
e.clearTopicName=function(){Nr(this,2)};
var Os=function(){Hr.call(this)};
w(Os,Hr);var Gpa=null;e=Os.prototype;e.getData=function(){return Kr(this,1)};
e.getDataOrDefault=function(){return Lr(this,1)};
e.setData=function(a){Mr(this,1,a)};
e.dataCount=function(){return Or(this,1)};
e.clearData=function(){Nr(this,1)};
e.getTraceIdOrDefault=function(){return Lr(this,2)};
e.setTraceId=function(a){Mr(this,2,a)};
e.traceIdCount=function(){return Or(this,2)};
e.clearTraceId=function(){Nr(this,2)};
e.getPublishTimestampMicrosOrDefault=function(){return Lr(this,3)};
e.setPublishTimestampMicros=function(a){Mr(this,3,a)};
e.hasPublishTimestampMicros=function(){return Ir(this,3)};
e.publishTimestampMicrosCount=function(){return Or(this,3)};
e.clearPublishTimestampMicros=function(){Nr(this,3)};
e.getIsSuppressor=function(){return Kr(this,4)};
e.setIsSuppressor=function(a){Mr(this,4,a)};
e.hasIsSuppressor=function(){return Ir(this,4)};
e.isSuppressorCount=function(){return Or(this,4)};
e.clearIsSuppressor=function(){Nr(this,4)};
ws.prototype.getDescriptor=function(){var a=opa;a||(opa=a=Pr(ws,{0:{name:"Version",fullName:"buzz.channel.Version"},1:{name:"major_version",fieldType:5,type:Number},2:{name:"minor_version",fieldType:5,type:Number}}));return a};
ws.getDescriptor=ws.prototype.getDescriptor;xs.prototype.getDescriptor=function(){var a=ppa;a||(ppa=a=Pr(xs,{0:{name:"ProtocolVersion",fullName:"buzz.channel.ProtocolVersion"},1:{name:"version",fieldType:11,type:ws}}));return a};
xs.getDescriptor=xs.prototype.getDescriptor;ys.prototype.getDescriptor=function(){var a=qpa;a||(qpa=a=Pr(ys,{0:{name:"ClientVersion",fullName:"buzz.channel.ClientVersion"},1:{name:"version",fieldType:11,type:ws},2:{name:"platform",fieldType:9,type:String},3:{name:"language",fieldType:9,type:String},4:{name:"application_info",fieldType:9,type:String}}));return a};
ys.getDescriptor=ys.prototype.getDescriptor;zs.prototype.getDescriptor=function(){var a=rpa;a||(rpa=a=Pr(zs,{0:{name:"SessionId",fullName:"buzz.channel.SessionId"},1:{name:"service_name",fieldType:9,type:String},2:{name:"session_name",fieldType:9,type:String}}));return a};
zs.getDescriptor=zs.prototype.getDescriptor;
As.prototype.getDescriptor=function(){var a=spa;a||(spa=a=Pr(As,{0:{name:"ClientToServerMessage",fullName:"buzz.channel.ClientToServerMessage"},1:{name:"header",fieldType:11,type:Bs},2:{name:"init_endpoint_message",fieldType:11,type:Cs},3:{name:"init_session_message",fieldType:11,type:Ds},4:{name:"client_data_message_deprecated",fieldType:11,type:Fs},5:{name:"send_on_disconnect_message",fieldType:11,type:Fs},6:{name:"close_session_message",fieldType:11,type:Es}}));return a};
As.getDescriptor=As.prototype.getDescriptor;Bs.prototype.getDescriptor=function(){var a=tpa;a||(tpa=a=Pr(Bs,{0:{name:"ClientHeader",fullName:"buzz.channel.ClientHeader"},1:{name:"protocol_version",fieldType:11,type:xs},2:{name:"client_version",fieldType:11,type:ys},3:{name:"client_time_ms",fieldType:3,type:Number},4:{name:"max_known_server_time_ms",fieldType:3,type:Number},5:{name:"message_id",fieldType:9,type:String}}));return a};
Bs.getDescriptor=Bs.prototype.getDescriptor;Cs.prototype.getDescriptor=function(){var a=upa;a||(upa=a=Pr(Cs,{0:{name:"InitEndpointMessage",fullName:"buzz.channel.InitEndpointMessage"}}));return a};
Cs.getDescriptor=Cs.prototype.getDescriptor;Ds.prototype.getDescriptor=function(){var a=vpa;a||(vpa=a=Pr(Ds,{0:{name:"InitSessionMessage",fullName:"buzz.channel.InitSessionMessage"},1:{name:"session_id",fieldType:11,type:zs},2:{name:"subscriber_info",fieldType:9,type:String}}));return a};
Ds.getDescriptor=Ds.prototype.getDescriptor;Es.prototype.getDescriptor=function(){var a=wpa;a||(wpa=a=Pr(Es,{0:{name:"CloseSessionMessage",fullName:"buzz.channel.CloseSessionMessage"},1:{name:"session_id",fieldType:11,type:zs}}));return a};
Es.getDescriptor=Es.prototype.getDescriptor;Fs.prototype.getDescriptor=function(){var a=xpa;a||(xpa=a=Pr(Fs,{0:{name:"DataMessage",fullName:"buzz.channel.DataMessage"},1:{name:"session_id",fieldType:11,type:zs},2:{name:"message",fieldType:9,type:String}}));return a};
Fs.getDescriptor=Fs.prototype.getDescriptor;Gs.prototype.getDescriptor=function(){var a=ypa;a||(ypa=a=Pr(Gs,{0:{name:"SessionStatusMessage",fullName:"buzz.channel.SessionStatusMessage"},1:{name:"session_id",fieldType:11,type:zs},2:{name:"address",fieldType:9,type:String},3:{name:"is_broadcast_to_user",fieldType:8,type:Boolean},4:{name:"status",fieldType:11,type:Js},5:{name:"subscriber_info",fieldType:9,type:String}}));return a};
Gs.getDescriptor=Gs.prototype.getDescriptor;Hs.prototype.getDescriptor=function(){var a=zpa;a||(zpa=a=Pr(Hs,{0:{name:"ServerToClientMessage",fullName:"buzz.channel.ServerToClientMessage"},1:{name:"header",fieldType:11,type:Is},2:{name:"server_data_message",fieldType:11,type:Fs},5:{name:"postman_invalidation",fieldType:11,type:Ls},3:{name:"channel_status_message",fieldType:11,type:Ks},4:{name:"session_status_message",fieldType:11,type:Gs}}));return a};
Hs.getDescriptor=Hs.prototype.getDescriptor;Is.prototype.getDescriptor=function(){var a=Apa;a||(Apa=a=Pr(Is,{0:{name:"ServerHeader",fullName:"buzz.channel.ServerHeader"},1:{name:"protocol_version",fieldType:11,type:xs},4:{name:"server_time_ms",fieldType:3,type:Number},5:{name:"message_id",fieldType:9,type:String}}));return a};
Is.getDescriptor=Is.prototype.getDescriptor;Js.prototype.getDescriptor=function(){var a=Bpa;a||(Bpa=a=Pr(Js,{0:{name:"StatusP",fullName:"buzz.channel.StatusP"},1:{name:"code",fieldType:5,type:Number},2:{name:"description",fieldType:9,type:String}}));return a};
Js.getDescriptor=Js.prototype.getDescriptor;Ks.prototype.getDescriptor=function(){var a=Cpa;a||(Cpa=a=Pr(Ks,{0:{name:"ChannelStatusMessage",fullName:"buzz.channel.ChannelStatusMessage"},1:{name:"status",fieldType:11,type:Js},2:{name:"jid_resource",fieldType:9,type:String}}));return a};
Ks.getDescriptor=Ks.prototype.getDescriptor;Ls.prototype.getDescriptor=function(){var a=Dpa;a||(Dpa=a=Pr(Ls,{0:{name:"LcsPostmanInvalidation",fullName:"buzz.channel.LcsPostmanInvalidation"},1:{name:"signal",fieldType:11,type:Ms},2:{name:"session_id",fieldType:11,type:zs},3:{name:"ack_id",fieldType:9,type:String}}));return a};
Ls.getDescriptor=Ls.prototype.getDescriptor;Ms.prototype.getDescriptor=function(){var a=Epa;a||(Epa=a=Pr(Ms,{0:{name:"LcsSignal",fullName:"buzz.channel.LcsSignal"},1:{name:"subscription_key",fieldType:11,type:Ns},2:{name:"message",fieldType:11,type:Os}}));return a};
Ms.getDescriptor=Ms.prototype.getDescriptor;Ns.prototype.getDescriptor=function(){var a=Fpa;a||(Fpa=a=Pr(Ns,{0:{name:"LcsSubscriptionKey",fullName:"buzz.channel.LcsSubscriptionKey"},1:{name:"name",fieldType:12,type:String},2:{name:"topic_name",fieldType:9,type:String}}));return a};
Ns.getDescriptor=Ns.prototype.getDescriptor;Os.prototype.getDescriptor=function(){var a=Gpa;a||(Gpa=a=Pr(Os,{0:{name:"LcsPostmanMessage",fullName:"buzz.channel.LcsPostmanMessage"},1:{name:"data",fieldType:9,type:String},2:{name:"trace_id",fieldType:9,type:String},3:{name:"publish_timestamp_micros",fieldType:3,type:String},4:{name:"is_suppressor",fieldType:8,defaultValue:!0,type:Boolean}}));return a};
Os.getDescriptor=Os.prototype.getDescriptor;var Hpa=new xs,Ps=new ws;Mr(Ps,1,3);Mr(Ps,2,2);Hpa.setVersion(Ps);var Ipa=new ws;Mr(Ipa,1,3);Mr(Ipa,2,2);var Qs=new ws;Mr(Qs,1,3);Mr(Qs,2,2);var Rs=function(){Hr.call(this)};
w(Rs,Hr);var Jpa=null;e=Rs.prototype;e.getAuthParams=function(){return Kr(this,1)};
e.getAuthParamsOrDefault=function(){return Lr(this,1)};
e.hasAuthParams=function(){return Ir(this,1)};
e.authParamsCount=function(){return Or(this,1)};
e.clearAuthParams=function(){Nr(this,1)};
e.getInitSessionMessage=function(){return Kr(this,2)};
e.getInitSessionMessageOrDefault=function(){return Lr(this,2)};
e.setInitSessionMessage=function(a){Mr(this,2,a)};
e.hasInitSessionMessage=function(){return Ir(this,2)};
e.initSessionMessageCount=function(){return Or(this,2)};
e.clearInitSessionMessage=function(){Nr(this,2)};
e.getBrowserChannelConfig=function(){return Kr(this,3)};
e.getBrowserChannelConfigOrDefault=function(){return Lr(this,3)};
e.hasBrowserChannelConfig=function(){return Ir(this,3)};
e.browserChannelConfigCount=function(){return Or(this,3)};
e.clearBrowserChannelConfig=function(){Nr(this,3)};
e.getHeartbeat=function(){return Kr(this,4)};
e.getHeartbeatOrDefault=function(){return Lr(this,4)};
e.setHeartbeat=function(a){Mr(this,4,a)};
e.hasHeartbeat=function(){return Ir(this,4)};
e.heartbeatCount=function(){return Or(this,4)};
e.clearHeartbeat=function(){Nr(this,4)};
var Ss=function(){Hr.call(this)};
w(Ss,Hr);var Kpa=null;e=Ss.prototype;e.getDataMessageOrDefault=function(){return Lr(this,1)};
e.setDataMessage=function(a){Mr(this,1,a)};
e.dataMessageCount=function(){return Or(this,1)};
e.clearDataMessage=function(){Nr(this,1)};
e.getPostmanInvalidation=function(){return Kr(this,12)};
e.getPostmanInvalidationOrDefault=function(){return Lr(this,12)};
e.setPostmanInvalidation=function(a){Mr(this,12,a)};
e.hasPostmanInvalidation=function(){return Ir(this,12)};
e.postmanInvalidationCount=function(){return Or(this,12)};
e.clearPostmanInvalidation=function(){Nr(this,12)};
e.getSessionStatusMessage=function(){return Kr(this,2)};
e.getSessionStatusMessageOrDefault=function(){return Lr(this,2)};
e.setSessionStatusMessage=function(a){Mr(this,2,a)};
e.hasSessionStatusMessage=function(){return Ir(this,2)};
e.sessionStatusMessageCount=function(){return Or(this,2)};
e.clearSessionStatusMessage=function(){Nr(this,2)};
e.getChannelStatusMessage=function(){return Kr(this,3)};
e.getChannelStatusMessageOrDefault=function(){return Lr(this,3)};
e.setChannelStatusMessage=function(a){Mr(this,3,a)};
e.hasChannelStatusMessage=function(){return Ir(this,3)};
e.channelStatusMessageCount=function(){return Or(this,3)};
e.clearChannelStatusMessage=function(){Nr(this,3)};
e.getSharedWorkerEventMessageOrDefault=function(){return Lr(this,4)};
e.setSharedWorkerEventMessage=function(a){Mr(this,4,a)};
e.sharedWorkerEventMessageCount=function(){return Or(this,4)};
e.clearSharedWorkerEventMessage=function(){Nr(this,4)};
e.getAuthParamsRequestMessage=function(){return Kr(this,5)};
e.getAuthParamsRequestMessageOrDefault=function(){return Lr(this,5)};
e.setAuthParamsRequestMessage=function(a){Mr(this,5,a)};
e.authParamsRequestMessageCount=function(){return Or(this,5)};
e.clearAuthParamsRequestMessage=function(){Nr(this,5)};
e.getConfigRequestMessage=function(){return Kr(this,6)};
e.getConfigRequestMessageOrDefault=function(){return Lr(this,6)};
e.setConfigRequestMessage=function(a){Mr(this,6,a)};
e.configRequestMessageCount=function(){return Or(this,6)};
e.clearConfigRequestMessage=function(){Nr(this,6)};
e.getSenderId=function(){return Kr(this,7)};
e.getSenderIdOrDefault=function(){return Lr(this,7)};
e.setSenderId=function(a){Mr(this,7,a)};
e.hasSenderId=function(){return Ir(this,7)};
e.senderIdCount=function(){return Or(this,7)};
e.clearSenderId=function(){Nr(this,7)};
e.getChannelStatMessageOrDefault=function(){return Lr(this,9)};
e.setChannelStatMessage=function(a){Mr(this,9,a)};
e.channelStatMessageCount=function(){return Or(this,9)};
e.clearChannelStatMessage=function(){Nr(this,9)};
e.getBrowserChannelClosedMessage=function(){return Kr(this,10)};
e.getBrowserChannelClosedMessageOrDefault=function(){return Lr(this,10)};
e.setBrowserChannelClosedMessage=function(a){Mr(this,10,a)};
e.browserChannelClosedMessageCount=function(){return Or(this,10)};
e.clearBrowserChannelClosedMessage=function(){Nr(this,10)};
e.getBrowserChannelErrorMessageOrDefault=function(){return Lr(this,11)};
e.setBrowserChannelErrorMessage=function(a){Mr(this,11,a)};
e.browserChannelErrorMessageCount=function(){return Or(this,11)};
e.clearBrowserChannelErrorMessage=function(){Nr(this,11)};
var Ts=function(){Hr.call(this)};
w(Ts,Hr);var Lpa=null;e=Ts.prototype;e.getEventOrDefault=function(){return Lr(this,1)};
e.setEvent=function(a){Mr(this,1,a)};
e.eventCount=function(){return Or(this,1)};
e.clearEvent=function(){Nr(this,1)};
e.getConnectionCountOrDefault=function(){return Lr(this,2)};
e.setConnectionCount=function(a){Mr(this,2,a)};
e.hasConnectionCount=function(){return Ir(this,2)};
e.connectionCountCount=function(){return Or(this,2)};
e.clearConnectionCount=function(){Nr(this,2)};
var Mpa={EVENT_UNSPECIFIED:0,CREATED:1,STARTED:2},Us=function(){Hr.call(this)};
w(Us,Hr);var Npa=null,Vs=function(){Hr.call(this)};
w(Vs,Hr);var Opa=null,Ws=function(){Hr.call(this)};
w(Ws,Hr);var Ppa=null,Xs=function(){Hr.call(this)};
w(Xs,Hr);var Qpa=null;e=Xs.prototype;e.getStatOrDefault=function(){return Lr(this,1)};
e.setStat=function(a){Mr(this,1,a)};
e.hasStat=function(){return Ir(this,1)};
e.statCount=function(){return Or(this,1)};
e.clearStat=function(){Nr(this,1)};
var Ys=function(){Hr.call(this)};
w(Ys,Hr);var Rpa=null,$s=function(){Hr.call(this)};
w($s,Hr);var Spa=null;e=$s.prototype;e.getBrowserChannelErrorCode=function(){return Kr(this,1)};
e.getBrowserChannelErrorCodeOrDefault=function(){return Lr(this,1)};
e.setBrowserChannelErrorCode=function(a){Mr(this,1,a)};
e.hasBrowserChannelErrorCode=function(){return Ir(this,1)};
e.browserChannelErrorCodeCount=function(){return Or(this,1)};
e.clearBrowserChannelErrorCode=function(){Nr(this,1)};
e.getLastHttpStatusCode=function(){return Kr(this,2)};
e.getLastHttpStatusCodeOrDefault=function(){return Lr(this,2)};
e.setLastHttpStatusCode=function(a){Mr(this,2,a)};
e.hasLastHttpStatusCode=function(){return Ir(this,2)};
e.lastHttpStatusCodeCount=function(){return Or(this,2)};
e.clearLastHttpStatusCode=function(){Nr(this,2)};
Rs.prototype.getDescriptor=function(){var a=Jpa;a||(Jpa=a=Pr(Rs,{0:{name:"ClientToSharedWorkerMessage",fullName:"buzz.channel.proto.ClientToSharedWorkerMessage"},1:{name:"auth_params",fieldType:11,type:Rr},2:{name:"init_session_message",fieldType:11,type:Ds},3:{name:"browser_channel_config",fieldType:11,type:Qr},4:{name:"heartbeat",fieldType:11,type:Us}}));return a};
Rs.getDescriptor=Rs.prototype.getDescriptor;
Ss.prototype.getDescriptor=function(){var a=Kpa;a||(Kpa=a=Pr(Ss,{0:{name:"SharedWorkerToClientMessage",fullName:"buzz.channel.proto.SharedWorkerToClientMessage"},1:{name:"data_message",fieldType:11,type:Fs},12:{name:"postman_invalidation",fieldType:11,type:Ls},2:{name:"session_status_message",fieldType:11,type:Gs},3:{name:"channel_status_message",fieldType:11,type:Ks},4:{name:"shared_worker_event_message",fieldType:11,type:Ts},5:{name:"auth_params_request_message",fieldType:11,type:Vs},6:{name:"config_request_message",
fieldType:11,type:Ws},7:{name:"sender_id",fieldType:9,type:String},9:{name:"channel_stat_message",fieldType:11,type:Xs},10:{name:"browser_channel_closed_message",fieldType:11,type:Ys},11:{name:"browser_channel_error_message",fieldType:11,type:$s}}));return a};
Ss.getDescriptor=Ss.prototype.getDescriptor;Ts.prototype.getDescriptor=function(){var a=Lpa;a||(Lpa=a=Pr(Ts,{0:{name:"SharedWorkerEventMessage",fullName:"buzz.channel.proto.SharedWorkerEventMessage"},1:{name:"event",fieldType:14,defaultValue:0,type:Mpa},2:{name:"connection_count",fieldType:5,type:Number}}));return a};
Ts.getDescriptor=Ts.prototype.getDescriptor;Us.prototype.getDescriptor=function(){var a=Npa;a||(Npa=a=Pr(Us,{0:{name:"Heartbeat",fullName:"buzz.channel.proto.Heartbeat"}}));return a};
Us.getDescriptor=Us.prototype.getDescriptor;Vs.prototype.getDescriptor=function(){var a=Opa;a||(Opa=a=Pr(Vs,{0:{name:"AuthenticationParametersRequestMessage",fullName:"buzz.channel.proto.AuthenticationParametersRequestMessage"}}));return a};
Vs.getDescriptor=Vs.prototype.getDescriptor;Ws.prototype.getDescriptor=function(){var a=Ppa;a||(Ppa=a=Pr(Ws,{0:{name:"BrowserChannelConfigRequestMessage",fullName:"buzz.channel.proto.BrowserChannelConfigRequestMessage"}}));return a};
Ws.getDescriptor=Ws.prototype.getDescriptor;Xs.prototype.getDescriptor=function(){var a=Qpa;a||(Qpa=a=Pr(Xs,{0:{name:"ChannelStatMessage",fullName:"buzz.channel.proto.ChannelStatMessage"},1:{name:"stat",fieldType:5,type:Number}}));return a};
Xs.getDescriptor=Xs.prototype.getDescriptor;Ys.prototype.getDescriptor=function(){var a=Rpa;a||(Rpa=a=Pr(Ys,{0:{name:"BrowserChannelClosedMessage",fullName:"buzz.channel.proto.BrowserChannelClosedMessage"}}));return a};
Ys.getDescriptor=Ys.prototype.getDescriptor;$s.prototype.getDescriptor=function(){var a=Spa;a||(Spa=a=Pr($s,{0:{name:"BrowserChannelErrorMessage",fullName:"buzz.channel.proto.BrowserChannelErrorMessage"},1:{name:"browser_channel_error_code",fieldType:5,type:Number},2:{name:"last_http_status_code",fieldType:5,type:Number}}));return a};
$s.getDescriptor=$s.prototype.getDescriptor;var Tpa=function(){if(Qca){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(ec))?a[1]:"0"}return ze?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(ec))?a[0].replace(/_/g,"."):"10"):Tca?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(ec))?a[1]:""):Uca||Vca||Wca?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(ec))?a[1].replace(/_/g,"."):""):""}();function Upa(a,b,c){var d=new Ds,f=d.setSessionId,g=new zs;Mr(g,1,a);null!=b&&Mr(g,2,b);f.call(d,g);c&&d.setSubscriberInfo(c);return d}
;var at=function(a,b){this.authuser=0;this.useCors=this.useSharedChannel=this.retryOnAuthError=!1;a=new jq(a);var c=a.domain_;if("client-channel.google.com"===c){var d=mpa();d&&iq(a,d+"."+c)}this.uri=a;this.clientType=b;(b=t.gapi)&&b.load&&t.gapi.load("auth")};
e=at.prototype;e.getUri=function(){return this.uri.toString()};
e.getClientType=function(){return this.clientType};
e.getAuthuser=function(){return this.authuser};
e.setAuthuser=function(a){this.authuser=a};
e.getPageId=function(){return this.pageId||null};
e.setPageId=function(a){this.pageId=a};
e.getGaiaServiceOverride=function(){return this.gaiaServiceOverride||null};
e.setGaiaServiceOverride=function(a){this.gaiaServiceOverride=a};
e.setGapiSrc=function(a){this.gapiSrc=a};
e.setApplicationVersion=function(a){this.applicationVersion=a};
e.setPropertyId=function(a){this.propertyId=a};
e.setRetryOnAuthError=function(a){this.retryOnAuthError=a};
e.setUseSharedChannel=function(a){if(-1!==this.uri.domain_.indexOf("client-channel.google.com")){var b=a?this.getClientType():mpa();iq(this.uri,b+".client-channel.google.com")}this.useSharedChannel=a};
e.setUseCors=function(a){a&&this.isIframed()||(this.useCors=a)};
e.setDomHelper=function(a){this.domHelper=a};
e.getDomHelper=function(){return this.domHelper||null};
var bt=function(a){var b=a.clientType,c=a.gaiaServiceOverride||null,d=a.gapiSrc||null,f=a.propertyId||null,g=a.applicationVersion||null,l=a.retryOnAuthError,m=a.pageId||null;a=!a.pageId&&t.SharedWorker&&a.isIframed()?a.useSharedChannel:!1;var n=new Qr;Mr(n,2,b);null!==c&&Mr(n,4,c);null!==d&&n.setGapiSrc(d);null!==f&&n.setPropertyId(f);null!==g&&n.setApplicationVersion(g);n.setRetryOnAuthError(l);null!==m&&n.setPageId(m);n.setUseSharedChannel(a);return n};
at.prototype.getFirstPartyAuthSchemeAndHash=function(){var a;if(t.gapi&&t.gapi.auth&&(a=t.gapi.auth.getAuthHeaderValueForFirstParty))try{var b=a([]);if(b){var c=b.split(" ");var d={scheme:c[0],hash:c[1]}}else d=null;return d}catch(f){}return null};var ct=function(){var a=Rh([]);return a?(a=a.split(" "),{scheme:a[0],hash:a[1]}):null};var dt=function(a,b,c){c=void 0===c?kpa:c;at.call(this,a,b);this.browserChannelProvider=c};
p(dt,at);dt.prototype.createBrowserChannel=function(a){return this.browserChannelProvider(this.getUri(),a,bt(this))};
dt.prototype.getIframeContainerId=function(){throw Error("getIframeContainerId: unsupported method")};
dt.prototype.isIframed=function(){return!1};
dt.prototype.getFirstPartyAuthSchemeAndHash=function(a){return at.prototype.getFirstPartyAuthSchemeAndHash.call(this,a)||ct()};var et=function(a,b,c){Tg.call(this);this.listener_=a;this.interval_=b||0;this.handler_=c;this.callback_=u(this.doAction_,this)};
w(et,Tg);e=et.prototype;e.id_=0;e.disposeInternal=function(){et.superClass_.disposeInternal.call(this);this.stop();delete this.listener_;delete this.handler_};
e.start=function(a){this.stop();this.id_=Yi(this.callback_,void 0!==a?a:this.interval_)};
e.startIfNotActive=function(a){this.isActive()||this.start(a)};
e.stop=function(){this.isActive()&&Zi(this.id_);this.id_=0};
e.fire=function(){this.stop();this.doAction_()};
e.fireIfActive=function(){this.isActive()&&this.fire()};
e.isActive=function(){return 0!=this.id_};
e.doAction_=function(){this.id_=0;this.listener_&&this.listener_.call(this.handler_)};var ft=function(){Tg.call(this);this.services_={}};
w(ft,Tg);e=ft.prototype;e.logger=null;e.connect=function(a){a&&a()};
e.isConnected=function(){return!0};
e.registerService=function(a,b,c){this.services_[a]={callback:b,objectPayload:!!c}};
e.registerDefaultService=function(a){this.defaultService_=a};
e.getService=function(a,b){var c=this.services_[a];return c?c:this.defaultService_?{callback:Ta(this.defaultService_,a),objectPayload:Pa(b)}:null};
var Vpa=function(a,b){if(b&&"string"===typeof a)try{return JSON.parse(a)}catch(c){return null}else if(!b&&"string"!==typeof a)return uj(a);return a};
ft.prototype.disposeInternal=function(){ft.superClass_.disposeInternal.call(this);delete this.services_;delete this.defaultService_};/*
 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.
*/
var gt=function(a,b){this.sequence_=[];this.onCancelFunction_=a;this.defaultScope_=b||null;this.hadError_=this.fired_=!1;this.result_=void 0;this.silentlyCanceled_=this.blocking_=this.blocked_=!1;this.unhandledErrorId_=0;this.parent_=null;this.branches_=0};
gt.prototype.cancel=function(a){if(this.fired_)this.result_ instanceof gt&&this.result_.cancel();else{if(this.parent_){var b=this.parent_;delete this.parent_;a?b.cancel(a):(b.branches_--,0>=b.branches_&&b.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new ht(this))}};
gt.prototype.continue_=function(a,b){this.blocked_=!1;it(this,a,b)};
var it=function(a,b,c){a.fired_=!0;a.result_=c;a.hadError_=!b;Wpa(a)},Xpa=function(a){if(a.fired_){if(!a.silentlyCanceled_)throw new jt(a);
a.silentlyCanceled_=!1}};
gt.prototype.callback=function(a){Xpa(this);it(this,!0,a)};
gt.prototype.errback=function(a){Xpa(this);it(this,!1,a)};
gt.prototype.assertNotDeferred_=function(){};
var lt=function(a,b,c){kt(a,b,null,c)};
gt.prototype.addErrback=function(a,b){return kt(this,null,a,b)};
gt.prototype.addBoth=function(a,b){return kt(this,a,a,b)};
gt.prototype.addFinally=function(a,b){return kt(this,a,function(c){var d=a.call(this,c);if(void 0===d)throw c;return d},b)};
var kt=function(a,b,c,d){a.sequence_.push([b,c,d]);a.fired_&&Wpa(a);return a};
gt.prototype.then=function(a,b,c){var d,f,g=new Li(function(l,m){d=l;f=m});
kt(this,d,function(l){l instanceof ht?g.cancel():f(l)});
return g.then(a,b,c)};
Ji(gt);var mt=function(a,b){b instanceof gt?lt(a,u(b.branch,b)):lt(a,function(){return b})};
gt.prototype.branch=function(a){var b=new gt;kt(this,b.callback,b.errback,b);a&&(b.parent_=this,this.branches_++);return b};
gt.prototype.isError=function(a){return a instanceof Error};
var Ypa=function(a){return gb(a.sequence_,function(b){return"function"===typeof b[1]})};
gt.prototype.getLastValueForMigration=function(){return this.fired_&&!this.hadError_?this.result_:void 0};
var Wpa=function(a){if(a.unhandledErrorId_&&a.fired_&&Ypa(a)){var b=a.unhandledErrorId_,c=nt[b];c&&(t.clearTimeout(c.id_),delete nt[b]);a.unhandledErrorId_=0}a.parent_&&(a.parent_.branches_--,delete a.parent_);b=a.result_;for(var d=c=!1;a.sequence_.length&&!a.blocked_;){var f=a.sequence_.shift(),g=f[0],l=f[1];f=f[2];if(g=a.hadError_?l:g)try{var m=g.call(f||a.defaultScope_,b);void 0!==m&&(a.hadError_=a.hadError_&&(m==b||a.isError(m)),a.result_=b=m);if(Ki(b)||"function"===typeof t.Promise&&b instanceof
t.Promise)d=!0,a.blocked_=!0}catch(n){b=n,a.hadError_=!0,Ypa(a)||(c=!0)}}a.result_=b;d&&(m=u(a.continue_,a,!0),d=u(a.continue_,a,!1),b instanceof gt?(kt(b,m,d),b.blocking_=!0):b.then(m,d));c&&(b=new Zpa(b),nt[b.id_]=b,a.unhandledErrorId_=b.id_)},jt=function(a){Za.call(this);
this.deferred=a};
w(jt,Za);jt.prototype.message="Deferred has already fired";jt.prototype.name="AlreadyCalledError";var ht=function(a){Za.call(this);this.deferred=a};
w(ht,Za);ht.prototype.message="Deferred was canceled";ht.prototype.name="CanceledError";var Zpa=function(a){this.id_=t.setTimeout(u(this.throwError,this),0);this.error_=a};
Zpa.prototype.throwError=function(){delete nt[this.id_];throw this.error_};
var nt={};var $pa={1:"NativeMessagingTransport",2:"DirectTransport"},aqa=["pu","lru","pru","lpu","ppu"],ot=function(a){for(var b=bqa,c=b.length,d="";0<a--;)d+=b.charAt(Math.floor(Math.random()*c));return d},bqa="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var pt=function(a){Tg.call(this);this.domHelper_=a||bg()};
w(pt,Tg);pt.prototype.transportType=0;pt.prototype.getType=function(){return this.transportType};
pt.prototype.getWindow=function(){return this.domHelper_.getWindow()};
pt.prototype.getName=function(){return $pa[String(this.transportType)]||""};var st=function(a,b){pt.call(this,b);this.channel_=a;this.eventHandler_=new Oq(this);Ug(this,this.eventHandler_);this.maybeAttemptToConnectTimer_=new Xi(100,this.getWindow());Ug(this,this.maybeAttemptToConnectTimer_);this.setupAckReceived_=new gt;this.setupAckSent_=new gt;this.connected_=new gt;this.endpointId_=ot(10);this.peerEndpointId_=null;this.asyncSendsMap_={};this.originalChannelName_=this.channel_.name;qt(this.channel_,this.channel_.name+"_"+rt(this.channel_));this.initialized_=!1;mt(this.connected_,
this.setupAckReceived_);mt(this.connected_,this.setupAckSent_);lt(this.connected_,this.notifyConnected_,this);this.connected_.callback(!0);this.eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
w(st,pt);var tt={},eqa=function(a){var b=new cqa(a.channelName,a.service,a.payload);a=b.channelName;var c=b.service;b=b.payload;var d=ut[a];if(d)return d.xpcDeliver(c,b),!0;d=dqa(b)[0];for(var f in ut){var g=ut[f];if(1==rt(g)&&!g.isConnected()&&"tp"==c&&"SETUP"==d)return qt(g,a),g.xpcDeliver(c,b),!0}return!1};
e=st.prototype;e.transportType=2;e.transportServiceHandler=function(a){a=dqa(a);var b=a[1];switch(a[0]){case"SETUP_ACK":this.setupAckReceived_.fired_||this.setupAckReceived_.callback(!0);break;case"SETUP":this.sendSetupAckMessage_(),null!=this.peerEndpointId_&&this.peerEndpointId_!=b&&this.sendSetupMessage_(),this.peerEndpointId_=b;}};
e.sendSetupMessage_=function(){this.send("tp","SETUP,"+this.endpointId_)};
e.sendSetupAckMessage_=function(){this.send("tp","SETUP_ACK");this.setupAckSent_.fired_||this.setupAckSent_.callback(!0)};
e.connect=function(){var a=this.getWindow();if(a){var b=Ra(a);0==(tt[b]||0)&&null==Ja("crosswindowmessaging.channel",a)&&Fa("crosswindowmessaging.channel",eqa,a);tt[b]++;this.initialized_=!0;this.maybeAttemptToConnect_()}};
e.maybeAttemptToConnect_=function(){this.channel_.isConnected()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),this.sendSetupMessage_())};
e.send=function(a,b){this.channel_.peerWindowObject_&&(a=new cqa(this.originalChannelName_+"_"+(0==rt(this.channel_)?1:0),a,b),this.channel_.getConfig().directSyncMode?this.executeScheduledSend_(a):this.asyncSendsMap_[Ra(a)]=Yi(u(this.executeScheduledSend_,this,a),0))};
e.executeScheduledSend_=function(a){var b=Ra(a);this.asyncSendsMap_[b]&&delete this.asyncSendsMap_[b];try{var c=Ja("crosswindowmessaging.channel",this.channel_.peerWindowObject_)}catch(d){return}if(null!==c)try{c({channelName:a.channelName,service:a.service,payload:a.payload})}catch(d){}};
e.notifyConnected_=function(){fqa(this.channel_,(this.channel_.getConfig(),0))};
e.disposeInternal=function(){if(this.initialized_){var a=this.getWindow(),b=Ra(a);1==--tt[b]&&Fa("crosswindowmessaging.channel",null,a)}this.asyncSendsMap_&&(A.forEach(this.asyncSendsMap_,function(c){Zi(c)}),this.asyncSendsMap_=null);
this.setupAckReceived_&&(this.setupAckReceived_.cancel(),delete this.setupAckReceived_);this.setupAckSent_&&(this.setupAckSent_.cancel(),delete this.setupAckSent_);this.connected_&&(this.connected_.cancel(),delete this.connected_);st.superClass_.disposeInternal.call(this)};
var dqa=function(a){a=a.split(",");a[1]=a[1]||null;return a},cqa=function(a,b,c){this.channelName=a;
this.service=b;this.payload=c};var vt=function(a,b,c,d,f){pt.call(this,c);this.channel_=a;this.protocolVersion_=f||2;this.peerHostname_=b||"*";this.eventHandler_=new Oq(this);this.maybeAttemptToConnectTimer_=new Xi(100,this.getWindow());this.oneSidedHandshake_=!!d;this.setupAckReceived_=new gt;this.setupAckSent_=new gt;this.connected_=new gt;this.endpointId_=ot(10);this.peerEndpointId_=null;this.oneSidedHandshake_?1==rt(this.channel_)?mt(this.connected_,this.setupAckReceived_):mt(this.connected_,this.setupAckSent_):(mt(this.connected_,
this.setupAckReceived_),2==this.protocolVersion_&&mt(this.connected_,this.setupAckSent_));lt(this.connected_,this.notifyConnected_,this);this.connected_.callback(!0);this.eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
w(vt,pt);vt.prototype.peerProtocolVersion_=null;vt.prototype.initialized_=!1;vt.prototype.transportType=1;var wt={};vt.prototype.sendTimerId_=0;
var iqa=function(a){var b=a.event_.data;if("string"!==typeof b)return!1;var c=b.indexOf("|"),d=b.indexOf(":");if(-1==c||-1==d)return!1;var f=b.substring(0,c);c=b.substring(c+1,d);b=b.substring(d+1);if(d=ut[f])return d.xpcDeliver(c,b,a.event_.origin),!0;d=gqa(b)[0];for(var g in ut){var l=ut[g];if(1==rt(l)&&!l.isConnected()&&"tp"==c&&("SETUP"==d||"SETUP_NTPV2"==d)&&hqa(l,a.event_.origin))return qt(l,f),l.xpcDeliver(c,b),!0}return!1};
vt.prototype.transportServiceHandler=function(a){var b=gqa(a);a=b[1];switch(b[0]){case"SETUP_ACK":xt(this,1);this.setupAckReceived_.fired_||this.setupAckReceived_.callback(!0);break;case"SETUP_ACK_NTPV2":2==this.protocolVersion_&&(xt(this,2),this.setupAckReceived_.fired_||this.setupAckReceived_.callback(!0));break;case"SETUP":xt(this,1);this.sendSetupAckMessage_(1);break;case"SETUP_NTPV2":2==this.protocolVersion_&&(b=this.peerProtocolVersion_,xt(this,2),this.sendSetupAckMessage_(2),1!=b&&null==
this.peerEndpointId_||this.peerEndpointId_==a||this.sendSetupMessage_(),this.peerEndpointId_=a);}};
vt.prototype.sendSetupMessage_=function(){2!=this.protocolVersion_||null!=this.peerProtocolVersion_&&2!=this.peerProtocolVersion_||this.send("tp","SETUP_NTPV2,"+this.endpointId_);null!=this.peerProtocolVersion_&&1!=this.peerProtocolVersion_||this.send("tp","SETUP")};
vt.prototype.sendSetupAckMessage_=function(a){if(2!=this.protocolVersion_||null!=this.peerProtocolVersion_&&2!=this.peerProtocolVersion_||2!=a){if(null!=this.peerProtocolVersion_&&1!=this.peerProtocolVersion_||1!=a)return;this.send("tp","SETUP_ACK")}else this.send("tp","SETUP_ACK_NTPV2");this.setupAckSent_.fired_||this.setupAckSent_.callback(!0)};
var xt=function(a,b){b>a.peerProtocolVersion_&&(a.peerProtocolVersion_=b);1==a.peerProtocolVersion_&&(a.setupAckSent_.fired_||a.oneSidedHandshake_||a.setupAckSent_.callback(!0),a.peerEndpointId_=null)};
e=vt.prototype;e.connect=function(){var a=this.getWindow(),b=Ra(a),c=wt[b];"number"!==typeof c&&(c=0);0==c&&ti(a.postMessage?a:a.document,"message",iqa,!1,vt);wt[b]=c+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
e.maybeAttemptToConnect_=function(){var a=0==rt(this.channel_);this.oneSidedHandshake_&&a||this.channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),this.sendSetupMessage_())};
e.send=function(a,b){var c=this.channel_.peerWindowObject_;c&&(this.send=function(d,f){var g=this,l=this.channel_.name;this.sendTimerId_=Yi(function(){g.sendTimerId_=0;try{var m=c.postMessage?c:c.document;m.postMessage&&m.postMessage(l+"|"+d+":"+f,g.peerHostname_)}catch(n){}},0)},this.send(a,b))};
e.notifyConnected_=function(){fqa(this.channel_,1==this.protocolVersion_||1==this.peerProtocolVersion_?200:void 0)};
e.disposeInternal=function(){if(this.initialized_){var a=this.getWindow(),b=Ra(a),c=wt[b];wt[b]=c-1;1==c&&wi(a.postMessage?a:a.document,"message",iqa,!1,vt)}this.sendTimerId_&&(Zi(this.sendTimerId_),this.sendTimerId_=0);Sg(this.eventHandler_);delete this.eventHandler_;Sg(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;this.connected_.cancel();delete this.connected_;
delete this.send;vt.superClass_.disposeInternal.call(this)};
var gqa=function(a){a=a.split(",");a[1]=a[1]||null;return a};var zt=function(a,b){ft.call(this);for(var c=0,d;d=aqa[c];c++)if(d in a&&!/^https?:\/\//.test(a[d]))throw Error("URI "+a[d]+" is invalid for field "+d);this.cfg_=a;this.name=this.cfg_.cn||ot(10);this.domHelper_=b||bg();this.deferredDeliveries_=[];this.peerLoadHandler_=new Oq(this);a.lpu=a.lpu||Ad(this.domHelper_.getWindow().location.href)+"/robots.txt";a.ppu=a.ppu||Ad(a.pu||"")+"/robots.txt";ut[this.name]=this;vfa(window,"unload",jqa)||si(window,"unload",jqa)};
w(zt,ft);var kqa=/^%*tp$/,lqa=/^%+tp$/;e=zt.prototype;e.connectionDelay_=null;e.peerWindowDeferred_=null;e.transport_=null;e.state_=1;e.isConnected=function(){return 2==this.state_};
e.peerWindowObject_=null;e.iframeElement_=null;e.getConfig=function(){return this.cfg_};
e.getIframeElement=function(){return this.iframeElement_};
e.getTransportType=function(){return this.transport_.getType()};
e.getTransportName=function(){return this.transport_.getName()};
var oqa=function(a,b){var c=a.cfg_.ifrid;c||(c=a.cfg_.ifrid="xpcpeer"+ot(4));var d=bg(b).createElement("IFRAME");d.id=d.name=c;d.style.width=d.style.height="100%";mqa(a);a.peerWindowDeferred_=new gt(void 0,a);var f=nqa(a);Pq(a.peerLoadHandler_,d,"load",a.peerWindowDeferred_.callback,!1,a.peerWindowDeferred_);we||ye?window.setTimeout(u(function(){b.appendChild(d);vc(d,nh(f.toString()))},a),1):(vc(d,nh(f.toString())),b.appendChild(d))},mqa=function(a){a.peerWindowDeferred_&&(a.peerWindowDeferred_.cancel(),
a.peerWindowDeferred_=null);
a.deferredDeliveries_.length=0;a.peerLoadHandler_.removeAll()},nqa=function(a){var b=a.cfg_.pu;
"string"===typeof b&&(b=a.cfg_.pu=new jq(b));var c={};c.cn=a.name;c.tp=a.cfg_.tp;c.osh=a.cfg_.osh;a.cfg_.lru&&(c.pru=a.cfg_.lru);a.cfg_.lpu&&(c.ppu=a.cfg_.lpu);a.cfg_.ppu&&(c.lpu=a.cfg_.ppu);(a=a.cfg_.role)&&(c.role=1==a?0:1);$q(b,"xpc",uj(c));return b};
zt.prototype.connect=function(a){this.connectCb_=a||Ka;3==this.state_&&(this.state_=1);this.peerWindowDeferred_?lt(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
zt.prototype.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var a=this.iframeElement_.contentWindow;a||(a=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=a}if(!this.peerWindowObject_){if(window==window.top)throw Error("CrossPageChannel: Can't connect, peer window-object not set.");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp="function"===
typeof document.postMessage||"function"===typeof window.postMessage||te&&window.postMessage?1:0);if("function"===typeof this.cfg_.tp)this.transport_=new this.cfg_.tp(this,this.domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new vt(this,this.cfg_.ph,this.domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2);break;case 2:if(a=this.peerWindowObject_)try{a=window.document.domain==this.peerWindowObject_.document.domain}catch(b){a=!1}a&&(this.transport_=new st(this,this.domHelper_));}if(!this.transport_)throw Error("CrossPageChannel: No suitable transport found! You may try injecting a Transport constructor directly via the channel config object.");
}for(this.transport_.connect();0<this.deferredDeliveries_.length;)this.deferredDeliveries_.shift()()};
zt.prototype.close=function(){mqa(this);this.state_=3;Sg(this.transport_);this.connectCb_=this.transport_=null;Sg(this.connectionDelay_);this.connectionDelay_=null};
var fqa=function(a,b){a.isConnected()||a.connectionDelay_&&a.connectionDelay_.isActive()||(a.state_=2,Sg(a.connectionDelay_),void 0!==b?(a.connectionDelay_=new et(a.connectCb_,b),a.connectionDelay_.start()):(a.connectionDelay_=null,a.connectCb_()))};
zt.prototype.notifyTransportError=function(){this.close()};
zt.prototype.send=function(a,b){if(this.isConnected()){try{var c=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(f){c=!1}if(c){Pa(b)&&(b=uj(b));c=this.transport_;var d=c.send;kqa.test(a)&&(a="%"+a);a=a.replace(/[%:|]/g,encodeURIComponent);d.call(c,a,b)}else this.close()}};
zt.prototype.xpcDeliver=function(a,b,c){this.peerWindowDeferred_?this.deferredDeliveries_.push(u(this.xpcDeliver,this,a,b,c)):hqa(this,c)&&!this.isDisposed()&&3!=this.state_&&(a&&"tp"!=a?this.isConnected()&&(a=a.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),a=lqa.test(a)?a.substring(1):a,a=this.getService(a,b))&&(b=Vpa(b,a.objectPayload),null!=b&&a.callback(b)):this.transport_.transportServiceHandler(b))};
var rt=function(a){var b=a.cfg_.role;return"number"===typeof b?b:window.parent==a.peerWindowObject_?1:0},qt=function(a,b){delete ut[a.name];
a.name=b;ut[b]=a},hqa=function(a,b){var c=a.cfg_.ph;
return Nb(null==b?"":String(b))||Nb(null==c?"":String(c))||b==a.cfg_.ph};
zt.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete ut[this.name];Sg(this.peerLoadHandler_);delete this.peerLoadHandler_;zt.superClass_.disposeInternal.call(this)};
var jqa=function(){for(var a in ut)Sg(ut[a])},ut={};var pqa=function(a,b,c,d){this.xpcConfig_=a;this.iframeContainerId_=b;this.domHelper_=c;this.connectionCallback_=d;this.delayGenerator_=new Ur(5E3,128);this.crossPageChannel_=null},qqa=function(a){a.crossPageChannel_=new zt(a.xpcConfig_,a.domHelper_||void 0);
var b=dpa(a.iframeContainerId_);oqa(a.crossPageChannel_,b);Yi(a.checkConnectionTimeout_,Vr(a.delayGenerator_)+5E3,a);a.crossPageChannel_.connect(u(function(){this.delayGenerator_.reset();this.connectionCallback_(this.crossPageChannel_)},a))},rqa=function(a,b){a=cg(document,a);
a=vg(a);b=new jq(b);for(var c=0;c<a.length;++c)if("IFRAME"==a[c].tagName){var d=new jq(a[c].src);d.domain_==b.domain_&&d.getPath()==b.getPath()&&ug(a[c])}};
pqa.prototype.checkConnectionTimeout_=function(){this.crossPageChannel_&&!this.crossPageChannel_.isConnected()&&(sqa(this),qqa(this))};
var sqa=function(a){a.crossPageChannel_&&(a.crossPageChannel_.close(),Sg(a.crossPageChannel_),a.crossPageChannel_=null);rqa(a.iframeContainerId_,a.xpcConfig_.pu)};var tqa=function(a,b,c,d,f){this.iframeUri=a;this.iframeContainerId=b;this.iframeChannel=c;this.handler=d;this.config=f;this.hasBeenDisposed=!1;this.logger=new Wr};
e=tqa.prototype;e.start=function(){this.iframeChannel.start(this.getIframeUri(),this.iframeContainerId,this.onConnect.bind(this))};
e.startHandoff=function(){At(this.iframeChannel,"sh",[])};
e.onConnect=function(){this.iframeChannel.registerService("cha",this.channelHandleArray.bind(this),!0);this.iframeChannel.registerService("co",this.channelOpened.bind(this),!0);this.iframeChannel.registerService("cc",this.channelClosed.bind(this),!0);this.iframeChannel.registerService("ce",this.channelError.bind(this),!0);this.iframeChannel.registerService("cse",this.channelStatEvent.bind(this),!0);this.authParams&&this.updateAuthParams(this.authParams);At(this.iframeChannel,"s",[])};
e.getIframeUri=function(){var a=new jq(this.iframeUri),b=ps(this.config);$q(a,"cfg",b);$q(a,"ctype",this.config.getClientType());(b=Kr(this.config,5))&&$q(a,"gapi_src",b);(b=Kr(this.config,4))&&$q(a,"service",b);null!=this.authParams&&3===this.authParams.getScheme()&&$q(a,"oauth_token",this.authParams.getToken());this.config.getPageId()&&$q(a,"pageId",this.config.getPageId());return a.toString()};
e.close=function(){this.iframeChannel.close();rqa(this.iframeContainerId,this.iframeUri)};
e.updateAuthParams=function(a){this.authParams=a;a=Zoa.serialize(this.authParams);At(this.iframeChannel,"uap",a)};
e.sendMap=function(a){At(this.iframeChannel,"sm",a)};
e.tryImmediateReconnectByUserRequest=function(){At(this.iframeChannel,"tcn",[])};
e.channelOpened=function(){this.handler.channelOpened(this)};
e.channelHandleArray=function(a){this.handler.channelHandleArray(a,this)};
e.channelClosed=function(){this.handler.channelClosed(this)};
e.channelError=function(a){this.handler.channelError("object"===typeof a&&Array.isArray(a)?new Cr(a[0],a[1]):new Cr(Number(a),-1),this)};
e.channelStatEvent=function(a){this.handler.channelStatEvent(Number(a),this)};
e.isDisposed=function(){return this.hasBeenDisposed};
e.dispose=function(){this.hasBeenDisposed=!0};var Bt=function(a){this.domHelper=a;this.logger=new Wr};
Bt.prototype.start=function(a,b,c){var d={};d.pu=a;this.xpcIframeCreator=new pqa(d,b,this.domHelper||null,this.onXpcConnect.bind(this,c));qqa(this.xpcIframeCreator)};
Bt.prototype.onXpcConnect=function(a,b){this.crossPageChannel=b;a()};
Bt.prototype.registerService=function(a,b,c){this.crossPageChannel.registerService(a,b,c)};
var At=function(a,b,c){a.crossPageChannel&&a.crossPageChannel.isConnected()&&a.crossPageChannel.send(b,c||[])};
Bt.prototype.close=function(){sqa(this.xpcIframeCreator);this.crossPageChannel=void 0};var Ct=function(a,b,c){at.call(this,a,b);this.iframeContainerId=c};
p(Ct,at);Ct.prototype.createBrowserChannel=function(a){return new tqa(this.getUri(),this.iframeContainerId,new Bt(this.getDomHelper()||void 0),a,bt(this))};
Ct.prototype.getIframeContainerId=function(){return this.iframeContainerId};
Ct.prototype.getFirstPartyAuthSchemeAndHash=function(a){return at.prototype.getFirstPartyAuthSchemeAndHash.call(this,a)||ct()};
Ct.prototype.isIframed=function(){return!0};var Dt=function(a){this.logger=a};
Dt.prototype.validate=function(a){for(var b=a.getDescriptor(),c=this.specifications[b.getName()],d=b.getFields(),f=0;f<d.length;++f);for(var g in c){d=c[g];var l=Er(b,g);for(f=0;f<d.length;++f){if(!d[f](l,a))return!1;for(var m=0;m<Or(a,l.tag_);++m){var n=a.get(l,m);if(n instanceof Hr&&!this.validate(n))return!1}}}return!0};
Dt.prototype.required=function(a,b){(b=b.has(a))||a.getName();return b};
Dt.prototype.greaterOrEqualTo=function(a,b,c){a=!c.has(b)||c.get(b)>=a;a||(b.getName(),c.get(b));return a};
Dt.prototype.nonEmpty=function(a,b){(b=!b.has(a)||""!=b.get(a))||a.getName();return b};var uqa=function(a){this.logger=a;a=function(){return!0};
var b=this.required.bind(this),c=this.greaterOrEqualTo.bind(this,0),d=this.nonEmpty.bind(this);this.specifications={Version:{major_version:[b,c],minor_version:[b,c]},ProtocolVersion:{version:[b]},ClientVersion:{version:[b],platform:[b],language:[b,d],application_info:[b,d]},ClientToServerMessage:{header:[b],init_endpoint_message:[a],init_session_message:[a],client_data_message_deprecated:[a],send_on_disconnect_message:[a],close_session_message:[a]},ClientHeader:{protocol_version:[b],client_version:[b],
client_time_ms:[b],max_known_server_time_ms:[b],message_id:[a]},SessionId:{service_name:[b,d],session_name:[a]},InitEndpointMessage:{},InitSessionMessage:{session_id:[b],subscriber_info:[a]},CloseSessionMessage:{session_id:[b]},SessionStatusMessage:{session_id:[b],address:[a,d],is_broadcast_to_user:[a],subscriber_info:[a],status:[a]},DataMessage:{session_id:[b],message:[b]},LcsPostmanInvalidation:{signal:[b],session_id:[b],ack_id:[b]},LcsSignal:{subscription_key:[b],message:[b]},LcsSubscriptionKey:{name:[b],
topic_name:[b]},LcsPostmanMessage:{data:[a],trace_id:[a],publish_timestamp_micros:[b],is_suppressor:[a]},ServerToClientMessage:{header:[b],server_data_message:[a],postman_invalidation:[a],channel_status_message:[a],session_status_message:[a]},ServerHeader:{protocol_version:[b],server_time_ms:[b,c],message_id:[a,d]},StatusP:{code:[b],description:[a]},ChannelStatusMessage:{status:[b],jid_resource:[a]}}};
p(uqa,Dt);var Et=function(a,b){this.channel=a;this.serviceName=b;this.isOpen=!1};
e=Et.prototype;e.toString=function(){return"HangingGetChannel("+this.sessionName+")"};
e.open=function(){this.isOpen=!0;this.channel.sendSubscription(this)};
e.getSubscriberInfo=function(){return this.subscriberInfo||null};
e.getServiceName=function(){return this.serviceName};
e.getSessionName=function(){return this.sessionName||null};
var Ft=function(a,b,c){Et.call(this,a,b);this.sessionHandler=c};
p(Ft,Et);Ft.prototype.handleAddressAssigned=function(a){var b=this.sessionHandler,c=a!=b.address_;b.address_=a;b.isOnline_=null!=b.address_;a=k(b.networkStatusReceivers_);for(var d=a.next();!d.done;d=a.next())d=d.value,d(b.isOnline_,c)};
Ft.prototype.handleSubscriberInfo=function(){};
var Gt=function(a,b,c){Et.call(this,a,b);this.sessionHandler=c};
p(Gt,Et);Gt.prototype.getSessionHandler=function(){return this.sessionHandler};
Gt.prototype.handleAddressAssigned=function(){};
Gt.prototype.handleSubscriberInfo=function(a){this.subscriberInfo=a;var b=this.sessionHandler;if(Ht(b))if(a===b.subscriberInfo)b.logger.warning("Received duplicate subscriber info from LCS");else{b.logger.info("Received new subscriber info from LCS");b.subscriberInfo=a;for(var c=k(b.registrations),d=c.next();!d.done;d=c.next()){var f=k(d.value);d=f.next().value;f=f.next().value;It(b,f);0<f.numSubscribers()&&vqa(b,f,d,a)}}};var wqa=function(a,b){this.channelHandler=a;this.channelConfig=b;this.unnamedSessions=[];this.sessions=new Map;this.broadcastSessions=new Map;this.nextChannelReloadTimeMs=0;this.logger=new Wr;this.msgValidator=new uqa(this.logger);this.isOpen=!1;this.authParams=new Rr;this.messageId=this.lastKnownServerTimeMs=0;this.hasBeenDisposed=!1;this.channelConfig.useCors?this.authParams.setScheme(5):(this.authParams.setScheme(2),this.authParams.setOrigin(Ad(t.location.href)));a=b.getAuthuser();0!==a&&this.authParams.setAuthuser(a)};
e=wqa.prototype;e.setOAuthToken=function(a){5!==this.authParams.getScheme()&&(this.authParams.setScheme(3),this.authParams.setToken(a),this.updateAuthParams())};
e.setAppAuthToken=function(a){5!==this.authParams.getScheme()&&(this.authParams.setScheme(4),this.authParams.setToken(a),this.updateAuthParams())};
e.open=function(){this.browserChannel=this.channelConfig.createBrowserChannel(this);this.updateAuthParams();this.browserChannel.start()};
e.maybeReloadChannel=function(){var a=Date.now();a>this.nextChannelReloadTimeMs&&(this.nextChannelReloadTimeMs=a+Math.ceil(18E5*Math.random()),this.close(),this.channelClosed(),this.browserChannel=void 0,this.open())};
e.close=function(){void 0!==this.browserChannel&&this.browserChannel.close()};
e.dispose=function(){this.close();this.hasBeenDisposed=!0};
e.isDisposed=function(){return this.hasBeenDisposed};
e.updateAuthParams=function(){if(Ooa.contains(this.authParams.getScheme())){var a=this.channelConfig.getFirstPartyAuthSchemeAndHash(this.authParams.getOrigin());if(null!=a){var b=a.scheme;a=a.hash;a!==this.authParams.getToken()&&(this.authParams.setScheme(Joa[b]),this.authParams.setToken(a))}else this.authParams.setToken("")}this.browserChannel&&this.browserChannel.updateAuthParams(this.authParams)};
e.channelOpened=function(){};
e.handleSessionStatusMessage=function(a){var b=a.getSessionId();if(null!=b){var c=b.getSessionName();if(null!=c){var d=this.getSession(b);if(null==d)for(var f=0;f<this.unnamedSessions.length;++f){var g=this.unnamedSessions[f],l=b.getServiceName();if(g.getServiceName()===l){d=g;d.sessionName=c;this.unnamedSessions.splice(f,1);Lr(a,3)?this.broadcastSessions.has(l)||this.broadcastSessions.set(l,d):this.sessions.set(d.getSessionName(),d);break}}if(null!=d)if(a.hasStatus()&&1!==a.getStatus().getCode()){if(b.getServiceName(),
a.getStatus().getDescription(),b=d.sessionHandler,null!=b.onSessionError)b.onSessionError(d,{isTransient:!1,description:a.getStatus().getDescription()||""})}else Kr(a,2),b.getSessionName(),b.getServiceName(),d.handleAddressAssigned(Kr(a,2)),a.hasSubscriberInfo()&&d.handleSubscriberInfo(a.getSubscriberInfo())}}};
e.channelHandleArray=function(a){a=k(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value.p){var c=Hs.getDescriptor();b=cpa(c,b);if(null!=b&&this.msgValidator.validate(b)&&b.hasHeader()){this.lastKnownServerTimeMs=(c=Kr(b.getHeader(),4))?Math.max(this.lastKnownServerTimeMs,c):this.lastKnownServerTimeMs;if(Ir(b,3)){c=Kr(b,3);var d=c.getStatus();d=d?d.getCode():null;if(1===d){this.isOpen=!0;var f=k(this.sessions.values());for(d=f.next();!d.done;d=f.next())this.sendSubscription(d.value);f=k(this.unnamedSessions);
for(d=f.next();!d.done;d=f.next())this.sendSubscription(d.value);f=k(this.broadcastSessions.values());for(d=f.next();!d.done;d=f.next())this.sendSubscription(d.value);Ir(c,2)&&Kr(c,2);this.channelHandler.onOpen()}else 4===d?(this.isOpen=!1,this.browserChannel.startHandoff()):5===d&&this.maybeReloadChannel()}b.hasSessionStatusMessage()&&(c=b.getSessionStatusMessage(),this.handleSessionStatusMessage(c));if(Ir(b,2)){c=Kr(b,2);d=(d=c.getSessionId())?this.getSession(d):null;if(null==d)continue;else if(d instanceof
Gt)continue;d.sessionHandler.receive(d,c.getMessage())}b.hasPostmanInvalidation()&&(b=b.getPostmanInvalidation(),c=(c=b.getSessionId())?this.getSession(c):null,null==c||c instanceof Ft||xqa(c.sessionHandler,b))}}};
e.channelError=function(a){this.updateAuthParams();this.channelHandler.onError(this,a)};
e.channelClosed=function(){this.isOpen=!1;this.channelHandler.onClose(this)};
e.channelStatEvent=function(a){if(null!=this.channelHandler.onStatEvent)this.channelHandler.onStatEvent(this,a)};
e.newSession=function(a,b){a=new Ft(this,a,b);this.unnamedSessions.push(a);return a};
e.newPostmanSession=function(a,b){a=new Gt(this,a,b);this.unnamedSessions.push(a);return a};
e.tryImmediateReconnectByUserRequest=function(){this.browserChannel&&this.browserChannel.tryImmediateReconnectByUserRequest()};
e.getSession=function(a){var b=this.sessions.get(a.getSessionName());null==b&&(b=this.broadcastSessions.get(a.getServiceName()));return b};
e.sendSubscription=function(a){this.isOpen&&(a=Upa(a.getServiceName(),a.getSessionName(),a.getSubscriberInfo()),yqa(this,a))};
e.sendNoOp=function(){yqa(this,void 0)};
var yqa=function(a,b){var c="c"+ ++a.messageId,d=Date.now(),f=a.lastKnownServerTimeMs,g=new Bs;g.setProtocolVersion(Hpa);Mr(g,3,d);Mr(g,4,f);g.setMessageId(c);c=new ys;c.setVersion(Qs);Mr(c,2,Tpa);Mr(c,3,"JS");Mr(c,4,"lcsclient");Mr(g,2,c);c=new As;c.setHeader(g);b instanceof Cs?Mr(c,2,b):b instanceof Ds?c.setInitSessionMessage(b):b instanceof Es&&Mr(c,6,b);a.msgValidator.validate(c)&&(b={},g=ps(c),b.p=g,a.browserChannel.sendMap(b))};var Jt=function(a,b){var c=void 0===c?new Bt(b.getDomHelper()||void 0):c;this.channelHandler=a;this.channelConfig=b;this.iframeChannel=c;this.authParams=new Rr;this.unnamedSessions=[];this.sessions=new Map;this.broadcastSessions=new Map;this.hasBeenDisposed=this.isConnectedToWorker=!1;this.nextChannelReloadTimeMs=0;this.clientLogger=new Wr;this.delayGenerator=new Ur(1E4,100);this.authParams.setOrigin(Ad(t.location.href));this.authParams.setScheme(2);a=b.getAuthuser();null!=a&&this.authParams.setAuthuser(a)};
e=Jt.prototype;e.setOAuthToken=function(){};
e.setAppAuthToken=function(){};
e.getIframeUri=function(){var a=new jq(this.channelConfig.getUri()),b=ps(bt(this.channelConfig));$q(a,"cfg",b);$q(a,"ctype",this.channelConfig.getClientType());$q(a,"sw",!0);return a.toString()};
e.open=function(){this.iframeUri=this.getIframeUri();this.iframeChannel.start(this.iframeUri,this.channelConfig.getIframeContainerId(),this.onXpcConnect.bind(this))};
e.onXpcConnect=function(){this.iframeChannel.registerService("sw2c",this.channelHandleMessage.bind(this),!1);Kt(this)};
e.newSession=function(a,b){a=new Ft(this,a,b);this.unnamedSessions.push(a);return a};
e.newPostmanSession=function(a,b){a=new Gt(this,a,b);this.unnamedSessions.push(a);return a};
e.tryImmediateReconnectByUserRequest=function(){zqa(this)};
e.dispose=function(){this.close();this.hasBeenDisposed=!0};
e.isDisposed=function(){return this.hasBeenDisposed};
e.close=function(){this.iframeChannel.close();this.isConnectedToWorker=!1;this.channelHandler.onClose(this)};
e.updateAuthParams=function(){var a=this.channelConfig.getFirstPartyAuthSchemeAndHash(this.authParams.getOrigin());if(null!=a){var b=a.scheme;a=a.hash;a!==this.authParams.getToken()&&(this.authParams.setScheme(Joa[b]),this.authParams.setToken(a))}else this.authParams.setToken("")};
var Kt=function(a){a.updateAuthParams();var b=new Rs;Mr(b,1,a.authParams);a.send(b)},zqa=function(a){var b=new Rs,c=bt(a.channelConfig);
Mr(b,3,c);a.send(b)},Aqa=function(a){var b=Vr(a.delayGenerator)+1E4;
Yi(function(){a.isConnectedToWorker?a.delayGenerator.reset():(a.close(),a.open())},b)};
e=Jt.prototype;e.sendSubscription=function(a){if(this.isConnectedToWorker){a=Upa(a.getServiceName(),a.getSessionName(),a.getSubscriberInfo());var b=new Rs;b.setInitSessionMessage(a);this.send(b)}};
e.send=function(a){a=ps(a);At(this.iframeChannel,"c2sw",a)};
e.getSession=function(a){var b=this.sessions.get(a.getSessionName());null==b&&(b=this.broadcastSessions.get(a.getServiceName()));return b};
e.channelHandleMessage=function(a){var b=Ss.getDescriptor();a=cpa(b,a);if(null!=a)if(Ir(a,1))a=Kr(a,1),b=a.getSessionId(),b=this.getSession(b),null==b||b instanceof Gt||b.sessionHandler.receive(b,a.getMessage());else if(a.hasPostmanInvalidation())a=a.getPostmanInvalidation(),b=a.getSessionId(),b=this.getSession(b),null==b||b instanceof Ft||xqa(b.sessionHandler,a);else if(Ir(a,6))zqa(this);else if(a.hasSessionStatusMessage())this.handleSessionStatusMessage(a.getSessionStatusMessage());else if(Ir(a,
3))a=Kr(a,3),b=(b=a.getStatus())?b.getCode():null,1===b?(Ir(a,2)&&Kr(a,2),this.channelHandler.onOpen()):4!==b&&5===b&&this.maybeReloadChannel();else if(Ir(a,9)){if(a=Kr(a,9),a=Kr(a,1),null!=this.channelHandler.onStatEvent)this.channelHandler.onStatEvent(this,a)}else if(Ir(a,5))Kt(this);else if(Ir(a,4)){if(a=Kr(a,4),Ir(a,1))switch(Kr(a,1)){case 1:Aqa(this);break;case 2:Kr(a,2);this.isConnectedToWorker=!0;b=k(this.sessions.values());for(a=b.next();!a.done;a=b.next())this.sendSubscription(a.value);b=
k(this.unnamedSessions);for(a=b.next();!a.done;a=b.next())this.sendSubscription(a.value);b=k(this.broadcastSessions.values());for(a=b.next();!a.done;a=b.next())this.sendSubscription(a.value);}}else if(Ir(a,10))this.channelHandler.onClose(this);else Ir(a,11)&&(Kt(this),a=Kr(a,11),a=new Cr(a.getBrowserChannelErrorCode(),a.getLastHttpStatusCode()),this.channelHandler.onError(this,a))};
e.handleSessionStatusMessage=function(a){var b=a.getSessionId();if(null!=b){var c=b.getSessionName();if(null!=c){var d=this.getSession(b);if(null==d)for(var f=0;f<this.unnamedSessions.length;++f){var g=this.unnamedSessions[f],l=b.getServiceName();if(g.getServiceName()===l){d=g;d.sessionName=c;this.unnamedSessions.splice(f,1);Lr(a,3)?this.broadcastSessions.has(l)||this.broadcastSessions.set(l,d):this.sessions.set(d.getSessionName(),d);break}}if(a.hasStatus()&&1!==a.getStatus().getCode()){if(b.getServiceName(),
a.getStatus().getDescription(),b=d.sessionHandler,null!=b.onSessionError)b.onSessionError(d,{isTransient:!1,description:a.getStatus().getDescription()||""})}else Kr(a,2),b.getSessionName(),b.getServiceName(),d.handleAddressAssigned(Kr(a,2)),a.hasSubscriberInfo()&&(a=a.getSubscriberInfo(),d.handleSubscriberInfo(a))}}};
e.maybeReloadChannel=function(){var a=Date.now();a>this.nextChannelReloadTimeMs&&(this.nextChannelReloadTimeMs=a+Math.ceil(18E5*Math.random()),this.close(),this.open())};var Bqa=function(a){return!!document.currentScript&&(-1!=document.currentScript.src.indexOf("?"+a)||-1!=document.currentScript.src.indexOf("&"+a))},Cqa=function(){return"function"==typeof window.__onGCastApiAvailable?window.__onGCastApiAvailable:null},Lt=function(a){a.length?Dqa(a.shift(),function(){Lt(a)}):Mt()},Eqa=function(a){return"chrome-extension://"+a+"/cast_sender.js"},Dqa=function(a,b,c){var d=document.createElement("script");
d.onerror=b;c&&(d.onload=c);wc(d,nh(a));(document.head||document.documentElement).appendChild(d)},Mt=function(){var a=Cqa();
a&&a(!1,"No cast extension found")},Gqa=function(){if(Fqa){var a=2,b=Cqa(),c=function(){a--;
0==a&&b&&b(!0)};
window.__onGCastApiAvailable=c;Dqa("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",Mt,c)}},Hqa=function(){Gqa();
var a=(a=window.navigator.userAgent.match(/Chrome\/([0-9]+)/))?parseInt(a[1],10):0;var b=[];if(0!=a){var c=a-1;b.push("//www.gstatic.com/eureka/clank/"+a+"/cast_sender.js");b.push("//www.gstatic.com/eureka/clank/"+c+"/cast_sender.js")}b.push("//www.gstatic.com/eureka/clank/cast_sender.js");Lt(b)},Fqa=Bqa("loadCastFramework")||Bqa("loadCastApplicationFramework"),Iqa=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var Nt=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web/navigation_request";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"page_type"})};
Nt.prototype.increment=function(a){this.streamzService_.incrementCounter(this.metricName_,a)};
Nt.prototype.incrementBy=function(a,b){this.streamzService_.incrementCounterBy(this.metricName_,a,b)};
Nt.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var Ot=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web/navigation_response";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"result"},{field_type:3,field_name:"page_type"},{field_type:3,field_name:"error_type"})};
Ot.prototype.increment=function(a,b,c){this.streamzService_.incrementCounter(this.metricName_,a,b,c)};
Ot.prototype.incrementBy=function(a,b,c,d){this.streamzService_.incrementCounterBy(this.metricName_,a,b,c,d)};
Ot.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var Pt=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web/servlet_response_errors";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"code"},{field_type:3,field_name:"location"})};
Pt.prototype.increment=function(a,b){this.streamzService_.incrementCounter(this.metricName_,a,b)};
Pt.prototype.incrementBy=function(a,b,c){this.streamzService_.incrementCounterBy(this.metricName_,a,b,c)};
Pt.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var Qt=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web/debug/navigate_page_type";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"page_type"},{field_type:3,field_name:"request_type"})};
Qt.prototype.increment=function(a,b){this.streamzService_.incrementCounter(this.metricName_,a,b)};
Qt.prototype.incrementBy=function(a,b,c){this.streamzService_.incrementCounterBy(this.metricName_,a,b,c)};
Qt.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var Rt=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web/debug/away_from_app_endpoint";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"page_type"})};
Rt.prototype.increment=function(a){this.streamzService_.incrementCounter(this.metricName_,a)};
Rt.prototype.incrementBy=function(a,b){this.streamzService_.incrementCounterBy(this.metricName_,a,b)};
Rt.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var St=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web/debug/bad_endpoint";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"page_type"})};
St.prototype.increment=function(a){this.streamzService_.incrementCounter(this.metricName_,a)};
St.prototype.incrementBy=function(a,b){this.streamzService_.incrementCounterBy(this.metricName_,a,b)};
St.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var Tt=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web/debug/forcer_cold_load";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"page_type"},{field_type:1,field_name:"url_not_polymer_compatible"},{field_type:1,field_name:"config_disable_warm_loads"})};
Tt.prototype.increment=function(a,b,c){this.streamzService_.incrementCounter(this.metricName_,a,b,c)};
Tt.prototype.incrementBy=function(a,b,c,d){this.streamzService_.incrementCounterBy(this.metricName_,a,b,c,d)};
Tt.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var Ut=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web/debug/page_request_fail";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"page_type"})};
Ut.prototype.increment=function(a){this.streamzService_.incrementCounter(this.metricName_,a)};
Ut.prototype.incrementBy=function(a,b){this.streamzService_.incrementCounterBy(this.metricName_,a,b)};
Ut.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var Vt=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web/debug/load_page_request";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:1,field_name:"has_player"},{field_type:3,field_name:"data_page_type"},{field_type:1,field_name:"from_history"},{field_type:1,field_name:"from_miniplayer"})};
Vt.prototype.increment=function(a,b,c,d){this.streamzService_.incrementCounter(this.metricName_,a,b,c,d)};
Vt.prototype.incrementBy=function(a,b,c,d,f){this.streamzService_.incrementCounterBy(this.metricName_,a,b,c,d,f)};
Vt.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var Wt=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web/debug/page_chunk_received";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:2,field_name:"chunks_received"},{field_type:3,field_name:"data_page_type"},{field_type:3,field_name:"page_type"})};
Wt.prototype.increment=function(a,b,c){this.streamzService_.incrementCounter(this.metricName_,a,b,c)};
Wt.prototype.incrementBy=function(a,b,c,d){this.streamzService_.incrementCounterBy(this.metricName_,a,b,c,d)};
Wt.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var Xt=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web/debug/page_request_finished";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"page_type"},{field_type:3,field_name:"data_page_type"},{field_type:1,field_name:"from_history"},{field_type:1,field_name:"from_miniplayer"})};
Xt.prototype.increment=function(a,b,c,d){this.streamzService_.incrementCounter(this.metricName_,a,b,c,d)};
Xt.prototype.incrementBy=function(a,b,c,d,f){this.streamzService_.incrementCounterBy(this.metricName_,a,b,c,d,f)};
Xt.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var Yt=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web/debug/page_update_finish";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"page_type"},{field_type:3,field_name:"data_page_type"},{field_type:3,field_name:"from_history"})};
Yt.prototype.increment=function(a,b,c){this.streamzService_.incrementCounter(this.metricName_,a,b,c)};
Yt.prototype.incrementBy=function(a,b,c,d){this.streamzService_.incrementCounterBy(this.metricName_,a,b,c,d)};
Yt.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var Zt=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web/debug/third_party_apisid_cookie_reissue_iframe";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"client_name"})};
Zt.prototype.increment=function(a){this.streamzService_.incrementCounter(this.metricName_,a)};
Zt.prototype.incrementBy=function(a,b){this.streamzService_.incrementCounterBy(this.metricName_,a,b)};
Zt.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var $t=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web/debug/third_party_apisid_cookie_status";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:1,field_name:"js_readable"})};
$t.prototype.increment=function(a){this.streamzService_.incrementCounter(this.metricName_,a)};
$t.prototype.incrementBy=function(a,b){this.streamzService_.incrementCounterBy(this.metricName_,a,b)};
$t.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var au=function(){var a=Ym();this.metricName_="/client_streamz/youtube/web/debug/browser_cookie_setting";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:1,field_name:"cookie_enabled"})};
au.prototype.increment=function(a){this.streamzService_.incrementCounter(this.metricName_,a)};
au.prototype.incrementBy=function(a,b){this.streamzService_.incrementCounterBy(this.metricName_,a,b)};
au.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var bu=function(a){this.metricName_="/client_streamz/youtube/web/navigation_requests";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"page_type"},{field_type:3,field_name:"load_type"})};
bu.prototype.increment=function(a,b){this.streamzService_.incrementCounter(this.metricName_,a,b)};
bu.prototype.incrementBy=function(a,b,c){this.streamzService_.incrementCounterBy(this.metricName_,a,b,c)};
bu.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};var cu;cu=["av.key","js","unreleased"].slice(-1)[0];var Jqa={NONE:0,EFP:1};var du=function(){this.exposure=0;this.tabHidden=!1;this.backgroundedState=-1;this.isLargeAd=!1;this.screenShare=0};
du.prototype.isVisible=function(){return this.isLargeAd?.3<=this.exposure:.5<=this.exposure};
du.prototype.isFullyVisible=function(){return 1<=this.exposure};var eu={CONTROL:0,EXPERIMENT:1},Kqa={668123728:0,668123729:1},Lqa={44728149:0,44728150:1},Mqa={44728138:0,44728139:1},Nqa={44727842:0,44727843:1},Oqa={44731964:0,44731965:1},Pqa={NONE:0,INTERSECTION_OBSERVER:1,GEOMETRIC:2},Qqa={480596784:0,480596785:1,21063355:2};var fu=function(){this.value_=null;this.consumesParameter_=this.addsToPing_=!1;this.experimentIdMapping_=null};
fu.prototype.consumesParameter=function(a){this.consumesParameter_=void 0===a?!0:a;return this};
var gu=function(a){a.addsToPing_=!0;return a},hu=function(a,b){a.experimentIdMapping_=void 0===b?null:b};
fu.prototype.setExperimentIds=function(a){var b=this;this.experimentIdMapping_&&cb(a,function(c){c=b.experimentIdMapping_[c];void 0!==c&&b.setValue(c)})};
fu.prototype.getValue=function(){return this.value_};
var iu=function(a){fu.call(this);this.legalValues_=a};
p(iu,fu);iu.prototype.setValue=function(a){if(null!==this.value_||!A.containsValue(this.legalValues_,a))return!1;this.value_=a;return!0};
var ju=function(){fu.call(this)};
p(ju,fu);ju.prototype.setValue=function(a){if(null!==this.value_||"number"!==typeof a)return!1;this.value_=a;return!0};
var ku=function(){fu.call(this)};
p(ku,fu);ku.prototype.setValue=function(a){if(null!==this.value_||"string"!==typeof a)return!1;this.value_=a;return!0};var lu=function(){this.features_={};this.allowExperiments_=!0;this.forcedFeatures_={}};
lu.prototype.disable=function(){this.allowExperiments_=!1};
lu.prototype.enable=function(){this.allowExperiments_=!0};
lu.prototype.isEnabled=function(){return this.allowExperiments_};
lu.prototype.reset=function(){this.features_={};this.allowExperiments_=!0;this.forcedFeatures_={}};
var mu=function(a,b,c){a.features_[b]||(a.features_[b]=new iu(c));return a.features_[b]};
lu.prototype.defineStringFeature=function(a){this.features_[a]||(this.features_[a]=new ku);return this.features_[a]};
var nu=function(a,b){if(A.containsKey(a.forcedFeatures_,b))return a.forcedFeatures_[b];if(a=a.features_[b])return a.getValue()},ou=function(a){var b={},c=A.filter(a.features_,function(d){return d.addsToPing_});
A.forEach(c,function(d,f){d=void 0!==a.forcedFeatures_[f]?String(a.forcedFeatures_[f]):d.addsToPing_&&null!==d.value_?String(d.value_):"";0<d.length&&(b[f]=d)},a);
return b};
lu.prototype.getEnabledFeaturesAsStrings=function(){var a=ou(this),b=[];A.forEach(a,function(c,d){d in Object.prototype||"undefined"==typeof c||(c=[d,":",c].join(""),b.push(c))});
return b};
var pu=function(a,b){if(!a.allowExperiments_)return b;b=b.split("&");for(var c=b.length-1;0<=c;c--){var d=b[c].split("="),f=d[0];d=1<d.length?parseInt(d[1],10):1;isNaN(d)||(f=a.features_[f])&&f.setValue(d)&&f.consumesParameter_&&b.splice(c,1)}return b.join("&")};
lu.prototype.setExperimentIds=function(a){this.allowExperiments_&&cb(A.getValues(this.features_),function(b){return b.setExperimentIds(a)})};
var Rqa=function(a,b){a.allowExperiments_&&b&&"string"===typeof b&&(b=b.match(/[&;?]eid=([^&;]+)/))&&2===b.length&&(b=decodeURIComponent(b[1]).split(","),b=eb(b,function(c){return Number(c)}),a.setExperimentIds(b))};var Sqa=!te&&!jc(),qu=function(a,b){if(/-[a-z]/.test(b))return null;if(Sqa&&a.dataset){if(pba()&&!(b in a.dataset))return null;a=a.dataset[b];return void 0===a?null:a}return a.getAttribute("data-"+Kc(b))},ru=function(a,b){return /-[a-z]/.test(b)?!1:Sqa&&a.dataset?b in a.dataset:a.hasAttribute?a.hasAttribute("data-"+Kc(b)):!!a.getAttribute("data-"+Kc(b))};var Tqa=function(){this.monitoredElement=this.markedUpElement=null;this.likelyCandidateCount=this.adkMatchCount=this.elementCount=0;this.creativeSearchState="no";this.wouldHaveUsedFont=!1},su=function(a){if(!a)return!1;
try{var b=a.getBoundingClientRect();return b&&30<=b.height&&30<=b.width}catch(c){return!1}},Uqa=function(a){return db(a,function(b){return su(b)})},Vqa=function(a,b){b=void 0===b?!0:b;
return db(a,function(c){return"SCRIPT"!=c.nodeName&&(!b||"FONT"!=c.nodeName)})},Wqa=function(a,b){b=void 0===b?!0:b;
if(!a)return null;if(!a.children)return a;for(var c=Vqa(pb(a.children),b);c.length;){var d=Uqa(c);if(1==d.length)return d[0];if(1<d.length)break;c=Haa(c,function(f){return f.children?Vqa(pb(f.children)):[]},b)}return a},Xqa=function(a,b){return tb(eb(b,function(c){return pb(vda(c,a))}))};
Tqa.prototype.findMarkedUpElement=function(a){var b=null;var c=dg("SCRIPT",Sf.document);0<c.length&&(c=c[c.length-1])&&c.parentElement&&(b=c.parentElement);b||(b=Sf.document.body);if(!b)return null;a=String(a);b=Xqa(b,["GoogleActiveViewElement"]);c=[];for(var d=k(b),f=d.next();!f.done;f=d.next())f=f.value,ru(f,"googleAvAdk")&&qu(f,"googleAvAdk")==a&&c.push(f);2==c.length&&(Ag(c[0],c[1])?c=[c[1]]:Ag(c[1],c[0])&&(c=[c[0]]));this.elementCount=b.length;this.adkMatchCount=c.length;1==c.length?a=c[0]:(a=
c,a.length?(b=Uqa(a),a=0<b.length?b[0]:a[0]):a=null);return this.markedUpElement=a};var tu=function(a,b){this.adKey_=(void 0===a?0:a)||0;this.awbidKey_=(void 0===b?"":b)||""};
tu.prototype.isValid=function(){return!!this.adKey_||!!this.awbidKey_};
tu.prototype.toString=function(){return this.adKey_+(this.awbidKey_?"-":"")+this.awbidKey_};
tu.prototype.toUrlParameters=function(){var a=[];this.adKey_&&a.push("adk="+this.adKey_);this.awbidKey_&&a.push("exk="+this.awbidKey_);return a};
tu.prototype.matches=function(a){return this.awbidKey_||a.awbidKey_?this.awbidKey_==a.awbidKey_:this.adKey_||a.adKey_?this.adKey_==a.adKey_:!1};var uu=function(){};
uu.prototype.now=function(){return 0};
uu.prototype.getTotalHeapSize=function(){return 0};
uu.prototype.getUsedHeapSize=function(){return 0};
uu.prototype.getHeapSizeLimit=function(){return 0};var wu=function(){if(!vu())throw Error()};
p(wu,uu);var vu=function(){return!(!Sf||!Sf.performance)};
wu.prototype.now=function(){return vu()&&Sf.performance.now?Sf.performance.now():uu.prototype.now.call(this)};
wu.prototype.getTotalHeapSize=function(){return vu()&&Sf.performance.memory?Sf.performance.memory.totalJSHeapSize||0:uu.prototype.getTotalHeapSize.call(this)};
wu.prototype.getUsedHeapSize=function(){return vu()&&Sf.performance.memory?Sf.performance.memory.usedJSHeapSize||0:uu.prototype.getUsedHeapSize.call(this)};
wu.prototype.getHeapSizeLimit=function(){return vu()&&Sf.performance.memory?Sf.performance.memory.jsHeapSizeLimit||0:uu.prototype.getHeapSizeLimit.call(this)};var Yqa=function(){};
Yqa.prototype.isVisible=function(){return 1===cj(Rf)};
var xu=function(){return 0===cj(Rf)};var Zqa=/^https?:\/\/(\w|-)+\.cdn\.ampproject\.(net|org)(\?|\/|$)/,bra=function(a){a=a||yu();for(var b=new $qa(t.location.href,t,!0,!1),c=null,d=a.length-1,f=d;0<=f;--f){var g=a[f];!c&&Zqa.test(g.url)&&(c=g);if(g.url&&!g.isOriginOnly){b=g;break}}f=null;g=a.length&&a[d].url;0!=b.depth&&g&&(f=a[d]);return new ara(b,f,c)},yu=function(){var a=t,b=[],c=null;
do{var d=a;if(Qg(d)){var f=d.location.href;c=d.document&&d.document.referrer||null;var g=!0}else f=c,c=null,g=!1;b.push(new $qa(f||"",d,g));try{a=d.parent}catch(l){a=null}}while(a&&d!=a);d=0;for(a=b.length-1;d<=a;++d)b[d].depth=a-d;d=t;if(d.location&&d.location.ancestorOrigins&&d.location.ancestorOrigins.length==b.length-1)for(a=1;a<b.length;++a)f=b[a],f.url||(f.url=d.location.ancestorOrigins[a-1]||"",f.isOriginOnly=!0);return b},ara=function(a,b,c){this.topFullUrl=a;
this.topOriginOnly=b;this.ampCacheUrl=c},$qa=function(a,b,c,d){this.url=a;
this.win=b;this.isSameOrigin=c;this.isOriginOnly=!!d;this.depth=null};var zu=function(){this.maxPathLength_=4E3;this.paramDelimiter_="&";this.arrayDelimiters_=",$";this.truncationParam="trn";this.truncationValue=null;this.allPriorityLists_={};this.nextPriority_=0;this.allPriorities_=[]},Au=function(a,b){var c={};
c[a]=b;return[c]},cra=function(a,b,c,d,f){var g=[];
Rg(a,function(l,m){(l=Bu(l,b,c,d,f))&&g.push(m+"="+l)});
return g.join(b)},Bu=function(a,b,c,d,f){if(null==a)return"";
b=b||"&";c=c||",$";"string"==typeof c&&(c=c.split(""));if(a instanceof Array){if(d=d||0,d<c.length){for(var g=[],l=0;l<a.length;l++)g.push(Bu(a[l],b,c,d+1,f));return g.join(c[d])}}else if("object"==typeof a)return f=f||0,2>f?encodeURIComponent(cra(a,b,c,d,f+1)):"...";return encodeURIComponent(String(a))},Cu=function(a,b,c){a.allPriorities_.push(b);
a.allPriorityLists_[b]=c};
zu.prototype.addParams=function(a){Rg(a,function(b,c){if(null!=b){var d=this.nextPriority_++;Cu(this,d,Au(c,b))}},this)};
zu.prototype.getUrl=function(a,b,c,d){a=a+"//"+b+c;var f=dra(this)-c.length-d.length;if(0>f)return"";this.allPriorities_.sort(function(v,z){return v-z});
c=null;b="";for(var g=0;g<this.allPriorities_.length;g++)for(var l=this.allPriorities_[g],m=this.allPriorityLists_[l],n=0;n<m.length;n++){if(!f){c=null==c?l:c;break}var r=cra(m[n],this.paramDelimiter_,this.arrayDelimiters_);if(r){r=b+r;if(f>=r.length){f-=r.length;a+=r;b=this.paramDelimiter_;break}c=null==c?l:c}}f="";this.truncationParam&&null!=c&&(f=b+this.truncationParam+"="+(this.truncationValue||c));return a+f+d};
var dra=function(a){if(!a.truncationParam)return a.maxPathLength_;var b=1,c;for(c in a.allPriorityLists_)b=c.length>b?c.length:b;return a.maxPathLength_-a.truncationParam.length-b-a.paramDelimiter_.length-1};
zu.prototype.setMaxPathLength=function(a){this.maxPathLength_=a};var Du=function(a,b){this.urlAndMetadata=a;this.depth=b},fra=function(){var a=yu(),b=Math.max(a.length-1,0),c=bra(a);
a=c.topFullUrl;var d=c.topOriginOnly,f=c.ampCacheUrl,g=[];c=function(m,n){return null==m?n:m};
f&&g.push(new Du([f.url,f.isOriginOnly?2:0],c(f.depth,1)));d&&d!=f&&g.push(new Du([d.url,2],0));a.url&&a!=f&&g.push(new Du([a.url,0],c(a.depth,b)));var l=eb(g,function(m,n){return g.slice(0,g.length-n)});
!a.url||(f||d)&&a!=f||(d=Tda(a.url))&&l.push([new Du([d,1],c(a.depth,b))]);l.push([]);return eb(l,function(m){return era(b,m)})};
function era(a,b){var c=fb(b,function(f,g){return Math.max(f,g.depth)},-1),d=Eaa(c+2);
d[0]=a;cb(b,function(f){return d[f.depth+1]=f.urlAndMetadata});
return d}
var gra=function(){var a=fra();return eb(a,function(b){return Bu(b)})};var Eu=function(){this.pageVisibility=new Yqa;this.performance_=vu()?new wu:new uu};
e=Eu.prototype;e.checkActiveViewRequirements=function(){var a=Sf.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof Sf.setInterval&&"function"===typeof Sf.clearInterval&&"function"===typeof Sf.setTimeout&&"function"===typeof Sf.clearTimeout)};
e.setInterval=function(a,b){return Sf.setInterval(a,b)};
e.clearInterval=function(a){Sf.clearInterval(a)};
e.setTimeout=function(a,b){return Sf.setTimeout(a,b)};
e.clearTimeout=function(a){Sf.clearTimeout(a)};
var hra=function(a){Fu();var b=Jh()||Sf;Zg(b,a,!1)};
Eu.prototype.getPageSignals=function(){return gra()};
La(Eu);var Gu=function(){};
Gu.prototype.getContext=function(){if(!this.context_){if(!Sf)throw Error("Context has not been set and window is undefined.");this.context_=Eu.getInstance()}return this.context_};
Gu.prototype.setContext=function(a){this.context_=a};
La(Gu);var Fu=function(){return Gu.getInstance().getContext()};var Hu=function(a){hf(this,a,0,-1,null,null)};
w(Hu,G);e=Hu.prototype;e.toObject=function(a){var b={accumulatedTime:tf(this,1),usedHeapSize:rf(this,2),totalHeapSize:rf(this,3),heapSizeLimit:rf(this,4),threadEntryCount:rf(this,5)};a&&(b.$jspbMessageInstance=this);return b};
e.serializeBinary=function(){var a=new D;var b=this.getAccumulatedTime();0!==b&&a.writeDouble(1,b);b=this.getUsedHeapSize();0!==b&&a.writeInt64(2,b);b=this.getTotalHeapSize();0!==b&&a.writeInt64(3,b);b=this.getHeapSizeLimit();0!==b&&a.writeInt64(4,b);b=this.getThreadEntryCount();0!==b&&a.writeInt32(5,b);return F(a)};
e.getAccumulatedTime=function(){return tf(this,1)};
e.getUsedHeapSize=function(){return rf(this,2)};
e.getTotalHeapSize=function(){return rf(this,3)};
e.getHeapSizeLimit=function(){return rf(this,4)};
e.getThreadEntryCount=function(){return rf(this,5)};var Iu=function(a){this.context_=a;this.enterTime_=-1;this.threadEntryCount_=this.accumulatedTime_=0},Ju=function(a,b){return function(c){for(var d=[],f=0;f<arguments.length;++f)d[f-0]=arguments[f];
if(-1<a.enterTime_)return b.apply(null,fa(d));try{return a.enterTime_=a.context_.performance_.now(),b.apply(null,fa(d))}finally{a.accumulatedTime_+=a.context_.performance_.now()-a.enterTime_,a.enterTime_=-1,a.threadEntryCount_+=1}}};
Iu.prototype.getAccumulatedTime=function(){var a=0;-1<this.enterTime_&&(a=this.context_.performance_.now()-this.enterTime_);return this.accumulatedTime_+a};
Iu.prototype.getThreadEntryCount=function(){return-1<this.enterTime_?this.threadEntryCount_+1:this.threadEntryCount_};var ira=function(a,b){this.context_=a;this.featureSet_=b;this.stopwatch_=new Iu(a)};
ira.prototype.isEnabled_=function(){return 1==nu(this.featureSet_,"prf")};var jra=function(){this.flagsDict={}};
jra.prototype.getFlag=function(){throw Error()};var kra={POSITION:1,VISIBILITY:2,MONITOR_VISIBILITY:3};Kb(Cb("https://pagead2.googlesyndication.com/pagead/osd.js"));var Ku=function(){this.pollingFrequencyScheme=void 0;this.nextAdBlockId=0;this.enclosingElementBlockId=new tu(0,"");this.binaryContext=0;this.nativeMeasurementStrategy="ns";this.firstPollingTime=-1;this.messagedActiveViewMetadata="";this.featureSet=new lu;hu(gu(mu(this.featureSet,"mv",Pqa)),Qqa);mu(this.featureSet,"omid",eu);gu(mu(this.featureSet,"epoh",eu));gu(mu(this.featureSet,"epph",eu));hu(gu(mu(this.featureSet,"umt",eu)),Kqa);gu(mu(this.featureSet,"phel",eu));gu(mu(this.featureSet,"phell",eu));
gu(mu(this.featureSet,"oseid",kra));var a=this.featureSet;a.features_.sloi||(a.features_.sloi=new ju);gu(a.features_.sloi);gu(mu(this.featureSet,"xdi",eu));gu(mu(this.featureSet,"amp",eu));gu(mu(this.featureSet,"prf",eu));gu(mu(this.featureSet,"gtx",eu));gu(mu(this.featureSet,"mvp_lv",eu));hu(gu(mu(this.featureSet,"vcm",eu)),Nqa);hu(gu(mu(this.featureSet,"dov",Pqa)),Lqa);hu(gu(mu(this.featureSet,"mpv",eu)),Mqa);hu(gu(mu(this.featureSet,"ssmol",eu)),Oqa);gu(mu(this.featureSet,"zocl",eu));this.monitor_=
new ira(Fu(),this.featureSet);this.unmeasurableReason=null;this.omidOnePixelImpressionHasOccurred=this.webviewEverOnScreen=this.isSellsideGma=this.isExternalMeasurementEnabled=this.inInnerBridge=this.isInMobiStrategy=!1;this.flags=new jra};
Ku.prototype.processActiveViewMetadata=function(a){"string"===typeof a&&0!=a.length&&(this.messagedActiveViewMetadata=pu(this.featureSet,a))};
Ku.prototype.processFlags=function(a){if("string"===typeof a&&0!=a.length){var b=this.flags;try{var c=JSON.parse(a)[0];a="";for(var d=0;d<c.length;d++)a+=String.fromCharCode(c.charCodeAt(d)^"\x03\x07\x03\x07\b\x04\x04\x06\x05\x03".charCodeAt(d%10));b.flagsDict=JSON.parse(a)}catch(f){}}};
La(Ku);var lra=function(){var a="https:";Sf&&Sf.location&&"http:"===Sf.location.protocol&&(a="http:");this.protocol_=a;this.domain_="pagead2.googlesyndication.com";this.path_="/pagead/gen_204?id=";this.defaultReportFreq_=.01;this.staticReportThreshold_=Math.random()},Lu=function(a,b,c,d,f){if((d?a.staticReportThreshold_:Math.random())<(f||a.defaultReportFreq_))try{if(c instanceof zu)var g=c;else
g=new zu,Rg(c,function(m,n){var r=g,v=r.nextPriority_++;Cu(r,v,Au(n,m))});
var l=g.getUrl(a.protocol_,a.domain_,a.path_+b+"&","");l&&hra(l)}catch(m){}};var Mu=null;var Nu=function(){var a=t.performance;return a&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):Va()},Ou=function(){var a=void 0===a?t:a;
return(a=a.performance)&&a.now?a.now():null};var mra=function(a,b,c,d,f){this.label=a;this.type=b;this.value=c;this.duration=void 0===d?0:d;this.uniqueId=Math.random();this.slotId=f};var Pu=t.performance,nra=!!(Pu&&Pu.mark&&Pu.measure&&Pu.clearMarks),Qu=vb(function(){var a;if(a=nra){var b;if(null===Mu){Mu="";try{a="";try{a=t.top.location.hash}catch(c){a=t.location.hash}a&&(Mu=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=Mu;a=!!b.indexOf&&0<=b.indexOf("1337")}return a}),Ru=function(){var a=Jh();
this.events=[];this.installedWindow=a||t;var b=null;a&&(a.google_js_reporting_queue=a.google_js_reporting_queue||[],this.events=a.google_js_reporting_queue,b=a.google_measure_js_timing);this.collectionEnabled=Qu()||(null!=b?b:1>Math.random())};
Ru.prototype.disable=function(){this.collectionEnabled=!1;this.events!=this.installedWindow.google_js_reporting_queue&&(Qu()&&cb(this.events,Su),this.events.length=0)};
var Su=function(a){a&&Pu&&Qu()&&(Pu.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),Pu.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
Ru.prototype.start=function(a,b){if(!this.collectionEnabled)return null;var c=Ou()||Nu();a=new mra(a,b,c);b="goog_"+a.label+"_"+a.uniqueId+"_start";Pu&&Qu()&&Pu.mark(b);return a};
Ru.prototype.end=function(a){if(this.collectionEnabled&&"number"===typeof a.value){var b=Ou()||Nu();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";Pu&&Qu()&&Pu.mark(b);!this.collectionEnabled||2048<this.events.length||this.events.push(a)}};
Ru.prototype.instant=function(a,b,c){var d=Ou();d&&this.collectionEnabled&&(a=new mra(a,b,d,0,c),!this.collectionEnabled||2048<this.events.length||this.events.push(a))};
var ora=function(a,b,c){if(!a.collectionEnabled)return c();b=a.start(String(b),3);try{var d=c()}catch(f){throw Su(b),f}a.end(b);return d};
Ru.prototype.timedFunction=function(a,b,c){var d=this;return function(f){for(var g=[],l=0;l<arguments.length;++l)g[l-0]=arguments[l];return ora(d,a,function(){return b.apply(c,g)})}};var Vu=function(){var a=Tu;this.pinger_=Uu;this.errorTypeId_="jserror";this.silenceErrors_=!0;this.addParamsToErrorsFn_=null;this.errorHandler_=this.maybeReportError;this.timer_=void 0===a?null:a;this.useStaticThresholdForErrors_=!1};
Vu.prototype.pinger=function(){return this.pinger_};
Vu.prototype.setErrorHandler=function(a){this.errorHandler_=a};
Vu.prototype.getSilenceErrors=function(){return this.silenceErrors_};
Vu.prototype.setUseStaticThresholdForErrors=function(a){this.useStaticThresholdForErrors_=a};
var pra=function(a,b,c){return Ju(Ku.getInstance().monitor_.stopwatch_,function(){try{if(a.timer_&&a.timer_.collectionEnabled){var d=a.timer_.start(b.toString(),3);var f=c();a.timer_.end(d)}else f=c()}catch(m){var g=a.silenceErrors_;try{Su(d);var l=new Wu(Xu(m));g=a.errorHandler_(b,l,void 0,void 0)}catch(n){a.maybeReportError(217,n)}if(!g)throw m}return f})()},Zu=function(a,b){var c=Yu;
return Ju(Ku.getInstance().monitor_.stopwatch_,function(d){for(var f=[],g=0;g<arguments.length;++g)f[g-0]=arguments[g];return pra(c,a,function(){return b.apply(void 0,f)})})};
Vu.prototype.maybeReportError=function(a,b,c,d,f){f=f||this.errorTypeId_;try{var g=new zu;g.allPriorities_.push(1);g.allPriorityLists_[1]=Au("context",a);b.error&&b.meta&&b.id||(b=new Wu(Xu(b)));if(b.msg){var l=b.msg.substring(0,512);g.allPriorities_.push(2);g.allPriorityLists_[2]=Au("msg",l)}var m=b.meta||{};if(this.addParamsToErrorsFn_)try{this.addParamsToErrorsFn_(m)}catch(J){}if(d)try{d(m)}catch(J){}Cu(g,3,[m]);var n=bra();if(n.topOriginOnly){var r=n.topOriginOnly.url||"";g.allPriorities_.push(4);
g.allPriorityLists_[4]=Au("top",r)}var v={url:n.topFullUrl.url||""};if(n.topFullUrl.url){var z=xd(n.topFullUrl.url);var C=wd(z[1],null,z[3],z[4])}else C="";Cu(g,5,[v,{url:C}]);Lu(this.pinger_,f,g,this.useStaticThresholdForErrors_,c)}catch(J){try{Lu(this.pinger_,f,{context:"ecmserr",rctx:a,msg:Xu(J),url:n&&n.topFullUrl.url},this.useStaticThresholdForErrors_,c)}catch(E){}}return this.silenceErrors_};
var Xu=function(a){var b=a.toString();a.name&&-1==b.indexOf(a.name)&&(b+=": "+a.name);a.message&&-1==b.indexOf(a.message)&&(b+=": "+a.message);if(a.stack){a=a.stack;var c=b;try{-1==a.indexOf(c)&&(a=c+"\n"+a);for(var d;a!=d;)d=a,a=a.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");b=a.replace(/\n */g,"\n")}catch(f){b=c}}return b},Wu=function(a){nda.call(this,Error(a),{message:a})};
p(Wu,nda);var Uu,Yu,Tu=new Ru,qra=function(){var a=Jh();a&&"undefined"!=typeof a.google_measure_js_timing&&(a.google_measure_js_timing||Tu.disable())};
(function(){Uu=new lra;Yu=new Vu;var a=Jh();a&&a.document&&("complete"==a.document.readyState?qra():Tu.collectionEnabled&&Tf(a,"load",function(){qra()}))})();
var rra=function(a){Yu.addParamsToErrorsFn_=function(b){cb(a,function(c){c(b)})}},sra=function(a,b){return pra(Yu,a,b)},tra=function(a,b){return Zu(a,b)},ura=function(a,b){Lu(Uu,a,b,"jserror"!=a,void 0)};var vra=Date.now(),$u=-1,av=-1,bv=!1,cv=function(){return Date.now()-vra},wra=function(){var a=Ku.getInstance().pollingFrequencyScheme,b=0<=av?cv()-av:-1,c=bv?cv()-$u:-1;
if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var d=[250,500,1E3];Yu.maybeReportError(637,Error(),.001,void 0);var f=b;-1!=c&&c<b&&(f=c);for(b=0;b<a.length;++b)if(f<a[b]){var g=d[b];break}void 0===g&&(g=d[a.length]);return g};var dv=function(a,b,c){var d=new Vg(0,0,0,0);this.time=a;this.volume=null;this.tabVisible=b;this.visibleGeometry=d;this.frameExposure=null;this.originatingProvider=c};
dv.prototype.equals=function(a,b){return!!a&&(!(void 0===b?0:b)||this.volume==a.volume)&&this.tabVisible==a.tabVisible&&Wg(this.visibleGeometry,a.visibleGeometry)&&this.frameExposure==a.frameExposure};var ev=function(a,b,c,d,f,g,l,m){this.viewportObservation_=a;this.element_=b;this.elementGeometry_=c;this.visibleGeometry_=d;this.visibleFraction_=f;this.viewportShare_=g;this.timestamp_=l;this.screenShare_=m};
e=ev.prototype;e.getViewportObservation=function(){return this.viewportObservation_};
e.getElement=function(){return this.element_};
e.getVisibleFraction=function(){return this.visibleFraction_};
e.getViewportShare=function(){return this.viewportShare_};
e.getTimestamp=function(){return this.timestamp_};
e.equals=function(a,b){return this.viewportObservation_.equals(a.viewportObservation_,void 0===b?!1:b)&&this.element_==a.element_&&Wg(this.elementGeometry_,a.elementGeometry_)&&Wg(this.visibleGeometry_,a.visibleGeometry_)&&this.visibleFraction_==a.visibleFraction_&&this.viewportShare_==a.viewportShare_&&this.timestamp_==a.timestamp_&&this.screenShare_==a.screenShare_};var xra=function(){for(var a=Sf,b=0,c=a,d=0;a&&a!=a.parent;)a=a.parent,d++,Qg(a)&&(c=a,b=d);return{win:c,level:b}};var yra={ADD_EVENT_LISTENER:"addEventListener",GET_MAX_SIZE:"getMaxSize",GET_SCREEN_SIZE:"getScreenSize",GET_STATE:"getState",GET_VERSION:"getVersion",REMOVE_EVENT_LISTENER:"removeEventListener",IS_VIEWABLE:"isViewable"},zra=function(){var a=Sf!==Sf.top,b=Sf.top===xra().win,c=-1,d=0;if(a&&b&&Sf.top.mraid){c=3;var f=Sf.top.mraid}else c=(f=Sf.mraid)?a?b?2:1:0:-1;f&&(f.IS_GMA_SDK||(d=2),A.every(yra,function(g){return"function"===typeof f[g]})||(d=1));
return{mraid:f,compatibility:d,situation:c}};var Ara=function(a){return(a=a.document)&&"function"===typeof a.elementFromPoint};if(Rf&&Rf.URL){var Bra,Uda=Rf.URL;Bra=!!Uda&&0<Vda().length;Yu.silenceErrors_=!Bra}var fv=function(a,b,c,d){var f=void 0===f?!1:f;c=Zu(d,c);Tf(a,b,c,{capture:f});return c};var Cra=function(a){var b=[];A.forEach(a,function(c,d){d=encodeURIComponent(d);"string"===typeof c&&(c=encodeURIComponent(c));b.push(d+"="+c)});
b.push("24="+Date.now());return b.join("\n")};var Dra=0,gv=function(a){var b=Math.pow(10,2);return Math.floor(a*b)/b},Era=function(a,b){try{Dra++,b.postMessage(a,"*")}catch(c){}},Fra=function(a,b){b&&(a(b),b.frames&&cb(b.frames,function(c){Fra(a,c)}))},Gra=function(a){return new Vg(a.top,a.right,a.bottom,a.left)},Hra=function(){var a=Fu().pageVisibility;
return xu()?-1:a.isVisible()?0:1},hv=function(a){return[a.top,
a.left,a.bottom,a.right].join("-")},Ira=function(a,b,c){if(b&&a)if(c&&0<c.length){c=db(c,function(g){var l=g.parent&&g.parent!==g;
return g===Sf.top||l});
a=k(c);for(var d=a.next();!d.done;d=a.next())Era(b,d.value)}else{c=[];var f=Dg(a);f&&c.push(f);if(0===c.length)try{d=eg(document,"IFRAME".toString().toLowerCase(),void 0,a),c=eb(d,function(g){return Dg(g)})}catch(g){}a=k(c);
for(d=a.next();!d.done;d=a.next()){d=d.value;try{b&&Fra(Ta(Era,b),d)}catch(g){}}}};function Jra(){var a=ec;return a?gb("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return Qb(a,b)})||Qb(a,"OMI/")&&!Qb(a,"XiaoMi/")?!0:Qb(a,"Presto")&&Qb(a,"Linux")&&!Qb(a,"X11")&&!Qb(a,"Android")&&!Qb(a,"Mobi"):!1}
function Kra(){var a=ec;return Qb(a,"AppleTV")||Qb(a,"Apple TV")||Qb(a,"CFNetwork")||Qb(a,"tvOS")}
function Lra(){var a=ec;return Qb(a,"sdk_google_atv_x86")||Qb(a,"Android TV")}
;var iv=function(){this.isAppInactive=!1;this.insideCrossDomainIframe=!Qg(Sf.top);this.shouldOsdMeasureForClient=!this.insideCrossDomainIframe;this.isMobileDevice=Pda()||!Pda()&&(fc("iPod")||fc("iPhone")||fc("Android")||fc("IEMobile"));var a=yu();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?yd(a[a.length-1].url)||"":"";this.browserViewportBox=new Vg(0,0,0,0);this.screenSize=new Zf(0,0);this.documentSize=new Zf(0,0);this.frameViewportBox=new Vg(0,0,0,0);this.frameOffset=new Xf(0,
0);this.isWindowGeometryProvidedByExternalSource=!1;this.externallySuppliedViewBox=null;this.isPageLoaded=!1;this.visibleGeometry=null;this.fullscreenAdblockCount_=0;this.mustAssumeTabVisible=!1;this.inAppContext=!(!Sf||!zra().mraid);this.update(Sf)};
e=iv.prototype;e.useExternallyProvidedGeometry=function(){return this.isWindowGeometryProvidedByExternalSource&&this.insideCrossDomainIframe};
e.measureScreenSize=function(a){a&&a.screen&&(this.screenSize=new Zf(a.screen.width,a.screen.height))};
e.measureVisibleGeometry=function(){this.visibleGeometry=this.browserViewportBox};
e.measureBrowserViewportBox=function(a){this.browserViewportBox=Fea(!0,a,this.isMobileDevice)};
e.measureFrameViewportBox=function(a){this.frameViewportBox=Fea(!1,a,this.isMobileDevice)};
e.measureDocumentSize=function(a){var b=this.browserViewportBox?new Zf(this.browserViewportBox.getWidth(),this.browserViewportBox.getHeight()):new Zf(0,0);a=void 0===a?Sf:a;null!==a&&a!=a.top&&(a=a.top);var c=0,d=0;try{var f=a.document,g=f.body,l=f.documentElement;if("CSS1Compat"==f.compatMode&&l.scrollHeight)c=l.scrollHeight!=b.height?l.scrollHeight:l.offsetHeight,d=l.scrollWidth!=b.width?l.scrollWidth:l.offsetWidth;else{var m=l.scrollHeight,n=l.scrollWidth,r=l.offsetHeight,v=l.offsetWidth;l.clientHeight!=
r&&(m=g.scrollHeight,n=g.scrollWidth,r=g.offsetHeight,v=g.offsetWidth);m>b.height?m>r?(c=m,d=n):(c=r,d=v):m<r?(c=m,d=n):(c=r,d=v)}var z=new Zf(d,c)}catch(C){z=new Zf(-12245933,-12245933)}this.documentSize=z};
e.update=function(a){a&&a.document&&(this.measureFrameViewportBox(a),this.measureBrowserViewportBox(a),this.measureVisibleGeometry(),this.measureDocumentSize(a),this.measureScreenSize(a))};
e.enableWindowGeometryProvidedByExternalSource=function(){this.isWindowGeometryProvidedByExternalSource=!0};
var jv=function(){var a=iv.getInstance();if(0<a.fullscreenAdblockCount_||a.mustAssumeTabVisible)return!0;a=Fu().pageVisibility.isVisible();var b=xu();return a||b};
La(iv);var kv=function(a){this.sampledObject_=a;this.samplingCount_=0;this.nextSampleTimeoutId_=null};
kv.prototype.cancel=function(){Fu().clearTimeout(this.nextSampleTimeoutId_);this.nextSampleTimeoutId_=null};
kv.prototype.schedule=function(){var a=this,b=Fu(),c=Ku.getInstance().monitor_.stopwatch_;this.nextSampleTimeoutId_=b.setTimeout(Ju(c,tra(143,function(){a.samplingCount_++;a.sampledObject_.sample()})),wra())};var lv=function(a,b,c){this.win=a;this.name_=void 0===c?"na":c;this.observationListeners=[];this.isInitialized=!1;this.currentObservation=new dv(-1,!0,this);this.effectiveViewportProvider=this;this.inherentVisibleGeometryCapability_=b;this.pollingRequired_=this.volumeRequired_=!1;this.sampler=new kv(this);this.providerHasFailed=this.alwaysSendUpdates=!1;this.failureCode="uk";this.disposed_=!1;this.isActive_=!0};
e=lv.prototype;e.shouldBeUsedForMeasurement=function(){return this.canBeUsed()};
e.canBeUsed=function(){return!1};
e.initialize=function(){return this.isInitialized=!0};
e.getFailureCode=function(){return this.effectiveViewportProvider.failureCode};
e.hasFailed=function(){return this.effectiveViewportProvider.providerHasFailed};
var Mra=function(a){a.providerHasFailed||(a.providerHasFailed=!0,a.failureCode="msf",a.inherentVisibleGeometryCapability_=0,a.shutdown(),a.effectiveViewportProvider!=a||mv(a))};
e=lv.prototype;e.getWindow=function(){return this.effectiveViewportProvider.win};
e.setName=function(a){this.name_=a};
e.getName=function(){return this.effectiveViewportProvider.name_};
e.getLogParams=function(){return{}};
e.getVisibleGeometryCapability=function(){return this.effectiveViewportProvider.inherentVisibleGeometryCapability_};
var nv=function(a,b){lb(a.observationListeners,b)||(a.observationListeners.push(b),b.handleViewportProviderStatusUpdate(a.effectiveViewportProvider),b.handleViewportObservationUpdate(a.currentObservation),b.requiresVolume()&&(a.volumeRequired_=!0))};
e=lv.prototype;e.measureBrowserViewportBox=function(){iv.getInstance().measureBrowserViewportBox(this.win)};
e.measureScreenSize=function(){iv.getInstance().measureScreenSize(this.win)};
e.measureDocumentSize=function(){iv.getInstance().measureDocumentSize(this.win)};
e.measureFrameViewportBox=function(){iv.getInstance().measureFrameViewportBox(this.win)};
e.measureVisibleGeometry=function(){this.currentObservation.visibleGeometry=this.getUpdatedVisibleGeometry()};
e.getUpdatedVisibleGeometry=function(){return this.currentObservation.visibleGeometry};
var ov=function(a){a=a.effectiveViewportProvider;a.measureScreenSize();a.measureBrowserViewportBox();a.measureFrameViewportBox();a.measureDocumentSize();a.measureVisibleGeometry()};
lv.prototype.sample=function(){if(this.pollingRequired_&&this.effectiveViewportProvider==this){this.sampler&&this.sampler.cancel();var a=cv();var b=jv();a=new dv(a,b,this);a.volume=this.currentObservation.volume;a.visibleGeometry=this.getUpdatedVisibleGeometry();Nra(this,a);this.pollingRequired_&&this.sampler&&this.sampler.schedule()}};
lv.prototype.setPollingRequired=function(a){this.pollingRequired_!=a&&((this.pollingRequired_=a)?this.sampler.schedule():this.sampler.cancel())};
lv.prototype.isActive=function(){return this.effectiveViewportProvider.isActive_};
var Ora=function(a){a.volumeRequired_=a.observationListeners.length?gb(a.observationListeners,function(b){return b.requiresVolume()}):!1};
lv.prototype.shutdown=function(){};
lv.prototype.getViewportObservation=function(){return this.currentObservation};
lv.prototype.getViewportObservationListeners=function(){return this.observationListeners};
var Pra=function(a){var b=pb(a.observationListeners);cb(b,function(c){c.handleViewportObservationUpdate(a.currentObservation)})},mv=function(a){var b=pb(a.observationListeners);
cb(b,function(c){c.handleViewportProviderStatusUpdate(a.effectiveViewportProvider)});
a.effectiveViewportProvider!=a||Pra(a)};
lv.prototype.handleViewportProviderStatusUpdate=function(a){var b=this.effectiveViewportProvider,c=a.getVisibleGeometryCapability();this.effectiveViewportProvider=c>=this.inherentVisibleGeometryCapability_?a:this;b!==this.effectiveViewportProvider?(this.effectiveViewportProvider==this||1==c&&0!=this.inherentVisibleGeometryCapability_||this.shutdown(),this.isActive_=this.effectiveViewportProvider.isActive_,mv(this)):this.isActive_!==this.effectiveViewportProvider.isActive_&&(this.isActive_=this.effectiveViewportProvider.isActive_,
mv(this))};
var Nra=function(a,b){var c=a.alwaysSendUpdates||!a.currentObservation.equals(b,a.volumeRequired_);a.currentObservation=b;c&&Pra(a)};
lv.prototype.handleViewportObservationUpdate=function(a){a.originatingProvider===this.effectiveViewportProvider&&Nra(this,a)};
lv.prototype.requiresVolume=function(){return this.volumeRequired_};
lv.prototype.dispose=function(){this.disposed_=!0};
lv.prototype.isDisposed=function(){return this.disposed_};var pv=function(a,b,c,d){this.element=a;this.elementGeometry=new Vg(0,0,0,0);this.containerGeometry=null;this.frameVisibleGeometry=new Vg(0,0,0,0);this.viewportProvider=b;this.featureSet=c;this.requiresVolume_=d;this.disposed_=!1;this.isEventBasedMeasurement=!0;this.timestamp=-1;this.currentMeasurement=new ev(b.getViewportObservation(),this.element,this.elementGeometry,new Vg(0,0,0,0),0,0,cv(),0)};
e=pv.prototype;e.observe=function(){return!0};
e.unobserve=function(){};
e.dispose=function(){if(!this.isDisposed()){var a=this.viewportProvider;mb(a.observationListeners,this);a.volumeRequired_&&this.requiresVolume()&&Ora(a);this.unobserve();this.disposed_=!0}};
e.isDisposed=function(){return this.disposed_};
e.getLogParams=function(){return this.viewportProvider.getLogParams()};
e.getVisibleGeometryCapability=function(){return this.viewportProvider.getVisibleGeometryCapability()};
e.getFailureCode=function(){return this.viewportProvider.getFailureCode()};
e.hasFailed=function(){return this.viewportProvider.hasFailed()};
e.handleViewportProviderStatusUpdate=function(){};
e.handleViewportObservationUpdate=function(){this.calculateMeasurement()};
e.requiresVolume=function(){return this.requiresVolume_};var qv=function(a){this.disposed_=!1;this.viewportProvider=a;this.failureCallback=Ka};
e=qv.prototype;e.getVisibleGeometryCapability=function(){return this.viewportProvider.getVisibleGeometryCapability()};
e.getFailureCode=function(){return this.viewportProvider.getFailureCode()};
e.hasFailed=function(){return this.viewportProvider.hasFailed()};
e.create=function(a,b,c){var d=null;this.viewportProvider&&(d=this.createInstance(a,b,c),nv(this.viewportProvider,d));return d};
e.shouldBeUsedForMeasurement=function(){return this.canBeUsed()};
e.canBeUsed=function(){return!1};
e.init=function(a){return this.viewportProvider.initialize()?(nv(this.viewportProvider,this),this.failureCallback=a,!0):!1};
e.handleViewportProviderStatusUpdate=function(a){0==a.getVisibleGeometryCapability()&&this.failureCallback(a.getFailureCode(),this)};
e.handleViewportObservationUpdate=function(){};
e.requiresVolume=function(){return!1};
e.dispose=function(){this.disposed_=!0};
e.isDisposed=function(){return this.disposed_};
e.getLogParams=function(){return{}};var rv=function(a,b,c){this.priority_=void 0===c?0:c;this.key_=a;this.value_=null==b?"":b};
rv.prototype.getParameter=function(){return this.key_};
rv.prototype.getPriority=function(){return this.priority_};
var Qra=function(a){switch(Math.trunc(a.priority_)){case-16:return-16;case-8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16;}};
rv.prototype.lessThan=function(a){return this.priority_<a.priority_?!0:this.priority_>a.priority_?!1:this.key_<a.key_?!0:this.key_>a.key_?!1:typeof this.value_<typeof a.value_?!0:typeof this.value_>typeof a.value_?!1:this.value_<a.value_};var sv=function(){this.insertionCount_=0;this.queryParameters_=[];this.sortMayBeRequired_=!1};
sv.prototype.add=function(a,b,c){++this.insertionCount_;a=new rv(a,b,c);this.queryParameters_.push(new rv(a.key_,a.value_,a.priority_+this.insertionCount_/4096));this.sortMayBeRequired_=!0;return this};
sv.prototype.addAll=function(a){var b=this;cb(a.queryParameters_,function(c){b.add(c.getParameter(),c.value_,Qra(c))});
return this};
var tv=function(a,b,c,d){c=void 0===c?0:c;d=void 0===d?!0:d;Rg(b,function(f,g){d&&void 0===f||a.add(g,f,c)});
return a},Sra=function(a){var b=Rra;
a.sortMayBeRequired_&&(sb(a.queryParameters_,function(c,d){return d.lessThan(c)?1:c.lessThan(d)?-1:0}),a.sortMayBeRequired_=!1);
return fb(a.queryParameters_,function(c,d){d=b(d);return""+c+(""!=c&&""!=d?"&":"")+d},"")};var Rra=function(a){var b=a.getParameter();a=a.value_;return""===a?b:"boolean"===typeof a?a?b:"":Array.isArray(a)?0===a.length?b:b+"="+a.join():b+"="+(lb(["mtos","tos","p"],b)?a:encodeURIComponent(a))};var uv=function(a){var b=void 0===b?!0:b;this.prefix_="//pagead2.googlesyndication.com//pagead/gen_204";this.queryParameters_=new sv;void 0!==a&&this.queryParameters_.addAll(a);b&&this.queryParameters_.add("v",cu,-16)};
uv.prototype.addMapToQuery=function(a,b,c){tv(this.queryParameters_,a,void 0===b?0:b,void 0===c?!0:c)};
uv.prototype.toString=function(){var a=this.prefix_,b=Sra(this.queryParameters_);0<b.length&&(a+="?"+b);return a};var vv=function(a,b,c,d,f,g){var l=[];if(b.length)return l=eb(b,function(m){return(g?m.replace(/^((http[s]?:)?\/\/[^\/]+)([^?]+)/,"$1"+g):m)+"&id="+a});
b="//"+(f||"pagead2.googlesyndication.com")+(g||"/activeview");f=[];c&&f.push("avi="+c);d&&f.push("cid="+d);f.push("id="+a);l.push(b+"?"+f.join("&"));return l},wv=function(a){var b=[],c=[];
(0,A.forEach)(a,function(d,f){if(!(f in Object.prototype)&&"undefined"!=typeof d)switch(Array.isArray(d)&&(d=d.join(",")),d=[f,"=",d].join(""),f){case"adk":case"r":case"tt":case"error":case"mtos":case"tos":case"p":case"bs":b.unshift(d);break;case"req":case"url":case"referrer":case"iframe_loc":c.push(d);break;default:b.push(d);}});
return b.concat(c)},Ura=function(a){var b=Jh()||Sf;
if(!b.navigator||!b.navigator.sendBeacon)return!1;a=Tra(a.toString()).split("?");return b.navigator.sendBeacon(a[0],a[1])},Vra=function(){if(cu&&"unreleased"!==cu)return cu},Tra=function(a){if(/&v=[^&]+/.test(a))return a;
var b=Vra();return b?a+"&v="+encodeURIComponent(b):a},xv=function(a){var b=void 0===b?4E3:b;
a=Tra(a.toString());a=a.substring(0,b);hra(a)};var Wra=function(){this.sentPingCount_=0};
La(Wra);var yv=function(a){this.verificationGen204Type_=a;this.hasSentPing_=!1};
yv.prototype.setCurrentFrameMeasurements=function(a,b){this.baseMeasurement=a;this.verificationMeasurement=b};var zv=function(){yv.call(this,"capability")};
p(zv,yv);zv.prototype.shouldSendVerificationPing=function(){return!0};
zv.prototype.buildVerificationPing=function(){var a={};return a.b_name=this.baseMeasurement.strategyName,a.v_name=this.verificationMeasurement.strategyName,a};var Av=function(){yv.call(this,"diff")};
p(Av,yv);Av.prototype.shouldSendVerificationPing=function(){return!(.02>=Math.abs(this.verificationMeasurement.exposure-this.baseMeasurement.exposure))};
Av.prototype.buildVerificationPing=function(){var a={};return a.b_name=this.baseMeasurement.strategyName,a.v_name=this.verificationMeasurement.strategyName,a.b_vp_off=JSON.stringify(this.baseMeasurement.offsetInViewport),a.v_vp_off=JSON.stringify(this.verificationMeasurement.offsetInViewport),a.b_vp_sz=JSON.stringify(this.baseMeasurement.viewportSize),a.v_vp_sz=JSON.stringify(this.verificationMeasurement.viewportSize),a.b_exp=this.baseMeasurement.exposure,a.v_exp=this.verificationMeasurement.exposure,
a.efp_occ=this.baseMeasurement.usedEfpOcclusion,a.sbv=this.baseMeasurement.shouldUseViewportShareBasedVisibility,a};var Bv=function(){yv.call(this,"capt");this.base_exposures_=[];this.verification_exposures_=[]};
p(Bv,yv);Bv.prototype.setCurrentFrameMeasurements=function(a,b){yv.prototype.setCurrentFrameMeasurements.call(this,a,b);20<=this.verification_exposures_.length||(this.base_exposures_.push(a.exposure),this.verification_exposures_.push(b.exposure))};
Bv.prototype.shouldSendVerificationPing=function(){return 20===this.verification_exposures_.length};
Bv.prototype.buildVerificationPing=function(){var a=Xra(this.base_exposures_,this.verification_exposures_),b=Yra(this.base_exposures_,this.verification_exposures_),c={};return c.b_name=this.baseMeasurement.strategyName,c.v_name=this.verificationMeasurement.strategyName,c.b_exp=this.base_exposures_.join(","),c.v_exp=this.verification_exposures_.join(","),c.diff=a,c.diff_buckets=b,c};
var Xra=function(a,b){return xaa(Gaa(a,b),function(c){return c[0]!==c[1]})},Yra=function(a,b){var c=function(d){return .25*Math.floor(d/.25)};
return Xra(eb(a,c),eb(b,c))};var Cv=function(a,b,c,d,f){f=void 0===f?[new zv,new Av,new Bv]:f;Tg.call(this);this.verificationStrategy_=a.createInstance(b,c,this.requiresVolume());this.verificationStrategy_.observe();this.verifications_=f;this.adKey_=d};
p(Cv,Tg);Cv.prototype.disposeInternal=function(){this.verificationStrategy_&&(this.verificationStrategy_.unobserve(),this.verificationStrategy_.dispose())};
var Zra=function(a,b,c){cb(a.verifications_,function(d){var f=a.adKey_;if(!d.hasSentPing_&&(d.setCurrentFrameMeasurements(b,c),d.shouldSendVerificationPing())){d.hasSentPing_=!0;var g=d.buildVerificationPing(),l=new sv;l.add("id","av-js");l.add("type","verif");l.add("vtype",d.verificationGen204Type_);d=Wra.getInstance();l.add("i",d.sentPingCount_++);l.add("adk",f);tv(l,g);f=new uv(l);xv(f)}})};
Cv.prototype.handleViewportObservationUpdate=function(){};
Cv.prototype.handleViewportProviderStatusUpdate=function(){};
Cv.prototype.requiresVolume=function(){return!1};var Dv=function(){this.delta_=this.maxConsecutive_=this.currentConsecutive_=this.total_=0};
e=Dv.prototype;e.getTotal=function(){return this.total_};
e.getMaxConsecutive=function(){return this.maxConsecutive_};
e.getCurrentConsecutive=function(){return this.currentConsecutive_};
e.getDelta=function(){return this.delta_};
e.resetDelta=function(){this.delta_=0};
e.update=function(a,b,c){a&&(this.total_+=b,this.delta_+=b,this.currentConsecutive_+=b,this.maxConsecutive_=Math.max(this.maxConsecutive_,this.currentConsecutive_));if(void 0===c?!a:c)this.currentConsecutive_=0};var $ra=[1,.75,.5,.3,0],Ev=function(a){this.thresholds_=a=void 0===a?$ra:a;this.buckets_=eb(this.thresholds_,function(){return new Dv})};
Ev.prototype.getTotal=function(a){return Fv(this,function(b){return b.getTotal()},void 0===a?!0:a)};
var asa=function(a,b){return Gv(a,b,function(c){return c.getTotal()})};
Ev.prototype.getMaxConsecutive=function(a){return Fv(this,function(b){return b.getMaxConsecutive()},void 0===a?!0:a)};
var bsa=function(a,b){return Gv(a,b,function(c){return c.getMaxConsecutive()})};
e=Ev.prototype;e.getCurrentConsecutive=function(){return Fv(this,function(a){return a.getCurrentConsecutive()},!0)};
e.getDelta=function(){return Fv(this,function(a){return a.getDelta()},!0)};
e.getDeltaForThreshold=function(a){return Gv(this,a,function(b){return b.getDelta()})};
e.resetDelta=function(){cb(this.buckets_,function(a){return a.resetDelta()})};
e.update=function(a,b,c,d,f,g){g=void 0===g?!0:g;b=f?Math.min(a,b):b;for(f=0;f<this.thresholds_.length;f++){var l=this.thresholds_[f],m=0<b&&b>=l;l=!(0<a&&a>=l)||c;this.buckets_[f].update(g&&m,d,!g||l)}};
var Fv=function(a,b,c){a=eb(a.buckets_,function(d){return b(d)});
return c?a:csa(a)},Gv=function(a,b,c){var d=yaa(a.thresholds_,function(f){return b<=f});
return-1==d?0:c(a.buckets_[d])},csa=function(a){return eb(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};var Hv=function(){this.timeOnScreen=new Ev;this.viewTime_=new Dv;this.maxExposure_=this.minExposure_=-1;this.requiredViewTime=1E3;this.screenShareBuckets_=new Ev([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.maxScreenShare_=this.minScreenShare_=-1};
e=Hv.prototype;e.getMinExposure=function(){return this.minExposure_};
e.getCurrentTimeOnScreen=function(){return this.timeOnScreen.getCurrentConsecutive()};
e.getTimeOnScreenForThreshold=function(a){return asa(this.timeOnScreen,a)};
e.getMaxTimeOnScreenForThreshold=function(a){return bsa(this.timeOnScreen,a)};
e.getScreenShareBuckets=function(){return this.screenShareBuckets_.getTotal(!1)};
e.getMinScreenShare=function(){return this.minScreenShare_};
e.getMaxScreenShare=function(){return this.maxScreenShare_};
e.update=function(a,b,c,d){this.minExposure_=-1!=this.minExposure_?Math.min(this.minExposure_,b.exposure):b.exposure;this.maxExposure_=Math.max(this.maxExposure_,b.exposure);this.minScreenShare_=-1!=this.minScreenShare_?Math.min(this.minScreenShare_,b.screenShare):b.screenShare;this.maxScreenShare_=Math.max(this.maxScreenShare_,b.screenShare);this.screenShareBuckets_.update(b.screenShare,c.screenShare,b.tabHidden,a,d);this.timeOnScreen.update(b.exposure,c.exposure,b.tabHidden,a,d);c=d||c.isLargeAd!=
b.isLargeAd?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.tabHidden;this.viewTime_.update(c,a,b)};
e.isViewed=function(){return this.viewTime_.getMaxConsecutive()>=this.requiredViewTime};
e.isCurrentlyViewable=function(){return this.viewTime_.getCurrentConsecutive()>=this.requiredViewTime};var dsa=new Vg(0,0,0,0);function Iv(a,b){b=Jv(b);return 0===b?0:Jv(a)/b}
function Jv(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)}
function esa(a,b){if(!a||!b)return!1;for(var c=0;null!==a&&100>c++;){if(a===b)return!0;try{if(a=zg(a)||a){var d=ag(a),f=d&&mg(d),g=f&&f.frameElement;g&&(a=g)}}catch(l){break}}return!1}
function fsa(a,b,c){if(!a||!b)return!1;b=a.clone().translate(-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;var d=Jh();Qg(d.top)&&d.top&&d.top.document&&(d=d.top);if(!Ara(d))return!1;a=d.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=ag(c))&&b.defaultView&&b.defaultView.frameElement)&&esa(b,a);d=a===c;a=!d&&a&&Mg(a,function(f){return f===c});
return!(b||d||a)}
function gsa(a,b,c,d){return iv.getInstance().insideCrossDomainIframe?!1:0>=a.getWidth()||0>=a.getHeight()?!0:c&&d?sra(208,function(){return fsa(a,b,c)}):!1}
;var hsa=new Vg(0,0,0,0),Kv=function(a,b,c){Tg.call(this);this.position=hsa.clone();this.measurementData=new Hv;this.loadTimeExposure=-2;this.timeCreated=Date.now();this.timestampViewedByUser=-1;this.lastUpdateTime=b;this.lastMeasurement_=null;this.elementLoaded_=!1;this.offsetInViewport=null;this.opacity=-1;this.requestSource=c;this.unmeasurableImpressionCallback=this.measurementUpdateCallback=Ka;this.creativeSearchResults=new Tqa;this.creativeSearchResults.markedUpElement=a;this.creativeSearchResults.monitoredElement=
a;this.isUnmeasurableImpression=!1;this.contextualEventHandlers_={mouseOver:null,mouseOut:null};this.shouldSendTimeOnScreenPing=!0;this.strategyVerifier_=null;this.inFullscreenMode=this.isPedestalAd=!1;this.adBlockId=Ku.getInstance().nextAdBlockId++;this.lastComputedExposure_=0;this.lastAdState=new du;this.timeLastSeen=this.timeFirstSeen=-1;this.hoverTime_=0;this.hoverStartTime_=-1;this.measurementStrategy=null;this.visibleBox=new Vg(0,0,0,0);this.isCoReRequest=!1;a=this.featureSet=new lu;mu(a,"od",
Jqa);gu(mu(a,"opac",eu));gu(mu(a,"sbeos",eu));gu(mu(a,"prf",eu));gu(mu(a,"mwt",eu));mu(a,"iogeo",eu);(a=this.creativeSearchResults.markedUpElement)&&a.getAttribute&&ru(a,"googleAvInapp")&&(iv.getInstance().inAppContext=!0);1==this.requestSource?(a=this.featureSet.features_.od)&&a.setValue(1):(a=this.featureSet.features_.od)&&a.setValue(0)};
p(Kv,Tg);e=Kv.prototype;
e.disposeInternal=function(){Lv(this);this.strategyVerifier_&&this.strategyVerifier_.dispose();this.measurementStrategy&&this.measurementStrategy.dispose();delete this.measurementData;delete this.measurementUpdateCallback;delete this.unmeasurableImpressionCallback;delete this.creativeSearchResults.markedUpElement;delete this.creativeSearchResults.monitoredElement;delete this.contextualEventHandlers_;delete this.strategyVerifier_;delete this.measurementStrategy;delete this.featureSet;Tg.prototype.disposeInternal.call(this)};
e.getMeasurementStrategy=function(){return this.measurementStrategy};
e.getPosition=function(){return this.measurementStrategy?this.measurementStrategy.elementGeometry:this.position};
e.getContainerPosition=function(){return this.measurementStrategy?this.measurementStrategy.containerGeometry:null};
e.processActiveViewMetadata=function(a){Ku.getInstance().processActiveViewMetadata(a)};
e.processFlags=function(a){Ku.getInstance().processFlags(a)};
e.requiresVolume=function(){return!1};
e.setElementLoaded=function(){this.elementLoaded_=!0};
e.isReadyForMeasurement=function(){return this.elementLoaded_};
e.resetFractionOnScreenValues=function(){this.lastAdState.exposure=0};
e.resetTimeOnScreenTimers=function(){this.measurementData=new Hv};
e.setFullscreenMode=function(a){if(a!=this.inFullscreenMode){this.inFullscreenMode=a;var b=iv.getInstance();a?b.fullscreenAdblockCount_++:0<b.fullscreenAdblockCount_&&b.fullscreenAdblockCount_--}};
var isa=function(a,b){if(a.measurementStrategy){if(b.getName()===a.measurementStrategy.getName())return;a.measurementStrategy.dispose();a.measurementStrategy=null}b=b.create(a.creativeSearchResults.monitoredElement,a.featureSet,a.requiresVolume());if(b=null!=b&&b.observe()?b:null)a.measurementStrategy=b},jsa=function(a,b,c){if(a.measurementStrategy){a.measurementStrategy.calculateMeasurement();
var d=a.measurementStrategy.currentMeasurement,f=d.getViewportObservation(),g=f.visibleGeometry;if(null!=d.visibleGeometry_){var l=d.elementGeometry_;a.offsetInViewport=new Xf(l.left-g.left,l.top-g.top);a.visibleBox=d.visibleGeometry_}g=a.shouldUseViewportShareBasedVisibility()?Math.max(d.visibleFraction_,d.viewportShare_):d.visibleFraction_;l={};null!==f.volume&&(l.volume=f.volume);a.lastMeasurement_&&-1!=a.lastUpdateTime&&-1!==d.getTimestamp()&&-1!==a.lastMeasurement_.getTimestamp()?(f=d.getTimestamp()-
a.lastMeasurement_.getTimestamp(),f=1E4<f?0:f):f=0;a.lastMeasurement_=d;a.updateInternal(g,b,c,!a.measurementStrategy.isEventBasedMeasurement,l,f,d.screenShare_)}},ksa=function(a){if(a.isReadyForMeasurement()&&a.strategyVerifier_){var b=1==nu(a.featureSet,"od"),c=iv.getInstance().browserViewportBox,d=a.strategyVerifier_,f=a.measurementStrategy?a.measurementStrategy.getName():"ns",g=new Zf(c.getWidth(),c.getHeight());
c=a.shouldUseViewportShareBasedVisibility();a={strategyName:f,offsetInViewport:a.offsetInViewport,viewportSize:g,shouldUseViewportShareBasedVisibility:c,exposure:a.lastAdState.exposure,usedEfpOcclusion:b};if(b=d.verificationStrategy_){b.calculateMeasurement();f=b.currentMeasurement;g=f.getViewportObservation().visibleGeometry;var l=null,m=null;null!=f.visibleGeometry_&&g&&(l=f.elementGeometry_,l=new Xf(l.left-g.left,l.top-g.top),m=new Zf(g.right-g.left,g.bottom-g.top));f=c?Math.max(f.visibleFraction_,
f.viewportShare_):f.visibleFraction_;c={strategyName:b.getName(),offsetInViewport:l,viewportSize:m,shouldUseViewportShareBasedVisibility:c,usedEfpOcclusion:!1,exposure:f}}else c=null;c&&Zra(d,a,c)}};
e=Kv.prototype;
e.updateInternal=function(a,b,c,d,f,g,l){this.isUnmeasurableImpression||(this.isReadyForMeasurement()&&(f=new du,f.tabHidden=c,f.backgroundedState=Hra(),a=0===this.opacity&&1===nu(this.featureSet,"opac")?0:a,f.exposure=a,f.isLargeAd=this.isLargeAd(),f.screenShare=l,d=d&&this.lastAdState.exposure>=(this.isLargeAd()?.3:.5),this.measurementData.update(g,f,this.lastAdState,d),this.lastUpdateTime=b,0<f.exposure&&(-1===this.timeFirstSeen&&(this.timeFirstSeen=b),this.timeLastSeen=b),-1==this.timestampViewedByUser&&this.isViewed()&&(
this.timestampViewedByUser=b),-2==this.loadTimeExposure&&(this.loadTimeExposure=Jv(this.getPosition())?f.exposure:-1),this.lastAdState=f),this.measurementUpdateCallback(this))};
e.isLargeAd=function(){return!1};
e.shouldUseViewportShareBasedVisibility=function(){return this.isCoReRequest||this.isPedestalAd};
e.getRequestSource=function(){return this.requestSource};
e.isViewed=function(){return this.measurementData.isViewed()};
e.isCurrentlyViewable=function(){return this.measurementData.isCurrentlyViewable()};
e.getCurrentViewableArea=function(){return gv(this.lastAdState.exposure)};
var lsa=function(a){a.creativeSearchResults.monitoredElement&&(a.contextualEventHandlers_.mouseOver=fv(a.creativeSearchResults.monitoredElement,"mouseover",function(){var b=cv();a.hoverStartTime_=b},149),a.contextualEventHandlers_.mouseOut=fv(a.creativeSearchResults.monitoredElement,"mouseout",function(){var b=cv();
-1==a.hoverStartTime_||b<a.hoverStartTime_||(a.hoverTime_+=b-a.hoverStartTime_);a.hoverStartTime_=-1},150))},Lv=function(a){a.creativeSearchResults.monitoredElement&&(a.contextualEventHandlers_.mouseOver&&(Uf(a.creativeSearchResults.monitoredElement,"mouseover",a.contextualEventHandlers_.mouseOver),a.contextualEventHandlers_.mouseOver=null),a.contextualEventHandlers_.mouseOut&&(Uf(a.creativeSearchResults.monitoredElement,"mouseout",a.contextualEventHandlers_.mouseOut),a.contextualEventHandlers_.mouseOut=
null))};
Kv.prototype.isHoverActive=function(){return-1!=this.hoverStartTime_};
var msa=function(a,b,c){b&&(a.measurementUpdateCallback=b);c&&(a.unmeasurableImpressionCallback=c)};var nsa=function(a){return jc()?(a=(a=ag(a))&&mg(a),!!(a&&a.location&&a.location.ancestorOrigins&&0<a.location.ancestorOrigins.length&&a.location.origin==a.location.ancestorOrigins[0])):!0};var Mv=function(a,b){this.iterateUpIntoFriendlyIframes_=b;this.sequenceExhausted_=null==a;this.nextCursorPosition_=a};
p(Mv,gj);Mv.prototype.next=function(){if(this.sequenceExhausted_)throw fj;var a=this.nextCursorPosition_||null;this.sequenceExhausted_=null==a;var b;if(b=a){b=this.iterateUpIntoFriendlyIframes_;if(re(a,"parentElement")&&null!=a.parentElement&&a!=a.parentElement)var c=a.parentElement;else if(b){var d=void 0===d?nsa:d;if(d(a))try{var f=ag(a),g=f&&mg(f),l=g&&g.frameElement;c=null==l?null:l}catch(m){c=null}else c=null}else c=null;b=c}this.nextCursorPosition_=b;return a};var osa=function(a){var b=1;a=dga(new Mv(a,!0));a=bga(a,function(){return 0<b});
return aga(a,function(c,d){var f=1;if(re(d,"style")&&d.style){var g=parseFloat,l=qh(d,"opacity");l||(l=d.style[Jc("opacity")],l="undefined"!==typeof l?l:d.style[oh(d,"opacity")]||"");d=g(l);"number"!==typeof d||isNaN(d)||(f=d)}return b=c*f})};var Nv=function(){this.sent_=!1};
Nv.prototype.maybeSend=function(a,b){b=void 0===b?{}:b;this.sent_||(this.sent_=this.maybeSendOneTimePing(a,b))};
Nv.prototype.maybeSendOneTimePing=function(){return!1};var Ov=function(a,b,c,d,f,g,l,m){l=void 0===l?[]:l;m=void 0===m?[]:m;Kv.call(this,c,d,f);this.adUrl=b;this.adf=this.adk=0;this.awbidKey=null;this.avihost_=this.avi_="";this.avicxn_=[];this.avieoscxn_=[];this.aviextcxn_="";this.clickstring_=null;this.activeviewCid_="";this.immediatePingEnabled=!1;this.listenerMode=4;this.listenerContacted=!1;this.listenerWindows=[];this.cpmavViewUrl=this.beginToRenderUrl="";this.isFromCopiedInstance=this.activeviewImmediatePingSent=this.activeviewPingSent=this.cpmavViewUrlInvoked=
!1;this.adSpeedStatsOverride_=null;this.largeAdState_=0;this.wasBackgrounded_=this.backgroundedAtStart_=Hra();this.measurementDeferralState_=0;this.metricsChangeCallback_=g;this.shouldAppendAdfUrlParameter_=this.recheckedActiveViewDivs_=!1;this.maxScrollDepthAfterLoad_=this.renderStartScrollDepth_=this.timeElementLoadedFromEpoch_=this.timeAdDomLoadingFromEpoch_=this.timeRenderStartedFromEpoch_=-1;this.messages=l;this.pings_=m;psa(this,this.creativeSearchResults.markedUpElement);Rqa(Ku.getInstance().featureSet,
this.adUrl)};
p(Ov,Kv);var qsa=function(a,b,c){return(a=String(a[b]||qu(a,c)||""))?a.split("|"):[]},psa=function(a,b){if(b){if(0==a.adk){if(a.creativeSearchResults.markedUpElement){var c=a.creativeSearchResults.markedUpElement._adk_;
c||(c=(c=qu(a.creativeSearchResults.markedUpElement,"googleAvAdk"))&&!/[^0-9]/.test(c)?parseInt(c,10):0)}else c=0;}else c=a.adk;a.adk=c;""==a.avi_&&(a.avi_=String(b._avi_||""));""==a.avihost_&&(a.avihost_=b._avihost_?String(b._avihost_):"pagead2.googlesyndication.com");a.avicxn_.length||(a.avicxn_=qsa(b,"_avicxn_","googleAvCxn"));a.avieoscxn_.length||(a.avieoscxn_=qsa(b,"_avieoscxn_","googleEOSAvCxn"));""==a.aviextcxn_&&(a.aviextcxn_=String(b._aviextcxn_||qu(b,"googleAvExtCxn")||""));""==a.activeviewCid_&&(
a.activeviewCid_=String(b._cid_||""));a.immediatePingEnabled||(a.immediatePingEnabled=!!b._imm_||ru(b,"googleAvImmediate"));""==a.cpmavViewUrl&&(a.cpmavViewUrl=String(b._cvu_||qu(b,"googleAvCpmav")||""));""==a.beginToRenderUrl&&(a.beginToRenderUrl=String(qu(b,"googleAvBtr")||""));a.processActiveViewMetadata(String(b._avm_||qu(b,"googleAvMetadata")||""));a.processFlags(String(qu(b,"googleAvFlags")||""))}};
Ov.prototype.disposeInternal=function(){delete this.listenerWindows;delete this.messages;Kv.prototype.disposeInternal.call(this)};
var Pv=function(a,b,c){cb(a.messages,function(d){return d.maybeSend(a,c,b)})},rsa=function(a){var b={},c=Ku.getInstance();
(1!==nu(c.featureSet,"omid")||c.omidOnePixelImpressionHasOccurred)&&cb(a.pings_,function(d){return d.maybeSend(a,b)})};
e=Ov.prototype;e.isReadyForMeasurement=function(){return this.elementLoaded_&&!(1==this.measurementDeferralState_||3==this.measurementDeferralState_)};
e.getDeferralState=function(){return this.measurementDeferralState_};
e.setDeferralState=function(a){this.measurementDeferralState_==a||2==this.measurementDeferralState_||1==this.measurementDeferralState_&&3==a||(this.measurementDeferralState_=a,1!=this.measurementDeferralState_&&3!=this.measurementDeferralState_||this.resetTimeOnScreenTimers())};
e.resetFractionOnScreenValues=function(){Kv.prototype.resetFractionOnScreenValues.call(this);this.visibleBox=new Vg(0,0,0,0)};
e.resetTimeOnScreenTimers=function(){Kv.prototype.resetTimeOnScreenTimers.call(this);this.visibleBox=new Vg(0,0,0,0)};
e.setElementLoaded=function(){this.elementLoaded_||(this.timeElementLoadedFromEpoch_=Nu(),void 0!==this.metricsChangeCallback_&&this.metricsChangeCallback_(!1,this.loadTimeExposure),null!=this.beginToRenderUrl&&""!=this.beginToRenderUrl&&(cea(this.beginToRenderUrl),this.beginToRenderUrl=""));Kv.prototype.setElementLoaded.call(this);ssa(this)};
var ssa=function(a){if(a.elementLoaded_&&t==t.top){var b=t.pageYOffset;null!=b&&(a.maxScrollDepthAfterLoad_=Math.max(b,a.maxScrollDepthAfterLoad_));Pv(a,4,{})}};
Ov.prototype.setMaxScrollDepthAfterLoad=function(a){this.maxScrollDepthAfterLoad_=a};
var Qv=function(a){return new tu(a.adk,a.awbidKey)};
Ov.prototype.processActiveViewMetadata=function(a){if("string"===typeof a&&0!=a.length){var b=new lu,c=Ku.getInstance();mu(b,"omid",eu);pu(b,a);b=nu(b,"omid");null!==b&&(c.featureSet.forcedFeatures_.omid=b);a=pu(this.featureSet,a);c=a.split("&");for(b=0;b<c.length;b++){var d=c[b];"ts=0"==d?this.shouldSendTimeOnScreenPing=!1:Lb(d,"la=")?(d=d.split("=")[1],"0"==d?this.largeAdState_=2:"1"==d&&(this.largeAdState_=1)):Lb(d,"cr=")?"1"==d.split("=")[1]&&(this.isCoReRequest=!0):"adf=1"==d&&(this.shouldAppendAdfUrlParameter_=
!0)}this.lastAdState.isLargeAd=this.isLargeAd();Kv.prototype.processActiveViewMetadata.call(this,a)}};
Ov.prototype.updateInternal=function(a,b,c,d,f,g,l){var m=this.isViewed(),n=Math.floor(100*this.lastAdState.exposure);this.largeAdState_=242500<=Jv(this.getPosition())?1:2;Kv.prototype.updateInternal.call(this,a,b,c,d,f,g,l);-1==this.wasBackgrounded_&&-1!=this.lastAdState.backgroundedState?this.wasBackgrounded_=this.lastAdState.backgroundedState:0==this.wasBackgrounded_&&1==this.lastAdState.backgroundedState&&(this.wasBackgrounded_=1);a=this.isViewed();b=Math.floor(100*this.lastAdState.exposure);
(!m&&a||b!=n)&&void 0!==this.metricsChangeCallback_&&this.metricsChangeCallback_(a,b);try{this.opacity=osa(this.creativeSearchResults.monitoredElement)}catch(r){}ssa(this)};
Ov.prototype.isLargeAd=function(){return Pca?!1:1==this.largeAdState_};
var tsa=function(a,b){var c=void 0===c?{}:c;var d={},f=Rv(a);c&&A.extend(f,c);f.adk=a.adk;a.shouldAppendAdfUrlParameter_&&a.adf&&(f.adf=a.adf);c=a.isUnmeasurableImpression;var g=Ku.getInstance();if(!l&&c&&g.unmeasurableReason)var l=g.unmeasurableReason;l&&(f.r=l);0===a.opacity&&(f.invis=1);l=wv(f).join("&");d[3]=l;d[11]=c;d[29]=Ku.getInstance().binaryContext;d[0]=b;d[7]=a.lastAdState.exposure;d[9]=hv(a.visibleBox);d[28]=a.requestSource;d[32]=a.measurementStrategy?a.measurementStrategy.getName():"ns";
d[5]=a.isViewed()&&4!=a.listenerMode;d[13]=a.measurementData.timeOnScreen.getMaxConsecutive(!0).join(",");d[18]=0==Jv(a.getPosition());null!=a.offsetInViewport&&(d[20]=a.offsetInViewport.y,d[21]=a.offsetInViewport.x);b=iv.getInstance();null!=b.frameViewportBox&&(d[22]=b.frameViewportBox.getWidth(),d[23]=b.frameViewportBox.getHeight());null!=b.browserViewportBox&&(d[30]=b.browserViewportBox.getWidth(),d[31]=b.browserViewportBox.getHeight(),d[38]=hv(b.browserViewportBox));l=b.frameOffset;f=a.getPosition();
d[37]=hv(new Vg(f.top+l.y,f.right+l.x,f.bottom+l.y,f.left+l.x));b.documentSize&&(b=b.documentSize,d[39]=b.width+"-"+b.height);-1!=a.opacity&&(d[25]=a.opacity);if(a=Qv(a))a.adKey_&&(d[4]=a.adKey_),a.awbidKey_&&(d[12]=a.awbidKey_);return d};
Ov.prototype.messageForListenerMode=function(){var a=tsa(this,"goog_get_mode"),b=this.creativeSearchResults.markedUpElement;try{var c=Cra(a);Ira(b,c,void 0)}catch(d){}};
Ov.prototype.messageMonitoringAcknowledgement=function(){var a=iv.getInstance(),b=tsa(this,"goog_acknowledge_monitoring");b[8]=a.insideCrossDomainIframe;b[36]=a.shouldOsdMeasureForClient;a=this.creativeSearchResults.markedUpElement;var c=this.listenerWindows;try{var d=Cra(b);Ira(a,d,c)}catch(f){}};
var usa=function(a,b){switch(b){case 1:if(a.avicxn_.length)return a.avicxn_;break;case 2:if(a.avieoscxn_.length)return a.avieoscxn_;if(a.avicxn_.length)return a.avicxn_;}return[]};
e=Ov.prototype;e.buildExternalPingPrefix=function(a){return vv(a,this.aviextcxn_?[this.aviextcxn_]:[],"","","","")};
e.canSendActiveviewPing=function(){return!(!this.avicxn_.length&&!this.avi_)};
e.canSendExternalActiveviewPing=function(){return!!this.aviextcxn_};
e.setConnectionInfo=function(a,b,c,d){b=void 0===b?[]:b;d=void 0===d?[]:d;this.avicxn_.length||(this.avi_=a,b&&(this.avicxn_=b),this.activeviewCid_=void 0===c?"":c,this.clickstring_=null);!this.avieoscxn_.length&&d&&(this.avieoscxn_=d)};
e.setExtConnectionInfo=function(a){this.aviextcxn_||(this.aviextcxn_=void 0===a?"":a)};
e.getClickstring=function(){if(!this.clickstring_)if(this.avicxn_.length){for(var a=k(this.avicxn_),b=a.next();!b.done;b=a.next())if((b=b.value.match(/[\?&](avi|xai)=([^&]+)/))&&3==b.length)return this.clickstring_=b[2];this.clickstring_=""}else this.clickstring_=this.avi_||"";return this.clickstring_};
e.isPcsInitialized=function(){return gb(this.avicxn_,function(a){return-1!=a.indexOf("/pcs/activeview")})};
var Rv=function(a){var b=iv.getInstance(),c=ou(a.featureSet),d=b.frameOffset,f=a.getPosition();c.p=[f.top+d.y,f.left+d.x,f.bottom+d.y,f.right+d.x];d=a.measurementData;c.tos=d.timeOnScreen.getTotal(!1);c.mtos=d.timeOnScreen.getMaxConsecutive(!0);c.mcvt=d.viewTime_.getMaxConsecutive();c.rs=a.requestSource;(f=5==a.requestSource)||(c.ht=a.hoverTime_);0<=a.timeFirstSeen&&(c.tfs=a.timeFirstSeen,c.tls=a.timeLastSeen);c.mc=gv(d.maxExposure_);c.lte=gv(a.loadTimeExposure);c.bas=a.backgroundedAtStart_;c.bac=
a.wasBackgrounded_;b.insideCrossDomainIframe&&(c["if"]=a.isUnmeasurableImpression?0:1);c.met=a.creativeSearchResults.creativeSearchState;f&&a.adUrl&&(c.req=encodeURIComponent(a.adUrl).substring(0,100));a.isFromCopiedInstance&&(c.ci="1");a.isLargeAd()&&(c.la="1");a.isPedestalAd&&(c.pa="1");c.avms=a.measurementStrategy?a.measurementStrategy.getName():"ns";a.measurementStrategy&&A.extend(c,a.measurementStrategy.getLogParams());a.recheckedActiveViewDivs_&&(c.radf="1");0!=a.measurementDeferralState_&&(
c.md=a.measurementDeferralState_);c.btr=null!=a.beginToRenderUrl&&""!=a.beginToRenderUrl?1:0;c.cpmav=vsa(a)?1:0;c.lm=a.listenerMode;A.extend(c,Sv(a));return c},Sv=function(a){if(a.adSpeedStatsOverride_)return a.adSpeedStatsOverride_;
var b=a.timeRenderStartedFromEpoch_;var c=a.timeRenderStartedFromEpoch_;c=-1==c||a.timeAdDomLoadingFromEpoch_<c?-1:a.timeAdDomLoadingFromEpoch_-c;var d=-1==a.timeRenderStartedFromEpoch_||a.timeElementLoadedFromEpoch_<a.timeRenderStartedFromEpoch_?-1:a.timeElementLoadedFromEpoch_-a.timeRenderStartedFromEpoch_,f={};return f.rst=0<b?b:void 0,f.dlt=0<=c?c:void 0,f.rpt=0<=d?d:void 0,f.isd=0<=a.renderStartScrollDepth_?a.renderStartScrollDepth_:void 0,f.msd=0<=a.maxScrollDepthAfterLoad_?a.maxScrollDepthAfterLoad_:
void 0,f};
Ov.prototype.overrideAdSpeedMetrics=function(a){this.adSpeedStatsOverride_=a};
Ov.prototype.getStats=function(){var a=Rv(this);return wv(a)};
var vsa=function(a){return null!=a.cpmavViewUrl&&null!=a.cpmavViewUrl.match(/\/pagead\/adview\?.*ai=.*&vt=\d+/i)},wsa=function(a){return 0>=Jv(a.getPosition())?!1:vsa(a)&&!a.cpmavViewUrlInvoked};
e=Ov.prototype;e.updateElementToMeasure=function(a){Lv(this);this.creativeSearchResults.monitoredElement=a;lsa(this);psa(this,a);if(this.measurementStrategy){var b=this.measurementStrategy;b.unobserve();b.element=a;b.observe();b.calculateMeasurement()}};
e.shouldSendImmediatePing=function(){return this.immediatePingEnabled&&!this.activeviewImmediatePingSent};
e.isGpt=function(){return 3==this.requestSource};
e.setRecheckedActiveViewDivs=function(){this.recheckedActiveViewDivs_=!0};
e.setRenderStartTimeFromEpoch=function(a){-1==this.timeRenderStartedFromEpoch_&&(this.timeRenderStartedFromEpoch_=a)};
e.setAdDomLoadingTime=function(a){-1==this.timeAdDomLoadingFromEpoch_&&(this.timeAdDomLoadingFromEpoch_=this.timeRenderStartedFromEpoch_+a)};
e.setScrollDepthAtRenderStart=function(a){this.renderStartScrollDepth_=a};
e.getScrollDepthAtRenderStart=function(){return this.renderStartScrollDepth_};
e.requiresVolume=function(){return!1};
e.hasMetricsChangeListener=function(){return void 0!==this.metricsChangeCallback_};var xsa=function(a){this.reporter_=a;this.key="goog_adspeed";this.validEvents=[3,4];this.cachedPayload_=null};
xsa.prototype.maybeSend=function(a,b,c){if(!lb(this.validEvents,c)||!Qv(a).isValid())return!1;c={};c=(c[0]=this.key,c[40]=uj(Sv(a)),c);if(this.cachedPayload_&&(0,A.equals)(this.cachedPayload_,c))return!1;this.cachedPayload_=c;var d={};(0,A.extend)(d,c,b);return this.reporter_.report(a,0,{urlParams:{},messageParams:d})};var Tv=function(a){this.reporter_=a;this.key="goog_update_data";this.validEvent=0;this.viewedMessageSent_=!1};
Tv.prototype.maybeSend=function(a,b,c){if(c!=this.validEvent||!Qv(a).isValid())return!1;c=1==a.listenerMode;var d=a.isViewed(),f={},g={};b={messageParams:(f[0]=this.key,f[40]=uj(Sv(a)),f),urlParams:Object.assign({},b,(g.r=b.r,g))};if(c)return d&&!this.viewedMessageSent_?(this.viewedMessageSent_=d,this.reporter_.report(a,0,b)):!1;this.viewedMessageSent_=d;return this.reporter_.report(a,0,b)};var ysa=function(a){Tv.call(this,a);this.key="goog_image_request";this.validEvent=2};
p(ysa,Tv);var Uv=function(a){Tv.call(this,a);this.key="goog_image_request";this.validEvent=1};
p(Uv,Tv);Uv.prototype.maybeSend=function(a,b,c){var d=a.isViewed()&&a.shouldSendTimeOnScreenPing,f=!a.activeviewPingSent;if(d||f){if(b=Tv.prototype.maybeSend.call(this,a,b,c))if(a.isViewed()||(a.activeviewPingSent=!0),a.isViewed()||a.shouldSendTimeOnScreenPing)a.shouldSendTimeOnScreenPing=!1;return b}return!1};var Vv=function(a,b,c,d){pv.call(this,a,b,c,d)};
p(Vv,pv);e=Vv.prototype;e.calculateElementGeometry=function(){if(this.element){var a=this.element,b=this.viewportProvider.getWindow();try{try{var c=Gra(a.getBoundingClientRect())}catch(r){c=new Vg(0,0,0,0)}var d=c.right-c.left,f=c.bottom-c.top,g=yh(a,b),l=g.x,m=g.y;var n=new Vg(Math.round(m),Math.round(l+d),Math.round(m+f),Math.round(l))}catch(r){n=dsa.clone()}this.elementGeometry=n}};
e.calculateFrameVisibleGeometry=function(){this.frameVisibleGeometry=this.viewportProvider.getViewportObservation().visibleGeometry};
e.isElementHidden=function(a){var b=1==nu(this.featureSet,"od");return gsa(a,this.frameVisibleGeometry,this.element,b)};
e.calculateMeasurement=function(){this.timestamp=cv();this.calculateElementGeometry();if(1===nu(Ku.getInstance().featureSet,"vcm")&&this.element&&"number"===typeof this.element.videoWidth&&"number"===typeof this.element.videoHeight){var a=this.element,b=new Zf(a.videoWidth,a.videoHeight);this.containerGeometry=this.elementGeometry;a=this.elementGeometry;var c=a.getWidth(),d=a.getHeight(),f=b.width;b=b.height;0>=f||0>=b||0>=c||0>=d||(f/=b,b=c/d,a=a.clone(),f>b?(c/=f,d=(d-c)/2,0<d&&(d=a.top+d,a.top=
Math.round(d),a.bottom=Math.round(d+c))):(d*=f,c=Math.round((c-d)/2),0<c&&(c=a.left+c,a.left=Math.round(c),a.right=Math.round(c+d))));this.elementGeometry=a}this.calculateFrameVisibleGeometry();a=this.elementGeometry;c=this.frameVisibleGeometry;a=a.left<=c.right&&c.left<=a.right&&a.top<=c.bottom&&c.top<=a.bottom?new Vg(Math.max(a.top,c.top),Math.min(a.right,c.right),Math.min(a.bottom,c.bottom),Math.max(a.left,c.left)):new Vg(0,0,0,0);c=a.top>=a.bottom||a.left>=a.right?new Vg(0,0,0,0):a;a=this.viewportProvider.getViewportObservation();
b=f=d=0;0<(this.elementGeometry.bottom-this.elementGeometry.top)*(this.elementGeometry.right-this.elementGeometry.left)&&(this.isElementHidden(c)?c=new Vg(0,0,0,0):(d=iv.getInstance().screenSize,b=new Vg(0,d.height,d.width,0),d=Iv(c,this.elementGeometry),f=Iv(c,iv.getInstance().browserViewportBox),b=Iv(c,b)));c=c.top>=c.bottom||c.left>=c.right?new Vg(0,0,0,0):c.translate(-this.elementGeometry.left,-this.elementGeometry.top);jv()||(f=d=0);this.currentMeasurement=new ev(a,this.element,this.elementGeometry,
c,d,f,this.timestamp,b)};
e.getName=function(){return this.viewportProvider.getName()};var Wv=function(){this.videoInstreamAdBlocks_=[];this.displayAdBlocks_=[]};
Wv.prototype.findDisplayAdBlockByAdBlockId=function(a){return ib(this.displayAdBlocks_,function(b){return a.matches(Qv(b))})};
var Xv=function(a,b){return b?ib(a.displayAdBlocks_,function(c){return c.creativeSearchResults.markedUpElement==b}):null},zsa=function(a,b){return ib(a.videoInstreamAdBlocks_,function(c){return c.queryID==b})},Asa=function(a,b){return b?ib(a.videoInstreamAdBlocks_,function(c){return c.creativeSearchResults.markedUpElement==b}):null},Bsa=function(a){return ib(a.displayAdBlocks_,function(){return!1})};
Wv.prototype.findAdBlockByQueryID=function(a){return zsa(this,a)||Bsa(this)};
var Yv=function(a){return 0==a.videoInstreamAdBlocks_.length?a.displayAdBlocks_:0==a.displayAdBlocks_.length?a.videoInstreamAdBlocks_:ob(a.displayAdBlocks_,a.videoInstreamAdBlocks_)};
Wv.prototype.reset=function(){this.videoInstreamAdBlocks_=[];this.displayAdBlocks_=[]};
Wv.prototype.addVideoAdBlock=function(a){this.videoInstreamAdBlocks_.push(a)};
var Csa=function(a,b){a=a.displayAdBlocks_;var c=kb(a,function(d){return d==b});
return-1!=c?(a.splice(c,1),b.measurementStrategy&&b.measurementStrategy.unobserve(),b.dispose(),!0):!1},Dsa=function(a){var b=Zv;
if(Csa(b,a)){a=function(){return null};
a=function(){return Bsa(b)};
for(var c=a();c;c=a())Csa(b,c)}};
Wv.prototype.mergeIntoVideoAdBlocks=function(a,b){var c=this;a=db(a,(void 0===b?0:b)?function(d){return!zsa(c,d.queryID)}:function(d){return!Asa(c,d.creativeSearchResults.markedUpElement)});
this.videoInstreamAdBlocks_.push.apply(this.videoInstreamAdBlocks_,fa(a));return a};
var Esa=function(a){var b=Zv,c=[];cb(a,function(d){d.creativeSearchResults.markedUpElement&&null==Xv(b,d.creativeSearchResults.markedUpElement)&&(b.displayAdBlocks_.push(d),c.push(d))})};
Wv.prototype.mergeIntoFlashVideoAdBlocks=function(a){var b=this,c=[];cb(a,function(d){gb(b.videoInstreamAdBlocks_,function(f){return f.creativeSearchResults.markedUpElement===d.creativeSearchResults.markedUpElement&&f.sdkID===d.sdkID&&f.queryID===d.queryID})||(b.videoInstreamAdBlocks_.push(d),c.push(d))});
return c};
Wv.prototype.hasAdBlockInFullscreenMode=function(){return gb(Yv(this),function(a){return a.inFullscreenMode})};
La(Wv);var Zv=Wv.getInstance();var $v=function(a,b,c,d){pv.call(this,a,b,c,d);this.currentMeasurement=new ev(b.getViewportObservation(),this.element,new Vg(0,0,0,0),new Vg(0,0,0,0),1,1,cv(),1)};
p($v,pv);$v.prototype.getName=function(){return"a100"};
$v.prototype.calculateMeasurement=function(){this.currentMeasurement=new ev(this.viewportProvider.getViewportObservation(),this.element,new Vg(0,0,0,0),new Vg(0,0,0,0),1,1,cv(),1)};var aw=function(a){qv.call(this,new lv(a,2))};
p(aw,qv);aw.prototype.getName=function(){return"a100"};
aw.prototype.shouldBeUsedForMeasurement=function(){return!0};
aw.prototype.createInstance=function(a,b,c){return new $v(a,this.viewportProvider,b,c)};var bw=function(a,b,c,d){pv.call(this,a,b,c,d);this.isEventBasedMeasurement_=!1;this.screenShare_=this.visibleFraction_=0};
p(bw,pv);bw.prototype.handleExternalMeasurement=function(a){var b=a.position;this.elementGeometry=new Vg(b.top,b.right,b.bottom,b.left);this.visibleFraction_=a.exposure||0;this.screenShare_=a.screenShare;b=iv.getInstance();var c=a.insideIframe;void 0!==c&&0==c&&(b.insideCrossDomainIframe=!1);a.documentSize&&(b.documentSize=new Zf(a.documentSize.width,a.documentSize.height));a.viewportSize&&(b.browserViewportBox=new Vg(0,a.viewportSize.width,a.viewportSize.height,0))};
bw.prototype.getName=function(){return"exc"};
bw.prototype.calculateMeasurement=function(){this.currentMeasurement=new ev(this.viewportProvider.getViewportObservation(),this.element,this.elementGeometry,new Vg(0,0,0,0),this.visibleFraction_,0,cv(),this.screenShare_)};var cw=function(){qv.call(this,new lv(Sf,2))};
p(cw,qv);cw.prototype.getName=function(){return"exc"};
cw.prototype.shouldBeUsedForMeasurement=function(){return!0};
cw.prototype.canBeUsed=function(){return!0};
cw.prototype.createInstance=function(a,b,c){return new bw(a,this.viewportProvider,b,c)};var dw=function(){this.selectedStrategy_=this.availableStrategies_=null};
dw.prototype.selectStrategy=function(a){if(null==this.availableStrategies_)return!1;var b=function(c,d){a(c,d)};
(this.selectedStrategy_=ib(this.availableStrategies_,function(c){return null!=c&&c.shouldBeUsedForMeasurement()}))&&(this.selectedStrategy_.init(b)?ov(this.selectedStrategy_.viewportProvider):a(this.selectedStrategy_.viewportProvider.getFailureCode(),this.selectedStrategy_));
return null!=this.selectedStrategy_};
La(dw);var ew=function(a){var b=Fsa(a);qv.call(this,b.length?b[b.length-1]:new lv(Sf,0));this.selectedProviders_=b;this.activeProvider_=null;this.availableProviders_=a};
p(ew,qv);e=ew.prototype;e.getAvailableProviders=function(){return[].concat(this.availableProviders_)};
e.getName=function(){return(this.activeProvider_?this.activeProvider_:this.viewportProvider).getName()};
e.getLogParams=function(){return(this.activeProvider_?this.activeProvider_:this.viewportProvider).getLogParams()};
e.getVisibleGeometryCapability=function(){return(this.activeProvider_?this.activeProvider_:this.viewportProvider).getVisibleGeometryCapability()};
e.init=function(a){var b=!1;cb(this.selectedProviders_,function(c){c.initialize()&&(b=!0)});
b&&(this.failureCallback=a,nv(this.viewportProvider,this));return b};
e.dispose=function(){cb(this.selectedProviders_,function(a){a.shutdown();a.dispose()});
qv.prototype.dispose.call(this)};
e.shouldBeUsedForMeasurement=function(){return gb(this.selectedProviders_,function(a){return a.shouldBeUsedForMeasurement()})};
e.canBeUsed=function(){return gb(this.selectedProviders_,function(a){return a.canBeUsed()})};
e.createInstance=function(a,b,c){return new Vv(a,this.viewportProvider,b,c)};
e.handleViewportObservationUpdate=function(a){this.activeProvider_=a.originatingProvider};
var Fsa=function(a){if(!a.length)return[];a=db(a,function(c){return null!=c&&c.shouldBeUsedForMeasurement()});
for(var b=1;b<a.length;b++)nv(a[b-1],a[b]);return a};var Gsa={threshold:[0,.3,.5,.75,1]},fw=function(a,b,c,d){pv.call(this,a,b,c,d);this.observationStart_=this.firstObservation_=this.mutationObserver_=this.resizeObserver_=this.observer_=null};
p(fw,Vv);fw.prototype.observe=function(){var a=this;this.observationStart_||(this.observationStart_=cv());if(sra(298,function(){return Hsa(a)}))return!0;
Mra(this.viewportProvider);return!1};
fw.prototype.unobserve=function(){if(this.observer_&&this.element)try{this.observer_.unobserve(this.element),this.resizeObserver_?(this.resizeObserver_.unobserve(this.element),this.resizeObserver_=null):this.mutationObserver_&&(this.mutationObserver_.disconnect(),this.mutationObserver_=null)}catch(a){}};
var gw=function(a){return a.observer_&&a.observer_.takeRecords?a.observer_.takeRecords():[]},Hsa=function(a){if(!a.element)return!1;
var b=a.element,c=a.viewportProvider.getWindow(),d=Ku.getInstance().monitor_.stopwatch_;a.observer_=new c.IntersectionObserver(Ju(d,function(f){return hw(a,f)}),Gsa);
d=Ju(d,function(){a.observer_.unobserve(b);a.observer_.observe(b);hw(a,gw(a))});
c.ResizeObserver?(a.resizeObserver_=new c.ResizeObserver(d),a.resizeObserver_.observe(b)):c.MutationObserver&&(a.mutationObserver_=new t.MutationObserver(d),a.mutationObserver_.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));a.observer_.observe(b);hw(a,gw(a));return!0},hw=function(a,b){try{if(b.length){a.firstObservation_||(a.firstObservation_=cv());
var c=Isa(b),d=yh(a.element,a.viewportProvider.getWindow()),f=d.x,g=d.y;a.elementGeometry=new Vg(Math.round(g),Math.round(f)+c.boundingClientRect.width,Math.round(g)+c.boundingClientRect.height,Math.round(f));var l=Gra(c.intersectionRect);a.frameVisibleGeometry=l.translate(a.elementGeometry.left-l.left,a.elementGeometry.top-l.top)}}catch(m){a.unobserve(),Yu.maybeReportError(299,m,void 0,void 0)}},Isa=function(a){return fb(a,function(b,c){return b.time>c.time?b:c},a[0])};
e=fw.prototype;e.calculateMeasurement=function(){var a=gw(this);0<a.length&&hw(this,a);Vv.prototype.calculateMeasurement.call(this)};
e.calculateElementGeometry=function(){};
e.isElementHidden=function(){return!1};
e.calculateFrameVisibleGeometry=function(){};
e.getLogParams=function(){var a={};return Object.assign(this.viewportProvider.getLogParams(),(a.niot_obs=this.observationStart_,a.niot_cbk=this.firstObservation_,a))};
e.getName=function(){return"nio"};var iw=function(a){a=void 0===a?Sf:a;qv.call(this,new lv(a,2))};
p(iw,qv);iw.prototype.getName=function(){return"nio"};
iw.prototype.canBeUsed=function(){return!iv.getInstance().inAppContext&&null!=this.viewportProvider.getWindow().IntersectionObserver};
iw.prototype.createInstance=function(a,b,c){return new fw(a,this.viewportProvider,b,c)};var jw=function(){var a=Jsa();lv.call(this,Sf.top,a,"geo")};
p(jw,lv);jw.prototype.getUpdatedVisibleGeometry=function(){return iv.getInstance().browserViewportBox};
jw.prototype.canBeUsed=function(){var a=Jsa();this.inherentVisibleGeometryCapability_!==a&&(this.effectiveViewportProvider!=this&&a>this.effectiveViewportProvider.inherentVisibleGeometryCapability_&&(this.effectiveViewportProvider=this,mv(this)),this.inherentVisibleGeometryCapability_=a);return 2==a};
var Jsa=function(){if(Ku.getInstance().isInMobiStrategy)return 2;var a=iv.getInstance();return a.insideCrossDomainIframe||a.inAppContext?0:2};
La(jw);var kw={},Ksa=(kw[1]=function(){return new iw},kw[2]=function(){return new ew([jw.getInstance()])},kw);var lw=function(){this.selectedStrategy_=null;this.strategyMap_=Ksa};
lw.prototype.hasSelectedStrategy=function(){return null!=this.selectedStrategy_};
lw.prototype.selectStrategy=function(){a:{var a=nu(Ku.getInstance().featureSet,"mv");if(null!=a&&(a=this.strategyMap_[a])&&(a=a())&&a.canBeUsed())break a;a=null}this.selectedStrategy_=a;return null!=this.selectedStrategy_};
lw.prototype.getSelectedStrategy=function(){return this.selectedStrategy_};
La(lw);var mw=function(){this.done=!1;this.dbg={adBlocksRegistered:0,adBlocksFound:0,scrollTime:0,displayUpdates:0,initTime:-1,creativeOnLoadSearches:0,creativeOnDCLSearches:0,creativesAfterFirstSearch:0};this.protectedHandleTabVisibilityEvent_=null;this.isMonitoring=this.startMonitored_=!1;this.pingId_="";this.currentPageStats_=null;this.tabInViewTime_=0;this.sampler=new kv(this)};
mw.prototype.startMonitoring=function(a){var b=this;if(!this.startMonitored_){this.startMonitored_=!0;if(a){a=Yv(Zv);for(var c,d=0;d<a.length;++d)c=a[d],c.creativeSearchResults.monitoredElement&&lsa(c)}Lsa(this,function(f){for(var g=[],l=0;l<arguments.length;++l)g[l-0]=arguments[l];return b.handleTabVisibilityChange.apply(b,fa(g))});
this.handleTabVisibilityChange()}};
mw.prototype.stopMonitoring=function(){this.startMonitored_=!1;if(this.protectedHandleTabVisibilityEvent_){Fu();var a=Zfa();a&&Uf(Rf,a,this.protectedHandleTabVisibilityEvent_);this.protectedHandleTabVisibilityEvent_=null}a=Yv(Zv);for(var b,c=0;c<a.length;++c)b=a[c],b.creativeSearchResults.monitoredElement&&Lv(b)};
mw.prototype.handleDisplayChange=function(){nw(this,Yv(Zv),!1)};
mw.prototype.sample=function(){nw(this,Yv(Zv),!1)};
var Msa=function(){var a=lw.getInstance();null!=a.selectedStrategy_&&a.selectedStrategy_.viewportProvider&&ov(a.selectedStrategy_.viewportProvider);a=dw.getInstance();null!=a.selectedStrategy_&&a.selectedStrategy_.viewportProvider?ov(a.selectedStrategy_.viewportProvider):iv.getInstance().update(Sf)},nw=function(a,b,c){if(!a.done)if(a.sampler.cancel(),0==b.length)a.isMonitoring=!1;else
{a.currentPageStats_=null;try{Msa();var d=cv(),f=Ku.getInstance();f.firstPollingTime=d;if(null!=dw.getInstance().selectedStrategy_)for(f=0;f<b.length;f++)jsa(b[f],d,c);else ura(a.pingId_,{strategy_not_selected:1,bin:f.binaryContext});for(d=0;d<b.length;d++)ksa(b[d]);++a.dbg.displayUpdates;Nsa(a)}finally{c?cb(b,function(g){return g.resetFractionOnScreenValues()}):a.sampler.schedule()}}},Lsa=function(a,b){if(!a.protectedHandleTabVisibilityEvent_){b=Zu(142,b);
Fu();var c=Zfa();c&&Tf(Rf,c,b,{capture:!1})&&(a.protectedHandleTabVisibilityEvent_=b)}};
mw.prototype.handleTabVisibilityChange=function(){var a=jv(),b=cv();a?(bv||($u=b,cb(Zv.videoInstreamAdBlocks_,function(c){return c.measurementData.updateVideoHiddenTime(b,!c.isMeasuring())})),bv=!0):(this.tabInViewTime_=Osa(this,b),bv=!1,cb(Zv.videoInstreamAdBlocks_,function(c){c.isReadyForMeasurement()&&c.measurementData.setTimeVideoBecameHidden(b)}));
this.isMonitoring=!0;nw(this,Yv(Zv),!a)};
mw.prototype.checkActiveViewRequirements=function(){return!1};
var ow=function(a,b,c){if(!a.currentPageStats_||c){c=b.document;var d=0<=av?cv()-av:-1,f=cv();-1==a.dbg.initTime&&(d=f);var g=iv.getInstance(),l=Ku.getInstance(),m=ou(l.featureSet),n=Yv(Zv);try{if(0<n.length){var r=g.browserViewportBox;r&&(m.bs=[r.getWidth(),r.getHeight()]);var v=g.documentSize;v&&(m.ps=[v.width,v.height]);b.screen&&(m.scs=[b.screen.width,b.screen.height])}else m.url=encodeURIComponent(b.location.href.substring(0,512)),c.referrer&&(m.referrer=encodeURIComponent(c.referrer.substring(0,
512)));m.tt=d;m.pt=av;m.bin=l.binaryContext;void 0!==b.google_osd_load_pub_page_exp&&(m.olpp=b.google_osd_load_pub_page_exp);m.deb=[1,a.dbg.adBlocksRegistered,a.dbg.adBlocksFound,a.dbg.displayUpdates,a.dbg.initTime,Dra,a.sampler.samplingCount_,a.dbg.creativeOnLoadSearches,a.dbg.creativeOnDCLSearches,a.dbg.creativesAfterFirstSearch].join("-");m.tvt=Osa(a,f);g.inAppContext&&(m.inapp=1);if(null!==b&&b!=b.top){0<n.length&&(m.iframe_loc=encodeURIComponent(b.location.href.substring(0,512)));var z=g.frameViewportBox;
m.is=[z.getWidth(),z.getHeight()]}}catch(C){m.error=1}a.currentPageStats_=m}a=A.clone(a.currentPageStats_);v=Ku.getInstance().monitor_;b=A;r=b.extend;v.isEnabled_()?(z=new Hu,c=v.stopwatch_.getAccumulatedTime(),z=Gf(z,1,c,0),c=v.stopwatch_.getThreadEntryCount(),z=Hf(z,5,c),c=v.context_.performance_.getUsedHeapSize(),z=Hf(z,2,c),c=v.context_.performance_.getTotalHeapSize(),z=Hf(z,3,c),v=v.context_.performance_.getHeapSizeLimit(),v=Hf(z,4,v),z={},v=(z.pf=Me(v.serializeBinary()),z)):v={};r.call(b,a,
v);return a};
e=mw.prototype;e.getPageStats=function(a,b){a=ow(this,a,b);return wv(a)};
e.getPingId=function(){return this.pingId_};
e.enableExternalMeasurements=function(){Ku.getInstance().isExternalMeasurementEnabled=!0;var a=dw.getInstance();a.availableStrategies_=[new cw];a.selectStrategy(function(){return null})};
e.enableWindowGeometryProvidedByExternalSource=function(){iv.getInstance().isWindowGeometryProvidedByExternalSource=!0};
e.setInInnerBridge=function(){Ku.getInstance().inInnerBridge=!0};
e.getInInnerBridge=function(){return Ku.getInstance().inInnerBridge};
e.enableNativeImaSdk=function(){var a=Ku.getInstance();a.nativeMeasurementStrategy="nis";a.pollingFrequencyScheme=79463069;iv.getInstance().inAppContext=!0};
e.enableGmaSdkVideo=function(){var a=Ku.getInstance();a.nativeMeasurementStrategy="gsv";a.pollingFrequencyScheme=79463069;iv.getInstance().inAppContext=!0};
var Psa=function(a){if(a.creativeSearchResults.markedUpElement){var b=a.adk||0,c=lw.getInstance();if(b=c.selectedStrategy_?new Cv(c.selectedStrategy_,a.creativeSearchResults.monitoredElement,a.featureSet,b):null)a.strategyVerifier_=b}},Qsa=function(){cb(Yv(Zv),function(a){return Psa(a)})},Rsa=function(){var a=dw.getInstance();
if(null!=a.selectedStrategy_){var b=a.selectedStrategy_;cb(Yv(Zv),function(c){return isa(c,b)})}},Nsa=function(a){var b=Ku.getInstance(),c=1===nu(b.featureSet,"llp");
"osd"==a.pingId_&&cb(Zv.displayAdBlocks_,function(d){if(c){if(1==b.binaryContext||d.isViewed()||d.isUnmeasurableImpression){var f={};Pv(d,0,(f.r=void 0,f))}}else f={},Pv(d,0,(f.r=void 0,f))})},Osa=function(a,b){a=a.tabInViewTime_;
bv&&(a+=b-$u);return a};
mw.prototype.getAdkFromUrl=function(a){return(a=a.match(/[&\?;](?:dc_)?adk=([0-9]+)/))&&2==a.length?parseInt(a[1],10):0};
mw.prototype.getAdfFromUrl=function(a){return(a=a.match(/[&\?;]adf=([0-9]+)/))&&2==a.length?parseInt(a[1],10):0};
mw.prototype.alwaysReport100=function(){dw.getInstance().availableStrategies_=[new aw(Sf)]};
var Ssa=function(){var a=pw;var b=void 0===b?function(){return{}}:b;
Yu.errorTypeId_="av-js";Uu.defaultReportFreq_=.01;rra([function(c){var d=Ku.getInstance(),f={};A.extend(c,(f.bin=d.binaryContext,f.type="error",f),ou(d.featureSet),ow(a,Sf),b());if(d=Vra())f={},A.extend(c,(f.v=encodeURIComponent(d),f))}])};
mw.prototype.getMessagesForListenerMode=function(a,b){switch(a){case 0:case 5:return[];default:return a=4===Ku.getInstance().binaryContext,[new Tv(b),new Uv(b),new ysa(b)].concat(fa(a?[]:[new xsa(b)]));}};
La(mw);var pw=mw.getInstance();var Tsa=null,Usa=function(a){var b=Tsa||Sf;if(!b)return"";var c=[];if(void 0===a||!a){if(!b.location||!b.location.href)return"";c.push("url="+encodeURIComponent(b.location.href.substring(0,512)))}b.document&&b.document.referrer&&c.push("referrer="+encodeURIComponent(b.document.referrer.substring(0,512)));return c.join("&")};var qw=function(){},rw=function(a){return void 0!==a?Sra(tv(new sv,a)):""};var Vsa=function(){},Wsa=function(a){var b={};
b.adk=a.adk||1;A.extend(b,Rv(a));pw.dbg.adBlocksRegistered=Sf.__google_lidar_;var c=ow(pw,Sf);A.extend(b,c);c=Usa(void 0!==c.url);Ed(c,function(d,f){return b[d]=f});
b.itpl=Number(qu(a.creativeSearchResults.markedUpElement,"googleAvItpl"))||0;return b};var Xsa=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g,sw=function(a,b){return a.replace(Xsa,function(c,d){try{var f=A.get(b,d);if(null==f)return c;f=f.toString();if(""==f||!Nb(null==f?"":String(f)))return encodeURIComponent(f).replace(/%2C/g,",")}catch(g){}return c})};var tw=function(a){this.payloadBuilder_=new qw;this.buildAdMetrics_=a};
tw.prototype.buildUrl_=function(a,b,c){return 14===c.requestSource||16===c.requestSource?(c={},c.VIEWABILITY=b,sw(a,c)):a+"&"+b};
tw.prototype.report=function(a,b,c){var d=this.buildAdMetrics_(a);(0,A.extend)(d,(0,A.filter)(c,function(f,g){return"id"!=g}));
d=rw(d);b=vv(c.id,usa(a,b),a.avi_,a.activeviewCid_,a.avihost_,void 0);b=k(b);for(c=b.next();!c.done;c=b.next())if(c=c.value)c=this.buildUrl_(c,d,a),1==nu(a.featureSet,"sbeos")?Ura(c)||xv(c.toString()+"&sberr=1"):xv(c);return!0};var uw=function(a,b){this.payloadBuilder_=a;this.metricsBuilder_=b};
uw.prototype.buildUrl_=function(a,b,c){return 14===c.requestSource||16===c.requestSource?(c={},c.VIEWABILITY=b,sw(a,c)):a+"&"+b};
uw.prototype.report=function(a,b,c){var d=Wsa(a);(0,A.extend)(d,(0,A.filter)(c,function(f,g){return"id"!=g}));
d=rw(d);b=vv(c.id,usa(a,b),a.avi_,a.activeviewCid_,a.avihost_,void 0);b=k(b);for(c=b.next();!c.done;c=b.next())if(c=c.value)c=this.buildUrl_(c,d,a),xv(c);return!0};var vw=function(a,b){this.sent_=!1;this.reporter_=a;this.pingId_=b};
p(vw,Nv);vw.prototype.maybeSendOneTimePing=function(a,b){b.id=this.pingId_;var c="lidar2"===this.pingId_?1:2;return this.meetsCriteria(a)?this.reporter_.report(a,c,b):!1};
vw.prototype.meetsCriteria=function(){return!0};var ww=function(a){vw.call(this,a,"lidartos")};
p(ww,vw);ww.prototype.maybeSendOneTimePing=function(a,b){var c="";a.activeviewPingSent&&(c+="a");a.cpmavViewUrlInvoked&&(c+="c");b.sent=c;return vw.prototype.maybeSendOneTimePing.call(this,a,b)};
ww.prototype.meetsCriteria=function(a){return a.shouldSendTimeOnScreenPing&&!a.isUnmeasurableImpression&&a.isViewed()};var xw=function(a){vw.call(this,a,"lidar2")};
p(xw,vw);xw.prototype.meetsCriteria=function(a){return a.isUnmeasurableImpression};var Ysa=function(){},Zsa=function(a,b,c){var d=Usa(void 0!==b.url);
Ed(d,function(f,g){return b[f]=g});
cb(a,function(f,g){if(3!=(f.isUnmeasurableImpression||0>=Jv(f.getPosition())?2:f.isViewed()?4:3)||5!=f.requestSource){b.adk=f.adk||g+1;A.extend(b,Rv(f));c&&(b.avms=c.getName());b.itpl=Number(qu(f.creativeSearchResults.markedUpElement,"googleAvItpl"))||0;var l=f.shouldSendTimeOnScreenPing&&!f.isUnmeasurableImpression&&f.isViewed();g=new tw(function(){return A.clone(b)});
l?(l={},g.report(f,2,(l.id="lidar2",l.tsf=1,l)),f.shouldSendTimeOnScreenPing=!1):(l={},g.report(f,1,(l.id="lidar2",l)),f.activeviewPingSent=!0)}})};
Ysa.prototype.sendNoAdsFoundPing=function(a,b){b.nd=a;xv("//pagead2.googlesyndication.com/pagead/gen_204?id=lidar2&"+rw(b))};
var $sa=function(a,b){cb(a,function(c,d){new ww(new tw(function(){b.adk=c.adk||d+1;A.extend(b,Rv(c));b.itpl=Number(qu(c.creativeSearchResults.markedUpElement,"googleAvItpl"))||0;return b})).maybeSend(c);
c.shouldSendTimeOnScreenPing=!1})};var yw=function(a){vw.call(this,a,"lidar2")};
p(yw,vw);yw.prototype.maybeSend=function(a,b){b=void 0===b?{}:b;b.r="v";vw.prototype.maybeSend.call(this,a,b);a.activeviewPingSent=a.activeviewPingSent||this.sent_};
yw.prototype.meetsCriteria=function(a){return a.isViewed()&&!a.activeviewPingSent};var zw=["FRAME","IMG","IFRAME"],ata=/^[01](px)?$/;function bta(a){return"string"===typeof a?document.getElementById(a):a}
function cta(a,b,c){var d=!0,f=!0;d=void 0===d?!0:d;f=void 0===f?!1:f;var g=void 0===g?!1:g;if(a=bta(a)){c||(c=function(E,S,la){E.addEventListener(S,la)});
for(var l=!1,m=function(E){l||(l=!0,b(E))},n,r,v=0;v<zw.length;++v)if(zw[v]==a.tagName){r=3;
n=[a];break}n||(n=a.querySelectorAll(zw.join(",")),r=2);var z=0;a=!1;for(v=0;v<n.length;v++){var C=n[v];if(g||!("IMG"!=C.tagName||!C.complete||C.naturalWidth&&C.naturalHeight?ata.test(C.getAttribute("width"))&&ata.test(C.getAttribute("height")):1)){if("IMG"==C.tagName)var J=C.naturalWidth&&C.naturalHeight?!0:!1;else try{J="complete"===(C.readyState?C.readyState:C.contentWindow&&C.contentWindow.document&&C.contentWindow.document.readyState)?!0:!1}catch(E){J=void 0===f?!1:f}J?a=!0:(z++,c(C,"load",function(){z--;
z||m(r)}))}}n=null;
if(0===z&&!a&&"complete"===t.document.readyState)r=5;else if(z||!a){c(t,"load",function(){m(4)});
return}d&&m(r)}}
;var Aw=function(){this.hasStarted=this.isInitialized_=this.suppressNoAdBlockPingDueToOsdMonitoring=!1;this.pingDispatcher_=new Ysa;Ssa()};
Aw.prototype.hasLidarStarted=function(){return this.hasStarted};
Aw.prototype.initialize=function(){this.isInitialized_||(this.isInitialized_=!0,pw.pingId_="lidar",fv(Sf,"unload",function(){Bw("u")},171),1==nu(Ku.getInstance().featureSet,"phell")&&fv(Sf,"pagehide",function(){Bw("ph")},498))};
var dta=function(){return gb(Zv.displayAdBlocks_,function(a){return!a.activeviewPingSent||a.shouldSendTimeOnScreenPing||wsa(a)})},eta=function(){if(!dta()){pw.done=!0;
Zv.reset();pw.stopMonitoring();var a=dw.getInstance();null!=a.selectedStrategy_&&(a.selectedStrategy_.dispose(),a.selectedStrategy_=null)}},ita=function(a){var b=void 0===b?!0:b;
try{if(a.hasStarted||pw.done)var c=!1;else Fu().checkActiveViewRequirements()?c=!0:(Bw("c"),c=!1);if(c){a.hasStarted=!0;var d=iv.getInstance(),f=cv();av=f;Ku.getInstance().pollingFrequencyScheme=947190542;Tsa=xra().win;var g=pw.dbg;g.initTime=cv()-f;g.adBlocksFound=0;b&&fta(a,f);var l=Zv.displayAdBlocks_;g.adBlocksFound=l.length;Sf.__google_lidar_adblocks_count_=l.length;if(d.inAppContext||Qb(ec,"CrKey")||Qb(ec,"PlayStation")||Qb(ec,"Roku")||Jra()||Qb(ec,"Xbox")||Kra()||Lra()||!xu(Fu().pageVisibility)){if(1>
l.length)a.suppressNoAdBlockPingDueToOsdMonitoring?pw.done=!0:Bw("n");else{Qsa();var m=dw.getInstance();if(null==m.availableStrategies_){var n=gta();m.availableStrategies_=n}m.selectStrategy(function(r,v){Cw(r,v)})?pw.done||(hta(),Rsa(),pw.startMonitoring(!1)):d.inAppContext?Cw("w"):Cw("i")}}else Cw("pv")}}catch(r){throw Zv.reset(),Bw("x"),r;
}},jta=function(a){var b=Zv.displayAdBlocks_;
Ku.getInstance().unmeasurableReason=a;cb(b,function(c){return c.isUnmeasurableImpression=!0})},hta=function(){Fu().setTimeout(tra(176,function(){return Bw("t")}),36E5)},Cw=function(a,b){jta(a);
Bw(a,b)},Bw=function(a,b){var c=Ku.getInstance();
if(1===nu(c.featureSet,"omid")){if("w"!==a&&"i"!==a&&!c.omidOnePixelImpressionHasOccurred)return}else if(c.isSellsideGma&&!c.webviewEverOnScreen)return;pw.sampler.cancel();if(!pw.done&&(c=Zv.displayAdBlocks_,nw(pw,c,!0),!pw.done)){var d=db(c,function(g){return!g.activeviewPingSent}),f={};
a=(f.r=a,f);b&&A.extend(a,b.getLogParams());pw.dbg.adBlocksRegistered=Sf.__google_lidar_;f=ow(pw,Sf,!1);A.extend(a,f);0==d.length||Zsa(d,a,b);$sa(c,a);pw.done=!0}},kta=function(a,b,c,d){var f=new qw,g=new Vsa,l=Ku.getInstance(),m=new Ov(Sf,"",b,d,c,Ka,[],[new yw(new uw(f,g))]);
c=l.monitor_.stopwatch_;msa(m,Ju(c,function(n){for(var r=[],v=0;v<arguments.length;++v)r[v-0]=arguments[v];return a.handleMeasurementUpdate_.apply(a,fa(r))}),Ju(c,function(n){for(var r=[],v=0;v<arguments.length;++v)r[v-0]=arguments[v];
return a.handleUnmeasurableImpression_.apply(a,fa(r))}));
Esa([m]);cta(b,Ju(c,function(){if(m&&!m.isDisposed()){if(Ku.getInstance().unmeasurableReason){var n=Ku.getInstance().unmeasurableReason;a.handleUnmeasurableImpression_(m,n)}else m.setElementLoaded();if(m.creativeSearchResults.markedUpElement){n=m.creativeSearchResults;var r=!0,v=!0;r=void 0===r?!1:r;v=void 0===v?!1:v;n.monitoredElement=n.markedUpElement;n.creativeSearchState="mue";if(!su(n.markedUpElement)){var z=Wqa(n.markedUpElement),C=Wqa(n.markedUpElement,!1);su(C)&&C!=z&&(n.wouldHaveUsedFont=
!0);su(z)?(n.monitoredElement=z,n.creativeSearchState="ie"):r&&(v||Sf!==Sf.top)&&(r=Xqa(Sf.document.body,["GoogleActiveViewInnerContainer"]),1==r.length&&(n.monitoredElement=r[0],n.creativeSearchState="ce"))}}a.hasStarted?(n=dw.getInstance(),null!=n.selectedStrategy_&&isa(m,n.selectedStrategy_),Psa(m)):ita(a)}}),function(n,r,v){fv(n,r,v,177)});
return m},mta=function(a,b,c){c=void 0===c?cv():c;
a.initialize();!b._avi_&&b.id&&A.forEach(Sf[b.id+"_avData"],function(f,g){g in Object.prototype||"undefined"==typeof f||(b[g]=f)});
var d=lta(b);return 0==d||null!=Xv(Zv,b)?null:kta(a,b,d,c)},fta=function(a,b){var c=[];
cb([],function(d){(d=mta(a,d,b))&&c.push(d)})},lta=function(a){if(!a)return 0;
var b=qu(a,"googleAvRs");if(null!=b)switch(Number(b)){case 6:return 5;case 9:return Ku.getInstance().isSellsideGma=!0,8;case 15:return 14;case 16:return 15;case 17:return 16;default:return 0;}if(!a.id)return 0;a=a.id;return Lb(a,"DfaVisibilityIdentifier")?5:Lb(a,"YtKevlarVisibilityIdentifier")?14:Lb(a,"YtSparklesVisibilityIdentifier")?16:0};
Aw.prototype.handleUnmeasurableImpression_=function(a,b){if(a&&!pw.done&&(a.isUnmeasurableImpression=!0,!a.activeviewPingSent)){var c=new xw(new uw(new qw(),new Vsa())),d={};c.maybeSend(a,(d.r=b,d));a.activeviewPingSent=c.sent_}eta()};
Aw.prototype.handleMeasurementUpdate_=function(a){a&&(!pw.done&&a instanceof Ov&&(rsa(a),!pw.done&&a.isViewed()&&wsa(a)&&a.cpmavViewUrl&&(cea(a.cpmavViewUrl),a.cpmavViewUrlInvoked=!0)),eta())};var Dw=function(){Aw.call(this)};
p(Dw,Aw);var gta=function(){var a=[jw.getInstance()];return[new iw(Sf),new ew(a)]};
Dw.prototype.initialize=function(){Ku.getInstance().binaryContext=8;Aw.prototype.initialize.call(this)};
La(Dw);var nta=function(a){this.servicePromise_=a;this.logger_=this.resolvedService_=null;a.then(u(function(b){this.resolvedService_=b},this),function(){},this)},Ew=function(a,b,c){return a.servicePromise_.then(function(d){var f=d[b];
if(!f)throw Error("Method not found: "+b);return f.apply(d,c)})},ota=function(a,b,c){if(a=a.resolvedService_)if(b=a[b])return b.apply(a,c)},qta=function(a,b,c){for(var d=Array(arguments.length-2),f=2;f<arguments.length;f++)d[f-2]=arguments[f];
f=pta(a,b).then(function(g){return g.apply(null,d)});
return new nta(f)},rta={},pta=function(a,b){var c=rta[b];
if(c)return c;c=(c=Ja(b))?Ni(c):new Li(function(d,f){var g=new $f(document).createElement("SCRIPT");g.async=!0;wc(g,Kb(a));g.onload=g.onreadystatechange=function(){g.readyState&&"loaded"!=g.readyState&&"complete"!=g.readyState||d()};
g.onerror=f;(document.head||document.getElementsByTagName("head")[0]).appendChild(g)}).then(function(){var d=Ja(b);
if(!d)throw Error("Failed to load "+b+" from "+a);return d});
return rta[b]=c};var sta=function(a){this.loader_=a;this.logger_=null};
e=sta.prototype;e.startFeedback=function(a){Ew(this.loader_,"startFeedback",arguments)};
e.startGuide=function(a,b){Ew(this.loader_,"startGuide",arguments)};
e.stopGuide=function(){Ew(this.loader_,"stopGuide",arguments)};
e.startHelp=function(a){Ew(this.loader_,"startHelp",arguments)};
e.loadChatSupport=function(a){Ew(this.loader_,"loadChatSupport",arguments)};
e.requestSurvey=function(a){Ui(Ew(this.loader_,"requestSurvey",arguments),function(){},this)};
e.presentSurvey=function(a){Ui(Ew(this.loader_,"presentSurvey",arguments),function(){},this)};
e.dismissSurvey=function(a){Ui(Ew(this.loader_,"dismissSurvey",arguments),function(){},this)};
e.registerHelpAction=function(a,b,c){Ew(this.loader_,"registerHelpAction",arguments)};
e.executeHelpAction=function(a,b){ota(this.loader_,"executeHelpAction",arguments)};
e.isHelpActionApplicable=function(a){return!!ota(this.loader_,"isHelpActionApplicable",arguments)};
var tta=Cb("https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var Fw=function(a){hf(this,a,0,-1,null,null)};
w(Fw,G);Fw.prototype.toObject=function(a){return Gw(a,this)};
var Gw=function(a,b){var c={tokenOwnerGaiaId:rf(b,1),structureId:L(b,2),zookie:of(L(b,3))};a&&(c.$jspbMessageInstance=b);return c};
Fw.prototype.serializeBinary=function(){var a=new D;Hw(this,a);return F(a)};
var Hw=function(a,b){var c=rf(a,1);0!==c&&b.writeInt64(1,c);c=L(a,2);0<c.length&&b.writeString(2,c);c=pf(L(a,3));0<c.length&&b.writeBytes(3,c)};
Fw.prototype.setTokenOwnerGaiaId=function(a){return Hf(this,1,a)};
Fw.prototype.setStructureId=function(a){return Jf(this,2,a)};
Fw.prototype.setZookie=function(a){return Gf(this,3,a,"")};var Iw=function(a){hf(this,a,0,-1,uta,null)};
w(Iw,G);var uta=[3,5];Iw.prototype.messageXid="iOFDs";Iw.prototype.toObject=function(a){return Jw(a,this)};
var Jw=function(a,b){var c,d={serviceId:L(b,1),tokenType:qf(b,2,0),scopesList:null==(c=I(b,3))?void 0:c,capabilitiesList:null==(c=I(b,5))?void 0:c,minExpiresIn:(c=M(b,sp,4))&&tp(a,c),linkName:L(b,6)};a&&(d.$jspbMessageInstance=b);return d};
Iw.prototype.serializeBinary=function(){var a=new D;Kw(this,a);return F(a)};
var Kw=function(a,b){var c=a.getServiceId();0<c.length&&b.writeString(1,c);c=qf(a,2,0);0!==c&&b.writeEnum(2,c);c=a.getScopesList();0<c.length&&Ve(b,3,c);c=a.getCapabilitiesList();0<c.length&&Ve(b,5,c);c=M(a,sp,4);null!=c&&b.writeMessage(4,c,up);c=a.getLinkName();0<c.length&&b.writeString(6,c)};
e=Iw.prototype;e.getServiceId=function(){return L(this,1)};
e.setServiceId=function(a){return Jf(this,1,a)};
e.setTokenType=function(a){return Kf(this,2,a)};
e.getScopesList=function(){return I(this,3)};
e.setScopesList=function(a){uf(this,3,a||[])};
e.addScopes=function(a,b){return Lf(this,3,a,b)};
e.clearScopesList=function(){return xf(this,3)};
e.getCapabilitiesList=function(){return I(this,5)};
e.setCapabilitiesList=function(a){uf(this,5,a||[])};
e.addCapabilities=function(a,b){return Lf(this,5,a,b)};
e.clearCapabilitiesList=function(){return xf(this,5)};
e.setMinExpiresIn=function(a){return yf(this,4,a)};
e.clearMinExpiresIn=function(){return zf(this,4)};
e.hasMinExpiresIn=function(){return K(this,4)};
e.getLinkName=function(){return L(this,6)};
e.setLinkName=function(a){return Jf(this,6,a)};var Lw=function(a){hf(this,a,0,-1,null,null)};
w(Lw,G);Lw.prototype.messageXid="AX1eX";Lw.prototype.toObject=function(a){return Mw(a,this)};
var Mw=function(a,b){var c={readMode:qf(b,1,0),consistencyKey:L(b,2)};a&&(c.$jspbMessageInstance=b);return c};
Lw.prototype.serializeBinary=function(){var a=new D;Nw(this,a);return F(a)};
var Nw=function(a,b){var c=qf(a,1,0);0!==c&&b.writeEnum(1,c);c=a.getConsistencyKey();0<c.length&&b.writeString(2,c)},vta=function(){var a=new Lw;
return Kf(a,1,3)};
Lw.prototype.getConsistencyKey=function(){return L(this,2)};
Lw.prototype.setConsistencyKey=function(a){return Jf(this,2,a)};var Ow=function(a){hf(this,a,0,-1,null,null)};
w(Ow,G);Ow.prototype.toObject=function(a){return wta(a,this)};
var wta=function(a,b){var c={iosBundleId:L(b,1)};a&&(c.$jspbMessageInstance=b);return c};
Ow.prototype.serializeBinary=function(){var a=new D;xta(this,a);return F(a)};
var xta=function(a,b){a=L(a,1);0<a.length&&b.writeString(1,a)};
Ow.prototype.setIosBundleId=function(a){return Jf(this,1,a)};var Pw=function(a){hf(this,a,0,-1,null,null)};
w(Pw,G);Pw.prototype.toObject=function(a){return yta(a,this)};
var yta=function(a,b){var c={packageName:L(b,1),certificateSha1HashBase16:L(b,2)};a&&(c.$jspbMessageInstance=b);return c};
Pw.prototype.serializeBinary=function(){var a=new D;zta(this,a);return F(a)};
var zta=function(a,b){var c=L(a,1);0<c.length&&b.writeString(1,c);c=L(a,2);0<c.length&&b.writeString(2,c)};
Pw.prototype.setPackageName=function(a){return Jf(this,1,a)};
Pw.prototype.setCertificateSha1HashBase16=function(a){return Jf(this,2,a)};var Rw=function(a){hf(this,a,0,-1,null,Qw)};
w(Rw,G);var Qw=[[1]];Rw.prototype.getAppCase=function(){return gf(this,Qw[0])};
Rw.prototype.toObject=function(a){return Ata(a,this)};
var Ata=function(a,b){var c,d={androidAppId:(c=M(b,Pw,1))&&yta(a,c)};a&&(d.$jspbMessageInstance=b);return d};
Rw.prototype.serializeBinary=function(){var a=new D;Bta(this,a);return F(a)};
var Bta=function(a,b){a=M(a,Pw,1);null!=a&&b.writeMessage(1,a,zta)};
Rw.prototype.setAndroidAppId=function(a){return Ef(this,1,Qw[0],a)};
Rw.prototype.clearAndroidAppId=function(){return Ff(this,1,Qw[0])};
Rw.prototype.hasAndroidAppId=function(){return K(this,1)};var Sw=function(a){hf(this,a,0,-1,null,null)};
w(Sw,G);Sw.prototype.messageXid="iNwpT";Sw.prototype.toObject=function(a){return Tw(a,this)};
var Tw=function(a,b){var c,d={bucket:L(b,1),sessionId:rf(b,2),thirdPartyAppCaller:(c=M(b,Rw,3))&&Ata(a,c),firstPartyAppCaller:(c=M(b,Ow,4))&&wta(a,c),accountLinkingSdk:qf(b,5,0)};a&&(d.$jspbMessageInstance=b);return d};
Sw.prototype.serializeBinary=function(){var a=new D;Uw(this,a);return F(a)};
var Uw=function(a,b){var c=a.getBucket();0<c.length&&b.writeString(1,c);c=a.getSessionId();0!==c&&b.writeInt32(2,c);c=M(a,Rw,3);null!=c&&b.writeMessage(3,c,Bta);c=M(a,Ow,4);null!=c&&b.writeMessage(4,c,xta);c=qf(a,5,0);0!==c&&b.writeEnum(5,c)};
e=Sw.prototype;e.getBucket=function(){return L(this,1)};
e.setBucket=function(a){Jf(this,1,a)};
e.getSessionId=function(){return rf(this,2)};
e.setSessionId=function(a){Hf(this,2,a)};
e.setThirdPartyAppCaller=function(a){return yf(this,3,a)};
e.clearThirdPartyAppCaller=function(){return zf(this,3)};
e.hasThirdPartyAppCaller=function(){return K(this,3)};
e.setFirstPartyAppCaller=function(a){return yf(this,4,a)};
e.clearFirstPartyAppCaller=function(){return zf(this,4)};
e.hasFirstPartyAppCaller=function(){return K(this,4)};var Vw=function(a){hf(this,a,0,-1,Cta,null)};
w(Vw,G);var Cta=[2];e=Vw.prototype;e.toObject=function(a){var b,c={header:(b=this.getHeader())&&Tw(a,b),queriesList:jf(Mf(this,Iw,2),Jw,a),readOptions:(b=this.getReadOptions())&&Mw(a,b),returnInvalidated:sf(this,4),homeGraphAcl:(b=this.getHomeGraphAcl())&&Gw(a,b)};a&&(c.$jspbMessageInstance=this);return c};
e.serializeBinary=function(){var a=new D;var b=this.getHeader();null!=b&&a.writeMessage(1,b,Uw);b=Mf(this,Iw,2);0<b.length&&We(a,2,b,Kw);b=this.getReadOptions();null!=b&&a.writeMessage(3,b,Nw);(b=this.getReturnInvalidated())&&a.writeBool(4,b);b=this.getHomeGraphAcl();null!=b&&a.writeMessage(5,b,Hw);return F(a)};
e.getHeader=function(){return M(this,Sw,1)};
e.setHeader=function(a){return yf(this,1,a)};
e.clearHeader=function(){return zf(this,1)};
e.hasHeader=function(){return K(this,1)};
e.setQueriesList=function(a){return Af(this,2,a)};
e.addQueries=function(a,b){return Nf(this,2,a,Iw,b)};
e.clearQueriesList=function(){return Bf(this,2)};
e.getReadOptions=function(){return M(this,Lw,3)};
e.setReadOptions=function(a){return yf(this,3,a)};
e.clearReadOptions=function(){return zf(this,3)};
e.hasReadOptions=function(){return K(this,3)};
e.getReturnInvalidated=function(){return sf(this,4)};
e.setReturnInvalidated=function(a){return If(this,4,a)};
e.getHomeGraphAcl=function(){return M(this,Fw,5)};
e.setHomeGraphAcl=function(a){return yf(this,5,a)};
e.clearHomeGraphAcl=function(){return zf(this,5)};
e.hasHomeGraphAcl=function(){return K(this,5)};var Ww=function(a){hf(this,a,0,-1,null,null)};
w(Ww,G);Ww.prototype.toObject=function(a){return Xw(a,this)};
var Xw=function(a,b){var c={userId:L(b,1),displayName:L(b,2),email:L(b,3),profilePicture:L(b,4)};a&&(c.$jspbMessageInstance=b);return c};
Ww.prototype.serializeBinary=function(){var a=new D;Yw(this,a);return F(a)};
var Yw=function(a,b){var c=L(a,1);0<c.length&&b.writeString(1,c);c=a.getDisplayName();0<c.length&&b.writeString(2,c);c=a.getEmail();0<c.length&&b.writeString(3,c);c=L(a,4);0<c.length&&b.writeString(4,c)};
e=Ww.prototype;e.setUserId=function(a){return Jf(this,1,a)};
e.getDisplayName=function(){return L(this,2)};
e.setDisplayName=function(a){return Jf(this,2,a)};
e.getEmail=function(){return L(this,3)};
e.setEmail=function(a){return Jf(this,3,a)};
e.setProfilePicture=function(a){return Jf(this,4,a)};var Zw=function(a){hf(this,a,0,-1,Dta,null)};
w(Zw,G);var Dta=[3,6,7];Zw.prototype.messageXid="gE7t5";Zw.prototype.toObject=function(a){return $w(a,this)};
var $w=function(a,b){var c,d={token:L(b,1),tokenType:qf(b,2,0),scopesList:null==(c=I(b,3))?void 0:c,capabilitiesList:null==(c=I(b,6))?void 0:c,expiresIn:(c=M(b,sp,4))&&tp(a,c),createTime:(c=M(b,Kh,5))&&Lh(a,c),googleScopesGrantedTo3pList:null==(c=I(b,7))?void 0:c};a&&(d.$jspbMessageInstance=b);return d};
Zw.prototype.serializeBinary=function(){var a=new D;ax(this,a);return F(a)};
var ax=function(a,b){var c=a.getToken();0<c.length&&b.writeString(1,c);c=qf(a,2,0);0!==c&&b.writeEnum(2,c);c=a.getScopesList();0<c.length&&Ve(b,3,c);c=a.getCapabilitiesList();0<c.length&&Ve(b,6,c);c=M(a,sp,4);null!=c&&b.writeMessage(4,c,up);c=M(a,Kh,5);null!=c&&b.writeMessage(5,c,Mh);c=a.getGoogleScopesGrantedTo3pList();0<c.length&&Ve(b,7,c)};
e=Zw.prototype;e.getToken=function(){return L(this,1)};
e.setToken=function(a){Jf(this,1,a)};
e.getTokenType=function(){return qf(this,2,0)};
e.setTokenType=function(a){return Kf(this,2,a)};
e.getScopesList=function(){return I(this,3)};
e.setScopesList=function(a){uf(this,3,a||[])};
e.addScopes=function(a,b){return Lf(this,3,a,b)};
e.clearScopesList=function(){return xf(this,3)};
e.getCapabilitiesList=function(){return I(this,6)};
e.setCapabilitiesList=function(a){uf(this,6,a||[])};
e.addCapabilities=function(a,b){return Lf(this,6,a,b)};
e.clearCapabilitiesList=function(){return xf(this,6)};
e.setExpiresIn=function(a){return yf(this,4,a)};
e.clearExpiresIn=function(){return zf(this,4)};
e.hasExpiresIn=function(){return K(this,4)};
e.setCreateTime=function(a){return yf(this,5,a)};
e.clearCreateTime=function(){return zf(this,5)};
e.hasCreateTime=function(){return K(this,5)};
e.getGoogleScopesGrantedTo3pList=function(){return I(this,7)};
e.setGoogleScopesGrantedTo3pList=function(a){return uf(this,7,a||[])};
e.addGoogleScopesGrantedTo3p=function(a,b){return Lf(this,7,a,b)};
e.clearGoogleScopesGrantedTo3pList=function(){return xf(this,7)};var bx=function(a){hf(this,a,0,-1,null,null)};
w(bx,G);bx.prototype.toObject=function(a){return cx(a,this)};
var cx=function(a,b){var c,d={serviceId:L(b,1),token:(c=b.getToken())&&$w(a,c),profile:(c=M(b,Ww,4))&&Xw(a,c),consistencyKey:L(b,3),invalidated:sf(b,5),name:L(b,6)};a&&(d.$jspbMessageInstance=b);return d};
bx.prototype.serializeBinary=function(){var a=new D;dx(this,a);return F(a)};
var dx=function(a,b){var c=a.getServiceId();0<c.length&&b.writeString(1,c);c=a.getToken();null!=c&&b.writeMessage(2,c,ax);c=M(a,Ww,4);null!=c&&b.writeMessage(4,c,Yw);c=a.getConsistencyKey();0<c.length&&b.writeString(3,c);(c=sf(a,5))&&b.writeBool(5,c);c=a.getName();0<c.length&&b.writeString(6,c)};
e=bx.prototype;e.getServiceId=function(){return L(this,1)};
e.setServiceId=function(a){return Jf(this,1,a)};
e.getToken=function(){return M(this,Zw,2)};
e.setToken=function(a){yf(this,2,a)};
e.clearToken=function(){return zf(this,2)};
e.hasToken=function(){return K(this,2)};
e.setProfile=function(a){return yf(this,4,a)};
e.clearProfile=function(){return zf(this,4)};
e.hasProfile=function(){return K(this,4)};
e.getConsistencyKey=function(){return L(this,3)};
e.setConsistencyKey=function(a){return Jf(this,3,a)};
e.setInvalidated=function(a){return If(this,5,a)};
e.getName=function(){return L(this,6)};
e.setName=function(a){return Jf(this,6,a)};
var ex=function(a){return Of(bx,a)};var fx=function(a){hf(this,a,0,-1,Eta,null)};
w(fx,G);var Eta=[1];e=fx.prototype;e.toObject=function(a){var b={linksList:jf(Mf(this,bx,1),cx,a)};a&&(b.$jspbMessageInstance=this);return b};
e.serializeBinary=function(){var a=new D;var b=Mf(this,bx,1);0<b.length&&We(a,1,b,dx);return F(a)};
e.setLinksList=function(a){return Af(this,1,a)};
e.addLinks=function(a,b){return Nf(this,1,a,bx,b)};
e.clearLinksList=function(){return Bf(this,1)};var gx=function(){this.properties_={}};
gx.prototype.setOption=function(a,b){this.properties_[a]=b};
gx.prototype.get=function(a){return this.properties_[a]};
gx.prototype.removeOption=function(a){delete this.properties_[a]};
gx.prototype.getKeys=function(){return Object.keys(this.properties_)};var Fta=function(a,b,c,d){this.requestMessage_=a;this.methodDescriptor_=b;this.metadata_=c;this.callOptions_=d};
e=Fta.prototype;e.getRequestMessage=function(){return this.requestMessage_};
e.getMethodDescriptor=function(){return this.methodDescriptor_};
e.getMetadata=function(){return this.metadata_};
e.getCallOptions=function(){return this.callOptions_};
e.withMetadata=function(a,b){this.metadata_[a]=b;return this};
e.withGrpcCallOption=function(a,b){this.callOptions_.setOption(a,b);return this};var hx=function(a,b,c){c=void 0===c?{}:c;this.responseMessage_=a;this.metadata_=c;this.methodDescriptor_=b;this.status_=null};
hx.prototype.getResponseMessage=function(){return this.responseMessage_};
hx.prototype.getMetadata=function(){return this.metadata_};
hx.prototype.getMethodDescriptor=function(){return this.methodDescriptor_};
hx.prototype.getStatus=function(){return this.status_};var ix=function(a,b,c,d,f,g){this.name=a;this.methodType=b;this.requestType=c;this.responseType=d;this.requestSerializeFn=f;this.responseDeserializeFn=g},jx=function(a,b,c){c=void 0===c?{}:c;
var d=void 0===d?new gx:d;return new Fta(b,a,c,d)};
e=ix.prototype;e.getName=function(){return this.name};
e.getMethodType=function(){return this.methodType};
e.getResponseMessageCtor=function(){return this.responseType};
e.getRequestMessageCtor=function(){return this.requestType};
e.getResponseDeserializeFn=function(){return this.responseDeserializeFn};
e.getRequestSerializeFn=function(){return this.requestSerializeFn};var Gta=new ix("/google.internal.identity.accountlinking.v1.AccountLinkingService/BatchCheckLink","unary",Vw,fx,function(a){return a.serialize()},function(a){return Of(fx,a)});var kx=function(a){hf(this,a,0,-1,null,null)};
w(kx,G);e=kx.prototype;e.toObject=function(a){var b,c={header:(b=this.getHeader())&&Tw(a,b),serviceId:L(this,2)};a&&(c.$jspbMessageInstance=this);return c};
e.serializeBinary=function(){var a=new D;var b=this.getHeader();null!=b&&a.writeMessage(1,b,Uw);b=this.getServiceId();0<b.length&&a.writeString(2,b);return F(a)};
e.getHeader=function(){return M(this,Sw,1)};
e.setHeader=function(a){return yf(this,1,a)};
e.clearHeader=function(){return zf(this,1)};
e.hasHeader=function(){return K(this,1)};
e.getServiceId=function(){return L(this,2)};
e.setServiceId=function(a){return Jf(this,2,a)};var lx=function(a){hf(this,a,0,-1,null,null)};
w(lx,G);lx.prototype.toObject=function(a){var b={};a&&(b.$jspbMessageInstance=this);return b};
lx.prototype.serializeBinary=function(){return F(new D)};var Hta=new ix("/google.internal.identity.accountlinking.v1.AccountLinkingService/CheckAccountByAssertion","unary",kx,lx,function(a){return a.serialize()},function(a){return Of(lx,a)});var mx=function(a){hf(this,a,0,-1,null,null)};
w(mx,G);e=mx.prototype;e.toObject=function(a){var b,c={header:(b=this.getHeader())&&Tw(a,b),query:(b=this.getQuery())&&Jw(a,b),readOptions:(b=this.getReadOptions())&&Mw(a,b),returnInvalidated:sf(this,4),homeGraphAcl:(b=this.getHomeGraphAcl())&&Gw(a,b)};a&&(c.$jspbMessageInstance=this);return c};
e.serializeBinary=function(){var a=new D;var b=this.getHeader();null!=b&&a.writeMessage(1,b,Uw);b=this.getQuery();null!=b&&a.writeMessage(2,b,Kw);b=this.getReadOptions();null!=b&&a.writeMessage(3,b,Nw);(b=this.getReturnInvalidated())&&a.writeBool(4,b);b=this.getHomeGraphAcl();null!=b&&a.writeMessage(5,b,Hw);return F(a)};
e.getHeader=function(){return M(this,Sw,1)};
e.setHeader=function(a){return yf(this,1,a)};
e.clearHeader=function(){return zf(this,1)};
e.hasHeader=function(){return K(this,1)};
e.getQuery=function(){return M(this,Iw,2)};
e.setQuery=function(a){return yf(this,2,a)};
e.clearQuery=function(){return zf(this,2)};
e.hasQuery=function(){return K(this,2)};
e.getReadOptions=function(){return M(this,Lw,3)};
e.setReadOptions=function(a){return yf(this,3,a)};
e.clearReadOptions=function(){return zf(this,3)};
e.hasReadOptions=function(){return K(this,3)};
e.getReturnInvalidated=function(){return sf(this,4)};
e.setReturnInvalidated=function(a){return If(this,4,a)};
e.getHomeGraphAcl=function(){return M(this,Fw,5)};
e.setHomeGraphAcl=function(a){return yf(this,5,a)};
e.clearHomeGraphAcl=function(){return zf(this,5)};
e.hasHomeGraphAcl=function(){return K(this,5)};var Ita=new ix("/google.internal.identity.accountlinking.v1.AccountLinkingService/CheckLink","unary",mx,bx,function(a){return a.serialize()},ex);var nx=function(a){hf(this,a,0,-1,Jta,null)};
w(nx,G);var Jta=[3];e=nx.prototype;e.toObject=function(a){var b,c={header:(b=this.getHeader())&&Tw(a,b),serviceId:L(this,2),scopesList:null==(b=I(this,3))?void 0:b,consentLanguageKeys:L(this,4)};a&&(c.$jspbMessageInstance=this);return c};
e.serializeBinary=function(){var a=new D;var b=this.getHeader();null!=b&&a.writeMessage(1,b,Uw);b=this.getServiceId();0<b.length&&a.writeString(2,b);b=this.getScopesList();0<b.length&&Ve(a,3,b);b=this.getConsentLanguageKeys();0<b.length&&a.writeString(4,b);return F(a)};
e.getHeader=function(){return M(this,Sw,1)};
e.setHeader=function(a){return yf(this,1,a)};
e.clearHeader=function(){return zf(this,1)};
e.hasHeader=function(){return K(this,1)};
e.getServiceId=function(){return L(this,2)};
e.setServiceId=function(a){return Jf(this,2,a)};
e.getScopesList=function(){return I(this,3)};
e.setScopesList=function(a){uf(this,3,a||[])};
e.addScopes=function(a,b){return Lf(this,3,a,b)};
e.clearScopesList=function(){return xf(this,3)};
e.getConsentLanguageKeys=function(){return L(this,4)};
e.setConsentLanguageKeys=function(a){Jf(this,4,a)};var Kta=new ix("/google.internal.identity.accountlinking.v1.AccountLinkingService/CreateAccountByAssertion","unary",nx,bx,function(a){return a.serialize()},ex);var ox=function(a){hf(this,a,0,-1,Lta,null)};
w(ox,G);var Lta=[2];ox.prototype.toObject=function(a){return Mta(a,this)};
var Mta=function(a,b){var c,d={authCode:L(b,1),scopesList:null==(c=I(b,2))?void 0:c};a&&(d.$jspbMessageInstance=b);return d};
ox.prototype.serializeBinary=function(){var a=new D;Nta(this,a);return F(a)};
var Nta=function(a,b){var c=L(a,1);0<c.length&&b.writeString(1,c);c=a.getScopesList();0<c.length&&Ve(b,2,c)};
e=ox.prototype;e.setAuthCode=function(a){return Jf(this,1,a)};
e.getScopesList=function(){return I(this,2)};
e.setScopesList=function(a){uf(this,2,a||[])};
e.addScopes=function(a,b){return Lf(this,2,a,b)};
e.clearScopesList=function(){return xf(this,2)};var px=function(a){hf(this,a,0,-1,Ota,null)};
w(px,G);var Ota=[3];e=px.prototype;e.toObject=function(a){var b,c={header:(b=this.getHeader())&&Tw(a,b),link:(b=this.getLink())&&cx(a,b),additionalTokensList:jf(Mf(this,Zw,3),$w,a),thirdPartyOauthClientId:L(this,4),codeFlow:(b=M(this,ox,5))&&Mta(a,b),consentLanguageKeys:L(this,6),linkName:L(this,7)};a&&(c.$jspbMessageInstance=this);return c};
e.serializeBinary=function(){var a=new D;var b=this.getHeader();null!=b&&a.writeMessage(1,b,Uw);b=this.getLink();null!=b&&a.writeMessage(2,b,dx);b=Mf(this,Zw,3);0<b.length&&We(a,3,b,ax);b=this.getThirdPartyOauthClientId();0<b.length&&a.writeString(4,b);b=M(this,ox,5);null!=b&&a.writeMessage(5,b,Nta);b=this.getConsentLanguageKeys();0<b.length&&a.writeString(6,b);b=this.getLinkName();0<b.length&&a.writeString(7,b);return F(a)};
e.getHeader=function(){return M(this,Sw,1)};
e.setHeader=function(a){return yf(this,1,a)};
e.clearHeader=function(){return zf(this,1)};
e.hasHeader=function(){return K(this,1)};
e.getLink=function(){return M(this,bx,2)};
e.setLink=function(a){return yf(this,2,a)};
e.clearLink=function(){return zf(this,2)};
e.hasLink=function(){return K(this,2)};
e.setAdditionalTokensList=function(a){return Af(this,3,a)};
e.addAdditionalTokens=function(a,b){return Nf(this,3,a,Zw,b)};
e.clearAdditionalTokensList=function(){return Bf(this,3)};
e.getThirdPartyOauthClientId=function(){return L(this,4)};
e.setThirdPartyOauthClientId=function(a){return Jf(this,4,a)};
e.setCodeFlow=function(a){return yf(this,5,a)};
e.clearCodeFlow=function(){return zf(this,5)};
e.hasCodeFlow=function(){return K(this,5)};
e.getConsentLanguageKeys=function(){return L(this,6)};
e.setConsentLanguageKeys=function(a){Jf(this,6,a)};
e.getLinkName=function(){return L(this,7)};
e.setLinkName=function(a){return Jf(this,7,a)};var Pta=new ix("/google.internal.identity.accountlinking.v1.AccountLinkingService/CreateLink","unary",px,bx,function(a){return a.serialize()},ex);var qx=function(a){hf(this,a,0,-1,null,null)};
w(qx,G);e=qx.prototype;e.messageXid="y17iSb";e.toObject=function(a){var b,c={header:(b=this.getHeader())&&Tw(a,b),query:(b=this.getQuery())&&Jw(a,b),entryPoint:qf(this,3,0)};a&&(c.$jspbMessageInstance=this);return c};
e.serializeBinary=function(){var a=new D;var b=this.getHeader();null!=b&&a.writeMessage(1,b,Uw);b=this.getQuery();null!=b&&a.writeMessage(2,b,Kw);b=this.getEntryPoint();0!==b&&a.writeEnum(3,b);return F(a)};
e.getHeader=function(){return M(this,Sw,1)};
e.setHeader=function(a){return yf(this,1,a)};
e.clearHeader=function(){return zf(this,1)};
e.hasHeader=function(){return K(this,1)};
e.getQuery=function(){return M(this,Iw,2)};
e.setQuery=function(a){return yf(this,2,a)};
e.clearQuery=function(){return zf(this,2)};
e.hasQuery=function(){return K(this,2)};
e.getEntryPoint=function(){return qf(this,3,0)};
e.setEntryPoint=function(a){return Kf(this,3,a)};var rx=function(a){hf(this,a,0,-1,null,null)};
w(rx,G);e=rx.prototype;e.messageXid="gOEPPc";e.toObject=function(a){var b={consistencyKey:L(this,1)};a&&(b.$jspbMessageInstance=this);return b};
e.serializeBinary=function(){var a=new D;var b=this.getConsistencyKey();0<b.length&&a.writeString(1,b);return F(a)};
e.getConsistencyKey=function(){return L(this,1)};
e.setConsistencyKey=function(a){return Jf(this,1,a)};var Qta=new ix("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink","unary",qx,rx,function(a){return a.serialize()},function(a){return Of(rx,a)});var sx=function(a){hf(this,a,0,-1,null,null)};
w(sx,G);sx.prototype.toObject=function(a){return tx(a,this)};
var tx=function(a,b){var c={providerUnlinkingHandling:qf(b,1,0)};a&&(c.$jspbMessageInstance=b);return c};
sx.prototype.serializeBinary=function(){var a=new D;ux(this,a);return F(a)};
var ux=function(a,b){a=qf(a,1,0);0!==a&&b.writeEnum(1,a)};
sx.prototype.setProviderUnlinkingHandling=function(a){return Kf(this,1,a)};var vx=function(a){hf(this,a,0,-1,Rta,null)};
w(vx,G);var Rta=[3];e=vx.prototype;e.toObject=function(a){var b,c={header:(b=this.getHeader())&&Tw(a,b),serviceId:L(this,2),googleScopesGrantedTo3pList:null==(b=I(this,3))?void 0:b,readOptions:(b=this.getReadOptions())&&Mw(a,b),providerErrorHandling:(b=this.getProviderErrorHandling())&&tx(a,b)};a&&(c.$jspbMessageInstance=this);return c};
e.serializeBinary=function(){var a=new D;var b=this.getHeader();null!=b&&a.writeMessage(1,b,Uw);b=this.getServiceId();0<b.length&&a.writeString(2,b);b=this.getGoogleScopesGrantedTo3pList();0<b.length&&Ve(a,3,b);b=this.getReadOptions();null!=b&&a.writeMessage(4,b,Nw);b=this.getProviderErrorHandling();null!=b&&a.writeMessage(5,b,ux);return F(a)};
e.getHeader=function(){return M(this,Sw,1)};
e.setHeader=function(a){return yf(this,1,a)};
e.clearHeader=function(){return zf(this,1)};
e.hasHeader=function(){return K(this,1)};
e.getServiceId=function(){return L(this,2)};
e.setServiceId=function(a){return Jf(this,2,a)};
e.getGoogleScopesGrantedTo3pList=function(){return I(this,3)};
e.setGoogleScopesGrantedTo3pList=function(a){return uf(this,3,a||[])};
e.addGoogleScopesGrantedTo3p=function(a,b){return Lf(this,3,a,b)};
e.clearGoogleScopesGrantedTo3pList=function(){return xf(this,3)};
e.getReadOptions=function(){return M(this,Lw,4)};
e.setReadOptions=function(a){return yf(this,4,a)};
e.clearReadOptions=function(){return zf(this,4)};
e.hasReadOptions=function(){return K(this,4)};
e.getProviderErrorHandling=function(){return M(this,sx,5)};
e.setProviderErrorHandling=function(a){return yf(this,5,a)};
e.clearProviderErrorHandling=function(){return zf(this,5)};
e.hasProviderErrorHandling=function(){return K(this,5)};var wx=function(a){hf(this,a,0,-1,null,null)};
w(wx,G);wx.prototype.toObject=function(a){var b={consistencyKey:L(this,1)};a&&(b.$jspbMessageInstance=this);return b};
wx.prototype.serializeBinary=function(){var a=new D;var b=this.getConsistencyKey();0<b.length&&a.writeString(1,b);return F(a)};
wx.prototype.getConsistencyKey=function(){return L(this,1)};
wx.prototype.setConsistencyKey=function(a){return Jf(this,1,a)};var Sta=new ix("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential","unary",vx,wx,function(a){return a.serialize()},function(a){return Of(wx,a)});var xx=function(a){hf(this,a,0,-1,null,null)};
w(xx,G);e=xx.prototype;e.toObject=function(a){var b,c={header:(b=this.getHeader())&&Tw(a,b),serviceId:L(this,2),sessionId:L(this,3),redirectState:L(this,4),consentLanguageKeys:L(this,5)};a&&(c.$jspbMessageInstance=this);return c};
e.serializeBinary=function(){var a=new D;var b=this.getHeader();null!=b&&a.writeMessage(1,b,Uw);b=this.getServiceId();0<b.length&&a.writeString(2,b);b=this.getSessionId();0<b.length&&a.writeString(3,b);b=L(this,4);0<b.length&&a.writeString(4,b);b=this.getConsentLanguageKeys();0<b.length&&a.writeString(5,b);return F(a)};
e.getHeader=function(){return M(this,Sw,1)};
e.setHeader=function(a){return yf(this,1,a)};
e.clearHeader=function(){return zf(this,1)};
e.hasHeader=function(){return K(this,1)};
e.getServiceId=function(){return L(this,2)};
e.setServiceId=function(a){return Jf(this,2,a)};
e.getSessionId=function(){return L(this,3)};
e.setSessionId=function(a){Jf(this,3,a)};
e.getConsentLanguageKeys=function(){return L(this,5)};
e.setConsentLanguageKeys=function(a){Jf(this,5,a)};var yx=function(a){hf(this,a,0,-1,null,null)};
w(yx,G);e=yx.prototype;e.toObject=function(a){var b,c={link:(b=this.getLink())&&cx(a,b),extraState:of(L(this,3))};a&&(c.$jspbMessageInstance=this);return c};
e.serializeBinary=function(){var a=new D;var b=this.getLink();null!=b&&a.writeMessage(1,b,dx);b=pf(L(this,3));0<b.length&&a.writeBytes(3,b);return F(a)};
e.getLink=function(){return M(this,bx,1)};
e.setLink=function(a){return yf(this,1,a)};
e.clearLink=function(){return zf(this,1)};
e.hasLink=function(){return K(this,1)};
e.setExtraState=function(a){return Gf(this,3,a,"")};var Tta=new ix("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth","unary",xx,yx,function(a){return a.serialize()},function(a){return Of(yx,a)});var zx=function(a){hf(this,a,0,-1,Uta,null)};
w(zx,G);var Uta=[2];e=zx.prototype;e.toObject=function(a){var b,c={header:(b=this.getHeader())&&Tw(a,b),capabilityIdsList:null==(b=I(this,2))?void 0:b,context:qf(this,3,0),serviceId:L(this,4)};a&&(c.$jspbMessageInstance=this);return c};
e.serializeBinary=function(){var a=new D;var b=this.getHeader();null!=b&&a.writeMessage(1,b,Uw);b=this.getCapabilityIdsList();0<b.length&&Ve(a,2,b);b=this.getContext();0!==b&&a.writeEnum(3,b);b=this.getServiceId();0<b.length&&a.writeString(4,b);return F(a)};
e.getHeader=function(){return M(this,Sw,1)};
e.setHeader=function(a){return yf(this,1,a)};
e.clearHeader=function(){return zf(this,1)};
e.hasHeader=function(){return K(this,1)};
e.getCapabilityIdsList=function(){return I(this,2)};
e.setCapabilityIdsList=function(a){return uf(this,2,a||[])};
e.addCapabilityIds=function(a,b){return Lf(this,2,a,b)};
e.clearCapabilityIdsList=function(){return xf(this,2)};
e.getContext=function(){return qf(this,3,0)};
e.setContext=function(a){return Kf(this,3,a)};
e.getServiceId=function(){return L(this,4)};
e.setServiceId=function(a){return Jf(this,4,a)};var Ax=function(a){hf(this,a,0,-1,null,null)};
w(Ax,G);Ax.prototype.toObject=function(a){return Bx(a,this)};
var Bx=function(a,b){var c={consentTemplateKey:L(b,1),learnMoreTemplateKey:L(b,2)};a&&(c.$jspbMessageInstance=b);return c};
Ax.prototype.serializeBinary=function(){var a=new D;Cx(this,a);return F(a)};
var Cx=function(a,b){var c=L(a,1);0<c.length&&b.writeString(1,c);c=L(a,2);0<c.length&&b.writeString(2,c)};
Ax.prototype.setConsentTemplateKey=function(a){return Jf(this,1,a)};
Ax.prototype.setLearnMoreTemplateKey=function(a){return Jf(this,2,a)};var Dx=function(a){hf(this,a,0,-1,null,null)};
w(Dx,G);Dx.prototype.toObject=function(a){return Ex(a,this)};
var Ex=function(a,b){var c,d={privateDoNotAccessOrElseSafeHtmlWrappedValue:null==(c=I(b,2))?void 0:c};a&&(d.$jspbMessageInstance=b);return d};
Dx.prototype.serializeBinary=function(){var a=new D;Fx(this,a);return F(a)};
var Fx=function(a,b){a=I(a,2);null!=a&&b.writeString(2,a)};
Dx.prototype.getPrivateDoNotAccessOrElseSafeHtmlWrappedValue=function(){return I(this,2)};
Dx.prototype.setPrivateDoNotAccessOrElseSafeHtmlWrappedValue=function(a){return uf(this,2,a)};
Dx.prototype.clearPrivateDoNotAccessOrElseSafeHtmlWrappedValue=function(){return wf(this,2)};
Dx.prototype.hasPrivateDoNotAccessOrElseSafeHtmlWrappedValue=function(){return K(this,2)};var Gx=function(a){hf(this,a,0,-1,null,null)};
w(Gx,G);Gx.prototype.toObject=function(a){return Vta(a,this)};
var Vta=function(a,b){var c,d={consentText:L(b,1),consentDetailText:(c=M(b,Dx,2))&&Ex(a,c)};a&&(d.$jspbMessageInstance=b);return d};
Gx.prototype.serializeBinary=function(){var a=new D;Wta(this,a);return F(a)};
var Wta=function(a,b){var c=a.getConsentText();0<c.length&&b.writeString(1,c);c=M(a,Dx,2);null!=c&&b.writeMessage(2,c,Fx)};
e=Gx.prototype;e.getConsentText=function(){return L(this,1)};
e.setConsentText=function(a){return Jf(this,1,a)};
e.setConsentDetailText=function(a){return yf(this,2,a)};
e.clearConsentDetailText=function(){return zf(this,2)};
e.hasConsentDetailText=function(){return K(this,2)};var Ix=function(a){hf(this,a,0,-1,null,Hx)};
w(Ix,G);var Hx=[[2,4]];Ix.prototype.getConsentLanguageCase=function(){return gf(this,Hx[0])};
Ix.prototype.toObject=function(a){return Xta(a,this)};
var Xta=function(a,b){var c,d={capabilityId:L(b,1),consentText:(c=b.getConsentText())&&Vta(a,c),assistantGenxTemplate:(c=M(b,Ax,4))&&Bx(a,c)};a&&(d.$jspbMessageInstance=b);return d};
Ix.prototype.serializeBinary=function(){var a=new D;Yta(this,a);return F(a)};
var Yta=function(a,b){var c=L(a,1);0<c.length&&b.writeString(1,c);c=a.getConsentText();null!=c&&b.writeMessage(2,c,Wta);c=M(a,Ax,4);null!=c&&b.writeMessage(4,c,Cx)};
e=Ix.prototype;e.setCapabilityId=function(a){return Jf(this,1,a)};
e.getConsentText=function(){return M(this,Gx,2)};
e.setConsentText=function(a){return Ef(this,2,Hx[0],a)};
e.clearConsentText=function(){return Ff(this,2,Hx[0])};
e.hasConsentText=function(){return K(this,2)};
e.setAssistantGenxTemplate=function(a){return Ef(this,4,Hx[0],a)};
e.clearAssistantGenxTemplate=function(){return Ff(this,4,Hx[0])};
e.hasAssistantGenxTemplate=function(){return K(this,4)};var Kx=function(a){hf(this,a,0,-1,Zta,null)};
w(Kx,G);var Zta=[3];Kx.prototype.toObject=function(a){return $ta(a,this)};
var $ta=function(a,b){var c,d={groupName:qf(b,1,0),dataAccessor:qf(b,5,0),groupHeaderText:L(b,2),consentTextsList:jf(Mf(b,Ix,3),Xta,a),assistantGenxTemplate:(c=M(b,Ax,4))&&Bx(a,c)};a&&(d.$jspbMessageInstance=b);return d};
Kx.prototype.serializeBinary=function(){var a=new D;aua(this,a);return F(a)};
var aua=function(a,b){var c=qf(a,1,0);0!==c&&b.writeEnum(1,c);c=qf(a,5,0);0!==c&&b.writeEnum(5,c);c=L(a,2);0<c.length&&b.writeString(2,c);c=Mf(a,Ix,3);0<c.length&&We(b,3,c,Yta);c=M(a,Ax,4);null!=c&&b.writeMessage(4,c,Cx)};
e=Kx.prototype;e.setGroupName=function(a){return Kf(this,1,a)};
e.setDataAccessor=function(a){return Kf(this,5,a)};
e.setGroupHeaderText=function(a){return Jf(this,2,a)};
e.setConsentTextsList=function(a){return Af(this,3,a)};
e.addConsentTexts=function(a,b){return Nf(this,3,a,Ix,b)};
e.clearConsentTextsList=function(){return Bf(this,3)};
e.getAssistantGenxTemplate=function(){return M(this,Ax,4)};
e.setAssistantGenxTemplate=function(a){return yf(this,4,a)};
e.clearAssistantGenxTemplate=function(){return zf(this,4)};
e.hasAssistantGenxTemplate=function(){return K(this,4)};var Lx=function(a){hf(this,a,0,-1,bua,null)};
w(Lx,G);var bua=[1];e=Lx.prototype;e.toObject=function(a){var b={capabilityGroupsList:jf(Mf(this,Kx,1),$ta,a),consentLanguageKeys:L(this,2),verticalSpecificText:L(this,3),thirdPartyManagementUrl:L(this,4)};a&&(b.$jspbMessageInstance=this);return b};
e.serializeBinary=function(){var a=new D;var b=Mf(this,Kx,1);0<b.length&&We(a,1,b,aua);b=this.getConsentLanguageKeys();0<b.length&&a.writeString(2,b);b=L(this,3);0<b.length&&a.writeString(3,b);b=L(this,4);0<b.length&&a.writeString(4,b);return F(a)};
e.setCapabilityGroupsList=function(a){return Af(this,1,a)};
e.addCapabilityGroups=function(a,b){return Nf(this,1,a,Kx,b)};
e.clearCapabilityGroupsList=function(){return Bf(this,1)};
e.getConsentLanguageKeys=function(){return L(this,2)};
e.setConsentLanguageKeys=function(a){Jf(this,2,a)};
e.setVerticalSpecificText=function(a){return Jf(this,3,a)};
e.setThirdPartyManagementUrl=function(a){return Jf(this,4,a)};var cua=new ix("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetConsentText","unary",zx,Lx,function(a){return a.serialize()},function(a){return Of(Lx,a)});var Mx=function(a){hf(this,a,0,-1,null,null)};
w(Mx,G);Mx.prototype.toObject=function(a){var b={linkingSessionKey:L(this,1)};a&&(b.$jspbMessageInstance=this);return b};
Mx.prototype.serializeBinary=function(){var a=new D;var b=L(this,1);0<b.length&&a.writeString(1,b);return F(a)};
Mx.prototype.setLinkingSessionKey=function(a){return Jf(this,1,a)};var Nx=function(a){hf(this,a,0,-1,null,null)};
w(Nx,G);Nx.prototype.toObject=function(a){return dua(a,this)};
var dua=function(a,b){var c={projectNumber:rf(b,1),callerId:L(b,2)};a&&(c.$jspbMessageInstance=b);return c};
Nx.prototype.serializeBinary=function(){var a=new D;eua(this,a);return F(a)};
var eua=function(a,b){var c=rf(a,1);0!==c&&b.writeInt64(1,c);c=L(a,2);0<c.length&&b.writeString(2,c)};
Nx.prototype.setProjectNumber=function(a){return Hf(this,1,a)};
Nx.prototype.setCallerId=function(a){return Jf(this,2,a)};var Ox=function(a){hf(this,a,0,-1,null,null)};
w(Ox,G);Ox.prototype.toObject=function(a){return fua(a,this)};
var fua=function(a,b){var c={checkCallSupported:sf(b,1)};a&&(c.$jspbMessageInstance=b);return c};
Ox.prototype.serializeBinary=function(){var a=new D;gua(this,a);return F(a)};
var gua=function(a,b){(a=sf(a,1))&&b.writeBool(1,a)};
Ox.prototype.setCheckCallSupported=function(a){return If(this,1,a)};var Px=function(a){hf(this,a,0,-1,null,null)};
w(Px,G);Px.prototype.toObject=function(a){return hua(a,this)};
var hua=function(a,b){var c={authorizationUrl:L(b,1)};a&&(c.$jspbMessageInstance=b);return c};
Px.prototype.serializeBinary=function(){var a=new D;iua(this,a);return F(a)};
var iua=function(a,b){a=L(a,1);0<a.length&&b.writeString(1,a)};
Px.prototype.setAuthorizationUrl=function(a){return Jf(this,1,a)};var Qx=function(a){hf(this,a,0,-1,null,null)};
w(Qx,G);Qx.prototype.toObject=function(a){return jua(a,this)};
var jua=function(a,b){var c,d={mostSignificantUuidBits:null==(c=I(b,1))?void 0:c,leastSignificantUuidBits:null==(c=I(b,2))?void 0:c};a&&(d.$jspbMessageInstance=b);return d};
Qx.prototype.serializeBinary=function(){var a=new D;kua(this,a);return F(a)};
var kua=function(a,b){var c=I(a,1);null!=c&&Te(b,1,c);c=I(a,2);null!=c&&Te(b,2,c)};
e=Qx.prototype;e.getMostSignificantUuidBits=function(){return I(this,1)};
e.setMostSignificantUuidBits=function(a){return uf(this,1,a)};
e.clearMostSignificantUuidBits=function(){return wf(this,1)};
e.hasMostSignificantUuidBits=function(){return K(this,1)};
e.getLeastSignificantUuidBits=function(){return I(this,2)};
e.setLeastSignificantUuidBits=function(a){return uf(this,2,a)};
e.clearLeastSignificantUuidBits=function(){return wf(this,2)};
e.hasLeastSignificantUuidBits=function(){return K(this,2)};var Rx=function(a){hf(this,a,0,-1,null,null)};
w(Rx,G);Rx.prototype.toObject=function(a){return lua(a,this)};
var lua=function(a,b){var c,d={uuid:(c=M(b,Qx,1))&&jua(a,c)};a&&(d.$jspbMessageInstance=b);return d};
Rx.prototype.serializeBinary=function(){var a=new D;mua(this,a);return F(a)};
var mua=function(a,b){a=M(a,Qx,1);null!=a&&b.writeMessage(1,a,kua)};
Rx.prototype.setUuid=function(a){return yf(this,1,a)};
Rx.prototype.clearUuid=function(){return zf(this,1)};
Rx.prototype.hasUuid=function(){return K(this,1)};var Sx=function(a){hf(this,a,0,-1,null,null)};
w(Sx,G);Sx.prototype.toObject=function(a){return Tx(a,this)};
var Tx=function(a,b){var c,d={sessionId:(c=b.getSessionId())&&lua(a,c)};a&&(d.$jspbMessageInstance=b);return d};
Sx.prototype.serializeBinary=function(){var a=new D;Ux(this,a);return F(a)};
var Ux=function(a,b){a=a.getSessionId();null!=a&&b.writeMessage(2,a,mua)};
Sx.prototype.getSessionId=function(){return M(this,Rx,2)};
Sx.prototype.setSessionId=function(a){yf(this,2,a)};
Sx.prototype.clearSessionId=function(){return zf(this,2)};
Sx.prototype.hasSessionId=function(){return K(this,2)};var Vx=function(a){hf(this,a,0,-1,nua,null)};
w(Vx,G);var nua=[6,7,8,13];Vx.prototype.toObject=function(a){return oua(a,this)};
var oua=function(a,b){var c,d={issuanceTimestamp:(c=M(b,Kh,1))&&Lh(a,c),sessionId:rf(b,2),bucket:L(b,3),serviceId:L(b,4),gaiaId:rf(b,5),scopesList:null==(c=I(b,6))?void 0:c,capabilityIdsList:null==(c=I(b,7))?void 0:c,supportedFlowsList:null==(c=I(b,8))?void 0:c,completionUrl:L(b,9),gsiDetails:(c=M(b,Ox,10))&&fua(a,c),oauthDetails:(c=b.getOauthDetails())&&hua(a,c),caller:(c=M(b,Nx,12))&&dua(a,c),allowedOriginsList:null==(c=I(b,13))?void 0:c,redirectTarget:L(b,14),ariAuditToken:(c=b.getAriAuditToken())&&
Tx(a,c)};a&&(d.$jspbMessageInstance=b);return d};
Vx.prototype.serializeBinary=function(){var a=new D;pua(this,a);return F(a)};
var pua=function(a,b){var c=M(a,Kh,1);null!=c&&b.writeMessage(1,c,Mh);c=a.getSessionId();0!==c&&b.writeInt32(2,c);c=a.getBucket();0<c.length&&b.writeString(3,c);c=a.getServiceId();0<c.length&&b.writeString(4,c);c=a.getGaiaId();0!==c&&b.writeInt64(5,c);c=a.getScopesList();0<c.length&&Ve(b,6,c);c=a.getCapabilityIdsList();0<c.length&&Ve(b,7,c);c=a.getSupportedFlowsList();0<c.length&&Xe(b,8,c);c=a.getCompletionUrl();0<c.length&&b.writeString(9,c);c=M(a,Ox,10);null!=c&&b.writeMessage(10,c,gua);c=a.getOauthDetails();
null!=c&&b.writeMessage(11,c,iua);c=M(a,Nx,12);null!=c&&b.writeMessage(12,c,eua);c=I(a,13);0<c.length&&Ve(b,13,c);c=L(a,14);0<c.length&&b.writeString(14,c);c=a.getAriAuditToken();null!=c&&b.writeMessage(15,c,Ux)};
e=Vx.prototype;e.setIssuanceTimestamp=function(a){return yf(this,1,a)};
e.clearIssuanceTimestamp=function(){return zf(this,1)};
e.hasIssuanceTimestamp=function(){return K(this,1)};
e.getSessionId=function(){return rf(this,2)};
e.setSessionId=function(a){Hf(this,2,a)};
e.getBucket=function(){return L(this,3)};
e.setBucket=function(a){Jf(this,3,a)};
e.getServiceId=function(){return L(this,4)};
e.setServiceId=function(a){return Jf(this,4,a)};
e.getGaiaId=function(){return rf(this,5)};
e.setGaiaId=function(a){return Hf(this,5,a)};
e.getScopesList=function(){return I(this,6)};
e.setScopesList=function(a){uf(this,6,a||[])};
e.addScopes=function(a,b){return Lf(this,6,a,b)};
e.clearScopesList=function(){return xf(this,6)};
e.getCapabilityIdsList=function(){return I(this,7)};
e.setCapabilityIdsList=function(a){return uf(this,7,a||[])};
e.addCapabilityIds=function(a,b){return Lf(this,7,a,b)};
e.clearCapabilityIdsList=function(){return xf(this,7)};
e.getSupportedFlowsList=function(){return I(this,8)};
e.setSupportedFlowsList=function(a){uf(this,8,a||[])};
e.addSupportedFlows=function(a,b){return Lf(this,8,a,b)};
e.clearSupportedFlowsList=function(){return xf(this,8)};
e.getCompletionUrl=function(){return L(this,9)};
e.setCompletionUrl=function(a){Jf(this,9,a)};
e.setGsiDetails=function(a){return yf(this,10,a)};
e.clearGsiDetails=function(){return zf(this,10)};
e.hasGsiDetails=function(){return K(this,10)};
e.getOauthDetails=function(){return M(this,Px,11)};
e.setOauthDetails=function(a){return yf(this,11,a)};
e.clearOauthDetails=function(){return zf(this,11)};
e.hasOauthDetails=function(){return K(this,11)};
e.setCaller=function(a){return yf(this,12,a)};
e.clearCaller=function(){return zf(this,12)};
e.hasCaller=function(){return K(this,12)};
e.setAllowedOriginsList=function(a){return uf(this,13,a||[])};
e.addAllowedOrigins=function(a,b){return Lf(this,13,a,b)};
e.clearAllowedOriginsList=function(){return xf(this,13)};
e.setRedirectTarget=function(a){return Jf(this,14,a)};
e.getAriAuditToken=function(){return M(this,Sx,15)};
e.setAriAuditToken=function(a){return yf(this,15,a)};
e.clearAriAuditToken=function(){return zf(this,15)};
e.hasAriAuditToken=function(){return K(this,15)};var Wx=function(a){hf(this,a,0,-1,null,null)};
w(Wx,G);e=Wx.prototype;e.toObject=function(a){var b,c={linkingSession:(b=M(this,Vx,1))&&oua(a,b)};a&&(c.$jspbMessageInstance=this);return c};
e.serializeBinary=function(){var a=new D;var b=M(this,Vx,1);null!=b&&a.writeMessage(1,b,pua);return F(a)};
e.setLinkingSession=function(a){return yf(this,1,a)};
e.clearLinkingSession=function(){return zf(this,1)};
e.hasLinkingSession=function(){return K(this,1)};var qua=new ix("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetGsiLinkingSession","unary",Mx,Wx,function(a){return a.serialize()},function(a){return Of(Wx,a)});var Xx=function(a){hf(this,a,0,-1,null,null)};
w(Xx,G);e=Xx.prototype;e.toObject=function(a){var b,c={header:(b=this.getHeader())&&Tw(a,b),query:(b=this.getQuery())&&Jw(a,b),readOptions:(b=this.getReadOptions())&&Mw(a,b),homeGraphAcl:(b=this.getHomeGraphAcl())&&Gw(a,b),providerErrorHandling:(b=this.getProviderErrorHandling())&&tx(a,b)};a&&(c.$jspbMessageInstance=this);return c};
e.serializeBinary=function(){var a=new D;var b=this.getHeader();null!=b&&a.writeMessage(1,b,Uw);b=this.getQuery();null!=b&&a.writeMessage(2,b,Kw);b=this.getReadOptions();null!=b&&a.writeMessage(3,b,Nw);b=this.getHomeGraphAcl();null!=b&&a.writeMessage(4,b,Hw);b=this.getProviderErrorHandling();null!=b&&a.writeMessage(5,b,ux);return F(a)};
e.getHeader=function(){return M(this,Sw,1)};
e.setHeader=function(a){return yf(this,1,a)};
e.clearHeader=function(){return zf(this,1)};
e.hasHeader=function(){return K(this,1)};
e.getQuery=function(){return M(this,Iw,2)};
e.setQuery=function(a){return yf(this,2,a)};
e.clearQuery=function(){return zf(this,2)};
e.hasQuery=function(){return K(this,2)};
e.getReadOptions=function(){return M(this,Lw,3)};
e.setReadOptions=function(a){return yf(this,3,a)};
e.clearReadOptions=function(){return zf(this,3)};
e.hasReadOptions=function(){return K(this,3)};
e.getHomeGraphAcl=function(){return M(this,Fw,4)};
e.setHomeGraphAcl=function(a){return yf(this,4,a)};
e.clearHomeGraphAcl=function(){return zf(this,4)};
e.hasHomeGraphAcl=function(){return K(this,4)};
e.getProviderErrorHandling=function(){return M(this,sx,5)};
e.setProviderErrorHandling=function(a){return yf(this,5,a)};
e.clearProviderErrorHandling=function(){return zf(this,5)};
e.hasProviderErrorHandling=function(){return K(this,5)};var rua=new ix("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink","unary",Xx,bx,function(a){return a.serialize()},ex);var Yx=function(a){hf(this,a,0,-1,null,null)};
w(Yx,G);e=Yx.prototype;e.toObject=function(a){var b,c={header:(b=this.getHeader())&&Tw(a,b),serviceId:L(this,2)};a&&(c.$jspbMessageInstance=this);return c};
e.serializeBinary=function(){var a=new D;var b=this.getHeader();null!=b&&a.writeMessage(1,b,Uw);b=this.getServiceId();0<b.length&&a.writeString(2,b);return F(a)};
e.getHeader=function(){return M(this,Sw,1)};
e.setHeader=function(a){return yf(this,1,a)};
e.clearHeader=function(){return zf(this,1)};
e.hasHeader=function(){return K(this,1)};
e.getServiceId=function(){return L(this,2)};
e.setServiceId=function(a){return Jf(this,2,a)};var Zx=function(a){hf(this,a,0,-1,sua,null)};
w(Zx,G);var sua=[8];Zx.prototype.messageXid="yzcthd";Zx.prototype.toObject=function(a){return tua(a,this)};
var tua=function(a,b){var c,d={displayName:L(b,1),logoUrl:L(b,2),learnMoreUrl:L(b,3),displayTld:L(b,4),privacyPolicyUrl:L(b,5),linkManagementUrl:L(b,6),termsOfServiceUrl:L(b,7),supportedCapabilitiesList:null==(c=I(b,8))?void 0:c};a&&(d.$jspbMessageInstance=b);return d};
Zx.prototype.serializeBinary=function(){var a=new D;uua(this,a);return F(a)};
var uua=function(a,b){var c=a.getDisplayName();0<c.length&&b.writeString(1,c);c=L(a,2);0<c.length&&b.writeString(2,c);c=L(a,3);0<c.length&&b.writeString(3,c);c=L(a,4);0<c.length&&b.writeString(4,c);c=L(a,5);0<c.length&&b.writeString(5,c);c=L(a,6);0<c.length&&b.writeString(6,c);c=L(a,7);0<c.length&&b.writeString(7,c);c=I(a,8);0<c.length&&Ve(b,8,c)};
e=Zx.prototype;e.getDisplayName=function(){return L(this,1)};
e.setDisplayName=function(a){return Jf(this,1,a)};
e.setLogoUrl=function(a){return Jf(this,2,a)};
e.setLearnMoreUrl=function(a){return Jf(this,3,a)};
e.setDisplayTld=function(a){return Jf(this,4,a)};
e.setPrivacyPolicyUrl=function(a){return Jf(this,5,a)};
e.setLinkManagementUrl=function(a){return Jf(this,6,a)};
e.setTermsOfServiceUrl=function(a){return Jf(this,7,a)};
e.setSupportedCapabilitiesList=function(a){return uf(this,8,a||[])};
e.addSupportedCapabilities=function(a,b){return Lf(this,8,a,b)};
e.clearSupportedCapabilitiesList=function(){return xf(this,8)};var vua=new ix("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetServiceDetails","unary",Yx,Zx,function(a){return a.serialize()},function(a){return Of(Zx,a)});var ay=function(a){hf(this,a,0,-1,null,$x)};
w(ay,G);var $x=[[1,2],[3,4]];e=ay.prototype;e.getProviderCase=function(){return gf(this,$x[0])};
e.getTokenIdCase=function(){return gf(this,$x[1])};
e.toObject=function(a){var b={issuer:L(this,1),providerId:L(this,2),accessTokenId:L(this,3),refreshTokenId:L(this,4)};a&&(b.$jspbMessageInstance=this);return b};
e.serializeBinary=function(){var a=new D;var b=I(this,1);null!=b&&a.writeString(1,b);b=I(this,2);null!=b&&a.writeString(2,b);b=I(this,3);null!=b&&a.writeString(3,b);b=I(this,4);null!=b&&a.writeString(4,b);return F(a)};
e.getIssuer=function(){return L(this,1)};
e.setIssuer=function(a){return Cf(this,1,$x[0],a)};
e.clearIssuer=function(){return Df(this,1,$x[0])};
e.hasIssuer=function(){return K(this,1)};
e.setProviderId=function(a){return Cf(this,2,$x[0],a)};
e.clearProviderId=function(){return Df(this,2,$x[0])};
e.hasProviderId=function(){return K(this,2)};
e.getAccessTokenId=function(){return L(this,3)};
e.setAccessTokenId=function(a){return Cf(this,3,$x[1],a)};
e.clearAccessTokenId=function(){return Df(this,3,$x[1])};
e.hasAccessTokenId=function(){return K(this,3)};
e.getRefreshTokenId=function(){return L(this,4)};
e.setRefreshTokenId=function(a){return Cf(this,4,$x[1],a)};
e.clearRefreshTokenId=function(){return Df(this,4,$x[1])};
e.hasRefreshTokenId=function(){return K(this,4)};var by=function(a){hf(this,a,0,-1,null,null)};
w(by,G);e=by.prototype;e.toObject=function(a){var b={gaiaId:rf(this,1),providerId:L(this,2)};a&&(b.$jspbMessageInstance=this);return b};
e.serializeBinary=function(){var a=new D;var b=this.getGaiaId();0!==b&&a.writeInt64(1,b);b=L(this,2);0<b.length&&a.writeString(2,b);return F(a)};
e.getGaiaId=function(){return rf(this,1)};
e.setGaiaId=function(a){return Hf(this,1,a)};
e.getProviderId=function(){return L(this,2)};
e.setProviderId=function(a){return Jf(this,2,a)};var wua=new ix("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetUserByTokenId","unary",ay,by,function(a){return a.serialize()},function(a){return Of(by,a)});var cy=function(a){hf(this,a,0,-1,xua,null)};
w(cy,G);var xua=[3];e=cy.prototype;e.toObject=function(a){var b,c={header:(b=this.getHeader())&&Tw(a,b),serviceId:L(this,2),scopesList:null==(b=I(this,3))?void 0:b,consentLanguageKeys:L(this,4)};a&&(c.$jspbMessageInstance=this);return c};
e.serializeBinary=function(){var a=new D;var b=this.getHeader();null!=b&&a.writeMessage(1,b,Uw);b=this.getServiceId();0<b.length&&a.writeString(2,b);b=this.getScopesList();0<b.length&&Ve(a,3,b);b=this.getConsentLanguageKeys();0<b.length&&a.writeString(4,b);return F(a)};
e.getHeader=function(){return M(this,Sw,1)};
e.setHeader=function(a){return yf(this,1,a)};
e.clearHeader=function(){return zf(this,1)};
e.hasHeader=function(){return K(this,1)};
e.getServiceId=function(){return L(this,2)};
e.setServiceId=function(a){return Jf(this,2,a)};
e.getScopesList=function(){return I(this,3)};
e.setScopesList=function(a){uf(this,3,a||[])};
e.addScopes=function(a,b){return Lf(this,3,a,b)};
e.clearScopesList=function(){return xf(this,3)};
e.getConsentLanguageKeys=function(){return L(this,4)};
e.setConsentLanguageKeys=function(a){Jf(this,4,a)};var yua=new ix("/google.internal.identity.accountlinking.v1.AccountLinkingService/LinkByAssertion","unary",cy,bx,function(a){return a.serialize()},ex);var dy=function(a){hf(this,a,0,-1,null,null)};
w(dy,G);e=dy.prototype;e.messageXid="FQ8iRc";e.toObject=function(a){var b,c={header:(b=this.getHeader())&&Tw(a,b),includeGsiOnly:sf(this,2),readOptions:(b=this.getReadOptions())&&Mw(a,b),pageToken:L(this,4),pageSize:rf(this,6),view:qf(this,5,0),returnInvalidated:sf(this,7)};a&&(c.$jspbMessageInstance=this);return c};
e.serializeBinary=function(){var a=new D;var b=this.getHeader();null!=b&&a.writeMessage(1,b,Uw);(b=sf(this,2))&&a.writeBool(2,b);b=this.getReadOptions();null!=b&&a.writeMessage(3,b,Nw);b=L(this,4);0<b.length&&a.writeString(4,b);b=rf(this,6);0!==b&&a.writeInt32(6,b);b=this.getView();0!==b&&a.writeEnum(5,b);(b=this.getReturnInvalidated())&&a.writeBool(7,b);return F(a)};
e.getHeader=function(){return M(this,Sw,1)};
e.setHeader=function(a){return yf(this,1,a)};
e.clearHeader=function(){return zf(this,1)};
e.hasHeader=function(){return K(this,1)};
e.setIncludeGsiOnly=function(a){return If(this,2,a)};
e.getReadOptions=function(){return M(this,Lw,3)};
e.setReadOptions=function(a){return yf(this,3,a)};
e.clearReadOptions=function(){return zf(this,3)};
e.hasReadOptions=function(){return K(this,3)};
e.setPageToken=function(a){return Jf(this,4,a)};
e.setPageSize=function(a){return Hf(this,6,a)};
e.getView=function(){return qf(this,5,0)};
e.setView=function(a){return Kf(this,5,a)};
e.getReturnInvalidated=function(){return sf(this,7)};
e.setReturnInvalidated=function(a){return If(this,7,a)};var ey=function(a){hf(this,a,0,-1,null,null)};
w(ey,G);ey.prototype.messageXid="gcDMjd";ey.prototype.toObject=function(a){return zua(a,this)};
var zua=function(a,b){var c,d={serviceId:L(b,1),serviceDetails:(c=b.getServiceDetails())&&tua(a,c),token:(c=b.getToken())&&$w(a,c),profile:(c=M(b,Ww,4))&&Xw(a,c),link:(c=b.getLink())&&cx(a,c)};a&&(d.$jspbMessageInstance=b);return d};
ey.prototype.serializeBinary=function(){var a=new D;Aua(this,a);return F(a)};
var Aua=function(a,b){var c=a.getServiceId();0<c.length&&b.writeString(1,c);c=a.getServiceDetails();null!=c&&b.writeMessage(2,c,uua);c=a.getToken();null!=c&&b.writeMessage(3,c,ax);c=M(a,Ww,4);null!=c&&b.writeMessage(4,c,Yw);c=a.getLink();null!=c&&b.writeMessage(5,c,dx)};
e=ey.prototype;e.getServiceId=function(){return L(this,1)};
e.setServiceId=function(a){return Jf(this,1,a)};
e.getServiceDetails=function(){return M(this,Zx,2)};
e.setServiceDetails=function(a){return yf(this,2,a)};
e.clearServiceDetails=function(){return zf(this,2)};
e.hasServiceDetails=function(){return K(this,2)};
e.getToken=function(){return M(this,Zw,3)};
e.setToken=function(a){yf(this,3,a)};
e.clearToken=function(){return zf(this,3)};
e.hasToken=function(){return K(this,3)};
e.getProfile=function(){return M(this,Ww,4)};
e.setProfile=function(a){return yf(this,4,a)};
e.clearProfile=function(){return zf(this,4)};
e.hasProfile=function(){return K(this,4)};
e.getLink=function(){return M(this,bx,5)};
e.setLink=function(a){return yf(this,5,a)};
e.clearLink=function(){return zf(this,5)};
e.hasLink=function(){return K(this,5)};var fy=function(a){hf(this,a,0,-1,Bua,null)};
w(fy,G);var Bua=[1];e=fy.prototype;e.messageXid="AYeCBb";e.toObject=function(a){var b={detailsList:jf(this.getDetailsList(),zua,a),nextPageToken:L(this,2)};a&&(b.$jspbMessageInstance=this);return b};
e.serializeBinary=function(){var a=new D;var b=this.getDetailsList();0<b.length&&We(a,1,b,Aua);b=L(this,2);0<b.length&&a.writeString(2,b);return F(a)};
e.getDetailsList=function(){return Mf(this,ey,1)};
e.setDetailsList=function(a){return Af(this,1,a)};
e.addDetails=function(a,b){return Nf(this,1,a,ey,b)};
e.clearDetailsList=function(){return Bf(this,1)};
e.setNextPageToken=function(a){return Jf(this,2,a)};var Cua=new ix("/google.internal.identity.accountlinking.v1.AccountLinkingService/ListLinkDetails","unary",dy,fy,function(a){return a.serialize()},function(a){return Of(fy,a)});var gy=function(a){hf(this,a,0,-1,null,null)};
w(gy,G);e=gy.prototype;e.toObject=function(a){var b={tokenLookupId:L(this,1),accessToken:L(this,2),httpStatusCode:rf(this,3),thirdPartyErrorMessage:L(this,4)};a&&(b.$jspbMessageInstance=this);return b};
e.serializeBinary=function(){var a=new D;var b=L(this,1);0<b.length&&a.writeString(1,b);b=L(this,2);0<b.length&&a.writeString(2,b);b=rf(this,3);0!==b&&a.writeInt32(3,b);b=L(this,4);0<b.length&&a.writeString(4,b);return F(a)};
e.setTokenLookupId=function(a){return Jf(this,1,a)};
e.setAccessToken=function(a){return Jf(this,2,a)};
e.setHttpStatusCode=function(a){return Hf(this,3,a)};
e.setThirdPartyErrorMessage=function(a){return Jf(this,4,a)};var hy=function(a){hf(this,a,0,-1,null,null)};
w(hy,G);hy.prototype.toObject=function(a){var b={accessTokenStateChange:qf(this,1,0),errorHandlingAction:qf(this,2,0)};a&&(b.$jspbMessageInstance=this);return b};
hy.prototype.serializeBinary=function(){var a=new D;var b=qf(this,1,0);0!==b&&a.writeEnum(1,b);b=qf(this,2,0);0!==b&&a.writeEnum(2,b);return F(a)};
hy.prototype.setAccessTokenStateChange=function(a){return Kf(this,1,a)};
hy.prototype.setErrorHandlingAction=function(a){return Kf(this,2,a)};var Dua=new ix("/google.internal.identity.accountlinking.v1.AccountLinkingService/ReportLinkError","unary",gy,hy,function(a){return a.serialize()},function(a){return Of(hy,a)});var iy=function(a){hf(this,a,0,-1,null,null)};
w(iy,G);iy.prototype.toObject=function(a){return jy(a,this)};
var jy=function(a,b){var c,d={method:qf(b,1,0),url:L(b,2),body:L(b,3),headersMap:(c=vf(b,4,void 0,null))?c.toObject(a,void 0):[]};a&&(d.$jspbMessageInstance=b);return d};
iy.prototype.serializeBinary=function(){var a=new D;ky(this,a);return F(a)};
var ky=function(a,b){var c=a.getMethod();0!==c&&b.writeEnum(1,c);c=a.getUrl();0<c.length&&b.writeString(2,c);c=a.getBody();0<c.length&&b.writeString(3,c);(c=vf(a,4,!0,null))&&0<c.getLength()&&c.serializeBinary(4,b,D.prototype.writeString,D.prototype.writeString)};
e=iy.prototype;e.getMethod=function(){return qf(this,1,0)};
e.setMethod=function(a){return Kf(this,1,a)};
e.getUrl=function(){return L(this,2)};
e.setUrl=function(a){return Jf(this,2,a)};
e.getBody=function(){return L(this,3)};
e.setBody=function(a){return Jf(this,3,a)};
e.clearHeadersMap=function(){vf(this,4,void 0,null).clear();return this};var ly=function(a){hf(this,a,0,-1,null,null)};
w(ly,G);ly.prototype.toObject=function(a){return Eua(a,this)};
var Eua=function(a,b){var c={key:L(b,1),value:L(b,2)};a&&(c.$jspbMessageInstance=b);return c};
ly.prototype.serializeBinary=function(){var a=new D;Fua(this,a);return F(a)};
var Fua=function(a,b){var c=a.getKey();0<c.length&&b.writeString(1,c);c=a.getValue();0<c.length&&b.writeString(2,c)};
ly.prototype.getKey=function(){return L(this,1)};
ly.prototype.setKey=function(a){return Jf(this,1,a)};
ly.prototype.getValue=function(){return L(this,2)};
ly.prototype.setValue=function(a){return Jf(this,2,a)};var my=function(a){hf(this,a,0,-1,Gua,null)};
w(my,G);var Gua=[3];my.prototype.toObject=function(a){return ny(a,this)};
var ny=function(a,b){var c={method:L(b,1),uri:L(b,2),headersList:jf(Mf(b,ly,3),Eua,a),body:of(b.getBody())};a&&(c.$jspbMessageInstance=b);return c};
my.prototype.serializeBinary=function(){var a=new D;oy(this,a);return F(a)};
var oy=function(a,b){var c=a.getMethod();0<c.length&&b.writeString(1,c);c=a.getUri();0<c.length&&b.writeString(2,c);c=Mf(a,ly,3);0<c.length&&We(b,3,c,Fua);c=pf(a.getBody());0<c.length&&b.writeBytes(4,c)};
e=my.prototype;e.getMethod=function(){return L(this,1)};
e.setMethod=function(a){return Jf(this,1,a)};
e.getUri=function(){return L(this,2)};
e.setUri=function(a){return Jf(this,2,a)};
e.setHeadersList=function(a){return Af(this,3,a)};
e.addHeaders=function(a,b){return Nf(this,3,a,ly,b)};
e.clearHeadersList=function(){return Bf(this,3)};
e.getBody=function(){return L(this,4)};
e.setBody=function(a){return Gf(this,4,a,"")};var py=function(a){hf(this,a,0,-1,null,null)};
w(py,G);e=py.prototype;e.toObject=function(a){var b,c={header:(b=this.getHeader())&&Tw(a,b),query:(b=this.getQuery())&&Jw(a,b),httpRequest:(b=this.getHttpRequest())&&jy(a,b),readOptions:(b=this.getReadOptions())&&Mw(a,b),homeGraphAcl:(b=this.getHomeGraphAcl())&&Gw(a,b),providerErrorHandling:(b=this.getProviderErrorHandling())&&tx(a,b),request:(b=this.getRequest())&&ny(a,b)};a&&(c.$jspbMessageInstance=this);return c};
e.serializeBinary=function(){var a=new D;var b=this.getHeader();null!=b&&a.writeMessage(1,b,Uw);b=this.getQuery();null!=b&&a.writeMessage(2,b,Kw);b=this.getHttpRequest();null!=b&&a.writeMessage(3,b,ky);b=this.getReadOptions();null!=b&&a.writeMessage(4,b,Nw);b=this.getHomeGraphAcl();null!=b&&a.writeMessage(5,b,Hw);b=this.getProviderErrorHandling();null!=b&&a.writeMessage(6,b,ux);b=this.getRequest();null!=b&&a.writeMessage(7,b,oy);return F(a)};
e.getHeader=function(){return M(this,Sw,1)};
e.setHeader=function(a){return yf(this,1,a)};
e.clearHeader=function(){return zf(this,1)};
e.hasHeader=function(){return K(this,1)};
e.getQuery=function(){return M(this,Iw,2)};
e.setQuery=function(a){return yf(this,2,a)};
e.clearQuery=function(){return zf(this,2)};
e.hasQuery=function(){return K(this,2)};
e.getHttpRequest=function(){return M(this,iy,3)};
e.setHttpRequest=function(a){return yf(this,3,a)};
e.clearHttpRequest=function(){return zf(this,3)};
e.hasHttpRequest=function(){return K(this,3)};
e.getReadOptions=function(){return M(this,Lw,4)};
e.setReadOptions=function(a){return yf(this,4,a)};
e.clearReadOptions=function(){return zf(this,4)};
e.hasReadOptions=function(){return K(this,4)};
e.getHomeGraphAcl=function(){return M(this,Fw,5)};
e.setHomeGraphAcl=function(a){return yf(this,5,a)};
e.clearHomeGraphAcl=function(){return zf(this,5)};
e.hasHomeGraphAcl=function(){return K(this,5)};
e.getProviderErrorHandling=function(){return M(this,sx,6)};
e.setProviderErrorHandling=function(a){return yf(this,6,a)};
e.clearProviderErrorHandling=function(){return zf(this,6)};
e.hasProviderErrorHandling=function(){return K(this,6)};
e.getRequest=function(){return M(this,my,7)};
e.setRequest=function(a){return yf(this,7,a)};
e.clearRequest=function(){return zf(this,7)};
e.hasRequest=function(){return K(this,7)};var qy=function(a){hf(this,a,0,-1,null,null)};
w(qy,G);e=qy.prototype;e.toObject=function(a){var b,c={httpRequest:(b=this.getHttpRequest())&&jy(a,b),request:(b=this.getRequest())&&ny(a,b),deviceId:L(this,3)};a&&(c.$jspbMessageInstance=this);return c};
e.serializeBinary=function(){var a=new D;var b=this.getHttpRequest();null!=b&&a.writeMessage(1,b,ky);b=this.getRequest();null!=b&&a.writeMessage(2,b,oy);b=this.getDeviceId();0<b.length&&a.writeString(3,b);return F(a)};
e.getHttpRequest=function(){return M(this,iy,1)};
e.setHttpRequest=function(a){return yf(this,1,a)};
e.clearHttpRequest=function(){return zf(this,1)};
e.hasHttpRequest=function(){return K(this,1)};
e.getRequest=function(){return M(this,my,2)};
e.setRequest=function(a){return yf(this,2,a)};
e.clearRequest=function(){return zf(this,2)};
e.hasRequest=function(){return K(this,2)};
e.getDeviceId=function(){return L(this,3)};
e.setDeviceId=function(a){return Jf(this,3,a)};var Hua=new ix("/google.internal.identity.accountlinking.v1.AccountLinkingService/SignForLink","unary",py,qy,function(a){return a.serialize()},function(a){return Of(qy,a)});var ry=function(a){hf(this,a,0,-1,Iua,null)};
w(ry,G);var Iua=[5];ry.prototype.toObject=function(a){return Jua(a,this)};
var Jua=function(a,b){var c,d={appPackageName:null==(c=I(b,1))?void 0:c,appSignature:null==(c=I(b,2))?void 0:c,appFlipIntent:null==(c=I(b,3))?void 0:c,redirectUri:null==(c=I(b,4))?void 0:c,scopesList:null==(c=I(b,5))?void 0:c};a&&(d.$jspbMessageInstance=b);return d};
ry.prototype.serializeBinary=function(){var a=new D;Kua(this,a);return F(a)};
var Kua=function(a,b){var c=I(a,1);null!=c&&b.writeString(1,c);c=I(a,2);null!=c&&b.writeString(2,c);c=I(a,3);null!=c&&b.writeString(3,c);c=I(a,4);null!=c&&b.writeString(4,c);c=a.getScopesList();0<c.length&&Ve(b,5,c)};
e=ry.prototype;e.getAppPackageName=function(){return I(this,1)};
e.setAppPackageName=function(a){return uf(this,1,a)};
e.clearAppPackageName=function(){return wf(this,1)};
e.hasAppPackageName=function(){return K(this,1)};
e.getAppSignature=function(){return I(this,2)};
e.setAppSignature=function(a){return uf(this,2,a)};
e.clearAppSignature=function(){return wf(this,2)};
e.hasAppSignature=function(){return K(this,2)};
e.getAppFlipIntent=function(){return I(this,3)};
e.setAppFlipIntent=function(a){return uf(this,3,a)};
e.clearAppFlipIntent=function(){return wf(this,3)};
e.hasAppFlipIntent=function(){return K(this,3)};
e.getRedirectUri=function(){return I(this,4)};
e.setRedirectUri=function(a){return uf(this,4,a)};
e.clearRedirectUri=function(){return wf(this,4)};
e.hasRedirectUri=function(){return K(this,4)};
e.getScopesList=function(){return I(this,5)};
e.setScopesList=function(a){uf(this,5,a||[])};
e.addScopes=function(a,b){return Lf(this,5,a,b)};
e.clearScopesList=function(){return xf(this,5)};var sy=function(a){hf(this,a,0,-1,null,null)};
w(sy,G);sy.prototype.toObject=function(a){return Lua(a,this)};
var Lua=function(a,b){var c,d={universalLink:null==(c=I(b,1))?void 0:c};a&&(d.$jspbMessageInstance=b);return d};
sy.prototype.serializeBinary=function(){var a=new D;Mua(this,a);return F(a)};
var Mua=function(a,b){a=I(a,1);null!=a&&b.writeString(1,a)};
sy.prototype.getUniversalLink=function(){return I(this,1)};
sy.prototype.setUniversalLink=function(a){return uf(this,1,a)};
sy.prototype.clearUniversalLink=function(){return wf(this,1)};
sy.prototype.hasUniversalLink=function(){return K(this,1)};var ty=function(a){hf(this,a,0,-1,Nua,null)};
w(ty,G);var Nua=[1,2];ty.prototype.toObject=function(a){return Oua(a,this)};
var Oua=function(a,b){var c={androidAppFlipList:jf(Mf(b,ry,1),Jua,a),iosAppFlipList:jf(Mf(b,sy,2),Lua,a)};a&&(c.$jspbMessageInstance=b);return c};
ty.prototype.serializeBinary=function(){var a=new D;Pua(this,a);return F(a)};
var Pua=function(a,b){var c=Mf(a,ry,1);0<c.length&&We(b,1,c,Kua);c=Mf(a,sy,2);0<c.length&&We(b,2,c,Mua)};
e=ty.prototype;e.setAndroidAppFlipList=function(a){return Af(this,1,a)};
e.addAndroidAppFlip=function(a,b){return Nf(this,1,a,ry,b)};
e.clearAndroidAppFlipList=function(){return Bf(this,1)};
e.setIosAppFlipList=function(a){return Af(this,2,a)};
e.addIosAppFlip=function(a,b){return Nf(this,2,a,sy,b)};
e.clearIosAppFlipList=function(){return Bf(this,2)};var uy=function(a){hf(this,a,0,-1,null,null)};
w(uy,G);uy.prototype.toObject=function(a){return vy(a,this)};
var vy=function(a,b){var c,d={privateDoNotAccessOrElseSafeUrlWrappedValue:null==(c=I(b,3))?void 0:c};a&&(d.$jspbMessageInstance=b);return d};
uy.prototype.serializeBinary=function(){var a=new D;wy(this,a);return F(a)};
var wy=function(a,b){a=I(a,3);null!=a&&b.writeString(3,a)};
uy.prototype.getPrivateDoNotAccessOrElseSafeUrlWrappedValue=function(){return I(this,3)};
uy.prototype.setPrivateDoNotAccessOrElseSafeUrlWrappedValue=function(a){return uf(this,3,a)};
uy.prototype.clearPrivateDoNotAccessOrElseSafeUrlWrappedValue=function(){return wf(this,3)};
uy.prototype.hasPrivateDoNotAccessOrElseSafeUrlWrappedValue=function(){return K(this,3)};var xy=function(a){hf(this,a,0,-1,null,null)};
w(xy,G);var yy=function(a){hf(this,a,0,-1,null,null)};
w(yy,G);var zy=function(a){hf(this,a,0,-1,null,null)};
w(zy,G);var Ay=function(a){hf(this,a,0,-1,null,null)};
w(Ay,G);var By=function(a){hf(this,a,0,-1,null,null)};
w(By,G);var Cy=function(a){hf(this,a,0,-1,Qua,null)};
w(Cy,G);var Ey=function(a){hf(this,a,0,-1,null,Dy)};
w(Ey,G);var Fy=function(a){hf(this,a,0,-1,null,null)};
w(Fy,G);var Gy=function(a){hf(this,a,0,-1,Rua,null)};
w(Gy,G);xy.prototype.toObject=function(a){var b,c={oauthDetails:(b=this.getOauthDetails())&&Sua(a,b),gsiLinkingFlowDetails:(b=M(this,zy,2))&&Tua(a,b),gsiCreationFlowDetails:(b=M(this,Ay,3))&&Uua(a,b),gsiWebFlowDetails:(b=M(this,By,6))&&Vua(a,b),appFlipDetails:(b=M(this,Cy,4))&&Wua(a,b),dataUsageNoticeDetails:(b=M(this,Gy,7))&&Xua(a,b),uiResourcesMap:(b=vf(this,5,void 0,Ey))?b.toObject(a,Yua):[]};a&&(c.$jspbMessageInstance=this);return c};
xy.prototype.serializeBinary=function(){var a=new D;var b=this.getOauthDetails();null!=b&&a.writeMessage(1,b,Zua);b=M(this,zy,2);null!=b&&a.writeMessage(2,b,$ua);b=M(this,Ay,3);null!=b&&a.writeMessage(3,b,ava);b=M(this,By,6);null!=b&&a.writeMessage(6,b,bva);b=M(this,Cy,4);null!=b&&a.writeMessage(4,b,cva);b=M(this,Gy,7);null!=b&&a.writeMessage(7,b,dva);(b=vf(this,5,!0,Ey))&&0<b.getLength()&&b.serializeBinary(5,a,D.prototype.writeString,D.prototype.writeMessage,eva);return F(a)};
yy.prototype.toObject=function(a){return Sua(a,this)};
var Sua=function(a,b){var c={authorizationUrl:L(b,1)};a&&(c.$jspbMessageInstance=b);return c};
yy.prototype.serializeBinary=function(){var a=new D;Zua(this,a);return F(a)};
var Zua=function(a,b){a=L(a,1);0<a.length&&b.writeString(1,a)};
yy.prototype.getAuthorizationUrl=function(){return L(this,1)};
yy.prototype.setAuthorizationUrl=function(a){return Jf(this,1,a)};
zy.prototype.toObject=function(a){return Tua(a,this)};
var Tua=function(a,b){var c={consentUrl:L(b,1)};a&&(c.$jspbMessageInstance=b);return c};
zy.prototype.serializeBinary=function(){var a=new D;$ua(this,a);return F(a)};
var $ua=function(a,b){a=L(a,1);0<a.length&&b.writeString(1,a)};
zy.prototype.setConsentUrl=function(a){return Jf(this,1,a)};
Ay.prototype.toObject=function(a){return Uua(a,this)};
var Uua=function(a,b){var c={consentUrl:L(b,1)};a&&(c.$jspbMessageInstance=b);return c};
Ay.prototype.serializeBinary=function(){var a=new D;ava(this,a);return F(a)};
var ava=function(a,b){a=L(a,1);0<a.length&&b.writeString(1,a)};
Ay.prototype.getConsentUrl=function(){return L(this,1)};
Ay.prototype.setConsentUrl=function(a){return Jf(this,1,a)};
By.prototype.toObject=function(a){return Vua(a,this)};
var Vua=function(a,b){var c={flowUrl:L(b,1)};a&&(c.$jspbMessageInstance=b);return c};
By.prototype.serializeBinary=function(){var a=new D;bva(this,a);return F(a)};
var bva=function(a,b){a=L(a,1);0<a.length&&b.writeString(1,a)};
By.prototype.setFlowUrl=function(a){return Jf(this,1,a)};
var Qua=[2];Cy.prototype.toObject=function(a){return Wua(a,this)};
var Wua=function(a,b){var c,d={appFlipConfig:(c=M(b,ty,1))&&Oua(a,c),thirdPartyOauthClientId:L(b,3),scopesList:null==(c=I(b,2))?void 0:c};a&&(d.$jspbMessageInstance=b);return d};
Cy.prototype.serializeBinary=function(){var a=new D;cva(this,a);return F(a)};
var cva=function(a,b){var c=M(a,ty,1);null!=c&&b.writeMessage(1,c,Pua);c=a.getThirdPartyOauthClientId();0<c.length&&b.writeString(3,c);c=a.getScopesList();0<c.length&&Ve(b,2,c)};
e=Cy.prototype;e.setAppFlipConfig=function(a){return yf(this,1,a)};
e.clearAppFlipConfig=function(){return zf(this,1)};
e.hasAppFlipConfig=function(){return K(this,1)};
e.getThirdPartyOauthClientId=function(){return L(this,3)};
e.setThirdPartyOauthClientId=function(a){return Jf(this,3,a)};
e.getScopesList=function(){return I(this,2)};
e.setScopesList=function(a){uf(this,2,a||[])};
e.addScopes=function(a,b){return Lf(this,2,a,b)};
e.clearScopesList=function(){return xf(this,2)};
var Dy=[[1,2,3]];Ey.prototype.getResourceCase=function(){return gf(this,Dy[0])};
Ey.prototype.toObject=function(a){return Yua(a,this)};
var Yua=function(a,b){var c,d={html:(c=b.getHtml())&&Ex(a,c),image:(c=M(b,uy,2))&&vy(a,c),link:(c=b.getLink())&&vy(a,c)};a&&(d.$jspbMessageInstance=b);return d};
Ey.prototype.serializeBinary=function(){var a=new D;eva(this,a);return F(a)};
var eva=function(a,b){var c=a.getHtml();null!=c&&b.writeMessage(1,c,Fx);c=M(a,uy,2);null!=c&&b.writeMessage(2,c,wy);c=a.getLink();null!=c&&b.writeMessage(3,c,wy)};
e=Ey.prototype;e.getHtml=function(){return M(this,Dx,1)};
e.setHtml=function(a){return Ef(this,1,Dy[0],a)};
e.clearHtml=function(){return Ff(this,1,Dy[0])};
e.hasHtml=function(){return K(this,1)};
e.setImage=function(a){return Ef(this,2,Dy[0],a)};
e.clearImage=function(){return Ff(this,2,Dy[0])};
e.hasImage=function(){return K(this,2)};
e.getLink=function(){return M(this,uy,3)};
e.setLink=function(a){return Ef(this,3,Dy[0],a)};
e.clearLink=function(){return Ff(this,3,Dy[0])};
e.hasLink=function(){return K(this,3)};
Fy.prototype.toObject=function(a){return fva(a,this)};
var fva=function(a,b){var c={type:qf(b,1,0),url:L(b,2)};a&&(c.$jspbMessageInstance=b);return c};
Fy.prototype.serializeBinary=function(){var a=new D;gva(this,a);return F(a)};
var gva=function(a,b){var c=a.getType();0!==c&&b.writeEnum(1,c);c=a.getUrl();0<c.length&&b.writeString(2,c)};
Fy.prototype.getType=function(){return qf(this,1,0)};
Fy.prototype.setType=function(a){return Kf(this,1,a)};
Fy.prototype.getUrl=function(){return L(this,2)};
Fy.prototype.setUrl=function(a){return Jf(this,2,a)};
var Rua=[1];Gy.prototype.toObject=function(a){return Xua(a,this)};
var Xua=function(a,b){var c={dataUsageNoticeUrlsList:jf(Mf(b,Fy,1),fva,a)};a&&(c.$jspbMessageInstance=b);return c};
Gy.prototype.serializeBinary=function(){var a=new D;dva(this,a);return F(a)};
var dva=function(a,b){a=Mf(a,Fy,1);0<a.length&&We(b,1,a,gva)};
Gy.prototype.setDataUsageNoticeUrlsList=function(a){return Af(this,1,a)};
Gy.prototype.addDataUsageNoticeUrls=function(a,b){return Nf(this,1,a,Fy,b)};
Gy.prototype.clearDataUsageNoticeUrlsList=function(){return Bf(this,1)};
e=xy.prototype;e.getOauthDetails=function(){return M(this,yy,1)};
e.setOauthDetails=function(a){return yf(this,1,a)};
e.clearOauthDetails=function(){return zf(this,1)};
e.hasOauthDetails=function(){return K(this,1)};
e.setGsiLinkingFlowDetails=function(a){return yf(this,2,a)};
e.clearGsiLinkingFlowDetails=function(){return zf(this,2)};
e.setGsiCreationFlowDetails=function(a){return yf(this,3,a)};
e.clearGsiCreationFlowDetails=function(){return zf(this,3)};
e.setGsiWebFlowDetails=function(a){return yf(this,6,a)};
e.clearGsiWebFlowDetails=function(){return zf(this,6)};
e.setAppFlipDetails=function(a){return yf(this,4,a)};
e.clearAppFlipDetails=function(){return zf(this,4)};
e.setDataUsageNoticeDetails=function(a){return yf(this,7,a)};
e.clearDataUsageNoticeDetails=function(){return zf(this,7)};
e.hasDataUsageNoticeDetails=function(){return K(this,7)};
e.clearUiResourcesMap=function(){vf(this,5,void 0,Ey).clear();return this};
var hva=function(a){return Of(xy,a)};var Hy=function(a){hf(this,a,0,-1,iva,null)};
w(Hy,G);var iva=[3,5,4];e=Hy.prototype;
e.toObject=function(a){var b,c={header:(b=this.getHeader())&&Tw(a,b),serviceId:L(this,2),scopesList:null==(b=I(this,3))?void 0:b,capabilitiesList:null==(b=I(this,5))?void 0:b,supportedFlowsList:null==(b=I(this,4))?void 0:b,completionUrl:L(this,6),twoWayLinking:sf(this,8),entryPoint:qf(this,9,0),ariAuditToken:(b=this.getAriAuditToken())&&Tx(a,b),deviceId:L(this,11),callerState:of(L(this,12)),loginHint:L(this,13),linkName:L(this,14),usePingPong:sf(this,15)};a&&(c.$jspbMessageInstance=this);return c};
e.serializeBinary=function(){var a=new D;var b=this.getHeader();null!=b&&a.writeMessage(1,b,Uw);b=this.getServiceId();0<b.length&&a.writeString(2,b);b=this.getScopesList();0<b.length&&Ve(a,3,b);b=this.getCapabilitiesList();0<b.length&&Ve(a,5,b);b=this.getSupportedFlowsList();0<b.length&&Xe(a,4,b);b=this.getCompletionUrl();0<b.length&&a.writeString(6,b);(b=sf(this,8))&&a.writeBool(8,b);b=this.getEntryPoint();0!==b&&a.writeEnum(9,b);b=this.getAriAuditToken();null!=b&&a.writeMessage(10,b,Ux);b=this.getDeviceId();
0<b.length&&a.writeString(11,b);b=pf(L(this,12));0<b.length&&a.writeBytes(12,b);b=L(this,13);0<b.length&&a.writeString(13,b);b=this.getLinkName();0<b.length&&a.writeString(14,b);(b=sf(this,15))&&a.writeBool(15,b);return F(a)};
e.getHeader=function(){return M(this,Sw,1)};
e.setHeader=function(a){return yf(this,1,a)};
e.clearHeader=function(){return zf(this,1)};
e.hasHeader=function(){return K(this,1)};
e.getServiceId=function(){return L(this,2)};
e.setServiceId=function(a){return Jf(this,2,a)};
e.getScopesList=function(){return I(this,3)};
e.setScopesList=function(a){uf(this,3,a||[])};
e.addScopes=function(a,b){return Lf(this,3,a,b)};
e.clearScopesList=function(){return xf(this,3)};
e.getCapabilitiesList=function(){return I(this,5)};
e.setCapabilitiesList=function(a){uf(this,5,a||[])};
e.addCapabilities=function(a,b){return Lf(this,5,a,b)};
e.clearCapabilitiesList=function(){return xf(this,5)};
e.getSupportedFlowsList=function(){return I(this,4)};
e.setSupportedFlowsList=function(a){uf(this,4,a||[])};
e.addSupportedFlows=function(a,b){return Lf(this,4,a,b)};
e.clearSupportedFlowsList=function(){return xf(this,4)};
e.getCompletionUrl=function(){return L(this,6)};
e.setCompletionUrl=function(a){Jf(this,6,a)};
e.getEntryPoint=function(){return qf(this,9,0)};
e.setEntryPoint=function(a){return Kf(this,9,a)};
e.getAriAuditToken=function(){return M(this,Sx,10)};
e.setAriAuditToken=function(a){return yf(this,10,a)};
e.clearAriAuditToken=function(){return zf(this,10)};
e.hasAriAuditToken=function(){return K(this,10)};
e.getDeviceId=function(){return L(this,11)};
e.setDeviceId=function(a){return Jf(this,11,a)};
e.setCallerState=function(a){return Gf(this,12,a,"")};
e.setLoginHint=function(a){return Jf(this,13,a)};
e.getLinkName=function(){return L(this,14)};
e.setLinkName=function(a){return Jf(this,14,a)};
e.setUsePingPong=function(a){return If(this,15,a)};var jva=new ix("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession","unary",Hy,xy,function(a){return a.serialize()},hva);var Iy=function(a){hf(this,a,0,-1,null,null)};
w(Iy,G);e=Iy.prototype;e.toObject=function(a){var b,c={header:(b=this.getHeader())&&Tw(a,b),query:(b=this.getQuery())&&Jw(a,b),readOptions:(b=this.getReadOptions())&&Mw(a,b),homeGraphAcl:(b=this.getHomeGraphAcl())&&Gw(a,b),providerErrorHandling:(b=this.getProviderErrorHandling())&&tx(a,b)};a&&(c.$jspbMessageInstance=this);return c};
e.serializeBinary=function(){var a=new D;var b=this.getHeader();null!=b&&a.writeMessage(1,b,Uw);b=this.getQuery();null!=b&&a.writeMessage(2,b,Kw);b=this.getReadOptions();null!=b&&a.writeMessage(3,b,Nw);b=this.getHomeGraphAcl();null!=b&&a.writeMessage(4,b,Hw);b=this.getProviderErrorHandling();null!=b&&a.writeMessage(5,b,ux);return F(a)};
e.getHeader=function(){return M(this,Sw,1)};
e.setHeader=function(a){return yf(this,1,a)};
e.clearHeader=function(){return zf(this,1)};
e.hasHeader=function(){return K(this,1)};
e.getQuery=function(){return M(this,Iw,2)};
e.setQuery=function(a){return yf(this,2,a)};
e.clearQuery=function(){return zf(this,2)};
e.hasQuery=function(){return K(this,2)};
e.getReadOptions=function(){return M(this,Lw,3)};
e.setReadOptions=function(a){return yf(this,3,a)};
e.clearReadOptions=function(){return zf(this,3)};
e.hasReadOptions=function(){return K(this,3)};
e.getHomeGraphAcl=function(){return M(this,Fw,4)};
e.setHomeGraphAcl=function(a){return yf(this,4,a)};
e.clearHomeGraphAcl=function(){return zf(this,4)};
e.hasHomeGraphAcl=function(){return K(this,4)};
e.getProviderErrorHandling=function(){return M(this,sx,5)};
e.setProviderErrorHandling=function(a){return yf(this,5,a)};
e.clearProviderErrorHandling=function(){return zf(this,5)};
e.hasProviderErrorHandling=function(){return K(this,5)};var kva=new ix("/google.internal.identity.accountlinking.v1.AccountLinkingService/StrongCheckLink","unary",Iy,bx,function(a){return a.serialize()},ex);var Jy=function(a){hf(this,a,0,-1,null,null)};
w(Jy,G);Jy.prototype.toObject=function(a){return lva(a,this)};
var lva=function(a,b){var c={typeUrl:L(b,1),value:of(b.getValue())};a&&(c.$jspbMessageInstance=b);return c};
Jy.prototype.serializeBinary=function(){var a=new D;mva(this,a);return F(a)};
var mva=function(a,b){var c=L(a,1);0<c.length&&b.writeString(1,c);c=pf(a.getValue());0<c.length&&b.writeBytes(2,c)};
e=Jy.prototype;e.getValue=function(){return L(this,2)};
e.setValue=function(a){return Gf(this,2,a,"")};
e.getTypeName=function(){return L(this,1).split("/").pop()};
e.pack=function(a,b,c){c||(c="type.googleapis.com/");"/"!=c.substr(-1)?Jf(this,1,c+"/"+b):Jf(this,1,c+b);this.setValue(a)};
e.packJspb=function(a,b,c){c||(c="type.googleapis.com/");"/"!=c.substr(-1)?Jf(this,1,c+"/"+b):Jf(this,1,c+b);uf(this,2,a.toArray())};
e.unpack=function(a,b){return this.getTypeName()==b?a(pf(this.getValue())):null};
e.unpackJspbCompat=function(a,b,c){return this.getTypeName()==c?(c=I(this,2),Array.isArray(c)?new a(c):b(pf(this.getValue()))):null};
e.unpackJspb=function(a,b){return this.getTypeName()==b?(b=qf(this,2,[]),new a(b)):null};var Ky=function(a){hf(this,a,0,-1,nva,null)};
w(Ky,G);var nva=[3];e=Ky.prototype;e.toObject=function(a){var b={code:rf(this,1),message:L(this,2),detailsList:jf(this.getDetailsList(),lva,a)};a&&(b.$jspbMessageInstance=this);return b};
e.serializeBinary=function(){var a=new D;var b=this.getCode();0!==b&&a.writeInt32(1,b);b=this.getMessage();0<b.length&&a.writeString(2,b);b=this.getDetailsList();0<b.length&&We(a,3,b,mva);return F(a)};
e.getCode=function(){return rf(this,1)};
e.setCode=function(a){Hf(this,1,a)};
e.getMessage=function(){return L(this,2)};
e.setMessage=function(a){Jf(this,2,a)};
e.getDetailsList=function(){return Mf(this,Jy,3)};
e.setDetailsList=function(a){return Af(this,3,a)};
e.addDetails=function(a,b){return Nf(this,3,a,Jy,b)};
e.clearDetailsList=function(){return Bf(this,3)};var Ly=function(a,b,c,d){return d instanceof ix?d:new ix(a,c,d.requestType||b.constructor,d.responseType,d.requestSerializeFn,d.responseDeserializeFn)};var My=function(a){this.stream=a};
My.prototype.on=function(a,b){return"data"==a||"error"==a?this:this.stream.on(a,b)};
My.prototype.removeListener=function(a,b){return this.stream.removeListener(a,b)};
My.prototype.cancel=function(){this.stream.cancel()};var ova=Promise;var pva=function(a){switch(a){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2;}};var Ny=function(a,b){this.xhrNodeReadableStream_=a.nodeReadableStream;this.grpcResponseDeserializeFn_=b;this.xhr_=a.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.onErrorCallbacks_=[];this.rpcStatusParseFn_=null;this.xhrNodeReadableStream_&&qva(this)},uva=function(a,b){ti(a.xhr_,"complete",function(){if(a.xhr_.isSuccess()){var c=a.xhr_.getResponseText();
if(b&&"text/plain"===a.xhr_.getResponseHeader("Content-Type")){if(!atob)throw Error("Cannot decode Base64 response");c=atob(c)}var d=a.grpcResponseDeserializeFn_(c),f=pva(a.xhr_.getStatus());0==f?(rva(a,sva(a)),tva(a,d)):Oy(a,{code:f,message:c})}else c=a.xhr_.getResponseText(),f={},c?(f=a.rpcStatusParseFn_(c,a.xhr_),c=f.code,d=f.details,f=f.metadata):(c=2,d="Rpc failed due to xhr error. error code: "+a.xhr_.lastErrorCode_+", error: "+a.xhr_.getLastError()),Oy(a,{code:c,message:d,metadata:f})})},qva=
function(a){a.xhrNodeReadableStream_.on("data",function(b){if("1"in b){var c=a.grpcResponseDeserializeFn_(b["1"]);
tva(a,c)}if("2"in b)for(b=a.rpcStatusParseFn_(b["2"]),c=0;c<a.onStatusCallbacks_.length;c++)a.onStatusCallbacks_[c](b)});
a.xhrNodeReadableStream_.on("end",function(){rva(a,sva(a));for(var b=0;b<a.onEndCallbacks_.length;b++)a.onEndCallbacks_[b]()});
a.xhrNodeReadableStream_.on("error",function(){if(0!=a.onErrorCallbacks_.length){var b=a.xhr_.lastErrorCode_;0!==b||a.xhr_.isSuccess()||(b=6);switch(b){case 0:var c=2;break;case 7:c=10;break;case 8:c=4;break;case 6:c=pva(a.xhr_.getStatus());break;default:c=14;}Oy(a,{code:c,message:Xna(b)})}})},sva=function(a){var b={},c=a.xhr_.getResponseHeaders();
Object.keys(c).forEach(function(d){b[d]=c[d]});
return b};
Ny.prototype.on=function(a,b){"data"==a?this.onDataCallbacks_.push(b):"metadata"==a?this.onMetadataCallbacks_.push(b):"status"==a?this.onStatusCallbacks_.push(b):"end"==a?this.onEndCallbacks_.push(b):"error"==a&&this.onErrorCallbacks_.push(b);return this};
var Py=function(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)};
Ny.prototype.removeListener=function(a,b){"data"==a?Py(this.onDataCallbacks_,b):"metadata"==a?Py(this.onMetadataCallbacks_,b):"status"==a?Py(this.onStatusCallbacks_,b):"end"==a?Py(this.onEndCallbacks_,b):"error"==a&&Py(this.onErrorCallbacks_,b);return this};
Ny.prototype.setResponseDeserializeFn=function(a){this.grpcResponseDeserializeFn_=a};
Ny.prototype.cancel=function(){this.xhr_.abort()};
var tva=function(a,b){for(var c=0;c<a.onDataCallbacks_.length;c++)a.onDataCallbacks_[c](b)},rva=function(a,b){for(var c=0;c<a.onMetadataCallbacks_.length;c++)a.onMetadataCallbacks_[c](b)},Oy=function(a,b){for(var c=0;c<a.onErrorCallbacks_.length;c++)a.onErrorCallbacks_[c](b)};
Ny.prototype.cancel=Ny.prototype.cancel;Ny.prototype.removeListener=Ny.prototype.removeListener;Ny.prototype.on=Ny.prototype.on;var vva=function(a){var b="";A.forEach(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});
return b},Qy=function(a,b,c){if(A.isEmpty(c))return a;
c=vva(c);if("string"===typeof a)return Jd(a,zc(b),c);$q(a,b,c);return a};var Ry=function(){this.isInputValid_=!0;this.streamPos_=0;this.leftoverInput_=""};
Ry.prototype.isInputValid=function(){return this.isInputValid_};
Ry.prototype.error_=function(a,b){this.isInputValid_=!1;throw Error("The stream is broken @"+this.streamPos_+". Error: "+b+". With input:\n"+a)};
Ry.prototype.decode=function(a){this.isInputValid_||this.error_(a,"stream already broken");this.leftoverInput_+=a;a=Math.floor(this.leftoverInput_.length/4);if(0==a)return null;try{var b=hda(this.leftoverInput_.substr(0,4*a))}catch(c){this.error_(this.leftoverInput_,c.message)}this.streamPos_+=4*a;this.leftoverInput_=this.leftoverInput_.substr(4*a);return b};var Sy=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
e=Sy.prototype;e.isInputValid=function(){return 3!=this.state_};
e.getErrorMessage=function(){return this.errorMessage_};
e.error_=function(a,b,c){this.state_=3;this.errorMessage_="The stream is broken @"+this.streamPos_+"/"+b+". Error: "+c+". With input:\n"+a;throw Error(this.errorMessage_)};
e.acceptsBinaryInput=function(){return!0};
e.parse=function(a){function b(n){n&128&&g.error_(l,m,"invalid tag");2!=(n&7)&&g.error_(l,m,"invalid wire type");g.tag_=n>>>3;1!=g.tag_&&2!=g.tag_&&15!=g.tag_&&g.error_(l,m,"unexpected tag");g.state_=1;g.length_=0;g.countLengthBytes_=0}
function c(n){g.countLengthBytes_++;5==g.countLengthBytes_&&n&240&&g.error_(l,m,"message length too long");g.length_|=(n&127)<<7*(g.countLengthBytes_-1);n&128||(g.state_=2,g.countMessageBytes_=0,g.messageBuffer_="undefined"!==typeof Uint8Array?new Uint8Array(g.length_):Array(g.length_),0==g.length_&&f())}
function d(n){g.messageBuffer_[g.countMessageBytes_++]=n;g.countMessageBytes_==g.length_&&f()}
function f(){if(15>g.tag_){var n={};n[g.tag_]=g.messageBuffer_;g.result_.push(n)}g.state_=0}
for(var g=this,l=a instanceof Array?a:new Uint8Array(a),m=0;m<l.length;){switch(g.state_){case 3:g.error_(l,m,"stream already broken");break;case 0:b(l[m]);break;case 1:c(l[m]);break;case 2:d(l[m]);break;default:throw Error("unexpected parser state: "+g.state_);}g.streamPos_++;m++}a=g.result_;g.result_=[];return 0<a.length?a:null};var wva=function(){this.errorMessage_=null;this.streamPos_=0;this.base64Decoder_=new Ry;this.pbParser_=new Sy};
e=wva.prototype;e.isInputValid=function(){return null===this.errorMessage_};
e.getErrorMessage=function(){return this.errorMessage_};
e.error_=function(a,b){this.errorMessage_="The stream is broken @"+this.streamPos_+". Error: "+b+". With input:\n"+a;throw Error(this.errorMessage_)};
e.acceptsBinaryInput=function(){return!1};
e.parse=function(a){null!==this.errorMessage_&&this.error_(a,"stream already broken");var b=null;try{var c=this.base64Decoder_.decode(a);b=null===c?null:this.pbParser_.parse(c)}catch(d){this.error_(a,d.message)}this.streamPos_+=a.length;return b};var Ty=function(a){return"\r"==a||"\n"==a||" "==a||"\t"==a};var Uy=function(a){this.errorMessage_=null;this.result_=[];this.buffer_="";this.stack_=[];this.pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!a||!a.deliverMessageAsRawString)},xva={INIT:0,
VALUE:1,OBJECT_OPEN:2,OBJECT_END:3,ARRAY_OPEN:4,ARRAY_END:5,STRING:6,KEY_START:7,KEY_END:8,TRUE1:9,TRUE2:10,TRUE3:11,FALSE1:12,FALSE2:13,FALSE3:14,FALSE4:15,NULL1:16,NULL2:17,NULL3:18,NUM_DECIMAL_POINT:19,NUM_DIGIT:20};e=Uy.prototype;e.isInputValid=function(){return 3!=this.streamState_};
e.getErrorMessage=function(){return this.errorMessage_};
e.done=function(){return 2===this.streamState_};
e.error_=function(a,b){this.streamState_=3;this.errorMessage_="The stream is broken @"+this.pos_+"/"+b+". With input:\n"+a;throw Error(this.errorMessage_)};
e.acceptsBinaryInput=function(){return!1};
e.parse=function(a){function b(){for(;C<a.length;)if(Ty(a[C]))C++,g.pos_++;else break;return C<r}
function c(){for(var E;;){E=a[C++];if(!E)break;g.pos_++;switch(g.state_){case n.INIT:"{"===E?g.state_=n.OBJECT_OPEN:"["===E?g.state_=n.ARRAY_OPEN:Ty(E)||g.error_(a,C);continue;case n.KEY_START:case n.OBJECT_OPEN:if(Ty(E))continue;if(g.state_===n.KEY_START)l.push(n.KEY_END);else if("}"===E){f("{}");g.state_=d();continue}else l.push(n.OBJECT_END);"\""===E?g.state_=n.STRING:g.error_(a,C);continue;case n.KEY_END:case n.OBJECT_END:if(Ty(E))continue;":"===E?(g.state_===n.OBJECT_END&&(l.push(n.OBJECT_END),
g.depth_++),g.state_=n.VALUE):"}"===E?(g.depth_--,f(),g.state_=d()):","===E?(g.state_===n.OBJECT_END&&l.push(n.OBJECT_END),g.state_=n.KEY_START):g.error_(a,C);continue;case n.ARRAY_OPEN:case n.VALUE:if(Ty(E))continue;if(g.state_===n.ARRAY_OPEN)if(g.depth_++,g.state_=n.VALUE,"]"===E){g.depth_--;if(0===g.depth_){g.state_=n.ARRAY_END;return}f("[]");g.state_=d();continue}else l.push(n.ARRAY_END);"\""===E?g.state_=n.STRING:"{"===E?g.state_=n.OBJECT_OPEN:"["===E?g.state_=n.ARRAY_OPEN:"t"===E?g.state_=n.TRUE1:
"f"===E?g.state_=n.FALSE1:"n"===E?g.state_=n.NULL1:"-"!==E&&(-1!=="0123456789".indexOf(E)?g.state_=n.NUM_DIGIT:g.error_(a,C));continue;case n.ARRAY_END:if(","===E)l.push(n.ARRAY_END),g.state_=n.VALUE,1===g.depth_&&(z=C);else if("]"===E){g.depth_--;if(0===g.depth_)return;f();g.state_=d()}else if(Ty(E))continue;else g.error_(a,C);continue;case n.STRING:var S=C;a:for(;;){for(;0<g.unicodeCount_;)if(E=a[C++],4===g.unicodeCount_?g.unicodeCount_=0:g.unicodeCount_++,!E)break a;if("\""===E&&!g.slashed_){g.state_=
d();break}if("\\"===E&&!g.slashed_&&(g.slashed_=!0,E=a[C++],!E))break;if(g.slashed_)if(g.slashed_=!1,"u"===E&&(g.unicodeCount_=1),E=a[C++])continue;else break;m.lastIndex=C;E=m.exec(a);if(!E){C=a.length+1;break}C=E.index+1;E=a[E.index];if(!E)break}g.pos_+=C-S;continue;case n.TRUE1:if(!E)continue;"r"===E?g.state_=n.TRUE2:g.error_(a,C);continue;case n.TRUE2:if(!E)continue;"u"===E?g.state_=n.TRUE3:g.error_(a,C);continue;case n.TRUE3:if(!E)continue;"e"===E?g.state_=d():g.error_(a,C);continue;case n.FALSE1:if(!E)continue;
"a"===E?g.state_=n.FALSE2:g.error_(a,C);continue;case n.FALSE2:if(!E)continue;"l"===E?g.state_=n.FALSE3:g.error_(a,C);continue;case n.FALSE3:if(!E)continue;"s"===E?g.state_=n.FALSE4:g.error_(a,C);continue;case n.FALSE4:if(!E)continue;"e"===E?g.state_=d():g.error_(a,C);continue;case n.NULL1:if(!E)continue;"u"===E?g.state_=n.NULL2:g.error_(a,C);continue;case n.NULL2:if(!E)continue;"l"===E?g.state_=n.NULL3:g.error_(a,C);continue;case n.NULL3:if(!E)continue;"l"===E?g.state_=d():g.error_(a,C);continue;
case n.NUM_DECIMAL_POINT:"."===E?g.state_=n.NUM_DIGIT:g.error_(a,C);continue;case n.NUM_DIGIT:if(-1!=="0123456789.eE+-".indexOf(E))continue;else C--,g.pos_--,g.state_=d();continue;default:g.error_(a,C);}}}
function d(){var E=l.pop();return null!=E?E:n.VALUE}
function f(E){1<g.depth_||(E||(E=-1===z?g.buffer_+a.substring(v,C):a.substring(z,C)),g.deliverMessageAsRawString_?g.result_.push(E):g.result_.push(JSON.parse(E)),z=C)}
for(var g=this,l=g.stack_,m=g.stringInputPattern_,n=xva,r=a.length,v=0,z=-1,C=0;C<r;)switch(g.streamState_){case 3:return g.error_(a,C),null;case 2:return b()&&g.error_(a,C),null;case 0:if(b()){var J=a[C++];g.pos_++;if("["===J){g.streamState_=1;v=C;g.state_=n.ARRAY_OPEN;continue}else g.error_(a,C)}return null;case 1:return c(),0===g.depth_&&g.state_==n.ARRAY_END?(g.streamState_=2,g.buffer_=a.substring(C)):g.buffer_=-1===z?g.buffer_+a.substring(v):a.substring(z),0<g.result_.length?(J=g.result_,g.result_=
[],J):null;}return null};var Vy=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.streamPos_=0;this.result_=[];this.statusParsed_=!1};
Vy.prototype.isInputValid=function(){return null===this.errorMessage_};
Vy.prototype.getErrorMessage=function(){return this.errorMessage_};
Vy.prototype.acceptsBinaryInput=function(){return!1};
Vy.prototype.parse=function(a){function b(n){g.state_=6;g.errorMessage_="The stream is broken @"+g.streamPos_+"/"+l+". Error: "+n+". With input:\n";throw Error(g.errorMessage_)}
function c(){g.jsonStreamParser_=new Uy({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function d(n){if(n)for(var r=0;r<n.length;r++){var v={};v[1]=n[r];g.result_.push(v)}}
function f(n){if(n){(g.statusParsed_||1<n.length)&&b("extra status: "+n);g.statusParsed_=!0;var r={};r[2]=n[0];g.result_.push(r)}}
for(var g=this,l=0;l<a.length;){var m;if(m=2!==g.state_){a:{for(;l<a.length;){if(!Ty(a[l])){m=!0;break a}l++;g.streamPos_++}m=!1}m=!m}if(m)return null;switch(g.state_){case 6:b("stream already broken");break;case 0:"["===a[l]?(g.state_=1,l++,g.streamPos_++):b("unexpected input token");break;case 1:"["===a[l]?(g.state_=2,c()):","===a[l]||"null,"==a.substr(l,5)?g.state_=3:"]"===a[l]?(g.state_=5,l++,g.streamPos_++):b("unexpected input token");break;case 2:m=g.jsonStreamParser_.parse(a.substring(l));
d(m);g.jsonStreamParser_.done()?(g.state_=3,m=g.jsonStreamParser_.buffer_,g.streamPos_+=a.length-l-m.length,a=m,l=0):(g.streamPos_+=a.length-l,l=a.length);break;case 3:","===a[l]||"null,"==a.substr(l,5)?(g.state_=4,c(),g.jsonStreamParser_.parse("["),l+=","===a[l]?1:5,g.streamPos_++):"]"===a[l]&&(g.state_=5,l++,g.streamPos_++);break;case 4:m=g.jsonStreamParser_.parse(a.substring(l));f(m);g.jsonStreamParser_.done()?(g.state_=5,m=g.jsonStreamParser_.buffer_,g.streamPos_+=a.length-l-m.length,a=m,l=0):(
g.streamPos_+=a.length-l,l=a.length);break;case 5:b("extra input after stream end");}}return 0<g.result_.length?(a=g.result_,g.result_=[],a):null};var Wy=function(a){this.logger_=null;this.xhr_=a;this.parser_=null;this.status_=this.pos_=0;this.dataHandler_=this.statusHandler_=null;this.eventHandler_=new Oq(this);this.eventHandler_.listen(this.xhr_,"readystatechange",this.readyStateChangeHandler_)},yva=function(a){var b=sr(a.xhr_,"Content-Type");
if(!b)return null;b=b.toLowerCase();if(Lb(b,"application/json"))return Lb(b,"application/json+protobuf")?new Vy:new Uy;if(Lb(b,"application/x-protobuf")){a=sr(a.xhr_,"Content-Transfer-Encoding");if(!a)return new Sy;if("base64"==a.toLowerCase())return new wva}return null};
Wy.prototype.getXhr=function(){return this.xhr_};
Wy.prototype.getStatus=function(){return this.status_};
Wy.prototype.readyStateChangeHandler_=function(a){a=a.target;try{if(a==this.xhr_)a:{var b=this.xhr_.getReadyState(),c=this.xhr_.lastErrorCode_,d=this.xhr_.getStatus(),f=this.xhr_.getResponseText();if(!(3>b||3==b&&!f))if(d=200==d||206==d,4==b&&(8==c?Xy(this,7):7==c?Xy(this,8):d||Xy(this,3)),this.parser_||(this.parser_=yva(this),null==this.parser_&&Xy(this,5)),2<this.status_)Yy(this);else{if(f.length>this.pos_){var g=f.substr(this.pos_);this.pos_=f.length;try{var l=this.parser_.parse(g);null!=l&&this.dataHandler_&&
this.dataHandler_(l)}catch(m){Xy(this,5);Yy(this);break a}}4==b?(0==f.length?Xy(this,4):Xy(this,2),Yy(this)):Xy(this,1)}}}catch(m){Xy(this,6),Yy(this)}};
var Xy=function(a,b){a.status_!=b&&(a.status_=b,a.statusHandler_&&a.statusHandler_())},Yy=function(a){a.eventHandler_.removeAll();
if(a.xhr_){var b=a.xhr_;a.xhr_=null;b.abort();b.dispose()}};var Zy=function(a){this.logger_=null;this.xhrReader_=a;a=u(this.onData_,this);this.xhrReader_.dataHandler_=a;a=u(this.onStatusChange_,this);this.xhrReader_.statusHandler_=a;this.callbackMap_={};this.callbackOnceMap_={}};
e=Zy.prototype;e.on=function(a,b){var c=this.callbackMap_[a];c||(c=[],this.callbackMap_[a]=c);c.push(b);return this};
e.addListener=function(a,b){this.on(a,b);return this};
e.removeListener=function(a,b){var c=this.callbackMap_[a];c&&mb(c,b);(a=this.callbackOnceMap_[a])&&mb(a,b);return this};
e.once=function(a,b){var c=this.callbackOnceMap_[a];c||(c=[],this.callbackOnceMap_[a]=c);c.push(b);return this};
e.onData_=function(a){var b=this.callbackMap_.data;b&&zva(this,a,b);(b=this.callbackOnceMap_.data)&&zva(this,a,b);this.callbackOnceMap_.data=[]};
var zva=function(a,b,c){for(var d={},f=0;f<b.length;d={$jscomp$loop$prop$message$2355:d.$jscomp$loop$prop$message$2355},f++)d.$jscomp$loop$prop$message$2355=b[f],cb(c,function(g){return function(l){try{l(g.$jscomp$loop$prop$message$2355)}catch(m){a.handleError_("message-callback exception (ignored) "+m)}}}(d))};
Zy.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:$y(this,"readable");break;case 5:case 6:case 4:case 7:case 3:$y(this,"error");break;case 8:$y(this,"close");break;case 2:$y(this,"end");}};
var $y=function(a,b){var c=a.callbackMap_[b];c&&cb(c,function(d){try{d()}catch(f){a.handleError_("status-callback exception (ignored) "+f)}});
(c=a.callbackOnceMap_[b])&&cb(c,function(d){d()});
a.callbackOnceMap_[b]=[]};
Zy.prototype.handleError_=function(){};var az=function(){var a={};a=void 0===a?{}:a;this.suppressCorsPreflight_=a.suppressCorsPreflight||Ja("suppressCorsPreflight",a)||!1;this.withCredentials_=a.withCredentials||Ja("withCredentials",a)||!1;this.streamInterceptors_=a.streamInterceptors||[];this.unaryInterceptors_=a.unaryInterceptors||[]};
az.prototype.rpcCall=function(a,b,c,d,f){var g=this;d=Ly(a,b,"unary",d);var l=a.substr(0,a.length-d.name.length);a=bz(function(m){return Ava(g,m,l)},this.streamInterceptors_).call(this,jx(d,b,c));
a.on("data",function(m){return f(null,m)});
a.on("error",function(m){return f(m,null)});
return new My(a)};
var Bva=function(a,b,c,d,f){f=Ly(b,c,"unary",f);var g=b.substr(0,b.length-f.name.length);return bz(function(l){return new ova(function(m,n){var r={},v=Ava(a,l,g);v.on("error",function(z){return n(z)});
v.on("metadata",function(z){r=z});
v.on("data",function(z){var C=r;C=void 0===C?{}:C;return m(new hx(z,l.getMethodDescriptor(),C))})})},a.unaryInterceptors_).call(a,jx(f,c,d)).then(function(l){return l.getResponseMessage()})},cz=function(a,b,c,d,f){return Bva(a,b,c,d,f)};
az.prototype.serverStreaming=function(a,b,c,d){var f=this;d=Ly(a,b,"server_streaming",d);var g=a.substr(0,a.length-d.name.length);return bz(function(l){var m=l.getMethodDescriptor(),n=l.getMetadata(),r=new qr;n=Cva(f,n,r,g+m.getName());var v=Dva(r,m.responseDeserializeFn,!0);l=m.requestSerializeFn(l.getRequestMessage());r.send(n,"POST",l);return v},this.streamInterceptors_).call(this,jx(d,b,c))};
var Ava=function(a,b,c){var d=b.getMethodDescriptor(),f=b.getMetadata(),g=new qr;a=Cva(a,f,g,c+d.getName());c=Dva(g,d.responseDeserializeFn,!1);uva(c,"base64"==f["X-Goog-Encode-Response-If-Executable"]);b=d.requestSerializeFn(b.getRequestMessage());g.send(a,"POST",b);return c},Cva=function(a,b,c,d){b["Content-Type"]="application/json+protobuf";
b["X-User-Agent"]="grpc-web-javascript/0.1";var f="Authorization"in b?(f=b.Authorization)?!!{SAPISIDHASH:!0,APISIDHASH:!0}[f.split(" ")[0]]:!1:!1;if(f||a.withCredentials_)c.withCredentials_=!0;a.suppressCorsPreflight_?d=Qy(d,"$httpHeaders",b):c.headers.addAll(b);return d},Dva=function(a,b,c){if(c)if(te&&!Ge(10)||ye&&!Fe("420+")||se&&!ye)var d=null;else
c=new Wy(a),d=new Zy(c);a=new Ny({xhr:a,nodeReadableStream:d},b);a.rpcStatusParseFn_=Eva;return a},Eva=function(a,b){var c={};
try{var d=Of(Ky,a);var f=d.getCode();var g=d.getMessage();d.getDetailsList().length&&(c["grpc-web-status-details-bin"]=a)}catch(l){b&&404==b.getStatus()?(f=5,g="Not Found: "+b.getLastUri()):(f=14,g="Unable to parse RpcStatus: "+l)}return{code:f,details:g,metadata:c}},bz=function(a,b){var c=a;
b.forEach(function(d){var f=c;c=function(g){return d.intercept(g,f)}});
return c};var Fva=function(a){this.client_=new az;this.hostname_=a};
e=Fva.prototype;e.batchCheckLink=function(a,b){return cz(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/BatchCheckLink",a,b||{},Gta)};
e.checkLink=function(a,b){return cz(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/CheckLink",a,b||{},Ita)};
e.createLink=function(a,b){return cz(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/CreateLink",a,b||{},Pta)};
e.depositGoogleCredential=function(a,b){return cz(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",a,b||{},Sta)};
e.deleteLink=function(a,b){return cz(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",a,b||{},Qta)};
e.checkAccountByAssertion=function(a,b){return cz(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/CheckAccountByAssertion",a,b||{},Hta)};
e.linkByAssertion=function(a,b){return cz(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/LinkByAssertion",a,b||{},yua)};
e.createAccountByAssertion=function(a,b){return cz(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/CreateAccountByAssertion",a,b||{},Kta)};
e.finishOAuth=function(a,b){return cz(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",a,b||{},Tta)};
e.getLink=function(a,b){return cz(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",a,b||{},rua)};
e.listLinkDetails=function(a,b){return cz(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/ListLinkDetails",a,b||{},Cua)};
e.signForLink=function(a,b){return cz(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/SignForLink",a,b||{},Hua)};
e.strongCheckLink=function(a,b){return cz(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StrongCheckLink",a,b||{},kva)};
e.getConsentText=function(){return cz(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetConsentText",void 0,{},cua)};
e.getServiceDetails=function(a,b){return cz(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetServiceDetails",a,b||{},vua)};
e.startLinkingSession=function(a,b){return cz(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",a,b||{},jva)};
e.getUserByTokenId=function(a,b){return cz(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetUserByTokenId",a,b||{},wua)};
e.getGsiLinkingSession=function(a,b){return cz(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetGsiLinkingSession",a,b||{},qua)};
e.reportLinkError=function(a,b){return cz(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/ReportLinkError",a,b||{},Dua)};var dz=function(a){hf(this,a,0,-1,null,null)};
w(dz,G);dz.prototype.toObject=function(a){return ez(a,this)};
var ez=function(a,b){var c,d={id:null==(c=I(b,1))?void 0:c,receivedTimeMicros:null==(c=I(b,2))?void 0:c};a&&(d.$jspbMessageInstance=b);return d};
dz.prototype.serializeBinary=function(){var a=new D;fz(this,a);return F(a)};
var fz=function(a,b){var c=I(a,1);null!=c&&b.writeString(1,c);c=I(a,2);null!=c&&b.writeInt64(2,c)};
e=dz.prototype;e.getId=function(){return I(this,1)};
e.setId=function(a){return uf(this,1,a)};
e.clearId=function(){return wf(this,1)};
e.hasId=function(){return K(this,1)};
e.getReceivedTimeMicros=function(){return I(this,2)};
e.clearReceivedTimeMicros=function(){return wf(this,2)};
e.hasReceivedTimeMicros=function(){return K(this,2)};var gz=function(a){hf(this,a,0,-1,Gva,null)};
w(gz,G);var Gva=[2];e=gz.prototype;e.toObject=function(a){var b,c={acknowledgment:(b=M(this,dz,1))&&ez(a,b),ackList:jf(Mf(this,dz,2),ez,a)};a&&(c.$jspbMessageInstance=this);return c};
e.serializeBinary=function(){var a=new D;var b=M(this,dz,1);null!=b&&a.writeMessage(1,b,fz);b=Mf(this,dz,2);0<b.length&&We(a,2,b,fz);return F(a)};
e.setAcknowledgment=function(a){return yf(this,1,a)};
e.clearAcknowledgment=function(){return zf(this,1)};
e.hasAcknowledgment=function(){return K(this,1)};
e.setAckList=function(a){return Af(this,2,a)};
e.clearAckList=function(){return Bf(this,2)};var hz=function(a){hf(this,a,0,-1,null,null)};
w(hz,G);hz.prototype.toObject=function(a){var b={};a&&(b.$jspbMessageInstance=this);return b};
hz.prototype.serializeBinary=function(){return F(new D)};var iz=function(a){hf(this,a,0,-1,null,null)};
w(iz,G);iz.prototype.toObject=function(a){return jz(a,this)};
var jz=function(a,b){var c,d={topicName:null==(c=I(b,1))?void 0:c,subscriber:of(I(b,3)),kind:null==(c=I(b,4))?void 0:c,subscriptionName:of(I(b,5))};a&&(d.$jspbMessageInstance=b);return d};
iz.prototype.serializeBinary=function(){var a=new D;kz(this,a);return F(a)};
var kz=function(a,b){var c=I(a,1);null!=c&&b.writeString(1,c);c=I(a,3);null!=c&&b.writeBytes(3,c);c=I(a,4);null!=c&&b.writeEnum(4,c);c=I(a,5);null!=c&&b.writeBytes(5,c)};
e=iz.prototype;e.getTopicName=function(){return I(this,1)};
e.setTopicName=function(a){uf(this,1,a)};
e.clearTopicName=function(){return wf(this,1)};
e.hasTopicName=function(){return K(this,1)};
e.getSubscriber_asU8=function(){return pf(I(this,3))};
e.clearSubscriber=function(){return wf(this,3)};
e.hasSubscriber=function(){return K(this,3)};
e.getKind=function(){return I(this,4)};
e.clearKind=function(){return wf(this,4)};
e.hasKind=function(){return K(this,4)};
e.getSubscriptionName_asU8=function(){return pf(I(this,5))};
e.clearSubscriptionName=function(){return wf(this,5)};
e.hasSubscriptionName=function(){return K(this,5)};var lz=function(a){hf(this,a,0,-1,null,null)};
w(lz,G);e=lz.prototype;e.toObject=function(a){var b,c={subscription:(b=this.getSubscription())&&jz(a,b),isPrivatePerUser:null==(b=nf(this,2))?void 0:b};a&&(c.$jspbMessageInstance=this);return c};
e.serializeBinary=function(){var a=new D;var b=this.getSubscription();null!=b&&a.writeMessage(1,b,kz);b=I(this,2);null!=b&&a.writeBool(2,b);return F(a)};
e.getSubscription=function(){return M(this,iz,1)};
e.setSubscription=function(a){yf(this,1,a)};
e.clearSubscription=function(){return zf(this,1)};
e.hasSubscription=function(){return K(this,1)};
e.getIsPrivatePerUser=function(){return nf(this,2)};
e.clearIsPrivatePerUser=function(){return wf(this,2)};
e.hasIsPrivatePerUser=function(){return K(this,2)};var mz=function(a){hf(this,a,0,-1,null,null)};
w(mz,G);e=mz.prototype;e.toObject=function(a){var b,c={commitTimestamp:null==(b=I(this,1))?void 0:b,fullTopicName:null==(b=I(this,2))?void 0:b};a&&(c.$jspbMessageInstance=this);return c};
e.serializeBinary=function(){var a=new D;var b=I(this,1);null!=b&&a.writeInt64String(1,b);b=I(this,2);null!=b&&a.writeString(2,b);return F(a)};
e.setCommitTimestamp=function(a){return uf(this,1,a)};
e.clearCommitTimestamp=function(){return wf(this,1)};
e.hasCommitTimestamp=function(){return K(this,1)};
e.setFullTopicName=function(a){return uf(this,2,a)};
e.clearFullTopicName=function(){return wf(this,2)};var nz=function(a){hf(this,a,0,-1,null,null)};
w(nz,G);e=nz.prototype;e.toObject=function(a){var b,c={subscription:(b=this.getSubscription())&&jz(a,b)};a&&(c.$jspbMessageInstance=this);return c};
e.serializeBinary=function(){var a=new D;var b=this.getSubscription();null!=b&&a.writeMessage(1,b,kz);return F(a)};
e.getSubscription=function(){return M(this,iz,1)};
e.setSubscription=function(a){yf(this,1,a)};
e.clearSubscription=function(){return zf(this,1)};
e.hasSubscription=function(){return K(this,1)};var oz=function(a){hf(this,a,0,-1,null,null)};
w(oz,G);oz.prototype.toObject=function(a){var b={};a&&(b.$jspbMessageInstance=this);return b};
oz.prototype.serializeBinary=function(){return F(new D)};var Hva=function(){this.storage=new Map},Jva=function(a,b,c,d){if(!a.storage.has(b))return null;
a=k(a.storage.get(b));for(b=a.next();!b.done;b=a.next())if(b=b.value,c&&b.scopes&&Iva(b.scopes,c)||d&&b.capabilities&&Iva(b.capabilities,d))return b;return null},Iva=function(a,b){b=k(b);
for(var c=b.next();!c.done;c=b.next())if(!a.has(c.value))return!1;return!0};var pz=function(a,b){this.alsDomain1p=a;this.alsDomain3p=b;this.supportedFlows=this.clientXd3=void 0;this.accountLinkingEntryPoint=0};
pz.forProdEnv=function(){return new pz("https://accountlinking-pa.clients6.google.com","https://accountlinking-pa.googleapis.com")};
pz.forStagingEnv=function(){return new pz("https://staging-accountlinking-pa-googleapis.sandbox.google.com","https://staging-accountlinking-pa.sandbox.googleapis.com")};
pz.forStagingQualEnv=function(){return new pz("https://stagingqual-accountlinking-pa-googleapis.sandbox.google.com","https://stagingqual-accountlinking-pa.sandbox.googleapis.com")};
pz.forDevEnv=function(){return new pz("https://dev-accountlinking-pa-googleapis.corp.google.com","https://dev-accountlinking-pa.corp.googleapis.com")};
pz.forLocalEnv=function(a){return new pz(a,a)};
e=pz.prototype;e.withApiKey=function(a){this.apiKey=a;return this};
e.withOAuthToken=function(a){this.oauthToken=a;return this};
e.withAuthUser=function(a){this.authUser=a;return this};
e.withBucket=function(a){this.bucket=a;return this};
e.withCompletionUrl=function(a){this.completionUrl=a;return this};
e.withInteractionMode=function(a){this.interactionMode=a;return this};
e.withRedirectServiceUrl=function(a){this.redirectServiceUrl=a;return this};
e.withAccountLinkingEntryPoint=function(a){this.accountLinkingEntryPoint=a;return this};
e.build=function(){var a={};if(void 0===this.supportedFlows||0===this.supportedFlows.size)throw Error("Supported flows can not be empty");a.supportedFlows=this.supportedFlows;if(void 0!==this.apiKey)a.apiKey=this.apiKey,a.alsDomain=this.alsDomain1p;else{if(void 0===this.oauthToken)throw Error("Auth is not configured: apiKey or oauthToken must be specified");a.oauthToken=this.oauthToken;a.alsDomain=this.alsDomain3p}a.clientXd3=this.clientXd3;a.accountLinkingEntryPoint=this.accountLinkingEntryPoint;
void 0!==this.authUser&&(a.authUser=this.authUser);void 0!==this.bucket&&(a.bucket=this.bucket);void 0!==this.completionUrl&&(a.completionUrl=this.completionUrl);void 0!==this.interactionMode&&(a.interactionMode=this.interactionMode);void 0!==this.redirectServiceUrl&&(a.redirectServiceUrl=this.redirectServiceUrl);return a};function qz(){return Math.floor(2147483648*Math.random())}
;var rz=function(a){var b=new Hva;this.galService=a;this.galCache=b};
rz.prototype.getLink=function(a){var b=a.serviceId,c=a.scopes,d=a.capabilities;return Xa(this,function g(){var l=this,m,n;return ya(g,function(r){m=l;if(void 0!==d&&void 0!==c)throw Error("capabilities and scopes should not be set together");n=Jva(l.galCache,b,c,d);return null!==n?r.return(n):r.return(l.galService.getLink({serviceId:b,sessionId:qz(),scopes:c,capabilities:d}).then(function(v){v=sz(v);var z=m.galCache;z.storage.has(b)?z.storage.get(b).push(v):z.storage.set(b,[v]);return v}))})})};
rz.prototype.deleteLink=function(a,b){return Xa(this,function d(){var f=this;return ya(d,function(g){f.galCache.storage.delete(a);return g.return(f.galService.deleteLink({serviceId:a,sessionId:qz(),accountLinkingEntryPoint:b}).then(function(){return!0}))})})};
function sz(a){var b={};if(void 0===a||null===a)return b;void 0!==a.getToken()&&a.getToken().getScopesList()&&0<a.getToken().getScopesList().length&&(b.scopes=new Set(a.getToken().getScopesList()));void 0!==a.getToken()&&a.getToken().getCapabilitiesList()&&0<a.getToken().getCapabilitiesList().length&&(b.capabilities=new Set(a.getToken().getCapabilitiesList()));void 0!==a.getConsistencyKey()&&(b.consistencyKey=a.getConsistencyKey());return b}
;var tz=function(a){var b=this;this.validator=a;this.closedPopupTimeout=this.rejectCb=this.resolveCb=this.popup=null;this.receiveMessage=function(c){if(null!==c&&(c=c.event_,c.source===b.popup)){var d=c.data;b.validator(d,c.origin)&&(null!==b.resolveCb&&b.resolveCb(d),Kva(b))}}};
tz.prototype.open=function(a,b){var c=this;null!==this.popup&&uz(this);return new Promise(function(d,f){c.resolveCb=d;c.rejectCb=f;c.popup=yc(a,null,Cb(""),b);ti(window,"message",c.receiveMessage,!1,c);Lva(c)})};
var uz=function(a,b){null!==a.rejectCb&&a.rejectCb(b);Kva(a)},Kva=function(a){a.closedPopupTimeout&&(a.closedPopupTimeout.cancel(),a.closedPopupTimeout=null);
a.popup&&a.popup.close();wi(window,"message",a.receiveMessage,!1,a);a.popup=null;a.resolveCb=null;a.rejectCb=null},Lva=function(a){a.closedPopupTimeout=$i(100).then(function(){a.popup?a.popup.closed?Mva(a):Lva(a):uz(a,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},Mva=function(a){a.closedPopupTimeout=$i(100).then(function(){uz(a,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var Nva=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),vz=function(a,b,c,d,f,g){var l=this;this.serviceId=a;this.sessionId=b;this.galService=c;this.oauthDetails=d;this.interactionMode=f;this.redirectServiceUrl=g;this.started=!1;this.dataValidator=function(m,n){var r=Nva.has(n);r||void 0===l.redirectServiceUrl||(r=l.redirectServiceUrl===n);return r?"gdi"===m.sentinel:!1}};
vz.prototype.complete=function(){return Xa(this,function b(){var c=this,d;return ya(b,function(f){if(1!==c.interactionMode)return f.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));d=wz.getRedirectStateFromUri();return null===d?f.return(Promise.resolve({statusCode:10,statusMessage:"redirect_state is missing in URI"})):f.return(c.finishOAuth(d))})})};
vz.prototype.start=function(){return Xa(this,function b(){var c=this,d,f;return ya(b,function(g){d=c;if(c.started)return g.return(Promise.resolve({statusCode:10,statusMessage:"OAuth flow is already active."}));if(!L(c.oauthDetails,1))return g.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(1===c.interactionMode)return wz.setLocation(L(c.oauthDetails,1)),g.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));
c.started=!0;f=wz.getPostMessagePopup(c.dataValidator);return g.return(f.open(L(c.oauthDetails,1),Ova()).then(function(l){d.started=!1;if(void 0!==l.error)throw Error("Error during OAuth");if(void 0===l.redirect_state)throw Error("redirect_state missing in the response");return d.finishOAuth(l.redirect_state)}).catch(function(l){d.started=!1;
return void 0!==l.errorCode?{statusCode:l.errorCode,statusMessage:l.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})})};
vz.prototype.finishOAuth=function(a){return this.galService.finishOAuth({serviceId:this.serviceId,sessionId:this.sessionId,redirectState:a}).then(function(b){return{statusCode:1,link:sz(b.getLink())}})};
var Ova=function(){return"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)},wz={getPostMessagePopup:function(a){return new tz(a)},
getRedirectStateFromUri:function(){var a=lr(wz.getLocation()).fragment_;return new ir(a).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(a){xc(window.location,a)}};var xz=function(a){hf(this,a,0,-1,null,null)};
w(xz,G);xz.prototype.toObject=function(a){return Pva(a,this)};
var Pva=function(a,b){var c={errorType:qf(b,1,0),errorCode:qf(b,2,0),errorDescription:L(b,3)};a&&(c.$jspbMessageInstance=b);return c};
xz.prototype.serializeBinary=function(){var a=new D;Qva(this,a);return F(a)};
var Qva=function(a,b){var c=qf(a,1,0);0!==c&&b.writeEnum(1,c);c=a.getErrorCode();0!==c&&b.writeEnum(2,c);c=a.getErrorDescription();0<c.length&&b.writeString(3,c)};
e=xz.prototype;e.setErrorType=function(a){return Kf(this,1,a)};
e.getErrorCode=function(){return qf(this,2,0)};
e.setErrorCode=function(a){return Kf(this,2,a)};
e.getErrorDescription=function(){return L(this,3)};
e.setErrorDescription=function(a){return Jf(this,3,a)};var yz=function(a){hf(this,a,0,-1,null,null)};
w(yz,G);e=yz.prototype;e.toObject=function(a){var b,c={consistencyKey:L(this,1),clientError:(b=M(this,xz,2))&&Pva(a,b)};a&&(c.$jspbMessageInstance=this);return c};
e.serializeBinary=function(){var a=new D;var b=this.getConsistencyKey();0<b.length&&a.writeString(1,b);b=M(this,xz,2);null!=b&&a.writeMessage(2,b,Qva);return F(a)};
e.getConsistencyKey=function(){return L(this,1)};
e.setConsistencyKey=function(a){return Jf(this,1,a)};
e.setClientError=function(a){return yf(this,2,a)};
e.clearClientError=function(){return zf(this,2)};var Rva=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-daily-0.corp.google.com","https://myaccount-autopush.corp.google.com"]),zz=function(a,b,c,d,f,g){var l=this;this.serviceId=a;this.sessionId=b;this.galService=c;this.gsiWebFlowDetails=d;this.interactionMode=f;this.redirectServiceUrl=g;this.started=!1;this.dataValidator=function(m,n){var r=Rva.has(n);r||void 0===l.redirectServiceUrl||(r=l.redirectServiceUrl===n);return r?"gal"===m.sentinel:!1}};
zz.prototype.complete=function(){return Xa(this,function b(){var c=this,d,f;return ya(b,function(g){if(1!==c.interactionMode)return g.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));d=Az.getRedirectStateFromUri();if(void 0===d)return g.return(Promise.resolve({statusCode:10,statusMessage:"redirect_state is missing in URI"}));try{return f=Sva(d),g.return(Tva(c,f))}catch(l){return g.return(Promise.resolve({statusCode:10,statusMessage:"`e`"}))}})})};
zz.prototype.start=function(){return Xa(this,function b(){var c=this,d,f;return ya(b,function(g){d=c;if(c.started)return g.return(Promise.resolve({statusCode:10,statusMessage:"Streamlined flow is already active."}));if(!L(c.gsiWebFlowDetails,1))return g.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(1===c.interactionMode)return Az.setLocation(Uva(c,L(c.gsiWebFlowDetails,1))),g.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
c.started=!0;f=Az.getPostMessagePopup(c.dataValidator);return g.return(f.open(Uva(c,L(c.gsiWebFlowDetails,1)),Ova()).then(function(l){d.started=!1;if(void 0===l.result)throw Error("redirect_state missing in the response");l=Sva(l.result);return Tva(d,l)}).catch(function(l){d.started=!1;
return void 0!==l.errorCode?{statusCode:l.errorCode,statusMessage:l.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})})};
var Uva=function(a,b){return Jd(b,"result_channel",1===a.interactionMode?"2":"1")},Tva=function(a,b){return null!==b&&K(b,2)?Promise.resolve({statusMessage:"Web-endpoint returned an error",
statusCode:7}):a.galService.getLink({serviceId:a.serviceId,sessionId:a.sessionId,consistencyKey:b.getConsistencyKey()}).then(function(c){return{statusCode:1,link:sz(c)}})};
zz.prototype.getPopupProperties=function(){return"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)};
function Sva(a){a=Of(yz,a);if(!K(a,2)&&""===a.getConsistencyKey())throw Error("result is malformatted");return a}
var Az={getPostMessagePopup:function(a){return new tz(a)},
getRedirectStateFromUri:function(){return kr(lr(Az.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(a){xc(window.location,a)}};var Bz=function(){var a=new Ej;this.storage=(a=a.isAvailable()?new Kj(a,"GAL"):null)?new yj(a):null;this.KEY="SAVED_SESSION"};
Bz.prototype.getSession=function(a){if(null!==this.storage)try{var b=this.storage.get(this.KEY);if(void 0===b)return null;if(b.serviceId===a)return b}catch(c){}return null};var Cz=[6,2,3,1],Vva=new Map([[4,1],[1,6],[2,2],[3,3]]),Wva={statusCode:7,statusMessage:"Failed to create flow object"},Dz=function(a,b,c,d,f,g){this.serviceId=a;this.sessionId=b;this.config=c;this.galService=d;this.linkingSession=f;this.googleScopes=g;this.currentFlow=0;a=this.linkingSession;b=new Set;a.hasOauthDetails()&&b.add(1);K(a,2)&&K(a,6)&&b.add(2);K(a,3)&&K(a,6)&&b.add(3);K(a,4)&&b.add(6);this.supportedFlows=b},Zva=function(a){return new Promise(function(b){return Xa(a,function d(){var f=
this,g,l;
return ya(d,function(m){switch(m.nextAddress){case 1:g=Xva(f.currentFlow,f.supportedFlows);case 2:if(void 0===g){m.jumpTo(3);break}f.currentFlow=g;ra(m,4);return q(m,Yva(f.serviceId,f.sessionId,f.currentFlow,f.config,f.galService,f.linkingSession,f.googleScopes),6);case 6:return l=m.yieldResult,6!==l.statusCode&&(Ez(f.serviceId),f.currentFlow=0),b(l),m.return();case 4:ua(m);case 5:g=Xva(f.currentFlow,f.supportedFlows);m.jumpTo(2);break;case 3:Ez(f.serviceId),f.currentFlow=0,b({statusCode:10,statusMessage:"Linking failed"}),
oa(m);}})})})};
function Yva(a,b,c,d,f,g,l){var m=void 0!==l?Array.from(l).join(","):"";$va({serviceId:a,sessionId:b,currentFlow:c,googleScopesString:m,linkingSessionSerialized:g.serialize()});c=awa(a,b,c,d,f,g);return null===c?Promise.resolve(Wva):c.start().then(function(n){var r,v=null===(r=n.link)||void 0===r?void 0:r.consistencyKey;return 1===n.statusCode&&void 0!==l&&0<l.size&&void 0!==v?bwa(a,b,l,v,f,d,n):n})}
function cwa(a,b,c,d,f,g,l){c=awa(a,b,c,d,f,g);return null===c?Promise.resolve(Wva):c.complete().then(function(m){var n,r=null===(n=m.link)||void 0===n?void 0:n.consistencyKey;return 1===m.statusCode&&void 0!==l&&0<l.size&&void 0!==r?bwa(a,b,l,r,f,d,m):m},function(m){return{statusCode:10,
statusMesaage:"Failed to complete the flow: "+m.message}})}
function bwa(a,b,c,d,f,g,l){return f.depositGoogleCredential({serviceId:a,sessionId:b,googleScopes:c,consistencyKey:d}).then(function(){return l},function(m){return f.deleteLink({serviceId:a,
sessionId:b,accountLinkingEntryPoint:g.accountLinkingEntryPoint}).then(function(){return{statusCode:10,statusMesaage:"2-way linking failed: "+m.message}},function(n){return{statusCode:10,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+n.message}})})}
function awa(a,b,c,d,f,g){switch(c){case 1:return c=g.getOauthDetails(),new vz(a,b,f,c,d.interactionMode,d.redirectServiceUrl);case 2:case 3:return c=M(g,By,6),new zz(a,b,f,c,d.interactionMode,d.redirectServiceUrl);default:return null;}}
function Xva(a,b){var c=0;-1!==Cz.indexOf(a)&&(c=Cz.indexOf(a)+1);for(a=c;a<Cz.length;a++)if(b.has(Cz[a]))return Cz[a]}
function Fz(a,b,c,d,f,g){return d.startLinkingSession({serviceId:a,sessionId:b,capabilities:f,scopes:g,supportedFlows:dwa(c.supportedFlows),completionUrl:c.completionUrl,accountLinkingEntryPoint:c.accountLinkingEntryPoint}).then(function(l){return new Dz(a,b,c,d,l)})}
function Gz(a,b,c,d,f,g,l){return d.startLinkingSession({serviceId:a,sessionId:b,capabilities:g,scopes:l,supportedFlows:dwa(c.supportedFlows),completionUrl:c.completionUrl,twoWayLinking:!0,accountLinkingEntryPoint:c.accountLinkingEntryPoint}).then(function(m){return new Dz(a,b,c,d,m,f)})}
function $va(a){var b=new Bz;null!==b.storage&&b.storage.set(b.KEY,a)}
function Ez(a){var b=new Bz;if(null!==b.storage){var c=b.storage.get(b.KEY);void 0!==c&&c.serviceId===a&&b.storage.remove(b.KEY)}}
function dwa(a){var b=new Set;a=k(a);for(var c=a.next();!c.done;c=a.next())c=c.value,1!==c&&Vva.has(c)&&b.add(Vva.get(c));return b}
;var Hz=function(a,b){this.config=a;this.galService=b.getService();this.galRepository=b.galRepository};
Hz.prototype.getLinkByCapabilities=function(a,b){return ewa(this,a,void 0,b)};
Hz.prototype.getLinkByScopes=function(a,b){return ewa(this,a,b)};
var ewa=function(a,b,c,d){return a.galRepository.getLink({serviceId:b,scopes:c,capabilities:d}).then(function(f){return{statusCode:1,link:f}}).catch(function(f){return{statusCode:fwa(f.code),
statusMessage:f.message}})};
e=Hz.prototype;e.deleteLink=function(a){return this.galRepository.deleteLink(a,this.config.accountLinkingEntryPoint).then(function(){return{statusCode:1}}).catch(function(b){return{statusCode:fwa(b.code),
statusMessage:b.message}})};
e.startLinkingSession=function(a,b){return Fz(a,void 0!==b?b:qz(),this.config,this.galService,void 0,void 0)};
e.startLinkingSessionWithCapabilities=function(a,b,c){return Fz(a,void 0!==c?c:qz(),this.config,this.galService,b,void 0)};
e.startLinkingSessionWithScopes=function(a,b,c){return Fz(a,void 0!==c?c:qz(),this.config,this.galService,void 0,b)};
e.startTwoWayLinkingSession=function(a,b,c){return Gz(a,void 0!==c?c:qz(),this.config,this.galService,b,void 0,void 0)};
e.startTwoWayLinkingSessionWithCapabilities=function(a,b,c,d){return Gz(a,void 0!==d?d:qz(),this.config,this.galService,c,b,void 0)};
e.startTwoWayLinkingSessionWithScopes=function(a,b,c,d){return Gz(a,void 0!==d?d:qz(),this.config,this.galService,c,void 0,b)};
e.finishLinkService=function(a){var b=this.config,c=this.galService;var d=new Bz().getSession(a);if(null===d)d=Promise.resolve({statusCode:2});else{Ez(a);var f=hva(d.linkingSessionSerialized),g=""!==d.googleScopesString?new Set(d.googleScopesString.split(",")):void 0;a=new Dz(a,d.sessionId,b,c,f,g);d=cwa(a.serviceId,a.sessionId,d.currentFlow,a.config,a.galService,a.linkingSession,a.googleScopes)}return d};
function fwa(a){switch(a){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 10;}}
;var Kz=function(a,b){var c=b||{};b=c.document||document;var d=Gb(a),f=pg("SCRIPT"),g={script_:f,timeout_:void 0},l=new gt(gwa,g),m=null,n=null!=c.timeout?c.timeout:5E3;0<n&&(m=window.setTimeout(function(){Iz(f,!0);l.errback(new Jz(1,"Timeout reached for loading script "+d))},n),g.timeout_=m);
f.onload=f.onreadystatechange=function(){f.readyState&&"loaded"!=f.readyState&&"complete"!=f.readyState||(Iz(f,c.cleanupWhenDone||!1,m),l.callback(null))};
f.onerror=function(){Iz(f,!0,m);l.errback(new Jz(0,"Error while loading script "+d))};
g=c.attributes||{};A.extend(g,{type:"text/javascript",charset:"UTF-8"});hg(f,g);wc(f,a);hwa(b).appendChild(f);return l},hwa=function(a){var b=dg("HEAD",a);
return b&&0!=b.length?b[0]:a.documentElement},gwa=function(){if(this&&this.script_){var a=this.script_;
a&&"SCRIPT"==a.tagName&&Iz(a,!0,this.timeout_)}},Iz=function(a,b,c){null!=c&&t.clearTimeout(c);
a.onload=Ka;a.onerror=Ka;a.onreadystatechange=Ka;b&&window.setTimeout(function(){ug(a)},0)},Jz=function(a,b){var c="Jsloader error (code #"+a+")";
b&&(c+=": "+b);Za.call(this,c);this.code=a};
w(Jz,Za);function iwa(){var a={timeout:5E3};a=void 0===a?{}:a;return null!=Lz?Lz:Lz=jwa(a)}
var Lz=null;function kwa(){return new Promise(function(a,b){window.gapi.load("client",{callback:a,onerror:b})})}
function jwa(a){a=void 0===a?{}:a;return Xa(this,function c(){var d;return ya(c,function(f){if(1==f.nextAddress)return(d=window.gapi)&&d.client&&d.client.load?f.return(d):q(f,Kz(Kb(Cb("https://apis.google.com/js/api.js")),a),2);if(3!=f.nextAddress){d=window.gapi;if(!d)throw Error("Could not load gapi.client.");return d.client&&d.client.load?f.jumpTo(3):q(f,kwa(),3)}return f.return(d)})})}
var Mz=new WeakMap;function lwa(a,b){b=void 0===b?0:b;var c=a.auth2.getAuthInstance().currentUser.get(),d=c.getAuthResponse(!0);if(d&&d.expires_at-Date.now()<b){if(Mz.has(a))return Mz.get(a);b=Promise.resolve(c.reloadAuthResponse()).then(function(){Mz.delete(a)});
Mz.set(a,b);return b}return Promise.resolve()}
function mwa(a,b){return a.client.init({apiKey:b.apiKey,clientId:b.clientId,scope:b.scope,discoveryDocs:b.discoveryDocs,hostedDomain:b.hostedDomain})}
;function nwa(a){if(null!=a.queryParams){var b={},c;for(c in a.queryParams)void 0!==a.queryParams[c]&&(b[c]=a.queryParams[c]);a.queryParams=b}}
;var owa=function(){};
owa.prototype.send=function(a,b){nwa(a);return this.makeRequest(a).then(function(c){if(b){var d=new b;if(null!=c){if(null==b)throw Error("Cannot deserialize, target constructor was null.");new b;throw Error("Cannot find ClassMetadata.")}c=d}return c})};var Nz=function(a,b,c,d,f){this.gapiUrl=a;this.gapiKey=b;this.customGapiPromise=null;this.gapiConfigUpdates=c||{};this.gapiAuthParams=d||{};this.defaultApiId=f};
p(Nz,owa);Nz.prototype.setGapiPromise=function(a){this.customGapiPromise=a};
var Pz=function(a){return(a.customGapiPromise||iwa()).then(function(b){b=b||window.gapi;Oz(a,b);return mwa(b,{apiKey:a.gapiKey,clientId:a.gapiAuthParams.clientId,scope:a.gapiAuthParams.scope,hostedDomain:a.gapiAuthParams.hostedDomain}).then(function(){return b})})};
Nz.prototype.makeRequest=function(a){var b=this;return Pz(this).then(function(c){return Xa(b,function f(){var g=this;return ya(f,function(l){if(1==l.nextAddress)return void 0===g.gapiAuthParams.minAuthTokenTimeRemaining?l.jumpTo(2):q(l,lwa(c,g.gapiAuthParams.minAuthTokenTimeRemaining),2);Oz(g,c);return l.return(pwa(c.client.request(qwa(g,a))))})})})};
Nz.prototype.makeBatchRequest=function(a){var b=this;return Pz(this).then(function(c){return Xa(b,function f(){var g=this,l,m,n,r,v;return ya(f,function(z){if(1==z.nextAddress)return void 0===g.gapiAuthParams.minAuthTokenTimeRemaining?z.jumpTo(2):q(z,lwa(c,g.gapiAuthParams.minAuthTokenTimeRemaining),2);Oz(g,c);l=c.client.newBatch();m=k(a);for(n=m.next();!n.done;n=m.next())r=n.value,v=c.client.request(qwa(g,r)),l.add(v);return z.return(rwa(l))})})})};
var qwa=function(a,b){return{root:a.gapiUrl,path:b.path,method:b.httpMethod,body:b.body,params:b.queryParams,headers:b.headers,authType:b.authType,apiId:b.apiId||a.defaultApiId}},pwa=function(a){return new Promise(function(b,c){a.then(function(d){b(Qz(d))},function(d){c(Qz(d))})})},rwa=function(a){return a.then(function(b){return Object.values(b.result).map(function(c){return Qz(c)})},function(b){throw b.result;
})},Qz=function(a){return!1===a.result&&null!=a.body?{data:a.body}:a.result},Oz=function(a,b){for(var c in a.gapiConfigUpdates)if(a.gapiConfigUpdates.hasOwnProperty(c)){var d=b,f=c,g=a.gapiConfigUpdates[c],l=d.config.get(f);
g!==l&&d.config.update(f,g)}};var Rz=function(a,b,c,d,f,g){this.apiKey=b;this.authUser=c;this.oauthToken=d;this.bucket=f;if(void 0===d){if(void 0===b)throw Error("apiKey must be set for first-party authentication");this.requestService=new Nz(a,b,{"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0,"client/xd4":void 0===g||!1===g,"client/xd3":!0===g})}this.galServiceClient=new Fva(a)};
e=Rz.prototype;e.checkAccountByAssertion=function(a){var b=a.serviceId,c=a.sessionId;return Xa(this,function f(){var g=this,l;return ya(f,function(m){l=new kx().setHeader(g.getHeader(c)).setServiceId(b);return m.return(g.makeRequest(g.galServiceClient.checkAccountByAssertion,l))})})};
e.createAccountByAssertion=function(a){var b=a.serviceId,c=a.sessionId,d=a.consentLanguageKeys,f=a.scopes;return Xa(this,function l(){var m=this,n;return ya(l,function(r){if(void 0!==d&&void 0!==f)throw Error("consentLanguageKeys and scopes should not be set together");n=new nx().setHeader(m.getHeader(c)).setServiceId(b);void 0!==d?n.setConsentLanguageKeys(d):void 0!==f&&n.setScopesList(Array.from(f.values()));return r.return(m.makeRequest(m.galServiceClient.createAccountByAssertion,n))})})};
e.deleteLink=function(a){var b=a.serviceId,c=a.sessionId,d=a.accountLinkingEntryPoint;return Xa(this,function g(){var l=this,m;return ya(g,function(n){m=new qx().setHeader(l.getHeader(c)).setQuery(swa({serviceId:b})).setEntryPoint(d);return n.return(l.makeRequest(l.galServiceClient.deleteLink,m))})})};
e.finishOAuth=function(a){var b=a.serviceId,c=a.sessionId,d=a.redirectState;return Xa(this,function g(){var l=this,m;return ya(g,function(n){var r=new xx().setHeader(l.getHeader(c)).setServiceId(b);m=Jf(r,4,d);return n.return(l.makeRequest(l.galServiceClient.finishOAuth,m))})})};
e.getLink=function(a){var b=a.serviceId,c=a.sessionId,d=a.scopes,f=a.capabilities,g=a.consistencyKey;return Xa(this,function m(){var n=this,r;return ya(m,function(v){r=new Xx().setHeader(n.getHeader(c)).setQuery(swa({serviceId:b,scopes:d,capabilities:f}));void 0!==g&&r.setReadOptions(vta().setConsistencyKey(g));return v.return(n.makeRequest(n.galServiceClient.getLink,r))})})};
e.getServiceDetails=function(a){var b=a.serviceId,c=a.sessionId;return Xa(this,function f(){var g=this,l;return ya(f,function(m){l=new Yx().setHeader(g.getHeader(c)).setServiceId(b);return m.return(g.makeRequest(g.galServiceClient.getServiceDetails,l))})})};
e.linkByAssertion=function(a){var b=a.serviceId,c=a.sessionId,d=a.consentLanguageKeys,f=a.scopes;return Xa(this,function l(){var m=this,n;return ya(l,function(r){if(void 0!==d&&void 0!==f)throw Error("consentLanguageKeys and scopes should not be set together");n=new cy().setHeader(m.getHeader(c)).setServiceId(b);void 0!==d?n.setConsentLanguageKeys(d):void 0!==f&&n.setScopesList(Array.from(f.values()));return r.return(m.makeRequest(m.galServiceClient.linkByAssertion,n))})})};
e.depositGoogleCredential=function(a){var b=a.serviceId,c=a.sessionId,d=a.googleScopes,f=a.consistencyKey;return Xa(this,function l(){var m=this,n;return ya(l,function(r){n=new vx().setHeader(m.getHeader(c)).setServiceId(b).setGoogleScopesGrantedTo3pList(Array.from(d.values())).setReadOptions(vta().setConsistencyKey(f));return r.return(m.makeRequest(m.galServiceClient.depositGoogleCredential,n))})})};
e.startLinkingSession=function(a){var b=a.serviceId,c=a.sessionId,d=a.scopes,f=a.capabilities,g=a.supportedFlows,l=a.completionUrl,m=a.twoWayLinking,n=a.accountLinkingEntryPoint;return Xa(this,function v(){var z=this,C;return ya(v,function(J){if(void 0!==f&&void 0!==d)throw Error("capabilities and scopes should not be set together");C=new Hy().setHeader(z.getHeader(c)).setServiceId(b);void 0!==f?C.setCapabilitiesList(Array.from(f.values())):void 0!==d&&C.setScopesList(Array.from(d.values()));void 0!==
l&&C.setCompletionUrl(l);void 0!==g&&C.setSupportedFlowsList(Array.from(g.values()));void 0!==m&&If(C,8,m);void 0!==n&&C.setEntryPoint(n);return J.return(z.makeRequest(z.galServiceClient.startLinkingSession,C))})})};
e.getMetadata=function(){return Xa(this,function b(){var c,d=this,f,g;return ya(b,function(l){if(1==l.nextAddress)return c={},d.requestService?q(l,Pz(d.requestService),3):(c.Authorization="Bearer "+d.oauthToken,l.jumpTo(2));2!=l.nextAddress&&(f=l.yieldResult,c["X-Goog-Api-Key"]=d.apiKey,c["X-Goog-AuthUser"]=void 0!==d.authUser?d.authUser.toString():"0",(g=f.auth.getAuthHeaderValueForFirstParty([]))&&(c.Authorization=g));return l.return(c)})})};
e.makeRequest=function(a,b){return Xa(this,function d(){var f=this,g;return ya(d,function(l){if(1==l.nextAddress)return q(l,f.getMetadata(),2);g=l.yieldResult;return l.return(a.bind(f.galServiceClient)(b,g))})})};
e.getHeader=function(a){var b=new Sw;b.setSessionId(a);Kf(b,5,3);void 0!==this.bucket&&b.setBucket(this.bucket);return b};
var swa=function(a){var b=a.serviceId,c=a.scopes;a=a.capabilities;if(void 0!==a&&void 0!==c)throw Error("capabilities and scopes should not be set together");b=new Iw().setServiceId(b);void 0!==a?b.setCapabilitiesList(Array.from(a.values())):void 0!==c&&b.setScopesList(Array.from(c.values()));return b};
Rz.prototype.setClientForTest=function(a){this.galServiceClient=a};var twa=function(a){this.galService=new Rz(a.alsDomain,a.apiKey,a.authUser,a.oauthToken,a.bucket,a.clientXd3);this.galRepository=new rz(this.galService)};
twa.prototype.getService=function(){return this.galService};
function uwa(a){return new Hz(a,new twa(a))}
;var Sz=function(a){hf(this,a,0,-1,null,null)};
w(Sz,G);Sz.prototype.toObject=function(a){return vwa(a,this)};
var vwa=function(a,b){var c,d={version:null==(c=I(b,1))?void 0:c,library:null==(c=I(b,2))?void 0:c};a&&(d.$jspbMessageInstance=b);return d};
Sz.prototype.serializeBinary=function(){var a=new D;wwa(this,a);return F(a)};
var wwa=function(a,b){var c=I(a,1);null!=c&&b.writeInt32(1,c);c=I(a,2);null!=c&&b.writeEnum(2,c)};
e=Sz.prototype;e.getVersion=function(){return I(this,1)};
e.setVersion=function(a){return uf(this,1,a)};
e.clearVersion=function(){return wf(this,1)};
e.hasVersion=function(){return K(this,1)};
e.getLibrary=function(){return I(this,2)};
e.clearLibrary=function(){return wf(this,2)};
e.hasLibrary=function(){return K(this,2)};var Uz=function(a){hf(this,a,0,-1,null,Tz)};
w(Uz,G);var Tz=[[1,2,15]];Uz.prototype.toObject=function(a){return Vz(a,this)};
var Vz=function(a,b){var c,d={isPublic:null==(c=nf(b,1))?void 0:c,isPrivateToUser:null==(c=nf(b,2))?void 0:c,isEnd:null==(c=nf(b,15))?void 0:c};a&&(d.$jspbMessageInstance=b);return d};
Uz.prototype.serializeBinary=function(){var a=new D;Wz(this,a);return F(a)};
var Wz=function(a,b){var c=I(a,1);null!=c&&b.writeBool(1,c);c=I(a,2);null!=c&&b.writeBool(2,c);c=I(a,15);null!=c&&b.writeBool(15,c)};
e=Uz.prototype;e.getIsPublic=function(){return nf(this,1)};
e.clearIsPublic=function(){return Df(this,1,Tz[0])};
e.hasIsPublic=function(){return K(this,1)};
e.getIsPrivateToUser=function(){return nf(this,2)};
e.clearIsPrivateToUser=function(){return Df(this,2,Tz[0])};
e.hasIsPrivateToUser=function(){return K(this,2)};
e.getIsEnd=function(){return nf(this,15)};
e.setIsEnd=function(a){return Cf(this,15,Tz[0],a)};
e.clearIsEnd=function(){return Df(this,15,Tz[0])};
e.hasIsEnd=function(){return K(this,15)};var Xz=function(a){hf(this,a,0,-1,xwa,null)};
w(Xz,G);var Zz=function(a){hf(this,a,0,-1,null,Yz)};
w(Zz,G);var xwa=[1];Xz.prototype.toObject=function(a){return $z(a,this)};
var $z=function(a,b){var c,d={partsList:jf(Mf(b,Zz,1),ywa,a),sentinelPart:null==(c=I(b,2))?void 0:c};a&&(d.$jspbMessageInstance=b);return d};
Xz.prototype.serializeBinary=function(){var a=new D;aA(this,a);return F(a)};
var aA=function(a,b){var c=Mf(a,Zz,1);0<c.length&&We(b,1,c,zwa);c=I(a,2);null!=c&&b.writeEnum(2,c)},Yz=[[5,
4,3,6,7,2,1,8,9,10,11,12]];Zz.prototype.toObject=function(a){return ywa(a,this)};
var ywa=function(a,b){var c,d={bytesDecreasing:of(I(b,5)),signedNumDecreasing:null==(c=I(b,4))?void 0:c,stringDecreasing:null==(c=I(b,3))?void 0:c,numDecreasing:null==(c=I(b,6))?void 0:c,bytes:of(I(b,7)),signedNumIncreasing:null==(c=I(b,2))?void 0:c,string:null==(c=I(b,1))?void 0:c,numIncreasing:null==(c=I(b,8))?void 0:c,doubleDecreasing:null==(c=mf(b,9))?void 0:c,doubleIncreasing:null==(c=mf(b,10))?void 0:c,timestampDecreasing:(c=M(b,Kh,11))&&Lh(a,c),timestampIncreasing:(c=M(b,Kh,12))&&Lh(a,c)};
a&&(d.$jspbMessageInstance=b);return d};
Zz.prototype.serializeBinary=function(){var a=new D;zwa(this,a);return F(a)};
var zwa=function(a,b){var c=I(a,5);null!=c&&b.writeBytes(5,c);c=I(a,4);null!=c&&b.writeInt64String(4,c);c=I(a,3);null!=c&&b.writeString(3,c);c=I(a,6);null!=c&&Te(b,6,c);c=I(a,7);null!=c&&b.writeBytes(7,c);c=I(a,2);null!=c&&b.writeInt64String(2,c);c=I(a,1);null!=c&&b.writeString(1,c);c=I(a,8);null!=c&&Te(b,8,c);c=I(a,9);null!=c&&b.writeDouble(9,c);c=I(a,10);null!=c&&b.writeDouble(10,c);c=M(a,Kh,11);null!=c&&b.writeMessage(11,c,Mh);c=M(a,Kh,12);null!=c&&b.writeMessage(12,c,Mh)};
e=Zz.prototype;e.clearBytesDecreasing=function(){return Df(this,5,Yz[0])};
e.hasBytesDecreasing=function(){return K(this,5)};
e.clearSignedNumDecreasing=function(){return Df(this,4,Yz[0])};
e.hasSignedNumDecreasing=function(){return K(this,4)};
e.clearStringDecreasing=function(){return Df(this,3,Yz[0])};
e.hasStringDecreasing=function(){return K(this,3)};
e.getNumDecreasing=function(){return I(this,6)};
e.setNumDecreasing=function(a){return Cf(this,6,Yz[0],a)};
e.clearNumDecreasing=function(){return Df(this,6,Yz[0])};
e.hasNumDecreasing=function(){return K(this,6)};
e.clearBytes=function(){return Df(this,7,Yz[0])};
e.hasBytes=function(){return K(this,7)};
e.clearSignedNumIncreasing=function(){return Df(this,2,Yz[0])};
e.hasSignedNumIncreasing=function(){return K(this,2)};
e.getString=function(){return I(this,1)};
e.clearString=function(){return Df(this,1,Yz[0])};
e.hasString=function(){return K(this,1)};
e.getNumIncreasing=function(){return I(this,8)};
e.setNumIncreasing=function(a){return Cf(this,8,Yz[0],a)};
e.clearNumIncreasing=function(){return Df(this,8,Yz[0])};
e.hasNumIncreasing=function(){return K(this,8)};
e.clearDoubleDecreasing=function(){return Df(this,9,Yz[0])};
e.hasDoubleDecreasing=function(){return K(this,9)};
e.clearDoubleIncreasing=function(){return Df(this,10,Yz[0])};
e.hasDoubleIncreasing=function(){return K(this,10)};
e.clearTimestampDecreasing=function(){return Ff(this,11,Yz[0])};
e.hasTimestampDecreasing=function(){return K(this,11)};
e.clearTimestampIncreasing=function(){return Ff(this,12,Yz[0])};
e.hasTimestampIncreasing=function(){return K(this,12)};
e=Xz.prototype;e.setPartsList=function(a){return Af(this,1,a)};
e.clearPartsList=function(){return Bf(this,1)};
e.getSentinelPart=function(){return I(this,2)};
e.clearSentinelPart=function(){return wf(this,2)};
e.hasSentinelPart=function(){return K(this,2)};var eA=function(a){hf(this,a,0,-1,null,bA)};
w(eA,G);var bA=[[1,2]];eA.prototype.getProjectCase=function(){return gf(this,bA[0])};
eA.prototype.toObject=function(a){return fA(a,this)};
var fA=function(a,b){var c,d={name:null==(c=I(b,1))?void 0:c,isEnd:null==(c=nf(b,2))?void 0:c};a&&(d.$jspbMessageInstance=b);return d};
eA.prototype.serializeBinary=function(){var a=new D;gA(this,a);return F(a)};
var gA=function(a,b){var c=I(a,1);null!=c&&b.writeString(1,c);c=I(a,2);null!=c&&b.writeBool(2,c)};
e=eA.prototype;e.getName=function(){return I(this,1)};
e.setName=function(a){return Cf(this,1,bA[0],a)};
e.clearName=function(){return Df(this,1,bA[0])};
e.hasName=function(){return K(this,1)};
e.getIsEnd=function(){return nf(this,2)};
e.setIsEnd=function(a){return Cf(this,2,bA[0],a)};
e.clearIsEnd=function(){return Df(this,2,bA[0])};
e.hasIsEnd=function(){return K(this,2)};var hA=function(a){hf(this,a,0,-1,null,null)};
w(hA,G);hA.prototype.toObject=function(a){return iA(a,this)};
var iA=function(a,b){var c,d={project:(c=b.getProject())&&fA(a,c),owner:(c=b.getOwner())&&Vz(a,c),path:(c=b.getPath())&&$z(a,c)};a&&(d.$jspbMessageInstance=b);return d};
hA.prototype.serializeBinary=function(){var a=new D;jA(this,a);return F(a)};
var jA=function(a,b){var c=a.getProject();null!=c&&b.writeMessage(1,c,gA);c=a.getOwner();null!=c&&b.writeMessage(2,c,Wz);c=a.getPath();null!=c&&b.writeMessage(3,c,aA)};
e=hA.prototype;e.getProject=function(){return M(this,eA,1)};
e.setProject=function(a){yf(this,1,a)};
e.clearProject=function(){return zf(this,1)};
e.hasProject=function(){return K(this,1)};
e.getOwner=function(){return M(this,Uz,2)};
e.setOwner=function(a){yf(this,2,a)};
e.clearOwner=function(){return zf(this,2)};
e.hasOwner=function(){return K(this,2)};
e.getPath=function(){return M(this,Xz,3)};
e.setPath=function(a){return yf(this,3,a)};
e.clearPath=function(){return zf(this,3)};
e.hasPath=function(){return K(this,3)};var kA=function(a){hf(this,a,0,-1,null,null)};
w(kA,G);kA.prototype.toObject=function(a){return Awa(a,this)};
var Awa=function(a,b){var c,d={objectId:(c=M(b,hA,1))&&iA(a,c),payload:of(I(b,2)),version:null==(c=I(b,3))?void 0:c,changeTimeMicros:null==(c=I(b,4))?void 0:c};a&&(d.$jspbMessageInstance=b);return d};
kA.prototype.serializeBinary=function(){var a=new D;Bwa(this,a);return F(a)};
var Bwa=function(a,b){var c=M(a,hA,1);null!=c&&b.writeMessage(1,c,jA);c=I(a,2);null!=c&&b.writeBytes(2,c);c=I(a,3);null!=c&&b.writeInt64String(3,c);c=I(a,4);null!=c&&Ue(b,4,c)};
e=kA.prototype;e.setObjectId=function(a){yf(this,1,a)};
e.clearObjectId=function(){return zf(this,1)};
e.hasObjectId=function(){return K(this,1)};
e.setPayload=function(a){return uf(this,2,a)};
e.clearPayload=function(){return wf(this,2)};
e.hasPayload=function(){return K(this,2)};
e.getVersion=function(){return I(this,3)};
e.setVersion=function(a){return uf(this,3,a)};
e.clearVersion=function(){return wf(this,3)};
e.hasVersion=function(){return K(this,3)};
e.getChangeTimeMicros=function(){return I(this,4)};
e.setChangeTimeMicros=function(a){return uf(this,4,a)};
e.clearChangeTimeMicros=function(){return wf(this,4)};
e.hasChangeTimeMicros=function(){return K(this,4)};var lA=function(a){hf(this,a,0,-1,null,null)};
w(lA,G);lA.prototype.toObject=function(a){return Cwa(a,this)};
var Cwa=function(a,b){var c,d={project:(c=b.getProject())&&fA(a,c),owner:(c=b.getOwner())&&Vz(a,c),prefix:(c=b.getPrefix())&&$z(a,c)};a&&(d.$jspbMessageInstance=b);return d};
lA.prototype.serializeBinary=function(){var a=new D;Dwa(this,a);return F(a)};
var Dwa=function(a,b){var c=a.getProject();null!=c&&b.writeMessage(1,c,gA);c=a.getOwner();null!=c&&b.writeMessage(2,c,Wz);c=a.getPrefix();null!=c&&b.writeMessage(3,c,aA)};
e=lA.prototype;e.getProject=function(){return M(this,eA,1)};
e.setProject=function(a){yf(this,1,a)};
e.clearProject=function(){return zf(this,1)};
e.hasProject=function(){return K(this,1)};
e.getOwner=function(){return M(this,Uz,2)};
e.setOwner=function(a){yf(this,2,a)};
e.clearOwner=function(){return zf(this,2)};
e.hasOwner=function(){return K(this,2)};
e.getPrefix=function(){return M(this,Xz,3)};
e.setPrefix=function(a){yf(this,3,a)};
e.clearPrefix=function(){return zf(this,3)};
e.hasPrefix=function(){return K(this,3)};var mA=function(a){hf(this,a,0,-1,null,null)};
w(mA,G);mA.prototype.toObject=function(a){return Ewa(a,this)};
var Ewa=function(a,b){var c,d={project:(c=b.getProject())&&fA(a,c),owner:(c=b.getOwner())&&Vz(a,c),minPath:(c=M(b,Xz,5))&&$z(a,c),maxPath:(c=M(b,Xz,6))&&$z(a,c)};a&&(d.$jspbMessageInstance=b);return d};
mA.prototype.serializeBinary=function(){var a=new D;Fwa(this,a);return F(a)};
var Fwa=function(a,b){var c=a.getProject();null!=c&&b.writeMessage(3,c,gA);c=a.getOwner();null!=c&&b.writeMessage(4,c,Wz);c=M(a,Xz,5);null!=c&&b.writeMessage(5,c,aA);c=M(a,Xz,6);null!=c&&b.writeMessage(6,c,aA)};
e=mA.prototype;e.getProject=function(){return M(this,eA,3)};
e.setProject=function(a){yf(this,3,a)};
e.clearProject=function(){return zf(this,3)};
e.hasProject=function(){return K(this,3)};
e.getOwner=function(){return M(this,Uz,4)};
e.setOwner=function(a){yf(this,4,a)};
e.clearOwner=function(){return zf(this,4)};
e.hasOwner=function(){return K(this,4)};
e.setMinPath=function(a){return yf(this,5,a)};
e.clearMinPath=function(){return zf(this,5)};
e.hasMinPath=function(){return K(this,5)};
e.setMaxPath=function(a){return yf(this,6,a)};
e.clearMaxPath=function(){return zf(this,6)};
e.hasMaxPath=function(){return K(this,6)};var oA=function(a){hf(this,a,0,-1,null,nA)};
w(oA,G);var nA=[[2,3,6]];oA.prototype.getObjectIdsCase=function(){return gf(this,nA[0])};
oA.prototype.toObject=function(a){return pA(a,this)};
var pA=function(a,b){var c,d={header:(c=b.getHeader())&&vwa(a,c),startTimeMicros:null==(c=I(b,1))?void 0:c,point:(c=b.getPoint())&&iA(a,c),range:(c=b.getRange())&&Ewa(a,c),prefix:(c=b.getPrefix())&&Cwa(a,c),monitoringTag:null==(c=I(b,5))?void 0:c};a&&(d.$jspbMessageInstance=b);return d};
oA.prototype.serializeBinary=function(){var a=new D;qA(this,a);return F(a)};
var qA=function(a,b){var c=a.getHeader();null!=c&&b.writeMessage(4,c,wwa);c=I(a,1);null!=c&&Ue(b,1,c);c=a.getPoint();null!=c&&b.writeMessage(2,c,jA);c=a.getRange();null!=c&&b.writeMessage(3,c,Fwa);c=a.getPrefix();null!=c&&b.writeMessage(6,c,Dwa);c=I(a,5);null!=c&&b.writeString(5,c)};
e=oA.prototype;e.getHeader=function(){return M(this,Sz,4)};
e.setHeader=function(a){return yf(this,4,a)};
e.clearHeader=function(){return zf(this,4)};
e.hasHeader=function(){return K(this,4)};
e.getStartTimeMicros=function(){return I(this,1)};
e.clearStartTimeMicros=function(){return wf(this,1)};
e.hasStartTimeMicros=function(){return K(this,1)};
e.getPoint=function(){return M(this,hA,2)};
e.clearPoint=function(){return Ff(this,2,nA[0])};
e.hasPoint=function(){return K(this,2)};
e.getRange=function(){return M(this,mA,3)};
e.setRange=function(a){return Ef(this,3,nA[0],a)};
e.clearRange=function(){return Ff(this,3,nA[0])};
e.hasRange=function(){return K(this,3)};
e.getPrefix=function(){return M(this,lA,6)};
e.setPrefix=function(a){Ef(this,6,nA[0],a)};
e.clearPrefix=function(){return Ff(this,6,nA[0])};
e.hasPrefix=function(){return K(this,6)};
e.getMonitoringTag=function(){return I(this,5)};
e.setMonitoringTag=function(a){return uf(this,5,a)};
e.clearMonitoringTag=function(){return wf(this,5)};
e.hasMonitoringTag=function(){return K(this,5)};var rA=function(a){hf(this,a,0,-1,null,null)};
w(rA,G);rA.prototype.toObject=function(a){var b,c={watchRequest:(b=M(this,oA,1))&&pA(a,b)};a&&(c.$jspbMessageInstance=this);return c};
rA.prototype.serializeBinary=function(){var a=new D;var b=M(this,oA,1);null!=b&&a.writeMessage(1,b,qA);return F(a)};
rA.prototype.clearWatchRequest=function(){return zf(this,1)};
rA.prototype.hasWatchRequest=function(){return K(this,1)};var sA=function(a){hf(this,a,0,-1,null,null)};
w(sA,G);e=sA.prototype;e.toObject=function(a){var b,c={gsessionid:null==(b=I(this,1))?void 0:b};a&&(c.$jspbMessageInstance=this);return c};
e.serializeBinary=function(){var a=new D;var b=I(this,1);null!=b&&a.writeString(1,b);return F(a)};
e.setGsessionid=function(a){return uf(this,1,a)};
e.clearGsessionid=function(){return wf(this,1)};
e.hasGsessionid=function(){return K(this,1)};var uA=function(a){hf(this,a,0,-1,null,tA)};
w(uA,G);var vA=function(a){hf(this,a,0,-1,null,null)};
w(vA,G);var tA=[[2,3]];uA.prototype.getRequestCase=function(){return gf(this,tA[0])};
uA.prototype.toObject=function(a){return Gwa(a,this)};
var Gwa=function(a,b){var c,d={streamId:null==(c=I(b,1))?void 0:c,open:(c=M(b,oA,2))&&pA(a,c),close:(c=b.getClose())&&Hwa(a,c)};a&&(d.$jspbMessageInstance=b);return d};
uA.prototype.serializeBinary=function(){var a=new D;Iwa(this,a);return F(a)};
var Iwa=function(a,b){var c=I(a,1);null!=c&&b.writeInt64String(1,c);c=M(a,oA,2);null!=c&&b.writeMessage(2,c,qA);c=a.getClose();null!=c&&b.writeMessage(3,c,Jwa)};
vA.prototype.toObject=function(a){return Hwa(a,this)};
var Hwa=function(a,b){var c={};a&&(c.$jspbMessageInstance=b);return c};
vA.prototype.serializeBinary=function(){return F(new D)};
var Jwa=function(){};
e=uA.prototype;e.setStreamId=function(a){uf(this,1,a)};
e.clearStreamId=function(){return wf(this,1)};
e.hasStreamId=function(){return K(this,1)};
e.clearOpen=function(){return Ff(this,2,tA[0])};
e.hasOpen=function(){return K(this,2)};
e.getClose=function(){return M(this,vA,3)};
e.setClose=function(a){Ef(this,3,tA[0],a)};
e.clearClose=function(){return Ff(this,3,tA[0])};var wA=function(a){hf(this,a,0,-1,Kwa,null)};
w(wA,G);var Kwa=[1];wA.prototype.toObject=function(a){var b={requestsList:jf(Mf(this,uA,1),Gwa,a)};a&&(b.$jspbMessageInstance=this);return b};
wA.prototype.serializeBinary=function(){var a=new D;var b=Mf(this,uA,1);0<b.length&&We(a,1,b,Iwa);return F(a)};
wA.prototype.setRequestsList=function(a){return Af(this,1,a)};
wA.prototype.clearRequestsList=function(){return Bf(this,1)};var yA=function(a){hf(this,a,0,-1,null,xA)};
w(yA,G);var zA=function(a){hf(this,a,0,-1,null,null)};
w(zA,G);var AA=function(a){hf(this,a,0,-1,Lwa,null)};
w(AA,G);var BA=function(a){hf(this,a,0,-1,null,null)};
w(BA,G);var CA=function(a){hf(this,a,0,-1,null,null)};
w(CA,G);var xA=[[1,2,3,5]];yA.prototype.toObject=function(a){return Mwa(a,this)};
var Mwa=function(a,b){var c,d={start:(c=M(b,zA,1))&&Nwa(a,c),changes:(c=M(b,AA,2))&&Owa(a,c),advance:(c=M(b,BA,3))&&Pwa(a,c),resync:(c=M(b,CA,5))&&Qwa(a,c)};a&&(d.$jspbMessageInstance=b);return d};
yA.prototype.serializeBinary=function(){var a=new D;Rwa(this,a);return F(a)};
var Rwa=function(a,b){var c=M(a,zA,1);null!=c&&b.writeMessage(1,c,Swa);c=M(a,AA,2);null!=c&&b.writeMessage(2,c,Twa);c=M(a,BA,3);null!=c&&b.writeMessage(3,c,Uwa);c=M(a,CA,5);null!=c&&b.writeMessage(5,c,Vwa)};
zA.prototype.toObject=function(a){return Nwa(a,this)};
var Nwa=function(a,b){var c={};a&&(c.$jspbMessageInstance=b);return c};
zA.prototype.serializeBinary=function(){return F(new D)};
var Swa=function(){},Lwa=[1];
AA.prototype.toObject=function(a){return Owa(a,this)};
var Owa=function(a,b){var c={changesList:jf(Mf(b,kA,1),Awa,a)};a&&(c.$jspbMessageInstance=b);return c};
AA.prototype.serializeBinary=function(){var a=new D;Twa(this,a);return F(a)};
var Twa=function(a,b){a=Mf(a,kA,1);0<a.length&&We(b,1,a,Bwa)};
AA.prototype.setChangesList=function(a){return Af(this,1,a)};
AA.prototype.addChanges=function(a,b){return Nf(this,1,a,kA,b)};
AA.prototype.clearChangesList=function(){return Bf(this,1)};
BA.prototype.toObject=function(a){return Pwa(a,this)};
var Pwa=function(a,b){var c,d={timestampMicros:null==(c=I(b,1))?void 0:c};a&&(d.$jspbMessageInstance=b);return d};
BA.prototype.serializeBinary=function(){var a=new D;Uwa(this,a);return F(a)};
var Uwa=function(a,b){a=I(a,1);null!=a&&b.writeInt64String(1,a)};
BA.prototype.setTimestampMicros=function(a){return uf(this,1,a)};
BA.prototype.clearTimestampMicros=function(){return wf(this,1)};
BA.prototype.hasTimestampMicros=function(){return K(this,1)};
CA.prototype.toObject=function(a){return Qwa(a,this)};
var Qwa=function(a,b){var c={};a&&(c.$jspbMessageInstance=b);return c};
CA.prototype.serializeBinary=function(){return F(new D)};
var Vwa=function(){};
e=yA.prototype;e.setStart=function(a){return Ef(this,1,xA[0],a)};
e.clearStart=function(){return Ff(this,1,xA[0])};
e.hasStart=function(){return K(this,1)};
e.setChanges=function(a){return Ef(this,2,xA[0],a)};
e.clearChanges=function(){return Ff(this,2,xA[0])};
e.hasChanges=function(){return K(this,2)};
e.setAdvance=function(a){return Ef(this,3,xA[0],a)};
e.clearAdvance=function(){return Ff(this,3,xA[0])};
e.hasAdvance=function(){return K(this,3)};
e.setResync=function(a){return Ef(this,5,xA[0],a)};
e.clearResync=function(){return Ff(this,5,xA[0])};
e.hasResync=function(){return K(this,5)};var lf=function(a){hf(this,a,0,1,null,null)};
w(lf,G);lf.prototype.toObject=function(a){return Wwa(a,this)};
var Wwa=function(a,b){var c={},d=lf.prototype.getExtension,f;for(f in Qf){var g=Qf[f],l=d.call(b,g);if(null!=l){for(var m in g.fieldName)if(g.fieldName.hasOwnProperty(m))break;c[m]=g.toObjectFn?g.isRepeated?jf(l,g.toObjectFn,a):g.toObjectFn(a,l):l}}a&&(c.$jspbMessageInstance=b);return c},Xwa=function(a,b){for(;ce(b);){var c=a,d=b,f=kf,g=lf.prototype.setExtension;
if(1==d.nextField_&&3==d.nextWireType_){for(var l=0,m=null;ce(d)&&(0!=d.nextWireType_||0!=d.nextField_);)if(0==d.nextWireType_&&2==d.nextField_)l=d.readUint32();else if(2==d.nextWireType_&&3==d.nextField_)m=d.readBytes();else if(4==d.nextWireType_)break;else de(d);if(1!=d.nextField_||4!=d.nextWireType_||null==m||0==l)throw Error("Malformed binary bytes for message set");if(d=f[l])f=d.fieldInfo,l=new f.ctor,d.binaryMessageDeserializeFn.call(l,l,new be(m)),g.call(c,f,l)}else de(d)}return a};
lf.prototype.serializeBinary=function(){var a=new D;kda(this,a);return F(a)};
var Ywa=function(a,b){kda(a,b)};var DA=function(a){hf(this,a,0,-1,null,null)};
w(DA,G);DA.prototype.toObject=function(a){return EA(a,this)};
var EA=function(a,b){var c,d={code:null==(c=I(b,1))?void 0:c,space:null==(c=I(b,2))?void 0:c,message:null==(c=I(b,3))?void 0:c,canonicalCode:null==(c=I(b,6))?void 0:c,messageSet:(c=M(b,lf,5))&&Wwa(a,c)};a&&(d.$jspbMessageInstance=b);return d};
DA.prototype.serializeBinary=function(){var a=new D;FA(this,a);return F(a)};
var FA=function(a,b){var c=I(a,1);null!=c&&b.writeInt32(1,c);c=I(a,2);null!=c&&b.writeString(2,c);c=I(a,3);null!=c&&b.writeString(3,c);c=I(a,6);null!=c&&b.writeInt32(6,c);c=M(a,lf,5);null!=c&&b.writeMessage(5,c,Ywa)},Zwa=new function(){var a=EA;
this.fieldIndex=10071;this.fieldName={messageSetExtension:0};this.ctor=DA;this.toObjectFn=a;this.isRepeated=0};
kf[10071]=new function(a,b,c,d,f,g){this.fieldInfo=a;this.binaryReaderFn=b;this.binaryWriterFn=c;this.binaryMessageSerializeFn=d;this.binaryMessageDeserializeFn=f;this.isPacked=g||!1}(Zwa,be.prototype.readMessage,D.prototype.writeMessageSet,FA,function(a,b){for(;ce(b)&&4!=b.nextWireType_;)switch(b.nextField_){case 1:var c=b.readInt32();
a.setCode(c);break;case 2:c=b.readString();uf(a,2,c);break;case 3:c=b.readString();a.setMessage(c);break;case 6:c=b.readInt32();uf(a,6,c);break;case 5:c=new lf;b.readMessage(c,Xwa);yf(a,5,c);break;default:de(b);}return a},!1);
Qf[10071]=Zwa;e=DA.prototype;e.getCode=function(){return I(this,1)};
e.setCode=function(a){uf(this,1,a)};
e.clearCode=function(){return wf(this,1)};
e.hasCode=function(){return K(this,1)};
e.getSpace=function(){return I(this,2)};
e.clearSpace=function(){return wf(this,2)};
e.hasSpace=function(){return K(this,2)};
e.getMessage=function(){return I(this,3)};
e.setMessage=function(a){uf(this,3,a)};
e.clearMessage=function(){return wf(this,3)};
e.hasMessage=function(){return K(this,3)};
e.getCanonicalCode=function(){return I(this,6)};
e.clearCanonicalCode=function(){return wf(this,6)};
e.hasCanonicalCode=function(){return K(this,6)};
e.clearMessageSet=function(){return zf(this,5)};
e.hasMessageSet=function(){return K(this,5)};var HA=function(a){hf(this,a,0,-1,null,GA)};
w(HA,G);var IA=function(a){hf(this,a,0,-1,null,null)};
w(IA,G);var GA=[[2,3]];HA.prototype.getResponseCase=function(){return gf(this,GA[0])};
HA.prototype.toObject=function(a){return $wa(a,this)};
var $wa=function(a,b){var c,d={streamId:null==(c=I(b,1))?void 0:c,watchResponse:(c=M(b,yA,2))&&Mwa(a,c),close:(c=b.getClose())&&axa(a,c)};a&&(d.$jspbMessageInstance=b);return d};
HA.prototype.serializeBinary=function(){var a=new D;bxa(this,a);return F(a)};
var bxa=function(a,b){var c=I(a,1);null!=c&&b.writeInt64String(1,c);c=M(a,yA,2);null!=c&&b.writeMessage(2,c,Rwa);c=a.getClose();null!=c&&b.writeMessage(3,c,cxa)};
IA.prototype.toObject=function(a){return axa(a,this)};
var axa=function(a,b){var c,d={status:(c=b.getStatus())&&EA(a,c)};a&&(d.$jspbMessageInstance=b);return d};
IA.prototype.serializeBinary=function(){var a=new D;cxa(this,a);return F(a)};
var cxa=function(a,b){a=a.getStatus();null!=a&&b.writeMessage(1,a,FA)};
IA.prototype.getStatus=function(){return M(this,DA,1)};
IA.prototype.setStatus=function(a){return yf(this,1,a)};
IA.prototype.clearStatus=function(){return zf(this,1)};
IA.prototype.hasStatus=function(){return K(this,1)};
e=HA.prototype;e.getStreamId=function(){return I(this,1)};
e.setStreamId=function(a){uf(this,1,a)};
e.clearStreamId=function(){return wf(this,1)};
e.hasStreamId=function(){return K(this,1)};
e.setWatchResponse=function(a){return Ef(this,2,GA[0],a)};
e.clearWatchResponse=function(){return Ff(this,2,GA[0])};
e.hasWatchResponse=function(){return K(this,2)};
e.getClose=function(){return M(this,IA,3)};
e.setClose=function(a){Ef(this,3,GA[0],a)};
e.clearClose=function(){return Ff(this,3,GA[0])};
e.hasClose=function(){return K(this,3)};var JA=function(a){hf(this,a,0,-1,null,null)};
w(JA,G);JA.prototype.toObject=function(a){return dxa(a,this)};
var dxa=function(a,b){var c,d={code:null==(c=I(b,1))?void 0:c};a&&(d.$jspbMessageInstance=b);return d};
JA.prototype.serializeBinary=function(){var a=new D;exa(this,a);return F(a)};
var exa=function(a,b){a=I(a,1);null!=a&&b.writeEnum(1,a)};
JA.prototype.getCode=function(){return I(this,1)};
JA.prototype.setCode=function(a){uf(this,1,a)};
JA.prototype.clearCode=function(){return wf(this,1)};
JA.prototype.hasCode=function(){return K(this,1)};var KA=function(a){hf(this,a,0,-1,fxa,null)};
w(KA,G);var fxa=[1];e=KA.prototype;e.toObject=function(a){var b,c={responsesList:jf(Mf(this,HA,1),$wa,a),status:(b=this.getStatus())&&dxa(a,b)};a&&(c.$jspbMessageInstance=this);return c};
e.serializeBinary=function(){var a=new D;var b=Mf(this,HA,1);0<b.length&&We(a,1,b,bxa);b=this.getStatus();null!=b&&a.writeMessage(2,b,exa);return F(a)};
e.setResponsesList=function(a){return Af(this,1,a)};
e.addResponses=function(a,b){return Nf(this,1,a,HA,b)};
e.clearResponsesList=function(){return Bf(this,1)};
e.getStatus=function(){return M(this,JA,2)};
e.setStatus=function(a){return yf(this,2,a)};
e.clearStatus=function(){return zf(this,2)};
e.hasStatus=function(){return K(this,2)};var LA=function(){ii.call(this,"d")};
w(LA,ii);var MA=function(){ii.call(this,"c")};
w(MA,ii);var gxa=function(a,b){this.path=a;this.authMethod=b},NA=function(a,b,c,d,f){this.channelMessageHandler=a;
this.channelStatusHandler=b;this.config=c;this.channelCreator=d;this.state=0;this.channelHandler=new Oq;this.channel=this.createWebChannel(f)};
NA.prototype.createWebChannel=function(a){var b=this;a={sendRawJson:!0,messageContentType:"application/json+protobuf",httpSessionIdParam:void 0,messageUrlParams:Object.assign({gsessionid:a},this.config.authMethod.getQueryParameters()),messageHeaders:this.config.authMethod.getHeaders(),supportsCrossDomainXhr:this.config.authMethod.usesCredentialedRequests()};a=this.channelCreator(this.config.path,a);this.channelHandler.listen(a,"a",function(){b.channelStatusHandler.onOpen()});
this.channelHandler.listen(a,"b",function(){b.channelStatusHandler.onClose(new OA(b.channel.channel_).getLastStatusCode());b.state=2;b.channel.removeAllListeners();b.channelHandler.removeAll()});
this.channelHandler.listen(a,"d",function(c){(c=c.data)&&1===c.length&&b.channelMessageHandler(new KA(c[0]))});
this.channelHandler.listen(a,"c",function(c){b.channelStatusHandler.onError(c,new OA(b.channel.channel_).getLastStatusCode());0!==c.status&&(b.state=2)});
return a};
NA.prototype.open=function(){0===this.state&&(this.state=1,this.channel.open())};
NA.prototype.close=function(){2!==this.state&&this.channel.close()};
NA.prototype.send=function(a){a=a.serialize();this.channel.send(a)};var hxa,ixa=new Sz().setVersion(2);hxa=uf(ixa,2,5);var PA=function(a,b,c){this.objectId=a;this.version=b;this.payload=c},jxa=function(){},kxa=function(a){this.timestampMicros=a};var lxa={ERAS:["BC","AD"],ERANAMES:["Before Christ","Anno Domini"],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"January February March April May June July August September October November December".split(" "),STANDALONEMONTHS:"January February March April May June July August September October November December".split(" "),SHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONESHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),
WEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),STANDALONEWEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),SHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),STANDALONESHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),NARROWWEEKDAYS:"SMTWTFS".split(""),STANDALONENARROWWEEKDAYS:"SMTWTFS".split(""),SHORTQUARTERS:["Q1","Q2","Q3","Q4"],QUARTERS:["1st quarter","2nd quarter","3rd quarter","4th quarter"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE, MMMM d, y",
"MMMM d, y","MMM d, y","M/d/yy"],TIMEFORMATS:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],DATETIMEFORMATS:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:5},QA=lxa;QA=lxa;var RA=function(a,b){switch(b){case 1:return 0!=a%4||0==a%100&&0!=a%400?28:29;case 5:case 8:case 10:case 3:return 30;}return 31},SA=function(a,b,c,d,f){a=new Date(a,b,c);
f=f||0;return a.valueOf()+864E5*(((void 0!==d?d:3)-f+7)%7-((a.getDay()+6)%7-f+7)%7)},mxa=function(a,b,c,d,f){a=SA(a,b,c,d,f);
return Math.floor(Math.round((a-new Date(new Date(a).getFullYear(),0,1).valueOf())/864E5)/7)+1},UA=function(a,b,c){"number"===typeof a?(this.date=nxa(a,b||0,c||1),TA(this,c||1)):Pa(a)?(this.date=nxa(a.getFullYear(),a.getMonth(),a.getDate()),TA(this,a.getDate())):(this.date=new Date(Va()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),TA(this,a))},nxa=function(a,b,c){b=new Date(a,b,c);
0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b};
e=UA.prototype;e.firstDayOfWeek_=QA.FIRSTDAYOFWEEK;e.firstWeekCutOffDay_=QA.FIRSTWEEKCUTOFFDAY;e.clone=function(){var a=new UA(this.date);a.firstDayOfWeek_=this.firstDayOfWeek_;a.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return a};
e.getFullYear=function(){return this.date.getFullYear()};
e.getYear=function(){return this.getFullYear()};
e.getMonth=function(){return this.date.getMonth()};
e.getDate=function(){return this.date.getDate()};
e.getTime=function(){return this.date.getTime()};
e.getDay=function(){return this.date.getDay()};
e.getWeekday=function(){return((this.getDay()+6)%7-this.firstDayOfWeek_+7)%7};
e.getUTCFullYear=function(){return this.date.getUTCFullYear()};
e.getUTCMonth=function(){return this.date.getUTCMonth()};
e.getUTCDate=function(){return this.date.getUTCDate()};
e.getUTCDay=function(){return this.date.getDay()};
e.getUTCHours=function(){return this.date.getUTCHours()};
e.getUTCMinutes=function(){return this.date.getUTCMinutes()};
e.getUTCWeekday=function(){return((this.date.getUTCDay()+6)%7-this.firstDayOfWeek_+7)%7};
e.getNumberOfDaysInMonth=function(){return RA(this.getFullYear(),this.getMonth())};
e.getWeekNumber=function(){return mxa(this.getFullYear(),this.getMonth(),this.getDate(),this.firstWeekCutOffDay_,this.firstDayOfWeek_)};
e.getYearOfWeek=function(){return new Date(SA(this.getFullYear(),this.getMonth(),this.getDate(),this.firstWeekCutOffDay_,this.firstDayOfWeek_)).getFullYear()};
e.getDayOfYear=function(){for(var a=this.getDate(),b=this.getFullYear(),c=this.getMonth()-1;0<=c;c--)a+=RA(b,c);return a};
e.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
e.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};
e.setFullYear=function(a){this.date.setFullYear(a)};
e.setYear=function(a){this.setFullYear(a)};
e.setMonth=function(a){this.date.setMonth(a)};
e.setDate=function(a){this.date.setDate(a)};
e.setTime=function(a){this.date.setTime(a)};
e.setUTCFullYear=function(a){this.date.setUTCFullYear(a)};
e.setUTCMonth=function(a){this.date.setUTCMonth(a)};
e.setUTCDate=function(a){this.date.setUTCDate(a)};
e.add=function(a){if(a.years||a.months){var b=this.getMonth()+a.months+12*a.years,c=this.getYear()+Math.floor(b/12);b%=12;0>b&&(b+=12);var d=Math.min(RA(c,b),this.getDate());this.setDate(1);this.setFullYear(c);this.setMonth(b);this.setDate(d)}a.days&&(a=new Date(new Date(this.getYear(),this.getMonth(),this.getDate(),12).getTime()+864E5*a.days),this.setDate(1),this.setFullYear(a.getFullYear()),this.setMonth(a.getMonth()),this.setDate(a.getDate()),TA(this,a.getDate()))};
e.toIsoString=function(a){return[this.getFullYear(),Fc(this.getMonth()+1,2),Fc(this.getDate(),2)].join(a?"-":"")+""};
e.toUTCIsoString=function(a){return[this.getUTCFullYear(),Fc(this.getUTCMonth()+1,2),Fc(this.getUTCDate(),2)].join(a?"-":"")+""};
e.equals=function(a){return!(!a||this.getYear()!=a.getYear()||this.getMonth()!=a.getMonth()||this.getDate()!=a.getDate())};
e.toString=function(){return this.toIsoString()};
var TA=function(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))};
UA.prototype.valueOf=function(){return this.date.valueOf()};
var VA=function(a,b,c,d,f,g,l){this.date="number"===typeof a?new Date(a,b||0,c||1,d||0,f||0,g||0,l||0):new Date(a&&a.getTime?a.getTime():Va())};
w(VA,UA);e=VA.prototype;e.getHours=function(){return this.date.getHours()};
e.getMinutes=function(){return this.date.getMinutes()};
e.getSeconds=function(){return this.date.getSeconds()};
e.getMilliseconds=function(){return this.date.getMilliseconds()};
e.getUTCDay=function(){return this.date.getUTCDay()};
e.getUTCHours=function(){return this.date.getUTCHours()};
e.getUTCMinutes=function(){return this.date.getUTCMinutes()};
e.getUTCSeconds=function(){return this.date.getUTCSeconds()};
e.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
e.setHours=function(a){this.date.setHours(a)};
e.setMinutes=function(a){this.date.setMinutes(a)};
e.setSeconds=function(a){this.date.setSeconds(a)};
e.setMilliseconds=function(a){this.date.setMilliseconds(a)};
e.setUTCHours=function(a){this.date.setUTCHours(a)};
e.setUTCMinutes=function(a){this.date.setUTCMinutes(a)};
e.setUTCSeconds=function(a){this.date.setUTCSeconds(a)};
e.setUTCMilliseconds=function(a){this.date.setUTCMilliseconds(a)};
e.isMidnight=function(){return 0==this.getHours()&&0==this.getMinutes()&&0==this.getSeconds()&&0==this.getMilliseconds()};
e.add=function(a){UA.prototype.add.call(this,a);a.hours&&this.setUTCHours(this.date.getUTCHours()+a.hours);a.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+a.minutes);a.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+a.seconds)};
e.toIsoString=function(a){var b=UA.prototype.toIsoString.call(this,a);return a?b+"T"+Fc(this.getHours(),2)+":"+Fc(this.getMinutes(),2)+":"+Fc(this.getSeconds(),2):b+"T"+Fc(this.getHours(),2)+Fc(this.getMinutes(),2)+Fc(this.getSeconds(),2)};
e.toXmlDateTime=function(a){var b=UA.prototype.toIsoString.call(this,!0)+"T"+Fc(this.getHours(),2)+":"+Fc(this.getMinutes(),2)+":"+Fc(this.getSeconds(),2);if(a){if(a=this.getTimezoneOffset(),0==a)a="Z";else{var c=Math.abs(a)/60,d=Math.floor(c);c=60*(c-d);a=(0<a?"-":"+")+Fc(d,2)+":"+Fc(c,2)}}else a="";return b+a};
e.toUTCIsoString=function(a){var b=UA.prototype.toUTCIsoString.call(this,a);return a?b+"T"+Fc(this.getUTCHours(),2)+":"+Fc(this.getUTCMinutes(),2)+":"+Fc(this.getUTCSeconds(),2):b+"T"+Fc(this.getUTCHours(),2)+Fc(this.getUTCMinutes(),2)+Fc(this.getUTCSeconds(),2)};
e.toUTCRfc3339String=function(){var a=this.toUTCIsoString(!0),b=this.getUTCMilliseconds();return(b?a+"."+Fc(b,3):a)+"Z"};
e.equals=function(a){return this.getTime()==a.getTime()};
e.toString=function(){return this.toIsoString()};
e.toUsTimeString=function(a,b,c){var d=this.getHours();void 0===b&&(b=!0);var f=12==d;12<d&&(d-=12,f=!0);0==d&&b&&(d=12);a=a?Fc(d,2):String(d);d=this.getMinutes();if(!c||0<d)a+=":"+Fc(d,2);b&&(a+=f?" PM":" AM");return a};
e.toIsoTimeString=function(a){var b=Fc(this.getHours(),2)+":"+Fc(this.getMinutes(),2);if(void 0===a||a)b+=":"+Fc(this.getSeconds(),2);return b};
e.clone=function(){var a=new VA(this.date);a.firstDayOfWeek_=this.firstDayOfWeek_;a.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return a};var WA=function(a,b){this.seconds=a;this.nanos=b};
WA.prototype.asDateTime=function(){var a=1E3*this.seconds+Math.floor(this.nanos/1E6),b=new VA;b.setTime(a);return b};
WA.prototype.asDate=function(){return new Date(1E3*this.seconds+Math.floor(this.nanos/1E6))};
var oxa=function(a){var b=new Kh;b.setSeconds(a.seconds);b.setNanos(a.nanos);return b},pxa=function(a){try{var b=a.getSeconds(),c=rf(a,2);
if(-62135596800>b)throw Error("seconds must be at least -62135596800: "+b);if(253402300800<=b)throw Error("seconds must be less than 253402300800: "+b);if(0>c)throw Error("nanos must be at least 0: "+c);if(1E9<=c)throw Error("nanos must be less than 1000000000: "+c);if(!Number.isInteger(b))throw Error("seconds must be integer: "+b);if(!Number.isInteger(c))throw Error("nanos must be integer: "+c);return new WA(b,c)}catch(d){return null}};
WA.prototype.equals=function(a){return this.seconds===a.seconds&&this.nanos===a.nanos};var XA=function(a,b){this.low_=a|0;this.high_=b|0};
XA.prototype.toInt=function(){return this.low_};
var YA=function(a){return 4294967296*a.high_+(a.low_>>>0)};
XA.prototype.isSafeInteger=function(){var a=this.high_>>21;return 0==a||-1==a&&!(0==this.low_&&-2097152==this.high_)};
XA.prototype.toString=function(a){a=a||10;if(2>a||36<a)throw Error("radix out of range: "+a);if(this.isSafeInteger()){var b=YA(this);return 10==a?""+b:b.toString(a)}b=14-(a>>2);var c=Math.pow(a,b),d=ZA(c,c/4294967296);c=this.div(d);d=Math.abs(YA($A(this,c.multiply(d))));var f=10==a?""+d:d.toString(a);f.length<b&&(f="0000000000000".substr(f.length-b)+f);d=YA(c);return(10==a?d:d.toString(a))+f};
XA.prototype.getHighBits=function(){return this.high_};
XA.prototype.getLowBits=function(){return this.low_};
var aB=function(a){return 0==a.low_&&0==a.high_};
e=XA.prototype;e.isOdd=function(){return 1==(this.low_&1)};
e.equals=function(a){return this.low_==a.low_&&this.high_==a.high_};
e.notEquals=function(a){return!this.equals(a)};
e.lessThan=function(a){return 0>this.compare(a)};
e.compare=function(a){return this.high_==a.high_?this.low_==a.low_?0:this.low_>>>0>a.low_>>>0?1:-1:this.high_>a.high_?1:-1};
e.negate=function(){var a=~this.low_+1|0;return ZA(a,~this.high_+!a|0)};
e.add=function(a){var b=this.high_>>>16,c=this.high_&65535,d=this.low_>>>16,f=a.high_>>>16,g=a.high_&65535,l=a.low_>>>16;a=(this.low_&65535)+(a.low_&65535);l=(a>>>16)+(d+l);d=l>>>16;d+=c+g;b=(d>>>16)+(b+f)&65535;return ZA((l&65535)<<16|a&65535,b<<16|d&65535)};
var $A=function(a,b){return a.add(b.negate())};
e=XA.prototype;e.multiply=function(a){if(aB(this))return this;if(aB(a))return a;var b=this.high_>>>16,c=this.high_&65535,d=this.low_>>>16,f=this.low_&65535,g=a.high_>>>16,l=a.high_&65535,m=a.low_>>>16;a=a.low_&65535;var n=f*a;var r=(n>>>16)+d*a;var v=r>>>16;r=(r&65535)+f*m;v+=r>>>16;v+=c*a;var z=v>>>16;v=(v&65535)+d*m;z+=v>>>16;v=(v&65535)+f*l;z=z+(v>>>16)+(b*a+c*m+d*l+f*g)&65535;return ZA((r&65535)<<16|n&65535,z<<16|v&65535)};
e.div=function(a){if(aB(a))throw Error("division by zero");if(0>this.high_){if(this.equals(bB)){if(a.equals(cB)||a.equals(qxa))return bB;if(a.equals(bB))return cB;var b=1;if(0==b)b=this;else{var c=this.high_;b=32>b?ZA(this.low_>>>b|c<<32-b,c>>b):ZA(c>>b-32,0<=c?0:-1)}b=b.div(a).shiftLeft(1);if(b.equals(dB))return 0>a.high_?cB:qxa;c=$A(this,a.multiply(b));return b.add(c.div(a))}return 0>a.high_?this.negate().div(a.negate()):this.negate().div(a).negate()}if(aB(this))return dB;if(0>a.high_)return a.equals(bB)?
dB:this.div(a.negate()).negate();var d=dB;for(c=this;0<=c.compare(a);){b=Math.max(1,Math.floor(YA(c)/YA(a)));var f=Math.ceil(Math.log(b)/Math.LN2);f=48>=f?1:Math.pow(2,f-48);for(var g=eB(b),l=g.multiply(a);0>l.high_||0<l.compare(c);)b-=f,g=eB(b),l=g.multiply(a);aB(g)&&(g=cB);d=d.add(g);c=$A(c,l)}return d};
e.modulo=function(a){return $A(this,this.div(a).multiply(a))};
e.not=function(){return ZA(~this.low_,~this.high_)};
e.and=function(a){return ZA(this.low_&a.low_,this.high_&a.high_)};
e.or=function(a){return ZA(this.low_|a.low_,this.high_|a.high_)};
e.xor=function(a){return ZA(this.low_^a.low_,this.high_^a.high_)};
e.shiftLeft=function(a){a&=63;if(0==a)return this;var b=this.low_;return 32>a?ZA(b<<a,this.high_<<a|b>>>32-a):ZA(0,b<<a-32)};
e.shiftRightUnsigned=function(a){a&=63;if(0==a)return this;var b=this.high_;return 32>a?ZA(this.low_>>>a|b<<32-a,b>>>a):32==a?ZA(b,0):ZA(b>>>a-32,0)};
var eB=function(a){return 0<a?0x7fffffffffffffff<=a?rxa:new XA(a,a/4294967296):0>a?-9223372036854776000>=a?bB:new XA(-a,-a/4294967296).negate():dB},ZA=function(a,b){return new XA(a,b)},fB=function(a,b){if("-"==a.charAt(0))return fB(a.substring(1),b).negate();
var c=parseInt(a,b||10);if(9007199254740991>=c)return new XA(c%4294967296|0,c/4294967296|0);if(0==a.length)throw Error("number format error: empty string");if(0<=a.indexOf("-"))throw Error("number format error: interior \"-\" character: "+a);b=b||10;if(2>b||36<b)throw Error("radix out of range: "+b);c=eB(Math.pow(b,8));for(var d=dB,f=0;f<a.length;f+=8){var g=Math.min(8,a.length-f),l=parseInt(a.substring(f,f+g),b);8>g?(g=eB(Math.pow(b,g)),d=d.multiply(g).add(eB(l))):(d=d.multiply(c),d=d.add(eB(l)))}return d},
dB=ZA(0,0),cB=ZA(1,0),qxa=ZA(-1,-1),rxa=ZA(4294967295,2147483647),bB=ZA(0,2147483648);var gB=function(a,b){this.value=a;this.isDecreasing=!!b};
gB.prototype.equals=function(a){if(this.isDecreasing!==a.isDecreasing)var b=!1;else if("string"===typeof this.value||"number"===typeof this.value)b=this.value===a.value;else if(this.value instanceof XA)b=a.value instanceof XA?this.value.equals(a.value):!1;else if(this.value instanceof Uint8Array){if(a.value instanceof Uint8Array){a:if(b=this.value,a=a.value,b.length!==a.length)b=!1;else{for(var c=0;c<b.length;++c)if(b[c]!==a[c]){b=!1;break a}b=!0}}else b=!1;}else b=this.value instanceof WA?a.value instanceof
WA?this.value.equals(a.value):!1:!1;return b};
function hB(a){return new gB((a instanceof gB?a:new gB(a)).value,!0)}
var iB=function(a,b){this.parts=a;this.isPrivate=b},txa=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];
return new iB(sxa(b),!1)},uxa=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];
return new iB(sxa(b),!0)};
iB.prototype.isPrivateToUser=function(){return this.isPrivate};
iB.prototype.equals=function(a){var b;if(b=this.parts.length===a.parts.length)a:if(this.isPrivate!==a.isPrivate||this.parts.length>a.parts.length)b=!1;else{for(b=0;b<this.parts.length;++b)if(!this.parts[b].equals(a.parts[b])){b=!1;break a}b=!0}return b};
var vxa=function(a){this.root=a};
function sxa(a){var b=[];a=k(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c instanceof gB?b.push(c):b.push(new gB(c));return b}
;var jB=function(a,b,c){this.apiKey=a;this.authUser=b;this.pageId=c};
e=jB.prototype;e.getHeaders=function(){var a={},b=ct();null!=b&&(a.Authorization=b.scheme+" "+b.hash,a["X-Goog-AuthUser"]=String(this.authUser||0));(b=this.pageId)&&(a["X-Goog-PageId"]=b);return a};
e.getQueryParameters=function(){return{key:this.apiKey}};
e.domainType=function(){return 0};
e.usesCredentialedRequests=function(){return!0};
e.getSubscriberKind=function(){return 11};
var kB=function(a,b){this.oauthTokens=a;this.pageId=b};
e=kB.prototype;e.getHeaders=function(){var a={};a.Authorization="OAuth "+this.oauthTokens.getValue();var b=this.pageId;b&&(a["X-Goog-PageId"]=b);return a};
e.getQueryParameters=function(){return{}};
e.domainType=function(){return 1};
e.usesCredentialedRequests=function(){return!0};
e.getSubscriberKind=function(){return 11};
var lB=function(a,b){this.apiKey=a;this.appAuthTokens=b};
e=lB.prototype;e.getHeaders=function(){return{}};
e.getQueryParameters=function(){return{key:this.apiKey}};
e.domainType=function(){return 1};
e.usesCredentialedRequests=function(){return!1};
e.getSubscriberKind=function(){return 13};function mB(a){Promise.resolve().then(a)}
function wxa(a){switch(a){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2;}}
;var xxa={send:function(a,b,c,d,f,g,l){toa(a,b,c,d,f,g,l)}};var yxa=function(a,b,c){this.code=a;this.message=b;this.status=c},nB=function(a,b){b=void 0===b?xxa:b;
this.baseUri=a;this.xhrIo=b};
nB.prototype.post=function(a,b,c,d){d=void 0===d?{}:d;return this.request("POST",a,b,c,d)};
nB.prototype.request=function(a,b,c,d,f){var g=this,l=new jq(this.baseUri);l.setPath(b);if(f.queryParams){b=k(Object.entries(f.queryParams));for(var m=b.next();!m.done;m=b.next()){var n=k(m.value);m=n.next().value;n=n.next().value;$q(l,m,n)}}var r={"Content-type":"application/json+protobuf"};Object.assign(r,f.extraHeaders);var v=c.serialize();return new Promise(function(z,C){g.xhrIo.send(l,function(){var J=-1===this.getStatus()?void 0:this.getStatus();if(this.isSuccess())try{z(Of(d,this.getResponseText()))}catch(E){C(new yxa(4,
"Failed to deserialize response from "+l+": "+this.getResponseText(),J))}else C(new yxa(this.lastErrorCode_,this.getLastError(),J))},a,v,r,2E4,f.withCredentials)})};var zxa=null,oB=function(){return zxa=zxa||new zi},Axa=function(a,b){ii.call(this,"serverreachability",a);
this.reachabilityType=b};
w(Axa,ii);var pB=function(a){var b=oB();b.dispatchEvent(new Axa(b,a))},Bxa=function(a,b){ii.call(this,"statevent",a);
this.stat=b};
w(Bxa,ii);var qB=function(a){var b=oB();b.dispatchEvent(new Bxa(b,a))},Cxa=function(a,b,c,d){ii.call(this,"timingevent",a);
this.size=b;this.rtt=c;this.retries=d};
w(Cxa,ii);var Dxa=function(a,b,c){var d=oB();d.dispatchEvent(new Cxa(d,a,b,c))},rB=function(a,b){if("function"!==typeof a)throw Error("Fn must not be null and must be a function");
return t.setTimeout(function(){a()},b)};var sB=function(){this.logger_=null;this.redactEnabled_=!0};
e=sB.prototype;e.disableRedact=function(){this.redactEnabled_=!1};
e.browserOfflineResponse=function(a){this.info(function(){return"BROWSER_OFFLINE: "+a})};
e.xmlHttpChannelRequest=function(a,b,c,d,f){var g=this;this.info(function(){return"XMLHTTP REQ ("+c+") [attempt "+d+"]: "+a+"\n"+b+"\n"+g.maybeRedactPostData_(f)})};
e.xmlHttpChannelResponseMetaData=function(a,b,c,d,f,g){this.info(function(){return"XMLHTTP RESP ("+c+") [ attempt "+d+"]: "+a+"\n"+b+"\n"+f+" "+g})};
e.xmlHttpChannelResponseText=function(a,b,c){var d=this;this.info(function(){return"XMLHTTP TEXT ("+a+"): "+d.redactResponse_(b)+(c?" "+c:"")})};
e.timeoutResponse=function(a){this.info(function(){return"TIMEOUT: "+a})};
e.debug=function(){};
e.dumpException=function(){};
e.info=function(){};
e.warning=function(){};
e.severe=function(){};
e.redactResponse_=function(a){if(!this.redactEnabled_)return a;if(!a)return null;try{var b=JSON.parse(a);if(b)for(var c=0;c<b.length;c++)Array.isArray(b[c])&&this.maybeRedactArray_(b[c]);return uj(b)}catch(d){return this.debug("Exception parsing expected JS array - probably was not JS"),a}};
e.maybeRedactArray_=function(a){if(!(2>a.length||(a=a[1],!Array.isArray(a)||1>a.length))){var b=a[0];if("noop"!=b&&"stop"!=b&&"close"!=b)for(b=1;b<a.length;b++)a[b]=""}};
e.maybeRedactPostData_=function(a){if(!this.redactEnabled_)return a;if(!a)return null;var b="";a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].split("=");if(1<d.length){var f=d[0];d=d[1];var g=f.split("_");b=2<=g.length&&"type"==g[1]?b+(f+"="+d+"&"):b+(f+"=redacted&")}}return b};var tB=function(a,b,c,d,f){this.channel_=a;this.channelDebug_=b;this.sid_=c;this.rid_=d;this.retryId_=f||1;this.eventHandler_=new Oq(this);this.timeout_=45E3;a=ve?125:void 0;this.pollingTimer_=new Xi(a);this.extraHeaders_=null;this.successful_=!1;this.postData_=this.requestUri_=this.baseUri_=this.type_=this.requestStartTime_=this.watchDogTimeoutTime_=this.watchDogTimerId_=null;this.pendingMessages_=[];this.xmlHttp_=null;this.xmlHttpChunkStart_=0;this.lastError_=this.verb_=null;this.lastStatusCode_=
-1;this.cancelled_=!1;this.readyStateChangeThrottleMs_=0;this.readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1},Exa=function(a,b){switch(a){case 0:return"Non-200 return code ("+b+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error";}},Fxa={},uB={};
e=tB.prototype;e.setExtraHeaders=function(a){this.extraHeaders_=a};
e.setVerb=function(a){this.verb_=a};
e.setTimeout=function(a){this.timeout_=a};
e.setReadyStateChangeThrottle=function(a){this.readyStateChangeThrottleMs_=a};
e.getPendingMessages=function(){return this.pendingMessages_};
e.xmlHttpPost=function(a,b,c){this.type_=1;this.baseUri_=Vq(a.clone());this.postData_=b;this.decodeChunks_=c;this.sendXmlHttp_(null)};
e.xmlHttpGet=function(a,b,c){this.type_=1;this.baseUri_=Vq(a.clone());this.postData_=null;this.decodeChunks_=b;this.sendXmlHttp_(c)};
e.sendXmlHttp_=function(a){this.requestStartTime_=Va();Wq(this);this.requestUri_=this.baseUri_.clone();Xq(this.requestUri_,"t",this.retryId_);this.xmlHttpChunkStart_=0;this.xmlHttp_=this.channel_.createXhrIo(this.channel_.shouldUseSecondaryDomains()?a:null);0<this.readyStateChangeThrottleMs_&&(this.readyStateChangeThrottle_=new Nq(u(this.xmlHttpHandler_,this,this.xmlHttp_),this.readyStateChangeThrottleMs_));this.eventHandler_.listen(this.xmlHttp_,"readystatechange",this.readyStateChangeHandler_);
a=this.extraHeaders_?A.clone(this.extraHeaders_):{};this.postData_?(this.verb_||(this.verb_="POST"),a["Content-Type"]="application/x-www-form-urlencoded",this.xmlHttp_.send(this.requestUri_,this.verb_,this.postData_,a)):(this.verb_="GET",this.xmlHttp_.send(this.requestUri_,this.verb_,null,a));pB(1);this.channelDebug_.xmlHttpChannelRequest(this.verb_,this.requestUri_,this.rid_,this.retryId_,this.postData_)};
e.readyStateChangeHandler_=function(a){a=a.target;var b=this.readyStateChangeThrottle_;b&&3==a.getReadyState()?(this.channelDebug_.debug("Throttling readystatechange."),b.fire()):this.xmlHttpHandler_(a)};
e.xmlHttpHandler_=function(a){try{if(a==this.xmlHttp_)this.onXmlHttpReadyStateChanged_();else this.channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(b){this.channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
e.onXmlHttpReadyStateChanged_=function(){var a=this.xmlHttp_.getReadyState(),b=this.xmlHttp_.lastErrorCode_,c=this.xmlHttp_.getStatus();if(!(3>a||3==a&&!ve&&!this.xmlHttp_.getResponseText())){this.cancelled_||4!=a||7==b||(8==b||0>=c?pB(3):pB(2));Yq(this);var d=this.xmlHttp_.getStatus();this.lastStatusCode_=d;b=this.xmlHttp_.getResponseText();if(!b){var f=this;this.channelDebug_.debug(function(){return"No response text for uri "+f.requestUri_+" status "+d})}this.successful_=200==d;
this.channelDebug_.xmlHttpChannelResponseMetaData(this.verb_,this.requestUri_,this.rid_,this.retryId_,a,d);if(this.successful_){if(this.decodeInitialResponse_&&!this.initialResponseDecoded_)if(c=Gxa(this))this.channelDebug_.xmlHttpChannelResponseText(this.rid_,c,"Initial handshake response via X-HTTP-Initial-Response"),this.initialResponseDecoded_=!0,this.safeOnRequestData_(c);else{this.successful_=!1;this.lastError_=3;qB(12);this.channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
this.rid_+")");this.cleanup_();Zq(this);return}this.decodeChunks_?(this.decodeNextChunks_(a,b),ve&&this.successful_&&3==a&&aoa(this)):(this.channelDebug_.xmlHttpChannelResponseText(this.rid_,b,null),this.safeOnRequestData_(b));4==a&&this.cleanup_();if(this.successful_&&!this.cancelled_)if(4==a)this.channel_.onRequestComplete(this);else this.successful_=!1,Wq(this)}else 400==d&&0<b.indexOf("Unknown SID")?(this.lastError_=3,qB(12),this.channelDebug_.warning("XMLHTTP Unknown SID ("+this.rid_+")")):(this.lastError_=
0,qB(13),this.channelDebug_.warning("XMLHTTP Bad status "+d+" ("+this.rid_+")")),this.cleanup_(),Zq(this)}};
var Gxa=function(a){return a.xmlHttp_&&(a=sr(a.xmlHttp_,"X-HTTP-Initial-Response"))&&!Nb(a)?a:null};
e=tB.prototype;
e.decodeNextChunks_=function(a,b){for(var c=!0;!this.cancelled_&&this.xmlHttpChunkStart_<b.length;){var d=this.getNextChunk_(b);if(d==uB){4==a&&(this.lastError_=4,qB(14),c=!1);this.channelDebug_.xmlHttpChannelResponseText(this.rid_,null,"[Incomplete Response]");break}else if(d==Fxa){this.lastError_=4;qB(15);this.channelDebug_.xmlHttpChannelResponseText(this.rid_,b,"[Invalid Chunk]");c=!1;break}else this.channelDebug_.xmlHttpChannelResponseText(this.rid_,d,null),this.safeOnRequestData_(d)}4==a&&0==
b.length&&(this.lastError_=1,qB(16),c=!1);this.successful_=this.successful_&&c;c?0<b.length&&!this.firstByteReceived_&&(this.firstByteReceived_=!0,a=this.channel_,a.backChannelRequest_==this&&a.detectBufferingProxy_&&!a.bpDetectionDone_&&(a.channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+b.length),vB(a),a.bpDetectionDone_=!0,qB(11))):(this.channelDebug_.xmlHttpChannelResponseText(this.rid_,b,"[Invalid Chunked Response]"),this.cleanup_(),Zq(this))};
e.pollResponse_=function(){if(this.xmlHttp_){var a=this.xmlHttp_.getReadyState(),b=this.xmlHttp_.getResponseText();this.xmlHttpChunkStart_<b.length&&(Yq(this),this.decodeNextChunks_(a,b),this.successful_&&4!=a&&Wq(this))}};
e.startPolling_=function(){this.eventHandler_.listen(this.pollingTimer_,"tick",this.pollResponse_);this.pollingTimer_.start()};
e.getNextChunk_=function(a){var b=this.xmlHttpChunkStart_,c=a.indexOf("\n",b);if(-1==c)return uB;b=Number(a.substring(b,c));if(isNaN(b))return Fxa;c+=1;if(c+b>a.length)return uB;a=a.substr(c,b);this.xmlHttpChunkStart_=c+b;return a};
e.cancel=function(){this.cancelled_=!0;this.cleanup_()};
e.ensureWatchDogTimer_=function(){this.watchDogTimeoutTime_=Va()+this.timeout_;this.startWatchDogTimer_(this.timeout_)};
e.startWatchDogTimer_=function(a){if(null!=this.watchDogTimerId_)throw Error("WatchDog timer not null");this.watchDogTimerId_=rB(u(this.onWatchDogTimeout_,this),a)};
e.cancelWatchDogTimer_=function(){this.watchDogTimerId_&&(t.clearTimeout(this.watchDogTimerId_),this.watchDogTimerId_=null)};
e.onWatchDogTimeout_=function(){this.watchDogTimerId_=null;var a=Va();0<=a-this.watchDogTimeoutTime_?this.handleTimeout_():(this.channelDebug_.warning("WatchDog timer called too early"),this.startWatchDogTimer_(this.watchDogTimeoutTime_-a))};
e.handleTimeout_=function(){this.channelDebug_.timeoutResponse(this.requestUri_);2!=this.type_&&(pB(3),qB(17));this.cleanup_();this.lastError_=2;Zq(this)};
e.dispatchFailure_=function(){if(!this.channel_.isClosed()&&!this.cancelled_)this.channel_.onRequestComplete(this)};
e.cleanup_=function(){Yq(this);Sg(this.readyStateChangeThrottle_);this.readyStateChangeThrottle_=null;this.pollingTimer_.stop();this.eventHandler_.removeAll();if(this.xmlHttp_){var a=this.xmlHttp_;this.xmlHttp_=null;a.abort();a.dispose()}};
e.getSuccess=function(){return this.successful_};
e.getLastError=function(){return this.lastError_};
e.getLastStatusCode=function(){return this.lastStatusCode_};
e.getSessionId=function(){return this.sid_};
e.getRequestId=function(){return this.rid_};
e.getPostData=function(){return this.postData_};
e.getXhr=function(){return this.xmlHttp_};
e.getRequestStartTime=function(){return this.requestStartTime_};
e.safeOnRequestData_=function(a){try{this.channel_.onRequestData(this,a),pB(4)}catch(b){}};var Hxa=function(){this.bufferingProxyResult=this.handshakeResult=null};var Ixa=function(a,b){this.mapId=a;this.map=b;this.context=null};var wB=function(a){this.maxPoolSizeConfigured_=a||10;t.PerformanceNavigationTiming?(a=t.performance.getEntriesByType("navigation"),a=0<a.length&&("hq"==a[0].nextHopProtocol||"h2"==a[0].nextHopProtocol)):a=!!(t.chrome&&t.chrome.loadTimes&&t.chrome.loadTimes()&&t.chrome.loadTimes().wasFetchedViaSpdy);this.maxSize_=a?this.maxPoolSizeConfigured_:1;this.requestPool_=null;1<this.maxSize_&&(this.requestPool_=new Set);this.request_=null;this.pendingMessages_=[]},Jxa=function(a){return a.request_?!0:a.requestPool_?
a.requestPool_.size>=a.maxSize_:!1};
wB.prototype.getMaxSize=function(){return this.maxSize_};
var xB=function(a){return a.request_?1:a.requestPool_?a.requestPool_.size:0};
wB.prototype.hasRequest=function(a){return this.request_?this.request_==a:this.requestPool_?this.requestPool_.has(a):!1};
var yB=function(a,b){a.requestPool_?a.requestPool_.add(b):a.request_=b},Kxa=function(a,b){a.request_&&a.request_==b?a.request_=null:a.requestPool_&&a.requestPool_.has(b)&&a.requestPool_.delete(b)};
wB.prototype.cancel=function(){this.pendingMessages_=this.getPendingMessages();if(this.request_)this.request_.cancel(),this.request_=null;else if(this.requestPool_&&0!==this.requestPool_.size){for(var a=k(this.requestPool_.values()),b=a.next();!b.done;b=a.next())b.value.cancel();this.requestPool_.clear()}};
var Lxa=function(a){return null!=a.request_||null!=a.requestPool_&&0!==a.requestPool_.size};
wB.prototype.getPendingMessages=function(){if(null!=this.request_)return this.pendingMessages_.concat(this.request_.getPendingMessages());if(null!=this.requestPool_&&0!==this.requestPool_.size){for(var a=this.pendingMessages_,b=k(this.requestPool_.values()),c=b.next();!c.done;c=b.next())a=a.concat(c.value.getPendingMessages());return a}return pb(this.pendingMessages_)};
var Mxa=function(a,b){a.pendingMessages_=a.pendingMessages_.concat(b)},Nxa=function(a,b){if(null!=a.request_)return a.request_.cancel(),b(a.request_),!0;
if(a.requestPool_&&0!==a.requestPool_.size){a=k(a.requestPool_.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.cancel(),b(c);return!0}return!1};var Oxa=function(a,b){var c=new sB;c.debug("TestLoadImage: loading "+a);if(t.Image){var d=new Image;d.onload=Ta(zB,c,d,"TestLoadImage: loaded",!0,b);d.onerror=Ta(zB,c,d,"TestLoadImage: error",!1,b);d.onabort=Ta(zB,c,d,"TestLoadImage: abort",!1,b);d.ontimeout=Ta(zB,c,d,"TestLoadImage: timeout",!1,b);t.setTimeout(function(){if(d.ontimeout)d.ontimeout()},1E4);
d.src=a}else b(!1)},zB=function(a,b,c,d,f){try{a.debug(c),b.onload=null,b.onerror=null,b.onabort=null,b.ontimeout=null,f(d)}catch(g){}};var Pxa=function(){this.parser_=new Jq},Qxa=function(a,b,c){var d=c||"";
try{cr(a,function(f,g){var l=f;Pa(f)&&(l=uj(f));b.push(d+g+"="+encodeURIComponent(l))})}catch(f){throw b.push(d+"type="+encodeURIComponent("_badmap")),f;
}};var AB=function(a,b,c){return c&&c.internalChannelParams?c.internalChannelParams[a]||b:b},BB=function(a){this.clientVersion_=22;
this.serverVersion_=0;this.outgoingMaps_=[];this.channelDebug_=new sB;this.connState_=new Hxa;this.hostPrefix_=this.backChannelUri_=this.forwardChannelUri_=this.path_=this.backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.extraHeaders_=null;this.allowHostPrefix_=!0;this.nextMapId_=this.nextRid_=0;this.failFast_=AB("failFast",!1,a);this.enableStreaming_=this.deadBackChannelTimerId_=this.backChannelTimerId_=this.forwardChannelTimerId_=
this.handler_=null;this.allowStreamingMode_=!0;this.lastStatusCode_=this.lastPostResponseArrayId_=this.lastArrayId_=-1;this.backChannelAttemptId_=this.backChannelRetryCount_=this.forwardChannelRetryCount_=0;this.baseRetryDelayMs_=AB("baseRetryDelayMs",5E3,a);this.retryDelaySeedMs_=AB("retryDelaySeedMs",1E4,a);this.forwardChannelMaxRetries_=AB("forwardChannelMaxRetries",2,a);this.forwardChannelRequestTimeoutMs_=AB("forwardChannelRequestTimeoutMs",2E4,a);this.xmlHttpFactory_=a&&a.xmlHttpFactory||void 0;
this.backChannelRequestTimeoutMs_=void 0;this.readyStateChangeThrottleMs_=0;this.supportsCrossDomainXhrs_=a&&a.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new wB(a&&a.concurrentRequestLimit);this.wireCodec_=new Pxa;this.fastHandshake_=a&&a.fastHandshake||!1;this.blockingHandshake_=a&&a.blockingHandshake||!1;a&&a.disableRedact&&this.channelDebug_.disableRedact();a&&a.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
a&&a.detectBufferingProxy||!1;this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.bpDetectionTimerId_=null;this.enableOriginTrials_=!a||!1!==a.enableOriginTrials};
e=BB.prototype;e.channelVersion_=8;e.state_=1;e.getServerVersion=function(){return this.serverVersion_};
e.getWireCodec=function(){return this.wireCodec_};
e.getChannelDebug=function(){return this.channelDebug_};
e.setChannelDebug=function(a){this.channelDebug_=a};
e.connect=function(a,b,c,d){this.channelDebug_.debug("connect()");this.enableOriginTrials_&&(this.channelDebug_.info("Origin Trials enabled."),Ii(u(this.runOriginTrials_,this,a)));qB(0);this.path_=a;this.extraParams_=b||{};c&&void 0!==d&&(this.extraParams_.OSID=c,this.extraParams_.OAID=d);this.enableStreaming_=this.allowStreamingMode_;yr(this)};
e.disconnect=function(){this.channelDebug_.debug("disconnect()");this.cancelRequests_();if(3==this.state_){var a=this.nextRid_++,b=this.forwardChannelUri_.clone();$q(b,"SID",this.sid_);$q(b,"RID",a);$q(b,"TYPE","terminate");this.addAdditionalParams_(b);a=new tB(this,this.channelDebug_,this.sid_,a,void 0);a.type_=2;a.baseUri_=Vq(b.clone());b=!1;t.navigator&&t.navigator.sendBeacon&&(b=t.navigator.sendBeacon(a.baseUri_.toString(),""));!b&&t.Image&&(new Image().src=a.baseUri_,b=!0);b||(a.xmlHttp_=a.channel_.createXhrIo(null),
a.xmlHttp_.send(a.baseUri_));a.requestStartTime_=Va();Wq(a)}this.onClose_()};
e.getSessionId=function(){return this.sid_};
e.connectChannel_=function(){this.channelDebug_.debug("connectChannel_()");this.ensureInState_(1,0);this.forwardChannelUri_=this.getForwardChannelUri(this.path_);this.ensureForwardChannel_()};
e.runOriginTrials_=function(a){try{this.channelDebug_.info("Origin Trials invoked: "+a)}catch(b){}};
var CB=function(a){a.backChannelRequest_&&(vB(a),a.backChannelRequest_.cancel(),a.backChannelRequest_=null)};
BB.prototype.cancelRequests_=function(){CB(this);this.backChannelTimerId_&&(t.clearTimeout(this.backChannelTimerId_),this.backChannelTimerId_=null);zr(this);this.forwardChannelRequestPool_.cancel();this.forwardChannelTimerId_&&Rxa(this)};
var Rxa=function(a){"number"===typeof a.forwardChannelTimerId_&&t.clearTimeout(a.forwardChannelTimerId_);a.forwardChannelTimerId_=null};
e=BB.prototype;e.getExtraHeaders=function(){return this.extraHeaders_};
e.setExtraHeaders=function(a){this.extraHeaders_=a};
e.getInitHeaders=function(){return this.initHeaders_};
e.getHttpSessionId=function(){return this.httpSessionId_};
e.setReadyStateChangeThrottle=function(a){this.readyStateChangeThrottleMs_=a};
e.setSupportsCrossDomainXhrs=function(a){this.supportsCrossDomainXhrs_=a};
e.getHandler=function(){return this.handler_};
e.setHandler=function(a){this.handler_=a};
e.getAllowHostPrefix=function(){return this.allowHostPrefix_};
e.setAllowHostPrefix=function(a){this.allowHostPrefix_=a};
e.isBuffered=function(){return!this.enableStreaming_};
e.getAllowStreamingMode=function(){return this.allowStreamingMode_};
e.setAllowStreamingMode=function(a){this.allowStreamingMode_=a};
e.sendMap=function(a){this.outgoingMaps_.push(new Ixa(this.nextMapId_++,a));3==this.state_&&this.ensureForwardChannel_()};
e.setFailFast=function(a){this.failFast_=a;this.channelDebug_.info("setFailFast: "+a);if((Lxa(this.forwardChannelRequestPool_)||this.forwardChannelTimerId_)&&this.forwardChannelRetryCount_>Ar(this)){var b=this;this.channelDebug_.info(function(){return"Retry count "+b.forwardChannelRetryCount_+" > new maxRetries "+Ar(b)+". Fail immediately!"});
Nxa(this.forwardChannelRequestPool_,u(this.onRequestComplete,this))||(Rxa(this),this.signalError_(2))}};
e.getForwardChannelMaxRetries=function(){return this.failFast_?0:this.forwardChannelMaxRetries_};
e.setForwardChannelMaxRetries=function(a){this.forwardChannelMaxRetries_=a};
e.setForwardChannelRequestTimeout=function(a){this.forwardChannelRequestTimeoutMs_=a};
e.getBackChannelMaxRetries=function(){return 3};
e.isClosed=function(){return 0==this.state_};
e.getState=function(){return this.state_};
e.getLastStatusCode=function(){return this.lastStatusCode_};
e.getLastArrayId=function(){return this.lastArrayId_};
e.hasOutstandingRequests=function(){var a=0;this.backChannelRequest_&&a++;a+=xB(this.forwardChannelRequestPool_);return 0!=a};
e.ensureForwardChannel_=function(){Jxa(this.forwardChannelRequestPool_)||this.forwardChannelTimerId_||(this.forwardChannelTimerId_=!0,Ii(this.onStartForwardChannelTimer_,this),this.forwardChannelRetryCount_=0)};
e.maybeRetryForwardChannel_=function(a){if(xB(this.forwardChannelRequestPool_)>=this.forwardChannelRequestPool_.getMaxSize()-(this.forwardChannelTimerId_?1:0))return!1;if(this.forwardChannelTimerId_)return this.channelDebug_.debug("Use the retry request that is already scheduled."),this.outgoingMaps_=a.getPendingMessages().concat(this.outgoingMaps_),!0;if(1==this.state_||2==this.state_||this.forwardChannelRetryCount_>=Ar(this))return!1;this.channelDebug_.debug("Going to retry POST");this.forwardChannelTimerId_=
rB(u(this.onStartForwardChannelTimer_,this,a),this.getRetryTime_(this.forwardChannelRetryCount_));this.forwardChannelRetryCount_++;return!0};
e.onStartForwardChannelTimer_=function(a){this.forwardChannelTimerId_&&(this.forwardChannelTimerId_=null,this.startForwardChannel_(a))};
e.startForwardChannel_=function(a){this.channelDebug_.debug("startForwardChannel_");this.okToMakeRequest_()&&(1==this.state_?a||(this.open_(),this.state_=2):3==this.state_&&(a?this.makeForwardChannelRequest_(a):0==this.outgoingMaps_.length?this.channelDebug_.debug("startForwardChannel_ returned: nothing to send"):Jxa(this.forwardChannelRequestPool_)||(this.makeForwardChannelRequest_(),this.channelDebug_.debug("startForwardChannel_ finished, sent request"))))};
e.open_=function(){this.channelDebug_.debug("open_()");this.nextRid_=Math.floor(1E5*Math.random());var a=this.nextRid_++,b=new tB(this,this.channelDebug_,"",a,void 0),c=this.extraHeaders_;this.initHeaders_&&(c?(c=A.clone(c),A.extend(c,this.initHeaders_)):c=this.initHeaders_);null===this.httpHeadersOverwriteParam_&&b.setExtraHeaders(c);var d;if(this.fastHandshake_)a:{for(var f=d=0;f<this.outgoingMaps_.length;f++){b:{var g=this.outgoingMaps_[f];if("__data__"in g.map&&(g=g.map.__data__,"string"===typeof g)){g=
g.length;break b}g=void 0}if(void 0===g)break;d+=g;if(4096<d){d=f;break a}if(4096===d||f===this.outgoingMaps_.length-1){d=f+1;break a}}d=1E3}else d=1E3;d=this.dequeueOutgoingMaps_(b,d);f=this.forwardChannelUri_.clone();$q(f,"RID",a);0<this.clientVersion_&&$q(f,"CVER",this.clientVersion_);this.httpSessionIdParam_&&$q(f,"X-HTTP-Session-Id",this.httpSessionIdParam_);this.addAdditionalParams_(f);this.httpHeadersOverwriteParam_&&c&&Qy(f,this.httpHeadersOverwriteParam_,c);yB(this.forwardChannelRequestPool_,
b);this.blockingHandshake_&&$q(f,"TYPE","init");this.fastHandshake_?($q(f,"$req",d),$q(f,"SID","null"),b.decodeInitialResponse_=!0,b.xmlHttpPost(f,null,!0)):b.xmlHttpPost(f,d,!0)};
e.makeForwardChannelRequest_=function(a){var b=a?a.rid_:this.nextRid_++;var c=this.forwardChannelUri_.clone();$q(c,"SID",this.sid_);$q(c,"RID",b);$q(c,"AID",this.lastArrayId_);this.addAdditionalParams_(c);this.httpHeadersOverwriteParam_&&this.extraHeaders_&&Qy(c,this.httpHeadersOverwriteParam_,this.extraHeaders_);b=new tB(this,this.channelDebug_,this.sid_,b,this.forwardChannelRetryCount_+1);null===this.httpHeadersOverwriteParam_&&b.setExtraHeaders(this.extraHeaders_);a&&this.requeuePendingMaps_(a);
a=this.dequeueOutgoingMaps_(b,1E3);b.setTimeout(Math.round(.5*this.forwardChannelRequestTimeoutMs_)+Math.round(.5*this.forwardChannelRequestTimeoutMs_*Math.random()));yB(this.forwardChannelRequestPool_,b);b.xmlHttpPost(c,a,!0)};
e.addAdditionalParams_=function(a){if(this.handler_){var b=this.handler_.getAdditionalParams();b&&cr(b,function(c,d){$q(a,d,c)})}};
e.dequeueOutgoingMaps_=function(a,b){b=Math.min(this.outgoingMaps_.length,b);var c=this.handler_?u(this.handler_.badMapError,this.handler_,this):null;a:for(var d=this.outgoingMaps_,f=-1;;){var g=["count="+b];-1==f?0<b?(f=d[0].mapId,g.push("ofs="+f)):f=0:g.push("ofs="+f);for(var l=!0,m=0;m<b;m++){var n=d[m].mapId,r=d[m].map;n-=f;if(0>n)f=Math.max(0,d[m].mapId-100),l=!1;else try{Qxa(r,g,"req"+n+"_")}catch(v){c&&c(r)}}if(l){c=g.join("&");break a}}b=this.outgoingMaps_.splice(0,b);a.pendingMessages_=b;
return c};
e.requeuePendingMaps_=function(a){this.outgoingMaps_=a.getPendingMessages().concat(this.outgoingMaps_)};
e.ensureBackChannel_=function(){this.backChannelRequest_||this.backChannelTimerId_||(this.backChannelAttemptId_=1,Ii(this.onStartBackChannelTimer_,this),this.backChannelRetryCount_=0)};
e.maybeRetryBackChannel_=function(){if(this.backChannelRequest_||this.backChannelTimerId_||3<=this.backChannelRetryCount_)return!1;this.channelDebug_.debug("Going to retry GET");this.backChannelAttemptId_++;this.backChannelTimerId_=rB(u(this.onStartBackChannelTimer_,this),this.getRetryTime_(this.backChannelRetryCount_));this.backChannelRetryCount_++;return!0};
e.onStartBackChannelTimer_=function(){this.backChannelTimerId_=null;this.startBackChannel_();if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(null==this.backChannelRequest_||0>=this.handshakeRttMs_)this.channelDebug_.warning("Skip bpDetectionTimerId_ "+this.backChannelRequest_+" "+this.handshakeRttMs_);else{var a=2*this.handshakeRttMs_;this.channelDebug_.info("BP detection timer enabled: "+a);this.bpDetectionTimerId_=rB(u(this.onBpDetectionTimer_,this),a)}};
e.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.channelDebug_.info("BP detection timeout reached.");if(null!=this.backChannelRequest_.getXhr()){var a=this.backChannelRequest_.getXhr().getResponseText();a&&this.channelDebug_.warning("Timer should have been cancelled : "+a)}this.channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=!1;this.bpDetectionDone_=!0;qB(10);CB(this);this.startBackChannel_()}else this.channelDebug_.warning("Invalid operation.")};
var vB=function(a){null!=a.bpDetectionTimerId_&&(a.channelDebug_.debug("Cancel the BP detection timer."),t.clearTimeout(a.bpDetectionTimerId_),a.bpDetectionTimerId_=null)};
e=BB.prototype;
e.startBackChannel_=function(){if(this.okToMakeRequest_()){this.channelDebug_.debug("Creating new HttpRequest");this.backChannelRequest_=new tB(this,this.channelDebug_,this.sid_,"rpc",this.backChannelAttemptId_);null===this.httpHeadersOverwriteParam_&&this.backChannelRequest_.setExtraHeaders(this.extraHeaders_);this.backChannelRequest_.setReadyStateChangeThrottle(this.readyStateChangeThrottleMs_);var a=this.backChannelUri_.clone();$q(a,"RID","rpc");$q(a,"SID",this.sid_);$q(a,"CI",this.enableStreaming_?"0":
"1");$q(a,"AID",this.lastArrayId_);this.addAdditionalParams_(a);$q(a,"TYPE","xmlhttp");this.httpHeadersOverwriteParam_&&this.extraHeaders_&&Qy(a,this.httpHeadersOverwriteParam_,this.extraHeaders_);this.backChannelRequestTimeoutMs_&&this.backChannelRequest_.setTimeout(this.backChannelRequestTimeoutMs_);this.backChannelRequest_.xmlHttpGet(a,!0,this.hostPrefix_);this.channelDebug_.debug("New Request created")}};
e.okToMakeRequest_=function(){return!0};
e.onRequestData=function(a,b){if(0!=this.state_&&(this.backChannelRequest_==a||this.forwardChannelRequestPool_.hasRequest(a)))if(this.lastStatusCode_=a.getLastStatusCode(),!a.initialResponseDecoded_&&this.forwardChannelRequestPool_.hasRequest(a)&&3==this.state_){try{var c=this.wireCodec_.parser_.parse(b)}catch(d){c=null}if(Array.isArray(c)&&3==c.length){if(this.handlePostResponse_(c,a),1>=xB(this.forwardChannelRequestPool_)&&this.forwardChannelFlushedCallback_){try{this.forwardChannelFlushedCallback_()}catch(d){}this.forwardChannelFlushedCallback_=
void 0}}else this.channelDebug_.debug("Bad POST response data returned"),this.signalError_(11)}else(a.initialResponseDecoded_||this.backChannelRequest_==a)&&zr(this),Nb(b)||(c=this.wireCodec_.parser_.parse(b),this.onInput_(c,a))};
e.handlePostResponse_=function(a,b){0==a[0]?this.handleBackchannelMissing_(b):(this.lastPostResponseArrayId_=a[1],b=this.lastPostResponseArrayId_-this.lastArrayId_,0<b&&(a=a[2],this.channelDebug_.debug(a+" bytes (in "+b+" arrays) are outstanding on the BackChannel"),this.shouldRetryBackChannel_(a)&&!this.deadBackChannelTimerId_&&(this.deadBackChannelTimerId_=rB(u(this.onBackChannelDead_,this),6E3))))};
e.handleBackchannelMissing_=function(a){this.channelDebug_.debug("Server claims our backchannel is missing.");if(this.backChannelTimerId_)this.channelDebug_.debug("But we are currently starting the request.");else{if(this.backChannelRequest_){if(this.backChannelRequest_.requestStartTime_+3E3<a.requestStartTime_)zr(this),CB(this);else return;}else this.channelDebug_.warning("We do not have a BackChannel established");this.maybeRetryBackChannel_();qB(18)}};
e.shouldRetryBackChannel_=function(a){return 37500>a&&!this.isBuffered()&&0==this.backChannelRetryCount_};
e.correctHostPrefix=function(a){return this.allowHostPrefix_?this.handler_?this.handler_.correctHostPrefix(a):a:null};
e.onBackChannelDead_=function(){null!=this.deadBackChannelTimerId_&&(this.deadBackChannelTimerId_=null,CB(this),this.maybeRetryBackChannel_(),qB(19))};
e.clearDeadBackchannelTimer_=function(){null!=this.deadBackChannelTimerId_&&(t.clearTimeout(this.deadBackChannelTimerId_),this.deadBackChannelTimerId_=null)};
e.onRequestComplete=function(a){this.channelDebug_.debug("Request complete");var b=null;if(this.backChannelRequest_==a){zr(this);vB(this);this.backChannelRequest_=null;var c=2}else if(this.forwardChannelRequestPool_.hasRequest(a))b=a.getPendingMessages(),Kxa(this.forwardChannelRequestPool_,a),c=1;else return;this.lastStatusCode_=a.getLastStatusCode();if(0!=this.state_)if(a.successful_)1==c?(Dxa(a.postData_?a.postData_.length:0,Va()-a.requestStartTime_,this.forwardChannelRetryCount_),this.ensureForwardChannel_(),
this.onSuccess_(a)):this.ensureBackChannel_();else{var d=a.getLastError();if(3==d||0==d&&0<this.lastStatusCode_)this.channelDebug_.debug("Not retrying due to error type");else{var f=this;this.channelDebug_.debug(function(){return"Maybe retrying, last error: "+Exa(d,f.lastStatusCode_)});
if(1==c&&this.maybeRetryForwardChannel_(a)||2==c&&this.maybeRetryBackChannel_())return;this.channelDebug_.debug("Exceeded max number of retries")}b&&0<b.length&&Mxa(this.forwardChannelRequestPool_,b);this.channelDebug_.debug("Error: HTTP request failed");switch(d){case 1:this.signalError_(5);break;case 4:this.signalError_(10);break;case 3:this.signalError_(6);break;default:this.signalError_(2);}}};
e.getRetryTime_=function(a){var b=this.baseRetryDelayMs_+Math.floor(Math.random()*this.retryDelaySeedMs_);this.isActive()||(this.channelDebug_.debug("Inactive channel"),b*=2);return b*a};
e.setRetryDelay=function(a,b){this.baseRetryDelayMs_=a;this.retryDelaySeedMs_=b};
e.onInput_=function(a,b){for(var c=this.handler_&&this.handler_.channelHandleMultipleArrays?[]:null,d=0;d<a.length;d++){var f=a[d];this.lastArrayId_=f[0];f=f[1];if(2==this.state_){if("c"==f[0]){this.sid_=f[1];this.hostPrefix_=this.correctHostPrefix(f[2]);var g=f[3];null!=g&&(this.channelVersion_=g,this.channelDebug_.info("VER="+this.channelVersion_));g=f[4];null!=g&&(this.serverVersion_=g,this.channelDebug_.info("SVER="+this.serverVersion_));f=f[5];null!=f&&"number"===typeof f&&0<f&&(this.backChannelRequestTimeoutMs_=
f*=1.5,this.channelDebug_.info("backChannelRequestTimeoutMs_="+f));if(f=b.getXhr()){var l=sr(f,"X-Client-Wire-Protocol");l&&(g=this.forwardChannelRequestPool_,!g.requestPool_&&(Pb(l,"spdy")||Pb(l,"quic")||Pb(l,"h2"))&&(g.maxSize_=g.maxPoolSizeConfigured_,g.requestPool_=new Set,g.request_&&(yB(g,g.request_),g.request_=null)));this.httpSessionIdParam_&&((f=sr(f,"X-HTTP-Session-Id"))?(this.httpSessionId_=f,$q(this.forwardChannelUri_,this.httpSessionIdParam_,f)):this.channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=
3;this.handler_&&this.handler_.channelOpened(this);this.detectBufferingProxy_&&(this.handshakeRttMs_=Va()-b.requestStartTime_,this.channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));f=b;this.backChannelUri_=this.getBackChannelUri(this.hostPrefix_,this.path_);f.initialResponseDecoded_?(this.channelDebug_.debug("Upgrade the handshake request to a backchannel."),Kxa(this.forwardChannelRequestPool_,f),g=f,(l=this.backChannelRequestTimeoutMs_)&&g.setTimeout(l),g.watchDogTimerId_&&(Yq(g),
Wq(g)),this.backChannelRequest_=f):this.ensureBackChannel_();0<this.outgoingMaps_.length&&this.ensureForwardChannel_()}else"stop"!=f[0]&&"close"!=f[0]||this.signalError_(7);}else 3==this.state_&&("stop"==f[0]||"close"==f[0]?(c&&0!=c.length&&(this.handler_.channelHandleMultipleArrays(this,c),c.length=0),"stop"==f[0]?this.signalError_(7):this.disconnect()):"noop"!=f[0]&&(c?c.push(f):this.handler_&&this.handler_.channelHandleArray(this,f)),this.backChannelRetryCount_=0)}c&&0!=c.length&&this.handler_.channelHandleMultipleArrays(this,
c)};
e.ensureInState_=function(){};
e.signalError_=function(a){this.channelDebug_.info("Error code "+a);if(2==a){var b=null;this.handler_&&(b=null);var c=u(this.testNetworkCallback_,this);b||(b=new jq("//www.google.com/images/cleardot.gif"),t.location&&"http"==t.location.protocol||b.setScheme("https"),Vq(b));Oxa(b.toString(),c)}else qB(2);this.onError_(a)};
e.testNetworkCallback_=function(a){a?(this.channelDebug_.info("Successfully pinged google.com"),qB(2)):(this.channelDebug_.info("Failed to ping google.com"),qB(1))};
e.onSuccess_=function(){};
e.onError_=function(a){this.channelDebug_.debug("HttpChannel: error - "+a);this.state_=0;this.handler_&&this.handler_.channelError(this,a);this.onClose_();this.cancelRequests_()};
e.onClose_=function(){this.state_=0;this.lastStatusCode_=-1;if(this.handler_){var a=this.forwardChannelRequestPool_.getPendingMessages();if(0==a.length&&0==this.outgoingMaps_.length)this.handler_.channelClosed(this);else{var b=this;this.channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+a.length+", outgoing: "+b.outgoingMaps_.length});
this.forwardChannelRequestPool_.pendingMessages_.length=0;var c=pb(this.outgoingMaps_);this.outgoingMaps_.length=0;this.handler_.channelClosed(this,a,c)}}};
e.getForwardChannelUri=function(a){a=this.createDataUri(null,a);this.channelDebug_.debug("GetForwardChannelUri: "+a);return a};
e.getConnectionState=function(){return this.connState_};
e.getBackChannelUri=function(a,b){a=this.createDataUri(this.shouldUseSecondaryDomains()?a:null,b);this.channelDebug_.debug("GetBackChannelUri: "+a);return a};
e.createDataUri=function(a,b){var c=lr(b);if(""!=c.domain_)a&&iq(c,a+"."+c.domain_),er(c,c.port_);else{var d=t.location;c=loa(d.protocol,a?a+"."+d.hostname:d.hostname,+d.port,b)}this.extraParams_&&A.forEach(this.extraParams_,function(f,g){$q(c,g,f)});
a=this.httpSessionIdParam_;b=this.getHttpSessionId();a&&b&&$q(c,a,b);$q(c,"VER",this.channelVersion_);this.addAdditionalParams_(c);return c};
e.createXhrIo=function(a){if(a&&!this.supportsCrossDomainXhrs_)throw Error("Can't create secondary domain capable XhrIo object.");a=new qr(this.xmlHttpFactory_);a.withCredentials_=this.supportsCrossDomainXhrs_;return a};
e.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
e.shouldUseSecondaryDomains=function(){return this.supportsCrossDomainXhrs_};
var Sxa=function(){};
e=Sxa.prototype;e.channelHandleMultipleArrays=null;e.okToMakeRequest=function(){return 0};
e.channelOpened=function(){};
e.channelHandleArray=function(){};
e.channelSuccess=function(){};
e.channelError=function(){};
e.channelClosed=function(){};
e.getAdditionalParams=function(){return{}};
e.getNetworkTestImageUri=function(){return null};
e.isActive=function(){return!0};
e.badMapError=function(){};
e.correctHostPrefix=function(a){return a};var DB=function(){if(te&&!Ge(10))throw Error("Environmental error: no available transport.")};
DB.prototype.createWebChannel=function(a,b){return new EB(a,b)};
var EB=function(a,b){zi.call(this);this.channel_=new BB(b);this.url_=a;this.logger_=null;this.messageUrlParams_=b&&b.messageUrlParams||null;a=b&&b.messageHeaders||null;b&&b.clientProtocolHeaderRequired&&(a?A.set(a,"X-Client-Protocol","webchannel"):a=A.create("X-Client-Protocol","webchannel"));this.channel_.setExtraHeaders(a);a=b&&b.initMessageHeaders||null;b&&b.messageContentType&&(a?A.set(a,"X-WebChannel-Content-Type",b.messageContentType):a=A.create("X-WebChannel-Content-Type",b.messageContentType));
b&&b.clientProfile&&(a?A.set(a,"X-WebChannel-Client-Profile",b.clientProfile):a=A.create("X-WebChannel-Client-Profile",b.clientProfile));this.channel_.initHeaders_=a;(a=b&&b.httpHeadersOverwriteParam)&&!Nb(a)&&(this.channel_.httpHeadersOverwriteParam_=a);this.supportsCrossDomainXhr_=b&&b.supportsCrossDomainXhr||!1;this.sendRawJson_=b&&b.sendRawJson||!1;(b=b&&b.httpSessionIdParam)&&!Nb(b)&&(this.channel_.httpSessionIdParam_=b,A.containsKey(this.messageUrlParams_,b)&&A.remove(this.messageUrlParams_,
b));this.channelHandler_=new FB(this)};
w(EB,zi);e=EB.prototype;e.open=function(){this.channel_.setHandler(this.channelHandler_);this.supportsCrossDomainXhr_&&this.channel_.setSupportsCrossDomainXhrs(!0);this.channel_.connect(this.url_,this.messageUrlParams_||void 0)};
e.close=function(){this.channel_.disconnect()};
e.halfClose=function(){throw Error("Not implemented")};
e.send=function(a){if("string"===typeof a){var b={};b.__data__=a;this.channel_.sendMap(b)}else this.sendRawJson_?(b={},b.__data__=uj(a),this.channel_.sendMap(b)):this.channel_.sendMap(a)};
e.disposeInternal=function(){this.channel_.setHandler(null);delete this.channelHandler_;this.channel_.disconnect();delete this.channel_;EB.superClass_.disposeInternal.call(this)};
var Txa=function(a){LA.call(this);var b=a.__sm__;this.data=b?(this.metadataKey=A.getAnyKey(b))?A.get(b,this.metadataKey):b:a};
w(Txa,LA);var Uxa=function(a){MA.call(this);this.status=1;this.errorCode=a};
w(Uxa,MA);var FB=function(a){this.channel_=a};
w(FB,Sxa);FB.prototype.channelOpened=function(){this.channel_.dispatchEvent("a")};
FB.prototype.channelHandleArray=function(a,b){this.channel_.dispatchEvent(new Txa(b))};
FB.prototype.channelError=function(a,b){this.channel_.dispatchEvent(new Uxa(b))};
FB.prototype.channelClosed=function(){this.channel_.dispatchEvent("b")};
var OA=function(a){this.channel_=a};
e=OA.prototype;e.isSpdyEnabled=function(){return 1<this.channel_.forwardChannelRequestPool_.getMaxSize()};
e.getPendingRequestCount=function(){return xB(this.channel_.forwardChannelRequestPool_)};
e.getHttpSessionId=function(){return this.channel_.getHttpSessionId()};
e.commit=function(a){this.channel_.forwardChannelFlushedCallback_=a};
e.getLastStatusCode=function(){return this.channel_.getLastStatusCode()};/*


 Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
*/
var GB=!0,HB={set useDeprecatedSynchronousErrorHandling(a){a?console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+Error().stack):GB&&console.log("RxJS: Back to a better error behavior. Thank you. <3");GB=a},get useDeprecatedSynchronousErrorHandling(){return GB}};var IB="function"===typeof Symbol&&Symbol.observable||"@@observable";function JB(a){setTimeout(function(){throw a},0)}
;var KB={closed:!0,next:function(){},
error:function(a){if(HB.useDeprecatedSynchronousErrorHandling)throw a;JB(a)},
complete:function(){}};var LB=function(){function a(b){this.message=b?b.length+" errors occurred during unsubscription:\n"+b.map(function(c,d){return d+1+") "+c.toString()}).join("\n  "):"";
this.name="UnsubscriptionError";this.errors=b;return this}
a.prototype=Object.create(Error.prototype);return a}();var Vxa=Array.isArray||function(a){return a&&"number"===typeof a.length};var MB=function(a){this.closed=!1;this._subscriptions=this._parentOrParents=null;a&&(this._unsubscribe=a)};
MB.prototype.unsubscribe=function(){if(!this.closed){var a=this._parentOrParents,b=this._unsubscribe,c=this._subscriptions;this.closed=!0;this._subscriptions=this._parentOrParents=null;if(a instanceof MB)a.remove(this);else if(null!==a)for(var d=0;d<a.length;++d)a[d].remove(this);if("function"===typeof b)try{b.call(this)}catch(m){var f=m instanceof LB?Wxa(m.errors):[m]}if(Vxa(c)){d=-1;for(var g=c.length;++d<g;){var l=c[d];if(null!==l&&"object"===typeof l)try{l.unsubscribe()}catch(m){f=f||[],m instanceof
LB?f=f.concat(Wxa(m.errors)):f.push(m)}}}if(f)throw new LB(f)}};
MB.prototype.add=function(a){var b=a;if(!a)return MB.EMPTY;switch(typeof a){case"function":b=new MB(a);case"object":if(b===this||b.closed||"function"!==typeof b.unsubscribe)return b;if(this.closed)return b.unsubscribe(),b;b instanceof MB||(a=b,b=new MB,b._subscriptions=[a]);break;default:throw Error("unrecognized teardown "+a+" added to Subscription.");}var c=b._parentOrParents;if(null===c)b._parentOrParents=this;else if(c instanceof MB){if(c===this)return b;b._parentOrParents=[c,this]}else if(-1===
c.indexOf(this))c.push(this);else return b;a=this._subscriptions;null===a?this._subscriptions=[b]:a.push(b);return b};
MB.prototype.remove=function(a){var b=this._subscriptions;b&&(a=b.indexOf(a),-1!==a&&b.splice(a,1))};
var Xxa=new MB;Xxa.closed=!0;MB.EMPTY=Xxa;function Wxa(a){return a.reduce(function(b,c){return b.concat(c instanceof LB?c.errors:c)},[])}
;var NB="function"===typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();var OB=function(a,b,c){MB.call(this);this.syncErrorValue=null;this.isStopped=this.syncErrorThrowable=this.syncErrorThrown=!1;switch(arguments.length){case 0:this.destination=KB;break;case 1:if(!a){this.destination=KB;break}if("object"===typeof a){a instanceof OB?(this.syncErrorThrowable=a.syncErrorThrowable,this.destination=a,a.add(this)):(this.syncErrorThrowable=!0,this.destination=new PB(this,a));break}default:this.syncErrorThrowable=!0,this.destination=new PB(this,a,b,c);}};
p(OB,MB);OB.EMPTY=MB.EMPTY;OB.prototype[NB]=function(){return this};
OB.create=function(a,b,c){a=new OB(a,b,c);a.syncErrorThrowable=!1;return a};
e=OB.prototype;e.next=function(a){this.isStopped||this._next(a)};
e.error=function(a){this.isStopped||(this.isStopped=!0,this._error(a))};
e.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())};
e.unsubscribe=function(){this.closed||(this.isStopped=!0,MB.prototype.unsubscribe.call(this))};
e._next=function(a){this.destination.next(a)};
e._error=function(a){this.destination.error(a);this.unsubscribe()};
e._complete=function(){this.destination.complete();this.unsubscribe()};
e._unsubscribeAndRecycle=function(){var a=this._parentOrParents;this._parentOrParents=null;this.unsubscribe();this.isStopped=this.closed=!1;this._parentOrParents=a;return this};
var PB=function(a,b,c,d){OB.call(this);this._parentSubscriber=a;var f=this;if("function"===typeof b)var g=b;else b&&(g=b.next,c=b.error,d=b.complete,b!==KB&&(f=Object.create(b),b&&"function"===typeof b.add&&"function"===typeof b.unsubscribe&&b.add(this.unsubscribe.bind(this)),f.unsubscribe=this.unsubscribe.bind(this)));this._context=f;this._next=g;this._error=c;this._complete=d};
p(PB,OB);PB.EMPTY=OB.EMPTY;PB.create=OB.create;e=PB.prototype;e.next=function(a){if(!this.isStopped&&this._next){var b=this._parentSubscriber;HB.useDeprecatedSynchronousErrorHandling&&b.syncErrorThrowable?this.__tryOrSetError(b,this._next,a)&&this.unsubscribe():this.__tryOrUnsub(this._next,a)}};
e.error=function(a){if(!this.isStopped){var b=this._parentSubscriber,c=HB.useDeprecatedSynchronousErrorHandling;if(this._error)c&&b.syncErrorThrowable?this.__tryOrSetError(b,this._error,a):this.__tryOrUnsub(this._error,a),this.unsubscribe();else if(b.syncErrorThrowable)c?(b.syncErrorValue=a,b.syncErrorThrown=!0):JB(a),this.unsubscribe();else{this.unsubscribe();if(c)throw a;JB(a)}}};
e.complete=function(){var a=this;if(!this.isStopped){var b=this._parentSubscriber;if(this._complete){var c=function(){return a._complete.call(a._context)};
HB.useDeprecatedSynchronousErrorHandling&&b.syncErrorThrowable?this.__tryOrSetError(b,c):this.__tryOrUnsub(c)}this.unsubscribe()}};
e.__tryOrUnsub=function(a,b){try{a.call(this._context,b)}catch(c){this.unsubscribe();if(HB.useDeprecatedSynchronousErrorHandling)throw c;JB(c)}};
e.__tryOrSetError=function(a,b,c){if(!HB.useDeprecatedSynchronousErrorHandling)throw Error("bad call");try{b.call(this._context,c)}catch(d){return HB.useDeprecatedSynchronousErrorHandling?(a.syncErrorValue=d,a.syncErrorThrown=!0):JB(d),!0}return!1};
e._unsubscribe=function(){var a=this._parentSubscriber;this._parentSubscriber=this._context=null;a.unsubscribe()};function QB(a){return a}
;function Yxa(a){return 0===a.length?QB:1===a.length?a[0]:function(b){return a.reduce(function(c,d){return d(c)},b)}}
;var RB=function(a){this._isScalar=!1;a&&(this._subscribe=a)};
e=RB.prototype;e.lift=function(a){var b=new RB;b.source=this;b.operator=a;return b};
e.subscribe=function(a,b,c){var d=this.operator;a:{if(a){if(a instanceof OB)break a;if(a[NB]){a=a[NB]();break a}}a=a||b||c?new OB(a,b,c):new OB(KB)}d?a.add(d.call(a,this.source)):a.add(this.source||HB.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a));if(HB.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a};
e._trySubscribe=function(a){try{return this._subscribe(a)}catch(f){HB.useDeprecatedSynchronousErrorHandling&&(a.syncErrorThrown=!0,a.syncErrorValue=f);var b;a:{for(b=a;b;){var c=b.destination,d=b.isStopped;if(b.closed||d){b=!1;break a}b=c&&c instanceof OB?c:null}b=!0}b?a.error(f):console.warn(f)}};
e.forEach=function(a,b){var c=this;b=Zxa(b);return new b(function(d,f){var g=c.subscribe(function(l){try{a(l)}catch(m){f(m),g&&g.unsubscribe()}},f,d)})};
e._subscribe=function(a){var b=this.source;return b&&b.subscribe(a)};
RB.prototype[IB]=function(){return this};
RB.prototype.pipe=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return 0===b.length?this:Yxa(b)(this)};
var $xa=function(a){var b=Zxa(b);return new b(function(c,d){var f;a.subscribe(function(g){return f=g},function(g){return d(g)},function(){return c(f)})})};
RB.create=function(a){return new RB(a)};
function Zxa(a){a||(a=Promise);if(!a)throw Error("no Promise impl found");return a}
;var SB=function(a,b){MB.call(this);this.subject=a;this.subscriber=b;this.closed=!1};
p(SB,MB);SB.EMPTY=MB.EMPTY;SB.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var a=this.subject,b=a.observers;this.subject=null;!b||0===b.length||a.isStopped||a.closed||(a=b.indexOf(this.subscriber),-1!==a&&b.splice(a,1))}};var TB=function(){function a(){this.message="object unsubscribed";this.name="ObjectUnsubscribedError";return this}
a.prototype=Object.create(Error.prototype);return a}();var UB=function(a){OB.call(this,a);this.destination=a};
p(UB,OB);UB.EMPTY=OB.EMPTY;UB.create=OB.create;var VB=function(){RB.call(this);this.observers=[];this.hasError=this.isStopped=this.closed=!1;this.thrownError=null};
p(VB,RB);VB.prototype[NB]=function(){return new UB(this)};
e=VB.prototype;e.lift=function(a){var b=new WB(this,this);b.operator=a;return b};
e.next=function(a){if(this.closed)throw new TB;if(!this.isStopped){var b=this.observers,c=b.length;b=b.slice();for(var d=0;d<c;d++)b[d].next(a)}};
e.error=function(a){if(this.closed)throw new TB;this.hasError=!0;this.thrownError=a;this.isStopped=!0;var b=this.observers,c=b.length;b=b.slice();for(var d=0;d<c;d++)b[d].error(a);this.observers.length=0};
e.complete=function(){if(this.closed)throw new TB;this.isStopped=!0;var a=this.observers,b=a.length;a=a.slice();for(var c=0;c<b;c++)a[c].complete();this.observers.length=0};
e.unsubscribe=function(){this.closed=this.isStopped=!0;this.observers=null};
e._trySubscribe=function(a){if(this.closed)throw new TB;return RB.prototype._trySubscribe.call(this,a)};
e._subscribe=function(a){if(this.closed)throw new TB;if(this.hasError)return a.error(this.thrownError),MB.EMPTY;if(this.isStopped)return a.complete(),MB.EMPTY;this.observers.push(a);return new SB(this,a)};
VB.create=function(a,b){return new WB(a,b)};
var WB=function(a,b){VB.call(this);this.destination=a;this.source=b};
p(WB,VB);WB.create=VB.create;WB.prototype.next=function(a){var b=this.destination;b&&b.next&&b.next(a)};
WB.prototype.error=function(a){var b=this.destination;b&&b.error&&this.destination.error(a)};
WB.prototype.complete=function(){var a=this.destination;a&&a.complete&&this.destination.complete()};
WB.prototype._subscribe=function(a){return this.source?this.source.subscribe(a):MB.EMPTY};var XB=function(a){VB.call(this);this._value=a};
p(XB,VB);XB.create=VB.create;XB.prototype._subscribe=function(a){var b=VB.prototype._subscribe.call(this,a);b&&!b.closed&&a.next(this._value);return b};
XB.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new TB;return this._value};
XB.prototype.next=function(a){VB.prototype.next.call(this,this._value=a)};
h.Object.defineProperties(XB.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var aya=new RB(function(a){return a.complete()});function bya(a,b){return new RB(function(c){var d=new MB,f=0;d.add(b.schedule(function(){f===a.length?c.complete():(c.next(a[f++]),c.closed||d.add(this.schedule()))}));
return d})}
;var YB=function(a){return function(b){for(var c=0,d=a.length;c<d&&!b.closed;c++)b.next(a[c]);b.complete()}};function cya(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return(c=b[b.length-1])&&"function"===typeof c.schedule?(b.pop(),bya(b,c)):new RB(YB(b))}
;function dya(a){return new RB(function(b){return b.error(a)})}
;var ZB=function(a,b,c){this.kind=a;this.value=b;this.error=c;this.hasValue="N"===a};
ZB.prototype.observe=function(a){switch(this.kind){case"N":return a.next&&a.next(this.value);case"E":return a.error&&a.error(this.error);case"C":return a.complete&&a.complete();}};
ZB.prototype.accept=function(a,b,c){if(a&&"function"===typeof a.next)a=this.observe(a);else a:{switch(this.kind){case"N":a=a&&a(this.value);break a;case"E":a=b&&b(this.error);break a;case"C":a=c&&c();break a;}a=void 0}return a};
ZB.prototype.toObservable=function(){switch(this.kind){case"N":return cya(this.value);case"E":return dya(this.error);case"C":return aya;}throw Error("unexpected notification kind value")};
ZB.createError=function(a){return new ZB("E",void 0,a)};
ZB.createComplete=function(){return eya};
var eya=new ZB("C"),fya=new ZB("N",void 0);var $B=function(a,b){b=void 0===b?$B.now:b;this.SchedulerAction=a;this.now=b};
$B.prototype.schedule=function(a,b,c){b=void 0===b?0:b;return new this.SchedulerAction(this,a).schedule(c,b)};
$B.now=function(){return Date.now()};var gya=function(){function a(){this.message="no elements in sequence";this.name="EmptyError";return this}
a.prototype=Object.create(Error.prototype);return a}();function aC(a){return function(b){if("function"!==typeof a)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return b.lift(new hya(a))}}
var hya=function(a){this.project=a;this.thisArg=void 0};
hya.prototype.call=function(a,b){return b.subscribe(new bC(a,this.project,this.thisArg))};
var bC=function(a,b,c){OB.call(this,a);this.project=b;this.count=0;this.thisArg=c||this};
p(bC,OB);bC.EMPTY=OB.EMPTY;bC.create=OB.create;bC.prototype._next=function(a){try{var b=this.project.call(this.thisArg,a,this.count++)}catch(c){this.destination.error(c);return}this.destination.next(b)};var cC=function(){OB.apply(this,arguments)};
p(cC,OB);cC.EMPTY=OB.EMPTY;cC.create=OB.create;cC.prototype.notifyNext=function(a){this.destination.next(a)};
cC.prototype.notifyComplete=function(){this.destination.complete()};var dC=function(a,b,c){OB.call(this);this.parent=a;this.outerValue=b;this.outerIndex=c;this.index=0};
p(dC,OB);dC.EMPTY=OB.EMPTY;dC.create=OB.create;dC.prototype._next=function(a){this.parent.notifyNext(a,this.index++)};
dC.prototype._error=function(a){this.parent.destination.error(a);this.unsubscribe()};
dC.prototype._complete=function(){this.parent.notifyComplete(this);this.unsubscribe()};var iya="function"===typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function jya(a){return function(b){kya(a,b).catch(function(c){return b.error(c)})}}
function kya(a,b){var c,d,f,g;return Xa(this,function m(){var n,r;return ya(m,function(v){switch(v.nextAddress){case 1:ra(v,2,3);if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var z=a[Symbol.asyncIterator];c=z?z.call(a):"function"===typeof __values?__values(a):a[Symbol.iterator]();case 5:return q(v,c.next(),8);case 8:if(d=v.yieldResult,d.done){v.jumpTo(3);break}n=d.value;b.next(n);v.jumpTo(5);break;case 3:v.finallyContexts_=[v.abruptCompletion_];v.catchAddress_=
0;v.finallyAddress_=0;v.catchAddress_=0;v.finallyAddress_=9;if(!d||d.done||!(g=c.return)){v.jumpTo(9);break}return q(v,g.call(c),9);case 9:v.finallyContexts_[1]=v.abruptCompletion_;v.catchAddress_=0;v.finallyAddress_=0;if(f)throw f.error;iaa(v,10,1);break;case 10:iaa(v,4);break;case 2:r=ua(v);f={error:r};v.jumpTo(3);break;case 4:b.complete(),oa(v);}})})}
;var lya=function(a){return function(b){var c=a[iya]();do{var d=void 0;try{d=c.next()}catch(f){b.error(f);return}if(d.done){b.complete();break}b.next(d.value);if(b.closed)break}while(1);"function"===typeof c.return&&b.add(function(){c.return&&c.return()});
return b}};var mya=function(a){return function(b){var c=a[IB]();if("function"!==typeof c.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return c.subscribe(b)}};var nya=function(a){return function(b){a.then(function(c){b.closed||(b.next(c),b.complete())},function(c){return b.error(c)}).then(null,JB);
return b}};var oya=function(a){if(a&&"function"===typeof a[IB])return mya(a);if(a&&"number"===typeof a.length&&"function"!==typeof a)return YB(a);if(a&&"function"!==typeof a.subscribe&&"function"===typeof a.then)return nya(a);if(a&&"function"===typeof a[iya])return lya(a);if(Symbol&&Symbol.asyncIterator&&a&&"function"===typeof a[Symbol.asyncIterator])return jya(a);throw new TypeError("You provided "+(null!==a&&"object"===typeof a?"an invalid object":"'"+a+"'")+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.");
};function pya(a){return a instanceof RB?a:new RB(oya(a))}
;function qya(a,b){var c=void 0===c?Infinity:c;if("function"===typeof b)return function(d){return d.pipe(qya(function(f,g){return pya(a(f,g)).pipe(aC(function(l,m){return b(f,l,g,m)}))},c))};
"number"===typeof b&&(c=b);return function(d){return d.lift(new rya(a,c))}}
var rya=function(a,b){b=void 0===b?Infinity:b;this.project=a;this.concurrent=b};
rya.prototype.call=function(a,b){return b.subscribe(new eC(a,this.project,this.concurrent))};
var eC=function(a,b,c){c=void 0===c?Infinity:c;cC.call(this,a);this.project=b;this.concurrent=c;this.hasCompleted=!1;this.buffer=[];this.index=this.active=0};
p(eC,cC);eC.EMPTY=cC.EMPTY;eC.create=cC.create;e=eC.prototype;e._next=function(a){this.active<this.concurrent?this._tryNext(a):this.buffer.push(a)};
e._tryNext=function(a){var b=this.index++;try{var c=this.project(a,b)}catch(d){this.destination.error(d);return}this.active++;this._innerSub(c,a,b)};
e._innerSub=function(a,b,c){b=new dC(this,b,c);this.destination.add(b);b=void 0===b?new dC(this,void 0,void 0):b;b.closed||(a instanceof RB?a.subscribe(b):oya(a)(b))};
e._complete=function(){this.hasCompleted=!0;0===this.active&&0===this.buffer.length&&this.destination.complete();this.unsubscribe()};
e.notifyNext=function(a){this.destination.next(a)};
e.notifyComplete=function(a){var b=this.buffer;this.remove(a);this.active--;0<b.length?this._next(b.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()};var fC=function(){MB.call(this)};
p(fC,MB);fC.EMPTY=MB.EMPTY;fC.prototype.schedule=function(){return this};var gC=function(a,b){MB.call(this);this.scheduler=a;this.work=b;this.pending=!1};
p(gC,fC);gC.EMPTY=fC.EMPTY;gC.prototype.schedule=function(a,b){b=void 0===b?0:b;if(this.closed)return this;this.state=a;var c=this.id;a=this.scheduler;null!=c&&(this.id=hC(this,c,b));this.pending=!0;this.delay=b;(c=this.id)||(b=void 0===b?0:b,c=setInterval(a.flush.bind(a,this),b));this.id=c;return this};
var hC=function(a,b,c){c=void 0===c?0:c;if(null!==c&&a.delay===c&&!1===a.pending)return b;clearInterval(b)};
gC.prototype.execute=function(a,b){if(this.closed)return Error("executing a cancelled action");this.pending=!1;if(a=this._execute(a,b))return a;!1===this.pending&&null!=this.id&&(this.id=hC(this,this.id,null))};
gC.prototype._execute=function(a){var b=!1,c=void 0;try{this.work(a)}catch(d){b=!0,c=!!d&&d||Error(d)}if(b)return this.unsubscribe(),c};
gC.prototype._unsubscribe=function(){var a=this.id,b=this.scheduler.actions,c=b.indexOf(this);this.state=this.work=null;this.pending=!1;this.scheduler=null;-1!==c&&b.splice(c,1);null!=a&&(this.id=hC(this,a,null));this.delay=null};var iC=function(a,b){b=void 0===b?$B.now:b;$B.call(this,a,function(){return iC.delegate&&iC.delegate!==c?iC.delegate.now():b()});
var c=this;this.actions=[];this.active=!1;this.scheduled=void 0};
p(iC,$B);iC.now=$B.now;iC.prototype.schedule=function(a,b,c){b=void 0===b?0:b;return iC.delegate&&iC.delegate!==this?iC.delegate.schedule(a,b,c):$B.prototype.schedule.call(this,a,b,c)};
iC.prototype.flush=function(a){var b=this.actions;if(this.active)b.push(a);else{var c;this.active=!0;do if(c=a.execute(a.state,a.delay))break;while(a=b.shift());this.active=!1;if(c){for(;a=b.shift();)a.unsubscribe();throw c}}};var sya=new iC(gC);function tya(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];var d=Infinity;c=void 0;var f=b[b.length-1];f&&"function"===typeof f.schedule?(c=b.pop(),1<b.length&&"number"===typeof b[b.length-1]&&(d=b.pop())):"number"===typeof f&&(d=b.pop());!c&&1===b.length&&b[0]instanceof RB?b=b[0]:(d=void 0===d?Infinity:d,b=qya(QB,d)(c?bya(b,c):new RB(YB(b))));return b}
;function jC(a){return function(b){return b.lift(new uya(a))}}
var uya=function(a){this.predicate=a;this.thisArg=void 0};
uya.prototype.call=function(a,b){return b.subscribe(new kC(a,this.predicate,this.thisArg))};
var kC=function(a,b,c){OB.call(this,a);this.predicate=b;this.thisArg=c;this.count=0};
p(kC,OB);kC.EMPTY=OB.EMPTY;kC.create=OB.create;kC.prototype._next=function(a){try{var b=this.predicate.call(this.thisArg,a,this.count++)}catch(c){this.destination.error(c);return}b&&this.destination.next(a)};(function(){function a(){this.message="argument out of range";this.name="ArgumentOutOfRangeError";return this}
a.prototype=Object.create(Error.prototype);return a})();(function(){function a(b){this.message=b;this.name="NotFoundError";return this}
a.prototype=Object.create(Error.prototype);return a})();(function(){function a(b){this.message=b;this.name="SequenceError";return this}
a.prototype=Object.create(Error.prototype);return a})();(function(){function a(){this.message="Timeout has occurred";this.name="TimeoutError";return this}
a.prototype=Object.create(Error.prototype);return a})();function vya(a){a=void 0===a?null:a;return function(b){return b.lift(new wya(a))}}
var wya=function(a){this.defaultValue=a};
wya.prototype.call=function(a,b){return b.subscribe(new lC(a,this.defaultValue))};
var lC=function(a,b){OB.call(this,a);this.defaultValue=b;this.isEmpty=!0};
p(lC,OB);lC.EMPTY=OB.EMPTY;lC.create=OB.create;lC.prototype._next=function(a){this.isEmpty=!1;this.destination.next(a)};
lC.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue);this.destination.complete()};function xya(a){var b=void 0===b?sya:b;var c=a instanceof Date&&!isNaN(+a)?+a-b.now():Math.abs(a);return function(d){return d.lift(new yya(c,b))}}
var yya=function(a,b){this.delay=a;this.scheduler=b};
yya.prototype.call=function(a,b){return b.subscribe(new mC(a,this.delay,this.scheduler))};
var mC=function(a,b,c){OB.call(this,a);this.delay=b;this.scheduler=c;this.queue=[];this.errored=this.active=!1};
p(mC,OB);mC.EMPTY=OB.EMPTY;mC.create=OB.create;var zya=function(a){for(var b=a.source,c=b.queue,d=a.scheduler,f=a.destination;0<c.length&&0>=c[0].time-d.now();)c.shift().notification.observe(f);0<c.length?(b=Math.max(0,c[0].time-d.now()),this.schedule(a,b)):(b.isStopped?b.destination.complete():this.unsubscribe(),b.active=!1)};
mC.prototype._schedule=function(a){this.active=!0;this.destination.add(a.schedule(zya,this.delay,{source:this,destination:this.destination,scheduler:a}))};
mC.prototype._next=function(a){var b="undefined"!==typeof a?new ZB("N",a):fya;!0!==this.errored&&(a=this.scheduler,b=new Aya(a.now()+this.delay,b),this.queue.push(b),!1===this.active&&this._schedule(a))};
mC.prototype._error=function(a){this.errored=!0;this.queue=[];this.destination.error(a);this.unsubscribe()};
mC.prototype._complete=function(){0===this.queue.length&&this.destination.complete();this.unsubscribe()};
var Aya=function(a,b){this.time=a;this.notification=b};function Bya(){if(isNaN(1))throw new TypeError("'count' is not a number");return function(a){return a.lift(new Cya)}}
var Cya=function(){this.count=1};
Cya.prototype.call=function(a,b){return b.subscribe(new nC(a,this.count))};
var nC=function(a,b){OB.call(this,a);this.count=b;this._valueCount=0};
p(nC,OB);nC.EMPTY=OB.EMPTY;nC.create=OB.create;nC.prototype._next=function(a){var b=this.count,c=++this._valueCount;c<=b&&(this.destination.next(a),c===b&&(this.destination.complete(),this.unsubscribe()))};function Dya(a){a=void 0===a?Eya:a;return function(b){return b.lift(new Fya(a))}}
var Fya=function(a){this.errorFactory=a};
Fya.prototype.call=function(a,b){return b.subscribe(new oC(a,this.errorFactory))};
var oC=function(a,b){OB.call(this,a);this.errorFactory=b;this.hasValue=!1};
p(oC,OB);oC.EMPTY=OB.EMPTY;oC.create=OB.create;oC.prototype._next=function(a){this.hasValue=!0;this.destination.next(a)};
oC.prototype._complete=function(){if(this.hasValue)return this.destination.complete();try{var a=this.errorFactory()}catch(b){a=b}this.destination.error(a)};
function Eya(){return new gya}
;function Gya(a,b){var c=2<=arguments.length;return function(d){return d.pipe(a?jC(function(f,g){return a(f,g,d)}):QB,Bya(),c?vya(b):Dya(function(){return new gya}))}}
;function Hya(a,b){var c=!1;2<=arguments.length&&(c=!0);return function(d){return d.lift(new Iya(a,b,c))}}
var Iya=function(a,b,c){this.accumulator=a;this.seed=b;this.hasSeed=void 0===c?!1:c};
Iya.prototype.call=function(a,b){return b.subscribe(new pC(a,this.accumulator,this.seed,this.hasSeed))};
var pC=function(a,b,c,d){OB.call(this,a);this.accumulator=b;this._state=c;this._hasState=d;this.index=0};
p(pC,OB);pC.EMPTY=OB.EMPTY;pC.create=OB.create;pC.prototype._next=function(a){var b=this.destination;if(this._hasState){var c=this.index++;try{var d=this.accumulator(this._state,a,c)}catch(f){b.error(f);return}this._state=d;b.next(d)}else this._state=a,this._hasState=!0,b.next(a)};function Jya(){var a=void 0===a?-1:a;return function(b){return 0===a?aya:0>a?b.lift(new qC(-1,b)):b.lift(new qC(a-1,b))}}
var qC=function(a,b){this.count=a;this.source=b};
qC.prototype.call=function(a,b){return b.subscribe(new rC(a,this.count,this.source))};
var rC=function(a,b,c){OB.call(this,a);this.count=b;this.source=c};
p(rC,OB);rC.EMPTY=OB.EMPTY;rC.create=OB.create;rC.prototype.complete=function(){if(!this.isStopped){var a=this.source,b=this.count;if(0===b)return OB.prototype.complete.call(this);-1<b&&(this.count=b-1);a.subscribe(this._unsubscribeAndRecycle())}};var Kya=function(){this.changeList=[]};
Kya.prototype.add=function(a){this.changeList.push(a)};
var Lya=function(){this.initialMaxDelayMs=500;this.maxBackoffMultiplier=1024},Mya=function(a,b){this.authMethod=b;
this.jspbClient=new nB(a)},Nya=function(a,b){return Xa(a,function d(){var f,g=this,l,m;
return ya(d,function(n){if(1==n.nextAddress)return f=new rA,yf(f,1,b),q(n,g.jspbClient.post("/punctual/v1/chooseServer",f,sA,{queryParams:g.authMethod.getQueryParameters(),extraHeaders:g.authMethod.getHeaders(),withCredentials:g.authMethod.usesCredentialedRequests()}),2);l=n.yieldResult;m=I(l,1);if(null==m)throw Error("ChooseServer response is missing gsessionid");return n.return(m)})})},sC=function(a,b,c,d,f){this.project=a;
this.channelConfig=c;this.channelCreator=d;this.serverChooser=f;this.causalStreams=new Map;this.limboStreams=new Map;this.nonCausalStreams=new Map;this.newStreamSubject=new VB;this.state=this.streamNumber=0;this.status=new XB(new Ky());this.delayGenerator=new Ur(b.initialMaxDelayMs,b.maxBackoffMultiplier)},Oya=function(a,b,c){switch(b.domainType()){case 2:case 0:a=a.firstPartyUri;
break;case 1:a=a.thirdPartyUri;break;default:a=new jq;}var d=new Lya,f=a.clone().setPath("/punctual/multi-watch/channel");return new sC(c,d,new gxa(f.toString(),b),function(g,l,m,n){g=new NA(l,m,g,function(r,v){return new DB().createWebChannel(r,v)},n);
g.open();return g},new Mya(a,b))};
sC.prototype.onOpen=function(){var a=new Ky;a.setCode(0);try{this.status.next(a)}catch(b){}};
sC.prototype.onClose=function(){this.channel=void 0;if(1===this.state)tC(this);else if(2===this.state)try{this.status.complete()}catch(a){}};
sC.prototype.onError=function(a,b){var c=new Ky;c.setCode(wxa(b));try{this.status.next(c)}catch(d){}2===a.status&&this.stop()};
var vC=function(a,b,c){if(a.channel){var d=Pya(a,c.interestSet);c instanceof uC&&uf(d,1,c.knowledgeTimestamp.toString());c=new wA;var f=Nf(c,1,void 0,uA,void 0);f.setStreamId(b.toString());Ef(f,2,tA[0],d);a.channel.send(c)}},Pya=function(a,b){var c=new oA().setHeader(hxa);
if(b instanceof iB){a=a.project;var d=new hA;null!=a&&d.setProject(Qya(a));d.setOwner(Rya(b));d.setPath(Sya(b,void 0));Ef(c,2,nA[0],d)}else d=new lA,null!=a.project&&d.setProject(Qya(a.project)),d.setOwner(Rya(b.root)),d.setPrefix(Sya(b.root)),c.setPrefix(d);return c},wC=function(a,b){var c=new wA,d=Nf(c,1,void 0,uA,void 0);
d.setStreamId(b.toString());d.setClose(new vA);a.channel&&a.channel.send(c);a.causalStreams.delete(b);a.limboStreams.delete(b);a.nonCausalStreams.delete(b)};
sC.prototype.start=function(){if(0!==this.state)throw Error("start() may only be called once");this.state=1;tC(this);return this};
var tC=function(a){var b=Vr(a.delayGenerator);Yi(function(){1===a.state&&Tya(a).then(function(c){Uya(a,c)},function(){tC(a)})},b)},Tya=function(a){return Xa(a,function c(){var d=this,f;
return ya(c,function(g){if(1==g.nextAddress)return q(g,Vya(d),2);f=g.yieldResult;return g.return(Nya(d.serverChooser,Pya(d,f)))})})},Vya=function(a){return Xa(a,function c(){var d=this,f,g,l,m,n,r,v;
return ya(c,function(z){f=[d.causalStreams,d.limboStreams,d.nonCausalStreams];g=k(f);for(l=g.next();!l.done;l=g.next())for(m=l.value,n=k(m.values()),r=n.next();!r.done;)return v=r.value,z.return(v.interestSet);var C=Gya(),J=new RB;J.source=d.newStreamSubject;return q(z,$xa(J.pipe(C)),1)})})},Uya=function(a,b){a.channel=a.channelCreator(a.channelConfig,function(g){for(var l=k(Mf(g,HA,1)),m=l.next();!m.done;m=l.next()){var n=m.value;
if(m=I(n,1))if(m=Number(m),K(n,3)){a:{if(n=n.getClose())if(n=n.getStatus()){var r=n;break a}r=void 0}if(r){n=a;var v=n.causalStreams.get(m)||n.limboStreams.get(m)||n.nonCausalStreams.get(m);v&&(0===r.getCode()?v.observer.complete():v.observer.error(r),n.causalStreams.delete(m),n.limboStreams.delete(m),n.nonCausalStreams.delete(m))}}else if(n=M(n,yA,2))switch(gf(n,xA[0])){case 1:n=a;if(r=n.causalStreams.get(m)){try{r.observer.next(new jxa)}catch(J){}n.causalStreams.delete(m);n.limboStreams.set(m,r.start())}break;
case 3:a:{if(n=M(n,BA,3))if(n=I(n,1)){v=new kxa(fB(n));break a}v=void 0}if(v&&(n=a,r=m,m=v,(v=n.limboStreams.get(r))?(v=v.advance(m.timestampMicros),n.limboStreams.delete(r),n.nonCausalStreams.set(r,v),n=v):n=n.nonCausalStreams.get(r),n)){r=m.timestampMicros;r>n.knowledgeTimestamp&&(n.knowledgeTimestamp=r);try{n.observer.next(m)}catch(J){}}break;case 2:if(r=M(n,AA,2)){n=new Kya;r=k(Mf(r,kA,1));for(v=r.next();!v.done;v=r.next()){var z=v.value,C=M(z,hA,1);v=z.getVersion();C&&v&&(z=pf(I(z,2)),z=null===
z?void 0:z,(C=Wya(C))&&n.add(new PA(C,fB(v),z)))}r=n}else r=void 0;if(r&&(n=a,m=n.nonCausalStreams.get(m)||n.limboStreams.get(m)))for(n=k(r.changeList),r=n.next();!r.done;r=n.next()){r=r.value;r=new PA(r.objectId,r.version,r.payload);try{m.observer.next(r)}catch(J){}}break;case 5:if(n=a,r=n.causalStreams.get(m)||n.limboStreams.get(m)||n.nonCausalStreams.get(m))try{r.observer.complete(),wC(n,m)}catch(J){}}}if(g.hasStatus())switch(g.getStatus().getCode()){case 1:a.channel&&a.channel.close();}},a,b);
b=[].concat(Array.from(a.causalStreams.entries())).concat(Array.from(a.nonCausalStreams.entries()));b.sort(function(g,l){return g[0]-l[0]});
b=k(b);for(var c=b.next();!c.done;c=b.next()){var d=k(c.value);c=d.next().value;d=d.next().value;vC(a,c,d)}b=k(a.limboStreams);for(c=b.next();!c.done;c=b.next())c=k(c.value),c.next(),c.next().value.observer.complete();a.limboStreams.clear();var f=a.channel;Yi(function(){a.channel===f&&a.delayGenerator.reset()},45E3)};
sC.prototype.watch=function(a){var b=this;return new RB(function(c){if(1===b.state){var d=++b.streamNumber;c=new Xya(c,a);b.causalStreams.set(d,c);b.newStreamSubject.next({});vC(b,d,c);return function(){wC(b,d)}}})};
sC.prototype.watchWithStartTime=function(a,b){var c=this;return new RB(function(d){if(1===c.state){var f=++c.streamNumber;d=new uC(d,a,b);c.nonCausalStreams.set(f,d);c.newStreamSubject.next({});vC(c,f,d);return function(){wC(c,f)}}})};
sC.prototype.stop=function(){for(var a=k([this.causalStreams,this.limboStreams,this.nonCausalStreams]),b=a.next();!b.done;b=a.next()){b=b.value;for(var c=k(b.values()),d=c.next();!d.done;d=c.next()){d=d.value;try{d.observer.complete()}catch(f){}}b.clear()}if(this.channel)this.channel.close();else try{this.status.complete()}catch(f){}this.state=2;return Promise.resolve()};
var Xya=function(a,b){this.observer=a;this.interestSet=b};
Xya.prototype.start=function(){return new Yya(this.observer,this.interestSet)};
var Yya=function(a,b){this.observer=a;this.interestSet=b};
Yya.prototype.advance=function(a){return new uC(this.observer,this.interestSet,a)};
var uC=function(a,b,c){this.observer=a;this.interestSet=b;this.knowledgeTimestamp=c};
function Qya(a){var b=new eA;b.setName(a);return b}
function Rya(a){a.isPrivateToUser()?(a=new Uz,Cf(a,2,Tz[0],!0)):(a=new Uz,Cf(a,1,Tz[0],!0));return a}
function Sya(a,b){var c=new Xz;b&&uf(c,2,2);a=k(a.parts);for(b=a.next();!b.done;b=a.next()){var d=b.value;b=new Zz;d.value instanceof XA?d.isDecreasing?Cf(b,4,Yz[0],d.value.toString()):Cf(b,2,Yz[0],d.value.toString()):"string"===typeof d.value?d.isDecreasing?Cf(b,3,Yz[0],d.value):Cf(b,1,Yz[0],d.value):"number"===typeof d.value?d.isDecreasing?Cf(b,9,Yz[0],d.value):Cf(b,10,Yz[0],d.value):d.value instanceof Uint8Array?d.isDecreasing?Cf(b,5,Yz[0],d.value):Cf(b,7,Yz[0],d.value):d.value instanceof WA&&(
d.isDecreasing?(d=oxa(d.value),Ef(b,11,Yz[0],d)):(d=oxa(d.value),Ef(b,12,Yz[0],d)));Nf(c,1,b,Zz,void 0)}return c}
function Wya(a){for(var b,c,d=[],f=k((null===(b=a.getPath())||void 0===b?void 0:Mf(b,Zz,1))||[]),g=f.next();!g.done;g=f.next())switch(g=g.value,gf(g,Yz[0])){case 4:d.push(hB(fB(I(g,4))));break;case 2:d.push(new gB(fB(I(g,2))));break;case 10:d.push(new gB(mf(g,10)));break;case 9:d.push(hB(new gB(mf(g,9))));break;case 3:d.push(hB(I(g,3)));break;case 1:d.push(new gB(g.getString()));break;case 7:d.push(new gB(pf(I(g,7))));break;case 5:d.push(hB(pf(I(g,5))));break;case 12:g=pxa(M(g,Kh,12));if(null===g)return null;
d.push(new gB(g));break;case 11:g=pxa(M(g,Kh,11));if(null===g)return null;d.push(hB(g));break;default:return null;}switch(null===(c=a.getOwner())||void 0===c?void 0:gf(c,Tz[0])){case void 0:case 0:case 1:return txa.apply(iB,fa(d));case 2:return uxa.apply(iB,fa(d));case 15:return null;default:return null;}}
;var Zya=new Map(Object.entries({prod:{firstPartyUri:new jq("https://signaler-pa.clients6.google.com"),thirdPartyUri:new jq("https://signaler-pa.googleapis.com")},ytprod:{firstPartyUri:new jq("https://signaler-pa.youtube.com"),thirdPartyUri:new jq("https://signaler-pa.googleapis.com")},"dev-corp":{firstPartyUri:new jq("https://punctual-dev.corp.google.com"),thirdPartyUri:new jq("https://signaler-staging.sandbox.google.com")},dev:{firstPartyUri:new jq("https://signaler-staging.sandbox.google.com"),
thirdPartyUri:new jq("https://signaler-staging.sandbox.google.com")}}));var xC=function(){this.projectPath="/punctual/ytprod/youtube_live_chat_web"};
xC.prototype.setAuthUser=function(a){this.authUser=a;return this};
xC.prototype.setOAuthTokens=function(a){this.oauthTokens=a;return this};
xC.prototype.build=function(){if(this.oauthTokens)var a=new kB(this.oauthTokens);else if(this.apiKey)a=new jB(this.apiKey,this.authUser);else throw Error("An API key or OAuth token stream is required");var b=this.projectPath;if(!b.startsWith("/punctual/"))throw Error("Invalid Punctual project path does not start with /punctual/: "+b);var c=b.substring(10).split("/");if(2!==c.length)throw Error("Invalid Punctual path has an incorrect number of parts: "+b);b=k(c);c=b.next().value;b=b.next().value;if(c.startsWith("custom:"))c=
new jq(decodeURIComponent(c.substring(7))),c={firstPartyUri:c,thirdPartyUri:c};else{var d=Zya.get(c);if(!d)throw Error("Invalid Punctual environment: '"+c+"'");c=d}return Oya(c,a,b)};var yC=function(a,b,c){this.maxSize=a;this.items=b;this.flushSeqno=c};
yC.prototype.advance=function(a){if("number"===typeof a)a=this.flushSeqno===a?{state:this.reset(),batch:this.items.slice()}:{state:this};else{var b=a.seqno,c,d=this.items.slice();d.push(a.value);a=d.length>=this.maxSize?{state:this.reset(),batch:d}:{state:new yC(this.maxSize,d,null!==(c=this.flushSeqno)&&void 0!==c?c:b)}}return a};
yC.prototype.reset=function(){return new yC(this.maxSize,[])};
function $ya(a,b){return function(c){c=c.pipe(aC(function(f,g){return{value:f,seqno:g}}));
var d=c.pipe(aC(function(f){return f.seqno}),xya(b));
return tya(c,d).pipe(Hya(function(f,g){return f.state.advance(g)},{state:new yC(a,[])}),aC(function(f){return f.batch}),jC(function(f){return void 0!==f}))}}
;var zC=function(){var a=this;this.statusSubscribers=new Set;this.status=new RB(function(b){a.statusSubscribers.add(b);if(4===a.getState())mB(function(){b.complete()});else
{var c=a.lastChannelStatus;c&&mB(function(){b.next(c)})}return function(){return a.statusSubscribers.delete(b)}})};
zC.prototype.stop=function(){for(var a={},b=k(this.statusSubscribers),c=b.next();!c.done;a={$jscomp$loop$prop$subscriber$2366:a.$jscomp$loop$prop$subscriber$2366},c=b.next())a.$jscomp$loop$prop$subscriber$2366=c.value,mB(function(d){return function(){d.$jscomp$loop$prop$subscriber$2366.complete()}}(a));
return Promise.resolve()};
zC.prototype.onOpen=function(){if(Ht(this)){var a=new Ky;a.setCode(0);this.lastChannelStatus=a;AC(this,a)}};
zC.prototype.onError=function(a,b){Ht(this)&&(a=b.getLastHttpStatusCode(),b=new Ky,b.setCode(wxa(a)),this.lastChannelStatus=b,AC(this,b))};
zC.prototype.onClose=function(){};
var AC=function(a,b){var c={};a=k(a.statusSubscribers);for(var d=a.next();!d.done;c={$jscomp$loop$prop$subscriber$2368:c.$jscomp$loop$prop$subscriber$2368},d=a.next())c.$jscomp$loop$prop$subscriber$2368=d.value,mB(function(f){return function(){f.$jscomp$loop$prop$subscriber$2368.next(b)}}(c))},Ht=function(a){return 1===a.getState()||2===a.getState()},aza=function(a){this.authMethod=a};var BC=function(a,b){var c=void 0===c?xxa:c;this.authMethod=b;this.jspbClient=new nB(a,c)};
BC.prototype.subscribe=function(a){var b=a.getSubscription();uf(b,4,this.authMethod.getSubscriberKind());return this.jspbClient.post("/v1/subscriptions",a,mz,CC(this))};
BC.prototype.unsubscribe=function(a){uf(a,4,this.authMethod.getSubscriberKind());var b=new nz;b.setSubscription(a);return this.jspbClient.post("/v1/deleteSubscriptions",b,oz,CC(this))};
var bza=function(a,b){var c=new gz;b=k(b);for(var d=b.next();!d.done;d=b.next())Nf(c,2,d.value,dz,void 0);return a.jspbClient.post("/v1/acknowledgments",c,hz,CC(a))},CC=function(a){return{queryParams:a.authMethod.getQueryParameters(),
extraHeaders:a.authMethod.getHeaders(),withCredentials:a.authMethod.usesCredentialedRequests()}};var DC=function(){this.size=0;this.inner=new Map};
e=DC.prototype;e.clear=function(){this.inner.clear();this.size=this.inner.size};
e.delete=function(a){a=this.inner.delete(JSON.stringify(a));this.size=this.inner.size;return a};
e.forEach=function(a,b){var c=this;void 0!==b&&(a=a.bind(b));this.inner.forEach(function(d,f){f=JSON.parse(f);a(d,f,c)})};
e.get=function(a){return this.inner.get(JSON.stringify(a))};
e.has=function(a){return this.inner.has(JSON.stringify(a))};
e.set=function(a,b){this.inner.set(JSON.stringify(a),b);this.size=this.inner.size;return this};
DC.prototype[Symbol.iterator]=function(){return this.entries()};
DC.prototype.entries=function(){return new EC(this.inner.entries(),function(a){var b=k(a);a=b.next().value;b=b.next().value;return[JSON.parse(a),b]})};
DC.prototype.keys=function(){return new EC(this.inner.keys(),JSON.parse)};
DC.prototype.values=function(){return this.inner.values()};
var EC=function(a,b){this.inner=a;this.mapFunc=b};
EC.prototype[Symbol.iterator]=function(){return this};
EC.prototype.next=function(){var a=this.inner.next(),b=a.value;a=a.done;return{value:a?void 0:this.mapFunc(b),done:a}};var FC=function(a,b,c){this.name=a;this.isPrivateToUser=b;this.legacySource=c};
FC.makePrivateToUser=function(a){return new FC(a,!0)};
FC.makeLegacy=function(a,b){return new FC(b,!1,a)};
FC.prettyPrint=function(a){var b="{";a.legacySource&&(b=b.concat(" legacySource: "+a.legacySource+","));return b=b.concat(" name: \""+encodeURIComponent(a.name)+"\""," "+(a.isPrivateToUser?"(private)":"(public)")+" }")};var cza=new Set([1,2]),dza=new Set([408,429]),eza={callOnce:function(a,b){return Yi(a,b)},
clear:function(a){Zi(a)}},fza=function(a){this.cancelCallback=a},gza=function(a,b){var c=!1,d=a.callOnce(function(){c||b()},3E4);
return new fza(function(){c=!0;a.clear(d)})};
fza.prototype.cancel=function(){this.cancelCallback()};
var GC=function(a,b,c){c=void 0===c?eza:c;zC.call(this);this.doorman=a;this.config=b;this.timer=c;this.logger=new Wr;this.registrations=new DC;this.privatePerUserObjects=new Map;this.state=0;this.delayGenerator=new Ur(500,1024);this.acks=new VB;this.channel=b.channelProvider(this)};
p(GC,zC);GC.prototype.start=function(){var a=this;this.config.authMethod instanceof kB?this.tokenSubscription=this.config.authMethod.oauthTokens.subscribe(function(b){a.setOAuthToken(b)}):this.config.authMethod instanceof lB&&(this.tokenSubscription=this.config.authMethod.appAuthTokens.subscribe(function(b){a.channel.setAppAuthToken(b)}));
this.channel.newPostmanSession("tango_web",this).open();this.sendAckBatches=this.acks.pipe($ya(this.config.ackBatchMaxElements,this.config.ackBatchDelayMs)).subscribe(function(b){bza(a.doorman,b).catch(function(c){a.logger.warning("Encountered an error sending acks with acks="+(b+": "+JSON.stringify(c)))})});
this.state=2;return this};
GC.prototype.signalsFor=function(a){var b=this;return a.legacySource?dya(Error("Legacy ObjectIds are not supported by this implementation")):new RB(function(c){var d=b.registrations.get(a);d||(d=new HC(a.isPrivateToUser,function(f){hza(b,a,f)}),b.registrations.set(a,d),4===b.state&&d.terminate());
return iza(d,c)})};
var hza=function(a,b,c){if(Ht(a)&&a.registrations.get(b)===c)if(0===c.numSubscribers()){if(null==c.deleteSubscriptionTimeout){var d=gza(a.timer,function(){c.deleteSubscriptionTimeout=void 0;It(a,c);a.registrations.delete(b);null!=c.fullTopicName&&a.privatePerUserObjects.delete(c.fullTopicName)});
c.deleteSubscriptionTimeout=d}}else c.deleteSubscriptionTimeout&&(c.deleteSubscriptionTimeout.cancel(),c.deleteSubscriptionTimeout=void 0),0===c.state&&null!=a.subscriberInfo&&vqa(a,c,b,a.subscriberInfo)};
GC.prototype.setOAuthToken=function(a){this.channel.setOAuthToken(a)};
GC.prototype.onSessionError=function(a,b){this.logger.warning("Received session error: "+JSON.stringify(b));a=new Ky;a.setCode(2);a.setMessage(b.description);AC(this,a);b.isTransient&&this.logger.warning("Ignoring transient session error")};
var xqa=function(a,b){if(Ht(a)){var c=Kr(b,1),d=Kr(c,1).getTopicName();d=a.privatePerUserObjects.get(d)||new FC(d,!1);if(d=a.registrations.get(d)){c=c.getMessage();var f=Kr(c,3);f=fB?fB(f):new XA(Number(f),Number(f)/4294967296);var g=Ir(c,1)?c.getData():void 0,l=Ir(c,2)?Kr(c,2):void 0;c=Lr(c,4);c={version:f,payload:g,traceId:l,isSynthetic:!1,isSuppressor:c};jza(d,c);d=k(d.subscribers);for(f=d.next();!f.done;f=d.next())f.value.next(c)}else a.logger.warning("Acking and dropping signal on object with no listeners"),
null==a.subscriberInfo?a.logger.warning("Got signal for unregistered object before receiving subscriber info"):(a.logger.warning("Attempting to unsubscribe from unknown object for which we received an invalidation"),c=Kr(Kr(b,1),1),d=new iz,d.setTopicName(c.getTopicName()),uf(d,3,a.subscriberInfo),uf(d,4,a.config.authMethod.getSubscriberKind()),c=c.getName(),uf(d,5,c),a.unsubscribe(d));b=Kr(b,3);d=new Date().getTime();c=new dz;c.setId(b);uf(c,2,1E3*d);a.acks.next(c)}},vqa=function(a,b,c,d){b.state=
1;
var f=kza();b.subscriptionName=f;var g=new iz;g.setTopicName(c.name);uf(g,3,d);uf(g,5,f);uf(g,4,a.config.authMethod.getSubscriberKind());var l=new lz;l.setSubscription(g);uf(l,2,b.isPrivateToUser);var m=new Promise(function(n,r){lza(a,function(){return a.doorman.subscribe(l)},function(v){var z=g.clone();
K(v,2)&&(b.fullTopicName=I(v,2),z.setTopicName(b.fullTopicName));n(z);if(b.subscriptionName!==f||a.registrations.get(c)!==b)a.logger.warning("Received outdated subscribe response");else if(2===b.state)a.logger.warning("Received duplicate subscribe response");else{K(v,2)&&a.privatePerUserObjects.set(I(v,2),c);b.state=2;v=I(v,1);v={version:fB(v),isSynthetic:!0,isSuppressor:!0};jza(b,v);z=k(b.subscribers);for(var C=z.next();!C.done;C=z.next())C.value.next(v)}},function(v){r(v)},function(){return a.subscriberInfo===
d&&0<b.numSubscribers()})});
m.catch(function(n){if(d!==a.subscriberInfo||b!==a.registrations.get(c))a.logger.warning("Received outdated subscribe error");else{a.logger.warning("Encountered a permanent error creating subscription to "+(JSON.stringify(c)+": "+JSON.stringify(n)));if(0<b.subscribers.size){n=k(b.subscribers);for(var r=n.next();!r.done;r=n.next()){r=r.value;var v=r.error,z=new Ky;z.setCode(2);v.call(r,z)}b.subscribers.clear();b.numSubscribersChangedCallback(b)}b.state=0;b.subscription=void 0;b.subscriptionName=void 0}});
b.subscription=m},It=function(a,b){b.subscription&&(b.subscription.then(function(c){a.unsubscribe(c)},function(){a.logger.info("Subscribe request failed. Not attempting deletion.")}),b.state=0,b.subscription=void 0,b.subscriptionName=void 0)};
GC.prototype.unsubscribe=function(a){var b=this;this.doorman.unsubscribe(a).then(function(){b.logger.info("Successfully deleted subscription")}).catch(function(c){b.logger.warning("Failed to delete subscription",c)})};
GC.prototype.stop=function(){this.state=3;this.tokenSubscription&&(this.tokenSubscription.unsubscribe(),this.tokenSubscription=void 0);this.sendAckBatches&&(this.sendAckBatches.unsubscribe(),this.sendAckBatches=void 0);zC.prototype.stop.call(this);for(var a=k(this.registrations.values()),b=a.next();!b.done;b=a.next())b=b.value,It(this,b),b.terminate();this.state=4;return Promise.resolve()};
GC.prototype.getState=function(){return this.state};
var lza=function(a,b,c,d,f){b().then(function(g){a.delayGenerator.reset();c(g)}).catch(function(g){g instanceof Error?a.logger.warning("Unexpected error:",g):mza(g)?(a.delayGenerator.reset(),d(g)):(null==f||f())&&a.timer.callOnce(function(){lza(a,b,c,d,f)},Vr(a.delayGenerator))})};
function kza(){for(var a=[];8>a.length;)a.push(Math.floor(256*Math.random()));return Me(a)}
var HC=function(a,b){this.isPrivateToUser=a;this.numSubscribersChangedCallback=b;this.state=0;this.subscribers=new Set};
HC.prototype.numSubscribers=function(){return this.subscribers.size};
var iza=function(a,b){if(3===a.state)return b.complete(),function(){};
a.subscribers.add(b);null!=a.latestSignal&&b.next(a.latestSignal);a.numSubscribersChangedCallback(a);return function(){a.subscribers.delete(b);a.numSubscribersChangedCallback(a)}},jza=function(a,b){if(null==a.latestSignal||0<b.version.compare(a.latestSignal.version))a.latestSignal=b};
HC.prototype.terminate=function(){this.state=3;for(var a=k(this.subscribers),b=a.next();!b.done;b=a.next())b.value.complete();this.subscribers.clear()};
var nza=function(a,b,c,d,f){this.authMethod=a;this.channelProvider=b;this.doormanUri=c;this.ackBatchDelayMs=d;this.ackBatchMaxElements=f};
p(nza,aza);function mza(a){return cza.has(a.code)||null!=a.status&&400<=a.status&&499>=a.status&&!dza.has(a.status)}
;var IC=function(){this.domainType=0},pza=function(a){return oza(a,a.getChannelUriForDomain(a.domainType))},qza=function(a){return oza(a,a.getDoormanUriForDomain(a.domainType))},oza=function(a,b){a.scheme&&b.setScheme(a.scheme);
return b},JC=function(){IC.apply(this,arguments)};
p(JC,IC);JC.prototype.getChannelUriForDomain=function(a){switch(a){case 0:case 1:return new jq("https://client-channel.google.com/client-channel/client");case 2:return new jq("https://client-channel.youtube.com/client-channel/client");default:return new jq;}};
JC.prototype.getDoormanUriForDomain=function(a){switch(a){case 0:return new jq("https://signaler-pa.clients6.google.com");case 1:return new jq("https://signaler-pa.googleapis.com");case 2:return new jq("https://signaler-pa.youtube.com");default:return new jq;}};
var KC=function(){IC.apply(this,arguments)};
p(KC,IC);KC.prototype.getChannelUriForDomain=function(){return new jq("https://client-channel.sandbox.google.com/client-channel/client")};
KC.prototype.getDoormanUriForDomain=function(){return new jq("https://signaler-staging.sandbox.google.com")};
var LC=function(a,b){this.domainType=0;this.channelUri=a;this.doormanUri=b};
p(LC,IC);LC.prototype.getChannelUriForDomain=function(){return this.channelUri};
LC.prototype.getDoormanUriForDomain=function(){return this.doormanUri};
var MC=function(a,b){this.lcsClientType=a;this.environment=b;this.useSharedChannel=!1};
MC.forLocalEnv=function(a,b,c){b=new jq(b);c=new jq(c);return new MC(a,new LC(b,c))};
MC.forStagingEnv=function(a){return new MC(a,new KC())};
MC.forProdEnv=function(a){return new MC(a,new JC())};
MC.forYouTubeProd=function(a){var b=new JC;b.domainType=2;return new MC(a,b)};
e=MC.prototype;e.enableChannelSharing=function(){this.useSharedChannel=!0;return this};
e.withLegacyTangoChannel=function(a){this.channelProvider=function(b){a.setChannelHandler(b);return a.getRawChannel()};
return this};
e.withAuthUser=function(a){this.authUser=a;return this};
e.withApiKey=function(a){this.apiKey=a;return this};
e.withOAuthTokens=function(a){this.environment.domainType=1;this.oauthTokens=a;return this};
e.withAppAuthTokens=function(a){this.environment.domainType=1;this.appAuthTokens=a;this.oauthTokens=void 0;return this};
e.withPageId=function(a){this.pageId=a;return this};
e.withPlainHttpForTest=function(){this.environment.scheme="http";return this};
e.build=function(){var a=rza;var b=pza(this.environment).toString();b=new Ct(b,this.lcsClientType,"lcsclient");return a(this,b)};
e.buildWithoutIframe=function(){var a=pza(this.environment);a.setPath("/client-channel/channel");return rza(this,new dt(a.toString(),this.lcsClientType))};
var rza=function(a,b){if(a.oauthTokens)var c=new kB(a.oauthTokens,a.pageId);else{if(!a.apiKey)throw Error("An API key is required");c=a.appAuthTokens?new lB(a.apiKey,a.appAuthTokens):new jB(a.apiKey,a.authUser,a.pageId)}var d=qza(a.environment);a.channelProvider||(c instanceof jB&&b.setUseSharedChannel(a.useSharedChannel),a.pageId&&b.setPageId(a.pageId),a.authUser&&b.setAuthuser(a.authUser),a.channelProvider=function(f){f=!b.pageId&&t.SharedWorker&&b.isIframed()&&b.useSharedChannel?new Jt(f,b):new wqa(f,
b);f.open();return f});
return new nza(c,a.channelProvider,d,250,20)};
function sza(a){return new GC(new BC(a.doormanUri,a.authMethod),a)}
;var NC=function(a){this.punctualClient=a;this.status=a.status};
NC.prototype.start=function(){return this.punctualClient.start()};
NC.prototype.signalsFor=function(a){a=a.isPrivateToUser?uxa(a.name):txa(a.name);return this.punctualClient.watch(new vxa(a)).pipe(jC(function(b){return!(b instanceof kxa)}),aC(function(b){if(b instanceof PA){var c=1===b.objectId.parts.length,d=b.payload&&Cca(b.payload);
return{version:b.version,payload:d,isSynthetic:!1,isSuppressor:c}}return{isSynthetic:!0,isSuppressor:!0}}),Jya())};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var OC=window,PC=document,tza=OC.location,uza=function(){},vza=/\[native code\]/,QC=function(a,b,c){return a[b]=a[b]||c},wza=function(a){a=a.sort();
for(var b=[],c=void 0,d=0;d<a.length;d++){var f=a[d];f!=c&&b.push(f);c=f}return b},RC=function(){var a;
if((a=Object.create)&&vza.test(a))a=a(null);else{a={};for(var b in a)a[b]=void 0}return a},SC=QC(OC,"gapi",{});var TC;TC=QC(OC,"___jsl",RC());QC(TC,"I",0);QC(TC,"hel",10);var xza=function(){var a=tza.href;if(TC.dpo)var b=TC.h;else{b=TC.h;var c=/([#].*&|[#])jsh=([^&#]*)/g,d=/([?#].*&|[?#])jsh=([^&#]*)/g;if(a=a&&(c.exec(a)||d.exec(a)))try{b=decodeURIComponent(a[2])}catch(f){}}return b},yza=function(a){var b=QC(TC,"PQ",[]);
TC.PQ=[];var c=b.length;if(0===c)a();else for(var d=0,f=function(){++d===c&&a()},g=0;g<c;g++)b[g](f)},UC=function(a){return QC(QC(TC,"H",RC()),a,RC())};var zza=function(a){this.obj_=a};
e=zza.prototype;e.value=function(){return this.obj_};
e.setWidth=function(a){this.obj_.width=a;return this};
e.getWidth=function(){return this.obj_.width};
e.setHeight=function(a){this.obj_.height=a;return this};
e.getHeight=function(){return this.obj_.height};
e.setStyle=function(a){this.obj_.style=a;return this};
e.getStyle=function(){return this.obj_.style};
e.setOnLoad=function(a){this.obj_.onload=a;return this};
e.getOnLoad=function(){return this.obj_.onload};var Aza=function(a){this.obj_=a};
e=Aza.prototype;e.setAnchor=function(a){this.obj_.anchor=a;return this};
e.getAnchor=function(){return this.obj_.anchor};
e.setAnchorPosition=function(a){this.obj_.anchorPosition=a;return this};
e.getAnchorPosition=function(){return this.obj_.anchorPosition};
e.setArrowPosition=function(a){this.obj_.arrowPosition=a;return this};
e.getArrowPosition=function(){return this.obj_.arrowPosition};
e.setCloseClickDetection=function(a){this.obj_.closeClickDetection=a;return this};
e.getCloseClickDetection=function(){return this.obj_.closeClickDetection};
e.setHideClickDetection=function(a){this.obj_.hideClickDetection=a;return this};
e.getHideClickDetection=function(){return this.obj_.hideClickDetection};
e.setMaxExpectedSize=function(a){this.obj_.maxExpectedSize=a;return this};
e.getMaxExpectedSize=function(){return this.obj_.maxExpectedSize};
e.setShowSpinner=function(a){this.obj_.showSpinner=a;return this};
e.getShowSpinner=function(){return this.obj_.showSpinner};
e.setShow=function(a){this.obj_.show=a;return this};
e.getShow=function(){return this.obj_.show};
e.setHeight=function(a){this.obj_.height=a;return this};
e.getHeight=function(){return this.obj_.height};
e.setWidth=function(a){this.obj_.width=a;return this};
e.getWidth=function(){return this.obj_.width};
e.setBubbleType=function(a){this.obj_.bubbletype=a;return this};
e.getBubbleType=function(){return this.obj_.bubbletype};
e.setExpandTo=function(a){this.obj_.expandTo=a;return this};
e.getExpandTo=function(){return this.obj_.expandTo};
e.setContainerStyle=function(a){this.obj_.containerStyle=a;return this};
e.getContainerStyle=function(){return this.obj_.containerStyle};
e.setTrayPosition=function(a){this.obj_.trayPosition=a;return this};
e.getTrayPosition=function(){return this.obj_.trayPosition};
e.setCreateOverlay=function(a){this.obj_.createOverlay=a;return this};
e.getCreateOverlay=function(){return this.obj_.createOverlay};
e.setAnimationRule=function(a){this.obj_.animationRule=a;return this};
e.getAnimationRule=function(){return this.obj_.animationRule};var VC=function(){this.obj_={}};
e=VC.prototype;e.value=function(){return this.obj_};
e.setUrl=function(a){this.obj_.url=a;return this};
e.getUrl=function(){return this.obj_.url};
e.getWhere=function(){return this.obj_.where};
e.setStyle=function(a){this.obj_.style=a;return this};
e.getStyle=function(){return this.obj_.style};
e.setId=function(a){this.obj_.id=a;return this};
e.getId=function(){return this.obj_.id};
e.getRpcToken=function(){return this.obj_.rpctoken};
e.setHintInFragment=function(a){this.obj_.hintInFragment=a;return this};
e.getHintInFragment=function(){return this.obj_.hintInFragment};
e.setDontClear=function(a){this.obj_.dontclear=a;return this};
e.getDontClear=function(){return this.obj_.dontclear};
e.setBeforeNode=function(a){this.obj_.beforeNode=a;return this};
e.getBeforeNode=function(){return this.obj_.beforeNode};
e.getQueryParams=function(){return this.obj_.queryParams};
e.setFragmentParams=function(a){this.obj_.fragmentParams=a;return this};
e.getFragmentParams=function(){return this.obj_.fragmentParams};
e.setParamsSerializer=function(a){this.obj_.paramsSerializer=a;return this};
e.getParamsSerializer=function(){return this.obj_.paramsSerializer};
e.setForcePost=function(a){this.obj_.forcePost=a;return this};
e.getAllowPost=function(){return this.obj_.allowPost};
e.getForcePost=function(){return this.obj_.forcePost};
e.setDropDataPostorigin=function(a){this.obj_.dropDataPostorigin=a;return this};
e.getDropDataPostorigin=function(){return this.obj_.dropDataPostorigin};
e.setRelayOpen=function(a){this.obj_.relayOpen=a;return this};
e.getRelayOpen=function(){return this.obj_.relayOpen};
e.setDisableRelayOpen=function(a){this.obj_.disableRelayOpen=a;return this};
e.getDisableRelayOpen=function(){return this.obj_.disableRelayOpen};
e.getMessageHandlers=function(){return this.obj_.messageHandlers};
e.getMessageHandlersFilter=function(){return this.obj_.messageHandlersFilter};
e.setApis=function(a){this.obj_.apis=a;return this};
e.getApis=function(){return this.obj_.apis};
e.setOpenAsWindow=function(a){this.obj_.openAsWindow=a;return this};
e.getOpenAsWindow=function(){return this.obj_.openAsWindow};
e.setReuseWindow=function(a){this.obj_.reuseWindow=a;return this};
e.getReuseWindow=function(){return this.obj_.reuseWindow};
e.setRpcRelayUrl=function(a){this.obj_.rpcRelayUrl=a;return this};
e.getRpcRelayUrl=function(){return this.obj_.rpcRelayUrl};
e.setOnClose=function(a){this.obj_.onClose=a;return this};
e.getOnClose=function(){return this.obj_.onClose};
e.setOnRestyle=function(a){this.obj_.onRestyle=a;return this};
e.getOnRestyle=function(){return this.obj_.onRestyle};
e.setOnCreate=function(a){this.obj_.onCreate=a;return this};
e.getOnCreate=function(){return this.obj_.onCreate};
e.getContext=function(){return this.obj_.context};
e.getOpenerIframe=function(){return this.obj_.openerIframe};
e.getStyleOptions=function(){return new Aza(this.obj_)};
var Bza=function(a){a.obj_.attributes=a.obj_.attributes||{};return new zza(a.obj_.attributes)};
e=VC.prototype;e.setController=function(a){this.obj_.controller=a;return this};
e.getController=function(){return this.obj_.controller};
e.setControllerData=function(a){this.obj_.controllerData=a;return this};
e.getControllerData=function(){return this.obj_.controllerData};
e.setCanvasUrl=function(a){this.obj_.canvasUrl=a;return this};
e.getCanvasUrl=function(){return this.obj_.canvasUrl};
e.setWaitForOnload=function(a){this.obj_.waitForOnload=a;return this};
e.getWaitForOnload=function(){return this.obj_.waitForOnload};
e.setConnectWithQueryParams=function(a){this.obj_.connectWithQueryParams=a;return this};
e.getConnectWithQueryParams=function(){return this.obj_.connectWithQueryParams};
e.setHeightPadding=function(a){this.obj_.heightPadding=a;return this};
e.getHeightPadding=function(){return this.obj_.heightPadding};
e.setTimeoutMs=function(a){this.obj_.timeout=a;return this};
e.getTimeoutMs=function(){var a=this.obj_.timeout;return a?a:null};var WC=QC(TC,"perf",RC());QC(WC,"g",RC());var Cza=QC(WC,"i",RC());QC(WC,"r",[]);RC();RC();var XC=function(a,b,c){b&&0<b.length&&(b=Dza(b),c&&0<c.length&&(b+="___"+Dza(c)),28<b.length&&(b=b.substr(0,28)+(b.length-28)),c=b,b=QC(Cza,"_p",RC()),QC(b,c,RC())[a]=new Date().getTime(),b=WC.r,"function"===typeof b?b(a,"_p",c):b.push([a,"_p",c]))},Dza=function(a){return a.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var Eza=RC(),YC=[],ZC=function(a){throw Error("Bad hint"+(a?": "+a:""))};
YC.push(["jsl",function(a){for(var b in a)if(Object.prototype.hasOwnProperty.call(a,b)){var c=a[b];"object"==typeof c?TC[b]=QC(TC,b,[]).concat(c):QC(TC,b,c)}if(b=a.u)a=QC(TC,"us",[]),a.push(b),(b=/^https:(.*)$/.exec(b))&&a.push("http:"+b[1])}]);
var Fza=/^(\/[a-zA-Z0-9_\-]+)+$/,Gza=[/\/amp\//,/\/amp$/,/^\/amp$/],Hza=/^[a-zA-Z0-9\-_\.,!]+$/,Iza=/^gapi\.loaded_[0-9]+$/,Jza=/^[a-zA-Z0-9,._-]+$/,Nza=function(a,b,c,d){var f=a.split(";"),g=f.shift(),l=Eza[g],m=null;l?m=l(f,b,c,d):ZC("no hint processor for: "+g);m||ZC("failed to generate load url");b=m;c=b.match(Kza);(d=b.match(Lza))&&1===d.length&&Mza.test(b)&&c&&1===c.length||ZC("failed sanity: "+a);return m},Qza=function(a,b,c,d){a=O