(function(){/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ 'use strict';var l;function aa(a){var b=0;return function(){return b>>0)+"_",e=0;return b}); n("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}}); n("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}}); n("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}}); n("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}}); n("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}); function La(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&cc&&(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(2b?null:"string"===typeof a?a.charAt(b):a[b]} function kb(a,b){b=eb(a,b);var c;(c=0<=b)&&Array.prototype.splice.call(a,b,1);return c} function lb(a,b){for(var c=1;cb?1:0} ;function Nb(a,b){this.j=b===Ob?a:""} Nb.prototype.toString=function(){return this.j.toString()}; Nb.prototype.i=!0;Nb.prototype.h=function(){return this.j.toString()}; function Pb(a){if(a instanceof Nb&&a.constructor===Nb)return a.j;Oa(a);return"type_error:SafeUrl"} var Qb=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Ob={},Rb=new Nb("about:invalid#zClosurez",Ob);function Sb(){var a=z.navigator;return a&&(a=a.userAgent)?a:""} function C(a){return-1!=Sb().indexOf(a)} ;function Tb(){return C("Trident")||C("MSIE")} function Ub(){return C("Firefox")||C("FxiOS")} function Vb(){return C("Safari")&&!(Wb()||C("Coast")||C("Opera")||C("Edge")||C("Edg/")||C("OPR")||Ub()||C("Silk")||C("Android"))} function Wb(){return(C("Chrome")||C("CriOS"))&&!C("Edge")||C("Silk")} function Xb(){return C("Android")&&!(Wb()||Ub()||C("Opera")||C("Silk"))} function Yb(a){var b={};a.forEach(function(c){b[c[0]]=c[1]}); return function(c){return b[c.find(function(d){return d in b})]||""}} function Zb(a){var b=Sb();if("Internet Explorer"===a){if(Tb())if((a=/rv: *([\d\.]*)/.exec(b))&&a[1])b=a[1];else{a="";var c=/MSIE +([\d\.]+)/.exec(b);if(c&&c[1])if(b=/Trident\/(\d.\d)/.exec(b),"7.0"==c[1])if(b&&b[1])switch(b[1]){case "4.0":a="8.0";break;case "5.0":a="9.0";break;case "6.0":a="10.0";break;case "7.0":a="11.0"}else a="7.0";else a=c[1];b=a}else b="";return b}var d=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");c=[];for(var e;e=d.exec(b);)c.push([e[1],e[2],e[3]||void 0]);b=Yb(c); switch(a){case "Opera":if(C("Opera"))return b(["Version","Opera"]);if(C("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(C("Edge"))return b(["Edge"]);if(C("Edg/"))return b(["Edg"]);break;case "Chromium":if(Wb())return b(["Chrome","CriOS","HeadlessChrome"])}return"Firefox"===a&&Ub()||"Safari"===a&&Vb()||"Android Browser"===a&&Xb()||"Silk"===a&&C("Silk")?(b=c[2])&&b[1]||"":""} function bc(a){a=Zb(a);if(""===a)return NaN;a=a.split(".");return 0===a.length?NaN:Number(a[0])} ;var cc={};function dc(a){this.j=cc===cc?a:"";this.i=!0} dc.prototype.h=function(){return this.j.toString()}; dc.prototype.toString=function(){return this.j.toString()};function ec(a,b){b instanceof Nb||b instanceof Nb||(b="object"==typeof b&&b.i?b.h():String(b),Qb.test(b)||(b="about:invalid#zClosurez"),b=new Nb(b,Ob));a.href=Pb(b)} function fc(a,b){a.rel="stylesheet";a.href=Hb(b).toString();(b=gc('style[nonce],link[rel="stylesheet"][nonce]',a.ownerDocument&&a.ownerDocument.defaultView))&&a.setAttribute("nonce",b)} function hc(){return gc("script[nonce]")} var ic=/^[\w+/_-]+[=]{0,2}$/;function gc(a,b){b=(b||z).document;return b.querySelector?(a=b.querySelector(a))&&(a=a.nonce||a.getAttribute("nonce"))&&ic.test(a)?a:"":""} ;function jc(a){for(var b=0,c=0;c>>0;return b} ;var kc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function lc(a){return a?decodeURI(a):a} function mc(a,b){return b.match(kc)[a]||null} function nc(a){return lc(mc(3,a))} function oc(a){var b=a.match(kc);a=b[5];var c=b[6];b=b[7];var d="";a&&(d+=a);c&&(d+="?"+c);b&&(d+="#"+b);return d} function pc(a,b){if(!b)return a;var c=a.indexOf("#");0>c&&(c=a.length);var d=a.indexOf("?");if(0>d||d>c){d=c;var e=""}else e=a.substring(d+1,c);a=[a.slice(0,d),e,a.slice(c)];c=a[1];a[1]=b?c?c+"&"+b:b:c;return a[0]+(a[1]?"?"+a[1]:"")+a[2]} function qc(a,b,c){if(Array.isArray(b))for(var d=0;dparseFloat(Pc)){Oc=String(Rc);break a}}Oc=Pc}var Sc=Oc,Tc;if(z.document&&Ic){var Uc=Nc();Tc=Uc?Uc:parseInt(Sc,10)||void 0}else Tc=void 0;var Vc=Tc;var Wc=Ec()||C("iPod"),Xc=C("iPad");Xb();Wb();var Yc=Vb()&&!(Ec()||C("iPad")||C("iPod"));var Zc={},$c=null;function ad(a,b){Pa(a);void 0===b&&(b=0);bd();b=Zc[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e>2];g=b[(g&3)<<4|h>>4];h=b[(h&15)<<2|k>>6];k=b[k&63];c[f++]=""+m+g+h+k}m=0;k=d;switch(a.length-e){case 2:m=a[e+1],k=b[(m&15)<<2]||d;case 1:a=a[e],c[f]=""+b[a>>2]+b[(a&3)<<4|m>>4]+k+d}return c.join("")} function cd(a){var b=a.length,c=3*b/4;c%3?c=Math.floor(c):-1!="=.".indexOf(a[b-1])&&(c=-1!="=.".indexOf(a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;dd(a,function(f){d[e++]=f}); return e!==c?d.subarray(0,e):d} function dd(a,b){function c(k){for(;d>4);64!=g&&(b(f<<4&240|g>>2),64!=h&&b(g<<6&192|h))}} function bd(){if(!$c){$c={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));Zc[c]=d;for(var e=0;e=a.l?a.j?a.j[b]:void 0:c&&a.j&&(c=a.j[b],null!=c)?c:a.B[b+a.ta]} function D(a,b,c,d){Hd(a);return Ud(a,b,c,d)} function Ud(a,b,c,d){a.o&&(a.o=void 0);if(b>=a.l||d)return Sd(a)[b]=c,a;a.B[b+a.ta]=c;(c=a.j)&&b in c&&delete c[b];return a} function Vd(a,b){a&&vd(b.B)&&vd(a.B);return a} function Wd(a,b,c,d,e){var f=Td(a,b,d);Array.isArray(f)||(f=Fd);var g=od(f);g&1||qd(f);if(e)g&2||md(f,2),c&1||Object.freeze(f);else{e=!(c&2);var h=g&2;c&1||!h?e&&g&16&&!h&&nd(f,16):(f=qd(Array.prototype.slice.call(f)),Ud(a,b,f,d))}return f} function Xd(a,b,c,d){Hd(a);(c=Yd(a,c))&&c!==b&&null!=d&&Ud(a,c,void 0,!1);return Ud(a,b,d)} function Yd(a,b){for(var c=0,d=0;d>>0);function Xe(a){if("function"===typeof a)return a;a[ef]||(a[ef]=function(b){return a.handleEvent(b)}); return a[ef]} ;function ff(){J.call(this);this.l=new Pe(this);this.Cc=this;this.ja=null} Za(ff,J);ff.prototype[Le]=!0;ff.prototype.addEventListener=function(a,b,c,d){Ve(this,a,b,c,d)}; ff.prototype.removeEventListener=function(a,b,c,d){cf(this,a,b,c,d)}; function gf(a,b){var c=a.ja;if(c){var d=[];for(var e=1;c;c=c.ja)d.push(c),++e}a=a.Cc;c=b.type||b;"string"===typeof b?b=new ye(b,a):b instanceof ye?b.target=b.target||a:(e=b,b=new ye(c,a),xb(b,e));e=!0;if(d)for(var f=d.length-1;!b.j&&0<=f;f--){var g=b.h=d[f];e=hf(g,c,!0,b)&&e}b.j||(g=b.h=a,e=hf(g,c,!0,b)&&e,b.j||(e=hf(g,c,!1,b)&&e));if(d)for(f=0;!b.j&&fa.i&&(a.i++,b.next=a.h,a.h=b)} ;function lf(a,b){return a+Math.random()*(b-a)} ;function mf(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0} l=mf.prototype;l.clone=function(){return new mf(this.x,this.y)}; l.equals=function(a){return a instanceof mf&&(this==a?!0:this&&a?this.x==a.x&&this.y==a.y:!1)}; l.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; l.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; l.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; l.scale=function(a,b){this.x*=a;this.y*="number"===typeof b?b:a;return this};function nf(a,b){this.width=a;this.height=b} l=nf.prototype;l.clone=function(){return new nf(this.width,this.height)}; l.aspectRatio=function(){return this.width/this.height}; l.Oa=function(){return!(this.width*this.height)}; l.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; l.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; l.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; l.scale=function(a,b){this.width*=a;this.height*="number"===typeof b?b:a;return this};function of(a){var b=document;return"string"===typeof a?b.getElementById(a):a} function pf(a){var b=document;a=String(a);"application/xhtml+xml"===b.contentType&&(a=a.toLowerCase());return b.createElement(a)} function qf(a,b){for(var c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null} ;var rf;function sf(){var a=z.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!C("Presto")&&(a=function(){var e=pf("IFRAME");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=Xa(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&&!Tb()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.Rb;c.Rb=null;e()}}; return function(e){d.next={Rb:e};d=d.next;b.port2.postMessage(0)}}return function(e){z.setTimeout(e,0)}} ;function tf(){this.i=this.h=null} tf.prototype.add=function(a,b){var c=uf.get();c.set(a,b);this.i?this.i.next=c:this.h=c;this.i=c}; tf.prototype.remove=function(){var a=null;this.h&&(a=this.h,this.h=this.h.next,this.h||(this.i=null),a.next=null);return a}; var uf=new jf(function(){return new vf},function(a){return a.reset()}); function vf(){this.next=this.scope=this.h=null} vf.prototype.set=function(a,b){this.h=a;this.scope=b;this.next=null}; vf.prototype.reset=function(){this.next=this.scope=this.h=null};var wf,xf=!1,yf=new tf;function zf(a,b){wf||Af();xf||(wf(),xf=!0);yf.add(a,b)} function Af(){if(z.Promise&&z.Promise.resolve){var a=z.Promise.resolve(void 0);wf=function(){a.then(Bf)}}else wf=function(){var b=Bf; "function"!==typeof z.setImmediate||z.Window&&z.Window.prototype&&!C("Edge")&&z.Window.prototype.setImmediate==z.setImmediate?(rf||(rf=sf()),rf(b)):z.setImmediate(b)}} function Bf(){for(var a;a=yf.remove();){try{a.h.call(a.scope)}catch(b){Dc(b)}kf(uf,a)}xf=!1} ;function Cf(a){this.h=0;this.v=void 0;this.l=this.i=this.j=null;this.m=this.o=!1;if(a!=cb)try{var b=this;a.call(void 0,function(c){Df(b,2,c)},function(c){Df(b,3,c)})}catch(c){Df(this,3,c)}} function Ef(){this.next=this.context=this.i=this.j=this.h=null;this.l=!1} Ef.prototype.reset=function(){this.context=this.i=this.j=this.h=null;this.l=!1}; var Ff=new jf(function(){return new Ef},function(a){a.reset()}); function Gf(a,b,c){var d=Ff.get();d.j=a;d.i=b;d.context=c;return d} function Hf(a){return new Cf(function(b,c){c(a)})} Cf.prototype.then=function(a,b,c){return If(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)}; Cf.prototype.$goog_Thenable=!0;l=Cf.prototype;l.qb=function(a,b){return If(this,null,a,b)}; l.catch=Cf.prototype.qb;l.cancel=function(a){if(0==this.h){var b=new Jf(a);zf(function(){Kf(this,b)},this)}}; function Kf(a,b){if(0==a.h)if(a.j){var c=a.j;if(c.i){for(var d=0,e=null,f=null,g=c.i;g&&(g.l||(d++,g.h==a&&(e=g),!(e&&1=a.l&&a.tb()} l.tb=function(){var a=this.h.values();a=[].concat(ia(a)).filter(function(b){return b.Aa.size}); a.length&&this.v.flush(a,this.m);Yf(a);this.j=0;this.i.enabled&&this.i.stop()}; l.Ob=function(a){var b=Ja.apply(1,arguments);this.h.has(a)||this.h.set(a,new se(a,b))}; l.Pb=function(a){var b=Ja.apply(1,arguments);this.h.has(a)||this.h.set(a,new te(a,b))}; function Zf(a,b){return a.o.has(b)?void 0:a.h.get(b)} l.rb=function(a){this.Ac.apply(this,[a,1].concat(ia(Ja.apply(1,arguments))))}; l.Ac=function(a,b){var c=Ja.apply(2,arguments),d=Zf(this,a);d&&d instanceof se&&(d.j(b,c),Xf(this))}; l.sb=function(a,b){var c=Ja.apply(2,arguments),d=Zf(this,a);d&&d instanceof te&&(d.j(b,c),Xf(this))}; function Yf(a){for(var b=0;bt;t+=4)w[t/4]=r[t]<<24|r[t+1]<<16|r[t+2]<<8|r[t+3];for(t=16;80>t;t++)r=w[t-3]^w[t-8]^w[t-14]^w[t-16],w[t]=(r<<1|r>>>31)&4294967295;r=e[0];var y=e[1],E=e[2],F=e[3],O=e[4];for(t=0;80>t;t++){if(40>t)if(20>t){var N=F^y&(E^F);var Q=1518500249}else N=y^E^F,Q=1859775393;else 60>t?(N=y&E|F&(y|E),Q=2400959708):(N=y^E^F,Q=3395469782);N=((r<<5|r>>>27)&4294967295)+N+O+Q+w[t]&4294967295;O=F;F=E;E=(y<<30|y>>>2)&4294967295;y=r;r=N}e[0]=e[0]+r&4294967295;e[1]=e[1]+y&4294967295;e[2]= e[2]+E&4294967295;e[3]=e[3]+F&4294967295;e[4]=e[4]+O&4294967295} function c(r,w){if("string"===typeof r){r=unescape(encodeURIComponent(r));for(var t=[],y=0,E=r.length;ym?c(h,56-m):c(h,64-(m-56));for(var t=63;56<=t;t--)f[t]=w&255,w>>>=8;b(f);for(t=w=0;5>t;t++)for(var y=24;0<=y;y-=8)r[w++]=e[t]>>y&255;return r} for(var e=[],f=[],g=[],h=[128],k=1;64>k;++k)h[k]=0;var m,q;a();return{reset:a,update:c,digest:d,Mc:function(){for(var r=d(),w="",t=0;th?"":0==h?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*h)).toUTCString();this.h.cookie=a+"="+b+c+g+h+d+(null!=e?";samesite="+ e:"")}; l.get=function(a,b){for(var c=a+"=",d=(this.h.cookie||"").split(";"),e=0,f;ea.Ec()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.S} function uh(a,b){a.o=new Cg(1>b?1:b);Uf(a.i,a.o.getValue())} ph.prototype.log=function(a){a=a.clone();var b=this.Dc++;D(a,21,b);this.O&&D(a,26,this.O);if(!Td(a,1)){b=a;var c=Date.now().toString();D(b,1,c)}null!=Td(a,15,!1)||D(a,15,60*(new Date).getTimezoneOffset());this.m&&(b=this.m.clone(),G(a,Ag,16,b));for(;1E3<=this.j.length;)this.j.shift(),++this.F;this.j.push(a);gf(this,new vh(a));this.V||this.i.enabled||this.i.start()}; ph.prototype.flush=function(a,b){var c=this;if(0===this.j.length)a&&a();else if(this.ca)wh(this);else{var d=Date.now();if(this.Nb>d&&this.sat||401===t||0===t);y&&(c.j=E.concat(c.j),c.V||c.i.enabled||c.i.start());b&&b("net-send-failed",t)},w=function(){c.Xa?c.Xa.send(m,q,r):c.Bc(m,q,r)}; k?k.then(function(t){m.Gb["Content-Encoding"]="gzip";m.Gb["Content-Type"]="application/binary";m.body=t;m.Ic=2;w()},function(){w()}):w()}}}}; ph.prototype.W=function(){this.flush()}; function wh(a){yh(a,function(b,c){b=vc(b,"format","json");b=window.navigator.sendBeacon(b,me(c));a.ca&&!b&&(a.ca=!1);return b})} function yh(a,b){if(0!==a.j.length){var c=Cc(th(a),"format");c=tc(c,"auth",a.Za(),"authuser",a.K||"0");for(var d=0;10>d&&a.j.length;++d){var e=a.j.slice(0,32),f=xh(a.s,e,a.F);if(!b(c,f))break;a.F=0;a.j=a.j.slice(e.length)}a.i.enabled&&a.i.stop()}} function vh(){ye.call(this,"event-logged",void 0)} u(vh,ye);function qh(a,b){this.i=b=void 0===b?!1:b;this.uach=this.locale=null;this.h=new jh;D(this.h,2,a);b||(this.locale=document.documentElement.getAttribute("lang"));rh(this,new gh)} function rh(a,b){G(a.h,gh,1,b);Td(b,1)||D(b,1,1);a.i||(b=zh(a),Td(b,5)||D(b,5,a.locale));a.uach&&(b=zh(a),Zd(b,dh,9)||G(b,dh,9,a.uach))} function Ah(a,b){var c=void 0===c?fh:c;b(window,c).then(function(d){a.uach=d;d=zh(a);G(d,dh,9,a.uach);return!0}).catch(function(){return!1})} function zh(a){a=Zd(a.h,gh,1);var b=Zd(a,ch,11);b||(b=new ch,G(a,ch,11,b));return b} function xh(a,b,c){c=void 0===c?0:c;a=a.h.clone();var d=Date.now().toString();a=D(a,4,d);b=de(a,hh,3,b);c&&D(b,14,c);return b} ;function Bh(a,b,c){Ug(a.url,function(d){d=d.target;if(bh(d)){try{var e=d.A?d.A.responseText:""}catch(f){e=""}b(e)}else c(d.getStatus())},a.requestType,a.body,a.Gb,a.timeoutMillis,a.withCredentials)} ;function Ch(){this.j="https://play.google.com/log?format=json&hasfast=true";this.s=!1;this.m=Bh;this.h=""} ;function Dh(){var a=void 0===a?"":a;var b=void 0===b?"":b;var c=new Ch;c.h="";""!=a&&(c.j=a);b&&(c.i=b);a=new ph(1828,c.I?c.I:zg,"0",c.m,c.j,c.s,!1,c.P,void 0,void 0,c.o?c.o:void 0);c.M&&rh(a.s,c.M);if(c.i){b=c.i;var d=zh(a.s);D(d,7,b)}c.l&&(a.I=c.l);c.h&&(a.O=c.h);c.v&&((b=c.v)?(a.m||(a.m=new Ag),b=me(b),D(a.m,4,b)):a.m&&D(a.m,4,void 0,!1));c.K&&(d=c.K,a.m||(a.m=new Ag),b=a.m,d=null==d?Fd:Bd(d,1),D(b,2,d));c.F&&(b=c.F,a.Ya=!0,uh(a,b));c.O&&Ah(a.s,c.O);this.h=a} Dh.prototype.flush=function(a){var b=a||[];if(b.length){a=new lg;for(var c=[],d=0;da&&Number.isInteger(a)&&this.data_[a]!==b&&(this.data_[a]=b,this.h=-1)}; ci.prototype.get=function(a){return!!this.data_[a]}; function di(a){-1===a.h&&(a.h=ib(a.data_,function(b,c,d){return c?b+Math.pow(2,d):b},0)); return a.h} ;function ei(a,b){this.h=a[z.Symbol.iterator]();this.i=b} ei.prototype[Symbol.iterator]=function(){return this}; ei.prototype.next=function(){var a=this.h.next();return{value:a.done?void 0:this.i.call(void 0,a.value),done:a.done}}; function fi(a,b){return new ei(a,b)} ;function gi(){this.blockSize=-1} ;function hi(){this.blockSize=-1;this.blockSize=64;this.h=[];this.m=[];this.o=[];this.j=[];this.j[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.h[0];c=a.h[1];var g=a.h[2],h=a.h[3],k=a.h[4];for(e=0;80>e;e++){if(40>e)if(20>e){f=h^c&(g^h);var m=1518500249}else f=c^g^h,m=1859775393;else 60>e?(f=c&g|h&(c|g),m=2400959708): (f=c^g^h,m=3395469782);f=(b<<5|b>>>27)+f+k+m+d[e]&4294967295;k=h;h=g;g=(c<<30|c>>>2)&4294967295;c=b;b=f}a.h[0]=a.h[0]+b&4294967295;a.h[1]=a.h[1]+c&4294967295;a.h[2]=a.h[2]+g&4294967295;a.h[3]=a.h[3]+h&4294967295;a.h[4]=a.h[4]+k&4294967295} hi.prototype.update=function(a,b){if(null!=a){void 0===b&&(b=a.length);for(var c=b-this.blockSize,d=0,e=this.m,f=this.i;dthis.i?this.update(this.j,56-this.i):this.update(this.j,this.blockSize-(this.i-56));for(var c=this.blockSize-1;56<=c;c--)this.m[c]=b&255,b/=256;ii(this,this.m);for(c=b=0;5>c;c++)for(var d=24;0<=d;d-=8)a[b]=this.h[c]>>d&255,++b;return a};function ji(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""} function ki(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)} function li(a,b){a.classList?b=a.classList.contains(b):(a=a.classList?a.classList:ji(a).match(/\S+/g)||[],b=0<=eb(a,b));return b} function mi(){var a=document.body;a.classList?a.classList.remove("inverted-hdpi"):li(a,"inverted-hdpi")&&ki(a,Array.prototype.filter.call(a.classList?a.classList:ji(a).match(/\S+/g)||[],function(b){return"inverted-hdpi"!=b}).join(" "))} ;function ni(){} ni.prototype.next=function(){return oi}; var oi={done:!0,value:void 0};function pi(a){return{value:a,done:!1}} ni.prototype.da=function(){return this};function qi(a){if(a instanceof ri||a instanceof si||a instanceof ti)return a;if("function"==typeof a.next)return new ri(function(){return a}); if("function"==typeof a[Symbol.iterator])return new ri(function(){return a[Symbol.iterator]()}); if("function"==typeof a.da)return new ri(function(){return a.da()}); throw Error("Not an iterator or iterable.");} function ri(a){this.i=a} ri.prototype.da=function(){return new si(this.i())}; ri.prototype[Symbol.iterator]=function(){return new ti(this.i())}; ri.prototype.h=function(){return new ti(this.i())}; function si(a){this.i=a} u(si,ni);si.prototype.next=function(){return this.i.next()}; si.prototype[Symbol.iterator]=function(){return new ti(this.i)}; si.prototype.h=function(){return new ti(this.i)}; function ti(a){ri.call(this,function(){return a}); this.j=a} u(ti,ri);ti.prototype.next=function(){return this.j.next()};function ui(a,b){this.i={};this.h=[];this.oa=this.size=0;var c=arguments.length;if(12*this.size&&vi(this),!0):!1}; function vi(a){if(a.size!=a.h.length){for(var b=0,c=0;b=d.h.length)return oi;var f=d.h[b++];return pi(a?f:d.i[f])}; return e}; function wi(a,b){return Object.prototype.hasOwnProperty.call(a,b)} ;function K(a){J.call(this);this.o=1;this.l=[];this.m=0;this.i=[];this.j={};this.s=!!a} Za(K,J);l=K.prototype;l.subscribe=function(a,b,c){var d=this.j[a];d||(d=this.j[a]=[]);var e=this.o;this.i[e]=a;this.i[e+1]=b;this.i[e+2]=c;this.o=e+3;d.push(e);return e}; function yi(a,b,c,d){if(b=a.j[b]){var e=a.i;(b=b.find(function(f){return e[f+1]==c&&e[f+2]==d}))&&a.Ga(b)}} l.Ga=function(a){var b=this.i[a];if(b){var c=this.j[b];0!=this.m?(this.l.push(a),this.i[a+1]=function(){}):(c&&kb(c,a),delete this.i[a],delete this.i[a+1],delete this.i[a+2])}return!!b}; l.ra=function(a,b){var c=this.j[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;eDate.now())Ei.prototype.remove.call(this,a);else return b}};function Fi(){} ;function Gi(){} Za(Gi,Fi);Gi.prototype[Symbol.iterator]=function(){return qi(this.da(!0)).h()}; Gi.prototype.clear=function(){var a=Array.from(this);a=p(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};function Hi(a){this.h=a} Za(Hi,Gi);l=Hi.prototype;l.isAvailable=function(){if(!this.h)return!1;try{return this.h.setItem("__sak","1"),this.h.removeItem("__sak"),!0}catch(a){return!1}}; l.set=function(a,b){try{this.h.setItem(a,b)}catch(c){if(0==this.h.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}}; l.get=function(a){a=this.h.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; l.remove=function(a){this.h.removeItem(a)}; l.da=function(a){var b=0,c=this.h,d=new ni;d.next=function(){if(b>=c.length)return oi;var e=c.key(b++);if(a)return pi(e);e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return pi(e)}; return d}; l.clear=function(){this.h.clear()}; l.key=function(a){return this.h.key(a)};function Ii(){var a=null;try{a=window.localStorage||null}catch(b){}this.h=a} Za(Ii,Hi);function Ji(a,b){this.i=a;this.h=null;var c;if(c=Ic)c=!(9<=Number(Vc));if(c){Ki||(Ki=new ui);this.h=Ki.get(a);this.h||(b?this.h=document.getElementById(b):(this.h=document.createElement("userdata"),this.h.addBehavior("#default#userData"),document.body.appendChild(this.h)),Ki.set(a,this.h));try{this.h.load(this.i)}catch(d){this.h=null}}} Za(Ji,Gi);var Li={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},Ki=null;function Mi(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return Li[b]})} l=Ji.prototype;l.isAvailable=function(){return!!this.h}; l.set=function(a,b){this.h.setAttribute(Mi(a),b);Ni(this)}; l.get=function(a){a=this.h.getAttribute(Mi(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; l.remove=function(a){this.h.removeAttribute(Mi(a));Ni(this)}; l.da=function(a){var b=0,c=this.h.XMLDocument.documentElement.attributes,d=new ni;d.next=function(){if(b>=c.length)return oi;var e=c[b++];if(a)return pi(decodeURIComponent(e.nodeName.replace(/\./g,"%")).slice(1));e=e.nodeValue;if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return pi(e)}; return d}; l.clear=function(){for(var a=this.h.XMLDocument.documentElement,b=a.attributes.length;0k.status,w=500<=k.status&&600>k.status;if(m||r||w)q=wl(a,c,k,b.convertToSafeHtml);if(m)a:if(k&&204==k.status)m=!0;else{switch(c){case "XML":m=0==parseInt(q&&q.return_code,10);break a;case "RAW":m=!0;break a}m=!!q}q=q||{};r=b.context||z;m?b.onSuccess&&b.onSuccess.call(r,k,q):b.onError&&b.onError.call(r,k,q);b.onFinish&&b.onFinish.call(r, k,q)}},b.method,d,b.headers,b.responseType,b.withCredentials); d=b.timeout||0;if(b.onTimeout&&0=f)Vm(a,k,t,g,y,b.join(),e),h=y;F.u(2);break;case 3:return F.return(Promise.reject(h))}})} function Vm(a,b,c,d,e,f,g){b=c-b;e?(e instanceof wm&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&nm("QUOTA_EXCEEDED",{dbName:pm(a.h.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:g.mode}),e instanceof wm&&"UNKNOWN_ABORT"===e.type&&(c-=a.j,0>c&&c>=Math.pow(2,31)&&(c=0),nm("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.i=!0),Wm(a,!1,d,f,b,g.tag),mm(e)):Wm(a,!0,d,f,b,g.tag)} function Wm(a,b,c,d,e,f){nm("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.i,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})} l.getName=function(){return this.h.name}; function Rm(a){this.h=a} l=Rm.prototype;l.add=function(a,b){return Lm(this.h.add(a,b))}; l.autoIncrement=function(){return this.h.autoIncrement}; l.clear=function(){return Lm(this.h.clear()).then(function(){})}; function Xm(a,b,c){a.h.createIndex(b,c,{unique:!1})} l.count=function(a){return Lm(this.h.count(a))}; function Ym(a,b){return Zm(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})} l.delete=function(a){return a instanceof IDBKeyRange?Ym(this,a):Lm(this.h.delete(a))}; l.get=function(a){return Lm(this.h.get(a))}; l.index=function(a){try{return new $m(this.h.index(a))}catch(b){if(b instanceof Error&&"NotFoundError"===b.name)throw new ym(a,this.h.name);throw b;}}; l.getName=function(){return this.h.name}; l.keyPath=function(){return this.h.keyPath}; function Zm(a,b,c){a=a.h.openCursor(b.query,b.direction);return an(a).then(function(d){return Mm(d,c)})} function Tm(a){var b=this;this.h=a;this.j=new Map;this.i=!1;this.done=new Promise(function(c,d){b.h.addEventListener("complete",function(){c()}); b.h.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.h.error)}); b.h.addEventListener("abort",function(){var e=b.h.error;if(e)d(e);else if(!b.i){e=wm;for(var f=b.h.objectStoreNames,g=[],h=0;h=F},E); E.done.catch(function(F){e(F)})}catch(F){e(F)}}); g.addEventListener("success",function(){var t=g.result;k&&t.addEventListener("versionchange",function(){k(f())}); t.addEventListener("close",function(){nm("IDB_UNEXPECTEDLY_CLOSED",{dbName:pm(a),dbVersion:t.version});m&&m()}); d(f())}); g.addEventListener("error",function(){e(g.error)}); h&&g.addEventListener("blocked",function(){h()})})} function en(a,b,c){c=void 0===c?{}:c;return dn(a,b,c)} function fn(a,b){b=void 0===b?{}:b;var c,d,e,f;return x(function(g){if(1==g.h)return ya(g,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.Hc)&&c.addEventListener("blocked",function(){e()}),v(g,Km(c),4); if(2!=g.h)return za(g,0);f=Aa(g);throw Am(f,a,"",-1);})} ;function gn(a){return new Promise(function(b){Vl(function(){b()},a)})} function hn(a,b){this.name=a;this.options=b;this.l=!0;this.o=this.m=0;this.i=500} hn.prototype.j=function(a,b,c){c=void 0===c?{}:c;return en(a,b,c)}; hn.prototype.delete=function(a){a=void 0===a?{}:a;return fn(this.name,a)}; function jn(a,b){return new wm("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})} function kn(a,b){if(!b)throw Bm("openWithToken",pm(a.name));return ln(a)} function ln(a){function b(){var f,g,h,k,m,q,r,w,t,y;return x(function(E){switch(E.h){case 1:return g=null!=(f=Error().stack)?f:"",ya(E,2),v(E,a.j(a.name,a.options.version,d),4);case 4:h=E.i;for(var F=a.options,O=[],N=p(Object.keys(F.Da)),Q=N.next();!Q.done;Q=N.next()){Q=Q.value;var da=F.Da[Q],U=void 0===da.hd?Number.MAX_VALUE:da.hd;!(h.h.version>=da.Ia)||h.h.version>=U||h.h.objectStoreNames.contains(Q)||O.push(Q)}k=O;if(0===k.length){E.u(5);break}m=Object.keys(a.options.Da);q=h.objectStoreNames(); if(a.oa.options.version+1)throw w.close(), a.l=!1,jn(a,t);return E.return(w);case 10:throw c(),r instanceof Error&&!M("ytidb_async_stack_killswitch")&&(r.stack=r.stack+"\n"+g.substring(g.indexOf("\n")+1)),Am(r,a.name,"",null!=(y=a.options.version)?y:-1);}})} function c(){a.h===e&&(a.h=void 0)} if(!a.l)throw jn(a);if(a.h)return a.h;var d={blocking:function(f){f.close()}, closed:c,xd:c,upgrade:a.options.upgrade};var e=b();a.h=e;return a.h} ;var mn=new hn("YtIdbMeta",{Da:{databases:{Ia:1}},upgrade:function(a,b){b(1)&&Qm(a,"databases",{keyPath:"actualName"})}}); function nn(a,b){var c;return x(function(d){if(1==d.h)return v(d,kn(mn,b),2);c=d.i;return d.return(Pm(c,["databases"],{T:!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 Lm(f.h.put(a,void 0)).then(function(){})})}))})} function on(a,b){var c;return x(function(d){if(1==d.h)return a?v(d,kn(mn,b),2):d.return();c=d.i;return d.return(c.delete("databases",a))})} function pn(a,b){var c,d;return x(function(e){return 1==e.h?(c=[],v(e,kn(mn,b),2)):3!=e.h?(d=e.i,v(e,Pm(d,["databases"],{T:!0,mode:"readonly"},function(f){c.length=0;return Zm(f.objectStore("databases"),{},function(g){a(g.getValue())&&c.push(g.getValue());return g.continue()})}),3)):e.return(c)})} function qn(a){return pn(function(b){return"LogsDatabaseV2"===b.publicName&&void 0!==b.userIdentifier},a)} function rn(a,b,c){return pn(function(d){return c?void 0!==d.userIdentifier&&!a.includes(d.userIdentifier)&&c.includes(d.publicName):void 0!==d.userIdentifier&&!a.includes(d.userIdentifier)},b)} function sn(a){var b,c;return x(function(d){if(1==d.h)return b=$l("YtIdbMeta hasAnyMeta other"),v(d,pn(function(e){return void 0!==e.userIdentifier&&e.userIdentifier!==b},a),2); c=d.i;return d.return(0Math.round(R())-d.requestTime)){var e=d.authState,f=ho(go(!1));tb(e,f)&&(e=d.request,"requestTimeMs"in e&&(e.requestTimeMs=Math.round(R())),no(a,d.method,e,{}));delete b[c]}}jo().set("requests",b,86400,!0)}} ;function oo(a){this.bb=this.h=!1;this.potentialEsfErrorCounter=this.i=0;this.handleError=function(){}; this.Ca=function(){}; this.now=Date.now;this.Ka=!1;var b;this.uc=null!=(b=a.uc)?b:100;var c;this.oc=null!=(c=a.oc)?c:1;var d;this.mc=null!=(d=a.mc)?d:2592E6;var e;this.kc=null!=(e=a.kc)?e:12E4;var f;this.nc=null!=(f=a.nc)?f:5E3;var g;this.H=null!=(g=a.H)?g:void 0;this.gb=!!a.gb;var h;this.fb=null!=(h=a.fb)?h:.1;var k;this.lb=null!=(k=a.lb)?k:10;a.handleError&&(this.handleError=a.handleError);a.Ca&&(this.Ca=a.Ca);a.Ka&&(this.Ka=a.Ka);a.bb&&(this.bb=a.bb);this.J=a.J;this.Y=a.Y;this.N=a.N;this.L=a.L;this.ia=a.ia;this.Db= a.Db;this.Cb=a.Cb;po(this)&&(!this.J||this.J("networkless_logging"))&&qo(this)} function qo(a){po(a)&&!a.Ka&&(a.h=!0,a.gb&&Math.random()<=a.fb&&a.N.Jc(a.H),ro(a),a.L.U()&&a.Ra(),a.L.ha(a.Db,a.Ra.bind(a)),a.L.ha(a.Cb,a.Qb.bind(a)))} l=oo.prototype;l.writeThenSend=function(a,b){var c=this;b=void 0===b?{}:b;if(po(this)&&this.h){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.N.set(d,this.H).then(function(e){d.id=e;c.L.U()&&so(c,d)}).catch(function(e){so(c,d); to(c,e)})}else this.ia(a,b)}; l.sendThenWrite=function(a,b,c){var d=this;b=void 0===b?{}:b;if(po(this)&&this.h){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.L.U()||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 x(function(k){if(1==k.h)return v(k,d.N.set(e,d.H).catch(function(m){to(d,m)}),2); f(g,h);k.h=0})}}this.ia(a,b,e.skipRetry)}else this.N.set(e,this.H).catch(function(g){d.ia(a,b,e.skipRetry); to(d,g)})}else this.ia(a,b,this.J&&this.J("nwl_skip_retry")&&c)}; l.sendAndWrite=function(a,b){var c=this;b=void 0===b?{}:b;if(po(this)&&this.h){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.N.Ba(d.id,c.H):e=!0;c.L.va&&c.J&&c.J("vss_network_hint")&&c.L.va(!0);f(g,h)}; this.ia(d.url,d.options);this.N.set(d,this.H).then(function(g){d.id=g;e&&c.N.Ba(d.id,c.H)}).catch(function(g){to(c,g)})}else this.ia(a,b)}; l.Ra=function(){var a=this;if(!po(this))throw Bm("throttleSend");this.i||(this.i=this.Y.R(function(){var b;return x(function(c){if(1==c.h)return v(c,a.N.ac("NEW",a.H),2);if(3!=c.h)return b=c.i,b?v(c,so(a,b),3):(a.Qb(),c.return());a.i&&(a.i=0,a.Ra());c.h=0})},this.uc))}; l.Qb=function(){this.Y.ea(this.i);this.i=0}; function so(a,b){var c,d;return x(function(e){switch(e.h){case 1:if(!po(a))throw c=Bm("immediateSend"),c;if(void 0===b.id){e.u(2);break}return v(e,a.N.Zc(b.id,a.H),3);case 3:(d=e.i)?b=d:a.Ca(Error("The request cannot be found in the database."));case 2:if(uo(a,b,a.mc)){e.u(4);break}a.Ca(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===b.id){e.u(5);break}return v(e,a.N.Ba(b.id,a.H),5);case 5:return e.return();case 4:b.skipRetry||(b=vo(a,b));if(!b){e.u(0);break}if(!b.skipRetry|| void 0===b.id){e.u(8);break}return v(e,a.N.Ba(b.id,a.H),8);case 8:a.ia(b.url,b.options,!!b.skipRetry),e.h=0}})} function vo(a,b){if(!po(a))throw Bm("updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){}; b.options.onError=function(e,f){var g,h,k;return x(function(m){switch(m.h){case 1:g=wo(f);if(!(a.J&&a.J("nwl_consider_error_code")&&g||a.J&&!a.J("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.lb)){m.u(2);break}if(!a.L.ob){m.u(3);break}return v(m,a.L.ob(),3);case 3:if(a.L.U()){m.u(2);break}c(e,f);if(!a.J||!a.J("nwl_consider_error_code")||void 0===(null==(h=b)?void 0:h.id)){m.u(6);break}return v(m,a.N.Hb(b.id,a.H,!1),6);case 6:return m.return();case 2:if(a.J&&a.J("nwl_consider_error_code")&& !g&&a.potentialEsfErrorCounter>a.lb)return m.return();a.potentialEsfErrorCounter++;if(void 0===(null==(k=b)?void 0:k.id)){m.u(8);break}return b.sendCount=c?!1:!0} function ro(a){if(!po(a))throw Bm("retryQueuedRequests");a.N.ac("QUEUED",a.H).then(function(b){b&&!uo(a,b,a.kc)?a.Y.R(function(){return x(function(c){if(1==c.h)return void 0===b.id?c.u(2):v(c,a.N.Hb(b.id,a.H),2);ro(a);c.h=0})}):a.L.U()&&a.Ra()})} function to(a,b){a.zc&&!a.L.U()?a.zc(b):a.handleError(b)} function po(a){return!!a.H||a.bb} function wo(a){var b;return(a=null==a?void 0:null==(b=a.error)?void 0:b.code)&&400<=a&&599>=a?!1:!0} ;function xo(a,b){this.version=a;this.args=b} ;function yo(a,b){this.topic=a;this.h=b} yo.prototype.toString=function(){return this.topic};var zo=B("ytPubsub2Pubsub2Instance")||new K;K.prototype.subscribe=K.prototype.subscribe;K.prototype.unsubscribeByKey=K.prototype.Ga;K.prototype.publish=K.prototype.ra;K.prototype.clear=K.prototype.clear;A("ytPubsub2Pubsub2Instance",zo);var Ao=B("ytPubsub2Pubsub2SubscribedKeys")||{};A("ytPubsub2Pubsub2SubscribedKeys",Ao);var Bo=B("ytPubsub2Pubsub2TopicToKeys")||{};A("ytPubsub2Pubsub2TopicToKeys",Bo);var Co=B("ytPubsub2Pubsub2IsAsync")||{};A("ytPubsub2Pubsub2IsAsync",Co); A("ytPubsub2Pubsub2SkipSubKey",null);function Do(a,b){var c=Eo();c&&c.publish.call(c,a.toString(),a,b)} function Fo(a){var b=Go,c=Eo();if(!c)return 0;var d=c.subscribe(b.toString(),function(e,f){var g=B("ytPubsub2Pubsub2SkipSubKey");g&&g==d||(g=function(){if(Ao[d])try{if(f&&b instanceof yo&&b!=e)try{var h=b.h,k=f;if(!k.args||!k.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!h.oa){var m=new h;h.oa=m.version}var q=h.oa}catch(F){}if(!q||k.version!=q)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{q=Reflect;var r=q.construct; var w=k.args,t=w.length;if(0=Math.random()&&Do("nwl_transaction_latency_payload",a)} ;var Vo={},Wo=Mn("ServiceWorkerLogsDatabase",{Da:(Vo.SWHealthLog={Ia:1},Vo),pb:!0,upgrade:function(a,b){b(1)&&Xm(Qm(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});function Xo(a){return kn(Wo(),a)} function Yo(a){var b,c;x(function(d){if(1==d.h)return v(d,Xo(a),2);b=d.i;c=R()-2592E6;return v(d,Pm(b,["SWHealthLog"],{mode:"readwrite",T:!0},function(e){return Zm(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})} function Zo(a){var b;return x(function(c){if(1==c.h)return v(c,Xo(a),2);b=c.i;return v(c,b.clear("SWHealthLog"),0)})} ;var $o={},ap=0;function bp(a){var b=new Image,c=""+ap++;$o[c]=b;b.onload=b.onerror=function(){delete $o[c]}; b.src=a} ;function cp(){this.h=new Map;this.i=!1} function dp(){if(!cp.h){var a=B("yt.networkRequestMonitor.instance")||new cp;A("yt.networkRequestMonitor.instance",a);cp.h=a}return cp.h} cp.prototype.requestComplete=function(a,b){b&&(this.i=!0);a=this.removeParams(a);this.h.get(a)||this.h.set(a,b)}; cp.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.h.get(a))?!1:!1===a&&this.i?!0:null}; cp.prototype.removeParams=function(a){return a.split("?")[0]}; cp.prototype.removeParams=cp.prototype.removeParams;cp.prototype.isEndpointCFR=cp.prototype.isEndpointCFR;cp.prototype.requestComplete=cp.prototype.requestComplete;cp.getInstance=dp;var ep;function fp(){ep||(ep=new cm("yt.offline"));return ep} function gp(a){if(M("offline_error_handling")){var b=fp().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);fp().set("errors",b,2592E3,!0)}} ;function hp(){ff.call(this);var a=this;this.j=!1;this.i=ai();this.i.ha("networkstatus-online",function(){if(a.j&&M("offline_error_handling")){var b=fp().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new P(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;Tk(d)}fp().set("errors",{},2592E3,!0)}}})} u(hp,ff);function ip(){if(!hp.h){var a=B("yt.networkStatusManager.instance")||new hp;A("yt.networkStatusManager.instance",a);hp.h=a}return hp.h} l=hp.prototype;l.U=function(){return this.i.U()}; l.va=function(a){this.i.i=a}; l.Sc=function(){var a=window.navigator.onLine;return void 0===a?!0:a}; l.Nc=function(){this.j=!0}; l.ha=function(a,b){return this.i.ha(a,b)}; l.ob=function(a){a=Zh(this.i,a);a.then(function(b){M("use_cfr_monitor")&&dp().requestComplete("generate_204",b)}); return a}; hp.prototype.sendNetworkCheckRequest=hp.prototype.ob;hp.prototype.listen=hp.prototype.ha;hp.prototype.enableErrorFlushing=hp.prototype.Nc;hp.prototype.getWindowStatus=hp.prototype.Sc;hp.prototype.networkStatusHint=hp.prototype.va;hp.prototype.isNetworkAvailable=hp.prototype.U;hp.getInstance=ip;function jp(a){a=void 0===a?{}:a;ff.call(this);var b=this;this.i=this.o=0;this.j=ip();var c=B("yt.networkStatusManager.instance.listen").bind(this.j);c&&(a.nb?(this.nb=a.nb,c("networkstatus-online",function(){kp(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){kp(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){gf(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){gf(b,"publicytnetworkstatus-offline")})))} u(jp,ff);jp.prototype.U=function(){var a=B("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.j)():!0}; jp.prototype.va=function(a){var b=B("yt.networkStatusManager.instance.networkStatusHint").bind(this.j);b&&b(a)}; jp.prototype.ob=function(a){var b=this,c;return x(function(d){c=B("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.j);return M("skip_network_check_if_cfr")&&dp().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.va((null==(f=window.navigator)?void 0:f.onLine)||!0);e(b.U())})):c?d.return(c(a)):d.return(!0)})}; function kp(a,b){a.nb?a.i?(bi.ea(a.o),a.o=bi.R(function(){a.m!==b&&(gf(a,b),a.m=b,a.i=R())},a.nb-(R()-a.i))):(gf(a,b),a.m=b,a.i=R()):gf(a,b)} ;var lp;function mp(){var a=oo.call;lp||(lp=new jp({wr:!0,qr:!0}));a.call(oo,this,{N:{Jc:To,Ba:So,ac:Po,Zc:Qo,Hb:Ro,set:No},L:lp,handleError:Tk,Ca:Uk,ia:np,now:R,zc:gp,Y:Yl(),Db:"publicytnetworkstatus-online",Cb:"publicytnetworkstatus-offline",gb:!0,fb:.1,lb:Nk("potential_esf_error_limit",10),J:M,Ka:!(Zl()&&op())});this.j=new Gh;M("networkless_immediately_drop_all_requests")&&Uo();Jn("LogsDatabaseV2")} u(mp,oo);function pp(){var a=B("yt.networklessRequestController.instance");a||(a=new mp,A("yt.networklessRequestController.instance",a),M("networkless_logging")&&yn().then(function(b){a.H=b;qo(a);a.j.resolve();a.gb&&Math.random()<=a.fb&&a.H&&Yo(a.H);M("networkless_immediately_drop_sw_health_store")&&qp(a)})); return a} mp.prototype.writeThenSend=function(a,b){b||(b={});Zl()||(this.h=!1);oo.prototype.writeThenSend.call(this,a,b)}; mp.prototype.sendThenWrite=function(a,b,c){b||(b={});Zl()||(this.h=!1);oo.prototype.sendThenWrite.call(this,a,b,c)}; mp.prototype.sendAndWrite=function(a,b){b||(b={});Zl()||(this.h=!1);oo.prototype.sendAndWrite.call(this,a,b)}; mp.prototype.awaitInitialization=function(){return this.j.promise}; function qp(a){var b;x(function(c){if(!a.H)throw b=Bm("clearSWHealthLogsDb"),b;return c.return(Zo(a.H).catch(function(d){a.handleError(d)}))})} function np(a,b,c){M("use_cfr_monitor")&&Ep(a,b);if(M("use_request_time_ms_header"))b.headers&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round(R())));else{var d;if(null==(d=b.postParams)?0:d.requestTimeMs)b.postParams.requestTimeMs=Math.round(R())}if(c&&0===Object.keys(b).length){var e=void 0===e?"":e;var f=void 0===f?!1:f;if(a)if(e)vl(a,void 0,"POST",e);else if(L("USE_NET_AJAX_FOR_PING_TRANSPORT",!1))vl(a,void 0,"GET","",void 0,void 0,f);else{b:{try{var g=new bb({url:a});if(g.j&&g.i|| g.l){var h=lc(mc(5,a)),k;if(!(k=!h||!h.endsWith("/aclk"))){var m=a.search(xc),q=wc(a,0,"ri",m);if(0>q)var r=null;else{var w=a.indexOf("&",q);if(0>w||w>m)w=m;r=decodeURIComponent(a.slice(q+3,-1!==w?w:0).replace(/\+/g," "))}k="1"!==r}var t=!k;break b}}catch(E){}t=!1}if(t){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,"")){var y=!0;break b}}catch(E){}y=!1}c=y?!0:!1}else c=!1;c||bp(a)}}else sl(a,b)} function Ep(a,b){var c=b.onError?b.onError:function(){}; b.onError=function(e,f){dp().requestComplete(a,!1);c(e,f)}; var d=b.onSuccess?b.onSuccess:function(){}; b.onSuccess=function(e,f){dp().requestComplete(a,!0);d(e,f)}} function op(){return"www.youtube-nocookie.com"!==nc(document.location.toString())} ;var cq=!1,dq=z.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:cq};A("ytNetworklessLoggingInitializationOptions",dq);function eq(){var a;x(function(b){if(1==b.h)return v(b,yn(),2);a=b.i;if(!a||!Zl()&&!M("nwl_init_require_datasync_id_killswitch")||!op())return b.u(0);cq=!0;dq.isNwlInitialized=cq;return v(b,pp().awaitInitialization(),0)})} ;function fq(a){var b=this;this.config_=null;a?this.config_=a:Wn()&&(this.config_=Xn());Tl(function(){mo(b)},5E3)} fq.prototype.isReady=function(){!this.config_&&Wn()&&(this.config_=Xn());return!!this.config_}; function no(a,b,c,d){function e(y){y=void 0===y?!1:y;var E;if(d.retry&&"www.youtube-nocookie.com"!=h&&(y||M("skip_ls_gel_retry")||"application/json"!==g.headers["Content-Type"]||(E=ko(b,c,m,k)),E)){var F=g.onSuccess,O=g.onFetchSuccess;g.onSuccess=function(N,Q){lo(E);F(N,Q)}; c.onFetchSuccess=function(N,Q){lo(E);O(N,Q)}}try{y&&d.retry&&!d.hc.bypassNetworkless?(g.method="POST",d.hc.writeThenSend?pp().writeThenSend(t,g):pp().sendAndWrite(t,g)):M("web_all_payloads_via_jspb")?sl(t,g):(g.method="POST",g.postParams||(g.postParams={}),sl(t,g))}catch(N){if("InvalidAccessError"==N.name)E&&(lo(E),E=0),Uk(Error("An extension is blocking network request.")); else throw N;}E&&Tl(function(){mo(a)},5E3)} !L("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&Uk(new P("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady()){var f=new P("innertube xhrclient not ready",b,c,d);Tk(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(y,E){if(d.onSuccess)d.onSuccess(E)}, onFetchSuccess:function(y){if(d.onSuccess)d.onSuccess(y)}, onError:function(y,E){if(d.onError)d.onError(E)}, onFetchError:function(y){if(d.onError)d.onError(y)}, timeout:d.timeout,withCredentials:!0};g.headers["Content-Type"]||(g.headers["Content-Type"]="application/json");var h="";(f=a.config_.Vc)&&(h=f);var k=a.config_.Xc||!1,m=go(k,h,d);Object.assign(g.headers,m);(f=g.headers.Authorization)&&!h&&(g.headers["x-origin"]=window.location.origin);var q="/youtubei/"+a.config_.innertubeApiVersion+"/"+b,r={alt:"json"},w=a.config_.Wc&&f;w=w&&f.startsWith("Bearer");w||(r.key=a.config_.innertubeApiKey);var t=fl(""+h+q,r||{},!0);(B("ytNetworklessLoggingInitializationOptions")? dq.isNwlInitialized:cq)?wn().then(function(y){e(y)}):e(!1)} ;var gq=0,hq=Lc?"webkit":Kc?"moz":Ic?"ms":Hc?"o":"";A("ytDomDomGetNextId",B("ytDomDomGetNextId")||function(){return++gq});var iq={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}; function jq(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 iq||(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(e){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.h=a.pageX;this.i=a.pageY}}catch(e){}} function kq(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.h=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.i=a.clientY+b}} jq.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; jq.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; jq.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var ob=z.ytEventsEventsListeners||{};A("ytEventsEventsListeners",ob);var lq=z.ytEventsEventsCounter||{count:0};A("ytEventsEventsCounter",lq); function mq(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 nb(function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,g=Qa(e[4])&&Qa(d)&&tb(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||g)})} var nq=db(function(){var a=!1;try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}}); window.addEventListener("test",null,b)}catch(c){}return a}); function oq(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=mq(a,b,c,d);if(e)return e;e=++lq.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var g=f?function(h){h=new jq(h);if(!qf(h.relatedTarget,function(k){return k==a}))return h.currentTarget=a,h.type=b,c.call(a,h)}:function(h){h=new jq(h); h.currentTarget=a;return c.call(a,h)}; g=Sk(g);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),nq()||"boolean"===typeof d?a.addEventListener(b,g,d):a.addEventListener(b,g,!!d.capture)):a.attachEvent("on"+b,g);ob[e]=[a,b,c,g,d];return e} function pq(a){a&&("string"==typeof a&&(a=[a]),fb(a,function(b){if(b in ob){var c=ob[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?nq()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete ob[b]}}))} ;var qq=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 rq(a){this.F=a;this.i=null;this.m=0;this.s=null;this.o=0;this.j=[];for(a=0;4>a;a++)this.j.push(0);this.l=0;this.K=oq(window,"mousemove",Xa(this.O,this));a=Xa(this.I,this);"function"===typeof a&&(a=Sk(a));this.P=window.setInterval(a,25)} Za(rq,J);rq.prototype.O=function(a){void 0===a.h&&kq(a);var b=a.h;void 0===a.i&&kq(a);this.i=new mf(b,a.i)}; rq.prototype.I=function(){if(this.i){var a=qq();if(0!=this.m){var b=this.s,c=this.i,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.m);this.j[this.l]=.5c;c++)b+=this.j[c]||0;3<=b&&this.F();this.o=d}this.m=a;this.s=this.i;this.l=(this.l+1)%4}}; rq.prototype.C=function(){window.clearInterval(this.P);pq(this.K)};var sq={}; function tq(a){var b=void 0===a?{}:a;a=void 0===b.ed?!1:b.ed;b=void 0===b.Oc?!0:b.Oc;if(null==B("_lact",window)){var c=parseInt(L("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;A("_lact",c,window);A("_fact",c,window);-1==c&&uq();oq(document,"keydown",uq);oq(document,"keyup",uq);oq(document,"mousedown",uq);oq(document,"mouseup",uq);a?oq(window,"touchmove",function(){vq("touchmove",200)},{passive:!0}):(oq(window,"resize",function(){vq("resize",200)}),b&&oq(window,"scroll",function(){vq("scroll",200)})); new rq(function(){vq("mouse",100)}); oq(document,"touchstart",uq,{passive:!0});oq(document,"touchend",uq,{passive:!0})}} function vq(a,b){sq[a]||(sq[a]=!0,bi.R(function(){uq();sq[a]=!1},b))} function uq(){null==B("_lact",window)&&tq();var a=Date.now();A("_lact",a,window);-1==B("_fact",window)&&A("_fact",a,window);(a=B("ytglobal.ytUtilActivityCallback_"))&&a()} function wq(){var a=B("_lact",window);return null==a?-1:Math.max(Date.now()-a,0)} ;var xq=z.ytPubsubPubsubInstance||new K,yq=z.ytPubsubPubsubSubscribedKeys||{},zq=z.ytPubsubPubsubTopicToKeys||{},Aq=z.ytPubsubPubsubIsSynchronous||{};function Bq(a,b){var c=Cq();if(c&&b){var d=c.subscribe(a,function(){var e=arguments;var f=function(){yq[d]&&b.apply&&"function"==typeof b.apply&&b.apply(window,e)}; try{Aq[a]?f():ml(f,0)}catch(g){Tk(g)}},void 0); yq[d]=!0;zq[a]||(zq[a]=[]);zq[a].push(d);return d}return 0} function Dq(a){var b=Cq();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),fb(a,function(c){b.unsubscribeByKey(c);delete yq[c]}))} function Eq(a,b){var c=Cq();c&&c.publish.apply(c,arguments)} function Fq(a){var b=Cq();if(b)if(b.clear(a),a)Gq(a);else for(var c in zq)Gq(c)} function Cq(){return z.ytPubsubPubsubInstance} function Gq(a){zq[a]&&(a=zq[a],fb(a,function(b){yq[b]&&delete yq[b]}),a.length=0)} K.prototype.subscribe=K.prototype.subscribe;K.prototype.unsubscribeByKey=K.prototype.Ga;K.prototype.publish=K.prototype.ra;K.prototype.clear=K.prototype.clear;A("ytPubsubPubsubInstance",xq);A("ytPubsubPubsubTopicToKeys",zq);A("ytPubsubPubsubIsSynchronous",Aq);A("ytPubsubPubsubSubscribedKeys",yq);var Hq=Symbol("injectionDeps");function Iq(a){this.name=a} Iq.prototype.toString=function(){return"InjectionToken("+this.name+")"}; function Jq(){this.key=Kq} function Lq(){this.h=new Map;this.i=new Map} Lq.prototype.resolve=function(a){return a instanceof Jq?Mq(this,a.key,[],!0):Mq(this,a,[])}; function Mq(a,b,c,d){d=void 0===d?!1:d;if(-1=d.length&&Rq(b)===d[0])return d;for(var e=[],f=0;f=a?ar||(ar=nr(function(){or({writeThenSend:!0},M("flush_only_full_queue")?c:void 0,d);ar=void 0},0)):10<=f-g&&(pr(d),d?$q.j=f:Zq.j=f)} function qr(a,b){M("web_all_payloads_via_jspb")&&Uk(new P("transport.logIsolatedGelPayload called in JSPB only experiment"));if("log_event"===a.endpoint){jr(a);var c=kr(a),d=new Map;d.set(c,[a.payload]);b&&(Xq=new b);return new Cf(function(e,f){Xq&&Xq.isReady()?rr(d,Xq,e,f,{bypassNetworkless:!0},!0):e()})}} function sr(a,b){if("log_event"===a.endpoint){jr(void 0,a);var c=kr(a,!0),d=new Map;d.set(c,[a.payload.toJSON()]);b&&(Xq=new b);return new Cf(function(e){Xq&&Xq.isReady()?tr(d,Xq,e,{bypassNetworkless:!0},!0):e()})}} function kr(a,b){var c="";if(a.Ja)c="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(void 0===b?0:b){b=a.cttAuthInfo.token;c=a.cttAuthInfo;var d=new ck;c.videoId?d.setVideoId(c.videoId):c.playlistId&&Xd(d,2,xk,c.playlistId);fr[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),er[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c} function or(a,b,c){a=void 0===a?{}:a;c=void 0===c?!1:c;!c&&M("web_all_payloads_via_jspb")&&Uk(new P("transport.flushLogs called for JSON in JSPB only experiment"));new Cf(function(d,e){c?(ur($q.i),ur($q.h),$q.h=0):(ur(Zq.i),ur(Zq.h),Zq.h=0);if(Xq&&Xq.isReady())if(M("use_new_in_memory_storage")){var f=a,g=c,h=Xq;f=void 0===f?{}:f;g=void 0===g?!1:g;var k=new Map,m=new Map;if(void 0!==b)g?(e=hr().extractMatchingEntries({isJspb:g,cttAuthInfo:b}),k.set(b,e),tr(k,h,d,f)):(k=hr().extractMatchingEntries({isJspb:g, cttAuthInfo:b}),m.set(b,k),rr(m,h,d,e,f));else if(g){e=p(Object.keys(gr));for(g=e.next();!g.done;g=e.next())m=g.value,g=hr().extractMatchingEntries({isJspb:!0,cttAuthInfo:m}),0Wq&&(a=1);Kk("BATCH_CLIENT_COUNTER",a);return a} function vr(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 Br(a,b,c){if(fe(c,1===Yd(c,xk)?1:-1))var d=1;else if(c.getPlaylistId())d=2;else return;G(a,ck,4,c);a=Zd(a,hj,1)||new hj;c=Zd(a,fj,3)||new fj;var e=new ej;D(e,2,b);D(e,1,d);ee(c,12,ej,e);G(a,fj,3,c)} function Ar(a){for(var b=[],c=0;c>3;switch(e&7){case 0:e=bs(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=bs(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 cs(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;da;a++){b=Date.now();for(c=0;c1E5*Math.random()&&(c=new P("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||ms(c)),!0):!1} ;function uu(){var a=["ol"];Zt("").info.actionType="embed";a&&Kk("TIMING_AFT_KEYS",a);Kk("TIMING_ACTION","embed");if(M("web_csi_via_jspb")){a=L("TIMING_INFO",{});var b=new Rj;a=p(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=p(c.value);c=d.next().value;d=d.next().value;switch(c){case "GetBrowse_rid":var e=new Uj;D(e,1,c);D(e,2,String(d));Tj(b,e);break;case "GetGuide_rid":e=new Uj;D(e,1,c);D(e,2,String(d));Tj(b,e);break;case "GetHome_rid":e=new Uj;D(e,1,c);D(e,2,String(d));Tj(b,e); break;case "GetPlayer_rid":e=new Uj;D(e,1,c);D(e,2,String(d));Tj(b,e);break;case "GetSearch_rid":e=new Uj;D(e,1,c);D(e,2,String(d));Tj(b,e);break;case "GetSettings_rid":e=new Uj;D(e,1,c);D(e,2,String(d));Tj(b,e);break;case "GetTrending_rid":e=new Uj;D(e,1,c);D(e,2,String(d));Tj(b,e);break;case "GetWatchNext_rid":e=new Uj;D(e,1,c);D(e,2,String(d));Tj(b,e);break;case "yt_red":D(b,14,!!d);break;case "yt_ad":D(b,9,!!d)}}vu(b);b=new Rj;b=D(b,25,!0);b=D(b,1,W[fu(L("TIMING_ACTION"))]);(a=L("PREVIOUS_ACTION"))&& D(b,13,W[fu(a)]);(a=L("CLIENT_PROTOCOL"))&&D(b,33,a);(a=L("CLIENT_TRANSPORT"))&&D(b,34,a);(a=Es())&&"UNDEFINED_CSN"!==a&&D(b,4,a);a=wu();1!==a&&-1!==a||D(b,6,!0);a=Pt();D(b,3,"cold");xu(a);a=yu();if(0=Nt()&&0c.duration?d:c},{duration:0}))&&0>=8);b[c++]=e}return ad(b,3)} function kv(a,b,c,d){ev.push({Eb:a,payload:c,ma:d,options:b});hv||(hv=Ho())} function Io(a){if(ev){for(var b=p(ev),c=b.next();!c.done;c=b.next())if(c=c.value,M("il_via_jspb")&&c.ma)switch(c.ma.i(a.csn),c.Eb){case "screenCreated":Rr(c.ma,c.options);break;case "visualElementAttached":Sr(c.ma,c.options);break;case "visualElementShown":Nr(c.ma,c.options);break;case "visualElementHidden":Or(c.ma,c.options);break;case "visualElementGestured":Pr(c.ma,c.options);break;case "visualElementStateChanged":Qr(c.ma,c.options);break;default:ms(new P("flushQueue unable to map payloadName to JSPB setter"))}else c.payload&& (c.payload.csn=a.csn,Gr(c.Eb,c.payload,null,c.options));ev.length=0}hv=0} ;function lv(){this.i=new Set;this.h=new Set;this.j=new Map;this.client=fq;this.csn=null} function mv(){lv.h||(lv.h=new lv);return lv.h} lv.prototype.m=function(a){this.client=a}; lv.prototype.clear=function(){this.i.clear();this.h.clear();this.j.clear();this.csn=null};function nv(){this.i=new Set;this.h=new Set;this.j=new Map} nv.prototype.m=function(a){M("use_ts_visibilitylogger")&&mv().m(a)}; nv.prototype.clear=function(){M("use_ts_visibilitylogger")?mv().clear():(this.i.clear(),this.h.clear(),this.j.clear())}; Na(nv);function ov(){this.o=[];this.v=[];this.h=[];this.l=[];this.M=[];this.i=new Set;this.s=new Map} ov.prototype.m=function(a){this.client=a}; function pv(a,b,c){c=void 0===c?0:c;b.then(function(d){a.i.has(c)&&a.j&&a.j();var e=Es(c),f=Cs(c);if(e&&f){var g;(null==d?0:null==(g=d.response)?0:g.trackingParams)&&jv(a.client,e,f,[ys(d.response.trackingParams)]);var h;(null==d?0:null==(h=d.playerResponse)?0:h.trackingParams)&&jv(a.client,e,f,[ys(d.playerResponse.trackingParams)])}})} function qv(a,b,c,d){d=void 0===d?0:d;if(a.i.has(d))a.o.push([b,c]);else{var e=Es(d);c=c||Cs(d);e&&c&&jv(a.client,e,c,[b])}} ov.prototype.clickCommand=function(a,b,c){var d=a.clickTrackingParams;c=void 0===c?0:c;if(d)if(c=Es(void 0===c?0:c)){a=this.client;var e=ys(d);d={cttAuthInfo:Gs(c)||void 0,Z:c};M("il_via_jspb")?(b=new Lj,b.i(c),e=e.getAsJspb(),G(b,Cj,2,e),D(b,4,ak.INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK),"UNDEFINED_CSN"===c?kv("visualElementGestured",d,void 0,b):Pr(b,d,a)):(e={csn:c,ve:e.getAsJson(),gestureType:"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"},b&&(e.clientData=b),"UNDEFINED_CSN"===c?kv("visualElementGestured", d,e):a?Gr("visualElementGestured",e,a,d):lm("visualElementGestured",e,d));b=!0}else b=!1;else b=!1;return b}; ov.prototype.visualElementStateChanged=function(a,b,c){c=void 0===c?0:c;0===c&&this.i.has(c)?this.v.push([a,b]):rv(this,a,b,c)}; function rv(a,b,c,d){d=void 0===d?0:d;var e=Es(d);d=b||Cs(d);e&&d&&(a=a.client,b={cttAuthInfo:Gs(e)||void 0,Z:e},M("il_via_jspb")?(c=new Oj,c.i(e),d=d.getAsJspb(),G(c,Cj,2,d),"UNDEFINED_CSN"===e?kv("visualElementStateChanged",b,void 0,c):Qr(c,b,a)):(c={csn:e,ve:d.getAsJson(),clientData:c},"UNDEFINED_CSN"===e?kv("visualElementStateChanged",b,c):a?Gr("visualElementStateChanged",c,a,b):lm("visualElementStateChanged",c,b)))} function sv(a,b,c){c=void 0===c?{}:c;a.i.add(c.layer||0);a.j=function(){tv(a,b,c);var f=Cs(c.layer);if(f){for(var g=p(a.o),h=g.next();!h.done;h=g.next())h=h.value,qv(a,h[0],h[1]||f,c.layer);f=p(a.v);for(g=f.next();!g.done;g=f.next())g=g.value,rv(a,g[0],g[1])}}; Es(c.layer)||a.j();if(c.Wb)for(var d=p(c.Wb),e=d.next();!e.done;e=d.next())pv(a,e.value,c.layer);else ls(Error("Delayed screen needs a data promise."))} function tv(a,b,c){c=void 0===c?{}:c;c.layer||(c.layer=0);var d=void 0!==c.dd?c.dd:c.layer;var e=Es(d);d=Cs(d);var f;d&&(void 0!==c.parentCsn?f={clientScreenNonce:c.parentCsn,visualElement:d}:e&&"UNDEFINED_CSN"!==e&&(f={clientScreenNonce:e,visualElement:d}));var g,h=L("EVENT_ID");"UNDEFINED_CSN"===e&&h&&(g={servletData:{serializedServletEventId:h}});try{var k=iv(a.client,b,f,c.Vb,c.cttAuthInfo,g,c.sr)}catch(m){os(m,{Cr:b,rootVe:d,zr:void 0,mr:e,yr:f,Vb:c.Vb});ls(m);return}Hs(k,b,c.layer,c.cttAuthInfo); if(b=e&&"UNDEFINED_CSN"!==e&&d){a:{b=p(Object.values(ws));for(f=b.next();!f.done;f=b.next())if(Es(f.value)===e){b=!0;break a}b=!1}b=!b}b&&(b=a.client,g=!0,h=(g=void 0===g?!1:g)?16:8,f={cttAuthInfo:Gs(e)||void 0,Z:e,Xb:g},M("il_via_jspb")?(h=new Mj,h.i(e),d=d.getAsJspb(),G(h,Cj,2,d),D(h,4,g?16:8),"UNDEFINED_CSN"===e?kv("visualElementHidden",f,void 0,h):Or(h,f,b)):(d={csn:e,ve:d.getAsJson(),eventType:h},"UNDEFINED_CSN"===e?kv("visualElementHidden",f,d):b?Gr("visualElementHidden",d,b,f):lm("visualElementHidden", d,f)));a.h[a.h.length-1]&&!a.h[a.h.length-1].csn&&(a.h[a.h.length-1].csn=k||"");Au({clientScreenNonce:k});d=nv.getInstance();M("use_ts_visibilitylogger")?(d=mv(),d.clear(),d.csn=Es()):d.clear();d=Cs(c.layer);e&&"UNDEFINED_CSN"!==e&&d&&(M("web_mark_root_visible")||M("music_web_mark_root_visible"))&&(e=k,k={cttAuthInfo:Gs(e)||void 0,Z:e},M("il_via_jspb")?(b=new Nj,b.i(e),f=d.getAsJspb(),G(b,Cj,2,f),D(b,4,1),"UNDEFINED_CSN"===e?kv("visualElementShown",k,void 0,b):Nr(b,k)):(b={csn:e,ve:d.getAsJson(), eventType:1},"UNDEFINED_CSN"===e?kv("visualElementShown",k,b):lm("visualElementShown",b,k)));a.i.delete(c.layer||0);a.j=void 0;e=p(a.s);for(k=e.next();!k.done;k=e.next())b=p(k.value),k=b.next().value,b=b.next().value,b.has(c.layer)&&d&&qv(a,k,d,c.layer);for(c=0;cf&&(c=a.substring(f,e),c=c.replace(Lv,""),c=c.replace(Mv,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else Ov(a,b,c)} function Ov(a,b,c){c=void 0===c?null:c;var d=Pv(a),e=document.getElementById(d),f=e&&Jv(e,"loaded"),g=e&&!f;f?b&&b():(b&&(f=Bq(d,b),b=""+Ra(b),Qv[b]=f),g||(e=Rv(a,d,function(){Jv(e,"loaded")||(Hv(e),Eq(d),ml(Ya(Fq,d),0))},c)))} function Rv(a,b,c,d){d=void 0===d?null:d;var e=pf("SCRIPT");e.id=b;e.onload=function(){c&&setTimeout(c,0)}; e.onreadystatechange=function(){switch(e.readyState){case "loaded":case "complete":e.onload()}}; d&&e.setAttribute("nonce",d);Lh(e,Ib(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e} function Sv(a){a=Pv(a);var b=document.getElementById(a);b&&(Fq(a),b.parentNode.removeChild(b))} function Tv(a,b){a&&b&&(a=""+Ra(b),(a=Qv[a])&&Dq(a))} function Pv(a){var b=document.createElement("a");ec(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+jc(a)} var Qv={};var Uv=[],Vv=!1;function Wv(){if(!M("disable_biscotti_fetch_for_ad_blocker_detection")&&!M("disable_biscotti_fetch_entirely_for_all_web_clients")&&Ts()){var a=L("PLAYER_VARS",{});if("1"!=sb(a)&&!Vn(a)){var b=function(){Vv=!0;"google_ad_status"in window?Kk("DCLKSTAT",1):Kk("DCLKSTAT",2)}; try{Nv("//static.doubleclick.net/instream/ad_status.js",b)}catch(c){}Uv.push(bi.R(function(){if(!(Vv||"google_ad_status"in window)){try{Tv("//static.doubleclick.net/instream/ad_status.js",b)}catch(c){}Vv=!0;Kk("DCLKSTAT",3)}},5E3))}}} function Xv(){var a=Number(L("DCLKSTAT",0));return isNaN(a)?0:a} ;function Yv(){this.state=1;this.h=null} l=Yv.prototype; l.initialize=function(a,b,c){if(a.program){var d,e=null!=(d=a.interpreterScript)?d:null,f;d=null!=(f=a.interpreterUrl)?f:null;a.interpreterSafeScript&&(e=a.interpreterSafeScript,Cb("From proto message. b/166824318"),e=e.privateDoNotAccessOrElseSafeScriptWrappedValue||"",e=(f=zb())?f.createScript(e):e,e=(new Eb(e)).toString());a.interpreterSafeUrl&&(d=a.interpreterSafeUrl,Cb("From proto message. b/166824318"),d=Ib(d.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue||"").toString());Zv(this,e, d,a.program,b,c)}else ms(Error("Cannot initialize botguard without program"))}; function Zv(a,b,c,d,e,f){var g=void 0===g?"trayride":g;c?(a.state=2,Nv(c,function(){window[g]?$v(a,d,g,e):(a.state=3,Sv(c),ms(new P("Unable to load Botguard","from "+c)))},f)):b?(f=pf("SCRIPT"),f.textContent=b,f.nonce=hc(),document.head.appendChild(f),document.head.removeChild(f),window[g]?$v(a,d,g,e):(a.state=4,ms(new P("Unable to load Botguard from JS")))):ms(new P("Unable to load VM; no url or JS provided"))} function $v(a,b,c,d){a.state=5;try{var e=new Hh({program:b,Tc:c,gd:M("att_web_record_metrics")});e.td.then(function(){a.state=6;d&&d(b)}); a.Ib(e)}catch(f){a.state=7,f instanceof Error&&ms(f)}} l.invoke=function(a){a=void 0===a?{}:a;return this.Jb()?this.yc({Ub:a}):null}; l.dispose=function(){this.Kb()}; l.Kb=function(){this.Ib(null);this.state=8}; l.Jb=function(){return!!this.h}; l.yc=function(a){return this.h.tc(a)}; l.Ib=function(a){ue(this.h);this.h=a};function cw(){var a=B("yt.abuse.playerAttLoader");return a&&["bgvma","bgvmb","bgvmc"].every(function(b){return b in a})?a:null} ;function dw(){Yv.apply(this,arguments)} u(dw,Yv);dw.prototype.Kb=function(){this.state=8}; dw.prototype.Ib=function(a){var b;null==(b=cw())||b.bgvma();a?(b={bgvma:a.dispose.bind(a),bgvmb:a.snapshot.bind(a),bgvmc:a.tc.bind(a)},A("yt.abuse.playerAttLoader",b),A("yt.abuse.playerAttLoaderRun",function(c){return a.snapshot(c)})):(A("yt.abuse.playerAttLoader",null),A("yt.abuse.playerAttLoaderRun",null))}; dw.prototype.Jb=function(){return!!cw()}; dw.prototype.yc=function(a){return cw().bgvmc(a)};var ew=new dw;function fw(){return ew.Jb()} function gw(a){a=void 0===a?{}:a;a=void 0===a?{}:a;return ew.invoke(a)} ;function hw(a){var b=this;var c=void 0===c?0:c;var d=void 0===d?Yl():d;this.l=c;this.j=d;this.i=new Gh;this.h=a;a={};c=p(this.h.entries());for(d=c.next();!d.done;a={Fa:a.Fa,Sa:a.Sa},d=c.next()){var e=p(d.value);d=e.next().value;e=e.next().value;a.Sa=d;a.Fa=e;d=function(f){return function(){f.Fa.Ab();b.h[f.Sa].mb=!0;b.h.every(function(g){return!0===g.mb})&&b.i.resolve()}}(a); e=Ul(d,iw(this,a.Fa));this.h[a.Sa]=Object.assign({},a.Fa,{Ab:d,jobId:e})}} function jw(a){var b=Array.from(a.h.keys()).sort(function(d,e){return iw(a,a.h[e])-iw(a,a.h[d])}); b=p(b);for(var c=b.next();!c.done;c=b.next())c=a.h[c.value],void 0===c.jobId||c.mb||(a.j.ea(c.jobId),Ul(c.Ab,10))} hw.prototype.cancel=function(){for(var a=p(this.h),b=a.next();!b.done;b=a.next())b=b.value,void 0===b.jobId||b.mb||this.j.ea(b.jobId),b.mb=!0;this.i.resolve()}; function iw(a,b){var c;return null!=(c=b.priority)?c:a.l} ;function kw(a){this.state=a;this.plugins=[];this.o=void 0} kw.prototype.install=function(){this.plugins.push.apply(this.plugins,ia(Ja.apply(0,arguments)))}; kw.prototype.uninstall=function(){var a=this;Ja.apply(0,arguments).forEach(function(b){b=a.plugins.indexOf(b);-1>>0);function px(a,b){var c="player",d=!1;d=void 0===d?!0:d;c="string"===typeof c?of(c):c;var e=ox+"_"+Ra(c),f=nx[e];if(f&&d)return qx(a,b)?f.api.loadVideoByPlayerVars(a.args||null):f.loadNewVideoConfig(a),f.api;f=new Vw(c,e,a,b,void 0);nx[e]=f;Eq("player-added",f.api);xe(f,function(){delete nx[f.getId()]}); return f.api} function qx(a,b){return b&&b.serializedExperimentFlags?b.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):a&&a.args&&a.args.fflags?a.args.fflags.includes("web_player_remove_playerproxy=true"):!1} ;var rx=null,sx=null,tx=null;function ux(){vx()} function wx(){vx()} function vx(){var a=rx.getVideoData(1);a=a.title?a.title+" - YouTube":"YouTube";document.title!==a&&(document.title=a)} function xx(){rx&&rx.sendAbandonmentPing&&rx.sendAbandonmentPing();L("PL_ATT")&&ew.dispose();for(var a=bi,b=0,c=Uv.length;bf?d:d.slice(0,f)))if(e&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:Es()},b)),h){var h=parseInt(h,10);isFinite(h)&&0