(function(){'use strict';var p;function aa(a){var b=0;return function(){return b>>0)+"_",e=0;return b}); u("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}}); u("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Ha(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}}); u("Number.isFinite",function(a){return a?a:function(b){return typeof b!=="number"?!1:!isNaN(b)&&b!==Infinity&&b!==-Infinity}}); u("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),Ra=0;function Sa(a,b,c){return a.call.apply(a.bind,arguments)} function Ta(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 Ua(a,b,c){Ua=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?Sa:Ta;return Ua.apply(null,arguments)} function Va(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 Wa(){return Date.now()} function Xa(a){return a} function Za(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 ac(a){var b=a.length;if(b>0){for(var c=Array(b),d=0;db?1:a4);e++)b[kc(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+=ic(a[e],b));e>>0;return b} ;var nc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function oc(a){return a?decodeURI(a):a} function pc(a){return oc(a.match(nc)[3]||null)} function qc(a){return oc(a.match(nc)[5]||null)} function rc(a){var b=a.match(nc);a=b[5];var c=b[6];b=b[7];var d="";a&&(d+=a);c&&(d+="?"+c);b&&(d+="#"+b);return d} function sc(a){var b=a.indexOf("#");return b<0?a:a.slice(0,b)} function tc(a,b){if(a){a=a.split("&");for(var c=0;c=0){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?lc(e):"")}}} function uc(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 xc(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(zc,"$1")} ;function Bc(){try{var a,b;return!!((a=window)==null?0:(b=a.top)==null?0:b.location.href)&&!1}catch(c){return!0}} ;function Cc(a){a&&typeof a.dispose=="function"&&a.dispose()} ;function Dc(a){for(var b=0,c=arguments.length;bb&&c.push(Mc(d,1))}); return c} ;var Oc;function Pc(){I.apply(this,arguments);this.o=1;this[Oc]=this.dispose} v(Pc,I);Pc.prototype.share=function(){if(this.ea)throw Error("E:AD");this.o++;return this}; Pc.prototype.dispose=function(){--this.o||I.prototype.dispose.call(this)}; Oc=Symbol.dispose;function Qc(a){return{fieldType:2,fieldName:a}} function Rc(a){return{fieldType:3,fieldName:a}} ;function Sc(a){this.h=a;a.Mc("/client_streamz/bg/frs",Rc("mk"))} Sc.prototype.record=function(a,b){this.h.record("/client_streamz/bg/frs",a,b)}; function Tc(a){this.h=a;a.Mc("/client_streamz/bg/wrl",Rc("mn"),Qc("ac"),Qc("sc"),Rc("rk"),Rc("mk"))} Tc.prototype.record=function(a,b,c,d,e,f){this.h.record("/client_streamz/bg/wrl",a,b,c,d,e,f)}; function Uc(a){this.h=a;a.Ob("/client_streamz/bg/ec",Rc("en"),Rc("mk"))} Uc.prototype.kb=function(a,b){this.h.Lb("/client_streamz/bg/ec",a,b)}; function Vc(a){this.h=a;a.Mc("/client_streamz/bg/el",Rc("en"),Rc("mk"))} Vc.prototype.record=function(a,b,c){this.h.record("/client_streamz/bg/el",a,b,c)}; function Wc(a){this.h=a;a.Ob("/client_streamz/bg/cec",Qc("ec"),Rc("mk"))} Wc.prototype.kb=function(a,b){this.h.Lb("/client_streamz/bg/cec",a,b)}; function Xc(a){this.h=a;a.Ob("/client_streamz/bg/po/csc",Qc("cs"),Rc("mk"))} Xc.prototype.kb=function(a,b){this.h.Lb("/client_streamz/bg/po/csc",a,b)}; function Yc(a){this.h=a;a.Ob("/client_streamz/bg/po/ctav",Rc("av"),Rc("mk"))} Yc.prototype.kb=function(a,b){this.h.Lb("/client_streamz/bg/po/ctav",a,b)}; function Zc(a){this.h=a;a.Ob("/client_streamz/bg/po/cwsc",Rc("su"),Rc("mk"))} Zc.prototype.kb=function(a,b){this.h.Lb("/client_streamz/bg/po/cwsc",a,b)};function $c(a){D.setTimeout(function(){throw a;},0)} ;var ad,bd=F("CLOSURE_FLAGS"),cd=bd&&bd[610401301];ad=cd!=null?cd:!1;function dd(){var a=D.navigator;return a&&(a=a.userAgent)?a:""} var ed,fd=D.navigator;ed=fd?fd.userAgentData||null:null;function gd(a){if(!ad||!ed)return!1;for(var b=0;b0:!1} function id(){return hd()?!1:J("Opera")} function jd(){return J("Firefox")||J("FxiOS")} function kd(){return hd()?gd("Chromium"):(J("Chrome")||J("CriOS"))&&!(hd()?0:J("Edge"))||J("Silk")} ;function ld(){return ad?!!ed&&!!ed.platform:!1} function md(){return J("iPhone")&&!J("iPod")&&!J("iPad")} ;function nd(a){nd[" "](a);return a} nd[" "]=function(){};var od=id(),pd=hd()?!1:J("Trident")||J("MSIE"),qd=J("Edge"),rd=J("Gecko")&&!(dd().toLowerCase().indexOf("webkit")!=-1&&!J("Edge"))&&!(J("Trident")||J("MSIE"))&&!J("Edge"),sd=dd().toLowerCase().indexOf("webkit")!=-1&&!J("Edge");sd&&J("Mobile");ld()||J("Macintosh");ld()||J("Windows");(ld()?ed.platform==="Linux":J("Linux"))||ld()||J("CrOS");var td=ld()?ed.platform==="Android":J("Android");md();J("iPad");J("iPod");md()||J("iPad")||J("iPod");dd().toLowerCase().indexOf("kaios");jd();var ud=md()||J("iPod"),vd=J("iPad");!J("Android")||kd()||jd()||id()||J("Silk");kd();var wd=J("Safari")&&!(kd()||(hd()?0:J("Coast"))||id()||(hd()?0:J("Edge"))||(hd()?gd("Microsoft Edge"):J("Edg/"))||(hd()?gd("Opera"):J("OPR"))||jd()||J("Silk")||J("Android"))&&!(md()||J("iPad")||J("iPod"));var xd={},yd=null;function zd(a,b){Ma(a);b===void 0&&(b=0);Ad();b=xd[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 Bd(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;Cd(a,function(f){d[e++]=f}); return e!==c?d.subarray(0,e):d} function Cd(a,b){function c(k){for(;d>4);g!=64&&(b(f<<4&240|g>>2),h!=64&&b(g<<6&192|h))}} function Ad(){if(!yd){yd={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;c<5;c++){var d=a.concat(b[c].split(""));xd[c]=d;for(var e=0;e=b||(d[a]=c+1,a=Error(),fc(a,"incident"),$c(a))}} ;var Pd=typeof Symbol==="function"&&typeof Symbol()==="symbol";function Qd(a,b,c){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(c===void 0?0:c)&&Symbol.for&&a?Symbol.for(a):a!=null?Symbol(a):Symbol():b} var Rd=Qd("jas",void 0,!0),Sd=Qd(void 0,"1oa"),Td=Qd(void 0,Symbol()),Ud=Qd(void 0,"0ub"),Vd=Qd(void 0,"0ubs"),Wd=Qd(void 0,"0actk"),Xd=Qd("m_m","Sh",!0),Yd=Qd(void 0,"vps"),Zd=Qd();Math.max.apply(Math,A(Object.values({rh:1,qh:2,ph:4,uh:8,xh:16,sh:32,Rf:64,nh:128,Wf:256,wh:512,Xf:1024,oh:2048,th:4096})));var $d={Ie:{value:0,configurable:!0,writable:!0,enumerable:!1}},ae=Object.defineProperties,K=Pd?Rd:"Ie",be,ce=[];de(ce,7);be=Object.freeze(ce);function ee(a,b){Pd||K in a||ae(a,$d);a[K]|=b} function de(a,b){Pd||K in a||ae(a,$d);a[K]=b} ;function fe(){return typeof BigInt==="function"} ;var ge={};function he(a,b){if(b===void 0){if(b=a.h!==ie)b=!!(2&(a.F[K]|0));return b}return!!(2&b)&&a.h!==ie} var ie={},je=Object.freeze({}),ke={};function le(a){a.Nh=!0;return a} ;var me=le(function(a){return typeof a==="number"}),ne=le(function(a){return typeof a==="string"}),oe=le(function(a){return typeof a==="boolean"}); function pe(){var a=qe;return le(function(b){for(var c in a)if(b===a[c]&&!/^[0-9]+$/.test(c))return!0;return!1})} var re=le(function(a){return a!=null&&typeof a==="object"&&typeof a.then==="function"});var se=typeof D.BigInt==="function"&&typeof D.BigInt(0)==="bigint";function te(a){var b=a;if(ne(b)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(b))throw Error(String(b));}else if(me(b)&&!Number.isSafeInteger(b))throw Error(String(b));return se?BigInt(a):a=oe(a)?a?"1":"0":ne(a)?a.trim()||"0":String(a)} var ze=le(function(a){return se?a>=ue&&a<=ve:a[0]==="-"?we(a,xe):we(a,ye)}),xe=Number.MIN_SAFE_INTEGER.toString(),ue=se?BigInt(Number.MIN_SAFE_INTEGER):void 0,ye=Number.MAX_SAFE_INTEGER.toString(),ve=se?BigInt(Number.MAX_SAFE_INTEGER):void 0; function we(a,b){if(a.length>b.length)return!1;if(a.lengthe)return!1;if(d>>0;Ae=b;Be=(a-b)/4294967296>>>0} function De(a){if(a<0){Ce(0-a);var b=y(Ee(Ae,Be));a=b.next().value;b=b.next().value;Ae=a>>>0;Be=b>>>0}else Ce(a)} function Fe(a,b){b>>>=0;a>>>=0;if(b<=2097151)var c=""+(4294967296*b+a);else fe()?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+Ge(c)+Ge(a));return c} function Ge(a){a=String(a);return"0000000".slice(a.length)+a} function He(){var a=Ae,b=Be;b&2147483648?fe()?a=""+(BigInt(b|0)<>>0)):(b=y(Ee(a,b)),a=b.next().value,b=b.next().value,a="-"+Fe(a,b)):a=Fe(a,b);return a} function Ee(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]} ;function Ie(a){return Array.prototype.slice.call(a)} ;var Je=typeof BigInt==="function"?BigInt.asIntN:void 0,Ke=Number.isSafeInteger,Le=Number.isFinite,Me=Math.trunc;function Ne(a){return a.displayName||a.name||"unknown type name"} function Oe(a){if(a!=null&&typeof a!=="boolean")throw Error("Expected boolean but got "+La(a)+": "+a);return a} var Pe=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function Qe(a){switch(typeof a){case "bigint":return!0;case "number":return Le(a);case "string":return Pe.test(a);default:return!1}} function Re(a){if(typeof a!=="number")throw Nd("int32");if(!Le(a))throw Nd("int32");return a|0} function Se(a){return a==null?a:Re(a)} function Te(a){if(a==null)return a;if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;return Le(a)?a|0:void 0} function Ue(a){var b=0;b=b===void 0?0:b;if(!Qe(a))throw Nd("int64");var c=typeof a;switch(b){case 512:switch(c){case "string":return Ve(a);case "bigint":return String(Je(64,a));default:return We(a)}case 1024:switch(c){case "string":return Xe(a);case "bigint":return te(Je(64,a));default:return Ye(a)}case 0:switch(c){case "string":return Ve(a);case "bigint":return te(Je(64,a));default:return Ze(a)}default:return Gb(b,"Unknown format requested type for int64")}} function $e(a){return a==null?a:Ue(a)} function af(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 bf(a){a.indexOf(".");if(af(a))return a;if(a.length<16)De(Number(a));else if(fe())a=BigInt(a),Ae=Number(a&BigInt(4294967295))>>>0,Be=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+(a[0]==="-");Be=Ae=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)),Be*=1E6,Ae=Ae*1E6+d,Ae>=4294967296&&(Be+=Math.trunc(Ae/4294967296),Be>>>=0,Ae>>>=0);b&&(b=y(Ee(Ae,Be)),a=b.next().value,b=b.next().value,Ae=a,Be=b)}return He()} function Ze(a){Qe(a);a=Me(a);if(!Ke(a)){De(a);var b=Ae,c=Be;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:Fe(b,c);a=typeof b==="number"?a?-b:b:a?"-"+b:b}return a} function We(a){Qe(a);a=Me(a);if(Ke(a))a=String(a);else{var b=String(a);af(b)?a=b:(De(a),a=He())}return a} function Ve(a){Qe(a);var b=Me(Number(a));if(Ke(b))return String(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return bf(a)} function Xe(a){var b=Me(Number(a));if(Ke(b))return te(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return fe()?te(Je(64,BigInt(a))):te(bf(a))} function Ye(a){return Ke(a)?te(Ze(a)):te(We(a))} function cf(a){if(typeof a!=="string")throw Error();return a} function df(a){if(a!=null&&typeof a!=="string")throw Error();return a} function ef(a){return a==null||typeof a==="string"?a:void 0} function ff(a,b){if(!(a instanceof b))throw Error("Expected instanceof "+Ne(b)+" but got "+(a&&Ne(a.constructor)));} function gf(a,b,c){if(a!=null&&a[Xd]===ge)return a;if(Array.isArray(a)){var d=a[K]|0;c=d|c&32|c&2;c!==d&&de(a,c);return new b(a)}} ;var hf={};function jf(a){return a} ;var kf={bi:!0};function lf(a,b){b<100||Od(Vd,1)} ;function mf(a,b,c,d){var e=d!==void 0;d=!!d;var f=Xa(Td),g;!e&&Pd&&f&&(g=a[f])&&g.Kh(lf);f=[];var h=a.length;g=4294967295;var k=!1,l=!!(b&64),m=l?b&128?0:-1:void 0;if(!(b&1)){var n=h&&a[h-1];n!=null&&typeof n==="object"&&n.constructor===Object?(h--,g=h):n=void 0;if(l&&!(b&128)&&!e){k=!0;var r;g=((r=nf)!=null?r:jf)(g-m,m,a,n)+m}}b=void 0;for(e=0;e=g){var t=e-m,w=void 0;((w=b)!=null?w:b={})[t]=r}else f[e]=r;if(n)for(var x in n)a=n[x],a!=null&&(a=c(a, d))!=null&&(h=+x,e=void 0,l&&!Number.isNaN(h)&&(e=h+m)=1024)throw Error("pvtlmt");for(var k in h)f=+k,f1024)throw Error("spvt");e=e&-8380417|(k&1023)<<13}}}e|=64;d===0&&(e|=2048);de(a,e);return a} function rf(){Od(Wd,5)} ;function sf(a,b){if(typeof a!=="object")return a;if(Array.isArray(a)){var c=a[K]|0;a.length===0&&c&1?a=void 0:c&2||(!b||4096&c||16&c?a=tf(a,c,!1,b&&!(c&16)):(ee(a,34),c&4&&Object.freeze(a)));return a}if(a!=null&&a[Xd]===ge)return b=a.F,c=b[K]|0,he(a,c)?a:uf(a,b,c)?vf(a,b):tf(b,c);if(a instanceof Jd)return a} function vf(a,b,c){a=new a.constructor(b);c&&(a.h=ie);a.i=ie;return a} function tf(a,b,c,d){d!=null||(d=!!(34&b));a=mf(a,b,sf,d);d=32;c&&(d|=2);b=b&8380609|d;de(a,b);return a} function wf(a){var b=a.F,c=b[K]|0;return he(a,c)?uf(a,b,c)?vf(a,b,!0):new a.constructor(tf(b,c,!1)):a} function xf(a){if(a.h!==ie)return!1;var b=a.F;b=tf(b,b[K]|0);ee(b,2048);a.F=b;a.h=void 0;a.i=void 0;return!0} function yf(a){if(!xf(a)&&he(a,a.F[K]|0))throw Error();} function zf(a,b){b===void 0&&(b=a[K]|0);b&32&&!(b&4096)&&de(a,b|4096)} function uf(a,b,c){return c&2?!0:c&32&&!(c&4096)?(de(b,c|2),a.h=ie,!0):!1} ;var Af=te(0),Bf={};function Cf(a,b,c,d){Object.isExtensible(a);b=Df(a.F,b,c);if(b!==null||d&&a.i!==ie)return b} function Df(a,b,c,d){if(b===-1)return null;var e=b+(c?0:-1),f=a.length-1;if(!(f<1+(c?0:-1))){if(e>=f){var g=a[f];if(g!=null&&typeof g==="object"&&g.constructor===Object){c=g[b];var h=!0}else if(e===f)c=g;else return}else c=a[e];if(d&&c!=null){d=d(c);if(d==null)return d;if(!Object.is(d,c))return h?g[b]=d:a[e]=d,d}return c}} function Ef(a,b,c,d){yf(a);var e=a.F;Ff(e,e[K]|0,b,c,d);return a} function Ff(a,b,c,d,e){var f=c+(e?0:-1),g=a.length-1;if(g>=1+(e?0:-1)&&f>=g){var h=a[g];if(h!=null&&typeof h==="object"&&h.constructor===Object)return h[c]=d,b}if(f<=g)return a[f]=d,b;if(d!==void 0){var k;g=((k=b)!=null?k:b=a[K]|0)>>13&1023||536870912;c>=g?d!=null&&(f={},a[g+(e?0:-1)]=(f[c]=d,f)):a[f]=d}return b} function Gf(a){return!!(2&a)&&!!(4&a)||!!(256&a)} function Hf(a,b,c){yf(a);var d=a.F,e=d[K]|0;if(b==null)return Ff(d,e,3),a;if(!Array.isArray(b))throw Nd();var f=b===be?7:b[K]|0,g=f,h=Gf(f),k=h||Object.isFrozen(b);h||(f=0);k||(b=Ie(b),g=0,f=If(f,e),k=!1);f|=5;h=4&f?512&f?512:1024&f?1024:0:void 0;h=h!=null?h:0;for(var l=0;l>>31)&4294967295;n=e[0];var w=e[1],x=e[2],z=e[3],G=e[4];for(t=0;t<80;t++){if(t<40)if(t<20){var H=z^w&(x^z);var S=1518500249}else H=w^x^z,S=1859775393;else t<60?(H=w&x|z&(w|x),S=2400959708):(H=w^x^z,S=3395469782);H=((n<<5|n>>>27)&4294967295)+H+G+S+r[t]&4294967295;G=z;z=x;x=(w<<30|w>>>2)&4294967295;w=n;n=H}e[0]=e[0]+n&4294967295;e[1]=e[1]+w&4294967295;e[2]= e[2]+x&4294967295;e[3]=e[3]+z&4294967295;e[4]=e[4]+G&4294967295} function c(n,r){if(typeof n==="string"){n=unescape(encodeURIComponent(n));for(var t=[],w=0,x=n.length;w=56;t--)f[t]=r&255,r>>>=8;b(f);for(t=r=0;t<5;t++)for(var w=24;w>=0;w-=8)n[r++]=e[t]>>w&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,ne:function(){for(var n=d(),r="",t=0;t=0;b--)this.remove(a[b])}; function pg(a){a=(a.h.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f0?d:void 0));d=Ef(d,4,Se(f>0?f:void 0));d=Ef(d,5,Se(g>0?g:void 0));f=d.F;g=f[K]|0;d=he(d,g)?d:uf(d,f,g)?vf(d,f):new d.constructor(tf(f,g,!0));Of(h,Tg,10,d)}a=a.h.clone();h=Date.now().toString();a=Ef(a,4,$e(h));b=b.slice();b=Pf(a,fh,3,b);e&&(a=new xg,e=Ef(a,13,Se(e)),a=new yg,e=Of(a,xg,2,e),a=new eh, e=Of(a,yg,1,e),e=Vf(e,2,9),Of(b,eh,18,e));c&&Ef(b,14,$e(c));return b} ;var nh=function(){if(!D.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}}); try{var c=function(){}; D.addEventListener("test",c,b);D.removeEventListener("test",c,b)}catch(d){}return a}();function oh(a){this.h=this.i=this.j=a} oh.prototype.reset=function(){this.h=this.i=this.j}; oh.prototype.getValue=function(){return this.i};function Yf(a){this.F=L(a,8)} v(Yf,M);var ph=$f(Yf);function Zf(a){this.F=L(a)} v(Zf,M);var qh;qh=new Xf;function rh(a){I.call(this);var b=this;this.componentId="";this.h=[];this.Ra="";this.pageId=null;this.fb=this.ma=-1;this.G=this.experimentIds=null;this.A=this.o=0;this.U=null;this.Z=this.ha=0;this.Mb=1;this.timeoutMillis=0;this.xa=!1;this.logSource=a.logSource;this.zb=a.zb||function(){}; this.j=new hh(a.logSource,a.Oa);this.network=a.network||null;this.ob=a.ob||null;this.bufferSize=1E3;this.P=a.Df||null;this.sessionIndex=a.sessionIndex||null;this.Sb=a.Sb||!1;this.logger=null;this.withCredentials=!a.vd;this.Oa=a.Oa||!1;this.Y=!this.Oa&&!!window&&!!window.navigator&&window.navigator.sendBeacon!==void 0;this.Qa=typeof URLSearchParams!=="undefined"&&!!(new URL(sh())).searchParams&&!!(new URL(sh())).searchParams.set;var c=dh(new ch);ih(this.j,c);this.u=new oh(1E4);a=th(this,a.rd);this.i= new wg(this.u.getValue(),a);this.Fa=new wg(6E5,a);this.Sb||this.Fa.start();this.Oa||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){uh(b);var d;(d=b.U)==null||d.flush()}}),document.addEventListener("pagehide",function(){uh(b); var d;(d=b.U)==null||d.flush()}))} v(rh,I);function th(a,b){return a.Qa?b?function(){b().then(function(){a.flush()})}:function(){a.flush()}:function(){}} rh.prototype.ba=function(){uh(this);this.i.stop();this.Fa.stop();I.prototype.ba.call(this)}; function vh(a){a.P||(a.P=sh());try{return(new URL(a.P)).toString()}catch(b){return(new URL(a.P,window.location.origin)).toString()}} function wh(a,b,c){a.U&&a.U.kb(b,c)} rh.prototype.log=function(a){wh(this,2,1);if(this.Qa){a=a.clone();var b=this.Mb++;a=Ef(a,21,$e(b));this.componentId&&Tf(a,26,this.componentId);b=a;var c=Cf(b,1);var d=d===void 0?!1:d;var e=typeof c;d=c==null?c:e==="bigint"?String(Je(64,c)):Qe(c)?e==="string"?Ve(c):d?We(c):Ze(c):void 0;d==null&&(d=Date.now(),d=Number.isFinite(d)?d.toString():"0",Ef(b,1,$e(d)));d=Cf(b,15);d!=null&&(typeof d==="bigint"?ze(d)?d=Number(d):(d=Je(64,d),d=ze(d)?Number(d):String(d)):d=Qe(d)?typeof d==="number"?Ze(d):Ve(d): void 0);d==null&&Ef(b,15,$e((new Date).getTimezoneOffset()*60));this.experimentIds&&(d=this.experimentIds.clone(),Of(b,vg,16,d));wh(this,1,1);b=this.h.length-this.bufferSize+1;b>0&&(this.h.splice(0,b),this.o+=b,wh(this,3,b));this.h.push(a);this.Sb||this.i.enabled||this.i.start()}}; rh.prototype.flush=function(a,b){var c=this;if(this.h.length===0)a&&a();else if(this.xa&&this.Y)this.j.i=3,yh(this);else{var d=Date.now();if(this.fb>d&&this.ma0&&(c.ma=Date.now(),c.fb=c.ma+r);r=Xa(Td);var x;Pd&&r&&((x=t.F[r])==null?void 0:x[175237375])!=null&&Od(Ud,3);a:{var z=z===void 0?!1:z;if(Xa(Zd)&&Xa(Td)&&void 0===Zd){x=t.F;r=x[Td];if(!r)break a;if(r=r.ci)try{r(x,175237375,kf);break a}catch(G){$c(G)}}z&&(z=t.F,(x=Xa(Td))&& x in z&&(z=z[x])&&delete z[175237375])}z=qh.ctor?qh.h(t,qh.ctor,175237375,qh.i):qh.h(t,175237375,null,qh.i);if(z=z===null?void 0:z)z=Mc(z,1,-1),z!==-1&&(c.u=new oh(z<1?1:z),c.i.setInterval(c.u.getValue()))}}a&&a();c.A=0},m=function(r,t){var w=Kc(f,fh,3); var x=Number(Qf(f,14)),z=c.u;z.h=Math.min(3E5,z.h*2);z.i=Math.min(3E5,z.h+Math.round(.1*(Math.random()-.5)*2*z.h));c.i.setInterval(c.u.getValue());r===401&&g&&(c.Ra=g);x&&(c.o+=x);t===void 0&&(t=c.isRetryable(r));t&&(c.h=w.concat(c.h),c.Sb||c.i.enabled||c.i.start());wh(c,7,1);b&&b("net-send-failed",r);++c.A},n=function(){c.network&&c.network.send(k,l,m)}; h?h.then(function(r){wh(c,5,e);k.Hc["Content-Encoding"]="gzip";k.Hc["Content-Type"]="application/binary";k.body=r;k.ge=2;n()},function(){wh(c,6,e); n()}):n()}}}}; function zh(a,b,c){c=c===void 0?null:c;var d=d===void 0?a.withCredentials:d;var e={},f=new URL(vh(a));c&&(e.Authorization=c);a.sessionIndex&&(e["X-Goog-AuthUser"]=a.sessionIndex,f.searchParams.set("authuser",a.sessionIndex));a.pageId&&(Object.defineProperty(e,"X-Goog-PageId",{value:a.pageId}),f.searchParams.set("pageId",a.pageId));return{url:f.toString(),body:b,ge:1,Hc:e,requestType:"POST",withCredentials:d,timeoutMillis:a.timeoutMillis}} function uh(a){a.j.isFinal=!0;a.flush();a.j.isFinal=!1} function yh(a){Ah(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.Y=!1);return d})} function Ah(a,b){if(a.h.length!==0){var c=new URL(vh(a));c.searchParams.delete("format");var d=a.zb();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=mh(a.j,e,a.o,a.A,a.ob,a.ha,a.Z);if(!b(c.toString(),f)){++a.A;break}a.o=0;a.A=0;a.ha=0;a.Z=0;a.h=a.h.slice(e.length)}a.i.enabled&&a.i.stop()}} rh.prototype.isRetryable=function(a){return 500<=a&&a<600||a===401||a===0}; function sh(){return"https://play.google.com/log?format=json&hasfast=true"} ;function Bh(){this.Zd=typeof AbortController!=="undefined"} Bh.prototype.send=function(a,b,c){var d=this,e,f,g,h,k,l,m,n,r,t;return B(function(w){switch(w.h){case 1:return f=(e=d.Zd?new AbortController:void 0)?setTimeout(function(){e.abort()},a.timeoutMillis):void 0,wa(w,2,3),g=Object.assign({},{method:a.requestType, headers:Object.assign({},a.Hc)},a.body&&{body:a.body},a.withCredentials&&{credentials:"include"},{signal:a.timeoutMillis&&e?e.signal:null}),w.yield(fetch(a.url,g),5);case 5:h=w.i;if(h.status!==200){(k=c)==null||k(h.status);w.B(3);break}if((l=b)==null){w.B(7);break}return w.yield(h.text(),8);case 8:l(w.i);case 7:case 3:w.P=[w.j];w.H=0;w.o=0;clearTimeout(f);za(w);break;case 2:m=ya(w);switch((n=m)==null?void 0:n.name){case "AbortError":(r=c)==null||r(408);break;default:(t=c)==null||t(400)}w.B(3)}})}; Bh.prototype.vc=function(){return 4};function Ch(a,b){b=b===void 0?"0":b;I.call(this);this.logSource=a;this.sessionIndex=b;this.Va="https://play.google.com/log?format=json&hasfast=true";this.i=null;this.o=!1;this.network=null;this.componentId="";this.h=this.ob=null;this.j=!1;this.pageId=null;this.bufferSize=void 0} v(Ch,I);function Dh(a,b){a.i=b;return a} function Eh(a,b){a.network=b;return a} function Fh(a,b){a.h=b} function Gh(a){a.j=!0;return a} Ch.prototype.vd=function(){this.u=!0;return this}; function Hh(a){a.network||(a.network=new Bh);var b=new rh({logSource:a.logSource,zb:a.zb?a.zb:tg,sessionIndex:a.sessionIndex,Df:a.Va,Oa:a.o,Sb:!1,vd:a.u,rd:a.rd,network:a.network});Ec(a,b);if(a.i){var c=a.i,d=jh(b.j);Tf(d,7,c)}b.G=new ug;a.componentId&&(b.componentId=a.componentId);a.ob&&(b.ob=a.ob);a.pageId&&(b.pageId=a.pageId);a.h&&((d=a.h)?(b.experimentIds||(b.experimentIds=new vg),c=b.experimentIds,d=d.serialize(),Tf(c,4,d)):b.experimentIds&&Ef(b.experimentIds,4));a.j&&(b.xa=b.Y);lh(b.j);a.bufferSize&& (b.bufferSize=a.bufferSize);a.network.cc&&a.network.cc(a.logSource);a.network.sf&&a.network.sf(b);return b} ;function Ih(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;I.call(this);this.logSource=a;this.componentId=b;f?b=f:(a=new Ch(a,"0"),a.componentId=b,Ec(this,a),c!==""&&(a.Va=c),d&&(a.o=!0),e&&Dh(a,e),g&&Eh(a,g),b=Hh(a));this.h=b} v(Ih,I); Ih.prototype.flush=function(a){var b=a||[];if(b.length){a=new ig;for(var c=[],d=0;d-1?(b=a[g],c||(b.lc=!1)):(b=new Th(b,this.src,f,!!d,e),b.lc=c,a.push(b));return b}; Vh.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=Wh(e,b,c,d);return b>-1?(Uh(e[b]),Array.prototype.splice.call(e,b,1),e.length==0&&(delete this.listeners[a],this.h--),!0):!1}; function Xh(a,b){var c=b.type;c in a.listeners&&$b(a.listeners[c],b)&&(Uh(b),a.listeners[c].length==0&&(delete a.listeners[c],a.h--))} function Wh(a,b,c,d){for(var e=0;e-1?b[a]:null)&&ki(c))} function ki(a){if(typeof a!=="number"&&a&&!a.ac){var b=a.src;if(b&&b[Rh])Xh(b.i,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(gi(c),d):b.addListener&&b.removeListener&&b.removeListener(d);$h--;(c=ei(b))?(Xh(c,a),c.h==0&&(c.src=null,b[Yh]=null)):Uh(a)}}} function gi(a){return a in Zh?Zh[a]:Zh[a]="on"+a} function hi(a,b){if(a.ac)a=!0;else{b=new Qh(b,this);var c=a.listener,d=a.xc||a.src;a.lc&&ki(a);a=c.call(d,b)}return a} function ei(a){a=a[Yh];return a instanceof Vh?a:null} var li="__closure_events_fn_"+(Math.random()*1E9>>>0);function ci(a){if(typeof a==="function")return a;a[li]||(a[li]=function(b){return a.handleEvent(b)}); return a[li]} ;function mi(){I.call(this);this.i=new Vh(this);this.xa=this;this.Z=null} Za(mi,I);mi.prototype[Rh]=!0;p=mi.prototype;p.addEventListener=function(a,b,c,d){ai(this,a,b,c,d)}; p.removeEventListener=function(a,b,c,d){ji(this,a,b,c,d)}; function ni(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 Ph(b,a):b instanceof Ph?b.target=b.target||a:(e=b,b=new Ph(c,a),Mg(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=oi(g,c,!0,b)&&e}b.j||(g=b.h=a,e=oi(g,c,!0,b)&&e,b.j||(e=oi(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 ri(a,b){a.o(b);a.i<100&&(a.i++,b.next=a.h,a.h=b)} ;function si(){this.i=this.h=null} si.prototype.add=function(a,b){var c=ti.get();c.set(a,b);this.i?this.i.next=c:this.h=c;this.i=c}; si.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 ti=new qi(function(){return new ui},function(a){return a.reset()}); function ui(){this.next=this.scope=this.h=null} ui.prototype.set=function(a,b){this.h=a;this.scope=b;this.next=null}; ui.prototype.reset=function(){this.next=this.scope=this.h=null};var vi,wi=!1,xi=new si;function yi(a,b){vi||zi();wi||(vi(),wi=!0);xi.add(a,b)} function zi(){var a=Promise.resolve(void 0);vi=function(){a.then(Ai)}} function Ai(){for(var a;a=xi.remove();){try{a.h.call(a.scope)}catch(b){$c(b)}ri(ti,a)}wi=!1} ;function Bi(){} function Ci(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}} ;function Di(a){this.X=0;this.bb=void 0;this.wb=this.Ta=this.parent_=null;this.wc=this.Pc=!1;if(a!=Bi)try{var b=this;a.call(void 0,function(c){Ei(b,2,c)},function(c){Ei(b,3,c)})}catch(c){Ei(this,3,c)}} function Fi(){this.next=this.context=this.h=this.i=this.child=null;this.j=!1} Fi.prototype.reset=function(){this.context=this.h=this.i=this.child=null;this.j=!1}; var Gi=new qi(function(){return new Fi},function(a){a.reset()}); function Hi(a,b,c){var d=Gi.get();d.i=a;d.h=b;d.context=c;return d} function Ii(a){return new Di(function(b,c){c(a)})} Di.prototype.then=function(a,b,c){return Ji(this,pi(typeof a==="function"?a:null),pi(typeof b==="function"?b:null),c)}; Di.prototype.$goog_Thenable=!0;function Ki(a,b,c,d){Li(a,Hi(b||Bi,c||null,d))} p=Di.prototype;p.finally=function(a){var b=this;a=pi(a);return new Promise(function(c,d){Ki(b,function(e){a();c(e)},function(e){a(); d(e)})})}; p.Jc=function(a,b){return Ji(this,null,pi(a),b)}; p.catch=Di.prototype.Jc;p.cancel=function(a){if(this.X==0){var b=new Mi(a);yi(function(){Ni(this,b)},this)}}; function Ni(a,b){if(a.X==0)if(a.parent_){var c=a.parent_;if(c.Ta){for(var d=0,e=null,f=null,g=c.Ta;g&&(g.j||(d++,g.child==a&&(e=g),!(e&&d>1)));g=g.next)e||(f=g);e&&(c.X==0&&d==1?Ni(c,b):(f?(d=f,d.next==c.wb&&(c.wb=d),d.next=d.next.next):Oi(c),Pi(c,e,3,b)))}a.parent_=null}else Ei(a,3,b)} function Li(a,b){a.Ta||a.X!=2&&a.X!=3||Qi(a);a.wb?a.wb.next=b:a.Ta=b;a.wb=b} function Ji(a,b,c,d){var e=Hi(null,null,null);e.child=new Di(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 Mi?g(h):f(k)}catch(l){g(l)}}:g}); e.child.parent_=a;Li(a,e);return e.child} p.Bf=function(a){this.X=0;Ei(this,2,a)}; p.Cf=function(a){this.X=0;Ei(this,3,a)}; function Ei(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.Bf,f=a.Cf;if(d instanceof Di){Ki(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(Na(d))try{var k=d.then;if(typeof k==="function"){Ri(d,k,e,f,a);g=!0;break a}}catch(l){f.call(a,l);g=!0;break a}g=!1}}}g||(a.bb=c,a.X=b,a.parent_=null,Qi(a),b!=3||c instanceof Mi||Si(a,c))}} function Ri(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 Qi(a){a.Pc||(a.Pc=!0,yi(a.te,a))} function Oi(a){var b=null;a.Ta&&(b=a.Ta,a.Ta=b.next,b.next=null);a.Ta||(a.wb=null);return b} p.te=function(){for(var a;a=Oi(this);)Pi(this,a,this.X,this.bb);this.Pc=!1}; function Pi(a,b,c,d){if(c==3&&b.h&&!b.j)for(;a&&a.wc;a=a.parent_)a.wc=!1;if(b.child)b.child.parent_=null,Ti(b,c,d);else try{b.j?b.i.call(b.context):Ti(b,c,d)}catch(e){Ui.call(null,e)}ri(Gi,b)} function Ti(a,b,c){b==2?a.i.call(a.context,c):a.h&&a.h.call(a.context,c)} function Si(a,b){a.wc=!0;yi(function(){a.wc&&Ui.call(null,b)})} var Ui=$c;function Mi(a){ib.call(this,a)} Za(Mi,ib);Mi.prototype.name="cancel";function Vi(a,b){mi.call(this);this.j=a||1;this.h=b||D;this.o=Ua(this.yf,this);this.u=Wa()} Za(Vi,mi);p=Vi.prototype;p.enabled=!1;p.Ea=null;p.setInterval=function(a){this.j=a;this.Ea&&this.enabled?(this.stop(),this.start()):this.Ea&&this.stop()}; p.yf=function(){if(this.enabled){var a=Wa()-this.u;a>0&&a=a.o&&a.ec()} p.ec=function(){var a=this.i.values();a=[].concat(A(a)).filter(function(b){return b.h.size}); a.length&&this.G.flush(a,this.u);Yi(a);this.j=0;this.h.enabled&&this.h.stop()}; p.Ob=function(a){var b=C.apply(1,arguments);this.i.has(a)||this.i.set(a,new Nh(a,b))}; p.Mc=function(a){var b=C.apply(1,arguments);this.i.has(a)||this.i.set(a,new Oh(a,b))}; function Zi(a,b){return a.A.has(b)?void 0:a.i.get(b)} p.Lb=function(a){this.Yd(a,1,C.apply(1,arguments))}; p.Yd=function(a,b){var c=C.apply(2,arguments),d=Zi(this,a);d&&d instanceof Nh&&(d.j(b,c),Xi(this))}; p.record=function(a,b){var c=C.apply(2,arguments),d=Zi(this,a);d&&d instanceof Oh&&(d.record(b,c),Xi(this))}; function Yi(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.K.setRequestHeader(d,c);this.ma&&(this.K.responseType=this.ma);"withCredentials"in this.K&&this.K.withCredentials!==this.ha&&(this.K.withCredentials=this.ha);try{this.u&&(clearTimeout(this.u),this.u=null),this.G>0&&(this.getStatus(),this.u=setTimeout(this.Af.bind(this),this.G)), this.getStatus(),this.A=!0,this.K.send(a),this.A=!1}catch(g){this.getStatus(),jj(this,g)}}; p.Af=function(){typeof Ia!="undefined"&&this.K&&(this.o="Timed out after "+this.G+"ms, aborting",this.getStatus(),ni(this,"timeout"),this.abort(8))}; function jj(a,b){a.h=!1;a.K&&(a.j=!0,a.K.abort(),a.j=!1);a.o=b;kj(a);lj(a)} function kj(a){a.P||(a.P=!0,ni(a,"complete"),ni(a,"error"))} p.abort=function(){this.K&&this.h&&(this.getStatus(),this.h=!1,this.j=!0,this.K.abort(),this.j=!1,ni(this,"complete"),ni(this,"abort"),lj(this))}; p.ba=function(){this.K&&(this.h&&(this.h=!1,this.j=!0,this.K.abort(),this.j=!1),lj(this,!0));ej.Aa.ba.call(this)}; p.Gd=function(){this.ea||(this.U||this.A||this.j?mj(this):this.Re())}; p.Re=function(){mj(this)}; function mj(a){if(a.h&&typeof Ia!="undefined")if(a.A&&(a.K?a.K.readyState:0)==4)setTimeout(a.Gd.bind(a),0);else if(ni(a,"readystatechange"),a.isComplete()){a.getStatus();a.h=!1;try{if(nj(a))ni(a,"complete"),ni(a,"success");else{try{var b=(a.K?a.K.readyState:0)>2?a.K.statusText:""}catch(c){b=""}a.o=b+" ["+a.getStatus()+"]";kj(a)}}finally{lj(a)}}} function lj(a,b){if(a.K){a.u&&(clearTimeout(a.u),a.u=null);var c=a.K;a.K=null;b||ni(a,"ready");try{c.onreadystatechange=null}catch(d){}}} p.isActive=function(){return!!this.K}; p.isComplete=function(){return(this.K?this.K.readyState:0)==4}; function nj(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=String(a.Y).match(nc)[1]||null,!a&&D.self&&D.self.location&&(a=D.self.location.protocol.slice(0,-1)),b=!fj.test(a?a.toLowerCase():"");c=b}return c} p.getStatus=function(){try{return(this.K?this.K.readyState:0)>2?this.K.status:-1}catch(a){return-1}}; p.getLastError=function(){return typeof this.o==="string"?this.o:String(this.o)};function oj(){} oj.prototype.send=function(a,b,c){b=b===void 0?function(){}:b; c=c===void 0?function(){}:c; ij(a.url,function(d){d=d.target;if(nj(d)){try{var e=d.K?d.K.responseText:""}catch(f){e=""}b(e)}else c(d.getStatus())},a.requestType,a.body,a.Hc,a.timeoutMillis,a.withCredentials)}; oj.prototype.vc=function(){return 1};function pj(a,b){this.logger=a;this.event=b;this.startTime=qj()} pj.prototype.done=function(){this.logger.Xb(this.event,qj()-this.startTime)}; function rj(){Pc.apply(this,arguments)} v(rj,Pc);function sj(a,b){var c=qj();b=b();a.Xb("n",qj()-c);return b} function tj(){rj.apply(this,arguments)} v(tj,rj);p=tj.prototype;p.Uc=function(){}; p.Eb=function(){}; p.Xb=function(){}; p.Ha=function(){}; p.Gc=function(){}; p.Sd=function(){}; function uj(a){return{wf:new Sc(a),errorCount:new Wc(a),eventCount:new Uc(a),se:new Vc(a),mi:new Tc(a),oi:new Xc(a),Bh:new Yc(a),ni:new Zc(a)}} function vj(a,b,c,d){a=Gh(Eh(Dh(new Ch(1828,"0"),a),new oj));b.length&&Fh(a,bg(new ag,b));d!==void 0&&(a.Va=d);var e=new Ih(1828,"","",!1,"",Hh(a));Ec(e,a);var f=new Wi({flush:function(g){try{e.flush(g)}catch(h){c(h)}}}); f.addOnDisposeCallback(function(){setTimeout(function(){try{f.ec()}finally{e.dispose()}})}); f.o=1E5;f.flushInterval=3E4;f.h.setInterval(3E4);return f} function wj(a,b){I.call(this);var c=this;this.callback=a;this.i=b;this.h=-b;this.addOnDisposeCallback(function(){return void clearTimeout(c.timer)})} v(wj,I);function xj(a){if(a.timer===void 0){var b=Math.max(0,a.h+a.i-qj());a.timer=setTimeout(function(){try{a.callback()}finally{a.h=qj(),a.timer=void 0}},b)}} function yj(a,b){rj.call(this);this.metrics=a;this.Da=b} v(yj,rj);yj.prototype.Uc=function(a){this.metrics.wf.record(a,this.Da)}; yj.prototype.Eb=function(a){this.metrics.eventCount.kb(a,this.Da)}; yj.prototype.Xb=function(a,b){this.metrics.se.record(b,a,this.Da)}; yj.prototype.Ha=function(a){this.metrics.errorCount.kb(a,this.Da)}; function zj(a,b){b=b===void 0?[]:b;var c={Da:a.Da||"_",uc:a.uc||[],Ac:a.Ac|0,Va:a.Va,Bc:a.Bc||function(){}, Kb:a.Kb||function(f,g){return vj(f,g,c.Bc,c.Va)}},d=c.Kb("49",c.uc.concat(b)); yj.call(this,uj(d),c.Da);var e=this;this.options=c;this.service=d;this.i=!a.Kb;this.h=new wj(function(){return void e.service.ec()},c.Ac); this.addOnDisposeCallback(function(){e.h.dispose();e.i&&e.service.dispose()}); (this.j=b.slice()).sort(ec)} v(zj,yj);zj.prototype.Sd=function(a){var b=this;a=a.slice();a.sort(ec);cc(a,this.j)||(this.h.dispose(),this.i&&this.service.dispose(),this.service=this.options.Kb("49",this.options.uc.concat(a)),this.h=new wj(function(){return void b.service.ec()},this.options.Ac),this.metrics=uj(this.service),this.j=a)}; zj.prototype.Gc=function(){xj(this.h)}; function qj(){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 Aj(a){this.F=L(a)} v(Aj,M);function Bj(a){this.F=L(a)} v(Bj,M);function Cj(a){this.F=L(a,0,"bfkj")} v(Cj,M);var Dj=function(a){return le(function(b){return b instanceof a&&!he(b)})}(Cj); Cj.Pe="bfkj";function Lc(a){this.F=L(a)} v(Lc,M);function Ej(a){this.F=L(a)} v(Ej,M);var Fj=$f(Ej);function Gj(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})} ;function Hj(a,b,c){if(a.disable)return new tj;b=b?Jc(b):[];if(c)return c.Sd(b),c.share();a={Da:a.Da,uc:a.Ih,Ac:a.Uh,Va:a.Va,Bc:a.Bc,Kb:a.Kb};c=b;c=c===void 0?[]:c;return new zj(a,c)} function Ij(a){function b(w,x,z,G){Promise.resolve().then(function(){k.done();h.Gc();h.dispose();g.resolve({ce:w,uf:x,Ve:z,Dh:G})})} function c(w,x,z,G){if(!d.logger.ea){var H="k";x?H="h":z&&(H="u");H!=="k"?G!==0&&(d.logger.Eb(H),d.logger.Xb(H,w)):d.i<=0?(d.logger.Eb(H),d.logger.Xb(H,w),d.i=Math.floor(Math.random()*200)):d.i--}} I.call(this);var d=this;this.i=Math.floor(Math.random()*200);this.h=new Ej;if("challenge"in a&&Dj(a.challenge)){var e=Rf(a.challenge,4,void 0,ke);var f=Rf(a.challenge,5,void 0,ke);Rf(a.challenge,7,void 0,ke)&&(this.h=Fj(Rf(a.challenge,7,void 0,ke)))}else e=a.program,f=a.globalName;this.addOnDisposeCallback(function(){var w,x,z;return B(function(G){if(G.h==1)return G.yield(d.j,2);w=G.i;x=w.uf;(z=x)==null||z();G.h=0})}); this.logger=Hj(a.Ed||{},this.h,a.Eh);Ec(this,this.logger);var g=new Gj;this.j=g.promise;this.logger.Eb("t");var h=this.logger.share(),k=new pj(h,"t");if(!D[f])throw this.logger.Ha(25),Error("EGOU");if(!D[f].a)throw this.logger.Ha(26),Error("ELIU");try{var l=D[f].a;f=[];for(var m=[],n=Jc(this.h),r=0;r>>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} ik.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;jk(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 kk(a){return typeof a.className=="string"?a.className:a.getAttribute&&a.getAttribute("class")||""} function lk(a,b){typeof a.className=="string"?a.className=b:a.setAttribute&&a.setAttribute("class",b)} function mk(a,b){a.classList?b=a.classList.contains(b):(a=a.classList?a.classList:kk(a).match(/\S+/g)||[],b=Ub(a,b)>=0);return b} function nk(){var a=document.body;a.classList?a.classList.remove("inverted-hdpi"):mk(a,"inverted-hdpi")&&lk(a,Array.prototype.filter.call(a.classList?a.classList:kk(a).match(/\S+/g)||[],function(b){return b!="inverted-hdpi"}).join(" "))} ;function ok(){} ok.prototype.next=function(){return pk}; var pk={done:!0,value:void 0};ok.prototype.tb=function(){return this};function qk(a){if(a instanceof rk||a instanceof sk||a instanceof tk)return a;if(typeof a.next=="function")return new rk(function(){return a}); if(typeof a[Symbol.iterator]=="function")return new rk(function(){return a[Symbol.iterator]()}); if(typeof a.tb=="function")return new rk(function(){return a.tb()}); throw Error("Not an iterator or iterable.");} function rk(a){this.h=a} rk.prototype.tb=function(){return new sk(this.h())}; rk.prototype[Symbol.iterator]=function(){return new tk(this.h())}; rk.prototype.i=function(){return new tk(this.h())}; function sk(a){this.h=a} v(sk,ok);sk.prototype.next=function(){return this.h.next()}; sk.prototype[Symbol.iterator]=function(){return new tk(this.h)}; sk.prototype.i=function(){return new tk(this.h)}; function tk(a){rk.call(this,function(){return a}); this.j=a} v(tk,rk);tk.prototype.next=function(){return this.j.next()};function N(a){I.call(this);this.u=1;this.j=[];this.o=0;this.h=[];this.i={};this.A=!!a} Za(N,I);p=N.prototype;p.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}; p.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.hc(a)}return!1}; p.hc=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&&$b(c,a),delete this.h[a],delete this.h[a+1],delete this.h[a+2])}return!!b}; p.sb=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.hc(c)}}return f!=0}return!1}; function uk(a,b,c){yi(function(){a.apply(b,c)})} p.clear=function(a){if(a){var b=this.i[a];b&&(b.forEach(this.hc,this),delete this.i[a])}else this.h.length=0,this.i={}}; p.ba=function(){N.Aa.ba.call(this);this.clear();this.j.length=0};function vk(a){this.h=a} vk.prototype.set=function(a,b){b===void 0?this.h.remove(a):this.h.set(a,(new $i).serialize(b))}; vk.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";}}; vk.prototype.remove=function(a){this.h.remove(a)};function wk(a){this.h=a} Za(wk,vk);function xk(a){this.data=a} function yk(a){return a===void 0||a instanceof xk?a:new xk(a)} wk.prototype.set=function(a,b){wk.Aa.set.call(this,a,yk(b))}; wk.prototype.i=function(a){a=wk.Aa.get.call(this,a);if(a===void 0||a instanceof Object)return a;throw"Storage: Invalid value was encountered";}; wk.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 zk(a){this.h=a} Za(zk,wk);zk.prototype.set=function(a,b,c){if(b=yk(b)){if(c){if(cWa())zk.prototype.remove.call(this,a);else return b}};function Ak(){} ;function Bk(){} Za(Bk,Ak);Bk.prototype[Symbol.iterator]=function(){return qk(this.tb(!0)).i()}; Bk.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 Ck(a){this.h=a;this.i=null} Za(Ck,Bk);p=Ck.prototype;p.isAvailable=function(){if(this.i===null){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;this.i=b}return this.i}; p.set=function(a,b){Dk(this);try{this.h.setItem(a,b)}catch(c){if(this.h.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}}; p.get=function(a){Dk(this);a=this.h.getItem(a);if(typeof a!=="string"&&a!==null)throw"Storage mechanism: Invalid value was encountered";return a}; p.remove=function(a){Dk(this);this.h.removeItem(a)}; p.tb=function(a){Dk(this);var b=0,c=this.h,d=new ok;d.next=function(){if(b>=c.length)return pk;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}; p.clear=function(){Dk(this);this.h.clear()}; p.key=function(a){Dk(this);return this.h.key(a)}; function Dk(a){if(a.h==null)throw Error("Storage mechanism: Storage unavailable");a.isAvailable()||$c(Error("Storage mechanism: Storage unavailable"))} ;function Ek(){var a=null;try{a=D.localStorage||null}catch(b){}Ck.call(this,a)} Za(Ek,Ck);function Fk(a,b){this.i=a;this.h=b+"::"} Za(Fk,Bk);Fk.prototype.set=function(a,b){this.i.set(this.h+a,b)}; Fk.prototype.get=function(a){return this.i.get(this.h+a)}; Fk.prototype.remove=function(a){this.i.remove(this.h+a)}; Fk.prototype.tb=function(a){var b=this.i[Symbol.iterator](),c=this,d=new ok;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};function Gk(a){if(a.Wa&&typeof a.Wa=="function")return a.Wa();if(typeof Map!=="undefined"&&a instanceof Map||typeof Set!=="undefined"&&a instanceof Set)return Array.from(a.values());if(typeof a==="string")return a.split("");if(Ma(a)){for(var b=[],c=a.length,d=0;d1||f.length==1&& f[0]!="")&&f.pop(),d&&g==e.length&&f.push("")):(f.push(h),d=!0)}d=f.join("/")}else d=e}c?b.h=d:c=a.H.toString()!=="";c?Mk(b,a.H.clone()):c=!!a.u;c&&(b.u=a.u);return b}; Jk.prototype.clone=function(){return new Jk(this)}; function Kk(a,b,c){a.j=c?Nk(b,!0):b;a.j&&(a.j=a.j.replace(/:$/,""))} function Lk(a,b){if(b){b=Number(b);if(isNaN(b)||b<0)throw Error("Bad port number "+b);a.G=b}else a.G=null} function Mk(a,b,c){b instanceof Ok?(a.H=b,Uk(a.H,a.o)):(c||(b=Pk(b,Vk)),a.H=new Ok(b,a.o))} function Nk(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""} function Pk(a,b,c){return typeof a==="string"?(a=encodeURI(a).replace(b,Wk),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null} function Wk(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)} var Qk=/[#\/\?@]/g,Sk=/[#\?:]/g,Rk=/[#\?]/g,Vk=/[#\?@]/g,Tk=/#/g;function Ok(a,b){this.i=this.h=null;this.j=a||null;this.o=!!b} function Xk(a){a.h||(a.h=new Map,a.i=0,a.j&&tc(a.j,function(b,c){a.add(lc(b),c)}))} p=Ok.prototype;p.add=function(a,b){Xk(this);this.j=null;a=Yk(this,a);var c=this.h.get(a);c||this.h.set(a,c=[]);c.push(b);this.i=this.i+1;return this}; p.remove=function(a){Xk(this);a=Yk(this,a);return this.h.has(a)?(this.j=null,this.i=this.i-this.h.get(a).length,this.h.delete(a)):!1}; p.clear=function(){this.h=this.j=null;this.i=0}; function Zk(a,b){Xk(a);b=Yk(a,b);return a.h.has(b)} p.forEach=function(a,b){Xk(this);this.h.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)}; p.Ub=function(){Xk(this);for(var a=Array.from(this.h.values()),b=Array.from(this.h.keys()),c=[],d=0;d0?String(a[0]):b}; p.toString=function(){if(this.j)return this.j;if(!this.h)return"";for(var a=[],b=Array.from(this.h.keys()),c=0;c0&&(this.j=null,this.h.set(Yk(this,e),ac(c)),this.i=this.i+c.length))},a)); a.o=b} p.extend=function(a){for(var b=0;b>>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 el={};el=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 fl={},gl,hl=[],il=0;il<256;il++){gl=il;for(var jl=0;jl<8;jl++)gl=gl&1?3988292384^gl>>>1:gl>>>1;hl[il]=gl}fl=function(a,b,c,d){c=d+c;for(a^=-1;d>>8^hl[(a^b[d])&255];return a^-1};var kl={};kl={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 ll(a){for(var b=a.length;--b>=0;)a[b]=0} var ml=[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],nl=[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],ol=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],pl=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ql=Array(576);ll(ql);var rl=Array(60);ll(rl);var sl=Array(512);ll(sl);var tl=Array(256);ll(tl);var ul=Array(29);ll(ul);var vl=Array(30);ll(vl);function wl(a,b,c,d,e){this.Pd=a;this.xe=b;this.we=c;this.pe=d;this.Oe=e;this.Ad=a&&a.length} var xl,yl,zl;function Al(a,b){this.wd=a;this.Gb=0;this.cb=b} function Bl(a,b){a.aa[a.pending++]=b&255;a.aa[a.pending++]=b>>>8&255} function Cl(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 Fl(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]=El(d[e]++,e))} function Gl(a){var b;for(b=0;b<286;b++)a.ra[b*2]=0;for(b=0;b<30;b++)a.hb[b*2]=0;for(b=0;b<19;b++)a.ja[b*2]=0;a.ra[512]=1;a.Pa=a.Jb=0;a.ya=a.matches=0} function Hl(a){a.ia>8?Bl(a,a.oa):a.ia>0&&(a.aa[a.pending++]=a.oa);a.oa=0;a.ia=0} function Il(a,b,c){Hl(a);Bl(a,c);Bl(a,~c);O.ub(a.aa,a.window,b,c,a.pending);a.pending+=c} function Jl(a,b,c,d){var e=b*2,f=c*2;return a[e]>>7)];Dl(a,g,c);h=nl[g];h!==0&&(e-=vl[g],Cl(a,e,h))}}while(d>1;g>=1;g--)Kl(a,c,g);k=f;do g=a.da[1],a.da[1]=a.da[a.Na--],Kl(a,c,1),d=a.da[1],a.da[--a.Bb]=g,a.da[--a.Bb]=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++,Kl(a,c,1);while(a.Na>= 2);a.da[--a.Bb]=a.da[1];g=b.wd;k=b.Gb;d=b.cb.Pd;e=b.cb.Ad;f=b.cb.xe;var l=b.cb.we,m=b.cb.Oe,n,r=0;for(n=0;n<=15;n++)a.Ka[n]=0;g[a.da[a.Bb]*2+1]=0;for(b=a.Bb+1;b<573;b++){var t=a.da[b];n=g[g[t*2+1]*2+1]+1;n>m&&(n=m,r++);g[t*2+1]=n;if(!(t>k)){a.Ka[n]++;var w=0;t>=l&&(w=f[t-l]);var x=g[t*2];a.Pa+=x*(n+w);e&&(a.Jb+=x*(d[t*2+1]+w))}}if(r!==0){do{for(n=m-1;a.Ka[n]===0;)n--;a.Ka[n]--;a.Ka[n+1]+=2;a.Ka[m]--;r-=2}while(r>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.Pa+=(n-g[d* 2+1])*g[d*2],g[d*2+1]=n),t--)}Fl(c,h,a.Ka)} function Nl(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 Ql=!1;function Rl(a,b,c){a.aa[a.Rb+a.ya*2]=b>>>8&255;a.aa[a.Rb+a.ya*2+1]=b&255;a.aa[a.Tc+a.ya]=c&255;a.ya++;b===0?a.ra[c*2]++:(a.matches++,b--,a.ra[(tl[c]+256+1)*2]++,a.hb[(b<256?sl[b]:sl[256+(b>>>7)])*2]++);return a.ya===a.Wb-1} ;function Sl(a,b){a.msg=kl[b];return b} function Tl(a){for(var b=a.length;--b>=0;)a[b]=0} function Ul(a){var b=a.state,c=b.pending;c>a.S&&(c=a.S);c!==0&&(O.ub(a.output,b.aa,b.Zb,c,a.Hb),a.Hb+=c,b.Zb+=c,a.md+=c,a.S-=c,b.pending-=c,b.pending===0&&(b.Zb=0))} function Vl(a,b){var c=a.va>=0?a.va:-1,d=a.v-a.va,e=0;if(a.level>0){a.M.Oc===2&&(a.M.Oc=Pl(a));Ml(a,a.zc);Ml(a,a.qc);Nl(a,a.ra,a.zc.Gb);Nl(a,a.hb,a.qc.Gb);Ml(a,a.td);for(e=18;e>=3&&a.ja[pl[e]*2+1]===0;e--);a.Pa+=3*(e+1)+5+5+4;var f=a.Pa+3+7>>>3;var g=a.Jb+3+7>>>3;g<=f&&(f=g)}else f=g=d+5;if(d+4<=f&&c!==-1)Cl(a,b?1:0,3),Il(a,c,d);else if(a.strategy===4||g===f)Cl(a,2+(b?1:0),3),Ll(a,ql,rl);else{Cl(a,4+(b?1:0),3);c=a.zc.Gb+1;d=a.qc.Gb+1;e+=1;Cl(a,c-257,5);Cl(a,d-1,5);Cl(a,e-4,4);for(f=0;f>>8&255;a.aa[a.pending++]=b&255} function Xl(a,b){var c=a.Dd,d=a.v,e=a.wa,f=a.Fd,g=a.v>a.la-262?a.v-(a.la-262):0,h=a.window,k=a.eb,l=a.Ia,m=a.v+258,n=h[d+e-1],r=h[d+e];a.wa>=a.zd&&(c>>=2);f>a.D&&(f=a.D);do{var t=b;if(h[t+e]===r&&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.Fb=b;e=t;if(t>=f)break;n=h[d+e-1];r=h[d+e]}}}while((b=l[b&k])>g&&--c!==0);return e<= a.D?e:a.D} function Yl(a){var b=a.la,c;do{var d=a.Vd-a.D-a.v;if(a.v>=b+(b-262)){O.ub(a.window,a.window,b,b,0);a.Fb-=b;a.v-=b;a.va-=b;var e=c=a.yc;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.M.na===0)break;e=a.M;c=a.window;f=a.v+a.D;var g=e.na;g>d&&(g=d);g===0?c=0:(e.na-=g,O.ub(c,e.input,e.nb,g,f),e.state.wrap===1?e.J=el(e.J,c,g,f):e.state.wrap===2&&(e.J=fl(e.J,c,g,f)),e.nb+=g,e.qb+=g,c=g);a.D+=c;if(a.D+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=Rl(a,a.v-a.Fb,a.T-3),a.D-=a.T,a.T<=a.Vc&&a.D>=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.D-3;c=Rl(a,a.v-1-a.Id,a.wa-3);a.D-=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.D&&(a.T=a.D)}a.T>=3?(c=Rl(a,1,a.T-3),a.D-=a.T,a.v+=a.T,a.T=0):(c=Rl(a,0,a.window[a.v]),a.D--,a.v++);if(c&&(Vl(a,!1),a.M.S===0))return 1}a.sa=0;return b===4?(Vl(a,!0),a.M.S===0?3:4): a.ya&&(Vl(a,!1),a.M.S===0)?1:2} function bm(a,b){for(var c;;){if(a.D===0&&(Yl(a),a.D===0)){if(b===0)return 1;break}a.T=0;c=Rl(a,0,a.window[a.v]);a.D--;a.v++;if(c&&(Vl(a,!1),a.M.S===0))return 1}a.sa=0;return b===4?(Vl(a,!0),a.M.S===0?3:4):a.ya&&(Vl(a,!1),a.M.S===0)?1:2} function cm(a,b,c,d,e){this.Be=a;this.Ne=b;this.Qe=c;this.Me=d;this.ye=e} var dm;dm=[new cm(0,0,0,0,function(a,b){var c=65535;for(c>a.za-5&&(c=a.za-5);;){if(a.D<=1){Yl(a);if(a.D===0&&b===0)return 1;if(a.D===0)break}a.v+=a.D;a.D=0;var d=a.va+c;if(a.v===0||a.v>=d)if(a.D=a.v-d,a.v=d,Vl(a,!1),a.M.S===0)return 1;if(a.v-a.va>=a.la-262&&(Vl(a,!1),a.M.S===0))return 1}a.sa=0;if(b===4)return Vl(a,!0),a.M.S===0?3:4;a.v>a.va&&Vl(a,!1);return 1}), new cm(4,4,8,4,Zl),new cm(4,5,16,8,Zl),new cm(4,6,32,32,Zl),new cm(4,4,16,16,$l),new cm(8,16,32,32,$l),new cm(8,16,128,128,$l),new cm(8,32,128,256,$l),new cm(32,128,258,1024,$l),new cm(32,258,258,4096,$l)]; function em(){this.M=null;this.status=0;this.aa=null;this.wrap=this.pending=this.Zb=this.za=0;this.I=null;this.Ba=0;this.method=8;this.Db=-1;this.eb=this.pd=this.la=0;this.window=null;this.Vd=0;this.head=this.Ia=null;this.Fd=this.zd=this.strategy=this.level=this.Vc=this.Dd=this.wa=this.D=this.Fb=this.v=this.lb=this.Id=this.T=this.va=this.Ma=this.La=this.Rc=this.yc=this.R=0;this.ra=new O.Ja(1146);this.hb=new O.Ja(122);this.ja=new O.Ja(78);Tl(this.ra);Tl(this.hb);Tl(this.ja);this.td=this.qc=this.zc= null;this.Ka=new O.Ja(16);this.da=new O.Ja(573);Tl(this.da);this.Bb=this.Na=0;this.depth=new O.Ja(573);Tl(this.depth);this.ia=this.oa=this.sa=this.matches=this.Jb=this.Pa=this.Rb=this.ya=this.Wb=this.Tc=0} function fm(a,b){if(!a||!a.state||b>5||b<0)return a?Sl(a,-2):-2;var c=a.state;if(!a.output||!a.input&&a.na!==0||c.status===666&&b!==4)return Sl(a,a.S===0?-5:-2);c.M=a;var d=c.Db;c.Db=b;if(c.status===42)if(c.wrap===2)a.J=0,P(c,31),P(c,139),P(c,8),c.I?(P(c,(c.I.text?1:0)+(c.I.Xa?2:0)+(c.I.extra?4:0)+(c.I.name?8:0)+(c.I.comment?16:0)),P(c,c.I.time&255),P(c,c.I.time>>8&255),P(c,c.I.time>>16&255),P(c,c.I.time>>24&255),P(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),P(c,c.I.os&255),c.I.extra&&c.I.extra.length&& (P(c,c.I.extra.length&255),P(c,c.I.extra.length>>8&255)),c.I.Xa&&(a.J=fl(a.J,c.aa,c.pending,0)),c.Ba=0,c.status=69):(P(c,0),P(c,0),P(c,0),P(c,0),P(c,0),P(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),P(c,3),c.status=113);else{var e=8+(c.pd-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;Wl(c,e+(31-e%31));c.v!==0&&(Wl(c,a.J>>>16),Wl(c,a.J&65535));a.J=1}if(c.status===69)if(c.I.extra){for(e=c.pending;c.Ba<(c.I.extra.length&65535)&&(c.pending!==c.za|| (c.I.Xa&&c.pending>e&&(a.J=fl(a.J,c.aa,c.pending-e,e)),Ul(a),e=c.pending,c.pending!==c.za));)P(c,c.I.extra[c.Ba]&255),c.Ba++;c.I.Xa&&c.pending>e&&(a.J=fl(a.J,c.aa,c.pending-e,e));c.Ba===c.I.extra.length&&(c.Ba=0,c.status=73)}else c.status=73;if(c.status===73)if(c.I.name){e=c.pending;do{if(c.pending===c.za&&(c.I.Xa&&c.pending>e&&(a.J=fl(a.J,c.aa,c.pending-e,e)),Ul(a),e=c.pending,c.pending===c.za)){var f=1;break}f=c.Ba e&&(a.J=fl(a.J,c.aa,c.pending-e,e));f===0&&(c.Ba=0,c.status=91)}else c.status=91;if(c.status===91)if(c.I.comment){e=c.pending;do{if(c.pending===c.za&&(c.I.Xa&&c.pending>e&&(a.J=fl(a.J,c.aa,c.pending-e,e)),Ul(a),e=c.pending,c.pending===c.za)){f=1;break}f=c.Bae&&(a.J=fl(a.J,c.aa,c.pending-e,e));f===0&&(c.status=103)}else c.status=103;c.status===103&&(c.I.Xa?(c.pending+2>c.za&&Ul(a),c.pending+2<=c.za&&(P(c, a.J&255),P(c,a.J>>8&255),a.J=0,c.status=113)):c.status=113);if(c.pending!==0){if(Ul(a),a.S===0)return c.Db=-1,0}else if(a.na===0&&(b<<1)-(b>4?9:0)<=(d<<1)-(d>4?9:0)&&b!==4)return Sl(a,-5);if(c.status===666&&a.na!==0)return Sl(a,-5);if(a.na!==0||c.D!==0||b!==0&&c.status!==666){d=c.strategy===2?bm(c,b):c.strategy===3?am(c,b):dm[c.level].ye(c,b);if(d===3||d===4)c.status=666;if(d===1||d===3)return a.S===0&&(c.Db=-1),0;if(d===2&&(b===1?(Cl(c,2,3),Dl(c,256,ql),c.ia===16?(Bl(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&&(Cl(c,0,3),Il(c,0,0),b===3&&(Tl(c.head),c.D===0&&(c.v=0,c.va=0,c.sa=0))),Ul(a),a.S===0))return c.Db=-1,0}if(b!==4)return 0;if(c.wrap<=0)return 1;c.wrap===2?(P(c,a.J&255),P(c,a.J>>8&255),P(c,a.J>>16&255),P(c,a.J>>24&255),P(c,a.qb&255),P(c,a.qb>>8&255),P(c,a.qb>>16&255),P(c,a.qb>>24&255)):(Wl(c,a.J>>>16),Wl(c,a.J&65535));Ul(a);c.wrap>0&&(c.wrap=-c.wrap);return c.pending!==0?0:1} ;var gm={};gm=function(){this.input=null;this.qb=this.na=this.nb=0;this.output=null;this.md=this.S=this.Hb=0;this.msg="";this.state=null;this.Oc=2;this.J=0};var hm=Object.prototype.toString; function im(a){if(!(this instanceof im))return new im(a);a=this.options=O.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.M=new gm;this.M.S=0;var b=this.M;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=Sl(b,-2);else{e===8&&(e=9);var k=new em;b.state=k;k.M=b;k.wrap=h;k.I=null;k.pd=e;k.la=1<>=7;f<30;f++)for(vl[f]=g<<7,e=0;e<1<=l.la&&(b===0&&(Tl(l.head),l.v=0,l.va=0,l.sa=0),c=new O.rb(l.la),O.ub(c,f,g-l.la,l.la,0),f=c,g=l.la);c=a.na;d=a.nb;e=a.input;a.na=g;a.nb=0;a.input=f;for(Yl(l);l.D>=3;){f=l.v;g=l.D-2;do l.R=(l.R<0||c.S===0)&&a!==1);if(e===4)return(c=this.M)&&c.state?(d=c.state.status,d!==42&&d!==69&&d!==73&&d!==91&&d!==103&&d!==113&&d!==666?a=Sl(c,-2):(c.state=null,a=d===113?Sl(c,-3):0)):a=-2,jm(this,a),this.ended=!0,a===0;e===2&&(jm(this,0),c.S=0);return!0}; function jm(a,b){b===0&&(a.result=a.options.to==="string"?a.chunks.join(""):O.xd(a.chunks));a.chunks=[];a.err=b;a.msg=a.M.msg} function km(a,b){b=b||{};b.gzip=!0;b=new im(b);b.push(a,!0);if(b.err)throw b.msg||kl[b.err];return b.result} ;function lm(a){return a?(a=a.privateDoNotAccessOrElseSafeScriptWrappedValue)?Kb(a):null:null} function mm(a){return a?(a=a.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?qb(a):null:null} ;function nm(a){return qb(a===null?"null":a===void 0?"undefined":a)} ;function om(a){this.name=a} ;var pm=new om("rawColdConfigGroup");var qm=new om("rawHotConfigGroup");function rm(a){this.F=L(a)} v(rm,M);function sm(a){this.F=L(a)} v(sm,M);sm.prototype.setTrackingParams=function(a){if(a!=null)if(typeof a==="string")a=a?new Jd(a,Id):Ld||(Ld=new Jd(null,Id));else if(a.constructor!==Jd)if(Dd&&a!=null&&a instanceof Uint8Array)a instanceof Uint8Array||Array.isArray(a),a=a.length?new Jd(new Uint8Array(a),Id):Ld||(Ld=new Jd(null,Id));else throw Error();return Ef(this,1,a)};var tm=new om("continuationCommand");var um=new om("webCommandMetadata");var wm=new om("signalServiceEndpoint");var xm={Vf:"EMBEDDED_PLAYER_MODE_UNKNOWN",Sf:"EMBEDDED_PLAYER_MODE_DEFAULT",Uf:"EMBEDDED_PLAYER_MODE_PFP",Tf:"EMBEDDED_PLAYER_MODE_PFL"};var ym=new om("feedbackEndpoint");var qe={ah:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",sg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",Kg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",Sg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",hg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",Zg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",dh:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",Rg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK", fh:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",eh:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",Ng:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",Ug:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",jh:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",ih:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",hh:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",Vg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL", Pg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",kh:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",Tg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",mh:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",zg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",Gg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",Fg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",Ig:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT", gh:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",Jg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",Hg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",Zf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",Yf:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",ag:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",cg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",lg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",og:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED", Eg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",Dg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",tg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",vg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",ug:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",yg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",Xg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION", Yg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",Bg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",gg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",eg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",fg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",dg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",Ag:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED", Og:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",xg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",wg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",mg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",Wg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",qg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING", pg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED",ng:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",Lg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",Mg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",kg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",rg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED",jg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS", bh:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED",ig:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED",Qg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO",Cg:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK"};var zm=new om("shareEndpoint"),Am=new om("shareEntityEndpoint"),Bm=new om("shareEntityServiceEndpoint"),Cm=new om("webPlayerShareEntityServiceEndpoint");var Dm=new om("playlistEditEndpoint");var Em=new om("modifyChannelNotificationPreferenceEndpoint");var Fm=new om("undoFeedbackEndpoint");var Gm=new om("unsubscribeEndpoint");var Hm=new om("subscribeEndpoint");function Im(){var a=Jm;F("yt.ads.biscotti.getId_")||E("yt.ads.biscotti.getId_",a)} function Km(a){E("yt.ads.biscotti.lastId_",a)} ;function Lm(a,b){b.length>1?a[b[0]]=b[1]:b.length===1&&Object.assign(a,b[0])} ;var Mm=D.window,Nm,Om,Pm=(Mm==null?void 0:(Nm=Mm.yt)==null?void 0:Nm.config_)||(Mm==null?void 0:(Om=Mm.ytcfg)==null?void 0:Om.data_)||{};E("yt.config_",Pm);function Qm(){Lm(Pm,arguments)} function R(a,b){return a in Pm?Pm[a]:b} function Rm(a){var b=Pm.EXPERIMENT_FLAGS;return b?b[a]:void 0} ;var Sm=[];function Tm(a){Sm.forEach(function(b){return b(a)})} function Um(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){Vm(b)}}:a} function Vm(a){var b=F("yt.logging.errors.log");b?b(a,"ERROR",void 0,void 0,void 0,void 0,void 0):(b=R("ERRORS",[]),b.push([a,"ERROR",void 0,void 0,void 0,void 0,void 0]),Qm("ERRORS",b));Tm(a)} function Wm(a,b,c,d,e){var f=F("yt.logging.errors.log");f?f(a,"WARNING",b,c,d,void 0,e):(f=R("ERRORS",[]),f.push([a,"WARNING",b,c,d,void 0,e]),Qm("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 en(a,b){return fn(a,b||{},!0)} function fn(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=cn(e[1]||"");for(var f in b)!c&&e!==null&&f in e||(e[f]=b[f]);return wc(a,e)+d} function gn(a){if(!b)var b=window.location.href;var c=a.match(nc)[1]||null,d=pc(a);c&&d?(a=a.match(nc),b=b.match(nc),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?pc(b)===d&&(Number(b.match(nc)[4]||null)||null)===(Number(a.match(nc)[4]||null)||null):!0;return a} function $m(a){return a&&a.match(Xm)?a:lc(a)} ;function hn(a){var b=jn;a=a===void 0?F("yt.ads.biscotti.lastId_")||"":a;var c=Object,d=c.assign,e={};e.dt=Zj;e.flash="0";a:{try{var f=b.h.top.location.href}catch(Ja){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?Rj:g;try{var h=g.history.length}catch(Ja){h=0}e.u_his=h;var k;e.u_h=(k=Rj.screen)==null?void 0:k.height;var l;e.u_w=(l=Rj.screen)==null?void 0:l.width;var m;e.u_ah=(m=Rj.screen)==null?void 0:m.availHeight;var n;e.u_aw= (n=Rj.screen)==null?void 0:n.availWidth;var r;e.u_cd=(r=Rj.screen)==null?void 0:r.colorDepth}catch(Ja){}var t;h=b.h;try{var w=h.screenX;var x=h.screenY}catch(Ja){}try{var z=h.outerWidth;var G=h.outerHeight}catch(Ja){}try{var H=h.innerWidth;var S=h.innerHeight}catch(Ja){}try{var Z=h.screenLeft;var mb=h.screenTop}catch(Ja){}try{H=h.innerWidth,S=h.innerHeight}catch(Ja){}try{var Sb=h.screen.availWidth;var pa=h.screen.availTop}catch(Ja){}w=[Z,mb,w,x,Sb,pa,z,G,H,S];try{var Eb=(b.h.top||window).document, Ya=Eb.compatMode=="CSS1Compat"?Eb.documentElement:Eb.body;var Pa=(new Ag(Ya.clientWidth,Ya.clientHeight)).round()}catch(Ja){Pa=new Ag(-12245933,-12245933)}Eb=Pa;Pa={};var Ka=Ka===void 0?D:Ka;Ya=new fk;"SVGElement"in Ka&&"createElementNS"in Ka.document&&Ya.set(0);x=Wj();x["allow-top-navigation-by-user-activation"]&&Ya.set(1);x["allow-popups-to-escape-sandbox"]&&Ya.set(2);Ka.crypto&&Ka.crypto.subtle&&Ya.set(3);"TextDecoder"in Ka&&"TextEncoder"in Ka&&Ya.set(4);Ka=gk(Ya);Pa.bc=Ka;Pa.bih=Eb.height;Pa.biw= Eb.width;Pa.brdim=w.join();b=b.i;b=b.prerendering?3:(t={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[b.visibilityState||b.webkitVisibilityState||b.mozVisibilityState||""])!=null?t:0;t=(Pa.vis=b,Pa.wgl=!!Rj.WebGLRenderingContext,Pa);c=d.call(c,e,t);c.ca_type="image";a&&(c.bid=a);return c} var jn=new function(){var a=window.document;this.h=window;this.i=a}; E("yt.ads_.signals_.getAdSignalsString",function(a){return bn(hn(a))});Wa();navigator.userAgent.indexOf(" (CrKey ");var kn="XMLHttpRequest"in D?function(){return new XMLHttpRequest}:null; function ln(){if(!kn)return null;var a=kn();return"open"in a?a:null} function mn(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 nn(a,b){typeof a==="function"&&(a=Um(a));return window.setTimeout(a,b)} ;var on="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");[].concat(A(on),["client_dev_set_cookie"]);function T(a){a=pn(a);return typeof a==="string"&&a==="false"?!1:!!a} function qn(a,b){a=pn(a);return a===void 0&&b!==void 0?b:Number(a||0)} function pn(a){return R("EXPERIMENT_FLAGS",{})[a]} function rn(){for(var a=[],b=R("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=R("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 sn={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"},tn="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(A(on)),un=!1;function vn(a,b,c,d,e,f,g,h){function k(){(l&&"readyState"in l?l.readyState:0)===4&&b&&Um(b)(l)} c=c===void 0?"GET":c;d=d===void 0?"":d;h=h===void 0?!1:h;var l=ln();if(!l)return null;"onloadend"in l?l.addEventListener("loadend",k,!1):l.onreadystatechange=k;T("debug_forward_web_query_parameters")&&(a=wn(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=xn(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 xn(a,b){b=b===void 0?{}:b;var c=gn(a),d=R("INNERTUBE_CLIENT_NAME"),e=T("web_ajax_ignore_global_headers_if_set"),f;for(f in sn){var g=R(sn[f]),h=f==="X-Goog-AuthUser"||f==="X-Goog-PageId";f!=="X-Goog-Visitor-Id"||g||(g=R("VISITOR_DATA"));var k;if(!(k=!g)){if(!(k=c||(pc(a)?!1:!0))){k=a;var l;if(l=T("add_auth_headers_to_remarketing_google_dot_com_ping")&&f==="Authorization"&&(d==="TVHTML5"||d==="TVHTML5_UNPLUGGED"||d==="TVHTML5_SIMPLY"))l=pc(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=qc(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||!pc(a))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||!pc(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&&pc(a)||(b["X-YouTube-Ad-Signals"]=bn(hn()));return b} function yn(a,b){b.method="POST";b.postParams||(b.postParams={});return zn(a,b)} function zn(a,b){var c=b.format||"JSON";a=An(a,b);var d=Bn(a,b),e=!1,f=Cn(a,function(k){if(!e){e=!0;h&&window.clearTimeout(h);var l=mn(k),m=null,n=400<=k.status&&k.status<500,r=500<=k.status&&k.status<600;if(l||n||r)m=Dn(a,c,k,b.convertToSafeHtml);l&&(l=En(c,k,m));m=m||{};n=b.context||D;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=nn(function(){e||(e=!0,f.abort(),window.clearTimeout(h),g.call(b.context||D,f))},d)}return f} function An(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=R("XSRF_FIELD_NAME");if(b=b.urlParams)b[c]&&delete b[c],a=en(a,b);return a} function Bn(a,b){var c=R("XSRF_FIELD_NAME"),d=R("XSRF_TOKEN"),e=b.postBody||"",f=b.postParams,g=R("XSRF_FIELD_NAME"),h;b.headers&&(h=b.headers["Content-Type"]);b.excludeXsrf||pc(a)&&!b.withCredentials&&pc(a)!==document.location.hostname||b.method!=="POST"||h&&h!=="application/x-www-form-urlencoded"||b.postParams&&b.postParams[g]||(f||(f={}),f[c]=d);(T("ajax_parse_query_data_only_when_filled")&&f&&Object.keys(f).length>0||f)&&typeof e==="string"&&(e=cn(e),Mg(e,f),e=b.postBodyFormat&&b.postBodyFormat=== "JSON"?JSON.stringify(e):vc(e));f=e||f&&!Fg(f);!un&&f&&b.method!=="POST"&&(un=!0,Vm(Error("AJAX request with postData should use POST")));return e} function Dn(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)?Fn(a):null)e={},Vb(a.getElementsByTagName("*"),function(g){e[g.tagName]=Gn(g)})}d&&Hn(e); return e} function Hn(a){if(Na(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=a[b];var d=ob();c=d?d.createHTML(c):c;a[b]=new Hb(c)}else Hn(a[b])}} function En(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 Fn(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&a.length>0?a[0]:null:null} function Gn(a){var b="";Vb(a.childNodes,function(c){b+=c.nodeValue}); return b} function wn(a){var b=window.location.search,c=pc(a);T("debug_handle_relative_url_for_query_forward_killswitch")||!c&&gn(a)&&(c=document.location.hostname);var d=qc(a);d=(c=c&&(c.endsWith("youtube.com")||c.endsWith("youtube-nocookie.com")))&&d&&d.startsWith("/api/");if(!c||d)return a;var e=cn(b),f={};Vb(tn,function(g){e[g]&&(f[g]=e[g])}); return fn(a,f||{},!1)} var Cn=vn;var In=[{Wc:function(a){return"Cannot read property '"+a.key+"'"}, Cc:{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"]}]}},{Wc:function(a){return"Cannot call '"+a.key+"'"}, Cc:{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"]}]}},{Wc:function(a){return a.key+" is not defined"}, Cc:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var Ln={Za:[],Ua:[{callback:Jn,weight:500},{callback:Kn,weight:500}]};function Jn(a){if(a.name==="JavaException")return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")} function Kn(a){if(!a.stack)return!0;var b=!a.stack.includes("\n");return b&&a.stack.includes("ErrorType: ")||b&&a.stack.includes("Anonymous function (Unknown script")||a.stack.toLowerCase()==="not available"?!0:!1} ;function Mn(){this.Ua=[];this.Za=[]} var Nn;function On(){if(!Nn){var a=Nn=new Mn;a.Za.length=0;a.Ua.length=0;Pn(a,Ln)}return Nn} function Pn(a,b){b.Za&&a.Za.push.apply(a.Za,b.Za);b.Ua&&a.Ua.push.apply(a.Ua,b.Ua)} ;var Qn=new N;function Rn(a){function b(){return a.charCodeAt(d++)} var c=a.length,d=0;do{var e=Sn(b);if(e===Infinity)break;var f=e>>3;switch(e&7){case 0:e=Sn(b);if(f===2)return e;break;case 1:if(f===2)return;d+=8;break;case 2:e=Sn(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=Rn(atob(g.replace(/-/g,"+").replace(/_/g,"/"))))?Un(f+".ve",g,h,k):0;d+=f;d+=Un(e,a[e],b,c);if(d>500)break}}else c[b]=Vn(a),d+=c[b].length;else c[b]=Vn(a),d+=c[b].length;return d} function Un(a,b,c,d){c+="."+a;a=Vn(b);d[c]=a;return c.length+a.length} function Vn(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 Wn(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 Xn(){if(!D.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return D.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":D.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":D.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":D.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}} ;function Yn(){this.Qd=!0} function Zn(){Yn.instance||(Yn.instance=new Yn);return Yn.instance} function $n(a,b){a={};var c=[];"USER_SESSION_ID"in Pm&&c.push({key:"u",value:R("USER_SESSION_ID")});if(c=tg(c))a.Authorization=c,c=b=b==null?void 0:b.sessionIndex,c===void 0&&(c=Number(R("SESSION_INDEX",0)),c=isNaN(c)?0:c),T("voice_search_auth_header_removal")||(a["X-Goog-AuthUser"]=c.toString()),"INNERTUBE_HOST_OVERRIDE"in Pm||(a["X-Origin"]=window.location.origin),b===void 0&&"DELEGATED_SESSION_ID"in Pm&&(a["X-Goog-PageId"]=R("DELEGATED_SESSION_ID"));return a} ;var ao={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};function bo(a,b,c,d,e){qg.set(""+a,b,{Yb:c,path:"/",domain:d===void 0?"youtube.com":d,secure:e===void 0?!1:e})} function co(a){return qg.get(""+a,void 0)} function eo(a,b,c){qg.remove(""+a,b===void 0?"/":b,c===void 0?"youtube.com":c)} function fo(){if(T("embeds_web_enable_cookie_detection_fix")){if(!D.navigator.cookieEnabled)return!1}else if(!qg.isEnabled())return!1;if(qg.h.cookie)return!0;T("embeds_web_enable_cookie_detection_fix")?qg.set("TESTCOOKIESENABLED","1",{Yb:60,ff:"none",secure:!0}):qg.set("TESTCOOKIESENABLED","1",{Yb:60});if(qg.get("TESTCOOKIESENABLED")!=="1")return!1;qg.remove("TESTCOOKIESENABLED");return!0} ;var go=F("ytglobal.prefsUserPrefsPrefs_")||{};E("ytglobal.prefsUserPrefsPrefs_",go);function ho(){this.h=R("ALT_PREF_COOKIE_NAME","PREF");this.i=R("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=co(this.h);a&&this.parse(a)} var io;function jo(){io||(io=new ho);return io} p=ho.prototype;p.get=function(a,b){ko(a);lo(a);a=go[a]!==void 0?go[a].toString():null;return a!=null?a:b?b:""}; p.set=function(a,b){ko(a);lo(a);if(b==null)throw Error("ExpectedNotNull");go[a]=b.toString()}; function mo(a){return!!((no("f"+(Math.floor(a/31)+1))||0)&1<=0;b--)a.i[b].length=0;a.i[8].length=0;a.j={};a.stop()} p.isHidden=function(){return!!document.hidden||!1}; function Eo(a){return!a.isHidden()&&a.ma} function Co(a){if(a.i[8].length){if(a.U)return 4;if(Eo(a))return 3}for(var b=5;b>=a.o;b--)if(a.i[b].length>0)return b>0?Eo(a)?3:2:1;return 0} p.Ha=function(a){var b=F("yt.logging.errors.log");b&&b(a)}; function Bo(a,b){try{b()}catch(c){a.Ha(c)}} function Fo(a){for(var b=y(zo),c=b.next();!c.done;c=b.next())if(a.i[c.value].length)return!0;return!1} p.Ce=function(a){var b=void 0;a&&(b=a.timeRemaining());this.ha=!0;Go(this,b);this.ha=!1}; p.zf=function(){Go(this)}; p.be=function(){Ho(this)}; p.Ze=function(a){this.U=!0;var b=Co(this);b===4&&b!==this.A&&(this.stop(),this.start());Go(this,void 0,a);this.U=!1}; p.Se=function(){this.isHidden()||Ho(this);this.h&&(this.stop(),this.start())}; function Ho(a){a.stop();a.u=!0;for(var b=Wa(),c=a.i[8];c.length;){var d=c.shift(),e=a.j[d];delete a.j[d];e&&Bo(a,e)}Io(a);a.u=!1;Fo(a)&&a.start();b=Wa()-b;a.G-=b} function Io(a){for(var b=0,c=a.P.length;bd?a.o:d;if(!(Wa()>=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&&Bo(a,c)}while(c&&Wa()a&&(b.o=a,b.start())} function Zo(){window.clearTimeout(Mo);var a=No();a.o=0;a.start()} ;function $o(){vo.apply(this,arguments)} v($o,vo);function ap(){$o.instance||($o.instance=new $o);return $o.instance} $o.prototype.Sa=function(a,b,c){c!==void 0&&Number.isNaN(Number(c))&&(c=void 0);var d=F("yt.scheduler.instance.addJob");return d?d(a,b,c):c===void 0?(a(),NaN):nn(a,c||0)}; $o.prototype.qa=function(a){if(a===void 0||!Number.isNaN(Number(a))){var b=F("yt.scheduler.instance.cancelJob");b?b(a):window.clearTimeout(a)}}; $o.prototype.start=function(){var a=F("yt.scheduler.instance.start");a&&a()}; $o.prototype.pause=function(){var a=F("yt.scheduler.instance.pause");a&&a()}; var ek=ap(); T("web_scheduler_auto_init")&&!F("yt.scheduler.initialized")&&(E("yt.scheduler.instance.dispose",Oo),E("yt.scheduler.instance.addJob",Qo),E("yt.scheduler.instance.addImmediateJob",Ro),E("yt.scheduler.instance.cancelJob",So),E("yt.scheduler.instance.cancelAllJobs",Po),E("yt.scheduler.instance.start",Uo),E("yt.scheduler.instance.pause",Vo),E("yt.scheduler.instance.setPriorityThreshold",Xo),E("yt.scheduler.instance.enablePriorityThreshold",Yo),E("yt.scheduler.instance.clearPriorityThreshold",Zo),E("yt.scheduler.initialized", !0));function bp(a){var b=new Ek;this.h=(a=b.isAvailable()?a?new Fk(b,a):b:null)?new zk(a):null;this.i=document.domain||window.location.hostname} bp.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 $i).serialize(b))}catch(f){return}else e=escape(b);bo(a,e,c,this.i)}; bp.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=co(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c}; bp.prototype.remove=function(a){this.h&&this.h.remove(a);eo(a,"/",this.i)};var cp=function(){var a;return function(){a||(a=new bp("ytidb"));return a}}(); function dp(){var a;return(a=cp())==null?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)} ;var ep=[],fp,gp=!1;function hp(){var a={};for(fp=new ip(a.handleError===void 0?jp:a.handleError,a.logEvent===void 0?kp:a.logEvent);ep.length>0;)switch(a=ep.shift(),a.type){case "ERROR":fp.Ha(a.payload);break;case "EVENT":fp.logEvent(a.eventType,a.payload)}} function lp(a){gp||(fp?fp.Ha(a):(ep.push({type:"ERROR",payload:a}),ep.length>10&&ep.shift()))} function mp(a,b){gp||(fp?fp.logEvent(a,b):(ep.push({type:"EVENT",eventType:a,payload:b}),ep.length>10&&ep.shift()))} ;function np(a){if(a.indexOf(":")>=0)throw Error("Database name cannot contain ':'");} function op(a){return a.substr(0,a.indexOf(":"))||a} ;var pp=ud||vd;function qp(a){var b=dd();return b?b.toLowerCase().indexOf(a)>=0:!1} ;var rp={},sp=(rp.AUTH_INVALID="No user identifier specified.",rp.EXPLICIT_ABORT="Transaction was explicitly aborted.",rp.IDB_NOT_SUPPORTED="IndexedDB is not supported.",rp.MISSING_INDEX="Index not created.",rp.MISSING_OBJECT_STORES="Object stores not created.",rp.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",rp.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",rp.UNKNOWN_ABORT="Transaction was aborted for unknown reasons.", rp.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",rp.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",rp.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",rp.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",rp),tp={},up=(tp.AUTH_INVALID="ERROR",tp.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",tp.EXPLICIT_ABORT="IGNORED",tp.IDB_NOT_SUPPORTED="ERROR",tp.MISSING_INDEX= "WARNING",tp.MISSING_OBJECT_STORES="ERROR",tp.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",tp.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",tp.QUOTA_EXCEEDED="WARNING",tp.QUOTA_MAYBE_EXCEEDED="WARNING",tp.UNKNOWN_ABORT="WARNING",tp.INCOMPATIBLE_DB_VERSION="WARNING",tp),vp={},wp=(vp.AUTH_INVALID=!1,vp.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,vp.EXPLICIT_ABORT=!1,vp.IDB_NOT_SUPPORTED=!1,vp.MISSING_INDEX=!1,vp.MISSING_OBJECT_STORES=!1,vp.DB_DELETED_BY_MISSING_OBJECT_STORES=!1,vp.DB_REOPENED_BY_MISSING_OBJECT_STORES= !1,vp.QUOTA_EXCEEDED=!1,vp.QUOTA_MAYBE_EXCEEDED=!0,vp.UNKNOWN_ABORT=!0,vp.INCOMPATIBLE_DB_VERSION=!1,vp);function xp(a,b,c,d,e){b=b===void 0?{}:b;c=c===void 0?sp[a]:c;d=d===void 0?up[a]:d;e=e===void 0?wp[a]:e;U.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,xp.prototype)} v(xp,U);function yp(a,b){xp.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:a},sp.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,yp.prototype)} v(yp,xp);function zp(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,zp.prototype)} v(zp,Error);var Ap=["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 Bp(a,b,c,d){b=op(b);var e=a instanceof Error?a:Error("Unexpected error: "+a);if(e instanceof xp)return e;a={objectStoreNames:c,dbName:b,dbVersion:d};if(e.name==="QuotaExceededError")return new xp("QUOTA_EXCEEDED",a);if(wd&&e.name==="UnknownError")return new xp("QUOTA_MAYBE_EXCEEDED",a);if(e instanceof zp)return new xp("MISSING_INDEX",Object.assign({},a,{objectStore:e.objectStore,index:e.index}));if(e.name==="InvalidStateError"&&Ap.some(function(f){return e.message.includes(f)}))return new xp("EXECUTE_TRANSACTION_ON_CLOSED_DB", a); if(e.name==="AbortError")return new xp("UNKNOWN_ABORT",a,e.message);e.args=[Object.assign({},a,{name:"IdbError",Hd:e.name})];e.level="WARNING";return e} function Cp(a,b,c){var d=dp();return new xp("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:b,version:c,hasSucceededOnce:d==null?void 0:d.hasSucceededOnce}})} ;function Dp(a){if(!a)throw Error();throw a;} function Ep(a){return a} function Fp(a){this.h=a} function Gp(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)}} Gp.all=function(a){return new Gp(new Fp(function(b,c){var d=[],e=a.length;e===0&&b(d);for(var f={Cb:0};f.Cb=f)Wp(a,k,t,g,w,b.join(),e),h=w;z.B(2);break;case 4:return z.return(Promise.reject(h))}})} function Wp(a,b,c,d,e,f,g){b=c-b;e?(e instanceof xp&&(e.type==="QUOTA_EXCEEDED"||e.type==="QUOTA_MAYBE_EXCEEDED")&&mp("QUOTA_EXCEEDED",{dbName:op(a.h.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:g.mode}),e instanceof xp&&e.type==="UNKNOWN_ABORT"&&(c-=a.j,c<0&&c>=2147483648&&(c=0),mp("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.i=!0),Xp(a,!1,d,f,b,g.tag),lp(e)):Xp(a,!0,d,f,b,g.tag)} function Xp(a,b,c,d,e,f){mp("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.i,duration:e,isSuccessful:b,tryCount:c,tag:f===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":f})} p.getName=function(){return this.h.name}; function Sp(a){this.h=a} p=Sp.prototype;p.add=function(a,b){return Mp(this.h.add(a,b))}; p.autoIncrement=function(){return this.h.autoIncrement}; p.clear=function(){return Mp(this.h.clear()).then(function(){})}; function Yp(a,b,c){a.h.createIndex(b,c,{unique:!1})} p.count=function(a){return Mp(this.h.count(a))}; function Zp(a,b){return $p(a,{query:b},function(c){return c.delete().then(function(){return aq(c)})}).then(function(){})} p.delete=function(a){return a instanceof IDBKeyRange?Zp(this,a):Mp(this.h.delete(a))}; p.get=function(a){return Mp(this.h.get(a))}; p.index=function(a){try{return new bq(this.h.index(a))}catch(b){if(b instanceof Error&&b.name==="NotFoundError")throw new zp(a,this.h.name);throw b;}}; p.getName=function(){return this.h.name}; p.keyPath=function(){return this.h.keyPath}; function $p(a,b,c){a=a.h.openCursor(b.query,b.direction);return cq(a).then(function(d){return Np(d,c)})} function Up(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=xp;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(){mp("IDB_UNEXPECTEDLY_CLOSED",{dbName:op(a),dbVersion:t.version});l&&l()}); d(f())}); g.addEventListener("error",function(){e(g.error)}); h&&g.addEventListener("blocked",function(){h()})})} function gq(a,b,c){c=c===void 0?{}:c;return fq(a,b,c)} function hq(a,b){b=b===void 0?{}:b;var c,d,e,f;return B(function(g){if(g.h==1)return wa(g,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.ee)&&c.addEventListener("blocked",function(){e()}),g.yield(Lp(c),4); if(g.h!=2)return xa(g,0);f=ya(g);throw Bp(f,a,"",-1);})} ;function iq(a,b){this.name=a;this.options=b;this.j=!0;this.u=this.o=0} iq.prototype.i=function(a,b,c){c=c===void 0?{}:c;return gq(a,b,c)}; iq.prototype.delete=function(a){a=a===void 0?{}:a;return hq(this.name,a)}; function jq(a,b){return new xp("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})} function kq(a,b){if(!b)throw Cp("openWithToken",op(a.name));return a.open()} iq.prototype.open=function(){function a(){var f,g,h,k,l,m,n,r,t,w;return B(function(x){switch(x.h){case 1:return g=(f=Error().stack)!=null?f:"",wa(x,2),x.yield(c.i(c.name,c.options.version,e),4);case 4:for(var z=h=x.i,G=c.options,H=[],S=y(Object.keys(G.Ib)),Z=S.next();!Z.done;Z=S.next()){Z=Z.value;var mb=G.Ib[Z],Sb=mb.af===void 0?Number.MAX_VALUE:mb.af;!(z.h.version>=mb.Pb)||z.h.version>=Sb||z.h.objectStoreNames.contains(Z)||H.push(Z)}k=H;if(k.length===0){x.B(5);break}l=Object.keys(c.options.Ib); m=h.objectStoreNames();if(c.uc.options.version+1)throw r.close(),c.j=!1,jq(c,t);return x.return(r);case 8:throw b(),n instanceof Error&&!T("ytidb_async_stack_killswitch")&&(n.stack=n.stack+"\n"+g.substring(g.indexOf("\n")+1)),Bp(n,c.name,"",(w=c.options.version)!=null?w:-1);}})} function b(){c.h===d&&(c.h=void 0)} var c=this;if(!this.j)throw jq(this);if(this.h)return this.h;var d,e={blocking:function(f){f.close()}, closed:b,xf:b,upgrade:this.options.upgrade};return this.h=d=a()};var lq=new iq("YtIdbMeta",{Ib:{databases:{Pb:1}},upgrade:function(a,b){b(1)&&Rp(a,"databases",{keyPath:"actualName"})}}); function mq(a,b){var c;return B(function(d){if(d.h==1)return d.yield(kq(lq,b),2);c=d.i;return d.return(Qp(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 Mp(f.h.put(a,void 0)).then(function(){})})}))})} function nq(a,b){var c;return B(function(d){if(d.h==1)return a?d.yield(kq(lq,b),2):d.return();c=d.i;return d.return(c.delete("databases",a))})} function oq(a,b){var c,d;return B(function(e){return e.h==1?(c=[],e.yield(kq(lq,b),2)):e.h!=3?(d=e.i,e.yield(Qp(d,["databases"],{ka:!0,mode:"readonly"},function(f){c.length=0;return $p(f.objectStore("databases"),{},function(g){a(g.getValue())&&c.push(g.getValue());return aq(g)})}),3)):e.return(c)})} function pq(a){return oq(function(b){return b.publicName==="LogsDatabaseV2"&&b.userIdentifier!==void 0},a)} function qq(a,b,c){return oq(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 rq(a){var b,c;return B(function(d){if(d.h==1)return b=uo("YtIdbMeta hasAnyMeta other"),d.yield(oq(function(e){return e.userIdentifier!==void 0&&e.userIdentifier!==b},a),2); c=d.i;return d.return(c.length>0)})} ;var sq,tq=new function(){}(new function(){}); function uq(){var a,b,c,d;return B(function(e){switch(e.h){case 1:a=dp();if((b=a)==null?0:b.hasSucceededOnce)return e.return(!0);var f;if(f=pp)f=/WebKit\/([0-9]+)/.exec(dd()),f=!!(f&&parseInt(f[1],10)>=600);f&&(f=/WebKit\/([0-9]+)/.exec(dd()),f=!(f&&parseInt(f[1],10)>=602));if(f||qd)return e.return(!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return e.return(!1)}catch(g){return e.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return e.return(!1); wa(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return e.yield(mq(d,tq),4);case 4:return e.yield(nq("yt-idb-test-do-not-use",tq),5);case 5:return e.return(!0);case 2:return ya(e),e.return(!1)}})} function vq(){if(sq!==void 0)return sq;gp=!0;return sq=uq().then(function(a){gp=!1;var b;if((b=cp())!=null&&b.h){var c;b={hasSucceededOnce:((c=dp())==null?void 0:c.hasSucceededOnce)||a};var d;(d=cp())==null||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})} function wq(){return F("ytglobal.idbToken_")||void 0} function xq(){var a=wq();return a?Promise.resolve(a):vq().then(function(b){(b=b?tq:void 0)&&E("ytglobal.idbToken_",b);return b})} ;var yq=0;function zq(a,b){yq||(yq=ek.pa(function(){var c,d,e,f,g;return B(function(h){switch(h.h){case 1:return h.yield(xq(),2);case 2:c=h.i;if(!c)return h.return();d=!0;wa(h,3);return h.yield(qq(a,c,b),5);case 5:e=h.i;if(!e.length){d=!1;h.B(6);break}f=e[0];return h.yield(hq(f.actualName),7);case 7:return h.yield(nq(f.actualName,c),6);case 6:xa(h,4);break;case 3:g=ya(h),lp(g),d=!1;case 4:ek.qa(yq),yq=0,d&&zq(a,b),h.h=0}})}))} function Aq(){var a;return B(function(b){return b.h==1?b.yield(xq(),2):(a=b.i)?b.return(rq(a)):b.return(!1)})} new Gj;function Bq(a){if(!to())throw a=new xp("AUTH_INVALID",{dbName:a}),lp(a),a;var b=uo();return{actualName:a+":"+b,publicName:a,userIdentifier:b}} function Cq(a,b,c,d){var e,f,g,h,k,l;return B(function(m){switch(m.h){case 1:return f=(e=Error().stack)!=null?e:"",m.yield(xq(),2);case 2:g=m.i;if(!g)throw h=Cp("openDbImpl",a,b),T("ytidb_async_stack_killswitch")||(h.stack=h.stack+"\n"+f.substring(f.indexOf("\n")+1)),lp(h),h;np(a);k=c?{actualName:a,publicName:a,userIdentifier:void 0}:Bq(a);wa(m,3);return m.yield(mq(k,g),5);case 5:return m.yield(gq(k.actualName,b,d),6);case 6:return m.return(m.i);case 3:return l=ya(m),wa(m,7),m.yield(nq(k.actualName, g),9);case 9:xa(m,8);break;case 7:ya(m);case 8:throw l;}})} function Dq(a,b,c){c=c===void 0?{}:c;return Cq(a,b,!1,c)} function Eq(a,b,c){c=c===void 0?{}:c;return Cq(a,b,!0,c)} function Fq(a,b){b=b===void 0?{}:b;var c,d;return B(function(e){if(e.h==1)return e.yield(xq(),2);if(e.h!=3){c=e.i;if(!c)return e.return();np(a);d=Bq(a);return e.yield(hq(d.actualName,b),3)}return e.yield(nq(d.actualName,c),0)})} function Gq(a,b,c){a=a.map(function(d){return B(function(e){return e.h==1?e.yield(hq(d.actualName,b),2):e.yield(nq(d.actualName,c),0)})}); return Promise.all(a).then(function(){})} function Hq(){var a=a===void 0?{}:a;var b,c;return B(function(d){if(d.h==1)return d.yield(xq(),2);if(d.h!=3){b=d.i;if(!b)return d.return();np("LogsDatabaseV2");return d.yield(pq(b),3)}c=d.i;return d.yield(Gq(c,a,b),0)})} function Iq(a,b){b=b===void 0?{}:b;var c;return B(function(d){if(d.h==1)return d.yield(xq(),2);if(d.h!=3){c=d.i;if(!c)return d.return();np(a);return d.yield(hq(a,b),3)}return d.yield(nq(a,c),0)})} ;function Jq(a,b){iq.call(this,a,b);this.options=b;np(a)} v(Jq,iq);function Kq(a,b){var c;return function(){c||(c=new Jq(a,b));return c}} Jq.prototype.i=function(a,b,c){c=c===void 0?{}:c;return(this.options.shared?Eq:Dq)(a,b,Object.assign({},c))}; Jq.prototype.delete=function(a){a=a===void 0?{}:a;return(this.options.shared?Iq:Fq)(this.name,a)}; function Lq(a,b){return Kq(a,b)} ;var Mq={},Nq=Lq("ytGcfConfig",{Ib:(Mq.coldConfigStore={Pb:1},Mq.hotConfigStore={Pb:1},Mq),shared:!1,upgrade:function(a,b){b(1)&&(Yp(Rp(a,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),Yp(Rp(a,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});function Oq(a){return kq(Nq(),a)} function Pq(a,b,c){var d,e,f;return B(function(g){switch(g.h){case 1:return d={config:a,hashData:b,timestamp:V()},g.yield(Oq(c),2);case 2:return e=g.i,g.yield(e.clear("hotConfigStore"),3);case 3:return g.yield(Tp(e,"hotConfigStore",d),4);case 4:return f=g.i,g.return(f)}})} function Qq(a,b,c,d){var e,f,g;return B(function(h){switch(h.h){case 1:return e={config:a,hashData:b,configData:c,timestamp:V()},h.yield(Oq(d),2);case 2:return f=h.i,h.yield(f.clear("coldConfigStore"),3);case 3:return h.yield(Tp(f,"coldConfigStore",e),4);case 4:return g=h.i,h.return(g)}})} function Rq(a){var b,c;return B(function(d){return d.h==1?d.yield(Oq(a),2):d.h!=3?(b=d.i,c=void 0,d.yield(Qp(b,["coldConfigStore"],{mode:"readwrite",ka:!0},function(e){return dq(e.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})} function Sq(a){var b,c;return B(function(d){return d.h==1?d.yield(Oq(a),2):d.h!=3?(b=d.i,c=void 0,d.yield(Qp(b,["hotConfigStore"],{mode:"readwrite",ka:!0},function(e){return dq(e.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})} ;function Tq(){I.call(this);this.i=[];this.h=[];var a=F("yt.gcf.config.hotUpdateCallbacks");a?(this.i=[].concat(A(a)),this.h=a):(this.h=[],E("yt.gcf.config.hotUpdateCallbacks",this.h))} v(Tq,I);Tq.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;I.prototype.ba.call(this)};function Uq(){this.h=0;this.i=new Tq} function Vq(){var a;return(a=F("yt.gcf.config.hotConfigGroup"))!=null?a:R("RAW_HOT_CONFIG_GROUP")} function Wq(a,b,c){var d,e,f;return B(function(g){switch(g.h){case 1:if(!T("start_client_gcf")){g.B(0);break}c&&(a.j=c,E("yt.gcf.config.hotConfigGroup",a.j||null));a.o(b);d=wq();if(!d){g.B(3);break}if(c){g.B(4);break}return g.yield(Sq(d),5);case 5:e=g.i,c=(f=e)==null?void 0:f.config;case 4:return g.yield(Pq(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 Xq(a,b,c){var d,e,f,g;return B(function(h){if(h.h==1){if(!T("start_client_gcf"))return h.B(0);a.coldHashData=b;E("yt.gcf.config.coldHashData",a.coldHashData||null);return(d=wq())?c?h.B(4):h.yield(Rq(d),5):h.B(0)}h.h!=4&&(e=h.i,c=(f=e)==null?void 0:f.config);if(!c)return h.B(0);g=c.configData;return h.yield(Qq(c,b,g,d),0)})} function Yq(){if(!Uq.instance){var a=new Uq;Uq.instance=a}a=Uq.instance;var b=V()-a.h;if(!(a.h!==0&&b0&&(b.request={internalExperimentFlags:c});c=a.Bd;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=Xn()}(d=F("yt.embedded_player.embed_url"))&&b&&(b.thirdParty={embedUrl:d});var e;if(T("web_log_memory_total_kbytes")&&((e=D.navigator)==null?0:e.deviceMemory)){var f;e=(f=D.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=ro())&&b&&(b.client.connectionType=a);T("web_log_effective_connection_type")&& (a=so())&&b&&(b.client.effectiveConnectionType=a);T("start_client_gcf")&&(e=Yq())&&(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)));R("DELEGATED_SESSION_ID")&&!T("pageid_as_header_web")&&(b.user={onBehalfOfUser:R("DELEGATED_SESSION_ID")});!T("fill_delegate_context_in_gel_killswitch")&&(a=R("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&& (b.user=Object.assign({},b.user,{serializedDelegationContext:a}));a=R("INNERTUBE_CONTEXT");var g;if(T("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(cn(R("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 br(a,b,c){c=c===void 0?{}:c;var d={};R("EOM_VISITOR_DATA")?d={"X-Goog-EOM-Visitor-Id":R("EOM_VISITOR_DATA")}:d={"X-Goog-Visitor-Id":c.visitorData||R("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;b=c.authorization||R("AUTHORIZATION");b||(a?b="Bearer "+F("gapi.auth.getToken")().zh:(a=$n(Zn()),T("pageid_as_header_web")||delete a["X-Goog-PageId"],d=Object.assign({},d,a)));b&&(d.Authorization=b);return d} ;var cr=typeof TextEncoder!=="undefined"?new TextEncoder:null,dr=cr?function(a){return cr.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;cyr||g=Dr&&(Br++,T("abandon_compression_after_N_slow_zips")?Cr===qn("compression_disable_point")&&Br>Er&&(Ar=!1):Ar=!1);Nr(b);d.headers||(d.headers={});d.headers["Content-Encoding"]="gzip";d.postBody=a;d.postParams=void 0;e(c,d)} function Or(a){var b=b===void 0?!1:b;var c=c===void 0?!1:c;var d=V(),e={startTime:d,ticks:{},infos:{}},f=b?F("yt.logging.gzipForFetch",!1):!0;if(Ar&&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=Mr(g);if(h!=null&&(h>yr||h=Dr)if(Br++,T("abandon_compression_after_N_slow_zips")||T("abandon_compression_after_N_slow_zips_lr")){b=Br/Cr;var l=Er/qn("compression_disable_point");Cr>0&&Cr%qn("compression_disable_point")===0&&b>=l&&(Ar=!1)}else Ar=!1;Nr(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 Mr(a){try{return(new Blob(a.split(""))).size}catch(b){return Wm(b),null}} function Nr(a){T("gel_compression_csi_killswitch")||!T("log_gel_compression_latency")&&!T("log_gel_compression_latency_lr")||tr("gel_compression",a,{sampleRate:.1})} ;function Pr(a){a=Object.assign({},a);delete a.Authorization;var b=tg();if(b){var c=new ik;c.update(R("INNERTUBE_API_KEY"));c.update(b);a.hash=zd(c.digest(),3)}return a} ;var Qr;function Rr(){Qr||(Qr=new bp("yt.innertube"));return Qr} function Sr(a,b,c,d){if(d)return null;d=Rr().get("nextId",!0)||1;var e=Rr().get("requests",!0)||{};e[d]={method:a,request:b,authState:Pr(c),requestTime:Math.round(V())};Rr().set("nextId",d+1,86400,!0);Rr().set("requests",e,86400,!0);return d} function Tr(a){var b=Rr().get("requests",!0)||{};delete b[a];Rr().set("requests",b,86400,!0)} function Ur(a){var b=Rr().get("requests",!0);if(b){for(var c in b){var d=b[c];if(!(Math.round(V())-d.requestTime<6E4)){var e=d.authState,f=Pr(br(!1));Ig(e,f)&&(e=d.request,"requestTimeMs"in e&&(e.requestTimeMs=Math.round(V())),Vr(a,d.method,e,{}));delete b[c]}}Rr().set("requests",b,86400,!0)}} ;function Wr(a){this.kc=this.h=!1;this.potentialEsfErrorCounter=this.i=0;this.handleError=function(){}; this.Ab=function(){}; this.now=Date.now;this.Tb=!1;var b;this.Rd=(b=a.Rd)!=null?b:100;var c;this.Md=(c=a.Md)!=null?c:1;var d;this.Kd=(d=a.Kd)!=null?d:2592E6;var e;this.Jd=(e=a.Jd)!=null?e:12E4;var f;this.Ld=(f=a.Ld)!=null?f:5E3;var g;this.V=(g=a.V)!=null?g:void 0;this.sc=!!a.sc;var h;this.oc=(h=a.oc)!=null?h:.1;var k;this.Ec=(k=a.Ec)!=null?k:10;a.handleError&&(this.handleError=a.handleError);a.Ab&&(this.Ab=a.Ab);a.Tb&&(this.Tb=a.Tb);a.kc&&(this.kc=a.kc);this.W=a.W;this.Ca=a.Ca;this.ga=a.ga;this.fa=a.fa;this.sendFn=a.sendFn; this.cd=a.cd;this.Yc=a.Yc;Xr(this)&&(!this.W||this.W("networkless_logging"))&&Yr(this)} function Yr(a){Xr(a)&&!a.Tb&&(a.h=!0,a.sc&&Math.random()<=a.oc&&a.ga.he(a.V),Zr(a),a.fa.ta()&&a.fc(),a.fa.listen(a.cd,a.fc.bind(a)),a.fa.listen(a.Yc,a.ud.bind(a)))} p=Wr.prototype;p.writeThenSend=function(a,b){var c=this;b=b===void 0?{}:b;if(Xr(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()&&$r(c,d)}).catch(function(e){$r(c,d); as(c,e)})}else this.sendFn(a,b)}; p.sendThenWrite=function(a,b,c){var d=this;b=b===void 0?{}:b;if(Xr(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 B(function(k){if(k.h==1)return k.yield(d.ga.set(e,d.V).catch(function(l){as(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); as(d,g)})}else this.sendFn(a,b,this.W&&this.W("nwl_skip_retry")&&c)}; p.sendAndWrite=function(a,b){var c=this;b=b===void 0?{}:b;if(Xr(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.yb(d.id,c.V):e=!0;c.fa.mb&&c.W&&c.W("vss_network_hint")&&c.fa.mb(!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.yb(d.id,c.V)}).catch(function(g){as(c,g)})}else this.sendFn(a,b,void 0,!0)}; p.fc=function(){var a=this;if(!Xr(this))throw Error("IndexedDB is not supported: throttleSend");this.i||(this.i=this.Ca.pa(function(){var b;return B(function(c){if(c.h==1)return c.yield(a.ga.yd("NEW",a.V),2);if(c.h!=3)return b=c.i,b?c.yield($r(a,b),3):(a.ud(),c.return());a.i&&(a.i=0,a.fc());c.h=0})},this.Rd))}; p.ud=function(){this.Ca.qa(this.i);this.i=0}; function $r(a,b){var c;return B(function(d){switch(d.h){case 1:if(!Xr(a))throw Error("IndexedDB is not supported: immediateSend");if(b.id===void 0){d.B(2);break}return d.yield(a.ga.Le(b.id,a.V),3);case 3:(c=d.i)||a.Ab(Error("The request cannot be found in the database."));case 2:if(bs(a,b,a.Kd)){d.B(4);break}a.Ab(Error("Networkless Logging: Stored logs request expired age limit"));if(b.id===void 0){d.B(5);break}return d.yield(a.ga.yb(b.id,a.V),5);case 5:return d.return();case 4:b.skipRetry||(b=cs(a, b));if(!b){d.B(0);break}if(!b.skipRetry||b.id===void 0){d.B(8);break}return d.yield(a.ga.yb(b.id,a.V),8);case 8:a.sendFn(b.url,b.options,!!b.skipRetry),d.h=0}})} function cs(a,b){if(!Xr(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 B(function(m){switch(m.h){case 1:g=ds(f);(h=es(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.Ec)){m.B(2);break}if(!a.fa.Ic){m.B(3);break}return m.yield(a.fa.Ic(),3);case 3:if(a.fa.ta()){m.B(2);break}c(e,f);if(!a.W||!a.W("nwl_consider_error_code")||((k=b)==null?void 0:k.id)===void 0){m.B(6); break}return m.yield(a.ga.dd(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.Ec)return m.return();a.potentialEsfErrorCounter++;if(((l=b)==null?void 0:l.id)===void 0){m.B(8);break}return b.sendCount=c?!1:!0} function Zr(a){if(!Xr(a))throw Error("IndexedDB is not supported: retryQueuedRequests");a.ga.yd("QUEUED",a.V).then(function(b){b&&!bs(a,b,a.Jd)?a.Ca.pa(function(){return B(function(c){if(c.h==1)return b.id===void 0?c.B(2):c.yield(a.ga.dd(b.id,a.V),2);Zr(a);c.h=0})}):a.fa.ta()&&a.fc()})} function as(a,b){a.Wd&&!a.fa.ta()?a.Wd(b):a.handleError(b)} function Xr(a){return!!a.V||a.kc} function ds(a){var b;return(a=a==null?void 0:(b=a.error)==null?void 0:b.code)&&a>=400&&a<=599?!1:!0} function es(a){var b;a=a==null?void 0:(b=a.error)==null?void 0:b.code;return!(a!==400&&a!==415)} ;var gs; function hs(){if(gs)return gs();var a={};gs=Lq("LogsDatabaseV2",{Ib:(a.LogsRequestsStore={Pb:2},a),shared:!1,upgrade:function(b,c,d){c(2)&&Rp(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.h.indexNames.contains("newRequest")&&d.h.deleteIndex("newRequest"),Yp(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 gs()} ;function is(a){return kq(hs(),a)} function js(a,b){var c,d,e,f;return B(function(g){if(g.h==1)return c={startTime:V(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.yield(is(b),2);if(g.h!=3)return d=g.i,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:R("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.yield(Tp(d,"LogsRequestsStore",e),3);f=g.i;c.ticks.tc=V();ks(c);return g.return(f)})} function ls(a,b){var c,d,e,f,g,h,k,l;return B(function(m){if(m.h==1)return c={startTime:V(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},m.yield(is(b),2);if(m.h!=3)return d=m.i,e=R("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],g=[a,e,V()],h=IDBKeyRange.bound(f,g),k="prev",T("use_fifo_for_networkless")&&(k="next"),l=void 0,m.yield(Qp(d,["LogsRequestsStore"],{mode:"readwrite",ka:!0},function(n){return dq(n.objectStore("LogsRequestsStore").index("newRequestV2"),{query:h,direction:k}, function(r){r.getValue()&&(l=r.getValue(),a==="NEW"&&(l.status="QUEUED",r.update(l)))})}),3); c.ticks.tc=V();ks(c);return m.return(l)})} function ms(a,b){var c;return B(function(d){if(d.h==1)return d.yield(is(b),2);c=d.i;return d.return(Qp(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",Mp(f.h.put(g,void 0)).then(function(){return g})})}))})} function ns(a,b,c,d){c=c===void 0?!0:c;var e;return B(function(f){if(f.h==1)return f.yield(is(b),2);e=f.i;return f.return(Qp(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),Mp(h.h.put(k,void 0)).then(function(){return k})):Gp.resolve(void 0)})}))})} function ps(a,b){var c;return B(function(d){if(d.h==1)return d.yield(is(b),2);c=d.i;return d.return(c.delete("LogsRequestsStore",a))})} function qs(a){var b,c;return B(function(d){if(d.h==1)return d.yield(is(a),2);b=d.i;c=V()-2592E6;return d.yield(Qp(b,["LogsRequestsStore"],{mode:"readwrite",ka:!0},function(e){return $p(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return aq(f)})})}),0)})} function rs(){B(function(a){return a.yield(Hq(),0)})} function ks(a){T("nwl_csi_killswitch")||tr("networkless_performance",a,{sampleRate:1})} ;var ss={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,producerProjectDiskInsufficientExportFailure:516,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, adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520};var ts={},us=Lq("ServiceWorkerLogsDatabase",{Ib:(ts.SWHealthLog={Pb:1},ts),shared:!0,upgrade:function(a,b){b(1)&&Yp(Rp(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});function vs(a){return kq(us(),a)} function ws(a){var b,c;B(function(d){if(d.h==1)return d.yield(vs(a),2);b=d.i;c=V()-2592E6;return d.yield(Qp(b,["SWHealthLog"],{mode:"readwrite",ka:!0},function(e){return $p(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return aq(f)})})}),0)})} function xs(a){var b;return B(function(c){if(c.h==1)return c.yield(vs(a),2);b=c.i;return c.yield(b.clear("SWHealthLog"),0)})} ;var ys={},zs=0;function As(a){var b=b===void 0?{}:b;var c=new Image,d=""+zs++;ys[d]=c;c.onload=c.onerror=function(){delete ys[d]}; b.di&&(c.referrerPolicy="no-referrer");c.src=a} ;var Bs;function Cs(){Bs||(Bs=new bp("yt.offline"));return Bs} function Ds(a){if(T("offline_error_handling")){var b=Cs().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);Cs().set("errors",b,2592E3,!0)}} ;function Es(){this.h=new Map;this.i=!1} function Fs(){if(!Es.instance){var a=F("yt.networkRequestMonitor.instance")||new Es;E("yt.networkRequestMonitor.instance",a);Es.instance=a}return Es.instance} Es.prototype.requestComplete=function(a,b){b&&(this.i=!0);a=this.removeParams(a);this.h.get(a)||this.h.set(a,b)}; Es.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.h.get(a))?!1:a===!1&&this.i?!0:null}; Es.prototype.removeParams=function(a){return a.split("?")[0]}; Es.prototype.removeParams=Es.prototype.removeParams;Es.prototype.isEndpointCFR=Es.prototype.isEndpointCFR;Es.prototype.requestComplete=Es.prototype.requestComplete;Es.getInstance=Fs;function Gs(){mi.call(this);var a=this;this.j=!1;this.h=dk();this.h.listen("networkstatus-online",function(){if(a.j&&T("offline_error_handling")){var b=Cs().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new U(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;Vm(d)}Cs().set("errors",{},2592E3,!0)}}})} v(Gs,mi);function Hs(){if(!Gs.instance){var a=F("yt.networkStatusManager.instance")||new Gs;E("yt.networkStatusManager.instance",a);Gs.instance=a}return Gs.instance} p=Gs.prototype;p.ta=function(){return this.h.ta()}; p.mb=function(a){this.h.h=a}; p.Ae=function(){var a=window.navigator.onLine;return a===void 0?!0:a}; p.qe=function(){this.j=!0}; p.listen=function(a,b){return this.h.listen(a,b)}; p.Ic=function(a){a=bk(this.h,a);a.then(function(b){T("use_cfr_monitor")&&Fs().requestComplete("generate_204",b)}); return a}; Gs.prototype.sendNetworkCheckRequest=Gs.prototype.Ic;Gs.prototype.listen=Gs.prototype.listen;Gs.prototype.enableErrorFlushing=Gs.prototype.qe;Gs.prototype.getWindowStatus=Gs.prototype.Ae;Gs.prototype.networkStatusHint=Gs.prototype.mb;Gs.prototype.isNetworkAvailable=Gs.prototype.ta;Gs.getInstance=Hs;function Is(a){a=a===void 0?{}:a;mi.call(this);var b=this;this.h=this.u=0;this.j=Hs();var c=F("yt.networkStatusManager.instance.listen").bind(this.j);c&&(a.rateLimit?(this.rateLimit=a.rateLimit,c("networkstatus-online",function(){Js(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){Js(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){ni(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){ni(b,"publicytnetworkstatus-offline")})))} v(Is,mi);Is.prototype.ta=function(){var a=F("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.j)():!0}; Is.prototype.mb=function(a){var b=F("yt.networkStatusManager.instance.networkStatusHint").bind(this.j);b&&b(a)}; Is.prototype.Ic=function(a){var b=this,c;return B(function(d){c=F("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.j);return T("skip_network_check_if_cfr")&&Fs().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.mb(((f=window.navigator)==null?void 0:f.onLine)||!0);e(b.ta())})):c?d.return(c(a)):d.return(!0)})}; function Js(a,b){a.rateLimit?a.h?(ek.qa(a.u),a.u=ek.pa(function(){a.o!==b&&(ni(a,b),a.o=b,a.h=V())},a.rateLimit-(V()-a.h))):(ni(a,b),a.o=b,a.h=V()):ni(a,b)} ;var Ks;function Ls(){var a=Wr.call;Ks||(Ks=new Is({Rh:!0,Hh:!0}));a.call(Wr,this,{ga:{he:qs,yb:ps,yd:ls,Le:ms,dd:ns,set:js},fa:Ks,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;b=new U(b.message,c,d==null?void 0:(g=d.error)==null?void 0:g.code);Wm(b,void 0,void 0,void 0,!0)}else Vm(b)}, Ab:Wm,sendFn:Ms,now:V,Wd:Ds,Ca:ap(),cd:"publicytnetworkstatus-online",Yc:"publicytnetworkstatus-offline",sc:!0,oc:.1,Ec:qn("potential_esf_error_limit",10),W:T,Tb:!(to()&&Ns())});this.j=new Gj;T("networkless_immediately_drop_all_requests")&&rs();Iq("LogsDatabaseV2")} v(Ls,Wr);function Os(){var a=F("yt.networklessRequestController.instance");a||(a=new Ls,E("yt.networklessRequestController.instance",a),T("networkless_logging")&&xq().then(function(b){a.V=b;Yr(a);a.j.resolve();a.sc&&Math.random()<=a.oc&&a.V&&ws(a.V);T("networkless_immediately_drop_sw_health_store")&&Ps(a)})); return a} Ls.prototype.writeThenSend=function(a,b){b||(b={});b=Qs(a,b);to()||(this.h=!1);Wr.prototype.writeThenSend.call(this,a,b)}; Ls.prototype.sendThenWrite=function(a,b,c){b||(b={});b=Qs(a,b);to()||(this.h=!1);Wr.prototype.sendThenWrite.call(this,a,b,c)}; Ls.prototype.sendAndWrite=function(a,b){b||(b={});b=Qs(a,b);to()||(this.h=!1);Wr.prototype.sendAndWrite.call(this,a,b)}; Ls.prototype.awaitInitialization=function(){return this.j.promise}; function Ps(a){var b;B(function(c){if(!a.V)throw b=Cp("clearSWHealthLogsDb"),b;return c.return(xs(a.V).catch(function(d){a.handleError(d)}))})} function Ms(a,b,c,d){d=d===void 0?!1:d;b=T("web_fp_via_jspb")?Object.assign({},b):b;T("use_cfr_monitor")&&Rs(a,b);if(T("use_request_time_ms_header"))b.headers&&gn(a)&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round(V())));else{var e;if((e=b.postParams)==null?0:e.requestTimeMs)b.postParams.requestTimeMs=Math.round(V())}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)vn(a,void 0,"POST",f,void 0);else if(R("USE_NET_AJAX_FOR_PING_TRANSPORT", !1)||h)vn(a,void 0,"GET","",void 0,void 0,g,h);else{b:{try{c:{var k=new gb({url:a});if(db(k.h,cb)==="1")var l=null;else{var m=db(k.h,bb);if(m==="1"){var n=db(k.h,ab);if(n)try{l={version:3,oe:decodeURIComponent(n),de:eb(k.h,"act=1","ri=1",hb(k))};break c}catch(Z){}}l=m==="2"?{version:4,oe:eb(k.h,"dct=1","suid="+k.i,""),de:eb(k.h,"act=1","ri=1","suid="+k.i)}:null}}if(l){var r=qc(a),t;if(!(t=!r||!r.endsWith("/aclk"))){var w=a.search(yc),x=xc(a,0,"ri",w);if(x<0)var z=null;else{var G=a.indexOf("&",x); if(G<0||G>w)G=w;z=lc(a.slice(x+3,G!==-1?G:0))}t=z!=="1"}var H=!t;break b}}catch(Z){}H=!1}if(H){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,"")){var S=!0;break b}}catch(Z){}S=!1}c=S?!0:!1}else c=!1;c||As(a)}}else b.compress?b.postBody?(typeof b.postBody!=="string"&&(b.postBody=JSON.stringify(b.postBody)),Lr(a,b.postBody,b,zn,d)):Lr(a,JSON.stringify(b.postParams),b,yn,d):zn(a,b)} function Qs(a,b){T("use_event_time_ms_header")&&gn(a)&&(b.headers||(b.headers={}),b.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round(V())));return b} function Rs(a,b){var c=b.onError?b.onError:function(){}; b.onError=function(e,f){Fs().requestComplete(a,!1);c(e,f)}; var d=b.onSuccess?b.onSuccess:function(){}; b.onSuccess=function(e,f){Fs().requestComplete(a,!0);d(e,f)}} function Ns(){return pc(document.location.toString())!=="www.youtube-nocookie.com"} ;var Ss=!1,Xs=D.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:Ss};E("ytNetworklessLoggingInitializationOptions",Xs);function Ys(){var a;B(function(b){if(b.h==1)return b.yield(xq(),2);a=b.i;if(!a||!to()&&!T("nwl_init_require_datasync_id_killswitch")||!Ns())return b.B(0);Ss=!0;Xs.isNwlInitialized=Ss;return b.yield(Os().awaitInitialization(),0)})} ;function Zs(a){var b=this;this.config_=null;a?this.config_=a:Zq()&&(this.config_=$q());wo(function(){Ur(b)},5E3)} Zs.prototype.isReady=function(){!this.config_&&Zq()&&(this.config_=$q());return!!this.config_}; function Vr(a,b,c,d){function e(n){n=n===void 0?!1:n;var r;if(d.retry&&h!="www.youtube-nocookie.com"&&(n||T("skip_ls_gel_retry")||g.headers["Content-Type"]!=="application/json"||(r=Sr(b,c,l,k)),r)){var t=g.onSuccess,w=g.onFetchSuccess;g.onSuccess=function(G,H){Tr(r);t(G,H)}; c.onFetchSuccess=function(G,H){Tr(r);w(G,H)}}try{if(n&&d.retry&&!d.networklessOptions.bypassNetworkless)g.method="POST",d.networklessOptions.writeThenSend?Os().writeThenSend(m,g):Os().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));Lr(m,z,g,zn,x)}else Lr(m,JSON.stringify(g.postParams),g,yn,x)}else T("web_all_payloads_via_jspb")?zn(m,g):yn(m,g)}catch(G){if(G.name==="InvalidAccessError")r&&(Tr(r),r=0),Wm(Error("An extension is blocking network request."));else throw G;}r&&wo(function(){Ur(a)},5E3)} !R("VISITOR_DATA")&&b!=="visitor_id"&&Math.random()<.01&&Wm(new U("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady()){var f=new U("innertube xhrclient not ready",b,c,d);Vm(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,r){if(d.onSuccess)d.onSuccess(r)}, onFetchSuccess:function(n){if(d.onSuccess)d.onSuccess(n)}, onError:function(n,r){if(d.onError)d.onError(r)}, 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_.Ge)&&(h=f);var k=a.config_.He||!1,l=br(k,h,d);Object.assign(g.headers,l);g.headers.Authorization&&!h&&k&&(g.headers["x-origin"]=window.location.origin);var m=en(""+h+("/youtubei/"+a.config_.innertubeApiVersion+"/"+b),{alt:"json"});(F("ytNetworklessLoggingInitializationOptions")?Xs.isNwlInitialized:Ss)?vq().then(function(n){e(n)}):e(!1)} ;var $s=0,at=sd?"webkit":rd?"moz":pd?"ms":od?"o":"";E("ytDomDomGetNextId",F("ytDomDomGetNextId")||function(){return++$s});var bt={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 ct(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 bt||(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 dt(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}} ct.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; ct.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; ct.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Eg=D.ytEventsEventsListeners||{};E("ytEventsEventsListeners",Eg);var et=D.ytEventsEventsCounter||{count:0};E("ytEventsEventsCounter",et); function ft(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 Dg(function(e){var f=typeof e[4]==="boolean"&&e[4]==!!d,g=Na(e[4])&&Na(d)&&Ig(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||g)})} function gt(a,b,c,d){d=d===void 0?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=ft(a,b,c,d);if(e)return e;e=++et.count+"";var f=!(b!="mouseenter"&&b!="mouseleave"||!a.addEventListener||"onmouseenter"in document);var g=f?function(h){h=new ct(h);if(!Sg(h.relatedTarget,function(k){return k==a}))return h.currentTarget=a,h.type=b,c.call(a,h)}:function(h){h=new ct(h); h.currentTarget=a;return c.call(a,h)}; g=Um(g);a.addEventListener?(b=="mouseenter"&&f?b="mouseover":b=="mouseleave"&&f?b="mouseout":b=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),ht()||typeof d==="boolean"?a.addEventListener(b,g,d):a.addEventListener(b,g,!!d.capture)):a.attachEvent("on"+b,g);Eg[e]=[a,b,c,g,d];return e} function jt(a){a&&(typeof a=="string"&&(a=[a]),Vb(a,function(b){if(b in Eg){var c=Eg[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?ht()||typeof c==="boolean"?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete Eg[b]}}))} var ht=Ci(function(){var a=!1;try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}}); window.addEventListener("test",null,b)}catch(c){}return a});function kt(a){this.G=a;this.h=null;this.o=0;this.A=null;this.u=0;this.i=[];for(a=0;a<4;a++)this.i.push(0);this.j=0;this.U=gt(window,"mousemove",Ua(this.Y,this));a=Ua(this.P,this);typeof a==="function"&&(a=Um(a));this.Z=window.setInterval(a,25)} Za(kt,I);kt.prototype.Y=function(a){a.h===void 0&&dt(a);var b=a.h;a.i===void 0&&dt(a);this.h=new zg(b,a.i)}; kt.prototype.P=function(){if(this.h){var a=V();if(this.o!=0){var b=this.A,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.A=this.h;this.j=(this.j+1)%4}}; kt.prototype.ba=function(){window.clearInterval(this.Z);jt(this.U)};var lt={}; function mt(a){var b=a===void 0?{}:a;a=b.Xe===void 0?!1:b.Xe;b=b.re===void 0?!0:b.re;if(F("_lact",window)==null){var c=parseInt(R("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;E("_lact",c,window);E("_fact",c,window);c==-1&&nt();gt(document,"keydown",nt);gt(document,"keyup",nt);gt(document,"mousedown",nt);gt(document,"mouseup",nt);a?gt(window,"touchmove",function(){ot("touchmove",200)},{passive:!0}):(gt(window,"resize",function(){ot("resize",200)}),b&>(window,"scroll",function(){ot("scroll",200)})); new kt(function(){ot("mouse",100)}); gt(document,"touchstart",nt,{passive:!0});gt(document,"touchend",nt,{passive:!0})}} function ot(a,b){lt[a]||(lt[a]=!0,ek.pa(function(){nt();lt[a]=!1},b))} function nt(){F("_lact",window)==null&&mt();var a=Date.now();E("_lact",a,window);F("_fact",window)==-1&&E("_fact",a,window);(a=F("ytglobal.ytUtilActivityCallback_"))&&a()} function pt(){var a=F("_lact",window);return a==null?-1:Math.max(Date.now()-a,0)} ;var qt=D.ytPubsubPubsubInstance||new N,rt=D.ytPubsubPubsubSubscribedKeys||{},st=D.ytPubsubPubsubTopicToKeys||{},tt=D.ytPubsubPubsubIsSynchronous||{};function ut(a,b){var c=vt();if(c&&b){var d=c.subscribe(a,function(){function e(){rt[d]&&b.apply&&typeof b.apply=="function"&&b.apply(window,f)} var f=arguments;try{tt[a]?e():nn(e,0)}catch(g){Vm(g)}},void 0); rt[d]=!0;st[a]||(st[a]=[]);st[a].push(d);return d}return 0} function wt(a){var b=vt();b&&(typeof a==="number"?a=[a]:typeof a==="string"&&(a=[parseInt(a,10)]),Vb(a,function(c){b.unsubscribeByKey(c);delete rt[c]}))} function xt(a,b){var c=vt();c&&c.publish.apply(c,arguments)} function zt(a){var b=vt();if(b)if(b.clear(a),a)At(a);else for(var c in st)At(c)} function vt(){return D.ytPubsubPubsubInstance} function At(a){st[a]&&(a=st[a],Vb(a,function(b){rt[b]&&delete rt[b]}),a.length=0)} N.prototype.subscribe=N.prototype.subscribe;N.prototype.unsubscribeByKey=N.prototype.hc;N.prototype.publish=N.prototype.sb;N.prototype.clear=N.prototype.clear;E("ytPubsubPubsubInstance",qt);E("ytPubsubPubsubTopicToKeys",st);E("ytPubsubPubsubIsSynchronous",tt);E("ytPubsubPubsubSubscribedKeys",rt);var Bt=Symbol("injectionDeps");function Ct(a){this.name=a} Ct.prototype.toString=function(){return"InjectionToken("+this.name+")"}; function Dt(a){this.key=a} function Et(a){return new Dt(a)} function Ft(){this.i=new Map;this.j=new Map;this.h=new Map} function Gt(a,b){a.i.set(b.pb,b);var c=a.j.get(b.pb);if(c)try{c.ai(a.resolve(b.pb))}catch(d){c.Yh(d)}} Ft.prototype.resolve=function(a){return a instanceof Dt?Ht(this,a.key,[],!0):Ht(this,a,[])}; function Ht(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.nd!==void 0)var e=d.nd;else if(d.Ef)e=d[Bt]?It(a,d[Bt],c):[],e=d.Ef.apply(d,A(e));else if(d.Kc){e=d.Kc;var f=e[Bt]?It(a,e[Bt],c):[];e=new (Function.prototype.bind.apply(e,[null].concat(A(f))))}else throw Error("Could not resolve providers for: "+b);c.pop();d.hi||a.h.set(b,e);return e} function It(a,b,c){return b?b.map(function(d){return d instanceof Dt?Ht(a,d.key,c,!0):Ht(a,d,c)}):[]} ;var Jt;function Kt(){Jt||(Jt=new Ft);return Jt} ;var Lt=window;function Mt(){var a,b;return"h5vcc"in Lt&&((a=Lt.h5vcc.traceEvent)==null?0:a.traceBegin)&&((b=Lt.h5vcc.traceEvent)==null?0:b.traceEnd)?1:"performance"in Lt&&Lt.performance.mark&&Lt.performance.measure?2:0} function Nt(a){var b=Mt();switch(b){case 1:Lt.h5vcc.traceEvent.traceBegin("YTLR",a);break;case 2:Lt.performance.mark(a+"-start");break;case 0:break;default:Gb(b,"unknown trace type")}} function Ot(a){var b=Mt();switch(b){case 1:Lt.h5vcc.traceEvent.traceEnd("YTLR",a);break;case 2:b=a+"-start";var c=a+"-end";Lt.performance.mark(c);Lt.performance.measure(a,b,c);break;case 0:break;default:Gb(b,"unknown trace type")}} ;var Pt=T("web_enable_lifecycle_monitoring")&&Mt()!==0,Qt=T("web_enable_lifecycle_monitoring");function Rt(a){var b,c;(c=(b=window).onerror)==null||c.call(b,a.message,"",0,0,a)} ;function St(a){var b=this;var c=c===void 0?0:c;var d=d===void 0?ap():d;this.j=c;this.scheduler=d;this.i=new Gj;this.h=a;for(a={jb:0};a.jb-1&&a.plugins.splice(b,1)})}; p.transition=function(a,b){var c=this;Pt&&Ot(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&&(Tt(this.j),this.j=void 0);Vt(this,a,b);this.state=a;Pt&&Nt(this.state);d=d.action.bind(this);var e=this.plugins.filter(function(f){return f[a]}).map(function(f){return f[a]}); d(Wt(this,e),b)}else throw Error("no transition specified from "+this.state+" to "+a);}; function Wt(a,b){var c=b.filter(function(e){return Xt(a,e)===10}),d=b.filter(function(e){return Xt(a,e)!==10}); return a.A.gi?function(){var e=C.apply(0,arguments);return B(function(f){if(f.h==1)return f.yield(a.df.apply(a,[c].concat(A(e))),2);a.Od.apply(a,[d].concat(A(e)));f.h=0})}:function(){var e=C.apply(0,arguments); a.ef.apply(a,[c].concat(A(e)));a.Od.apply(a,[d].concat(A(e)))}} p.ef=function(a){for(var b=C.apply(1,arguments),c=ap(),d=y(a),e=d.next(),f={};!e.done;f={Vb:void 0},e=d.next())f.Vb=e.value,c.Nb(function(g){return function(){Yt(g.Vb.name);Zt(function(){return g.Vb.callback.apply(g.Vb,A(b))}); $t(g.Vb.name)}}(f))}; p.df=function(a){var b=C.apply(1,arguments),c,d,e,f,g;return B(function(h){h.h==1&&(c=ap(),d=y(a),e=d.next(),f={});if(h.h!=3){if(e.done)return h.B(0);f.Ya=e.value;f.jc=void 0;g=function(k){return function(){Yt(k.Ya.name);var l=Zt(function(){return k.Ya.callback.apply(k.Ya,A(b))}); re(l)?k.jc=T("web_lifecycle_error_handling_killswitch")?l.then(function(){$t(k.Ya.name)}):l.then(function(){$t(k.Ya.name)},function(m){Rt(m); $t(k.Ya.name)}):$t(k.Ya.name)}}(f); c.Nb(g);return f.jc?h.yield(f.jc,3):h.B(3)}f={Ya:void 0,jc:void 0};e=d.next();return h.B(2)})}; p.Od=function(a){var b=C.apply(1,arguments),c=this,d=a.map(function(e){return{Sc:function(){Yt(e.name);Zt(function(){return e.callback.apply(e,A(b))}); $t(e.name)}, priority:Xt(c,e)}}); d.length&&(this.j=new St(d))}; function Xt(a,b){var c,d;return(d=(c=a.o)!=null?c:b.priority)!=null?d:0} function Yt(a){Pt&&a&&Nt(a)} function $t(a){Pt&&a&&Ot(a)} function Vt(a,b,c){Qt&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+a.constructor.name+"] '"+a.state+"' to '"+b+"'"),console.log("with message: ",c),console.groupEnd())} da.Object.defineProperties(Ut.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}}); function Zt(a){if(T("web_lifecycle_error_handling_killswitch"))return a();try{return a()}catch(b){Rt(b)}} ;function au(a){Ut.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 bu;v(au,Ut);au.prototype.i=function(a,b){var c=this;this.h=wo(function(){c.currentState==="application_navigating"&&c.transition("none")},5E3); a(b==null?void 0:b.event)}; au.prototype.u=function(a,b){this.h&&(ek.qa(this.h),this.h=null);a(b==null?void 0:b.event)}; function cu(){bu||(bu=new au);return bu} ;var du=[];E("yt.logging.transport.getScrapedGelPayloads",function(){return du});function eu(){this.store={};this.h={}} eu.prototype.storePayload=function(a,b){a=fu(a);this.store[a]?this.store[a].push(b):(this.h={},this.store[a]=[b]);T("more_accurate_gel_parser")&&(b=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(b));return a}; eu.prototype.smartExtractMatchingEntries=function(a){if(!a.keys.length)return[];for(var b=gu(this,a.keys.splice(0,1)[0]),c=[],d=0;d=1E3?d():c>=a?su||(su=Gu(function(){d();su=void 0},0)):f-h>=10&&(Hu(e,b.tier),g.o=f)} function Cu(a,b){if(a.endpoint==="log_event"){T("more_accurate_gel_parser")&&wu().storePayload({isJspb:!1},a.payload);yu(a);var c=zu(a),d=new Map;d.set(c,[a.payload]);var e=Au(a.payload)||"";b&&(mu=new b);return new Di(function(f,g){mu&&mu.isReady()?Iu(d,mu,f,g,{bypassNetworkless:!0},!0,e==="gelDebuggingEvent"):f()})}} function zu(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);uu[a.cttAuthInfo.token]=c;b=a.cttAuthInfo.token}return b} function Eu(a,b,c,d){a=a===void 0?{}:a;c=c===void 0?!1:c;new Di(function(e,f){var g=Fu(c,d),h=g.j;g.j=!1;Ju(g.i);Ju(g.h);g.h=0;mu&&mu.isReady()?d===void 0&&T("enable_web_tiered_gel")?Ku(e,f,a,b,c,300,h):Ku(e,f,a,b,c,d,h):(Hu(c,d),e())})} function Ku(a,b,c,d,e,f,g){var h=mu;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=T("enable_web_tiered_gel")?wu().smartExtractMatchingEntries({keys:[l,e],sizeLimit:1E3}):wu().extractMatchingEntries(e),k.set(d,f);else for(d=y(Object.keys(vu)),l=d.next();!l.done;l=d.next())l=l.value,e=T("enable_web_tiered_gel")?wu().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:l,tier:f}, {isJspb:!1,cttAuthInfo:l}],sizeLimit:1E3}):wu().extractMatchingEntries({isJspb:!1,cttAuthInfo:l}),e.length>0&&k.set(l,e),(T("web_fp_via_jspb_and_json")&&c.writeThenSend||!T("web_fp_via_jspb_and_json"))&&delete vu[l];Iu(k,h,a,b,c,!1,g)} function Hu(a,b){function c(){Eu({writeThenSend:!0},void 0,a,b)} a=a===void 0?!1:a;b=b===void 0?200:b;var d=Fu(a,b),e=d===ru||d===qu?5E3:ku;T("web_gel_timeout_cap")&&!d.h&&(e=Gu(function(){c()},e),d.h=e); Ju(d.i);e=R("LOGGING_BATCH_TIMEOUT",qn("web_gel_debounce_ms",1E4));T("shorten_initial_gel_batch_timeout")&&tu&&(e=ju);e=Gu(function(){qn("gel_min_batch_size")>0?wu().getSequenceCount({cttAuthInfo:void 0,isJspb:a,tier:b})>=lu&&c():c()},e); d.i=e} function Iu(a,b,c,d,e,f,g){e=e===void 0?{}:e;var h=Math.round(V()),k=a.size,l=(g===void 0?0:g)&&T("vss_through_gel_video_stats")?"video_stats":"log_event";a=y(a);var m=a.next();for(g={};!m.done;g={Xc:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,bd:void 0,Zc:void 0},m=a.next()){var n=y(m.value);m=n.next().value;n=n.next().value;g.batchRequest=Kg({context:ar(b.config_||$q())});if(!Ma(n)&&!T("throw_err_when_logevent_malformed_killswitch")){d();break}g.batchRequest.events=n;(n=uu[m])&& Lu(g.batchRequest,m,n);delete uu[m];g.dangerousLogToVisitorSession=m==="visitorOnlyApprovedKey";Mu(g.batchRequest,h,g.dangerousLogToVisitorSession);T("always_send_and_write")&&(e.writeThenSend=!1);g.bd=function(r){T("start_client_gcf")&&ek.pa(function(){return B(function(t){return t.yield(Nu(r),0)})}); k--;k||c()}; g.Xc=0;g.Zc=function(r){return function(){r.Xc++;if(e.bypassNetworkless&&r.Xc===1)try{Vr(b,l,r.batchRequest,Ou({writeThenSend:!0},r.dangerousLogToVisitorSession,r.bd,r.Zc,f)),tu=!1}catch(t){Vm(t),d()}k--;k||c()}}(g); try{Vr(b,l,g.batchRequest,Ou(e,g.dangerousLogToVisitorSession,g.bd,g.Zc,f)),tu=!1}catch(r){Vm(r),d()}}} function Ou(a,b,c,d,e){a={retry:!0,onSuccess:c,onError:d,networklessOptions:a,dangerousLogToVisitorSession:b,Ah:!!e,headers:{},postBodyFormat:"",postBody:"",compress:T("compress_gel")||T("compress_gel_lr")};Pu()&&(a.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round(V())));return a} function Mu(a,b,c){Pu()||(a.requestTimeMs=String(b));T("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=R("EVENT_ID"))&&((c=R("BATCH_CLIENT_COUNTER")||0)||(c=Math.floor(Math.random()*65535/2)),c++,c>65535&&(c=1),Qm("BATCH_CLIENT_COUNTER",c),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})} function Lu(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 yu(a){var b=pn("il_payload_scraping");b=(b!==void 0?String(b):"")==="enable_il_payload_scraping";if(!F("yt.logging.transport.enableScrapingForTest"))if(b)du=[],E("yt.logging.transport.enableScrapingForTest",!0),E("yt.logging.transport.scrapedPayloadsForTesting",du),E("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),E("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), E("yt.logging.transport.scrapeClientEvent",!0);else return;b=F("yt.logging.transport.scrapedPayloadsForTesting");var c=F("yt.logging.transport.payloadToScrape"),d=F("yt.logging.transport.scrapeClientEvent");if(c&&c.length>=1)for(var e=0;e0){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 U(h),e.name="UnhandledWindowError",e.message=h,e.fileName= b,e.lineNumber=c,isNaN(d)?delete e.columnNumber:e.columnNumber=d);if(!T("wiz_enable_component_stack_propagation_killswitch")){a=e;var m;if((m=f)==null||!m.componentStack)if(m=a.ke)f||(f={}),f.componentStack=m}f&&dv(e,f);g?$u(e):av(e)}} function $u(a,b,c,d,e,f,g,h){f=f===void 0?{}:f;f.name=c||R("INNERTUBE_CONTEXT_CLIENT_NAME",1);f.version=d||R("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),T("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)),!(Tu>=5))){d=[];e=y(Xu);for(f=e.next();!f.done;f=e.next()){f=f.value;try{f()&&d.push(f())}catch(z){}}d=[].concat(A(Wu),A(d));var k=hc(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 r=0;r=500);r++);else if(a.hasOwnProperty("params")&&a.params){var t=a.params;if(typeof a.params==="object")for(r in t){if(t[r]){var w="params."+r,x=Vn(t[r]);c[w]=x;n+=w.length+x.length;if(n>500)break}}else c.params=Vn(t)}if(d.length)for(r=0;r=500);r++);navigator.vendor&&!c.hasOwnProperty("vendor")&&(c["device.vendor"]=navigator.vendor);r={message:e,name:f,lineNumber:m, fileName:k,stack:l,params:c,sampleWeight:1};c=Number(a.columnNumber);isNaN(c)||(r.lineNumber=r.lineNumber+":"+c);if(a.level==="IGNORED")a=0;else a:{a=On();c=y(a.Za);for(d=c.next();!d.done;d=c.next())if(d=d.value,r.message&&r.message.match(d.Th)){a=d.weight;break a}a=y(a.Ua);for(c=a.next();!c.done;c=a.next())if(c=c.value,c.callback(r)){a=c.weight;break a}a=1}r.sampleWeight=a;a=y(In);for(c=a.next();!c.done;c=a.next())if(c=c.value,c.Cc[r.name])for(e=y(c.Cc[r.name]),d=e.next();!d.done;d=e.next())if(f= d.value,d=r.message.match(f.regexp)){r.params["params.error.original"]=d[0];e=f.groups;f={};for(m=0;m0&&(a.headers=b);return a} ;function Gv(){return rg()||(ud||vd)&&qp("applewebkit")&&!qp("version")&&(!qp("safari")||qp("gsa/"))||td&&qp("version/")?!0:R("EOM_VISITOR_DATA")?!1:!0} ;function Hv(a){var b=a.docid||a.video_id||a.videoId||a.id;if(b)return b;b=a.raw_player_response;b||(a=a.player_response)&&(b=JSON.parse(a));return b&&b.videoDetails&&b.videoDetails.videoId||null} ;function Iv(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 xm)if(xm[d]==c.embeddedPlayerMode){b=xm[d];break b}}return b==="EMBEDDED_PLAYER_MODE_PFL"} ;function Jv(a){ib.call(this,a.message||a.description||a.name);this.isMissing=a instanceof Kv;this.isTimeout=a instanceof zv&&a.errorCode=="net.timeout";this.isCanceled=a instanceof Mi} v(Jv,ib);Jv.prototype.name="BiscottiError";function Kv(){ib.call(this,"Biscotti ID is missing from server")} v(Kv,ib);Kv.prototype.name="BiscottiMissingError";var xv={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Lv=null;function Mv(){if(T("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!Gv())return Error("User has not consented - not fetching biscotti id.");var a=R("PLAYER_VARS",{});if(Hg(a)=="1")return Error("Biscotti ID is not available in private embed mode");if(Iv(a))return Error("Biscotti id fetching has been disabled for pfl.")} function Jm(){var a=Mv();if(a!==void 0)return Ii(a);Lv||(Lv=wv().then(Nv).Jc(function(b){return Ov(2,b)})); return Lv} function Nv(a){a=a.xhr.responseText;if(a.lastIndexOf(")]}'",0)!=0)throw new Kv;a=JSON.parse(a.substr(4));if((a.type||1)>1)throw new Kv;a=a.id;Km(a);Lv=Bv(a);Pv(18E5,2);return a} function Ov(a,b){b=new Jv(b);Km("");Lv=Cv(b);a>0&&Pv(12E4,a-1);throw b;} function Pv(a,b){nn(function(){wv().then(Nv,function(c){return Ov(b,c)}).Jc(Bi)},a)} function Qv(){try{var a=F("yt.ads.biscotti.getId_");return a?a():Jm()}catch(b){return Ii(b)}} ;var Pb=oa(["data-"]);function Rv(a){a&&(a.dataset?a.dataset[Sv()]="true":Qb(a))} function Tv(a){return a?a.dataset?a.dataset[Sv()]:a.getAttribute("data-loaded"):null} var Uv={};function Sv(){return Uv.loaded||(Uv.loaded="loaded".replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()}))} ;function Vv(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||Jg(b);this.assets=a.assets||{};this.attrs=a.attrs||Jg(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||{}} Vv.prototype.clone=function(){var a=new Vv,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];La(c)=="object"?a[b]=Jg(c):a[b]=c}return a};var Wv=["att/get"],Xv=["share/get_share_panel"],Yv=["share/get_web_player_share_panel"],Zv=["feedback"],$v=["notification/modify_channel_preference"],aw=["browse/edit_playlist"],bw=["subscription/subscribe"],cw=["subscription/unsubscribe"];var dw=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};E("yt.msgs_",dw);function ew(a){Lm(dw,arguments)} ;function fw(a,b,c){gw(a,b,c===void 0?null:c)} function hw(a){a=iw(a);var b=document.getElementById(a);b&&(zt(a),b.parentNode.removeChild(b))} function jw(a,b){a&&b&&(a=""+Oa(b),(a=kw[a])&&wt(a))} function gw(a,b,c){c=c===void 0?null:c;var d=iw(a),e=document.getElementById(d),f=e&&Tv(e),g=e&&!f;f?b&&b():(b&&(f=ut(d,b),b=""+Oa(b),kw[b]=f),g||(e=lw(a,d,function(){Tv(e)||(Rv(e),xt(d),nn(function(){zt(d)},0))},c)))} function lw(a,b,c,d){d=d===void 0?null:d;var e=Qg("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);Nb(e,nm(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e} function iw(a){var b=document.createElement("a");Fb(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+mc(a)} var kw={};function mw(a){var b=nw(a),c=document.getElementById(b),d=c&&Tv(c);d||c&&!d||(c=ow(a,b,function(){if(!Tv(c)){Rv(c);xt(b);var e=Va(zt,b);nn(e,0)}}))} function ow(a,b,c){var d=document.createElement("link");d.id=b;d.onload=function(){c&&setTimeout(c,0)}; a=nm(a);Tb(d,a);(document.getElementsByTagName("head")[0]||document.body).appendChild(d);return d} function nw(a){var b=Qg("A");Fb(b,new xb(a));a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"css-"+mc(a)} ;function pw(a){var b=C.apply(1,arguments);if(!qw(a)||b.some(function(d){return!qw(d)}))throw Error("Only objects may be merged."); b=y(b);for(var c=b.next();!c.done;c=b.next())rw(a,c.value)} function rw(a,b){for(var c in b)if(qw(b[c])){if(c in a&&!qw(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});rw(a[c],b[c])}else if(sw(b[c])){if(c in a&&!sw(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);tw(a[c],b[c])}else a[c]=b[c];return a} function tw(a,b){b=y(b);for(var c=b.next();!c.done;c=b.next())c=c.value,qw(c)?a.push(rw({},c)):sw(c)?a.push(tw([],c)):a.push(c);return a} function qw(a){return typeof a==="object"&&!Array.isArray(a)} function sw(a){return typeof a==="object"&&Array.isArray(a)} ;var uw="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" "); function vw(a,b){var c=c===void 0?!0:c;var d=R("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=pc(window.location.href);e&&d.push(e);e=pc(a);if(Ub(d,e)>=0||!e&&a.lastIndexOf("/",0)==0)if(d=document.createElement("a"),Fb(d,a),a=d.href)if(a=rc(a),a=sc(a))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:tv()},b)),f){var f=parseInt(f,10);isFinite(f)&&f>0&&ww(a,b,f)}else ww(a,b)} function ww(a,b,c){a=xw(a);b=b?vc(b):"";c=c||5;Gv()&&bo(a,b,c)} function xw(a){for(var b=y(uw),c=b.next();!c.done;c=b.next())a=Ac(a,c.value);return"ST-"+mc(a).toString(36)} ;function yw(a){gr.call(this,1,arguments);this.csn=a} v(yw,gr);var pr=new hr("screen-created",yw),zw=[],Aw=0,Bw=new Map,Cw=new Map,Dw=new Map; function Ew(a,b,c,d,e){e=e===void 0?!1:e;for(var f=Fw({cttAuthInfo:vv(b)||void 0},b),g=y(d),h=g.next();!h.done;h=g.next()){h=h.value;var k=h.getAsJson();(Fg(k)||!k.trackingParams&&!k.veType)&&av(Error("Child VE logged with no data"));if(T("no_client_ve_attach_unless_shown")){var l=Gw(h,b);if(k.veType&&!Cw.has(l)&&!Dw.has(l)&&!e){if(!T("il_attach_cache_limit")||Bw.size<1E3){Bw.set(l,[a,b,c,h]);return}T("il_attach_cache_limit")&&Bw.size>1E3&&av(new U("IL Attach cache exceeded limit"))}h=Gw(c,b);Bw.has(h)? Hw(c,b):Dw.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:Xb(d,function(m){return m.getAsJson()})}; b==="UNDEFINED_CSN"?Iw("visualElementAttached",f,c):a?Ru("visualElementAttached",c,a,f):kp("visualElementAttached",c,f)} function Iw(a,b,c){zw.push({We:a,payload:c,Oh:void 0,options:b});Aw||(Aw=qr())} function rr(a){if(zw){for(var b=y(zw),c=b.next();!c.done;c=b.next())c=c.value,c.payload&&(c.payload.csn=a.csn,kp(c.We,c.payload,c.options));zw.length=0}Aw=0} function Gw(a,b){return""+a.getAsJson().veType+a.getAsJson().veCounter+b} function Hw(a,b){a=Gw(a,b);Bw.has(a)&&(b=Bw.get(a)||[],Ew(b[0],b[1],b[2],[b[3]],!0),Bw.delete(a))} function Fw(a,b){T("log_sequence_info_on_gel_web")&&(a.sequenceGroup=b);return a} ;function Jw(){try{return!!self.localStorage}catch(a){return!1}} ;function Kw(a){a=a.match(/(.*)::.*::.*/);if(a!==null)return a[1]} function Lw(a){if(Jw()){var b=Object.keys(window.localStorage);b=y(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=Kw(c);d===void 0||a.includes(d)||self.localStorage.removeItem(c)}}} function Mw(){if(!Jw())return!1;var a=uo(),b=Object.keys(window.localStorage);b=y(b);for(var c=b.next();!c.done;c=b.next())if(c=Kw(c.value),c!==void 0&&c!==a)return!0;return!1} ;function Nw(){var a=!1;try{a=!!window.sessionStorage.getItem("session_logininfo")}catch(b){a=!0}return(R("INNERTUBE_CLIENT_NAME")==="WEB"||R("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&a} function Ow(){var a=a===void 0?!0:a;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");Qm("LOGIN_INFO","");a&&window.sessionStorage.setItem("from_switch_account","1");a=!0;a=a===void 0?!1:a;var b,c=Pw;c||(c=document.querySelector("#persist_identity"));if(b=c){var d=b.src?(new URL(b.src)).origin:"*";if(a){var e;(e=b.contentWindow)==null||e.postMessage({action:"clear"},d)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var f=window.sessionStorage.getItem("session_logininfo");if(f){var g;(g=b.contentWindow)==null||g.postMessage({loginInfo:f},d)}}}}catch(h){}} function Qw(a){if(a)if(a.startsWith("https://accounts.google.com/AddSession"))Ow();else if(a.startsWith("https://accounts.google.com/ServiceLogin"))Ow();else{var b;if(b=a.startsWith("https://myaccount.google.com"))b=(a instanceof Jk?a.clone():new Jk(a)).h.endsWith("/youtubeoptions");b&&Ow()}if(R("LOGGED_IN",!0)&&Nw()){b=R("VALID_SESSION_TEMPDATA_DOMAINS",[]);var c=pc(window.location.href);c&&b.push(c);c=pc(a);Ub(b,c)>=0||!c&&a.lastIndexOf("/",0)==0?(b=rc(a),(b=sc(b))?(b=xw(b),b=(b=co(b)||null)?cn(b): {}):b=null):b=null;b==null&&(b={});c=b;var d=void 0;Nw()?(d||(d=R("LOGIN_INFO")),d?(c.session_logininfo=d,c=!0):c=!1):c=!1;c&&vw(a,b)}} var Pw=null;function Rw(a,b,c){b=b===void 0?{}:b;c=c===void 0?!1:c;var d=R("EVENT_ID");d&&(b.ei||(b.ei=d));b&&vw(a,b);if(c)return!1;Qw(a);var e=e===void 0?{}:e;var f=f===void 0?"":f;var g=g===void 0?window:g;b=wc(a,e);Qw(b);a=void 0;a=a===void 0?Bb:a;a:if(f=b+f,a=a===void 0?Bb:a,!(f instanceof xb)){for(b=0;b6E4&&delete Ax[e];a&&(a.h=0)},5E3)); return c.count>5?(c.count===6&&Math.random()*1E5<1&&(c=new U("CSI data exceeded logging limit with key",b.split("_")),b.indexOf("plev")>=0||av(c)),!0):!1} ;var Ex=window;function Fx(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}} function Gx(){var a;if(T("csi_use_performance_navigation_timing")){var b,c,d,e=X==null?void 0:(a=X.getEntriesByType)==null?void 0:(b=a.call(X,"navigation"))==null?void 0:(c=b[0])==null?void 0:(d=c.toJSON)==null?void 0:d.call(c);e?(e.requestStart=Hx(e.requestStart),e.responseEnd=Hx(e.responseEnd),e.redirectStart=Hx(e.redirectStart),e.redirectEnd=Hx(e.redirectEnd),e.domainLookupEnd=Hx(e.domainLookupEnd),e.connectStart=Hx(e.connectStart),e.connectEnd=Hx(e.connectEnd),e.responseStart=Hx(e.responseStart), e.secureConnectionStart=Hx(e.secureConnectionStart),e.domainLookupStart=Hx(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=X.timing}else a=T("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(X.timing)):X.timing;return a} function Hx(a){return Math.round(Ix()+a)} function Ix(){return(T("csi_use_time_origin")||T("csi_use_time_origin_tvhtml5"))&&X.timeOrigin?Math.floor(X.timeOrigin):X.timing.navigationStart} var X=Ex.performance||Ex.mozPerformance||Ex.msPerformance||Ex.webkitPerformance||new Fx;var Jx=!1,Kx=!1,Lx={'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"};Ua(X.clearResourceTimings||X.webkitClearResourceTimings||X.mozClearResourceTimings||X.msClearResourceTimings||X.oClearResourceTimings||Bi,X);function Mx(a,b){if(!T("web_csi_action_sampling_enabled")||!ox(b).actionDisabled){var c=wx(b||"");pw(c.info,a);a.loadType&&(c=a.loadType,qx(b).loadType=c);pw(tx(b),a);c=ux(b);b=ox(b).cttAuthInfo;Cx().info(a,c,b)}} function Nx(){var a,b,c,d;return((d=Kt().resolve(Et(Uq))==null?void 0:(a=Vq())==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 Ox(a,b,c){if(!T("web_csi_action_sampling_enabled")||!ox(c).actionDisabled){var d=ux(c),e;if(e=T("web_csi_debug_sample_enabled")&&d){(Kt().resolve(Et(Uq))==null?0:Vq())&&!Kx&&(Kx=!0,Ox("gcfl",V(),c));var f,g,h;e=(Kt().resolve(Et(Uq))==null?void 0:(f=Vq())==null?void 0:(g=f.loggingHotConfig)==null?void 0:(h=g.csiConfig)==null?void 0:h.debugSampleWeight)||0;if(f=e!==0)b:{f=Nx();if(f.length>0)for(g=0;gc.duration?d:c},{duration:0}))&&b.startTime>0&&b.responseEnd>0&&(Ox("wffs",Hx(b.startTime)),Ox("wffe",Hx(b.responseEnd)))} function Ux(a){var b=Vx("aft",a);if(b)return b;b=R((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=b.length,d=0;d0&&Mx(c);c={isNavigation:!0,actionType:xx[R("TIMING_ACTION")]||"LATENCY_ACTION_UNKNOWN"};var d=R("PREVIOUS_ACTION");d&&(c.previousAction=xx[d]||"LATENCY_ACTION_UNKNOWN");if(d=R("CLIENT_PROTOCOL"))c.httpProtocol=d;if(d=R("CLIENT_TRANSPORT"))c.transportProtocol=d;(d=tv())&&d!=="UNDEFINED_CSN"&&(c.clientScreenNonce=d);d=Qx();if(d===1||d===-1)c.isVisible=!0;qx();px(); c.loadType="cold";d=px();var e=Gx(),f=Ix(),g=R("CSI_START_TIMESTAMP_MILLIS",0);g>0&&!T("embeds_web_enable_csi_start_override_killswitch")&&(f=g);f&&(Ox("srt",e.responseStart),d.prerender!==1&&Ox("_start",f,void 0));d=Wx();d>0&&Ox("fpt",d);d=Gx();d.isPerformanceNavigationTiming&&Mx({performanceNavigationTiming:!0},void 0);Ox("nreqs",d.requestStart,void 0);Ox("nress",d.responseStart,void 0);Ox("nrese",d.responseEnd,void 0);d.redirectEnd-d.redirectStart>0&&(Ox("nrs",d.redirectStart,void 0),Ox("nre", d.redirectEnd,void 0));d.domainLookupEnd-d.domainLookupStart>0&&(Ox("ndnss",d.domainLookupStart,void 0),Ox("ndnse",d.domainLookupEnd,void 0));d.connectEnd-d.connectStart>0&&(Ox("ntcps",d.connectStart,void 0),Ox("ntcpe",d.connectEnd,void 0));d.secureConnectionStart>=Ix()&&d.connectEnd-d.secureConnectionStart>0&&(Ox("nstcps",d.secureConnectionStart,void 0),Ox("ntcpe",d.connectEnd,void 0));X&&"getEntriesByType"in X&&Tx();d=[];if(document.querySelector&&X&&X.getEntriesByName)for(var h in Lx)Lx.hasOwnProperty(h)&& (e=Lx[h],Sx(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});Mx(c);c=sx();c.preLoggedGelInfos||(c.preLoggedGelInfos=[]);h=c.preLoggedGelInfos;c=tx();d=void 0;for(e=0;e-1&&(delete xh["@type"],pa=xh);x&&a.h.has(x)&&a.h.delete(x);((Us=b.config)==null?0:Us.cf)&&ay(b.config.cf);if(pa||(Vs=a.i)==null||!Vs.Ch(b.input,b.Ga)){ha.B(15);break}return ha.yield(a.i.Ph(b.input,b.Ga),16);case 16:pa=ha.i;case 15:return ry(a, pa,b),((Ws=b.config)==null?0:Ws.Ye)&&ay(b.config.Ye),d(),ha.return(pa||void 0)}})} function my(a,b){a:{a=a.u;var c,d=(c=iu(b,wm))==null?void 0:c.signal;if(d&&a.dc&&(c=a.dc[d])){var e=c();break a}var f;if((c=(f=iu(b,tm))==null?void 0:f.request)&&a.le&&(f=a.le[c])){e=f();break a}for(e in b)if(a.Nc[e]&&(b=a.Nc[e])){e=b();break a}e=void 0}if(e!==void 0)return Promise.resolve(e)} function oy(a,b){var c,d,e,f;return B(function(g){if(g.h==1){e=(c=a)==null?void 0:(d=c.Qb)==null?void 0:d.sessionIndex;var h=g.yield;var k=$n(0,{sessionIndex:e});if(!(k instanceof Di)){var l=new Di(Bi);Ei(l,2,k);k=l}return h.call(g,k,2)}f=g.i;return g.return(Promise.resolve(Object.assign({},cx(b),f)))})} function ny(a,b){var c;a=a==null?void 0:(c=a.Qb)==null?void 0:c.sessionIndex;c=$n(0,{sessionIndex:a});return Object.assign({},cx(b),c)} ;var sy=new Ct("INNERTUBE_TRANSPORT_TOKEN");function ty(){} v(ty,kx);ty.prototype.j=function(){return bw}; ty.prototype.i=function(a){return iu(a,Hm)||void 0}; ty.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)}; da.Object.defineProperties(ty.prototype,{o:{configurable:!0,enumerable:!0,get:function(){return!0}}});function uy(){} v(uy,kx);uy.prototype.j=function(){return cw}; uy.prototype.i=function(a){return iu(a,Gm)||void 0}; uy.prototype.h=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)}; da.Object.defineProperties(uy.prototype,{o:{configurable:!0,enumerable:!0,get:function(){return!0}}});var vy=new Ct("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");function wy(a){this.H=a} v(wy,kx);wy.prototype.j=function(){return Xv}; wy.prototype.i=function(a){return iu(a,Am)||iu(a,Bm)||iu(a,zm)}; wy.prototype.h=function(a,b){b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);if(b.clientParamIdentifier){var c;if((c=this.H)==null?0:c.h(b.clientParamIdentifier))a.clientParams=this.H.i(b.clientParamIdentifier)}}; wy[Bt]=[vy];function xy(){} v(xy,kx);xy.prototype.j=function(){return Zv}; xy.prototype.i=function(a){return iu(a,ym)||void 0}; xy.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))}; da.Object.defineProperties(xy.prototype,{o:{configurable:!0,enumerable:!0,get:function(){return!0}}});function yy(){} v(yy,kx);yy.prototype.j=function(){return $v}; yy.prototype.i=function(a){return iu(a,Em)||void 0}; yy.prototype.h=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};function zy(){} v(zy,kx);zy.prototype.j=function(){return aw}; zy.prototype.i=function(a){return iu(a,Dm)||void 0}; zy.prototype.h=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};function Ay(){} v(Ay,kx);Ay.prototype.j=function(){return Yv}; Ay.prototype.i=function(a){return iu(a,Cm)}; Ay.prototype.h=function(a,b,c){c=c===void 0?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};var By=new Ct("FETCH_FN_TOKEN"),Cy=new Ct("PARSE_FN_TOKEN"),Dy=new Ct("WINDOW_REQUEST_TOKEN");function Ey(a,b){var c=C.apply(2,arguments);a=a===void 0?0:a;U.call(this,b,c);this.errorType=a;Object.setPrototypeOf(this,this.constructor.prototype)} v(Ey,U);var Fy=new Ct("NETWORK_SLI_TOKEN");function Gy(a,b,c,d){this.h=a;this.i=b;this.j=c;this.o=d} Gy.prototype.fetch=function(a,b,c){var d=this,e,f,g;return B(function(h){e=Hy(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){av(k); if((c==null?0:c.ue)&&k instanceof Ey&&k.errorType===1)return Promise.reject(k)}))})}; function Hy(a,b,c){if(a.h){var d=qc(Ac(b,"key"))||"/UNKNOWN_PATH";a.h.start(d)}d=c;T("wug_networking_gzip_request")&&(d=Or(c));var e;return new ((e=a.o)!=null?e:window.Request)(b,d)} Gy.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.Ke)&&a.ok)return Wf(b.Ke,e);e=e.replace(")]}'","");if((b==null?0:b.ue)&&e)try{var f=d(e)}catch(h){throw new Ey(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.Jh(),c=c.then(function(e){av(new U("Error: API fetch failed",a.status,a.url,e));return Object.assign({},e,{errorMetadata:{status:a.status}})})); return c}; Gy[Bt]=[Et(Fy),Et(By),Et(Cy),Et(Dy)];var Iy=new Ct("NETWORK_MANAGER_TOKEN");var Jy;function Ky(a){var b=new Cj;if(a.interpreterJavascript){var c=lm(a.interpreterJavascript);c=Lb(c).toString();var d=new Aj;Tf(d,6,c);Of(b,Aj,1,d,ke)}else a.interpreterUrl&&(c=mm(a.interpreterUrl),c=rb(c).toString(),d=new Bj,Tf(d,4,c),Of(b,Bj,2,d,ke));a.interpreterHash&&Uf(b,3,a.interpreterHash);a.program&&Uf(b,4,a.program);a.globalName&&Uf(b,5,a.globalName);a.clientExperimentsStateBlob&&Uf(b,7,a.clientExperimentsStateBlob);return b} function Ly(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 Gc(){if(T("bg_st_hr"))return"havuokmhhs-0";var a,b=((a=performance)==null?void 0:a.timeOrigin)||0;return"havuokmhhs-"+Math.floor(b)} function My(a){this.h=a} My.prototype.bindInnertubeChallengeFetcher=function(a){this.h.bicf(a)}; My.prototype.registerChallengeFetchedCallback=function(a){this.h.bcr(a)}; My.prototype.getLatestChallengeResponse=function(){return this.h.blc()}; function Ny(){return new Promise(function(a){var b=window.top;b.ntpevasrs!==void 0?a(new My(b.ntpevasrs)):(b.ntpqfbel===void 0&&(b.ntpqfbel=[]),b.ntpqfbel.push(function(c){a(new My(c))}))})} ;var Oy=[],Py=!1;function Qy(){if(Gv()){var a=R("PLAYER_VARS",{});if(Hg(a)!="1"&&!Iv(a)){var b=function(){Py=!0;"google_ad_status"in window?Qm("DCLKSTAT",1):Qm("DCLKSTAT",2)}; try{fw("//static.doubleclick.net/instream/ad_status.js",b)}catch(c){}Oy.push(ek.pa(function(){if(!(Py||"google_ad_status"in window)){try{jw("//static.doubleclick.net/instream/ad_status.js",b)}catch(c){}Py=!0;Qm("DCLKSTAT",3)}},5E3))}}} function Ry(){var a=Number(R("DCLKSTAT",0));return isNaN(a)?0:a} ;function Y(a){this.h=a} [new Y("b.f_"),new Y("j.s_"),new Y("r.s_"),new Y("e.h_"),new Y("i.s_"),new Y("s.t_"),new Y("p.h_"),new Y("s.i_"),new Y("f.i_"),new Y("a.b_"),new Y("a.o_"),new Y("g.o_"),new Y("p.i_"),new Y("p.m_"),new Y("n.k_"),new Y("i.f_"),new Y("a.s_"),new Y("m.c_"),new Y("n.h_"),new Y("o.p_"),new Y("m.p_"),new Y("o.a_"),new Y("d.p_")].reduce(function(a,b){a[b.h]=b;return a},{});function Sy(a,b,c){var d=this;this.network=a;this.options=b;this.o=c;this.h=null;if(b.ki){var e=new Gj;this.h=e.promise;D.ytAtRC&&ek.Sa(function(){var f,g;return B(function(h){if(h.h==1){if(!D.ytAtRC)return h.return();f=Ty(null);return h.yield(d.ib(f),2)}g=h.i;D.ytAtRC&&D.ytAtRC(JSON.stringify(g));h.h=0})},2); Ny().then(function(f){var g,h,k,l;return B(function(m){if(m.h==1)return f.bindInnertubeChallengeFetcher(function(n){return d.ib(Ty(n))}),m.yield(Fc(),2); g=m.i;h=f.getLatestChallengeResponse();k=h.challenge;if(!k)throw Error("BGE_MACIL");l={challenge:k,gb:Ly(k),vm:g,bgChallenge:new Cj};e.resolve(l);f.registerChallengeFetchedCallback(function(n){n=n.challenge;if(!n)throw Error("BGE_MACR");n={challenge:n,gb:Ly(n),vm:g,bgChallenge:new Cj};d.h=Promise.resolve(n)}); m.h=0})})}else b.preload&&Uy(this,new Promise(function(f){wo(function(){f(Vy(d))},0)}))} Sy.prototype.j=function(){var a=this;return B(function(b){return b.h==1?b.yield(Promise.race([a.h,null]),2):b.return(!!b.i)})}; Sy.prototype.i=function(a,b,c){var d=this,e,f,g;return B(function(h){d.h===null&&Uy(d,Vy(d));e=!1;f={};g=function(){var k,l,m;return B(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.gb&&(f.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");n.B(3);break}l=Object.assign({},{c:k.challenge,e:a},b);wa(n,4);e=!0;if(T("attbs")&&!T("attmusi")){m=k.vm.ld({xb:l});n.B(6);break}return n.yield(k.vm.snapshot({xb:l}),7);case 7:m=n.i;case 6:m?f.webResponse= m:f.error="ATTESTATION_ERROR_VM_NO_RESPONSE";xa(n,3);break;case 4:ya(n),f.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(a==="ENGAGEMENT_TYPE_PLAYBACK"){var r=k.gb,t={};r.c6a&&(t.reportingStatus=String(Number(r.c)^Ry()));r.c6b&&(t.broadSpectrumDetectionResult=String(Number(r.c)^Number(R("CATSTAT",0))));f.adblockReporting=t}return n.return(f)}})}; return h.return(Promise.race([g(),Wy(c,function(){var k=Object.assign({},f);e&&(k.error="ATTESTATION_ERROR_VM_TIMEOUT");return k})]))})}; function Ty(a){var b={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};a&&(b.interpreterHash=a);return b} function Vy(a,b){b=b===void 0?0:b;var c,d,e,f,g,h,k,l,m,n,r,t;return B(function(w){switch(w.h){case 1:c=Ty(Lj().h);if(T("att_fet_ks"))return wa(w,7),w.yield(a.ib(c),9);wa(w,4);return w.yield(Xy(a,c),6);case 6:g=w.i;e=g.Te;f=g.Ue;d=g;xa(w,3);break;case 4:return ya(w),av(Error("Failed to fetch attestation challenge after "+(b+" attempts; not retrying for 24h."))),Yy(a,864E5),w.return({challenge:"",gb:{},vm:void 0,bgChallenge:void 0});case 9:d=w.i;if(!d)throw Error("Fetching Attestation challenge returned falsy"); if(!d.challenge)throw Error("Missing Attestation challenge");e=d.challenge;f=Ly(e);if("c1a"in f&&(!d.bgChallenge||!d.bgChallenge.program))throw Error("Expected bg challenge but missing.");xa(w,3);break;case 7:h=ya(w);av(h);b++;if(b>=5)return av(Error("Failed to fetch attestation challenge after "+(b+" attempts; not retrying for 24h."))),Yy(a,864E5),w.return({challenge:"",gb:{},vm:void 0,bgChallenge:void 0});k=1E3*Math.pow(2,b-1)+Math.random()*1E3;return w.return(new Promise(function(x){wo(function(){x(Vy(a, b))},k)})); case 3:l=Number(f.t)||7200;Yy(a,l*1E3);m=void 0;if(!("c1a"in f&&d.bgChallenge)){w.B(10);break}n=Ky(d.bgChallenge);wa(w,11);return w.yield(Mj(Lj(),n),13);case 13:xa(w,12);break;case 11:return r=ya(w),av(r),w.return({challenge:e,gb:f,vm:m,bgChallenge:n});case 12:return wa(w,14),m=new Ij({challenge:n,Ed:{Da:"aGIf"}}),w.yield(m.gd,16);case 16:xa(w,10);break;case 14:t=ya(w),av(t),m=void 0;case 10:return w.return({challenge:e,gb:f,vm:m,bgChallenge:n})}})} Sy.prototype.ib=function(a){var b=this,c;return B(function(d){c=b.o;if(!c||c.ta())return d.return(b.network.ib(a));ey("att_pna");return d.return(new Promise(function(e){ii(c,"publicytnetworkstatus-online",function(){b.network.ib(a).then(e)})}))})}; function Zy(a){if(!a)throw Error("Fetching Attestation challenge returned falsy");if(!a.challenge)throw Error("Missing Attestation challenge");var b=a.challenge,c=Ly(b);if("c1a"in c&&(!a.bgChallenge||!a.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},a,{Te:b,Ue:c})} function Xy(a,b){var c,d,e,f,g;return B(function(h){switch(h.h){case 1:c=void 0,d=0,e={};case 2:if(!(d<5)){h.B(4);break}if(!(d>0)){h.B(5);break}e.sd=1E3*Math.pow(2,d-1)+Math.random()*1E3;return h.yield(new Promise(function(k){return function(l){wo(function(){l(void 0)},k.sd)}}(e)),5); case 5:return wa(h,7),h.yield(a.ib(b),9);case 9:return f=h.i,h.return(Zy(f));case 7:c=g=ya(h),g instanceof Error&&av(g);case 8:d++;e={sd:void 0};h.B(2);break;case 4:throw c;}})} function Uy(a,b){a.h=b} function $y(a){var b,c,d;return B(function(e){if(e.h==1)return e.yield(Promise.race([a.h,null]),2);b=e.i;var f=Vy(a);a.h=f;(c=b)==null||(d=c.vm)==null||d.dispose();e.h=0})} function Yy(a,b){function c(){var e;return B(function(f){e=d-Date.now();return e<1E3?f.yield($y(a),0):(wo(c,Math.min(e,6E4)),f.B(0))})} var d=Date.now()+b;c()} function Wy(a,b){return new Promise(function(c){wo(function(){c(b())},a)})} ;function az(a){this.h=a} az.prototype.ib=function(a){ey("att_fsr");return qy(this.h,a).then(function(b){ey("att_frr");return b})};function bz(){var a,b,c;return B(function(d){if(d.h==1)return a=Kt().resolve(sy),a?d.yield(ly(a),2):(av(Error("InnertubeTransportService unavailable in fetchDatasyncIds")),d.return(void 0));if(b=d.i){if(b.errorMetadata)return av(Error("Datasync IDs fetch responded with "+b.errorMetadata.status+": "+b.error)),d.return(void 0);c=b.Fh;return d.return(c)}av(Error("Network request to get Datasync IDs failed."));return d.return(void 0)})} ;function cz(){} v(cz,kx);cz.prototype.j=function(){return Zv}; cz.prototype.i=function(a){return iu(a,Fm)}; cz.prototype.h=function(a,b){b.undoToken&&(a.feedbackTokens=[b.undoToken]);b.isUndoTokenUnencrypted&&(a.isFeedbackTokenUnencrypted=b.isUndoTokenUnencrypted)}; da.Object.defineProperties(cz.prototype,{o:{configurable:!0,enumerable:!0,get:function(){return!0}}});function dz(){var a=a===void 0?cv:a;var b=b===void 0?{}:b;E("yt.logging.errors.log",$u);Zu();Pn(On(),b);window.onerror=a;Ui=bv;window.addEventListener("unhandledrejection",function(c){if(c.reason instanceof Error){var d=c.reason;dv(d,{source:"unhandledrejection"});d.name==="AbortError"&&(d.level="WARNING")}bv(c.reason);c.preventDefault()})} ;function ez(){var a;return(a=R("WEB_PLAYER_CONTEXT_CONFIGS"))==null?void 0:a.WEB_PLAYER_CONTEXT_CONFIG_ID_EMBEDDED_PLAYER} ;var fz=D.caches,gz;function hz(a){var b=a.indexOf(":");return b===-1?{Hd:a}:{Hd:a.substring(0,b),datasyncId:a.substring(b+1)}} function iz(){return B(function(a){if(gz!==void 0)return a.return(gz);gz=new Promise(function(b){var c;return B(function(d){switch(d.h){case 1:return wa(d,2),d.yield(fz.open("test-only"),4);case 4:return d.yield(fz.delete("test-only"),5);case 5:xa(d,3);break;case 2:if(c=ya(d),c instanceof Error&&c.name==="SecurityError")return b(!1),d.return();case 3:b("caches"in window),d.h=0}})}); return a.return(gz)})} function jz(a){var b,c,d,e,f,g,h;B(function(k){if(k.h==1)return k.yield(iz(),2);if(k.h!=3){if(!k.i)return k.return(!1);b=[];return k.yield(fz.keys(),3)}c=k.i;d=y(c);for(e=d.next();!e.done;e=d.next())f=e.value,g=hz(f),h=g.datasyncId,!h||a.includes(h)||b.push(fz.delete(f));return k.return(Promise.all(b).then(function(l){return l.some(function(m){return m})}))})} function kz(){var a,b,c,d,e,f,g;return B(function(h){if(h.h==1)return h.yield(iz(),2);if(h.h!=3){if(!h.i)return h.return(!1);a=uo("cache contains other");return h.yield(fz.keys(),3)}b=h.i;c=y(b);for(d=c.next();!d.done;d=c.next())if(e=d.value,f=hz(e),(g=f.datasyncId)&&g!==a)return h.return(!0);return h.return(!1)})} ;function lz(){try{return!!self.sessionStorage}catch(a){return!1}} ;function mz(a){a=a.match(/(.*)::.*::.*/);if(a!==null)return a[1]} function nz(a){if(lz()){var b=Object.keys(window.sessionStorage);b=y(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=mz(c);d===void 0||a.includes(d)||self.sessionStorage.removeItem(c)}}} function oz(){if(!lz())return!1;var a=uo(),b=Object.keys(window.sessionStorage);b=y(b);for(var c=b.next();!c.done;c=b.next())if(c=mz(c.value),c!==void 0&&c!==a)return!0;return!1} ;function pz(){bz().then(function(a){a&&(zq(a),jz(a),Lw(a),nz(a))})} function qz(){var a=new Is;ek.pa(function(){var b,c,d,e,f;return B(function(g){switch(g.h){case 1:if(T("ytidb_clear_optimizations_killswitch")){g.B(2);break}b=uo("clear");if(b.startsWith("V")&&b.endsWith("||")){var h=[b];zq(h);jz(h);Lw(h);nz(h);return g.return()}c=Mw();d=oz();return g.yield(kz(),3);case 3:return e=g.i,g.yield(Aq(),4);case 4:if(f=g.i,!(c||d||e||f))return g.return();case 2:a.ta()?pz():ii(a,"publicytnetworkstatus-online",pz),g.h=0}})})} ;var rz=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];function sz(){this.state=1;this.vm=null;this.h=void 0} p=sz.prototype;p.initialize=function(a,b,c,d){this.h=d;if(a.program){var e;d=(e=a.interpreterUrl)!=null?e:null;if(a.interpreterSafeScript)e=lm(a.interpreterSafeScript);else{var f;e=(f=a.interpreterScript)!=null?f:null}a.interpreterSafeUrl&&(d=mm(a.interpreterSafeUrl).toString());tz(this,e,d,a.program,b,c)}else av(Error("BL:CIP"))}; function tz(a,b,c,d,e,f){var g=g===void 0?"trayride":g;c?(a.state=2,fw(c,function(){window[g]?uz(a,d,g,e):(a.state=3,hw(c),av(new U("BL:ULB",""+c)))},f)):b?(f=Qg("SCRIPT"),b instanceof Jb?(f.textContent=Lb(b),Mb(f)):f.textContent=b,f.nonce=Ib(document),document.head.appendChild(f),document.head.removeChild(f),window[g]?uz(a,d,g,e):(a.state=4,av(new U("BL:ULBJ")))):av(new U("BL:ULV"))} p.isLoading=function(){return this.state===2}; function uz(a,b,c,d){a.state=5;var e=!!a.h&&rz.includes(pc(a.h)||"");try{var f=new Ij({program:b,globalName:c,Ed:{disable:!T("att_web_record_metrics")||!T("att_skip_metrics_for_cookieless_domains_ks")&&e,Da:"aGIf"}});f.gd.then(function(){a.state=6;d&&d(b)}); a.ed(f)}catch(g){a.state=7,g instanceof Error&&av(g)}} p.invoke=function(a){a=a===void 0?{}:a;return this.od()?this.Ud({xb:a}):null}; p.dispose=function(){this.ed(null);this.state=8}; p.od=function(){return!!this.vm}; p.Ud=function(a){return this.vm.ld(a)}; p.ed=function(a){Cc(this.vm);this.vm=a};function vz(){var a=F("yt.abuse.playerAttLoader");return a&&["bgvma","bgvmb","bgvmc"].every(function(b){return b in a})?a:null} ;function wz(){sz.apply(this,arguments)} v(wz,sz);wz.prototype.ed=function(a){var b;(b=vz())==null||b.bgvma();a?(b={bgvma:a.dispose.bind(a),bgvmb:a.snapshot.bind(a),bgvmc:a.ld.bind(a)},E("yt.abuse.playerAttLoader",b),E("yt.abuse.playerAttLoaderRun",function(c){return a.snapshot(c)})):(E("yt.abuse.playerAttLoader",null),E("yt.abuse.playerAttLoaderRun",null))}; wz.prototype.od=function(){return!!vz()}; wz.prototype.Ud=function(a){return vz().bgvmc(a)};var xz=new Ct("AUTH_SERVICE_TOKEN");function yz(a){Ut.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.H},{from:"document_disposed_preventable",to:"document_active",action:this.i},{from:"document_disposed",to:"flush_logs", action:this.H},{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})})} v(yz,Ut);yz.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")}; yz.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"))}; yz.prototype.H=function(a,b){a(b==null?void 0:b.event);this.transition("document_active")}; yz.prototype.i=function(){this.h=new Map};function zz(a){Ut.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.H},{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.H},{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.H},{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})}); T("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})}))} v(zz,Ut);zz.prototype.i=function(a,b){a(b==null?void 0:b.event);T("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")}; zz.prototype.h=function(a,b){a(b==null?void 0:b.event);T("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")}; zz.prototype.u=function(a,b){a(b==null?void 0:b.event)}; zz.prototype.H=function(a,b){a(b==null?void 0:b.event)};function Az(){this.o=new yz;this.u=new zz} Az.prototype.install=function(){var a=C.apply(0,arguments),b=this;a.forEach(function(c){b.o.install(c)}); a.forEach(function(c){b.u.install(c)})};function Bz(){this.o=[];this.i=new Map;this.h=new Map;this.j=new Set} Bz.prototype.clickCommand=function(a,b,c){var d=a.clickTrackingParams;c=c===void 0?0:c;if(d)if(c=tv(c===void 0?0:c)){a=this.client;d=new mv({trackingParams:d});var e=void 0;if(T("no_client_ve_attach_unless_shown")){var f=Gw(d,c);Cw.set(f,!0);Hw(d,c)}e=e||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";f=Fw({cttAuthInfo:vv(c)||void 0},c);d={csn:c,ve:d.getAsJson(),gestureType:e};b&&(d.clientData=b);c==="UNDEFINED_CSN"?Iw("visualElementGestured",f,d):a?Ru("visualElementGestured",d,a,f):kp("visualElementGestured", d,f);b=!0}else b=!1;else b=!1;return b}; Bz.prototype.stateChanged=function(a,b,c){this.visualElementStateChanged(new mv({trackingParams:a}),b,c===void 0?0:c)}; Bz.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=tv(d);a||(a=(a=qv(d===void 0?0:d))?new mv({veType:a,youtubeData:void 0,jspbYoutubeData:void 0}):null);var e=a;c&&e&&(a=this.client,d=Fw({cttAuthInfo:vv(c)||void 0},c),b={csn:c,ve:e.getAsJson(),clientData:b},c==="UNDEFINED_CSN"?Iw("visualElementStateChanged",d,b):a?Ru("visualElementStateChanged",b,a,d):kp("visualElementStateChanged",b,d))}}; function Cz(a,b){if(b===void 0)for(var c=sv(),d=0;d0&&Pz(e)){var f=d;if(Na(f[0])&&!Array.isArray(f[0]))var g=f[0];else switch(g={},e){case "loadVideoById":case "cueVideoById":g=Qz(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=Qz(g);break;case "loadPlaylist":case "cuePlaylist":g=Rz(f[0],f[1],f[2],f[3])}d.length=1;d[0]=g}b.api.handleExternalCall(e,d,c);Pz(e)&&Wz(b,Tz(b))}}}}; Xz.addEventListener("message",this.G);if(a=R("WIDGET_ID"))this.sessionId=a;Yz(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?Nz[c]||d:d;b.sendMessage("onError",Number(b.errorCode))}}); Yz(this,"onVideoProgress",this.pf.bind(this));Yz(this,"onVolumeChange",this.qf.bind(this));Yz(this,"onApiChange",this.gf.bind(this));Yz(this,"onPlaybackQualityChange",this.lf.bind(this));Yz(this,"onPlaybackRateChange",this.mf.bind(this));Yz(this,"onStateChange",this.nf.bind(this));Yz(this,"onWebglSettingsChanged",this.rf.bind(this));Yz(this,"onCaptionsTrackListChanged",this.hf.bind(this));Yz(this,"captionssettingschanged",this.jf.bind(this))} v(Sz,I);function Wz(a,b){a.sendMessage("infoDelivery",b)} p=Sz.prototype;p.sendMessage=function(a,b){a={event:a,info:b===void 0?null:b};this.Y?Uz(this,a):this.A.push(a)}; function Vz(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 Yz(a,b,c){a.j.push({eventType:b,listener:c});a.api.addEventListener(b,c)} function Tz(a){if(!a.api)return null;var b=a.api.getApiInterface();$b(b,"getVideoData");for(var c={apiInterface:b},d=0,e=b.length;d=0||this.h[a]||(b=zA(this,a),this.u&&this.u(a,b)),this.U.subscribe(a,d),a==="onReady"&&this.isReady()&&setTimeout(function(){d(c.api)},0))}; p.removeEventListener=function(a,b){this.ea||(b=oA(this,b))&&this.U.unsubscribe(a,b)}; function oA(a,b){var c=b;if(typeof b==="string"){if(a.Fa[b])return a.Fa[b];c=function(){var d=C.apply(0,arguments),e=F(b);if(e)try{e.apply(D,d)}catch(f){throw d=new U("PlayerProxy error when executing callback",{error:f}),d.level="ERROR",d;}}; a.Fa[b]=c}return c?c:null} function zA(a,b){function c(d){function e(){if(!a.ea)try{a.U.sb(b,d!=null?d:void 0)}catch(h){var g=new U("PlayerProxy error when creating global callback",{error:h.message,event:b,playerId:a.A,data:d,originalStack:h.stack,componentStack:h.ke});g.level="WARNING";throw g;}} if(uA(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); Gg(a.P,String(f))}} return a.h[b]=c} p.getPlayerType=function(){return this.Z||(qA(this)?"html5":null)}; p.getLastError=function(){return this.lastError}; function tA(a){a.cancel();jA(a);a.Z=null;a.config&&(a.config.loaded=!1);var b=qA(a);b&&(pA(a)||!wA(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)} p.cancel=function(){this.G&&jw(rA(this),this.G);clearTimeout(this.fb);this.Y=!1}; p.ba=function(){tA(this);if(this.j&&this.config&&this.j.destroy)try{this.j.destroy()}catch(b){var a=new U("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.Ra=this.config=this.api=null;delete this.o;delete this.i;I.prototype.ba.call(this)}; function wA(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 rA(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.jsUrl:(a=a.config.assets)?a.js:""} function vA(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.cssUrl:(a=a.config.assets)?a.css:""} function uA(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 nA(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"?Jg(e):e}return b} ;var AA={},BA="player_uid_"+(Math.random()*1E9>>>0);function CA(a,b){var c="player",d=!1;d=d===void 0?!0:d;c=typeof c==="string"?Pg(c):c;var e=BA+"_"+Oa(c),f=AA[e];if(f&&d)return DA(a,b)?f.api.loadVideoByPlayerVars(a.args||null):f.loadNewVideoConfig(a),f.api;f=new iA(c,e,a,b,void 0);AA[e]=f;f.addOnDisposeCallback(function(){delete AA[f.getId()]}); return f.api} function DA(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 EA=null,FA=null; function GA(){fy();var a=jo(),b=mo(119),c=window.devicePixelRatio>1;if(document.body&&mk(document.body,"exp-invert-logo"))if(c&&!mk(document.body,"inverted-hdpi")){var d=document.body;if(d.classList)d.classList.add("inverted-hdpi");else if(!mk(d,"inverted-hdpi")){var e=kk(d);lk(d,e+(e.length>0?" inverted-hdpi":"inverted-hdpi"))}}else!c&&mk(document.body,"inverted-hdpi")&&nk();if(b!=c){b="f"+(Math.floor(119/31)+1);d=no(b)||0;d=c?d|67108864:d&-67108865;d===0?delete go[b]:(c=d.toString(16),go[b]=c.toString()); c=!0;T("web_secure_pref_cookie_killswitch")&&(c=!1);b=a.h;d=[];for(f in go)go.hasOwnProperty(f)&&d.push(f+"="+encodeURIComponent(String(go[f])));var f=d.join("&");bo(b,f,63072E3,a.i,c)}} function HA(){IA()} function JA(){ay("ep_init_pr");IA()} function IA(){var a=EA.getVideoData(1);a=a.title?a.title+" - YouTube":"YouTube";document.title!==a&&(document.title=a)} function KA(){EA&&EA.sendAbandonmentPing&&EA.sendAbandonmentPing();R("PL_ATT")&&fA.dispose();for(var a=ek,b=0,c=Oy.length;b