(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),Ua=0;function Va(a,b,c){return a.call.apply(a.bind,arguments)} function Wa(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 Mb(a,b){this.l=b===Nb?a:""} Mb.prototype.toString=function(){return this.l.toString()}; Mb.prototype.j=!0;Mb.prototype.i=function(){return this.l.toString()}; function Ob(a){if(a instanceof Mb&&a.constructor===Mb)return a.l;Oa(a);return"type_error:SafeUrl"} var Pb=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Nb={},Qb=new Mb("about:invalid#zClosurez",Nb);function Rb(){var a=y.navigator;return a&&(a=a.userAgent)?a:""} function C(a){return-1!=Rb().indexOf(a)} ;function Sb(){return C("Trident")||C("MSIE")} function Tb(){return C("Firefox")||C("FxiOS")} function Ub(){return C("Safari")&&!(Vb()||C("Coast")||C("Opera")||C("Edge")||C("Edg/")||C("OPR")||Tb()||C("Silk")||C("Android"))} function Vb(){return(C("Chrome")||C("CriOS"))&&!C("Edge")||C("Silk")} function Yb(){return C("Android")&&!(Vb()||Tb()||C("Opera")||C("Silk"))} function Zb(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 $b(a){var b=Rb();if("Internet Explorer"===a){if(Sb())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=Zb(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(Vb())return b(["Chrome","CriOS","HeadlessChrome"])}return"Firefox"===a&&Tb()||"Safari"===a&&Ub()||"Android Browser"===a&&Yb()||"Silk"===a&&C("Silk")?(b=c[2])&&b[1]||"":""} function ac(a){a=$b(a);if(""===a)return NaN;a=a.split(".");return 0===a.length?NaN:Number(a[0])} ;var bc={};function cc(a){this.l=bc===bc?a:"";this.j=!0} cc.prototype.i=function(){return this.l.toString()}; cc.prototype.toString=function(){return this.l.toString()};function dc(a,b){b instanceof Mb||b instanceof Mb||(b="object"==typeof b&&b.j?b.i():String(b),Pb.test(b)||(b="about:invalid#zClosurez"),b=new Mb(b,Nb));a.href=Ob(b)} function ec(a,b){a.rel="stylesheet";a.href=Ib(b).toString();(b=fc('style[nonce],link[rel="stylesheet"][nonce]',a.ownerDocument&&a.ownerDocument.defaultView))&&a.setAttribute("nonce",b)} function gc(){return fc("script[nonce]")} var hc=/^[\w+/_-]+[=]{0,2}$/;function fc(a,b){b=(b||y).document;return b.querySelector?(a=b.querySelector(a))&&(a=a.nonce||a.getAttribute("nonce"))&&hc.test(a)?a:"":""} ;function ic(a){for(var b=0,c=0;c>>0;return b} ;var jc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function kc(a){return a?decodeURI(a):a} function lc(a,b){return b.match(jc)[a]||null} function mc(a){return kc(lc(3,a))} function nc(a){var b=a.match(jc);a=b[5];var c=b[6];b=b[7];var d="";a&&(d+=a);c&&(d+="?"+c);b&&(d+="#"+b);return d} function oc(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 pc(a,b,c){if(Array.isArray(b))for(var d=0;dparseFloat(Rc)){Qc=String(Tc);break a}}Qc=Rc}var Uc=Qc,Ic={}; function Vc(){return Hc(function(){for(var a=0,b=Kb(String(Uc)).split("."),c=Kb("9").split("."),d=Math.max(b.length,c.length),e=0;0==a&&ee;e++){var f=c.concat(d[e].split(""));bd[e]=f;for(var g=0;g>2];k=b[(k&3)<<4|m>>4];m=b[(m&15)<<2|h>>6];h=b[h&63];c[e++]=""+g+k+m+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 ed="undefined"!==typeof Uint8Array,fd={};var gd;function hd(a){if(fd!==fd)throw Error("illegal external caller");this.ka=a;if(null!=a&&0===a.length)throw Error("ByteString should be constructed with non-empty values");} hd.prototype.isEmpty=function(){return null==this.ka};var id="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol(void 0):void 0;function jd(a,b){Object.isFrozen(a)||(id?a[id]|=b:void 0!==a.va?a.va|=b:Object.defineProperties(a,{va:{value:b,configurable:!0,writable:!0,enumerable:!1}}))} function kd(a){var b;id?b=a[id]:b=a.va;return null==b?0:b} function ld(a){return Array.isArray(a)?!!(kd(a)&1):!1} function md(a){jd(a,1);return a} function nd(a){return Array.isArray(a)?!!(kd(a)&2):!1} function rd(a){if(!Array.isArray(a))throw Error("cannot mark non-array as immutable");jd(a,2)} function sd(a,b){if(!Array.isArray(a))throw Error("cannot mark non-array as mutable");b?jd(a,8):Object.isFrozen(a)||(id?a[id]&=-9:void 0!==a.va&&(a.va&=-9))} ;function td(a){return nd(a.J)} function ud(a){return null!==a&&"object"===typeof a&&!Array.isArray(a)&&a.constructor===Object} var vd,wd=Object.freeze(md([]));function xd(a){if(td(a))throw Error("Cannot mutate an immutable Message");} var yd="undefined"!=typeof Symbol&&"undefined"!=typeof Symbol.hasInstance;function zd(a){return{value:a,configurable:!1,writable:!1,enumerable:!1}} ;function Ad(a){y.setTimeout(function(){throw a;},0)} ;function Bd(a){return a.displayName||a.name||"unknown type name"} function Cd(a,b){a instanceof b||Ad(Error("Expected instanceof "+Bd(b)+" but got "+(a&&Bd(a.constructor))));return a} function Dd(a,b,c){c=void 0===c?!1:c;if(Array.isArray(a))return new b(a);if(c)return new b} ;function Ed(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "object":if(a&&!Array.isArray(a)){if(ed&&null!=a&&a instanceof Uint8Array)return dd(a);if(a instanceof hd){var b=a.ka;null!=b&&"string"!==typeof b&&(ed&&b instanceof Uint8Array?b=dd(b):(Oa(b),b=null));return null==b?"":a.ka=b}}}return a} ;function Fd(a,b){b=void 0===b?Gd:b;return Hd(a,b)} function Id(a,b){if(null!=a){if(Array.isArray(a))a=Hd(a,b);else if(ud(a)){var c={},d;for(d in a)c[d]=Id(a[d],b);a=c}else a=b(a);return a}} function Hd(a,b){for(var c=a.slice(),d=0;d=a.l?a.j?a.j[b]:void 0:(void 0===c?0:c)&&a.j&&(c=a.j[b],null!=c)?c:a.J[b+a.sa]} function E(a,b,c,d,e){d=void 0===d?!1:d;(void 0===e?0:e)||xd(a);b>>0);function Le(a){if("function"===typeof a)return a;a[Te]||(a[Te]=function(b){return a.handleEvent(b)}); return a[Te]} ;function Ue(){J.call(this);this.o=new De(this);this.tc=this;this.la=null} Za(Ue,J);Ue.prototype[ze]=!0;Ue.prototype.addEventListener=function(a,b,c,d){Je(this,a,b,c,d)}; Ue.prototype.removeEventListener=function(a,b,c,d){Re(this,a,b,c,d)}; function Ve(a,b){var c=a.la;if(c){var d=[];for(var e=1;c;c=c.la)d.push(c),++e}a=a.tc;c=b.type||b;"string"===typeof b?b=new oe(b,a):b instanceof oe?b.target=b.target||a:(e=b,b=new oe(c,a),wb(b,e));e=!0;if(d)for(var f=d.length-1;!b.l&&0<=f;f--){var g=b.i=d[f];e=We(g,c,!0,b)&&e}b.l||(g=b.i=a,e=We(g,c,!0,b)&&e,b.l||(e=We(g,c,!1,b)&&e));if(d)for(f=0;!b.l&&fa.j&&(a.j++,b.next=a.i,a.i=b)} ;function Ze(a,b){return a+Math.random()*(b-a)} ;function $e(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0} l=$e.prototype;l.clone=function(){return new $e(this.x,this.y)}; l.equals=function(a){return a instanceof $e&&(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 af(a,b){this.width=a;this.height=b} l=af.prototype;l.clone=function(){return new af(this.width,this.height)}; l.aspectRatio=function(){return this.width/this.height}; l.isEmpty=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 bf(a){var b=document;return"string"===typeof a?b.getElementById(a):a} function cf(a){var b=document;a=String(a);"application/xhtml+xml"===b.contentType&&(a=a.toLowerCase());return b.createElement(a)} function df(a,b){for(var c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null} ;var ef;function ff(){var a=y.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!C("Presto")&&(a=function(){var e=cf("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&&!Sb()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.Jb;c.Jb=null;e()}}; return function(e){d.next={Jb:e};d=d.next;b.port2.postMessage(0)}}return function(e){y.setTimeout(e,0)}} ;function gf(){this.j=this.i=null} gf.prototype.add=function(a,b){var c=hf.get();c.set(a,b);this.j?this.j.next=c:this.i=c;this.j=c}; gf.prototype.remove=function(){var a=null;this.i&&(a=this.i,this.i=this.i.next,this.i||(this.j=null),a.next=null);return a}; var hf=new Xe(function(){return new jf},function(a){return a.reset()}); function jf(){this.next=this.scope=this.i=null} jf.prototype.set=function(a,b){this.i=a;this.scope=b;this.next=null}; jf.prototype.reset=function(){this.next=this.scope=this.i=null};var kf,lf=!1,mf=new gf;function nf(a,b){kf||of();lf||(kf(),lf=!0);mf.add(a,b)} function of(){if(y.Promise&&y.Promise.resolve){var a=y.Promise.resolve(void 0);kf=function(){a.then(pf)}}else kf=function(){var b=pf; "function"!==typeof y.setImmediate||y.Window&&y.Window.prototype&&!C("Edge")&&y.Window.prototype.setImmediate==y.setImmediate?(ef||(ef=ff()),ef(b)):y.setImmediate(b)}} function pf(){for(var a;a=mf.remove();){try{a.i.call(a.scope)}catch(b){Ad(b)}Ye(hf,a)}lf=!1} ;function qf(a){this.i=0;this.C=void 0;this.o=this.j=this.l=null;this.m=this.s=!1;if(a!=cb)try{var b=this;a.call(void 0,function(c){rf(b,2,c)},function(c){rf(b,3,c)})}catch(c){rf(this,3,c)}} function sf(){this.next=this.context=this.onRejected=this.j=this.i=null;this.l=!1} sf.prototype.reset=function(){this.context=this.onRejected=this.j=this.i=null;this.l=!1}; var tf=new Xe(function(){return new sf},function(a){a.reset()}); function uf(a,b,c){var d=tf.get();d.j=a;d.onRejected=b;d.context=c;return d} function vf(a){return new qf(function(b,c){c(a)})} qf.prototype.then=function(a,b,c){return wf(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)}; qf.prototype.$goog_Thenable=!0;l=qf.prototype;l.gb=function(a,b){return wf(this,null,a,b)}; l.catch=qf.prototype.gb;l.cancel=function(a){if(0==this.i){var b=new xf(a);nf(function(){yf(this,b)},this)}}; function yf(a,b){if(0==a.i)if(a.l){var c=a.l;if(c.j){for(var d=0,e=null,f=null,g=c.j;g&&(g.l||(d++,g.i==a&&(e=g),!(e&&1=a.o&&a.ib()} l.ib=function(){var a=this.i.values();a=[].concat(ia(a)).filter(function(b){return b.ya.size}); a.length&&this.C.flush(a,this.m);Mf(a);this.l=0;this.j.enabled&&this.j.stop()}; l.xc=function(a){var b=Ja.apply(1,arguments);this.i.has(a)||this.i.set(a,new ie(a,b))}; l.Hb=function(a){var b=Ja.apply(1,arguments);this.i.has(a)||this.i.set(a,new je(a,b))}; function Nf(a,b){return a.s.has(b)?void 0:a.i.get(b)} l.Cb=function(a){this.qc.apply(this,[a,1].concat(ia(Ja.apply(1,arguments))))}; l.qc=function(a,b){var c=Ja.apply(2,arguments),d=Nf(this,a);d&&d instanceof ie&&(d.l(b,c),Lf(this))}; l.hb=function(a,b){var c=Ja.apply(2,arguments),d=Nf(this,a);d&&d instanceof je&&(d.l(b,c),Lf(this))}; function Mf(a){for(var b=0;bu;u+=4)x[u/4]=t[u]<<24|t[u+1]<<16|t[u+2]<<8|t[u+3];for(u=16;80>u;u++)t=x[u-3]^x[u-8]^x[u-14]^x[u-16],x[u]=(t<<1|t>>>31)&4294967295;t=e[0];var A=e[1],D=e[2],F=e[3],N=e[4];for(u=0;80>u;u++){if(40>u)if(20>u){var O=F^A&(D^F);var Q=1518500249}else O=A^D^F,Q=1859775393;else 60>u?(O=A&D|F&(A|D),Q=2400959708):(O=A^D^F,Q=3395469782);O=((t<<5|t>>>27)&4294967295)+O+N+Q+x[u]&4294967295;N=F;F=D;D=(A<<30|A>>>2)&4294967295;A=t;t=O}e[0]=e[0]+t&4294967295;e[1]=e[1]+A&4294967295;e[2]= e[2]+D&4294967295;e[3]=e[3]+F&4294967295;e[4]=e[4]+N&4294967295} function c(t,x){if("string"===typeof t){t=unescape(encodeURIComponent(t));for(var u=[],A=0,D=t.length;Am?c(h,56-m):c(h,64-(m-56));for(var u=63;56<=u;u--)f[u]=x&255,x>>>=8;b(f);for(u=x=0;5>u;u++)for(var A=24;0<=A;A-=8)t[x++]=e[u]>>A&255;return t} 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,Dc:function(){for(var t=d(),x="",u=0;uh?"":0==h?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*h)).toUTCString();this.i.cookie=a+"="+b+c+g+h+d+(null!=e?";samesite="+ e:"")}; l.get=function(a,b){for(var c=a+"=",d=(this.i.cookie||"").split(";"),e=0,f;ea.vc()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.T} function hh(a,b){a.s=new pg(1>b?1:b);If(a.j,a.s.getValue())} ch.prototype.log=function(a){a=a.clone();var b=this.uc++;E(a,21,b);this.P&&E(a,26,this.P);if(!Ld(a,1)){b=a;var c=Date.now().toString();E(b,1,c)}null!=Ld(a,15)||E(a,15,60*(new Date).getTimezoneOffset());this.m&&(b=this.m.clone(),G(a,ng,16,b));for(;1E3<=this.l.length;)this.l.shift(),++this.B;this.l.push(a);Ve(this,new ih(a));this.X||this.j.enabled||this.j.start()}; ch.prototype.flush=function(a,b){var c=this;if(0===this.l.length)a&&a();else if(this.ea)jh(this);else{var d=Date.now();if(this.Gb>d&&this.rau||401===u||0===u);A&&(c.l=D.concat(c.l),c.X||c.j.enabled||c.j.start());b&&b("net-send-failed",u)},x=function(){c.Pa?c.Pa.send(m,q,t):c.sc(m,q,t)}; k?k.then(function(u){m.yb["Content-Encoding"]="gzip";m.yb["Content-Type"]="application/binary";m.body=u;m.zc=2;x()},function(){x()}):x()}}}}; ch.prototype.Y=function(){this.flush()}; function jh(a){lh(a,function(b,c){b=xc(b,"format","json");b=window.navigator.sendBeacon(b,Zd(c));a.ea&&!b&&(a.ea=!1);return b})} function lh(a,b){if(0!==a.l.length){var c=Bc(gh(a),"format");c=sc(c,"auth",a.Eb(),"authuser",a.K||"0");for(var d=0;10>d&&a.l.length;++d){var e=a.l.slice(0,32),f=kh(a.v,e,a.B);if(!b(c,f))break;a.B=0;a.l=a.l.slice(e.length)}a.j.enabled&&a.j.stop()}} function ih(){oe.call(this,"event-logged",void 0)} r(ih,oe);function dh(a,b){this.j=b=void 0===b?!1:b;this.uach=this.locale=null;this.i=new Xg;E(this.i,2,a);b||(this.locale=document.documentElement.getAttribute("lang"));eh(this,new Ug)} function eh(a,b){G(a.i,Ug,1,b);Ld(b,1)||E(b,1,1);a.j||(b=mh(a),Ld(b,5)||E(b,5,a.locale));a.uach&&(b=mh(a),Rd(b,Rg,9)||G(b,Rg,9,a.uach))} function nh(a,b){var c=void 0===c?Tg:c;b(window,c).then(function(d){a.uach=d;d=mh(a);G(d,Rg,9,a.uach);return!0}).catch(function(){return!1})} function mh(a){a=Rd(a.i,Ug,1);var b=Rd(a,Qg,11);b||(b=new Qg,G(a,Qg,11,b));return b} function kh(a,b,c){c=void 0===c?0:c;a=a.i.clone();var d=Date.now().toString();a=E(a,4,d);b=Vd(a,Vg,3,b);c&&E(b,14,c);return b} ;function oh(a,b,c){Fg(a.url,function(d){d=d.target;if(Pg(d)){try{var e=d.A?d.A.responseText:""}catch(f){e=""}b(e)}else c(d.getStatus())},a.requestType,a.body,a.yb,a.timeoutMillis,a.withCredentials)} ;function ph(){this.l="https://play.google.com/log?format=json&hasfast=true";this.o=!1;this.s=oh;this.i=""} ;function qh(){var a=void 0===a?"":a;var b=void 0===b?!1:b;var c=void 0===c?"":c;var d=new ph;d.i="";""!=a&&(d.l=a);b&&(d.o=!0);c&&(d.j=c);a=new ch(1828,d.G?d.G:mg,"0",d.s,d.l,d.o,!1,d.R,void 0,void 0,d.C?d.C:void 0);d.v&&eh(a.v,d.v);d.j&&(b=d.j,c=mh(a.v),E(c,7,b));d.m&&(a.G=d.m);d.i&&(a.P=d.i);d.N&&((b=d.N)?(a.m||(a.m=new ng),b=Zd(b),E(a.m,4,b)):a.m&&E(a.m,4,void 0,!1));d.K&&(b=d.K,a.m||(a.m=new ng),Od(a.m,2,b));d.B&&(b=d.B,a.Qa=!0,hh(a,b));d.P&&nh(a.v,d.P);this.i=a} qh.prototype.flush=function(a){var b=a||[];if(b.length){a=new Zf;for(var c=[],d=0;da&&Number.isInteger(a)&&this.data_[a]!==b&&(this.data_[a]=b,this.i=-1)}; Qh.prototype.get=function(a){return!!this.data_[a]}; function Rh(a){-1===a.i&&(a.i=ib(a.data_,function(b,c,d){return c?b+Math.pow(2,d):b},0)); return a.i} ;function Sh(a,b){this.i=a[y.Symbol.iterator]();this.j=b} Sh.prototype[Symbol.iterator]=function(){return this}; Sh.prototype.next=function(){var a=this.i.next();return{value:a.done?void 0:this.j.call(void 0,a.value),done:a.done}}; function Th(a,b){return new Sh(a,b)} ;function Uh(){this.blockSize=-1} ;function Vh(){this.blockSize=-1;this.blockSize=64;this.i=[];this.m=[];this.s=[];this.l=[];this.l[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.i[0];c=a.i[1];var g=a.i[2],h=a.i[3],k=a.i[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.i[0]=a.i[0]+b&4294967295;a.i[1]=a.i[1]+c&4294967295;a.i[2]=a.i[2]+g&4294967295;a.i[3]=a.i[3]+h&4294967295;a.i[4]=a.i[4]+k&4294967295} Vh.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.j;dthis.j?this.update(this.l,56-this.j):this.update(this.l,this.blockSize-(this.j-56));for(var c=this.blockSize-1;56<=c;c--)this.m[c]=b&255,b/=256;Wh(this,this.m);for(c=b=0;5>c;c++)for(var d=24;0<=d;d-=8)a[b]=this.i[c]>>d&255,++b;return a};function Xh(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""} function Yh(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)} function Zh(a,b){a.classList?b=a.classList.contains(b):(a=a.classList?a.classList:Xh(a).match(/\S+/g)||[],b=0<=eb(a,b));return b} function $h(){var a=document.body;a.classList?a.classList.remove("inverted-hdpi"):Zh(a,"inverted-hdpi")&&Yh(a,Array.prototype.filter.call(a.classList?a.classList:Xh(a).match(/\S+/g)||[],function(b){return"inverted-hdpi"!=b}).join(" "))} ;function ai(){} ai.prototype.next=function(){return bi}; var bi={done:!0,value:void 0};function ci(a){return{value:a,done:!1}} ai.prototype.fa=function(){return this};function di(a){if(a instanceof ei||a instanceof fi||a instanceof gi)return a;if("function"==typeof a.next)return new ei(function(){return a}); if("function"==typeof a[Symbol.iterator])return new ei(function(){return a[Symbol.iterator]()}); if("function"==typeof a.fa)return new ei(function(){return a.fa()}); throw Error("Not an iterator or iterable.");} function ei(a){this.j=a} ei.prototype.fa=function(){return new fi(this.j())}; ei.prototype[Symbol.iterator]=function(){return new gi(this.j())}; ei.prototype.i=function(){return new gi(this.j())}; function fi(a){this.j=a} r(fi,ai);fi.prototype.next=function(){return this.j.next()}; fi.prototype[Symbol.iterator]=function(){return new gi(this.j)}; fi.prototype.i=function(){return new gi(this.j)}; function gi(a){ei.call(this,function(){return a}); this.l=a} r(gi,ei);gi.prototype.next=function(){return this.l.next()};function hi(a,b){this.j={};this.i=[];this.oa=this.size=0;var c=arguments.length;if(12*this.size&&ii(this),!0):!1}; function ii(a){if(a.size!=a.i.length){for(var b=0,c=0;b=d.i.length)return bi;var f=d.i[b++];return ci(a?f:d.j[f])}; return e}; function ji(a,b){return Object.prototype.hasOwnProperty.call(a,b)} ;function K(a){J.call(this);this.s=1;this.o=[];this.m=0;this.j=[];this.l={};this.v=!!a} Za(K,J);l=K.prototype;l.subscribe=function(a,b,c){var d=this.l[a];d||(d=this.l[a]=[]);var e=this.s;this.j[e]=a;this.j[e+1]=b;this.j[e+2]=c;this.s=e+3;d.push(e);return e}; function li(a,b,c,d){if(b=a.l[b]){var e=a.j;(b=b.find(function(f){return e[f+1]==c&&e[f+2]==d}))&&a.Ea(b)}} l.Ea=function(a){var b=this.j[a];if(b){var c=this.l[b];0!=this.m?(this.o.push(a),this.j[a+1]=function(){}):(c&&kb(c,a),delete this.j[a],delete this.j[a+1],delete this.j[a+2])}return!!b}; l.qa=function(a,b){var c=this.l[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;eDate.now())ri.prototype.remove.call(this,a);else return b}};function si(){} ;function ti(){} Za(ti,si);ti.prototype[Symbol.iterator]=function(){return di(this.fa(!0)).i()}; ti.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 ui(a){this.i=a} Za(ui,ti);l=ui.prototype;l.isAvailable=function(){if(!this.i)return!1;try{return this.i.setItem("__sak","1"),this.i.removeItem("__sak"),!0}catch(a){return!1}}; l.set=function(a,b){try{this.i.setItem(a,b)}catch(c){if(0==this.i.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}}; l.get=function(a){a=this.i.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; l.remove=function(a){this.i.removeItem(a)}; l.fa=function(a){var b=0,c=this.i,d=new ai;d.next=function(){if(b>=c.length)return bi;var e=c.key(b++);if(a)return ci(e);e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return ci(e)}; return d}; l.clear=function(){this.i.clear()}; l.key=function(a){return this.i.key(a)};function vi(){var a=null;try{a=window.localStorage||null}catch(b){}this.i=a} Za(vi,ui);function wi(a,b){this.j=a;this.i=null;var c;if(c=Kc)c=!(9<=Number(Yc));if(c){xi||(xi=new hi);this.i=xi.get(a);this.i||(b?this.i=document.getElementById(b):(this.i=document.createElement("userdata"),this.i.addBehavior("#default#userData"),document.body.appendChild(this.i)),xi.set(a,this.i));try{this.i.load(this.j)}catch(d){this.i=null}}} Za(wi,ti);var yi={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},xi=null;function zi(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return yi[b]})} l=wi.prototype;l.isAvailable=function(){return!!this.i}; l.set=function(a,b){this.i.setAttribute(zi(a),b);Ai(this)}; l.get=function(a){a=this.i.getAttribute(zi(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; l.remove=function(a){this.i.removeAttribute(zi(a));Ai(this)}; l.fa=function(a){var b=0,c=this.i.XMLDocument.documentElement.attributes,d=new ai;d.next=function(){if(b>=c.length)return bi;var e=c[b++];if(a)return ci(decodeURIComponent(e.nodeName.replace(/\./g,"%")).slice(1));e=e.nodeValue;if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return ci(e)}; return d}; l.clear=function(){for(var a=this.i.XMLDocument.documentElement,b=a.attributes.length;0k.status,x=500<=k.status&&600>k.status;if(m||t||x)q=al(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||{};t=b.context||y;m?b.onSuccess&&b.onSuccess.call(t,k,q):b.onError&&b.onError.call(t,k,q);b.onFinish&&b.onFinish.call(t,k,q)}},b.method, d,b.headers,b.responseType,b.withCredentials); d=b.timeout||0;if(b.onTimeout&&0Math.round(P())-d.requestTime)){var e=d.authState,f=Fl(El(!1));sb(e,f)&&(e=d.request,"requestTimeMs"in e&&(e.requestTimeMs=Math.round(P())),Nl(a,d.method,e,{}));delete b[c]}}Jl().set("requests",b,86400,!0)}} ;function Ol(){} function Pl(a,b){return Ql(a,0,b)} Ol.prototype.S=function(a,b){return Ql(a,1,b)}; function Rl(a,b){Ql(a,2,b)} function Sl(a){var b=B("yt.scheduler.instance.addImmediateJob");b?b(a):a()} ;function Tl(){Ol.apply(this,arguments)} r(Tl,Ol);function Ul(){Tl.i||(Tl.i=new Tl);return Tl.i} function Ql(a,b,c){void 0!==c&&Number.isNaN(Number(c))&&(c=void 0);var d=B("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):Qk(a,c||0)} Tl.prototype.aa=function(a){if(void 0===a||!Number.isNaN(Number(a))){var b=B("yt.scheduler.instance.cancelJob");b?b(a):Rk(a)}}; Tl.prototype.start=function(){var a=B("yt.scheduler.instance.start");a&&a()}; Tl.prototype.pause=function(){var a=B("yt.scheduler.instance.pause");a&&a()};var Nh=Ul();var Vl=Zc||$c;function Wl(a){var b=Rb();return b?0<=b.toLowerCase().indexOf(a):!1} ;var Xl=function(){var a;return function(){a||(a=new Gl("ytidb"));return a}}(); function Yl(){var a;return null==(a=Xl())?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)} ;var Zl=[],$l,am=!1;function bm(){var a={};for($l=new cm(void 0===a.handleError?dm:a.handleError,void 0===a.logEvent?em:a.logEvent);0=f)Pm(a,k,u,g,A,b.join(),e),h=A;F.u(2);break;case 3:return F.return(Promise.reject(h))}})} function Pm(a,b,c,d,e,f,g){b=c-b;e?(e instanceof rm&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&gm("QUOTA_EXCEEDED",{dbName:km(a.i.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:g.mode}),e instanceof rm&&"UNKNOWN_ABORT"===e.type&&(c-=a.l,0>c&&c>=Math.pow(2,31)&&(c=0),gm("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.j=!0),Qm(a,!1,d,f,b,g.tag),fm(e)):Qm(a,!0,d,f,b,g.tag)} function Qm(a,b,c,d,e,f){gm("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.j,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})} l.getName=function(){return this.i.name}; function Lm(a){this.i=a} l=Lm.prototype;l.add=function(a,b){return Gm(this.i.add(a,b))}; l.autoIncrement=function(){return this.i.autoIncrement}; l.clear=function(){return Gm(this.i.clear()).then(function(){})}; l.count=function(a){return Gm(this.i.count(a))}; function Rm(a,b){return Sm(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})} l.delete=function(a){return a instanceof IDBKeyRange?Rm(this,a):Gm(this.i.delete(a))}; l.get=function(a){return Gm(this.i.get(a))}; l.index=function(a){try{return new Tm(this.i.index(a))}catch(b){if(b instanceof Error&&"NotFoundError"===b.name)throw new tm(a,this.i.name);throw b;}}; l.getName=function(){return this.i.name}; l.keyPath=function(){return this.i.keyPath}; function Sm(a,b,c){a=a.i.openCursor(b.query,b.direction);return Um(a).then(function(d){return Hm(d,c)})} function Nm(a){var b=this;this.i=a;this.l=new Map;this.j=!1;this.done=new Promise(function(c,d){b.i.addEventListener("complete",function(){c()}); b.i.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.i.error)}); b.i.addEventListener("abort",function(){var e=b.i.error;if(e)d(e);else if(!b.j){e=rm;for(var f=b.i.objectStoreNames,g=[],h=0;h=F},D); D.done.catch(function(F){e(F)})}catch(F){e(F)}}); g.addEventListener("success",function(){var u=g.result;k&&u.addEventListener("versionchange",function(){k(f())}); u.addEventListener("close",function(){gm("IDB_UNEXPECTEDLY_CLOSED",{dbName:km(a),dbVersion:u.version});m&&m()}); d(f())}); g.addEventListener("error",function(){e(g.error)}); h&&g.addEventListener("blocked",function(){h()})})} function Ym(a,b,c){c=void 0===c?{}:c;return Xm(a,b,c)} function Zm(a,b){b=void 0===b?{}:b;var c,d,e,f;return w(function(g){if(1==g.i)return va(g,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),v(g,Fm(c),4); if(2!=g.i)return wa(g,0);f=xa(g);throw vm(f,a,"",-1);})} ;function $m(a){return new Promise(function(b){Rl(function(){b()},a)})} function an(a,b){this.name=a;this.options=b;this.o=!0;this.s=this.m=0;this.j=500} an.prototype.l=function(a,b,c){c=void 0===c?{}:c;return Ym(a,b,c)}; an.prototype.delete=function(a){a=void 0===a?{}:a;return Zm(this.name,a)}; function bn(a,b){return new rm("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})} function cn(a,b){if(!b)throw wm("openWithToken",km(a.name));return dn(a)} function dn(a){function b(){var f,g,h,k,m,q,t,x,u,A;return w(function(D){switch(D.i){case 1:return g=null!=(f=Error().stack)?f:"",va(D,2),v(D,a.l(a.name,a.options.version,d),4);case 4:h=D.j;for(var F=a.options,N=[],O=p(Object.keys(F.Ja)),Q=O.next();!Q.done;Q=O.next()){Q=Q.value;var ba=F.Ja[Q],ca=void 0===ba.Vc?Number.MAX_VALUE:ba.Vc;!(h.i.version>=ba.jb)||h.i.version>=ca||h.i.objectStoreNames.contains(Q)||N.push(Q)}k=N;if(0===k.length){D.u(5);break}m=Object.keys(a.options.Ja);q=h.objectStoreNames(); if(a.sa.options.version+1)throw x.close(), a.o=!1,bn(a,u);return D.return(x);case 10:throw c(),t instanceof Error&&!M("ytidb_async_stack_killswitch")&&(t.stack=t.stack+"\n"+g.substring(g.indexOf("\n")+1)),vm(t,a.name,"",null!=(A=a.options.version)?A:-1);}})} function c(){a.i===e&&(a.i=void 0)} if(!a.o)throw bn(a);if(a.i)return a.i;var d={blocking:function(f){f.close()}, closed:c,nd:c,upgrade:a.options.upgrade};var e=b();a.i=e;return a.i} ;var en=new an("YtIdbMeta",{Ja:{databases:{jb:1}},upgrade:function(a,b){b(1)&&Km(a,"databases",{keyPath:"actualName"})}}); function fn(a,b){var c;return w(function(d){if(1==d.i)return v(d,cn(en,b),2);c=d.j;return d.return(Jm(c,["databases"],{U:!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 Gm(f.i.put(a,void 0)).then(function(){})})}))})} function gn(a,b){var c;return w(function(d){if(1==d.i)return a?v(d,cn(en,b),2):d.return();c=d.j;return d.return(c.delete("databases",a))})} function hn(a,b){var c,d;return w(function(e){return 1==e.i?(c=[],v(e,cn(en,b),2)):3!=e.i?(d=e.j,v(e,Jm(d,["databases"],{U:!0,mode:"readonly"},function(f){c.length=0;return Sm(f.objectStore("databases"),{},function(g){a(g.getValue())&&c.push(g.getValue());return g.continue()})}),3)):e.return(c)})} function jn(a){return hn(function(b){return"LogsDatabaseV2"===b.publicName&&void 0!==b.userIdentifier},a)} function kn(a,b,c){return hn(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 ln(a){var b,c;return w(function(d){if(1==d.i)return b=im("YtIdbMeta hasAnyMeta other"),v(d,hn(function(e){return void 0!==e.userIdentifier&&e.userIdentifier!==b},a),2); c=d.j;return d.return(0a.cb)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 Gn(a){if(!En(a))throw wm("retryQueuedRequests");a.O.Tb("QUEUED",a.H).then(function(b){b&&!Jn(a,b,a.dc)?a.ba.S(function(){return w(function(c){if(1==c.i)return void 0===b.id?c.u(2):v(c,a.O.zb(b.id,a.H),2);Gn(a);c.i=0})}):a.M.L()&&a.Ma()})} function In(a,b){a.pc&&!a.M.L()?a.pc(b):a.handleError(b)} function En(a){return!!a.H||a.Sa} function Ln(a){var b;return(a=null==a?void 0:null==(b=a.error)?void 0:b.code)&&400<=a&&599>=a?!1:!0} ;function Mn(a,b){this.version=a;this.args=b} ;function Nn(a,b){this.topic=a;this.i=b} Nn.prototype.toString=function(){return this.topic};var On=B("ytPubsub2Pubsub2Instance")||new K;K.prototype.subscribe=K.prototype.subscribe;K.prototype.unsubscribeByKey=K.prototype.Ea;K.prototype.publish=K.prototype.qa;K.prototype.clear=K.prototype.clear;z("ytPubsub2Pubsub2Instance",On);var Pn=B("ytPubsub2Pubsub2SubscribedKeys")||{};z("ytPubsub2Pubsub2SubscribedKeys",Pn);var Qn=B("ytPubsub2Pubsub2TopicToKeys")||{};z("ytPubsub2Pubsub2TopicToKeys",Qn);var Rn=B("ytPubsub2Pubsub2IsAsync")||{};z("ytPubsub2Pubsub2IsAsync",Rn); z("ytPubsub2Pubsub2SkipSubKey",null);function Sn(a,b){var c=Tn();c&&c.publish.call(c,a.toString(),a,b)} function Un(a){var b=Vn,c=Tn();if(!c)return 0;var d=c.subscribe(b.toString(),function(e,f){var g=B("ytPubsub2Pubsub2SkipSubKey");g&&g==d||(g=function(){if(Pn[d])try{if(f&&b instanceof Nn&&b!=e)try{var h=b.i,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 t=q.construct; var x=k.args,u=x.length;if(0=Math.random()&&Sn("nwl_transaction_latency_payload",a)} ;var no={},oo=ao("ServiceWorkerLogsDatabase",{Ja:(no.SWHealthLog={jb:1},no),Ab:!0,upgrade:function(a,b){b(1)&&Km(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}).i.createIndex("swHealthNewRequest",["interface","timestamp"],{unique:!1})}, version:1});function po(a){return cn(oo(),a)} function qo(a){var b,c;return w(function(d){if(1==d.i)return v(d,po(a),2);b=d.j;c=P()-2592E6;return v(d,Jm(b,["SWHealthLog"],{mode:"readwrite",U:!0},function(e){return Sm(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})} function ro(a){var b;return w(function(c){if(1==c.i)return v(c,po(a),2);b=c.j;return v(c,b.clear("SWHealthLog"),0)})} ;var so={},to=0; function uo(a){var b=void 0===b?"":b;var c=void 0===c?!1:c;if(a)if(b)$k(a,void 0,"POST",b);else if(L("USE_NET_AJAX_FOR_PING_TRANSPORT",!1))$k(a,void 0,"GET","",void 0,void 0,c);else{b:{try{var d=new bb({url:a});if(d.l&&d.j||d.o){var e=kc(lc(5,a)),f;if(!(f=!e||!e.endsWith("/aclk"))){var g=a.search(zc),h=yc(a,0,"ri",g);if(0>h)var k=null;else{var m=a.indexOf("&",h);if(0>m||m>g)m=g;k=decodeURIComponent(a.slice(h+3,-1!==m?m:0).replace(/\+/g," "))}f="1"!==k}var q=!f;break b}}catch(x){}q=!1}if(q){b:{try{if(window.navigator&& window.navigator.sendBeacon&&window.navigator.sendBeacon(a,"")){var t=!0;break b}}catch(x){}t=!1}b=t?!0:!1}else b=!1;b||vo(a)}} function vo(a){var b=new Image,c=""+to++;so[c]=b;b.onload=b.onerror=function(){delete so[c]}; b.src=a} ;function wo(){this.i=new Map;this.j=!1} function xo(){if(!wo.i){var a=B("yt.networkRequestMonitor.instance")||new wo;z("yt.networkRequestMonitor.instance",a);wo.i=a}return wo.i} wo.prototype.requestComplete=function(a,b){b&&(this.j=!0);a=this.removeParams(a);this.i.get(a)||this.i.set(a,b)}; wo.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.i.get(a))?!1:!1===a&&this.j?!0:null}; wo.prototype.removeParams=function(a){return a.split("?")[0]}; wo.prototype.removeParams=wo.prototype.removeParams;wo.prototype.isEndpointCFR=wo.prototype.isEndpointCFR;wo.prototype.requestComplete=wo.prototype.requestComplete;wo.getInstance=xo;var yo;function zo(){yo||(yo=new Gl("yt.offline"));return yo} function Ao(a){if(M("offline_error_handling")){var b=zo().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);zo().set("errors",b,2592E3,!0)}} function Bo(){if(M("offline_error_handling")){var a=zo().get("errors",!0);if(a){for(var b in a)if(a[b]){var c=new R(b,"sent via offline_errors");c.name=a[b].name;c.stack=a[b].stack;c.level=a[b].level;wk(c)}zo().set("errors",{},2592E3,!0)}}} ;var Co=qk("network_polling_interval",3E4);function Do(){Ue.call(this);var a=this;this.G=0;this.v=this.m=!1;this.l=this.rb();M("use_shared_nsm")?(this.j=Mh(),M("use_shared_nsm_and_keep_yt_online_updated")&&(this.j.W("networkstatus-online",function(){a.l=!0;a.v&&Bo()}),this.j.W("networkstatus-offline",function(){a.l=!1}))):(Eo(this),Fo(this))} r(Do,Ue);function Go(){if(!Do.i){var a=B("yt.networkStatusManager.instance")||new Do;z("yt.networkStatusManager.instance",a);Do.i=a}return Do.i} l=Do.prototype;l.L=function(){if(M("use_shared_nsm")&&this.j){var a;return null==(a=this.j)?void 0:a.L()}return this.l}; l.ha=function(a){if(M("use_shared_nsm")&&this.j){var b;null!=(b=this.j)&&(b.j=a)}else a!==this.l&&(this.l=a)}; l.Oc=function(a){!M("use_shared_nsm")&&(this.m=!0,void 0===a?0:a)&&(this.G||Ho(this))}; l.rb=function(){var a=window.navigator.onLine;return void 0===a?!0:a}; l.Ec=function(){this.v=!0}; l.W=function(a,b){return M("use_shared_nsm")&&this.j?this.j.W(a,b):Ue.prototype.W.call(this,a,b)}; function Fo(a){window.addEventListener("online",function(){return w(function(b){if(1==b.i)return v(b,a.ja(),2);a.v&&Bo();b.i=0})})} function Eo(a){window.addEventListener("offline",function(){return w(function(b){return v(b,a.ja(),0)})})} function Ho(a){a.G=Pl(function(){return w(function(b){if(1==b.i)return a.l?a.rb()||!a.m?b.u(3):v(b,a.ja(),3):v(b,a.ja(),3);Ho(a);b.i=0})},Co)} l.ja=function(a){var b=this;if(M("use_shared_nsm")&&this.j){var c=Kh(this.j,a);c.then(function(d){M("use_cfr_monitor")&&xo().requestComplete("generate_204",d)}); return c}return this.s?this.s:this.s=new Promise(function(d){var e,f,g,h;return w(function(k){switch(k.i){case 1:return e=window.AbortController?new window.AbortController:void 0,g=null==(f=e)?void 0:f.signal,h=!1,va(k,2,3),e&&(b.B=Nh.S(function(){e.abort()},a||2E4)),v(k,fetch("/generate_204",{method:"HEAD", signal:g}),5);case 5:h=!0;case 3:Aa(k);M("use_cfr_monitor")&&xo().requestComplete("generate_204",h);b.s=void 0;b.B&&Nh.aa(b.B);h!==b.l&&(b.l=h,b.l&&b.m?Ve(b,"ytnetworkstatus-online"):b.m&&Ve(b,"ytnetworkstatus-offline"));d(h);Ba(k);break;case 2:xa(k),h=!1,k.u(3)}})})}; Do.prototype.sendNetworkCheckRequest=Do.prototype.ja;Do.prototype.listen=Do.prototype.W;Do.prototype.enableErrorFlushing=Do.prototype.Ec;Do.prototype.getWindowStatus=Do.prototype.rb;Do.prototype.monitorNetworkStatusChange=Do.prototype.Oc;Do.prototype.networkStatusHint=Do.prototype.ha;Do.prototype.isNetworkAvailable=Do.prototype.L;Do.getInstance=Go;function Io(a){a=void 0===a?{}:a;Ue.call(this);var b=this;this.l=this.B=0;this.m="ytnetworkstatus-offline";this.s="ytnetworkstatus-online";M("use_shared_nsm")&&(this.m="networkstatus-offline",this.s="networkstatus-online");this.j=Go();var c=B("yt.networkStatusManager.instance.monitorNetworkStatusChange").bind(this.j);c&&c(a.Pb);a.Yb&&(c=B("yt.networkStatusManager.instance.enableErrorFlushing").bind(this.j))&&c();if(c=B("yt.networkStatusManager.instance.listen").bind(this.j))a.fb?(this.fb=a.fb,c(this.s, function(){Jo(b,"publicytnetworkstatus-online")}),c(this.m,function(){Jo(b,"publicytnetworkstatus-offline")})):(c(this.s,function(){Ve(b,"publicytnetworkstatus-online")}),c(this.m,function(){Ve(b,"publicytnetworkstatus-offline")}))} r(Io,Ue);Io.prototype.L=function(){var a=B("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.j)():!0}; Io.prototype.ha=function(a){var b=B("yt.networkStatusManager.instance.networkStatusHint").bind(this.j);b&&b(a)}; Io.prototype.ja=function(a){var b=this,c;return w(function(d){c=B("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.j);return M("skip_network_check_if_cfr")&&xo().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.ha((null==(f=window.navigator)?void 0:f.onLine)||!0);e(b.L())})):c?d.return(c(a)):d.return(!0)})}; function Jo(a,b){a.fb?a.l?(Nh.aa(a.B),a.B=Nh.S(function(){a.v!==b&&(Ve(a,b),a.v=b,a.l=P())},a.fb-(P()-a.l))):(Ve(a,b),a.v=b,a.l=P()):Ve(a,b)} ;var Ko;function Lo(){Dn.call(this,{O:{Ac:lo,za:ko,Tb:ho,Nc:io,zb:jo,set:fo},M:Mo(),handleError:wk,Aa:xk,ia:No,now:P,pc:Ao,ba:Ul(),xb:"publicytnetworkstatus-online",wb:"publicytnetworkstatus-offline",Xa:!0,Va:.1,cb:qk("potential_esf_error_limit",10),I:M,Ha:!(hm()&&Oo())});this.l=new th;M("networkless_immediately_drop_all_requests")&&mo();Cn("LogsDatabaseV2")} r(Lo,Dn);function Po(){var a=B("yt.networklessRequestController.instance");a||(a=new Lo,z("yt.networklessRequestController.instance",a),M("networkless_logging")&&rn().then(function(b){a.H=b;Fn(a);a.l.resolve();a.Xa&&Math.random()<=a.Va&&a.H&&qo(a.H);M("networkless_immediately_drop_sw_health_store")&&Qo(a)})); return a} Lo.prototype.writeThenSend=function(a,b){b||(b={});hm()||(this.i=!1);Dn.prototype.writeThenSend.call(this,a,b)}; Lo.prototype.sendThenWrite=function(a,b,c){b||(b={});hm()||(this.i=!1);Dn.prototype.sendThenWrite.call(this,a,b,c)}; Lo.prototype.sendAndWrite=function(a,b){b||(b={});hm()||(this.i=!1);Dn.prototype.sendAndWrite.call(this,a,b)}; Lo.prototype.awaitInitialization=function(){return this.l.promise}; function Qo(a){var b;w(function(c){if(!a.H)throw b=wm("clearSWHealthLogsDb"),b;return c.return(ro(a.H).catch(function(d){a.handleError(d)}))})} function No(a,b,c){M("use_cfr_monitor")&&Ro(a,b);var d;if(null==(d=b.postParams)?0:d.requestTimeMs)b.postParams.requestTimeMs=Math.round(P());c&&0===Object.keys(b).length?uo(a):Xk(a,b)} function Mo(){Ko||(Ko=new Io({Yb:!0,Pb:!0}));return Ko} function Ro(a,b){var c=b.onError?b.onError:function(){}; b.onError=function(e,f){xo().requestComplete(a,!1);c(e,f)}; var d=b.onSuccess?b.onSuccess:function(){}; b.onSuccess=function(e,f){xo().requestComplete(a,!0);d(e,f)}} function Oo(){return"www.youtube-nocookie.com"!==mc(document.location.toString())} ;var So=!1,To=0,Uo=0,Vo,Wo=y.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:So,potentialEsfErrorCounter:Uo};z("ytNetworklessLoggingInitializationOptions",Wo); function Xo(){var a;w(function(b){switch(b.i){case 1:return v(b,rn(),2);case 2:a=b.j;if(!a||!hm()&&!M("nwl_init_require_datasync_id_killswitch")||!Oo()){b.u(0);break}So=!0;Wo.isNwlInitialized=So;if(!M("use_new_nwl_initialization")){b.u(4);break}return v(b,Po().awaitInitialization(),5);case 5:return b.return();case 4:return v(b,Cn("LogsDatabaseV2"),6);case 6:if(!(.1>=Math.random())){b.u(7);break}return v(b,lo(a),8);case 8:return v(b,qo(a),7);case 7:Yo();Zo().L()&&$o();Zo().W("publicytnetworkstatus-online", $o);Zo().W("publicytnetworkstatus-offline",ap);if(!M("networkless_immediately_drop_sw_health_store")){b.u(10);break}return v(b,bp(),10);case 10:if(M("networkless_immediately_drop_all_requests"))return v(b,mo(),0);b.u(0)}})} function cp(a,b){function c(d){var e=Zo().L();if(!dp()||!d||e&&M("vss_networkless_bypass_write"))ep(a,b);else{var f={url:a,options:b,timestamp:P(),status:"NEW",sendCount:0};fo(f,d).then(function(g){f.id=g;Zo().L()&&fp(f)}).catch(function(g){fp(f); Zo().L()?wk(g):Ao(g)})}} b=void 0===b?{}:b;M("skip_is_supported_killswitch")?rn().then(function(d){c(d)}):c(qn())} function gp(a,b){function c(d){if(dp()&&d){var e={url:a,options:b,timestamp:P(),status:"NEW",sendCount:0},f=!1,g=b.onSuccess?b.onSuccess:function(){}; e.options.onSuccess=function(k,m){M("use_cfr_monitor")&&xo().requestComplete(e.url,!0);void 0!==e.id?ko(e.id,d):f=!0;M("vss_network_hint")&&Zo().ha(!0);g(k,m)}; if(M("use_cfr_monitor")){var h=b.onError?b.onError:function(){}; e.options.onError=function(k,m){xo().requestComplete(e.url,!1);h(k,m)}}ep(e.url,e.options); fo(e,d).then(function(k){e.id=k;f&&ko(e.id,d)}).catch(function(k){Zo().L()?wk(k):Ao(k)})}else ep(a,b)} b=void 0===b?{}:b;M("skip_is_supported_killswitch")?rn().then(function(d){c(d)}):c(qn())} function $o(){var a=qn();if(!a)throw wm("throttleSend");To||(To=Nh.S(function(){var b;return w(function(c){if(1==c.i)return v(c,ho("NEW",a),2);if(3!=c.i)return b=c.j,b?v(c,fp(b),3):(ap(),c.return());To&&(To=0,$o());c.i=0})},100))} function ap(){Nh.aa(To);To=0} function fp(a){var b,c,d;return w(function(e){switch(e.i){case 1:b=qn();if(!b)throw c=wm("immediateSend"),c;if(void 0===a.id){e.u(2);break}return v(e,io(a.id,b),3);case 3:(d=e.j)?a=d:xk(Error("The request cannot be found in the database."));case 2:if(hp(a,2592E6)){e.u(4);break}xk(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===a.id){e.u(5);break}return v(e,ko(a.id,b),5);case 5:return e.return();case 4:a.skipRetry||(a=ip(a));var f=a,g,h;if(null==f?0:null==(g=f.options)? 0:null==(h=g.postParams)?0:h.requestTimeMs)f.options.postParams.requestTimeMs=Math.round(P());a=f;if(!a){e.u(0);break}if(!a.skipRetry||void 0===a.id){e.u(8);break}return v(e,ko(a.id,b),8);case 8:ep(a.url,a.options,!!a.skipRetry),e.i=0}})} function ip(a){var b=qn();if(!b)throw wm("updateRequestHandlers");var c=a.options.onError?a.options.onError:function(){}; a.options.onError=function(e,f){var g,h,k;return w(function(m){switch(m.i){case 1:M("use_cfr_monitor")&&xo().requestComplete(a.url,!1);g=Ln(f);if(!(M("nwl_consider_error_code")&&g||!M("nwl_consider_error_code")&&jp()<=qk("potential_esf_error_limit",10))){m.u(2);break}if(M("skip_checking_network_on_cfr_failure")&&(!M("skip_checking_network_on_cfr_failure")||xo().isEndpointCFR(a.url))){m.u(3);break}return v(m,Zo().ja(),3);case 3:if(Zo().L()){m.u(2);break}c(e,f);if(!M("nwl_consider_error_code")||void 0=== (null==(h=a)?void 0:h.id)){m.u(6);break}return v(m,jo(a.id,b,!1),6);case 6:return m.return();case 2:if(M("nwl_consider_error_code")&&!g&&jp()>qk("potential_esf_error_limit",10))return m.return();B("ytNetworklessLoggingInitializationOptions")&&Wo.potentialEsfErrorCounter++;Uo++;if(void 0===(null==(k=a)?void 0:k.id)){m.u(8);break}return 1>a.sendCount?v(m,jo(a.id,b),12):v(m,ko(a.id,b),8);case 12:Nh.S(function(){Zo().L()&&$o()},5E3); case 8:c(e,f),m.i=0}})}; var d=a.options.onSuccess?a.options.onSuccess:function(){}; a.options.onSuccess=function(e,f){var g;return w(function(h){if(1==h.i)return M("use_cfr_monitor")&&xo().requestComplete(a.url,!0),void 0===(null==(g=a)?void 0:g.id)?h.u(2):v(h,ko(a.id,b),2);M("vss_network_hint")&&Zo().ha(!0);d(e,f);h.i=0})}; return a} function hp(a,b){a=a.timestamp;return P()-a>=b?!1:!0} function Yo(){var a=qn();if(!a)throw wm("retryQueuedRequests");ho("QUEUED",a).then(function(b){b&&!hp(b,12E4)?Nh.S(function(){return w(function(c){if(1==c.i)return void 0===b.id?c.u(2):v(c,jo(b.id,a),2);Yo();c.i=0})}):Zo().L()&&$o()})} function bp(){var a,b;return w(function(c){a=qn();if(!a)throw b=wm("clearSWHealthLogsDb"),b;return c.return(ro(a).catch(function(d){wk(d)}))})} function Zo(){if(M("use_new_nwl"))return Mo();Vo||(Vo=new Io({Yb:!0,Pb:!0}));return Vo} function ep(a,b,c){c&&0===Object.keys(b).length?uo(a):Xk(a,b)} function dp(){return B("ytNetworklessLoggingInitializationOptions")?Wo.isNwlInitialized:So} function jp(){return B("ytNetworklessLoggingInitializationOptions")?Wo.potentialEsfErrorCounter:Uo} ;function kp(a){var b=this;this.config_=null;a?this.config_=a:wl()&&(this.config_=xl());Pl(function(){Ml(b)},5E3)} kp.prototype.isReady=function(){!this.config_&&wl()&&(this.config_=xl());return!!this.config_}; function Nl(a,b,c,d){function e(A){A=void 0===A?!1:A;var D;if(d.retry&&"www.youtube-nocookie.com"!=h&&(A||M("skip_ls_gel_retry")||"application/json"!==g.headers["Content-Type"]||(D=Kl(b,c,m,k)),D)){var F=g.onSuccess,N=g.onFetchSuccess;g.onSuccess=function(O,Q){Ll(D);F(O,Q)}; c.onFetchSuccess=function(O,Q){Ll(D);N(O,Q)}}try{A&&d.retry&&!d.Zb.bypassNetworkless?(g.method="POST",d.Zb.writeThenSend?M("use_new_nwl_wts")?Po().writeThenSend(u,g):cp(u,g):M("use_new_nwl_saw")?Po().sendAndWrite(u,g):gp(u,g)):(g.method="POST",g.postParams||(g.postParams={}),Xk(u,g))}catch(O){if("InvalidAccessError"==O.name)D&&(Ll(D),D=0),xk(Error("An extension is blocking network request.")); else throw O;}D&&Pl(function(){Ml(a)},5E3)} !L("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&xk(new R("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady()){var f=new R("innertube xhrclient not ready",b,c,d);wk(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(A,D){if(d.onSuccess)d.onSuccess(D)}, onFetchSuccess:function(A){if(d.onSuccess)d.onSuccess(A)}, onError:function(A,D){if(d.onError)d.onError(D)}, onFetchError:function(A){if(d.onError)d.onError(A)}, timeout:d.timeout,withCredentials:!0};g.headers["Content-Type"]||(g.headers["Content-Type"]="application/json");var h="";(f=a.config_.Kc)&&(h=f);var k=a.config_.Mc||!1,m=El(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,t={alt:"json"},x=a.config_.Lc&&f;x=x&&f.startsWith("Bearer");x||(t.key=a.config_.innertubeApiKey);var u=Jk(""+h+q,t||{},!0);M("use_new_nwl")&&Po().i||!M("use_new_nwl")&& dp()?pn().then(function(A){e(A)}):e(!1)} ;var lp={appSettingsCaptured:!0,visualElementAttached:!0,visualElementGestured:!0,visualElementHidden:!0,visualElementShown:!0,flowEvent:!0,visualElementStateChanged:!0,playbackAssociated:!0,youThere:!0,accountStateChangeSignedIn:!0,accountStateChangeSignedOut:!0},mp={latencyActionBaselined:!0,latencyActionInfo:!0,latencyActionTicked:!0,bedrockRepetitiveActionTimed:!0,adsClientStateChange:!0,streamzIncremented:!0,mdxDialAdditionalDataUpdateEvent:!0,tvhtml5WatchKeyEvent:!0,tvhtml5VideoSeek:!0,tokenRefreshEvent:!0, adNotify:!0,adNotifyFilled:!0,tvhtml5LaunchUrlComponentChanged:!0,bedrockResourceConsumptionSnapshot:!0,deviceStartupMetrics:!0,mdxSignIn:!0,tvhtml5KeyboardLogging:!0,tvhtml5StartupSoundEvent:!0,tvhtml5LiveChatStatus:!0,tvhtml5DeviceStorageStatus:!0,tvhtml5LocalStorage:!0,directSignInEvent:!0,finalPayload:!0,tvhtml5SearchCompleted:!0,tvhtml5KeyboardPerformance:!0,adNotifyFailure:!0,latencyActionSpan:!0,tvhtml5AccountDialogOpened:!0,tvhtml5ApiTest:!0};var np=0,Ep=Nc?"webkit":Mc?"moz":Kc?"ms":Jc?"o":"";z("ytDomDomGetNextId",B("ytDomDomGetNextId")||function(){return++np});var cq={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 dq(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 cq||(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.i=a.pageX;this.j=a.pageY}}catch(e){}} function eq(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.i=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.j=a.clientY+b}} dq.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; dq.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; dq.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var ob=y.ytEventsEventsListeners||{};z("ytEventsEventsListeners",ob);var fq=y.ytEventsEventsCounter||{count:0};z("ytEventsEventsCounter",fq); function gq(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)&&sb(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||g)})} var hq=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 iq(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=gq(a,b,c,d);if(e)return e;e=++fq.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var g=f?function(h){h=new dq(h);if(!df(h.relatedTarget,function(k){return k==a}))return h.currentTarget=a,h.type=b,c.call(a,h)}:function(h){h=new dq(h); h.currentTarget=a;return c.call(a,h)}; g=vk(g);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),hq()||"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 jq(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?hq()||"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 kq=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 lq(a){this.B=a;this.j=null;this.m=0;this.v=null;this.s=0;this.l=[];for(a=0;4>a;a++)this.l.push(0);this.o=0;this.K=iq(window,"mousemove",Xa(this.P,this));a=Xa(this.G,this);"function"===typeof a&&(a=vk(a));this.R=window.setInterval(a,25)} Za(lq,J);lq.prototype.P=function(a){void 0===a.i&&eq(a);var b=a.i;void 0===a.j&&eq(a);this.j=new $e(b,a.j)}; lq.prototype.G=function(){if(this.j){var a=kq();if(0!=this.m){var b=this.v,c=this.j,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.m);this.l[this.o]=.5c;c++)b+=this.l[c]||0;3<=b&&this.B();this.s=d}this.m=a;this.v=this.j;this.o=(this.o+1)%4}}; lq.prototype.D=function(){window.clearInterval(this.R);jq(this.K)};var mq={}; function nq(a){var b=void 0===a?{}:a;a=void 0===b.Sc?!1:b.Sc;b=void 0===b.Fc?!0:b.Fc;if(null==B("_lact",window)){var c=parseInt(L("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;z("_lact",c,window);z("_fact",c,window);-1==c&&oq();iq(document,"keydown",oq);iq(document,"keyup",oq);iq(document,"mousedown",oq);iq(document,"mouseup",oq);a?iq(window,"touchmove",function(){pq("touchmove",200)},{passive:!0}):(iq(window,"resize",function(){pq("resize",200)}),b&&iq(window,"scroll",function(){pq("scroll",200)})); new lq(function(){pq("mouse",100)}); iq(document,"touchstart",oq,{passive:!0});iq(document,"touchend",oq,{passive:!0})}} function pq(a,b){mq[a]||(mq[a]=!0,Nh.S(function(){oq();mq[a]=!1},b))} function oq(){null==B("_lact",window)&&nq();var a=Date.now();z("_lact",a,window);-1==B("_fact",window)&&z("_fact",a,window);(a=B("ytglobal.ytUtilActivityCallback_"))&&a()} function qq(){var a=B("_lact",window);return null==a?-1:Math.max(Date.now()-a,0)} ;var rq=y.ytPubsubPubsubInstance||new K,sq=y.ytPubsubPubsubSubscribedKeys||{},tq=y.ytPubsubPubsubTopicToKeys||{},uq=y.ytPubsubPubsubIsSynchronous||{};function vq(a,b){var c=wq();if(c&&b){var d=c.subscribe(a,function(){var e=arguments;var f=function(){sq[d]&&b.apply&&"function"==typeof b.apply&&b.apply(window,e)}; try{uq[a]?f():Qk(f,0)}catch(g){wk(g)}},void 0); sq[d]=!0;tq[a]||(tq[a]=[]);tq[a].push(d);return d}return 0} function xq(a){var b=wq();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),fb(a,function(c){b.unsubscribeByKey(c);delete sq[c]}))} function yq(a,b){var c=wq();c&&c.publish.apply(c,arguments)} function zq(a){var b=wq();if(b)if(b.clear(a),a)Aq(a);else for(var c in tq)Aq(c)} function wq(){return y.ytPubsubPubsubInstance} function Aq(a){tq[a]&&(a=tq[a],fb(a,function(b){sq[b]&&delete sq[b]}),a.length=0)} K.prototype.subscribe=K.prototype.subscribe;K.prototype.unsubscribeByKey=K.prototype.Ea;K.prototype.publish=K.prototype.qa;K.prototype.clear=K.prototype.clear;z("ytPubsubPubsubInstance",rq);z("ytPubsubPubsubTopicToKeys",tq);z("ytPubsubPubsubIsSynchronous",uq);z("ytPubsubPubsubSubscribedKeys",sq);var Bq=y.window;Bq.ytExports||(Bq.ytExports={logging:{transport:{leaderQueueLength:0,leaderChosen:!1}}});var Cq=qk("initial_gel_batch_timeout",2E3),Dq=Math.pow(2,16)-1,Eq=!1,Fq=void 0;function Gq(){this.l=this.i=this.j=0} var Hq=new Gq,Iq=new Gq,Jq=!0,Kq=y.ytLoggingTransportGELQueue_||new Map;z("ytLoggingTransportGELQueue_",Kq);var Lq=new Map,Mq=y.ytLoggingTransportGELProtoQueue_||new Map;z("ytLoggingTransportGELProtoQueue_",Mq);var Nq=y.ytLoggingTransportTokensToCttTargetIds_||{};z("ytLoggingTransportTokensToCttTargetIds_",Nq);var Oq=y.ytLoggingTransportTokensToJspbCttTargetIds_||{};z("ytLoggingTransportTokensToJspbCttTargetIds_",Oq); function Pq(){M("jspb_with_transport_leader")&&!Bq.ytExports.logging.transport.leaderChosen&&(Eq=Bq.ytExports.logging.transport.leaderChosen=!0,document.addEventListener("FLUSH_REQUEST",function(){Qq(void 0,void 0,!0)}))} function Rq(a,b){Pq();if("log_event"===a.endpoint){Sq(a);var c=Tq(a),d=Kq.get(c)||[];Kq.set(c,d);d.push(a.payload);Uq(b,d,c)}} function Vq(a,b){Pq();if("log_event"===a.endpoint){Sq(void 0,a);var c=Tq(a,!0);if(M("jspb_with_transport_leader")&&Eq){var d=Lq.get(c)||[];Lq.set(c,d);Bq.ytExports.logging.transport.leaderQueueLength++;d.push(a.payload);Uq(b,d,c,!0)}else d=Mq.get(c)||[],Mq.set(c,d),a=a.payload.toJSON(),d.push(a),Uq(b,d,c,!0)}} function Uq(a,b,c,d){d=void 0===d?!1:d;a&&(Fq=new a);a=qk("tvhtml5_logging_max_batch")||qk("web_logging_max_batch")||100;var e=P(),f=d?Iq.l:Hq.l,g=Mq.get(c)||[];M("jspb_with_transport_leader")&&(Eq&&b.length+g.length>=a||!Eq&&Bq.ytExports.logging.transport.leaderQueueLength+b.length>=a)||b.length>=a?Qq({writeThenSend:!0},M("flush_only_full_queue")?c:void 0,d):10<=e-f&&(Wq(d),d?Iq.l=e:Hq.l=e)} function Xq(a,b){Pq();if("log_event"===a.endpoint){Sq(a);var c=Tq(a),d=new Map;d.set(c,[a.payload]);b&&(Fq=new b);return new qf(function(e,f){Fq&&Fq.isReady()?Yq(d,e,f,{bypassNetworkless:!0},!0):e()})}} function Zq(a,b){Pq();if("log_event"===a.endpoint){Sq(void 0,a);var c=Tq(a,!0),d=new Map,e=new Map;M("jspb_with_transport_leader")&&Eq?e.set(c,[a.payload]):d.set(c,[a.payload.toJSON()]);b&&(Fq=new b);return new qf(function(f){Fq&&Fq.isReady()?$q(d,e,f,{bypassNetworkless:!0},!0):f()})}} function Tq(a,b){var c="";if(a.Ga)c="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(void 0===b?0:b){b=a.cttAuthInfo.token;c=a.cttAuthInfo;var d=new Jj;c.videoId?d.setVideoId(c.videoId):c.playlistId&&Pd(d,2,Kj,c.playlistId);Oq[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),Nq[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c} function Qq(a,b,c){a=void 0===a?{}:a;c=void 0===c?!1:c;new qf(function(d,e){c?(Rk(Iq.j),Rk(Iq.i),Iq.i=0):(Rk(Hq.j),Rk(Hq.i),Hq.i=0);if(M("jspb_with_transport_leader")&&!Eq)document.dispatchEvent(new CustomEvent("FLUSH_REQUEST")),d();else if(Fq&&Fq.isReady())if(void 0!==b)if(c){e=new Map;var f=new Map,g=Mq.get(b)||[];e.set(b,g);M("jspb_with_transport_leader")&&(g=Lq.get(b)||[],f.set(b,g));$q(e,f,d,a);M("jspb_with_transport_leader")&&Lq.delete(b);Mq.delete(b)}else f=new Map,g=Kq.get(b)||[],f.set(b, g),Yq(f,d,e,a),Kq.delete(b);else c?($q(Mq,Lq,d,a),Mq.clear(),M("jspb_with_transport_leader")&&Lq.clear()):(Yq(Kq,d,e,a),Kq.clear());else Wq(c),d()})} function Wq(a){a=void 0===a?!1:a;if(M("web_gel_timeout_cap")&&(!a&&!Hq.i||a&&!Iq.i)){var b=Qk(function(){Qq({writeThenSend:!0},void 0,a)},6E4); a?Iq.i=b:Hq.i=b}Rk(a?Iq.j:Hq.j);b=L("LOGGING_BATCH_TIMEOUT",qk("web_gel_debounce_ms",1E4));M("shorten_initial_gel_batch_timeout")&&Jq&&(b=Cq);b=Qk(function(){Qq({writeThenSend:!0},void 0,a)},b); a?Iq.j=b:Hq.j=b} function Yq(a,b,c,d,e){var f=Fq;d=void 0===d?{}:d;var g=Math.round(P()),h=a.size;a=p(a);for(var k=a.next();!k.done;k=a.next()){var m=p(k.value);k=m.next().value;var q=m.next().value;m=k;k=ub({context:yl(f.config_||xl())});k.events=q;(q=Nq[m])&&ar(k,m,q);delete Nq[m];m="visitorOnlyApprovedKey"===m;br(k,g,m);cr(d);q=function(){h--;h||b()}; var t=function(){h--;h||b()}; try{Nl(f,"log_event",k,dr(d,m,q,t,e)),Jq=!1}catch(x){wk(x),c()}}} function $q(a,b,c,d,e){var f=Fq;d=void 0===d?{}:d;var g=Math.round(P()),h=a.size+b.size,k=new Map([].concat(ia(a),ia(b)));k=p(k);for(var m=k.next();!m.done;m=k.next()){var q=p(m.value).next().value,t=a.get(q),x=b.get(q)||[];m=new Lj;var u=Dl(f.config_||xl());G(m,Qi,1,u);t=t?er(t):[];t=p(t);for(u=t.next();!u.done;u=t.next())Wd(m,3,Fj,u.value);x=p(x);for(t=x.next();!t.done;t=x.next())Wd(m,3,Fj,t.value);(x=Oq[q])&&fr(m,q,x);delete Oq[q];q="visitorOnlyApprovedKey"===q;gr(m,g,q);cr(d);m=Zd(m);q=dr(d,q, function(){Bq.ytExports.logging.transport.leaderQueueLength=0;h--;h||c()},function(){Bq.ytExports.logging.transport.leaderQueueLength=0; h--;h||c()},e); q.headers={"Content-Type":"application/json+protobuf"};q.postBodyFormat="JSPB";q.postBody=m;Nl(f,"log_event","",q);Jq=!1}} function cr(a){M("always_send_and_write")&&(a.writeThenSend=!1)} function dr(a,b,c,d,e){return{retry:!0,onSuccess:c,onError:d,Zb:a,Ga:b,gq:!!e,headers:{},postBodyFormat:"",postBody:""}} function br(a,b,c){a.requestTimeMs=String(b);M("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=L("EVENT_ID"))&&(c=hr(),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})} function gr(a,b,c){E(a,2,b);if(!c&&(b=L("EVENT_ID"))){c=hr();var d=new Ij;E(d,1,b);E(d,2,c);G(a,Ij,5,d)}} function hr(){var a=L("BATCH_CLIENT_COUNTER")||0;a||(a=Math.floor(Math.random()*Dq/2));a++;a>Dq&&(a=1);nk("BATCH_CLIENT_COUNTER",a);return a} function ar(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 fr(a,b,c){if(Ld(c,1===Qd(c,Kj)?1:-1))var d=1;else if(c.getPlaylistId())d=2;else return;G(a,Jj,4,c);a=Rd(a,Qi,1)||new Qi;c=Rd(a,Oi,3)||new Oi;var e=new Ni;e.setToken(b);E(e,1,d);Wd(c,12,Ni,e);G(a,Oi,3,c)} function er(a){for(var b=[],c=0;c>3;switch(e&7){case 0:e=ur(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=ur(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 vr(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 R("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||Pr(c)),!0):!1} ;function cu(){var a=["ol"];Ht("").info.actionType="embed";a&&nk("TIMING_AFT_KEYS",a);nk("TIMING_ACTION","embed");du();a=zt();var b=Bt();if("cold"===a.yt_lt||"cold"===b.loadType){var c=tt(),d=At();d=d.gelTicks?d.gelTicks:d.gelTicks={};for(var e in c)e in d||Z(e,c[e]);e={};c=!1;d=p(Object.keys(a));for(var f=d.next();!f.done;f=d.next())f=f.value,(f=Pt(f,a[f]))&&!Et(Bt(),f)&&(gt(b,f),gt(e,f),c=!0);c&&eu(e)}z("ytglobal.timingready_",!0);a=L("TIMING_ACTION");B("ytglobal.timingready_")&&a&&"_start"in tt()&& st()&&Dt()} function fu(a,b,c,d){null!==b&&(zt(c)[a]=b,(a=Pt(a,b,c))&&eu(a,c,d))} function eu(a,b,c){if(!M("web_csi_via_jspb")||(void 0===c?0:c))c=Ht(b||""),gt(c.info,a),gt(Bt(b),a),c=Ct(b),b=xt(b).cttAuthInfo,au().info(a,c,b);else{c=new wj;var d=Object.keys(a);a=Object.values(a);for(var e=0;e=wt()&&0c.duration?d:c},{duration:0}))&&0>=8);b[c++]=e}return dd(b,3)} function Ru(a,b,c){Lu.push({payloadName:a,payload:b,options:c});Ou||(Ou=Wn())} function Xn(a){if(Lu){for(var b=p(Lu),c=b.next();!c.done;c=b.next())if(c=c.value,c.payload)if(M("il_via_jspb"))switch(c.payload.V(a.csn),c.payloadName){case "screenCreated":Fr(c.payload,c.options);break;case "visualElementAttached":Gr(c.payload,c.options);break;case "visualElementShown":Br(c.payload,c.options);break;case "visualElementHidden":Cr(c.payload,c.options);break;case "visualElementGestured":Dr(c.payload,c.options);break;case "visualElementStateChanged":Er(c.payload,c.options);break;default:Pr(new R("flushQueue unable to map payloadName to JSPB setter"))}else c.payload.csn= a.csn,jr(c.payloadName,c.payload,null,c.options);Lu.length=0}Ou=0} ;function Su(){this.j=new Set;this.i=new Set;this.l=new Map} Su.prototype.s=function(){}; Su.prototype.clear=function(){this.j.clear();this.i.clear();this.l.clear()}; Na(Su);function Tu(){this.m=[];this.N=[];this.i=[];this.o=[];this.C=[];this.j=new Set;this.v=new Map} Tu.prototype.s=function(a){this.client=a}; function Uu(a,b,c){c=void 0===c?0:c;b.then(function(d){a.j.has(c)&&a.l&&a.l();var e=gs(c),f=es(c);if(e&&f){var g;(null==d?0:null==(g=d.response)?0:g.trackingParams)&&Qu(a.client,e,f,[as(d.response.trackingParams)]);var h;(null==d?0:null==(h=d.playerResponse)?0:h.trackingParams)&&Qu(a.client,e,f,[as(d.playerResponse.trackingParams)])}})} function Vu(a,b,c,d){d=void 0===d?0:d;if(a.j.has(d))a.m.push([b,c]);else{var e=gs(d);c=c||es(d);e&&c&&Qu(a.client,e,c,[b])}} Tu.prototype.clickCommand=function(a,b,c){var d=a.clickTrackingParams;c=void 0===c?0:c;if(d)if(c=gs(void 0===c?0:c)){a=this.client;var e=as(d);d={cttAuthInfo:is(c),ca:c};if(M("il_via_jspb")){var f=new qj;f.V(c);e=e.getAsJspb();G(f,ej,2,e);E(f,4,Hj.INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK);b&&G(f,hj,3);"UNDEFINED_CSN"==c?Ru("visualElementGestured",f,d):Dr(f,d,a)}else f={csn:c,ve:e.getAsJson(),gestureType:"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"},b&&(f.clientData=b),"UNDEFINED_CSN"==c? Ru("visualElementGestured",f,d):a?jr("visualElementGestured",f,a,d):em("visualElementGestured",f,d);b=!0}else b=!1;else b=!1;return b}; function Wu(a,b,c){c=void 0===c?{}:c;a.j.add(c.layer||0);a.l=function(){Xu(a,b,c);var f=es(c.layer);if(f){for(var g=p(a.m),h=g.next();!h.done;h=g.next())h=h.value,Vu(a,h[0],h[1]||f,c.layer);f=p(a.N);for(g=f.next();!g.done;g=f.next()){var k=g.value;g=void 0;g=void 0===g?0:g;h=gs(g);var m=k[0]||es(g);if(h&&m){g=a.client;var q=k[1];k={cttAuthInfo:is(h),ca:h};M("il_via_jspb")?(q=new tj,q.V(h),m=m.getAsJspb(),G(q,ej,2,m),"UNDEFINED_CSN"==h?Ru("visualElementStateChanged",q,k):Er(q,k,g)):(m={csn:h,ve:m.getAsJson(), clientData:q},"UNDEFINED_CSN"==h?Ru("visualElementStateChanged",m,k):g?jr("visualElementStateChanged",m,g,k):em("visualElementStateChanged",m,k))}}}}; gs(c.layer)||a.l();if(c.Ob)for(var d=p(c.Ob),e=d.next();!e.done;e=d.next())Uu(a,e.value,c.layer);else Or(Error("Delayed screen needs a data promise."))} function Xu(a,b,c){c=void 0===c?{}:c;c.layer||(c.layer=0);var d=void 0!==c.Rc?c.Rc:c.layer;var e=gs(d);d=es(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=Pu(a.client,b,f,c.Nb,c.cttAuthInfo,g,c.kq)}catch(m){Rr(m,{tq:b,rootVe:d,parentVisualElement:void 0,iq:e,pq:f,Nb:c.Nb});Or(m);return}js(k,b, c.layer,c.cttAuthInfo);if(b=e&&"UNDEFINED_CSN"!==e&&d){a:{b=p(Object.values(Zr));for(f=b.next();!f.done;f=b.next())if(gs(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:is(e),ca:e,Qb:g},M("il_via_jspb")?(h=new rj,h.V(e),d=d.getAsJspb(),G(h,ej,2,d),E(h,4,g?16:8),"UNDEFINED_CSN"==e?Ru("visualElementHidden",h,f):Cr(h,f,b)):(d={csn:e,ve:d.getAsJson(),eventType:h},"UNDEFINED_CSN"==e?Ru("visualElementHidden",d,f):b?jr("visualElementHidden",d,b,f):em("visualElementHidden", d,f)));a.i[a.i.length-1]&&!a.i[a.i.length-1].csn&&(a.i[a.i.length-1].csn=k||"");eu({clientScreenNonce:k});Su.getInstance().clear();d=es(c.layer);e&&"UNDEFINED_CSN"!==e&&d&&(M("web_mark_root_visible")||M("music_web_mark_root_visible"))&&(e=k,k={cttAuthInfo:is(e),ca:e},M("il_via_jspb")?(b=new sj,b.V(e),f=d.getAsJspb(),G(b,ej,2,f),E(b,4,1),"UNDEFINED_CSN"==e?Ru("visualElementShown",b,k):Br(b,k)):(b={csn:e,ve:d.getAsJson(),eventType:1},"UNDEFINED_CSN"==e?Ru("visualElementShown",b,k):em("visualElementShown", b,k)));a.j.delete(c.layer||0);a.l=void 0;e=p(a.v);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&&Vu(a,k,d,c.layer);for(c=0;cf&&(c=a.substring(f,e),c=c.replace(ov,""),c=c.replace(pv,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else rv(a,b,c)} function rv(a,b,c){c=void 0===c?null:c;var d=sv(a),e=document.getElementById(d),f=e&&mv(e,"loaded"),g=e&&!f;f?b&&b():(b&&(f=vq(d,b),b=""+Ra(b),tv[b]=f),g||(e=uv(a,d,function(){mv(e,"loaded")||(kv(e),yq(d),Qk(Ya(zq,d),0))},c)))} function uv(a,b,c,d){d=void 0===d?null:d;var e=cf("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);zh(e,Jb(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e} function vv(a){a=sv(a);var b=document.getElementById(a);b&&(zq(a),b.parentNode.removeChild(b))} function wv(a,b){a&&b&&(a=""+Ra(b),(a=tv[a])&&xq(a))} function sv(a){var b=document.createElement("a");dc(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+ic(a)} var tv={};var xv=[],yv=!1;function zv(){if(!M("disable_biscotti_fetch_for_ad_blocker_detection")&&!M("disable_biscotti_fetch_entirely_for_all_web_clients")&&vs()){var a=L("PLAYER_VARS",{});if(!("1"==rb(a)||M("embeds_web_disable_ads_for_pfl")&&ws(a))){var b=function(){yv=!0;"google_ad_status"in window?nk("DCLKSTAT",1):nk("DCLKSTAT",2)}; try{qv("//static.doubleclick.net/instream/ad_status.js",b)}catch(c){}xv.push(Nh.S(function(){if(!(yv||"google_ad_status"in window)){try{wv("//static.doubleclick.net/instream/ad_status.js",b)}catch(c){}yv=!0;nk("DCLKSTAT",3)}},5E3))}}} function Cv(){var a=Number(L("DCLKSTAT",0));return isNaN(a)?0:a} ;function Dv(){this.state=1;this.i=null} Dv.prototype.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,Db("From proto message. b/166824318"),e=e.privateDoNotAccessOrElseSafeScriptWrappedValue||"",e=(f=yb())?f.createScript(e):e,e=(new Fb(e)).toString());a.interpreterSafeUrl&&(d=a.interpreterSafeUrl,Db("From proto message. b/166824318"),d=Jb(d.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue||"").toString()); Ev(this,e,d,a.program,b,c)}else Pr(Error("Cannot initialize botguard without program"))}; function Ev(a,b,c,d,e,f){var g=void 0===g?"trayride":g;c?(a.state=2,qv(c,function(){window[g]?Fv(a,d,g,e):(a.state=3,vv(c),Pr(new R("Unable to load Botguard","from "+c)))},f)):b?(f=cf("SCRIPT"),f.textContent=b,f.nonce=gc(),document.head.appendChild(f),document.head.removeChild(f),window[g]?Fv(a,d,g,e):(a.state=4,Pr(new R("Unable to load Botguard from JS")))):Pr(new R("Unable to load VM; no url or JS provided"))} Dv.prototype.isInitialized=function(){return!!this.i}; function Fv(a,b,c,d){a.state=5;try{var e=new uh({program:b,globalName:c});e.hd.then(function(){a.state=6;d&&d(b)}); Gv(a,e)}catch(f){a.state=7,f instanceof Error&&Pr(f)}} Dv.prototype.invoke=function(a){a=void 0===a?{}:a;var b=this.i;if(b){var c={Mb:a};if(b.Wa)throw Error("Already disposed");a=sh();var d;null!=(d=b.ta)&&d.j.i.Cb("/client_streamz/bg/fsc",d.Ba);d=b.md([c.Mb,c.kd]);null!=(b=b.ta)&&(a=sh()-a,b.l.i.hb("/client_streamz/bg/fsl",a,b.Ba));b=d}else b=null;return b}; Dv.prototype.dispose=function(){Gv(this,null);this.state=8}; function Gv(a,b){ke(a.i);a.i=b} ;var Hv=new Dv;function Iv(){return Hv.isInitialized()} function Jv(a){a=void 0===a?{}:a;return Hv.invoke(a)} ;function Kv(a){var b=this;var c=void 0===c?0:c;var d=void 0===d?Ul():d;this.o=c;this.l=d;this.j=new th;this.i=a;a={};c=p(this.i.entries());for(d=c.next();!d.done;a={Da:a.Da,Na:a.Na},d=c.next()){var e=p(d.value);d=e.next().value;e=e.next().value;a.Na=d;a.Da=e;d=function(f){return function(){f.Da.ub();b.i[f.Na].eb=!0;b.i.every(function(g){return!0===g.eb})&&b.j.resolve()}}(a); e=Ql(d,Lv(this,a.Da));this.i[a.Na]=Object.assign({},a.Da,{ub:d,Za:e})}} function Mv(a){var b=Array.from(a.i.keys()).sort(function(d,e){return Lv(a,a.i[e])-Lv(a,a.i[d])}); b=p(b);for(var c=b.next();!c.done;c=b.next())c=a.i[c.value],void 0===c.Za||c.eb||(a.l.aa(c.Za),Ql(c.ub,10))} Kv.prototype.cancel=function(){for(var a=p(this.i),b=a.next();!b.done;b=a.next())b=b.value,void 0===b.Za||b.eb||this.l.aa(b.Za),b.eb=!0;this.j.resolve()}; function Lv(a,b){var c;return null!=(c=b.priority)?c:a.o} ;function Nv(a){this.state=a;this.plugins=[];this.s=void 0} Nv.prototype.install=function(){this.plugins.push.apply(this.plugins,ia(Ja.apply(0,arguments)))}; Nv.prototype.transition=function(a,b){var c=this,d=this.C.find(function(f){return f.from===c.state&&f.F===a}); if(d){this.l&&(Mv(this.l),this.l=void 0);this.state=a;d=d.action.bind(this);var e=this.plugins.filter(function(f){return f[a]}).map(function(f){return f[a]}); d(Ov(this,e,this.s),b)}else throw Error("no transition specified from "+this.state+" to "+a);}; function Ov(a,b,c){return function(){var d=Ja.apply(0,arguments),e=b.filter(function(k){var m;return 10===(null!=(m=null!=c?c:k.priority)?m:0)}),f=b.filter(function(k){var m; return 10!==(null!=(m=null!=c?c:k.priority)?m:0)}); Ul();var g={};e=p(e);for(var h=e.next();!h.done;g={Oa:g.Oa},h=e.next())g.Oa=h.value,Sl(function(k){return function(){k.Oa.callback.apply(k.Oa,ia(d))}}(g)); f=f.map(function(k){var m;return{ub:function(){k.callback.apply(k,ia(d))}, priority:null!=(m=null!=c?c:k.priority)?m:0}}); f.length&&(a.l=new Kv(f))}} fa.Object.defineProperties(Nv.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});function Pv(a){Nv.call(this,void 0===a?"document_active":a);var b=this;this.s=10;this.i=new Map;this.C=[{from:"document_active",F:"document_disposed_preventable",action:this.N},{from:"document_active",F:"document_disposed",action:this.o},{from:"document_disposed_preventable",F:"document_disposed",action:this.o},{from:"document_disposed_preventable",F:"flush_logs",action:this.m},{from:"document_disposed_preventable",F:"document_active",action:this.j},{from:"document_disposed",F:"flush_logs",action:this.m}, {from:"document_disposed",F:"document_active",action:this.j},{from:"document_disposed",F:"document_disposed",action:function(){}}, {from:"flush_logs",F:"document_active",action:this.j}];window.addEventListener("pagehide",function(c){b.transition("document_disposed",{event:c})}); window.addEventListener("beforeunload",function(c){b.transition("document_disposed_preventable",{event:c})})} r(Pv,Nv);Pv.prototype.N=function(a,b){if(!this.i.get("document_disposed_preventable")){a(null==b?void 0:b.event);var c,d;if((null==b?0:null==(c=b.event)?0:c.defaultPrevented)||(null==b?0:null==(d=b.event)?0:d.returnValue)){b.event.returnValue||(b.event.returnValue=!0);b.event.defaultPrevented||b.event.preventDefault();this.i=new Map;this.transition("document_active");return}}this.i.set("document_disposed_preventable",!0);this.i.get("document_disposed")?this.transition("flush_logs"):this.transition("document_disposed")}; Pv.prototype.o=function(a,b){this.i.get("document_disposed")?this.transition("document_active"):(a(null==b?void 0:b.event),this.i.set("document_disposed",!0),this.transition("flush_logs"))}; Pv.prototype.m=function(a,b){a(null==b?void 0:b.event);this.transition("document_active")}; Pv.prototype.j=function(){this.i=new Map};function Qv(a){Nv.call(this,void 0===a?"document_visibility_unknown":a);var b=this;this.C=[{from:"document_visibility_unknown",F:"document_visible",action:this.j},{from:"document_visibility_unknown",F:"document_hidden",action:this.i},{from:"document_visibility_unknown",F:"document_foregrounded",action:this.m},{from:"document_visibility_unknown",F:"document_backgrounded",action:this.o},{from:"document_visible",F:"document_hidden",action:this.i},{from:"document_visible",F:"document_foregrounded",action:this.m}, {from:"document_visible",F:"document_visible",action:this.j},{from:"document_foregrounded",F:"document_visible",action:this.j},{from:"document_foregrounded",F:"document_hidden",action:this.i},{from:"document_foregrounded",F:"document_foregrounded",action:this.m},{from:"document_hidden",F:"document_visible",action:this.j},{from:"document_hidden",F:"document_backgrounded",action:this.o},{from:"document_hidden",F:"document_hidden",action:this.i},{from:"document_backgrounded",F:"document_hidden",action:this.i}, {from:"document_backgrounded",F:"document_backgrounded",action:this.o},{from:"document_backgrounded",F:"document_visible",action:this.j}];document.addEventListener("visibilitychange",function(c){"visible"===document.visibilityState?b.transition("document_visible",{event:c}):b.transition("document_hidden",{event:c})}); M("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(c){b.transition("document_backgrounded",{event:c})}),window.addEventListener("focus",function(c){b.transition("document_foregrounded",{event:c})}))} r(Qv,Nv);Qv.prototype.j=function(a,b){a(null==b?void 0:b.event);M("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")}; Qv.prototype.i=function(a,b){a(null==b?void 0:b.event);M("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")}; Qv.prototype.o=function(a,b){a(null==b?void 0:b.event)}; Qv.prototype.m=function(a,b){a(null==b?void 0:b.event)};function Rv(){this.i=new Pv;this.j=new Qv} Rv.prototype.install=function(){var a=Ja.apply(0,arguments);this.i.install.apply(this.i,ia(a));this.j.install.apply(this.j,ia(a))};function Sv(){Rv.call(this);var a={};this.install((a.document_disposed={callback:this.l},a));a={};this.install((a.flush_logs={callback:this.o},a))} var Tv;r(Sv,Rv);Sv.prototype.o=function(){if(M("web_fp_via_jspb")){var a=new dj,b=gs();b&&a.V(b);b=new Fj;Ud(b,dj,380,Gj,a);Ar(b);M("web_fp_via_jspb_and_json")&&em("finalPayload",{csn:gs()})}else em("finalPayload",{csn:gs()})}; Sv.prototype.l=function(){Tr(Ur)};function Uv(){} Uv.getInstance=function(){var a=B("ytglobal.storage_");a||(a=new Uv,z("ytglobal.storage_",a));return a}; Uv.prototype.estimate=function(){var a,b,c;return w(function(d){a=navigator;return(null==(b=a.storage)?0:b.estimate)?d.return(a.storage.estimate()):(null==(c=a.webkitTemporaryStorage)?0:c.queryUsageAndQuota)?d.return(Vv()):d.return()})}; function Vv(){var a=navigator;return new Promise(function(b,c){var d;null!=(d=a.webkitTemporaryStorage)&&d.queryUsageAndQuota?a.webkitTemporaryStorage.queryUsageAndQuota(function(e,f){b({usage:e,quota:f})},function(e){c(e)}):c(Error("webkitTemporaryStorage is not supported."))})} z("ytglobal.storageClass_",Uv);function cm(a,b){var c=this;this.handleError=a;this.i=b;this.j=!1;void 0===self.document||self.addEventListener("beforeunload",function(){c.j=!0}); this.l=Math.random()<=qk("ytidb_transaction_ended_event_rate_limit",.02)} cm.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":M("idb_data_corrupted_killswitch")||this.i("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.i("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":M("idb_is_supported_completed_killswitch")||this.i("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":Wv(this,b);break;case "TRANSACTION_ENDED":this.l&&this.i("idbTransactionEnded",b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":a=Object.assign({},b, {hasWindowUnloaded:this.j}),this.i("idbTransactionAborted",a)}}; function Wv(a,b){Uv.getInstance().estimate().then(function(c){c=Object.assign({},b,{isSw:void 0===self.document,isIframe:self!==self.top,deviceStorageUsageMbytes:Xv(null==c?void 0:c.usage),deviceStorageQuotaMbytes:Xv(null==c?void 0:c.quota)});a.i("idbQuotaExceeded",c)})} function Xv(a){return"undefined"===typeof a?"-1":String(Math.ceil(a/1048576))} ;function Yv(a,b,c){J.call(this);var d=this;c=c||L("POST_MESSAGE_ORIGIN")||window.document.location.protocol+"//"+window.document.location.hostname;this.l=b||null;this.targetOrigin="*";this.o=c;this.sessionId=null;this.channel="widget";this.B=!!a;this.v=function(e){a:if(!("*"!=d.o&&e.origin!=d.o||d.l&&e.source!=d.l||"string"!==typeof e.data)){try{var f=JSON.parse(e.data)}catch(g){break a}if(!(null==f||d.B&&(d.sessionId&&d.sessionId!=f.id||d.channel&&d.channel!=f.channel))&&f)switch(f.event){case "listening":"null"!= e.origin&&(d.o=d.targetOrigin=e.origin);d.l=e.source;d.sessionId=f.id;d.j&&(d.j(),d.j=null);break;case "command":d.m&&(!d.s||0<=eb(d.s,f.func))&&d.m(f.func,f.args,e.origin)}}}; this.s=this.j=this.m=null;window.addEventListener("message",this.v)} r(Yv,J);Yv.prototype.sendMessage=function(a,b){if(b=b||this.l){this.sessionId&&(a.id=this.sessionId);this.channel&&(a.channel=this.channel);try{var c=JSON.stringify(a);b.postMessage(c,this.targetOrigin)}catch(d){xk(d)}}}; Yv.prototype.D=function(){window.removeEventListener("message",this.v);J.prototype.D.call(this)};function Zv(){this.j=[];this.isReady=!1;this.l={};var a=this.i=new Yv(!!L("WIDGET_ID_ENFORCE")),b=this.Uc.bind(this);a.m=b;a.s=null;this.i.channel="widget";if(a=L("WIDGET_ID"))this.i.sessionId=a} l=Zv.prototype;l.Uc=function(a,b,c){"addEventListener"===a&&b?(a=b[0],this.l[a]||"onReady"===a||(this.addEventListener(a,$v(this,a)),this.l[a]=!0)):this.Db(a,b,c)}; l.Db=function(){}; function $v(a,b){return function(c){return a.sendMessage(b,c)}} l.addEventListener=function(){}; l.Hc=function(){this.isReady=!0;this.sendMessage("initialDelivery",this.pb());this.sendMessage("onReady");fb(this.j,this.kc,this);this.j=[]}; l.pb=function(){return null}; function aw(a,b){a.sendMessage("infoDelivery",b)} l.kc=function(a){this.isReady?this.i.sendMessage(a):this.j.push(a)}; l.sendMessage=function(a,b){this.kc({event:a,info:void 0===b?null:b})}; l.dispose=function(){this.i=null};function bw(a){return(0===a.search("cue")||0===a.search("load"))&&"loadModule"!==a} function cw(a,b,c){if("string"===typeof a)return{videoId:a,startSeconds:b,suggestedQuality:c};b=["endSeconds","startSeconds","mediaContentUrl","suggestedQuality","videoId"];c={};for(var d=0;d>>0);function Pw(a,b,c){var d="player";c=void 0===c?!0:c;d="string"===typeof d?bf(d):d;var e=Ow+"_"+Ra(d),f=Nw[e];if(f&&c)return Qw(a,b)?f.api.loadVideoByPlayerVars(a.args||null):f.loadNewVideoConfig(a),f.api;f=new uw(d,e,a,b);Nw[e]=f;yq("player-added",f.api);ne(f,function(){delete Nw[f.getId()]}); return f.api} function Qw(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 Rw=null,Sw=null,Tw=null;function Uw(){var a=Rw.getVideoData(1);a=a.title?a.title+" - YouTube":"YouTube";document.title!==a&&(document.title=a)} ;function Vw(a,b,c){a="ST-"+ic(a).toString(36);b=b?rc(b):"";c=c||5;vs()&&gl(a,b,c)} ;function Ww(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=L("EVENT_ID");d&&(b.ei||(b.ei=d));if(b){d=a;var e=void 0===e?!0:e;var f=L("VALID_SESSION_TEMPDATA_DOMAINS",[]),g=mc(window.location.href);g&&f.push(g);g=mc(d);if(0<=eb(f,g)||!g&&0==d.lastIndexOf("/",0))if(M("autoescape_tempdata_url")&&(f=document.createElement("a"),dc(f,d),d=f.href),d&&(d=nc(d),f=d.indexOf("#"),d=0>f?d:d.slice(0,f)))if(e&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:gs()},b)),h){var h=parseInt(h,10);isFinite(h)&&0