(function(g){var window=this;'use strict';var o8=function(G){g.IQ(G,"zx",Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^g.G$()).toString(36));return G},Mi=function(G,B,a){Array.isArray(a)||(a=[String(a)]); g.YzY(G.G,B,a)},Wpa=function(G){if(G instanceof g.Vc)return G; if(typeof G.fG=="function")return G.fG(!1);if(g.Jg(G)){var B=0,a=new g.Vc;a.next=function(){for(;;){if(B>=G.length)return g.WA;if(B in G)return g.xm(G[B++]);B++}}; return a}throw Error("Not implemented");},wua=function(G,B,a){if(g.Jg(G))g.kV(G,B,a); else for(G=Wpa(G);;){var V=G.next();if(V.done)break;B.call(a,V.value,void 0,G)}},KpJ=function(G,B){var a=[]; wua(B,function(V){try{var x=g.fm.prototype.X.call(this,V,!0)}catch(h){if(h=="Storage: Invalid value was encountered")return;throw h;}x===void 0?a.push(V):g.hOV(x)&&a.push(V)},G); return a},lmf=function(G,B){KpJ(G,B).forEach(function(a){g.fm.prototype.remove.call(this,a)},G)},kYk=function(G){if(G.zH){if(G.zH.locationOverrideToken)return{locationOverrideToken:G.zH.locationOverrideToken}; if(G.zH.latitudeE7!=null&&G.zH.longitudeE7!=null)return{latitudeE7:G.zH.latitudeE7,longitudeE7:G.zH.longitudeE7}}return null},NLs=function(G,B){g.YC(G,B)||G.push(B)},dlW=function(G){var B=0,a; for(a in G)B++;return B},C43=function(G,B){return g.jH(G,B)},zy8=function(G){try{return g.qY.JSON.parse(G)}catch(B){}G=String(G); if(/^\s*$/.test(G)?0:/^[\],:{}\s\u2028\u2029]*$/.test(G.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("("+G+")")}catch(B){}throw Error("Invalid JSON string: "+G);},Gu=function(G){if(g.qY.JSON)try{return g.qY.JSON.parse(G)}catch(B){}return zy8(G)},tVC=function(G){if(G.wB&&typeof G.wB=="function")return G.wB(); if(typeof Map!=="undefined"&&G instanceof Map||typeof Set!=="undefined"&&G instanceof Set)return Array.from(G.values());if(typeof G==="string")return G.split("");if(g.Jg(G)){for(var B=[],a=G.length,V=0;V1){if(a%2)throw Error("Uneven number of arguments");for(var V=0;V5&&(G=G.slice(G.length-5)); var B=g.br(k9J(),function(V){return V.loungeToken}),a=g.br(G,function(V){return V.loungeToken}); g.yN(a,function(V){return!g.YC(B,V)})&&N1$(); g.D0("yt-remote-local-screens",G,31536E3)},Nw=function(G){G||(g.RP("yt-remote-session-screen-id"),g.RP("yt-remote-session-video-id")); Ke2();G=lN();g.PW(G,kU());We8(G)},Cm9=function(){if(!d9){var G=g.ZA(); G&&(d9=new g.y_(G))}},zs8=function(){Cm9(); return d9?!!d9.get("yt-remote-use-staging-server"):!1},CG=function(G,B){g.VE[G]=!0; var a=g.BD();a&&a.publish.apply(a,arguments);g.VE[G]=!1},tKC=function(){},B8=function(){if(!zu){zu=new g.b8(new tKC); var G=g.Uq("client_streamz_web_flush_count",-1);G!==-1&&(zu.C=G)}return zu},mI$=function(){var G=window.navigator.userAgent.match(/Chrome\/([0-9]+)/); return G?parseInt(G[1],10):0},IdC=function(G){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+G)!=-1||document.currentScript.src.indexOf("&"+G)!=-1)},g4k=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},tz=function(G){G.length?phs(G.shift(),function(){tz(G)}):UIW()},OBC=function(G){return"chrome-extension://"+G+"/cast_sender.js"},phs=function(G,B,a){var V=document.createElement("script"); V.onerror=B;a&&(V.onload=a);g.uR(V,g.Ev(G));(document.head||document.documentElement).appendChild(V)},E4$=function(){var G=mI$(),B=[]; if(G>1){var a=G-1;B.push("//www.gstatic.com/eureka/clank/"+G+"/cast_sender.js");B.push("//www.gstatic.com/eureka/clank/"+a+"/cast_sender.js")}return B},UIW=function(){var G=g4k(); G&&G(!1,"No cast extension found")},bBa=function(){if(jhC){var G=2,B=g4k(),a=function(){G--; G==0&&B&&B(!0)}; window.__onGCastApiAvailable=a;phs("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",UIW,a)}},yM7=function(){bBa(); var G=E4$();G.push("//www.gstatic.com/eureka/clank/cast_sender.js");tz(G)},n4s=function(){bBa(); var G=E4$();G.push.apply(G,g.U(cM8.map(OBC)));G.push("//www.gstatic.com/eureka/clank/cast_sender.js");tz(G)},mF=function(G,B,a){g.r.call(this); this.L=a!=null?(0,g.oy)(G,a):G;this.v0=B;this.B=(0,g.oy)(this.ww,this);this.j=!1;this.X=0;this.C=this.UZ=null;this.G=[]},IO=function(){},fd$=function(){g.Da.call(this,"p")},HB3=function(){g.Da.call(this,"o")},DI8=function(){return v4a=v4a||new g.oL},SqC=function(G){g.Da.call(this,"serverreachability",G)},g9=function(G){var B=DI8(); B.dispatchEvent(new SqC(B,G))},Rsa=function(G){g.Da.call(this,"statevent",G)},pG=function(G){var B=DI8(); B.dispatchEvent(new Rsa(B,G))},ZBk=function(G,B,a,V){g.Da.call(this,"timingevent",G); this.size=B;this.rtt=a;this.retries=V},U6=function(G,B){if(typeof G!=="function")throw Error("Fn must not be null and must be a function"); return g.qY.setTimeout(function(){G()},B)},O6=function(){},E6=function(G,B,a,V){this.C=G; this.G=B;this.wO=a;this.Md=V||1;this.Dx=new g.EW(this);this.Vb=45E3;this.Qb=null;this.L=!1;this.Y=this.Ur=this.V=this.SJ=this.HS=this.eJ=this.zH=null;this.XJ=[];this.j=null;this.W=0;this.B=this.GH=null;this.Yf=-1;this.LN=!1;this.MB=0;this.Er=null;this.QW=this.qB=this.fh=this.Zx=!1;this.X=new rM8},rM8=function(){this.C=null; this.j="";this.X=!1},Xh7=function(G,B,a){G.SJ=1; G.V=o8(B.clone());G.Y=a;G.Zx=!0;$IC(G,null)},$IC=function(G,B){G.HS=Date.now(); j8(G);G.Ur=G.V.clone();Mi(G.Ur,"t",G.Md);G.W=0;var a=G.C.SJ;G.X=new rM8;G.j=qqW(G.C,a?B:null,!G.Y);G.MB>0&&(G.Er=new g.M1((0,g.oy)(G.ke,G,G.j),G.MB));G.Dx.listen(G.j,"readystatechange",G.MK);B=G.Qb?g.fo(G.Qb):{};G.Y?(G.GH||(G.GH="POST"),B["Content-Type"]="application/x-www-form-urlencoded",G.j.send(G.Ur,G.GH,G.Y,B)):(G.GH="GET",G.j.send(G.Ur,G.GH,null,B));g9(1)},Qh3=function(G){if(!uG$(G))return g.oz(G.j); var B=g.MH(G.j);if(B==="")return"";var a="",V=B.length,x=g.i8(G.j)==4;if(!G.X.C){if(typeof TextDecoder==="undefined")return bN(G),yx(G),"";G.X.C=new g.qY.TextDecoder}for(var h=0;hB.length)return Lef;B=B.slice(V,V+a);G.W=V+a;return B},j8=function(G){G.eJ=Date.now()+G.Vb; Fea(G,G.Vb)},Fea=function(G,B){if(G.zH!=null)throw Error("WatchDog timer not null"); G.zH=U6((0,g.oy)(G.xk,G),B)},JMC=function(G){G.zH&&(g.qY.clearTimeout(G.zH),G.zH=null)},yx=function(G){G.C.HG()||G.LN||AMa(G.C,G)},bN=function(G){JMC(G); g.WW(G.Er);G.Er=null;G.Dx.removeAll();if(G.j){var B=G.j;G.j=null;B.abort();B.dispose()}},a03=function(G,B){try{var a=G.C; if(a.rJ!=0&&(a.j==G||Yqk(a.X,G)))if(!G.qB&&Yqk(a.X,G)&&a.rJ==3){try{var V=a.Fg.j.parse(B)}catch(p){V=null}if(Array.isArray(V)&&V.length==3){var x=V;if(x[0]==0)a:{if(!a.V){if(a.j)if(a.j.HS+3E30&&(a.MB=1.5*w);V=a;var K=G.GU();if(K){var l=g.G_(K,"X-Client-Wire-Protocol");if(l){var k=V.X;!k.j&&(g.E3(l,"spdy")||g.E3(l,"quic")||g.E3(l,"h2"))&&(k.G=k.B,k.j=new Set,k.X&&(o47(k,k.X),k.X=null))}if(V.Zx){var N=g.G_(K,"X-HTTP-Session-Id");N&&(V.dC=N,g.IQ(V.Qb,V.Zx,N))}}a.rJ=3;a.B&&a.B.Ar();a.m3&&(a.fd=Date.now()-G.HS);V=a;var d=G;V.w7=MKk(V,V.SJ?V.Md:null,V.wO);if(d.qB){Gp$(V.X, d);var C=d,z=V.MB;z&&C.setTimeout(z);C.zH&&(JMC(C),j8(C));V.j=d}else BE$(V);a.C.length>0&&H8(a)}else h[0]!="stop"&&h[0]!="close"||fG(a,7);else a.rJ==3&&(h[0]=="stop"||h[0]=="close"?h[0]=="stop"?fG(a,7):a.disconnect():h[0]!="noop"&&a.B&&a.B.Lx(h),a.XJ=0)}g9(4)}catch(p){}},VLC=function(G,B){this.j=G; this.map=B;this.context=null},xel=function(G){this.B=G||10; g.qY.PerformanceNavigationTiming?(G=g.qY.performance.getEntriesByType("navigation"),G=G.length>0&&(G[0].nextHopProtocol=="hq"||G[0].nextHopProtocol=="h2")):G=!!(g.qY.chrome&&g.qY.chrome.loadTimes&&g.qY.chrome.loadTimes()&&g.qY.chrome.loadTimes().wasFetchedViaSpdy);this.G=G?this.B:1;this.j=null;this.G>1&&(this.j=new Set);this.X=null;this.C=[]},hJs=function(G){return G.X?!0:G.j?G.j.size>=G.G:!1},Pmf=function(G){return G.X?1:G.j?G.j.size:0},Yqk=function(G,B){return G.X?G.X==B:G.j?G.j.has(B):!1},o47= function(G,B){G.j?G.j.add(B):G.X=B},Gp$=function(G,B){G.X&&G.X==B?G.X=null:G.j&&G.j.has(B)&&G.j.delete(B)},eJh=function(G){if(G.X!=null)return G.C.concat(G.X.XJ); if(G.j!=null&&G.j.size!==0){var B=G.C;G=g.m(G.j.values());for(var a=G.next();!a.done;a=G.next())B=B.concat(a.value.XJ);return B}return g.Gv(G.C)},W$k=function(G,B){var a=new O6; if(g.qY.Image){var V=new Image;V.onload=g.MY(v8,a,"TestLoadImage: loaded",!0,B,V);V.onerror=g.MY(v8,a,"TestLoadImage: error",!1,B,V);V.onabort=g.MY(v8,a,"TestLoadImage: abort",!1,B,V);V.ontimeout=g.MY(v8,a,"TestLoadImage: timeout",!1,B,V);g.qY.setTimeout(function(){if(V.ontimeout)V.ontimeout()},1E4); V.src=G}else B(!1)},wH2=function(G,B){var a=new O6,V=new AbortController,x=setTimeout(function(){V.abort(); v8(a,"TestPingServer: timeout",!1,B)},1E4); fetch(G,{signal:V.signal}).then(function(h){clearTimeout(x);h.ok?v8(a,"TestPingServer: ok",!0,B):v8(a,"TestPingServer: server error",!1,B)}).catch(function(){clearTimeout(x); v8(a,"TestPingServer: error",!1,B)})},v8=function(G,B,a,V,x){try{x&&(x.onload=null,x.onerror=null,x.onabort=null,x.ontimeout=null),V(a)}catch(h){}},K$k=function(){this.j=new IO},l0h=function(G,B,a){var V=a||""; try{Im9(G,function(x,h){var e=x;g.Ag(x)&&(e=g.ca(x));B.push(V+h+"="+encodeURIComponent(e))})}catch(x){throw B.push(V+"type="+encodeURIComponent("_badmap")),x; }},D3=function(G,B,a){return a&&a.cs1?a.cs1[G]||B:B},kp9=function(G){this.C=[]; this.Md=this.w7=this.Qb=this.wO=this.j=this.dC=this.Zx=this.LN=this.W=this.Yf=this.Y=null;this.MD=this.Ur=0;this.wc=D3("failFast",!1,G);this.qB=this.zH=this.V=this.L=this.B=null;this.YD=!0;this.OZ=this.Er=-1;this.QW=this.XJ=this.HS=0;this.L3=D3("baseRetryDelayMs",5E3,G);this.IG=D3("retryDelaySeedMs",1E4,G);this.xF=D3("forwardChannelMaxRetries",2,G);this.Qv=D3("forwardChannelRequestTimeoutMs",2E4,G);this.R4=G&&G.GDH||void 0;this.n3=G&&G.cuL||void 0;this.PD=G&&G.o2b||!1;this.MB=void 0;this.SJ=G&&G.ORJ|| !1;this.G="";this.X=new xel(G&&G.gzl);this.Fg=new K$k;this.Dx=G&&G.iuH||!1;this.eJ=G&&G.y7X||!1;this.Dx&&this.eJ&&(this.eJ=!1);this.Vg=G&&G.IQx||!1;G&&G.s11&&(this.YD=!1);this.m3=!this.Dx&&this.YD&&G&&G.m4S||!1;this.S_=void 0;G&&G.CB&&G.CB>0&&(this.S_=G.CB);this.Cd=void 0;this.fd=0;this.Vb=!1;this.fh=this.GH=null},nG=function(G){G.j&&(NEl(G),G.j.cancel(),G.j=null)},dea=function(G){nG(G); G.V&&(g.qY.clearTimeout(G.V),G.V=null);c8(G);G.X.cancel();G.L&&(typeof G.L==="number"&&g.qY.clearTimeout(G.L),G.L=null)},H8=function(G){hJs(G.X)||G.L||(G.L=!0,g.KJ(G.sW,G),G.HS=0)},zJ$=function(G,B){if(Pmf(G.X)>=G.X.G-(G.L?1:0))return!1; if(G.L)return G.C=B.XJ.concat(G.C),!0;if(G.rJ==1||G.rJ==2||G.HS>=(G.wc?0:G.xF))return!1;G.L=U6((0,g.oy)(G.sW,G,B),CP3(G,G.HS));G.HS++;return!0},mef=function(G,B){var a; B?a=B.wO:a=G.Ur++;var V=G.Qb.clone();g.IQ(V,"SID",G.G);g.IQ(V,"RID",a);g.IQ(V,"AID",G.Er);S8(G,V);G.W&&G.Y&&g.OW(V,G.W,G.Y);a=new E6(G,G.G,a,G.HS+1);G.W===null&&(a.Qb=G.Y);B&&(G.C=B.XJ.concat(G.C));B=tLa(G,a,1E3);a.setTimeout(Math.round(G.Qv*.5)+Math.round(G.Qv*.5*Math.random()));o47(G.X,a);Xh7(a,V,B)},S8=function(G,B){G.LN&&g.t$(G.LN,function(a,V){g.IQ(B,V,a)}); G.B&&Im9({},function(a,V){g.IQ(B,V,a)})},tLa=function(G,B,a){a=Math.min(G.C.length,a); var V=G.B?(0,g.oy)(G.B.Ik,G.B,G):null;a:{for(var x=G.C,h=-1;;){var e=["count="+a];h==-1?a>0?(h=x[0].j,e.push("ofs="+h)):h=0:e.push("ofs="+h);for(var w=!0,K=0;K=3)return!1; G.QW++;G.V=U6((0,g.oy)(G.ir,G),CP3(G,G.XJ));G.XJ++;return!0},NEl=function(G){G.GH!=null&&(g.qY.clearTimeout(G.GH),G.GH=null)},I0f=function(G){G.j=new E6(G,G.G,"rpc",G.QW); G.W===null&&(G.j.Qb=G.Y);G.j.MB=0;var B=G.w7.clone();g.IQ(B,"RID","rpc");g.IQ(B,"SID",G.G);g.IQ(B,"AID",G.Er);g.IQ(B,"CI",G.qB?"0":"1");!G.qB&&G.S_&&g.IQ(B,"TO",G.S_);g.IQ(B,"TYPE","xmlhttp");S8(G,B);G.W&&G.Y&&g.OW(B,G.W,G.Y);G.MB&&G.j.setTimeout(G.MB);var a=G.j;G=G.Md;a.SJ=1;a.V=o8(B.clone());a.Y=null;a.Zx=!0;$IC(a,G)},c8=function(G){G.zH!=null&&(g.qY.clearTimeout(G.zH),G.zH=null)},AMa=function(G,B){var a=null; if(G.j==B){c8(G);NEl(G);G.j=null;var V=2}else if(Yqk(G.X,B))a=B.XJ,Gp$(G.X,B),V=1;else return;if(G.rJ!=0)if(B.L)if(V==1){a=B.Y?B.Y.length:0;B=Date.now()-B.HS;var x=G.HS;V=DI8();V.dispatchEvent(new ZBk(V,a,B,x));H8(G)}else BE$(G);else{var h=B.Yf;x=B.getLastError();if(x==3||x==0&&h>0||!(V==1&&zJ$(G,B)||V==2&&iB7(G)))switch(a&&a.length>0&&(B=G.X,B.C=B.C.concat(a)),x){case 1:fG(G,5);break;case 4:fG(G,10);break;case 3:fG(G,6);break;default:fG(G,2)}}},CP3=function(G,B){var a=G.L3+Math.floor(Math.random()* G.IG); G.isActive()||(a*=2);return a*B},fG=function(G,B){if(B==2){var a=(0,g.oy)(G.DHN,G),V=G.n3,x=!V; V=new g.lA(V||"//www.google.com/images/cleardot.gif");g.qY.location&&g.qY.location.protocol=="http"||g.kO(V,"https");o8(V);x?W$k(V.toString(),a):wH2(V.toString(),a)}else pG(2);G.rJ=0;G.B&&G.B.TE(B);gS3(G);dea(G)},gS3=function(G){G.rJ=0; G.fh=[];if(G.B){var B=eJh(G.X);if(B.length!=0||G.C.length!=0)g.BK(G.fh,B),g.BK(G.fh,G.C),G.X.C.length=0,g.Gv(G.C),G.C.length=0;G.B.QJ()}},pHl=function(G){if(G.rJ==0)return G.fh; var B=[];g.BK(B,eJh(G.X));g.BK(B,G.C);return B},MKk=function(G,B,a){var V=g.gj(a); V.j!=""?(B&&g.No(V,B+"."+V.j),g.dj(V,V.C)):(V=g.qY.location,V=gtk(V.protocol,B?B+"."+V.hostname:V.hostname,+V.port,a));B=G.Zx;a=G.dC;B&&a&&g.IQ(V,B,a);g.IQ(V,"VER",G.Zy);S8(G,V);return V},qqW=function(G,B,a){if(B&&!G.SJ)throw Error("Can't create secondary domain capable XhrIo object."); B=G.PD&&!G.R4?new g.Ju(new g.ev({yl:a})):new g.Ju(G.R4);B.W=G.SJ;return B},Uek=function(){},OUh=function(){},Z3=function(G,B){g.oL.call(this); this.j=new kp9(B);this.B=G;this.X=B&&B.e6B||null;G=B&&B.Ddd||null;B&&B.nzH&&(G?G["X-Client-Protocol"]="webchannel":G={"X-Client-Protocol":"webchannel"});this.j.Y=G;G=B&&B.wo1||null;B&&B.iS&&(G?G["X-WebChannel-Content-Type"]=B.iS:G={"X-WebChannel-Content-Type":B.iS});B&&B.eb&&(G?G["X-WebChannel-Client-Profile"]=B.eb:G={"X-WebChannel-Client-Profile":B.eb});this.j.Yf=G;(G=B&&B.KEJ)&&!g.O3(G)&&(this.j.W=G);this.L=B&&B.ORJ||!1;this.G=B&&B.teS||!1;(B=B&&B.FHr)&&!g.O3(B)&&(this.j.Zx=B,g.Eu(this.X,B)&&(G= this.X,B in G&&delete G[B]));this.C=new RO(this)},ESk=function(G){fd$.call(this); G.__headers__&&(this.headers=G.__headers__,this.statusCode=G.__status__,delete G.__headers__,delete G.__status__);var B=G.__sm__;B?this.data=(this.j=g.po(B))?g.cM(B,this.j):B:this.data=G},jP2=function(G){HB3.call(this); this.status=1;this.errorCode=G},RO=function(G){this.j=G},bUf=function(G,B){this.X=G; this.j=B},yth=function(G){return pHl(G.j).map(function(B){var a=G.X; B=B.map;"__data__"in B?(B=B.__data__,a=a.G?zy8(B):B):a=B;return a})},r9=function(G,B){if(typeof G!=="function")throw Error("Fn must not be null and must be a function"); return g.qY.setTimeout(function(){G()},B)},XF=function(G){$U.dispatchEvent(new ctW($U,G))},ctW=function(G){g.Da.call(this,"statevent",G)},qw=function(G,B,a,V){this.j=G; this.G=B;this.W=a;this.L=V||1;this.X=45E3;this.C=new g.EW(this);this.B=new g.Oh;this.B.setInterval(250)},f0C=function(G,B,a){G.IF=1; G.qC=o8(B.clone());G.vy=a;G.Zx=!0;nSl(G,null)},HUJ=function(G,B,a,V,x){G.IF=1; G.qC=o8(B.clone());G.vy=null;G.Zx=a;x&&(G.WV=!1);nSl(G,V)},nSl=function(G,B){G.w9=Date.now(); vSs(G);G.lW=G.qC.clone();Mi(G.lW,"t",G.L);G.OB=0;G.AC=G.j.X_(G.j.xj()?B:null);G.F_>0&&(G.Mr=new g.M1((0,g.oy)(G.Bb,G,G.AC),G.F_));G.C.listen(G.AC,"readystatechange",G.OV);B=G.yu?g.fo(G.yu):{};G.vy?(G.UB="POST",B["Content-Type"]="application/x-www-form-urlencoded",G.AC.send(G.lW,G.UB,G.vy,B)):(G.UB="GET",G.WV&&!g.Yj&&(B.Connection="close"),G.AC.send(G.lW,G.UB,null,B));G.j.lI(1)},RJ2=function(G,B){var a=G.OB,V=B.indexOf("\n",a); if(V==-1)return De$;a=Number(B.substring(a,V));if(isNaN(a))return SU2;V+=1;if(V+a>B.length)return De$;B=B.slice(V,V+a);G.OB=V+a;return B},vSs=function(G){G.zT=Date.now()+G.X; ZUl(G,G.X)},ZUl=function(G,B){if(G.tf!=null)throw Error("WatchDog timer not null"); G.tf=r9((0,g.oy)(G.UV,G),B)},rtf=function(G){G.tf&&(g.qY.clearTimeout(G.tf),G.tf=null)},$ef=function(G){G.j.HG()||G.E8||G.j.y4(G)},uN=function(G){rtf(G); g.WW(G.Mr);G.Mr=null;G.B.stop();G.C.removeAll();if(G.AC){var B=G.AC;G.AC=null;B.abort();B.dispose()}G.Jz&&(G.Jz=null)},XH3=function(G,B){try{G.j.SR(G,B),G.j.lI(4)}catch(a){}},uIh=function(G,B,a,V,x){if(V==0)a(!1); else{var h=x||0;V--;qUa(G,B,function(e){e?a(!0):g.qY.setTimeout(function(){uIh(G,B,a,V,h)},h)})}},qUa=function(G,B,a){var V=new Image; V.onload=function(){try{Qx(V),a(!0)}catch(x){}}; V.onerror=function(){try{Qx(V),a(!1)}catch(x){}}; V.onabort=function(){try{Qx(V),a(!1)}catch(x){}}; V.ontimeout=function(){try{Qx(V),a(!1)}catch(x){}}; g.qY.setTimeout(function(){if(V.ontimeout)V.ontimeout()},B); V.src=G},Qx=function(G){G.onload=null; G.onerror=null;G.onabort=null;G.ontimeout=null},QP7=function(G){this.j=G; this.X=new IO},L$C=function(G){var B=LG(G.j,G.n5,"/mail/images/cleardot.gif"); o8(B);uIh(B.toString(),5E3,(0,g.oy)(G.r3,G),3,2E3);G.lI(1)},TEC=function(G){var B=G.j.L; B!=null?(XF(5),B?(XF(11),Tu(G.j,G,!1)):(XF(12),Tu(G.j,G,!0))):(G.ih=new qw(G),G.ih.yu=G.Ct,B=G.j,B=LG(B,B.xj()?G.aF:null,G.cY),XF(5),Mi(B,"TYPE","xmlhttp"),HUJ(G.ih,B,!1,G.aF,!1))},sPC=function(G,B,a){this.j=1; this.X=[];this.C=[];this.B=new IO;this.Y=G||null;this.L=B!=null?B:null;this.V=a||!1},F$a=function(G,B){this.j=G; this.map=B;this.context=null},Jtk=function(G,B,a,V){g.Da.call(this,"timingevent",G); this.size=B;this.rtt=a;this.retries=V},AtC=function(G){g.Da.call(this,"serverreachability",G)},iUs=function(G){G.P$(1,0); G.p6=LG(G,null,G.vY);YUk(G)},PP8=function(G){G.VS&&(G.VS.abort(),G.VS=null); G.s$&&(G.s$.cancel(),G.s$=null);G.Vf&&(g.qY.clearTimeout(G.Vf),G.Vf=null);s6(G);G.J$&&(G.J$.cancel(),G.J$=null);G.uq&&(g.qY.clearTimeout(G.uq),G.uq=null)},oSh=function(G,B){if(G.j==0)throw Error("Invalid operation: sending map when state is closed"); G.X.push(new F$a(G.VZ++,B));G.j!=2&&G.j!=3||YUk(G)},ML$=function(G){var B=0; G.s$&&B++;G.J$&&B++;return B},YUk=function(G){G.J$||G.uq||(G.uq=r9((0,g.oy)(G.EW,G),0),G.qG=0)},aPJ=function(G,B){if(G.j==1){if(!B){G.lK=Math.floor(Math.random()*1E5); B=G.lK++;var a=new qw(G,"",B);a.yu=G.kJ;var V=G0k(G),x=G.p6.clone();g.IQ(x,"RID",B);g.IQ(x,"CVER","1");FF(G,x);f0C(a,x,V);G.J$=a;G.j=2}}else G.j==3&&(B?BP7(G,B):G.X.length==0||G.J$||BP7(G))},BP7=function(G,B){if(B)if(G.Hy>6){G.X=G.C.concat(G.X); G.C.length=0;var a=G.lK-1;B=G0k(G)}else a=B.W,B=B.vy;else a=G.lK++,B=G0k(G);var V=G.p6.clone();g.IQ(V,"SID",G.G);g.IQ(V,"RID",a);g.IQ(V,"AID",G.E6);FF(G,V);a=new qw(G,G.G,a,G.qG+1);a.yu=G.kJ;a.setTimeout(1E4+Math.round(1E4*Math.random()));G.J$=a;f0C(a,V,B)},FF=function(G,B){G.Yl&&(G=G.Yl.M2())&&g.t$(G,function(a,V){g.IQ(B,V,a)})},G0k=function(G){var B=Math.min(G.X.length,1E3),a=["count="+B]; if(G.Hy>6&&B>0){var V=G.X[0].j;a.push("ofs="+V)}else V=0;for(var x={},h=0;h=3)return!1; G.W++;G.Vf=r9((0,g.oy)(G.q2,G),x$W(G,G.u_));G.u_++;return!0},Tu=function(G,B,a){G.qc=G.L==null?a:!G.L; G.eh=B.PB;G.V||iUs(G)},s6=function(G){G.Rg!=null&&(g.qY.clearTimeout(G.Rg),G.Rg=null)},x$W=function(G,B){var a=5E3+Math.floor(Math.random()*1E4); G.isActive()||(a*=2);return a*B},Jz=function(G,B){if(B==2||B==9){var a=null; G.Yl&&(a=null);var V=(0,g.oy)(G.g3J,G);a||(a=new g.lA("//www.google.com/images/cleardot.gif"),o8(a));qUa(a.toString(),1E4,V)}else XF(2);etC(G,B)},etC=function(G,B){G.j=0; G.Yl&&G.Yl.Kx(B);Wvl(G);PP8(G)},Wvl=function(G){G.j=0; G.eh=-1;if(G.Yl)if(G.C.length==0&&G.X.length==0)G.Yl.oV();else{var B=g.Gv(G.C),a=g.Gv(G.X);G.C.length=0;G.X.length=0;G.Yl.oV(B,a)}},LG=function(G,B,a){var V=g.gj(a); if(V.j!="")B&&g.No(V,B+"."+V.j),g.dj(V,V.C);else{var x=window.location;V=gtk(x.protocol,B?B+"."+x.hostname:x.hostname,+x.port,a)}G.MC&&g.t$(G.MC,function(h,e){g.IQ(V,e,h)}); g.IQ(V,"VER",G.Hy);FF(G,V);return V},wLf=function(){},Kva=function(){this.j=[]; this.X=[]},lP2=function(G){g.Da.call(this,"channelMessage"); this.message=G},k0k=function(G){g.Da.call(this,"channelError"); this.error=G},NPC=function(G,B){this.action=G; this.params=B||{}},Az=function(G,B){g.r.call(this); this.j=new g.J8(this.JH1,0,this);g.X(this,this.j);this.v0=5E3;this.X=0;if(typeof G==="function")B&&(G=(0,g.oy)(G,B));else if(G&&typeof G.handleEvent==="function")G=(0,g.oy)(G.handleEvent,G);else throw Error("Invalid listener argument");this.C=G},d$7=function(G,B,a,V,x,h,e,w,K){a=a===void 0?!1:a; V=V===void 0?function(){return""}:V; x=x===void 0?!1:x;h=h===void 0?!1:h;e=e===void 0?!1:e;w=w===void 0?!0:w;K=K===void 0?function(){return g.mL({})}:K; this.SJ=G;this.zH=B;this.B=new g.bu;this.X=new Az(this.Dqn,this);this.j=null;this.W=!1;this.Y=null;this.HS="";this.XJ=this.V=0;this.C=[];this.Vb=a;this.Zx=V;this.L=h;this.Qb=K;this.eJ=e;this.LN=w;this.GH=null;this.G=g.mL();this.Dx=x;this.MB=new puk;this.qB=new Ul2;this.Ur=new Ox$;this.Er=new Etk;this.Yf=new jbC;this.fh=new bx7},zta=function(G,B,a,V,x){CT3(G); if(G.j){var h=g.A0("ID_TOKEN"),e=G.j.kJ||{};h?e["x-youtube-identity-token"]=h:delete e["x-youtube-identity-token"];G.j.kJ=e}V?(V.getState()!=3&&ML$(V)==0||V.getState(),G.j.connect(B,a,G.zH,V.G,V.E6)):x?G.j.connect(B,a,G.zH,x.sessionId,x.arrayId):G.j.connect(B,a,G.zH)},m$7=function(G){var B,a; g.v(function(V){if(V.j==1)return g.OA(V,2),G.LN?g.f(V,YU(G),2):(YU(G),V.kf(2));g.bx(V);B=G.C;G.C=[];a=B.length;tnl(G,B,a);iN(G);return g.yb(V,0)})},tnl=function(G,B,a){for(var V=0;V0?a=Object.assign({},a,B):delete a.Authorization;G.j.kJ=a}}).yC(function(){}),function(){G.GH=null})},P8=function(G){this.scheme="https"; this.port=this.domain="";this.j="/api/lounge";this.X=!0;G=G||document.location.href;var B=Number(g.Z4(4,G))||"";B&&(this.port=":"+B);this.domain=g.rp(G)||"";G=g.ns();G.search("MSIE")>=0&&(G=G.match(/MSIE ([\d.]+)/)[1],g.cW(G,"10.0")<0&&(this.X=!1))},oO=function(G,B){var a=G.j; G.X&&(a=G.scheme+"://"+G.domain+G.port+G.j);return g.LJ(a+B,{})},gR$=function(G,B){g.oL.call(this); var a=this;this.yv=G();this.yv.subscribe("handlerOpened",this.Dg,this);this.yv.subscribe("handlerClosed",this.onClosed,this);this.yv.subscribe("handlerError",function(V,x){a.onError(x)}); this.yv.subscribe("handlerMessage",this.onMessage,this);this.j=B},pLk=function(G,B,a){var V=this; a=a===void 0?function(){return""}:a; var x=x===void 0?new OUh:x;var h=h===void 0?new g.bu:h;this.pathPrefix=G;this.j=B;this.HS=a;this.B=h;this.V=null;this.Y=this.W=0;this.channel=null;this.L=0;this.C=new Az(function(){V.C.isActive();var e;((e=V.channel)==null?void 0:Pmf((new bUf(e,e.j)).j.X))===0&&V.connect(V.V,V.W)}); this.G={};this.X={};this.zH=!1;this.logger=null;this.XJ=[];this.Mq=void 0;this.Qb=new puk;this.GH=new Ul2;this.LN=new Ox$;this.Zx=new Etk},U$f=function(G){g.uf(G.channel,"m",function(){G.L=3; G.C.reset();G.V=null;G.W=0;for(var B=g.m(G.XJ),a=B.next();!a.done;a=B.next())a=a.value,G.channel&&G.channel.send(a);G.XJ=[];G.publish("webChannelOpened");G.Qb.j("WEB_CHANNEL")}); g.uf(G.channel,"n",function(){G.L=0;G.C.isActive()||G.publish("webChannelClosed");var B,a=(B=G.channel)==null?void 0:yth(new bUf(B,B.j));a&&(G.XJ=[].concat(g.U(a)));G.GH.j("WEB_CHANNEL")}); g.uf(G.channel,"p",function(B){var a=B.data;a[0]==="gracefulReconnect"?(G.C.start(),G.channel&&G.channel.close()):G.publish("webChannelMessage",new NPC(a[0],a[1]));G.Mq=B.statusCode;G.LN.j("WEB_CHANNEL")}); g.uf(G.channel,"o",function(){G.Mq===401||G.C.start();G.publish("webChannelError");G.Zx.j("WEB_CHANNEL")})},ONf=function(G){var B=G.HS(); B?G.G["x-youtube-lounge-xsrf-token"]=B:delete G.G["x-youtube-lounge-xsrf-token"]},ER7=function(G){g.oL.call(this); this.j=G();this.j.subscribe("webChannelOpened",this.eU,this);this.j.subscribe("webChannelClosed",this.onClosed,this);this.j.subscribe("webChannelError",this.onError,this);this.j.subscribe("webChannelMessage",this.onMessage,this)},jt9=function(G,B,a,V,x){function h(){return new d$7(oO(G,"/bc"),B,!1,a,V)} a=a===void 0?function(){return""}:a; return g.pB("enable_mdx_web_channel_desktop")?new ER7(function(){return new pLk(oO(G,"/wc"),B,a)}):new gR$(h,x)},nRs=function(){var G=bNf; yxh();Mw.push(G);cxC()},GP=function(G,B){yxh(); var a=fPC(G,String(B));Mw.length==0?HNW(a):(cxC(),g.kV(Mw,function(V){V(a)}))},B5=function(G){GP("CP",G)},yxh=function(){Mw||(Mw=g.LV("yt.mdx.remote.debug.handlers_")||[],g.Qb("yt.mdx.remote.debug.handlers_",Mw))},HNW=function(G){var B=(ad+1)%50; ad=B;V5[B]=G;xc||(xc=B==49)},cxC=function(){var G=Mw; if(V5[0]){var B=xc?ad:-1,a={};do a={CJ:void 0},B=(B+1)%50,a.CJ=V5[B],g.kV(G,function(V){return function(x){x(V.CJ)}}(a)); while(B!=ad);V5=Array(50);ad=-1;xc=!1}},fPC=function(G,B){var a=(Date.now()-vR3)/1E3; a.toFixed&&(a=a.toFixed(3));var V=[];V.push("[",a+"s","] ");V.push("[","yt.mdx.remote","] ");V.push(G+": "+B,"\n");return V.join("")},eF=function(G){g.wI.call(this); this.L=G;this.screens=[]},D$l=function(G,B){var a=G.get(B.uuid)||G.get(B.id); if(a)return G=a.name,a.id=B.id||a.id,a.name=B.name,a.token=B.token,a.uuid=B.uuid||a.uuid,a.name!=G;G.screens.push(B);return!0},SV8=function(G,B){var a=G.screens.length!=B.length; G.screens=g.wb(G.screens,function(h){return!!xIW(B,h)}); for(var V=B.length,x=0;x0&&G.G0&&gD(G,a)},function(B){G.B=function(){}; G.gR(B)})},KH7=function(G){var B={}; B.pairingCode=G.GH;B.theme=G.SJ;zs8()&&(B.env_useStageMdx=1);return g.Qs(B)},l1C=function(G){return new Promise(function(B){G.GH=ad8(); if(G.Qb){var a=new chrome.cast.DialLaunchResponse(!0,KH7(G));B(a);wnC(G)}else G.zH=function(){g.me(G.Y);G.zH=function(){}; G.Y=NaN;var V=new chrome.cast.DialLaunchResponse(!0,KH7(G));B(V);wnC(G)},G.Y=g.z9(function(){G.zH()},100)})},Ng3=function(G,B,a){G.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(B)); var V=new e8(B);return(new Promise(function(x){kD9(G,V,function(h){h?(G.XJ=!0,Nr(G.G,V),CQ(G,V),gD(G,a)):g.Pu(Error("DialSession, RemoteScreen from screenData: "+JSON.stringify(B)+" is not online."));x(h)},5)})).then(function(x){return x?new chrome.cast.DialLaunchResponse(!1):l1C(G)})},dMs=function(G,B){var a=G.V.receiver.label,V=G.X.friendlyName; return(new Promise(function(x){Fva(G.G,a,B,V,function(h){h&&h.token&&CQ(G,h);x(h)},function(h){zP(G,"Failed to get DIAL screen: "+h); x(null)})})).then(function(x){return x&&x.token?new chrome.cast.DialLaunchResponse(!1):l1C(G)})},kD9=function(G,B,a,V){g.me(G.L); G.L=0;Axf(G.G,B,function(x){x||V<0?a(x):G.L=g.z9(function(){kD9(G,B,a,V-1)},300)})},gD=function(G,B){G.info("getDialAppInfoWithTimeout_ "+B); Id(G)&&(g.me(G.W),G.W=0,B==0?C_8(G):G.W=g.z9(function(){C_8(G)},B))},C_8=function(G){Id(G)&&G.C.getDialAppInfo(function(B){G.info("getDialAppInfo dialLaunchData: "+JSON.stringify(B)); B=B.extraData||{};var a=null;if(B.loungeToken){var V;((V=G.j)==null?void 0:V.token)==B.loungeToken&&(a="staleLoungeToken")}else a="missingLoungeToken";a?(G.HS=a,gD(G,3E4)):(G.XJ=!1,G.HS="unknown",oRs(G,B.loungeToken),gD(G,B.loungeTokenRefreshIntervalMs))},function(B){G.info("getDialAppInfo error: "+B); G.HS="noLoungeTokenResponse";gD(G,3E4)})},z3s=function(G){g.me(G.L); G.L=0;g.me(G.W);G.W=0;G.B();G.B=function(){}; g.me(G.Y)},pQ=function(G,B){dD.call(this,G,B,"ManualSession"); this.C=g.z9((0,g.oy)(this.L8,this,null),150)},Ua=function(G,B){g.wI.call(this); this.config_=B;this.X=G;this.V=B.appId||"233637DE";this.G=B.theme||"cl";this.Y=B.disableCastApi||!1;this.L=B.forceMirroring||!1;this.j=null;this.W=!1;this.C=[];this.B=(0,g.oy)(this.Usd,this)},tqs=function(G,B){return B?g.JJ(G.C,function(a){return W8(B,a.label)},G):null},Oa=function(G){GP("Controller",G)},bNf=function(G){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(G)},Ea=function(G){return G.W||!!G.C.length||!!G.j},jF=function(G,B,a){B!=G.j&&(g.WW(G.j),(G.j=B)?(a?G.publish("yt-remote-cast2-receiver-resumed", B.X):G.publish("yt-remote-cast2-receiver-selected",B.X),B.subscribe("sessionScreen",(0,g.oy)(G.Zj,G,B)),B.subscribe("sessionFailed",function(){return mMJ(G,B)}),B.j?G.publish("yt-remote-cast2-session-change",B.j):a&&G.j.L8(null)):G.publish("yt-remote-cast2-session-change",null))},mMJ=function(G,B){G.j==B&&G.publish("yt-remote-cast2-session-failed")},I1J=function(G){var B=G.X.lr(),a=G.j&&G.j.X; G=g.br(B,function(V){a&&W8(V,a.label)&&(a=null);var x=V.uuid?V.uuid:V.id,h=tqs(this,V);h?(h.label=x,h.friendlyName=V.name):(h=new chrome.cast.Receiver(x,V.name),h.receiverType=chrome.cast.ReceiverType.CUSTOM);return h},G); a&&(a.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(a=new chrome.cast.Receiver(a.label,a.friendlyName),a.receiverType=chrome.cast.ReceiverType.CUSTOM),G.push(a));return G},bif=function(G,B,a,V){V.disableCastApi?b7("Cannot initialize because disabled by Mdx config."):gIC()?pna(B,V)&&(UM3(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?Oia(G,a):(window.__onGCastApiAvailable=function(x,h){x?Oia(G,a):(y5("Failed to load cast API: "+h),EI3(!1),UM3(!1),g.RP("yt-remote-cast-available"),g.RP("yt-remote-cast-receiver"), jwk(),a(!1))},V.loadCastApiSetupScript?g.wr("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?mI$()>=60&&yM7():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?UIW():mI$()>=89?n4s():(bBa(),tz(cM8.map(OBC))))):b7("Cannot initialize because not running Chrome")},jwk=function(){b7("dispose"); var G=c5();G&&G.dispose();g.Qb("yt.mdx.remote.cloudview.instance_",null);yd$(!1);g.e5(cda);cda.length=0},nQ=function(){return!!g.SL("yt-remote-cast-installed")},nIf=function(){var G=g.SL("yt-remote-cast-receiver"); return G?G.friendlyName:null},f17=function(){b7("clearCurrentReceiver"); g.RP("yt-remote-cast-receiver")},Hi3=function(){return nQ()?c5()?c5().getCastSession():(y5("getCastSelector: Cast is not initialized."),null):(y5("getCastSelector: Cast API is not installed!"),null)},vI$=function(){nQ()?c5()?fQ()?(b7("Requesting cast selector."),c5().requestSession()):(b7("Wait for cast API to be ready to request the session."),cda.push(g.hh("yt-remote-cast2-api-ready",vI$))):y5("requestCastSelector: Cast is not initialized."):y5("requestCastSelector: Cast API is not installed!")}, H5=function(G,B){fQ()?c5().setConnectedScreenStatus(G,B):y5("setConnectedScreenStatus called before ready.")},gIC=function(){var G=g.ns().search(/ (CrMo|Chrome|CriOS)\//)>=0; return g.vX||G},DMl=function(G,B){c5().init(G,B)},pna=function(G,B){var a=!1; c5()||(G=new Ua(G,B),G.subscribe("yt-remote-cast2-availability-change",function(V){g.D0("yt-remote-cast-available",V);CG("yt-remote-cast2-availability-change",V)}),G.subscribe("yt-remote-cast2-receiver-selected",function(V){b7("onReceiverSelected: "+V.friendlyName); g.D0("yt-remote-cast-receiver",V);CG("yt-remote-cast2-receiver-selected",V)}),G.subscribe("yt-remote-cast2-receiver-resumed",function(V){b7("onReceiverResumed: "+V.friendlyName); g.D0("yt-remote-cast-receiver",V);CG("yt-remote-cast2-receiver-resumed",V)}),G.subscribe("yt-remote-cast2-session-change",function(V){b7("onSessionChange: "+w9(V)); V||g.RP("yt-remote-cast-receiver");CG("yt-remote-cast2-session-change",V)}),g.Qb("yt.mdx.remote.cloudview.instance_",G),a=!0); b7("cloudview.createSingleton_: "+a);return a},c5=function(){return g.LV("yt.mdx.remote.cloudview.instance_")},Oia=function(G,B){EI3(!0); UM3(!1);DMl(G,function(a){a?(yd$(!0),g.WD("yt-remote-cast2-api-ready")):(y5("Failed to initialize cast API."),EI3(!1),g.RP("yt-remote-cast-available"),g.RP("yt-remote-cast-receiver"),jwk());B(a)})},b7=function(G){GP("cloudview",G)},y5=function(G){GP("cloudview",G)},EI3=function(G){b7("setCastInstalled_ "+G); g.D0("yt-remote-cast-installed",G)},fQ=function(){return!!g.LV("yt.mdx.remote.cloudview.apiReady_")},yd$=function(G){b7("setApiReady_ "+G); g.Qb("yt.mdx.remote.cloudview.apiReady_",G)},UM3=function(G){g.Qb("yt.mdx.remote.cloudview.initializing_",G)},v5=function(G){this.index=-1; this.videoId=this.listId="";this.volume=this.playerState=-1;this.muted=!1;this.audioTrackId=null;this.L=this.W=0;this.trackData=null;this.pk=this.Ky=!1;this.V=this.B=this.j=this.G=0;this.C=NaN;this.X=!1;this.reset(G)},SsW=function(G){G.audioTrackId=null; G.trackData=null;G.playerState=-1;G.Ky=!1;G.pk=!1;G.W=0;G.L=g.G$();G.G=0;G.j=0;G.B=0;G.V=0;G.C=NaN;G.X=!1},DS=function(G){return G.isPlaying()?(g.G$()-G.L)/1E3:0},SF=function(G,B){G.W=B; G.L=g.G$()},Rd=function(G){switch(G.playerState){case 1:case 1081:return(g.G$()-G.L)/1E3+G.W; case -1E3:return 0}return G.W},ZS=function(G,B,a){var V=G.videoId; G.videoId=B;G.index=a;B!=V&&SsW(G)},R3$=function(G){var B={}; B.index=G.index;B.listId=G.listId;B.videoId=G.videoId;B.playerState=G.playerState;B.volume=G.volume;B.muted=G.muted;B.audioTrackId=G.audioTrackId;B.trackData=g.HM(G.trackData);B.hasPrevious=G.Ky;B.hasNext=G.pk;B.playerTime=G.W;B.playerTimeAt=G.L;B.seekableStart=G.G;B.seekableEnd=G.j;B.duration=G.B;B.loadedTime=G.V;B.liveIngestionTime=G.C;return B},$c=function(G,B){g.wI.call(this); var a=this;this.C=0;this.G=G;this.L=[];this.B=new Kva;this.X=this.j=null;this.Y=(0,g.oy)(this.hPb,this);this.W=(0,g.oy)(this.G5,this);this.V=(0,g.oy)(this.SZr,this);this.zH=(0,g.oy)(this.JyB,this);var V=0;G?(V=G.getProxyState(),V!=3&&(G.subscribe("proxyStateChange",this.ac,this),Zia(this))):V=3;V!=0&&(B?this.ac(V):g.z9(function(){a.ac(V)},0)); (G=Hi3())&&rD(this,G);this.subscribe("yt-remote-cast2-session-change",this.zH)},XA=function(G){return new v5(G.G.getPlayerContextData())},Zia=function(G){g.kV("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(B){this.L.push(this.G.subscribe(B,g.MY(this.MnJ,B),this))},G)},rdl=function(G){g.kV(G.L,function(B){this.G.unsubscribeByKey(B)},G); G.L.length=0},qr=function(G){return G.getState()==1},u7=function(G,B){var a=G.B; a.j.length+a.X.length<50&&G.B.enqueue(B)},$M$=function(G,B,a){var V=XA(G); SF(V,a);V.playerState!=-1E3&&(V.playerState=B);Q5(G,V)},LQ=function(G,B,a){G.G.sendMessage(B,a)},Q5=function(G,B){rdl(G); G.G.setPlayerContextData(R3$(B));Zia(G)},rD=function(G,B){G.X&&(G.X.removeUpdateListener(G.Y),G.X.removeMediaListener(G.W),G.G5(null)); G.X=B;G.X&&(B5("Setting cast session: "+G.X.sessionId),G.X.addUpdateListener(G.Y),G.X.addMediaListener(G.W),G.X.media.length&&G.G5(G.X.media[0]))},Xn2=function(G){var B=G.j.media,a=G.j.customData; if(B&&a){var V=XA(G);B.contentId!=V.videoId&&B5("Cast changing video to: "+B.contentId);V.videoId=B.contentId;V.playerState=a.playerState;SF(V,G.j.getEstimatedTime());Q5(G,V)}else B5("No cast media video. Ignoring state update.")},TP=function(G,B,a){return(0,g.oy)(function(V){this.hv("Failed to "+B+" with cast v2 channel. Error code: "+V.code); V.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.hv("Retrying "+B+" using MDx browser channel."),LQ(this,B,a))},G)},Jb=function(G,B,a,V){V=V===void 0?!1:V; g.wI.call(this);var x=this;this.L=NaN;this.GH=!1;this.Y=this.V=this.XJ=this.HS=NaN;this.zH=[];this.B=this.W=this.G=this.j=this.X=null;this.Qb=G;this.LN=V;this.zH.push(g.UU(window,"beforeunload",function(){x.k0(2)})); this.C=[];this.j=new v5;this.SJ=B.id;this.Zx=B.idType;this.X=jt9(this.Qb,a,this.Pb,this.Zx=="shortLived",this.SJ);this.X.listen("channelOpened",function(){qsf(x)}); this.X.listen("channelClosed",function(){sa("Channel closed");isNaN(x.L)?Nw(!0):Nw();x.dispose()}); this.X.listen("channelError",function(h){Nw();isNaN(x.X$())?(h==1&&x.Zx=="shortLived"&&x.publish("browserChannelAuthError",h),sa("Channel error: "+h+" without reconnection"),x.dispose()):(x.GH=!0,sa("Channel error: "+h+" with reconnection in "+x.X$()+" ms"),FA(x,2))}); this.X.listen("channelMessage",function(h){uDa(x,h)}); this.X.rL(B.token);this.subscribe("remoteQueueChange",function(){var h=x.j.videoId;g.Z0()&&g.D0("yt-remote-session-video-id",h)})},Qw9=function(G){return g.JJ(G.C,function(B){return B.type=="LOUNGE_SCREEN"})},sa=function(G){GP("conn",G)},FA=function(G,B){G.publish("proxyStateChange",B)},LHl=function(G){G.L=g.z9(function(){sa("Connecting timeout"); G.k0(1)},2E4)},TgJ=function(G){g.me(G.L); G.L=NaN},sw9=function(G){g.me(G.HS); G.HS=NaN},Jd$=function(G){FH3(G); G.XJ=g.z9(function(){Ab(G,"getNowPlaying")},2E4)},FH3=function(G){g.me(G.XJ); G.XJ=NaN},qsf=function(G){sa("Channel opened"); G.GH&&(G.GH=!1,sw9(G),G.HS=g.z9(function(){sa("Timing out waiting for a screen.");G.k0(1)},15E3))},YsC=function(G,B){var a=null; if(B){var V=Qw9(G);V&&(a={clientName:V.clientName,deviceMake:V.brand,deviceModel:V.model,osVersion:V.osVersion})}g.Qb("yt.mdx.remote.remoteClient_",a);B&&(TgJ(G),sw9(G));a=G.X.uA()&&isNaN(G.L);B==a?B&&(FA(G,1),Ab(G,"getSubtitlesTrack")):B?(G.dI()&&G.j.reset(),FA(G,1),Ab(G,"getNowPlaying"),Adf(G)):G.k0(1)},iia=function(G,B){var a=B.params.videoId; delete B.params.videoId;a==G.j.videoId&&(g.yw(B.params)?G.j.trackData=null:G.j.trackData=B.params,G.publish("remotePlayerChange"))},P_J=function(G,B,a){var V=B.params.videoId||B.params.video_id,x=parseInt(B.params.currentIndex,10); G.j.listId=B.params.listId||G.j.listId;ZS(G.j,V,x);G.publish("remoteQueueChange",a)},MqC=function(G,B){B.params=B.params||{}; P_J(G,B,"NOW_PLAYING_MAY_CHANGE");oIa(G,B);G.publish("autoplayDismissed")},oIa=function(G,B){var a=parseInt(B.params.currentTime||B.params.current_time,10); SF(G.j,isNaN(a)?0:a);a=parseInt(B.params.state,10);a=isNaN(a)?-1:a;a==-1&&G.j.playerState==-1E3&&(a=-1E3);G.j.playerState=a;a=Number(B.params.loadedTime);G.j.V=isNaN(a)?0:a;G.j.Qf(Number(B.params.duration));a=G.j;var V=Number(B.params.liveIngestionTime);a.C=V;a.X=isNaN(V)?!1:!0;a=G.j;V=Number(B.params.seekableStartTime);B=Number(B.params.seekableEndTime);a.G=isNaN(V)?0:V;a.j=isNaN(B)?0:B;G.j.playerState==1?Jd$(G):FH3(G);G.publish("remotePlayerChange")},Gsf=function(G,B){if(G.j.playerState!=-1E3){var a= 1085; switch(parseInt(B.params.adState,10)){case 1:a=1081;break;case 2:a=1084;break;case 0:a=1083}G.j.playerState=a;B=parseInt(B.params.currentTime,10);SF(G.j,isNaN(B)?0:B);G.publish("remotePlayerChange")}},Brh=function(G,B){var a=B.params.muted=="true"; G.j.volume=parseInt(B.params.volume,10);G.j.muted=a;G.publish("remotePlayerChange")},aNW=function(G,B){G.W=B.params.videoId; G.publish("nowAutoplaying",parseInt(B.params.timeout,10))},V5h=function(G,B){G.W=B.params.videoId||null; G.publish("autoplayUpNext",G.W)},x5l=function(G,B){G.B=B.params.autoplayMode; G.publish("autoplayModeChange",G.B);G.B=="DISABLED"&&G.publish("autoplayDismissed")},h1a=function(G,B){var a=B.params.hasNext=="true"; G.j.Ky=B.params.hasPrevious=="true";G.j.pk=a;G.publish("previousNextChange")},uDa=function(G,B){B=B.message; B.params?sa("Received: action="+B.action+", params="+g.ca(B.params)):sa("Received: action="+B.action+" {}");switch(B.action){case "loungeStatus":B=Gu(B.params.devices);G.C=g.br(B,function(V){return new hz(V)}); B=!!g.JJ(G.C,function(V){return V.type=="LOUNGE_SCREEN"}); YsC(G,B);B=G.TI("mlm");G.publish("multiStateLoopEnabled",B);break;case "loungeScreenDisconnected":g.o2(G.C,function(V){return V.type=="LOUNGE_SCREEN"}); YsC(G,!1);break;case "remoteConnected":var a=new hz(Gu(B.params.device));g.JJ(G.C,function(V){return V.Wx(a)})||NLs(G.C,a); break;case "remoteDisconnected":a=new hz(Gu(B.params.device));g.o2(G.C,function(V){return V.Wx(a)}); break;case "gracefulDisconnect":break;case "playlistModified":P_J(G,B,"QUEUE_MODIFIED");break;case "nowPlaying":MqC(G,B);break;case "onStateChange":oIa(G,B);break;case "onAdStateChange":Gsf(G,B);break;case "onVolumeChanged":Brh(G,B);break;case "onSubtitlesTrackChanged":iia(G,B);break;case "nowAutoplaying":aNW(G,B);break;case "autoplayDismissed":G.publish("autoplayDismissed");break;case "autoplayUpNext":V5h(G,B);break;case "onAutoplayModeChanged":x5l(G,B);break;case "onHasPreviousNextChanged":h1a(G, B);break;case "requestAssistedSignIn":G.publish("assistedSignInRequested",B.params.authCode);break;case "onLoopModeChanged":G.publish("loopModeChange",B.params.loopMode);break;default:sa("Unrecognized action: "+B.action)}},Adf=function(G){g.me(G.Y); G.Y=g.z9(function(){G.k0(1)},864E5)},Ab=function(G,B,a){a?sa("Sending: action="+B+", params="+g.ca(a)):sa("Sending: action="+B); G.X.sendMessage(B,a)},e12=function(G){eF.call(this,"ScreenServiceProxy"); this.WG=G;this.j=[];this.j.push(this.WG.$_s("screenChange",(0,g.oy)(this.c8,this)));this.j.push(this.WG.$_s("onlineScreenChange",(0,g.oy)(this.Q41,this)))},ks9=function(G,B){Cm9(); if(!d9||!d9.get("yt-remote-disable-remote-module-for-dev")){B=g.A0("MDX_CONFIG")||B;hs3();Ke2();Yc||(Yc=new P8(B?B.loungeApiHost:void 0),zs8()&&(Yc.j="/api/loungedev"));i7||(i7=g.LV("yt.mdx.remote.deferredProxies_")||[],g.Qb("yt.mdx.remote.deferredProxies_",i7));WhW();var a=P5();if(!a){var V=new kc(Yc,B?B.disableAutomaticScreenCache||!1:!1);g.Qb("yt.mdx.remote.screenService_",V);a=P5();var x={};B&&(x={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.Qb("yt.mdx.remote.enableConnectWithInitialState_",B?B.enableConnectWithInitialState||!1:!1);bif(G,V,function(h){h?od()&&H5(od(),"YouTube TV"):V.subscribe("onlineScreenChange",function(){CG("yt-remote-receiver-availability-change")})},x)}B&&!g.LV("yt.mdx.remote.initialized_")&&(g.Qb("yt.mdx.remote.initialized_",!0),Mr("Initializing: "+g.ca(B)), Gg.push(g.hh("yt-remote-cast2-api-ready",function(){CG("yt-remote-api-ready")})),Gg.push(g.hh("yt-remote-cast2-availability-change",function(){CG("yt-remote-receiver-availability-change")})),Gg.push(g.hh("yt-remote-cast2-receiver-selected",function(){B0(null); CG("yt-remote-auto-connect","cast-selector-receiver")})),Gg.push(g.hh("yt-remote-cast2-receiver-resumed",function(){CG("yt-remote-receiver-resumed","cast-selector-receiver")})),Gg.push(g.hh("yt-remote-cast2-session-change",wD9)),Gg.push(g.hh("yt-remote-connection-change",function(h){h?H5(od(),"YouTube TV"):aN()||(H5(null,null),f17())})),Gg.push(g.hh("yt-remote-cast2-session-failed",function(){CG("yt-remote-connection-failed")})),G=KhC(),B.isAuto&&(G.id+="#dial"),x=B.capabilities||[],g.pB("desktop_enable_autoplay")&& x.push("atp"),x.length>0&&(G.capabilities=x),G.name=B.device,G.app=B.app,(B=B.theme)&&(G.theme=B),Mr(" -- with channel params: "+g.ca(G)),G?(g.D0("yt-remote-session-app",G.app),g.D0("yt-remote-session-name",G.name)):(g.RP("yt-remote-session-app"),g.RP("yt-remote-session-name")),g.Qb("yt.mdx.remote.channelParams_",G),a.start(),od()||lNa())}},Nrh=function(){var G=P5().WG.$_gos(); var B=VJ();B&&x1()&&(xIW(G,B)||G.push(B));return VKl(G)},C9a=function(){var G=d53(); !G&&nQ()&&nIf()&&(G={key:"cast-selector-receiver",name:nIf()});return G},d53=function(){var G=Nrh(),B=VJ(); B||(B=aN());return g.JJ(G,function(a){return B&&W8(B,a.key)?!0:!1})},VJ=function(){var G=od(); if(!G)return null;var B=P5().U1();return KG(B,G)},wD9=function(G){Mr("remote.onCastSessionChange_: "+w9(G)); if(G){var B=VJ();if(B&&B.id==G.id){if(H5(B.id,"YouTube TV"),G.idType=="shortLived"&&(G=G.token))hF&&(hF.token=G),(B=x1())&&B.rL(G)}else B&&er(),W0(G,1)}else x1()&&er()},er=function(){fQ()?c5().stopSession():y5("stopSession called before API ready."); var G=x1();G&&(G.disconnect(1),z1s(null))},t59=function(){var G=x1(); return!!G&&G.getProxyState()!=3},Mr=function(G){GP("remote",G)},P5=function(){if(!m5k){var G=g.LV("yt.mdx.remote.screenService_"); m5k=G?new e12(G):null}return m5k},od=function(){return g.LV("yt.mdx.remote.currentScreenId_")},IN7=function(G){g.Qb("yt.mdx.remote.currentScreenId_",G)},glh=function(){return g.LV("yt.mdx.remote.connectData_")},B0=function(G){g.Qb("yt.mdx.remote.connectData_",G)},x1=function(){return g.LV("yt.mdx.remote.connection_")},z1s=function(G){var B=x1(); B0(null);G||IN7("");g.Qb("yt.mdx.remote.connection_",G);i7&&(g.kV(i7,function(a){a(G)}),i7.length=0); B&&!G?CG("yt-remote-connection-change",!1):!B&&G&&CG("yt-remote-connection-change",!0)},aN=function(){var G=g.Z0(); if(!G)return null;var B=P5();if(!B)return null;B=B.U1();return KG(B,G)},W0=function(G,B){od(); VJ()&&VJ();if(w8)hF=G;else{IN7(G.id);var a=g.LV("yt.mdx.remote.enableConnectWithInitialState_")||!1;G=new Jb(Yc,G,KhC(),a);G.connect(B,glh());G.subscribe("beforeDisconnect",function(V){CG("yt-remote-before-disconnect",V)}); G.subscribe("beforeDispose",function(){x1()&&(x1(),z1s(null))}); G.subscribe("browserChannelAuthError",function(){var V=VJ();V&&V.idType=="shortLived"&&(fQ()?c5().handleBrowserChannelAuthError():y5("refreshLoungeToken called before API ready."))}); z1s(G)}},lNa=function(){var G=aN(); G?(Mr("Resume connection to: "+w9(G)),W0(G,0)):(Nw(),f17(),Mr("Skipping connecting because no session screen found."))},WhW=function(){var G=KhC(); if(g.yw(G)){G=kU();var B=g.SL("yt-remote-session-name")||"",a=g.SL("yt-remote-session-app")||"";G={device:"REMOTE_CONTROL",id:G,name:B,app:a,mdxVersion:3};G.authuser=String(g.A0("SESSION_INDEX","0"));(B=g.A0("DELEGATED_SESSION_ID"))&&(G.pageId=String(B));g.Qb("yt.mdx.remote.channelParams_",G)}},KhC=function(){return g.LV("yt.mdx.remote.channelParams_")||{}},OgC=function(G,B,a){g.r.call(this); var V=this;this.module=G;this.T=B;this.ZX=a;this.events=new g.Zh(this);this.G=!1;this.B=new g.aF(64);this.j=new g.J8(this.mX,500,this);this.X=new g.J8(this.jo,1E3,this);this.W=new mF(this.iML,0,this);this.C={};this.V=new g.J8(this.Yo,1E3,this);this.L=new g.M1(this.seekTo,1E3,this);this.Y=this.events.K(this.T,"onVolumeChange",function(x){pDk(V,x)}); g.X(this,this.events);this.events.K(B,"onCaptionsTrackListChanged",this.Xnn);this.events.K(B,"captionschanged",this.AyS);this.events.K(B,"captionssettingschanged",this.oP);this.events.K(B,"videoplayerreset",this.IL);this.events.K(B,"mdxautoplaycancel",function(){V.ZX.Ts()}); B.S("enable_mdx_video_play_directly")&&this.events.K(B,"videodatachange",function(){U5W(V.module)||K8(V)||ln(V,0)}); G=this.ZX;G.TH();G.subscribe("proxyStateChange",this.RQ,this);G.subscribe("remotePlayerChange",this.hP,this);G.subscribe("remoteQueueChange",this.IL,this);G.subscribe("previousNextChange",this.XE,this);G.subscribe("nowAutoplaying",this.Y6,this);G.subscribe("autoplayDismissed",this.ER,this);g.X(this,this.j);g.X(this,this.X);g.X(this,this.W);g.X(this,this.V);g.X(this,this.L);this.oP();this.IL();this.hP()},pDk=function(G,B){if(K8(G)){G.ZX.unsubscribe("remotePlayerChange",G.hP,G); var a=Math.round(B.volume);B=!!B.muted;var V=XA(G.ZX);if(a!==V.volume||B!==V.muted)G.ZX.setVolume(a,B),G.V.start();G.ZX.subscribe("remotePlayerChange",G.hP,G)}},ElJ=function(G){G.BC(0); G.j.stop();G.R0(new g.aF(64))},jZk=function(G,B){if(K8(G)&&!G.G){var a=null; B&&(a={style:G.T.getSubtitlesUserSettings()},Object.assign(a,B));G.ZX.aS(G.T.getVideoData(1).videoId,a);G.C=XA(G.ZX).trackData}},ln=function(G,B){var a=G.T.getPlaylist(); if(a==null?0:a.listId){var V=a.index;var x=a.listId.toString()}a=G.T.getVideoData(1);G.ZX.playVideo(a.videoId,B,V,x,a.playerParams,a.Zx,kYk(a));G.R0(new g.aF(1))},bg9=function(G,B){if(B){var a=G.T.getOption("captions","tracklist",{cR:1}); a&&a.length?(G.T.setOption("captions","track",B),G.G=!1):(G.T.loadModule("captions"),G.G=!0)}else G.T.setOption("captions","track",{})},K8=function(G){return XA(G.ZX).videoId===G.T.getVideoData(1).videoId},yhJ=function(G){this.j=G},k1=function(){g.T.call(this,{Z:"div", J:"ytp-mdx-popup-dialog",N:{role:"dialog"},D:[{Z:"div",J:"ytp-mdx-popup-dialog-inner-content",D:[{Z:"div",J:"ytp-mdx-popup-title",cS:"Saliste de tu cuenta"},{Z:"div",J:"ytp-mdx-popup-description",cS:"Es posible que los videos que mires se agreguen al historial de reproducciones de la TV, lo que puede influir en las recomendaciones. Para que esto no suceda, presiona \u201cCancelar\u201d y accede a YouTube desde tu computadora."},{Z:"div",J:"ytp-mdx-privacy-popup-buttons",D:[{Z:"button",bL:["ytp-button", "ytp-mdx-privacy-popup-cancel"],cS:"Cancelar"},{Z:"button",bL:["ytp-button","ytp-mdx-privacy-popup-confirm"],cS:"Confirmar"}]}]}]});this.j=new g.Bm(this,250);this.cancelButton=this.d1("ytp-mdx-privacy-popup-cancel");this.confirmButton=this.d1("ytp-mdx-privacy-popup-confirm");g.X(this,this.j);this.K(this.cancelButton,"click",this.X);this.K(this.confirmButton,"click",this.C)},ND=function(G){g.T.call(this,{Z:"div", J:"ytp-remote",D:[{Z:"div",J:"ytp-remote-display-status",D:[{Z:"div",J:"ytp-remote-display-status-icon",D:[g.ER9()]},{Z:"div",J:"ytp-remote-display-status-text",cS:"{{statustext}}"}]}]});this.api=G;this.j=new g.Bm(this,250);g.X(this,this.j);this.K(G,"presentingplayerstatechange",this.onStateChange);this.g7(G.getPlayerStateObject())},d8=function(G,B){g.u2.call(this,"Reproducir en",1,G,B); this.T=G;this.Hq={};this.K(G,"onMdxReceiversChange",this.G);this.K(G,"presentingplayerstatechange",this.G);this.G()},chJ=function(G){g.go.call(this,G); this.mu={key:ad8(),name:"Esta computadora"};this.Qe=null;this.subscriptions=[];this.Ys=this.ZX=null;this.Hq=[this.mu];this.gL=this.mu;this.yg=new g.aF(64);this.Kz=0;this.Br=-1;this.Nu=!1;this.qw=this.D2=this.Hc=null;if(!g.R$(this.player.U())&&!g.rv(this.player.U())){G=this.player;var B=g.zA(G);B&&(B=B.KG())&&(B=new d8(G,B),g.X(this,B));B=new ND(G);g.X(this,B);g.SX(G,B.element,4);this.Hc=new k1;g.X(this,this.Hc);g.SX(G,this.Hc.element,4);this.Nu=!!aN()}},C8=function(G){G.D2&&(G.player.removeEventListener("presentingplayerstatechange", G.D2),G.D2=null)},nl8=function(G,B,a){G.yg=a; G.player.publish("presentingplayerstatechange",new g.NR(a,B))},zg=function(G,B){if(B.key!==G.gL.key)if(B.key===G.mu.key)er(); else if(U5W(G)&&fNC(G),G.gL=B,!G.player.U().S("disable_mdx_connection_in_mdx_module_for_music_web")||!g.rv(G.player.U())){var a=G.player.getPlaylistId();var V=G.player.getVideoData(1);var x=V.videoId;if(!a&&!x||(G.player.getAppState()===2||G.player.getAppState()===1)&&G.player.U().S("should_clear_video_data_on_player_cued_unstarted"))V=null;else{var h=G.player.getPlaylist();if(h){var e=[];for(var w=0;w2*this.size&&xU(this),!0):!1}; g.W.get=function(G,B){return aO(this.X,G)?this.X[G]:B}; g.W.set=function(G,B){aO(this.X,G)||(this.size+=1,this.j.push(G),this.VR++);this.X[G]=B}; g.W.forEach=function(G,B){for(var a=this.eL(),V=0;V=V.j.length)return g.WA;var h=V.j[B++];return g.xm(G?h:V.X[h])}; return x}; var ixl={JCJ:"atp",j9n:"ska",TVJ:"que",K8r:"mus",YML:"sus",Rxb:"dsp",MLH:"seq",BBN:"mic",B_n:"dpa",x9b:"cds",qaJ:"mlm",L$f:"dsdtr",OGL:"ntb",l6n:"vsp",M9H:"scn",A6b:"rpe",QYl:"dcn",bEx:"dcp",X6l:"pas",T_n:"drq",nJX:"opf",xod:"els",w9b:"isg",ahf:"svq",EJl:"mvp",xLN:"ads",WjS:"iat"},P4C={xkN:"u",nTr:"cl",X3d:"k",JYH:"i",o$J:"cr",w3B:"m",YyB:"g",K7:"up"};hz.prototype.Wx=function(G){return G?this.id==G.id:!1}; var whf="",d9=null;tKC.prototype.flush=function(G,B){G=G===void 0?[]:G;B=B===void 0?!1:B;if(g.pB("enable_client_streamz_web")){G=g.m(G);for(var a=G.next();!a.done;a=G.next())a=g.d2c(a.value),a={serializedIncrementBatch:g.md(a.j())},g.wP("streamzIncremented",a,{sendIsolatedPayload:B})}}; var zu,jhC=IdC("loadCastFramework")||IdC("loadCastApplicationFramework"),cM8=["pkedcjkdefgpdelpbcmbmeomcjbeemfm","enhhojjnijigcajfphajepfemndkmdlo"];g.BW(mF,g.r);g.W=mF.prototype;g.W.Kb=function(G){this.G=arguments;this.j=!1;this.UZ?this.C=g.G$()+this.v0:this.UZ=g.Eh(this.B,this.v0)}; g.W.stop=function(){this.UZ&&(g.qY.clearTimeout(this.UZ),this.UZ=null);this.C=null;this.j=!1;this.G=[]}; g.W.pause=function(){++this.X}; g.W.resume=function(){this.X&&(--this.X,!this.X&&this.j&&(this.j=!1,this.L.apply(null,this.G)))}; g.W.yb=function(){this.stop();mF.iU.yb.call(this)}; g.W.ww=function(){this.UZ&&(g.qY.clearTimeout(this.UZ),this.UZ=null);this.C?(this.UZ=g.Eh(this.B,this.C-g.G$()),this.C=null):this.X?this.j=!0:(this.j=!1,this.L.apply(null,this.G))};IO.prototype.stringify=function(G){return g.qY.JSON.stringify(G,void 0)}; IO.prototype.parse=function(G){return g.qY.JSON.parse(G,void 0)};g.BW(fd$,g.Da);g.BW(HB3,g.Da);var v4a=null;g.BW(SqC,g.Da);g.BW(Rsa,g.Da);g.BW(ZBk,g.Da);O6.prototype.debug=function(){}; O6.prototype.info=function(){}; O6.prototype.warning=function(){};var T1W={},Lef={};g.W=E6.prototype;g.W.setTimeout=function(G){this.Vb=G}; g.W.MK=function(G){G=G.target;var B=this.Er;B&&g.i8(G)==3?B.n6():this.ke(G)}; g.W.ke=function(G){try{if(G==this.j)a:{var B=g.i8(this.j),a=this.j.X,V=this.j.getStatus();if(!(B<3)&&(B!=3||this.j&&(this.X.X||g.oz(this.j)||g.MH(this.j)))){this.LN||B!=4||a==7||(a==8||V<=0?g9(3):g9(2));JMC(this);var x=this.j.getStatus();this.Yf=x;var h=Qh3(this);if(this.L=x==200){if(this.fh&&!this.qB){b:{if(this.j){var e=g.G_(this.j,"X-HTTP-Initial-Response");if(e&&!g.O3(e)){var w=e;break b}}w=null}if(G=w)this.qB=!0,a03(this,G);else{this.L=!1;this.B=3;pG(12);bN(this);yx(this);break a}}if(this.Zx){G= !0;for(var K;!this.LN&&this.W0&&!this.QW&&(this.QW=!0,this.C.C_(this)):(bN(this),yx(this))}else a03(this,h);B==4&&bN(this);this.L&&!this.LN&&(B==4?AMa(this.C,this):(this.L=!1,j8(this)))}else g.Zoc(this.j),x==400&&h.indexOf("Unknown SID")> 0?(this.B=3,pG(12)):(this.B=0,pG(13)),bN(this),yx(this)}}}catch(l){}finally{}}; g.W.cancel=function(){this.LN=!0;bN(this)}; g.W.xk=function(){this.zH=null;var G=Date.now();G-this.eJ>=0?(this.SJ!=2&&(g9(3),pG(17)),bN(this),this.B=2,yx(this)):Fea(this,this.eJ-G)}; g.W.getLastError=function(){return this.B}; g.W.GU=function(){return this.j};xel.prototype.cancel=function(){this.C=eJh(this);if(this.X)this.X.cancel(),this.X=null;else if(this.j&&this.j.size!==0){for(var G=g.m(this.j.values()),B=G.next();!B.done;B=G.next())B.value.cancel();this.j.clear()}};g.W=kp9.prototype;g.W.Zy=8;g.W.rJ=1;g.W.connect=function(G,B,a,V){pG(0);this.wO=G;this.LN=B||{};a&&V!==void 0&&(this.LN.OSID=a,this.LN.OAID=V);this.qB=this.YD;this.Qb=MKk(this,null,this.wO);H8(this)}; g.W.disconnect=function(){dea(this);if(this.rJ==3){var G=this.Ur++,B=this.Qb.clone();g.IQ(B,"SID",this.G);g.IQ(B,"RID",G);g.IQ(B,"TYPE","terminate");S8(this,B);G=new E6(this,this.G,G);G.SJ=2;G.V=o8(B.clone());B=!1;if(g.qY.navigator&&g.qY.navigator.sendBeacon)try{B=g.qY.navigator.sendBeacon(G.V.toString(),"")}catch(a){}!B&&g.qY.Image&&((new Image).src=G.V,B=!0);B||(G.j=qqW(G.C,null),G.j.send(G.V));G.HS=Date.now();j8(G)}gS3(this)}; g.W.HG=function(){return this.rJ==0}; g.W.getState=function(){return this.rJ}; g.W.sW=function(G){if(this.L)if(this.L=null,this.rJ==1){if(!G){this.Ur=Math.floor(Math.random()*1E5);G=this.Ur++;var B=new E6(this,"",G),a=this.Y;this.Yf&&(a?(a=g.fo(a),g.vM(a,this.Yf)):a=this.Yf);this.W!==null||this.eJ||(B.Qb=a,a=null);var V;if(this.Dx)a:{for(var x=V=0;x4096){V=x;break a}if(V===4096||x===this.C.length-1){V=x+1;break a}}V= 1E3}else V=1E3;V=tLa(this,B,V);x=this.Qb.clone();g.IQ(x,"RID",G);g.IQ(x,"CVER",22);this.Zx&&g.IQ(x,"X-HTTP-Session-Id",this.Zx);S8(this,x);a&&(this.eJ?V="headers="+g.JE(g.ia_(a))+"&"+V:this.W&&g.OW(x,this.W,a));o47(this.X,B);this.Vg&&g.IQ(x,"TYPE","init");this.Dx?(g.IQ(x,"$req",V),g.IQ(x,"SID","null"),B.fh=!0,Xh7(B,x,null)):Xh7(B,x,V);this.rJ=2}}else this.rJ==3&&(G?mef(this,G):this.C.length==0||hJs(this.X)||mef(this))}; g.W.ir=function(){this.V=null;I0f(this);if(this.m3&&!(this.Vb||this.j==null||this.fd<=0)){var G=2*this.fd;this.GH=U6((0,g.oy)(this.L3L,this),G)}}; g.W.L3L=function(){this.GH&&(this.GH=null,this.qB=!1,this.Vb=!0,pG(10),nG(this),I0f(this))}; g.W.C_=function(G){this.j==G&&this.m3&&!this.Vb&&(NEl(this),this.Vb=!0,pG(11))}; g.W.lM=function(){this.zH!=null&&(this.zH=null,nG(this),iB7(this),pG(19))}; g.W.DHN=function(G){G?pG(2):pG(1)}; g.W.isActive=function(){return!!this.B&&this.B.isActive(this)}; g.W=Uek.prototype;g.W.Ar=function(){}; g.W.Lx=function(){}; g.W.TE=function(){}; g.W.QJ=function(){}; g.W.isActive=function(){return!0}; g.W.Ik=function(){};g.BW(Z3,g.oL);Z3.prototype.open=function(){this.j.B=this.C;this.L&&(this.j.SJ=!0);this.j.connect(this.B,this.X||void 0)}; Z3.prototype.close=function(){this.j.disconnect()}; Z3.prototype.send=function(G){var B=this.j;if(typeof G==="string"){var a={};a.__data__=G;G=a}else this.G&&(a={},a.__data__=g.ca(G),G=a);B.C.push(new VLC(B.MD++,G));B.rJ==3&&H8(B)}; Z3.prototype.yb=function(){this.j.B=null;delete this.C;this.j.disconnect();delete this.j;Z3.iU.yb.call(this)}; g.BW(ESk,fd$);g.BW(jP2,HB3);g.BW(RO,Uek);RO.prototype.Ar=function(){this.j.dispatchEvent("m")}; RO.prototype.Lx=function(G){this.j.dispatchEvent(new ESk(G))}; RO.prototype.TE=function(G){this.j.dispatchEvent(new jP2(G))}; RO.prototype.QJ=function(){this.j.dispatchEvent("n")};var $U=new g.oL;g.t(ctW,g.Da);g.W=qw.prototype;g.W.yu=null;g.W.Ju=!1;g.W.tf=null;g.W.zT=null;g.W.w9=null;g.W.IF=null;g.W.qC=null;g.W.lW=null;g.W.vy=null;g.W.AC=null;g.W.OB=0;g.W.Jz=null;g.W.UB=null;g.W.rf=null;g.W.Ks=-1;g.W.WV=!0;g.W.E8=!1;g.W.F_=0;g.W.Mr=null;var SU2={},De$={};g.W=qw.prototype;g.W.setTimeout=function(G){this.X=G}; g.W.OV=function(G){G=G.target;var B=this.Mr;B&&g.i8(G)==3?B.n6():this.Bb(G)}; g.W.Bb=function(G){try{if(G==this.AC)a:{var B=g.i8(this.AC),a=this.AC.X,V=this.AC.getStatus();if(g.Yj&&!g.tO("420+")){if(B<4)break a}else if(B<3||B==3&&!g.oz(this.AC))break a;this.E8||B!=4||a==7||(a==8||V<=0?this.j.lI(3):this.j.lI(2));rtf(this);var x=this.AC.getStatus();this.Ks=x;var h=g.oz(this.AC);if(this.Ju=x==200){B==4&&uN(this);if(this.Zx){for(G=!0;!this.E8&&this.OB0?(this.rf=3,XF(13)):(this.rf=0,XF(14)),uN(this),$ef(this)}}catch(w){}finally{}}; g.W.cancel=function(){this.E8=!0;uN(this)}; g.W.UV=function(){this.tf=null;var G=Date.now();G-this.zT>=0?(this.IF!=2&&this.j.lI(3),uN(this),this.rf=2,XF(18),$ef(this)):ZUl(this,this.zT-G)}; g.W.getLastError=function(){return this.rf};g.W=QP7.prototype;g.W.Ct=null;g.W.ih=null;g.W.iE=!1;g.W.cY=null;g.W.G4=null;g.W.PB=-1;g.W.aF=null;g.W.n5=null;g.W.connect=function(G){this.cY=G;G=LG(this.j,null,this.cY);XF(3);Date.now();var B=this.j.Y;B!=null?(this.aF=B[0],(this.n5=B[1])?(this.G4=1,L$C(this)):(this.G4=2,TEC(this))):(Mi(G,"MODE","init"),this.ih=new qw(this),this.ih.yu=this.Ct,HUJ(this.ih,G,!1,null,!0),this.G4=0)}; g.W.r3=function(G){if(G)this.G4=2,TEC(this);else{XF(4);var B=this.j;B.eh=B.VS.PB;Jz(B,9)}G&&this.lI(2)}; g.W.X_=function(G){return this.j.X_(G)}; g.W.abort=function(){this.ih&&(this.ih.cancel(),this.ih=null);this.PB=-1}; g.W.HG=function(){return!1}; g.W.SR=function(G,B){this.PB=G.Ks;if(this.G4==0)if(B){try{var a=this.X.parse(B)}catch(V){G=this.j;G.eh=this.PB;Jz(G,2);return}this.aF=a[0];this.n5=a[1]}else G=this.j,G.eh=this.PB,Jz(G,2);else this.G4==2&&(this.iE?(XF(7),Date.now()):B=="11111"?(XF(6),this.iE=!0,Date.now(),this.PB=200,this.ih.cancel(),XF(12),Tu(this.j,this,!0)):(XF(8),Date.now(),this.iE=!1))}; g.W.y4=function(){this.PB=this.ih.Ks;if(this.ih.Ju)this.G4==0?this.n5?(this.G4=1,L$C(this)):(this.G4=2,TEC(this)):this.G4==2&&(this.iE?(XF(12),Tu(this.j,this,!0)):(XF(11),Tu(this.j,this,!1)));else{this.G4==0?XF(9):this.G4==2&&XF(10);var G=this.j;this.ih.getLastError();G.eh=this.PB;Jz(G,2)}}; g.W.xj=function(){return this.j.xj()}; g.W.isActive=function(){return this.j.isActive()}; g.W.lI=function(G){this.j.lI(G)};g.W=sPC.prototype;g.W.kJ=null;g.W.MC=null;g.W.J$=null;g.W.s$=null;g.W.vY=null;g.W.p6=null;g.W.Wb=null;g.W.r0=null;g.W.lK=0;g.W.VZ=0;g.W.Yl=null;g.W.uq=null;g.W.Vf=null;g.W.Rg=null;g.W.VS=null;g.W.qc=null;g.W.E6=-1;g.W.Jr=-1;g.W.eh=-1;g.W.qG=0;g.W.u_=0;g.W.Hy=8;g.BW(Jtk,g.Da);g.BW(AtC,g.Da);g.W=sPC.prototype;g.W.connect=function(G,B,a,V,x){XF(0);this.vY=B;this.MC=a||{};V&&x!==void 0&&(this.MC.OSID=V,this.MC.OAID=x);this.V?(r9((0,g.oy)(this.YB,this,G),100),iUs(this)):this.YB(G)}; g.W.disconnect=function(){PP8(this);if(this.j==3){var G=this.lK++,B=this.p6.clone();g.IQ(B,"SID",this.G);g.IQ(B,"RID",G);g.IQ(B,"TYPE","terminate");FF(this,B);G=new qw(this,this.G,G);G.IF=2;G.qC=o8(B.clone());(new Image).src=G.qC.toString();G.w9=Date.now();vSs(G)}Wvl(this)}; g.W.YB=function(G){this.VS=new QP7(this);this.VS.Ct=this.kJ;this.VS.X=this.B;this.VS.connect(G)}; g.W.HG=function(){return this.j==0}; g.W.getState=function(){return this.j}; g.W.EW=function(G){this.uq=null;aPJ(this,G)}; g.W.q2=function(){this.Vf=null;this.s$=new qw(this,this.G,"rpc",this.W);this.s$.yu=this.kJ;this.s$.F_=0;var G=this.Wb.clone();g.IQ(G,"RID","rpc");g.IQ(G,"SID",this.G);g.IQ(G,"CI",this.qc?"0":"1");g.IQ(G,"AID",this.E6);FF(this,G);g.IQ(G,"TYPE","xmlhttp");HUJ(this.s$,G,!0,this.r0,!1)}; g.W.SR=function(G,B){if(this.j!=0&&(this.s$==G||this.J$==G))if(this.eh=G.Ks,this.J$==G&&this.j==3)if(this.Hy>7){try{var a=this.B.parse(B)}catch(V){a=null}if(Array.isArray(a)&&a.length==3)if(G=a,G[0]==0)a:{if(!this.Vf){if(this.s$)if(this.s$.w9+3E30)){if(V=B==1)this.J$||this.uq||this.j==1||this.qG>=2?V=!1:(this.uq=r9((0,g.oy)(this.EW,this,G),x$W(this,this.qG)),this.qG++,V=!0);V=!(V||B==2&&htJ(this))}if(V)switch(a){case 1:Jz(this, 5);break;case 4:Jz(this,10);break;case 3:Jz(this,6);break;case 7:Jz(this,12);break;default:Jz(this,2)}}}; g.W.P$=function(G){if(!g.YC(arguments,this.j))throw Error("Unexpected channel state: "+this.j);}; g.W.g3J=function(G){G?XF(2):(XF(1),etC(this,8))}; g.W.X_=function(G){if(G)throw Error("Can't create secondary domain capable XhrIo object.");G=new g.Ju;G.W=!1;return G}; g.W.isActive=function(){return!!this.Yl&&this.Yl.isActive(this)}; g.W.lI=function(G){var B=$U;B.dispatchEvent(new AtC(B,G))}; g.W.xj=function(){return!1}; g.W=wLf.prototype;g.W.xe=function(){}; g.W.wk=function(){}; g.W.Kx=function(){}; g.W.oV=function(){}; g.W.M2=function(){return{}}; g.W.isActive=function(){return!0};g.W=Kva.prototype;g.W.enqueue=function(G){this.X.push(G)}; g.W.isEmpty=function(){return this.j.length===0&&this.X.length===0}; g.W.clear=function(){this.j=[];this.X=[]}; g.W.contains=function(G){return g.YC(this.j,G)||g.YC(this.X,G)}; g.W.remove=function(G){var B=this.j;var a=(0,g.N_h)(B,G);a>=0?(g.ia(B,a),B=!0):B=!1;return B||g.PW(this.X,G)}; g.W.wB=function(){for(var G=[],B=this.j.length-1;B>=0;--B)G.push(this.j[B]);B=this.X.length;for(var a=0;a=HgW.length?this.publish("pairingFailed",Error("DIAL polling timed out")):(G=HgW[this.X],this.UZ=g.z9((0,g.oy)(this.gP,this),G),this.X++):this.publish("pairingFailed",Error("Server error "+G.status))}; g.W.mV=function(){this.j=null;this.publish("pairingFailed",Error("Server not responding"))}; var HgW=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];g.BW(wD,eF);g.W=wD.prototype;g.W.start=function(){W5(this)&&this.publish("screenChange");!g.SL("yt-remote-lounge-token-expiration")&&rxC(this);g.me(this.j);this.j=g.z9((0,g.oy)(this.start,this),1E4)}; g.W.add=function(G,B){W5(this);D$l(this,G);KQ(this,!1);this.publish("screenChange");B(G);G.token||rxC(this)}; g.W.remove=function(G,B){var a=W5(this);Rth(this,G)&&(KQ(this,!1),a=!0);B(G);a&&this.publish("screenChange")}; g.W.tG=function(G,B,a,V){var x=W5(this),h=this.get(G.id);h?(h.name!=B&&(h.name=B,KQ(this,!1),x=!0),a(G)):V(Error("no such local screen."));x&&this.publish("screenChange")}; g.W.yb=function(){g.me(this.j);wD.iU.yb.call(this)}; g.W.hlX=function(G){W5(this);var B=this.screens.length;G=G&&G.screens||[];for(var a=G.length,V=0;V20)break a;w=B(h,e)}h=w}x.name=h}a(Nr(this,x))},this), onError:(0,g.oy)(function(x){V(Error("pairing request failed: "+x.status))},this), onTimeout:(0,g.oy)(function(){V(Error("pairing request timed out."))},this)})}; g.W.yb=function(){g.WW(this.X);g.WW(this.j);kc.iU.yb.call(this)}; g.W.MJB=function(){YV7(this);this.publish("screenChange");this.j.update()}; kc.prototype.dispose=kc.prototype.dispose;g.BW(dD,g.wI);g.W=dD.prototype;g.W.gR=function(G){this.TH()||(G&&(zP(this,""+G),this.publish("sessionFailed")),this.j=null,this.publish("sessionScreen",null))}; g.W.info=function(G){GP(this.Zx,G)}; g.W.UW=function(){return null}; g.W.lw=function(G){var B=this.X;G?(B.displayStatus=new chrome.cast.ReceiverDisplayStatus(G,[]),B.displayStatus.showStop=!0):B.displayStatus=null;chrome.cast.setReceiverDisplayStatus(B,(0,g.oy)(function(){this.info("Updated receiver status for "+B.friendlyName+": "+G)},this),(0,g.oy)(function(){zP(this,"Failed to update receiver status for: "+B.friendlyName)},this))}; g.W.yb=function(){this.lw("");dD.iU.yb.call(this)};g.t(tb,dD);g.W=tb.prototype;g.W.x8=function(G){if(this.C){if(this.C==G)return;zP(this,"Overriding cast session with new session object");WH7(this);this.HS=!1;this.Y="unknown";this.C.removeUpdateListener(this.XJ);this.C.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.GH)}this.C=G;this.C.addUpdateListener(this.XJ);this.C.addMessageListener("urn:x-cast:com.google.youtube.mdx",this.GH);a1f(this,"getMdxSessionStatus")}; g.W.L8=function(G){this.info("launchWithParams no-op for Cast: "+g.ca(G))}; g.W.stop=function(){this.C?this.C.stop((0,g.oy)(function(){this.gR()},this),(0,g.oy)(function(){this.gR(Error("Failed to stop receiver app."))},this)):this.gR(Error("Stopping cast device without session."))}; g.W.lw=function(){}; g.W.yb=function(){this.info("disposeInternal");WH7(this);this.C&&(this.C.removeUpdateListener(this.XJ),this.C.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.GH));this.C=null;dD.prototype.yb.call(this)}; g.W.pDb=function(G,B){if(!this.TH())if(B)if(B=Gu(B),g.Ag(B))switch(G=""+B.type,B=B.data||{},this.info("onYoutubeMessage_: "+G+" "+g.ca(B)),G){case "mdxSessionStatus":Mnh(this,B);break;case "loungeToken":VqC(this,B);break;default:zP(this,"Unknown youtube message: "+G)}else zP(this,"Unable to parse message.");else zP(this,"No data in message.")}; g.W.QF=function(G,B,a,V){g.me(this.V);this.V=0;Fva(this.G,this.X.label,G,this.X.friendlyName,(0,g.oy)(function(x){x?B(x):V>=0?(zP(this,"Screen "+G+" appears to be offline. "+V+" retries left."),this.V=g.z9((0,g.oy)(this.QF,this,G,B,a,V-1),300)):a(Error("Unable to fetch screen."))},this),a)}; g.W.UW=function(){return this.C}; g.W.Fu=function(G){this.TH()||G||(zP(this,"Cast session died."),this.gR())};g.t(mA,dD);g.W=mA.prototype;g.W.x8=function(G){this.C=G;this.C.addUpdateListener(this.LN)}; g.W.L8=function(G){this.Qb=G;this.zH()}; g.W.stop=function(){z3s(this);this.C?this.C.stop((0,g.oy)(this.gR,this,null),(0,g.oy)(this.gR,this,"Failed to stop DIAL device.")):this.gR()}; g.W.yb=function(){z3s(this);this.C&&this.C.removeUpdateListener(this.LN);this.C=null;dD.prototype.yb.call(this)}; g.W.zj=function(G){this.TH()||G||(zP(this,"DIAL session died."),this.B(),this.B=function(){},this.gR())};g.t(pQ,dD);pQ.prototype.stop=function(){this.gR()}; pQ.prototype.x8=function(){}; pQ.prototype.L8=function(){g.me(this.C);this.C=NaN;var G=KG(this.G.U1(),this.X.label);G?CQ(this,G):this.gR(Error("No such screen"))}; pQ.prototype.yb=function(){g.me(this.C);this.C=NaN;dD.prototype.yb.call(this)};g.t(Ua,g.wI);g.W=Ua.prototype; g.W.init=function(G,B){chrome.cast.timeout.requestSession=3E4;var a=new chrome.cast.SessionRequest(this.V,[chrome.cast.Capability.AUDIO_OUT]);g.pB("desktop_enable_cast_connect")&&(a.androidReceiverCompatible=!0);this.Y||(a.dialRequest=new chrome.cast.DialRequest("YouTube"));var V=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;G=G||this.L?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var x=(0,g.oy)(this.pnL,this);a=new chrome.cast.ApiConfig(a,(0,g.oy)(this.GZ, this),x,V,G);a.customDialLaunchCallback=(0,g.oy)(this.M_r,this);chrome.cast.initialize(a,(0,g.oy)(function(){this.TH()||(chrome.cast.addReceiverActionListener(this.B),nRs(),this.X.subscribe("onlineScreenChange",(0,g.oy)(this.OW,this)),this.C=I1J(this),chrome.cast.setCustomReceivers(this.C,function(){},(0,g.oy)(function(h){this.hv("Failed to set initial custom receivers: "+g.ca(h))},this)),this.publish("yt-remote-cast2-availability-change",Ea(this)),B(!0))},this),(0,g.oy)(function(h){this.hv("Failed to initialize API: "+ g.ca(h)); B(!1)},this))}; g.W.rAH=function(G,B){Oa("Setting connected screen ID: "+G+" -> "+B);if(this.j){var a=this.j.j;if(!G||a&&a.id!=G)Oa("Unsetting old screen status: "+this.j.X.friendlyName),jF(this,null)}if(G&&B){if(!this.j){G=KG(this.X.U1(),G);if(!G){Oa("setConnectedScreenStatus: Unknown screen.");return}if(G.idType=="shortLived"){Oa("setConnectedScreenStatus: Screen with id type to be short lived.");return}a=tqs(this,G);a||(Oa("setConnectedScreenStatus: Connected receiver not custom..."),a=new chrome.cast.Receiver(G.uuid? G.uuid:G.id,G.name),a.receiverType=chrome.cast.ReceiverType.CUSTOM,this.C.push(a),chrome.cast.setCustomReceivers(this.C,function(){},(0,g.oy)(function(V){this.hv("Failed to set initial custom receivers: "+g.ca(V))},this))); Oa("setConnectedScreenStatus: new active receiver: "+a.friendlyName);jF(this,new pQ(this.X,a),!0)}this.j.lw(B)}else Oa("setConnectedScreenStatus: no screen.")}; g.W.REX=function(G){this.TH()?this.hv("Setting connection data on disposed cast v2"):this.j?this.j.L8(G):this.hv("Setting connection data without a session")}; g.W.Ce=function(){this.TH()?this.hv("Stopping session on disposed cast v2"):this.j?(this.j.stop(),jF(this,null)):Oa("Stopping non-existing session")}; g.W.requestSession=function(){chrome.cast.requestSession((0,g.oy)(this.GZ,this),(0,g.oy)(this.G1d,this))}; g.W.yb=function(){this.X.unsubscribe("onlineScreenChange",(0,g.oy)(this.OW,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.B);var G=bNf,B=g.LV("yt.mdx.remote.debug.handlers_");g.PW(B||[],G);g.WW(this.j);g.wI.prototype.yb.call(this)}; g.W.hv=function(G){GP("Controller",G)}; g.W.Zj=function(G,B){this.j==G&&(B||jF(this,null),this.publish("yt-remote-cast2-session-change",B))}; g.W.Usd=function(G,B){if(!this.TH())if(G)switch(G.friendlyName=chrome.cast.unescape(G.friendlyName),Oa("onReceiverAction_ "+G.label+" / "+G.friendlyName+"-- "+B),B){case chrome.cast.ReceiverAction.CAST:if(this.j)if(this.j.X.label!=G.label)Oa("onReceiverAction_: Stopping active receiver: "+this.j.X.friendlyName),this.j.stop();else{Oa("onReceiverAction_: Casting to active receiver.");this.j.j&&this.publish("yt-remote-cast2-session-change",this.j.j);break}switch(G.receiverType){case chrome.cast.ReceiverType.CUSTOM:jF(this, new pQ(this.X,G));break;case chrome.cast.ReceiverType.DIAL:jF(this,new mA(this.X,G,this.G,this.config_));break;case chrome.cast.ReceiverType.CAST:jF(this,new tb(this.X,G,this.config_));break;default:this.hv("Unknown receiver type: "+G.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.j&&this.j.X.label==G.label?this.j.stop():this.hv("Stopping receiver w/o session: "+G.friendlyName)}else this.hv("onReceiverAction_ called without receiver.")}; g.W.M_r=function(G){if(this.TH())return Promise.reject(Error("disposed"));var B=G.receiver;B.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.hv("Not DIAL receiver: "+B.friendlyName),B.receiverType=chrome.cast.ReceiverType.DIAL);var a=this.j?this.j.X:null;if(!a||a.label!=B.label)return this.hv("Receiving DIAL launch request for non-clicked DIAL receiver: "+B.friendlyName),Promise.reject(Error("illegal DIAL launch"));if(a&&a.label==B.label&&a.receiverType!=chrome.cast.ReceiverType.DIAL){if(this.j.j)return Oa("Reselecting dial screen."), this.publish("yt-remote-cast2-session-change",this.j.j),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.hv('Changing CAST intent from "'+a.receiverType+'" to "dial" for '+B.friendlyName);jF(this,new mA(this.X,B,this.G,this.config_))}B=this.j;B.V=G;B.V.appState==chrome.cast.DialAppState.RUNNING?(G=B.V.extraData||{},a=G.screenId||null,Id(B)&&G.loungeToken?G.loungeTokenRefreshIntervalMs?G=Ng3(B,{name:B.X.friendlyName,screenId:G.screenId,loungeToken:G.loungeToken,dialId:B.V.receiver.label, screenIdType:"shortLived"},G.loungeTokenRefreshIntervalMs):(g.Pu(Error("No loungeTokenRefreshIntervalMs presents in additionalData: "+JSON.stringify(G)+".")),G=dMs(B,a)):G=dMs(B,a)):G=l1C(B);return G}; g.W.GZ=function(G){var B=this;if(!this.TH()&&!this.L){Oa("New cast session ID: "+G.sessionId);var a=G.receiver;if(a.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.j)if(a.receiverType==chrome.cast.ReceiverType.CAST)Oa("Got resumed cast session before resumed mdx connection."),a.friendlyName=chrome.cast.unescape(a.friendlyName),jF(this,new tb(this.X,a,this.config_),!0);else{this.hv("Got non-cast session without previous mdx receiver event, or mdx resume.");return}var V=this.j.X,x=KG(this.X.U1(), V.label);x&&W8(x,a.label)&&V.receiverType!=chrome.cast.ReceiverType.CAST&&a.receiverType==chrome.cast.ReceiverType.CAST&&(Oa("onSessionEstablished_: manual to cast session change "+a.friendlyName),g.WW(this.j),this.j=new tb(this.X,a,this.config_),this.j.subscribe("sessionScreen",(0,g.oy)(this.Zj,this,this.j)),this.j.subscribe("sessionFailed",function(){return mMJ(B,B.j)}),this.j.L8(null)); this.j.x8(G)}}}; g.W.Xu=function(){return this.j?this.j.UW():null}; g.W.G1d=function(G){this.TH()||(this.hv("Failed to estabilish a session: "+g.ca(G)),G.code!=chrome.cast.ErrorCode.CANCEL&&jF(this,null),this.publish("yt-remote-cast2-session-failed"))}; g.W.pnL=function(G){Oa("Receiver availability updated: "+G);if(!this.TH()){var B=Ea(this);this.W=G==chrome.cast.ReceiverAvailability.AVAILABLE;Ea(this)!=B&&this.publish("yt-remote-cast2-availability-change",Ea(this))}}; g.W.OW=function(){this.TH()||(this.C=I1J(this),Oa("Updating custom receivers: "+g.ca(this.C)),chrome.cast.setCustomReceivers(this.C,function(){},(0,g.oy)(function(){this.hv("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",Ea(this)))}; Ua.prototype.setLaunchParams=Ua.prototype.REX;Ua.prototype.setConnectedScreenStatus=Ua.prototype.rAH;Ua.prototype.stopSession=Ua.prototype.Ce;Ua.prototype.getCastSession=Ua.prototype.Xu;Ua.prototype.requestSession=Ua.prototype.requestSession;Ua.prototype.init=Ua.prototype.init;Ua.prototype.dispose=Ua.prototype.dispose;var cda=[];g.W=v5.prototype; g.W.reset=function(G){this.listId="";this.index=-1;this.videoId="";SsW(this);this.volume=-1;this.muted=!1;G&&(this.index=G.index,this.listId=G.listId,this.videoId=G.videoId,this.playerState=G.playerState,this.volume=G.volume,this.muted=G.muted,this.audioTrackId=G.audioTrackId,this.trackData=G.trackData,this.Ky=G.hasPrevious,this.pk=G.hasNext,this.W=G.playerTime,this.L=G.playerTimeAt,this.G=G.seekableStart,this.j=G.seekableEnd,this.B=G.duration,this.V=G.loadedTime,this.C=G.liveIngestionTime,this.X= !isNaN(this.C))}; g.W.isPlaying=function(){return this.playerState==1}; g.W.isBuffering=function(){return this.playerState==3}; g.W.x$=function(){return this.playerState==1081}; g.W.Qf=function(G){this.B=isNaN(G)?0:G}; g.W.getDuration=function(){return this.X?this.B+DS(this):this.B}; g.W.clone=function(){return new v5(R3$(this))};g.t($c,g.wI);g.W=$c.prototype;g.W.getState=function(){return this.C}; g.W.GD=function(){return this.G.getReconnectTimeout()}; g.W.pg=function(){this.G.reconnect()}; g.W.play=function(){qr(this)?(this.j?this.j.play(null,g.kK,TP(this,"play")):LQ(this,"play"),$M$(this,1,Rd(XA(this))),this.publish("remotePlayerChange")):u7(this,this.play)}; g.W.pause=function(){qr(this)?(this.j?this.j.pause(null,g.kK,TP(this,"pause")):LQ(this,"pause"),$M$(this,2,Rd(XA(this))),this.publish("remotePlayerChange")):u7(this,this.pause)}; g.W.seekTo=function(G){if(qr(this)){if(this.j){var B=XA(this),a=new chrome.cast.media.SeekRequest;a.currentTime=G;B.isPlaying()||B.isBuffering()?a.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:a.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.j.seek(a,g.kK,TP(this,"seekTo",{newTime:G}))}else LQ(this,"seekTo",{newTime:G});$M$(this,3,G);this.publish("remotePlayerChange")}else u7(this,g.MY(this.seekTo,G))}; g.W.stop=function(){if(qr(this)){this.j?this.j.stop(null,g.kK,TP(this,"stopVideo")):LQ(this,"stopVideo");var G=XA(this);G.index=-1;G.videoId="";SsW(G);Q5(this,G);this.publish("remotePlayerChange")}else u7(this,this.stop)}; g.W.setVolume=function(G,B){if(qr(this)){var a=XA(this);if(this.X){if(a.volume!=G){var V=Math.round(G)/100;this.X.setReceiverVolumeLevel(V,(0,g.oy)(function(){B5("set receiver volume: "+V)},this),(0,g.oy)(function(){this.hv("failed to set receiver volume.")},this))}a.muted!=B&&this.X.setReceiverMuted(B,(0,g.oy)(function(){B5("set receiver muted: "+B)},this),(0,g.oy)(function(){this.hv("failed to set receiver muted.")},this))}else{var x={volume:G, muted:B};a.volume!=-1&&(x.delta=G-a.volume);LQ(this,"setVolume",x)}a.muted=B;a.volume=G;Q5(this,a)}else u7(this,g.MY(this.setVolume,G,B))}; g.W.aS=function(G,B){if(qr(this)){var a=XA(this);G={videoId:G};B&&(a.trackData={trackName:B.name,languageCode:B.languageCode,sourceLanguageCode:B.translationLanguage?B.translationLanguage.languageCode:"",languageName:B.languageName,kind:B.kind},G.style=g.ca(B.style),g.vM(G,a.trackData));LQ(this,"setSubtitlesTrack",G);Q5(this,a)}else u7(this,g.MY(this.aS,G,B))}; g.W.setAudioTrack=function(G,B){qr(this)?(B=B.getLanguageInfo().getId(),LQ(this,"setAudioTrack",{videoId:G,audioTrackId:B}),G=XA(this),G.audioTrackId=B,Q5(this,G)):u7(this,g.MY(this.setAudioTrack,G,B))}; g.W.playVideo=function(G,B,a,V,x,h,e){V=V===void 0?null:V;x=x===void 0?null:x;h=h===void 0?null:h;e=e===void 0?null:e;var w=XA(this),K={videoId:G};a!==void 0&&(K.currentIndex=a);ZS(w,G,a||0);B!==void 0&&(SF(w,B),K.currentTime=B);V&&(K.listId=V);x&&(K.playerParams=x);h&&(K.clickTrackingParams=h);e&&(K.locationInfo=g.ca(e));LQ(this,"setPlaylist",K);V||Q5(this,w)}; g.W.cT=function(G,B){if(qr(this)){if(G&&B){var a=XA(this);ZS(a,G,B);Q5(this,a)}LQ(this,"previous")}else u7(this,g.MY(this.cT,G,B))}; g.W.nextVideo=function(G,B){if(qr(this)){if(G&&B){var a=XA(this);ZS(a,G,B);Q5(this,a)}LQ(this,"next")}else u7(this,g.MY(this.nextVideo,G,B))}; g.W.Ae=function(){if(qr(this)){LQ(this,"clearPlaylist");var G=XA(this);G.reset();Q5(this,G);this.publish("remotePlayerChange")}else u7(this,this.Ae)}; g.W.Ts=function(){qr(this)?LQ(this,"dismissAutoplay"):u7(this,this.Ts)}; g.W.dispose=function(){if(this.C!=3){var G=this.C;this.C=3;this.publish("proxyStateChange",G,this.C)}g.wI.prototype.dispose.call(this)}; g.W.yb=function(){rdl(this);this.G=null;this.B.clear();rD(this,null);g.wI.prototype.yb.call(this)}; g.W.ac=function(G){if((G!=this.C||G==2)&&this.C!=3&&G!=0){var B=this.C;this.C=G;this.publish("proxyStateChange",B,G);if(G==1)for(;!this.B.isEmpty();)B=G=this.B,B.j.length===0&&(B.j=B.X,B.j.reverse(),B.X=[]),G.j.pop().apply(this);else G==3&&this.dispose()}}; g.W.MnJ=function(G,B){this.publish(G,B)}; g.W.hPb=function(G){if(!G)this.G5(null),rD(this,null);else if(this.X.receiver.volume){G=this.X.receiver.volume;var B=XA(this),a=Math.round(100*G.level||0);if(B.volume!=a||B.muted!=G.muted)B5("Cast volume update: "+G.level+(G.muted?" muted":"")),B.volume=a,B.muted=!!G.muted,Q5(this,B)}}; g.W.G5=function(G){B5("Cast media: "+!!G);this.j&&this.j.removeUpdateListener(this.V);if(this.j=G)this.j.addUpdateListener(this.V),Xn2(this),this.publish("remotePlayerChange")}; g.W.SZr=function(G){G?(Xn2(this),this.publish("remotePlayerChange")):this.G5(null)}; g.W.LU=function(){LQ(this,"sendDebugCommand",{debugCommand:"stats4nerds "})}; g.W.JyB=function(){var G=Hi3();G&&rD(this,G)}; g.W.hv=function(G){GP("CP",G)};g.t(Jb,g.wI);g.W=Jb.prototype; g.W.connect=function(G,B){if(B){var a=B.listId,V=B.videoId,x=B.videoIds,h=B.playerParams,e=B.clickTrackingParams,w=B.index,K={videoId:V},l=B.currentTime,k=B.locationInfo;B=B.loopMode;l!==void 0&&(K.currentTime=l<=5?0:l);h&&(K.playerParams=h);k&&(K.locationInfo=k);e&&(K.clickTrackingParams=e);a&&(K.listId=a);x&&x.length>0&&(K.videoIds=x.join(","));w!==void 0&&(K.currentIndex=w);this.LN&&(K.loopMode=B||"LOOP_MODE_OFF");a&&(this.j.listId=a);this.j.videoId=V;this.j.index=w||0;this.j.state=3;SF(this.j, l);this.B="UNSUPPORTED";a=this.LN?"setInitialState":"setPlaylist";sa("Connecting with "+a+" and params: "+g.ca(K));this.X.connect({method:a,params:g.ca(K)},G,ld$())}else sa("Connecting without params"),this.X.connect({},G,ld$());LHl(this)}; g.W.rL=function(G){this.X.rL(G)}; g.W.dispose=function(){this.TH()||(g.Qb("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),FA(this,3));g.wI.prototype.dispose.call(this)}; g.W.yb=function(){TgJ(this);FH3(this);sw9(this);g.me(this.V);this.V=NaN;g.me(this.Y);this.Y=NaN;this.G=null;g.OU(this.zH);this.zH.length=0;this.X.dispose();g.wI.prototype.yb.call(this);this.B=this.W=this.C=this.j=this.X=null}; g.W.TI=function(G){if(!this.C||this.C.length===0)return!1;for(var B=g.m(this.C),a=B.next();!a.done;a=B.next())if(!a.value.capabilities.has(G))return!1;return!0}; g.W.rXn=function(){var G=3;this.TH()||(G=0,isNaN(this.X$())?this.X.uA()&&isNaN(this.L)&&(G=1):G=2);return G}; g.W.k0=function(G){sa("Disconnecting with "+G);g.Qb("yt.mdx.remote.remoteClient_",null);TgJ(this);this.publish("beforeDisconnect",G);G==1&&Nw();this.X.disconnect(G);this.dispose()}; g.W.FdS=function(){var G=this.j;this.G&&(G=this.j.clone(),ZS(G,this.G,G.index));return R3$(G)}; g.W.kVJ=function(G){var B=this,a=new v5(G);a.videoId&&a.videoId!=this.j.videoId&&(this.G=a.videoId,g.me(this.V),this.V=g.z9(function(){if(B.G){var x=B.G;B.G=null;B.j.videoId!=x&&Ab(B,"getNowPlaying")}},5E3)); var V=[];this.j.listId==a.listId&&this.j.videoId==a.videoId&&this.j.index==a.index||V.push("remoteQueueChange");this.j.playerState==a.playerState&&this.j.volume==a.volume&&this.j.muted==a.muted&&Rd(this.j)==Rd(a)&&g.ca(this.j.trackData)==g.ca(a.trackData)||V.push("remotePlayerChange");this.j.reset(G);g.kV(V,function(x){this.publish(x)},this)}; g.W.dI=function(){var G=this.X.getDeviceId(),B=g.JJ(this.C,function(a){return a.type=="REMOTE_CONTROL"&&a.id!=G}); return B?B.id:""}; g.W.X$=function(){return this.X.GD()}; g.W.Ij=function(){return this.B||"UNSUPPORTED"}; g.W.U2=function(){return this.W||""}; g.W.y$=function(){!isNaN(this.X$())&&this.X.pg()}; g.W.Cfx=function(G,B){Ab(this,G,B);Adf(this)}; g.W.Pb=function(){var G=g.r1("SAPISID","")||g.r1("__Secure-1PAPISID")||"",B=g.r1("__Secure-3PAPISID","")||"";if(!G&&!B)return"";G=g.md(g.gl(G),2);B=g.md(g.gl(B),2);return g.md(g.gl(","+G+","+B),2)}; Jb.prototype.subscribe=Jb.prototype.subscribe;Jb.prototype.unsubscribeByKey=Jb.prototype.y_;Jb.prototype.getProxyState=Jb.prototype.rXn;Jb.prototype.disconnect=Jb.prototype.k0;Jb.prototype.getPlayerContextData=Jb.prototype.FdS;Jb.prototype.setPlayerContextData=Jb.prototype.kVJ;Jb.prototype.getOtherConnectedRemoteId=Jb.prototype.dI;Jb.prototype.getReconnectTimeout=Jb.prototype.X$;Jb.prototype.getAutoplayMode=Jb.prototype.Ij;Jb.prototype.getAutoplayVideoId=Jb.prototype.U2;Jb.prototype.reconnect=Jb.prototype.y$; Jb.prototype.sendMessage=Jb.prototype.Cfx;Jb.prototype.getXsrfToken=Jb.prototype.Pb;Jb.prototype.isCapabilitySupportedOnConnectedDevices=Jb.prototype.TI;g.t(e12,eF);g.W=e12.prototype;g.W.U1=function(G){return this.WG.$_gs(G)}; g.W.contains=function(G){return!!this.WG.$_c(G)}; g.W.get=function(G){return this.WG.$_g(G)}; g.W.start=function(){this.WG.$_st()}; g.W.add=function(G,B,a){this.WG.$_a(G,B,a)}; g.W.remove=function(G,B,a){this.WG.$_r(G,B,a)}; g.W.tG=function(G,B,a,V){this.WG.$_un(G,B,a,V)}; g.W.yb=function(){for(var G=this.j.length,B=0;B1&&!this.T.getOption("remote","quickCast")?(this.Hq=g.NU(G,this.j,this),this.Qm(g.br(G,this.j)),G=this.T.getOption("remote","currentReceiver"),G=this.j(G),this.options[G]&&this.o8(G),this.enable(!0)):this.enable(!1)}; d8.prototype.j=function(G){return G.key}; d8.prototype.s1=function(G){return G==="cast-selector-receiver"?"Transmitir\u2026":this.Hq[G].name}; d8.prototype.Qk=function(G){g.u2.prototype.Qk.call(this,G);this.T.setOption("remote","currentReceiver",this.Hq[G]);this.Gi.Bf()};g.t(chJ,g.go);g.W=chJ.prototype; g.W.create=function(){var G=this.player.U(),B=g.SN(G);G={device:"Desktop",app:"youtube-desktop",loadCastApiSetupScript:G.S("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:G.S("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:G.S("enable_cast_short_lived_lounge_token")};ks9(B,G);this.subscriptions.push(g.hh("yt-remote-before-disconnect",this.T7H,this));this.subscriptions.push(g.hh("yt-remote-connection-change",this.VnB,this));this.subscriptions.push(g.hh("yt-remote-receiver-availability-change",this.Hi, this));this.subscriptions.push(g.hh("yt-remote-auto-connect",this.acn,this));this.subscriptions.push(g.hh("yt-remote-receiver-resumed",this.ODL,this));this.subscriptions.push(g.hh("mdx-privacy-popup-confirm",this.ZnB,this));this.subscriptions.push(g.hh("mdx-privacy-popup-cancel",this.kzX,this));this.Hi()}; g.W.load=function(){this.player.cancelPlayback();g.go.prototype.load.call(this);this.qw=new yhJ(this);this.player.wp(this.qw);this.Qe=new OgC(this,this.player,this.ZX);var G=(G=glh())?G.currentTime:0;var B=t59()?new $c(x1(),void 0):null;G==0&&B&&(G=Rd(XA(B)));G!==0&&this.BC(G);nl8(this,this.yg,this.yg);this.player.sD(6)}; g.W.unload=function(){this.player.publish("mdxautoplaycanceled");this.player.kY();this.gL=this.mu;g.wl(this.Qe,this.ZX);this.ZX=this.qw=this.Qe=null;g.go.prototype.unload.call(this);this.player.sD(5);C8(this)}; g.W.yb=function(){g.e5(this.subscriptions);g.go.prototype.yb.call(this)}; g.W.fO=function(G){var B=g.Hz.apply(1,arguments);this.loaded&&this.Qe.Ey.apply(this.Qe,[G].concat(g.U(B)))}; g.W.getAdState=function(){return this.Br}; g.W.Ky=function(){return this.ZX?XA(this.ZX).Ky:!1}; g.W.pk=function(){return this.ZX?XA(this.ZX).pk:!1}; g.W.BC=function(G,B){this.Kz=G||0;this.player.publish("progresssync",G,B);this.player.Ff("onVideoProgress",G||0)}; g.W.getCurrentTime=function(){return this.Kz}; g.W.getProgressState=function(){var G=XA(this.ZX),B=this.player.getVideoData();return{airingStart:0,airingEnd:0,allowSeeking:!G.x$()&&this.player.tA(),clipEnd:B.clipEnd,clipStart:B.clipStart,current:this.getCurrentTime(),displayedStart:-1,duration:G.getDuration(),ingestionTime:G.X?G.C+DS(G):G.C,isAtLiveHead:(G.X?G.j+DS(G):G.j)-this.getCurrentTime()<=1,loaded:G.V,seekableEnd:G.X?G.j+DS(G):G.j,seekableStart:G.G>0?G.G+DS(G):G.G,offset:0,viewerLivestreamJoinMediaTime:0}}; g.W.nextVideo=function(){this.ZX&&this.ZX.nextVideo()}; g.W.cT=function(){this.ZX&&this.ZX.cT()}; g.W.T7H=function(G){G===1&&(this.Ys=this.ZX?XA(this.ZX):null)}; g.W.VnB=function(){var G=t59()?new $c(x1(),void 0):null;if(G){var B=this.gL;this.loaded&&this.unload();this.ZX=G;this.Ys=null;B.key!==this.mu.key&&(this.gL=B,this.load())}else g.WW(this.ZX),this.ZX=null,this.loaded&&(this.unload(),(G=this.Ys)&&G.videoId===this.player.getVideoData().videoId&&this.player.cueVideoById(G.videoId,Rd(G)));this.player.publish("videodatachange","newdata",this.player.getVideoData(),3)}; g.W.Hi=function(){var G=[this.mu],B=G.concat,a=Nrh();nQ()&&g.SL("yt-remote-cast-available")&&a.push({key:"cast-selector-receiver",name:"Cast..."});this.Hq=B.call(G,a);G=C9a()||this.mu;zg(this,G);this.player.Ff("onMdxReceiversChange")}; g.W.acn=function(){var G=C9a();zg(this,G)}; g.W.ODL=function(){this.gL=C9a()}; g.W.ZnB=function(){this.Nu=!0;C8(this);w8=!1;hF&&W0(hF,1);hF=null}; g.W.kzX=function(){this.Nu=!1;C8(this);zg(this,this.mu);this.gL=this.mu;w8=!1;hF=null;this.player.playVideo()}; g.W.dJ=function(G,B){switch(G){case "casting":return this.loaded;case "receivers":return this.Hq;case "currentReceiver":return B&&(B.key==="cast-selector-receiver"?vI$():zg(this,B)),this.loaded?this.gL:this.mu;case "quickCast":return this.Hq.length===2&&this.Hq[1].key==="cast-selector-receiver"?(B&&vI$(),!0):!1}}; g.W.LU=function(){this.ZX.LU()}; g.W.v6=function(){return!1}; g.W.getOptions=function(){return["casting","receivers","currentReceiver","quickCast"]}; g.W.isLoggedIn=function(){var G,B;return((G=g.A0("PLAYER_CONFIG"))==null?void 0:(B=G.args)==null?void 0:B.authuser)!==void 0?!0:!(!g.A0("SESSION_INDEX")&&!g.A0("LOGGED_IN"))};g.Is("remote",chJ);})(_yt_player);