(function(){/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ 'use strict';var q;function aa(a){var b=0;return function(){return b>>0)+"_",e=0;return b}); t("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=e}}); t("Array.prototype.find",function(a){return a?a:function(b,c){a:{var d=this;d instanceof String&&(d=String(d));for(var e=d.length,f=0;f=f}}); t("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}}); t("Object.setPrototypeOf",function(a){return a||sa}); t("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)ja(b,d)&&c.push(b[d]);return c}}); t("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}}); t("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c>>0),Ta=0;function Ua(a,b,c){return a.call.apply(a.bind,arguments)} function Va(a,b,c){if(!a)throw Error();if(2/g,Ab=/"/g,Bb=/'/g,Cb=/\x00/g,Db=/[\x00&<>"']/;function Eb(a){this.g=a} Eb.prototype.toString=function(){return this.g.toString()}; var Fb={},Lb=new Eb("about:invalid#zClosurez",Fb);var Mb,Nb=B("CLOSURE_FLAGS"),Ob=Nb&&Nb[610401301];Mb=null!=Ob?Ob:!1;function Pb(){var a=A.navigator;return a&&(a=a.userAgent)?a:""} var Qb,Rb=A.navigator;Qb=Rb?Rb.userAgentData||null:null;function Sb(a){return Mb?Qb?Qb.brands.some(function(b){return(b=b.brand)&&-1!=b.indexOf(a)}):!1:!1} function D(a){return-1!=Pb().indexOf(a)} ;function Tb(){return Mb?!!Qb&&0")&&(a=a.replace(zb,">")),-1!=a.indexOf('"')&&(a=a.replace(Ab,""")),-1!=a.indexOf("'")&&(a=a.replace(Bb,"'")),-1!=a.indexOf("\x00")&&(a=a.replace(Cb,"�")));return a} ;var Yb=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function Zb(a){return a?decodeURI(a):a} function $b(a){return Zb(a.match(Yb)[3]||null)} function ac(a){var b=a.match(Yb);a=b[1];var c=b[2],d=b[3];b=b[4];var e="";a&&(e+=a+":");d&&(e+="//",c&&(e+=c+"@"),e+=d,b&&(e+=":"+b));return e} function bc(a,b,c){if(Array.isArray(b))for(var d=0;dd)return null;e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return decodeURIComponent(a.slice(d,-1!==e?e:0).replace(/\+/g," "))} ;function fc(a){A.setTimeout(function(){throw a;},0)} ;function gc(){return D("iPhone")&&!D("iPod")&&!D("iPad")} ;function hc(a){hc[" "](a);return a} hc[" "]=function(){};var ic=Tb()?!1:D("Opera"),jc=Ub(),oc=D("Edge"),pc=D("Gecko")&&!(-1!=Pb().toLowerCase().indexOf("webkit")&&!D("Edge"))&&!(D("Trident")||D("MSIE"))&&!D("Edge"),qc=-1!=Pb().toLowerCase().indexOf("webkit")&&!D("Edge");function rc(){var a=A.document;return a?a.documentMode:void 0} var sc;a:{var tc="",uc=function(){var a=Pb();if(pc)return/rv:([^\);]+)(\)|;)/.exec(a);if(oc)return/Edge\/([\d\.]+)/.exec(a);if(jc)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(qc)return/WebKit\/(\S+)/.exec(a);if(ic)return/(?:Version)[ \/]?(\S+)/.exec(a)}(); uc&&(tc=uc?uc[1]:"");if(jc){var vc=rc();if(null!=vc&&vc>parseFloat(tc)){sc=String(vc);break a}}sc=tc}var wc=sc,xc;if(A.document&&jc){var yc=rc();xc=yc?yc:parseInt(wc,10)||void 0}else xc=void 0;var zc=xc;var Ac=gc()||D("iPod"),Bc=D("iPad");!D("Android")||Vb();Vb();var Cc=D("Safari")&&!(Vb()||(Tb()?0:D("Coast"))||(Tb()?0:D("Opera"))||(Tb()?0:D("Edge"))||(Tb()?Sb("Microsoft Edge"):D("Edg/"))||(Tb()?Sb("Opera"):D("OPR"))||D("Firefox")||D("FxiOS")||D("Silk")||D("Android"))&&!(gc()||D("iPad")||D("iPod"));var Dc={},Ec=null; function Fc(a,b){Pa(a);void 0===b&&(b=0);if(!Ec){Ec={};for(var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),d=["+/=","+/","-_=","-_.","-_"],e=0;5>e;e++){var f=c.concat(d[e].split(""));Dc[e]=f;for(var g=0;g>2];k=b[(k&3)<<4|l>>4];l=b[(l&15)<<2|h>>6];h=b[h&63];c[e++]=""+g+k+l+h}g=0;h=d;switch(a.length- f){case 2:g=a[f+1],h=b[(g&15)<<2]||d;case 1:a=a[f],c[e]=""+b[a>>2]+b[(a&3)<<4|g>>4]+h+d}return c.join("")} ;var Gc="undefined"!==typeof Uint8Array,Hc=!jc&&"function"===typeof btoa;function Ic(a){return Array.prototype.slice.call(a)} ;var Jc="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol():void 0;Math.max.apply(Math,ia(Object.values({Fd:1,Ed:2,Dd:4,Hd:8,Gd:16,zd:32,Id:64,Bd:128,Ad:256,Cd:512})));var Kc=Jc?function(a,b){a[Jc]|=b}:function(a,b){void 0!==a.fa?a.fa|=b:Object.defineProperties(a,{fa:{value:b, configurable:!0,writable:!0,enumerable:!1}})}; function Lc(a){var b=F(a);1!==(b&1)&&(Object.isFrozen(a)&&(a=Ic(a)),Nc(a,b|1))} var Oc=Jc?function(a,b){a[Jc]&=~b}:function(a,b){void 0!==a.fa&&(a.fa&=~b)},F=Jc?function(a){return a[Jc]|0}:function(a){return a.fa|0},G=Jc?function(a){return a[Jc]}:function(a){return a.fa},Nc=Jc?function(a,b){a[Jc]=b}:function(a,b){void 0!==a.fa?a.fa=b:Object.defineProperties(a,{fa:{value:b, configurable:!0,writable:!0,enumerable:!1}})}; function Pc(a,b){Object.isFrozen(a)&&(a=Ic(a));Nc(a,b);return a} function Qc(a){Kc(a,1);return a} function Rc(a,b){Nc(b,(a|0)&-51)} function Sc(a,b){Nc(b,(a|18)&-41)} function Tc(a){a=a>>10&1023;return 0===a?536870912:a} ;var Uc={};function Vc(a){return null!==a&&"object"===typeof a&&!Array.isArray(a)&&a.constructor===Object} var Wc,Xc,Yc=[];Nc(Yc,23);Xc=Object.freeze(Yc);function Zc(a){if(a&2)throw Error();} ;function $c(a){return a.displayName||a.name||"unknown type name"} function dd(a){if("boolean"!==typeof a)throw Error("Expected boolean but got "+Na(a)+": "+a);return!!a} function ed(a){if(null!=a&&"string"!==typeof a)throw Error("Expected a string or null or undefined but got "+a+" a "+Na(a));return a} function fd(a){return null==a||"string"===typeof a?a:void 0} function gd(a,b){if(!(a instanceof b))throw Error("Expected instanceof "+$c(b)+" but got "+(a&&$c(a.constructor)));return a} function hd(a,b,c){var d=!1;if(null!=a&&"object"===typeof a&&!(d=Array.isArray(a))&&a.Jb===Uc)return a;if(d){var e=d=F(a);0===e&&(e|=c&16);e|=c&2;e!==d&&Nc(a,e);return new b(a)}} ;function id(a,b){a=a.o;return jd(a,G(a),b)} function jd(a,b,c,d){if(-1===c)return null;if(c>=Tc(b)){if(b&128)return a[a.length-1][c]}else{var e=a.length;if(d&&b&128&&(d=a[e-1][c],null!=d))return d;b=c+((b>>8&1)-1);if(b=f||e){e=b;if(b&128)f=a[a.length-1];else{if(null==d)return;f=a[f+((b>>8&1)-1)]={};e|=128}f[c]=d;e&=-513;e!==b&&Nc(a,e)}else a[c+((b>>8&1)-1)]=d,b&128&&(d=a[a.length-1],c in d&&delete d[c]),b&512&&Nc(a,b&-513)} function ld(a,b,c,d,e){var f=b&2,g=jd(a,b,c,e);Array.isArray(g)||(g=Xc);var h=F(g);h&1||Qc(g);if(f)h&2||Kc(g,18),d&1||Object.freeze(g);else{f=!(d&2);var k=h&2;d&1||!k?f&&h&16&&!k&&Oc(g,16):(g=Qc(Ic(g)),kd(a,b,c,g,e))}return g} function md(a,b,c,d){a=a.o;var e=G(a);Zc(e);(c=nd(a,e,c))&&c!==b&&null!=d&&kd(a,e,c);kd(a,e,b,d)} function od(a,b,c){a=a.o;return nd(a,G(a),b)===c?c:-1} function nd(a,b,c){for(var d=0,e=0;e>8&1)-1;e=f-b;1024<=e&&(yd(c,b,g),e=1023);d=d&-1047553|(e&1023)<<10;break a}}b&&(g=(d>>8&1)-1,b=Math.max(b,e-g),1024=f){Object.assign(b[b.length-1]={},g);break}e=!0}g=b;c=!c;f=G(a.o);a=Tc(f);f=(f>>8&1)-1;for(var h,k,l=0;lp;p+=4)r[p/4]=n[p]<<24|n[p+1]<<16|n[p+2]<<8|n[p+3];for(p=16;80>p;p++)n=r[p-3]^r[p-8]^r[p-14]^r[p-16],r[p]=(n<<1|n>>>31)&4294967295;n=e[0];var x=e[1],y=e[2],E=e[3],P=e[4];for(p=0;80>p;p++){if(40>p)if(20>p){var U=E^x&(y^E);var R=1518500249}else U=x^y^E,R=1859775393;else 60>p?(U=x&y|E&(x|y),R=2400959708):(U=x^y^E,R=3395469782);U=((n<<5|n>>>27)&4294967295)+U+P+R+r[p]&4294967295;P=E;E=y;y=(x<<30|x>>>2)&4294967295;x=n;n=U}e[0]=e[0]+n&4294967295;e[1]=e[1]+x&4294967295;e[2]= e[2]+y&4294967295;e[3]=e[3]+E&4294967295;e[4]=e[4]+P&4294967295} function c(n,r){if("string"===typeof n){n=unescape(encodeURIComponent(n));for(var p=[],x=0,y=n.length;xl?c(h,56-l):c(h,64-(l-56));for(var p=63;56<=p;p--)f[p]=r&255,r>>>=8;b(f);for(p=r=0;5>p;p++)for(var x=24;0<=x;x-=8)n[r++]=e[p]>>x&255;return n} for(var e=[],f=[],g=[],h=[128],k=1;64>k;++k)h[k]=0;var l,m;a();return{reset:a,update:c,digest:d,Kc:function(){for(var n=d(),r="",p=0;ph?"":0==h?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*h)).toUTCString();this.g.cookie=a+"="+b+c+g+h+d+(null!=e?";samesite="+ e:"")}; q.get=function(a,b){for(var c=a+"=",d=(this.g.cookie||"").split(";"),e=0,f;ee?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296==(e&64512)&&d+1>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}a=new Uint8Array(b.length);for(c=0;c>>0);function Ne(a){if("function"===typeof a)return a;a[Ve]||(a[Ve]=function(b){return a.handleEvent(b)}); return a[Ve]} ;function We(){we.call(this);this.g=new Fe(this);this.kb=this;this.P=null} Xa(We,we);We.prototype[Be]=!0;We.prototype.addEventListener=function(a,b,c,d){Le(this,a,b,c,d)}; We.prototype.removeEventListener=function(a,b,c,d){Te(this,a,b,c,d)}; function Xe(a,b){var c=a.P;if(c){var d=[];for(var e=1;c;c=c.P)d.push(c),++e}a=a.kb;c=b.type||b;"string"===typeof b?b=new xe(b,a):b instanceof xe?b.target=b.target||a:(e=b,b=new xe(c,a),rb(b,e));e=!0;if(d)for(var f=d.length-1;!b.i&&0<=f;f--){var g=b.g=d[f];e=Ye(g,c,!0,b)&&e}b.i||(g=b.g=a,e=Ye(g,c,!0,b)&&e,b.i||(e=Ye(g,c,!1,b)&&e));if(d)for(f=0;!b.i&&fa&&Number.isInteger(a)&&this.data_[a]!==b&&(this.data_[a]=b,this.g=-1)}; df.prototype.get=function(a){return!!this.data_[a]}; function ef(a){-1===a.g&&(a.g=gb(a.data_,function(b,c,d){return c?b+Math.pow(2,d):b},0)); return a.g} ;function ff(a){this.o=K(a)} v(ff,L);function gf(a){this.o=K(a)} v(gf,L);function hf(a,b){return J(a,2,b)} function jf(a,b){return J(a,3,b)} function kf(a,b){return J(a,4,b)} function lf(a,b){return J(a,5,b)} function mf(a,b){return J(a,9,b)} function nf(a,b){var c=a.o,d=G(c);Zc(d);if(null!=b){for(var e=!!b.length,f=0;fa.h&&(a.h++,b.next=a.g,a.g=b)} ;var zf;function Af(){var a=A.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!D("Presto")&&(a=function(){var e=Kd();e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var g="callImmediate"+Math.random(),h="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=Wa(function(k){if(("*"==h||k.origin==h)&&k.data==g)this.port1.onmessage()},this); f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(g,h)}}}); if("undefined"!==typeof a&&!Ub()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.Tb;c.Tb=null;e()}}; return function(e){d.next={Tb:e};d=d.next;b.port2.postMessage(0)}}return function(e){A.setTimeout(e,0)}} ;function Bf(){this.h=this.g=null} Bf.prototype.add=function(a,b){var c=Cf.get();c.set(a,b);this.h?this.h.next=c:this.g=c;this.h=c}; Bf.prototype.remove=function(){var a=null;this.g&&(a=this.g,this.g=this.g.next,this.g||(this.h=null),a.next=null);return a}; var Cf=new xf(function(){return new Df},function(a){return a.reset()}); function Df(){this.next=this.scope=this.g=null} Df.prototype.set=function(a,b){this.g=a;this.scope=b;this.next=null}; Df.prototype.reset=function(){this.next=this.scope=this.g=null};var Ef,Ff=!1,Gf=new Bf;function Hf(a,b){Ef||If();Ff||(Ef(),Ff=!0);Gf.add(a,b)} function If(){if(A.Promise&&A.Promise.resolve){var a=A.Promise.resolve(void 0);Ef=function(){a.then(Jf)}}else Ef=function(){var b=Jf; "function"!==typeof A.setImmediate||A.Window&&A.Window.prototype&&(Tb()||!D("Edge"))&&A.Window.prototype.setImmediate==A.setImmediate?(zf||(zf=Af()),zf(b)):A.setImmediate(b)}} function Jf(){for(var a;a=Gf.remove();){try{a.g.call(a.scope)}catch(b){fc(b)}yf(Cf,a)}Ff=!1} ;function Kf(a,b){this.g=a[A.Symbol.iterator]();this.h=b} Kf.prototype[Symbol.iterator]=function(){return this}; Kf.prototype.next=function(){var a=this.g.next();return{value:a.done?void 0:this.h.call(void 0,a.value),done:a.done}}; function Lf(a,b){return new Kf(a,b)} ;function Mf(){this.blockSize=-1} ;function Nf(){this.blockSize=-1;this.blockSize=64;this.g=[];this.u=[];this.A=[];this.i=[];this.i[0]=128;for(var a=1;ae;e++)d[e]=b.charCodeAt(c)<<24|b.charCodeAt(c+1)<<16|b.charCodeAt(c+2)<<8|b.charCodeAt(c+3),c+=4;else for(e=0;16>e;e++)d[e]=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4;for(e=16;80>e;e++){var f=d[e-3]^d[e-8]^d[e-14]^d[e-16];d[e]=(f<<1|f>>>31)&4294967295}b=a.g[0];c=a.g[1];var g=a.g[2],h=a.g[3],k=a.g[4];for(e=0;80>e;e++){if(40>e)if(20>e){f=h^c&(g^h);var l=1518500249}else f=c^g^h,l=1859775393;else 60>e?(f=c&g|h&(c|g),l=2400959708): (f=c^g^h,l=3395469782);f=(b<<5|b>>>27)+f+k+l+d[e]&4294967295;k=h;h=g;g=(c<<30|c>>>2)&4294967295;c=b;b=f}a.g[0]=a.g[0]+b&4294967295;a.g[1]=a.g[1]+c&4294967295;a.g[2]=a.g[2]+g&4294967295;a.g[3]=a.g[3]+h&4294967295;a.g[4]=a.g[4]+k&4294967295} Nf.prototype.update=function(a,b){if(null!=a){void 0===b&&(b=a.length);for(var c=b-this.blockSize,d=0,e=this.u,f=this.h;dthis.h?this.update(this.i,56-this.h):this.update(this.i,this.blockSize-(this.h-56));for(var c=this.blockSize-1;56<=c;c--)this.u[c]=b&255,b/=256;Of(this,this.u);for(c=b=0;5>c;c++)for(var d=24;0<=d;d-=8)a[b]=this.g[c]>>d&255,++b;return a};function Pf(){} Pf.prototype.next=function(){return Qf}; var Qf={done:!0,value:void 0};function Rf(a){return{value:a,done:!1}} Pf.prototype.ha=function(){return this};function Sf(a){if(a instanceof Tf||a instanceof Uf||a instanceof Vf)return a;if("function"==typeof a.next)return new Tf(function(){return a}); if("function"==typeof a[Symbol.iterator])return new Tf(function(){return a[Symbol.iterator]()}); if("function"==typeof a.ha)return new Tf(function(){return a.ha()}); throw Error("Not an iterator or iterable.");} function Tf(a){this.h=a} Tf.prototype.ha=function(){return new Uf(this.h())}; Tf.prototype[Symbol.iterator]=function(){return new Vf(this.h())}; Tf.prototype.g=function(){return new Vf(this.h())}; function Uf(a){this.h=a} v(Uf,Pf);Uf.prototype.next=function(){return this.h.next()}; Uf.prototype[Symbol.iterator]=function(){return new Vf(this.h)}; Uf.prototype.g=function(){return new Vf(this.h)}; function Vf(a){Tf.call(this,function(){return a}); this.i=a} v(Vf,Tf);Vf.prototype.next=function(){return this.i.next()};function Wf(a,b){this.h={};this.g=[];this.i=this.size=0;var c=arguments.length;if(12*this.size&&Yf(this),!0):!1}; function Yf(a){if(a.size!=a.g.length){for(var b=0,c=0;b=d.g.length)return Qf;var f=d.g[b++];return Rf(a?f:d.h[f])}; return e}; function Zf(a,b){return Object.prototype.hasOwnProperty.call(a,b)} ;var ag=A.JSON.stringify;function bg(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})} ;function cg(a){this.g=0;this.H=void 0;this.l=this.h=this.i=null;this.u=this.A=!1;if(a!=cb)try{var b=this;a.call(void 0,function(c){dg(b,2,c)},function(c){dg(b,3,c)})}catch(c){dg(this,3,c)}} function eg(){this.next=this.context=this.h=this.i=this.g=null;this.l=!1} eg.prototype.reset=function(){this.context=this.h=this.i=this.g=null;this.l=!1}; var fg=new xf(function(){return new eg},function(a){a.reset()}); function gg(a,b,c){var d=fg.get();d.i=a;d.h=b;d.context=c;return d} cg.prototype.then=function(a,b,c){return hg(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)}; cg.prototype.$goog_Thenable=!0;cg.prototype.cancel=function(a){if(0==this.g){var b=new ig(a);Hf(function(){jg(this,b)},this)}}; function jg(a,b){if(0==a.g)if(a.i){var c=a.i;if(c.h){for(var d=0,e=null,f=null,g=c.h;g&&(g.l||(d++,g.g==a&&(e=g),!(e&&1Date.now())zg.prototype.remove.call(this,a);else return b}};function Ag(){} ;function Bg(){} Xa(Bg,Ag);Bg.prototype[Symbol.iterator]=function(){return Sf(this.ha(!0)).g()}; Bg.prototype.clear=function(){var a=Array.from(this);a=u(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};function Cg(a){this.g=a} Xa(Cg,Bg);q=Cg.prototype;q.set=function(a,b){try{this.g.setItem(a,b)}catch(c){if(0==this.g.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}}; q.get=function(a){a=this.g.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; q.remove=function(a){this.g.removeItem(a)}; q.ha=function(a){var b=0,c=this.g,d=new Pf;d.next=function(){if(b>=c.length)return Qf;var e=c.key(b++);if(a)return Rf(e);e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return Rf(e)}; return d}; q.clear=function(){this.g.clear()}; q.key=function(a){return this.g.key(a)};function Dg(){var a=null;try{a=window.localStorage||null}catch(b){}this.g=a} Xa(Dg,Cg);function Eg(a,b){this.h=a;this.g=null;var c;if(c=jc)c=!(9<=Number(zc));if(c){Fg||(Fg=new Wf);this.g=Fg.get(a);this.g||(b?this.g=document.getElementById(b):(this.g=document.createElement("userdata"),this.g.addBehavior("#default#userData"),document.body.appendChild(this.g)),Fg.set(a,this.g));try{this.g.load(this.h)}catch(d){this.g=null}}} Xa(Eg,Bg);var Gg={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},Fg=null;function Hg(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return Gg[b]})} q=Eg.prototype;q.set=function(a,b){this.g.setAttribute(Hg(a),b);Ig(this)}; q.get=function(a){a=this.g.getAttribute(Hg(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; q.remove=function(a){this.g.removeAttribute(Hg(a));Ig(this)}; q.ha=function(a){var b=0,c=this.g.XMLDocument.documentElement.attributes,d=new Pf;d.next=function(){if(b>=c.length)return Qf;var e=c[b++];if(a)return Rf(decodeURIComponent(e.nodeName.replace(/\./g,"%")).slice(1));e=e.nodeValue;if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return Rf(e)}; return d}; q.clear=function(){for(var a=this.g.XMLDocument.documentElement,b=a.attributes.length;0f?1:2048>f?2:65536>f?3:4}var h=new O.La(e);for(b=c=0;cf?h[c++]=f:(2048>f?h[c++]=192|f>>>6:(65536>f?h[c++]=224|f>>>12:(h[c++]=240|f>>>18,h[c++]=128|f>>>12&63),h[c++]=128|f>>> 6&63),h[c++]=128|f&63);return h} ;var Pg={};Pg=function(a,b,c,d){var e=a&65535|0;a=a>>>16&65535|0;for(var f;0!==c;){f=2E3oh;oh++){Rg=oh;for(var ph=0;8>ph;ph++)Rg=Rg&1?3988292384^Rg>>>1:Rg>>>1;nh[oh]=Rg}Qg=function(a,b,c,d){c=d+c;for(a^=-1;d>>8^nh[(a^b[d])&255];return a^-1};var qh={};qh={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};function rh(a){for(var b=a.length;0<=--b;)a[b]=0} var sh=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],th=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],uh=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],vh=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],wh=Array(576);rh(wh);var xh=Array(60);rh(xh);var yh=Array(512);rh(yh);var zh=Array(256);rh(zh);var Ah=Array(29);rh(Ah);var Bh=Array(30);rh(Bh);function Ch(a,b,c,d,e){this.uc=a;this.Oc=b;this.Nc=c;this.Lc=d;this.dd=e;this.ac=a&&a.length} var Dh,Eh,Fh;function Gh(a,b){this.Vb=a;this.Ta=0;this.Aa=b} function Hh(a,b){a.K[a.pending++]=b&255;a.K[a.pending++]=b>>>8&255} function Ih(a,b,c){a.N>16-c?(a.U|=b<>16-a.N,a.N+=c-16):(a.U|=b<>>=1,c<<=1;while(0<--b);return c>>>1} function Lh(a,b,c){var d=Array(16),e=0,f;for(f=1;15>=f;f++)d[f]=e=e+c[f-1]<<1;for(c=0;c<=b;c++)e=a[2*c+1],0!==e&&(a[2*c]=Kh(d[e]++,e))} function Mh(a){var b;for(b=0;286>b;b++)a.W[2*b]=0;for(b=0;30>b;b++)a.Fa[2*b]=0;for(b=0;19>b;b++)a.R[2*b]=0;a.W[512]=1;a.ta=a.Xa=0;a.ca=a.matches=0} function Nh(a){8e?yh[e]:yh[256+(e>>>7)];Jh(a,g,c);h=th[g];0!==h&&(e-=Bh[g],Ih(a,e,h))}}while(da.sa;){var k=a.L[++a.sa]=2>h?++h:0;c[2*k]=1;a.depth[k]=0;a.ta--;e&&(a.Xa-=d[2*k+1])}b.Ta=h;for(g=a.sa>>1;1<=g;g--)Qh(a,c,g);k=f;do g=a.L[1],a.L[1]=a.L[a.sa--],Qh(a,c,1),d=a.L[1],a.L[--a.Qa]=g,a.L[--a.Qa]=d,c[2*k]=c[2*g]+c[2*d],a.depth[k]=(a.depth[g]>=a.depth[d]?a.depth[g]:a.depth[d])+1,c[2*g+1]=c[2*d+1]=k,a.L[1]=k++,Qh(a,c,1);while(2<=a.sa);a.L[--a.Qa]= a.L[1];g=b.Vb;k=b.Ta;d=b.Aa.uc;e=b.Aa.ac;f=b.Aa.Oc;var l=b.Aa.Nc,m=b.Aa.dd,n,r=0;for(n=0;15>=n;n++)a.pa[n]=0;g[2*a.L[a.Qa]+1]=0;for(b=a.Qa+1;573>b;b++){var p=a.L[b];n=g[2*g[2*p+1]+1]+1;n>m&&(n=m,r++);g[2*p+1]=n;if(!(p>k)){a.pa[n]++;var x=0;p>=l&&(x=f[p-l]);var y=g[2*p];a.ta+=y*(n+x);e&&(a.Xa+=y*(d[2*p+1]+x))}}if(0!==r){do{for(n=m-1;0===a.pa[n];)n--;a.pa[n]--;a.pa[n+1]+=2;a.pa[m]--;r-=2}while(0k||(g[2*d+1]!==n&&(a.ta+=(n-g[2*d+1])*g[2*d],g[2* d+1]=n),p--)}Lh(c,h,a.pa)} function Th(a,b,c){var d,e=-1,f=b[1],g=0,h=7,k=4;0===f&&(h=138,k=3);b[2*(c+1)+1]=65535;for(d=0;d<=c;d++){var l=f;f=b[2*(d+1)+1];++g=g?a.R[34]++:a.R[36]++,g=0,e=l,0===f?(h=138,k=3):l===f?(h=6,k=3):(h=7,k=4))}} function Uh(a,b,c){var d,e=-1,f=b[1],g=0,h=7,k=4;0===f&&(h=138,k=3);for(d=0;d<=c;d++){var l=f;f=b[2*(d+1)+1];if(!(++g=g?(Jh(a,17,a.R),Ih(a,g-3,3)):(Jh(a,18,a.R),Ih(a,g-11,7));g=0;e=l;0===f?(h=138,k=3):l===f?(h=6,k=3):(h=7,k=4)}}} function Vh(a){var b=4093624447,c;for(c=0;31>=c;c++,b>>>=1)if(b&1&&0!==a.W[2*c])return 0;if(0!==a.W[18]||0!==a.W[20]||0!==a.W[26])return 1;for(c=32;256>c;c++)if(0!==a.W[2*c])return 1;return 0} var Wh=!1;function Xh(a,b,c){a.K[a.ab+2*a.ca]=b>>>8&255;a.K[a.ab+2*a.ca+1]=b&255;a.K[a.Fb+a.ca]=c&255;a.ca++;0===b?a.W[2*c]++:(a.matches++,b--,a.W[2*(zh[c]+256+1)]++,a.Fa[2*(256>b?yh[b]:yh[256+(b>>>7)])]++);return a.ca===a.eb-1} ;function Yh(a,b){a.msg=qh[b];return b} function Zh(a){for(var b=a.length;0<=--b;)a[b]=0} function $h(a){var b=a.state,c=b.pending;c>a.F&&(c=a.F);0!==c&&(O.Ma(a.fb,b.K,b.gb,c,a.Ua),a.Ua+=c,b.gb+=c,a.Ob+=c,a.F-=c,b.pending-=c,0===b.pending&&(b.gb=0))} function Q(a,b){var c=0<=a.Y?a.Y:-1,d=a.j-a.Y,e=0;if(0>>3;var g=a.Xa+3+7>>>3;g<=f&&(f=g)}else f=g=d+5;if(d+4<=f&&-1!==c)Ih(a,b?1:0,3),Oh(a,c,d);else if(4===a.strategy||g===f)Ih(a,2+(b?1:0),3),Rh(a,wh,xh);else{Ih(a,4+(b?1:0),3);c=a.wb.Ta+1;d=a.sb.Ta+1;e+=1;Ih(a,c-257,5);Ih(a,d-1,5);Ih(a,e-4,4);for(f=0;f>>8&255;a.K[a.pending++]=b&255} function bi(a,b){var c=a.ic,d=a.j,e=a.Z,f=a.kc,g=a.j>a.S-262?a.j-(a.S-262):0,h=a.window,k=a.Ba,l=a.ka,m=a.j+258,n=h[d+e-1],r=h[d+e];a.Z>=a.Zb&&(c>>=2);f>a.m&&(f=a.m);do{var p=b;if(h[p+e]===r&&h[p+e-1]===n&&h[p]===h[d]&&h[++p]===h[d+1]){d+=2;for(p++;h[++d]===h[++p]&&h[++d]===h[++p]&&h[++d]===h[++p]&&h[++d]===h[++p]&&h[++d]===h[++p]&&h[++d]===h[++p]&&h[++d]===h[++p]&&h[++d]===h[++p]&&de){a.Sa=b;e=p;if(p>=f)break;n=h[d+e-1];r=h[d+e]}}}while((b=l[b&k])>g&&0!==--c);return e<= a.m?e:a.m} function ci(a){var b=a.S,c;do{var d=a.xc-a.m-a.j;if(a.j>=b+(b-262)){O.Ma(a.window,a.window,b,b,0);a.Sa-=b;a.j-=b;a.Y-=b;var e=c=a.vb;do{var f=a.head[--e];a.head[e]=f>=b?f-b:0}while(--c);e=c=b;do f=a.ka[--e],a.ka[e]=f>=b?f-b:0;while(--c);d+=b}if(0===a.B.T)break;e=a.B;c=a.window;f=a.j+a.m;var g=e.T;g>d&&(g=d);0===g?c=0:(e.T-=g,O.Ma(c,e.input,e.Ja,g,f),1===e.state.wrap?e.v=Pg(e.v,c,g,f):2===e.state.wrap&&(e.v=Qg(e.v,c,g,f)),e.Ja+=g,e.Ka+=g,c=g);a.m+=c;if(3<=a.m+a.X)for(d=a.j-a.X,a.C=a.window[d],a.C= (a.C<a.m+a.X););}while(262>a.m&&0!==a.B.T)} function di(a,b){for(var c;;){if(262>a.m){ci(a);if(262>a.m&&0===b)return 1;if(0===a.m)break}c=0;3<=a.m&&(a.C=(a.C<a.j?a.j:2;return 4===b?(Q(a,!0),0===a.B.F?3:4):a.ca&&(Q(a,!1),0===a.B.F)?1:2} function ei(a,b){for(var c,d;;){if(262>a.m){ci(a);if(262>a.m&&0===b)return 1;if(0===a.m)break}c=0;3<=a.m&&(a.C=(a.C<=a.G&&(1===a.strategy||3===a.G&&4096a.j?a.j:2;return 4===b?(Q(a,!0),0===a.B.F?3:4):a.ca&&(Q(a,!1),0===a.B.F)?1:2} function fi(a,b){for(var c,d,e,f=a.window;;){if(258>=a.m){ci(a);if(258>=a.m&&0===b)return 1;if(0===a.m)break}a.G=0;if(3<=a.m&&0a.m&&(a.G=a.m)}3<=a.G?(c=Xh(a,1,a.G-3),a.m-=a.G,a.j+=a.G,a.G=0):(c=Xh(a,0,a.window[a.j]),a.m--,a.j++);if(c&&(Q(a,!1),0===a.B.F))return 1}a.X=0;return 4===b?(Q(a,!0),0===a.B.F?3:4):a.ca&& (Q(a,!1),0===a.B.F)?1:2} function gi(a,b){for(var c;;){if(0===a.m&&(ci(a),0===a.m)){if(0===b)return 1;break}a.G=0;c=Xh(a,0,a.window[a.j]);a.m--;a.j++;if(c&&(Q(a,!1),0===a.B.F))return 1}a.X=0;return 4===b?(Q(a,!0),0===a.B.F?3:4):a.ca&&(Q(a,!1),0===a.B.F)?1:2} function hi(a,b,c,d,e){this.Rc=a;this.cd=b;this.fd=c;this.bd=d;this.Pc=e} var ii;ii=[new hi(0,0,0,0,function(a,b){var c=65535;for(c>a.da-5&&(c=a.da-5);;){if(1>=a.m){ci(a);if(0===a.m&&0===b)return 1;if(0===a.m)break}a.j+=a.m;a.m=0;var d=a.Y+c;if(0===a.j||a.j>=d)if(a.m=a.j-d,a.j=d,Q(a,!1),0===a.B.F)return 1;if(a.j-a.Y>=a.S-262&&(Q(a,!1),0===a.B.F))return 1}a.X=0;if(4===b)return Q(a,!0),0===a.B.F?3:4;a.j>a.Y&&Q(a,!1);return 1}), new hi(4,4,8,4,di),new hi(4,5,16,8,di),new hi(4,6,32,32,di),new hi(4,4,16,16,ei),new hi(8,16,32,32,ei),new hi(8,16,128,128,ei),new hi(8,32,128,256,ei),new hi(32,128,258,1024,ei),new hi(32,258,258,4096,ei)]; function ji(){this.B=null;this.status=0;this.K=null;this.wrap=this.pending=this.gb=this.da=0;this.s=null;this.ea=0;this.method=8;this.Ra=-1;this.Ba=this.Pb=this.S=0;this.window=null;this.xc=0;this.head=this.ka=null;this.kc=this.Zb=this.strategy=this.level=this.Hb=this.ic=this.Z=this.m=this.Sa=this.j=this.Ha=this.nc=this.G=this.Y=this.ra=this.qa=this.Db=this.vb=this.C=0;this.W=new O.na(1146);this.Fa=new O.na(122);this.R=new O.na(78);Zh(this.W);Zh(this.Fa);Zh(this.R);this.Rb=this.sb=this.wb=null;this.pa= new O.na(16);this.L=new O.na(573);Zh(this.L);this.Qa=this.sa=0;this.depth=new O.na(573);Zh(this.depth);this.N=this.U=this.X=this.matches=this.Xa=this.ta=this.ab=this.ca=this.eb=this.Fb=0} function ki(a,b){if(!a||!a.state||5b)return a?Yh(a,-2):-2;var c=a.state;if(!a.fb||!a.input&&0!==a.T||666===c.status&&4!==b)return Yh(a,0===a.F?-5:-2);c.B=a;var d=c.Ra;c.Ra=b;if(42===c.status)if(2===c.wrap)a.v=0,S(c,31),S(c,139),S(c,8),c.s?(S(c,(c.s.text?1:0)+(c.s.ya?2:0)+(c.s.xa?4:0)+(c.s.name?8:0)+(c.s.comment?16:0)),S(c,c.s.time&255),S(c,c.s.time>>8&255),S(c,c.s.time>>16&255),S(c,c.s.time>>24&255),S(c,9===c.level?2:2<=c.strategy||2>c.level?4:0),S(c,c.s.Xd&255),c.s.xa&&c.s.xa.length&&(S(c, c.s.xa.length&255),S(c,c.s.xa.length>>8&255)),c.s.ya&&(a.v=Qg(a.v,c.K,c.pending,0)),c.ea=0,c.status=69):(S(c,0),S(c,0),S(c,0),S(c,0),S(c,0),S(c,9===c.level?2:2<=c.strategy||2>c.level?4:0),S(c,3),c.status=113);else{var e=8+(c.Pb-8<<4)<<8;e|=(2<=c.strategy||2>c.level?0:6>c.level?1:6===c.level?2:3)<<6;0!==c.j&&(e|=32);c.status=113;ai(c,e+(31-e%31));0!==c.j&&(ai(c,a.v>>>16),ai(c,a.v&65535));a.v=1}if(69===c.status)if(c.s.xa){for(e=c.pending;c.ea<(c.s.xa.length&65535)&&(c.pending!==c.da||(c.s.ya&&c.pending> e&&(a.v=Qg(a.v,c.K,c.pending-e,e)),$h(a),e=c.pending,c.pending!==c.da));)S(c,c.s.xa[c.ea]&255),c.ea++;c.s.ya&&c.pending>e&&(a.v=Qg(a.v,c.K,c.pending-e,e));c.ea===c.s.xa.length&&(c.ea=0,c.status=73)}else c.status=73;if(73===c.status)if(c.s.name){e=c.pending;do{if(c.pending===c.da&&(c.s.ya&&c.pending>e&&(a.v=Qg(a.v,c.K,c.pending-e,e)),$h(a),e=c.pending,c.pending===c.da)){var f=1;break}f=c.eae&&(a.v=Qg(a.v,c.K,c.pending- e,e));0===f&&(c.ea=0,c.status=91)}else c.status=91;if(91===c.status)if(c.s.comment){e=c.pending;do{if(c.pending===c.da&&(c.s.ya&&c.pending>e&&(a.v=Qg(a.v,c.K,c.pending-e,e)),$h(a),e=c.pending,c.pending===c.da)){f=1;break}f=c.eae&&(a.v=Qg(a.v,c.K,c.pending-e,e));0===f&&(c.status=103)}else c.status=103;103===c.status&&(c.s.ya?(c.pending+2>c.da&&$h(a),c.pending+2<=c.da&&(S(c,a.v&255),S(c,a.v>>8&255),a.v=0, c.status=113)):c.status=113);if(0!==c.pending){if($h(a),0===a.F)return c.Ra=-1,0}else if(0===a.T&&(b<<1)-(4>=8,c.N-= 8)):5!==b&&(Ih(c,0,3),Oh(c,0,0),3===b&&(Zh(c.head),0===c.m&&(c.j=0,c.Y=0,c.X=0))),$h(a),0===a.F))return c.Ra=-1,0}if(4!==b)return 0;if(0>=c.wrap)return 1;2===c.wrap?(S(c,a.v&255),S(c,a.v>>8&255),S(c,a.v>>16&255),S(c,a.v>>24&255),S(c,a.Ka&255),S(c,a.Ka>>8&255),S(c,a.Ka>>16&255),S(c,a.Ka>>24&255)):(ai(c,a.v>>>16),ai(c,a.v&65535));$h(a);0a.Ca&&(a.Ca+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.B=new li;this.B.F=0;var b=this.B;var c=a.level,d=a.method,e=a.Ca,f=a.ed,g=a.strategy;if(b){var h=1;-1===c&&(c=6);0>e?(h=0,e=-e):15f||9e||15c||9g||4c.wrap&&(c.wrap=-c.wrap);c.status=c.wrap?42:113;b.v=2===c.wrap?0:1;c.Ra=0;if(!Wh){d=Array(16);for(f=g=0;28>f;f++)for(Ah[f]=g,e=0;e<1<f;f++)for(Bh[f]=g,e=0;e<1<>=7;30>f;f++)for(Bh[f]=g<<7,e=0;e<1<=e;e++)d[e]=0;for(e=0;143>=e;)wh[2*e+1]=8,e++,d[8]++;for(;255>=e;)wh[2*e+1]=9,e++,d[9]++;for(;279>=e;)wh[2*e+1]=7,e++,d[7]++;for(;287>=e;)wh[2*e+1]=8,e++,d[8]++;Lh(wh,287,d);for(e=0;30>e;e++)xh[2*e+1]=5,xh[2*e]=Kh(e,5);Dh=new Ch(wh,sh,257,286,15);Eh=new Ch(xh,th,0,30,15);Fh=new Ch([],uh,0,19,7);Wh=!0}c.wb=new Gh(c.W,Dh);c.sb=new Gh(c.Fa,Eh);c.Rb=new Gh(c.R, Fh);c.U=0;c.N=0;Mh(c);c=0}else c=Yh(b,-2);0===c&&(b=b.state,b.xc=2*b.S,Zh(b.head),b.Hb=ii[b.level].cd,b.Zb=ii[b.level].Rc,b.kc=ii[b.level].fd,b.ic=ii[b.level].bd,b.j=0,b.Y=0,b.m=0,b.X=0,b.G=b.Z=2,b.Ha=0,b.C=0);b=c}}else b=-2;if(0!==b)throw Error(qh[b]);a.header&&(b=this.B)&&b.state&&2===b.state.wrap&&(b.state.s=a.header);if(a.bb){var l;"string"===typeof a.bb?l=Og(a.bb):"[object ArrayBuffer]"===mi.call(a.bb)?l=new Uint8Array(a.bb):l=a.bb;a=this.B;f=l;g=f.length;if(a&&a.state)if(l=a.state,b=l.wrap, 2===b||1===b&&42!==l.status||l.m)b=-2;else{1===b&&(a.v=Pg(a.v,f,g,0));l.wrap=0;g>=l.S&&(0===b&&(Zh(l.head),l.j=0,l.Y=0,l.X=0),c=new O.La(l.S),O.Ma(c,f,g-l.S,l.S,0),f=c,g=l.S);c=a.T;d=a.Ja;e=a.input;a.T=g;a.Ja=0;a.input=f;for(ci(l);3<=l.m;){f=l.j;g=l.m-2;do l.C=(l.C<f&&(b.subarray&&Ng||!b.subarray))b= String.fromCharCode.apply(null,O.Nb(b,f));else{for(var g="",h=0;hc&&(c=b.length),f=b.indexOf("?"),0>f||f>c?(f=c,e=""):e=b.substring(f+1,c),b=[b.slice(0,f),e,b.slice(c)],c=b[1],b[1]=a?c?c+"&"+a:a:c,a=b[0]+(b[1]?"?"+b[1]:"")+b[2]):a=b;return a+d} function Bj(a){if(!b)var b=window.location.href;var c=a.match(Yb)[1]||null,d=$b(a);c&&d?(a=a.match(Yb),b=b.match(Yb),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?$b(b)==d&&(Number(b.match(Yb)[4]||null)||null)==(Number(a.match(Yb)[4]||null)||null):!0;return a} function wj(a){return a&&a.match(tj)?a:decodeURIComponent(a.replace(/\+/g," "))} ;function Cj(a){var b=Dj;a=void 0===a?B("yt.ads.biscotti.lastId_")||"":a;var c=Object,d=c.assign,e={};e.dt=de;e.flash="0";a:{try{var f=b.g.top.location.href}catch(da){f=2;break a}f=f?f===b.h.location.href?0:1:2}e=(e.frm=f,e);try{e.u_tz=-(new Date).getTimezoneOffset();var g=void 0===g?Id:g;try{var h=g.history.length}catch(da){h=0}e.u_his=h;var k;e.u_h=null==(k=Id.screen)?void 0:k.height;var l;e.u_w=null==(l=Id.screen)?void 0:l.width;var m;e.u_ah=null==(m=Id.screen)?void 0:m.availHeight;var n;e.u_aw= null==(n=Id.screen)?void 0:n.availWidth;var r;e.u_cd=null==(r=Id.screen)?void 0:r.colorDepth}catch(da){}h=b.g;try{var p=h.screenX;var x=h.screenY}catch(da){}try{var y=h.outerWidth;var E=h.outerHeight}catch(da){}try{var P=h.innerWidth;var U=h.innerHeight}catch(da){}try{var R=h.screenLeft;var Ba=h.screenTop}catch(da){}try{P=h.innerWidth,U=h.innerHeight}catch(da){}try{var Mc=h.screen.availWidth;var Oa=h.screen.availTop}catch(da){}p=[R,Ba,p,x,Mc,Oa,y,E,P,U];x=b.g.top;try{var Ca=(x||window).document,ea= "CSS1Compat"==Ca.compatMode?Ca.documentElement:Ca.body;var ma=(new Jd(ea.clientWidth,ea.clientHeight)).round()}catch(da){ma=new Jd(-12245933,-12245933)}Ca=ma;ma={};var na=void 0===na?A:na;ea=new df;"SVGElement"in na&&"createElementNS"in na.document&&ea.set(0);x=be();x["allow-top-navigation-by-user-activation"]&&ea.set(1);x["allow-popups-to-escape-sandbox"]&&ea.set(2);na.crypto&&na.crypto.subtle&&ea.set(3);"TextDecoder"in na&&"TextEncoder"in na&&ea.set(4);na=ef(ea);ma.bc=na;ma.bih=Ca.height;ma.biw= Ca.width;ma.brdim=p.join();b=b.h;b=(ma.vis=b.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[b.visibilityState||b.webkitVisibilityState||b.mozVisibilityState||""]||0,ma.wgl=!!Id.WebGLRenderingContext,ma);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c} var Dj=new function(){var a=window.document;this.g=window;this.h=a}; C("yt.ads_.signals_.getAdSignalsString",function(a){return yj(Cj(a))});Date.now();var Ej="XMLHttpRequest"in A?function(){return new XMLHttpRequest}:null; function Fj(){if(!Ej)return null;var a=Ej();return"open"in a?a:null} ;var Gj={Authorization:"AUTHORIZATION","X-Goog-EOM-Visitor-Id":"EOM_VISITOR_DATA","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-Youtube-Domain-Admin-State":"DOMAIN_ADMIN_STATE","X-Youtube-Chrome-Connected":"CHROME_CONNECTED_HEADER","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","X-Goog-AuthUser":"SESSION_INDEX","X-Goog-PageId":"DELEGATED_SESSION_ID"},Hj="app debugcss debugjs expflag force_ad_params force_ad_encrypted force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address".split(" ").concat(ia(fe)),Ij=!1; function Jj(a,b){b=void 0===b?{}:b;var c=Bj(a),d=V("web_ajax_ignore_global_headers_if_set"),e;for(e in Gj){var f=T(Gj[e]),g="X-Goog-AuthUser"===e||"X-Goog-PageId"===e;"X-Goog-Visitor-Id"!==e||f||(f=T("VISITOR_DATA"));!f||!c&&$b(a)||d&&void 0!==b[e]||(!V("move_vss_away_from_login_info_cookie")||"TVHTML5_UNPLUGGED"===T("INNERTUBE_CLIENT_NAME"))&&g||(b[e]=f)}V("move_vss_away_from_login_info_cookie")&&c&&T("SESSION_INDEX")&&"TVHTML5_UNPLUGGED"!==T("INNERTUBE_CLIENT_NAME")&&(b["X-Yt-Auth-Test"]="test"); "X-Goog-EOM-Visitor-Id"in b&&"X-Goog-Visitor-Id"in b&&delete b["X-Goog-Visitor-Id"];if(c||!$b(a))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||!$b(a)){try{var h=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(k){}h&&(b["X-YouTube-Time-Zone"]=h)}document.location.hostname.endsWith("youtubeeducation.com")||!c&&$b(a)||(b["X-YouTube-Ad-Signals"]=yj(Cj()));return b} function Kj(a){var b=window.location.search,c=$b(a);V("debug_handle_relative_url_for_query_forward_killswitch")||!c&&Bj(a)&&(c=document.location.hostname);var d=Zb(a.match(Yb)[5]||null);d=(c=c&&(c.endsWith("youtube.com")||c.endsWith("youtube-nocookie.com")))&&d&&d.startsWith("/api/");if(!c||d)return a;var e=zj(b),f={};fb(Hj,function(g){e[g]&&(f[g]=e[g])}); return Aj(a,f||{},!1)} function Lj(a,b){var c=b.format||"JSON";a=Mj(a,b);var d=Nj(a,b),e=!1,f=Oj(a,function(k){if(!e){e=!0;h&&window.clearTimeout(h);a:switch(k&&"status"in k?k.status:-1){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:var l=!0;break a;default:l=!1}var m=null,n=400<=k.status&&500>k.status,r=500<=k.status&&600>k.status;if(l||n||r)m=Pj(a,c,k,b.convertToSafeHtml);if(l)a:if(k&&204==k.status)l=!0;else{switch(c){case "XML":l=0==parseInt(m&&m.return_code,10);break a;case "RAW":l=!0;break a}l= !!m}m=m||{};n=b.context||A;l?b.onSuccess&&b.onSuccess.call(n,k,m):b.onError&&b.onError.call(n,k,m);b.onFinish&&b.onFinish.call(n,k,m)}},b.method,d,b.headers,b.responseType,b.withCredentials); d=b.timeout||0;if(b.onTimeout&&0>3;switch(e&7){case 0:e=ck(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=ck(b);if(2===f)return a.substr(d,e);d+=e;break;case 5:if(2===f)return;d+=4;break;default:return}}while(db)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 dk(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;d=f)jl(a,k,p,g,x,b.join(),e),h=x;E.D(2);break;case 4:return E.return(Promise.reject(h))}})} function jl(a,b,c,d,e,f,g){b=c-b;e?(e instanceof X&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&Bk("QUOTA_EXCEEDED",{dbName:Dk(a.g.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:g.mode}),e instanceof X&&"UNKNOWN_ABORT"===e.type&&(c-=a.i,0>c&&c>=Math.pow(2,31)&&(c=0),Bk("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.h=!0),kl(a,!1,d,f,b,g.tag),Ak(e)):kl(a,!0,d,f,b,g.tag)} function kl(a,b,c,d,e,f){Bk("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.h,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})} q.getName=function(){return this.g.name}; function fl(a){this.g=a} q=fl.prototype;q.add=function(a,b){return $k(this.g.add(a,b))}; q.autoIncrement=function(){return this.g.autoIncrement}; q.clear=function(){return $k(this.g.clear()).then(function(){})}; function ll(a,b,c){a.g.createIndex(b,c,{unique:!1})} function ml(a,b){return nl(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})} q.delete=function(a){return a instanceof IDBKeyRange?ml(this,a):$k(this.g.delete(a))}; q.get=function(a){return $k(this.g.get(a))}; q.index=function(a){try{return new ol(this.g.index(a))}catch(b){if(b instanceof Error&&"NotFoundError"===b.name)throw new Mk(a,this.g.name);throw b;}}; q.getName=function(){return this.g.name}; q.keyPath=function(){return this.g.keyPath}; function nl(a,b,c){a=a.g.openCursor(b.query,b.direction);return pl(a).then(function(d){return al(d,c)})} function hl(a){var b=this;this.g=a;this.i=new Map;this.h=!1;this.done=new Promise(function(c,d){b.g.addEventListener("complete",function(){c()}); b.g.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.g.error)}); b.g.addEventListener("abort",function(){var e=b.g.error;if(e)d(e);else if(!b.h){e=X;for(var f=b.g.objectStoreNames,g=[],h=0;h=E},y); y.done.catch(function(E){e(E)})}catch(E){e(E)}}); g.addEventListener("success",function(){var p=g.result;k&&p.addEventListener("versionchange",function(){k(f())}); p.addEventListener("close",function(){Bk("IDB_UNEXPECTEDLY_CLOSED",{dbName:Dk(a),dbVersion:p.version});l&&l()}); d(f())}); g.addEventListener("error",function(){e(g.error)}); h&&g.addEventListener("blocked",function(){h()})})} function tl(a,b,c){c=void 0===c?{}:c;return sl(a,b,c)} function fm(a,b){b=void 0===b?{}:b;var c,d,e,f;return z(function(g){if(1==g.g)return wa(g,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.Gc)&&c.addEventListener("blocked",function(){e()}),w(g,Zk(c),4); if(2!=g.g)return xa(g,0);f=ya(g);throw Ok(f,a,"",-1);})} ;function gm(a,b){this.name=a;this.options=b;this.i=!0;this.u=this.l=0} gm.prototype.h=function(a,b,c){c=void 0===c?{}:c;return tl(a,b,c)}; gm.prototype.delete=function(a){a=void 0===a?{}:a;return fm(this.name,a)}; function hm(a,b){return new X("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})} function im(a,b){if(!b)throw Pk("openWithToken",Dk(a.name));return jm(a)} function jm(a){function b(){var f,g,h,k,l,m,n,r,p,x;return z(function(y){switch(y.g){case 1:return g=null!=(f=Error().stack)?f:"",wa(y,2),w(y,a.h(a.name,a.options.version,d),4);case 4:h=y.h;for(var E=a.options,P=[],U=u(Object.keys(E.Va)),R=U.next();!R.done;R=U.next()){R=R.value;var Ba=E.Va[R],Mc=void 0===Ba.gd?Number.MAX_VALUE:Ba.gd;!(h.g.version>=Ba.Za)||h.g.version>=Mc||h.g.objectStoreNames.contains(R)||P.push(R)}k=P;if(0===k.length){y.D(5);break}l=Object.keys(a.options.Va);m=h.objectStoreNames(); if(a.ua.options.version+1)throw r.close(),a.i=!1,hm(a,p);return y.return(r);case 8:throw c(),n instanceof Error&&!V("ytidb_async_stack_killswitch")&& (n.stack=n.stack+"\n"+g.substring(g.indexOf("\n")+1)),Ok(n,a.name,"",null!=(x=a.options.version)?x:-1);}})} function c(){a.g===e&&(a.g=void 0)} if(!a.i)throw hm(a);if(a.g)return a.g;var d={Hc:function(f){f.close()}, closed:c,jd:c,upgrade:a.options.upgrade};var e=b();a.g=e;return a.g} ;var km=new gm("YtIdbMeta",{Va:{databases:{Za:1}},upgrade:function(a,b){b(1)&&el(a,"databases",{keyPath:"actualName"})}}); function lm(a,b){var c;return z(function(d){if(1==d.g)return w(d,im(km,b),2);c=d.h;return d.return(dl(c,["databases"],{V:!0,mode:"readwrite"},function(e){var f=e.objectStore("databases");return f.get(a.actualName).then(function(g){if(g?a.actualName!==g.actualName||a.publicName!==g.publicName||a.userIdentifier!==g.userIdentifier:1)return $k(f.g.put(a,void 0)).then(function(){})})}))})} function mm(a,b){var c;return z(function(d){if(1==d.g)return a?w(d,im(km,b),2):d.return();c=d.h;return d.return(c.delete("databases",a))})} function nm(a,b){var c,d;return z(function(e){return 1==e.g?(c=[],w(e,im(km,b),2)):3!=e.g?(d=e.h,w(e,dl(d,["databases"],{V:!0,mode:"readonly"},function(f){c.length=0;return nl(f.objectStore("databases"),{},function(g){a(g.ia())&&c.push(g.ia());return g.continue()})}),3)):e.return(c)})} function om(a){return nm(function(b){return"LogsDatabaseV2"===b.publicName&&void 0!==b.userIdentifier},a)} ;var pm,qm=new function(){}(new function(){}); function rm(){var a,b,c,d;return z(function(e){switch(e.g){case 1:a=xk();if(null==(b=a)?0:b.hasSucceededOnce)return e.return(!0);var f;if(f=Ek)f=/WebKit\/([0-9]+)/.exec(Pb()),f=!!(f&&600<=parseInt(f[1],10));f&&(f=/WebKit\/([0-9]+)/.exec(Pb()),f=!(f&&602<=parseInt(f[1],10)));if(f||oc)return e.return(!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return e.return(!1)}catch(g){return e.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return e.return(!1); wa(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return w(e,lm(d,qm),4);case 4:return w(e,mm("yt-idb-test-do-not-use",qm),5);case 5:return e.return(!0);case 2:return ya(e),e.return(!1)}})} function sm(){if(void 0!==pm)return pm;zk=!0;return pm=rm().then(function(a){zk=!1;var b;if(null!=(b=wk())&&b.g){var c;b={hasSucceededOnce:(null==(c=xk())?void 0:c.hasSucceededOnce)||a};var d;null==(d=wk())||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})} function tm(){return B("ytglobal.idbToken_")||void 0} function um(){var a=tm();return a?Promise.resolve(a):sm().then(function(b){(b=b?qm:void 0)&&C("ytglobal.idbToken_",b);return b})} ;new bg;function vm(a){if(!ok())throw a=new X("AUTH_INVALID",{dbName:a}),Ak(a),a;var b=pk();return{actualName:a+":"+b,publicName:a,userIdentifier:b}} function wm(a,b,c,d){var e,f,g,h,k,l;return z(function(m){switch(m.g){case 1:return f=null!=(e=Error().stack)?e:"",w(m,um(),2);case 2:g=m.h;if(!g)throw h=Pk("openDbImpl",a,b),V("ytidb_async_stack_killswitch")||(h.stack=h.stack+"\n"+f.substring(f.indexOf("\n")+1)),Ak(h),h;Ck(a);k=c?{actualName:a,publicName:a,userIdentifier:void 0}:vm(a);wa(m,3);return w(m,lm(k,g),5);case 5:return w(m,tl(k.actualName,b,d),6);case 6:return m.return(m.h);case 3:return l=ya(m),wa(m,7),w(m,mm(k.actualName,g),9);case 9:xa(m, 8);break;case 7:ya(m);case 8:throw l;}})} function xm(a,b,c){c=void 0===c?{}:c;return wm(a,b,!1,c)} function ym(a,b,c){c=void 0===c?{}:c;return wm(a,b,!0,c)} function zm(a,b){b=void 0===b?{}:b;var c,d;return z(function(e){if(1==e.g)return w(e,um(),2);if(3!=e.g){c=e.h;if(!c)return e.return();Ck(a);d=vm(a);return w(e,fm(d.actualName,b),3)}return w(e,mm(d.actualName,c),0)})} function Am(a,b,c){a=a.map(function(d){return z(function(e){return 1==e.g?w(e,fm(d.actualName,b),2):w(e,mm(d.actualName,c),0)})}); return Promise.all(a).then(function(){})} function Bm(){var a=void 0===a?{}:a;var b,c;return z(function(d){if(1==d.g)return w(d,um(),2);if(3!=d.g){b=d.h;if(!b)return d.return();Ck("LogsDatabaseV2");return w(d,om(b),3)}c=d.h;return w(d,Am(c,a,b),0)})} function Cm(a,b){b=void 0===b?{}:b;var c;return z(function(d){if(1==d.g)return w(d,um(),2);if(3!=d.g){c=d.h;if(!c)return d.return();Ck(a);return w(d,fm(a,b),3)}return w(d,mm(a,c),0)})} ;function Dm(a,b){gm.call(this,a,b);this.options=b;Ck(a)} v(Dm,gm);function Em(a,b){var c;return function(){c||(c=new Dm(a,b));return c}} Dm.prototype.h=function(a,b,c){c=void 0===c?{}:c;return(this.options.Bb?ym:xm)(a,b,Object.assign({},c))}; Dm.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.Bb?Cm:zm)(this.name,a)}; function Fm(a,b){return Em(a,b)} ;var Gm={},Hm=Fm("ytGcfConfig",{Va:(Gm.coldConfigStore={Za:1},Gm.hotConfigStore={Za:1},Gm),Bb:!1,upgrade:function(a,b){b(1)&&(ll(el(a,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),ll(el(a,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});function Im(a){return im(Hm(),a)} function Jm(a,b,c){var d,e,f;return z(function(g){switch(g.g){case 1:return d={config:a,hashData:b,timestamp:Y()},w(g,Im(c),2);case 2:return e=g.h,w(g,e.clear("hotConfigStore"),3);case 3:return w(g,gl(e,"hotConfigStore",d),4);case 4:return f=g.h,g.return(f)}})} function Km(a,b,c,d){var e,f,g;return z(function(h){switch(h.g){case 1:return e={config:a,hashData:b,configData:c,timestamp:Y()},w(h,Im(d),2);case 2:return f=h.h,w(h,f.clear("coldConfigStore"),3);case 3:return w(h,gl(f,"coldConfigStore",e),4);case 4:return g=h.h,h.return(g)}})} function Lm(a){var b,c;return z(function(d){return 1==d.g?w(d,Im(a),2):3!=d.g?(b=d.h,c=void 0,w(d,dl(b,["coldConfigStore"],{mode:"readwrite",V:!0},function(e){return ql(e.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(f){c=f.ia()})}),3)):d.return(c)})} function Mm(a){var b,c;return z(function(d){return 1==d.g?w(d,Im(a),2):3!=d.g?(b=d.h,c=void 0,w(d,dl(b,["hotConfigStore"],{mode:"readwrite",V:!0},function(e){return ql(e.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(f){c=f.ia()})}),3)):d.return(c)})} ;function Nm(){we.apply(this,arguments);this.g=[]} v(Nm,we);Nm.prototype.Ea=function(){this.g.length=0;we.prototype.Ea.call(this)};function Om(){this.g=0;this.h=new Nm} function Pm(a,b,c){var d,e,f;return z(function(g){switch(g.g){case 1:if(!V("update_log_event_config")){g.D(0);break}c&&(a.i=c,C("yt.gcf.config.hotConfigGroup",a.i||null));a.hotHashData=b;C("yt.gcf.config.hotHashData",a.hotHashData||null);d=tm();if(!d){g.D(3);break}if(c){g.D(4);break}return w(g,Mm(d),5);case 5:e=g.h,c=null==(f=e)?void 0:f.config;case 4:return w(g,Jm(c,b,d),3);case 3:if(c)for(var h=c,k=u(a.h.g),l=k.next();!l.done;l=k.next())l=l.value,l(h);g.g=0}})} function Qm(a,b,c){var d,e,f,g;return z(function(h){if(1==h.g){if(!V("update_log_event_config"))return h.D(0);a.coldHashData=b;C("yt.gcf.config.coldHashData",a.coldHashData||null);return(d=tm())?c?h.D(4):w(h,Lm(d),5):h.D(0)}4!=h.g&&(e=h.h,c=null==(f=e)?void 0:f.config);if(!c)return h.D(0);g=c.configData;return w(h,Km(c,b,g,d),0)})} ;function Rm(){return"INNERTUBE_API_KEY"in Yi&&"INNERTUBE_API_VERSION"in Yi} function Sm(){return{Tc:T("INNERTUBE_API_KEY"),Uc:T("INNERTUBE_API_VERSION"),Eb:T("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),cc:T("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),Vc:T("INNERTUBE_CONTEXT_CLIENT_NAME",1),dc:T("INNERTUBE_CONTEXT_CLIENT_VERSION"),fc:T("INNERTUBE_CONTEXT_HL"),ec:T("INNERTUBE_CONTEXT_GL"),Wc:T("INNERTUBE_HOST_OVERRIDE")||"",Yc:!!T("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),Xc:!!T("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:T("SERIALIZED_CLIENT_CONFIG_DATA")}} function Tm(a){var b={client:{hl:a.fc,gl:a.ec,clientName:a.cc,clientVersion:a.dc,configInfo:a.Eb}};navigator.userAgent&&(b.client.userAgent=String(navigator.userAgent));var c=A.devicePixelRatio;c&&1!=c&&(b.client.screenDensityFloat=String(c));c=T("EXPERIMENTS_TOKEN","");""!==c&&(b.client.experimentsToken=c);c=ij();0dn||g=jn&&(gn++,V("abandon_compression_after_N_slow_zips")?hn===hj("compression_disable_point")&&gn>kn&&(fn=!1):fn=!1);V("gel_compression_csi_killswitch")|| !V("log_gel_compression_latency")&&!V("log_gel_compression_latency_lr")||cn("gel_compression",f,{sampleRate:.1});c.headers||(c.headers={});c.headers["Content-Encoding"]="gzip";c.postBody=m;c.postParams=void 0}d(a,c)}catch(r){fj(r),d(a,c)}else d(a,c)} ;function mn(a){a=Object.assign({},a);delete a.Authorization;var b=pe();if(b){var c=new Nf;c.update(T("INNERTUBE_API_KEY"));c.update(b);a.hash=Fc(c.digest(),3)}return a} ;var nn;function on(){nn||(nn=new vk("yt.innertube"));return nn} function pn(a,b,c,d){if(d)return null;d=on().get("nextId",!0)||1;var e=on().get("requests",!0)||{};e[d]={method:a,request:b,authState:mn(c),requestTime:Math.round(Y())};on().set("nextId",d+1,86400,!0);on().set("requests",e,86400,!0);return d} function qn(a){var b=on().get("requests",!0)||{};delete b[a];on().set("requests",b,86400,!0)} function rn(a){var b=on().get("requests",!0);if(b){for(var c in b){var d=b[c];if(!(6E4>Math.round(Y())-d.requestTime)){var e=d.authState,f=mn(an(!1));ob(e,f)&&(e=d.request,"requestTimeMs"in e&&(e.requestTimeMs=Math.round(Y())),sn(a,d.method,e,{}));delete b[c]}}on().set("requests",b,86400,!0)}} ;function tn(a){this.ob=this.g=!1;this.potentialEsfErrorCounter=this.h=0;this.handleError=function(){}; this.Pa=function(){}; this.now=Date.now;this.cb=!1;var b;this.vc=null!=(b=a.vc)?b:100;var c;this.sc=null!=(c=a.sc)?c:1;var d;this.pc=null!=(d=a.pc)?d:2592E6;var e;this.oc=null!=(e=a.oc)?e:12E4;var f;this.qc=null!=(f=a.qc)?f:5E3;var g;this.I=null!=(g=a.I)?g:void 0;this.tb=!!a.tb;var h;this.rb=null!=(h=a.rb)?h:.1;var k;this.yb=null!=(k=a.yb)?k:10;a.handleError&&(this.handleError=a.handleError);a.Pa&&(this.Pa=a.Pa);a.cb&&(this.cb=a.cb);a.ob&&(this.ob=a.ob);this.J=a.J;this.ga=a.ga;this.M=a.M;this.O=a.O;this.va=a.va;this.Lb= a.Lb;this.Kb=a.Kb;un(this)&&(!this.J||this.J("networkless_logging"))&&vn(this)} function vn(a){un(a)&&!a.cb&&(a.g=!0,a.tb&&Math.random()<=a.rb&&a.M.Jc(a.I),wn(a),a.O.ba()&&a.ib(),a.O.Ga(a.Lb,a.ib.bind(a)),a.O.Ga(a.Kb,a.Sb.bind(a)))} q=tn.prototype;q.writeThenSend=function(a,b){var c=this;b=void 0===b?{}:b;if(un(this)&&this.g){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.M.set(d,this.I).then(function(e){d.id=e;c.O.ba()&&xn(c,d)}).catch(function(e){xn(c,d); yn(c,e)})}else this.va(a,b)}; q.sendThenWrite=function(a,b,c){var d=this;b=void 0===b?{}:b;if(un(this)&&this.g){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.J&&this.J("nwl_skip_retry")&&(e.skipRetry=c);if(this.O.ba()||this.J&&this.J("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var f=b.onError?b.onError:function(){}; b.onError=function(g,h){return z(function(k){if(1==k.g)return w(k,d.M.set(e,d.I).catch(function(l){yn(d,l)}),2); f(g,h);k.g=0})}}this.va(a,b,e.skipRetry)}else this.M.set(e,this.I).catch(function(g){d.va(a,b,e.skipRetry); yn(d,g)})}else this.va(a,b,this.J&&this.J("nwl_skip_retry")&&c)}; q.sendAndWrite=function(a,b){var c=this;b=void 0===b?{}:b;if(un(this)&&this.g){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0},e=!1,f=b.onSuccess?b.onSuccess:function(){}; d.options.onSuccess=function(g,h){void 0!==d.id?c.M.Oa(d.id,c.I):e=!0;c.O.Ia&&c.J&&c.J("vss_network_hint")&&c.O.Ia(!0);f(g,h)}; this.va(d.url,d.options);this.M.set(d,this.I).then(function(g){d.id=g;e&&c.M.Oa(d.id,c.I)}).catch(function(g){yn(c,g)})}else this.va(a,b)}; q.ib=function(){var a=this;if(!un(this))throw Pk("throttleSend");this.h||(this.h=this.ga.oa(function(){var b;return z(function(c){if(1==c.g)return w(c,a.M.Yb("NEW",a.I),2);if(3!=c.g)return b=c.h,b?w(c,xn(a,b),3):(a.Sb(),c.return());a.h&&(a.h=0,a.ib());c.g=0})},this.vc))}; q.Sb=function(){this.ga.Na(this.h);this.h=0}; function xn(a,b){var c,d;return z(function(e){switch(e.g){case 1:if(!un(a))throw c=Pk("immediateSend"),c;if(void 0===b.id){e.D(2);break}return w(e,a.M.ad(b.id,a.I),3);case 3:(d=e.h)||a.Pa(Error("The request cannot be found in the database."));case 2:if(zn(a,b,a.pc)){e.D(4);break}a.Pa(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===b.id){e.D(5);break}return w(e,a.M.Oa(b.id,a.I),5);case 5:return e.return();case 4:b.skipRetry||(b=An(a,b));if(!b){e.D(0);break}if(!b.skipRetry|| void 0===b.id){e.D(8);break}return w(e,a.M.Oa(b.id,a.I),8);case 8:a.va(b.url,b.options,!!b.skipRetry),e.g=0}})} function An(a,b){if(!un(a))throw Pk("updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){}; b.options.onError=function(e,f){var g,h,k,l;return z(function(m){switch(m.g){case 1:g=Bn(f);(h=Cn(f))&&a.J&&a.J("web_enable_error_204")&&a.handleError(Error("Request failed due to compression"),b.url,f);if(!(a.J&&a.J("nwl_consider_error_code")&&g||a.J&&!a.J("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.yb)){m.D(2);break}if(!a.O.Ab){m.D(3);break}return w(m,a.O.Ab(),3);case 3:if(a.O.ba()){m.D(2);break}c(e,f);if(!a.J||!a.J("nwl_consider_error_code")||void 0===(null==(k=b)?void 0:k.id)){m.D(6); break}return w(m,a.M.Mb(b.id,a.I,!1),6);case 6:return m.return();case 2:if(a.J&&a.J("nwl_consider_error_code")&&!g&&a.potentialEsfErrorCounter>a.yb)return m.return();a.potentialEsfErrorCounter++;if(void 0===(null==(l=b)?void 0:l.id)){m.D(8);break}return b.sendCount=c?!1:!0} function wn(a){if(!un(a))throw Pk("retryQueuedRequests");a.M.Yb("QUEUED",a.I).then(function(b){b&&!zn(a,b,a.oc)?a.ga.oa(function(){return z(function(c){if(1==c.g)return void 0===b.id?c.D(2):w(c,a.M.Mb(b.id,a.I),2);wn(a);c.g=0})}):a.O.ba()&&a.ib()})} function yn(a,b){a.yc&&!a.O.ba()?a.yc(b):a.handleError(b)} function un(a){return!!a.I||a.ob} function Bn(a){var b;return(a=null==a?void 0:null==(b=a.error)?void 0:b.code)&&400<=a&&599>=a?!1:!0} function Cn(a){var b;a=null==a?void 0:null==(b=a.error)?void 0:b.code;return!(400!==a&&415!==a)} ;var Dn; function En(){if(Dn)return Dn();var a={};Dn=Fm("LogsDatabaseV2",{Va:(a.LogsRequestsStore={Za:2},a),Bb:!1,upgrade:function(b,c,d){c(2)&&el(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.g.indexNames.contains("newRequest")&&d.g.deleteIndex("newRequest"),ll(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&b.g.objectStoreNames.contains("sapisid")&&b.g.deleteObjectStore("sapisid");c(9)&&b.g.objectStoreNames.contains("SWHealthLog")&&b.g.deleteObjectStore("SWHealthLog")}, version:9});return Dn()} ;function Fn(a){return im(En(),a)} function Gn(a,b){var c,d,e,f;return z(function(g){if(1==g.g)return c={startTime:Y(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},w(g,Fn(b),2);if(3!=g.g)return d=g.h,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:T("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),w(g,gl(d,"LogsRequestsStore",e),3);f=g.h;c.ticks.tc=Y();Hn(c);return g.return(f)})} function In(a,b){var c,d,e,f,g,h,k;return z(function(l){if(1==l.g)return c={startTime:Y(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},w(l,Fn(b),2);if(3!=l.g)return d=l.h,e=T("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],g=[a,e,Y()],h=IDBKeyRange.bound(f,g),k=void 0,w(l,dl(d,["LogsRequestsStore"],{mode:"readwrite",V:!0},function(m){return ql(m.objectStore("LogsRequestsStore").index("newRequestV2"),{query:h,direction:"prev"},function(n){n.ia()&&(k=n.ia(),"NEW"===a&&(k.status="QUEUED", n.update(k)))})}),3); c.ticks.tc=Y();Hn(c);return l.return(k)})} function Jn(a,b){var c;return z(function(d){if(1==d.g)return w(d,Fn(b),2);c=d.h;return d.return(dl(c,["LogsRequestsStore"],{mode:"readwrite",V:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(g){if(g)return g.status="QUEUED",$k(f.g.put(g,void 0)).then(function(){return g})})}))})} function Kn(a,b,c,d){c=void 0===c?!0:c;var e;return z(function(f){if(1==f.g)return w(f,Fn(b),2);e=f.h;return f.return(dl(e,["LogsRequestsStore"],{mode:"readwrite",V:!0},function(g){var h=g.objectStore("LogsRequestsStore");return h.get(a).then(function(k){return k?(k.status="NEW",c&&(k.sendCount+=1),void 0!==d&&(k.options.compress=d),$k(h.g.put(k,void 0)).then(function(){return k})):Tk.resolve(void 0)})}))})} function Ln(a,b){var c;return z(function(d){if(1==d.g)return w(d,Fn(b),2);c=d.h;return d.return(c.delete("LogsRequestsStore",a))})} function Mn(a){var b,c;return z(function(d){if(1==d.g)return w(d,Fn(a),2);b=d.h;c=Y()-2592E6;return w(d,dl(b,["LogsRequestsStore"],{mode:"readwrite",V:!0},function(e){return nl(e.objectStore("LogsRequestsStore"),{},function(f){if(f.ia().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})} function Nn(){z(function(a){return w(a,Bm(),0)})} function Hn(a){V("nwl_csi_killswitch")||cn("networkless_performance",a,{sampleRate:1})} ;var On={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73, visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88, spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153, vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139, mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437, kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460, transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190, ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259, ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226, userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246, embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,tvhtml5ApiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272, liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300, delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321, voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343, sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363, clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382, startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404, playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,genericClientExperimentEvent:423, homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145, dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451, producerProjectElementAdded:453,producerProjectElementRemoved:454,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477};var Pn={},Qn=Fm("ServiceWorkerLogsDatabase",{Va:(Pn.SWHealthLog={Za:1},Pn),Bb:!0,upgrade:function(a,b){b(1)&&ll(el(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});function Rn(a){return im(Qn(),a)} function Sn(a){var b,c;z(function(d){if(1==d.g)return w(d,Rn(a),2);b=d.h;c=Y()-2592E6;return w(d,dl(b,["SWHealthLog"],{mode:"readwrite",V:!0},function(e){return nl(e.objectStore("SWHealthLog"),{},function(f){if(f.ia().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})} function Tn(a){var b;return z(function(c){if(1==c.g)return w(c,Rn(a),2);b=c.h;return w(c,b.clear("SWHealthLog"),0)})} ;var Un={},Vn=0;function Wn(a){var b=new Image,c=""+Vn++;Un[c]=b;b.onload=b.onerror=function(){delete Un[c]}; b.src=a} ;function Xn(){this.g=new Map;this.h=!1} function Yn(){if(!Xn.g){var a=B("yt.networkRequestMonitor.instance")||new Xn;C("yt.networkRequestMonitor.instance",a);Xn.g=a}return Xn.g} Xn.prototype.requestComplete=function(a,b){b&&(this.h=!0);a=this.removeParams(a);this.g.get(a)||this.g.set(a,b)}; Xn.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.g.get(a))?!1:!1===a&&this.h?!0:null}; Xn.prototype.removeParams=function(a){return a.split("?")[0]}; Xn.prototype.removeParams=Xn.prototype.removeParams;Xn.prototype.isEndpointCFR=Xn.prototype.isEndpointCFR;Xn.prototype.requestComplete=Xn.prototype.requestComplete;Xn.getInstance=Yn;var Zn;function $n(){Zn||(Zn=new vk("yt.offline"));return Zn} function ao(a){if(V("offline_error_handling")){var b=$n().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);$n().set("errors",b,2592E3,!0)}} ;function Z(){We.call(this);var a=this;this.l=!1;this.h=bf();this.h.Ga("networkstatus-online",function(){if(a.l&&V("offline_error_handling")){var b=$n().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new nk(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;ej(d)}$n().set("errors",{},2592E3,!0)}}})} v(Z,We);function bo(){if(!Z.g){var a=B("yt.networkStatusManager.instance")||new Z;C("yt.networkStatusManager.instance",a);Z.g=a}return Z.g} q=Z.prototype;q.ba=function(){return this.h.ba()}; q.Ia=function(a){this.h.h=a}; q.Qc=function(){var a=window.navigator.onLine;return void 0===a?!0:a}; q.Mc=function(){this.l=!0}; q.Ga=function(a,b){return this.h.Ga(a,b)}; q.Ab=function(a){a=$e(this.h,a);a.then(function(b){V("use_cfr_monitor")&&Yn().requestComplete("generate_204",b)}); return a}; Z.prototype.sendNetworkCheckRequest=Z.prototype.Ab;Z.prototype.listen=Z.prototype.Ga;Z.prototype.enableErrorFlushing=Z.prototype.Mc;Z.prototype.getWindowStatus=Z.prototype.Qc;Z.prototype.networkStatusHint=Z.prototype.Ia;Z.prototype.isNetworkAvailable=Z.prototype.ba;Z.getInstance=bo;function co(a){a=void 0===a?{}:a;We.call(this);var b=this;this.h=this.H=0;this.l=bo();var c=B("yt.networkStatusManager.instance.listen").bind(this.l);c&&(a.zb?(this.zb=a.zb,c("networkstatus-online",function(){eo(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){eo(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){Xe(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){Xe(b,"publicytnetworkstatus-offline")})))} v(co,We);co.prototype.ba=function(){var a=B("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.l)():!0}; co.prototype.Ia=function(a){var b=B("yt.networkStatusManager.instance.networkStatusHint").bind(this.l);b&&b(a)}; co.prototype.Ab=function(a){var b=this,c;return z(function(d){c=B("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.l);return V("skip_network_check_if_cfr")&&Yn().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.Ia((null==(f=window.navigator)?void 0:f.onLine)||!0);e(b.ba())})):c?d.return(c(a)):d.return(!0)})}; function eo(a,b){a.zb?a.h?(cf.Na(a.H),a.H=cf.oa(function(){a.A!==b&&(Xe(a,b),a.A=b,a.h=Y())},a.zb-(Y()-a.h))):(Xe(a,b),a.A=b,a.h=Y()):Xe(a,b)} ;var fo;function go(){var a=tn.call;fo||(fo=new co({Ud:!0,Td:!0}));a.call(tn,this,{M:{Jc:Mn,Oa:Ln,Yb:In,ad:Jn,Mb:Kn,set:Gn},O:fo,handleError:function(b,c,d){var e,f=null==d?void 0:null==(e=d.error)?void 0:e.code;if(400===f||415===f){var g;fj(new nk(b.message,c,null==d?void 0:null==(g=d.error)?void 0:g.code),void 0,void 0,void 0,!0)}else ej(b)}, Pa:fj,va:ho,now:Y,yc:ao,ga:uk(),Lb:"publicytnetworkstatus-online",Kb:"publicytnetworkstatus-offline",tb:!0,rb:.1,yb:hj("potential_esf_error_limit",10),J:V,cb:!(ok()&&"www.youtube-nocookie.com"!==$b(document.location.toString()))});this.i=new bg;V("networkless_immediately_drop_all_requests")&&Nn();Cm("LogsDatabaseV2")} v(go,tn);function io(){var a=B("yt.networklessRequestController.instance");a||(a=new go,C("yt.networklessRequestController.instance",a),V("networkless_logging")&&um().then(function(b){a.I=b;vn(a);a.i.resolve();a.tb&&Math.random()<=a.rb&&a.I&&Sn(a.I);V("networkless_immediately_drop_sw_health_store")&&jo(a)})); return a} go.prototype.writeThenSend=function(a,b){b||(b={});ok()||(this.g=!1);tn.prototype.writeThenSend.call(this,a,b)}; go.prototype.sendThenWrite=function(a,b,c){b||(b={});ok()||(this.g=!1);tn.prototype.sendThenWrite.call(this,a,b,c)}; go.prototype.sendAndWrite=function(a,b){b||(b={});ok()||(this.g=!1);tn.prototype.sendAndWrite.call(this,a,b)}; go.prototype.awaitInitialization=function(){return this.i.promise}; function jo(a){var b;z(function(c){if(!a.I)throw b=Pk("clearSWHealthLogsDb"),b;return c.return(Tn(a.I).catch(function(d){a.handleError(d)}))})} function ho(a,b,c){b=V("web_fp_via_jspb")?Object.assign({},b):b;V("use_cfr_monitor")&&ko(a,b);if(V("use_request_time_ms_header"))b.headers&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round(Y())));else{var d;if(null==(d=b.postParams)?0:d.requestTimeMs)b.postParams.requestTimeMs=Math.round(Y())}if(c&&0===Object.keys(b).length){var e=void 0===e?"":e;var f=void 0===f?!1:f;var g=void 0===g?!1:g;if(a)if(e)Oj(a,void 0,"POST",e);else if(T("USE_NET_AJAX_FOR_PING_TRANSPORT",!1))Oj(a,void 0,"GET", "",void 0,void 0,f,g);else{b:{try{var h=new bb({url:a});if(h.i&&h.h||h.l){var k=Zb(a.match(Yb)[5]||null);var l=!(!k||!k.endsWith("/aclk")||"1"!==ec(a,"ri"));break b}}catch(n){}l=!1}if(l){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,"")){var m=!0;break b}}catch(n){}m=!1}c=m?!0:!1}else c=!1;c||Wn(a)}}else b.compress?b.postBody?("string"!==typeof b.postBody&&(b.postBody=JSON.stringify(b.postBody)),ln(a,b.postBody,b,Lj)):ln(a,JSON.stringify(b.postParams),b,Tj): Lj(a,b)} function ko(a,b){var c=b.onError?b.onError:function(){}; b.onError=function(e,f){Yn().requestComplete(a,!1);c(e,f)}; var d=b.onSuccess?b.onSuccess:function(){}; b.onSuccess=function(e,f){Yn().requestComplete(a,!0);d(e,f)}} ;var lo=A.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};C("ytNetworklessLoggingInitializationOptions",lo);function mo(a){var b=this;this.config_=null;a?this.config_=a:Rm()&&(this.config_=Sm());rk(function(){rn(b)},5E3)} mo.prototype.isReady=function(){!this.config_&&Rm()&&(this.config_=Sm());return!!this.config_}; function sn(a,b,c,d){function e(x){x=void 0===x?!1:x;var y;if(d.retry&&"www.youtube-nocookie.com"!=h&&(x||V("skip_ls_gel_retry")||"application/json"!==g.headers["Content-Type"]||(y=pn(b,c,l,k)),y)){var E=g.onSuccess,P=g.onFetchSuccess;g.onSuccess=function(R,Ba){qn(y);E(R,Ba)}; c.onFetchSuccess=function(R,Ba){qn(y);P(R,Ba)}}try{if(x&&d.retry&&!d.jc.bypassNetworkless)g.method="POST",d.jc.writeThenSend?io().writeThenSend(p,g):io().sendAndWrite(p,g); else if(d.compress)if(g.postBody){var U=g.postBody;"string"!==typeof U&&(U=JSON.stringify(g.postBody));ln(p,U,g,Lj)}else ln(p,JSON.stringify(g.postParams),g,Tj);else V("web_all_payloads_via_jspb")?Lj(p,g):Tj(p,g)}catch(R){if("InvalidAccessError"==R.name)y&&(qn(y),y=0),fj(Error("An extension is blocking network request."));else throw R;}y&&rk(function(){rn(a)},5E3)} !T("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&fj(new nk("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady()){var f=new nk("innertube xhrclient not ready",b,c,d);ej(f);throw f;}var g={headers:d.headers||{},method:"POST",postParams:c,postBody:d.postBody,postBodyFormat:d.postBodyFormat||"JSON",onTimeout:function(){d.onTimeout()}, onFetchTimeout:d.onTimeout,onSuccess:function(x,y){if(d.onSuccess)d.onSuccess(y)}, onFetchSuccess:function(x){if(d.onSuccess)d.onSuccess(x)}, onError:function(x,y){if(d.onError)d.onError(y)}, onFetchError:function(x){if(d.onError)d.onError(x)}, timeout:d.timeout,withCredentials:!0,compress:d.compress};g.headers["Content-Type"]||(g.headers["Content-Type"]="application/json");var h="";(f=a.config_.Wc)&&(h=f);var k=a.config_.Yc||!1,l=an(k,h,d);Object.assign(g.headers,l);(f=g.headers.Authorization)&&!h&&k&&(g.headers["x-origin"]=window.location.origin);var m="/youtubei/"+a.config_.Uc+"/"+b,n={alt:"json"},r=a.config_.Xc&&f;r=r&&f.startsWith("Bearer");r||(n.key=a.config_.Tc);var p=Aj(""+h+m,n||{},!0);B("ytNetworklessLoggingInitializationOptions")&& lo.isNwlInitialized?sm().then(function(x){e(x)}):e(!1)} ;function no(){var a=B("_lact",window);return null==a?-1:Math.max(Date.now()-a,0)} ;var oo=A.ytPubsubPubsubInstance||new M,po=A.ytPubsubPubsubSubscribedKeys||{},qo=A.ytPubsubPubsubTopicToKeys||{},ro=A.ytPubsubPubsubIsSynchronous||{};M.prototype.subscribe=M.prototype.subscribe;M.prototype.unsubscribeByKey=M.prototype.jb;M.prototype.publish=M.prototype.Wa;M.prototype.clear=M.prototype.clear;C("ytPubsubPubsubInstance",oo);C("ytPubsubPubsubTopicToKeys",qo);C("ytPubsubPubsubIsSynchronous",ro);C("ytPubsubPubsubSubscribedKeys",po);var so=Symbol("injectionDeps");function to(){this.key=Om} function uo(){this.h=new Map;this.g=new Map} uo.prototype.resolve=function(a){return a instanceof to?vo(this,a.key,[],!0):vo(this,a,[])}; function vo(a,b,c,d){d=void 0===d?!1:d;if(-1=d.length&&Ao(b)===d[0])return d;for(var e=[],f=0;f=a?Mo||(Mo=bp(function(){e();Mo=void 0},0)):10<=f-h&&(cp(c,d.tier),g.i=f)} function Wo(a,b){if("log_event"===a.endpoint){To(a);var c=Uo(a),d=new Map;d.set(c,[a.payload]);b&&(Go=new b);return new cg(function(e,f){Go&&Go.isReady()?dp(d,Go,e,f,{bypassNetworkless:!0},!0):e()})}} function Zo(a,b,c){if("log_event"===b.endpoint){To(void 0,b);a=Uo(b,!0);var d=new Map;d.set(a,[b.payload.toJSON()]);c&&(Go=new c);return new cg(function(e){Go&&Go.isReady()?ep(d,Go,e,{bypassNetworkless:!0},!0):e()})}} function Uo(a,b){var c="";if(a.dangerousLogToVisitorSession)c="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(void 0===b?0:b){b=a.cttAuthInfo.token;c=a.cttAuthInfo;var d=new Ti;c.videoId?md(d,1,vd,ed(c.videoId)):c.playlistId&&md(d,2,vd,ed(c.playlistId));Po[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),Oo[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c} function $o(a,b,c,d){a=void 0===a?{}:a;c=void 0===c?!1:c;new cg(function(e,f){var g=ap(c,d);fp(g.h);fp(g.g);g.g=0;Go&&Go.isReady()?void 0===d&&V("enable_web_tiered_gel")?gp(e,f,a,b,c,300):gp(e,f,a,b,c,d):(cp(c,d),e())})} function gp(a,b,c,d,e,f){var g=Go;c=void 0===c?{}:c;e=void 0===e?!1:e;f=void 0===f?200:f;var h=new Map,k=new Map,l={isJspb:e,cttAuthInfo:d,tier:f},m={isJspb:e,cttAuthInfo:d};if(void 0!==d)e?(b=V("enable_web_tiered_gel")?Ro().smartExtractMatchingEntries({keys:[l,m],sizeLimit:1E3}):Ro().extractMatchingEntries(m),h.set(d,b),ep(h,g,a,c)):(h=V("enable_web_tiered_gel")?Ro().smartExtractMatchingEntries({keys:[l,m],sizeLimit:1E3}):Ro().extractMatchingEntries(m),k.set(d,h),dp(k,g,a,b,c));else if(e){b=u(Object.keys(Qo)); for(d=b.next();!d.done;d=b.next())k=d.value,f=V("enable_web_tiered_gel")?Ro().smartExtractMatchingEntries({keys:[l,m],sizeLimit:1E3}):Ro().extractMatchingEntries({isJspb:!0,cttAuthInfo:k}),0Fo&&(a=1);Zi("BATCH_CLIENT_COUNTER",a);return a} function hp(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}]} function np(a,b,c){if(ud(c,1))var d=1;else if(c.getPlaylistId())d=2;else return;I(a,Ti,4,c);a=pd(a,Ci,1)||new Ci;c=pd(a,Bi,3)||new Bi;var e=new Ai;J(e,2,b);H(e,1,d);sd(c,12,Ai,e);I(a,Bi,3,c)} function mp(a){for(var b=[],c=0;c>=8);d[e++]=g}return Fc(d,3)})):b.return(Promise.resolve(null))})} ;var Kp={};function Lp(a){return Kp[a]||(Kp[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))} ;var Mp={},Np=[],tg=new M,Op={};function Pp(){for(var a=u(Np),b=a.next();!b.done;b=a.next())b=b.value,b()} function Qp(a,b){var c;"yt:"===a.tagName.toLowerCase().substr(0,3)?c=a.getAttribute(b):c=a?a.dataset?a.dataset[Lp(b)]:a.getAttribute("data-"+b):null;return c} function Rp(a){tg.Wa.apply(tg,arguments)} ;function Sp(a){this.g=a||{};a=[this.g,window.YTConfig||{}];for(var b=0;b')}; q.getOptions=function(a){return this.ja.namespaces?a?this.ja[a]?this.ja[a].options||[]:[]:this.ja.namespaces||[]:[]}; q.getOption=function(a,b){if(this.ja.namespaces&&a&&b&&this.ja[a])return this.ja[a][b]}; function wq(a){if("iframe"!==a.tagName.toLowerCase()){var b=Qp(a,"videoid");b&&(b={videoId:b,width:Qp(a,"width"),height:Qp(a,"height")},new gq(a,b))}} ;C("YT.PlayerState.UNSTARTED",-1);C("YT.PlayerState.ENDED",0);C("YT.PlayerState.PLAYING",1);C("YT.PlayerState.PAUSED",2);C("YT.PlayerState.BUFFERING",3);C("YT.PlayerState.CUED",5);C("YT.get",function(a){return Mp[a]}); C("YT.scan",Pp);C("YT.subscribe",function(a,b,c){tg.subscribe(a,b,c);Op[a]=!0;for(var d in Mp)Mp.hasOwnProperty(d)&&aq(Mp[d],a)}); C("YT.unsubscribe",function(a,b,c){sg(a,b,c)}); C("YT.Player",gq);Yp.prototype.destroy=Yp.prototype.destroy;Yp.prototype.setSize=Yp.prototype.setSize;Yp.prototype.getIframe=Yp.prototype.getIframe;Yp.prototype.addEventListener=Yp.prototype.addEventListener;gq.prototype.getVideoEmbedCode=gq.prototype.getVideoEmbedCode;gq.prototype.getOptions=gq.prototype.getOptions;gq.prototype.getOption=gq.prototype.getOption; Np.push(function(a){var b=a;b||(b=document);a=jb(b.getElementsByTagName("yt:player"));var c=b||document;if(c.querySelectorAll&&c.querySelector)b=c.querySelectorAll(".yt-player");else{var d;c=document;b=b||c;if(b.querySelectorAll&&b.querySelector)b=b.querySelectorAll(".yt-player");else if(b.getElementsByClassName){var e=b.getElementsByClassName("yt-player");b=e}else{e=b.getElementsByTagName("*");var f={};for(c=d=0;b=e[c];c++){var g=b.className,h;if(h="function"==typeof g.split)h=0<=eb(g.split(/\s+/), "yt-player");h&&(f[d++]=b)}f.length=d;b=f}}b=jb(b);fb(ib(a,b),wq)}); "undefined"!=typeof YTConfig&&YTConfig.parsetags&&"onload"!=YTConfig.parsetags||Pp();var xq=A.onYTReady;xq&&xq();var yq=A.onYouTubeIframeAPIReady;yq&&yq();var zq=A.onYouTubePlayerAPIReady;zq&&zq();}).call(this);