(function(){'use strict';var r;function aa(a){var b=0;return function(){return b>>0)+"_",e=0;return b}); v("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=f}}); v("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Ka(this,b,"endsWith");b+="";c===void 0&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;e>0&&c>0;)if(d[--c]!=b[--e])return!1;return e<=0}}); v("Number.isFinite",function(a){return a?a:function(b){return typeof b!=="number"?!1:!isNaN(b)&&b!==Infinity&&b!==-Infinity}}); v("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>>0;if(b===0)return 32;var c=0;(b&4294901760)===0&&(b<<=16,c+=16);(b&4278190080)===0&&(b<<=8,c+=8);(b&4026531840)===0&&(b<<=4,c+=4);(b&3221225472)===0&&(b<<=2,c+=2);(b&2147483648)===0&&c++;return c}}); v("Math.log10",function(a){return a?a:function(b){return Math.log(b)/Math.LN10}});/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ var La=La||{},C=this||self;function D(a,b,c){a=a.split(".");c=c||C;for(var d;a.length&&(d=a.shift());)a.length||b===void 0?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b} function E(a,b){a=a.split(".");b=b||C;for(var c=0;c>>0),Va=0;function Wa(a,b,c){return a.call.apply(a.bind,arguments)} function Xa(a,b,c){if(!a)throw Error();if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}} function Za(a,b,c){Za=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?Wa:Xa;return Za.apply(null,arguments)} function $a(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}} function ab(){return Date.now()} function bb(a){return a} function cb(a,b){function c(){} c.prototype=b.prototype;a.Aa=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(d,e,f){for(var g=Array(arguments.length-2),h=2;h=0)&&Array.prototype.splice.call(a,b,1);return c} function Ub(a,b){for(var c=1;c4);e++)b[Zb(a[e])]||(c+="\nInner error "+d++ +": ",a[e].stack&&a[e].stack.indexOf(a[e].toString())==0||(c+=typeof a[e]==="string"?a[e]:a[e].message+"\n"),c+=Xb(a[e],b));e>>0;return b} ;var ac=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function bc(a){return a?decodeURI(a):a} function cc(a,b){return b.match(ac)[a]||null} function dc(a){return bc(cc(3,a))} function ec(a){var b=a.match(ac);a=b[5];var c=b[6];b=b[7];var d="";a&&(d+=a);c&&(d+="?"+c);b&&(d+="#"+b);return d} function fc(a){var b=a.indexOf("#");return b<0?a:a.slice(0,b)} function hc(a,b,c){if(Array.isArray(b))for(var d=0;dc){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;b=a[0]+(a[1]?"?"+a[1]:"")+a[2]}else b=a;return b} function kc(a,b,c,d){for(var e=c.length;(b=a.indexOf(c,b))>=0&&b=0;)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.slice(d));return f.join("").replace(mc,"$1")} ;var oc=(new Date("2024-01-01T00:00:00Z")).getTime();function pc(a){var b=B.apply(1,arguments).filter(function(d){return d}).join("&"); if(!b)return a;var c=a.match(/[?&]adurl=/);return c?a.slice(0,c.index+1)+b+"&"+a.slice(c.index+1):a+(a.indexOf("?")===-1?"?":"&")+b} function qc(a){var b=a.url;a=a.Xh;this.j=b;this.D=a;a=/[?&]dsh=1(&|$)/.test(b);this.u=!a&&/[?&]ae=1(&|$)/.test(b);this.M=!a&&/[?&]ae=2(&|$)/.test(b);if((this.h=/[?&]adurl=([^&]*)/.exec(b))&&this.h[1]){try{var c=decodeURIComponent(this.h[1])}catch(d){c=null}this.i=c}this.o=(new Date).getTime()-oc} function rc(a){a=a.D;if(!a)return"";var b="";a.platform&&(b+="&uap="+encodeURIComponent(a.platform));a.platformVersion&&(b+="&uapv="+encodeURIComponent(a.platformVersion));a.uaFullVersion&&(b+="&uafv="+encodeURIComponent(a.uaFullVersion));a.architecture&&(b+="&uaa="+encodeURIComponent(a.architecture));a.model&&(b+="&uam="+encodeURIComponent(a.model));a.bitness&&(b+="&uab="+encodeURIComponent(a.bitness));a.fullVersionList&&(b+="&uafvl="+encodeURIComponent(a.fullVersionList.map(function(c){return encodeURIComponent(c.brand)+ ";"+encodeURIComponent(c.version)}).join("|"))); typeof a.wow64!=="undefined"&&(b+="&uaw="+Number(a.wow64));return b.substring(1)} ;function sc(){try{var a,b;return!!((a=window)==null?0:(b=a.top)==null?0:b.location.href)&&!1}catch(c){return!0}} ;function tc(a){var b=b===void 0?44:b;var c=[];uc(a,vc,6).forEach(function(d){wc(d,2)<=b&&c.push(wc(d,1))}); return c} function xc(a){var b=b===void 0?44:b;var c=[];uc(a,vc,6).forEach(function(d){wc(d,2)>b&&c.push(wc(d,1))}); return c} ;function yc(a){a&&typeof a.dispose=="function"&&a.dispose()} ;function zc(a){for(var b=0,c=arguments.length;b0:!1} function Wc(){return Vc()?!1:G("Opera")} function Xc(){return G("Firefox")||G("FxiOS")} function Yc(){return Vc()?Uc("Chromium"):(G("Chrome")||G("CriOS"))&&!(Vc()?0:G("Edge"))||G("Silk")} ;function Zc(){return Oc?!!Sc&&!!Sc.platform:!1} function $c(){return G("iPhone")&&!G("iPod")&&!G("iPad")} ;var ad=Wc(),bd=Vc()?!1:G("Trident")||G("MSIE"),cd=G("Edge"),dd=G("Gecko")&&!(Rc().toLowerCase().indexOf("webkit")!=-1&&!G("Edge"))&&!(G("Trident")||G("MSIE"))&&!G("Edge"),ed=Rc().toLowerCase().indexOf("webkit")!=-1&&!G("Edge");ed&&G("Mobile");Zc()||G("Macintosh");Zc()||G("Windows");(Zc()?Sc.platform==="Linux":G("Linux"))||Zc()||G("CrOS");var fd=Zc()?Sc.platform==="Android":G("Android");$c();G("iPad");G("iPod");$c()||G("iPad")||G("iPod");Rc().toLowerCase().indexOf("kaios");Xc();var gd=$c()||G("iPod"),hd=G("iPad");!G("Android")||Yc()||Xc()||Wc()||G("Silk");Yc();var id=G("Safari")&&!(Yc()||(Vc()?0:G("Coast"))||Wc()||(Vc()?0:G("Edge"))||(Vc()?Uc("Microsoft Edge"):G("Edg/"))||(Vc()?Uc("Opera"):G("OPR"))||Xc()||G("Silk")||G("Android"))&&!($c()||G("iPad")||G("iPod"));var jd={},kd=null;function ld(a,b){Na(a);b===void 0&&(b=0);md();b=jd[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++]=""+l+g+h+k}l=0;k=d;switch(a.length-e){case 2:l=a[e+1],k=b[(l&15)<<2]||d;case 1:a=a[e],c[f]=""+b[a>>2]+b[(a&3)<<4|l>>4]+k+d}return c.join("")} function nd(a){var b=a.length,c=b*3/4;c%3?c=Math.floor(c):"=.".indexOf(a[b-1])!=-1&&(c="=.".indexOf(a[b-2])!=-1?c-2:c-1);var d=new Uint8Array(c),e=0;od(a,function(f){d[e++]=f}); return e!==c?d.subarray(0,e):d} function od(a,b){function c(k){for(;d>4);g!=64&&(b(f<<4&240|g>>2),h!=64&&b(g<<6&192|h))}} function md(){if(!kd){kd={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;c<5;c++){var d=a.concat(b[c].split(""));jd[c]=d;for(var e=0;e=je&&a<=ke:a[0]==="-"?le(a,me):le(a,ne)}),me=Number.MIN_SAFE_INTEGER.toString(),je=he?BigInt(Number.MIN_SAFE_INTEGER):void 0,ne=Number.MAX_SAFE_INTEGER.toString(),ke=he?BigInt(Number.MAX_SAFE_INTEGER):void 0; function le(a,b){if(a.length>b.length)return!1;if(a.lengthe)return!1;if(d>>0;pe=b;qe=(a-b)/4294967296>>>0} function se(a){if(a<0){re(0-a);var b=y(te(pe,qe));a=b.next().value;b=b.next().value;pe=a>>>0;qe=b>>>0}else re(a)} function ue(a,b){b>>>=0;a>>>=0;if(b<=2097151)var c=""+(4294967296*b+a);else Pd()?c=""+(BigInt(b)<>>24|b<<8)&16777215,b=b>>16&65535,a=(a&16777215)+c*6777216+b*6710656,c+=b*8147497,b*=2,a>=1E7&&(c+=a/1E7>>>0,a%=1E7),c>=1E7&&(b+=c/1E7>>>0,c%=1E7),c=b+ve(c)+ve(a));return c} function ve(a){a=String(a);return"0000000".slice(a.length)+a} function we(){var a=pe,b=qe;b&2147483648?Pd()?a=""+(BigInt(b|0)<>>0)):(b=y(te(a,b)),a=b.next().value,b=b.next().value,a="-"+ue(a,b)):a=ue(a,b);return a} function te(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]} ;var xe=typeof BigInt==="function"?BigInt.asIntN:void 0,ye=Number.isSafeInteger,ze=Number.isFinite,Ae=Math.trunc;function Be(a){return a.displayName||a.name||"unknown type name"} function Ce(a){if(a!=null&&typeof a!=="boolean")throw Error("Expected boolean but got "+Ma(a)+": "+a);return a} var De=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function Ee(a){switch(typeof a){case "bigint":return!0;case "number":return ze(a);case "string":return De.test(a);default:return!1}} function Fe(a){if(typeof a!=="number")throw Bd("int32");if(!ze(a))throw Bd("int32");return a|0} function Ge(a){return a==null?a:Fe(a)} function He(a){if(a==null)return a;if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;return ze(a)?a|0:void 0} function Ie(a){var b=0;b=b===void 0?0:b;if(!Ee(a))throw Bd("int64");var c=typeof a;switch(b){case 4096:switch(c){case "string":return Je(a);case "bigint":return String(xe(64,a));default:return Ke(a)}case 8192:switch(c){case "string":return b=Ae(Number(a)),ye(b)?a=ie(b):(b=a.indexOf("."),b!==-1&&(a=a.substring(0,b)),a=Pd()?ie(xe(64,BigInt(a))):ie(Le(a))),a;case "bigint":return ie(xe(64,a));default:return ye(a)?ie(Me(a)):ie(Ke(a))}case 0:switch(c){case "string":return Je(a);case "bigint":return ie(xe(64, a));default:return Me(a)}default:return zb(b,"Unknown format requested type for int64")}} function Ne(a){return a==null?a:Ie(a)} function Oe(a){var b=a.length;return a[0]==="-"?b<20?!0:b===20&&Number(a.substring(0,7))>-922337:b<19?!0:b===19&&Number(a.substring(0,6))<922337} function Le(a){a.indexOf(".");if(Oe(a))return a;if(a.length<16)se(Number(a));else if(Pd())a=BigInt(a),pe=Number(a&BigInt(4294967295))>>>0,qe=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+(a[0]==="-");qe=pe=0;for(var c=a.length,d=0+b,e=(c-b)%6+b;e<=c;d=e,e+=6)d=Number(a.slice(d,e)),qe*=1E6,pe=pe*1E6+d,pe>=4294967296&&(qe+=Math.trunc(pe/4294967296),qe>>>=0,pe>>>=0);b&&(b=y(te(pe,qe)),a=b.next().value,b=b.next().value,pe=a,qe=b)}return we()} function Me(a){Ee(a);a=Ae(a);if(!ye(a)){se(a);var b=pe,c=qe;if(a=c&2147483648)b=~b+1>>>0,c=~c>>>0,b==0&&(c=c+1>>>0);var d=c*4294967296+(b>>>0);b=Number.isSafeInteger(d)?d:ue(b,c);a=typeof b==="number"?a?-b:b:a?"-"+b:b}return a} function Ke(a){Ee(a);a=Ae(a);if(ye(a))a=String(a);else{var b=String(a);Oe(b)?a=b:(se(a),a=we())}return a} function Je(a){Ee(a);var b=Ae(Number(a));if(ye(b))return String(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return Le(a)} function Pe(a){if(a==null)return a;if(typeof a==="bigint")return oe(a)?a=Number(a):(a=xe(64,a),a=oe(a)?Number(a):String(a)),a;if(Ee(a))return typeof a==="number"?Me(a):Je(a)} function Qe(a){if(typeof a!=="string")throw Error();return a} function Re(a){if(a!=null&&typeof a!=="string")throw Error();return a} function Se(a,b){if(!(a instanceof b))throw Error("Expected instanceof "+Be(b)+" but got "+(a&&Be(a.constructor)));} function Te(a,b,c){if(a!=null&&typeof a==="object"&&a.Sc===Rd)return a;if(Array.isArray(a)){var d=a[I]|0,e=d;e===0&&(e|=c&32);e|=c&2;e!==d&&Md(a,e);return new b(a)}} ;function Ue(a,b){return Ve(b)} function Ve(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "bigint":return oe(a)?Number(a):String(a);case "boolean":return a?1:0;case "object":if(a)if(Array.isArray(a)){if(Vd(a))return}else{if(vd(a))return rd(a);if(a instanceof xd){var b=a.h;return b==null?"":typeof b==="string"?b:a.h=rd(b)}}}return a} ;function We(a,b,c){var d=Qd(a),e=d.length,f=b&256?d[e-1]:void 0;e+=f?-1:0;for(b=b&512?1:0;b=1024)throw Error("pvtlmt");d=d&-33521665|(b&1023)<<15;break a}}if(b){b=Math.max(b,e-(d&512?0:-1));if(b>1024)throw Error("spvt");d=d&-33521665|(b&1023)<<15}}}Md(a,d);return a} ;function af(a,b,c){c=c===void 0?Od:c;if(a!=null){if(pd&&a instanceof Uint8Array)return b?a:new Uint8Array(a);if(Array.isArray(a)){var d=a[I]|0;if(d&2)return a;b&&(b=d===0||!!(d&32)&&!(d&64||!(d&16)));return b?(Md(a,(d|34)&-12293),a):Ye(a,af,d&4?Od:c,!0,!0)}a.Sc===Rd&&(c=a.F,d=c[I]|0,a=d&2?a:new a.constructor(bf(c,d,!0)));return a}} function bf(a,b,c){var d=c||b&2?Od:Nd,e=!!(b&32);a=We(a,b,function(f){return af(f,e,d)}); Ld(a,32|(c?2:0));return a} function cf(a){var b=a.F,c=b[I]|0;return c&2?new a.constructor(bf(b,c,!1)):a} ;function df(a,b){a=a.F;return ef(a,a[I]|0,b)} function ef(a,b,c,d){if(c===-1)return null;var e=c+(b&512?0:-1),f=a.length-1;if(e>=f&&b&256)return a[f][c];if(d&&b&256&&(b=a[f][c],b!=null)){if(a[e]!=null&&Gd!=null){var g;a=(g=Ad)!=null?g:Ad={};g=a[Gd]||0;g>=4||(a[Gd]=g+1,g=Error(),Vb(g,"incident"),Nc(g))}return b}if(e<=f)return a[e]} function ff(a,b,c){var d=a.F,e=d[I]|0;Yd(e);gf(d,e,b,c);return a} function gf(a,b,c,d){var e=b&512?0:-1,f=c+e,g=a.length-1;if(f>=g&&b&256)return a[g][c]=d,b;if(f<=g)return a[f]=d,b&256&&(a=a[g],c in a&&delete a[c]),b;d!==void 0&&(g=b>>15&1023||536870912,c>=g?d!=null&&(f={},a[g+e]=(f[c]=d,f),b|=256,Md(a,b)):a[f]=d);return b} function hf(a){return jf(a,kf,11,!1)!==void 0} function lf(a){return!!(2&a)&&!!(4&a)||!!(2048&a)} function mf(a,b,c){var d=a.F,e=d[I]|0;Yd(e);if(b==null)return gf(d,e,3),a;if(!Array.isArray(b))throw Bd();var f=b[I]|0,g=f,h=lf(f),k=h||Object.isFrozen(b);h||(f=0);k||(b=Qd(b),g=0,f=nf(f,e),f=of(f,e,!0),k=!1);f|=21;h=4&f?4096&f?4096:8192&f?8192:0:void 0;h=h!=null?h:0;for(var l=0;l=0;n--){var p=c[n];d&&n===c.length-1&&p===d||(l++,p!=null&&k++)}if(d)for(var t in d)n=+t,isNaN(n)||(m+=Mf(n),h++,n>g&&(g=n));l=e(l,k)+f(h,g,m);t=k;n=h;p=g;for(var u=m,x=c.length-1;x>=0;x--){var z=c[x];if(!(z==null||d&&x===c.length-1&&z===d)){z=x-b;var H=e(z,t)+f(n,p,u);H= 1024||(n--,t++,u-=K.length,g=e(d,t)+f(n,p,u),g1?a-1:0)} function Kf(a,b){return(a>1?a-1:0)+(a-b)*4} function If(a,b){return a==0?0:9*Math.max(1<<32-Math.clz32(a+a/2-1),4)<=b?a==0?0:a<4?100+(a-1)*16:a<6?148+(a-4)*16:a<12?244+(a-6)*16:a<22?436+(a-12)*19:a<44?820+(a-22)*17:52+32*a:40+4*b} function Hf(a){return 40+4*a} function Mf(a){return a>=100?a>=1E4?Math.ceil(Math.log10(1+a)):a<1E3?3:4:a<10?1:2} ;var Nf;function Of(a){return a} var Pf;function L(a,b,c){this.F=J(a,b,c)} r=L.prototype;r.toJSON=function(){var a=!Pf;try{return a&&(Pf=$e),Qf(this)}finally{a&&(Pf=void 0)}}; r.serialize=function(a){try{return Pf=Of,a&&(Nf=a===Ef||a!==Df&&a!==Ff&&a!==Jf?Ef:a),JSON.stringify(Qf(this),Ue)}finally{a&&(Nf=void 0),Pf=void 0}}; function Rf(a,b){if(b==null||b=="")return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");Ld(b,32);return new a(b)} r.clone=function(){var a=this.F;return new this.constructor(bf(a,a[I]|0,!1))}; r.Sc=Rd;r.toString=function(){try{return Pf=Of,Qf(this).toString()}finally{Pf=void 0}}; function Qf(a){var b=a.F,c=Pf(b);b=c!==b;var d=(b?a.F:c)[I]|0;if(a=c.length){var e=c[a-1],f=Ud(e);f?a--:e=void 0;var g=d&512?0:-1,h=a-g;d=!!Nf&&!(d&512);var k,l=(k=Nf)!=null?k:Ef;k=d?l(h,g,c,e):h;d=(h=d&&h!==k)?Array.prototype.slice.call(c,0,a):c;if(f||h){b:{var m=d;var n=e;var p;f=!1;if(h)for(l=Math.max(0,k+g);l0;a--){p=d[a-1];if(!(p==null||Vd(p)||Td(p)&&p.size===0))break;H=!0}if(d!==c||m||H){if(!h&&!b)d=Array.prototype.slice.call(d,0,a);else if(H||m||n)d.length=a;n&&d.push(n)}c=d}return c} ;function Sf(a){return function(b){return Rf(a,b)}} ;function Tf(a){this.F=J(a)} w(Tf,L);function Uf(a,b){return mf(a,b,Fe)} ;function Vf(a){this.F=J(a)} w(Vf,L);var Wf=[1,2,3];function Xf(a){this.F=J(a)} w(Xf,L);var Yf=[1,2,3];function Zf(a){this.F=J(a)} w(Zf,L);function $f(a){this.F=J(a)} w($f,L);function ag(a){this.F=J(a)} w(ag,L);function bg(a){if(!a)return"";if(/^about:(?:blank|srcdoc)$/.test(a))return window.origin||"";a.indexOf("blob:")===0&&(a=a.substring(5));a=a.split("#")[0].split("?")[0];a=a.toLowerCase();a.indexOf("//")==0&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");c!=-1&&(b=b.substring(0,c));c=a.substring(0,a.indexOf("://"));if(!c)throw Error("URI is missing protocol: "+a);if(c!=="http"&&c!=="https"&&c!=="chrome-extension"&& c!=="moz-extension"&&c!=="file"&&c!=="android-app"&&c!=="chrome-search"&&c!=="chrome-untrusted"&&c!=="chrome"&&c!=="app"&&c!=="devtools")throw Error("Invalid URI scheme in origin: "+c);a="";var d=b.indexOf(":");if(d!=-1){var e=b.substring(d+1);b=b.substring(0,d);if(c==="http"&&e!=="80"||c==="https"&&e!=="443")a=":"+e}return c+"://"+b+a} ;function cg(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;m=l=0} function b(n){for(var p=g,t=0;t<64;t+=4)p[t/4]=n[t]<<24|n[t+1]<<16|n[t+2]<<8|n[t+3];for(t=16;t<80;t++)n=p[t-3]^p[t-8]^p[t-14]^p[t-16],p[t]=(n<<1|n>>>31)&4294967295;n=e[0];var u=e[1],x=e[2],z=e[3],H=e[4];for(t=0;t<80;t++){if(t<40)if(t<20){var K=z^u&(x^z);var da=1518500249}else K=u^x^z,da=1859775393;else t<60?(K=u&x|z&(u|x),da=2400959708):(K=u^x^z,da=3395469782);K=((n<<5|n>>>27)&4294967295)+K+H+da+p[t]&4294967295;H=z;z=x;x=(u<<30|u>>>2)&4294967295;u=n;n=K}e[0]=e[0]+n&4294967295;e[1]=e[1]+u&4294967295; e[2]=e[2]+x&4294967295;e[3]=e[3]+z&4294967295;e[4]=e[4]+H&4294967295} function c(n,p){if(typeof n==="string"){n=unescape(encodeURIComponent(n));for(var t=[],u=0,x=n.length;u=56;t--)f[t]=p&255,p>>>=8;b(f);for(t=p=0;t<5;t++)for(var u=24;u>=0;u-=8)n[p++]=e[t]>>u&255;return n} for(var e=[],f=[],g=[],h=[128],k=1;k<64;++k)h[k]=0;var l,m;a();return{reset:a,update:c,digest:d,ke:function(){for(var n=d(),p="",t=0;t=0;a--)this.remove(b[a])}; var hg=new gg(typeof document=="undefined"?null:document);function ig(){var a=C.__SAPISID||C.__APISID||C.__3PSAPISID||C.__1PSAPISID||C.__OVERRIDE_SID;if(a)return!0;typeof document!=="undefined"&&(a=new gg(document),a=a.get("SAPISID")||a.get("APISID")||a.get("__Secure-3PAPISID")||a.get("__Secure-1PAPISID"));return!!a} function jg(a,b,c,d){(a=C[a])||typeof document==="undefined"||(a=(new gg(document)).get(b));return a?dg(a,c,d):null} function kg(a){var b=bg(String(C.location.href)),c=[];if(ig()){b=b.indexOf("https:")==0||b.indexOf("chrome-extension:")==0||b.indexOf("chrome-untrusted://new-tab-page")==0||b.indexOf("moz-extension:")==0;var d=b?C.__SAPISID:C.__APISID;d||typeof document==="undefined"||(d=new gg(document),d=d.get(b?"SAPISID":"APISID")||d.get("__Secure-3PAPISID"));(d=d?dg(d,b?"SAPISIDHASH":"APISIDHASH",a):null)&&c.push(d);b&&((b=jg("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&c.push(b),(a=jg("__3PSAPISID", "__Secure-3PAPISID","SAPISID3PHASH",a))&&c.push(a))}return c.length==0?null:c.join(" ")} ;function lg(){} lg.prototype.compress=function(a){var b,c,d,e;return A(function(f){switch(f.h){case 1:return b=new CompressionStream("gzip"),c=(new Response(b.readable)).arrayBuffer(),d=b.writable.getWriter(),f.yield(d.write((new TextEncoder).encode(a)),2);case 2:return f.yield(d.close(),3);case 3:return e=Uint8Array,f.yield(c,4);case 4:return f.return(new e(f.i))}})}; lg.prototype.isSupported=function(a){return a<1024?!1:typeof CompressionStream!=="undefined"};function mg(a){this.F=J(a)} w(mg,L);function ng(a,b){this.intervalMs=a;this.callback=b;this.enabled=!1;this.h=function(){return ab()}; this.i=this.h()} ng.prototype.setInterval=function(a){this.intervalMs=a;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}; ng.prototype.start=function(){var a=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){a.tick()},this.intervalMs),this.i=this.h())}; ng.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)}; ng.prototype.tick=function(){var a=this;if(this.enabled){var b=Math.max(this.h()-this.i,0);b0&&(h=ah(a),ff(h,3,Ge(d)));hf($g(a))&&f>0&&(d=ah(a),ff(d,4,Ge(f)));hf($g(a))&&g>0&&(f=ah(a),ff(f,5,Ge(g))); a=a.h.clone();g=Date.now().toString();a=ff(a,4,Ne(g));b=b.slice();b=uf(a,Ug,3,b);e&&(a=new og,e=ff(a,13,Ge(e)),a=new pg,e=tf(a,og,2,e),a=new Tg,e=tf(a,pg,1,e),e=Cf(e,2,9),tf(b,Tg,18,e));c&&ff(b,14,Ne(c));return b} ;var dh=function(){if(!C.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}}); try{var c=function(){}; C.addEventListener("test",c,b);C.removeEventListener("test",c,b)}catch(d){}return a}();function eh(a){this.h=this.i=this.j=a} eh.prototype.reset=function(){this.h=this.i=this.j}; eh.prototype.getValue=function(){return this.i};function fh(a){this.F=J(a,8)} w(fh,L);var gh=Sf(fh);function hh(a){this.F=J(a)} w(hh,L);var kh=new function(){this.ctor=hh;this.isRepeated=0;this.h=sf;this.defaultValue=void 0};function lh(a){F.call(this);var b=this;this.componentId="";this.h=[];this.Pa="";this.pageId=null;this.Qa=this.ha=-1;this.G=this.experimentIds=null;this.Y=this.Z=this.D=this.o=0;this.rb=1;this.timeoutMillis=0;this.pa=!1;this.logSource=a.logSource;this.hb=a.hb||function(){}; this.j=new Wg(a.logSource,a.Wa);this.network=a.network||null;this.mb=a.mb||null;this.bufferSize=1E3;this.P=a.Af||null;this.sessionIndex=a.sessionIndex||null;this.Ob=a.Ob||!1;this.logger=null;this.withCredentials=!a.rd;this.Wa=a.Wa||!1;this.U=!this.Wa&&!!window&&!!window.navigator&&window.navigator.sendBeacon!==void 0;this.Fa=typeof URLSearchParams!=="undefined"&&!!(new URL(mh())).searchParams&&!!(new URL(mh())).searchParams.set;var c=Cf(new Sg,1,1);Xg(this.j,c);this.u=new eh(1E4);a=nh(this,a.md); this.i=new ng(this.u.getValue(),a);this.xa=new ng(6E5,a);this.Ob||this.xa.start();this.Wa||(document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&b.Kc()}),document.addEventListener("pagehide",this.Kc.bind(this)))} w(lh,F);function nh(a,b){return a.Fa?b?function(){b().then(function(){a.flush()})}:function(){a.flush()}:function(){}} r=lh.prototype;r.ba=function(){this.Kc();this.i.stop();this.xa.stop();F.prototype.ba.call(this)}; function oh(a){a.P||(a.P=mh());try{return(new URL(a.P)).toString()}catch(b){return(new URL(a.P,window.location.origin)).toString()}} r.log=function(a){if(this.Fa){a=a.clone();var b=this.rb++;a=ff(a,21,Ne(b));this.componentId&&Af(a,26,this.componentId);b=a;if(vf(b)==null){var c=Date.now();c=Number.isFinite(c)?c.toString():"0";ff(b,1,Ne(c))}Pe(df(b,15))==null&&ff(b,15,Ne((new Date).getTimezoneOffset()*60));this.experimentIds&&(c=this.experimentIds.clone(),tf(b,mg,16,c));b=this.h.length-this.bufferSize+1;b>0&&(this.h.splice(0,b),this.o+=b);this.h.push(a);this.Ob||this.i.enabled||this.i.start()}}; r.flush=function(a,b){var c=this;if(this.h.length===0)a&&a();else if(this.pa&&this.U)Zg(this.j,3),ph(this);else{var d=Date.now();if(this.Qa>d&&this.ha0&&(c.ha=Date.now(),c.Qa=c.ha+x);p=kh.ctor?kh.h(p,kh.ctor,175237375,!0):kh.h(p,175237375,null,!0);if(p=p===null?void 0:p)p=wc(p,1,-1),p!==-1&&(c.u=new eh(p<1?1:p),c.i.setInterval(c.u.getValue()))}}a&&a();c.D=0},l=function(n,p){var t= uc(e,Ug,3); var u;var x=(u=Pe(df(e,14)))!=null?u:void 0;u=c.u;u.h=Math.min(3E5,u.h*2);u.i=Math.min(3E5,u.h+Math.round(.1*(Math.random()-.5)*2*u.h));c.i.setInterval(c.u.getValue());n===401&&f&&(c.Pa=f);x&&(c.o+=x);p===void 0&&(p=c.isRetryable(n));p&&(c.h=t.concat(c.h),c.Ob||c.i.enabled||c.i.start());b&&b("net-send-failed",n);++c.D},m=function(){c.network&&c.network.send(h,k,l)}; g?g.then(function(n){h.Bc["Content-Encoding"]="gzip";h.Bc["Content-Type"]="application/binary";h.body=n;h.de=2;m()},function(){m()}):m()}}}}; function qh(a,b,c){c=c===void 0?a.hb():c;var d={},e=new URL(oh(a));c&&(d.Authorization=c);a.sessionIndex&&(d["X-Goog-AuthUser"]=a.sessionIndex,e.searchParams.set("authuser",a.sessionIndex));a.pageId&&(Object.defineProperty(d,"X-Goog-PageId",{value:a.pageId}),e.searchParams.set("pageId",a.pageId));return{url:e.toString(),body:b,de:1,Bc:d,requestType:"POST",withCredentials:a.withCredentials,timeoutMillis:a.timeoutMillis}} r.Kc=function(){var a=this.j;hf($g(a))&&Kg(ah(a),!0);this.flush();a=this.j;hf($g(a))&&Kg(ah(a),!1)}; function ph(a){rh(a,function(b,c){b=new URL(b);b.searchParams.set("format","json");var d=!1;try{d=window.navigator.sendBeacon(b.toString(),c.serialize())}catch(e){}d||(a.U=!1);return d})} function rh(a,b){if(a.h.length!==0){var c=new URL(oh(a));c.searchParams.delete("format");var d=a.hb();d&&c.searchParams.set("auth",d);c.searchParams.set("authuser",a.sessionIndex||"0");for(d=0;d<10&&a.h.length;++d){var e=a.h.slice(0,32),f=ch(a.j,e,a.o,a.D,a.mb,a.Z,a.Y);if(!b(c.toString(),f)){++a.D;break}a.o=0;a.D=0;a.Z=0;a.Y=0;a.h=a.h.slice(e.length)}a.i.enabled&&a.i.stop()}} r.isRetryable=function(a){return 500<=a&&a<600||a===401||a===0}; function mh(){return"https://play.google.com/log?format=json&hasfast=true"} ;function sh(){this.Xd=typeof AbortController!=="undefined"} sh.prototype.send=function(a,b,c){var d=this,e,f,g,h,k,l,m,n,p,t;return A(function(u){switch(u.h){case 1:return f=(e=d.Xd?new AbortController:void 0)?setTimeout(function(){e.abort()},a.timeoutMillis):void 0,za(u,2,3),g=Object.assign({},{method:a.requestType, headers:Object.assign({},a.Bc)},a.body&&{body:a.body},a.withCredentials&&{credentials:"include"},{signal:a.timeoutMillis&&e?e.signal:null}),u.yield(fetch(a.url,g),5);case 5:h=u.i;if(h.status!==200){(k=c)==null||k(h.status);u.A(3);break}if((l=b)==null){u.A(7);break}return u.yield(h.text(),8);case 8:l(u.i);case 7:case 3:u.P=[u.j];u.M=0;u.o=0;clearTimeout(f);Ca(u);break;case 2:m=Ba(u);switch((n=m)==null?void 0:n.name){case "AbortError":(p=c)==null||p(408);break;default:(t=c)==null||t(400)}u.A(3)}})}; sh.prototype.lc=function(){return 4};function th(a,b){F.call(this);this.logSource=a;this.sessionIndex=b;this.Ua="https://play.google.com/log?format=json&hasfast=true";this.i=null;this.o=!1;this.network=null;this.componentId="";this.h=this.mb=null;this.j=!1;this.pageId=null;this.bufferSize=void 0} w(th,F);function uh(a,b){a.i=b;return a} function vh(a,b){a.network=b;return a} function wh(a,b){a.h=b} th.prototype.rd=function(){this.u=!0;return this}; function xh(a){a.network||(a.network=new sh);var b=new lh({logSource:a.logSource,hb:a.hb?a.hb:kg,sessionIndex:a.sessionIndex,Af:a.Ua,Wa:a.o,Ob:!1,rd:a.u,md:a.md,network:a.network});Ac(a,b);if(a.i){var c=a.i,d=Yg(b.j);Af(d,7,c)}b.G=new lg;a.componentId&&(b.componentId=a.componentId);a.mb&&(b.mb=a.mb);a.pageId&&(b.pageId=a.pageId);a.h&&((d=a.h)?(b.experimentIds||(b.experimentIds=new mg),c=b.experimentIds,d=d.serialize(),Af(c,4,d)):b.experimentIds&&ff(b.experimentIds,4));a.j&&(b.pa=b.U);bh(b.j);a.bufferSize&& (b.bufferSize=a.bufferSize);a.network.Wb&&a.network.Wb(a.logSource);a.network.pf&&a.network.pf(b);return b} ;function yh(a,b,c,d,e,f,g){a=a===void 0?-1:a;b=b===void 0?"":b;c=c===void 0?"":c;d=d===void 0?!1:d;e=e===void 0?"":e;F.call(this);this.logSource=a;this.componentId=b;f?b=f:(a=new th(a,"0"),a.componentId=b,Ac(this,a),c!==""&&(a.Ua=c),d&&(a.o=!0),e&&uh(a,e),g&&vh(a,g),b=xh(a));this.h=b} w(yh,F); yh.prototype.flush=function(a){var b=a||[];if(b.length){a=new ag;for(var c=[],d=0;d-1?(b=a[g],c||(b.ec=!1)):(b=new Jh(b,this.src,f,!!d,e),b.ec=c,a.push(b));return b}; Lh.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=Mh(e,b,c,d);return b>-1?(Kh(e[b]),Array.prototype.splice.call(e,b,1),e.length==0&&(delete this.listeners[a],this.h--),!0):!1}; function Nh(a,b){var c=b.type;c in a.listeners&&Tb(a.listeners[c],b)&&(Kh(b),a.listeners[c].length==0&&(delete a.listeners[c],a.h--))} function Mh(a,b,c,d){for(var e=0;e-1?b[a]:null)&&ai(c))} function ai(a){if(typeof a!=="number"&&a&&!a.Vb){var b=a.src;if(b&&b[Hh])Nh(b.i,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(Xh(c),d):b.addListener&&b.removeListener&&b.removeListener(d);Qh--;(c=Vh(b))?(Nh(c,a),c.h==0&&(c.src=null,b[Oh]=null)):Kh(a)}}} function Xh(a){return a in Ph?Ph[a]:Ph[a]="on"+a} function Yh(a,b){if(a.Vb)a=!0;else{b=new Gh(b,this);var c=a.listener,d=a.oc||a.src;a.ec&&ai(a);a=c.call(d,b)}return a} function Vh(a){a=a[Oh];return a instanceof Lh?a:null} var bi="__closure_events_fn_"+(Math.random()*1E9>>>0);function Th(a){if(typeof a==="function")return a;a[bi]||(a[bi]=function(b){return a.handleEvent(b)}); return a[bi]} ;function ci(){F.call(this);this.i=new Lh(this);this.xa=this;this.Z=null} cb(ci,F);ci.prototype[Hh]=!0;r=ci.prototype;r.addEventListener=function(a,b,c,d){Rh(this,a,b,c,d)}; r.removeEventListener=function(a,b,c,d){$h(this,a,b,c,d)}; function di(a,b){var c=a.Z;if(c){var d=[];for(var e=1;c;c=c.Z)d.push(c),++e}a=a.xa;c=b.type||b;typeof b==="string"?b=new Fh(b,a):b instanceof Fh?b.target=b.target||a:(e=b,b=new Fh(c,a),Cg(b,e));e=!0;var f;if(d)for(f=d.length-1;!b.j&&f>=0;f--){var g=b.h=d[f];e=ei(g,c,!0,b)&&e}b.j||(g=b.h=a,e=ei(g,c,!0,b)&&e,b.j||(e=ei(g,c,!1,b)&&e));if(d)for(f=0;!b.j&&f0){this.i--;var a=this.h;this.h=a.next;a.next=null}else a=this.j();return a}; function hi(a,b){a.o(b);a.i<100&&(a.i++,b.next=a.h,a.h=b)} ;function ii(){this.i=this.h=null} ii.prototype.add=function(a,b){var c=ji.get();c.set(a,b);this.i?this.i.next=c:this.h=c;this.i=c}; ii.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 ji=new gi(function(){return new ki},function(a){return a.reset()}); function ki(){this.next=this.scope=this.h=null} ki.prototype.set=function(a,b){this.h=a;this.scope=b;this.next=null}; ki.prototype.reset=function(){this.next=this.scope=this.h=null};var li,mi=!1,ni=new ii;function oi(a,b){li||pi();mi||(li(),mi=!0);ni.add(a,b)} function pi(){var a=Promise.resolve(void 0);li=function(){a.then(qi)}} function qi(){for(var a;a=ni.remove();){try{a.h.call(a.scope)}catch(b){Nc(b)}hi(ji,a)}mi=!1} ;function ri(){} function si(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}} ;function ti(a){this.X=0;this.ab=void 0;this.ub=this.Sa=this.parent_=null;this.nc=this.Jc=!1;if(a!=ri)try{var b=this;a.call(void 0,function(c){ui(b,2,c)},function(c){ui(b,3,c)})}catch(c){ui(this,3,c)}} function vi(){this.next=this.context=this.h=this.i=this.child=null;this.j=!1} vi.prototype.reset=function(){this.context=this.h=this.i=this.child=null;this.j=!1}; var wi=new gi(function(){return new vi},function(a){a.reset()}); function xi(a,b,c){var d=wi.get();d.i=a;d.h=b;d.context=c;return d} function yi(a){return new ti(function(b,c){c(a)})} ti.prototype.then=function(a,b,c){return zi(this,fi(typeof a==="function"?a:null),fi(typeof b==="function"?b:null),c)}; ti.prototype.$goog_Thenable=!0;function Ai(a,b,c,d){Bi(a,xi(b||ri,c||null,d))} r=ti.prototype;r.finally=function(a){var b=this;a=fi(a);return new Promise(function(c,d){Ai(b,function(e){a();c(e)},function(e){a(); d(e)})})}; r.Dc=function(a,b){return zi(this,null,fi(a),b)}; r.catch=ti.prototype.Dc;r.cancel=function(a){if(this.X==0){var b=new Ci(a);oi(function(){Di(this,b)},this)}}; function Di(a,b){if(a.X==0)if(a.parent_){var c=a.parent_;if(c.Sa){for(var d=0,e=null,f=null,g=c.Sa;g&&(g.j||(d++,g.child==a&&(e=g),!(e&&d>1)));g=g.next)e||(f=g);e&&(c.X==0&&d==1?Di(c,b):(f?(d=f,d.next==c.ub&&(c.ub=d),d.next=d.next.next):Ei(c),Fi(c,e,3,b)))}a.parent_=null}else ui(a,3,b)} function Bi(a,b){a.Sa||a.X!=2&&a.X!=3||Gi(a);a.ub?a.ub.next=b:a.Sa=b;a.ub=b} function zi(a,b,c,d){var e=xi(null,null,null);e.child=new ti(function(f,g){e.i=b?function(h){try{var k=b.call(d,h);f(k)}catch(l){g(l)}}:f; e.h=c?function(h){try{var k=c.call(d,h);k===void 0&&h instanceof Ci?g(h):f(k)}catch(l){g(l)}}:g}); e.child.parent_=a;Bi(a,e);return e.child} r.yf=function(a){this.X=0;ui(this,2,a)}; r.zf=function(a){this.X=0;ui(this,3,a)}; function ui(a,b,c){if(a.X==0){a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself"));a.X=1;a:{var d=c,e=a.yf,f=a.zf;if(d instanceof ti){Ai(d,e,f,a);var g=!0}else{if(d)try{var h=!!d.$goog_Thenable}catch(l){h=!1}else h=!1;if(h)d.then(e,f,a),g=!0;else{if(Sa(d))try{var k=d.then;if(typeof k==="function"){Hi(d,k,e,f,a);g=!0;break a}}catch(l){f.call(a,l);g=!0;break a}g=!1}}}g||(a.ab=c,a.X=b,a.parent_=null,Gi(a),b!=3||c instanceof Ci||Ii(a,c))}} function Hi(a,b,c,d,e){function f(k){h||(h=!0,d.call(e,k))} function g(k){h||(h=!0,c.call(e,k))} var h=!1;try{b.call(a,g,f)}catch(k){f(k)}} function Gi(a){a.Jc||(a.Jc=!0,oi(a.re,a))} function Ei(a){var b=null;a.Sa&&(b=a.Sa,a.Sa=b.next,b.next=null);a.Sa||(a.ub=null);return b} r.re=function(){for(var a;a=Ei(this);)Fi(this,a,this.X,this.ab);this.Jc=!1}; function Fi(a,b,c,d){if(c==3&&b.h&&!b.j)for(;a&&a.nc;a=a.parent_)a.nc=!1;if(b.child)b.child.parent_=null,Ji(b,c,d);else try{b.j?b.i.call(b.context):Ji(b,c,d)}catch(e){Ki.call(null,e)}hi(wi,b)} function Ji(a,b,c){b==2?a.i.call(a.context,c):a.h&&a.h.call(a.context,c)} function Ii(a,b){a.nc=!0;oi(function(){a.nc&&Ki.call(null,b)})} var Ki=Nc;function Ci(a){db.call(this,a)} cb(Ci,db);Ci.prototype.name="cancel";function Li(a,b){ci.call(this);this.j=a||1;this.h=b||C;this.o=Za(this.uf,this);this.u=ab()} cb(Li,ci);r=Li.prototype;r.enabled=!1;r.Ea=null;r.setInterval=function(a){this.j=a;this.Ea&&this.enabled?(this.stop(),this.start()):this.Ea&&this.stop()}; r.uf=function(){if(this.enabled){var a=ab()-this.u;a>0&&a=a.o&&a.Yb()} r.Yb=function(){var a=this.i.values();a=[].concat(ra(a)).filter(function(b){return b.h.size}); a.length&&this.G.flush(a,this.u);Oi(a);this.j=0;this.h.enabled&&this.h.stop()}; r.Kb=function(a){var b=B.apply(1,arguments);this.i.has(a)||this.i.set(a,new Dh(a,b))}; r.Gc=function(a){var b=B.apply(1,arguments);this.i.has(a)||this.i.set(a,new Eh(a,b))}; function Pi(a,b){return a.D.has(b)?void 0:a.i.get(b)} r.Ib=function(a){this.Wd(a,1,B.apply(1,arguments))}; r.Wd=function(a,b){var c=B.apply(2,arguments),d=Pi(this,a);d&&d instanceof Dh&&(d.j(b,c),Ni(this))}; r.record=function(a,b){var c=B.apply(2,arguments),d=Pi(this,a);d&&d instanceof Eh&&(d.record(b,c),Ni(this))}; function Oi(a){for(var b=0;b=0)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=y(c);for(d=b.next();!d.done;d=b.next())c=y(d.value),d=c.next().value,c=c.next().value,this.J.setRequestHeader(d,c);this.pa&&(this.J.responseType=this.pa);"withCredentials"in this.J&&this.J.withCredentials!==this.ha&&(this.J.withCredentials=this.ha);try{this.u&&(clearTimeout(this.u),this.u=null),this.G>0&&(this.getStatus(),this.u=setTimeout(this.xf.bind(this),this.G)), this.getStatus(),this.D=!0,this.J.send(a),this.D=!1}catch(g){this.getStatus(),$i(this,g)}}; r.xf=function(){typeof La!="undefined"&&this.J&&(this.o="Timed out after "+this.G+"ms, aborting",this.getStatus(),di(this,"timeout"),this.abort(8))}; function $i(a,b){a.h=!1;a.J&&(a.j=!0,a.J.abort(),a.j=!1);a.o=b;aj(a);bj(a)} function aj(a){a.P||(a.P=!0,di(a,"complete"),di(a,"error"))} r.abort=function(){this.J&&this.h&&(this.getStatus(),this.h=!1,this.j=!0,this.J.abort(),this.j=!1,di(this,"complete"),di(this,"abort"),bj(this))}; r.ba=function(){this.J&&(this.h&&(this.h=!1,this.j=!0,this.J.abort(),this.j=!1),bj(this,!0));Vi.Aa.ba.call(this)}; r.Cd=function(){this.ea||(this.U||this.D||this.j?cj(this):this.Oe())}; r.Oe=function(){cj(this)}; function cj(a){if(a.h&&typeof La!="undefined")if(a.D&&(a.J?a.J.readyState:0)==4)setTimeout(a.Cd.bind(a),0);else if(di(a,"readystatechange"),a.isComplete()){a.getStatus();a.h=!1;try{if(dj(a))di(a,"complete"),di(a,"success");else{try{var b=(a.J?a.J.readyState:0)>2?a.J.statusText:""}catch(c){b=""}a.o=b+" ["+a.getStatus()+"]";aj(a)}}finally{bj(a)}}} function bj(a,b){if(a.J){a.u&&(clearTimeout(a.u),a.u=null);var c=a.J;a.J=null;b||di(a,"ready");try{c.onreadystatechange=null}catch(d){}}} r.isActive=function(){return!!this.J}; r.isComplete=function(){return(this.J?this.J.readyState:0)==4}; function dj(a){var b=a.getStatus();a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var c=!0;break a;default:c=!1}if(!c){if(b=b===0)a=cc(1,String(a.Y)),!a&&C.self&&C.self.location&&(a=C.self.location.protocol.slice(0,-1)),b=!Wi.test(a?a.toLowerCase():"");c=b}return c} r.getStatus=function(){try{return(this.J?this.J.readyState:0)>2?this.J.status:-1}catch(a){return-1}}; r.getLastError=function(){return typeof this.o==="string"?this.o:String(this.o)};function ej(){} ej.prototype.send=function(a,b,c){b=b===void 0?function(){}:b; c=c===void 0?function(){}:c; Zi(a.url,function(d){d=d.target;if(dj(d)){try{var e=d.J?d.J.responseText:""}catch(f){e=""}b(e)}else c(d.getStatus())},a.requestType,a.body,a.Bc,a.timeoutMillis,a.withCredentials)}; ej.prototype.lc=function(){return 1};function fj(a,b){this.logger=a;this.event=b;this.startTime=gj()} fj.prototype.done=function(){this.logger.Sb(this.event,gj()-this.startTime)}; function hj(){Cc.apply(this,arguments)} w(hj,Cc);function ij(a,b){var c=gj();b=b();a.Sb("n",gj()-c);return b} function jj(){hj.apply(this,arguments)} w(jj,hj);r=jj.prototype;r.Pc=function(){}; r.Bb=function(){}; r.Sb=function(){}; r.Ha=function(){}; r.Ac=function(){}; r.Od=function(){}; function kj(a){return{sf:new Fc(a),errorCount:new Jc(a),eventCount:new Hc(a),qe:new Ic(a),ai:new Gc(a),ci:new Kc(a),vh:new Lc(a),bi:new Mc(a)}} function lj(a,b,c,d,e){a=vh(uh(new th(1828,"0"),a),new ej);b.length&&wh(a,Uf(new Tf,b));e!==void 0&&(a.Ua=e);d&&(a.j=!0);var f=new yh(1828,"","",!1,"",xh(a));Ac(f,a);var g=new Mi({flush:function(h){try{f.flush(h)}catch(k){c(k)}}}); g.addOnDisposeCallback(function(){setTimeout(function(){try{g.Yb()}finally{f.dispose()}})}); g.o=1E5;g.flushInterval=3E4;g.h.setInterval(3E4);return g} function mj(a,b){F.call(this);var c=this;this.callback=a;this.i=b;this.h=-b;this.addOnDisposeCallback(function(){return void clearTimeout(c.timer)})} w(mj,F);function nj(a){if(a.timer===void 0){var b=Math.max(0,a.h+a.i-gj());a.timer=setTimeout(function(){try{a.callback()}finally{a.h=gj(),a.timer=void 0}},b)}} function oj(a,b,c){hj.call(this);this.metrics=a;this.Da=b;this.ob=c} w(oj,hj);oj.prototype.Pc=function(a){this.metrics.sf.record(a,this.Da)}; oj.prototype.Bb=function(a){this.metrics.eventCount.h(a,this.Da)}; oj.prototype.Sb=function(a,b){this.metrics.qe.record(b,a,this.ob,this.Da)}; oj.prototype.Ha=function(a){this.metrics.errorCount.h(a,this.ob,this.Da)}; function pj(a,b){b=b===void 0?[]:b;var c={Da:a.Da||"_",ob:a.ob||"",kc:a.kc||[],sc:a.sc|0,Ua:a.Ua,uc:a.uc||function(){}, Ic:!!a.Ic,Hb:a.Hb||function(e,f){return lj(e,f,c.uc,c.Ic,c.Ua)}}; b=c.Hb("44",c.kc.concat(b));oj.call(this,kj(b),c.Da,c.ob);var d=this;this.options=c;this.service=b;this.i=!a.Hb;this.h=new mj(function(){return void d.service.Yb()},c.sc); this.addOnDisposeCallback(function(){d.h.dispose();d.i&&d.service.dispose()})} w(pj,oj);pj.prototype.Od=function(a){var b=this;this.h.dispose();this.i&&this.service.dispose();this.service=this.options.Hb("44",this.options.kc.concat(a));this.h=new mj(function(){return void b.service.Yb()},this.options.sc); this.metrics=kj(this.service)}; pj.prototype.Ac=function(){nj(this.h)}; function gj(){var a,b,c;return(c=(a=globalThis.performance)==null?void 0:(b=a.now)==null?void 0:b.call(a))!=null?c:Date.now()} ;function qj(a){this.F=J(a)} w(qj,L);function rj(a){this.F=J(a)} w(rj,L);function sj(a){this.F=J(a,0,"bfkj")} w(sj,L);var tj=function(a){return ae(function(b){return b instanceof a&&!((b.F[I]|0)&2)})}(sj);function uj(a){this.F=J(a)} w(uj,L);function vc(a){this.F=J(a)} w(vc,L);function vj(a){this.F=J(a)} w(vj,L);var wj=Sf(vj);function xj(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})} ;function yj(a,b,c){if(a.disable)return new jj;var d=b?tc(b):[];if(c)return c.Od(d),c.share();c=a.Da;var e=a.ob,f=a.Bh,g=a.Lh;b=b==null?void 0:sf(b,uj,10);var h=h===void 0?44:h;b=(b==null?void 0:wc(b,1))||0;a={Da:c,ob:e,kc:f,sc:g,Ic:b>0&&h>=b,Ua:a.Ua,uc:a.uc,Hb:a.Hb};d=d===void 0?[]:d;return new pj(a,d)} function zj(a){function b(u,x,z,H){Promise.resolve().then(function(){k.done();h.Ac();h.dispose();g.resolve({ae:u,rf:x,Se:z,xh:H})})} function c(u,x,z,H){if(!d.logger.ea){var K="k";x?K="h":z&&(K="u");K!=="k"?H!==0&&(d.logger.Bb(K),d.logger.Sb(K,u)):d.i<=0?(d.logger.Bb(K),d.logger.Sb(K,u),d.i=Math.floor(Math.random()*200)):d.i--}} F.call(this);var d=this;this.i=Math.floor(Math.random()*200);this.h=new vj;if("challenge"in a&&tj(a.challenge)){var e=yf(a.challenge,4);var f=yf(a.challenge,5);yf(a.challenge,7)&&(this.h=wj(yf(a.challenge,7)))}else e=a.program,f=a.globalName;this.addOnDisposeCallback(function(){var u,x,z;return A(function(H){if(H.h==1)return H.yield(d.j,2);u=H.i;x=u.rf;(z=x)==null||z();H.h=0})}); this.logger=yj(a.Ad||{},this.h,a.yh);Ac(this,this.logger);var g=new xj;this.j=g.promise;this.logger.Bb("t");var h=this.logger.share(),k=new fj(h,"t");if(!C[f])throw this.logger.Ha(25),Error("EGOU");if(!C[f].a)throw this.logger.Ha(26),Error("ELIU");try{var l=C[f].a;f=[];for(var m=[],n=tc(this.h),p=0;p>>31)&4294967295;b=a.h[0];c=a.h[1];e=a.h[2];for(var f=a.h[3],g=a.h[4],h,k,l=0;l<80;l++)l<40?l<20?(h=f^c&(e^f),k=1518500249):(h=c^e^f,k=1859775393):l<60?(h=c&e|f&(c|e),k=2400959708):(h=c^e^f,k=3395469782), h=(b<<5|b>>>27)+h+g+k+d[l]&4294967295,g=f,f=e,e=(c<<30|c>>>2)&4294967295,c=b,b=h;a.h[0]=a.h[0]+b&4294967295;a.h[1]=a.h[1]+c&4294967295;a.h[2]=a.h[2]+e&4294967295;a.h[3]=a.h[3]+f&4294967295;a.h[4]=a.h[4]+g&4294967295} dk.prototype.update=function(a,b){if(a!=null){b===void 0&&(b=a.length);for(var c=b-this.blockSize,d=0,e=this.u,f=this.i;d=56;c--)this.u[c]=b&255,b/=256;ek(this,this.u);for(c=b=0;c<5;c++)for(var d=24;d>=0;d-=8)a[b]=this.h[c]>>d&255,++b;return a};function fk(a){return typeof a.className=="string"?a.className:a.getAttribute&&a.getAttribute("class")||""} function gk(a,b){typeof a.className=="string"?a.className=b:a.setAttribute&&a.setAttribute("class",b)} function hk(a,b){a.classList?b=a.classList.contains(b):(a=a.classList?a.classList:fk(a).match(/\S+/g)||[],b=Mb(a,b)>=0);return b} function ik(){var a=document.body;a.classList?a.classList.remove("inverted-hdpi"):hk(a,"inverted-hdpi")&&gk(a,Array.prototype.filter.call(a.classList?a.classList:fk(a).match(/\S+/g)||[],function(b){return b!="inverted-hdpi"}).join(" "))} ;function jk(){} jk.prototype.next=function(){return kk}; var kk={done:!0,value:void 0};jk.prototype.sb=function(){return this};function lk(a){if(a instanceof mk||a instanceof nk||a instanceof ok)return a;if(typeof a.next=="function")return new mk(function(){return a}); if(typeof a[Symbol.iterator]=="function")return new mk(function(){return a[Symbol.iterator]()}); if(typeof a.sb=="function")return new mk(function(){return a.sb()}); throw Error("Not an iterator or iterable.");} function mk(a){this.h=a} mk.prototype.sb=function(){return new nk(this.h())}; mk.prototype[Symbol.iterator]=function(){return new ok(this.h())}; mk.prototype.i=function(){return new ok(this.h())}; function nk(a){this.h=a} w(nk,jk);nk.prototype.next=function(){return this.h.next()}; nk.prototype[Symbol.iterator]=function(){return new ok(this.h)}; nk.prototype.i=function(){return new ok(this.h)}; function ok(a){mk.call(this,function(){return a}); this.j=a} w(ok,mk);ok.prototype.next=function(){return this.j.next()};function M(a){F.call(this);this.u=1;this.j=[];this.o=0;this.h=[];this.i={};this.D=!!a} cb(M,F);r=M.prototype;r.subscribe=function(a,b,c){var d=this.i[a];d||(d=this.i[a]=[]);var e=this.u;this.h[e]=a;this.h[e+1]=b;this.h[e+2]=c;this.u=e+3;d.push(e);return e}; r.unsubscribe=function(a,b,c){if(a=this.i[a]){var d=this.h;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.ac(a)}return!1}; r.ac=function(a){var b=this.h[a];if(b){var c=this.i[b];this.o!=0?(this.j.push(a),this.h[a+1]=function(){}):(c&&Tb(c,a),delete this.h[a],delete this.h[a+1],delete this.h[a+2])}return!!b}; r.qb=function(a,b){var c=this.i[a];if(c){var d=Array(arguments.length-1),e=arguments.length,f;for(f=1;f0&&this.o==0)for(;c=this.j.pop();)this.ac(c)}}return f!=0}return!1}; function pk(a,b,c){oi(function(){a.apply(b,c)})} r.clear=function(a){if(a){var b=this.i[a];b&&(b.forEach(this.ac,this),delete this.i[a])}else this.h.length=0,this.i={}}; r.ba=function(){M.Aa.ba.call(this);this.clear();this.j.length=0};function qk(a){this.h=a} qk.prototype.set=function(a,b){b===void 0?this.h.remove(a):this.h.set(a,(new Qi).serialize(b))}; qk.prototype.get=function(a){try{var b=this.h.get(a)}catch(c){return}if(b!==null)try{return JSON.parse(b)}catch(c){throw"Storage: Invalid value was encountered";}}; qk.prototype.remove=function(a){this.h.remove(a)};function rk(a){this.h=a} cb(rk,qk);function sk(a){this.data=a} function tk(a){return a===void 0||a instanceof sk?a:new sk(a)} rk.prototype.set=function(a,b){rk.Aa.set.call(this,a,tk(b))}; rk.prototype.i=function(a){a=rk.Aa.get.call(this,a);if(a===void 0||a instanceof Object)return a;throw"Storage: Invalid value was encountered";}; rk.prototype.get=function(a){if(a=this.i(a)){if(a=a.data,a===void 0)throw"Storage: Invalid value was encountered";}else a=void 0;return a};function uk(a){this.h=a} cb(uk,rk);uk.prototype.set=function(a,b,c){if(b=tk(b)){if(c){if(cab())uk.prototype.remove.call(this,a);else return b}};function vk(){} ;function wk(){} cb(wk,vk);wk.prototype[Symbol.iterator]=function(){return lk(this.sb(!0)).i()}; wk.prototype.clear=function(){var a=Array.from(this);a=y(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};function xk(a){this.h=a;this.i=null} cb(xk,wk);r=xk.prototype;r.isAvailable=function(){var a=this.h;if(a)try{a.setItem("__sak","1");a.removeItem("__sak");var b=!0}catch(c){b=c instanceof DOMException&&(c.name==="QuotaExceededError"||c.code===22||c.code===1014||c.name==="NS_ERROR_DOM_QUOTA_REACHED")&&a&&a.length!==0}else b=!1;return this.i=b}; r.set=function(a,b){yk(this);try{this.h.setItem(a,b)}catch(c){if(this.h.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}}; r.get=function(a){yk(this);a=this.h.getItem(a);if(typeof a!=="string"&&a!==null)throw"Storage mechanism: Invalid value was encountered";return a}; r.remove=function(a){yk(this);this.h.removeItem(a)}; r.sb=function(a){yk(this);var b=0,c=this.h,d=new jk;d.next=function(){if(b>=c.length)return kk;var e=c.key(b++);if(a)return{value:e,done:!1};e=c.getItem(e);if(typeof e!=="string")throw"Storage mechanism: Invalid value was encountered";return{value:e,done:!1}}; return d}; r.clear=function(){yk(this);this.h.clear()}; r.key=function(a){yk(this);return this.h.key(a)}; function yk(a){if(a.h==null)throw Error("Storage mechanism: Storage unavailable");var b;((b=a.i)!=null?b:a.isAvailable())||Nc(Error("Storage mechanism: Storage unavailable"))} ;function zk(){var a=null;try{a=C.localStorage||null}catch(b){}xk.call(this,a)} cb(zk,xk);function Ak(a,b){this.i=a;this.h=b+"::"} cb(Ak,wk);Ak.prototype.set=function(a,b){this.i.set(this.h+a,b)}; Ak.prototype.get=function(a){return this.i.get(this.h+a)}; Ak.prototype.remove=function(a){this.i.remove(this.h+a)}; Ak.prototype.sb=function(a){var b=this.i[Symbol.iterator](),c=this,d=new jk;d.next=function(){var e=b.next();if(e.done)return e;for(e=e.value;e.slice(0,c.h.length)!=c.h;){e=b.next();if(e.done)return e;e=e.value}return{value:a?e.slice(c.h.length):c.i.get(e),done:!1}}; return d};/* (The MIT License) Copyright (C) 2014 by Vitaly Puzrin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------------------------------------------------------------------------- Ported from zlib, which is under the following license https://github.com/madler/zlib/blob/master/zlib.h zlib.h -- interface of the 'zlib' general purpose compression library version 1.2.8, April 28th, 2013 Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. Jean-loup Gailly Mark Adler jloup@gzip.org madler@alumni.caltech.edu The data format used by the zlib library is described by RFCs (Request for Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format). */ var N={},Bk=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";N.assign=function(a){for(var b=Array.prototype.slice.call(arguments,1);b.length;){var c=b.shift();if(c){if(typeof c!=="object")throw new TypeError(c+"must be non-object");for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}}return a}; N.cd=function(a,b){if(a.length===b)return a;if(a.subarray)return a.subarray(0,b);a.length=b;return a}; var Ck={tb:function(a,b,c,d,e){if(b.subarray&&a.subarray)a.set(b.subarray(c,c+d),e);else for(var f=0;f>>6:(f<65536?h[c++]=224|f>>>12:(h[c++]=240|f>>>18,h[c++]=128|f>>>12&63),h[c++]=128|f>>> 6&63),h[c++]=128|f&63);return h} ;var Gk={};Gk=function(a,b,c,d){var e=a&65535|0;a=a>>>16&65535|0;for(var f;c!==0;){f=c>2E3?2E3:c;c-=f;do e=e+b[d++]|0,a=a+e|0;while(--f);e%=65521;a%=65521}return e|a<<16|0};for(var Hk={},Ik,Jk=[],Kk=0;Kk<256;Kk++){Ik=Kk;for(var Lk=0;Lk<8;Lk++)Ik=Ik&1?3988292384^Ik>>>1:Ik>>>1;Jk[Kk]=Ik}Hk=function(a,b,c,d){c=d+c;for(a^=-1;d>>8^Jk[(a^b[d])&255];return a^-1};var Mk={};Mk={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};function Nk(a){for(var b=a.length;--b>=0;)a[b]=0} var Ok=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Pk=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Qk=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Rk=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Sk=Array(576);Nk(Sk);var Tk=Array(60);Nk(Tk);var Uk=Array(512);Nk(Uk);var Vk=Array(256);Nk(Vk);var Wk=Array(29);Nk(Wk);var Xk=Array(30);Nk(Xk);function Yk(a,b,c,d,e){this.Ld=a;this.ue=b;this.te=c;this.ne=d;this.Me=e;this.wd=a&&a.length} var Zk,$k,al;function bl(a,b){this.sd=a;this.Db=0;this.bb=b} function cl(a,b){a.aa[a.pending++]=b&255;a.aa[a.pending++]=b>>>8&255} function dl(a,b,c){a.ia>16-c?(a.oa|=b<>16-a.ia,a.ia+=c-16):(a.oa|=b<>>=1,c<<=1;while(--b>0);return c>>>1} function gl(a,b,c){var d=Array(16),e=0,f;for(f=1;f<=15;f++)d[f]=e=e+c[f-1]<<1;for(c=0;c<=b;c++)e=a[c*2+1],e!==0&&(a[c*2]=fl(d[e]++,e))} function hl(a){var b;for(b=0;b<286;b++)a.ra[b*2]=0;for(b=0;b<30;b++)a.fb[b*2]=0;for(b=0;b<19;b++)a.ja[b*2]=0;a.ra[512]=1;a.Oa=a.Gb=0;a.ya=a.matches=0} function il(a){a.ia>8?cl(a,a.oa):a.ia>0&&(a.aa[a.pending++]=a.oa);a.oa=0;a.ia=0} function jl(a,b,c){il(a);cl(a,c);cl(a,~c);N.tb(a.aa,a.window,b,c,a.pending);a.pending+=c} function kl(a,b,c,d){var e=b*2,f=c*2;return a[e]>>7)];el(a,g,c);h=Pk[g];h!==0&&(e-=Xk[g],dl(a,e,h))}}while(d>1;g>=1;g--)ll(a,c,g);k=f;do g=a.da[1],a.da[1]=a.da[a.Na--],ll(a,c,1),d=a.da[1],a.da[--a.yb]=g,a.da[--a.yb]=d,c[k*2]=c[g*2]+c[d*2],a.depth[k]=(a.depth[g]>=a.depth[d]?a.depth[g]:a.depth[d])+1,c[g*2+1]=c[d*2+1]=k,a.da[1]=k++,ll(a,c,1);while(a.Na>= 2);a.da[--a.yb]=a.da[1];g=b.sd;k=b.Db;d=b.bb.Ld;e=b.bb.wd;f=b.bb.ue;var l=b.bb.te,m=b.bb.Me,n,p=0;for(n=0;n<=15;n++)a.Ka[n]=0;g[a.da[a.yb]*2+1]=0;for(b=a.yb+1;b<573;b++){var t=a.da[b];n=g[g[t*2+1]*2+1]+1;n>m&&(n=m,p++);g[t*2+1]=n;if(!(t>k)){a.Ka[n]++;var u=0;t>=l&&(u=f[t-l]);var x=g[t*2];a.Oa+=x*(n+u);e&&(a.Gb+=x*(d[t*2+1]+u))}}if(p!==0){do{for(n=m-1;a.Ka[n]===0;)n--;a.Ka[n]--;a.Ka[n+1]+=2;a.Ka[m]--;p-=2}while(p>0);for(n=m;n!==0;n--)for(t=a.Ka[n];t!==0;)d=a.da[--b],d>k||(g[d*2+1]!==n&&(a.Oa+=(n-g[d* 2+1])*g[d*2],g[d*2+1]=n),t--)}gl(c,h,a.Ka)} function ol(a,b,c){var d,e=-1,f=b[1],g=0,h=7,k=4;f===0&&(h=138,k=3);b[(c+1)*2+1]=65535;for(d=0;d<=c;d++){var l=f;f=b[(d+1)*2+1];++g>>=1)if(b&1&&a.ra[c*2]!==0)return 0;if(a.ra[18]!==0||a.ra[20]!==0||a.ra[26]!==0)return 1;for(c=32;c<256;c++)if(a.ra[c*2]!==0)return 1;return 0} var rl=!1;function sl(a,b,c){a.aa[a.Nb+a.ya*2]=b>>>8&255;a.aa[a.Nb+a.ya*2+1]=b&255;a.aa[a.Oc+a.ya]=c&255;a.ya++;b===0?a.ra[c*2]++:(a.matches++,b--,a.ra[(Vk[c]+256+1)*2]++,a.fb[(b<256?Uk[b]:Uk[256+(b>>>7)])*2]++);return a.ya===a.Rb-1} ;function tl(a,b){a.msg=Mk[b];return b} function ul(a){for(var b=a.length;--b>=0;)a[b]=0} function vl(a){var b=a.state,c=b.pending;c>a.S&&(c=a.S);c!==0&&(N.tb(a.output,b.aa,b.Ub,c,a.Eb),a.Eb+=c,b.Ub+=c,a.hd+=c,a.S-=c,b.pending-=c,b.pending===0&&(b.Ub=0))} function wl(a,b){var c=a.va>=0?a.va:-1,d=a.v-a.va,e=0;if(a.level>0){a.K.Hc===2&&(a.K.Hc=ql(a));nl(a,a.qc);nl(a,a.ic);ol(a,a.ra,a.qc.Db);ol(a,a.fb,a.ic.Db);nl(a,a.od);for(e=18;e>=3&&a.ja[Rk[e]*2+1]===0;e--);a.Oa+=3*(e+1)+5+5+4;var f=a.Oa+3+7>>>3;var g=a.Gb+3+7>>>3;g<=f&&(f=g)}else f=g=d+5;if(d+4<=f&&c!==-1)dl(a,b?1:0,3),jl(a,c,d);else if(a.strategy===4||g===f)dl(a,2+(b?1:0),3),ml(a,Sk,Tk);else{dl(a,4+(b?1:0),3);c=a.qc.Db+1;d=a.ic.Db+1;e+=1;dl(a,c-257,5);dl(a,d-1,5);dl(a,e-4,4);for(f=0;f>>8&255;a.aa[a.pending++]=b&255} function yl(a,b){var c=a.zd,d=a.v,e=a.wa,f=a.Bd,g=a.v>a.la-262?a.v-(a.la-262):0,h=a.window,k=a.cb,l=a.Ia,m=a.v+258,n=h[d+e-1],p=h[d+e];a.wa>=a.vd&&(c>>=2);f>a.B&&(f=a.B);do{var t=b;if(h[t+e]===p&&h[t+e-1]===n&&h[t]===h[d]&&h[++t]===h[d+1]){d+=2;for(t++;h[++d]===h[++t]&&h[++d]===h[++t]&&h[++d]===h[++t]&&h[++d]===h[++t]&&h[++d]===h[++t]&&h[++d]===h[++t]&&h[++d]===h[++t]&&h[++d]===h[++t]&&de){a.Cb=b;e=t;if(t>=f)break;n=h[d+e-1];p=h[d+e]}}}while((b=l[b&k])>g&&--c!==0);return e<= a.B?e:a.B} function zl(a){var b=a.la,c;do{var d=a.Td-a.B-a.v;if(a.v>=b+(b-262)){N.tb(a.window,a.window,b,b,0);a.Cb-=b;a.v-=b;a.va-=b;var e=c=a.pc;do{var f=a.head[--e];a.head[e]=f>=b?f-b:0}while(--c);e=c=b;do f=a.Ia[--e],a.Ia[e]=f>=b?f-b:0;while(--c);d+=b}if(a.K.na===0)break;e=a.K;c=a.window;f=a.v+a.B;var g=e.na;g>d&&(g=d);g===0?c=0:(e.na-=g,N.tb(c,e.input,e.lb,g,f),e.state.wrap===1?e.I=Gk(e.I,c,g,f):e.state.wrap===2&&(e.I=Hk(e.I,c,g,f)),e.lb+=g,e.nb+=g,c=g);a.B+=c;if(a.B+a.sa>=3)for(d=a.v-a.sa,a.R=a.window[d], a.R=(a.R<=3&&(a.R=(a.R<=3)if(c=sl(a,a.v-a.Cb,a.T-3),a.B-=a.T,a.T<=a.Qc&&a.B>=3){a.T--;do a.v++,a.R=(a.R<=3&&(a.R=(a.R<4096)&&(a.T=2));if(a.wa>=3&&a.T<=a.wa){d=a.v+a.B-3;c=sl(a,a.v-1-a.Ed,a.wa-3);a.B-=a.wa-1;a.wa-=2;do++a.v<=d&&(a.R=(a.R<=3&&a.v>0&&(d=a.v-1,c=f[d],c===f[++d]&&c===f[++d]&&c===f[++d])){for(e=a.v+258;c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&da.B&&(a.T=a.B)}a.T>=3?(c=sl(a,1,a.T-3),a.B-=a.T,a.v+=a.T,a.T=0):(c=sl(a,0,a.window[a.v]),a.B--,a.v++);if(c&&(wl(a,!1),a.K.S===0))return 1}a.sa=0;return b===4?(wl(a,!0),a.K.S===0?3:4): a.ya&&(wl(a,!1),a.K.S===0)?1:2} function Dl(a,b){for(var c;;){if(a.B===0&&(zl(a),a.B===0)){if(b===0)return 1;break}a.T=0;c=sl(a,0,a.window[a.v]);a.B--;a.v++;if(c&&(wl(a,!1),a.K.S===0))return 1}a.sa=0;return b===4?(wl(a,!0),a.K.S===0?3:4):a.ya&&(wl(a,!1),a.K.S===0)?1:2} function El(a,b,c,d,e){this.ze=a;this.Le=b;this.Ne=c;this.Ke=d;this.we=e} var Fl;Fl=[new El(0,0,0,0,function(a,b){var c=65535;for(c>a.za-5&&(c=a.za-5);;){if(a.B<=1){zl(a);if(a.B===0&&b===0)return 1;if(a.B===0)break}a.v+=a.B;a.B=0;var d=a.va+c;if(a.v===0||a.v>=d)if(a.B=a.v-d,a.v=d,wl(a,!1),a.K.S===0)return 1;if(a.v-a.va>=a.la-262&&(wl(a,!1),a.K.S===0))return 1}a.sa=0;if(b===4)return wl(a,!0),a.K.S===0?3:4;a.v>a.va&&wl(a,!1);return 1}), new El(4,4,8,4,Al),new El(4,5,16,8,Al),new El(4,6,32,32,Al),new El(4,4,16,16,Bl),new El(8,16,32,32,Bl),new El(8,16,128,128,Bl),new El(8,32,128,256,Bl),new El(32,128,258,1024,Bl),new El(32,258,258,4096,Bl)]; function Gl(){this.K=null;this.status=0;this.aa=null;this.wrap=this.pending=this.Ub=this.za=0;this.H=null;this.Ba=0;this.method=8;this.Ab=-1;this.cb=this.kd=this.la=0;this.window=null;this.Td=0;this.head=this.Ia=null;this.Bd=this.vd=this.strategy=this.level=this.Qc=this.zd=this.wa=this.B=this.Cb=this.v=this.jb=this.Ed=this.T=this.va=this.Ma=this.La=this.Mc=this.pc=this.R=0;this.ra=new N.Ja(1146);this.fb=new N.Ja(122);this.ja=new N.Ja(78);ul(this.ra);ul(this.fb);ul(this.ja);this.od=this.ic=this.qc= null;this.Ka=new N.Ja(16);this.da=new N.Ja(573);ul(this.da);this.yb=this.Na=0;this.depth=new N.Ja(573);ul(this.depth);this.ia=this.oa=this.sa=this.matches=this.Gb=this.Oa=this.Nb=this.ya=this.Rb=this.Oc=0} function Hl(a,b){if(!a||!a.state||b>5||b<0)return a?tl(a,-2):-2;var c=a.state;if(!a.output||!a.input&&a.na!==0||c.status===666&&b!==4)return tl(a,a.S===0?-5:-2);c.K=a;var d=c.Ab;c.Ab=b;if(c.status===42)if(c.wrap===2)a.I=0,O(c,31),O(c,139),O(c,8),c.H?(O(c,(c.H.text?1:0)+(c.H.Va?2:0)+(c.H.extra?4:0)+(c.H.name?8:0)+(c.H.comment?16:0)),O(c,c.H.time&255),O(c,c.H.time>>8&255),O(c,c.H.time>>16&255),O(c,c.H.time>>24&255),O(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),O(c,c.H.os&255),c.H.extra&&c.H.extra.length&& (O(c,c.H.extra.length&255),O(c,c.H.extra.length>>8&255)),c.H.Va&&(a.I=Hk(a.I,c.aa,c.pending,0)),c.Ba=0,c.status=69):(O(c,0),O(c,0),O(c,0),O(c,0),O(c,0),O(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),O(c,3),c.status=113);else{var e=8+(c.kd-8<<4)<<8;e|=(c.strategy>=2||c.level<2?0:c.level<6?1:c.level===6?2:3)<<6;c.v!==0&&(e|=32);c.status=113;xl(c,e+(31-e%31));c.v!==0&&(xl(c,a.I>>>16),xl(c,a.I&65535));a.I=1}if(c.status===69)if(c.H.extra){for(e=c.pending;c.Ba<(c.H.extra.length&65535)&&(c.pending!==c.za|| (c.H.Va&&c.pending>e&&(a.I=Hk(a.I,c.aa,c.pending-e,e)),vl(a),e=c.pending,c.pending!==c.za));)O(c,c.H.extra[c.Ba]&255),c.Ba++;c.H.Va&&c.pending>e&&(a.I=Hk(a.I,c.aa,c.pending-e,e));c.Ba===c.H.extra.length&&(c.Ba=0,c.status=73)}else c.status=73;if(c.status===73)if(c.H.name){e=c.pending;do{if(c.pending===c.za&&(c.H.Va&&c.pending>e&&(a.I=Hk(a.I,c.aa,c.pending-e,e)),vl(a),e=c.pending,c.pending===c.za)){var f=1;break}f=c.Ba e&&(a.I=Hk(a.I,c.aa,c.pending-e,e));f===0&&(c.Ba=0,c.status=91)}else c.status=91;if(c.status===91)if(c.H.comment){e=c.pending;do{if(c.pending===c.za&&(c.H.Va&&c.pending>e&&(a.I=Hk(a.I,c.aa,c.pending-e,e)),vl(a),e=c.pending,c.pending===c.za)){f=1;break}f=c.Bae&&(a.I=Hk(a.I,c.aa,c.pending-e,e));f===0&&(c.status=103)}else c.status=103;c.status===103&&(c.H.Va?(c.pending+2>c.za&&vl(a),c.pending+2<=c.za&&(O(c, a.I&255),O(c,a.I>>8&255),a.I=0,c.status=113)):c.status=113);if(c.pending!==0){if(vl(a),a.S===0)return c.Ab=-1,0}else if(a.na===0&&(b<<1)-(b>4?9:0)<=(d<<1)-(d>4?9:0)&&b!==4)return tl(a,-5);if(c.status===666&&a.na!==0)return tl(a,-5);if(a.na!==0||c.B!==0||b!==0&&c.status!==666){d=c.strategy===2?Dl(c,b):c.strategy===3?Cl(c,b):Fl[c.level].we(c,b);if(d===3||d===4)c.status=666;if(d===1||d===3)return a.S===0&&(c.Ab=-1),0;if(d===2&&(b===1?(dl(c,2,3),el(c,256,Sk),c.ia===16?(cl(c,c.oa),c.oa=0,c.ia=0):c.ia>= 8&&(c.aa[c.pending++]=c.oa&255,c.oa>>=8,c.ia-=8)):b!==5&&(dl(c,0,3),jl(c,0,0),b===3&&(ul(c.head),c.B===0&&(c.v=0,c.va=0,c.sa=0))),vl(a),a.S===0))return c.Ab=-1,0}if(b!==4)return 0;if(c.wrap<=0)return 1;c.wrap===2?(O(c,a.I&255),O(c,a.I>>8&255),O(c,a.I>>16&255),O(c,a.I>>24&255),O(c,a.nb&255),O(c,a.nb>>8&255),O(c,a.nb>>16&255),O(c,a.nb>>24&255)):(xl(c,a.I>>>16),xl(c,a.I&65535));vl(a);c.wrap>0&&(c.wrap=-c.wrap);return c.pending!==0?0:1} ;var Il={};Il=function(){this.input=null;this.nb=this.na=this.lb=0;this.output=null;this.hd=this.S=this.Eb=0;this.msg="";this.state=null;this.Hc=2;this.I=0};var Jl=Object.prototype.toString; function Kl(a){if(!(this instanceof Kl))return new Kl(a);a=this.options=N.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},a||{});a.raw&&a.windowBits>0?a.windowBits=-a.windowBits:a.gzip&&a.windowBits>0&&a.windowBits<16&&(a.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.K=new Il;this.K.S=0;var b=this.K;var c=a.level,d=a.method,e=a.windowBits,f=a.memLevel,g=a.strategy;if(b){var h=1;c===-1&&(c=6);e<0?(h=0,e=-e):e>15&&(h=2,e-=16);if(f<1||f> 9||d!==8||e<8||e>15||c<0||c>9||g<0||g>4)b=tl(b,-2);else{e===8&&(e=9);var k=new Gl;b.state=k;k.K=b;k.wrap=h;k.H=null;k.kd=e;k.la=1<>=7;f<30;f++)for(Xk[f]=g<<7,e=0;e<1<=l.la&&(b===0&&(ul(l.head),l.v=0,l.va=0,l.sa=0),c=new N.pb(l.la),N.tb(c,f,g-l.la,l.la,0),f=c,g=l.la);c=a.na;d=a.lb;e=a.input;a.na=g;a.lb=0;a.input=f;for(zl(l);l.B>=3;){f=l.v;g=l.B-2;do l.R=(l.R<0||c.S===0)&&a!==1);if(e===4)return(c=this.K)&&c.state?(d=c.state.status,d!==42&&d!==69&&d!==73&&d!==91&&d!==103&&d!==113&&d!==666?a=tl(c,-2):(c.state=null,a=d===113?tl(c,-3):0)):a=-2,Ll(this,a),this.ended=!0,a===0;e===2&&(Ll(this,0),c.S=0);return!0}; function Ll(a,b){b===0&&(a.result=a.options.to==="string"?a.chunks.join(""):N.td(a.chunks));a.chunks=[];a.err=b;a.msg=a.K.msg} function Ml(a,b){b=b||{};b.gzip=!0;b=new Kl(b);b.push(a,!0);if(b.err)throw b.msg||Mk[b.err];return b.result} ;function Nl(a){return a?(a=a.privateDoNotAccessOrElseSafeScriptWrappedValue)?Db(a):null:null} function Ol(a){return a?(a=a.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?kb(a):null:null} ;function Pl(a){return kb(a===null?"null":a===void 0?"undefined":a)} ;function Ql(a){this.name=a} ;var Rl=new Ql("rawColdConfigGroup");var Sl=new Ql("rawHotConfigGroup");function Tl(a){this.F=J(a)} w(Tl,L);function Ul(a){this.F=J(a)} w(Ul,L);Ul.prototype.setTrackingParams=function(a){if(a!=null)if(typeof a==="string")a=a?new xd(a,wd):zd||(zd=new xd(null,wd));else if(a.constructor!==xd)if(vd(a))a=a.length?new xd(new Uint8Array(a),wd):zd||(zd=new xd(null,wd));else throw Error();return ff(this,1,a)};var Vl=new Ql("continuationCommand");var Wl=new Ql("webCommandMetadata");var Xl=new Ql("signalServiceEndpoint");var Yl={Tf:"EMBEDDED_PLAYER_MODE_UNKNOWN",Qf:"EMBEDDED_PLAYER_MODE_DEFAULT",Sf:"EMBEDDED_PLAYER_MODE_PFP",Rf:"EMBEDDED_PLAYER_MODE_PFL"};var Zl=new Ql("feedbackEndpoint");var fe={Vg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",pg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",Gg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",Ng:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",fg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",Ug:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",Xg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",Mg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK", Zg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",Yg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",Jg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",Pg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",eh:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",dh:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",bh:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",Qg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL", Lg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",fh:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",Og:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",gh:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",wg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",Cg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",Bg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",Eg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT", ah:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",Fg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",Dg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",Xf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",Wf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",Yf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",Zf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",ig:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",lg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED", Ag:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",zg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",qg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",sg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",rg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",vg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",Sg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION", Tg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",yg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",eg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",cg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",dg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",ag:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",xg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED", Kg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",ug:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",tg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",jg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",Rg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",ng:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING", mg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED",kg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",Hg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",Ig:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",hg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",og:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED",gg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS", Wg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED"};var $l=new Ql("shareEndpoint"),am=new Ql("shareEntityEndpoint"),bm=new Ql("shareEntityServiceEndpoint"),cm=new Ql("webPlayerShareEntityServiceEndpoint");var dm=new Ql("playlistEditEndpoint");var em=new Ql("modifyChannelNotificationPreferenceEndpoint");var fm=new Ql("unsubscribeEndpoint");var gm=new Ql("subscribeEndpoint");function hm(){var a=im;E("yt.ads.biscotti.getId_")||D("yt.ads.biscotti.getId_",a)} function jm(a){D("yt.ads.biscotti.lastId_",a)} ;function km(a,b){b.length>1?a[b[0]]=b[1]:b.length===1&&Object.assign(a,b[0])} ;var lm=C.window,mm,nm,om=(lm==null?void 0:(mm=lm.yt)==null?void 0:mm.config_)||(lm==null?void 0:(nm=lm.ytcfg)==null?void 0:nm.data_)||{};D("yt.config_",om);function pm(){km(om,arguments)} function P(a,b){return a in om?om[a]:b} function qm(a){var b=om.EXPERIMENT_FLAGS;return b?b[a]:void 0} ;var rm=[];function sm(a){rm.forEach(function(b){return b(a)})} function tm(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){um(b)}}:a} function um(a){var b=E("yt.logging.errors.log");b?b(a,"ERROR",void 0,void 0,void 0,void 0,void 0):(b=P("ERRORS",[]),b.push([a,"ERROR",void 0,void 0,void 0,void 0,void 0]),pm("ERRORS",b));sm(a)} function wm(a,b,c,d,e){var f=E("yt.logging.errors.log");f?f(a,"WARNING",b,c,d,void 0,e):(f=P("ERRORS",[]),f.push([a,"WARNING",b,c,d,void 0,e]),pm("ERRORS",f))} ;var xm=/^[\w.]*$/,ym={q:!0,search_query:!0};function zm(a,b){b=a.split(b);for(var c={},d=0,e=b.length;d1?a[1]:a[0])):{}} function Fm(a,b){return Gm(a,b||{},!0)} function Gm(a,b,c){var d=a.split("#",2);a=d[0];d=d.length>1?"#"+d[1]:"";var e=a.split("?",2);a=e[0];e=Dm(e[1]||"");for(var f in b)!c&&e!==null&&f in e||(e[f]=b[f]);return jc(a,e)+d} function Hm(a){if(!b)var b=window.location.href;var c=cc(1,a),d=dc(a);c&&d?(a=a.match(ac),b=b.match(ac),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?dc(b)===d&&(Number(cc(4,b))||null)===(Number(cc(4,a))||null):!0;return a} function Am(a){return a&&a.match(xm)?a:decodeURIComponent(a.replace(/\+/g," "))} ;function Im(a){var b=Jm;a=a===void 0?E("yt.ads.biscotti.lastId_")||"":a;var c=Object,d=c.assign,e={};e.dt=Uj;e.flash="0";a:{try{var f=b.h.top.location.href}catch(Pa){f=2;break a}f=f?f===b.i.location.href?0:1:2}e=(e.frm=f,e);try{e.u_tz=-(new Date).getTimezoneOffset();var g=g===void 0?Mj:g;try{var h=g.history.length}catch(Pa){h=0}e.u_his=h;var k;e.u_h=(k=Mj.screen)==null?void 0:k.height;var l;e.u_w=(l=Mj.screen)==null?void 0:l.width;var m;e.u_ah=(m=Mj.screen)==null?void 0:m.availHeight;var n;e.u_aw= (n=Mj.screen)==null?void 0:n.availWidth;var p;e.u_cd=(p=Mj.screen)==null?void 0:p.colorDepth}catch(Pa){}h=b.h;try{var t=h.screenX;var u=h.screenY}catch(Pa){}try{var x=h.outerWidth;var z=h.outerHeight}catch(Pa){}try{var H=h.innerWidth;var K=h.innerHeight}catch(Pa){}try{var da=h.screenLeft;var ea=h.screenTop}catch(Pa){}try{H=h.innerWidth,K=h.innerHeight}catch(Pa){}try{var Oa=h.screen.availWidth;var Ob=h.screen.availTop}catch(Pa){}t=[da,ea,t,u,Oa,Ob,x,z,H,K];try{var ka=(b.h.top||window).document,Ya= ka.compatMode=="CSS1Compat"?ka.documentElement:ka.body;var Qa=(new rg(Ya.clientWidth,Ya.clientHeight)).round()}catch(Pa){Qa=new rg(-12245933,-12245933)}ka=Qa;Qa={};var Ra=Ra===void 0?C:Ra;Ya=new ak;"SVGElement"in Ra&&"createElementNS"in Ra.document&&Ya.set(0);u=Rj();u["allow-top-navigation-by-user-activation"]&&Ya.set(1);u["allow-popups-to-escape-sandbox"]&&Ya.set(2);Ra.crypto&&Ra.crypto.subtle&&Ya.set(3);"TextDecoder"in Ra&&"TextEncoder"in Ra&&Ya.set(4);Ra=bk(Ya);Qa.bc=Ra;Qa.bih=ka.height;Qa.biw= ka.width;Qa.brdim=t.join();b=b.i;b=(Qa.vis=b.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[b.visibilityState||b.webkitVisibilityState||b.mozVisibilityState||""]||0,Qa.wgl=!!Mj.WebGLRenderingContext,Qa);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c} var Jm=new function(){var a=window.document;this.h=window;this.i=a}; D("yt.ads_.signals_.getAdSignalsString",function(a){return Cm(Im(a))});ab();navigator.userAgent.indexOf(" (CrKey ");var Km="XMLHttpRequest"in C?function(){return new XMLHttpRequest}:null; function Lm(){if(!Km)return null;var a=Km();return"open"in a?a:null} function Mm(a){switch(a&&"status"in a?a.status:-1){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}} ;function Nm(a,b){typeof a==="function"&&(a=tm(a));return window.setTimeout(a,b)} ;var Om="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");[].concat(ra(Om),["client_dev_set_cookie"]);function R(a){a=Pm(a);return typeof a==="string"&&a==="false"?!1:!!a} function S(a,b){a=Pm(a);return a===void 0&&b!==void 0?b:Number(a||0)} function Pm(a){return P("EXPERIMENT_FLAGS",{})[a]} function Qm(){for(var a=[],b=P("EXPERIMENTS_FORCED_FLAGS",{}),c=y(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,a.push({key:d,value:String(b[d])});c=P("EXPERIMENT_FLAGS",{});d=y(Object.keys(c));for(var e=d.next();!e.done;e=d.next())e=e.value,e.startsWith("force_")&&b[e]===void 0&&a.push({key:e,value:String(c[e])});return a} ;var Rm={Authorization:"AUTHORIZATION","X-Goog-EOM-Visitor-Id":"EOM_VISITOR_DATA","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-Youtube-Domain-Admin-State":"DOMAIN_ADMIN_STATE","X-Youtube-Chrome-Connected":"CHROME_CONNECTED_HEADER","X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-YouTube-Delegation-Context":"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT","X-YouTube-Device":"DEVICE","X-Youtube-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL", "X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-Goog-AuthUser":"SESSION_INDEX","X-Goog-PageId":"DELEGATED_SESSION_ID"},Sm="app debugcss debugjs expflag force_ad_params force_ad_encrypted force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address".split(" ").concat(ra(Om)),Tm=!1;function Um(a,b,c,d,e,f,g,h){function k(){(l&&"readyState"in l?l.readyState:0)===4&&b&&tm(b)(l)} c=c===void 0?"GET":c;d=d===void 0?"":d;h=h===void 0?!1:h;var l=Lm();if(!l)return null;"onloadend"in l?l.addEventListener("loadend",k,!1):l.onreadystatechange=k;R("debug_forward_web_query_parameters")&&(a=Vm(a));l.open(c,a,!0);f&&(l.responseType=f);g&&(l.withCredentials=!0);c=c==="POST"&&(window.FormData===void 0||!(d instanceof FormData));if(e=Wm(a,e))for(var m in e)l.setRequestHeader(m,e[m]),"content-type"===m.toLowerCase()&&(c=!1);c&&l.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); if(h&&"setAttributionReporting"in XMLHttpRequest.prototype){a={eventSourceEligible:!0,triggerEligible:!1};try{l.setAttributionReporting(a)}catch(n){wm(n)}}l.send(d);return l} function Wm(a,b){b=b===void 0?{}:b;var c=Hm(a),d=P("INNERTUBE_CLIENT_NAME"),e=R("web_ajax_ignore_global_headers_if_set"),f;for(f in Rm){var g=P(Rm[f]),h=f==="X-Goog-AuthUser"||f==="X-Goog-PageId";f!=="X-Goog-Visitor-Id"||g||(g=P("VISITOR_DATA"));var k;if(!(k=!g)){if(!(k=c||(dc(a)?!1:!0))){k=a;var l;if(l=R("add_auth_headers_to_remarketing_google_dot_com_ping")&&f==="Authorization"&&(d==="TVHTML5"||d==="TVHTML5_UNPLUGGED"||d==="TVHTML5_SIMPLY"))l=dc(k),l=l!==null?l.split(".").reverse():null,l=l===null? !1:l[1]==="google"?!0:l[2]==="google"?l[0]==="au"&&l[1]==="com"?!0:l[0]==="uk"&&l[1]==="co"?!0:!1:!1;l&&(k=bc(cc(5,k))||"",k=k.split("/"),k="/"+(k.length>1?k[1]:""),l=k==="/pagead");k=l?!0:!1}k=!k}k||e&&b[f]!==void 0||d==="TVHTML5_UNPLUGGED"&&h||(b[f]=g)}"X-Goog-EOM-Visitor-Id"in b&&"X-Goog-Visitor-Id"in b&&delete b["X-Goog-Visitor-Id"];if(c||!dc(a))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||!dc(a)){try{var m=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(n){}m&& (b["X-YouTube-Time-Zone"]=m)}document.location.hostname.endsWith("youtubeeducation.com")||!c&&dc(a)||(b["X-YouTube-Ad-Signals"]=Cm(Im()));return b} function Xm(a,b){b.method="POST";b.postParams||(b.postParams={});return Ym(a,b)} function Ym(a,b){var c=b.format||"JSON";a=Zm(a,b);var d=$m(a,b),e=!1,f=an(a,function(k){if(!e){e=!0;h&&window.clearTimeout(h);var l=Mm(k),m=null,n=400<=k.status&&k.status<500,p=500<=k.status&&k.status<600;if(l||n||p)m=bn(a,c,k,b.convertToSafeHtml);l&&(l=cn(c,k,m));m=m||{};n=b.context||C;l?b.onSuccess&&b.onSuccess.call(n,k,m):b.onError&&b.onError.call(n,k,m);b.onFinish&&b.onFinish.call(n,k,m)}},b.method,d,b.headers,b.responseType,b.withCredentials); d=b.timeout||0;if(b.onTimeout&&d>0){var g=b.onTimeout;var h=Nm(function(){e||(e=!0,f.abort(),window.clearTimeout(h),g.call(b.context||C,f))},d)}return f} function Zm(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=P("XSRF_FIELD_NAME");if(b=b.urlParams)b[c]&&delete b[c],a=Fm(a,b);return a} function $m(a,b){var c=P("XSRF_FIELD_NAME"),d=P("XSRF_TOKEN"),e=b.postBody||"",f=b.postParams,g=P("XSRF_FIELD_NAME"),h;b.headers&&(h=b.headers["Content-Type"]);b.excludeXsrf||dc(a)&&!b.withCredentials&&dc(a)!==document.location.hostname||b.method!=="POST"||h&&h!=="application/x-www-form-urlencoded"||b.postParams&&b.postParams[g]||(f||(f={}),f[c]=d);(R("ajax_parse_query_data_only_when_filled")&&f&&Object.keys(f).length>0||f)&&typeof e==="string"&&(e=Dm(e),Cg(e,f),e=b.postBodyFormat&&b.postBodyFormat=== "JSON"?JSON.stringify(e):ic(e));f=e||f&&!vg(f);!Tm&&f&&b.method!=="POST"&&(Tm=!0,um(Error("AJAX request with postData should use POST")));return e} function bn(a,b,c,d){var e=null;switch(b){case "JSON":try{var f=c.responseText}catch(g){throw d=Error("Error reading responseText"),d.params=a,wm(d),g;}a=c.getResponseHeader("Content-Type")||"";f&&a.indexOf("json")>=0&&(f.substring(0,5)===")]}'\n"&&(f=f.substring(5)),e=JSON.parse(f));break;case "XML":if(a=(a=c.responseXML)?dn(a):null)e={},Nb(a.getElementsByTagName("*"),function(g){e[g.tagName]=en(g)})}d&&fn(e); return e} function fn(a){if(Sa(a))for(var b in a){var c;(c=b==="html_content")||(c=b.length-5,c=c>=0&&b.indexOf("_html",c)==c);if(c){c=b;var d=a[b];var e=ib();d=new Ab(e?e.createHTML(d):d);a[c]=d}else fn(a[b])}} function cn(a,b,c){if(b&&b.status===204)return!0;switch(a){case "JSON":return!!c;case "XML":return Number(c&&c.return_code)===0;case "RAW":return!0;default:return!!c}} function dn(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&a.length>0?a[0]:null:null} function en(a){var b="";Nb(a.childNodes,function(c){b+=c.nodeValue}); return b} function Vm(a){var b=window.location.search,c=dc(a);R("debug_handle_relative_url_for_query_forward_killswitch")||!c&&Hm(a)&&(c=document.location.hostname);var d=bc(cc(5,a));d=(c=c&&(c.endsWith("youtube.com")||c.endsWith("youtube-nocookie.com")))&&d&&d.startsWith("/api/");if(!c||d)return a;var e=Dm(b),f={};Nb(Sm,function(g){e[g]&&(f[g]=e[g])}); return Gm(a,f||{},!1)} var an=Um;var gn=[{Rc:function(a){return"Cannot read property '"+a.key+"'"}, vc:{Error:[{regexp:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{regexp:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{regexp:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{regexp:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./, groups:["value","key"]},{regexp:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{regexp:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{regexp:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{Rc:function(a){return"Cannot call '"+a.key+"'"}, vc:{TypeError:[{regexp:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{regexp:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{regexp:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{regexp:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{regexp:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/, groups:["key"]},{regexp:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{Rc:function(a){return a.key+" is not defined"}, vc:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var jn={Ya:[],Ta:[{callback:hn,weight:500}]};function hn(a){if(a.name==="JavaException")return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")} ;function kn(){this.Ta=[];this.Ya=[]} var ln;function mn(){if(!ln){var a=ln=new kn;a.Ya.length=0;a.Ta.length=0;jn.Ya&&a.Ya.push.apply(a.Ya,jn.Ya);jn.Ta&&a.Ta.push.apply(a.Ta,jn.Ta)}return ln} ;var nn=new M;function on(a){function b(){return a.charCodeAt(d++)} var c=a.length,d=0;do{var e=pn(b);if(e===Infinity)break;var f=e>>3;switch(e&7){case 0:e=pn(b);if(f===2)return e;break;case 1:if(f===2)return;d+=8;break;case 2:e=pn(b);if(f===2)return a.substr(d,e);d+=e;break;case 5:if(f===2)return;d+=4;break;default:return}}while(d500));d++);d=e}else if(typeof a==="object")for(e in a){if(a[e]){var f=e;var g=a[e],h=b,k=c;f=typeof g!=="string"||f!=="clickTrackingParams"&&f!=="trackingParams"?0:(g=on(atob(g.replace(/-/g,"+").replace(/_/g,"/"))))?rn(f+".ve",g,h,k):0;d+=f;d+=rn(e,a[e],b,c);if(d>500)break}}else c[b]=sn(a),d+=c[b].length;else c[b]=sn(a),d+=c[b].length;return d} function rn(a,b,c,d){c+="."+a;a=sn(b);d[c]=a;return c.length+a.length} function sn(a){try{return(typeof a==="string"?a:String(JSON.stringify(a))).substr(0,500)}catch(b){return"unable to serialize "+typeof a+" ("+b.message+")"}} ;function tn(a){var b=this;this.i=void 0;this.h=!1;a.addEventListener("beforeinstallprompt",function(c){c.preventDefault();b.i=c}); a.addEventListener("appinstalled",function(){b.h=!0},{once:!0})} function un(){if(!C.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return C.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":C.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":C.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":C.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}} ;function vn(){this.Md=!0} function wn(){vn.h||(vn.h=new vn);return vn.h} function xn(a,b){a={};var c=[];"USER_SESSION_ID"in om&&c.push({key:"u",value:P("USER_SESSION_ID")});if(c=kg(c))a.Authorization=c,c=b=b==null?void 0:b.sessionIndex,c===void 0&&(c=Number(P("SESSION_INDEX",0)),c=isNaN(c)?0:c),R("voice_search_auth_header_removal")||(a["X-Goog-AuthUser"]=c.toString()),"INNERTUBE_HOST_OVERRIDE"in om||(a["X-Origin"]=window.location.origin),b===void 0&&"DELEGATED_SESSION_ID"in om&&(a["X-Goog-PageId"]=P("DELEGATED_SESSION_ID"));return a} ;var yn={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};function zn(a,b,c,d,e){hg.set(""+a,b,{Tb:c,path:"/",domain:d===void 0?"youtube.com":d,secure:e===void 0?!1:e})} function An(a){return hg.get(""+a,void 0)} function Bn(a,b,c){hg.remove(""+a,b===void 0?"/":b,c===void 0?"youtube.com":c)} function Cn(){if(R("embeds_web_enable_cookie_detection_fix")){if(!C.navigator.cookieEnabled)return!1}else if(!hg.isEnabled())return!1;if(hg.h.cookie)return!0;R("embeds_web_enable_cookie_detection_fix")?hg.set("TESTCOOKIESENABLED","1",{Tb:60,cf:"none",secure:!0}):hg.set("TESTCOOKIESENABLED","1",{Tb:60});if(hg.get("TESTCOOKIESENABLED")!=="1")return!1;hg.remove("TESTCOOKIESENABLED");return!0} ;var Dn=E("ytglobal.prefsUserPrefsPrefs_")||{};D("ytglobal.prefsUserPrefsPrefs_",Dn);function En(){this.h=P("ALT_PREF_COOKIE_NAME","PREF");this.i=P("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=An(this.h);a&&this.parse(a)} var Fn;function Gn(){Fn||(Fn=new En);return Fn} r=En.prototype;r.get=function(a,b){Hn(a);In(a);a=Dn[a]!==void 0?Dn[a].toString():null;return a!=null?a:b?b:""}; r.set=function(a,b){Hn(a);In(a);if(b==null)throw Error("ExpectedNotNull");Dn[a]=b.toString()}; function Jn(a){return!!((Kn("f"+(Math.floor(a/31)+1))||0)&1<=0;b--)a.i[b].length=0;a.i[8].length=0;a.j={};a.stop()} r.isHidden=function(){return!!document.hidden||!1}; function ao(a){return!a.isHidden()&&a.pa} function Zn(a){if(a.i[8].length){if(a.U)return 4;if(ao(a))return 3}for(var b=5;b>=a.o;b--)if(a.i[b].length>0)return b>0?ao(a)?3:2:1;return 0} r.Ha=function(a){var b=E("yt.logging.errors.log");b&&b(a)}; function Yn(a,b){try{b()}catch(c){a.Ha(c)}} function bo(a){for(var b=y(Wn),c=b.next();!c.done;c=b.next())if(a.i[c.value].length)return!0;return!1} r.Ae=function(a){var b=void 0;a&&(b=a.timeRemaining());this.ha=!0;co(this,b);this.ha=!1}; r.wf=function(){co(this)}; r.Zd=function(){eo(this)}; r.We=function(a){this.U=!0;var b=Zn(this);b===4&&b!==this.D&&(this.stop(),this.start());co(this,void 0,a);this.U=!1}; r.Pe=function(){this.isHidden()||eo(this);this.h&&(this.stop(),this.start())}; function eo(a){a.stop();a.u=!0;for(var b=ab(),c=a.i[8];c.length;){var d=c.shift(),e=a.j[d];delete a.j[d];e&&Yn(a,e)}fo(a);a.u=!1;bo(a)&&a.start();b=ab()-b;a.G-=b} function fo(a){for(var b=0,c=a.P.length;bd?a.o:d;if(!(ab()>=b)){do{a:{c=a;f=d;for(e=3;e>=f;e--)for(var g=c.i[e];g.length;){var h=g.shift(),k=c.j[h];delete c.j[h];if(k){c=k;break a}}c=null}c&&Yn(a,c)}while(c&&ab()a&&(b.o=a,b.start())} function wo(){window.clearTimeout(jo);var a=ko();a.o=0;a.start()} ;function xo(){Sn.apply(this,arguments)} w(xo,Sn);function yo(){xo.h||(xo.h=new xo);return xo.h} xo.prototype.Ra=function(a,b,c){c!==void 0&&Number.isNaN(Number(c))&&(c=void 0);var d=E("yt.scheduler.instance.addJob");return d?d(a,b,c):c===void 0?(a(),NaN):Nm(a,c||0)}; xo.prototype.qa=function(a){if(a===void 0||!Number.isNaN(Number(a))){var b=E("yt.scheduler.instance.cancelJob");b?b(a):window.clearTimeout(a)}}; xo.prototype.start=function(){var a=E("yt.scheduler.instance.start");a&&a()}; xo.prototype.pause=function(){var a=E("yt.scheduler.instance.pause");a&&a()}; var Zj=yo(); R("web_scheduler_auto_init")&&!E("yt.scheduler.initialized")&&(D("yt.scheduler.instance.dispose",lo),D("yt.scheduler.instance.addJob",no),D("yt.scheduler.instance.addImmediateJob",oo),D("yt.scheduler.instance.cancelJob",po),D("yt.scheduler.instance.cancelAllJobs",mo),D("yt.scheduler.instance.start",ro),D("yt.scheduler.instance.pause",so),D("yt.scheduler.instance.setPriorityThreshold",uo),D("yt.scheduler.instance.enablePriorityThreshold",vo),D("yt.scheduler.instance.clearPriorityThreshold",wo),D("yt.scheduler.initialized", !0));function zo(a){var b=new zk;this.h=(a=b.isAvailable()?a?new Ak(b,a):b:null)?new uk(a):null;this.i=document.domain||window.location.hostname} zo.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.h)try{this.h.set(a,b,Date.now()+c*1E3);return}catch(f){}var e="";if(d)try{e=escape((new Qi).serialize(b))}catch(f){return}else e=escape(b);zn(a,e,c,this.i)}; zo.prototype.get=function(a,b){var c=void 0,d=!this.h;if(!d)try{c=this.h.get(a)}catch(e){d=!0}if(d&&(c=An(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c}; zo.prototype.remove=function(a){this.h&&this.h.remove(a);Bn(a,"/",this.i)};var Ao=function(){var a;return function(){a||(a=new zo("ytidb"));return a}}(); function Bo(){var a;return(a=Ao())==null?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)} ;var Co=[],Do,Eo=!1;function Fo(){var a={};for(Do=new Go(a.handleError===void 0?Ho:a.handleError,a.logEvent===void 0?Io:a.logEvent);Co.length>0;)switch(a=Co.shift(),a.type){case "ERROR":Do.Ha(a.payload);break;case "EVENT":Do.logEvent(a.eventType,a.payload)}} function Jo(a){Eo||(Do?Do.Ha(a):(Co.push({type:"ERROR",payload:a}),Co.length>10&&Co.shift()))} function Ko(a,b){Eo||(Do?Do.logEvent(a,b):(Co.push({type:"EVENT",eventType:a,payload:b}),Co.length>10&&Co.shift()))} ;function Lo(a){if(a.indexOf(":")>=0)throw Error("Database name cannot contain ':'");} function Mo(a){return a.substr(0,a.indexOf(":"))||a} ;var No=gd||hd;function Oo(a){var b=Rc();return b?b.toLowerCase().indexOf(a)>=0:!1} ;var Po={},Qo=(Po.AUTH_INVALID="No user identifier specified.",Po.EXPLICIT_ABORT="Transaction was explicitly aborted.",Po.IDB_NOT_SUPPORTED="IndexedDB is not supported.",Po.MISSING_INDEX="Index not created.",Po.MISSING_OBJECT_STORES="Object stores not created.",Po.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",Po.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",Po.UNKNOWN_ABORT="Transaction was aborted for unknown reasons.", Po.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",Po.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",Po.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",Po.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",Po),Ro={},So=(Ro.AUTH_INVALID="ERROR",Ro.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",Ro.EXPLICIT_ABORT="IGNORED",Ro.IDB_NOT_SUPPORTED="ERROR",Ro.MISSING_INDEX= "WARNING",Ro.MISSING_OBJECT_STORES="ERROR",Ro.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",Ro.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",Ro.QUOTA_EXCEEDED="WARNING",Ro.QUOTA_MAYBE_EXCEEDED="WARNING",Ro.UNKNOWN_ABORT="WARNING",Ro.INCOMPATIBLE_DB_VERSION="WARNING",Ro),To={},Uo=(To.AUTH_INVALID=!1,To.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,To.EXPLICIT_ABORT=!1,To.IDB_NOT_SUPPORTED=!1,To.MISSING_INDEX=!1,To.MISSING_OBJECT_STORES=!1,To.DB_DELETED_BY_MISSING_OBJECT_STORES=!1,To.DB_REOPENED_BY_MISSING_OBJECT_STORES= !1,To.QUOTA_EXCEEDED=!1,To.QUOTA_MAYBE_EXCEEDED=!0,To.UNKNOWN_ABORT=!0,To.INCOMPATIBLE_DB_VERSION=!1,To);function Vo(a,b,c,d,e){b=b===void 0?{}:b;c=c===void 0?Qo[a]:c;d=d===void 0?So[a]:d;e=e===void 0?Uo[a]:e;T.call(this,c,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:a},b));this.type=a;this.message=c;this.level=d;this.h=e;Object.setPrototypeOf(this,Vo.prototype)} w(Vo,T);function Wo(a,b){Vo.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:a},Qo.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Wo.prototype)} w(Wo,Vo);function Xo(a,b){var c=Error.call(this);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.index=a;this.objectStore=b;Object.setPrototypeOf(this,Xo.prototype)} w(Xo,Error);var Yo=["The database connection is closing","Can't start a transaction on a closed database","A mutation operation was attempted on a database that did not allow mutations"]; function Zo(a,b,c,d){b=Mo(b);var e=a instanceof Error?a:Error("Unexpected error: "+a);if(e instanceof Vo)return e;a={objectStoreNames:c,dbName:b,dbVersion:d};if(e.name==="QuotaExceededError")return new Vo("QUOTA_EXCEEDED",a);if(id&&e.name==="UnknownError")return new Vo("QUOTA_MAYBE_EXCEEDED",a);if(e instanceof Xo)return new Vo("MISSING_INDEX",Object.assign({},a,{objectStore:e.objectStore,index:e.index}));if(e.name==="InvalidStateError"&&Yo.some(function(f){return e.message.includes(f)}))return new Vo("EXECUTE_TRANSACTION_ON_CLOSED_DB", a); if(e.name==="AbortError")return new Vo("UNKNOWN_ABORT",a,e.message);e.args=[Object.assign({},a,{name:"IdbError",Dd:e.name})];e.level="WARNING";return e} function $o(a,b,c){var d=Bo();return new Vo("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:b,version:c,hasSucceededOnce:d==null?void 0:d.hasSucceededOnce}})} ;function ap(a){if(!a)throw Error();throw a;} function bp(a){return a} function cp(a){this.h=a} function dp(a){function b(e){if(d.state.status==="PENDING"){d.state={status:"REJECTED",reason:e};e=y(d.i);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}} function c(e){if(d.state.status==="PENDING"){d.state={status:"FULFILLED",value:e};e=y(d.h);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}} var d=this;this.state={status:"PENDING"};this.h=[];this.i=[];a=a.h;try{a(c,b)}catch(e){b(e)}} dp.all=function(a){return new dp(new cp(function(b,c){var d=[],e=a.length;e===0&&b(d);for(var f={zb:0};f.zb=f)tp(a,k,t,g,u,b.join(),e),h=u;z.A(2);break;case 4:return z.return(Promise.reject(h))}})} function tp(a,b,c,d,e,f,g){b=c-b;e?(e instanceof Vo&&(e.type==="QUOTA_EXCEEDED"||e.type==="QUOTA_MAYBE_EXCEEDED")&&Ko("QUOTA_EXCEEDED",{dbName:Mo(a.h.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:g.mode}),e instanceof Vo&&e.type==="UNKNOWN_ABORT"&&(c-=a.j,c<0&&c>=2147483648&&(c=0),Ko("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.i=!0),up(a,!1,d,f,b,g.tag),Jo(e)):up(a,!0,d,f,b,g.tag)} function up(a,b,c,d,e,f){Ko("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.i,duration:e,isSuccessful:b,tryCount:c,tag:f===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":f})} r.getName=function(){return this.h.name}; function pp(a){this.h=a} r=pp.prototype;r.add=function(a,b){return jp(this.h.add(a,b))}; r.autoIncrement=function(){return this.h.autoIncrement}; r.clear=function(){return jp(this.h.clear()).then(function(){})}; function vp(a,b,c){a.h.createIndex(b,c,{unique:!1})} r.count=function(a){return jp(this.h.count(a))}; function wp(a,b){return xp(a,{query:b},function(c){return c.delete().then(function(){return yp(c)})}).then(function(){})} r.delete=function(a){return a instanceof IDBKeyRange?wp(this,a):jp(this.h.delete(a))}; r.get=function(a){return jp(this.h.get(a))}; r.index=function(a){try{return new zp(this.h.index(a))}catch(b){if(b instanceof Error&&b.name==="NotFoundError")throw new Xo(a,this.h.name);throw b;}}; r.getName=function(){return this.h.name}; r.keyPath=function(){return this.h.keyPath}; function xp(a,b,c){a=a.h.openCursor(b.query,b.direction);return Ap(a).then(function(d){return kp(d,c)})} function rp(a){var b=this;this.h=a;this.i=new Map;this.aborted=!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.aborted){e=Vo;for(var f=b.h.objectStoreNames,g=[],h=0;h=z},x); x.done.catch(function(z){e(z)})}catch(z){e(z)}}); g.addEventListener("success",function(){var t=g.result;k&&t.addEventListener("versionchange",function(){k(f())}); t.addEventListener("close",function(){Ko("IDB_UNEXPECTEDLY_CLOSED",{dbName:Mo(a),dbVersion:t.version});l&&l()}); d(f())}); g.addEventListener("error",function(){e(g.error)}); h&&g.addEventListener("blocked",function(){h()})})} function Ep(a,b,c){c=c===void 0?{}:c;return Dp(a,b,c)} function Fp(a,b){b=b===void 0?{}:b;var c,d,e,f;return A(function(g){if(g.h==1)return za(g,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.ce)&&c.addEventListener("blocked",function(){e()}),g.yield(ip(c),4); if(g.h!=2)return Aa(g,0);f=Ba(g);throw Zo(f,a,"",-1);})} ;function Gp(a,b){this.name=a;this.options=b;this.j=!0;this.u=this.o=0} Gp.prototype.i=function(a,b,c){c=c===void 0?{}:c;return Ep(a,b,c)}; Gp.prototype.delete=function(a){a=a===void 0?{}:a;return Fp(this.name,a)}; function Hp(a,b){return new Vo("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})} function Ip(a,b){if(!b)throw $o("openWithToken",Mo(a.name));return a.open()} Gp.prototype.open=function(){function a(){var f,g,h,k,l,m,n,p,t,u;return A(function(x){switch(x.h){case 1:return g=(f=Error().stack)!=null?f:"",za(x,2),x.yield(c.i(c.name,c.options.version,e),4);case 4:for(var z=h=x.i,H=c.options,K=[],da=y(Object.keys(H.Fb)),ea=da.next();!ea.done;ea=da.next()){ea=ea.value;var Oa=H.Fb[ea],Ob=Oa.Xe===void 0?Number.MAX_VALUE:Oa.Xe;!(z.h.version>=Oa.Lb)||z.h.version>=Ob||z.h.objectStoreNames.contains(ea)||K.push(ea)}k=K;if(k.length===0){x.A(5);break}l=Object.keys(c.options.Fb); m=h.objectStoreNames();if(c.uc.options.version+1)throw p.close(),c.j=!1,Hp(c,t);return x.return(p);case 8:throw b(),n instanceof Error&&!R("ytidb_async_stack_killswitch")&&(n.stack=n.stack+"\n"+g.substring(g.indexOf("\n")+1)),Zo(n,c.name,"",(u=c.options.version)!=null?u:-1);}})} function b(){c.h===d&&(c.h=void 0)} var c=this;if(!this.j)throw Hp(this);if(this.h)return this.h;var d,e={blocking:function(f){f.close()}, closed:b,tf:b,upgrade:this.options.upgrade};return this.h=d=a()};var Jp=new Gp("YtIdbMeta",{Fb:{databases:{Lb:1}},upgrade:function(a,b){b(1)&&op(a,"databases",{keyPath:"actualName"})}}); function Kp(a,b){var c;return A(function(d){if(d.h==1)return d.yield(Ip(Jp,b),2);c=d.i;return d.return(np(c,["databases"],{ka:!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 jp(f.h.put(a,void 0)).then(function(){})})}))})} function Lp(a,b){var c;return A(function(d){if(d.h==1)return a?d.yield(Ip(Jp,b),2):d.return();c=d.i;return d.return(c.delete("databases",a))})} function Mp(a,b){var c,d;return A(function(e){return e.h==1?(c=[],e.yield(Ip(Jp,b),2)):e.h!=3?(d=e.i,e.yield(np(d,["databases"],{ka:!0,mode:"readonly"},function(f){c.length=0;return xp(f.objectStore("databases"),{},function(g){a(g.getValue())&&c.push(g.getValue());return yp(g)})}),3)):e.return(c)})} function Np(a){return Mp(function(b){return b.publicName==="LogsDatabaseV2"&&b.userIdentifier!==void 0},a)} function Op(a,b,c){return Mp(function(d){return c?d.userIdentifier!==void 0&&!a.includes(d.userIdentifier)&&c.includes(d.publicName):d.userIdentifier!==void 0&&!a.includes(d.userIdentifier)},b)} function Pp(a){var b,c;return A(function(d){if(d.h==1)return b=Rn("YtIdbMeta hasAnyMeta other"),d.yield(Mp(function(e){return e.userIdentifier!==void 0&&e.userIdentifier!==b},a),2); c=d.i;return d.return(c.length>0)})} ;var Qp,Rp=new function(){}(new function(){}); function Sp(){var a,b,c,d;return A(function(e){switch(e.h){case 1:a=Bo();if((b=a)==null?0:b.hasSucceededOnce)return e.return(!0);var f;if(f=No)f=/WebKit\/([0-9]+)/.exec(Rc()),f=!!(f&&parseInt(f[1],10)>=600);f&&(f=/WebKit\/([0-9]+)/.exec(Rc()),f=!(f&&parseInt(f[1],10)>=602));if(f||cd)return e.return(!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return e.return(!1)}catch(g){return e.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return e.return(!1); za(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return e.yield(Kp(d,Rp),4);case 4:return e.yield(Lp("yt-idb-test-do-not-use",Rp),5);case 5:return e.return(!0);case 2:return Ba(e),e.return(!1)}})} function Tp(){if(Qp!==void 0)return Qp;Eo=!0;return Qp=Sp().then(function(a){Eo=!1;var b;if((b=Ao())!=null&&b.h){var c;b={hasSucceededOnce:((c=Bo())==null?void 0:c.hasSucceededOnce)||a};var d;(d=Ao())==null||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})} function Up(){return E("ytglobal.idbToken_")||void 0} function Vp(){var a=Up();return a?Promise.resolve(a):Tp().then(function(b){(b=b?Rp:void 0)&&D("ytglobal.idbToken_",b);return b})} ;var Wp=0;function Xp(a,b){Wp||(Wp=Zj.ma(function(){var c,d,e,f,g;return A(function(h){switch(h.h){case 1:return h.yield(Vp(),2);case 2:c=h.i;if(!c)return h.return();d=!0;za(h,3);return h.yield(Op(a,c,b),5);case 5:e=h.i;if(!e.length){d=!1;h.A(6);break}f=e[0];return h.yield(Fp(f.actualName),7);case 7:return h.yield(Lp(f.actualName,c),6);case 6:Aa(h,4);break;case 3:g=Ba(h),Jo(g),d=!1;case 4:Zj.qa(Wp),Wp=0,d&&Xp(a,b),h.h=0}})}))} function Yp(){var a;return A(function(b){return b.h==1?b.yield(Vp(),2):(a=b.i)?b.return(Pp(a)):b.return(!1)})} new xj;function Zp(a){if(!Qn())throw a=new Vo("AUTH_INVALID",{dbName:a}),Jo(a),a;var b=Rn();return{actualName:a+":"+b,publicName:a,userIdentifier:b}} function $p(a,b,c,d){var e,f,g,h,k,l;return A(function(m){switch(m.h){case 1:return f=(e=Error().stack)!=null?e:"",m.yield(Vp(),2);case 2:g=m.i;if(!g)throw h=$o("openDbImpl",a,b),R("ytidb_async_stack_killswitch")||(h.stack=h.stack+"\n"+f.substring(f.indexOf("\n")+1)),Jo(h),h;Lo(a);k=c?{actualName:a,publicName:a,userIdentifier:void 0}:Zp(a);za(m,3);return m.yield(Kp(k,g),5);case 5:return m.yield(Ep(k.actualName,b,d),6);case 6:return m.return(m.i);case 3:return l=Ba(m),za(m,7),m.yield(Lp(k.actualName, g),9);case 9:Aa(m,8);break;case 7:Ba(m);case 8:throw l;}})} function aq(a,b,c){c=c===void 0?{}:c;return $p(a,b,!1,c)} function bq(a,b,c){c=c===void 0?{}:c;return $p(a,b,!0,c)} function cq(a,b){b=b===void 0?{}:b;var c,d;return A(function(e){if(e.h==1)return e.yield(Vp(),2);if(e.h!=3){c=e.i;if(!c)return e.return();Lo(a);d=Zp(a);return e.yield(Fp(d.actualName,b),3)}return e.yield(Lp(d.actualName,c),0)})} function dq(a,b,c){a=a.map(function(d){return A(function(e){return e.h==1?e.yield(Fp(d.actualName,b),2):e.yield(Lp(d.actualName,c),0)})}); return Promise.all(a).then(function(){})} function eq(){var a=a===void 0?{}:a;var b,c;return A(function(d){if(d.h==1)return d.yield(Vp(),2);if(d.h!=3){b=d.i;if(!b)return d.return();Lo("LogsDatabaseV2");return d.yield(Np(b),3)}c=d.i;return d.yield(dq(c,a,b),0)})} function fq(a,b){b=b===void 0?{}:b;var c;return A(function(d){if(d.h==1)return d.yield(Vp(),2);if(d.h!=3){c=d.i;if(!c)return d.return();Lo(a);return d.yield(Fp(a,b),3)}return d.yield(Lp(a,c),0)})} ;function gq(a,b){Gp.call(this,a,b);this.options=b;Lo(a)} w(gq,Gp);function hq(a,b){var c;return function(){c||(c=new gq(a,b));return c}} gq.prototype.i=function(a,b,c){c=c===void 0?{}:c;return(this.options.shared?bq:aq)(a,b,Object.assign({},c))}; gq.prototype.delete=function(a){a=a===void 0?{}:a;return(this.options.shared?fq:cq)(this.name,a)}; function iq(a,b){return hq(a,b)} ;var jq={},kq=iq("ytGcfConfig",{Fb:(jq.coldConfigStore={Lb:1},jq.hotConfigStore={Lb:1},jq),shared:!1,upgrade:function(a,b){b(1)&&(vp(op(a,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),vp(op(a,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});function lq(a){return Ip(kq(),a)} function mq(a,b,c){var d,e,f;return A(function(g){switch(g.h){case 1:return d={config:a,hashData:b,timestamp:U()},g.yield(lq(c),2);case 2:return e=g.i,g.yield(e.clear("hotConfigStore"),3);case 3:return g.yield(qp(e,"hotConfigStore",d),4);case 4:return f=g.i,g.return(f)}})} function nq(a,b,c,d){var e,f,g;return A(function(h){switch(h.h){case 1:return e={config:a,hashData:b,configData:c,timestamp:U()},h.yield(lq(d),2);case 2:return f=h.i,h.yield(f.clear("coldConfigStore"),3);case 3:return h.yield(qp(f,"coldConfigStore",e),4);case 4:return g=h.i,h.return(g)}})} function oq(a){var b,c;return A(function(d){return d.h==1?d.yield(lq(a),2):d.h!=3?(b=d.i,c=void 0,d.yield(np(b,["coldConfigStore"],{mode:"readwrite",ka:!0},function(e){return Bp(e.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})} function pq(a){var b,c;return A(function(d){return d.h==1?d.yield(lq(a),2):d.h!=3?(b=d.i,c=void 0,d.yield(np(b,["hotConfigStore"],{mode:"readwrite",ka:!0},function(e){return Bp(e.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})} ;function qq(){F.call(this);this.i=[];this.h=[];var a=E("yt.gcf.config.hotUpdateCallbacks");a?(this.i=[].concat(ra(a)),this.h=a):(this.h=[],D("yt.gcf.config.hotUpdateCallbacks",this.h))} w(qq,F);qq.prototype.ba=function(){for(var a=y(this.i),b=a.next();!b.done;b=a.next()){var c=this.h;b=c.indexOf(b.value);b>=0&&c.splice(b,1)}this.i.length=0;F.prototype.ba.call(this)};function rq(){this.h=0;this.i=new qq} function sq(){var a;return(a=E("yt.gcf.config.hotConfigGroup"))!=null?a:P("RAW_HOT_CONFIG_GROUP")} function tq(a,b,c){var d,e,f;return A(function(g){switch(g.h){case 1:if(!R("start_client_gcf")){g.A(0);break}c&&(a.j=c,D("yt.gcf.config.hotConfigGroup",a.j||null));a.o(b);d=Up();if(!d){g.A(3);break}if(c){g.A(4);break}return g.yield(pq(d),5);case 5:e=g.i,c=(f=e)==null?void 0:f.config;case 4:return g.yield(mq(c,b,d),3);case 3:if(c)for(var h=c,k=y(a.i.h),l=k.next();!l.done;l=k.next())l=l.value,l(h);g.h=0}})} function uq(a,b,c){var d,e,f,g;return A(function(h){if(h.h==1){if(!R("start_client_gcf"))return h.A(0);a.coldHashData=b;D("yt.gcf.config.coldHashData",a.coldHashData||null);return(d=Up())?c?h.A(4):h.yield(oq(d),5):h.A(0)}h.h!=4&&(e=h.i,c=(f=e)==null?void 0:f.config);if(!c)return h.A(0);g=c.configData;return h.yield(nq(c,b,g,d),0)})} function vq(){if(!rq.h){var a=new rq;rq.h=a}a=rq.h;var b=U()-a.h;if(!(a.h!==0&&b0&&(b.request={internalExperimentFlags:c});c=a.xd;if((c==="WEB"||c==="MWEB"||c===1||c===2)&&b){var d;b.client.mainAppWebInfo=(d=b.client.mainAppWebInfo)!= null?d:{};b.client.mainAppWebInfo.webDisplayMode=un()}(d=E("yt.embedded_player.embed_url"))&&b&&(b.thirdParty={embedUrl:d});var e;if(R("web_log_memory_total_kbytes")&&((e=C.navigator)==null?0:e.deviceMemory)){var f;e=(f=C.navigator)==null?void 0:f.deviceMemory;b&&(b.client.memoryTotalKbytes=""+e*1E6)}a.appInstallData&&b&&(b.client.configInfo=b.client.configInfo||{},b.client.configInfo.appInstallData=a.appInstallData);(a=On())&&b&&(b.client.connectionType=a);R("web_log_effective_connection_type")&& (a=Pn())&&b&&(b.client.effectiveConnectionType=a);R("start_client_gcf")&&(e=vq())&&(a=e.coldConfigData,f=e.coldHashData,e=e.hotHashData,b&&(b.client.configInfo=b.client.configInfo||{},a&&(b.client.configInfo.coldConfigData=a),f&&(b.client.configInfo.coldHashData=f),e&&(b.client.configInfo.hotHashData=e)));P("DELEGATED_SESSION_ID")&&!R("pageid_as_header_web")&&(b.user={onBehalfOfUser:P("DELEGATED_SESSION_ID")});!R("fill_delegate_context_in_gel_killswitch")&&(a=P("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&& (b.user=Object.assign({},b.user,{serializedDelegationContext:a}));a=P("INNERTUBE_CONTEXT");var g;if(R("enable_persistent_device_token")&&(a==null?0:(g=a.client)==null?0:g.rolloutToken)){var h;b.client.rolloutToken=a==null?void 0:(h=a.client)==null?void 0:h.rolloutToken}g=Object;h=g.assign;a=b.client;f={};e=y(Object.entries(Dm(P("DEVICE",""))));for(d=e.next();!d.done;d=e.next())c=y(d.value),d=c.next().value,c=c.next().value,d==="cbrand"?f.deviceMake=c:d==="cmodel"?f.deviceModel=c:d==="cbr"?f.browserName= c:d==="cbrver"?f.browserVersion=c:d==="cos"?f.osName=c:d==="cosver"?f.osVersion=c:d==="cplatform"&&(f.platform=c);b.client=h.call(g,a,f);return b} function zq(a,b,c){c=c===void 0?{}:c;var d={};P("EOM_VISITOR_DATA")?d={"X-Goog-EOM-Visitor-Id":P("EOM_VISITOR_DATA")}:d={"X-Goog-Visitor-Id":c.visitorData||P("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;b=c.authorization||P("AUTHORIZATION");b||(a?b="Bearer "+E("gapi.auth.getToken")().th:(a=xn(wn()),R("pageid_as_header_web")||delete a["X-Goog-PageId"],d=Object.assign({},d,a)));b&&(d.Authorization=b);return d} ;var Aq=typeof TextEncoder!=="undefined"?new TextEncoder:null,Bq=Aq?function(a){return Aq.encode(a)}:function(a){for(var b=[],c=0,d=0;d>6|192:((e&64512)==55296&&d+1>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}a=new Uint8Array(b.length);for(c=0;c0){var u=Array(t);for(k=0;kWq||g=ar&&(Zq++,R("abandon_compression_after_N_slow_zips")?$q===S("compression_disable_point")&&Zq>br&&(Yq=!1):Yq=!1);kr(b);d.headers||(d.headers={});d.headers["Content-Encoding"]="gzip";d.postBody=a;d.postParams=void 0;e(c,d)} function lr(a){var b=b===void 0?!1:b;var c=c===void 0?!1:c;var d=U(),e={startTime:d,ticks:{},infos:{}},f=b?E("yt.logging.gzipForFetch",!1):!0;if(Yq&&f){if(!a.body)return a;try{var g=c?a.body:typeof a.body==="string"?a.body:JSON.stringify(a.body);f=g;if(!c&&typeof g==="string"){var h=jr(g);if(h!=null&&(h>Wq||h=ar)if(Zq++,R("abandon_compression_after_N_slow_zips")||R("abandon_compression_after_N_slow_zips_lr")){b=Zq/$q;var l=br/S("compression_disable_point");$q>0&&$q%S("compression_disable_point")===0&&b>=l&&(Yq=!1)}else Yq=!1;kr(e)}}a.headers=Object.assign({},{"Content-Encoding":"gzip"},a.headers||{});a.body=f;return a}catch(m){return wm(m),a}}else return a} function jr(a){try{return(new Blob(a.split(""))).size}catch(b){return wm(b),null}} function kr(a){R("gel_compression_csi_killswitch")||!R("log_gel_compression_latency")&&!R("log_gel_compression_latency_lr")||Rq("gel_compression",a,{sampleRate:.1})} ;function mr(a){a=Object.assign({},a);delete a.Authorization;var b=kg();if(b){var c=new dk;c.update(P("INNERTUBE_API_KEY"));c.update(b);a.hash=ld(c.digest(),3)}return a} ;var nr;function or(){nr||(nr=new zo("yt.innertube"));return nr} function pr(a,b,c,d){if(d)return null;d=or().get("nextId",!0)||1;var e=or().get("requests",!0)||{};e[d]={method:a,request:b,authState:mr(c),requestTime:Math.round(U())};or().set("nextId",d+1,86400,!0);or().set("requests",e,86400,!0);return d} function qr(a){var b=or().get("requests",!0)||{};delete b[a];or().set("requests",b,86400,!0)} function rr(a){var b=or().get("requests",!0);if(b){for(var c in b){var d=b[c];if(!(Math.round(U())-d.requestTime<6E4)){var e=d.authState,f=mr(zq(!1));yg(e,f)&&(e=d.request,"requestTimeMs"in e&&(e.requestTimeMs=Math.round(U())),sr(a,d.method,e,{}));delete b[c]}}or().set("requests",b,86400,!0)}} ;function tr(a){this.dc=this.h=!1;this.potentialEsfErrorCounter=this.i=0;this.handleError=function(){}; this.xb=function(){}; this.now=Date.now;this.Pb=!1;var b;this.Nd=(b=a.Nd)!=null?b:100;var c;this.Id=(c=a.Id)!=null?c:1;var d;this.Gd=(d=a.Gd)!=null?d:2592E6;var e;this.Fd=(e=a.Fd)!=null?e:12E4;var f;this.Hd=(f=a.Hd)!=null?f:5E3;var g;this.V=(g=a.V)!=null?g:void 0;this.jc=!!a.jc;var h;this.hc=(h=a.hc)!=null?h:.1;var k;this.xc=(k=a.xc)!=null?k:10;a.handleError&&(this.handleError=a.handleError);a.xb&&(this.xb=a.xb);a.Pb&&(this.Pb=a.Pb);a.dc&&(this.dc=a.dc);this.W=a.W;this.Ca=a.Ca;this.ga=a.ga;this.fa=a.fa;this.sendFn=a.sendFn; this.Xc=a.Xc;this.Uc=a.Uc;ur(this)&&(!this.W||this.W("networkless_logging"))&&vr(this)} function vr(a){ur(a)&&!a.Pb&&(a.h=!0,a.jc&&Math.random()<=a.hc&&a.ga.ee(a.V),wr(a),a.fa.ta()&&a.Zb(),a.fa.listen(a.Xc,a.Zb.bind(a)),a.fa.listen(a.Uc,a.pd.bind(a)))} r=tr.prototype;r.writeThenSend=function(a,b){var c=this;b=b===void 0?{}:b;if(ur(this)&&this.h){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.ga.set(d,this.V).then(function(e){d.id=e;c.fa.ta()&&xr(c,d)}).catch(function(e){xr(c,d); yr(c,e)})}else this.sendFn(a,b)}; r.sendThenWrite=function(a,b,c){var d=this;b=b===void 0?{}:b;if(ur(this)&&this.h){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.W&&this.W("nwl_skip_retry")&&(e.skipRetry=c);if(this.fa.ta()||this.W&&this.W("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var f=b.onError?b.onError:function(){}; b.onError=function(g,h){return A(function(k){if(k.h==1)return k.yield(d.ga.set(e,d.V).catch(function(l){yr(d,l)}),2); f(g,h);k.h=0})}}this.sendFn(a,b,e.skipRetry)}else this.ga.set(e,this.V).catch(function(g){d.sendFn(a,b,e.skipRetry); yr(d,g)})}else this.sendFn(a,b,this.W&&this.W("nwl_skip_retry")&&c)}; r.sendAndWrite=function(a,b){var c=this;b=b===void 0?{}:b;if(ur(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){d.id!==void 0?c.ga.wb(d.id,c.V):e=!0;c.fa.kb&&c.W&&c.W("vss_network_hint")&&c.fa.kb(!0);f(g,h)}; this.sendFn(d.url,d.options,void 0,!0);this.ga.set(d,this.V).then(function(g){d.id=g;e&&c.ga.wb(d.id,c.V)}).catch(function(g){yr(c,g)})}else this.sendFn(a,b,void 0,!0)}; r.Zb=function(){var a=this;if(!ur(this))throw Error("IndexedDB is not supported: throttleSend");this.i||(this.i=this.Ca.ma(function(){var b;return A(function(c){if(c.h==1)return c.yield(a.ga.ud("NEW",a.V),2);if(c.h!=3)return b=c.i,b?c.yield(xr(a,b),3):(a.pd(),c.return());a.i&&(a.i=0,a.Zb());c.h=0})},this.Nd))}; r.pd=function(){this.Ca.qa(this.i);this.i=0}; function xr(a,b){var c;return A(function(d){switch(d.h){case 1:if(!ur(a))throw Error("IndexedDB is not supported: immediateSend");if(b.id===void 0){d.A(2);break}return d.yield(a.ga.Je(b.id,a.V),3);case 3:(c=d.i)||a.xb(Error("The request cannot be found in the database."));case 2:if(zr(a,b,a.Gd)){d.A(4);break}a.xb(Error("Networkless Logging: Stored logs request expired age limit"));if(b.id===void 0){d.A(5);break}return d.yield(a.ga.wb(b.id,a.V),5);case 5:return d.return();case 4:b.skipRetry||(b=Ar(a, b));if(!b){d.A(0);break}if(!b.skipRetry||b.id===void 0){d.A(8);break}return d.yield(a.ga.wb(b.id,a.V),8);case 8:a.sendFn(b.url,b.options,!!b.skipRetry),d.h=0}})} function Ar(a,b){if(!ur(a))throw Error("IndexedDB is not supported: updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){}; b.options.onError=function(e,f){var g,h,k,l;return A(function(m){switch(m.h){case 1:g=Br(f);(h=Cr(f))&&a.W&&a.W("web_enable_error_204")&&a.handleError(Error("Request failed due to compression"),b.url,f);if(!(a.W&&a.W("nwl_consider_error_code")&&g||a.W&&!a.W("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.xc)){m.A(2);break}if(!a.fa.Cc){m.A(3);break}return m.yield(a.fa.Cc(),3);case 3:if(a.fa.ta()){m.A(2);break}c(e,f);if(!a.W||!a.W("nwl_consider_error_code")||((k=b)==null?void 0:k.id)===void 0){m.A(6); break}return m.yield(a.ga.Yc(b.id,a.V,!1),6);case 6:return m.return();case 2:if(a.W&&a.W("nwl_consider_error_code")&&!g&&a.potentialEsfErrorCounter>a.xc)return m.return();a.potentialEsfErrorCounter++;if(((l=b)==null?void 0:l.id)===void 0){m.A(8);break}return b.sendCount=c?!1:!0} function wr(a){if(!ur(a))throw Error("IndexedDB is not supported: retryQueuedRequests");a.ga.ud("QUEUED",a.V).then(function(b){b&&!zr(a,b,a.Fd)?a.Ca.ma(function(){return A(function(c){if(c.h==1)return b.id===void 0?c.A(2):c.yield(a.ga.Yc(b.id,a.V),2);wr(a);c.h=0})}):a.fa.ta()&&a.Zb()})} function yr(a,b){a.Ud&&!a.fa.ta()?a.Ud(b):a.handleError(b)} function ur(a){return!!a.V||a.dc} function Br(a){var b;return(a=a==null?void 0:(b=a.error)==null?void 0:b.code)&&a>=400&&a<=599?!1:!0} function Cr(a){var b;a=a==null?void 0:(b=a.error)==null?void 0:b.code;return!(a!==400&&a!==415)} ;var Dr; function Er(){if(Dr)return Dr();var a={};Dr=iq("LogsDatabaseV2",{Fb:(a.LogsRequestsStore={Lb:2},a),shared:!1,upgrade:function(b,c,d){c(2)&&op(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.h.indexNames.contains("newRequest")&&d.h.deleteIndex("newRequest"),vp(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&b.h.objectStoreNames.contains("sapisid")&&b.h.deleteObjectStore("sapisid");c(9)&&b.h.objectStoreNames.contains("SWHealthLog")&&b.h.deleteObjectStore("SWHealthLog")}, version:9});return Dr()} ;function Fr(a){return Ip(Er(),a)} function Gr(a,b){var c,d,e,f;return A(function(g){if(g.h==1)return c={startTime:U(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.yield(Fr(b),2);if(g.h!=3)return d=g.i,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:P("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.yield(qp(d,"LogsRequestsStore",e),3);f=g.i;c.ticks.tc=U();Hr(c);return g.return(f)})} function Ir(a,b){var c,d,e,f,g,h,k,l;return A(function(m){if(m.h==1)return c={startTime:U(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},m.yield(Fr(b),2);if(m.h!=3)return d=m.i,e=P("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],g=[a,e,U()],h=IDBKeyRange.bound(f,g),k="prev",R("use_fifo_for_networkless")&&(k="next"),l=void 0,m.yield(np(d,["LogsRequestsStore"],{mode:"readwrite",ka:!0},function(n){return Bp(n.objectStore("LogsRequestsStore").index("newRequestV2"),{query:h,direction:k}, function(p){p.getValue()&&(l=p.getValue(),a==="NEW"&&(l.status="QUEUED",p.update(l)))})}),3); c.ticks.tc=U();Hr(c);return m.return(l)})} function Jr(a,b){var c;return A(function(d){if(d.h==1)return d.yield(Fr(b),2);c=d.i;return d.return(np(c,["LogsRequestsStore"],{mode:"readwrite",ka:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(g){if(g)return g.status="QUEUED",jp(f.h.put(g,void 0)).then(function(){return g})})}))})} function Kr(a,b,c,d){c=c===void 0?!0:c;var e;return A(function(f){if(f.h==1)return f.yield(Fr(b),2);e=f.i;return f.return(np(e,["LogsRequestsStore"],{mode:"readwrite",ka:!0},function(g){var h=g.objectStore("LogsRequestsStore");return h.get(a).then(function(k){return k?(k.status="NEW",c&&(k.sendCount+=1),d!==void 0&&(k.options.compress=d),jp(h.h.put(k,void 0)).then(function(){return k})):dp.resolve(void 0)})}))})} function Lr(a,b){var c;return A(function(d){if(d.h==1)return d.yield(Fr(b),2);c=d.i;return d.return(c.delete("LogsRequestsStore",a))})} function Mr(a){var b,c;return A(function(d){if(d.h==1)return d.yield(Fr(a),2);b=d.i;c=U()-2592E6;return d.yield(np(b,["LogsRequestsStore"],{mode:"readwrite",ka:!0},function(e){return xp(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return yp(f)})})}),0)})} function Nr(){A(function(a){return a.yield(eq(),0)})} function Hr(a){R("nwl_csi_killswitch")||Rq("networkless_performance",a,{sampleRate:1})} ;var Or={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73, visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88, spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153, vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136, mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167, kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387, transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189, ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258, ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221, accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245, musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270, yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296, notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478, tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340, iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361, mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380, mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400, clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420, mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16, mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443, cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470, fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491, castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515};var Pr={},Qr=iq("ServiceWorkerLogsDatabase",{Fb:(Pr.SWHealthLog={Lb:1},Pr),shared:!0,upgrade:function(a,b){b(1)&&vp(op(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});function Rr(a){return Ip(Qr(),a)} function Sr(a){var b,c;A(function(d){if(d.h==1)return d.yield(Rr(a),2);b=d.i;c=U()-2592E6;return d.yield(np(b,["SWHealthLog"],{mode:"readwrite",ka:!0},function(e){return xp(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return yp(f)})})}),0)})} function Tr(a){var b;return A(function(c){if(c.h==1)return c.yield(Rr(a),2);b=c.i;return c.yield(b.clear("SWHealthLog"),0)})} ;var Ur={},Vr=0;function Wr(a){var b=b===void 0?{}:b;var c=new Image,d=""+Vr++;Ur[d]=c;c.onload=c.onerror=function(){delete Ur[d]}; b.Sh&&(c.referrerPolicy="no-referrer");c.src=a} ;var Xr;function Yr(){Xr||(Xr=new zo("yt.offline"));return Xr} function Zr(a){if(R("offline_error_handling")){var b=Yr().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);Yr().set("errors",b,2592E3,!0)}} ;function $r(){this.h=new Map;this.i=!1} function as(){if(!$r.h){var a=E("yt.networkRequestMonitor.instance")||new $r;D("yt.networkRequestMonitor.instance",a);$r.h=a}return $r.h} $r.prototype.requestComplete=function(a,b){b&&(this.i=!0);a=this.removeParams(a);this.h.get(a)||this.h.set(a,b)}; $r.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.h.get(a))?!1:a===!1&&this.i?!0:null}; $r.prototype.removeParams=function(a){return a.split("?")[0]}; $r.prototype.removeParams=$r.prototype.removeParams;$r.prototype.isEndpointCFR=$r.prototype.isEndpointCFR;$r.prototype.requestComplete=$r.prototype.requestComplete;$r.getInstance=as;function bs(){ci.call(this);var a=this;this.j=!1;this.h=Yj();this.h.listen("networkstatus-online",function(){if(a.j&&R("offline_error_handling")){var b=Yr().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new T(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;um(d)}Yr().set("errors",{},2592E3,!0)}}})} w(bs,ci);function cs(){if(!bs.h){var a=E("yt.networkStatusManager.instance")||new bs;D("yt.networkStatusManager.instance",a);bs.h=a}return bs.h} r=bs.prototype;r.ta=function(){return this.h.ta()}; r.kb=function(a){this.h.h=a}; r.ye=function(){var a=window.navigator.onLine;return a===void 0?!0:a}; r.oe=function(){this.j=!0}; r.listen=function(a,b){return this.h.listen(a,b)}; r.Cc=function(a){a=Wj(this.h,a);a.then(function(b){R("use_cfr_monitor")&&as().requestComplete("generate_204",b)}); return a}; bs.prototype.sendNetworkCheckRequest=bs.prototype.Cc;bs.prototype.listen=bs.prototype.listen;bs.prototype.enableErrorFlushing=bs.prototype.oe;bs.prototype.getWindowStatus=bs.prototype.ye;bs.prototype.networkStatusHint=bs.prototype.kb;bs.prototype.isNetworkAvailable=bs.prototype.ta;bs.getInstance=cs;function ds(a){a=a===void 0?{}:a;ci.call(this);var b=this;this.h=this.u=0;this.j=cs();var c=E("yt.networkStatusManager.instance.listen").bind(this.j);c&&(a.rateLimit?(this.rateLimit=a.rateLimit,c("networkstatus-online",function(){es(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){es(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){di(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){di(b,"publicytnetworkstatus-offline")})))} w(ds,ci);ds.prototype.ta=function(){var a=E("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.j)():!0}; ds.prototype.kb=function(a){var b=E("yt.networkStatusManager.instance.networkStatusHint").bind(this.j);b&&b(a)}; ds.prototype.Cc=function(a){var b=this,c;return A(function(d){c=E("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.j);return R("skip_network_check_if_cfr")&&as().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.kb(((f=window.navigator)==null?void 0:f.onLine)||!0);e(b.ta())})):c?d.return(c(a)):d.return(!0)})}; function es(a,b){a.rateLimit?a.h?(Zj.qa(a.u),a.u=Zj.ma(function(){a.o!==b&&(di(a,b),a.o=b,a.h=U())},a.rateLimit-(U()-a.h))):(di(a,b),a.o=b,a.h=U()):di(a,b)} ;var gs;function hs(){var a=tr.call;gs||(gs=new ds({Jh:!0,Ah:!0}));a.call(tr,this,{ga:{ee:Mr,wb:Lr,ud:Ir,Je:Jr,Yc:Kr,set:Gr},fa:gs,handleError:function(b,c,d){var e,f=d==null?void 0:(e=d.error)==null?void 0:e.code;if(f===400||f===415){var g;wm(new T(b.message,c,d==null?void 0:(g=d.error)==null?void 0:g.code),void 0,void 0,void 0,!0)}else um(b)}, xb:wm,sendFn:is,now:U,Ud:Zr,Ca:yo(),Xc:"publicytnetworkstatus-online",Uc:"publicytnetworkstatus-offline",jc:!0,hc:.1,xc:S("potential_esf_error_limit",10),W:R,Pb:!(Qn()&&js())});this.j=new xj;R("networkless_immediately_drop_all_requests")&&Nr();fq("LogsDatabaseV2")} w(hs,tr);function ks(){var a=E("yt.networklessRequestController.instance");a||(a=new hs,D("yt.networklessRequestController.instance",a),R("networkless_logging")&&Vp().then(function(b){a.V=b;vr(a);a.j.resolve();a.jc&&Math.random()<=a.hc&&a.V&&Sr(a.V);R("networkless_immediately_drop_sw_health_store")&&ls(a)})); return a} hs.prototype.writeThenSend=function(a,b){b||(b={});b=ms(a,b);Qn()||(this.h=!1);tr.prototype.writeThenSend.call(this,a,b)}; hs.prototype.sendThenWrite=function(a,b,c){b||(b={});b=ms(a,b);Qn()||(this.h=!1);tr.prototype.sendThenWrite.call(this,a,b,c)}; hs.prototype.sendAndWrite=function(a,b){b||(b={});b=ms(a,b);Qn()||(this.h=!1);tr.prototype.sendAndWrite.call(this,a,b)}; hs.prototype.awaitInitialization=function(){return this.j.promise}; function ls(a){var b;A(function(c){if(!a.V)throw b=$o("clearSWHealthLogsDb"),b;return c.return(Tr(a.V).catch(function(d){a.handleError(d)}))})} function is(a,b,c,d){d=d===void 0?!1:d;b=R("web_fp_via_jspb")?Object.assign({},b):b;R("use_cfr_monitor")&&ns(a,b);if(R("use_request_time_ms_header"))b.headers&&Hm(a)&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round(U())));else{var e;if((e=b.postParams)==null?0:e.requestTimeMs)b.postParams.requestTimeMs=Math.round(U())}if(c&&Object.keys(b).length===0){var f=f===void 0?"":f;var g=g===void 0?!1:g;var h=h===void 0?!1:h;if(a)if(f)Um(a,void 0,"POST",f,void 0);else if(P("USE_NET_AJAX_FOR_PING_TRANSPORT", !1)||h)Um(a,void 0,"GET","",void 0,void 0,g,h);else{b:{try{var k=new qc({url:a});if(k.u?typeof k.i!=="string"||k.i.length===0?0:{version:3,le:k.i,be:pc(k.j,"act=1","ri=1",rc(k))}:k.M&&{version:4,le:pc(k.j,"dct=1","suid="+k.o,""),be:pc(k.j,"act=1","ri=1","suid="+k.o)}){var l=bc(cc(5,a)),m;if(!(m=!l||!l.endsWith("/aclk"))){var n=a.search(lc),p=kc(a,0,"ri",n);if(p<0)var t=null;else{var u=a.indexOf("&",p);if(u<0||u>n)u=n;t=decodeURIComponent(a.slice(p+3,u!==-1?u:0).replace(/\+/g," "))}m=t!=="1"}var x= !m;break b}}catch(H){}x=!1}if(x){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,"")){var z=!0;break b}}catch(H){}z=!1}c=z?!0:!1}else c=!1;c||Wr(a)}}else b.compress?b.postBody?(typeof b.postBody!=="string"&&(b.postBody=JSON.stringify(b.postBody)),ir(a,b.postBody,b,Ym,d)):ir(a,JSON.stringify(b.postParams),b,Xm,d):Ym(a,b)} function ms(a,b){R("use_event_time_ms_header")&&Hm(a)&&(b.headers||(b.headers={}),b.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round(U())));return b} function ns(a,b){var c=b.onError?b.onError:function(){}; b.onError=function(e,f){as().requestComplete(a,!1);c(e,f)}; var d=b.onSuccess?b.onSuccess:function(){}; b.onSuccess=function(e,f){as().requestComplete(a,!0);d(e,f)}} function js(){return dc(document.location.toString())!=="www.youtube-nocookie.com"} ;var ps=!1,qs=C.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:ps};D("ytNetworklessLoggingInitializationOptions",qs);function rs(){var a;A(function(b){if(b.h==1)return b.yield(Vp(),2);a=b.i;if(!a||!Qn()&&!R("nwl_init_require_datasync_id_killswitch")||!js())return b.A(0);ps=!0;qs.isNwlInitialized=ps;return b.yield(ks().awaitInitialization(),0)})} ;function ss(a){var b=this;this.config_=null;a?this.config_=a:wq()&&(this.config_=xq());Tn(function(){rr(b)},5E3)} ss.prototype.isReady=function(){!this.config_&&wq()&&(this.config_=xq());return!!this.config_}; function sr(a,b,c,d){function e(n){n=n===void 0?!1:n;var p;if(d.retry&&h!="www.youtube-nocookie.com"&&(n||R("skip_ls_gel_retry")||g.headers["Content-Type"]!=="application/json"||(p=pr(b,c,l,k)),p)){var t=g.onSuccess,u=g.onFetchSuccess;g.onSuccess=function(H,K){qr(p);t(H,K)}; c.onFetchSuccess=function(H,K){qr(p);u(H,K)}}try{if(n&&d.retry&&!d.networklessOptions.bypassNetworkless)g.method="POST",d.networklessOptions.writeThenSend?ks().writeThenSend(m,g):ks().sendAndWrite(m,g); else if(d.compress){var x=!d.networklessOptions.writeThenSend;if(g.postBody){var z=g.postBody;typeof z!=="string"&&(z=JSON.stringify(g.postBody));ir(m,z,g,Ym,x)}else ir(m,JSON.stringify(g.postParams),g,Xm,x)}else R("web_all_payloads_via_jspb")?Ym(m,g):Xm(m,g)}catch(H){if(H.name==="InvalidAccessError")p&&(qr(p),p=0),wm(Error("An extension is blocking network request."));else throw H;}p&&Tn(function(){rr(a)},5E3)} !P("VISITOR_DATA")&&b!=="visitor_id"&&Math.random()<.01&&wm(new T("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady()){var f=new T("innertube xhrclient not ready",b,c,d);um(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(n,p){if(d.onSuccess)d.onSuccess(p)}, onFetchSuccess:function(n){if(d.onSuccess)d.onSuccess(n)}, onError:function(n,p){if(d.onError)d.onError(p)}, onFetchError:function(n){if(d.onError)d.onError(n)}, timeout:d.timeout,withCredentials:!0,compress:d.compress};g.headers["Content-Type"]||(g.headers["Content-Type"]="application/json");var h="";(f=a.config_.Ee)&&(h=f);var k=a.config_.Fe||!1,l=zq(k,h,d);Object.assign(g.headers,l);g.headers.Authorization&&!h&&k&&(g.headers["x-origin"]=window.location.origin);var m=Fm(""+h+("/youtubei/"+a.config_.innertubeApiVersion+"/"+b),{alt:"json"});(E("ytNetworklessLoggingInitializationOptions")?qs.isNwlInitialized:ps)?Tp().then(function(n){e(n)}):e(!1)} ;var ts=0,us=ed?"webkit":dd?"moz":bd?"ms":ad?"o":"";D("ytDomDomGetNextId",E("ytDomDomGetNextId")||function(){return++ts});var vs={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 As(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 vs||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;var c=a.target||a.srcElement;c&&c.nodeType==3&&(c=c.parentNode);this.target=c;var d=a.relatedTarget; if(d)try{d=d.nodeName?d:null}catch(e){d=null}else this.type=="mouseover"?d=a.fromElement:this.type=="mouseout"&&(d=a.toElement);this.relatedTarget=d;this.clientX=a.clientX!=void 0?a.clientX:a.pageX;this.clientY=a.clientY!=void 0?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||(this.type=="keypress"?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 Bs(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}} As.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; As.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; As.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var ug=C.ytEventsEventsListeners||{};D("ytEventsEventsListeners",ug);var Cs=C.ytEventsEventsCounter||{count:0};D("ytEventsEventsCounter",Cs); function Ds(a,b,c,d){d=d===void 0?{}:d;a.addEventListener&&(b!="mouseenter"||"onmouseenter"in document?b!="mouseleave"||"onmouseenter"in document?b=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");return tg(function(e){var f=typeof e[4]==="boolean"&&e[4]==!!d,g=Sa(e[4])&&Sa(d)&&yg(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||g)})} function Es(a,b,c,d){d=d===void 0?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=Ds(a,b,c,d);if(e)return e;e=++Cs.count+"";var f=!(b!="mouseenter"&&b!="mouseleave"||!a.addEventListener||"onmouseenter"in document);var g=f?function(h){h=new As(h);if(!Ig(h.relatedTarget,function(k){return k==a}))return h.currentTarget=a,h.type=b,c.call(a,h)}:function(h){h=new As(h); h.currentTarget=a;return c.call(a,h)}; g=tm(g);a.addEventListener?(b=="mouseenter"&&f?b="mouseover":b=="mouseleave"&&f?b="mouseout":b=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),Fs()||typeof d==="boolean"?a.addEventListener(b,g,d):a.addEventListener(b,g,!!d.capture)):a.attachEvent("on"+b,g);ug[e]=[a,b,c,g,d];return e} function Gs(a){a&&(typeof a=="string"&&(a=[a]),Nb(a,function(b){if(b in ug){var c=ug[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?Fs()||typeof c==="boolean"?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete ug[b]}}))} var Fs=si(function(){var a=!1;try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}}); window.addEventListener("test",null,b)}catch(c){}return a});function Hs(a){this.G=a;this.h=null;this.o=0;this.D=null;this.u=0;this.i=[];for(a=0;a<4;a++)this.i.push(0);this.j=0;this.U=Es(window,"mousemove",Za(this.Y,this));a=Za(this.P,this);typeof a==="function"&&(a=tm(a));this.Z=window.setInterval(a,25)} cb(Hs,F);Hs.prototype.Y=function(a){a.h===void 0&&Bs(a);var b=a.h;a.i===void 0&&Bs(a);this.h=new qg(b,a.i)}; Hs.prototype.P=function(){if(this.h){var a=U();if(this.o!=0){var b=this.D,c=this.h,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.o);this.i[this.j]=Math.abs((d-this.u)/this.u)>.5?1:0;for(c=b=0;c<4;c++)b+=this.i[c]||0;b>=3&&this.G();this.u=d}this.o=a;this.D=this.h;this.j=(this.j+1)%4}}; Hs.prototype.ba=function(){window.clearInterval(this.Z);Gs(this.U)};var Is={}; function Js(a){var b=a===void 0?{}:a;a=b.Ue===void 0?!1:b.Ue;b=b.pe===void 0?!0:b.pe;if(E("_lact",window)==null){var c=parseInt(P("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;D("_lact",c,window);D("_fact",c,window);c==-1&&Ks();Es(document,"keydown",Ks);Es(document,"keyup",Ks);Es(document,"mousedown",Ks);Es(document,"mouseup",Ks);a?Es(window,"touchmove",function(){Ls("touchmove",200)},{passive:!0}):(Es(window,"resize",function(){Ls("resize",200)}),b&&Es(window,"scroll",function(){Ls("scroll",200)})); new Hs(function(){Ls("mouse",100)}); Es(document,"touchstart",Ks,{passive:!0});Es(document,"touchend",Ks,{passive:!0})}} function Ls(a,b){Is[a]||(Is[a]=!0,Zj.ma(function(){Ks();Is[a]=!1},b))} function Ks(){E("_lact",window)==null&&Js();var a=Date.now();D("_lact",a,window);E("_fact",window)==-1&&D("_fact",a,window);(a=E("ytglobal.ytUtilActivityCallback_"))&&a()} function Ms(){var a=E("_lact",window);return a==null?-1:Math.max(Date.now()-a,0)} ;var Ns=C.ytPubsubPubsubInstance||new M,Os=C.ytPubsubPubsubSubscribedKeys||{},Ps=C.ytPubsubPubsubTopicToKeys||{},Qs=C.ytPubsubPubsubIsSynchronous||{};function Rs(a,b){var c=Ss();if(c&&b){var d=c.subscribe(a,function(){function e(){Os[d]&&b.apply&&typeof b.apply=="function"&&b.apply(window,f)} var f=arguments;try{Qs[a]?e():Nm(e,0)}catch(g){um(g)}},void 0); Os[d]=!0;Ps[a]||(Ps[a]=[]);Ps[a].push(d);return d}return 0} function Ts(a){var b=Ss();b&&(typeof a==="number"?a=[a]:typeof a==="string"&&(a=[parseInt(a,10)]),Nb(a,function(c){b.unsubscribeByKey(c);delete Os[c]}))} function Us(a,b){var c=Ss();c&&c.publish.apply(c,arguments)} function Vs(a){var b=Ss();if(b)if(b.clear(a),a)Ws(a);else for(var c in Ps)Ws(c)} function Ss(){return C.ytPubsubPubsubInstance} function Ws(a){Ps[a]&&(a=Ps[a],Nb(a,function(b){Os[b]&&delete Os[b]}),a.length=0)} M.prototype.subscribe=M.prototype.subscribe;M.prototype.unsubscribeByKey=M.prototype.ac;M.prototype.publish=M.prototype.qb;M.prototype.clear=M.prototype.clear;D("ytPubsubPubsubInstance",Ns);D("ytPubsubPubsubTopicToKeys",Ps);D("ytPubsubPubsubIsSynchronous",Qs);D("ytPubsubPubsubSubscribedKeys",Os);var Xs=Symbol("injectionDeps");function Ys(a){this.name=a} Ys.prototype.toString=function(){return"InjectionToken("+this.name+")"}; function Zs(a){this.key=a} function $s(){this.i=new Map;this.j=new Map;this.h=new Map} function at(a,b){a.i.set(b.zc,b);var c=a.j.get(b.zc);if(c)try{c.Rh(a.resolve(b.zc))}catch(d){c.Ph(d)}} $s.prototype.resolve=function(a){return a instanceof Zs?bt(this,a.key,[],!0):bt(this,a,[])}; function bt(a,b,c,d){d=d===void 0?!1:d;if(c.indexOf(b)>-1)throw Error("Deps cycle for: "+b);if(a.h.has(b))return a.h.get(b);if(!a.i.has(b)){if(d)return;throw Error("No provider for: "+b);}d=a.i.get(b);c.push(b);if(d.Qd!==void 0)var e=d.Qd;else if(d.Bf)e=d[Xs]?ct(a,d[Xs],c):[],e=d.Bf.apply(d,ra(e));else if(d.Pd){e=d.Pd;var f=e[Xs]?ct(a,e[Xs],c):[];e=new (Function.prototype.bind.apply(e,[null].concat(ra(f))))}else throw Error("Could not resolve providers for: "+b);c.pop();d.Vh||a.h.set(b,e);return e} function ct(a,b,c){return b?b.map(function(d){return d instanceof Zs?bt(a,d.key,c,!0):bt(a,d,c)}):[]} ;var dt;function et(){dt||(dt=new $s);return dt} ;var ft=window;function gt(){var a,b;return"h5vcc"in ft&&((a=ft.h5vcc.traceEvent)==null?0:a.traceBegin)&&((b=ft.h5vcc.traceEvent)==null?0:b.traceEnd)?1:"performance"in ft&&ft.performance.mark&&ft.performance.measure?2:0} function ht(a){var b=gt();switch(b){case 1:ft.h5vcc.traceEvent.traceBegin("YTLR",a);break;case 2:ft.performance.mark(a+"-start");break;case 0:break;default:zb(b,"unknown trace type")}} function jt(a){var b=gt();switch(b){case 1:ft.h5vcc.traceEvent.traceEnd("YTLR",a);break;case 2:b=a+"-start";var c=a+"-end";ft.performance.mark(c);ft.performance.measure(a,b,c);break;case 0:break;default:zb(b,"unknown trace type")}} ;var kt=R("web_enable_lifecycle_monitoring")&>()!==0,lt=R("web_enable_lifecycle_monitoring");function mt(a){var b,c;(c=(b=window).onerror)==null||c.call(b,a.message,"",0,0,a)} ;function nt(a){var b=this;var c=c===void 0?0:c;var d=d===void 0?yo():d;this.j=c;this.scheduler=d;this.i=new xj;this.h=a;for(a={ib:0};a.ib-1&&a.plugins.splice(b,1)})}; r.transition=function(a,b){var c=this;kt&&jt(this.state);var d=this.transitions.find(function(f){return Array.isArray(f.from)?f.from.find(function(g){return g===c.state&&f.to===a}):f.from===c.state&&f.to===a}); if(d){this.j&&(ot(this.j),this.j=void 0);qt(this,a,b);this.state=a;kt&&ht(this.state);d=d.action.bind(this);var e=this.plugins.filter(function(f){return f[a]}).map(function(f){return f[a]}); d(rt(this,e),b)}else throw Error("no transition specified from "+this.state+" to "+a);}; function rt(a,b){var c=b.filter(function(e){return st(a,e)===10}),d=b.filter(function(e){return st(a,e)!==10}); return a.D.Uh?function(){var e=B.apply(0,arguments);return A(function(f){if(f.h==1)return f.yield(a.af.apply(a,[c].concat(ra(e))),2);a.Kd.apply(a,[d].concat(ra(e)));f.h=0})}:function(){var e=B.apply(0,arguments); a.bf.apply(a,[c].concat(ra(e)));a.Kd.apply(a,[d].concat(ra(e)))}} r.bf=function(a){for(var b=B.apply(1,arguments),c=yo(),d=y(a),e=d.next(),f={};!e.done;f={Qb:void 0},e=d.next())f.Qb=e.value,c.Jb(function(g){return function(){tt(g.Qb.name);ut(function(){return g.Qb.callback.apply(g.Qb,ra(b))}); vt(g.Qb.name)}}(f))}; r.af=function(a){var b=B.apply(1,arguments),c,d,e,f,g;return A(function(h){h.h==1&&(c=yo(),d=y(a),e=d.next(),f={});if(h.h!=3){if(e.done)return h.A(0);f.Xa=e.value;f.cc=void 0;g=function(k){return function(){tt(k.Xa.name);var l=ut(function(){return k.Xa.callback.apply(k.Xa,ra(b))}); ge(l)?k.cc=R("web_lifecycle_error_handling_killswitch")?l.then(function(){vt(k.Xa.name)}):l.then(function(){vt(k.Xa.name)},function(m){mt(m); vt(k.Xa.name)}):vt(k.Xa.name)}}(f); c.Jb(g);return f.cc?h.yield(f.cc,3):h.A(3)}f={Xa:void 0,cc:void 0};e=d.next();return h.A(2)})}; r.Kd=function(a){var b=B.apply(1,arguments),c=this,d=a.map(function(e){return{Nc:function(){tt(e.name);ut(function(){return e.callback.apply(e,ra(b))}); vt(e.name)}, priority:st(c,e)}}); d.length&&(this.j=new nt(d))}; function st(a,b){var c,d;return(d=(c=a.o)!=null?c:b.priority)!=null?d:0} function tt(a){kt&&a&&ht(a)} function vt(a){kt&&a&&jt(a)} function qt(a,b,c){lt&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+a.constructor.name+"] '"+a.state+"' to '"+b+"'"),console.log("with message: ",c),console.groupEnd())} fa.Object.defineProperties(pt.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}}); function ut(a){if(R("web_lifecycle_error_handling_killswitch"))return a();try{return a()}catch(b){mt(b)}} ;function wt(a){pt.call(this,a===void 0?"none":a);this.h=null;this.o=10;this.transitions=[{from:"none",to:"application_navigating",action:this.i},{from:"application_navigating",to:"none",action:this.u},{from:"application_navigating",to:"application_navigating",action:function(){}}, {from:"none",to:"none",action:function(){}}]} var xt;w(wt,pt);wt.prototype.i=function(a,b){var c=this;this.h=Tn(function(){c.currentState==="application_navigating"&&c.transition("none")},5E3); a(b==null?void 0:b.event)}; wt.prototype.u=function(a,b){this.h&&(Zj.qa(this.h),this.h=null);a(b==null?void 0:b.event)}; function zt(){xt||(xt=new wt);return xt} ;var At=[];D("yt.logging.transport.getScrapedGelPayloads",function(){return At});function Bt(){this.store={};this.h={}} Bt.prototype.storePayload=function(a,b){a=Ct(a);this.store[a]?this.store[a].push(b):(this.h={},this.store[a]=[b]);R("more_accurate_gel_parser")&&(b=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(b));return a}; Bt.prototype.smartExtractMatchingEntries=function(a){if(!a.keys.length)return[];for(var b=Dt(this,a.keys.splice(0,1)[0]),c=[],d=0;d=1E3?d():c>=a?Pt||(Pt=cu(function(){d();Pt=void 0},0)):f-h>=10&&(du(e,b.tier),g.o=f)} function Zt(a,b){if(a.endpoint==="log_event"){R("more_accurate_gel_parser")&&Tt().storePayload({isJspb:!1},a.payload);Vt();var c=Wt(a),d=new Map;d.set(c,[a.payload]);var e=Xt(a.payload)||"";b&&(Jt=new b);return new ti(function(f,g){Jt&&Jt.isReady()?eu(d,Jt,f,g,{bypassNetworkless:!0},!0,e==="gelDebuggingEvent"):f()})}} function Wt(a){var b="";if(a.dangerousLogToVisitorSession)b="visitorOnlyApprovedKey";else if(a.cttAuthInfo){b=a.cttAuthInfo;var c={};b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId);Rt[a.cttAuthInfo.token]=c;b=a.cttAuthInfo.token}return b} function au(a,b,c,d){a=a===void 0?{}:a;c=c===void 0?!1:c;new ti(function(e,f){var g=bu(c,d),h=g.j;g.j=!1;fu(g.i);fu(g.h);g.h=0;Jt&&Jt.isReady()?d===void 0&&R("enable_web_tiered_gel")?gu(e,f,a,b,c,300,h):gu(e,f,a,b,c,d,h):(du(c,d),e())})} function gu(a,b,c,d,e,f,g){var h=Jt;c=c===void 0?{}:c;e=e===void 0?!1:e;f=f===void 0?200:f;g=g===void 0?!1:g;var k=new Map,l={isJspb:e,cttAuthInfo:d,tier:f};e={isJspb:e,cttAuthInfo:d};if(d!==void 0)f=R("enable_web_tiered_gel")?Tt().smartExtractMatchingEntries({keys:[l,e],sizeLimit:1E3}):Tt().extractMatchingEntries(e),k.set(d,f);else for(d=y(Object.keys(St)),l=d.next();!l.done;l=d.next())l=l.value,e=R("enable_web_tiered_gel")?Tt().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:l,tier:f}, {isJspb:!1,cttAuthInfo:l}],sizeLimit:1E3}):Tt().extractMatchingEntries({isJspb:!1,cttAuthInfo:l}),e.length>0&&k.set(l,e),(R("web_fp_via_jspb_and_json")&&c.writeThenSend||!R("web_fp_via_jspb_and_json"))&&delete St[l];eu(k,h,a,b,c,!1,g)} function du(a,b){function c(){au({writeThenSend:!0},void 0,a,b)} a=a===void 0?!1:a;b=b===void 0?200:b;var d=bu(a,b),e=d===Ot||d===Nt?5E3:Ht;R("web_gel_timeout_cap")&&!d.h&&(e=cu(function(){c()},e),d.h=e); fu(d.i);e=P("LOGGING_BATCH_TIMEOUT",S("web_gel_debounce_ms",1E4));R("shorten_initial_gel_batch_timeout")&&Qt&&(e=Gt);e=cu(function(){S("gel_min_batch_size")>0?Tt().getSequenceCount({cttAuthInfo:void 0,isJspb:a,tier:b})>=It&&c():c()},e); d.i=e} function eu(a,b,c,d,e,f,g){e=e===void 0?{}:e;var h=Math.round(U()),k=a.size,l=(g===void 0?0:g)&&R("vss_through_gel_video_stats")?"video_stats":"log_event";a=y(a);var m=a.next();for(g={};!m.done;g={Tc:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,Wc:void 0,Vc:void 0},m=a.next()){var n=y(m.value);m=n.next().value;n=n.next().value;g.batchRequest=Ag({context:yq(b.config_||xq())});if(!Na(n)&&!R("throw_err_when_logevent_malformed_killswitch")){d();break}g.batchRequest.events=n;(n=Rt[m])&& hu(g.batchRequest,m,n);delete Rt[m];g.dangerousLogToVisitorSession=m==="visitorOnlyApprovedKey";iu(g.batchRequest,h,g.dangerousLogToVisitorSession);R("always_send_and_write")&&(e.writeThenSend=!1);g.Wc=function(p){R("start_client_gcf")&&Zj.ma(function(){return A(function(t){return t.yield(ju(p),0)})}); k--;k||c()}; g.Tc=0;g.Vc=function(p){return function(){p.Tc++;if(e.bypassNetworkless&&p.Tc===1)try{sr(b,l,p.batchRequest,ku({writeThenSend:!0},p.dangerousLogToVisitorSession,p.Wc,p.Vc,f)),Qt=!1}catch(t){um(t),d()}k--;k||c()}}(g); try{sr(b,l,g.batchRequest,ku(e,g.dangerousLogToVisitorSession,g.Wc,g.Vc,f)),Qt=!1}catch(p){um(p),d()}}} function ku(a,b,c,d,e){a={retry:!0,onSuccess:c,onError:d,networklessOptions:a,dangerousLogToVisitorSession:b,uh:!!e,headers:{},postBodyFormat:"",postBody:"",compress:R("compress_gel")||R("compress_gel_lr")};lu()&&(a.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round(U())));return a} function iu(a,b,c){lu()||(a.requestTimeMs=String(b));R("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=P("EVENT_ID"))&&((c=P("BATCH_CLIENT_COUNTER")||0)||(c=Math.floor(Math.random()*65535/2)),c++,c>65535&&(c=1),pm("BATCH_CLIENT_COUNTER",c),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})} function hu(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 Vt(){var a;(a=E("yt.logging.transport.enableScrapingForTest"))||(a=Pm("il_payload_scraping"),a=(a!==void 0?String(a):"")!=="enable_il_payload_scraping");a||(At=[],D("yt.logging.transport.enableScrapingForTest",!0),D("yt.logging.transport.scrapedPayloadsForTesting",At),D("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),D("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), D("yt.logging.transport.scrapeClientEvent",!0))} function lu(){return R("use_request_time_ms_header")||R("lr_use_request_time_ms_header")} function cu(a,b){return R("transport_use_scheduler")===!1?Nm(a,b):R("logging_avoid_blocking_during_navigation")||R("lr_logging_avoid_blocking_during_navigation")?Tn(function(){if(zt().currentState==="none")a();else{var c={};zt().install((c.none={callback:a},c))}},b):Tn(a,b)} function fu(a){R("transport_use_scheduler")?Zj.qa(a):window.clearTimeout(a)} function ju(a){var b,c,d,e,f,g,h,k,l,m;return A(function(n){return n.h==1?(d=(b=a)==null?void 0:(c=b.responseContext)==null?void 0:c.globalConfigGroup,e=Ft(d,Sl),g=(f=d)==null?void 0:f.hotHashData,h=Ft(d,Rl),l=(k=d)==null?void 0:k.coldHashData,(m=et().resolve(new Zs(rq)))?g?e?n.yield(tq(m,g,e),2):n.yield(tq(m,g),2):n.A(2):n.return()):l?h?n.yield(uq(m,l,h),0):n.yield(uq(m,l),0):n.A(0)})} function bu(a,b){b=b===void 0?200:b;return a?b===300?Ot:Mt:b===300?Nt:Lt} function Xt(a){a=Object.keys(a);a=y(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,Or[b])return b} function Yt(a){switch(a){case "DELAYED_EVENT_TIER_UNSPECIFIED":return 0;case "DELAYED_EVENT_TIER_DEFAULT":return 100;case "DELAYED_EVENT_TIER_DISPATCH_TO_EMPTY":return 200;case "DELAYED_EVENT_TIER_FAST":return 300;case "DELAYED_EVENT_TIER_IMMEDIATE":return 400;default:return 200}} ;var mu=C.ytLoggingGelSequenceIdObj_||{};D("ytLoggingGelSequenceIdObj_",mu); function nu(a,b,c,d){d=d===void 0?{}:d;var e={},f=Math.round(d.timestamp||U());e.eventTimeMs=f ")} ;var pu=new Set,qu=0,ru=0,su=0,tu=[],uu=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];function Ho(a){vu(a)} function V(a){vu(a,"WARNING")} function wu(a){a instanceof Error?vu(a):(a=Sa(a)?JSON.stringify(a):String(a),a=new T(a),a.name="RejectedPromiseError",V(a))} function vu(a,b,c,d,e,f,g,h){f=f===void 0?{}:f;f.name=c||P("INNERTUBE_CONTEXT_CLIENT_NAME",1);f.version=d||P("INNERTUBE_CONTEXT_CLIENT_VERSION");c=f;b=b===void 0?"ERROR":b;g=g===void 0?!1:g;b=b===void 0?"ERROR":b;g=g===void 0?!1:g;if(a&&(a.hasOwnProperty("level")&&a.level&&(b=a.level),R("console_log_js_exceptions")&&(d=[],d.push("Name: "+a.name),d.push("Message: "+a.message),a.hasOwnProperty("params")&&d.push("Error Params: "+JSON.stringify(a.params)),a.hasOwnProperty("args")&&d.push("Error args: "+ JSON.stringify(a.args)),d.push("File name: "+a.fileName),d.push("Stacktrace: "+a.stack),d=d.join("\n"),window.console.log(d,a)),!(qu>=5))){d=tu;var k=Wb(a);e=k.message||"Unknown Error";f=k.name||"UnknownError";var l=k.stack||a.i||"Not available";if(l.startsWith(f+": "+e)){var m=l.split("\n");m.shift();l=m.join("\n")}m=k.lineNumber||"Not available";k=k.fileName||"Not available";var n=0;if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var p=0;p=500);p++);else if(a.hasOwnProperty("params")&&a.params){var t=a.params;if(typeof a.params==="object")for(p in t){if(t[p]){var u="params."+p,x=sn(t[p]);c[u]=x;n+=u.length+x.length;if(n>500)break}}else c.params=sn(t)}if(d.length)for(p=0;p=500);p++);navigator.vendor&&!c.hasOwnProperty("vendor")&&(c["device.vendor"]=navigator.vendor);p={message:e,name:f,lineNumber:m,fileName:k,stack:l,params:c,sampleWeight:1};c=Number(a.columnNumber);isNaN(c)||(p.lineNumber= p.lineNumber+":"+c);if(a.level==="IGNORED")a=0;else a:{a=mn();c=y(a.Ya);for(d=c.next();!d.done;d=c.next())if(d=d.value,p.message&&p.message.match(d.Kh)){a=d.weight;break a}a=y(a.Ta);for(c=a.next();!c.done;c=a.next())if(c=c.value,c.callback(p)){a=c.weight;break a}a=1}p.sampleWeight=a;a=y(gn);for(c=a.next();!c.done;c=a.next())if(c=c.value,c.vc[p.name])for(e=y(c.vc[p.name]),d=e.next();!d.done;d=e.next())if(f=d.value,d=p.message.match(f.regexp)){p.params["params.error.original"]=d[0];e=f.groups;f={}; for(m=0;m0&&(a.headers=b);return a} ;function $u(){return ig()||(gd||hd)&&Oo("applewebkit")&&!Oo("version")&&(!Oo("safari")||Oo("gsa/"))||fd&&Oo("version/")?!0:P("EOM_VISITOR_DATA")?!1:!0} ;function av(a){a:{var b="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(b="EMBEDDED_PLAYER_MODE_PFL");var c=a.raw_embedded_player_response;if(!c&&(a=a.embedded_player_response))try{c=JSON.parse(a)}catch(e){break a}if(c)b:for(var d in Yl)if(Yl[d]==c.embeddedPlayerMode){b=Yl[d];break b}}return b==="EMBEDDED_PLAYER_MODE_PFL"} ;function bv(a){db.call(this,a.message||a.description||a.name);this.isMissing=a instanceof cv;this.isTimeout=a instanceof Tu&&a.errorCode=="net.timeout";this.isCanceled=a instanceof Ci} w(bv,db);bv.prototype.name="BiscottiError";function cv(){db.call(this,"Biscotti ID is missing from server")} w(cv,db);cv.prototype.name="BiscottiMissingError";var Ru={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},dv=null;function ev(){if(R("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!$u())return Error("User has not consented - not fetching biscotti id.");var a=P("PLAYER_VARS",{});if(xg(a)=="1")return Error("Biscotti ID is not available in private embed mode");if(av(a))return Error("Biscotti id fetching has been disabled for pfl.")} function im(){var a=ev();if(a!==void 0)return yi(a);dv||(dv=Qu().then(fv).Dc(function(b){return gv(2,b)})); return dv} function fv(a){a=a.xhr.responseText;if(a.lastIndexOf(")]}'",0)!=0)throw new cv;a=JSON.parse(a.substr(4));if((a.type||1)>1)throw new cv;a=a.id;jm(a);dv=Vu(a);hv(18E5,2);return a} function gv(a,b){b=new bv(b);jm("");dv=Wu(b);a>0&&hv(12E4,a-1);throw b;} function hv(a,b){Nm(function(){Qu().then(fv,function(c){return gv(b,c)}).Dc(ri)},a)} function iv(){try{var a=E("yt.ads.biscotti.getId_");return a?a():im()}catch(b){return yi(b)}} ;var Ib=sa(["data-"]);function jv(a){a&&(a.dataset?a.dataset[kv()]="true":Jb(a))} function lv(a){return a?a.dataset?a.dataset[kv()]:a.getAttribute("data-loaded"):null} var mv={};function kv(){return mv.loaded||(mv.loaded="loaded".replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()}))} ;function nv(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||zg(b);this.assets=a.assets||{};this.attrs=a.attrs||zg(c);this.fallback=a.fallback||null;this.fallbackMessage=a.fallbackMessage||null;this.html5=!!a.html5;this.disable=a.disable||{};this.loaded=!!a.loaded;this.messages=a.messages||{}} nv.prototype.clone=function(){var a=new nv,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];Ma(c)=="object"?a[b]=zg(c):a[b]=c}return a};var ov=["att/get"],pv=["share/get_share_panel"],qv=["share/get_web_player_share_panel"],rv=["feedback"],sv=["notification/modify_channel_preference"],tv=["browse/edit_playlist"],uv=["subscription/subscribe"],vv=["subscription/unsubscribe"];var wv=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};D("yt.msgs_",wv);function xv(a){km(wv,arguments)} ;function yv(a,b,c){zv(a,b,c===void 0?null:c)} function Av(a){a=Bv(a);var b=document.getElementById(a);b&&(Vs(a),b.parentNode.removeChild(b))} function Cv(a,b){a&&b&&(a=""+Ta(b),(a=Dv[a])&&Ts(a))} function zv(a,b,c){c=c===void 0?null:c;var d=Bv(a),e=document.getElementById(d),f=e&&lv(e),g=e&&!f;f?b&&b():(b&&(f=Rs(d,b),b=""+Ta(b),Dv[b]=f),g||(e=Ev(a,d,function(){lv(e)||(jv(e),Us(d),Nm(function(){Vs(d)},0))},c)))} function Ev(a,b,c,d){d=d===void 0?null:d;var e=Gg("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);Gb(e,Pl(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e} function Bv(a){var b=document.createElement("a");yb(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+$b(a)} var Dv={};function Fv(a){var b=Gv(a),c=document.getElementById(b),d=c&&lv(c);d||c&&!d||(c=Hv(a,b,function(){if(!lv(c)){jv(c);Us(b);var e=$a(Vs,b);Nm(e,0)}}))} function Hv(a,b,c){var d=document.createElement("link");d.id=b;d.onload=function(){c&&setTimeout(c,0)}; a=Pl(a);Lb(d,a);(document.getElementsByTagName("head")[0]||document.body).appendChild(d);return d} function Gv(a){var b=Gg("A");yb(b,new rb(a));a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"css-"+$b(a)} ;function Iv(a){var b=B.apply(1,arguments);if(!Jv(a)||b.some(function(d){return!Jv(d)}))throw Error("Only objects may be merged."); b=y(b);for(var c=b.next();!c.done;c=b.next())Kv(a,c.value)} function Kv(a,b){for(var c in b)if(Jv(b[c])){if(c in a&&!Jv(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});Kv(a[c],b[c])}else if(Lv(b[c])){if(c in a&&!Lv(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);Mv(a[c],b[c])}else a[c]=b[c];return a} function Mv(a,b){b=y(b);for(var c=b.next();!c.done;c=b.next())c=c.value,Jv(c)?a.push(Kv({},c)):Lv(c)?a.push(Mv([],c)):a.push(c);return a} function Jv(a){return typeof a==="object"&&!Array.isArray(a)} function Lv(a){return typeof a==="object"&&Array.isArray(a)} ;var Nv="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" "); function Ov(a,b){var c=c===void 0?!0:c;var d=P("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=dc(window.location.href);e&&d.push(e);e=dc(a);if(Mb(d,e)>=0||!e&&a.lastIndexOf("/",0)==0)if(d=document.createElement("a"),yb(d,a),a=d.href)if(a=ec(a),a=fc(a))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:Nu()},b)),f){var f=parseInt(f,10);isFinite(f)&&f>0&&Pv(a,b,f)}else Pv(a,b)} function Pv(a,b,c){a=Qv(a);b=b?ic(b):"";c=c||5;$u()&&zn(a,b,c)} function Qv(a){for(var b=y(Nv),c=b.next();!c.done;c=b.next())a=nc(a,c.value);return"ST-"+$b(a).toString(36)} ;function Rv(a){Eq.call(this,1,arguments);this.csn=a} w(Rv,Eq);var Nq=new Fq("screen-created",Rv),Sv=[],Tv=0,Uv=new Map,Vv=new Map,Wv=new Map; function Xv(a,b,c,d,e){e=e===void 0?!1:e;for(var f=Yv({cttAuthInfo:Pu(b)||void 0},b),g=y(d),h=g.next();!h.done;h=g.next()){h=h.value;var k=h.getAsJson();(vg(k)||!k.trackingParams&&!k.veType)&&V(Error("Child VE logged with no data"));if(R("no_client_ve_attach_unless_shown")){var l=Zv(h,b);if(k.veType&&!Vv.has(l)&&!Wv.has(l)&&!e){if(!R("il_attach_cache_limit")||Uv.size<1E3){Uv.set(l,[a,b,c,h]);return}R("il_attach_cache_limit")&&Uv.size>1E3&&V(new T("IL Attach cache exceeded limit"))}h=Zv(c,b);Uv.has(h)? $v(c,b):Wv.set(h,!0)}}d=d.filter(function(m){m.csn!==b?(m.csn=b,m=!0):m=!1;return m}); c={csn:b,parentVe:c.getAsJson(),childVes:Qb(d,function(m){return m.getAsJson()})}; b==="UNDEFINED_CSN"?aw("visualElementAttached",f,c):a?nu("visualElementAttached",c,a,f):Io("visualElementAttached",c,f)} function aw(a,b,c){Sv.push({Te:a,payload:c,Gh:void 0,options:b});Tv||(Tv=Oq())} function Pq(a){if(Sv){for(var b=y(Sv),c=b.next();!c.done;c=b.next())c=c.value,c.payload&&(c.payload.csn=a.csn,Io(c.Te,c.payload,c.options));Sv.length=0}Tv=0} function Zv(a,b){return""+a.getAsJson().veType+a.getAsJson().veCounter+b} function $v(a,b){a=Zv(a,b);Uv.has(a)&&(b=Uv.get(a)||[],Xv(b[0],b[1],b[2],[b[3]],!0),Uv.delete(a))} function Yv(a,b){R("log_sequence_info_on_gel_web")&&(a.sequenceGroup=b);return a} ;function bw(){try{return!!self.localStorage}catch(a){return!1}} ;function cw(a){a=a.match(/(.*)::.*::.*/);if(a!==null)return a[1]} function dw(a){if(bw()){var b=Object.keys(window.localStorage);b=y(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=cw(c);d===void 0||a.includes(d)||self.localStorage.removeItem(c)}}} function ew(){if(!bw())return!1;var a=Rn(),b=Object.keys(window.localStorage);b=y(b);for(var c=b.next();!c.done;c=b.next())if(c=cw(c.value),c!==void 0&&c!==a)return!0;return!1} ;function fw(){var a=!1;try{a=!!window.sessionStorage.getItem("session_logininfo")}catch(b){a=!0}return(P("INNERTUBE_CLIENT_NAME")==="WEB"||P("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&a} function gw(a){if(P("LOGGED_IN",!0)&&fw()){var b=P("VALID_SESSION_TEMPDATA_DOMAINS",[]);var c=dc(window.location.href);c&&b.push(c);c=dc(a);Mb(b,c)>=0||!c&&a.lastIndexOf("/",0)==0?(b=ec(a),(b=fc(b))?(b=Qv(b),b=(b=An(b)||null)?Dm(b):{}):b=null):b=null;b==null&&(b={});c=b;var d=void 0;fw()?(d||(d=P("LOGIN_INFO")),d?(c.session_logininfo=d,c=!0):c=!1):c=!1;c&&Ov(a,b)}} ;function hw(a,b,c){b=b===void 0?{}:b;c=c===void 0?!1:c;var d=P("EVENT_ID");d&&(b.ei||(b.ei=d));b&&Ov(a,b);if(c)return!1;gw(a);var e=e===void 0?{}:e;var f=f===void 0?"":f;var g=g===void 0?window:g;b=jc(a,e);gw(b);a=void 0;a=a===void 0?vb:a;a:if(f=b+f,a=a===void 0?vb:a,!(f instanceof rb)){for(b=0;b6E4&&delete Sw[e];a&&(a.h=0)},5E3)); return c.count>5?(c.count===6&&Math.random()*1E5<1&&(c=new T("CSI data exceeded logging limit with key",b.split("_")),b.indexOf("plev")>=0||V(c)),!0):!1} ;var Ww=window;function Xw(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}} function Yw(){var a;if(R("csi_use_performance_navigation_timing")||R("csi_use_performance_navigation_timing_tvhtml5")){var b,c,d,e=Y==null?void 0:(a=Y.getEntriesByType)==null?void 0:(b=a.call(Y,"navigation"))==null?void 0:(c=b[0])==null?void 0:(d=c.toJSON)==null?void 0:d.call(c);e?(e.requestStart=Zw(e.requestStart),e.responseEnd=Zw(e.responseEnd),e.redirectStart=Zw(e.redirectStart),e.redirectEnd=Zw(e.redirectEnd),e.domainLookupEnd=Zw(e.domainLookupEnd),e.connectStart=Zw(e.connectStart),e.connectEnd= Zw(e.connectEnd),e.responseStart=Zw(e.responseStart),e.secureConnectionStart=Zw(e.secureConnectionStart),e.domainLookupStart=Zw(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=Y.timing}else a=R("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(Y.timing)):Y.timing;return a} function Zw(a){return Math.round($w()+a)} function $w(){return(R("csi_use_time_origin")||R("csi_use_time_origin_tvhtml5"))&&Y.timeOrigin?Math.floor(Y.timeOrigin):Y.timing.navigationStart} var Y=Ww.performance||Ww.mozPerformance||Ww.msPerformance||Ww.webkitPerformance||new Xw;var ax=!1,bx=!1,cx={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="preload"][name="player/embed"]':"pej",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj", 'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc",'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc", 'script[name="mobile_blazer_watch_mod"]':"mbwj",'script[name="embed_client"]':"ecj",'link[rel="stylesheet"][name="embed-ui"]':"ecc"};Za(Y.clearResourceTimings||Y.webkitClearResourceTimings||Y.mozClearResourceTimings||Y.msClearResourceTimings||Y.oClearResourceTimings||ri,Y);function dx(a,b){if(!R("web_csi_action_sampling_enabled")||!Fw(b).actionDisabled){var c=Nw(b||"");Iv(c.info,a);a.loadType&&(c=a.loadType,Hw(b).loadType=c);Iv(Kw(b),a);c=Lw(b);b=Fw(b).cttAuthInfo;Uw().info(a,c,b)}} function ex(){var a,b,c,d;return((d=et().resolve(new Zs(rq))==null?void 0:(a=sq())==null?void 0:(b=a.loggingHotConfig)==null?void 0:(c=b.csiConfig)==null?void 0:c.debugTicks)!=null?d:[]).map(function(e){return Object.values(e)[0]})} function Z(a,b,c){if(!R("web_csi_action_sampling_enabled")||!Fw(c).actionDisabled){var d=Lw(c),e;if(e=R("web_csi_debug_sample_enabled")&&d){(et().resolve(new Zs(rq))==null?0:sq())&&!bx&&(bx=!0,Z("gcfl",U(),c));var f,g,h;e=(et().resolve(new Zs(rq))==null?void 0:(f=sq())==null?void 0:(g=f.loggingHotConfig)==null?void 0:(h=g.csiConfig)==null?void 0:h.debugSampleWeight)||0;if(f=e!==0)b:{f=ex();if(f.length>0)for(g=0;gc.duration?d:c},{duration:0}))&&b.startTime>0&&b.responseEnd>0&&(Z("wffs",Zw(b.startTime)),Z("wffe",Zw(b.responseEnd)))} function kx(a){var b=lx("aft",a);if(b)return b;b=P((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=b.length,d=0;d0&&dx(c);c={isNavigation:!0,actionType:Pw[P("TIMING_ACTION")]||"LATENCY_ACTION_UNKNOWN"};var d=P("PREVIOUS_ACTION");d&&(c.previousAction=Pw[d]||"LATENCY_ACTION_UNKNOWN");if(d=P("CLIENT_PROTOCOL"))c.httpProtocol=d;if(d=P("CLIENT_TRANSPORT"))c.transportProtocol=d;(d=Nu())&&d!=="UNDEFINED_CSN"&&(c.clientScreenNonce=d);d=gx();if(d===1||d===-1)c.isVisible=!0;Hw();Gw(); c.loadType="cold";d=Gw();var e=Yw(),f=$w(),g=P("CSI_START_TIMESTAMP_MILLIS",0);g>0&&!R("embeds_web_enable_csi_start_override_killswitch")&&(f=g);f&&(Z("srt",e.responseStart),d.prerender!==1&&Z("_start",f,void 0));d=mx();d>0&&Z("fpt",d);d=Yw();d.isPerformanceNavigationTiming&&dx({performanceNavigationTiming:!0},void 0);Z("nreqs",d.requestStart,void 0);Z("nress",d.responseStart,void 0);Z("nrese",d.responseEnd,void 0);d.redirectEnd-d.redirectStart>0&&(Z("nrs",d.redirectStart,void 0),Z("nre",d.redirectEnd, void 0));d.domainLookupEnd-d.domainLookupStart>0&&(Z("ndnss",d.domainLookupStart,void 0),Z("ndnse",d.domainLookupEnd,void 0));d.connectEnd-d.connectStart>0&&(Z("ntcps",d.connectStart,void 0),Z("ntcpe",d.connectEnd,void 0));d.secureConnectionStart>=$w()&&d.connectEnd-d.secureConnectionStart>0&&(Z("nstcps",d.secureConnectionStart,void 0),Z("ntcpe",d.connectEnd,void 0));Y&&"getEntriesByType"in Y&&jx();d=[];if(document.querySelector&&Y&&Y.getEntriesByName)for(var h in cx)cx.hasOwnProperty(h)&&(e=cx[h], ix(h,e)&&d.push(e));if(d.length>0)for(c.resourceInfo=[],h=y(d),d=h.next();!d.done;d=h.next())c.resourceInfo.push({resourceCache:d.value});dx(c);c=Jw();c.preLoggedGelInfos||(c.preLoggedGelInfos=[]);h=c.preLoggedGelInfos;c=Kw();d=void 0;for(e=0;e-1&&(delete jh["@type"],ka=jh);x&&a.h.has(x)&&a.h.delete(x);((xs=b.config)==null?0:xs.Ze)&&rx(b.config.Ze);if(ka||(ys=a.i)==null||!ys.wh(b.input,b.Ga)){ja.A(15);break}return ja.yield(a.i.Hh(b.input,b.Ga),16);case 16:ka=ja.i;case 15:return Ix(a,ka,b),((zs=b.config)==null?0:zs.Ve)&&rx(b.config.Ve),d(), ja.return(ka||void 0)}})} function Dx(a,b){a:{a=a.u;var c,d=(c=Ft(b,Xl))==null?void 0:c.signal;if(d&&a.Xb&&(c=a.Xb[d])){var e=c();break a}var f;if((c=(f=Ft(b,Vl))==null?void 0:f.request)&&a.je&&(f=a.je[c])){e=f();break a}for(e in b)if(a.qd[e]&&(b=a.qd[e])){e=b();break a}e=void 0}if(e!==void 0)return Promise.resolve(e)} function Fx(a,b){var c,d,e,f;return A(function(g){if(g.h==1){e=(c=a)==null?void 0:(d=c.Mb)==null?void 0:d.sessionIndex;var h=g.yield;var k=xn(0,{sessionIndex:e});if(!(k instanceof ti)){var l=new ti(ri);ui(l,2,k);k=l}return h.call(g,k,2)}f=g.i;return g.return(Promise.resolve(Object.assign({},tw(b),f)))})} function Ex(a,b){var c;a=a==null?void 0:(c=a.Mb)==null?void 0:c.sessionIndex;c=xn(0,{sessionIndex:a});return Object.assign({},tw(b),c)} ;var Jx=new Ys("INNERTUBE_TRANSPORT_TOKEN");function Kx(){} w(Kx,Bw);Kx.prototype.j=function(){return uv}; Kx.prototype.i=function(a){return Ft(a,gm)||void 0}; Kx.prototype.h=function(a,b,c){c=c===void 0?{}:c;b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params);c.botguardResponse&&(a.botguardResponse=c.botguardResponse);c.feature&&(a.clientFeature=c.feature)}; fa.Object.defineProperties(Kx.prototype,{o:{configurable:!0,enumerable:!0,get:function(){return!0}}});function Lx(){} w(Lx,Bw);Lx.prototype.j=function(){return vv}; Lx.prototype.i=function(a){return Ft(a,fm)||void 0}; Lx.prototype.h=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)}; fa.Object.defineProperties(Lx.prototype,{o:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Mx=new Ys("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");function Nx(a){this.M=a} w(Nx,Bw);Nx.prototype.j=function(){return pv}; Nx.prototype.i=function(a){return Ft(a,am)||Ft(a,bm)||Ft(a,$l)}; Nx.prototype.h=function(a,b){b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);if(b.clientParamIdentifier){var c;if((c=this.M)==null?0:c.h(b.clientParamIdentifier))a.clientParams=this.M.i(b.clientParamIdentifier)}}; Nx[Xs]=[Mx];function Ox(){} w(Ox,Bw);Ox.prototype.j=function(){return rv}; Ox.prototype.i=function(a){return Ft(a,Zl)||void 0}; Ox.prototype.h=function(a,b,c){a.feedbackTokens=[];b.feedbackToken&&a.feedbackTokens.push(b.feedbackToken);if(b=b.cpn||c.cpn)a.feedbackContext={cpn:b};a.isFeedbackTokenUnencrypted=!!c.is_feedback_token_unencrypted;a.shouldMerge=!1;c.extra_feedback_tokens&&(a.shouldMerge=!0,a.feedbackTokens=a.feedbackTokens.concat(c.extra_feedback_tokens))}; fa.Object.defineProperties(Ox.prototype,{o:{configurable:!0,enumerable:!0,get:function(){return!0}}});function Px(){} w(Px,Bw);Px.prototype.j=function(){return sv}; Px.prototype.i=function(a){return Ft(a,em)||void 0}; Px.prototype.h=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};function Qx(){} w(Qx,Bw);Qx.prototype.j=function(){return tv}; Qx.prototype.i=function(a){return Ft(a,dm)||void 0}; Qx.prototype.h=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};function Rx(){} w(Rx,Bw);Rx.prototype.j=function(){return qv}; Rx.prototype.i=function(a){return Ft(a,cm)}; Rx.prototype.h=function(a,b,c){c=c===void 0?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};var Sx=new Ys("FETCH_FN_TOKEN"),Tx=new Ys("PARSE_FN_TOKEN");function Ux(a,b){var c=B.apply(2,arguments);a=a===void 0?0:a;T.call(this,b,c);this.errorType=a;Object.setPrototypeOf(this,this.constructor.prototype)} w(Ux,T);var Vx=new Ys("NETWORK_SLI_TOKEN");function Wx(a,b,c){this.h=a;this.i=b;this.j=c} Wx.prototype.fetch=function(a,b,c){var d=this,e,f,g;return A(function(h){e=Xx(d,a,b);g=(f=d.i)!=null?f:fetch;return h.return(g(e).then(function(k){return d.handleResponse(k,c)}).catch(function(k){V(k); if((c==null?0:c.se)&&k instanceof Ux&&k.errorType===1)return Promise.reject(k)}))})}; function Xx(a,b,c){if(a.h){var d=bc(cc(5,nc(b,"key")))||"/UNKNOWN_PATH";a.h.start(d)}a=c;R("wug_networking_gzip_request")&&(a=lr(c));return new window.Request(b,a)} Wx.prototype.handleResponse=function(a,b){var c,d=(c=this.j)!=null?c:JSON.parse;c=a.text().then(function(e){if((b==null?0:b.Ie)&&a.ok)return Rf(b.Ie,e);e=e.replace(")]}'","");if((b==null?0:b.se)&&e)try{var f=d(e)}catch(h){throw new Ux(1,"JSON parsing failed after fetch");}var g;return(g=f)!=null?g:d(e)}); a.redirected||a.ok?this.h&&this.h.success():(this.h&&this.h.Ch(),c=c.then(function(e){V(new T("Error: API fetch failed",a.status,a.url,e));return Object.assign({},e,{errorMetadata:{status:a.status}})})); return c}; Wx[Xs]=[new Zs(Vx),new Zs(Sx),new Zs(Tx)];var Yx=new Ys("NETWORK_MANAGER_TOKEN");var Zx;function $x(){var a,b;if(!Zx){var c=et();at(c,{zc:Yx,Pd:Wx});var d={qd:{feedbackEndpoint:ww(Ox),modifyChannelNotificationPreferenceEndpoint:ww(Px),playlistEditEndpoint:ww(Qx),shareEntityEndpoint:ww(Nx),subscribeEndpoint:ww(Kx),unsubscribeEndpoint:ww(Lx),webPlayerShareEntityServiceEndpoint:ww(Rx)}},e=rw(),f={};e&&(f.client_location=e);a===void 0&&(a=wn());b===void 0&&(b=c.resolve(Yx));Bx(d,b,a,f);at(c,{zc:Jx,Qd:Ax.h});Zx=c.resolve(Jx)}return Zx} ;function ay(a){var b=new sj;if(a.interpreterJavascript){var c=Nl(a.interpreterJavascript);c=Eb(c).toString();var d=new qj;Af(d,6,c);tf(b,qj,1,d)}else a.interpreterUrl&&(c=Ol(a.interpreterUrl),c=lb(c).toString(),d=new rj,Af(d,4,c),tf(b,rj,2,d));a.interpreterHash&&Bf(b,3,a.interpreterHash);a.program&&Bf(b,4,a.program);a.globalName&&Bf(b,5,a.globalName);a.clientExperimentsStateBlob&&Bf(b,7,a.clientExperimentsStateBlob);return b} function by(a){var b={};a=y(a.split("&"));for(var c=a.next();!c.done;c=a.next())c=c.value.split("="),c.length===2&&(b[c[0]]=c[1]);return b} ;function Bj(){if(R("bg_st_hr"))return"havuokmhhs-0";var a,b=((a=performance)==null?void 0:a.timeOrigin)||0;return"havuokmhhs-"+Math.floor(b)} function cy(a){this.h=a} cy.prototype.bindInnertubeChallengeFetcher=function(a){this.h.bicf(a)}; cy.prototype.registerChallengeFetchedCallback=function(a){this.h.bcr(a)}; cy.prototype.getLatestChallengeResponse=function(){return this.h.blc()}; function dy(){return new Promise(function(a){var b=window.top;b.ntpevasrs!==void 0?a(new cy(b.ntpevasrs)):(b.ntpqfbel===void 0&&(b.ntpqfbel=[]),b.ntpqfbel.push(function(c){a(new cy(c))}))})} ;var ey=[],fy=!1;function gy(){if(!R("disable_biscotti_fetch_for_ad_blocker_detection")&&!R("disable_biscotti_fetch_entirely_for_all_web_clients")&&$u()){var a=P("PLAYER_VARS",{});if(xg(a)!="1"&&!av(a)){var b=function(){fy=!0;"google_ad_status"in window?pm("DCLKSTAT",1):pm("DCLKSTAT",2)}; try{yv("//static.doubleclick.net/instream/ad_status.js",b)}catch(c){}ey.push(Zj.ma(function(){if(!(fy||"google_ad_status"in window)){try{Cv("//static.doubleclick.net/instream/ad_status.js",b)}catch(c){}fy=!0;pm("DCLKSTAT",3)}},5E3))}}} function hy(){var a=Number(P("DCLKSTAT",0));return isNaN(a)?0:a} ;function iy(a){this.h=a} [new iy("b.f_"),new iy("j.s_"),new iy("r.s_"),new iy("e.h_"),new iy("i.s_"),new iy("s.t_"),new iy("p.h_"),new iy("s.i_"),new iy("f.i_"),new iy("a.b_"),new iy("a.o_"),new iy("g.o_"),new iy("p.i_"),new iy("p.m_"),new iy("i.k_"),new iy("n.k_"),new iy("i.f_"),new iy("a.s_"),new iy("m.c_"),new iy("n.h_"),new iy("o.p_")].reduce(function(a,b){a[b.h]=b;return a},{});function jy(a,b){var c={preload:!0},d=this;this.network=a;this.options=c;this.o=b;this.h=null;if(c.Yh){var e=new xj;this.h=e.promise;C.ytAtRC&&Zj.Ra(function(){var f,g;return A(function(h){if(h.h==1){if(!C.ytAtRC)return h.return();f=ky(null);return h.yield(d.gb(f),2)}g=h.i;C.ytAtRC&&C.ytAtRC(JSON.stringify(g));h.h=0})},2); dy().then(function(f){var g,h,k,l;return A(function(m){if(m.h==1)return f.bindInnertubeChallengeFetcher(function(n){return d.gb(ky(n))}),m.yield(Aj(),2); g=m.i;h=f.getLatestChallengeResponse();k=h.challenge;if(!k)throw Error("BGE_MACIL");l={challenge:k,eb:by(k),vm:g,bgChallenge:new sj};e.resolve(l);f.registerChallengeFetchedCallback(function(n){n=n.challenge;if(!n)throw Error("BGE_MACR");n={challenge:n,eb:by(n),vm:g,bgChallenge:new sj};d.h=Promise.resolve(n)}); m.h=0})})}else c.preload&&ly(this,new Promise(function(f){Tn(function(){f(my(d))},0)}))} jy.prototype.j=function(){var a=this;return A(function(b){return b.h==1?b.yield(Promise.race([a.h,null]),2):b.return(!!b.i)})}; jy.prototype.i=function(a,b,c){var d=this,e,f,g;return A(function(h){d.h===null&&ly(d,my(d));e=!1;f={};g=function(){var k,l,m;return A(function(n){switch(n.h){case 1:return n.yield(d.h,2);case 2:k=n.i;f.challenge=k.challenge;if(!k.vm){"c1a"in k.eb&&(f.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");n.A(3);break}l=Object.assign({},{c:k.challenge,e:a},b);za(n,4);e=!0;if(R("attbs")&&!R("attmusi")){m=k.vm.gd({vb:l});n.A(6);break}return n.yield(k.vm.snapshot({vb:l}),7);case 7:m=n.i;case 6:m?f.webResponse= m:f.error="ATTESTATION_ERROR_VM_NO_RESPONSE";Aa(n,3);break;case 4:Ba(n),f.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(a==="ENGAGEMENT_TYPE_PLAYBACK"){var p=k.eb,t={};p.c6a&&(t.reportingStatus=String(Number(p.c)^hy()));p.c6b&&(t.broadSpectrumDetectionResult=String(Number(p.c)^Number(P("CATSTAT",0))));f.adblockReporting=t}return n.return(f)}})}; return h.return(Promise.race([g(),ny(c,function(){var k=Object.assign({},f);e&&(k.error="ATTESTATION_ERROR_VM_TIMEOUT");return k})]))})}; function ky(a){var b={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};a&&(b.interpreterHash=a);return b} function my(a,b){b=b===void 0?0:b;var c,d,e,f,g,h,k,l,m,n,p,t;return A(function(u){switch(u.h){case 1:c=ky(Gj().h);if(R("att_fet_ks"))return za(u,7),u.yield(a.gb(c),9);za(u,4);return u.yield(oy(a,c),6);case 6:g=u.i;e=g.Qe;f=g.Re;d=g;Aa(u,3);break;case 4:return Ba(u),V(Error("Failed to fetch attestation challenge after "+(b+" attempts; not retrying for 24h."))),py(a,864E5),u.return({challenge:"",eb:{},vm:void 0,bgChallenge:void 0});case 9:d=u.i;if(!d)throw Error("Fetching Attestation challenge returned falsy"); if(!d.challenge)throw Error("Missing Attestation challenge");e=d.challenge;f=by(e);if("c1a"in f&&(!d.bgChallenge||!d.bgChallenge.program))throw Error("Expected bg challenge but missing.");Aa(u,3);break;case 7:h=Ba(u);V(h);b++;if(b>=5)return V(Error("Failed to fetch attestation challenge after "+(b+" attempts; not retrying for 24h."))),py(a,864E5),u.return({challenge:"",eb:{},vm:void 0,bgChallenge:void 0});k=1E3*Math.pow(2,b-1)+Math.random()*1E3;return u.return(new Promise(function(x){Tn(function(){x(my(a, b))},k)})); case 3:l=Number(f.t)||7200;py(a,l*1E3);m=void 0;if(!("c1a"in f&&d.bgChallenge)){u.A(10);break}n=ay(d.bgChallenge);za(u,11);return u.yield(Hj(Gj(),n),13);case 13:Aa(u,12);break;case 11:return p=Ba(u),V(p),u.return({challenge:e,eb:f,vm:m,bgChallenge:n});case 12:return za(u,14),m=new zj({challenge:n,Ad:{Da:"aGIf"}}),u.yield(m.bd,16);case 16:Aa(u,10);break;case 14:t=Ba(u),V(t),m=void 0;case 10:return u.return({challenge:e,eb:f,vm:m,bgChallenge:n})}})} jy.prototype.gb=function(a){var b=this,c;return A(function(d){c=b.o;if(!c||c.ta())return d.return(b.network.gb(a));vx("att_pna");return d.return(new Promise(function(e){Zh(c,"publicytnetworkstatus-online",function(){b.network.gb(a).then(e)})}))})}; function qy(a){if(!a)throw Error("Fetching Attestation challenge returned falsy");if(!a.challenge)throw Error("Missing Attestation challenge");var b=a.challenge,c=by(b);if("c1a"in c&&(!a.bgChallenge||!a.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},a,{Qe:b,Re:c})} function oy(a,b){var c,d,e,f,g;return A(function(h){switch(h.h){case 1:c=void 0,d=0,e={};case 2:if(!(d<5)){h.A(4);break}if(!(d>0)){h.A(5);break}e.nd=1E3*Math.pow(2,d-1)+Math.random()*1E3;return h.yield(new Promise(function(k){return function(l){Tn(function(){l(void 0)},k.nd)}}(e)),5); case 5:return za(h,7),h.yield(a.gb(b),9);case 9:return f=h.i,h.return(qy(f));case 7:c=g=Ba(h),g instanceof Error&&V(g);case 8:d++;e={nd:void 0};h.A(2);break;case 4:throw c;}})} function ly(a,b){a.h=b} function ry(a){var b,c,d;return A(function(e){if(e.h==1)return e.yield(Promise.race([a.h,null]),2);b=e.i;var f=my(a);a.h=f;(c=b)==null||(d=c.vm)==null||d.dispose();e.h=0})} function py(a,b){function c(){var e;return A(function(f){e=d-Date.now();return e<1E3?f.yield(ry(a),0):(Tn(c,Math.min(e,6E4)),f.A(0))})} var d=Date.now()+b;c()} function ny(a,b){return new Promise(function(c){Tn(function(){c(b())},a)})} ;function sy(){this.h=$x()} sy.prototype.gb=function(a){vx("att_fsr");return Hx(this.h,a).then(function(b){vx("att_frr");return b})};function ty(){var a,b,c;return A(function(d){if(d.h==1)return a=et().resolve(Jx),a?d.yield(Cx(a),2):(V(Error("InnertubeTransportService unavailable in fetchDatasyncIds")),d.return(void 0));if(b=d.i){if(b.errorMetadata)return V(Error("Datasync IDs fetch responded with "+b.errorMetadata.status+": "+b.error)),d.return(void 0);c=b.zh;return d.return(c)}V(Error("Network request to get Datasync IDs failed."));return d.return(void 0)})} ;function uy(){var a;return(a=P("WEB_PLAYER_CONTEXT_CONFIGS"))==null?void 0:a.WEB_PLAYER_CONTEXT_CONFIG_ID_EMBEDDED_PLAYER} ;var vy=C.caches,wy;function xy(a){var b=a.indexOf(":");return b===-1?{Dd:a}:{Dd:a.substring(0,b),datasyncId:a.substring(b+1)}} function yy(){return A(function(a){if(wy!==void 0)return a.return(wy);wy=new Promise(function(b){var c;return A(function(d){switch(d.h){case 1:return za(d,2),d.yield(vy.open("test-only"),4);case 4:return d.yield(vy.delete("test-only"),5);case 5:Aa(d,3);break;case 2:if(c=Ba(d),c instanceof Error&&c.name==="SecurityError")return b(!1),d.return();case 3:b("caches"in window),d.h=0}})}); return a.return(wy)})} function zy(a){var b,c,d,e,f,g,h;A(function(k){if(k.h==1)return k.yield(yy(),2);if(k.h!=3){if(!k.i)return k.return(!1);b=[];return k.yield(vy.keys(),3)}c=k.i;d=y(c);for(e=d.next();!e.done;e=d.next())f=e.value,g=xy(f),h=g.datasyncId,!h||a.includes(h)||b.push(vy.delete(f));return k.return(Promise.all(b).then(function(l){return l.some(function(m){return m})}))})} function Ay(){var a,b,c,d,e,f,g;return A(function(h){if(h.h==1)return h.yield(yy(),2);if(h.h!=3){if(!h.i)return h.return(!1);a=Rn("cache contains other");return h.yield(vy.keys(),3)}b=h.i;c=y(b);for(d=c.next();!d.done;d=c.next())if(e=d.value,f=xy(e),(g=f.datasyncId)&&g!==a)return h.return(!0);return h.return(!1)})} ;function By(){try{return!!self.sessionStorage}catch(a){return!1}} ;function Cy(a){a=a.match(/(.*)::.*::.*/);if(a!==null)return a[1]} function Dy(a){if(By()){var b=Object.keys(window.sessionStorage);b=y(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=Cy(c);d===void 0||a.includes(d)||self.sessionStorage.removeItem(c)}}} function Ey(){if(!By())return!1;var a=Rn(),b=Object.keys(window.sessionStorage);b=y(b);for(var c=b.next();!c.done;c=b.next())if(c=Cy(c.value),c!==void 0&&c!==a)return!0;return!1} ;function Fy(){ty().then(function(a){a&&(Xp(a),zy(a),dw(a),Dy(a))})} function Gy(){var a=new ds;Zj.ma(function(){var b,c,d,e,f;return A(function(g){switch(g.h){case 1:if(R("ytidb_clear_optimizations_killswitch")){g.A(2);break}b=Rn("clear");if(b.startsWith("V")&&b.endsWith("||")){var h=[b];Xp(h);zy(h);dw(h);Dy(h);return g.return()}c=ew();d=Ey();return g.yield(Ay(),3);case 3:return e=g.i,g.yield(Yp(),4);case 4:if(f=g.i,!(c||d||e||f))return g.return();case 2:a.ta()?Fy():Zh(a,"publicytnetworkstatus-online",Fy),g.h=0}})})} ;function Hy(){this.state=1;this.vm=null} r=Hy.prototype;r.initialize=function(a,b,c){if(a.program){var d,e=(d=a.interpreterUrl)!=null?d:null;if(a.interpreterSafeScript)d=Nl(a.interpreterSafeScript);else{var f;d=(f=a.interpreterScript)!=null?f:null}a.interpreterSafeUrl&&(e=Ol(a.interpreterSafeUrl).toString());Iy(this,d,e,a.program,b,c)}else V(Error("Cannot initialize botguard without program"))}; function Iy(a,b,c,d,e,f){var g=g===void 0?"trayride":g;c?(a.state=2,yv(c,function(){window[g]?Jy(a,d,g,e):(a.state=3,Av(c),V(new T("Unable to load Botguard","from "+c)))},f)):b?(f=Gg("SCRIPT"),b instanceof Cb?(f.textContent=Eb(b),Fb(f)):f.textContent=b,f.nonce=Bb(document),document.head.appendChild(f),document.head.removeChild(f),window[g]?Jy(a,d,g,e):(a.state=4,V(new T("Unable to load Botguard from JS")))):V(new T("Unable to load VM; no url or JS provided"))} r.isLoading=function(){return this.state===2}; function Jy(a,b,c,d){a.state=5;try{var e=new zj({program:b,globalName:c,Ad:{disable:!R("att_web_record_metrics"),Da:"aGIf"}});e.bd.then(function(){a.state=6;d&&d(b)}); a.Zc(e)}catch(f){a.state=7,f instanceof Error&&V(f)}} r.invoke=function(a){a=a===void 0?{}:a;return this.jd()?this.Sd({vb:a}):null}; r.dispose=function(){this.Zc(null);this.state=8}; r.jd=function(){return!!this.vm}; r.Sd=function(a){return this.vm.gd(a)}; r.Zc=function(a){yc(this.vm);this.vm=a};function Ky(){var a=E("yt.abuse.playerAttLoader");return a&&["bgvma","bgvmb","bgvmc"].every(function(b){return b in a})?a:null} ;function Ly(){Hy.apply(this,arguments)} w(Ly,Hy);Ly.prototype.Zc=function(a){var b;(b=Ky())==null||b.bgvma();a?(b={bgvma:a.dispose.bind(a),bgvmb:a.snapshot.bind(a),bgvmc:a.gd.bind(a)},D("yt.abuse.playerAttLoader",b),D("yt.abuse.playerAttLoaderRun",function(c){return a.snapshot(c)})):(D("yt.abuse.playerAttLoader",null),D("yt.abuse.playerAttLoaderRun",null))}; Ly.prototype.jd=function(){return!!Ky()}; Ly.prototype.Sd=function(a){return Ky().bgvmc(a)};function My(a){pt.call(this,a===void 0?"document_active":a);var b=this;this.o=10;this.h=new Map;this.transitions=[{from:"document_active",to:"document_disposed_preventable",action:this.G},{from:"document_active",to:"document_disposed",action:this.u},{from:"document_disposed_preventable",to:"document_disposed",action:this.u},{from:"document_disposed_preventable",to:"flush_logs",action:this.M},{from:"document_disposed_preventable",to:"document_active",action:this.i},{from:"document_disposed",to:"flush_logs", action:this.M},{from:"document_disposed",to:"document_active",action:this.i},{from:"document_disposed",to:"document_disposed",action:function(){}}, {from:"flush_logs",to:"document_active",action:this.i}];window.addEventListener("pagehide",function(c){b.transition("document_disposed",{event:c})}); window.addEventListener("beforeunload",function(c){b.transition("document_disposed_preventable",{event:c})})} w(My,pt);My.prototype.G=function(a,b){if(!this.h.get("document_disposed_preventable")){a(b==null?void 0:b.event);var c,d;if((b==null?0:(c=b.event)==null?0:c.defaultPrevented)||(b==null?0:(d=b.event)==null?0:d.returnValue)){b.event.returnValue||(b.event.returnValue=!0);b.event.defaultPrevented||b.event.preventDefault();this.h=new Map;this.transition("document_active");return}}this.h.set("document_disposed_preventable",!0);this.h.get("document_disposed")?this.transition("flush_logs"):this.transition("document_disposed")}; My.prototype.u=function(a,b){this.h.get("document_disposed")?this.transition("document_active"):(a(b==null?void 0:b.event),this.h.set("document_disposed",!0),this.transition("flush_logs"))}; My.prototype.M=function(a,b){a(b==null?void 0:b.event);this.transition("document_active")}; My.prototype.i=function(){this.h=new Map};function Ny(a){pt.call(this,a===void 0?"document_visibility_unknown":a);var b=this;this.transitions=[{from:"document_visibility_unknown",to:"document_visible",action:this.i},{from:"document_visibility_unknown",to:"document_hidden",action:this.h},{from:"document_visibility_unknown",to:"document_foregrounded",action:this.M},{from:"document_visibility_unknown",to:"document_backgrounded",action:this.u},{from:"document_visible",to:"document_hidden",action:this.h},{from:"document_visible",to:"document_foregrounded", action:this.M},{from:"document_visible",to:"document_visible",action:this.i},{from:"document_foregrounded",to:"document_visible",action:this.i},{from:"document_foregrounded",to:"document_hidden",action:this.h},{from:"document_foregrounded",to:"document_foregrounded",action:this.M},{from:"document_hidden",to:"document_visible",action:this.i},{from:"document_hidden",to:"document_backgrounded",action:this.u},{from:"document_hidden",to:"document_hidden",action:this.h},{from:"document_backgrounded",to:"document_hidden", action:this.h},{from:"document_backgrounded",to:"document_backgrounded",action:this.u},{from:"document_backgrounded",to:"document_visible",action:this.i}];document.addEventListener("visibilitychange",function(c){document.visibilityState==="visible"?b.transition("document_visible",{event:c}):b.transition("document_hidden",{event:c})}); R("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})}))} w(Ny,pt);Ny.prototype.i=function(a,b){a(b==null?void 0:b.event);R("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")}; Ny.prototype.h=function(a,b){a(b==null?void 0:b.event);R("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")}; Ny.prototype.u=function(a,b){a(b==null?void 0:b.event)}; Ny.prototype.M=function(a,b){a(b==null?void 0:b.event)};function Oy(){this.o=new My;this.u=new Ny} Oy.prototype.install=function(){var a=B.apply(0,arguments),b=this;a.forEach(function(c){b.o.install(c)}); a.forEach(function(c){b.u.install(c)})};function Py(){this.o=[];this.i=new Map;this.h=new Map;this.j=new Set} Py.prototype.clickCommand=function(a,b,c){var d=a.clickTrackingParams;c=c===void 0?0:c;if(d)if(c=Nu(c===void 0?0:c)){a=this.client;d=new Gu({trackingParams:d});var e=void 0;if(R("no_client_ve_attach_unless_shown")){var f=Zv(d,c);Vv.set(f,!0);$v(d,c)}e=e||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";f=Yv({cttAuthInfo:Pu(c)||void 0},c);d={csn:c,ve:d.getAsJson(),gestureType:e};b&&(d.clientData=b);c==="UNDEFINED_CSN"?aw("visualElementGestured",f,d):a?nu("visualElementGestured",d,a,f):Io("visualElementGestured", d,f);b=!0}else b=!1;else b=!1;return b}; Py.prototype.stateChanged=function(a,b,c){this.visualElementStateChanged(new Gu({trackingParams:a}),b,c===void 0?0:c)}; Py.prototype.visualElementStateChanged=function(a,b,c){c=c===void 0?0:c;if(c===0&&this.j.has(c))this.o.push([a,b]);else{var d=c;d=d===void 0?0:d;c=Nu(d);a||(a=(a=Ku(d===void 0?0:d))?new Gu({veType:a,youtubeData:void 0,jspbYoutubeData:void 0}):null);var e=a;c&&e&&(a=this.client,d=Yv({cttAuthInfo:Pu(c)||void 0},c),b={csn:c,ve:e.getAsJson(),clientData:b},c==="UNDEFINED_CSN"?aw("visualElementStateChanged",d,b):a?nu("visualElementStateChanged",b,a,d):Io("visualElementStateChanged",b,d))}}; function Qy(a,b){if(b===void 0)for(var c=Mu(),d=0;d0&&az(e)){var f=d;if(Sa(f[0])&&!Array.isArray(f[0]))var g=f[0];else switch(g={},e){case "loadVideoById":case "cueVideoById":g=bz(f[0],f[1]!==void 0?Number(f[1]):void 0,f[2]);break;case "loadVideoByUrl":case "cueVideoByUrl":g=f[0];typeof g==="string"&&(g={mediaContentUrl:g, startSeconds:f[1]!==void 0?Number(f[1]):void 0,suggestedQuality:f[2]});c:{if((f=g.mediaContentUrl)&&(f=/\/([ve]|embed)\/([^#?]+)/.exec(f))&&f[2]){f=f[2];break c}f=null}g.videoId=f;g=bz(g);break;case "loadPlaylist":case "cuePlaylist":g=cz(f[0],f[1],f[2],f[3])}d.length=1;d[0]=g}b.api.handleExternalCall(e,d,c);az(e)&&hz(b,ez(b))}}}}; iz.addEventListener("message",this.G);if(a=P("WIDGET_ID"))this.sessionId=a;jz(this,"onReady",function(){b.u=!0;var c=b.api.getVideoData();if(!c.isPlayable){b.Z=!0;c=c.errorCode;var d=d===void 0?5:d;b.errorCode=c?Zy[c]||d:d;b.sendMessage("onError",Number(b.errorCode))}}); jz(this,"onVideoProgress",this.lf.bind(this));jz(this,"onVolumeChange",this.mf.bind(this));jz(this,"onApiChange",this.df.bind(this));jz(this,"onPlaybackQualityChange",this.hf.bind(this));jz(this,"onPlaybackRateChange",this.jf.bind(this));jz(this,"onStateChange",this.kf.bind(this));jz(this,"onWebglSettingsChanged",this.nf.bind(this));jz(this,"onCaptionsTrackListChanged",this.ef.bind(this));jz(this,"captionssettingschanged",this.ff.bind(this))} w(dz,F);function hz(a,b){a.sendMessage("infoDelivery",b)} r=dz.prototype;r.sendMessage=function(a,b){a={event:a,info:b===void 0?null:b};this.Y?fz(this,a):this.D.push(a)}; function gz(a,b,c){return function(d){b==="onError"?a.api.logApiCall(b+" invocation",c,d):a.api.logApiCall(b+" invocation",c);a.sendMessage(b,d)}} function jz(a,b,c){a.j.push({eventType:b,listener:c});a.api.addEventListener(b,c)} function ez(a){if(!a.api)return null;var b=a.api.getApiInterface();Tb(b,"getVideoData");for(var c={apiInterface:b},d=0,e=b.length;d=0||this.h[a]||(b=Lz(this,a),this.u&&this.u(a,b)),this.U.subscribe(a,d),a==="onReady"&&this.isReady()&&setTimeout(function(){d(c.api)},0))}; r.removeEventListener=function(a,b){this.ea||(b=Az(this,b))&&this.U.unsubscribe(a,b)}; function Az(a,b){var c=b;if(typeof b==="string"){if(a.Fa[b])return a.Fa[b];c=function(){var d=B.apply(0,arguments),e=E(b);if(e)try{e.apply(C,d)}catch(f){throw d=new T("PlayerProxy error when executing callback",{error:f}),d.level="ERROR",d;}}; a.Fa[b]=c}return c?c:null} function Lz(a,b){function c(d){function e(){if(!a.ea)try{a.U.qb(b,d!=null?d:void 0)}catch(h){var g=new T("PlayerProxy error when creating global callback",{error:h.message,event:b,playerId:a.D,data:d,originalStack:h.stack,componentStack:h.he});g.level="WARNING";throw g;}} if(Gz(a,"web_player_publish_events_immediately"))e();else{var f=setTimeout(function(){e();var g=a.P,h=String(f);h in g&&delete g[h]},0); wg(a.P,String(f))}} return a.h[b]=c} r.getPlayerType=function(){return this.Z||(Cz(this)?"html5":null)}; r.getLastError=function(){return this.lastError}; function Fz(a){a.cancel();vz(a);a.Z=null;a.config&&(a.config.loaded=!1);var b=Cz(a);b&&(Bz(a)||!Iz(a)?a.j=b:(b&&b.destroy&&b.destroy(),a.j=null));if(a.o)for(a=a.o;b=a.firstChild;)a.removeChild(b)} r.cancel=function(){this.G&&Cv(Dz(this),this.G);clearTimeout(this.rb);this.Y=!1}; r.ba=function(){Fz(this);if(this.j&&this.config&&this.j.destroy)try{this.j.destroy()}catch(b){var a=new T("PlayerProxy error during disposal",{error:b});a.level="ERROR";throw a;}this.Fa=null;for(a in this.h)this.h.hasOwnProperty(a)&&delete this.h[a];this.Qa=this.config=this.api=null;delete this.o;delete this.i;F.prototype.ba.call(this)}; function Iz(a){var b,c;a=(b=a.config)==null?void 0:(c=b.args)==null?void 0:c.fflags;return!!a&&a.indexOf("player_destroy_old_version=true")!==-1} function Dz(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.jsUrl:(a=a.config.assets)?a.js:""} function Hz(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.cssUrl:(a=a.config.assets)?a.css:""} function Gz(a,b){if(a.webPlayerContextConfig)var c=a.webPlayerContextConfig.serializedExperimentFlags;else{var d;if((d=a.config)==null?0:d.args)c=a.config.args.fflags}return(c||"").split("&").includes(b+"=true")} function zz(a){for(var b={},c=y(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d];b[d]=typeof e==="object"?zg(e):e}return b} ;var Mz={},Nz="player_uid_"+(Math.random()*1E9>>>0);function Oz(a,b){var c="player",d=!1;d=d===void 0?!0:d;c=typeof c==="string"?Fg(c):c;var e=Nz+"_"+Ta(c),f=Mz[e];if(f&&d)return Pz(a,b)?f.api.loadVideoByPlayerVars(a.args||null):f.loadNewVideoConfig(a),f.api;f=new uz(c,e,a,b,void 0);Mz[e]=f;f.addOnDisposeCallback(function(){delete Mz[f.getId()]}); return f.api} function Pz(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 Qz=null,Rz=null; function Sz(){wx();var a=Gn(),b=Jn(119),c=window.devicePixelRatio>1;if(document.body&&hk(document.body,"exp-invert-logo"))if(c&&!hk(document.body,"inverted-hdpi")){var d=document.body;if(d.classList)d.classList.add("inverted-hdpi");else if(!hk(d,"inverted-hdpi")){var e=fk(d);gk(d,e+(e.length>0?" inverted-hdpi":"inverted-hdpi"))}}else!c&&hk(document.body,"inverted-hdpi")&&ik();if(b!=c){b="f"+(Math.floor(119/31)+1);d=Kn(b)||0;d=c?d|67108864:d&-67108865;d===0?delete Dn[b]:(c=d.toString(16),Dn[b]=c.toString()); c=!0;R("web_secure_pref_cookie_killswitch")&&(c=!1);b=a.h;d=[];for(f in Dn)Dn.hasOwnProperty(f)&&d.push(f+"="+encodeURIComponent(String(Dn[f])));var f=d.join("&");zn(b,f,63072E3,a.i,c)}} function Tz(){Uz()} function Vz(){rx("ep_init_pr");Uz()} function Uz(){var a=Qz.getVideoData(1);a=a.title?a.title+" - YouTube":"YouTube";document.title!==a&&(document.title=a)} function Wz(){Qz&&Qz.sendAbandonmentPing&&Qz.sendAbandonmentPing();P("PL_ATT")&&rz.dispose();for(var a=Zj,b=0,c=ey.length;b0){g=!0;break}}if(g){g=!1;e?g=!0:(typeof a==="string"?h=a:ErrorEvent&&a instanceof ErrorEvent?(g=!0,h=a.message,b=a.filename,c=a.lineno,d=a.colno):(h="Unknown error",b="Unknown file",c=0),e=new T(h),e.name="UnhandledWindowError",e.message= h,e.fileName=b,e.lineNumber=c,isNaN(d)?delete e.columnNumber:e.columnNumber=d);if(!R("wiz_enable_component_stack_propagation_killswitch")){a=e;var m;if((m=f)==null||!m.componentStack)if(m=a.he)f||(f={}),f.componentStack=ou(m)}f&&yu(e,f);g?vu(e):V(e)}}; Ki=wu;window.addEventListener("unhandledrejection",function(a){wu(a.reason)}); Nb(P("ERRORS")||[],function(a){vu.apply(null,a)}); pm("ERRORS",[]);rx("ep_init_epe");}).call(this);