var _____WB$wombat$assign$function_____=function(name){return (globalThis._wb_wombat && globalThis._wb_wombat.local_init && globalThis._wb_wombat.local_init(name))||globalThis[name];};if(!globalThis.__WB_pmw){globalThis.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
let frames = _____WB$wombat$assign$function_____("frames");
let opener = _____WB$wombat$assign$function_____("opener");
(function(g){var window=this;'use strict';var P7=function(a){g.Jk(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^g.Ra()).toString(36));return a},Q7=function(a,b,c){Array.isArray(c)||(c=[String(c)]);
g.Yga(a.u,b,c)},bob=function(a){if(a instanceof g.Mn)return a;
if("function"==typeof a.hk)return a.hk(!1);if(g.Ia(a)){var b=0,c=new g.Mn;c.next=function(){for(;;){if(b>=a.length)return g.j3;if(b in a)return g.Nn(a[b++]);b++}};
return c}throw Error("Not implemented");},cob=function(a,b,c){if(g.Ia(a))g.Ob(a,b,c);
else for(a=bob(a);;){var d=a.next();if(d.done)break;b.call(c,d.value,void 0,a)}},dob=function(a,b){var c=[];
cob(b,function(d){try{var e=g.pq.prototype.u.call(this,d,!0)}catch(f){if("Storage: Invalid value was encountered"==f)return;throw f;}void 0===e?c.push(d):g.Fla(e)&&c.push(d)},a);
return c},eob=function(a,b){dob(a,b).forEach(function(c){g.pq.prototype.remove.call(this,c)},a)},fob=function(a){if(a.oa){if(a.oa.locationOverrideToken)return{locationOverrideToken:a.oa.locationOverrideToken};
if(null!=a.oa.latitudeE7&&null!=a.oa.longitudeE7)return{latitudeE7:a.oa.latitudeE7,longitudeE7:a.oa.longitudeE7}}return null},gob=function(a,b){g.rb(a,b)||a.push(b)},hob=function(a){var b=0,c;
for(c in a)b++;return b},iob=function(a,b){return g.ad(a,b)},job=function(a){try{return g.Ea.JSON.parse(a)}catch(b){}a=String(a);
if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);},R7=function(a){if(g.Ea.JSON)try{return g.Ea.JSON.parse(a)}catch(b){}return job(a)},kob=function(a,b,c,d){var e=new g.Bk(null);
a&&g.Ck(e,a);b&&g.Dk(e,b);c&&g.Ek(e,c);d&&(e.B=d);return e},S7=function(a){this.name=this.id="";
this.clientName="UNKNOWN_INTERFACE";this.app="";this.type="REMOTE_CONTROL";this.obfuscatedGaiaId=this.avatar=this.username="";this.capabilities=new Set;this.compatibleSenderThemes=new Set;this.experiments=new Set;this.theme="u";new g.Zp;this.model=this.brand="";this.year=0;this.chipset=this.osVersion=this.os="";this.mdxDialServerType="MDX_DIAL_SERVER_TYPE_UNKNOWN";a&&(this.id=a.id||a.name,this.name=a.name,this.clientName=a.clientName?a.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=a.app,this.type=
a.type||"REMOTE_CONTROL",this.username=a.user||"",this.avatar=a.userAvatarUri||"",this.obfuscatedGaiaId=a.obfuscatedGaiaId||"",this.theme=a.theme||"u",lob(this,a.capabilities||""),mob(this,a.compatibleSenderThemes||""),nob(this,a.experiments||""),this.brand=a.brand||"",this.model=a.model||"",this.year=a.year||0,this.os=a.os||"",this.osVersion=a.osVersion||"",this.chipset=a.chipset||"",this.mdxDialServerType=a.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",a=a.deviceInfo)&&(a=JSON.parse(a),this.brand=
a.brand||"",this.model=a.model||"",this.year=a.year||0,this.os=a.os||"",this.osVersion=a.osVersion||"",this.chipset=a.chipset||"",this.clientName=a.clientName?a.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=a.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")},lob=function(a,b){a.capabilities.clear();
g.Rn(b.split(","),g.Pa(iob,oob)).forEach(function(c){a.capabilities.add(c)})},mob=function(a,b){a.compatibleSenderThemes.clear();
g.Rn(b.split(","),g.Pa(iob,pob)).forEach(function(c){a.compatibleSenderThemes.add(c)})},nob=function(a,b){a.experiments.clear();
b.split(",").forEach(function(c){a.experiments.add(c)})},T7=function(a){a=a||{};
this.name=a.name||"";this.id=a.id||a.screenId||"";this.token=a.token||a.loungeToken||"";this.uuid=a.uuid||a.dialId||"";this.idType=a.screenIdType||"normal"},U7=function(a,b){return!!b&&(a.id==b||a.uuid==b)},qob=function(a){return{name:a.name,
screenId:a.id,loungeToken:a.token,dialId:a.uuid,screenIdType:a.idType}},rob=function(a){return new T7(a)},sob=function(a){return Array.isArray(a)?g.Yl(a,rob):[]},V7=function(a){return a?'{name:"'+a.name+'",id:'+a.id.substr(0,6)+"..,token:"+((a.token?".."+a.token.slice(-6):"-")+",uuid:"+(a.uuid?".."+a.uuid.slice(-6):"-")+",idType:"+a.idType+"}"):"null"},tob=function(a){return Array.isArray(a)?"["+g.Yl(a,V7).join(",")+"]":"null"},uob=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,
function(a){var b=16*Math.random()|0;
return("x"==a?b:b&3|8).toString(16)})},vob=function(a){return g.Yl(a,function(b){return{key:b.id,
name:b.name}})},wob=function(a,b){return g.nb(a,function(c){return c||b?!c!=!b?!1:c.id==b.id:!0})},W7=function(a,b){return g.nb(a,function(c){return U7(c,b)})},xob=function(){var a=(0,g.Nz)();
a&&eob(a,a.j.hk(!0))},X7=function(){var a=g.Qz("yt-remote-connected-devices")||[];
g.Lb(a);return a},yob=function(a){if(g.sb(a))return[];
var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return g.Yl(a,function(d,e){return 0==e?d:d.substring(c.length)})},zob=function(a){g.Pz("yt-remote-connected-devices",a,86400)},Y7=function(){if(Aob)return Aob;
var a=g.Qz("yt-remote-device-id");a||(a=uob(),g.Pz("yt-remote-device-id",a,31536E3));for(var b=X7(),c=1,d=a;g.rb(b,d);)c++,d=a+"#"+c;return Aob=d},Bob=function(){var a=X7(),b=Y7();
g.Sz()&&g.Nb(a,b);a=yob(a);if(g.sb(a))try{g.Ty("remote_sid")}catch(c){}else try{g.Ry("remote_sid",a.join(","),-1)}catch(c){}},Cob=function(){return g.Qz("yt-remote-session-browser-channel")},Dob=function(){return g.Qz("yt-remote-local-screens")||[]},Eob=function(){g.Pz("yt-remote-lounge-token-expiration",!0,86400)},Fob=function(a){5<a.length&&(a=a.slice(a.length-5));
var b=g.Yl(Dob(),function(d){return d.loungeToken}),c=g.Yl(a,function(d){return d.loungeToken});
g.Zl(c,function(d){return!g.rb(b,d)})&&Eob();
g.Pz("yt-remote-local-screens",a,31536E3)},Z7=function(a){a||(g.Rz("yt-remote-session-screen-id"),g.Rz("yt-remote-session-video-id"));
Bob();a=X7();g.wb(a,Y7());zob(a)},Gob=function(){if(!$7){var a=g.yq();
a&&($7=new g.mq(a))}},Hob=function(){Gob();
return $7?!!$7.get("yt-remote-use-staging-server"):!1},a8=function(a,b){g.nC[a]=!0;
var c=g.lC();c&&c.publish.apply(c,arguments);g.nC[a]=!1},Iob=function(){var a=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);
return a?parseInt(a[1],10):0},Job=function(a){return!!document.currentScript&&(-1!=document.currentScript.src.indexOf("?"+a)||-1!=document.currentScript.src.indexOf("&"+a))},Kob=function(){return"function"==typeof window.__onGCastApiAvailable?window.__onGCastApiAvailable:null},b8=function(a){a.length?Lob(a.shift(),function(){b8(a)}):Mob()},Nob=function(a){return"chrome-extension://"+a+"/cast_sender.js"},Lob=function(a,b,c){var d=document.createElement("script");
d.onerror=b;c&&(d.onload=c);g.fk(d,g.wr(a));(document.head||document.documentElement).appendChild(d)},Oob=function(){var a=Iob(),b=[];
if(1<a){var c=a-1;b.push("//web.archive.org/web/20230426093215/https://www.gstatic.com/eureka/clank/"+a+"/cast_sender.js");b.push("//web.archive.org/web/20230426093215/https://www.gstatic.com/eureka/clank/"+c+"/cast_sender.js")}return b},Mob=function(){var a=Kob();
a&&a(!1,"No cast extension found")},Qob=function(){if(Pob){var a=2,b=Kob(),c=function(){a--;
0==a&&b&&b(!0)};
window.__onGCastApiAvailable=c;Lob("//web.archive.org/web/20230426093215/https://www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",Mob,c)}},Rob=function(){Qob();
var a=Oob();a.push("//web.archive.org/web/20230426093215/https://www.gstatic.com/eureka/clank/cast_sender.js");b8(a)},Tob=function(){Qob();
var a=Oob();a.push.apply(a,g.u(Sob.map(Nob)));a.push("//web.archive.org/web/20230426093215/https://www.gstatic.com/eureka/clank/cast_sender.js");b8(a)},Uob=function(){this.j=c8();
this.j.jk("/client_streamz/youtube/living_room/mdx/channel/opened",{Xe:3,We:"channel_type"})},Vob=function(a,b){a.j.yl("/client_streamz/youtube/living_room/mdx/channel/opened",b)},Wob=function(){this.j=c8();
this.j.jk("/client_streamz/youtube/living_room/mdx/channel/closed",{Xe:3,We:"channel_type"})},Xob=function(a,b){a.j.yl("/client_streamz/youtube/living_room/mdx/channel/closed",b)},Yob=function(){this.j=c8();
this.j.jk("/client_streamz/youtube/living_room/mdx/channel/message_received",{Xe:3,We:"channel_type"})},Zob=function(a,b){a.j.yl("/client_streamz/youtube/living_room/mdx/channel/message_received",b)},$ob=function(){this.j=c8();
this.j.jk("/client_streamz/youtube/living_room/mdx/channel/error",{Xe:3,We:"channel_type"})},apb=function(a,b){a.j.yl("/client_streamz/youtube/living_room/mdx/channel/error",b)},bpb=function(){this.j=c8();
this.j.jk("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")},cpb=function(){this.j=c8();
this.j.jk("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")},d8=function(a,b,c){g.C.call(this);
this.I=null!=c?(0,g.Oa)(a,c):a;this.Fi=b;this.D=(0,g.Oa)(this.h_,this);this.j=!1;this.u=0;this.B=this.Gc=null;this.C=[]},e8=function(a,b,c){g.C.call(this);
this.C=null!=c?a.bind(c):a;this.Fi=b;this.B=null;this.j=!1;this.u=0;this.Gc=null},dpb=function(a){a.Gc=g.ag(function(){a.Gc=null;
a.j&&!a.u&&(a.j=!1,dpb(a))},a.Fi);
var b=a.B;a.B=null;a.C.apply(null,b)},f8=function(){},epb=function(){g.ib.call(this,"p")},fpb=function(){g.ib.call(this,"o")},hpb=function(){return gpb=gpb||new g.Fd},ipb=function(a){g.ib.call(this,"serverreachability",a)},g8=function(a){var b=hpb();
b.dispatchEvent(new ipb(b,a))},jpb=function(a){g.ib.call(this,"statevent",a)},h8=function(a){var b=hpb();
b.dispatchEvent(new jpb(b,a))},kpb=function(a,b,c,d){g.ib.call(this,"timingevent",a);
this.size=b;this.Lz=d},i8=function(a,b){if("function"!==typeof a)throw Error("Fn must not be null and must be a function");
return g.Ea.setTimeout(function(){a()},b)},lpb=function(){},j8=function(a,b,c,d){this.D=a;
this.C=b;this.Oc=c;this.Dc=d||1;this.ib=new g.Rk(this);this.Pb=45E3;a=g.HK?125:void 0;this.kb=new g.$f(a);this.La=null;this.B=!1;this.T=this.fb=this.J=this.Qa=this.ya=this.Xb=this.ea=null;this.oa=[];this.j=null;this.Z=0;this.I=this.Aa=null;this.Tb=-1;this.Ja=!1;this.tb=0;this.Ya=null;this.uc=this.Xa=this.jc=this.Ga=!1;this.u=new mpb},mpb=function(){this.B=null;
this.j="";this.u=!1},opb=function(a,b,c){a.Qa=1;
a.J=P7(b.clone());a.T=c;a.Ga=!0;npb(a,null)},npb=function(a,b){a.ya=Date.now();
k8(a);a.fb=a.J.clone();Q7(a.fb,"t",a.Dc);a.Z=0;var c=a.D.Qa;a.u=new mpb;a.j=ppb(a.D,c?b:null,!a.T);0<a.tb&&(a.Ya=new e8((0,g.Oa)(a.JQ,a,a.j),a.tb));a.ib.Ra(a.j,"readystatechange",a.k_);b=a.La?g.md(a.La):{};a.T?(a.Aa||(a.Aa="POST"),b["Content-Type"]="application/x-www-form-urlencoded",a.j.send(a.fb,a.Aa,a.T,b)):(a.Aa="GET",a.j.send(a.fb,a.Aa,null,b));g8(1)},qpb=function(a){return a.j?"GET"==a.Aa&&2!=a.Qa&&a.D.uf:!1},upb=function(a,b,c){for(var d=!0,e;!a.Ja&&a.Z<c.length;)if(e=rpb(a,c),e==l8){4==b&&
(a.I=4,h8(14),d=!1);
break}else if(e==spb){a.I=4;h8(15);d=!1;break}else tpb(a,e);qpb(a)&&e!=l8&&e!=spb&&(a.u.j="",a.Z=0);4!=b||0!=c.length||a.u.u||(a.I=1,h8(16),d=!1);a.B=a.B&&d;d?0<c.length&&!a.uc&&(a.uc=!0,a.D.LN(a)):(m8(a),n8(a))},rpb=function(a,b){var c=a.Z,d=b.indexOf("\n",c);
if(-1==d)return l8;c=Number(b.substring(c,d));if(isNaN(c))return spb;d+=1;if(d+c>b.length)return l8;b=b.slice(d,d+c);a.Z=d+c;return b},k8=function(a){a.Xb=Date.now()+a.Pb;
vpb(a,a.Pb)},vpb=function(a,b){if(null!=a.ea)throw Error("WatchDog timer not null");
a.ea=i8((0,g.Oa)(a.i_,a),b)},o8=function(a){a.ea&&(g.Ea.clearTimeout(a.ea),a.ea=null)},n8=function(a){a.D.Vg()||a.Ja||wpb(a.D,a)},m8=function(a){o8(a);
g.Za(a.Ya);a.Ya=null;a.kb.stop();a.ib.Ef();if(a.j){var b=a.j;a.j=null;b.abort();b.dispose()}},tpb=function(a,b){try{var c=a.D;
if(0!=c.oh&&(c.j==a||xpb(c.u,a)))if(!a.Xa&&xpb(c.u,a)&&3==c.oh){try{var d=c.vf.j.parse(b)}catch(z){d=null}if(Array.isArray(d)&&3==d.length){var e=d;if(0==e[0])a:{if(!c.T){if(c.j)if(c.j.ya+3E3<a.ya)p8(c),q8(c);else break a;ypb(c);h8(18)}}else c.Od=e[1],0<c.Od-c.Ya&&37500>e[2]&&c.Xa&&0==c.oa&&!c.Z&&(c.Z=i8((0,g.Oa)(c.l_,c),6E3));if(1>=zpb(c.u)&&c.Wc){try{c.Wc()}catch(z){}c.Wc=void 0}}else r8(c,11)}else if((a.Xa||c.j==a)&&p8(c),!g.Tb(b))for(e=c.vf.j.parse(b),b=0;b<e.length;b++){var f=e[b];c.Ya=f[0];
f=f[1];if(2==c.oh)if("c"==f[0]){c.C=f[1];c.uc=f[2];var h=f[3];null!=h&&(c.KQ=h);var l=f[5];null!=l&&"number"===typeof l&&0<l&&(c.ib=1.5*l);d=c;var m=a.fM();if(m){var n=g.uj(m,"X-Client-Wire-Protocol");if(n){var p=d.u;!p.j&&(g.Vb(n,"spdy")||g.Vb(n,"quic")||g.Vb(n,"h2"))&&(p.C=p.D,p.j=new Set,p.u&&(Apb(p,p.u),p.u=null))}if(d.Ga){var q=g.uj(m,"X-HTTP-Session-Id");q&&(d.ke=q,g.Jk(d.La,d.Ga,q))}}c.oh=3;c.D&&c.D.QQ();c.Lc&&(c.Vd=Date.now()-a.ya);d=c;var r=a;d.Ld=Bpb(d,d.Qa?d.uc:null,d.Dc);if(r.Xa){Cpb(d.u,
r);var v=r,x=d.ib;x&&v.setTimeout(x);v.ea&&(o8(v),k8(v));d.j=r}else Dpb(d);0<c.B.length&&s8(c)}else"stop"!=f[0]&&"close"!=f[0]||r8(c,7);else 3==c.oh&&("stop"==f[0]||"close"==f[0]?"stop"==f[0]?r8(c,7):c.disconnect():"noop"!=f[0]&&c.D&&c.D.PQ(f),c.oa=0)}g8(4)}catch(z){}},Epb=function(a,b){this.j=a;
this.map=b;this.context=null},Fpb=function(a){this.D=a||10;
g.Ea.PerformanceNavigationTiming?(a=g.Ea.performance.getEntriesByType("navigation"),a=0<a.length&&("hq"==a[0].nextHopProtocol||"h2"==a[0].nextHopProtocol)):a=!!(g.Ea.chrome&&g.Ea.chrome.loadTimes&&g.Ea.chrome.loadTimes()&&g.Ea.chrome.loadTimes().wasFetchedViaSpdy);this.C=a?this.D:1;this.j=null;1<this.C&&(this.j=new Set);this.u=null;this.B=[]},Gpb=function(a){return a.u?!0:a.j?a.j.size>=a.C:!1},zpb=function(a){return a.u?1:a.j?a.j.size:0},xpb=function(a,b){return a.u?a.u==b:a.j?a.j.has(b):!1},Apb=
function(a,b){a.j?a.j.add(b):a.u=b},Cpb=function(a,b){a.u&&a.u==b?a.u=null:a.j&&a.j.has(b)&&a.j.delete(b)},Hpb=function(a){if(null!=a.u)return a.B.concat(a.u.oa);
if(null!=a.j&&0!==a.j.size){var b=a.B;a=g.t(a.j.values());for(var c=a.next();!c.done;c=a.next())b=b.concat(c.value.oa);return b}return g.Bb(a.B)},Ipb=function(a,b){var c=new lpb;
if(g.Ea.Image){var d=new Image;d.onload=g.Pa(t8,c,d,"TestLoadImage: loaded",!0,b);d.onerror=g.Pa(t8,c,d,"TestLoadImage: error",!1,b);d.onabort=g.Pa(t8,c,d,"TestLoadImage: abort",!1,b);d.ontimeout=g.Pa(t8,c,d,"TestLoadImage: timeout",!1,b);g.Ea.setTimeout(function(){if(d.ontimeout)d.ontimeout()},1E4);
d.src=a}else b(!1)},t8=function(a,b,c,d,e){try{b.onload=null,b.onerror=null,b.onabort=null,b.ontimeout=null,e(d)}catch(f){}},Jpb=function(){this.j=new f8},Kpb=function(a,b,c){var d=c||"";
try{g.Ak(a,function(e,f){var h=e;g.Ja(e)&&(h=g.Mi(e));b.push(d+f+"="+encodeURIComponent(h))})}catch(e){throw b.push(d+"type="+encodeURIComponent("_badmap")),e;
}},u8=function(a,b,c){return c&&c.i4?c.i4[a]||b:b},Lpb=function(a){this.B=[];
this.uc=this.Ld=this.La=this.Dc=this.j=this.ke=this.Ga=this.Ja=this.J=this.Xb=this.ea=null;this.Kf=this.fb=0;this.If=u8("failFast",!1,a);this.Xa=this.Z=this.T=this.I=this.D=null;this.Oc=!0;this.Od=this.Ya=-1;this.jc=this.oa=this.ya=0;this.Hf=u8("baseRetryDelayMs",5E3,a);this.Vf=u8("retryDelaySeedMs",1E4,a);this.Jf=u8("forwardChannelMaxRetries",2,a);this.Nd=u8("forwardChannelRequestTimeoutMs",2E4,a);this.je=a&&a.P8a||void 0;this.uf=a&&a.N8a||!1;this.ib=void 0;this.Qa=a&&a.m9||!1;this.C="";this.u=new Fpb(a&&
a.B6a);this.vf=new Jpb;this.Pb=a&&a.S6a||!1;this.tb=a&&a.I6a||!1;this.Pb&&this.tb&&(this.tb=!1);this.Wf=a&&a.v6a||!1;a&&a.U6a&&(this.Oc=!1);this.Lc=!this.Pb&&this.Oc&&a&&a.E6a||!1;this.rd=void 0;a&&a.vV&&0<a.vV&&(this.rd=a.vV);this.Wc=void 0;this.Vd=0;this.kb=!1;this.Tb=this.Aa=null},q8=function(a){a.j&&(Mpb(a),a.j.cancel(),a.j=null)},Npb=function(a){q8(a);
a.T&&(g.Ea.clearTimeout(a.T),a.T=null);p8(a);a.u.cancel();a.I&&("number"===typeof a.I&&g.Ea.clearTimeout(a.I),a.I=null)},s8=function(a){Gpb(a.u)||a.I||(a.I=!0,g.Mf(a.MQ,a),a.ya=0)},Ppb=function(a,b){if(zpb(a.u)>=a.u.C-(a.I?1:0))return!1;
if(a.I)return a.B=b.oa.concat(a.B),!0;if(1==a.oh||2==a.oh||a.ya>=(a.If?0:a.Jf))return!1;a.I=i8((0,g.Oa)(a.MQ,a,b),Opb(a,a.ya));a.ya++;return!0},Rpb=function(a,b){var c;
b?c=b.Oc:c=a.fb++;var d=a.La.clone();g.Jk(d,"SID",a.C);g.Jk(d,"RID",c);g.Jk(d,"AID",a.Ya);v8(a,d);a.J&&a.ea&&g.Qk(d,a.J,a.ea);c=new j8(a,a.C,c,a.ya+1);null===a.J&&(c.La=a.ea);b&&(a.B=b.oa.concat(a.B));b=Qpb(a,c,1E3);c.setTimeout(Math.round(.5*a.Nd)+Math.round(.5*a.Nd*Math.random()));Apb(a.u,c);opb(c,d,b)},v8=function(a,b){a.Ja&&g.Tc(a.Ja,function(c,d){g.Jk(b,d,c)});
a.D&&g.Ak({},function(c,d){g.Jk(b,d,c)})},Qpb=function(a,b,c){c=Math.min(a.B.length,c);
var d=a.D?(0,g.Oa)(a.D.m_,a.D,a):null;a:for(var e=a.B,f=-1;;){var h=["count="+c];-1==f?0<c?(f=e[0].j,h.push("ofs="+f)):f=0:h.push("ofs="+f);for(var l=!0,m=0;m<c;m++){var n=e[m].j,p=e[m].map;n-=f;if(0>n)f=Math.max(0,e[m].j-100),l=!1;else try{Kpb(p,h,"req"+n+"_")}catch(q){d&&d(p)}}if(l){d=h.join("&");break a}}a=a.B.splice(0,c);b.oa=a;return d},Dpb=function(a){a.j||a.T||(a.jc=1,g.Mf(a.LQ,a),a.oa=0)},ypb=function(a){if(a.j||a.T||3<=a.oa)return!1;
a.jc++;a.T=i8((0,g.Oa)(a.LQ,a),Opb(a,a.oa));a.oa++;return!0},Mpb=function(a){null!=a.Aa&&(g.Ea.clearTimeout(a.Aa),a.Aa=null)},Spb=function(a){a.j=new j8(a,a.C,"rpc",a.jc);
null===a.J&&(a.j.La=a.ea);a.j.tb=0;var b=a.Ld.clone();g.Jk(b,"RID","rpc");g.Jk(b,"SID",a.C);g.Jk(b,"AID",a.Ya);g.Jk(b,"CI",a.Xa?"0":"1");!a.Xa&&a.rd&&g.Jk(b,"TO",a.rd);g.Jk(b,"TYPE","xmlhttp");v8(a,b);a.J&&a.ea&&g.Qk(b,a.J,a.ea);a.ib&&a.j.setTimeout(a.ib);var c=a.j;a=a.uc;c.Qa=1;c.J=P7(b.clone());c.T=null;c.Ga=!0;npb(c,a)},p8=function(a){null!=a.Z&&(g.Ea.clearTimeout(a.Z),a.Z=null)},wpb=function(a,b){var c=null;
if(a.j==b){p8(a);Mpb(a);a.j=null;var d=2}else if(xpb(a.u,b))c=b.oa,Cpb(a.u,b),d=1;else return;if(0!=a.oh)if(b.B)if(1==d){c=b.T?b.T.length:0;b=Date.now()-b.ya;var e=a.ya;d=hpb();d.dispatchEvent(new kpb(d,c,b,e));s8(a)}else Dpb(a);else{var f=b.Tb;e=b.getLastError();if(3==e||0==e&&0<f||!(1==d&&Ppb(a,b)||2==d&&ypb(a)))switch(c&&0<c.length&&(b=a.u,b.B=b.B.concat(c)),e){case 1:r8(a,5);break;case 4:r8(a,10);break;case 3:r8(a,6);break;default:r8(a,2)}}},Opb=function(a,b){var c=a.Hf+Math.floor(Math.random()*
a.Vf);
a.isActive()||(c*=2);return c*b},r8=function(a,b){if(2==b){var c=null;
a.D&&(c=null);var d=(0,g.Oa)(a.s9,a);c||(c=new g.Bk("//web.archive.org/web/20230426093215/https://www.google.com/images/cleardot.gif"),g.Ea.location&&"http"==g.Ea.location.protocol||g.Ck(c,"https"),P7(c));Ipb(c.toString(),d)}else h8(2);a.oh=0;a.D&&a.D.OQ(b);Tpb(a);Npb(a)},Tpb=function(a){a.oh=0;
a.Tb=[];if(a.D){var b=Hpb(a.u);if(0!=b.length||0!=a.B.length)g.Cb(a.Tb,b),g.Cb(a.Tb,a.B),a.u.B.length=0,g.Bb(a.B),a.B.length=0;a.D.NQ()}},Upb=function(a){if(0==a.oh)return a.Tb;
var b=[];g.Cb(b,Hpb(a.u));g.Cb(b,a.B);return b},Bpb=function(a,b,c){var d=g.Kk(c);
""!=d.j?(b&&g.Dk(d,b+"."+d.j),g.Ek(d,d.C)):(d=g.Ea.location,d=kob(d.protocol,b?b+"."+d.hostname:d.hostname,+d.port,c));b=a.Ga;c=a.ke;b&&c&&g.Jk(d,b,c);g.Jk(d,"VER",a.KQ);v8(a,d);return d},ppb=function(a,b,c){if(b&&!a.Qa)throw Error("Can't create secondary domain capable XhrIo object.");
b=c&&a.uf&&!a.je?new g.nj(new g.wk({YX:!0})):new g.nj(a.je);b.I=a.Qa;return b},Vpb=function(){},Wpb=function(){if(g.mf&&!g.Oc(10))throw Error("Environmental error: no available transport.");
},x8=function(a,b){g.Fd.call(this);
this.j=new Lpb(b);this.D=a;this.u=b&&b.Q4||null;a=b&&b.P4||null;b&&b.A6a&&(a?a["X-Client-Protocol"]="webchannel":a={"X-Client-Protocol":"webchannel"});this.j.ea=a;a=b&&b.E7a||null;b&&b.CV&&(a?a["X-WebChannel-Content-Type"]=b.CV:a={"X-WebChannel-Content-Type":b.CV});b&&b.YS&&(a?a["X-WebChannel-Client-Profile"]=b.YS:a={"X-WebChannel-Client-Profile":b.YS});this.j.Xb=a;(a=b&&b.D7a)&&!g.Tb(a)&&(this.j.J=a);this.I=b&&b.m9||!1;this.C=b&&b.o8a||!1;(b=b&&b.e4)&&!g.Tb(b)&&(this.j.Ga=b,g.$c(this.u,b)&&g.id(this.u,
b));this.B=new w8(this)},Xpb=function(a){epb.call(this);
a.__headers__&&(this.headers=a.__headers__,this.statusCode=a.__status__,delete a.__headers__,delete a.__status__);var b=a.__sm__;b?this.data=(this.j=g.Xc(b))?g.jd(b,this.j):b:this.data=a},Ypb=function(a){fpb.call(this);
this.status=1;this.errorCode=a},w8=function(a){this.j=a},Zpb=function(a,b){this.u=a;
this.j=b},$pb=function(a){return Upb(a.j).map(function(b){b=b.map;
"__data__"in b&&(b=b.__data__,b=a.u.C?job(b):b);return b})},y8=function(a,b){if("function"!==typeof a)throw Error("Fn must not be null and must be a function");
return g.Ea.setTimeout(function(){a()},b)},A8=function(a){z8.dispatchEvent(new aqb(z8,a))},aqb=function(a){g.ib.call(this,"statevent",a)},B8=function(a,b,c,d){this.j=a;
this.C=b;this.J=c;this.I=d||1;this.u=45E3;this.B=new g.Rk(this);this.D=new g.$f;this.D.setInterval(250)},cqb=function(a,b,c){a.Yw=1;
a.vr=P7(b.clone());a.Yt=c;a.Ga=!0;bqb(a,null)},dqb=function(a,b,c,d,e){a.Yw=1;
a.vr=P7(b.clone());a.Yt=null;a.Ga=c;e&&(a.EX=!1);bqb(a,d)},bqb=function(a,b){a.Xw=Date.now();
C8(a);a.xr=a.vr.clone();Q7(a.xr,"t",a.I);a.HE=0;a.Qi=a.j.pJ(a.j.IA()?b:null);0<a.nJ&&(a.FE=new e8((0,g.Oa)(a.RQ,a,a.Qi),a.nJ));a.B.Ra(a.Qi,"readystatechange",a.o_);b=a.Xt?g.md(a.Xt):{};a.Yt?(a.GE="POST",b["Content-Type"]="application/x-www-form-urlencoded",a.Qi.send(a.xr,a.GE,a.Yt,b)):(a.GE="GET",a.EX&&!g.Pc&&(b.Connection="close"),a.Qi.send(a.xr,a.GE,null,b));a.j.pn(1)},gqb=function(a,b){var c=a.HE,d=b.indexOf("\n",c);
if(-1==d)return eqb;c=Number(b.substring(c,d));if(isNaN(c))return fqb;d+=1;if(d+c>b.length)return eqb;b=b.slice(d,d+c);a.HE=d+c;return b},iqb=function(a,b){a.Xw=Date.now();
C8(a);var c=b?window.location.hostname:"";a.xr=a.vr.clone();g.Jk(a.xr,"DOMAIN",c);g.Jk(a.xr,"t",a.I);try{a.Gn=new ActiveXObject("htmlfile")}catch(m){D8(a);a.wr=7;A8(22);E8(a);return}var d="<html><body>";if(b){var e="";for(b=0;b<c.length;b++){var f=c.charAt(b);if("<"==f)f=e+"\\x3c";else if(">"==f)f=e+"\\x3e";else{if(f in F8)f=F8[f];else if(f in hqb)f=F8[f]=hqb[f];else{var h=f.charCodeAt(0);if(31<h&&127>h)var l=f;else{if(256>h){if(l="\\x",16>h||256<h)l+="0"}else l="\\u",4096>h&&(l+="0");l+=h.toString(16).toUpperCase()}f=
F8[f]=l}f=e+f}e=f}d+='<script>document.domain="'+e+'"\x3c/script>'}d+="</body></html>";g.Xd("b/12014412");c=g.we(d);a.Gn.open();a.Gn.write(g.ve(c));a.Gn.close();a.Gn.parentWindow.m=(0,g.Oa)(a.O7,a);a.Gn.parentWindow.d=(0,g.Oa)(a.HW,a,!0);a.Gn.parentWindow.rpcClose=(0,g.Oa)(a.HW,a,!1);c=a.Gn.createElement("DIV");a.Gn.parentWindow.document.body.appendChild(c);d=g.he(a.xr.toString());d=g.Me(g.be(d));g.Xd("b/12014412");d=g.we('<iframe src="'+d+'"></iframe>');g.Yba(c,d);a.j.pn(1)},C8=function(a){a.oJ=
Date.now()+a.u;
jqb(a,a.u)},jqb=function(a,b){if(null!=a.Zw)throw Error("WatchDog timer not null");
a.Zw=y8((0,g.Oa)(a.n_,a),b)},kqb=function(a){a.Zw&&(g.Ea.clearTimeout(a.Zw),a.Zw=null)},E8=function(a){a.j.Vg()||a.Wt||a.j.IE(a)},D8=function(a){kqb(a);
g.Za(a.FE);a.FE=null;a.D.stop();a.B.Ef();if(a.Qi){var b=a.Qi;a.Qi=null;b.abort();b.dispose()}a.Gn&&(a.Gn=null)},lqb=function(a,b){try{a.j.SQ(a,b),a.j.pn(4)}catch(c){}},nqb=function(a,b,c,d,e){if(0==d)c(!1);
else{var f=e||0;d--;mqb(a,b,function(h){h?c(!0):g.Ea.setTimeout(function(){nqb(a,b,c,d,f)},f)})}},mqb=function(a,b,c){var d=new Image;
d.onload=function(){try{G8(d),c(!0)}catch(e){}};
d.onerror=function(){try{G8(d),c(!1)}catch(e){}};
d.onabort=function(){try{G8(d),c(!1)}catch(e){}};
d.ontimeout=function(){try{G8(d),c(!1)}catch(e){}};
g.Ea.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b);
d.src=a},G8=function(a){a.onload=null;
a.onerror=null;a.onabort=null;a.ontimeout=null},oqb=function(a){this.j=a;
this.u=new f8},pqb=function(a){var b=H8(a.j,a.fB,"/mail/images/cleardot.gif");
P7(b);nqb(b.toString(),5E3,(0,g.Oa)(a.e2,a),3,2E3);a.pn(1)},qqb=function(a){var b=a.j.I;
if(null!=b)A8(5),b?(A8(11),I8(a.j,a,!1)):(A8(12),I8(a.j,a,!0));else if(a.wj=new B8(a),a.wj.Xt=a.qJ,b=a.j,b=H8(b,b.IA()?a.HA:null,a.rJ),A8(5),!g.mf||g.Oc(10))Q7(b,"TYPE","xmlhttp"),dqb(a.wj,b,!1,a.HA,!1);else{Q7(b,"TYPE","html");var c=a.wj;a=!!a.HA;c.Yw=3;c.vr=P7(b.clone());iqb(c,a)}},rqb=function(a,b,c){this.j=1;
this.u=[];this.B=[];this.D=new f8;this.ea=a||null;this.I=null!=b?b:null;this.T=c||!1},sqb=function(a,b){this.j=a;
this.map=b;this.context=null},tqb=function(a,b,c,d){g.ib.call(this,"timingevent",a);
this.size=b;this.Lz=d},uqb=function(a){g.ib.call(this,"serverreachability",a)},wqb=function(a){a.p_(1,0);
a.JE=H8(a,null,a.sJ);vqb(a)},xqb=function(a){a.Lr&&(a.Lr.abort(),a.Lr=null);
a.Gg&&(a.Gg.cancel(),a.Gg=null);a.Gp&&(g.Ea.clearTimeout(a.Gp),a.Gp=null);J8(a);a.Fj&&(a.Fj.cancel(),a.Fj=null);a.yr&&(g.Ea.clearTimeout(a.yr),a.yr=null)},yqb=function(a,b){if(0==a.j)throw Error("Invalid operation: sending map when state is closed");
a.u.push(new sqb(a.q_++,b));2!=a.j&&3!=a.j||vqb(a)},zqb=function(a){var b=0;
a.Gg&&b++;a.Fj&&b++;return b},vqb=function(a){a.Fj||a.yr||(a.yr=y8((0,g.Oa)(a.WQ,a),0),a.bx=0)},Cqb=function(a,b){if(1==a.j){if(!b){a.KA=Math.floor(1E5*Math.random());
b=a.KA++;var c=new B8(a,"",b);c.Xt=a.Ln;var d=Aqb(a),e=a.JE.clone();g.Jk(e,"RID",b);g.Jk(e,"CVER","1");K8(a,e);cqb(c,e,d);a.Fj=c;a.j=2}}else 3==a.j&&(b?Bqb(a,b):0==a.u.length||a.Fj||Bqb(a))},Bqb=function(a,b){if(b)if(6<a.Zt){a.u=a.B.concat(a.u);
a.B.length=0;var c=a.KA-1;b=Aqb(a)}else c=b.J,b=b.Yt;else c=a.KA++,b=Aqb(a);var d=a.JE.clone();g.Jk(d,"SID",a.C);g.Jk(d,"RID",c);g.Jk(d,"AID",a.ex);K8(a,d);c=new B8(a,a.C,c,a.bx+1);c.Xt=a.Ln;c.setTimeout(1E4+Math.round(1E4*Math.random()));a.Fj=c;cqb(c,d,b)},K8=function(a,b){a.oi&&(a=a.oi.aR())&&g.Tc(a,function(c,d){g.Jk(b,d,c)})},Aqb=function(a){var b=Math.min(a.u.length,1E3),c=["count="+b];
if(6<a.Zt&&0<b){var d=a.u[0].j;c.push("ofs="+d)}else d=0;for(var e={},f=0;f<b;e={Iw:e.Iw},f++){e.Iw=a.u[f].j;var h=a.u[f].map;e.Iw=6>=a.Zt?f:e.Iw-d;try{g.Tc(h,function(l){return function(m,n){c.push("req"+l.Iw+"_"+n+"="+encodeURIComponent(m))}}(e))}catch(l){c.push("req"+e.Iw+"_type="+encodeURIComponent("_badmap"))}}a.B=a.B.concat(a.u.splice(0,b));
return c.join("&")},Dqb=function(a){a.Gg||a.Gp||(a.J=1,a.Gp=y8((0,g.Oa)(a.VQ,a),0),a.ax=0)},Fqb=function(a){if(a.Gg||a.Gp||3<=a.ax)return!1;
a.J++;a.Gp=y8((0,g.Oa)(a.VQ,a),Eqb(a,a.ax));a.ax++;return!0},I8=function(a,b,c){a.xI=null==a.I?c:!a.I;
a.Mn=b.Fp;a.T||wqb(a)},J8=function(a){null!=a.au&&(g.Ea.clearTimeout(a.au),a.au=null)},Eqb=function(a,b){var c=5E3+Math.floor(1E4*Math.random());
a.isActive()||(c*=2);return c*b},L8=function(a,b){if(2==b||9==b){var c=null;
a.oi&&(c=null);var d=(0,g.Oa)(a.r9,a);c||(c=new g.Bk("//web.archive.org/web/20230426093215/https://www.google.com/images/cleardot.gif"),P7(c));mqb(c.toString(),1E4,d)}else A8(2);Gqb(a,b)},Gqb=function(a,b){a.j=0;
a.oi&&a.oi.XQ(b);Hqb(a);xqb(a)},Hqb=function(a){a.j=0;
a.Mn=-1;if(a.oi)if(0==a.B.length&&0==a.u.length)a.oi.tJ();else{var b=g.Bb(a.B),c=g.Bb(a.u);a.B.length=0;a.u.length=0;a.oi.tJ(b,c)}},H8=function(a,b,c){var d=g.Kk(c);
if(""!=d.j)b&&g.Dk(d,b+"."+d.j),g.Ek(d,d.C);else{var e=window.location;d=kob(e.protocol,b?b+"."+e.hostname:e.hostname,+e.port,c)}a.JA&&g.Tc(a.JA,function(f,h){g.Jk(d,h,f)});
g.Jk(d,"VER",a.Zt);K8(a,d);return d},Iqb=function(){},Jqb=function(){this.j=[];
this.u=[]},Kqb=function(a){g.ib.call(this,"channelMessage");
this.message=a},Lqb=function(a){g.ib.call(this,"channelError");
this.error=a},Mqb=function(a,b){this.action=a;
this.params=b||{}},M8=function(a,b){g.C.call(this);
this.j=new g.Ip(this.G7,0,this);g.E(this,this.j);this.Fi=5E3;this.u=0;if("function"===typeof a)b&&(a=(0,g.Oa)(a,b));else if(a&&"function"===typeof a.handleEvent)a=(0,g.Oa)(a.handleEvent,a);else throw Error("Invalid listener argument");this.B=a},Nqb=function(){},c8=function(){if(!N8){N8=new g.cg(new Nqb);
var a=g.hy("client_streamz_web_flush_count",-1);-1!==a&&(N8.C=a)}return N8},Oqb=function(a,b,c,d,e){c=void 0===c?!1:c;
d=void 0===d?function(){return""}:d;
e=void 0===e?!1:e;this.ya=a;this.J=b;this.B=new g.lq;this.u=new M8(this.O8,this);this.j=null;this.Z=!1;this.I=null;this.ea="";this.T=this.D=0;this.C=[];this.Qa=c;this.oa=d;this.Xa=e;this.La=new Uob;this.Aa=new Wob;this.Ja=new Yob;this.Ga=new $ob;this.Ya=new bpb;this.fb=new cpb},Pqb=function(a){if(a.j){var b=a.oa(),c=a.j.Ln||{};
b?c["x-youtube-lounge-xsrf-token"]=b:delete c["x-youtube-lounge-xsrf-token"];a.j.Ln=c}},O8=function(a){this.port=this.domain="";
this.j="/api/lounge";this.u=!0;a=a||document.location.href;var b=Number(g.Ti(4,a))||"";b&&(this.port=":"+b);this.domain=g.Ui(a)||"";a=g.hc();0<=a.search("MSIE")&&(a=a.match(/MSIE ([\d.]+)/)[1],0>g.ec(a,"10.0")&&(this.u=!1))},P8=function(a,b){var c=a.j;
a.u&&(c="https://"+a.domain+a.port+a.j);return g.Zi(c+b,{})},Qqb=function(a,b,c,d,e){a={format:"JSON",
method:"POST",context:a,timeout:5E3,withCredentials:!1,onSuccess:g.Pa(a.C,d,!0),onError:g.Pa(a.B,e),onTimeout:g.Pa(a.D,e)};c&&(a.postParams=c,a.headers={"Content-Type":"application/x-www-form-urlencoded"});return g.Hy(b,a)},Rqb=function(a,b){g.Fd.call(this);
var c=this;this.ud=a();this.ud.subscribe("handlerOpened",this.u_,this);this.ud.subscribe("handlerClosed",this.s_,this);this.ud.subscribe("handlerError",function(d,e){c.onError(e)});
this.ud.subscribe("handlerMessage",this.t_,this);this.j=b},Sqb=function(a,b,c){var d=this;
c=void 0===c?function(){return""}:c;
var e=void 0===e?new Wpb:e;var f=void 0===f?new g.lq:f;this.pathPrefix=a;this.j=b;this.ya=c;this.D=f;this.T=null;this.ea=this.J=0;this.channel=null;this.I=0;this.B=new M8(function(){d.B.isActive();var h;0===(null==(h=d.channel)?void 0:zpb((new Zpb(h,h.j)).j.u))&&d.connect(d.T,d.J)});
this.C={};this.u={};this.Z=!1;this.logger=null;this.oa=[];this.Kg=void 0;this.La=new Uob;this.Aa=new Wob;this.Ja=new Yob;this.Ga=new $ob},Tqb=function(a){g.ud(a.channel,"m",function(){a.I=3;
a.B.reset();a.T=null;a.J=0;for(var b=g.t(a.oa),c=b.next();!c.done;c=b.next())c=c.value,a.channel&&a.channel.send(c);a.oa=[];a.ma("webChannelOpened");Vob(a.La,"WEB_CHANNEL")});
g.ud(a.channel,"n",function(){a.I=0;a.B.isActive()||a.ma("webChannelClosed");var b,c=null==(b=a.channel)?void 0:$pb(new Zpb(b,b.j));c&&(a.oa=[].concat(g.u(c)));Xob(a.Aa,"WEB_CHANNEL")});
g.ud(a.channel,"p",function(b){var c=b.data;"gracefulReconnect"===c[0]?(a.B.start(),a.channel&&a.channel.close()):a.ma("webChannelMessage",new Mqb(c[0],c[1]));a.Kg=b.statusCode;Zob(a.Ja,"WEB_CHANNEL")});
g.ud(a.channel,"o",function(){401===a.Kg||a.B.start();a.ma("webChannelError");apb(a.Ga,"WEB_CHANNEL")})},Uqb=function(a){var b=a.ya();
b?a.C["x-youtube-lounge-xsrf-token"]=b:delete a.C["x-youtube-lounge-xsrf-token"]},Vqb=function(a){g.Fd.call(this);
this.j=a();this.j.subscribe("webChannelOpened",this.x_,this);this.j.subscribe("webChannelClosed",this.v_,this);this.j.subscribe("webChannelError",this.onError,this);this.j.subscribe("webChannelMessage",this.w_,this)},Wqb=function(a,b,c,d,e){function f(){return new Oqb(P8(a,"/bc"),b,!1,c,d)}
c=void 0===c?function(){return""}:c;
return g.gy("enable_mdx_web_channel_desktop")?new Vqb(function(){return new Sqb(P8(a,"/wc"),b,c)}):new Rqb(f,e)},$qb=function(){var a=Xqb;
Yqb();Q8.push(a);Zqb()},R8=function(a,b){Yqb();
var c=arb(a,String(b));g.sb(Q8)?brb(c):(Zqb(),g.Ob(Q8,function(d){d(c)}))},S8=function(a){R8("CP",a)},Yqb=function(){Q8||(Q8=g.Ga("yt.mdx.remote.debug.handlers_")||[],g.Fa("yt.mdx.remote.debug.handlers_",Q8))},brb=function(a){var b=(T8+1)%50;
T8=b;U8[b]=a;V8||(V8=49==b)},Zqb=function(){var a=Q8;
if(U8[0]){var b=V8?T8:-1;do{b=(b+1)%50;var c=U8[b];g.Ob(a,function(d){d(c)})}while(b!=T8);
U8=Array(50);T8=-1;V8=!1}},arb=function(a,b){var c=(Date.now()-crb)/1E3;
c.toFixed&&(c=c.toFixed(3));var d=[];d.push("[",c+"s","] ");d.push("[","yt.mdx.remote","] ");d.push(a+": "+b,"\n");return d.join("")},W8=function(a){g.dE.call(this);
this.I=a;this.screens=[]},drb=function(a,b){var c=a.get(b.uuid)||a.get(b.id);
if(c)return a=c.name,c.id=b.id||c.id,c.name=b.name,c.token=b.token,c.uuid=b.uuid||c.uuid,c.name!=a;a.screens.push(b);return!0},erb=function(a,b){var c=a.screens.length!=b.length;
a.screens=g.Rn(a.screens,function(f){return!!wob(b,f)});
for(var d=0,e=b.length;d<e;d++)c=drb(a,b[d])||c;return c},frb=function(a,b){var c=a.screens.length;
a.screens=g.Rn(a.screens,function(d){return!(d||b?!d!=!b?0:d.id==b.id:1)});
return a.screens.length<c},grb=function(a,b,c,d,e){g.dE.call(this);
this.B=a;this.J=b;this.C=c;this.I=d;this.D=e;this.u=0;this.j=null;this.Gc=NaN},Y8=function(a){W8.call(this,"LocalScreenService");
this.u=a;this.j=NaN;X8(this);this.info("Initializing with "+tob(this.screens))},hrb=function(a){if(a.screens.length){var b=g.Yl(a.screens,function(d){return d.id}),c=P8(a.u,"/pairing/get_lounge_token_batch");
Qqb(a.u,c,{screen_ids:b.join(",")},(0,g.Oa)(a.F3,a),(0,g.Oa)(a.E3,a))}},X8=function(a){if(g.gy("deprecate_pair_servlet_enabled"))return erb(a,[]);
var b=sob(Dob());b=g.Rn(b,function(c){return!c.uuid});
return erb(a,b)},Z8=function(a,b){Fob(g.Yl(a.screens,qob));
b&&Eob()},jrb=function(a,b){g.dE.call(this);
this.I=b;b=(b=g.Qz("yt-remote-online-screen-ids")||"")?b.split(","):[];for(var c={},d=this.I(),e=d.length,f=0;f<e;++f){var h=d[f].id;c[h]=g.rb(b,h)}this.j=c;this.D=a;this.B=this.C=NaN;this.u=null;irb("Initialized with "+g.Mi(this.j))},krb=function(a,b,c){var d=P8(a.D,"/pairing/get_screen_availability");
Qqb(a.D,d,{lounge_token:b.token},(0,g.Oa)(function(e){e=e.screens||[];for(var f=e.length,h=0;h<f;++h)if(e[h].loungeToken==b.token){c("online"==e[h].status);return}c(!1)},a),(0,g.Oa)(function(){c(!1)},a))},mrb=function(a,b){a:if(hob(b)!=hob(a.j))var c=!1;
else{c=g.Zc(b);for(var d=c.length,e=0;e<d;++e)if(!a.j[c[e]]){c=!1;break a}c=!0}c||(irb("Updated online screens: "+g.Mi(a.j)),a.j=b,a.ma("screenChange"));lrb(a)},$8=function(a){isNaN(a.B)||g.Ey(a.B);
a.B=g.Cy((0,g.Oa)(a.OO,a),0<a.C&&a.C<g.Ra()?2E4:1E4)},irb=function(a){R8("OnlineScreenService",a)},nrb=function(a){var b={};
g.Ob(a.I(),function(c){c.token?b[c.token]=c.id:this.Uf("Requesting availability of screen w/o lounge token.")});
return b},lrb=function(a){a=g.Zc(g.Uc(a.j,function(b){return b}));
g.Lb(a);a.length?g.Pz("yt-remote-online-screen-ids",a.join(","),60):g.Rz("yt-remote-online-screen-ids")},a9=function(a,b){b=void 0===b?!1:b;
W8.call(this,"ScreenService");this.C=a;this.J=b;this.j=this.u=null;this.B=[];this.D={};orb(this)},qrb=function(a,b,c,d,e,f){a.info("getAutomaticScreenByIds "+c+" / "+b);
c||(c=a.D[b]);var h=a.yk(),l=c?W7(h,c):null;c&&(a.J||l)||(l=W7(h,b));if(l){l.uuid=b;var m=b9(a,l);krb(a.j,m,function(n){e(n?m:null)})}else c?prb(a,c,(0,g.Oa)(function(n){var p=b9(this,new T7({name:d,
screenId:c,loungeToken:n,dialId:b||""}));krb(this.j,p,function(q){e(q?p:null)})},a),f):e(null)},rrb=function(a,b){for(var c=a.screens.length,d=0;d<c;++d)if(a.screens[d].name==b)return a.screens[d];
return null},srb=function(a,b,c){krb(a.j,b,c)},prb=function(a,b,c,d){a.info("requestLoungeToken_ for "+b);
var e={postParams:{screen_ids:b},method:"POST",context:a,onSuccess:function(f,h){f=h&&h.screens||[];f[0]&&f[0].screenId==b?c(f[0].loungeToken):d(Error("Missing lounge token in token response"))},
onError:function(){d(Error("Request screen lounge token failed"))}};
g.Hy(P8(a.C,"/pairing/get_lounge_token_batch"),e)},trb=function(a){a.screens=a.u.yk();
var b=a.D,c={},d;for(d in b)c[b[d]]=d;b=a.screens.length;for(d=0;d<b;++d){var e=a.screens[d];e.uuid=c[e.id]||""}a.info("Updated manual screens: "+tob(a.screens))},orb=function(a){urb(a);
a.u=new Y8(a.C);a.u.subscribe("screenChange",(0,g.Oa)(a.O3,a));trb(a);a.J||(a.B=sob(g.Qz("yt-remote-automatic-screen-cache")||[]));urb(a);a.info("Initializing automatic screens: "+tob(a.B));a.j=new jrb(a.C,(0,g.Oa)(a.yk,a,!0));a.j.subscribe("screenChange",(0,g.Oa)(function(){this.ma("onlineScreenChange")},a))},b9=function(a,b){var c=a.get(b.id);
c?(c.uuid=b.uuid,b=c):((c=W7(a.B,b.uuid))?(c.id=b.id,c.token=b.token,b=c):a.B.push(b),a.J||vrb(a));urb(a);a.D[b.uuid]=b.id;g.Pz("yt-remote-device-id-map",a.D,31536E3);return b},vrb=function(a){a=g.Rn(a.B,function(b){return"shortLived"!=b.idType});
g.Pz("yt-remote-automatic-screen-cache",g.Yl(a,qob))},urb=function(a){a.D=g.Qz("yt-remote-device-id-map")||{}},c9=function(a,b,c){g.dE.call(this);
this.Ga=c;this.C=a;this.u=b;this.j=null},d9=function(a,b){a.j=b;
a.ma("sessionScreen",a.j)},wrb=function(a,b){a.j&&(a.j.token=b,b9(a.C,a.j));
a.ma("sessionScreen",a.j)},e9=function(a,b){R8(a.Ga,b)},f9=function(a,b,c){c9.call(this,a,b,"CastSession");
var d=this;this.config_=c;this.B=null;this.oa=(0,g.Oa)(this.C_,this);this.Aa=(0,g.Oa)(this.Y7,this);this.Z=g.Cy(function(){xrb(d,null)},12E4);
this.J=this.D=this.I=this.T=0;this.ya=!1;this.ea="unknown"},zrb=function(a,b){g.Ey(a.J);
a.J=0;0==b?yrb(a):a.J=g.Cy(function(){yrb(a)},b)},yrb=function(a){Arb(a,"getLoungeToken");
g.Ey(a.D);a.D=g.Cy(function(){Brb(a,null)},3E4)},Arb=function(a,b){a.info("sendYoutubeMessage_: "+b+" "+g.Mi());
var c={};c.type=b;a.B?a.B.sendMessage("urn:x-cast:com.google.youtube.mdx",c,function(){},(0,g.Oa)(function(){e9(this,"Failed to send message: "+b+".")},a)):e9(a,"Sending yt message without session: "+g.Mi(c))},Crb=function(a,b){b?(a.info("onConnectedScreenId_: Received screenId: "+b),a.j&&a.j.id==b||a.cU(b,function(c){d9(a,c)},function(){return a.mj()},5)):a.mj(Error("Waiting for session status timed out."))},Erb=function(a,b,c){a.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(b));
var d=new T7(b);Drb(a,d,function(e){e?(a.ya=!0,b9(a.C,d),d9(a,d),a.ea="unknown",zrb(a,c)):(g.ly(Error("CastSession, RemoteScreen from screenData: "+JSON.stringify(b)+" is not online.")),a.mj())},5)},xrb=function(a,b){g.Ey(a.Z);
a.Z=0;b?a.config_.enableCastLoungeToken&&b.loungeToken?b.deviceId?a.j&&a.j.uuid==b.deviceId||(b.loungeTokenRefreshIntervalMs?Erb(a,{name:a.u.friendlyName,screenId:b.screenId,loungeToken:b.loungeToken,dialId:b.deviceId,screenIdType:"shortLived"},b.loungeTokenRefreshIntervalMs):(g.ly(Error("No loungeTokenRefreshIntervalMs presents in mdxSessionStatusData: "+JSON.stringify(b)+".")),Crb(a,b.screenId))):(g.ly(Error("No device id presents in mdxSessionStatusData: "+JSON.stringify(b)+".")),Crb(a,b.screenId)):
Crb(a,b.screenId):a.mj(Error("Waiting for session status timed out."))},Brb=function(a,b){g.Ey(a.D);
a.D=0;var c=null;if(b)if(b.loungeToken){var d;(null==(d=a.j)?void 0:d.token)==b.loungeToken&&(c="staleLoungeToken")}else c="missingLoungeToken";else c="noLoungeTokenResponse";c?(a.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(b)+", error: "+c)),a.ea=c,zrb(a,3E4)):(wrb(a,b.loungeToken),a.ya=!1,a.ea="unknown",zrb(a,b.loungeTokenRefreshIntervalMs))},Drb=function(a,b,c,d){g.Ey(a.I);
a.I=0;srb(a.C,b,function(e){e||0>d?c(e):a.I=g.Cy(function(){Drb(a,b,c,d-1)},300)})},Frb=function(a){g.Ey(a.T);
a.T=0;g.Ey(a.I);a.I=0;g.Ey(a.Z);a.Z=0;g.Ey(a.D);a.D=0;g.Ey(a.J);a.J=0},g9=function(a,b,c,d){c9.call(this,a,b,"DialSession");
this.config_=d;this.B=this.T=null;this.Aa="";this.Qa=c;this.La=null;this.Z=function(){};
this.ea=NaN;this.Ja=(0,g.Oa)(this.D_,this);this.D=function(){};
this.J=this.I=0;this.oa=!1;this.ya="unknown"},h9=function(a){var b;
return!!(a.config_.enableDialLoungeToken&&(null==(b=a.B)?0:b.getDialAppInfo))},Grb=function(a){a.D=a.C.cR(a.Aa,a.u.label,a.u.friendlyName,h9(a),function(b,c){a.D=function(){};
a.oa=!0;d9(a,b);"shortLived"==b.idType&&0<c&&t9(a,c)},function(b){a.D=function(){};
a.mj(b)})},Hrb=function(a){var b={};
b.pairingCode=a.Aa;b.theme=a.Qa;Hob()&&(b.env_useStageMdx=1);return g.Yi(b)},Irb=function(a){return new Promise(function(b){a.Aa=uob();
if(a.La){var c=new chrome.cast.DialLaunchResponse(!0,Hrb(a));b(c);Grb(a)}else a.Z=function(){g.Ey(a.ea);a.Z=function(){};
a.ea=NaN;var d=new chrome.cast.DialLaunchResponse(!0,Hrb(a));b(d);Grb(a)},a.ea=g.Cy(function(){a.Z()},100)})},Krb=function(a,b,c){a.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(b));
var d=new T7(b);return(new Promise(function(e){Jrb(a,d,function(f){f?(a.oa=!0,b9(a.C,d),d9(a,d),t9(a,c)):g.ly(Error("DialSession, RemoteScreen from screenData: "+JSON.stringify(b)+" is not online."));e(f)},5)})).then(function(e){return e?new chrome.cast.DialLaunchResponse(!1):Irb(a)})},Lrb=function(a,b){var c=a.T.receiver.label,d=a.u.friendlyName;
return(new Promise(function(e){qrb(a.C,c,b,d,function(f){f&&f.token&&d9(a,f);e(f)},function(f){e9(a,"Failed to get DIAL screen: "+f);
e(null)})})).then(function(e){return e&&e.token?new chrome.cast.DialLaunchResponse(!1):Irb(a)})},Jrb=function(a,b,c,d){g.Ey(a.I);
a.I=0;srb(a.C,b,function(e){e||0>d?c(e):a.I=g.Cy(function(){Jrb(a,b,c,d-1)},300)})},t9=function(a,b){a.info("getDialAppInfoWithTimeout_ "+b);
h9(a)&&(g.Ey(a.J),a.J=0,0==b?Mrb(a):a.J=g.Cy(function(){Mrb(a)},b))},Mrb=function(a){h9(a)&&a.B.getDialAppInfo(function(b){a.info("getDialAppInfo dialLaunchData: "+JSON.stringify(b));
b=b.extraData||{};var c=null;if(b.loungeToken){var d;(null==(d=a.j)?void 0:d.token)==b.loungeToken&&(c="staleLoungeToken")}else c="missingLoungeToken";c?(a.ya=c,t9(a,3E4)):(a.oa=!1,a.ya="unknown",wrb(a,b.loungeToken),t9(a,b.loungeTokenRefreshIntervalMs))},function(b){a.info("getDialAppInfo error: "+b);
a.ya="noLoungeTokenResponse";t9(a,3E4)})},Nrb=function(a){g.Ey(a.I);
a.I=0;g.Ey(a.J);a.J=0;a.D();a.D=function(){};
g.Ey(a.ea)},v9=function(a,b){c9.call(this,a,b,"ManualSession");
this.B=g.Cy((0,g.Oa)(this.bz,this,null),150)},w9=function(a,b){g.dE.call(this);
this.config_=b;this.u=a;this.T=b.appId||"233637DE";this.C=b.theme||"cl";this.ea=b.disableCastApi||!1;this.I=b.forceMirroring||!1;this.j=null;this.J=!1;this.B=[];this.D=(0,g.Oa)(this.T6,this)},Orb=function(a,b){return b?g.nb(a.B,function(c){return U7(b,c.label)},a):null},x9=function(a){R8("Controller",a)},Xqb=function(a){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(a)},y9=function(a){return a.J||!!a.B.length||!!a.j},z9=function(a,b,c){b!=a.j&&(g.Za(a.j),(a.j=b)?(c?a.ma("yt-remote-cast2-receiver-resumed",
b.u):a.ma("yt-remote-cast2-receiver-selected",b.u),b.subscribe("sessionScreen",(0,g.Oa)(a.FW,a,b)),b.subscribe("sessionFailed",function(){return Prb(a,b)}),b.j?a.ma("yt-remote-cast2-session-change",b.j):c&&a.j.bz(null)):a.ma("yt-remote-cast2-session-change",null))},Prb=function(a,b){a.j==b&&a.ma("yt-remote-cast2-session-failed")},Qrb=function(a){var b=a.u.bR(),c=a.j&&a.j.u;
a=g.Yl(b,function(d){c&&U7(d,c.label)&&(c=null);var e=d.uuid?d.uuid:d.id,f=Orb(this,d);f?(f.label=e,f.friendlyName=d.name):(f=new chrome.cast.Receiver(e,d.name),f.receiverType=chrome.cast.ReceiverType.CUSTOM);return f},a);
c&&(c.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(c=new chrome.cast.Receiver(c.label,c.friendlyName),c.receiverType=chrome.cast.ReceiverType.CUSTOM),a.push(c));return a},Xrb=function(a,b,c,d){d.disableCastApi?A9("Cannot initialize because disabled by Mdx config."):Rrb()?Srb(b,d)&&(Trb(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?Urb(a,c):(window.__onGCastApiAvailable=function(e,f){e?Urb(a,c):(B9("Failed to load cast API: "+f),Vrb(!1),Trb(!1),g.Rz("yt-remote-cast-available"),g.Rz("yt-remote-cast-receiver"),
Wrb(),c(!1))},d.loadCastApiSetupScript?g.sC("https://web.archive.org/web/20230426093215/https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"):0<=window.navigator.userAgent.indexOf("Android")&&0<=window.navigator.userAgent.indexOf("Chrome/")&&window.navigator.presentation?60<=Iob()&&Rob():!window.chrome||!window.navigator.presentation||0<=window.navigator.userAgent.indexOf("Edge")?Mob():89<=Iob()?Tob():(Qob(),b8(Sob.map(Nob))))):A9("Cannot initialize because not running Chrome")},Wrb=function(){A9("dispose");
var a=C9();a&&a.dispose();g.Fa("yt.mdx.remote.cloudview.instance_",null);Yrb(!1);g.qC(Zrb);Zrb.length=0},D9=function(){return!!g.Qz("yt-remote-cast-installed")},$rb=function(){var a=g.Qz("yt-remote-cast-receiver");
return a?a.friendlyName:null},asb=function(){A9("clearCurrentReceiver");
g.Rz("yt-remote-cast-receiver")},bsb=function(){return D9()?C9()?C9().getCastSession():(B9("getCastSelector: Cast is not initialized."),null):(B9("getCastSelector: Cast API is not installed!"),null)},csb=function(){D9()?C9()?E9()?(A9("Requesting cast selector."),C9().requestSession()):(A9("Wait for cast API to be ready to request the session."),Zrb.push(g.pC("yt-remote-cast2-api-ready",csb))):B9("requestCastSelector: Cast is not initialized."):B9("requestCastSelector: Cast API is not installed!")},
F9=function(a,b){E9()?C9().setConnectedScreenStatus(a,b):B9("setConnectedScreenStatus called before ready.")},Rrb=function(){var a=0<=g.hc().search(/ (CrMo|Chrome|CriOS)\//);
return g.eI||a},dsb=function(a,b){C9().init(a,b)},Srb=function(a,b){var c=!1;
C9()||(a=new w9(a,b),a.subscribe("yt-remote-cast2-availability-change",function(d){g.Pz("yt-remote-cast-available",d);a8("yt-remote-cast2-availability-change",d)}),a.subscribe("yt-remote-cast2-receiver-selected",function(d){A9("onReceiverSelected: "+d.friendlyName);
g.Pz("yt-remote-cast-receiver",d);a8("yt-remote-cast2-receiver-selected",d)}),a.subscribe("yt-remote-cast2-receiver-resumed",function(d){A9("onReceiverResumed: "+d.friendlyName);
g.Pz("yt-remote-cast-receiver",d);a8("yt-remote-cast2-receiver-resumed",d)}),a.subscribe("yt-remote-cast2-session-change",function(d){A9("onSessionChange: "+V7(d));
d||g.Rz("yt-remote-cast-receiver");a8("yt-remote-cast2-session-change",d)}),g.Fa("yt.mdx.remote.cloudview.instance_",a),c=!0);
A9("cloudview.createSingleton_: "+c);return c},C9=function(){return g.Ga("yt.mdx.remote.cloudview.instance_")},Urb=function(a,b){Vrb(!0);
Trb(!1);dsb(a,function(c){c?(Yrb(!0),g.rC("yt-remote-cast2-api-ready")):(B9("Failed to initialize cast API."),Vrb(!1),g.Rz("yt-remote-cast-available"),g.Rz("yt-remote-cast-receiver"),Wrb());b(c)})},A9=function(a){R8("cloudview",a)},B9=function(a){R8("cloudview",a)},Vrb=function(a){A9("setCastInstalled_ "+a);
g.Pz("yt-remote-cast-installed",a)},E9=function(){return!!g.Ga("yt.mdx.remote.cloudview.apiReady_")},Yrb=function(a){A9("setApiReady_ "+a);
g.Fa("yt.mdx.remote.cloudview.apiReady_",a)},Trb=function(a){g.Fa("yt.mdx.remote.cloudview.initializing_",a)},G9=function(a){this.index=-1;
this.videoId=this.listId="";this.volume=this.playerState=-1;this.muted=!1;this.audioTrackId=null;this.I=this.J=0;this.trackData=null;this.Ck=this.No=!1;this.T=this.D=this.j=this.C=0;this.B=NaN;this.u=!1;this.reset(a)},esb=function(a){a.audioTrackId=null;
a.trackData=null;a.playerState=-1;a.No=!1;a.Ck=!1;a.J=0;a.I=g.Ra();a.C=0;a.j=0;a.D=0;a.T=0;a.B=NaN;a.u=!1},H9=function(a){return a.bd()?(g.Ra()-a.I)/1E3:0},I9=function(a,b){a.J=b;
a.I=g.Ra()},J9=function(a){switch(a.playerState){case 1:case 1081:return(g.Ra()-a.I)/1E3+a.J;
case -1E3:return 0}return a.J},K9=function(a,b,c){var d=a.videoId;
a.videoId=b;a.index=c;b!=d&&esb(a)},fsb=function(a){var b={};
b.index=a.index;b.listId=a.listId;b.videoId=a.videoId;b.playerState=a.playerState;b.volume=a.volume;b.muted=a.muted;b.audioTrackId=a.audioTrackId;b.trackData=g.nd(a.trackData);b.hasPrevious=a.No;b.hasNext=a.Ck;b.playerTime=a.J;b.playerTimeAt=a.I;b.seekableStart=a.C;b.seekableEnd=a.j;b.duration=a.D;b.loadedTime=a.T;b.liveIngestionTime=a.B;return b},M9=function(a,b){g.dE.call(this);
this.B=0;this.C=a;this.I=[];this.D=new Jqb;this.u=this.j=null;this.ea=(0,g.Oa)(this.H5,this);this.J=(0,g.Oa)(this.XC,this);this.T=(0,g.Oa)(this.G5,this);this.Z=(0,g.Oa)(this.M5,this);var c=0;a?(c=a.getProxyState(),3!=c&&(a.subscribe("proxyStateChange",this.hP,this),gsb(this))):c=3;0!=c&&(b?this.hP(c):g.Cy((0,g.Oa)(function(){this.hP(c)},this),0));
(a=bsb())&&L9(this,a);this.subscribe("yt-remote-cast2-session-change",this.Z)},N9=function(a){return new G9(a.C.getPlayerContextData())},gsb=function(a){g.Ob("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(b){this.I.push(this.C.subscribe(b,g.Pa(this.R6,b),this))},a)},hsb=function(a){g.Ob(a.I,function(b){this.C.unsubscribeByKey(b)},a);
a.I.length=0},O9=function(a){return 1==a.getState()},P9=function(a,b){var c=a.D;
50>c.j.length+c.u.length&&a.D.u.push(b)},isb=function(a,b,c){var d=N9(a);
I9(d,c);-1E3!=d.playerState&&(d.playerState=b);Q9(a,d)},R9=function(a,b,c){a.C.sendMessage(b,c)},Q9=function(a,b){hsb(a);
a.C.setPlayerContextData(fsb(b));gsb(a)},L9=function(a,b){a.u&&(a.u.removeUpdateListener(a.ea),a.u.removeMediaListener(a.J),a.XC(null));
a.u=b;a.u&&(S8("Setting cast session: "+a.u.sessionId),a.u.addUpdateListener(a.ea),a.u.addMediaListener(a.J),a.u.media.length&&a.XC(a.u.media[0]))},jsb=function(a){var b=a.j.media,c=a.j.customData;
if(b&&c){var d=N9(a);b.contentId!=d.videoId&&S8("Cast changing video to: "+b.contentId);d.videoId=b.contentId;d.playerState=c.playerState;I9(d,a.j.getEstimatedTime());Q9(a,d)}else S8("No cast media video. Ignoring state update.")},S9=function(a,b,c){return(0,g.Oa)(function(d){this.Uf("Failed to "+b+" with cast v2 channel. Error code: "+d.code);
d.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.Uf("Retrying "+b+" using MDx browser channel."),R9(this,b,c))},a)},V9=function(a,b,c,d){d=void 0===d?!1:d;
g.dE.call(this);var e=this;this.I=NaN;this.Aa=!1;this.ea=this.T=this.oa=this.ya=NaN;this.Z=[];this.D=this.J=this.C=this.j=this.u=null;this.La=a;this.Ja=d;this.Z.push(g.Ez(window,"beforeunload",function(){e.py(2)}));
this.B=[];this.j=new G9;this.Qa=b.id;this.Ga=b.idType;this.u=Wqb(this.La,c,this.gR,"shortLived"==this.Ga,this.Qa);this.u.Ra("channelOpened",function(){ksb(e)});
this.u.Ra("channelClosed",function(){T9("Channel closed");isNaN(e.I)?Z7(!0):Z7();e.dispose()});
this.u.Ra("channelError",function(f){Z7();isNaN(e.bC())?(1==f&&"shortLived"==e.Ga&&e.ma("browserChannelAuthError",f),T9("Channel error: "+f+" without reconnection"),e.dispose()):(e.Aa=!0,T9("Channel error: "+f+" with reconnection in "+e.bC()+" ms"),U9(e,2))});
this.u.Ra("channelMessage",function(f){lsb(e,f)});
this.u.Rq(b.token);this.subscribe("remoteQueueChange",function(){var f=e.j.videoId;g.Sz()&&g.Pz("yt-remote-session-video-id",f)})},msb=function(a){return g.nb(a.B,function(b){return"LOUNGE_SCREEN"==b.type})},T9=function(a){R8("conn",a)},U9=function(a,b){a.ma("proxyStateChange",b)},nsb=function(a){a.I=g.Cy(function(){T9("Connecting timeout");
a.py(1)},2E4)},osb=function(a){g.Ey(a.I);
a.I=NaN},psb=function(a){g.Ey(a.ya);
a.ya=NaN},rsb=function(a){qsb(a);
a.oa=g.Cy(function(){W9(a,"getNowPlaying")},2E4)},qsb=function(a){g.Ey(a.oa);
a.oa=NaN},ksb=function(a){T9("Channel opened");
a.Aa&&(a.Aa=!1,psb(a),a.ya=g.Cy(function(){T9("Timing out waiting for a screen.");a.py(1)},15E3))},tsb=function(a,b){var c=null;
if(b){var d=msb(a);d&&(c={clientName:d.clientName,deviceMake:d.brand,deviceModel:d.model,osVersion:d.osVersion})}g.Fa("yt.mdx.remote.remoteClient_",c);b&&(osb(a),psb(a));c=a.u.Qy()&&isNaN(a.I);b==c?b&&(U9(a,1),W9(a,"getSubtitlesTrack")):b?(a.aU()&&a.j.reset(),U9(a,1),W9(a,"getNowPlaying"),ssb(a)):a.py(1)},usb=function(a,b){var c=b.params.videoId;
delete b.params.videoId;c==a.j.videoId&&(g.hd(b.params)?a.j.trackData=null:a.j.trackData=b.params,a.ma("remotePlayerChange"))},vsb=function(a,b,c){var d=b.params.videoId||b.params.video_id,e=parseInt(b.params.currentIndex,10);
a.j.listId=b.params.listId||a.j.listId;K9(a.j,d,e);a.ma("remoteQueueChange",c)},xsb=function(a,b){b.params=b.params||{};
vsb(a,b,"NOW_PLAYING_MAY_CHANGE");wsb(a,b);a.ma("autoplayDismissed")},wsb=function(a,b){var c=parseInt(b.params.currentTime||b.params.current_time,10);
I9(a.j,isNaN(c)?0:c);c=parseInt(b.params.state,10);c=isNaN(c)?-1:c;-1==c&&-1E3==a.j.playerState&&(c=-1E3);a.j.playerState=c;c=Number(b.params.loadedTime);a.j.T=isNaN(c)?0:c;a.j.Sk(Number(b.params.duration));c=a.j;var d=Number(b.params.liveIngestionTime);c.B=d;c.u=isNaN(d)?!1:!0;c=a.j;d=Number(b.params.seekableStartTime);b=Number(b.params.seekableEndTime);c.C=isNaN(d)?0:d;c.j=isNaN(b)?0:b;1==a.j.playerState?rsb(a):qsb(a);a.ma("remotePlayerChange")},ysb=function(a,b){if(-1E3!=a.j.playerState){var c=
1085;
switch(parseInt(b.params.adState,10)){case 1:c=1081;break;case 2:c=1084;break;case 0:c=1083}a.j.playerState=c;b=parseInt(b.params.currentTime,10);I9(a.j,isNaN(b)?0:b);a.ma("remotePlayerChange")}},zsb=function(a,b){var c="true"==b.params.muted;
a.j.volume=parseInt(b.params.volume,10);a.j.muted=c;a.ma("remotePlayerChange")},Asb=function(a,b){a.J=b.params.videoId;
a.ma("nowAutoplaying",parseInt(b.params.timeout,10))},Bsb=function(a,b){a.J=b.params.videoId||null;
a.ma("autoplayUpNext",a.J)},Csb=function(a,b){a.D=b.params.autoplayMode;
a.ma("autoplayModeChange",a.D);"DISABLED"==a.D&&a.ma("autoplayDismissed")},Dsb=function(a,b){var c="true"==b.params.hasNext;
a.j.No="true"==b.params.hasPrevious;a.j.Ck=c;a.ma("previousNextChange")},lsb=function(a,b){b=b.message;
b.params?T9("Received: action="+b.action+", params="+g.Mi(b.params)):T9("Received: action="+b.action+" {}");switch(b.action){case "loungeStatus":b=R7(b.params.devices);a.B=g.Yl(b,function(d){return new S7(d)});
b=!!g.nb(a.B,function(d){return"LOUNGE_SCREEN"==d.type});
tsb(a,b);b=a.TU("mlm");a.ma("multiStateLoopEnabled",b);break;case "loungeScreenDisconnected":g.yb(a.B,function(d){return"LOUNGE_SCREEN"==d.type});
tsb(a,!1);break;case "remoteConnected":var c=new S7(R7(b.params.device));g.nb(a.B,function(d){return d.equals(c)})||gob(a.B,c);
break;case "remoteDisconnected":c=new S7(R7(b.params.device));g.yb(a.B,function(d){return d.equals(c)});
break;case "gracefulDisconnect":break;case "playlistModified":vsb(a,b,"QUEUE_MODIFIED");break;case "nowPlaying":xsb(a,b);break;case "onStateChange":wsb(a,b);break;case "onAdStateChange":ysb(a,b);break;case "onVolumeChanged":zsb(a,b);break;case "onSubtitlesTrackChanged":usb(a,b);break;case "nowAutoplaying":Asb(a,b);break;case "autoplayDismissed":a.ma("autoplayDismissed");break;case "autoplayUpNext":Bsb(a,b);break;case "onAutoplayModeChanged":Csb(a,b);break;case "onHasPreviousNextChanged":Dsb(a,b);
break;case "requestAssistedSignIn":a.ma("assistedSignInRequested",b.params.authCode);break;case "onLoopModeChanged":a.ma("loopModeChange",b.params.loopMode);break;default:T9("Unrecognized action: "+b.action)}},ssb=function(a){g.Ey(a.ea);
a.ea=g.Cy(function(){a.py(1)},864E5)},W9=function(a,b,c){c?T9("Sending: action="+b+", params="+g.Mi(c)):T9("Sending: action="+b);
a.u.sendMessage(b,c)},Esb=function(a){W8.call(this,"ScreenServiceProxy");
this.Ug=a;this.j=[];this.j.push(this.Ug.$_s("screenChange",(0,g.Oa)(this.H_,this)));this.j.push(this.Ug.$_s("onlineScreenChange",(0,g.Oa)(this.z6,this)))},Jsb=function(a,b){Gob();
if(!$7||!$7.get("yt-remote-disable-remote-module-for-dev")){b=g.ey("MDX_CONFIG")||b;xob();Bob();X9||(X9=new O8(b?b.loungeApiHost:void 0),Hob()&&(X9.j="/api/loungedev"));Y9||(Y9=g.Ga("yt.mdx.remote.deferredProxies_")||[],g.Fa("yt.mdx.remote.deferredProxies_",Y9));Fsb();var c=Z9();if(!c){var d=new a9(X9,b?b.disableAutomaticScreenCache||!1:!1);g.Fa("yt.mdx.remote.screenService_",d);c=Z9();var e={};b&&(e={appId:b.appId,disableDial:b.disableDial,theme:b.theme,loadCastApiSetupScript:b.loadCastApiSetupScript,
disableCastApi:b.disableCastApi,enableDialLoungeToken:b.enableDialLoungeToken,enableCastLoungeToken:b.enableCastLoungeToken,forceMirroring:b.forceMirroring});g.Fa("yt.mdx.remote.enableConnectWithInitialState_",b?b.enableConnectWithInitialState||!1:!1);Xrb(a,d,function(f){f?$9()&&F9($9(),"YouTube TV"):d.subscribe("onlineScreenChange",function(){a8("yt-remote-receiver-availability-change")})},e)}b&&!g.Ga("yt.mdx.remote.initialized_")&&(g.Fa("yt.mdx.remote.initialized_",!0),a$("Initializing: "+g.Mi(b)),
b$.push(g.pC("yt-remote-cast2-api-ready",function(){a8("yt-remote-api-ready")})),b$.push(g.pC("yt-remote-cast2-availability-change",function(){a8("yt-remote-receiver-availability-change")})),b$.push(g.pC("yt-remote-cast2-receiver-selected",function(){c$(null);
a8("yt-remote-auto-connect","cast-selector-receiver")})),b$.push(g.pC("yt-remote-cast2-receiver-resumed",function(){a8("yt-remote-receiver-resumed","cast-selector-receiver")})),b$.push(g.pC("yt-remote-cast2-session-change",Gsb)),b$.push(g.pC("yt-remote-connection-change",function(f){f?F9($9(),"YouTube TV"):d$()||(F9(null,null),asb())})),b$.push(g.pC("yt-remote-cast2-session-failed",function(){a8("yt-remote-connection-failed")})),a=Hsb(),b.isAuto&&(a.id+="#dial"),e=b.capabilities||[],g.gy("desktop_enable_autoplay")&&
e.push("atp"),0<e.length&&(a.capabilities=e),a.name=b.device,a.app=b.app,(b=b.theme)&&(a.theme=b),a$(" -- with channel params: "+g.Mi(a)),a?(g.Pz("yt-remote-session-app",a.app),g.Pz("yt-remote-session-name",a.name)):(g.Rz("yt-remote-session-app"),g.Rz("yt-remote-session-name")),g.Fa("yt.mdx.remote.channelParams_",a),c.start(),$9()||Isb())}},Ksb=function(){var a=Z9().Ug.$_gos();
var b=e$();b&&f$()&&(wob(a,b)||a.push(b));return vob(a)},Msb=function(){var a=Lsb();
!a&&D9()&&$rb()&&(a={key:"cast-selector-receiver",name:$rb()});return a},Lsb=function(){var a=Ksb(),b=e$();
b||(b=d$());return g.nb(a,function(c){return b&&U7(b,c.key)?!0:!1})},e$=function(){var a=$9();
if(!a)return null;var b=Z9().yk();return W7(b,a)},Gsb=function(a){a$("remote.onCastSessionChange_: "+V7(a));
if(a){var b=e$();if(b&&b.id==a.id){if(F9(b.id,"YouTube TV"),"shortLived"==a.idType&&(a=a.token))g$&&(g$.token=a),(b=f$())&&b.Rq(a)}else b&&h$(),i$(a,1)}else f$()&&h$()},h$=function(){E9()?C9().stopSession():B9("stopSession called before API ready.");
var a=f$();a&&(a.disconnect(1),Nsb(null))},Osb=function(){var a=f$();
return!!a&&3!=a.getProxyState()},a$=function(a){R8("remote",a)},Z9=function(){if(!Psb){var a=g.Ga("yt.mdx.remote.screenService_");
Psb=a?new Esb(a):null}return Psb},$9=function(){return g.Ga("yt.mdx.remote.currentScreenId_")},Qsb=function(a){g.Fa("yt.mdx.remote.currentScreenId_",a)},Rsb=function(){return g.Ga("yt.mdx.remote.connectData_")},c$=function(a){g.Fa("yt.mdx.remote.connectData_",a)},f$=function(){return g.Ga("yt.mdx.remote.connection_")},Nsb=function(a){var b=f$();
c$(null);a||Qsb("");g.Fa("yt.mdx.remote.connection_",a);Y9&&(g.Ob(Y9,function(c){c(a)}),Y9.length=0);
b&&!a?a8("yt-remote-connection-change",!1):!b&&a&&a8("yt-remote-connection-change",!0)},d$=function(){var a=g.Sz();
if(!a)return null;var b=Z9();if(!b)return null;b=b.yk();return W7(b,a)},i$=function(a,b){$9();
e$()&&e$();if(j$)g$=a;else{Qsb(a.id);var c=g.Ga("yt.mdx.remote.enableConnectWithInitialState_")||!1;a=new V9(X9,a,Hsb(),c);a.connect(b,Rsb());a.subscribe("beforeDisconnect",function(d){a8("yt-remote-before-disconnect",d)});
a.subscribe("beforeDispose",function(){f$()&&(f$(),Nsb(null))});
a.subscribe("browserChannelAuthError",function(){var d=e$();d&&"shortLived"==d.idType&&(E9()?C9().handleBrowserChannelAuthError():B9("refreshLoungeToken called before API ready."))});
Nsb(a)}},Isb=function(){var a=d$();
a?(a$("Resume connection to: "+V7(a)),i$(a,0)):(Z7(),asb(),a$("Skipping connecting because no session screen found."))},Fsb=function(){var a=Hsb();
if(g.hd(a)){a=Y7();var b=g.Qz("yt-remote-session-name")||"",c=g.Qz("yt-remote-session-app")||"";a={device:"REMOTE_CONTROL",id:a,name:b,app:c,mdxVersion:3};a.authuser=String(g.ey("SESSION_INDEX","0"));(b=g.ey("DELEGATED_SESSION_ID"))&&(a.pageId=String(b));g.Fa("yt.mdx.remote.channelParams_",a)}},Hsb=function(){return g.Ga("yt.mdx.remote.channelParams_")||{}},Usb=function(a,b,c){g.C.call(this);
var d=this;this.module=a;this.F=b;this.Bc=c;this.events=new g.bI(this);this.ea=this.events.S(this.F,"onVolumeChange",function(e){Ssb(d,e)});
this.C=!1;this.D=new g.KO(64);this.j=new g.Ip(this.UX,500,this);this.u=new g.Ip(this.VX,1E3,this);this.J=new d8(this.L9,0,this);this.B={};this.T=new g.Ip(this.JY,1E3,this);this.I=new e8(this.seekTo,1E3,this);g.E(this,this.events);this.events.S(b,"onCaptionsTrackListChanged",this.k6);this.events.S(b,"captionschanged",this.E5);this.events.S(b,"captionssettingschanged",this.dY);this.events.S(b,"videoplayerreset",this.hH);this.events.S(b,"mdxautoplaycancel",function(){d.Bc.kT()});
b.K("enable_mdx_video_play_directly")&&this.events.S(b,"videodatachange",function(){Tsb(d.module)||k$(d)||l$(d,0)});
a=this.Bc;a.isDisposed();a.subscribe("proxyStateChange",this.BW,this);a.subscribe("remotePlayerChange",this.dD,this);a.subscribe("remoteQueueChange",this.hH,this);a.subscribe("previousNextChange",this.xW,this);a.subscribe("nowAutoplaying",this.rW,this);a.subscribe("autoplayDismissed",this.VV,this);g.E(this,this.j);g.E(this,this.u);g.E(this,this.J);g.E(this,this.T);g.E(this,this.I);this.dY();this.hH();this.dD()},Ssb=function(a,b){if(k$(a)){a.Bc.unsubscribe("remotePlayerChange",a.dD,a);
var c=Math.round(b.volume);b=!!b.muted;var d=N9(a.Bc);if(c!==d.volume||b!==d.muted)a.Bc.setVolume(c,b),a.T.start();a.Bc.subscribe("remotePlayerChange",a.dD,a)}},Vsb=function(a){a.yc(0);
a.j.stop();a.pc(new g.KO(64))},Wsb=function(a,b){if(k$(a)&&!a.C){var c=null;
b&&(c={style:a.F.getSubtitlesUserSettings()},g.od(c,b));a.Bc.fR(a.F.getVideoData(1).videoId,c);a.B=N9(a.Bc).trackData}},l$=function(a,b){var c=a.F.getPlaylist();
if(null==c?0:c.listId){var d=c.index;var e=c.listId.toString()}c=a.F.getVideoData(1);a.Bc.playVideo(c.videoId,b,d,e,c.playerParams,c.Aa,fob(c));a.pc(new g.KO(1))},Xsb=function(a,b){if(b){var c=a.F.getOption("captions","tracklist",{JU:1});
c&&c.length?(a.F.setOption("captions","track",b),a.C=!1):(a.F.loadModule("captions"),a.C=!0)}else a.F.setOption("captions","track",{})},k$=function(a){return N9(a.Bc).videoId===a.F.getVideoData(1).videoId},m$=function(){g.U.call(this,{G:"div",
N:"ytp-mdx-popup-dialog",X:{role:"dialog"},W:[{G:"div",N:"ytp-mdx-popup-dialog-inner-content",W:[{G:"div",N:"ytp-mdx-popup-title",ra:"You're signed out"},{G:"div",N:"ytp-mdx-popup-description",ra:"Videos you watch may be added to the TV's watch history and influence TV recommendations. To avoid this, cancel and sign in to YouTube on your computer."},{G:"div",N:"ytp-mdx-privacy-popup-buttons",W:[{G:"button",Ia:["ytp-button","ytp-mdx-privacy-popup-cancel"],ra:"Cancel"},{G:"button",Ia:["ytp-button",
"ytp-mdx-privacy-popup-confirm"],ra:"Confirm"}]}]}]});this.j=new g.QQ(this,250);this.cancelButton=this.Da("ytp-mdx-privacy-popup-cancel");this.confirmButton=this.Da("ytp-mdx-privacy-popup-confirm");g.E(this,this.j);this.S(this.cancelButton,"click",this.u);this.S(this.confirmButton,"click",this.B)},n$=function(a){g.U.call(this,{G:"div",
N:"ytp-remote",W:[{G:"div",N:"ytp-remote-display-status",W:[{G:"div",N:"ytp-remote-display-status-icon",W:[g.IEa()]},{G:"div",N:"ytp-remote-display-status-text",ra:"{{statustext}}"}]}]});this.api=a;this.j=new g.QQ(this,250);g.E(this,this.j);this.S(a,"presentingplayerstatechange",this.onStateChange);this.qc(a.Cb())},o$=function(a,b){g.DV.call(this,"Play on",1,a,b);
this.F=a;this.vt={};this.S(a,"onMdxReceiversChange",this.C);this.S(a,"presentingplayerstatechange",this.C);this.C()},Ysb=function(a){g.CT.call(this,a);
this.Yo={key:uob(),name:"This computer"};this.zl=null;this.subscriptions=[];this.yO=this.Bc=null;this.vt=[this.Yo];this.Pr=this.Yo;this.Te=new g.KO(64);this.gV=0;this.Ah=-1;this.sD=!1;this.qD=this.Fz=null;if(!g.mK(this.player.V())&&!g.nK(this.player.V())){a=this.player;var b=g.rS(a);b&&(b=b.Nm())&&(b=new o$(a,b),g.E(this,b));b=new n$(a);g.E(this,b);g.NS(a,b.element,4);this.Fz=new m$;g.E(this,this.Fz);g.NS(a,this.Fz.element,4);this.sD=!!d$()}},p$=function(a){a.qD&&(a.player.removeEventListener("presentingplayerstatechange",
a.qD),a.qD=null)},Zsb=function(a,b,c){a.Te=c;
a.player.ma("presentingplayerstatechange",new g.WN(c,b))},q$=function(a,b){if(b.key!==a.Pr.key)if(b.key===a.Yo.key)h$();
else if(Tsb(a)&&$sb(a),a.Pr=b,!a.player.V().K("disable_mdx_connection_in_mdx_module_for_music_web")||!g.nK(a.player.V())){var c=a.player.getPlaylistId();var d=a.player.getVideoData(1);var e=d.videoId;if(!c&&!e||(2===a.player.getAppState()||1===a.player.getAppState())&&a.player.V().K("should_clear_video_data_on_player_cued_unstarted"))d=null;else{var f=a.player.getPlaylist();if(f){var h=[];for(var l=0;l<f.length;l++)h[l]=g.zT(f,l).videoId}else h=[e];f=a.player.getCurrentTime(1);a={videoIds:h,listId:c,
videoId:e,playerParams:d.playerParams,clickTrackingParams:d.Aa,index:Math.max(a.player.getPlaylistIndex(),0),currentTime:0===f?void 0:f};(d=fob(d))&&(a.locationInfo=d);d=a}a$("Connecting to: "+g.Mi(b));"cast-selector-receiver"==b.key?(c$(d||null),b=d||null,E9()?C9().setLaunchParams(b):B9("setLaunchParams called before ready.")):!d&&Osb()&&$9()==b.key?a8("yt-remote-connection-change",!0):(h$(),c$(d||null),d=Z9().yk(),(b=W7(d,b.key))&&i$(b,1))}},Tsb=function(a){var b;
(b=!a.player.V().K("mdx_enable_privacy_disclosure_ui"))||(b=((b=g.ey("PLAYER_CONFIG"))&&b.args&&void 0!==b.args.authuser?!0:!(!g.ey("SESSION_INDEX")&&!g.ey("LOGGED_IN")))||a.sD||!a.Fz);return b?!1:g.DK(a.player.V())||g.GK(a.player.V())},$sb=function(a){a.player.Cb().bd()?a.player.pauseVideo():(a.qD=function(b){!a.sD&&g.YN(b,8)&&(a.player.pauseVideo(),p$(a))},a.player.addEventListener("presentingplayerstatechange",a.qD));
a.Fz&&a.Fz.od();f$()||(j$=!0)};
g.Us.prototype.ls=g.ba(0,function(){return g.ai(this,6)});
var hqb={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},F8={"'":"\\'"},oob={sia:"atp",ZTa:"ska",oRa:"que",AJa:"mus",YTa:"sus",Wva:"dsp",rSa:"seq",tIa:"mic",Foa:"dpa",mja:"cds",qJa:"mlm",toa:"dsdtr",bKa:"ntb",i3a:"vsp",wpa:"scn"},pob={m1:"u",CLASSIC:"cl",O0:"k",HZ:"i",qZ:"cr",U0:"m",EZ:"g",iS:"up"};S7.prototype.equals=function(a){return a?this.id==a.id:!1};
var $7,Aob="",Pob=Job("loadCastFramework")||Job("loadCastApplicationFramework"),Sob=["pkedcjkdefgpdelpbcmbmeomcjbeemfm","enhhojjnijigcajfphajepfemndkmdlo"];g.Ta(d8,g.C);g.k=d8.prototype;g.k.g_=function(a){this.C=arguments;this.j=!1;this.Gc?this.B=g.Ra()+this.Fi:this.Gc=g.ag(this.D,this.Fi)};
g.k.stop=function(){this.Gc&&(g.Ea.clearTimeout(this.Gc),this.Gc=null);this.B=null;this.j=!1;this.C=[]};
g.k.pause=function(){++this.u};
g.k.resume=function(){this.u&&(--this.u,!this.u&&this.j&&(this.j=!1,this.I.apply(null,this.C)))};
g.k.qa=function(){this.stop();d8.Gf.qa.call(this)};
g.k.h_=function(){this.Gc&&(g.Ea.clearTimeout(this.Gc),this.Gc=null);this.B?(this.Gc=g.ag(this.D,this.B-g.Ra()),this.B=null):this.u?this.j=!0:(this.j=!1,this.I.apply(null,this.C))};g.w(e8,g.C);g.k=e8.prototype;g.k.mJ=function(a){this.B=arguments;this.Gc||this.u?this.j=!0:dpb(this)};
g.k.stop=function(){this.Gc&&(g.Ea.clearTimeout(this.Gc),this.Gc=null,this.j=!1,this.B=null)};
g.k.pause=function(){this.u++};
g.k.resume=function(){this.u--;this.u||!this.j||this.Gc||(this.j=!1,dpb(this))};
g.k.qa=function(){g.C.prototype.qa.call(this);this.stop()};f8.prototype.stringify=function(a){return g.Ea.JSON.stringify(a,void 0)};
f8.prototype.parse=function(a){return g.Ea.JSON.parse(a,void 0)};g.Ta(epb,g.ib);g.Ta(fpb,g.ib);var gpb=null;g.Ta(ipb,g.ib);g.Ta(jpb,g.ib);g.Ta(kpb,g.ib);lpb.prototype.info=function(){};
lpb.prototype.warning=function(){};var spb={},l8={};g.k=j8.prototype;g.k.setTimeout=function(a){this.Pb=a};
g.k.k_=function(a){a=a.target;var b=this.Ya;b&&3==g.qj(a)?b.mJ():this.JQ(a)};
g.k.JQ=function(a){try{if(a==this.j)a:{var b=g.qj(this.j),c=this.j.u,d=this.j.getStatus();if(!(3>b)&&(3!=b||g.HK||this.j&&(this.u.u||g.sj(this.j)||g.tj(this.j)))){this.Ja||4!=b||7==c||(8==c||0>=d?g8(3):g8(2));o8(this);var e=this.j.getStatus();this.Tb=e;b:if(qpb(this)){var f=g.tj(this.j);a="";var h=f.length,l=4==g.qj(this.j);if(!this.u.B){if("undefined"===typeof TextDecoder){m8(this);n8(this);var m="";break b}this.u.B=new g.Ea.TextDecoder}for(c=0;c<h;c++)this.u.u=!0,a+=this.u.B.decode(f[c],{stream:l&&
c==h-1});f.splice(0,h);this.u.j+=a;this.Z=0;m=this.u.j}else m=g.sj(this.j);if(this.B=200==e){if(this.jc&&!this.Xa){b:{if(this.j){var n=g.uj(this.j,"X-HTTP-Initial-Response");if(n&&!g.Tb(n)){var p=n;break b}}p=null}if(e=p)this.Xa=!0,tpb(this,e);else{this.B=!1;this.I=3;h8(12);m8(this);n8(this);break a}}this.Ga?(upb(this,b,m),g.HK&&this.B&&3==b&&(this.ib.Ra(this.kb,"tick",this.j_),this.kb.start())):tpb(this,m);4==b&&m8(this);this.B&&!this.Ja&&(4==b?wpb(this.D,this):(this.B=!1,k8(this)))}else g.Ifa(this.j),
400==e&&0<m.indexOf("Unknown SID")?(this.I=3,h8(12)):(this.I=0,h8(13)),m8(this),n8(this)}}}catch(q){}finally{}};
g.k.j_=function(){if(this.j){var a=g.qj(this.j),b=g.sj(this.j);this.Z<b.length&&(o8(this),upb(this,a,b),this.B&&4!=a&&k8(this))}};
g.k.cancel=function(){this.Ja=!0;m8(this)};
g.k.i_=function(){this.ea=null;var a=Date.now();0<=a-this.Xb?(2!=this.Qa&&(g8(3),h8(17)),m8(this),this.I=2,n8(this)):vpb(this,this.Xb-a)};
g.k.getLastError=function(){return this.I};
g.k.fM=function(){return this.j};Fpb.prototype.cancel=function(){this.B=Hpb(this);if(this.u)this.u.cancel(),this.u=null;else if(this.j&&0!==this.j.size){for(var a=g.t(this.j.values()),b=a.next();!b.done;b=a.next())b.value.cancel();this.j.clear()}};g.k=Lpb.prototype;g.k.KQ=8;g.k.oh=1;g.k.connect=function(a,b,c,d){h8(0);this.Dc=a;this.Ja=b||{};c&&void 0!==d&&(this.Ja.OSID=c,this.Ja.OAID=d);this.Xa=this.Oc;this.La=Bpb(this,null,this.Dc);s8(this)};
g.k.disconnect=function(){Npb(this);if(3==this.oh){var a=this.fb++,b=this.La.clone();g.Jk(b,"SID",this.C);g.Jk(b,"RID",a);g.Jk(b,"TYPE","terminate");v8(this,b);a=new j8(this,this.C,a);a.Qa=2;a.J=P7(b.clone());b=!1;if(g.Ea.navigator&&g.Ea.navigator.sendBeacon)try{b=g.Ea.navigator.sendBeacon(a.J.toString(),"")}catch(c){}!b&&g.Ea.Image&&((new Image).src=a.J,b=!0);b||(a.j=ppb(a.D,null),a.j.send(a.J));a.ya=Date.now();k8(a)}Tpb(this)};
g.k.Vg=function(){return 0==this.oh};
g.k.getState=function(){return this.oh};
g.k.MQ=function(a){if(this.I)if(this.I=null,1==this.oh){if(!a){this.fb=Math.floor(1E5*Math.random());a=this.fb++;var b=new j8(this,"",a),c=this.ea;this.Xb&&(c?(c=g.md(c),g.od(c,this.Xb)):c=this.Xb);null!==this.J||this.tb||(b.La=c,c=null);var d;if(this.Pb)a:{for(var e=d=0;e<this.B.length;e++){b:{var f=this.B[e];if("__data__"in f.map&&(f=f.map.__data__,"string"===typeof f)){f=f.length;break b}f=void 0}if(void 0===f)break;d+=f;if(4096<d){d=e;break a}if(4096===d||e===this.B.length-1){d=e+1;break a}}d=
1E3}else d=1E3;d=Qpb(this,b,d);e=this.La.clone();g.Jk(e,"RID",a);g.Jk(e,"CVER",22);this.Ga&&g.Jk(e,"X-HTTP-Session-Id",this.Ga);v8(this,e);c&&(this.tb?d="headers="+g.Ke(g.Zga(c))+"&"+d:this.J&&g.Qk(e,this.J,c));Apb(this.u,b);this.Wf&&g.Jk(e,"TYPE","init");this.Pb?(g.Jk(e,"$req",d),g.Jk(e,"SID","null"),b.jc=!0,opb(b,e,null)):opb(b,e,d);this.oh=2}}else 3==this.oh&&(a?Rpb(this,a):0==this.B.length||Gpb(this.u)||Rpb(this))};
g.k.LQ=function(){this.T=null;Spb(this);if(this.Lc&&!(this.kb||null==this.j||0>=this.Vd)){var a=2*this.Vd;this.Aa=i8((0,g.Oa)(this.D5,this),a)}};
g.k.D5=function(){this.Aa&&(this.Aa=null,this.Xa=!1,this.kb=!0,h8(10),q8(this),Spb(this))};
g.k.LN=function(a){this.j==a&&this.Lc&&!this.kb&&(Mpb(this),this.kb=!0,h8(11))};
g.k.l_=function(){null!=this.Z&&(this.Z=null,q8(this),ypb(this),h8(19))};
g.k.s9=function(a){a?h8(2):h8(1)};
g.k.isActive=function(){return!!this.D&&this.D.isActive(this)};
g.k=Vpb.prototype;g.k.QQ=function(){};
g.k.PQ=function(){};
g.k.OQ=function(){};
g.k.NQ=function(){};
g.k.isActive=function(){return!0};
g.k.m_=function(){};g.Ta(x8,g.Fd);x8.prototype.open=function(){this.j.D=this.B;this.I&&(this.j.Qa=!0);this.j.connect(this.D,this.u||void 0)};
x8.prototype.close=function(){this.j.disconnect()};
x8.prototype.send=function(a){var b=this.j;if("string"===typeof a){var c={};c.__data__=a;a=c}else this.C&&(c={},c.__data__=g.Mi(a),a=c);b.B.push(new Epb(b.Kf++,a));3==b.oh&&s8(b)};
x8.prototype.qa=function(){this.j.D=null;delete this.B;this.j.disconnect();delete this.j;x8.Gf.qa.call(this)};
g.Ta(Xpb,epb);g.Ta(Ypb,fpb);g.Ta(w8,Vpb);w8.prototype.QQ=function(){this.j.dispatchEvent("m")};
w8.prototype.PQ=function(a){this.j.dispatchEvent(new Xpb(a))};
w8.prototype.OQ=function(a){this.j.dispatchEvent(new Ypb(a))};
w8.prototype.NQ=function(){this.j.dispatchEvent("n")};var z8=new g.Fd;g.w(aqb,g.ib);g.k=B8.prototype;g.k.Xt=null;g.k.Ep=!1;g.k.Zw=null;g.k.oJ=null;g.k.Xw=null;g.k.Yw=null;g.k.vr=null;g.k.xr=null;g.k.Yt=null;g.k.Qi=null;g.k.HE=0;g.k.Gn=null;g.k.GE=null;g.k.wr=null;g.k.GA=-1;g.k.EX=!0;g.k.Wt=!1;g.k.nJ=0;g.k.FE=null;var fqb={},eqb={};g.k=B8.prototype;g.k.setTimeout=function(a){this.u=a};
g.k.o_=function(a){a=a.target;var b=this.FE;b&&3==g.qj(a)?b.mJ():this.RQ(a)};
g.k.RQ=function(a){try{if(a==this.Qi)a:{var b=g.qj(this.Qi),c=this.Qi.u,d=this.Qi.getStatus();if(g.mf&&!g.Oc(10)||g.Pc&&!g.Nc("420+")){if(4>b)break a}else if(3>b||3==b&&!g.sj(this.Qi))break a;this.Wt||4!=b||7==c||(8==c||0>=d?this.j.pn(3):this.j.pn(2));kqb(this);var e=this.Qi.getStatus();this.GA=e;var f=g.sj(this.Qi);if(this.Ep=200==e){4==b&&D8(this);if(this.Ga){for(a=!0;!this.Wt&&this.HE<f.length;){var h=gqb(this,f);if(h==eqb){4==b&&(this.wr=4,A8(15),a=!1);break}else if(h==fqb){this.wr=4;A8(16);a=
!1;break}else lqb(this,h)}4==b&&0==f.length&&(this.wr=1,A8(17),a=!1);this.Ep=this.Ep&&a;a||(D8(this),E8(this))}else lqb(this,f);this.Ep&&!this.Wt&&(4==b?this.j.IE(this):(this.Ep=!1,C8(this)))}else 400==e&&0<f.indexOf("Unknown SID")?(this.wr=3,A8(13)):(this.wr=0,A8(14)),D8(this),E8(this)}}catch(l){}finally{}};
g.k.O7=function(a){y8((0,g.Oa)(this.N7,this,a),0)};
g.k.N7=function(a){this.Wt||(kqb(this),lqb(this,a),C8(this))};
g.k.HW=function(a){y8((0,g.Oa)(this.M7,this,a),0)};
g.k.M7=function(a){this.Wt||(D8(this),this.Ep=a,this.j.IE(this),this.j.pn(4))};
g.k.cancel=function(){this.Wt=!0;D8(this)};
g.k.n_=function(){this.Zw=null;var a=Date.now();0<=a-this.oJ?(2!=this.Yw&&this.j.pn(3),D8(this),this.wr=2,A8(18),E8(this)):jqb(this,this.oJ-a)};
g.k.getLastError=function(){return this.wr};g.k=oqb.prototype;g.k.qJ=null;g.k.wj=null;g.k.HH=!1;g.k.WX=null;g.k.FF=null;g.k.ZM=null;g.k.rJ=null;g.k.wl=null;g.k.Fp=-1;g.k.HA=null;g.k.fB=null;g.k.connect=function(a){this.rJ=a;a=H8(this.j,null,this.rJ);A8(3);this.WX=Date.now();var b=this.j.ea;null!=b?(this.HA=b[0],(this.fB=b[1])?(this.wl=1,pqb(this)):(this.wl=2,qqb(this))):(Q7(a,"MODE","init"),this.wj=new B8(this),this.wj.Xt=this.qJ,dqb(this.wj,a,!1,null,!0),this.wl=0)};
g.k.e2=function(a){if(a)this.wl=2,qqb(this);else{A8(4);var b=this.j;b.Mn=b.Lr.Fp;L8(b,9)}a&&this.pn(2)};
g.k.pJ=function(a){return this.j.pJ(a)};
g.k.abort=function(){this.wj&&(this.wj.cancel(),this.wj=null);this.Fp=-1};
g.k.Vg=function(){return!1};
g.k.SQ=function(a,b){this.Fp=a.GA;if(0==this.wl)if(b){try{var c=this.u.parse(b)}catch(d){a=this.j;a.Mn=this.Fp;L8(a,2);return}this.HA=c[0];this.fB=c[1]}else a=this.j,a.Mn=this.Fp,L8(a,2);else if(2==this.wl)if(this.HH)A8(7),this.ZM=Date.now();else if("11111"==b){if(A8(6),this.HH=!0,this.FF=Date.now(),a=this.FF-this.WX,!g.mf||g.Oc(10)||500>a)this.Fp=200,this.wj.cancel(),A8(12),I8(this.j,this,!0)}else A8(8),this.FF=this.ZM=Date.now(),this.HH=!1};
g.k.IE=function(){this.Fp=this.wj.GA;if(this.wj.Ep)0==this.wl?this.fB?(this.wl=1,pqb(this)):(this.wl=2,qqb(this)):2==this.wl&&((!g.mf||g.Oc(10)?!this.HH:200>this.ZM-this.FF)?(A8(11),I8(this.j,this,!1)):(A8(12),I8(this.j,this,!0)));else{0==this.wl?A8(9):2==this.wl&&A8(10);var a=this.j;this.wj.getLastError();a.Mn=this.Fp;L8(a,2)}};
g.k.IA=function(){return this.j.IA()};
g.k.isActive=function(){return this.j.isActive()};
g.k.pn=function(a){this.j.pn(a)};g.k=rqb.prototype;g.k.Ln=null;g.k.JA=null;g.k.Fj=null;g.k.Gg=null;g.k.sJ=null;g.k.JE=null;g.k.TQ=null;g.k.KE=null;g.k.KA=0;g.k.q_=0;g.k.oi=null;g.k.yr=null;g.k.Gp=null;g.k.au=null;g.k.Lr=null;g.k.xI=null;g.k.ex=-1;g.k.UQ=-1;g.k.Mn=-1;g.k.bx=0;g.k.ax=0;g.k.Zt=8;g.Ta(tqb,g.ib);g.Ta(uqb,g.ib);g.k=rqb.prototype;g.k.connect=function(a,b,c,d,e){A8(0);this.sJ=b;this.JA=c||{};d&&void 0!==e&&(this.JA.OSID=d,this.JA.OAID=e);this.T?(y8((0,g.Oa)(this.aT,this,a),100),wqb(this)):this.aT(a)};
g.k.disconnect=function(){xqb(this);if(3==this.j){var a=this.KA++,b=this.JE.clone();g.Jk(b,"SID",this.C);g.Jk(b,"RID",a);g.Jk(b,"TYPE","terminate");K8(this,b);a=new B8(this,this.C,a);a.Yw=2;a.vr=P7(b.clone());(new Image).src=a.vr.toString();a.Xw=Date.now();C8(a)}Hqb(this)};
g.k.aT=function(a){this.Lr=new oqb(this);this.Lr.qJ=this.Ln;this.Lr.u=this.D;this.Lr.connect(a)};
g.k.Vg=function(){return 0==this.j};
g.k.getState=function(){return this.j};
g.k.WQ=function(a){this.yr=null;Cqb(this,a)};
g.k.VQ=function(){this.Gp=null;this.Gg=new B8(this,this.C,"rpc",this.J);this.Gg.Xt=this.Ln;this.Gg.nJ=0;var a=this.TQ.clone();g.Jk(a,"RID","rpc");g.Jk(a,"SID",this.C);g.Jk(a,"CI",this.xI?"0":"1");g.Jk(a,"AID",this.ex);K8(this,a);if(!g.mf||g.Oc(10))g.Jk(a,"TYPE","xmlhttp"),dqb(this.Gg,a,!0,this.KE,!1);else{g.Jk(a,"TYPE","html");var b=this.Gg,c=!!this.KE;b.Yw=3;b.vr=P7(a.clone());iqb(b,c)}};
g.k.SQ=function(a,b){if(0!=this.j&&(this.Gg==a||this.Fj==a))if(this.Mn=a.GA,this.Fj==a&&3==this.j)if(7<this.Zt){try{var c=this.D.parse(b)}catch(d){c=null}if(Array.isArray(c)&&3==c.length)if(a=c,0==a[0])a:{if(!this.Gp){if(this.Gg)if(this.Gg.Xw+3E3<this.Fj.Xw)J8(this),this.Gg.cancel(),this.Gg=null;else break a;Fqb(this);A8(19)}}else this.UQ=a[1],0<this.UQ-this.ex&&37500>a[2]&&this.xI&&0==this.ax&&!this.au&&(this.au=y8((0,g.Oa)(this.r_,this),6E3));else L8(this,11)}else null!=b&&L8(this,11);else if(this.Gg==
a&&J8(this),!g.Tb(b))for(a=this.D.parse(b),b=0;b<a.length;b++)c=a[b],this.ex=c[0],c=c[1],2==this.j?"c"==c[0]?(this.C=c[1],this.KE=c[2],c=c[3],null!=c?this.Zt=c:this.Zt=6,this.j=3,this.oi&&this.oi.ZQ(),this.TQ=H8(this,this.IA()?this.KE:null,this.sJ),Dqb(this)):"stop"==c[0]&&L8(this,7):3==this.j&&("stop"==c[0]?L8(this,7):"noop"!=c[0]&&this.oi&&this.oi.YQ(c),this.ax=0)};
g.k.r_=function(){null!=this.au&&(this.au=null,this.Gg.cancel(),this.Gg=null,Fqb(this),A8(20))};
g.k.IE=function(a){if(this.Gg==a){J8(this);this.Gg=null;var b=2}else if(this.Fj==a)this.Fj=null,b=1;else return;this.Mn=a.GA;if(0!=this.j)if(a.Ep)if(1==b){b=Date.now()-a.Xw;var c=z8;c.dispatchEvent(new tqb(c,a.Yt?a.Yt.length:0,b,this.bx));vqb(this);this.B.length=0}else Dqb(this);else{c=a.getLastError();var d;if(!(d=3==c||7==c||0==c&&0<this.Mn)){if(d=1==b)this.Fj||this.yr||1==this.j||2<=this.bx?d=!1:(this.yr=y8((0,g.Oa)(this.WQ,this,a),Eqb(this,this.bx)),this.bx++,d=!0);d=!(d||2==b&&Fqb(this))}if(d)switch(c){case 1:L8(this,
5);break;case 4:L8(this,10);break;case 3:L8(this,6);break;case 7:L8(this,12);break;default:L8(this,2)}}};
g.k.p_=function(a){if(!g.rb(arguments,this.j))throw Error("Unexpected channel state: "+this.j);};
g.k.r9=function(a){a?A8(2):(A8(1),Gqb(this,8))};
g.k.pJ=function(a){if(a)throw Error("Can't create secondary domain capable XhrIo object.");a=new g.nj;a.I=!1;return a};
g.k.isActive=function(){return!!this.oi&&this.oi.isActive(this)};
g.k.pn=function(a){var b=z8;b.dispatchEvent(new uqb(b,a))};
g.k.IA=function(){return!(!g.mf||g.Oc(10))};
g.k=Iqb.prototype;g.k.ZQ=function(){};
g.k.YQ=function(){};
g.k.XQ=function(){};
g.k.tJ=function(){};
g.k.aR=function(){return{}};
g.k.isActive=function(){return!0};g.k=Jqb.prototype;g.k.Bf=function(){return 0===this.j.length&&0===this.u.length};
g.k.clear=function(){this.j=[];this.u=[]};
g.k.contains=function(a){return g.rb(this.j,a)||g.rb(this.u,a)};
g.k.remove=function(a){var b=this.j;var c=(0,g.O8a)(b,a);0<=c?(g.tb(b,c),b=!0):b=!1;return b||g.wb(this.u,a)};
g.k.Ml=function(){for(var a=[],b=this.j.length-1;0<=b;--b)a.push(this.j[b]);var c=this.u.length;for(b=0;b<c;++b)a.push(this.u[b]);return a};g.w(Kqb,g.ib);g.w(Lqb,g.ib);g.Ta(M8,g.C);g.k=M8.prototype;g.k.G7=function(){this.Fi=Math.min(3E5,2*this.Fi);this.B();this.u&&this.start()};
g.k.start=function(){var a=this.Fi+15E3*Math.random();g.Jp(this.j,a);this.u=Date.now()+a};
g.k.stop=function(){this.j.stop();this.u=0};
g.k.isActive=function(){return this.j.isActive()};
g.k.reset=function(){this.j.stop();this.Fi=5E3};Nqb.prototype.flush=function(a,b){a=void 0===a?[]:a;b=void 0===b?!1:b;if(g.gy("enable_client_streamz_web")){a=g.t(a);for(var c=a.next();!c.done;c=a.next())c=g.afa(c.value),c={serializedIncrementBatch:g.gg(c.j())},g.rA("streamzIncremented",c,{sendIsolatedPayload:b})}};var N8;g.Ta(Oqb,Iqb);g.k=Oqb.prototype;g.k.subscribe=function(a,b,c){return this.B.subscribe(a,b,c)};
g.k.unsubscribe=function(a,b,c){return this.B.unsubscribe(a,b,c)};
g.k.Gh=function(a){return this.B.Gh(a)};
g.k.ma=function(a,b){return this.B.ma.apply(this.B,arguments)};
g.k.dispose=function(){this.Z||(this.Z=!0,g.Za(this.B),this.disconnect(),g.Za(this.u),this.u=null,this.oa=function(){return""})};
g.k.isDisposed=function(){return this.Z};
g.k.connect=function(a,b,c){if(!this.j||2!=this.j.getState()){this.ea="";this.u.stop();this.I=a||null;this.D=b||0;a=this.ya+"/test";b=this.ya+"/bind";var d=new rqb(c?c.firstTestResults:null,c?c.secondTestResults:null,this.Qa),e=this.j;e&&(e.oi=null);d.oi=this;this.j=d;Pqb(this);if(this.j){d=g.ey("ID_TOKEN");var f=this.j.Ln||{};d?f["x-youtube-identity-token"]=d:delete f["x-youtube-identity-token"];this.j.Ln=f}e?(3!=e.getState()&&0==zqb(e)||e.getState(),this.j.connect(a,b,this.J,e.C,e.ex)):c?this.j.connect(a,
b,this.J,c.sessionId,c.arrayId):this.j.connect(a,b,this.J)}};
g.k.disconnect=function(a){this.T=a||0;this.u.stop();Pqb(this);this.j&&(3==this.j.getState()&&Cqb(this.j),this.j.disconnect());this.T=0};
g.k.sendMessage=function(a,b){a={_sc:a};b&&g.od(a,b);this.u.isActive()||2==(this.j?this.j.getState():0)?this.C.push(a):this.Qy()&&(Pqb(this),yqb(this.j,a))};
g.k.ZQ=function(){this.u.reset();this.I=null;this.D=0;if(this.C.length){var a=this.C;this.C=[];for(var b=0,c=a.length;b<c;++b)yqb(this.j,a[b])}this.ma("handlerOpened");Vob(this.La,"BROWSER_CHANNEL")};
g.k.XQ=function(a){var b=2==a&&401==this.j.Mn;4==a||b||this.u.start();this.ma("handlerError",a,b);apb(this.Ga,"BROWSER_CHANNEL")};
g.k.tJ=function(a,b){if(!this.u.isActive())this.ma("handlerClosed");else if(b)for(var c=0,d=b.length;c<d;++c){var e=b[c].map;e&&this.C.push(e)}Xob(this.Aa,"BROWSER_CHANNEL");a&&this.Ya.j.wJ("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",a.length);b&&this.fb.j.wJ("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",b.length)};
g.k.aR=function(){var a={v:2};this.ea&&(a.gsessionid=this.ea);0!=this.D&&(a.ui=""+this.D);0!=this.T&&(a.ui=""+this.T);this.I&&g.od(a,this.I);return a};
g.k.YQ=function(a){"S"==a[0]?this.ea=a[1]:"gracefulReconnect"==a[0]?(this.u.start(),this.j.disconnect()):this.ma("handlerMessage",new Mqb(a[0],a[1]));Zob(this.Ja,"BROWSER_CHANNEL")};
g.k.Qy=function(){return!!this.j&&3==this.j.getState()};
g.k.Rq=function(a){(this.J.loungeIdToken=a)||this.u.stop();if(this.Xa&&this.j){var b=this.j.Ln||{};a?b["X-YouTube-LoungeId-Token"]=a:delete b["X-YouTube-LoungeId-Token"];this.j.Ln=b}};
g.k.ls=function(){return this.J.id};
g.k.Cs=function(){return this.u.isActive()?this.u.u-Date.now():NaN};
g.k.Zv=function(){var a=this.u;g.Kp(a.j);a.start()};
g.k.O8=function(){this.u.isActive();0==zqb(this.j)&&this.connect(this.I,this.D)};O8.prototype.C=function(a,b,c,d){b?a(d):a({text:c.responseText})};
O8.prototype.B=function(a,b){a(Error("Request error: "+b.status))};
O8.prototype.D=function(a){a(Error("request timed out"))};g.w(Rqb,g.Fd);g.k=Rqb.prototype;g.k.connect=function(a,b,c){this.ud.connect(a,b,c)};
g.k.disconnect=function(a){this.ud.disconnect(a)};
g.k.Zv=function(){this.ud.Zv()};
g.k.ls=function(){return this.ud.ls()};
g.k.Cs=function(){return this.ud.Cs()};
g.k.Qy=function(){return this.ud.Qy()};
g.k.u_=function(){this.dispatchEvent("channelOpened");var a=this.ud,b=this.j;g.Pz("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!a.j.xI,sessionId:a.j.C,arrayId:a.j.ex});g.Pz("yt-remote-session-screen-id",b);a=X7();b=Y7();g.rb(a,b)||a.push(b);zob(a);Bob()};
g.k.s_=function(){this.dispatchEvent("channelClosed")};
g.k.t_=function(a){this.dispatchEvent(new Kqb(a))};
g.k.onError=function(a){this.dispatchEvent(new Lqb(a?1:0))};
g.k.sendMessage=function(a,b){this.ud.sendMessage(a,b)};
g.k.Rq=function(a){this.ud.Rq(a)};
g.k.dispose=function(){this.ud.dispose()};g.k=Sqb.prototype;
g.k.connect=function(a,b){a=void 0===a?{}:a;b=void 0===b?0:b;2!==this.I&&(this.B.stop(),this.T=a,this.J=b,Uqb(this),(a=g.ey("ID_TOKEN"))?this.C["x-youtube-identity-token"]=a:delete this.C["x-youtube-identity-token"],this.j&&(this.u.device=this.j.device,this.u.name=this.j.name,this.u.app=this.j.app,this.u.id=this.j.id,this.j.L4&&(this.u.mdxVersion=""+this.j.L4),this.j.theme&&(this.u.theme=this.j.theme),this.j.capabilities&&(this.u.capabilities=this.j.capabilities),this.j.A2&&(this.u.cst=this.j.A2),
this.j.authuser&&(this.u.authuser=this.j.authuser),this.j.pageId&&(this.u.pageId=this.j.pageId)),0!==this.J?this.u.ui=""+this.J:delete this.u.ui,Object.assign(this.u,this.T),this.channel=new x8(this.pathPrefix,{e4:"gsessionid",P4:this.C,Q4:this.u}),this.channel.open(),this.I=2,Tqb(this))};
g.k.disconnect=function(a){this.ea=void 0===a?0:a;this.B.stop();Uqb(this);this.channel&&(0!==this.ea?this.u.ui=""+this.ea:delete this.u.ui,this.channel.close());this.ea=0};
g.k.Cs=function(){return this.B.isActive()?this.B.u-Date.now():NaN};
g.k.Zv=function(){var a=this.B;g.Kp(a.j);a.start()};
g.k.sendMessage=function(a,b){this.channel&&(Uqb(this),a=Object.assign({},{_sc:a},b),this.channel.send(a))};
g.k.Rq=function(a){a||this.B.stop();a?this.C["X-YouTube-LoungeId-Token"]=a:delete this.C["X-YouTube-LoungeId-Token"]};
g.k.ls=function(){return this.j?this.j.id:""};
g.k.ma=function(a){return this.D.ma.apply(this.D,[a].concat(g.u(g.ya.apply(1,arguments))))};
g.k.subscribe=function(a,b,c){return this.D.subscribe(a,b,c)};
g.k.unsubscribe=function(a,b,c){return this.D.unsubscribe(a,b,c)};
g.k.Gh=function(a){return this.D.Gh(a)};
g.k.dispose=function(){this.Z||(this.Z=!0,g.Za(this.D),this.disconnect(),g.Za(this.B),this.ya=function(){return""})};
g.k.isDisposed=function(){return this.Z};g.w(Vqb,g.Fd);g.k=Vqb.prototype;g.k.connect=function(a,b){this.j.connect(a,b)};
g.k.disconnect=function(a){this.j.disconnect(a)};
g.k.Zv=function(){this.j.Zv()};
g.k.ls=function(){return this.j.ls()};
g.k.Cs=function(){return this.j.Cs()};
g.k.Qy=function(){return 3===this.j.I};
g.k.x_=function(){this.dispatchEvent("channelOpened")};
g.k.v_=function(){this.dispatchEvent("channelClosed")};
g.k.w_=function(a){this.dispatchEvent(new Kqb(a))};
g.k.onError=function(){this.dispatchEvent(new Lqb(401===this.j.Kg?1:0))};
g.k.sendMessage=function(a,b){this.j.sendMessage(a,b)};
g.k.Rq=function(a){this.j.Rq(a)};
g.k.dispose=function(){this.j.dispose()};var crb=Date.now(),Q8=null,U8=Array(50),T8=-1,V8=!1;g.Ta(W8,g.dE);W8.prototype.yk=function(){return this.screens};
W8.prototype.contains=function(a){return!!wob(this.screens,a)};
W8.prototype.get=function(a){return a?W7(this.screens,a):null};
W8.prototype.info=function(a){R8(this.I,a)};g.w(grb,g.dE);g.k=grb.prototype;g.k.start=function(){!this.j&&isNaN(this.Gc)&&this.VW()};
g.k.stop=function(){this.j&&(this.j.abort(),this.j=null);isNaN(this.Gc)||(g.Ey(this.Gc),this.Gc=NaN)};
g.k.qa=function(){this.stop();g.dE.prototype.qa.call(this)};
g.k.VW=function(){this.Gc=NaN;this.j=g.Hy(P8(this.B,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.J},timeout:5E3,onSuccess:(0,g.Oa)(this.z_,this),onError:(0,g.Oa)(this.y_,this),onTimeout:(0,g.Oa)(this.A_,this)})};
g.k.z_=function(a,b){this.j=null;a=b.screen||{};a.dialId=this.C;a.name=this.I;b=-1;this.D&&a.shortLivedLoungeToken&&a.shortLivedLoungeToken.value&&a.shortLivedLoungeToken.refreshIntervalMs&&(a.screenIdType="shortLived",a.loungeToken=a.shortLivedLoungeToken.value,b=a.shortLivedLoungeToken.refreshIntervalMs);this.ma("pairingComplete",new T7(a),b)};
g.k.y_=function(a){this.j=null;a.status&&404==a.status?this.u>=atb.length?this.ma("pairingFailed",Error("DIAL polling timed out")):(a=atb[this.u],this.Gc=g.Cy((0,g.Oa)(this.VW,this),a),this.u++):this.ma("pairingFailed",Error("Server error "+a.status))};
g.k.A_=function(){this.j=null;this.ma("pairingFailed",Error("Server not responding"))};
var atb=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];g.Ta(Y8,W8);g.k=Y8.prototype;g.k.start=function(){X8(this)&&this.ma("screenChange");!g.Qz("yt-remote-lounge-token-expiration")&&hrb(this);g.Ey(this.j);this.j=g.Cy((0,g.Oa)(this.start,this),1E4)};
g.k.add=function(a,b){X8(this);drb(this,a);Z8(this,!1);this.ma("screenChange");b(a);a.token||hrb(this)};
g.k.remove=function(a,b){var c=X8(this);frb(this,a)&&(Z8(this,!1),c=!0);b(a);c&&this.ma("screenChange")};
g.k.wI=function(a,b,c,d){var e=X8(this),f=this.get(a.id);f?(f.name!=b&&(f.name=b,Z8(this,!1),e=!0),c(a)):d(Error("no such local screen."));e&&this.ma("screenChange")};
g.k.qa=function(){g.Ey(this.j);Y8.Gf.qa.call(this)};
g.k.F3=function(a){X8(this);var b=this.screens.length;a=a&&a.screens||[];for(var c=0,d=a.length;c<d;++c){var e=a[c],f=this.get(e.screenId);f&&(f.token=e.loungeToken,--b)}Z8(this,!b);b&&R8(this.I,"Missed "+b+" lounge tokens.")};
g.k.E3=function(a){R8(this.I,"Requesting lounge tokens failed: "+a)};g.w(jrb,g.dE);g.k=jrb.prototype;g.k.start=function(){var a=parseInt(g.Qz("yt-remote-fast-check-period")||"0",10);(this.C=g.Ra()-144E5<a?0:a)?$8(this):(this.C=g.Ra()+3E5,g.Pz("yt-remote-fast-check-period",this.C),this.OO())};
g.k.Bf=function(){return g.hd(this.j)};
g.k.update=function(){irb("Updating availability on schedule.");var a=this.I(),b=g.Uc(this.j,function(c,d){return c&&!!W7(a,d)},this);
mrb(this,b)};
g.k.qa=function(){g.Ey(this.B);this.B=NaN;this.u&&(this.u.abort(),this.u=null);g.dE.prototype.qa.call(this)};
g.k.OO=function(){g.Ey(this.B);this.B=NaN;this.u&&this.u.abort();var a=nrb(this);if(hob(a)){var b=P8(this.D,"/pairing/get_screen_availability");this.u=Qqb(this.D,b,{lounge_token:g.Zc(a).join(",")},(0,g.Oa)(this.m7,this,a),(0,g.Oa)(this.l7,this))}else mrb(this,{}),$8(this)};
g.k.m7=function(a,b){this.u=null;var c=g.Zc(nrb(this));if(g.Mb(c,g.Zc(a))){b=b.screens||[];c={};for(var d=b.length,e=0;e<d;++e)c[a[b[e].loungeToken]]="online"==b[e].status;mrb(this,c);$8(this)}else this.Uf("Changing Screen set during request."),this.OO()};
g.k.l7=function(a){this.Uf("Screen availability failed: "+a);this.u=null;$8(this)};
g.k.Uf=function(a){R8("OnlineScreenService",a)};g.Ta(a9,W8);g.k=a9.prototype;g.k.start=function(){this.u.start();this.j.start();this.screens.length&&(this.ma("screenChange"),this.j.Bf()||this.ma("onlineScreenChange"))};
g.k.add=function(a,b,c){this.u.add(a,b,c)};
g.k.remove=function(a,b,c){this.u.remove(a,b,c);this.j.update()};
g.k.wI=function(a,b,c,d){this.u.contains(a)?this.u.wI(a,b,c,d):(a="Updating name of unknown screen: "+a.name,R8(this.I,a),d(Error(a)))};
g.k.yk=function(a){return a?this.screens:g.zb(this.screens,g.Rn(this.B,function(b){return!this.contains(b)},this))};
g.k.bR=function(){return g.Rn(this.yk(!0),function(a){return!!this.j.j[a.id]},this)};
g.k.cR=function(a,b,c,d,e,f){var h=this;this.info("getDialScreenByPairingCode "+a+" / "+b);var l=new grb(this.C,a,b,c,d);l.subscribe("pairingComplete",function(m,n){g.Za(l);e(b9(h,m),n)});
l.subscribe("pairingFailed",function(m){g.Za(l);f(m)});
l.start();return(0,g.Oa)(l.stop,l)};
g.k.B_=function(a,b,c,d){g.Hy(P8(this.C,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:a},timeout:5E3,onSuccess:(0,g.Oa)(function(e,f){e=new T7(f.screen||{});if(!e.name||rrb(this,e.name)){a:{f=e.name;for(var h=2,l=b(f,h);rrb(this,l);){h++;if(20<h)break a;l=b(f,h)}f=l}e.name=f}c(b9(this,e))},this),
onError:(0,g.Oa)(function(e){d(Error("pairing request failed: "+e.status))},this),
onTimeout:(0,g.Oa)(function(){d(Error("pairing request timed out."))},this)})};
g.k.qa=function(){g.Za(this.u);g.Za(this.j);a9.Gf.qa.call(this)};
g.k.O3=function(){trb(this);this.ma("screenChange");this.j.update()};
a9.prototype.dispose=a9.prototype.dispose;g.Ta(c9,g.dE);g.k=c9.prototype;g.k.mj=function(a){this.isDisposed()||(a&&(e9(this,""+a),this.ma("sessionFailed")),this.j=null,this.ma("sessionScreen",null))};
g.k.info=function(a){R8(this.Ga,a)};
g.k.dR=function(){return null};
g.k.eP=function(a){var b=this.u;a?(b.displayStatus=new chrome.cast.ReceiverDisplayStatus(a,[]),b.displayStatus.showStop=!0):b.displayStatus=null;chrome.cast.setReceiverDisplayStatus(b,(0,g.Oa)(function(){this.info("Updated receiver status for "+b.friendlyName+": "+a)},this),(0,g.Oa)(function(){e9(this,"Failed to update receiver status for: "+b.friendlyName)},this))};
g.k.qa=function(){this.eP("");c9.Gf.qa.call(this)};g.w(f9,c9);g.k=f9.prototype;g.k.dP=function(a){if(this.B){if(this.B==a)return;e9(this,"Overriding cast session with new session object");Frb(this);this.ya=!1;this.ea="unknown";this.B.removeUpdateListener(this.oa);this.B.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.Aa)}this.B=a;this.B.addUpdateListener(this.oa);this.B.addMessageListener("urn:x-cast:com.google.youtube.mdx",this.Aa);Arb(this,"getMdxSessionStatus")};
g.k.bz=function(a){this.info("launchWithParams no-op for Cast: "+g.Mi(a))};
g.k.stop=function(){this.B?this.B.stop((0,g.Oa)(function(){this.mj()},this),(0,g.Oa)(function(){this.mj(Error("Failed to stop receiver app."))},this)):this.mj(Error("Stopping cast device without session."))};
g.k.eP=function(){};
g.k.qa=function(){this.info("disposeInternal");Frb(this);this.B&&(this.B.removeUpdateListener(this.oa),this.B.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.Aa));this.B=null;c9.prototype.qa.call(this)};
g.k.Y7=function(a,b){if(!this.isDisposed())if(b)if(b=R7(b),g.Ja(b))switch(a=""+b.type,b=b.data||{},this.info("onYoutubeMessage_: "+a+" "+g.Mi(b)),a){case "mdxSessionStatus":xrb(this,b);break;case "loungeToken":Brb(this,b);break;default:e9(this,"Unknown youtube message: "+a)}else e9(this,"Unable to parse message.");else e9(this,"No data in message.")};
g.k.cU=function(a,b,c,d){g.Ey(this.T);this.T=0;qrb(this.C,this.u.label,a,this.u.friendlyName,(0,g.Oa)(function(e){e?b(e):0<=d?(e9(this,"Screen "+a+" appears to be offline. "+d+" retries left."),this.T=g.Cy((0,g.Oa)(this.cU,this,a,b,c,d-1),300)):c(Error("Unable to fetch screen."))},this),c)};
g.k.dR=function(){return this.B};
g.k.C_=function(a){this.isDisposed()||a||(e9(this,"Cast session died."),this.mj())};g.w(g9,c9);g.k=g9.prototype;g.k.dP=function(a){this.B=a;this.B.addUpdateListener(this.Ja)};
g.k.bz=function(a){this.La=a;this.Z()};
g.k.stop=function(){Nrb(this);this.B?this.B.stop((0,g.Oa)(this.mj,this,null),(0,g.Oa)(this.mj,this,"Failed to stop DIAL device.")):this.mj()};
g.k.qa=function(){Nrb(this);this.B&&this.B.removeUpdateListener(this.Ja);this.B=null;c9.prototype.qa.call(this)};
g.k.D_=function(a){this.isDisposed()||a||(e9(this,"DIAL session died."),this.D(),this.D=function(){},this.mj())};g.w(v9,c9);v9.prototype.stop=function(){this.mj()};
v9.prototype.dP=function(){};
v9.prototype.bz=function(){g.Ey(this.B);this.B=NaN;var a=W7(this.C.yk(),this.u.label);a?d9(this,a):this.mj(Error("No such screen"))};
v9.prototype.qa=function(){g.Ey(this.B);this.B=NaN;c9.prototype.qa.call(this)};g.w(w9,g.dE);g.k=w9.prototype;
g.k.init=function(a,b){chrome.cast.timeout.requestSession=3E4;var c=new chrome.cast.SessionRequest(this.T,[chrome.cast.Capability.AUDIO_OUT]);this.ea||(c.dialRequest=new chrome.cast.DialRequest("YouTube"));var d=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;a=a||this.I?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var e=(0,g.Oa)(this.W6,this);c=new chrome.cast.ApiConfig(c,(0,g.Oa)(this.DW,this),e,d,a);c.customDialLaunchCallback=(0,g.Oa)(this.U5,this);
chrome.cast.initialize(c,(0,g.Oa)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.D),$qb(),this.u.subscribe("onlineScreenChange",(0,g.Oa)(this.eR,this)),this.B=Qrb(this),chrome.cast.setCustomReceivers(this.B,function(){},(0,g.Oa)(function(f){this.Uf("Failed to set initial custom receivers: "+g.Mi(f))},this)),this.ma("yt-remote-cast2-availability-change",y9(this)),b(!0))},this),(0,g.Oa)(function(f){this.Uf("Failed to initialize API: "+g.Mi(f));
b(!1)},this))};
g.k.V8=function(a,b){x9("Setting connected screen ID: "+a+" -> "+b);if(this.j){var c=this.j.j;if(!a||c&&c.id!=a)x9("Unsetting old screen status: "+this.j.u.friendlyName),z9(this,null)}if(a&&b){if(!this.j){c=W7(this.u.yk(),a);if(!c){x9("setConnectedScreenStatus: Unknown screen.");return}if("shortLived"==c.idType){x9("setConnectedScreenStatus: Screen with id type to be short lived.");return}a=Orb(this,c);a||(x9("setConnectedScreenStatus: Connected receiver not custom..."),a=new chrome.cast.Receiver(c.uuid?
c.uuid:c.id,c.name),a.receiverType=chrome.cast.ReceiverType.CUSTOM,this.B.push(a),chrome.cast.setCustomReceivers(this.B,function(){},(0,g.Oa)(function(d){this.Uf("Failed to set initial custom receivers: "+g.Mi(d))},this)));
x9("setConnectedScreenStatus: new active receiver: "+a.friendlyName);z9(this,new v9(this.u,a),!0)}this.j.eP(b)}else x9("setConnectedScreenStatus: no screen.")};
g.k.X8=function(a){this.isDisposed()?this.Uf("Setting connection data on disposed cast v2"):this.j?this.j.bz(a):this.Uf("Setting connection data without a session")};
g.k.F_=function(){this.isDisposed()?this.Uf("Stopping session on disposed cast v2"):this.j?(this.j.stop(),z9(this,null)):x9("Stopping non-existing session")};
g.k.requestSession=function(){chrome.cast.requestSession((0,g.Oa)(this.DW,this),(0,g.Oa)(this.p7,this))};
g.k.qa=function(){this.u.unsubscribe("onlineScreenChange",(0,g.Oa)(this.eR,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.D);var a=Xqb,b=g.Ga("yt.mdx.remote.debug.handlers_");g.wb(b||[],a);g.Za(this.j);g.dE.prototype.qa.call(this)};
g.k.Uf=function(a){R8("Controller",a)};
g.k.FW=function(a,b){this.j==a&&(b||z9(this,null),this.ma("yt-remote-cast2-session-change",b))};
g.k.T6=function(a,b){if(!this.isDisposed())if(a)switch(a.friendlyName=chrome.cast.unescape(a.friendlyName),x9("onReceiverAction_ "+a.label+" / "+a.friendlyName+"-- "+b),b){case chrome.cast.ReceiverAction.CAST:if(this.j)if(this.j.u.label!=a.label)x9("onReceiverAction_: Stopping active receiver: "+this.j.u.friendlyName),this.j.stop();else{x9("onReceiverAction_: Casting to active receiver.");this.j.j&&this.ma("yt-remote-cast2-session-change",this.j.j);break}switch(a.receiverType){case chrome.cast.ReceiverType.CUSTOM:z9(this,
new v9(this.u,a));break;case chrome.cast.ReceiverType.DIAL:z9(this,new g9(this.u,a,this.C,this.config_));break;case chrome.cast.ReceiverType.CAST:z9(this,new f9(this.u,a,this.config_));break;default:this.Uf("Unknown receiver type: "+a.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.j&&this.j.u.label==a.label?this.j.stop():this.Uf("Stopping receiver w/o session: "+a.friendlyName)}else this.Uf("onReceiverAction_ called without receiver.")};
g.k.U5=function(a){if(this.isDisposed())return Promise.reject(Error("disposed"));var b=a.receiver;b.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.Uf("Not DIAL receiver: "+b.friendlyName),b.receiverType=chrome.cast.ReceiverType.DIAL);var c=this.j?this.j.u:null;if(!c||c.label!=b.label)return this.Uf("Receiving DIAL launch request for non-clicked DIAL receiver: "+b.friendlyName),Promise.reject(Error("illegal DIAL launch"));if(c&&c.label==b.label&&c.receiverType!=chrome.cast.ReceiverType.DIAL){if(this.j.j)return x9("Reselecting dial screen."),
this.ma("yt-remote-cast2-session-change",this.j.j),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.Uf('Changing CAST intent from "'+c.receiverType+'" to "dial" for '+b.friendlyName);z9(this,new g9(this.u,b,this.C,this.config_))}b=this.j;b.T=a;b.T.appState==chrome.cast.DialAppState.RUNNING?(a=b.T.extraData||{},c=a.screenId||null,h9(b)&&a.loungeToken?a.loungeTokenRefreshIntervalMs?a=Krb(b,{name:b.u.friendlyName,screenId:a.screenId,loungeToken:a.loungeToken,dialId:b.T.receiver.label,screenIdType:"shortLived"},
a.loungeTokenRefreshIntervalMs):(g.ly(Error("No loungeTokenRefreshIntervalMs presents in additionalData: "+JSON.stringify(a)+".")),a=Lrb(b,c)):a=Lrb(b,c)):a=Irb(b);return a};
g.k.DW=function(a){var b=this;if(!this.isDisposed()&&!this.I){x9("New cast session ID: "+a.sessionId);var c=a.receiver;if(c.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.j)if(c.receiverType==chrome.cast.ReceiverType.CAST)x9("Got resumed cast session before resumed mdx connection."),c.friendlyName=chrome.cast.unescape(c.friendlyName),z9(this,new f9(this.u,c,this.config_),!0);else{this.Uf("Got non-cast session without previous mdx receiver event, or mdx resume.");return}var d=this.j.u,e=W7(this.u.yk(),
d.label);e&&U7(e,c.label)&&d.receiverType!=chrome.cast.ReceiverType.CAST&&c.receiverType==chrome.cast.ReceiverType.CAST&&(x9("onSessionEstablished_: manual to cast session change "+c.friendlyName),g.Za(this.j),this.j=new f9(this.u,c,this.config_),this.j.subscribe("sessionScreen",(0,g.Oa)(this.FW,this,this.j)),this.j.subscribe("sessionFailed",function(){return Prb(b,b.j)}),this.j.bz(null));
this.j.dP(a)}}};
g.k.E_=function(){return this.j?this.j.dR():null};
g.k.p7=function(a){this.isDisposed()||(this.Uf("Failed to estabilish a session: "+g.Mi(a)),a.code!=chrome.cast.ErrorCode.CANCEL&&z9(this,null),this.ma("yt-remote-cast2-session-failed"))};
g.k.W6=function(a){x9("Receiver availability updated: "+a);if(!this.isDisposed()){var b=y9(this);this.J=a==chrome.cast.ReceiverAvailability.AVAILABLE;y9(this)!=b&&this.ma("yt-remote-cast2-availability-change",y9(this))}};
g.k.eR=function(){this.isDisposed()||(this.B=Qrb(this),x9("Updating custom receivers: "+g.Mi(this.B)),chrome.cast.setCustomReceivers(this.B,function(){},(0,g.Oa)(function(){this.Uf("Failed to set custom receivers.")},this)),this.ma("yt-remote-cast2-availability-change",y9(this)))};
w9.prototype.setLaunchParams=w9.prototype.X8;w9.prototype.setConnectedScreenStatus=w9.prototype.V8;w9.prototype.stopSession=w9.prototype.F_;w9.prototype.getCastSession=w9.prototype.E_;w9.prototype.requestSession=w9.prototype.requestSession;w9.prototype.init=w9.prototype.init;w9.prototype.dispose=w9.prototype.dispose;var Zrb=[];g.k=G9.prototype;
g.k.reset=function(a){this.listId="";this.index=-1;this.videoId="";esb(this);this.volume=-1;this.muted=!1;a&&(this.index=a.index,this.listId=a.listId,this.videoId=a.videoId,this.playerState=a.playerState,this.volume=a.volume,this.muted=a.muted,this.audioTrackId=a.audioTrackId,this.trackData=a.trackData,this.No=a.hasPrevious,this.Ck=a.hasNext,this.J=a.playerTime,this.I=a.playerTimeAt,this.C=a.seekableStart,this.j=a.seekableEnd,this.D=a.duration,this.T=a.loadedTime,this.B=a.liveIngestionTime,this.u=
!isNaN(this.B))};
g.k.bd=function(){return 1==this.playerState};
g.k.Sk=function(a){this.D=isNaN(a)?0:a};
g.k.getDuration=function(){return this.u?this.D+H9(this):this.D};
g.k.clone=function(){return new G9(fsb(this))};g.w(M9,g.dE);g.k=M9.prototype;g.k.getState=function(){return this.B};
g.k.Cs=function(){return this.C.getReconnectTimeout()};
g.k.Zv=function(){this.C.reconnect()};
g.k.play=function(){O9(this)?(this.j?this.j.play(null,g.Md,S9(this,"play")):R9(this,"play"),isb(this,1,J9(N9(this))),this.ma("remotePlayerChange")):P9(this,this.play)};
g.k.pause=function(){O9(this)?(this.j?this.j.pause(null,g.Md,S9(this,"pause")):R9(this,"pause"),isb(this,2,J9(N9(this))),this.ma("remotePlayerChange")):P9(this,this.pause)};
g.k.seekTo=function(a){if(O9(this)){if(this.j){var b=N9(this),c=new chrome.cast.media.SeekRequest;c.currentTime=a;b.bd()||3==b.playerState?c.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:c.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.j.seek(c,g.Md,S9(this,"seekTo",{newTime:a}))}else R9(this,"seekTo",{newTime:a});isb(this,3,a);this.ma("remotePlayerChange")}else P9(this,g.Pa(this.seekTo,a))};
g.k.stop=function(){if(O9(this)){this.j?this.j.stop(null,g.Md,S9(this,"stopVideo")):R9(this,"stopVideo");var a=N9(this);a.index=-1;a.videoId="";esb(a);Q9(this,a);this.ma("remotePlayerChange")}else P9(this,this.stop)};
g.k.setVolume=function(a,b){if(O9(this)){var c=N9(this);if(this.u){if(c.volume!=a){var d=Math.round(a)/100;this.u.setReceiverVolumeLevel(d,(0,g.Oa)(function(){S8("set receiver volume: "+d)},this),(0,g.Oa)(function(){this.Uf("failed to set receiver volume.")},this))}c.muted!=b&&this.u.setReceiverMuted(b,(0,g.Oa)(function(){S8("set receiver muted: "+b)},this),(0,g.Oa)(function(){this.Uf("failed to set receiver muted.")},this))}else{var e={volume:a,
muted:b};-1!=c.volume&&(e.delta=a-c.volume);R9(this,"setVolume",e)}c.muted=b;c.volume=a;Q9(this,c)}else P9(this,g.Pa(this.setVolume,a,b))};
g.k.fR=function(a,b){if(O9(this)){var c=N9(this);a={videoId:a};b&&(c.trackData={trackName:b.name,languageCode:b.languageCode,sourceLanguageCode:b.translationLanguage?b.translationLanguage.languageCode:"",languageName:b.languageName,kind:b.kind},a.style=g.Mi(b.style),g.od(a,c.trackData));R9(this,"setSubtitlesTrack",a);Q9(this,c)}else P9(this,g.Pa(this.fR,a,b))};
g.k.setAudioTrack=function(a,b){O9(this)?(b=b.getLanguageInfo().getId(),R9(this,"setAudioTrack",{videoId:a,audioTrackId:b}),a=N9(this),a.audioTrackId=b,Q9(this,a)):P9(this,g.Pa(this.setAudioTrack,a,b))};
g.k.playVideo=function(a,b,c,d,e,f,h){d=void 0===d?null:d;e=void 0===e?null:e;f=void 0===f?null:f;h=void 0===h?null:h;var l=N9(this),m={videoId:a};void 0!==c&&(m.currentIndex=c);K9(l,a,c||0);void 0!==b&&(I9(l,b),m.currentTime=b);d&&(m.listId=d);e&&(m.playerParams=e);f&&(m.clickTrackingParams=f);h&&(m.locationInfo=g.Mi(h));R9(this,"setPlaylist",m);d||Q9(this,l)};
g.k.yH=function(a,b){if(O9(this)){if(a&&b){var c=N9(this);K9(c,a,b);Q9(this,c)}R9(this,"previous")}else P9(this,g.Pa(this.yH,a,b))};
g.k.nextVideo=function(a,b){if(O9(this)){if(a&&b){var c=N9(this);K9(c,a,b);Q9(this,c)}R9(this,"next")}else P9(this,g.Pa(this.nextVideo,a,b))};
g.k.iF=function(){if(O9(this)){R9(this,"clearPlaylist");var a=N9(this);a.reset();Q9(this,a);this.ma("remotePlayerChange")}else P9(this,this.iF)};
g.k.kT=function(){O9(this)?R9(this,"dismissAutoplay"):P9(this,this.kT)};
g.k.dispose=function(){if(3!=this.B){var a=this.B;this.B=3;this.ma("proxyStateChange",a,this.B)}g.dE.prototype.dispose.call(this)};
g.k.qa=function(){hsb(this);this.C=null;this.D.clear();L9(this,null);g.dE.prototype.qa.call(this)};
g.k.hP=function(a){if((a!=this.B||2==a)&&3!=this.B&&0!=a){var b=this.B;this.B=a;this.ma("proxyStateChange",b,a);if(1==a)for(;!this.D.Bf();)b=a=this.D,0===b.j.length&&(b.j=b.u,b.j.reverse(),b.u=[]),a.j.pop().apply(this);else 3==a&&this.dispose()}};
g.k.R6=function(a,b){this.ma(a,b)};
g.k.H5=function(a){if(!a)this.XC(null),L9(this,null);else if(this.u.receiver.volume){a=this.u.receiver.volume;var b=N9(this),c=Math.round(100*a.level||0);if(b.volume!=c||b.muted!=a.muted)S8("Cast volume update: "+a.level+(a.muted?" muted":"")),b.volume=c,b.muted=!!a.muted,Q9(this,b)}};
g.k.XC=function(a){S8("Cast media: "+!!a);this.j&&this.j.removeUpdateListener(this.T);if(this.j=a)this.j.addUpdateListener(this.T),jsb(this),this.ma("remotePlayerChange")};
g.k.G5=function(a){a?(jsb(this),this.ma("remotePlayerChange")):this.XC(null)};
g.k.GP=function(){R9(this,"sendDebugCommand",{debugCommand:"stats4nerds "})};
g.k.M5=function(){var a=bsb();a&&L9(this,a)};
g.k.Uf=function(a){R8("CP",a)};g.w(V9,g.dE);g.k=V9.prototype;
g.k.connect=function(a,b){if(b){var c=b.listId,d=b.videoId,e=b.videoIds,f=b.playerParams,h=b.clickTrackingParams,l=b.index,m={videoId:d},n=b.currentTime,p=b.locationInfo;b=b.loopMode;void 0!==n&&(m.currentTime=5>=n?0:n);f&&(m.playerParams=f);p&&(m.locationInfo=p);h&&(m.clickTrackingParams=h);c&&(m.listId=c);e&&0<e.length&&(m.videoIds=e.join(","));void 0!==l&&(m.currentIndex=l);this.Ja&&(m.loopMode=b||"LOOP_MODE_OFF");c&&(this.j.listId=c);this.j.videoId=d;this.j.index=l||0;this.j.state=3;I9(this.j,
n);this.D="UNSUPPORTED";c=this.Ja?"setInitialState":"setPlaylist";T9("Connecting with "+c+" and params: "+g.Mi(m));this.u.connect({method:c,params:g.Mi(m)},a,Cob())}else T9("Connecting without params"),this.u.connect({},a,Cob());nsb(this)};
g.k.Rq=function(a){this.u.Rq(a)};
g.k.dispose=function(){this.isDisposed()||(g.Fa("yt.mdx.remote.remoteClient_",null),this.ma("beforeDispose"),U9(this,3));g.dE.prototype.dispose.call(this)};
g.k.qa=function(){osb(this);qsb(this);psb(this);g.Ey(this.T);this.T=NaN;g.Ey(this.ea);this.ea=NaN;this.C=null;g.Fz(this.Z);this.Z.length=0;this.u.dispose();g.dE.prototype.qa.call(this);this.D=this.J=this.B=this.j=this.u=null};
g.k.TU=function(a){if(!this.B||0===this.B.length)return!1;for(var b=g.t(this.B),c=b.next();!c.done;c=b.next())if(!c.value.capabilities.has(a))return!1;return!0};
g.k.u3=function(){var a=3;this.isDisposed()||(a=0,isNaN(this.bC())?this.u.Qy()&&isNaN(this.I)&&(a=1):a=2);return a};
g.k.py=function(a){T9("Disconnecting with "+a);g.Fa("yt.mdx.remote.remoteClient_",null);osb(this);this.ma("beforeDisconnect",a);1==a&&Z7();this.u.disconnect(a);this.dispose()};
g.k.s3=function(){var a=this.j;this.C&&(a=this.j.clone(),K9(a,this.C,a.index));return fsb(a)};
g.k.Y8=function(a){var b=this,c=new G9(a);c.videoId&&c.videoId!=this.j.videoId&&(this.C=c.videoId,g.Ey(this.T),this.T=g.Cy(function(){if(b.C){var e=b.C;b.C=null;b.j.videoId!=e&&W9(b,"getNowPlaying")}},5E3));
var d=[];this.j.listId==c.listId&&this.j.videoId==c.videoId&&this.j.index==c.index||d.push("remoteQueueChange");this.j.playerState==c.playerState&&this.j.volume==c.volume&&this.j.muted==c.muted&&J9(this.j)==J9(c)&&g.Mi(this.j.trackData)==g.Mi(c.trackData)||d.push("remotePlayerChange");this.j.reset(a);g.Ob(d,function(e){this.ma(e)},this)};
g.k.aU=function(){var a=this.u.ls(),b=g.nb(this.B,function(c){return"REMOTE_CONTROL"==c.type&&c.id!=a});
return b?b.id:""};
g.k.bC=function(){return this.u.Cs()};
g.k.m3=function(){return this.D||"UNSUPPORTED"};
g.k.n3=function(){return this.J||""};
g.k.G_=function(){!isNaN(this.bC())&&this.u.Zv()};
g.k.U8=function(a,b){W9(this,a,b);ssb(this)};
g.k.gR=function(){var a=g.Sy("SID","")||"",b=g.Sy("SAPISID","")||"",c=g.Sy("__Secure-3PAPISID","")||"";if(!a&&!b&&!c)return"";a=g.gg(g.fg(a),2);b=g.gg(g.fg(b),2);c=g.gg(g.fg(c),2);return g.gg(g.fg(a+","+b+","+c),2)};
V9.prototype.subscribe=V9.prototype.subscribe;V9.prototype.unsubscribeByKey=V9.prototype.Gh;V9.prototype.getProxyState=V9.prototype.u3;V9.prototype.disconnect=V9.prototype.py;V9.prototype.getPlayerContextData=V9.prototype.s3;V9.prototype.setPlayerContextData=V9.prototype.Y8;V9.prototype.getOtherConnectedRemoteId=V9.prototype.aU;V9.prototype.getReconnectTimeout=V9.prototype.bC;V9.prototype.getAutoplayMode=V9.prototype.m3;V9.prototype.getAutoplayVideoId=V9.prototype.n3;V9.prototype.reconnect=V9.prototype.G_;
V9.prototype.sendMessage=V9.prototype.U8;V9.prototype.getXsrfToken=V9.prototype.gR;V9.prototype.isCapabilitySupportedOnConnectedDevices=V9.prototype.TU;g.w(Esb,W8);g.k=Esb.prototype;g.k.yk=function(a){return this.Ug.$_gs(a)};
g.k.contains=function(a){return!!this.Ug.$_c(a)};
g.k.get=function(a){return this.Ug.$_g(a)};
g.k.start=function(){this.Ug.$_st()};
g.k.add=function(a,b,c){this.Ug.$_a(a,b,c)};
g.k.remove=function(a,b,c){this.Ug.$_r(a,b,c)};
g.k.wI=function(a,b,c,d){this.Ug.$_un(a,b,c,d)};
g.k.qa=function(){for(var a=0,b=this.j.length;a<b;++a)this.Ug.$_ubk(this.j[a]);this.j.length=0;this.Ug=null;W8.prototype.qa.call(this)};
g.k.H_=function(){this.ma("screenChange")};
g.k.z6=function(){this.ma("onlineScreenChange")};
a9.prototype.$_st=a9.prototype.start;a9.prototype.$_gspc=a9.prototype.B_;a9.prototype.$_gsppc=a9.prototype.cR;a9.prototype.$_c=a9.prototype.contains;a9.prototype.$_g=a9.prototype.get;a9.prototype.$_a=a9.prototype.add;a9.prototype.$_un=a9.prototype.wI;a9.prototype.$_r=a9.prototype.remove;a9.prototype.$_gs=a9.prototype.yk;a9.prototype.$_gos=a9.prototype.bR;a9.prototype.$_s=a9.prototype.subscribe;a9.prototype.$_ubk=a9.prototype.Gh;var g$=null,j$=!1,X9=null,Y9=null,Psb=null,b$=[];g.w(Usb,g.C);g.k=Usb.prototype;g.k.qa=function(){g.C.prototype.qa.call(this);this.j.stop();this.u.stop();this.J.stop();var a=this.Bc;a.unsubscribe("proxyStateChange",this.BW,this);a.unsubscribe("remotePlayerChange",this.dD,this);a.unsubscribe("remoteQueueChange",this.hH,this);a.unsubscribe("previousNextChange",this.xW,this);a.unsubscribe("nowAutoplaying",this.rW,this);a.unsubscribe("autoplayDismissed",this.VV,this);this.Bc=this.module=null};
g.k.Bk=function(a){var b=g.ya.apply(1,arguments);if(2!=this.Bc.B)if(k$(this)){if(1081!=N9(this.Bc).playerState||"control_seek"!==a)switch(a){case "control_toggle_play_pause":N9(this.Bc).bd()?this.Bc.pause():this.Bc.play();break;case "control_play":this.Bc.play();break;case "control_pause":this.Bc.pause();break;case "control_seek":this.I.mJ(b[0],b[1]);break;case "control_subtitles_set_track":Wsb(this,b[0]);break;case "control_set_audio_track":this.setAudioTrack(b[0])}}else switch(a){case "control_toggle_play_pause":case "control_play":case "control_pause":b=
this.F.getCurrentTime();l$(this,0===b?void 0:b);break;case "control_seek":l$(this,b[0]);break;case "control_subtitles_set_track":Wsb(this,b[0]);break;case "control_set_audio_track":this.setAudioTrack(b[0])}};
g.k.E5=function(a){this.J.g_(a)};
g.k.L9=function(a){this.Bk("control_subtitles_set_track",g.hd(a)?null:a)};
g.k.dY=function(){var a=this.F.getOption("captions","track");g.hd(a)||Wsb(this,a)};
g.k.yc=function(a){this.module.yc(a,this.F.getVideoData().lengthSeconds)};
g.k.k6=function(){g.hd(this.B)||Xsb(this,this.B);this.C=!1};
g.k.BW=function(a,b){this.u.stop();2===b&&this.VX()};
g.k.dD=function(){if(k$(this)){this.j.stop();var a=N9(this.Bc);switch(a.playerState){case 1080:case 1081:case 1084:case 1085:this.module.Ah=1;break;case 1082:case 1083:this.module.Ah=0;break;default:this.module.Ah=-1}switch(a.playerState){case 1081:case 1:this.pc(new g.KO(8));this.UX();break;case 1085:case 3:this.pc(new g.KO(9));break;case 1083:case 0:this.pc(new g.KO(2));this.I.stop();this.yc(this.F.getVideoData().lengthSeconds);break;case 1084:this.pc(new g.KO(4));break;case 2:this.pc(new g.KO(4));
this.yc(J9(a));break;case -1:this.pc(new g.KO(64));break;case -1E3:this.pc(new g.KO(128,{errorCode:"mdx.remoteerror",errorMessage:"This video is not available for remote playback.",AF:2}))}a=N9(this.Bc).trackData;var b=this.B;(a||b?a&&b&&a.trackName==b.trackName&&a.languageCode==b.languageCode&&a.languageName==b.languageName&&a.kind==b.kind:1)||(this.B=a,Xsb(this,a));a=N9(this.Bc);-1===a.volume||Math.round(this.F.getVolume())===a.volume&&this.F.isMuted()===a.muted||this.T.isActive()||this.JY()}else Vsb(this)};
g.k.xW=function(){this.F.ma("mdxpreviousnextchange")};
g.k.hH=function(){k$(this)||Vsb(this)};
g.k.rW=function(a){isNaN(a)||this.F.ma("mdxnowautoplaying",a)};
g.k.VV=function(){this.F.ma("mdxautoplaycanceled")};
g.k.setAudioTrack=function(a){k$(this)&&this.Bc.setAudioTrack(this.F.getVideoData(1).videoId,a)};
g.k.seekTo=function(a,b){-1===N9(this.Bc).playerState?l$(this,a):b&&this.Bc.seekTo(a)};
g.k.JY=function(){var a=this;if(k$(this)){var b=N9(this.Bc);this.events.Hc(this.ea);b.muted?this.F.mute():this.F.unMute();this.F.setVolume(b.volume);this.ea=this.events.S(this.F,"onVolumeChange",function(c){Ssb(a,c)})}};
g.k.UX=function(){this.j.stop();if(!this.Bc.isDisposed()){var a=N9(this.Bc);a.bd()&&this.pc(new g.KO(8));this.yc(J9(a));this.j.start()}};
g.k.VX=function(){this.u.stop();this.j.stop();var a=this.Bc.Cs();2==this.Bc.B&&!isNaN(a)&&this.u.start()};
g.k.pc=function(a){this.u.stop();var b=this.D;if(!g.PO(b,a)){var c=g.S(a,2);c!==g.S(this.D,2)&&this.F.Vz(c);this.D=a;Zsb(this.module,b,a)}};g.w(m$,g.U);m$.prototype.od=function(){this.j.show()};
m$.prototype.Fb=function(){this.j.hide()};
m$.prototype.u=function(){a8("mdx-privacy-popup-cancel");this.Fb()};
m$.prototype.B=function(){a8("mdx-privacy-popup-confirm");this.Fb()};g.w(n$,g.U);n$.prototype.onStateChange=function(a){this.qc(a.state)};
n$.prototype.qc=function(a){if(3===this.api.getPresentingPlayerType()){var b={RECEIVER_NAME:this.api.getOption("remote","currentReceiver").name};a=g.S(a,128)?g.lO("Error on $RECEIVER_NAME",b):a.bd()||g.QO(a)?g.lO("Playing on $RECEIVER_NAME",b):g.lO("Connected to $RECEIVER_NAME",b);this.updateValue("statustext",a);this.j.show()}else this.j.hide()};g.w(o$,g.DV);o$.prototype.C=function(){var a=this.F.getOption("remote","receivers");a&&1<a.length&&!this.F.getOption("remote","quickCast")?(this.vt=g.Pb(a,this.j,this),g.EV(this,g.Yl(a,this.j)),a=this.F.getOption("remote","currentReceiver"),a=this.j(a),this.options[a]&&this.yj(a),this.enable(!0)):this.enable(!1)};
o$.prototype.j=function(a){return a.key};
o$.prototype.gk=function(a){return"cast-selector-receiver"===a?"Cast...":this.vt[a].name};
o$.prototype.eh=function(a){g.DV.prototype.eh.call(this,a);this.F.setOption("remote","currentReceiver",this.vt[a]);this.Eb.Fb()};g.w(Ysb,g.CT);g.k=Ysb.prototype;
g.k.create=function(){var a=this.player.V(),b=g.lK(a);a={device:"Desktop",app:"youtube-desktop",loadCastApiSetupScript:a.K("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:a.K("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:a.K("enable_cast_short_lived_lounge_token")};Jsb(b,a);this.subscriptions.push(g.pC("yt-remote-before-disconnect",this.C5,this));this.subscriptions.push(g.pC("yt-remote-connection-change",this.X6,this));this.subscriptions.push(g.pC("yt-remote-receiver-availability-change",this.zW,
this));this.subscriptions.push(g.pC("yt-remote-auto-connect",this.V6,this));this.subscriptions.push(g.pC("yt-remote-receiver-resumed",this.U6,this));this.subscriptions.push(g.pC("mdx-privacy-popup-confirm",this.r8,this));this.subscriptions.push(g.pC("mdx-privacy-popup-cancel",this.q8,this));this.zW()};
g.k.load=function(){this.player.cancelPlayback();g.CT.prototype.load.call(this);this.zl=new Usb(this,this.player,this.Bc);var a=(a=Rsb())?a.currentTime:0;var b=Osb()?new M9(f$(),void 0):null;0==a&&b&&(a=J9(N9(b)));0!==a&&this.yc(a);Zsb(this,this.Te,this.Te);this.player.mp(6)};
g.k.unload=function(){this.player.ma("mdxautoplaycanceled");this.Pr=this.Yo;g.$a(this.zl,this.Bc);this.Bc=this.zl=null;g.CT.prototype.unload.call(this);this.player.mp(5);p$(this)};
g.k.qa=function(){g.qC(this.subscriptions);g.CT.prototype.qa.call(this)};
g.k.bp=function(a){var b=g.ya.apply(1,arguments);this.loaded&&this.zl.Bk.apply(this.zl,[a].concat(g.u(b)))};
g.k.getAdState=function(){return this.Ah};
g.k.No=function(){return this.Bc?N9(this.Bc).No:!1};
g.k.Ck=function(){return this.Bc?N9(this.Bc).Ck:!1};
g.k.yc=function(a,b){this.gV=a||0;this.player.ma("progresssync",a,b);this.player.Na("onVideoProgress",a||0)};
g.k.getCurrentTime=function(){return this.gV};
g.k.getProgressState=function(){var a=N9(this.Bc),b=this.player.getVideoData();return{airingStart:0,airingEnd:0,allowSeeking:1081!=a.playerState&&this.player.yh(),clipEnd:b.clipEnd,clipStart:b.clipStart,current:this.getCurrentTime(),displayedStart:-1,duration:a.getDuration(),ingestionTime:a.u?a.B+H9(a):a.B,isAtLiveHead:1>=(a.u?a.j+H9(a):a.j)-this.getCurrentTime(),loaded:a.T,seekableEnd:a.u?a.j+H9(a):a.j,seekableStart:0<a.C?a.C+H9(a):a.C,offset:0,viewerLivestreamJoinTime:b.viewerLivestreamJoinTime}};
g.k.nextVideo=function(){this.Bc&&this.Bc.nextVideo()};
g.k.yH=function(){this.Bc&&this.Bc.yH()};
g.k.C5=function(a){1===a&&(this.yO=this.Bc?N9(this.Bc):null)};
g.k.X6=function(){var a=Osb()?new M9(f$(),void 0):null;if(a){var b=this.Pr;this.loaded&&this.unload();this.Bc=a;this.yO=null;b.key!==this.Yo.key&&(this.Pr=b,this.load())}else g.Za(this.Bc),this.Bc=null,this.loaded&&(this.unload(),(a=this.yO)&&a.videoId===this.player.getVideoData().videoId&&this.player.cueVideoById(a.videoId,J9(a)));this.player.ma("videodatachange","newdata",this.player.getVideoData(),3)};
g.k.zW=function(){var a=[this.Yo],b=a.concat,c=Ksb();D9()&&g.Qz("yt-remote-cast-available")&&c.push({key:"cast-selector-receiver",name:"Cast..."});this.vt=b.call(a,c);a=Msb()||this.Yo;q$(this,a);this.player.Na("onMdxReceiversChange")};
g.k.V6=function(){var a=Msb();q$(this,a)};
g.k.U6=function(){this.Pr=Msb()};
g.k.r8=function(){this.sD=!0;p$(this);j$=!1;g$&&i$(g$,1);g$=null};
g.k.q8=function(){this.sD=!1;p$(this);q$(this,this.Yo);this.Pr=this.Yo;j$=!1;g$=null;this.player.playVideo()};
g.k.qh=function(a,b){switch(a){case "casting":return this.loaded;case "receivers":return this.vt;case "currentReceiver":return b&&("cast-selector-receiver"===b.key?csb():q$(this,b)),this.loaded?this.Pr:this.Yo;case "quickCast":return 2===this.vt.length&&"cast-selector-receiver"===this.vt[1].key?(b&&csb(),!0):!1}};
g.k.GP=function(){this.Bc.GP()};
g.k.Tk=function(){return!1};
g.k.getOptions=function(){return["casting","receivers","currentReceiver","quickCast"]};g.BT("remote",Ysb);})(_yt_player);

}

/*
     FILE ARCHIVED ON 09:32:15 Apr 26, 2023 AND RETRIEVED FROM THE
     INTERNET ARCHIVE ON 22:31:30 Jul 22, 2026.
     JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.

     ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
     SECTION 108(a)(3)).
*/
/*
playback timings (ms):
  capture_cache.get: 0.823
  load_resource: 59.476
  PetaboxLoader3.resolve: 47.254
  PetaboxLoader3.datanode: 10.4
*/