(function(){var k;function aa(a){var b=0;return function(){return b=f}}); ma("String.prototype.endsWith",function(a){return a?a:function(a,c){var b=na(this,a,"endsWith");a+="";void 0===c&&(c=b.length);for(var e=Math.max(0,Math.min(c|0,b.length)),f=a.length;0=f}}); function oa(){oa=function(){}; la.Symbol||(la.Symbol=pa)} var pa=function(){var a=0;return function(b){return"jscomp_symbol_"+(b||"")+a++}}(); function qa(){oa();var a=la.Symbol.iterator;a||(a=la.Symbol.iterator=la.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&ka(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ra(aa(this))}}); qa=function(){}} function ra(a){qa();a={next:a};a[la.Symbol.iterator]=function(){return this}; return a} function p(a,b){return Object.prototype.hasOwnProperty.call(a,b)} var sa="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c>>0),Aa=0;function Ba(a,b,c){return a.call.apply(a.bind,arguments)} function Ca(a,b,c){if(!a)throw Error();if(2c?null:t(a)?a.charAt(c):a[c]} function La(a,b){var c=Ga(a,b);0<=c&&Array.prototype.splice.call(a,c,1)} function Ma(a){var b=a.length;if(0")&&(a=a.replace(Sa,">"));-1!=a.indexOf('"')&&(a=a.replace(Ta,"""));-1!=a.indexOf("'")&&(a=a.replace(Ua,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(Va,"�"))}return a} var Qa=/&/g,Ra=//g,Ta=/"/g,Ua=/'/g,Va=/\x00/g,Wa=/[\x00&<>"']/;function Xa(a){return a=Pa(a,void 0)} function Ya(a){for(var b=0,c=0;c>>0;return b} ;var Za;a:{var $a=q.navigator;if($a){var ab=$a.userAgent;if(ab){Za=ab;break a}}Za=""}function G(a){return-1!=Za.indexOf(a)} ;function bb(a,b){for(var c in a)b.call(void 0,a[c],c,a)} function cb(a,b){var c=ya(b),d=c?b:arguments;for(c=c?0:1;cparseFloat(ub)){tb=String(wb);break a}}tb=ub}var xb=tb,yb;var zb=q.document;yb=zb&&ob?sb()||("CSS1Compat"==zb.compatMode?parseInt(xb,10):5):void 0;var Ab=null,Bb=null;function Cb(a){this.b=a||{cookie:""}} k=Cb.prototype;k.isEnabled=function(){return navigator.cookieEnabled}; k.set=function(a,b,c,d,e,f){if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');r(c)||(c=-1);e=e?";domain="+e:"";d=d?";path="+d:"";f=f?";secure":"";c=0>c?"":0==c?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(B()+1E3*c)).toUTCString();this.b.cookie=a+"="+b+e+d+c+f}; k.get=function(a,b){for(var c=a+"=",d=(this.b.cookie||"").split(";"),e=0,f;e",0);Sb("",0);Sb("
",0);function Tb(a,b){var c=b instanceof H?b:Ob(b);a.href=Mb(c)} function Ub(a,b){a.src=Kb(b);if(null===ua)b:{var c=q.document;if((c=c.querySelector&&c.querySelector("script[nonce]"))&&(c=c.nonce||c.getAttribute("nonce"))&&ta.test(c)){ua=c;break b}ua=""}c=ua;c&&a.setAttribute("nonce",c)} ;function Vb(a,b){this.x=r(a)?a:0;this.y=r(b)?b:0} k=Vb.prototype;k.clone=function(){return new Vb(this.x,this.y)}; k.equals=function(a){return a instanceof Vb&&(this==a?!0:this&&a?this.x==a.x&&this.y==a.y:!1)}; k.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; k.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; k.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};function Wb(a,b){this.width=a;this.height=b} k=Wb.prototype;k.clone=function(){return new Wb(this.width,this.height)}; k.aspectRatio=function(){return this.width/this.height}; k.isEmpty=function(){return!(this.width*this.height)}; k.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; k.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; k.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Xb(a){var b=document;return t(a)?b.getElementById(a):a} function Yb(a,b){bb(b,function(b,d){b&&"object"==typeof b&&b.I&&(b=b.H());"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:Zb.hasOwnProperty(d)?a.setAttribute(Zb[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})} var Zb={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"}; function $b(a,b,c){var d=arguments,e=document,f=String(d[0]),g=d[1];if(!Hb&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',Xa(g.name),'"');if(g.type){f.push(' type="',Xa(g.type),'"');var h={};lb(h,g);delete h.type;g=h}f.push(">");f=f.join("")}f=e.createElement(f);g&&(t(g)?f.className=g:x(g)?f.className=g.join(" "):Yb(f,g));2d&&(d=a.length);var e=a.indexOf("?");if(0>e||e>d){e=d;var f=""}else f=a.substring(e+1,d);d=[a.substr(0,e),f,a.substr(d)];e=d[1];d[1]=c?e?e+"&"+c:c:e;c=d[0]+(d[1]?"?"+d[1]:"")+d[2]}else c=a;return c} var sc=/#|$/;function tc(a,b){var c=a.search(sc);a:{var d=0;for(var e=b.length;0<=(d=a.indexOf(b,d))&&dd)return null;e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return decodeURIComponent(a.substr(d,e-d).replace(/\+/g," "))} ;var uc=null;function vc(){var a=q.performance;return a&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):B()} function wc(){var a=void 0===a?q:a;return(a=a.performance)&&a.now?a.now():null} ;function xc(a,b,c){this.label=a;this.type=b;this.value=c;this.duration=0;this.uniqueId=this.label+"_"+this.type+"_"+Math.random();this.slotId=void 0} ;var K=q.performance,yc=!!(K&&K.mark&&K.measure&&K.clearMarks),zc=Gb(function(){var a;if(a=yc){var b;if(null===uc){uc="";try{a="";try{a=q.top.location.hash}catch(c){a=q.location.hash}a&&(uc=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=uc;a=!!b.indexOf&&0<=b.indexOf("1337")}return a}); function Ac(){var a=Bc;this.events=[];this.c=a||q;var b=null;a&&(a.google_js_reporting_queue=a.google_js_reporting_queue||[],this.events=a.google_js_reporting_queue,b=a.google_measure_js_timing);this.b=zc()||(null!=b?b:1>Math.random())} Ac.prototype.disable=function(){this.b=!1;this.events!=this.c.google_js_reporting_queue&&(zc()&&F(this.events,Cc),this.events.length=0)}; function Cc(a){a&&K&&zc()&&(K.clearMarks("goog_"+a.uniqueId+"_start"),K.clearMarks("goog_"+a.uniqueId+"_end"))} Ac.prototype.start=function(a,b){if(!this.b)return null;var c=wc()||vc();c=new xc(a,b,c);var d="goog_"+c.uniqueId+"_start";K&&zc()&&K.mark(d);return c}; Ac.prototype.end=function(a){if(this.b&&"number"==typeof a.value){var b=wc()||vc();a.duration=b-a.value;b="goog_"+a.uniqueId+"_end";K&&zc()&&K.mark(b);this.b&&this.events.push(a)}};if(nc&&!fc()){var Dc="."+Fa.domain;try{for(;2c;c+=4)b[c/4]=a[c]<<24|a[c+1]<<16|a[c+2]<<8|a[c+3];for(c=16;80>c;c++)a=b[c-3]^b[c-8]^b[c-14]^b[c-16],b[c]=(a<<1|a>>>31)&4294967295;a=e[0];var d=e[1],f=e[2],h=e[3],m=e[4];for(c=0;80>c;c++){if(40>c)if(20>c){var l=h^d&(f^h);var u=1518500249}else l=d^f^h,u=1859775393;else 60>c?(l=d&f|h&(d|f),u=2400959708):(l=d^f^h,u=3395469782);l=((a<<5|a>>>27)&4294967295)+l+m+u+b[c]&4294967295;m=h;h=f;f=(d<<30|d>>>2)&4294967295;d=a;a=l}e[0]=e[0]+a&4294967295;e[1]=e[1]+d&4294967295;e[2]= e[2]+f&4294967295;e[3]=e[3]+h&4294967295;e[4]=e[4]+m&4294967295} function c(a,c){if("string"===typeof a){a=unescape(encodeURIComponent(a));for(var d=[],e=0,g=a.length;el?c(h,56-l):c(h,64-(l-56));for(var g=63;56<=g;g--)f[g]=d&255,d>>>=8;b(f);for(g=d=0;5>g;g++)for(var m=24;0<=m;m-=8)a[d++]=e[g]>>m&255;return a} for(var e=[],f=[],g=[],h=[128],m=1;64>m;++m)h[m]=0;var l,u;a();return{reset:a,update:c,digest:d,qa:function(){for(var a=d(),b="",c=0;ca.c&&(a.c++,b.next=a.b,a.b=b)} ;function Pc(a){q.setTimeout(function(){throw a;},0)} var Qc; function Rc(){var a=q.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!G("Presto")&&(a=function(){var a=document.createElement("IFRAME");a.style.display="none";a.src="";document.documentElement.appendChild(a);var b=a.contentWindow;a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host;a=A(function(a){if(("*"==d||a.origin==d)&&a.data== c)this.port1.onmessage()},this); b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}}); if("undefined"!==typeof a&&!G("Trident")&&!G("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(r(c.next)){c=c.next;var a=c.ea;c.ea=null;a()}}; return function(a){d.next={ea:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?function(a){var b=document.createElement("SCRIPT"); b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null}; document.documentElement.appendChild(b)}:function(a){q.setTimeout(a,0)}} ;function Sc(){this.c=this.b=null} var Uc=new Nc(function(){return new Tc},function(a){a.reset()}); Sc.prototype.add=function(a,b){var c=Uc.get();c.set(a,b);this.c?this.c.next=c:this.b=c;this.c=c}; Sc.prototype.remove=function(){var a=null;this.b&&(a=this.b,this.b=this.b.next,this.b||(this.c=null),a.next=null);return a}; function Tc(){this.next=this.scope=this.b=null} Tc.prototype.set=function(a,b){this.b=a;this.scope=b;this.next=null}; Tc.prototype.reset=function(){this.next=this.scope=this.b=null};function Vc(a,b){Wc||Xc();Yc||(Wc(),Yc=!0);Zc.add(a,b)} var Wc;function Xc(){if(q.Promise&&q.Promise.resolve){var a=q.Promise.resolve(void 0);Wc=function(){a.then($c)}}else Wc=function(){var a=$c; !y(q.setImmediate)||q.Window&&q.Window.prototype&&!G("Edge")&&q.Window.prototype.setImmediate==q.setImmediate?(Qc||(Qc=Rc()),Qc(a)):q.setImmediate(a)}} var Yc=!1,Zc=new Sc;function $c(){for(var a;a=Zc.remove();){try{a.b.call(a.scope)}catch(b){Pc(b)}Oc(Uc,a)}Yc=!1} ;function ad(){this.c=-1} ;function bd(){this.c=64;this.b=[];this.i=[];this.o=[];this.g=[];this.g[0]=128;for(var a=1;ae;e++)d[e]=b.charCodeAt(c)<<24|b.charCodeAt(c+1)<<16|b.charCodeAt(c+2)<<8|b.charCodeAt(c+3),c+=4;else for(e=0;16>e;e++)d[e]=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4;for(e=16;80>e;e++){var f=d[e-3]^d[e-8]^d[e-14]^d[e-16];d[e]=(f<<1|f>>>31)&4294967295}b=a.b[0];c=a.b[1];var g=a.b[2],h=a.b[3],m=a.b[4];for(e=0;80>e;e++){if(40>e)if(20>e){f=h^c&(g^h);var l=1518500249}else f=c^g^h,l=1859775393;else 60>e?(f=c&g|h&(c|g),l=2400959708):(f=c^g^h,l= 3395469782);f=(b<<5|b>>>27)+f+m+l+d[e]&4294967295;m=h;h=g;g=(c<<30|c>>>2)&4294967295;c=b;b=f}a.b[0]=a.b[0]+b&4294967295;a.b[1]=a.b[1]+c&4294967295;a.b[2]=a.b[2]+g&4294967295;a.b[3]=a.b[3]+h&4294967295;a.b[4]=a.b[4]+m&4294967295} bd.prototype.update=function(a,b){if(null!=a){r(b)||(b=a.length);for(var c=b-this.c,d=0,e=this.i,f=this.f;dthis.f?this.update(this.g,56-this.f):this.update(this.g,this.c-(this.f-56));for(var c=this.c-1;56<=c;c--)this.i[c]=b&255,b/=256;cd(this,this.i);for(c=b=0;5>c;c++)for(var d=24;0<=d;d-=8)a[b]=this.b[c]>>d&255,++b;return a};function L(){this.c=this.c;this.o=this.o} L.prototype.c=!1;L.prototype.dispose=function(){this.c||(this.c=!0,this.j())}; function dd(a,b){a.c?r(void 0)?b.call(void 0):b():(a.o||(a.o=[]),a.o.push(r(void 0)?A(b,void 0):b))} L.prototype.j=function(){if(this.o)for(;this.o.length;)this.o.shift()()}; function ed(a){a&&"function"==typeof a.dispose&&a.dispose()} function fd(a){for(var b=0,c=arguments.length;b=a.length)throw jd;if(b in a)return a[b++];b++}}; return c}throw Error("Not implemented");} function md(a,b){if(ya(a))try{F(a,b,void 0)}catch(c){if(c!==jd)throw c;}else{a=ld(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==jd)throw c;}}} function nd(a){if(ya(a))return Ma(a);a=ld(a);var b=[];md(a,function(a){b.push(a)}); return b} ;function od(a,b){this.f={};this.b=[];this.g=this.c=0;var c=arguments.length;if(12*this.c&&qd(this),!0):!1}; function qd(a){if(a.c!=a.b.length){for(var b=0,c=0;b=d.b.length)throw jd;var e=d.b[b++];return a?e:d.f[e]}; return e};function sd(a){var b=[];td(new ud,a,b);return b.join("")} function ud(){} function td(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(x(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;fB())Xd.prototype.remove.call(this,a);else return b}};function Yd(){} ;function Zd(){} C(Zd,Yd);Zd.prototype.clear=function(){var a=nd(this.D(!0)),b=this;F(a,function(a){b.remove(a)})};function $d(a){this.b=a} C($d,Zd);k=$d.prototype;k.isAvailable=function(){if(!this.b)return!1;try{return this.b.setItem("__sak","1"),this.b.removeItem("__sak"),!0}catch(a){return!1}}; k.set=function(a,b){try{this.b.setItem(a,b)}catch(c){if(0==this.b.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}}; k.get=function(a){a=this.b.getItem(a);if(!t(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; k.remove=function(a){this.b.removeItem(a)}; k.D=function(a){var b=0,c=this.b,d=new kd;d.next=function(){if(b>=c.length)throw jd;var d=c.key(b++);if(a)return d;d=c.getItem(d);if(!t(d))throw"Storage mechanism: Invalid value was encountered";return d}; return d}; k.clear=function(){this.b.clear()}; k.key=function(a){return this.b.key(a)};function ae(){var a=null;try{a=window.localStorage||null}catch(b){}this.b=a} C(ae,$d);function be(a,b){this.c=a;this.b=null;if(ob&&!(9<=Number(yb))){ce||(ce=new od);this.b=ce.get(a);this.b||(b?this.b=document.getElementById(b):(this.b=document.createElement("userdata"),this.b.addBehavior("#default#userData"),document.body.appendChild(this.b)),ce.set(a,this.b));try{this.b.load(this.c)}catch(c){this.b=null}}} C(be,Zd);var de={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},ce=null;function ee(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(a){return de[a]})} k=be.prototype;k.isAvailable=function(){return!!this.b}; k.set=function(a,b){this.b.setAttribute(ee(a),b);fe(this)}; k.get=function(a){a=this.b.getAttribute(ee(a));if(!t(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; k.remove=function(a){this.b.removeAttribute(ee(a));fe(this)}; k.D=function(a){var b=0,c=this.b.XMLDocument.documentElement.attributes,d=new kd;d.next=function(){if(b>=c.length)throw jd;var d=c[b++];if(a)return decodeURIComponent(d.nodeName.replace(/\./g,"%")).substr(1);d=d.nodeValue;if(!t(d))throw"Storage mechanism: Invalid value was encountered";return d}; return d}; k.clear=function(){for(var a=this.b.XMLDocument.documentElement,b=a.attributes.length;0a&&0===a%1&&this.c[a]!=b&&(this.c[a]=b,this.b=-1)}; he.prototype.get=function(a){return!!this.c[a]}; function ie(a){-1==a.b&&(a.b=Ja(a.c,function(a,c,d){return c?a+Math.pow(2,d):a},0)); return a.b} ;function je(a,b){if(1a.status)?a.json().then(d,function(){d(null)}):d(null)}}); b.ga&&0a.status,ea=500<=a.status&&600>a.status;if(d||h||ea)g=Ne(c,a,b.lb);if(d)a:if(a&&204==a.status)d=!0;else{switch(c){case "XML":d=0==parseInt(g&&g.return_code,10);break a;case "RAW":d=!0;break a}d=!!g}g=g||{};h=b.context||q;d?b.onSuccess&&b.onSuccess.call(h,a,g):b.onError&&b.onError.call(h,a,g);b.ca&&b.ca.call(h,a,g)}},b.method,d,b.headers,b.responseType, b.withCredentials); b.L&&0"',style:"display:none"}),(9==a.nodeType?a:a.ownerDocument||a.document).body.appendChild(a))):e?Me(a,b,"POST",e,d):Q("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d?Me(a,b,"GET","",d):((d=ke.EXPERIMENT_FLAGS)&&d.web_use_beacon_api_for_ad_click_server_pings&&-1!=I(J(5,a)).indexOf("/aclk")&&"1"===tc(a,"ae")&&"1"===tc(a,"act")?Ve(a)?(b&&b(),d=!0):d=!1:d=!1,d||We(a,b)))} function Ve(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1} function We(a,b){var c=new Image,d=""+Te++;Se[d]=c;c.onload=c.onerror=function(){b&&Se[d]&&b();delete Se[d]}; c.src=a} ;var Xe={},Ye=0; function Ze(a,b,c,d,e,f){f=f||{};f.name=c||Q("INNERTUBE_CONTEXT_CLIENT_NAME",1);f.version=d||Q("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0);b=void 0===b?"ERROR":b;e=void 0===e?!1:e;b=void 0===b?"ERROR":b;e=window&&window.yterr||(void 0===e?!1:e)||!1;if(!(!a||!e||5<=Ye||(e=a.stacktrace,c=a.columnNumber,a.hasOwnProperty("params")&&(d=String(JSON.stringify(a.params)),f.params=d.substr(0,500)),a=Eb(a),e=e||a.stack,d=a.lineNumber.toString(),isNaN(d)||isNaN(c)||(d=d+":"+c),window.yterr&&y(window.yterr)&&window.yterr(a), Xe[a.message]||0<=e.indexOf("/YouTubeCenter.js")||0<=e.indexOf("/mytube.js")))){b={Ua:{a:"logerror",t:"jserror",type:a.name,msg:a.message.substr(0,250),line:d,level:b,"client.name":f.name},B:{url:Q("PAGE_NAME",window.location.href),file:a.fileName},method:"POST"};f.version&&(b["client.version"]=f.version);e&&(b.B.stack=e);for(var g in f)b.B["client."+g]=f[g];if(g=Q("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",void 0))for(var h in g)b.B[h]=g[h];Le(Q("ECATCHER_REPORT_HOST","")+"/error_204",b);Xe[a.message]= !0;Ye++}} ;var $e=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};v("yt.msgs_",$e,void 0);function af(a){je($e,arguments)} ;function bf(a){a&&(a.dataset?a.dataset[cf("loaded")]="true":a.setAttribute("data-loaded","true"))} function df(a,b){return a?a.dataset?a.dataset[cf(b)]:a.getAttribute("data-"+b):null} var ef={};function cf(a){return ef[a]||(ef[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))} ;var ff=w("ytPubsubPubsubInstance")||new N;N.prototype.subscribe=N.prototype.subscribe;N.prototype.unsubscribeByKey=N.prototype.K;N.prototype.publish=N.prototype.J;N.prototype.clear=N.prototype.clear;v("ytPubsubPubsubInstance",ff,void 0);var gf=w("ytPubsubPubsubSubscribedKeys")||{};v("ytPubsubPubsubSubscribedKeys",gf,void 0);var hf=w("ytPubsubPubsubTopicToKeys")||{};v("ytPubsubPubsubTopicToKeys",hf,void 0);var jf=w("ytPubsubPubsubIsSynchronous")||{};v("ytPubsubPubsubIsSynchronous",jf,void 0); function kf(a,b){var c=lf();if(c){var d=c.subscribe(a,function(){var c=arguments;var f=function(){gf[d]&&b.apply(window,c)}; try{jf[a]?f():T(f,0)}catch(g){R(g)}},void 0); gf[d]=!0;hf[a]||(hf[a]=[]);hf[a].push(d);return d}return 0} function mf(a){var b=lf();b&&("number"==typeof a?a=[a]:t(a)&&(a=[parseInt(a,10)]),F(a,function(a){b.unsubscribeByKey(a);delete gf[a]}))} function nf(a,b){var c=lf();c&&c.publish.apply(c,arguments)} function of(a){var b=lf();if(b)if(b.clear(a),a)pf(a);else for(var c in hf)pf(c)} function lf(){return w("ytPubsubPubsubInstance")} function pf(a){hf[a]&&(a=hf[a],F(a,function(a){gf[a]&&delete gf[a]}),a.length=0)} ;var qf=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,rf=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/;function sf(a,b,c){c=void 0===c?null:c;if(window.spf){c="";if(a){var d=a.indexOf("jsbin/"),e=a.lastIndexOf(".js"),f=d+6;-1f&&(c=a.substring(f,e),c=c.replace(qf,""),c=c.replace(rf,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else tf(a,b,c)} function tf(a,b,c){c=void 0===c?null:c;var d=uf(a),e=document.getElementById(d),f=e&&df(e,"loaded"),g=e&&!f;f?b&&b():(b&&(f=kf(d,b),b=""+(b[za]||(b[za]=++Aa)),vf[b]=f),g||(e=wf(a,d,function(){df(e,"loaded")||(bf(e),nf(d),T(Da(of,d),0))},c)))} function wf(a,b,c,d){d=void 0===d?null:d;var e=document.createElement("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);Ub(e,dc(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e} function xf(a){a=uf(a);var b=document.getElementById(a);b&&(of(a),b.parentNode.removeChild(b))} function yf(a,b){if(a&&b){var c=""+(b[za]||(b[za]=++Aa));(c=vf[c])&&mf(c)}} function uf(a){var b=document.createElement("a");Tb(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Ya(a)} var vf={};function zf(){} function Af(a,b){return Bf(a,1,b)} ;function Cf(){} n(Cf,zf);function Bf(a,b,c){isNaN(c)&&(c=void 0);var d=w("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):T(a,c||0)} function Df(a){if(!isNaN(a)){var b=w("yt.scheduler.instance.cancelJob");b?b(a):U(a)}} Cf.prototype.start=function(){var a=w("yt.scheduler.instance.start");a&&a()}; Cf.prototype.pause=function(){var a=w("yt.scheduler.instance.pause");a&&a()}; wa(Cf);Cf.getInstance();var Ef=[],Ff=!1;function Gf(){if("1"!=cb(me(),"args","privembed")){var a=function(){Ff=!0;"google_ad_status"in window?P("DCLKSTAT",1):P("DCLKSTAT",2)}; sf("//static.doubleclick.net/instream/ad_status.js",a);Ef.push(Af(function(){Ff||"google_ad_status"in window||(yf("//static.doubleclick.net/instream/ad_status.js",a),Ff=!0,P("DCLKSTAT",3))},5E3))}} function Hf(){return parseInt(Q("DCLKSTAT",0),10)} ;function If(){this.c=!1;this.b=null} If.prototype.initialize=function(a,b,c,d,e){var f=this;b?(this.c=!0,sf(b,function(){f.c=!1;if(window.botguard)Jf(f,c,d);else{xf(b);var a=Error("Unable to load Botguard");a.params="from "+b;ve(a)}},e)):a&&(eval(a),window.botguard?Jf(this,c,d):ve(Error("Unable to load Botguard from JS")))}; function Jf(a,b,c){try{a.b=new botguard.bg(b)}catch(d){ve(d)}c&&c(b)} If.prototype.dispose=function(){this.b=null};var Kf=new If,Lf=!1,Mf=0,Nf="";function Of(a){S("botguard_periodic_refresh")?Mf=O():S("botguard_always_refresh")&&(Nf=a)} function Pf(a){if(a){if(Kf.c)return!1;if(S("botguard_periodic_refresh"))return 72E5a;a++)this.f.push(0);this.g=0;this.C=V(window,"mousemove",A(this.F,this));a=A(this.A,this);y(a)&&(a=ue(a));this.G=window.setInterval(a,25)} C($f,L);$f.prototype.F=function(a){r(a.b)||Vf(a);var b=a.b;r(a.c)||Vf(a);this.b=new Vb(b,a.c)}; $f.prototype.A=function(){if(this.b){var a=O();if(0!=this.h){var b=this.l,c=this.b,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.h);this.f[this.g]=.5c;c++)b+=this.f[c]||0;3<=b&&this.u();this.i=d}this.h=a;this.l=this.b;this.g=(this.g+1)%4}}; $f.prototype.j=function(){window.clearInterval(this.G);Zf(this.C)};var ag={}; function bg(a){var b=void 0===a?{}:a;a=void 0===b.wa?!0:b.wa;b=void 0===b.Ja?!1:b.Ja;if(null==w("_lact",window)){var c=parseInt(Q("LACT"),10);c=isFinite(c)?B()-Math.max(c,0):-1;v("_lact",c,window);v("_fact",c,window);-1==c&&cg();V(document,"keydown",cg);V(document,"keyup",cg);V(document,"mousedown",cg);V(document,"mouseup",cg);a&&(b?V(window,"touchmove",function(){dg("touchmove",200)},{passive:!0}):(V(window,"resize",function(){dg("resize",200)}),V(window,"scroll",function(){dg("scroll",200)}))); new $f(function(){dg("mouse",100)}); V(document,"touchstart",cg,{passive:!0});V(document,"touchend",cg,{passive:!0})}} function dg(a,b){ag[a]||(ag[a]=!0,Af(function(){cg();ag[a]=!1},b))} function cg(){null==w("_lact",window)&&bg();var a=B();v("_lact",a,window);-1==w("_fact",window)&&v("_fact",a,window);(a=w("ytglobal.ytUtilActivityCallback_"))&&a()} function eg(){var a=w("_lact",window);return null==a?-1:Math.max(B()-a,0)} ;var fg=Math.pow(2,16)-1,gg=null,hg=0,ig={log_event:"events",log_interaction:"interactions"},jg=Object.create(null);jg.log_event="GENERIC_EVENT_LOGGING";jg.log_interaction="INTERACTION_LOGGING";var kg=new Set(["log_event"]),lg={},mg=0,ng=0,W=w("ytLoggingTransportLogPayloadsQueue_")||{};v("ytLoggingTransportLogPayloadsQueue_",W,void 0);var og=w("ytLoggingTransportTokensToCttTargetIds_")||{};v("ytLoggingTransportTokensToCttTargetIds_",og,void 0);var pg=w("ytLoggingTransportDispatchedStats_")||{}; v("ytLoggingTransportDispatchedStats_",pg,void 0);v("ytytLoggingTransportCapturedTime_",w("ytLoggingTransportCapturedTime_")||{},void 0);function qg(){U(mg);U(ng);ng=0;if(!fb(W)){for(var a in W){var b=lg[a];b&&(rg(a,b),delete W[a])}fb(W)||sg()}} function sg(){S("web_gel_timeout_cap")&&!ng&&(ng=T(qg,3E4));U(mg);mg=T(qg,Q("LOGGING_BATCH_TIMEOUT",1E4))} function tg(a,b){b=void 0===b?"":b;W[a]=W[a]||{};W[a][b]=W[a][b]||[];return W[a][b]} function rg(a,b){var c=ig[a],d=pg[a]||{};pg[a]=d;var e=Math.round(O());for(l in W[a]){var f=jb,g=b.b;g={client:{hl:g.Ca,gl:g.Ba,clientName:g.za,clientVersion:g.Aa}};var h=window.devicePixelRatio;h&&1!=h&&(g.client.screenDensityFloat=String(h));Q("DELEGATED_SESSION_ID")&&!S("pageid_as_header_web")&&(g.user={onBehalfOfUser:Q("DELEGATED_SESSION_ID")});f=f({context:g});f[c]=tg(a,l);d.dispatchedEventCount=d.dispatchedEventCount||0;d.dispatchedEventCount+=f[c].length;if(g=og[l])a:{var m=l;if(g.videoId)h= "VIDEO";else if(g.playlistId)h="PLAYLIST";else break a;f.credentialTransferTokenTargetId=g;f.context=f.context||{};f.context.user=f.context.user||{};f.context.user.credentialTransferTokens=[{token:m,scope:h}]}delete og[l];f.requestTimeMs=e;if(g=le("EVENT_ID"))h=(Q("BATCH_CLIENT_COUNTER",void 0)||0)+1,h>fg&&(h=1),P("BATCH_CLIENT_COUNTER",h),g={serializedEventId:g,clientCounter:h},f.serializedClientEventId=g,gg&&hg&&S("log_gel_rtt_web")&&(f.previousBatchInfo={serializedClientEventId:gg,roundtripMs:hg}), gg=g,hg=0;ug(b,a,f,{retry:kg.has(a),onSuccess:A(vg,this,O())})}if(d.previousDispatchMs){c=e-d.previousDispatchMs;var l=d.diffCount||0;d.averageTimeBetweenDispatchesMs=l?(d.averageTimeBetweenDispatchesMs*l+c)/(l+1):c;d.diffCount=l+1}d.previousDispatchMs=e} function vg(a){hg=Math.round(O()-a)} ;function wg(a,b,c,d,e){var f={};f.eventTimeMs=Math.round(d||O());f[a]=b;f.context={lastActivityMs:String(d?-1:eg())};e?(a={},e.videoId?a.videoId=e.videoId:e.playlistId&&(a.playlistId=e.playlistId),og[e.token]=a,e=tg("log_event",e.token)):e=tg("log_event");e.push(f);c&&(lg.log_event=new c);e.length>=(Number(S("web_logging_max_batch")||0)||20)?qg():sg()} ;function xg(a,b,c){c=void 0===c?{}:c;var d={"X-Goog-Visitor-Id":c.visitorData||Q("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;(b=c.ib||Q("AUTHORIZATION"))||(a?b="Bearer "+w("gapi.auth.getToken")().hb:b=Mc([]));b&&(d.Authorization=b,d["X-Goog-AuthUser"]=Q("SESSION_INDEX",0),S("pageid_as_header_web")&&(d["X-Goog-PageId"]=Q("DELEGATED_SESSION_ID")));return d} function yg(a){a=Object.assign({},a);delete a.Authorization;var b=Mc();if(b){var c=new bd;c.update(Q("INNERTUBE_API_KEY",void 0));c.update(b);b=c.digest();ya(b);if(!Ab)for(Ab={},Bb={},c=0;65>c;c++)Ab[c]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(c),Bb[c]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(c);c=Bb;for(var d=[],e=0;e>2;f=(f&3)<<4|h>>4;h=(h&15)<< 2|l>>6;l&=63;m||(l=64,g||(h=64));d.push(c[u],c[f],c[h],c[l])}a.hash=d.join("")}return a} ;function zg(a,b,c,d){Db.set(""+a,b,c,"/",void 0===d?"youtube.com":d,!1)} ;function Ag(){var a=new ae;(a=a.isAvailable()?new ge(a,"yt.innertube"):null)||(a=new be("yt.innertube"),a=a.isAvailable()?a:null);this.b=a?new Xd(a):null;this.c=document.domain||window.location.hostname} Ag.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.b)try{this.b.set(a,b,B()+1E3*c);return}catch(f){}var e="";if(d)try{e=escape(sd(b))}catch(f){return}else e=escape(b);zg(a,e,c,this.c)}; Ag.prototype.get=function(a,b){var c=void 0,d=!this.b;if(!d)try{c=this.b.get(a)}catch(e){d=!0}if(d&&(c=Db.get(""+a,void 0))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c}; Ag.prototype.remove=function(a){this.b&&this.b.remove(a);var b=this.c;Db.remove(""+a,"/",void 0===b?"youtube.com":b)};var Bg=new Ag;function Cg(a,b,c,d){if(d)return null;d=Bg.get("nextId",!0)||1;var e=Bg.get("requests",!0)||{};e[d]={method:a,request:b,authState:yg(c),requestTime:Math.round(O())};Bg.set("nextId",d+1,86400,!0);Bg.set("requests",e,86400,!0);return d} function Dg(a){var b=Bg.get("requests",!0)||{};delete b[a];Bg.set("requests",b,86400,!0)} function Eg(a){var b=Bg.get("requests",!0);if(b){for(var c in b){var d=b[c];if(!(6E4>Math.round(O())-d.requestTime)){var e=d.authState,f=yg(xg(!1));hb(e,f)&&(e=d.request,"requestTimeMs"in e&&(e.requestTimeMs=Math.round(O())),ug(a,d.method,e,{}));delete b[c]}}Bg.set("requests",b,86400,!0)}} ;function Fg(a){var b=this;this.b=a||{xa:le("INNERTUBE_API_KEY"),ya:le("INNERTUBE_API_VERSION"),za:Q("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),Aa:le("INNERTUBE_CONTEXT_CLIENT_VERSION"),Ca:le("INNERTUBE_CONTEXT_HL"),Ba:le("INNERTUBE_CONTEXT_GL"),Da:le("INNERTUBE_HOST_OVERRIDE")||"",Ea:!!Q("INNERTUBE_USE_THIRD_PARTY_AUTH",!1)};Bf(function(){Eg(b)},0,5E3)} function ug(a,b,c,d){!Q("VISITOR_DATA")&&.01>Math.random()&&R(Error("Missing VISITOR_DATA when sending innertube request."),"WARNING");var e={headers:{"Content-Type":"application/json"},method:"POST",B:c,ha:"JSON",L:function(){d.L()}, ga:d.L,onSuccess:function(a,b){if(d.onSuccess)d.onSuccess(b)}, fa:function(a){if(d.onSuccess)d.onSuccess(a)}, onError:function(a,b){if(d.onError)d.onError(b)}, nb:function(a){if(d.onError)d.onError(a)}, timeout:d.timeout,withCredentials:!0},f="",g=a.b.Da;g&&(f=g);g=a.b.Ea||!1;var h=xg(g,f,d);Object.assign(e.headers,h);e.headers.Authorization&&!f&&(e.headers["x-origin"]=window.location.origin);var m=""+f+("/youtubei/"+a.b.ya+"/"+b)+"?alt=json&key="+a.b.xa,l;if(d.retry&&S("retry_web_logging_batches")&&"www.youtube-nocookie.com"!=f&&(l=Cg(b,c,h,g))){var u=e.onSuccess,ea=e.fa;e.onSuccess=function(a,b){Dg(l);u(a,b)}; c.fa=function(a,b){Dg(l);ea(a,b)}}try{S("use_fetch_for_op_xhr")?Ie(m,e):Re(m,e)}catch(Cd){if("InvalidAccessError"==Cd)l&&(Dg(l),l=0),R(Error("An extension is blocking network request."),"WARNING"); else throw Cd;}l&&Bf(function(){Eg(a)},0,5E3)} ;var Gg=B().toString(); function Hg(){a:{if(window.crypto&&window.crypto.getRandomValues)try{var a=Array(16),b=new Uint8Array(16);window.crypto.getRandomValues(b);for(var c=0;ca;a++){b=B();for(c=0;ce?d:d.substr(0,e)){if(b.itct||b.ved)b.csn=b.csn||Qg();if(h){var h= parseInt(h,10);isFinite(h)&&0>>0);function ph(a){var b="player";b=t(b)?Xb(b):b;var c=oh+"_"+(b[za]||(b[za]=++Aa)),d=nh[c];if(d)return d.loadNewVideoConfig(a),d.api;d=new ah(b,c);nh[c]=d;nf("player-added",d.api);dd(d,Da(qh,d));T(function(){d.loadNewVideoConfig(a)},0); return d.api} function qh(a){delete nh[a.C]} ;function rh(a,b,c){var d=Fg;Q("ytLoggingEventsDefaultDisabled",!1)&&Fg==Fg&&(d=null);wg(a,b,d,c,void 0)} ;var sh=w("ytLoggingLatencyUsageStats_")||{};v("ytLoggingLatencyUsageStats_",sh,void 0);var th=0;function uh(a){sh[a]=sh[a]||{count:0};var b=sh[a];b.count++;b.time=O();th||(th=Bf(vh,0,5E3));if(10